@univerjs-pro/bases 1.0.2 → 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 _0x45c5de=_0x1828;(function(_0x3bfd6e,_0x234608){const _0x202c63=_0x1828,_0x326274=_0x3bfd6e();while(!![]){try{const _0x4b21ac=parseInt(_0x202c63(0x1f2))/0x1+parseInt(_0x202c63(0x1e9))/0x2*(parseInt(_0x202c63(0x1e1))/0x3)+-parseInt(_0x202c63(0x1e6))/0x4*(parseInt(_0x202c63(0x1de))/0x5)+parseInt(_0x202c63(0x1d9))/0x6*(-parseInt(_0x202c63(0x1eb))/0x7)+parseInt(_0x202c63(0x1e4))/0x8*(-parseInt(_0x202c63(0x1f3))/0x9)+-parseInt(_0x202c63(0x1df))/0xa+parseInt(_0x202c63(0x1e7))/0xb;if(_0x4b21ac===_0x234608)break;else _0x326274['push'](_0x326274['shift']());}catch(_0x2c9c5d){_0x326274['push'](_0x326274['shift']());}}}(_0x145e,0x8e662));function _0x1828(_0x254efb,_0x2c2819){_0x254efb=_0x254efb-0x1d9;const _0x145e65=_0x145e();let _0x1828cc=_0x145e65[_0x254efb];return _0x1828cc;}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x45c5de(0x1da),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':_0x45c5de(0x1ed),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x45c5de(0x1dc),'recordId':_0x45c5de(0x1e0),'createdBy':_0x45c5de(0x1f1),'updatedBy':'更新人','createdAt':_0x45c5de(0x1e5),'updatedAt':_0x45c5de(0x1ef),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x45c5de(0x1ec),'linkPlaceholder':_0x45c5de(0x1f0)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x45c5de(0x1e2),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':'欄位類型無效','invalidCellValue':_0x45c5de(0x1db),'invalidKanbanGroupField':'看板需要可分組欄位','invalidCalendarDateField':_0x45c5de(0x1ea),'invalidGanttDateField':_0x45c5de(0x1e3)},'command':{'updateCell':_0x45c5de(0x1dd),'createField':'建立欄位','deleteField':'刪除欄位','createRecord':'建立記錄','deleteRecord':_0x45c5de(0x1e8),'updateViewConfig':_0x45c5de(0x1ee)}}};function _0x145e(){const _0x39d332=['380GkPHqO','4267530bkyxBF','記錄\x20ID','366YJIUDH','行事曆','甘特圖檢視需要開始和結束日期欄位','48936fhOZTU','建立時間','7204ibIYsA','8794500DuzbLr','刪除記錄','7628ZmulhU','行事曆需要日期欄位','7QfwZMe','輸入內容','電子郵件','更新檢視設定','更新時間','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','建立人','625469YneLzR','27FFavgT','4350186awFYSC','核取方塊','儲存格值無效','關聯記錄','更新儲存格'];_0x145e=function(){return _0x39d332;};return _0x145e();}module['exports']=e;
1
+ const _0x15e14e=_0x2d81;(function(_0x1788e7,_0x584fe8){const _0x43395e=_0x2d81,_0x225502=_0x1788e7();while(!![]){try{const _0x3e5618=-parseInt(_0x43395e(0x10b))/0x1+-parseInt(_0x43395e(0x115))/0x2*(-parseInt(_0x43395e(0x114))/0x3)+parseInt(_0x43395e(0x11e))/0x4+-parseInt(_0x43395e(0x117))/0x5+parseInt(_0x43395e(0x102))/0x6+-parseInt(_0x43395e(0x10e))/0x7*(-parseInt(_0x43395e(0x118))/0x8)+parseInt(_0x43395e(0x10f))/0x9*(-parseInt(_0x43395e(0x10a))/0xa);if(_0x3e5618===_0x584fe8)break;else _0x225502['push'](_0x225502['shift']());}catch(_0x41231a){_0x225502['push'](_0x225502['shift']());}}}(_0xc109,0x53130));function _0x2d81(_0x49465e,_0x25d2bd){_0x49465e=_0x49465e-0x102;const _0xc109c6=_0xc109();let _0x2d8103=_0xc109c6[_0x49465e];return _0x2d8103;}function _0xc109(){const _0x1ff9a4=['建立人','更新儲存格','建立記錄','欄位類型無效','更新人','1786516oIZguO','3829716gTYNBf','電子郵件','關聯記錄','行事曆需要日期欄位','刪除欄位','甘特圖','電話號碼','輸入內容','65470JMqIUI','376811KzMDSA','看板需要可分組欄位','記錄\x20ID','155813fhRbOR','459nhcnSX','儲存格值無效','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','欄位標題不能為空','刪除記錄','4107YEtGEQ','426XJDkua','exports','1738955HNpPKa','8aVbIyU'];_0xc109=function(){return _0x1ff9a4;};return _0xc109();}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x15e14e(0x108),'email':_0x15e14e(0x103),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x15e14e(0x104),'recordId':_0x15e14e(0x10d),'createdBy':_0x15e14e(0x119),'updatedBy':_0x15e14e(0x11d),'createdAt':'建立時間','updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x15e14e(0x109),'linkPlaceholder':_0x15e14e(0x111)},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x15e14e(0x107),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x15e14e(0x112),'invalidFieldType':_0x15e14e(0x11c),'invalidCellValue':_0x15e14e(0x110),'invalidKanbanGroupField':_0x15e14e(0x10c),'invalidCalendarDateField':_0x15e14e(0x105),'invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':_0x15e14e(0x11a),'createField':'建立欄位','deleteField':_0x15e14e(0x106),'createRecord':_0x15e14e(0x11b),'deleteRecord':_0x15e14e(0x113),'updateViewConfig':'更新檢視設定'}}};module[_0x15e14e(0x116)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3d6a72=_0x3a70;(function(_0x57196d,_0x5e421f){const _0x3a15a6=_0x3a70,_0xe5ab32=_0x57196d();while(!![]){try{const _0x28f0fe=parseInt(_0x3a15a6(0x210))/0x1*(parseInt(_0x3a15a6(0xec))/0x2)+parseInt(_0x3a15a6(0xfd))/0x3+parseInt(_0x3a15a6(0x148))/0x4*(parseInt(_0x3a15a6(0x23d))/0x5)+parseInt(_0x3a15a6(0x135))/0x6*(-parseInt(_0x3a15a6(0x127))/0x7)+parseInt(_0x3a15a6(0x114))/0x8*(-parseInt(_0x3a15a6(0x10e))/0x9)+parseInt(_0x3a15a6(0x1b1))/0xa*(-parseInt(_0x3a15a6(0x17b))/0xb)+-parseInt(_0x3a15a6(0x1b9))/0xc*(-parseInt(_0x3a15a6(0x14f))/0xd);if(_0x28f0fe===_0x5e421f)break;else _0xe5ab32['push'](_0xe5ab32['shift']());}catch(_0xa8987b){_0xe5ab32['push'](_0xe5ab32['shift']());}}}(_0x15b9,0xf1c8b));import{ApplyBaseJson1Mutation as _0x415ce8,BASE_TABLE_NAME_REQUIREMENTS as _0x3e3c4c,BaseConditionalColorRuleUpdateType as _0x53fd83,BaseEventSource as _0x163008,BaseHierarchyErrorCode as _0x4db856,BatchCreateBaseRecordsCommand as _0x5c549e,BatchDeleteBaseRecordsCommand as _0x3b6e46,ChangeBaseFieldTypeCommand as _0x182c10,CreateBaseChildRecordCommand as _0x139a37,CreateBaseFieldCommand as _0x45cbde,CreateBaseRecordCommand as _0x3d3295,CreateBaseTableCommand as _0x2cacea,CreateBaseViewCommand as _0x1a4d71,DeleteBaseFieldCommand as _0x13f6b0,DeleteBaseRecordCommand as _0x58ff18,DeleteBaseTableCommand as _0x285f4f,DeleteBaseViewCommand as _0x166b9a,DuplicateBaseRecordCommand as _0x32aeff,IBaseProjectionService as _0x2778cc,MoveBaseFieldCommand as _0xd253b2,MoveBaseHierarchyRecordCommand as _0x150f6,MoveBaseViewCommand as _0xd1d1ce,RenameBaseTableCommand as _0x57ea0d,RenameBaseViewCommand as _0x1dc8bf,SetBaseNameCommand as _0x2773d9,SetBasePermissionCommand as _0x2eb03c,SetBasePermissionsCommand as _0x1df26f,SetBaseRangeValuesCommand as _0x2081b9,SetBaseRecordValuesCommand as _0x8c2f3f,SetBaseTableHierarchyFieldCommand as _0x1010aa,SetBaseViewFieldOrderCommand as _0x213c3d,SetBaseViewFieldVisibleCommand as _0x1dcb50,SetBaseViewFieldWidthCommand as _0x390214,SetBaseViewFilterCommand as _0x23b2fa,SetBaseViewGroupCommand as _0xae323a,SetBaseViewSortCommand as _0x1ce03b,UpdateBaseCellCommand as _0x2a154d,UpdateBaseFieldCommand as _0x3b5c0b,UpdateBaseRecordOrderCommand as _0x38d68f,UpdateBaseViewConditionalColorRulesCommand as _0x3c9ed3,UpdateBaseViewConfigCommand as _0x3e814c,ValidateBaseFormulaCommand as _0x43a6fd,buildBaseHierarchyIndex as _0x54315c,canEditBaseTargets as _0x1d4d45,copyBaseTableSnapshot as _0xfc4203,createUniqueBaseTableName as _0x3c9d46,ensureBaseTableCellLayout as _0x326146,getActiveBaseHierarchyFieldIds as _0x3761d8,getBaseCellValue as _0x2ed159,getBaseFieldPermissionObjectId as _0x3ecefb,getBaseFormulaTableName as _0x20e887,getBaseHierarchyDeletePromotions as _0x3bdd64,getBasePermissionValue as _0x33c056,getBaseRecordPermissionObjectId as _0x10e5d2,getBaseTablePermissionObjectId as _0x464330,getBaseViewPermissionObjectId as _0x88646f,getRecordLinkFieldConfig as _0x47e683,matchesBaseCondition as _0x37c3b6,parseRecordLinkIds as _0x378c06,resolveBaseHierarchyFieldId as _0x4afdff,resolveBaseRangeHierarchyPatches as _0x474022,searchBaseTable as _0x575002,serializeRecordLinkIds as _0x369821,validateBaseHierarchyRecordCreations as _0x1e45f5,validateBaseHierarchyRecordPatches as _0x135494,validateBaseTableName as _0x2ec702,validateRecordLinkValue as _0x5cf89b}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x3a2092,BaseConditionalColorOperator as _0x11bed7,BaseConditionalColorTarget as _0x4d7440,BaseConditionalDateMode as _0x14002d,BaseFieldType as _0x4eacf9,BaseFilterConjunction as _0x125131,BaseFilterOperator as _0x5f3a4b,BaseHierarchyInvalidReason as _0x19551e,BaseRecordLinkRole as _0x5ca765,BaseSortDirection as _0x40554e,BaseViewType as _0x4ecc5e,CanceledError as _0x5277c5,ICommandService as _0xbdcdaa,IPermissionService as _0x2f2b52,IResourceLoaderService as _0x440b91,ImageSourceType as _0x48a7ba,Inject as _0x19109f,Injector as _0x46f364,Tools as _0x5a0797,UniverInstanceType as _0x5586fc,createDefaultBaseTableSnapshot as _0x23812b,generateRandomId as _0x36bb57}from'@univerjs/core';import*as _0x4023b6 from'@univerjs/core/facade';import{FBaseInitialable as _0x47cbe7,FEnum as _0x5354a2,FEventName as _0x553a6a,FUniver as _0x4e8405}from'@univerjs/core/facade';function _0x15b9(){const _0x406277=['Name','DESC','6939635bOWTWI','getFieldSettings','BaseFieldType','_getView','caseSensitive','_fieldId','indexOf','getViewById','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','notMatches','_getHierarchyEventContext','Grid','getChildren',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','removeLinkedRecord','deleteConditionalColorRule','BeforeBaseTableRecordCreate','view','BaseFilterConjunction','getSort','getRow','getBase','constructor','\x20exceeds\x20range\x20size\x20','setConfig','getDescription','deleteTable','offset','FBase',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','invalid','custom','705094dQnwBc','_baseTableId','getTables','getDescendants','includes','unitId','getSnapshot','getPrimaryField','BASE64','setFieldWidth','config','setLinkedRecordIds','addField','iterator','getConfig','_commandService','every','4425999rqpqVn','group','_initBaseAfterEvents','rows','size','Facade','duplicateTable','Invalid\x20Base\x20formula.','Invalid\x20attachment\x20at\x20index\x20','getNumRows','record','getLinkedRecordIds','[FRecord]:\x20field\x20\x22','setName','width','some','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','128970JOEvPo','setEditable','index','getFormulaName','tableOrder','getSchema','504VxnKrM','_getFieldIds','BeforeBaseTableCreate','fieldKey','object','setGroup','AND','\x20in\x20field\x20\x22','getConditionalColorRules','move','field','getTableId','_getRecord','source','getPermission','getValues','setValue','getDefaultValue','map','41461bYwsAQ','_getRecordLinkField','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getGroup','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Unsupported\x20Base\x20field\x20type\x20\x22','BaseTableCellValueChanged','hidden','[FBase]:\x20table\x20\x22','\x20for\x20field\x20\x22','Failed\x20to\x20add\x20records','values','Failed\x20to\x20create\x20view\x20\x22','Add','960dTbZtf',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','_table','[FView]:\x20view\x20\x22','rules','tableId','_assertInBounds','BaseTableViewCreated','\x22:\x20expected\x20an\x20array.','getTableById','localeCompare','fieldIds','sourceType','[FTable]:\x20table\x20\x22','viewOrder','BaseHierarchyErrorCode','records','formula','Edit','4SsAbrV','function','decorate','moveField','_tableId','\x22\x20has\x20invalid\x20config.','updateConfig','338hDVivN','getProjection','from','[FBaseRange]:\x20table\x20does\x20not\x20exist.','forEach','system','Date','_resourceLoaderService','orderKey','recordId','getType','operator','slice','BaseConditionalColorOperator','cancel','description','Duplicate\x20Base\x20field\x20name:\x20','getName','duplicate','getTable','defineProperty','getFieldByName','multiple','deepClone','Invalid\x20Base\x20regex\x20filter:\x20','getFieldById','isArray','_univerInstanceService','beforeCommandExecuted','_getAttachmentField','createInstance','getRange','commonExtend','BeforeBaseHierarchyChange','Failed\x20to\x20create\x20table\x20\x22','updatedAt','max','fieldOrder','clear','BaseTableFieldCreated','Formula','getRecordById','_getTable','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','1434774BwGVBF',':\x20expected\x20an\x20object.','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','rowId','get','BaseFieldKeyEnum','tables','limit','default','recordIds','call','_getField','getValue','getRecords','conditionalColoring','childrenByParentId','auto','endRow','RecordLink','getViewByName','BaseSortDirection','getTableFacade','getField','name','BaseTableRecordCreated','\x22\x20is\x20not\x20an\x20Attachment\x20field.','startRow','syncExecuteCommand','parentByRecordId','getParent','\x22\x20does\x20not\x20exist.',',\x20range:\x20','deleteRecords','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','addRecord','_getHierarchyIndex','setFieldVisible','getPrimaryFieldId','Kanban','Delete','BeforeBaseTableViewCreate','getId','\x20Copy','_inject','valid','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','BaseHierarchyChanged','flatMap','update','createBase','URL','setAttachments','_range','BaseTableCreated','140FBkicJ','fromEntries','defaultValue','setParent','viewId','BaseConditionalDateMode','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','_fireBeforeHierarchyChange','344304AlmRUN','warn','Clear','getVisibleFields','[FRecord]:\x20record\x20\x22','trim','views','endColumn','[FBaseRange]:\x20values\x20size\x20','registerEventHandler','getUnitId','type','Gantt','length','[FField]:\x20field\x20\x22','externalReferences','_recordId','getView','includeRecords','getActiveBase','conditions','fromCollab','_resolveRecordIds','symbol','_parentObjectIds','_prepareFormulaFieldReferences','readonly','fieldSettings','hasOwnProperty','getOwnPropertyDescriptor','reason','test','_permissionService','Base\x20field\x20not\x20found:\x20','Failed\x20to\x20duplicate\x20table\x20\x22','setHierarchyField','hierarchyChanges','setValues','[FBase]:\x20invalid\x20table\x20name\x20\x22','targetTableId','matches','boolean','saveUnit','startsWith','getViews','executeCommand','_initBaseBeforeEvents','_projectionService','Auto','createdAt','\x22\x20is\x20invalid.','RecordId','push','getBaseId','setSort','afterFieldId','onCommandExecuted','queryRecords','getUnit','getHierarchyFieldId','isReadonly','beforeFieldId','BaseViewType','subtreeHeightByRecordId','insertTable','getAncestors','\x22.\x20','find','getColumn','createUnit','regenerateViewIds',',\x20max\x20columns:\x20','deleteAttachments','_injector','disposeWithMe','getNumColumns','UNIVER_BASE','params','recordOrder','table','fields','value','_initialize','getFilter','BaseHierarchyInvalidReason','Attachment','parentRecordId','3EPJQPX','visibleCardFieldIds','entries','toPrimitive','addChild','string','[FRecord]:\x20RecordLink\x20field\x20\x22','extend','Remote','Gallery','filter','_viewId','now','setConditionalColorRules','_writeFormulaExternalReferences','getBaseFacade','Event','sort','_base','primaryFieldId','_baseUnitId','BaseFilterOperator','delete','prototype','getAttachments','base','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','startColumn','number','BeforeBaseTableCellValueChange','setReadOnly','_unitId','Set','UUID','getTableByName','canEdit','BeforeBaseTableFieldCreate','_objectId','getDataRange','fireEvent','fieldId','[FRecord]:\x20invalid\x20RecordLink\x20value.','message'];_0x15b9=function(){return _0x406277;};return _0x15b9();}import{UnitAction as _0x436785}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x4a1d32}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x4a0aa9,_0x3c4714,_0x1319d5){const _0x1860f6=_0x3a70;this[_0x1860f6(0x22f)]=_0x4a0aa9,this[_0x1860f6(0xfb)]=_0x3c4714,this[_0x1860f6(0x1d9)]=_0x1319d5;}async['setObjectPermissions'](_0x56e1e4){const _0x53f1dc=_0x3a70;return this['_commandService'][_0x53f1dc(0x1e6)](_0x1df26f['id'],{'unitId':this['_unitId'],'changes':_0x56e1e4});}async['setPoint'](_0x4ee319,_0x1145d3){const _0x3f83d1=_0x3a70;await this['_commandService'][_0x3f83d1(0x1e6)](_0x2eb03c['id'],{'unitId':this[_0x3f83d1(0x22f)],'objectId':this[_0x3f83d1(0x22f)],'action':_0x4ee319,'value':_0x1145d3});}['getPoint'](_0x5684ff){const _0x333c1d=_0x3a70;return _0x33c056(this[_0x333c1d(0x1d9)],this[_0x333c1d(0x22f)],this[_0x333c1d(0x22f)],_0x5684ff);}async['setEditable'](_0x1d3d55=!0x0){const _0x1922bd=_0x3a70;await this[_0x1922bd(0xfb)]['executeCommand'](_0x2eb03c['id'],{'unitId':this[_0x1922bd(0x22f)],'objectId':this[_0x1922bd(0x22f)],'action':_0x436785[_0x1922bd(0x147)],'value':_0x1d3d55});}async[_0x3d6a72(0x22e)](){const _0xcc590d=_0x3d6a72;await this['_commandService'][_0xcc590d(0x1e6)](_0x2eb03c['id'],{'unitId':this['_unitId'],'objectId':this[_0xcc590d(0x22f)],'action':_0x436785['Edit'],'value':!0x1});}[_0x3d6a72(0x233)](){const _0x455e6d=_0x3d6a72;return _0x33c056(this[_0x455e6d(0x1d9)],this[_0x455e6d(0x22f)],this[_0x455e6d(0x22f)],_0x436785['Edit']);}},L=class{constructor(_0x370b9e,_0x13f406,_0xcfa93c,_0x202272,_0x1ebcba){const _0x3e4572=_0x3d6a72;this[_0x3e4572(0x22f)]=_0x370b9e,this['_objectId']=_0x13f406,this[_0x3e4572(0x1d1)]=_0xcfa93c,this[_0x3e4572(0xfb)]=_0x202272,this[_0x3e4572(0x1d9)]=_0x1ebcba;}async[_0x3d6a72(0x10f)](_0x303097=!0x0){const _0x17755a=_0x3d6a72;await this['_commandService'][_0x17755a(0x1e6)](_0x2eb03c['id'],{'unitId':this[_0x17755a(0x22f)],'objectId':this['_objectId'],'action':_0x436785[_0x17755a(0x147)],'value':_0x303097});}async[_0x3d6a72(0x22e)](){const _0x5b0e04=_0x3d6a72;await this[_0x5b0e04(0xfb)]['executeCommand'](_0x2eb03c['id'],{'unitId':this[_0x5b0e04(0x22f)],'objectId':this[_0x5b0e04(0x235)],'action':_0x436785[_0x5b0e04(0x147)],'value':!0x1});}[_0x3d6a72(0x233)](){const _0x5a4102=_0x3d6a72;return _0x1d4d45(this[_0x5a4102(0x1d9)],this[_0x5a4102(0x22f)],[...this['_parentObjectIds'],this[_0x5a4102(0x235)]]);}};function R(_0x173658,_0xf6e517){return function(_0x50a33c,_0x3307af){_0xf6e517(_0x50a33c,_0x3307af,_0x173658);};}function z(_0x213520,_0x82932b,_0x85e1a7,_0x36ca72){const _0x397c91=_0x3d6a72;var _0x91d36d=arguments['length'],_0x3bd67d=_0x91d36d<0x3?_0x82932b:_0x36ca72===null?_0x36ca72=Object[_0x397c91(0x1d6)](_0x82932b,_0x85e1a7):_0x36ca72,_0x334502;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x397c91(0x149))_0x3bd67d=Reflect[_0x397c91(0x14a)](_0x213520,_0x82932b,_0x85e1a7,_0x36ca72);else{for(var _0x3a28b3=_0x213520['length']-0x1;_0x3a28b3>=0x0;_0x3a28b3--)(_0x334502=_0x213520[_0x3a28b3])&&(_0x3bd67d=(_0x91d36d<0x3?_0x334502(_0x3bd67d):_0x91d36d>0x3?_0x334502(_0x82932b,_0x85e1a7,_0x3bd67d):_0x334502(_0x82932b,_0x85e1a7))||_0x3bd67d);}return _0x91d36d>0x3&&_0x3bd67d&&Object[_0x397c91(0x163)](_0x82932b,_0x85e1a7,_0x3bd67d),_0x3bd67d;}let B=class{constructor(_0x5e9821,_0x439a8e,_0xf2785b,_0x440f75,_0x517f55){const _0x1a20df=_0x3d6a72;this[_0x1a20df(0x222)]=_0x5e9821,this[_0x1a20df(0x137)]=_0x439a8e,this[_0x1a20df(0x242)]=_0xf2785b,this[_0x1a20df(0xfb)]=_0x440f75,this[_0x1a20df(0x1d9)]=_0x517f55;}[_0x3d6a72(0x1a4)](){return this['_fieldId'];}['getPermission'](){const _0x262d50=_0x3d6a72;let _0x5cbafa=this[_0x262d50(0x137)][_0x262d50(0x1a4)]();return new L(this[_0x262d50(0x222)]['getId'](),_0x3ecefb(_0x5cbafa,this[_0x262d50(0x242)]),[_0x464330(_0x5cbafa)],this[_0x262d50(0xfb)],this[_0x262d50(0x1d9)]);}[_0x3d6a72(0x191)](){return this['_getField']();}[_0x3d6a72(0x160)](){const _0x102901=_0x3d6a72;return this[_0x102901(0x186)]()[_0x102901(0x192)];}[_0x3d6a72(0x159)](){const _0x195409=_0x3d6a72;return this['_getField']()[_0x195409(0x1c4)];}[_0x3d6a72(0xfa)](){const _0x59a0b2=_0x3d6a72;return this[_0x59a0b2(0x186)]()[_0x59a0b2(0xf6)];}[_0x3d6a72(0x125)](){const _0x22b2d6=_0x3d6a72;return this[_0x22b2d6(0x186)]()[_0x22b2d6(0x1b3)];}[_0x3d6a72(0xe5)](){const _0x4cc203=_0x3d6a72;return this[_0x4cc203(0x186)]()[_0x4cc203(0x15e)];}[_0x3d6a72(0x1f5)](){const _0x5020b7=_0x3d6a72;return!!this[_0x5020b7(0x186)]()[_0x5020b7(0x1d3)];}[_0x3d6a72(0x10a)](_0x8db105){return this['update']({'name':_0x8db105});}[_0x3d6a72(0xe4)](_0x20d1c0,_0x5e9ed1){return this['update']({'config':_0x20d1c0},_0x5e9ed1);}['setDefaultValue'](_0x72a88b){const _0x4a537e=_0x3d6a72;return this[_0x4a537e(0x1ab)]({'defaultValue':_0x72a88b});}[_0x3d6a72(0x1ab)](_0x1fc604,_0x4ec9dc){const _0x51131b=_0x3d6a72;let _0x169b27=this[_0x51131b(0x186)]()[_0x51131b(0x1c4)];return(_0x1fc604[_0x51131b(0x1c4)]??_0x169b27)===_0x4eacf9[_0x51131b(0x177)]&&(Object['prototype'][_0x51131b(0x1d5)][_0x51131b(0x185)](_0x1fc604,_0x51131b(0xf6))||_0x1fc604['type']===_0x4eacf9['Formula'])&&!this[_0x51131b(0x21e)](_0x4ec9dc)?!0x1:this[_0x51131b(0xfb)]['syncExecuteCommand'](_0x3b5c0b['id'],{'unitId':this[_0x51131b(0x222)][_0x51131b(0x1a4)](),'tableId':this['_table'][_0x51131b(0x1a4)](),'fieldId':this[_0x51131b(0x242)],'patch':_0x1fc604});}['changeType'](_0x41339d,_0x1702a5={},_0xd40389){const _0x7303f8=_0x3d6a72;return _0x41339d===_0x4eacf9[_0x7303f8(0x177)]&&!this['_writeFormulaExternalReferences'](_0xd40389)?!0x1:this[_0x7303f8(0xfb)][_0x7303f8(0x196)](_0x182c10['id'],{'unitId':this[_0x7303f8(0x222)][_0x7303f8(0x1a4)](),'tableId':this[_0x7303f8(0x137)][_0x7303f8(0x1a4)](),'fieldId':this[_0x7303f8(0x242)],'input':{'type':_0x41339d,'config':_0x1702a5}});}['delete'](){const _0x1d3060=_0x3d6a72;return this[_0x1d3060(0xfb)][_0x1d3060(0x196)](_0x13f6b0['id'],{'unitId':this[_0x1d3060(0x222)][_0x1d3060(0x1a4)](),'tableId':this[_0x1d3060(0x137)][_0x1d3060(0x1a4)](),'fieldId':this[_0x1d3060(0x242)]});}[_0x3d6a72(0x11d)](_0x46cc48){const _0x2a4f41=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0xd253b2['id'],{'unitId':this[_0x2a4f41(0x222)][_0x2a4f41(0x1a4)](),'tableId':this[_0x2a4f41(0x137)][_0x2a4f41(0x1a4)](),'fieldId':this[_0x2a4f41(0x242)],'target':_0x46cc48});}[_0x3d6a72(0x186)](){const _0xb2b461=_0x3d6a72;let _0x41316c=this[_0xb2b461(0x137)]['getTable']()[_0xb2b461(0x209)][this[_0xb2b461(0x242)]];if(!_0x41316c)throw Error(_0xb2b461(0x1c7)+this['_fieldId']+_0xb2b461(0x199));return _0x41316c;}[_0x3d6a72(0x21e)](_0x1f990d){const _0x2d0774=_0x3d6a72;if(!_0x1f990d||!Array[_0x2d0774(0x169)](_0x1f990d[_0x2d0774(0x1c8)]))return console[_0x2d0774(0x1ba)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x1f990d[_0x2d0774(0x1c8)][_0x2d0774(0x1c6)]===0x0)return!0x0;let _0x39dae7=this['_commandService'][_0x2d0774(0x196)](_0x4a1d32['id'],{'unitId':this[_0x2d0774(0x222)][_0x2d0774(0x1a4)](),'references':_0x1f990d[_0x2d0774(0x1c8)]});return _0x39dae7||console[_0x2d0774(0x1ba)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x39dae7;}};B=z([R(0x3,_0xbdcdaa),R(0x4,_0x2f2b52)],B);let ot=function(_0x4aca61){const _0x1570d8=_0x3d6a72;return _0x4aca61['Id']='id',_0x4aca61[_0x1570d8(0x23b)]=_0x1570d8(0x192),_0x4aca61[_0x1570d8(0x1e9)]=_0x1570d8(0x18b),_0x4aca61;}({});function V(_0x59a5ac){const _0x4a5963=_0x3d6a72;return!!(_0x59a5ac&&_0x59a5ac[_0x4a5963(0x154)]!==!0x0&&_0x59a5ac[_0x4a5963(0x1c4)]!==_0x4eacf9[_0x4a5963(0x1ec)]);}function H(_0x2effa9,_0x1496bc,_0x11983e='id'){const _0x515c14=_0x3d6a72;if(!_0x1496bc)return{};let _0x43e2ed={};return Object[_0x515c14(0x212)](_0x1496bc)[_0x515c14(0x153)](([_0x257526,_0x14ac1e])=>{let _0x19ba5d=ct(_0x2effa9,_0x257526,_0x11983e);_0x43e2ed[_0x19ba5d]=st(_0x2effa9['fields'][_0x19ba5d],_0x14ac1e);}),_0x43e2ed;}function st(_0x322368,_0x5d3516){const _0x1362a5=_0x3d6a72;if((_0x322368==null?void 0x0:_0x322368[_0x1362a5(0x1c4)])!==_0x4eacf9['Attachment']||_0x5d3516==null)return _0x5d3516;if(!Array[_0x1362a5(0x169)](_0x5d3516))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x322368[_0x1362a5(0x192)]+_0x1362a5(0x13d));return _0x5d3516[_0x1362a5(0x126)]((_0x79cf7,_0x2c4bfd)=>lt(_0x322368,_0x79cf7,_0x2c4bfd));}function ct(_0x5d4b70,_0x555ad3,_0x214d28){const _0x3f1052=_0x3d6a72;if(_0x214d28==='id'||_0x214d28==='auto'&&_0x5d4b70[_0x3f1052(0x209)][_0x555ad3])return _0x555ad3;let _0x3ecc14=Object['values'](_0x5d4b70[_0x3f1052(0x209)])[_0x3f1052(0x21a)](_0x1af149=>_0x1af149[_0x3f1052(0x192)]===_0x555ad3);if(_0x3ecc14['length']===0x1)return _0x3ecc14[0x0]['id'];throw _0x3ecc14['length']>0x1?Error(_0x3f1052(0x15f)+_0x555ad3):Error(_0x3f1052(0x1da)+_0x555ad3);}function lt(_0x2feb45,_0x48cf06,_0x1991e6){const _0x43b2c1=_0x3d6a72;let _0x8729fe=_0x43b2c1(0x105)+_0x1991e6+_0x43b2c1(0x130)+_0x2feb45['name']+'\x22';if(!ft(_0x48cf06))throw TypeError(_0x8729fe+_0x43b2c1(0x17c));if('url'in _0x48cf06)throw TypeError(_0x8729fe+_0x43b2c1(0x136));if(_0x43b2c1(0x1c4)in _0x48cf06)throw TypeError(_0x8729fe+_0x43b2c1(0xe9));let _0x41b18a=U(_0x48cf06['id'],_0x8729fe,'id'),_0x53a855=U(_0x48cf06[_0x43b2c1(0x192)],_0x8729fe,_0x43b2c1(0x192)),_0x2c17d4=U(_0x48cf06[_0x43b2c1(0x121)],_0x8729fe,'source');return{'id':_0x41b18a,'name':_0x53a855,'source':_0x2c17d4,'sourceType':ut(_0x48cf06[_0x43b2c1(0x141)],_0x2c17d4,_0x8729fe),...dt(_0x48cf06,'mimeType',_0x8729fe),...W(_0x48cf06,_0x43b2c1(0x101),_0x8729fe),...W(_0x48cf06,_0x43b2c1(0x10b),_0x8729fe),...W(_0x48cf06,'height',_0x8729fe),...dt(_0x48cf06,'thumbnail',_0x8729fe)};}function ut(_0x42c03d,_0x180165,_0x1e84d0){const _0x37ce67=_0x3d6a72;if(_0x42c03d==null)return _0x180165[_0x37ce67(0x1e4)]('data:')?_0x48a7ba[_0x37ce67(0xf4)]:_0x48a7ba[_0x37ce67(0x1ad)];if(_0x42c03d===_0x48a7ba[_0x37ce67(0x1ad)]||_0x42c03d===_0x48a7ba[_0x37ce67(0x231)]||_0x42c03d===_0x48a7ba[_0x37ce67(0xf4)])return _0x42c03d;throw TypeError(_0x1e84d0+_0x37ce67(0x24a));}function U(_0x112198,_0x41434f,_0x43cf97){const _0x439b7a=_0x3d6a72;if(typeof _0x112198!=_0x439b7a(0x215)||!_0x112198[_0x439b7a(0x1be)]())throw TypeError(_0x41434f+':\x20\x22'+_0x43cf97+_0x439b7a(0x12b));return _0x112198;}function dt(_0x16804f,_0x4b4467,_0x2b5131){const _0x1bd660=_0x3d6a72;let _0xed073b=_0x16804f[_0x4b4467];if(_0xed073b==null)return{};if(typeof _0xed073b!=_0x1bd660(0x215)||!_0xed073b['trim']())throw TypeError(_0x2b5131+':\x20\x22'+_0x4b4467+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x4b4467]:_0xed073b};}function W(_0x5bf848,_0x36e210,_0x483635){const _0x1abf44=_0x3d6a72;let _0x270fb4=_0x5bf848[_0x36e210];if(_0x270fb4==null)return{};if(typeof _0x270fb4!=_0x1abf44(0x22c)||!Number['isFinite'](_0x270fb4)||_0x270fb4<0x0)throw TypeError(_0x483635+':\x20\x22'+_0x36e210+_0x1abf44(0x129));return{[_0x36e210]:_0x270fb4};}function ft(_0x3bdd83){const _0x36e9a9=_0x3d6a72;return typeof _0x3bdd83==_0x36e9a9(0x118)&&!!_0x3bdd83&&!Array[_0x36e9a9(0x169)](_0x3bdd83);}var G;let K=G=class{constructor(_0x5d8802,_0x3a8686,_0x3ff902,_0x4a95e2,_0x2d86b6){const _0x1af8fa=_0x3d6a72;this['_base']=_0x5d8802,this[_0x1af8fa(0x137)]=_0x3a8686,this[_0x1af8fa(0x1af)]=_0x3ff902,this[_0x1af8fa(0x1a6)]=_0x4a95e2,this[_0x1af8fa(0xfb)]=_0x2d86b6,this[_0x1af8fa(0x13b)]();}[_0x3d6a72(0x1ee)](){const _0x5605a4=_0x3d6a72;return this[_0x5605a4(0x222)][_0x5605a4(0x1a4)]();}[_0x3d6a72(0x11f)](){const _0x1f40bb=_0x3d6a72;return this['_table'][_0x1f40bb(0x1a4)]();}[_0x3d6a72(0x16e)](){const _0x45fc6a=_0x3d6a72;return{...this[_0x45fc6a(0x1af)]};}[_0x3d6a72(0x251)](){const _0x293770=_0x3d6a72;return this['_range'][_0x293770(0x195)];}[_0x3d6a72(0x1fd)](){const _0x440866=_0x3d6a72;return this[_0x440866(0x1af)][_0x440866(0x22b)];}['getNumRows'](){const _0x4b76a4=_0x3d6a72;return this[_0x4b76a4(0x1af)][_0x4b76a4(0x18c)]-this[_0x4b76a4(0x1af)]['startRow']+0x1;}[_0x3d6a72(0x204)](){const _0x1bb69b=_0x3d6a72;return this[_0x1bb69b(0x1af)][_0x1bb69b(0x1c0)]-this[_0x1bb69b(0x1af)][_0x1bb69b(0x22b)]+0x1;}[_0x3d6a72(0x123)](){const _0x1acab3=_0x3d6a72;let _0x782aca=this[_0x1acab3(0x179)](),_0x4764c3=this[_0x1acab3(0x115)](_0x782aca),_0x32b16d=[];for(let _0x548644=this['_range']['startRow'];_0x548644<=this['_range'][_0x1acab3(0x18c)];_0x548644++){var _0x32c066;let _0x348b61=(_0x32c066=_0x782aca['rowId'])==null?void 0x0:_0x32c066[_0x548644],_0x4d2a39=[];for(let _0x1e496e=this['_range']['startColumn'];_0x1e496e<=this[_0x1acab3(0x1af)][_0x1acab3(0x1c0)];_0x1e496e++){let _0x44993f=_0x4764c3[_0x1e496e];_0x4d2a39['push'](_0x348b61&&_0x44993f?_0x2ed159(_0x782aca,_0x348b61,_0x44993f):null);}_0x32b16d[_0x1acab3(0x1ed)](_0x4d2a39);}return _0x32b16d;}[_0x3d6a72(0x187)](){const _0x539434=_0x3d6a72;var _0xcc8431;return((_0xcc8431=this[_0x539434(0x123)]()[0x0])==null?void 0x0:_0xcc8431[0x0])??null;}[_0x3d6a72(0x124)](_0x44e58e){return this['setValues']([[_0x44e58e]]);}[_0x3d6a72(0x1de)](_0x1dcc40){const _0x155023=_0x3d6a72;let _0x1f1e4f=this[_0x155023(0x106)](),_0x1478bc=this[_0x155023(0x204)]();if(_0x1dcc40[_0x155023(0x1c6)]>_0x1f1e4f||_0x1dcc40['some'](_0xefba26=>_0xefba26[_0x155023(0x1c6)]>_0x1478bc)){var _0x728530;throw Error(_0x155023(0x1c1)+_0x1dcc40['length']+'x'+(((_0x728530=_0x1dcc40[0x0])==null?void 0x0:_0x728530[_0x155023(0x1c6)])??0x0)+_0x155023(0xe3)+_0x1f1e4f+'x'+_0x1478bc+'.');}let _0x27cbfc=this['_getTable'](),_0x2e2f61=this['_getFieldIds'](_0x27cbfc),_0x5d381a=_0x1dcc40[_0x155023(0x1aa)]((_0x36ce61,_0x10c726)=>_0x36ce61[_0x155023(0x126)]((_0x233989,_0x4c9cd5)=>{const _0x314457=_0x155023;var _0x5019c0;let _0x397103=this[_0x314457(0x1af)][_0x314457(0x195)]+_0x10c726,_0x2cf979=_0x2e2f61[this[_0x314457(0x1af)][_0x314457(0x22b)]+_0x4c9cd5],_0x350204=(_0x5019c0=_0x27cbfc[_0x314457(0x17e)])==null?void 0x0:_0x5019c0[_0x397103];if(!_0x2cf979||!_0x350204)throw Error(_0x314457(0x1a8));return{'recordId':_0x350204,'fieldId':_0x2cf979,'value':_0x233989};}));return this[_0x155023(0xfb)][_0x155023(0x196)](_0x2081b9['id'],{'unitId':this[_0x155023(0x222)][_0x155023(0x1a4)](),'tableId':this['_table'][_0x155023(0x1a4)](),'patches':_0x5d381a,'source':_0x163008['Facade']});}[_0x3d6a72(0x175)](){const _0x3d6962=_0x3d6a72;return this[_0x3d6962(0x1de)](Array['from']({'length':this[_0x3d6962(0x106)]()},()=>Array[_0x3d6962(0x151)]({'length':this[_0x3d6962(0x204)]()},()=>null)));}[_0x3d6a72(0xe7)](_0x255bc8,_0x6a02fa,_0x4a9a02=this[_0x3d6a72(0x106)](),_0x3b77ca=this[_0x3d6a72(0x204)]()){const _0x787648=_0x3d6a72;return this[_0x787648(0x1a6)][_0x787648(0x16d)](G,this['_base'],this[_0x787648(0x137)],{'startRow':this['_range'][_0x787648(0x195)]+_0x255bc8,'startColumn':this[_0x787648(0x1af)][_0x787648(0x22b)]+_0x6a02fa,'endRow':this['_range'][_0x787648(0x195)]+_0x255bc8+_0x4a9a02-0x1,'endColumn':this['_range'][_0x787648(0x22b)]+_0x6a02fa+_0x3b77ca-0x1},this[_0x787648(0x1a6)]);}[_0x3d6a72(0x179)](){const _0x67848c=_0x3d6a72;let _0x23f7c8=this[_0x67848c(0x137)]['getTable']();if(!_0x23f7c8)throw Error(_0x67848c(0x152));return _0x326146(_0x23f7c8);}[_0x3d6a72(0x13b)](){const _0x1b8b88=_0x3d6a72;var _0x18c6a8;let _0x1e9f38=this['_getTable'](),_0x2b283b=((_0x18c6a8=_0x1e9f38[_0x1b8b88(0x207)])==null?void 0x0:_0x18c6a8[_0x1b8b88(0x1c6)])??0x0,_0x21c2ff=this[_0x1b8b88(0x115)](_0x1e9f38)['length'];if(this[_0x1b8b88(0x1af)][_0x1b8b88(0x195)]<0x0||this[_0x1b8b88(0x1af)][_0x1b8b88(0x22b)]<0x0||this[_0x1b8b88(0x1af)]['endRow']<this[_0x1b8b88(0x1af)]['startRow']||this[_0x1b8b88(0x1af)][_0x1b8b88(0x1c0)]<this[_0x1b8b88(0x1af)][_0x1b8b88(0x22b)]||this[_0x1b8b88(0x1af)][_0x1b8b88(0x18c)]>=Math[_0x1b8b88(0x173)](_0x2b283b,0x1)||this[_0x1b8b88(0x1af)][_0x1b8b88(0x1c0)]>=Math[_0x1b8b88(0x173)](_0x21c2ff,0x1))throw Error(_0x1b8b88(0x245)+_0x2b283b+_0x1b8b88(0x200)+_0x21c2ff+_0x1b8b88(0x19a)+JSON['stringify'](this[_0x1b8b88(0x1af)])+'.');}['_getFieldIds'](_0x141036){const _0x538600=_0x3d6a72;return _0x141036[_0x538600(0x174)]['filter'](_0x2e8a93=>V(_0x141036[_0x538600(0x209)][_0x2e8a93]));}};K=G=z([R(0x4,_0xbdcdaa)],K);function _0x3a70(_0x4a1807,_0x1befad){_0x4a1807=_0x4a1807-0xe2;const _0x15b906=_0x15b9();let _0x3a7049=_0x15b906[_0x4a1807];return _0x3a7049;}function q(_0x15f68a){'@babel/helpers - typeof';const _0x750d9d=_0x3d6a72;return q=typeof Symbol=='function'&&typeof Symbol[_0x750d9d(0xf9)]==_0x750d9d(0x1d0)?function(_0x224e6b){return typeof _0x224e6b;}:function(_0x438a4b){const _0x5f26c9=_0x750d9d;return _0x438a4b&&typeof Symbol==_0x5f26c9(0x149)&&_0x438a4b[_0x5f26c9(0xe2)]===Symbol&&_0x438a4b!==Symbol[_0x5f26c9(0x227)]?_0x5f26c9(0x1d0):typeof _0x438a4b;},q(_0x15f68a);}function pt(_0x580e32,_0x2ceaa7){const _0x5e5007=_0x3d6a72;if(q(_0x580e32)!=_0x5e5007(0x118)||!_0x580e32)return _0x580e32;var _0x499e32=_0x580e32[Symbol[_0x5e5007(0x213)]];if(_0x499e32!==void 0x0){var _0x3a233d=_0x499e32['call'](_0x580e32,_0x2ceaa7||_0x5e5007(0x183));if(q(_0x3a233d)!=_0x5e5007(0x118))return _0x3a233d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2ceaa7===_0x5e5007(0x215)?String:Number)(_0x580e32);}function mt(_0x45c59b){const _0x439354=_0x3d6a72;var _0x42f95c=pt(_0x45c59b,_0x439354(0x215));return q(_0x42f95c)==_0x439354(0x1d0)?_0x42f95c:_0x42f95c+'';}function ht(_0x518968,_0x2b2463,_0x13f31e){const _0x4ee782=_0x3d6a72;return(_0x2b2463=mt(_0x2b2463))in _0x518968?Object[_0x4ee782(0x163)](_0x518968,_0x2b2463,{'value':_0x13f31e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x518968[_0x2b2463]=_0x13f31e,_0x518968;}var J;let Y=J=class extends _0x47cbe7{constructor(_0x2a458b,_0x50adf5,_0x37fb3f,_0xff4ac4,_0x4e0cc5,_0x32c481){const _0x57ee3d=_0x3d6a72;super(_0xff4ac4),this[_0x57ee3d(0x222)]=_0x2a458b,this[_0x57ee3d(0x137)]=_0x50adf5,this[_0x57ee3d(0x1c9)]=_0x37fb3f,this['_injector']=_0xff4ac4,this[_0x57ee3d(0xfb)]=_0x4e0cc5,this['_permissionService']=_0x32c481,ht(this,_0x57ee3d(0x224),void 0x0),ht(this,_0x57ee3d(0xed),void 0x0),this['_baseUnitId']=_0x2a458b[_0x57ee3d(0x1a4)](),this[_0x57ee3d(0xed)]=_0x50adf5[_0x57ee3d(0x1a4)]();}[_0x3d6a72(0x21f)](){const _0x52a2b0=_0x3d6a72;return this[_0x52a2b0(0x222)];}[_0x3d6a72(0x190)](){return this['_table'];}[_0x3d6a72(0x1a4)](){return this['_recordId'];}['getPermission'](){const _0x259c5d=_0x3d6a72;let _0x1f31ed=this[_0x259c5d(0x137)]['getId']();return new L(this[_0x259c5d(0x222)]['getId'](),_0x10e5d2(_0x1f31ed,this[_0x259c5d(0x1c9)]),[_0x464330(_0x1f31ed)],this[_0x259c5d(0xfb)],this[_0x259c5d(0x1d9)]);}['getRecord'](){const _0x428864=_0x3d6a72;return{...this['_getRecord'](),'values':this[_0x428864(0x123)]()};}['getValue'](_0x502c6){const _0x405206=_0x3d6a72;return V(this[_0x405206(0x137)][_0x405206(0x162)]()['fields'][_0x502c6])?this['_getRecord']()[_0x405206(0x132)][_0x502c6]??null:null;}[_0x3d6a72(0x123)](){const _0x3d3ce8=_0x3d6a72;let _0x91813d=this['_table'][_0x3d3ce8(0x162)]();return Object[_0x3d3ce8(0x1b2)](Object[_0x3d3ce8(0x212)](this['_getRecord']()[_0x3d3ce8(0x132)])['filter'](([_0x4db411])=>V(_0x91813d[_0x3d3ce8(0x209)][_0x4db411])));}[_0x3d6a72(0x124)](_0x4682ac,_0x3cd8c7){const _0x4b3ad3=_0x3d6a72;let _0x16ed1d=this['_table'][_0x4b3ad3(0x162)]()[_0x4b3ad3(0x209)][_0x4682ac];return this[_0x4b3ad3(0xfb)][_0x4b3ad3(0x196)](_0x2a154d['id'],{'unitId':this[_0x4b3ad3(0x222)][_0x4b3ad3(0x1a4)](),'tableId':this[_0x4b3ad3(0x137)][_0x4b3ad3(0x1a4)](),'recordId':this['_recordId'],'fieldId':_0x4682ac,'value':st(_0x16ed1d,_0x3cd8c7),'source':_0x163008['Facade']});}[_0x3d6a72(0x1ae)](_0x4b9014,_0x49eafd){const _0x213f39=_0x3d6a72;return this[_0x213f39(0x124)](_0x4b9014,_0x49eafd['map'](_0x162663=>({..._0x162663})));}[_0x3d6a72(0x228)](_0x278f0d){const _0x3f60a0=_0x3d6a72;this[_0x3f60a0(0x16c)](_0x278f0d);let _0xb5d1a1=this[_0x3f60a0(0x187)](_0x278f0d);return Array[_0x3f60a0(0x169)](_0xb5d1a1)?_0xb5d1a1[_0x3f60a0(0x126)]((_0x3fcb01,_0x143000)=>_t(_0x3fcb01,_0x278f0d,_0x143000)):[];}[_0x3d6a72(0x201)](_0x485149,_0x4f622c){const _0x4634fd=_0x3d6a72;this[_0x4634fd(0x16c)](_0x485149);let _0x11b8ab=new Set(_0x4f622c['map'](_0x464520=>_0x464520['id']));if(!_0x11b8ab[_0x4634fd(0x101)])return!0x0;let _0x1b6fea=this[_0x4634fd(0x228)](_0x485149),_0x2f1823=_0x1b6fea[_0x4634fd(0x21a)](_0xc7fe10=>!_0x11b8ab['has'](_0xc7fe10['id']));return _0x2f1823['length']===_0x1b6fea[_0x4634fd(0x1c6)]||this[_0x4634fd(0x1ae)](_0x485149,_0x2f1823);}[_0x3d6a72(0x1de)](_0x375bc1,_0xf21f9a='id'){const _0x4cf23d=_0x3d6a72;let _0x5c664c=this['_table']['getTable'](),_0x2f86cd=[{'recordId':this['_recordId'],'values':H(_0x5c664c,_0x375bc1,_0xf21f9a)}];return this[_0x4cf23d(0xfb)][_0x4cf23d(0x196)](_0x8c2f3f['id'],{'unitId':this['_base'][_0x4cf23d(0x1a4)](),'tableId':this[_0x4cf23d(0x137)][_0x4cf23d(0x1a4)](),'patches':_0x2f86cd,'source':_0x163008['Facade']});}[_0x3d6a72(0x226)](){const _0x182af6=_0x3d6a72;return this[_0x182af6(0xfb)][_0x182af6(0x196)](_0x58ff18['id'],{'unitId':this[_0x182af6(0x222)]['getId'](),'tableId':this[_0x182af6(0x137)][_0x182af6(0x1a4)](),'recordId':this[_0x182af6(0x1c9)],'source':_0x163008[_0x182af6(0x102)]});}[_0x3d6a72(0x161)](_0x4d56f3){const _0x4447d7=_0x3d6a72;let _0x49089d={...this[_0x4447d7(0x120)](),..._0x4d56f3,'id':_0x36bb57(0x6)};_0x49089d[_0x4447d7(0x132)]={..._0x49089d[_0x4447d7(0x132)],..._0x4d56f3==null?void 0x0:_0x4d56f3[_0x4447d7(0x132)]},Reflect['deleteProperty'](_0x49089d[_0x4447d7(0x132)],_0x3a2092);let _0x30d93d=Date[_0x4447d7(0x21c)]();if(_0x49089d['orderKey']||=''+_0x30d93d,_0x49089d['createdAt']||=_0x30d93d,_0x49089d[_0x4447d7(0x172)]||=_0x30d93d,!this[_0x4447d7(0xfb)][_0x4447d7(0x196)](_0x32aeff['id'],{'unitId':this[_0x4447d7(0x222)][_0x4447d7(0x1a4)](),'tableId':this[_0x4447d7(0x137)]['getId'](),'sourceRecordId':this[_0x4447d7(0x1c9)],'record':_0x49089d,'source':_0x163008[_0x4447d7(0x102)]}))throw Error(_0x4447d7(0x19c)+this[_0x4447d7(0x1c9)]+'\x22.');return this[_0x4447d7(0x202)][_0x4447d7(0x16d)](J,this[_0x4447d7(0x222)],this[_0x4447d7(0x137)],_0x49089d['id'],this[_0x4447d7(0x202)]);}['setOrderKey'](_0x1ffc52){const _0x43a341=_0x3d6a72;return this['_commandService'][_0x43a341(0x196)](_0x38d68f['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x43a341(0x137)]['getId'](),'recordId':this[_0x43a341(0x1c9)],'orderKey':_0x1ffc52});}[_0x3d6a72(0x108)](_0x3c6190){const _0x405fa9=_0x3d6a72;let _0x98c46d=this[_0x405fa9(0x128)](_0x3c6190),_0x339dc6=this['getValue'](_0x98c46d['id']);return _0x378c06(_0x339dc6);}[_0x3d6a72(0xf7)](_0x3d657a,_0x4493cb){const _0x3090c8=_0x3d6a72;let _0x53644c=this[_0x3090c8(0x128)](_0x3d657a),_0x3bb3e7=_0x369821(_0x4493cb),_0x16f30f=_0x5cf89b(this['_base'][_0x3090c8(0x252)]()['getSnapshot'](),_0x53644c,_0x3bb3e7);if(!_0x16f30f[_0x3090c8(0x1a7)])throw Error(_0x16f30f[_0x3090c8(0x1d7)]??_0x3090c8(0x239));return this[_0x3090c8(0xfb)][_0x3090c8(0x196)](_0x2a154d['id'],{'unitId':this['_base'][_0x3090c8(0x1a4)](),'tableId':this[_0x3090c8(0x137)]['getId'](),'recordId':this[_0x3090c8(0x1c9)],'fieldId':_0x3d657a,'value':_0x3bb3e7,'source':_0x163008[_0x3090c8(0x102)]});}['addLinkedRecord'](_0x120f2e,_0x2b74ba){const _0x5cd394=_0x3d6a72;let _0x1c86c2=this[_0x5cd394(0x128)](_0x120f2e),_0x10a96b=_0x47e683(_0x1c86c2);if(!_0x10a96b)throw Error(_0x5cd394(0x216)+_0x120f2e+_0x5cd394(0x14d));let _0x1f2da9=this[_0x5cd394(0x108)](_0x120f2e);return _0x10a96b[_0x5cd394(0x165)]&&_0x1f2da9[_0x5cd394(0xf0)](_0x2b74ba)?!0x0:this[_0x5cd394(0xf7)](_0x120f2e,_0x10a96b['multiple']?[..._0x1f2da9,_0x2b74ba]:[_0x2b74ba]);}[_0x3d6a72(0x24b)](_0x2827e6,_0xb5eadb){const _0x272e65=_0x3d6a72;let _0x5be606=this[_0x272e65(0x108)](_0x2827e6);return!_0x5be606[_0x272e65(0xf0)](_0xb5eadb)||this[_0x272e65(0xf7)](_0x2827e6,_0x5be606[_0x272e65(0x21a)](_0x398378=>_0x398378!==_0xb5eadb));}[_0x3d6a72(0x198)](_0x34db4c){const _0x4a917b=_0x3d6a72;let _0x3fb525=this[_0x4a917b(0x19e)](_0x34db4c)['parentByRecordId']['get'](this[_0x4a917b(0x1c9)])??null;return _0x3fb525?this[_0x4a917b(0x137)]['getRecordById'](_0x3fb525):null;}[_0x3d6a72(0x249)](_0x80d54b){const _0x5c3b5e=_0x3d6a72;return(this[_0x5c3b5e(0x19e)](_0x80d54b)['childrenByParentId'][_0x5c3b5e(0x17f)](this['_recordId'])??[])[_0x5c3b5e(0x1aa)](_0x33e4c1=>{const _0x4c4883=_0x5c3b5e;let _0x4bbebb=this[_0x4c4883(0x137)][_0x4c4883(0x178)](_0x33e4c1);return _0x4bbebb?[_0x4bbebb]:[];});}[_0x3d6a72(0x1fa)](_0x25ca74){const _0x4c4538=_0x3d6a72;let _0x38681b=this[_0x4c4538(0x19e)](_0x25ca74),_0x46bb85=[],_0x3b916d=_0x38681b['parentByRecordId'][_0x4c4538(0x17f)](this[_0x4c4538(0x1c9)])??null;for(;_0x3b916d;){let _0x3b92f8=this[_0x4c4538(0x137)][_0x4c4538(0x178)](_0x3b916d);_0x3b92f8&&_0x46bb85['push'](_0x3b92f8),_0x3b916d=_0x38681b[_0x4c4538(0x197)]['get'](_0x3b916d)??null;}return _0x46bb85;}[_0x3d6a72(0xef)](_0x367468){const _0x576032=_0x3d6a72;let _0x479eb9=this[_0x576032(0x19e)](_0x367468),_0x227d60=_0x479eb9['orderedRecordIds'][_0x576032(0x243)](this[_0x576032(0x1c9)]),_0x4c5685=_0x479eb9[_0x576032(0x1f8)]['has'](this[_0x576032(0x1c9)])?this['_collectDescendantIds'](_0x479eb9[_0x576032(0x18a)],this[_0x576032(0x1c9)]):[];return _0x227d60<0x0?[]:_0x4c5685[_0x576032(0x1aa)](_0x1ae3fa=>{const _0x197516=_0x576032;let _0x47c4ea=this[_0x197516(0x137)][_0x197516(0x178)](_0x1ae3fa);return _0x47c4ea?[_0x47c4ea]:[];});}[_0x3d6a72(0x1b4)](_0x3a6d1e,_0x50eb92,_0x10c2b2){const _0x117606=_0x3d6a72;return this[_0x117606(0xfb)][_0x117606(0x196)](_0x150f6['id'],{'unitId':this[_0x117606(0x222)][_0x117606(0x1a4)](),'tableId':this[_0x117606(0x137)][_0x117606(0x1a4)](),'fieldId':_0x3a6d1e,'recordId':this[_0x117606(0x1c9)],'parentRecordId':_0x50eb92,'orderKey':_0x10c2b2,'source':_0x163008[_0x117606(0x102)]});}[_0x3d6a72(0x214)](_0x18ec9d,_0x5603ec,_0x14566e='id',_0x3196e7){const _0x1bedd2=_0x3d6a72;let _0x5559c0=this[_0x1bedd2(0x137)][_0x1bedd2(0x162)](),_0x292773=Date[_0x1bedd2(0x21c)](),_0x358bba={..._0x3196e7,'id':_0x36bb57(0x6),'values':H(_0x5559c0,_0x5603ec,_0x14566e),'orderKey':(_0x3196e7==null?void 0x0:_0x3196e7[_0x1bedd2(0x157)])||''+_0x292773,'createdAt':(_0x3196e7==null?void 0x0:_0x3196e7[_0x1bedd2(0x1ea)])||_0x292773,'updatedAt':(_0x3196e7==null?void 0x0:_0x3196e7[_0x1bedd2(0x172)])||_0x292773};if(!this[_0x1bedd2(0xfb)][_0x1bedd2(0x196)](_0x139a37['id'],{'unitId':this['_base'][_0x1bedd2(0x1a4)](),'tableId':this[_0x1bedd2(0x137)][_0x1bedd2(0x1a4)](),'fieldId':_0x18ec9d,'parentRecordId':this[_0x1bedd2(0x1c9)],'record':_0x358bba,'source':_0x163008[_0x1bedd2(0x102)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x1bedd2(0x1c9)]+'\x22.');return this[_0x1bedd2(0x202)]['createInstance'](J,this['_base'],this[_0x1bedd2(0x137)],_0x358bba['id'],this[_0x1bedd2(0x202)]);}['_getHierarchyIndex'](_0x32b4e8){return _0x54315c(this['_table']['getTable'](),_0x32b4e8);}['_collectDescendantIds'](_0x42483a,_0x466879){let _0x1d991a=[],_0x13b0c6=_0x53bcdd=>{const _0x3f160c=_0x3a70;for(let _0x17da8e of _0x42483a[_0x3f160c(0x17f)](_0x53bcdd)??[])_0x1d991a['push'](_0x17da8e),_0x13b0c6(_0x17da8e);};return _0x13b0c6(_0x466879),_0x1d991a;}[_0x3d6a72(0x120)](){const _0x370d54=_0x3d6a72;let _0x444265=this[_0x370d54(0x137)][_0x370d54(0x162)]()[_0x370d54(0x145)][this['_recordId']];if(!_0x444265)throw Error(_0x370d54(0x1bd)+this[_0x370d54(0x1c9)]+_0x370d54(0x199));return _0x444265;}[_0x3d6a72(0x128)](_0x153551){const _0x4ae0d0=_0x3d6a72;let _0x2c440e=this[_0x4ae0d0(0x137)][_0x4ae0d0(0x162)]()['fields'][_0x153551];if(!_0x2c440e||_0x2c440e[_0x4ae0d0(0x1c4)]!==_0x4eacf9[_0x4ae0d0(0x18d)])throw Error('[FRecord]:\x20field\x20\x22'+_0x153551+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x2c440e;}[_0x3d6a72(0x16c)](_0xc93f35){const _0x1e6ce2=_0x3d6a72;let _0x20987b=this['_table'][_0x1e6ce2(0x162)]()[_0x1e6ce2(0x209)][_0xc93f35];if(!_0x20987b||_0x20987b[_0x1e6ce2(0x1c4)]!==_0x4eacf9[_0x1e6ce2(0x20e)])throw Error(_0x1e6ce2(0x109)+_0xc93f35+_0x1e6ce2(0x194));return _0x20987b;}};Y=J=z([R(0x4,_0xbdcdaa),R(0x5,_0x2f2b52)],Y);function gt(_0x4370ff){const _0x45eb1a=_0x3d6a72;return!!(_0x4370ff&&typeof _0x4370ff=='object'&&'id'in _0x4370ff&&typeof _0x4370ff['id']==_0x45eb1a(0x215)&&_0x45eb1a(0x192)in _0x4370ff&&typeof _0x4370ff[_0x45eb1a(0x192)]==_0x45eb1a(0x215));}function _t(_0x47a5d,_0x102562,_0x3dd4a3){const _0x4874d4=_0x3d6a72;if(!gt(_0x47a5d))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x3dd4a3+_0x4874d4(0x11b)+_0x102562+_0x4874d4(0x1eb));return{..._0x47a5d};}let X=class{constructor(_0x4dfffa,_0x5f15fa,_0x117233,_0x164bae,_0x3d367d,_0x45d17a,_0x46572d){const _0x31fb5f=_0x3d6a72;this[_0x31fb5f(0x222)]=_0x4dfffa,this[_0x31fb5f(0x137)]=_0x5f15fa,this[_0x31fb5f(0x21b)]=_0x117233,this[_0x31fb5f(0x202)]=_0x164bae,this['_commandService']=_0x3d367d,this['_permissionService']=_0x45d17a,this[_0x31fb5f(0x1e8)]=_0x46572d;}[_0x3d6a72(0x1a4)](){return this['_viewId'];}['getPermission'](){const _0x4c0843=_0x3d6a72;let _0xb1ad84=this['_table'][_0x4c0843(0x1a4)]();return new L(this[_0x4c0843(0x222)][_0x4c0843(0x1a4)](),_0x88646f(_0xb1ad84,this['_viewId']),[_0x464330(_0xb1ad84)],this['_commandService'],this['_permissionService']);}[_0x3d6a72(0x1ca)](){const _0x5bf0bd=_0x3d6a72;return this[_0x5bf0bd(0x240)]();}[_0x3d6a72(0x160)](){const _0x2f034d=_0x3d6a72;return this[_0x2f034d(0x240)]()[_0x2f034d(0x192)];}['getType'](){const _0x26f5c4=_0x3d6a72;return this[_0x26f5c4(0x240)]()[_0x26f5c4(0x1c4)];}['setName'](_0x56c351){const _0xfb2b04=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0x1dc8bf['id'],{'unitId':this[_0xfb2b04(0x222)]['getId'](),'tableId':this[_0xfb2b04(0x137)]['getId'](),'viewId':this[_0xfb2b04(0x21b)],'name':_0x56c351});}['getConfig'](){const _0x3d7bc4=_0x3d6a72;let _0x14a7a7=this['getType'](),_0x3f4a9f=this[_0x3d7bc4(0x240)]()[_0x3d7bc4(0xf6)];switch(_0x14a7a7){case _0x4ecc5e[_0x3d7bc4(0x248)]:return _0x3f4a9f;case _0x4ecc5e[_0x3d7bc4(0x1a1)]:return _0x3f4a9f;case _0x4ecc5e['Calendar']:return _0x3f4a9f;case _0x4ecc5e[_0x3d7bc4(0x1c5)]:return _0x3f4a9f;case _0x4ecc5e[_0x3d7bc4(0x219)]:return _0x3f4a9f;default:return _0x3f4a9f;}}[_0x3d6a72(0x14e)](_0x2eb584){const _0x3bc737=_0x3d6a72;return this['_commandService'][_0x3bc737(0x196)](_0x3e814c['id'],{'unitId':this[_0x3bc737(0x222)][_0x3bc737(0x1a4)](),'tableId':this[_0x3bc737(0x137)][_0x3bc737(0x1a4)](),'viewId':this[_0x3bc737(0x21b)],'patch':_0x2eb584});}[_0x3d6a72(0x11c)](){const _0x12cc63=_0x3d6a72;var _0x548193;return _0x5a0797['deepClone'](((_0x548193=this[_0x12cc63(0x240)]()[_0x12cc63(0xf6)][_0x12cc63(0x189)])==null?void 0x0:_0x548193[_0x12cc63(0x139)])??[]);}[_0x3d6a72(0x21d)](_0x3f29e4){const _0x5db082=_0x3d6a72;return this[_0x5db082(0xfb)]['syncExecuteCommand'](_0x3c9ed3['id'],{'unitId':this[_0x5db082(0x222)]['getId'](),'tableId':this[_0x5db082(0x137)][_0x5db082(0x1a4)](),'viewId':this[_0x5db082(0x21b)],'type':_0x53fd83[_0x5db082(0x230)],'rules':_0x3f29e4});}['addConditionalColorRule'](_0x5aba69){const _0x3587f2=_0x3d6a72;return this[_0x3587f2(0xfb)][_0x3587f2(0x196)](_0x3c9ed3['id'],{'unitId':this[_0x3587f2(0x222)][_0x3587f2(0x1a4)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'type':_0x53fd83[_0x3587f2(0x134)],'rule':_0x5aba69});}[_0x3d6a72(0x24c)](_0x59f9e7){const _0x3a4a2f=_0x3d6a72;return this[_0x3a4a2f(0xfb)][_0x3a4a2f(0x196)](_0x3c9ed3['id'],{'unitId':this[_0x3a4a2f(0x222)][_0x3a4a2f(0x1a4)](),'tableId':this['_table']['getId'](),'viewId':this[_0x3a4a2f(0x21b)],'type':_0x53fd83[_0x3a4a2f(0x1a2)],'ruleId':_0x59f9e7});}['clearConditionalColorRules'](){const _0xc54981=_0x3d6a72;return this[_0xc54981(0xfb)][_0xc54981(0x196)](_0x3c9ed3['id'],{'unitId':this[_0xc54981(0x222)][_0xc54981(0x1a4)](),'tableId':this[_0xc54981(0x137)][_0xc54981(0x1a4)](),'viewId':this[_0xc54981(0x21b)],'type':_0x53fd83[_0xc54981(0x1bb)]});}[_0x3d6a72(0x20c)](){const _0x5e4262=_0x3d6a72;return this[_0x5e4262(0x240)]()['filter']??null;}['setFilter'](_0xcc4e71){const _0x564b54=_0x3d6a72;return this[_0x564b54(0xfb)][_0x564b54(0x196)](_0x23b2fa['id'],{'unitId':this[_0x564b54(0x222)][_0x564b54(0x1a4)](),'tableId':this['_table'][_0x564b54(0x1a4)](),'viewId':this[_0x564b54(0x21b)],'filter':_0xcc4e71});}[_0x3d6a72(0x250)](){const _0x4749b4=_0x3d6a72;return this[_0x4749b4(0x240)]()['sort']??[];}[_0x3d6a72(0x1ef)](_0x4bee58){const _0x22aa24=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0x1ce03b['id'],{'unitId':this[_0x22aa24(0x222)][_0x22aa24(0x1a4)](),'tableId':this['_table']['getId'](),'viewId':this[_0x22aa24(0x21b)],'sort':_0x4bee58});}[_0x3d6a72(0x12a)](){const _0x1caf2e=_0x3d6a72;return this[_0x1caf2e(0x240)]()[_0x1caf2e(0xfe)]??[];}[_0x3d6a72(0x119)](_0x404cf4){const _0x385014=_0x3d6a72;return this[_0x385014(0xfb)][_0x385014(0x196)](_0xae323a['id'],{'unitId':this[_0x385014(0x222)]['getId'](),'tableId':this['_table'][_0x385014(0x1a4)](),'viewId':this[_0x385014(0x21b)],'group':_0x404cf4});}[_0x3d6a72(0x23e)](_0x26cf46){const _0x13961b=_0x3d6a72;var _0x41495b;return V(this[_0x13961b(0x137)][_0x13961b(0x162)]()[_0x13961b(0x209)][_0x26cf46])?((_0x41495b=this['_getView']()[_0x13961b(0x1d4)])==null?void 0x0:_0x41495b[_0x26cf46])??{}:{};}[_0x3d6a72(0x1bc)](){const _0x179055=_0x3d6a72;let _0xa21a36=this['_table']['getTable'](),_0x5ca842=this['_getView']();return(_0x5ca842[_0x179055(0x174)]??_0xa21a36['fieldOrder'])[_0x179055(0x21a)](_0xae15f9=>{var _0xf6cc57;let _0x2f78fb=_0xa21a36['fields'][_0xae15f9];return V(_0x2f78fb)&&!((_0xf6cc57=_0x5ca842['fieldSettings'])!=null&&(_0xf6cc57=_0xf6cc57[_0xae15f9])!=null&&_0xf6cc57['hidden']);})[_0x179055(0x126)](_0x22e512=>this['_injector'][_0x179055(0x16d)](B,this[_0x179055(0x222)],this['_table'],_0x22e512));}[_0x3d6a72(0x19f)](_0x251fed,_0x438742){const _0x3d7741=_0x3d6a72;return V(this['_table'][_0x3d7741(0x162)]()['fields'][_0x251fed])?this['_commandService']['syncExecuteCommand'](_0x1dcb50['id'],{'unitId':this[_0x3d7741(0x222)][_0x3d7741(0x1a4)](),'tableId':this[_0x3d7741(0x137)]['getId'](),'viewId':this[_0x3d7741(0x21b)],'fieldId':_0x251fed,'visible':_0x438742}):!0x1;}[_0x3d6a72(0xf5)](_0x13bbfc,_0x3d889a){const _0x309c09=_0x3d6a72;return V(this['_table'][_0x309c09(0x162)]()['fields'][_0x13bbfc])?this[_0x309c09(0xfb)]['syncExecuteCommand'](_0x390214['id'],{'unitId':this['_base'][_0x309c09(0x1a4)](),'tableId':this['_table'][_0x309c09(0x1a4)](),'viewId':this[_0x309c09(0x21b)],'fieldId':_0x13bbfc,'width':_0x3d889a}):!0x1;}[_0x3d6a72(0x14b)](_0x2873c6,_0x468d21){const _0x3ccd57=_0x3d6a72;let _0x483314=this[_0x3ccd57(0x137)]['getTable'](),_0x4ff19a=_0x468d21[_0x3ccd57(0x1f6)]??_0x468d21[_0x3ccd57(0x1f0)];return!V(_0x483314[_0x3ccd57(0x209)][_0x2873c6])||!_0x4ff19a||!V(_0x483314['fields'][_0x4ff19a])?!0x1:this['_commandService'][_0x3ccd57(0x196)](_0x213c3d['id'],{'unitId':this[_0x3ccd57(0x222)][_0x3ccd57(0x1a4)](),'tableId':this[_0x3ccd57(0x137)][_0x3ccd57(0x1a4)](),'viewId':this[_0x3ccd57(0x21b)],'fieldId':_0x2873c6,'target':_0x468d21});}[_0x3d6a72(0x11d)](_0xd8ecd4){const _0x30f40a=_0x3d6a72;return this[_0x30f40a(0xfb)][_0x30f40a(0x196)](_0xd1d1ce['id'],{'unitId':this[_0x30f40a(0x222)][_0x30f40a(0x1a4)](),'tableId':this[_0x30f40a(0x137)][_0x30f40a(0x1a4)](),'viewId':this[_0x30f40a(0x21b)],'target':_0xd8ecd4});}[_0x3d6a72(0x226)](){const _0x562122=_0x3d6a72;return this[_0x562122(0xfb)][_0x562122(0x196)](_0x166b9a['id'],{'unitId':this[_0x562122(0x222)][_0x562122(0x1a4)](),'tableId':this['_table'][_0x562122(0x1a4)](),'viewId':this[_0x562122(0x21b)]});}[_0x3d6a72(0x150)](){const _0x526b9e=_0x3d6a72;return this['_projectionService'][_0x526b9e(0x150)](this[_0x526b9e(0x222)][_0x526b9e(0x252)]()['getSnapshot'](),this[_0x526b9e(0x137)][_0x526b9e(0x1a4)](),this[_0x526b9e(0x21b)]);}[_0x3d6a72(0x240)](){const _0x4869cd=_0x3d6a72;let _0x25f455=this[_0x4869cd(0x137)][_0x4869cd(0x162)]()[_0x4869cd(0x1bf)][this['_viewId']];if(!_0x25f455)throw Error(_0x4869cd(0x138)+this[_0x4869cd(0x21b)]+_0x4869cd(0x199));return _0x25f455;}};X=z([R(0x4,_0xbdcdaa),R(0x5,_0x2f2b52),R(0x6,_0x2778cc)],X);let Z=class{constructor(_0x41f3b6,_0x4cf8f5,_0x22afb7,_0x3ba48c,_0x5acca6,_0x3bf895){const _0x17a3d6=_0x3d6a72;this['_base']=_0x41f3b6,this[_0x17a3d6(0x14c)]=_0x4cf8f5,this['_injector']=_0x22afb7,this[_0x17a3d6(0xfb)]=_0x3ba48c,this[_0x17a3d6(0x1d9)]=_0x5acca6,this['_projectionService']=_0x3bf895;}[_0x3d6a72(0x252)](){const _0x54b947=_0x3d6a72;return this[_0x54b947(0x222)]['getBase']();}[_0x3d6a72(0x162)](){const _0x5b448b=_0x3d6a72;return this[_0x5b448b(0x179)]();}[_0x3d6a72(0x1a4)](){return this['_tableId'];}['getPermission'](){const _0x143ed0=_0x3d6a72;return new L(this['getBase']()[_0x143ed0(0x1c3)](),_0x464330(this[_0x143ed0(0x14c)]),[],this['_commandService'],this[_0x143ed0(0x1d9)]);}[_0x3d6a72(0x1f4)](){const _0x50d032=_0x3d6a72;return _0x4afdff(this[_0x50d032(0x179)]());}[_0x3d6a72(0x1dc)](_0x1ebfcb){const _0xd0711=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0x1010aa['id'],{'unitId':this[_0xd0711(0x222)][_0xd0711(0x1a4)](),'tableId':this['_tableId'],'fieldId':_0x1ebfcb});}[_0x3d6a72(0x160)](){const _0x16cdb5=_0x3d6a72;return this[_0x16cdb5(0x179)]()[_0x16cdb5(0x192)];}[_0x3d6a72(0x111)](){const _0x10a1c6=_0x3d6a72;let _0xc2cdd1=this[_0x10a1c6(0x222)]['getBase']()[_0x10a1c6(0xf2)]();return _0x20e887(this['_getTable'](),_0xc2cdd1);}[_0x3d6a72(0x10a)](_0x95e81b){const _0x37ee10=_0x3d6a72;let _0x301b5c=_0x2ec702(this[_0x37ee10(0x222)][_0x37ee10(0x252)]()[_0x37ee10(0xf2)](),_0x95e81b,this['_tableId']);if(!_0x301b5c['valid'])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x95e81b+'\x22.\x20'+_0x3e3c4c+'\x20'+_0x301b5c[_0x37ee10(0x1d7)]);return this[_0x37ee10(0xfb)]['syncExecuteCommand'](_0x57ea0d['id'],{'unitId':this['_base'][_0x37ee10(0x1a4)](),'tableId':this['_tableId'],'name':_0x95e81b});}['search'](_0x2485f6,_0x19babd){const _0xe1afec=_0x3d6a72;let _0x183d39=this[_0xe1afec(0x222)][_0xe1afec(0x252)]()[_0xe1afec(0xf2)](),_0x23dcfe=this['_getTable']();if(_0x19babd){let _0x4c6fbd=this[_0xe1afec(0x1e8)][_0xe1afec(0x150)](_0x183d39,this[_0xe1afec(0x14c)],_0x19babd),_0x161c72=_0x23dcfe[_0xe1afec(0x1bf)][_0x19babd],_0x10b168=_0x2485f6[_0xe1afec(0x140)]??Tt(_0x23dcfe,_0x161c72,_0x4c6fbd),_0x5df829=_0xe1afec(0x100)in _0x4c6fbd&&Array[_0xe1afec(0x169)](_0x4c6fbd[_0xe1afec(0x100)])?_0x4c6fbd[_0xe1afec(0x100)]:[];return _0x575002({..._0x2485f6,'table':_0x23dcfe,'fieldIds':_0x10b168,'rows':_0x5df829});}let _0x493409=(_0x23dcfe[_0xe1afec(0x207)]?_0x23dcfe['recordOrder'][_0xe1afec(0x126)](_0x1c75cb=>_0x23dcfe[_0xe1afec(0x145)][_0x1c75cb]):Object[_0xe1afec(0x132)](_0x23dcfe[_0xe1afec(0x145)])['sort']((_0xa5296b,_0x304b24)=>_0xa5296b[_0xe1afec(0x157)][_0xe1afec(0x13f)](_0x304b24[_0xe1afec(0x157)])))[_0xe1afec(0x21a)](_0x11c9f9=>_0x11c9f9)[_0xe1afec(0x126)](_0x29c0a9=>({'recordId':_0x29c0a9['id'],'values':_0x29c0a9['values']})),_0x4ae0c6=_0x2485f6[_0xe1afec(0x140)]??_0x23dcfe[_0xe1afec(0x174)][_0xe1afec(0x21a)](_0x396078=>V(_0x23dcfe[_0xe1afec(0x209)][_0x396078]));return _0x575002({..._0x2485f6,'table':_0x23dcfe,'fieldIds':_0x4ae0c6,'rows':_0x493409});}[_0x3d6a72(0x1a0)](){return this['_getTable']()['primaryFieldId'];}['getFields'](){const _0x5cccb5=_0x3d6a72;let _0xc2030a=this[_0x5cccb5(0x179)]();return _0xc2030a[_0x5cccb5(0x174)][_0x5cccb5(0x126)](_0x2be52e=>_0xc2030a[_0x5cccb5(0x209)][_0x2be52e])[_0x5cccb5(0x21a)](V)['map'](_0x1be6bb=>this[_0x5cccb5(0x202)][_0x5cccb5(0x16d)](B,this['_base'],this,_0x1be6bb['id']));}['getFieldById'](_0x418233){const _0x541e98=_0x3d6a72;let _0x5d4807=this[_0x541e98(0x179)]()[_0x541e98(0x209)][_0x418233];return V(_0x5d4807)?this['_injector']['createInstance'](B,this['_base'],this,_0x5d4807['id']):null;}[_0x3d6a72(0x164)](_0x49372f){const _0x453f05=_0x3d6a72;let _0x18fc26=this[_0x453f05(0x179)]()[_0x453f05(0x209)],_0x973d6d=Object[_0x453f05(0x132)](_0x18fc26)[_0x453f05(0x1fc)](_0x3bd0b1=>V(_0x3bd0b1)&&_0x3bd0b1[_0x453f05(0x192)]===_0x49372f);return _0x973d6d?this['_injector'][_0x453f05(0x16d)](B,this[_0x453f05(0x222)],this,_0x973d6d['id']):null;}[_0x3d6a72(0xf3)](){const _0x213071=_0x3d6a72;let _0x52faa7=this[_0x213071(0x179)]()[_0x213071(0x223)];return this['_injector'][_0x213071(0x16d)](B,this[_0x213071(0x222)],this,_0x52faa7);}[_0x3d6a72(0xf8)](_0x1172ae,_0x3c1f03,_0xa46ca7){const _0x47ca40=_0x3d6a72;var _0x35d93c,_0x510ed8;if(!Object[_0x47ca40(0x132)](_0x4eacf9)[_0x47ca40(0x10c)](_0x2ca08a=>_0x2ca08a===_0x3c1f03))throw Error(_0x47ca40(0x12c)+String(_0x3c1f03)+'\x22.');if(_0x3c1f03===_0x4eacf9[_0x47ca40(0x177)]&&this[_0x47ca40(0x1d2)](_0x1172ae,_0xa46ca7),_0x3c1f03===_0x4eacf9[_0x47ca40(0x18d)]&&(typeof(_0xa46ca7==null||(_0x35d93c=_0xa46ca7['field'])==null||(_0x35d93c=_0x35d93c[_0x47ca40(0xf6)])==null?void 0x0:_0x35d93c[_0x47ca40(0x1e0)])!=_0x47ca40(0x215)||typeof _0xa46ca7[_0x47ca40(0x11e)]['config']['multiple']!=_0x47ca40(0x1e2)))throw Error(_0x47ca40(0x17a));let _0xe9c56={..._0xa46ca7==null?void 0x0:_0xa46ca7['field'],'id':_0x36bb57(0x6),'name':_0x1172ae,'type':_0x3c1f03,'config':(_0xa46ca7==null||(_0x510ed8=_0xa46ca7[_0x47ca40(0x11e)])==null?void 0x0:_0x510ed8[_0x47ca40(0xf6)])??{}};if(!this[_0x47ca40(0xfb)]['syncExecuteCommand'](_0x45cbde['id'],{'unitId':this['_base'][_0x47ca40(0x1a4)](),'tableId':this[_0x47ca40(0x14c)],'field':_0xe9c56,'index':_0xa46ca7==null?void 0x0:_0xa46ca7[_0x47ca40(0x110)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x1172ae+'\x22');return this[_0x47ca40(0x202)]['createInstance'](B,this['_base'],this,_0xe9c56['id']);}[_0x3d6a72(0x1d2)](_0x7c199c,_0x588f8e){const _0xb70ece=_0x3d6a72;var _0x4329a0;if(!_0x588f8e||!(_0xb70ece(0x1c8)in _0x588f8e)||!Array[_0xb70ece(0x169)](_0x588f8e[_0xb70ece(0x1c8)]))throw Error(_0xb70ece(0x17d));let _0x3dfc98=this[_0xb70ece(0xfb)][_0xb70ece(0x196)](_0x43a6fd['id'],{'unitId':this[_0xb70ece(0x222)][_0xb70ece(0x1a4)](),'tableId':this[_0xb70ece(0x14c)],'formula':String(((_0x4329a0=_0x588f8e[_0xb70ece(0x11e)])==null||(_0x4329a0=_0x4329a0['config'])==null?void 0x0:_0x4329a0[_0xb70ece(0x146)])??'')});if(!_0x3dfc98[_0xb70ece(0x1a7)])throw Error(_0x3dfc98[_0xb70ece(0x1d7)]??_0xb70ece(0x104));if(_0x588f8e['externalReferences'][_0xb70ece(0x1c6)]>0x0&&!this[_0xb70ece(0xfb)][_0xb70ece(0x196)](_0x4a1d32['id'],{'unitId':this[_0xb70ece(0x222)][_0xb70ece(0x1a4)](),'references':_0x588f8e[_0xb70ece(0x1c8)]}))throw Error(_0xb70ece(0x1b7)+_0x7c199c+'\x22');}[_0x3d6a72(0x188)](){const _0x51d73c=_0x3d6a72;return this[_0x51d73c(0x1cf)]()[_0x51d73c(0x126)](_0x1456de=>this[_0x51d73c(0x202)][_0x51d73c(0x16d)](Y,this['_base'],this,_0x1456de,this['_injector']));}[_0x3d6a72(0x178)](_0x5ab140){const _0xf53dab=_0x3d6a72;return this[_0xf53dab(0x179)]()['records'][_0x5ab140]?this['_injector'][_0xf53dab(0x16d)](Y,this['_base'],this,_0x5ab140,this[_0xf53dab(0x202)]):null;}[_0x3d6a72(0x1f2)](_0x510e7d={}){const _0xf7c49c=_0x3d6a72;let _0x16df50=this[_0xf7c49c(0x179)](),_0x5b45fa=this[_0xf7c49c(0x1cf)](_0x510e7d),_0x4d7640=Math[_0xf7c49c(0x173)](0x0,_0x510e7d[_0xf7c49c(0xe7)]??0x0),_0x3c5619=_0x510e7d['limit']==null?null:Math[_0xf7c49c(0x173)](0x0,_0x510e7d[_0xf7c49c(0x182)]),_0x4e2406=yt(_0x5b45fa['map'](_0x574c77=>_0x16df50[_0xf7c49c(0x145)][_0x574c77])['filter'](_0x64421b=>xt(_0x64421b,_0x16df50,_0x510e7d[_0xf7c49c(0x21a)])),_0x16df50,_0x510e7d[_0xf7c49c(0x221)]);return{'records':vt(_0x4e2406,_0x510e7d)[_0xf7c49c(0x126)](_0x3f120a=>this[_0xf7c49c(0x202)][_0xf7c49c(0x16d)](Y,this[_0xf7c49c(0x222)],this,_0x3f120a['id'],this['_injector'])),'total':_0x4e2406[_0xf7c49c(0x1c6)],'offset':_0x4d7640,'limit':_0x3c5619,'hasMore':_0x3c5619!=null&&_0x4d7640+_0x3c5619<_0x4e2406[_0xf7c49c(0x1c6)]};}[_0x3d6a72(0x19d)](_0xd77460,_0x56ac58='id',_0x499190){const _0x3c3fa2=_0x3d6a72;let _0x52a0c0=this[_0x3c3fa2(0x179)](),_0x5d429c=Date['now'](),_0x98204d={..._0x499190,'id':_0x36bb57(0x6),'values':H(_0x52a0c0,_0xd77460,_0x56ac58),'orderKey':(_0x499190==null?void 0x0:_0x499190['orderKey'])||''+_0x5d429c,'createdAt':(_0x499190==null?void 0x0:_0x499190[_0x3c3fa2(0x1ea)])||_0x5d429c,'updatedAt':(_0x499190==null?void 0x0:_0x499190[_0x3c3fa2(0x172)])||_0x5d429c};if(!this['_commandService'][_0x3c3fa2(0x196)](_0x3d3295['id'],{'unitId':this[_0x3c3fa2(0x222)][_0x3c3fa2(0x1a4)](),'tableId':this['_tableId'],'record':_0x98204d,'source':_0x163008[_0x3c3fa2(0x102)]}))throw Error(_0x3c3fa2(0x22a)+_0x98204d['id']+'\x22');return this[_0x3c3fa2(0x202)][_0x3c3fa2(0x16d)](Y,this[_0x3c3fa2(0x222)],this,_0x98204d['id'],this[_0x3c3fa2(0x202)]);}['addRecords'](_0x54f9e0){const _0x3e1b26=_0x3d6a72;if(!_0x54f9e0[_0x3e1b26(0x1c6)])return[];let _0x1e15a9=this[_0x3e1b26(0x179)](),_0x591bd8=Date[_0x3e1b26(0x21c)](),_0x474523=_0x54f9e0[_0x3e1b26(0x126)]((_0x45629f,_0x3a2a21)=>{const _0x2fb42d=_0x3e1b26;var _0x1a2023,_0x33601d,_0x4807d3;return{..._0x45629f[_0x2fb42d(0x107)],'id':_0x36bb57(0x6),'values':H(_0x1e15a9,_0x45629f[_0x2fb42d(0x132)],_0x45629f[_0x2fb42d(0x117)]??'id'),'orderKey':((_0x1a2023=_0x45629f[_0x2fb42d(0x107)])==null?void 0x0:_0x1a2023[_0x2fb42d(0x157)])||''+(_0x591bd8+_0x3a2a21),'createdAt':((_0x33601d=_0x45629f[_0x2fb42d(0x107)])==null?void 0x0:_0x33601d['createdAt'])||_0x591bd8,'updatedAt':((_0x4807d3=_0x45629f[_0x2fb42d(0x107)])==null?void 0x0:_0x4807d3[_0x2fb42d(0x172)])||_0x591bd8};});if(!this[_0x3e1b26(0xfb)][_0x3e1b26(0x196)](_0x5c549e['id'],{'unitId':this[_0x3e1b26(0x222)][_0x3e1b26(0x1a4)](),'tableId':this['_tableId'],'records':_0x474523,'source':_0x163008[_0x3e1b26(0x102)]}))throw Error(_0x3e1b26(0x131));return _0x474523[_0x3e1b26(0x126)](_0x59f241=>this[_0x3e1b26(0x202)][_0x3e1b26(0x16d)](Y,this['_base'],this,_0x59f241['id'],this[_0x3e1b26(0x202)]));}[_0x3d6a72(0x19b)](_0x21d61c){const _0x9c7676=_0x3d6a72;return!_0x21d61c[_0x9c7676(0x1c6)]||this[_0x9c7676(0xfb)][_0x9c7676(0x196)](_0x3b6e46['id'],{'unitId':this['_base'][_0x9c7676(0x1a4)](),'tableId':this[_0x9c7676(0x14c)],'recordIds':_0x21d61c,'source':_0x163008[_0x9c7676(0x102)]});}[_0x3d6a72(0x16e)](_0x292e3f,_0x1881ab,_0x5200c7=0x1,_0x8bebf4=0x1){const _0x536863=_0x3d6a72;return this['_injector'][_0x536863(0x16d)](K,this[_0x536863(0x222)],this,{'startRow':_0x292e3f,'endRow':_0x292e3f+_0x5200c7-0x1,'startColumn':_0x1881ab,'endColumn':_0x1881ab+_0x8bebf4-0x1},this[_0x536863(0x202)]);}[_0x3d6a72(0x236)](){const _0x3d09c9=_0x3d6a72;var _0x174982;let _0x54cf48=_0x326146(this[_0x3d09c9(0x179)]()),_0x2f0978=((_0x174982=_0x54cf48['recordOrder'])==null?void 0x0:_0x174982[_0x3d09c9(0x1c6)])??0x0,_0x30e0bd=_0x54cf48[_0x3d09c9(0x174)][_0x3d09c9(0x21a)](_0x15d558=>V(_0x54cf48[_0x3d09c9(0x209)][_0x15d558]))[_0x3d09c9(0x1c6)];return this[_0x3d09c9(0x16e)](0x0,0x0,Math['max'](_0x2f0978,0x1),Math['max'](_0x30e0bd,0x1));}[_0x3d6a72(0x1e5)](){const _0x1515d3=_0x3d6a72;let _0x415c39=this[_0x1515d3(0x179)]();return _0x415c39['viewOrder'][_0x1515d3(0x21a)](_0x5ac903=>_0x415c39[_0x1515d3(0x1bf)][_0x5ac903])[_0x1515d3(0x126)](_0x4430f4=>this['_injector'][_0x1515d3(0x16d)](X,this[_0x1515d3(0x222)],this,_0x4430f4,this[_0x1515d3(0x202)]));}[_0x3d6a72(0x244)](_0x2b6a0f){const _0x52e55c=_0x3d6a72;return this[_0x52e55c(0x179)]()[_0x52e55c(0x1bf)][_0x2b6a0f]?this[_0x52e55c(0x202)][_0x52e55c(0x16d)](X,this[_0x52e55c(0x222)],this,_0x2b6a0f,this[_0x52e55c(0x202)]):null;}[_0x3d6a72(0x18e)](_0x2e988a){const _0x3bd7f6=_0x3d6a72;let _0x123119=this[_0x3bd7f6(0x179)](),_0x1c9b72=Object[_0x3bd7f6(0x132)](_0x123119['views'])[_0x3bd7f6(0x1fc)](_0x10b668=>_0x10b668['name']===_0x2e988a);return _0x1c9b72?this['_injector'][_0x3bd7f6(0x16d)](X,this[_0x3bd7f6(0x222)],this,_0x1c9b72['id'],this[_0x3bd7f6(0x202)]):null;}['createView'](_0x2da099,_0x25a394,_0x15d52f){const _0x218322=_0x3d6a72;var _0x20db3b,_0x3f9209,_0x4ae067,_0x22d88b;let _0x21c578=this['_getTable'](),_0x430e27=(_0x15d52f==null||(_0x20db3b=_0x15d52f[_0x218322(0x24e)])==null?void 0x0:_0x20db3b[_0x218322(0x174)])??_0x21c578[_0x218322(0x174)],_0x360d38=[_0x3a2092,..._0x430e27[_0x218322(0x21a)](_0x5117f0=>V(_0x21c578[_0x218322(0x209)][_0x5117f0]))],_0x85726a={..._0x15d52f==null?void 0x0:_0x15d52f['view'],'id':_0x36bb57(0x6),'name':_0x2da099,'type':_0x25a394,'tableId':this[_0x218322(0x14c)],'config':(_0x15d52f==null||(_0x3f9209=_0x15d52f[_0x218322(0x24e)])==null?void 0x0:_0x3f9209[_0x218322(0xf6)])??{},'fieldOrder':_0x360d38,'fieldSettings':{..._0x15d52f==null||(_0x4ae067=_0x15d52f[_0x218322(0x24e)])==null?void 0x0:_0x4ae067[_0x218322(0x1d4)],[_0x3a2092]:{..._0x15d52f==null||(_0x22d88b=_0x15d52f[_0x218322(0x24e)])==null||(_0x22d88b=_0x22d88b[_0x218322(0x1d4)])==null?void 0x0:_0x22d88b[_0x3a2092],'hidden':!0x0}}};if(!this['_commandService'][_0x218322(0x196)](_0x1a4d71['id'],{'unitId':this[_0x218322(0x222)][_0x218322(0x1a4)](),'tableId':this[_0x218322(0x14c)],'view':_0x85726a,'index':_0x15d52f==null?void 0x0:_0x15d52f[_0x218322(0x110)]}))throw Error(_0x218322(0x133)+_0x2da099+'\x22');return this[_0x218322(0x202)][_0x218322(0x16d)](X,this[_0x218322(0x222)],this,_0x85726a['id'],this[_0x218322(0x202)]);}[_0x3d6a72(0x113)](){const _0x5cdb44=_0x3d6a72;let _0x5b1daa=this[_0x5cdb44(0x179)](),_0x1d5a56=_0x5b1daa[_0x5cdb44(0x174)][_0x5cdb44(0x21a)](_0xdf3c1d=>V(_0x5b1daa[_0x5cdb44(0x209)][_0xdf3c1d])),_0x4f2188=_0x5b1daa[_0x5cdb44(0x143)][_0x5cdb44(0x21a)](_0x33eed8=>_0x5b1daa[_0x5cdb44(0x1bf)][_0x33eed8]);return{'id':_0x5b1daa['id'],'name':_0x5b1daa['name'],'formulaName':this[_0x5cdb44(0x111)](),'primaryFieldId':_0x5b1daa[_0x5cdb44(0x223)],'fieldIds':_0x1d5a56,'viewIds':_0x4f2188,'recordCount':this[_0x5cdb44(0x1cf)]()['length'],'fields':_0x1d5a56[_0x5cdb44(0x126)](_0x17c464=>{const _0x19f1de=_0x5cdb44;let _0x13ef97=_0x5b1daa[_0x19f1de(0x209)][_0x17c464];return{'id':_0x13ef97['id'],'name':_0x13ef97[_0x19f1de(0x192)],'type':_0x13ef97[_0x19f1de(0x1c4)],'config':_0x13ef97[_0x19f1de(0xf6)],'readonly':_0x13ef97['readonly'],'description':_0x13ef97[_0x19f1de(0x15e)]};}),'views':_0x4f2188[_0x5cdb44(0x126)](_0x13835f=>{const _0x1829f2=_0x5cdb44;let _0x5986ac=_0x5b1daa[_0x1829f2(0x1bf)][_0x13835f];return{'id':_0x5986ac['id'],'name':_0x5986ac['name'],'type':_0x5986ac[_0x1829f2(0x1c4)]};})};}[_0x3d6a72(0x179)](){const _0xae5f6e=_0x3d6a72;let _0x2709f6=this[_0xae5f6e(0x222)][_0xae5f6e(0x252)]()[_0xae5f6e(0xf2)]()[_0xae5f6e(0x181)][this[_0xae5f6e(0x14c)]];if(!_0x2709f6)throw Error(_0xae5f6e(0x142)+this['_tableId']+_0xae5f6e(0x199));return _0x2709f6;}[_0x3d6a72(0x1cf)](_0x4dbbd9={}){const _0x17a017=_0x3d6a72;let _0xacf942=this[_0x17a017(0x222)]['getBase']()['getSnapshot'](),_0x19915c=this['_getTable']();if(_0x4dbbd9[_0x17a017(0x1b5)]){let _0x458aec=this[_0x17a017(0x1e8)][_0x17a017(0x150)](_0xacf942,this['_tableId'],_0x4dbbd9['viewId']);if(_0x17a017(0x100)in _0x458aec&&Array['isArray'](_0x458aec[_0x17a017(0x100)]))return _0x458aec['rows']['map'](_0x215e24=>_0x215e24[_0x17a017(0x158)]);}return(_0x19915c[_0x17a017(0x207)]?_0x19915c[_0x17a017(0x207)][_0x17a017(0x126)](_0x3ab185=>_0x19915c['records'][_0x3ab185]):Object[_0x17a017(0x132)](_0x19915c['records'])[_0x17a017(0x221)]((_0x2caa68,_0x52efe2)=>_0x2caa68[_0x17a017(0x157)][_0x17a017(0x13f)](_0x52efe2[_0x17a017(0x157)])))[_0x17a017(0x21a)](_0x9ee706=>_0x9ee706)['map'](_0x2f43a9=>_0x2f43a9['id']);}};Z=z([R(0x3,_0xbdcdaa),R(0x4,_0x2f2b52),R(0x5,_0x2778cc)],Z);function vt(_0x1b7a3c,_0xd15281){const _0x37cd73=_0x3d6a72;let _0x4473bf=Math['max'](0x0,_0xd15281['offset']??0x0);return _0xd15281[_0x37cd73(0x182)]==null?_0x1b7a3c[_0x37cd73(0x15b)](_0x4473bf):_0x1b7a3c['slice'](_0x4473bf,_0x4473bf+Math['max'](0x0,_0xd15281[_0x37cd73(0x182)]));}function yt(_0x67605e,_0x566acc,_0x321c21=[]){const _0x1712bd=_0x3d6a72;return _0x321c21[_0x1712bd(0x1c6)]?[..._0x67605e][_0x1712bd(0x221)]((_0x1241bc,_0x47ed04)=>{const _0x3d8fad=_0x1712bd;for(let _0x4a8803 of _0x321c21){var _0x1586a9;let _0x56c742=_0x4a8803['direction']===_0x40554e[_0x3d8fad(0x23c)]?-0x1:0x1,_0x53f33a=bt(_0x1241bc['values'][_0x4a8803[_0x3d8fad(0x238)]],_0x47ed04[_0x3d8fad(0x132)][_0x4a8803[_0x3d8fad(0x238)]],(_0x1586a9=_0x566acc[_0x3d8fad(0x209)][_0x4a8803[_0x3d8fad(0x238)]])==null?void 0x0:_0x1586a9['type']);if(_0x53f33a!==0x0)return _0x53f33a*_0x56c742;}return String(_0x1241bc[_0x3d8fad(0x157)]??_0x1241bc['id'])[_0x3d8fad(0x13f)](String(_0x47ed04['orderKey']??_0x47ed04['id']));}):_0x67605e;}function bt(_0x5906a4,_0x31214c,_0x1594b5){const _0x95a376=_0x3d6a72;return _0x5906a4==null&&_0x31214c==null?0x0:_0x5906a4==null?-0x1:_0x31214c==null?0x1:typeof _0x5906a4==_0x95a376(0x22c)&&typeof _0x31214c==_0x95a376(0x22c)?_0x5906a4-_0x31214c:_0x1594b5===_0x4eacf9[_0x95a376(0x155)]?Number(_0x5906a4)-Number(_0x31214c):String(_0x5906a4)[_0x95a376(0x13f)](String(_0x31214c));}function xt(_0x3b17d5,_0x344dd9,_0x2e3e80){const _0x4e5b65=_0x3d6a72;var _0xda7840;if(!_0x2e3e80||!((_0xda7840=_0x2e3e80[_0x4e5b65(0x1cd)])!=null&&_0xda7840[_0x4e5b65(0x1c6)]))return!0x0;let {conjunction:_0x46ad11=_0x125131['OR'],conditions:_0x51573b}=_0x2e3e80;return _0x46ad11===_0x125131[_0x4e5b65(0x11a)]&&_0x51573b[_0x4e5b65(0x1c6)]>0x1?_0x51573b[_0x4e5b65(0xfc)](_0x135306=>St(_0x3b17d5,_0x344dd9,_0x135306)):_0x51573b['some'](_0x3cdab3=>St(_0x3b17d5,_0x344dd9,_0x3cdab3));}function St(_0x26fad4,_0x5b3261,_0x76eb25){const _0x502ac9=_0x3d6a72;let _0x9a2006=_0x26fad4['values'][_0x76eb25['fieldId']],_0x578ff1=_0x5b3261['fields'][_0x76eb25[_0x502ac9(0x238)]];if(Ct(_0x76eb25)){let _0x29fa85=wt(_0x76eb25)[_0x502ac9(0x1d8)](String(_0x9a2006??''));return _0x76eb25[_0x502ac9(0x15a)]===_0x502ac9(0x1e1)?_0x29fa85:!_0x29fa85;}return!_0x578ff1||_0x37c3b6(_0x9a2006,_0x76eb25['operator'],_0x76eb25['value'],_0x578ff1);}function Ct(_0x5a170d){const _0x5e977a=_0x3d6a72;return _0x5a170d[_0x5e977a(0x15a)]===_0x5e977a(0x1e1)||_0x5a170d['operator']===_0x5e977a(0x246);}function wt(_0xe494bb){const _0x3862ca=_0x3d6a72;let _0x389e57=String(_0xe494bb[_0x3862ca(0x20a)]??'');if(_0x389e57[_0x3862ca(0x1c6)]>0x200)throw Error(_0x3862ca(0x10d));try{return new RegExp(_0x389e57,_0xe494bb[_0x3862ca(0x241)]?void 0x0:'i');}catch(_0x13d0d1){throw Error(_0x3862ca(0x167)+_0x389e57+'.\x20'+(_0x13d0d1 instanceof Error?_0x13d0d1[_0x3862ca(0x23a)]:String(_0x13d0d1)));}}function Tt(_0x5489a2,_0x182722,_0x67585){const _0x423a8b=_0x3d6a72;if(_0x67585['type']!==_0x423a8b(0xea)&&_0x67585[_0x423a8b(0x1c4)]!==_0x423a8b(0xeb)){var _0x2f4ba1;if(_0x67585[_0x423a8b(0x1c4)]===_0x4ecc5e[_0x423a8b(0x1a1)]){var _0x103a76;let _0x3a16dd=[((_0x103a76=_0x67585['fields'])==null||(_0x103a76=_0x103a76[0x0])==null?void 0x0:_0x103a76['id'])??_0x5489a2[_0x423a8b(0x223)],..._0x67585[_0x423a8b(0x211)]??[]];return Array[_0x423a8b(0x151)](new Set(_0x3a16dd[_0x423a8b(0x21a)](_0x5eb88f=>!!_0x5489a2[_0x423a8b(0x209)][_0x5eb88f])));}if((_0x2f4ba1=_0x67585[_0x423a8b(0x209)])!=null&&_0x2f4ba1[_0x423a8b(0x1c6)])return _0x67585[_0x423a8b(0x209)][_0x423a8b(0x126)](_0x50afa8=>_0x50afa8['id'])[_0x423a8b(0x21a)](_0x2c95c2=>{const _0x41fe97=_0x423a8b;var _0x1fd8ec;return!(!_0x5489a2[_0x41fe97(0x209)][_0x2c95c2]||_0x182722!=null&&(_0x1fd8ec=_0x182722[_0x41fe97(0x1d4)])!=null&&(_0x1fd8ec=_0x1fd8ec[_0x2c95c2])!=null&&_0x1fd8ec[_0x41fe97(0x12e)]);});}return _0x5489a2[_0x423a8b(0x174)][_0x423a8b(0x21a)](_0x52bf2a=>{const _0x17fc81=_0x423a8b;var _0x19cb7f;return!(!_0x5489a2[_0x17fc81(0x209)][_0x52bf2a]||_0x182722!=null&&(_0x19cb7f=_0x182722['fieldSettings'])!=null&&(_0x19cb7f=_0x19cb7f[_0x52bf2a])!=null&&_0x19cb7f[_0x17fc81(0x12e)]);});}let Q=class extends _0x4023b6[_0x3d6a72(0xe8)]{constructor(_0x532411,_0x5afb23,_0x4e0659,_0x16a20c,_0x20d878){const _0x251835=_0x3d6a72;super(),this['_base']=_0x532411,this[_0x251835(0x202)]=_0x5afb23,this[_0x251835(0x156)]=_0x4e0659,this[_0x251835(0xfb)]=_0x16a20c,this['_permissionService']=_0x20d878;}[_0x3d6a72(0x252)](){const _0x3bcc14=_0x3d6a72;return this[_0x3bcc14(0x222)];}[_0x3d6a72(0x1a4)](){const _0x1a78cb=_0x3d6a72;return this[_0x1a78cb(0x222)][_0x1a78cb(0x1c3)]();}[_0x3d6a72(0x122)](){const _0x18c4e8=_0x3d6a72;return new at(this['getId'](),this['_commandService'],this[_0x18c4e8(0x1d9)]);}['save'](){const _0x145c59=_0x3d6a72;return this[_0x145c59(0x156)][_0x145c59(0x1e3)](this[_0x145c59(0x1a4)]())??_0x5a0797[_0x145c59(0x166)](this['_base'][_0x145c59(0xf2)]());}[_0x3d6a72(0x160)](){const _0x109ba2=_0x3d6a72;return this[_0x109ba2(0x222)]['getSnapshot']()['name'];}[_0x3d6a72(0x10a)](_0x40ba3a){const _0x3b9cc1=_0x3d6a72;this[_0x3b9cc1(0xfb)][_0x3b9cc1(0x196)](_0x2773d9['id'],{'unitId':this[_0x3b9cc1(0x1a4)](),'name':_0x40ba3a});}['getTables'](){const _0x1614bc=_0x3d6a72;let _0x14140f=this[_0x1614bc(0x222)][_0x1614bc(0xf2)]();return _0x14140f[_0x1614bc(0x112)][_0x1614bc(0x126)](_0x84e24d=>_0x14140f['tables'][_0x84e24d])['filter'](_0x4b47b1=>_0x4b47b1)['map'](_0x323484=>this[_0x1614bc(0x202)][_0x1614bc(0x16d)](Z,this,_0x323484['id'],this[_0x1614bc(0x202)]));}[_0x3d6a72(0x13e)](_0x1dfac2){const _0x2eb4df=_0x3d6a72;let _0x482c65=this[_0x2eb4df(0x222)][_0x2eb4df(0xf2)]()[_0x2eb4df(0x181)][_0x1dfac2];return _0x482c65?this[_0x2eb4df(0x202)][_0x2eb4df(0x16d)](Z,this,_0x482c65['id'],this[_0x2eb4df(0x202)]):null;}[_0x3d6a72(0x232)](_0x200d32){const _0x4683e5=_0x3d6a72;let _0xc00357=this[_0x4683e5(0x222)][_0x4683e5(0xf2)](),_0x3e7d83=Object[_0x4683e5(0x132)](_0xc00357['tables'])[_0x4683e5(0x1fc)](_0x55863c=>_0x55863c[_0x4683e5(0x192)]===_0x200d32);return _0x3e7d83?this[_0x4683e5(0x202)][_0x4683e5(0x16d)](Z,this,_0x3e7d83['id'],this['_injector']):null;}[_0x3d6a72(0x1f9)](_0x103ac3,_0x20bd2a){const _0x5d9c6e=_0x3d6a72;let _0x2a79c9=_0x23812b({'id':_0x36bb57(),'name':_0x103ac3,..._0x20bd2a==null?void 0x0:_0x20bd2a[_0x5d9c6e(0x208)],'primaryFieldName':_0x20bd2a==null?void 0x0:_0x20bd2a['primaryFieldName']}),_0x4c43a9=_0x5a0797[_0x5d9c6e(0x16f)](_0x2a79c9,(_0x20bd2a==null?void 0x0:_0x20bd2a['table'])??{}),_0xc47a50=_0x2ec702(this[_0x5d9c6e(0x222)][_0x5d9c6e(0xf2)](),_0x4c43a9[_0x5d9c6e(0x192)]);if(!_0xc47a50[_0x5d9c6e(0x1a7)])throw Error(_0x5d9c6e(0x1df)+_0x4c43a9['name']+_0x5d9c6e(0x1fb)+_0x3e3c4c+'\x20'+_0xc47a50[_0x5d9c6e(0x1d7)]);if(!this['_commandService'][_0x5d9c6e(0x196)](_0x2cacea['id'],{'unitId':this['_base'][_0x5d9c6e(0x1c3)](),'table':_0x4c43a9,'index':_0x20bd2a==null?void 0x0:_0x20bd2a['index']}))throw Error(_0x5d9c6e(0x171)+_0x103ac3+'\x22.');return this[_0x5d9c6e(0x202)][_0x5d9c6e(0x16d)](Z,this,_0x4c43a9['id'],this[_0x5d9c6e(0x202)]);}[_0x3d6a72(0xe6)](_0x1064ad){const _0x3f3afd=_0x3d6a72;let _0x2cbd48=typeof _0x1064ad==_0x3f3afd(0x215)?_0x1064ad:_0x1064ad[_0x3f3afd(0x1a4)]();if(!this['_commandService'][_0x3f3afd(0x196)](_0x285f4f['id'],{'unitId':this[_0x3f3afd(0x222)]['getUnitId'](),'tableId':_0x2cbd48}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x2cbd48+'\x22.');return!0x0;}[_0x3d6a72(0x103)](_0x451907,_0x402c3b){const _0x481c59=_0x3d6a72;let _0x436ee8=this[_0x481c59(0x222)][_0x481c59(0xf2)](),_0x3d0e83=typeof _0x451907=='string'?_0x451907:_0x451907[_0x481c59(0x1a4)](),_0x23e51a=_0x436ee8[_0x481c59(0x181)][_0x3d0e83];if(!_0x23e51a)throw Error(_0x481c59(0x12f)+_0x3d0e83+'\x22\x20does\x20not\x20exist.');let _0x87c22a=_0x436ee8[_0x481c59(0x112)][_0x481c59(0x243)](_0x3d0e83)+0x1,_0x5a6cf3=_0x36bb57(),_0x5aa792=_0xfc4203(_0x23e51a,{'id':_0x5a6cf3,'name':_0x3c9d46(_0x436ee8,_0x23e51a['name']+_0x481c59(0x1a5)),'includeRecords':(_0x402c3b==null?void 0x0:_0x402c3b[_0x481c59(0x1cb)])??!0x1,'regenerateViewIds':(_0x402c3b==null?void 0x0:_0x402c3b[_0x481c59(0x1ff)])??!0x1});if(!this['_commandService'][_0x481c59(0x196)](_0x2cacea['id'],{'unitId':this[_0x481c59(0x222)][_0x481c59(0x1c3)](),'table':_0x5aa792,'index':_0x87c22a}))throw Error(_0x481c59(0x1db)+_0x3d0e83+'\x22.');return this[_0x481c59(0x202)][_0x481c59(0x16d)](Z,this,_0x5aa792['id'],this['_injector']);}[_0x3d6a72(0x113)](){const _0x43e84b=_0x3d6a72;let _0x2237bf=this['_base']['getSnapshot']();return{'id':_0x2237bf['id'],'name':_0x2237bf[_0x43e84b(0x192)],'tables':this[_0x43e84b(0xee)]()['map'](_0x29e67b=>_0x29e67b[_0x43e84b(0x113)]())};}};Q=z([R(0x1,_0x19109f(_0x46f364)),R(0x2,_0x440b91),R(0x3,_0xbdcdaa),R(0x4,_0x2f2b52)],Q);var Et=class extends _0x4e8405{[_0x3d6a72(0x20b)](){const _0x46a430=_0x3d6a72;this['_initBaseBeforeEvents'](),this[_0x46a430(0xff)]();}[_0x3d6a72(0x1ac)](_0x2f7e9c={},_0x453fd4){const _0x496dfd=_0x3d6a72;let _0x18e18f=this[_0x496dfd(0x16a)][_0x496dfd(0x1fe)](_0x5586fc['UNIVER_BASE'],_0x2f7e9c,_0x453fd4);return this[_0x496dfd(0x202)]['createInstance'](Q,_0x18e18f);}[_0x3d6a72(0x1cc)](){const _0x572a9b=_0x3d6a72;let _0x194055=this[_0x572a9b(0x16a)]['getCurrentUnitOfType'](_0x5586fc[_0x572a9b(0x205)]);return _0x194055?this['_injector'][_0x572a9b(0x16d)](Q,_0x194055):null;}[_0x3d6a72(0x252)](_0x148e35){const _0xa57797=_0x3d6a72;let _0x514433=this['_univerInstanceService'][_0xa57797(0x1f3)](_0x148e35,_0x5586fc[_0xa57797(0x205)]);return _0x514433?this['_injector'][_0xa57797(0x16d)](Q,_0x514433):null;}['getBases'](){const _0x2efc8a=_0x3d6a72;return this[_0x2efc8a(0x16a)]['getAllUnitsForType'](_0x5586fc[_0x2efc8a(0x205)])[_0x2efc8a(0x126)](_0x1a4473=>this[_0x2efc8a(0x202)]['createInstance'](Q,_0x1a4473));}[_0x3d6a72(0xff)](){const _0x1af152=_0x3d6a72;this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)]['BaseHierarchyChanged'],()=>this['_commandService'][_0x1af152(0x1f1)]((_0x584376,_0x12c12d)=>{const _0x28d6d0=_0x1af152;var _0x216f94;if(!$(_0x584376,_0x415ce8))return;let _0x271315=_0x584376[_0x28d6d0(0x206)];if(!((_0x216f94=_0x271315[_0x28d6d0(0x1dd)])!=null&&_0x216f94[_0x28d6d0(0x1c6)]))return;let _0x1c5d6c=this['getBase'](_0x271315[_0x28d6d0(0xf1)]),_0x5bd054=_0x1c5d6c==null?void 0x0:_0x1c5d6c[_0x28d6d0(0x13e)](_0x271315[_0x28d6d0(0x1dd)][0x0][_0x28d6d0(0x13a)]);if(!_0x1c5d6c||!_0x5bd054)return;let _0x2e8881={'base':_0x1c5d6c,'table':_0x5bd054,'changes':_0x271315[_0x28d6d0(0x1dd)],'source':_0x12c12d!=null&&_0x12c12d[_0x28d6d0(0x1ce)]?_0x163008[_0x28d6d0(0x218)]:_0x271315[_0x28d6d0(0x121)]??_0x163008['UI']};this[_0x28d6d0(0x237)](this['Event'][_0x28d6d0(0x1a9)],_0x2e8881);}))),this[_0x1af152(0x203)](this['registerEventHandler'](this['Event'][_0x1af152(0x1b0)],()=>this['_commandService'][_0x1af152(0x1f1)](_0xbf7667=>{const _0x3c10b3=_0x1af152;if(_0xbf7667['id']!==_0x2cacea['id'])return;let {unitId:_0x2304d8,table:_0x159a1a,index:_0x2df87d}=_0xbf7667['params'],_0x5f12fe=this[_0x3c10b3(0x252)](_0x2304d8);if(!_0x5f12fe)return;let _0x5d6378={'base':_0x5f12fe,'table':_0x159a1a,'index':_0x2df87d};this[_0x3c10b3(0x237)](this['Event'][_0x3c10b3(0x1b0)],_0x5d6378);}))),this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)][_0x1af152(0x176)],()=>this['_commandService'][_0x1af152(0x1f1)](_0x2d32a1=>{const _0x54759c=_0x1af152;if(_0x2d32a1['id']!==_0x45cbde['id'])return;let {unitId:_0x18785e,tableId:_0x57eed8,field:_0x322e38,index:_0x490de0,viewIndexes:_0x5eafdb}=_0x2d32a1[_0x54759c(0x206)],_0x7b62e3=this[_0x54759c(0x252)](_0x18785e);if(!_0x7b62e3)return;let _0x413662=_0x7b62e3[_0x54759c(0x13e)](_0x57eed8);if(!_0x413662)return;let _0xece484={'base':_0x7b62e3,'table':_0x413662,'field':_0x322e38,'index':_0x490de0,'viewIndexes':_0x5eafdb};this['fireEvent'](this[_0x54759c(0x220)][_0x54759c(0x176)],_0xece484);}))),this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)][_0x1af152(0x193)],()=>this[_0x1af152(0xfb)]['onCommandExecuted'](_0x34f9f6=>{const _0x3e035a=_0x1af152;if(_0x34f9f6['id']!==_0x3d3295['id']&&_0x34f9f6['id']!==_0x5c549e['id'])return;let _0x12cbb0=_0x34f9f6[_0x3e035a(0x206)],{unitId:_0x3d40ba,tableId:_0x32b78e}=_0x12cbb0,_0x45cc37=_0x12cbb0[_0x3e035a(0x145)]??[_0x12cbb0[_0x3e035a(0x107)]],_0x29b643=this[_0x3e035a(0x252)](_0x3d40ba);if(!_0x29b643)return;let _0x40854c=_0x29b643[_0x3e035a(0x13e)](_0x32b78e);if(!_0x40854c)return;let _0x2b287c={'base':_0x29b643,'table':_0x40854c,'records':_0x45cc37};this[_0x3e035a(0x237)](this[_0x3e035a(0x220)][_0x3e035a(0x193)],_0x2b287c);}))),this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)][_0x1af152(0x13c)],()=>this[_0x1af152(0xfb)][_0x1af152(0x1f1)](_0x11206c=>{const _0x2cb080=_0x1af152;if(_0x11206c['id']!==_0x1a4d71['id'])return;let {unitId:_0x266748,tableId:_0x3ee79d,view:_0x594e36,index:_0x473d30}=_0x11206c[_0x2cb080(0x206)],_0x4ac66b=this['getBase'](_0x266748);if(!_0x4ac66b)return;let _0x1b2217=_0x4ac66b[_0x2cb080(0x13e)](_0x3ee79d);if(!_0x1b2217)return;let _0x5268d8={'base':_0x4ac66b,'table':_0x1b2217,'view':_0x594e36,'index':_0x473d30};this[_0x2cb080(0x237)](this[_0x2cb080(0x220)][_0x2cb080(0x13c)],_0x5268d8);}))),this['disposeWithMe'](this[_0x1af152(0x1c2)](this['Event'][_0x1af152(0x12d)],()=>this[_0x1af152(0xfb)][_0x1af152(0x1f1)](_0x5ead59=>{const _0x3b244f=_0x1af152;if(_0x5ead59['id']!==_0x2a154d['id'])return;let {unitId:_0x57af50,tableId:_0x4d693c,recordId:_0x5e5a4f,fieldId:_0x44a780,value:_0x3de6d9}=_0x5ead59[_0x3b244f(0x206)],_0x3a7d5a=this[_0x3b244f(0x252)](_0x57af50);if(!_0x3a7d5a)return;let _0x2f411e=_0x3a7d5a['getTableById'](_0x4d693c);if(!_0x2f411e)return;let _0x3339d4=_0x2f411e[_0x3b244f(0x168)](_0x44a780);if(!_0x3339d4)return;let _0x29664c=_0x2f411e['getRecordById'](_0x5e5a4f);if(!_0x29664c)return;let _0x254290={'base':_0x3a7d5a,'table':_0x2f411e,'field':_0x3339d4,'record':_0x29664c,'value':_0x3de6d9};this[_0x3b244f(0x237)](this[_0x3b244f(0x220)]['BaseTableCellValueChanged'],_0x254290);})));}[_0x3d6a72(0x1e7)](){const _0x579221=_0x3d6a72;this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x170)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x5a424b=>{const _0x1c14f8=_0x579221;if($(_0x5a424b,_0x8c2f3f)){let {unitId:_0x11ac0b,tableId:_0x3c4f0d,patches:_0x324ea6,source:_0x1739c4=_0x163008['UI']}=_0x5a424b[_0x1c14f8(0x206)],_0x2c1b3a=this[_0x1c14f8(0x247)](_0x11ac0b,_0x3c4f0d);if(!_0x2c1b3a)return;this[_0x1c14f8(0x1b8)](_0x2c1b3a[_0x1c14f8(0x229)],_0x2c1b3a[_0x1c14f8(0x208)],_0x135494(_0x2c1b3a[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x324ea6),_0x1739c4);return;}if($(_0x5a424b,_0x2081b9)){let {unitId:_0x27f7f2,tableId:_0x3c003e,patches:_0x5c5b3e,source:_0x25d674=_0x163008['UI']}=_0x5a424b[_0x1c14f8(0x206)],_0x5e3f03=this[_0x1c14f8(0x247)](_0x27f7f2,_0x3c003e);if(!_0x5e3f03)return;let _0x8b112c=_0x5e3f03['table'][_0x1c14f8(0x162)]();this[_0x1c14f8(0x1b8)](_0x5e3f03[_0x1c14f8(0x229)],_0x5e3f03[_0x1c14f8(0x208)],_0x135494(_0x8b112c,_0x474022(_0x8b112c,_0x5c5b3e)),_0x25d674);return;}if($(_0x5a424b,_0x3d3295)){let _0x1f7201=_0x5a424b[_0x1c14f8(0x206)],_0x4b0bed=this[_0x1c14f8(0x247)](_0x1f7201['unitId'],_0x1f7201['tableId']);if(!_0x4b0bed)return;this['_fireBeforeHierarchyChange'](_0x4b0bed[_0x1c14f8(0x229)],_0x4b0bed['table'],_0x1e45f5(_0x4b0bed[_0x1c14f8(0x208)]['getTable'](),[_0x1f7201[_0x1c14f8(0x107)]]),_0x1f7201[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x5c549e)){let _0x175dc7=_0x5a424b['params'],_0x46e4fc=this[_0x1c14f8(0x247)](_0x175dc7[_0x1c14f8(0xf1)],_0x175dc7[_0x1c14f8(0x13a)]);if(!_0x46e4fc)return;this[_0x1c14f8(0x1b8)](_0x46e4fc[_0x1c14f8(0x229)],_0x46e4fc[_0x1c14f8(0x208)],_0x1e45f5(_0x46e4fc[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x175dc7[_0x1c14f8(0x145)]),_0x175dc7[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x32aeff)){let _0x3f556f=_0x5a424b[_0x1c14f8(0x206)],_0x2e30ba=this[_0x1c14f8(0x247)](_0x3f556f[_0x1c14f8(0xf1)],_0x3f556f['tableId']);if(!_0x2e30ba)return;this[_0x1c14f8(0x1b8)](_0x2e30ba[_0x1c14f8(0x229)],_0x2e30ba[_0x1c14f8(0x208)],_0x1e45f5(_0x2e30ba[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),[_0x3f556f[_0x1c14f8(0x107)]]),_0x3f556f[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x150f6)){let _0x1b1de1=_0x5a424b[_0x1c14f8(0x206)],_0x40174f=this['_getHierarchyEventContext'](_0x1b1de1['unitId'],_0x1b1de1[_0x1c14f8(0x13a)]);if(!_0x40174f)return;let _0x35eee1=_0x40174f[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x21ade7=_0x1b1de1[_0x1c14f8(0x238)]??_0x4afdff(_0x35eee1),_0x25da79=_0x54315c(_0x35eee1,_0x21ade7)[_0x1c14f8(0x197)][_0x1c14f8(0x17f)](_0x1b1de1[_0x1c14f8(0x158)])??null;this[_0x1c14f8(0x1b8)](_0x40174f[_0x1c14f8(0x229)],_0x40174f['table'],[{'tableId':_0x1b1de1['tableId'],'fieldId':_0x21ade7,'recordId':_0x1b1de1['recordId'],'oldParentRecordId':_0x25da79,'parentRecordId':_0x1b1de1[_0x1c14f8(0x20f)]}],_0x1b1de1[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x139a37)){let _0x4882c0=_0x5a424b['params'],_0x48857d=this[_0x1c14f8(0x247)](_0x4882c0['unitId'],_0x4882c0[_0x1c14f8(0x13a)]);if(!_0x48857d)return;let _0x1281ef=_0x4882c0[_0x1c14f8(0x238)]??_0x4afdff(_0x48857d[_0x1c14f8(0x208)][_0x1c14f8(0x162)]());this['_fireBeforeHierarchyChange'](_0x48857d[_0x1c14f8(0x229)],_0x48857d[_0x1c14f8(0x208)],[{'tableId':_0x4882c0['tableId'],'fieldId':_0x1281ef,'recordId':_0x4882c0[_0x1c14f8(0x107)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4882c0['parentRecordId']}],_0x4882c0['source']??_0x163008['UI']);return;}if($(_0x5a424b,_0x58ff18)){let _0x4fb309=_0x5a424b[_0x1c14f8(0x206)],_0x5eeebd=this[_0x1c14f8(0x247)](_0x4fb309[_0x1c14f8(0xf1)],_0x4fb309['tableId']);if(!_0x5eeebd)return;this[_0x1c14f8(0x1b8)](_0x5eeebd['base'],_0x5eeebd[_0x1c14f8(0x208)],_0x3bdd64(_0x5eeebd[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),[_0x4fb309[_0x1c14f8(0x158)]]),_0x4fb309[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x3b6e46)){let _0x58d135=_0x5a424b[_0x1c14f8(0x206)],_0x1747d2=this[_0x1c14f8(0x247)](_0x58d135[_0x1c14f8(0xf1)],_0x58d135[_0x1c14f8(0x13a)]);if(!_0x1747d2)return;this[_0x1c14f8(0x1b8)](_0x1747d2[_0x1c14f8(0x229)],_0x1747d2[_0x1c14f8(0x208)],_0x3bdd64(_0x1747d2[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x58d135[_0x1c14f8(0x184)]),_0x58d135[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if(!$(_0x5a424b,_0x2a154d))return;let _0x9437d5=_0x5a424b[_0x1c14f8(0x206)],_0x1225bf=this[_0x1c14f8(0x247)](_0x9437d5[_0x1c14f8(0xf1)],_0x9437d5[_0x1c14f8(0x13a)]);if(!_0x1225bf)return;let _0x50bd1e=_0x1225bf[_0x1c14f8(0x208)][_0x1c14f8(0x162)]();if(!_0x3761d8(_0x50bd1e)[_0x1c14f8(0xf0)](_0x9437d5[_0x1c14f8(0x238)]))return;let _0x4905e4=_0x54315c(_0x50bd1e,_0x9437d5['fieldId'])[_0x1c14f8(0x197)][_0x1c14f8(0x17f)](_0x9437d5[_0x1c14f8(0x158)])??null,_0x3de65a=_0x378c06(_0x9437d5['value'])[0x0]??null;_0x4905e4!==_0x3de65a&&this[_0x1c14f8(0x1b8)](_0x1225bf['base'],_0x1225bf['table'],[{'tableId':_0x9437d5[_0x1c14f8(0x13a)],'fieldId':_0x9437d5[_0x1c14f8(0x238)],'recordId':_0x9437d5['recordId'],'oldParentRecordId':_0x4905e4,'parentRecordId':_0x3de65a}],_0x9437d5[_0x1c14f8(0x121)]??_0x163008['UI']);}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this['Event'][_0x579221(0x116)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x693fe9=>{const _0x2c9619=_0x579221;if(_0x693fe9['id']!==_0x2cacea['id'])return;let {unitId:_0x3302d0,table:_0x4ff854,index:_0x479f18}=_0x693fe9[_0x2c9619(0x206)],_0x50f835=this['getBase'](_0x3302d0);if(!_0x50f835)return;let _0x1a10a0={'base':_0x50f835,'table':_0x4ff854,'index':_0x479f18};if(this['fireEvent'](this[_0x2c9619(0x220)][_0x2c9619(0x116)],_0x1a10a0),_0x1a10a0[_0x2c9619(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x234)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x5c625d=>{const _0x4886cf=_0x579221;if(_0x5c625d['id']!==_0x45cbde['id'])return;let {unitId:_0x1eb07e,tableId:_0x101574,field:_0x64da64,index:_0x8a6702,viewIndexes:_0x549b3c}=_0x5c625d[_0x4886cf(0x206)],_0xf2be0e=this['getBase'](_0x1eb07e);if(!_0xf2be0e)return;let _0x28a796=_0xf2be0e[_0x4886cf(0x13e)](_0x101574);if(!_0x28a796)return;let _0x418c3c={'base':_0xf2be0e,'table':_0x28a796,'field':_0x64da64,'index':_0x8a6702,'viewIndexes':_0x549b3c};if(this[_0x4886cf(0x237)](this[_0x4886cf(0x220)][_0x4886cf(0x234)],_0x418c3c),_0x418c3c[_0x4886cf(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x24d)],()=>this['_commandService'][_0x579221(0x16b)](_0x5198f2=>{const _0x569da1=_0x579221;if(_0x5198f2['id']!==_0x3d3295['id']&&_0x5198f2['id']!==_0x5c549e['id'])return;let _0x1edc1b=_0x5198f2[_0x569da1(0x206)],{unitId:_0x253ebd,tableId:_0x5c3caa}=_0x1edc1b,_0x326583=_0x1edc1b[_0x569da1(0x145)]??[_0x1edc1b[_0x569da1(0x107)]],_0x3071be=this[_0x569da1(0x252)](_0x253ebd);if(!_0x3071be)return;let _0x50d774=_0x3071be[_0x569da1(0x13e)](_0x5c3caa);if(!_0x50d774)return;let _0x3443e9={'base':_0x3071be,'table':_0x50d774,'records':_0x326583};if(this['fireEvent'](this[_0x569da1(0x220)][_0x569da1(0x24d)],_0x3443e9),_0x3443e9[_0x569da1(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x1a3)],()=>this['_commandService'][_0x579221(0x16b)](_0x5677d0=>{const _0x12cc99=_0x579221;if(_0x5677d0['id']!==_0x1a4d71['id'])return;let {unitId:_0x578f68,tableId:_0x198d82,view:_0x585158,index:_0x1c2ff5}=_0x5677d0[_0x12cc99(0x206)],_0x5b7dc8=this[_0x12cc99(0x252)](_0x578f68);if(!_0x5b7dc8)return;let _0x1078b8=_0x5b7dc8['getTableById'](_0x198d82);if(!_0x1078b8)return;let _0x500e1f={'base':_0x5b7dc8,'table':_0x1078b8,'view':_0x585158,'index':_0x1c2ff5};if(this['fireEvent'](this[_0x12cc99(0x220)][_0x12cc99(0x1a3)],_0x500e1f),_0x500e1f[_0x12cc99(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x22d)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x59cac3=>{const _0x52e8a3=_0x579221;if(_0x59cac3['id']!==_0x2a154d['id'])return;let {unitId:_0x360a5f,tableId:_0x31b738,recordId:_0x400b3f,fieldId:_0x4de97a,value:_0x396dc9}=_0x59cac3[_0x52e8a3(0x206)],_0x35170c=this[_0x52e8a3(0x252)](_0x360a5f);if(!_0x35170c)return;let _0x33f159=_0x35170c[_0x52e8a3(0x13e)](_0x31b738);if(!_0x33f159)return;let _0x134306=_0x33f159['getFieldById'](_0x4de97a);if(!_0x134306)return;let _0x3deae5=_0x33f159[_0x52e8a3(0x178)](_0x400b3f);if(!_0x3deae5)return;let _0x4bdc46={'base':_0x35170c,'table':_0x33f159,'field':_0x134306,'record':_0x3deae5,'value':_0x396dc9};if(this['fireEvent'](this['Event']['BeforeBaseTableCellValueChange'],_0x4bdc46),_0x4bdc46[_0x52e8a3(0x15d)])throw new _0x5277c5();})));}['_getHierarchyEventContext'](_0x552b80,_0x4853fe){let _0x207264=this['getBase'](_0x552b80),_0x4e6ad8=_0x207264==null?void 0x0:_0x207264['getTableById'](_0x4853fe);return _0x207264&&_0x4e6ad8?{'base':_0x207264,'table':_0x4e6ad8}:null;}[_0x3d6a72(0x1b8)](_0x45bb9d,_0xe193c1,_0x2f5367,_0x3a34d1){const _0x57806c=_0x3d6a72;if(!_0x2f5367['length'])return;let _0xc060fd={'base':_0x45bb9d,'table':_0xe193c1,'changes':_0x2f5367,'source':_0x3a34d1};if(this[_0x57806c(0x237)](this[_0x57806c(0x220)][_0x57806c(0x170)],_0xc060fd),_0xc060fd[_0x57806c(0x15d)])throw new _0x5277c5();}};function $(_0x56c937,_0x1e0d36){const _0xbf6e09=_0x3d6a72;return _0x56c937['id']===_0x1e0d36['id']&&_0x56c937[_0xbf6e09(0x206)]!==void 0x0;}_0x4e8405[_0x3d6a72(0x217)](Et);var Dt=class extends _0x5354a2{get[_0x3d6a72(0x23f)](){return _0x4eacf9;}get[_0x3d6a72(0x24f)](){return _0x125131;}get[_0x3d6a72(0x225)](){return _0x5f3a4b;}get[_0x3d6a72(0x180)](){return ot;}get[_0x3d6a72(0x1f7)](){return _0x4ecc5e;}get['BaseConditionalColorTarget'](){return _0x4d7440;}get[_0x3d6a72(0x15c)](){return _0x11bed7;}get[_0x3d6a72(0x1b6)](){return _0x14002d;}get[_0x3d6a72(0x18f)](){return _0x40554e;}get['BaseEventSource'](){return _0x163008;}get[_0x3d6a72(0x144)](){return _0x4db856;}get[_0x3d6a72(0x20d)](){return _0x19551e;}get['BaseRecordLinkRole'](){return _0x5ca765;}};_0x5354a2[_0x3d6a72(0x217)](Dt);var Ot=class extends _0x553a6a{get[_0x3d6a72(0x1b0)](){return'BaseTableCreated';}get['BeforeBaseTableCreate'](){const _0x2d987b=_0x3d6a72;return _0x2d987b(0x116);}get[_0x3d6a72(0x176)](){const _0x32058b=_0x3d6a72;return _0x32058b(0x176);}get[_0x3d6a72(0x234)](){return'BeforeBaseTableFieldCreate';}get[_0x3d6a72(0x193)](){const _0x2fa1ff=_0x3d6a72;return _0x2fa1ff(0x193);}get[_0x3d6a72(0x24d)](){return'BeforeBaseTableRecordCreate';}get[_0x3d6a72(0x13c)](){const _0x53e9ff=_0x3d6a72;return _0x53e9ff(0x13c);}get['BeforeBaseTableViewCreate'](){const _0x23aec0=_0x3d6a72;return _0x23aec0(0x1a3);}get[_0x3d6a72(0x12d)](){return'BaseTableCellValueChanged';}get['BeforeBaseTableCellValueChange'](){const _0x41b798=_0x3d6a72;return _0x41b798(0x22d);}get[_0x3d6a72(0x1a9)](){const _0x8fae2f=_0x3d6a72;return _0x8fae2f(0x1a9);}get[_0x3d6a72(0x170)](){const _0x5deefd=_0x3d6a72;return _0x5deefd(0x170);}};_0x553a6a[_0x3d6a72(0x217)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
1
+ const _0x5d6143=_0xcda4;function _0x368d(){const _0x59d3f1=['name','_commandService','_fieldId','getName','matches','save','getNumRows','BaseHierarchyChanged','createView','getVisibleFields','getAllUnitsForType','filter','_unitId','3ApOQrc','auto','prototype','10fiwWBz','some','_range','_tableId','UUID','Date','getAttachments','max','BaseTableRecordCreated',':\x20\x22','1421612cJPgof','Kanban','defaultValue','registerEventHandler','BeforeBaseHierarchyChange','_collectDescendantIds','getPrimaryField','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','duplicateTable','entries','BaseHierarchyErrorCode','getDescendants','afterFieldId','records','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','setEditable','_getHierarchyIndex','getBase','getColumn','_resourceLoaderService','values','startsWith','BeforeBaseTableCreate','fireEvent','getProjection','type','736451gnsvli','BeforeBaseTableFieldCreate','Event','warn','_objectId','deleteRecords','Failed\x20to\x20add\x20records','unitId','BeforeBaseTableRecordCreate','getGroup','indexOf','_baseUnitId','from','isFinite','decorate','getFields','conditions','_prepareFormulaFieldReferences','getPermission','toPrimitive','_fireBeforeHierarchyChange','map','35znPsWW','\x22\x20is\x20invalid.','saveUnit','primaryFieldId','getRecords','getDescription','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','setHierarchyField','Formula','getHierarchyFieldId','Calendar','[FBaseRange]:\x20values\x20size\x20','getValues',',\x20max\x20columns:\x20','extend','createdAt','beforeCommandExecuted','[FRecord]:\x20RecordLink\x20field\x20\x22','URL','Gantt','multiple','operator','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','params','reason','cancel','\x22\x20has\x20invalid\x20config.','_getTable','push','BaseFilterConjunction','commonExtend','mimeType','getLinkedRecordIds','_writeFormulaExternalReferences','BaseEventSource','onCommandExecuted','[FBase]:\x20table\x20\x22','_projectionService','length','every','getFilter','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','_getFieldIds','hidden','recordIds','custom','setLinkedRecordIds','size','fieldOrder','getBaseId','_initBaseAfterEvents','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','source','BaseFilterOperator','_getRecord','index','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','config','_parentObjectIds','setReadOnly','move','Facade','base','hierarchyChanges','visibleCardFieldIds','_univerInstanceService','primaryFieldName','fields','viewOrder','[FRecord]:\x20record\x20\x22','_getHierarchyEventContext','_table','getTables','description',',\x20range:\x20','getTable','defineProperty','setDefaultValue','_initialize','_baseTableId','getActiveBase','canEdit','1039520YMAxjO','sourceType','getTableById','tables','setValue','update','BaseTableFieldCreated','\x22\x20does\x20not\x20exist.','includes','now','insertTable','getTableByName','createInstance','Failed\x20to\x20add\x20field\x20\x22','externalReferences','parentByRecordId','_assertInBounds','BaseConditionalDateMode','_permissionService','viewId','executeCommand','call','message','\x20exceeds\x20range\x20size\x20','[FTable]:\x20table\x20\x22','setFieldWidth','BaseFieldKeyEnum','rows','flatMap','_base','setOrderKey','\x20for\x20field\x20\x22','getCurrentUnitOfType','UNIVER_BASE','find','_resolveRecordIds','setParent','getValue','getOwnPropertyDescriptor','slice','thumbnail','getParent','fieldIds','getSchema','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','BaseHierarchyInvalidReason','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','BaseTableViewCreated','getViewById','Failed\x20to\x20delete\x20table\x20\x22','object','Failed\x20to\x20create\x20view\x20\x22','startRow','search','Edit','disposeWithMe',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getType','getRecord','addRecord','Duplicate\x20Base\x20field\x20name:\x20','Add','clearConditionalColorRules','queryRecords','deleteProperty','getSort','limit','parentRecordId','string','orderKey','getId','getSnapshot','\x22\x20is\x20not\x20an\x20Attachment\x20field.','sort','changeType','view','RecordLink','Gallery','6177861wQLZUz','fieldId','Grid','isArray','valid','conditionalColoring','get','tableOrder','views','setAttachments','BeforeBaseTableViewCreate','getFormulaName','rowId','createUnit','data:','_getRecordLinkField','\x22.\x20','setSort','getFieldById','isReadonly','setObjectPermissions','delete','FBase','setConfig','Failed\x20to\x20create\x20table\x20\x22','updatedAt','addLinkedRecord','1277382FfcosL','addChild','setValues','_recordId','[FRecord]:\x20field\x20\x22','startColumn','Invalid\x20attachment\x20at\x20index\x20','tableId','offset','createBase','updateConfig','BaseViewType','getBases','Attachment','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getRow','_injector','getAncestors','Clear','deleteTable','BeforeBaseTableCellValueChange','endRow','readonly','Set','Invalid\x20Base\x20regex\x20filter:\x20','fieldKey','localeCompare','getUnitId','5597878nyPKoR','Delete','Invalid\x20Base\x20formula.','getRange','deepClone','fieldSettings','iterator','BaseRecordLinkRole','direction','subtreeHeightByRecordId','setName','group','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','getPrimaryFieldId','field','[FRecord]:\x20attachment\x20at\x20index\x20','getRecordById','recordOrder','Name','function','default','notMatches','symbol','_initBaseBeforeEvents','_inject','endColumn','getViews','Auto','regenerateViewIds','syncExecuteCommand','getView','record','getChildren','childrenByParentId','recordId','[FField]:\x20field\x20\x22','setFieldVisible','_viewId','_getView','\x20in\x20field\x20\x22','BaseTableCreated','getField','getFieldByName','table','value','addRecords','DESC','test','BaseTableCellValueChanged','deleteConditionalColorRule','moveField','_getAttachmentField','getConditionalColorRules','BASE64','Failed\x20to\x20duplicate\x20table\x20\x22','_getField','getNumColumns','boolean','caseSensitive','has','612065YFeokk','18HOeKnp'];_0x368d=function(){return _0x59d3f1;};return _0x368d();}(function(_0x4686ab,_0x163ae0){const _0x2255f9=_0xcda4,_0x24e944=_0x4686ab();while(!![]){try{const _0xbe193b=-parseInt(_0x2255f9(0x1a8))/0x1+parseInt(_0x2255f9(0x27a))/0x2*(parseInt(_0x2255f9(0x181))/0x3)+-parseInt(_0x2255f9(0x18e))/0x4+-parseInt(_0x2255f9(0x172))/0x5*(-parseInt(_0x2255f9(0x173))/0x6)+-parseInt(_0x2255f9(0x1be))/0x7*(-parseInt(_0x2255f9(0x211))/0x8)+parseInt(_0x2255f9(0x25f))/0x9*(-parseInt(_0x2255f9(0x184))/0xa)+parseInt(_0x2255f9(0x136))/0xb;if(_0xbe193b===_0x163ae0)break;else _0x24e944['push'](_0x24e944['shift']());}catch(_0x250ee4){_0x24e944['push'](_0x24e944['shift']());}}}(_0x368d,0x5e4c5));import{ApplyBaseJson1Mutation as _0x7828b1,BASE_TABLE_NAME_REQUIREMENTS as _0x42fde6,BaseConditionalColorRuleUpdateType as _0x18e9de,BaseEventSource as _0x3929cb,BaseHierarchyErrorCode as _0x420b2f,BatchCreateBaseRecordsCommand as _0x15e471,BatchDeleteBaseRecordsCommand as _0x3343b8,ChangeBaseFieldTypeCommand as _0x4bf4fe,CreateBaseChildRecordCommand as _0x550a38,CreateBaseFieldCommand as _0x27aa7f,CreateBaseRecordCommand as _0x1b1cbb,CreateBaseTableCommand as _0x5af821,CreateBaseViewCommand as _0x391a8f,DeleteBaseFieldCommand as _0x339bc9,DeleteBaseRecordCommand as _0x2f0c33,DeleteBaseTableCommand as _0x4d1ca0,DeleteBaseViewCommand as _0x23ad3a,DuplicateBaseRecordCommand as _0x5a3030,IBaseProjectionService as _0x8d78f1,MoveBaseFieldCommand as _0x20773f,MoveBaseHierarchyRecordCommand as _0x1aea4c,MoveBaseViewCommand as _0x2c00c8,RenameBaseTableCommand as _0x2f9fb9,RenameBaseViewCommand as _0x5835d9,SetBaseNameCommand as _0xbea6e0,SetBasePermissionCommand as _0x1543dd,SetBasePermissionsCommand as _0x9f09be,SetBaseRangeValuesCommand as _0x2ebbdb,SetBaseRecordValuesCommand as _0x3c4e8d,SetBaseTableHierarchyFieldCommand as _0x2b74e0,SetBaseViewFieldOrderCommand as _0x354098,SetBaseViewFieldVisibleCommand as _0x41519f,SetBaseViewFieldWidthCommand as _0x249729,SetBaseViewFilterCommand as _0x50d350,SetBaseViewGroupCommand as _0x439ee7,SetBaseViewSortCommand as _0x217a2c,UpdateBaseCellCommand as _0xd989ce,UpdateBaseFieldCommand as _0x3752f1,UpdateBaseRecordOrderCommand as _0x5c34e7,UpdateBaseViewConditionalColorRulesCommand as _0x112745,UpdateBaseViewConfigCommand as _0x5010e8,ValidateBaseFormulaCommand as _0x496639,buildBaseHierarchyIndex as _0xbf13b7,canEditBaseTargets as _0xd3b39e,copyBaseTableSnapshot as _0x5832b3,createUniqueBaseTableName as _0x33e5ed,ensureBaseTableCellLayout as _0x50c331,getActiveBaseHierarchyFieldIds as _0x31a9b4,getBaseCellValue as _0x3e649c,getBaseFieldPermissionObjectId as _0x4bb07b,getBaseFormulaTableName as _0x30d832,getBaseHierarchyDeletePromotions as _0x4276db,getBasePermissionValue as _0x58d23c,getBaseRecordPermissionObjectId as _0x5aa11b,getBaseTablePermissionObjectId as _0x15e072,getBaseViewPermissionObjectId as _0x1d4c7d,getRecordLinkFieldConfig as _0x1220e3,matchesBaseCondition as _0x232aed,parseRecordLinkIds as _0x15a8ab,resolveBaseHierarchyFieldId as _0x254f03,resolveBaseRangeHierarchyPatches as _0x4e2d04,searchBaseTable as _0x260bc4,serializeRecordLinkIds as _0x1808ed,validateBaseHierarchyRecordCreations as _0x1936b7,validateBaseHierarchyRecordPatches as _0x500011,validateBaseTableName as _0x1252cc,validateRecordLinkValue as _0x529f3e}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0xe50529,BaseConditionalColorOperator as _0x1ab338,BaseConditionalColorTarget as _0x51d23e,BaseConditionalDateMode as _0x461f6e,BaseFieldType as _0xe1377b,BaseFilterConjunction as _0x1e088d,BaseFilterOperator as _0x30a51d,BaseHierarchyInvalidReason as _0x2d4aea,BaseRecordLinkRole as _0x5428fb,BaseSortDirection as _0x504096,BaseViewType as _0x1753fc,CanceledError as _0x2d90a2,ICommandService as _0x4d60b9,IPermissionService as _0x4ad80a,IResourceLoaderService as _0x28546b,ImageSourceType as _0x4d9d8d,Inject as _0x122311,Injector as _0x5e0f48,Tools as _0x59ca43,UniverInstanceType as _0x31af45,createDefaultBaseTableSnapshot as _0x8020d,generateRandomId as _0x563d6}from'@univerjs/core';import*as _0x188c13 from'@univerjs/core/facade';import{FBaseInitialable as _0x5e2686,FEnum as _0x30c860,FEventName as _0x22e20b,FUniver as _0x342f23}from'@univerjs/core/facade';import{UnitAction as _0x360a49}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5da99d}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x18b343,_0x5642c1,_0x2e221a){const _0xca0d2e=_0xcda4;this[_0xca0d2e(0x180)]=_0x18b343,this[_0xca0d2e(0x175)]=_0x5642c1,this[_0xca0d2e(0x223)]=_0x2e221a;}async[_0x5d6143(0x273)](_0x3a38ad){const _0x129ddc=_0x5d6143;return this[_0x129ddc(0x175)][_0x129ddc(0x225)](_0x9f09be['id'],{'unitId':this[_0x129ddc(0x180)],'changes':_0x3a38ad});}async['setPoint'](_0x27d54a,_0x37058d){const _0x350851=_0x5d6143;await this['_commandService'][_0x350851(0x225)](_0x1543dd['id'],{'unitId':this[_0x350851(0x180)],'objectId':this[_0x350851(0x180)],'action':_0x27d54a,'value':_0x37058d});}['getPoint'](_0x16c248){const _0x2c499a=_0x5d6143;return _0x58d23c(this[_0x2c499a(0x223)],this['_unitId'],this['_unitId'],_0x16c248);}async[_0x5d6143(0x19d)](_0x448eb8=!0x0){const _0xcf86c5=_0x5d6143;await this[_0xcf86c5(0x175)]['executeCommand'](_0x1543dd['id'],{'unitId':this[_0xcf86c5(0x180)],'objectId':this[_0xcf86c5(0x180)],'action':_0x360a49['Edit'],'value':_0x448eb8});}async[_0x5d6143(0x1fa)](){const _0x10253f=_0x5d6143;await this['_commandService'][_0x10253f(0x225)](_0x1543dd['id'],{'unitId':this[_0x10253f(0x180)],'objectId':this[_0x10253f(0x180)],'action':_0x360a49[_0x10253f(0x247)],'value':!0x1});}[_0x5d6143(0x210)](){const _0x37070c=_0x5d6143;return _0x58d23c(this[_0x37070c(0x223)],this[_0x37070c(0x180)],this['_unitId'],_0x360a49[_0x37070c(0x247)]);}},L=class{constructor(_0x27a64d,_0x345a16,_0x8ee691,_0x5e1ae2,_0x95057d){const _0x15320c=_0x5d6143;this[_0x15320c(0x180)]=_0x27a64d,this['_objectId']=_0x345a16,this[_0x15320c(0x1f9)]=_0x8ee691,this[_0x15320c(0x175)]=_0x5e1ae2,this['_permissionService']=_0x95057d;}async[_0x5d6143(0x19d)](_0x4d04e1=!0x0){const _0x49dc96=_0x5d6143;await this[_0x49dc96(0x175)][_0x49dc96(0x225)](_0x1543dd['id'],{'unitId':this['_unitId'],'objectId':this[_0x49dc96(0x1ac)],'action':_0x360a49[_0x49dc96(0x247)],'value':_0x4d04e1});}async[_0x5d6143(0x1fa)](){const _0x2e399c=_0x5d6143;await this['_commandService'][_0x2e399c(0x225)](_0x1543dd['id'],{'unitId':this[_0x2e399c(0x180)],'objectId':this[_0x2e399c(0x1ac)],'action':_0x360a49['Edit'],'value':!0x1});}['canEdit'](){const _0x2672b0=_0x5d6143;return _0xd3b39e(this[_0x2672b0(0x223)],this[_0x2672b0(0x180)],[...this[_0x2672b0(0x1f9)],this[_0x2672b0(0x1ac)]]);}};function R(_0xe2d3c4,_0x484c80){return function(_0x5ef9de,_0x5553fc){_0x484c80(_0x5ef9de,_0x5553fc,_0xe2d3c4);};}function z(_0x52edff,_0x57dd55,_0x5ce1ab,_0x11f332){const _0x3e02f3=_0x5d6143;var _0x323054=arguments[_0x3e02f3(0x1e5)],_0x116f22=_0x323054<0x3?_0x57dd55:_0x11f332===null?_0x11f332=Object[_0x3e02f3(0x237)](_0x57dd55,_0x5ce1ab):_0x11f332,_0x39776a;if(typeof Reflect==_0x3e02f3(0x243)&&typeof Reflect[_0x3e02f3(0x1b6)]==_0x3e02f3(0x149))_0x116f22=Reflect[_0x3e02f3(0x1b6)](_0x52edff,_0x57dd55,_0x5ce1ab,_0x11f332);else{for(var _0x3ebe65=_0x52edff[_0x3e02f3(0x1e5)]-0x1;_0x3ebe65>=0x0;_0x3ebe65--)(_0x39776a=_0x52edff[_0x3ebe65])&&(_0x116f22=(_0x323054<0x3?_0x39776a(_0x116f22):_0x323054>0x3?_0x39776a(_0x57dd55,_0x5ce1ab,_0x116f22):_0x39776a(_0x57dd55,_0x5ce1ab))||_0x116f22);}return _0x323054>0x3&&_0x116f22&&Object['defineProperty'](_0x57dd55,_0x5ce1ab,_0x116f22),_0x116f22;}let B=class{constructor(_0x469327,_0x2f995d,_0xc1907d,_0x92109b,_0x538d53){const _0x50e1b9=_0x5d6143;this['_base']=_0x469327,this[_0x50e1b9(0x206)]=_0x2f995d,this[_0x50e1b9(0x176)]=_0xc1907d,this['_commandService']=_0x92109b,this[_0x50e1b9(0x223)]=_0x538d53;}[_0x5d6143(0x257)](){const _0x260367=_0x5d6143;return this[_0x260367(0x176)];}[_0x5d6143(0x1ba)](){const _0x340de6=_0x5d6143;let _0x303b0a=this[_0x340de6(0x206)][_0x340de6(0x257)]();return new L(this[_0x340de6(0x22e)][_0x340de6(0x257)](),_0x4bb07b(_0x303b0a,this['_fieldId']),[_0x15e072(_0x303b0a)],this[_0x340de6(0x175)],this[_0x340de6(0x223)]);}[_0x5d6143(0x15f)](){const _0x408cf8=_0x5d6143;return this[_0x408cf8(0x16d)]();}['getName'](){const _0x14e265=_0x5d6143;return this['_getField']()[_0x14e265(0x174)];}[_0x5d6143(0x24a)](){const _0x56ab81=_0x5d6143;return this['_getField']()[_0x56ab81(0x1a7)];}['getConfig'](){const _0x4e6fbb=_0x5d6143;return this[_0x4e6fbb(0x16d)]()[_0x4e6fbb(0x1f8)];}['getDefaultValue'](){const _0xb0c46e=_0x5d6143;return this['_getField']()[_0xb0c46e(0x190)];}[_0x5d6143(0x1c3)](){const _0x4bb177=_0x5d6143;return this[_0x4bb177(0x16d)]()['description'];}[_0x5d6143(0x272)](){const _0x3be153=_0x5d6143;return!!this[_0x3be153(0x16d)]()['readonly'];}[_0x5d6143(0x140)](_0x36879f){return this['update']({'name':_0x36879f});}[_0x5d6143(0x276)](_0x322ab5,_0xfd2b69){const _0x5d7c56=_0x5d6143;return this[_0x5d7c56(0x216)]({'config':_0x322ab5},_0xfd2b69);}[_0x5d6143(0x20c)](_0x2f1c3c){return this['update']({'defaultValue':_0x2f1c3c});}['update'](_0x35be5b,_0x4f6662){const _0x5a8fa0=_0x5d6143;let _0x281e46=this[_0x5a8fa0(0x16d)]()['type'];return(_0x35be5b[_0x5a8fa0(0x1a7)]??_0x281e46)===_0xe1377b[_0x5a8fa0(0x1c7)]&&(Object[_0x5a8fa0(0x183)]['hasOwnProperty'][_0x5a8fa0(0x226)](_0x35be5b,_0x5a8fa0(0x1f8))||_0x35be5b[_0x5a8fa0(0x1a7)]===_0xe1377b[_0x5a8fa0(0x1c7)])&&!this[_0x5a8fa0(0x1e0)](_0x4f6662)?!0x1:this[_0x5a8fa0(0x175)][_0x5a8fa0(0x153)](_0x3752f1['id'],{'unitId':this[_0x5a8fa0(0x22e)]['getId'](),'tableId':this['_table'][_0x5a8fa0(0x257)](),'fieldId':this[_0x5a8fa0(0x176)],'patch':_0x35be5b});}[_0x5d6143(0x25b)](_0x37d00a,_0x4b4025={},_0x58d037){const _0x442e49=_0x5d6143;return _0x37d00a===_0xe1377b[_0x442e49(0x1c7)]&&!this[_0x442e49(0x1e0)](_0x58d037)?!0x1:this[_0x442e49(0x175)][_0x442e49(0x153)](_0x4bf4fe['id'],{'unitId':this[_0x442e49(0x22e)][_0x442e49(0x257)](),'tableId':this['_table'][_0x442e49(0x257)](),'fieldId':this[_0x442e49(0x176)],'input':{'type':_0x37d00a,'config':_0x4b4025}});}[_0x5d6143(0x274)](){const _0x123d5b=_0x5d6143;return this['_commandService'][_0x123d5b(0x153)](_0x339bc9['id'],{'unitId':this[_0x123d5b(0x22e)][_0x123d5b(0x257)](),'tableId':this[_0x123d5b(0x206)][_0x123d5b(0x257)](),'fieldId':this[_0x123d5b(0x176)]});}['move'](_0x5559a6){const _0x338d96=_0x5d6143;return this['_commandService'][_0x338d96(0x153)](_0x20773f['id'],{'unitId':this[_0x338d96(0x22e)][_0x338d96(0x257)](),'tableId':this[_0x338d96(0x206)][_0x338d96(0x257)](),'fieldId':this[_0x338d96(0x176)],'target':_0x5559a6});}[_0x5d6143(0x16d)](){const _0x4b4aba=_0x5d6143;let _0x441362=this[_0x4b4aba(0x206)][_0x4b4aba(0x20a)]()['fields'][this[_0x4b4aba(0x176)]];if(!_0x441362)throw Error(_0x4b4aba(0x159)+this[_0x4b4aba(0x176)]+'\x22\x20does\x20not\x20exist.');return _0x441362;}[_0x5d6143(0x1e0)](_0xd63bbf){const _0x1efab2=_0x5d6143;if(!_0xd63bbf||!Array[_0x1efab2(0x262)](_0xd63bbf[_0x1efab2(0x21f)]))return console[_0x1efab2(0x1ab)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0xd63bbf['externalReferences']['length']===0x0)return!0x0;let _0x27acd5=this['_commandService'][_0x1efab2(0x153)](_0x5da99d['id'],{'unitId':this['_base']['getId'](),'references':_0xd63bbf[_0x1efab2(0x21f)]});return _0x27acd5||console[_0x1efab2(0x1ab)](_0x1efab2(0x1f2)),_0x27acd5;}};B=z([R(0x3,_0x4d60b9),R(0x4,_0x4ad80a)],B);let ot=function(_0x28bec6){const _0x635469=_0x5d6143;return _0x28bec6['Id']='id',_0x28bec6[_0x635469(0x148)]=_0x635469(0x174),_0x28bec6[_0x635469(0x151)]=_0x635469(0x182),_0x28bec6;}({});function V(_0x4e2b0c){const _0x46031c=_0x5d6143;return!!(_0x4e2b0c&&_0x4e2b0c['system']!==!0x0&&_0x4e2b0c[_0x46031c(0x1a7)]!==_0xe1377b['RecordId']);}function H(_0xf8cef7,_0xd8aaea,_0x312408='id'){const _0x2db0e4=_0x5d6143;if(!_0xd8aaea)return{};let _0x21fb3f={};return Object[_0x2db0e4(0x197)](_0xd8aaea)['forEach'](([_0x57db0f,_0x598ac8])=>{const _0x2b46a1=_0x2db0e4;let _0x4dd9d3=ct(_0xf8cef7,_0x57db0f,_0x312408);_0x21fb3f[_0x4dd9d3]=st(_0xf8cef7[_0x2b46a1(0x202)][_0x4dd9d3],_0x598ac8);}),_0x21fb3f;}function st(_0x31e62e,_0x8c9186){const _0xe73c22=_0x5d6143;if((_0x31e62e==null?void 0x0:_0x31e62e[_0xe73c22(0x1a7)])!==_0xe1377b[_0xe73c22(0x127)]||_0x8c9186==null)return _0x8c9186;if(!Array[_0xe73c22(0x262)](_0x8c9186))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x31e62e[_0xe73c22(0x174)]+'\x22:\x20expected\x20an\x20array.');return _0x8c9186[_0xe73c22(0x1bd)]((_0x111afe,_0x4917f1)=>lt(_0x31e62e,_0x111afe,_0x4917f1));}function ct(_0x590d50,_0x4052e5,_0x5c68e7){const _0x401bf3=_0x5d6143;if(_0x5c68e7==='id'||_0x5c68e7===_0x401bf3(0x182)&&_0x590d50[_0x401bf3(0x202)][_0x4052e5])return _0x4052e5;let _0x4cf7ab=Object[_0x401bf3(0x1a2)](_0x590d50[_0x401bf3(0x202)])[_0x401bf3(0x17f)](_0x1c0e81=>_0x1c0e81[_0x401bf3(0x174)]===_0x4052e5);if(_0x4cf7ab['length']===0x1)return _0x4cf7ab[0x0]['id'];throw _0x4cf7ab[_0x401bf3(0x1e5)]>0x1?Error(_0x401bf3(0x24d)+_0x4052e5):Error('Base\x20field\x20not\x20found:\x20'+_0x4052e5);}function lt(_0x1cebf2,_0xa49cad,_0x2ca560){const _0x5f05fc=_0x5d6143;let _0x585b1b=_0x5f05fc(0x280)+_0x2ca560+_0x5f05fc(0x230)+_0x1cebf2['name']+'\x22';if(!ft(_0xa49cad))throw TypeError(_0x585b1b+':\x20expected\x20an\x20object.');if('url'in _0xa49cad)throw TypeError(_0x585b1b+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x5f05fc(0x1a7)in _0xa49cad)throw TypeError(_0x585b1b+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x3e1e01=U(_0xa49cad['id'],_0x585b1b,'id'),_0x3355c=U(_0xa49cad['name'],_0x585b1b,'name'),_0x20286e=U(_0xa49cad[_0x5f05fc(0x1f3)],_0x585b1b,'source');return{'id':_0x3e1e01,'name':_0x3355c,'source':_0x20286e,'sourceType':ut(_0xa49cad[_0x5f05fc(0x212)],_0x20286e,_0x585b1b),...dt(_0xa49cad,_0x5f05fc(0x1de),_0x585b1b),...W(_0xa49cad,_0x5f05fc(0x1ee),_0x585b1b),...W(_0xa49cad,'width',_0x585b1b),...W(_0xa49cad,'height',_0x585b1b),...dt(_0xa49cad,_0x5f05fc(0x239),_0x585b1b)};}function ut(_0x2732d0,_0x1aa7f2,_0x45cdff){const _0x1e5bca=_0x5d6143;if(_0x2732d0==null)return _0x1aa7f2[_0x1e5bca(0x1a3)](_0x1e5bca(0x26d))?_0x4d9d8d['BASE64']:_0x4d9d8d[_0x1e5bca(0x1d1)];if(_0x2732d0===_0x4d9d8d[_0x1e5bca(0x1d1)]||_0x2732d0===_0x4d9d8d[_0x1e5bca(0x188)]||_0x2732d0===_0x4d9d8d[_0x1e5bca(0x16b)])return _0x2732d0;throw TypeError(_0x45cdff+_0x1e5bca(0x249));}function U(_0x1647f5,_0x158bbe,_0x1283ae){const _0x4b6230=_0x5d6143;if(typeof _0x1647f5!=_0x4b6230(0x255)||!_0x1647f5['trim']())throw TypeError(_0x158bbe+_0x4b6230(0x18d)+_0x1283ae+_0x4b6230(0x1c4));return _0x1647f5;}function dt(_0x296434,_0x456c3b,_0x4e7e29){let _0x4066f1=_0x296434[_0x456c3b];if(_0x4066f1==null)return{};if(typeof _0x4066f1!='string'||!_0x4066f1['trim']())throw TypeError(_0x4e7e29+':\x20\x22'+_0x456c3b+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x456c3b]:_0x4066f1};}function W(_0x44203a,_0x46a867,_0x42daf7){const _0x152db8=_0x5d6143;let _0x9bea25=_0x44203a[_0x46a867];if(_0x9bea25==null)return{};if(typeof _0x9bea25!='number'||!Number[_0x152db8(0x1b5)](_0x9bea25)||_0x9bea25<0x0)throw TypeError(_0x42daf7+_0x152db8(0x18d)+_0x46a867+_0x152db8(0x1d5));return{[_0x46a867]:_0x9bea25};}function ft(_0x108d13){const _0x5a6a51=_0x5d6143;return typeof _0x108d13==_0x5a6a51(0x243)&&!!_0x108d13&&!Array[_0x5a6a51(0x262)](_0x108d13);}var G;let K=G=class{constructor(_0x3a203a,_0x5c03db,_0x1ae844,_0x4e4e09,_0x5aee43){const _0x2fc97d=_0x5d6143;this[_0x2fc97d(0x22e)]=_0x3a203a,this[_0x2fc97d(0x206)]=_0x5c03db,this[_0x2fc97d(0x186)]=_0x1ae844,this['_inject']=_0x4e4e09,this[_0x2fc97d(0x175)]=_0x5aee43,this[_0x2fc97d(0x221)]();}[_0x5d6143(0x1f0)](){const _0x47896e=_0x5d6143;return this[_0x47896e(0x22e)][_0x47896e(0x257)]();}['getTableId'](){const _0x34063d=_0x5d6143;return this[_0x34063d(0x206)][_0x34063d(0x257)]();}[_0x5d6143(0x139)](){const _0x547f4f=_0x5d6143;return{...this[_0x547f4f(0x186)]};}[_0x5d6143(0x129)](){const _0x307b57=_0x5d6143;return this[_0x307b57(0x186)][_0x307b57(0x245)];}[_0x5d6143(0x1a0)](){const _0x7e6e54=_0x5d6143;return this[_0x7e6e54(0x186)][_0x7e6e54(0x27f)];}['getNumRows'](){const _0x556209=_0x5d6143;return this[_0x556209(0x186)]['endRow']-this[_0x556209(0x186)]['startRow']+0x1;}[_0x5d6143(0x16e)](){const _0xbf7d39=_0x5d6143;return this[_0xbf7d39(0x186)][_0xbf7d39(0x14f)]-this[_0xbf7d39(0x186)][_0xbf7d39(0x27f)]+0x1;}[_0x5d6143(0x1cb)](){const _0x2c1fd8=_0x5d6143;let _0x256aa2=this[_0x2c1fd8(0x1da)](),_0x2c80b7=this[_0x2c1fd8(0x1e9)](_0x256aa2),_0x13284b=[];for(let _0x29d1ac=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x245)];_0x29d1ac<=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x12f)];_0x29d1ac++){var _0x374b98;let _0x1fa684=(_0x374b98=_0x256aa2[_0x2c1fd8(0x26b)])==null?void 0x0:_0x374b98[_0x29d1ac],_0x15e595=[];for(let _0x4f7be5=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x27f)];_0x4f7be5<=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x14f)];_0x4f7be5++){let _0x5a277a=_0x2c80b7[_0x4f7be5];_0x15e595[_0x2c1fd8(0x1db)](_0x1fa684&&_0x5a277a?_0x3e649c(_0x256aa2,_0x1fa684,_0x5a277a):null);}_0x13284b[_0x2c1fd8(0x1db)](_0x15e595);}return _0x13284b;}[_0x5d6143(0x236)](){const _0x534f0b=_0x5d6143;var _0x38f3fd;return((_0x38f3fd=this[_0x534f0b(0x1cb)]()[0x0])==null?void 0x0:_0x38f3fd[0x0])??null;}[_0x5d6143(0x215)](_0x25f10e){const _0x5da3ad=_0x5d6143;return this[_0x5da3ad(0x27c)]([[_0x25f10e]]);}[_0x5d6143(0x27c)](_0x49fd2b){const _0x53f70a=_0x5d6143;let _0x230f9b=this['getNumRows'](),_0x462ae8=this[_0x53f70a(0x16e)]();if(_0x49fd2b[_0x53f70a(0x1e5)]>_0x230f9b||_0x49fd2b[_0x53f70a(0x185)](_0x60a482=>_0x60a482[_0x53f70a(0x1e5)]>_0x462ae8)){var _0x2411ac;throw Error(_0x53f70a(0x1ca)+_0x49fd2b[_0x53f70a(0x1e5)]+'x'+(((_0x2411ac=_0x49fd2b[0x0])==null?void 0x0:_0x2411ac[_0x53f70a(0x1e5)])??0x0)+_0x53f70a(0x228)+_0x230f9b+'x'+_0x462ae8+'.');}let _0x22e4b6=this[_0x53f70a(0x1da)](),_0x23262e=this['_getFieldIds'](_0x22e4b6),_0x50c81d=_0x49fd2b[_0x53f70a(0x22d)]((_0x4d2bd2,_0x574c20)=>_0x4d2bd2[_0x53f70a(0x1bd)]((_0x497f87,_0x4c0dfb)=>{const _0x24bf90=_0x53f70a;var _0xc69660;let _0x110b55=this[_0x24bf90(0x186)][_0x24bf90(0x245)]+_0x574c20,_0x5a422a=_0x23262e[this[_0x24bf90(0x186)][_0x24bf90(0x27f)]+_0x4c0dfb],_0x22a80c=(_0xc69660=_0x22e4b6[_0x24bf90(0x26b)])==null?void 0x0:_0xc69660[_0x110b55];if(!_0x5a422a||!_0x22a80c)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x22a80c,'fieldId':_0x5a422a,'value':_0x497f87};}));return this[_0x53f70a(0x175)][_0x53f70a(0x153)](_0x2ebbdb['id'],{'unitId':this[_0x53f70a(0x22e)][_0x53f70a(0x257)](),'tableId':this[_0x53f70a(0x206)][_0x53f70a(0x257)](),'patches':_0x50c81d,'source':_0x3929cb[_0x53f70a(0x1fc)]});}['clear'](){const _0x441bf7=_0x5d6143;return this[_0x441bf7(0x27c)](Array['from']({'length':this['getNumRows']()},()=>Array[_0x441bf7(0x1b4)]({'length':this['getNumColumns']()},()=>null)));}[_0x5d6143(0x282)](_0x3eb7df,_0x4f7f09,_0xa2a45b=this[_0x5d6143(0x17a)](),_0x3e7f58=this[_0x5d6143(0x16e)]()){const _0x550010=_0x5d6143;return this[_0x550010(0x14e)]['createInstance'](G,this[_0x550010(0x22e)],this[_0x550010(0x206)],{'startRow':this[_0x550010(0x186)][_0x550010(0x245)]+_0x3eb7df,'startColumn':this[_0x550010(0x186)][_0x550010(0x27f)]+_0x4f7f09,'endRow':this[_0x550010(0x186)]['startRow']+_0x3eb7df+_0xa2a45b-0x1,'endColumn':this[_0x550010(0x186)][_0x550010(0x27f)]+_0x4f7f09+_0x3e7f58-0x1},this[_0x550010(0x14e)]);}[_0x5d6143(0x1da)](){const _0x507c24=_0x5d6143;let _0x7851cc=this[_0x507c24(0x206)]['getTable']();if(!_0x7851cc)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return _0x50c331(_0x7851cc);}['_assertInBounds'](){const _0x4d4e4a=_0x5d6143;var _0x1e1e93;let _0x5a2f99=this[_0x4d4e4a(0x1da)](),_0x1d0c74=((_0x1e1e93=_0x5a2f99[_0x4d4e4a(0x147)])==null?void 0x0:_0x1e1e93['length'])??0x0,_0x599a2e=this[_0x4d4e4a(0x1e9)](_0x5a2f99)[_0x4d4e4a(0x1e5)];if(this[_0x4d4e4a(0x186)][_0x4d4e4a(0x245)]<0x0||this[_0x4d4e4a(0x186)][_0x4d4e4a(0x27f)]<0x0||this[_0x4d4e4a(0x186)][_0x4d4e4a(0x12f)]<this[_0x4d4e4a(0x186)][_0x4d4e4a(0x245)]||this[_0x4d4e4a(0x186)][_0x4d4e4a(0x14f)]<this['_range']['startColumn']||this['_range'][_0x4d4e4a(0x12f)]>=Math['max'](_0x1d0c74,0x1)||this['_range'][_0x4d4e4a(0x14f)]>=Math[_0x4d4e4a(0x18b)](_0x599a2e,0x1))throw Error(_0x4d4e4a(0x19c)+_0x1d0c74+_0x4d4e4a(0x1cc)+_0x599a2e+_0x4d4e4a(0x209)+JSON['stringify'](this['_range'])+'.');}['_getFieldIds'](_0x58f244){const _0x244611=_0x5d6143;return _0x58f244[_0x244611(0x1ef)][_0x244611(0x17f)](_0x2d2f97=>V(_0x58f244['fields'][_0x2d2f97]));}};K=G=z([R(0x4,_0x4d60b9)],K);function q(_0x17003a){'@babel/helpers - typeof';const _0x4ef503=_0x5d6143;return q=typeof Symbol==_0x4ef503(0x149)&&typeof Symbol[_0x4ef503(0x13c)]==_0x4ef503(0x14c)?function(_0x30acf2){return typeof _0x30acf2;}:function(_0x2e706e){const _0x6ca989=_0x4ef503;return _0x2e706e&&typeof Symbol==_0x6ca989(0x149)&&_0x2e706e['constructor']===Symbol&&_0x2e706e!==Symbol[_0x6ca989(0x183)]?_0x6ca989(0x14c):typeof _0x2e706e;},q(_0x17003a);}function pt(_0x179f86,_0x46fede){const _0x1e4683=_0x5d6143;if(q(_0x179f86)!='object'||!_0x179f86)return _0x179f86;var _0x2841ef=_0x179f86[Symbol[_0x1e4683(0x1bb)]];if(_0x2841ef!==void 0x0){var _0xfbb312=_0x2841ef['call'](_0x179f86,_0x46fede||_0x1e4683(0x14a));if(q(_0xfbb312)!=_0x1e4683(0x243))return _0xfbb312;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46fede===_0x1e4683(0x255)?String:Number)(_0x179f86);}function mt(_0x40f3c6){const _0x2207a5=_0x5d6143;var _0x97d21f=pt(_0x40f3c6,_0x2207a5(0x255));return q(_0x97d21f)==_0x2207a5(0x14c)?_0x97d21f:_0x97d21f+'';}function ht(_0x5f2cc6,_0x3e24c4,_0x5439a2){const _0x16ff81=_0x5d6143;return(_0x3e24c4=mt(_0x3e24c4))in _0x5f2cc6?Object[_0x16ff81(0x20b)](_0x5f2cc6,_0x3e24c4,{'value':_0x5439a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f2cc6[_0x3e24c4]=_0x5439a2,_0x5f2cc6;}var J;let Y=J=class extends _0x5e2686{constructor(_0x4f1564,_0x1523a8,_0x29f8db,_0x2654d7,_0x43f036,_0x57d896){const _0x162877=_0x5d6143;super(_0x2654d7),this[_0x162877(0x22e)]=_0x4f1564,this[_0x162877(0x206)]=_0x1523a8,this['_recordId']=_0x29f8db,this[_0x162877(0x12a)]=_0x2654d7,this[_0x162877(0x175)]=_0x43f036,this['_permissionService']=_0x57d896,ht(this,_0x162877(0x1b3),void 0x0),ht(this,_0x162877(0x20e),void 0x0),this[_0x162877(0x1b3)]=_0x4f1564['getId'](),this[_0x162877(0x20e)]=_0x1523a8[_0x162877(0x257)]();}['getBaseFacade'](){const _0x36a6c2=_0x5d6143;return this[_0x36a6c2(0x22e)];}['getTableFacade'](){const _0x3266c4=_0x5d6143;return this[_0x3266c4(0x206)];}[_0x5d6143(0x257)](){const _0x48457c=_0x5d6143;return this[_0x48457c(0x27d)];}[_0x5d6143(0x1ba)](){const _0x2aff8c=_0x5d6143;let _0x591407=this[_0x2aff8c(0x206)][_0x2aff8c(0x257)]();return new L(this['_base']['getId'](),_0x5aa11b(_0x591407,this[_0x2aff8c(0x27d)]),[_0x15e072(_0x591407)],this[_0x2aff8c(0x175)],this[_0x2aff8c(0x223)]);}[_0x5d6143(0x24b)](){const _0x5b2045=_0x5d6143;return{...this[_0x5b2045(0x1f5)](),'values':this['getValues']()};}[_0x5d6143(0x236)](_0x3fdb20){const _0x481b41=_0x5d6143;return V(this[_0x481b41(0x206)][_0x481b41(0x20a)]()[_0x481b41(0x202)][_0x3fdb20])?this[_0x481b41(0x1f5)]()['values'][_0x3fdb20]??null:null;}['getValues'](){const _0x256588=_0x5d6143;let _0x3feedf=this[_0x256588(0x206)][_0x256588(0x20a)]();return Object['fromEntries'](Object[_0x256588(0x197)](this[_0x256588(0x1f5)]()[_0x256588(0x1a2)])[_0x256588(0x17f)](([_0x2755b2])=>V(_0x3feedf[_0x256588(0x202)][_0x2755b2])));}[_0x5d6143(0x215)](_0x6db52f,_0x3a4667){const _0x42e0ef=_0x5d6143;let _0x41f5d1=this[_0x42e0ef(0x206)][_0x42e0ef(0x20a)]()[_0x42e0ef(0x202)][_0x6db52f];return this[_0x42e0ef(0x175)][_0x42e0ef(0x153)](_0xd989ce['id'],{'unitId':this[_0x42e0ef(0x22e)]['getId'](),'tableId':this[_0x42e0ef(0x206)][_0x42e0ef(0x257)](),'recordId':this[_0x42e0ef(0x27d)],'fieldId':_0x6db52f,'value':st(_0x41f5d1,_0x3a4667),'source':_0x3929cb['Facade']});}[_0x5d6143(0x268)](_0x49f411,_0x3615ac){const _0x36c185=_0x5d6143;return this['setValue'](_0x49f411,_0x3615ac[_0x36c185(0x1bd)](_0x3f4338=>({..._0x3f4338})));}[_0x5d6143(0x18a)](_0x98a893){const _0x40c123=_0x5d6143;this[_0x40c123(0x169)](_0x98a893);let _0x1658c0=this[_0x40c123(0x236)](_0x98a893);return Array[_0x40c123(0x262)](_0x1658c0)?_0x1658c0[_0x40c123(0x1bd)]((_0x5c018d,_0x5a1bf2)=>_t(_0x5c018d,_0x98a893,_0x5a1bf2)):[];}['deleteAttachments'](_0x4b56d9,_0x2d6ab5){const _0x426aa2=_0x5d6143;this[_0x426aa2(0x169)](_0x4b56d9);let _0x29a00b=new Set(_0x2d6ab5[_0x426aa2(0x1bd)](_0x16fbb7=>_0x16fbb7['id']));if(!_0x29a00b[_0x426aa2(0x1ee)])return!0x0;let _0x2cee2c=this[_0x426aa2(0x18a)](_0x4b56d9),_0x473cd5=_0x2cee2c[_0x426aa2(0x17f)](_0x1f893a=>!_0x29a00b[_0x426aa2(0x171)](_0x1f893a['id']));return _0x473cd5[_0x426aa2(0x1e5)]===_0x2cee2c[_0x426aa2(0x1e5)]||this[_0x426aa2(0x268)](_0x4b56d9,_0x473cd5);}['setValues'](_0x2cb7e9,_0xe86f36='id'){const _0x1d7a9f=_0x5d6143;let _0x37040d=this['_table']['getTable'](),_0x5a3995=[{'recordId':this[_0x1d7a9f(0x27d)],'values':H(_0x37040d,_0x2cb7e9,_0xe86f36)}];return this[_0x1d7a9f(0x175)][_0x1d7a9f(0x153)](_0x3c4e8d['id'],{'unitId':this[_0x1d7a9f(0x22e)][_0x1d7a9f(0x257)](),'tableId':this[_0x1d7a9f(0x206)]['getId'](),'patches':_0x5a3995,'source':_0x3929cb[_0x1d7a9f(0x1fc)]});}[_0x5d6143(0x274)](){const _0x270542=_0x5d6143;return this[_0x270542(0x175)][_0x270542(0x153)](_0x2f0c33['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x270542(0x206)][_0x270542(0x257)](),'recordId':this[_0x270542(0x27d)],'source':_0x3929cb[_0x270542(0x1fc)]});}['duplicate'](_0x3375c2){const _0x11bca4=_0x5d6143;let _0x19c570={...this[_0x11bca4(0x1f5)](),..._0x3375c2,'id':_0x563d6(0x6)};_0x19c570[_0x11bca4(0x1a2)]={..._0x19c570[_0x11bca4(0x1a2)],..._0x3375c2==null?void 0x0:_0x3375c2[_0x11bca4(0x1a2)]},Reflect[_0x11bca4(0x251)](_0x19c570['values'],_0xe50529);let _0x491f77=Date[_0x11bca4(0x21a)]();if(_0x19c570['orderKey']||=''+_0x491f77,_0x19c570[_0x11bca4(0x1ce)]||=_0x491f77,_0x19c570[_0x11bca4(0x278)]||=_0x491f77,!this[_0x11bca4(0x175)][_0x11bca4(0x153)](_0x5a3030['id'],{'unitId':this[_0x11bca4(0x22e)][_0x11bca4(0x257)](),'tableId':this['_table']['getId'](),'sourceRecordId':this['_recordId'],'record':_0x19c570,'source':_0x3929cb[_0x11bca4(0x1fc)]}))throw Error(_0x11bca4(0x195)+this[_0x11bca4(0x27d)]+'\x22.');return this[_0x11bca4(0x12a)][_0x11bca4(0x21d)](J,this[_0x11bca4(0x22e)],this['_table'],_0x19c570['id'],this[_0x11bca4(0x12a)]);}[_0x5d6143(0x22f)](_0x2c80b6){const _0x5f1150=_0x5d6143;return this[_0x5f1150(0x175)][_0x5f1150(0x153)](_0x5c34e7['id'],{'unitId':this[_0x5f1150(0x22e)]['getId'](),'tableId':this[_0x5f1150(0x206)][_0x5f1150(0x257)](),'recordId':this['_recordId'],'orderKey':_0x2c80b6});}['getLinkedRecordIds'](_0x4303c8){let _0x1c693=this['_getRecordLinkField'](_0x4303c8),_0x11fca8=this['getValue'](_0x1c693['id']);return _0x15a8ab(_0x11fca8);}['setLinkedRecordIds'](_0x4e998c,_0x55dca9){const _0x1aa167=_0x5d6143;let _0x34cd8c=this[_0x1aa167(0x26e)](_0x4e998c),_0x2dcb4a=_0x1808ed(_0x55dca9),_0x199eba=_0x529f3e(this[_0x1aa167(0x22e)][_0x1aa167(0x19f)]()[_0x1aa167(0x258)](),_0x34cd8c,_0x2dcb4a);if(!_0x199eba[_0x1aa167(0x263)])throw Error(_0x199eba['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this['_commandService'][_0x1aa167(0x153)](_0xd989ce['id'],{'unitId':this[_0x1aa167(0x22e)][_0x1aa167(0x257)](),'tableId':this[_0x1aa167(0x206)][_0x1aa167(0x257)](),'recordId':this[_0x1aa167(0x27d)],'fieldId':_0x4e998c,'value':_0x2dcb4a,'source':_0x3929cb[_0x1aa167(0x1fc)]});}[_0x5d6143(0x279)](_0x2a89f9,_0x163df8){const _0x3915f1=_0x5d6143;let _0x58cfe2=this[_0x3915f1(0x26e)](_0x2a89f9),_0x35cc18=_0x1220e3(_0x58cfe2);if(!_0x35cc18)throw Error(_0x3915f1(0x1d0)+_0x2a89f9+_0x3915f1(0x1d9));let _0x5abd29=this[_0x3915f1(0x1df)](_0x2a89f9);return _0x35cc18['multiple']&&_0x5abd29[_0x3915f1(0x219)](_0x163df8)?!0x0:this[_0x3915f1(0x1ed)](_0x2a89f9,_0x35cc18['multiple']?[..._0x5abd29,_0x163df8]:[_0x163df8]);}['removeLinkedRecord'](_0x545815,_0x45fc2a){const _0x34f332=_0x5d6143;let _0x2ce061=this['getLinkedRecordIds'](_0x545815);return!_0x2ce061[_0x34f332(0x219)](_0x45fc2a)||this['setLinkedRecordIds'](_0x545815,_0x2ce061['filter'](_0x1bc6e1=>_0x1bc6e1!==_0x45fc2a));}[_0x5d6143(0x23a)](_0x3e00d0){const _0x48812e=_0x5d6143;let _0x5452ed=this[_0x48812e(0x19e)](_0x3e00d0)[_0x48812e(0x220)][_0x48812e(0x265)](this[_0x48812e(0x27d)])??null;return _0x5452ed?this[_0x48812e(0x206)][_0x48812e(0x146)](_0x5452ed):null;}[_0x5d6143(0x156)](_0x228faa){const _0xcea233=_0x5d6143;return(this['_getHierarchyIndex'](_0x228faa)[_0xcea233(0x157)][_0xcea233(0x265)](this['_recordId'])??[])[_0xcea233(0x22d)](_0x5a004f=>{const _0x591e5a=_0xcea233;let _0x3110d2=this[_0x591e5a(0x206)][_0x591e5a(0x146)](_0x5a004f);return _0x3110d2?[_0x3110d2]:[];});}[_0x5d6143(0x12b)](_0x9abed6){const _0x48410a=_0x5d6143;let _0x4f5151=this[_0x48410a(0x19e)](_0x9abed6),_0x990f4e=[],_0x1b4e2e=_0x4f5151[_0x48410a(0x220)][_0x48410a(0x265)](this[_0x48410a(0x27d)])??null;for(;_0x1b4e2e;){let _0xbd0b82=this[_0x48410a(0x206)][_0x48410a(0x146)](_0x1b4e2e);_0xbd0b82&&_0x990f4e[_0x48410a(0x1db)](_0xbd0b82),_0x1b4e2e=_0x4f5151[_0x48410a(0x220)]['get'](_0x1b4e2e)??null;}return _0x990f4e;}[_0x5d6143(0x199)](_0x271c74){const _0x156406=_0x5d6143;let _0x57ab54=this[_0x156406(0x19e)](_0x271c74),_0x2f8afd=_0x57ab54['orderedRecordIds'][_0x156406(0x1b2)](this[_0x156406(0x27d)]),_0x28d57e=_0x57ab54[_0x156406(0x13f)][_0x156406(0x171)](this[_0x156406(0x27d)])?this[_0x156406(0x193)](_0x57ab54['childrenByParentId'],this['_recordId']):[];return _0x2f8afd<0x0?[]:_0x28d57e['flatMap'](_0x3dd05d=>{const _0x1b3a7c=_0x156406;let _0x48fbbc=this[_0x1b3a7c(0x206)][_0x1b3a7c(0x146)](_0x3dd05d);return _0x48fbbc?[_0x48fbbc]:[];});}[_0x5d6143(0x235)](_0x1d9d6a,_0xa97dd3,_0x5413ef){const _0x12eb30=_0x5d6143;return this[_0x12eb30(0x175)][_0x12eb30(0x153)](_0x1aea4c['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x12eb30(0x206)][_0x12eb30(0x257)](),'fieldId':_0x1d9d6a,'recordId':this[_0x12eb30(0x27d)],'parentRecordId':_0xa97dd3,'orderKey':_0x5413ef,'source':_0x3929cb[_0x12eb30(0x1fc)]});}[_0x5d6143(0x27b)](_0x55a6c5,_0x3f833c,_0x2d98b9='id',_0x11229b){const _0x4daf28=_0x5d6143;let _0x3c4cac=this[_0x4daf28(0x206)]['getTable'](),_0x1ad9da=Date[_0x4daf28(0x21a)](),_0x399dc1={..._0x11229b,'id':_0x563d6(0x6),'values':H(_0x3c4cac,_0x3f833c,_0x2d98b9),'orderKey':(_0x11229b==null?void 0x0:_0x11229b[_0x4daf28(0x256)])||''+_0x1ad9da,'createdAt':(_0x11229b==null?void 0x0:_0x11229b['createdAt'])||_0x1ad9da,'updatedAt':(_0x11229b==null?void 0x0:_0x11229b[_0x4daf28(0x278)])||_0x1ad9da};if(!this[_0x4daf28(0x175)][_0x4daf28(0x153)](_0x550a38['id'],{'unitId':this[_0x4daf28(0x22e)]['getId'](),'tableId':this[_0x4daf28(0x206)][_0x4daf28(0x257)](),'fieldId':_0x55a6c5,'parentRecordId':this['_recordId'],'record':_0x399dc1,'source':_0x3929cb[_0x4daf28(0x1fc)]}))throw Error(_0x4daf28(0x23d)+this[_0x4daf28(0x27d)]+'\x22.');return this['_injector']['createInstance'](J,this[_0x4daf28(0x22e)],this[_0x4daf28(0x206)],_0x399dc1['id'],this['_injector']);}[_0x5d6143(0x19e)](_0x335021){const _0x16c1fc=_0x5d6143;return _0xbf13b7(this[_0x16c1fc(0x206)][_0x16c1fc(0x20a)](),_0x335021);}[_0x5d6143(0x193)](_0xb923bd,_0xd0722e){let _0x40c73c=[],_0x14c02a=_0x5aa5fc=>{const _0x3ab4d5=_0xcda4;for(let _0x434c98 of _0xb923bd[_0x3ab4d5(0x265)](_0x5aa5fc)??[])_0x40c73c['push'](_0x434c98),_0x14c02a(_0x434c98);};return _0x14c02a(_0xd0722e),_0x40c73c;}[_0x5d6143(0x1f5)](){const _0x3c74af=_0x5d6143;let _0x5b7b0e=this[_0x3c74af(0x206)][_0x3c74af(0x20a)]()[_0x3c74af(0x19b)][this['_recordId']];if(!_0x5b7b0e)throw Error(_0x3c74af(0x204)+this[_0x3c74af(0x27d)]+_0x3c74af(0x218));return _0x5b7b0e;}[_0x5d6143(0x26e)](_0x5da9f1){const _0x500ba1=_0x5d6143;let _0x27d474=this[_0x500ba1(0x206)][_0x500ba1(0x20a)]()[_0x500ba1(0x202)][_0x5da9f1];if(!_0x27d474||_0x27d474[_0x500ba1(0x1a7)]!==_0xe1377b[_0x500ba1(0x25d)])throw Error(_0x500ba1(0x27e)+_0x5da9f1+_0x500ba1(0x128));return _0x27d474;}[_0x5d6143(0x169)](_0x3e33e7){const _0x4de600=_0x5d6143;let _0x20e38a=this[_0x4de600(0x206)][_0x4de600(0x20a)]()[_0x4de600(0x202)][_0x3e33e7];if(!_0x20e38a||_0x20e38a[_0x4de600(0x1a7)]!==_0xe1377b[_0x4de600(0x127)])throw Error('[FRecord]:\x20field\x20\x22'+_0x3e33e7+_0x4de600(0x259));return _0x20e38a;}};Y=J=z([R(0x4,_0x4d60b9),R(0x5,_0x4ad80a)],Y);function gt(_0x432fe5){const _0x3a1bad=_0x5d6143;return!!(_0x432fe5&&typeof _0x432fe5==_0x3a1bad(0x243)&&'id'in _0x432fe5&&typeof _0x432fe5['id']=='string'&&_0x3a1bad(0x174)in _0x432fe5&&typeof _0x432fe5[_0x3a1bad(0x174)]==_0x3a1bad(0x255));}function _t(_0x5b7086,_0x2bf81d,_0x53a8b5){const _0x428858=_0x5d6143;if(!gt(_0x5b7086))throw Error(_0x428858(0x145)+_0x53a8b5+_0x428858(0x15d)+_0x2bf81d+_0x428858(0x1bf));return{..._0x5b7086};}let X=class{constructor(_0x660691,_0x16b1b6,_0x1b616b,_0x25d554,_0x10a7ad,_0x121d5f,_0x8f5551){const _0x2f45ec=_0x5d6143;this[_0x2f45ec(0x22e)]=_0x660691,this[_0x2f45ec(0x206)]=_0x16b1b6,this[_0x2f45ec(0x15b)]=_0x1b616b,this[_0x2f45ec(0x12a)]=_0x25d554,this['_commandService']=_0x10a7ad,this['_permissionService']=_0x121d5f,this[_0x2f45ec(0x1e4)]=_0x8f5551;}[_0x5d6143(0x257)](){const _0x302e55=_0x5d6143;return this[_0x302e55(0x15b)];}['getPermission'](){const _0xe67627=_0x5d6143;let _0x54c239=this[_0xe67627(0x206)]['getId']();return new L(this[_0xe67627(0x22e)][_0xe67627(0x257)](),_0x1d4c7d(_0x54c239,this[_0xe67627(0x15b)]),[_0x15e072(_0x54c239)],this[_0xe67627(0x175)],this[_0xe67627(0x223)]);}[_0x5d6143(0x154)](){const _0x55c401=_0x5d6143;return this[_0x55c401(0x15c)]();}[_0x5d6143(0x177)](){const _0x26d7a6=_0x5d6143;return this[_0x26d7a6(0x15c)]()[_0x26d7a6(0x174)];}['getType'](){const _0x3d0eb0=_0x5d6143;return this[_0x3d0eb0(0x15c)]()[_0x3d0eb0(0x1a7)];}[_0x5d6143(0x140)](_0x7c2a2a){const _0x2d3e32=_0x5d6143;return this[_0x2d3e32(0x175)][_0x2d3e32(0x153)](_0x5835d9['id'],{'unitId':this[_0x2d3e32(0x22e)][_0x2d3e32(0x257)](),'tableId':this[_0x2d3e32(0x206)][_0x2d3e32(0x257)](),'viewId':this[_0x2d3e32(0x15b)],'name':_0x7c2a2a});}['getConfig'](){const _0x517950=_0x5d6143;let _0x3f7f7c=this[_0x517950(0x24a)](),_0x1239a0=this['_getView']()['config'];switch(_0x3f7f7c){case _0x1753fc[_0x517950(0x261)]:return _0x1239a0;case _0x1753fc[_0x517950(0x18f)]:return _0x1239a0;case _0x1753fc[_0x517950(0x1c9)]:return _0x1239a0;case _0x1753fc[_0x517950(0x1d2)]:return _0x1239a0;case _0x1753fc[_0x517950(0x25e)]:return _0x1239a0;default:return _0x1239a0;}}[_0x5d6143(0x284)](_0x459b2f){const _0x32ed7c=_0x5d6143;return this[_0x32ed7c(0x175)]['syncExecuteCommand'](_0x5010e8['id'],{'unitId':this[_0x32ed7c(0x22e)]['getId'](),'tableId':this[_0x32ed7c(0x206)][_0x32ed7c(0x257)](),'viewId':this[_0x32ed7c(0x15b)],'patch':_0x459b2f});}[_0x5d6143(0x16a)](){const _0x8d16ef=_0x5d6143;var _0x2da1cb;return _0x59ca43[_0x8d16ef(0x13a)](((_0x2da1cb=this[_0x8d16ef(0x15c)]()['config'][_0x8d16ef(0x264)])==null?void 0x0:_0x2da1cb['rules'])??[]);}['setConditionalColorRules'](_0xe9d108){const _0x4679a2=_0x5d6143;return this[_0x4679a2(0x175)]['syncExecuteCommand'](_0x112745['id'],{'unitId':this['_base'][_0x4679a2(0x257)](),'tableId':this[_0x4679a2(0x206)][_0x4679a2(0x257)](),'viewId':this[_0x4679a2(0x15b)],'type':_0x18e9de[_0x4679a2(0x131)],'rules':_0xe9d108});}['addConditionalColorRule'](_0x5ac5e6){const _0x4d6e90=_0x5d6143;return this[_0x4d6e90(0x175)][_0x4d6e90(0x153)](_0x112745['id'],{'unitId':this[_0x4d6e90(0x22e)][_0x4d6e90(0x257)](),'tableId':this['_table']['getId'](),'viewId':this[_0x4d6e90(0x15b)],'type':_0x18e9de[_0x4d6e90(0x24e)],'rule':_0x5ac5e6});}[_0x5d6143(0x167)](_0x384fcc){const _0x4313f1=_0x5d6143;return this[_0x4313f1(0x175)]['syncExecuteCommand'](_0x112745['id'],{'unitId':this[_0x4313f1(0x22e)]['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x4313f1(0x15b)],'type':_0x18e9de[_0x4313f1(0x137)],'ruleId':_0x384fcc});}[_0x5d6143(0x24f)](){const _0x30b59c=_0x5d6143;return this['_commandService']['syncExecuteCommand'](_0x112745['id'],{'unitId':this[_0x30b59c(0x22e)]['getId'](),'tableId':this[_0x30b59c(0x206)][_0x30b59c(0x257)](),'viewId':this[_0x30b59c(0x15b)],'type':_0x18e9de[_0x30b59c(0x12c)]});}[_0x5d6143(0x1e7)](){const _0x11e656=_0x5d6143;return this[_0x11e656(0x15c)]()[_0x11e656(0x17f)]??null;}['setFilter'](_0x50b358){const _0x4fbd7e=_0x5d6143;return this[_0x4fbd7e(0x175)][_0x4fbd7e(0x153)](_0x50d350['id'],{'unitId':this[_0x4fbd7e(0x22e)]['getId'](),'tableId':this[_0x4fbd7e(0x206)][_0x4fbd7e(0x257)](),'viewId':this[_0x4fbd7e(0x15b)],'filter':_0x50b358});}[_0x5d6143(0x252)](){const _0xb365de=_0x5d6143;return this[_0xb365de(0x15c)]()[_0xb365de(0x25a)]??[];}[_0x5d6143(0x270)](_0x869bd3){const _0x3d545f=_0x5d6143;return this['_commandService'][_0x3d545f(0x153)](_0x217a2c['id'],{'unitId':this[_0x3d545f(0x22e)][_0x3d545f(0x257)](),'tableId':this[_0x3d545f(0x206)][_0x3d545f(0x257)](),'viewId':this['_viewId'],'sort':_0x869bd3});}[_0x5d6143(0x1b1)](){const _0x4507fa=_0x5d6143;return this[_0x4507fa(0x15c)]()[_0x4507fa(0x141)]??[];}['setGroup'](_0x4a782c){const _0x1af6c9=_0x5d6143;return this[_0x1af6c9(0x175)][_0x1af6c9(0x153)](_0x439ee7['id'],{'unitId':this[_0x1af6c9(0x22e)][_0x1af6c9(0x257)](),'tableId':this['_table'][_0x1af6c9(0x257)](),'viewId':this[_0x1af6c9(0x15b)],'group':_0x4a782c});}['getFieldSettings'](_0x56058b){const _0xc8a452=_0x5d6143;var _0x3c475a;return V(this['_table'][_0xc8a452(0x20a)]()[_0xc8a452(0x202)][_0x56058b])?((_0x3c475a=this[_0xc8a452(0x15c)]()[_0xc8a452(0x13b)])==null?void 0x0:_0x3c475a[_0x56058b])??{}:{};}[_0x5d6143(0x17d)](){const _0x31499a=_0x5d6143;let _0x3112f4=this[_0x31499a(0x206)]['getTable'](),_0x2cc031=this['_getView']();return(_0x2cc031[_0x31499a(0x1ef)]??_0x3112f4[_0x31499a(0x1ef)])[_0x31499a(0x17f)](_0x2b8457=>{const _0x2c3678=_0x31499a;var _0xd837ee;let _0x56fbfa=_0x3112f4[_0x2c3678(0x202)][_0x2b8457];return V(_0x56fbfa)&&!((_0xd837ee=_0x2cc031[_0x2c3678(0x13b)])!=null&&(_0xd837ee=_0xd837ee[_0x2b8457])!=null&&_0xd837ee['hidden']);})['map'](_0x2ffbfe=>this[_0x31499a(0x12a)]['createInstance'](B,this[_0x31499a(0x22e)],this[_0x31499a(0x206)],_0x2ffbfe));}[_0x5d6143(0x15a)](_0x1acab2,_0x2aa292){const _0x4380bc=_0x5d6143;return V(this[_0x4380bc(0x206)]['getTable']()[_0x4380bc(0x202)][_0x1acab2])?this['_commandService'][_0x4380bc(0x153)](_0x41519f['id'],{'unitId':this[_0x4380bc(0x22e)][_0x4380bc(0x257)](),'tableId':this[_0x4380bc(0x206)]['getId'](),'viewId':this[_0x4380bc(0x15b)],'fieldId':_0x1acab2,'visible':_0x2aa292}):!0x1;}[_0x5d6143(0x22a)](_0x42d49e,_0x4c666b){const _0x257984=_0x5d6143;return V(this[_0x257984(0x206)][_0x257984(0x20a)]()['fields'][_0x42d49e])?this['_commandService'][_0x257984(0x153)](_0x249729['id'],{'unitId':this['_base'][_0x257984(0x257)](),'tableId':this[_0x257984(0x206)][_0x257984(0x257)](),'viewId':this[_0x257984(0x15b)],'fieldId':_0x42d49e,'width':_0x4c666b}):!0x1;}[_0x5d6143(0x168)](_0x13046b,_0x30a5ff){const _0x3a9164=_0x5d6143;let _0x1d3116=this[_0x3a9164(0x206)][_0x3a9164(0x20a)](),_0x22ef60=_0x30a5ff['beforeFieldId']??_0x30a5ff[_0x3a9164(0x19a)];return!V(_0x1d3116['fields'][_0x13046b])||!_0x22ef60||!V(_0x1d3116[_0x3a9164(0x202)][_0x22ef60])?!0x1:this[_0x3a9164(0x175)][_0x3a9164(0x153)](_0x354098['id'],{'unitId':this[_0x3a9164(0x22e)]['getId'](),'tableId':this[_0x3a9164(0x206)][_0x3a9164(0x257)](),'viewId':this[_0x3a9164(0x15b)],'fieldId':_0x13046b,'target':_0x30a5ff});}[_0x5d6143(0x1fb)](_0x240d80){const _0x580553=_0x5d6143;return this[_0x580553(0x175)][_0x580553(0x153)](_0x2c00c8['id'],{'unitId':this[_0x580553(0x22e)][_0x580553(0x257)](),'tableId':this[_0x580553(0x206)][_0x580553(0x257)](),'viewId':this['_viewId'],'target':_0x240d80});}[_0x5d6143(0x274)](){const _0x3f40be=_0x5d6143;return this[_0x3f40be(0x175)][_0x3f40be(0x153)](_0x23ad3a['id'],{'unitId':this[_0x3f40be(0x22e)]['getId'](),'tableId':this['_table'][_0x3f40be(0x257)](),'viewId':this[_0x3f40be(0x15b)]});}[_0x5d6143(0x1a6)](){const _0x3bbd9b=_0x5d6143;return this[_0x3bbd9b(0x1e4)][_0x3bbd9b(0x1a6)](this['_base'][_0x3bbd9b(0x19f)]()[_0x3bbd9b(0x258)](),this['_table'][_0x3bbd9b(0x257)](),this[_0x3bbd9b(0x15b)]);}['_getView'](){const _0x1edabf=_0x5d6143;let _0x5e9f59=this[_0x1edabf(0x206)][_0x1edabf(0x20a)]()['views'][this[_0x1edabf(0x15b)]];if(!_0x5e9f59)throw Error('[FView]:\x20view\x20\x22'+this[_0x1edabf(0x15b)]+_0x1edabf(0x218));return _0x5e9f59;}};X=z([R(0x4,_0x4d60b9),R(0x5,_0x4ad80a),R(0x6,_0x8d78f1)],X);let Z=class{constructor(_0x38181c,_0x256c88,_0x10848b,_0x44395a,_0x51ae3d,_0x33ce30){const _0x1f8e3c=_0x5d6143;this[_0x1f8e3c(0x22e)]=_0x38181c,this[_0x1f8e3c(0x187)]=_0x256c88,this[_0x1f8e3c(0x12a)]=_0x10848b,this[_0x1f8e3c(0x175)]=_0x44395a,this['_permissionService']=_0x51ae3d,this[_0x1f8e3c(0x1e4)]=_0x33ce30;}[_0x5d6143(0x19f)](){const _0xdfa2b4=_0x5d6143;return this['_base'][_0xdfa2b4(0x19f)]();}['getTable'](){return this['_getTable']();}[_0x5d6143(0x257)](){return this['_tableId'];}[_0x5d6143(0x1ba)](){const _0x541614=_0x5d6143;return new L(this[_0x541614(0x19f)]()[_0x541614(0x135)](),_0x15e072(this['_tableId']),[],this[_0x541614(0x175)],this[_0x541614(0x223)]);}[_0x5d6143(0x1c8)](){const _0xaca4e=_0x5d6143;return _0x254f03(this[_0xaca4e(0x1da)]());}[_0x5d6143(0x1c6)](_0x538270){const _0x586b11=_0x5d6143;return this[_0x586b11(0x175)][_0x586b11(0x153)](_0x2b74e0['id'],{'unitId':this[_0x586b11(0x22e)][_0x586b11(0x257)](),'tableId':this[_0x586b11(0x187)],'fieldId':_0x538270});}['getName'](){const _0x11dd08=_0x5d6143;return this['_getTable']()[_0x11dd08(0x174)];}[_0x5d6143(0x26a)](){const _0x47471e=_0x5d6143;let _0x11768c=this[_0x47471e(0x22e)]['getBase']()[_0x47471e(0x258)]();return _0x30d832(this[_0x47471e(0x1da)](),_0x11768c);}['setName'](_0x26c054){const _0x4f5e50=_0x5d6143;let _0xd8f393=_0x1252cc(this[_0x4f5e50(0x22e)][_0x4f5e50(0x19f)]()[_0x4f5e50(0x258)](),_0x26c054,this[_0x4f5e50(0x187)]);if(!_0xd8f393[_0x4f5e50(0x263)])throw Error(_0x4f5e50(0x142)+_0x26c054+_0x4f5e50(0x26f)+_0x42fde6+'\x20'+_0xd8f393[_0x4f5e50(0x1d7)]);return this[_0x4f5e50(0x175)][_0x4f5e50(0x153)](_0x2f9fb9['id'],{'unitId':this[_0x4f5e50(0x22e)]['getId'](),'tableId':this[_0x4f5e50(0x187)],'name':_0x26c054});}[_0x5d6143(0x246)](_0x516826,_0x3fbce9){const _0x4fb981=_0x5d6143;let _0x120e93=this[_0x4fb981(0x22e)][_0x4fb981(0x19f)]()[_0x4fb981(0x258)](),_0x3c0aac=this[_0x4fb981(0x1da)]();if(_0x3fbce9){let _0x2ff58a=this[_0x4fb981(0x1e4)]['getProjection'](_0x120e93,this[_0x4fb981(0x187)],_0x3fbce9),_0x1d411c=_0x3c0aac[_0x4fb981(0x267)][_0x3fbce9],_0x3f2aa5=_0x516826[_0x4fb981(0x23b)]??Tt(_0x3c0aac,_0x1d411c,_0x2ff58a),_0x2ca55a='rows'in _0x2ff58a&&Array['isArray'](_0x2ff58a[_0x4fb981(0x22c)])?_0x2ff58a[_0x4fb981(0x22c)]:[];return _0x260bc4({..._0x516826,'table':_0x3c0aac,'fieldIds':_0x3f2aa5,'rows':_0x2ca55a});}let _0x387940=(_0x3c0aac['recordOrder']?_0x3c0aac['recordOrder'][_0x4fb981(0x1bd)](_0x251dfa=>_0x3c0aac[_0x4fb981(0x19b)][_0x251dfa]):Object[_0x4fb981(0x1a2)](_0x3c0aac[_0x4fb981(0x19b)])[_0x4fb981(0x25a)]((_0x1e2950,_0x4fd50d)=>_0x1e2950['orderKey'][_0x4fb981(0x134)](_0x4fd50d[_0x4fb981(0x256)])))[_0x4fb981(0x17f)](_0x3a9cf9=>_0x3a9cf9)[_0x4fb981(0x1bd)](_0x49303d=>({'recordId':_0x49303d['id'],'values':_0x49303d['values']})),_0x404398=_0x516826[_0x4fb981(0x23b)]??_0x3c0aac[_0x4fb981(0x1ef)][_0x4fb981(0x17f)](_0x20267e=>V(_0x3c0aac[_0x4fb981(0x202)][_0x20267e]));return _0x260bc4({..._0x516826,'table':_0x3c0aac,'fieldIds':_0x404398,'rows':_0x387940});}[_0x5d6143(0x143)](){const _0x3cbec9=_0x5d6143;return this['_getTable']()[_0x3cbec9(0x1c1)];}[_0x5d6143(0x1b7)](){const _0x45c76a=_0x5d6143;let _0x593b4d=this['_getTable']();return _0x593b4d['fieldOrder'][_0x45c76a(0x1bd)](_0x2598ae=>_0x593b4d[_0x45c76a(0x202)][_0x2598ae])['filter'](V)[_0x45c76a(0x1bd)](_0x426dd1=>this[_0x45c76a(0x12a)][_0x45c76a(0x21d)](B,this[_0x45c76a(0x22e)],this,_0x426dd1['id']));}[_0x5d6143(0x271)](_0x149a53){const _0x127807=_0x5d6143;let _0x1bf895=this['_getTable']()[_0x127807(0x202)][_0x149a53];return V(_0x1bf895)?this[_0x127807(0x12a)]['createInstance'](B,this[_0x127807(0x22e)],this,_0x1bf895['id']):null;}[_0x5d6143(0x160)](_0x39c61b){const _0x11b923=_0x5d6143;let _0x3c0b21=this[_0x11b923(0x1da)]()[_0x11b923(0x202)],_0x319873=Object['values'](_0x3c0b21)[_0x11b923(0x233)](_0x48b23b=>V(_0x48b23b)&&_0x48b23b[_0x11b923(0x174)]===_0x39c61b);return _0x319873?this['_injector']['createInstance'](B,this[_0x11b923(0x22e)],this,_0x319873['id']):null;}[_0x5d6143(0x194)](){const _0x3f7dcb=_0x5d6143;let _0x22eeb0=this[_0x3f7dcb(0x1da)]()['primaryFieldId'];return this[_0x3f7dcb(0x12a)][_0x3f7dcb(0x21d)](B,this['_base'],this,_0x22eeb0);}['addField'](_0x20d1b0,_0x4dc07b,_0x35aaf5){const _0x44b5de=_0x5d6143;var _0x1ec305,_0x50e818;if(!Object[_0x44b5de(0x1a2)](_0xe1377b)['some'](_0x17c292=>_0x17c292===_0x4dc07b))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x4dc07b)+'\x22.');if(_0x4dc07b===_0xe1377b[_0x44b5de(0x1c7)]&&this[_0x44b5de(0x1b9)](_0x20d1b0,_0x35aaf5),_0x4dc07b===_0xe1377b[_0x44b5de(0x25d)]&&(typeof(_0x35aaf5==null||(_0x1ec305=_0x35aaf5[_0x44b5de(0x144)])==null||(_0x1ec305=_0x1ec305['config'])==null?void 0x0:_0x1ec305['targetTableId'])!=_0x44b5de(0x255)||typeof _0x35aaf5['field'][_0x44b5de(0x1f8)][_0x44b5de(0x1d3)]!=_0x44b5de(0x16f)))throw Error(_0x44b5de(0x1e8));let _0x5cb6e0={..._0x35aaf5==null?void 0x0:_0x35aaf5[_0x44b5de(0x144)],'id':_0x563d6(0x6),'name':_0x20d1b0,'type':_0x4dc07b,'config':(_0x35aaf5==null||(_0x50e818=_0x35aaf5[_0x44b5de(0x144)])==null?void 0x0:_0x50e818['config'])??{}};if(!this[_0x44b5de(0x175)]['syncExecuteCommand'](_0x27aa7f['id'],{'unitId':this[_0x44b5de(0x22e)][_0x44b5de(0x257)](),'tableId':this[_0x44b5de(0x187)],'field':_0x5cb6e0,'index':_0x35aaf5==null?void 0x0:_0x35aaf5[_0x44b5de(0x1f6)]}))throw Error(_0x44b5de(0x21e)+_0x20d1b0+'\x22');return this[_0x44b5de(0x12a)][_0x44b5de(0x21d)](B,this[_0x44b5de(0x22e)],this,_0x5cb6e0['id']);}[_0x5d6143(0x1b9)](_0x2d45ef,_0x1634dc){const _0x2cf338=_0x5d6143;var _0x3a5c06;if(!_0x1634dc||!(_0x2cf338(0x21f)in _0x1634dc)||!Array[_0x2cf338(0x262)](_0x1634dc[_0x2cf338(0x21f)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x53480a=this[_0x2cf338(0x175)]['syncExecuteCommand'](_0x496639['id'],{'unitId':this[_0x2cf338(0x22e)][_0x2cf338(0x257)](),'tableId':this[_0x2cf338(0x187)],'formula':String(((_0x3a5c06=_0x1634dc[_0x2cf338(0x144)])==null||(_0x3a5c06=_0x3a5c06['config'])==null?void 0x0:_0x3a5c06['formula'])??'')});if(!_0x53480a[_0x2cf338(0x263)])throw Error(_0x53480a[_0x2cf338(0x1d7)]??_0x2cf338(0x138));if(_0x1634dc['externalReferences'][_0x2cf338(0x1e5)]>0x0&&!this[_0x2cf338(0x175)][_0x2cf338(0x153)](_0x5da99d['id'],{'unitId':this[_0x2cf338(0x22e)][_0x2cf338(0x257)](),'references':_0x1634dc[_0x2cf338(0x21f)]}))throw Error(_0x2cf338(0x23f)+_0x2d45ef+'\x22');}[_0x5d6143(0x1c2)](){const _0x902090=_0x5d6143;return this['_resolveRecordIds']()[_0x902090(0x1bd)](_0x50c1cc=>this[_0x902090(0x12a)][_0x902090(0x21d)](Y,this['_base'],this,_0x50c1cc,this[_0x902090(0x12a)]));}[_0x5d6143(0x146)](_0x24ade2){const _0x5c4f11=_0x5d6143;return this[_0x5c4f11(0x1da)]()[_0x5c4f11(0x19b)][_0x24ade2]?this['_injector'][_0x5c4f11(0x21d)](Y,this[_0x5c4f11(0x22e)],this,_0x24ade2,this[_0x5c4f11(0x12a)]):null;}[_0x5d6143(0x250)](_0x3ef09c={}){const _0x265490=_0x5d6143;let _0x201762=this[_0x265490(0x1da)](),_0x544d31=this[_0x265490(0x234)](_0x3ef09c),_0x2c5719=Math['max'](0x0,_0x3ef09c['offset']??0x0),_0x525062=_0x3ef09c[_0x265490(0x253)]==null?null:Math[_0x265490(0x18b)](0x0,_0x3ef09c['limit']),_0x5aa4b2=yt(_0x544d31[_0x265490(0x1bd)](_0x592b0e=>_0x201762[_0x265490(0x19b)][_0x592b0e])[_0x265490(0x17f)](_0xa1861f=>xt(_0xa1861f,_0x201762,_0x3ef09c[_0x265490(0x17f)])),_0x201762,_0x3ef09c[_0x265490(0x25a)]);return{'records':vt(_0x5aa4b2,_0x3ef09c)[_0x265490(0x1bd)](_0x12cbff=>this[_0x265490(0x12a)]['createInstance'](Y,this[_0x265490(0x22e)],this,_0x12cbff['id'],this['_injector'])),'total':_0x5aa4b2[_0x265490(0x1e5)],'offset':_0x2c5719,'limit':_0x525062,'hasMore':_0x525062!=null&&_0x2c5719+_0x525062<_0x5aa4b2[_0x265490(0x1e5)]};}[_0x5d6143(0x24c)](_0x4072c1,_0x38efa0='id',_0x251bdd){const _0x169a90=_0x5d6143;let _0x1451b5=this['_getTable'](),_0x4d021b=Date[_0x169a90(0x21a)](),_0x35eb0e={..._0x251bdd,'id':_0x563d6(0x6),'values':H(_0x1451b5,_0x4072c1,_0x38efa0),'orderKey':(_0x251bdd==null?void 0x0:_0x251bdd[_0x169a90(0x256)])||''+_0x4d021b,'createdAt':(_0x251bdd==null?void 0x0:_0x251bdd[_0x169a90(0x1ce)])||_0x4d021b,'updatedAt':(_0x251bdd==null?void 0x0:_0x251bdd[_0x169a90(0x278)])||_0x4d021b};if(!this[_0x169a90(0x175)][_0x169a90(0x153)](_0x1b1cbb['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x169a90(0x187)],'record':_0x35eb0e,'source':_0x3929cb[_0x169a90(0x1fc)]}))throw Error(_0x169a90(0x1f7)+_0x35eb0e['id']+'\x22');return this[_0x169a90(0x12a)][_0x169a90(0x21d)](Y,this[_0x169a90(0x22e)],this,_0x35eb0e['id'],this[_0x169a90(0x12a)]);}[_0x5d6143(0x163)](_0x590e2b){const _0x490d60=_0x5d6143;if(!_0x590e2b[_0x490d60(0x1e5)])return[];let _0x3f30aa=this['_getTable'](),_0x599aca=Date[_0x490d60(0x21a)](),_0x4961ce=_0x590e2b[_0x490d60(0x1bd)]((_0x474bbb,_0x1020d6)=>{const _0x652086=_0x490d60;var _0x6b94dc,_0xbae8ed,_0x35a420;return{..._0x474bbb[_0x652086(0x155)],'id':_0x563d6(0x6),'values':H(_0x3f30aa,_0x474bbb[_0x652086(0x1a2)],_0x474bbb[_0x652086(0x133)]??'id'),'orderKey':((_0x6b94dc=_0x474bbb['record'])==null?void 0x0:_0x6b94dc['orderKey'])||''+(_0x599aca+_0x1020d6),'createdAt':((_0xbae8ed=_0x474bbb[_0x652086(0x155)])==null?void 0x0:_0xbae8ed[_0x652086(0x1ce)])||_0x599aca,'updatedAt':((_0x35a420=_0x474bbb[_0x652086(0x155)])==null?void 0x0:_0x35a420[_0x652086(0x278)])||_0x599aca};});if(!this[_0x490d60(0x175)]['syncExecuteCommand'](_0x15e471['id'],{'unitId':this[_0x490d60(0x22e)][_0x490d60(0x257)](),'tableId':this[_0x490d60(0x187)],'records':_0x4961ce,'source':_0x3929cb['Facade']}))throw Error(_0x490d60(0x1ae));return _0x4961ce[_0x490d60(0x1bd)](_0x5cae47=>this[_0x490d60(0x12a)][_0x490d60(0x21d)](Y,this[_0x490d60(0x22e)],this,_0x5cae47['id'],this['_injector']));}[_0x5d6143(0x1ad)](_0x23a164){const _0x45d1fb=_0x5d6143;return!_0x23a164['length']||this['_commandService']['syncExecuteCommand'](_0x3343b8['id'],{'unitId':this[_0x45d1fb(0x22e)][_0x45d1fb(0x257)](),'tableId':this[_0x45d1fb(0x187)],'recordIds':_0x23a164,'source':_0x3929cb[_0x45d1fb(0x1fc)]});}[_0x5d6143(0x139)](_0x3f8af1,_0x57be8e,_0x2335a4=0x1,_0x563794=0x1){const _0x43186f=_0x5d6143;return this['_injector'][_0x43186f(0x21d)](K,this[_0x43186f(0x22e)],this,{'startRow':_0x3f8af1,'endRow':_0x3f8af1+_0x2335a4-0x1,'startColumn':_0x57be8e,'endColumn':_0x57be8e+_0x563794-0x1},this[_0x43186f(0x12a)]);}['getDataRange'](){const _0x57d9d7=_0x5d6143;var _0xd5a7c4;let _0x2491be=_0x50c331(this[_0x57d9d7(0x1da)]()),_0x580e9f=((_0xd5a7c4=_0x2491be['recordOrder'])==null?void 0x0:_0xd5a7c4[_0x57d9d7(0x1e5)])??0x0,_0x3711f2=_0x2491be['fieldOrder'][_0x57d9d7(0x17f)](_0x499559=>V(_0x2491be[_0x57d9d7(0x202)][_0x499559]))[_0x57d9d7(0x1e5)];return this[_0x57d9d7(0x139)](0x0,0x0,Math['max'](_0x580e9f,0x1),Math[_0x57d9d7(0x18b)](_0x3711f2,0x1));}[_0x5d6143(0x150)](){const _0x295160=_0x5d6143;let _0x30b953=this[_0x295160(0x1da)]();return _0x30b953[_0x295160(0x203)][_0x295160(0x17f)](_0x552716=>_0x30b953[_0x295160(0x267)][_0x552716])[_0x295160(0x1bd)](_0x3d1f64=>this[_0x295160(0x12a)]['createInstance'](X,this[_0x295160(0x22e)],this,_0x3d1f64,this[_0x295160(0x12a)]));}[_0x5d6143(0x241)](_0x5a18e9){const _0x454f91=_0x5d6143;return this[_0x454f91(0x1da)]()[_0x454f91(0x267)][_0x5a18e9]?this[_0x454f91(0x12a)][_0x454f91(0x21d)](X,this['_base'],this,_0x5a18e9,this['_injector']):null;}['getViewByName'](_0x91eb8a){const _0x4197d5=_0x5d6143;let _0x1845b7=this[_0x4197d5(0x1da)](),_0x266950=Object[_0x4197d5(0x1a2)](_0x1845b7[_0x4197d5(0x267)])[_0x4197d5(0x233)](_0x32e46b=>_0x32e46b[_0x4197d5(0x174)]===_0x91eb8a);return _0x266950?this['_injector'][_0x4197d5(0x21d)](X,this[_0x4197d5(0x22e)],this,_0x266950['id'],this[_0x4197d5(0x12a)]):null;}[_0x5d6143(0x17c)](_0x210518,_0x11a2ec,_0x2d266a){const _0x215b9e=_0x5d6143;var _0x8380b3,_0x19204e,_0x158607,_0x3ec733;let _0x32a929=this[_0x215b9e(0x1da)](),_0x5c4043=(_0x2d266a==null||(_0x8380b3=_0x2d266a['view'])==null?void 0x0:_0x8380b3[_0x215b9e(0x1ef)])??_0x32a929['fieldOrder'],_0x5f32c7=[_0xe50529,..._0x5c4043[_0x215b9e(0x17f)](_0x3bd62e=>V(_0x32a929[_0x215b9e(0x202)][_0x3bd62e]))],_0x1a3ad5={..._0x2d266a==null?void 0x0:_0x2d266a[_0x215b9e(0x25c)],'id':_0x563d6(0x6),'name':_0x210518,'type':_0x11a2ec,'tableId':this[_0x215b9e(0x187)],'config':(_0x2d266a==null||(_0x19204e=_0x2d266a[_0x215b9e(0x25c)])==null?void 0x0:_0x19204e[_0x215b9e(0x1f8)])??{},'fieldOrder':_0x5f32c7,'fieldSettings':{..._0x2d266a==null||(_0x158607=_0x2d266a[_0x215b9e(0x25c)])==null?void 0x0:_0x158607[_0x215b9e(0x13b)],[_0xe50529]:{..._0x2d266a==null||(_0x3ec733=_0x2d266a['view'])==null||(_0x3ec733=_0x3ec733[_0x215b9e(0x13b)])==null?void 0x0:_0x3ec733[_0xe50529],'hidden':!0x0}}};if(!this[_0x215b9e(0x175)][_0x215b9e(0x153)](_0x391a8f['id'],{'unitId':this['_base'][_0x215b9e(0x257)](),'tableId':this[_0x215b9e(0x187)],'view':_0x1a3ad5,'index':_0x2d266a==null?void 0x0:_0x2d266a[_0x215b9e(0x1f6)]}))throw Error(_0x215b9e(0x244)+_0x210518+'\x22');return this[_0x215b9e(0x12a)][_0x215b9e(0x21d)](X,this[_0x215b9e(0x22e)],this,_0x1a3ad5['id'],this[_0x215b9e(0x12a)]);}[_0x5d6143(0x23c)](){const _0x58e034=_0x5d6143;let _0x30e88d=this[_0x58e034(0x1da)](),_0x5f73ed=_0x30e88d['fieldOrder'][_0x58e034(0x17f)](_0x2a4df8=>V(_0x30e88d[_0x58e034(0x202)][_0x2a4df8])),_0x44c54c=_0x30e88d[_0x58e034(0x203)]['filter'](_0x163fcd=>_0x30e88d[_0x58e034(0x267)][_0x163fcd]);return{'id':_0x30e88d['id'],'name':_0x30e88d[_0x58e034(0x174)],'formulaName':this[_0x58e034(0x26a)](),'primaryFieldId':_0x30e88d['primaryFieldId'],'fieldIds':_0x5f73ed,'viewIds':_0x44c54c,'recordCount':this[_0x58e034(0x234)]()[_0x58e034(0x1e5)],'fields':_0x5f73ed['map'](_0x3c4a10=>{const _0x1828dd=_0x58e034;let _0x111663=_0x30e88d[_0x1828dd(0x202)][_0x3c4a10];return{'id':_0x111663['id'],'name':_0x111663['name'],'type':_0x111663['type'],'config':_0x111663['config'],'readonly':_0x111663[_0x1828dd(0x130)],'description':_0x111663[_0x1828dd(0x208)]};}),'views':_0x44c54c[_0x58e034(0x1bd)](_0x192c95=>{const _0x183771=_0x58e034;let _0x31b6ea=_0x30e88d[_0x183771(0x267)][_0x192c95];return{'id':_0x31b6ea['id'],'name':_0x31b6ea[_0x183771(0x174)],'type':_0x31b6ea['type']};})};}[_0x5d6143(0x1da)](){const _0x434010=_0x5d6143;let _0x37ab15=this[_0x434010(0x22e)][_0x434010(0x19f)]()[_0x434010(0x258)]()[_0x434010(0x214)][this[_0x434010(0x187)]];if(!_0x37ab15)throw Error(_0x434010(0x229)+this['_tableId']+_0x434010(0x218));return _0x37ab15;}[_0x5d6143(0x234)](_0x5cad7f={}){const _0x49ecee=_0x5d6143;let _0x943441=this[_0x49ecee(0x22e)][_0x49ecee(0x19f)]()[_0x49ecee(0x258)](),_0xbf2dbb=this[_0x49ecee(0x1da)]();if(_0x5cad7f[_0x49ecee(0x224)]){let _0x447811=this[_0x49ecee(0x1e4)][_0x49ecee(0x1a6)](_0x943441,this[_0x49ecee(0x187)],_0x5cad7f['viewId']);if(_0x49ecee(0x22c)in _0x447811&&Array[_0x49ecee(0x262)](_0x447811['rows']))return _0x447811[_0x49ecee(0x22c)][_0x49ecee(0x1bd)](_0x21320c=>_0x21320c[_0x49ecee(0x158)]);}return(_0xbf2dbb[_0x49ecee(0x147)]?_0xbf2dbb['recordOrder'][_0x49ecee(0x1bd)](_0xd8490b=>_0xbf2dbb[_0x49ecee(0x19b)][_0xd8490b]):Object['values'](_0xbf2dbb[_0x49ecee(0x19b)])[_0x49ecee(0x25a)]((_0xcadac9,_0x72ae0a)=>_0xcadac9['orderKey'][_0x49ecee(0x134)](_0x72ae0a[_0x49ecee(0x256)])))[_0x49ecee(0x17f)](_0x32f2e0=>_0x32f2e0)[_0x49ecee(0x1bd)](_0x5e94fb=>_0x5e94fb['id']);}};Z=z([R(0x3,_0x4d60b9),R(0x4,_0x4ad80a),R(0x5,_0x8d78f1)],Z);function vt(_0x5dae69,_0x7b563d){const _0x187def=_0x5d6143;let _0x1ad5e0=Math['max'](0x0,_0x7b563d[_0x187def(0x282)]??0x0);return _0x7b563d[_0x187def(0x253)]==null?_0x5dae69[_0x187def(0x238)](_0x1ad5e0):_0x5dae69[_0x187def(0x238)](_0x1ad5e0,_0x1ad5e0+Math['max'](0x0,_0x7b563d['limit']));}function yt(_0x48a4b0,_0x54a1a7,_0x28f7c5=[]){const _0x3b7113=_0x5d6143;return _0x28f7c5[_0x3b7113(0x1e5)]?[..._0x48a4b0][_0x3b7113(0x25a)]((_0x4877b2,_0x54f499)=>{const _0x16b81c=_0x3b7113;for(let _0xe698f6 of _0x28f7c5){var _0x44ff3a;let _0x58b3ce=_0xe698f6[_0x16b81c(0x13e)]===_0x504096[_0x16b81c(0x164)]?-0x1:0x1,_0x533088=bt(_0x4877b2[_0x16b81c(0x1a2)][_0xe698f6['fieldId']],_0x54f499['values'][_0xe698f6[_0x16b81c(0x260)]],(_0x44ff3a=_0x54a1a7[_0x16b81c(0x202)][_0xe698f6[_0x16b81c(0x260)]])==null?void 0x0:_0x44ff3a[_0x16b81c(0x1a7)]);if(_0x533088!==0x0)return _0x533088*_0x58b3ce;}return String(_0x4877b2[_0x16b81c(0x256)]??_0x4877b2['id'])[_0x16b81c(0x134)](String(_0x54f499[_0x16b81c(0x256)]??_0x54f499['id']));}):_0x48a4b0;}function bt(_0x3e3e9c,_0x56e1c4,_0x176c3b){const _0x1562a7=_0x5d6143;return _0x3e3e9c==null&&_0x56e1c4==null?0x0:_0x3e3e9c==null?-0x1:_0x56e1c4==null?0x1:typeof _0x3e3e9c=='number'&&typeof _0x56e1c4=='number'?_0x3e3e9c-_0x56e1c4:_0x176c3b===_0xe1377b[_0x1562a7(0x189)]?Number(_0x3e3e9c)-Number(_0x56e1c4):String(_0x3e3e9c)[_0x1562a7(0x134)](String(_0x56e1c4));}function xt(_0x7a6d29,_0x1ecfd5,_0x391196){const _0x3a6ac4=_0x5d6143;var _0x28f465;if(!_0x391196||!((_0x28f465=_0x391196[_0x3a6ac4(0x1b8)])!=null&&_0x28f465['length']))return!0x0;let {conjunction:_0x334c40=_0x1e088d['OR'],conditions:_0x562f2d}=_0x391196;return _0x334c40===_0x1e088d['AND']&&_0x562f2d[_0x3a6ac4(0x1e5)]>0x1?_0x562f2d[_0x3a6ac4(0x1e6)](_0x270a98=>St(_0x7a6d29,_0x1ecfd5,_0x270a98)):_0x562f2d['some'](_0x497537=>St(_0x7a6d29,_0x1ecfd5,_0x497537));}function St(_0x4062f1,_0x489b17,_0x28fae0){const _0x406938=_0x5d6143;let _0x48e094=_0x4062f1[_0x406938(0x1a2)][_0x28fae0[_0x406938(0x260)]],_0x2df881=_0x489b17[_0x406938(0x202)][_0x28fae0[_0x406938(0x260)]];if(Ct(_0x28fae0)){let _0x418f70=wt(_0x28fae0)[_0x406938(0x165)](String(_0x48e094??''));return _0x28fae0[_0x406938(0x1d4)]===_0x406938(0x178)?_0x418f70:!_0x418f70;}return!_0x2df881||_0x232aed(_0x48e094,_0x28fae0['operator'],_0x28fae0['value'],_0x2df881);}function Ct(_0x371a68){const _0x1e8aa4=_0x5d6143;return _0x371a68[_0x1e8aa4(0x1d4)]===_0x1e8aa4(0x178)||_0x371a68[_0x1e8aa4(0x1d4)]===_0x1e8aa4(0x14b);}function wt(_0x345e14){const _0x568028=_0x5d6143;let _0x3631ed=String(_0x345e14[_0x568028(0x162)]??'');if(_0x3631ed[_0x568028(0x1e5)]>0x200)throw Error(_0x568028(0x1c5));try{return new RegExp(_0x3631ed,_0x345e14[_0x568028(0x170)]?void 0x0:'i');}catch(_0x3f7b49){throw Error(_0x568028(0x132)+_0x3631ed+'.\x20'+(_0x3f7b49 instanceof Error?_0x3f7b49[_0x568028(0x227)]:String(_0x3f7b49)));}}function Tt(_0x19bd0a,_0x172773,_0x387e09){const _0x2c16d4=_0x5d6143;if(_0x387e09[_0x2c16d4(0x1a7)]!=='invalid'&&_0x387e09[_0x2c16d4(0x1a7)]!==_0x2c16d4(0x1ec)){var _0xb9b206;if(_0x387e09[_0x2c16d4(0x1a7)]===_0x1753fc[_0x2c16d4(0x18f)]){var _0x8303ae;let _0x1ae6ee=[((_0x8303ae=_0x387e09[_0x2c16d4(0x202)])==null||(_0x8303ae=_0x8303ae[0x0])==null?void 0x0:_0x8303ae['id'])??_0x19bd0a[_0x2c16d4(0x1c1)],..._0x387e09[_0x2c16d4(0x1ff)]??[]];return Array[_0x2c16d4(0x1b4)](new Set(_0x1ae6ee['filter'](_0xcc4b8e=>!!_0x19bd0a[_0x2c16d4(0x202)][_0xcc4b8e])));}if((_0xb9b206=_0x387e09[_0x2c16d4(0x202)])!=null&&_0xb9b206[_0x2c16d4(0x1e5)])return _0x387e09['fields'][_0x2c16d4(0x1bd)](_0x5e3111=>_0x5e3111['id'])[_0x2c16d4(0x17f)](_0xa71e8d=>{const _0x56ace2=_0x2c16d4;var _0x444eb7;return!(!_0x19bd0a['fields'][_0xa71e8d]||_0x172773!=null&&(_0x444eb7=_0x172773['fieldSettings'])!=null&&(_0x444eb7=_0x444eb7[_0xa71e8d])!=null&&_0x444eb7[_0x56ace2(0x1ea)]);});}return _0x19bd0a['fieldOrder'][_0x2c16d4(0x17f)](_0x295958=>{const _0x14ef63=_0x2c16d4;var _0x33384f;return!(!_0x19bd0a[_0x14ef63(0x202)][_0x295958]||_0x172773!=null&&(_0x33384f=_0x172773[_0x14ef63(0x13b)])!=null&&(_0x33384f=_0x33384f[_0x295958])!=null&&_0x33384f[_0x14ef63(0x1ea)]);});}let Q=class extends _0x188c13[_0x5d6143(0x275)]{constructor(_0x5d4ca6,_0x5e497d,_0x3f050f,_0x12707d,_0x22ed09){const _0x237b40=_0x5d6143;super(),this[_0x237b40(0x22e)]=_0x5d4ca6,this[_0x237b40(0x12a)]=_0x5e497d,this['_resourceLoaderService']=_0x3f050f,this[_0x237b40(0x175)]=_0x12707d,this[_0x237b40(0x223)]=_0x22ed09;}[_0x5d6143(0x19f)](){const _0x1b2635=_0x5d6143;return this[_0x1b2635(0x22e)];}[_0x5d6143(0x257)](){const _0x69f64d=_0x5d6143;return this[_0x69f64d(0x22e)][_0x69f64d(0x135)]();}[_0x5d6143(0x1ba)](){const _0x9f8c46=_0x5d6143;return new at(this['getId'](),this[_0x9f8c46(0x175)],this[_0x9f8c46(0x223)]);}[_0x5d6143(0x179)](){const _0x5eaa83=_0x5d6143;return this[_0x5eaa83(0x1a1)][_0x5eaa83(0x1c0)](this['getId']())??_0x59ca43[_0x5eaa83(0x13a)](this[_0x5eaa83(0x22e)][_0x5eaa83(0x258)]());}['getName'](){const _0x3c230d=_0x5d6143;return this[_0x3c230d(0x22e)][_0x3c230d(0x258)]()['name'];}[_0x5d6143(0x140)](_0x1fa3f9){const _0x1b9c64=_0x5d6143;this[_0x1b9c64(0x175)][_0x1b9c64(0x153)](_0xbea6e0['id'],{'unitId':this[_0x1b9c64(0x257)](),'name':_0x1fa3f9});}[_0x5d6143(0x207)](){const _0x121292=_0x5d6143;let _0x1f3ef7=this[_0x121292(0x22e)][_0x121292(0x258)]();return _0x1f3ef7[_0x121292(0x266)][_0x121292(0x1bd)](_0x49af7f=>_0x1f3ef7[_0x121292(0x214)][_0x49af7f])[_0x121292(0x17f)](_0x329172=>_0x329172)['map'](_0x111dd6=>this[_0x121292(0x12a)][_0x121292(0x21d)](Z,this,_0x111dd6['id'],this[_0x121292(0x12a)]));}[_0x5d6143(0x213)](_0xe19307){const _0x30dca4=_0x5d6143;let _0x13579f=this['_base'][_0x30dca4(0x258)]()[_0x30dca4(0x214)][_0xe19307];return _0x13579f?this['_injector'][_0x30dca4(0x21d)](Z,this,_0x13579f['id'],this[_0x30dca4(0x12a)]):null;}[_0x5d6143(0x21c)](_0x43d013){const _0x2eb834=_0x5d6143;let _0x46f3ef=this['_base'][_0x2eb834(0x258)](),_0x5e058f=Object[_0x2eb834(0x1a2)](_0x46f3ef[_0x2eb834(0x214)])['find'](_0x4c22e3=>_0x4c22e3[_0x2eb834(0x174)]===_0x43d013);return _0x5e058f?this[_0x2eb834(0x12a)]['createInstance'](Z,this,_0x5e058f['id'],this[_0x2eb834(0x12a)]):null;}[_0x5d6143(0x21b)](_0x27e58e,_0x4a3f45){const _0x155f87=_0x5d6143;let _0x14436d=_0x8020d({'id':_0x563d6(),'name':_0x27e58e,..._0x4a3f45==null?void 0x0:_0x4a3f45[_0x155f87(0x161)],'primaryFieldName':_0x4a3f45==null?void 0x0:_0x4a3f45[_0x155f87(0x201)]}),_0x5f3694=_0x59ca43[_0x155f87(0x1dd)](_0x14436d,(_0x4a3f45==null?void 0x0:_0x4a3f45['table'])??{}),_0x3789a7=_0x1252cc(this[_0x155f87(0x22e)]['getSnapshot'](),_0x5f3694[_0x155f87(0x174)]);if(!_0x3789a7['valid'])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x5f3694[_0x155f87(0x174)]+_0x155f87(0x26f)+_0x42fde6+'\x20'+_0x3789a7['reason']);if(!this[_0x155f87(0x175)][_0x155f87(0x153)](_0x5af821['id'],{'unitId':this['_base'][_0x155f87(0x135)](),'table':_0x5f3694,'index':_0x4a3f45==null?void 0x0:_0x4a3f45['index']}))throw Error(_0x155f87(0x277)+_0x27e58e+'\x22.');return this['_injector'][_0x155f87(0x21d)](Z,this,_0x5f3694['id'],this[_0x155f87(0x12a)]);}[_0x5d6143(0x12d)](_0x54c1e3){const _0x11872d=_0x5d6143;let _0x50f3ec=typeof _0x54c1e3==_0x11872d(0x255)?_0x54c1e3:_0x54c1e3[_0x11872d(0x257)]();if(!this['_commandService'][_0x11872d(0x153)](_0x4d1ca0['id'],{'unitId':this[_0x11872d(0x22e)]['getUnitId'](),'tableId':_0x50f3ec}))throw Error(_0x11872d(0x242)+_0x50f3ec+'\x22.');return!0x0;}[_0x5d6143(0x196)](_0x7c8bdc,_0xc46933){const _0xe164b8=_0x5d6143;let _0x4105a0=this[_0xe164b8(0x22e)][_0xe164b8(0x258)](),_0xe453de=typeof _0x7c8bdc=='string'?_0x7c8bdc:_0x7c8bdc['getId'](),_0x201884=_0x4105a0['tables'][_0xe453de];if(!_0x201884)throw Error(_0xe164b8(0x1e3)+_0xe453de+_0xe164b8(0x218));let _0x420fcb=_0x4105a0['tableOrder'][_0xe164b8(0x1b2)](_0xe453de)+0x1,_0x5e3e45=_0x563d6(),_0x21f1de=_0x5832b3(_0x201884,{'id':_0x5e3e45,'name':_0x33e5ed(_0x4105a0,_0x201884[_0xe164b8(0x174)]+'\x20Copy'),'includeRecords':(_0xc46933==null?void 0x0:_0xc46933['includeRecords'])??!0x1,'regenerateViewIds':(_0xc46933==null?void 0x0:_0xc46933[_0xe164b8(0x152)])??!0x1});if(!this[_0xe164b8(0x175)][_0xe164b8(0x153)](_0x5af821['id'],{'unitId':this[_0xe164b8(0x22e)][_0xe164b8(0x135)](),'table':_0x21f1de,'index':_0x420fcb}))throw Error(_0xe164b8(0x16c)+_0xe453de+'\x22.');return this['_injector'][_0xe164b8(0x21d)](Z,this,_0x21f1de['id'],this[_0xe164b8(0x12a)]);}['getSchema'](){const _0x4d1764=_0x5d6143;let _0xf40316=this[_0x4d1764(0x22e)][_0x4d1764(0x258)]();return{'id':_0xf40316['id'],'name':_0xf40316[_0x4d1764(0x174)],'tables':this[_0x4d1764(0x207)]()[_0x4d1764(0x1bd)](_0x2174be=>_0x2174be[_0x4d1764(0x23c)]())};}};Q=z([R(0x1,_0x122311(_0x5e0f48)),R(0x2,_0x28546b),R(0x3,_0x4d60b9),R(0x4,_0x4ad80a)],Q);var Et=class extends _0x342f23{[_0x5d6143(0x20d)](){const _0x902cff=_0x5d6143;this[_0x902cff(0x14d)](),this[_0x902cff(0x1f1)]();}[_0x5d6143(0x283)](_0xb947f2={},_0x4bca60){const _0x1d76cf=_0x5d6143;let _0x473cad=this[_0x1d76cf(0x200)][_0x1d76cf(0x26c)](_0x31af45['UNIVER_BASE'],_0xb947f2,_0x4bca60);return this[_0x1d76cf(0x12a)][_0x1d76cf(0x21d)](Q,_0x473cad);}[_0x5d6143(0x20f)](){const _0x47aba9=_0x5d6143;let _0x42c7ae=this[_0x47aba9(0x200)][_0x47aba9(0x231)](_0x31af45[_0x47aba9(0x232)]);return _0x42c7ae?this[_0x47aba9(0x12a)][_0x47aba9(0x21d)](Q,_0x42c7ae):null;}[_0x5d6143(0x19f)](_0x4c448d){const _0x6077af=_0x5d6143;let _0x272ae7=this['_univerInstanceService']['getUnit'](_0x4c448d,_0x31af45[_0x6077af(0x232)]);return _0x272ae7?this[_0x6077af(0x12a)][_0x6077af(0x21d)](Q,_0x272ae7):null;}[_0x5d6143(0x126)](){const _0x131fdc=_0x5d6143;return this['_univerInstanceService'][_0x131fdc(0x17e)](_0x31af45[_0x131fdc(0x232)])[_0x131fdc(0x1bd)](_0x1a26d4=>this['_injector'][_0x131fdc(0x21d)](Q,_0x1a26d4));}[_0x5d6143(0x1f1)](){const _0x4cb5c6=_0x5d6143;this['disposeWithMe'](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x17b)],()=>this['_commandService'][_0x4cb5c6(0x1e2)]((_0x4debdf,_0x1ff083)=>{const _0x2f9729=_0x4cb5c6;var _0xd9b1c0;if(!$(_0x4debdf,_0x7828b1))return;let _0x5c96cf=_0x4debdf['params'];if(!((_0xd9b1c0=_0x5c96cf[_0x2f9729(0x1fe)])!=null&&_0xd9b1c0['length']))return;let _0x5f11da=this[_0x2f9729(0x19f)](_0x5c96cf[_0x2f9729(0x1af)]),_0x1aeccd=_0x5f11da==null?void 0x0:_0x5f11da[_0x2f9729(0x213)](_0x5c96cf[_0x2f9729(0x1fe)][0x0][_0x2f9729(0x281)]);if(!_0x5f11da||!_0x1aeccd)return;let _0x1672d2={'base':_0x5f11da,'table':_0x1aeccd,'changes':_0x5c96cf[_0x2f9729(0x1fe)],'source':_0x1ff083!=null&&_0x1ff083['fromCollab']?_0x3929cb['Remote']:_0x5c96cf[_0x2f9729(0x1f3)]??_0x3929cb['UI']};this[_0x2f9729(0x1a5)](this[_0x2f9729(0x1aa)][_0x2f9729(0x17b)],_0x1672d2);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x15e)],()=>this[_0x4cb5c6(0x175)][_0x4cb5c6(0x1e2)](_0x1409c9=>{const _0x43e648=_0x4cb5c6;if(_0x1409c9['id']!==_0x5af821['id'])return;let {unitId:_0x49477e,table:_0x193ca1,index:_0x19b513}=_0x1409c9[_0x43e648(0x1d6)],_0x57e364=this[_0x43e648(0x19f)](_0x49477e);if(!_0x57e364)return;let _0x2a4016={'base':_0x57e364,'table':_0x193ca1,'index':_0x19b513};this[_0x43e648(0x1a5)](this[_0x43e648(0x1aa)][_0x43e648(0x15e)],_0x2a4016);}))),this[_0x4cb5c6(0x248)](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x217)],()=>this[_0x4cb5c6(0x175)][_0x4cb5c6(0x1e2)](_0xdb2f5e=>{const _0x3feb23=_0x4cb5c6;if(_0xdb2f5e['id']!==_0x27aa7f['id'])return;let {unitId:_0x4b3e35,tableId:_0x553f26,field:_0x5294b6,index:_0x2ad41b,viewIndexes:_0xd96c50}=_0xdb2f5e[_0x3feb23(0x1d6)],_0x287e14=this[_0x3feb23(0x19f)](_0x4b3e35);if(!_0x287e14)return;let _0x2acbc9=_0x287e14[_0x3feb23(0x213)](_0x553f26);if(!_0x2acbc9)return;let _0x37e1a2={'base':_0x287e14,'table':_0x2acbc9,'field':_0x5294b6,'index':_0x2ad41b,'viewIndexes':_0xd96c50};this[_0x3feb23(0x1a5)](this[_0x3feb23(0x1aa)][_0x3feb23(0x217)],_0x37e1a2);}))),this['disposeWithMe'](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x18c)],()=>this[_0x4cb5c6(0x175)][_0x4cb5c6(0x1e2)](_0x444b78=>{const _0x4d8987=_0x4cb5c6;if(_0x444b78['id']!==_0x1b1cbb['id']&&_0x444b78['id']!==_0x15e471['id'])return;let _0x50c87a=_0x444b78['params'],{unitId:_0x3caf1e,tableId:_0x3f2dca}=_0x50c87a,_0x4febec=_0x50c87a[_0x4d8987(0x19b)]??[_0x50c87a[_0x4d8987(0x155)]],_0x5d0a4e=this[_0x4d8987(0x19f)](_0x3caf1e);if(!_0x5d0a4e)return;let _0x4a8834=_0x5d0a4e[_0x4d8987(0x213)](_0x3f2dca);if(!_0x4a8834)return;let _0x56a5a1={'base':_0x5d0a4e,'table':_0x4a8834,'records':_0x4febec};this[_0x4d8987(0x1a5)](this[_0x4d8987(0x1aa)][_0x4d8987(0x18c)],_0x56a5a1);}))),this['disposeWithMe'](this[_0x4cb5c6(0x191)](this['Event'][_0x4cb5c6(0x240)],()=>this[_0x4cb5c6(0x175)]['onCommandExecuted'](_0x2809ab=>{const _0x347d3d=_0x4cb5c6;if(_0x2809ab['id']!==_0x391a8f['id'])return;let {unitId:_0x364dfb,tableId:_0x3a568f,view:_0x1ea1d9,index:_0xb4774e}=_0x2809ab['params'],_0x21b954=this[_0x347d3d(0x19f)](_0x364dfb);if(!_0x21b954)return;let _0x235b7f=_0x21b954[_0x347d3d(0x213)](_0x3a568f);if(!_0x235b7f)return;let _0x3aebdb={'base':_0x21b954,'table':_0x235b7f,'view':_0x1ea1d9,'index':_0xb4774e};this[_0x347d3d(0x1a5)](this['Event'][_0x347d3d(0x240)],_0x3aebdb);}))),this['disposeWithMe'](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x166)],()=>this['_commandService']['onCommandExecuted'](_0x4f6a00=>{const _0x2f0d64=_0x4cb5c6;if(_0x4f6a00['id']!==_0xd989ce['id'])return;let {unitId:_0xdaeaf2,tableId:_0x17e315,recordId:_0x5bdc26,fieldId:_0x4c5248,value:_0x696528}=_0x4f6a00['params'],_0x4a8c6b=this[_0x2f0d64(0x19f)](_0xdaeaf2);if(!_0x4a8c6b)return;let _0x5a6d3e=_0x4a8c6b['getTableById'](_0x17e315);if(!_0x5a6d3e)return;let _0x42bb9b=_0x5a6d3e[_0x2f0d64(0x271)](_0x4c5248);if(!_0x42bb9b)return;let _0x619dae=_0x5a6d3e[_0x2f0d64(0x146)](_0x5bdc26);if(!_0x619dae)return;let _0x1070d5={'base':_0x4a8c6b,'table':_0x5a6d3e,'field':_0x42bb9b,'record':_0x619dae,'value':_0x696528};this[_0x2f0d64(0x1a5)](this['Event'][_0x2f0d64(0x166)],_0x1070d5);})));}[_0x5d6143(0x14d)](){const _0x23b2a8=_0x5d6143;this[_0x23b2a8(0x248)](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)][_0x23b2a8(0x192)],()=>this[_0x23b2a8(0x175)]['beforeCommandExecuted'](_0x257cba=>{const _0x5bc772=_0x23b2a8;if($(_0x257cba,_0x3c4e8d)){let {unitId:_0x3b4e43,tableId:_0x2c89de,patches:_0x293a21,source:_0x10a1d4=_0x3929cb['UI']}=_0x257cba['params'],_0x1fd653=this[_0x5bc772(0x205)](_0x3b4e43,_0x2c89de);if(!_0x1fd653)return;this[_0x5bc772(0x1bc)](_0x1fd653[_0x5bc772(0x1fd)],_0x1fd653['table'],_0x500011(_0x1fd653[_0x5bc772(0x161)][_0x5bc772(0x20a)](),_0x293a21),_0x10a1d4);return;}if($(_0x257cba,_0x2ebbdb)){let {unitId:_0x4445b0,tableId:_0x36222c,patches:_0x1c36be,source:_0x3ca4c0=_0x3929cb['UI']}=_0x257cba[_0x5bc772(0x1d6)],_0x5bcaa9=this[_0x5bc772(0x205)](_0x4445b0,_0x36222c);if(!_0x5bcaa9)return;let _0x45bfc2=_0x5bcaa9[_0x5bc772(0x161)][_0x5bc772(0x20a)]();this[_0x5bc772(0x1bc)](_0x5bcaa9[_0x5bc772(0x1fd)],_0x5bcaa9[_0x5bc772(0x161)],_0x500011(_0x45bfc2,_0x4e2d04(_0x45bfc2,_0x1c36be)),_0x3ca4c0);return;}if($(_0x257cba,_0x1b1cbb)){let _0x337add=_0x257cba[_0x5bc772(0x1d6)],_0xb3be53=this['_getHierarchyEventContext'](_0x337add[_0x5bc772(0x1af)],_0x337add[_0x5bc772(0x281)]);if(!_0xb3be53)return;this[_0x5bc772(0x1bc)](_0xb3be53[_0x5bc772(0x1fd)],_0xb3be53['table'],_0x1936b7(_0xb3be53['table'][_0x5bc772(0x20a)](),[_0x337add['record']]),_0x337add['source']??_0x3929cb['UI']);return;}if($(_0x257cba,_0x15e471)){let _0x19148b=_0x257cba[_0x5bc772(0x1d6)],_0x52a971=this[_0x5bc772(0x205)](_0x19148b[_0x5bc772(0x1af)],_0x19148b[_0x5bc772(0x281)]);if(!_0x52a971)return;this[_0x5bc772(0x1bc)](_0x52a971[_0x5bc772(0x1fd)],_0x52a971[_0x5bc772(0x161)],_0x1936b7(_0x52a971['table']['getTable'](),_0x19148b[_0x5bc772(0x19b)]),_0x19148b[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x5a3030)){let _0x15c133=_0x257cba[_0x5bc772(0x1d6)],_0x396a4b=this['_getHierarchyEventContext'](_0x15c133['unitId'],_0x15c133[_0x5bc772(0x281)]);if(!_0x396a4b)return;this[_0x5bc772(0x1bc)](_0x396a4b[_0x5bc772(0x1fd)],_0x396a4b[_0x5bc772(0x161)],_0x1936b7(_0x396a4b[_0x5bc772(0x161)][_0x5bc772(0x20a)](),[_0x15c133['record']]),_0x15c133[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x1aea4c)){let _0x3a7d92=_0x257cba[_0x5bc772(0x1d6)],_0x56f21a=this[_0x5bc772(0x205)](_0x3a7d92[_0x5bc772(0x1af)],_0x3a7d92[_0x5bc772(0x281)]);if(!_0x56f21a)return;let _0x1f28f4=_0x56f21a[_0x5bc772(0x161)][_0x5bc772(0x20a)](),_0xa57ea5=_0x3a7d92[_0x5bc772(0x260)]??_0x254f03(_0x1f28f4),_0x379afa=_0xbf13b7(_0x1f28f4,_0xa57ea5)[_0x5bc772(0x220)][_0x5bc772(0x265)](_0x3a7d92['recordId'])??null;this[_0x5bc772(0x1bc)](_0x56f21a['base'],_0x56f21a[_0x5bc772(0x161)],[{'tableId':_0x3a7d92['tableId'],'fieldId':_0xa57ea5,'recordId':_0x3a7d92[_0x5bc772(0x158)],'oldParentRecordId':_0x379afa,'parentRecordId':_0x3a7d92[_0x5bc772(0x254)]}],_0x3a7d92[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x550a38)){let _0xd42043=_0x257cba[_0x5bc772(0x1d6)],_0x31dba3=this['_getHierarchyEventContext'](_0xd42043[_0x5bc772(0x1af)],_0xd42043['tableId']);if(!_0x31dba3)return;let _0x5df343=_0xd42043['fieldId']??_0x254f03(_0x31dba3[_0x5bc772(0x161)]['getTable']());this[_0x5bc772(0x1bc)](_0x31dba3[_0x5bc772(0x1fd)],_0x31dba3[_0x5bc772(0x161)],[{'tableId':_0xd42043[_0x5bc772(0x281)],'fieldId':_0x5df343,'recordId':_0xd42043[_0x5bc772(0x155)]['id'],'oldParentRecordId':null,'parentRecordId':_0xd42043[_0x5bc772(0x254)]}],_0xd42043[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x2f0c33)){let _0x328941=_0x257cba[_0x5bc772(0x1d6)],_0x31a512=this[_0x5bc772(0x205)](_0x328941['unitId'],_0x328941[_0x5bc772(0x281)]);if(!_0x31a512)return;this['_fireBeforeHierarchyChange'](_0x31a512[_0x5bc772(0x1fd)],_0x31a512['table'],_0x4276db(_0x31a512[_0x5bc772(0x161)][_0x5bc772(0x20a)](),[_0x328941[_0x5bc772(0x158)]]),_0x328941[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x3343b8)){let _0x3914aa=_0x257cba[_0x5bc772(0x1d6)],_0xff488b=this['_getHierarchyEventContext'](_0x3914aa[_0x5bc772(0x1af)],_0x3914aa[_0x5bc772(0x281)]);if(!_0xff488b)return;this[_0x5bc772(0x1bc)](_0xff488b[_0x5bc772(0x1fd)],_0xff488b[_0x5bc772(0x161)],_0x4276db(_0xff488b['table'][_0x5bc772(0x20a)](),_0x3914aa[_0x5bc772(0x1eb)]),_0x3914aa[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if(!$(_0x257cba,_0xd989ce))return;let _0x5d8dbe=_0x257cba['params'],_0x389f22=this[_0x5bc772(0x205)](_0x5d8dbe['unitId'],_0x5d8dbe['tableId']);if(!_0x389f22)return;let _0xb0e0c8=_0x389f22[_0x5bc772(0x161)]['getTable']();if(!_0x31a9b4(_0xb0e0c8)[_0x5bc772(0x219)](_0x5d8dbe[_0x5bc772(0x260)]))return;let _0x5d2c8d=_0xbf13b7(_0xb0e0c8,_0x5d8dbe[_0x5bc772(0x260)])[_0x5bc772(0x220)][_0x5bc772(0x265)](_0x5d8dbe[_0x5bc772(0x158)])??null,_0x33ca00=_0x15a8ab(_0x5d8dbe['value'])[0x0]??null;_0x5d2c8d!==_0x33ca00&&this['_fireBeforeHierarchyChange'](_0x389f22['base'],_0x389f22['table'],[{'tableId':_0x5d8dbe['tableId'],'fieldId':_0x5d8dbe['fieldId'],'recordId':_0x5d8dbe[_0x5bc772(0x158)],'oldParentRecordId':_0x5d2c8d,'parentRecordId':_0x33ca00}],_0x5d8dbe[_0x5bc772(0x1f3)]??_0x3929cb['UI']);}))),this[_0x23b2a8(0x248)](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)][_0x23b2a8(0x1a4)],()=>this['_commandService'][_0x23b2a8(0x1cf)](_0x21a029=>{const _0x45abc9=_0x23b2a8;if(_0x21a029['id']!==_0x5af821['id'])return;let {unitId:_0x5dd788,table:_0x3092cd,index:_0x1bd9cc}=_0x21a029[_0x45abc9(0x1d6)],_0x379035=this[_0x45abc9(0x19f)](_0x5dd788);if(!_0x379035)return;let _0x1c6ad5={'base':_0x379035,'table':_0x3092cd,'index':_0x1bd9cc};if(this[_0x45abc9(0x1a5)](this['Event'][_0x45abc9(0x1a4)],_0x1c6ad5),_0x1c6ad5[_0x45abc9(0x1d8)])throw new _0x2d90a2();}))),this[_0x23b2a8(0x248)](this['registerEventHandler'](this[_0x23b2a8(0x1aa)][_0x23b2a8(0x1a9)],()=>this[_0x23b2a8(0x175)][_0x23b2a8(0x1cf)](_0x118df6=>{const _0x45447f=_0x23b2a8;if(_0x118df6['id']!==_0x27aa7f['id'])return;let {unitId:_0xf397d4,tableId:_0x1a61fc,field:_0x502ce0,index:_0x4c854d,viewIndexes:_0x8076fa}=_0x118df6['params'],_0x1a1592=this[_0x45447f(0x19f)](_0xf397d4);if(!_0x1a1592)return;let _0x29d5ba=_0x1a1592['getTableById'](_0x1a61fc);if(!_0x29d5ba)return;let _0x544c7f={'base':_0x1a1592,'table':_0x29d5ba,'field':_0x502ce0,'index':_0x4c854d,'viewIndexes':_0x8076fa};if(this[_0x45447f(0x1a5)](this[_0x45447f(0x1aa)][_0x45447f(0x1a9)],_0x544c7f),_0x544c7f[_0x45447f(0x1d8)])throw new _0x2d90a2();}))),this['disposeWithMe'](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)]['BeforeBaseTableRecordCreate'],()=>this[_0x23b2a8(0x175)]['beforeCommandExecuted'](_0x12eb47=>{const _0x31af72=_0x23b2a8;if(_0x12eb47['id']!==_0x1b1cbb['id']&&_0x12eb47['id']!==_0x15e471['id'])return;let _0x3fd018=_0x12eb47[_0x31af72(0x1d6)],{unitId:_0x21553d,tableId:_0x136250}=_0x3fd018,_0x328e71=_0x3fd018[_0x31af72(0x19b)]??[_0x3fd018[_0x31af72(0x155)]],_0x3e9b0a=this['getBase'](_0x21553d);if(!_0x3e9b0a)return;let _0x186b2f=_0x3e9b0a[_0x31af72(0x213)](_0x136250);if(!_0x186b2f)return;let _0x23ed3f={'base':_0x3e9b0a,'table':_0x186b2f,'records':_0x328e71};if(this[_0x31af72(0x1a5)](this[_0x31af72(0x1aa)][_0x31af72(0x1b0)],_0x23ed3f),_0x23ed3f[_0x31af72(0x1d8)])throw new _0x2d90a2();}))),this['disposeWithMe'](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)]['BeforeBaseTableViewCreate'],()=>this[_0x23b2a8(0x175)][_0x23b2a8(0x1cf)](_0x4d1f6c=>{const _0x54dbf3=_0x23b2a8;if(_0x4d1f6c['id']!==_0x391a8f['id'])return;let {unitId:_0x4689e0,tableId:_0xd01bdd,view:_0x1eb3b8,index:_0xfb1b49}=_0x4d1f6c[_0x54dbf3(0x1d6)],_0x234e0f=this[_0x54dbf3(0x19f)](_0x4689e0);if(!_0x234e0f)return;let _0x545a33=_0x234e0f[_0x54dbf3(0x213)](_0xd01bdd);if(!_0x545a33)return;let _0x3d9249={'base':_0x234e0f,'table':_0x545a33,'view':_0x1eb3b8,'index':_0xfb1b49};if(this[_0x54dbf3(0x1a5)](this[_0x54dbf3(0x1aa)][_0x54dbf3(0x269)],_0x3d9249),_0x3d9249[_0x54dbf3(0x1d8)])throw new _0x2d90a2();}))),this[_0x23b2a8(0x248)](this['registerEventHandler'](this[_0x23b2a8(0x1aa)]['BeforeBaseTableCellValueChange'],()=>this[_0x23b2a8(0x175)][_0x23b2a8(0x1cf)](_0x1dae40=>{const _0x5b492d=_0x23b2a8;if(_0x1dae40['id']!==_0xd989ce['id'])return;let {unitId:_0x5e0d8e,tableId:_0x4be0ad,recordId:_0x1fed4c,fieldId:_0x56b577,value:_0x522321}=_0x1dae40[_0x5b492d(0x1d6)],_0x25e60c=this[_0x5b492d(0x19f)](_0x5e0d8e);if(!_0x25e60c)return;let _0x4a191f=_0x25e60c[_0x5b492d(0x213)](_0x4be0ad);if(!_0x4a191f)return;let _0x5858a9=_0x4a191f[_0x5b492d(0x271)](_0x56b577);if(!_0x5858a9)return;let _0x34c64b=_0x4a191f[_0x5b492d(0x146)](_0x1fed4c);if(!_0x34c64b)return;let _0x5db587={'base':_0x25e60c,'table':_0x4a191f,'field':_0x5858a9,'record':_0x34c64b,'value':_0x522321};if(this[_0x5b492d(0x1a5)](this['Event'][_0x5b492d(0x12e)],_0x5db587),_0x5db587['cancel'])throw new _0x2d90a2();})));}['_getHierarchyEventContext'](_0x59d9c5,_0x2e0093){const _0x2f7775=_0x5d6143;let _0x399d32=this[_0x2f7775(0x19f)](_0x59d9c5),_0x231cb4=_0x399d32==null?void 0x0:_0x399d32[_0x2f7775(0x213)](_0x2e0093);return _0x399d32&&_0x231cb4?{'base':_0x399d32,'table':_0x231cb4}:null;}[_0x5d6143(0x1bc)](_0x56747f,_0x70bafe,_0x44609e,_0x2374a6){const _0x257cb9=_0x5d6143;if(!_0x44609e['length'])return;let _0x213fc8={'base':_0x56747f,'table':_0x70bafe,'changes':_0x44609e,'source':_0x2374a6};if(this['fireEvent'](this[_0x257cb9(0x1aa)][_0x257cb9(0x192)],_0x213fc8),_0x213fc8['cancel'])throw new _0x2d90a2();}};function $(_0x2a4ec8,_0x20015c){const _0x4c3e74=_0x5d6143;return _0x2a4ec8['id']===_0x20015c['id']&&_0x2a4ec8[_0x4c3e74(0x1d6)]!==void 0x0;}_0x342f23[_0x5d6143(0x1cd)](Et);var Dt=class extends _0x30c860{get['BaseFieldType'](){return _0xe1377b;}get[_0x5d6143(0x1dc)](){return _0x1e088d;}get[_0x5d6143(0x1f4)](){return _0x30a51d;}get[_0x5d6143(0x22b)](){return ot;}get[_0x5d6143(0x285)](){return _0x1753fc;}get['BaseConditionalColorTarget'](){return _0x51d23e;}get['BaseConditionalColorOperator'](){return _0x1ab338;}get[_0x5d6143(0x222)](){return _0x461f6e;}get['BaseSortDirection'](){return _0x504096;}get[_0x5d6143(0x1e1)](){return _0x3929cb;}get[_0x5d6143(0x198)](){return _0x420b2f;}get[_0x5d6143(0x23e)](){return _0x2d4aea;}get[_0x5d6143(0x13d)](){return _0x5428fb;}};_0x30c860['extend'](Dt);var Ot=class extends _0x22e20b{get['BaseTableCreated'](){return'BaseTableCreated';}get[_0x5d6143(0x1a4)](){const _0x438000=_0x5d6143;return _0x438000(0x1a4);}get[_0x5d6143(0x217)](){const _0x46a7c9=_0x5d6143;return _0x46a7c9(0x217);}get[_0x5d6143(0x1a9)](){return'BeforeBaseTableFieldCreate';}get[_0x5d6143(0x18c)](){return'BaseTableRecordCreated';}get[_0x5d6143(0x1b0)](){const _0x4678e3=_0x5d6143;return _0x4678e3(0x1b0);}get[_0x5d6143(0x240)](){const _0x45d0d4=_0x5d6143;return _0x45d0d4(0x240);}get[_0x5d6143(0x269)](){return'BeforeBaseTableViewCreate';}get['BaseTableCellValueChanged'](){const _0x441a80=_0x5d6143;return _0x441a80(0x166);}get['BeforeBaseTableCellValueChange'](){const _0x859c52=_0x5d6143;return _0x859c52(0x12e);}get[_0x5d6143(0x17b)](){const _0x2da2cb=_0x5d6143;return _0x2da2cb(0x17b);}get['BeforeBaseHierarchyChange'](){const _0x48d423=_0x5d6143;return _0x48d423(0x192);}};function _0xcda4(_0x33960e,_0x1f2759){_0x33960e=_0x33960e-0x126;const _0x368dc0=_0x368d();let _0xcda424=_0x368dc0[_0x33960e];return _0xcda424;}_0x22e20b[_0x5d6143(0x1cd)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};