@univerjs-pro/bases 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5d27(_0x58636f,_0x76f655){_0x58636f=_0x58636f-0x8a;const _0x336b13=_0x336b();let _0x5d27a7=_0x336b13[_0x58636f];return _0x5d27a7;}const _0x37fca4=_0x5d27;(function(_0x5df22c,_0x104fad){const _0x26e287=_0x5d27,_0x4c0240=_0x5df22c();while(!![]){try{const _0x140ad4=-parseInt(_0x26e287(0xaa))/0x1+-parseInt(_0x26e287(0x98))/0x2+parseInt(_0x26e287(0x94))/0x3+parseInt(_0x26e287(0xa2))/0x4*(-parseInt(_0x26e287(0x9b))/0x5)+parseInt(_0x26e287(0x8b))/0x6+parseInt(_0x26e287(0x8c))/0x7+-parseInt(_0x26e287(0xa7))/0x8*(-parseInt(_0x26e287(0x96))/0x9);if(_0x140ad4===_0x104fad)break;else _0x4c0240['push'](_0x4c0240['shift']());}catch(_0x31ef43){_0x4c0240['push'](_0x4c0240['shift']());}}}(_0x336b,0x98ae7));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x37fca4(0x9c),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x37fca4(0x9f),'email':_0x37fca4(0x95),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x37fca4(0xa0),'recordId':_0x37fca4(0x8a),'createdBy':_0x37fca4(0x9a),'updatedBy':_0x37fca4(0xa9),'createdAt':_0x37fca4(0xa1),'updatedAt':_0x37fca4(0x99),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x37fca4(0x91),'linkPlaceholder':_0x37fca4(0x9d)},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x37fca4(0x93),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x37fca4(0xa5),'invalidFieldType':_0x37fca4(0x8e),'invalidCellValue':_0x37fca4(0x8f),'invalidKanbanGroupField':_0x37fca4(0x8d),'invalidCalendarDateField':_0x37fca4(0xa6),'invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':_0x37fca4(0xa3),'createField':_0x37fca4(0x9e),'deleteField':_0x37fca4(0x97),'createRecord':_0x37fca4(0x92),'deleteRecord':_0x37fca4(0x90),'updateViewConfig':_0x37fca4(0xa4)}}};function _0x336b(){const _0x1d9263=['574875ODwcCg','核取方塊','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','建立欄位','電話號碼','關聯記錄','建立時間','24yJXhAt','更新儲存格','更新檢視設定','欄位標題不能為空','行事曆需要日期欄位','1992Bkjsiw','exports','更新人','1028395SEKJVl','記錄\x20ID','2638542fljHTv','918939wklWvQ','看板需要可分組欄位','欄位類型無效','儲存格值無效','刪除記錄','輸入內容','建立記錄','甘特圖','3026148ndYwrT','電子郵件','43533nZhYGZ','刪除欄位','881070YEBwtB','更新時間','建立人'];_0x336b=function(){return _0x1d9263;};return _0x336b();}module[_0x37fca4(0xa8)]=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x672810=_0x123d;function _0x123d(_0x4e5364,_0x45425a){_0x4e5364=_0x4e5364-0x191;const _0x1a9782=_0x1a97();let _0x123d84=_0x1a9782[_0x4e5364];return _0x123d84;}(function(_0x3b2327,_0x481315){const _0x57aaef=_0x123d,_0x497318=_0x3b2327();while(!![]){try{const _0x5dacf2=-parseInt(_0x57aaef(0x1ef))/0x1+parseInt(_0x57aaef(0x280))/0x2*(parseInt(_0x57aaef(0x1fb))/0x3)+-parseInt(_0x57aaef(0x2d8))/0x4+parseInt(_0x57aaef(0x1e8))/0x5*(-parseInt(_0x57aaef(0x252))/0x6)+-parseInt(_0x57aaef(0x200))/0x7+parseInt(_0x57aaef(0x258))/0x8+parseInt(_0x57aaef(0x1b4))/0x9*(parseInt(_0x57aaef(0x1ba))/0xa);if(_0x5dacf2===_0x481315)break;else _0x497318['push'](_0x497318['shift']());}catch(_0xa8d730){_0x497318['push'](_0x497318['shift']());}}}(_0x1a97,0xd6a3b));import{ApplyBaseJson1Mutation as _0x29f6bf,BASE_TABLE_NAME_REQUIREMENTS as _0x43ed5f,BaseConditionalColorRuleUpdateType as _0x5ac52a,BaseEventSource as _0xe81c71,BaseHierarchyErrorCode as _0x4a6014,BatchCreateBaseRecordsCommand as _0x2b0a08,BatchDeleteBaseRecordsCommand as _0x49a978,ChangeBaseFieldTypeCommand as _0x4d4dc5,CreateBaseChildRecordCommand as _0x2eeb56,CreateBaseFieldCommand as _0x5004a9,CreateBaseRecordCommand as _0x431c7b,CreateBaseTableCommand as _0x3dd62e,CreateBaseViewCommand as _0x6d95a5,DeleteBaseFieldCommand as _0x2a7aef,DeleteBaseRecordCommand as _0x2461cb,DeleteBaseTableCommand as _0x20caaa,DeleteBaseViewCommand as _0x205d29,DuplicateBaseRecordCommand as _0x425683,IBaseProjectionService as _0x400a91,MoveBaseFieldCommand as _0x519d92,MoveBaseHierarchyRecordCommand as _0x123689,MoveBaseViewCommand as _0x575263,RenameBaseTableCommand as _0xfdb55c,RenameBaseViewCommand as _0x560ff3,SetBaseNameCommand as _0x3fec51,SetBasePermissionCommand as _0x38a1bb,SetBasePermissionsCommand as _0x3cc7cf,SetBaseRangeValuesCommand as _0x49690c,SetBaseRecordValuesCommand as _0x3ef9eb,SetBaseTableHierarchyFieldCommand as _0x46e1ca,SetBaseViewFieldOrderCommand as _0xf0d992,SetBaseViewFieldVisibleCommand as _0x466bff,SetBaseViewFieldWidthCommand as _0x4df4a5,SetBaseViewFilterCommand as _0x4b46c7,SetBaseViewGroupCommand as _0x3aab37,SetBaseViewSortCommand as _0x4cedde,UpdateBaseCellCommand as _0xf2eaa0,UpdateBaseFieldCommand as _0x4de297,UpdateBaseRecordOrderCommand as _0x37e551,UpdateBaseViewConditionalColorRulesCommand as _0x2c5d52,UpdateBaseViewConfigCommand as _0x27c22b,ValidateBaseFormulaCommand as _0x452386,buildBaseHierarchyIndex as _0x4f82a6,canEditBaseTargets as _0x186b03,copyBaseTableSnapshot as _0xedde2c,createUniqueBaseTableName as _0x561a70,ensureBaseTableCellLayout as _0x5adfc5,getActiveBaseHierarchyFieldIds as _0x5754ca,getBaseCellValue as _0x2e4e75,getBaseFieldPermissionObjectId as _0x5ba058,getBaseFormulaTableName as _0x565dba,getBaseHierarchyDeletePromotions as _0x569492,getBasePermissionValue as _0x26ea23,getBaseRecordPermissionObjectId as _0x5115f4,getBaseTablePermissionObjectId as _0x1f3d94,getBaseViewPermissionObjectId as _0x17cc98,getRecordLinkFieldConfig as _0x10fe9e,matchesBaseCondition as _0x42dc53,parseRecordLinkIds as _0xa22387,resolveBaseHierarchyFieldId as _0x3cd49d,resolveBaseRangeHierarchyPatches as _0x342aca,searchBaseTable as _0x3c96dc,serializeRecordLinkIds as _0xb3a4ba,validateBaseHierarchyRecordCreations as _0x47bdaf,validateBaseHierarchyRecordPatches as _0x3193de,validateBaseTableName as _0x520269,validateRecordLinkValue as _0x546b12}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x1f464c,BaseConditionalColorOperator as _0x358942,BaseConditionalColorTarget as _0x4954f2,BaseConditionalDateMode as _0xfe2896,BaseFieldType as _0x22894c,BaseFilterConjunction as _0x5b15fe,BaseFilterOperator as _0x497ab3,BaseHierarchyInvalidReason as _0x214af2,BaseRecordLinkRole as _0x4ccd60,BaseSortDirection as _0x55f975,BaseViewType as _0x345987,CanceledError as _0x2fd329,ICommandService as _0x49e372,IPermissionService as _0x59e954,IResourceLoaderService as _0x2ec0f3,ImageSourceType as _0x323aed,Inject as _0x1f83e3,Injector as _0x1d5f17,Tools as _0x2fe97f,UniverInstanceType as _0xc43c8,createDefaultBaseTableSnapshot as _0x546bf8,generateRandomId as _0xc362eb}from'@univerjs/core';import*as _0xe0f600 from'@univerjs/core/facade';import{FBaseInitialable as _0x157757,FEnum as _0x1527ae,FEventName as _0x1b8ca7,FUniver as _0x5ac03e}from'@univerjs/core/facade';import{UnitAction as _0x23b8a9}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x1c80ca}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3d702b,_0x234ce3,_0x169471){const _0x2f048e=_0x123d;this[_0x2f048e(0x210)]=_0x3d702b,this[_0x2f048e(0x28b)]=_0x234ce3,this[_0x2f048e(0x2c1)]=_0x169471;}async['setObjectPermissions'](_0x559fbb){const _0x408693=_0x123d;return this[_0x408693(0x28b)]['executeCommand'](_0x3cc7cf['id'],{'unitId':this[_0x408693(0x210)],'changes':_0x559fbb});}async[_0x672810(0x244)](_0x28341a,_0xe413bb){const _0x578df6=_0x672810;await this[_0x578df6(0x28b)][_0x578df6(0x2f3)](_0x38a1bb['id'],{'unitId':this[_0x578df6(0x210)],'objectId':this[_0x578df6(0x210)],'action':_0x28341a,'value':_0xe413bb});}[_0x672810(0x196)](_0x1cc27d){const _0x54181b=_0x672810;return _0x26ea23(this[_0x54181b(0x2c1)],this[_0x54181b(0x210)],this[_0x54181b(0x210)],_0x1cc27d);}async[_0x672810(0x199)](_0x4a2980=!0x0){const _0x439a9f=_0x672810;await this['_commandService'][_0x439a9f(0x2f3)](_0x38a1bb['id'],{'unitId':this[_0x439a9f(0x210)],'objectId':this[_0x439a9f(0x210)],'action':_0x23b8a9[_0x439a9f(0x2cb)],'value':_0x4a2980});}async[_0x672810(0x2b8)](){const _0x3dc2bd=_0x672810;await this[_0x3dc2bd(0x28b)][_0x3dc2bd(0x2f3)](_0x38a1bb['id'],{'unitId':this['_unitId'],'objectId':this[_0x3dc2bd(0x210)],'action':_0x23b8a9[_0x3dc2bd(0x2cb)],'value':!0x1});}[_0x672810(0x230)](){const _0x5a5394=_0x672810;return _0x26ea23(this['_permissionService'],this[_0x5a5394(0x210)],this['_unitId'],_0x23b8a9[_0x5a5394(0x2cb)]);}},L=class{constructor(_0x406d52,_0x71a1b5,_0x41929,_0x5b0171,_0x1286ee){const _0x2fc385=_0x672810;this[_0x2fc385(0x210)]=_0x406d52,this[_0x2fc385(0x2b4)]=_0x71a1b5,this['_parentObjectIds']=_0x41929,this[_0x2fc385(0x28b)]=_0x5b0171,this[_0x2fc385(0x2c1)]=_0x1286ee;}async[_0x672810(0x199)](_0x5aaf41=!0x0){const _0x1cdc35=_0x672810;await this[_0x1cdc35(0x28b)][_0x1cdc35(0x2f3)](_0x38a1bb['id'],{'unitId':this[_0x1cdc35(0x210)],'objectId':this[_0x1cdc35(0x2b4)],'action':_0x23b8a9[_0x1cdc35(0x2cb)],'value':_0x5aaf41});}async['setReadOnly'](){const _0x2695e8=_0x672810;await this[_0x2695e8(0x28b)]['executeCommand'](_0x38a1bb['id'],{'unitId':this['_unitId'],'objectId':this[_0x2695e8(0x2b4)],'action':_0x23b8a9[_0x2695e8(0x2cb)],'value':!0x1});}['canEdit'](){const _0x34435e=_0x672810;return _0x186b03(this[_0x34435e(0x2c1)],this[_0x34435e(0x210)],[...this['_parentObjectIds'],this[_0x34435e(0x2b4)]]);}};function R(_0x515b4a,_0x2b2a53){return function(_0x33bc6d,_0x24c85b){_0x2b2a53(_0x33bc6d,_0x24c85b,_0x515b4a);};}function z(_0x24b531,_0x5a3b26,_0xa44384,_0x3765d0){const _0x547f57=_0x672810;var _0x2030b7=arguments['length'],_0x49b5b6=_0x2030b7<0x3?_0x5a3b26:_0x3765d0===null?_0x3765d0=Object[_0x547f57(0x27b)](_0x5a3b26,_0xa44384):_0x3765d0,_0x2dfbdc;if(typeof Reflect=='object'&&typeof Reflect[_0x547f57(0x1cc)]=='function')_0x49b5b6=Reflect['decorate'](_0x24b531,_0x5a3b26,_0xa44384,_0x3765d0);else{for(var _0x3a4f9a=_0x24b531[_0x547f57(0x233)]-0x1;_0x3a4f9a>=0x0;_0x3a4f9a--)(_0x2dfbdc=_0x24b531[_0x3a4f9a])&&(_0x49b5b6=(_0x2030b7<0x3?_0x2dfbdc(_0x49b5b6):_0x2030b7>0x3?_0x2dfbdc(_0x5a3b26,_0xa44384,_0x49b5b6):_0x2dfbdc(_0x5a3b26,_0xa44384))||_0x49b5b6);}return _0x2030b7>0x3&&_0x49b5b6&&Object[_0x547f57(0x1a6)](_0x5a3b26,_0xa44384,_0x49b5b6),_0x49b5b6;}let B=class{constructor(_0x2f15fa,_0x29cfd1,_0x82ef02,_0x5e76f2,_0x1f3b2c){const _0x67869d=_0x672810;this[_0x67869d(0x1e9)]=_0x2f15fa,this[_0x67869d(0x228)]=_0x29cfd1,this[_0x67869d(0x226)]=_0x82ef02,this[_0x67869d(0x28b)]=_0x5e76f2,this[_0x67869d(0x2c1)]=_0x1f3b2c;}[_0x672810(0x2b9)](){const _0x3394ca=_0x672810;return this[_0x3394ca(0x226)];}['getPermission'](){const _0x1bb13a=_0x672810;let _0x50a8ab=this[_0x1bb13a(0x228)]['getId']();return new L(this[_0x1bb13a(0x1e9)]['getId'](),_0x5ba058(_0x50a8ab,this[_0x1bb13a(0x226)]),[_0x1f3d94(_0x50a8ab)],this[_0x1bb13a(0x28b)],this[_0x1bb13a(0x2c1)]);}['getField'](){const _0x7f0985=_0x672810;return this[_0x7f0985(0x227)]();}['getName'](){const _0x13fbd9=_0x672810;return this[_0x13fbd9(0x227)]()['name'];}[_0x672810(0x208)](){const _0x2713dd=_0x672810;return this[_0x2713dd(0x227)]()['type'];}[_0x672810(0x1f4)](){const _0x27cd53=_0x672810;return this[_0x27cd53(0x227)]()[_0x27cd53(0x2f4)];}[_0x672810(0x1bf)](){const _0xd90b4b=_0x672810;return this[_0xd90b4b(0x227)]()[_0xd90b4b(0x1d2)];}[_0x672810(0x275)](){const _0x2173cc=_0x672810;return this[_0x2173cc(0x227)]()[_0x2173cc(0x202)];}[_0x672810(0x2f9)](){const _0xcdefdd=_0x672810;return!!this[_0xcdefdd(0x227)]()[_0xcdefdd(0x2aa)];}[_0x672810(0x2dd)](_0x4f13af){const _0x5772e2=_0x672810;return this[_0x5772e2(0x1d3)]({'name':_0x4f13af});}['setConfig'](_0x4063c0,_0x1406d4){const _0x5a8152=_0x672810;return this[_0x5a8152(0x1d3)]({'config':_0x4063c0},_0x1406d4);}[_0x672810(0x1b9)](_0xa34eef){const _0xafe0ae=_0x672810;return this[_0xafe0ae(0x1d3)]({'defaultValue':_0xa34eef});}[_0x672810(0x1d3)](_0xf2fd60,_0x28e543){const _0x5bf5ef=_0x672810;let _0x391782=this[_0x5bf5ef(0x227)]()[_0x5bf5ef(0x27e)];return(_0xf2fd60[_0x5bf5ef(0x27e)]??_0x391782)===_0x22894c['Formula']&&(Object[_0x5bf5ef(0x2d3)][_0x5bf5ef(0x1e7)][_0x5bf5ef(0x2a5)](_0xf2fd60,_0x5bf5ef(0x2f4))||_0xf2fd60['type']===_0x22894c[_0x5bf5ef(0x2d1)])&&!this[_0x5bf5ef(0x1fd)](_0x28e543)?!0x1:this[_0x5bf5ef(0x28b)][_0x5bf5ef(0x1ae)](_0x4de297['id'],{'unitId':this['_base'][_0x5bf5ef(0x2b9)](),'tableId':this[_0x5bf5ef(0x228)][_0x5bf5ef(0x2b9)](),'fieldId':this['_fieldId'],'patch':_0xf2fd60});}[_0x672810(0x2c2)](_0x3ffa59,_0x3c978a={},_0x5c3dcf){const _0x381b86=_0x672810;return _0x3ffa59===_0x22894c[_0x381b86(0x2d1)]&&!this['_writeFormulaExternalReferences'](_0x5c3dcf)?!0x1:this[_0x381b86(0x28b)]['syncExecuteCommand'](_0x4d4dc5['id'],{'unitId':this[_0x381b86(0x1e9)]['getId'](),'tableId':this[_0x381b86(0x228)][_0x381b86(0x2b9)](),'fieldId':this[_0x381b86(0x226)],'input':{'type':_0x3ffa59,'config':_0x3c978a}});}[_0x672810(0x26e)](){const _0x38cc5c=_0x672810;return this[_0x38cc5c(0x28b)][_0x38cc5c(0x1ae)](_0x2a7aef['id'],{'unitId':this[_0x38cc5c(0x1e9)][_0x38cc5c(0x2b9)](),'tableId':this[_0x38cc5c(0x228)][_0x38cc5c(0x2b9)](),'fieldId':this[_0x38cc5c(0x226)]});}[_0x672810(0x1ac)](_0x2372f4){const _0x37af9b=_0x672810;return this[_0x37af9b(0x28b)][_0x37af9b(0x1ae)](_0x519d92['id'],{'unitId':this[_0x37af9b(0x1e9)]['getId'](),'tableId':this[_0x37af9b(0x228)][_0x37af9b(0x2b9)](),'fieldId':this[_0x37af9b(0x226)],'target':_0x2372f4});}[_0x672810(0x227)](){const _0x39ab59=_0x672810;let _0x26372b=this[_0x39ab59(0x228)][_0x39ab59(0x22f)]()['fields'][this['_fieldId']];if(!_0x26372b)throw Error(_0x39ab59(0x23b)+this[_0x39ab59(0x226)]+_0x39ab59(0x24c));return _0x26372b;}[_0x672810(0x1fd)](_0x1597dc){const _0x4a37e8=_0x672810;if(!_0x1597dc||!Array[_0x4a37e8(0x248)](_0x1597dc[_0x4a37e8(0x270)]))return console[_0x4a37e8(0x267)](_0x4a37e8(0x2f8)),!0x1;if(_0x1597dc[_0x4a37e8(0x270)][_0x4a37e8(0x233)]===0x0)return!0x0;let _0x43b224=this[_0x4a37e8(0x28b)][_0x4a37e8(0x1ae)](_0x1c80ca['id'],{'unitId':this[_0x4a37e8(0x1e9)][_0x4a37e8(0x2b9)](),'references':_0x1597dc[_0x4a37e8(0x270)]});return _0x43b224||console[_0x4a37e8(0x267)](_0x4a37e8(0x222)),_0x43b224;}};B=z([R(0x3,_0x49e372),R(0x4,_0x59e954)],B);let ot=function(_0x139f69){const _0x5c9f56=_0x672810;return _0x139f69['Id']='id',_0x139f69['Name']='name',_0x139f69[_0x5c9f56(0x25a)]=_0x5c9f56(0x1b1),_0x139f69;}({});function V(_0x207ff2){const _0x1505c4=_0x672810;return!!(_0x207ff2&&_0x207ff2[_0x1505c4(0x2ed)]!==!0x0&&_0x207ff2[_0x1505c4(0x27e)]!==_0x22894c[_0x1505c4(0x29b)]);}function H(_0x459a9e,_0x37e46b,_0x3b4831='id'){const _0xb54bfd=_0x672810;if(!_0x37e46b)return{};let _0x45ceb5={};return Object[_0xb54bfd(0x25f)](_0x37e46b)[_0xb54bfd(0x2b3)](([_0x21eb43,_0x262470])=>{const _0x4f8c4b=_0xb54bfd;let _0x1227b1=ct(_0x459a9e,_0x21eb43,_0x3b4831);_0x45ceb5[_0x1227b1]=st(_0x459a9e[_0x4f8c4b(0x24d)][_0x1227b1],_0x262470);}),_0x45ceb5;}function st(_0x1d1516,_0x43ca53){const _0x551e88=_0x672810;if((_0x1d1516==null?void 0x0:_0x1d1516['type'])!==_0x22894c[_0x551e88(0x2cf)]||_0x43ca53==null)return _0x43ca53;if(!Array[_0x551e88(0x248)](_0x43ca53))throw TypeError(_0x551e88(0x1b6)+_0x1d1516['name']+_0x551e88(0x2f2));return _0x43ca53[_0x551e88(0x2c6)]((_0x5204db,_0x3c3c1f)=>lt(_0x1d1516,_0x5204db,_0x3c3c1f));}function ct(_0x439a5a,_0x1f71bf,_0x5ef09f){const _0x550615=_0x672810;if(_0x5ef09f==='id'||_0x5ef09f===_0x550615(0x1b1)&&_0x439a5a[_0x550615(0x24d)][_0x1f71bf])return _0x1f71bf;let _0x4e6cb2=Object[_0x550615(0x1cf)](_0x439a5a['fields'])['filter'](_0x256cec=>_0x256cec['name']===_0x1f71bf);if(_0x4e6cb2[_0x550615(0x233)]===0x1)return _0x4e6cb2[0x0]['id'];throw _0x4e6cb2['length']>0x1?Error(_0x550615(0x253)+_0x1f71bf):Error(_0x550615(0x214)+_0x1f71bf);}function lt(_0x263a51,_0x57f713,_0x17c1f8){const _0x4ec49d=_0x672810;let _0x3e0f4e='Invalid\x20attachment\x20at\x20index\x20'+_0x17c1f8+_0x4ec49d(0x2e2)+_0x263a51[_0x4ec49d(0x1ca)]+'\x22';if(!ft(_0x57f713))throw TypeError(_0x3e0f4e+_0x4ec49d(0x2c9));if('url'in _0x57f713)throw TypeError(_0x3e0f4e+_0x4ec49d(0x2b1));if(_0x4ec49d(0x27e)in _0x57f713)throw TypeError(_0x3e0f4e+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x5ae467=U(_0x57f713['id'],_0x3e0f4e,'id'),_0xd28e06=U(_0x57f713[_0x4ec49d(0x1ca)],_0x3e0f4e,_0x4ec49d(0x1ca)),_0x2e103c=U(_0x57f713[_0x4ec49d(0x2e1)],_0x3e0f4e,_0x4ec49d(0x2e1));return{'id':_0x5ae467,'name':_0xd28e06,'source':_0x2e103c,'sourceType':ut(_0x57f713[_0x4ec49d(0x294)],_0x2e103c,_0x3e0f4e),...dt(_0x57f713,_0x4ec49d(0x2b2),_0x3e0f4e),...W(_0x57f713,_0x4ec49d(0x1b2),_0x3e0f4e),...W(_0x57f713,_0x4ec49d(0x1c5),_0x3e0f4e),...W(_0x57f713,_0x4ec49d(0x2a6),_0x3e0f4e),...dt(_0x57f713,_0x4ec49d(0x2a1),_0x3e0f4e)};}function ut(_0x4e62cc,_0x3a62ca,_0x5c22cf){const _0xf1ef06=_0x672810;if(_0x4e62cc==null)return _0x3a62ca[_0xf1ef06(0x1e3)]('data:')?_0x323aed[_0xf1ef06(0x274)]:_0x323aed[_0xf1ef06(0x1ea)];if(_0x4e62cc===_0x323aed['URL']||_0x4e62cc===_0x323aed[_0xf1ef06(0x213)]||_0x4e62cc===_0x323aed['BASE64'])return _0x4e62cc;throw TypeError(_0x5c22cf+_0xf1ef06(0x1c1));}function U(_0x43f7bb,_0x1192f0,_0x4d9a8f){const _0x46f70c=_0x672810;if(typeof _0x43f7bb!=_0x46f70c(0x289)||!_0x43f7bb[_0x46f70c(0x191)]())throw TypeError(_0x1192f0+_0x46f70c(0x2d4)+_0x4d9a8f+_0x46f70c(0x1fe));return _0x43f7bb;}function dt(_0x476ec2,_0x73ac15,_0x2141df){const _0x5d74cb=_0x672810;let _0x1784d2=_0x476ec2[_0x73ac15];if(_0x1784d2==null)return{};if(typeof _0x1784d2!=_0x5d74cb(0x289)||!_0x1784d2[_0x5d74cb(0x191)]())throw TypeError(_0x2141df+_0x5d74cb(0x2d4)+_0x73ac15+_0x5d74cb(0x19f));return{[_0x73ac15]:_0x1784d2};}function W(_0x4776c4,_0x2e51df,_0x126f79){const _0x4f946c=_0x672810;let _0x237832=_0x4776c4[_0x2e51df];if(_0x237832==null)return{};if(typeof _0x237832!=_0x4f946c(0x256)||!Number[_0x4f946c(0x237)](_0x237832)||_0x237832<0x0)throw TypeError(_0x126f79+':\x20\x22'+_0x2e51df+_0x4f946c(0x288));return{[_0x2e51df]:_0x237832};}function ft(_0x50e69d){const _0x256182=_0x672810;return typeof _0x50e69d==_0x256182(0x229)&&!!_0x50e69d&&!Array['isArray'](_0x50e69d);}var G;let K=G=class{constructor(_0x293625,_0x44b18b,_0x5d1cd8,_0x4e60fd,_0x4d5212){const _0x32fde5=_0x672810;this[_0x32fde5(0x1e9)]=_0x293625,this[_0x32fde5(0x228)]=_0x44b18b,this['_range']=_0x5d1cd8,this[_0x32fde5(0x20a)]=_0x4e60fd,this[_0x32fde5(0x28b)]=_0x4d5212,this[_0x32fde5(0x1cb)]();}[_0x672810(0x279)](){const _0x1578ef=_0x672810;return this[_0x1578ef(0x1e9)][_0x1578ef(0x2b9)]();}[_0x672810(0x235)](){const _0x20748b=_0x672810;return this['_table'][_0x20748b(0x2b9)]();}[_0x672810(0x2d2)](){return{...this['_range']};}[_0x672810(0x20c)](){const _0x415354=_0x672810;return this[_0x415354(0x1a4)][_0x415354(0x20f)];}[_0x672810(0x245)](){const _0x538d45=_0x672810;return this[_0x538d45(0x1a4)][_0x538d45(0x29a)];}[_0x672810(0x1de)](){const _0x1fb267=_0x672810;return this[_0x1fb267(0x1a4)][_0x1fb267(0x1c9)]-this[_0x1fb267(0x1a4)][_0x1fb267(0x20f)]+0x1;}[_0x672810(0x298)](){const _0x7c560b=_0x672810;return this[_0x7c560b(0x1a4)][_0x7c560b(0x2ec)]-this[_0x7c560b(0x1a4)]['startColumn']+0x1;}[_0x672810(0x269)](){const _0x318886=_0x672810;let _0x2685e1=this['_getTable'](),_0xc9bdd9=this[_0x318886(0x242)](_0x2685e1),_0x5972c9=[];for(let _0x2b4f22=this[_0x318886(0x1a4)][_0x318886(0x20f)];_0x2b4f22<=this['_range'][_0x318886(0x1c9)];_0x2b4f22++){var _0x34d32e;let _0x1a6735=(_0x34d32e=_0x2685e1[_0x318886(0x2e6)])==null?void 0x0:_0x34d32e[_0x2b4f22],_0x371025=[];for(let _0x1e23f4=this[_0x318886(0x1a4)]['startColumn'];_0x1e23f4<=this[_0x318886(0x1a4)][_0x318886(0x2ec)];_0x1e23f4++){let _0x5e8dc4=_0xc9bdd9[_0x1e23f4];_0x371025[_0x318886(0x265)](_0x1a6735&&_0x5e8dc4?_0x2e4e75(_0x2685e1,_0x1a6735,_0x5e8dc4):null);}_0x5972c9[_0x318886(0x265)](_0x371025);}return _0x5972c9;}['getValue'](){const _0x5aede1=_0x672810;var _0x3c7c63;return((_0x3c7c63=this[_0x5aede1(0x269)]()[0x0])==null?void 0x0:_0x3c7c63[0x0])??null;}[_0x672810(0x19d)](_0x5cfb78){const _0x28baad=_0x672810;return this[_0x28baad(0x2af)]([[_0x5cfb78]]);}[_0x672810(0x2af)](_0x2e95af){const _0x26068f=_0x672810;let _0x117123=this[_0x26068f(0x1de)](),_0x3ead07=this['getNumColumns']();if(_0x2e95af[_0x26068f(0x233)]>_0x117123||_0x2e95af['some'](_0x589b11=>_0x589b11[_0x26068f(0x233)]>_0x3ead07)){var _0x33f63a;throw Error(_0x26068f(0x217)+_0x2e95af['length']+'x'+(((_0x33f63a=_0x2e95af[0x0])==null?void 0x0:_0x33f63a[_0x26068f(0x233)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0x117123+'x'+_0x3ead07+'.');}let _0x20c09d=this[_0x26068f(0x1b8)](),_0x487f73=this[_0x26068f(0x242)](_0x20c09d),_0x3e9d76=_0x2e95af['flatMap']((_0x3a9963,_0x5c5fcf)=>_0x3a9963['map']((_0x4e293a,_0x1e4133)=>{const _0x1caab5=_0x26068f;var _0x12d4a7;let _0x4c0202=this[_0x1caab5(0x1a4)][_0x1caab5(0x20f)]+_0x5c5fcf,_0x1234c5=_0x487f73[this[_0x1caab5(0x1a4)][_0x1caab5(0x29a)]+_0x1e4133],_0x24c4c9=(_0x12d4a7=_0x20c09d[_0x1caab5(0x2e6)])==null?void 0x0:_0x12d4a7[_0x4c0202];if(!_0x1234c5||!_0x24c4c9)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x24c4c9,'fieldId':_0x1234c5,'value':_0x4e293a};}));return this[_0x26068f(0x28b)][_0x26068f(0x1ae)](_0x49690c['id'],{'unitId':this[_0x26068f(0x1e9)]['getId'](),'tableId':this[_0x26068f(0x228)]['getId'](),'patches':_0x3e9d76,'source':_0xe81c71[_0x26068f(0x22b)]});}[_0x672810(0x2c4)](){const _0x4b80d0=_0x672810;return this[_0x4b80d0(0x2af)](Array[_0x4b80d0(0x1f7)]({'length':this[_0x4b80d0(0x1de)]()},()=>Array[_0x4b80d0(0x1f7)]({'length':this[_0x4b80d0(0x298)]()},()=>null)));}[_0x672810(0x2fc)](_0x358d27,_0x5f5649,_0x3012b5=this[_0x672810(0x1de)](),_0x964e51=this[_0x672810(0x298)]()){const _0x22c2c0=_0x672810;return this['_inject'][_0x22c2c0(0x24b)](G,this[_0x22c2c0(0x1e9)],this[_0x22c2c0(0x228)],{'startRow':this[_0x22c2c0(0x1a4)][_0x22c2c0(0x20f)]+_0x358d27,'startColumn':this[_0x22c2c0(0x1a4)][_0x22c2c0(0x29a)]+_0x5f5649,'endRow':this[_0x22c2c0(0x1a4)]['startRow']+_0x358d27+_0x3012b5-0x1,'endColumn':this['_range']['startColumn']+_0x5f5649+_0x964e51-0x1},this['_inject']);}[_0x672810(0x1b8)](){const _0x4da798=_0x672810;let _0x20bf6e=this[_0x4da798(0x228)][_0x4da798(0x22f)]();if(!_0x20bf6e)throw Error(_0x4da798(0x1ab));return _0x5adfc5(_0x20bf6e);}[_0x672810(0x1cb)](){const _0x4b57f5=_0x672810;var _0x3758ef;let _0xdda664=this[_0x4b57f5(0x1b8)](),_0x5bb1d0=((_0x3758ef=_0xdda664[_0x4b57f5(0x1a1)])==null?void 0x0:_0x3758ef[_0x4b57f5(0x233)])??0x0,_0x36c211=this[_0x4b57f5(0x242)](_0xdda664)[_0x4b57f5(0x233)];if(this['_range'][_0x4b57f5(0x20f)]<0x0||this[_0x4b57f5(0x1a4)][_0x4b57f5(0x29a)]<0x0||this['_range'][_0x4b57f5(0x1c9)]<this['_range']['startRow']||this[_0x4b57f5(0x1a4)][_0x4b57f5(0x2ec)]<this[_0x4b57f5(0x1a4)][_0x4b57f5(0x29a)]||this[_0x4b57f5(0x1a4)]['endRow']>=Math['max'](_0x5bb1d0,0x1)||this['_range'][_0x4b57f5(0x2ec)]>=Math[_0x4b57f5(0x282)](_0x36c211,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x5bb1d0+_0x4b57f5(0x2f6)+_0x36c211+_0x4b57f5(0x22e)+JSON[_0x4b57f5(0x1d0)](this['_range'])+'.');}[_0x672810(0x242)](_0x4d55ad){const _0x50543f=_0x672810;return _0x4d55ad[_0x50543f(0x262)][_0x50543f(0x1c8)](_0x2421e8=>V(_0x4d55ad['fields'][_0x2421e8]));}};K=G=z([R(0x4,_0x49e372)],K);function q(_0x3434d6){'@babel/helpers - typeof';const _0x52b1a3=_0x672810;return q=typeof Symbol==_0x52b1a3(0x277)&&typeof Symbol['iterator']==_0x52b1a3(0x223)?function(_0x258c97){return typeof _0x258c97;}:function(_0x22814b){const _0x593a0f=_0x52b1a3;return _0x22814b&&typeof Symbol==_0x593a0f(0x277)&&_0x22814b[_0x593a0f(0x2c8)]===Symbol&&_0x22814b!==Symbol[_0x593a0f(0x2d3)]?'symbol':typeof _0x22814b;},q(_0x3434d6);}function pt(_0xa81de0,_0x5504a3){const _0x4c335f=_0x672810;if(q(_0xa81de0)!=_0x4c335f(0x229)||!_0xa81de0)return _0xa81de0;var _0x56b7f9=_0xa81de0[Symbol['toPrimitive']];if(_0x56b7f9!==void 0x0){var _0x4409fb=_0x56b7f9[_0x4c335f(0x2a5)](_0xa81de0,_0x5504a3||_0x4c335f(0x2a7));if(q(_0x4409fb)!=_0x4c335f(0x229))return _0x4409fb;throw TypeError(_0x4c335f(0x26d));}return(_0x5504a3===_0x4c335f(0x289)?String:Number)(_0xa81de0);}function mt(_0x1c6ab5){const _0x6924e9=_0x672810;var _0x1fb7bf=pt(_0x1c6ab5,_0x6924e9(0x289));return q(_0x1fb7bf)==_0x6924e9(0x223)?_0x1fb7bf:_0x1fb7bf+'';}function _0x1a97(){const _0x21031c=['Duplicate\x20Base\x20field\x20name:\x20','custom','cancel','number','createView','7863584zzaGMQ','getBases','Auto','[FView]:\x20view\x20\x22','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','fireEvent','getChildren','entries','Invalid\x20Base\x20regex\x20filter:\x20','valid','fieldOrder','_baseUnitId','BaseConditionalColorTarget','push','_initBaseAfterEvents','warn','BaseFieldKeyEnum','getValues','updatedAt','tableId','AND','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','delete','BaseTableCreated','externalReferences','registerEventHandler','[FTable]:\x20table\x20\x22','BaseHierarchyErrorCode','BASE64','getDescription','updateConfig','function','getProjection','getBaseId','BeforeBaseTableFieldCreate','getOwnPropertyDescriptor','hidden','orderKey','type','setConditionalColorRules','48390zziNmR','getAncestors','max','field','addLinkedRecord','\x20Copy','fieldId','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','string','subtreeHeightByRecordId','_commandService','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','addRecord','getRecord','primaryFieldName','operator','base','getSort','get','sourceType','BaseConditionalColorOperator','boolean','[FRecord]:\x20field\x20\x22','getNumColumns','getHierarchyFieldId','startColumn','RecordId','BaseConditionalDateMode','tables','notMatches','duplicateTable','_fireBeforeHierarchyChange','thumbnail','BaseFilterConjunction','deleteConditionalColorRule','getTableFacade','call','height','default','Calendar','getPrimaryFieldId','readonly','BaseTableViewCreated','getRecordById','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','insertTable','setValues','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','mimeType','forEach','_objectId','_injector','_baseTableId','_getHierarchyIndex','setReadOnly','getId','createUnit','params','limit','BaseTableFieldCreated','[FBase]:\x20table\x20\x22','_recordId','[FRecord]:\x20record\x20\x22','_permissionService','changeType','getAllUnitsForType','clear','Set','map','_prepareFormulaFieldReferences','constructor',':\x20expected\x20an\x20object.','extend','Edit','deepClone','sort','getVisibleFields','Attachment','BaseEventSource','Formula','getRange','prototype',':\x20\x22','childrenByParentId','caseSensitive','\x22.\x20','4574968UPQVKe','getDataRange','[FRecord]:\x20invalid\x20RecordLink\x20value.','index','_resolveRecordIds','setName','viewId','getBase','parentByRecordId','source','\x20for\x20field\x20\x22','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','_getAttachmentField','_getHierarchyEventContext','rowId','direction','records','_resourceLoaderService','moveField','fieldSettings','endColumn','system','setLinkedRecordIds','record','getAttachments','Date','\x22:\x20expected\x20an\x20array.','executeCommand','config','addChild',',\x20max\x20columns:\x20','BaseTableCellValueChanged','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','isReadonly','getFieldByName','BaseViewType','offset','onCommandExecuted','trim','regenerateViewIds','Delete','deleteAttachments','getRecords','getPoint','some','getCurrentUnitOfType','setEditable','queryRecords','primaryFieldId','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','setValue','[FRecord]:\x20attachment\x20at\x20index\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BaseFieldType','recordOrder','Failed\x20to\x20create\x20view\x20\x22','conditions','_range','getViewById','defineProperty','createdAt','hierarchyChanges','includes','duplicate','[FBaseRange]:\x20table\x20does\x20not\x20exist.','move','getSchema','syncExecuteCommand','getActiveBase','afterFieldId','auto','size','getGroup','81BsQTEh','setHierarchyField','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','value','_getTable','setDefaultValue','3899470ivHQMR','\x20in\x20field\x20\x22','_getView','view','createBase','getDefaultValue','getSnapshot',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','BaseSortDirection','RecordLink','[FRecord]:\x20RecordLink\x20field\x20\x22','width','_viewId','invalid','filter','endRow','name','_assertInBounds','decorate','flatMap','setFieldWidth','values','stringify','BaseTableRecordCreated','defaultValue','update','rows','_initBaseBeforeEvents','getTables','_initialize','Grid','getValue','indexOf','setSort','Event','BaseFilterOperator','getNumRows','Clear','_tableId','BeforeBaseTableCreate','deleteRecords','startsWith','\x22\x20is\x20invalid.','addRecords','rules','hasOwnProperty','3044325xteQyQ','_base','URL','multiple','Remote','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseHierarchyChanged','1177153WULkMm','views','includeRecords','clearConditionalColorRules','Add','getConfig','setParent','removeLinkedRecord','from','Invalid\x20Base\x20formula.','FBase','unitId','87dWbJdS','visibleCardFieldIds','_writeFormulaExternalReferences','\x22\x20must\x20be\x20a\x20non-empty\x20string.','_getRecord','5434366dUhIrs','getDescendants','description','Failed\x20to\x20duplicate\x20table\x20\x22','fieldIds','getViewByName','getLinkedRecordIds','getTableById','getType','viewOrder','_inject','has','getRow','orderedRecordIds','_projectionService','startRow','_unitId','BeforeBaseTableRecordCreate','recordId','UUID','Base\x20field\x20not\x20found:\x20','getName','formula','[FBaseRange]:\x20values\x20size\x20','setAttachments','UNIVER_BASE','reason','getParent','setFilter','setGroup','_collectDescendantIds','_getRecordLinkField','getPermission','getUnit','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','symbol','getView','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','_fieldId','_getField','_table','object','deleteTable','Facade','BeforeBaseHierarchyChange','disposeWithMe',',\x20range:\x20','getTable','canEdit','getViews','getTableByName','length','now','getTableId','localeCompare','isFinite','beforeCommandExecuted','deleteProperty','setOrderKey','[FField]:\x20field\x20\x22','getUnitId','BeforeBaseTableCellValueChange','BeforeBaseTableViewCreate','getFieldSettings','_univerInstanceService','matches','_getFieldIds','Unsupported\x20Base\x20field\x20type\x20\x22','setPoint','getColumn','Failed\x20to\x20delete\x20table\x20\x22','getFieldById','isArray','fieldKey','find','createInstance','\x22\x20does\x20not\x20exist.','fields','\x22\x20has\x20invalid\x20config.','fromCollab','table','tableOrder','12sujVhI'];_0x1a97=function(){return _0x21031c;};return _0x1a97();}function ht(_0x4182a2,_0x5f3d9f,_0x176e73){const _0x1fcc01=_0x672810;return(_0x5f3d9f=mt(_0x5f3d9f))in _0x4182a2?Object[_0x1fcc01(0x1a6)](_0x4182a2,_0x5f3d9f,{'value':_0x176e73,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4182a2[_0x5f3d9f]=_0x176e73,_0x4182a2;}var J;let Y=J=class extends _0x157757{constructor(_0x24c5a3,_0x31199b,_0x5340ed,_0x55aef4,_0x3abb87,_0x25258f){const _0x520f8b=_0x672810;super(_0x55aef4),this[_0x520f8b(0x1e9)]=_0x24c5a3,this[_0x520f8b(0x228)]=_0x31199b,this[_0x520f8b(0x2bf)]=_0x5340ed,this[_0x520f8b(0x2b5)]=_0x55aef4,this['_commandService']=_0x3abb87,this[_0x520f8b(0x2c1)]=_0x25258f,ht(this,_0x520f8b(0x263),void 0x0),ht(this,'_baseTableId',void 0x0),this[_0x520f8b(0x263)]=_0x24c5a3[_0x520f8b(0x2b9)](),this[_0x520f8b(0x2b6)]=_0x31199b['getId']();}['getBaseFacade'](){const _0xffa661=_0x672810;return this[_0xffa661(0x1e9)];}[_0x672810(0x2a4)](){return this['_table'];}[_0x672810(0x2b9)](){const _0x3eede0=_0x672810;return this[_0x3eede0(0x2bf)];}[_0x672810(0x220)](){const _0x14f69b=_0x672810;let _0x4f298b=this[_0x14f69b(0x228)]['getId']();return new L(this[_0x14f69b(0x1e9)][_0x14f69b(0x2b9)](),_0x5115f4(_0x4f298b,this[_0x14f69b(0x2bf)]),[_0x1f3d94(_0x4f298b)],this['_commandService'],this[_0x14f69b(0x2c1)]);}[_0x672810(0x28e)](){const _0x49999c=_0x672810;return{...this[_0x49999c(0x1ff)](),'values':this[_0x49999c(0x269)]()};}[_0x672810(0x1d9)](_0x400ec1){const _0xc82ff1=_0x672810;return V(this[_0xc82ff1(0x228)][_0xc82ff1(0x22f)]()[_0xc82ff1(0x24d)][_0x400ec1])?this['_getRecord']()[_0xc82ff1(0x1cf)][_0x400ec1]??null:null;}[_0x672810(0x269)](){const _0x6ea005=_0x672810;let _0x573c0c=this[_0x6ea005(0x228)][_0x6ea005(0x22f)]();return Object['fromEntries'](Object[_0x6ea005(0x25f)](this[_0x6ea005(0x1ff)]()[_0x6ea005(0x1cf)])[_0x6ea005(0x1c8)](([_0x50c687])=>V(_0x573c0c[_0x6ea005(0x24d)][_0x50c687])));}[_0x672810(0x19d)](_0x4c4cbe,_0x244ce6){const _0xa3ffab=_0x672810;let _0x26b966=this['_table'][_0xa3ffab(0x22f)]()[_0xa3ffab(0x24d)][_0x4c4cbe];return this[_0xa3ffab(0x28b)]['syncExecuteCommand'](_0xf2eaa0['id'],{'unitId':this[_0xa3ffab(0x1e9)]['getId'](),'tableId':this[_0xa3ffab(0x228)][_0xa3ffab(0x2b9)](),'recordId':this[_0xa3ffab(0x2bf)],'fieldId':_0x4c4cbe,'value':st(_0x26b966,_0x244ce6),'source':_0xe81c71[_0xa3ffab(0x22b)]});}[_0x672810(0x218)](_0x425329,_0x3a64e0){const _0x110d74=_0x672810;return this[_0x110d74(0x19d)](_0x425329,_0x3a64e0[_0x110d74(0x2c6)](_0x3be470=>({..._0x3be470})));}[_0x672810(0x2f0)](_0x3c5cbf){const _0x540935=_0x672810;this[_0x540935(0x2e4)](_0x3c5cbf);let _0x2379ac=this[_0x540935(0x1d9)](_0x3c5cbf);return Array[_0x540935(0x248)](_0x2379ac)?_0x2379ac[_0x540935(0x2c6)]((_0x28b27c,_0x2e00a8)=>_t(_0x28b27c,_0x3c5cbf,_0x2e00a8)):[];}[_0x672810(0x194)](_0x1d2a41,_0x2e7ffd){const _0x4d414a=_0x672810;this[_0x4d414a(0x2e4)](_0x1d2a41);let _0x4b31ab=new Set(_0x2e7ffd[_0x4d414a(0x2c6)](_0x131b4e=>_0x131b4e['id']));if(!_0x4b31ab['size'])return!0x0;let _0x2f206e=this[_0x4d414a(0x2f0)](_0x1d2a41),_0x5161c8=_0x2f206e[_0x4d414a(0x1c8)](_0x4d431d=>!_0x4b31ab['has'](_0x4d431d['id']));return _0x5161c8[_0x4d414a(0x233)]===_0x2f206e[_0x4d414a(0x233)]||this[_0x4d414a(0x218)](_0x1d2a41,_0x5161c8);}[_0x672810(0x2af)](_0x4b8c10,_0x159fe7='id'){const _0xc98557=_0x672810;let _0x2aae15=this[_0xc98557(0x228)][_0xc98557(0x22f)](),_0xc291fe=[{'recordId':this[_0xc98557(0x2bf)],'values':H(_0x2aae15,_0x4b8c10,_0x159fe7)}];return this[_0xc98557(0x28b)][_0xc98557(0x1ae)](_0x3ef9eb['id'],{'unitId':this[_0xc98557(0x1e9)][_0xc98557(0x2b9)](),'tableId':this[_0xc98557(0x228)]['getId'](),'patches':_0xc291fe,'source':_0xe81c71[_0xc98557(0x22b)]});}['delete'](){const _0x28772c=_0x672810;return this[_0x28772c(0x28b)]['syncExecuteCommand'](_0x2461cb['id'],{'unitId':this[_0x28772c(0x1e9)]['getId'](),'tableId':this['_table'][_0x28772c(0x2b9)](),'recordId':this[_0x28772c(0x2bf)],'source':_0xe81c71['Facade']});}[_0x672810(0x1aa)](_0x1c8934){const _0x2c12a8=_0x672810;let _0x4af0da={...this[_0x2c12a8(0x1ff)](),..._0x1c8934,'id':_0xc362eb(0x6)};_0x4af0da[_0x2c12a8(0x1cf)]={..._0x4af0da[_0x2c12a8(0x1cf)],..._0x1c8934==null?void 0x0:_0x1c8934[_0x2c12a8(0x1cf)]},Reflect[_0x2c12a8(0x239)](_0x4af0da[_0x2c12a8(0x1cf)],_0x1f464c);let _0x38fc2b=Date[_0x2c12a8(0x234)]();if(_0x4af0da['orderKey']||=''+_0x38fc2b,_0x4af0da['createdAt']||=_0x38fc2b,_0x4af0da[_0x2c12a8(0x26a)]||=_0x38fc2b,!this[_0x2c12a8(0x28b)][_0x2c12a8(0x1ae)](_0x425683['id'],{'unitId':this[_0x2c12a8(0x1e9)][_0x2c12a8(0x2b9)](),'tableId':this[_0x2c12a8(0x228)][_0x2c12a8(0x2b9)](),'sourceRecordId':this[_0x2c12a8(0x2bf)],'record':_0x4af0da,'source':_0xe81c71['Facade']}))throw Error(_0x2c12a8(0x19c)+this[_0x2c12a8(0x2bf)]+'\x22.');return this[_0x2c12a8(0x2b5)]['createInstance'](J,this[_0x2c12a8(0x1e9)],this[_0x2c12a8(0x228)],_0x4af0da['id'],this[_0x2c12a8(0x2b5)]);}[_0x672810(0x23a)](_0x29cdff){const _0x3c240a=_0x672810;return this[_0x3c240a(0x28b)][_0x3c240a(0x1ae)](_0x37e551['id'],{'unitId':this[_0x3c240a(0x1e9)]['getId'](),'tableId':this[_0x3c240a(0x228)][_0x3c240a(0x2b9)](),'recordId':this[_0x3c240a(0x2bf)],'orderKey':_0x29cdff});}[_0x672810(0x206)](_0x37e1bf){const _0x5e7176=_0x672810;let _0x63e468=this[_0x5e7176(0x21f)](_0x37e1bf),_0x32676b=this['getValue'](_0x63e468['id']);return _0xa22387(_0x32676b);}['setLinkedRecordIds'](_0x104d7a,_0x43db18){const _0xba6143=_0x672810;let _0x4e45ce=this[_0xba6143(0x21f)](_0x104d7a),_0x3abb85=_0xb3a4ba(_0x43db18),_0x1977fa=_0x546b12(this[_0xba6143(0x1e9)][_0xba6143(0x2df)]()[_0xba6143(0x1c0)](),_0x4e45ce,_0x3abb85);if(!_0x1977fa[_0xba6143(0x261)])throw Error(_0x1977fa[_0xba6143(0x21a)]??_0xba6143(0x2da));return this['_commandService'][_0xba6143(0x1ae)](_0xf2eaa0['id'],{'unitId':this[_0xba6143(0x1e9)][_0xba6143(0x2b9)](),'tableId':this[_0xba6143(0x228)][_0xba6143(0x2b9)](),'recordId':this[_0xba6143(0x2bf)],'fieldId':_0x104d7a,'value':_0x3abb85,'source':_0xe81c71[_0xba6143(0x22b)]});}[_0x672810(0x284)](_0x4c6885,_0x27eb8f){const _0x36026a=_0x672810;let _0x1a9880=this[_0x36026a(0x21f)](_0x4c6885),_0x5a40ed=_0x10fe9e(_0x1a9880);if(!_0x5a40ed)throw Error(_0x36026a(0x1c4)+_0x4c6885+_0x36026a(0x24e));let _0x4004c5=this['getLinkedRecordIds'](_0x4c6885);return _0x5a40ed[_0x36026a(0x1eb)]&&_0x4004c5[_0x36026a(0x1a9)](_0x27eb8f)?!0x0:this[_0x36026a(0x2ee)](_0x4c6885,_0x5a40ed[_0x36026a(0x1eb)]?[..._0x4004c5,_0x27eb8f]:[_0x27eb8f]);}[_0x672810(0x1f6)](_0x14d8dd,_0x22ce4f){const _0x3dfb10=_0x672810;let _0x5cbfda=this[_0x3dfb10(0x206)](_0x14d8dd);return!_0x5cbfda[_0x3dfb10(0x1a9)](_0x22ce4f)||this[_0x3dfb10(0x2ee)](_0x14d8dd,_0x5cbfda['filter'](_0x4cc483=>_0x4cc483!==_0x22ce4f));}[_0x672810(0x21b)](_0x4d9c07){const _0x2f3dc4=_0x672810;let _0x38a514=this[_0x2f3dc4(0x2b7)](_0x4d9c07)[_0x2f3dc4(0x2e0)][_0x2f3dc4(0x293)](this[_0x2f3dc4(0x2bf)])??null;return _0x38a514?this[_0x2f3dc4(0x228)][_0x2f3dc4(0x2ac)](_0x38a514):null;}[_0x672810(0x25e)](_0x53f1a5){const _0x3816d4=_0x672810;return(this['_getHierarchyIndex'](_0x53f1a5)[_0x3816d4(0x2d5)][_0x3816d4(0x293)](this[_0x3816d4(0x2bf)])??[])[_0x3816d4(0x1cd)](_0x588ec7=>{const _0xa99845=_0x3816d4;let _0x14f2ed=this['_table'][_0xa99845(0x2ac)](_0x588ec7);return _0x14f2ed?[_0x14f2ed]:[];});}[_0x672810(0x281)](_0x46e495){const _0x46bbdf=_0x672810;let _0xc7224d=this['_getHierarchyIndex'](_0x46e495),_0x29a99f=[],_0x1367a9=_0xc7224d[_0x46bbdf(0x2e0)][_0x46bbdf(0x293)](this['_recordId'])??null;for(;_0x1367a9;){let _0x5a2ff3=this[_0x46bbdf(0x228)][_0x46bbdf(0x2ac)](_0x1367a9);_0x5a2ff3&&_0x29a99f[_0x46bbdf(0x265)](_0x5a2ff3),_0x1367a9=_0xc7224d[_0x46bbdf(0x2e0)][_0x46bbdf(0x293)](_0x1367a9)??null;}return _0x29a99f;}[_0x672810(0x201)](_0x28f2bb){const _0x4695a7=_0x672810;let _0x4c8d9c=this['_getHierarchyIndex'](_0x28f2bb),_0x501a0d=_0x4c8d9c[_0x4695a7(0x20d)][_0x4695a7(0x1da)](this[_0x4695a7(0x2bf)]),_0x2f1310=_0x4c8d9c[_0x4695a7(0x28a)][_0x4695a7(0x20b)](this[_0x4695a7(0x2bf)])?this[_0x4695a7(0x21e)](_0x4c8d9c[_0x4695a7(0x2d5)],this[_0x4695a7(0x2bf)]):[];return _0x501a0d<0x0?[]:_0x2f1310[_0x4695a7(0x1cd)](_0x3c4729=>{const _0x11abf4=_0x4695a7;let _0x1b412f=this[_0x11abf4(0x228)]['getRecordById'](_0x3c4729);return _0x1b412f?[_0x1b412f]:[];});}[_0x672810(0x1f5)](_0x16d438,_0x535005,_0x577d7c){const _0x1eb76d=_0x672810;return this[_0x1eb76d(0x28b)][_0x1eb76d(0x1ae)](_0x123689['id'],{'unitId':this[_0x1eb76d(0x1e9)][_0x1eb76d(0x2b9)](),'tableId':this['_table'][_0x1eb76d(0x2b9)](),'fieldId':_0x16d438,'recordId':this[_0x1eb76d(0x2bf)],'parentRecordId':_0x535005,'orderKey':_0x577d7c,'source':_0xe81c71[_0x1eb76d(0x22b)]});}[_0x672810(0x2f5)](_0xf1efd0,_0x20a00d,_0xb37685='id',_0x2c781a){const _0x54ca47=_0x672810;let _0x3da734=this[_0x54ca47(0x228)][_0x54ca47(0x22f)](),_0x5d0c65=Date['now'](),_0x3997d3={..._0x2c781a,'id':_0xc362eb(0x6),'values':H(_0x3da734,_0x20a00d,_0xb37685),'orderKey':(_0x2c781a==null?void 0x0:_0x2c781a[_0x54ca47(0x27d)])||''+_0x5d0c65,'createdAt':(_0x2c781a==null?void 0x0:_0x2c781a['createdAt'])||_0x5d0c65,'updatedAt':(_0x2c781a==null?void 0x0:_0x2c781a['updatedAt'])||_0x5d0c65};if(!this[_0x54ca47(0x28b)][_0x54ca47(0x1ae)](_0x2eeb56['id'],{'unitId':this[_0x54ca47(0x1e9)]['getId'](),'tableId':this[_0x54ca47(0x228)]['getId'](),'fieldId':_0xf1efd0,'parentRecordId':this[_0x54ca47(0x2bf)],'record':_0x3997d3,'source':_0xe81c71[_0x54ca47(0x22b)]}))throw Error(_0x54ca47(0x2e3)+this[_0x54ca47(0x2bf)]+'\x22.');return this[_0x54ca47(0x2b5)]['createInstance'](J,this[_0x54ca47(0x1e9)],this['_table'],_0x3997d3['id'],this[_0x54ca47(0x2b5)]);}[_0x672810(0x2b7)](_0x114b56){const _0x183b6a=_0x672810;return _0x4f82a6(this[_0x183b6a(0x228)][_0x183b6a(0x22f)](),_0x114b56);}[_0x672810(0x21e)](_0x253c1f,_0x53e06a){let _0x3ed366=[],_0x15299f=_0x154105=>{const _0xaeda70=_0x123d;for(let _0x457ca4 of _0x253c1f[_0xaeda70(0x293)](_0x154105)??[])_0x3ed366['push'](_0x457ca4),_0x15299f(_0x457ca4);};return _0x15299f(_0x53e06a),_0x3ed366;}[_0x672810(0x1ff)](){const _0x43c9e8=_0x672810;let _0x4cdc50=this[_0x43c9e8(0x228)][_0x43c9e8(0x22f)]()[_0x43c9e8(0x2e8)][this[_0x43c9e8(0x2bf)]];if(!_0x4cdc50)throw Error(_0x43c9e8(0x2c0)+this[_0x43c9e8(0x2bf)]+'\x22\x20does\x20not\x20exist.');return _0x4cdc50;}[_0x672810(0x21f)](_0x65c29){const _0x9fde09=_0x672810;let _0x108f11=this[_0x9fde09(0x228)][_0x9fde09(0x22f)]()[_0x9fde09(0x24d)][_0x65c29];if(!_0x108f11||_0x108f11[_0x9fde09(0x27e)]!==_0x22894c[_0x9fde09(0x1c3)])throw Error('[FRecord]:\x20field\x20\x22'+_0x65c29+_0x9fde09(0x2ad));return _0x108f11;}['_getAttachmentField'](_0x459e5c){const _0x416b2a=_0x672810;let _0x495757=this[_0x416b2a(0x228)][_0x416b2a(0x22f)]()[_0x416b2a(0x24d)][_0x459e5c];if(!_0x495757||_0x495757[_0x416b2a(0x27e)]!==_0x22894c[_0x416b2a(0x2cf)])throw Error(_0x416b2a(0x297)+_0x459e5c+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x495757;}};Y=J=z([R(0x4,_0x49e372),R(0x5,_0x59e954)],Y);function gt(_0x324910){const _0x4dee72=_0x672810;return!!(_0x324910&&typeof _0x324910=='object'&&'id'in _0x324910&&typeof _0x324910['id']==_0x4dee72(0x289)&&_0x4dee72(0x1ca)in _0x324910&&typeof _0x324910[_0x4dee72(0x1ca)]==_0x4dee72(0x289));}function _t(_0xdd9a83,_0x41f441,_0x53c5d5){const _0x234245=_0x672810;if(!gt(_0xdd9a83))throw Error(_0x234245(0x19e)+_0x53c5d5+_0x234245(0x1bb)+_0x41f441+_0x234245(0x1e4));return{..._0xdd9a83};}let X=class{constructor(_0x42801c,_0x39a27e,_0x2176e7,_0x2f768f,_0x200431,_0x4c7f0e,_0x4bdf32){const _0x281c87=_0x672810;this[_0x281c87(0x1e9)]=_0x42801c,this[_0x281c87(0x228)]=_0x39a27e,this[_0x281c87(0x1c6)]=_0x2176e7,this[_0x281c87(0x2b5)]=_0x2f768f,this[_0x281c87(0x28b)]=_0x200431,this[_0x281c87(0x2c1)]=_0x4c7f0e,this[_0x281c87(0x20e)]=_0x4bdf32;}[_0x672810(0x2b9)](){return this['_viewId'];}['getPermission'](){const _0x510ec7=_0x672810;let _0x463af9=this[_0x510ec7(0x228)][_0x510ec7(0x2b9)]();return new L(this['_base'][_0x510ec7(0x2b9)](),_0x17cc98(_0x463af9,this[_0x510ec7(0x1c6)]),[_0x1f3d94(_0x463af9)],this[_0x510ec7(0x28b)],this[_0x510ec7(0x2c1)]);}[_0x672810(0x224)](){return this['_getView']();}[_0x672810(0x215)](){const _0x1c3b57=_0x672810;return this[_0x1c3b57(0x1bc)]()[_0x1c3b57(0x1ca)];}[_0x672810(0x208)](){const _0x559191=_0x672810;return this[_0x559191(0x1bc)]()['type'];}[_0x672810(0x2dd)](_0x4aecb8){const _0x341064=_0x672810;return this[_0x341064(0x28b)][_0x341064(0x1ae)](_0x560ff3['id'],{'unitId':this[_0x341064(0x1e9)][_0x341064(0x2b9)](),'tableId':this[_0x341064(0x228)][_0x341064(0x2b9)](),'viewId':this['_viewId'],'name':_0x4aecb8});}['getConfig'](){const _0x43a81b=_0x672810;let _0x1a0f7a=this[_0x43a81b(0x208)](),_0x3618b3=this['_getView']()[_0x43a81b(0x2f4)];switch(_0x1a0f7a){case _0x345987[_0x43a81b(0x1d8)]:return _0x3618b3;case _0x345987['Kanban']:return _0x3618b3;case _0x345987[_0x43a81b(0x2a8)]:return _0x3618b3;case _0x345987['Gantt']:return _0x3618b3;case _0x345987['Gallery']:return _0x3618b3;default:return _0x3618b3;}}[_0x672810(0x276)](_0x113ae1){const _0x674a6=_0x672810;return this[_0x674a6(0x28b)][_0x674a6(0x1ae)](_0x27c22b['id'],{'unitId':this[_0x674a6(0x1e9)][_0x674a6(0x2b9)](),'tableId':this['_table']['getId'](),'viewId':this[_0x674a6(0x1c6)],'patch':_0x113ae1});}['getConditionalColorRules'](){const _0x54b4ab=_0x672810;var _0x179301;return _0x2fe97f[_0x54b4ab(0x2cc)](((_0x179301=this['_getView']()[_0x54b4ab(0x2f4)]['conditionalColoring'])==null?void 0x0:_0x179301[_0x54b4ab(0x1e6)])??[]);}[_0x672810(0x27f)](_0x50ae8b){const _0x8e8cac=_0x672810;return this[_0x8e8cac(0x28b)][_0x8e8cac(0x1ae)](_0x2c5d52['id'],{'unitId':this['_base'][_0x8e8cac(0x2b9)](),'tableId':this[_0x8e8cac(0x228)][_0x8e8cac(0x2b9)](),'viewId':this[_0x8e8cac(0x1c6)],'type':_0x5ac52a[_0x8e8cac(0x2c5)],'rules':_0x50ae8b});}['addConditionalColorRule'](_0x95e9df){const _0xb9f59=_0x672810;return this[_0xb9f59(0x28b)]['syncExecuteCommand'](_0x2c5d52['id'],{'unitId':this[_0xb9f59(0x1e9)][_0xb9f59(0x2b9)](),'tableId':this['_table'][_0xb9f59(0x2b9)](),'viewId':this[_0xb9f59(0x1c6)],'type':_0x5ac52a[_0xb9f59(0x1f3)],'rule':_0x95e9df});}[_0x672810(0x2a3)](_0x39ab72){const _0x558b88=_0x672810;return this[_0x558b88(0x28b)]['syncExecuteCommand'](_0x2c5d52['id'],{'unitId':this[_0x558b88(0x1e9)][_0x558b88(0x2b9)](),'tableId':this[_0x558b88(0x228)]['getId'](),'viewId':this[_0x558b88(0x1c6)],'type':_0x5ac52a[_0x558b88(0x193)],'ruleId':_0x39ab72});}[_0x672810(0x1f2)](){const _0x4a067f=_0x672810;return this['_commandService'][_0x4a067f(0x1ae)](_0x2c5d52['id'],{'unitId':this[_0x4a067f(0x1e9)][_0x4a067f(0x2b9)](),'tableId':this[_0x4a067f(0x228)][_0x4a067f(0x2b9)](),'viewId':this[_0x4a067f(0x1c6)],'type':_0x5ac52a[_0x4a067f(0x1df)]});}['getFilter'](){const _0x1af989=_0x672810;return this[_0x1af989(0x1bc)]()[_0x1af989(0x1c8)]??null;}[_0x672810(0x21c)](_0x29cd55){const _0x15dfdd=_0x672810;return this[_0x15dfdd(0x28b)][_0x15dfdd(0x1ae)](_0x4b46c7['id'],{'unitId':this[_0x15dfdd(0x1e9)]['getId'](),'tableId':this['_table'][_0x15dfdd(0x2b9)](),'viewId':this[_0x15dfdd(0x1c6)],'filter':_0x29cd55});}[_0x672810(0x292)](){const _0x49e76e=_0x672810;return this[_0x49e76e(0x1bc)]()[_0x49e76e(0x2cd)]??[];}[_0x672810(0x1db)](_0x4d06e1){const _0x4bb100=_0x672810;return this[_0x4bb100(0x28b)]['syncExecuteCommand'](_0x4cedde['id'],{'unitId':this[_0x4bb100(0x1e9)][_0x4bb100(0x2b9)](),'tableId':this[_0x4bb100(0x228)][_0x4bb100(0x2b9)](),'viewId':this['_viewId'],'sort':_0x4d06e1});}[_0x672810(0x1b3)](){const _0x59a5f9=_0x672810;return this[_0x59a5f9(0x1bc)]()['group']??[];}[_0x672810(0x21d)](_0x3618aa){const _0x4e2afd=_0x672810;return this[_0x4e2afd(0x28b)][_0x4e2afd(0x1ae)](_0x3aab37['id'],{'unitId':this['_base'][_0x4e2afd(0x2b9)](),'tableId':this['_table'][_0x4e2afd(0x2b9)](),'viewId':this['_viewId'],'group':_0x3618aa});}[_0x672810(0x23f)](_0x14ba9b){const _0xfe9711=_0x672810;var _0x38ca2b;return V(this[_0xfe9711(0x228)][_0xfe9711(0x22f)]()[_0xfe9711(0x24d)][_0x14ba9b])?((_0x38ca2b=this[_0xfe9711(0x1bc)]()[_0xfe9711(0x2eb)])==null?void 0x0:_0x38ca2b[_0x14ba9b])??{}:{};}[_0x672810(0x2ce)](){const _0x1b29c8=_0x672810;let _0xb0c19b=this[_0x1b29c8(0x228)][_0x1b29c8(0x22f)](),_0x5528bd=this[_0x1b29c8(0x1bc)]();return(_0x5528bd['fieldOrder']??_0xb0c19b[_0x1b29c8(0x262)])[_0x1b29c8(0x1c8)](_0x52d888=>{const _0x4aeee1=_0x1b29c8;var _0x162cbc;let _0x5af076=_0xb0c19b['fields'][_0x52d888];return V(_0x5af076)&&!((_0x162cbc=_0x5528bd[_0x4aeee1(0x2eb)])!=null&&(_0x162cbc=_0x162cbc[_0x52d888])!=null&&_0x162cbc[_0x4aeee1(0x27c)]);})[_0x1b29c8(0x2c6)](_0x1c32f9=>this[_0x1b29c8(0x2b5)][_0x1b29c8(0x24b)](B,this[_0x1b29c8(0x1e9)],this[_0x1b29c8(0x228)],_0x1c32f9));}['setFieldVisible'](_0x5082bc,_0x5bec3e){const _0x5ec7d2=_0x672810;return V(this['_table'][_0x5ec7d2(0x22f)]()[_0x5ec7d2(0x24d)][_0x5082bc])?this['_commandService'][_0x5ec7d2(0x1ae)](_0x466bff['id'],{'unitId':this['_base'][_0x5ec7d2(0x2b9)](),'tableId':this[_0x5ec7d2(0x228)][_0x5ec7d2(0x2b9)](),'viewId':this[_0x5ec7d2(0x1c6)],'fieldId':_0x5082bc,'visible':_0x5bec3e}):!0x1;}[_0x672810(0x1ce)](_0x4a8468,_0x3d1987){const _0x3dea77=_0x672810;return V(this['_table'][_0x3dea77(0x22f)]()[_0x3dea77(0x24d)][_0x4a8468])?this[_0x3dea77(0x28b)][_0x3dea77(0x1ae)](_0x4df4a5['id'],{'unitId':this['_base'][_0x3dea77(0x2b9)](),'tableId':this[_0x3dea77(0x228)][_0x3dea77(0x2b9)](),'viewId':this['_viewId'],'fieldId':_0x4a8468,'width':_0x3d1987}):!0x1;}[_0x672810(0x2ea)](_0x2e8c9d,_0x5f3b14){const _0x81b832=_0x672810;let _0x4f7017=this['_table'][_0x81b832(0x22f)](),_0x85e333=_0x5f3b14['beforeFieldId']??_0x5f3b14[_0x81b832(0x1b0)];return!V(_0x4f7017[_0x81b832(0x24d)][_0x2e8c9d])||!_0x85e333||!V(_0x4f7017[_0x81b832(0x24d)][_0x85e333])?!0x1:this['_commandService'][_0x81b832(0x1ae)](_0xf0d992['id'],{'unitId':this[_0x81b832(0x1e9)][_0x81b832(0x2b9)](),'tableId':this[_0x81b832(0x228)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x2e8c9d,'target':_0x5f3b14});}[_0x672810(0x1ac)](_0x14eb70){const _0x5d838e=_0x672810;return this['_commandService'][_0x5d838e(0x1ae)](_0x575263['id'],{'unitId':this['_base'][_0x5d838e(0x2b9)](),'tableId':this['_table'][_0x5d838e(0x2b9)](),'viewId':this['_viewId'],'target':_0x14eb70});}['delete'](){const _0x1e2872=_0x672810;return this['_commandService']['syncExecuteCommand'](_0x205d29['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1e2872(0x228)][_0x1e2872(0x2b9)](),'viewId':this[_0x1e2872(0x1c6)]});}['getProjection'](){const _0x3b201f=_0x672810;return this['_projectionService']['getProjection'](this['_base']['getBase']()[_0x3b201f(0x1c0)](),this[_0x3b201f(0x228)][_0x3b201f(0x2b9)](),this[_0x3b201f(0x1c6)]);}['_getView'](){const _0x5e67bf=_0x672810;let _0x5c9d78=this[_0x5e67bf(0x228)][_0x5e67bf(0x22f)]()[_0x5e67bf(0x1f0)][this[_0x5e67bf(0x1c6)]];if(!_0x5c9d78)throw Error(_0x5e67bf(0x25b)+this[_0x5e67bf(0x1c6)]+_0x5e67bf(0x24c));return _0x5c9d78;}};X=z([R(0x4,_0x49e372),R(0x5,_0x59e954),R(0x6,_0x400a91)],X);let Z=class{constructor(_0x32cda1,_0x76e43c,_0x165b01,_0x5edd2b,_0x393ced,_0x1b8a94){const _0x3a8dd0=_0x672810;this['_base']=_0x32cda1,this[_0x3a8dd0(0x1e0)]=_0x76e43c,this['_injector']=_0x165b01,this[_0x3a8dd0(0x28b)]=_0x5edd2b,this[_0x3a8dd0(0x2c1)]=_0x393ced,this[_0x3a8dd0(0x20e)]=_0x1b8a94;}[_0x672810(0x2df)](){const _0x5ceb5a=_0x672810;return this['_base'][_0x5ceb5a(0x2df)]();}['getTable'](){const _0x28be11=_0x672810;return this[_0x28be11(0x1b8)]();}[_0x672810(0x2b9)](){return this['_tableId'];}[_0x672810(0x220)](){const _0x1ac8d3=_0x672810;return new L(this[_0x1ac8d3(0x2df)]()[_0x1ac8d3(0x23c)](),_0x1f3d94(this[_0x1ac8d3(0x1e0)]),[],this['_commandService'],this['_permissionService']);}[_0x672810(0x299)](){const _0x35d325=_0x672810;return _0x3cd49d(this[_0x35d325(0x1b8)]());}[_0x672810(0x1b5)](_0x26f4cf){const _0x4764a7=_0x672810;return this['_commandService'][_0x4764a7(0x1ae)](_0x46e1ca['id'],{'unitId':this[_0x4764a7(0x1e9)][_0x4764a7(0x2b9)](),'tableId':this[_0x4764a7(0x1e0)],'fieldId':_0x26f4cf});}[_0x672810(0x215)](){const _0x5c23b2=_0x672810;return this[_0x5c23b2(0x1b8)]()[_0x5c23b2(0x1ca)];}['getFormulaName'](){const _0x34bd07=_0x672810;let _0x133bdc=this[_0x34bd07(0x1e9)][_0x34bd07(0x2df)]()[_0x34bd07(0x1c0)]();return _0x565dba(this[_0x34bd07(0x1b8)](),_0x133bdc);}[_0x672810(0x2dd)](_0x5b8cab){const _0x336c99=_0x672810;let _0x5daaad=_0x520269(this[_0x336c99(0x1e9)][_0x336c99(0x2df)]()[_0x336c99(0x1c0)](),_0x5b8cab,this[_0x336c99(0x1e0)]);if(!_0x5daaad[_0x336c99(0x261)])throw Error(_0x336c99(0x25c)+_0x5b8cab+_0x336c99(0x2d7)+_0x43ed5f+'\x20'+_0x5daaad['reason']);return this[_0x336c99(0x28b)]['syncExecuteCommand'](_0xfdb55c['id'],{'unitId':this['_base'][_0x336c99(0x2b9)](),'tableId':this[_0x336c99(0x1e0)],'name':_0x5b8cab});}['search'](_0x27e3ab,_0x28b72f){const _0x4cc946=_0x672810;let _0x1575b6=this[_0x4cc946(0x1e9)][_0x4cc946(0x2df)]()[_0x4cc946(0x1c0)](),_0x2bcbb3=this[_0x4cc946(0x1b8)]();if(_0x28b72f){let _0x21f9a5=this[_0x4cc946(0x20e)][_0x4cc946(0x278)](_0x1575b6,this[_0x4cc946(0x1e0)],_0x28b72f),_0x30f925=_0x2bcbb3[_0x4cc946(0x1f0)][_0x28b72f],_0x3e1b77=_0x27e3ab[_0x4cc946(0x204)]??Tt(_0x2bcbb3,_0x30f925,_0x21f9a5),_0x2ed813='rows'in _0x21f9a5&&Array[_0x4cc946(0x248)](_0x21f9a5[_0x4cc946(0x1d4)])?_0x21f9a5[_0x4cc946(0x1d4)]:[];return _0x3c96dc({..._0x27e3ab,'table':_0x2bcbb3,'fieldIds':_0x3e1b77,'rows':_0x2ed813});}let _0x100425=(_0x2bcbb3[_0x4cc946(0x1a1)]?_0x2bcbb3['recordOrder'][_0x4cc946(0x2c6)](_0x5bed6b=>_0x2bcbb3[_0x4cc946(0x2e8)][_0x5bed6b]):Object['values'](_0x2bcbb3[_0x4cc946(0x2e8)])[_0x4cc946(0x2cd)]((_0x4caa6c,_0x31ef39)=>_0x4caa6c[_0x4cc946(0x27d)][_0x4cc946(0x236)](_0x31ef39[_0x4cc946(0x27d)])))['filter'](_0x32469e=>_0x32469e)[_0x4cc946(0x2c6)](_0x5e941e=>({'recordId':_0x5e941e['id'],'values':_0x5e941e[_0x4cc946(0x1cf)]})),_0x442a92=_0x27e3ab['fieldIds']??_0x2bcbb3[_0x4cc946(0x262)][_0x4cc946(0x1c8)](_0x299741=>V(_0x2bcbb3['fields'][_0x299741]));return _0x3c96dc({..._0x27e3ab,'table':_0x2bcbb3,'fieldIds':_0x442a92,'rows':_0x100425});}[_0x672810(0x2a9)](){const _0x54a76b=_0x672810;return this[_0x54a76b(0x1b8)]()[_0x54a76b(0x19b)];}['getFields'](){const _0x5504c7=_0x672810;let _0x2a9255=this[_0x5504c7(0x1b8)]();return _0x2a9255[_0x5504c7(0x262)][_0x5504c7(0x2c6)](_0x16314e=>_0x2a9255[_0x5504c7(0x24d)][_0x16314e])[_0x5504c7(0x1c8)](V)['map'](_0x54f047=>this[_0x5504c7(0x2b5)]['createInstance'](B,this[_0x5504c7(0x1e9)],this,_0x54f047['id']));}[_0x672810(0x247)](_0x1d0bcb){const _0x201097=_0x672810;let _0xb5db73=this[_0x201097(0x1b8)]()[_0x201097(0x24d)][_0x1d0bcb];return V(_0xb5db73)?this[_0x201097(0x2b5)]['createInstance'](B,this[_0x201097(0x1e9)],this,_0xb5db73['id']):null;}[_0x672810(0x2fa)](_0x5b36ce){const _0x10d902=_0x672810;let _0x1fdb32=this[_0x10d902(0x1b8)]()['fields'],_0x5d5fcf=Object[_0x10d902(0x1cf)](_0x1fdb32)['find'](_0x25e8fc=>V(_0x25e8fc)&&_0x25e8fc['name']===_0x5b36ce);return _0x5d5fcf?this[_0x10d902(0x2b5)][_0x10d902(0x24b)](B,this[_0x10d902(0x1e9)],this,_0x5d5fcf['id']):null;}['getPrimaryField'](){const _0x51143f=_0x672810;let _0x514460=this[_0x51143f(0x1b8)]()[_0x51143f(0x19b)];return this[_0x51143f(0x2b5)][_0x51143f(0x24b)](B,this[_0x51143f(0x1e9)],this,_0x514460);}['addField'](_0x2bfd13,_0x3a8783,_0x5eb4f9){const _0x56eeb9=_0x672810;var _0x2eac96,_0x1c94a2;if(!Object[_0x56eeb9(0x1cf)](_0x22894c)['some'](_0x18739c=>_0x18739c===_0x3a8783))throw Error(_0x56eeb9(0x243)+String(_0x3a8783)+'\x22.');if(_0x3a8783===_0x22894c[_0x56eeb9(0x2d1)]&&this[_0x56eeb9(0x2c7)](_0x2bfd13,_0x5eb4f9),_0x3a8783===_0x22894c[_0x56eeb9(0x1c3)]&&(typeof(_0x5eb4f9==null||(_0x2eac96=_0x5eb4f9[_0x56eeb9(0x283)])==null||(_0x2eac96=_0x2eac96[_0x56eeb9(0x2f4)])==null?void 0x0:_0x2eac96['targetTableId'])!='string'||typeof _0x5eb4f9['field'][_0x56eeb9(0x2f4)][_0x56eeb9(0x1eb)]!=_0x56eeb9(0x296)))throw Error(_0x56eeb9(0x225));let _0x1d1d92={..._0x5eb4f9==null?void 0x0:_0x5eb4f9[_0x56eeb9(0x283)],'id':_0xc362eb(0x6),'name':_0x2bfd13,'type':_0x3a8783,'config':(_0x5eb4f9==null||(_0x1c94a2=_0x5eb4f9[_0x56eeb9(0x283)])==null?void 0x0:_0x1c94a2[_0x56eeb9(0x2f4)])??{}};if(!this[_0x56eeb9(0x28b)]['syncExecuteCommand'](_0x5004a9['id'],{'unitId':this[_0x56eeb9(0x1e9)][_0x56eeb9(0x2b9)](),'tableId':this['_tableId'],'field':_0x1d1d92,'index':_0x5eb4f9==null?void 0x0:_0x5eb4f9[_0x56eeb9(0x2db)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x2bfd13+'\x22');return this[_0x56eeb9(0x2b5)][_0x56eeb9(0x24b)](B,this[_0x56eeb9(0x1e9)],this,_0x1d1d92['id']);}[_0x672810(0x2c7)](_0x58d171,_0x49d0b7){const _0x505c2e=_0x672810;var _0x1338d8;if(!_0x49d0b7||!(_0x505c2e(0x270)in _0x49d0b7)||!Array['isArray'](_0x49d0b7[_0x505c2e(0x270)]))throw Error(_0x505c2e(0x1ed));let _0xc3d22e=this[_0x505c2e(0x28b)][_0x505c2e(0x1ae)](_0x452386['id'],{'unitId':this[_0x505c2e(0x1e9)][_0x505c2e(0x2b9)](),'tableId':this['_tableId'],'formula':String(((_0x1338d8=_0x49d0b7['field'])==null||(_0x1338d8=_0x1338d8[_0x505c2e(0x2f4)])==null?void 0x0:_0x1338d8[_0x505c2e(0x216)])??'')});if(!_0xc3d22e[_0x505c2e(0x261)])throw Error(_0xc3d22e['reason']??_0x505c2e(0x1f8));if(_0x49d0b7[_0x505c2e(0x270)]['length']>0x0&&!this[_0x505c2e(0x28b)]['syncExecuteCommand'](_0x1c80ca['id'],{'unitId':this[_0x505c2e(0x1e9)][_0x505c2e(0x2b9)](),'references':_0x49d0b7['externalReferences']}))throw Error(_0x505c2e(0x287)+_0x58d171+'\x22');}[_0x672810(0x195)](){const _0x5377b2=_0x672810;return this[_0x5377b2(0x2dc)]()[_0x5377b2(0x2c6)](_0x1c54d7=>this[_0x5377b2(0x2b5)][_0x5377b2(0x24b)](Y,this[_0x5377b2(0x1e9)],this,_0x1c54d7,this[_0x5377b2(0x2b5)]));}['getRecordById'](_0x3bcf2f){const _0x369503=_0x672810;return this[_0x369503(0x1b8)]()[_0x369503(0x2e8)][_0x3bcf2f]?this[_0x369503(0x2b5)][_0x369503(0x24b)](Y,this[_0x369503(0x1e9)],this,_0x3bcf2f,this[_0x369503(0x2b5)]):null;}[_0x672810(0x19a)](_0x1a1a86={}){const _0x41418d=_0x672810;let _0x10eea6=this[_0x41418d(0x1b8)](),_0x112c28=this[_0x41418d(0x2dc)](_0x1a1a86),_0x3f8c6e=Math[_0x41418d(0x282)](0x0,_0x1a1a86[_0x41418d(0x2fc)]??0x0),_0x2e3056=_0x1a1a86[_0x41418d(0x2bc)]==null?null:Math[_0x41418d(0x282)](0x0,_0x1a1a86['limit']),_0x18cc44=yt(_0x112c28[_0x41418d(0x2c6)](_0x3dce5f=>_0x10eea6[_0x41418d(0x2e8)][_0x3dce5f])['filter'](_0xda3c21=>xt(_0xda3c21,_0x10eea6,_0x1a1a86[_0x41418d(0x1c8)])),_0x10eea6,_0x1a1a86[_0x41418d(0x2cd)]);return{'records':vt(_0x18cc44,_0x1a1a86)[_0x41418d(0x2c6)](_0xf30a6f=>this['_injector']['createInstance'](Y,this['_base'],this,_0xf30a6f['id'],this[_0x41418d(0x2b5)])),'total':_0x18cc44['length'],'offset':_0x3f8c6e,'limit':_0x2e3056,'hasMore':_0x2e3056!=null&&_0x3f8c6e+_0x2e3056<_0x18cc44[_0x41418d(0x233)]};}[_0x672810(0x28d)](_0xa800bf,_0x2b13a1='id',_0x4c7633){const _0x1ec39d=_0x672810;let _0x32b7c0=this[_0x1ec39d(0x1b8)](),_0x288903=Date['now'](),_0x244e38={..._0x4c7633,'id':_0xc362eb(0x6),'values':H(_0x32b7c0,_0xa800bf,_0x2b13a1),'orderKey':(_0x4c7633==null?void 0x0:_0x4c7633['orderKey'])||''+_0x288903,'createdAt':(_0x4c7633==null?void 0x0:_0x4c7633[_0x1ec39d(0x1a7)])||_0x288903,'updatedAt':(_0x4c7633==null?void 0x0:_0x4c7633[_0x1ec39d(0x26a)])||_0x288903};if(!this[_0x1ec39d(0x28b)][_0x1ec39d(0x1ae)](_0x431c7b['id'],{'unitId':this[_0x1ec39d(0x1e9)][_0x1ec39d(0x2b9)](),'tableId':this[_0x1ec39d(0x1e0)],'record':_0x244e38,'source':_0xe81c71['Facade']}))throw Error(_0x1ec39d(0x28c)+_0x244e38['id']+'\x22');return this['_injector']['createInstance'](Y,this[_0x1ec39d(0x1e9)],this,_0x244e38['id'],this[_0x1ec39d(0x2b5)]);}[_0x672810(0x1e5)](_0x29ce6a){const _0x35243f=_0x672810;if(!_0x29ce6a[_0x35243f(0x233)])return[];let _0x4e432d=this[_0x35243f(0x1b8)](),_0x4fb31e=Date[_0x35243f(0x234)](),_0x2acfc8=_0x29ce6a[_0x35243f(0x2c6)]((_0x560175,_0x506b27)=>{const _0x1206f1=_0x35243f;var _0x287286,_0x30ba19,_0x2ad585;return{..._0x560175[_0x1206f1(0x2ef)],'id':_0xc362eb(0x6),'values':H(_0x4e432d,_0x560175['values'],_0x560175[_0x1206f1(0x249)]??'id'),'orderKey':((_0x287286=_0x560175[_0x1206f1(0x2ef)])==null?void 0x0:_0x287286['orderKey'])||''+(_0x4fb31e+_0x506b27),'createdAt':((_0x30ba19=_0x560175['record'])==null?void 0x0:_0x30ba19['createdAt'])||_0x4fb31e,'updatedAt':((_0x2ad585=_0x560175[_0x1206f1(0x2ef)])==null?void 0x0:_0x2ad585[_0x1206f1(0x26a)])||_0x4fb31e};});if(!this[_0x35243f(0x28b)][_0x35243f(0x1ae)](_0x2b0a08['id'],{'unitId':this[_0x35243f(0x1e9)]['getId'](),'tableId':this[_0x35243f(0x1e0)],'records':_0x2acfc8,'source':_0xe81c71[_0x35243f(0x22b)]}))throw Error('Failed\x20to\x20add\x20records');return _0x2acfc8[_0x35243f(0x2c6)](_0x251a4c=>this[_0x35243f(0x2b5)][_0x35243f(0x24b)](Y,this[_0x35243f(0x1e9)],this,_0x251a4c['id'],this[_0x35243f(0x2b5)]));}[_0x672810(0x1e2)](_0x5c20d4){const _0xa8235e=_0x672810;return!_0x5c20d4[_0xa8235e(0x233)]||this[_0xa8235e(0x28b)][_0xa8235e(0x1ae)](_0x49a978['id'],{'unitId':this[_0xa8235e(0x1e9)]['getId'](),'tableId':this[_0xa8235e(0x1e0)],'recordIds':_0x5c20d4,'source':_0xe81c71[_0xa8235e(0x22b)]});}[_0x672810(0x2d2)](_0x3ebebd,_0x1c9e27,_0x3d37b4=0x1,_0x418459=0x1){const _0xadfda2=_0x672810;return this[_0xadfda2(0x2b5)][_0xadfda2(0x24b)](K,this[_0xadfda2(0x1e9)],this,{'startRow':_0x3ebebd,'endRow':_0x3ebebd+_0x3d37b4-0x1,'startColumn':_0x1c9e27,'endColumn':_0x1c9e27+_0x418459-0x1},this[_0xadfda2(0x2b5)]);}[_0x672810(0x2d9)](){const _0x5f1281=_0x672810;var _0x35629e;let _0x240058=_0x5adfc5(this[_0x5f1281(0x1b8)]()),_0xb329ab=((_0x35629e=_0x240058[_0x5f1281(0x1a1)])==null?void 0x0:_0x35629e['length'])??0x0,_0x355f80=_0x240058[_0x5f1281(0x262)][_0x5f1281(0x1c8)](_0x4b3ad5=>V(_0x240058[_0x5f1281(0x24d)][_0x4b3ad5]))['length'];return this[_0x5f1281(0x2d2)](0x0,0x0,Math[_0x5f1281(0x282)](_0xb329ab,0x1),Math['max'](_0x355f80,0x1));}[_0x672810(0x231)](){const _0x23bfa0=_0x672810;let _0x9518cc=this['_getTable']();return _0x9518cc[_0x23bfa0(0x209)][_0x23bfa0(0x1c8)](_0x3f4d0d=>_0x9518cc[_0x23bfa0(0x1f0)][_0x3f4d0d])[_0x23bfa0(0x2c6)](_0x3fadec=>this[_0x23bfa0(0x2b5)]['createInstance'](X,this[_0x23bfa0(0x1e9)],this,_0x3fadec,this[_0x23bfa0(0x2b5)]));}[_0x672810(0x1a5)](_0x53bf22){const _0xbe41e3=_0x672810;return this[_0xbe41e3(0x1b8)]()['views'][_0x53bf22]?this[_0xbe41e3(0x2b5)][_0xbe41e3(0x24b)](X,this[_0xbe41e3(0x1e9)],this,_0x53bf22,this['_injector']):null;}[_0x672810(0x205)](_0x8e0b09){const _0x20a50b=_0x672810;let _0x20254f=this[_0x20a50b(0x1b8)](),_0x3e52f9=Object['values'](_0x20254f[_0x20a50b(0x1f0)])['find'](_0x45e59c=>_0x45e59c[_0x20a50b(0x1ca)]===_0x8e0b09);return _0x3e52f9?this[_0x20a50b(0x2b5)][_0x20a50b(0x24b)](X,this[_0x20a50b(0x1e9)],this,_0x3e52f9['id'],this[_0x20a50b(0x2b5)]):null;}[_0x672810(0x257)](_0x512a7c,_0x1041da,_0xc492d2){const _0xab41e6=_0x672810;var _0x5a1002,_0x351f22,_0x544f08,_0x3d83ed;let _0x47da54=this[_0xab41e6(0x1b8)](),_0x4b51db=(_0xc492d2==null||(_0x5a1002=_0xc492d2['view'])==null?void 0x0:_0x5a1002[_0xab41e6(0x262)])??_0x47da54['fieldOrder'],_0x56ebbf=[_0x1f464c,..._0x4b51db[_0xab41e6(0x1c8)](_0x357305=>V(_0x47da54['fields'][_0x357305]))],_0x23cd87={..._0xc492d2==null?void 0x0:_0xc492d2['view'],'id':_0xc362eb(0x6),'name':_0x512a7c,'type':_0x1041da,'tableId':this[_0xab41e6(0x1e0)],'config':(_0xc492d2==null||(_0x351f22=_0xc492d2[_0xab41e6(0x1bd)])==null?void 0x0:_0x351f22[_0xab41e6(0x2f4)])??{},'fieldOrder':_0x56ebbf,'fieldSettings':{..._0xc492d2==null||(_0x544f08=_0xc492d2[_0xab41e6(0x1bd)])==null?void 0x0:_0x544f08[_0xab41e6(0x2eb)],[_0x1f464c]:{..._0xc492d2==null||(_0x3d83ed=_0xc492d2[_0xab41e6(0x1bd)])==null||(_0x3d83ed=_0x3d83ed[_0xab41e6(0x2eb)])==null?void 0x0:_0x3d83ed[_0x1f464c],'hidden':!0x0}}};if(!this[_0xab41e6(0x28b)]['syncExecuteCommand'](_0x6d95a5['id'],{'unitId':this[_0xab41e6(0x1e9)][_0xab41e6(0x2b9)](),'tableId':this['_tableId'],'view':_0x23cd87,'index':_0xc492d2==null?void 0x0:_0xc492d2[_0xab41e6(0x2db)]}))throw Error(_0xab41e6(0x1a2)+_0x512a7c+'\x22');return this['_injector']['createInstance'](X,this[_0xab41e6(0x1e9)],this,_0x23cd87['id'],this['_injector']);}[_0x672810(0x1ad)](){const _0x123d9e=_0x672810;let _0x1cacfe=this[_0x123d9e(0x1b8)](),_0x372a9c=_0x1cacfe[_0x123d9e(0x262)][_0x123d9e(0x1c8)](_0xc2b976=>V(_0x1cacfe[_0x123d9e(0x24d)][_0xc2b976])),_0x4ecc79=_0x1cacfe[_0x123d9e(0x209)]['filter'](_0xc15185=>_0x1cacfe['views'][_0xc15185]);return{'id':_0x1cacfe['id'],'name':_0x1cacfe[_0x123d9e(0x1ca)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x1cacfe['primaryFieldId'],'fieldIds':_0x372a9c,'viewIds':_0x4ecc79,'recordCount':this['_resolveRecordIds']()[_0x123d9e(0x233)],'fields':_0x372a9c[_0x123d9e(0x2c6)](_0x50476d=>{const _0x9a0d6f=_0x123d9e;let _0x36ea7f=_0x1cacfe[_0x9a0d6f(0x24d)][_0x50476d];return{'id':_0x36ea7f['id'],'name':_0x36ea7f[_0x9a0d6f(0x1ca)],'type':_0x36ea7f[_0x9a0d6f(0x27e)],'config':_0x36ea7f[_0x9a0d6f(0x2f4)],'readonly':_0x36ea7f[_0x9a0d6f(0x2aa)],'description':_0x36ea7f[_0x9a0d6f(0x202)]};}),'views':_0x4ecc79[_0x123d9e(0x2c6)](_0x56aee4=>{const _0x5c9606=_0x123d9e;let _0x5c8f17=_0x1cacfe['views'][_0x56aee4];return{'id':_0x5c8f17['id'],'name':_0x5c8f17[_0x5c9606(0x1ca)],'type':_0x5c8f17[_0x5c9606(0x27e)]};})};}[_0x672810(0x1b8)](){const _0x838038=_0x672810;let _0x21a998=this[_0x838038(0x1e9)][_0x838038(0x2df)]()[_0x838038(0x1c0)]()['tables'][this[_0x838038(0x1e0)]];if(!_0x21a998)throw Error(_0x838038(0x272)+this['_tableId']+_0x838038(0x24c));return _0x21a998;}[_0x672810(0x2dc)](_0x1906e3={}){const _0x27e940=_0x672810;let _0x313c80=this[_0x27e940(0x1e9)][_0x27e940(0x2df)]()[_0x27e940(0x1c0)](),_0x1d068c=this[_0x27e940(0x1b8)]();if(_0x1906e3[_0x27e940(0x2de)]){let _0x9f90c9=this['_projectionService'][_0x27e940(0x278)](_0x313c80,this[_0x27e940(0x1e0)],_0x1906e3[_0x27e940(0x2de)]);if(_0x27e940(0x1d4)in _0x9f90c9&&Array[_0x27e940(0x248)](_0x9f90c9[_0x27e940(0x1d4)]))return _0x9f90c9[_0x27e940(0x1d4)][_0x27e940(0x2c6)](_0xf72530=>_0xf72530[_0x27e940(0x212)]);}return(_0x1d068c[_0x27e940(0x1a1)]?_0x1d068c[_0x27e940(0x1a1)][_0x27e940(0x2c6)](_0x402121=>_0x1d068c[_0x27e940(0x2e8)][_0x402121]):Object[_0x27e940(0x1cf)](_0x1d068c[_0x27e940(0x2e8)])[_0x27e940(0x2cd)]((_0x40b5a5,_0x14c38a)=>_0x40b5a5['orderKey']['localeCompare'](_0x14c38a[_0x27e940(0x27d)])))[_0x27e940(0x1c8)](_0x3d2a5c=>_0x3d2a5c)['map'](_0x1231b4=>_0x1231b4['id']);}};Z=z([R(0x3,_0x49e372),R(0x4,_0x59e954),R(0x5,_0x400a91)],Z);function vt(_0x414616,_0x37b176){const _0x5d9093=_0x672810;let _0x52fd53=Math[_0x5d9093(0x282)](0x0,_0x37b176[_0x5d9093(0x2fc)]??0x0);return _0x37b176['limit']==null?_0x414616['slice'](_0x52fd53):_0x414616['slice'](_0x52fd53,_0x52fd53+Math[_0x5d9093(0x282)](0x0,_0x37b176[_0x5d9093(0x2bc)]));}function yt(_0x27f361,_0x1c6d81,_0xfb3551=[]){const _0x56fdd3=_0x672810;return _0xfb3551[_0x56fdd3(0x233)]?[..._0x27f361][_0x56fdd3(0x2cd)]((_0x3b7c91,_0x1b22b2)=>{const _0x172337=_0x56fdd3;for(let _0x49f3a4 of _0xfb3551){var _0xf884cd;let _0x12460f=_0x49f3a4[_0x172337(0x2e7)]===_0x55f975['DESC']?-0x1:0x1,_0x5ae369=bt(_0x3b7c91['values'][_0x49f3a4[_0x172337(0x286)]],_0x1b22b2[_0x172337(0x1cf)][_0x49f3a4['fieldId']],(_0xf884cd=_0x1c6d81['fields'][_0x49f3a4[_0x172337(0x286)]])==null?void 0x0:_0xf884cd[_0x172337(0x27e)]);if(_0x5ae369!==0x0)return _0x5ae369*_0x12460f;}return String(_0x3b7c91[_0x172337(0x27d)]??_0x3b7c91['id'])[_0x172337(0x236)](String(_0x1b22b2['orderKey']??_0x1b22b2['id']));}):_0x27f361;}function bt(_0x3e8349,_0x22bfa3,_0x130e90){const _0x3ab9b4=_0x672810;return _0x3e8349==null&&_0x22bfa3==null?0x0:_0x3e8349==null?-0x1:_0x22bfa3==null?0x1:typeof _0x3e8349==_0x3ab9b4(0x256)&&typeof _0x22bfa3==_0x3ab9b4(0x256)?_0x3e8349-_0x22bfa3:_0x130e90===_0x22894c[_0x3ab9b4(0x2f1)]?Number(_0x3e8349)-Number(_0x22bfa3):String(_0x3e8349)[_0x3ab9b4(0x236)](String(_0x22bfa3));}function xt(_0x2daf32,_0x36c512,_0x4b086a){const _0x5cf8e3=_0x672810;var _0x3ff9ee;if(!_0x4b086a||!((_0x3ff9ee=_0x4b086a[_0x5cf8e3(0x1a3)])!=null&&_0x3ff9ee['length']))return!0x0;let {conjunction:_0x1b00a2=_0x5b15fe['OR'],conditions:_0x15ae7a}=_0x4b086a;return _0x1b00a2===_0x5b15fe[_0x5cf8e3(0x26c)]&&_0x15ae7a[_0x5cf8e3(0x233)]>0x1?_0x15ae7a['every'](_0x1f3e90=>St(_0x2daf32,_0x36c512,_0x1f3e90)):_0x15ae7a[_0x5cf8e3(0x197)](_0x4000a1=>St(_0x2daf32,_0x36c512,_0x4000a1));}function St(_0x22f3da,_0x4f4613,_0x820ace){const _0x4ee027=_0x672810;let _0x5124b0=_0x22f3da['values'][_0x820ace[_0x4ee027(0x286)]],_0x2b8edd=_0x4f4613[_0x4ee027(0x24d)][_0x820ace[_0x4ee027(0x286)]];if(Ct(_0x820ace)){let _0x3344b7=wt(_0x820ace)['test'](String(_0x5124b0??''));return _0x820ace[_0x4ee027(0x290)]===_0x4ee027(0x241)?_0x3344b7:!_0x3344b7;}return!_0x2b8edd||_0x42dc53(_0x5124b0,_0x820ace[_0x4ee027(0x290)],_0x820ace[_0x4ee027(0x1b7)],_0x2b8edd);}function Ct(_0x10a7d9){const _0x3d4fab=_0x672810;return _0x10a7d9[_0x3d4fab(0x290)]===_0x3d4fab(0x241)||_0x10a7d9['operator']===_0x3d4fab(0x29e);}function wt(_0x4331c5){const _0x2ee761=_0x672810;let _0x59138c=String(_0x4331c5[_0x2ee761(0x1b7)]??'');if(_0x59138c[_0x2ee761(0x233)]>0x200)throw Error(_0x2ee761(0x2b0));try{return new RegExp(_0x59138c,_0x4331c5[_0x2ee761(0x2d6)]?void 0x0:'i');}catch(_0x3be528){throw Error(_0x2ee761(0x260)+_0x59138c+'.\x20'+(_0x3be528 instanceof Error?_0x3be528['message']:String(_0x3be528)));}}function Tt(_0x4732cf,_0x2c3daa,_0x50c1f3){const _0x5ad5b6=_0x672810;if(_0x50c1f3[_0x5ad5b6(0x27e)]!==_0x5ad5b6(0x1c7)&&_0x50c1f3['type']!==_0x5ad5b6(0x254)){var _0x14a5b5;if(_0x50c1f3['type']===_0x345987['Kanban']){var _0x2c910a;let _0x234d9c=[((_0x2c910a=_0x50c1f3[_0x5ad5b6(0x24d)])==null||(_0x2c910a=_0x2c910a[0x0])==null?void 0x0:_0x2c910a['id'])??_0x4732cf[_0x5ad5b6(0x19b)],..._0x50c1f3[_0x5ad5b6(0x1fc)]??[]];return Array[_0x5ad5b6(0x1f7)](new Set(_0x234d9c[_0x5ad5b6(0x1c8)](_0x1614ea=>!!_0x4732cf['fields'][_0x1614ea])));}if((_0x14a5b5=_0x50c1f3[_0x5ad5b6(0x24d)])!=null&&_0x14a5b5[_0x5ad5b6(0x233)])return _0x50c1f3[_0x5ad5b6(0x24d)][_0x5ad5b6(0x2c6)](_0x3d3dec=>_0x3d3dec['id'])[_0x5ad5b6(0x1c8)](_0x2fd64b=>{const _0x10961e=_0x5ad5b6;var _0x33e054;return!(!_0x4732cf[_0x10961e(0x24d)][_0x2fd64b]||_0x2c3daa!=null&&(_0x33e054=_0x2c3daa[_0x10961e(0x2eb)])!=null&&(_0x33e054=_0x33e054[_0x2fd64b])!=null&&_0x33e054[_0x10961e(0x27c)]);});}return _0x4732cf[_0x5ad5b6(0x262)]['filter'](_0x43bf8d=>{var _0x3f9287;return!(!_0x4732cf['fields'][_0x43bf8d]||_0x2c3daa!=null&&(_0x3f9287=_0x2c3daa['fieldSettings'])!=null&&(_0x3f9287=_0x3f9287[_0x43bf8d])!=null&&_0x3f9287['hidden']);});}let Q=class extends _0xe0f600[_0x672810(0x1f9)]{constructor(_0x965777,_0x56fcb2,_0xdacc99,_0x7ca151,_0x6a1867){const _0x5d966e=_0x672810;super(),this[_0x5d966e(0x1e9)]=_0x965777,this[_0x5d966e(0x2b5)]=_0x56fcb2,this['_resourceLoaderService']=_0xdacc99,this[_0x5d966e(0x28b)]=_0x7ca151,this['_permissionService']=_0x6a1867;}[_0x672810(0x2df)](){const _0x56ec8d=_0x672810;return this[_0x56ec8d(0x1e9)];}[_0x672810(0x2b9)](){const _0x1dad1a=_0x672810;return this[_0x1dad1a(0x1e9)]['getUnitId']();}['getPermission'](){const _0x116ee8=_0x672810;return new at(this[_0x116ee8(0x2b9)](),this[_0x116ee8(0x28b)],this[_0x116ee8(0x2c1)]);}['save'](){const _0xd5f2c4=_0x672810;return this[_0xd5f2c4(0x2e9)]['saveUnit'](this[_0xd5f2c4(0x2b9)]())??_0x2fe97f[_0xd5f2c4(0x2cc)](this[_0xd5f2c4(0x1e9)][_0xd5f2c4(0x1c0)]());}['getName'](){const _0x354553=_0x672810;return this[_0x354553(0x1e9)][_0x354553(0x1c0)]()[_0x354553(0x1ca)];}['setName'](_0x49b814){const _0x35ad02=_0x672810;this['_commandService'][_0x35ad02(0x1ae)](_0x3fec51['id'],{'unitId':this[_0x35ad02(0x2b9)](),'name':_0x49b814});}[_0x672810(0x1d6)](){const _0x957caa=_0x672810;let _0x5eb13e=this[_0x957caa(0x1e9)]['getSnapshot']();return _0x5eb13e[_0x957caa(0x251)][_0x957caa(0x2c6)](_0x41e387=>_0x5eb13e['tables'][_0x41e387])['filter'](_0x350547=>_0x350547)[_0x957caa(0x2c6)](_0x27827c=>this[_0x957caa(0x2b5)][_0x957caa(0x24b)](Z,this,_0x27827c['id'],this[_0x957caa(0x2b5)]));}[_0x672810(0x207)](_0xe6c4ff){const _0x42a923=_0x672810;let _0x200d2b=this[_0x42a923(0x1e9)]['getSnapshot']()[_0x42a923(0x29d)][_0xe6c4ff];return _0x200d2b?this[_0x42a923(0x2b5)][_0x42a923(0x24b)](Z,this,_0x200d2b['id'],this[_0x42a923(0x2b5)]):null;}[_0x672810(0x232)](_0x51e4e0){const _0xf485=_0x672810;let _0x56be10=this['_base']['getSnapshot'](),_0x4a2506=Object[_0xf485(0x1cf)](_0x56be10['tables'])[_0xf485(0x24a)](_0x27117f=>_0x27117f[_0xf485(0x1ca)]===_0x51e4e0);return _0x4a2506?this[_0xf485(0x2b5)][_0xf485(0x24b)](Z,this,_0x4a2506['id'],this['_injector']):null;}[_0x672810(0x2ae)](_0x53d906,_0x41936a){const _0x39f115=_0x672810;let _0x86e881=_0x546bf8({'id':_0xc362eb(),'name':_0x53d906,..._0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x250)],'primaryFieldName':_0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x28f)]}),_0x2719be=_0x2fe97f['commonExtend'](_0x86e881,(_0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x250)])??{}),_0x1acbd6=_0x520269(this['_base'][_0x39f115(0x1c0)](),_0x2719be[_0x39f115(0x1ca)]);if(!_0x1acbd6[_0x39f115(0x261)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x2719be[_0x39f115(0x1ca)]+_0x39f115(0x2d7)+_0x43ed5f+'\x20'+_0x1acbd6[_0x39f115(0x21a)]);if(!this[_0x39f115(0x28b)][_0x39f115(0x1ae)](_0x3dd62e['id'],{'unitId':this['_base'][_0x39f115(0x23c)](),'table':_0x2719be,'index':_0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x2db)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x53d906+'\x22.');return this[_0x39f115(0x2b5)][_0x39f115(0x24b)](Z,this,_0x2719be['id'],this[_0x39f115(0x2b5)]);}[_0x672810(0x22a)](_0x7a7ca3){const _0x5bdabf=_0x672810;let _0x16c9fc=typeof _0x7a7ca3==_0x5bdabf(0x289)?_0x7a7ca3:_0x7a7ca3['getId']();if(!this[_0x5bdabf(0x28b)]['syncExecuteCommand'](_0x20caaa['id'],{'unitId':this[_0x5bdabf(0x1e9)][_0x5bdabf(0x23c)](),'tableId':_0x16c9fc}))throw Error(_0x5bdabf(0x246)+_0x16c9fc+'\x22.');return!0x0;}[_0x672810(0x29f)](_0x5e08fa,_0x12d6f5){const _0x5e069a=_0x672810;let _0x208e86=this[_0x5e069a(0x1e9)]['getSnapshot'](),_0x1c0162=typeof _0x5e08fa==_0x5e069a(0x289)?_0x5e08fa:_0x5e08fa[_0x5e069a(0x2b9)](),_0x59b7c7=_0x208e86[_0x5e069a(0x29d)][_0x1c0162];if(!_0x59b7c7)throw Error(_0x5e069a(0x2be)+_0x1c0162+_0x5e069a(0x24c));let _0x2b6511=_0x208e86[_0x5e069a(0x251)][_0x5e069a(0x1da)](_0x1c0162)+0x1,_0x44be8f=_0xc362eb(),_0x527909=_0xedde2c(_0x59b7c7,{'id':_0x44be8f,'name':_0x561a70(_0x208e86,_0x59b7c7[_0x5e069a(0x1ca)]+_0x5e069a(0x285)),'includeRecords':(_0x12d6f5==null?void 0x0:_0x12d6f5[_0x5e069a(0x1f1)])??!0x1,'regenerateViewIds':(_0x12d6f5==null?void 0x0:_0x12d6f5[_0x5e069a(0x192)])??!0x1});if(!this[_0x5e069a(0x28b)][_0x5e069a(0x1ae)](_0x3dd62e['id'],{'unitId':this[_0x5e069a(0x1e9)][_0x5e069a(0x23c)](),'table':_0x527909,'index':_0x2b6511}))throw Error(_0x5e069a(0x203)+_0x1c0162+'\x22.');return this['_injector'][_0x5e069a(0x24b)](Z,this,_0x527909['id'],this[_0x5e069a(0x2b5)]);}[_0x672810(0x1ad)](){const _0x2d2e29=_0x672810;let _0x218152=this['_base']['getSnapshot']();return{'id':_0x218152['id'],'name':_0x218152[_0x2d2e29(0x1ca)],'tables':this[_0x2d2e29(0x1d6)]()[_0x2d2e29(0x2c6)](_0x176893=>_0x176893[_0x2d2e29(0x1ad)]())};}};Q=z([R(0x1,_0x1f83e3(_0x1d5f17)),R(0x2,_0x2ec0f3),R(0x3,_0x49e372),R(0x4,_0x59e954)],Q);var Et=class extends _0x5ac03e{[_0x672810(0x1d7)](){const _0xd1a3b=_0x672810;this[_0xd1a3b(0x1d5)](),this[_0xd1a3b(0x266)]();}[_0x672810(0x1be)](_0x460818={},_0x2f8754){const _0x432cde=_0x672810;let _0x5c953d=this['_univerInstanceService'][_0x432cde(0x2ba)](_0xc43c8[_0x432cde(0x219)],_0x460818,_0x2f8754);return this[_0x432cde(0x2b5)]['createInstance'](Q,_0x5c953d);}[_0x672810(0x1af)](){const _0x21669f=_0x672810;let _0x3544ab=this[_0x21669f(0x240)][_0x21669f(0x198)](_0xc43c8['UNIVER_BASE']);return _0x3544ab?this[_0x21669f(0x2b5)]['createInstance'](Q,_0x3544ab):null;}[_0x672810(0x2df)](_0x3a8921){const _0x57d2bd=_0x672810;let _0x31af6a=this[_0x57d2bd(0x240)][_0x57d2bd(0x221)](_0x3a8921,_0xc43c8[_0x57d2bd(0x219)]);return _0x31af6a?this['_injector'][_0x57d2bd(0x24b)](Q,_0x31af6a):null;}[_0x672810(0x259)](){const _0x565cd1=_0x672810;return this['_univerInstanceService'][_0x565cd1(0x2c3)](_0xc43c8['UNIVER_BASE'])['map'](_0x2e9ee7=>this['_injector'][_0x565cd1(0x24b)](Q,_0x2e9ee7));}[_0x672810(0x266)](){const _0x4b5257=_0x672810;this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this[_0x4b5257(0x1dc)]['BaseHierarchyChanged'],()=>this['_commandService']['onCommandExecuted']((_0x4692cb,_0x10d753)=>{const _0x1b2002=_0x4b5257;var _0x60cb5f;if(!$(_0x4692cb,_0x29f6bf))return;let _0x929a12=_0x4692cb[_0x1b2002(0x2bb)];if(!((_0x60cb5f=_0x929a12[_0x1b2002(0x1a8)])!=null&&_0x60cb5f[_0x1b2002(0x233)]))return;let _0x10a07c=this[_0x1b2002(0x2df)](_0x929a12[_0x1b2002(0x1fa)]),_0x1bef21=_0x10a07c==null?void 0x0:_0x10a07c[_0x1b2002(0x207)](_0x929a12[_0x1b2002(0x1a8)][0x0][_0x1b2002(0x26b)]);if(!_0x10a07c||!_0x1bef21)return;let _0x174b2c={'base':_0x10a07c,'table':_0x1bef21,'changes':_0x929a12[_0x1b2002(0x1a8)],'source':_0x10d753!=null&&_0x10d753[_0x1b2002(0x24f)]?_0xe81c71[_0x1b2002(0x1ec)]:_0x929a12['source']??_0xe81c71['UI']};this[_0x1b2002(0x25d)](this[_0x1b2002(0x1dc)][_0x1b2002(0x1ee)],_0x174b2c);}))),this[_0x4b5257(0x22d)](this['registerEventHandler'](this[_0x4b5257(0x1dc)][_0x4b5257(0x26f)],()=>this['_commandService'][_0x4b5257(0x2fd)](_0xf34535=>{const _0x58d2ad=_0x4b5257;if(_0xf34535['id']!==_0x3dd62e['id'])return;let {unitId:_0x442490,table:_0x617888,index:_0x5693e1}=_0xf34535[_0x58d2ad(0x2bb)],_0x3d1c19=this[_0x58d2ad(0x2df)](_0x442490);if(!_0x3d1c19)return;let _0x45cbf0={'base':_0x3d1c19,'table':_0x617888,'index':_0x5693e1};this[_0x58d2ad(0x25d)](this[_0x58d2ad(0x1dc)][_0x58d2ad(0x26f)],_0x45cbf0);}))),this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this[_0x4b5257(0x1dc)]['BaseTableFieldCreated'],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x5c1997=>{const _0xb8c6d8=_0x4b5257;if(_0x5c1997['id']!==_0x5004a9['id'])return;let {unitId:_0x44023d,tableId:_0x5797d0,field:_0x56a754,index:_0x36b50b,viewIndexes:_0x2c40c4}=_0x5c1997[_0xb8c6d8(0x2bb)],_0x17b80d=this[_0xb8c6d8(0x2df)](_0x44023d);if(!_0x17b80d)return;let _0x23f010=_0x17b80d[_0xb8c6d8(0x207)](_0x5797d0);if(!_0x23f010)return;let _0x4a40fa={'base':_0x17b80d,'table':_0x23f010,'field':_0x56a754,'index':_0x36b50b,'viewIndexes':_0x2c40c4};this[_0xb8c6d8(0x25d)](this[_0xb8c6d8(0x1dc)][_0xb8c6d8(0x2bd)],_0x4a40fa);}))),this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this['Event'][_0x4b5257(0x1d1)],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x56a7b8=>{const _0x46fb72=_0x4b5257;if(_0x56a7b8['id']!==_0x431c7b['id']&&_0x56a7b8['id']!==_0x2b0a08['id'])return;let _0xa24243=_0x56a7b8[_0x46fb72(0x2bb)],{unitId:_0x13eee6,tableId:_0x28a4a4}=_0xa24243,_0x34e4fe=_0xa24243[_0x46fb72(0x2e8)]??[_0xa24243[_0x46fb72(0x2ef)]],_0x5351fe=this[_0x46fb72(0x2df)](_0x13eee6);if(!_0x5351fe)return;let _0x3c805f=_0x5351fe[_0x46fb72(0x207)](_0x28a4a4);if(!_0x3c805f)return;let _0x1214e2={'base':_0x5351fe,'table':_0x3c805f,'records':_0x34e4fe};this[_0x46fb72(0x25d)](this[_0x46fb72(0x1dc)][_0x46fb72(0x1d1)],_0x1214e2);}))),this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this[_0x4b5257(0x1dc)]['BaseTableViewCreated'],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x1bb55e=>{const _0x52c667=_0x4b5257;if(_0x1bb55e['id']!==_0x6d95a5['id'])return;let {unitId:_0x279a12,tableId:_0x498653,view:_0x1c3fcb,index:_0x12f98b}=_0x1bb55e[_0x52c667(0x2bb)],_0x3b2809=this[_0x52c667(0x2df)](_0x279a12);if(!_0x3b2809)return;let _0x2fdcbe=_0x3b2809[_0x52c667(0x207)](_0x498653);if(!_0x2fdcbe)return;let _0xff5d94={'base':_0x3b2809,'table':_0x2fdcbe,'view':_0x1c3fcb,'index':_0x12f98b};this[_0x52c667(0x25d)](this['Event'][_0x52c667(0x2ab)],_0xff5d94);}))),this[_0x4b5257(0x22d)](this['registerEventHandler'](this[_0x4b5257(0x1dc)][_0x4b5257(0x2f7)],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x3dff5d=>{const _0x12afdf=_0x4b5257;if(_0x3dff5d['id']!==_0xf2eaa0['id'])return;let {unitId:_0x3767b8,tableId:_0x9d2cca,recordId:_0x5a107d,fieldId:_0x44c7a1,value:_0x5dcd54}=_0x3dff5d[_0x12afdf(0x2bb)],_0x210942=this[_0x12afdf(0x2df)](_0x3767b8);if(!_0x210942)return;let _0x5c96e2=_0x210942[_0x12afdf(0x207)](_0x9d2cca);if(!_0x5c96e2)return;let _0xfc9c65=_0x5c96e2[_0x12afdf(0x247)](_0x44c7a1);if(!_0xfc9c65)return;let _0x365478=_0x5c96e2[_0x12afdf(0x2ac)](_0x5a107d);if(!_0x365478)return;let _0x446f36={'base':_0x210942,'table':_0x5c96e2,'field':_0xfc9c65,'record':_0x365478,'value':_0x5dcd54};this['fireEvent'](this[_0x12afdf(0x1dc)][_0x12afdf(0x2f7)],_0x446f36);})));}[_0x672810(0x1d5)](){const _0x3f49da=_0x672810;this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)]['BeforeBaseHierarchyChange'],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x304aab=>{const _0x2c5fa7=_0x3f49da;if($(_0x304aab,_0x3ef9eb)){let {unitId:_0x3a1c01,tableId:_0x4d3c87,patches:_0x4c4f7e,source:_0x5a2231=_0xe81c71['UI']}=_0x304aab['params'],_0x5b3c12=this[_0x2c5fa7(0x2e5)](_0x3a1c01,_0x4d3c87);if(!_0x5b3c12)return;this[_0x2c5fa7(0x2a0)](_0x5b3c12[_0x2c5fa7(0x291)],_0x5b3c12[_0x2c5fa7(0x250)],_0x3193de(_0x5b3c12[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),_0x4c4f7e),_0x5a2231);return;}if($(_0x304aab,_0x49690c)){let {unitId:_0x4b476c,tableId:_0x5a3252,patches:_0x3541ab,source:_0x3f19c4=_0xe81c71['UI']}=_0x304aab[_0x2c5fa7(0x2bb)],_0x48121b=this[_0x2c5fa7(0x2e5)](_0x4b476c,_0x5a3252);if(!_0x48121b)return;let _0x56a781=_0x48121b[_0x2c5fa7(0x250)]['getTable']();this[_0x2c5fa7(0x2a0)](_0x48121b[_0x2c5fa7(0x291)],_0x48121b[_0x2c5fa7(0x250)],_0x3193de(_0x56a781,_0x342aca(_0x56a781,_0x3541ab)),_0x3f19c4);return;}if($(_0x304aab,_0x431c7b)){let _0x49c1b6=_0x304aab[_0x2c5fa7(0x2bb)],_0x26252e=this['_getHierarchyEventContext'](_0x49c1b6[_0x2c5fa7(0x1fa)],_0x49c1b6[_0x2c5fa7(0x26b)]);if(!_0x26252e)return;this['_fireBeforeHierarchyChange'](_0x26252e[_0x2c5fa7(0x291)],_0x26252e[_0x2c5fa7(0x250)],_0x47bdaf(_0x26252e[_0x2c5fa7(0x250)]['getTable'](),[_0x49c1b6[_0x2c5fa7(0x2ef)]]),_0x49c1b6[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x2b0a08)){let _0x1a235e=_0x304aab[_0x2c5fa7(0x2bb)],_0x2aaaea=this[_0x2c5fa7(0x2e5)](_0x1a235e[_0x2c5fa7(0x1fa)],_0x1a235e[_0x2c5fa7(0x26b)]);if(!_0x2aaaea)return;this['_fireBeforeHierarchyChange'](_0x2aaaea[_0x2c5fa7(0x291)],_0x2aaaea[_0x2c5fa7(0x250)],_0x47bdaf(_0x2aaaea[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),_0x1a235e['records']),_0x1a235e[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x425683)){let _0x5cf2a7=_0x304aab[_0x2c5fa7(0x2bb)],_0x472175=this['_getHierarchyEventContext'](_0x5cf2a7[_0x2c5fa7(0x1fa)],_0x5cf2a7['tableId']);if(!_0x472175)return;this[_0x2c5fa7(0x2a0)](_0x472175[_0x2c5fa7(0x291)],_0x472175[_0x2c5fa7(0x250)],_0x47bdaf(_0x472175[_0x2c5fa7(0x250)]['getTable'](),[_0x5cf2a7[_0x2c5fa7(0x2ef)]]),_0x5cf2a7[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x123689)){let _0x2f8b09=_0x304aab[_0x2c5fa7(0x2bb)],_0x5025ec=this[_0x2c5fa7(0x2e5)](_0x2f8b09[_0x2c5fa7(0x1fa)],_0x2f8b09[_0x2c5fa7(0x26b)]);if(!_0x5025ec)return;let _0x9d3b5=_0x5025ec[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),_0x2f414f=_0x2f8b09[_0x2c5fa7(0x286)]??_0x3cd49d(_0x9d3b5),_0x105e59=_0x4f82a6(_0x9d3b5,_0x2f414f)[_0x2c5fa7(0x2e0)][_0x2c5fa7(0x293)](_0x2f8b09['recordId'])??null;this[_0x2c5fa7(0x2a0)](_0x5025ec[_0x2c5fa7(0x291)],_0x5025ec['table'],[{'tableId':_0x2f8b09[_0x2c5fa7(0x26b)],'fieldId':_0x2f414f,'recordId':_0x2f8b09[_0x2c5fa7(0x212)],'oldParentRecordId':_0x105e59,'parentRecordId':_0x2f8b09['parentRecordId']}],_0x2f8b09[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x2eeb56)){let _0x4e3f8e=_0x304aab[_0x2c5fa7(0x2bb)],_0x3c6989=this['_getHierarchyEventContext'](_0x4e3f8e[_0x2c5fa7(0x1fa)],_0x4e3f8e['tableId']);if(!_0x3c6989)return;let _0x2db0a0=_0x4e3f8e['fieldId']??_0x3cd49d(_0x3c6989['table'][_0x2c5fa7(0x22f)]());this[_0x2c5fa7(0x2a0)](_0x3c6989[_0x2c5fa7(0x291)],_0x3c6989['table'],[{'tableId':_0x4e3f8e['tableId'],'fieldId':_0x2db0a0,'recordId':_0x4e3f8e[_0x2c5fa7(0x2ef)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4e3f8e['parentRecordId']}],_0x4e3f8e[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x2461cb)){let _0x37be3f=_0x304aab[_0x2c5fa7(0x2bb)],_0x10f9c2=this[_0x2c5fa7(0x2e5)](_0x37be3f['unitId'],_0x37be3f[_0x2c5fa7(0x26b)]);if(!_0x10f9c2)return;this['_fireBeforeHierarchyChange'](_0x10f9c2[_0x2c5fa7(0x291)],_0x10f9c2[_0x2c5fa7(0x250)],_0x569492(_0x10f9c2[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),[_0x37be3f[_0x2c5fa7(0x212)]]),_0x37be3f[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x49a978)){let _0x19c2e5=_0x304aab[_0x2c5fa7(0x2bb)],_0x14095e=this[_0x2c5fa7(0x2e5)](_0x19c2e5[_0x2c5fa7(0x1fa)],_0x19c2e5[_0x2c5fa7(0x26b)]);if(!_0x14095e)return;this[_0x2c5fa7(0x2a0)](_0x14095e[_0x2c5fa7(0x291)],_0x14095e['table'],_0x569492(_0x14095e['table'][_0x2c5fa7(0x22f)](),_0x19c2e5['recordIds']),_0x19c2e5['source']??_0xe81c71['UI']);return;}if(!$(_0x304aab,_0xf2eaa0))return;let _0x458d0f=_0x304aab[_0x2c5fa7(0x2bb)],_0x1bb1a6=this[_0x2c5fa7(0x2e5)](_0x458d0f['unitId'],_0x458d0f[_0x2c5fa7(0x26b)]);if(!_0x1bb1a6)return;let _0x44cdac=_0x1bb1a6[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)]();if(!_0x5754ca(_0x44cdac)[_0x2c5fa7(0x1a9)](_0x458d0f[_0x2c5fa7(0x286)]))return;let _0x406afd=_0x4f82a6(_0x44cdac,_0x458d0f[_0x2c5fa7(0x286)])['parentByRecordId']['get'](_0x458d0f[_0x2c5fa7(0x212)])??null,_0x1677d8=_0xa22387(_0x458d0f[_0x2c5fa7(0x1b7)])[0x0]??null;_0x406afd!==_0x1677d8&&this[_0x2c5fa7(0x2a0)](_0x1bb1a6[_0x2c5fa7(0x291)],_0x1bb1a6[_0x2c5fa7(0x250)],[{'tableId':_0x458d0f['tableId'],'fieldId':_0x458d0f[_0x2c5fa7(0x286)],'recordId':_0x458d0f[_0x2c5fa7(0x212)],'oldParentRecordId':_0x406afd,'parentRecordId':_0x1677d8}],_0x458d0f[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x1e1)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x7a53c1=>{const _0x5dd55a=_0x3f49da;if(_0x7a53c1['id']!==_0x3dd62e['id'])return;let {unitId:_0x177993,table:_0x5e15d2,index:_0x1b6591}=_0x7a53c1[_0x5dd55a(0x2bb)],_0x37d9b7=this['getBase'](_0x177993);if(!_0x37d9b7)return;let _0x19a4c9={'base':_0x37d9b7,'table':_0x5e15d2,'index':_0x1b6591};if(this[_0x5dd55a(0x25d)](this[_0x5dd55a(0x1dc)][_0x5dd55a(0x1e1)],_0x19a4c9),_0x19a4c9['cancel'])throw new _0x2fd329();}))),this['disposeWithMe'](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x27a)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x2b033e=>{const _0x512985=_0x3f49da;if(_0x2b033e['id']!==_0x5004a9['id'])return;let {unitId:_0x502e78,tableId:_0x4fcf02,field:_0x126de1,index:_0x1da11b,viewIndexes:_0x2c914c}=_0x2b033e['params'],_0x3731fb=this[_0x512985(0x2df)](_0x502e78);if(!_0x3731fb)return;let _0x35eb19=_0x3731fb['getTableById'](_0x4fcf02);if(!_0x35eb19)return;let _0x245ead={'base':_0x3731fb,'table':_0x35eb19,'field':_0x126de1,'index':_0x1da11b,'viewIndexes':_0x2c914c};if(this[_0x512985(0x25d)](this[_0x512985(0x1dc)]['BeforeBaseTableFieldCreate'],_0x245ead),_0x245ead[_0x512985(0x255)])throw new _0x2fd329();}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x211)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x1b42bd=>{const _0x390161=_0x3f49da;if(_0x1b42bd['id']!==_0x431c7b['id']&&_0x1b42bd['id']!==_0x2b0a08['id'])return;let _0xf426c8=_0x1b42bd[_0x390161(0x2bb)],{unitId:_0x511feb,tableId:_0x426e0f}=_0xf426c8,_0xd1c542=_0xf426c8['records']??[_0xf426c8[_0x390161(0x2ef)]],_0x16f70f=this[_0x390161(0x2df)](_0x511feb);if(!_0x16f70f)return;let _0xfdfffa=_0x16f70f['getTableById'](_0x426e0f);if(!_0xfdfffa)return;let _0x2e298f={'base':_0x16f70f,'table':_0xfdfffa,'records':_0xd1c542};if(this[_0x390161(0x25d)](this['Event'][_0x390161(0x211)],_0x2e298f),_0x2e298f[_0x390161(0x255)])throw new _0x2fd329();}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this['Event']['BeforeBaseTableViewCreate'],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x4321cb=>{const _0x3cbbf3=_0x3f49da;if(_0x4321cb['id']!==_0x6d95a5['id'])return;let {unitId:_0x5d5372,tableId:_0xb1a8fc,view:_0xb1b6d8,index:_0x131f1d}=_0x4321cb[_0x3cbbf3(0x2bb)],_0x5ecd71=this[_0x3cbbf3(0x2df)](_0x5d5372);if(!_0x5ecd71)return;let _0x2e16ca=_0x5ecd71[_0x3cbbf3(0x207)](_0xb1a8fc);if(!_0x2e16ca)return;let _0x38c2d0={'base':_0x5ecd71,'table':_0x2e16ca,'view':_0xb1b6d8,'index':_0x131f1d};if(this[_0x3cbbf3(0x25d)](this[_0x3cbbf3(0x1dc)][_0x3cbbf3(0x23e)],_0x38c2d0),_0x38c2d0[_0x3cbbf3(0x255)])throw new _0x2fd329();}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x23d)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x5a57ef=>{const _0x126468=_0x3f49da;if(_0x5a57ef['id']!==_0xf2eaa0['id'])return;let {unitId:_0x84f2c0,tableId:_0x587d4c,recordId:_0x160069,fieldId:_0x5ae893,value:_0x21fffa}=_0x5a57ef[_0x126468(0x2bb)],_0x56213e=this[_0x126468(0x2df)](_0x84f2c0);if(!_0x56213e)return;let _0x4ecf39=_0x56213e[_0x126468(0x207)](_0x587d4c);if(!_0x4ecf39)return;let _0x9b7b6a=_0x4ecf39[_0x126468(0x247)](_0x5ae893);if(!_0x9b7b6a)return;let _0x1c9c8e=_0x4ecf39[_0x126468(0x2ac)](_0x160069);if(!_0x1c9c8e)return;let _0x3818e4={'base':_0x56213e,'table':_0x4ecf39,'field':_0x9b7b6a,'record':_0x1c9c8e,'value':_0x21fffa};if(this[_0x126468(0x25d)](this[_0x126468(0x1dc)]['BeforeBaseTableCellValueChange'],_0x3818e4),_0x3818e4[_0x126468(0x255)])throw new _0x2fd329();})));}[_0x672810(0x2e5)](_0x1d0729,_0xd19614){const _0xc1bda8=_0x672810;let _0x3d249d=this[_0xc1bda8(0x2df)](_0x1d0729),_0x1e8d5f=_0x3d249d==null?void 0x0:_0x3d249d[_0xc1bda8(0x207)](_0xd19614);return _0x3d249d&&_0x1e8d5f?{'base':_0x3d249d,'table':_0x1e8d5f}:null;}[_0x672810(0x2a0)](_0x406a1d,_0xb7b9b9,_0x19d788,_0x1227be){const _0x4fe18c=_0x672810;if(!_0x19d788[_0x4fe18c(0x233)])return;let _0x250d7a={'base':_0x406a1d,'table':_0xb7b9b9,'changes':_0x19d788,'source':_0x1227be};if(this[_0x4fe18c(0x25d)](this[_0x4fe18c(0x1dc)][_0x4fe18c(0x22c)],_0x250d7a),_0x250d7a[_0x4fe18c(0x255)])throw new _0x2fd329();}};function $(_0xafc42c,_0x1c167d){return _0xafc42c['id']===_0x1c167d['id']&&_0xafc42c['params']!==void 0x0;}_0x5ac03e[_0x672810(0x2ca)](Et);var Dt=class extends _0x1527ae{get[_0x672810(0x1a0)](){return _0x22894c;}get[_0x672810(0x2a2)](){return _0x5b15fe;}get[_0x672810(0x1dd)](){return _0x497ab3;}get[_0x672810(0x268)](){return ot;}get[_0x672810(0x2fb)](){return _0x345987;}get[_0x672810(0x264)](){return _0x4954f2;}get[_0x672810(0x295)](){return _0x358942;}get[_0x672810(0x29c)](){return _0xfe2896;}get[_0x672810(0x1c2)](){return _0x55f975;}get[_0x672810(0x2d0)](){return _0xe81c71;}get[_0x672810(0x273)](){return _0x4a6014;}get['BaseHierarchyInvalidReason'](){return _0x214af2;}get['BaseRecordLinkRole'](){return _0x4ccd60;}};_0x1527ae[_0x672810(0x2ca)](Dt);var Ot=class extends _0x1b8ca7{get[_0x672810(0x26f)](){const _0x5acc6e=_0x672810;return _0x5acc6e(0x26f);}get[_0x672810(0x1e1)](){const _0xebe613=_0x672810;return _0xebe613(0x1e1);}get[_0x672810(0x2bd)](){const _0x4a6dd4=_0x672810;return _0x4a6dd4(0x2bd);}get[_0x672810(0x27a)](){const _0x2db8f6=_0x672810;return _0x2db8f6(0x27a);}get['BaseTableRecordCreated'](){const _0x369ece=_0x672810;return _0x369ece(0x1d1);}get[_0x672810(0x211)](){const _0x109c0e=_0x672810;return _0x109c0e(0x211);}get[_0x672810(0x2ab)](){const _0x2bc1a5=_0x672810;return _0x2bc1a5(0x2ab);}get[_0x672810(0x23e)](){const _0x5d4ce3=_0x672810;return _0x5d4ce3(0x23e);}get[_0x672810(0x2f7)](){const _0x589775=_0x672810;return _0x589775(0x2f7);}get[_0x672810(0x23d)](){const _0x1d49c6=_0x672810;return _0x1d49c6(0x23d);}get['BaseHierarchyChanged'](){return'BaseHierarchyChanged';}get[_0x672810(0x22c)](){return'BeforeBaseHierarchyChange';}};_0x1b8ca7[_0x672810(0x2ca)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|
|
1
|
+
const _0x3b2f37=_0x194d;(function(_0x2fe4d6,_0x575547){const _0x309140=_0x194d,_0x2fb67d=_0x2fe4d6();while(!![]){try{const _0x3bbe22=-parseInt(_0x309140(0x15a))/0x1+parseInt(_0x309140(0xdf))/0x2+parseInt(_0x309140(0xd7))/0x3+parseInt(_0x309140(0xe5))/0x4*(-parseInt(_0x309140(0x155))/0x5)+-parseInt(_0x309140(0xbf))/0x6+-parseInt(_0x309140(0x1b2))/0x7*(-parseInt(_0x309140(0x111))/0x8)+-parseInt(_0x309140(0x1b9))/0x9*(parseInt(_0x309140(0x127))/0xa);if(_0x3bbe22===_0x575547)break;else _0x2fb67d['push'](_0x2fb67d['shift']());}catch(_0x24fc0b){_0x2fb67d['push'](_0x2fb67d['shift']());}}}(_0x4d76,0x5a86e));import{ApplyBaseJson1Mutation as _0x34855e,BASE_TABLE_NAME_REQUIREMENTS as _0x2d6c44,BaseConditionalColorRuleUpdateType as _0x510c3e,BaseEventSource as _0x4d5524,BaseHierarchyErrorCode as _0x115291,BatchCreateBaseRecordsCommand as _0xcf9f8c,BatchDeleteBaseRecordsCommand as _0x5a7920,ChangeBaseFieldTypeCommand as _0x15b0fc,CreateBaseChildRecordCommand as _0x2a209d,CreateBaseFieldCommand as _0x174ba5,CreateBaseRecordCommand as _0x1193c8,CreateBaseTableCommand as _0x36d876,CreateBaseViewCommand as _0x1adb6d,DeleteBaseFieldCommand as _0x2fc3c0,DeleteBaseRecordCommand as _0x6344c7,DeleteBaseTableCommand as _0x337224,DeleteBaseViewCommand as _0x18125d,DuplicateBaseRecordCommand as _0x292c95,IBaseProjectionService as _0x1cb7d5,MoveBaseFieldCommand as _0x15b278,MoveBaseHierarchyRecordCommand as _0xd3c5c2,MoveBaseViewCommand as _0x37de2f,RenameBaseTableCommand as _0x1e32c6,RenameBaseViewCommand as _0xaefd70,SetBaseNameCommand as _0x8afdd0,SetBasePermissionCommand as _0x21f2d1,SetBasePermissionsCommand as _0x37c8de,SetBaseRangeValuesCommand as _0xa0c8e2,SetBaseRecordValuesCommand as _0x46d1e8,SetBaseTableHierarchyFieldCommand as _0x273e9f,SetBaseViewFieldOrderCommand as _0x42af3c,SetBaseViewFieldVisibleCommand as _0x1b428a,SetBaseViewFieldWidthCommand as _0x3596a1,SetBaseViewFilterCommand as _0x3943da,SetBaseViewGroupCommand as _0x4a854f,SetBaseViewSortCommand as _0x388049,UpdateBaseCellCommand as _0x1b0f5c,UpdateBaseFieldCommand as _0x53217d,UpdateBaseRecordOrderCommand as _0x5da32a,UpdateBaseViewConditionalColorRulesCommand as _0x4b486e,UpdateBaseViewConfigCommand as _0x45a334,ValidateBaseFormulaCommand as _0x25826c,buildBaseHierarchyIndex as _0xfa6b82,canEditBaseTargets as _0x29c269,copyBaseTableSnapshot as _0x1343fb,createUniqueBaseTableName as _0x3b265e,ensureBaseTableCellLayout as _0x81619,getActiveBaseHierarchyFieldIds as _0xdc3ff5,getBaseCellValue as _0x284376,getBaseFieldPermissionObjectId as _0x2ed12f,getBaseFormulaTableName as _0x31d1af,getBaseHierarchyDeletePromotions as _0xb2debb,getBasePermissionValue as _0xb13101,getBaseRecordPermissionObjectId as _0x262d9e,getBaseTablePermissionObjectId as _0x1a5f5e,getBaseViewPermissionObjectId as _0x7102f,getRecordLinkFieldConfig as _0x2305fd,matchesBaseCondition as _0x5ec685,parseRecordLinkIds as _0xea2e53,resolveBaseHierarchyFieldId as _0x3bde75,resolveBaseRangeHierarchyPatches as _0x55a4b7,searchBaseTable as _0x5b0210,serializeRecordLinkIds as _0x44d49b,validateBaseHierarchyRecordCreations as _0x377fbc,validateBaseHierarchyRecordPatches as _0x50df42,validateBaseTableName as _0x4a1245,validateRecordLinkValue as _0x57c749}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x3cb4f6,BaseConditionalColorOperator as _0x5f5c3b,BaseConditionalColorTarget as _0x2e83f1,BaseConditionalDateMode as _0x256a0d,BaseFieldType as _0x268b7f,BaseFilterConjunction as _0x29b07b,BaseFilterOperator as _0x547adc,BaseHierarchyInvalidReason as _0x970749,BaseRecordLinkRole as _0x116087,BaseSortDirection as _0x23c723,BaseViewType as _0x5b008e,CanceledError as _0x543b75,ICommandService as _0x3fc5b1,IPermissionService as _0x376f49,IResourceLoaderService as _0x183c06,ImageSourceType as _0x3e541f,Inject as _0x5abbd7,Injector as _0x4b43b6,Tools as _0x36fd3d,UniverInstanceType as _0xbc8b5a,createDefaultBaseTableSnapshot as _0x5bad1c,generateRandomId as _0x2ea005}from'@univerjs/core';import*as _0x30c594 from'@univerjs/core/facade';import{FBaseInitialable as _0x31080f,FEnum as _0x544088,FEventName as _0x529663,FUniver as _0x4602a3}from'@univerjs/core/facade';import{UnitAction as _0x2536af}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5d1890}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x1a9d85,_0x11536c,_0x37bd6d){const _0x4a6d30=_0x194d;this[_0x4a6d30(0x1e1)]=_0x1a9d85,this['_commandService']=_0x11536c,this[_0x4a6d30(0x199)]=_0x37bd6d;}async[_0x3b2f37(0x138)](_0x301cc3){const _0x89f5ca=_0x3b2f37;return this[_0x89f5ca(0x121)][_0x89f5ca(0xaf)](_0x37c8de['id'],{'unitId':this[_0x89f5ca(0x1e1)],'changes':_0x301cc3});}async[_0x3b2f37(0x194)](_0x2131b4,_0x3a5001){await this['_commandService']['executeCommand'](_0x21f2d1['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x2131b4,'value':_0x3a5001});}[_0x3b2f37(0xbc)](_0x56d1b0){const _0x2eabf6=_0x3b2f37;return _0xb13101(this['_permissionService'],this[_0x2eabf6(0x1e1)],this[_0x2eabf6(0x1e1)],_0x56d1b0);}async[_0x3b2f37(0x135)](_0x47e6d8=!0x0){const _0xc12176=_0x3b2f37;await this['_commandService'][_0xc12176(0xaf)](_0x21f2d1['id'],{'unitId':this[_0xc12176(0x1e1)],'objectId':this['_unitId'],'action':_0x2536af[_0xc12176(0x156)],'value':_0x47e6d8});}async['setReadOnly'](){const _0x2aaa5b=_0x3b2f37;await this['_commandService'][_0x2aaa5b(0xaf)](_0x21f2d1['id'],{'unitId':this[_0x2aaa5b(0x1e1)],'objectId':this[_0x2aaa5b(0x1e1)],'action':_0x2536af[_0x2aaa5b(0x156)],'value':!0x1});}[_0x3b2f37(0xcb)](){const _0x39b412=_0x3b2f37;return _0xb13101(this['_permissionService'],this[_0x39b412(0x1e1)],this['_unitId'],_0x2536af[_0x39b412(0x156)]);}},L=class{constructor(_0x4627a9,_0x43f967,_0x24c4f0,_0x49e6db,_0x17a061){const _0x2683eb=_0x3b2f37;this['_unitId']=_0x4627a9,this[_0x2683eb(0x1bd)]=_0x43f967,this['_parentObjectIds']=_0x24c4f0,this['_commandService']=_0x49e6db,this[_0x2683eb(0x199)]=_0x17a061;}async[_0x3b2f37(0x135)](_0x8c980c=!0x0){const _0x33a57f=_0x3b2f37;await this[_0x33a57f(0x121)]['executeCommand'](_0x21f2d1['id'],{'unitId':this[_0x33a57f(0x1e1)],'objectId':this[_0x33a57f(0x1bd)],'action':_0x2536af[_0x33a57f(0x156)],'value':_0x8c980c});}async[_0x3b2f37(0x146)](){const _0x40ed54=_0x3b2f37;await this[_0x40ed54(0x121)][_0x40ed54(0xaf)](_0x21f2d1['id'],{'unitId':this[_0x40ed54(0x1e1)],'objectId':this[_0x40ed54(0x1bd)],'action':_0x2536af[_0x40ed54(0x156)],'value':!0x1});}['canEdit'](){const _0x47bb22=_0x3b2f37;return _0x29c269(this['_permissionService'],this[_0x47bb22(0x1e1)],[...this['_parentObjectIds'],this[_0x47bb22(0x1bd)]]);}};function R(_0x1863ed,_0x5dbd83){return function(_0x516a40,_0x4102bf){_0x5dbd83(_0x516a40,_0x4102bf,_0x1863ed);};}function _0x4d76(){const _0xdfc72=['recordId','_getField','sort','getRecords','getViewByName','deleteAttachments','getId','_getFieldIds','BeforeBaseTableViewCreate','_resolveRecordIds','sourceType','primaryFieldId','getAllUnitsForType','getFieldSettings','disposeWithMe','recordOrder','Failed\x20to\x20add\x20records','fromCollab','BaseFilterConjunction','height','record','getBaseFacade','startsWith','invalid','onCommandExecuted','\x22\x20must\x20be\x20a\x20non-empty\x20string.','extend','type','getField','getDataRange','hidden','getActiveBase','entries','BeforeBaseHierarchyChange','BaseHierarchyErrorCode','addLinkedRecord','number','getNumColumns','isReadonly','Formula','executeCommand','Gallery','getSort','getColumn','_assertInBounds','fields','getSnapshot','_fireBeforeHierarchyChange','move','tableOrder','[FRecord]:\x20field\x20\x22','matches','\x20for\x20field\x20\x22','getPoint','getVisibleFields','constructor','103620GsoYcc','_baseTableId','RecordLink','getTable','Duplicate\x20Base\x20field\x20name:\x20','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','[FTable]:\x20table\x20\x22','delete','custom','deepClone','max','BaseTableCreated','canEdit','getFormulaName','orderKey','Facade','BaseRecordLinkRole','afterFieldId','deleteTable','description','views',':\x20\x22','BaseTableViewCreated','UNIVER_BASE','1640094SRpDfP','Failed\x20to\x20duplicate\x20table\x20\x22','Delete','_initBaseAfterEvents','createInstance','hasOwnProperty','unitId','recordIds','758032yZXoqy','getProjection','operator','_tableId','parentRecordId','push','210556xBPqKL','fieldIds','reason','_table','getViews','slice','addConditionalColorRule','registerEventHandler','getSchema','AND','createdAt','_getTable','[FRecord]:\x20attachment\x20at\x20index\x20','getFilter','getValues','Invalid\x20attachment\x20at\x20index\x20','default','addChild','beforeFieldId','_prepareFormulaFieldReferences','getBaseId','commonExtend','view','fieldOrder','BaseHierarchyInvalidReason','endColumn','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','primaryFieldName','function','\x22\x20does\x20not\x20exist.','addRecords','\x22:\x20expected\x20an\x20array.','setGroup','setOrderKey','setFieldWidth','size','updateConfig','getBase','group','startColumn','_base','BaseSortDirection','fieldKey','setName','1714312baJKSR','getAttachments','valid','duplicate','_initBaseBeforeEvents','orderedRecordIds','includes','\x22.\x20','_getAttachmentField','decorate','auto','\x22\x20is\x20invalid.','Date','viewId','viewOrder','filter','_commandService','BeforeBaseTableCellValueChange','update','_resourceLoaderService','fieldId','BASE64','60fCGiKu','url','_getRecord','insertTable','cancel','string','getRecord','Invalid\x20Base\x20formula.','getAncestors','notMatches','BaseTableRecordCreated','getUnitId','moveField','prototype','setEditable','_initialize','_fieldId','setObjectPermissions','createBase',':\x20expected\x20an\x20object.','some','getUnit','getRange','flatMap','[FBase]:\x20table\x20\x22','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','createView','iterator','Add','BaseFilterOperator','getChildren','setReadOnly','readonly','has','targetTableId','UUID','getConfig','setValue','\x20exceeds\x20range\x20size\x20','Failed\x20to\x20add\x20field\x20\x22','fireEvent','BaseConditionalDateMode','getTableById','_projectionService','setDefaultValue','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','30HXiSWw','Edit','tableId','defaultValue','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','288001QpHiGJ','parentByRecordId','BaseHierarchyChanged','getTableByName','rules','getPrimaryField','data:','Calendar','\x22\x20has\x20invalid\x20config.','Unsupported\x20Base\x20field\x20type\x20\x22','every','limit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','get','Name','getTableId','offset','externalReferences','getParent','getTableFacade','BaseFieldKeyEnum','saveUnit','endRow','multiple','index','BeforeBaseTableRecordCreate','BaseFieldType','_getHierarchyIndex','Failed\x20to\x20create\x20table\x20\x22','Remote','getLinkedRecordIds','find','now','length','table','visibleCardFieldIds','syncExecuteCommand','_collectDescendantIds','[FBaseRange]:\x20values\x20size\x20','getCurrentUnitOfType',',\x20range:\x20','addField','rows','setFieldVisible','_baseUnitId','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','setParent','getRecordById','RecordId','getGroup','base','deleteRecords','Kanban','queryRecords','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','defineProperty','params','records','setPoint','fromEntries','getFieldById','Invalid\x20Base\x20regex\x20filter:\x20','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_permissionService','getName','hierarchyChanges','field','stringify','Failed\x20to\x20delete\x20table\x20\x22','getView','clear','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BeforeBaseTableFieldCreate','setHierarchyField','DESC','beforeCommandExecuted','_injector','changeType','setFilter','setValues','BeforeBaseTableCreate','warn','getValue','[FBase]:\x20invalid\x20table\x20name\x20\x22','isArray',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','caseSensitive','getPermission','21eZmbEm','_recordId','_writeFormulaExternalReferences','getDefaultValue','removeLinkedRecord','fieldSettings','getOwnPropertyDescriptor','865017GxeQsN','Event','[FRecord]:\x20RecordLink\x20field\x20\x22','values','_objectId','_getView','getTables','tables','startRow','name','BaseViewType','clearConditionalColorRules','_inject','map','source','_getHierarchyEventContext','getPrimaryFieldId','setConditionalColorRules','Set','BaseEventSource','setConfig','BaseTableFieldCreated','boolean','direction','getConditionalColorRules','Attachment','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','conditionalColoring','_univerInstanceService','BaseConditionalColorOperator','config','_viewId','rowId','URL','setLinkedRecordIds','getNumRows','object','deleteConditionalColorRule','BaseTableCellValueChanged','from','_unitId','_getRecordLinkField','[FView]:\x20view\x20\x22','localeCompare','BaseConditionalColorTarget','trim','value','setAttachments','updatedAt','indexOf','_range','getFieldByName','symbol'];_0x4d76=function(){return _0xdfc72;};return _0x4d76();}function z(_0x291546,_0x5e1ab0,_0x1d6142,_0xacee64){const _0x2b3323=_0x3b2f37;var _0x831c65=arguments['length'],_0x2d6439=_0x831c65<0x3?_0x5e1ab0:_0xacee64===null?_0xacee64=Object[_0x2b3323(0x1b8)](_0x5e1ab0,_0x1d6142):_0xacee64,_0x573071;if(typeof Reflect==_0x2b3323(0x1dd)&&typeof Reflect[_0x2b3323(0x11a)]==_0x2b3323(0x101))_0x2d6439=Reflect[_0x2b3323(0x11a)](_0x291546,_0x5e1ab0,_0x1d6142,_0xacee64);else{for(var _0x3a2b7e=_0x291546[_0x2b3323(0x17b)]-0x1;_0x3a2b7e>=0x0;_0x3a2b7e--)(_0x573071=_0x291546[_0x3a2b7e])&&(_0x2d6439=(_0x831c65<0x3?_0x573071(_0x2d6439):_0x831c65>0x3?_0x573071(_0x5e1ab0,_0x1d6142,_0x2d6439):_0x573071(_0x5e1ab0,_0x1d6142))||_0x2d6439);}return _0x831c65>0x3&&_0x2d6439&&Object[_0x2b3323(0x191)](_0x5e1ab0,_0x1d6142,_0x2d6439),_0x2d6439;}let B=class{constructor(_0x3c9dcd,_0x498aca,_0x57300a,_0x2025fb,_0x235653){const _0x1df0ab=_0x3b2f37;this[_0x1df0ab(0x10d)]=_0x3c9dcd,this[_0x1df0ab(0xe8)]=_0x498aca,this[_0x1df0ab(0x137)]=_0x57300a,this[_0x1df0ab(0x121)]=_0x2025fb,this[_0x1df0ab(0x199)]=_0x235653;}[_0x3b2f37(0x8d)](){const _0x254540=_0x3b2f37;return this[_0x254540(0x137)];}['getPermission'](){const _0x5a5364=_0x3b2f37;let _0x10873a=this[_0x5a5364(0xe8)]['getId']();return new L(this[_0x5a5364(0x10d)][_0x5a5364(0x8d)](),_0x2ed12f(_0x10873a,this[_0x5a5364(0x137)]),[_0x1a5f5e(_0x10873a)],this[_0x5a5364(0x121)],this['_permissionService']);}[_0x3b2f37(0xa3)](){const _0x1538eb=_0x3b2f37;return this[_0x1538eb(0x88)]();}['getName'](){const _0x59b4f=_0x3b2f37;return this[_0x59b4f(0x88)]()[_0x59b4f(0x1c2)];}['getType'](){const _0x1d2285=_0x3b2f37;return this['_getField']()[_0x1d2285(0xa2)];}['getConfig'](){const _0x3af3c6=_0x3b2f37;return this[_0x3af3c6(0x88)]()[_0x3af3c6(0x1d7)];}[_0x3b2f37(0x1b5)](){const _0x5bde2a=_0x3b2f37;return this[_0x5bde2a(0x88)]()[_0x5bde2a(0x158)];}['getDescription'](){const _0x57b011=_0x3b2f37;return this[_0x57b011(0x88)]()['description'];}[_0x3b2f37(0xad)](){const _0x13b8d6=_0x3b2f37;return!!this[_0x13b8d6(0x88)]()[_0x13b8d6(0x147)];}[_0x3b2f37(0x110)](_0x28077c){return this['update']({'name':_0x28077c});}[_0x3b2f37(0x1cd)](_0x1abd3e,_0x1c2635){return this['update']({'config':_0x1abd3e},_0x1c2635);}[_0x3b2f37(0x153)](_0x76b611){return this['update']({'defaultValue':_0x76b611});}[_0x3b2f37(0x123)](_0x1e8021,_0x53769d){const _0x8e2e7e=_0x3b2f37;let _0x305220=this[_0x8e2e7e(0x88)]()['type'];return(_0x1e8021[_0x8e2e7e(0xa2)]??_0x305220)===_0x268b7f['Formula']&&(Object[_0x8e2e7e(0x134)][_0x8e2e7e(0xdc)]['call'](_0x1e8021,_0x8e2e7e(0x1d7))||_0x1e8021['type']===_0x268b7f[_0x8e2e7e(0xae)])&&!this[_0x8e2e7e(0x1b4)](_0x53769d)?!0x1:this[_0x8e2e7e(0x121)][_0x8e2e7e(0x17e)](_0x53217d['id'],{'unitId':this[_0x8e2e7e(0x10d)][_0x8e2e7e(0x8d)](),'tableId':this[_0x8e2e7e(0xe8)][_0x8e2e7e(0x8d)](),'fieldId':this[_0x8e2e7e(0x137)],'patch':_0x1e8021});}[_0x3b2f37(0x1a7)](_0x1fda9d,_0x2a6322={},_0x4547a0){const _0x2e7512=_0x3b2f37;return _0x1fda9d===_0x268b7f['Formula']&&!this['_writeFormulaExternalReferences'](_0x4547a0)?!0x1:this[_0x2e7512(0x121)]['syncExecuteCommand'](_0x15b0fc['id'],{'unitId':this[_0x2e7512(0x10d)][_0x2e7512(0x8d)](),'tableId':this[_0x2e7512(0xe8)]['getId'](),'fieldId':this[_0x2e7512(0x137)],'input':{'type':_0x1fda9d,'config':_0x2a6322}});}[_0x3b2f37(0xc6)](){const _0x545497=_0x3b2f37;return this['_commandService'][_0x545497(0x17e)](_0x2fc3c0['id'],{'unitId':this[_0x545497(0x10d)][_0x545497(0x8d)](),'tableId':this[_0x545497(0xe8)][_0x545497(0x8d)](),'fieldId':this[_0x545497(0x137)]});}[_0x3b2f37(0xb7)](_0x414325){const _0x5dee30=_0x3b2f37;return this['_commandService'][_0x5dee30(0x17e)](_0x15b278['id'],{'unitId':this[_0x5dee30(0x10d)][_0x5dee30(0x8d)](),'tableId':this[_0x5dee30(0xe8)][_0x5dee30(0x8d)](),'fieldId':this[_0x5dee30(0x137)],'target':_0x414325});}[_0x3b2f37(0x88)](){const _0x2ba0fd=_0x3b2f37;let _0x52d45f=this[_0x2ba0fd(0xe8)][_0x2ba0fd(0xc2)]()[_0x2ba0fd(0xb4)][this[_0x2ba0fd(0x137)]];if(!_0x52d45f)throw Error('[FField]:\x20field\x20\x22'+this[_0x2ba0fd(0x137)]+_0x2ba0fd(0x102));return _0x52d45f;}[_0x3b2f37(0x1b4)](_0x5848ad){const _0x88010e=_0x3b2f37;if(!_0x5848ad||!Array[_0x88010e(0x1ae)](_0x5848ad['externalReferences']))return console[_0x88010e(0x1ab)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x5848ad[_0x88010e(0x16b)]['length']===0x0)return!0x0;let _0x348f4a=this[_0x88010e(0x121)]['syncExecuteCommand'](_0x5d1890['id'],{'unitId':this[_0x88010e(0x10d)]['getId'](),'references':_0x5848ad['externalReferences']});return _0x348f4a||console[_0x88010e(0x1ab)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x348f4a;}};B=z([R(0x3,_0x3fc5b1),R(0x4,_0x376f49)],B);let ot=function(_0x4539bb){const _0x23bead=_0x3b2f37;return _0x4539bb['Id']='id',_0x4539bb[_0x23bead(0x168)]=_0x23bead(0x1c2),_0x4539bb['Auto']=_0x23bead(0x11b),_0x4539bb;}({});function V(_0x562c13){const _0x1b911e=_0x3b2f37;return!!(_0x562c13&&_0x562c13['system']!==!0x0&&_0x562c13[_0x1b911e(0xa2)]!==_0x268b7f[_0x1b911e(0x18a)]);}function H(_0x321bd5,_0x2b1de6,_0x66197a='id'){const _0x531d12=_0x3b2f37;if(!_0x2b1de6)return{};let _0x40e910={};return Object[_0x531d12(0xa7)](_0x2b1de6)['forEach'](([_0x14ed14,_0x472700])=>{let _0x43a84e=ct(_0x321bd5,_0x14ed14,_0x66197a);_0x40e910[_0x43a84e]=st(_0x321bd5['fields'][_0x43a84e],_0x472700);}),_0x40e910;}function st(_0x4d5f3b,_0x3cb18b){const _0x329f2f=_0x3b2f37;if((_0x4d5f3b==null?void 0x0:_0x4d5f3b[_0x329f2f(0xa2)])!==_0x268b7f[_0x329f2f(0x1d2)]||_0x3cb18b==null)return _0x3cb18b;if(!Array['isArray'](_0x3cb18b))throw TypeError(_0x329f2f(0x187)+_0x4d5f3b[_0x329f2f(0x1c2)]+_0x329f2f(0x104));return _0x3cb18b[_0x329f2f(0x1c6)]((_0x42f16e,_0x2c8e4b)=>lt(_0x4d5f3b,_0x42f16e,_0x2c8e4b));}function ct(_0x2661c2,_0x1ab916,_0x3d94d5){const _0x438399=_0x3b2f37;if(_0x3d94d5==='id'||_0x3d94d5===_0x438399(0x11b)&&_0x2661c2[_0x438399(0xb4)][_0x1ab916])return _0x1ab916;let _0x137d69=Object[_0x438399(0x1bc)](_0x2661c2[_0x438399(0xb4)])[_0x438399(0x120)](_0x18e26c=>_0x18e26c[_0x438399(0x1c2)]===_0x1ab916);if(_0x137d69[_0x438399(0x17b)]===0x1)return _0x137d69[0x0]['id'];throw _0x137d69[_0x438399(0x17b)]>0x1?Error(_0x438399(0xc3)+_0x1ab916):Error('Base\x20field\x20not\x20found:\x20'+_0x1ab916);}function lt(_0x197ae7,_0x3b8719,_0xe94dbb){const _0x331e53=_0x3b2f37;let _0x4e36d8=_0x331e53(0xf4)+_0xe94dbb+_0x331e53(0xbb)+_0x197ae7[_0x331e53(0x1c2)]+'\x22';if(!ft(_0x3b8719))throw TypeError(_0x4e36d8+_0x331e53(0x13a));if(_0x331e53(0x128)in _0x3b8719)throw TypeError(_0x4e36d8+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x331e53(0xa2)in _0x3b8719)throw TypeError(_0x4e36d8+_0x331e53(0x1af));let _0x2a2506=U(_0x3b8719['id'],_0x4e36d8,'id'),_0x17d987=U(_0x3b8719[_0x331e53(0x1c2)],_0x4e36d8,'name'),_0xf198ad=U(_0x3b8719['source'],_0x4e36d8,'source');return{'id':_0x2a2506,'name':_0x17d987,'source':_0xf198ad,'sourceType':ut(_0x3b8719[_0x331e53(0x91)],_0xf198ad,_0x4e36d8),...dt(_0x3b8719,'mimeType',_0x4e36d8),...W(_0x3b8719,'size',_0x4e36d8),...W(_0x3b8719,'width',_0x4e36d8),...W(_0x3b8719,_0x331e53(0x9a),_0x4e36d8),...dt(_0x3b8719,'thumbnail',_0x4e36d8)};}function ut(_0x381100,_0x420284,_0xfb8681){const _0x40abaf=_0x3b2f37;if(_0x381100==null)return _0x420284[_0x40abaf(0x9d)](_0x40abaf(0x160))?_0x3e541f['BASE64']:_0x3e541f[_0x40abaf(0x1da)];if(_0x381100===_0x3e541f[_0x40abaf(0x1da)]||_0x381100===_0x3e541f[_0x40abaf(0x14a)]||_0x381100===_0x3e541f[_0x40abaf(0x126)])return _0x381100;throw TypeError(_0xfb8681+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0xc7e7b2,_0x1902ba,_0x9a6e78){const _0x3c036d=_0x3b2f37;if(typeof _0xc7e7b2!=_0x3c036d(0x12c)||!_0xc7e7b2['trim']())throw TypeError(_0x1902ba+_0x3c036d(0xd4)+_0x9a6e78+_0x3c036d(0xa0));return _0xc7e7b2;}function dt(_0x5d77d8,_0x3f23f4,_0x21031f){const _0x327e8b=_0x3b2f37;let _0x2513d0=_0x5d77d8[_0x3f23f4];if(_0x2513d0==null)return{};if(typeof _0x2513d0!='string'||!_0x2513d0[_0x327e8b(0x1e6)]())throw TypeError(_0x21031f+_0x327e8b(0xd4)+_0x3f23f4+_0x327e8b(0x1a1));return{[_0x3f23f4]:_0x2513d0};}function W(_0x1c314a,_0xc2d52c,_0x45e483){const _0x229f9d=_0x3b2f37;let _0x19d536=_0x1c314a[_0xc2d52c];if(_0x19d536==null)return{};if(typeof _0x19d536!=_0x229f9d(0xab)||!Number['isFinite'](_0x19d536)||_0x19d536<0x0)throw TypeError(_0x45e483+':\x20\x22'+_0xc2d52c+_0x229f9d(0x198));return{[_0xc2d52c]:_0x19d536};}function ft(_0x3e9009){const _0x6f8f67=_0x3b2f37;return typeof _0x3e9009==_0x6f8f67(0x1dd)&&!!_0x3e9009&&!Array['isArray'](_0x3e9009);}var G;let K=G=class{constructor(_0x5d48ff,_0x7a0d62,_0xdfa55,_0x300267,_0x55b1c2){const _0xe0ce90=_0x3b2f37;this[_0xe0ce90(0x10d)]=_0x5d48ff,this[_0xe0ce90(0xe8)]=_0x7a0d62,this[_0xe0ce90(0x84)]=_0xdfa55,this['_inject']=_0x300267,this[_0xe0ce90(0x121)]=_0x55b1c2,this['_assertInBounds']();}[_0x3b2f37(0xf9)](){const _0x3cfd61=_0x3b2f37;return this[_0x3cfd61(0x10d)]['getId']();}[_0x3b2f37(0x169)](){const _0x3a8548=_0x3b2f37;return this[_0x3a8548(0xe8)][_0x3a8548(0x8d)]();}['getRange'](){const _0x2c5877=_0x3b2f37;return{...this[_0x2c5877(0x84)]};}['getRow'](){const _0x240ab6=_0x3b2f37;return this[_0x240ab6(0x84)]['startRow'];}[_0x3b2f37(0xb2)](){const _0x1d898e=_0x3b2f37;return this[_0x1d898e(0x84)][_0x1d898e(0x10c)];}['getNumRows'](){const _0x40caa5=_0x3b2f37;return this[_0x40caa5(0x84)][_0x40caa5(0x170)]-this[_0x40caa5(0x84)]['startRow']+0x1;}[_0x3b2f37(0xac)](){const _0x328669=_0x3b2f37;return this[_0x328669(0x84)]['endColumn']-this[_0x328669(0x84)][_0x328669(0x10c)]+0x1;}[_0x3b2f37(0xf3)](){const _0x12ffff=_0x3b2f37;let _0x5c6429=this[_0x12ffff(0xf0)](),_0x270de9=this['_getFieldIds'](_0x5c6429),_0x216939=[];for(let _0x479d33=this[_0x12ffff(0x84)][_0x12ffff(0x1c1)];_0x479d33<=this[_0x12ffff(0x84)][_0x12ffff(0x170)];_0x479d33++){var _0x2e1550;let _0x5efb22=(_0x2e1550=_0x5c6429['rowId'])==null?void 0x0:_0x2e1550[_0x479d33],_0x1db53d=[];for(let _0x343761=this[_0x12ffff(0x84)][_0x12ffff(0x10c)];_0x343761<=this['_range']['endColumn'];_0x343761++){let _0x224ef0=_0x270de9[_0x343761];_0x1db53d['push'](_0x5efb22&&_0x224ef0?_0x284376(_0x5c6429,_0x5efb22,_0x224ef0):null);}_0x216939[_0x12ffff(0xe4)](_0x1db53d);}return _0x216939;}[_0x3b2f37(0x1ac)](){const _0x12d34f=_0x3b2f37;var _0x336c66;return((_0x336c66=this[_0x12d34f(0xf3)]()[0x0])==null?void 0x0:_0x336c66[0x0])??null;}[_0x3b2f37(0x14c)](_0x4673ae){const _0x8ab928=_0x3b2f37;return this[_0x8ab928(0x1a9)]([[_0x4673ae]]);}['setValues'](_0x24fbbe){const _0x31d156=_0x3b2f37;let _0x148d97=this[_0x31d156(0x1dc)](),_0x1d107e=this['getNumColumns']();if(_0x24fbbe['length']>_0x148d97||_0x24fbbe[_0x31d156(0x13b)](_0x4b1821=>_0x4b1821[_0x31d156(0x17b)]>_0x1d107e)){var _0x35cc59;throw Error(_0x31d156(0x180)+_0x24fbbe[_0x31d156(0x17b)]+'x'+(((_0x35cc59=_0x24fbbe[0x0])==null?void 0x0:_0x35cc59[_0x31d156(0x17b)])??0x0)+_0x31d156(0x14d)+_0x148d97+'x'+_0x1d107e+'.');}let _0x3b69d6=this[_0x31d156(0xf0)](),_0x446fed=this[_0x31d156(0x8e)](_0x3b69d6),_0x28bf58=_0x24fbbe[_0x31d156(0x13e)]((_0x36e34c,_0x34be3c)=>_0x36e34c['map']((_0xdacb24,_0x23e883)=>{const _0x4ef47b=_0x31d156;var _0x19edf8;let _0x287a07=this[_0x4ef47b(0x84)][_0x4ef47b(0x1c1)]+_0x34be3c,_0xe4247d=_0x446fed[this['_range']['startColumn']+_0x23e883],_0x4ed073=(_0x19edf8=_0x3b69d6[_0x4ef47b(0x1d9)])==null?void 0x0:_0x19edf8[_0x287a07];if(!_0xe4247d||!_0x4ed073)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x4ed073,'fieldId':_0xe4247d,'value':_0xdacb24};}));return this[_0x31d156(0x121)]['syncExecuteCommand'](_0xa0c8e2['id'],{'unitId':this[_0x31d156(0x10d)][_0x31d156(0x8d)](),'tableId':this[_0x31d156(0xe8)][_0x31d156(0x8d)](),'patches':_0x28bf58,'source':_0x4d5524['Facade']});}[_0x3b2f37(0x1a0)](){const _0x15a6dd=_0x3b2f37;return this[_0x15a6dd(0x1a9)](Array[_0x15a6dd(0x1e0)]({'length':this[_0x15a6dd(0x1dc)]()},()=>Array[_0x15a6dd(0x1e0)]({'length':this[_0x15a6dd(0xac)]()},()=>null)));}[_0x3b2f37(0x16a)](_0x50a7e5,_0x47938f,_0x59360a=this[_0x3b2f37(0x1dc)](),_0x2ff7c2=this['getNumColumns']()){const _0x5a6e80=_0x3b2f37;return this['_inject'][_0x5a6e80(0xdb)](G,this[_0x5a6e80(0x10d)],this[_0x5a6e80(0xe8)],{'startRow':this[_0x5a6e80(0x84)][_0x5a6e80(0x1c1)]+_0x50a7e5,'startColumn':this[_0x5a6e80(0x84)]['startColumn']+_0x47938f,'endRow':this['_range']['startRow']+_0x50a7e5+_0x59360a-0x1,'endColumn':this['_range'][_0x5a6e80(0x10c)]+_0x47938f+_0x2ff7c2-0x1},this[_0x5a6e80(0x1c5)]);}[_0x3b2f37(0xf0)](){const _0xd71b88=_0x3b2f37;let _0x4b88f3=this['_table'][_0xd71b88(0xc2)]();if(!_0x4b88f3)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return _0x81619(_0x4b88f3);}[_0x3b2f37(0xb3)](){const _0x14de8c=_0x3b2f37;var _0x2f3ea9;let _0x13f6e5=this[_0x14de8c(0xf0)](),_0x50505a=((_0x2f3ea9=_0x13f6e5['recordOrder'])==null?void 0x0:_0x2f3ea9['length'])??0x0,_0x16f13d=this['_getFieldIds'](_0x13f6e5)[_0x14de8c(0x17b)];if(this[_0x14de8c(0x84)][_0x14de8c(0x1c1)]<0x0||this[_0x14de8c(0x84)][_0x14de8c(0x10c)]<0x0||this[_0x14de8c(0x84)][_0x14de8c(0x170)]<this[_0x14de8c(0x84)][_0x14de8c(0x1c1)]||this[_0x14de8c(0x84)][_0x14de8c(0xfe)]<this[_0x14de8c(0x84)][_0x14de8c(0x10c)]||this['_range'][_0x14de8c(0x170)]>=Math[_0x14de8c(0xc9)](_0x50505a,0x1)||this[_0x14de8c(0x84)][_0x14de8c(0xfe)]>=Math[_0x14de8c(0xc9)](_0x16f13d,0x1))throw Error(_0x14de8c(0x154)+_0x50505a+',\x20max\x20columns:\x20'+_0x16f13d+_0x14de8c(0x182)+JSON[_0x14de8c(0x19d)](this[_0x14de8c(0x84)])+'.');}[_0x3b2f37(0x8e)](_0x52b09c){const _0x5a52d1=_0x3b2f37;return _0x52b09c['fieldOrder']['filter'](_0x4afa1d=>V(_0x52b09c[_0x5a52d1(0xb4)][_0x4afa1d]));}};K=G=z([R(0x4,_0x3fc5b1)],K);function q(_0x2b8520){'@babel/helpers - typeof';const _0x2623ad=_0x3b2f37;return q=typeof Symbol==_0x2623ad(0x101)&&typeof Symbol[_0x2623ad(0x142)]==_0x2623ad(0x86)?function(_0x5aa728){return typeof _0x5aa728;}:function(_0x28a085){const _0x4801f0=_0x2623ad;return _0x28a085&&typeof Symbol==_0x4801f0(0x101)&&_0x28a085[_0x4801f0(0xbe)]===Symbol&&_0x28a085!==Symbol['prototype']?'symbol':typeof _0x28a085;},q(_0x2b8520);}function _0x194d(_0x5786d4,_0x3a158a){_0x5786d4=_0x5786d4-0x80;const _0x4d762e=_0x4d76();let _0x194d99=_0x4d762e[_0x5786d4];return _0x194d99;}function pt(_0x2f3fb3,_0x29a112){const _0x25322e=_0x3b2f37;if(q(_0x2f3fb3)!=_0x25322e(0x1dd)||!_0x2f3fb3)return _0x2f3fb3;var _0x5f4ed7=_0x2f3fb3[Symbol['toPrimitive']];if(_0x5f4ed7!==void 0x0){var _0x17274e=_0x5f4ed7['call'](_0x2f3fb3,_0x29a112||_0x25322e(0xf5));if(q(_0x17274e)!=_0x25322e(0x1dd))return _0x17274e;throw TypeError(_0x25322e(0x166));}return(_0x29a112===_0x25322e(0x12c)?String:Number)(_0x2f3fb3);}function mt(_0x1cd76c){const _0x30760a=_0x3b2f37;var _0x33c2ec=pt(_0x1cd76c,_0x30760a(0x12c));return q(_0x33c2ec)==_0x30760a(0x86)?_0x33c2ec:_0x33c2ec+'';}function ht(_0x27fc03,_0x1d65a9,_0x4239e9){const _0x578c62=_0x3b2f37;return(_0x1d65a9=mt(_0x1d65a9))in _0x27fc03?Object[_0x578c62(0x191)](_0x27fc03,_0x1d65a9,{'value':_0x4239e9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27fc03[_0x1d65a9]=_0x4239e9,_0x27fc03;}var J;let Y=J=class extends _0x31080f{constructor(_0x4fac5a,_0x52fd92,_0x1bcb47,_0x53346d,_0x29c643,_0x5a507e){const _0x522a14=_0x3b2f37;super(_0x53346d),this[_0x522a14(0x10d)]=_0x4fac5a,this[_0x522a14(0xe8)]=_0x52fd92,this[_0x522a14(0x1b3)]=_0x1bcb47,this[_0x522a14(0x1a6)]=_0x53346d,this[_0x522a14(0x121)]=_0x29c643,this[_0x522a14(0x199)]=_0x5a507e,ht(this,_0x522a14(0x186),void 0x0),ht(this,_0x522a14(0xc0),void 0x0),this['_baseUnitId']=_0x4fac5a[_0x522a14(0x8d)](),this['_baseTableId']=_0x52fd92[_0x522a14(0x8d)]();}[_0x3b2f37(0x9c)](){return this['_base'];}[_0x3b2f37(0x16d)](){return this['_table'];}[_0x3b2f37(0x8d)](){const _0x15baf4=_0x3b2f37;return this[_0x15baf4(0x1b3)];}['getPermission'](){const _0xca0ec8=_0x3b2f37;let _0x5869ec=this['_table'][_0xca0ec8(0x8d)]();return new L(this[_0xca0ec8(0x10d)][_0xca0ec8(0x8d)](),_0x262d9e(_0x5869ec,this[_0xca0ec8(0x1b3)]),[_0x1a5f5e(_0x5869ec)],this['_commandService'],this['_permissionService']);}[_0x3b2f37(0x12d)](){const _0x39a49b=_0x3b2f37;return{...this[_0x39a49b(0x129)](),'values':this['getValues']()};}[_0x3b2f37(0x1ac)](_0x4222f7){const _0x1d6a5c=_0x3b2f37;return V(this[_0x1d6a5c(0xe8)][_0x1d6a5c(0xc2)]()[_0x1d6a5c(0xb4)][_0x4222f7])?this[_0x1d6a5c(0x129)]()['values'][_0x4222f7]??null:null;}[_0x3b2f37(0xf3)](){const _0x58acff=_0x3b2f37;let _0x1fb4a6=this[_0x58acff(0xe8)]['getTable']();return Object[_0x58acff(0x195)](Object[_0x58acff(0xa7)](this[_0x58acff(0x129)]()['values'])[_0x58acff(0x120)](([_0x11ef6c])=>V(_0x1fb4a6['fields'][_0x11ef6c])));}[_0x3b2f37(0x14c)](_0x326899,_0x5df511){const _0x12a46b=_0x3b2f37;let _0x26da88=this[_0x12a46b(0xe8)]['getTable']()[_0x12a46b(0xb4)][_0x326899];return this['_commandService'][_0x12a46b(0x17e)](_0x1b0f5c['id'],{'unitId':this[_0x12a46b(0x10d)][_0x12a46b(0x8d)](),'tableId':this[_0x12a46b(0xe8)][_0x12a46b(0x8d)](),'recordId':this['_recordId'],'fieldId':_0x326899,'value':st(_0x26da88,_0x5df511),'source':_0x4d5524[_0x12a46b(0xce)]});}[_0x3b2f37(0x81)](_0x1098cd,_0x5a0b1e){const _0x26dceb=_0x3b2f37;return this[_0x26dceb(0x14c)](_0x1098cd,_0x5a0b1e['map'](_0x1cb433=>({..._0x1cb433})));}['getAttachments'](_0x16dc9b){const _0x1d450b=_0x3b2f37;this[_0x1d450b(0x119)](_0x16dc9b);let _0x536b6a=this[_0x1d450b(0x1ac)](_0x16dc9b);return Array['isArray'](_0x536b6a)?_0x536b6a[_0x1d450b(0x1c6)]((_0x51aac7,_0x5c0df2)=>_t(_0x51aac7,_0x16dc9b,_0x5c0df2)):[];}[_0x3b2f37(0x8c)](_0x2f1d46,_0x122fba){const _0x2d303d=_0x3b2f37;this[_0x2d303d(0x119)](_0x2f1d46);let _0x3329b8=new Set(_0x122fba['map'](_0x3ff757=>_0x3ff757['id']));if(!_0x3329b8[_0x2d303d(0x108)])return!0x0;let _0x1e8c66=this[_0x2d303d(0x112)](_0x2f1d46),_0x2ef6d1=_0x1e8c66[_0x2d303d(0x120)](_0x5e8a8b=>!_0x3329b8[_0x2d303d(0x148)](_0x5e8a8b['id']));return _0x2ef6d1[_0x2d303d(0x17b)]===_0x1e8c66[_0x2d303d(0x17b)]||this[_0x2d303d(0x81)](_0x2f1d46,_0x2ef6d1);}['setValues'](_0x450341,_0x1ada52='id'){const _0x76e078=_0x3b2f37;let _0x123c2d=this[_0x76e078(0xe8)][_0x76e078(0xc2)](),_0x26682f=[{'recordId':this['_recordId'],'values':H(_0x123c2d,_0x450341,_0x1ada52)}];return this[_0x76e078(0x121)][_0x76e078(0x17e)](_0x46d1e8['id'],{'unitId':this[_0x76e078(0x10d)][_0x76e078(0x8d)](),'tableId':this['_table'][_0x76e078(0x8d)](),'patches':_0x26682f,'source':_0x4d5524[_0x76e078(0xce)]});}[_0x3b2f37(0xc6)](){const _0x2aac8c=_0x3b2f37;return this['_commandService'][_0x2aac8c(0x17e)](_0x6344c7['id'],{'unitId':this[_0x2aac8c(0x10d)][_0x2aac8c(0x8d)](),'tableId':this['_table']['getId'](),'recordId':this[_0x2aac8c(0x1b3)],'source':_0x4d5524['Facade']});}[_0x3b2f37(0x114)](_0x5b0283){const _0x2d2811=_0x3b2f37;let _0x20fb41={...this[_0x2d2811(0x129)](),..._0x5b0283,'id':_0x2ea005(0x6)};_0x20fb41[_0x2d2811(0x1bc)]={..._0x20fb41[_0x2d2811(0x1bc)],..._0x5b0283==null?void 0x0:_0x5b0283[_0x2d2811(0x1bc)]},Reflect['deleteProperty'](_0x20fb41[_0x2d2811(0x1bc)],_0x3cb4f6);let _0x52d787=Date[_0x2d2811(0x17a)]();if(_0x20fb41[_0x2d2811(0xcd)]||=''+_0x52d787,_0x20fb41[_0x2d2811(0xef)]||=_0x52d787,_0x20fb41['updatedAt']||=_0x52d787,!this[_0x2d2811(0x121)][_0x2d2811(0x17e)](_0x292c95['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x2d2811(0x8d)](),'sourceRecordId':this[_0x2d2811(0x1b3)],'record':_0x20fb41,'source':_0x4d5524[_0x2d2811(0xce)]}))throw Error(_0x2d2811(0x1d3)+this[_0x2d2811(0x1b3)]+'\x22.');return this[_0x2d2811(0x1a6)][_0x2d2811(0xdb)](J,this[_0x2d2811(0x10d)],this[_0x2d2811(0xe8)],_0x20fb41['id'],this['_injector']);}[_0x3b2f37(0x106)](_0x4944d8){const _0x4db303=_0x3b2f37;return this[_0x4db303(0x121)][_0x4db303(0x17e)](_0x5da32a['id'],{'unitId':this[_0x4db303(0x10d)][_0x4db303(0x8d)](),'tableId':this['_table'][_0x4db303(0x8d)](),'recordId':this['_recordId'],'orderKey':_0x4944d8});}[_0x3b2f37(0x178)](_0x591fba){const _0x12e4a5=_0x3b2f37;let _0x38ef48=this[_0x12e4a5(0x1e2)](_0x591fba),_0x5a30f7=this['getValue'](_0x38ef48['id']);return _0xea2e53(_0x5a30f7);}['setLinkedRecordIds'](_0x2058ad,_0x12a689){const _0x51eca2=_0x3b2f37;let _0x34137e=this[_0x51eca2(0x1e2)](_0x2058ad),_0x754e8a=_0x44d49b(_0x12a689),_0x1adb1b=_0x57c749(this[_0x51eca2(0x10d)][_0x51eca2(0x10a)]()['getSnapshot'](),_0x34137e,_0x754e8a);if(!_0x1adb1b[_0x51eca2(0x113)])throw Error(_0x1adb1b['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x51eca2(0x121)][_0x51eca2(0x17e)](_0x1b0f5c['id'],{'unitId':this[_0x51eca2(0x10d)]['getId'](),'tableId':this[_0x51eca2(0xe8)][_0x51eca2(0x8d)](),'recordId':this['_recordId'],'fieldId':_0x2058ad,'value':_0x754e8a,'source':_0x4d5524[_0x51eca2(0xce)]});}[_0x3b2f37(0xaa)](_0x19d0fd,_0x48fc1c){const _0x5cedfa=_0x3b2f37;let _0x1d3a5f=this['_getRecordLinkField'](_0x19d0fd),_0x316542=_0x2305fd(_0x1d3a5f);if(!_0x316542)throw Error(_0x5cedfa(0x1bb)+_0x19d0fd+_0x5cedfa(0x162));let _0x3984cc=this[_0x5cedfa(0x178)](_0x19d0fd);return _0x316542[_0x5cedfa(0x171)]&&_0x3984cc[_0x5cedfa(0x117)](_0x48fc1c)?!0x0:this[_0x5cedfa(0x1db)](_0x19d0fd,_0x316542[_0x5cedfa(0x171)]?[..._0x3984cc,_0x48fc1c]:[_0x48fc1c]);}[_0x3b2f37(0x1b6)](_0x3e42df,_0x2f07f4){const _0x54b057=_0x3b2f37;let _0x3a89b1=this[_0x54b057(0x178)](_0x3e42df);return!_0x3a89b1['includes'](_0x2f07f4)||this[_0x54b057(0x1db)](_0x3e42df,_0x3a89b1['filter'](_0x518f54=>_0x518f54!==_0x2f07f4));}[_0x3b2f37(0x16c)](_0x2403e5){const _0x3d22a6=_0x3b2f37;let _0x4103b0=this[_0x3d22a6(0x175)](_0x2403e5)[_0x3d22a6(0x15b)][_0x3d22a6(0x167)](this[_0x3d22a6(0x1b3)])??null;return _0x4103b0?this[_0x3d22a6(0xe8)][_0x3d22a6(0x189)](_0x4103b0):null;}[_0x3b2f37(0x145)](_0x5c163a){const _0x2971bf=_0x3b2f37;return(this['_getHierarchyIndex'](_0x5c163a)['childrenByParentId']['get'](this[_0x2971bf(0x1b3)])??[])[_0x2971bf(0x13e)](_0x2ace87=>{const _0x559125=_0x2971bf;let _0x54b666=this[_0x559125(0xe8)][_0x559125(0x189)](_0x2ace87);return _0x54b666?[_0x54b666]:[];});}[_0x3b2f37(0x12f)](_0xc4b12c){const _0x26a395=_0x3b2f37;let _0x2fad49=this[_0x26a395(0x175)](_0xc4b12c),_0xee1dd2=[],_0x1ac411=_0x2fad49[_0x26a395(0x15b)][_0x26a395(0x167)](this[_0x26a395(0x1b3)])??null;for(;_0x1ac411;){let _0x1d98af=this[_0x26a395(0xe8)][_0x26a395(0x189)](_0x1ac411);_0x1d98af&&_0xee1dd2['push'](_0x1d98af),_0x1ac411=_0x2fad49[_0x26a395(0x15b)]['get'](_0x1ac411)??null;}return _0xee1dd2;}['getDescendants'](_0x3c95c4){const _0x31ceb5=_0x3b2f37;let _0x4c3f73=this[_0x31ceb5(0x175)](_0x3c95c4),_0x2cc948=_0x4c3f73[_0x31ceb5(0x116)][_0x31ceb5(0x83)](this[_0x31ceb5(0x1b3)]),_0xbcbe4b=_0x4c3f73['subtreeHeightByRecordId']['has'](this[_0x31ceb5(0x1b3)])?this[_0x31ceb5(0x17f)](_0x4c3f73['childrenByParentId'],this[_0x31ceb5(0x1b3)]):[];return _0x2cc948<0x0?[]:_0xbcbe4b[_0x31ceb5(0x13e)](_0xfb2a06=>{const _0x345138=_0x31ceb5;let _0x5c7fe1=this[_0x345138(0xe8)][_0x345138(0x189)](_0xfb2a06);return _0x5c7fe1?[_0x5c7fe1]:[];});}[_0x3b2f37(0x188)](_0x4081c0,_0x914a1f,_0x14049e){const _0x9836=_0x3b2f37;return this[_0x9836(0x121)][_0x9836(0x17e)](_0xd3c5c2['id'],{'unitId':this[_0x9836(0x10d)]['getId'](),'tableId':this[_0x9836(0xe8)][_0x9836(0x8d)](),'fieldId':_0x4081c0,'recordId':this['_recordId'],'parentRecordId':_0x914a1f,'orderKey':_0x14049e,'source':_0x4d5524['Facade']});}[_0x3b2f37(0xf6)](_0x3a013a,_0x103123,_0x83cd22='id',_0x3c73db){const _0x231076=_0x3b2f37;let _0x1e27be=this[_0x231076(0xe8)]['getTable'](),_0x3d756c=Date[_0x231076(0x17a)](),_0x22aec7={..._0x3c73db,'id':_0x2ea005(0x6),'values':H(_0x1e27be,_0x103123,_0x83cd22),'orderKey':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0xcd)])||''+_0x3d756c,'createdAt':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0xef)])||_0x3d756c,'updatedAt':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0x82)])||_0x3d756c};if(!this[_0x231076(0x121)][_0x231076(0x17e)](_0x2a209d['id'],{'unitId':this[_0x231076(0x10d)]['getId'](),'tableId':this['_table'][_0x231076(0x8d)](),'fieldId':_0x3a013a,'parentRecordId':this['_recordId'],'record':_0x22aec7,'source':_0x4d5524[_0x231076(0xce)]}))throw Error(_0x231076(0xc4)+this[_0x231076(0x1b3)]+'\x22.');return this['_injector'][_0x231076(0xdb)](J,this['_base'],this['_table'],_0x22aec7['id'],this[_0x231076(0x1a6)]);}[_0x3b2f37(0x175)](_0x47a5a9){const _0xd9f527=_0x3b2f37;return _0xfa6b82(this[_0xd9f527(0xe8)]['getTable'](),_0x47a5a9);}['_collectDescendantIds'](_0x4fdb25,_0x39b851){let _0x38545c=[],_0x428158=_0x51eb19=>{const _0x468189=_0x194d;for(let _0x2119df of _0x4fdb25[_0x468189(0x167)](_0x51eb19)??[])_0x38545c[_0x468189(0xe4)](_0x2119df),_0x428158(_0x2119df);};return _0x428158(_0x39b851),_0x38545c;}['_getRecord'](){const _0x311da9=_0x3b2f37;let _0x17908a=this[_0x311da9(0xe8)][_0x311da9(0xc2)]()[_0x311da9(0x193)][this['_recordId']];if(!_0x17908a)throw Error('[FRecord]:\x20record\x20\x22'+this[_0x311da9(0x1b3)]+_0x311da9(0x102));return _0x17908a;}[_0x3b2f37(0x1e2)](_0x16a625){const _0x47b484=_0x3b2f37;let _0x182b8f=this[_0x47b484(0xe8)]['getTable']()[_0x47b484(0xb4)][_0x16a625];if(!_0x182b8f||_0x182b8f[_0x47b484(0xa2)]!==_0x268b7f['RecordLink'])throw Error(_0x47b484(0xb9)+_0x16a625+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x182b8f;}['_getAttachmentField'](_0x3da0ef){const _0x453f34=_0x3b2f37;let _0x16f380=this[_0x453f34(0xe8)][_0x453f34(0xc2)]()[_0x453f34(0xb4)][_0x3da0ef];if(!_0x16f380||_0x16f380[_0x453f34(0xa2)]!==_0x268b7f[_0x453f34(0x1d2)])throw Error(_0x453f34(0xb9)+_0x3da0ef+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x16f380;}};Y=J=z([R(0x4,_0x3fc5b1),R(0x5,_0x376f49)],Y);function gt(_0xdd1114){const _0x362fd8=_0x3b2f37;return!!(_0xdd1114&&typeof _0xdd1114=='object'&&'id'in _0xdd1114&&typeof _0xdd1114['id']==_0x362fd8(0x12c)&&'name'in _0xdd1114&&typeof _0xdd1114[_0x362fd8(0x1c2)]==_0x362fd8(0x12c));}function _t(_0x355790,_0x13c1ac,_0x439623){const _0x853e03=_0x3b2f37;if(!gt(_0x355790))throw Error(_0x853e03(0xf1)+_0x439623+'\x20in\x20field\x20\x22'+_0x13c1ac+_0x853e03(0x11c));return{..._0x355790};}let X=class{constructor(_0x586c39,_0x137759,_0x510005,_0x3469ce,_0x43a171,_0x5b1692,_0x4d37fc){const _0x1bf4c4=_0x3b2f37;this[_0x1bf4c4(0x10d)]=_0x586c39,this[_0x1bf4c4(0xe8)]=_0x137759,this[_0x1bf4c4(0x1d8)]=_0x510005,this[_0x1bf4c4(0x1a6)]=_0x3469ce,this[_0x1bf4c4(0x121)]=_0x43a171,this['_permissionService']=_0x5b1692,this['_projectionService']=_0x4d37fc;}[_0x3b2f37(0x8d)](){const _0x5369a=_0x3b2f37;return this[_0x5369a(0x1d8)];}[_0x3b2f37(0x1b1)](){const _0xe8cd22=_0x3b2f37;let _0x93c607=this[_0xe8cd22(0xe8)]['getId']();return new L(this[_0xe8cd22(0x10d)][_0xe8cd22(0x8d)](),_0x7102f(_0x93c607,this[_0xe8cd22(0x1d8)]),[_0x1a5f5e(_0x93c607)],this[_0xe8cd22(0x121)],this[_0xe8cd22(0x199)]);}[_0x3b2f37(0x19f)](){const _0x57ac0e=_0x3b2f37;return this[_0x57ac0e(0x1be)]();}['getName'](){const _0x54308a=_0x3b2f37;return this[_0x54308a(0x1be)]()[_0x54308a(0x1c2)];}['getType'](){return this['_getView']()['type'];}[_0x3b2f37(0x110)](_0x1ab4f9){const _0x9c7f89=_0x3b2f37;return this[_0x9c7f89(0x121)][_0x9c7f89(0x17e)](_0xaefd70['id'],{'unitId':this[_0x9c7f89(0x10d)][_0x9c7f89(0x8d)](),'tableId':this[_0x9c7f89(0xe8)][_0x9c7f89(0x8d)](),'viewId':this['_viewId'],'name':_0x1ab4f9});}[_0x3b2f37(0x14b)](){const _0xd37658=_0x3b2f37;let _0x22e03f=this['getType'](),_0x29856c=this[_0xd37658(0x1be)]()[_0xd37658(0x1d7)];switch(_0x22e03f){case _0x5b008e['Grid']:return _0x29856c;case _0x5b008e[_0xd37658(0x18e)]:return _0x29856c;case _0x5b008e[_0xd37658(0x161)]:return _0x29856c;case _0x5b008e['Gantt']:return _0x29856c;case _0x5b008e[_0xd37658(0xb0)]:return _0x29856c;default:return _0x29856c;}}[_0x3b2f37(0x109)](_0x25ee68){const _0x32c56a=_0x3b2f37;return this[_0x32c56a(0x121)]['syncExecuteCommand'](_0x45a334['id'],{'unitId':this[_0x32c56a(0x10d)]['getId'](),'tableId':this['_table'][_0x32c56a(0x8d)](),'viewId':this[_0x32c56a(0x1d8)],'patch':_0x25ee68});}[_0x3b2f37(0x1d1)](){const _0x1aa1a8=_0x3b2f37;var _0x534d93;return _0x36fd3d[_0x1aa1a8(0xc8)](((_0x534d93=this[_0x1aa1a8(0x1be)]()['config'][_0x1aa1a8(0x1d4)])==null?void 0x0:_0x534d93[_0x1aa1a8(0x15e)])??[]);}[_0x3b2f37(0x1ca)](_0x3e65a9){const _0x6ed120=_0x3b2f37;return this[_0x6ed120(0x121)][_0x6ed120(0x17e)](_0x4b486e['id'],{'unitId':this[_0x6ed120(0x10d)][_0x6ed120(0x8d)](),'tableId':this[_0x6ed120(0xe8)][_0x6ed120(0x8d)](),'viewId':this[_0x6ed120(0x1d8)],'type':_0x510c3e[_0x6ed120(0x1cb)],'rules':_0x3e65a9});}[_0x3b2f37(0xeb)](_0x567a92){const _0x2d7600=_0x3b2f37;return this['_commandService'][_0x2d7600(0x17e)](_0x4b486e['id'],{'unitId':this[_0x2d7600(0x10d)][_0x2d7600(0x8d)](),'tableId':this[_0x2d7600(0xe8)][_0x2d7600(0x8d)](),'viewId':this[_0x2d7600(0x1d8)],'type':_0x510c3e[_0x2d7600(0x143)],'rule':_0x567a92});}[_0x3b2f37(0x1de)](_0x531b30){const _0x5539b3=_0x3b2f37;return this[_0x5539b3(0x121)]['syncExecuteCommand'](_0x4b486e['id'],{'unitId':this[_0x5539b3(0x10d)][_0x5539b3(0x8d)](),'tableId':this[_0x5539b3(0xe8)]['getId'](),'viewId':this[_0x5539b3(0x1d8)],'type':_0x510c3e[_0x5539b3(0xd9)],'ruleId':_0x531b30});}[_0x3b2f37(0x1c4)](){const _0x757880=_0x3b2f37;return this[_0x757880(0x121)][_0x757880(0x17e)](_0x4b486e['id'],{'unitId':this[_0x757880(0x10d)]['getId'](),'tableId':this[_0x757880(0xe8)][_0x757880(0x8d)](),'viewId':this['_viewId'],'type':_0x510c3e['Clear']});}[_0x3b2f37(0xf2)](){return this['_getView']()['filter']??null;}[_0x3b2f37(0x1a8)](_0xaf2a33){const _0x20f956=_0x3b2f37;return this[_0x20f956(0x121)][_0x20f956(0x17e)](_0x3943da['id'],{'unitId':this[_0x20f956(0x10d)][_0x20f956(0x8d)](),'tableId':this[_0x20f956(0xe8)]['getId'](),'viewId':this[_0x20f956(0x1d8)],'filter':_0xaf2a33});}[_0x3b2f37(0xb1)](){const _0x262149=_0x3b2f37;return this[_0x262149(0x1be)]()[_0x262149(0x89)]??[];}['setSort'](_0x5e9e2d){const _0x25e7ce=_0x3b2f37;return this[_0x25e7ce(0x121)][_0x25e7ce(0x17e)](_0x388049['id'],{'unitId':this['_base'][_0x25e7ce(0x8d)](),'tableId':this[_0x25e7ce(0xe8)][_0x25e7ce(0x8d)](),'viewId':this['_viewId'],'sort':_0x5e9e2d});}[_0x3b2f37(0x18b)](){const _0x58a5bd=_0x3b2f37;return this[_0x58a5bd(0x1be)]()[_0x58a5bd(0x10b)]??[];}[_0x3b2f37(0x105)](_0x1583b9){const _0x5031ca=_0x3b2f37;return this[_0x5031ca(0x121)][_0x5031ca(0x17e)](_0x4a854f['id'],{'unitId':this[_0x5031ca(0x10d)]['getId'](),'tableId':this[_0x5031ca(0xe8)][_0x5031ca(0x8d)](),'viewId':this[_0x5031ca(0x1d8)],'group':_0x1583b9});}[_0x3b2f37(0x94)](_0x4ae7f8){const _0x549459=_0x3b2f37;var _0x497b86;return V(this['_table']['getTable']()['fields'][_0x4ae7f8])?((_0x497b86=this[_0x549459(0x1be)]()[_0x549459(0x1b7)])==null?void 0x0:_0x497b86[_0x4ae7f8])??{}:{};}[_0x3b2f37(0xbd)](){const _0x3d629a=_0x3b2f37;let _0x246d12=this[_0x3d629a(0xe8)][_0x3d629a(0xc2)](),_0xe9617=this[_0x3d629a(0x1be)]();return(_0xe9617[_0x3d629a(0xfc)]??_0x246d12[_0x3d629a(0xfc)])[_0x3d629a(0x120)](_0x5b2219=>{const _0xa4cfd4=_0x3d629a;var _0x57a0a6;let _0x8ce5a7=_0x246d12[_0xa4cfd4(0xb4)][_0x5b2219];return V(_0x8ce5a7)&&!((_0x57a0a6=_0xe9617['fieldSettings'])!=null&&(_0x57a0a6=_0x57a0a6[_0x5b2219])!=null&&_0x57a0a6[_0xa4cfd4(0xa5)]);})[_0x3d629a(0x1c6)](_0x68606=>this[_0x3d629a(0x1a6)][_0x3d629a(0xdb)](B,this['_base'],this[_0x3d629a(0xe8)],_0x68606));}[_0x3b2f37(0x185)](_0x5b7c02,_0x5d06d1){const _0x2448f9=_0x3b2f37;return V(this[_0x2448f9(0xe8)][_0x2448f9(0xc2)]()['fields'][_0x5b7c02])?this[_0x2448f9(0x121)][_0x2448f9(0x17e)](_0x1b428a['id'],{'unitId':this[_0x2448f9(0x10d)][_0x2448f9(0x8d)](),'tableId':this[_0x2448f9(0xe8)]['getId'](),'viewId':this[_0x2448f9(0x1d8)],'fieldId':_0x5b7c02,'visible':_0x5d06d1}):!0x1;}[_0x3b2f37(0x107)](_0x449af1,_0x4d80dd){const _0x5d801a=_0x3b2f37;return V(this[_0x5d801a(0xe8)]['getTable']()['fields'][_0x449af1])?this[_0x5d801a(0x121)][_0x5d801a(0x17e)](_0x3596a1['id'],{'unitId':this['_base'][_0x5d801a(0x8d)](),'tableId':this[_0x5d801a(0xe8)][_0x5d801a(0x8d)](),'viewId':this['_viewId'],'fieldId':_0x449af1,'width':_0x4d80dd}):!0x1;}[_0x3b2f37(0x133)](_0x251c7f,_0x57c1b1){const _0x47500f=_0x3b2f37;let _0x4e9f86=this['_table'][_0x47500f(0xc2)](),_0x76285f=_0x57c1b1[_0x47500f(0xf7)]??_0x57c1b1[_0x47500f(0xd0)];return!V(_0x4e9f86[_0x47500f(0xb4)][_0x251c7f])||!_0x76285f||!V(_0x4e9f86[_0x47500f(0xb4)][_0x76285f])?!0x1:this['_commandService'][_0x47500f(0x17e)](_0x42af3c['id'],{'unitId':this[_0x47500f(0x10d)][_0x47500f(0x8d)](),'tableId':this['_table'][_0x47500f(0x8d)](),'viewId':this['_viewId'],'fieldId':_0x251c7f,'target':_0x57c1b1});}['move'](_0x2485af){const _0x294858=_0x3b2f37;return this[_0x294858(0x121)][_0x294858(0x17e)](_0x37de2f['id'],{'unitId':this[_0x294858(0x10d)]['getId'](),'tableId':this['_table'][_0x294858(0x8d)](),'viewId':this[_0x294858(0x1d8)],'target':_0x2485af});}[_0x3b2f37(0xc6)](){const _0x5b071b=_0x3b2f37;return this[_0x5b071b(0x121)][_0x5b071b(0x17e)](_0x18125d['id'],{'unitId':this[_0x5b071b(0x10d)]['getId'](),'tableId':this[_0x5b071b(0xe8)][_0x5b071b(0x8d)](),'viewId':this['_viewId']});}['getProjection'](){const _0x3eba86=_0x3b2f37;return this['_projectionService'][_0x3eba86(0xe0)](this[_0x3eba86(0x10d)][_0x3eba86(0x10a)]()['getSnapshot'](),this[_0x3eba86(0xe8)][_0x3eba86(0x8d)](),this[_0x3eba86(0x1d8)]);}[_0x3b2f37(0x1be)](){const _0x545b22=_0x3b2f37;let _0x201139=this[_0x545b22(0xe8)][_0x545b22(0xc2)]()[_0x545b22(0xd3)][this[_0x545b22(0x1d8)]];if(!_0x201139)throw Error(_0x545b22(0x1e3)+this[_0x545b22(0x1d8)]+_0x545b22(0x102));return _0x201139;}};X=z([R(0x4,_0x3fc5b1),R(0x5,_0x376f49),R(0x6,_0x1cb7d5)],X);let Z=class{constructor(_0x1b941a,_0x1ef31e,_0x355cd2,_0x4cbc24,_0x41d188,_0x4844b5){const _0x2d467a=_0x3b2f37;this[_0x2d467a(0x10d)]=_0x1b941a,this[_0x2d467a(0xe2)]=_0x1ef31e,this[_0x2d467a(0x1a6)]=_0x355cd2,this[_0x2d467a(0x121)]=_0x4cbc24,this[_0x2d467a(0x199)]=_0x41d188,this['_projectionService']=_0x4844b5;}['getBase'](){const _0x2ad641=_0x3b2f37;return this['_base'][_0x2ad641(0x10a)]();}[_0x3b2f37(0xc2)](){return this['_getTable']();}['getId'](){return this['_tableId'];}[_0x3b2f37(0x1b1)](){const _0xd75365=_0x3b2f37;return new L(this[_0xd75365(0x10a)]()['getUnitId'](),_0x1a5f5e(this[_0xd75365(0xe2)]),[],this['_commandService'],this[_0xd75365(0x199)]);}['getHierarchyFieldId'](){const _0x17614c=_0x3b2f37;return _0x3bde75(this[_0x17614c(0xf0)]());}[_0x3b2f37(0x1a3)](_0x1fba12){const _0x49c692=_0x3b2f37;return this['_commandService'][_0x49c692(0x17e)](_0x273e9f['id'],{'unitId':this[_0x49c692(0x10d)]['getId'](),'tableId':this['_tableId'],'fieldId':_0x1fba12});}['getName'](){const _0x1b9db2=_0x3b2f37;return this[_0x1b9db2(0xf0)]()['name'];}[_0x3b2f37(0xcc)](){const _0x3e4ed5=_0x3b2f37;let _0x56b81c=this['_base']['getBase']()[_0x3e4ed5(0xb5)]();return _0x31d1af(this[_0x3e4ed5(0xf0)](),_0x56b81c);}['setName'](_0x264d91){const _0x55dbed=_0x3b2f37;let _0x2b24f3=_0x4a1245(this[_0x55dbed(0x10d)]['getBase']()[_0x55dbed(0xb5)](),_0x264d91,this[_0x55dbed(0xe2)]);if(!_0x2b24f3[_0x55dbed(0x113)])throw Error(_0x55dbed(0x190)+_0x264d91+_0x55dbed(0x118)+_0x2d6c44+'\x20'+_0x2b24f3[_0x55dbed(0xe7)]);return this[_0x55dbed(0x121)][_0x55dbed(0x17e)](_0x1e32c6['id'],{'unitId':this['_base'][_0x55dbed(0x8d)](),'tableId':this[_0x55dbed(0xe2)],'name':_0x264d91});}['search'](_0x1668b6,_0x165a91){const _0x3708cf=_0x3b2f37;let _0xc52ed=this[_0x3708cf(0x10d)][_0x3708cf(0x10a)]()[_0x3708cf(0xb5)](),_0x1d150d=this[_0x3708cf(0xf0)]();if(_0x165a91){let _0x3dfb92=this[_0x3708cf(0x152)][_0x3708cf(0xe0)](_0xc52ed,this[_0x3708cf(0xe2)],_0x165a91),_0x3e3894=_0x1d150d[_0x3708cf(0xd3)][_0x165a91],_0x5cc989=_0x1668b6[_0x3708cf(0xe6)]??Tt(_0x1d150d,_0x3e3894,_0x3dfb92),_0x8a6a7f=_0x3708cf(0x184)in _0x3dfb92&&Array['isArray'](_0x3dfb92[_0x3708cf(0x184)])?_0x3dfb92[_0x3708cf(0x184)]:[];return _0x5b0210({..._0x1668b6,'table':_0x1d150d,'fieldIds':_0x5cc989,'rows':_0x8a6a7f});}let _0x8a1e86=(_0x1d150d['recordOrder']?_0x1d150d[_0x3708cf(0x96)]['map'](_0x2a165d=>_0x1d150d['records'][_0x2a165d]):Object['values'](_0x1d150d[_0x3708cf(0x193)])[_0x3708cf(0x89)]((_0x2a1fc1,_0x3677d6)=>_0x2a1fc1['orderKey'][_0x3708cf(0x1e4)](_0x3677d6[_0x3708cf(0xcd)])))[_0x3708cf(0x120)](_0x4facf7=>_0x4facf7)[_0x3708cf(0x1c6)](_0x12c71d=>({'recordId':_0x12c71d['id'],'values':_0x12c71d[_0x3708cf(0x1bc)]})),_0x422478=_0x1668b6[_0x3708cf(0xe6)]??_0x1d150d[_0x3708cf(0xfc)]['filter'](_0x197e63=>V(_0x1d150d[_0x3708cf(0xb4)][_0x197e63]));return _0x5b0210({..._0x1668b6,'table':_0x1d150d,'fieldIds':_0x422478,'rows':_0x8a1e86});}[_0x3b2f37(0x1c9)](){const _0x9f5570=_0x3b2f37;return this[_0x9f5570(0xf0)]()[_0x9f5570(0x92)];}['getFields'](){const _0x2fc0fb=_0x3b2f37;let _0x1385e6=this[_0x2fc0fb(0xf0)]();return _0x1385e6[_0x2fc0fb(0xfc)][_0x2fc0fb(0x1c6)](_0x5e699a=>_0x1385e6[_0x2fc0fb(0xb4)][_0x5e699a])[_0x2fc0fb(0x120)](V)['map'](_0x2a33b1=>this[_0x2fc0fb(0x1a6)][_0x2fc0fb(0xdb)](B,this[_0x2fc0fb(0x10d)],this,_0x2a33b1['id']));}[_0x3b2f37(0x196)](_0x1289ca){const _0x4282a1=_0x3b2f37;let _0x4f18f6=this['_getTable']()['fields'][_0x1289ca];return V(_0x4f18f6)?this['_injector'][_0x4282a1(0xdb)](B,this[_0x4282a1(0x10d)],this,_0x4f18f6['id']):null;}[_0x3b2f37(0x85)](_0x88fa7d){const _0x472886=_0x3b2f37;let _0x4542e5=this[_0x472886(0xf0)]()[_0x472886(0xb4)],_0x377564=Object[_0x472886(0x1bc)](_0x4542e5)[_0x472886(0x179)](_0x20583c=>V(_0x20583c)&&_0x20583c['name']===_0x88fa7d);return _0x377564?this[_0x472886(0x1a6)]['createInstance'](B,this[_0x472886(0x10d)],this,_0x377564['id']):null;}[_0x3b2f37(0x15f)](){const _0x2a5bd5=_0x3b2f37;let _0x128a06=this[_0x2a5bd5(0xf0)]()[_0x2a5bd5(0x92)];return this[_0x2a5bd5(0x1a6)][_0x2a5bd5(0xdb)](B,this[_0x2a5bd5(0x10d)],this,_0x128a06);}[_0x3b2f37(0x183)](_0x264df1,_0x584909,_0x1dc3bc){const _0x689baa=_0x3b2f37;var _0x1871b7,_0x20f3e2;if(!Object['values'](_0x268b7f)[_0x689baa(0x13b)](_0xdabea1=>_0xdabea1===_0x584909))throw Error(_0x689baa(0x163)+String(_0x584909)+'\x22.');if(_0x584909===_0x268b7f[_0x689baa(0xae)]&&this['_prepareFormulaFieldReferences'](_0x264df1,_0x1dc3bc),_0x584909===_0x268b7f[_0x689baa(0xc1)]&&(typeof(_0x1dc3bc==null||(_0x1871b7=_0x1dc3bc[_0x689baa(0x19c)])==null||(_0x1871b7=_0x1871b7['config'])==null?void 0x0:_0x1871b7[_0x689baa(0x149)])!=_0x689baa(0x12c)||typeof _0x1dc3bc[_0x689baa(0x19c)][_0x689baa(0x1d7)][_0x689baa(0x171)]!=_0x689baa(0x1cf)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x22e964={..._0x1dc3bc==null?void 0x0:_0x1dc3bc[_0x689baa(0x19c)],'id':_0x2ea005(0x6),'name':_0x264df1,'type':_0x584909,'config':(_0x1dc3bc==null||(_0x20f3e2=_0x1dc3bc['field'])==null?void 0x0:_0x20f3e2[_0x689baa(0x1d7)])??{}};if(!this[_0x689baa(0x121)][_0x689baa(0x17e)](_0x174ba5['id'],{'unitId':this[_0x689baa(0x10d)][_0x689baa(0x8d)](),'tableId':this[_0x689baa(0xe2)],'field':_0x22e964,'index':_0x1dc3bc==null?void 0x0:_0x1dc3bc[_0x689baa(0x172)]}))throw Error(_0x689baa(0x14e)+_0x264df1+'\x22');return this[_0x689baa(0x1a6)][_0x689baa(0xdb)](B,this[_0x689baa(0x10d)],this,_0x22e964['id']);}[_0x3b2f37(0xf8)](_0x694acf,_0x1ffd98){const _0x4fc1e4=_0x3b2f37;var _0x83fd86;if(!_0x1ffd98||!(_0x4fc1e4(0x16b)in _0x1ffd98)||!Array['isArray'](_0x1ffd98[_0x4fc1e4(0x16b)]))throw Error(_0x4fc1e4(0x140));let _0x444b66=this[_0x4fc1e4(0x121)][_0x4fc1e4(0x17e)](_0x25826c['id'],{'unitId':this[_0x4fc1e4(0x10d)][_0x4fc1e4(0x8d)](),'tableId':this['_tableId'],'formula':String(((_0x83fd86=_0x1ffd98[_0x4fc1e4(0x19c)])==null||(_0x83fd86=_0x83fd86[_0x4fc1e4(0x1d7)])==null?void 0x0:_0x83fd86['formula'])??'')});if(!_0x444b66['valid'])throw Error(_0x444b66[_0x4fc1e4(0xe7)]??_0x4fc1e4(0x12e));if(_0x1ffd98[_0x4fc1e4(0x16b)]['length']>0x0&&!this[_0x4fc1e4(0x121)]['syncExecuteCommand'](_0x5d1890['id'],{'unitId':this[_0x4fc1e4(0x10d)][_0x4fc1e4(0x8d)](),'references':_0x1ffd98[_0x4fc1e4(0x16b)]}))throw Error(_0x4fc1e4(0xff)+_0x694acf+'\x22');}[_0x3b2f37(0x8a)](){const _0x4c8ae1=_0x3b2f37;return this[_0x4c8ae1(0x90)]()[_0x4c8ae1(0x1c6)](_0x5e685e=>this[_0x4c8ae1(0x1a6)]['createInstance'](Y,this[_0x4c8ae1(0x10d)],this,_0x5e685e,this['_injector']));}[_0x3b2f37(0x189)](_0x453365){const _0x2fb2aa=_0x3b2f37;return this[_0x2fb2aa(0xf0)]()[_0x2fb2aa(0x193)][_0x453365]?this[_0x2fb2aa(0x1a6)][_0x2fb2aa(0xdb)](Y,this[_0x2fb2aa(0x10d)],this,_0x453365,this[_0x2fb2aa(0x1a6)]):null;}[_0x3b2f37(0x18f)](_0xe36e80={}){const _0x51e277=_0x3b2f37;let _0x9102bc=this['_getTable'](),_0x324015=this[_0x51e277(0x90)](_0xe36e80),_0x3ae0b6=Math[_0x51e277(0xc9)](0x0,_0xe36e80[_0x51e277(0x16a)]??0x0),_0x488ad0=_0xe36e80[_0x51e277(0x165)]==null?null:Math[_0x51e277(0xc9)](0x0,_0xe36e80[_0x51e277(0x165)]),_0x5198bd=yt(_0x324015['map'](_0x2a4ae9=>_0x9102bc[_0x51e277(0x193)][_0x2a4ae9])[_0x51e277(0x120)](_0x296dec=>xt(_0x296dec,_0x9102bc,_0xe36e80[_0x51e277(0x120)])),_0x9102bc,_0xe36e80['sort']);return{'records':vt(_0x5198bd,_0xe36e80)['map'](_0x1c6552=>this[_0x51e277(0x1a6)][_0x51e277(0xdb)](Y,this[_0x51e277(0x10d)],this,_0x1c6552['id'],this[_0x51e277(0x1a6)])),'total':_0x5198bd['length'],'offset':_0x3ae0b6,'limit':_0x488ad0,'hasMore':_0x488ad0!=null&&_0x3ae0b6+_0x488ad0<_0x5198bd['length']};}['addRecord'](_0x19bab,_0x2637dd='id',_0x524616){const _0x27565e=_0x3b2f37;let _0x3ba4f7=this[_0x27565e(0xf0)](),_0x5d2ab4=Date['now'](),_0x478eb6={..._0x524616,'id':_0x2ea005(0x6),'values':H(_0x3ba4f7,_0x19bab,_0x2637dd),'orderKey':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0xcd)])||''+_0x5d2ab4,'createdAt':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0xef)])||_0x5d2ab4,'updatedAt':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0x82)])||_0x5d2ab4};if(!this[_0x27565e(0x121)][_0x27565e(0x17e)](_0x1193c8['id'],{'unitId':this[_0x27565e(0x10d)][_0x27565e(0x8d)](),'tableId':this[_0x27565e(0xe2)],'record':_0x478eb6,'source':_0x4d5524['Facade']}))throw Error(_0x27565e(0x159)+_0x478eb6['id']+'\x22');return this[_0x27565e(0x1a6)][_0x27565e(0xdb)](Y,this[_0x27565e(0x10d)],this,_0x478eb6['id'],this[_0x27565e(0x1a6)]);}[_0x3b2f37(0x103)](_0x2722f2){const _0x37ce7d=_0x3b2f37;if(!_0x2722f2[_0x37ce7d(0x17b)])return[];let _0x2c5f93=this[_0x37ce7d(0xf0)](),_0x47d7f8=Date[_0x37ce7d(0x17a)](),_0x1e3bc2=_0x2722f2['map']((_0xa4f8c7,_0x12f69d)=>{const _0x3e2cc5=_0x37ce7d;var _0x26f5c4,_0x3bc2c1,_0x127232;return{..._0xa4f8c7[_0x3e2cc5(0x9b)],'id':_0x2ea005(0x6),'values':H(_0x2c5f93,_0xa4f8c7[_0x3e2cc5(0x1bc)],_0xa4f8c7[_0x3e2cc5(0x10f)]??'id'),'orderKey':((_0x26f5c4=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x26f5c4[_0x3e2cc5(0xcd)])||''+(_0x47d7f8+_0x12f69d),'createdAt':((_0x3bc2c1=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x3bc2c1[_0x3e2cc5(0xef)])||_0x47d7f8,'updatedAt':((_0x127232=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x127232[_0x3e2cc5(0x82)])||_0x47d7f8};});if(!this[_0x37ce7d(0x121)][_0x37ce7d(0x17e)](_0xcf9f8c['id'],{'unitId':this[_0x37ce7d(0x10d)][_0x37ce7d(0x8d)](),'tableId':this['_tableId'],'records':_0x1e3bc2,'source':_0x4d5524[_0x37ce7d(0xce)]}))throw Error(_0x37ce7d(0x97));return _0x1e3bc2[_0x37ce7d(0x1c6)](_0xbb0a43=>this[_0x37ce7d(0x1a6)][_0x37ce7d(0xdb)](Y,this[_0x37ce7d(0x10d)],this,_0xbb0a43['id'],this[_0x37ce7d(0x1a6)]));}[_0x3b2f37(0x18d)](_0x4668b7){const _0x42ed34=_0x3b2f37;return!_0x4668b7[_0x42ed34(0x17b)]||this['_commandService']['syncExecuteCommand'](_0x5a7920['id'],{'unitId':this[_0x42ed34(0x10d)][_0x42ed34(0x8d)](),'tableId':this[_0x42ed34(0xe2)],'recordIds':_0x4668b7,'source':_0x4d5524[_0x42ed34(0xce)]});}[_0x3b2f37(0x13d)](_0x2c3dbd,_0x25d4de,_0x5944e3=0x1,_0x316243=0x1){const _0x1d1289=_0x3b2f37;return this[_0x1d1289(0x1a6)]['createInstance'](K,this[_0x1d1289(0x10d)],this,{'startRow':_0x2c3dbd,'endRow':_0x2c3dbd+_0x5944e3-0x1,'startColumn':_0x25d4de,'endColumn':_0x25d4de+_0x316243-0x1},this[_0x1d1289(0x1a6)]);}[_0x3b2f37(0xa4)](){const _0x135c64=_0x3b2f37;var _0x45a8fe;let _0x1735a6=_0x81619(this[_0x135c64(0xf0)]()),_0x397185=((_0x45a8fe=_0x1735a6[_0x135c64(0x96)])==null?void 0x0:_0x45a8fe[_0x135c64(0x17b)])??0x0,_0x5ba8f0=_0x1735a6[_0x135c64(0xfc)][_0x135c64(0x120)](_0x14893e=>V(_0x1735a6[_0x135c64(0xb4)][_0x14893e]))[_0x135c64(0x17b)];return this[_0x135c64(0x13d)](0x0,0x0,Math[_0x135c64(0xc9)](_0x397185,0x1),Math[_0x135c64(0xc9)](_0x5ba8f0,0x1));}[_0x3b2f37(0xe9)](){const _0x37d0f7=_0x3b2f37;let _0x33847a=this[_0x37d0f7(0xf0)]();return _0x33847a[_0x37d0f7(0x11f)][_0x37d0f7(0x120)](_0x4a1cb6=>_0x33847a[_0x37d0f7(0xd3)][_0x4a1cb6])[_0x37d0f7(0x1c6)](_0x38e745=>this[_0x37d0f7(0x1a6)][_0x37d0f7(0xdb)](X,this[_0x37d0f7(0x10d)],this,_0x38e745,this[_0x37d0f7(0x1a6)]));}['getViewById'](_0x21b22e){const _0x124f1b=_0x3b2f37;return this['_getTable']()[_0x124f1b(0xd3)][_0x21b22e]?this[_0x124f1b(0x1a6)][_0x124f1b(0xdb)](X,this[_0x124f1b(0x10d)],this,_0x21b22e,this[_0x124f1b(0x1a6)]):null;}[_0x3b2f37(0x8b)](_0x269882){const _0x535037=_0x3b2f37;let _0xa84429=this[_0x535037(0xf0)](),_0x2e325a=Object[_0x535037(0x1bc)](_0xa84429[_0x535037(0xd3)])[_0x535037(0x179)](_0x2a3c3c=>_0x2a3c3c[_0x535037(0x1c2)]===_0x269882);return _0x2e325a?this[_0x535037(0x1a6)]['createInstance'](X,this[_0x535037(0x10d)],this,_0x2e325a['id'],this[_0x535037(0x1a6)]):null;}[_0x3b2f37(0x141)](_0x379997,_0x4255b6,_0x412d05){const _0xc54d8f=_0x3b2f37;var _0x55dba3,_0x372e00,_0x39b823,_0x5cd4cd;let _0x5a371a=this[_0xc54d8f(0xf0)](),_0x49a8c7=(_0x412d05==null||(_0x55dba3=_0x412d05[_0xc54d8f(0xfb)])==null?void 0x0:_0x55dba3['fieldOrder'])??_0x5a371a[_0xc54d8f(0xfc)],_0x4e01c9=[_0x3cb4f6,..._0x49a8c7['filter'](_0x3cd3ab=>V(_0x5a371a[_0xc54d8f(0xb4)][_0x3cd3ab]))],_0x4741f6={..._0x412d05==null?void 0x0:_0x412d05[_0xc54d8f(0xfb)],'id':_0x2ea005(0x6),'name':_0x379997,'type':_0x4255b6,'tableId':this[_0xc54d8f(0xe2)],'config':(_0x412d05==null||(_0x372e00=_0x412d05['view'])==null?void 0x0:_0x372e00[_0xc54d8f(0x1d7)])??{},'fieldOrder':_0x4e01c9,'fieldSettings':{..._0x412d05==null||(_0x39b823=_0x412d05[_0xc54d8f(0xfb)])==null?void 0x0:_0x39b823['fieldSettings'],[_0x3cb4f6]:{..._0x412d05==null||(_0x5cd4cd=_0x412d05['view'])==null||(_0x5cd4cd=_0x5cd4cd['fieldSettings'])==null?void 0x0:_0x5cd4cd[_0x3cb4f6],'hidden':!0x0}}};if(!this['_commandService'][_0xc54d8f(0x17e)](_0x1adb6d['id'],{'unitId':this[_0xc54d8f(0x10d)]['getId'](),'tableId':this[_0xc54d8f(0xe2)],'view':_0x4741f6,'index':_0x412d05==null?void 0x0:_0x412d05[_0xc54d8f(0x172)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x379997+'\x22');return this[_0xc54d8f(0x1a6)][_0xc54d8f(0xdb)](X,this['_base'],this,_0x4741f6['id'],this[_0xc54d8f(0x1a6)]);}[_0x3b2f37(0xed)](){const _0x546204=_0x3b2f37;let _0xb042b6=this[_0x546204(0xf0)](),_0x305e83=_0xb042b6[_0x546204(0xfc)][_0x546204(0x120)](_0x5eb66b=>V(_0xb042b6[_0x546204(0xb4)][_0x5eb66b])),_0x35fe98=_0xb042b6[_0x546204(0x11f)][_0x546204(0x120)](_0x50f46b=>_0xb042b6[_0x546204(0xd3)][_0x50f46b]);return{'id':_0xb042b6['id'],'name':_0xb042b6[_0x546204(0x1c2)],'formulaName':this[_0x546204(0xcc)](),'primaryFieldId':_0xb042b6[_0x546204(0x92)],'fieldIds':_0x305e83,'viewIds':_0x35fe98,'recordCount':this['_resolveRecordIds']()['length'],'fields':_0x305e83[_0x546204(0x1c6)](_0x2bc53e=>{const _0x403ffe=_0x546204;let _0x21cba2=_0xb042b6[_0x403ffe(0xb4)][_0x2bc53e];return{'id':_0x21cba2['id'],'name':_0x21cba2[_0x403ffe(0x1c2)],'type':_0x21cba2[_0x403ffe(0xa2)],'config':_0x21cba2[_0x403ffe(0x1d7)],'readonly':_0x21cba2[_0x403ffe(0x147)],'description':_0x21cba2[_0x403ffe(0xd2)]};}),'views':_0x35fe98[_0x546204(0x1c6)](_0x2bd7d8=>{const _0x42b3b0=_0x546204;let _0x4f700a=_0xb042b6['views'][_0x2bd7d8];return{'id':_0x4f700a['id'],'name':_0x4f700a[_0x42b3b0(0x1c2)],'type':_0x4f700a[_0x42b3b0(0xa2)]};})};}[_0x3b2f37(0xf0)](){const _0xf35cb=_0x3b2f37;let _0x511aa5=this['_base'][_0xf35cb(0x10a)]()[_0xf35cb(0xb5)]()[_0xf35cb(0x1c0)][this[_0xf35cb(0xe2)]];if(!_0x511aa5)throw Error(_0xf35cb(0xc5)+this[_0xf35cb(0xe2)]+_0xf35cb(0x102));return _0x511aa5;}[_0x3b2f37(0x90)](_0x25bd5b={}){const _0x2261e7=_0x3b2f37;let _0x1bfa88=this[_0x2261e7(0x10d)]['getBase']()['getSnapshot'](),_0x1f81a2=this[_0x2261e7(0xf0)]();if(_0x25bd5b['viewId']){let _0x2b3e1a=this[_0x2261e7(0x152)][_0x2261e7(0xe0)](_0x1bfa88,this[_0x2261e7(0xe2)],_0x25bd5b[_0x2261e7(0x11e)]);if(_0x2261e7(0x184)in _0x2b3e1a&&Array[_0x2261e7(0x1ae)](_0x2b3e1a[_0x2261e7(0x184)]))return _0x2b3e1a[_0x2261e7(0x184)][_0x2261e7(0x1c6)](_0x2f766a=>_0x2f766a[_0x2261e7(0x87)]);}return(_0x1f81a2[_0x2261e7(0x96)]?_0x1f81a2['recordOrder'][_0x2261e7(0x1c6)](_0x586135=>_0x1f81a2[_0x2261e7(0x193)][_0x586135]):Object[_0x2261e7(0x1bc)](_0x1f81a2['records'])[_0x2261e7(0x89)]((_0xc7b44d,_0x22eceb)=>_0xc7b44d[_0x2261e7(0xcd)]['localeCompare'](_0x22eceb['orderKey'])))[_0x2261e7(0x120)](_0x5e4380=>_0x5e4380)[_0x2261e7(0x1c6)](_0x3b85a4=>_0x3b85a4['id']);}};Z=z([R(0x3,_0x3fc5b1),R(0x4,_0x376f49),R(0x5,_0x1cb7d5)],Z);function vt(_0x23b60f,_0x1a87ea){const _0xb3cb48=_0x3b2f37;let _0x4132ef=Math[_0xb3cb48(0xc9)](0x0,_0x1a87ea[_0xb3cb48(0x16a)]??0x0);return _0x1a87ea[_0xb3cb48(0x165)]==null?_0x23b60f[_0xb3cb48(0xea)](_0x4132ef):_0x23b60f[_0xb3cb48(0xea)](_0x4132ef,_0x4132ef+Math[_0xb3cb48(0xc9)](0x0,_0x1a87ea[_0xb3cb48(0x165)]));}function yt(_0x54b207,_0x247fe8,_0x382ab9=[]){const _0x43efdd=_0x3b2f37;return _0x382ab9[_0x43efdd(0x17b)]?[..._0x54b207][_0x43efdd(0x89)]((_0x12fbb1,_0x271ff8)=>{const _0x406a20=_0x43efdd;for(let _0x5c6f08 of _0x382ab9){var _0x2f3bb2;let _0x370ddc=_0x5c6f08[_0x406a20(0x1d0)]===_0x23c723[_0x406a20(0x1a4)]?-0x1:0x1,_0x58571f=bt(_0x12fbb1[_0x406a20(0x1bc)][_0x5c6f08[_0x406a20(0x125)]],_0x271ff8[_0x406a20(0x1bc)][_0x5c6f08['fieldId']],(_0x2f3bb2=_0x247fe8[_0x406a20(0xb4)][_0x5c6f08[_0x406a20(0x125)]])==null?void 0x0:_0x2f3bb2[_0x406a20(0xa2)]);if(_0x58571f!==0x0)return _0x58571f*_0x370ddc;}return String(_0x12fbb1[_0x406a20(0xcd)]??_0x12fbb1['id'])[_0x406a20(0x1e4)](String(_0x271ff8['orderKey']??_0x271ff8['id']));}):_0x54b207;}function bt(_0x2ba1d9,_0xfd2fac,_0x36aa1c){const _0x14022e=_0x3b2f37;return _0x2ba1d9==null&&_0xfd2fac==null?0x0:_0x2ba1d9==null?-0x1:_0xfd2fac==null?0x1:typeof _0x2ba1d9=='number'&&typeof _0xfd2fac==_0x14022e(0xab)?_0x2ba1d9-_0xfd2fac:_0x36aa1c===_0x268b7f[_0x14022e(0x11d)]?Number(_0x2ba1d9)-Number(_0xfd2fac):String(_0x2ba1d9)[_0x14022e(0x1e4)](String(_0xfd2fac));}function xt(_0x19f2aa,_0x30c131,_0x4988a4){const _0x13229f=_0x3b2f37;var _0xcd61b3;if(!_0x4988a4||!((_0xcd61b3=_0x4988a4['conditions'])!=null&&_0xcd61b3[_0x13229f(0x17b)]))return!0x0;let {conjunction:_0x34397b=_0x29b07b['OR'],conditions:_0x5b096b}=_0x4988a4;return _0x34397b===_0x29b07b[_0x13229f(0xee)]&&_0x5b096b[_0x13229f(0x17b)]>0x1?_0x5b096b[_0x13229f(0x164)](_0x565573=>St(_0x19f2aa,_0x30c131,_0x565573)):_0x5b096b['some'](_0x2991c3=>St(_0x19f2aa,_0x30c131,_0x2991c3));}function St(_0x5848eb,_0x2d072e,_0x5a762d){const _0x2fc6b2=_0x3b2f37;let _0x3ed4=_0x5848eb['values'][_0x5a762d[_0x2fc6b2(0x125)]],_0x2ff59c=_0x2d072e[_0x2fc6b2(0xb4)][_0x5a762d[_0x2fc6b2(0x125)]];if(Ct(_0x5a762d)){let _0x19a6a8=wt(_0x5a762d)['test'](String(_0x3ed4??''));return _0x5a762d['operator']===_0x2fc6b2(0xba)?_0x19a6a8:!_0x19a6a8;}return!_0x2ff59c||_0x5ec685(_0x3ed4,_0x5a762d[_0x2fc6b2(0xe1)],_0x5a762d[_0x2fc6b2(0x80)],_0x2ff59c);}function Ct(_0x16dac4){const _0x19d762=_0x3b2f37;return _0x16dac4[_0x19d762(0xe1)]===_0x19d762(0xba)||_0x16dac4['operator']===_0x19d762(0x130);}function wt(_0x1b0d81){const _0x2bdba0=_0x3b2f37;let _0x3f95c=String(_0x1b0d81['value']??'');if(_0x3f95c[_0x2bdba0(0x17b)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x3f95c,_0x1b0d81[_0x2bdba0(0x1b0)]?void 0x0:'i');}catch(_0x49d2af){throw Error(_0x2bdba0(0x197)+_0x3f95c+'.\x20'+(_0x49d2af instanceof Error?_0x49d2af['message']:String(_0x49d2af)));}}function Tt(_0x1b1b85,_0x39ce55,_0x42617f){const _0x3b5006=_0x3b2f37;if(_0x42617f[_0x3b5006(0xa2)]!==_0x3b5006(0x9e)&&_0x42617f[_0x3b5006(0xa2)]!==_0x3b5006(0xc7)){var _0x88d1a4;if(_0x42617f[_0x3b5006(0xa2)]===_0x5b008e[_0x3b5006(0x18e)]){var _0x435637;let _0x1dcb1b=[((_0x435637=_0x42617f[_0x3b5006(0xb4)])==null||(_0x435637=_0x435637[0x0])==null?void 0x0:_0x435637['id'])??_0x1b1b85['primaryFieldId'],..._0x42617f[_0x3b5006(0x17d)]??[]];return Array[_0x3b5006(0x1e0)](new Set(_0x1dcb1b[_0x3b5006(0x120)](_0x464f33=>!!_0x1b1b85[_0x3b5006(0xb4)][_0x464f33])));}if((_0x88d1a4=_0x42617f[_0x3b5006(0xb4)])!=null&&_0x88d1a4['length'])return _0x42617f['fields'][_0x3b5006(0x1c6)](_0x20c921=>_0x20c921['id'])[_0x3b5006(0x120)](_0x48a91f=>{const _0x54e19b=_0x3b5006;var _0x45b187;return!(!_0x1b1b85[_0x54e19b(0xb4)][_0x48a91f]||_0x39ce55!=null&&(_0x45b187=_0x39ce55[_0x54e19b(0x1b7)])!=null&&(_0x45b187=_0x45b187[_0x48a91f])!=null&&_0x45b187['hidden']);});}return _0x1b1b85['fieldOrder'][_0x3b5006(0x120)](_0x3e8e1f=>{const _0x2eebf3=_0x3b5006;var _0x2c0f89;return!(!_0x1b1b85['fields'][_0x3e8e1f]||_0x39ce55!=null&&(_0x2c0f89=_0x39ce55[_0x2eebf3(0x1b7)])!=null&&(_0x2c0f89=_0x2c0f89[_0x3e8e1f])!=null&&_0x2c0f89[_0x2eebf3(0xa5)]);});}let Q=class extends _0x30c594['FBase']{constructor(_0x59a945,_0x4b8ca6,_0x47528c,_0x32ddc5,_0x3a1130){const _0x509475=_0x3b2f37;super(),this['_base']=_0x59a945,this[_0x509475(0x1a6)]=_0x4b8ca6,this['_resourceLoaderService']=_0x47528c,this[_0x509475(0x121)]=_0x32ddc5,this[_0x509475(0x199)]=_0x3a1130;}[_0x3b2f37(0x10a)](){const _0x26b40c=_0x3b2f37;return this[_0x26b40c(0x10d)];}[_0x3b2f37(0x8d)](){const _0x564acd=_0x3b2f37;return this[_0x564acd(0x10d)]['getUnitId']();}[_0x3b2f37(0x1b1)](){const _0x6ade66=_0x3b2f37;return new at(this[_0x6ade66(0x8d)](),this['_commandService'],this[_0x6ade66(0x199)]);}['save'](){const _0x1570b7=_0x3b2f37;return this[_0x1570b7(0x124)][_0x1570b7(0x16f)](this[_0x1570b7(0x8d)]())??_0x36fd3d[_0x1570b7(0xc8)](this[_0x1570b7(0x10d)][_0x1570b7(0xb5)]());}[_0x3b2f37(0x19a)](){const _0x1b385b=_0x3b2f37;return this[_0x1b385b(0x10d)][_0x1b385b(0xb5)]()[_0x1b385b(0x1c2)];}['setName'](_0x8a8951){const _0x5c94cd=_0x3b2f37;this[_0x5c94cd(0x121)]['syncExecuteCommand'](_0x8afdd0['id'],{'unitId':this[_0x5c94cd(0x8d)](),'name':_0x8a8951});}[_0x3b2f37(0x1bf)](){const _0x1bd2bc=_0x3b2f37;let _0x151417=this['_base'][_0x1bd2bc(0xb5)]();return _0x151417[_0x1bd2bc(0xb8)][_0x1bd2bc(0x1c6)](_0x398709=>_0x151417[_0x1bd2bc(0x1c0)][_0x398709])[_0x1bd2bc(0x120)](_0x4816b1=>_0x4816b1)[_0x1bd2bc(0x1c6)](_0x3b0bfe=>this[_0x1bd2bc(0x1a6)]['createInstance'](Z,this,_0x3b0bfe['id'],this[_0x1bd2bc(0x1a6)]));}['getTableById'](_0xa69c92){const _0x38f37e=_0x3b2f37;let _0x27563e=this['_base'][_0x38f37e(0xb5)]()[_0x38f37e(0x1c0)][_0xa69c92];return _0x27563e?this[_0x38f37e(0x1a6)]['createInstance'](Z,this,_0x27563e['id'],this['_injector']):null;}[_0x3b2f37(0x15d)](_0x4e3166){const _0x451f90=_0x3b2f37;let _0x4ef96b=this[_0x451f90(0x10d)][_0x451f90(0xb5)](),_0x494bee=Object[_0x451f90(0x1bc)](_0x4ef96b[_0x451f90(0x1c0)])[_0x451f90(0x179)](_0x5a1043=>_0x5a1043[_0x451f90(0x1c2)]===_0x4e3166);return _0x494bee?this['_injector'][_0x451f90(0xdb)](Z,this,_0x494bee['id'],this[_0x451f90(0x1a6)]):null;}[_0x3b2f37(0x12a)](_0x40e9ad,_0x38aa9a){const _0x472df2=_0x3b2f37;let _0xcb710d=_0x5bad1c({'id':_0x2ea005(),'name':_0x40e9ad,..._0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x17c)],'primaryFieldName':_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x100)]}),_0x40af2a=_0x36fd3d[_0x472df2(0xfa)](_0xcb710d,(_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x17c)])??{}),_0x2105b3=_0x4a1245(this['_base'][_0x472df2(0xb5)](),_0x40af2a[_0x472df2(0x1c2)]);if(!_0x2105b3['valid'])throw Error(_0x472df2(0x1ad)+_0x40af2a[_0x472df2(0x1c2)]+_0x472df2(0x118)+_0x2d6c44+'\x20'+_0x2105b3[_0x472df2(0xe7)]);if(!this['_commandService'][_0x472df2(0x17e)](_0x36d876['id'],{'unitId':this['_base'][_0x472df2(0x132)](),'table':_0x40af2a,'index':_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x172)]}))throw Error(_0x472df2(0x176)+_0x40e9ad+'\x22.');return this[_0x472df2(0x1a6)]['createInstance'](Z,this,_0x40af2a['id'],this[_0x472df2(0x1a6)]);}[_0x3b2f37(0xd1)](_0x34e392){const _0x675c42=_0x3b2f37;let _0x4492c0=typeof _0x34e392==_0x675c42(0x12c)?_0x34e392:_0x34e392[_0x675c42(0x8d)]();if(!this['_commandService'][_0x675c42(0x17e)](_0x337224['id'],{'unitId':this['_base'][_0x675c42(0x132)](),'tableId':_0x4492c0}))throw Error(_0x675c42(0x19e)+_0x4492c0+'\x22.');return!0x0;}['duplicateTable'](_0xd42648,_0x2ed176){const _0x10989d=_0x3b2f37;let _0x1fc9a0=this[_0x10989d(0x10d)][_0x10989d(0xb5)](),_0xf5dd0a=typeof _0xd42648==_0x10989d(0x12c)?_0xd42648:_0xd42648[_0x10989d(0x8d)](),_0xe59fc9=_0x1fc9a0[_0x10989d(0x1c0)][_0xf5dd0a];if(!_0xe59fc9)throw Error(_0x10989d(0x13f)+_0xf5dd0a+_0x10989d(0x102));let _0x4ced53=_0x1fc9a0[_0x10989d(0xb8)][_0x10989d(0x83)](_0xf5dd0a)+0x1,_0x170ea2=_0x2ea005(),_0x273389=_0x1343fb(_0xe59fc9,{'id':_0x170ea2,'name':_0x3b265e(_0x1fc9a0,_0xe59fc9[_0x10989d(0x1c2)]+'\x20Copy'),'includeRecords':(_0x2ed176==null?void 0x0:_0x2ed176['includeRecords'])??!0x1,'regenerateViewIds':(_0x2ed176==null?void 0x0:_0x2ed176['regenerateViewIds'])??!0x1});if(!this[_0x10989d(0x121)][_0x10989d(0x17e)](_0x36d876['id'],{'unitId':this[_0x10989d(0x10d)][_0x10989d(0x132)](),'table':_0x273389,'index':_0x4ced53}))throw Error(_0x10989d(0xd8)+_0xf5dd0a+'\x22.');return this[_0x10989d(0x1a6)][_0x10989d(0xdb)](Z,this,_0x273389['id'],this['_injector']);}[_0x3b2f37(0xed)](){const _0x1366cd=_0x3b2f37;let _0x172f6b=this[_0x1366cd(0x10d)][_0x1366cd(0xb5)]();return{'id':_0x172f6b['id'],'name':_0x172f6b[_0x1366cd(0x1c2)],'tables':this[_0x1366cd(0x1bf)]()[_0x1366cd(0x1c6)](_0x52b2cf=>_0x52b2cf[_0x1366cd(0xed)]())};}};Q=z([R(0x1,_0x5abbd7(_0x4b43b6)),R(0x2,_0x183c06),R(0x3,_0x3fc5b1),R(0x4,_0x376f49)],Q);var Et=class extends _0x4602a3{[_0x3b2f37(0x136)](){const _0x1abc2c=_0x3b2f37;this['_initBaseBeforeEvents'](),this[_0x1abc2c(0xda)]();}[_0x3b2f37(0x139)](_0x209a45={},_0x59616f){const _0x3557da=_0x3b2f37;let _0x2159c5=this[_0x3557da(0x1d5)]['createUnit'](_0xbc8b5a[_0x3557da(0xd6)],_0x209a45,_0x59616f);return this[_0x3557da(0x1a6)]['createInstance'](Q,_0x2159c5);}[_0x3b2f37(0xa6)](){const _0x4350c4=_0x3b2f37;let _0x3fe7d0=this[_0x4350c4(0x1d5)][_0x4350c4(0x181)](_0xbc8b5a['UNIVER_BASE']);return _0x3fe7d0?this[_0x4350c4(0x1a6)][_0x4350c4(0xdb)](Q,_0x3fe7d0):null;}[_0x3b2f37(0x10a)](_0x375001){const _0x45bf18=_0x3b2f37;let _0x3e278a=this[_0x45bf18(0x1d5)][_0x45bf18(0x13c)](_0x375001,_0xbc8b5a[_0x45bf18(0xd6)]);return _0x3e278a?this[_0x45bf18(0x1a6)][_0x45bf18(0xdb)](Q,_0x3e278a):null;}['getBases'](){const _0x28dd88=_0x3b2f37;return this[_0x28dd88(0x1d5)][_0x28dd88(0x93)](_0xbc8b5a[_0x28dd88(0xd6)])[_0x28dd88(0x1c6)](_0xfe1657=>this['_injector'][_0x28dd88(0xdb)](Q,_0xfe1657));}[_0x3b2f37(0xda)](){const _0x38fe1a=_0x3b2f37;this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x15c)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)]((_0x54cc05,_0x1fc798)=>{const _0x128e6e=_0x38fe1a;var _0x2520ca;if(!$(_0x54cc05,_0x34855e))return;let _0x44f430=_0x54cc05['params'];if(!((_0x2520ca=_0x44f430[_0x128e6e(0x19b)])!=null&&_0x2520ca[_0x128e6e(0x17b)]))return;let _0x3a3662=this['getBase'](_0x44f430[_0x128e6e(0xdd)]),_0x3432fe=_0x3a3662==null?void 0x0:_0x3a3662['getTableById'](_0x44f430['hierarchyChanges'][0x0][_0x128e6e(0x157)]);if(!_0x3a3662||!_0x3432fe)return;let _0x319af1={'base':_0x3a3662,'table':_0x3432fe,'changes':_0x44f430[_0x128e6e(0x19b)],'source':_0x1fc798!=null&&_0x1fc798[_0x128e6e(0x98)]?_0x4d5524[_0x128e6e(0x177)]:_0x44f430[_0x128e6e(0x1c7)]??_0x4d5524['UI']};this[_0x128e6e(0x14f)](this[_0x128e6e(0x1ba)][_0x128e6e(0x15c)],_0x319af1);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0xca)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0x1e0567=>{const _0x125688=_0x38fe1a;if(_0x1e0567['id']!==_0x36d876['id'])return;let {unitId:_0x4f251f,table:_0x5497c6,index:_0x403e1e}=_0x1e0567['params'],_0x56b3ac=this['getBase'](_0x4f251f);if(!_0x56b3ac)return;let _0x4c5079={'base':_0x56b3ac,'table':_0x5497c6,'index':_0x403e1e};this[_0x125688(0x14f)](this[_0x125688(0x1ba)]['BaseTableCreated'],_0x4c5079);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x1ce)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0x38e548=>{const _0x5f0925=_0x38fe1a;if(_0x38e548['id']!==_0x174ba5['id'])return;let {unitId:_0x44bb22,tableId:_0x54b026,field:_0x21c44c,index:_0xc46240,viewIndexes:_0xb07430}=_0x38e548[_0x5f0925(0x192)],_0x8c246=this[_0x5f0925(0x10a)](_0x44bb22);if(!_0x8c246)return;let _0x197aa5=_0x8c246['getTableById'](_0x54b026);if(!_0x197aa5)return;let _0x20de7e={'base':_0x8c246,'table':_0x197aa5,'field':_0x21c44c,'index':_0xc46240,'viewIndexes':_0xb07430};this['fireEvent'](this[_0x5f0925(0x1ba)][_0x5f0925(0x1ce)],_0x20de7e);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x131)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0xc66bf9=>{const _0x409034=_0x38fe1a;if(_0xc66bf9['id']!==_0x1193c8['id']&&_0xc66bf9['id']!==_0xcf9f8c['id'])return;let _0x17755f=_0xc66bf9[_0x409034(0x192)],{unitId:_0x3c43ed,tableId:_0x10353d}=_0x17755f,_0x39d0b3=_0x17755f[_0x409034(0x193)]??[_0x17755f[_0x409034(0x9b)]],_0xc2b42=this['getBase'](_0x3c43ed);if(!_0xc2b42)return;let _0x38f1ba=_0xc2b42[_0x409034(0x151)](_0x10353d);if(!_0x38f1ba)return;let _0x4893f6={'base':_0xc2b42,'table':_0x38f1ba,'records':_0x39d0b3};this[_0x409034(0x14f)](this[_0x409034(0x1ba)][_0x409034(0x131)],_0x4893f6);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)]['BaseTableViewCreated'],()=>this['_commandService'][_0x38fe1a(0x9f)](_0x400a12=>{const _0x43e8df=_0x38fe1a;if(_0x400a12['id']!==_0x1adb6d['id'])return;let {unitId:_0x37d3bc,tableId:_0x54196d,view:_0x5d976d,index:_0x185f6b}=_0x400a12[_0x43e8df(0x192)],_0x11e2e2=this[_0x43e8df(0x10a)](_0x37d3bc);if(!_0x11e2e2)return;let _0x58eccd=_0x11e2e2[_0x43e8df(0x151)](_0x54196d);if(!_0x58eccd)return;let _0x1e1bb1={'base':_0x11e2e2,'table':_0x58eccd,'view':_0x5d976d,'index':_0x185f6b};this['fireEvent'](this['Event'][_0x43e8df(0xd5)],_0x1e1bb1);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x1df)],()=>this[_0x38fe1a(0x121)]['onCommandExecuted'](_0x24981d=>{const _0x4cc7bb=_0x38fe1a;if(_0x24981d['id']!==_0x1b0f5c['id'])return;let {unitId:_0x39cd8b,tableId:_0x17dde4,recordId:_0x3375cd,fieldId:_0x5934c4,value:_0x3b7c5f}=_0x24981d[_0x4cc7bb(0x192)],_0x72d78b=this[_0x4cc7bb(0x10a)](_0x39cd8b);if(!_0x72d78b)return;let _0x2f2dbf=_0x72d78b[_0x4cc7bb(0x151)](_0x17dde4);if(!_0x2f2dbf)return;let _0x3adeac=_0x2f2dbf[_0x4cc7bb(0x196)](_0x5934c4);if(!_0x3adeac)return;let _0x477dcf=_0x2f2dbf[_0x4cc7bb(0x189)](_0x3375cd);if(!_0x477dcf)return;let _0x5dcada={'base':_0x72d78b,'table':_0x2f2dbf,'field':_0x3adeac,'record':_0x477dcf,'value':_0x3b7c5f};this['fireEvent'](this['Event'][_0x4cc7bb(0x1df)],_0x5dcada);})));}[_0x3b2f37(0x115)](){const _0x4a5bd9=_0x3b2f37;this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this['Event'][_0x4a5bd9(0xa8)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x1b25ea=>{const _0x35133a=_0x4a5bd9;if($(_0x1b25ea,_0x46d1e8)){let {unitId:_0x5ad8f4,tableId:_0x3e8606,patches:_0x468361,source:_0x5661f1=_0x4d5524['UI']}=_0x1b25ea[_0x35133a(0x192)],_0x5c2983=this['_getHierarchyEventContext'](_0x5ad8f4,_0x3e8606);if(!_0x5c2983)return;this['_fireBeforeHierarchyChange'](_0x5c2983['base'],_0x5c2983[_0x35133a(0x17c)],_0x50df42(_0x5c2983[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x468361),_0x5661f1);return;}if($(_0x1b25ea,_0xa0c8e2)){let {unitId:_0x2a234d,tableId:_0x270dda,patches:_0x5eb168,source:_0x19c6ab=_0x4d5524['UI']}=_0x1b25ea['params'],_0x53dc3f=this[_0x35133a(0x1c8)](_0x2a234d,_0x270dda);if(!_0x53dc3f)return;let _0x267754=_0x53dc3f[_0x35133a(0x17c)]['getTable']();this[_0x35133a(0xb6)](_0x53dc3f[_0x35133a(0x18c)],_0x53dc3f[_0x35133a(0x17c)],_0x50df42(_0x267754,_0x55a4b7(_0x267754,_0x5eb168)),_0x19c6ab);return;}if($(_0x1b25ea,_0x1193c8)){let _0x574efc=_0x1b25ea['params'],_0x41f2ea=this[_0x35133a(0x1c8)](_0x574efc[_0x35133a(0xdd)],_0x574efc[_0x35133a(0x157)]);if(!_0x41f2ea)return;this[_0x35133a(0xb6)](_0x41f2ea[_0x35133a(0x18c)],_0x41f2ea['table'],_0x377fbc(_0x41f2ea[_0x35133a(0x17c)][_0x35133a(0xc2)](),[_0x574efc['record']]),_0x574efc[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0xcf9f8c)){let _0x1d5499=_0x1b25ea[_0x35133a(0x192)],_0x5fc66c=this['_getHierarchyEventContext'](_0x1d5499['unitId'],_0x1d5499['tableId']);if(!_0x5fc66c)return;this['_fireBeforeHierarchyChange'](_0x5fc66c[_0x35133a(0x18c)],_0x5fc66c[_0x35133a(0x17c)],_0x377fbc(_0x5fc66c[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x1d5499['records']),_0x1d5499[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x292c95)){let _0x3ee38=_0x1b25ea[_0x35133a(0x192)],_0x489678=this[_0x35133a(0x1c8)](_0x3ee38['unitId'],_0x3ee38[_0x35133a(0x157)]);if(!_0x489678)return;this[_0x35133a(0xb6)](_0x489678[_0x35133a(0x18c)],_0x489678[_0x35133a(0x17c)],_0x377fbc(_0x489678[_0x35133a(0x17c)][_0x35133a(0xc2)](),[_0x3ee38[_0x35133a(0x9b)]]),_0x3ee38[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0xd3c5c2)){let _0x5dad46=_0x1b25ea['params'],_0x3a1fc8=this[_0x35133a(0x1c8)](_0x5dad46['unitId'],_0x5dad46[_0x35133a(0x157)]);if(!_0x3a1fc8)return;let _0x1c1709=_0x3a1fc8[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x48c29f=_0x5dad46['fieldId']??_0x3bde75(_0x1c1709),_0x3c28ae=_0xfa6b82(_0x1c1709,_0x48c29f)['parentByRecordId'][_0x35133a(0x167)](_0x5dad46['recordId'])??null;this['_fireBeforeHierarchyChange'](_0x3a1fc8[_0x35133a(0x18c)],_0x3a1fc8['table'],[{'tableId':_0x5dad46[_0x35133a(0x157)],'fieldId':_0x48c29f,'recordId':_0x5dad46['recordId'],'oldParentRecordId':_0x3c28ae,'parentRecordId':_0x5dad46[_0x35133a(0xe3)]}],_0x5dad46[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x2a209d)){let _0x308922=_0x1b25ea[_0x35133a(0x192)],_0x85aa12=this[_0x35133a(0x1c8)](_0x308922[_0x35133a(0xdd)],_0x308922[_0x35133a(0x157)]);if(!_0x85aa12)return;let _0x5ced3a=_0x308922[_0x35133a(0x125)]??_0x3bde75(_0x85aa12[_0x35133a(0x17c)][_0x35133a(0xc2)]());this[_0x35133a(0xb6)](_0x85aa12[_0x35133a(0x18c)],_0x85aa12[_0x35133a(0x17c)],[{'tableId':_0x308922[_0x35133a(0x157)],'fieldId':_0x5ced3a,'recordId':_0x308922['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x308922['parentRecordId']}],_0x308922[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x6344c7)){let _0x17e6ab=_0x1b25ea['params'],_0x7a92ba=this[_0x35133a(0x1c8)](_0x17e6ab['unitId'],_0x17e6ab[_0x35133a(0x157)]);if(!_0x7a92ba)return;this[_0x35133a(0xb6)](_0x7a92ba[_0x35133a(0x18c)],_0x7a92ba['table'],_0xb2debb(_0x7a92ba['table'][_0x35133a(0xc2)](),[_0x17e6ab['recordId']]),_0x17e6ab[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x5a7920)){let _0x7fb82d=_0x1b25ea[_0x35133a(0x192)],_0x4d4d67=this[_0x35133a(0x1c8)](_0x7fb82d[_0x35133a(0xdd)],_0x7fb82d[_0x35133a(0x157)]);if(!_0x4d4d67)return;this[_0x35133a(0xb6)](_0x4d4d67[_0x35133a(0x18c)],_0x4d4d67[_0x35133a(0x17c)],_0xb2debb(_0x4d4d67[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x7fb82d[_0x35133a(0xde)]),_0x7fb82d[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if(!$(_0x1b25ea,_0x1b0f5c))return;let _0x5b905c=_0x1b25ea[_0x35133a(0x192)],_0x33e033=this[_0x35133a(0x1c8)](_0x5b905c[_0x35133a(0xdd)],_0x5b905c['tableId']);if(!_0x33e033)return;let _0x1db71a=_0x33e033[_0x35133a(0x17c)][_0x35133a(0xc2)]();if(!_0xdc3ff5(_0x1db71a)[_0x35133a(0x117)](_0x5b905c[_0x35133a(0x125)]))return;let _0x11f554=_0xfa6b82(_0x1db71a,_0x5b905c[_0x35133a(0x125)])['parentByRecordId'][_0x35133a(0x167)](_0x5b905c[_0x35133a(0x87)])??null,_0xe859be=_0xea2e53(_0x5b905c['value'])[0x0]??null;_0x11f554!==_0xe859be&&this[_0x35133a(0xb6)](_0x33e033['base'],_0x33e033['table'],[{'tableId':_0x5b905c['tableId'],'fieldId':_0x5b905c['fieldId'],'recordId':_0x5b905c[_0x35133a(0x87)],'oldParentRecordId':_0x11f554,'parentRecordId':_0xe859be}],_0x5b905c['source']??_0x4d5524['UI']);}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x1aa)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x1bb4a1=>{const _0x3033e0=_0x4a5bd9;if(_0x1bb4a1['id']!==_0x36d876['id'])return;let {unitId:_0x1760a9,table:_0x1d8ab0,index:_0x3b374c}=_0x1bb4a1['params'],_0x14dfd0=this['getBase'](_0x1760a9);if(!_0x14dfd0)return;let _0x5bc906={'base':_0x14dfd0,'table':_0x1d8ab0,'index':_0x3b374c};if(this[_0x3033e0(0x14f)](this['Event']['BeforeBaseTableCreate'],_0x5bc906),_0x5bc906[_0x3033e0(0x12b)])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x1a2)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x478830=>{const _0x2a6fee=_0x4a5bd9;if(_0x478830['id']!==_0x174ba5['id'])return;let {unitId:_0x18c7dd,tableId:_0x1f73ff,field:_0x448742,index:_0x2bdf5b,viewIndexes:_0x484848}=_0x478830[_0x2a6fee(0x192)],_0x24583d=this['getBase'](_0x18c7dd);if(!_0x24583d)return;let _0x432b30=_0x24583d[_0x2a6fee(0x151)](_0x1f73ff);if(!_0x432b30)return;let _0x5b2a4a={'base':_0x24583d,'table':_0x432b30,'field':_0x448742,'index':_0x2bdf5b,'viewIndexes':_0x484848};if(this[_0x2a6fee(0x14f)](this['Event'][_0x2a6fee(0x1a2)],_0x5b2a4a),_0x5b2a4a[_0x2a6fee(0x12b)])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x173)],()=>this['_commandService']['beforeCommandExecuted'](_0x1e3ace=>{const _0x263e97=_0x4a5bd9;if(_0x1e3ace['id']!==_0x1193c8['id']&&_0x1e3ace['id']!==_0xcf9f8c['id'])return;let _0x37017a=_0x1e3ace[_0x263e97(0x192)],{unitId:_0x121a1a,tableId:_0x54c2af}=_0x37017a,_0x4ad32d=_0x37017a['records']??[_0x37017a[_0x263e97(0x9b)]],_0xd13b92=this['getBase'](_0x121a1a);if(!_0xd13b92)return;let _0x58e8d7=_0xd13b92[_0x263e97(0x151)](_0x54c2af);if(!_0x58e8d7)return;let _0x18e700={'base':_0xd13b92,'table':_0x58e8d7,'records':_0x4ad32d};if(this[_0x263e97(0x14f)](this[_0x263e97(0x1ba)][_0x263e97(0x173)],_0x18e700),_0x18e700['cancel'])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this['Event'][_0x4a5bd9(0x8f)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x2605f6=>{const _0x105f43=_0x4a5bd9;if(_0x2605f6['id']!==_0x1adb6d['id'])return;let {unitId:_0xe2fc9,tableId:_0x2ac037,view:_0x53983e,index:_0x40b506}=_0x2605f6[_0x105f43(0x192)],_0x220170=this[_0x105f43(0x10a)](_0xe2fc9);if(!_0x220170)return;let _0x3319c8=_0x220170[_0x105f43(0x151)](_0x2ac037);if(!_0x3319c8)return;let _0x4c3cef={'base':_0x220170,'table':_0x3319c8,'view':_0x53983e,'index':_0x40b506};if(this['fireEvent'](this[_0x105f43(0x1ba)]['BeforeBaseTableViewCreate'],_0x4c3cef),_0x4c3cef['cancel'])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x122)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x2fb154=>{const _0x3742a9=_0x4a5bd9;if(_0x2fb154['id']!==_0x1b0f5c['id'])return;let {unitId:_0x51e91d,tableId:_0x4ca908,recordId:_0x5d9470,fieldId:_0x46ed6b,value:_0x370adb}=_0x2fb154[_0x3742a9(0x192)],_0x3f3d7a=this[_0x3742a9(0x10a)](_0x51e91d);if(!_0x3f3d7a)return;let _0x9923ae=_0x3f3d7a[_0x3742a9(0x151)](_0x4ca908);if(!_0x9923ae)return;let _0x25dd0a=_0x9923ae[_0x3742a9(0x196)](_0x46ed6b);if(!_0x25dd0a)return;let _0x28cb8a=_0x9923ae[_0x3742a9(0x189)](_0x5d9470);if(!_0x28cb8a)return;let _0x2b8e6c={'base':_0x3f3d7a,'table':_0x9923ae,'field':_0x25dd0a,'record':_0x28cb8a,'value':_0x370adb};if(this[_0x3742a9(0x14f)](this[_0x3742a9(0x1ba)]['BeforeBaseTableCellValueChange'],_0x2b8e6c),_0x2b8e6c[_0x3742a9(0x12b)])throw new _0x543b75();})));}[_0x3b2f37(0x1c8)](_0x1d9d16,_0x107dfd){const _0x44d604=_0x3b2f37;let _0x4d39dd=this[_0x44d604(0x10a)](_0x1d9d16),_0x50ce63=_0x4d39dd==null?void 0x0:_0x4d39dd[_0x44d604(0x151)](_0x107dfd);return _0x4d39dd&&_0x50ce63?{'base':_0x4d39dd,'table':_0x50ce63}:null;}[_0x3b2f37(0xb6)](_0x343fb4,_0x12df91,_0x341938,_0x371236){const _0xd6f883=_0x3b2f37;if(!_0x341938[_0xd6f883(0x17b)])return;let _0x4e5211={'base':_0x343fb4,'table':_0x12df91,'changes':_0x341938,'source':_0x371236};if(this[_0xd6f883(0x14f)](this[_0xd6f883(0x1ba)][_0xd6f883(0xa8)],_0x4e5211),_0x4e5211[_0xd6f883(0x12b)])throw new _0x543b75();}};function $(_0x3487d9,_0x3553b2){const _0x22f18e=_0x3b2f37;return _0x3487d9['id']===_0x3553b2['id']&&_0x3487d9[_0x22f18e(0x192)]!==void 0x0;}_0x4602a3[_0x3b2f37(0xa1)](Et);var Dt=class extends _0x544088{get[_0x3b2f37(0x174)](){return _0x268b7f;}get[_0x3b2f37(0x99)](){return _0x29b07b;}get[_0x3b2f37(0x144)](){return _0x547adc;}get[_0x3b2f37(0x16e)](){return ot;}get[_0x3b2f37(0x1c3)](){return _0x5b008e;}get[_0x3b2f37(0x1e5)](){return _0x2e83f1;}get[_0x3b2f37(0x1d6)](){return _0x5f5c3b;}get[_0x3b2f37(0x150)](){return _0x256a0d;}get[_0x3b2f37(0x10e)](){return _0x23c723;}get[_0x3b2f37(0x1cc)](){return _0x4d5524;}get[_0x3b2f37(0xa9)](){return _0x115291;}get[_0x3b2f37(0xfd)](){return _0x970749;}get[_0x3b2f37(0xcf)](){return _0x116087;}};_0x544088[_0x3b2f37(0xa1)](Dt);var Ot=class extends _0x529663{get['BaseTableCreated'](){const _0x1149f7=_0x3b2f37;return _0x1149f7(0xca);}get['BeforeBaseTableCreate'](){const _0x4a6f1a=_0x3b2f37;return _0x4a6f1a(0x1aa);}get[_0x3b2f37(0x1ce)](){return'BaseTableFieldCreated';}get[_0x3b2f37(0x1a2)](){const _0x5c7190=_0x3b2f37;return _0x5c7190(0x1a2);}get['BaseTableRecordCreated'](){const _0x3019c0=_0x3b2f37;return _0x3019c0(0x131);}get[_0x3b2f37(0x173)](){const _0x480aac=_0x3b2f37;return _0x480aac(0x173);}get['BaseTableViewCreated'](){const _0x188024=_0x3b2f37;return _0x188024(0xd5);}get[_0x3b2f37(0x8f)](){const _0x3d3b01=_0x3b2f37;return _0x3d3b01(0x8f);}get[_0x3b2f37(0x1df)](){return'BaseTableCellValueChanged';}get['BeforeBaseTableCellValueChange'](){const _0xa37d9f=_0x3b2f37;return _0xa37d9f(0x122);}get[_0x3b2f37(0x15c)](){const _0x1cc9ea=_0x3b2f37;return _0x1cc9ea(0x15c);}get['BeforeBaseHierarchyChange'](){return'BeforeBaseHierarchyChange';}};_0x529663[_0x3b2f37(0xa1)](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};
|