@univerjs-pro/bases 1.0.3 → 1.0.4

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 (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +8 -8
@@ -1 +1 @@
1
- const _0x3bd361=_0x4e51;(function(_0x4f05e1,_0x4902cb){const _0x362603=_0x4e51,_0x1f4204=_0x4f05e1();while(!![]){try{const _0x29326f=parseInt(_0x362603(0x131))/0x1+-parseInt(_0x362603(0x12c))/0x2*(parseInt(_0x362603(0x129))/0x3)+-parseInt(_0x362603(0x13e))/0x4*(parseInt(_0x362603(0x13d))/0x5)+-parseInt(_0x362603(0x133))/0x6*(-parseInt(_0x362603(0x141))/0x7)+-parseInt(_0x362603(0x140))/0x8*(-parseInt(_0x362603(0x127))/0x9)+parseInt(_0x362603(0x12b))/0xa*(parseInt(_0x362603(0x143))/0xb)+-parseInt(_0x362603(0x138))/0xc*(parseInt(_0x362603(0x137))/0xd);if(_0x29326f===_0x4902cb)break;else _0x1f4204['push'](_0x1f4204['shift']());}catch(_0x6bdac8){_0x1f4204['push'](_0x1f4204['shift']());}}}(_0x523f,0x49808));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x3bd361(0x12e),'email':_0x3bd361(0x13b),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':'關聯記錄','recordId':_0x3bd361(0x12d),'createdBy':_0x3bd361(0x130),'updatedBy':'更新人','createdAt':'建立時間','updatedAt':_0x3bd361(0x12a),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x3bd361(0x134),'linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x3bd361(0x142),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x3bd361(0x136),'invalidFieldType':_0x3bd361(0x13c),'invalidCellValue':_0x3bd361(0x139),'invalidKanbanGroupField':_0x3bd361(0x13f),'invalidCalendarDateField':'行事曆需要日期欄位','invalidGanttDateField':_0x3bd361(0x132)},'command':{'updateCell':_0x3bd361(0x13a),'createField':_0x3bd361(0x12f),'deleteField':_0x3bd361(0x128),'createRecord':'建立記錄','deleteRecord':'刪除記錄','updateViewConfig':_0x3bd361(0x135)}}};export{e as default};function _0x4e51(_0x2f4bef,_0x5b8c9c){_0x2f4bef=_0x2f4bef-0x127;const _0x523f4a=_0x523f();let _0x4e5180=_0x523f4a[_0x2f4bef];return _0x4e5180;}function _0x523f(){const _0x26098a=['2365620oPSMRh','輸入內容','更新檢視設定','欄位標題不能為空','1352yUpFxg','86808lMHIGN','儲存格值無效','更新儲存格','電子郵件','欄位類型無效','8385WUTeLB','628qzcbPD','看板需要可分組欄位','243520kgcQPG','7LRRUeL','甘特圖','169367XRIrtJ','153eAkWoX','刪除欄位','69dMZBNT','更新時間','250diKlxW','37826rSYACL','記錄\x20ID','電話號碼','建立欄位','建立人','455013LURuJP','甘特圖檢視需要開始和結束日期欄位'];_0x523f=function(){return _0x26098a;};return _0x523f();}
1
+ const _0x18836c=_0x3499;function _0x3499(_0x43f706,_0x58a5c8){_0x43f706=_0x43f706-0x1a3;const _0x1dbe71=_0x1dbe();let _0x349915=_0x1dbe71[_0x43f706];return _0x349915;}function _0x1dbe(){const _0x5a3f61=['電話號碼','電子郵件','4282965qNgWcD','記錄\x20ID','11391tBOhBu','4583928tTQtyR','20cAmXAB','建立欄位','建立記錄','刪除欄位','706IJiqNO','甘特圖','輸入內容','7fUYxbD','4537770TvduMZ','核取方塊','1491213JrlnyX','行事曆需要日期欄位','8220680rTigjR','更新人','建立人','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','關聯記錄','行事曆','看板需要可分組欄位','儲存格值無效','5461344ZltNcy','建立時間'];_0x1dbe=function(){return _0x5a3f61;};return _0x1dbe();}(function(_0x4c470b,_0x433a13){const _0x1778f8=_0x3499,_0x9ed25e=_0x4c470b();while(!![]){try{const _0x19c366=-parseInt(_0x1778f8(0x1b6))/0x1+parseInt(_0x1778f8(0x1b0))/0x2*(parseInt(_0x1778f8(0x1aa))/0x3)+parseInt(_0x1778f8(0x1a4))/0x4+parseInt(_0x1778f8(0x1b4))/0x5+parseInt(_0x1778f8(0x1ab))/0x6+parseInt(_0x1778f8(0x1b3))/0x7*(-parseInt(_0x1778f8(0x1b8))/0x8)+parseInt(_0x1778f8(0x1a8))/0x9*(-parseInt(_0x1778f8(0x1ac))/0xa);if(_0x19c366===_0x433a13)break;else _0x9ed25e['push'](_0x9ed25e['shift']());}catch(_0x3e7796){_0x9ed25e['push'](_0x9ed25e['shift']());}}}(_0x1dbe,0xdd59b));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x18836c(0x1b5),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x18836c(0x1a6),'email':_0x18836c(0x1a7),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x18836c(0x1bc),'recordId':_0x18836c(0x1a9),'createdBy':_0x18836c(0x1ba),'updatedBy':_0x18836c(0x1b9),'createdAt':_0x18836c(0x1a5),'updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x18836c(0x1b2),'linkPlaceholder':_0x18836c(0x1bb)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x18836c(0x1bd),'gantt':_0x18836c(0x1b1),'gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':'欄位類型無效','invalidCellValue':_0x18836c(0x1a3),'invalidKanbanGroupField':_0x18836c(0x1be),'invalidCalendarDateField':_0x18836c(0x1b7),'invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':'更新儲存格','createField':_0x18836c(0x1ad),'deleteField':_0x18836c(0x1af),'createRecord':_0x18836c(0x1ae),'deleteRecord':'刪除記錄','updateViewConfig':'更新檢視設定'}}};export{e as default};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x36bd(_0x160828,_0x518372){_0x160828=_0x160828-0xa4;const _0x5d296b=_0x5d29();let _0x36bdd6=_0x5d296b[_0x160828];return _0x36bdd6;}(function(_0x2c8468,_0x4ba1d7){const _0x3c4033=_0x36bd,_0x394f7f=_0x2c8468();while(!![]){try{const _0x38da51=-parseInt(_0x3c4033(0x192))/0x1*(-parseInt(_0x3c4033(0x194))/0x2)+-parseInt(_0x3c4033(0x130))/0x3+parseInt(_0x3c4033(0x102))/0x4*(-parseInt(_0x3c4033(0x1f9))/0x5)+-parseInt(_0x3c4033(0x121))/0x6*(-parseInt(_0x3c4033(0x1db))/0x7)+parseInt(_0x3c4033(0x248))/0x8+parseInt(_0x3c4033(0xc0))/0x9*(-parseInt(_0x3c4033(0xa7))/0xa)+parseInt(_0x3c4033(0xc1))/0xb*(parseInt(_0x3c4033(0x1eb))/0xc);if(_0x38da51===_0x4ba1d7)break;else _0x394f7f['push'](_0x394f7f['shift']());}catch(_0x56a4a8){_0x394f7f['push'](_0x394f7f['shift']());}}}(_0x5d29,0x2b04a),function(_0x231c10,_0xe7974a){const _0x46aeb2=_0x36bd;typeof exports==_0x46aeb2(0x100)&&typeof module<'u'?_0xe7974a(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/protocol'),require('@univerjs-pro/engine-formula')):typeof define==_0x46aeb2(0x117)&&define['amd']?define(['exports',_0x46aeb2(0x264),_0x46aeb2(0x16b),'@univerjs/core/facade',_0x46aeb2(0x1fd),'@univerjs-pro/engine-formula'],_0xe7974a):(_0x231c10=typeof globalThis<'u'?globalThis:_0x231c10||self,_0xe7974a(_0x231c10[_0x46aeb2(0xeb)]={},_0x231c10[_0x46aeb2(0x1f8)],_0x231c10[_0x46aeb2(0xde)],_0x231c10[_0x46aeb2(0x1ff)],_0x231c10[_0x46aeb2(0x11d)],_0x231c10[_0x46aeb2(0x167)]));}(this,function(_0x24290d,_0x5c88db,_0x460afa,_0x1813e5,_0x79a0ae,_0xd45dae){const _0x7fc612=_0x36bd;Object[_0x7fc612(0x24b)](_0x24290d,Symbol[_0x7fc612(0x1b6)],{'value':'Module'});var _0x240cde=Object[_0x7fc612(0x206)],_0x43d78c=Object[_0x7fc612(0x24b)],_0x38ed5f=Object[_0x7fc612(0x1f5)],_0x5a7093=Object[_0x7fc612(0x15e)],_0x34531b=Object[_0x7fc612(0x136)],_0x28a82d=Object[_0x7fc612(0x174)][_0x7fc612(0xf4)],_0x46f401=(_0x29b905,_0x3a7915,_0x210beb,_0x49f3c3)=>{const _0x6c26ef=_0x7fc612;if(_0x3a7915&&typeof _0x3a7915==_0x6c26ef(0x100)||typeof _0x3a7915==_0x6c26ef(0x117)){for(var _0x30b620=_0x5a7093(_0x3a7915),_0x563bf9=0x0,_0x17c9f1=_0x30b620[_0x6c26ef(0x208)],_0x40496;_0x563bf9<_0x17c9f1;_0x563bf9++)_0x40496=_0x30b620[_0x563bf9],!_0x28a82d['call'](_0x29b905,_0x40496)&&_0x40496!==_0x210beb&&_0x43d78c(_0x29b905,_0x40496,{'get':(_0x43708c=>_0x3a7915[_0x43708c])[_0x6c26ef(0x17f)](null,_0x40496),'enumerable':!(_0x49f3c3=_0x38ed5f(_0x3a7915,_0x40496))||_0x49f3c3[_0x6c26ef(0x113)]});}return _0x29b905;};_0x1813e5=((_0x19bd60,_0x58edc9,_0x4503ad)=>(_0x4503ad=_0x19bd60==null?{}:_0x240cde(_0x34531b(_0x19bd60)),_0x46f401(_0x58edc9||!_0x19bd60||!_0x19bd60[_0x7fc612(0x103)]||!_0x28a82d[_0x7fc612(0x1e7)](_0x19bd60,_0x7fc612(0x1a9))?_0x43d78c(_0x4503ad,_0x7fc612(0x1a9),{'value':_0x19bd60,'enumerable':!0x0}):_0x4503ad,_0x19bd60)))(_0x1813e5);var _0x4712ce=class{constructor(_0x5608ad,_0x635913,_0x5048d8){const _0x1767f2=_0x7fc612;this[_0x1767f2(0x127)]=_0x5608ad,this[_0x1767f2(0x1a5)]=_0x635913,this['_permissionService']=_0x5048d8;}async['setObjectPermissions'](_0x1eda47){const _0x372768=_0x7fc612;return this[_0x372768(0x1a5)][_0x372768(0xcb)](_0x5c88db[_0x372768(0x203)]['id'],{'unitId':this[_0x372768(0x127)],'changes':_0x1eda47});}async[_0x7fc612(0x24a)](_0x14dc94,_0x50b39f){const _0x1a354c=_0x7fc612;await this[_0x1a354c(0x1a5)][_0x1a354c(0xcb)](_0x5c88db[_0x1a354c(0x1f0)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x1a354c(0x127)],'action':_0x14dc94,'value':_0x50b39f});}[_0x7fc612(0xa6)](_0x6b6a0f){const _0x4a7e2a=_0x7fc612;return(0x0,_0x5c88db[_0x4a7e2a(0x223)])(this['_permissionService'],this[_0x4a7e2a(0x127)],this[_0x4a7e2a(0x127)],_0x6b6a0f);}async[_0x7fc612(0x156)](_0x4eea78=!0x0){const _0x4fa3c0=_0x7fc612;await this['_commandService'][_0x4fa3c0(0xcb)](_0x5c88db[_0x4fa3c0(0x1f0)]['id'],{'unitId':this[_0x4fa3c0(0x127)],'objectId':this[_0x4fa3c0(0x127)],'action':_0x79a0ae['UnitAction']['Edit'],'value':_0x4eea78});}async['setReadOnly'](){const _0x45ba83=_0x7fc612;await this['_commandService'][_0x45ba83(0xcb)](_0x5c88db['SetBasePermissionCommand']['id'],{'unitId':this[_0x45ba83(0x127)],'objectId':this[_0x45ba83(0x127)],'action':_0x79a0ae['UnitAction'][_0x45ba83(0x125)],'value':!0x1});}[_0x7fc612(0x105)](){const _0x3adc4c=_0x7fc612;return(0x0,_0x5c88db[_0x3adc4c(0x223)])(this['_permissionService'],this[_0x3adc4c(0x127)],this[_0x3adc4c(0x127)],_0x79a0ae[_0x3adc4c(0x108)][_0x3adc4c(0x125)]);}},_0x5a8ed0=class{constructor(_0xd0c731,_0x548f7c,_0x3b4bdb,_0x3901d7,_0x5af9c9){const _0x3ac333=_0x7fc612;this[_0x3ac333(0x127)]=_0xd0c731,this['_objectId']=_0x548f7c,this[_0x3ac333(0x1ac)]=_0x3b4bdb,this[_0x3ac333(0x1a5)]=_0x3901d7,this[_0x3ac333(0x1e1)]=_0x5af9c9;}async[_0x7fc612(0x156)](_0x49aa81=!0x0){const _0x17ab44=_0x7fc612;await this[_0x17ab44(0x1a5)]['executeCommand'](_0x5c88db['SetBasePermissionCommand']['id'],{'unitId':this[_0x17ab44(0x127)],'objectId':this[_0x17ab44(0xb0)],'action':_0x79a0ae['UnitAction'][_0x17ab44(0x125)],'value':_0x49aa81});}async[_0x7fc612(0x1fb)](){const _0x422847=_0x7fc612;await this[_0x422847(0x1a5)]['executeCommand'](_0x5c88db['SetBasePermissionCommand']['id'],{'unitId':this[_0x422847(0x127)],'objectId':this[_0x422847(0xb0)],'action':_0x79a0ae[_0x422847(0x108)][_0x422847(0x125)],'value':!0x1});}[_0x7fc612(0x105)](){const _0x3c8af6=_0x7fc612;return(0x0,_0x5c88db[_0x3c8af6(0x128)])(this['_permissionService'],this[_0x3c8af6(0x127)],[...this['_parentObjectIds'],this[_0x3c8af6(0xb0)]]);}};function _0x28bfcd(_0x150bd5,_0x1ca4a7){return function(_0x17b386,_0x1d0d02){_0x1ca4a7(_0x17b386,_0x1d0d02,_0x150bd5);};}function _0x13a9ae(_0x4e3740,_0xa8a803,_0x17e405,_0x4146aa){const _0x46de04=_0x7fc612;var _0x3d730b=arguments[_0x46de04(0x208)],_0x1bb2b9=_0x3d730b<0x3?_0xa8a803:_0x4146aa===null?_0x4146aa=Object[_0x46de04(0x1f5)](_0xa8a803,_0x17e405):_0x4146aa,_0x529a95;if(typeof Reflect=='object'&&typeof Reflect[_0x46de04(0x20a)]==_0x46de04(0x117))_0x1bb2b9=Reflect[_0x46de04(0x20a)](_0x4e3740,_0xa8a803,_0x17e405,_0x4146aa);else{for(var _0x41d3c9=_0x4e3740[_0x46de04(0x208)]-0x1;_0x41d3c9>=0x0;_0x41d3c9--)(_0x529a95=_0x4e3740[_0x41d3c9])&&(_0x1bb2b9=(_0x3d730b<0x3?_0x529a95(_0x1bb2b9):_0x3d730b>0x3?_0x529a95(_0xa8a803,_0x17e405,_0x1bb2b9):_0x529a95(_0xa8a803,_0x17e405))||_0x1bb2b9);}return _0x3d730b>0x3&&_0x1bb2b9&&Object[_0x46de04(0x24b)](_0xa8a803,_0x17e405,_0x1bb2b9),_0x1bb2b9;}let _0x2003da=class{constructor(_0x20d718,_0x2d58ad,_0x5f2701,_0x182a87,_0x1b7888){const _0x44619f=_0x7fc612;this[_0x44619f(0xf8)]=_0x20d718,this[_0x44619f(0x1d1)]=_0x2d58ad,this[_0x44619f(0xdb)]=_0x5f2701,this[_0x44619f(0x1a5)]=_0x182a87,this[_0x44619f(0x1e1)]=_0x1b7888;}[_0x7fc612(0x120)](){const _0x5bd762=_0x7fc612;return this[_0x5bd762(0xdb)];}[_0x7fc612(0x177)](){const _0x20a74e=_0x7fc612;let _0x2627f5=this[_0x20a74e(0x1d1)][_0x20a74e(0x120)]();return new _0x5a8ed0(this[_0x20a74e(0xf8)]['getId'](),(0x0,_0x5c88db[_0x20a74e(0x14e)])(_0x2627f5,this[_0x20a74e(0xdb)]),[(0x0,_0x5c88db[_0x20a74e(0x16c)])(_0x2627f5)],this[_0x20a74e(0x1a5)],this[_0x20a74e(0x1e1)]);}[_0x7fc612(0x1c3)](){const _0x310732=_0x7fc612;return this[_0x310732(0x269)]();}[_0x7fc612(0x1ea)](){const _0x61d17f=_0x7fc612;return this[_0x61d17f(0x269)]()['name'];}[_0x7fc612(0xfb)](){const _0x16f363=_0x7fc612;return this[_0x16f363(0x269)]()[_0x16f363(0x193)];}[_0x7fc612(0x1e0)](){const _0x517ca2=_0x7fc612;return this['_getField']()[_0x517ca2(0x1c8)];}[_0x7fc612(0x1bc)](){const _0x476e33=_0x7fc612;return this['_getField']()[_0x476e33(0xe6)];}[_0x7fc612(0x131)](){const _0x11e4b6=_0x7fc612;return this[_0x11e4b6(0x269)]()[_0x11e4b6(0x19a)];}[_0x7fc612(0x16f)](){const _0x3b0674=_0x7fc612;return!!this['_getField']()[_0x3b0674(0x26e)];}[_0x7fc612(0x256)](_0xf8e58e){return this['update']({'name':_0xf8e58e});}[_0x7fc612(0x262)](_0x2f59b3,_0x802b73){const _0x57cd4b=_0x7fc612;return this[_0x57cd4b(0x25a)]({'config':_0x2f59b3},_0x802b73);}[_0x7fc612(0xd1)](_0x312439){const _0x319412=_0x7fc612;return this[_0x319412(0x25a)]({'defaultValue':_0x312439});}[_0x7fc612(0x25a)](_0x275194,_0x4e06c0){const _0x1967b5=_0x7fc612;let _0x2a3b6c=this[_0x1967b5(0x269)]()[_0x1967b5(0x193)];return(_0x275194[_0x1967b5(0x193)]??_0x2a3b6c)===_0x460afa['BaseFieldType'][_0x1967b5(0x1ef)]&&(Object[_0x1967b5(0x174)]['hasOwnProperty'][_0x1967b5(0x1e7)](_0x275194,_0x1967b5(0x1c8))||_0x275194[_0x1967b5(0x193)]===_0x460afa[_0x1967b5(0x15a)][_0x1967b5(0x1ef)])&&!this[_0x1967b5(0x1e8)](_0x4e06c0)?!0x1:this[_0x1967b5(0x1a5)]['syncExecuteCommand'](_0x5c88db['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x1967b5(0xf8)][_0x1967b5(0x120)](),'tableId':this[_0x1967b5(0x1d1)]['getId'](),'fieldId':this[_0x1967b5(0xdb)],'patch':_0x275194});}[_0x7fc612(0x1c9)](_0x2981db,_0x55c20c={},_0x588ff8){const _0x389768=_0x7fc612;return _0x2981db===_0x460afa[_0x389768(0x15a)]['Formula']&&!this[_0x389768(0x1e8)](_0x588ff8)?!0x1:this[_0x389768(0x1a5)][_0x389768(0x116)](_0x5c88db['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0x389768(0xf8)][_0x389768(0x120)](),'tableId':this[_0x389768(0x1d1)][_0x389768(0x120)](),'fieldId':this[_0x389768(0xdb)],'input':{'type':_0x2981db,'config':_0x55c20c}});}[_0x7fc612(0x221)](){const _0x26cf9e=_0x7fc612;return this[_0x26cf9e(0x1a5)][_0x26cf9e(0x116)](_0x5c88db[_0x26cf9e(0x152)]['id'],{'unitId':this['_base'][_0x26cf9e(0x120)](),'tableId':this[_0x26cf9e(0x1d1)][_0x26cf9e(0x120)](),'fieldId':this['_fieldId']});}[_0x7fc612(0x259)](_0x226bef){const _0x50acb2=_0x7fc612;return this[_0x50acb2(0x1a5)][_0x50acb2(0x116)](_0x5c88db['MoveBaseFieldCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x50acb2(0x1d1)][_0x50acb2(0x120)](),'fieldId':this[_0x50acb2(0xdb)],'target':_0x226bef});}[_0x7fc612(0x269)](){const _0x46849c=_0x7fc612;let _0x340ed6=this[_0x46849c(0x1d1)][_0x46849c(0x1f6)]()['fields'][this[_0x46849c(0xdb)]];if(!_0x340ed6)throw Error(_0x46849c(0x252)+this[_0x46849c(0xdb)]+_0x46849c(0x176));return _0x340ed6;}[_0x7fc612(0x1e8)](_0x3752a5){const _0x3cf057=_0x7fc612;if(!_0x3752a5||!Array[_0x3cf057(0x143)](_0x3752a5[_0x3cf057(0x21a)]))return console[_0x3cf057(0x1da)](_0x3cf057(0x1b9)),!0x1;if(_0x3752a5['externalReferences'][_0x3cf057(0x208)]===0x0)return!0x0;let _0x1c664a=this[_0x3cf057(0x1a5)]['syncExecuteCommand'](_0xd45dae[_0x3cf057(0x182)]['id'],{'unitId':this[_0x3cf057(0xf8)][_0x3cf057(0x120)](),'references':_0x3752a5[_0x3cf057(0x21a)]});return _0x1c664a||console[_0x3cf057(0x1da)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x1c664a;}};_0x2003da=_0x13a9ae([_0x28bfcd(0x3,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x1ec)])],_0x2003da);let _0x20ef2a=function(_0x3c0a28){const _0x2a8578=_0x7fc612;return _0x3c0a28['Id']='id',_0x3c0a28[_0x2a8578(0x19b)]=_0x2a8578(0x18a),_0x3c0a28['Auto']=_0x2a8578(0x26c),_0x3c0a28;}({});function _0x252e80(_0x2966d1){const _0x2eb0c8=_0x7fc612;return!!(_0x2966d1&&_0x2966d1[_0x2eb0c8(0x104)]!==!0x0&&_0x2966d1[_0x2eb0c8(0x193)]!==_0x460afa[_0x2eb0c8(0x15a)]['RecordId']);}function _0x442707(_0x2d5dea,_0x4c3116,_0x554860='id'){const _0x108aea=_0x7fc612;if(!_0x4c3116)return{};let _0x5beef3={};return Object[_0x108aea(0x1be)](_0x4c3116)[_0x108aea(0x1ca)](([_0x31f8ad,_0x5ee32d])=>{const _0x7a7464=_0x108aea;let _0x430af4=_0x1163c7(_0x2d5dea,_0x31f8ad,_0x554860);_0x5beef3[_0x430af4]=_0xc6743b(_0x2d5dea[_0x7a7464(0x10d)][_0x430af4],_0x5ee32d);}),_0x5beef3;}function _0xc6743b(_0x29100b,_0x2a92c7){const _0x2b4e2a=_0x7fc612;if((_0x29100b==null?void 0x0:_0x29100b[_0x2b4e2a(0x193)])!==_0x460afa[_0x2b4e2a(0x15a)]['Attachment']||_0x2a92c7==null)return _0x2a92c7;if(!Array[_0x2b4e2a(0x143)](_0x2a92c7))throw TypeError(_0x2b4e2a(0x165)+_0x29100b[_0x2b4e2a(0x18a)]+_0x2b4e2a(0xc5));return _0x2a92c7[_0x2b4e2a(0xdd)]((_0x5dbdf1,_0x5a5bc2)=>_0x428122(_0x29100b,_0x5dbdf1,_0x5a5bc2));}function _0x1163c7(_0x2003e1,_0xfff639,_0x486013){const _0x15d84a=_0x7fc612;if(_0x486013==='id'||_0x486013===_0x15d84a(0x26c)&&_0x2003e1['fields'][_0xfff639])return _0xfff639;let _0x3e2812=Object[_0x15d84a(0xda)](_0x2003e1['fields'])[_0x15d84a(0x157)](_0x510a30=>_0x510a30[_0x15d84a(0x18a)]===_0xfff639);if(_0x3e2812['length']===0x1)return _0x3e2812[0x0]['id'];throw _0x3e2812[_0x15d84a(0x208)]>0x1?Error(_0x15d84a(0x205)+_0xfff639):Error(_0x15d84a(0x16e)+_0xfff639);}function _0x428122(_0x5562ff,_0x239ac7,_0xe86263){const _0x3b9a0d=_0x7fc612;let _0x2a667b=_0x3b9a0d(0xcd)+_0xe86263+_0x3b9a0d(0x10f)+_0x5562ff['name']+'\x22';if(!_0x11ee72(_0x239ac7))throw TypeError(_0x2a667b+_0x3b9a0d(0x1c4));if(_0x3b9a0d(0x11c)in _0x239ac7)throw TypeError(_0x2a667b+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x3b9a0d(0x193)in _0x239ac7)throw TypeError(_0x2a667b+_0x3b9a0d(0x196));let _0x42d8f8=_0x5707c8(_0x239ac7['id'],_0x2a667b,'id'),_0x23ef10=_0x5707c8(_0x239ac7[_0x3b9a0d(0x18a)],_0x2a667b,'name'),_0x2875a6=_0x5707c8(_0x239ac7[_0x3b9a0d(0xa5)],_0x2a667b,_0x3b9a0d(0xa5));return{'id':_0x42d8f8,'name':_0x23ef10,'source':_0x2875a6,'sourceType':_0x352df8(_0x239ac7[_0x3b9a0d(0xc6)],_0x2875a6,_0x2a667b),..._0xc80d1(_0x239ac7,_0x3b9a0d(0x13e),_0x2a667b),..._0x2d5093(_0x239ac7,_0x3b9a0d(0x258),_0x2a667b),..._0x2d5093(_0x239ac7,_0x3b9a0d(0x106),_0x2a667b),..._0x2d5093(_0x239ac7,_0x3b9a0d(0x12a),_0x2a667b),..._0xc80d1(_0x239ac7,_0x3b9a0d(0x185),_0x2a667b)};}function _0x352df8(_0x4d9829,_0x194df3,_0x3c114b){const _0x9b06a9=_0x7fc612;if(_0x4d9829==null)return _0x194df3[_0x9b06a9(0x1e2)](_0x9b06a9(0x202))?_0x460afa[_0x9b06a9(0x166)]['BASE64']:_0x460afa[_0x9b06a9(0x166)][_0x9b06a9(0x1a6)];if(_0x4d9829===_0x460afa[_0x9b06a9(0x166)]['URL']||_0x4d9829===_0x460afa[_0x9b06a9(0x166)][_0x9b06a9(0xce)]||_0x4d9829===_0x460afa[_0x9b06a9(0x166)]['BASE64'])return _0x4d9829;throw TypeError(_0x3c114b+_0x9b06a9(0x126));}function _0x5707c8(_0xecc862,_0x19a858,_0x40b693){const _0x7545de=_0x7fc612;if(typeof _0xecc862!='string'||!_0xecc862[_0x7545de(0xb4)]())throw TypeError(_0x19a858+_0x7545de(0x17d)+_0x40b693+_0x7545de(0x1f2));return _0xecc862;}function _0xc80d1(_0x8412fb,_0x221bb0,_0x3d4e33){const _0x540f39=_0x7fc612;let _0x37eb69=_0x8412fb[_0x221bb0];if(_0x37eb69==null)return{};if(typeof _0x37eb69!=_0x540f39(0x257)||!_0x37eb69[_0x540f39(0xb4)]())throw TypeError(_0x3d4e33+_0x540f39(0x17d)+_0x221bb0+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x221bb0]:_0x37eb69};}function _0x2d5093(_0x2e2a30,_0x186459,_0x1b19c7){const _0x3c9600=_0x7fc612;let _0xb845e1=_0x2e2a30[_0x186459];if(_0xb845e1==null)return{};if(typeof _0xb845e1!=_0x3c9600(0x173)||!Number[_0x3c9600(0xd2)](_0xb845e1)||_0xb845e1<0x0)throw TypeError(_0x1b19c7+_0x3c9600(0x17d)+_0x186459+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x186459]:_0xb845e1};}function _0x11ee72(_0x393c07){return typeof _0x393c07=='object'&&!!_0x393c07&&!Array['isArray'](_0x393c07);}var _0x29e6a3;let _0x7421c3=_0x29e6a3=class{constructor(_0x2b14b7,_0x5e112c,_0x55332c,_0x123fd6,_0x142452){const _0x1599a0=_0x7fc612;this['_base']=_0x2b14b7,this[_0x1599a0(0x1d1)]=_0x5e112c,this[_0x1599a0(0x1b5)]=_0x55332c,this[_0x1599a0(0x1a4)]=_0x123fd6,this[_0x1599a0(0x1a5)]=_0x142452,this['_assertInBounds']();}[_0x7fc612(0xd3)](){const _0x3b2c82=_0x7fc612;return this['_base'][_0x3b2c82(0x120)]();}[_0x7fc612(0x22e)](){const _0x125e0a=_0x7fc612;return this[_0x125e0a(0x1d1)][_0x125e0a(0x120)]();}[_0x7fc612(0x1cc)](){const _0x2d6243=_0x7fc612;return{...this[_0x2d6243(0x1b5)]};}[_0x7fc612(0x22d)](){const _0x5d7736=_0x7fc612;return this[_0x5d7736(0x1b5)][_0x5d7736(0x163)];}[_0x7fc612(0x18c)](){const _0x172c80=_0x7fc612;return this[_0x172c80(0x1b5)][_0x172c80(0x13c)];}[_0x7fc612(0x23c)](){const _0xc4562=_0x7fc612;return this['_range']['endRow']-this[_0xc4562(0x1b5)]['startRow']+0x1;}[_0x7fc612(0x149)](){const _0x49da50=_0x7fc612;return this[_0x49da50(0x1b5)][_0x49da50(0x129)]-this['_range'][_0x49da50(0x13c)]+0x1;}[_0x7fc612(0x21e)](){const _0xfefac0=_0x7fc612;let _0x495c93=this[_0xfefac0(0x26d)](),_0xad1aac=this[_0xfefac0(0xc4)](_0x495c93),_0x5930d0=[];for(let _0x976285=this[_0xfefac0(0x1b5)][_0xfefac0(0x163)];_0x976285<=this[_0xfefac0(0x1b5)][_0xfefac0(0xc9)];_0x976285++){var _0x2f0157;let _0x140b66=(_0x2f0157=_0x495c93[_0xfefac0(0x122)])==null?void 0x0:_0x2f0157[_0x976285],_0xd3b3ab=[];for(let _0xd0f638=this[_0xfefac0(0x1b5)][_0xfefac0(0x13c)];_0xd0f638<=this[_0xfefac0(0x1b5)][_0xfefac0(0x129)];_0xd0f638++){let _0x146d49=_0xad1aac[_0xd0f638];_0xd3b3ab[_0xfefac0(0x1ae)](_0x140b66&&_0x146d49?(0x0,_0x5c88db[_0xfefac0(0xaf)])(_0x495c93,_0x140b66,_0x146d49):null);}_0x5930d0['push'](_0xd3b3ab);}return _0x5930d0;}[_0x7fc612(0x23d)](){const _0x16f115=_0x7fc612;var _0x43b60b;return((_0x43b60b=this[_0x16f115(0x21e)]()[0x0])==null?void 0x0:_0x43b60b[0x0])??null;}[_0x7fc612(0xe4)](_0x32ccc2){const _0x2f0473=_0x7fc612;return this[_0x2f0473(0x183)]([[_0x32ccc2]]);}[_0x7fc612(0x183)](_0x2040f8){const _0x1414d5=_0x7fc612;let _0x107280=this['getNumRows'](),_0x1d2c18=this['getNumColumns']();if(_0x2040f8['length']>_0x107280||_0x2040f8[_0x1414d5(0x24e)](_0xe84f40=>_0xe84f40['length']>_0x1d2c18)){var _0x328665;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2040f8[_0x1414d5(0x208)]+'x'+(((_0x328665=_0x2040f8[0x0])==null?void 0x0:_0x328665[_0x1414d5(0x208)])??0x0)+_0x1414d5(0x142)+_0x107280+'x'+_0x1d2c18+'.');}let _0x3d23d6=this[_0x1414d5(0x26d)](),_0x9b2e45=this[_0x1414d5(0xc4)](_0x3d23d6),_0x5e4376=_0x2040f8[_0x1414d5(0x1b0)]((_0x5e74d3,_0x319ac9)=>_0x5e74d3[_0x1414d5(0xdd)]((_0x385426,_0x4c4336)=>{const _0x4ba10c=_0x1414d5;var _0x295936;let _0x1d3feb=this[_0x4ba10c(0x1b5)][_0x4ba10c(0x163)]+_0x319ac9,_0x44f846=_0x9b2e45[this[_0x4ba10c(0x1b5)][_0x4ba10c(0x13c)]+_0x4c4336],_0x423a19=(_0x295936=_0x3d23d6[_0x4ba10c(0x122)])==null?void 0x0:_0x295936[_0x1d3feb];if(!_0x44f846||!_0x423a19)throw Error(_0x4ba10c(0x188));return{'recordId':_0x423a19,'fieldId':_0x44f846,'value':_0x385426};}));return this['_commandService'][_0x1414d5(0x116)](_0x5c88db[_0x1414d5(0xcf)]['id'],{'unitId':this[_0x1414d5(0xf8)]['getId'](),'tableId':this[_0x1414d5(0x1d1)][_0x1414d5(0x120)](),'patches':_0x5e4376,'source':_0x5c88db[_0x1414d5(0x21c)][_0x1414d5(0x137)]});}[_0x7fc612(0x1fe)](){const _0x45f4fb=_0x7fc612;return this[_0x45f4fb(0x183)](Array[_0x45f4fb(0x144)]({'length':this[_0x45f4fb(0x23c)]()},()=>Array[_0x45f4fb(0x144)]({'length':this[_0x45f4fb(0x149)]()},()=>null)));}[_0x7fc612(0xe1)](_0xbadc55,_0x558647,_0x25f62a=this[_0x7fc612(0x23c)](),_0x393ed0=this[_0x7fc612(0x149)]()){const _0x583543=_0x7fc612;return this['_inject'][_0x583543(0x254)](_0x29e6a3,this[_0x583543(0xf8)],this[_0x583543(0x1d1)],{'startRow':this[_0x583543(0x1b5)][_0x583543(0x163)]+_0xbadc55,'startColumn':this[_0x583543(0x1b5)][_0x583543(0x13c)]+_0x558647,'endRow':this[_0x583543(0x1b5)]['startRow']+_0xbadc55+_0x25f62a-0x1,'endColumn':this[_0x583543(0x1b5)][_0x583543(0x13c)]+_0x558647+_0x393ed0-0x1},this[_0x583543(0x1a4)]);}['_getTable'](){const _0x26d41e=_0x7fc612;let _0x28739f=this['_table'][_0x26d41e(0x1f6)]();if(!_0x28739f)throw Error(_0x26d41e(0x1ce));return(0x0,_0x5c88db[_0x26d41e(0x1e5)])(_0x28739f);}[_0x7fc612(0x1ab)](){const _0x4f011a=_0x7fc612;var _0x3d4c9c;let _0x443212=this[_0x4f011a(0x26d)](),_0x3d9005=((_0x3d4c9c=_0x443212[_0x4f011a(0x1b8)])==null?void 0x0:_0x3d4c9c[_0x4f011a(0x208)])??0x0,_0x3b95a1=this[_0x4f011a(0xc4)](_0x443212)[_0x4f011a(0x208)];if(this[_0x4f011a(0x1b5)][_0x4f011a(0x163)]<0x0||this[_0x4f011a(0x1b5)][_0x4f011a(0x13c)]<0x0||this[_0x4f011a(0x1b5)][_0x4f011a(0xc9)]<this[_0x4f011a(0x1b5)][_0x4f011a(0x163)]||this[_0x4f011a(0x1b5)][_0x4f011a(0x129)]<this[_0x4f011a(0x1b5)]['startColumn']||this['_range'][_0x4f011a(0xc9)]>=Math[_0x4f011a(0x17c)](_0x3d9005,0x1)||this[_0x4f011a(0x1b5)][_0x4f011a(0x129)]>=Math[_0x4f011a(0x17c)](_0x3b95a1,0x1))throw Error(_0x4f011a(0x1dd)+_0x3d9005+',\x20max\x20columns:\x20'+_0x3b95a1+',\x20range:\x20'+JSON[_0x4f011a(0xf9)](this[_0x4f011a(0x1b5)])+'.');}[_0x7fc612(0xc4)](_0x341603){const _0x20b5b7=_0x7fc612;return _0x341603[_0x20b5b7(0x266)]['filter'](_0x2c60b2=>_0x252e80(_0x341603[_0x20b5b7(0x10d)][_0x2c60b2]));}};_0x7421c3=_0x29e6a3=_0x13a9ae([_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x11e)])],_0x7421c3);function _0x355bd6(_0x40d272){'@babel/helpers - typeof';const _0x217e0e=_0x7fc612;return _0x355bd6=typeof Symbol==_0x217e0e(0x117)&&typeof Symbol[_0x217e0e(0x1c1)]==_0x217e0e(0xd8)?function(_0x46eefa){return typeof _0x46eefa;}:function(_0x5a6936){const _0x3a8328=_0x217e0e;return _0x5a6936&&typeof Symbol=='function'&&_0x5a6936[_0x3a8328(0xfd)]===Symbol&&_0x5a6936!==Symbol['prototype']?_0x3a8328(0xd8):typeof _0x5a6936;},_0x355bd6(_0x40d272);}function _0x519528(_0x3e2930,_0x428fe2){const _0x58ae1a=_0x7fc612;if(_0x355bd6(_0x3e2930)!='object'||!_0x3e2930)return _0x3e2930;var _0x4af851=_0x3e2930[Symbol[_0x58ae1a(0xef)]];if(_0x4af851!==void 0x0){var _0x37637a=_0x4af851[_0x58ae1a(0x1e7)](_0x3e2930,_0x428fe2||_0x58ae1a(0x1a9));if(_0x355bd6(_0x37637a)!='object')return _0x37637a;throw TypeError(_0x58ae1a(0x18f));}return(_0x428fe2==='string'?String:Number)(_0x3e2930);}function _0x470fcf(_0x1dc220){const _0x11cbe4=_0x7fc612;var _0x50ad3f=_0x519528(_0x1dc220,_0x11cbe4(0x257));return _0x355bd6(_0x50ad3f)==_0x11cbe4(0xd8)?_0x50ad3f:_0x50ad3f+'';}function _0x4bfb41(_0x30c01e,_0x3cac1b,_0x203a85){const _0x27ecd6=_0x7fc612;return(_0x3cac1b=_0x470fcf(_0x3cac1b))in _0x30c01e?Object[_0x27ecd6(0x24b)](_0x30c01e,_0x3cac1b,{'value':_0x203a85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c01e[_0x3cac1b]=_0x203a85,_0x30c01e;}var _0x58929a;let _0x54b90e=_0x58929a=class extends _0x1813e5[_0x7fc612(0xa9)]{constructor(_0x1960d3,_0x4bb3ca,_0xe43480,_0xc28f69,_0x121866,_0x255924){const _0x3aa6dc=_0x7fc612;super(_0xc28f69),this[_0x3aa6dc(0xf8)]=_0x1960d3,this[_0x3aa6dc(0x1d1)]=_0x4bb3ca,this[_0x3aa6dc(0x1d9)]=_0xe43480,this[_0x3aa6dc(0x1aa)]=_0xc28f69,this[_0x3aa6dc(0x1a5)]=_0x121866,this['_permissionService']=_0x255924,_0x4bfb41(this,_0x3aa6dc(0x17a),void 0x0),_0x4bfb41(this,_0x3aa6dc(0x195),void 0x0),this[_0x3aa6dc(0x17a)]=_0x1960d3[_0x3aa6dc(0x120)](),this[_0x3aa6dc(0x195)]=_0x4bb3ca['getId']();}['getBaseFacade'](){return this['_base'];}[_0x7fc612(0x10b)](){const _0x1d32c7=_0x7fc612;return this[_0x1d32c7(0x1d1)];}[_0x7fc612(0x120)](){const _0x5eb4fd=_0x7fc612;return this[_0x5eb4fd(0x1d9)];}[_0x7fc612(0x177)](){const _0x567249=_0x7fc612;let _0x3b1e5a=this['_table']['getId']();return new _0x5a8ed0(this[_0x567249(0xf8)][_0x567249(0x120)](),(0x0,_0x5c88db[_0x567249(0x236)])(_0x3b1e5a,this[_0x567249(0x1d9)]),[(0x0,_0x5c88db[_0x567249(0x16c)])(_0x3b1e5a)],this[_0x567249(0x1a5)],this['_permissionService']);}[_0x7fc612(0x184)](){const _0x330fbd=_0x7fc612;return{...this[_0x330fbd(0x215)](),'values':this[_0x330fbd(0x21e)]()};}[_0x7fc612(0x23d)](_0x1285f1){const _0x1c2173=_0x7fc612;return _0x252e80(this[_0x1c2173(0x1d1)][_0x1c2173(0x1f6)]()[_0x1c2173(0x10d)][_0x1285f1])?this[_0x1c2173(0x215)]()[_0x1c2173(0xda)][_0x1285f1]??null:null;}['getValues'](){const _0x2a147c=_0x7fc612;let _0x48f101=this[_0x2a147c(0x1d1)][_0x2a147c(0x1f6)]();return Object['fromEntries'](Object[_0x2a147c(0x1be)](this['_getRecord']()[_0x2a147c(0xda)])[_0x2a147c(0x157)](([_0x2a154b])=>_0x252e80(_0x48f101[_0x2a147c(0x10d)][_0x2a154b])));}[_0x7fc612(0xe4)](_0x2a5e6b,_0x87bb83){const _0x599cae=_0x7fc612;let _0x5eeecf=this[_0x599cae(0x1d1)][_0x599cae(0x1f6)]()[_0x599cae(0x10d)][_0x2a5e6b];return this[_0x599cae(0x1a5)]['syncExecuteCommand'](_0x5c88db['UpdateBaseCellCommand']['id'],{'unitId':this[_0x599cae(0xf8)][_0x599cae(0x120)](),'tableId':this[_0x599cae(0x1d1)][_0x599cae(0x120)](),'recordId':this[_0x599cae(0x1d9)],'fieldId':_0x2a5e6b,'value':_0xc6743b(_0x5eeecf,_0x87bb83),'source':_0x5c88db[_0x599cae(0x21c)][_0x599cae(0x137)]});}[_0x7fc612(0x18b)](_0x243759,_0x1f6d0d){const _0x5314a9=_0x7fc612;return this['setValue'](_0x243759,_0x1f6d0d[_0x5314a9(0xdd)](_0x1bc2a1=>({..._0x1bc2a1})));}[_0x7fc612(0x1b4)](_0x1a9014){const _0xc28d5e=_0x7fc612;this[_0xc28d5e(0x14f)](_0x1a9014);let _0x46e85c=this[_0xc28d5e(0x23d)](_0x1a9014);return Array[_0xc28d5e(0x143)](_0x46e85c)?_0x46e85c[_0xc28d5e(0xdd)]((_0x84d62b,_0x36b250)=>_0x348615(_0x84d62b,_0x1a9014,_0x36b250)):[];}['deleteAttachments'](_0x2812e2,_0x6e47ac){const _0x331a23=_0x7fc612;this[_0x331a23(0x14f)](_0x2812e2);let _0xbd676d=new Set(_0x6e47ac[_0x331a23(0xdd)](_0x4f99b1=>_0x4f99b1['id']));if(!_0xbd676d[_0x331a23(0x258)])return!0x0;let _0x56aaf9=this[_0x331a23(0x1b4)](_0x2812e2),_0x5dafe8=_0x56aaf9[_0x331a23(0x157)](_0x10c96b=>!_0xbd676d[_0x331a23(0x268)](_0x10c96b['id']));return _0x5dafe8['length']===_0x56aaf9[_0x331a23(0x208)]||this[_0x331a23(0x18b)](_0x2812e2,_0x5dafe8);}['setValues'](_0x43f11a,_0x2df142='id'){const _0x35bf38=_0x7fc612;let _0x331c2d=this[_0x35bf38(0x1d1)]['getTable'](),_0x21fb6d=[{'recordId':this[_0x35bf38(0x1d9)],'values':_0x442707(_0x331c2d,_0x43f11a,_0x2df142)}];return this[_0x35bf38(0x1a5)][_0x35bf38(0x116)](_0x5c88db[_0x35bf38(0x25c)]['id'],{'unitId':this[_0x35bf38(0xf8)][_0x35bf38(0x120)](),'tableId':this[_0x35bf38(0x1d1)]['getId'](),'patches':_0x21fb6d,'source':_0x5c88db['BaseEventSource'][_0x35bf38(0x137)]});}['delete'](){const _0x52abf8=_0x7fc612;return this[_0x52abf8(0x1a5)][_0x52abf8(0x116)](_0x5c88db['DeleteBaseRecordCommand']['id'],{'unitId':this[_0x52abf8(0xf8)]['getId'](),'tableId':this[_0x52abf8(0x1d1)][_0x52abf8(0x120)](),'recordId':this[_0x52abf8(0x1d9)],'source':_0x5c88db[_0x52abf8(0x21c)][_0x52abf8(0x137)]});}[_0x7fc612(0xfa)](_0x2fbd74){const _0x42492f=_0x7fc612;let _0x24f24a={...this[_0x42492f(0x215)](),..._0x2fbd74,'id':(0x0,_0x460afa['generateRandomId'])(0x6)};_0x24f24a[_0x42492f(0xda)]={..._0x24f24a[_0x42492f(0xda)],..._0x2fbd74==null?void 0x0:_0x2fbd74[_0x42492f(0xda)]},Reflect[_0x42492f(0x1fc)](_0x24f24a[_0x42492f(0xda)],_0x460afa[_0x42492f(0x17b)]);let _0xa23708=Date[_0x42492f(0x170)]();if(_0x24f24a[_0x42492f(0x225)]||=''+_0xa23708,_0x24f24a[_0x42492f(0x244)]||=_0xa23708,_0x24f24a[_0x42492f(0x263)]||=_0xa23708,!this[_0x42492f(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x42492f(0x21f)]['id'],{'unitId':this[_0x42492f(0xf8)][_0x42492f(0x120)](),'tableId':this[_0x42492f(0x1d1)][_0x42492f(0x120)](),'sourceRecordId':this[_0x42492f(0x1d9)],'record':_0x24f24a,'source':_0x5c88db[_0x42492f(0x21c)][_0x42492f(0x137)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x42492f(0x1d9)]+'\x22.');return this[_0x42492f(0x1aa)][_0x42492f(0x254)](_0x58929a,this[_0x42492f(0xf8)],this[_0x42492f(0x1d1)],_0x24f24a['id'],this[_0x42492f(0x1aa)]);}['setOrderKey'](_0x151bef){const _0x26f9aa=_0x7fc612;return this[_0x26f9aa(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x26f9aa(0xc2)]['id'],{'unitId':this[_0x26f9aa(0xf8)][_0x26f9aa(0x120)](),'tableId':this[_0x26f9aa(0x1d1)][_0x26f9aa(0x120)](),'recordId':this[_0x26f9aa(0x1d9)],'orderKey':_0x151bef});}[_0x7fc612(0x24d)](_0x1276bf){const _0x2da815=_0x7fc612;let _0x15a193=this[_0x2da815(0x234)](_0x1276bf),_0x5c4d68=this[_0x2da815(0x23d)](_0x15a193['id']);return(0x0,_0x5c88db['parseRecordLinkIds'])(_0x5c4d68);}[_0x7fc612(0x1a3)](_0x1c311b,_0x597095){const _0xd470a=_0x7fc612;let _0x1e0540=this[_0xd470a(0x234)](_0x1c311b),_0x3f3e3f=(0x0,_0x5c88db[_0xd470a(0x133)])(_0x597095),_0x419888=(0x0,_0x5c88db[_0xd470a(0x233)])(this[_0xd470a(0xf8)][_0xd470a(0x14d)]()[_0xd470a(0x153)](),_0x1e0540,_0x3f3e3f);if(!_0x419888[_0xd470a(0x15f)])throw Error(_0x419888[_0xd470a(0x26b)]??_0xd470a(0xad));return this[_0xd470a(0x1a5)][_0xd470a(0x116)](_0x5c88db[_0xd470a(0x21b)]['id'],{'unitId':this['_base'][_0xd470a(0x120)](),'tableId':this[_0xd470a(0x1d1)][_0xd470a(0x120)](),'recordId':this[_0xd470a(0x1d9)],'fieldId':_0x1c311b,'value':_0x3f3e3f,'source':_0x5c88db['BaseEventSource'][_0xd470a(0x137)]});}['addLinkedRecord'](_0x4abb9a,_0x28da4d){const _0xc6d78e=_0x7fc612;let _0x4fa22a=this[_0xc6d78e(0x234)](_0x4abb9a),_0x427489=(0x0,_0x5c88db['getRecordLinkFieldConfig'])(_0x4fa22a);if(!_0x427489)throw Error(_0xc6d78e(0x17e)+_0x4abb9a+'\x22\x20has\x20invalid\x20config.');let _0xdc0227=this['getLinkedRecordIds'](_0x4abb9a);return _0x427489[_0xc6d78e(0xa4)]&&_0xdc0227[_0xc6d78e(0x23b)](_0x28da4d)?!0x0:this[_0xc6d78e(0x1a3)](_0x4abb9a,_0x427489[_0xc6d78e(0xa4)]?[..._0xdc0227,_0x28da4d]:[_0x28da4d]);}[_0x7fc612(0x1f4)](_0xcea406,_0x281f3d){const _0x34ce62=_0x7fc612;let _0x158944=this[_0x34ce62(0x24d)](_0xcea406);return!_0x158944[_0x34ce62(0x23b)](_0x281f3d)||this[_0x34ce62(0x1a3)](_0xcea406,_0x158944[_0x34ce62(0x157)](_0x460eef=>_0x460eef!==_0x281f3d));}[_0x7fc612(0x249)](_0x1754aa){const _0x49ab42=_0x7fc612;let _0x1e1614=this[_0x49ab42(0xbe)](_0x1754aa)['parentByRecordId'][_0x49ab42(0xfe)](this[_0x49ab42(0x1d9)])??null;return _0x1e1614?this[_0x49ab42(0x1d1)][_0x49ab42(0x267)](_0x1e1614):null;}['getChildren'](_0x3b0334){const _0x133c01=_0x7fc612;return(this[_0x133c01(0xbe)](_0x3b0334)[_0x133c01(0x19c)][_0x133c01(0xfe)](this['_recordId'])??[])[_0x133c01(0x1b0)](_0x406ade=>{const _0x5d4338=_0x133c01;let _0x2b50be=this[_0x5d4338(0x1d1)][_0x5d4338(0x267)](_0x406ade);return _0x2b50be?[_0x2b50be]:[];});}[_0x7fc612(0x151)](_0x3a821d){const _0x13fc9c=_0x7fc612;let _0x2504b7=this[_0x13fc9c(0xbe)](_0x3a821d),_0x30175e=[],_0x3fd7d1=_0x2504b7[_0x13fc9c(0x1e3)][_0x13fc9c(0xfe)](this[_0x13fc9c(0x1d9)])??null;for(;_0x3fd7d1;){let _0x412ac7=this['_table'][_0x13fc9c(0x267)](_0x3fd7d1);_0x412ac7&&_0x30175e[_0x13fc9c(0x1ae)](_0x412ac7),_0x3fd7d1=_0x2504b7[_0x13fc9c(0x1e3)]['get'](_0x3fd7d1)??null;}return _0x30175e;}['getDescendants'](_0x3bbed0){const _0x3e6b9f=_0x7fc612;let _0x1a9f9f=this['_getHierarchyIndex'](_0x3bbed0),_0x4a3bef=_0x1a9f9f['orderedRecordIds'][_0x3e6b9f(0x164)](this['_recordId']),_0x19e6a2=_0x1a9f9f[_0x3e6b9f(0x226)][_0x3e6b9f(0x268)](this[_0x3e6b9f(0x1d9)])?this[_0x3e6b9f(0x23f)](_0x1a9f9f[_0x3e6b9f(0x19c)],this[_0x3e6b9f(0x1d9)]):[];return _0x4a3bef<0x0?[]:_0x19e6a2['flatMap'](_0x3df358=>{const _0x13e8d6=_0x3e6b9f;let _0x3a9a1c=this[_0x13e8d6(0x1d1)][_0x13e8d6(0x267)](_0x3df358);return _0x3a9a1c?[_0x3a9a1c]:[];});}['setParent'](_0x2e66dd,_0x4266c8,_0x6d703a){const _0x669f4b=_0x7fc612;return this['_commandService'][_0x669f4b(0x116)](_0x5c88db['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this[_0x669f4b(0xf8)][_0x669f4b(0x120)](),'tableId':this[_0x669f4b(0x1d1)][_0x669f4b(0x120)](),'fieldId':_0x2e66dd,'recordId':this['_recordId'],'parentRecordId':_0x4266c8,'orderKey':_0x6d703a,'source':_0x5c88db[_0x669f4b(0x21c)][_0x669f4b(0x137)]});}[_0x7fc612(0xf3)](_0x144f35,_0x2a4cc7,_0x17b3ca='id',_0x46c434){const _0x48f7e2=_0x7fc612;let _0x4c1a80=this[_0x48f7e2(0x1d1)][_0x48f7e2(0x1f6)](),_0x3ce232=Date[_0x48f7e2(0x170)](),_0x159e39={..._0x46c434,'id':(0x0,_0x460afa[_0x48f7e2(0x115)])(0x6),'values':_0x442707(_0x4c1a80,_0x2a4cc7,_0x17b3ca),'orderKey':(_0x46c434==null?void 0x0:_0x46c434[_0x48f7e2(0x225)])||''+_0x3ce232,'createdAt':(_0x46c434==null?void 0x0:_0x46c434[_0x48f7e2(0x244)])||_0x3ce232,'updatedAt':(_0x46c434==null?void 0x0:_0x46c434[_0x48f7e2(0x263)])||_0x3ce232};if(!this[_0x48f7e2(0x1a5)][_0x48f7e2(0x116)](_0x5c88db[_0x48f7e2(0x112)]['id'],{'unitId':this[_0x48f7e2(0xf8)]['getId'](),'tableId':this['_table']['getId'](),'fieldId':_0x144f35,'parentRecordId':this['_recordId'],'record':_0x159e39,'source':_0x5c88db[_0x48f7e2(0x21c)]['Facade']}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x48f7e2(0x1d9)]+'\x22.');return this['_injector'][_0x48f7e2(0x254)](_0x58929a,this[_0x48f7e2(0xf8)],this[_0x48f7e2(0x1d1)],_0x159e39['id'],this['_injector']);}['_getHierarchyIndex'](_0x5dba52){const _0x582a55=_0x7fc612;return(0x0,_0x5c88db[_0x582a55(0x15d)])(this[_0x582a55(0x1d1)][_0x582a55(0x1f6)](),_0x5dba52);}[_0x7fc612(0x23f)](_0x2131b3,_0x2b4ad7){let _0x5b3ba7=[],_0x472514=_0x58d9ca=>{const _0xe678bd=_0x36bd;for(let _0x29c377 of _0x2131b3[_0xe678bd(0xfe)](_0x58d9ca)??[])_0x5b3ba7[_0xe678bd(0x1ae)](_0x29c377),_0x472514(_0x29c377);};return _0x472514(_0x2b4ad7),_0x5b3ba7;}['_getRecord'](){const _0x401412=_0x7fc612;let _0x476abe=this['_table']['getTable']()[_0x401412(0x211)][this['_recordId']];if(!_0x476abe)throw Error(_0x401412(0x111)+this[_0x401412(0x1d9)]+_0x401412(0x176));return _0x476abe;}['_getRecordLinkField'](_0x188b85){const _0x236690=_0x7fc612;let _0x5237c5=this['_table'][_0x236690(0x1f6)]()['fields'][_0x188b85];if(!_0x5237c5||_0x5237c5[_0x236690(0x193)]!==_0x460afa[_0x236690(0x15a)]['RecordLink'])throw Error(_0x236690(0xe0)+_0x188b85+_0x236690(0x224));return _0x5237c5;}[_0x7fc612(0x14f)](_0x28d107){const _0x4f711e=_0x7fc612;let _0x3bdcbf=this['_table'][_0x4f711e(0x1f6)]()[_0x4f711e(0x10d)][_0x28d107];if(!_0x3bdcbf||_0x3bdcbf[_0x4f711e(0x193)]!==_0x460afa['BaseFieldType']['Attachment'])throw Error(_0x4f711e(0xe0)+_0x28d107+_0x4f711e(0x11a));return _0x3bdcbf;}};_0x54b90e=_0x58929a=_0x13a9ae([_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x5,_0x460afa[_0x7fc612(0x1ec)])],_0x54b90e);function _0x4f7114(_0x3c199f){const _0x2eb747=_0x7fc612;return!!(_0x3c199f&&typeof _0x3c199f==_0x2eb747(0x100)&&'id'in _0x3c199f&&typeof _0x3c199f['id']==_0x2eb747(0x257)&&'name'in _0x3c199f&&typeof _0x3c199f[_0x2eb747(0x18a)]==_0x2eb747(0x257));}function _0x348615(_0x5c8504,_0x16efbb,_0x13b3ee){const _0x397c48=_0x7fc612;if(!_0x4f7114(_0x5c8504))throw Error(_0x397c48(0x171)+_0x13b3ee+'\x20in\x20field\x20\x22'+_0x16efbb+_0x397c48(0xe8));return{..._0x5c8504};}let _0x282005=class{constructor(_0x2db3dd,_0x14bbef,_0x52e7ed,_0x38dffc,_0x4d5ccc,_0x563da2,_0x3aac7f){const _0x4706a5=_0x7fc612;this[_0x4706a5(0xf8)]=_0x2db3dd,this[_0x4706a5(0x1d1)]=_0x14bbef,this[_0x4706a5(0xe5)]=_0x52e7ed,this[_0x4706a5(0x1aa)]=_0x38dffc,this[_0x4706a5(0x1a5)]=_0x4d5ccc,this[_0x4706a5(0x1e1)]=_0x563da2,this[_0x4706a5(0x1c5)]=_0x3aac7f;}[_0x7fc612(0x120)](){const _0x5e941a=_0x7fc612;return this[_0x5e941a(0xe5)];}['getPermission'](){const _0x3ff2ec=_0x7fc612;let _0x1ab22c=this[_0x3ff2ec(0x1d1)]['getId']();return new _0x5a8ed0(this[_0x3ff2ec(0xf8)]['getId'](),(0x0,_0x5c88db[_0x3ff2ec(0xd0)])(_0x1ab22c,this[_0x3ff2ec(0xe5)]),[(0x0,_0x5c88db['getBaseTablePermissionObjectId'])(_0x1ab22c)],this[_0x3ff2ec(0x1a5)],this[_0x3ff2ec(0x1e1)]);}['getView'](){const _0x4db57b=_0x7fc612;return this[_0x4db57b(0xdc)]();}['getName'](){const _0x5eff38=_0x7fc612;return this[_0x5eff38(0xdc)]()[_0x5eff38(0x18a)];}[_0x7fc612(0xfb)](){const _0x51f7c6=_0x7fc612;return this[_0x51f7c6(0xdc)]()[_0x51f7c6(0x193)];}['setName'](_0x2d19c2){const _0x2f203d=_0x7fc612;return this[_0x2f203d(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x2f203d(0xac)]['id'],{'unitId':this['_base'][_0x2f203d(0x120)](),'tableId':this[_0x2f203d(0x1d1)][_0x2f203d(0x120)](),'viewId':this[_0x2f203d(0xe5)],'name':_0x2d19c2});}['getConfig'](){const _0x4ea6f7=_0x7fc612;let _0x53296b=this[_0x4ea6f7(0xfb)](),_0x127685=this[_0x4ea6f7(0xdc)]()[_0x4ea6f7(0x1c8)];switch(_0x53296b){case _0x460afa[_0x4ea6f7(0xb8)]['Grid']:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0xb6)]:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0x155)]:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0x1a1)]:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0xb9)]:return _0x127685;default:return _0x127685;}}[_0x7fc612(0x190)](_0x10943c){const _0x3507f8=_0x7fc612;return this[_0x3507f8(0x1a5)][_0x3507f8(0x116)](_0x5c88db[_0x3507f8(0x1e9)]['id'],{'unitId':this[_0x3507f8(0xf8)][_0x3507f8(0x120)](),'tableId':this[_0x3507f8(0x1d1)]['getId'](),'viewId':this[_0x3507f8(0xe5)],'patch':_0x10943c});}[_0x7fc612(0x160)](){const _0x41e2cf=_0x7fc612;var _0x5f9f9f;return _0x460afa['Tools'][_0x41e2cf(0x1a2)](((_0x5f9f9f=this[_0x41e2cf(0xdc)]()[_0x41e2cf(0x1c8)][_0x41e2cf(0x222)])==null?void 0x0:_0x5f9f9f[_0x41e2cf(0x139)])??[]);}[_0x7fc612(0x1d5)](_0x4a4514){const _0x3d7a04=_0x7fc612;return this[_0x3d7a04(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x3d7a04(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3d7a04(0x1d1)][_0x3d7a04(0x120)](),'viewId':this[_0x3d7a04(0xe5)],'type':_0x5c88db[_0x3d7a04(0xae)]['Set'],'rules':_0x4a4514});}[_0x7fc612(0x261)](_0x4a2078){const _0x45eb9a=_0x7fc612;return this[_0x45eb9a(0x1a5)][_0x45eb9a(0x116)](_0x5c88db[_0x45eb9a(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x45eb9a(0x1d1)][_0x45eb9a(0x120)](),'viewId':this[_0x45eb9a(0xe5)],'type':_0x5c88db[_0x45eb9a(0xae)]['Add'],'rule':_0x4a2078});}[_0x7fc612(0x18d)](_0x1b0945){const _0x8834f0=_0x7fc612;return this[_0x8834f0(0x1a5)][_0x8834f0(0x116)](_0x5c88db[_0x8834f0(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x8834f0(0xe5)],'type':_0x5c88db[_0x8834f0(0xae)][_0x8834f0(0x204)],'ruleId':_0x1b0945});}[_0x7fc612(0x12d)](){const _0x297e9e=_0x7fc612;return this['_commandService'][_0x297e9e(0x116)](_0x5c88db[_0x297e9e(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x297e9e(0x120)](),'viewId':this['_viewId'],'type':_0x5c88db['BaseConditionalColorRuleUpdateType'][_0x297e9e(0xd5)]});}['getFilter'](){const _0x15baf6=_0x7fc612;return this[_0x15baf6(0xdc)]()[_0x15baf6(0x157)]??null;}[_0x7fc612(0x1f3)](_0x3b8f72){const _0x408241=_0x7fc612;return this[_0x408241(0x1a5)][_0x408241(0x116)](_0x5c88db[_0x408241(0x22c)]['id'],{'unitId':this[_0x408241(0xf8)][_0x408241(0x120)](),'tableId':this[_0x408241(0x1d1)][_0x408241(0x120)](),'viewId':this['_viewId'],'filter':_0x3b8f72});}[_0x7fc612(0x138)](){const _0x1cdbb4=_0x7fc612;return this[_0x1cdbb4(0xdc)]()['sort']??[];}[_0x7fc612(0x1e4)](_0x10ec34){const _0x1ce9fa=_0x7fc612;return this[_0x1ce9fa(0x1a5)][_0x1ce9fa(0x116)](_0x5c88db[_0x1ce9fa(0x107)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x1ce9fa(0x120)](),'viewId':this[_0x1ce9fa(0xe5)],'sort':_0x10ec34});}['getGroup'](){const _0x14690a=_0x7fc612;return this[_0x14690a(0xdc)]()['group']??[];}['setGroup'](_0x55e345){const _0x55a85e=_0x7fc612;return this['_commandService']['syncExecuteCommand'](_0x5c88db[_0x55a85e(0x14b)]['id'],{'unitId':this[_0x55a85e(0xf8)][_0x55a85e(0x120)](),'tableId':this[_0x55a85e(0x1d1)][_0x55a85e(0x120)](),'viewId':this['_viewId'],'group':_0x55e345});}['getFieldSettings'](_0x4350f1){const _0x509fbc=_0x7fc612;var _0x5ace68;return _0x252e80(this['_table']['getTable']()['fields'][_0x4350f1])?((_0x5ace68=this[_0x509fbc(0xdc)]()[_0x509fbc(0x216)])==null?void 0x0:_0x5ace68[_0x4350f1])??{}:{};}[_0x7fc612(0x242)](){const _0x8a43e7=_0x7fc612;let _0x5ece99=this[_0x8a43e7(0x1d1)][_0x8a43e7(0x1f6)](),_0x5e2dab=this[_0x8a43e7(0xdc)]();return(_0x5e2dab[_0x8a43e7(0x266)]??_0x5ece99[_0x8a43e7(0x266)])[_0x8a43e7(0x157)](_0x195c69=>{const _0x245aa9=_0x8a43e7;var _0x154e1b;let _0x10b161=_0x5ece99[_0x245aa9(0x10d)][_0x195c69];return _0x252e80(_0x10b161)&&!((_0x154e1b=_0x5e2dab[_0x245aa9(0x216)])!=null&&(_0x154e1b=_0x154e1b[_0x195c69])!=null&&_0x154e1b[_0x245aa9(0xbf)]);})[_0x8a43e7(0xdd)](_0x4784d5=>this[_0x8a43e7(0x1aa)][_0x8a43e7(0x254)](_0x2003da,this[_0x8a43e7(0xf8)],this[_0x8a43e7(0x1d1)],_0x4784d5));}['setFieldVisible'](_0x346f15,_0x44281b){const _0x3bff61=_0x7fc612;return _0x252e80(this[_0x3bff61(0x1d1)]['getTable']()[_0x3bff61(0x10d)][_0x346f15])?this[_0x3bff61(0x1a5)][_0x3bff61(0x116)](_0x5c88db[_0x3bff61(0xc7)]['id'],{'unitId':this[_0x3bff61(0xf8)][_0x3bff61(0x120)](),'tableId':this[_0x3bff61(0x1d1)]['getId'](),'viewId':this[_0x3bff61(0xe5)],'fieldId':_0x346f15,'visible':_0x44281b}):!0x1;}['setFieldWidth'](_0x57e00c,_0x12e57b){const _0x514211=_0x7fc612;return _0x252e80(this[_0x514211(0x1d1)][_0x514211(0x1f6)]()[_0x514211(0x10d)][_0x57e00c])?this['_commandService']['syncExecuteCommand'](_0x5c88db[_0x514211(0x1f7)]['id'],{'unitId':this[_0x514211(0xf8)][_0x514211(0x120)](),'tableId':this[_0x514211(0x1d1)][_0x514211(0x120)](),'viewId':this[_0x514211(0xe5)],'fieldId':_0x57e00c,'width':_0x12e57b}):!0x1;}[_0x7fc612(0x10a)](_0x486891,_0x46e97e){const _0x11ef05=_0x7fc612;let _0x45870f=this[_0x11ef05(0x1d1)][_0x11ef05(0x1f6)](),_0x457261=_0x46e97e[_0x11ef05(0x1a7)]??_0x46e97e[_0x11ef05(0x150)];return!_0x252e80(_0x45870f['fields'][_0x486891])||!_0x457261||!_0x252e80(_0x45870f[_0x11ef05(0x10d)][_0x457261])?!0x1:this[_0x11ef05(0x1a5)][_0x11ef05(0x116)](_0x5c88db[_0x11ef05(0x198)]['id'],{'unitId':this['_base'][_0x11ef05(0x120)](),'tableId':this[_0x11ef05(0x1d1)][_0x11ef05(0x120)](),'viewId':this[_0x11ef05(0xe5)],'fieldId':_0x486891,'target':_0x46e97e});}[_0x7fc612(0x259)](_0x18814a){const _0x155f1c=_0x7fc612;return this[_0x155f1c(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x155f1c(0x16a)]['id'],{'unitId':this['_base'][_0x155f1c(0x120)](),'tableId':this[_0x155f1c(0x1d1)][_0x155f1c(0x120)](),'viewId':this[_0x155f1c(0xe5)],'target':_0x18814a});}['delete'](){const _0x31c2ba=_0x7fc612;return this['_commandService']['syncExecuteCommand'](_0x5c88db[_0x31c2ba(0x11b)]['id'],{'unitId':this[_0x31c2ba(0xf8)]['getId'](),'tableId':this[_0x31c2ba(0x1d1)]['getId'](),'viewId':this[_0x31c2ba(0xe5)]});}[_0x7fc612(0xfc)](){const _0x2791f3=_0x7fc612;return this[_0x2791f3(0x1c5)][_0x2791f3(0xfc)](this['_base']['getBase']()['getSnapshot'](),this[_0x2791f3(0x1d1)][_0x2791f3(0x120)](),this[_0x2791f3(0xe5)]);}[_0x7fc612(0xdc)](){const _0x25c3fe=_0x7fc612;let _0x4903e9=this[_0x25c3fe(0x1d1)][_0x25c3fe(0x1f6)]()['views'][this['_viewId']];if(!_0x4903e9)throw Error('[FView]:\x20view\x20\x22'+this[_0x25c3fe(0xe5)]+'\x22\x20does\x20not\x20exist.');return _0x4903e9;}};_0x282005=_0x13a9ae([_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x5,_0x460afa['IPermissionService']),_0x28bfcd(0x6,_0x5c88db[_0x7fc612(0x132)])],_0x282005);let _0x27bce8=class{constructor(_0xfa248d,_0x3ada76,_0x30702b,_0x5fa72f,_0x5e2792,_0x5d0911){const _0x2c14a1=_0x7fc612;this[_0x2c14a1(0xf8)]=_0xfa248d,this[_0x2c14a1(0x1c7)]=_0x3ada76,this['_injector']=_0x30702b,this[_0x2c14a1(0x1a5)]=_0x5fa72f,this[_0x2c14a1(0x1e1)]=_0x5e2792,this[_0x2c14a1(0x1c5)]=_0x5d0911;}['getBase'](){const _0x3a08e9=_0x7fc612;return this[_0x3a08e9(0xf8)][_0x3a08e9(0x14d)]();}[_0x7fc612(0x1f6)](){const _0xaf2d57=_0x7fc612;return this[_0xaf2d57(0x26d)]();}[_0x7fc612(0x120)](){const _0x43faad=_0x7fc612;return this[_0x43faad(0x1c7)];}['getPermission'](){const _0x33bb55=_0x7fc612;return new _0x5a8ed0(this[_0x33bb55(0x14d)]()['getUnitId'](),(0x0,_0x5c88db[_0x33bb55(0x16c)])(this[_0x33bb55(0x1c7)]),[],this[_0x33bb55(0x1a5)],this[_0x33bb55(0x1e1)]);}[_0x7fc612(0x207)](){const _0x5eb8d7=_0x7fc612;return(0x0,_0x5c88db['resolveBaseHierarchyFieldId'])(this[_0x5eb8d7(0x26d)]());}[_0x7fc612(0x101)](_0x3c6696){const _0x458633=_0x7fc612;return this[_0x458633(0x1a5)][_0x458633(0x116)](_0x5c88db[_0x458633(0x22a)]['id'],{'unitId':this['_base'][_0x458633(0x120)](),'tableId':this[_0x458633(0x1c7)],'fieldId':_0x3c6696});}['getName'](){const _0x497db1=_0x7fc612;return this[_0x497db1(0x26d)]()[_0x497db1(0x18a)];}['getFormulaName'](){const _0x353892=_0x7fc612;let _0x4c0df1=this[_0x353892(0xf8)][_0x353892(0x14d)]()[_0x353892(0x153)]();return(0x0,_0x5c88db[_0x353892(0x158)])(this['_getTable'](),_0x4c0df1);}[_0x7fc612(0x256)](_0x32a2e6){const _0x219b6f=_0x7fc612;let _0x4ff3e1=(0x0,_0x5c88db[_0x219b6f(0x1de)])(this['_base'][_0x219b6f(0x14d)]()['getSnapshot'](),_0x32a2e6,this['_tableId']);if(!_0x4ff3e1['valid'])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x32a2e6+'\x22.\x20'+_0x5c88db[_0x219b6f(0x141)]+'\x20'+_0x4ff3e1[_0x219b6f(0x26b)]);return this[_0x219b6f(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x219b6f(0x11f)]['id'],{'unitId':this[_0x219b6f(0xf8)][_0x219b6f(0x120)](),'tableId':this[_0x219b6f(0x1c7)],'name':_0x32a2e6});}[_0x7fc612(0xf7)](_0x5d30dd,_0x47490e){const _0x5c349e=_0x7fc612;let _0x200577=this['_base']['getBase']()[_0x5c349e(0x153)](),_0x2f00d9=this[_0x5c349e(0x26d)]();if(_0x47490e){let _0x50bdd6=this[_0x5c349e(0x1c5)][_0x5c349e(0xfc)](_0x200577,this[_0x5c349e(0x1c7)],_0x47490e),_0xdc9b3=_0x2f00d9[_0x5c349e(0x1bf)][_0x47490e],_0x25c558=_0x5d30dd['fieldIds']??_0x254de0(_0x2f00d9,_0xdc9b3,_0x50bdd6),_0x2fd7f2=_0x5c349e(0xab)in _0x50bdd6&&Array[_0x5c349e(0x143)](_0x50bdd6[_0x5c349e(0xab)])?_0x50bdd6[_0x5c349e(0xab)]:[];return(0x0,_0x5c88db[_0x5c349e(0x24c)])({..._0x5d30dd,'table':_0x2f00d9,'fieldIds':_0x25c558,'rows':_0x2fd7f2});}let _0x5b0428=(_0x2f00d9['recordOrder']?_0x2f00d9[_0x5c349e(0x1b8)][_0x5c349e(0xdd)](_0x4ca9a6=>_0x2f00d9[_0x5c349e(0x211)][_0x4ca9a6]):Object[_0x5c349e(0xda)](_0x2f00d9[_0x5c349e(0x211)])[_0x5c349e(0x109)]((_0x325de0,_0x3ac348)=>_0x325de0[_0x5c349e(0x225)][_0x5c349e(0x20b)](_0x3ac348[_0x5c349e(0x225)])))['filter'](_0x1f3501=>_0x1f3501)[_0x5c349e(0xdd)](_0xc03ca9=>({'recordId':_0xc03ca9['id'],'values':_0xc03ca9[_0x5c349e(0xda)]})),_0xde26a0=_0x5d30dd['fieldIds']??_0x2f00d9[_0x5c349e(0x266)][_0x5c349e(0x157)](_0x3248aa=>_0x252e80(_0x2f00d9[_0x5c349e(0x10d)][_0x3248aa]));return(0x0,_0x5c88db[_0x5c349e(0x24c)])({..._0x5d30dd,'table':_0x2f00d9,'fieldIds':_0xde26a0,'rows':_0x5b0428});}[_0x7fc612(0xe2)](){const _0xfd9802=_0x7fc612;return this['_getTable']()[_0xfd9802(0xd4)];}[_0x7fc612(0x235)](){const _0x10f752=_0x7fc612;let _0x2f3e4d=this[_0x10f752(0x26d)]();return _0x2f3e4d[_0x10f752(0x266)]['map'](_0x46372c=>_0x2f3e4d[_0x10f752(0x10d)][_0x46372c])[_0x10f752(0x157)](_0x252e80)[_0x10f752(0xdd)](_0x58b929=>this[_0x10f752(0x1aa)][_0x10f752(0x254)](_0x2003da,this[_0x10f752(0xf8)],this,_0x58b929['id']));}['getFieldById'](_0x2d4380){const _0x54403f=_0x7fc612;let _0x13c0d9=this[_0x54403f(0x26d)]()['fields'][_0x2d4380];return _0x252e80(_0x13c0d9)?this[_0x54403f(0x1aa)][_0x54403f(0x254)](_0x2003da,this[_0x54403f(0xf8)],this,_0x13c0d9['id']):null;}[_0x7fc612(0x13d)](_0x11a8e7){const _0x2a699a=_0x7fc612;let _0x543cf4=this[_0x2a699a(0x26d)]()['fields'],_0x206fc0=Object[_0x2a699a(0xda)](_0x543cf4)[_0x2a699a(0x12f)](_0x23aad2=>_0x252e80(_0x23aad2)&&_0x23aad2[_0x2a699a(0x18a)]===_0x11a8e7);return _0x206fc0?this[_0x2a699a(0x1aa)][_0x2a699a(0x254)](_0x2003da,this[_0x2a699a(0xf8)],this,_0x206fc0['id']):null;}[_0x7fc612(0xed)](){const _0x273e=_0x7fc612;let _0x9ba0ae=this[_0x273e(0x26d)]()[_0x273e(0xd4)];return this[_0x273e(0x1aa)][_0x273e(0x254)](_0x2003da,this[_0x273e(0xf8)],this,_0x9ba0ae);}[_0x7fc612(0xf0)](_0x52740c,_0x22883d,_0x2245eb){const _0x3f2968=_0x7fc612;var _0x5e8f79,_0x271299;if(!Object[_0x3f2968(0xda)](_0x460afa[_0x3f2968(0x15a)])['some'](_0x47fa64=>_0x47fa64===_0x22883d))throw Error(_0x3f2968(0x255)+String(_0x22883d)+'\x22.');if(_0x22883d===_0x460afa[_0x3f2968(0x15a)][_0x3f2968(0x1ef)]&&this[_0x3f2968(0x124)](_0x52740c,_0x2245eb),_0x22883d===_0x460afa[_0x3f2968(0x15a)][_0x3f2968(0xee)]&&(typeof(_0x2245eb==null||(_0x5e8f79=_0x2245eb[_0x3f2968(0x119)])==null||(_0x5e8f79=_0x5e8f79[_0x3f2968(0x1c8)])==null?void 0x0:_0x5e8f79[_0x3f2968(0x175)])!='string'||typeof _0x2245eb[_0x3f2968(0x119)][_0x3f2968(0x1c8)][_0x3f2968(0xa4)]!=_0x3f2968(0x247)))throw Error(_0x3f2968(0x227));let _0x22675f={..._0x2245eb==null?void 0x0:_0x2245eb['field'],'id':(0x0,_0x460afa[_0x3f2968(0x115)])(0x6),'name':_0x52740c,'type':_0x22883d,'config':(_0x2245eb==null||(_0x271299=_0x2245eb[_0x3f2968(0x119)])==null?void 0x0:_0x271299[_0x3f2968(0x1c8)])??{}};if(!this[_0x3f2968(0x1a5)][_0x3f2968(0x116)](_0x5c88db[_0x3f2968(0x1bb)]['id'],{'unitId':this[_0x3f2968(0xf8)][_0x3f2968(0x120)](),'tableId':this[_0x3f2968(0x1c7)],'field':_0x22675f,'index':_0x2245eb==null?void 0x0:_0x2245eb[_0x3f2968(0x1af)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x52740c+'\x22');return this[_0x3f2968(0x1aa)]['createInstance'](_0x2003da,this['_base'],this,_0x22675f['id']);}[_0x7fc612(0x124)](_0x258bf6,_0x1dc025){const _0x479a68=_0x7fc612;var _0x42505b;if(!_0x1dc025||!(_0x479a68(0x21a)in _0x1dc025)||!Array[_0x479a68(0x143)](_0x1dc025[_0x479a68(0x21a)]))throw Error(_0x479a68(0x168));let _0x4a7f62=this[_0x479a68(0x1a5)][_0x479a68(0x116)](_0x5c88db['ValidateBaseFormulaCommand']['id'],{'unitId':this[_0x479a68(0xf8)]['getId'](),'tableId':this[_0x479a68(0x1c7)],'formula':String(((_0x42505b=_0x1dc025['field'])==null||(_0x42505b=_0x42505b['config'])==null?void 0x0:_0x42505b[_0x479a68(0x1cb)])??'')});if(!_0x4a7f62[_0x479a68(0x15f)])throw Error(_0x4a7f62['reason']??_0x479a68(0x241));if(_0x1dc025[_0x479a68(0x21a)][_0x479a68(0x208)]>0x0&&!this[_0x479a68(0x1a5)][_0x479a68(0x116)](_0xd45dae[_0x479a68(0x182)]['id'],{'unitId':this[_0x479a68(0xf8)][_0x479a68(0x120)](),'references':_0x1dc025['externalReferences']}))throw Error(_0x479a68(0x123)+_0x258bf6+'\x22');}[_0x7fc612(0x25d)](){const _0x2c8c52=_0x7fc612;return this[_0x2c8c52(0x1d7)]()['map'](_0x392d5f=>this[_0x2c8c52(0x1aa)][_0x2c8c52(0x254)](_0x54b90e,this[_0x2c8c52(0xf8)],this,_0x392d5f,this['_injector']));}[_0x7fc612(0x267)](_0x1b1b69){const _0x950b37=_0x7fc612;return this[_0x950b37(0x26d)]()[_0x950b37(0x211)][_0x1b1b69]?this[_0x950b37(0x1aa)][_0x950b37(0x254)](_0x54b90e,this[_0x950b37(0xf8)],this,_0x1b1b69,this['_injector']):null;}[_0x7fc612(0x237)](_0x2866aa={}){const _0x3c5be1=_0x7fc612;let _0xaaa9=this['_getTable'](),_0x4f4b24=this['_resolveRecordIds'](_0x2866aa),_0xd2554c=Math[_0x3c5be1(0x17c)](0x0,_0x2866aa[_0x3c5be1(0xe1)]??0x0),_0x5c09c2=_0x2866aa[_0x3c5be1(0xf6)]==null?null:Math[_0x3c5be1(0x17c)](0x0,_0x2866aa[_0x3c5be1(0xf6)]),_0x58a567=_0x4a8175(_0x4f4b24[_0x3c5be1(0xdd)](_0x374c55=>_0xaaa9[_0x3c5be1(0x211)][_0x374c55])['filter'](_0x4286cd=>_0x2c54f2(_0x4286cd,_0xaaa9,_0x2866aa['filter'])),_0xaaa9,_0x2866aa[_0x3c5be1(0x109)]);return{'records':_0x3fa2ad(_0x58a567,_0x2866aa)[_0x3c5be1(0xdd)](_0x4eacce=>this[_0x3c5be1(0x1aa)][_0x3c5be1(0x254)](_0x54b90e,this[_0x3c5be1(0xf8)],this,_0x4eacce['id'],this[_0x3c5be1(0x1aa)])),'total':_0x58a567[_0x3c5be1(0x208)],'offset':_0xd2554c,'limit':_0x5c09c2,'hasMore':_0x5c09c2!=null&&_0xd2554c+_0x5c09c2<_0x58a567['length']};}[_0x7fc612(0x220)](_0x2e07b3,_0x5e2a8f='id',_0x27cc79){const _0x16559c=_0x7fc612;let _0x170f3d=this[_0x16559c(0x26d)](),_0x1d01ce=Date['now'](),_0x2e756d={..._0x27cc79,'id':(0x0,_0x460afa[_0x16559c(0x115)])(0x6),'values':_0x442707(_0x170f3d,_0x2e07b3,_0x5e2a8f),'orderKey':(_0x27cc79==null?void 0x0:_0x27cc79[_0x16559c(0x225)])||''+_0x1d01ce,'createdAt':(_0x27cc79==null?void 0x0:_0x27cc79[_0x16559c(0x244)])||_0x1d01ce,'updatedAt':(_0x27cc79==null?void 0x0:_0x27cc79[_0x16559c(0x263)])||_0x1d01ce};if(!this[_0x16559c(0x1a5)][_0x16559c(0x116)](_0x5c88db['CreateBaseRecordCommand']['id'],{'unitId':this['_base'][_0x16559c(0x120)](),'tableId':this[_0x16559c(0x1c7)],'record':_0x2e756d,'source':_0x5c88db['BaseEventSource'][_0x16559c(0x137)]}))throw Error(_0x16559c(0xa8)+_0x2e756d['id']+'\x22');return this['_injector'][_0x16559c(0x254)](_0x54b90e,this['_base'],this,_0x2e756d['id'],this[_0x16559c(0x1aa)]);}[_0x7fc612(0xf1)](_0xef3bce){const _0x451cdd=_0x7fc612;if(!_0xef3bce[_0x451cdd(0x208)])return[];let _0x37ea54=this[_0x451cdd(0x26d)](),_0x3ebd9a=Date[_0x451cdd(0x170)](),_0x51f178=_0xef3bce['map']((_0x1aa8ee,_0x260dd9)=>{const _0x32d42c=_0x451cdd;var _0x4e53b5,_0x38fad9,_0x467bed;return{..._0x1aa8ee[_0x32d42c(0x1c2)],'id':(0x0,_0x460afa[_0x32d42c(0x115)])(0x6),'values':_0x442707(_0x37ea54,_0x1aa8ee['values'],_0x1aa8ee[_0x32d42c(0x217)]??'id'),'orderKey':((_0x4e53b5=_0x1aa8ee[_0x32d42c(0x1c2)])==null?void 0x0:_0x4e53b5[_0x32d42c(0x225)])||''+(_0x3ebd9a+_0x260dd9),'createdAt':((_0x38fad9=_0x1aa8ee['record'])==null?void 0x0:_0x38fad9[_0x32d42c(0x244)])||_0x3ebd9a,'updatedAt':((_0x467bed=_0x1aa8ee[_0x32d42c(0x1c2)])==null?void 0x0:_0x467bed['updatedAt'])||_0x3ebd9a};});if(!this[_0x451cdd(0x1a5)]['syncExecuteCommand'](_0x5c88db['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x451cdd(0xf8)][_0x451cdd(0x120)](),'tableId':this['_tableId'],'records':_0x51f178,'source':_0x5c88db['BaseEventSource'][_0x451cdd(0x137)]}))throw Error(_0x451cdd(0x14c));return _0x51f178[_0x451cdd(0xdd)](_0x56562a=>this[_0x451cdd(0x1aa)][_0x451cdd(0x254)](_0x54b90e,this[_0x451cdd(0xf8)],this,_0x56562a['id'],this[_0x451cdd(0x1aa)]));}[_0x7fc612(0xc3)](_0x409d57){const _0x19ce8c=_0x7fc612;return!_0x409d57[_0x19ce8c(0x208)]||this['_commandService'][_0x19ce8c(0x116)](_0x5c88db[_0x19ce8c(0x260)]['id'],{'unitId':this['_base'][_0x19ce8c(0x120)](),'tableId':this[_0x19ce8c(0x1c7)],'recordIds':_0x409d57,'source':_0x5c88db[_0x19ce8c(0x21c)]['Facade']});}[_0x7fc612(0x1cc)](_0x28a01c,_0x1f3c54,_0x5aaf3f=0x1,_0x2fb648=0x1){const _0x512ad5=_0x7fc612;return this[_0x512ad5(0x1aa)][_0x512ad5(0x254)](_0x7421c3,this[_0x512ad5(0xf8)],this,{'startRow':_0x28a01c,'endRow':_0x28a01c+_0x5aaf3f-0x1,'startColumn':_0x1f3c54,'endColumn':_0x1f3c54+_0x2fb648-0x1},this['_injector']);}[_0x7fc612(0xbc)](){const _0x5c64d9=_0x7fc612;var _0xd6480c;let _0x2af417=(0x0,_0x5c88db[_0x5c64d9(0x1e5)])(this['_getTable']()),_0x5abf16=((_0xd6480c=_0x2af417[_0x5c64d9(0x1b8)])==null?void 0x0:_0xd6480c[_0x5c64d9(0x208)])??0x0,_0x287391=_0x2af417['fieldOrder'][_0x5c64d9(0x157)](_0x2eb36b=>_0x252e80(_0x2af417['fields'][_0x2eb36b]))[_0x5c64d9(0x208)];return this['getRange'](0x0,0x0,Math[_0x5c64d9(0x17c)](_0x5abf16,0x1),Math[_0x5c64d9(0x17c)](_0x287391,0x1));}['getViews'](){const _0x36ab49=_0x7fc612;let _0x464ff6=this[_0x36ab49(0x26d)]();return _0x464ff6[_0x36ab49(0xe9)][_0x36ab49(0x157)](_0x125d08=>_0x464ff6[_0x36ab49(0x1bf)][_0x125d08])[_0x36ab49(0xdd)](_0x3556dc=>this[_0x36ab49(0x1aa)][_0x36ab49(0x254)](_0x282005,this[_0x36ab49(0xf8)],this,_0x3556dc,this['_injector']));}[_0x7fc612(0x229)](_0x269d6e){const _0x42c1df=_0x7fc612;return this[_0x42c1df(0x26d)]()[_0x42c1df(0x1bf)][_0x269d6e]?this[_0x42c1df(0x1aa)][_0x42c1df(0x254)](_0x282005,this['_base'],this,_0x269d6e,this['_injector']):null;}['getViewByName'](_0x38f103){const _0x26e9e4=_0x7fc612;let _0x172af3=this[_0x26e9e4(0x26d)](),_0x6a1ecc=Object[_0x26e9e4(0xda)](_0x172af3[_0x26e9e4(0x1bf)])[_0x26e9e4(0x12f)](_0x3ea208=>_0x3ea208[_0x26e9e4(0x18a)]===_0x38f103);return _0x6a1ecc?this['_injector']['createInstance'](_0x282005,this['_base'],this,_0x6a1ecc['id'],this[_0x26e9e4(0x1aa)]):null;}['createView'](_0xce12c9,_0x467b25,_0x4436f0){const _0x23de7d=_0x7fc612;var _0xc95059,_0x485d40,_0x27ea41,_0x4b481c;let _0x2675fd=this[_0x23de7d(0x26d)](),_0x5b96b3=(_0x4436f0==null||(_0xc95059=_0x4436f0['view'])==null?void 0x0:_0xc95059[_0x23de7d(0x266)])??_0x2675fd[_0x23de7d(0x266)],_0xeae125=[_0x460afa['BASE_RECORD_ID_FIELD_ID'],..._0x5b96b3[_0x23de7d(0x157)](_0x27bbf9=>_0x252e80(_0x2675fd[_0x23de7d(0x10d)][_0x27bbf9]))],_0x1f1dc7={..._0x4436f0==null?void 0x0:_0x4436f0['view'],'id':(0x0,_0x460afa['generateRandomId'])(0x6),'name':_0xce12c9,'type':_0x467b25,'tableId':this[_0x23de7d(0x1c7)],'config':(_0x4436f0==null||(_0x485d40=_0x4436f0['view'])==null?void 0x0:_0x485d40[_0x23de7d(0x1c8)])??{},'fieldOrder':_0xeae125,'fieldSettings':{..._0x4436f0==null||(_0x27ea41=_0x4436f0[_0x23de7d(0x1c0)])==null?void 0x0:_0x27ea41[_0x23de7d(0x216)],[_0x460afa[_0x23de7d(0x17b)]]:{..._0x4436f0==null||(_0x4b481c=_0x4436f0['view'])==null||(_0x4b481c=_0x4b481c[_0x23de7d(0x216)])==null?void 0x0:_0x4b481c[_0x460afa[_0x23de7d(0x17b)]],'hidden':!0x0}}};if(!this[_0x23de7d(0x1a5)][_0x23de7d(0x116)](_0x5c88db[_0x23de7d(0x25b)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'view':_0x1f1dc7,'index':_0x4436f0==null?void 0x0:_0x4436f0['index']}))throw Error(_0x23de7d(0x212)+_0xce12c9+'\x22');return this[_0x23de7d(0x1aa)][_0x23de7d(0x254)](_0x282005,this[_0x23de7d(0xf8)],this,_0x1f1dc7['id'],this['_injector']);}[_0x7fc612(0x200)](){const _0x331e95=_0x7fc612;let _0x282be1=this[_0x331e95(0x26d)](),_0xe485b8=_0x282be1[_0x331e95(0x266)][_0x331e95(0x157)](_0x2d0d4a=>_0x252e80(_0x282be1[_0x331e95(0x10d)][_0x2d0d4a])),_0x219ada=_0x282be1[_0x331e95(0xe9)]['filter'](_0x2aaf72=>_0x282be1[_0x331e95(0x1bf)][_0x2aaf72]);return{'id':_0x282be1['id'],'name':_0x282be1['name'],'formulaName':this[_0x331e95(0x178)](),'primaryFieldId':_0x282be1[_0x331e95(0xd4)],'fieldIds':_0xe485b8,'viewIds':_0x219ada,'recordCount':this[_0x331e95(0x1d7)]()[_0x331e95(0x208)],'fields':_0xe485b8[_0x331e95(0xdd)](_0x539e78=>{const _0x2e398e=_0x331e95;let _0x57155a=_0x282be1['fields'][_0x539e78];return{'id':_0x57155a['id'],'name':_0x57155a[_0x2e398e(0x18a)],'type':_0x57155a['type'],'config':_0x57155a['config'],'readonly':_0x57155a[_0x2e398e(0x26e)],'description':_0x57155a[_0x2e398e(0x19a)]};}),'views':_0x219ada[_0x331e95(0xdd)](_0x4693b5=>{const _0x39ec10=_0x331e95;let _0x4b3fc1=_0x282be1['views'][_0x4693b5];return{'id':_0x4b3fc1['id'],'name':_0x4b3fc1['name'],'type':_0x4b3fc1[_0x39ec10(0x193)]};})};}[_0x7fc612(0x26d)](){const _0x4cb372=_0x7fc612;let _0x431603=this[_0x4cb372(0xf8)]['getBase']()[_0x4cb372(0x153)]()[_0x4cb372(0x19f)][this[_0x4cb372(0x1c7)]];if(!_0x431603)throw Error(_0x4cb372(0x13b)+this[_0x4cb372(0x1c7)]+'\x22\x20does\x20not\x20exist.');return _0x431603;}[_0x7fc612(0x1d7)](_0xf80baa={}){const _0x282e92=_0x7fc612;let _0x3e0bff=this[_0x282e92(0xf8)][_0x282e92(0x14d)]()[_0x282e92(0x153)](),_0x553409=this[_0x282e92(0x26d)]();if(_0xf80baa['viewId']){let _0x433738=this[_0x282e92(0x1c5)][_0x282e92(0xfc)](_0x3e0bff,this['_tableId'],_0xf80baa[_0x282e92(0x232)]);if(_0x282e92(0xab)in _0x433738&&Array[_0x282e92(0x143)](_0x433738[_0x282e92(0xab)]))return _0x433738['rows'][_0x282e92(0xdd)](_0x5aeadb=>_0x5aeadb[_0x282e92(0x16d)]);}return(_0x553409[_0x282e92(0x1b8)]?_0x553409[_0x282e92(0x1b8)][_0x282e92(0xdd)](_0x4f2346=>_0x553409[_0x282e92(0x211)][_0x4f2346]):Object[_0x282e92(0xda)](_0x553409[_0x282e92(0x211)])[_0x282e92(0x109)]((_0x48e525,_0x5d7cc9)=>_0x48e525[_0x282e92(0x225)][_0x282e92(0x20b)](_0x5d7cc9[_0x282e92(0x225)])))['filter'](_0x1357ea=>_0x1357ea)['map'](_0x9cdc1c=>_0x9cdc1c['id']);}};_0x27bce8=_0x13a9ae([_0x28bfcd(0x3,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x1ec)]),_0x28bfcd(0x5,_0x5c88db[_0x7fc612(0x132)])],_0x27bce8);function _0x3fa2ad(_0xb6fd8a,_0x5297c2){const _0x1c28d9=_0x7fc612;let _0x352c94=Math[_0x1c28d9(0x17c)](0x0,_0x5297c2[_0x1c28d9(0xe1)]??0x0);return _0x5297c2['limit']==null?_0xb6fd8a['slice'](_0x352c94):_0xb6fd8a[_0x1c28d9(0x20f)](_0x352c94,_0x352c94+Math[_0x1c28d9(0x17c)](0x0,_0x5297c2['limit']));}function _0x4a8175(_0x3f3efe,_0x4aae12,_0x25930a=[]){return _0x25930a['length']?[..._0x3f3efe]['sort']((_0x1951c0,_0x44e3c1)=>{const _0x25c371=_0x36bd;for(let _0x5bbc3b of _0x25930a){var _0x4285d0;let _0x229f4e=_0x5bbc3b[_0x25c371(0x13a)]===_0x460afa[_0x25c371(0x162)]['DESC']?-0x1:0x1,_0x1afe81=_0x2d1982(_0x1951c0['values'][_0x5bbc3b[_0x25c371(0xf5)]],_0x44e3c1[_0x25c371(0xda)][_0x5bbc3b['fieldId']],(_0x4285d0=_0x4aae12[_0x25c371(0x10d)][_0x5bbc3b['fieldId']])==null?void 0x0:_0x4285d0[_0x25c371(0x193)]);if(_0x1afe81!==0x0)return _0x1afe81*_0x229f4e;}return String(_0x1951c0[_0x25c371(0x225)]??_0x1951c0['id'])[_0x25c371(0x20b)](String(_0x44e3c1['orderKey']??_0x44e3c1['id']));}):_0x3f3efe;}function _0x2d1982(_0x175f70,_0x1f0c9d,_0x1de63f){const _0x2ae43b=_0x7fc612;return _0x175f70==null&&_0x1f0c9d==null?0x0:_0x175f70==null?-0x1:_0x1f0c9d==null?0x1:typeof _0x175f70==_0x2ae43b(0x173)&&typeof _0x1f0c9d=='number'?_0x175f70-_0x1f0c9d:_0x1de63f===_0x460afa['BaseFieldType'][_0x2ae43b(0xea)]?Number(_0x175f70)-Number(_0x1f0c9d):String(_0x175f70)[_0x2ae43b(0x20b)](String(_0x1f0c9d));}function _0x2c54f2(_0x4736bf,_0x3c0036,_0x5264b5){const _0x3886c2=_0x7fc612;var _0x101afd;if(!_0x5264b5||!((_0x101afd=_0x5264b5[_0x3886c2(0xba)])!=null&&_0x101afd['length']))return!0x0;let {conjunction:_0x277ace=_0x460afa[_0x3886c2(0x218)]['OR'],conditions:_0x3495bf}=_0x5264b5;return _0x277ace===_0x460afa[_0x3886c2(0x218)][_0x3886c2(0xca)]&&_0x3495bf['length']>0x1?_0x3495bf[_0x3886c2(0x186)](_0x4a5e7a=>_0x4e20d6(_0x4736bf,_0x3c0036,_0x4a5e7a)):_0x3495bf['some'](_0x1f3c17=>_0x4e20d6(_0x4736bf,_0x3c0036,_0x1f3c17));}function _0x4e20d6(_0x4f67b8,_0x326218,_0x217bea){const _0x4ecac4=_0x7fc612;let _0x44299c=_0x4f67b8[_0x4ecac4(0xda)][_0x217bea[_0x4ecac4(0xf5)]],_0x3e08f1=_0x326218['fields'][_0x217bea[_0x4ecac4(0xf5)]];if(_0x1d2bf9(_0x217bea)){let _0x53f222=_0x499f90(_0x217bea)['test'](String(_0x44299c??''));return _0x217bea[_0x4ecac4(0x1fa)]===_0x4ecac4(0x20d)?_0x53f222:!_0x53f222;}return!_0x3e08f1||(0x0,_0x5c88db['matchesBaseCondition'])(_0x44299c,_0x217bea[_0x4ecac4(0x1fa)],_0x217bea['value'],_0x3e08f1);}function _0x1d2bf9(_0x443437){const _0x717e5=_0x7fc612;return _0x443437[_0x717e5(0x1fa)]===_0x717e5(0x20d)||_0x443437[_0x717e5(0x1fa)]===_0x717e5(0xe3);}function _0x499f90(_0x19e2df){const _0x49ae27=_0x7fc612;let _0x312cb6=String(_0x19e2df['value']??'');if(_0x312cb6['length']>0x200)throw Error(_0x49ae27(0x26a));try{return new RegExp(_0x312cb6,_0x19e2df[_0x49ae27(0xbb)]?void 0x0:'i');}catch(_0x39d047){throw Error(_0x49ae27(0x19d)+_0x312cb6+'.\x20'+(_0x39d047 instanceof Error?_0x39d047[_0x49ae27(0x12b)]:String(_0x39d047)));}}function _0x254de0(_0x526235,_0x59cb8f,_0x2fe90e){const _0x160d7b=_0x7fc612;if(_0x2fe90e['type']!==_0x160d7b(0x134)&&_0x2fe90e[_0x160d7b(0x193)]!==_0x160d7b(0x189)){var _0x2d0a0c;if(_0x2fe90e[_0x160d7b(0x193)]===_0x460afa['BaseViewType']['Kanban']){var _0x110f09;let _0x45ec60=[((_0x110f09=_0x2fe90e[_0x160d7b(0x10d)])==null||(_0x110f09=_0x110f09[0x0])==null?void 0x0:_0x110f09['id'])??_0x526235['primaryFieldId'],..._0x2fe90e[_0x160d7b(0x20e)]??[]];return Array[_0x160d7b(0x144)](new Set(_0x45ec60['filter'](_0x49152e=>!!_0x526235[_0x160d7b(0x10d)][_0x49152e])));}if((_0x2d0a0c=_0x2fe90e[_0x160d7b(0x10d)])!=null&&_0x2d0a0c['length'])return _0x2fe90e['fields']['map'](_0x288df8=>_0x288df8['id'])[_0x160d7b(0x157)](_0x4c23ca=>{const _0x1e33a5=_0x160d7b;var _0x1e0a70;return!(!_0x526235[_0x1e33a5(0x10d)][_0x4c23ca]||_0x59cb8f!=null&&(_0x1e0a70=_0x59cb8f[_0x1e33a5(0x216)])!=null&&(_0x1e0a70=_0x1e0a70[_0x4c23ca])!=null&&_0x1e0a70[_0x1e33a5(0xbf)]);});}return _0x526235[_0x160d7b(0x266)][_0x160d7b(0x157)](_0x19c23a=>{const _0x382b00=_0x160d7b;var _0x3ab586;return!(!_0x526235[_0x382b00(0x10d)][_0x19c23a]||_0x59cb8f!=null&&(_0x3ab586=_0x59cb8f[_0x382b00(0x216)])!=null&&(_0x3ab586=_0x3ab586[_0x19c23a])!=null&&_0x3ab586[_0x382b00(0xbf)]);});}let _0x5c53a0=class extends _0x1813e5[_0x7fc612(0x20c)]{constructor(_0x298cfc,_0x11ee24,_0x25217f,_0x23045c,_0x1f1a53){const _0xe37a98=_0x7fc612;super(),this[_0xe37a98(0xf8)]=_0x298cfc,this['_injector']=_0x11ee24,this['_resourceLoaderService']=_0x25217f,this[_0xe37a98(0x1a5)]=_0x23045c,this[_0xe37a98(0x1e1)]=_0x1f1a53;}[_0x7fc612(0x14d)](){const _0x499815=_0x7fc612;return this[_0x499815(0xf8)];}[_0x7fc612(0x120)](){const _0x3eb968=_0x7fc612;return this[_0x3eb968(0xf8)][_0x3eb968(0x1cf)]();}[_0x7fc612(0x177)](){const _0x50152b=_0x7fc612;return new _0x4712ce(this['getId'](),this[_0x50152b(0x1a5)],this[_0x50152b(0x1e1)]);}[_0x7fc612(0x179)](){const _0x36f60f=_0x7fc612;return this[_0x36f60f(0xbd)][_0x36f60f(0x199)](this['getId']())??_0x460afa['Tools'][_0x36f60f(0x1a2)](this[_0x36f60f(0xf8)][_0x36f60f(0x153)]());}['getName'](){const _0x38a68d=_0x7fc612;return this[_0x38a68d(0xf8)][_0x38a68d(0x153)]()[_0x38a68d(0x18a)];}[_0x7fc612(0x256)](_0x54e172){const _0x4321dd=_0x7fc612;this[_0x4321dd(0x1a5)][_0x4321dd(0x116)](_0x5c88db[_0x4321dd(0xb3)]['id'],{'unitId':this[_0x4321dd(0x120)](),'name':_0x54e172});}[_0x7fc612(0x1e6)](){const _0x139f24=_0x7fc612;let _0x1f1bcf=this['_base']['getSnapshot']();return _0x1f1bcf[_0x139f24(0x22b)][_0x139f24(0xdd)](_0x1e511d=>_0x1f1bcf['tables'][_0x1e511d])[_0x139f24(0x157)](_0xa1a18b=>_0xa1a18b)[_0x139f24(0xdd)](_0x4a7bf9=>this['_injector']['createInstance'](_0x27bce8,this,_0x4a7bf9['id'],this[_0x139f24(0x1aa)]));}[_0x7fc612(0x240)](_0x29a1b0){const _0x5d1c60=_0x7fc612;let _0x279dfb=this[_0x5d1c60(0xf8)]['getSnapshot']()[_0x5d1c60(0x19f)][_0x29a1b0];return _0x279dfb?this['_injector'][_0x5d1c60(0x254)](_0x27bce8,this,_0x279dfb['id'],this[_0x5d1c60(0x1aa)]):null;}[_0x7fc612(0x1cd)](_0x3993b6){const _0xa54fdc=_0x7fc612;let _0x40a1cd=this[_0xa54fdc(0xf8)][_0xa54fdc(0x153)](),_0x22e040=Object[_0xa54fdc(0xda)](_0x40a1cd['tables'])['find'](_0x5d454d=>_0x5d454d[_0xa54fdc(0x18a)]===_0x3993b6);return _0x22e040?this['_injector'][_0xa54fdc(0x254)](_0x27bce8,this,_0x22e040['id'],this[_0xa54fdc(0x1aa)]):null;}[_0x7fc612(0x140)](_0x4375ea,_0x415c73){const _0x2467f8=_0x7fc612;let _0xe4b0aa=(0x0,_0x460afa[_0x2467f8(0x25e)])({'id':(0x0,_0x460afa['generateRandomId'])(),'name':_0x4375ea,..._0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x13f)],'primaryFieldName':_0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x148)]}),_0xca5c02=_0x460afa[_0x2467f8(0x14a)]['commonExtend'](_0xe4b0aa,(_0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x13f)])??{}),_0x1f78c1=(0x0,_0x5c88db[_0x2467f8(0x1de)])(this['_base'][_0x2467f8(0x153)](),_0xca5c02[_0x2467f8(0x18a)]);if(!_0x1f78c1[_0x2467f8(0x15f)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0xca5c02[_0x2467f8(0x18a)]+_0x2467f8(0x135)+_0x5c88db[_0x2467f8(0x141)]+'\x20'+_0x1f78c1['reason']);if(!this['_commandService'][_0x2467f8(0x116)](_0x5c88db[_0x2467f8(0x23e)]['id'],{'unitId':this['_base'][_0x2467f8(0x1cf)](),'table':_0xca5c02,'index':_0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x1af)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x4375ea+'\x22.');return this[_0x2467f8(0x1aa)][_0x2467f8(0x254)](_0x27bce8,this,_0xca5c02['id'],this[_0x2467f8(0x1aa)]);}[_0x7fc612(0x1dc)](_0x1b8d6a){const _0x488fef=_0x7fc612;let _0x3e91ab=typeof _0x1b8d6a==_0x488fef(0x257)?_0x1b8d6a:_0x1b8d6a[_0x488fef(0x120)]();if(!this[_0x488fef(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x488fef(0x210)]['id'],{'unitId':this[_0x488fef(0xf8)][_0x488fef(0x1cf)](),'tableId':_0x3e91ab}))throw Error(_0x488fef(0x1d2)+_0x3e91ab+'\x22.');return!0x0;}[_0x7fc612(0x110)](_0x43efe4,_0x344bd8){const _0x303735=_0x7fc612;let _0x7e3703=this['_base']['getSnapshot'](),_0x5c755b=typeof _0x43efe4==_0x303735(0x257)?_0x43efe4:_0x43efe4[_0x303735(0x120)](),_0x212f92=_0x7e3703[_0x303735(0x19f)][_0x5c755b];if(!_0x212f92)throw Error('[FBase]:\x20table\x20\x22'+_0x5c755b+_0x303735(0x176));let _0x47921b=_0x7e3703['tableOrder'][_0x303735(0x164)](_0x5c755b)+0x1,_0xd0d1b3=(0x0,_0x460afa['generateRandomId'])(),_0x128d3c=(0x0,_0x5c88db[_0x303735(0xb2)])(_0x212f92,{'id':_0xd0d1b3,'name':(0x0,_0x5c88db[_0x303735(0x1d8)])(_0x7e3703,_0x212f92[_0x303735(0x18a)]+_0x303735(0xb1)),'includeRecords':(_0x344bd8==null?void 0x0:_0x344bd8[_0x303735(0x15c)])??!0x1,'regenerateViewIds':(_0x344bd8==null?void 0x0:_0x344bd8[_0x303735(0x253)])??!0x1});if(!this[_0x303735(0x1a5)][_0x303735(0x116)](_0x5c88db[_0x303735(0x23e)]['id'],{'unitId':this[_0x303735(0xf8)]['getUnitId'](),'table':_0x128d3c,'index':_0x47921b}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x5c755b+'\x22.');return this[_0x303735(0x1aa)]['createInstance'](_0x27bce8,this,_0x128d3c['id'],this['_injector']);}[_0x7fc612(0x200)](){const _0x5270c7=_0x7fc612;let _0x2d1647=this[_0x5270c7(0xf8)][_0x5270c7(0x153)]();return{'id':_0x2d1647['id'],'name':_0x2d1647['name'],'tables':this[_0x5270c7(0x1e6)]()[_0x5270c7(0xdd)](_0x5150d1=>_0x5150d1[_0x5270c7(0x200)]())};}};_0x5c53a0=_0x13a9ae([_0x28bfcd(0x1,(0x0,_0x460afa[_0x7fc612(0x1b2)])(_0x460afa[_0x7fc612(0x231)])),_0x28bfcd(0x2,_0x460afa[_0x7fc612(0x1f1)]),_0x28bfcd(0x3,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x4,_0x460afa['IPermissionService'])],_0x5c53a0);var _0x1989bb=class extends _0x1813e5[_0x7fc612(0xdf)]{[_0x7fc612(0xaa)](){const _0x64af80=_0x7fc612;this[_0x64af80(0x219)](),this[_0x64af80(0x1d0)]();}['createBase'](_0x294cab={},_0x1e7375){const _0xb777a8=_0x7fc612;let _0x7373e6=this[_0xb777a8(0x21d)][_0xb777a8(0x114)](_0x460afa['UniverInstanceType'][_0xb777a8(0xb7)],_0x294cab,_0x1e7375);return this[_0xb777a8(0x1aa)][_0xb777a8(0x254)](_0x5c53a0,_0x7373e6);}[_0x7fc612(0x187)](){const _0x480e16=_0x7fc612;let _0x54ce83=this[_0x480e16(0x21d)][_0x480e16(0x10e)](_0x460afa[_0x480e16(0xd9)][_0x480e16(0xb7)]);return _0x54ce83?this[_0x480e16(0x1aa)][_0x480e16(0x254)](_0x5c53a0,_0x54ce83):null;}[_0x7fc612(0x14d)](_0x5902b6){const _0x8f2c3a=_0x7fc612;let _0x46e7a3=this[_0x8f2c3a(0x21d)][_0x8f2c3a(0x1d4)](_0x5902b6,_0x460afa[_0x8f2c3a(0xd9)][_0x8f2c3a(0xb7)]);return _0x46e7a3?this['_injector'][_0x8f2c3a(0x254)](_0x5c53a0,_0x46e7a3):null;}[_0x7fc612(0x1b1)](){const _0x127bee=_0x7fc612;return this[_0x127bee(0x21d)][_0x127bee(0x180)](_0x460afa[_0x127bee(0xd9)][_0x127bee(0xb7)])[_0x127bee(0xdd)](_0x514202=>this['_injector'][_0x127bee(0x254)](_0x5c53a0,_0x514202));}[_0x7fc612(0x1d0)](){const _0x407e6f=_0x7fc612;this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this[_0x407e6f(0x265)]['BaseHierarchyChanged'],()=>this[_0x407e6f(0x1a5)]['onCommandExecuted']((_0x519702,_0x2188e2)=>{const _0x4d87d8=_0x407e6f;var _0x5d7954;if(!_0x210185(_0x519702,_0x5c88db[_0x4d87d8(0x169)]))return;let _0x4e1bce=_0x519702[_0x4d87d8(0x197)];if(!((_0x5d7954=_0x4e1bce[_0x4d87d8(0x24f)])!=null&&_0x5d7954[_0x4d87d8(0x208)]))return;let _0x1913df=this[_0x4d87d8(0x14d)](_0x4e1bce[_0x4d87d8(0x118)]),_0x9c8d09=_0x1913df==null?void 0x0:_0x1913df[_0x4d87d8(0x240)](_0x4e1bce[_0x4d87d8(0x24f)][0x0][_0x4d87d8(0x12e)]);if(!_0x1913df||!_0x9c8d09)return;let _0x1a2f8a={'base':_0x1913df,'table':_0x9c8d09,'changes':_0x4e1bce[_0x4d87d8(0x24f)],'source':_0x2188e2!=null&&_0x2188e2[_0x4d87d8(0x201)]?_0x5c88db['BaseEventSource'][_0x4d87d8(0x1bd)]:_0x4e1bce['source']??_0x5c88db[_0x4d87d8(0x21c)]['UI']};this[_0x4d87d8(0x23a)](this[_0x4d87d8(0x265)][_0x4d87d8(0x1c6)],_0x1a2f8a);}))),this[_0x407e6f(0x214)](this['registerEventHandler'](this[_0x407e6f(0x265)][_0x407e6f(0x243)],()=>this[_0x407e6f(0x1a5)][_0x407e6f(0x161)](_0x44682f=>{const _0x13a6a4=_0x407e6f;if(_0x44682f['id']!==_0x5c88db['CreateBaseTableCommand']['id'])return;let {unitId:_0x3e1a09,table:_0x2041fb,index:_0x14e785}=_0x44682f[_0x13a6a4(0x197)],_0x1b2cd8=this[_0x13a6a4(0x14d)](_0x3e1a09);if(!_0x1b2cd8)return;let _0x21dbe0={'base':_0x1b2cd8,'table':_0x2041fb,'index':_0x14e785};this[_0x13a6a4(0x23a)](this['Event']['BaseTableCreated'],_0x21dbe0);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this['Event']['BaseTableFieldCreated'],()=>this[_0x407e6f(0x1a5)][_0x407e6f(0x161)](_0x26f0ae=>{const _0x59b6c6=_0x407e6f;if(_0x26f0ae['id']!==_0x5c88db[_0x59b6c6(0x1bb)]['id'])return;let {unitId:_0x20f1db,tableId:_0x23dbe5,field:_0xd52bb0,index:_0x192b25,viewIndexes:_0x4cc6af}=_0x26f0ae[_0x59b6c6(0x197)],_0x4bb327=this[_0x59b6c6(0x14d)](_0x20f1db);if(!_0x4bb327)return;let _0x58c754=_0x4bb327[_0x59b6c6(0x240)](_0x23dbe5);if(!_0x58c754)return;let _0x8e12ed={'base':_0x4bb327,'table':_0x58c754,'field':_0xd52bb0,'index':_0x192b25,'viewIndexes':_0x4cc6af};this[_0x59b6c6(0x23a)](this['Event'][_0x59b6c6(0x159)],_0x8e12ed);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this[_0x407e6f(0x265)][_0x407e6f(0xcc)],()=>this[_0x407e6f(0x1a5)]['onCommandExecuted'](_0x18c6ca=>{const _0x3c3625=_0x407e6f;if(_0x18c6ca['id']!==_0x5c88db[_0x3c3625(0x172)]['id']&&_0x18c6ca['id']!==_0x5c88db[_0x3c3625(0x245)]['id'])return;let _0xe7fd3e=_0x18c6ca['params'],{unitId:_0x544f3f,tableId:_0x1ead5d}=_0xe7fd3e,_0x57a953=_0xe7fd3e['records']??[_0xe7fd3e[_0x3c3625(0x1c2)]],_0x3a1cc9=this['getBase'](_0x544f3f);if(!_0x3a1cc9)return;let _0x4124aa=_0x3a1cc9['getTableById'](_0x1ead5d);if(!_0x4124aa)return;let _0x3fcf0c={'base':_0x3a1cc9,'table':_0x4124aa,'records':_0x57a953};this[_0x3c3625(0x23a)](this[_0x3c3625(0x265)]['BaseTableRecordCreated'],_0x3fcf0c);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this[_0x407e6f(0x265)]['BaseTableViewCreated'],()=>this['_commandService']['onCommandExecuted'](_0x1f4258=>{const _0x5b2e7b=_0x407e6f;if(_0x1f4258['id']!==_0x5c88db[_0x5b2e7b(0x25b)]['id'])return;let {unitId:_0x586117,tableId:_0x2e536b,view:_0x40d361,index:_0x88e798}=_0x1f4258[_0x5b2e7b(0x197)],_0x481077=this[_0x5b2e7b(0x14d)](_0x586117);if(!_0x481077)return;let _0x571b66=_0x481077['getTableById'](_0x2e536b);if(!_0x571b66)return;let _0x411280={'base':_0x481077,'table':_0x571b66,'view':_0x40d361,'index':_0x88e798};this['fireEvent'](this['Event']['BaseTableViewCreated'],_0x411280);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this['Event']['BaseTableCellValueChanged'],()=>this[_0x407e6f(0x1a5)]['onCommandExecuted'](_0x354318=>{const _0x2a3be8=_0x407e6f;if(_0x354318['id']!==_0x5c88db[_0x2a3be8(0x21b)]['id'])return;let {unitId:_0x54b8ba,tableId:_0x441ab1,recordId:_0xd303b3,fieldId:_0x38338d,value:_0x3a4218}=_0x354318[_0x2a3be8(0x197)],_0x429f1f=this[_0x2a3be8(0x14d)](_0x54b8ba);if(!_0x429f1f)return;let _0x1f6e3d=_0x429f1f[_0x2a3be8(0x240)](_0x441ab1);if(!_0x1f6e3d)return;let _0x1a90a0=_0x1f6e3d[_0x2a3be8(0x147)](_0x38338d);if(!_0x1a90a0)return;let _0x18c005=_0x1f6e3d[_0x2a3be8(0x267)](_0xd303b3);if(!_0x18c005)return;let _0x2de36e={'base':_0x429f1f,'table':_0x1f6e3d,'field':_0x1a90a0,'record':_0x18c005,'value':_0x3a4218};this['fireEvent'](this['Event'][_0x2a3be8(0x1a8)],_0x2de36e);})));}['_initBaseBeforeEvents'](){const _0x51a07b=_0x7fc612;this['disposeWithMe'](this[_0x51a07b(0x250)](this['Event']['BeforeBaseHierarchyChange'],()=>this['_commandService'][_0x51a07b(0x246)](_0x29087b=>{const _0x4cb969=_0x51a07b;if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x25c)])){let {unitId:_0x5cc8de,tableId:_0x27e23f,patches:_0x370f03,source:_0x21a537=_0x5c88db[_0x4cb969(0x21c)]['UI']}=_0x29087b['params'],_0x3eaefc=this[_0x4cb969(0x1d6)](_0x5cc8de,_0x27e23f);if(!_0x3eaefc)return;this[_0x4cb969(0x191)](_0x3eaefc[_0x4cb969(0xb5)],_0x3eaefc[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0x1a0)])(_0x3eaefc[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x370f03),_0x21a537);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0xcf)])){let {unitId:_0x2b01d8,tableId:_0x1561fb,patches:_0x3afe21,source:_0x595c9e=_0x5c88db[_0x4cb969(0x21c)]['UI']}=_0x29087b[_0x4cb969(0x197)],_0x39c4dc=this[_0x4cb969(0x1d6)](_0x2b01d8,_0x1561fb);if(!_0x39c4dc)return;let _0x6cd28d=_0x39c4dc[_0x4cb969(0x13f)][_0x4cb969(0x1f6)]();this[_0x4cb969(0x191)](_0x39c4dc['base'],_0x39c4dc[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0x1a0)])(_0x6cd28d,(0x0,_0x5c88db[_0x4cb969(0x146)])(_0x6cd28d,_0x3afe21)),_0x595c9e);return;}if(_0x210185(_0x29087b,_0x5c88db['CreateBaseRecordCommand'])){let _0x5aa04e=_0x29087b[_0x4cb969(0x197)],_0x10f226=this[_0x4cb969(0x1d6)](_0x5aa04e[_0x4cb969(0x118)],_0x5aa04e['tableId']);if(!_0x10f226)return;this[_0x4cb969(0x191)](_0x10f226['base'],_0x10f226[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0xe7)])(_0x10f226[_0x4cb969(0x13f)]['getTable'](),[_0x5aa04e['record']]),_0x5aa04e[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x245)])){let _0x5f5129=_0x29087b[_0x4cb969(0x197)],_0x32e86e=this[_0x4cb969(0x1d6)](_0x5f5129[_0x4cb969(0x118)],_0x5f5129[_0x4cb969(0x12e)]);if(!_0x32e86e)return;this[_0x4cb969(0x191)](_0x32e86e[_0x4cb969(0xb5)],_0x32e86e['table'],(0x0,_0x5c88db[_0x4cb969(0xe7)])(_0x32e86e[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x5f5129['records']),_0x5f5129[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x21f)])){let _0x4265a4=_0x29087b[_0x4cb969(0x197)],_0x1fc6d6=this['_getHierarchyEventContext'](_0x4265a4[_0x4cb969(0x118)],_0x4265a4[_0x4cb969(0x12e)]);if(!_0x1fc6d6)return;this[_0x4cb969(0x191)](_0x1fc6d6[_0x4cb969(0xb5)],_0x1fc6d6[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0xe7)])(_0x1fc6d6['table'][_0x4cb969(0x1f6)](),[_0x4265a4['record']]),_0x4265a4[_0x4cb969(0xa5)]??_0x5c88db['BaseEventSource']['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db['MoveBaseHierarchyRecordCommand'])){let _0x39368f=_0x29087b[_0x4cb969(0x197)],_0x433fa6=this[_0x4cb969(0x1d6)](_0x39368f[_0x4cb969(0x118)],_0x39368f['tableId']);if(!_0x433fa6)return;let _0x5819da=_0x433fa6[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x321c65=_0x39368f[_0x4cb969(0xf5)]??(0x0,_0x5c88db['resolveBaseHierarchyFieldId'])(_0x5819da),_0x427a37=(0x0,_0x5c88db['buildBaseHierarchyIndex'])(_0x5819da,_0x321c65)[_0x4cb969(0x1e3)][_0x4cb969(0xfe)](_0x39368f['recordId'])??null;this[_0x4cb969(0x191)](_0x433fa6[_0x4cb969(0xb5)],_0x433fa6[_0x4cb969(0x13f)],[{'tableId':_0x39368f[_0x4cb969(0x12e)],'fieldId':_0x321c65,'recordId':_0x39368f[_0x4cb969(0x16d)],'oldParentRecordId':_0x427a37,'parentRecordId':_0x39368f[_0x4cb969(0x12c)]}],_0x39368f[_0x4cb969(0xa5)]??_0x5c88db['BaseEventSource']['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db['CreateBaseChildRecordCommand'])){let _0x4e9c3e=_0x29087b[_0x4cb969(0x197)],_0x1b936c=this['_getHierarchyEventContext'](_0x4e9c3e[_0x4cb969(0x118)],_0x4e9c3e['tableId']);if(!_0x1b936c)return;let _0x450d90=_0x4e9c3e[_0x4cb969(0xf5)]??(0x0,_0x5c88db['resolveBaseHierarchyFieldId'])(_0x1b936c[_0x4cb969(0x13f)]['getTable']());this[_0x4cb969(0x191)](_0x1b936c[_0x4cb969(0xb5)],_0x1b936c['table'],[{'tableId':_0x4e9c3e[_0x4cb969(0x12e)],'fieldId':_0x450d90,'recordId':_0x4e9c3e[_0x4cb969(0x1c2)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4e9c3e['parentRecordId']}],_0x4e9c3e[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x238)])){let _0x39c04b=_0x29087b[_0x4cb969(0x197)],_0x36a6b2=this[_0x4cb969(0x1d6)](_0x39c04b['unitId'],_0x39c04b[_0x4cb969(0x12e)]);if(!_0x36a6b2)return;this['_fireBeforeHierarchyChange'](_0x36a6b2[_0x4cb969(0xb5)],_0x36a6b2['table'],(0x0,_0x5c88db['getBaseHierarchyDeletePromotions'])(_0x36a6b2[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),[_0x39c04b[_0x4cb969(0x16d)]]),_0x39c04b[_0x4cb969(0xa5)]??_0x5c88db['BaseEventSource']['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x260)])){let _0x393b3a=_0x29087b[_0x4cb969(0x197)],_0x403eb4=this['_getHierarchyEventContext'](_0x393b3a[_0x4cb969(0x118)],_0x393b3a[_0x4cb969(0x12e)]);if(!_0x403eb4)return;this[_0x4cb969(0x191)](_0x403eb4['base'],_0x403eb4[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0x25f)])(_0x403eb4[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x393b3a['recordIds']),_0x393b3a[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(!_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x21b)]))return;let _0x3c8171=_0x29087b[_0x4cb969(0x197)],_0x36cf04=this[_0x4cb969(0x1d6)](_0x3c8171[_0x4cb969(0x118)],_0x3c8171[_0x4cb969(0x12e)]);if(!_0x36cf04)return;let _0x2deeb9=_0x36cf04['table'][_0x4cb969(0x1f6)]();if(!(0x0,_0x5c88db[_0x4cb969(0x1ba)])(_0x2deeb9)[_0x4cb969(0x23b)](_0x3c8171[_0x4cb969(0xf5)]))return;let _0x2f537a=(0x0,_0x5c88db[_0x4cb969(0x15d)])(_0x2deeb9,_0x3c8171[_0x4cb969(0xf5)])[_0x4cb969(0x1e3)][_0x4cb969(0xfe)](_0x3c8171[_0x4cb969(0x16d)])??null,_0x2e31b6=(0x0,_0x5c88db[_0x4cb969(0x15b)])(_0x3c8171['value'])[0x0]??null;_0x2f537a!==_0x2e31b6&&this['_fireBeforeHierarchyChange'](_0x36cf04['base'],_0x36cf04['table'],[{'tableId':_0x3c8171['tableId'],'fieldId':_0x3c8171[_0x4cb969(0xf5)],'recordId':_0x3c8171[_0x4cb969(0x16d)],'oldParentRecordId':_0x2f537a,'parentRecordId':_0x2e31b6}],_0x3c8171[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)][_0x51a07b(0x251)],()=>this[_0x51a07b(0x1a5)]['beforeCommandExecuted'](_0x28942f=>{const _0x1de92c=_0x51a07b;if(_0x28942f['id']!==_0x5c88db['CreateBaseTableCommand']['id'])return;let {unitId:_0x19ebb0,table:_0x1f585d,index:_0x46d364}=_0x28942f[_0x1de92c(0x197)],_0x3e529f=this['getBase'](_0x19ebb0);if(!_0x3e529f)return;let _0x258948={'base':_0x3e529f,'table':_0x1f585d,'index':_0x46d364};if(this[_0x1de92c(0x23a)](this[_0x1de92c(0x265)][_0x1de92c(0x251)],_0x258948),_0x258948[_0x1de92c(0x1ad)])throw new _0x460afa[(_0x1de92c(0x1b3))]();}))),this[_0x51a07b(0x214)](this['registerEventHandler'](this['Event'][_0x51a07b(0x1b7)],()=>this['_commandService'][_0x51a07b(0x246)](_0xfb0a9a=>{const _0x163b64=_0x51a07b;if(_0xfb0a9a['id']!==_0x5c88db[_0x163b64(0x1bb)]['id'])return;let {unitId:_0x3366dc,tableId:_0x300278,field:_0x125e30,index:_0x22a8a0,viewIndexes:_0x41af59}=_0xfb0a9a[_0x163b64(0x197)],_0x1e33ac=this['getBase'](_0x3366dc);if(!_0x1e33ac)return;let _0x8aa07b=_0x1e33ac['getTableById'](_0x300278);if(!_0x8aa07b)return;let _0x4617b4={'base':_0x1e33ac,'table':_0x8aa07b,'field':_0x125e30,'index':_0x22a8a0,'viewIndexes':_0x41af59};if(this[_0x163b64(0x23a)](this[_0x163b64(0x265)][_0x163b64(0x1b7)],_0x4617b4),_0x4617b4[_0x163b64(0x1ad)])throw new _0x460afa['CanceledError']();}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)][_0x51a07b(0x22f)],()=>this[_0x51a07b(0x1a5)][_0x51a07b(0x246)](_0x7d6540=>{const _0x2bb87c=_0x51a07b;if(_0x7d6540['id']!==_0x5c88db['CreateBaseRecordCommand']['id']&&_0x7d6540['id']!==_0x5c88db[_0x2bb87c(0x245)]['id'])return;let _0x18c76f=_0x7d6540[_0x2bb87c(0x197)],{unitId:_0x46d2f9,tableId:_0x36a771}=_0x18c76f,_0x30d516=_0x18c76f[_0x2bb87c(0x211)]??[_0x18c76f['record']],_0x5abdd4=this[_0x2bb87c(0x14d)](_0x46d2f9);if(!_0x5abdd4)return;let _0x38bfce=_0x5abdd4[_0x2bb87c(0x240)](_0x36a771);if(!_0x38bfce)return;let _0x22295d={'base':_0x5abdd4,'table':_0x38bfce,'records':_0x30d516};if(this[_0x2bb87c(0x23a)](this['Event'][_0x2bb87c(0x22f)],_0x22295d),_0x22295d[_0x2bb87c(0x1ad)])throw new _0x460afa[(_0x2bb87c(0x1b3))]();}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)]['BeforeBaseTableViewCreate'],()=>this['_commandService']['beforeCommandExecuted'](_0x2f2ffb=>{const _0x5a2288=_0x51a07b;if(_0x2f2ffb['id']!==_0x5c88db['CreateBaseViewCommand']['id'])return;let {unitId:_0x4ebe46,tableId:_0x3347a6,view:_0x4f4040,index:_0x311df6}=_0x2f2ffb['params'],_0x3de133=this['getBase'](_0x4ebe46);if(!_0x3de133)return;let _0x30f415=_0x3de133[_0x5a2288(0x240)](_0x3347a6);if(!_0x30f415)return;let _0x4218e6={'base':_0x3de133,'table':_0x30f415,'view':_0x4f4040,'index':_0x311df6};if(this['fireEvent'](this[_0x5a2288(0x265)][_0x5a2288(0x145)],_0x4218e6),_0x4218e6[_0x5a2288(0x1ad)])throw new _0x460afa[(_0x5a2288(0x1b3))]();}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)][_0x51a07b(0x10c)],()=>this[_0x51a07b(0x1a5)][_0x51a07b(0x246)](_0x1a4bf9=>{const _0x5ad7ed=_0x51a07b;if(_0x1a4bf9['id']!==_0x5c88db[_0x5ad7ed(0x21b)]['id'])return;let {unitId:_0x2bcffa,tableId:_0x1c0140,recordId:_0xfa90b,fieldId:_0x47fc56,value:_0x4a1333}=_0x1a4bf9[_0x5ad7ed(0x197)],_0x7d4ecc=this[_0x5ad7ed(0x14d)](_0x2bcffa);if(!_0x7d4ecc)return;let _0x117df7=_0x7d4ecc[_0x5ad7ed(0x240)](_0x1c0140);if(!_0x117df7)return;let _0x1d270c=_0x117df7[_0x5ad7ed(0x147)](_0x47fc56);if(!_0x1d270c)return;let _0x57fa7a=_0x117df7[_0x5ad7ed(0x267)](_0xfa90b);if(!_0x57fa7a)return;let _0xc0a96f={'base':_0x7d4ecc,'table':_0x117df7,'field':_0x1d270c,'record':_0x57fa7a,'value':_0x4a1333};if(this[_0x5ad7ed(0x23a)](this[_0x5ad7ed(0x265)][_0x5ad7ed(0x10c)],_0xc0a96f),_0xc0a96f[_0x5ad7ed(0x1ad)])throw new _0x460afa[(_0x5ad7ed(0x1b3))]();})));}['_getHierarchyEventContext'](_0x4fa9da,_0x1e862a){const _0x31b6c9=_0x7fc612;let _0x408e18=this['getBase'](_0x4fa9da),_0x5112ba=_0x408e18==null?void 0x0:_0x408e18[_0x31b6c9(0x240)](_0x1e862a);return _0x408e18&&_0x5112ba?{'base':_0x408e18,'table':_0x5112ba}:null;}[_0x7fc612(0x191)](_0xeb4b01,_0x1a592d,_0x4ff875,_0x2548ce){const _0x105388=_0x7fc612;if(!_0x4ff875[_0x105388(0x208)])return;let _0x3104a5={'base':_0xeb4b01,'table':_0x1a592d,'changes':_0x4ff875,'source':_0x2548ce};if(this[_0x105388(0x23a)](this['Event'][_0x105388(0x26f)],_0x3104a5),_0x3104a5[_0x105388(0x1ad)])throw new _0x460afa[(_0x105388(0x1b3))]();}};function _0x210185(_0x83500a,_0x1fc449){const _0x2b8798=_0x7fc612;return _0x83500a['id']===_0x1fc449['id']&&_0x83500a[_0x2b8798(0x197)]!==void 0x0;}_0x1813e5[_0x7fc612(0xdf)][_0x7fc612(0x1df)](_0x1989bb);var _0x498dac=class extends _0x1813e5[_0x7fc612(0x18e)]{get[_0x7fc612(0x15a)](){const _0x18e940=_0x7fc612;return _0x460afa[_0x18e940(0x15a)];}get[_0x7fc612(0x218)](){return _0x460afa['BaseFilterConjunction'];}get[_0x7fc612(0x239)](){const _0x32da39=_0x7fc612;return _0x460afa[_0x32da39(0x239)];}get[_0x7fc612(0xc8)](){return _0x20ef2a;}get[_0x7fc612(0xb8)](){const _0x4f175d=_0x7fc612;return _0x460afa[_0x4f175d(0xb8)];}get[_0x7fc612(0x1d3)](){const _0x2b3057=_0x7fc612;return _0x460afa[_0x2b3057(0x1d3)];}get[_0x7fc612(0x1ee)](){const _0x4f31c2=_0x7fc612;return _0x460afa[_0x4f31c2(0x1ee)];}get['BaseConditionalDateMode'](){const _0x58047a=_0x7fc612;return _0x460afa[_0x58047a(0xec)];}get['BaseSortDirection'](){const _0x473666=_0x7fc612;return _0x460afa[_0x473666(0x162)];}get[_0x7fc612(0x21c)](){const _0x41d614=_0x7fc612;return _0x5c88db[_0x41d614(0x21c)];}get['BaseHierarchyErrorCode'](){const _0x98a0b0=_0x7fc612;return _0x5c88db[_0x98a0b0(0xf2)];}get[_0x7fc612(0x228)](){const _0x21589b=_0x7fc612;return _0x460afa[_0x21589b(0x228)];}get[_0x7fc612(0x1ed)](){const _0x20682c=_0x7fc612;return _0x460afa[_0x20682c(0x1ed)];}};_0x1813e5['FEnum']['extend'](_0x498dac);var _0x4a9771=class extends _0x1813e5[_0x7fc612(0xff)]{get[_0x7fc612(0x243)](){const _0x32809e=_0x7fc612;return _0x32809e(0x243);}get[_0x7fc612(0x251)](){const _0x5a48ec=_0x7fc612;return _0x5a48ec(0x251);}get['BaseTableFieldCreated'](){const _0x4da07d=_0x7fc612;return _0x4da07d(0x159);}get['BeforeBaseTableFieldCreate'](){return'BeforeBaseTableFieldCreate';}get['BaseTableRecordCreated'](){const _0x3ce15c=_0x7fc612;return _0x3ce15c(0xcc);}get[_0x7fc612(0x22f)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){return'BaseTableViewCreated';}get[_0x7fc612(0x145)](){return'BeforeBaseTableViewCreate';}get['BaseTableCellValueChanged'](){const _0x2a270e=_0x7fc612;return _0x2a270e(0x1a8);}get[_0x7fc612(0x10c)](){const _0x16085f=_0x7fc612;return _0x16085f(0x10c);}get[_0x7fc612(0x1c6)](){const _0x404717=_0x7fc612;return _0x404717(0x1c6);}get[_0x7fc612(0x26f)](){const _0x3a4762=_0x7fc612;return _0x3a4762(0x26f);}};_0x1813e5['FEventName'][_0x7fc612(0x1df)](_0x4a9771),_0x24290d[_0x7fc612(0xc8)]=_0x20ef2a,Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x20c),{'enumerable':!0x0,'get':function(){return _0x5c53a0;}}),_0x24290d[_0x7fc612(0x19e)]=_0x5a8ed0,_0x24290d[_0x7fc612(0x230)]=_0x4712ce,Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0xd6),{'enumerable':!0x0,'get':function(){return _0x27bce8;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x209),{'enumerable':!0x0,'get':function(){return _0x2003da;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x154),{'enumerable':!0x0,'get':function(){return _0x7421c3;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0xd7),{'enumerable':!0x0,'get':function(){return _0x54b90e;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x181),{'enumerable':!0x0,'get':function(){return _0x282005;}}),_0x24290d['FBasesEventNameMixin']=_0x4a9771,_0x24290d['resolveBaseFieldKey']=_0x1163c7,_0x24290d['resolveBaseFieldValues']=_0x442707;}));function _0x5d29(){const _0x48c220=['Kanban','UNIVER_BASE','BaseViewType','Gallery','conditions','caseSensitive','getDataRange','_resourceLoaderService','_getHierarchyIndex','hidden','100881YjqFSA','7056687LRTtMs','UpdateBaseRecordOrderCommand','deleteRecords','_getFieldIds','\x22:\x20expected\x20an\x20array.','sourceType','SetBaseViewFieldVisibleCommand','BaseFieldKeyEnum','endRow','AND','executeCommand','BaseTableRecordCreated','Invalid\x20attachment\x20at\x20index\x20','UUID','SetBaseRangeValuesCommand','getBaseViewPermissionObjectId','setDefaultValue','isFinite','getBaseId','primaryFieldId','Clear','FBaseTable','FBaseTableRecord','symbol','UniverInstanceType','values','_fieldId','_getView','map','UniverCore','FUniver','[FRecord]:\x20field\x20\x22','offset','getPrimaryFieldId','notMatches','setValue','_viewId','defaultValue','validateBaseHierarchyRecordCreations','\x22\x20is\x20invalid.','viewOrder','Date','UniverProBasesFacade','BaseConditionalDateMode','getPrimaryField','RecordLink','toPrimitive','addField','addRecords','BaseHierarchyErrorCode','addChild','hasOwnProperty','fieldId','limit','search','_base','stringify','duplicate','getType','getProjection','constructor','get','FEventName','object','setHierarchyField','305484oYJkUd','__esModule','system','canEdit','width','SetBaseViewSortCommand','UnitAction','sort','moveField','getTableFacade','BeforeBaseTableCellValueChange','fields','getCurrentUnitOfType','\x20for\x20field\x20\x22','duplicateTable','[FRecord]:\x20record\x20\x22','CreateBaseChildRecordCommand','enumerable','createUnit','generateRandomId','syncExecuteCommand','function','unitId','field','\x22\x20is\x20not\x20an\x20Attachment\x20field.','DeleteBaseViewCommand','url','UniverProtocol','ICommandService','RenameBaseTableCommand','getId','61626AbrZeb','rowId','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','_prepareFormulaFieldReferences','Edit',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','_unitId','canEditBaseTargets','endColumn','height','message','parentRecordId','clearConditionalColorRules','tableId','find','990855EpzWtV','getDescription','IBaseProjectionService','serializeRecordLinkIds','invalid','\x22.\x20','getPrototypeOf','Facade','getSort','rules','direction','[FTable]:\x20table\x20\x22','startColumn','getFieldByName','mimeType','table','insertTable','BASE_TABLE_NAME_REQUIREMENTS','\x20exceeds\x20range\x20size\x20','isArray','from','BeforeBaseTableViewCreate','resolveBaseRangeHierarchyPatches','getFieldById','primaryFieldName','getNumColumns','Tools','SetBaseViewGroupCommand','Failed\x20to\x20add\x20records','getBase','getBaseFieldPermissionObjectId','_getAttachmentField','afterFieldId','getAncestors','DeleteBaseFieldCommand','getSnapshot','FBaseTableRange','Calendar','setEditable','filter','getBaseFormulaTableName','BaseTableFieldCreated','BaseFieldType','parseRecordLinkIds','includeRecords','buildBaseHierarchyIndex','getOwnPropertyNames','valid','getConditionalColorRules','onCommandExecuted','BaseSortDirection','startRow','indexOf','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','ImageSourceType','UniverProEngineFormula','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','ApplyBaseJson1Mutation','MoveBaseViewCommand','@univerjs/core','getBaseTablePermissionObjectId','recordId','Base\x20field\x20not\x20found:\x20','isReadonly','now','[FRecord]:\x20attachment\x20at\x20index\x20','CreateBaseRecordCommand','number','prototype','targetTableId','\x22\x20does\x20not\x20exist.','getPermission','getFormulaName','save','_baseUnitId','BASE_RECORD_ID_FIELD_ID','max',':\x20\x22','[FRecord]:\x20RecordLink\x20field\x20\x22','bind','getAllUnitsForType','FBaseTableView','UpsertHostExternalReferencesCommand','setValues','getRecord','thumbnail','every','getActiveBase','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','custom','name','setAttachments','getColumn','deleteConditionalColorRule','FEnum','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','updateConfig','_fireBeforeHierarchyChange','49rqnJEI','type','538ExIdbh','_baseTableId',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','params','SetBaseViewFieldOrderCommand','saveUnit','description','Name','childrenByParentId','Invalid\x20Base\x20regex\x20filter:\x20','FBaseObjectPermission','tables','validateBaseHierarchyRecordPatches','Gantt','deepClone','setLinkedRecordIds','_inject','_commandService','URL','beforeFieldId','BaseTableCellValueChanged','default','_injector','_assertInBounds','_parentObjectIds','cancel','push','index','flatMap','getBases','Inject','CanceledError','getAttachments','_range','toStringTag','BeforeBaseTableFieldCreate','recordOrder','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getActiveBaseHierarchyFieldIds','CreateBaseFieldCommand','getDefaultValue','Remote','entries','views','view','iterator','record','getField',':\x20expected\x20an\x20object.','_projectionService','BaseHierarchyChanged','_tableId','config','changeType','forEach','formula','getRange','getTableByName','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getUnitId','_initBaseAfterEvents','_table','Failed\x20to\x20delete\x20table\x20\x22','BaseConditionalColorTarget','getUnit','setConditionalColorRules','_getHierarchyEventContext','_resolveRecordIds','createUniqueBaseTableName','_recordId','warn','119iqUQWk','deleteTable','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','validateBaseTableName','extend','getConfig','_permissionService','startsWith','parentByRecordId','setSort','ensureBaseTableCellLayout','getTables','call','_writeFormulaExternalReferences','UpdateBaseViewConfigCommand','getName','12DGOqcv','IPermissionService','BaseRecordLinkRole','BaseConditionalColorOperator','Formula','SetBasePermissionCommand','IResourceLoaderService','\x22\x20must\x20be\x20a\x20non-empty\x20string.','setFilter','removeLinkedRecord','getOwnPropertyDescriptor','getTable','SetBaseViewFieldWidthCommand','UniverProBases','15VmObDI','operator','setReadOnly','deleteProperty','@univerjs/protocol','clear','UniverCoreFacade','getSchema','fromCollab','data:','SetBasePermissionsCommand','Delete','Duplicate\x20Base\x20field\x20name:\x20','create','getHierarchyFieldId','length','FBaseTableField','decorate','localeCompare','FBase','matches','visibleCardFieldIds','slice','DeleteBaseTableCommand','records','Failed\x20to\x20create\x20view\x20\x22','UpdateBaseViewConditionalColorRulesCommand','disposeWithMe','_getRecord','fieldSettings','fieldKey','BaseFilterConjunction','_initBaseBeforeEvents','externalReferences','UpdateBaseCellCommand','BaseEventSource','_univerInstanceService','getValues','DuplicateBaseRecordCommand','addRecord','delete','conditionalColoring','getBasePermissionValue','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','orderKey','subtreeHeightByRecordId','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','BaseHierarchyInvalidReason','getViewById','SetBaseTableHierarchyFieldCommand','tableOrder','SetBaseViewFilterCommand','getRow','getTableId','BeforeBaseTableRecordCreate','FBasePermission','Injector','viewId','validateRecordLinkValue','_getRecordLinkField','getFields','getBaseRecordPermissionObjectId','queryRecords','DeleteBaseRecordCommand','BaseFilterOperator','fireEvent','includes','getNumRows','getValue','CreateBaseTableCommand','_collectDescendantIds','getTableById','Invalid\x20Base\x20formula.','getVisibleFields','BaseTableCreated','createdAt','BatchCreateBaseRecordsCommand','beforeCommandExecuted','boolean','864456agSpNB','getParent','setPoint','defineProperty','searchBaseTable','getLinkedRecordIds','some','hierarchyChanges','registerEventHandler','BeforeBaseTableCreate','[FField]:\x20field\x20\x22','regenerateViewIds','createInstance','Unsupported\x20Base\x20field\x20type\x20\x22','setName','string','size','move','update','CreateBaseViewCommand','SetBaseRecordValuesCommand','getRecords','createDefaultBaseTableSnapshot','getBaseHierarchyDeletePromotions','BatchDeleteBaseRecordsCommand','addConditionalColorRule','setConfig','updatedAt','@univerjs-pro/bases','Event','fieldOrder','getRecordById','has','_getField','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','reason','auto','_getTable','readonly','BeforeBaseHierarchyChange','multiple','source','getPoint','180grSaiW','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','FBaseInitialable','_initialize','rows','RenameBaseViewCommand','[FRecord]:\x20invalid\x20RecordLink\x20value.','BaseConditionalColorRuleUpdateType','getBaseCellValue','_objectId','\x20Copy','copyBaseTableSnapshot','SetBaseNameCommand','trim','base'];_0x5d29=function(){return _0x48c220;};return _0x5d29();}
1
+ function _0x16a9(){const _0x50b6a1=['Base\x20field\x20not\x20found:\x20','move','now','sort','RenameBaseTableCommand','copyBaseTableSnapshot','getView','@univerjs/core/facade','BeforeBaseTableRecordCreate','enumerable','ICommandService','_permissionService','FEventName','UpdateBaseViewConditionalColorRulesCommand','startColumn','_objectId','rules','fields','UpdateBaseFieldCommand','table','buildBaseHierarchyIndex',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','Failed\x20to\x20add\x20records','createdAt','\x22\x20does\x20not\x20exist.','MoveBaseHierarchyRecordCommand','getRecord','IPermissionService','iterator','afterFieldId','get','field','toPrimitive','create','generateRandomId','5484Vagoal','recordId','BatchCreateBaseRecordsCommand','BaseViewType','moveField','\x20for\x20field\x20\x22','values','DeleteBaseTableCommand','flatMap','Tools',':\x20expected\x20an\x20object.','data:','duplicate','getVisibleFields','UpdateBaseCellCommand','params','UniverCoreFacade','every','_range','_writeFormulaExternalReferences','hierarchyChanges','BaseFilterConjunction','getNumRows','getFieldSettings','_univerInstanceService','BASE_RECORD_ID_FIELD_ID','Module','getSort','setAttachments','FBaseTable','BeforeBaseTableCreate','reason','\x20in\x20field\x20\x22','indexOf','Invalid\x20Base\x20formula.','BASE64','setValue','group','addLinkedRecord','getBaseFacade','_getAttachmentField','deleteProperty','Injector','\x20exceeds\x20range\x20size\x20','MoveBaseViewCommand','getPrototypeOf','UniverProBases','Duplicate\x20Base\x20field\x20name:\x20','url','saveUnit','tableOrder','FBaseObjectPermission','_resourceLoaderService','getTableFacade','fieldOrder','test','getFilter','childrenByParentId','parseRecordLinkIds','Failed\x20to\x20create\x20view\x20\x22','isReadonly','removeLinkedRecord','UniverProBasesFacade','getBaseFormulaTableName','deleteAttachments','call','getFormulaName','validateBaseHierarchyRecordCreations','duplicateTable','updateConfig','visibleCardFieldIds','getViews','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','view','CreateBaseTableCommand','trim','getValues','operator','BaseFilterOperator','setDefaultValue','includes','clear','getTableById','endRow','getTable','recordOrder','RecordId','valid','getBaseTablePermissionObjectId','ensureBaseTableCellLayout','primaryFieldId','_fireBeforeHierarchyChange','queryRecords','find','_viewId','setPoint','Event','from','_getRecord','SetBaseRecordValuesCommand',':\x20\x22','getNumColumns','FBasesEventNameMixin','_getHierarchyEventContext','@univerjs/protocol','Kanban','10uuPncl','size','orderKey','UniverInstanceType','isFinite','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','setConfig','map','constructor','registerEventHandler','_prepareFormulaFieldReferences','save','decorate','getBase','push','direction','\x22.\x20','string','index','[FRecord]:\x20attachment\x20at\x20index\x20','createUnit','setValues','_getTable','getFieldById','setEditable','defineProperty','[FBase]:\x20table\x20\x22','deleteConditionalColorRule','extend','matchesBaseCondition','syncExecuteCommand','DuplicateBaseRecordCommand','CreateBaseFieldCommand','records','addRecords','getPermission','BaseConditionalDateMode','value','delete','fireEvent','[FRecord]:\x20record\x20\x22','_initialize','disposeWithMe','onCommandExecuted','boolean','exports','BaseHierarchyErrorCode','BeforeBaseTableCellValueChange','_table','update','createDefaultBaseTableSnapshot','BaseRecordLinkRole','isArray','10RUxvLI','_initBaseBeforeEvents','Facade','width','ImageSourceType','localeCompare','beforeFieldId','2188224ZgQVJH','Clear','IBaseProjectionService','Formula','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','\x22\x20is\x20invalid.','getSnapshot','FBaseTableRange','__esModule','Inject','max','filter','fieldIds','BaseHierarchyInvalidReason','_projectionService','_inject','setFilter','startRow','BatchDeleteBaseRecordsCommand','\x22:\x20expected\x20an\x20array.','UnitAction','config','Failed\x20to\x20add\x20field\x20\x22','auto',',\x20max\x20columns:\x20','slice','BeforeBaseTableFieldCreate','type','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','_unitId','RecordLink','stringify','getDescription','length','5871100zTXJrL','BaseConditionalColorTarget','\x22\x20is\x20not\x20an\x20Attachment\x20field.','description','MoveBaseFieldCommand','fieldId','BaseTableViewCreated','defaultValue','BaseTableRecordCreated','tableId','_resolveRecordIds','2925800ZIiJtd','deepClone','targetTableId','resolveBaseRangeHierarchyPatches','CreateBaseViewCommand','SetBaseRangeValuesCommand','@univerjs/core','_commandService','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','Set','_baseTableId','Gantt','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','resolveBaseHierarchyFieldId','\x22\x20has\x20invalid\x20config.','2391051IjcMBt','addField','FBaseTableView','FBasePermission','getColumn','_injector','getPrimaryFieldId','_fieldId','_getFieldIds','readonly','setLinkedRecordIds','system','SetBaseViewFieldWidthCommand','getRecordById','getBases','BaseConditionalColorRuleUpdateType','getBaseRecordPermissionObjectId','_collectDescendantIds','_getHierarchyIndex','_getRecordLinkField','BaseTableCreated','473IrjMjz','regenerateViewIds','entries','validateBaseTableName','getLinkedRecordIds','getTables','FBaseInitialable','FBase','name','limit','executeCommand','offset','default','beforeCommandExecuted','Delete','BaseEventSource','FBaseTableRecord','Failed\x20to\x20create\x20table\x20\x22','rowId','object','fromEntries','toStringTag','getActiveBase','source','getTableId','DeleteBaseRecordCommand','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','fieldKey','CreateBaseChildRecordCommand','parentRecordId','setFieldVisible','getAncestors','views','changeType','search','Unsupported\x20Base\x20field\x20type\x20\x22','externalReferences','[FView]:\x20view\x20\x22','[FRecord]:\x20field\x20\x22','getUnitId','commonExtend','BaseConditionalColorOperator','matches','hasOwnProperty','createUniqueBaseTableName','invalid','URL','setReadOnly','mimeType','getOwnPropertyDescriptor','sourceType','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','Edit','UpdateBaseRecordOrderCommand','addRecord','SetBaseViewFieldOrderCommand','message','Failed\x20to\x20delete\x20table\x20\x22','BASE_TABLE_NAME_REQUIREMENTS','getHierarchyFieldId','caseSensitive',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','record','BeforeBaseHierarchyChange','parentByRecordId','setName','UUID','setOrderKey','UniverProtocol','6wZeFZZ','IResourceLoaderService','_assertInBounds','AND','RenameBaseViewCommand','getBaseId','bind','warn','viewOrder','getTableByName','Attachment','Gallery','getGroup','getValue','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getAllUnitsForType','DeleteBaseFieldCommand','@univerjs-pro/bases','endColumn','_initBaseAfterEvents','getName','getDescendants','updatedAt','fromCollab','CreateBaseRecordCommand','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','_base','fieldSettings','[FRecord]:\x20RecordLink\x20field\x20\x22','conditions','_getView','CanceledError','rows','canEdit','addChild','base','multiple','Grid','getViewById','BaseHierarchyChanged','SetBasePermissionCommand','getSchema','getType','getProjection','setConditionalColorRules','viewId','resolveBaseFieldKey','unitId','FBaseTableField','FUniver','BeforeBaseTableViewCreate','BaseSortDirection','getCurrentUnitOfType','[FBase]:\x20invalid\x20table\x20name\x20\x22','forEach','validateBaseHierarchyRecordPatches','primaryFieldName','getActiveBaseHierarchyFieldIds','getDataRange','tables','_getField','deleteTable','_tableId','7KuBxaq','BaseFieldType','[FBaseRange]:\x20table\x20does\x20not\x20exist.','BaseTableFieldCreated','157031fOtywl','UNIVER_BASE','hidden','DESC','getBaseFieldPermissionObjectId','UpdateBaseViewConfigCommand','thumbnail','prototype','has','getAttachments','setGroup','UpsertHostExternalReferencesCommand','getId','some','BaseTableCellValueChanged','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','symbol','3877884bksrow','getRange','_recordId','FEnum','searchBaseTable','DeleteBaseViewCommand','SetBaseViewFieldVisibleCommand','getBasePermissionValue',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','BaseFieldKeyEnum','setFieldWidth','getDefaultValue','SetBasePermissionsCommand','getConfig','cancel','setObjectPermissions','function','createInstance','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','_baseUnitId','[FBaseRange]:\x20values\x20size\x20'];_0x16a9=function(){return _0x50b6a1;};return _0x16a9();}function _0x42f9(_0x61eeb4,_0x57ef94){_0x61eeb4=_0x61eeb4-0xff;const _0x16a9e6=_0x16a9();let _0x42f918=_0x16a9e6[_0x61eeb4];return _0x42f918;}(function(_0x25dff0,_0x4ebd9d){const _0x87da16=_0x42f9,_0x21fd93=_0x25dff0();while(!![]){try{const _0x3ca54c=parseInt(_0x87da16(0x278))/0x1*(parseInt(_0x87da16(0x198))/0x2)+-parseInt(_0x87da16(0x1db))/0x3+-parseInt(_0x87da16(0x1cc))/0x4+parseInt(_0x87da16(0x1c1))/0x5*(parseInt(_0x87da16(0x235))/0x6)+-parseInt(_0x87da16(0x274))/0x7*(parseInt(_0x87da16(0x19f))/0x8)+parseInt(_0x87da16(0x289))/0x9*(parseInt(_0x87da16(0x163))/0xa)+-parseInt(_0x87da16(0x1f0))/0xb*(-parseInt(_0x87da16(0x2c1))/0xc);if(_0x3ca54c===_0x4ebd9d)break;else _0x21fd93['push'](_0x21fd93['shift']());}catch(_0xb533fa){_0x21fd93['push'](_0x21fd93['shift']());}}}(_0x16a9,0x946a3),function(_0x47b61f,_0x4303a3){const _0x2c8dae=_0x42f9;typeof exports=='object'&&typeof module<'u'?_0x4303a3(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/protocol'),require('@univerjs-pro/engine-formula')):typeof define==_0x2c8dae(0x299)&&define['amd']?define([_0x2c8dae(0x190),_0x2c8dae(0x246),_0x2c8dae(0x1d2),_0x2c8dae(0x2a5),_0x2c8dae(0x161),'@univerjs-pro/engine-formula'],_0x4303a3):(_0x47b61f=typeof globalThis<'u'?globalThis:_0x47b61f||self,_0x4303a3(_0x47b61f[_0x2c8dae(0x137)]={},_0x47b61f[_0x2c8dae(0x127)],_0x47b61f['UniverCore'],_0x47b61f[_0x2c8dae(0x109)],_0x47b61f[_0x2c8dae(0x234)],_0x47b61f['UniverProEngineFormula']));}(this,function(_0x3aa7af,_0x49735b,_0x577e5e,_0x319556,_0x3ff935,_0x2c0653){const _0x531b89=_0x42f9;Object['defineProperty'](_0x3aa7af,Symbol[_0x531b89(0x205)],{'value':_0x531b89(0x113)});var _0x1aef06=Object[_0x531b89(0x2bf)],_0xab9e2=Object['defineProperty'],_0x6ffb7e=Object[_0x531b89(0x221)],_0x2c685b=Object['getOwnPropertyNames'],_0x4bc6d8=Object[_0x531b89(0x126)],_0xdbc588=Object['prototype'][_0x531b89(0x21b)],_0x2bfab5=(_0x1a74f8,_0x175af5,_0x4e4711,_0x694837)=>{const _0xa78375=_0x531b89;if(_0x175af5&&typeof _0x175af5==_0xa78375(0x203)||typeof _0x175af5==_0xa78375(0x299)){for(var _0x427827=_0x2c685b(_0x175af5),_0x1104a2=0x0,_0x4e19d6=_0x427827[_0xa78375(0x1c0)],_0x52e488;_0x1104a2<_0x4e19d6;_0x1104a2++)_0x52e488=_0x427827[_0x1104a2],!_0xdbc588[_0xa78375(0x13a)](_0x1a74f8,_0x52e488)&&_0x52e488!==_0x4e4711&&_0xab9e2(_0x1a74f8,_0x52e488,{'get':(_0x4efb04=>_0x175af5[_0x4efb04])[_0xa78375(0x23b)](null,_0x52e488),'enumerable':!(_0x694837=_0x6ffb7e(_0x175af5,_0x52e488))||_0x694837[_0xa78375(0x2a7)]});}return _0x1a74f8;};_0x319556=((_0x159c90,_0x33431b,_0xdaa5d3)=>(_0xdaa5d3=_0x159c90==null?{}:_0x1aef06(_0x4bc6d8(_0x159c90)),_0x2bfab5(_0x33431b||!_0x159c90||!_0x159c90[_0x531b89(0x1a7)]||!_0xdbc588['call'](_0x159c90,_0x531b89(0x1fc))?_0xab9e2(_0xdaa5d3,_0x531b89(0x1fc),{'value':_0x159c90,'enumerable':!0x0}):_0xdaa5d3,_0x159c90)))(_0x319556);var _0x41d5c4=class{constructor(_0x5218ca,_0x5ed0e6,_0x2995c5){const _0x40e3c7=_0x531b89;this['_unitId']=_0x5218ca,this[_0x40e3c7(0x1d3)]=_0x5ed0e6,this[_0x40e3c7(0x2a9)]=_0x2995c5;}async[_0x531b89(0x298)](_0x38ae5d){const _0x1b9157=_0x531b89;return this['_commandService'][_0x1b9157(0x1fa)](_0x49735b[_0x1b9157(0x295)]['id'],{'unitId':this[_0x1b9157(0x1bc)],'changes':_0x38ae5d});}async[_0x531b89(0x158)](_0x1b5866,_0x386fec){const _0x4f7d90=_0x531b89;await this[_0x4f7d90(0x1d3)][_0x4f7d90(0x1fa)](_0x49735b[_0x4f7d90(0x25d)]['id'],{'unitId':this[_0x4f7d90(0x1bc)],'objectId':this[_0x4f7d90(0x1bc)],'action':_0x1b5866,'value':_0x386fec});}['getPoint'](_0x5d0cb4){const _0x16a659=_0x531b89;return(0x0,_0x49735b[_0x16a659(0x290)])(this[_0x16a659(0x2a9)],this[_0x16a659(0x1bc)],this[_0x16a659(0x1bc)],_0x5d0cb4);}async[_0x531b89(0x17b)](_0x11cda3=!0x0){const _0x566840=_0x531b89;await this[_0x566840(0x1d3)][_0x566840(0x1fa)](_0x49735b[_0x566840(0x25d)]['id'],{'unitId':this[_0x566840(0x1bc)],'objectId':this[_0x566840(0x1bc)],'action':_0x3ff935[_0x566840(0x1b3)]['Edit'],'value':_0x11cda3});}async['setReadOnly'](){const _0x5aaeb3=_0x531b89;await this[_0x5aaeb3(0x1d3)][_0x5aaeb3(0x1fa)](_0x49735b[_0x5aaeb3(0x25d)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x5aaeb3(0x1bc)],'action':_0x3ff935[_0x5aaeb3(0x1b3)][_0x5aaeb3(0x224)],'value':!0x1});}['canEdit'](){const _0x170eaa=_0x531b89;return(0x0,_0x49735b[_0x170eaa(0x290)])(this['_permissionService'],this[_0x170eaa(0x1bc)],this[_0x170eaa(0x1bc)],_0x3ff935['UnitAction']['Edit']);}},_0x332a83=class{constructor(_0x33414b,_0x23d197,_0x5abb88,_0x38b78d,_0x4fd128){const _0x409615=_0x531b89;this['_unitId']=_0x33414b,this[_0x409615(0x2ad)]=_0x23d197,this['_parentObjectIds']=_0x5abb88,this[_0x409615(0x1d3)]=_0x38b78d,this[_0x409615(0x2a9)]=_0x4fd128;}async[_0x531b89(0x17b)](_0x2c4e9a=!0x0){const _0x39efe2=_0x531b89;await this['_commandService'][_0x39efe2(0x1fa)](_0x49735b[_0x39efe2(0x25d)]['id'],{'unitId':this[_0x39efe2(0x1bc)],'objectId':this[_0x39efe2(0x2ad)],'action':_0x3ff935[_0x39efe2(0x1b3)]['Edit'],'value':_0x2c4e9a});}async[_0x531b89(0x21f)](){const _0x4b3d60=_0x531b89;await this[_0x4b3d60(0x1d3)][_0x4b3d60(0x1fa)](_0x49735b[_0x4b3d60(0x25d)]['id'],{'unitId':this[_0x4b3d60(0x1bc)],'objectId':this[_0x4b3d60(0x2ad)],'action':_0x3ff935[_0x4b3d60(0x1b3)][_0x4b3d60(0x224)],'value':!0x1});}[_0x531b89(0x256)](){const _0x2a299b=_0x531b89;return(0x0,_0x49735b['canEditBaseTargets'])(this[_0x2a299b(0x2a9)],this[_0x2a299b(0x1bc)],[...this['_parentObjectIds'],this[_0x2a299b(0x2ad)]]);}};function _0xcf9898(_0x325d15,_0x32e112){return function(_0x26e60b,_0x58c0ea){_0x32e112(_0x26e60b,_0x58c0ea,_0x325d15);};}function _0x3468bf(_0x4110b8,_0x2694da,_0x5da262,_0xb6b7e){const _0x779a66=_0x531b89;var _0x19e3b4=arguments[_0x779a66(0x1c0)],_0x3755e0=_0x19e3b4<0x3?_0x2694da:_0xb6b7e===null?_0xb6b7e=Object[_0x779a66(0x221)](_0x2694da,_0x5da262):_0xb6b7e,_0x23dcd8;if(typeof Reflect==_0x779a66(0x203)&&typeof Reflect[_0x779a66(0x16f)]==_0x779a66(0x299))_0x3755e0=Reflect[_0x779a66(0x16f)](_0x4110b8,_0x2694da,_0x5da262,_0xb6b7e);else{for(var _0x33193a=_0x4110b8[_0x779a66(0x1c0)]-0x1;_0x33193a>=0x0;_0x33193a--)(_0x23dcd8=_0x4110b8[_0x33193a])&&(_0x3755e0=(_0x19e3b4<0x3?_0x23dcd8(_0x3755e0):_0x19e3b4>0x3?_0x23dcd8(_0x2694da,_0x5da262,_0x3755e0):_0x23dcd8(_0x2694da,_0x5da262))||_0x3755e0);}return _0x19e3b4>0x3&&_0x3755e0&&Object[_0x779a66(0x17c)](_0x2694da,_0x5da262,_0x3755e0),_0x3755e0;}let _0x26697c=class{constructor(_0x5ef8ae,_0x21c943,_0x313613,_0x5b9f5e,_0x31697f){const _0x33272e=_0x531b89;this['_base']=_0x5ef8ae,this[_0x33272e(0x193)]=_0x21c943,this[_0x33272e(0x1e2)]=_0x313613,this[_0x33272e(0x1d3)]=_0x5b9f5e,this[_0x33272e(0x2a9)]=_0x31697f;}[_0x531b89(0x284)](){const _0x4213c1=_0x531b89;return this[_0x4213c1(0x1e2)];}['getPermission'](){const _0x450018=_0x531b89;let _0x5231c2=this[_0x450018(0x193)][_0x450018(0x284)]();return new _0x332a83(this[_0x450018(0x24f)]['getId'](),(0x0,_0x49735b[_0x450018(0x27c)])(_0x5231c2,this[_0x450018(0x1e2)]),[(0x0,_0x49735b[_0x450018(0x151)])(_0x5231c2)],this[_0x450018(0x1d3)],this[_0x450018(0x2a9)]);}['getField'](){const _0x47a40d=_0x531b89;return this[_0x47a40d(0x271)]();}[_0x531b89(0x249)](){const _0x4c450e=_0x531b89;return this[_0x4c450e(0x271)]()[_0x4c450e(0x1f8)];}[_0x531b89(0x25f)](){const _0x8a88b1=_0x531b89;return this['_getField']()[_0x8a88b1(0x1ba)];}[_0x531b89(0x296)](){const _0x184cdc=_0x531b89;return this[_0x184cdc(0x271)]()[_0x184cdc(0x1b4)];}[_0x531b89(0x294)](){const _0x110b95=_0x531b89;return this[_0x110b95(0x271)]()[_0x110b95(0x1c8)];}[_0x531b89(0x1bf)](){const _0xa1b6e2=_0x531b89;return this[_0xa1b6e2(0x271)]()[_0xa1b6e2(0x1c4)];}[_0x531b89(0x135)](){const _0x3d5beb=_0x531b89;return!!this['_getField']()[_0x3d5beb(0x1e4)];}[_0x531b89(0x231)](_0x22bd46){const _0x4f1d54=_0x531b89;return this[_0x4f1d54(0x194)]({'name':_0x22bd46});}[_0x531b89(0x169)](_0x367c89,_0x3c8ed9){const _0x5f0ba1=_0x531b89;return this[_0x5f0ba1(0x194)]({'config':_0x367c89},_0x3c8ed9);}[_0x531b89(0x148)](_0x18506a){const _0x151bf0=_0x531b89;return this[_0x151bf0(0x194)]({'defaultValue':_0x18506a});}['update'](_0x33d16d,_0x453e2e){const _0xe7252c=_0x531b89;let _0x2ce2fd=this[_0xe7252c(0x271)]()[_0xe7252c(0x1ba)];return(_0x33d16d['type']??_0x2ce2fd)===_0x577e5e[_0xe7252c(0x275)][_0xe7252c(0x1a2)]&&(Object[_0xe7252c(0x27f)][_0xe7252c(0x21b)][_0xe7252c(0x13a)](_0x33d16d,_0xe7252c(0x1b4))||_0x33d16d[_0xe7252c(0x1ba)]===_0x577e5e['BaseFieldType']['Formula'])&&!this[_0xe7252c(0x10c)](_0x453e2e)?!0x1:this['_commandService'][_0xe7252c(0x181)](_0x49735b[_0xe7252c(0x2b0)]['id'],{'unitId':this[_0xe7252c(0x24f)][_0xe7252c(0x284)](),'tableId':this[_0xe7252c(0x193)][_0xe7252c(0x284)](),'fieldId':this[_0xe7252c(0x1e2)],'patch':_0x33d16d});}[_0x531b89(0x211)](_0x4cf8da,_0x136dad={},_0x44680c){const _0x472993=_0x531b89;return _0x4cf8da===_0x577e5e['BaseFieldType'][_0x472993(0x1a2)]&&!this[_0x472993(0x10c)](_0x44680c)?!0x1:this[_0x472993(0x1d3)]['syncExecuteCommand'](_0x49735b['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0x472993(0x24f)][_0x472993(0x284)](),'tableId':this[_0x472993(0x193)][_0x472993(0x284)](),'fieldId':this['_fieldId'],'input':{'type':_0x4cf8da,'config':_0x136dad}});}[_0x531b89(0x189)](){const _0x2e083e=_0x531b89;return this[_0x2e083e(0x1d3)][_0x2e083e(0x181)](_0x49735b[_0x2e083e(0x245)]['id'],{'unitId':this[_0x2e083e(0x24f)][_0x2e083e(0x284)](),'tableId':this[_0x2e083e(0x193)][_0x2e083e(0x284)](),'fieldId':this['_fieldId']});}[_0x531b89(0x29f)](_0x49f598){const _0x51762f=_0x531b89;return this[_0x51762f(0x1d3)]['syncExecuteCommand'](_0x49735b[_0x51762f(0x1c5)]['id'],{'unitId':this['_base'][_0x51762f(0x284)](),'tableId':this[_0x51762f(0x193)]['getId'](),'fieldId':this[_0x51762f(0x1e2)],'target':_0x49f598});}[_0x531b89(0x271)](){const _0x1c10f9=_0x531b89;let _0x8b0292=this[_0x1c10f9(0x193)]['getTable']()['fields'][this[_0x1c10f9(0x1e2)]];if(!_0x8b0292)throw Error('[FField]:\x20field\x20\x22'+this[_0x1c10f9(0x1e2)]+_0x1c10f9(0x2b6));return _0x8b0292;}[_0x531b89(0x10c)](_0x115e88){const _0x239d18=_0x531b89;if(!_0x115e88||!Array[_0x239d18(0x197)](_0x115e88['externalReferences']))return console['warn']('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x115e88['externalReferences'][_0x239d18(0x1c0)]===0x0)return!0x0;let _0x340354=this[_0x239d18(0x1d3)]['syncExecuteCommand'](_0x2c0653[_0x239d18(0x283)]['id'],{'unitId':this[_0x239d18(0x24f)][_0x239d18(0x284)](),'references':_0x115e88['externalReferences']});return _0x340354||console[_0x239d18(0x23c)](_0x239d18(0x168)),_0x340354;}};_0x26697c=_0x3468bf([_0xcf9898(0x3,_0x577e5e[_0x531b89(0x2a8)]),_0xcf9898(0x4,_0x577e5e[_0x531b89(0x2b9)])],_0x26697c);let _0x5e8baf=function(_0x23ba2d){const _0x4ea9b9=_0x531b89;return _0x23ba2d['Id']='id',_0x23ba2d['Name']='name',_0x23ba2d['Auto']=_0x4ea9b9(0x1b6),_0x23ba2d;}({});function _0x2174d7(_0x41d5de){const _0x7c5307=_0x531b89;return!!(_0x41d5de&&_0x41d5de[_0x7c5307(0x1e6)]!==!0x0&&_0x41d5de['type']!==_0x577e5e['BaseFieldType'][_0x7c5307(0x14f)]);}function _0x5a87fb(_0x12d418,_0x4fa38e,_0xade5bd='id'){const _0x546b28=_0x531b89;if(!_0x4fa38e)return{};let _0x5654eb={};return Object['entries'](_0x4fa38e)[_0x546b28(0x26b)](([_0x24f6d0,_0x1b3654])=>{const _0x19513f=_0x546b28;let _0x1609b0=_0x493cbd(_0x12d418,_0x24f6d0,_0xade5bd);_0x5654eb[_0x1609b0]=_0x4c4420(_0x12d418[_0x19513f(0x2af)][_0x1609b0],_0x1b3654);}),_0x5654eb;}function _0x4c4420(_0x53e0c0,_0x1c4a97){const _0x2bfdeb=_0x531b89;if((_0x53e0c0==null?void 0x0:_0x53e0c0[_0x2bfdeb(0x1ba)])!==_0x577e5e[_0x2bfdeb(0x275)][_0x2bfdeb(0x23f)]||_0x1c4a97==null)return _0x1c4a97;if(!Array[_0x2bfdeb(0x197)](_0x1c4a97))throw TypeError(_0x2bfdeb(0x1bb)+_0x53e0c0[_0x2bfdeb(0x1f8)]+_0x2bfdeb(0x1b2));return _0x1c4a97[_0x2bfdeb(0x16a)]((_0x5d9eeb,_0x5c4b54)=>_0x5e3e8f(_0x53e0c0,_0x5d9eeb,_0x5c4b54));}function _0x493cbd(_0x5d6c3f,_0x40d153,_0x2ab9f5){const _0xcba15b=_0x531b89;if(_0x2ab9f5==='id'||_0x2ab9f5===_0xcba15b(0x1b6)&&_0x5d6c3f['fields'][_0x40d153])return _0x40d153;let _0x4e9896=Object[_0xcba15b(0xff)](_0x5d6c3f['fields'])[_0xcba15b(0x1aa)](_0x3e2bb8=>_0x3e2bb8[_0xcba15b(0x1f8)]===_0x40d153);if(_0x4e9896[_0xcba15b(0x1c0)]===0x1)return _0x4e9896[0x0]['id'];throw _0x4e9896['length']>0x1?Error(_0xcba15b(0x128)+_0x40d153):Error(_0xcba15b(0x29e)+_0x40d153);}function _0x5e3e8f(_0x3f730d,_0x15fb5b,_0x36df7b){const _0x56219d=_0x531b89;let _0x517be3='Invalid\x20attachment\x20at\x20index\x20'+_0x36df7b+_0x56219d(0x2c6)+_0x3f730d['name']+'\x22';if(!_0x2387df(_0x15fb5b))throw TypeError(_0x517be3+_0x56219d(0x103));if(_0x56219d(0x129)in _0x15fb5b)throw TypeError(_0x517be3+_0x56219d(0x22d));if(_0x56219d(0x1ba)in _0x15fb5b)throw TypeError(_0x517be3+_0x56219d(0x291));let _0x100266=_0x475c89(_0x15fb5b['id'],_0x517be3,'id'),_0x1dacf3=_0x475c89(_0x15fb5b[_0x56219d(0x1f8)],_0x517be3,_0x56219d(0x1f8)),_0x57f22c=_0x475c89(_0x15fb5b[_0x56219d(0x207)],_0x517be3,_0x56219d(0x207));return{'id':_0x100266,'name':_0x1dacf3,'source':_0x57f22c,'sourceType':_0x1a78d8(_0x15fb5b[_0x56219d(0x222)],_0x57f22c,_0x517be3),..._0x4f591(_0x15fb5b,_0x56219d(0x220),_0x517be3),..._0x151ea6(_0x15fb5b,'size',_0x517be3),..._0x151ea6(_0x15fb5b,_0x56219d(0x19b),_0x517be3),..._0x151ea6(_0x15fb5b,'height',_0x517be3),..._0x4f591(_0x15fb5b,_0x56219d(0x27e),_0x517be3)};}function _0x1a78d8(_0x53afbf,_0x50562f,_0x1be021){const _0x488fb4=_0x531b89;if(_0x53afbf==null)return _0x50562f['startsWith'](_0x488fb4(0x104))?_0x577e5e['ImageSourceType']['BASE64']:_0x577e5e[_0x488fb4(0x19c)][_0x488fb4(0x21e)];if(_0x53afbf===_0x577e5e['ImageSourceType'][_0x488fb4(0x21e)]||_0x53afbf===_0x577e5e[_0x488fb4(0x19c)][_0x488fb4(0x232)]||_0x53afbf===_0x577e5e[_0x488fb4(0x19c)][_0x488fb4(0x11c)])return _0x53afbf;throw TypeError(_0x1be021+_0x488fb4(0x2b3));}function _0x475c89(_0x2d44f,_0x2dd9a8,_0x262b3c){const _0x4767bd=_0x531b89;if(typeof _0x2d44f!=_0x4767bd(0x174)||!_0x2d44f[_0x4767bd(0x144)]())throw TypeError(_0x2dd9a8+_0x4767bd(0x15d)+_0x262b3c+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x2d44f;}function _0x4f591(_0x407403,_0x19eb09,_0x7dd7b2){const _0x46442c=_0x531b89;let _0x575153=_0x407403[_0x19eb09];if(_0x575153==null)return{};if(typeof _0x575153!='string'||!_0x575153['trim']())throw TypeError(_0x7dd7b2+_0x46442c(0x15d)+_0x19eb09+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x19eb09]:_0x575153};}function _0x151ea6(_0x1d457e,_0x57c31e,_0x4932b7){const _0xe46150=_0x531b89;let _0xc740c3=_0x1d457e[_0x57c31e];if(_0xc740c3==null)return{};if(typeof _0xc740c3!='number'||!Number[_0xe46150(0x167)](_0xc740c3)||_0xc740c3<0x0)throw TypeError(_0x4932b7+':\x20\x22'+_0x57c31e+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x57c31e]:_0xc740c3};}function _0x2387df(_0x592258){const _0x25fcb2=_0x531b89;return typeof _0x592258=='object'&&!!_0x592258&&!Array[_0x25fcb2(0x197)](_0x592258);}var _0x463900;let _0x5a3404=_0x463900=class{constructor(_0x11239e,_0x43b0d0,_0x495c60,_0x1c6ced,_0x467f6f){const _0xa9702f=_0x531b89;this['_base']=_0x11239e,this['_table']=_0x43b0d0,this[_0xa9702f(0x10b)]=_0x495c60,this[_0xa9702f(0x1ae)]=_0x1c6ced,this[_0xa9702f(0x1d3)]=_0x467f6f,this['_assertInBounds']();}[_0x531b89(0x23a)](){const _0x25dd99=_0x531b89;return this[_0x25dd99(0x24f)][_0x25dd99(0x284)]();}[_0x531b89(0x208)](){const _0xa64a7c=_0x531b89;return this[_0xa64a7c(0x193)][_0xa64a7c(0x284)]();}[_0x531b89(0x28a)](){const _0x277545=_0x531b89;return{...this[_0x277545(0x10b)]};}['getRow'](){const _0x2903e9=_0x531b89;return this[_0x2903e9(0x10b)][_0x2903e9(0x1b0)];}[_0x531b89(0x1df)](){const _0x2fcd9b=_0x531b89;return this[_0x2fcd9b(0x10b)][_0x2fcd9b(0x2ac)];}[_0x531b89(0x10f)](){const _0x906ccf=_0x531b89;return this[_0x906ccf(0x10b)]['endRow']-this['_range'][_0x906ccf(0x1b0)]+0x1;}[_0x531b89(0x15e)](){const _0x15d57c=_0x531b89;return this[_0x15d57c(0x10b)][_0x15d57c(0x247)]-this['_range'][_0x15d57c(0x2ac)]+0x1;}[_0x531b89(0x145)](){const _0x232b44=_0x531b89;let _0x13ec3c=this[_0x232b44(0x179)](),_0x24932b=this[_0x232b44(0x1e3)](_0x13ec3c),_0x50bfc2=[];for(let _0x4a4ddc=this[_0x232b44(0x10b)][_0x232b44(0x1b0)];_0x4a4ddc<=this[_0x232b44(0x10b)][_0x232b44(0x14c)];_0x4a4ddc++){var _0x12fa96;let _0x33e378=(_0x12fa96=_0x13ec3c[_0x232b44(0x202)])==null?void 0x0:_0x12fa96[_0x4a4ddc],_0x30a8a5=[];for(let _0x3fd2b4=this[_0x232b44(0x10b)][_0x232b44(0x2ac)];_0x3fd2b4<=this[_0x232b44(0x10b)]['endColumn'];_0x3fd2b4++){let _0x3e788d=_0x24932b[_0x3fd2b4];_0x30a8a5['push'](_0x33e378&&_0x3e788d?(0x0,_0x49735b['getBaseCellValue'])(_0x13ec3c,_0x33e378,_0x3e788d):null);}_0x50bfc2[_0x232b44(0x171)](_0x30a8a5);}return _0x50bfc2;}[_0x531b89(0x242)](){const _0x293fc8=_0x531b89;var _0x8efa77;return((_0x8efa77=this[_0x293fc8(0x145)]()[0x0])==null?void 0x0:_0x8efa77[0x0])??null;}[_0x531b89(0x11d)](_0x16e224){return this['setValues']([[_0x16e224]]);}[_0x531b89(0x178)](_0x27b12c){const _0x2f4a4a=_0x531b89;let _0x5c2604=this[_0x2f4a4a(0x10f)](),_0x549dde=this[_0x2f4a4a(0x15e)]();if(_0x27b12c[_0x2f4a4a(0x1c0)]>_0x5c2604||_0x27b12c['some'](_0x5022df=>_0x5022df[_0x2f4a4a(0x1c0)]>_0x549dde)){var _0x571809;throw Error(_0x2f4a4a(0x29d)+_0x27b12c[_0x2f4a4a(0x1c0)]+'x'+(((_0x571809=_0x27b12c[0x0])==null?void 0x0:_0x571809['length'])??0x0)+_0x2f4a4a(0x124)+_0x5c2604+'x'+_0x549dde+'.');}let _0x4304af=this[_0x2f4a4a(0x179)](),_0x9e46e=this[_0x2f4a4a(0x1e3)](_0x4304af),_0x4cb12b=_0x27b12c[_0x2f4a4a(0x101)]((_0x1cbde4,_0x478f73)=>_0x1cbde4[_0x2f4a4a(0x16a)]((_0x3c11a0,_0x454f95)=>{const _0x2d5bd=_0x2f4a4a;var _0x482178;let _0x562262=this[_0x2d5bd(0x10b)][_0x2d5bd(0x1b0)]+_0x478f73,_0x1ed99f=_0x9e46e[this[_0x2d5bd(0x10b)]['startColumn']+_0x454f95],_0x2d0a57=(_0x482178=_0x4304af[_0x2d5bd(0x202)])==null?void 0x0:_0x482178[_0x562262];if(!_0x1ed99f||!_0x2d0a57)throw Error(_0x2d5bd(0x1a3));return{'recordId':_0x2d0a57,'fieldId':_0x1ed99f,'value':_0x3c11a0};}));return this[_0x2f4a4a(0x1d3)][_0x2f4a4a(0x181)](_0x49735b[_0x2f4a4a(0x1d1)]['id'],{'unitId':this[_0x2f4a4a(0x24f)][_0x2f4a4a(0x284)](),'tableId':this[_0x2f4a4a(0x193)][_0x2f4a4a(0x284)](),'patches':_0x4cb12b,'source':_0x49735b[_0x2f4a4a(0x1ff)]['Facade']});}[_0x531b89(0x14a)](){const _0x3b305b=_0x531b89;return this[_0x3b305b(0x178)](Array[_0x3b305b(0x15a)]({'length':this['getNumRows']()},()=>Array['from']({'length':this[_0x3b305b(0x15e)]()},()=>null)));}[_0x531b89(0x1fb)](_0x5c2c05,_0x36a815,_0x1cbdcb=this[_0x531b89(0x10f)](),_0x28581a=this[_0x531b89(0x15e)]()){const _0x28a172=_0x531b89;return this['_inject'][_0x28a172(0x29a)](_0x463900,this['_base'],this['_table'],{'startRow':this['_range'][_0x28a172(0x1b0)]+_0x5c2c05,'startColumn':this[_0x28a172(0x10b)]['startColumn']+_0x36a815,'endRow':this['_range'][_0x28a172(0x1b0)]+_0x5c2c05+_0x1cbdcb-0x1,'endColumn':this['_range'][_0x28a172(0x2ac)]+_0x36a815+_0x28581a-0x1},this[_0x28a172(0x1ae)]);}[_0x531b89(0x179)](){const _0x545c8a=_0x531b89;let _0x3524e0=this[_0x545c8a(0x193)]['getTable']();if(!_0x3524e0)throw Error(_0x545c8a(0x276));return(0x0,_0x49735b[_0x545c8a(0x152)])(_0x3524e0);}[_0x531b89(0x237)](){const _0x36efdb=_0x531b89;var _0x3e66c6;let _0x3f9df0=this[_0x36efdb(0x179)](),_0x12f03e=((_0x3e66c6=_0x3f9df0['recordOrder'])==null?void 0x0:_0x3e66c6[_0x36efdb(0x1c0)])??0x0,_0x177456=this[_0x36efdb(0x1e3)](_0x3f9df0)[_0x36efdb(0x1c0)];if(this['_range'][_0x36efdb(0x1b0)]<0x0||this[_0x36efdb(0x10b)][_0x36efdb(0x2ac)]<0x0||this[_0x36efdb(0x10b)][_0x36efdb(0x14c)]<this[_0x36efdb(0x10b)][_0x36efdb(0x1b0)]||this[_0x36efdb(0x10b)][_0x36efdb(0x247)]<this[_0x36efdb(0x10b)][_0x36efdb(0x2ac)]||this[_0x36efdb(0x10b)][_0x36efdb(0x14c)]>=Math[_0x36efdb(0x1a9)](_0x12f03e,0x1)||this['_range'][_0x36efdb(0x247)]>=Math['max'](_0x177456,0x1))throw Error(_0x36efdb(0x287)+_0x12f03e+_0x36efdb(0x1b7)+_0x177456+',\x20range:\x20'+JSON[_0x36efdb(0x1be)](this[_0x36efdb(0x10b)])+'.');}[_0x531b89(0x1e3)](_0x1f9412){const _0x3871cc=_0x531b89;return _0x1f9412['fieldOrder'][_0x3871cc(0x1aa)](_0x35493a=>_0x2174d7(_0x1f9412[_0x3871cc(0x2af)][_0x35493a]));}};_0x5a3404=_0x463900=_0x3468bf([_0xcf9898(0x4,_0x577e5e['ICommandService'])],_0x5a3404);function _0x4b0eb6(_0x29e2f7){'@babel/helpers - typeof';const _0x15a739=_0x531b89;return _0x4b0eb6=typeof Symbol=='function'&&typeof Symbol[_0x15a739(0x2ba)]=='symbol'?function(_0x38cf27){return typeof _0x38cf27;}:function(_0x539d5c){const _0x267ccb=_0x15a739;return _0x539d5c&&typeof Symbol==_0x267ccb(0x299)&&_0x539d5c[_0x267ccb(0x16b)]===Symbol&&_0x539d5c!==Symbol['prototype']?_0x267ccb(0x288):typeof _0x539d5c;},_0x4b0eb6(_0x29e2f7);}function _0x4bcf39(_0x4efff7,_0x3d831c){const _0x2adf5d=_0x531b89;if(_0x4b0eb6(_0x4efff7)!=_0x2adf5d(0x203)||!_0x4efff7)return _0x4efff7;var _0x471166=_0x4efff7[Symbol[_0x2adf5d(0x2be)]];if(_0x471166!==void 0x0){var _0x12acee=_0x471166[_0x2adf5d(0x13a)](_0x4efff7,_0x3d831c||_0x2adf5d(0x1fc));if(_0x4b0eb6(_0x12acee)!=_0x2adf5d(0x203))return _0x12acee;throw TypeError(_0x2adf5d(0x141));}return(_0x3d831c===_0x2adf5d(0x174)?String:Number)(_0x4efff7);}function _0x2da726(_0x18efca){const _0x2182df=_0x531b89;var _0x132dfe=_0x4bcf39(_0x18efca,'string');return _0x4b0eb6(_0x132dfe)==_0x2182df(0x288)?_0x132dfe:_0x132dfe+'';}function _0x2db596(_0x4ad0a7,_0x15a9e1,_0x441760){const _0x1caa0e=_0x531b89;return(_0x15a9e1=_0x2da726(_0x15a9e1))in _0x4ad0a7?Object[_0x1caa0e(0x17c)](_0x4ad0a7,_0x15a9e1,{'value':_0x441760,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ad0a7[_0x15a9e1]=_0x441760,_0x4ad0a7;}var _0x56d1cf;let _0x4f396a=_0x56d1cf=class extends _0x319556[_0x531b89(0x1f6)]{constructor(_0x2f79e8,_0x39ebd4,_0x4f80f5,_0x10cdfb,_0x14215d,_0x4300d0){const _0x3da2b1=_0x531b89;super(_0x10cdfb),this[_0x3da2b1(0x24f)]=_0x2f79e8,this[_0x3da2b1(0x193)]=_0x39ebd4,this['_recordId']=_0x4f80f5,this['_injector']=_0x10cdfb,this[_0x3da2b1(0x1d3)]=_0x14215d,this[_0x3da2b1(0x2a9)]=_0x4300d0,_0x2db596(this,_0x3da2b1(0x29c),void 0x0),_0x2db596(this,'_baseTableId',void 0x0),this[_0x3da2b1(0x29c)]=_0x2f79e8[_0x3da2b1(0x284)](),this[_0x3da2b1(0x1d6)]=_0x39ebd4[_0x3da2b1(0x284)]();}[_0x531b89(0x120)](){const _0x4b1366=_0x531b89;return this[_0x4b1366(0x24f)];}[_0x531b89(0x12e)](){const _0x4b0610=_0x531b89;return this[_0x4b0610(0x193)];}['getId'](){const _0xfdb109=_0x531b89;return this[_0xfdb109(0x28b)];}[_0x531b89(0x186)](){const _0x267290=_0x531b89;let _0x47f4db=this[_0x267290(0x193)][_0x267290(0x284)]();return new _0x332a83(this[_0x267290(0x24f)][_0x267290(0x284)](),(0x0,_0x49735b[_0x267290(0x1eb)])(_0x47f4db,this['_recordId']),[(0x0,_0x49735b[_0x267290(0x151)])(_0x47f4db)],this[_0x267290(0x1d3)],this[_0x267290(0x2a9)]);}[_0x531b89(0x2b8)](){const _0x4aabfe=_0x531b89;return{...this[_0x4aabfe(0x15b)](),'values':this[_0x4aabfe(0x145)]()};}[_0x531b89(0x242)](_0x1879a5){const _0x551595=_0x531b89;return _0x2174d7(this[_0x551595(0x193)][_0x551595(0x14d)]()[_0x551595(0x2af)][_0x1879a5])?this['_getRecord']()[_0x551595(0xff)][_0x1879a5]??null:null;}[_0x531b89(0x145)](){const _0x2258cb=_0x531b89;let _0x46b9f0=this[_0x2258cb(0x193)][_0x2258cb(0x14d)]();return Object[_0x2258cb(0x204)](Object[_0x2258cb(0x1f2)](this['_getRecord']()[_0x2258cb(0xff)])[_0x2258cb(0x1aa)](([_0x1a95cd])=>_0x2174d7(_0x46b9f0[_0x2258cb(0x2af)][_0x1a95cd])));}[_0x531b89(0x11d)](_0x226a87,_0x33a5de){const _0x582f43=_0x531b89;let _0x44aa45=this[_0x582f43(0x193)]['getTable']()[_0x582f43(0x2af)][_0x226a87];return this['_commandService'][_0x582f43(0x181)](_0x49735b['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x582f43(0x284)](),'tableId':this[_0x582f43(0x193)][_0x582f43(0x284)](),'recordId':this[_0x582f43(0x28b)],'fieldId':_0x226a87,'value':_0x4c4420(_0x44aa45,_0x33a5de),'source':_0x49735b[_0x582f43(0x1ff)][_0x582f43(0x19a)]});}[_0x531b89(0x115)](_0x354af5,_0x4952a1){const _0x47ec22=_0x531b89;return this[_0x47ec22(0x11d)](_0x354af5,_0x4952a1[_0x47ec22(0x16a)](_0x163c27=>({..._0x163c27})));}[_0x531b89(0x281)](_0x2d460e){const _0x337b8a=_0x531b89;this[_0x337b8a(0x121)](_0x2d460e);let _0x2a5b45=this['getValue'](_0x2d460e);return Array['isArray'](_0x2a5b45)?_0x2a5b45['map']((_0x477b0d,_0x5d0355)=>_0x162982(_0x477b0d,_0x2d460e,_0x5d0355)):[];}[_0x531b89(0x139)](_0x3e81d6,_0x120480){const _0x2667d9=_0x531b89;this[_0x2667d9(0x121)](_0x3e81d6);let _0x16364b=new Set(_0x120480[_0x2667d9(0x16a)](_0x25a8a5=>_0x25a8a5['id']));if(!_0x16364b[_0x2667d9(0x164)])return!0x0;let _0x159841=this[_0x2667d9(0x281)](_0x3e81d6),_0x193d22=_0x159841[_0x2667d9(0x1aa)](_0x2455e4=>!_0x16364b['has'](_0x2455e4['id']));return _0x193d22[_0x2667d9(0x1c0)]===_0x159841[_0x2667d9(0x1c0)]||this['setAttachments'](_0x3e81d6,_0x193d22);}[_0x531b89(0x178)](_0x3df2e4,_0x229e45='id'){const _0x3e3a27=_0x531b89;let _0x31a99f=this[_0x3e3a27(0x193)][_0x3e3a27(0x14d)](),_0x413fd4=[{'recordId':this['_recordId'],'values':_0x5a87fb(_0x31a99f,_0x3df2e4,_0x229e45)}];return this[_0x3e3a27(0x1d3)][_0x3e3a27(0x181)](_0x49735b[_0x3e3a27(0x15c)]['id'],{'unitId':this[_0x3e3a27(0x24f)][_0x3e3a27(0x284)](),'tableId':this[_0x3e3a27(0x193)]['getId'](),'patches':_0x413fd4,'source':_0x49735b['BaseEventSource'][_0x3e3a27(0x19a)]});}[_0x531b89(0x189)](){const _0x670406=_0x531b89;return this[_0x670406(0x1d3)][_0x670406(0x181)](_0x49735b[_0x670406(0x209)]['id'],{'unitId':this[_0x670406(0x24f)][_0x670406(0x284)](),'tableId':this[_0x670406(0x193)][_0x670406(0x284)](),'recordId':this[_0x670406(0x28b)],'source':_0x49735b[_0x670406(0x1ff)][_0x670406(0x19a)]});}[_0x531b89(0x105)](_0x134075){const _0x1393b2=_0x531b89;let _0x4daa3d={...this[_0x1393b2(0x15b)](),..._0x134075,'id':(0x0,_0x577e5e['generateRandomId'])(0x6)};_0x4daa3d['values']={..._0x4daa3d[_0x1393b2(0xff)],..._0x134075==null?void 0x0:_0x134075['values']},Reflect[_0x1393b2(0x122)](_0x4daa3d[_0x1393b2(0xff)],_0x577e5e[_0x1393b2(0x112)]);let _0x3a6adc=Date[_0x1393b2(0x2a0)]();if(_0x4daa3d[_0x1393b2(0x165)]||=''+_0x3a6adc,_0x4daa3d[_0x1393b2(0x2b5)]||=_0x3a6adc,_0x4daa3d[_0x1393b2(0x24b)]||=_0x3a6adc,!this[_0x1393b2(0x1d3)]['syncExecuteCommand'](_0x49735b['DuplicateBaseRecordCommand']['id'],{'unitId':this[_0x1393b2(0x24f)]['getId'](),'tableId':this[_0x1393b2(0x193)][_0x1393b2(0x284)](),'sourceRecordId':this['_recordId'],'record':_0x4daa3d,'source':_0x49735b[_0x1393b2(0x1ff)]['Facade']}))throw Error(_0x1393b2(0x29b)+this[_0x1393b2(0x28b)]+'\x22.');return this['_injector'][_0x1393b2(0x29a)](_0x56d1cf,this['_base'],this[_0x1393b2(0x193)],_0x4daa3d['id'],this[_0x1393b2(0x1e0)]);}[_0x531b89(0x233)](_0x20d79d){const _0x3c0da5=_0x531b89;return this[_0x3c0da5(0x1d3)][_0x3c0da5(0x181)](_0x49735b[_0x3c0da5(0x225)]['id'],{'unitId':this[_0x3c0da5(0x24f)][_0x3c0da5(0x284)](),'tableId':this[_0x3c0da5(0x193)][_0x3c0da5(0x284)](),'recordId':this[_0x3c0da5(0x28b)],'orderKey':_0x20d79d});}[_0x531b89(0x1f4)](_0x3b3242){let _0x5c5381=this['_getRecordLinkField'](_0x3b3242),_0x5c7a16=this['getValue'](_0x5c5381['id']);return(0x0,_0x49735b['parseRecordLinkIds'])(_0x5c7a16);}[_0x531b89(0x1e5)](_0x4fa29d,_0x1e5fb2){const _0xc1c7fa=_0x531b89;let _0xc191f7=this[_0xc1c7fa(0x1ee)](_0x4fa29d),_0xcdf1b4=(0x0,_0x49735b['serializeRecordLinkIds'])(_0x1e5fb2),_0x551273=(0x0,_0x49735b['validateRecordLinkValue'])(this['_base'][_0xc1c7fa(0x170)]()[_0xc1c7fa(0x1a5)](),_0xc191f7,_0xcdf1b4);if(!_0x551273[_0xc1c7fa(0x150)])throw Error(_0x551273['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0xc1c7fa(0x1d3)][_0xc1c7fa(0x181)](_0x49735b['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0xc1c7fa(0x284)](),'tableId':this['_table']['getId'](),'recordId':this[_0xc1c7fa(0x28b)],'fieldId':_0x4fa29d,'value':_0xcdf1b4,'source':_0x49735b[_0xc1c7fa(0x1ff)][_0xc1c7fa(0x19a)]});}[_0x531b89(0x11f)](_0xffa887,_0x2c9d13){const _0x1e555e=_0x531b89;let _0x2f0a2b=this['_getRecordLinkField'](_0xffa887),_0x9fb69c=(0x0,_0x49735b['getRecordLinkFieldConfig'])(_0x2f0a2b);if(!_0x9fb69c)throw Error(_0x1e555e(0x251)+_0xffa887+_0x1e555e(0x1da));let _0x565689=this[_0x1e555e(0x1f4)](_0xffa887);return _0x9fb69c['multiple']&&_0x565689[_0x1e555e(0x149)](_0x2c9d13)?!0x0:this['setLinkedRecordIds'](_0xffa887,_0x9fb69c['multiple']?[..._0x565689,_0x2c9d13]:[_0x2c9d13]);}[_0x531b89(0x136)](_0x42cfc1,_0x1b4e1a){const _0x4ac9d3=_0x531b89;let _0x204917=this[_0x4ac9d3(0x1f4)](_0x42cfc1);return!_0x204917['includes'](_0x1b4e1a)||this[_0x4ac9d3(0x1e5)](_0x42cfc1,_0x204917['filter'](_0x5644d2=>_0x5644d2!==_0x1b4e1a));}['getParent'](_0xe4c961){const _0x427271=_0x531b89;let _0x164666=this[_0x427271(0x1ed)](_0xe4c961)[_0x427271(0x230)][_0x427271(0x2bc)](this[_0x427271(0x28b)])??null;return _0x164666?this[_0x427271(0x193)][_0x427271(0x1e8)](_0x164666):null;}['getChildren'](_0x1233dd){const _0xf96c87=_0x531b89;return(this[_0xf96c87(0x1ed)](_0x1233dd)[_0xf96c87(0x132)][_0xf96c87(0x2bc)](this[_0xf96c87(0x28b)])??[])[_0xf96c87(0x101)](_0x122f93=>{const _0x1e7a38=_0xf96c87;let _0x511cd2=this[_0x1e7a38(0x193)]['getRecordById'](_0x122f93);return _0x511cd2?[_0x511cd2]:[];});}[_0x531b89(0x20f)](_0x3a596c){const _0x4734cf=_0x531b89;let _0x1eb485=this[_0x4734cf(0x1ed)](_0x3a596c),_0x504744=[],_0x50b67a=_0x1eb485['parentByRecordId'][_0x4734cf(0x2bc)](this[_0x4734cf(0x28b)])??null;for(;_0x50b67a;){let _0x486811=this[_0x4734cf(0x193)]['getRecordById'](_0x50b67a);_0x486811&&_0x504744[_0x4734cf(0x171)](_0x486811),_0x50b67a=_0x1eb485[_0x4734cf(0x230)][_0x4734cf(0x2bc)](_0x50b67a)??null;}return _0x504744;}[_0x531b89(0x24a)](_0x4a83bc){const _0x17fa1c=_0x531b89;let _0x532fc4=this[_0x17fa1c(0x1ed)](_0x4a83bc),_0x20012e=_0x532fc4['orderedRecordIds'][_0x17fa1c(0x11a)](this[_0x17fa1c(0x28b)]),_0xf333c5=_0x532fc4['subtreeHeightByRecordId'][_0x17fa1c(0x280)](this[_0x17fa1c(0x28b)])?this['_collectDescendantIds'](_0x532fc4['childrenByParentId'],this[_0x17fa1c(0x28b)]):[];return _0x20012e<0x0?[]:_0xf333c5['flatMap'](_0x102df0=>{const _0x12a5ec=_0x17fa1c;let _0x3c26f2=this[_0x12a5ec(0x193)][_0x12a5ec(0x1e8)](_0x102df0);return _0x3c26f2?[_0x3c26f2]:[];});}['setParent'](_0x55f83b,_0x3e4c3c,_0x611903){const _0x5d1d49=_0x531b89;return this[_0x5d1d49(0x1d3)]['syncExecuteCommand'](_0x49735b['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'fieldId':_0x55f83b,'recordId':this['_recordId'],'parentRecordId':_0x3e4c3c,'orderKey':_0x611903,'source':_0x49735b[_0x5d1d49(0x1ff)][_0x5d1d49(0x19a)]});}[_0x531b89(0x257)](_0x1953fc,_0x1e0e1b,_0x283412='id',_0x5f320f){const _0x539043=_0x531b89;let _0x483483=this[_0x539043(0x193)][_0x539043(0x14d)](),_0xefab8a=Date[_0x539043(0x2a0)](),_0x319bc4={..._0x5f320f,'id':(0x0,_0x577e5e[_0x539043(0x2c0)])(0x6),'values':_0x5a87fb(_0x483483,_0x1e0e1b,_0x283412),'orderKey':(_0x5f320f==null?void 0x0:_0x5f320f[_0x539043(0x165)])||''+_0xefab8a,'createdAt':(_0x5f320f==null?void 0x0:_0x5f320f['createdAt'])||_0xefab8a,'updatedAt':(_0x5f320f==null?void 0x0:_0x5f320f[_0x539043(0x24b)])||_0xefab8a};if(!this[_0x539043(0x1d3)][_0x539043(0x181)](_0x49735b['CreateBaseChildRecordCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x539043(0x193)][_0x539043(0x284)](),'fieldId':_0x1953fc,'parentRecordId':this['_recordId'],'record':_0x319bc4,'source':_0x49735b[_0x539043(0x1ff)][_0x539043(0x19a)]}))throw Error(_0x539043(0x223)+this['_recordId']+'\x22.');return this['_injector'][_0x539043(0x29a)](_0x56d1cf,this['_base'],this[_0x539043(0x193)],_0x319bc4['id'],this[_0x539043(0x1e0)]);}[_0x531b89(0x1ed)](_0x7e13b6){const _0x23eb0e=_0x531b89;return(0x0,_0x49735b[_0x23eb0e(0x2b2)])(this[_0x23eb0e(0x193)][_0x23eb0e(0x14d)](),_0x7e13b6);}[_0x531b89(0x1ec)](_0x1b3130,_0x55132a){let _0x34d757=[],_0x123792=_0x49c87f=>{const _0x18f8bd=_0x42f9;for(let _0x39a60b of _0x1b3130['get'](_0x49c87f)??[])_0x34d757[_0x18f8bd(0x171)](_0x39a60b),_0x123792(_0x39a60b);};return _0x123792(_0x55132a),_0x34d757;}['_getRecord'](){const _0x1a774e=_0x531b89;let _0x3b48e6=this[_0x1a774e(0x193)][_0x1a774e(0x14d)]()[_0x1a774e(0x184)][this['_recordId']];if(!_0x3b48e6)throw Error(_0x1a774e(0x18b)+this[_0x1a774e(0x28b)]+_0x1a774e(0x2b6));return _0x3b48e6;}[_0x531b89(0x1ee)](_0x13bf96){const _0x317343=_0x531b89;let _0x33551e=this['_table']['getTable']()[_0x317343(0x2af)][_0x13bf96];if(!_0x33551e||_0x33551e['type']!==_0x577e5e[_0x317343(0x275)][_0x317343(0x1bd)])throw Error(_0x317343(0x216)+_0x13bf96+_0x317343(0x1d4));return _0x33551e;}['_getAttachmentField'](_0x4829d2){const _0x43b373=_0x531b89;let _0x3efea5=this[_0x43b373(0x193)]['getTable']()[_0x43b373(0x2af)][_0x4829d2];if(!_0x3efea5||_0x3efea5[_0x43b373(0x1ba)]!==_0x577e5e[_0x43b373(0x275)][_0x43b373(0x23f)])throw Error(_0x43b373(0x216)+_0x4829d2+_0x43b373(0x1c3));return _0x3efea5;}};_0x4f396a=_0x56d1cf=_0x3468bf([_0xcf9898(0x4,_0x577e5e[_0x531b89(0x2a8)]),_0xcf9898(0x5,_0x577e5e[_0x531b89(0x2b9)])],_0x4f396a);function _0x1e3402(_0x1bda4d){const _0x812385=_0x531b89;return!!(_0x1bda4d&&typeof _0x1bda4d=='object'&&'id'in _0x1bda4d&&typeof _0x1bda4d['id']=='string'&&_0x812385(0x1f8)in _0x1bda4d&&typeof _0x1bda4d[_0x812385(0x1f8)]=='string');}function _0x162982(_0x9744c7,_0xd54d53,_0xae911e){const _0x3a9ee5=_0x531b89;if(!_0x1e3402(_0x9744c7))throw Error(_0x3a9ee5(0x176)+_0xae911e+_0x3a9ee5(0x119)+_0xd54d53+_0x3a9ee5(0x1a4));return{..._0x9744c7};}let _0x2a4a93=class{constructor(_0x1c4502,_0x47010e,_0x28c719,_0x2213b0,_0x446ddc,_0x268f82,_0x49f9ff){const _0xb0e2d6=_0x531b89;this[_0xb0e2d6(0x24f)]=_0x1c4502,this[_0xb0e2d6(0x193)]=_0x47010e,this[_0xb0e2d6(0x157)]=_0x28c719,this[_0xb0e2d6(0x1e0)]=_0x2213b0,this[_0xb0e2d6(0x1d3)]=_0x446ddc,this[_0xb0e2d6(0x2a9)]=_0x268f82,this[_0xb0e2d6(0x1ad)]=_0x49f9ff;}[_0x531b89(0x284)](){const _0x18bec7=_0x531b89;return this[_0x18bec7(0x157)];}[_0x531b89(0x186)](){const _0x1c6696=_0x531b89;let _0x10d5a0=this['_table'][_0x1c6696(0x284)]();return new _0x332a83(this[_0x1c6696(0x24f)][_0x1c6696(0x284)](),(0x0,_0x49735b['getBaseViewPermissionObjectId'])(_0x10d5a0,this[_0x1c6696(0x157)]),[(0x0,_0x49735b[_0x1c6696(0x151)])(_0x10d5a0)],this['_commandService'],this['_permissionService']);}[_0x531b89(0x2a4)](){const _0x59858b=_0x531b89;return this[_0x59858b(0x253)]();}[_0x531b89(0x249)](){const _0x51f55c=_0x531b89;return this[_0x51f55c(0x253)]()[_0x51f55c(0x1f8)];}[_0x531b89(0x25f)](){const _0x32afa2=_0x531b89;return this[_0x32afa2(0x253)]()[_0x32afa2(0x1ba)];}['setName'](_0x29d8f5){const _0x3fc374=_0x531b89;return this[_0x3fc374(0x1d3)][_0x3fc374(0x181)](_0x49735b[_0x3fc374(0x239)]['id'],{'unitId':this[_0x3fc374(0x24f)]['getId'](),'tableId':this['_table'][_0x3fc374(0x284)](),'viewId':this[_0x3fc374(0x157)],'name':_0x29d8f5});}[_0x531b89(0x296)](){const _0x526e3c=_0x531b89;let _0x5600dc=this['getType'](),_0x138b29=this[_0x526e3c(0x253)]()[_0x526e3c(0x1b4)];switch(_0x5600dc){case _0x577e5e['BaseViewType'][_0x526e3c(0x25a)]:return _0x138b29;case _0x577e5e[_0x526e3c(0x2c4)]['Kanban']:return _0x138b29;case _0x577e5e[_0x526e3c(0x2c4)]['Calendar']:return _0x138b29;case _0x577e5e[_0x526e3c(0x2c4)][_0x526e3c(0x1d7)]:return _0x138b29;case _0x577e5e[_0x526e3c(0x2c4)][_0x526e3c(0x240)]:return _0x138b29;default:return _0x138b29;}}[_0x531b89(0x13e)](_0x18e05b){const _0x293a4a=_0x531b89;return this[_0x293a4a(0x1d3)][_0x293a4a(0x181)](_0x49735b[_0x293a4a(0x27d)]['id'],{'unitId':this[_0x293a4a(0x24f)][_0x293a4a(0x284)](),'tableId':this[_0x293a4a(0x193)][_0x293a4a(0x284)](),'viewId':this[_0x293a4a(0x157)],'patch':_0x18e05b});}['getConditionalColorRules'](){const _0x3b0e85=_0x531b89;var _0x56db6c;return _0x577e5e[_0x3b0e85(0x102)]['deepClone'](((_0x56db6c=this[_0x3b0e85(0x253)]()['config']['conditionalColoring'])==null?void 0x0:_0x56db6c[_0x3b0e85(0x2ae)])??[]);}[_0x531b89(0x261)](_0x55f8dc){const _0x51ef0a=_0x531b89;return this[_0x51ef0a(0x1d3)][_0x51ef0a(0x181)](_0x49735b[_0x51ef0a(0x2ab)]['id'],{'unitId':this['_base'][_0x51ef0a(0x284)](),'tableId':this['_table'][_0x51ef0a(0x284)](),'viewId':this[_0x51ef0a(0x157)],'type':_0x49735b[_0x51ef0a(0x1ea)][_0x51ef0a(0x1d5)],'rules':_0x55f8dc});}['addConditionalColorRule'](_0x41f8fb){const _0x7226ef=_0x531b89;return this[_0x7226ef(0x1d3)]['syncExecuteCommand'](_0x49735b[_0x7226ef(0x2ab)]['id'],{'unitId':this[_0x7226ef(0x24f)][_0x7226ef(0x284)](),'tableId':this['_table'][_0x7226ef(0x284)](),'viewId':this[_0x7226ef(0x157)],'type':_0x49735b[_0x7226ef(0x1ea)]['Add'],'rule':_0x41f8fb});}[_0x531b89(0x17e)](_0x5cc83d){const _0x42187a=_0x531b89;return this[_0x42187a(0x1d3)][_0x42187a(0x181)](_0x49735b[_0x42187a(0x2ab)]['id'],{'unitId':this[_0x42187a(0x24f)]['getId'](),'tableId':this['_table'][_0x42187a(0x284)](),'viewId':this[_0x42187a(0x157)],'type':_0x49735b[_0x42187a(0x1ea)][_0x42187a(0x1fe)],'ruleId':_0x5cc83d});}['clearConditionalColorRules'](){const _0x1391a5=_0x531b89;return this[_0x1391a5(0x1d3)][_0x1391a5(0x181)](_0x49735b[_0x1391a5(0x2ab)]['id'],{'unitId':this['_base'][_0x1391a5(0x284)](),'tableId':this[_0x1391a5(0x193)]['getId'](),'viewId':this[_0x1391a5(0x157)],'type':_0x49735b['BaseConditionalColorRuleUpdateType'][_0x1391a5(0x1a0)]});}[_0x531b89(0x131)](){const _0x1a68b9=_0x531b89;return this[_0x1a68b9(0x253)]()[_0x1a68b9(0x1aa)]??null;}[_0x531b89(0x1af)](_0x523788){const _0x5308b9=_0x531b89;return this[_0x5308b9(0x1d3)][_0x5308b9(0x181)](_0x49735b['SetBaseViewFilterCommand']['id'],{'unitId':this['_base'][_0x5308b9(0x284)](),'tableId':this[_0x5308b9(0x193)]['getId'](),'viewId':this[_0x5308b9(0x157)],'filter':_0x523788});}[_0x531b89(0x114)](){const _0x87b113=_0x531b89;return this['_getView']()[_0x87b113(0x2a1)]??[];}['setSort'](_0x1769d0){const _0x11524b=_0x531b89;return this['_commandService'][_0x11524b(0x181)](_0x49735b['SetBaseViewSortCommand']['id'],{'unitId':this[_0x11524b(0x24f)]['getId'](),'tableId':this['_table'][_0x11524b(0x284)](),'viewId':this['_viewId'],'sort':_0x1769d0});}[_0x531b89(0x241)](){const _0x353dc6=_0x531b89;return this[_0x353dc6(0x253)]()[_0x353dc6(0x11e)]??[];}[_0x531b89(0x282)](_0x4bd991){const _0x54f988=_0x531b89;return this[_0x54f988(0x1d3)][_0x54f988(0x181)](_0x49735b['SetBaseViewGroupCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x54f988(0x157)],'group':_0x4bd991});}[_0x531b89(0x110)](_0x3ec993){const _0x3cf32c=_0x531b89;var _0x340741;return _0x2174d7(this[_0x3cf32c(0x193)][_0x3cf32c(0x14d)]()['fields'][_0x3ec993])?((_0x340741=this[_0x3cf32c(0x253)]()[_0x3cf32c(0x250)])==null?void 0x0:_0x340741[_0x3ec993])??{}:{};}[_0x531b89(0x106)](){const _0x34f4ea=_0x531b89;let _0x2b666b=this['_table'][_0x34f4ea(0x14d)](),_0x13711d=this[_0x34f4ea(0x253)]();return(_0x13711d[_0x34f4ea(0x12f)]??_0x2b666b[_0x34f4ea(0x12f)])[_0x34f4ea(0x1aa)](_0xcca480=>{const _0x2f03bc=_0x34f4ea;var _0x1533f6;let _0x5af9ca=_0x2b666b[_0x2f03bc(0x2af)][_0xcca480];return _0x2174d7(_0x5af9ca)&&!((_0x1533f6=_0x13711d[_0x2f03bc(0x250)])!=null&&(_0x1533f6=_0x1533f6[_0xcca480])!=null&&_0x1533f6['hidden']);})[_0x34f4ea(0x16a)](_0x345738=>this[_0x34f4ea(0x1e0)]['createInstance'](_0x26697c,this[_0x34f4ea(0x24f)],this[_0x34f4ea(0x193)],_0x345738));}[_0x531b89(0x20e)](_0x2f49e1,_0x3314b8){const _0xa56f9e=_0x531b89;return _0x2174d7(this[_0xa56f9e(0x193)][_0xa56f9e(0x14d)]()['fields'][_0x2f49e1])?this[_0xa56f9e(0x1d3)]['syncExecuteCommand'](_0x49735b[_0xa56f9e(0x28f)]['id'],{'unitId':this[_0xa56f9e(0x24f)]['getId'](),'tableId':this[_0xa56f9e(0x193)]['getId'](),'viewId':this[_0xa56f9e(0x157)],'fieldId':_0x2f49e1,'visible':_0x3314b8}):!0x1;}[_0x531b89(0x293)](_0x2d3880,_0x1adbec){const _0x130e91=_0x531b89;return _0x2174d7(this[_0x130e91(0x193)][_0x130e91(0x14d)]()['fields'][_0x2d3880])?this[_0x130e91(0x1d3)][_0x130e91(0x181)](_0x49735b[_0x130e91(0x1e7)]['id'],{'unitId':this[_0x130e91(0x24f)][_0x130e91(0x284)](),'tableId':this[_0x130e91(0x193)][_0x130e91(0x284)](),'viewId':this[_0x130e91(0x157)],'fieldId':_0x2d3880,'width':_0x1adbec}):!0x1;}[_0x531b89(0x2c5)](_0xbcf14c,_0x4841b9){const _0x21780a=_0x531b89;let _0x3aaf99=this['_table']['getTable'](),_0x3f218e=_0x4841b9[_0x21780a(0x19e)]??_0x4841b9[_0x21780a(0x2bb)];return!_0x2174d7(_0x3aaf99[_0x21780a(0x2af)][_0xbcf14c])||!_0x3f218e||!_0x2174d7(_0x3aaf99[_0x21780a(0x2af)][_0x3f218e])?!0x1:this[_0x21780a(0x1d3)][_0x21780a(0x181)](_0x49735b[_0x21780a(0x227)]['id'],{'unitId':this[_0x21780a(0x24f)][_0x21780a(0x284)](),'tableId':this['_table'][_0x21780a(0x284)](),'viewId':this[_0x21780a(0x157)],'fieldId':_0xbcf14c,'target':_0x4841b9});}[_0x531b89(0x29f)](_0xf66b12){const _0x48c705=_0x531b89;return this[_0x48c705(0x1d3)][_0x48c705(0x181)](_0x49735b[_0x48c705(0x125)]['id'],{'unitId':this[_0x48c705(0x24f)][_0x48c705(0x284)](),'tableId':this[_0x48c705(0x193)][_0x48c705(0x284)](),'viewId':this[_0x48c705(0x157)],'target':_0xf66b12});}[_0x531b89(0x189)](){const _0x30ad63=_0x531b89;return this[_0x30ad63(0x1d3)]['syncExecuteCommand'](_0x49735b[_0x30ad63(0x28e)]['id'],{'unitId':this[_0x30ad63(0x24f)][_0x30ad63(0x284)](),'tableId':this[_0x30ad63(0x193)][_0x30ad63(0x284)](),'viewId':this['_viewId']});}[_0x531b89(0x260)](){const _0xabd0b5=_0x531b89;return this[_0xabd0b5(0x1ad)]['getProjection'](this[_0xabd0b5(0x24f)]['getBase']()[_0xabd0b5(0x1a5)](),this[_0xabd0b5(0x193)][_0xabd0b5(0x284)](),this[_0xabd0b5(0x157)]);}['_getView'](){const _0x1f0264=_0x531b89;let _0x781394=this[_0x1f0264(0x193)][_0x1f0264(0x14d)]()[_0x1f0264(0x210)][this[_0x1f0264(0x157)]];if(!_0x781394)throw Error(_0x1f0264(0x215)+this[_0x1f0264(0x157)]+'\x22\x20does\x20not\x20exist.');return _0x781394;}};_0x2a4a93=_0x3468bf([_0xcf9898(0x4,_0x577e5e[_0x531b89(0x2a8)]),_0xcf9898(0x5,_0x577e5e[_0x531b89(0x2b9)]),_0xcf9898(0x6,_0x49735b['IBaseProjectionService'])],_0x2a4a93);let _0x81d250=class{constructor(_0x3e9a04,_0x38bd10,_0x31ccdb,_0x514eaa,_0x1e22de,_0x52ac72){const _0x50142e=_0x531b89;this['_base']=_0x3e9a04,this[_0x50142e(0x273)]=_0x38bd10,this[_0x50142e(0x1e0)]=_0x31ccdb,this['_commandService']=_0x514eaa,this['_permissionService']=_0x1e22de,this['_projectionService']=_0x52ac72;}[_0x531b89(0x170)](){const _0x5d8f88=_0x531b89;return this[_0x5d8f88(0x24f)][_0x5d8f88(0x170)]();}[_0x531b89(0x14d)](){const _0x19fc25=_0x531b89;return this[_0x19fc25(0x179)]();}[_0x531b89(0x284)](){const _0x4ba565=_0x531b89;return this[_0x4ba565(0x273)];}[_0x531b89(0x186)](){const _0x14e34=_0x531b89;return new _0x332a83(this[_0x14e34(0x170)]()['getUnitId'](),(0x0,_0x49735b[_0x14e34(0x151)])(this[_0x14e34(0x273)]),[],this[_0x14e34(0x1d3)],this[_0x14e34(0x2a9)]);}[_0x531b89(0x22b)](){const _0x49f7ee=_0x531b89;return(0x0,_0x49735b['resolveBaseHierarchyFieldId'])(this[_0x49f7ee(0x179)]());}['setHierarchyField'](_0x1c40ef){const _0x2c51f5=_0x531b89;return this['_commandService']['syncExecuteCommand'](_0x49735b['SetBaseTableHierarchyFieldCommand']['id'],{'unitId':this[_0x2c51f5(0x24f)][_0x2c51f5(0x284)](),'tableId':this['_tableId'],'fieldId':_0x1c40ef});}[_0x531b89(0x249)](){const _0x2757fe=_0x531b89;return this[_0x2757fe(0x179)]()[_0x2757fe(0x1f8)];}[_0x531b89(0x13b)](){const _0x4f4b99=_0x531b89;let _0x194fef=this[_0x4f4b99(0x24f)][_0x4f4b99(0x170)]()[_0x4f4b99(0x1a5)]();return(0x0,_0x49735b[_0x4f4b99(0x138)])(this[_0x4f4b99(0x179)](),_0x194fef);}['setName'](_0x4d1794){const _0x35e94b=_0x531b89;let _0x103005=(0x0,_0x49735b[_0x35e94b(0x1f3)])(this[_0x35e94b(0x24f)][_0x35e94b(0x170)]()['getSnapshot'](),_0x4d1794,this['_tableId']);if(!_0x103005['valid'])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x4d1794+_0x35e94b(0x173)+_0x49735b[_0x35e94b(0x22a)]+'\x20'+_0x103005['reason']);return this[_0x35e94b(0x1d3)]['syncExecuteCommand'](_0x49735b[_0x35e94b(0x2a2)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x35e94b(0x273)],'name':_0x4d1794});}[_0x531b89(0x212)](_0x28b9c0,_0x10fd2f){const _0x179fa9=_0x531b89;let _0x145876=this['_base'][_0x179fa9(0x170)]()[_0x179fa9(0x1a5)](),_0x2d4d48=this[_0x179fa9(0x179)]();if(_0x10fd2f){let _0x39e494=this[_0x179fa9(0x1ad)]['getProjection'](_0x145876,this[_0x179fa9(0x273)],_0x10fd2f),_0x102386=_0x2d4d48[_0x179fa9(0x210)][_0x10fd2f],_0x2a2594=_0x28b9c0['fieldIds']??_0x432e1a(_0x2d4d48,_0x102386,_0x39e494),_0x1edf51='rows'in _0x39e494&&Array[_0x179fa9(0x197)](_0x39e494[_0x179fa9(0x255)])?_0x39e494['rows']:[];return(0x0,_0x49735b[_0x179fa9(0x28d)])({..._0x28b9c0,'table':_0x2d4d48,'fieldIds':_0x2a2594,'rows':_0x1edf51});}let _0x5e12c5=(_0x2d4d48[_0x179fa9(0x14e)]?_0x2d4d48[_0x179fa9(0x14e)][_0x179fa9(0x16a)](_0x3cc870=>_0x2d4d48[_0x179fa9(0x184)][_0x3cc870]):Object['values'](_0x2d4d48[_0x179fa9(0x184)])[_0x179fa9(0x2a1)]((_0x36843e,_0x330166)=>_0x36843e[_0x179fa9(0x165)][_0x179fa9(0x19d)](_0x330166[_0x179fa9(0x165)])))[_0x179fa9(0x1aa)](_0x123585=>_0x123585)['map'](_0x1554a1=>({'recordId':_0x1554a1['id'],'values':_0x1554a1[_0x179fa9(0xff)]})),_0x26bad0=_0x28b9c0[_0x179fa9(0x1ab)]??_0x2d4d48[_0x179fa9(0x12f)][_0x179fa9(0x1aa)](_0x2a41df=>_0x2174d7(_0x2d4d48[_0x179fa9(0x2af)][_0x2a41df]));return(0x0,_0x49735b[_0x179fa9(0x28d)])({..._0x28b9c0,'table':_0x2d4d48,'fieldIds':_0x26bad0,'rows':_0x5e12c5});}[_0x531b89(0x1e1)](){const _0x228e58=_0x531b89;return this[_0x228e58(0x179)]()[_0x228e58(0x153)];}['getFields'](){const _0x4cf2a1=_0x531b89;let _0x13a715=this[_0x4cf2a1(0x179)]();return _0x13a715[_0x4cf2a1(0x12f)][_0x4cf2a1(0x16a)](_0x4efd15=>_0x13a715[_0x4cf2a1(0x2af)][_0x4efd15])[_0x4cf2a1(0x1aa)](_0x2174d7)[_0x4cf2a1(0x16a)](_0x2e79bd=>this[_0x4cf2a1(0x1e0)][_0x4cf2a1(0x29a)](_0x26697c,this['_base'],this,_0x2e79bd['id']));}[_0x531b89(0x17a)](_0x353879){const _0x59be0e=_0x531b89;let _0x48ca37=this[_0x59be0e(0x179)]()[_0x59be0e(0x2af)][_0x353879];return _0x2174d7(_0x48ca37)?this['_injector'][_0x59be0e(0x29a)](_0x26697c,this[_0x59be0e(0x24f)],this,_0x48ca37['id']):null;}['getFieldByName'](_0x484d4a){const _0x3349a6=_0x531b89;let _0x25ea32=this[_0x3349a6(0x179)]()['fields'],_0x51a197=Object[_0x3349a6(0xff)](_0x25ea32)[_0x3349a6(0x156)](_0x123534=>_0x2174d7(_0x123534)&&_0x123534[_0x3349a6(0x1f8)]===_0x484d4a);return _0x51a197?this[_0x3349a6(0x1e0)][_0x3349a6(0x29a)](_0x26697c,this['_base'],this,_0x51a197['id']):null;}['getPrimaryField'](){const _0x269824=_0x531b89;let _0xb2752=this[_0x269824(0x179)]()[_0x269824(0x153)];return this[_0x269824(0x1e0)][_0x269824(0x29a)](_0x26697c,this[_0x269824(0x24f)],this,_0xb2752);}[_0x531b89(0x1dc)](_0x3a36ed,_0x51f29,_0x4e82df){const _0x8789b4=_0x531b89;var _0x5ab34b,_0x31a834;if(!Object[_0x8789b4(0xff)](_0x577e5e[_0x8789b4(0x275)])[_0x8789b4(0x285)](_0x5d920a=>_0x5d920a===_0x51f29))throw Error(_0x8789b4(0x213)+String(_0x51f29)+'\x22.');if(_0x51f29===_0x577e5e[_0x8789b4(0x275)]['Formula']&&this[_0x8789b4(0x16d)](_0x3a36ed,_0x4e82df),_0x51f29===_0x577e5e[_0x8789b4(0x275)]['RecordLink']&&(typeof(_0x4e82df==null||(_0x5ab34b=_0x4e82df[_0x8789b4(0x2bd)])==null||(_0x5ab34b=_0x5ab34b[_0x8789b4(0x1b4)])==null?void 0x0:_0x5ab34b[_0x8789b4(0x1ce)])!=_0x8789b4(0x174)||typeof _0x4e82df[_0x8789b4(0x2bd)][_0x8789b4(0x1b4)][_0x8789b4(0x259)]!=_0x8789b4(0x18f)))throw Error(_0x8789b4(0x20a));let _0x137a21={..._0x4e82df==null?void 0x0:_0x4e82df[_0x8789b4(0x2bd)],'id':(0x0,_0x577e5e[_0x8789b4(0x2c0)])(0x6),'name':_0x3a36ed,'type':_0x51f29,'config':(_0x4e82df==null||(_0x31a834=_0x4e82df[_0x8789b4(0x2bd)])==null?void 0x0:_0x31a834[_0x8789b4(0x1b4)])??{}};if(!this['_commandService'][_0x8789b4(0x181)](_0x49735b[_0x8789b4(0x183)]['id'],{'unitId':this[_0x8789b4(0x24f)][_0x8789b4(0x284)](),'tableId':this[_0x8789b4(0x273)],'field':_0x137a21,'index':_0x4e82df==null?void 0x0:_0x4e82df[_0x8789b4(0x175)]}))throw Error(_0x8789b4(0x1b5)+_0x3a36ed+'\x22');return this[_0x8789b4(0x1e0)][_0x8789b4(0x29a)](_0x26697c,this[_0x8789b4(0x24f)],this,_0x137a21['id']);}[_0x531b89(0x16d)](_0x487967,_0x2b629c){const _0x34d23d=_0x531b89;var _0x414847;if(!_0x2b629c||!('externalReferences'in _0x2b629c)||!Array[_0x34d23d(0x197)](_0x2b629c[_0x34d23d(0x214)]))throw Error(_0x34d23d(0x243));let _0x308d13=this[_0x34d23d(0x1d3)]['syncExecuteCommand'](_0x49735b['ValidateBaseFormulaCommand']['id'],{'unitId':this[_0x34d23d(0x24f)][_0x34d23d(0x284)](),'tableId':this[_0x34d23d(0x273)],'formula':String(((_0x414847=_0x2b629c[_0x34d23d(0x2bd)])==null||(_0x414847=_0x414847[_0x34d23d(0x1b4)])==null?void 0x0:_0x414847['formula'])??'')});if(!_0x308d13[_0x34d23d(0x150)])throw Error(_0x308d13[_0x34d23d(0x118)]??_0x34d23d(0x11b));if(_0x2b629c[_0x34d23d(0x214)][_0x34d23d(0x1c0)]>0x0&&!this['_commandService']['syncExecuteCommand'](_0x2c0653['UpsertHostExternalReferencesCommand']['id'],{'unitId':this[_0x34d23d(0x24f)][_0x34d23d(0x284)](),'references':_0x2b629c[_0x34d23d(0x214)]}))throw Error(_0x34d23d(0x1d8)+_0x487967+'\x22');}['getRecords'](){const _0x173dac=_0x531b89;return this['_resolveRecordIds']()[_0x173dac(0x16a)](_0x255f9b=>this['_injector'][_0x173dac(0x29a)](_0x4f396a,this[_0x173dac(0x24f)],this,_0x255f9b,this['_injector']));}['getRecordById'](_0xee294){const _0x2e86b6=_0x531b89;return this['_getTable']()[_0x2e86b6(0x184)][_0xee294]?this[_0x2e86b6(0x1e0)][_0x2e86b6(0x29a)](_0x4f396a,this[_0x2e86b6(0x24f)],this,_0xee294,this['_injector']):null;}[_0x531b89(0x155)](_0x26166e={}){const _0x4c7330=_0x531b89;let _0x35661a=this[_0x4c7330(0x179)](),_0x23c53e=this['_resolveRecordIds'](_0x26166e),_0x1d83d0=Math['max'](0x0,_0x26166e['offset']??0x0),_0x55c707=_0x26166e[_0x4c7330(0x1f9)]==null?null:Math[_0x4c7330(0x1a9)](0x0,_0x26166e[_0x4c7330(0x1f9)]),_0xccf481=_0x3cc807(_0x23c53e[_0x4c7330(0x16a)](_0x3479ad=>_0x35661a[_0x4c7330(0x184)][_0x3479ad])[_0x4c7330(0x1aa)](_0x79f9ec=>_0x238fba(_0x79f9ec,_0x35661a,_0x26166e[_0x4c7330(0x1aa)])),_0x35661a,_0x26166e[_0x4c7330(0x2a1)]);return{'records':_0x4bb7f4(_0xccf481,_0x26166e)[_0x4c7330(0x16a)](_0x2291f3=>this[_0x4c7330(0x1e0)][_0x4c7330(0x29a)](_0x4f396a,this['_base'],this,_0x2291f3['id'],this[_0x4c7330(0x1e0)])),'total':_0xccf481[_0x4c7330(0x1c0)],'offset':_0x1d83d0,'limit':_0x55c707,'hasMore':_0x55c707!=null&&_0x1d83d0+_0x55c707<_0xccf481[_0x4c7330(0x1c0)]};}[_0x531b89(0x226)](_0x42595e,_0x56af01='id',_0x5c0a8b){const _0x1874a7=_0x531b89;let _0x1c7ad7=this[_0x1874a7(0x179)](),_0x438a76=Date[_0x1874a7(0x2a0)](),_0x4a53a3={..._0x5c0a8b,'id':(0x0,_0x577e5e[_0x1874a7(0x2c0)])(0x6),'values':_0x5a87fb(_0x1c7ad7,_0x42595e,_0x56af01),'orderKey':(_0x5c0a8b==null?void 0x0:_0x5c0a8b[_0x1874a7(0x165)])||''+_0x438a76,'createdAt':(_0x5c0a8b==null?void 0x0:_0x5c0a8b[_0x1874a7(0x2b5)])||_0x438a76,'updatedAt':(_0x5c0a8b==null?void 0x0:_0x5c0a8b[_0x1874a7(0x24b)])||_0x438a76};if(!this[_0x1874a7(0x1d3)][_0x1874a7(0x181)](_0x49735b['CreateBaseRecordCommand']['id'],{'unitId':this[_0x1874a7(0x24f)]['getId'](),'tableId':this[_0x1874a7(0x273)],'record':_0x4a53a3,'source':_0x49735b[_0x1874a7(0x1ff)][_0x1874a7(0x19a)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x4a53a3['id']+'\x22');return this[_0x1874a7(0x1e0)][_0x1874a7(0x29a)](_0x4f396a,this[_0x1874a7(0x24f)],this,_0x4a53a3['id'],this[_0x1874a7(0x1e0)]);}[_0x531b89(0x185)](_0x4984b8){const _0x27e03a=_0x531b89;if(!_0x4984b8[_0x27e03a(0x1c0)])return[];let _0x5618af=this['_getTable'](),_0x1dd584=Date[_0x27e03a(0x2a0)](),_0x49ad42=_0x4984b8['map']((_0x240ae0,_0x226c4c)=>{const _0x1e6981=_0x27e03a;var _0x37d04c,_0x1e4ccd,_0x2ac9eb;return{..._0x240ae0[_0x1e6981(0x22e)],'id':(0x0,_0x577e5e[_0x1e6981(0x2c0)])(0x6),'values':_0x5a87fb(_0x5618af,_0x240ae0[_0x1e6981(0xff)],_0x240ae0[_0x1e6981(0x20b)]??'id'),'orderKey':((_0x37d04c=_0x240ae0[_0x1e6981(0x22e)])==null?void 0x0:_0x37d04c[_0x1e6981(0x165)])||''+(_0x1dd584+_0x226c4c),'createdAt':((_0x1e4ccd=_0x240ae0[_0x1e6981(0x22e)])==null?void 0x0:_0x1e4ccd[_0x1e6981(0x2b5)])||_0x1dd584,'updatedAt':((_0x2ac9eb=_0x240ae0[_0x1e6981(0x22e)])==null?void 0x0:_0x2ac9eb[_0x1e6981(0x24b)])||_0x1dd584};});if(!this[_0x27e03a(0x1d3)][_0x27e03a(0x181)](_0x49735b[_0x27e03a(0x2c3)]['id'],{'unitId':this[_0x27e03a(0x24f)][_0x27e03a(0x284)](),'tableId':this[_0x27e03a(0x273)],'records':_0x49ad42,'source':_0x49735b[_0x27e03a(0x1ff)][_0x27e03a(0x19a)]}))throw Error(_0x27e03a(0x2b4));return _0x49ad42[_0x27e03a(0x16a)](_0x370584=>this[_0x27e03a(0x1e0)][_0x27e03a(0x29a)](_0x4f396a,this[_0x27e03a(0x24f)],this,_0x370584['id'],this[_0x27e03a(0x1e0)]));}['deleteRecords'](_0xba31f2){const _0x56ed78=_0x531b89;return!_0xba31f2[_0x56ed78(0x1c0)]||this[_0x56ed78(0x1d3)][_0x56ed78(0x181)](_0x49735b[_0x56ed78(0x1b1)]['id'],{'unitId':this[_0x56ed78(0x24f)][_0x56ed78(0x284)](),'tableId':this[_0x56ed78(0x273)],'recordIds':_0xba31f2,'source':_0x49735b['BaseEventSource']['Facade']});}[_0x531b89(0x28a)](_0x233a1a,_0x1debc8,_0x31a52e=0x1,_0x3e2d3f=0x1){const _0x40d854=_0x531b89;return this[_0x40d854(0x1e0)]['createInstance'](_0x5a3404,this[_0x40d854(0x24f)],this,{'startRow':_0x233a1a,'endRow':_0x233a1a+_0x31a52e-0x1,'startColumn':_0x1debc8,'endColumn':_0x1debc8+_0x3e2d3f-0x1},this[_0x40d854(0x1e0)]);}[_0x531b89(0x26f)](){const _0x507075=_0x531b89;var _0x6d816;let _0x5aee9e=(0x0,_0x49735b[_0x507075(0x152)])(this[_0x507075(0x179)]()),_0x18339b=((_0x6d816=_0x5aee9e['recordOrder'])==null?void 0x0:_0x6d816[_0x507075(0x1c0)])??0x0,_0x3660f8=_0x5aee9e[_0x507075(0x12f)][_0x507075(0x1aa)](_0x698456=>_0x2174d7(_0x5aee9e[_0x507075(0x2af)][_0x698456]))[_0x507075(0x1c0)];return this['getRange'](0x0,0x0,Math[_0x507075(0x1a9)](_0x18339b,0x1),Math[_0x507075(0x1a9)](_0x3660f8,0x1));}[_0x531b89(0x140)](){const _0x5040a8=_0x531b89;let _0x5a3af7=this['_getTable']();return _0x5a3af7[_0x5040a8(0x23d)][_0x5040a8(0x1aa)](_0x18b728=>_0x5a3af7[_0x5040a8(0x210)][_0x18b728])[_0x5040a8(0x16a)](_0x257be2=>this[_0x5040a8(0x1e0)][_0x5040a8(0x29a)](_0x2a4a93,this[_0x5040a8(0x24f)],this,_0x257be2,this['_injector']));}[_0x531b89(0x25b)](_0x2ee3b9){const _0x469b03=_0x531b89;return this['_getTable']()[_0x469b03(0x210)][_0x2ee3b9]?this[_0x469b03(0x1e0)][_0x469b03(0x29a)](_0x2a4a93,this[_0x469b03(0x24f)],this,_0x2ee3b9,this[_0x469b03(0x1e0)]):null;}['getViewByName'](_0x1ee825){const _0x3931f9=_0x531b89;let _0x28e550=this[_0x3931f9(0x179)](),_0x3d1c29=Object[_0x3931f9(0xff)](_0x28e550[_0x3931f9(0x210)])[_0x3931f9(0x156)](_0x6d8aae=>_0x6d8aae['name']===_0x1ee825);return _0x3d1c29?this['_injector'][_0x3931f9(0x29a)](_0x2a4a93,this[_0x3931f9(0x24f)],this,_0x3d1c29['id'],this[_0x3931f9(0x1e0)]):null;}['createView'](_0x319f9c,_0x5b001f,_0x1a997a){const _0x90438b=_0x531b89;var _0x492205,_0x4e9e7d,_0x4ec1a8,_0x448cb7;let _0x32b9f5=this[_0x90438b(0x179)](),_0x438a38=(_0x1a997a==null||(_0x492205=_0x1a997a[_0x90438b(0x142)])==null?void 0x0:_0x492205[_0x90438b(0x12f)])??_0x32b9f5['fieldOrder'],_0x34885e=[_0x577e5e[_0x90438b(0x112)],..._0x438a38[_0x90438b(0x1aa)](_0x331e4a=>_0x2174d7(_0x32b9f5[_0x90438b(0x2af)][_0x331e4a]))],_0x2b94e2={..._0x1a997a==null?void 0x0:_0x1a997a[_0x90438b(0x142)],'id':(0x0,_0x577e5e[_0x90438b(0x2c0)])(0x6),'name':_0x319f9c,'type':_0x5b001f,'tableId':this['_tableId'],'config':(_0x1a997a==null||(_0x4e9e7d=_0x1a997a[_0x90438b(0x142)])==null?void 0x0:_0x4e9e7d[_0x90438b(0x1b4)])??{},'fieldOrder':_0x34885e,'fieldSettings':{..._0x1a997a==null||(_0x4ec1a8=_0x1a997a['view'])==null?void 0x0:_0x4ec1a8[_0x90438b(0x250)],[_0x577e5e[_0x90438b(0x112)]]:{..._0x1a997a==null||(_0x448cb7=_0x1a997a[_0x90438b(0x142)])==null||(_0x448cb7=_0x448cb7[_0x90438b(0x250)])==null?void 0x0:_0x448cb7[_0x577e5e[_0x90438b(0x112)]],'hidden':!0x0}}};if(!this[_0x90438b(0x1d3)][_0x90438b(0x181)](_0x49735b[_0x90438b(0x1d0)]['id'],{'unitId':this[_0x90438b(0x24f)][_0x90438b(0x284)](),'tableId':this[_0x90438b(0x273)],'view':_0x2b94e2,'index':_0x1a997a==null?void 0x0:_0x1a997a[_0x90438b(0x175)]}))throw Error(_0x90438b(0x134)+_0x319f9c+'\x22');return this['_injector']['createInstance'](_0x2a4a93,this['_base'],this,_0x2b94e2['id'],this[_0x90438b(0x1e0)]);}[_0x531b89(0x25e)](){const _0x3810fa=_0x531b89;let _0x2cc8a5=this[_0x3810fa(0x179)](),_0x5e0cba=_0x2cc8a5[_0x3810fa(0x12f)][_0x3810fa(0x1aa)](_0x1329e6=>_0x2174d7(_0x2cc8a5[_0x3810fa(0x2af)][_0x1329e6])),_0x4cbe58=_0x2cc8a5[_0x3810fa(0x23d)][_0x3810fa(0x1aa)](_0x3e56ee=>_0x2cc8a5['views'][_0x3e56ee]);return{'id':_0x2cc8a5['id'],'name':_0x2cc8a5[_0x3810fa(0x1f8)],'formulaName':this[_0x3810fa(0x13b)](),'primaryFieldId':_0x2cc8a5[_0x3810fa(0x153)],'fieldIds':_0x5e0cba,'viewIds':_0x4cbe58,'recordCount':this['_resolveRecordIds']()['length'],'fields':_0x5e0cba['map'](_0x86f48=>{const _0x370efd=_0x3810fa;let _0x46ccaf=_0x2cc8a5[_0x370efd(0x2af)][_0x86f48];return{'id':_0x46ccaf['id'],'name':_0x46ccaf[_0x370efd(0x1f8)],'type':_0x46ccaf['type'],'config':_0x46ccaf['config'],'readonly':_0x46ccaf['readonly'],'description':_0x46ccaf[_0x370efd(0x1c4)]};}),'views':_0x4cbe58[_0x3810fa(0x16a)](_0x42771e=>{const _0xd71fe5=_0x3810fa;let _0x4db829=_0x2cc8a5[_0xd71fe5(0x210)][_0x42771e];return{'id':_0x4db829['id'],'name':_0x4db829['name'],'type':_0x4db829['type']};})};}[_0x531b89(0x179)](){const _0x41b088=_0x531b89;let _0x1f80bf=this[_0x41b088(0x24f)][_0x41b088(0x170)]()['getSnapshot']()[_0x41b088(0x270)][this['_tableId']];if(!_0x1f80bf)throw Error('[FTable]:\x20table\x20\x22'+this[_0x41b088(0x273)]+'\x22\x20does\x20not\x20exist.');return _0x1f80bf;}[_0x531b89(0x1cb)](_0x249607={}){const _0x17727d=_0x531b89;let _0x4b7777=this[_0x17727d(0x24f)]['getBase']()[_0x17727d(0x1a5)](),_0xbf67a1=this[_0x17727d(0x179)]();if(_0x249607['viewId']){let _0x4e9ac5=this['_projectionService'][_0x17727d(0x260)](_0x4b7777,this['_tableId'],_0x249607[_0x17727d(0x262)]);if('rows'in _0x4e9ac5&&Array[_0x17727d(0x197)](_0x4e9ac5[_0x17727d(0x255)]))return _0x4e9ac5['rows'][_0x17727d(0x16a)](_0x4db81f=>_0x4db81f['recordId']);}return(_0xbf67a1[_0x17727d(0x14e)]?_0xbf67a1[_0x17727d(0x14e)][_0x17727d(0x16a)](_0x60cbd5=>_0xbf67a1['records'][_0x60cbd5]):Object[_0x17727d(0xff)](_0xbf67a1[_0x17727d(0x184)])[_0x17727d(0x2a1)]((_0x155e64,_0x4074da)=>_0x155e64[_0x17727d(0x165)][_0x17727d(0x19d)](_0x4074da['orderKey'])))[_0x17727d(0x1aa)](_0x17084c=>_0x17084c)['map'](_0x495045=>_0x495045['id']);}};_0x81d250=_0x3468bf([_0xcf9898(0x3,_0x577e5e[_0x531b89(0x2a8)]),_0xcf9898(0x4,_0x577e5e[_0x531b89(0x2b9)]),_0xcf9898(0x5,_0x49735b[_0x531b89(0x1a1)])],_0x81d250);function _0x4bb7f4(_0x37ddff,_0xbed02d){const _0x52bdc2=_0x531b89;let _0x5d0da0=Math[_0x52bdc2(0x1a9)](0x0,_0xbed02d[_0x52bdc2(0x1fb)]??0x0);return _0xbed02d['limit']==null?_0x37ddff[_0x52bdc2(0x1b8)](_0x5d0da0):_0x37ddff[_0x52bdc2(0x1b8)](_0x5d0da0,_0x5d0da0+Math[_0x52bdc2(0x1a9)](0x0,_0xbed02d['limit']));}function _0x3cc807(_0x393628,_0x57347e,_0x194c0f=[]){const _0x4ed046=_0x531b89;return _0x194c0f[_0x4ed046(0x1c0)]?[..._0x393628]['sort']((_0x43f496,_0xd214f7)=>{const _0x1e9262=_0x4ed046;for(let _0x4449c1 of _0x194c0f){var _0x38fd21;let _0x56e281=_0x4449c1[_0x1e9262(0x172)]===_0x577e5e[_0x1e9262(0x268)][_0x1e9262(0x27b)]?-0x1:0x1,_0x1e28b2=_0x2081f7(_0x43f496['values'][_0x4449c1[_0x1e9262(0x1c6)]],_0xd214f7[_0x1e9262(0xff)][_0x4449c1[_0x1e9262(0x1c6)]],(_0x38fd21=_0x57347e[_0x1e9262(0x2af)][_0x4449c1['fieldId']])==null?void 0x0:_0x38fd21[_0x1e9262(0x1ba)]);if(_0x1e28b2!==0x0)return _0x1e28b2*_0x56e281;}return String(_0x43f496['orderKey']??_0x43f496['id'])[_0x1e9262(0x19d)](String(_0xd214f7[_0x1e9262(0x165)]??_0xd214f7['id']));}):_0x393628;}function _0x2081f7(_0x484d9c,_0x3d0140,_0xa17782){const _0x1af2b5=_0x531b89;return _0x484d9c==null&&_0x3d0140==null?0x0:_0x484d9c==null?-0x1:_0x3d0140==null?0x1:typeof _0x484d9c=='number'&&typeof _0x3d0140=='number'?_0x484d9c-_0x3d0140:_0xa17782===_0x577e5e[_0x1af2b5(0x275)]['Date']?Number(_0x484d9c)-Number(_0x3d0140):String(_0x484d9c)['localeCompare'](String(_0x3d0140));}function _0x238fba(_0x4beff2,_0x37ca16,_0x46c734){const _0x46329e=_0x531b89;var _0x4cfc1a;if(!_0x46c734||!((_0x4cfc1a=_0x46c734[_0x46329e(0x252)])!=null&&_0x4cfc1a[_0x46329e(0x1c0)]))return!0x0;let {conjunction:_0x346f28=_0x577e5e[_0x46329e(0x10e)]['OR'],conditions:_0x4818d2}=_0x46c734;return _0x346f28===_0x577e5e['BaseFilterConjunction'][_0x46329e(0x238)]&&_0x4818d2[_0x46329e(0x1c0)]>0x1?_0x4818d2[_0x46329e(0x10a)](_0xa96647=>_0x3e002b(_0x4beff2,_0x37ca16,_0xa96647)):_0x4818d2[_0x46329e(0x285)](_0x5a9a4f=>_0x3e002b(_0x4beff2,_0x37ca16,_0x5a9a4f));}function _0x3e002b(_0x32e1f4,_0x5d8726,_0x4be52b){const _0x531931=_0x531b89;let _0x4a1421=_0x32e1f4[_0x531931(0xff)][_0x4be52b[_0x531931(0x1c6)]],_0x557e7b=_0x5d8726[_0x531931(0x2af)][_0x4be52b[_0x531931(0x1c6)]];if(_0x5bb8a2(_0x4be52b)){let _0xfd89e4=_0x2f97cf(_0x4be52b)[_0x531931(0x130)](String(_0x4a1421??''));return _0x4be52b['operator']===_0x531931(0x21a)?_0xfd89e4:!_0xfd89e4;}return!_0x557e7b||(0x0,_0x49735b[_0x531931(0x180)])(_0x4a1421,_0x4be52b[_0x531931(0x146)],_0x4be52b['value'],_0x557e7b);}function _0x5bb8a2(_0x2c88c4){const _0x5ad6c6=_0x531b89;return _0x2c88c4[_0x5ad6c6(0x146)]===_0x5ad6c6(0x21a)||_0x2c88c4[_0x5ad6c6(0x146)]==='notMatches';}function _0x2f97cf(_0x139da9){const _0x291ec9=_0x531b89;let _0x3be6fd=String(_0x139da9[_0x291ec9(0x188)]??'');if(_0x3be6fd[_0x291ec9(0x1c0)]>0x200)throw Error(_0x291ec9(0x24e));try{return new RegExp(_0x3be6fd,_0x139da9[_0x291ec9(0x22c)]?void 0x0:'i');}catch(_0x311162){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x3be6fd+'.\x20'+(_0x311162 instanceof Error?_0x311162[_0x291ec9(0x228)]:String(_0x311162)));}}function _0x432e1a(_0x2a3b38,_0x51bfd3,_0x5e04f6){const _0xcf3dca=_0x531b89;if(_0x5e04f6['type']!==_0xcf3dca(0x21d)&&_0x5e04f6[_0xcf3dca(0x1ba)]!=='custom'){var _0x5dcb23;if(_0x5e04f6[_0xcf3dca(0x1ba)]===_0x577e5e[_0xcf3dca(0x2c4)][_0xcf3dca(0x162)]){var _0x2d203d;let _0x293b89=[((_0x2d203d=_0x5e04f6[_0xcf3dca(0x2af)])==null||(_0x2d203d=_0x2d203d[0x0])==null?void 0x0:_0x2d203d['id'])??_0x2a3b38['primaryFieldId'],..._0x5e04f6[_0xcf3dca(0x13f)]??[]];return Array['from'](new Set(_0x293b89[_0xcf3dca(0x1aa)](_0x147bf3=>!!_0x2a3b38[_0xcf3dca(0x2af)][_0x147bf3])));}if((_0x5dcb23=_0x5e04f6[_0xcf3dca(0x2af)])!=null&&_0x5dcb23[_0xcf3dca(0x1c0)])return _0x5e04f6[_0xcf3dca(0x2af)][_0xcf3dca(0x16a)](_0x379262=>_0x379262['id'])[_0xcf3dca(0x1aa)](_0x40189d=>{const _0xa281d2=_0xcf3dca;var _0x2ec067;return!(!_0x2a3b38['fields'][_0x40189d]||_0x51bfd3!=null&&(_0x2ec067=_0x51bfd3[_0xa281d2(0x250)])!=null&&(_0x2ec067=_0x2ec067[_0x40189d])!=null&&_0x2ec067['hidden']);});}return _0x2a3b38[_0xcf3dca(0x12f)][_0xcf3dca(0x1aa)](_0xe3197c=>{const _0xebb6e0=_0xcf3dca;var _0x1c4359;return!(!_0x2a3b38[_0xebb6e0(0x2af)][_0xe3197c]||_0x51bfd3!=null&&(_0x1c4359=_0x51bfd3['fieldSettings'])!=null&&(_0x1c4359=_0x1c4359[_0xe3197c])!=null&&_0x1c4359[_0xebb6e0(0x27a)]);});}let _0x5763c4=class extends _0x319556[_0x531b89(0x1f7)]{constructor(_0x22d534,_0x33726e,_0xe53085,_0x3927b8,_0x2ea7ec){const _0x49360a=_0x531b89;super(),this['_base']=_0x22d534,this[_0x49360a(0x1e0)]=_0x33726e,this[_0x49360a(0x12d)]=_0xe53085,this[_0x49360a(0x1d3)]=_0x3927b8,this[_0x49360a(0x2a9)]=_0x2ea7ec;}[_0x531b89(0x170)](){const _0x4bdf5f=_0x531b89;return this[_0x4bdf5f(0x24f)];}['getId'](){const _0x296cab=_0x531b89;return this[_0x296cab(0x24f)][_0x296cab(0x217)]();}[_0x531b89(0x186)](){const _0x3f8c30=_0x531b89;return new _0x41d5c4(this['getId'](),this[_0x3f8c30(0x1d3)],this[_0x3f8c30(0x2a9)]);}[_0x531b89(0x16e)](){const _0x30618c=_0x531b89;return this[_0x30618c(0x12d)][_0x30618c(0x12a)](this[_0x30618c(0x284)]())??_0x577e5e['Tools'][_0x30618c(0x1cd)](this[_0x30618c(0x24f)][_0x30618c(0x1a5)]());}['getName'](){const _0x6da9bf=_0x531b89;return this[_0x6da9bf(0x24f)]['getSnapshot']()[_0x6da9bf(0x1f8)];}[_0x531b89(0x231)](_0xc6511e){const _0x1db6a9=_0x531b89;this[_0x1db6a9(0x1d3)][_0x1db6a9(0x181)](_0x49735b['SetBaseNameCommand']['id'],{'unitId':this[_0x1db6a9(0x284)](),'name':_0xc6511e});}[_0x531b89(0x1f5)](){const _0x445213=_0x531b89;let _0x2fd2db=this[_0x445213(0x24f)][_0x445213(0x1a5)]();return _0x2fd2db['tableOrder'][_0x445213(0x16a)](_0x4112bb=>_0x2fd2db['tables'][_0x4112bb])['filter'](_0x1d622c=>_0x1d622c)[_0x445213(0x16a)](_0x2e8538=>this[_0x445213(0x1e0)][_0x445213(0x29a)](_0x81d250,this,_0x2e8538['id'],this['_injector']));}['getTableById'](_0x247f70){const _0x4f6d83=_0x531b89;let _0x44bc9e=this[_0x4f6d83(0x24f)][_0x4f6d83(0x1a5)]()[_0x4f6d83(0x270)][_0x247f70];return _0x44bc9e?this[_0x4f6d83(0x1e0)][_0x4f6d83(0x29a)](_0x81d250,this,_0x44bc9e['id'],this[_0x4f6d83(0x1e0)]):null;}[_0x531b89(0x23e)](_0x196b0e){const _0x426968=_0x531b89;let _0x134050=this[_0x426968(0x24f)][_0x426968(0x1a5)](),_0x53456f=Object[_0x426968(0xff)](_0x134050['tables'])[_0x426968(0x156)](_0x147127=>_0x147127[_0x426968(0x1f8)]===_0x196b0e);return _0x53456f?this[_0x426968(0x1e0)][_0x426968(0x29a)](_0x81d250,this,_0x53456f['id'],this[_0x426968(0x1e0)]):null;}['insertTable'](_0x518c6b,_0x481747){const _0x323dfc=_0x531b89;let _0x323dcf=(0x0,_0x577e5e[_0x323dfc(0x195)])({'id':(0x0,_0x577e5e[_0x323dfc(0x2c0)])(),'name':_0x518c6b,..._0x481747==null?void 0x0:_0x481747[_0x323dfc(0x2b1)],'primaryFieldName':_0x481747==null?void 0x0:_0x481747[_0x323dfc(0x26d)]}),_0x3f09d0=_0x577e5e[_0x323dfc(0x102)][_0x323dfc(0x218)](_0x323dcf,(_0x481747==null?void 0x0:_0x481747['table'])??{}),_0x493f3f=(0x0,_0x49735b[_0x323dfc(0x1f3)])(this[_0x323dfc(0x24f)][_0x323dfc(0x1a5)](),_0x3f09d0['name']);if(!_0x493f3f[_0x323dfc(0x150)])throw Error(_0x323dfc(0x26a)+_0x3f09d0[_0x323dfc(0x1f8)]+'\x22.\x20'+_0x49735b[_0x323dfc(0x22a)]+'\x20'+_0x493f3f[_0x323dfc(0x118)]);if(!this[_0x323dfc(0x1d3)][_0x323dfc(0x181)](_0x49735b['CreateBaseTableCommand']['id'],{'unitId':this[_0x323dfc(0x24f)][_0x323dfc(0x217)](),'table':_0x3f09d0,'index':_0x481747==null?void 0x0:_0x481747[_0x323dfc(0x175)]}))throw Error(_0x323dfc(0x201)+_0x518c6b+'\x22.');return this[_0x323dfc(0x1e0)][_0x323dfc(0x29a)](_0x81d250,this,_0x3f09d0['id'],this[_0x323dfc(0x1e0)]);}[_0x531b89(0x272)](_0x53ce7a){const _0x570154=_0x531b89;let _0xcdb097=typeof _0x53ce7a=='string'?_0x53ce7a:_0x53ce7a[_0x570154(0x284)]();if(!this[_0x570154(0x1d3)]['syncExecuteCommand'](_0x49735b[_0x570154(0x100)]['id'],{'unitId':this[_0x570154(0x24f)][_0x570154(0x217)](),'tableId':_0xcdb097}))throw Error(_0x570154(0x229)+_0xcdb097+'\x22.');return!0x0;}[_0x531b89(0x13d)](_0x3735e2,_0x3b96ae){const _0x35cb7a=_0x531b89;let _0xd992b8=this[_0x35cb7a(0x24f)][_0x35cb7a(0x1a5)](),_0x5079ab=typeof _0x3735e2==_0x35cb7a(0x174)?_0x3735e2:_0x3735e2['getId'](),_0x2da560=_0xd992b8[_0x35cb7a(0x270)][_0x5079ab];if(!_0x2da560)throw Error(_0x35cb7a(0x17d)+_0x5079ab+_0x35cb7a(0x2b6));let _0x4d55b7=_0xd992b8[_0x35cb7a(0x12b)][_0x35cb7a(0x11a)](_0x5079ab)+0x1,_0xcbf412=(0x0,_0x577e5e[_0x35cb7a(0x2c0)])(),_0x2cb97c=(0x0,_0x49735b[_0x35cb7a(0x2a3)])(_0x2da560,{'id':_0xcbf412,'name':(0x0,_0x49735b[_0x35cb7a(0x21c)])(_0xd992b8,_0x2da560[_0x35cb7a(0x1f8)]+'\x20Copy'),'includeRecords':(_0x3b96ae==null?void 0x0:_0x3b96ae['includeRecords'])??!0x1,'regenerateViewIds':(_0x3b96ae==null?void 0x0:_0x3b96ae[_0x35cb7a(0x1f1)])??!0x1});if(!this[_0x35cb7a(0x1d3)]['syncExecuteCommand'](_0x49735b[_0x35cb7a(0x143)]['id'],{'unitId':this['_base'][_0x35cb7a(0x217)](),'table':_0x2cb97c,'index':_0x4d55b7}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x5079ab+'\x22.');return this[_0x35cb7a(0x1e0)][_0x35cb7a(0x29a)](_0x81d250,this,_0x2cb97c['id'],this['_injector']);}['getSchema'](){const _0x48ca9b=_0x531b89;let _0x365e6d=this[_0x48ca9b(0x24f)][_0x48ca9b(0x1a5)]();return{'id':_0x365e6d['id'],'name':_0x365e6d[_0x48ca9b(0x1f8)],'tables':this['getTables']()['map'](_0x4f8a46=>_0x4f8a46[_0x48ca9b(0x25e)]())};}};_0x5763c4=_0x3468bf([_0xcf9898(0x1,(0x0,_0x577e5e[_0x531b89(0x1a8)])(_0x577e5e[_0x531b89(0x123)])),_0xcf9898(0x2,_0x577e5e[_0x531b89(0x236)]),_0xcf9898(0x3,_0x577e5e[_0x531b89(0x2a8)]),_0xcf9898(0x4,_0x577e5e[_0x531b89(0x2b9)])],_0x5763c4);var _0x392feb=class extends _0x319556[_0x531b89(0x266)]{[_0x531b89(0x18c)](){const _0x11be75=_0x531b89;this[_0x11be75(0x199)](),this[_0x11be75(0x248)]();}['createBase'](_0x583433={},_0x4727bb){const _0x78a6de=_0x531b89;let _0x111ac9=this[_0x78a6de(0x111)][_0x78a6de(0x177)](_0x577e5e[_0x78a6de(0x166)]['UNIVER_BASE'],_0x583433,_0x4727bb);return this['_injector'][_0x78a6de(0x29a)](_0x5763c4,_0x111ac9);}[_0x531b89(0x206)](){const _0x359cff=_0x531b89;let _0xb556c4=this['_univerInstanceService'][_0x359cff(0x269)](_0x577e5e['UniverInstanceType'][_0x359cff(0x279)]);return _0xb556c4?this[_0x359cff(0x1e0)][_0x359cff(0x29a)](_0x5763c4,_0xb556c4):null;}['getBase'](_0x372ae5){const _0x476847=_0x531b89;let _0xf94790=this['_univerInstanceService']['getUnit'](_0x372ae5,_0x577e5e[_0x476847(0x166)][_0x476847(0x279)]);return _0xf94790?this[_0x476847(0x1e0)]['createInstance'](_0x5763c4,_0xf94790):null;}[_0x531b89(0x1e9)](){const _0x58e978=_0x531b89;return this['_univerInstanceService'][_0x58e978(0x244)](_0x577e5e[_0x58e978(0x166)][_0x58e978(0x279)])[_0x58e978(0x16a)](_0xaf6705=>this[_0x58e978(0x1e0)]['createInstance'](_0x5763c4,_0xaf6705));}[_0x531b89(0x248)](){const _0x184f58=_0x531b89;this[_0x184f58(0x18d)](this[_0x184f58(0x16c)](this[_0x184f58(0x159)]['BaseHierarchyChanged'],()=>this['_commandService'][_0x184f58(0x18e)]((_0x2771f6,_0xf6edc9)=>{const _0x468c45=_0x184f58;var _0x3d2222;if(!_0x1cde30(_0x2771f6,_0x49735b['ApplyBaseJson1Mutation']))return;let _0x3fd199=_0x2771f6[_0x468c45(0x108)];if(!((_0x3d2222=_0x3fd199['hierarchyChanges'])!=null&&_0x3d2222[_0x468c45(0x1c0)]))return;let _0x5db47a=this[_0x468c45(0x170)](_0x3fd199[_0x468c45(0x264)]),_0x42f8bc=_0x5db47a==null?void 0x0:_0x5db47a[_0x468c45(0x14b)](_0x3fd199[_0x468c45(0x10d)][0x0]['tableId']);if(!_0x5db47a||!_0x42f8bc)return;let _0x229ab6={'base':_0x5db47a,'table':_0x42f8bc,'changes':_0x3fd199['hierarchyChanges'],'source':_0xf6edc9!=null&&_0xf6edc9[_0x468c45(0x24c)]?_0x49735b[_0x468c45(0x1ff)]['Remote']:_0x3fd199[_0x468c45(0x207)]??_0x49735b[_0x468c45(0x1ff)]['UI']};this[_0x468c45(0x18a)](this[_0x468c45(0x159)][_0x468c45(0x25c)],_0x229ab6);}))),this[_0x184f58(0x18d)](this[_0x184f58(0x16c)](this['Event'][_0x184f58(0x1ef)],()=>this[_0x184f58(0x1d3)][_0x184f58(0x18e)](_0x439c86=>{const _0x25a021=_0x184f58;if(_0x439c86['id']!==_0x49735b['CreateBaseTableCommand']['id'])return;let {unitId:_0x7f82dd,table:_0xea63ad,index:_0x3deb28}=_0x439c86[_0x25a021(0x108)],_0x3a9a80=this['getBase'](_0x7f82dd);if(!_0x3a9a80)return;let _0x43e4c0={'base':_0x3a9a80,'table':_0xea63ad,'index':_0x3deb28};this[_0x25a021(0x18a)](this[_0x25a021(0x159)]['BaseTableCreated'],_0x43e4c0);}))),this[_0x184f58(0x18d)](this[_0x184f58(0x16c)](this['Event'][_0x184f58(0x277)],()=>this[_0x184f58(0x1d3)][_0x184f58(0x18e)](_0x5e3c13=>{const _0x251537=_0x184f58;if(_0x5e3c13['id']!==_0x49735b[_0x251537(0x183)]['id'])return;let {unitId:_0x333e33,tableId:_0x264141,field:_0x354210,index:_0x2e8be1,viewIndexes:_0x137e25}=_0x5e3c13[_0x251537(0x108)],_0x5dd11e=this[_0x251537(0x170)](_0x333e33);if(!_0x5dd11e)return;let _0x544dc5=_0x5dd11e[_0x251537(0x14b)](_0x264141);if(!_0x544dc5)return;let _0x321552={'base':_0x5dd11e,'table':_0x544dc5,'field':_0x354210,'index':_0x2e8be1,'viewIndexes':_0x137e25};this[_0x251537(0x18a)](this['Event'][_0x251537(0x277)],_0x321552);}))),this[_0x184f58(0x18d)](this[_0x184f58(0x16c)](this[_0x184f58(0x159)]['BaseTableRecordCreated'],()=>this['_commandService'][_0x184f58(0x18e)](_0x1528de=>{const _0x25f6da=_0x184f58;if(_0x1528de['id']!==_0x49735b['CreateBaseRecordCommand']['id']&&_0x1528de['id']!==_0x49735b[_0x25f6da(0x2c3)]['id'])return;let _0x5c5890=_0x1528de[_0x25f6da(0x108)],{unitId:_0x134a0a,tableId:_0xe04514}=_0x5c5890,_0x2ac65d=_0x5c5890[_0x25f6da(0x184)]??[_0x5c5890[_0x25f6da(0x22e)]],_0x41ffa2=this[_0x25f6da(0x170)](_0x134a0a);if(!_0x41ffa2)return;let _0x1c66d4=_0x41ffa2[_0x25f6da(0x14b)](_0xe04514);if(!_0x1c66d4)return;let _0x1da3bd={'base':_0x41ffa2,'table':_0x1c66d4,'records':_0x2ac65d};this[_0x25f6da(0x18a)](this[_0x25f6da(0x159)]['BaseTableRecordCreated'],_0x1da3bd);}))),this['disposeWithMe'](this[_0x184f58(0x16c)](this[_0x184f58(0x159)][_0x184f58(0x1c7)],()=>this[_0x184f58(0x1d3)]['onCommandExecuted'](_0x54e71e=>{const _0x4d472c=_0x184f58;if(_0x54e71e['id']!==_0x49735b[_0x4d472c(0x1d0)]['id'])return;let {unitId:_0x34e23b,tableId:_0x579523,view:_0x24a0ba,index:_0x2bfc7a}=_0x54e71e[_0x4d472c(0x108)],_0x3d05cd=this[_0x4d472c(0x170)](_0x34e23b);if(!_0x3d05cd)return;let _0x160aab=_0x3d05cd[_0x4d472c(0x14b)](_0x579523);if(!_0x160aab)return;let _0x1f60fe={'base':_0x3d05cd,'table':_0x160aab,'view':_0x24a0ba,'index':_0x2bfc7a};this[_0x4d472c(0x18a)](this['Event']['BaseTableViewCreated'],_0x1f60fe);}))),this['disposeWithMe'](this[_0x184f58(0x16c)](this[_0x184f58(0x159)][_0x184f58(0x286)],()=>this[_0x184f58(0x1d3)][_0x184f58(0x18e)](_0x99e017=>{const _0x512f95=_0x184f58;if(_0x99e017['id']!==_0x49735b[_0x512f95(0x107)]['id'])return;let {unitId:_0x266b41,tableId:_0xe23bac,recordId:_0x95f59f,fieldId:_0x4b6c84,value:_0x521e85}=_0x99e017['params'],_0x24ef8c=this[_0x512f95(0x170)](_0x266b41);if(!_0x24ef8c)return;let _0x512697=_0x24ef8c['getTableById'](_0xe23bac);if(!_0x512697)return;let _0x545be4=_0x512697[_0x512f95(0x17a)](_0x4b6c84);if(!_0x545be4)return;let _0x361ce5=_0x512697['getRecordById'](_0x95f59f);if(!_0x361ce5)return;let _0x301d6f={'base':_0x24ef8c,'table':_0x512697,'field':_0x545be4,'record':_0x361ce5,'value':_0x521e85};this['fireEvent'](this['Event'][_0x512f95(0x286)],_0x301d6f);})));}['_initBaseBeforeEvents'](){const _0x33572c=_0x531b89;this[_0x33572c(0x18d)](this[_0x33572c(0x16c)](this['Event'][_0x33572c(0x22f)],()=>this[_0x33572c(0x1d3)][_0x33572c(0x1fd)](_0x15edea=>{const _0x496e25=_0x33572c;if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x15c)])){let {unitId:_0x54b794,tableId:_0x3e5fe6,patches:_0x9437a5,source:_0x460035=_0x49735b[_0x496e25(0x1ff)]['UI']}=_0x15edea[_0x496e25(0x108)],_0x489273=this[_0x496e25(0x160)](_0x54b794,_0x3e5fe6);if(!_0x489273)return;this['_fireBeforeHierarchyChange'](_0x489273[_0x496e25(0x258)],_0x489273[_0x496e25(0x2b1)],(0x0,_0x49735b[_0x496e25(0x26c)])(_0x489273['table'][_0x496e25(0x14d)](),_0x9437a5),_0x460035);return;}if(_0x1cde30(_0x15edea,_0x49735b['SetBaseRangeValuesCommand'])){let {unitId:_0x4d2456,tableId:_0xafb503,patches:_0x1bffa6,source:_0x245c94=_0x49735b[_0x496e25(0x1ff)]['UI']}=_0x15edea[_0x496e25(0x108)],_0x117861=this[_0x496e25(0x160)](_0x4d2456,_0xafb503);if(!_0x117861)return;let _0x3e525d=_0x117861[_0x496e25(0x2b1)]['getTable']();this[_0x496e25(0x154)](_0x117861[_0x496e25(0x258)],_0x117861[_0x496e25(0x2b1)],(0x0,_0x49735b[_0x496e25(0x26c)])(_0x3e525d,(0x0,_0x49735b[_0x496e25(0x1cf)])(_0x3e525d,_0x1bffa6)),_0x245c94);return;}if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x24d)])){let _0xacf70e=_0x15edea[_0x496e25(0x108)],_0x160d4d=this['_getHierarchyEventContext'](_0xacf70e['unitId'],_0xacf70e[_0x496e25(0x1ca)]);if(!_0x160d4d)return;this['_fireBeforeHierarchyChange'](_0x160d4d[_0x496e25(0x258)],_0x160d4d[_0x496e25(0x2b1)],(0x0,_0x49735b[_0x496e25(0x13c)])(_0x160d4d[_0x496e25(0x2b1)][_0x496e25(0x14d)](),[_0xacf70e['record']]),_0xacf70e['source']??_0x49735b['BaseEventSource']['UI']);return;}if(_0x1cde30(_0x15edea,_0x49735b['BatchCreateBaseRecordsCommand'])){let _0x3b2ed2=_0x15edea[_0x496e25(0x108)],_0x4f29ae=this[_0x496e25(0x160)](_0x3b2ed2[_0x496e25(0x264)],_0x3b2ed2[_0x496e25(0x1ca)]);if(!_0x4f29ae)return;this['_fireBeforeHierarchyChange'](_0x4f29ae[_0x496e25(0x258)],_0x4f29ae[_0x496e25(0x2b1)],(0x0,_0x49735b[_0x496e25(0x13c)])(_0x4f29ae[_0x496e25(0x2b1)][_0x496e25(0x14d)](),_0x3b2ed2[_0x496e25(0x184)]),_0x3b2ed2[_0x496e25(0x207)]??_0x49735b[_0x496e25(0x1ff)]['UI']);return;}if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x182)])){let _0x59de38=_0x15edea[_0x496e25(0x108)],_0x26abd9=this['_getHierarchyEventContext'](_0x59de38['unitId'],_0x59de38[_0x496e25(0x1ca)]);if(!_0x26abd9)return;this[_0x496e25(0x154)](_0x26abd9[_0x496e25(0x258)],_0x26abd9['table'],(0x0,_0x49735b[_0x496e25(0x13c)])(_0x26abd9[_0x496e25(0x2b1)][_0x496e25(0x14d)](),[_0x59de38[_0x496e25(0x22e)]]),_0x59de38[_0x496e25(0x207)]??_0x49735b[_0x496e25(0x1ff)]['UI']);return;}if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x2b7)])){let _0x57855a=_0x15edea[_0x496e25(0x108)],_0x24dcf0=this[_0x496e25(0x160)](_0x57855a[_0x496e25(0x264)],_0x57855a[_0x496e25(0x1ca)]);if(!_0x24dcf0)return;let _0x143e0b=_0x24dcf0['table']['getTable'](),_0x51ce79=_0x57855a[_0x496e25(0x1c6)]??(0x0,_0x49735b[_0x496e25(0x1d9)])(_0x143e0b),_0x588a8e=(0x0,_0x49735b[_0x496e25(0x2b2)])(_0x143e0b,_0x51ce79)[_0x496e25(0x230)][_0x496e25(0x2bc)](_0x57855a[_0x496e25(0x2c2)])??null;this[_0x496e25(0x154)](_0x24dcf0[_0x496e25(0x258)],_0x24dcf0[_0x496e25(0x2b1)],[{'tableId':_0x57855a[_0x496e25(0x1ca)],'fieldId':_0x51ce79,'recordId':_0x57855a[_0x496e25(0x2c2)],'oldParentRecordId':_0x588a8e,'parentRecordId':_0x57855a[_0x496e25(0x20d)]}],_0x57855a[_0x496e25(0x207)]??_0x49735b[_0x496e25(0x1ff)]['UI']);return;}if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x20c)])){let _0x1e2102=_0x15edea['params'],_0x5be6ed=this[_0x496e25(0x160)](_0x1e2102[_0x496e25(0x264)],_0x1e2102['tableId']);if(!_0x5be6ed)return;let _0x4b5eae=_0x1e2102['fieldId']??(0x0,_0x49735b[_0x496e25(0x1d9)])(_0x5be6ed[_0x496e25(0x2b1)][_0x496e25(0x14d)]());this[_0x496e25(0x154)](_0x5be6ed['base'],_0x5be6ed[_0x496e25(0x2b1)],[{'tableId':_0x1e2102['tableId'],'fieldId':_0x4b5eae,'recordId':_0x1e2102[_0x496e25(0x22e)]['id'],'oldParentRecordId':null,'parentRecordId':_0x1e2102['parentRecordId']}],_0x1e2102[_0x496e25(0x207)]??_0x49735b[_0x496e25(0x1ff)]['UI']);return;}if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x209)])){let _0x755086=_0x15edea[_0x496e25(0x108)],_0x2082d8=this[_0x496e25(0x160)](_0x755086['unitId'],_0x755086[_0x496e25(0x1ca)]);if(!_0x2082d8)return;this[_0x496e25(0x154)](_0x2082d8[_0x496e25(0x258)],_0x2082d8[_0x496e25(0x2b1)],(0x0,_0x49735b['getBaseHierarchyDeletePromotions'])(_0x2082d8[_0x496e25(0x2b1)][_0x496e25(0x14d)](),[_0x755086['recordId']]),_0x755086[_0x496e25(0x207)]??_0x49735b['BaseEventSource']['UI']);return;}if(_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x1b1)])){let _0x54a159=_0x15edea[_0x496e25(0x108)],_0x3715df=this[_0x496e25(0x160)](_0x54a159['unitId'],_0x54a159[_0x496e25(0x1ca)]);if(!_0x3715df)return;this[_0x496e25(0x154)](_0x3715df[_0x496e25(0x258)],_0x3715df[_0x496e25(0x2b1)],(0x0,_0x49735b['getBaseHierarchyDeletePromotions'])(_0x3715df[_0x496e25(0x2b1)]['getTable'](),_0x54a159['recordIds']),_0x54a159[_0x496e25(0x207)]??_0x49735b['BaseEventSource']['UI']);return;}if(!_0x1cde30(_0x15edea,_0x49735b[_0x496e25(0x107)]))return;let _0x4f329c=_0x15edea[_0x496e25(0x108)],_0x1e1103=this[_0x496e25(0x160)](_0x4f329c[_0x496e25(0x264)],_0x4f329c[_0x496e25(0x1ca)]);if(!_0x1e1103)return;let _0x1e5893=_0x1e1103[_0x496e25(0x2b1)][_0x496e25(0x14d)]();if(!(0x0,_0x49735b[_0x496e25(0x26e)])(_0x1e5893)[_0x496e25(0x149)](_0x4f329c['fieldId']))return;let _0x39ecd3=(0x0,_0x49735b['buildBaseHierarchyIndex'])(_0x1e5893,_0x4f329c['fieldId'])[_0x496e25(0x230)][_0x496e25(0x2bc)](_0x4f329c[_0x496e25(0x2c2)])??null,_0x1ac071=(0x0,_0x49735b[_0x496e25(0x133)])(_0x4f329c[_0x496e25(0x188)])[0x0]??null;_0x39ecd3!==_0x1ac071&&this[_0x496e25(0x154)](_0x1e1103[_0x496e25(0x258)],_0x1e1103[_0x496e25(0x2b1)],[{'tableId':_0x4f329c['tableId'],'fieldId':_0x4f329c['fieldId'],'recordId':_0x4f329c['recordId'],'oldParentRecordId':_0x39ecd3,'parentRecordId':_0x1ac071}],_0x4f329c[_0x496e25(0x207)]??_0x49735b[_0x496e25(0x1ff)]['UI']);}))),this[_0x33572c(0x18d)](this['registerEventHandler'](this['Event'][_0x33572c(0x117)],()=>this['_commandService'][_0x33572c(0x1fd)](_0x1b825e=>{const _0x54271f=_0x33572c;if(_0x1b825e['id']!==_0x49735b[_0x54271f(0x143)]['id'])return;let {unitId:_0x812afd,table:_0x2fd649,index:_0x2cdb41}=_0x1b825e[_0x54271f(0x108)],_0x5e92a0=this['getBase'](_0x812afd);if(!_0x5e92a0)return;let _0x235275={'base':_0x5e92a0,'table':_0x2fd649,'index':_0x2cdb41};if(this[_0x54271f(0x18a)](this[_0x54271f(0x159)][_0x54271f(0x117)],_0x235275),_0x235275[_0x54271f(0x297)])throw new _0x577e5e[(_0x54271f(0x254))]();}))),this[_0x33572c(0x18d)](this[_0x33572c(0x16c)](this[_0x33572c(0x159)][_0x33572c(0x1b9)],()=>this[_0x33572c(0x1d3)][_0x33572c(0x1fd)](_0x578d79=>{const _0x20bab9=_0x33572c;if(_0x578d79['id']!==_0x49735b['CreateBaseFieldCommand']['id'])return;let {unitId:_0xfa86d3,tableId:_0x5afe67,field:_0x5e464b,index:_0x52e0db,viewIndexes:_0x437db5}=_0x578d79[_0x20bab9(0x108)],_0x27de92=this['getBase'](_0xfa86d3);if(!_0x27de92)return;let _0x45438b=_0x27de92[_0x20bab9(0x14b)](_0x5afe67);if(!_0x45438b)return;let _0x272e77={'base':_0x27de92,'table':_0x45438b,'field':_0x5e464b,'index':_0x52e0db,'viewIndexes':_0x437db5};if(this[_0x20bab9(0x18a)](this['Event'][_0x20bab9(0x1b9)],_0x272e77),_0x272e77['cancel'])throw new _0x577e5e[(_0x20bab9(0x254))]();}))),this[_0x33572c(0x18d)](this[_0x33572c(0x16c)](this['Event'][_0x33572c(0x2a6)],()=>this[_0x33572c(0x1d3)]['beforeCommandExecuted'](_0x1581a0=>{const _0x5e20eb=_0x33572c;if(_0x1581a0['id']!==_0x49735b[_0x5e20eb(0x24d)]['id']&&_0x1581a0['id']!==_0x49735b['BatchCreateBaseRecordsCommand']['id'])return;let _0x2093cf=_0x1581a0['params'],{unitId:_0x170a30,tableId:_0x5306a5}=_0x2093cf,_0x533844=_0x2093cf[_0x5e20eb(0x184)]??[_0x2093cf[_0x5e20eb(0x22e)]],_0x4b1495=this['getBase'](_0x170a30);if(!_0x4b1495)return;let _0xae0e93=_0x4b1495[_0x5e20eb(0x14b)](_0x5306a5);if(!_0xae0e93)return;let _0x23f178={'base':_0x4b1495,'table':_0xae0e93,'records':_0x533844};if(this[_0x5e20eb(0x18a)](this[_0x5e20eb(0x159)][_0x5e20eb(0x2a6)],_0x23f178),_0x23f178[_0x5e20eb(0x297)])throw new _0x577e5e[(_0x5e20eb(0x254))]();}))),this[_0x33572c(0x18d)](this[_0x33572c(0x16c)](this['Event'][_0x33572c(0x267)],()=>this[_0x33572c(0x1d3)][_0x33572c(0x1fd)](_0x3e0ca6=>{const _0x4ca8b9=_0x33572c;if(_0x3e0ca6['id']!==_0x49735b[_0x4ca8b9(0x1d0)]['id'])return;let {unitId:_0x1decac,tableId:_0x4771b4,view:_0x2ef3ff,index:_0x1c1581}=_0x3e0ca6['params'],_0x2f8231=this[_0x4ca8b9(0x170)](_0x1decac);if(!_0x2f8231)return;let _0x3c387d=_0x2f8231[_0x4ca8b9(0x14b)](_0x4771b4);if(!_0x3c387d)return;let _0x55a2f2={'base':_0x2f8231,'table':_0x3c387d,'view':_0x2ef3ff,'index':_0x1c1581};if(this['fireEvent'](this[_0x4ca8b9(0x159)][_0x4ca8b9(0x267)],_0x55a2f2),_0x55a2f2[_0x4ca8b9(0x297)])throw new _0x577e5e[(_0x4ca8b9(0x254))]();}))),this[_0x33572c(0x18d)](this[_0x33572c(0x16c)](this['Event'][_0x33572c(0x192)],()=>this[_0x33572c(0x1d3)][_0x33572c(0x1fd)](_0x2b2211=>{const _0x138838=_0x33572c;if(_0x2b2211['id']!==_0x49735b[_0x138838(0x107)]['id'])return;let {unitId:_0x25423b,tableId:_0x3b04ef,recordId:_0x24ae60,fieldId:_0x944783,value:_0x2070ba}=_0x2b2211[_0x138838(0x108)],_0x23bcc9=this[_0x138838(0x170)](_0x25423b);if(!_0x23bcc9)return;let _0x53449c=_0x23bcc9[_0x138838(0x14b)](_0x3b04ef);if(!_0x53449c)return;let _0x2270d5=_0x53449c[_0x138838(0x17a)](_0x944783);if(!_0x2270d5)return;let _0x2be27e=_0x53449c['getRecordById'](_0x24ae60);if(!_0x2be27e)return;let _0x383ed4={'base':_0x23bcc9,'table':_0x53449c,'field':_0x2270d5,'record':_0x2be27e,'value':_0x2070ba};if(this[_0x138838(0x18a)](this[_0x138838(0x159)][_0x138838(0x192)],_0x383ed4),_0x383ed4[_0x138838(0x297)])throw new _0x577e5e[(_0x138838(0x254))]();})));}[_0x531b89(0x160)](_0x5a7e97,_0x28098b){const _0x5bc40f=_0x531b89;let _0x4c41ac=this[_0x5bc40f(0x170)](_0x5a7e97),_0x48e9b2=_0x4c41ac==null?void 0x0:_0x4c41ac['getTableById'](_0x28098b);return _0x4c41ac&&_0x48e9b2?{'base':_0x4c41ac,'table':_0x48e9b2}:null;}[_0x531b89(0x154)](_0x1df598,_0x24e6e6,_0x17309e,_0x22818f){const _0x173692=_0x531b89;if(!_0x17309e['length'])return;let _0x447093={'base':_0x1df598,'table':_0x24e6e6,'changes':_0x17309e,'source':_0x22818f};if(this[_0x173692(0x18a)](this['Event']['BeforeBaseHierarchyChange'],_0x447093),_0x447093['cancel'])throw new _0x577e5e[(_0x173692(0x254))]();}};function _0x1cde30(_0x38197c,_0x29b315){const _0x497d10=_0x531b89;return _0x38197c['id']===_0x29b315['id']&&_0x38197c[_0x497d10(0x108)]!==void 0x0;}_0x319556[_0x531b89(0x266)][_0x531b89(0x17f)](_0x392feb);var _0x11e7fb=class extends _0x319556['FEnum']{get[_0x531b89(0x275)](){return _0x577e5e['BaseFieldType'];}get[_0x531b89(0x10e)](){const _0x2e56cf=_0x531b89;return _0x577e5e[_0x2e56cf(0x10e)];}get['BaseFilterOperator'](){const _0x26a653=_0x531b89;return _0x577e5e[_0x26a653(0x147)];}get[_0x531b89(0x292)](){return _0x5e8baf;}get[_0x531b89(0x2c4)](){const _0x536b64=_0x531b89;return _0x577e5e[_0x536b64(0x2c4)];}get[_0x531b89(0x1c2)](){return _0x577e5e['BaseConditionalColorTarget'];}get[_0x531b89(0x219)](){const _0x2524be=_0x531b89;return _0x577e5e[_0x2524be(0x219)];}get[_0x531b89(0x187)](){const _0x41ba08=_0x531b89;return _0x577e5e[_0x41ba08(0x187)];}get[_0x531b89(0x268)](){return _0x577e5e['BaseSortDirection'];}get[_0x531b89(0x1ff)](){return _0x49735b['BaseEventSource'];}get[_0x531b89(0x191)](){const _0x4fa172=_0x531b89;return _0x49735b[_0x4fa172(0x191)];}get[_0x531b89(0x1ac)](){const _0x47864d=_0x531b89;return _0x577e5e[_0x47864d(0x1ac)];}get['BaseRecordLinkRole'](){const _0x56de21=_0x531b89;return _0x577e5e[_0x56de21(0x196)];}};_0x319556[_0x531b89(0x28c)][_0x531b89(0x17f)](_0x11e7fb);var _0x575154=class extends _0x319556[_0x531b89(0x2aa)]{get[_0x531b89(0x1ef)](){const _0x958a62=_0x531b89;return _0x958a62(0x1ef);}get[_0x531b89(0x117)](){return'BeforeBaseTableCreate';}get[_0x531b89(0x277)](){const _0x47636f=_0x531b89;return _0x47636f(0x277);}get[_0x531b89(0x1b9)](){const _0x152209=_0x531b89;return _0x152209(0x1b9);}get[_0x531b89(0x1c9)](){const _0x4e626e=_0x531b89;return _0x4e626e(0x1c9);}get[_0x531b89(0x2a6)](){const _0x333f14=_0x531b89;return _0x333f14(0x2a6);}get[_0x531b89(0x1c7)](){const _0x4f70b5=_0x531b89;return _0x4f70b5(0x1c7);}get[_0x531b89(0x267)](){const _0x15bee0=_0x531b89;return _0x15bee0(0x267);}get[_0x531b89(0x286)](){const _0x149d95=_0x531b89;return _0x149d95(0x286);}get[_0x531b89(0x192)](){const _0x5c5e36=_0x531b89;return _0x5c5e36(0x192);}get['BaseHierarchyChanged'](){const _0x31dd73=_0x531b89;return _0x31dd73(0x25c);}get['BeforeBaseHierarchyChange'](){const _0xa9bd74=_0x531b89;return _0xa9bd74(0x22f);}};_0x319556[_0x531b89(0x2aa)]['extend'](_0x575154),_0x3aa7af['BaseFieldKeyEnum']=_0x5e8baf,Object['defineProperty'](_0x3aa7af,_0x531b89(0x1f7),{'enumerable':!0x0,'get':function(){return _0x5763c4;}}),_0x3aa7af[_0x531b89(0x12c)]=_0x332a83,_0x3aa7af[_0x531b89(0x1de)]=_0x41d5c4,Object[_0x531b89(0x17c)](_0x3aa7af,_0x531b89(0x116),{'enumerable':!0x0,'get':function(){return _0x81d250;}}),Object[_0x531b89(0x17c)](_0x3aa7af,_0x531b89(0x265),{'enumerable':!0x0,'get':function(){return _0x26697c;}}),Object['defineProperty'](_0x3aa7af,_0x531b89(0x1a6),{'enumerable':!0x0,'get':function(){return _0x5a3404;}}),Object['defineProperty'](_0x3aa7af,_0x531b89(0x200),{'enumerable':!0x0,'get':function(){return _0x4f396a;}}),Object[_0x531b89(0x17c)](_0x3aa7af,_0x531b89(0x1dd),{'enumerable':!0x0,'get':function(){return _0x2a4a93;}}),_0x3aa7af[_0x531b89(0x15f)]=_0x575154,_0x3aa7af[_0x531b89(0x263)]=_0x493cbd,_0x3aa7af['resolveBaseFieldValues']=_0x5a87fb;}));