@univerjs-pro/bases 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +8 -8
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x6c183=_0x2b5a;(function(_0x5dd0cf,_0x519b5a){const _0x5e4642=_0x2b5a,_0x25dfc5=_0x5dd0cf();while(!![]){try{const _0x1a8f2d=parseInt(_0x5e4642(0x21c))/0x1*(parseInt(_0x5e4642(0x3ee))/0x2)+parseInt(_0x5e4642(0x1d9))/0x3*(parseInt(_0x5e4642(0x1b9))/0x4)+parseInt(_0x5e4642(0x266))/0x5*(parseInt(_0x5e4642(0x49b))/0x6)+-parseInt(_0x5e4642(0x1c2))/0x7+parseInt(_0x5e4642(0x2bd))/0x8+parseInt(_0x5e4642(0x202))/0x9+-parseInt(_0x5e4642(0x123))/0xa;if(_0x1a8f2d===_0x519b5a)break;else _0x25dfc5['push'](_0x25dfc5['shift']());}catch(_0x508c96){_0x25dfc5['push'](_0x25dfc5['shift']());}}}(_0x4376,0xb7fe8));import{BASE_RECORD_ID_FIELD_ID as _0x5a35e2,BaseConditionalColorOperator as _0x50d725,BaseConditionalColorTarget as _0x4b6a96,BaseConditionalDateMode as _0x2b5b2b,BaseDataModel as _0x351ad4,BaseFieldType as _0x3a044b,BaseFilterConjunction as _0x6d8219,BaseHierarchyInvalidReason as _0x5b4879,BaseRecordLinkRole as _0x4c2417,BaseSortDirection as _0x574bb1,BaseViewType as _0x3ece31,CellValueType as _0x4dac72,ColorKit as _0x4014bd,CommandType as _0x22977e,CustomCommandExecutionError as _0x5ea448,DateSystem as _0x5c27c9,DependentOn as _0x2beafb,Disposable as _0x3b0b2d,ErrorService as _0x35b5ff,ICommandService as _0x5daeb6,IConfigService as _0x2a3cb6,IPermissionService as _0x41b15f,IResourceManagerService as _0x3ca90e,IUndoRedoService as _0x5b9522,IUniverInstanceService as _0x24efe9,Inject as _0x490adb,Injector as _0x4f0ad3,JSON1 as _0x53fdae,JSONX as _0x39141f,ObjectMatrix as _0x47103a,ObjectPermissionRuleModel as _0x65b7b4,ObjectPermissionService as _0x14b422,Optional as _0x2f9a87,PermissionStatus as _0x16215e,Plugin as _0x5e5cdb,Tools as _0x4e3c3d,UniverInstanceType as _0x5c5c99,allocateBaseFormulaTableName as _0x2afbd2,assertBaseTableRecordIdentity as _0x37d535,createBaseFormulaTableNameMap as _0x160d60,createBaseRecordIdField as _0x96204b,createIdentifier as _0x2e8f64,dateKit as _0x509f61,excelDateTimeSerial as _0x36b37f,excelSerialToDateTime as _0x33b7e5,generateRandomId as _0x456020,getBaseFormulaTableName as _0x16f020,isBaseRecordIdFieldName as _0x771c24,isValidBaseRecordId as _0x7f3dc3,merge as _0x1bd132,nameCharacterCheck as _0x5cd2f5,numfmt as _0x3bb8d4,regexp as _0x481624,sequenceExecute as _0x170e9a,toDisposable as _0x1827e4,touchDependencies as _0x55f221}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x2612d7,IActiveDirtyManagerService as _0x403c63,RemoveSuperTableMutation as _0x371cf0,SetFormulaCalculationResultMutation as _0x3da161,SetSuperTableMutation as _0x2af977,SetTriggerFormulaCalculationStartMutation as _0x174b70,UniverProFormulaEnginePlugin as _0x16e087,refactorFormulaUnitQualifier as _0x2f992f}from'@univerjs-pro/engine-formula';import{UnitAction as _0x1aafeb,UnitObject as _0x3cf49a}from'@univerjs/protocol';import{UniverLicensePlugin as _0xa2587c}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0xd3ae6f}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0xdc8395,FormulaResultApplicationType as _0x1e8264}from'@univerjs/engine-formula';function N(_0x2be6a4){const _0x3b33cc=_0x2b5a;let _0x1e38c3=_0x2be6a4['config'][_0x3b33cc(0x334)],_0x13b7e8=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x376)],_0x3a3081=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x131)],_0x44dab3=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x201)],_0x2c23=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x1d4)];return typeof _0x1e38c3!=_0x3b33cc(0x425)||!_0x1e38c3||typeof _0x13b7e8!=_0x3b33cc(0x1cb)||_0x3a3081!==void 0x0&&(typeof _0x3a3081!=_0x3b33cc(0x425)||!_0x3a3081)||_0x2c23!==void 0x0&&_0x2c23!==_0x4c2417[_0x3b33cc(0x2e7)]||_0x44dab3!==void 0x0&&(!Array[_0x3b33cc(0x431)](_0x44dab3)||_0x44dab3[_0x3b33cc(0x185)](_0x455881=>typeof _0x455881!=_0x3b33cc(0x425)||!_0x455881)||new Set(_0x44dab3)[_0x3b33cc(0x15b)]!==_0x44dab3[_0x3b33cc(0x13c)])?null:{'targetTableId':_0x1e38c3,'multiple':_0x13b7e8,..._0x3a3081?{'displayFieldId':_0x3a3081}:{},..._0x44dab3?{'pickerFieldIds':[..._0x44dab3]}:{},..._0x2c23?{'relationRole':_0x2c23}:{}};}function Le(_0xc10ea9){const _0x4ec874=_0x2b5a;return typeof _0xc10ea9!=_0x4ec874(0x425)||_0xc10ea9===''?[]:_0xc10ea9[_0x4ec874(0x1c0)](',');}function Re(_0x347d0c){const _0x2d26c6=_0x2b5a;return Array[_0x2d26c6(0x1d5)](new Set(_0x347d0c))[_0x2d26c6(0x11a)](',');}function ze(_0x5696ef,_0x440a81){const _0x370117=_0x2b5a;if(typeof _0x5696ef!=_0x370117(0x425))return{'valid':!0x1,'reason':_0x370117(0x402)};if(_0x5696ef==='')return{'valid':!0x0};let _0x5a70d5=_0x5696ef[_0x370117(0x1c0)](',');return!_0x440a81&&_0x5a70d5[_0x370117(0x13c)]>0x1?{'valid':!0x1,'reason':_0x370117(0x221)}:_0x5a70d5['some'](_0x27e70e=>!_0x7f3dc3(_0x27e70e))||new Set(_0x5a70d5)[_0x370117(0x15b)]!==_0x5a70d5['length']||Re(_0x5a70d5)!==_0x5696ef?{'valid':!0x1,'reason':_0x370117(0x218)}:{'valid':!0x0};}function Be(_0x10c9cc,_0x60656){const _0x22913e=_0x2b5a;if(_0x60656['type']!==_0x3a044b[_0x22913e(0x3ac)])return{'valid':!0x0};let _0x46ac91=N(_0x60656),_0xe11b27=_0x46ac91?_0x10c9cc['tables'][_0x46ac91[_0x22913e(0x334)]]:void 0x0;if(!_0x46ac91||!_0xe11b27)return{'valid':!0x1,'reason':_0x22913e(0x20f)};let _0x547589=[..._0x46ac91[_0x22913e(0x131)]?[_0x46ac91[_0x22913e(0x131)]]:[],..._0x46ac91['pickerFieldIds']??[]][_0x22913e(0x392)](_0x2a652d=>{const _0xec2bb8=_0x22913e;let _0x519970=_0xe11b27['fields'][_0x2a652d];return!_0x519970||_0x519970['system']===!0x0||_0x519970[_0xec2bb8(0x20b)]===_0x3a044b[_0xec2bb8(0x22f)];});return _0x547589?{'valid':!0x1,'reason':_0x22913e(0x391)+_0x547589+_0x22913e(0x2e3)}:{'valid':!0x0};}function Ve(_0x8f341,_0x35fb1c,_0x525548,_0x2144f0={}){const _0xcf1a3f=_0x2b5a;let _0x5793f1=N(_0x35fb1c);if(_0x35fb1c[_0xcf1a3f(0x20b)]!==_0x3a044b[_0xcf1a3f(0x3ac)]||!_0x5793f1)return{'valid':!0x1,'reason':_0xcf1a3f(0x320)};let _0x3205e0=ze(_0x525548,_0x5793f1[_0xcf1a3f(0x376)]);if(!_0x3205e0[_0xcf1a3f(0x26e)]||_0x2144f0[_0xcf1a3f(0x40f)])return _0x3205e0;let _0x29ea12=_0x8f341[_0xcf1a3f(0x298)][_0x5793f1['targetTableId']];if(!_0x29ea12)return{'valid':!0x1,'reason':_0xcf1a3f(0x20f)};let _0x57b1de=Le(_0x525548)['find'](_0x24647d=>!_0x29ea12[_0xcf1a3f(0x258)][_0x24647d]);return _0x57b1de?{'valid':!0x1,'reason':_0xcf1a3f(0x19c)+_0x57b1de+_0xcf1a3f(0x2bf)}:{'valid':!0x0};}function He(_0x1314db,_0x55f5f8){const _0x21e246=_0x2b5a;return Object[_0x21e246(0x227)](_0x1314db['tables'])[_0x21e246(0x17a)](_0x245477=>Object['values'](_0x245477[_0x21e246(0x398)])[_0x21e246(0x17a)](_0x147b42=>{const _0x5b7c2f=_0x21e246;let _0x1b317e=_0x147b42['type']===_0x3a044b[_0x5b7c2f(0x3ac)]?N(_0x147b42):null;return(_0x1b317e==null?void 0x0:_0x1b317e[_0x5b7c2f(0x334)])===_0x55f5f8?[{'tableId':_0x245477['id'],'fieldId':_0x147b42['id']}]:[];}));}const Ue=0x5,We=_0x6c183(0x2ae);let Ge=function(_0x5d06f6){const _0x331c27=_0x6c183;return _0x5d06f6[_0x331c27(0x1f9)]=_0x331c27(0x48d),_0x5d06f6[_0x331c27(0x2f9)]=_0x331c27(0x281),_0x5d06f6['SelfParent']=_0x331c27(0x1a4),_0x5d06f6[_0x331c27(0x478)]=_0x331c27(0x3b4),_0x5d06f6['MaxDepth']=_0x331c27(0x138),_0x5d06f6['SortedView']='sortedView',_0x5d06f6;}({});var P=class extends Error{constructor(_0x477638,_0x327dc0='[BaseHierarchy]:\x20'+_0x477638){const _0x35c603=_0x6c183;super(_0x327dc0),this[_0x35c603(0x3c5)]=_0x477638,this[_0x35c603(0x2a3)]=_0x35c603(0x496);}};let Ke=function(_0x263430){const _0x7de001=_0x6c183;return _0x263430['UI']='ui',_0x263430['Facade']=_0x7de001(0x305),_0x263430[_0x7de001(0x238)]=_0x7de001(0x3bf),_0x263430[_0x7de001(0x45a)]=_0x7de001(0x23c),_0x263430[_0x7de001(0x378)]='redo',_0x263430['Import']='import',_0x263430;}({});function F(_0x4a2979,_0x55fc5f){const _0xd7ff25=_0x6c183;if(!_0x55fc5f)return!0x1;let _0x16198e=_0x4a2979['fields'][_0x55fc5f];if(!_0x16198e||_0x16198e[_0xd7ff25(0x20b)]!==_0x3a044b[_0xd7ff25(0x3ac)])return!0x1;let _0xbe98d7=N(_0x16198e);return _0xbe98d7?_0xbe98d7[_0xd7ff25(0x334)]===_0x4a2979['id']&&_0xbe98d7[_0xd7ff25(0x376)]===!0x1:!0x1;}function qe(_0x5ef973){const _0x168fdd=_0x6c183;return[..._0x5ef973[_0x168fdd(0x3b5)],...Object[_0x168fdd(0x24c)](_0x5ef973[_0x168fdd(0x398)])['filter'](_0xf415ff=>!_0x5ef973['fieldOrder'][_0x168fdd(0x16a)](_0xf415ff))['sort']()][_0x168fdd(0x392)](_0x4a810a=>{const _0x434d32=_0x168fdd;var _0xa2c394;return F(_0x5ef973,_0x4a810a)?((_0xa2c394=N(_0x5ef973['fields'][_0x4a810a]))==null?void 0x0:_0xa2c394[_0x434d32(0x1d4)])===_0x4c2417[_0x434d32(0x2e7)]:!0x1;})??null;}function Je(_0x4660b5){const _0x15659b=_0x6c183;let _0x4b8657=qe(_0x4660b5);if(_0x4b8657)return _0x4b8657;let _0x473ff2=We,_0x259b01=0x2;for(;_0x4660b5[_0x15659b(0x398)][_0x473ff2];)_0x473ff2=We+'_'+_0x259b01++;return _0x473ff2;}function Ye(_0x5da45a,_0x3eb4d7=Je(_0x5da45a),_0x6edad2='Parent\x20Items'){const _0x2da938=_0x6c183;return{'id':_0x3eb4d7,'name':_0x6edad2,'type':_0x3a044b['RecordLink'],'config':{'targetTableId':_0x5da45a['id'],'multiple':!0x1,'displayFieldId':_0x5da45a[_0x2da938(0x3b2)],'pickerFieldIds':[_0x5da45a[_0x2da938(0x3b2)]],'relationRole':_0x4c2417[_0x2da938(0x2e7)]}};}function Xe(_0x45dd57){let _0x178d53=qe(_0x45dd57);return _0x178d53?[_0x178d53]:[];}function Ze(_0x11e1d9,_0x24a7e0){const _0x583f79=_0x6c183;let _0x3471be=[...Xe(_0x11e1d9)][_0x583f79(0x2be)](_0x354ee4=>_0x24a7e0['some'](_0x4fab1a=>Object[_0x583f79(0x246)][_0x583f79(0x48a)]['call'](_0x4fab1a[_0x583f79(0x227)],_0x354ee4)));if(!_0x3471be[_0x583f79(0x13c)])return[];let _0x4744f9={..._0x11e1d9[_0x583f79(0x258)]};_0x24a7e0[_0x583f79(0x2e0)](_0xaa69ad=>{const _0x2d92b2=_0x583f79;let _0x4feb56=_0x4744f9[_0xaa69ad['recordId']];_0x4feb56&&(_0x4744f9[_0xaa69ad[_0x2d92b2(0x347)]]={..._0x4feb56,'values':{..._0x4feb56[_0x2d92b2(0x227)],..._0xaa69ad['values']}});});let _0x3786f9={..._0x11e1d9,'records':_0x4744f9},_0x300342=[];return _0x3471be[_0x583f79(0x2e0)](_0x320ee6=>{const _0x2732a4=_0x583f79;let _0x58e09c=tt(_0x11e1d9,_0x320ee6),_0x573d22=tt(_0x3786f9,_0x320ee6);for(let [_0x315c08,_0x26e935]of _0x573d22[_0x2732a4(0x3b6)]){let _0x3fd7ef=_0x24a7e0['some'](_0x4ab12a=>_0x4ab12a['recordId']===_0x315c08&&Object[_0x2732a4(0x246)]['hasOwnProperty'][_0x2732a4(0x43b)](_0x4ab12a[_0x2732a4(0x227)],_0x320ee6));if(_0x58e09c[_0x2732a4(0x3b6)]['get'](_0x315c08)!==_0x26e935||_0x3fd7ef)throw new P($e(_0x26e935));}_0x24a7e0[_0x2732a4(0x2e0)](_0xe62c9a=>{const _0x11d71e=_0x2732a4;if(!Object[_0x11d71e(0x246)][_0x11d71e(0x48a)][_0x11d71e(0x43b)](_0xe62c9a[_0x11d71e(0x227)],_0x320ee6))return;let _0x21486c=_0x58e09c['parentByRecordId'][_0x11d71e(0x43e)](_0xe62c9a[_0x11d71e(0x347)])??null,_0x4999ba=_0x573d22['parentByRecordId'][_0x11d71e(0x43e)](_0xe62c9a[_0x11d71e(0x347)])??null;_0x21486c!==_0x4999ba&&_0x300342[_0x11d71e(0x174)]({'tableId':_0x11e1d9['id'],'fieldId':_0x320ee6,'recordId':_0xe62c9a[_0x11d71e(0x347)],'oldParentRecordId':_0x21486c,'parentRecordId':_0x4999ba});});}),_0x300342;}function Qe(_0x477ecf,_0x2b3bd4){const _0x4fae7c=_0x6c183;let _0x10159d=_0x2b3bd4['map'](_0x3cb6b6=>_0x3cb6b6['id']);if(new Set(_0x10159d)[_0x4fae7c(0x15b)]!==_0x10159d[_0x4fae7c(0x13c)]||_0x10159d['some'](_0x2522c0=>_0x477ecf[_0x4fae7c(0x258)][_0x2522c0]))return[];let _0x341d83=Xe(_0x477ecf),_0x5891aa=_0x341d83[_0x4fae7c(0x13c)]?null:Je(_0x477ecf),_0x364808=[..._0x341d83,..._0x5891aa&&_0x2b3bd4['some'](_0x16f288=>Object['prototype'][_0x4fae7c(0x48a)][_0x4fae7c(0x43b)](_0x16f288[_0x4fae7c(0x227)],_0x5891aa))?[_0x5891aa]:[]][_0x4fae7c(0x2be)](_0x5462f1=>_0x2b3bd4['some'](_0x1555bf=>Object[_0x4fae7c(0x246)]['hasOwnProperty'][_0x4fae7c(0x43b)](_0x1555bf[_0x4fae7c(0x227)],_0x5462f1)));if(!_0x364808[_0x4fae7c(0x13c)])return[];let _0xd49a25={..._0x477ecf,'records':{..._0x477ecf[_0x4fae7c(0x258)],...Object[_0x4fae7c(0x176)](_0x2b3bd4[_0x4fae7c(0x141)](_0x7c001a=>[_0x7c001a['id'],_0x7c001a]))},'recordOrder':[..._0x477ecf[_0x4fae7c(0x1e7)]??[],..._0x2b3bd4[_0x4fae7c(0x141)](_0x26e737=>_0x26e737['id'])]},_0xdd8f05=[];return _0x364808[_0x4fae7c(0x2e0)](_0x25803e=>{const _0x2a59a2=_0x4fae7c;let _0xe16cd6=tt(_0xd49a25,_0x25803e);_0x2b3bd4[_0x2a59a2(0x2e0)](_0x5d03ec=>{const _0x160462=_0x2a59a2;let _0x5ec8e3=_0xe16cd6[_0x160462(0x3b6)][_0x160462(0x43e)](_0x5d03ec['id']);if(_0x5ec8e3)throw new P($e(_0x5ec8e3));let _0x21e5b9=_0xe16cd6[_0x160462(0x3b7)]['get'](_0x5d03ec['id'])??null;_0x21e5b9&&_0xdd8f05[_0x160462(0x174)]({'tableId':_0x477ecf['id'],'fieldId':_0x25803e,'recordId':_0x5d03ec['id'],'oldParentRecordId':null,'parentRecordId':_0x21e5b9});});}),_0xdd8f05;}function $e(_0x5ed22a){const _0x4e1b7e=_0x6c183;switch(_0x5ed22a){case _0x5b4879[_0x4e1b7e(0x23e)]:return'missingRecord';case _0x5b4879[_0x4e1b7e(0x40a)]:return'selfParent';case _0x5b4879['Cycle']:return _0x4e1b7e(0x3b4);case _0x5b4879[_0x4e1b7e(0x285)]:return _0x4e1b7e(0x138);}}function et(_0x58e3e3,_0x2c7ea0){const _0x483257=_0x6c183;let _0xa6adf5=new Set(_0x2c7ea0),_0x1de4ec=Xe(_0x58e3e3);return Object[_0x483257(0x227)](_0x58e3e3['records'])['flatMap'](_0x14cc6e=>_0xa6adf5[_0x483257(0x34b)](_0x14cc6e['id'])?[]:Array[_0x483257(0x1d5)](_0x1de4ec)[_0x483257(0x17a)](_0x54f19f=>{const _0xa3e947=_0x483257;let _0x1244ac=Le(_0x14cc6e[_0xa3e947(0x227)][_0x54f19f])[0x0]??null;return _0x1244ac&&_0xa6adf5[_0xa3e947(0x34b)](_0x1244ac)?[{'tableId':_0x58e3e3['id'],'fieldId':_0x54f19f,'recordId':_0x14cc6e['id'],'oldParentRecordId':_0x1244ac,'parentRecordId':null}]:[];}));}function tt(_0x41d7d8,_0x483118,_0x33c640=_0x41d7d8['recordOrder']??Object[_0x6c183(0x24c)](_0x41d7d8['records'])){const _0x346bcb=_0x6c183;if((_0x41d7d8[_0x346bcb(0x398)][_0x483118]||_0x483118!==Je(_0x41d7d8))&&!F(_0x41d7d8,_0x483118))throw Error(_0x346bcb(0x314)+_0x483118+'\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.');let _0x2bbcb0=at(_0x41d7d8,_0x33c640),_0xc30707=new Map(),_0x11c8af=new Map();for(let _0x15db2c of _0x2bbcb0){var _0xb2f5db;let _0x463046=Le((_0xb2f5db=_0x41d7d8[_0x346bcb(0x258)][_0x15db2c])==null?void 0x0:_0xb2f5db['values'][_0x483118])[0x0]??null;_0x463046?_0x463046===_0x15db2c?(_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null),_0x11c8af[_0x346bcb(0x49e)](_0x15db2c,_0x5b4879[_0x346bcb(0x40a)])):_0x41d7d8[_0x346bcb(0x258)][_0x463046]?_0xc30707[_0x346bcb(0x49e)](_0x15db2c,_0x463046):(_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null),_0x11c8af['set'](_0x15db2c,_0x5b4879[_0x346bcb(0x23e)])):_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null);}ot(_0xc30707,_0x11c8af,_0x2bbcb0),st(_0xc30707,_0x11c8af,_0x2bbcb0);let _0x22b52e=new Map(_0x2bbcb0[_0x346bcb(0x141)]((_0x3dd604,_0x1385c2)=>[_0x3dd604,_0x1385c2])),_0x434a87=new Map();for(let _0x5de3a3 of _0x2bbcb0){let _0x4b2a14=_0xc30707[_0x346bcb(0x43e)](_0x5de3a3)??null,_0x25cdb2=_0x434a87[_0x346bcb(0x43e)](_0x4b2a14)??[];_0x25cdb2[_0x346bcb(0x174)](_0x5de3a3),_0x434a87[_0x346bcb(0x49e)](_0x4b2a14,_0x25cdb2);}_0x434a87['forEach'](_0x57b9d5=>_0x57b9d5[_0x346bcb(0x277)]((_0x36361c,_0x2a5f60)=>(_0x22b52e[_0x346bcb(0x43e)](_0x36361c)??0x0)-(_0x22b52e[_0x346bcb(0x43e)](_0x2a5f60)??0x0)));let _0xb26df9=_0x434a87[_0x346bcb(0x43e)](null)??[],_0x5b5707=new Map(),_0x3dc7d5=new Map(),_0x9626da=[],_0x299ca8=(_0x5957ab,_0x2167b6)=>{const _0x4c04e3=_0x346bcb;_0x5b5707['set'](_0x5957ab,_0x2167b6),_0x9626da['push'](_0x5957ab);let _0x1174fc=0x0;for(let _0x503870 of _0x434a87['get'](_0x5957ab)??[])_0x1174fc=Math[_0x4c04e3(0x482)](_0x1174fc,0x1+_0x299ca8(_0x503870,_0x2167b6+0x1));return _0x3dc7d5['set'](_0x5957ab,_0x1174fc),_0x1174fc;};return _0xb26df9[_0x346bcb(0x2e0)](_0x29e837=>_0x299ca8(_0x29e837,0x0)),{'fieldId':_0x483118,'parentByRecordId':_0xc30707,'childrenByParentId':_0x434a87,'depthByRecordId':_0x5b5707,'subtreeHeightByRecordId':_0x3dc7d5,'invalidReasonByRecordId':_0x11c8af,'rootRecordIds':_0xb26df9,'orderedRecordIds':_0x9626da};}function nt(_0x381a07,_0x470cf7,_0x3892bd=new Set(_0x470cf7[_0x6c183(0x141)](_0x1253ea=>_0x1253ea[_0x6c183(0x347)]))){const _0x1f780e=_0x6c183;let _0x32d2a8=new Set(_0x3892bd);for(let _0x1f9f55 of _0x3892bd){let _0x1d2da5=_0x381a07[_0x1f780e(0x3b7)][_0x1f780e(0x43e)](_0x1f9f55)??null;for(;_0x1d2da5;)_0x32d2a8[_0x1f780e(0x2ee)](_0x1d2da5),_0x1d2da5=_0x381a07[_0x1f780e(0x3b7)][_0x1f780e(0x43e)](_0x1d2da5)??null;}let _0x21e345=new Map(_0x470cf7[_0x1f780e(0x141)](_0x490397=>[_0x490397[_0x1f780e(0x347)],_0x490397])),_0x351bbe=_0x381a07[_0x1f780e(0x3c3)][_0x1f780e(0x2be)](_0x1da6fc=>_0x32d2a8[_0x1f780e(0x34b)](_0x1da6fc)),_0x234e45=_0x351bbe['flatMap'](_0xe1492d=>{const _0x261797=_0x1f780e;let _0xb03461=_0x21e345[_0x261797(0x43e)](_0xe1492d);return _0xb03461?[_0xb03461]:[];}),_0x65e759={};for(let _0x3ad1a6=0x0;_0x3ad1a6<_0x351bbe[_0x1f780e(0x13c)];_0x3ad1a6++){let _0x336ba6=_0x351bbe[_0x3ad1a6];_0x65e759[_0x336ba6]={'recordId':_0x336ba6,'parentRecordId':_0x381a07[_0x1f780e(0x3b7)]['get'](_0x336ba6)??null,'depth':_0x381a07[_0x1f780e(0x273)][_0x1f780e(0x43e)](_0x336ba6)??0x0,'directChildCount':(_0x381a07[_0x1f780e(0x2c7)][_0x1f780e(0x43e)](_0x336ba6)??[])[_0x1f780e(0x13c)],'subtreeHeight':_0x381a07[_0x1f780e(0x146)][_0x1f780e(0x43e)](_0x336ba6)??0x0,'subtreeEndIndex':_0x3ad1a6,'invalidReason':_0x381a07['invalidReasonByRecordId'][_0x1f780e(0x43e)](_0x336ba6)};}let _0x5b7e1e=[];for(let _0xd987a5=0x0;_0xd987a5<_0x351bbe[_0x1f780e(0x13c)];_0xd987a5++){let _0x2edd0d=_0x351bbe[_0xd987a5],_0x3752ce=_0x65e759[_0x2edd0d]['depth'];for(;_0x5b7e1e[_0x1f780e(0x13c)]&&_0x5b7e1e[_0x5b7e1e[_0x1f780e(0x13c)]-0x1][_0x1f780e(0x3bd)]>=_0x3752ce;){let _0x2faae5=_0x5b7e1e[_0x1f780e(0x481)]();_0x65e759[_0x2faae5[_0x1f780e(0x347)]]['subtreeEndIndex']=_0xd987a5-0x1;}_0x5b7e1e['push']({'recordId':_0x2edd0d,'depth':_0x3752ce});}return _0x5b7e1e['forEach'](({recordId:_0x4c4faf})=>{const _0x33c6ed=_0x1f780e;_0x65e759[_0x4c4faf][_0x33c6ed(0x3fb)]=_0x351bbe[_0x33c6ed(0x13c)]-0x1;}),{'rows':_0x234e45,'hierarchy':{'fieldId':_0x381a07[_0x1f780e(0x2b0)],'rootRecordIds':_0x381a07[_0x1f780e(0x4ad)][_0x1f780e(0x2be)](_0x38b508=>_0x32d2a8[_0x1f780e(0x34b)](_0x38b508)),'orderedRecordIds':_0x351bbe,'nodes':_0x65e759}};}function rt(_0x475537,_0x59e3fa){const _0x4f03e9=_0x6c183;if(!_0x475537[_0x4f03e9(0x160)]||!(_0x59e3fa!=null&&_0x59e3fa['size']))return _0x475537[_0x4f03e9(0x2c5)];let _0x21d537=[],_0x50841b=0x0;for(;_0x50841b<_0x475537[_0x4f03e9(0x2c5)][_0x4f03e9(0x13c)];){let _0x51a4c4=_0x475537[_0x4f03e9(0x2c5)][_0x50841b];_0x21d537['push'](_0x51a4c4);let _0x52d34a=_0x475537[_0x4f03e9(0x160)][_0x4f03e9(0x2e4)][_0x51a4c4[_0x4f03e9(0x347)]];_0x50841b=_0x59e3fa[_0x4f03e9(0x34b)](_0x51a4c4[_0x4f03e9(0x347)])&&_0x52d34a?_0x52d34a['subtreeEndIndex']+0x1:_0x50841b+0x1;}return _0x21d537;}function it(_0x2aa3ab,_0x197172,_0x1f5a3a){const _0x3a2d7d=_0x6c183;if(!_0x1f5a3a)return{'valid':!0x0};if(_0x197172===_0x1f5a3a)return{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x40a)]};let _0x55be3c=_0x1f5a3a;for(;_0x55be3c;){if(_0x55be3c===_0x197172)return{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x478)]};_0x55be3c=_0x2aa3ab['parentByRecordId'][_0x3a2d7d(0x43e)](_0x55be3c)??null;}return(_0x2aa3ab['depthByRecordId'][_0x3a2d7d(0x43e)](_0x1f5a3a)??0x0)+0x1+(_0x2aa3ab[_0x3a2d7d(0x146)][_0x3a2d7d(0x43e)](_0x197172)??0x0)>=0x5?{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x285)]}:{'valid':!0x0};}function at(_0x431600,_0x3fb1b5){const _0x1c569d=_0x6c183;let _0xc92e69=new Set(),_0xacdf3d=[];for(let _0x5424e9 of _0x3fb1b5)_0x431600['records'][_0x5424e9]&&!_0xc92e69[_0x1c569d(0x34b)](_0x5424e9)&&(_0xc92e69[_0x1c569d(0x2ee)](_0x5424e9),_0xacdf3d[_0x1c569d(0x174)](_0x5424e9));return Object[_0x1c569d(0x24c)](_0x431600['records'])['sort']()[_0x1c569d(0x2e0)](_0x31e898=>{const _0x4370cb=_0x1c569d;_0xc92e69[_0x4370cb(0x34b)](_0x31e898)||_0xacdf3d[_0x4370cb(0x174)](_0x31e898);}),_0xacdf3d;}function ot(_0x2d3c46,_0x4692fb,_0xbc05d5){const _0xd17422=_0x6c183;let _0x1135c7=new Set();for(let _0x75b99d of _0xbc05d5){if(_0x1135c7['has'](_0x75b99d))continue;let _0x5f0873=[],_0x3b73f1=new Map(),_0x29d32b=_0x75b99d;for(;_0x29d32b&&!_0x1135c7[_0xd17422(0x34b)](_0x29d32b);){let _0x3df1ec=_0x3b73f1[_0xd17422(0x43e)](_0x29d32b);if(_0x3df1ec!=null){let _0x19dabc=[..._0x5f0873[_0xd17422(0x12c)](_0x3df1ec)][_0xd17422(0x277)]()[_0xd17422(0x481)]();_0x2d3c46[_0xd17422(0x49e)](_0x19dabc,null),_0x4692fb[_0xd17422(0x49e)](_0x19dabc,_0x5b4879['Cycle']);break;}_0x3b73f1[_0xd17422(0x49e)](_0x29d32b,_0x5f0873[_0xd17422(0x13c)]),_0x5f0873['push'](_0x29d32b),_0x29d32b=_0x2d3c46[_0xd17422(0x43e)](_0x29d32b)??null;}_0x5f0873['forEach'](_0x455f93=>_0x1135c7[_0xd17422(0x2ee)](_0x455f93));}}function st(_0x122e9f,_0x4fa300,_0xade768){const _0x4dd917=_0x6c183;let _0x4f8640=new Map(),_0x2c50e9=_0x8234d5=>{const _0x2e2056=_0x2b5a;let _0x397d49=_0x4f8640['get'](_0x8234d5);if(_0x397d49!=null)return _0x397d49;let _0x36081e=_0x122e9f['get'](_0x8234d5)??null;if(!_0x36081e)return _0x4f8640[_0x2e2056(0x49e)](_0x8234d5,0x0),0x0;let _0x2444cc=_0x2c50e9(_0x36081e)+0x1;return _0x2444cc>=0x5?(_0x122e9f[_0x2e2056(0x49e)](_0x8234d5,null),_0x4fa300['set'](_0x8234d5,_0x5b4879[_0x2e2056(0x285)]),_0x4f8640[_0x2e2056(0x49e)](_0x8234d5,0x0),0x0):(_0x4f8640['set'](_0x8234d5,_0x2444cc),_0x2444cc);};_0xade768[_0x4dd917(0x2e0)](_0x2c50e9);}let ct=0x0;function lt(){const _0x18b79c=_0x6c183;if(globalThis['__UNIVER_BASE_PERF__']===!0x0)return!0x0;try{let _0x3dfe9d=typeof location>'u'?'':location['search'],_0x2f0595=new URLSearchParams(_0x3dfe9d);if(_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2b6))==='1'||_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2b6))===_0x18b79c(0x269)||_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2e5))==='1')return!0x0;}catch{}try{let _0x556114=typeof localStorage>'u'?null:localStorage[_0x18b79c(0x4a2)](_0x18b79c(0x29a));return _0x556114==='1'||_0x556114===_0x18b79c(0x269);}catch{return!0x1;}}function I(_0x324efd,_0x4e870c,_0x51a978){const _0x50f4d9=_0x6c183;if(!lt())return _0x4e870c();let _0x6ef8b5=dt(),_0x4bfaaa='base-perf-'+ct++;ft(_0x4bfaaa+_0x50f4d9(0x3e6));try{return _0x4e870c();}finally{let _0x47c07b=dt()-_0x6ef8b5;ft(_0x4bfaaa+_0x50f4d9(0x4c6)),pt(_0x324efd,_0x4bfaaa+_0x50f4d9(0x3e6),_0x4bfaaa+':end'),ut(_0x324efd,_0x47c07b,_0x51a978);}}function ut(_0x3b6fed,_0x3fdc91,_0x74b852){const _0x21fc60=_0x6c183;if(!lt())return;let _0x5adf3a=Math[_0x21fc60(0x343)](_0x3fdc91*0x64)/0x64,_0x18a5cc=_0x74b852&&Object[_0x21fc60(0x24c)](_0x74b852)[_0x21fc60(0x13c)]?'\x20'+JSON[_0x21fc60(0x25f)](_0x74b852):'';console[_0x21fc60(0x435)](_0x21fc60(0x1f1)+_0x3b6fed+':\x20'+_0x5adf3a+'ms'+_0x18a5cc);}function dt(){const _0x35915c=_0x6c183;return typeof performance<'u'&&typeof performance[_0x35915c(0x2a4)]==_0x35915c(0x424)?performance['now']():Date[_0x35915c(0x2a4)]();}function ft(_0x14914d){try{if(typeof performance<'u'){var _0x262c87,_0x1edf1f;(_0x262c87=(_0x1edf1f=performance)['mark'])==null||_0x262c87['call'](_0x1edf1f,_0x14914d);}}catch{}}function pt(_0x2e467b,_0x5925ae,_0x2ea3d2){const _0x7f2478=_0x6c183;try{if(typeof performance<'u'){var _0x5d1392,_0x351fa4;(_0x5d1392=(_0x351fa4=performance)[_0x7f2478(0x1ae)])==null||_0x5d1392[_0x7f2478(0x43b)](_0x351fa4,'[BasePerf]\x20'+_0x2e467b,_0x5925ae,_0x2ea3d2);}}catch{}}function L(_0x534866){const _0x14bbf5=_0x6c183;var _0x1734b9;return lt()?I(_0x14bbf5(0x217),()=>mt(_0x534866),{'tableId':_0x534866['id'],'records':Object[_0x14bbf5(0x24c)](_0x534866[_0x14bbf5(0x258)]??{})[_0x14bbf5(0x13c)],'fields':_0x534866[_0x14bbf5(0x3b5)][_0x14bbf5(0x13c)],'hasRecordOrder':!!((_0x1734b9=_0x534866['recordOrder'])!=null&&_0x1734b9[_0x14bbf5(0x13c)])}):mt(_0x534866);}function mt(_0x38f498){const _0x1d69c3=_0x6c183;var _0x1bdb61;let _0x2e9131=_0x38f498[_0x1d69c3(0x258)]??{},_0x560b7f=_0x38f498[_0x1d69c3(0x398)]??{},_0x4d3090=((_0x1bdb61=_0x38f498[_0x1d69c3(0x1e7)])==null?void 0x0:_0x1bdb61['filter'](_0x32549b=>_0x2e9131[_0x32549b]))??[],_0x187e56=new Set(_0x4d3090),_0x2e11c1=[];for(let _0x3411a2 of Object['values'](_0x2e9131))_0x187e56['has'](_0x3411a2['id'])||_0x2e11c1[_0x1d69c3(0x174)](_0x3411a2);let _0x365846=_0x2e11c1[_0x1d69c3(0x13c)]?[..._0x4d3090,...Rt(_0x2e11c1)]:_0x4d3090,_0x4563e2=_0x38f498[_0x1d69c3(0x3b5)][_0x1d69c3(0x2be)](_0x4bfeef=>_0x560b7f[_0x4bfeef]),_0x152f6d={..._0x38f498[_0x1d69c3(0x3d0)]??{}},_0x1cf960={..._0x38f498[_0x1d69c3(0x1fe)]??{}},_0x3b8c89={..._0x38f498[_0x1d69c3(0x389)]??{}};_0x38f498[_0x1d69c3(0x1e7)]=_0x365846,_0x38f498[_0x1d69c3(0x375)]={},_0x38f498[_0x1d69c3(0x3d0)]={},_0x38f498['colIndex']={},_0x38f498[_0x1d69c3(0x1fe)]={},_0x38f498[_0x1d69c3(0x389)]={},_0x38f498['resources']={..._0x38f498[_0x1d69c3(0x421)]??{}},_0x38f498[_0x1d69c3(0x421)][_0x1d69c3(0x199)]={..._0x38f498['resources'][_0x1d69c3(0x199)]??{}},_0x38f498['resources'][_0x1d69c3(0x4b9)]={..._0x38f498[_0x1d69c3(0x421)][_0x1d69c3(0x4b9)]??{}};let _0x19ae6d=_0x38f498['rowIndex'],_0x33687a=_0x38f498['rowId'],_0x12e741=_0x38f498[_0x1d69c3(0x390)],_0x3a6e3d=_0x38f498['colId'],_0x9ef92b=_0x38f498[_0x1d69c3(0x389)];return _0x365846[_0x1d69c3(0x2e0)]((_0x3c476a,_0x5c56e6)=>{_0x19ae6d[_0x3c476a]=_0x5c56e6,_0x33687a[_0x5c56e6]=_0x3c476a;}),_0x4563e2[_0x1d69c3(0x2e0)]((_0x458028,_0x1ed264)=>{_0x12e741[_0x458028]=_0x1ed264,_0x3a6e3d[_0x1ed264]=_0x458028;}),Object[_0x1d69c3(0x279)](_0x3b8c89)['forEach'](([_0x8256c1,_0x29be1a])=>{const _0x3eee1d=_0x1d69c3;let _0x2f60c0=Number(_0x8256c1),_0x26f6d3=_0x152f6d[_0x2f60c0]??_0x365846[_0x2f60c0],_0x10cd91=_0x26f6d3?_0x19ae6d[_0x26f6d3]:void 0x0;_0x10cd91!=null&&(_0x9ef92b[_0x10cd91]={..._0x9ef92b[_0x10cd91]??{}},Object[_0x3eee1d(0x279)](_0x29be1a??{})[_0x3eee1d(0x2e0)](([_0x5a55a5,_0x438559])=>{let _0x7ddaaf=Number(_0x5a55a5),_0x4fd80b=_0x1cf960[_0x7ddaaf]??_0x4563e2[_0x7ddaaf],_0x31ef99=_0x4fd80b?_0x12e741[_0x4fd80b]:void 0x0;_0x31ef99!=null&&(_0x9ef92b[_0x10cd91][_0x31ef99]=St(_0x438559));}));}),Object['values'](_0x2e9131)[_0x1d69c3(0x2e0)](_0x28b7aa=>{const _0x21d38b=_0x1d69c3;let _0x5d71fa=_0x19ae6d[_0x28b7aa['id']];_0x5d71fa!=null&&(_0x28b7aa[_0x21d38b(0x227)]={..._0x28b7aa[_0x21d38b(0x227)]??{},[_0x5a35e2]:_0x28b7aa['id']},_0x9ef92b[_0x5d71fa]={..._0x9ef92b[_0x5d71fa]??{},0x0:{'v':_0x28b7aa['id'],'t':_0x4dac72[_0x21d38b(0x18a)]}},Object[_0x21d38b(0x279)](_0x28b7aa['values']??{})['forEach'](([_0x1fe726,_0x12ff88])=>{const _0x127068=_0x21d38b;let _0x2e2c8f=_0x560b7f[_0x1fe726];(_0x2e2c8f==null?void 0x0:_0x2e2c8f[_0x127068(0x20b)])===_0x3a044b[_0x127068(0x1ab)]&&Dt(_0x38f498,_0x28b7aa['id'],_0x1fe726,_0x12ff88);let _0x2db116=_0x12e741[_0x1fe726];if(_0x2db116==null)return;let _0x5ab2c6=_0x9ef92b[_0x5d71fa][_0x2db116];if(_0x5ab2c6!=null){jt(_0x5ab2c6,_0x2e2c8f,_0x12ff88)&&(_0x9ef92b[_0x5d71fa][_0x2db116]=xt(_0x12ff88,_0x2e2c8f));return;}_0x9ef92b[_0x5d71fa][_0x2db116]=xt(_0x12ff88,_0x2e2c8f);}));}),_0x38f498;}function ht(_0x2ae022,_0x1e4c0f){const _0xe178f7=_0x6c183;return _0x2ae022[_0xe178f7(0x258)]=Object[_0xe178f7(0x176)](Object[_0xe178f7(0x279)](_0x2ae022[_0xe178f7(0x258)])[_0xe178f7(0x141)](([_0x5a93ec,_0x236a46])=>[_0x5a93ec,{..._0x236a46}])),L(_0x2ae022),Object[_0xe178f7(0x279)](_0x2ae022[_0xe178f7(0x3d0)]??{})[_0xe178f7(0x2e0)](([_0x203f7c,_0x33e6b1])=>{const _0x3cc19c=_0xe178f7;var _0x41f478;let _0x16bc50=Number(_0x203f7c),_0x183a46=_0x2ae022[_0x3cc19c(0x258)][_0x33e6b1];_0x183a46&&(_0x183a46[_0x3cc19c(0x227)]={..._0x183a46[_0x3cc19c(0x227)]??{}},Object['entries'](((_0x41f478=_0x2ae022['cellData'])==null?void 0x0:_0x41f478[_0x16bc50])??{})[_0x3cc19c(0x2e0)](([_0x4be748,_0x4a8c9a])=>{const _0x179d3f=_0x3cc19c;var _0x51f3c6;let _0x3c434a=(_0x51f3c6=_0x2ae022[_0x179d3f(0x1fe)])==null?void 0x0:_0x51f3c6[Number(_0x4be748)];_0x3c434a&&_0x1e4c0f&&!_0x1e4c0f(_0x33e6b1,_0x3c434a)||(_0x3c434a===_0x5a35e2?_0x183a46['values'][_0x5a35e2]=_0x183a46['id']:_0x3c434a&&(_0x183a46[_0x179d3f(0x227)][_0x3c434a]=Ct(_0x4a8c9a,_0x2ae022['fields'][_0x3c434a],_0x2ae022,_0x33e6b1)));}));}),_0x2ae022;}function gt(_0x4c4201,_0x1bed3a){const _0x5e4c5d=_0x6c183;for(let {row:_0x4ee377,col:_0x2c24e3}of _0x1bed3a){var _0x1dbccc,_0x5aeb2f,_0x1bc06e;let _0x4557bf=(_0x1dbccc=_0x4c4201[_0x5e4c5d(0x3d0)])==null?void 0x0:_0x1dbccc[_0x4ee377],_0x55d6e1=(_0x5aeb2f=_0x4c4201[_0x5e4c5d(0x1fe)])==null?void 0x0:_0x5aeb2f[_0x2c24e3],_0x1a48e7=_0x4557bf?_0x4c4201[_0x5e4c5d(0x258)][_0x4557bf]:void 0x0;if(!_0x1a48e7||!_0x55d6e1)continue;if(_0x55d6e1===_0x5a35e2){_0x1a48e7[_0x5e4c5d(0x227)][_0x5a35e2]=_0x1a48e7['id'];continue;}let _0x4ed01d=(_0x1bc06e=_0x4c4201['cellData'])==null||(_0x1bc06e=_0x1bc06e[_0x4ee377])==null?void 0x0:_0x1bc06e[_0x2c24e3];(_0x4ed01d!=null||Object[_0x5e4c5d(0x246)][_0x5e4c5d(0x48a)][_0x5e4c5d(0x43b)](_0x1a48e7[_0x5e4c5d(0x227)]??{},_0x55d6e1))&&(_0x1a48e7[_0x5e4c5d(0x227)]={..._0x1a48e7['values']??{}},_0x1a48e7['values'][_0x55d6e1]=Ct(_0x4ed01d,_0x4c4201[_0x5e4c5d(0x398)][_0x55d6e1],_0x4c4201,_0x4557bf));}return _0x4c4201;}function _t(_0x49871b,_0x23225f,_0x387c7b){const _0x5ee162=_0x6c183;var _0x5403aa,_0x2a4211,_0x3e52d9,_0xa13413,_0x1dd1e4,_0x433960;let _0x27384e=(_0x5403aa=_0x49871b[_0x5ee162(0x375)])==null?void 0x0:_0x5403aa[_0x23225f],_0x2690af=(_0x2a4211=_0x49871b[_0x5ee162(0x390)])==null?void 0x0:_0x2a4211[_0x387c7b];if(_0x27384e!=null&&_0x2690af!=null&&((_0x3e52d9=_0x49871b[_0x5ee162(0x3d0)])==null?void 0x0:_0x3e52d9[_0x27384e])===_0x23225f&&((_0xa13413=_0x49871b[_0x5ee162(0x1fe)])==null?void 0x0:_0xa13413[_0x2690af])===_0x387c7b)return{'row':_0x27384e,'col':_0x2690af};let _0x563712=L(_0x49871b),_0x317d5c=(_0x1dd1e4=_0x563712[_0x5ee162(0x375)])==null?void 0x0:_0x1dd1e4[_0x23225f],_0x5372ae=(_0x433960=_0x563712[_0x5ee162(0x390)])==null?void 0x0:_0x433960[_0x387c7b];return _0x317d5c==null||_0x5372ae==null?null:{'row':_0x317d5c,'col':_0x5372ae};}function vt(_0x1503d6,_0x1c4ac9,_0x337e23){const _0xdd88ab=_0x6c183;var _0x1fd2d0;let _0x4ae2f3=_t(_0x1503d6,_0x1c4ac9,_0x337e23);if(_0x4ae2f3)return(_0x1fd2d0=_0x1503d6['cellData'])==null||(_0x1fd2d0=_0x1fd2d0[_0x4ae2f3[_0xdd88ab(0x4b3)]])==null?void 0x0:_0x1fd2d0[_0x4ae2f3[_0xdd88ab(0x295)]];}function yt(_0x21371a,_0x366f24,_0x2220c7){const _0x42c342=_0x6c183;var _0x55d914;let _0x564b79=vt(_0x21371a,_0x366f24,_0x2220c7),_0x2ba599=_0x21371a[_0x42c342(0x398)][_0x2220c7];if((_0x2ba599==null?void 0x0:_0x2ba599['type'])===_0x3a044b['Attachment']){var _0x2d4db3;return Ot(_0x21371a,_0x366f24,_0x2220c7)??kt((_0x2d4db3=_0x21371a['records'][_0x366f24])==null||(_0x2d4db3=_0x2d4db3['values'])==null?void 0x0:_0x2d4db3[_0x2220c7]);}if(Mt(_0x2ba599)||Nt(_0x2ba599)||(_0x2ba599==null?void 0x0:_0x2ba599[_0x42c342(0x20b)])===_0x3a044b['Link']){var _0x3e427f;let _0x5cdc8d=(_0x3e427f=_0x21371a[_0x42c342(0x258)][_0x366f24])==null||(_0x3e427f=_0x3e427f['values'])==null?void 0x0:_0x3e427f[_0x2220c7];return _0x5cdc8d!=null&&_0x5cdc8d!==''?At(_0x5cdc8d,_0x2ba599):Ct(_0x564b79,_0x2ba599,_0x21371a,_0x366f24);}return _0x564b79&&Object['prototype'][_0x42c342(0x48a)][_0x42c342(0x43b)](_0x564b79,'v')?_0x564b79['v']??null:((_0x55d914=_0x21371a[_0x42c342(0x258)][_0x366f24])==null||(_0x55d914=_0x55d914[_0x42c342(0x227)])==null?void 0x0:_0x55d914[_0x2220c7])??null;}function bt(_0x1e5791,_0x34e651,_0x1b5652){const _0x4f3260=_0x6c183;var _0x12cdeb;let _0x75d941=vt(_0x1e5791,_0x34e651,_0x1b5652);if(_0x75d941&&Object[_0x4f3260(0x246)][_0x4f3260(0x48a)][_0x4f3260(0x43b)](_0x75d941,'v'))return _0x75d941['v']??null;let _0xa959e0=_0x1e5791['fields'][_0x1b5652];return xt(((_0x12cdeb=_0x1e5791[_0x4f3260(0x258)][_0x34e651])==null||(_0x12cdeb=_0x12cdeb[_0x4f3260(0x227)])==null?void 0x0:_0x12cdeb[_0x1b5652])??null,_0xa959e0)['v']??null;}function xt(_0x25b4fa,_0x4acb79){const _0x177c6f=_0x6c183;if(Tt(_0x25b4fa))return(_0x4acb79==null?void 0x0:_0x4acb79[_0x177c6f(0x20b)])===_0x3a044b[_0x177c6f(0x1ab)]?{..._0x25b4fa,'v':'','t':_0x4dac72['STRING']}:St(_0x25b4fa);if((_0x4acb79==null?void 0x0:_0x4acb79[_0x177c6f(0x20b)])===_0x3a044b[_0x177c6f(0x1ab)])return{'v':'','t':_0x4dac72[_0x177c6f(0x18a)]};if(Nt(_0x4acb79)){let _0x1f97cf=Pt(_0x25b4fa);return{'v':_0x1f97cf,'t':Lt(_0x1f97cf)};}if(Mt(_0x4acb79))return{'v':Ft(_0x25b4fa)['join'](',\x20'),'t':_0x4dac72[_0x177c6f(0x18a)]};if((_0x4acb79==null?void 0x0:_0x4acb79['type'])===_0x3a044b[_0x177c6f(0x41f)]&&_0x25b4fa&&typeof _0x25b4fa==_0x177c6f(0x3d7)&&!Array[_0x177c6f(0x431)](_0x25b4fa)){let _0x357413=_0x25b4fa;return{'v':String(_0x357413[_0x177c6f(0x3ae)]??_0x357413[_0x177c6f(0x32d)]??''),'t':_0x4dac72['STRING']};}return _0x25b4fa===null||typeof _0x25b4fa==_0x177c6f(0x425)||typeof _0x25b4fa=='number'||typeof _0x25b4fa==_0x177c6f(0x1cb)?{'v':_0x25b4fa,'t':Lt(_0x25b4fa)}:{'v':null,'t':null};}function St(_0x15d988){let _0x462742=zt(_0x15d988['t'],_0x15d988['v']);if(_0x462742===void 0x0){let {t:_0x5518ad,..._0x47c662}=_0x15d988;return _0x47c662;}return{..._0x15d988,'t':_0x462742};}function Ct(_0x29a1f0,_0x513c83,_0x7bba70,_0x685f47){const _0x1da3eb=_0x6c183;if(!_0x29a1f0)return null;if((_0x513c83==null?void 0x0:_0x513c83[_0x1da3eb(0x20b)])===_0x3a044b['Attachment'])return _0x7bba70&&_0x685f47?Ot(_0x7bba70,_0x685f47,_0x513c83['id'])??[]:[];if(Mt(_0x513c83))return Ft(_0x29a1f0['v']);if((_0x513c83==null?void 0x0:_0x513c83[_0x1da3eb(0x20b)])===_0x3a044b[_0x1da3eb(0x41f)]&&_0x7bba70&&_0x685f47){var _0x3b856a;let _0x990a08=(_0x3b856a=_0x7bba70['records'][_0x685f47])==null||(_0x3b856a=_0x3b856a[_0x1da3eb(0x227)])==null?void 0x0:_0x3b856a[_0x513c83['id']];if(_0x990a08&&typeof _0x990a08==_0x1da3eb(0x3d7)&&!Array['isArray'](_0x990a08))return _0x990a08;}return Object['prototype'][_0x1da3eb(0x48a)][_0x1da3eb(0x43b)](_0x29a1f0,'v')?_0x29a1f0['v']??null:null;}function wt(_0x481e05,_0x1d2fdb,_0x205cf8,_0x4c718b,_0x6396e8){const _0x1c67e2=_0x6c183;return(_0x205cf8==null?void 0x0:_0x205cf8['type'])===_0x3a044b[_0x1c67e2(0x1ab)]?kt(_0x481e05):Nt(_0x205cf8)?Pt(_0x481e05):Mt(_0x205cf8)?Ft(_0x481e05):(_0x205cf8==null?void 0x0:_0x205cf8['type'])===_0x3a044b[_0x1c67e2(0x41f)]&&(_0x481e05==null||_0x481e05==='')?null:(_0x205cf8==null?void 0x0:_0x205cf8[_0x1c67e2(0x20b)])===_0x3a044b[_0x1c67e2(0x41f)]&&_0x481e05&&typeof _0x481e05==_0x1c67e2(0x3d7)&&!Array['isArray'](_0x481e05)&&!Tt(_0x481e05)?_0x481e05:Ct(_0x1d2fdb,_0x205cf8,_0x4c718b,_0x6396e8);}function Tt(_0x44a14f){const _0x512577=_0x6c183;return!!_0x44a14f&&typeof _0x44a14f==_0x512577(0x3d7)&&(Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'v')||Object['prototype']['hasOwnProperty'][_0x512577(0x43b)](_0x44a14f,'t')||Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'p')||Object['prototype'][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'f')||Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'si'));}function Et(_0x286138,_0x3c8988){return _0x286138+'\x1f'+_0x3c8988;}function Dt(_0x4b77ec,_0x389f24,_0x5229d5,_0x43a15c){const _0x172f6c=_0x6c183;let _0x1e9f8e=kt(_0x43a15c);_0x4b77ec['resources']={..._0x4b77ec[_0x172f6c(0x421)]??{}},_0x4b77ec[_0x172f6c(0x421)]['attachmentSets']={..._0x4b77ec[_0x172f6c(0x421)]['attachmentSets']??{}},_0x4b77ec[_0x172f6c(0x421)][_0x172f6c(0x4b9)]={..._0x4b77ec['resources']['attachments']??{}};let _0x434724=Et(_0x5229d5,_0x389f24),_0x30f32b=[];for(let _0x21e4dc=0x0;_0x21e4dc<_0x1e9f8e['length'];_0x21e4dc++){if(!(_0x21e4dc in _0x1e9f8e))continue;let _0x15215d=_0x1e9f8e[_0x21e4dc],_0x38c495=String(_0x15215d['id']??_0x434724+'\x1f'+_0x21e4dc),_0x17ce1f={..._0x15215d,'id':_0x38c495};_0x4b77ec['resources'][_0x172f6c(0x4b9)][_0x38c495]=_0x17ce1f,_0x30f32b[_0x172f6c(0x174)](_0x38c495);}_0x4b77ec[_0x172f6c(0x421)][_0x172f6c(0x199)][_0x434724]=_0x30f32b;}function Ot(_0x4aad99,_0x5b889b,_0x293f73){const _0x5f5d6e=_0x6c183;var _0x5df4d4;let _0x451aa5=Et(_0x293f73,_0x5b889b),_0x564009=(_0x5df4d4=_0x4aad99[_0x5f5d6e(0x421)])==null||(_0x5df4d4=_0x5df4d4['attachmentSets'])==null?void 0x0:_0x5df4d4[_0x451aa5];if(!_0x564009)return null;let _0x175d14=[];for(let _0x784ee1=0x0;_0x784ee1<_0x564009[_0x5f5d6e(0x13c)];_0x784ee1++){var _0x59d619;if(!(_0x784ee1 in _0x564009))continue;let _0x4704b4=(_0x59d619=_0x4aad99[_0x5f5d6e(0x421)])==null||(_0x59d619=_0x59d619[_0x5f5d6e(0x4b9)])==null?void 0x0:_0x59d619[_0x564009[_0x784ee1]];_0x4704b4&&_0x175d14[_0x5f5d6e(0x174)]({..._0x4704b4});}return _0x175d14;}function kt(_0x4cf363){const _0x18511e=_0x6c183;if(_0x4cf363==null||_0x4cf363===''||Tt(_0x4cf363)&&!('id'in _0x4cf363)&&!('name'in _0x4cf363))return[];let _0x49cb2b=Array[_0x18511e(0x431)](_0x4cf363)?_0x4cf363:[_0x4cf363],_0x1a140f=[];for(let _0x445a26=0x0;_0x445a26<_0x49cb2b[_0x18511e(0x13c)];_0x445a26++){if(!(_0x445a26 in _0x49cb2b))continue;let _0x53e3e3=_0x49cb2b[_0x445a26],_0x347ac9=_0x53e3e3&&typeof _0x53e3e3=='object'?{..._0x53e3e3}:{'id':_0x18511e(0x2b7)+_0x445a26,'name':String(_0x53e3e3)};Object['keys'](_0x347ac9)[_0x18511e(0x13c)]>0x0&&_0x1a140f[_0x18511e(0x174)](_0x347ac9);}return _0x1a140f;}function At(_0x1e7c06,_0x2cba30){return(_0x2cba30==null?void 0x0:_0x2cba30['type'])===_0x3a044b['Attachment']?kt(_0x1e7c06):Nt(_0x2cba30)?Pt(_0x1e7c06):Mt(_0x2cba30)?Ft(_0x1e7c06):_0x1e7c06;}function jt(_0x383d3a,_0x4d5371,_0x344589){const _0x5c17a3=_0x6c183;return(_0x4d5371==null?void 0x0:_0x4d5371['type'])===_0x3a044b[_0x5c17a3(0x1ab)]?_0x383d3a['v']!=='':Nt(_0x4d5371)?_0x383d3a['v']!==Pt(_0x344589):Mt(_0x4d5371)?Array[_0x5c17a3(0x431)](_0x344589)&&(_0x383d3a['v']==null||_0x383d3a['v']===''):!0x1;}function Mt(_0x4d4fd3){const _0x5943f6=_0x6c183;return(_0x4d4fd3==null?void 0x0:_0x4d4fd3['type'])===_0x3a044b[_0x5943f6(0x386)]||(_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5943f6(0x20b)])===_0x3a044b[_0x5943f6(0x1ad)]||(_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5943f6(0x20b)])===_0x3a044b[_0x5943f6(0x359)]&&_0x4d4fd3[_0x5943f6(0x2ba)]['allowMultiple']===!0x0;}function Nt(_0x19a687){const _0x245e0d=_0x6c183;return(_0x19a687==null?void 0x0:_0x19a687[_0x245e0d(0x20b)])===_0x3a044b[_0x245e0d(0x359)]&&_0x19a687['config'][_0x245e0d(0x198)]!==!0x0;}function Pt(_0x19b8a3){let _0x2f3d70=Tt(_0x19b8a3)?_0x19b8a3['v']:_0x19b8a3,_0x2ec5e6=Array['isArray'](_0x2f3d70)?_0x2f3d70[0x0]:_0x2f3d70;return _0x2ec5e6==null||_0x2ec5e6===''?null:String(_0x2ec5e6);}function Ft(_0x321370){const _0x4fc6d4=_0x6c183;if(_0x321370==null||_0x321370==='')return[];let _0x45ff6f=[];if(Array[_0x4fc6d4(0x431)](_0x321370)){for(let _0x6a5a0e=0x0;_0x6a5a0e<_0x321370[_0x4fc6d4(0x13c)];_0x6a5a0e++){if(!(_0x6a5a0e in _0x321370))continue;let _0x433477=It(_0x321370[_0x6a5a0e]);_0x433477&&_0x45ff6f[_0x4fc6d4(0x174)](_0x433477);}return _0x45ff6f;}for(let _0x50f979 of String(_0x321370)[_0x4fc6d4(0x1c0)](',')){let _0x3f2b31=_0x50f979['trim']();_0x3f2b31&&_0x45ff6f['push'](_0x3f2b31);}return _0x45ff6f;}function It(_0x11813d){const _0x287b8e=_0x6c183;if(_0x11813d==null)return'';if(typeof _0x11813d==_0x287b8e(0x425)||typeof _0x11813d==_0x287b8e(0x24b)||typeof _0x11813d=='boolean')return String(_0x11813d);if(typeof _0x11813d=='object'){let _0x447d9d=_0x11813d;return String(_0x447d9d['id']??_0x447d9d[_0x287b8e(0x2a3)]??_0x447d9d[_0x287b8e(0x3ae)]??'');}return String(_0x11813d);}function Lt(_0x386f5a){const _0x53d856=_0x6c183;return _0x386f5a==null?null:typeof _0x386f5a=='number'?_0x4dac72['NUMBER']:typeof _0x386f5a==_0x53d856(0x1cb)?_0x4dac72[_0x53d856(0x1b8)]:_0x4dac72[_0x53d856(0x18a)];}function Rt(_0x568f63){const _0x2a4f6f=_0x6c183;_0x568f63[_0x2a4f6f(0x277)]((_0x281c70,_0x2fc099)=>_0x281c70[_0x2a4f6f(0x4a1)]['localeCompare'](_0x2fc099[_0x2a4f6f(0x4a1)]));let _0x257de0=[];for(let _0x5c9e7a of _0x568f63)_0x257de0[_0x2a4f6f(0x174)](_0x5c9e7a['id']);return _0x257de0;}function zt(_0xa9485a,_0x5eed5b){const _0x41d8ff=_0x6c183;return _0xa9485a===_0x4dac72[_0x41d8ff(0x18a)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x324)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x1b8)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x175)]||_0xa9485a==null?_0xa9485a:Lt(_0x5eed5b??null);}function R(_0x96eccc){const _0x18483d=_0x6c183;let _0x3226d2=null;for(let _0x4ce7bb of _0x96eccc)_0x3226d2=_0x3226d2===null?_0x4ce7bb:_0x53fdae[_0x18483d(0x20b)][_0x18483d(0x2a2)](_0x3226d2,_0x4ce7bb);return _0x3226d2;}var z=class e{static[_0x6c183(0x30e)](_0xe525ab,_0x27ea61){const _0x51c1bd=_0x6c183;let _0x39b8c7=[];for(let _0x1f4bdf of _0x27ea61){let _0x4028df=Bt(_0x1f4bdf);if(!_0x4028df||_0x4028df[_0x51c1bd(0x393)]!==_0xe525ab['id'])return null;_0x39b8c7[_0x51c1bd(0x174)](_0x4028df['op']);}try{let _0x1a0182=R(_0x39b8c7);return _0x1a0182===null?_0xe525ab:new e()[_0x51c1bd(0x4c3)](_0xe525ab,_0x1a0182);}catch{return null;}}[_0x6c183(0x4c3)](_0x3bd42c,_0x104de0){const _0x5bda69=_0x6c183;let _0x3d68ba=this[_0x5bda69(0x311)](_0x104de0),_0x4f434d=I(_0x5bda69(0x3a7),()=>Xt(_0x3bd42c,_0x104de0),{'invalidations':_0x3d68ba[_0x5bda69(0x13c)]}),_0x21e2a6=I('BaseJson1.json1Apply',()=>_0x53fdae[_0x5bda69(0x20b)]['apply'](_0x4f434d,_0x104de0),{'invalidations':_0x3d68ba['length']}),_0x36d3ef=Ht(_0x21e2a6,_0x3d68ba);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x21e2a6,_0x3d68ba),{'invalidations':_0x3d68ba['length']})?(Ut(_0x21e2a6,_0x36d3ef),_0x21e2a6):(I(_0x5bda69(0x335),()=>{const _0x353d12=_0x5bda69;this[_0x353d12(0x306)](_0x21e2a6,_0x3d68ba)['forEach'](_0xdf237d=>{const _0x1aed4f=_0x353d12;let _0x5af1f7=_0x3d68ba[_0x1aed4f(0x2be)](_0x44cd95=>_0x44cd95[_0x1aed4f(0x210)]===_0xdf237d['id']),_0x1ef448=_0x5af1f7[_0x1aed4f(0x13c)]>0x0&&_0x5af1f7['every'](_0x44145c=>_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x2d5)||_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x37d)||_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x1de)||_0x44145c['reason']===_0x1aed4f(0x493))?new Set(_0x5af1f7[_0x1aed4f(0x17a)](_0x270711=>{const _0x441529=_0x1aed4f;var _0x1eab4c;if(_0x270711[_0x441529(0x28a)]!==_0x441529(0x2d5)||!_0x270711['fieldId'])return[];let _0x3933e6=(_0x1eab4c=_0x3bd42c[_0x441529(0x298)][_0xdf237d['id']])==null?void 0x0:_0x1eab4c['fields'][_0x270711[_0x441529(0x2b0)]],_0x215778=_0xdf237d[_0x441529(0x398)][_0x270711[_0x441529(0x2b0)]];return(_0x3933e6==null?void 0x0:_0x3933e6['type'])!==(_0x215778==null?void 0x0:_0x215778['type'])||(_0x3933e6==null?void 0x0:_0x3933e6[_0x441529(0x2ba)][_0x441529(0x198)])!==(_0x215778==null?void 0x0:_0x215778['config'][_0x441529(0x198)])?[_0x270711[_0x441529(0x2b0)]]:[];})):void 0x0,_0x4d5bf1=new Set(_0x5af1f7[_0x1aed4f(0x17a)](_0x3a70d6=>{const _0x5a74cb=_0x1aed4f;var _0x372c29,_0x2d0eaf;return _0x3a70d6[_0x5a74cb(0x28a)]!==_0x5a74cb(0x1de)||_0x3a70d6[_0x5a74cb(0x4b3)]==null||_0x3a70d6[_0x5a74cb(0x229)]==null?[]:[JSON[_0x5a74cb(0x25f)]([(_0x372c29=_0xdf237d[_0x5a74cb(0x3d0)])==null?void 0x0:_0x372c29[_0x3a70d6[_0x5a74cb(0x4b3)]],(_0x2d0eaf=_0xdf237d[_0x5a74cb(0x1fe)])==null?void 0x0:_0x2d0eaf[_0x3a70d6[_0x5a74cb(0x229)]]])];}));ht(_0xdf237d,_0x1ef448?(_0x572813,_0x4de451)=>_0x1ef448['has'](_0x4de451)||_0x4d5bf1[_0x1aed4f(0x34b)](JSON['stringify']([_0x572813,_0x4de451])):void 0x0);});},{'invalidations':_0x3d68ba[_0x5bda69(0x13c)]}),Ut(_0x21e2a6,_0x36d3ef),_0x21e2a6);}[_0x6c183(0x2d8)](_0xa20adb,_0x37c6f0){const _0x22f11d=_0x6c183;return _0x53fdae['type'][_0x22f11d(0x270)](_0x37c6f0,_0xa20adb);}[_0x6c183(0x311)](_0x255214){const _0x1ea0da=_0x6c183;let _0x57a43f=qt(_0x255214);return _0x57a43f[_0x1ea0da(0x13c)]?Jt(_0x57a43f[_0x1ea0da(0x17a)](_0x29c0d2=>this[_0x1ea0da(0x311)](_0x29c0d2))):Wt(_0x255214);}[_0x6c183(0x306)](_0x15ddd5,_0x25413d){const _0x5d9d00=_0x6c183;let _0x25f26a=_0x25413d[_0x5d9d00(0x2be)](_0x961931=>_0x961931['reason']!==_0x5d9d00(0x37d));return _0x25f26a[_0x5d9d00(0x13c)]?_0x25f26a['some'](_0x4c4c61=>!_0x4c4c61[_0x5d9d00(0x210)])?Object['values'](_0x15ddd5[_0x5d9d00(0x298)]??{}):Array[_0x5d9d00(0x1d5)](new Set(_0x25f26a[_0x5d9d00(0x141)](_0x516e68=>_0x516e68[_0x5d9d00(0x210)])))[_0x5d9d00(0x17a)](_0x1dd174=>{const _0x1c9b14=_0x5d9d00;var _0x544cf7;let _0xe33c01=(_0x544cf7=_0x15ddd5[_0x1c9b14(0x298)])==null?void 0x0:_0x544cf7[_0x1dd174];return _0xe33c01?[_0xe33c01]:[];}):[];}};function Bt(_0x572886){const _0x32db7d=_0x6c183;let _0x5e8a81=_0x572886['params'];return _0x572886['id']!==_0x32db7d(0x340)||typeof _0x5e8a81!='object'||!_0x5e8a81||!(_0x32db7d(0x393)in _0x5e8a81)||typeof _0x5e8a81[_0x32db7d(0x393)]!='string'||!('op'in _0x5e8a81)||!Array[_0x32db7d(0x431)](_0x5e8a81['op'])?null:{'unitId':_0x5e8a81[_0x32db7d(0x393)],'op':_0x5e8a81['op']};}function _0x4376(){const _0x29bbb7=['_getCachedProjection','_recordIds','objectType','rowIndex','multiple','base.command.batch-delete-base-records','Redo','_resolveBaseId','localeCompare','removeOp','_applier','view','IS_EMPTY','cardSize','[BaseCommandService]:\x20cannot\x20create\x20record.','_findCalendarDateFieldId','BaseDashboard','createRegExpFromSafeFragment','h12','next7','MultiSelect','every','saveMany','cellData','setBasePermission','resolvedOptions','lastIndexOf','clearFieldPermission','_projectionCache','date','colIndex','[RecordLink]:\x20display\x20field\x20\x22','find','unitId','spacePeriod','level','conditions','recordIds','fields','createDefaultConfig','base.command.create-base-view','card','_scheduledSuperTableSyncs','label','setFieldPermission','_normalizeCalendarDisplayColor','regenerateViewIds','setTablePermission','working','invalid','all','-field-name','setRecordValues','BaseJson1.cloneForOp','getSuperTableRegistrations','readonly','_bumpTableRevision','validateFormula','RecordLink','_permissionService','text','base.field-registry.service','MUTATION','\x20must\x20have\x20a\x20non-empty\x20id.','primaryFieldId','_filterSortFieldIds','cycle','fieldOrder','invalidReasonByRecordId','parentByRecordId','clearUnit','fromChangeset','_isAllowedKanbanGroupField','registerSyncingMutations','formula','depth','_normalizeGanttDisplayColor','remote','large','_createSystemFieldValuePatches','_resolveKanbanCardFieldIds','orderedRecordIds','_assertFieldDefinition','code','True','invalidateByOp','BaseRecord','thread-comment.command.','childUnitId','mode','_commandService','format','gridViewId','system','rowId','Working\x20day','canManageView','getTime','invalidateByField','_groupsCacheKey','base.mutation.set-permission-rules','object','rowIndexById','_projectFields','conditional','getAllUnitsForType','target','[BaseCommandService]:\x20cannot\x20manage\x20view.','next30','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','_registeredSuperTableNames','base.command.change-base-field-type','_canUseFastSort','leftPaneWidth','_viewRevisions','changeFieldType',':start','_getJson1DirtyData','action','renameFormulaUnitReferences','dateMode','_projectGroups','createBatchCreateRecordsOp','getUTCDate','52RlyNdo','endDateFieldId','base.command.update-base-record-order','long','_T_','Use\x2031\x20characters\x20or\x20fewer.','_resolveCardTitleFieldId','_isAllDayCalendarEvent','invalidDateField','setBaseName','getUTCMonth','deleteView','packageName','subtreeEndIndex','raw','duplicate','updatePermissionPoint','_formulaSyncQueue','[BaseFormula]:\x20field\x20\x22','blue','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','_capabilities','MMM\x20D,\x20YYYY','Failed\x20to\x20create\x20update\x20cell\x20operation:','isInteger','bases.remote.config','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','conditionalColoring','SelfParent','canCreateField','_cellInvalidations','_getHierarchyIndex','workingDaysOnly','allowDangling','_getSystemFieldValue','_kanbanLaneTitle','_findKanbanGroupField','recordPatch','invalidGroupField','getUTCFullYear','short','setViewGroup','base.viewType.gantt','getCurrentUserId','start','clearBasePermission','ena','_enqueueFormulaSync','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','Link','NumberFormat','resources','getFullYear','formulaName','function','string','groupFieldId','after','_getKanbanConfiguredLanes','base.command.move-base-view','_isColorfulKanbanGroupField','_getCellRevision','canEditField','hostAnchorId','unitData','none','displayColor','isArray','toLowerCase','exact','Gallery','info','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','_canEdit','_syncSuperTables','end','INIT','call','Kanban','month','get','initializeUnit','Add','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','findIndex','exists','exceptions','Empty','custom','CONTAINS','defineProperty','_projectRows','_hierarchyIndexCache','getAllPermissionPoint','_patchProjectedRowsForCellInvalidations','create-view','indexOf','[BaseProjectionService]:\x20missing\x20view\x20\x22','showTodayLine','_initDataSync','_groupCellInvalidations','General','constructor','_applyFormulaResult','_buildGrid','this-row','leftPaneCollapsed','[BaseCommandService]:\x20cannot\x20create\x20table.','Undo','owner','members','updatedAt','childType','error','save','editable','fromPlainText','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','Phone','deleteRecord','base.command.create-base-table','createCreateRecordOp','decorate','_resolveGanttDateFieldId','canEditRecord','_clearObjectEdit','_normalizeCellValue','_applyingFormulaResults','optionSource','Table\x20name\x20is\x20required.','_instanceService','Clear','base-range-values-v1','afterFieldId','parentRecordId','BaseTable','_createNumberingAllocators','Set','Cycle','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','base.mutation.set-permission-rule','isNaN','pushUndoRedo','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','_resolveGalleryCardFieldIds','getInstance','markResultApplied','pop','max','createSetRecordValuesOp','_projectedRowsCache','base.viewType.kanban','executeCommand','exception-','title','dependencyFieldId','hasOwnProperty','canDeleteRecord','_getOrderedRecords','invalidField','\x20has\x20unsupported\x20date\x20mode\x20\x22','fieldSettings',',,,\x22B\x22','manual','commaPeriod','record','createBase','source','BaseHierarchyError','false','BaseProjection.getProjection','_materializeFormulaTableNames','[BaseFormula]:\x20table\x20\x22','174rXfLUM','unsubscribe','_isAllDayGanttDateRange','set','clearViewPermission','Formula','orderKey','getItem','_getTable','_isCalendarDateField','registerCommand','kanban','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','_replaceOptional','resolve','_recordPermissions','onReady','default','rootRecordIds','base.command.create-base-field','unitOtherData','_tableBaseIds','progressFieldId','UTC','row','BASE','startDateFieldId','fld-','createCreateFieldOp','_factory','attachments','currencySymbol','rule','_isGanttDateField','tableName','abs','getTypePlugin','\x20has\x20unsupported\x20operator\x20\x22','Yes','Unchecked','applyOp','rules','revision',':end','table','usableAsCalendarDate','BaseProjection.projectTableRows','contains','_initDependencies','invalidGanttStartField','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','notContains','count','protocol','Comment','unique','Base\x20','join','setConfig','canCreateTable','setRangeValues','_dataSyncPrimaryController','__tempBatchingUndoRedo','UNIVER_EMBED_BASES_TABLE','duplicateRecord','setRule','24277520bkBCxc','BaseProjection.projectGroups','formatToParts','children','YYYY-MM-DD','base.command.duplicate-base-field','sum','record/','getTypeOfUnitAdded$','slice','thread-comment.mutation.','_normalizeGanttConfig','direction','day','displayFieldId','invalidateByView','bases-exchange-client.operation.export-base','createRecord','disposeWithMe','BaseCommand.createBatchCreateRecordsOp','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','maxDepth','compare','_cellRevisions','updateField','length','_onCommandExecuted','compress','insertOp','Progress','map','_setViewFieldSetting','isFinite','toPlainText','delete-view','subtreeHeightByRecordId','h24','past30','yyyy/mm/dd','matchAll','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','[BaseFormula]:\x20table\x20does\x20not\x20exist.','Currency','replace','_projectedGroupsCache','_groupProjectionFieldIds','_setObjectEdit','filled','_getAllBaseDependencyTreeCacheMap','_buildCalendar','base.command.set-base-view-group','_views','_withModifiedSystemValues','deleteRecords','index','defaultValue','size','columnSettings','showFieldNames','setViewFieldWidth','renameView','hierarchy','Grid','setPoint','syncExecuteCommand','timeZone','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','BASE_OBJECT_PERMISSION_PLUGIN','_getStructureDirtyTableIds','_initRegistries','[BaseField]:\x20invalid\x20progress\x20value.','includes','beforeCommandExecuted','_config','usableAsCardCover','setViewFilter','bases.config','thisMonth','_normalizeCalendarConfig','trigger','[BaseField]:\x20invalid\x20email\x20value.','push','FORCE_STRING','fromEntries','diffValue','_formulaCalculationSessionService','False','flatMap','getUnitType','snapshot','renameTable','#BFDBFE','today','replaceOp','\x22\x20is\x20referenced\x20by\x20','_initCommands','registerRuleModel','_normalizeGalleryConfig','some','spaceComma','getPermissionPoint','normalize','[BaseCommandService]:\x20cannot\x20edit\x20record.','STRING','h:mm\x20a','setViewFieldVisible','_setFormulaFieldCells','_disposed','_createNumberingAllocator','off','_globalRevision','base.command.validate-formula','_getViewRevision','primaryFieldName','_baseSyncDisposables','_resolveKanbanGroupFieldId','_check','allowMultiple','attachmentSets','_filterRows','edit','[RecordLink]:\x20target\x20record\x20\x22','getUTCDay','base.command.set-base-view-field-width','DD/MM/YYYY','_setAttachmentResources','invalidateByCell','-view-grid','[BaseCommandService]:\x20cannot\x20delete\x20table.','selfParent','_resolveKanbanCoverFieldId','_viewPermissions','medium','validate','workingDays','invalidGanttEndField','Attachment','_resolveGalleryCoverFieldId','Group','measure','beforeViewId','canDeleteTable','empty','hidden','createTable','embed-ui','getTypeOfUnitDisposed$','COMMAND','Base\x20edit\x20permission\x20denied.','BOOLEAN','4yQPuSM','titleFieldId','dispose','toLocaleString','useThousands','_univerInstanceService','createRecords','split','_groupConfigCacheSegment','2025863KsaXEU','data','_registerUnitPermissionPoints','MM/DD/YYYY','parentFieldName','base.command.delete-base-record','createdAt','Export','weekdays','boolean','Base','viewOrder','description','Gantt','usableAsGanttEnd','@univerjs-pro/bases','base.command.create-base-record','toPrimitive','relationRole','from','colorFieldId','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','#3b82f6','990861kCaGRr','abbreviation','getAll','_clearUnit','_plugins','cell','A\x20table\x20with\x20this\x20name\x20already\x20exists.','repairViewConfig','scale','_fieldPermissions','todo','changed','GREATER_THAN','updatedBy','recordOrder','createUnit','searchTexts','quarter','calendar','assign','_syncBaseUnit','viewRevision','numfmt','_scheduleSuperTableSync','[BasePerf]\x20','group','Ids','_canEditTable','Uncategorized','BaseField','past7','_setCachedProjection','InvalidField','UpdatedAt','startsWith','_ganttBarColor','timeslotSize','colId','_getAllTableIds','Edit','pickerFieldIds','2113704KJIyaQ','[BaseCommandService]:\x20cannot\x20delete\x20record.','base.command.rename-base-table','major-','base.command.duplicate-base-record','[BaseField]:\x20invalid\x20phone\x20value.','Calendar','symbol','padStart','type','Name','updateCell','SingleSelect','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','tableId','clearTablePermission','score','frozenFieldCount','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','test','getCurrentUser','IBaseCellData.ensureTableCellLayout','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','_apply','coverFieldId','lessThanOrEqual','42383ujtTnN','cellRevision','bases.fieldConfig.textPlaceholder','#FDE68A','operator','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','canDeleteField','BASES_PLUGIN','_injector','createDeleteRecordsUndoOp','trim','values','getUnit','column','setViewFieldOrder','https:',',,\x22M\x22','base.command.update-base-kanban-config','includeTime','RecordId','_fastSortRows','local','base.command.service','Checkbox','onStarting','pattern','BaseProjection.filterAndSortRows','_cellInvalidationsTouchFields','Remote','_patchCachedProjectedRows','[BaseCommandService]:\x20field\x20\x22','average','undo','setViewSort','MissingParent','_deleteAttachmentResources','table/','UpdatedBy','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','focusUnit','before','_executeSuperTableMutationWhileActive','prototype','base.command.ensure-base-temporal-view-date-fields','Date1900','getProjection','_initialize','number','keys','base.viewType.calendar','BEFORE','base.permission.service','createField','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','attachmentSet','NOT_CONTAINS','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','Doing','[BaseCommandService]:\x20cannot\x20edit\x20table.','projection','records','createViewId','view-','duplicateField','\x22\x20is\x20not\x20registered.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','_getCurrentUserId','stringify','Unsupported\x20Base\x20permission\x20action:\x20','getBase','dateFormat','unknown','usableAsGanttStart','subscribe','64865BXAIwL','strategies','user','true','getDependencies','gantt','MM-DD','[BaseCommandService]:\x20invalid\x20field\x20definition.','valid','Email','invertWithDoc','_title','[BaseField]:\x20invalid\x20checkbox\x20value.','depthByRecordId','base.command.delete-base-field','kind','color','sort','conjunction','entries','min','exec','required','#BBF7D0','\x20permission\x20denied.','decimalPlaces','getMonth','missingRecord','params','deleteTable','Numbering','MaxDepth','COLUMN','_fieldRegistry','viewId','splice','reason','_createRecordWithDefaults','_activeDirtyManagerService','CreatedBy','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20record-id\x20is\x20reserved.','base.resource.service','tableRevision','missingField','deletePermissionPoint','iterator','col','createSuperTableReference','pluginName','tables','at\x20index\x20','univer.basePerf','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','fieldIndex','deepClone','_removeSuperTables','_basePermissions','_viewRevisionKey','_isKanbanGroupField','compose','name','now','dashboard/','bases-exchange-client.operation.export-base-by-format','getCurrentUnitOfType','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','_createRecordOrderOp','thumbnail','setSnapshot','Todo','[BaseCommandService]:\x20cannot\x20edit\x20cell.','__base_hierarchy_parent__','base.command.move-base-hierarchy-record','fieldId','getOwnPropertyDescriptor','remove','options','BaseProjection.materializeTableRows','lastIndex','basePerf','attachment-','collaborators','[BaseViewRegistryService]:\x20view\x20type\x20\x22','config','_rememberTable','REMOTE_BASES_PLUGIN','11419864EzKqdb','filter','\x22\x20does\x20not\x20exist.','small','subType','path','Rating','1.0.1','rows','_projectedViewRowsCache','childrenByParentId','[BaseField]:\x20invalid\x20date\x20value.','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','getStructuredDependencies','base.command.rename-base-view','periodComma','_cacheKey','_toDirtyRangePatch','updateViewConfig','fieldName','oldParentRecordId','embedId','_runtimeContext','afterViewId','field','person','createView','invertOp','register','en-US','base.command.set-base-view-field-visible','base.command.set-base-name','globalRevision','week','too-long','forEach','key','addPermissionPoint','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','nodes','base-perf','patches','Parent','clearRecordPermission','allowNegative','columns','policy','onCommandExecuted','_resolveCalendarDateFieldId','add','base.command.','_configService','#16a34a','formula.mutation.set-formula-calculation-result','query','[BaseCommandService]:\x20invalid\x20cell\x20value.','Number','_buildGantt','base.command.set-permission','baseRows','MissingRecord','base.command.batch-create-base-records','deleteField','delete','getCapabilities','onlyLocal','getUnitId','[BaseField]:\x20invalid\x20multi-value\x20reference.','selectField','operand','star','isEmpty','facade','_getTablesToNormalize','greaterThanOrEqual','moveView','codePointAt','_sortRows','locale','manageView','HH:mm','tryMaterializeSnapshot','[DeleteBaseTableCommand]:\x20table\x20\x22','field/','getAffectedRanges','_viewRowsCacheKey','updateRecordOrder','[BaseHierarchy]:\x20field\x20\x22','Text','order','setRecordPermission','base.fieldType.','base.command.update-base-view-conditional-color-rules','_kanbanLaneColor','syncUnit','fieldIds','_deleteRecordsBaseOp','limit','undefined','[RecordLink]:\x20field\x20config\x20is\x20invalid.','canCreateRecord','registerCtorForType','status','NUMBER','Start\x20date','[BaseCommandService]:\x20cannot\x20delete\x20field.','invalid-characters','clear','createdBy','redo','_projectTableRows','IS_NOT','url','attachment','getSnapshot','yesterday',',\x22K\x22','CreatedAt','_createNumberingFieldValuePatches','targetTableId','BaseJson1.normalizeTables','greaterThan','Copy','tableOrder','normal','BaseView','base.viewType.grid','cardLayout','beforeFieldId','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','toString','base.mutation.apply-base-json1','_matchesGanttColorRule','\x20has\x20unsupported\x20target\x20\x22','round','moveField','groups','Date','recordId','_tablePermissions','\x22\x20with\x20field\x20type\x20\x22','getDay','has','\x20cannot\x20use\x20operator\x20\x22','changes','https://','reduce','value','$1\x20','doing','_getTableRevision','_tableRevisions','recordNamePrefix','isNot','createUpdateCellOp','_materializeGroups','Person','endsWith','base.mutation.','DESC','_projectHierarchyGroups','Checked','_rowTransformCacheSegment','setViewPermission','year','views','IS_NOT_EMPTY','End\x20date','objectId','result','editCell','isNotEmpty','viewIndexes','base.command.set-base-view-sort','UNIVER_BASE','_buildGallery','[BaseCommandService]:\x20cannot\x20edit\x20field.','http:','fromCollab','separatorStyle','_buildKanban'];_0x4376=function(){return _0x29bbb7;};return _0x4376();}function Vt(_0x58653e,_0x307160){const _0x38bc50=_0x6c183;if(!_0x307160['length']||_0x307160['some'](_0x38733a=>_0x38733a[_0x38bc50(0x28a)]!=='cell'))return!0x1;let _0x440372=new Map();for(let _0xa76db3 of _0x307160){if(!_0xa76db3[_0x38bc50(0x210)]||_0xa76db3[_0x38bc50(0x4b3)]==null||_0xa76db3[_0x38bc50(0x229)]==null)continue;let _0xa5683c=_0x440372[_0x38bc50(0x43e)](_0xa76db3[_0x38bc50(0x210)])??[];_0xa5683c[_0x38bc50(0x174)]({'row':_0xa76db3[_0x38bc50(0x4b3)],'col':_0xa76db3['column']}),_0x440372[_0x38bc50(0x49e)](_0xa76db3[_0x38bc50(0x210)],_0xa5683c);}return _0x440372[_0x38bc50(0x2e0)]((_0x4fef4e,_0x1b11d0)=>{var _0x3f2413;let _0x102f54=(_0x3f2413=_0x58653e['tables'])==null?void 0x0:_0x3f2413[_0x1b11d0];_0x102f54&&gt(_0x102f54,_0x4fef4e);}),!0x0;}function Ht(_0xa42937,_0x142c71){const _0x7ce1ec=_0x6c183;let _0x28f4a0=new Set();return _0x142c71[_0x7ce1ec(0x17a)](_0x3c6dd4=>{const _0x612421=_0x7ce1ec;var _0x3ff8c5;if(!_0x3c6dd4['tableId']||!_0x3c6dd4[_0x612421(0x347)]||!_0x3c6dd4['fieldId'])return[];let _0x5f0d1c=_0x3c6dd4[_0x612421(0x210)]+'\x1f'+_0x3c6dd4[_0x612421(0x347)]+'\x1f'+_0x3c6dd4['fieldId'];if(_0x28f4a0['has'](_0x5f0d1c))return[];_0x28f4a0[_0x612421(0x2ee)](_0x5f0d1c);let _0x19f903=(_0x3ff8c5=_0xa42937[_0x612421(0x298)][_0x3c6dd4[_0x612421(0x210)]])==null||(_0x3ff8c5=_0x3ff8c5[_0x612421(0x258)][_0x3c6dd4[_0x612421(0x347)]])==null?void 0x0:_0x3ff8c5[_0x612421(0x227)];return _0x19f903?[{'tableId':_0x3c6dd4[_0x612421(0x210)],'recordId':_0x3c6dd4[_0x612421(0x347)],'fieldId':_0x3c6dd4[_0x612421(0x2b0)],'exists':Object[_0x612421(0x246)][_0x612421(0x48a)][_0x612421(0x43b)](_0x19f903,_0x3c6dd4[_0x612421(0x2b0)]),'value':_0x19f903[_0x3c6dd4[_0x612421(0x2b0)]]}]:[];});}function Ut(_0x14e9df,_0x323475){const _0x2aa34d=_0x6c183;_0x323475[_0x2aa34d(0x2e0)](_0x39042c=>{const _0x2b2e4f=_0x2aa34d;var _0x507081;let _0x2f9786=(_0x507081=_0x14e9df[_0x2b2e4f(0x298)][_0x39042c[_0x2b2e4f(0x210)]])==null||(_0x507081=_0x507081[_0x2b2e4f(0x258)][_0x39042c[_0x2b2e4f(0x347)]])==null?void 0x0:_0x507081[_0x2b2e4f(0x227)];_0x2f9786&&(_0x39042c[_0x2b2e4f(0x443)]?_0x2f9786[_0x39042c['fieldId']]=_0x39042c[_0x2b2e4f(0x350)]:delete _0x2f9786[_0x39042c[_0x2b2e4f(0x2b0)]]);});}function Wt(_0xd73b86){const _0x5df920=_0x6c183;if(!Array['isArray'](_0xd73b86)||_0xd73b86[_0x5df920(0x13c)]<0x2)return[{'tableId':'','reason':_0x5df920(0x263)}];let _0x15edbf=_0xd73b86,_0x37c3ef=_0x15edbf['indexOf']('tables');return _0x37c3ef===-0x1||typeof _0x15edbf[_0x37c3ef+0x1]!='string'?_0x15edbf[0x0]===_0x5df920(0x338)?[]:[{'tableId':'','reason':_0x5df920(0x263)}]:Gt(_0x15edbf,_0x37c3ef,String(_0x15edbf[_0x37c3ef+0x1]));}function Gt(_0x2c1db4,_0x1e2865,_0x26c7bb){const _0x3903e8=_0x6c183;let _0x241796=_0x2c1db4[_0x1e2865+0x2];return _0x241796===_0x3903e8(0x258)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?Kt(_0x2c1db4,_0x1e2865,_0x26c7bb,String(_0x2c1db4[_0x1e2865+0x3])):_0x241796===_0x3903e8(0x389)&&_0x2c1db4[_0x1e2865+0x3]!=null&&_0x2c1db4[_0x1e2865+0x4]!=null?[{'tableId':_0x26c7bb,'reason':'cell','row':Number(_0x2c1db4[_0x1e2865+0x3]),'column':Number(_0x2c1db4[_0x1e2865+0x4])}]:_0x241796===_0x3903e8(0x398)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x2d5),'fieldId':String(_0x2c1db4[_0x1e2865+0x3])}]:_0x241796==='fieldOrder'?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x2d5)}]:_0x241796===_0x3903e8(0x1e7)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x493)}]:_0x241796===_0x3903e8(0x362)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x37d),'viewId':String(_0x2c1db4[_0x1e2865+0x3])}]:_0x241796===_0x3903e8(0x1cd)?[{'tableId':_0x26c7bb,'reason':'view'}]:_0x241796===_0x3903e8(0x421)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x1de)}]:[{'tableId':_0x26c7bb,'reason':_0x241796===void 0x0?_0x3903e8(0x4c7):'unknown'}];}function Kt(_0x25d2da,_0x1a07db,_0xabd3a7,_0x358041){const _0x4374ad=_0x6c183;return _0x25d2da[_0x1a07db+0x4]==='values'&&typeof _0x25d2da[_0x1a07db+0x5]==_0x4374ad(0x425)?[{'tableId':_0xabd3a7,'reason':'cell','recordId':_0x358041,'fieldId':String(_0x25d2da[_0x1a07db+0x5])}]:_0x25d2da[_0x1a07db+0x4]===_0x4374ad(0x45d)||_0x25d2da[_0x1a07db+0x4]===_0x4374ad(0x1e6)?[]:[{'tableId':_0xabd3a7,'reason':_0x4374ad(0x493),'recordId':_0x358041}];}function qt(_0x5455e7){const _0x145e2d=_0x6c183;if(!Array[_0x145e2d(0x431)](_0x5455e7))return[];let _0x5aa2c5=_0x5455e7[_0x145e2d(0x2be)](Array[_0x145e2d(0x431)]);if(_0x5aa2c5[_0x145e2d(0x13c)]>0x1&&_0x5aa2c5[_0x145e2d(0x13c)]===_0x5455e7['length'])return _0x5aa2c5;let _0x4557c1=_0x5455e7[_0x145e2d(0x442)](Array['isArray']);if(_0x4557c1>0x0&&_0x5455e7['slice'](_0x4557c1)[_0x145e2d(0x387)](Array[_0x145e2d(0x431)])){let _0xe901f5=_0x5455e7[_0x145e2d(0x12c)](0x0,_0x4557c1);return _0x5455e7['slice'](_0x4557c1)[_0x145e2d(0x141)](_0x5a5336=>[..._0xe901f5,..._0x5a5336]);}let _0x5e8f5f=_0x5455e7[_0x145e2d(0x44e)](_0x145e2d(0x298));if(_0x5e8f5f===-0x1||typeof _0x5455e7[_0x5e8f5f+0x1]!=_0x145e2d(0x425))return[];let _0x3e02a8=String(_0x5455e7[_0x5e8f5f+0x1]),_0x11072d=_0x5455e7[_0x145e2d(0x12c)](_0x5e8f5f+0x2)[_0x145e2d(0x2be)](Array[_0x145e2d(0x431)]);return _0x11072d[_0x145e2d(0x13c)]<=0x1?[]:_0x11072d[_0x145e2d(0x141)](_0x5800f1=>[_0x145e2d(0x298),_0x3e02a8,..._0x5800f1]);}function Jt(_0x3995f9){let _0x5185d8=new Set();return _0x3995f9['filter'](_0x2f41e1=>{const _0x122027=_0x2b5a;let _0x4c6010=JSON[_0x122027(0x25f)](_0x2f41e1);return!_0x5185d8[_0x122027(0x34b)](_0x4c6010)&&(_0x5185d8[_0x122027(0x2ee)](_0x4c6010),!0x0);});}function Yt(_0x558259){const _0x1569c4=_0x6c183;return _0x4e3c3d[_0x1569c4(0x29d)](_0x558259);}function Xt(_0x2fc663,_0x2c69c2){const _0x5b4b87=_0x6c183;let _0x22af51=Zt(_0x2c69c2);if(!_0x22af51[_0x5b4b87(0x13c)])return Yt(_0x2fc663);let _0x3d458e=an(_0x2fc663),_0x5a374b=new Set();for(let _0x3ea0ab of _0x22af51)en(_0x3d458e,_0x3ea0ab,_0x5a374b);return _0x3d458e;}function Zt(_0x20949d){let _0x5e2603=[];return Qt(_0x20949d,[],_0x5e2603),_0x5e2603;}function Qt(_0x226ea8,_0x4ea9fc,_0x44fe93){const _0x48b3fc=_0x6c183;if(!Array[_0x48b3fc(0x431)](_0x226ea8))return;let _0x45d5a9=[];for(let _0x35a7b5 of _0x226ea8){if(Array[_0x48b3fc(0x431)](_0x35a7b5)){Qt(_0x35a7b5,[..._0x4ea9fc,..._0x45d5a9],_0x44fe93);continue;}if($t(_0x35a7b5)){_0x44fe93[_0x48b3fc(0x174)]([..._0x4ea9fc,..._0x45d5a9]);continue;}(typeof _0x35a7b5==_0x48b3fc(0x425)||typeof _0x35a7b5=='number')&&_0x45d5a9[_0x48b3fc(0x174)](_0x35a7b5);}}function $t(_0x433a06){const _0x2e23f6=_0x6c183;if(!_0x433a06||typeof _0x433a06!='object'||Array['isArray'](_0x433a06))return!0x1;let _0x1dae1d=_0x433a06;return'i'in _0x1dae1d||'r'in _0x1dae1d||'p'in _0x1dae1d||'d'in _0x1dae1d||'es'in _0x1dae1d||_0x2e23f6(0x41c)in _0x1dae1d||'et'in _0x1dae1d;}function en(_0x23bbdb,_0x2e1358,_0x33c32a){const _0x31bf25=_0x6c183;let _0x4e83b3=_0x23bbdb,_0x2d06cc=[];for(let _0x414574=0x0;_0x414574<_0x2e1358['length']-0x1;_0x414574++){let _0x24294f=_0x2e1358[_0x414574];_0x2d06cc[_0x31bf25(0x174)](_0x24294f);let _0x3836c4=tn(_0x4e83b3,_0x24294f);if(!rn(_0x3836c4))return;let _0x5aa60d=JSON[_0x31bf25(0x25f)](_0x2d06cc);_0x33c32a[_0x31bf25(0x34b)](_0x5aa60d)||(nn(_0x4e83b3,_0x24294f,an(_0x3836c4)),_0x33c32a['add'](_0x5aa60d));let _0x59fa34=tn(_0x4e83b3,_0x24294f);if(!rn(_0x59fa34))return;_0x4e83b3=_0x59fa34;}}function tn(_0x2c7042,_0x33e1e6){const _0x2b3d57=_0x6c183;return Array[_0x2b3d57(0x431)](_0x2c7042)?typeof _0x33e1e6==_0x2b3d57(0x24b)?_0x2c7042[_0x33e1e6]:void 0x0:Reflect[_0x2b3d57(0x43e)](_0x2c7042,_0x33e1e6);}function nn(_0x1a205e,_0x39a048,_0x25b1ba){const _0x2cd5dc=_0x6c183;if(Array[_0x2cd5dc(0x431)](_0x1a205e)){typeof _0x39a048==_0x2cd5dc(0x24b)&&(_0x1a205e[_0x39a048]=_0x25b1ba);return;}Reflect[_0x2cd5dc(0x49e)](_0x1a205e,_0x39a048,_0x25b1ba);}function rn(_0x40bc00){const _0x86d418=_0x6c183;return!!_0x40bc00&&typeof _0x40bc00==_0x86d418(0x3d7);}function an(_0x545c03){const _0x3dabaf=_0x6c183;return Array[_0x3dabaf(0x431)](_0x545c03)?_0x545c03[_0x3dabaf(0x12c)]():{..._0x545c03};}const on=_0x6c183(0x149),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':'YYYY/MM/DD','yyyy-mm-dd':_0x6c183(0x127),'mm-dd':_0x6c183(0x26c),'mm/dd/yyyy':_0x6c183(0x1c5),'dd/mm/yyyy':_0x6c183(0x19f),'mmm\x20d,\x20yyyy':_0x6c183(0x404)};function B(_0x55060c,_0x4694eb=_0x5c27c9[_0x6c183(0x248)]){let _0x3c9c41=_0x509f61(_0x55060c)['valueOf']();return _0x36b37f(new Date(_0x3c9c41),_0x4694eb);}function ln(_0x1f205b,_0x349950=_0x5c27c9[_0x6c183(0x248)]){const _0x171766=_0x6c183;return _0x33b7e5(_0x1f205b,_0x349950)[_0x171766(0x3d3)]();}function un(_0x1b04a3,_0x799a6=_0x5c27c9[_0x6c183(0x248)]){const _0x121ce1=_0x6c183;if(_0x1b04a3==null||_0x1b04a3==='')return null;if(_0x1b04a3 instanceof Date)return B(_0x1b04a3,_0x799a6);if(typeof _0x1b04a3==_0x121ce1(0x24b))return Number[_0x121ce1(0x143)](_0x1b04a3)?_0x1b04a3>0xf4240?B(_0x1b04a3,_0x799a6):_0x1b04a3:null;let _0x51a501=Date['parse'](String(_0x1b04a3));return Number[_0x121ce1(0x47b)](_0x51a501)?null:B(_0x51a501,_0x799a6);}function dn(_0x3fe07a,_0x189912=_0x5c27c9[_0x6c183(0x248)]){let _0x344572=un(_0x3fe07a,_0x189912);return _0x344572==null?null:ln(_0x344572,_0x189912);}function fn(_0x43ca07={}){const _0x3b79ba=_0x6c183;let _0x210c7b=String(_0x43ca07[_0x3b79ba(0x235)]??_0x43ca07[_0x3b79ba(0x3cd)]??_0x43ca07[_0x3b79ba(0x262)]??on)['trim']()||on,_0x11d590=sn[_0x3b79ba(0x215)](_0x210c7b);return{'pattern':_0x210c7b[_0x3b79ba(0x14e)](sn,'')||on,'includeTime':typeof _0x43ca07[_0x3b79ba(0x22e)]==_0x3b79ba(0x1cb)?_0x43ca07[_0x3b79ba(0x22e)]:_0x11d590,'hourCycle':_0x43ca07['hourCycle']===_0x3b79ba(0x384)?_0x3b79ba(0x384):'h24'};}function pn(_0x8d5cc={}){let {format:_0x5bfbce,dateFormat:_0x6b1f7f,..._0x206887}=_0x8d5cc;return{..._0x206887,...fn(_0x8d5cc)};}function mn(_0x194f5e,_0xe90be={}){const _0x5e9798=_0x6c183;let _0x2352b0=dn(_0x194f5e);if(_0x2352b0==null||!Number['isFinite'](_0x2352b0))return'';let _0x302521=fn(_0xe90be);return _0x509f61(_0x2352b0)[_0x5e9798(0x3cd)](hn(_0x302521));}function hn(_0x1f34df){const _0x304e3c=_0x6c183;let {pattern:_0x1fb3cb,includeTime:_0x199180,hourCycle:_0x1dc501}=_0x1f34df,_0x3340a8=cn[_0x1fb3cb]??cn[on];return _0x199180?_0x3340a8+'\x20'+(_0x1dc501===_0x304e3c(0x384)?_0x304e3c(0x18b):_0x304e3c(0x30d)):_0x3340a8;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x3a044b[_0x6c183(0x22f)]]),V=0x5265c00;function vn(_0x3f8d03){const _0x1604b5=_0x6c183;switch(_0x3f8d03){case _0x3a044b[_0x1604b5(0x2f5)]:case _0x3a044b[_0x1604b5(0x14d)]:case _0x3a044b[_0x1604b5(0x140)]:case _0x3a044b[_0x1604b5(0x2c3)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x1e5)],_0x50d725['LESS_THAN'],_0x50d725[_0x1604b5(0x37e)],_0x50d725['IS_NOT_EMPTY']];case _0x3a044b[_0x1604b5(0x346)]:case _0x3a044b[_0x1604b5(0x332)]:case _0x3a044b[_0x1604b5(0x1fa)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x24e)],_0x50d725['AFTER'],_0x50d725[_0x1604b5(0x37e)],_0x50d725['IS_NOT_EMPTY']];case _0x3a044b[_0x1604b5(0x233)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)]];default:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x447)],_0x50d725[_0x1604b5(0x253)],_0x50d725[_0x1604b5(0x37e)],_0x50d725[_0x1604b5(0x363)]];}}function yn(_0x980013){const _0x542465=_0x6c183;return _0x980013===_0x3a044b['Date']||_0x980013===_0x3a044b['CreatedAt']||_0x980013===_0x3a044b[_0x542465(0x1fa)];}function bn(_0x382c01,_0x489a6a){const _0xb6f6d7=_0x6c183;return _0x382c01==null&&_0x489a6a==null?0x0:_0x382c01==null?-0x1:_0x489a6a==null?0x1:typeof _0x382c01==_0xb6f6d7(0x24b)&&typeof _0x489a6a==_0xb6f6d7(0x24b)?_0x382c01-_0x489a6a:String(_0x382c01)[_0xb6f6d7(0x37a)](String(_0x489a6a));}function xn(_0x544b5f,_0x1237c6,_0x16fc28,_0x1a6daf,_0x223a93={}){const _0x2df731=_0x6c183;if(_0x1237c6===_0x2df731(0x304))return Sn(_0x544b5f);if(_0x1237c6===_0x2df731(0x368))return!Sn(_0x544b5f);switch(_0x1a6daf[_0x2df731(0x20b)]){case _0x3a044b['Number']:case _0x3a044b['Currency']:case _0x3a044b['Progress']:case _0x3a044b['Rating']:return Cn(_0x544b5f,_0x1237c6,_0x16fc28);case _0x3a044b['Date']:case _0x3a044b[_0x2df731(0x332)]:case _0x3a044b['UpdatedAt']:return Tn(_0x544b5f,_0x1237c6,_0x16fc28,_0x223a93);case _0x3a044b['Checkbox']:return jn(_0x544b5f,_0x1237c6,_0x16fc28);case _0x3a044b[_0x2df731(0x20e)]:case _0x3a044b['MultiSelect']:case _0x3a044b[_0x2df731(0x359)]:case _0x3a044b['Group']:return Nn(_0x544b5f,_0x1237c6,_0x16fc28,_0x1a6daf);default:return Pn(_0x544b5f,_0x1237c6,_0x16fc28);}}function Sn(_0x52f419){const _0x5cde00=_0x6c183;return _0x52f419==null?!0x0:Array['isArray'](_0x52f419)?_0x52f419[_0x5cde00(0x13c)]===0x0:typeof _0x52f419==_0x5cde00(0x425)&&_0x52f419[_0x5cde00(0x226)]()==='';}function Cn(_0x183f88,_0xe7f246,_0x4e5ebf){const _0x47f51e=_0x6c183;let _0xde3745=wn(_0x183f88),_0x439b67=wn(_0x4e5ebf);if(_0xde3745==null||_0x439b67==null)return!0x1;switch(_0xe7f246){case'is':return _0xde3745===_0x439b67;case _0x47f51e(0x356):return _0xde3745!==_0x439b67;case _0x47f51e(0x336):return _0xde3745>_0x439b67;case _0x47f51e(0x307):return _0xde3745>=_0x439b67;case'lessThan':return _0xde3745<_0x439b67;case _0x47f51e(0x21b):return _0xde3745<=_0x439b67;default:return!0x1;}}function wn(_0x475c3a){const _0x11725d=_0x6c183;if(_0x475c3a==null||_0x475c3a==='')return null;let _0x1c8f1c=Number(_0x475c3a);return Number[_0x11725d(0x143)](_0x1c8f1c)?_0x1c8f1c:null;}function Tn(_0x27dca7,_0x29add6,_0x4c1dfc,_0x35199b){const _0x33728c=_0x6c183;let _0x52a9a9=Dn(_0x27dca7);if(_0x52a9a9==null)return!0x1;let _0x2068df=En(_0x35199b[_0x33728c(0x3ea)]??_0x33728c(0x433),_0x4c1dfc,_0x35199b['now']);if(!_0x2068df)return!0x1;switch(_0x29add6){case'is':return _0x52a9a9>=_0x2068df['start']&&_0x52a9a9<=_0x2068df[_0x33728c(0x439)];case _0x33728c(0x356):return _0x52a9a9<_0x2068df['start']||_0x52a9a9>_0x2068df[_0x33728c(0x439)];case _0x33728c(0x244):return _0x52a9a9<_0x2068df['start'];case _0x33728c(0x427):return _0x52a9a9>_0x2068df[_0x33728c(0x439)];default:return!0x1;}}function En(_0x1875aa,_0x23fb02,_0x443000=Date[_0x6c183(0x2a4)]()){const _0x420c0f=_0x6c183;let _0x43edc7=On(_0x443000);switch(_0x1875aa){case'exact':{let _0x32d91c=Dn(_0x23fb02);return _0x32d91c==null?null:{'start':_0x32d91c,'end':_0x32d91c+V-0x1};}case _0x420c0f(0x17f):return{'start':_0x43edc7,'end':_0x43edc7+V-0x1};case'tomorrow':return{'start':_0x43edc7+V,'end':_0x43edc7+V*0x2-0x1};case _0x420c0f(0x330):return{'start':_0x43edc7-V,'end':_0x43edc7-0x1};case'thisWeek':return kn(_0x43edc7,0x0);case'lastWeek':return kn(_0x43edc7,-0x1);case _0x420c0f(0x170):return An(_0x43edc7,0x0);case'lastMonth':return An(_0x43edc7,-0x1);case _0x420c0f(0x1f7):return{'start':_0x43edc7-V*0x6,'end':_0x43edc7+V-0x1};case _0x420c0f(0x385):return{'start':_0x43edc7,'end':_0x43edc7+V*0x7-0x1};case _0x420c0f(0x148):return{'start':_0x43edc7-V*0x1d,'end':_0x43edc7+V-0x1};case _0x420c0f(0x3de):return{'start':_0x43edc7,'end':_0x43edc7+V*0x1e-0x1};}}function Dn(_0x5459be){let _0x2f8565=un(_0x5459be);return _0x2f8565==null?null:On(ln(_0x2f8565));}function On(_0x4798d8){const _0x17e8c1=_0x6c183;let _0xe91f47=new Date(_0x4798d8);return _0xe91f47['setHours'](0x0,0x0,0x0,0x0),_0xe91f47[_0x17e8c1(0x3d3)]();}function kn(_0x5d352f,_0x1b7b40){const _0x1de306=_0x6c183;let _0x941c11=_0x5d352f-(new Date(_0x5d352f)[_0x1de306(0x34a)]()+0x6)%0x7*V+_0x1b7b40*V*0x7;return{'start':_0x941c11,'end':_0x941c11+V*0x7-0x1};}function An(_0x59c990,_0x3bb7ad){const _0x3a21ed=_0x6c183;let _0x16db1b=new Date(_0x59c990),_0x32536f=new Date(_0x16db1b[_0x3a21ed(0x422)](),_0x16db1b[_0x3a21ed(0x280)]()+_0x3bb7ad,0x1),_0x1bbc22=new Date(_0x16db1b[_0x3a21ed(0x422)](),_0x16db1b[_0x3a21ed(0x280)]()+_0x3bb7ad+0x1,0x1);return{'start':_0x32536f[_0x3a21ed(0x3d3)](),'end':_0x1bbc22[_0x3a21ed(0x3d3)]()-0x1};}function jn(_0x1031c6,_0x331eba,_0x4576a4){const _0x2a1e00=_0x6c183;let _0x7b3651=Mn(_0x1031c6),_0x52b1b9=Mn(_0x4576a4);switch(_0x331eba){case'is':return _0x7b3651===_0x52b1b9;case _0x2a1e00(0x356):return _0x7b3651!==_0x52b1b9;default:return!0x1;}}function Mn(_0x1eea4c){const _0x5ebf20=_0x6c183;return _0x1eea4c===!0x0||_0x1eea4c===_0x5ebf20(0x269)||_0x1eea4c===0x1||_0x1eea4c==='1';}function Nn(_0xf56af1,_0x38493d,_0x37ebf7,_0x2ca56c){const _0x45ddbf=_0x6c183;let _0x351701=In(_0xf56af1,_0x2ca56c),_0x5cec58=In(_0x37ebf7,_0x2ca56c),_0x5a2ba5=_0x5cec58[_0x45ddbf(0x13c)]>0x0&&_0x5cec58[_0x45ddbf(0x185)](_0x391341=>_0x351701[_0x45ddbf(0x16a)](_0x391341));switch(_0x38493d){case'is':case'contains':return _0x5a2ba5;case _0x45ddbf(0x356):case _0x45ddbf(0x114):return!_0x5a2ba5;default:return!0x1;}}function Pn(_0x503081,_0x4d0da2,_0x53b3e2){const _0x4bac62=_0x6c183;let _0xd0521b=Fn(_0x503081),_0x3bb569=Fn(_0x53b3e2);switch(_0x4d0da2){case'is':return _0xd0521b===_0x3bb569;case _0x4bac62(0x356):return _0xd0521b!==_0x3bb569;case _0x4bac62(0x4ca):return _0x3bb569?_0xd0521b[_0x4bac62(0x16a)](_0x3bb569):!0x1;case _0x4bac62(0x114):return!_0x3bb569||!_0xd0521b[_0x4bac62(0x16a)](_0x3bb569);default:return!0x1;}}function Fn(_0x2fe538){const _0x1e343c=_0x6c183;if(Array[_0x1e343c(0x431)](_0x2fe538))return _0x2fe538[_0x1e343c(0x141)](_0x36396b=>Fn(_0x36396b))[_0x1e343c(0x11a)]('\x0a');if(_0x2fe538&&typeof _0x2fe538=='object'){let _0x121eee=_0x2fe538;return String(_0x121eee['name']??_0x121eee['label']??_0x121eee['text']??_0x121eee[_0x1e343c(0x350)]??_0x121eee['id']??'')[_0x1e343c(0x226)]()[_0x1e343c(0x432)]();}return String(_0x2fe538??'')['trim']()[_0x1e343c(0x432)]();}function In(_0x5a6ee5,_0x135be5){const _0x594016=_0x6c183;let _0x309623=Ln(_0x5a6ee5),_0x561e31=Rn(_0x135be5[_0x594016(0x2ba)]??{});return _0x309623[_0x594016(0x17a)](_0x103f46=>_0x561e31[_0x594016(0x43e)](_0x103f46)??[_0x103f46])['filter']((_0x2f0efa,_0x5d91aa,_0x1f4b77)=>_0x2f0efa!==''&&_0x1f4b77[_0x594016(0x44e)](_0x2f0efa)===_0x5d91aa);}function Ln(_0x17272c){const _0xbef247=_0x6c183;if(_0x17272c==null||_0x17272c==='')return[];if(Array[_0xbef247(0x431)](_0x17272c))return _0x17272c[_0xbef247(0x17a)](_0x50dd22=>Ln(_0x50dd22));if(_0x17272c&&typeof _0x17272c==_0xbef247(0x3d7)){let _0xf43b4e=_0x17272c;return['id','name',_0xbef247(0x39d),_0xbef247(0x350),_0xbef247(0x3ae)]['flatMap'](_0xc48f82=>Ln(_0xf43b4e[_0xc48f82]))[_0xbef247(0x2be)]((_0x5c6168,_0xdc3df8,_0xae6d0)=>_0xae6d0['indexOf'](_0x5c6168)===_0xdc3df8);}return[Fn(_0x17272c)];}function Rn(_0x1b7c59){const _0x164e51=_0x6c183;let _0x39fa0b=new Map();return(Array[_0x164e51(0x431)](_0x1b7c59[_0x164e51(0x2b3)])?_0x1b7c59[_0x164e51(0x2b3)]:[])[_0x164e51(0x2e0)](_0x26718a=>{const _0x27b740=_0x164e51;if(!_0x26718a||typeof _0x26718a!=_0x27b740(0x3d7))return;let _0x4eb76f=Ln(_0x26718a),_0xe4e984=_0x4eb76f[_0x27b740(0x2be)]((_0x10d358,_0x21e60f)=>_0x10d358!==''&&_0x4eb76f[_0x27b740(0x44e)](_0x10d358)===_0x21e60f);_0xe4e984['forEach'](_0x3f8c05=>_0x39fa0b[_0x27b740(0x49e)](_0x3f8c05,_0xe4e984));}),_0x39fa0b;}function H(_0x15ac03,_0x2b3f96={},_0x28d251=_0x393c8f=>_0x393c8f,_0x5741c6={}){const _0x361814=_0x6c183;let _0x3866fa=!_n[_0x361814(0x34b)](_0x15ac03),_0x3068e0=_0x28d251??(_0x28b360=>_0x28b360);return{'type':_0x15ac03,'i18nKey':_0x361814(0x318)+_0x15ac03,'enabled':_0x3866fa,'visibleInCreateMenu':_0x3866fa,'createDefaultConfig':_0x5741c6[_0x361814(0x399)]??(()=>({})),'createDefaultValue':_0x5741c6['createDefaultValue']??(_0x3308e6=>_0x3308e6['defaultValue']??null),'normalize':(_0x341c82,_0x549fdb)=>_0x3068e0(_0x341c82,_0x549fdb),'validate':(_0x32ae9a,_0x5f3c5d)=>{const _0x296537=_0x361814;var _0x5358ab;return _0x3866fa?((_0x5358ab=_0x5741c6[_0x296537(0x1a8)])==null?void 0x0:_0x5358ab[_0x296537(0x43b)](_0x5741c6,_0x32ae9a,_0x5f3c5d))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x3e2567,_0x37f888)=>bn(_0x3e2567,_0x37f888),'filter':(_0x5ce96f,_0x5abd1c,_0x39d388,_0x3e0249)=>xn(_0x5ce96f,_0x5abd1c,_0x39d388,_0x3e0249),'toPlainText':_0x5741c6[_0x361814(0x144)]??(_0x4e6bc2=>_0x4e6bc2==null?'':String(_0x4e6bc2)),'fromPlainText':_0x5741c6[_0x361814(0x462)]??(_0x2b0e67=>_0x3068e0(_0x2b0e67,{'id':'','name':'','type':_0x15ac03,'config':{}})),'getCapabilities':()=>({...gn,..._0x2b3f96,'editable':_0x3866fa&&(_0x2b3f96[_0x361814(0x461)]??gn[_0x361814(0x461)])})};}function zn(){const _0x1a28dd=_0x6c183;return[H(_0x3a044b[_0x1a28dd(0x315)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1a28dd(0x21e)}),'createDefaultValue':_0x669bb8=>_0x669bb8['defaultValue']??''}),H(_0x3a044b[_0x1a28dd(0x20e)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x224ca0=>_0x224ca0==null||_0x224ca0===''?null:String(_0x224ca0),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1a28dd(0x491)}})}),H(_0x3a044b['MultiSelect'],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x272643=>Array[_0x1a28dd(0x431)](_0x272643)?_0x272643[_0x1a28dd(0x141)](String):_0x272643==null?[]:[String(_0x272643)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1a28dd(0x491)}}),'createDefaultValue':_0x43197e=>_0x43197e[_0x1a28dd(0x15a)]??[]}),H(_0x3a044b[_0x1a28dd(0x359)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1a28dd(0x2d6)}),'validate':Gn}),H(_0x3a044b[_0x1a28dd(0x1ad)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':'group'}),'createDefaultValue':_0x483d0f=>_0x483d0f['defaultValue']??[],'validate':Kn}),H(_0x3a044b[_0x1a28dd(0x346)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x144fc8=>un(_0x144fc8),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x3a044b[_0x1a28dd(0x1ab)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x528ff5=>_0x528ff5==null?[]:Array[_0x1a28dd(0x431)](_0x528ff5)?_0x528ff5:[_0x528ff5],{'createDefaultValue':_0x1ff62b=>_0x1ff62b[_0x1a28dd(0x15a)]??[]}),H(_0x3a044b[_0x1a28dd(0x2f5)],{},_0x52089d=>_0x52089d==null||_0x52089d===''?null:Number(_0x52089d),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x3a044b['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x3dedf8=>_0x3dedf8===!0x0||_0x3dedf8===_0x1a28dd(0x269)||_0x3dedf8===0x1||_0x3dedf8==='1',{'createDefaultConfig':()=>({'icon':'check','color':_0x1a28dd(0x2f1)}),'createDefaultValue':_0x371116=>_0x371116[_0x1a28dd(0x15a)]??!0x1,'validate':_0x4ea8a8=>typeof _0x4ea8a8==_0x1a28dd(0x1cb)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x272)}}),H(_0x3a044b['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.linkPlaceholder'}),'toPlainText':_0x30472d=>Zn(_0x30472d),'fromPlainText':_0x369460=>Xn(_0x369460)}),H(_0x3a044b['Formula'],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':'general','pattern':_0x1a28dd(0x453)}}),'createDefaultValue':()=>null}),H(_0x3a044b['Numbering'],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':'autoIncrement'}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x464)],{'usableAsTitle':!0x0},_0x2b0143=>_0x2b0143==null?null:String(_0x2b0143)[_0x1a28dd(0x226)](),{'validate':_0x45f5a4=>_0x45f5a4==null||_0x45f5a4===''||/^\+?[0-9 ()-]{6,20}$/[_0x1a28dd(0x215)](String(_0x45f5a4))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x207)}}),H(_0x3a044b[_0x1a28dd(0x26f)],{'usableAsTitle':!0x0},_0x3d7080=>_0x3d7080==null?null:String(_0x3d7080)[_0x1a28dd(0x226)](),{'validate':_0x309542=>_0x309542==null||_0x309542===''||$n(String(_0x309542))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x173)}}),H(_0x3a044b['Progress'],{'usableAsGanttProgress':!0x0},_0xc87f25=>_0xc87f25==null||_0xc87f25===''?null:Number(_0xc87f25),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1a28dd(0x401),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x3369d5,_0x1081a1)=>Yn(_0x3369d5,_0x1081a1,_0x1a28dd(0x169))}),H(_0x3a044b['Currency'],{},_0x3d451b=>_0x3d451b==null||_0x3d451b===''?null:Number(_0x3d451b),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x3a044b[_0x1a28dd(0x2c3)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x2fa611=>_0x2fa611==null||_0x2fa611===''?null:Number(_0x2fa611),{'createDefaultConfig':()=>({'icon':_0x1a28dd(0x303),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x564a15,_0x3d4fd8)=>Yn(_0x564a15,_0x3d4fd8,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x3a044b['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x2ee3c3,_0x855f0c)=>ze(_0x2ee3c3,_0x855f0c[_0x1a28dd(0x2ba)][_0x1a28dd(0x376)]===!0x0)}),H(_0x3a044b['RecordId'],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x3a044b['CreatedBy'],{'editable':!0x1,'groupable':!0x0},_0x382ed7=>_0x382ed7==null?null:String(_0x382ed7),{'createDefaultConfig':()=>({'provider':_0x1a28dd(0x268)}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x241)],{'editable':!0x1,'groupable':!0x0},_0x5c5e05=>_0x5c5e05==null?null:String(_0x5c5e05),{'createDefaultConfig':()=>({'provider':'user'}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x332)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x43eaa2=>un(_0x43eaa2),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x3a044b[_0x1a28dd(0x1fa)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x1e683b=>un(_0x1e683b),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x66c79d=_0x6c183;return{'pattern':'#,##0.00','decimalPlaces':0x2,'separatorStyle':_0x66c79d(0x231),'useThousands':!0x0,'abbreviation':_0x66c79d(0x42f),'allowNegative':!0x0};}function Vn(){const _0x530e83=_0x6c183;return{'locale':_0x530e83(0x2da),'pattern':_0x530e83(0x149),'includeTime':!0x1,'hourCycle':_0x530e83(0x147),'defaultMode':_0x530e83(0x42f)};}function Hn(_0x469201){const _0x30e6a2=_0x6c183;return _0x469201==null||_0x469201===''?[]:Array[_0x30e6a2(0x431)](_0x469201)?_0x469201['map'](String):[String(_0x469201)];}function Un(_0x2b2586){const _0x12b38f=_0x6c183;return typeof _0x2b2586==_0x12b38f(0x425)?_0x2b2586:'';}function Wn(_0xa45271,_0x1cf6d6){const _0x523e31=_0x6c183;return _0xa45271==null||_0xa45271===''?_0x1cf6d6[_0x523e31(0x2ba)]['allowMultiple']===!0x0?[]:null:_0x1cf6d6[_0x523e31(0x2ba)][_0x523e31(0x198)]===!0x0?Array[_0x523e31(0x431)](_0xa45271)?_0xa45271[_0x523e31(0x141)](String):[String(_0xa45271)]:Array['isArray'](_0xa45271)?String(_0xa45271[0x0]??'')||null:String(_0xa45271);}function Gn(_0x135deb,_0x31678b){const _0xf83622=_0x6c183;return _0x31678b['config'][_0xf83622(0x198)]===!0x0?Kn(_0x135deb):_0x135deb==null||_0x135deb===''||typeof _0x135deb==_0xf83622(0x425)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20person\x20value.'};}function Kn(_0x1a4c98){const _0x4f3cc1=_0x6c183;return _0x1a4c98==null||Array[_0x4f3cc1(0x431)](_0x1a4c98)&&_0x1a4c98['every'](_0x3ae5da=>typeof _0x3ae5da==_0x4f3cc1(0x425))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4f3cc1(0x300)};}function qn(_0x5277de){const _0x140b9f=_0x6c183;return _0x5277de==null||typeof _0x5277de==_0x140b9f(0x24b)&&Number[_0x140b9f(0x143)](_0x5277de)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x140b9f(0x2c8)};}function Jn(_0x20f84b,_0x451649){const _0x800bf2=_0x6c183;return _0x20f84b==null||_0x20f84b===''?{'valid':!0x0}:typeof _0x20f84b!=_0x800bf2(0x24b)||!Number[_0x800bf2(0x143)](_0x20f84b)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x451649[_0x800bf2(0x2ba)][_0x800bf2(0x2e9)]===!0x1&&_0x20f84b<0x0?{'valid':!0x1,'reason':_0x800bf2(0x479)}:{'valid':!0x0};}function Yn(_0x5a02a8,_0x11c176,_0x394bdd){const _0xa14b8c=_0x6c183;let _0x4f80d4=Jn(_0x5a02a8,_0x11c176);if(!_0x4f80d4[_0xa14b8c(0x26e)]||_0x5a02a8==null||_0x5a02a8==='')return _0x4f80d4;let _0x149fac=Number(_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x27a)]??_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x41a)]??0x0),_0x4403aa=Number(_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x482)]??_0x11c176['config'][_0xa14b8c(0x439)]??0x64),_0x571ee7=Number(_0x5a02a8);return _0x571ee7>=_0x149fac&&_0x571ee7<=_0x4403aa?{'valid':!0x0}:{'valid':!0x1,'reason':_0x394bdd};}function Xn(_0x1a9f62){const _0x28cee4=_0x6c183;if(_0x1a9f62==null||_0x1a9f62==='')return null;if(typeof _0x1a9f62=='object'&&!Array[_0x28cee4(0x431)](_0x1a9f62)){let _0xb91756=_0x1a9f62,_0x2e6822=typeof _0xb91756['text']==_0x28cee4(0x425)?_0xb91756['text'][_0x28cee4(0x226)]():'',_0x500f9c=typeof _0xb91756[_0x28cee4(0x32d)]==_0x28cee4(0x425)?_0xb91756['url']['trim']():'',_0x2de4c0=Qn(_0x500f9c||_0x2e6822);return _0x2de4c0?{'text':_0x2e6822||_0x500f9c||_0x2de4c0,'url':_0x2de4c0}:null;}let _0x5b0947=String(_0x1a9f62)[_0x28cee4(0x226)](),_0x3a79e3=Qn(_0x5b0947);return _0x3a79e3?{'text':_0x5b0947,'url':_0x3a79e3}:null;}function Zn(_0x37b513){const _0xf0d793=_0x6c183;if(_0x37b513==null)return'';if(typeof _0x37b513==_0xf0d793(0x3d7)&&!Array[_0xf0d793(0x431)](_0x37b513)){let _0x559690=_0x37b513;return String(_0x559690[_0xf0d793(0x3ae)]||_0x559690[_0xf0d793(0x32d)]||'');}return String(_0x37b513);}function Qn(_0xa9f43a){const _0x19ae47=_0x6c183;let _0x4a3a10=_0xa9f43a[_0x19ae47(0x226)]();if(!_0x4a3a10)return'';let _0x356b5c=/^[a-z][a-z\d+.-]*:/i[_0x19ae47(0x215)](_0x4a3a10)?_0x4a3a10:_0x4a3a10[_0x19ae47(0x1fb)]('//')?_0x19ae47(0x22b)+_0x4a3a10:_0x19ae47(0x34e)+_0x4a3a10;try{let _0x21096f=new URL(_0x356b5c);return _0x21096f[_0x19ae47(0x116)]===_0x19ae47(0x36e)||_0x21096f[_0x19ae47(0x116)]===_0x19ae47(0x22b)?_0x21096f['href']:'';}catch{return'';}}function $n(_0x1b60f2){const _0x4f4f63=_0x6c183;let _0x232168=_0x1b60f2[_0x4f4f63(0x44e)]('@');if(_0x232168<=0x0||_0x232168!==_0x1b60f2['lastIndexOf']('@'))return!0x1;let _0xfb2e85=_0x1b60f2[_0x4f4f63(0x12c)](_0x232168+0x1);return _0xfb2e85[_0x4f4f63(0x16a)]('.')&&!_0x1b60f2[_0x4f4f63(0x16a)]('\x20')&&!_0xfb2e85[_0x4f4f63(0x1fb)]('.')&&!_0xfb2e85[_0x4f4f63(0x35a)]('.');}const U={'table':_0x1a3d1c=>['tables',_0x1a3d1c],'field':(_0x138e72,_0x5a7d88)=>[_0x6c183(0x298),_0x138e72,'fields',_0x5a7d88],'fieldOrder':(_0x2cfbbb,_0x50204f)=>[_0x6c183(0x298),_0x2cfbbb,_0x6c183(0x3b5),_0x50204f],'record':(_0x2ea1f7,_0x3d1ee0)=>[_0x6c183(0x298),_0x2ea1f7,'records',_0x3d1ee0],'cell':(_0xb3851f,_0x24abd6,_0x1fa297)=>[_0x6c183(0x298),_0xb3851f,'records',_0x24abd6,'values',_0x1fa297],'cellData':(_0x9a6fd1,_0x138583,_0xb439f3)=>[_0x6c183(0x298),_0x9a6fd1,_0x6c183(0x389),String(_0x138583),String(_0xb439f3)],'attachmentSet':(_0x48d798,_0x5f1121)=>['tables',_0x48d798,_0x6c183(0x421),_0x6c183(0x199),_0x5f1121],'attachment':(_0x3e4efb,_0x503473)=>['tables',_0x3e4efb,_0x6c183(0x421),'attachments',_0x503473],'view':(_0x29b23c,_0x42611a)=>[_0x6c183(0x298),_0x29b23c,'views',_0x42611a],'viewFieldHidden':(_0x146121,_0x14de02,_0x337aa9)=>[_0x6c183(0x298),_0x146121,_0x6c183(0x362),_0x14de02,_0x6c183(0x48f),_0x337aa9,_0x6c183(0x1b2)]};var W=class{[_0x6c183(0x3f7)](_0x566cc3,_0x47525b){const _0x57aed3=_0x6c183;let _0x59c16e=this['renameFormulaUnitReferences'](_0x566cc3,_0x566cc3['name'],_0x47525b);return R([this[_0x57aed3(0x4a8)](['name'],_0x566cc3[_0x57aed3(0x2a3)],_0x47525b),..._0x59c16e?[_0x59c16e]:[]]);}[_0x6c183(0x3e9)](_0x5c54cc,_0x1a1155,_0x1083cf){const _0x519f2b=_0x6c183;let _0x38c9c4=Object['values'](_0x5c54cc['tables'])[_0x519f2b(0x17a)](_0x5d4394=>Object['values'](_0x5d4394[_0x519f2b(0x398)])[_0x519f2b(0x17a)](_0x5dd73f=>{const _0x1bab52=_0x519f2b;var _0x22103e,_0x20ad6b;if(_0x5dd73f[_0x1bab52(0x20b)]!==_0x3a044b['Formula'])return[];let _0x3f1361=String(((_0x22103e=_0x5dd73f[_0x1bab52(0x2ba)])==null?void 0x0:_0x22103e['formula'])??''),_0x581c95=_0x2f992f(_0x3f1361,_0x1a1155,_0x1083cf);return _0x581c95===_0x3f1361?[]:[this[_0x1bab52(0x4a8)]([...U['field'](_0x5d4394['id'],_0x5dd73f['id']),_0x1bab52(0x2ba),_0x1bab52(0x3bc)],(_0x20ad6b=_0x5dd73f[_0x1bab52(0x2ba)])==null?void 0x0:_0x20ad6b[_0x1bab52(0x3bc)],_0x581c95)];}));return _0x38c9c4[_0x519f2b(0x13c)]>0x0?R(_0x38c9c4):void 0x0;}['createTable'](_0x2ab47a,_0x32f756,_0x49d9aa=_0x2ab47a[_0x6c183(0x338)]['length']){const _0x243420=_0x6c183;let _0x36366b=_0x2afbd2(_0x32f756[_0x243420(0x2a3)],_0x160d60(_0x2ab47a)[_0x243420(0x227)](),_0x32f756[_0x243420(0x423)]),_0x146144=_0x32f756[_0x243420(0x423)]===_0x36366b?_0x32f756:{..._0x32f756,'formulaName':_0x36366b};return R([...this[_0x243420(0x499)](_0x2ab47a),_0x53fdae[_0x243420(0x13f)](U[_0x243420(0x4c7)](_0x32f756['id']),_0x146144),_0x53fdae['insertOp']([_0x243420(0x338),_0x49d9aa],_0x32f756['id'])]);}[_0x6c183(0x17d)](_0x4dca5d,_0x1f76a2,_0x1c2265){const _0x3dc0b4=_0x6c183;let _0x49f1c0=_0x4dca5d['tables'][_0x1f76a2];return R([...this['_materializeFormulaTableNames'](_0x4dca5d),_0x53fdae['replaceOp']([...U[_0x3dc0b4(0x4c7)](_0x1f76a2),_0x3dc0b4(0x2a3)],_0x49f1c0[_0x3dc0b4(0x2a3)],_0x1c2265)]);}[_0x6c183(0x283)](_0x4638e3,_0x477e5d){const _0x31f1fd=_0x6c183;let _0x1085b2=_0x4638e3[_0x31f1fd(0x298)][_0x477e5d],_0x8273a4=_0x4638e3[_0x31f1fd(0x338)][_0x31f1fd(0x44e)](_0x477e5d);return R([...this[_0x31f1fd(0x499)](_0x4638e3,new Set([_0x477e5d])),_0x53fdae[_0x31f1fd(0x37b)](U['table'](_0x477e5d),_0x1085b2),_0x53fdae[_0x31f1fd(0x37b)]([_0x31f1fd(0x338),_0x8273a4],_0x477e5d)]);}['createRecord'](_0xf36748,_0x57f8a2,_0xbfc906){const _0x5cbd05=_0x6c183;return this[_0x5cbd05(0x1bf)](_0xf36748,_0x57f8a2,[_0xbfc906]);}[_0x6c183(0x1bf)](_0x99461d,_0x36dd48,_0x4f24cc){const _0xc46b26=_0x6c183;let _0xcdff0c=_0x99461d[_0xc46b26(0x298)][_0x36dd48],_0x202b03=_0x4f24cc['filter'](_0x2efd33=>_0x2efd33&&!_0xcdff0c[_0xc46b26(0x258)][_0x2efd33['id']])[_0xc46b26(0x141)](_0x2b5513=>({..._0x2b5513,'values':{..._0x2b5513[_0xc46b26(0x227)],[_0x5a35e2]:_0x2b5513['id']}}));if(!_0x202b03['length'])return _0x53fdae['replaceOp']([...U[_0xc46b26(0x4c7)](_0x36dd48),_0xc46b26(0x258)],_0xcdff0c[_0xc46b26(0x258)],_0xcdff0c[_0xc46b26(0x258)]);let _0x4ca0bc=new _0x53fdae['WriteCursor'](),_0x484d8e=[..._0x202b03]['sort']((_0xd2dc3a,_0x391186)=>_0xd2dc3a['id']<_0x391186['id']?-0x1:+(_0xd2dc3a['id']>_0x391186['id'])),_0x2dfbf8=[...U['table'](_0x36dd48),_0xc46b26(0x258)];_0x4ca0bc['descendPath'](_0x2dfbf8);for(let _0x23e667 of _0x484d8e)_0x4ca0bc['descend'](_0x23e667['id']),_0x4ca0bc['write']('i',_0x23e667),_0x4ca0bc['ascend']();for(let _0x422b26=0x0;_0x422b26<_0x2dfbf8[_0xc46b26(0x13c)];_0x422b26+=0x1)_0x4ca0bc['ascend']();return R([_0x4ca0bc[_0xc46b26(0x43e)](),this[_0xc46b26(0x2a9)](_0x99461d,_0x36dd48,_0x202b03)]);}['deleteRecord'](_0x5c4dee,_0x362156,_0x3c3d11){const _0x1a48d9=_0x6c183;return this[_0x1a48d9(0x158)](_0x5c4dee,_0x362156,[_0x3c3d11]);}[_0x6c183(0x158)](_0x42fd4e,_0x165894,_0x37819f){const _0x1b7c39=_0x6c183;let _0x110053=_0x42fd4e[_0x1b7c39(0x298)][_0x165894],_0x49c4b7=Array[_0x1b7c39(0x1d5)](new Set(_0x37819f))[_0x1b7c39(0x2be)](_0x45ab7b=>_0x110053[_0x1b7c39(0x258)][_0x45ab7b]);if(!_0x49c4b7[_0x1b7c39(0x13c)])return _0x53fdae[_0x1b7c39(0x180)]([...U['table'](_0x165894),_0x1b7c39(0x258)],_0x110053[_0x1b7c39(0x258)],_0x110053[_0x1b7c39(0x258)]);let _0x5358cd=new Set(_0x49c4b7),_0x4d34f8=et(_0x110053,_0x49c4b7)[_0x1b7c39(0x141)](_0x2915d6=>this['updateCell'](_0x42fd4e,_0x165894,_0x2915d6['recordId'],_0x2915d6[_0x1b7c39(0x2b0)],''));return R([this[_0x1b7c39(0x31d)](_0x42fd4e,_0x165894,_0x49c4b7,_0x5358cd),..._0x4d34f8]);}[_0x6c183(0x225)](_0x5181e2,_0x365e17,_0x42edeb,_0xc9ffd3){const _0x2f9c57=_0x6c183;let _0x10e608=_0x5181e2['tables'][_0x42edeb],_0x19d14a=Array[_0x2f9c57(0x1d5)](new Set(_0xc9ffd3))['filter'](_0x43fe8b=>_0x10e608[_0x2f9c57(0x258)][_0x43fe8b]),_0xae377e=new Set(_0x19d14a);return R([new z()[_0x2f9c57(0x2d8)](_0x5181e2,this[_0x2f9c57(0x31d)](_0x5181e2,_0x42edeb,_0x19d14a,_0xae377e)),...et(_0x10e608,_0x19d14a)['map'](_0x3b44ae=>this[_0x2f9c57(0x20d)](_0x365e17,_0x42edeb,_0x3b44ae['recordId'],_0x3b44ae[_0x2f9c57(0x2b0)],_0x3b44ae[_0x2f9c57(0x2d1)]??''))]);}[_0x6c183(0x31d)](_0x235f97,_0x4276c4,_0x1da834,_0x357416){const _0x5e4af9=_0x6c183;let _0x166df0=_0x235f97[_0x5e4af9(0x298)][_0x4276c4],_0x477052=_0x1da834[_0x5e4af9(0x141)](_0x337c48=>{const _0x59b1f2=_0x5e4af9;var _0x2d0c19;return{'recordId':_0x337c48,'index':((_0x2d0c19=_0x166df0[_0x59b1f2(0x1e7)])==null?void 0x0:_0x2d0c19[_0x59b1f2(0x44e)](_0x337c48))??-0x1};})['filter'](_0x4057c3=>_0x4057c3['index']>=0x0)['sort']((_0x506c12,_0x11a676)=>_0x11a676[_0x5e4af9(0x159)]-_0x506c12['index']);return R([..._0x1da834['map'](_0x37c6db=>_0x53fdae[_0x5e4af9(0x37b)](U[_0x5e4af9(0x493)](_0x4276c4,_0x37c6db),_0x166df0[_0x5e4af9(0x258)][_0x37c6db])),..._0x477052[_0x5e4af9(0x141)](({recordId:_0x54add7,index:_0x25aaab})=>_0x53fdae[_0x5e4af9(0x37b)](['tables',_0x4276c4,_0x5e4af9(0x1e7),_0x25aaab],_0x54add7)),...this[_0x5e4af9(0x23f)](_0x166df0,_0x4276c4,_0x2f1022=>{const _0x35ab14=_0x5e4af9;let _0x322857=_0x2f1022['slice'](_0x2f1022[_0x35ab14(0x38c)]('\x1f')+0x1);return _0x357416[_0x35ab14(0x34b)](_0x322857);})]);}['duplicateRecord'](_0x176a1c,_0x32f608,_0x578f70,_0x58d320){const _0x488bcc=_0x6c183;return this[_0x488bcc(0x134)](_0x176a1c,_0x32f608,{..._0x58d320,'values':{..._0x176a1c[_0x488bcc(0x298)][_0x32f608][_0x488bcc(0x258)][_0x578f70][_0x488bcc(0x227)],..._0x58d320[_0x488bcc(0x227)],[_0x5a35e2]:_0x58d320['id']}});}[_0x6c183(0x313)](_0x4a0f47,_0x42ce98,_0x31f2d7,_0x2771fb){const _0x4d3282=_0x6c183;let _0x59bb71=_0x4a0f47[_0x4d3282(0x298)][_0x42ce98],_0x1d630c=[...U['record'](_0x42ce98,_0x31f2d7),'orderKey'],_0x2e0df7=Object[_0x4d3282(0x227)](_0x59bb71['records'])[_0x4d3282(0x141)](_0x59e8c2=>_0x59e8c2['id']===_0x31f2d7?{..._0x59e8c2,'orderKey':_0x2771fb}:_0x59e8c2)[_0x4d3282(0x277)]((_0x3e9191,_0x22c3bf)=>String(_0x3e9191[_0x4d3282(0x4a1)]??_0x3e9191['id'])[_0x4d3282(0x37a)](String(_0x22c3bf['orderKey']??_0x22c3bf['id'])))[_0x4d3282(0x141)](_0x158d36=>_0x158d36['id']),_0x1ff5dd=[...U[_0x4d3282(0x4c7)](_0x42ce98),_0x4d3282(0x1e7)];return R([this['_replaceOptional'](_0x1d630c,_0x59bb71[_0x4d3282(0x258)][_0x31f2d7][_0x4d3282(0x4a1)],_0x2771fb),_0x59bb71[_0x4d3282(0x1e7)]?_0x53fdae['replaceOp'](_0x1ff5dd,_0x59bb71[_0x4d3282(0x1e7)],_0x2e0df7):_0x53fdae['insertOp'](_0x1ff5dd,_0x2e0df7)]);}[_0x6c183(0x20d)](_0x2c2e32,_0x5ffb95,_0x57b369,_0x37b89a,_0x5bfacb){const _0xe06ddb=_0x6c183;var _0x573598,_0x23b928;let _0x277715=_0x2c2e32[_0xe06ddb(0x298)][_0x5ffb95],_0x29a2db=ar(_0x277715,_0x57b369,_0x37b89a)?_0x277715:L(_0x277715),_0x84219c=(_0x573598=_0x29a2db['rowIndex'])==null?void 0x0:_0x573598[_0x57b369],_0x1ce158=(_0x23b928=_0x29a2db['colIndex'])==null?void 0x0:_0x23b928[_0x37b89a];if(_0x84219c==null||_0x1ce158==null){var _0x51fdcb;return this[_0xe06ddb(0x4a8)](U[_0xe06ddb(0x1de)](_0x5ffb95,_0x57b369,_0x37b89a),(_0x51fdcb=_0x2c2e32[_0xe06ddb(0x298)][_0x5ffb95])==null||(_0x51fdcb=_0x51fdcb[_0xe06ddb(0x258)][_0x57b369])==null?void 0x0:_0x51fdcb[_0xe06ddb(0x227)][_0x37b89a],_0x5bfacb);}return this[_0xe06ddb(0x11d)](_0x2c2e32,_0x5ffb95,[{'row':_0x84219c,'col':_0x1ce158,'value':_0x5bfacb}]);}[_0x6c183(0x3a6)](_0x252384,_0x166502,_0x2113c6){const _0x3e99d8=_0x6c183;let _0x16f049=_0x252384['tables'][_0x166502],_0x1592f3=_0x2113c6['every'](_0x4a1099=>Object[_0x3e99d8(0x24c)](_0x4a1099[_0x3e99d8(0x227)])[_0x3e99d8(0x387)](_0x52b28c=>ar(_0x16f049,_0x4a1099[_0x3e99d8(0x347)],_0x52b28c)))?_0x16f049:L(_0x16f049),_0x49aa9b=_0x2113c6[_0x3e99d8(0x17a)](_0x1ebceb=>Object[_0x3e99d8(0x279)](_0x1ebceb[_0x3e99d8(0x227)])[_0x3e99d8(0x17a)](([_0x1df160,_0x71699e])=>{const _0x553d16=_0x3e99d8;var _0x1416b6,_0x4dae7e;let _0x44f671=(_0x1416b6=_0x1592f3[_0x553d16(0x375)])==null?void 0x0:_0x1416b6[_0x1ebceb[_0x553d16(0x347)]],_0x57909f=(_0x4dae7e=_0x1592f3[_0x553d16(0x390)])==null?void 0x0:_0x4dae7e[_0x1df160];return _0x44f671==null||_0x57909f==null?[]:[{'row':_0x44f671,'col':_0x57909f,'value':_0x71699e}];})),_0x14ef7e=_0x2113c6[_0x3e99d8(0x17a)](_0x38c71b=>Object['entries'](_0x38c71b[_0x3e99d8(0x413)]??{})[_0x3e99d8(0x141)](([_0x29ba17,_0x5d50f7])=>{const _0x3741e0=_0x3e99d8;var _0x203f66;let _0x4df911=[...U[_0x3741e0(0x493)](_0x166502,_0x38c71b['recordId']),_0x29ba17],_0x4051a6=(_0x203f66=_0x252384[_0x3741e0(0x298)][_0x166502])==null||(_0x203f66=_0x203f66['records'][_0x38c71b[_0x3741e0(0x347)]])==null?void 0x0:_0x203f66[_0x29ba17];return this[_0x3741e0(0x4a8)](_0x4df911,_0x4051a6,_0x5d50f7);}));return R([this[_0x3e99d8(0x11d)](_0x252384,_0x166502,_0x49aa9b),..._0x14ef7e]);}[_0x6c183(0x11d)](_0xea155f,_0x272a30,_0x19f4ec){const _0xc0c62=_0x6c183;let _0x18c3b4=_0xea155f[_0xc0c62(0x298)][_0x272a30],_0x357633=_0x19f4ec[_0xc0c62(0x387)](_0x4cea52=>or(_0x18c3b4,_0x4cea52['row'],_0x4cea52['col']))?_0x18c3b4:L(_0x18c3b4),_0x566c3b=new Map(),_0x32fdb4=_0x19f4ec['flatMap'](_0x3c6916=>{const _0x2ff715=_0xc0c62;var _0x5ed0c8,_0x22d780,_0x5616f3,_0x5ae7e7;let _0x1a57a8=(_0x5ed0c8=_0x357633[_0x2ff715(0x1fe)])==null?void 0x0:_0x5ed0c8[_0x3c6916['col']],_0x4e4cbe=(_0x22d780=_0x357633[_0x2ff715(0x3d0)])==null?void 0x0:_0x22d780[_0x3c6916[_0x2ff715(0x4b3)]],_0x4bd446=_0x1a57a8?_0x357633[_0x2ff715(0x398)][_0x1a57a8]:void 0x0;if(_0x1a57a8===_0x5a35e2||(_0x4bd446==null?void 0x0:_0x4bd446[_0x2ff715(0x20b)])===_0x3a044b['RecordId'])throw Error('[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.');let _0x46d1ff=xt(_0x3c6916[_0x2ff715(0x350)],_0x4bd446),_0x5c925f=(_0x5616f3=_0x357633[_0x2ff715(0x389)])==null||(_0x5616f3=_0x5616f3[_0x3c6916['row']])==null?void 0x0:_0x5616f3[_0x3c6916['col']],_0xd37345=this[_0x2ff715(0x4a8)](U[_0x2ff715(0x389)](_0x272a30,_0x3c6916[_0x2ff715(0x4b3)],_0x3c6916[_0x2ff715(0x295)]),_0x5c925f,_0x46d1ff);if(!_0x1a57a8||!_0x4e4cbe)return[_0xd37345];let _0x204c11=(_0x5ae7e7=_0x357633[_0x2ff715(0x258)][_0x4e4cbe])==null?void 0x0:_0x5ae7e7[_0x2ff715(0x227)][_0x1a57a8],_0x4cfb26=(_0x4bd446==null?void 0x0:_0x4bd446[_0x2ff715(0x20b)])===_0x3a044b[_0x2ff715(0x1ab)]?kt(_0x3c6916[_0x2ff715(0x350)]):wt(_0x3c6916['value'],_0x46d1ff,_0x4bd446,_0x357633,_0x4e4cbe),_0x1ce84a=[_0xd37345,this[_0x2ff715(0x4a8)](U[_0x2ff715(0x1de)](_0x272a30,_0x4e4cbe,_0x1a57a8),_0x204c11,_0x4cfb26)];return(_0x4bd446==null?void 0x0:_0x4bd446['type'])===_0x3a044b['Attachment']&&_0x566c3b[_0x2ff715(0x49e)](Et(_0x1a57a8,_0x4e4cbe),{'recordId':_0x4e4cbe,'fieldId':_0x1a57a8,'attachments':_0x4cfb26}),_0x1ce84a;});return _0x32fdb4[_0xc0c62(0x13c)]?R([..._0x32fdb4,...this[_0xc0c62(0x1a0)](_0x357633,_0x272a30,Array['from'](_0x566c3b[_0xc0c62(0x227)]()))]):_0x53fdae[_0xc0c62(0x180)]([_0xc0c62(0x298),_0x272a30,_0xc0c62(0x389)],_0x357633['cellData'],_0x357633[_0xc0c62(0x389)]);}['createField'](_0x3e96fc,_0x4b5de6,_0x37bf60){const _0x5d15b2=_0x6c183;let _0x270ef0=_0x3e96fc[_0x5d15b2(0x298)][_0x4b5de6];if(_0x270ef0[_0x5d15b2(0x398)][_0x37bf60[_0x5d15b2(0x2d5)]['id']]||_0x270ef0[_0x5d15b2(0x3b5)][_0x5d15b2(0x16a)](_0x37bf60['field']['id']))return _0x53fdae['replaceOp']([_0x5d15b2(0x298),_0x4b5de6,_0x5d15b2(0x3b5)],_0x270ef0[_0x5d15b2(0x3b5)],_0x270ef0[_0x5d15b2(0x3b5)]);let _0x48659b=Math[_0x5d15b2(0x482)](0x1,_0x37bf60[_0x5d15b2(0x159)]??_0x270ef0[_0x5d15b2(0x3b5)][_0x5d15b2(0x13c)]),_0xe51f35=Object['values'](_0x270ef0[_0x5d15b2(0x362)]??{})[_0x5d15b2(0x17a)](_0x3942f5=>{const _0x55c482=_0x5d15b2;var _0xcc8583;if(!_0x3942f5[_0x55c482(0x3b5)]||_0x3942f5[_0x55c482(0x3b5)][_0x55c482(0x16a)](_0x37bf60['field']['id']))return[];let _0x31d5fa=ur(((_0xcc8583=_0x37bf60[_0x55c482(0x369)])==null?void 0x0:_0xcc8583[_0x3942f5['id']])??_0x48659b,_0x3942f5[_0x55c482(0x3b5)]['length']);return[_0x53fdae[_0x55c482(0x13f)]([...U[_0x55c482(0x37d)](_0x4b5de6,_0x3942f5['id']),_0x55c482(0x3b5),_0x31d5fa],_0x37bf60[_0x55c482(0x2d5)]['id'])];});return R([..._0x37bf60[_0x5d15b2(0x2d5)][_0x5d15b2(0x20b)]===_0x3a044b['Formula']?this[_0x5d15b2(0x499)](_0x3e96fc):[],_0x53fdae['insertOp'](U[_0x5d15b2(0x2d5)](_0x4b5de6,_0x37bf60[_0x5d15b2(0x2d5)]['id']),_0x37bf60[_0x5d15b2(0x2d5)]),_0x53fdae['insertOp'](U[_0x5d15b2(0x3b5)](_0x4b5de6,_0x48659b),_0x37bf60['field']['id']),..._0xe51f35]);}['duplicateField'](_0x145410,_0x242728,_0x2a011f,_0x9ba9a6){const _0xf6f88c=_0x6c183;let _0x454fc0=_0x145410[_0xf6f88c(0x298)][_0x242728];if(!_0x454fc0[_0xf6f88c(0x398)][_0x2a011f]||_0x454fc0[_0xf6f88c(0x398)][_0x9ba9a6[_0xf6f88c(0x2d5)]['id']]||_0x454fc0[_0xf6f88c(0x3b5)][_0xf6f88c(0x16a)](_0x9ba9a6[_0xf6f88c(0x2d5)]['id']))return _0x53fdae[_0xf6f88c(0x180)]([_0xf6f88c(0x298),_0x242728,_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)]);let _0xee6fe8=_0x9ba9a6[_0xf6f88c(0x159)]??_0x454fc0[_0xf6f88c(0x3b5)]['indexOf'](_0x2a011f)+0x1,_0x428fb5=_0x454fc0['fieldOrder'][_0xf6f88c(0x2be)](_0xb159bf=>_0xb159bf!==_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x5cfa27=cr(_0x428fb5,_0x9ba9a6['field']['id'],_0xee6fe8),_0xf88106=Object[_0xf6f88c(0x227)](_0x454fc0[_0xf6f88c(0x362)]??{})[_0xf6f88c(0x17a)](_0x211dff=>{const _0x36f944=_0xf6f88c;var _0x579d32,_0x11e6e2,_0x5baf5c,_0xcf9e99;let _0x4f8171=(_0x579d32=_0x211dff[_0x36f944(0x3b5)])!=null&&_0x579d32['length']?_0x211dff[_0x36f944(0x3b5)]:_0x428fb5;if(_0x4f8171[_0x36f944(0x16a)](_0x9ba9a6['field']['id']))return[];let _0x421115=cr(_0x4f8171,_0x9ba9a6[_0x36f944(0x2d5)]['id'],((_0x11e6e2=_0x9ba9a6[_0x36f944(0x369)])==null?void 0x0:_0x11e6e2[_0x211dff['id']])??_0xee6fe8),_0x3f675d=(_0x5baf5c=_0x211dff['fieldSettings'])==null?void 0x0:_0x5baf5c[_0x2a011f];return[this[_0x36f944(0x4a8)]([...U[_0x36f944(0x37d)](_0x242728,_0x211dff['id']),_0x36f944(0x3b5)],_0x211dff[_0x36f944(0x3b5)],_0x421115),..._0x3f675d?[this[_0x36f944(0x4a8)]([...U[_0x36f944(0x37d)](_0x242728,_0x211dff['id']),_0x36f944(0x48f),_0x9ba9a6[_0x36f944(0x2d5)]['id']],(_0xcf9e99=_0x211dff[_0x36f944(0x48f)])==null?void 0x0:_0xcf9e99[_0x9ba9a6['field']['id']],_0x3f675d)]:[]];}),_0x3668fd=Object[_0xf6f88c(0x227)](_0x454fc0[_0xf6f88c(0x258)])[_0xf6f88c(0x2be)](_0x3b0c1c=>Object['prototype'][_0xf6f88c(0x48a)][_0xf6f88c(0x43b)](_0x3b0c1c['values'],_0x2a011f))[_0xf6f88c(0x141)](_0x1e914f=>this['_replaceOptional'](U[_0xf6f88c(0x1de)](_0x242728,_0x1e914f['id'],_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x1e914f['values'][_0x9ba9a6['field']['id']],_0x1e914f[_0xf6f88c(0x227)][_0x2a011f]));return R([..._0x9ba9a6['field'][_0xf6f88c(0x20b)]===_0x3a044b[_0xf6f88c(0x4a0)]?this[_0xf6f88c(0x499)](_0x145410):[],_0x53fdae['insertOp'](U[_0xf6f88c(0x2d5)](_0x242728,_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x9ba9a6[_0xf6f88c(0x2d5)]),_0x53fdae['replaceOp'](['tables',_0x242728,_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)],_0x5cfa27),..._0xf88106,..._0x3668fd]);}[_0x6c183(0x13b)](_0x5051d4,_0x242ac9,_0x83f840,_0x3993c2){const _0xc8cc36=_0x6c183;let _0x119e39=_0x5051d4[_0xc8cc36(0x298)][_0x242ac9][_0xc8cc36(0x398)][_0x83f840],_0x16d48c={..._0x119e39,..._0x3993c2};Object[_0xc8cc36(0x24c)](_0x3993c2)[_0xc8cc36(0x2e0)](_0x9ee7e8=>{_0x3993c2[_0x9ee7e8]===void 0x0&&delete _0x16d48c[_0x9ee7e8];});let _0x4911d6=er(_0x5051d4[_0xc8cc36(0x298)][_0x242ac9],_0x83f840,_0x119e39,_0x16d48c);_0x16d48c=_0x4911d6[_0xc8cc36(0x2d5)];let _0x4a9fce=_0x53fdae[_0xc8cc36(0x180)](U['field'](_0x242ac9,_0x83f840),_0x119e39,_0x16d48c);return _0x16d48c['type']===_0x3a044b[_0xc8cc36(0x4a0)]?R([...this['_materializeFormulaTableNames'](_0x5051d4),_0x4a9fce,...this[_0xc8cc36(0x18d)](_0x5051d4,_0x242ac9,_0x83f840,_0x16d48c)]):R([_0x4a9fce,..._0x4911d6['patches']['length']?[this['setRangeValues'](_0x5051d4,_0x242ac9,_0x4911d6['patches'])]:[]]);}[_0x6c183(0x3e5)](_0x26649e,_0x610455,_0x1ddd02,_0x255885){const _0x192675=_0x6c183;return this[_0x192675(0x13b)](_0x26649e,_0x610455,_0x1ddd02,_0x255885);}['deleteField'](_0x3875d8,_0x251d6b,_0x3a08d1){const _0x50e1d6=_0x6c183;let _0x3e8b1b=_0x3875d8['tables'][_0x251d6b];if(!(_0x3e8b1b!=null&&_0x3e8b1b['fields'][_0x3a08d1])||_0x3e8b1b[_0x50e1d6(0x3b2)]===_0x3a08d1||_0x3a08d1===_0x5a35e2)return _0x53fdae[_0x50e1d6(0x180)](['tables',_0x251d6b,_0x50e1d6(0x3b5)],_0x3e8b1b==null?void 0x0:_0x3e8b1b[_0x50e1d6(0x3b5)],_0x3e8b1b==null?void 0x0:_0x3e8b1b[_0x50e1d6(0x3b5)]);let _0x5ad8d0=_0x3e8b1b[_0x50e1d6(0x3b5)][_0x50e1d6(0x44e)](_0x3a08d1),_0x5f3aea=Object[_0x50e1d6(0x227)](_0x3e8b1b[_0x50e1d6(0x362)])[_0x50e1d6(0x17a)](_0x3919e8=>{const _0x6001c4=_0x50e1d6;var _0x16bc29,_0x7948b0,_0xd1e3c1,_0x4063fa,_0x5a71f4,_0x570883,_0x377283;let _0x4ece43=[],_0x46ae3a=((_0x16bc29=_0x3919e8['fieldOrder'])==null?void 0x0:_0x16bc29[_0x6001c4(0x44e)](_0x3a08d1))??-0x1;_0x46ae3a>=0x0&&_0x4ece43[_0x6001c4(0x174)](_0x53fdae[_0x6001c4(0x37b)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x3b5),_0x46ae3a],_0x3a08d1));let _0x365a45=(_0x7948b0=_0x3919e8[_0x6001c4(0x48f)])==null?void 0x0:_0x7948b0[_0x3a08d1];_0x365a45!==void 0x0&&_0x4ece43['push'](_0x53fdae[_0x6001c4(0x37b)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x48f),_0x3a08d1],_0x365a45));let _0xb10cd0=_0x3919e8[_0x6001c4(0x2be)]?{..._0x3919e8['filter'],'conditions':_0x3919e8[_0x6001c4(0x2be)]['conditions']['filter'](_0x5a9df6=>_0x5a9df6['fieldId']!==_0x3a08d1)}:_0x3919e8[_0x6001c4(0x2be)];_0xb10cd0&&_0xb10cd0[_0x6001c4(0x396)]['length']!==((_0xd1e3c1=_0x3919e8[_0x6001c4(0x2be)])==null?void 0x0:_0xd1e3c1[_0x6001c4(0x396)]['length'])&&_0x4ece43['push'](this[_0x6001c4(0x4a8)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),'filter'],_0x3919e8[_0x6001c4(0x2be)],_0xb10cd0));let _0x29435a=(_0x4063fa=_0x3919e8['sort'])==null?void 0x0:_0x4063fa[_0x6001c4(0x2be)](_0x14678a=>_0x14678a[_0x6001c4(0x2b0)]!==_0x3a08d1);_0x29435a&&_0x29435a['length']!==((_0x5a71f4=_0x3919e8[_0x6001c4(0x277)])==null?void 0x0:_0x5a71f4[_0x6001c4(0x13c)])&&_0x4ece43[_0x6001c4(0x174)](this[_0x6001c4(0x4a8)]([...U['view'](_0x251d6b,_0x3919e8['id']),'sort'],_0x3919e8[_0x6001c4(0x277)],_0x29435a));let _0x3baff4=(_0x570883=_0x3919e8['group'])==null?void 0x0:_0x570883[_0x6001c4(0x2be)](_0xf3101=>_0xf3101['fieldId']!==_0x3a08d1);_0x3baff4&&_0x3baff4[_0x6001c4(0x13c)]!==((_0x377283=_0x3919e8[_0x6001c4(0x1f2)])==null?void 0x0:_0x377283[_0x6001c4(0x13c)])&&_0x4ece43[_0x6001c4(0x174)](this[_0x6001c4(0x4a8)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x1f2)],_0x3919e8['group'],_0x3baff4));let _0x3fc135=lr(_0x3919e8['config'],_0x3a08d1);return JSON[_0x6001c4(0x25f)](_0x3fc135)!==JSON[_0x6001c4(0x25f)](_0x3919e8['config'])&&_0x4ece43['push'](_0x53fdae['replaceOp']([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),'config'],_0x3919e8[_0x6001c4(0x2ba)],_0x3fc135)),_0x4ece43;}),_0x4ceb70=Object[_0x50e1d6(0x227)](_0x3e8b1b[_0x50e1d6(0x258)])[_0x50e1d6(0x17a)](_0x3ef8e7=>Object[_0x50e1d6(0x246)][_0x50e1d6(0x48a)][_0x50e1d6(0x43b)](_0x3ef8e7['values'],_0x3a08d1)?[_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x1de)](_0x251d6b,_0x3ef8e7['id'],_0x3a08d1),_0x3ef8e7['values'][_0x3a08d1])]:[]);return R([_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x2d5)](_0x251d6b,_0x3a08d1),_0x3e8b1b[_0x50e1d6(0x398)][_0x3a08d1]),_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x3b5)](_0x251d6b,_0x5ad8d0),_0x3a08d1),..._0x5f3aea,..._0x4ceb70,...this['_deleteAttachmentResources'](_0x3e8b1b,_0x251d6b,_0x14bb5d=>_0x14bb5d[_0x50e1d6(0x1fb)](_0x3a08d1+'\x1f'))]);}[_0x6c183(0x344)](_0x43ee13,_0xbeae85,_0x3c441a,_0x35044e){const _0x288d69=_0x6c183;let _0x118955=_0x43ee13[_0x288d69(0x298)][_0xbeae85]['fieldOrder'];if(_0x3c441a===_0x5a35e2||_0x35044e[_0x288d69(0x33d)]===_0x5a35e2)throw Error(_0x288d69(0x165));let _0x396f64=sr(_0x118955,_0x3c441a,_0x35044e);return _0x53fdae[_0x288d69(0x180)]([_0x288d69(0x298),_0xbeae85,_0x288d69(0x3b5)],_0x118955,_0x396f64);}[_0x6c183(0x2d7)](_0x1622fc,_0x1ecf71,_0x4e50c7,_0x3b122f=_0x1622fc['tables'][_0x1ecf71][_0x6c183(0x1cd)][_0x6c183(0x13c)]){const _0x107e2d=_0x6c183;return R([_0x53fdae[_0x107e2d(0x13f)](U['view'](_0x1ecf71,_0x4e50c7['id']),_0x4e50c7),_0x53fdae[_0x107e2d(0x13f)]([_0x107e2d(0x298),_0x1ecf71,_0x107e2d(0x1cd),_0x3b122f],_0x4e50c7['id'])]);}[_0x6c183(0x15f)](_0xf22a06,_0x3d2746,_0xc7f641,_0x1b4284){const _0x1b702e=_0x6c183;return _0x53fdae[_0x1b702e(0x180)]([...U[_0x1b702e(0x37d)](_0x3d2746,_0xc7f641),'name'],_0xf22a06[_0x1b702e(0x298)][_0x3d2746][_0x1b702e(0x362)][_0xc7f641][_0x1b702e(0x2a3)],_0x1b4284);}['deleteView'](_0x2354fd,_0x339769,_0x106f0c){const _0x676153=_0x6c183;let _0x15e772=_0x2354fd[_0x676153(0x298)][_0x339769],_0x1d413d=_0x15e772[_0x676153(0x362)][_0x106f0c],_0xae4292=_0x15e772[_0x676153(0x1cd)]['indexOf'](_0x106f0c);return R([_0x53fdae[_0x676153(0x37b)](U['view'](_0x339769,_0x106f0c),_0x1d413d),_0x53fdae[_0x676153(0x37b)]([_0x676153(0x298),_0x339769,'viewOrder',_0xae4292],_0x106f0c)]);}[_0x6c183(0x308)](_0xd2b96,_0x13f379,_0x3c523b,_0x556111){const _0x1b665e=_0x6c183;let _0x4713c4=_0xd2b96[_0x1b665e(0x298)][_0x13f379][_0x1b665e(0x1cd)],_0x25477b=sr(_0x4713c4,_0x3c523b,{'beforeFieldId':_0x556111[_0x1b665e(0x1af)],'afterFieldId':_0x556111[_0x1b665e(0x2d4)]});return _0x53fdae[_0x1b665e(0x180)]([_0x1b665e(0x298),_0x13f379,_0x1b665e(0x1cd)],_0x4713c4,_0x25477b);}['updateViewConfig'](_0x4a059d,_0x4617b0,_0x58d8d0,_0x242b64){const _0x3cdc0a=_0x6c183;let _0x39c5bf=_0x4a059d[_0x3cdc0a(0x298)][_0x4617b0][_0x3cdc0a(0x362)][_0x58d8d0]['config']??{},_0x386e43={..._0x39c5bf,..._0x242b64};return Object['keys'](_0x242b64)[_0x3cdc0a(0x2e0)](_0x58261d=>{_0x242b64[_0x58261d]===void 0x0&&delete _0x386e43[_0x58261d];}),_0x53fdae[_0x3cdc0a(0x180)]([...U[_0x3cdc0a(0x37d)](_0x4617b0,_0x58d8d0),_0x3cdc0a(0x2ba)],_0x39c5bf,_0x386e43);}[_0x6c183(0x16e)](_0x10f781,_0x3101b8,_0x49c678,_0x188b9a){const _0x168c8a=_0x6c183;return this[_0x168c8a(0x4a8)]([...U['view'](_0x3101b8,_0x49c678),_0x168c8a(0x2be)],_0x10f781[_0x168c8a(0x298)][_0x3101b8]['views'][_0x49c678][_0x168c8a(0x2be)],_0x188b9a);}[_0x6c183(0x23d)](_0xa21fdb,_0x27bccf,_0x4f6e94,_0x8726b9){const _0x46ef7b=_0x6c183;return this[_0x46ef7b(0x4a8)]([...U[_0x46ef7b(0x37d)](_0x27bccf,_0x4f6e94),_0x46ef7b(0x277)],_0xa21fdb[_0x46ef7b(0x298)][_0x27bccf][_0x46ef7b(0x362)][_0x4f6e94]['sort'],_0x8726b9);}['setViewGroup'](_0x5bbbf4,_0xbbe032,_0x1654a2,_0x2af382){const _0x3c3c48=_0x6c183;return this[_0x3c3c48(0x4a8)]([...U['view'](_0xbbe032,_0x1654a2),'group'],_0x5bbbf4[_0x3c3c48(0x298)][_0xbbe032][_0x3c3c48(0x362)][_0x1654a2]['group'],_0x2af382);}[_0x6c183(0x18c)](_0x3d8a9e,_0x1c868f,_0x118caa,_0x3f165a,_0x326413){return this['_setViewFieldSetting'](_0x3d8a9e,_0x1c868f,_0x118caa,_0x3f165a,{'hidden':!_0x326413});}[_0x6c183(0x15e)](_0x1541a9,_0x3335d2,_0x420b24,_0x4d2f7b,_0x3ad3d6){const _0x5c79ad=_0x6c183;return this[_0x5c79ad(0x142)](_0x1541a9,_0x3335d2,_0x420b24,_0x4d2f7b,{'width':_0x3ad3d6});}[_0x6c183(0x22a)](_0x5f484a,_0x5706d6,_0x33b768,_0x1dad8c,_0x387043){const _0x1dc155=_0x6c183;let _0x37cfee=_0x5f484a[_0x1dc155(0x298)][_0x5706d6][_0x1dc155(0x362)][_0x33b768],_0x31cb52=sr(_0x37cfee[_0x1dc155(0x3b5)]??_0x5f484a[_0x1dc155(0x298)][_0x5706d6][_0x1dc155(0x3b5)],_0x1dad8c,_0x387043);return this['_replaceOptional']([...U[_0x1dc155(0x37d)](_0x5706d6,_0x33b768),_0x1dc155(0x3b5)],_0x37cfee[_0x1dc155(0x3b5)],_0x31cb52);}[_0x6c183(0x142)](_0x156c9a,_0x31cd87,_0x54e2f0,_0x59646c,_0x497fb2){const _0x34d3ca=_0x6c183;let _0x3c42ae=_0x156c9a['tables'][_0x31cd87][_0x34d3ca(0x362)][_0x54e2f0][_0x34d3ca(0x48f)]??{},_0x3125fa={..._0x3c42ae,[_0x59646c]:{..._0x3c42ae[_0x59646c],..._0x497fb2}};return this[_0x34d3ca(0x4a8)]([...U[_0x34d3ca(0x37d)](_0x31cd87,_0x54e2f0),'fieldSettings'],_0x156c9a[_0x34d3ca(0x298)][_0x31cd87][_0x34d3ca(0x362)][_0x54e2f0][_0x34d3ca(0x48f)],_0x3125fa);}['_createRecordOrderOp'](_0xe2d040,_0x5efb5b,_0x30b8f3){const _0x1e1a9b=_0x6c183;let _0x3afc31=_0xe2d040[_0x1e1a9b(0x298)][_0x5efb5b],_0x13a19e=new Set(_0x30b8f3['map'](_0x45723d=>_0x45723d['id'])),_0x1bbf5f=[...Object[_0x1e1a9b(0x227)](_0x3afc31[_0x1e1a9b(0x258)])[_0x1e1a9b(0x2be)](_0x3c945a=>!_0x13a19e['has'](_0x3c945a['id'])),..._0x30b8f3][_0x1e1a9b(0x277)]((_0x5a7d5a,_0x33ea5b)=>String(_0x5a7d5a['orderKey']??_0x5a7d5a['id'])[_0x1e1a9b(0x37a)](String(_0x33ea5b['orderKey']??_0x33ea5b['id'])))[_0x1e1a9b(0x141)](_0x4e68e9=>_0x4e68e9['id']),_0x16201b=[...U[_0x1e1a9b(0x4c7)](_0x5efb5b),_0x1e1a9b(0x1e7)];return _0x3afc31[_0x1e1a9b(0x1e7)]?_0x53fdae[_0x1e1a9b(0x180)](_0x16201b,_0x3afc31['recordOrder'],_0x1bbf5f):_0x53fdae[_0x1e1a9b(0x13f)](_0x16201b,_0x1bbf5f);}[_0x6c183(0x499)](_0x595d72,_0x49f9f3=new Set()){const _0x2ff6a4=_0x6c183;let _0x15e169=_0x160d60(_0x595d72);return Object[_0x2ff6a4(0x227)](_0x595d72[_0x2ff6a4(0x298)])[_0x2ff6a4(0x2be)](_0x17f7a8=>!_0x49f9f3['has'](_0x17f7a8['id']))[_0x2ff6a4(0x277)]((_0x366927,_0x487e4e)=>_0x366927['id'][_0x2ff6a4(0x37a)](_0x487e4e['id']))[_0x2ff6a4(0x17a)](_0x19ccb9=>{const _0x5cb9b7=_0x2ff6a4;let _0x56a595=_0x15e169[_0x5cb9b7(0x43e)](_0x19ccb9['id']);return!_0x56a595||_0x19ccb9[_0x5cb9b7(0x423)]===_0x56a595?[]:[this[_0x5cb9b7(0x4a8)]([...U['table'](_0x19ccb9['id']),'formulaName'],_0x19ccb9[_0x5cb9b7(0x423)],_0x56a595)];});}[_0x6c183(0x18d)](_0x37ce02,_0x4d6ca6,_0x38fb6a,_0xfbf31c){const _0x2b4989=_0x6c183;var _0x4d583b,_0x21dc43;let _0xa1cb0b=L(_0x37ce02[_0x2b4989(0x298)][_0x4d6ca6]),_0x21fd8b=String(((_0x4d583b=_0xfbf31c[_0x2b4989(0x2ba)])==null?void 0x0:_0x4d583b[_0x2b4989(0x3bc)])??'')[_0x2b4989(0x226)](),_0x1d046b=(_0x21dc43=_0xa1cb0b[_0x2b4989(0x390)])==null?void 0x0:_0x21dc43[_0x38fb6a];if(_0x1d046b==null)return[];let _0x36d0b4=_0xa1cb0b[_0x2b4989(0x1e7)]??Object['keys'](_0xa1cb0b[_0x2b4989(0x258)]),_0xadca0f=_0x36d0b4[_0x2b4989(0x141)](_0x152709=>{var _0x4ea2d6;return(_0x4ea2d6=_0xa1cb0b['rowIndex'])==null?void 0x0:_0x4ea2d6[_0x152709];})[_0x2b4989(0x392)](_0xafc05=>_0xafc05!=null);return _0x36d0b4['flatMap'](_0x261837=>{const _0x1c1216=_0x2b4989;var _0x55a6c1,_0xc64eff;let _0x128604=(_0x55a6c1=_0xa1cb0b[_0x1c1216(0x375)])==null?void 0x0:_0x55a6c1[_0x261837];if(_0x128604==null)return[];let _0xd4b124=(_0xc64eff=_0xa1cb0b[_0x1c1216(0x389)])==null||(_0xc64eff=_0xc64eff[_0x128604])==null?void 0x0:_0xc64eff[_0x1d046b],_0x272471=_0x21fd8b?_0x128604===_0xadca0f?{'f':_0x21fd8b,'si':_0x38fb6a}:{'si':_0x38fb6a}:{'v':null,'t':null};return[this[_0x1c1216(0x4a8)](U[_0x1c1216(0x389)](_0x4d6ca6,_0x128604,_0x1d046b),_0xd4b124,_0x272471)];});}['_setAttachmentResources'](_0x842449,_0x2d744a,_0x366f70){const _0x5b7a29=_0x6c183;var _0x55d75c;let _0x54a088=new Map(Object[_0x5b7a29(0x279)](((_0x55d75c=_0x842449['resources'])==null?void 0x0:_0x55d75c['attachmentSets'])??{})),_0x426bf6=new Map(),_0x2dd7d2=new Set(),_0x5abf2f=_0x366f70['map'](({recordId:_0x2d771e,fieldId:_0x4c9186,attachments:_0x4d0574})=>{const _0x50979a=_0x5b7a29;var _0x27e8ba;let _0x495dfe=Et(_0x4c9186,_0x2d771e),_0x877607=_0x4d0574[_0x50979a(0x141)]((_0x285f4b,_0x1898ef)=>String(_0x285f4b['id']??_0x495dfe+'\x1f'+_0x1898ef));return _0x2dd7d2[_0x50979a(0x2ee)](_0x495dfe),_0x54a088['set'](_0x495dfe,_0x877607),_0x4d0574[_0x50979a(0x2e0)]((_0x16bb28,_0x34c27e)=>{let _0x40e76a=_0x877607[_0x34c27e];_0x426bf6['set'](_0x40e76a,{..._0x16bb28,'id':_0x40e76a});}),this['_replaceOptional'](U[_0x50979a(0x252)](_0x2d744a,_0x495dfe),(_0x27e8ba=_0x842449['resources'])==null||(_0x27e8ba=_0x27e8ba[_0x50979a(0x199)])==null?void 0x0:_0x27e8ba[_0x495dfe],_0x877607);}),_0x2eb618=Array[_0x5b7a29(0x1d5)](_0x426bf6)[_0x5b7a29(0x141)](([_0x52b00e,_0x15d37f])=>{const _0x39445e=_0x5b7a29;var _0x276410;return this[_0x39445e(0x4a8)](U['attachment'](_0x2d744a,_0x52b00e),(_0x276410=_0x842449['resources'])==null||(_0x276410=_0x276410['attachments'])==null?void 0x0:_0x276410[_0x52b00e],_0x15d37f);}),_0x3f8625=new Set(Array[_0x5b7a29(0x1d5)](_0x54a088[_0x5b7a29(0x227)]())['flat']()),_0x290ca9=new Set(Array[_0x5b7a29(0x1d5)](_0x2dd7d2)[_0x5b7a29(0x17a)](_0x445207=>{const _0xc543da=_0x5b7a29;var _0x3dcf31;return((_0x3dcf31=_0x842449[_0xc543da(0x421)])==null||(_0x3dcf31=_0x3dcf31[_0xc543da(0x199)])==null?void 0x0:_0x3dcf31[_0x445207])??[];})),_0x407d16=Array[_0x5b7a29(0x1d5)](_0x290ca9)['flatMap'](_0x324806=>{const _0x4ff9b6=_0x5b7a29;var _0x130724;let _0x2d95b9=(_0x130724=_0x842449[_0x4ff9b6(0x421)])==null||(_0x130724=_0x130724[_0x4ff9b6(0x4b9)])==null?void 0x0:_0x130724[_0x324806];return _0x2d95b9!==void 0x0&&!_0x3f8625[_0x4ff9b6(0x34b)](_0x324806)?[_0x53fdae[_0x4ff9b6(0x37b)](U[_0x4ff9b6(0x32e)](_0x2d744a,_0x324806),_0x2d95b9)]:[];});return[..._0x5abf2f,..._0x2eb618,..._0x407d16];}[_0x6c183(0x23f)](_0x3bc7b2,_0xec1ede,_0x280e95){const _0x2eee62=_0x6c183;var _0x48d2f9;let _0x59ee60=((_0x48d2f9=_0x3bc7b2['resources'])==null?void 0x0:_0x48d2f9[_0x2eee62(0x199)])??{},_0x3af791=Object[_0x2eee62(0x279)](_0x59ee60)[_0x2eee62(0x2be)](([_0x2c8602])=>_0x280e95(_0x2c8602));if(!_0x3af791[_0x2eee62(0x13c)])return[];let _0x1d622a=new Set(Object[_0x2eee62(0x279)](_0x59ee60)['filter'](([_0x4d3eea])=>!_0x280e95(_0x4d3eea))[_0x2eee62(0x17a)](([,_0x4edaf7])=>_0x4edaf7)),_0x53a186=new Set(_0x3af791[_0x2eee62(0x17a)](([,_0x47e583])=>_0x47e583));return[..._0x3af791['map'](([_0x296300,_0x479b5f])=>_0x53fdae[_0x2eee62(0x37b)](U['attachmentSet'](_0xec1ede,_0x296300),_0x479b5f)),...Array['from'](_0x53a186)['flatMap'](_0x4ca043=>{const _0x13eda3=_0x2eee62;var _0x249a16;let _0x352e02=(_0x249a16=_0x3bc7b2[_0x13eda3(0x421)])==null||(_0x249a16=_0x249a16[_0x13eda3(0x4b9)])==null?void 0x0:_0x249a16[_0x4ca043];return _0x352e02!==void 0x0&&!_0x1d622a[_0x13eda3(0x34b)](_0x4ca043)?[_0x53fdae[_0x13eda3(0x37b)](U[_0x13eda3(0x32e)](_0xec1ede,_0x4ca043),_0x352e02)]:[];})];}[_0x6c183(0x4a8)](_0x240a3e,_0x71a5cf,_0x357a1b){const _0x369b03=_0x6c183;return _0x71a5cf===void 0x0?_0x53fdae[_0x369b03(0x13f)](_0x240a3e,_0x357a1b):_0x53fdae[_0x369b03(0x180)](_0x240a3e,_0x71a5cf,_0x357a1b);}};function er(_0x1bf9e1,_0x4c551a,_0x1fe2c0,_0x36704e){const _0x464740=_0x6c183;var _0x52c4e5;let _0x422adb=_0x36704e['type'];if(_0x1fe2c0['type']!==_0x422adb||_0x422adb!==_0x3a044b[_0x464740(0x20e)]&&_0x422adb!==_0x3a044b[_0x464740(0x386)]||tr(_0x36704e[_0x464740(0x2ba)][_0x464740(0x46e)]))return{'field':_0x36704e,'patches':[]};let _0x39d6ce=nr(_0x1fe2c0),_0x386238=nr(_0x36704e);if(![..._0x39d6ce]['some'](_0x36c878=>!_0x386238[_0x464740(0x34b)](_0x36c878)))return{'field':_0x36704e,'patches':[]};let _0x54ba3b=rr(_0x36704e[_0x464740(0x15a)],_0x386238,_0x422adb),_0x1dd44b=ir(_0x54ba3b,_0x36704e[_0x464740(0x15a)])?_0x36704e:{..._0x36704e,'defaultValue':_0x54ba3b},_0x1dcd55=L(_0x1bf9e1),_0x2e7aaa=(_0x52c4e5=_0x1dcd55['colIndex'])==null?void 0x0:_0x52c4e5[_0x4c551a];return _0x2e7aaa==null?{'field':_0x1dd44b,'patches':[]}:{'field':_0x1dd44b,'patches':(_0x1dcd55[_0x464740(0x1e7)]??[])['flatMap'](_0x4bac41=>{const _0x46d576=_0x464740;var _0x107280,_0x1fc81e;let _0x18650a=(_0x107280=_0x1dcd55['rowIndex'])==null?void 0x0:_0x107280[_0x4bac41],_0x420ed7=(_0x1fc81e=_0x1dcd55['records'][_0x4bac41])==null?void 0x0:_0x1fc81e[_0x46d576(0x227)][_0x4c551a],_0x4f675a=rr(_0x420ed7,_0x386238,_0x422adb);return _0x18650a==null||ir(_0x4f675a,_0x420ed7)?[]:[{'row':_0x18650a,'col':_0x2e7aaa,'value':_0x4f675a??null}];})};}function tr(_0x2a63a2){const _0x207840=_0x6c183;return typeof _0x2a63a2==_0x207840(0x3d7)&&!!_0x2a63a2&&_0x207840(0x20b)in _0x2a63a2&&_0x2a63a2[_0x207840(0x20b)]===_0x207840(0x2d5);}function nr(_0x5d42d5){const _0x4488ec=_0x6c183;var _0x56ccf5;let _0x3878b0=Array[_0x4488ec(0x431)]((_0x56ccf5=_0x5d42d5['config'])==null?void 0x0:_0x56ccf5[_0x4488ec(0x2b3)])?_0x5d42d5[_0x4488ec(0x2ba)][_0x4488ec(0x2b3)]:[];return new Set(_0x3878b0[_0x4488ec(0x17a)](_0x42129c=>{const _0x3dc139=_0x4488ec;if(!_0x42129c||typeof _0x42129c!=_0x3dc139(0x3d7)||!('id'in _0x42129c))return[];let _0x1731a5=String(_0x42129c['id']);return _0x1731a5?[_0x1731a5]:[];}));}function rr(_0x57c406,_0x4d508f,_0x1aeb60){const _0x38a91b=_0x6c183;if(_0x57c406==null||_0x57c406==='')return _0x57c406;if(_0x1aeb60===_0x3a044b[_0x38a91b(0x20e)])return _0x4d508f[_0x38a91b(0x34b)](String(_0x57c406))?_0x57c406:null;let _0x553fc3=Array['isArray'](_0x57c406)?_0x57c406[_0x38a91b(0x141)](String):String(_0x57c406)[_0x38a91b(0x1c0)](',')[_0x38a91b(0x141)](_0x198d80=>_0x198d80['trim']())['filter'](Boolean),_0x460507=_0x553fc3[_0x38a91b(0x2be)](_0x5cb29e=>_0x4d508f[_0x38a91b(0x34b)](_0x5cb29e));return _0x460507[_0x38a91b(0x13c)]===_0x553fc3[_0x38a91b(0x13c)]?_0x57c406:Array[_0x38a91b(0x431)](_0x57c406)?_0x460507:String(_0x57c406)[_0x38a91b(0x16a)](',')?_0x460507[_0x38a91b(0x11a)](','):_0x460507[0x0]??[];}function ir(_0x28efd3,_0x35ea25){const _0x3950e5=_0x6c183;return JSON[_0x3950e5(0x25f)](_0x28efd3)===JSON[_0x3950e5(0x25f)](_0x35ea25);}function ar(_0x91a96a,_0xdb0247,_0x544c6d){const _0x380f5c=_0x6c183;var _0x66fe55,_0x3b39c2,_0xf8df09,_0x567e47;let _0x6eed5f=(_0x66fe55=_0x91a96a['rowIndex'])==null?void 0x0:_0x66fe55[_0xdb0247],_0x13cec9=(_0x3b39c2=_0x91a96a[_0x380f5c(0x390)])==null?void 0x0:_0x3b39c2[_0x544c6d];return _0x6eed5f!=null&&_0x13cec9!=null&&((_0xf8df09=_0x91a96a['rowId'])==null?void 0x0:_0xf8df09[_0x6eed5f])===_0xdb0247&&((_0x567e47=_0x91a96a[_0x380f5c(0x1fe)])==null?void 0x0:_0x567e47[_0x13cec9])===_0x544c6d&&_0x91a96a['cellData']!=null;}function or(_0x14a626,_0x54cbcb,_0xf36515){const _0x2d00e0=_0x6c183;var _0x42ecbe,_0x3318c4;return((_0x42ecbe=_0x14a626[_0x2d00e0(0x3d0)])==null?void 0x0:_0x42ecbe[_0x54cbcb])!=null&&((_0x3318c4=_0x14a626[_0x2d00e0(0x1fe)])==null?void 0x0:_0x3318c4[_0xf36515])!=null&&_0x14a626[_0x2d00e0(0x389)]!=null;}function sr(_0x5eb570,_0x20152a,_0x4d1e8d){const _0x57c392=_0x6c183;let _0x4756f4=_0x5eb570[_0x57c392(0x2be)](_0x440e05=>_0x440e05!==_0x20152a),_0x16c390=_0x4d1e8d['beforeFieldId']?_0x4756f4[_0x57c392(0x44e)](_0x4d1e8d['beforeFieldId']):_0x4d1e8d[_0x57c392(0x473)]?_0x4756f4[_0x57c392(0x44e)](_0x4d1e8d[_0x57c392(0x473)])+0x1:_0x4756f4[_0x57c392(0x13c)];return _0x4756f4[_0x57c392(0x289)](_0x16c390<0x0?_0x4756f4[_0x57c392(0x13c)]:_0x16c390,0x0,_0x20152a),_0x4756f4;}function cr(_0x149f83,_0x55495a,_0x36f3fb){const _0x592a08=_0x6c183;let _0x592934=_0x149f83[_0x592a08(0x2be)](_0x3a36c9=>_0x3a36c9!==_0x55495a);return _0x592934[_0x592a08(0x289)](ur(_0x36f3fb,_0x592934[_0x592a08(0x13c)]),0x0,_0x55495a),_0x592934;}function lr(_0x5d082f,_0x2b7f4c,_0xcab269){const _0x270daf=_0x6c183;if(Array[_0x270daf(0x431)](_0x5d082f))return _0xcab269===_0x270daf(0x31c)?_0x5d082f[_0x270daf(0x2be)](_0xa9dc11=>_0xa9dc11!==_0x2b7f4c):_0x5d082f['flatMap'](_0x5e6f4a=>{const _0x19ffb1=_0x270daf;if(_0x5e6f4a&&typeof _0x5e6f4a==_0x19ffb1(0x3d7)&&!Array[_0x19ffb1(0x431)](_0x5e6f4a)&&_0x5e6f4a[_0x19ffb1(0x2b0)]===_0x2b7f4c)return[];let _0xb53f6=lr(_0x5e6f4a,_0x2b7f4c);return _0xb53f6===void 0x0?[]:[_0xb53f6];});if(!_0x5d082f||typeof _0x5d082f!='object')return _0xcab269!=null&&_0xcab269[_0x270daf(0x35a)]('FieldId')&&_0x5d082f===_0x2b7f4c?void 0x0:_0x5d082f;let _0x18a6ab=_0x5d082f;if(_0x18a6ab['fieldId']!==_0x2b7f4c)return Object[_0x270daf(0x176)](Object[_0x270daf(0x279)](_0x18a6ab)[_0x270daf(0x17a)](([_0x51fe6d,_0xf2c025])=>{const _0x28fb05=_0x270daf;if(_0x51fe6d===_0x2b7f4c&&_0xcab269===_0x28fb05(0x48f))return[];let _0x469a49=lr(_0xf2c025,_0x2b7f4c,_0x51fe6d);return _0x469a49===void 0x0?[]:[[_0x51fe6d,_0x469a49]];}));}function ur(_0x3d41ba,_0x21a9e6){const _0x1993fb=_0x6c183;return Math[_0x1993fb(0x482)](0x0,Math[_0x1993fb(0x27a)](_0x3d41ba,_0x21a9e6));}function dr(_0x1f9ec6){'@babel/helpers - typeof';const _0x556bf4=_0x6c183;return dr=typeof Symbol==_0x556bf4(0x424)&&typeof Symbol[_0x556bf4(0x294)]==_0x556bf4(0x209)?function(_0x35284a){return typeof _0x35284a;}:function(_0x383deb){const _0x3dc619=_0x556bf4;return _0x383deb&&typeof Symbol==_0x3dc619(0x424)&&_0x383deb[_0x3dc619(0x454)]===Symbol&&_0x383deb!==Symbol[_0x3dc619(0x246)]?'symbol':typeof _0x383deb;},dr(_0x1f9ec6);}function fr(_0x4fc481,_0x91723d){const _0x3ba384=_0x6c183;if(dr(_0x4fc481)!=_0x3ba384(0x3d7)||!_0x4fc481)return _0x4fc481;var _0x34674b=_0x4fc481[Symbol[_0x3ba384(0x1d3)]];if(_0x34674b!==void 0x0){var _0x6f5fe9=_0x34674b[_0x3ba384(0x43b)](_0x4fc481,_0x91723d||_0x3ba384(0x4ac));if(dr(_0x6f5fe9)!=_0x3ba384(0x3d7))return _0x6f5fe9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x91723d===_0x3ba384(0x425)?String:Number)(_0x4fc481);}function pr(_0x4ee82d){const _0x5a64aa=_0x6c183;var _0x548ccb=fr(_0x4ee82d,_0x5a64aa(0x425));return dr(_0x548ccb)==_0x5a64aa(0x209)?_0x548ccb:_0x548ccb+'';}function G(_0x500ff5,_0x3b76c5,_0x50333a){const _0x12cdc3=_0x6c183;return(_0x3b76c5=pr(_0x3b76c5))in _0x500ff5?Object[_0x12cdc3(0x448)](_0x500ff5,_0x3b76c5,{'value':_0x50333a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x500ff5[_0x3b76c5]=_0x50333a,_0x500ff5;}const mr=_0x2e8f64(_0x6c183(0x3af));var hr=class extends _0x3b0b2d{constructor(..._0x160926){const _0x46562f=_0x6c183;super(..._0x160926),G(this,_0x46562f(0x1dd),new Map());}[_0x6c183(0x2d9)](_0x1af74c){const _0x566f06=_0x6c183;return this['_plugins'][_0x566f06(0x49e)](_0x1af74c[_0x566f06(0x20b)],_0x1af74c),_0x1827e4(()=>this[_0x566f06(0x1dd)][_0x566f06(0x2fc)](_0x1af74c[_0x566f06(0x20b)]));}['get'](_0x286974){const _0x3a5f0a=_0x6c183;let _0x24eb91=this[_0x3a5f0a(0x1dd)][_0x3a5f0a(0x43e)](_0x286974);if(!_0x24eb91)throw Error('[BaseFieldRegistryService]:\x20field\x20type\x20\x22'+_0x286974+_0x3a5f0a(0x25c));return _0x24eb91;}[_0x6c183(0x4bf)](_0xc16cbc){const _0x344e55=_0x6c183;return this[_0x344e55(0x1dd)]['get'](_0xc16cbc);}[_0x6c183(0x1db)](){const _0x29aaa5=_0x6c183;return Array[_0x29aaa5(0x1d5)](this[_0x29aaa5(0x1dd)][_0x29aaa5(0x227)]());}},gr=class{constructor(_0x206e37){const _0x249465=_0x6c183;this[_0x249465(0x393)]=_0x206e37,G(this,_0x249465(0x20b),_0x3cf49a[_0x249465(0x1cc)]),G(this,'subType',_0x1aafeb[_0x249465(0x117)]),G(this,_0x249465(0x323),_0x16215e[_0x249465(0x43a)]),G(this,'id',void 0x0),G(this,_0x249465(0x350),!0x0),this['id']=this[_0x249465(0x20b)]+'.'+this[_0x249465(0x2c1)]+'_'+_0x206e37;}},_r=class{constructor(_0x159a19){const _0x1e0d31=_0x6c183;this[_0x1e0d31(0x393)]=_0x159a19,G(this,'type',_0x3cf49a[_0x1e0d31(0x1cc)]),G(this,_0x1e0d31(0x2c1),_0x1aafeb[_0x1e0d31(0x337)]),G(this,_0x1e0d31(0x323),_0x16215e[_0x1e0d31(0x43a)]),G(this,'id',void 0x0),G(this,_0x1e0d31(0x350),!0x0),this['id']=this['type']+'.'+this[_0x1e0d31(0x2c1)]+'_'+_0x159a19;}},vr=class{constructor(_0x57afde){const _0x214c7f=_0x6c183;this[_0x214c7f(0x393)]=_0x57afde,G(this,_0x214c7f(0x20b),_0x3cf49a['Base']),G(this,_0x214c7f(0x2c1),_0x1aafeb[_0x214c7f(0x200)]),G(this,'status',_0x16215e[_0x214c7f(0x43a)]),G(this,'id',void 0x0),G(this,_0x214c7f(0x350),!0x0),this['id']=this[_0x214c7f(0x20b)]+'.'+this[_0x214c7f(0x2c1)]+'_'+_0x57afde;}},yr=class{constructor(_0x1e7ee9){const _0x58d948=_0x6c183;this[_0x58d948(0x393)]=_0x1e7ee9,G(this,'type',_0x3cf49a[_0x58d948(0x1cc)]),G(this,_0x58d948(0x2c1),_0x1aafeb['Export']),G(this,_0x58d948(0x323),_0x16215e[_0x58d948(0x43a)]),G(this,'id',void 0x0),G(this,_0x58d948(0x350),!0x0),this['id']=this[_0x58d948(0x20b)]+'.'+this[_0x58d948(0x2c1)]+'_'+_0x1e7ee9;}},br=class{constructor(_0x4f1406,_0x3576de){const _0x515c06=_0x6c183;this[_0x515c06(0x393)]=_0x4f1406,this[_0x515c06(0x365)]=_0x3576de,G(this,_0x515c06(0x20b),_0x3cf49a[_0x515c06(0x382)]),G(this,_0x515c06(0x2c1),_0x1aafeb['Edit']),G(this,_0x515c06(0x323),_0x16215e['INIT']),G(this,'id',void 0x0),G(this,_0x515c06(0x350),!0x0),this['id']=this[_0x515c06(0x20b)]+'.'+this[_0x515c06(0x2c1)]+'_'+_0x4f1406+'_'+_0x3576de;}},xr=class{constructor(_0x35f6d3,_0x390a02){const _0x32ba36=_0x6c183;this['unitId']=_0x35f6d3,this[_0x32ba36(0x365)]=_0x390a02,G(this,_0x32ba36(0x20b),_0x3cf49a[_0x32ba36(0x1f6)]),G(this,'subType',_0x1aafeb[_0x32ba36(0x200)]),G(this,_0x32ba36(0x323),_0x16215e[_0x32ba36(0x43a)]),G(this,'id',void 0x0),G(this,_0x32ba36(0x350),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x35f6d3+'_'+_0x390a02;}},Sr=class{constructor(_0x162b26,_0x7d9867){const _0x128711=_0x6c183;this[_0x128711(0x393)]=_0x162b26,this[_0x128711(0x365)]=_0x7d9867,G(this,_0x128711(0x20b),_0x3cf49a['BaseRecord']),G(this,'subType',_0x1aafeb[_0x128711(0x200)]),G(this,_0x128711(0x323),_0x16215e[_0x128711(0x43a)]),G(this,'id',void 0x0),G(this,_0x128711(0x350),!0x0),this['id']=this[_0x128711(0x20b)]+'.'+this['subType']+'_'+_0x162b26+'_'+_0x7d9867;}},Cr=class{constructor(_0x522de4,_0x275a10){const _0x448c3a=_0x6c183;this[_0x448c3a(0x393)]=_0x522de4,this['objectId']=_0x275a10,G(this,'type',_0x3cf49a['BaseTable']),G(this,_0x448c3a(0x2c1),_0x1aafeb[_0x448c3a(0x200)]),G(this,_0x448c3a(0x323),_0x16215e[_0x448c3a(0x43a)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x522de4+'_'+_0x275a10;}},wr=class{constructor(_0x3d4a88,_0x5f147c){const _0x5f5a19=_0x6c183;this['unitId']=_0x3d4a88,this[_0x5f5a19(0x365)]=_0x5f147c,G(this,_0x5f5a19(0x20b),_0x3cf49a[_0x5f5a19(0x33a)]),G(this,_0x5f5a19(0x2c1),_0x1aafeb['Edit']),G(this,'status',_0x16215e[_0x5f5a19(0x43a)]),G(this,'id',void 0x0),G(this,_0x5f5a19(0x350),!0x0),this['id']=this[_0x5f5a19(0x20b)]+'.'+this[_0x5f5a19(0x2c1)]+'_'+_0x3d4a88+'_'+_0x5f147c;}};const Tr=[_0x1aafeb[_0x6c183(0x200)],_0x1aafeb[_0x6c183(0x337)],_0x1aafeb['Export'],_0x1aafeb[_0x6c183(0x117)]],Er=new Set([_0x3cf49a['Base'],_0x3cf49a[_0x6c183(0x475)],_0x3cf49a['BaseField'],_0x3cf49a[_0x6c183(0x3c8)],_0x3cf49a[_0x6c183(0x33a)],_0x3cf49a[_0x6c183(0x382)]]),Dr=_0x6c183(0x240),Or=_0x6c183(0x310),kr=_0x6c183(0x12a),Ar='view/',jr=_0x6c183(0x2a5);function K(_0x4df66c){return''+Dr+encodeURIComponent(_0x4df66c);}function q(_0x5ddd8a,_0x181f14){return''+Or+encodeURIComponent(_0x5ddd8a)+'/'+encodeURIComponent(_0x181f14);}function J(_0x50efa0,_0x1d9a13){return''+kr+encodeURIComponent(_0x50efa0)+'/'+encodeURIComponent(_0x1d9a13);}function Mr(_0x23cd0e,_0x4b3c8c){return''+Ar+encodeURIComponent(_0x23cd0e)+'/'+encodeURIComponent(_0x4b3c8c);}function Nr(_0x159d95){return''+jr+encodeURIComponent(_0x159d95);}function Pr(_0x546d74,_0x35e39c,_0xed7c08){const _0x366cbe=_0x6c183;if(_0x35e39c===_0x546d74)switch(_0xed7c08){case _0x1aafeb[_0x366cbe(0x200)]:return new vr(_0x546d74);case _0x1aafeb[_0x366cbe(0x337)]:return new _r(_0x546d74);case _0x1aafeb[_0x366cbe(0x1c9)]:return new yr(_0x546d74);case _0x1aafeb[_0x366cbe(0x117)]:return new gr(_0x546d74);default:throw Error(_0x366cbe(0x260)+_0xed7c08);}if(_0xed7c08!==_0x1aafeb[_0x366cbe(0x200)])throw Error(_0x366cbe(0x4a7)+_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Dr))return new Cr(_0x546d74,_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Or))return new xr(_0x546d74,_0x35e39c);if(_0x35e39c['startsWith'](kr))return new Sr(_0x546d74,_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Ar))return new wr(_0x546d74,_0x35e39c);if(_0x35e39c['startsWith'](jr))return new br(_0x546d74,_0x35e39c);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x35e39c);}function Fr(_0xe5bcbc,_0x121748,_0x375d36,_0x571b00){const _0x469b12=_0x6c183;var _0x3403ca;return((_0x3403ca=_0xe5bcbc[_0x469b12(0x187)](Pr(_0x121748,_0x375d36,_0x571b00)['id']))==null?void 0x0:_0x3403ca[_0x469b12(0x350)])??!0x0;}function Ir(_0xb59e6d,_0x14ef8d,_0x5fba68,_0x491e4b,_0xb455e2){const _0x5ccd67=_0x6c183;let _0x26cd9b=Pr(_0x14ef8d,_0x5fba68,_0x491e4b);_0xb59e6d[_0x5ccd67(0x187)](_0x26cd9b['id'])||_0xb59e6d[_0x5ccd67(0x2e2)](_0x26cd9b),_0xb59e6d[_0x5ccd67(0x3fe)](_0x26cd9b['id'],_0xb455e2);}function Lr(_0x597f25,_0x13ce32,_0x4f8aa0,_0x2e569d){const _0x48ab5e=_0x6c183;_0x597f25[_0x48ab5e(0x293)](Pr(_0x13ce32,_0x4f8aa0,_0x2e569d)['id']);}function Rr(_0x129dde,_0x5beccc){const _0x44fad4=_0x6c183;_0x129dde[_0x44fad4(0x44b)]()[_0x44fad4(0x2e0)]((_0x322482,_0x4bd5e0)=>{const _0x541862=_0x44fad4;_0x322482['subscribe'](_0x5b4706=>{const _0x42d9f8=_0x2b5a;Er[_0x42d9f8(0x34b)](_0x5b4706['type'])&&'unitId'in _0x5b4706&&_0x5b4706[_0x42d9f8(0x393)]===_0x5beccc&&_0x129dde[_0x42d9f8(0x293)](_0x4bd5e0);})[_0x541862(0x49c)]();});}function zr(_0x5967f4,_0x347edc,_0x3d2bd4){const _0x3b46e2=_0x6c183;return Fr(_0x5967f4,_0x347edc,_0x347edc,_0x1aafeb['Edit'])&&Array[_0x3b46e2(0x1d5)](_0x3d2bd4)[_0x3b46e2(0x387)](_0x5808c2=>Fr(_0x5967f4,_0x347edc,_0x5808c2,_0x1aafeb[_0x3b46e2(0x200)]));}function Y(_0x428a95,_0x5ee01e){return function(_0xb7b503,_0x47e4c0){_0x5ee01e(_0xb7b503,_0x47e4c0,_0x428a95);};}function X(_0x1cbb46,_0x5a5c11,_0x263598,_0x2e59a6){const _0x56c033=_0x6c183;var _0x94113d=arguments[_0x56c033(0x13c)],_0x177929=_0x94113d<0x3?_0x5a5c11:_0x2e59a6===null?_0x2e59a6=Object[_0x56c033(0x2b1)](_0x5a5c11,_0x263598):_0x2e59a6,_0x5c74ab;if(typeof Reflect=='object'&&typeof Reflect[_0x56c033(0x468)]==_0x56c033(0x424))_0x177929=Reflect[_0x56c033(0x468)](_0x1cbb46,_0x5a5c11,_0x263598,_0x2e59a6);else{for(var _0x1c4043=_0x1cbb46[_0x56c033(0x13c)]-0x1;_0x1c4043>=0x0;_0x1c4043--)(_0x5c74ab=_0x1cbb46[_0x1c4043])&&(_0x177929=(_0x94113d<0x3?_0x5c74ab(_0x177929):_0x94113d>0x3?_0x5c74ab(_0x5a5c11,_0x263598,_0x177929):_0x5c74ab(_0x5a5c11,_0x263598))||_0x177929);}return _0x94113d>0x3&&_0x177929&&Object[_0x56c033(0x448)](_0x5a5c11,_0x263598,_0x177929),_0x177929;}const Br=_0x2e8f64(_0x6c183(0x24f));let Vr=class extends _0x3b0b2d{constructor(_0x46ef55,_0x48bd2e){const _0x781d7f=_0x6c183;super(),this[_0x781d7f(0x3ad)]=_0x46ef55,this['_instanceService']=_0x48bd2e,G(this,_0x781d7f(0x29f),new Map()),G(this,_0x781d7f(0x348),new Map()),G(this,_0x781d7f(0x1e2),new Map()),G(this,_0x781d7f(0x4aa),new Map()),G(this,_0x781d7f(0x1a6),new Map()),G(this,'_tableBaseIds',new Map()),this[_0x781d7f(0x135)](this[_0x781d7f(0x470)][_0x781d7f(0x1b5)](_0x5c5c99['UNIVER_BASE'])['subscribe'](_0x3ea0c9=>this['_clearUnit'](_0x3ea0c9[_0x781d7f(0x2ff)]())));}[_0x6c183(0x11c)](_0x1c8e98){const _0x2c85bd=_0x6c183;var _0x1374a8;return this[_0x2c85bd(0x437)](_0x1c8e98,[])&&(((_0x1374a8=this[_0x2c85bd(0x29f)]['get'](_0x1c8e98))==null?void 0x0:_0x1374a8['createTable'])??!0x0);}['canEditTable'](_0x5c75d3){return this['_canEditTable'](_0x5c75d3);}[_0x6c183(0x1b0)](_0x502838){const _0x5e292e=_0x6c183;var _0x28b624;return this[_0x5e292e(0x1f4)](_0x502838)&&(((_0x28b624=this['_tablePermissions'][_0x5e292e(0x43e)](_0x502838))==null?void 0x0:_0x28b624[_0x5e292e(0x2fc)])??!0x0);}['canCreateField'](_0x2243aa){const _0x1e9078=_0x6c183;var _0x1b6873;return this[_0x1e9078(0x1f4)](_0x2243aa)&&(((_0x1b6873=this[_0x1e9078(0x348)][_0x1e9078(0x43e)](_0x2243aa))==null?void 0x0:_0x1b6873[_0x1e9078(0x250)])??!0x0);}[_0x6c183(0x42c)](_0x5650f9,_0x58b4c4){const _0x568014=_0x6c183;var _0x3a548f;return this[_0x568014(0x1f4)](_0x5650f9)&&this[_0x568014(0x437)](_0x5650f9,[q(_0x5650f9,_0x58b4c4)])&&(((_0x3a548f=this[_0x568014(0x1e2)]['get'](Ur(_0x5650f9,_0x58b4c4)))==null?void 0x0:_0x3a548f[_0x568014(0x19b)])??!0x0);}[_0x6c183(0x222)](_0x563a15,_0x4b2ea2){const _0x4bfff8=_0x6c183;var _0x177d26;return this[_0x4bfff8(0x42c)](_0x563a15,_0x4b2ea2)&&(((_0x177d26=this[_0x4bfff8(0x1e2)]['get'](Ur(_0x563a15,_0x4b2ea2)))==null?void 0x0:_0x177d26[_0x4bfff8(0x2fc)])??!0x0);}[_0x6c183(0x321)](_0x21e6d2){const _0x423991=_0x6c183;var _0x2d96d4;return this[_0x423991(0x1f4)](_0x21e6d2)&&(((_0x2d96d4=this[_0x423991(0x348)][_0x423991(0x43e)](_0x21e6d2))==null?void 0x0:_0x2d96d4[_0x423991(0x134)])??!0x0);}[_0x6c183(0x46a)](_0x1b2a13,_0x38e3d5){const _0x1bc42d=_0x6c183;var _0x2a0a3e;let _0x1d6a99=this[_0x1bc42d(0x4aa)][_0x1bc42d(0x43e)](Wr(_0x1b2a13,_0x38e3d5));return this[_0x1bc42d(0x437)](_0x1b2a13,[K(_0x1b2a13),J(_0x1b2a13,_0x38e3d5)])&&(((_0x2a0a3e=this['_tablePermissions'][_0x1bc42d(0x43e)](_0x1b2a13))==null?void 0x0:_0x2a0a3e[_0x1bc42d(0x19b)])??!0x0)&&((_0x1d6a99==null?void 0x0:_0x1d6a99['edit'])??!0x0)&&((_0x1d6a99==null?void 0x0:_0x1d6a99[_0x1bc42d(0x367)])??!0x0);}['canDeleteRecord'](_0x1de9b6,_0x7e1781){const _0x140078=_0x6c183;var _0x5e62cd,_0x2ee4b2,_0x56cfc4;return this['_canEdit'](_0x1de9b6,[K(_0x1de9b6),J(_0x1de9b6,_0x7e1781)])&&(((_0x5e62cd=this[_0x140078(0x348)][_0x140078(0x43e)](_0x1de9b6))==null?void 0x0:_0x5e62cd['edit'])??!0x0)&&(((_0x2ee4b2=this[_0x140078(0x4aa)]['get'](Wr(_0x1de9b6,_0x7e1781)))==null?void 0x0:_0x2ee4b2[_0x140078(0x19b)])??!0x0)&&(((_0x56cfc4=this['_recordPermissions'][_0x140078(0x43e)](Wr(_0x1de9b6,_0x7e1781)))==null?void 0x0:_0x56cfc4[_0x140078(0x2fc)])??!0x0);}['canEditCell'](_0x48edab,_0x3556cf,_0x4e26b4){const _0x1541ea=_0x6c183;var _0x3300c6,_0x200cd6,_0x5f3d3b;let _0x5a3415=this[_0x1541ea(0x1e2)][_0x1541ea(0x43e)](Ur(_0x48edab,_0x4e26b4));return this['_canEdit'](_0x48edab,[K(_0x48edab),q(_0x48edab,_0x4e26b4),J(_0x48edab,_0x3556cf)])&&(((_0x3300c6=this[_0x1541ea(0x348)]['get'](_0x48edab))==null?void 0x0:_0x3300c6[_0x1541ea(0x19b)])??!0x0)&&(((_0x200cd6=this['_recordPermissions'][_0x1541ea(0x43e)](Wr(_0x48edab,_0x3556cf)))==null?void 0x0:_0x200cd6[_0x1541ea(0x19b)])??!0x0)&&(((_0x5f3d3b=this[_0x1541ea(0x4aa)][_0x1541ea(0x43e)](Wr(_0x48edab,_0x3556cf)))==null?void 0x0:_0x5f3d3b['editCell'])??!0x0)&&((_0x5a3415==null?void 0x0:_0x5a3415['edit'])??!0x0)&&((_0x5a3415==null?void 0x0:_0x5a3415[_0x1541ea(0x367)])??!0x0);}[_0x6c183(0x3d2)](_0x332858,_0x2f800d){const _0x1cc067=_0x6c183;var _0x1126b3,_0x37c36c,_0x4e9148;return this[_0x1cc067(0x437)](_0x332858,[K(_0x332858),Mr(_0x332858,_0x2f800d)])&&(((_0x1126b3=this['_tablePermissions'][_0x1cc067(0x43e)](_0x332858))==null?void 0x0:_0x1126b3[_0x1cc067(0x19b)])??!0x0)&&(((_0x37c36c=this['_viewPermissions'][_0x1cc067(0x43e)](Gr(_0x332858,_0x2f800d)))==null?void 0x0:_0x37c36c['edit'])??!0x0)&&(((_0x4e9148=this[_0x1cc067(0x348)][_0x1cc067(0x43e)](_0x332858))==null?void 0x0:_0x4e9148[_0x1cc067(0x30c)])??!0x0);}[_0x6c183(0x38a)](_0x4522e3,_0x446f23){const _0x366325=_0x6c183;this[_0x366325(0x29f)][_0x366325(0x49e)](_0x4522e3,{...this[_0x366325(0x29f)]['get'](_0x4522e3),..._0x446f23}),_0x446f23[_0x366325(0x19b)]!==void 0x0&&Ir(this[_0x366325(0x3ad)],_0x4522e3,_0x4522e3,_0x1aafeb['Edit'],_0x446f23['edit']);}[_0x6c183(0x3a1)](_0xa39520,_0x286a6a){const _0x99db4d=_0x6c183;this['_rememberTable'](_0xa39520),this[_0x99db4d(0x348)][_0x99db4d(0x49e)](_0xa39520,{...this['_tablePermissions'][_0x99db4d(0x43e)](_0xa39520),..._0x286a6a}),this[_0x99db4d(0x151)](_0xa39520,K(_0xa39520),_0x286a6a['edit']);}[_0x6c183(0x39e)](_0x32abcb,_0x1f292f,_0x50d0e0){const _0x4f6878=_0x6c183;this[_0x4f6878(0x2bb)](_0x32abcb);let _0x2c9ff9=Ur(_0x32abcb,_0x1f292f);this[_0x4f6878(0x1e2)][_0x4f6878(0x49e)](_0x2c9ff9,{...this[_0x4f6878(0x1e2)][_0x4f6878(0x43e)](_0x2c9ff9),..._0x50d0e0}),this[_0x4f6878(0x151)](_0x32abcb,q(_0x32abcb,_0x1f292f),_0x50d0e0[_0x4f6878(0x19b)]);}[_0x6c183(0x317)](_0xa08bca,_0x496022,_0x42a035){const _0x4aee32=_0x6c183;this[_0x4aee32(0x2bb)](_0xa08bca);let _0x30c312=Wr(_0xa08bca,_0x496022);this['_recordPermissions'][_0x4aee32(0x49e)](_0x30c312,{...this[_0x4aee32(0x4aa)]['get'](_0x30c312),..._0x42a035}),this[_0x4aee32(0x151)](_0xa08bca,J(_0xa08bca,_0x496022),_0x42a035[_0x4aee32(0x19b)]);}[_0x6c183(0x360)](_0x3c1d52,_0x48b274,_0x115eec){const _0x38e416=_0x6c183;this['_rememberTable'](_0x3c1d52);let _0x13ea84=Gr(_0x3c1d52,_0x48b274);this[_0x38e416(0x1a6)]['set'](_0x13ea84,{...this['_viewPermissions'][_0x38e416(0x43e)](_0x13ea84),..._0x115eec}),this[_0x38e416(0x151)](_0x3c1d52,Mr(_0x3c1d52,_0x48b274),_0x115eec[_0x38e416(0x19b)]);}[_0x6c183(0x41b)](_0x3f2892){const _0xbd203e=_0x6c183;this[_0xbd203e(0x29f)]['delete'](_0x3f2892),Lr(this[_0xbd203e(0x3ad)],_0x3f2892,_0x3f2892,_0x1aafeb[_0xbd203e(0x200)]);}[_0x6c183(0x211)](_0x1c207b){const _0x449a32=_0x6c183;this[_0x449a32(0x348)][_0x449a32(0x2fc)](_0x1c207b),this[_0x449a32(0x46b)](_0x1c207b,K(_0x1c207b));}[_0x6c183(0x38d)](_0x1d3e1b,_0x1ea8b1){const _0x517281=_0x6c183;this[_0x517281(0x1e2)][_0x517281(0x2fc)](Ur(_0x1d3e1b,_0x1ea8b1)),this[_0x517281(0x46b)](_0x1d3e1b,q(_0x1d3e1b,_0x1ea8b1));}[_0x6c183(0x2e8)](_0x59b54d,_0x2e28e6){const _0x433437=_0x6c183;this['_recordPermissions'][_0x433437(0x2fc)](Wr(_0x59b54d,_0x2e28e6)),this['_clearObjectEdit'](_0x59b54d,J(_0x59b54d,_0x2e28e6));}[_0x6c183(0x49f)](_0x5c6879,_0x40e79b){const _0xd8bcc=_0x6c183;this[_0xd8bcc(0x1a6)][_0xd8bcc(0x2fc)](Gr(_0x5c6879,_0x40e79b)),this[_0xd8bcc(0x46b)](_0x5c6879,Mr(_0x5c6879,_0x40e79b));}['getSnapshot'](){const _0x54e50d=_0x6c183;return{'bases':Object[_0x54e50d(0x176)](this[_0x54e50d(0x29f)]),'tables':Object[_0x54e50d(0x176)](this['_tablePermissions']),'fields':Object[_0x54e50d(0x176)](this[_0x54e50d(0x1e2)]),'records':Object['fromEntries'](this[_0x54e50d(0x4aa)]),'views':Object['fromEntries'](this[_0x54e50d(0x1a6)])};}[_0x6c183(0x1f4)](_0x5a714a){const _0x4b469f=_0x6c183;var _0x453269;return this[_0x4b469f(0x437)](_0x5a714a,[K(_0x5a714a)])&&(((_0x453269=this[_0x4b469f(0x348)][_0x4b469f(0x43e)](_0x5a714a))==null?void 0x0:_0x453269[_0x4b469f(0x19b)])??!0x0);}[_0x6c183(0x437)](_0x1e7628,_0x4bcd88){const _0x493fec=_0x6c183;var _0x53bd47;let _0x241cf7=this[_0x493fec(0x379)](_0x1e7628);return!_0x241cf7||zr(this[_0x493fec(0x3ad)],_0x241cf7,_0x4bcd88)&&(((_0x53bd47=this[_0x493fec(0x29f)][_0x493fec(0x43e)](_0x241cf7))==null?void 0x0:_0x53bd47[_0x493fec(0x19b)])??!0x0);}[_0x6c183(0x151)](_0x51af38,_0x4c69dd,_0x4dae24){const _0x3bfdf5=_0x6c183;if(_0x4dae24===void 0x0)return;let _0x3f87c8=this[_0x3bfdf5(0x379)](_0x51af38);_0x3f87c8&&Ir(this[_0x3bfdf5(0x3ad)],_0x3f87c8,_0x4c69dd,_0x1aafeb[_0x3bfdf5(0x200)],_0x4dae24);}[_0x6c183(0x46b)](_0x543cb5,_0x9c1da3){const _0x2594eb=_0x6c183;let _0x50e893=this[_0x2594eb(0x379)](_0x543cb5);_0x50e893&&Lr(this['_permissionService'],_0x50e893,_0x9c1da3,_0x1aafeb[_0x2594eb(0x200)]);}['_resolveBaseId'](_0x392f31){const _0x57bb63=_0x6c183;var _0x412c20;let _0x17c8f1=this[_0x57bb63(0x470)]['getUnit'](_0x392f31,_0x5c5c99[_0x57bb63(0x36b)]);return _0x17c8f1?_0x17c8f1[_0x57bb63(0x2ff)]():(_0x412c20=this[_0x57bb63(0x470)]['getAllUnitsForType'](_0x5c5c99[_0x57bb63(0x36b)])[_0x57bb63(0x392)](_0x2da3af=>!!_0x2da3af[_0x57bb63(0x32f)]()[_0x57bb63(0x298)][_0x392f31]))==null?void 0x0:_0x412c20[_0x57bb63(0x2ff)]();}[_0x6c183(0x2bb)](_0x14a418){const _0x3062c5=_0x6c183;let _0x861c1c=this[_0x3062c5(0x379)](_0x14a418);_0x861c1c&&this[_0x3062c5(0x4b0)][_0x3062c5(0x49e)](_0x14a418,_0x861c1c);}[_0x6c183(0x1dc)](_0x2cf1fd){const _0x349767=_0x6c183;this['_basePermissions']['delete'](_0x2cf1fd),this[_0x349767(0x4b0)][_0x349767(0x2e0)]((_0x567939,_0x4d26f2)=>{const _0x38a65a=_0x349767;_0x567939===_0x2cf1fd&&(this['_tablePermissions']['delete'](_0x4d26f2),Hr(this[_0x38a65a(0x1e2)],_0x4d26f2+'\x1f'),Hr(this[_0x38a65a(0x4aa)],_0x4d26f2+'\x1f'),Hr(this[_0x38a65a(0x1a6)],_0x4d26f2+'\x1f'),this[_0x38a65a(0x4b0)][_0x38a65a(0x2fc)](_0x4d26f2));});}};Vr=X([Y(0x0,_0x41b15f),Y(0x1,_0x24efe9)],Vr);function Hr(_0x4737a0,_0xc5004b){const _0x5df299=_0x6c183;_0x4737a0[_0x5df299(0x2e0)]((_0x3f35ea,_0x181bed)=>{const _0x427908=_0x5df299;_0x181bed[_0x427908(0x1fb)](_0xc5004b)&&_0x4737a0[_0x427908(0x2fc)](_0x181bed);});}function Ur(_0x2d8fd2,_0x526ff9){return _0x2d8fd2+'\x1f'+_0x526ff9;}function Wr(_0xd4183b,_0x1e41a1){return _0xd4183b+'\x1f'+_0x1e41a1;}function Gr(_0x3a8a63,_0x2b8c5b){return _0x3a8a63+'\x1f'+_0x2b8c5b;}const Kr=_0x2e8f64(_0x6c183(0x232));let qr=class{constructor(_0x484976,_0x5e3e76=Jr(),_0x2e8a2f={}){const _0x16d0e4=_0x6c183;this['_permissionService']=_0x484976,this[_0x16d0e4(0x287)]=_0x5e3e76,this[_0x16d0e4(0x2d3)]=_0x2e8a2f,G(this,_0x16d0e4(0x4b8),new W()),G(this,_0x16d0e4(0x37c),new z());}[_0x6c183(0x1b3)](_0xb2d68b,_0x35ac39,_0x3977ff){const _0x3db15c=_0x6c183;if(!this[_0x3db15c(0x3ad)][_0x3db15c(0x11c)](_0xb2d68b[_0x3db15c(0x2ff)]()))throw Error(_0x3db15c(0x459));_0x37d535(_0x35ac39),this['_apply'](_0xb2d68b,this[_0x3db15c(0x4b8)]['createTable'](_0xb2d68b[_0x3db15c(0x32f)](),_0x35ac39,_0x3977ff));}['renameTable'](_0x3d72cd,_0x600218,_0xe873c2){const _0x2e5ccd=_0x6c183;if(!this[_0x2e5ccd(0x3ad)]['canEditTable'](_0x600218))throw Error(_0x2e5ccd(0x256));this[_0x2e5ccd(0x219)](_0x3d72cd,this[_0x2e5ccd(0x4b8)][_0x2e5ccd(0x17d)](_0x3d72cd[_0x2e5ccd(0x32f)](),_0x600218,_0xe873c2));}[_0x6c183(0x283)](_0x3ee986,_0x1316db){const _0x2f6ad2=_0x6c183;if(!this['_permissionService'][_0x2f6ad2(0x1b0)](_0x1316db))throw Error(_0x2f6ad2(0x1a3));let _0x599b25=He(_0x3ee986[_0x2f6ad2(0x32f)](),_0x1316db);if(_0x599b25[_0x2f6ad2(0x13c)]>0x0)throw Error(_0x2f6ad2(0x408)+_0x599b25[_0x2f6ad2(0x141)](_0x5ba3c1=>_0x5ba3c1['tableId']+'.'+_0x5ba3c1['fieldId'])['join'](',\x20')+').');this[_0x2f6ad2(0x219)](_0x3ee986,this['_factory'][_0x2f6ad2(0x283)](_0x3ee986[_0x2f6ad2(0x32f)](),_0x1316db));}[_0x6c183(0x20d)](_0x53822f,_0x386f7e,_0x88d4bc,_0x37daff,_0x23d95c){const _0x51d6d7=_0x6c183;this['_apply'](_0x53822f,this[_0x51d6d7(0x357)](_0x53822f,_0x386f7e,_0x88d4bc,_0x37daff,_0x23d95c));}['setRecordValues'](_0x5ae247,_0x364500,_0x314aaf){const _0x3a9ea1=_0x6c183;this[_0x3a9ea1(0x219)](_0x5ae247,this[_0x3a9ea1(0x483)](_0x5ae247,_0x364500,_0x314aaf));}['createRecord'](_0x26d75a,_0x9f284d,_0x123c39){const _0x305840=_0x6c183;this[_0x305840(0x219)](_0x26d75a,this[_0x305840(0x467)](_0x26d75a,_0x9f284d,_0x123c39));}[_0x6c183(0x357)](_0x38ac95,_0x3594d7,_0x3e67c2,_0x5bd0b8,_0x2665a9){const _0xe8fa0c=_0x6c183;let _0x51cebb=_0x38ac95[_0xe8fa0c(0x32f)](),_0x458450=this[_0xe8fa0c(0x46c)](_0x51cebb,_0x3594d7,_0x3e67c2,_0x5bd0b8,_0x2665a9),_0x2e2a64=this['_withModifiedSystemValues'](_0x51cebb,_0x3594d7,_0x3e67c2,{[_0x5bd0b8]:_0x458450});return this['_factory'][_0xe8fa0c(0x3a6)](_0x51cebb,_0x3594d7,[_0x2e2a64]);}['createSetRecordValuesOp'](_0x5db2e9,_0x56523b,_0x309bec){const _0x5baf74=_0x6c183;let _0x51edd6=_0x5db2e9['getSnapshot'](),_0x49fc00=_0x309bec[_0x5baf74(0x141)](_0x2ff194=>this[_0x5baf74(0x157)](_0x51edd6,_0x56523b,_0x2ff194[_0x5baf74(0x347)],{...Object['fromEntries'](Object[_0x5baf74(0x279)](_0x2ff194[_0x5baf74(0x227)])[_0x5baf74(0x141)](([_0x332b38,_0x658f49])=>[_0x332b38,this[_0x5baf74(0x46c)](_0x51edd6,_0x56523b,_0x2ff194['recordId'],_0x332b38,_0x658f49)]))}));return this[_0x5baf74(0x4b8)][_0x5baf74(0x3a6)](_0x51edd6,_0x56523b,_0x49fc00);}['createCreateRecordOp'](_0x547e32,_0x481b00,_0x12acec){const _0x67f7b3=_0x6c183;if(!this['_permissionService'][_0x67f7b3(0x321)](_0x481b00))throw Error(_0x67f7b3(0x380));let _0x4e7d91=_0x547e32['getSnapshot'](),_0x36e262=this[_0x67f7b3(0x476)](_0x4e7d91[_0x67f7b3(0x298)][_0x481b00]);return this[_0x67f7b3(0x4b8)][_0x67f7b3(0x134)](_0x4e7d91,_0x481b00,this[_0x67f7b3(0x28b)](_0x4e7d91,_0x481b00,_0x12acec,_0x36e262));}[_0x6c183(0x3ec)](_0x4a9353,_0xa97848,_0x2e75fd){const _0x4f7f03=_0x6c183;if(!this['_permissionService'][_0x4f7f03(0x321)](_0xa97848))throw Error(_0x4f7f03(0x380));let _0x36e5cb=_0x4a9353['getSnapshot']();return I(_0x4f7f03(0x136),()=>{const _0x9bc0b2=_0x4f7f03;let _0x5191dc=this['_createNumberingAllocators'](_0x36e5cb['tables'][_0xa97848]);return this[_0x9bc0b2(0x4b8)]['createRecords'](_0x36e5cb,_0xa97848,_0x2e75fd[_0x9bc0b2(0x141)](_0x1420fe=>this[_0x9bc0b2(0x28b)](_0x36e5cb,_0xa97848,_0x1420fe,_0x5191dc)));},{'existingRecords':Object['keys'](_0x36e5cb['tables'][_0xa97848][_0x4f7f03(0x258)])[_0x4f7f03(0x13c)],'records':_0x2e75fd[_0x4f7f03(0x13c)]});}[_0x6c183(0x4b7)](_0x993ee6,_0x198101,_0x28dbaa,_0x3b8bb0,_0x29c464){const _0x45e083=_0x6c183;if(!this[_0x45e083(0x3ad)][_0x45e083(0x40b)](_0x198101))throw Error('[BaseCommandService]:\x20cannot\x20create\x20field.');let _0x41d926=_0x993ee6[_0x45e083(0x32f)]();if(this[_0x45e083(0x3c4)](_0x41d926,_0x28dbaa),_0x3b8bb0===0x0)throw Error(_0x45e083(0x242));let _0x50ee01=this['_factory'][_0x45e083(0x250)](_0x41d926,_0x198101,{'field':_0x28dbaa,'index':_0x3b8bb0,'viewIndexes':_0x29c464}),_0x3949d0=this['_createSystemFieldValuePatches'](_0x41d926,_0x198101,_0x28dbaa);if(!_0x3949d0[_0x45e083(0x13c)])return _0x50ee01;let _0x42473c=this[_0x45e083(0x37c)][_0x45e083(0x4c3)](_0x41d926,_0x50ee01);return R([_0x50ee01,this[_0x45e083(0x4b8)]['setRecordValues'](_0x42473c,_0x198101,_0x3949d0)]);}[_0x6c183(0x465)](_0x40b5b5,_0x53689a,_0xa33012){const _0x29ba38=_0x6c183;if(!this[_0x29ba38(0x3ad)][_0x29ba38(0x48b)](_0x53689a,_0xa33012))throw Error(_0x29ba38(0x203));this[_0x29ba38(0x219)](_0x40b5b5,this['_factory'][_0x29ba38(0x465)](_0x40b5b5[_0x29ba38(0x32f)](),_0x53689a,_0xa33012));}[_0x6c183(0x121)](_0x4f44bf,_0x1f02ee,_0x2cd70e,_0x3b0652){const _0x25c532=_0x6c183;if(!this['_permissionService']['canCreateRecord'](_0x1f02ee))throw Error(_0x25c532(0x380));this['_apply'](_0x4f44bf,this[_0x25c532(0x4b8)][_0x25c532(0x121)](_0x4f44bf[_0x25c532(0x32f)](),_0x1f02ee,_0x2cd70e,{..._0x3b0652,'values':{..._0x3b0652[_0x25c532(0x227)],[_0x5a35e2]:_0x3b0652['id']}}));}[_0x6c183(0x313)](_0x174459,_0x232ab0,_0x5d67a1,_0x561e46){const _0x1e2eda=_0x6c183;if(!this[_0x1e2eda(0x3ad)][_0x1e2eda(0x46a)](_0x232ab0,_0x5d67a1))throw Error(_0x1e2eda(0x189));this[_0x1e2eda(0x219)](_0x174459,this[_0x1e2eda(0x4b8)][_0x1e2eda(0x313)](_0x174459[_0x1e2eda(0x32f)](),_0x232ab0,_0x5d67a1,_0x561e46));}['createField'](_0x4900bb,_0x70ccb8,_0xacc2eb,_0x367068,_0xb85634){const _0x3c9c2b=_0x6c183;this['_apply'](_0x4900bb,this[_0x3c9c2b(0x4b7)](_0x4900bb,_0x70ccb8,_0xacc2eb,_0x367068,_0xb85634));}[_0x6c183(0x13b)](_0x4d6deb,_0x9e8bf8,_0x4e9ac0,_0x3c64a3){const _0x5bcff0=_0x6c183;var _0x4bfc56;if(!this['_permissionService'][_0x5bcff0(0x42c)](_0x9e8bf8,_0x4e9ac0))throw Error(_0x5bcff0(0x36d));let _0x329a1f=_0x4d6deb[_0x5bcff0(0x32f)](),_0x15fa55=(_0x4bfc56=_0x329a1f[_0x5bcff0(0x298)][_0x9e8bf8])==null?void 0x0:_0x4bfc56[_0x5bcff0(0x398)][_0x4e9ac0];if(!_0x15fa55||_0x4e9ac0===_0x5a35e2)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0x5bcff0(0x3c4)](_0x329a1f,{..._0x15fa55,..._0x3c64a3}),this['_apply'](_0x4d6deb,this[_0x5bcff0(0x4b8)][_0x5bcff0(0x13b)](_0x329a1f,_0x9e8bf8,_0x4e9ac0,_0x3c64a3));}[_0x6c183(0x3e5)](_0x1fc326,_0x47a379,_0x2d944d,_0x55146c){const _0x216cb2=_0x6c183;var _0x462e79;if(!this[_0x216cb2(0x3ad)][_0x216cb2(0x42c)](_0x47a379,_0x2d944d))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x387688=_0x1fc326[_0x216cb2(0x32f)](),_0x30e289=(_0x462e79=_0x387688[_0x216cb2(0x298)][_0x47a379])==null?void 0x0:_0x462e79[_0x216cb2(0x398)][_0x2d944d];if(!_0x30e289||_0x2d944d===_0x5a35e2)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x216cb2(0x3c4)](_0x387688,{..._0x30e289,..._0x55146c}),this[_0x216cb2(0x219)](_0x1fc326,this[_0x216cb2(0x4b8)]['changeFieldType'](_0x387688,_0x47a379,_0x2d944d,_0x55146c));}[_0x6c183(0x2fb)](_0x22f112,_0x529b52,_0xe9978a){const _0x27875b=_0x6c183;var _0x15496e;if(((_0x15496e=_0x22f112['getSnapshot']()[_0x27875b(0x298)][_0x529b52])==null?void 0x0:_0x15496e[_0x27875b(0x3b2)])===_0xe9978a||_0xe9978a===_0x5a35e2)throw Error(_0x27875b(0x47d));if(!this['_permissionService'][_0x27875b(0x222)](_0x529b52,_0xe9978a))throw Error(_0x27875b(0x326));this[_0x27875b(0x219)](_0x22f112,this['_factory']['deleteField'](_0x22f112['getSnapshot'](),_0x529b52,_0xe9978a));}[_0x6c183(0x344)](_0x116560,_0x362ecd,_0x11e8c0,_0x3ed191){const _0x18e48f=_0x6c183;if(!this[_0x18e48f(0x3ad)]['canEditField'](_0x362ecd,_0x11e8c0))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x11e8c0===_0x5a35e2||_0x3ed191[_0x18e48f(0x33d)]===_0x5a35e2)throw Error(_0x18e48f(0x3df));this[_0x18e48f(0x219)](_0x116560,this[_0x18e48f(0x4b8)][_0x18e48f(0x344)](_0x116560[_0x18e48f(0x32f)](),_0x362ecd,_0x11e8c0,_0x3ed191));}[_0x6c183(0x2d7)](_0x4b3f94,_0x212c25,_0x2cdee0,_0x5c214e){const _0xbd898e=_0x6c183;if(!this[_0xbd898e(0x3ad)][_0xbd898e(0x3d2)](_0x212c25,_0x2cdee0['id']))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0xbd898e(0x219)](_0x4b3f94,this[_0xbd898e(0x4b8)][_0xbd898e(0x2d7)](_0x4b3f94[_0xbd898e(0x32f)](),_0x212c25,_0x2cdee0,_0x5c214e));}[_0x6c183(0x15f)](_0x42e872,_0x113eac,_0x1eb9ed,_0x4b7258){const _0x2c883b=_0x6c183;if(!this['_permissionService'][_0x2c883b(0x3d2)](_0x113eac,_0x1eb9ed))throw Error(_0x2c883b(0x3dd));this[_0x2c883b(0x219)](_0x42e872,this[_0x2c883b(0x4b8)][_0x2c883b(0x15f)](_0x42e872['getSnapshot'](),_0x113eac,_0x1eb9ed,_0x4b7258));}['deleteView'](_0x21aca3,_0x15f760,_0x7bfb63){const _0x1e1b3b=_0x6c183;if(!this['_permissionService']['canManageView'](_0x15f760,_0x7bfb63))throw Error(_0x1e1b3b(0x3dd));this[_0x1e1b3b(0x219)](_0x21aca3,this['_factory'][_0x1e1b3b(0x3f9)](_0x21aca3[_0x1e1b3b(0x32f)](),_0x15f760,_0x7bfb63));}[_0x6c183(0x308)](_0x23620f,_0xa0041e,_0x668f54,_0x4d7837){const _0x5632b9=_0x6c183;if(!this['_permissionService'][_0x5632b9(0x3d2)](_0xa0041e,_0x668f54))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5632b9(0x219)](_0x23620f,this[_0x5632b9(0x4b8)][_0x5632b9(0x308)](_0x23620f[_0x5632b9(0x32f)](),_0xa0041e,_0x668f54,_0x4d7837));}[_0x6c183(0x2cf)](_0x305860,_0x4d4b78,_0x5cb4fb,_0x2fd56a){const _0x5c7e69=_0x6c183;if(!this[_0x5c7e69(0x3ad)]['canManageView'](_0x4d4b78,_0x5cb4fb))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5c7e69(0x219)](_0x305860,this[_0x5c7e69(0x4b8)][_0x5c7e69(0x2cf)](_0x305860[_0x5c7e69(0x32f)](),_0x4d4b78,_0x5cb4fb,_0x2fd56a));}[_0x6c183(0x16e)](_0x21fd9a,_0x3c68e6,_0x2c7b8f,_0x98ef70){const _0x2629ea=_0x6c183;if(!this[_0x2629ea(0x3ad)]['canManageView'](_0x3c68e6,_0x2c7b8f))throw Error(_0x2629ea(0x3dd));this[_0x2629ea(0x219)](_0x21fd9a,this['_factory'][_0x2629ea(0x16e)](_0x21fd9a[_0x2629ea(0x32f)](),_0x3c68e6,_0x2c7b8f,_0x98ef70));}[_0x6c183(0x23d)](_0x7dd152,_0xb0ffe3,_0x2649e5,_0x4aa382){const _0x200caa=_0x6c183;if(!this[_0x200caa(0x3ad)][_0x200caa(0x3d2)](_0xb0ffe3,_0x2649e5))throw Error(_0x200caa(0x3dd));this[_0x200caa(0x219)](_0x7dd152,this['_factory'][_0x200caa(0x23d)](_0x7dd152[_0x200caa(0x32f)](),_0xb0ffe3,_0x2649e5,_0x4aa382));}[_0x6c183(0x417)](_0x1ced79,_0x1eddbc,_0x2d332c,_0x5ec751){const _0x194989=_0x6c183;if(!this['_permissionService'][_0x194989(0x3d2)](_0x1eddbc,_0x2d332c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x194989(0x219)](_0x1ced79,this[_0x194989(0x4b8)][_0x194989(0x417)](_0x1ced79['getSnapshot'](),_0x1eddbc,_0x2d332c,_0x5ec751));}[_0x6c183(0x18c)](_0x947a4c,_0x38cd59,_0x468f2f,_0x2e3324,_0xd7af66){const _0x30815f=_0x6c183;if(!this['_permissionService'][_0x30815f(0x3d2)](_0x38cd59,_0x468f2f))throw Error(_0x30815f(0x3dd));this['_apply'](_0x947a4c,this['_factory'][_0x30815f(0x18c)](_0x947a4c[_0x30815f(0x32f)](),_0x38cd59,_0x468f2f,_0x2e3324,_0xd7af66));}[_0x6c183(0x15e)](_0x183c4d,_0x734d86,_0x11da5a,_0x5bd4b9,_0x528892){const _0x473afb=_0x6c183;if(!this[_0x473afb(0x3ad)][_0x473afb(0x3d2)](_0x734d86,_0x11da5a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x473afb(0x219)](_0x183c4d,this['_factory']['setViewFieldWidth'](_0x183c4d['getSnapshot'](),_0x734d86,_0x11da5a,_0x5bd4b9,_0x528892));}[_0x6c183(0x22a)](_0x6985f,_0x4ad678,_0x5c3d02,_0x5c85e6,_0x5bf347){const _0x568d0d=_0x6c183;if(!this[_0x568d0d(0x3ad)][_0x568d0d(0x3d2)](_0x4ad678,_0x5c3d02))throw Error(_0x568d0d(0x3dd));this[_0x568d0d(0x219)](_0x6985f,this['_factory'][_0x568d0d(0x22a)](_0x6985f[_0x568d0d(0x32f)](),_0x4ad678,_0x5c3d02,_0x5c85e6,_0x5bf347));}['_apply'](_0x416321,_0xdd84f0){const _0x233008=_0x6c183;let _0x15532e=_0x416321['getSnapshot']();_0x416321[_0x233008(0x2ab)](this['_applier'][_0x233008(0x4c3)](_0x15532e,_0xdd84f0));}[_0x6c183(0x28b)](_0x557be5,_0x391119,_0x12cf4c,_0x18de9a=this[_0x6c183(0x476)](_0x557be5[_0x6c183(0x298)][_0x391119])){const _0x34d246=_0x6c183;let _0x3325b8=_0x557be5['tables'][_0x391119],_0x177a8e=_0x12cf4c[_0x34d246(0x329)]??_0x12cf4c[_0x34d246(0x1e6)]??this[_0x34d246(0x25e)](),_0xdcd66d={..._0x12cf4c,'createdBy':_0x12cf4c[_0x34d246(0x329)]??_0x177a8e,'updatedBy':_0x12cf4c[_0x34d246(0x1e6)]??_0x177a8e,'values':{..._0x12cf4c[_0x34d246(0x227)]}};return _0xdcd66d[_0x34d246(0x227)][_0x5a35e2]=_0xdcd66d['id'],_0x3325b8[_0x34d246(0x3b5)][_0x34d246(0x2e0)](_0x10fbaa=>{const _0x317972=_0x34d246;let _0x59d393=_0x3325b8[_0x317972(0x398)][_0x10fbaa];if(_0x59d393&&_0xdcd66d['values'][_0x10fbaa]===void 0x0)switch(_0x59d393['type']){case _0x3a044b[_0x317972(0x284)]:var _0x27f8de;_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=((_0x27f8de=_0x18de9a[_0x317972(0x43e)](_0x10fbaa))==null?void 0x0:_0x27f8de())??this['_createNumberingAllocator'](_0x3325b8,_0x10fbaa)();break;case _0x3a044b[_0x317972(0x28d)]:_0xdcd66d['createdBy']&&(_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=_0xdcd66d[_0x317972(0x329)]);break;case _0x3a044b['UpdatedBy']:_0xdcd66d['updatedBy']&&(_0xdcd66d['values'][_0x10fbaa]=_0xdcd66d[_0x317972(0x1e6)]);break;case _0x3a044b['CreatedAt']:_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=B(_0xdcd66d[_0x317972(0x1c8)]);break;case _0x3a044b[_0x317972(0x1fa)]:_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=B(_0xdcd66d['updatedAt']);break;default:{let _0x52640f=_0x59d393[_0x317972(0x15a)];_0x52640f!=null&&_0x52640f!==''&&!(Array['isArray'](_0x52640f)&&_0x52640f[_0x317972(0x13c)]===0x0)&&(_0xdcd66d['values'][_0x10fbaa]=_0x52640f);}}}),_0xdcd66d;}[_0x6c183(0x157)](_0x5b8186,_0x30f4c2,_0x2a6d52,_0x45f002){const _0x17e6a1=_0x6c183;var _0x558c73,_0x5b62c8;let _0x1a6eb0=_0x5b8186[_0x17e6a1(0x298)][_0x30f4c2],_0x1d211b=((_0x558c73=(_0x5b62c8=this[_0x17e6a1(0x2d3)])['now'])==null?void 0x0:_0x558c73['call'](_0x5b62c8))??Date[_0x17e6a1(0x2a4)](),_0x52ff9e=this[_0x17e6a1(0x25e)](),_0x5db16d={..._0x45f002};return _0x1a6eb0['fieldOrder']['forEach'](_0x267c5a=>{const _0x24dbec=_0x17e6a1;let _0x4325ee=_0x1a6eb0['fields'][_0x267c5a];_0x4325ee&&(_0x4325ee[_0x24dbec(0x20b)]===_0x3a044b['UpdatedAt']&&(_0x5db16d[_0x267c5a]=B(_0x1d211b)),_0x4325ee[_0x24dbec(0x20b)]===_0x3a044b['UpdatedBy']&&_0x52ff9e&&(_0x5db16d[_0x267c5a]=_0x52ff9e));}),{'recordId':_0x2a6d52,'values':_0x5db16d,'recordPatch':{'updatedAt':_0x1d211b,..._0x52ff9e?{'updatedBy':_0x52ff9e}:{}}};}[_0x6c183(0x3c1)](_0x5a84bc,_0x3e101a,_0x215de1){const _0x5a1b0a=_0x6c183;let _0xb31436=_0x5a84bc['tables'][_0x3e101a];return!_0xb31436||!Yr(_0x215de1)?[]:_0x215de1[_0x5a1b0a(0x20b)]===_0x3a044b[_0x5a1b0a(0x284)]?this['_createNumberingFieldValuePatches'](_0xb31436,_0x215de1['id']):Object[_0x5a1b0a(0x227)](_0xb31436[_0x5a1b0a(0x258)])['flatMap'](_0x3b3e23=>{const _0x21431d=_0x5a1b0a;let _0x4607a4=this[_0x21431d(0x410)](_0x215de1,_0x3b3e23);return _0x4607a4===void 0x0?[]:[{'recordId':_0x3b3e23['id'],'values':{[_0x215de1['id']]:_0x4607a4}}];});}[_0x6c183(0x410)](_0x57daee,_0x3d02b8){const _0x15c995=_0x6c183;switch(_0x57daee['type']){case _0x3a044b[_0x15c995(0x28d)]:return _0x3d02b8['createdBy']??this['_getCurrentUserId']();case _0x3a044b['UpdatedBy']:return _0x3d02b8[_0x15c995(0x1e6)]??this['_getCurrentUserId']();case _0x3a044b[_0x15c995(0x332)]:return B(_0x3d02b8[_0x15c995(0x1c8)]??Date[_0x15c995(0x2a4)]());case _0x3a044b[_0x15c995(0x1fa)]:return B(_0x3d02b8[_0x15c995(0x45d)]??Date[_0x15c995(0x2a4)]());default:return;}}['_createNumberingAllocators'](_0x368319){const _0x207d3c=_0x6c183;let _0x22bf77=new Map();return _0x368319&&_0x368319['fieldOrder'][_0x207d3c(0x2e0)](_0x3611ce=>{const _0x1d3645=_0x207d3c;let _0x41b624=_0x368319[_0x1d3645(0x398)][_0x3611ce];(_0x41b624==null?void 0x0:_0x41b624[_0x1d3645(0x20b)])===_0x3a044b[_0x1d3645(0x284)]&&_0x22bf77[_0x1d3645(0x49e)](_0x3611ce,this[_0x1d3645(0x18f)](_0x368319,_0x3611ce));}),_0x22bf77;}[_0x6c183(0x18f)](_0x7015d7,_0x500f3d){const _0x4fa6ff=_0x6c183;let _0x5b6c7c=Object['values'](_0x7015d7[_0x4fa6ff(0x258)])[_0x4fa6ff(0x34f)]((_0x152557,_0x3b7f70)=>{const _0x4d225b=_0x4fa6ff;let _0x2d039c=Number(_0x3b7f70['values'][_0x500f3d]);return Number[_0x4d225b(0x143)](_0x2d039c)?Math['max'](_0x152557,_0x2d039c):_0x152557;},0x0);return()=>String(++_0x5b6c7c);}[_0x6c183(0x333)](_0x1d98ed,_0x1b27a9){const _0x3a516e=_0x6c183;let _0x452393=this[_0x3a516e(0x48c)](_0x1d98ed),_0x383403=this['_createNumberingAllocator'](_0x1d98ed,_0x1b27a9);return _0x452393[_0x3a516e(0x17a)](_0x185f31=>this['_isNonEmptyCellValue'](_0x185f31[_0x3a516e(0x227)][_0x1b27a9])?[]:[{'recordId':_0x185f31['id'],'values':{[_0x1b27a9]:_0x383403()}}]);}[_0x6c183(0x48c)](_0x1074e4){const _0x4afa9a=_0x6c183;var _0xf6b2d9;let _0x27be9c=Object[_0x4afa9a(0x227)](_0x1074e4[_0x4afa9a(0x258)]),_0x6cfa66=new Map(_0x27be9c[_0x4afa9a(0x141)](_0x316a57=>[_0x316a57['id'],_0x316a57])),_0xbb43cf=[],_0x3836fa=new Set();(_0xf6b2d9=_0x1074e4[_0x4afa9a(0x1e7)])==null||_0xf6b2d9['forEach'](_0x2bcd4f=>{const _0x50ea18=_0x4afa9a;let _0x304b41=_0x6cfa66[_0x50ea18(0x43e)](_0x2bcd4f);_0x304b41&&(_0xbb43cf['push'](_0x304b41),_0x3836fa['add'](_0x2bcd4f));});let _0x163f9e=_0x27be9c['filter'](_0x557817=>!_0x3836fa[_0x4afa9a(0x34b)](_0x557817['id']))[_0x4afa9a(0x277)]((_0x1f9e43,_0x5b55a8)=>String(_0x1f9e43['orderKey']??_0x1f9e43['id'])['localeCompare'](String(_0x5b55a8['orderKey']??_0x5b55a8['id']))||_0x1f9e43['id'][_0x4afa9a(0x37a)](_0x5b55a8['id']));return[..._0xbb43cf,..._0x163f9e];}['_isNonEmptyCellValue'](_0x3359a0){const _0x3052f7=_0x6c183;return _0x3359a0!=null&&_0x3359a0!==''&&!(Array[_0x3052f7(0x431)](_0x3359a0)&&_0x3359a0[_0x3052f7(0x13c)]===0x0);}[_0x6c183(0x25e)](){const _0x5c0b51=_0x6c183;var _0x508e16,_0xfbd1d6,_0x196dff,_0x21e3c5;return((_0x508e16=(_0xfbd1d6=this['_runtimeContext'])[_0x5c0b51(0x419)])==null?void 0x0:_0x508e16[_0x5c0b51(0x43b)](_0xfbd1d6))??((_0x196dff=(_0x21e3c5=this[_0x5c0b51(0x2d3)])[_0x5c0b51(0x216)])==null||(_0x196dff=_0x196dff[_0x5c0b51(0x43b)](_0x21e3c5))==null?void 0x0:_0x196dff['userID'])??void 0x0;}['_normalizeCellValue'](_0x818c6e,_0x2e72ed,_0x40f78c,_0x48c5a4,_0x5cf3d7){const _0x22706b=_0x6c183;var _0x4467f1;if(!this['_permissionService']['canEditCell'](_0x2e72ed,_0x40f78c,_0x48c5a4))throw Error(_0x22706b(0x2ad));let _0x317dea=(_0x4467f1=_0x818c6e[_0x22706b(0x298)][_0x2e72ed])==null?void 0x0:_0x4467f1[_0x22706b(0x398)][_0x48c5a4];if(!_0x317dea)throw Error(_0x22706b(0x23a)+_0x48c5a4+_0x22706b(0x2bf));let _0x30c07d=this[_0x22706b(0x287)][_0x22706b(0x43e)](_0x317dea[_0x22706b(0x20b)]);if(_0x317dea[_0x22706b(0x3a9)]||_0x317dea['system']||!_0x30c07d[_0x22706b(0x2fd)](_0x317dea)['editable'])throw Error(_0x22706b(0x436));let _0x2589bf=_0x30c07d[_0x22706b(0x188)](_0x5cf3d7,_0x317dea),_0x35f7b9=_0x30c07d[_0x22706b(0x1a8)](_0x2589bf,_0x317dea);if(!_0x35f7b9[_0x22706b(0x26e)])throw Error(_0x35f7b9[_0x22706b(0x28a)]??_0x22706b(0x2f4));let _0x2d74c7=_0x317dea[_0x22706b(0x20b)]===_0x3a044b['RecordLink']?Ve(_0x818c6e,_0x317dea,_0x2589bf):{'valid':!0x0};if(!_0x2d74c7[_0x22706b(0x26e)])throw Error(_0x2d74c7['reason']??_0x22706b(0x14b));return _0x2589bf;}[_0x6c183(0x3c4)](_0x4c70ca,_0x5d9039){const _0x55913=_0x6c183;if(_0x5d9039['id']===_0x5a35e2||_0x5d9039[_0x55913(0x20b)]===_0x3a044b[_0x55913(0x22f)]||_0x771c24(_0x5d9039[_0x55913(0x2a3)]))throw Error(_0x55913(0x28f));let _0x1994ed=Be(_0x4c70ca,_0x5d9039);if(!_0x1994ed[_0x55913(0x26e)])throw Error(_0x1994ed['reason']??_0x55913(0x26d));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x36cf5f=_0x6c183;let _0xe99094=new hr();return zn()[_0x36cf5f(0x2e0)](_0x4965dd=>_0xe99094['register'](_0x4965dd)),_0xe99094;}function Yr(_0x31e6d3){const _0x58cfd7=_0x6c183;return _0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b['Numbering']||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x28d)]||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b['UpdatedBy']||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x332)]||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x1fa)];}const Xr=new Set([_0x3a044b[_0x6c183(0x140)],_0x3a044b[_0x6c183(0x2c3)],_0x3a044b[_0x6c183(0x233)]]);function Zr(_0x51cd11){const _0x4540aa=_0x6c183;let _0x41df88=_0x51cd11[_0x4540aa(0x398)][_0x51cd11[_0x4540aa(0x3b2)]];if((!_0x41df88||_0x41df88[_0x4540aa(0x3cf)]!==!0x0&&_0x41df88['id'][_0x4540aa(0x432)]()!=='id'&&_0x41df88[_0x4540aa(0x2a3)][_0x4540aa(0x226)]()[_0x4540aa(0x432)]()!=='id')&&_0x41df88)return _0x41df88['id'];for(let _0x562969 of _0x51cd11[_0x4540aa(0x3b5)]){let _0x4003cb=_0x51cd11['fields'][_0x562969];if(_0x4003cb&&_0x4003cb['id']!==_0x51cd11[_0x4540aa(0x3b2)]&&_0x4003cb['system']!==!0x0&&_0x4003cb[_0x4540aa(0x20b)]!==_0x3a044b[_0x4540aa(0x22f)])return _0x4003cb['id'];}return _0x51cd11[_0x4540aa(0x3b2)];}function Qr(_0x1e098d,_0x2305aa=[],_0x5ddb7b=0x5){const _0x40a992=_0x6c183;let _0x1c8e11=new Set(_0x2305aa[_0x40a992(0x2be)](_0x2bef4e=>!!_0x2bef4e)),_0x3209f2=[],_0x5512ce=[];for(let _0x129384 of _0x1e098d['fieldOrder']){let _0x1f55af=_0x1e098d['fields'][_0x129384];_0x1f55af&&_0x1f55af['system']!==!0x0&&_0x1f55af['type']!==_0x3a044b[_0x40a992(0x22f)]&&!_0x1c8e11[_0x40a992(0x34b)](_0x1f55af['id'])&&(Xr['has'](_0x1f55af[_0x40a992(0x20b)])?_0x3209f2:_0x5512ce)[_0x40a992(0x174)](_0x1f55af['id']);}return[..._0x3209f2,..._0x5512ce][_0x40a992(0x12c)](0x0,_0x5ddb7b);}function $r(){const _0x68a9cb=_0x6c183;return[{'type':_0x3ece31[_0x68a9cb(0x161)],'i18nKey':_0x68a9cb(0x33b),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x3ece31[_0x68a9cb(0x43c)],'i18nKey':_0x68a9cb(0x485),'createDefaultConfig':_0x454eaf=>{const _0x4b357b=_0x68a9cb;let _0x538291=ei(_0x454eaf);return{'groupFieldId':_0x538291,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x454eaf[_0x4b357b(0x3b2)],'fieldIds':Qr(_0x454eaf,[_0x454eaf[_0x4b357b(0x3b2)],_0x538291])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x110cb6=_0x68a9cb;throw Error(_0x110cb6(0x28e));}},{'type':_0x3ece31[_0x68a9cb(0x208)],'i18nKey':_0x68a9cb(0x24d),'createDefaultConfig':_0x532c7d=>{const _0x2054f4=_0x68a9cb;let _0x559ffb=ti(_0x532c7d);return{'startDateFieldId':_0x559ffb,'endDateFieldId':ni(_0x532c7d,_0x559ffb),'titleFieldId':_0x532c7d['primaryFieldId'],'mode':_0x2054f4(0x43d),'timeslotSize':_0x2054f4(0x1a7),'timeZone':_0x2054f4(0x231),'displayColor':{'type':'custom','color':'#3b82f6'},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x227358=_0x68a9cb;throw Error(_0x227358(0x214));}},{'type':_0x3ece31[_0x68a9cb(0x1cf)],'i18nKey':_0x68a9cb(0x418),'createDefaultConfig':_0x4fa132=>{const _0x255e98=_0x68a9cb;let _0xac5ebb=ti(_0x4fa132);return{'startDateFieldId':_0xac5ebb,'endDateFieldId':ni(_0x4fa132,_0xac5ebb)??_0xac5ebb,'titleFieldId':_0x4fa132['primaryFieldId'],'scale':_0x255e98(0x43d),'showTodayLine':!0x0,'displayColor':{'type':_0x255e98(0x446),'color':'#14b8a6'},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x232b47=_0x68a9cb;throw Error(_0x232b47(0x137));}},{'type':_0x3ece31['Gallery'],'i18nKey':'base.viewType.gallery','createDefaultConfig':_0x569b5c=>{const _0x33df61=_0x68a9cb;let _0x54b54d=Zr(_0x569b5c);return{'coverFieldId':null,'cardLayout':_0x33df61(0x339),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x54b54d,'coverFieldId':null,'fieldIds':Qr(_0x569b5c,[_0x54b54d,_0x569b5c[_0x33df61(0x3b2)]])},'cardSize':_0x33df61(0x1a7)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x566818=_0x68a9cb;throw Error(_0x566818(0x441));}}];}function ei(_0x590908){const _0x5908e4=_0x6c183;var _0x1e449e,_0x208d39,_0x1611df;let _0x12d44b=_0x590908[_0x5908e4(0x3b5)][_0x5908e4(0x141)](_0x890bbb=>_0x590908[_0x5908e4(0x398)][_0x890bbb])['filter'](_0x8737a2=>!!_0x8737a2);return((_0x1e449e=_0x12d44b[_0x5908e4(0x392)](_0x3b7e57=>_0x3b7e57[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x20e)]||_0x3b7e57[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x386)]||_0x3b7e57['type']===_0x3a044b[_0x5908e4(0x1ad)]))==null?void 0x0:_0x1e449e['id'])??((_0x208d39=_0x12d44b[_0x5908e4(0x392)](_0x18bd05=>_0x18bd05[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x315)]))==null?void 0x0:_0x208d39['id'])??((_0x1611df=_0x12d44b[_0x5908e4(0x392)](_0x2706aa=>_0x2706aa[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x346)]||_0x2706aa['type']===_0x3a044b[_0x5908e4(0x332)]||_0x2706aa[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x1fa)]))==null?void 0x0:_0x1611df['id'])??_0x590908[_0x5908e4(0x3b2)];}function ti(_0x3bf4f1){const _0x35b602=_0x6c183;var _0x788bb4;return((_0x788bb4=_0x3bf4f1[_0x35b602(0x3b5)]['map'](_0x2855cb=>_0x3bf4f1[_0x35b602(0x398)][_0x2855cb])[_0x35b602(0x392)](ri))==null?void 0x0:_0x788bb4['id'])??'';}function ni(_0x433493,_0x4cdb69){const _0x54d4d3=_0x6c183;var _0x2b8295;return(_0x2b8295=_0x433493[_0x54d4d3(0x3b5)]['map'](_0x134393=>_0x433493[_0x54d4d3(0x398)][_0x134393])[_0x54d4d3(0x392)](_0x3da117=>ri(_0x3da117)&&_0x3da117['id']!==_0x4cdb69))==null?void 0x0:_0x2b8295['id'];}function ri(_0x55b933){const _0x3d13ae=_0x6c183;return!!_0x55b933&&_0x55b933[_0x3d13ae(0x20b)]===_0x3a044b[_0x3d13ae(0x346)]&&_0x55b933[_0x3d13ae(0x3a9)]!==!0x0&&_0x55b933[_0x3d13ae(0x3cf)]!==!0x0;}const ii=_0x2e8f64('base.projection.service'),ai=new Set([_0x3a044b[_0x6c183(0x2f5)],_0x3a044b[_0x6c183(0x14d)],_0x3a044b[_0x6c183(0x140)],_0x3a044b['Rating'],_0x3a044b[_0x6c183(0x346)],_0x3a044b[_0x6c183(0x332)],_0x3a044b[_0x6c183(0x1fa)],_0x3a044b[_0x6c183(0x233)]]),oi=0x5265c00;let si=class extends _0x3b0b2d{constructor(_0x2f73fb){const _0x5774d8=_0x6c183;super(),this[_0x5774d8(0x287)]=_0x2f73fb,G(this,_0x5774d8(0x156),new Map()),G(this,_0x5774d8(0x38e),new WeakMap()),G(this,_0x5774d8(0x484),new Map()),G(this,_0x5774d8(0x2c6),new Map()),G(this,_0x5774d8(0x14f),new Map()),G(this,'_hierarchyIndexCache',new Map()),G(this,_0x5774d8(0x191),0x0),G(this,_0x5774d8(0x354),new Map()),G(this,_0x5774d8(0x13a),new Map()),G(this,'_cellInvalidations',new Map()),G(this,'_viewRevisions',new Map());}['registerView'](_0x4f3c1c){const _0x298bb3=_0x6c183;return this[_0x298bb3(0x156)][_0x298bb3(0x49e)](_0x4f3c1c[_0x298bb3(0x20b)],_0x4f3c1c),_0x1827e4(()=>this[_0x298bb3(0x156)][_0x298bb3(0x2fc)](_0x4f3c1c[_0x298bb3(0x20b)]));}[_0x6c183(0x249)](_0x3c8c71,_0x4f2f75,_0x583238){const _0x27ee08=_0x6c183;var _0x576867,_0x43a285,_0x331d1d;return I(_0x27ee08(0x498),()=>{const _0x2d84ff=_0x27ee08;let _0x4ba8a7=this[_0x2d84ff(0x372)](_0x3c8c71,_0x4f2f75,_0x583238);if(_0x4ba8a7)return _0x4ba8a7;let _0x5a914c=_0x3c8c71[_0x2d84ff(0x298)][_0x4f2f75],_0x4a46db=_0x5a914c==null?void 0x0:_0x5a914c['views'][_0x583238];if(!_0x5a914c||!_0x4a46db)return this['_setCachedProjection'](_0x3c8c71,_0x4f2f75,_0x583238,{'type':_0x2d84ff(0x3a3),'viewType':(_0x4a46db==null?void 0x0:_0x4a46db['type'])??_0x3ece31['Grid'],'reason':_0x2d84ff(0x292)});let _0x39a6cd;switch(_0x4a46db[_0x2d84ff(0x20b)]){case _0x3ece31['Grid']:_0x39a6cd=this[_0x2d84ff(0x456)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x1cf)]:_0x39a6cd=this[_0x2d84ff(0x2f6)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x43c)]:_0x39a6cd=this[_0x2d84ff(0x371)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x208)]:_0x39a6cd=this['_buildCalendar'](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x434)]:_0x39a6cd=this[_0x2d84ff(0x36c)](_0x5a914c,_0x4a46db);break;default:_0x39a6cd={'type':_0x2d84ff(0x3a3),'viewType':_0x4a46db[_0x2d84ff(0x20b)],'reason':_0x2d84ff(0x292)};}return this[_0x2d84ff(0x1f8)](_0x3c8c71,_0x4f2f75,_0x583238,_0x39a6cd);},{'tableId':_0x4f2f75,'viewId':_0x583238,'viewType':(_0x576867=_0x3c8c71[_0x27ee08(0x298)][_0x4f2f75])==null||(_0x576867=_0x576867[_0x27ee08(0x362)][_0x583238])==null?void 0x0:_0x576867[_0x27ee08(0x20b)],'records':((_0x43a285=_0x3c8c71[_0x27ee08(0x298)][_0x4f2f75])==null||(_0x43a285=_0x43a285[_0x27ee08(0x1e7)])==null?void 0x0:_0x43a285[_0x27ee08(0x13c)])??Object['keys'](((_0x331d1d=_0x3c8c71['tables'][_0x4f2f75])==null?void 0x0:_0x331d1d['records'])??{})['length']});}[_0x6c183(0x1e0)](_0x4b0283,_0x4f7891,_0x3074ed){const _0x94263=_0x6c183;var _0x352b8c,_0x4935a2,_0x32a793;let _0x1e7f3a=_0x4b0283[_0x94263(0x298)][_0x4f7891],_0x5e6316=_0x1e7f3a==null?void 0x0:_0x1e7f3a[_0x94263(0x362)][_0x3074ed];if(!_0x1e7f3a||!_0x5e6316)throw Error(_0x94263(0x44f)+_0x3074ed+'\x22.');let _0xb2dce6=_0x4555ab=>!!_0x1e7f3a[_0x94263(0x398)][_0x4555ab],_0x54fdda={..._0x5e6316,'filter':_0x5e6316['filter']?{..._0x5e6316[_0x94263(0x2be)],'conditions':_0x5e6316['filter'][_0x94263(0x396)][_0x94263(0x2be)](_0x506c42=>_0xb2dce6(_0x506c42[_0x94263(0x2b0)]))}:_0x5e6316[_0x94263(0x2be)],'sort':(_0x352b8c=_0x5e6316['sort'])==null?void 0x0:_0x352b8c[_0x94263(0x2be)](_0xb1ed58=>_0xb2dce6(_0xb1ed58[_0x94263(0x2b0)])),'group':(_0x4935a2=_0x5e6316[_0x94263(0x1f2)])==null?void 0x0:_0x4935a2[_0x94263(0x2be)](_0x14a31e=>_0xb2dce6(_0x14a31e['fieldId'])),'fieldOrder':(_0x32a793=_0x5e6316[_0x94263(0x3b5)])==null?void 0x0:_0x32a793[_0x94263(0x2be)](_0xb2dce6),'fieldSettings':Object[_0x94263(0x176)](Object[_0x94263(0x279)](_0x5e6316[_0x94263(0x48f)]??{})['filter'](([_0x4c5f7f])=>_0xb2dce6(_0x4c5f7f)))};if(_0x54fdda[_0x94263(0x20b)]===_0x94263(0x4a6)){var _0x393350;let _0x3d8109=_0x54fdda['config']??{},_0x174484=this['_resolveKanbanGroupFieldId'](_0x1e7f3a,_0x54fdda),_0x236021=this[_0x94263(0x3f4)](_0x1e7f3a,(_0x393350=_0x3d8109['card'])==null?void 0x0:_0x393350[_0x94263(0x1ba)]);_0x54fdda[_0x94263(0x2ba)]={..._0x3d8109,'groupFieldId':_0x174484??_0x3d8109[_0x94263(0x426)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x1e7f3a,_0x3d8109),'cardLayout':_0x3d8109['cardLayout']==='compose'?_0x94263(0x2a2):_0x94263(0x339),'showFieldNames':_0x3d8109[_0x94263(0x15d)]!==!0x1,'fieldSettings':Object[_0x94263(0x176)](Object[_0x94263(0x279)](_0x3d8109[_0x94263(0x48f)]??{})[_0x94263(0x2be)](([_0x199500])=>_0xb2dce6(_0x199500))),'columnSettings':_0x3d8109[_0x94263(0x15c)]??{},'card':{..._0x3d8109[_0x94263(0x39b)]??{},'titleFieldId':_0x236021,'fieldIds':this[_0x94263(0x3c2)](_0x1e7f3a,_0x54fdda,_0x174484??'',_0x236021)}};}return{'repaired':JSON['stringify'](_0x54fdda)!==JSON[_0x94263(0x25f)](_0x5e6316),'view':_0x54fdda};}[_0x6c183(0x3c7)](){const _0x171181=_0x6c183;this[_0x171181(0x191)]++;}[_0x6c183(0x1a1)](_0x3c1d3f,_0xa9014f,_0x194a37){const _0x248d88=_0x6c183;let _0x2a59da=this['_getCellRevision'](_0x3c1d3f)+0x1;this[_0x248d88(0x13a)][_0x248d88(0x49e)](_0x3c1d3f,_0x2a59da);let _0x23fd41=this['_cellInvalidations'][_0x248d88(0x43e)](_0x3c1d3f)??[];_0x23fd41[_0x248d88(0x174)]({'revision':_0x2a59da,'recordId':_0xa9014f,'fieldId':_0x194a37}),this[_0x248d88(0x40c)][_0x248d88(0x49e)](_0x3c1d3f,_0x23fd41);}[_0x6c183(0x3d4)](_0x34178a,_0x5e05cf){const _0xf8d521=_0x6c183;this[_0xf8d521(0x3aa)](_0x34178a);}[_0x6c183(0x132)](_0x511322,_0x3f8c03){const _0x11bafb=_0x6c183;this[_0x11bafb(0x3e4)][_0x11bafb(0x49e)](this['_viewRevisionKey'](_0x511322,_0x3f8c03),this[_0x11bafb(0x193)](_0x511322,_0x3f8c03)+0x1);}[_0x6c183(0x372)](_0x4156b0,_0x5858b7,_0x69d8b1){const _0x5a7828=_0x6c183;var _0x6398c4;let _0x37f259=(_0x6398c4=this[_0x5a7828(0x38e)]['get'](_0x4156b0))==null?void 0x0:_0x6398c4[_0x5a7828(0x43e)](this['_cacheKey'](_0x5858b7,_0x69d8b1));return _0x37f259&&_0x37f259[_0x5a7828(0x2dd)]===this[_0x5a7828(0x191)]&&_0x37f259[_0x5a7828(0x291)]===this['_getTableRevision'](_0x5858b7)&&_0x37f259[_0x5a7828(0x21d)]===this['_getCellRevision'](_0x5858b7)&&_0x37f259[_0x5a7828(0x1ee)]===this[_0x5a7828(0x193)](_0x5858b7,_0x69d8b1)?_0x37f259[_0x5a7828(0x257)]:null;}[_0x6c183(0x1f8)](_0x3ba26d,_0x41d421,_0x56da27,_0x197b73){const _0x187d5f=_0x6c183;let _0x84b808=this['_projectionCache'][_0x187d5f(0x43e)](_0x3ba26d);return _0x84b808||(_0x84b808=new Map(),this[_0x187d5f(0x38e)][_0x187d5f(0x49e)](_0x3ba26d,_0x84b808)),_0x84b808['set'](this['_cacheKey'](_0x41d421,_0x56da27),{'projection':_0x197b73,'globalRevision':this[_0x187d5f(0x191)],'tableRevision':this['_getTableRevision'](_0x41d421),'cellRevision':this[_0x187d5f(0x42b)](_0x41d421),'viewRevision':this[_0x187d5f(0x193)](_0x41d421,_0x56da27)}),_0x197b73;}[_0x6c183(0x3aa)](_0x57c454){const _0x521cc2=_0x6c183;this[_0x521cc2(0x354)][_0x521cc2(0x49e)](_0x57c454,this[_0x521cc2(0x353)](_0x57c454)+0x1);}[_0x6c183(0x353)](_0x18f67f){const _0x5bbc87=_0x6c183;return this[_0x5bbc87(0x354)][_0x5bbc87(0x43e)](_0x18f67f)??0x0;}[_0x6c183(0x42b)](_0x4e0237){const _0x74665a=_0x6c183;return this[_0x74665a(0x13a)][_0x74665a(0x43e)](_0x4e0237)??0x0;}[_0x6c183(0x193)](_0x509507,_0x2182c1){const _0x172853=_0x6c183;return this[_0x172853(0x3e4)][_0x172853(0x43e)](this['_viewRevisionKey'](_0x509507,_0x2182c1))??0x0;}[_0x6c183(0x2cd)](_0x32c07d,_0x3ce7f4){return _0x32c07d+'\x00'+_0x3ce7f4;}[_0x6c183(0x312)](_0x1ec138,_0x513e95){const _0x2925e4=_0x6c183;return _0x1ec138+'\x00'+this[_0x2925e4(0x35f)](_0x513e95);}[_0x6c183(0x3d5)](_0x1505ca,_0xcb197b,_0x518fe7){const _0x509415=_0x6c183;return _0x1505ca+'\x00'+this['_rowTransformCacheSegment'](_0xcb197b)+'\x00'+this[_0x509415(0x1c1)](_0x518fe7);}[_0x6c183(0x35f)](_0x41cab4){const _0x5dcba9=_0x6c183;return _0x41cab4?mi({'filter':di(_0x41cab4[_0x5dcba9(0x2be)]),'sort':pi(_0x41cab4[_0x5dcba9(0x277)])}):'__all__';}['_groupConfigCacheSegment'](_0x54a815){const _0x54121b=_0x6c183;return mi(_0x54a815[_0x54121b(0x141)](_0x35380b=>({'fieldId':_0x35380b[_0x54121b(0x2b0)],'direction':_0x35380b[_0x54121b(0x12f)]??null})));}[_0x6c183(0x2a0)](_0x3fdc30,_0x4a71ac){return _0x3fdc30+'\x00'+_0x4a71ac;}[_0x6c183(0x456)](_0x362d68,_0x5d7473){const _0x5d18b2=_0x6c183;var _0x2bfe3e;let _0x32d51d=Je(_0x362d68),_0x5ab2ab=this[_0x5d18b2(0x449)](_0x362d68,_0x5d7473),_0x44b472=(_0x2bfe3e=_0x5d7473['filter'])!=null&&_0x2bfe3e[_0x5d18b2(0x396)][_0x5d18b2(0x13c)]?this[_0x5d18b2(0x449)](_0x362d68,{..._0x5d7473,'filter':null}):_0x5ab2ab,_0xfb264d=nt(this['_getHierarchyIndex'](_0x362d68,_0x32d51d,_0x5d7473['id'],_0x44b472[_0x5d18b2(0x141)](_0x2e3b7a=>_0x2e3b7a[_0x5d18b2(0x347)])),_0x44b472,new Set(_0x5ab2ab[_0x5d18b2(0x141)](_0x4fa847=>_0x4fa847[_0x5d18b2(0x347)])));return{'type':_0x3ece31[_0x5d18b2(0x161)],'fields':this[_0x5d18b2(0x3d9)](_0x362d68,_0x5d7473),'rows':_0xfb264d[_0x5d18b2(0x2c5)],'groups':this[_0x5d18b2(0x35d)](_0x362d68,_0x5d7473,_0xfb264d[_0x5d18b2(0x2c5)],_0xfb264d[_0x5d18b2(0x160)]),'hierarchy':_0xfb264d['hierarchy'],'frozenFieldCount':typeof _0x5d7473['config'][_0x5d18b2(0x213)]==_0x5d18b2(0x24b)?_0x5d7473['config']['frozenFieldCount']:0x0};}[_0x6c183(0x40d)](_0x488d6c,_0x58f0e7,_0x28c8a8,_0x37cf30){const _0x1bdf29=_0x6c183;let _0x6b05c1=_0x488d6c['id']+'\x00'+_0x58f0e7+'\x00'+_0x28c8a8,_0x344143=this[_0x1bdf29(0x42b)](_0x488d6c['id']),_0x5e6e70=this[_0x1bdf29(0x44a)][_0x1bdf29(0x43e)](_0x6b05c1);if(_0x5e6e70&&_0x5e6e70[_0x1bdf29(0x2dd)]===this[_0x1bdf29(0x191)]&&_0x5e6e70['tableRevision']===this[_0x1bdf29(0x353)](_0x488d6c['id'])&&_0x5e6e70[_0x1bdf29(0x3c3)][_0x1bdf29(0x13c)]===_0x37cf30[_0x1bdf29(0x13c)]&&_0x5e6e70['orderedRecordIds'][_0x1bdf29(0x387)]((_0x39cf65,_0x36dd08)=>_0x39cf65===_0x37cf30[_0x36dd08])){if(_0x5e6e70[_0x1bdf29(0x21d)]===_0x344143&&_0x5e6e70[_0x1bdf29(0x4c7)]===_0x488d6c)return _0x5e6e70[_0x1bdf29(0x159)];if(!this['_cellInvalidationsTouchFields'](_0x488d6c['id'],_0x5e6e70[_0x1bdf29(0x21d)],_0x344143,new Set([_0x58f0e7])))return this['_hierarchyIndexCache']['set'](_0x6b05c1,{..._0x5e6e70,'table':_0x488d6c,'cellRevision':_0x344143}),_0x5e6e70['index'];}let _0x541b57=tt(_0x488d6c,_0x58f0e7,_0x37cf30);return this[_0x1bdf29(0x44a)]['set'](_0x6b05c1,{'table':_0x488d6c,'index':_0x541b57,'orderedRecordIds':_0x37cf30,'globalRevision':this[_0x1bdf29(0x191)],'tableRevision':this[_0x1bdf29(0x353)](_0x488d6c['id']),'cellRevision':_0x344143}),_0x541b57;}[_0x6c183(0x35d)](_0xa40e0b,_0x3ee20c,_0x395197,_0x31daac){const _0x54ece9=_0x6c183;var _0x53dfe6;if(!((_0x53dfe6=_0x3ee20c[_0x54ece9(0x1f2)])!=null&&_0x53dfe6['length']))return[];let _0x312faa=new Map(_0x395197[_0x54ece9(0x141)](_0x1348d4=>[_0x1348d4[_0x54ece9(0x347)],_0x1348d4])),_0x54be91=_0x31daac['rootRecordIds']['flatMap'](_0x33abd7=>{const _0x5b4e01=_0x54ece9;let _0x564f1c=_0x312faa[_0x5b4e01(0x43e)](_0x33abd7);return _0x564f1c?[_0x564f1c]:[];}),_0x19ecc9=this[_0x54ece9(0x3eb)](_0xa40e0b,_0x3ee20c,_0x54be91),_0x265326=new Map(_0x31daac['orderedRecordIds'][_0x54ece9(0x141)]((_0x4237a7,_0x32245c)=>[_0x4237a7,_0x32245c])),_0x3c7ba1=_0x485be2=>{const _0x23335c=_0x54ece9;let _0x7ca6bc=_0x31daac['nodes'][_0x485be2],_0x46609d=_0x265326[_0x23335c(0x43e)](_0x485be2)??-0x1;return _0x46609d<0x0||!_0x7ca6bc?[]:_0x31daac[_0x23335c(0x3c3)]['slice'](_0x46609d,_0x7ca6bc['subtreeEndIndex']+0x1);},_0x5bac22=_0x36bc0e=>{const _0x490299=_0x54ece9;var _0x418cc5,_0x1cdd68;return{..._0x36bc0e,'recordIds':(_0x418cc5=_0x36bc0e['children'])!=null&&_0x418cc5[_0x490299(0x13c)]?_0x36bc0e[_0x490299(0x397)]:_0x36bc0e['recordIds'][_0x490299(0x17a)](_0x3c7ba1),'children':(_0x1cdd68=_0x36bc0e[_0x490299(0x126)])==null?void 0x0:_0x1cdd68[_0x490299(0x141)](_0x5bac22)};};return _0x19ecc9['map'](_0x5bac22);}[_0x6c183(0x371)](_0x156bb5,_0x5a549a){const _0x259299=_0x6c183;var _0x2c55ff;let _0x36550f=this[_0x259299(0x196)](_0x156bb5,_0x5a549a),_0x34915a=_0x36550f?_0x156bb5[_0x259299(0x398)][_0x36550f]:void 0x0;if(!_0x34915a)return{'type':'invalid','viewType':_0x3ece31[_0x259299(0x43c)],'reason':_0x259299(0x414),'fieldId':_0x5a549a[_0x259299(0x2ba)][_0x259299(0x426)]};let _0x13a9d7=this[_0x259299(0x449)](_0x156bb5,_0x5a549a),_0x56605f=this[_0x259299(0x3d9)](_0x156bb5,_0x5a549a),_0x5a7c8b=_0x5a549a['config']??{},_0x549948=this[_0x259299(0x3f4)](_0x156bb5,(_0x2c55ff=_0x5a7c8b[_0x259299(0x39b)])==null?void 0x0:_0x2c55ff['titleFieldId']),_0xb10c99=this[_0x259299(0x3c2)](_0x156bb5,_0x5a549a,_0x34915a['id'],_0x549948),_0x4a9119=new Map();if(F(_0x156bb5,_0x34915a['id'])){let _0x2d500d=this[_0x259299(0x40d)](_0x156bb5,_0x34915a['id'],_0x5a549a['id'],_0x13a9d7['map'](_0x38afab=>_0x38afab['recordId'])),_0x2fe72c=new Map();return _0x13a9d7['forEach'](_0x5a9813=>{const _0x55aa99=_0x259299;let _0x2f591f=_0x2d500d[_0x55aa99(0x3b7)]['get'](_0x5a9813[_0x55aa99(0x347)])??null,_0x2ddcc9=_0x2f591f??'',_0x27fc15=_0x2f591f?_0x156bb5[_0x55aa99(0x258)][_0x2f591f]:void 0x0,_0x2e7e18=_0x2fe72c[_0x55aa99(0x43e)](_0x2ddcc9)??{'key':_0x2ddcc9,'title':_0x27fc15?String(yt(_0x156bb5,_0x27fc15['id'],_0x156bb5['primaryFieldId'])??_0x2f591f):this['_kanbanLaneTitle'](_0x34915a,_0x2ddcc9,_0x5a7c8b),'recordIds':[]};_0x2e7e18[_0x55aa99(0x397)][_0x55aa99(0x174)](_0x5a9813['recordId']),_0x2fe72c[_0x55aa99(0x49e)](_0x2ddcc9,_0x2e7e18);}),{'type':_0x3ece31[_0x259299(0x43c)],'fields':_0x56605f,'rows':_0x13a9d7,'groups':[],'groupFieldId':_0x34915a['id'],'titleFieldId':_0x549948,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x156bb5,_0x5a7c8b),'cardLayout':_0x5a7c8b[_0x259299(0x33c)]===_0x259299(0x2a2)?_0x259299(0x2a2):_0x259299(0x339),'showFieldNames':_0x5a7c8b[_0x259299(0x15d)]!==!0x1,'visibleCardFieldIds':_0xb10c99,'lanes':['',..._0x2d500d[_0x259299(0x3c3)]][_0x259299(0x17a)](_0x298f92=>{const _0x5dfc10=_0x259299;let _0x2f06ca=_0x2fe72c[_0x5dfc10(0x43e)](_0x298f92);return _0x2f06ca!=null&&_0x2f06ca['recordIds'][_0x5dfc10(0x13c)]?[_0x2f06ca]:[];})};}return this[_0x259299(0x428)](_0x34915a,_0x5a7c8b)[_0x259299(0x2e0)](_0x41ef00=>_0x4a9119[_0x259299(0x49e)](_0x41ef00[_0x259299(0x2e1)],{..._0x41ef00,'recordIds':[]})),_0x13a9d7[_0x259299(0x2e0)](_0x56caaf=>{const _0x1fcb1b=_0x259299;this['_kanbanGroupKeys'](_0x34915a,_0x56caaf[_0x1fcb1b(0x227)][_0x34915a['id']])['forEach'](_0x33eae0=>{const _0x262304=_0x1fcb1b;let _0x3f0f53=_0x4a9119[_0x262304(0x43e)](_0x33eae0)??{'key':_0x33eae0,'title':this[_0x262304(0x411)](_0x34915a,_0x33eae0,_0x5a7c8b),'color':this[_0x262304(0x31a)](_0x34915a,_0x33eae0,_0x5a7c8b),'recordIds':[]};_0x3f0f53['recordIds'][_0x262304(0x174)](_0x56caaf[_0x262304(0x347)]),_0x4a9119[_0x262304(0x49e)](_0x33eae0,_0x3f0f53);});}),{'type':_0x3ece31['Kanban'],'fields':_0x56605f,'rows':_0x13a9d7,'groups':this['_projectGroups'](_0x156bb5,_0x5a549a,_0x13a9d7),'groupFieldId':_0x34915a['id'],'titleFieldId':_0x549948,'coverFieldId':this[_0x259299(0x1a5)](_0x156bb5,_0x5a7c8b),'cardLayout':_0x5a7c8b[_0x259299(0x33c)]===_0x259299(0x2a2)?_0x259299(0x2a2):_0x259299(0x339),'showFieldNames':_0x5a7c8b[_0x259299(0x15d)]!==!0x1,'visibleCardFieldIds':_0xb10c99,'lanes':Array[_0x259299(0x1d5)](_0x4a9119[_0x259299(0x227)]())};}['_resolveKanbanGroupFieldId'](_0x57f16d,_0x4c4261){const _0x371aeb=_0x6c183;var _0x581e11;let _0x5c7a7c=(_0x581e11=_0x4c4261[_0x371aeb(0x2ba)])==null?void 0x0:_0x581e11[_0x371aeb(0x426)];return _0x5c7a7c&&this[_0x371aeb(0x2a1)](_0x57f16d,_0x5c7a7c)?_0x5c7a7c:this[_0x371aeb(0x412)](_0x57f16d,_0x6ef8d8=>this[_0x371aeb(0x3ba)](_0x6ef8d8));}[_0x6c183(0x412)](_0x140b6a,_0x58ffe3){const _0x3f0f38=_0x6c183;for(let _0x48eda2 of _0x140b6a[_0x3f0f38(0x3b5)]){let _0x31e1dc=_0x140b6a[_0x3f0f38(0x398)][_0x48eda2];if(_0x31e1dc&&_0x58ffe3(_0x31e1dc))return _0x31e1dc['id'];}return null;}[_0x6c183(0x2a1)](_0x47fb7d,_0x32a8bd){const _0x2dd7b7=_0x6c183;let _0x3be031=_0x47fb7d['fields'][_0x32a8bd];return this[_0x2dd7b7(0x3ba)](_0x3be031)||F(_0x47fb7d,_0x32a8bd);}[_0x6c183(0x3ba)](_0x362be0){const _0x334ee0=_0x6c183;return!!_0x362be0&&(_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x20e)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x386)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x2c3)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x359)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x1ad)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x233)]);}[_0x6c183(0x42a)](_0x3b8d96){const _0x456b6b=_0x6c183;return _0x3b8d96['type']===_0x3a044b[_0x456b6b(0x20e)]||_0x3b8d96[_0x456b6b(0x20b)]===_0x3a044b['MultiSelect'];}['_resolveKanbanCoverFieldId'](_0x405793,_0x31f219){const _0x514141=_0x6c183;var _0x1e533c;let _0x242397=_0x31f219['coverFieldId']??((_0x1e533c=_0x31f219['card'])==null?void 0x0:_0x1e533c[_0x514141(0x21a)])??null;if(!_0x242397)return null;let _0x469db8=_0x405793[_0x514141(0x398)][_0x242397];return _0x469db8&&this[_0x514141(0x403)](_0x469db8)[_0x514141(0x16d)]?_0x469db8['id']:null;}['_resolveKanbanCardFieldIds'](_0x91f47e,_0x81d2d9,_0x335b36,_0x485c4a=this[_0x6c183(0x3f4)](_0x91f47e,((()=>{const _0x28157e=_0x6c183;var _0x4b3fa0;return(_0x4b3fa0=_0x81d2d9['config'])==null||(_0x4b3fa0=_0x4b3fa0[_0x28157e(0x39b)])==null?void 0x0:_0x4b3fa0[_0x28157e(0x1ba)];})()))){const _0x441cc4=_0x6c183;var _0x5c37a0;let _0x4b75ac=_0x81d2d9[_0x441cc4(0x2ba)]??{},_0x1359f2=(_0x5c37a0=_0x4b75ac[_0x441cc4(0x39b)])!=null&&(_0x5c37a0=_0x5c37a0['fieldIds'])!=null&&_0x5c37a0[_0x441cc4(0x13c)]?_0x4b75ac[_0x441cc4(0x39b)]['fieldIds']:Qr(_0x91f47e,[_0x485c4a,_0x91f47e[_0x441cc4(0x3b2)],_0x335b36]),_0x5532e0=_0x4b75ac[_0x441cc4(0x48f)]??{};return _0x1359f2['filter'](_0x3a225f=>{const _0x1e448c=_0x441cc4;var _0x185302,_0x30deeb;let _0x50a942=_0x91f47e[_0x1e448c(0x398)][_0x3a225f];return!(!_0x50a942||_0x50a942[_0x1e448c(0x3cf)]===!0x0||_0x50a942[_0x1e448c(0x20b)]===_0x3a044b[_0x1e448c(0x22f)]||_0x50a942['id']===_0x335b36||_0x50a942['id']===_0x485c4a||(_0x185302=_0x81d2d9['fieldSettings'])!=null&&(_0x185302=_0x185302[_0x3a225f])!=null&&_0x185302[_0x1e448c(0x1b2)]||(_0x30deeb=_0x5532e0[_0x3a225f])!=null&&_0x30deeb['hidden']);})[_0x441cc4(0x277)]((_0x4900f5,_0x443165)=>{const _0x40ce17=_0x441cc4;var _0x2db5e5,_0x184d8e;return(((_0x2db5e5=_0x5532e0[_0x4900f5])==null?void 0x0:_0x2db5e5[_0x40ce17(0x316)])??_0x1359f2['indexOf'](_0x4900f5))-(((_0x184d8e=_0x5532e0[_0x443165])==null?void 0x0:_0x184d8e[_0x40ce17(0x316)])??_0x1359f2[_0x40ce17(0x44e)](_0x443165));});}[_0x6c183(0x428)](_0x5dcff9,_0x5843fc){const _0x1d7717=_0x6c183;var _0x450cea;let _0x78fcf2=(Array[_0x1d7717(0x431)]((_0x450cea=_0x5dcff9[_0x1d7717(0x2ba)])==null?void 0x0:_0x450cea[_0x1d7717(0x2b3)])?_0x5dcff9[_0x1d7717(0x2ba)][_0x1d7717(0x2b3)]:[])['flatMap']((_0x503594,_0x51523c)=>{const _0x11c5d1=_0x1d7717;if(_0x503594==null)return[];let _0x5c75d4=typeof _0x503594=='string'?{'id':_0x503594,'name':_0x503594,'color':void 0x0}:_0x503594,_0x1e23f2=String(_0x5c75d4['id']??_0x5c75d4[_0x11c5d1(0x2a3)]??'option-'+(_0x51523c+0x1));return[{'key':_0x1e23f2,'title':String(_0x5c75d4[_0x11c5d1(0x2a3)]??_0x5c75d4['id']??_0x1e23f2),'color':this[_0x11c5d1(0x31a)](_0x5dcff9,_0x1e23f2,_0x5843fc)}];});return Object[_0x1d7717(0x279)](_0x5843fc[_0x1d7717(0x15c)]??{})[_0x1d7717(0x2e0)](([_0x1b29d8,_0x4616ca])=>{const _0x475146=_0x1d7717;_0x78fcf2['some'](_0x4d92d6=>_0x4d92d6['key']===_0x1b29d8)||_0x78fcf2[_0x475146(0x174)]({'key':_0x1b29d8,'title':this[_0x475146(0x42a)](_0x5dcff9)?_0x4616ca[_0x475146(0x488)]??this['_kanbanLaneTitle'](_0x5dcff9,_0x1b29d8,_0x5843fc):this[_0x475146(0x411)](_0x5dcff9,_0x1b29d8,_0x5843fc),'color':this[_0x475146(0x31a)](_0x5dcff9,_0x1b29d8,_0x5843fc)});}),_0x78fcf2;}['_kanbanGroupKeys'](_0x29cd1f,_0x185b7f){const _0x2dc7ea=_0x6c183;let _0x38cf4e=_0x24cb58=>{const _0x37432d=_0x2b5a;var _0x10c0b6;let _0x398c91=_0x24cb58==null?'':String(_0x24cb58);return!_0x398c91||!this[_0x37432d(0x42a)](_0x29cd1f)?_0x398c91:((_0x10c0b6=Li(_0x29cd1f,_0x398c91))==null?void 0x0:_0x10c0b6['id'])??_0x398c91;};if(Array['isArray'](_0x185b7f)){let _0x5625c5=_0x185b7f[_0x2dc7ea(0x141)](_0x38cf4e)[_0x2dc7ea(0x2be)](_0x4d68f2=>_0x4d68f2!=='');return _0x5625c5[_0x2dc7ea(0x13c)]?_0x5625c5:[''];}return[_0x38cf4e(_0x185b7f)];}[_0x6c183(0x411)](_0x55e52d,_0x1a5d3d,_0x2c182a){const _0x1a863f=_0x6c183;if(!_0x1a5d3d)return _0x1a863f(0x1f5);let _0x187bc6=Li(_0x55e52d,_0x1a5d3d);return(_0x187bc6==null?void 0x0:_0x187bc6[_0x1a863f(0x2a3)])??_0x1a5d3d;}[_0x6c183(0x31a)](_0xa04ac8,_0x50022b,_0x126e0d){const _0x23ca52=_0x6c183;var _0x5dd31a;if(this[_0x23ca52(0x42a)](_0xa04ac8))return(_0x5dd31a=Li(_0xa04ac8,_0x50022b))==null?void 0x0:_0x5dd31a[_0x23ca52(0x276)];}[_0x6c183(0x154)](_0x214901,_0x589750){const _0x4571c5=_0x6c183;let _0x538cff=this['_normalizeCalendarConfig'](_0x214901,_0x589750[_0x4571c5(0x2ba)]??{}),_0x47bbf7=_0x214901['fields'][_0x538cff[_0x4571c5(0x4b5)]];if(!_0x47bbf7||_0x47bbf7[_0x4571c5(0x20b)]!==_0x3a044b['Date']||_0x47bbf7[_0x4571c5(0x3a9)]===!0x0||_0x47bbf7[_0x4571c5(0x3cf)]===!0x0||!this[_0x4571c5(0x403)](_0x47bbf7)[_0x4571c5(0x4c8)])return{'type':'invalid','viewType':_0x3ece31['Calendar'],'reason':_0x4571c5(0x3f6),'fieldId':_0x538cff[_0x4571c5(0x4b5)]};let _0xb5b5a9=_0x538cff[_0x4571c5(0x3ef)]?_0x214901[_0x4571c5(0x398)][_0x538cff[_0x4571c5(0x3ef)]]:void 0x0,_0x36359c=this[_0x4571c5(0x449)](_0x214901,_0x589750);return{'type':_0x3ece31[_0x4571c5(0x208)],'config':_0x538cff,'fields':this[_0x4571c5(0x3d9)](_0x214901,_0x589750),'rows':_0x36359c,'groups':this[_0x4571c5(0x3eb)](_0x214901,_0x589750,_0x36359c),'events':_0x36359c['flatMap'](_0x214629=>{const _0x5c5e9a=_0x4571c5;let _0x128ea0=dn(_0x214629[_0x5c5e9a(0x227)][_0x538cff[_0x5c5e9a(0x4b5)]]);if(!Number['isFinite'](_0x128ea0))return[];let _0x24496e=_0x214629['values'][_0x538cff[_0x5c5e9a(0x4b5)]],_0x362bce=_0x538cff[_0x5c5e9a(0x3ef)]==null?void 0x0:_0x214629['values'][_0x538cff[_0x5c5e9a(0x3ef)]],_0x1dee64=_0x538cff[_0x5c5e9a(0x3ef)]==null?void 0x0:dn(_0x362bce),_0x4286f1=Number[_0x5c5e9a(0x143)](_0x1dee64)?_0x1dee64:void 0x0;return[{'recordId':_0x214629['recordId'],'title':this[_0x5c5e9a(0x271)](_0x214901,_0x214629,_0x538cff['titleFieldId']),'start':_0x128ea0,'end':_0x4286f1,'color':this['_calendarEventColor'](_0x214901,_0x214629,_0x538cff),'startMs':_0x128ea0,'endMs':_0x4286f1,'allDay':this[_0x5c5e9a(0x3f5)](_0x47bbf7,_0xb5b5a9,_0x24496e,_0x362bce),'fieldValues':_0x214629[_0x5c5e9a(0x227)]}];})};}[_0x6c183(0x171)](_0x575c52,_0x296a3c){const _0xb5db00=_0x6c183;let _0x340e00=this['_resolveCalendarDateFieldId'](_0x575c52,_0x296a3c['startDateFieldId']),_0x2428f2=_0x296a3c[_0xb5db00(0x3ef)]&&this['_isCalendarDateField'](_0x575c52,_0x296a3c[_0xb5db00(0x3ef)])?_0x296a3c[_0xb5db00(0x3ef)]:this[_0xb5db00(0x381)](_0x575c52,_0x340e00)??void 0x0,_0xab886a=_0x296a3c[_0xb5db00(0x1ba)]?_0x575c52[_0xb5db00(0x398)][_0x296a3c[_0xb5db00(0x1ba)]]:void 0x0,_0x2dd211=_0xab886a&&_0xab886a[_0xb5db00(0x3cf)]!==!0x0&&_0xab886a[_0xb5db00(0x20b)]!==_0x3a044b[_0xb5db00(0x22f)]?_0x296a3c[_0xb5db00(0x1ba)]:_0x575c52[_0xb5db00(0x3b2)],_0x298c46=_0x296a3c['mode']===_0xb5db00(0x130)||_0x296a3c[_0xb5db00(0x3cb)]==='week'?_0x296a3c['mode']:'month',_0x2e049e=_0x296a3c['timeslotSize']===_0xb5db00(0x416)||_0x296a3c['timeslotSize']===_0xb5db00(0x3f1)?_0x296a3c[_0xb5db00(0x1fd)]:_0xb5db00(0x1a7),_0x52e61e=typeof _0x296a3c['timeZone']==_0xb5db00(0x425)&&_0x296a3c[_0xb5db00(0x164)][_0xb5db00(0x226)]()?_0x296a3c[_0xb5db00(0x164)]:_0xb5db00(0x231),_0x5f1768=this[_0xb5db00(0x39f)](_0x575c52,_0x296a3c);return{..._0x296a3c,'startDateFieldId':_0x340e00,'endDateFieldId':_0x2428f2,'titleFieldId':_0x2dd211,'mode':_0x298c46,'timeslotSize':_0x2e049e,'timeZone':_0x52e61e,'displayColor':_0x5f1768,'fieldSettings':Object[_0xb5db00(0x176)](Object['entries'](_0x296a3c['fieldSettings']??{})[_0xb5db00(0x2be)](([_0x37ff7e])=>{const _0x19c422=_0xb5db00;let _0x3b5ece=_0x575c52[_0x19c422(0x398)][_0x37ff7e];return!!(_0x3b5ece&&_0x3b5ece[_0x19c422(0x3cf)]!==!0x0&&_0x3b5ece[_0x19c422(0x20b)]!==_0x3a044b[_0x19c422(0x22f)]);}))};}[_0x6c183(0x2ed)](_0xc07962,_0x56f23f){const _0x5a5d29=_0x6c183;return _0x56f23f&&this[_0x5a5d29(0x4a4)](_0xc07962,_0x56f23f)?_0x56f23f:this[_0x5a5d29(0x381)](_0xc07962)??_0x56f23f??'';}[_0x6c183(0x381)](_0x67a48,_0x3ad5a7){const _0x448107=_0x6c183;for(let _0x172899 of _0x67a48[_0x448107(0x3b5)])if(_0x172899!==_0x3ad5a7&&this[_0x448107(0x4a4)](_0x67a48,_0x172899))return _0x172899;return null;}[_0x6c183(0x4a4)](_0x4dd16d,_0xa8fd92){const _0x5cfafd=_0x6c183;let _0x18210d=_0x4dd16d['fields'][_0xa8fd92];return!!_0x18210d&&_0x18210d['type']===_0x3a044b['Date']&&_0x18210d[_0x5cfafd(0x3a9)]!==!0x0&&_0x18210d[_0x5cfafd(0x3cf)]!==!0x0&&this['_capabilities'](_0x18210d)[_0x5cfafd(0x4c8)];}[_0x6c183(0x39f)](_0x22c364,_0x52975a){const _0x36dccb=_0x6c183;let _0x5dff4a=_0x52975a[_0x36dccb(0x430)];if((_0x5dff4a==null?void 0x0:_0x5dff4a[_0x36dccb(0x20b)])===_0x36dccb(0x301)){let _0x34a5f6=_0x22c364[_0x36dccb(0x398)][_0x5dff4a['fieldId']];if(_0x34a5f6&&_0x34a5f6[_0x36dccb(0x20b)]===_0x3a044b[_0x36dccb(0x20e)])return _0x5dff4a;}if((_0x5dff4a==null?void 0x0:_0x5dff4a[_0x36dccb(0x20b)])===_0x36dccb(0x446)&&typeof _0x5dff4a[_0x36dccb(0x276)]=='string'&&_0x5dff4a[_0x36dccb(0x276)][_0x36dccb(0x226)]())return{'type':_0x36dccb(0x446),'color':_0x5dff4a['color']};if(_0x52975a['colorFieldId']){let _0x43a620=_0x22c364['fields'][_0x52975a[_0x36dccb(0x1d6)]];if(_0x43a620&&_0x43a620[_0x36dccb(0x20b)]===_0x3a044b['SingleSelect'])return{'type':'selectField','fieldId':_0x52975a[_0x36dccb(0x1d6)]};}return{'type':_0x36dccb(0x446),'color':_0x36dccb(0x1d8)};}['_calendarEventColor'](_0x34b7bc,_0x227639,_0x234c79){const _0x412600=_0x6c183;let _0x36b0cb=_0x234c79[_0x412600(0x430)];if((_0x36b0cb==null?void 0x0:_0x36b0cb[_0x412600(0x20b)])===_0x412600(0x301)){var _0x30cda3;let _0x446b2d=_0x34b7bc[_0x412600(0x398)][_0x36b0cb['fieldId']];if(!_0x446b2d)return;let _0x3ce7b9=_0x227639[_0x412600(0x227)][_0x36b0cb[_0x412600(0x2b0)]],_0x31ad0c=Array[_0x412600(0x431)](_0x3ce7b9)?_0x3ce7b9[0x0]:_0x3ce7b9;return _0x31ad0c==null||(_0x30cda3=Li(_0x446b2d,String(_0x31ad0c)))==null?void 0x0:_0x30cda3[_0x412600(0x276)];}if((_0x36b0cb==null?void 0x0:_0x36b0cb['type'])===_0x412600(0x446))return _0x36b0cb[_0x412600(0x276)];}['_isAllDayCalendarEvent'](_0x4375b4,_0x2c91ea,_0x5569e7,_0x1703d5){const _0x571c17=_0x6c183;var _0x38b957,_0x2094f0;let _0x23dfc6=((_0x38b957=_0x4375b4[_0x571c17(0x2ba)])==null?void 0x0:_0x38b957[_0x571c17(0x22e)])===!0x0,_0x173cab=(_0x2c91ea==null||(_0x2094f0=_0x2c91ea[_0x571c17(0x2ba)])==null?void 0x0:_0x2094f0[_0x571c17(0x22e)])===!0x0;return!_0x23dfc6&&!_0x173cab;}[_0x6c183(0x49d)](_0x5209b9,_0x3e6092){const _0x3d22cc=_0x6c183;var _0x1946a9,_0x5953ca;let _0x17f846=((_0x1946a9=_0x5209b9[_0x3d22cc(0x2ba)])==null?void 0x0:_0x1946a9['includeTime'])===!0x0,_0x4f6525=((_0x5953ca=_0x3e6092[_0x3d22cc(0x2ba)])==null?void 0x0:_0x5953ca['includeTime'])===!0x0;return!_0x17f846&&!_0x4f6525;}[_0x6c183(0x2f6)](_0x41a9e9,_0x418d69){const _0x496164=_0x6c183;let _0x5f3621=this[_0x496164(0x12e)](_0x41a9e9,_0x418d69['config']),_0x2f7a79=_0x41a9e9[_0x496164(0x398)][_0x5f3621[_0x496164(0x4b5)]];if(!_0x2f7a79||_0x2f7a79[_0x496164(0x20b)]!==_0x3a044b[_0x496164(0x346)]||_0x2f7a79[_0x496164(0x3a9)]===!0x0||_0x2f7a79[_0x496164(0x3cf)]===!0x0||!this[_0x496164(0x403)](_0x2f7a79)[_0x496164(0x264)])return{'type':_0x496164(0x3a3),'viewType':_0x3ece31[_0x496164(0x1cf)],'reason':_0x496164(0x4cc),'fieldId':_0x5f3621['startDateFieldId']};let _0xcd21b7=_0x41a9e9[_0x496164(0x398)][_0x5f3621[_0x496164(0x3ef)]];if(!_0xcd21b7||_0xcd21b7['type']!==_0x3a044b['Date']||_0xcd21b7[_0x496164(0x3a9)]===!0x0||_0xcd21b7['system']===!0x0||!this[_0x496164(0x403)](_0xcd21b7)[_0x496164(0x1d0)])return{'type':'invalid','viewType':_0x3ece31[_0x496164(0x1cf)],'reason':_0x496164(0x1aa),'fieldId':_0x5f3621[_0x496164(0x3ef)]};let _0x1cd535=this[_0x496164(0x49d)](_0x2f7a79,_0xcd21b7),_0x31b34e=this['_projectRows'](_0x41a9e9,_0x418d69),_0x12e009=_0x31b34e[_0x496164(0x17a)](_0x3748bb=>{const _0x1c190f=_0x496164;let _0x15f206=dn(_0x3748bb['values'][_0x5f3621[_0x1c190f(0x4b5)]]),_0x3e9123=dn(_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x3ef)]]);if(!Number[_0x1c190f(0x143)](_0x15f206)||!Number['isFinite'](_0x3e9123))return[];let _0x7d0243=Math[_0x1c190f(0x27a)](_0x15f206,_0x3e9123),_0x26ca03=Math[_0x1c190f(0x482)](_0x15f206,_0x3e9123),_0x50f86e=_0x5f3621['progressFieldId']==null?void 0x0:Number(_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x4b1)]]);return[{'recordId':_0x3748bb[_0x1c190f(0x347)],'title':this[_0x1c190f(0x271)](_0x41a9e9,_0x3748bb,_0x5f3621[_0x1c190f(0x1ba)]),'start':_0x7d0243,'end':_0x26ca03,'color':this[_0x1c190f(0x1fc)](_0x41a9e9,_0x3748bb,_0x5f3621),'progress':Number[_0x1c190f(0x143)](_0x50f86e)?_0x50f86e:void 0x0,'workingDayCount':_0x5f3621['workingDaysOnly']?Ti(_0x7d0243,_0x26ca03,_0x5f3621[_0x1c190f(0x1a9)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x489)]??''])}];}),_0x33b9fa=_0x12e009[_0x496164(0x13c)]?Z(Math[_0x496164(0x27a)](..._0x12e009[_0x496164(0x141)](_0x184f14=>_0x184f14[_0x496164(0x41a)]))-0x5a*oi):Z(Date[_0x496164(0x2a4)]()-0x5a*oi),_0x1562c7=_0x12e009[_0x496164(0x13c)]?Z(Math['max'](..._0x12e009['map'](_0x13742c=>_0x13742c[_0x496164(0x439)]))+0x5b*oi):Z(Date['now']()+0x5b*oi),_0x59068d=_i(_0x5f3621['scale'],_0x33b9fa,_0x1562c7,_0x5f3621[_0x496164(0x40e)]?_0x5f3621['workingDays']:void 0x0);return{'type':_0x3ece31[_0x496164(0x1cf)],'fields':this[_0x496164(0x3d9)](_0x41a9e9,{..._0x418d69,'config':_0x5f3621}),'rows':_0x31b34e,'groups':this[_0x496164(0x3eb)](_0x41a9e9,_0x418d69,_0x31b34e),'config':_0x5f3621,'dateRangeAllDay':_0x1cd535,'timeline':{'scale':_0x5f3621['scale'],'start':_0x33b9fa,'end':_0x1562c7,'unitWidth':_0x59068d['unitWidth'],'majorHeaders':_0x59068d['majorHeaders'],'columns':_0x59068d[_0x496164(0x2ea)]},'bars':_0x12e009};}[_0x6c183(0x12e)](_0x1820b3,_0x471d91){const _0xed6a3d=_0x6c183;let _0x500db5=this[_0xed6a3d(0x469)](_0x1820b3,_0x471d91['startDateFieldId'],_0xed6a3d(0x41a)),_0x2792ac=this[_0xed6a3d(0x469)](_0x1820b3,_0x471d91[_0xed6a3d(0x3ef)],_0xed6a3d(0x439))||_0x500db5,_0x2eaac7=_0x471d91[_0xed6a3d(0x1ba)]?_0x1820b3['fields'][_0x471d91[_0xed6a3d(0x1ba)]]:void 0x0,_0x5530d2=_0x2eaac7&&_0x2eaac7[_0xed6a3d(0x3cf)]!==!0x0&&_0x2eaac7[_0xed6a3d(0x20b)]!==_0x3a044b[_0xed6a3d(0x22f)]?_0x471d91[_0xed6a3d(0x1ba)]:_0x1820b3['primaryFieldId'],_0x3157f5=_0x471d91[_0xed6a3d(0x1e1)]===_0xed6a3d(0x2de)||_0x471d91[_0xed6a3d(0x1e1)]==='quarter'||_0x471d91[_0xed6a3d(0x1e1)]==='year'?_0x471d91['scale']:_0xed6a3d(0x43d),_0x2becc6=gi(_0x471d91[_0xed6a3d(0x1a9)]);return{..._0x471d91,'startDateFieldId':_0x500db5,'endDateFieldId':_0x2792ac,'titleFieldId':_0x5530d2,'scale':_0x3157f5,'leftPaneWidth':typeof _0x471d91[_0xed6a3d(0x3e3)]=='number'?_0x471d91[_0xed6a3d(0x3e3)]:void 0x0,'leftPaneCollapsed':_0x471d91[_0xed6a3d(0x458)]===!0x0,'showTodayLine':_0x471d91[_0xed6a3d(0x450)]!==!0x1,'displayColor':this[_0xed6a3d(0x3be)](_0x1820b3,_0x471d91),'fieldSettings':Object[_0xed6a3d(0x176)](Object[_0xed6a3d(0x279)](_0x471d91['fieldSettings']??{})['filter'](([_0x3391b7])=>{const _0x521970=_0xed6a3d;let _0x12c7c8=_0x1820b3[_0x521970(0x398)][_0x3391b7];return!!(_0x12c7c8&&_0x12c7c8['system']!==!0x0&&_0x12c7c8['type']!==_0x3a044b[_0x521970(0x22f)]);})),'workingDaysOnly':_0x471d91[_0xed6a3d(0x40e)]===!0x0,'workingDays':_0x2becc6};}['_resolveGanttDateFieldId'](_0x3c6ac9,_0x9aec31,_0x2d3040){const _0x31a297=_0x6c183;if(_0x9aec31&&this['_isGanttDateField'](_0x3c6ac9,_0x9aec31,_0x2d3040)||_0x9aec31)return _0x9aec31;for(let _0x3d26e2 of _0x3c6ac9['fieldOrder'])if(this[_0x31a297(0x4bc)](_0x3c6ac9,_0x3d26e2,_0x2d3040))return _0x3d26e2;return _0x9aec31??'';}[_0x6c183(0x4bc)](_0x12f909,_0x566db7,_0x53245f){const _0x5c37fe=_0x6c183;let _0x13d709=_0x12f909['fields'][_0x566db7];if(!_0x13d709||_0x13d709['type']!==_0x3a044b[_0x5c37fe(0x346)]||_0x13d709['readonly']===!0x0||_0x13d709[_0x5c37fe(0x3cf)]===!0x0)return!0x1;let _0x10e985=this[_0x5c37fe(0x403)](_0x13d709);return _0x53245f===_0x5c37fe(0x41a)?_0x10e985[_0x5c37fe(0x264)]:_0x10e985[_0x5c37fe(0x1d0)];}['_normalizeGanttDisplayColor'](_0x4cf8f6,_0x36957f){const _0x1fbe29=_0x6c183;let _0x43ef54=_0x36957f[_0x1fbe29(0x430)];if((_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])===_0x1fbe29(0x301)){let _0x35c0ea=_0x4cf8f6[_0x1fbe29(0x398)][_0x43ef54[_0x1fbe29(0x2b0)]];if(_0x35c0ea&&_0x35c0ea['type']===_0x3a044b[_0x1fbe29(0x20e)])return _0x43ef54;}return(_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])===_0x1fbe29(0x3da)&&Array['isArray'](_0x43ef54['rules'])?{'type':_0x1fbe29(0x3da),'rules':_0x43ef54[_0x1fbe29(0x4c4)][_0x1fbe29(0x2be)](_0x365ac6=>!!_0x4cf8f6['fields'][_0x365ac6[_0x1fbe29(0x2b0)]])}:(_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])==='custom'&&typeof _0x43ef54[_0x1fbe29(0x276)]==_0x1fbe29(0x425)&&_0x43ef54[_0x1fbe29(0x276)][_0x1fbe29(0x226)]()?{'type':_0x1fbe29(0x446),'color':_0x43ef54[_0x1fbe29(0x276)]}:{'type':_0x1fbe29(0x446),'color':'#14b8a6'};}[_0x6c183(0x1fc)](_0x537fbe,_0x1fce71,_0x365116){const _0x466fd5=_0x6c183;let _0x1af3f9=_0x365116[_0x466fd5(0x430)];if((_0x1af3f9==null?void 0x0:_0x1af3f9[_0x466fd5(0x20b)])===_0x466fd5(0x3da)){let _0xdcba3e=_0x1af3f9[_0x466fd5(0x4c4)]['find'](_0xba8ee=>this[_0x466fd5(0x341)](_0x537fbe,_0x1fce71,_0xba8ee));if(_0xdcba3e)return _0xdcba3e[_0x466fd5(0x276)];}if((_0x1af3f9==null?void 0x0:_0x1af3f9[_0x466fd5(0x20b)])===_0x466fd5(0x301)){let _0x41221e=_0x537fbe[_0x466fd5(0x398)][_0x1af3f9[_0x466fd5(0x2b0)]];if(_0x41221e){var _0x38f085;let _0x5ddf08=_0x1fce71['values'][_0x1af3f9[_0x466fd5(0x2b0)]],_0x3afd8e=Array[_0x466fd5(0x431)](_0x5ddf08)?_0x5ddf08[0x0]:_0x5ddf08,_0x5dc7bb=_0x3afd8e==null||(_0x38f085=Li(_0x41221e,String(_0x3afd8e)))==null?void 0x0:_0x38f085[_0x466fd5(0x276)];if(_0x5dc7bb)return _0x5dc7bb;}}return(_0x1af3f9==null?void 0x0:_0x1af3f9['type'])===_0x466fd5(0x446)?_0x1af3f9[_0x466fd5(0x276)]:'#14b8a6';}[_0x6c183(0x341)](_0x5cfa6a,_0x52b25e,_0x2447ab){const _0x3a7bf5=_0x6c183;let _0x32df92=_0x5cfa6a['fields'][_0x2447ab[_0x3a7bf5(0x2b0)]];return _0x32df92?xn(_0x52b25e[_0x3a7bf5(0x227)][_0x32df92['id']],_0x2447ab['operator'],_0x2447ab[_0x3a7bf5(0x302)],_0x32df92,{'dateMode':_0x2447ab['dateMode']}):!0x1;}[_0x6c183(0x36c)](_0x376ba9,_0xc0a926){const _0x29d65e=_0x6c183;let _0x1497f7=this['_projectRows'](_0x376ba9,_0xc0a926),_0x4558e1=this['_normalizeGalleryConfig'](_0x376ba9,_0xc0a926[_0x29d65e(0x2ba)]??{}),_0x1243bd=this[_0x29d65e(0x3d9)](_0x376ba9,_0xc0a926);return{'type':_0x3ece31[_0x29d65e(0x434)],'fields':_0x1243bd,'rows':_0x1497f7,'groups':this['_projectGroups'](_0x376ba9,_0xc0a926,_0x1497f7),'titleFieldId':_0x4558e1[_0x29d65e(0x39b)][_0x29d65e(0x1ba)],'coverFieldId':_0x4558e1['coverFieldId'],'cardLayout':_0x4558e1[_0x29d65e(0x33c)]??_0x29d65e(0x339),'showFieldNames':_0x4558e1[_0x29d65e(0x15d)]!==!0x1,'visibleCardFieldIds':this[_0x29d65e(0x47e)](_0x376ba9,_0xc0a926,_0x4558e1),'cardSize':_0x4558e1[_0x29d65e(0x37f)]??_0x29d65e(0x1a7),'cards':_0x1497f7[_0x29d65e(0x141)](_0x13b966=>({'recordId':_0x13b966[_0x29d65e(0x347)],'title':this['_title'](_0x376ba9,_0x13b966,_0x4558e1[_0x29d65e(0x39b)][_0x29d65e(0x1ba)]),'values':_0x13b966[_0x29d65e(0x227)]}))};}[_0x6c183(0x184)](_0xaf6446,_0x55617a){const _0x240d23=_0x6c183;let _0x350a05=_0x55617a['card']??{'fieldIds':[]},_0x58e4d5=this[_0x240d23(0x3f4)](_0xaf6446,_0x350a05[_0x240d23(0x1ba)]),_0x1767ff=this[_0x240d23(0x1ac)](_0xaf6446,_0x55617a),_0x5e07d2=_0x55617a['cardSize']===_0x240d23(0x2c0)||_0x55617a[_0x240d23(0x37f)]===_0x240d23(0x3c0)?_0x55617a['cardSize']:_0x240d23(0x1a7);return{..._0x55617a,'coverFieldId':_0x1767ff,'cardLayout':_0x55617a['cardLayout']===_0x240d23(0x2a2)?_0x240d23(0x2a2):'normal','showFieldNames':_0x55617a[_0x240d23(0x15d)]!==!0x1,'fieldSettings':Object[_0x240d23(0x176)](Object[_0x240d23(0x279)](_0x55617a[_0x240d23(0x48f)]??{})['filter'](([_0x587e5f])=>{const _0x3cb423=_0x240d23;let _0x3172b1=_0xaf6446[_0x3cb423(0x398)][_0x587e5f];return!!(_0x3172b1&&_0x3172b1[_0x3cb423(0x3cf)]!==!0x0&&_0x3172b1[_0x3cb423(0x20b)]!==_0x3a044b[_0x3cb423(0x22f)]);})),'card':{..._0x350a05,'titleFieldId':_0x58e4d5,'coverFieldId':_0x1767ff,'fieldIds':Array[_0x240d23(0x431)](_0x350a05['fieldIds'])?_0x350a05[_0x240d23(0x31c)]:[]},'cardSize':_0x5e07d2};}[_0x6c183(0x3f4)](_0x18846f,_0x4f8a75){const _0x48a591=_0x6c183;let _0x11b9d8=_0x4f8a75?_0x18846f[_0x48a591(0x398)][_0x4f8a75]:void 0x0;return _0x11b9d8&&_0x11b9d8['system']!==!0x0&&_0x11b9d8[_0x48a591(0x20b)]!==_0x3a044b['RecordId']?_0x11b9d8['id']:Zr(_0x18846f);}['_resolveGalleryCoverFieldId'](_0x41f6c3,_0x31f5b3){const _0x393bdf=_0x6c183;var _0x43f49b;let _0x25d07e=_0x31f5b3[_0x393bdf(0x21a)]??((_0x43f49b=_0x31f5b3[_0x393bdf(0x39b)])==null?void 0x0:_0x43f49b['coverFieldId'])??null;if(!_0x25d07e)return null;let _0x394436=_0x41f6c3[_0x393bdf(0x398)][_0x25d07e];return _0x394436&&this['_capabilities'](_0x394436)['usableAsCardCover']?_0x394436['id']:null;}['_resolveGalleryCardFieldIds'](_0x20b267,_0x14da62,_0x5c4ecb){const _0x5d2da9=_0x6c183;var _0x5c730c,_0x1cdfe0,_0x2ae84d;let _0x3cfbd9=_0x5c4ecb[_0x5d2da9(0x48f)]??{},_0x5e2ce5=((_0x5c730c=_0x5c4ecb[_0x5d2da9(0x39b)])==null?void 0x0:_0x5c730c[_0x5d2da9(0x1ba)])??Zr(_0x20b267),_0x36793a=_0x5c4ecb[_0x5d2da9(0x21a)]??((_0x1cdfe0=_0x5c4ecb[_0x5d2da9(0x39b)])==null?void 0x0:_0x1cdfe0[_0x5d2da9(0x21a)])??null,_0x32d0ab=(_0x2ae84d=_0x5c4ecb[_0x5d2da9(0x39b)])!=null&&(_0x2ae84d=_0x2ae84d[_0x5d2da9(0x31c)])!=null&&_0x2ae84d['length']?_0x5c4ecb[_0x5d2da9(0x39b)][_0x5d2da9(0x31c)]:Qr(_0x20b267,[_0x5e2ce5,_0x36793a,_0x20b267['primaryFieldId']]);return _0x32d0ab[_0x5d2da9(0x2be)](_0x511ab0=>{const _0x501d59=_0x5d2da9;var _0x550206,_0x796eac;let _0x1cfb01=_0x20b267['fields'][_0x511ab0];return!(!_0x1cfb01||_0x1cfb01[_0x501d59(0x3cf)]===!0x0||_0x1cfb01[_0x501d59(0x20b)]===_0x3a044b[_0x501d59(0x22f)]||_0x1cfb01['id']===_0x5e2ce5||_0x1cfb01['id']===_0x36793a||(_0x550206=_0x14da62[_0x501d59(0x48f)])!=null&&(_0x550206=_0x550206[_0x511ab0])!=null&&_0x550206[_0x501d59(0x1b2)]||(_0x796eac=_0x3cfbd9[_0x511ab0])!=null&&_0x796eac[_0x501d59(0x1b2)]);})['sort']((_0x15cf0d,_0x318898)=>{const _0x1d5319=_0x5d2da9;var _0x383320,_0x4df36d;return(((_0x383320=_0x3cfbd9[_0x15cf0d])==null?void 0x0:_0x383320['order'])??_0x32d0ab[_0x1d5319(0x44e)](_0x15cf0d))-(((_0x4df36d=_0x3cfbd9[_0x318898])==null?void 0x0:_0x4df36d[_0x1d5319(0x316)])??_0x32d0ab[_0x1d5319(0x44e)](_0x318898));});}[_0x6c183(0x3d9)](_0x360eca,_0x11f55a){const _0x48d6e8=_0x6c183;var _0x12c473;return((_0x12c473=_0x11f55a[_0x48d6e8(0x3b5)])!=null&&_0x12c473[_0x48d6e8(0x13c)]?_0x11f55a[_0x48d6e8(0x3b5)]:_0x360eca[_0x48d6e8(0x3b5)])[_0x48d6e8(0x17a)](_0x28f66d=>{const _0x4a1ddf=_0x48d6e8;var _0x4d0b9e;let _0x5c36d9=_0x360eca['fields'][_0x28f66d],_0x2bf7b5=((_0x4d0b9e=_0x11f55a['fieldSettings'])==null?void 0x0:_0x4d0b9e[_0x28f66d])??{};return!_0x5c36d9||_0x5c36d9[_0x4a1ddf(0x3cf)]===!0x0||_0x5c36d9[_0x4a1ddf(0x20b)]===_0x3a044b[_0x4a1ddf(0x22f)]||_0x2bf7b5['hidden']?[]:[{'id':_0x5c36d9['id'],'name':_0x5c36d9[_0x4a1ddf(0x2a3)],'description':_0x5c36d9[_0x4a1ddf(0x1ce)],'type':_0x5c36d9[_0x4a1ddf(0x20b)],'config':_0x5c36d9[_0x4a1ddf(0x2ba)],'width':_0x2bf7b5['width'],'setting':_0x2bf7b5}];});}[_0x6c183(0x449)](_0x34f254,_0x47b9d6){const _0x1c9cda=_0x6c183;var _0x498fe8;return I('BaseProjection.projectRows',()=>{const _0x244278=_0x2b5a;var _0x224ed4,_0x6c36a0;let _0x534c59=this['_projectTableRows'](_0x34f254),_0x2c5bc8=this[_0x244278(0x312)](_0x34f254['id'],_0x47b9d6),_0x4d648e=this[_0x244278(0x42b)](_0x34f254['id']),_0x5e19d0=this[_0x244278(0x2c6)][_0x244278(0x43e)](_0x2c5bc8);if(_0x5e19d0&&_0x5e19d0[_0x244278(0x2dd)]===this[_0x244278(0x191)]&&_0x5e19d0[_0x244278(0x291)]===this[_0x244278(0x353)](_0x34f254['id'])){if(_0x5e19d0['cellRevision']===_0x4d648e&&_0x5e19d0[_0x244278(0x2f8)]===_0x534c59)return _0x5e19d0[_0x244278(0x2c5)];if(_0x5e19d0['cellRevision']!==_0x4d648e&&!this['_cellInvalidationsTouchFields'](_0x34f254['id'],_0x5e19d0['cellRevision'],_0x4d648e,this[_0x244278(0x3b3)](_0x47b9d6))){let _0x56af3f=_0x5e19d0[_0x244278(0x2c5)]===_0x5e19d0[_0x244278(0x2f8)]?_0x534c59:this[_0x244278(0x239)](_0x5e19d0[_0x244278(0x2c5)],_0x534c59);if(_0x56af3f)return this['_projectedViewRowsCache'][_0x244278(0x49e)](_0x2c5bc8,{..._0x5e19d0,'rows':_0x56af3f,'baseRows':_0x534c59,'cellRevision':_0x4d648e}),_0x56af3f;}}let _0x456c5b=I(_0x244278(0x236),()=>this['_sortRows'](_0x34f254,_0x47b9d6,this[_0x244278(0x19a)](_0x34f254,_0x47b9d6,_0x534c59)),{'tableId':_0x34f254['id'],'viewId':_0x47b9d6==null?void 0x0:_0x47b9d6['id'],'viewType':_0x47b9d6==null?void 0x0:_0x47b9d6[_0x244278(0x20b)],'rows':_0x534c59[_0x244278(0x13c)],'filters':(_0x47b9d6==null||(_0x224ed4=_0x47b9d6[_0x244278(0x2be)])==null?void 0x0:_0x224ed4[_0x244278(0x396)][_0x244278(0x13c)])??0x0,'sorts':(_0x47b9d6==null||(_0x6c36a0=_0x47b9d6[_0x244278(0x277)])==null?void 0x0:_0x6c36a0[_0x244278(0x13c)])??0x0});return this[_0x244278(0x2c6)][_0x244278(0x49e)](_0x2c5bc8,{'table':_0x34f254,'rows':_0x456c5b,'baseRows':_0x534c59,'globalRevision':this[_0x244278(0x191)],'tableRevision':this[_0x244278(0x353)](_0x34f254['id']),'cellRevision':_0x4d648e}),_0x456c5b;},{'tableId':_0x34f254['id'],'viewId':_0x47b9d6==null?void 0x0:_0x47b9d6['id'],'viewType':_0x47b9d6==null?void 0x0:_0x47b9d6[_0x1c9cda(0x20b)],'records':((_0x498fe8=_0x34f254[_0x1c9cda(0x1e7)])==null?void 0x0:_0x498fe8['length'])??Object[_0x1c9cda(0x24c)](_0x34f254['records']??{})['length']});}[_0x6c183(0x32b)](_0x2d40b7){const _0x211a8d=_0x6c183;var _0x4a3bf7;return I(_0x211a8d(0x4c9),()=>{const _0x46c208=_0x211a8d;var _0x2665e8;let _0x13467a=this[_0x46c208(0x42b)](_0x2d40b7['id']),_0x528595=this[_0x46c208(0x484)][_0x46c208(0x43e)](_0x2d40b7['id']);if(_0x528595&&_0x528595['globalRevision']===this[_0x46c208(0x191)]&&_0x528595[_0x46c208(0x291)]===this[_0x46c208(0x353)](_0x2d40b7['id'])){if(_0x528595[_0x46c208(0x21d)]===_0x13467a&&fi(_0x528595['table'],_0x2d40b7))return _0x528595['table']=_0x2d40b7,_0x528595[_0x46c208(0x2c5)];let _0x5ede6d=this[_0x46c208(0x44c)](_0x2d40b7,_0x528595,_0x13467a);if(_0x5ede6d)return _0x5ede6d;}ui(_0x2d40b7)||L(_0x2d40b7);let _0x4becc7=(_0x2665e8=_0x2d40b7[_0x46c208(0x1e7)])!=null&&_0x2665e8['length']?_0x2d40b7[_0x46c208(0x1e7)]:hi(_0x2d40b7[_0x46c208(0x258)]),_0x5a1128=I(_0x46c208(0x2b4),()=>{const _0x1733fa=_0x46c208;let _0x4d123d=[];for(let _0x568116 of _0x4becc7){let _0x329c22=_0x2d40b7['records'][_0x568116];if(!_0x329c22)continue;let _0x116d61={};for(let _0x33e3d1 of _0x2d40b7[_0x1733fa(0x3b5)])_0x116d61[_0x33e3d1]=yt(_0x2d40b7,_0x329c22['id'],_0x33e3d1);_0x4d123d['push']({'recordId':_0x329c22['id'],'values':_0x116d61});}return _0x4d123d;},{'tableId':_0x2d40b7['id'],'records':_0x4becc7[_0x46c208(0x13c)],'fields':_0x2d40b7[_0x46c208(0x3b5)]['length']});return this[_0x46c208(0x484)][_0x46c208(0x49e)](_0x2d40b7['id'],{'table':_0x2d40b7,'rows':_0x5a1128,'rowIndexById':li(_0x5a1128),'globalRevision':this[_0x46c208(0x191)],'tableRevision':this[_0x46c208(0x353)](_0x2d40b7['id']),'cellRevision':_0x13467a}),_0x5a1128;},{'tableId':_0x2d40b7['id'],'records':((_0x4a3bf7=_0x2d40b7[_0x211a8d(0x1e7)])==null?void 0x0:_0x4a3bf7[_0x211a8d(0x13c)])??Object[_0x211a8d(0x24c)](_0x2d40b7[_0x211a8d(0x258)]??{})[_0x211a8d(0x13c)],'fields':_0x2d40b7[_0x211a8d(0x3b5)]['length']});}[_0x6c183(0x44c)](_0x1f14bd,_0x1f6cdb,_0x50593c){const _0x182c41=_0x6c183;let _0x568a9b=(this['_cellInvalidations']['get'](_0x1f14bd['id'])??[])[_0x182c41(0x2be)](_0x340743=>_0x340743['revision']>_0x1f6cdb[_0x182c41(0x21d)]&&_0x340743[_0x182c41(0x4c5)]<=_0x50593c);if(!_0x568a9b['length'])return _0x1f6cdb[_0x182c41(0x4c7)]===_0x1f14bd?_0x1f6cdb[_0x182c41(0x2c5)]:null;let _0x356198=_0x1f6cdb[_0x182c41(0x2c5)],_0x1601ac=new Map();for(let _0x42b993 of _0x568a9b){let _0x5d149d=_0x1601ac[_0x182c41(0x43e)](_0x42b993[_0x182c41(0x347)]);_0x5d149d||(_0x5d149d=new Set(),_0x1601ac['set'](_0x42b993[_0x182c41(0x347)],_0x5d149d)),_0x5d149d[_0x182c41(0x2ee)](_0x42b993['fieldId']);}for(let [_0x3506b7,_0x24d76f]of _0x1601ac){if(!_0x1f14bd[_0x182c41(0x258)][_0x3506b7])return null;let _0x3c522d=_0x1f6cdb[_0x182c41(0x3d8)]['get'](_0x3506b7);if(_0x3c522d==null)return null;_0x356198===_0x1f6cdb['rows']&&(_0x356198=[..._0x1f6cdb[_0x182c41(0x2c5)]]);let _0x18818f=_0x356198[_0x3c522d],_0x272c5f={..._0x18818f[_0x182c41(0x227)]};_0x24d76f[_0x182c41(0x2e0)](_0x206c13=>{_0x272c5f[_0x206c13]=yt(_0x1f14bd,_0x3506b7,_0x206c13);}),_0x356198[_0x3c522d]={..._0x18818f,'values':_0x272c5f};}let _0x1d6f33={'table':_0x1f14bd,'rows':_0x356198,'rowIndexById':_0x1f6cdb[_0x182c41(0x3d8)],'globalRevision':this[_0x182c41(0x191)],'tableRevision':this[_0x182c41(0x353)](_0x1f14bd['id']),'cellRevision':_0x50593c};return this['_projectedRowsCache'][_0x182c41(0x49e)](_0x1f14bd['id'],_0x1d6f33),this[_0x182c41(0x40c)][_0x182c41(0x49e)](_0x1f14bd['id'],(this[_0x182c41(0x40c)][_0x182c41(0x43e)](_0x1f14bd['id'])??[])[_0x182c41(0x2be)](_0x35aed6=>_0x35aed6[_0x182c41(0x4c5)]>Math['max'](0x0,_0x50593c-0x100))),_0x356198;}[_0x6c183(0x239)](_0x1d44c6,_0x50fff7){const _0x5e6449=_0x6c183;let _0x1d8219=new Map(_0x50fff7[_0x5e6449(0x141)](_0x292643=>[_0x292643[_0x5e6449(0x347)],_0x292643])),_0x4824ba=!0x1,_0x2ad52e=_0x1d44c6['map'](_0xc5c951=>{const _0x296164=_0x5e6449;let _0x32d144=_0x1d8219[_0x296164(0x43e)](_0xc5c951['recordId']);return _0x32d144?_0x32d144===_0xc5c951?_0xc5c951:(_0x4824ba=!0x0,_0x32d144):_0xc5c951;});return _0x4824ba?_0x2ad52e:_0x1d44c6;}[_0x6c183(0x237)](_0x2cb009,_0x2f94c6,_0x126f39,_0x151a56){const _0x17ef79=_0x6c183;return!_0x151a56['size']||_0x2f94c6===_0x126f39?!0x1:_0x126f39-_0x2f94c6>0x100||(this[_0x17ef79(0x40c)][_0x17ef79(0x43e)](_0x2cb009)??[])[_0x17ef79(0x185)](_0x5f2675=>_0x5f2675[_0x17ef79(0x4c5)]>_0x2f94c6&&_0x5f2675[_0x17ef79(0x4c5)]<=_0x126f39&&_0x151a56[_0x17ef79(0x34b)](_0x5f2675[_0x17ef79(0x2b0)]));}['_filterSortFieldIds'](_0x5d71c1){const _0x29a4b2=_0x6c183;var _0x2909de,_0x5b1333;let _0x23d0fc=new Set();return _0x5d71c1==null||(_0x2909de=_0x5d71c1[_0x29a4b2(0x2be)])==null||_0x2909de[_0x29a4b2(0x396)][_0x29a4b2(0x2e0)](_0x50916b=>_0x23d0fc[_0x29a4b2(0x2ee)](_0x50916b[_0x29a4b2(0x2b0)])),_0x5d71c1==null||(_0x5b1333=_0x5d71c1[_0x29a4b2(0x277)])==null||_0x5b1333['forEach'](_0x9f3820=>_0x23d0fc[_0x29a4b2(0x2ee)](_0x9f3820['fieldId'])),_0x23d0fc;}['_groupProjectionFieldIds'](_0x13c31d){const _0x3549d3=_0x6c183;var _0x12afae;let _0x4c837f=this[_0x3549d3(0x3b3)](_0x13c31d);return(_0x12afae=_0x13c31d[_0x3549d3(0x1f2)])==null||_0x12afae[_0x3549d3(0x2e0)](_0x89f287=>_0x4c837f[_0x3549d3(0x2ee)](_0x89f287[_0x3549d3(0x2b0)])),_0x4c837f;}[_0x6c183(0x19a)](_0x26b5b9,_0x5d8730,_0x107718){const _0x1d8e91=_0x6c183;let _0x33c84d=_0x5d8730==null?void 0x0:_0x5d8730[_0x1d8e91(0x2be)];if(!(_0x33c84d!=null&&_0x33c84d[_0x1d8e91(0x396)][_0x1d8e91(0x13c)]))return _0x107718;let _0x45a85b=_0x33c84d[_0x1d8e91(0x396)][_0x1d8e91(0x2be)](_0x312696=>!Ii(_0x312696));return _0x45a85b['length']?_0x107718[_0x1d8e91(0x2be)](_0x5f5987=>{const _0x2a9736=_0x1d8e91;if(_0x33c84d[_0x2a9736(0x278)]===_0x6d8219['OR']){for(let _0x20df96 of _0x45a85b){let _0x5db49a=_0x26b5b9['fields'][_0x20df96['fieldId']];if(!_0x5db49a||this['_fieldRegistry'][_0x2a9736(0x43e)](_0x5db49a[_0x2a9736(0x20b)])[_0x2a9736(0x2be)](_0x5f5987[_0x2a9736(0x227)][_0x5db49a['id']],_0x20df96[_0x2a9736(0x220)],_0x20df96[_0x2a9736(0x302)],_0x5db49a))return!0x0;}return!0x1;}for(let _0x52b382 of _0x45a85b){let _0x56d243=_0x26b5b9[_0x2a9736(0x398)][_0x52b382[_0x2a9736(0x2b0)]];if(_0x56d243&&!this[_0x2a9736(0x287)]['get'](_0x56d243[_0x2a9736(0x20b)])[_0x2a9736(0x2be)](_0x5f5987['values'][_0x56d243['id']],_0x52b382[_0x2a9736(0x220)],_0x52b382[_0x2a9736(0x302)],_0x56d243))return!0x1;}return!0x0;}):_0x107718;}[_0x6c183(0x30a)](_0x573fe5,_0x180d52,_0x4da7aa){const _0x493294=_0x6c183;let _0x5add88=(_0x180d52==null?void 0x0:_0x180d52[_0x493294(0x277)])??[];if(!_0x5add88['length'])return _0x4da7aa;let _0x4d54d8=_0x5add88[_0x493294(0x17a)](_0x232f67=>{const _0x19bd14=_0x493294;let _0x551456=_0x573fe5[_0x19bd14(0x398)][_0x232f67[_0x19bd14(0x2b0)]];return _0x551456?[{..._0x232f67,'field':_0x551456}]:[];});return _0x4d54d8['length']?this[_0x493294(0x3e2)](_0x4d54d8)?this[_0x493294(0x230)](_0x4d54d8,_0x4da7aa):[..._0x4da7aa][_0x493294(0x277)]((_0x5531b9,_0x2eea00)=>{const _0x4a29d3=_0x493294;for(let _0x4b75a7 of _0x4d54d8){let _0x4a88ce=_0x4b75a7[_0x4a29d3(0x2d5)],_0x3b4d9a=this['_fieldRegistry'][_0x4a29d3(0x43e)](_0x4a88ce[_0x4a29d3(0x20b)])[_0x4a29d3(0x139)](_0x5531b9[_0x4a29d3(0x227)][_0x4a88ce['id']],_0x2eea00[_0x4a29d3(0x227)][_0x4a88ce['id']],_0x4a88ce);if(_0x3b4d9a!==0x0)return _0x4b75a7[_0x4a29d3(0x12f)]===_0x574bb1[_0x4a29d3(0x35c)]?-_0x3b4d9a:_0x3b4d9a;}return 0x0;}):_0x4da7aa;}[_0x6c183(0x3e2)](_0x50a031){const _0x12e12b=_0x6c183;return _0x50a031[_0x12e12b(0x387)](_0x7113f9=>ai['has'](_0x7113f9['field'][_0x12e12b(0x20b)]));}[_0x6c183(0x230)](_0x52415f,_0x592de4){const _0xb3df92=_0x6c183;return _0x592de4[_0xb3df92(0x141)]((_0x5e3236,_0xa240a9)=>({'row':_0x5e3236,'index':_0xa240a9,'keys':_0x52415f['map'](_0x1f3915=>_0x5e3236[_0xb3df92(0x227)][_0x1f3915[_0xb3df92(0x2b0)]])}))[_0xb3df92(0x277)]((_0x5e186a,_0x42a86b)=>{const _0x5f8785=_0xb3df92;for(let _0x3caeb6=0x0;_0x3caeb6<_0x52415f['length'];_0x3caeb6++){let _0x6ce8ce=Fi(_0x5e186a['keys'][_0x3caeb6],_0x42a86b[_0x5f8785(0x24c)][_0x3caeb6]);if(_0x6ce8ce!==0x0)return _0x52415f[_0x3caeb6][_0x5f8785(0x12f)]===_0x574bb1[_0x5f8785(0x35c)]?-_0x6ce8ce:_0x6ce8ce;}return _0x5e186a['index']-_0x42a86b[_0x5f8785(0x159)];})[_0xb3df92(0x141)](_0x2d3c0a=>_0x2d3c0a[_0xb3df92(0x4b3)]);}[_0x6c183(0x3eb)](_0x4d2720,_0x49e756,_0xbc4380){const _0x29f414=_0x6c183;var _0x17327a;return I(_0x29f414(0x124),()=>{const _0x229046=_0x29f414;var _0x581a4b;if(!((_0x581a4b=_0x49e756[_0x229046(0x1f2)])!=null&&_0x581a4b[_0x229046(0x13c)]))return[];let _0x134425=_0x49e756[_0x229046(0x1f2)][_0x229046(0x2be)](_0x4817f4=>_0x4d2720[_0x229046(0x398)][_0x4817f4['fieldId']]);if(!_0x134425[_0x229046(0x13c)])return[];let _0x1d724e=this[_0x229046(0x3d5)](_0x4d2720['id'],_0x49e756,_0x134425),_0x525741=this[_0x229046(0x42b)](_0x4d2720['id']),_0x468964=this[_0x229046(0x14f)][_0x229046(0x43e)](_0x1d724e);if(_0x468964&&_0x468964[_0x229046(0x2dd)]===this[_0x229046(0x191)]&&_0x468964[_0x229046(0x291)]===this[_0x229046(0x353)](_0x4d2720['id'])){if(_0x468964[_0x229046(0x21d)]===_0x525741&&_0x468964[_0x229046(0x2c5)]===_0xbc4380)return _0x468964[_0x229046(0x345)];if(_0x468964[_0x229046(0x21d)]!==_0x525741&&!this[_0x229046(0x237)](_0x4d2720['id'],_0x468964['cellRevision'],_0x525741,this[_0x229046(0x150)](_0x49e756)))return this[_0x229046(0x14f)][_0x229046(0x49e)](_0x1d724e,{..._0x468964,'rows':_0xbc4380,'cellRevision':_0x525741}),_0x468964[_0x229046(0x345)];}let _0x22f523=new Map();for(let _0x5a7d6f of _0xbc4380){let _0x420685=_0x22f523,_0x9ceeca='';for(let _0x2de4a7=0x0;_0x2de4a7<_0x134425[_0x229046(0x13c)];_0x2de4a7++){let _0x3cd911=_0x134425[_0x2de4a7],_0x32457b=_0x5a7d6f['values'][_0x3cd911['fieldId']],_0x131ea8=ci(_0x32457b),_0x39f596=_0x3cd911[_0x229046(0x2b0)]+'\x00'+_0x131ea8,_0x210c47=_0x9ceeca+'/'+_0x3cd911[_0x229046(0x2b0)]+':'+_0x131ea8,_0x1d1a56=_0x420685[_0x229046(0x43e)](_0x39f596);_0x1d1a56||(_0x1d1a56={'key':_0x131ea8,'value':_0x32457b,'path':_0x210c47,'label':_0x131ea8||_0x229046(0x445),'fieldId':_0x3cd911[_0x229046(0x2b0)],'level':_0x2de4a7,'recordIds':[],'children':new Map()},_0x420685[_0x229046(0x49e)](_0x39f596,_0x1d1a56)),_0x1d1a56[_0x229046(0x397)][_0x229046(0x174)](_0x5a7d6f[_0x229046(0x347)]),_0x420685=_0x1d1a56[_0x229046(0x126)],_0x9ceeca=_0x210c47;}}let _0x51b526=this[_0x229046(0x358)](_0x134425,_0x22f523,0x0);return this[_0x229046(0x14f)][_0x229046(0x49e)](_0x1d724e,{'table':_0x4d2720,'rows':_0xbc4380,'groups':_0x51b526,'globalRevision':this[_0x229046(0x191)],'tableRevision':this[_0x229046(0x353)](_0x4d2720['id']),'cellRevision':_0x525741}),_0x51b526;},{'tableId':_0x4d2720['id'],'viewId':_0x49e756['id'],'viewType':_0x49e756[_0x29f414(0x20b)],'rows':_0xbc4380[_0x29f414(0x13c)],'groupFields':((_0x17327a=_0x49e756[_0x29f414(0x1f2)])==null?void 0x0:_0x17327a['length'])??0x0});}[_0x6c183(0x358)](_0x330f92,_0x3f3138,_0x32c956){const _0x4131e9=_0x6c183;var _0x59b6ff;let _0x189fce=Array[_0x4131e9(0x1d5)](_0x3f3138['values']()),_0x32e90c=(_0x59b6ff=_0x330f92[_0x32c956])==null?void 0x0:_0x59b6ff[_0x4131e9(0x12f)];return _0x32e90c&&_0x189fce[_0x4131e9(0x277)]((_0x5528c6,_0x527102)=>{const _0x15e803=_0x4131e9;let _0x15128f=_0x5528c6[_0x15e803(0x2e1)]['localeCompare'](_0x527102[_0x15e803(0x2e1)]);return _0x32e90c===_0x574bb1[_0x15e803(0x35c)]?-_0x15128f:_0x15128f;}),_0x189fce[_0x4131e9(0x141)](_0x13ef2b=>({'key':_0x13ef2b[_0x4131e9(0x2e1)],'value':_0x13ef2b[_0x4131e9(0x350)],'path':_0x13ef2b[_0x4131e9(0x2c2)],'label':_0x13ef2b['label'],'fieldId':_0x13ef2b['fieldId'],'level':_0x13ef2b[_0x4131e9(0x395)],'recordIds':_0x13ef2b['recordIds'],'children':this[_0x4131e9(0x358)](_0x330f92,_0x13ef2b['children'],_0x32c956+0x1)}));}[_0x6c183(0x271)](_0x3eadc9,_0x3d39d0,_0x3c4c51){const _0x3bc5c0=_0x6c183;let _0x1cc03f=_0x3c4c51??_0x3eadc9[_0x3bc5c0(0x3b2)],_0x4bf5ae=_0x3d39d0[_0x3bc5c0(0x227)][_0x1cc03f];return _0x4bf5ae==null?'':String(_0x4bf5ae);}[_0x6c183(0x373)](_0x4bd508){const _0x50ecf2=_0x6c183;if(Array['isArray'](_0x4bd508))return _0x4bd508[_0x50ecf2(0x141)](String);if(typeof _0x4bd508==_0x50ecf2(0x425)&&_0x4bd508)return[_0x4bd508];}[_0x6c183(0x403)](_0x2e75c3){const _0x4d879d=_0x6c183;return this[_0x4d879d(0x287)][_0x4d879d(0x43e)](_0x2e75c3['type'])[_0x4d879d(0x2fd)](_0x2e75c3);}};si=X([Y(0x0,_0x490adb(mr))],si);function _0x2b5a(_0x2b76f9,_0x55d52f){_0x2b76f9=_0x2b76f9-0x113;const _0x437642=_0x4376();let _0x2b5af1=_0x437642[_0x2b76f9];return _0x2b5af1;}function ci(_0x5eecd4){return _0x5eecd4==null?'':String(_0x5eecd4);}function li(_0x3e6fbc){const _0x244c7a=_0x6c183;return new Map(_0x3e6fbc[_0x244c7a(0x141)]((_0x25c40e,_0x3320f4)=>[_0x25c40e[_0x244c7a(0x347)],_0x3320f4]));}function ui(_0x11d53f){const _0x51e5d6=_0x6c183;return!!(Array[_0x51e5d6(0x431)](_0x11d53f[_0x51e5d6(0x1e7)])&&_0x11d53f[_0x51e5d6(0x375)]&&_0x11d53f['rowId']&&_0x11d53f['colIndex']&&_0x11d53f[_0x51e5d6(0x1fe)]&&_0x11d53f[_0x51e5d6(0x389)]);}function di(_0x489cd0){const _0x24791e=_0x6c183;let _0x750535=(_0x489cd0==null?void 0x0:_0x489cd0[_0x24791e(0x396)]['filter'](_0x2559c6=>!Ii(_0x2559c6)))??[];return!_0x489cd0||!_0x750535[_0x24791e(0x13c)]?null:{'conjunction':_0x489cd0[_0x24791e(0x278)],'conditions':_0x750535['map'](_0x3f02cc=>({'fieldId':_0x3f02cc['fieldId'],'operator':_0x3f02cc[_0x24791e(0x220)],'operand':_0x3f02cc[_0x24791e(0x302)]}))};}function fi(_0x300a6d,_0x128d99){const _0x25719d=_0x6c183;return _0x300a6d[_0x25719d(0x258)]===_0x128d99[_0x25719d(0x258)]&&_0x300a6d[_0x25719d(0x1e7)]===_0x128d99[_0x25719d(0x1e7)]&&_0x300a6d[_0x25719d(0x398)]===_0x128d99['fields']&&_0x300a6d['fieldOrder']===_0x128d99['fieldOrder']&&_0x300a6d[_0x25719d(0x389)]===_0x128d99['cellData']&&_0x300a6d[_0x25719d(0x375)]===_0x128d99['rowIndex']&&_0x300a6d[_0x25719d(0x3d0)]===_0x128d99[_0x25719d(0x3d0)]&&_0x300a6d[_0x25719d(0x390)]===_0x128d99['colIndex']&&_0x300a6d['colId']===_0x128d99['colId'];}function pi(_0x45be31){const _0x18082f=_0x6c183;return _0x45be31!=null&&_0x45be31[_0x18082f(0x13c)]?_0x45be31[_0x18082f(0x141)](_0x36b882=>({'fieldId':_0x36b882[_0x18082f(0x2b0)],'direction':_0x36b882[_0x18082f(0x12f)]})):null;}function mi(_0x537de6){const _0x50addd=_0x6c183;if(typeof _0x537de6!=_0x50addd(0x3d7)||!_0x537de6)return JSON[_0x50addd(0x25f)](_0x537de6)??_0x50addd(0x31f);if(Array['isArray'](_0x537de6))return'['+_0x537de6[_0x50addd(0x141)](mi)[_0x50addd(0x11a)](',')+']';let _0x20eb1f=_0x537de6;return'{'+Object['keys'](_0x20eb1f)[_0x50addd(0x277)]()[_0x50addd(0x141)](_0x25f004=>JSON['stringify'](_0x25f004)+':'+mi(_0x20eb1f[_0x25f004]))[_0x50addd(0x11a)](',')+'}';}function hi(_0x57d296){const _0x3d43ce=_0x6c183;let _0x107a55=Object['values'](_0x57d296)[_0x3d43ce(0x277)]((_0x1020d4,_0x3ea8b8)=>_0x1020d4[_0x3d43ce(0x4a1)][_0x3d43ce(0x37a)](_0x3ea8b8[_0x3d43ce(0x4a1)])),_0xf4ee4f=[];for(let _0xfc5a61 of _0x107a55)_0xf4ee4f[_0x3d43ce(0x174)](_0xfc5a61['id']);return _0xf4ee4f;}function gi(_0x31bda5){const _0x2b4c3d=_0x6c183;return{'weekdays':Array[_0x2b4c3d(0x431)](_0x31bda5==null?void 0x0:_0x31bda5[_0x2b4c3d(0x1ca)])&&_0x31bda5[_0x2b4c3d(0x1ca)][_0x2b4c3d(0x13c)]?[...new Set(_0x31bda5[_0x2b4c3d(0x1ca)][_0x2b4c3d(0x2be)](_0x351398=>Number[_0x2b4c3d(0x406)](_0x351398)&&_0x351398>=0x1&&_0x351398<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x2b4c3d(0x431)](_0x31bda5==null?void 0x0:_0x31bda5[_0x2b4c3d(0x444)])?_0x31bda5[_0x2b4c3d(0x444)][_0x2b4c3d(0x17a)](_0x38d091=>!_0x38d091||!Number[_0x2b4c3d(0x143)](_0x38d091[_0x2b4c3d(0x38f)])?[]:[{'id':String(_0x38d091['id']||_0x2b4c3d(0x487)+_0x38d091[_0x2b4c3d(0x38f)]),'date':Z(Number(_0x38d091[_0x2b4c3d(0x38f)])),'name':String(_0x38d091[_0x2b4c3d(0x2a3)]||_0x2b4c3d(0x3d1)),'type':_0x38d091['type']===_0x2b4c3d(0x3a2)?_0x2b4c3d(0x3a2):_0x2b4c3d(0x190)}]):[]};}function _i(_0x27084a,_0x210df6,_0x5a142b,_0xcc411a){let _0x31227b=xi(_0x27084a,_0x210df6),_0x1fd688=Si(_0x27084a,_0x5a142b),_0x531b7f=vi(_0x27084a,_0x31227b,_0x1fd688,_0xcc411a);return{'scale':_0x27084a,'start':_0x31227b,'end':_0x1fd688,'unitWidth':bi(_0x27084a),'majorHeaders':yi(_0x27084a,_0x31227b,_0x1fd688),'columns':_0x531b7f};}function vi(_0x14b39f,_0x480108,_0x44c827,_0x13d3f6){const _0x32a676=_0x6c183;let _0x5ce2a5=[],_0x52f0d6=_0x480108;for(;_0x52f0d6<_0x44c827;){let _0x529a6a=_0x14b39f===_0x32a676(0x1ea)?ji(_0x52f0d6,0x7):_0x14b39f===_0x32a676(0x361)?Mi(_0x52f0d6,0x1):ji(_0x52f0d6,0x1);_0x5ce2a5[_0x32a676(0x174)]({'id':_0x14b39f+'-'+_0x52f0d6,'label':Ci(_0x14b39f,_0x52f0d6,_0x529a6a),'majorLabel':wi(_0x14b39f,_0x52f0d6),'start':_0x52f0d6,'end':_0x529a6a,'nonWorking':Ei(_0x52f0d6,_0x529a6a,_0x13d3f6)}),_0x52f0d6=_0x529a6a;}return _0x5ce2a5;}function yi(_0x5c7694,_0x5693e2,_0x358f84){const _0x10c92a=_0x6c183;let _0x1cb32c=[],_0x2b266f=_0x5c7694===_0x10c92a(0x361)?Ai(_0x5693e2):ki(_0x5693e2);for(;_0x2b266f<_0x358f84;){let _0x516c76=_0x5c7694===_0x10c92a(0x361)?Ni(_0x2b266f,0x1):Mi(_0x2b266f,0x1);_0x1cb32c[_0x10c92a(0x174)]({'id':_0x10c92a(0x205)+_0x2b266f,'label':_0x5c7694===_0x10c92a(0x361)?String(new Date(_0x2b266f)[_0x10c92a(0x415)]()):Pi(_0x2b266f),'start':_0x2b266f,'end':_0x516c76}),_0x2b266f=_0x516c76;}return _0x1cb32c;}function bi(_0x58a07b){const _0x4cc2da=_0x6c183;switch(_0x58a07b){case _0x4cc2da(0x2de):return 0xac;case'quarter':return 0xac;case _0x4cc2da(0x361):return 0x88;default:return 0x56;}}function xi(_0x53e470,_0x2e46d5){const _0x50cba7=_0x6c183;return _0x53e470===_0x50cba7(0x361)?Ai(_0x2e46d5):_0x53e470===_0x50cba7(0x1ea)?Oi(_0x2e46d5):Z(_0x2e46d5);}function Si(_0x54a2f8,_0x48efb3){const _0x5b0cd8=_0x6c183;return _0x54a2f8===_0x5b0cd8(0x361)?Ni(Ai(_0x48efb3),0x1):_0x54a2f8===_0x5b0cd8(0x1ea)?ji(Oi(_0x48efb3),0x7):ji(Z(_0x48efb3),0x1);}function Ci(_0x2b26e1,_0x4aa76e,_0x43de02){const _0x2eabab=_0x6c183;let _0x402922=new Date(_0x4aa76e);return _0x2b26e1===_0x2eabab(0x1ea)?_0x402922[_0x2eabab(0x3ed)]()+'-'+new Date(_0x43de02-oi)[_0x2eabab(0x3ed)]():_0x2b26e1===_0x2eabab(0x361)?_0x402922[_0x2eabab(0x1bc)](_0x2eabab(0x2da),{'month':_0x2eabab(0x416),'timeZone':_0x2eabab(0x4b2)}):String(_0x402922[_0x2eabab(0x3ed)]());}function wi(_0x5926f1,_0x28fc65){return _0x5926f1==='year'?String(new Date(_0x28fc65)['getUTCFullYear']()):Pi(_0x28fc65);}function Ti(_0x239cff,_0x42f286,_0x3da196){let _0x1f92db=gi(_0x3da196),_0xc82be7=0x0;for(let _0x1ff74c=Z(_0x239cff);_0x1ff74c<=Z(_0x42f286);_0x1ff74c=ji(_0x1ff74c,0x1))Di(_0x1ff74c,_0x1f92db)||_0xc82be7++;return _0xc82be7;}function Ei(_0x3de10a,_0x4472fd,_0x250f70){if(!_0x250f70)return!0x1;let _0x376082=gi(_0x250f70);for(let _0x50c41c=Z(_0x3de10a);_0x50c41c<_0x4472fd;_0x50c41c=ji(_0x50c41c,0x1))if(!Di(_0x50c41c,_0x376082))return!0x1;return!0x0;}function Di(_0x44d86d,_0x1767ee){const _0x6a5a37=_0x6c183;let _0x525529=Z(_0x44d86d),_0x4b9a07=_0x1767ee['exceptions'][_0x6a5a37(0x392)](_0x1a89c4=>Z(_0x1a89c4['date'])===_0x525529);if(_0x4b9a07)return _0x4b9a07[_0x6a5a37(0x20b)]==='off';let _0xced94=new Date(_0x525529)['getUTCDay'](),_0xc5540=_0xced94===0x0?0x7:_0xced94;return!_0x1767ee['weekdays'][_0x6a5a37(0x16a)](_0xc5540);}function Z(_0x3dafd1){const _0x318b1e=_0x6c183;let _0xfae21b=new Date(_0x3dafd1);return Date[_0x318b1e(0x4b2)](_0xfae21b[_0x318b1e(0x415)](),_0xfae21b[_0x318b1e(0x3f8)](),_0xfae21b['getUTCDate']());}function Oi(_0x25b9b4){const _0x27c005=_0x6c183;let _0x316fe9=Z(_0x25b9b4),_0x5f1d47=new Date(_0x316fe9)[_0x27c005(0x19d)]();return ji(_0x316fe9,-(_0x5f1d47===0x0?0x6:_0x5f1d47-0x1));}function ki(_0x12946c){const _0x52745f=_0x6c183;let _0x16362e=new Date(_0x12946c);return Date[_0x52745f(0x4b2)](_0x16362e[_0x52745f(0x415)](),_0x16362e[_0x52745f(0x3f8)](),0x1);}function Ai(_0x4ffdb9){const _0x301d61=_0x6c183;let _0x2ef2c1=new Date(_0x4ffdb9);return Date[_0x301d61(0x4b2)](_0x2ef2c1[_0x301d61(0x415)](),0x0,0x1);}function ji(_0x378fb1,_0x57e240){return _0x378fb1+_0x57e240*oi;}function Mi(_0x4cef62,_0x44196d){const _0x50d057=_0x6c183;let _0x4789a1=new Date(_0x4cef62);return Date[_0x50d057(0x4b2)](_0x4789a1[_0x50d057(0x415)](),_0x4789a1[_0x50d057(0x3f8)]()+_0x44196d,0x1);}function Ni(_0x4f43de,_0x528ed4){const _0x50ddf2=_0x6c183;let _0x1ead8a=new Date(_0x4f43de);return Date[_0x50ddf2(0x4b2)](_0x1ead8a[_0x50ddf2(0x415)]()+_0x528ed4,0x0,0x1);}function Pi(_0x2b13ba){const _0x4aaf69=_0x6c183;let _0x1635e5=new Date(_0x2b13ba);return _0x1635e5[_0x4aaf69(0x1bc)](_0x4aaf69(0x2da),{'month':_0x4aaf69(0x416),'timeZone':'UTC'})+'\x20'+_0x1635e5[_0x4aaf69(0x415)]();}function Fi(_0x34748b,_0x2b358f){const _0x3206f1=_0x6c183;if(_0x34748b==null&&_0x2b358f==null)return 0x0;if(_0x34748b==null)return-0x1;if(_0x2b358f==null)return 0x1;if(typeof _0x34748b=='boolean'||typeof _0x2b358f==_0x3206f1(0x1cb))return Number(_0x34748b===!0x0)-Number(_0x2b358f===!0x0);let _0x199949=Number(_0x34748b),_0x568bc0=Number(_0x2b358f),_0x4b77d1=Number[_0x3206f1(0x143)](_0x199949),_0x246bd5=Number[_0x3206f1(0x143)](_0x568bc0);return _0x4b77d1&&_0x246bd5?_0x199949-_0x568bc0:_0x4b77d1?0x1:_0x246bd5?-0x1:String(_0x34748b)[_0x3206f1(0x37a)](String(_0x2b358f));}function Ii(_0x2a3500){const _0x16083c=_0x6c183;if(_0x2a3500[_0x16083c(0x220)]!=='is'&&_0x2a3500[_0x16083c(0x220)]!=='isNot')return!0x1;let _0x27eeec=_0x2a3500[_0x16083c(0x302)];return _0x27eeec==null?!0x0:typeof _0x27eeec=='string'?_0x27eeec[_0x16083c(0x226)]()==='':Array['isArray'](_0x27eeec)?_0x27eeec['length']===0x0:!0x1;}function Li(_0x7ec840,_0x10f713){const _0x1a2aa5=_0x6c183;var _0x38f11a;let _0x36fcc4=Array[_0x1a2aa5(0x431)]((_0x38f11a=_0x7ec840[_0x1a2aa5(0x2ba)])==null?void 0x0:_0x38f11a[_0x1a2aa5(0x2b3)])?_0x7ec840[_0x1a2aa5(0x2ba)][_0x1a2aa5(0x2b3)]:[];for(let _0x514975 of _0x36fcc4){if(_0x514975==null)continue;if(typeof _0x514975=='string'){if(_0x514975===_0x10f713)return{'id':_0x514975,'name':_0x514975};continue;}let _0x69e4cd=_0x514975,_0x446245=String(_0x69e4cd['id']??_0x69e4cd['name']??''),_0x59812a=String(_0x69e4cd[_0x1a2aa5(0x2a3)]??_0x69e4cd['id']??_0x446245);if(_0x446245===_0x10f713||_0x59812a===_0x10f713)return{'id':_0x446245,'name':_0x59812a,'color':_0x69e4cd[_0x1a2aa5(0x276)]==null?void 0x0:String(_0x69e4cd[_0x1a2aa5(0x276)])};}return null;}let Ri=function(_0x39905f){const _0x26e7c1=_0x6c183;return _0x39905f['CreateView']=_0x26e7c1(0x44d),_0x39905f['DeleteView']=_0x26e7c1(0x145),_0x39905f;}({});const Q={'id':'base.mutation.apply-base-json1','type':_0x22977e[_0x6c183(0x3b0)],'handler'(_0x4ec426,_0x57669f){const _0x26a48b=_0x6c183;let {unitId:_0x15bc5c,op:_0x590b24}=_0x57669f,_0xf1c4ea=_0x4ec426[_0x26a48b(0x43e)](_0x24efe9)[_0x26a48b(0x228)](_0x15bc5c,_0x5c5c99['UNIVER_BASE']);if(!_0xf1c4ea)return!0x1;let _0x515062=_0xf1c4ea[_0x26a48b(0x32f)](),_0x3f9fde=new z(),_0x581681=_0x3f9fde[_0x26a48b(0x311)](_0x590b24),_0x318c81=_0x3f9fde[_0x26a48b(0x4c3)](_0x515062,_0x590b24);return _0xf1c4ea[_0x26a48b(0x2ab)](_0x318c81),zi(_0x318c81,_0x581681,_0x4ec426[_0x26a48b(0x43e)](ii)),!0x0;}};function zi(_0xee9c59,_0x5f3ee1,_0x360099){const _0x516fa0=_0x6c183;let _0x5b41b2=new Set(),_0x3ccd0e=new Set(),_0x4aaba5=new Set();for(let _0x3e287e of _0x5f3ee1){if(_0x3e287e[_0x516fa0(0x28a)]===_0x516fa0(0x37d)&&_0x3e287e[_0x516fa0(0x210)]&&_0x3e287e[_0x516fa0(0x288)]){let _0x18796d=_0x3e287e[_0x516fa0(0x210)]+'\x00'+_0x3e287e[_0x516fa0(0x288)];_0x4aaba5[_0x516fa0(0x34b)](_0x18796d)||(_0x4aaba5['add'](_0x18796d),_0x360099[_0x516fa0(0x132)](_0x3e287e[_0x516fa0(0x210)],_0x3e287e[_0x516fa0(0x288)]));continue;}if(_0x3e287e[_0x516fa0(0x28a)]===_0x516fa0(0x2d5)&&_0x3e287e[_0x516fa0(0x210)]&&_0x3e287e[_0x516fa0(0x2b0)]){let _0x282b27=_0x3e287e[_0x516fa0(0x210)]+'\x00'+_0x3e287e[_0x516fa0(0x2b0)];_0x3ccd0e[_0x516fa0(0x34b)](_0x282b27)||(_0x3ccd0e['add'](_0x282b27),_0x360099[_0x516fa0(0x3d4)](_0x3e287e[_0x516fa0(0x210)],_0x3e287e[_0x516fa0(0x2b0)]));continue;}if(_0x3e287e[_0x516fa0(0x28a)]!==_0x516fa0(0x1de)){_0x360099[_0x516fa0(0x3c7)]();return;}let _0x23b549=Bi(_0xee9c59,_0x3e287e);if(!_0x23b549){_0x360099[_0x516fa0(0x3c7)]();return;}let _0x1b275c=_0x23b549['tableId']+'\x00'+_0x23b549['recordId']+'\x00'+_0x23b549[_0x516fa0(0x2b0)];_0x5b41b2['has'](_0x1b275c)||(_0x5b41b2[_0x516fa0(0x2ee)](_0x1b275c),_0x360099[_0x516fa0(0x1a1)](_0x23b549[_0x516fa0(0x210)],_0x23b549['recordId'],_0x23b549[_0x516fa0(0x2b0)]));}}function Bi(_0x189a20,_0x17eb4d){const _0x5a651e=_0x6c183;var _0x329e9d,_0x20098f;if(!_0x17eb4d[_0x5a651e(0x210)])return null;if(_0x17eb4d[_0x5a651e(0x347)]&&_0x17eb4d[_0x5a651e(0x2b0)])return{'tableId':_0x17eb4d['tableId'],'recordId':_0x17eb4d['recordId'],'fieldId':_0x17eb4d[_0x5a651e(0x2b0)]};if(_0x17eb4d[_0x5a651e(0x4b3)]==null||_0x17eb4d[_0x5a651e(0x229)]==null)return null;let _0x13398d=_0x189a20['tables'][_0x17eb4d[_0x5a651e(0x210)]],_0x4e3599=_0x13398d==null||(_0x329e9d=_0x13398d[_0x5a651e(0x3d0)])==null?void 0x0:_0x329e9d[_0x17eb4d['row']],_0x2a79ff=_0x13398d==null||(_0x20098f=_0x13398d[_0x5a651e(0x1fe)])==null?void 0x0:_0x20098f[_0x17eb4d[_0x5a651e(0x229)]];return!_0x4e3599||!_0x2a79ff?null:{'tableId':_0x17eb4d['tableId'],'recordId':_0x4e3599,'fieldId':_0x2a79ff};}const Vi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x6c183(0x296)](_0x3840b0,_0xef7da6=_0x3840b0['id']){const _0x444be5=_0x6c183;var _0x2943ad;let _0x2778df=((_0x2943ad=_0x3840b0[_0x444be5(0x1e7)])==null?void 0x0:_0x2943ad[_0x444be5(0x13c)])??Object['values'](_0x3840b0[_0x444be5(0x258)])[_0x444be5(0x13c)];return{'sheetId':_0xef7da6,'titleMap':new Map(_0x3840b0['fieldOrder']['map']((_0xec2dc9,_0x1acc3b)=>{const _0x3c6484=_0x444be5;var _0x12f1e4;return[((_0x12f1e4=_0x3840b0[_0x3c6484(0x398)][_0xec2dc9])==null?void 0x0:_0x12f1e4['name'])??_0xec2dc9,_0x1acc3b];})),'range':{'startRow':0x0,'endRow':Math[_0x444be5(0x482)](0x0,_0x2778df-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x3840b0[_0x444be5(0x3b5)][_0x444be5(0x13c)]-0x1)},'showHeader':!0x1};}[_0x6c183(0x3a8)](_0x4157a9,_0xfc3f54){const _0x11a510=_0x6c183;let _0x60ab11=[],_0x15ed14=_0xfc3f54?new Set(_0xfc3f54):null,_0x41763c=_0x160d60(_0x4157a9);return Object['values'](_0x4157a9[_0x11a510(0x298)])['filter'](_0x151a8d=>!_0x15ed14||_0x15ed14['has'](_0x151a8d['id']))[_0x11a510(0x2e0)](_0x44640b=>{const _0x12976e=_0x11a510;let _0x39430e=this[_0x12976e(0x296)](_0x44640b,_0x44640b['id']);_0x60ab11[_0x12976e(0x174)]({'tableId':_0x44640b['id'],'tableName':_0x41763c[_0x12976e(0x43e)](_0x44640b['id']),'reference':_0x39430e});}),_0x60ab11;}[_0x6c183(0x3ab)](_0x1d26c8,_0x3d93f0,_0x59baab={}){const _0x4d4a90=_0x6c183;let _0x55c31d=_0x1d26c8[_0x4d4a90(0x226)]();if(!_0x55c31d)return{'valid':!0x0};if(na(_0x55c31d))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x5cfcf6=_0x59baab[_0x4d4a90(0x17c)]?_0x160d60(_0x59baab[_0x4d4a90(0x17c)]):void 0x0;for(let _0x3cbc5f of ta(_0x55c31d)){let _0x4a7b22=ua(_0x3cbc5f,_0x3d93f0,_0x59baab[_0x4d4a90(0x17c)],_0x5cfcf6);if(!_0x4a7b22[_0x4d4a90(0x4c7)])return{'valid':!0x1,'reason':_0x4d4a90(0x49a)+_0x3cbc5f[_0x4d4a90(0x4bd)]+_0x4d4a90(0x251)};if(!_0x4a7b22[_0x4d4a90(0x2d5)])return{'valid':!0x1,'reason':_0x4d4a90(0x400)+_0x3cbc5f[_0x4d4a90(0x2d0)]+_0x4d4a90(0x2bf)};}return{'valid':!0x0};}[_0x6c183(0x26a)](_0x3c8e31,_0x367876,_0x4a2738={}){const _0x1d789d=_0x6c183;let _0x5d2639=new Set();for(let _0x45a0cf of this['getStructuredDependencies'](_0x3c8e31,_0x367876,_0x4a2738))_0x45a0cf[_0x1d789d(0x210)]===_0x367876['id']&&_0x5d2639[_0x1d789d(0x2ee)](_0x45a0cf['fieldId']);return Array[_0x1d789d(0x1d5)](_0x5d2639);}[_0x6c183(0x2ca)](_0x242502,_0x21501e,_0x380131={}){const _0xc7bdd1=_0x6c183;let _0x5c83b0=new Map(),_0x168013=_0x380131[_0xc7bdd1(0x17c)]?_0x160d60(_0x380131[_0xc7bdd1(0x17c)]):void 0x0;for(let _0x355593 of ta(_0x242502)){let _0xeda712=ua(_0x355593,_0x21501e,_0x380131[_0xc7bdd1(0x17c)],_0x168013);if(!_0xeda712[_0xc7bdd1(0x4c7)]||!_0xeda712['field'])continue;let _0xdb93c7=_0xeda712['table']['id']+'\x1f'+_0xeda712[_0xc7bdd1(0x2d5)]['id'];_0x5c83b0['set'](_0xdb93c7,{'tableId':_0xeda712['table']['id'],'fieldId':_0xeda712[_0xc7bdd1(0x2d5)]['id']});}return Array[_0xc7bdd1(0x1d5)](_0x5c83b0[_0xc7bdd1(0x227)]());}};function Zi(_0x42f92c,_0x14037f){const _0x330cef=_0x6c183;var _0x2454a1;let _0x2a2320=[],_0x2caf98=(_0x2454a1=_0x14037f[_0x330cef(0x42e)])==null?void 0x0:_0x2454a1[_0x42f92c['id']];return _0x2caf98&&Object['entries'](_0x2caf98)['forEach'](([_0x4b91be,_0x3fb16])=>{const _0x545cde=_0x330cef;let _0x3f3e7f=_0x42f92c[_0x545cde(0x298)][_0x4b91be];if(!_0x3f3e7f||!_0x3fb16)return;let _0x3d67b7=L(_0x3f3e7f),_0x17f303=[];new _0x47103a(_0x3fb16)['forValue']((_0x4d7531,_0x9ca94e,_0x580e8f)=>{const _0x1bb266=_0x545cde;let _0x530eb8=Qi(_0x3d67b7,_0x4d7531,_0x9ca94e,_0x580e8f);_0x530eb8&&_0x17f303[_0x1bb266(0x174)](_0x530eb8);}),_0x17f303[_0x545cde(0x13c)]&&_0x2a2320[_0x545cde(0x174)]({'unitId':_0x42f92c['id'],'tableId':_0x4b91be,'patches':_0x17f303});}),_0x2a2320;}function Qi(_0x34610b,_0x5b1a69,_0x2ce64c,_0x43ca6e){const _0x424899=_0x6c183;var _0x168363,_0x2d2020,_0x55862a;let _0x5342c4=(_0x168363=_0x34610b[_0x424899(0x3d0)])==null?void 0x0:_0x168363[_0x5b1a69],_0x325184=(_0x2d2020=_0x34610b['colId'])==null?void 0x0:_0x2d2020[_0x2ce64c];if(!_0x5342c4||!_0x34610b['records'][_0x5342c4]||!_0x325184)return null;let _0x5292d2=_0x34610b[_0x424899(0x398)][_0x325184];if(!_0x5292d2||_0x5292d2[_0x424899(0x20b)]!=='formula')return null;let _0x5e18a7=String(((_0x55862a=_0x5292d2[_0x424899(0x2ba)])==null?void 0x0:_0x55862a[_0x424899(0x3bc)])??'')[_0x424899(0x226)](),_0x3f57d0=(_0x43ca6e==null?void 0x0:_0x43ca6e['v'])??null,_0x12c475={'v':_0x3f57d0,'t':ea(_0x3f57d0),..._0x5b1a69===0x0&&_0x5e18a7?{'f':_0x5e18a7}:{},'si':_0x5292d2['id']};return $i(vt(_0x34610b,_0x5342c4,_0x325184),_0x12c475)?null:{'row':_0x5b1a69,'col':_0x2ce64c,'value':_0x12c475};}function $i(_0x54801c,_0xb16859){return _0x54801c!=null&&Object['is'](_0x54801c['v']??null,_0xb16859['v']??null)&&_0x54801c['t']===_0xb16859['t']&&_0x54801c['f']===_0xb16859['f']&&_0x54801c['si']===_0xb16859['si'];}function ea(_0x1e4b48){const _0x2a9117=_0x6c183;return typeof _0x1e4b48=='number'?_0x4dac72[_0x2a9117(0x324)]:typeof _0x1e4b48==_0x2a9117(0x1cb)?_0x4dac72[_0x2a9117(0x1b8)]:typeof _0x1e4b48=='string'?_0x4dac72[_0x2a9117(0x18a)]:null;}function ta(_0x173459){const _0x3c986d=_0x6c183;let _0x212359=ia(_0x173459,()=>''),_0x2bd9df=new Map(),_0x53b957=_0x56c7b0=>{const _0xa58719=_0x2b5a;_0x2bd9df[_0xa58719(0x49e)]((_0x56c7b0[_0xa58719(0x4bd)]??'')+'\x1f'+_0x56c7b0['fieldName'],_0x56c7b0);};for(let _0x3f52a9 of _0x212359[_0x3c986d(0x14a)](Ui))_0x53b957({'fieldName':_0x3f52a9[0x1],'scope':'this-row'});_0x212359=_0x212359[_0x3c986d(0x14e)](Wi,(_0x58cbfa,_0x36b73e,_0x522ec5,_0x587c69)=>(_0x53b957({'tableName':_0x36b73e,'fieldName':_0x587c69,'scope':_0x522ec5['toLowerCase']()===_0x3c986d(0x1c3)?_0x3c986d(0x1c3):_0x3c986d(0x457)}),'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](Gi,(_0x4e007a,_0x42ba1f,_0x28d5aa)=>(_0x53b957({'tableName':_0x42ba1f,'fieldName':_0x28d5aa,'scope':_0x3c986d(0x457)}),'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](qi,(_0xd4f9eb,_0x24fdb1,_0x4a9bc1,_0x15b69b)=>(_0x53b957({'fieldName':_0x15b69b,'scope':_0x4a9bc1[_0x3c986d(0x432)]()===_0x3c986d(0x1c3)?_0x3c986d(0x1c3):'this-row'}),_0x24fdb1+'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](Ji,(_0x18e422,_0x1e4f7c,_0x33f8ac)=>(_0x53b957({'fieldName':_0x33f8ac,'scope':_0x3c986d(0x457)}),_0x1e4f7c+'\x20'));for(let _0x2e8968 of _0x212359['matchAll'](Ki))_0x53b957({'tableName':_0x2e8968[0x1],'fieldName':_0x2e8968[0x2]});for(let _0xb0612 of _0x212359[_0x3c986d(0x14a)](Yi))_0x53b957({'fieldName':_0xb0612[0x2],'scope':_0x3c986d(0x457)});return Array[_0x3c986d(0x1d5)](_0x2bd9df[_0x3c986d(0x227)]());}function na(_0x4b62b9){const _0x1634f7=_0x6c183;let _0x37f759=ia(_0x4b62b9,()=>'\x20')[_0x1634f7(0x14e)](Ui,'\x20')['replace'](Wi,'\x20')['replace'](Gi,'\x20')['replace'](qi,'$1\x20')[_0x1634f7(0x14e)](Ji,_0x1634f7(0x351))[_0x1634f7(0x14e)](Ki,'\x20')['replace'](Yi,_0x1634f7(0x351));return Vi[_0x1634f7(0x215)](_0x37f759);}function ra(_0x8601fa,_0x29dc63){return ca(oa(_0x8601fa,_0x29dc63),_0x29dc63);}function ia(_0x203208,_0x110e35){return aa(ra(_0x203208,_0x110e35),_0x110e35);}function aa(_0x1c820d,_0xfd49df){const _0x2f343a=_0x6c183;return _0x1c820d[_0x2f343a(0x14e)](/"(?:""|[^"])*"/g,_0xfd49df);}function oa(_0x111088,_0x385eb8){const _0xcaff5e=_0x6c183;return Hi[_0xcaff5e(0x2b5)]=0x0,_0x111088[_0xcaff5e(0x14e)](Hi,(_0x296c8e,_0x508d34)=>la(_0x111088,_0x508d34)?_0x296c8e:_0x385eb8(_0x296c8e));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1b1ce4,_0x54e8fe){const _0x40c8ae=_0x6c183;let _0x47d6b0=[];for(sa[_0x40c8ae(0x2b5)]=0x0;;){let _0x101f90=sa[_0x40c8ae(0x27b)](_0x1b1ce4);if(_0x101f90==null)break;if(la(_0x1b1ce4,_0x101f90[_0x40c8ae(0x159)]))continue;let _0x5ae621=sa[_0x40c8ae(0x2b5)]-0x1,_0x5d3a2e=0x0;for(let _0x23fa07=_0x5ae621;_0x23fa07<_0x1b1ce4[_0x40c8ae(0x13c)];_0x23fa07++)if(_0x1b1ce4[_0x23fa07]==='['&&_0x5d3a2e++,_0x1b1ce4[_0x23fa07]===']'&&(_0x5d3a2e--,_0x5d3a2e===0x0)){_0x47d6b0[_0x40c8ae(0x174)]({'start':_0x101f90[_0x40c8ae(0x159)],'end':_0x23fa07+0x1}),sa[_0x40c8ae(0x2b5)]=_0x23fa07+0x1;break;}}if(_0x47d6b0['length']===0x0)return _0x1b1ce4;let _0x36bcbd='',_0x27172c=0x0;for(let _0x406b10 of _0x47d6b0)_0x36bcbd+=_0x1b1ce4[_0x40c8ae(0x12c)](_0x27172c,_0x406b10[_0x40c8ae(0x41a)]),_0x36bcbd+=_0x54e8fe(_0x1b1ce4['slice'](_0x406b10[_0x40c8ae(0x41a)],_0x406b10[_0x40c8ae(0x439)])),_0x27172c=_0x406b10[_0x40c8ae(0x439)];return _0x36bcbd+_0x1b1ce4[_0x40c8ae(0x12c)](_0x27172c);}function la(_0x51a254,_0x4693ad){let _0x3d356d=!0x1;for(let _0x530ea=0x0;_0x530ea<_0x4693ad;_0x530ea++)if(_0x51a254[_0x530ea]==='\x22'){if(_0x3d356d&&_0x51a254[_0x530ea+0x1]==='\x22'){_0x530ea++;continue;}_0x3d356d=!_0x3d356d;}return _0x3d356d;}function ua(_0x1f6a55,_0xaee627,_0xaec2d1,_0x496595){const _0x30417a=_0x6c183;let _0x41bfb6=da(_0x1f6a55[_0x30417a(0x4bd)],_0xaee627,_0xaec2d1,_0x496595);return{'table':_0x41bfb6,'field':_0x41bfb6?Object[_0x30417a(0x227)](_0x41bfb6[_0x30417a(0x398)])[_0x30417a(0x392)](_0x45b3d3=>_0x45b3d3['name']===_0x1f6a55['fieldName']):void 0x0};}function da(_0x3894a7,_0x12d883,_0x2dd7cf,_0x2a3263){const _0x226e35=_0x6c183;if(!_0x3894a7)return _0x12d883;if(!_0x2dd7cf){var _0x492212;let _0x2dbe43=_0x3894a7[_0x226e35(0x432)]();return _0x2dbe43===_0x12d883['id'][_0x226e35(0x432)]()||_0x2dbe43===_0x12d883[_0x226e35(0x2a3)][_0x226e35(0x432)]()||_0x2dbe43===((_0x492212=_0x12d883[_0x226e35(0x423)])==null?void 0x0:_0x492212[_0x226e35(0x432)]())?_0x12d883:void 0x0;}let _0x1561fc=_0x3894a7[_0x226e35(0x432)](),_0x146441=_0x2a3263??_0x160d60(_0x2dd7cf),_0x170d94=Object[_0x226e35(0x227)](_0x2dd7cf[_0x226e35(0x298)])[_0x226e35(0x2be)](_0x673145=>{const _0x579351=_0x226e35;var _0x3cf17b;return _0x673145['id'][_0x579351(0x432)]()===_0x1561fc||_0x673145[_0x579351(0x2a3)]['toLowerCase']()===_0x1561fc||((_0x3cf17b=_0x146441[_0x579351(0x43e)](_0x673145['id']))==null?void 0x0:_0x3cf17b['toLowerCase']())===_0x1561fc||fa(_0x673145['id'])[_0x579351(0x432)]()===_0x1561fc;});return _0x170d94[_0x226e35(0x13c)]===0x1?_0x170d94[0x0]:void 0x0;}function fa(_0x5480ba){const _0x562aab=_0x6c183;return _0x562aab(0x3f2)+Array['from'](_0x5480ba,_0x37d529=>{const _0x199108=_0x562aab;var _0x5f266d;return/[A-Za-z0-9]/[_0x199108(0x215)](_0x37d529)?_0x37d529:'_x'+(((_0x5f266d=_0x37d529[_0x199108(0x309)](0x0))==null?void 0x0:_0x5f266d[_0x199108(0x33f)](0x10))??'0')+'_';})[_0x562aab(0x11a)]('');}const pa=new Xi();function ma(_0x482dbd,_0x51bfb4,_0x2835cd){const _0x10d4d6=_0x6c183;var _0x43feac;if(_0x2835cd[_0x10d4d6(0x20b)]!==_0x3a044b[_0x10d4d6(0x4a0)])return!0x0;let _0x45ad90=String(((_0x43feac=_0x2835cd[_0x10d4d6(0x2ba)])==null?void 0x0:_0x43feac[_0x10d4d6(0x3bc)])??''),_0x2d2c91=_0x482dbd[_0x10d4d6(0x32f)]();return pa[_0x10d4d6(0x3ab)](_0x45ad90,_0x2d2c91['tables'][_0x51bfb4],{'snapshot':_0x2d2c91})[_0x10d4d6(0x26e)];}function $(_0x334943,_0x1b6aea,_0x4553c3){const _0xd80796=_0x6c183;let _0x214983=_0x334943[_0xd80796(0x32f)]()[_0xd80796(0x298)][_0x1b6aea];if(!_0x214983)return!0x1;let {viewIds:_0x45f3b3,fieldIds:_0x271555,recordIds:_0x5adec9}=_0x4553c3||{};if(_0x45f3b3){for(let _0x818299 of _0x45f3b3)if(!_0x214983['views'][_0x818299])return!0x1;}if(_0x271555){for(let _0x38cfd7 of _0x271555)if(!_0x214983[_0xd80796(0x398)][_0x38cfd7])return!0x1;}if(_0x5adec9){for(let _0x37b610 of _0x5adec9)if(!_0x214983[_0xd80796(0x258)][_0x37b610])return!0x1;}return!0x0;}function ha(_0x18291e,_0x5be5ed,_0x3caca5){const _0x376ed4=_0x6c183;if(_0x3caca5['id']===_0x5a35e2||_0x3caca5[_0x376ed4(0x20b)]===_0x3a044b[_0x376ed4(0x22f)]||_0x771c24(_0x3caca5[_0x376ed4(0x2a3)])||!ma(_0x18291e,_0x5be5ed,_0x3caca5))return!0x1;let _0x144bc0=_0x18291e[_0x376ed4(0x32f)]();if(!Be(_0x144bc0,_0x3caca5)[_0x376ed4(0x26e)])return!0x1;if(_0x3caca5[_0x376ed4(0x20b)]!==_0x3a044b[_0x376ed4(0x3ac)])return!0x0;let _0x999a8e=N(_0x3caca5);if(!_0x999a8e)return!0x1;if(_0x999a8e['relationRole']===void 0x0)return!0x0;if(_0x999a8e[_0x376ed4(0x1d4)]!==_0x4c2417[_0x376ed4(0x2e7)]||_0x999a8e[_0x376ed4(0x334)]!==_0x5be5ed||_0x999a8e[_0x376ed4(0x376)]!==!0x1)return!0x1;let _0x31f930=_0x144bc0['tables'][_0x5be5ed];return!Object[_0x376ed4(0x227)](_0x31f930['fields'])[_0x376ed4(0x185)](_0x276ba7=>{const _0xac0338=_0x376ed4;var _0x25a831;return _0x276ba7['id']!==_0x3caca5['id']&&_0x276ba7[_0xac0338(0x20b)]===_0x3a044b[_0xac0338(0x3ac)]&&((_0x25a831=N(_0x276ba7))==null?void 0x0:_0x25a831[_0xac0338(0x1d4)])===_0x4c2417[_0xac0338(0x2e7)];});}function ga(_0xfdb6c8,_0x42dba9,_0xd8e3bf,_0x16e618){const _0x1e19ae=_0x6c183;var _0x51ec14;let _0x2c7046=_0xfdb6c8[_0x1e19ae(0x32f)](),_0x5b25ff=(_0x51ec14=_0x2c7046[_0x1e19ae(0x298)][_0x42dba9])==null?void 0x0:_0x51ec14[_0x1e19ae(0x398)][_0xd8e3bf];return!_0x5b25ff||_0x5b25ff['id']===_0x5a35e2||_0x5b25ff[_0x1e19ae(0x20b)]===_0x3a044b[_0x1e19ae(0x22f)]?!0x1:_0x5b25ff[_0x1e19ae(0x20b)]!==_0x3a044b[_0x1e19ae(0x3ac)]||Ve(_0x2c7046,_0x5b25ff,ya(_0x16e618))[_0x1e19ae(0x26e)];}function _a(_0x2757e7,_0x5dc684,_0x4d41d6){const _0x108abe=_0x6c183;let _0x5abc6b=_0x2757e7['getSnapshot']()['tables'][_0x5dc684];return!_0x5abc6b||!_0x7f3dc3(_0x4d41d6['id'])||_0x5abc6b[_0x108abe(0x258)][_0x4d41d6['id']]||Object[_0x108abe(0x246)][_0x108abe(0x48a)]['call'](_0x4d41d6['values'],_0x5a35e2)&&_0x4d41d6[_0x108abe(0x227)][_0x5a35e2]!==_0x4d41d6['id']?!0x1:Object['entries'](_0x4d41d6[_0x108abe(0x227)])[_0x108abe(0x387)](([_0x38c6df,_0x582c7a])=>_0x38c6df===_0x5a35e2||ga(_0x2757e7,_0x5dc684,_0x38c6df,_0x582c7a));}function va(_0x1f6261){return{..._0x1f6261,'values':{..._0x1f6261['values'],[_0x5a35e2]:_0x1f6261['id']}};}function ya(_0x5b22dc){const _0x7d4682=_0x6c183;if(_0x5b22dc&&typeof _0x5b22dc==_0x7d4682(0x3d7)&&!Array[_0x7d4682(0x431)](_0x5b22dc)&&'v'in _0x5b22dc){let _0x26f0f1=_0x5b22dc['v'];return _0x26f0f1===void 0x0?null:_0x26f0f1;}return _0x5b22dc;}function ba(_0x56a44e,_0x11dcf0,_0x2da80b,_0xea6927){const _0x1009ac=_0x6c183;let _0x5a7bd0=_0x56a44e[_0x1009ac(0x32f)]()[_0x1009ac(0x298)][_0x11dcf0];if(!_0x5a7bd0)return null;let _0x34a6d6=qe(_0x5a7bd0),_0x1dd06b=_0x34a6d6??Je(_0x5a7bd0),_0x276149=_0x2da80b['some'](_0x526534=>Object['prototype'][_0x1009ac(0x48a)][_0x1009ac(0x43b)](_0x526534['values'],_0x1dd06b)),_0x52c19c=_0x34a6d6?_0x5a7bd0[_0x1009ac(0x398)][_0x34a6d6]:_0x276149?Ye(_0x5a7bd0,_0x1dd06b,_0xea6927):null,_0x3abe60=[];for(let _0x593ea0 of _0x2da80b){let _0x136fe6=_0x593ea0[_0x1009ac(0x227)][_0x1dd06b],_0x1ca83e=_0x52c19c!==null&&Object['prototype'][_0x1009ac(0x48a)]['call'](_0x593ea0[_0x1009ac(0x227)],_0x1dd06b),_0x384304=ya(_0x136fe6),_0x3ee6ae=null;if(_0x1ca83e){if(typeof _0x384304!=_0x1009ac(0x425)||!ze(_0x384304,!0x1)[_0x1009ac(0x26e)])return null;_0x3ee6ae=_0x384304;}let _0x2ac597={};if(Object[_0x1009ac(0x279)](_0x593ea0[_0x1009ac(0x227)])[_0x1009ac(0x2e0)](([_0x4303d4,_0x1b5d78])=>{(!_0x1ca83e||_0x4303d4!==_0x1dd06b)&&(_0x2ac597[_0x4303d4]=_0x1b5d78);}),!_a(_0x56a44e,_0x11dcf0,{..._0x593ea0,'values':_0x2ac597}))return null;let _0x550068={..._0x593ea0[_0x1009ac(0x227)]};_0x3ee6ae!==null&&(_0x550068[_0x1dd06b]=_0x3ee6ae),_0x3abe60['push'](va({..._0x593ea0,'values':_0x550068}));}return{'records':_0x3abe60,'hierarchyFieldToMaterialize':_0x34a6d6?null:_0x52c19c,'hierarchyChanges':Qe(_0x5a7bd0,_0x3abe60)};}const xa={'id':_0x6c183(0x2fa),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x12ae40,_0x4ef96d){const _0x20e18f=_0x6c183;if(!_0x4ef96d)return!0x1;let _0x1d09a1=_0x12ae40[_0x20e18f(0x43e)](_0x24efe9),{unitId:_0x1659e8,tableId:_0x3c3ff3,records:_0x49087e}=_0x4ef96d,_0x1ed92a=_0x1d09a1[_0x20e18f(0x228)](_0x1659e8,_0x5c5c99['UNIVER_BASE']),_0x4107f8=_0x49087e['map'](_0x7f5012=>_0x7f5012['id']);if(!_0x1ed92a||!$(_0x1ed92a,_0x3c3ff3)||new Set(_0x4107f8)[_0x20e18f(0x15b)]!==_0x4107f8[_0x20e18f(0x13c)])return!0x1;let _0x36d980=_0x12ae40['get'](_0x5daeb6),_0x1a17e8=_0x12ae40[_0x20e18f(0x43e)](_0x5b9522),_0x6bec=_0x12ae40['get'](Kr),_0x463621=_0x1ed92a[_0x20e18f(0x32f)](),_0x589a96=ba(_0x1ed92a,_0x3c3ff3,_0x49087e);if(!_0x589a96)return!0x1;let {records:_0x304c03,hierarchyChanges:_0x149217,hierarchyFieldToMaterialize:_0x2f4a38}=_0x589a96,_0x66717=_0x2f4a38?_0x6bec[_0x20e18f(0x4b7)](_0x1ed92a,_0x3c3ff3,_0x2f4a38,_0x463621[_0x20e18f(0x298)][_0x3c3ff3][_0x20e18f(0x3b5)][_0x20e18f(0x13c)]):null,_0x1c25a0=_0x6bec[_0x20e18f(0x3ec)](_0x1ed92a,_0x3c3ff3,_0x304c03),_0x35b22a=R([..._0x66717?[_0x66717]:[],_0x1c25a0]),_0x4f308a=new z()[_0x20e18f(0x2d8)](_0x463621,_0x35b22a),_0x1fbbb9={'unitId':_0x1659e8,'op':_0x35b22a,'hierarchyChanges':_0x149217['length']?_0x149217:void 0x0,'source':_0x149217[_0x20e18f(0x13c)]?_0x4ef96d[_0x20e18f(0x495)]??'ui':void 0x0},_0x25f9cf={..._0x1fbbb9,'source':_0x149217[_0x20e18f(0x13c)]?_0x20e18f(0x32a):void 0x0},_0x31cf42={'unitId':_0x1659e8,'op':_0x4f308a,'hierarchyChanges':_0x149217[_0x20e18f(0x13c)]?_0x149217[_0x20e18f(0x141)](_0xc17471=>({..._0xc17471,'oldParentRecordId':_0xc17471[_0x20e18f(0x474)],'parentRecordId':null})):void 0x0,'source':_0x149217[_0x20e18f(0x13c)]?_0x20e18f(0x23c):void 0x0};return _0x36d980[_0x20e18f(0x163)](Q['id'],_0x1fbbb9)?(_0x1d09a1[_0x20e18f(0x243)](_0x1659e8),_0x1a17e8['pushUndoRedo']({'unitID':_0x1659e8,'undoMutations':[{'id':Q['id'],'params':_0x31cf42}],'redoMutations':[{'id':Q['id'],'params':_0x25f9cf}]}),!0x0):!0x1;}},Sa={'id':_0x6c183(0x377),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3200aa,_0x48794b)=>{const _0x443a80=_0x6c183;if(!_0x48794b)return!0x1;let _0x47cc2b=_0x3200aa[_0x443a80(0x43e)](_0x24efe9),{unitId:_0x2f2fad,tableId:_0x2b0918,recordIds:_0x324ea2}=_0x48794b,_0x377798=_0x47cc2b[_0x443a80(0x228)](_0x2f2fad,_0x5c5c99[_0x443a80(0x36b)]);if(!_0x377798||!$(_0x377798,_0x2b0918,{'recordIds':_0x324ea2}))return!0x1;let _0x1f6dff=_0x3200aa[_0x443a80(0x43e)](_0x5daeb6),_0x1459dd=_0x3200aa['get'](_0x5b9522),_0x1f91f1=_0x377798[_0x443a80(0x32f)](),_0x2f5748=et(_0x1f91f1[_0x443a80(0x298)][_0x2b0918],_0x324ea2),_0x3069ab=new W(),_0x721fba=new z(),_0x3580b2=_0x3069ab[_0x443a80(0x158)](_0x1f91f1,_0x2b0918,_0x324ea2),_0x4a0929=_0x721fba['applyOp'](_0x1f91f1,_0x3580b2),_0x10a9e9=_0x3069ab['createDeleteRecordsUndoOp'](_0x1f91f1,_0x4a0929,_0x2b0918,_0x324ea2),_0x10c0e0={'unitId':_0x2f2fad,'op':_0x3580b2,'hierarchyChanges':_0x2f5748,'source':_0x48794b['source']??'ui'},_0x4de18c={..._0x10c0e0,'source':_0x443a80(0x32a)},_0x13d4bf={'unitId':_0x2f2fad,'op':_0x10a9e9,'hierarchyChanges':_0x2f5748[_0x443a80(0x141)](_0x18c676=>({..._0x18c676,'oldParentRecordId':_0x18c676[_0x443a80(0x474)],'parentRecordId':_0x18c676[_0x443a80(0x2d1)]})),'source':_0x443a80(0x23c)};return _0x1f6dff['syncExecuteCommand'](Q['id'],_0x10c0e0)?(_0x47cc2b[_0x443a80(0x243)](_0x2f2fad),_0x1459dd[_0x443a80(0x47c)]({'unitID':_0x2f2fad,'undoMutations':[{'id':Q['id'],'params':_0x13d4bf}],'redoMutations':[{'id':Q['id'],'params':_0x4de18c}]}),!0x0):!0x1;}},Ca={'id':_0x6c183(0x3e1),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0xb63fcc,_0x1f82ff)=>{const _0x53aaee=_0x6c183;if(!_0x1f82ff)return!0x1;let _0x3f5546=_0xb63fcc[_0x53aaee(0x43e)](_0x24efe9),{unitId:_0x527715,tableId:_0x10b106,fieldId:_0x5184fd,input:_0xbd6687}=_0x1f82ff,_0x320e55=_0x3f5546[_0x53aaee(0x228)](_0x527715,_0x5c5c99[_0x53aaee(0x36b)]);if(!_0x320e55||_0x5184fd===_0x5a35e2||!$(_0x320e55,_0x10b106,{'fieldIds':[_0x5184fd]}))return!0x1;let _0x3afb8e=_0xb63fcc[_0x53aaee(0x43e)](_0x5daeb6),_0x12c472=_0xb63fcc[_0x53aaee(0x43e)](_0x5b9522),_0x1ed5d1=_0x320e55[_0x53aaee(0x32f)]();if(!ha(_0x320e55,_0x10b106,{..._0x1ed5d1[_0x53aaee(0x298)][_0x10b106][_0x53aaee(0x398)][_0x5184fd],..._0xbd6687}))return!0x1;let _0x4d152b=new W()[_0x53aaee(0x3e5)](_0x1ed5d1,_0x10b106,_0x5184fd,_0xbd6687),_0x3abff7=new z()[_0x53aaee(0x2d8)](_0x1ed5d1,_0x4d152b),_0x3b7752={'unitId':_0x527715,'op':_0x4d152b},_0x1849c5={'unitId':_0x527715,'op':_0x3abff7};return _0x3afb8e['syncExecuteCommand'](Q['id'],_0x3b7752)?(_0x3f5546['focusUnit'](_0x527715),_0x12c472[_0x53aaee(0x47c)]({'unitID':_0x527715,'undoMutations':[{'id':Q['id'],'params':_0x1849c5}],'redoMutations':[{'id':Q['id'],'params':_0x3b7752}]}),!0x0):!0x1;}},wa={'id':'base.command.create-base-child-record','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x597837,_0x4b5303){const _0x1ff416=_0x6c183;var _0x7da9cb;if(!_0x4b5303)return!0x1;let {unitId:_0x577981,tableId:_0x596db9,parentRecordId:_0x4a9596}=_0x4b5303,_0x1574eb=_0x597837[_0x1ff416(0x43e)](_0x24efe9),_0x355bf5=_0x1574eb[_0x1ff416(0x228)](_0x577981,_0x5c5c99[_0x1ff416(0x36b)]);if(!_0x355bf5||!$(_0x355bf5,_0x596db9,{'recordIds':[_0x4a9596]}))throw new P('missingRecord');let _0x1e4e54=_0x355bf5[_0x1ff416(0x32f)](),_0x31ba02=_0x1e4e54[_0x1ff416(0x298)][_0x596db9],_0x354f35=qe(_0x31ba02),_0x31f28f=_0x354f35??_0x4b5303['fieldId']??Je(_0x31ba02);if(_0x354f35&&_0x4b5303[_0x1ff416(0x2b0)]&&_0x4b5303['fieldId']!==_0x354f35||_0x31ba02[_0x1ff416(0x398)][_0x31f28f]&&!F(_0x31ba02,_0x31f28f))throw new P(_0x1ff416(0x48d));if((tt(_0x31ba02,_0x31f28f)[_0x1ff416(0x273)][_0x1ff416(0x43e)](_0x4a9596)??0x0)+0x1>=0x5)throw new P(_0x1ff416(0x138));if(!_a(_0x355bf5,_0x596db9,_0x4b5303[_0x1ff416(0x493)]))return!0x1;let _0x31ee75=va({..._0x4b5303['record'],'values':{..._0x4b5303[_0x1ff416(0x493)][_0x1ff416(0x227)],[_0x31f28f]:Re([_0x4a9596])}}),_0x1c7373=_0x597837[_0x1ff416(0x43e)](Kr),_0xa1dfc2=new W(),_0x2cb5fb=_0x31ba02[_0x1ff416(0x398)][_0x31f28f],_0x39d798=_0x2cb5fb?((_0x7da9cb=N(_0x2cb5fb))==null?void 0x0:_0x7da9cb[_0x1ff416(0x1d4)])===_0x4c2417[_0x1ff416(0x2e7)]?null:_0xa1dfc2[_0x1ff416(0x13b)](_0x1e4e54,_0x596db9,_0x31f28f,{'config':{..._0x2cb5fb[_0x1ff416(0x2ba)],'relationRole':_0x4c2417[_0x1ff416(0x2e7)]}}):_0x1c7373[_0x1ff416(0x4b7)](_0x355bf5,_0x596db9,Ye(_0x31ba02,_0x31f28f,_0x4b5303[_0x1ff416(0x1c6)]),_0x31ba02[_0x1ff416(0x3b5)]['length']),_0x5e8167=_0x1c7373[_0x1ff416(0x467)](_0x355bf5,_0x596db9,_0x31ee75),_0x8ba6e0=R([..._0x39d798?[_0x39d798]:[],_0x5e8167]),_0x15eb80=new z()[_0x1ff416(0x2d8)](_0x1e4e54,_0x8ba6e0),_0x2d04c6={'tableId':_0x596db9,'fieldId':_0x31f28f,'recordId':_0x31ee75['id'],'oldParentRecordId':null,'parentRecordId':_0x4a9596},_0x175d11={'unitId':_0x577981,'op':_0x8ba6e0,'trigger':wa['id'],'hierarchyChanges':[_0x2d04c6],'source':_0x4b5303[_0x1ff416(0x495)]??'ui'},_0x4aa822={..._0x175d11,'source':_0x1ff416(0x32a)},_0x8469d4={'unitId':_0x577981,'op':_0x15eb80,'trigger':wa['id'],'hierarchyChanges':[{..._0x2d04c6,'oldParentRecordId':_0x4a9596,'parentRecordId':null}],'source':'undo'};return _0x597837[_0x1ff416(0x43e)](_0x5daeb6)[_0x1ff416(0x163)](Q['id'],_0x175d11)?(_0x1574eb[_0x1ff416(0x243)](_0x577981),_0x597837[_0x1ff416(0x43e)](_0x5b9522)[_0x1ff416(0x47c)]({'unitID':_0x577981,'undoMutations':[{'id':Q['id'],'params':_0x8469d4}],'redoMutations':[{'id':Q['id'],'params':_0x4aa822}]}),!0x0):!0x1;}},Ta={'id':_0x6c183(0x4ae),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x1a0563,_0xe78845){const _0x407289=_0x6c183;if(!_0xe78845)return!0x1;let _0xce1cdc=_0x1a0563[_0x407289(0x43e)](_0x24efe9),{unitId:_0x5be20f,tableId:_0xbefe1b,field:_0x4925bb,index:_0x3106c9,viewIndexes:_0x113aa7}=_0xe78845,_0x277506=_0xce1cdc[_0x407289(0x228)](_0x5be20f,_0x5c5c99[_0x407289(0x36b)]);if(!_0x277506||!$(_0x277506,_0xbefe1b)||_0x277506[_0x407289(0x32f)]()[_0x407289(0x298)][_0xbefe1b][_0x407289(0x398)][_0x4925bb['id']]||_0x3106c9===0x0||!ha(_0x277506,_0xbefe1b,_0x4925bb))return!0x1;let _0xd3ddf1=_0x1a0563[_0x407289(0x43e)](_0x5daeb6),_0x4c49f0=_0x1a0563['get'](_0x5b9522),_0x266d25=_0x1a0563['get'](Kr)[_0x407289(0x4b7)](_0x277506,_0xbefe1b,_0x4925bb,_0x3106c9,_0x113aa7),_0x5a67d4=new z()[_0x407289(0x2d8)](_0x277506[_0x407289(0x32f)](),_0x266d25),_0x489f91={'unitId':_0x5be20f,'op':_0x266d25},_0x2ee134={'unitId':_0x5be20f,'op':_0x5a67d4};return _0xd3ddf1[_0x407289(0x163)](Q['id'],_0x489f91)?(_0xce1cdc[_0x407289(0x243)](_0x5be20f),_0x4c49f0[_0x407289(0x47c)]({'unitID':_0x5be20f,'undoMutations':[{'id':Q['id'],'params':_0x2ee134}],'redoMutations':[{'id':Q['id'],'params':_0x489f91}]}),!0x0):!0x1;}},Ea={'id':_0x6c183(0x1d2),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x207494,_0x337a69){const _0xb0801=_0x6c183;if(!_0x337a69)return!0x1;let _0xeb8d1f=_0x207494[_0xb0801(0x43e)](_0x24efe9),{unitId:_0x2ecd5e,tableId:_0x4fd3e1,record:_0x1a2fe3}=_0x337a69,_0x119ff7=_0xeb8d1f['getUnit'](_0x2ecd5e,_0x5c5c99['UNIVER_BASE']);if(!_0x119ff7||!$(_0x119ff7,_0x4fd3e1))return!0x1;let _0x4a2f18=_0x207494[_0xb0801(0x43e)](_0x5daeb6),_0x554110=_0x207494[_0xb0801(0x43e)](_0x5b9522),_0x150c70=_0x207494[_0xb0801(0x43e)](Kr),_0x124ec7=_0x119ff7['getSnapshot'](),_0xffb6a7=ba(_0x119ff7,_0x4fd3e1,[_0x1a2fe3]);if(!_0xffb6a7)return!0x1;let [_0x1bf8e7]=_0xffb6a7[_0xb0801(0x258)],{hierarchyChanges:_0x5dd0fc,hierarchyFieldToMaterialize:_0x587074}=_0xffb6a7,_0x1fa051=_0x587074?_0x150c70['createCreateFieldOp'](_0x119ff7,_0x4fd3e1,_0x587074,_0x124ec7[_0xb0801(0x298)][_0x4fd3e1][_0xb0801(0x3b5)][_0xb0801(0x13c)]):null,_0x5ba5dc=_0x150c70[_0xb0801(0x467)](_0x119ff7,_0x4fd3e1,_0x1bf8e7),_0x3a688e=R([..._0x1fa051?[_0x1fa051]:[],_0x5ba5dc]),_0x21ad56=new z()[_0xb0801(0x2d8)](_0x124ec7,_0x3a688e),_0x5a5288={'unitId':_0x2ecd5e,'op':_0x3a688e,'hierarchyChanges':_0x5dd0fc[_0xb0801(0x13c)]?_0x5dd0fc:void 0x0,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0x337a69[_0xb0801(0x495)]??'ui':void 0x0},_0x3d948f={..._0x5a5288,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0xb0801(0x32a):void 0x0},_0x14b247={'unitId':_0x2ecd5e,'op':_0x21ad56,'hierarchyChanges':_0x5dd0fc['length']?_0x5dd0fc[_0xb0801(0x141)](_0x3cb7d6=>({..._0x3cb7d6,'oldParentRecordId':_0x3cb7d6[_0xb0801(0x474)],'parentRecordId':null})):void 0x0,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0xb0801(0x23c):void 0x0};return _0x4a2f18[_0xb0801(0x163)](Q['id'],_0x5a5288)?(_0xeb8d1f[_0xb0801(0x243)](_0x2ecd5e),_0x554110[_0xb0801(0x47c)]({'unitID':_0x2ecd5e,'undoMutations':[{'id':Q['id'],'params':_0x14b247}],'redoMutations':[{'id':Q['id'],'params':_0x3d948f}]}),!0x0):!0x1;}},Da=_0x6c183(0x113);function Oa(_0x249350,_0x5df53a,_0x54b8ca){const _0x551b88=_0x6c183;if(!_0x5df53a['trim']())return{'valid':!0x1,'reason':_0x551b88(0x46f),'error':_0x551b88(0x27c)};if(_0x5df53a[_0x551b88(0x13c)]>0x1f)return{'valid':!0x1,'reason':_0x551b88(0x3f3),'error':_0x551b88(0x2df)};if(_0x5df53a[_0x551b88(0x1fb)]('\x27')||_0x5df53a[_0x551b88(0x35a)]('\x27'))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x551b88(0x215)](_0x5df53a))return{'valid':!0x1,'reason':_0x551b88(0x41e),'error':_0x551b88(0x327)};if(!_0x5cd2f5(_0x5df53a))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':_0x551b88(0x3a3)};let _0x24cea1=_0x5df53a[_0x551b88(0x432)]();return Object['values'](_0x249350[_0x551b88(0x298)])[_0x551b88(0x185)](_0x103f29=>_0x103f29['id']!==_0x54b8ca&&_0x103f29['name'][_0x551b88(0x432)]()===_0x24cea1)?{'valid':!0x1,'reason':_0x551b88(0x1df),'error':_0x551b88(0x3fd)}:{'valid':!0x0};}function ka(_0x182e81,_0x57ad58){const _0x33c1e5=_0x6c183;let _0x222e62=_0x57ad58[_0x33c1e5(0x14e)](/[:\\/?*\[\]]/g,'\x20')[_0x33c1e5(0x14e)](/^'+|'+$/g,'')[_0x33c1e5(0x226)]()||'Table',_0xf12fae=0x1;for(;;){let _0x1222db=_0xf12fae===0x1?'':'\x20'+_0xf12fae,_0x23100a=''+_0x222e62[_0x33c1e5(0x12c)](0x0,0x1f-_0x1222db['length'])+_0x1222db;if(Oa(_0x182e81,_0x23100a)[_0x33c1e5(0x26e)])return _0x23100a;_0xf12fae++;}}const Aa={'id':_0x6c183(0x466),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x40b727,_0x5d767d)=>{const _0xac77c6=_0x6c183;if(!_0x5d767d)return!0x1;let _0x163daf=_0x40b727[_0xac77c6(0x43e)](_0x24efe9),{unitId:_0x4fe3cd,table:_0xcc6d0,index:_0x119b86}=_0x5d767d,_0x1193cf=_0x163daf[_0xac77c6(0x228)](_0x4fe3cd,_0x5c5c99[_0xac77c6(0x36b)]);if(!_0x1193cf||_0x1193cf[_0xac77c6(0x32f)]()[_0xac77c6(0x298)][_0xcc6d0['id']]||!Oa(_0x1193cf[_0xac77c6(0x32f)](),_0xcc6d0[_0xac77c6(0x2a3)])[_0xac77c6(0x26e)])return!0x1;try{_0x37d535(_0xcc6d0);}catch{return!0x1;}let _0x55eb1f=_0x40b727[_0xac77c6(0x43e)](_0x5daeb6),_0x57822e=_0x40b727[_0xac77c6(0x43e)](_0x5b9522),_0x3a7e92=_0x1193cf[_0xac77c6(0x32f)](),_0x23ad0c=new W()[_0xac77c6(0x1b3)](_0x3a7e92,_0xcc6d0,_0x119b86),_0x1137de=new z()['invertOp'](_0x3a7e92,_0x23ad0c),_0x540e04={'unitId':_0x4fe3cd,'op':_0x23ad0c},_0x5d8487={'unitId':_0x4fe3cd,'op':_0x1137de};return _0x55eb1f[_0xac77c6(0x163)](Q['id'],_0x540e04)?(_0x163daf[_0xac77c6(0x243)](_0x4fe3cd),_0x57822e['pushUndoRedo']({'unitID':_0x4fe3cd,'undoMutations':[{'id':Q['id'],'params':_0x5d8487}],'redoMutations':[{'id':Q['id'],'params':_0x540e04}]}),!0x0):!0x1;}};function ja(_0x2d5d9b,_0x9a2088,_0x4cfcf0=[]){const _0x427186=_0x6c183;let _0x21270a=new Set([...Object['values'](_0x2d5d9b['fields'])[_0x427186(0x2be)](_0x158c6b=>_0x158c6b)[_0x427186(0x141)](_0x424f51=>_0x424f51['name']),..._0x4cfcf0[_0x427186(0x141)](_0x17abeb=>_0x17abeb[_0x427186(0x2a3)])]);if(!_0x21270a['has'](_0x9a2088))return _0x9a2088;let _0x32eb9b=0x2;for(;_0x21270a[_0x427186(0x34b)](_0x9a2088+'\x20'+_0x32eb9b);)_0x32eb9b++;return _0x9a2088+'\x20'+_0x32eb9b;}function Ma(_0x90f91a,_0x1812d7){const _0x11a919=_0x6c183;if(!_0x90f91a||!_0x1812d7[_0x11a919(0x13c)])return;let _0x26ea51=[..._0x90f91a];return _0x1812d7[_0x11a919(0x2e0)](_0x37b36f=>{const _0x46e7cb=_0x11a919;_0x26ea51[_0x46e7cb(0x16a)](_0x37b36f)||_0x26ea51[_0x46e7cb(0x174)](_0x37b36f);}),_0x26ea51;}const Na={'options':[{'id':_0x6c183(0x1e3),'name':_0x6c183(0x2ac),'color':_0x6c183(0x17e)},{'id':_0x6c183(0x352),'name':_0x6c183(0x255),'color':_0x6c183(0x21f)},{'id':'done','name':'Done','color':_0x6c183(0x27d)}]},Pa={'locale':_0x6c183(0x2da),'pattern':_0x6c183(0x149),'includeTime':!0x1,'hourCycle':_0x6c183(0x147),'defaultMode':_0x6c183(0x42f)};function Fa(_0x1b6274,_0x3b6ce3,_0x288890,_0x24a9b3){const _0xe25609=_0x6c183;var _0x5dc82e;let _0x8d3412=new W(),_0x3ad961=_0x1b6274['tables'][_0x3b6ce3],_0x35baf1=_0x3ad961?{..._0x288890,'fieldOrder':[_0x5a35e2,...(_0x288890[_0xe25609(0x3b5)]??_0x3ad961[_0xe25609(0x3b5)])[_0xe25609(0x2be)](_0x538790=>_0x538790!==_0x5a35e2)],'fieldSettings':{..._0x288890[_0xe25609(0x48f)],[_0x5a35e2]:{...(_0x5dc82e=_0x288890[_0xe25609(0x48f)])==null?void 0x0:_0x5dc82e[_0x5a35e2],'hidden':!0x0}}}:_0x288890;if(_0x3ad961&&_0x35baf1['type']===_0xe25609(0x4a6)){let _0x2cd409=La(_0x3ad961,_0x35baf1),_0x3fed0a=_0x2cd409['changed']?{..._0x35baf1,'config':_0x2cd409[_0xe25609(0x2ba)],'fieldOrder':_0x2cd409['fieldOrder']??_0x35baf1[_0xe25609(0x3b5)]}:_0x35baf1;return R([..._0x2cd409['fields'][_0xe25609(0x141)](_0x6bf8c=>_0x8d3412[_0xe25609(0x250)](_0x1b6274,_0x3b6ce3,{'field':_0x6bf8c})),_0x8d3412['createView'](_0x1b6274,_0x3b6ce3,_0x3fed0a,_0x24a9b3)]);}if(!_0x3ad961||_0x35baf1[_0xe25609(0x20b)]!==_0xe25609(0x1eb)&&_0x35baf1[_0xe25609(0x20b)]!==_0xe25609(0x26b))return _0x8d3412[_0xe25609(0x2d7)](_0x1b6274,_0x3b6ce3,_0x35baf1,_0x24a9b3);let _0x3720c5=Ia(_0x3ad961,_0x35baf1),_0x3ebb60=_0x3720c5['changed']?{..._0x35baf1,'config':_0x3720c5[_0xe25609(0x2ba)],'fieldOrder':_0x3720c5['fieldOrder']??_0x35baf1['fieldOrder']}:_0x35baf1;return _0x35baf1['type']==='gantt'&&Ba(_0x35baf1)&&(_0x3ebb60=Va(_0x3ad961,_0x3ebb60,_0x3720c5[_0xe25609(0x398)])),R([..._0x3720c5[_0xe25609(0x398)][_0xe25609(0x141)](_0x505aad=>_0x8d3412['createField'](_0x1b6274,_0x3b6ce3,{'field':_0x505aad})),_0x8d3412[_0xe25609(0x2d7)](_0x1b6274,_0x3b6ce3,_0x3ebb60,_0x24a9b3)]);}function Ia(_0x3e84ab,_0x547a69,_0x45f1a6=!0x1){const _0x1f4f2d=_0x6c183;var _0x4a4ed5,_0x2367e5;let _0x348df2=_0x3e84ab[_0x1f4f2d(0x3b5)][_0x1f4f2d(0x2be)](_0x2c63f8=>Ua(_0x3e84ab,_0x2c63f8)),_0x332c8a=[],_0x48c52c={..._0x547a69[_0x1f4f2d(0x2ba)]??{}},_0x213c91=typeof _0x48c52c[_0x1f4f2d(0x4b5)]==_0x1f4f2d(0x425)&&Ua(_0x3e84ab,_0x48c52c['startDateFieldId'])?_0x48c52c[_0x1f4f2d(0x4b5)]:_0x348df2[0x0],_0x3d38a0=typeof _0x48c52c['endDateFieldId']==_0x1f4f2d(0x425)&&Ua(_0x3e84ab,_0x48c52c[_0x1f4f2d(0x3ef)])&&_0x48c52c['endDateFieldId']!==_0x213c91?_0x48c52c['endDateFieldId']:_0x348df2[_0x1f4f2d(0x392)](_0x45738d=>_0x45738d!==_0x213c91);if(!_0x213c91){let _0x13d448=Wa(_0x3e84ab,_0x332c8a,_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x26b)?_0x1f4f2d(0x325):_0x1f4f2d(0x346));_0x332c8a[_0x1f4f2d(0x174)](_0x13d448),_0x213c91=_0x13d448['id'];}if((_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x26b)||_0x45f1a6)&&!_0x3d38a0){let _0x354c20=Wa(_0x3e84ab,_0x332c8a,_0x1f4f2d(0x364));_0x332c8a[_0x1f4f2d(0x174)](_0x354c20),_0x3d38a0=_0x354c20['id'];}_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x1eb)&&!_0x3d38a0&&delete _0x48c52c[_0x1f4f2d(0x3ef)],_0x48c52c[_0x1f4f2d(0x4b5)]=_0x213c91,_0x547a69[_0x1f4f2d(0x20b)]==='calendar'&&_0x3d38a0&&(_0x48c52c[_0x1f4f2d(0x3ef)]=_0x3d38a0),_0x547a69['type']===_0x1f4f2d(0x26b)&&(_0x48c52c[_0x1f4f2d(0x3ef)]=_0x3d38a0??_0x213c91);let _0x4b3126=Ma(_0x547a69[_0x1f4f2d(0x3b5)],_0x332c8a['map'](_0x1f333d=>_0x1f333d['id']));return{'changed':_0x332c8a[_0x1f4f2d(0x13c)]>0x0||_0x48c52c[_0x1f4f2d(0x4b5)]!==((_0x4a4ed5=_0x547a69['config'])==null?void 0x0:_0x4a4ed5[_0x1f4f2d(0x4b5)])||_0x48c52c[_0x1f4f2d(0x3ef)]!==((_0x2367e5=_0x547a69[_0x1f4f2d(0x2ba)])==null?void 0x0:_0x2367e5[_0x1f4f2d(0x3ef)])||!(!_0x4b3126||_0x4e3c3d[_0x1f4f2d(0x177)](_0x4b3126,_0x547a69['fieldOrder']??[])),'fields':_0x332c8a,'config':_0x48c52c,'fieldOrder':_0x4b3126};}function La(_0x57df75,_0x1e0a28){const _0x34463e=_0x6c183;var _0x2b3f14;let _0x3e6fbf=[],_0x567f9d={..._0x1e0a28[_0x34463e(0x2ba)]??{}},_0x291a28=typeof _0x567f9d['groupFieldId']==_0x34463e(0x425)&&Ra(_0x57df75,_0x567f9d['groupFieldId'])?_0x567f9d[_0x34463e(0x426)]:_0x57df75[_0x34463e(0x3b5)]['find'](_0x11bb75=>Ra(_0x57df75,_0x11bb75));if(!_0x291a28){let _0x356f18=za(_0x57df75,_0x3e6fbf);_0x3e6fbf['push'](_0x356f18),_0x291a28=_0x356f18['id'];}_0x567f9d[_0x34463e(0x426)]=_0x291a28;let _0x4a324f=Ma(_0x1e0a28[_0x34463e(0x3b5)],_0x3e6fbf[_0x34463e(0x141)](_0x284f56=>_0x284f56['id']));return{'changed':_0x3e6fbf[_0x34463e(0x13c)]>0x0||_0x567f9d[_0x34463e(0x426)]!==((_0x2b3f14=_0x1e0a28[_0x34463e(0x2ba)])==null?void 0x0:_0x2b3f14[_0x34463e(0x426)])||!(!_0x4a324f||_0x4e3c3d[_0x34463e(0x177)](_0x4a324f,_0x1e0a28[_0x34463e(0x3b5)]??[])),'fields':_0x3e6fbf,'config':_0x567f9d,'fieldOrder':_0x4a324f};}function Ra(_0x14919a,_0x2115cc){const _0x31b855=_0x6c183;let _0x232d12=_0x2115cc?_0x14919a[_0x31b855(0x398)][_0x2115cc]:null;return _0x232d12?[_0x3a044b[_0x31b855(0x20e)],_0x3a044b[_0x31b855(0x386)],_0x3a044b[_0x31b855(0x2c3)],_0x3a044b['Person'],_0x3a044b[_0x31b855(0x1ad)],_0x3a044b[_0x31b855(0x233)]]['includes'](_0x232d12[_0x31b855(0x20b)]):!0x1;}function za(_0x467c25,_0x4d517c){const _0x4a96fb=_0x6c183;return{'id':_0x4a96fb(0x4b6)+_0x456020(0x8),'name':ja(_0x467c25,'Status',_0x4d517c),'type':_0x3a044b[_0x4a96fb(0x20e)],'config':_0x4e3c3d[_0x4a96fb(0x29d)](Na)};}function Ba(_0x42e65c){const _0x41f308=_0x6c183;return Object['keys'](_0x42e65c[_0x41f308(0x2ba)]??{})[_0x41f308(0x13c)]===0x0&&Object[_0x41f308(0x24c)](_0x42e65c[_0x41f308(0x48f)]??{})['length']===0x0;}function Va(_0x3de707,_0x315c96,_0xf7d5a1){const _0x1faa6f=_0x6c183;let _0x599611={..._0x315c96[_0x1faa6f(0x2ba)]??{}},_0x495218=_0xf7d5a1[_0x1faa6f(0x141)](_0x3af4c6=>_0x3af4c6['id']),_0x2cd4b7=[..._0x3de707[_0x1faa6f(0x3b5)],..._0x495218],_0x97a481=typeof _0x599611['titleFieldId']==_0x1faa6f(0x425)&&Ha(_0x3de707,_0xf7d5a1,_0x599611['titleFieldId'])?_0x599611[_0x1faa6f(0x1ba)]:_0x3de707[_0x1faa6f(0x3b2)],_0xd6d756=typeof _0x599611['startDateFieldId']==_0x1faa6f(0x425)?_0x599611[_0x1faa6f(0x4b5)]:'',_0x100103=typeof _0x599611['endDateFieldId']=='string'?_0x599611[_0x1faa6f(0x3ef)]:_0xd6d756,_0x30b322=new Set([_0x97a481,_0xd6d756,_0x100103][_0x1faa6f(0x2be)](_0x4fab4a=>_0x4fab4a&&Ha(_0x3de707,_0xf7d5a1,_0x4fab4a))),_0x2389a2=Object[_0x1faa6f(0x176)](_0x2cd4b7[_0x1faa6f(0x17a)](_0x52356f=>_0x30b322[_0x1faa6f(0x34b)](_0x52356f)||!Ha(_0x3de707,_0xf7d5a1,_0x52356f)?[]:[[_0x52356f,{'hidden':!0x0}]]));return{..._0x315c96,'config':{..._0x599611,'titleFieldId':_0x97a481},'fieldSettings':_0x2389a2};}function Ha(_0x1576b5,_0x2942fa,_0x299d14){const _0x27e872=_0x6c183;return!!(_0x1576b5[_0x27e872(0x398)][_0x299d14]??_0x2942fa[_0x27e872(0x392)](_0x2df538=>_0x2df538['id']===_0x299d14))&&!0x0;}function Ua(_0x11f9e5,_0x10ddd3){const _0x262d0a=_0x6c183;let _0x42cb17=_0x10ddd3?_0x11f9e5[_0x262d0a(0x398)][_0x10ddd3]:null;return!!_0x42cb17&&_0x42cb17[_0x262d0a(0x20b)]===_0x3a044b[_0x262d0a(0x346)]&&_0x42cb17['readonly']!==!0x0&&_0x42cb17[_0x262d0a(0x3cf)]!==!0x0;}function Wa(_0xc21177,_0x3557ca,_0x39fef0){const _0x39fed3=_0x6c183;let _0x22ab56=new Set([...Object[_0x39fed3(0x24c)](_0xc21177[_0x39fed3(0x398)]),..._0x3557ca[_0x39fed3(0x141)](_0x55223a=>_0x55223a['id'])]),_0x454dc8=_0x39fed3(0x4b6)+_0x456020(0x8);for(;_0x22ab56[_0x39fed3(0x34b)](_0x454dc8);)_0x454dc8=_0x39fed3(0x4b6)+_0x456020(0x8);return{'id':_0x454dc8,'name':ja(_0xc21177,_0x39fef0,_0x3557ca),'type':_0x3a044b['Date'],'config':{...Pa}};}const Ga={'id':_0x6c183(0x39a),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x20781e,_0x46994b)=>{const _0x2a3325=_0x6c183;if(!_0x46994b)return!0x1;let _0x150bf0=_0x20781e[_0x2a3325(0x43e)](_0x24efe9),{unitId:_0x14a367,tableId:_0x33fe52,view:_0x31dd8c,index:_0x50295c}=_0x46994b,_0x5b8a9f=_0x150bf0[_0x2a3325(0x228)](_0x14a367,_0x5c5c99[_0x2a3325(0x36b)]);if(!_0x5b8a9f||!$(_0x5b8a9f,_0x33fe52)||_0x5b8a9f[_0x2a3325(0x32f)]()[_0x2a3325(0x298)][_0x33fe52][_0x2a3325(0x362)][_0x31dd8c['id']])return!0x1;let _0x30bd97=_0x20781e[_0x2a3325(0x43e)](_0x5daeb6),_0x30bdc0=_0x20781e[_0x2a3325(0x43e)](_0x5b9522),_0x5a07aa=_0x5b8a9f[_0x2a3325(0x32f)](),_0x209d4c=Fa(_0x5a07aa,_0x33fe52,_0x31dd8c,_0x50295c),_0x37d13c=new z()[_0x2a3325(0x2d8)](_0x5a07aa,_0x209d4c),_0x165bff={'historyAction':_0x2a3325(0x44d),'unitId':_0x14a367,'op':_0x209d4c,'viewType':_0x31dd8c['type']},_0x20f895={'historyAction':_0x2a3325(0x145),'unitId':_0x14a367,'op':_0x37d13c,'viewType':_0x31dd8c[_0x2a3325(0x20b)]};return _0x30bd97[_0x2a3325(0x163)](Q['id'],_0x165bff)?(_0x150bf0[_0x2a3325(0x243)](_0x14a367),_0x30bdc0[_0x2a3325(0x47c)]({'unitID':_0x14a367,'undoMutations':[{'id':Q['id'],'params':_0x20f895}],'redoMutations':[{'id':Q['id'],'params':_0x165bff}]}),!0x0):!0x1;}},Ka={'id':_0x6c183(0x274),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x553932,_0x2ff919){const _0x28b9fe=_0x6c183;if(!_0x2ff919)return!0x1;let _0x406cd3=_0x553932[_0x28b9fe(0x43e)](_0x24efe9),{unitId:_0x1fa5cc,tableId:_0x41db8b,fieldId:_0x187f29}=_0x2ff919,_0x108a22=_0x406cd3[_0x28b9fe(0x228)](_0x1fa5cc,_0x5c5c99[_0x28b9fe(0x36b)]);if(!_0x108a22)return!0x1;let _0x599ee7=_0x108a22['getSnapshot'](),_0x224077=_0x599ee7[_0x28b9fe(0x298)][_0x41db8b];if(!$(_0x108a22,_0x41db8b,{'fieldIds':[_0x187f29]})||_0x224077[_0x28b9fe(0x3b2)]===_0x187f29||_0x187f29===_0x5a35e2)return!0x1;let _0x39ce3d=_0x553932[_0x28b9fe(0x43e)](_0x5daeb6),_0x662ec7=_0x553932['get'](_0x5b9522),_0x1a9b80=new W()['deleteField'](_0x599ee7,_0x41db8b,_0x187f29),_0x911843=new z()['invertOp'](_0x599ee7,_0x1a9b80),_0x16d498={'unitId':_0x1fa5cc,'op':_0x1a9b80},_0x3c3af8={'unitId':_0x1fa5cc,'op':_0x911843};return _0x39ce3d[_0x28b9fe(0x163)](Q['id'],_0x16d498)?(_0x406cd3[_0x28b9fe(0x243)](_0x1fa5cc),_0x662ec7[_0x28b9fe(0x47c)]({'unitID':_0x1fa5cc,'undoMutations':[{'id':Q['id'],'params':_0x3c3af8}],'redoMutations':[{'id':Q['id'],'params':_0x16d498}]}),!0x0):!0x1;}},qa={'id':_0x6c183(0x1c7),'type':_0x22977e['COMMAND'],'handler':(_0x2013c9,_0x7d6d58)=>{const _0x1fef8b=_0x6c183;if(!_0x7d6d58)return!0x1;let _0x122331=_0x2013c9[_0x1fef8b(0x43e)](_0x24efe9),{unitId:_0x58407e,tableId:_0x8cade5,recordId:_0x386177}=_0x7d6d58,_0x118a2e=_0x122331['getUnit'](_0x58407e,_0x5c5c99[_0x1fef8b(0x36b)]);if(!_0x118a2e||!$(_0x118a2e,_0x8cade5,{'recordIds':[_0x386177]}))return!0x1;let _0x45e3e4=_0x2013c9['get'](_0x5daeb6),_0x23c254=_0x2013c9[_0x1fef8b(0x43e)](_0x5b9522),_0x3f01a3=_0x118a2e[_0x1fef8b(0x32f)](),_0x540d30=et(_0x3f01a3['tables'][_0x8cade5],[_0x386177]),_0x4066cf=new W(),_0xf19bfa=new z(),_0xc2f43a=_0x4066cf[_0x1fef8b(0x465)](_0x3f01a3,_0x8cade5,_0x386177),_0x37587a=_0xf19bfa[_0x1fef8b(0x4c3)](_0x3f01a3,_0xc2f43a),_0x1692a0=_0x4066cf[_0x1fef8b(0x225)](_0x3f01a3,_0x37587a,_0x8cade5,[_0x386177]),_0x19d51c={'unitId':_0x58407e,'op':_0xc2f43a,'hierarchyChanges':_0x540d30,'source':_0x7d6d58[_0x1fef8b(0x495)]??'ui'},_0x24af53={..._0x19d51c,'source':'redo'},_0x48cd46={'unitId':_0x58407e,'op':_0x1692a0,'hierarchyChanges':_0x540d30['map'](_0x4ee603=>({..._0x4ee603,'oldParentRecordId':_0x4ee603[_0x1fef8b(0x474)],'parentRecordId':_0x4ee603[_0x1fef8b(0x2d1)]})),'source':_0x1fef8b(0x23c)};return _0x45e3e4[_0x1fef8b(0x163)](Q['id'],_0x19d51c)?(_0x122331['focusUnit'](_0x58407e),_0x23c254['pushUndoRedo']({'unitID':_0x58407e,'undoMutations':[{'id':Q['id'],'params':_0x48cd46}],'redoMutations':[{'id':Q['id'],'params':_0x24af53}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x22977e['COMMAND'],'handler':(_0x8629d6,_0x4c0627)=>{const _0x1c3550=_0x6c183;if(!_0x4c0627)return!0x1;let _0x1a26cb=_0x8629d6[_0x1c3550(0x43e)](_0x24efe9),{unitId:_0x14324c,tableId:_0x343648}=_0x4c0627,_0x80d9ab=_0x1a26cb[_0x1c3550(0x228)](_0x14324c,_0x5c5c99['UNIVER_BASE']);if(!_0x80d9ab||!$(_0x80d9ab,_0x343648))return!0x1;let _0x401154=_0x8629d6['get'](_0x5daeb6),_0x15a4d3=_0x8629d6[_0x1c3550(0x43e)](_0x5b9522),_0x375abd=_0x80d9ab[_0x1c3550(0x32f)](),_0x34eea4=He(_0x375abd,_0x343648);if(_0x34eea4[_0x1c3550(0x13c)]>0x0)return console['error'](_0x1c3550(0x30f)+_0x343648+_0x1c3550(0x181)+_0x34eea4[_0x1c3550(0x141)](_0x563c8b=>_0x563c8b[_0x1c3550(0x210)]+'.'+_0x563c8b['fieldId'])[_0x1c3550(0x11a)](',\x20')+'.'),!0x1;let _0x3417f4=new W()[_0x1c3550(0x283)](_0x375abd,_0x343648),_0x554626=new z()[_0x1c3550(0x2d8)](_0x375abd,_0x3417f4),_0x34b828={'unitId':_0x14324c,'op':_0x3417f4},_0x262e67={'unitId':_0x14324c,'op':_0x554626};return _0x401154['syncExecuteCommand'](Q['id'],_0x34b828)?(_0x1a26cb[_0x1c3550(0x243)](_0x14324c),_0x15a4d3[_0x1c3550(0x47c)]({'unitID':_0x14324c,'undoMutations':[{'id':Q['id'],'params':_0x262e67}],'redoMutations':[{'id':Q['id'],'params':_0x34b828}]}),!0x0):!0x1;}},Ya={'id':'base.command.delete-base-view','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3ea21f,_0x44b905)=>{const _0x51df61=_0x6c183;if(!_0x44b905)return!0x1;let _0x1df303=_0x3ea21f[_0x51df61(0x43e)](_0x24efe9),{unitId:_0x58134b,tableId:_0x25aaed,viewId:_0x567646}=_0x44b905,_0x4ccbdf=_0x1df303['getUnit'](_0x58134b,_0x5c5c99[_0x51df61(0x36b)]);if(!_0x4ccbdf||!$(_0x4ccbdf,_0x25aaed,{'viewIds':[_0x567646]}))return!0x1;let _0x37dffc=_0x3ea21f[_0x51df61(0x43e)](_0x5daeb6),_0x49aa2f=_0x3ea21f[_0x51df61(0x43e)](_0x5b9522),_0x1e62bd=_0x4ccbdf[_0x51df61(0x32f)](),_0x26ce89=_0x1e62bd[_0x51df61(0x298)][_0x25aaed][_0x51df61(0x362)][_0x567646][_0x51df61(0x20b)],_0x330cdc=new W()[_0x51df61(0x3f9)](_0x1e62bd,_0x25aaed,_0x567646),_0x39fabc=new z()[_0x51df61(0x2d8)](_0x1e62bd,_0x330cdc),_0x38fad1={'historyAction':_0x51df61(0x145),'unitId':_0x58134b,'op':_0x330cdc,'viewType':_0x26ce89},_0x5e1d41={'historyAction':_0x51df61(0x44d),'unitId':_0x58134b,'op':_0x39fabc,'viewType':_0x26ce89};return _0x37dffc[_0x51df61(0x163)](Q['id'],_0x38fad1)?(_0x1df303[_0x51df61(0x243)](_0x58134b),_0x49aa2f[_0x51df61(0x47c)]({'unitID':_0x58134b,'undoMutations':[{'id':Q['id'],'params':_0x5e1d41}],'redoMutations':[{'id':Q['id'],'params':_0x38fad1}]}),!0x0):!0x1;}},Xa={'id':_0x6c183(0x128),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3b6113,_0x500447)=>{const _0x3324d2=_0x6c183;if(!_0x500447)return!0x1;let _0x4c0d4f=_0x3b6113[_0x3324d2(0x43e)](_0x24efe9),{unitId:_0x48e3f4,tableId:_0x20679d,sourceFieldId:_0x448a94,field:_0x3b1a0b,index:_0x226539,viewIndexes:_0x46a890}=_0x500447,_0x54708d=_0x4c0d4f[_0x3324d2(0x228)](_0x48e3f4,_0x5c5c99[_0x3324d2(0x36b)]);if(!_0x54708d||!$(_0x54708d,_0x20679d,{'fieldIds':[_0x448a94]})||_0x448a94===_0x5a35e2||_0x54708d[_0x3324d2(0x32f)]()[_0x3324d2(0x298)][_0x20679d][_0x3324d2(0x398)][_0x3b1a0b['id']]||_0x226539===0x0||!ha(_0x54708d,_0x20679d,_0x3b1a0b))return!0x1;let _0x304d82=_0x3b6113[_0x3324d2(0x43e)](_0x5daeb6),_0x25fc76=_0x3b6113[_0x3324d2(0x43e)](_0x5b9522),_0x3790fe=_0x54708d[_0x3324d2(0x32f)](),_0x4b7342=new W()[_0x3324d2(0x25b)](_0x3790fe,_0x20679d,_0x448a94,{'field':_0x3b1a0b,'index':_0x226539,'viewIndexes':_0x46a890}),_0x480ce0=new z()[_0x3324d2(0x2d8)](_0x3790fe,_0x4b7342),_0x22178a={'unitId':_0x48e3f4,'op':_0x4b7342},_0x50184b={'unitId':_0x48e3f4,'op':_0x480ce0};return _0x304d82[_0x3324d2(0x163)](Q['id'],_0x22178a)?(_0x4c0d4f[_0x3324d2(0x243)](_0x48e3f4),_0x25fc76[_0x3324d2(0x47c)]({'unitID':_0x48e3f4,'undoMutations':[{'id':Q['id'],'params':_0x50184b}],'redoMutations':[{'id':Q['id'],'params':_0x22178a}]}),!0x0):!0x1;}},Za={'id':_0x6c183(0x206),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x4c825d,_0xb32af6)=>{const _0x200970=_0x6c183;if(!_0xb32af6)return!0x1;let _0x3fa843=_0x4c825d['get'](_0x24efe9),{unitId:_0x33fb4e,tableId:_0x5d0bbc,sourceRecordId:_0x49cbe1,record:_0x25536d}=_0xb32af6,_0x1f1306=_0x3fa843[_0x200970(0x228)](_0x33fb4e,_0x5c5c99[_0x200970(0x36b)]);if(!_0x1f1306||!$(_0x1f1306,_0x5d0bbc,{'recordIds':[_0x49cbe1]})||!_a(_0x1f1306,_0x5d0bbc,_0x25536d))return!0x1;let _0x5850b4=_0x4c825d[_0x200970(0x43e)](_0x5daeb6),_0x5bc2ec=_0x4c825d[_0x200970(0x43e)](_0x5b9522),_0x46a72d=_0x1f1306['getSnapshot'](),_0x1a25da=va(_0x25536d),_0x33e0c8=Qe(_0x46a72d['tables'][_0x5d0bbc],[_0x1a25da]),_0x1cebea=new W()['duplicateRecord'](_0x46a72d,_0x5d0bbc,_0x49cbe1,_0x1a25da),_0x3a945d=new z()[_0x200970(0x2d8)](_0x46a72d,_0x1cebea),_0x4e1c68={'unitId':_0x33fb4e,'op':_0x1cebea,'hierarchyChanges':_0x33e0c8[_0x200970(0x13c)]?_0x33e0c8:void 0x0,'source':_0x33e0c8[_0x200970(0x13c)]?_0xb32af6['source']??'ui':void 0x0},_0x47a5d0={..._0x4e1c68,'source':_0x33e0c8['length']?'redo':void 0x0},_0x3c952b={'unitId':_0x33fb4e,'op':_0x3a945d,'hierarchyChanges':_0x33e0c8[_0x200970(0x13c)]?_0x33e0c8[_0x200970(0x141)](_0x1565b0=>({..._0x1565b0,'oldParentRecordId':_0x1565b0[_0x200970(0x474)],'parentRecordId':null})):void 0x0,'source':_0x33e0c8[_0x200970(0x13c)]?'undo':void 0x0};return _0x5850b4[_0x200970(0x163)](Q['id'],_0x4e1c68)?(_0x3fa843[_0x200970(0x243)](_0x33fb4e),_0x5bc2ec[_0x200970(0x47c)]({'unitID':_0x33fb4e,'undoMutations':[{'id':Q['id'],'params':_0x3c952b}],'redoMutations':[{'id':Q['id'],'params':_0x47a5d0}]}),!0x0):!0x1;}},Qa={'id':_0x6c183(0x247),'type':_0x22977e['COMMAND'],'handler'(_0x509c66,_0x5815a1){const _0x45d9a7=_0x6c183;if(!_0x5815a1)return!0x1;let _0x56db3a=_0x509c66[_0x45d9a7(0x43e)](_0x24efe9),{unitId:_0x1bfe58,tableId:_0x505ba5,viewId:_0x43d94c,ensureEndDateField:_0x50693b}=_0x5815a1,_0x53fdc9=_0x56db3a['getUnit'](_0x1bfe58,_0x5c5c99[_0x45d9a7(0x36b)]);if(!_0x53fdc9||!$(_0x53fdc9,_0x505ba5,{'viewIds':[_0x43d94c]}))return!0x1;let _0x4a1010=_0x53fdc9[_0x45d9a7(0x32f)](),_0x1eaf00=_0x4a1010[_0x45d9a7(0x298)][_0x505ba5],_0x9f3488=_0x1eaf00==null?void 0x0:_0x1eaf00['views'][_0x43d94c];if(!_0x1eaf00||!_0x9f3488||_0x9f3488['type']!==_0x45d9a7(0x1eb)&&_0x9f3488[_0x45d9a7(0x20b)]!==_0x45d9a7(0x26b))return!0x1;let _0x382c66=Ia(_0x1eaf00,_0x9f3488,_0x50693b===!0x0);if(!_0x382c66[_0x45d9a7(0x1e4)])return!0x1;let _0x36760a=_0x509c66[_0x45d9a7(0x43e)](_0x5daeb6),_0x446a5d=_0x509c66[_0x45d9a7(0x43e)](_0x5b9522),_0x1690e5=new W(),_0x59f306=[..._0x382c66[_0x45d9a7(0x398)][_0x45d9a7(0x141)](_0x4e8ee8=>_0x1690e5[_0x45d9a7(0x250)](_0x4a1010,_0x5815a1[_0x45d9a7(0x210)],{'field':_0x4e8ee8})),$a([...eo(_0x5815a1[_0x45d9a7(0x210)],_0x5815a1[_0x45d9a7(0x288)]),'config'],_0x9f3488[_0x45d9a7(0x2ba)],_0x382c66[_0x45d9a7(0x2ba)])];_0x382c66[_0x45d9a7(0x3b5)]&&_0x59f306[_0x45d9a7(0x174)]($a([...eo(_0x5815a1[_0x45d9a7(0x210)],_0x5815a1[_0x45d9a7(0x288)]),'fieldOrder'],_0x9f3488[_0x45d9a7(0x3b5)],_0x382c66[_0x45d9a7(0x3b5)]));let _0x1b5a67=R(_0x59f306),_0x5a6179=new z()['invertOp'](_0x4a1010,_0x1b5a67),_0x320276={'unitId':_0x1bfe58,'op':_0x1b5a67},_0x1b5cdb={'unitId':_0x1bfe58,'op':_0x5a6179};return _0x36760a[_0x45d9a7(0x163)](Q['id'],_0x320276)?(_0x56db3a[_0x45d9a7(0x243)](_0x1bfe58),_0x446a5d[_0x45d9a7(0x47c)]({'unitID':_0x1bfe58,'undoMutations':[{'id':Q['id'],'params':_0x1b5cdb}],'redoMutations':[{'id':Q['id'],'params':_0x320276}]}),!0x0):!0x1;}};function $a(_0x5dbc59,_0x52ebea,_0xf49f25){const _0x306426=_0x6c183;return _0x52ebea===void 0x0?_0x53fdae[_0x306426(0x13f)](_0x5dbc59,_0xf49f25):_0x53fdae[_0x306426(0x180)](_0x5dbc59,_0x52ebea,_0xf49f25);}function eo(_0x20a60c,_0x36c2d0){const _0x30ff7f=_0x6c183;return[_0x30ff7f(0x298),_0x20a60c,_0x30ff7f(0x362),_0x36c2d0];}const to={'id':'base.command.move-base-field','type':_0x22977e['COMMAND'],'handler':(_0x16c391,_0x3b800e)=>{const _0x34e677=_0x6c183;if(!_0x3b800e)return!0x1;let _0x255867=_0x16c391[_0x34e677(0x43e)](_0x24efe9),{unitId:_0x588c3a,tableId:_0x588d53,fieldId:_0xaf49e,target:_0x41f4fb}=_0x3b800e,_0x159f7d=_0x255867[_0x34e677(0x228)](_0x588c3a,_0x5c5c99['UNIVER_BASE']),_0x5dc3f0=_0x41f4fb[_0x34e677(0x33d)]??_0x41f4fb[_0x34e677(0x473)];if(!_0x159f7d||!!_0x41f4fb[_0x34e677(0x33d)]==!!_0x41f4fb[_0x34e677(0x473)]||!_0x5dc3f0||_0x5dc3f0===_0xaf49e||_0xaf49e===_0x5a35e2||_0x41f4fb[_0x34e677(0x33d)]===_0x5a35e2||!$(_0x159f7d,_0x588d53,{'fieldIds':[_0xaf49e,_0x5dc3f0]}))return!0x1;let _0x1a8763=_0x16c391[_0x34e677(0x43e)](_0x5daeb6),_0x39f543=_0x16c391[_0x34e677(0x43e)](_0x5b9522),_0x561e63=_0x159f7d[_0x34e677(0x32f)](),_0x56c040=new W()['moveField'](_0x561e63,_0x588d53,_0xaf49e,_0x41f4fb),_0xc5b4f4=new z()[_0x34e677(0x2d8)](_0x561e63,_0x56c040),_0x2803d8={'unitId':_0x588c3a,'op':_0x56c040},_0x521d4d={'unitId':_0x588c3a,'op':_0xc5b4f4};return _0x1a8763[_0x34e677(0x163)](Q['id'],_0x2803d8)?(_0x255867[_0x34e677(0x243)](_0x588c3a),_0x39f543[_0x34e677(0x47c)]({'unitID':_0x588c3a,'undoMutations':[{'id':Q['id'],'params':_0x521d4d}],'redoMutations':[{'id':Q['id'],'params':_0x2803d8}]}),!0x0):!0x1;}},no={'id':_0x6c183(0x2af),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x427956,_0xebfa42)=>{const _0x42c0e3=_0x6c183;var _0x59d24f;if(!_0xebfa42)return!0x1;let {unitId:_0xb380b1,tableId:_0x493c16,recordId:_0x59cbe8,parentRecordId:_0x2a7989,orderKey:_0xaf908c}=_0xebfa42,_0x3ff605=_0x427956['get'](_0x24efe9),_0xec512d=_0x3ff605[_0x42c0e3(0x228)](_0xb380b1,_0x5c5c99[_0x42c0e3(0x36b)]);if(!_0xec512d||!$(_0xec512d,_0x493c16,{'recordIds':[_0x59cbe8,..._0x2a7989?[_0x2a7989]:[]]}))throw new P(_0x42c0e3(0x281));let _0x4c428d=_0xec512d[_0x42c0e3(0x32f)](),_0x1b3f18=_0x4c428d[_0x42c0e3(0x298)][_0x493c16],_0x4c3b00=qe(_0x1b3f18),_0x42088a=_0x4c3b00??_0xebfa42['fieldId']??Je(_0x1b3f18);if(_0x4c3b00&&_0xebfa42['fieldId']&&_0xebfa42['fieldId']!==_0x4c3b00||_0x1b3f18[_0x42c0e3(0x398)][_0x42088a]&&!F(_0x1b3f18,_0x42088a))throw new P(_0x42c0e3(0x48d));let _0x30139d=tt(_0x1b3f18,_0x42088a),_0x401726=it(_0x30139d,_0x59cbe8,_0x2a7989);if(!_0x401726[_0x42c0e3(0x26e)])throw new P(_0x401726['reason']===_0x5b4879[_0x42c0e3(0x40a)]?'selfParent':_0x401726['reason']===_0x5b4879[_0x42c0e3(0x478)]?'cycle':_0x42c0e3(0x138));let _0x594747=_0x30139d[_0x42c0e3(0x3b7)][_0x42c0e3(0x43e)](_0x59cbe8)??null,_0x4ee275=_0x1b3f18[_0x42c0e3(0x258)][_0x59cbe8][_0x42c0e3(0x4a1)];if(_0x594747===_0x2a7989&&(_0xaf908c===void 0x0||_0xaf908c===_0x4ee275))return!0x0;let _0x5de515=_0x594747!==_0x2a7989,_0x309e52=_0xaf908c!==void 0x0&&_0xaf908c!==_0x4ee275,_0x365fd4=new W(),_0x19291c=[],_0x21e200=_0x1b3f18['fields'][_0x42088a],_0x1d68d7=_0x5de515&&(!_0x21e200||((_0x59d24f=N(_0x21e200))==null?void 0x0:_0x59d24f[_0x42c0e3(0x1d4)])!==_0x4c2417[_0x42c0e3(0x2e7)])?_0x21e200?_0x365fd4[_0x42c0e3(0x13b)](_0x4c428d,_0x493c16,_0x42088a,{'config':{..._0x21e200[_0x42c0e3(0x2ba)],'relationRole':_0x4c2417[_0x42c0e3(0x2e7)]}}):_0x427956['get'](Kr)[_0x42c0e3(0x4b7)](_0xec512d,_0x493c16,Ye(_0x1b3f18,_0x42088a,_0xebfa42[_0x42c0e3(0x1c6)]),_0x1b3f18[_0x42c0e3(0x3b5)][_0x42c0e3(0x13c)]):null;_0x1d68d7&&_0x19291c[_0x42c0e3(0x174)](_0x1d68d7),_0x5de515&&_0x19291c[_0x42c0e3(0x174)](_0x365fd4['updateCell'](_0x4c428d,_0x493c16,_0x59cbe8,_0x42088a,_0x2a7989?Re([_0x2a7989]):'')),_0x309e52&&_0x19291c['push'](_0x365fd4['updateRecordOrder'](_0x4c428d,_0x493c16,_0x59cbe8,_0xaf908c));let _0x298e10=R(_0x19291c),_0x4c1a73={'tableId':_0x493c16,'fieldId':_0x42088a,'recordId':_0x59cbe8,'oldParentRecordId':_0x594747,'parentRecordId':_0x2a7989},_0x143259={'unitId':_0xb380b1,'op':_0x298e10,'trigger':no['id'],'hierarchyChanges':[_0x4c1a73],'source':_0xebfa42[_0x42c0e3(0x495)]??'ui'},_0x4a210e={..._0x143259,'source':'redo'};if(!_0x427956['get'](_0x5daeb6)[_0x42c0e3(0x163)](Q['id'],_0x143259))return!0x1;let _0x37eed0=_0xec512d[_0x42c0e3(0x32f)](),_0x32eee4=[];_0x5de515&&_0x32eee4[_0x42c0e3(0x174)](ro(_0x37eed0,_0x4c428d,_0x493c16,_0x59cbe8,_0x42088a)),_0x309e52&&_0x32eee4[_0x42c0e3(0x174)](io(_0x37eed0,_0x4c428d,_0x493c16,_0x59cbe8)),_0x1d68d7&&_0x32eee4[_0x42c0e3(0x174)](new z()[_0x42c0e3(0x2d8)](_0x4c428d,_0x1d68d7));let _0x42ea62={'unitId':_0xb380b1,'op':R(_0x32eee4),'trigger':no['id'],'hierarchyChanges':[{..._0x4c1a73,'oldParentRecordId':_0x2a7989,'parentRecordId':_0x594747}],'source':'undo'};return _0x3ff605[_0x42c0e3(0x243)](_0xb380b1),_0x427956[_0x42c0e3(0x43e)](_0x5b9522)[_0x42c0e3(0x47c)]({'unitID':_0xb380b1,'undoMutations':[{'id':Q['id'],'params':_0x42ea62}],'redoMutations':[{'id':Q['id'],'params':_0x4a210e}]}),!0x0;}};function ro(_0x417ee7,_0x44fef9,_0x42b989,_0x1f7f38,_0x128e22){const _0x286cbf=_0x6c183;var _0x496e3a,_0x7654ae,_0x250594,_0x49610d,_0x14e160,_0x1c8c8c,_0x2073c3,_0x1a439d;let _0x3ed69a=_0x417ee7[_0x286cbf(0x298)][_0x42b989],_0x16ea4c=_0x44fef9[_0x286cbf(0x298)][_0x42b989],_0x188501=(_0x496e3a=_0x3ed69a[_0x286cbf(0x375)])==null?void 0x0:_0x496e3a[_0x1f7f38],_0x28531b=(_0x7654ae=_0x3ed69a['colIndex'])==null?void 0x0:_0x7654ae[_0x128e22],_0x480f67=(_0x250594=_0x16ea4c[_0x286cbf(0x375)])==null?void 0x0:_0x250594[_0x1f7f38],_0x32fd6b=(_0x49610d=_0x16ea4c[_0x286cbf(0x390)])==null?void 0x0:_0x49610d[_0x128e22],_0xdb9805=_0x188501==null||_0x28531b==null||(_0x14e160=_0x3ed69a[_0x286cbf(0x389)])==null||(_0x14e160=_0x14e160[_0x188501])==null?void 0x0:_0x14e160[_0x28531b],_0xbb36e8=_0x480f67==null||_0x32fd6b==null||(_0x1c8c8c=_0x16ea4c[_0x286cbf(0x389)])==null||(_0x1c8c8c=_0x1c8c8c[_0x480f67])==null?void 0x0:_0x1c8c8c[_0x32fd6b],_0x49f79d=(_0x2073c3=_0x3ed69a[_0x286cbf(0x258)][_0x1f7f38])==null?void 0x0:_0x2073c3[_0x286cbf(0x227)][_0x128e22],_0x389ae0=(_0x1a439d=_0x16ea4c[_0x286cbf(0x258)][_0x1f7f38])==null?void 0x0:_0x1a439d[_0x286cbf(0x227)][_0x128e22],_0x485f33=[],_0x40d91f=ao(_0x188501==null||_0x28531b==null?null:U['cellData'](_0x42b989,_0x188501,_0x28531b),_0xdb9805,_0xbb36e8);_0x40d91f&&_0x485f33['push'](_0x40d91f);let _0x2131b2=ao(U[_0x286cbf(0x1de)](_0x42b989,_0x1f7f38,_0x128e22),_0x49f79d,_0x389ae0);return _0x2131b2&&_0x485f33[_0x286cbf(0x174)](_0x2131b2),R(_0x485f33);}function io(_0x404e59,_0x203e55,_0x11ca6d,_0x1f02cd){const _0x3ba420=_0x6c183;var _0x4be4b7,_0x2eca94;let _0x1f605a=_0x404e59[_0x3ba420(0x298)][_0x11ca6d],_0x41a5ae=_0x203e55[_0x3ba420(0x298)][_0x11ca6d];return R([ao([...U[_0x3ba420(0x493)](_0x11ca6d,_0x1f02cd),'orderKey'],(_0x4be4b7=_0x1f605a[_0x3ba420(0x258)][_0x1f02cd])==null?void 0x0:_0x4be4b7[_0x3ba420(0x4a1)],(_0x2eca94=_0x41a5ae[_0x3ba420(0x258)][_0x1f02cd])==null?void 0x0:_0x2eca94[_0x3ba420(0x4a1)]),ao([...U[_0x3ba420(0x4c7)](_0x11ca6d),_0x3ba420(0x1e7)],_0x1f605a[_0x3ba420(0x1e7)],_0x41a5ae[_0x3ba420(0x1e7)])][_0x3ba420(0x2be)](_0x844ab4=>!!_0x844ab4));}function ao(_0x5c024d,_0x5568e3,_0x11c614){const _0x5e4291=_0x6c183;if(!_0x5c024d||_0x5568e3===void 0x0&&_0x11c614===void 0x0)return null;let _0x4581b2=_0x39141f[_0x5e4291(0x47f)]();return _0x11c614===void 0x0?_0x4581b2[_0x5e4291(0x37b)](_0x5c024d,_0x5568e3):_0x5568e3===void 0x0?_0x4581b2['insertOp'](_0x5c024d,_0x11c614):_0x4581b2[_0x5e4291(0x180)](_0x5c024d,_0x5568e3,_0x11c614);}const oo={'id':_0x6c183(0x429),'type':_0x22977e['COMMAND'],'handler':(_0x4786c4,_0x1f084c)=>{const _0x2f3fbf=_0x6c183;if(!_0x1f084c)return!0x1;let _0x33d727=_0x4786c4['get'](_0x24efe9),{unitId:_0x2d2a49,tableId:_0x493706,viewId:_0x5c1a56,target:_0x727ce8}=_0x1f084c,_0x3cad72=_0x33d727['getUnit'](_0x2d2a49,_0x5c5c99[_0x2f3fbf(0x36b)]),_0xbd9c3=_0x727ce8[_0x2f3fbf(0x1af)]??_0x727ce8[_0x2f3fbf(0x2d4)];if(!_0x3cad72||!_0xbd9c3||_0xbd9c3===_0x5c1a56||!$(_0x3cad72,_0x493706,{'viewIds':[_0x5c1a56,_0xbd9c3]}))return!0x1;let _0x517092=_0x4786c4[_0x2f3fbf(0x43e)](_0x5daeb6),_0x4d693b=_0x4786c4[_0x2f3fbf(0x43e)](_0x5b9522),_0x4743d3=_0x3cad72[_0x2f3fbf(0x32f)](),_0x5cd167=new W()[_0x2f3fbf(0x308)](_0x4743d3,_0x493706,_0x5c1a56,_0x727ce8),_0x548a45=new z()['invertOp'](_0x4743d3,_0x5cd167),_0x359e6f={'unitId':_0x2d2a49,'op':_0x5cd167},_0x6e6d4={'unitId':_0x2d2a49,'op':_0x548a45};return _0x517092['syncExecuteCommand'](Q['id'],_0x359e6f)?(_0x33d727['focusUnit'](_0x2d2a49),_0x4d693b[_0x2f3fbf(0x47c)]({'unitID':_0x2d2a49,'undoMutations':[{'id':Q['id'],'params':_0x6e6d4}],'redoMutations':[{'id':Q['id'],'params':_0x359e6f}]}),!0x0):!0x1;}},so={'id':_0x6c183(0x204),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x26394f,_0x2c22c9)=>{const _0x3751a0=_0x6c183;if(!_0x2c22c9)return!0x1;let _0x5221a0=_0x26394f[_0x3751a0(0x43e)](_0x24efe9),{unitId:_0x100dee,tableId:_0x98b186,name:_0x54f9c6}=_0x2c22c9,_0x449f77=_0x5221a0[_0x3751a0(0x228)](_0x100dee,_0x5c5c99['UNIVER_BASE']);if(!_0x449f77||!$(_0x449f77,_0x98b186)||!Oa(_0x449f77[_0x3751a0(0x32f)](),_0x54f9c6,_0x98b186)['valid'])return!0x1;let _0x58ffad=_0x26394f[_0x3751a0(0x43e)](_0x5daeb6),_0x34897c=_0x26394f[_0x3751a0(0x43e)](_0x5b9522),_0x5ed005=_0x449f77[_0x3751a0(0x32f)](),_0x3d6cd1=new W()[_0x3751a0(0x17d)](_0x5ed005,_0x98b186,_0x54f9c6),_0x478230=new z()['invertOp'](_0x5ed005,_0x3d6cd1),_0x15406e={'unitId':_0x100dee,'op':_0x3d6cd1},_0x4f4e3a={'unitId':_0x100dee,'op':_0x478230};return _0x58ffad[_0x3751a0(0x163)](Q['id'],_0x15406e)?(_0x5221a0[_0x3751a0(0x243)](_0x100dee),_0x34897c[_0x3751a0(0x47c)]({'unitID':_0x100dee,'undoMutations':[{'id':Q['id'],'params':_0x4f4e3a}],'redoMutations':[{'id':Q['id'],'params':_0x15406e}]}),!0x0):!0x1;}},co={'id':_0x6c183(0x2cb),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x1842dd,_0x4feb4d)=>{const _0x479d4a=_0x6c183;if(!_0x4feb4d)return!0x1;let _0x4453d6=_0x1842dd[_0x479d4a(0x43e)](_0x24efe9),{unitId:_0x32579f,tableId:_0x182d83,viewId:_0x2847c5,name:_0x38d5d1}=_0x4feb4d,_0x15292f=_0x4453d6[_0x479d4a(0x228)](_0x32579f,_0x5c5c99[_0x479d4a(0x36b)]);if(!_0x15292f||!$(_0x15292f,_0x182d83,{'viewIds':[_0x2847c5]}))return!0x1;let _0x380a48=_0x1842dd[_0x479d4a(0x43e)](_0x5daeb6),_0x448785=_0x1842dd[_0x479d4a(0x43e)](_0x5b9522),_0x30ac96=_0x15292f[_0x479d4a(0x32f)](),_0x45b9f5=new W()[_0x479d4a(0x15f)](_0x30ac96,_0x182d83,_0x2847c5,_0x38d5d1),_0x58b435=new z()[_0x479d4a(0x2d8)](_0x30ac96,_0x45b9f5),_0x31ebc9={'unitId':_0x32579f,'op':_0x45b9f5},_0x29f605={'unitId':_0x32579f,'op':_0x58b435};return _0x380a48['syncExecuteCommand'](Q['id'],_0x31ebc9)?(_0x4453d6['focusUnit'](_0x32579f),_0x448785[_0x479d4a(0x47c)]({'unitID':_0x32579f,'undoMutations':[{'id':Q['id'],'params':_0x29f605}],'redoMutations':[{'id':Q['id'],'params':_0x31ebc9}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x5c1e7d,_0x4d2484)=>{const _0x2afb21=_0x6c183;if(!_0x4d2484)return!0x1;let _0x114521=_0x5c1e7d['get'](_0x24efe9),{unitId:_0x425d09,tableId:_0x388c08,viewId:_0x19aa04,fieldId:_0x36e11c}=_0x4d2484,_0x2c6b67=_0x114521[_0x2afb21(0x228)](_0x425d09,_0x5c5c99[_0x2afb21(0x36b)]);if(!_0x2c6b67||!$(_0x2c6b67,_0x388c08,{'viewIds':[_0x19aa04],'fieldIds':[_0x36e11c]}))return!0x1;let _0x50615a=_0x5c1e7d[_0x2afb21(0x43e)](_0x5daeb6),_0x441d4c=_0x5c1e7d[_0x2afb21(0x43e)](_0x5b9522),_0x3290f8=_0x2c6b67[_0x2afb21(0x32f)](),_0x2647fe=new W()[_0x2afb21(0x2cf)](_0x3290f8,_0x388c08,_0x19aa04,{'groupFieldId':_0x36e11c}),_0x23dd02=new z()['invertOp'](_0x3290f8,_0x2647fe),_0x55fb7a={'unitId':_0x425d09,'op':_0x2647fe},_0x1eafc9={'unitId':_0x425d09,'op':_0x23dd02};return _0x50615a[_0x2afb21(0x163)](Q['id'],_0x55fb7a)?(_0x114521['focusUnit'](_0x425d09),_0x441d4c[_0x2afb21(0x47c)]({'unitID':_0x425d09,'undoMutations':[{'id':Q['id'],'params':_0x1eafc9}],'redoMutations':[{'id':Q['id'],'params':_0x55fb7a}]}),!0x0):!0x1;}},uo={'id':_0x6c183(0x2dc),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3793c6,_0x55a58a)=>{const _0x1f402b=_0x6c183;if(!_0x55a58a)return!0x1;let _0x2ab599=_0x3793c6[_0x1f402b(0x43e)](_0x24efe9),_0x5cae4a=_0x2ab599[_0x1f402b(0x228)](_0x55a58a[_0x1f402b(0x393)],_0x5c5c99[_0x1f402b(0x36b)]);if(!_0x5cae4a)return!0x1;let _0x4b1816=_0x5cae4a[_0x1f402b(0x32f)]()[_0x1f402b(0x2a3)];if(_0x4b1816===_0x55a58a[_0x1f402b(0x2a3)])return!0x0;let _0x20cd09=new W(),_0x4ee92c=new z(),_0x2f822e=[],_0x86b02=[],_0x3280e5=[_0x5cae4a,..._0x2ab599[_0x1f402b(0x3db)](_0x5c5c99[_0x1f402b(0x36b)])['filter'](_0x5f30fd=>_0x5f30fd[_0x1f402b(0x2ff)]()!==_0x55a58a['unitId'])];for(let _0x3d3b66 of _0x3280e5){let _0x391160=_0x3d3b66[_0x1f402b(0x32f)](),_0x1487fa=_0x3d3b66===_0x5cae4a?_0x20cd09[_0x1f402b(0x3f7)](_0x391160,_0x55a58a[_0x1f402b(0x2a3)]):_0x20cd09[_0x1f402b(0x3e9)](_0x391160,_0x4b1816,_0x55a58a['name']);_0x1487fa&&(_0x2f822e[_0x1f402b(0x174)]({'id':Q['id'],'params':{'unitId':_0x3d3b66[_0x1f402b(0x2ff)](),'op':_0x1487fa,'trigger':uo['id']}}),_0x86b02['unshift']({'id':Q['id'],'params':{'unitId':_0x3d3b66[_0x1f402b(0x2ff)](),'op':_0x4ee92c[_0x1f402b(0x2d8)](_0x391160,_0x1487fa),'trigger':uo['id']}}));}let _0x3c4b80=_0x3793c6[_0x1f402b(0x43e)](_0x5daeb6),_0x127ddd=_0x3793c6[_0x1f402b(0x43e)](_0x5b9522),_0x31479b=_0x127ddd[_0x1f402b(0x11f)](_0x55a58a[_0x1f402b(0x393)]);try{return _0x170e9a(_0x2f822e,_0x3c4b80)[_0x1f402b(0x366)]?(_0x2ab599['focusUnit'](_0x55a58a[_0x1f402b(0x393)]),_0x127ddd[_0x1f402b(0x47c)]({'unitID':_0x55a58a[_0x1f402b(0x393)],'undoMutations':_0x86b02,'redoMutations':_0x2f822e}),!0x0):!0x1;}finally{_0x31479b[_0x1f402b(0x1bb)]();}}},fo={'type':_0x22977e[_0x6c183(0x1b6)],'id':_0x6c183(0x2f7),async 'handler'(_0x416abf,_0xbb01bc){const _0x2ee991=_0x6c183;if(!_0xbb01bc||!Tr[_0x2ee991(0x16a)](_0xbb01bc[_0x2ee991(0x3e8)])||_0xbb01bc[_0x2ee991(0x365)]!==_0xbb01bc['unitId']&&_0xbb01bc[_0x2ee991(0x3e8)]!==_0x1aafeb[_0x2ee991(0x200)]||_0xbb01bc[_0x2ee991(0x2eb)]&&(![_0x2ee991(0x3a4),'owner',_0x2ee991(0x45c)][_0x2ee991(0x16a)](_0xbb01bc[_0x2ee991(0x2eb)]['edit'])||_0xbb01bc[_0x2ee991(0x2eb)]['strategies'][_0x2ee991(0x185)](_0x46427a=>!Tr[_0x2ee991(0x16a)](_0x46427a['action'])||_0xbb01bc['objectId']!==_0xbb01bc[_0x2ee991(0x393)]&&_0x46427a['action']!==_0x1aafeb[_0x2ee991(0x200)])))return!0x1;let _0x5c3e77=Pr(_0xbb01bc['unitId'],_0xbb01bc['objectId'],_0xbb01bc[_0x2ee991(0x3e8)]),_0x633332={'unitId':_0xbb01bc[_0x2ee991(0x393)],'objectId':_0xbb01bc[_0x2ee991(0x365)],'objectType':_0x5c3e77['type']},_0x2ca5a6=_0x416abf['get'](_0x14b422);return _0xbb01bc['remove']?await _0x2ca5a6[_0x2ee991(0x2b2)](_0x633332):_0xbb01bc[_0x2ee991(0x2eb)]?await _0x2ca5a6[_0x2ee991(0x460)](_0x633332,_0xbb01bc[_0x2ee991(0x2eb)]):await _0x2ca5a6[_0x2ee991(0x162)](_0x633332,_0x5c3e77,_0xbb01bc['value']),!0x0;}},po={'type':_0x22977e[_0x6c183(0x1b6)],'id':'base.command.set-permissions',async 'handler'(_0x3da2de,_0x1ab828){const _0x5c9fe8=_0x6c183;if(!(_0x1ab828!=null&&_0x1ab828[_0x5c9fe8(0x393)])||!Array[_0x5c9fe8(0x431)](_0x1ab828[_0x5c9fe8(0x34d)])||!_0x1ab828[_0x5c9fe8(0x34d)][_0x5c9fe8(0x13c)]||_0x1ab828[_0x5c9fe8(0x34d)]['some'](_0x231129=>!(_0x231129!=null&&_0x231129['objectId'])||_0x231129[_0x5c9fe8(0x365)]===_0x1ab828[_0x5c9fe8(0x393)]||_0x231129[_0x5c9fe8(0x2eb)]!==null&&(!_0x231129['policy']||![_0x5c9fe8(0x3a4),_0x5c9fe8(0x45b),_0x5c9fe8(0x45c)]['includes'](_0x231129['policy']['edit'])||!Array[_0x5c9fe8(0x431)](_0x231129[_0x5c9fe8(0x2eb)][_0x5c9fe8(0x2b8)])||!Array[_0x5c9fe8(0x431)](_0x231129['policy'][_0x5c9fe8(0x267)])||_0x231129[_0x5c9fe8(0x2eb)][_0x5c9fe8(0x267)][_0x5c9fe8(0x185)](_0x3fa54b=>_0x3fa54b[_0x5c9fe8(0x3e8)]!==_0x1aafeb['Edit']))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x3da2de[_0x5c9fe8(0x43e)](_0x14b422)[_0x5c9fe8(0x388)](_0x1ab828[_0x5c9fe8(0x34d)]['map'](_0x243c50=>{const _0x2c36ff=_0x5c9fe8;let _0x47fe52=Pr(_0x1ab828['unitId'],_0x243c50[_0x2c36ff(0x365)],_0x1aafeb[_0x2c36ff(0x200)]);return{'unitId':_0x1ab828[_0x2c36ff(0x393)],'objectId':_0x243c50[_0x2c36ff(0x365)],'objectType':_0x47fe52[_0x2c36ff(0x20b)],'policy':_0x243c50[_0x2c36ff(0x2eb)]};}));}};function mo(_0x5e6ca0,_0x40b743){const _0x16d492=_0x6c183;let _0x51b1f9=L(_0x4e3c3d[_0x16d492(0x29d)](_0x5e6ca0)),_0x553717=new Map();return _0x40b743[_0x16d492(0x2e0)](_0x5be5b0=>{const _0x14f7b9=_0x16d492;var _0x175058,_0x311932;let _0x5cd784='recordId'in _0x5be5b0?_0x5be5b0['recordId']:(_0x175058=_0x51b1f9[_0x14f7b9(0x3d0)])==null?void 0x0:_0x175058[_0x5be5b0[_0x14f7b9(0x4b3)]],_0x1b790b=_0x14f7b9(0x2b0)in _0x5be5b0?_0x5be5b0['fieldId']:(_0x311932=_0x51b1f9['colId'])==null?void 0x0:_0x311932[_0x5be5b0[_0x14f7b9(0x295)]],_0x48e95e=_0x1b790b?_0x51b1f9['fields'][_0x1b790b]:void 0x0;if(!_0x5cd784||!_0x1b790b||!_0x48e95e||!_0x51b1f9[_0x14f7b9(0x258)][_0x5cd784])return;let _0x17aedb=xt(_0x5be5b0[_0x14f7b9(0x350)],_0x48e95e),_0x3d8ec1=wt(_0x5be5b0[_0x14f7b9(0x350)],_0x17aedb,_0x48e95e,_0x51b1f9,_0x5cd784),_0x139223=_0x553717[_0x14f7b9(0x43e)](_0x5cd784)??{};_0x139223[_0x1b790b]=_0x3d8ec1,_0x553717['set'](_0x5cd784,_0x139223);}),[..._0x553717][_0x16d492(0x141)](([_0x415c16,_0x25f1a0])=>({'recordId':_0x415c16,'values':_0x25f1a0}));}const ho={'id':'base.command.set-base-range-values','type':_0x22977e['COMMAND'],'handler'(_0x14c060,_0x1c9c97){const _0x327fed=_0x6c183;if(!_0x1c9c97)return!0x1;let _0x1351e8=_0x14c060[_0x327fed(0x43e)](_0x24efe9),{unitId:_0x16e74d,tableId:_0x18cb8d,patches:_0x4f04ca}=_0x1c9c97,_0x49a797=_0x1351e8['getUnit'](_0x16e74d,_0x5c5c99[_0x327fed(0x36b)]);if(!_0x49a797||!$(_0x49a797,_0x18cb8d))return!0x1;let _0x4056bf=_0x14c060[_0x327fed(0x43e)](_0x5daeb6),_0x45fcd0=_0x14c060[_0x327fed(0x43e)](_0x5b9522),_0x477c76=_0x49a797[_0x327fed(0x32f)](),_0x41a9dd=L(_0x477c76[_0x327fed(0x298)][_0x18cb8d]),_0x41389c=_0x4f04ca[_0x327fed(0x141)](_0x352850=>{const _0xfcb518=_0x327fed;var _0x33cb8f;return _0xfcb518(0x347)in _0x352850?_0x352850[_0xfcb518(0x347)]:(_0x33cb8f=_0x41a9dd['rowId'])==null?void 0x0:_0x33cb8f[_0x352850[_0xfcb518(0x4b3)]];})[_0x327fed(0x2be)](_0x44bfc5=>_0x44bfc5!=null),_0x7fc3a7=_0x4f04ca['map'](_0x519f52=>{const _0x29a50d=_0x327fed;var _0x2b96f2;return _0x29a50d(0x2b0)in _0x519f52?_0x519f52['fieldId']:(_0x2b96f2=_0x41a9dd[_0x29a50d(0x1fe)])==null?void 0x0:_0x2b96f2[_0x519f52['col']];})[_0x327fed(0x2be)](_0xaad905=>_0xaad905!=null);if(_0x41389c['length']!==_0x4f04ca[_0x327fed(0x13c)]||_0x7fc3a7[_0x327fed(0x13c)]!==_0x4f04ca[_0x327fed(0x13c)]||!$(_0x49a797,_0x18cb8d,{'recordIds':_0x41389c,'fieldIds':_0x7fc3a7})||_0x4f04ca['some']((_0x1bbdfd,_0x1d838a)=>!ga(_0x49a797,_0x18cb8d,_0x7fc3a7[_0x1d838a],_0x1bbdfd[_0x327fed(0x350)])))return!0x1;let _0x12fb23=Ze(_0x41a9dd,mo(_0x41a9dd,_0x4f04ca)),_0x528df7=_0x4f04ca['flatMap'](_0x199e34=>{const _0x5f4fe5=_0x327fed;var _0x150eb2,_0x1ac3ef;if(_0x5f4fe5(0x4b3)in _0x199e34)return[_0x199e34];let _0x3f5525=(_0x150eb2=_0x41a9dd[_0x5f4fe5(0x375)])==null?void 0x0:_0x150eb2[_0x199e34['recordId']],_0x4d1393=(_0x1ac3ef=_0x41a9dd[_0x5f4fe5(0x390)])==null?void 0x0:_0x1ac3ef[_0x199e34[_0x5f4fe5(0x2b0)]];return _0x3f5525==null||_0x4d1393==null?[]:[{'row':_0x3f5525,'col':_0x4d1393,'value':_0x199e34['value']}];}),_0x4aebe2=new W()[_0x327fed(0x11d)](_0x477c76,_0x18cb8d,_0x528df7),_0x2693e8=new z()[_0x327fed(0x2d8)](_0x477c76,_0x4aebe2),_0x50f342={'unitId':_0x16e74d,'op':_0x4aebe2,'trigger':_0x12fb23[_0x327fed(0x13c)]?ho['id']:void 0x0,'hierarchyChanges':_0x12fb23[_0x327fed(0x13c)]?_0x12fb23:void 0x0,'source':_0x12fb23[_0x327fed(0x13c)]?_0x327fed(0x32a):void 0x0},_0x2be506={'unitId':_0x16e74d,'op':_0x2693e8,'trigger':_0x12fb23[_0x327fed(0x13c)]?ho['id']:void 0x0,'hierarchyChanges':_0x12fb23['length']?_0x12fb23[_0x327fed(0x141)](_0x5f9093=>({..._0x5f9093,'oldParentRecordId':_0x5f9093[_0x327fed(0x474)],'parentRecordId':_0x5f9093[_0x327fed(0x2d1)]})):void 0x0,'source':_0x12fb23[_0x327fed(0x13c)]?_0x327fed(0x23c):void 0x0},_0x565a68={..._0x50f342,'source':_0x12fb23[_0x327fed(0x13c)]?_0x1c9c97['source']??'ui':void 0x0};return _0x4056bf[_0x327fed(0x163)](Q['id'],_0x565a68)?(_0x1351e8[_0x327fed(0x243)](_0x16e74d),_0x45fcd0['pushUndoRedo']({'unitID':_0x16e74d,'undoMutations':[{'id':Q['id'],'params':_0x2be506}],'redoMutations':[{'id':Q['id'],'params':_0x50f342}]}),!0x0):!0x1;}},go={'id':'base.command.set-base-record-values','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x1e0778,_0x2564d0){const _0x414b46=_0x6c183;if(!_0x2564d0)return!0x1;let _0x5af8d5=_0x1e0778[_0x414b46(0x43e)](_0x24efe9),{unitId:_0x15b6f8,tableId:_0x351723,patches:_0x28921d}=_0x2564d0,_0x137ff0=_0x5af8d5[_0x414b46(0x228)](_0x15b6f8,_0x5c5c99[_0x414b46(0x36b)]),_0x502739=_0x28921d[_0x414b46(0x141)](_0x18f7f3=>_0x18f7f3['recordId']),_0x314d33=_0x28921d['flatMap'](_0x57ffe9=>Object[_0x414b46(0x24c)](_0x57ffe9['values']));if(!_0x137ff0||!$(_0x137ff0,_0x351723,{'recordIds':_0x502739,'fieldIds':_0x314d33})||_0x28921d[_0x414b46(0x185)](_0x49a4dc=>Object[_0x414b46(0x279)](_0x49a4dc[_0x414b46(0x227)])[_0x414b46(0x185)](([_0x4f6eab,_0x2e5f94])=>!ga(_0x137ff0,_0x351723,_0x4f6eab,_0x2e5f94))))return!0x1;let _0x56dae6=Ze(_0x137ff0[_0x414b46(0x32f)]()['tables'][_0x351723],_0x28921d),_0x278ff4=_0x1e0778[_0x414b46(0x43e)](_0x5daeb6),_0xba7e20=_0x1e0778[_0x414b46(0x43e)](_0x5b9522),_0x19c97d=_0x1e0778[_0x414b46(0x43e)](Kr)[_0x414b46(0x483)](_0x137ff0,_0x351723,_0x28921d),_0x2d13ea=new z()['invertOp'](_0x137ff0[_0x414b46(0x32f)](),_0x19c97d),_0x28a9e8={'unitId':_0x15b6f8,'op':_0x19c97d,'trigger':_0x56dae6[_0x414b46(0x13c)]?go['id']:void 0x0,'hierarchyChanges':_0x56dae6['length']?_0x56dae6:void 0x0,'source':_0x56dae6[_0x414b46(0x13c)]?_0x2564d0['source']??'ui':void 0x0},_0x8ece9a={..._0x28a9e8,'source':_0x56dae6[_0x414b46(0x13c)]?_0x414b46(0x32a):void 0x0},_0x9b37e5={'unitId':_0x15b6f8,'op':_0x2d13ea,'trigger':_0x56dae6[_0x414b46(0x13c)]?go['id']:void 0x0,'hierarchyChanges':_0x56dae6[_0x414b46(0x13c)]?_0x56dae6[_0x414b46(0x141)](_0x147ec1=>({..._0x147ec1,'oldParentRecordId':_0x147ec1[_0x414b46(0x474)],'parentRecordId':_0x147ec1[_0x414b46(0x2d1)]})):void 0x0,'source':_0x56dae6['length']?_0x414b46(0x23c):void 0x0};return _0x278ff4[_0x414b46(0x163)](Q['id'],_0x28a9e8)?(_0x5af8d5[_0x414b46(0x243)](_0x15b6f8),_0xba7e20[_0x414b46(0x47c)]({'unitID':_0x15b6f8,'undoMutations':[{'id':Q['id'],'params':_0x9b37e5}],'redoMutations':[{'id':Q['id'],'params':_0x8ece9a}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x22977e['COMMAND'],'handler':(_0x48d4bf,_0x243235)=>{const _0x591b74=_0x6c183;if(!_0x243235)return!0x1;let {unitId:_0x5b86d9,tableId:_0x19268c,fieldId:_0x28b94a}=_0x243235,_0x36bcea=_0x48d4bf['get'](_0x24efe9),_0x21b7ae=_0x36bcea[_0x591b74(0x228)](_0x5b86d9,_0x5c5c99[_0x591b74(0x36b)]);if(!_0x21b7ae||!$(_0x21b7ae,_0x19268c))return!0x1;let _0x17aed2=_0x21b7ae[_0x591b74(0x32f)](),_0x2d2c9=_0x17aed2[_0x591b74(0x298)][_0x19268c];if(_0x28b94a!==null&&!F(_0x2d2c9,_0x28b94a))throw new P(_0x591b74(0x48d));if(qe(_0x2d2c9)===_0x28b94a)return!0x0;let _0x380ab6=new W(),_0x5f09b8=R(Object[_0x591b74(0x227)](_0x2d2c9[_0x591b74(0x398)])[_0x591b74(0x17a)](_0x3fe598=>{const _0x471370=_0x591b74;if(!F(_0x2d2c9,_0x3fe598['id']))return[];let _0x2f7fe7=N(_0x3fe598);if(!_0x2f7fe7)return[];let _0xc20bb7=_0x3fe598['id']===_0x28b94a;if(_0x2f7fe7[_0x471370(0x1d4)]===_0x4c2417[_0x471370(0x2e7)]===_0xc20bb7)return[];let _0xa0ff34={..._0x3fe598[_0x471370(0x2ba)],'targetTableId':_0x2f7fe7[_0x471370(0x334)],'multiple':_0x2f7fe7[_0x471370(0x376)]};return _0xc20bb7?_0xa0ff34[_0x471370(0x1d4)]=_0x4c2417['Parent']:delete _0xa0ff34[_0x471370(0x1d4)],[_0x380ab6[_0x471370(0x13b)](_0x17aed2,_0x19268c,_0x3fe598['id'],{'config':_0xa0ff34})];})),_0x279c33=new z()['invertOp'](_0x17aed2,_0x5f09b8),_0x3e5969={'unitId':_0x5b86d9,'op':_0x5f09b8},_0x1402b7={'unitId':_0x5b86d9,'op':_0x279c33};return _0x48d4bf[_0x591b74(0x43e)](_0x5daeb6)[_0x591b74(0x163)](Q['id'],_0x3e5969)?(_0x36bcea['focusUnit'](_0x5b86d9),_0x48d4bf[_0x591b74(0x43e)](_0x5b9522)[_0x591b74(0x47c)]({'unitID':_0x5b86d9,'undoMutations':[{'id':Q['id'],'params':_0x1402b7}],'redoMutations':[{'id':Q['id'],'params':_0x3e5969}]}),!0x0):!0x1;}},vo={'id':'base.command.set-base-view-field-order','type':_0x22977e['COMMAND'],'handler':(_0x4d030e,_0x5c4b33)=>{const _0x2a0d26=_0x6c183;if(!_0x5c4b33)return!0x1;let _0x41977a=_0x4d030e[_0x2a0d26(0x43e)](_0x24efe9),{unitId:_0x1fcea3,tableId:_0x238994,viewId:_0x48db3c,fieldId:_0x15c513,target:_0x324800}=_0x5c4b33,_0x3cbfcf=_0x41977a[_0x2a0d26(0x228)](_0x1fcea3,_0x5c5c99[_0x2a0d26(0x36b)]),_0x2d073b=_0x324800['beforeFieldId']??_0x324800['afterFieldId'];if(!_0x3cbfcf||!_0x2d073b||_0x2d073b===_0x15c513||!$(_0x3cbfcf,_0x238994,{'viewIds':[_0x48db3c],'fieldIds':[_0x15c513,_0x2d073b]}))return!0x1;let _0x218363=_0x3cbfcf[_0x2a0d26(0x32f)]()[_0x2a0d26(0x298)][_0x238994],_0x50bf22=_0x218363['fields'][_0x15c513],_0x82f31c=_0x218363[_0x2a0d26(0x398)][_0x2d073b];if(_0x50bf22['system']===!0x0||_0x50bf22[_0x2a0d26(0x20b)]===_0x3a044b['RecordId']||_0x82f31c[_0x2a0d26(0x3cf)]===!0x0||_0x82f31c[_0x2a0d26(0x20b)]===_0x3a044b['RecordId'])return!0x1;let _0x336186=_0x4d030e[_0x2a0d26(0x43e)](_0x5daeb6),_0x334595=_0x4d030e['get'](_0x5b9522),_0x606034=_0x3cbfcf[_0x2a0d26(0x32f)](),_0x17c3ae=new W()[_0x2a0d26(0x22a)](_0x606034,_0x238994,_0x48db3c,_0x15c513,_0x324800),_0x3010e4=new z()[_0x2a0d26(0x2d8)](_0x606034,_0x17c3ae),_0x58226c={'unitId':_0x1fcea3,'op':_0x17c3ae},_0x2b5f1={'unitId':_0x1fcea3,'op':_0x3010e4};return _0x336186[_0x2a0d26(0x163)](Q['id'],_0x58226c)?(_0x41977a[_0x2a0d26(0x243)](_0x1fcea3),_0x334595[_0x2a0d26(0x47c)]({'unitID':_0x1fcea3,'undoMutations':[{'id':Q['id'],'params':_0x2b5f1}],'redoMutations':[{'id':Q['id'],'params':_0x58226c}]}),!0x0):!0x1;}},yo={'id':_0x6c183(0x2db),'type':_0x22977e['COMMAND'],'handler'(_0x427c1c,_0x2b7aa1){const _0x17de56=_0x6c183;if(!_0x2b7aa1)return!0x1;let _0x463bfa=_0x427c1c[_0x17de56(0x43e)](_0x24efe9),{unitId:_0x29ab68,tableId:_0x1efa5c,viewId:_0x3d1324,fieldId:_0x136ced,visible:_0x3d367a}=_0x2b7aa1,_0x4b4edd=_0x463bfa[_0x17de56(0x228)](_0x29ab68,_0x5c5c99[_0x17de56(0x36b)]);if(!_0x4b4edd||!$(_0x4b4edd,_0x1efa5c,{'viewIds':[_0x3d1324],'fieldIds':[_0x136ced]}))return!0x1;let _0x496ac4=_0x4b4edd[_0x17de56(0x32f)]()[_0x17de56(0x298)][_0x1efa5c][_0x17de56(0x398)][_0x136ced];if(_0x496ac4['system']===!0x0||_0x496ac4[_0x17de56(0x20b)]===_0x3a044b[_0x17de56(0x22f)])return!0x1;let _0x5bde30=_0x427c1c[_0x17de56(0x43e)](_0x5daeb6),_0x12acc5=_0x427c1c[_0x17de56(0x43e)](_0x5b9522),_0x42f645=_0x4b4edd[_0x17de56(0x32f)](),_0x10ffa9=new W()[_0x17de56(0x18c)](_0x42f645,_0x1efa5c,_0x3d1324,_0x136ced,_0x3d367a),_0x3170bb=new z()[_0x17de56(0x2d8)](_0x42f645,_0x10ffa9),_0x3dbc24={'unitId':_0x29ab68,'op':_0x10ffa9},_0x56910c={'unitId':_0x29ab68,'op':_0x3170bb};return _0x5bde30[_0x17de56(0x163)](Q['id'],_0x3dbc24)?(_0x463bfa[_0x17de56(0x243)](_0x29ab68),_0x12acc5['pushUndoRedo']({'unitID':_0x29ab68,'undoMutations':[{'id':Q['id'],'params':_0x56910c}],'redoMutations':[{'id':Q['id'],'params':_0x3dbc24}]}),!0x0):!0x1;}},bo={'id':_0x6c183(0x19e),'type':_0x22977e['COMMAND'],'handler':(_0x975b21,_0x5b9957)=>{const _0x3e44c5=_0x6c183;if(!_0x5b9957)return!0x1;let _0x4f9bcd=_0x975b21['get'](_0x24efe9),{unitId:_0x344f97,tableId:_0x57fc6d,viewId:_0x2c61b7,fieldId:_0x49d1f1,width:_0x4db95d}=_0x5b9957,_0x5f500e=_0x4f9bcd[_0x3e44c5(0x228)](_0x344f97,_0x5c5c99[_0x3e44c5(0x36b)]);if(!_0x5f500e||!$(_0x5f500e,_0x57fc6d,{'viewIds':[_0x2c61b7],'fieldIds':[_0x49d1f1]}))return!0x1;let _0x377a7b=_0x5f500e[_0x3e44c5(0x32f)]()[_0x3e44c5(0x298)][_0x57fc6d]['fields'][_0x49d1f1];if(_0x377a7b['system']===!0x0||_0x377a7b[_0x3e44c5(0x20b)]===_0x3a044b['RecordId'])return!0x1;let _0x307b98=_0x975b21[_0x3e44c5(0x43e)](_0x5daeb6),_0x162e09=_0x975b21[_0x3e44c5(0x43e)](_0x5b9522),_0x5b5c05=_0x5f500e[_0x3e44c5(0x32f)](),_0x5193ef=new W()[_0x3e44c5(0x15e)](_0x5b5c05,_0x57fc6d,_0x2c61b7,_0x49d1f1,_0x4db95d),_0x2c86a2=new z()[_0x3e44c5(0x2d8)](_0x5b5c05,_0x5193ef),_0xbda717={'unitId':_0x344f97,'op':_0x5193ef},_0x22cca0={'unitId':_0x344f97,'op':_0x2c86a2};return _0x307b98[_0x3e44c5(0x163)](Q['id'],_0xbda717)?(_0x4f9bcd['focusUnit'](_0x344f97),_0x162e09[_0x3e44c5(0x47c)]({'unitID':_0x344f97,'undoMutations':[{'id':Q['id'],'params':_0x22cca0}],'redoMutations':[{'id':Q['id'],'params':_0xbda717}]}),!0x0):!0x1;}},xo={'id':'base.command.set-base-view-filter','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x2dd2f8,_0x5bec2d)=>{const _0x37997a=_0x6c183;if(!_0x5bec2d)return!0x1;let _0x53d0a7=_0x2dd2f8[_0x37997a(0x43e)](_0x24efe9),{unitId:_0x5ea0ba,tableId:_0x3f4418,viewId:_0xba101,filter:_0x11a6b5}=_0x5bec2d,_0x17022f=_0x53d0a7[_0x37997a(0x228)](_0x5ea0ba,_0x5c5c99['UNIVER_BASE']),_0x45ce59=(_0x11a6b5==null?void 0x0:_0x11a6b5[_0x37997a(0x396)][_0x37997a(0x141)](_0x29e65c=>_0x29e65c[_0x37997a(0x2b0)]))??[];if(!_0x17022f||!$(_0x17022f,_0x3f4418,{'viewIds':[_0xba101],'fieldIds':_0x45ce59}))return!0x1;let _0x432326=_0x2dd2f8[_0x37997a(0x43e)](_0x5daeb6),_0x278a1a=_0x2dd2f8['get'](_0x5b9522),_0x348ad9=_0x17022f[_0x37997a(0x32f)](),_0x549203=new W()[_0x37997a(0x16e)](_0x348ad9,_0x3f4418,_0xba101,_0x11a6b5),_0x28d399=new z()[_0x37997a(0x2d8)](_0x348ad9,_0x549203),_0x2bebc5={'unitId':_0x5ea0ba,'op':_0x549203},_0x1704d0={'unitId':_0x5ea0ba,'op':_0x28d399};return _0x432326['syncExecuteCommand'](Q['id'],_0x2bebc5)?(_0x53d0a7[_0x37997a(0x243)](_0x5ea0ba),_0x278a1a[_0x37997a(0x47c)]({'unitID':_0x5ea0ba,'undoMutations':[{'id':Q['id'],'params':_0x1704d0}],'redoMutations':[{'id':Q['id'],'params':_0x2bebc5}]}),!0x0):!0x1;}},So={'id':_0x6c183(0x155),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x37ab26,_0x433ae5)=>{const _0x953448=_0x6c183;if(!_0x433ae5)return!0x1;let _0x29f93b=_0x37ab26['get'](_0x24efe9),{unitId:_0x30e5bf,tableId:_0xeabb3e,viewId:_0x1ba7bd,group:_0x144b31}=_0x433ae5,_0x4bc384=_0x29f93b['getUnit'](_0x30e5bf,_0x5c5c99[_0x953448(0x36b)]);if(!_0x4bc384||!$(_0x4bc384,_0xeabb3e,{'viewIds':[_0x1ba7bd],'fieldIds':_0x144b31[_0x953448(0x141)](_0x1b26ae=>_0x1b26ae[_0x953448(0x2b0)])}))return!0x1;let _0x5c0388=_0x37ab26[_0x953448(0x43e)](_0x5daeb6),_0x5483d5=_0x37ab26[_0x953448(0x43e)](_0x5b9522),_0x2957c9=_0x4bc384[_0x953448(0x32f)](),_0xea3211=new W()[_0x953448(0x417)](_0x2957c9,_0xeabb3e,_0x1ba7bd,_0x144b31),_0x101852=new z()[_0x953448(0x2d8)](_0x2957c9,_0xea3211),_0x26a28f={'unitId':_0x30e5bf,'op':_0xea3211},_0x22c3eb={'unitId':_0x30e5bf,'op':_0x101852};return _0x5c0388[_0x953448(0x163)](Q['id'],_0x26a28f)?(_0x29f93b[_0x953448(0x243)](_0x30e5bf),_0x5483d5['pushUndoRedo']({'unitID':_0x30e5bf,'undoMutations':[{'id':Q['id'],'params':_0x22c3eb}],'redoMutations':[{'id':Q['id'],'params':_0x26a28f}]}),!0x0):!0x1;}},Co={'id':_0x6c183(0x36a),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3e8ae3,_0x38caea)=>{const _0x3b80f0=_0x6c183;if(!_0x38caea)return!0x1;let _0x3b62a7=_0x3e8ae3['get'](_0x24efe9),{unitId:_0x49861d,tableId:_0x5afd84,viewId:_0x4f924f,sort:_0x273395}=_0x38caea,_0x182398=_0x3b62a7[_0x3b80f0(0x228)](_0x49861d,_0x5c5c99[_0x3b80f0(0x36b)]);if(!_0x182398||!$(_0x182398,_0x5afd84,{'viewIds':[_0x4f924f],'fieldIds':_0x273395[_0x3b80f0(0x141)](_0x1fd7fa=>_0x1fd7fa['fieldId'])}))return!0x1;let _0x583bd6=_0x3e8ae3[_0x3b80f0(0x43e)](_0x5daeb6),_0x339a0a=_0x3e8ae3[_0x3b80f0(0x43e)](_0x5b9522),_0x102267=_0x182398[_0x3b80f0(0x32f)](),_0x2d6072=new W()[_0x3b80f0(0x23d)](_0x102267,_0x5afd84,_0x4f924f,_0x273395),_0x59c44e=new z()[_0x3b80f0(0x2d8)](_0x102267,_0x2d6072),_0x33acaf={'unitId':_0x49861d,'op':_0x2d6072},_0x3bd8fe={'unitId':_0x49861d,'op':_0x59c44e};return _0x583bd6[_0x3b80f0(0x163)](Q['id'],_0x33acaf)?(_0x3b62a7[_0x3b80f0(0x243)](_0x49861d),_0x339a0a[_0x3b80f0(0x47c)]({'unitID':_0x49861d,'undoMutations':[{'id':Q['id'],'params':_0x3bd8fe}],'redoMutations':[{'id':Q['id'],'params':_0x33acaf}]}),!0x0):!0x1;}},wo={'id':'base.command.update-base-cell','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x5658ff,_0x3c384a){const _0x25e65a=_0x6c183;if(!_0x3c384a)return!0x1;let _0x486f77=_0x5658ff[_0x25e65a(0x43e)](_0x24efe9),{unitId:_0x2d9910,tableId:_0x3a8977,recordId:_0x463d14,fieldId:_0x612a7d,value:_0x191949}=_0x3c384a,_0x6e4dd9=_0x486f77[_0x25e65a(0x228)](_0x2d9910,_0x5c5c99[_0x25e65a(0x36b)]);if(!_0x6e4dd9||!$(_0x6e4dd9,_0x3a8977,{'recordIds':[_0x463d14],'fieldIds':[_0x612a7d]})||!ga(_0x6e4dd9,_0x3a8977,_0x612a7d,_0x191949))return!0x1;let _0x2ce80d=_0x6e4dd9[_0x25e65a(0x32f)]()['tables'][_0x3a8977],_0x2cb1ba=F(_0x2ce80d,_0x612a7d)&&Xe(_0x2ce80d)[_0x25e65a(0x16a)](_0x612a7d),_0x13565e=_0x2cb1ba?tt(_0x2ce80d,_0x612a7d):null,_0x1eb857=(_0x13565e==null?void 0x0:_0x13565e[_0x25e65a(0x3b7)][_0x25e65a(0x43e)](_0x463d14))??null,_0x1e61ac=_0x2cb1ba?Le(_0x191949)[0x0]??null:null;if(_0x13565e){if(_0x1e61ac&&!_0x2ce80d['records'][_0x1e61ac])throw new P(_0x25e65a(0x281));let _0x20b89d=it(_0x13565e,_0x463d14,_0x1e61ac);if(!_0x20b89d[_0x25e65a(0x26e)])throw new P(_0x20b89d[_0x25e65a(0x28a)]===_0x5b4879[_0x25e65a(0x40a)]?'selfParent':_0x20b89d[_0x25e65a(0x28a)]===_0x5b4879[_0x25e65a(0x478)]?'cycle':_0x25e65a(0x138));}let _0x534f93=_0x5658ff['get'](_0x5daeb6),_0x3fa84f=_0x5658ff['get'](_0x5b9522),_0x288659=_0x5658ff['get'](Kr),_0x1ec4c0;try{_0x1ec4c0=_0x288659['createUpdateCellOp'](_0x6e4dd9,_0x3a8977,_0x463d14,_0x612a7d,_0x191949);}catch(_0x132ed6){return console[_0x25e65a(0x45f)](_0x25e65a(0x405),_0x132ed6),!0x1;}let _0x3ddbb3=new z()[_0x25e65a(0x2d8)](_0x6e4dd9[_0x25e65a(0x32f)](),_0x1ec4c0),_0x4df7ba=_0x2cb1ba&&_0x1eb857!==_0x1e61ac?[{'tableId':_0x3a8977,'fieldId':_0x612a7d,'recordId':_0x463d14,'oldParentRecordId':_0x1eb857,'parentRecordId':_0x1e61ac}]:void 0x0,_0x1ebb29={'unitId':_0x2d9910,'op':_0x1ec4c0,'trigger':_0x4df7ba?wo['id']:void 0x0,'hierarchyChanges':_0x4df7ba,'source':_0x4df7ba?_0x3c384a[_0x25e65a(0x495)]??'ui':void 0x0},_0x50ce69={..._0x1ebb29,'source':_0x4df7ba?_0x25e65a(0x32a):void 0x0},_0x5bda4c={'unitId':_0x2d9910,'op':_0x3ddbb3,'trigger':_0x4df7ba?wo['id']:void 0x0,'hierarchyChanges':_0x4df7ba==null?void 0x0:_0x4df7ba[_0x25e65a(0x141)](_0x5710be=>({..._0x5710be,'oldParentRecordId':_0x5710be['parentRecordId'],'parentRecordId':_0x5710be['oldParentRecordId']})),'source':_0x4df7ba?'undo':void 0x0};return _0x534f93[_0x25e65a(0x163)](Q['id'],_0x1ebb29)?(_0x486f77[_0x25e65a(0x243)](_0x2d9910),_0x3fa84f[_0x25e65a(0x47c)]({'unitID':_0x2d9910,'undoMutations':[{'id':Q['id'],'params':_0x5bda4c}],'redoMutations':[{'id':Q['id'],'params':_0x50ce69}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x481555,_0x20ee82){const _0x319f85=_0x6c183;if(!_0x20ee82)return!0x1;let _0x5eda3a=_0x481555['get'](_0x24efe9),{unitId:_0x481841,tableId:_0x2eaa8a,fieldId:_0x3225f9}=_0x20ee82,_0x155340=_0x5eda3a[_0x319f85(0x228)](_0x481841,_0x5c5c99[_0x319f85(0x36b)]);if(!_0x155340||!$(_0x155340,_0x2eaa8a,{'fieldIds':[_0x3225f9]}))return!0x1;let _0x3a63f5=_0x481555[_0x319f85(0x43e)](_0x5daeb6),_0x226745=_0x481555['get'](_0x5b9522),_0x372146=_0x155340[_0x319f85(0x32f)](),_0x1df328=_0x20ee82[_0x319f85(0x1ce)][_0x319f85(0x226)](),_0x4d6763=new W()[_0x319f85(0x13b)](_0x372146,_0x2eaa8a,_0x3225f9,{'description':_0x1df328}),_0x3b7f41=new z()[_0x319f85(0x2d8)](_0x155340[_0x319f85(0x32f)](),_0x4d6763),_0x40a7f3={'unitId':_0x481841,'op':_0x4d6763},_0x2b8887={'unitId':_0x481841,'op':_0x3b7f41};return _0x3a63f5[_0x319f85(0x163)](Q['id'],_0x40a7f3)?(_0x5eda3a[_0x319f85(0x243)](_0x481841),_0x226745[_0x319f85(0x47c)]({'unitID':_0x481841,'undoMutations':[{'id':Q['id'],'params':_0x2b8887}],'redoMutations':[{'id':Q['id'],'params':_0x40a7f3}]}),!0x0):!0x1;}},Eo={'id':'base.command.update-base-field','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x559bed,_0x1a2738)=>{const _0x25473a=_0x6c183;if(!_0x1a2738)return!0x1;let _0x14923b=_0x559bed['get'](_0x24efe9),{unitId:_0x52d70f,tableId:_0x2f2899,fieldId:_0x6b29ff,patch:_0x4eafee}=_0x1a2738,_0x597e4c=_0x14923b[_0x25473a(0x228)](_0x52d70f,_0x5c5c99['UNIVER_BASE']);if(!_0x597e4c||_0x6b29ff===_0x5a35e2||!$(_0x597e4c,_0x2f2899,{'fieldIds':[_0x6b29ff]}))return!0x1;let _0x56fc18=_0x559bed['get'](_0x5daeb6),_0xd68f3e=_0x559bed[_0x25473a(0x43e)](_0x5b9522),_0x17db99=_0x597e4c['getSnapshot']();if(!ha(_0x597e4c,_0x2f2899,{..._0x17db99[_0x25473a(0x298)][_0x2f2899]['fields'][_0x6b29ff],..._0x4eafee}))return!0x1;let _0x497622=new W()[_0x25473a(0x13b)](_0x17db99,_0x2f2899,_0x6b29ff,_0x4eafee),_0x5b0c1b=new z()[_0x25473a(0x2d8)](_0x17db99,_0x497622),_0x56e7e4={'unitId':_0x52d70f,'op':_0x497622},_0x5bc676={'unitId':_0x52d70f,'op':_0x5b0c1b};return _0x56fc18[_0x25473a(0x163)](Q['id'],_0x56e7e4)?(_0x14923b[_0x25473a(0x243)](_0x52d70f),_0xd68f3e[_0x25473a(0x47c)]({'unitID':_0x52d70f,'undoMutations':[{'id':Q['id'],'params':_0x5bc676}],'redoMutations':[{'id':Q['id'],'params':_0x56e7e4}]}),!0x0):!0x1;}},Do={'id':_0x6c183(0x22d),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x300004,_0x3729ed)=>{const _0x54ff90=_0x6c183;if(!_0x3729ed)return!0x1;let _0x57a8f0=_0x300004[_0x54ff90(0x43e)](_0x24efe9),{unitId:_0x39cbb8,tableId:_0x54ee49,viewId:_0x21eb18,patch:_0xb76e39}=_0x3729ed,_0x43f253=_0x57a8f0['getUnit'](_0x39cbb8,_0x5c5c99['UNIVER_BASE']);if(!_0x43f253||!$(_0x43f253,_0x54ee49,{'viewIds':[_0x21eb18]}))return!0x1;let _0xeaa984=_0x300004[_0x54ff90(0x43e)](_0x5daeb6),_0x396d5d=_0x300004[_0x54ff90(0x43e)](_0x5b9522),_0x4affd6=_0x43f253[_0x54ff90(0x32f)](),_0x1b0c06=new W()[_0x54ff90(0x2cf)](_0x4affd6,_0x54ee49,_0x21eb18,_0xb76e39),_0x332bf1=new z()[_0x54ff90(0x2d8)](_0x4affd6,_0x1b0c06),_0x200f50={'unitId':_0x39cbb8,'op':_0x1b0c06},_0x14d4b6={'unitId':_0x39cbb8,'op':_0x332bf1};return _0xeaa984['syncExecuteCommand'](Q['id'],_0x200f50)?(_0x57a8f0[_0x54ff90(0x243)](_0x39cbb8),_0x396d5d[_0x54ff90(0x47c)]({'unitID':_0x39cbb8,'undoMutations':[{'id':Q['id'],'params':_0x14d4b6}],'redoMutations':[{'id':Q['id'],'params':_0x200f50}]}),!0x0):!0x1;}},Oo={'id':_0x6c183(0x3f0),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x4d6d2c,_0x1b710f)=>{const _0x75f4ca=_0x6c183;if(!_0x1b710f)return!0x1;let _0x34eebb=_0x4d6d2c[_0x75f4ca(0x43e)](_0x24efe9),{unitId:_0x1ae3b3,tableId:_0x368843,recordId:_0x45adba,orderKey:_0x5a1a65}=_0x1b710f,_0x3c58d0=_0x34eebb['getUnit'](_0x1ae3b3,_0x5c5c99['UNIVER_BASE']);if(!_0x3c58d0||!$(_0x3c58d0,_0x368843,{'recordIds':[_0x45adba]}))return!0x1;let _0x2823d0=_0x4d6d2c[_0x75f4ca(0x43e)](_0x5daeb6),_0x20be46=_0x4d6d2c['get'](_0x5b9522),_0x26c10b=_0x3c58d0[_0x75f4ca(0x32f)](),_0x3efc54=new W()['updateRecordOrder'](_0x26c10b,_0x368843,_0x45adba,_0x5a1a65),_0x384320=new z()[_0x75f4ca(0x2d8)](_0x26c10b,_0x3efc54),_0x56a3ac={'unitId':_0x1ae3b3,'op':_0x3efc54},_0xfa72ba={'unitId':_0x1ae3b3,'op':_0x384320};return _0x2823d0['syncExecuteCommand'](Q['id'],_0x56a3ac)?(_0x34eebb[_0x75f4ca(0x243)](_0x1ae3b3),_0x20be46[_0x75f4ca(0x47c)]({'unitID':_0x1ae3b3,'undoMutations':[{'id':Q['id'],'params':_0xfa72ba}],'redoMutations':[{'id':Q['id'],'params':_0x56a3ac}]}),!0x0):!0x1;}};let ko=function(_0xe40efb){const _0x2db8d2=_0x6c183;return _0xe40efb[_0x2db8d2(0x477)]=_0x2db8d2(0x49e),_0xe40efb[_0x2db8d2(0x440)]=_0x2db8d2(0x2ee),_0xe40efb['Delete']=_0x2db8d2(0x2fc),_0xe40efb[_0x2db8d2(0x471)]=_0x2db8d2(0x328),_0xe40efb;}({});const Ao={'id':_0x6c183(0x319),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x15f221,_0x234869)=>{const _0x56fc69=_0x6c183;var _0x973f7e;if(!_0x234869)return!0x1;let _0x537a0b=_0x15f221[_0x56fc69(0x43e)](_0x24efe9),_0x20487b=_0x537a0b[_0x56fc69(0x228)](_0x234869[_0x56fc69(0x393)],_0x5c5c99[_0x56fc69(0x36b)]);if(!_0x20487b||!$(_0x20487b,_0x234869[_0x56fc69(0x210)],{'viewIds':[_0x234869[_0x56fc69(0x288)]]}))return!0x1;let _0x3ac0ed=_0x20487b[_0x56fc69(0x32f)](),_0x32858e=_0x3ac0ed[_0x56fc69(0x298)][_0x234869[_0x56fc69(0x210)]],_0x4ab373=jo(((_0x973f7e=_0x32858e['views'][_0x234869[_0x56fc69(0x288)]][_0x56fc69(0x2ba)][_0x56fc69(0x409)])==null?void 0x0:_0x973f7e[_0x56fc69(0x4c4)])??[],_0x234869);if(!_0x4ab373)return!0x1;Mo(_0x32858e,_0x4ab373);let _0x134dc0=new W()[_0x56fc69(0x2cf)](_0x3ac0ed,_0x234869[_0x56fc69(0x210)],_0x234869[_0x56fc69(0x288)],{'conditionalColoring':_0x4ab373[_0x56fc69(0x13c)]?{'rules':_0x4ab373}:null}),_0x2c7f60=new z()[_0x56fc69(0x2d8)](_0x3ac0ed,_0x134dc0),_0x526909={'unitId':_0x234869['unitId'],'op':_0x134dc0},_0x1db934={'unitId':_0x234869[_0x56fc69(0x393)],'op':_0x2c7f60};return _0x15f221[_0x56fc69(0x43e)](_0x5daeb6)[_0x56fc69(0x163)](Q['id'],_0x526909)?(_0x537a0b[_0x56fc69(0x243)](_0x234869['unitId']),_0x15f221[_0x56fc69(0x43e)](_0x5b9522)[_0x56fc69(0x47c)]({'unitID':_0x234869[_0x56fc69(0x393)],'undoMutations':[{'id':Q['id'],'params':_0x1db934}],'redoMutations':[{'id':Q['id'],'params':_0x526909}]}),!0x0):!0x1;}};function jo(_0x12dcf1,_0x26869f){const _0x2a7da3=_0x6c183;switch(_0x26869f[_0x2a7da3(0x20b)]){case _0x2a7da3(0x49e):return _0x4e3c3d[_0x2a7da3(0x29d)](_0x26869f[_0x2a7da3(0x4c4)]);case _0x2a7da3(0x2ee):return[..._0x4e3c3d[_0x2a7da3(0x29d)](_0x12dcf1),_0x4e3c3d[_0x2a7da3(0x29d)](_0x26869f[_0x2a7da3(0x4bb)])];case'delete':{let _0x5645d6=_0x12dcf1['filter'](_0x1e0a3a=>_0x1e0a3a['id']!==_0x26869f['ruleId']);return _0x5645d6[_0x2a7da3(0x13c)]===_0x12dcf1[_0x2a7da3(0x13c)]?null:_0x4e3c3d[_0x2a7da3(0x29d)](_0x5645d6);}case _0x2a7da3(0x328):return _0x12dcf1[_0x2a7da3(0x13c)]?[]:null;}}function Mo(_0x37aed7,_0x5ee2e0){const _0x17b624=_0x6c183;if(!Array[_0x17b624(0x431)](_0x5ee2e0))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.');let _0x389574=new Set();for(let [_0x128c86,_0x1f42c4]of _0x5ee2e0[_0x17b624(0x279)]())Po(_0x37aed7,_0x1f42c4,No(_0x1f42c4,_0x128c86,_0x389574));}function No(_0x43b043,_0x4ad330,_0x25e85f){const _0x5ce289=_0x6c183;if(!_0x43b043||typeof _0x43b043!=_0x5ce289(0x3d7))throw TypeError(_0x5ce289(0x254)+_0x4ad330+'\x20must\x20be\x20an\x20object.');let _0x52465d=typeof _0x43b043['id']==_0x5ce289(0x425)&&_0x43b043['id'][_0x5ce289(0x226)]()?'\x22'+_0x43b043['id']+'\x22':_0x5ce289(0x299)+_0x4ad330;if(typeof _0x43b043['id']!=_0x5ce289(0x425)||!_0x43b043['id'][_0x5ce289(0x226)]())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x52465d+_0x5ce289(0x3b1));if(_0x25e85f[_0x5ce289(0x34b)](_0x43b043['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x43b043['id']+'\x22.');_0x25e85f[_0x5ce289(0x2ee)](_0x43b043['id']);let _0x326eb3=typeof _0x43b043[_0x5ce289(0x276)]==_0x5ce289(0x425)&&_0x43b043[_0x5ce289(0x276)]['trim']()?new _0x4014bd(_0x43b043['color']):null;if(!(_0x326eb3!=null&&_0x326eb3['isValid']))throw Error(_0x5ce289(0x25d)+_0x52465d+_0x5ce289(0x463));return _0x52465d;}function Po(_0x3f1574,_0xeddad7,_0x5a7223){const _0x3c1521=_0x6c183;let _0x268724=new Set(Object[_0x3c1521(0x227)](_0x4b6a96)),_0x5dc321=new Set(Object['values'](_0x50d725)),_0xa2bf88=new Set(Object[_0x3c1521(0x227)](_0x2b5b2b));if(!_0x268724[_0x3c1521(0x34b)](_0xeddad7[_0x3c1521(0x3dc)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x342)+String(_0xeddad7[_0x3c1521(0x3dc)])+'\x22.');let _0x4bb136=typeof _0xeddad7[_0x3c1521(0x2b0)]==_0x3c1521(0x425)?_0x3f1574['fields'][_0xeddad7[_0x3c1521(0x2b0)]]:void 0x0;if(!_0x4bb136||_0x4bb136['system']===!0x0||_0x4bb136[_0x3c1521(0x20b)]===_0x3a044b['RecordId'])throw Error(_0x3c1521(0x25d)+_0x5a7223+'\x20references\x20missing\x20or\x20non-public\x20field\x20\x22'+String(_0xeddad7['fieldId'])+'\x22.');if(!_0x5dc321['has'](_0xeddad7[_0x3c1521(0x220)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x5a7223+_0x3c1521(0x4c0)+String(_0xeddad7[_0x3c1521(0x220)])+'\x22.');if(_0xeddad7[_0x3c1521(0x3ea)]!==void 0x0&&!_0xa2bf88[_0x3c1521(0x34b)](_0xeddad7[_0x3c1521(0x3ea)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x48e)+String(_0xeddad7[_0x3c1521(0x3ea)])+'\x22.');if(_0xeddad7[_0x3c1521(0x3dc)]===_0x4b6a96[_0x3c1521(0x286)])return;let _0x3a49fb=vn(_0x4bb136[_0x3c1521(0x20b)]);if(!_0x3a49fb[_0x3c1521(0x16a)](_0xeddad7[_0x3c1521(0x220)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x34c)+_0xeddad7[_0x3c1521(0x220)]+_0x3c1521(0x349)+_0x4bb136[_0x3c1521(0x20b)]+'\x22.\x20Allowed\x20operators:\x20'+_0x3a49fb['join'](',\x20')+'.');if(_0xeddad7[_0x3c1521(0x3ea)]!==void 0x0&&!yn(_0x4bb136[_0x3c1521(0x20b)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x29b));}const Fo={'id':'base.command.update-base-view-config','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x579a7d,_0x4293fa)=>{const _0x241a63=_0x6c183;if(!_0x4293fa)return!0x1;let _0x197e91=_0x579a7d[_0x241a63(0x43e)](_0x24efe9),{unitId:_0x4e32bc,tableId:_0x112f0e,viewId:_0xf25c69,patch:_0x5ef700}=_0x4293fa,_0x17b217=_0x197e91['getUnit'](_0x4e32bc,_0x5c5c99[_0x241a63(0x36b)]);if(!_0x17b217||!$(_0x17b217,_0x112f0e,{'viewIds':[_0xf25c69]}))return!0x1;let _0x379a9d=_0x579a7d[_0x241a63(0x43e)](_0x5daeb6),_0x284cb1=_0x579a7d[_0x241a63(0x43e)](_0x5b9522),_0x5cd893=_0x17b217[_0x241a63(0x32f)](),_0x3bef41=new W()['updateViewConfig'](_0x5cd893,_0x112f0e,_0xf25c69,_0x5ef700),_0x5779a4=new z()[_0x241a63(0x2d8)](_0x5cd893,_0x3bef41),_0xd8fa34={'unitId':_0x4e32bc,'op':_0x3bef41},_0x17044d={'unitId':_0x4e32bc,'op':_0x5779a4};return _0x379a9d[_0x241a63(0x163)](Q['id'],_0xd8fa34)?(_0x197e91['focusUnit'](_0x4e32bc),_0x284cb1['pushUndoRedo']({'unitID':_0x4e32bc,'undoMutations':[{'id':Q['id'],'params':_0x17044d}],'redoMutations':[{'id':Q['id'],'params':_0xd8fa34}]}),!0x0):!0x1;}},Io={'id':_0x6c183(0x192),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x55db61,_0x357769){const _0x27e76e=_0x6c183;if(!_0x357769)return{'valid':!0x1,'reason':_0x27e76e(0x33e)};let _0x265563=_0x55db61[_0x27e76e(0x43e)](_0x24efe9)['getUnit'](_0x357769[_0x27e76e(0x393)],_0x5c5c99['UNIVER_BASE']),_0x187ec4=_0x265563==null?void 0x0:_0x265563[_0x27e76e(0x32f)](),_0x172ae5=_0x187ec4==null?void 0x0:_0x187ec4[_0x27e76e(0x298)][_0x357769[_0x27e76e(0x210)]];return!_0x187ec4||!_0x172ae5?{'valid':!0x1,'reason':_0x27e76e(0x14c)}:new Xi()['validateFormula'](_0x357769[_0x27e76e(0x3bc)],_0x172ae5,{'snapshot':_0x187ec4});}};let Lo=class extends _0x65b7b4{constructor(_0x16874b){const _0x3faeb0=_0x6c183;super(_0x16874b,_0x3faeb0(0x166),_0x5c5c99[_0x3faeb0(0x36b)],[_0x3cf49a[_0x3faeb0(0x475)],_0x3cf49a[_0x3faeb0(0x1f6)],_0x3cf49a[_0x3faeb0(0x3c8)],_0x3cf49a[_0x3faeb0(0x33a)],_0x3cf49a[_0x3faeb0(0x382)]]);}};Lo=X([Y(0x0,_0x3ca90e)],Lo);const Ro={'id':_0x6c183(0x47a),'type':_0x22977e[_0x6c183(0x3b0)],'handler':(_0x3862a5,_0x2dc3a1)=>!_0x2dc3a1||!_0x3862a5[_0x6c183(0x43e)](_0x24efe9)[_0x6c183(0x228)](_0x2dc3a1[_0x6c183(0x393)],_0x5c5c99['UNIVER_BASE'])?!0x1:_0x3862a5['get'](Lo)[_0x6c183(0x122)](_0x2dc3a1[_0x6c183(0x393)],_0x2dc3a1[_0x6c183(0x374)],_0x2dc3a1[_0x6c183(0x365)],_0x2dc3a1[_0x6c183(0x4bb)])},zo={'id':_0x6c183(0x3d6),'type':_0x22977e[_0x6c183(0x3b0)],'handler':(_0x3ffd83,_0x41a327)=>!_0x41a327||!_0x3ffd83['get'](_0x24efe9)[_0x6c183(0x228)](_0x41a327[_0x6c183(0x393)],_0x5c5c99[_0x6c183(0x36b)])?!0x1:_0x3ffd83[_0x6c183(0x43e)](Lo)['setRules'](_0x41a327['unitId'],_0x41a327[_0x6c183(0x4c4)])};function Bo(_0x5bc001){const _0x3eaec9=_0x6c183;let _0x4e7052=_0x5bc001[_0x3eaec9(0x2a4)]??Date[_0x3eaec9(0x2a4)](),_0x3e714e=_0x5bc001[_0x3eaec9(0x3b2)]??_0x5bc001['id']+_0x3eaec9(0x3a5),_0x278a88=_0x5bc001[_0x3eaec9(0x3ce)]??_0x5bc001['id']+_0x3eaec9(0x1a2),_0x2507aa=_0x5bc001['recordCount']??0x0,_0x2137cc=_0x96204b(),_0x4ad020={'id':_0x3e714e,'name':_0x5bc001[_0x3eaec9(0x194)]??_0x3eaec9(0x20c),'type':_0x3a044b[_0x3eaec9(0x315)],'config':{'placeholder':_0x3eaec9(0x21e)}},_0x35c599={},_0x18beaa=[],_0x8d0ee7={},_0x500c2f={},_0x2a55b2={};for(let _0x5a3401=0x0;_0x5a3401<_0x2507aa;_0x5a3401++){let _0x9419b8=_0x5bc001['id']+'-record-'+(_0x5a3401+0x1);_0x35c599[_0x9419b8]={'id':_0x9419b8,'values':{[_0x5a35e2]:_0x9419b8,..._0x5bc001[_0x3eaec9(0x355)]?{[_0x3e714e]:_0x5bc001[_0x3eaec9(0x355)]+'\x20'+(_0x5a3401+0x1)}:{}},'orderKey':String(_0x5a3401+0x1)[_0x3eaec9(0x20a)](0x4,'0'),'createdAt':_0x4e7052,'updatedAt':_0x4e7052},_0x18beaa[_0x3eaec9(0x174)](_0x9419b8),_0x8d0ee7[_0x9419b8]=_0x5a3401,_0x500c2f[_0x5a3401]=_0x9419b8,_0x2a55b2[_0x5a3401]={0x0:{'v':_0x9419b8,'t':_0x4dac72[_0x3eaec9(0x18a)]}},_0x5bc001[_0x3eaec9(0x355)]&&(_0x2a55b2[_0x5a3401][0x1]={'v':_0x5bc001[_0x3eaec9(0x355)]+'\x20'+(_0x5a3401+0x1),'t':_0x4dac72['STRING']});}let _0x5615ee={'id':_0x278a88,'tableId':_0x5bc001['id'],'name':_0x3eaec9(0x161),'type':_0x3ece31[_0x3eaec9(0x161)],'fieldOrder':[_0x5a35e2,_0x3e714e],'fieldSettings':{[_0x5a35e2]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x5bc001['id'],'name':_0x5bc001['name'],'primaryFieldId':_0x3e714e,'fieldOrder':[_0x5a35e2,_0x3e714e],'fields':{[_0x5a35e2]:_0x2137cc,[_0x3e714e]:_0x4ad020},'records':_0x35c599,'recordOrder':_0x18beaa,'rowIndex':_0x8d0ee7,'rowId':_0x500c2f,'colIndex':{[_0x5a35e2]:0x0,[_0x3e714e]:0x1},'colId':{0x0:_0x5a35e2,0x1:_0x3e714e},'cellData':_0x2a55b2,'views':{[_0x278a88]:_0x5615ee},'viewOrder':[_0x278a88]};}const Vo=_0x6c183(0x120);function Ho(_0x5c3cb2){const _0x544d32=_0x6c183;let _0x559fdd=Bo({'id':_0x5c3cb2[_0x544d32(0x42d)],'name':_0x5c3cb2[_0x544d32(0x2a3)]??_0x5c3cb2[_0x544d32(0x2d2)],'recordCount':0x0});return{..._0x559fdd,'resources':{..._0x559fdd[_0x544d32(0x421)]??{},[Vo]:Go(_0x5c3cb2)}};}function Uo(_0x8be919){const _0x58efbc=_0x6c183;return{'id':Q['id'],'params':{'unitId':_0x8be919[_0x58efbc(0x393)],'op':_0x53fdae['type']['compose'](_0x53fdae['insertOp']([_0x58efbc(0x298),_0x8be919[_0x58efbc(0x4c7)]['id']],_0x8be919['table']),_0x53fdae[_0x58efbc(0x13f)]([_0x58efbc(0x338),_0x8be919[_0x58efbc(0x159)]??_0x8be919[_0x58efbc(0x17c)][_0x58efbc(0x338)][_0x58efbc(0x13c)]],_0x8be919[_0x58efbc(0x4c7)]['id'])),'trigger':_0x58efbc(0x1b4)}};}function Wo(_0x3e5f16){const _0x2658ea=_0x6c183;let _0x4e1ae5=_0x3e5f16[_0x2658ea(0x17c)][_0x2658ea(0x338)][_0x2658ea(0x44e)](_0x3e5f16[_0x2658ea(0x210)]);if(!(!_0x3e5f16[_0x2658ea(0x17c)][_0x2658ea(0x298)][_0x3e5f16[_0x2658ea(0x210)]]||_0x4e1ae5<0x0))return{'id':Q['id'],'params':{'unitId':_0x3e5f16[_0x2658ea(0x393)],'op':_0x53fdae['type'][_0x2658ea(0x2a2)](_0x53fdae[_0x2658ea(0x37b)]([_0x2658ea(0x298),_0x3e5f16[_0x2658ea(0x210)]],_0x3e5f16[_0x2658ea(0x17c)]['tables'][_0x3e5f16[_0x2658ea(0x210)]]),_0x53fdae['removeOp']([_0x2658ea(0x338),_0x4e1ae5],_0x3e5f16[_0x2658ea(0x210)])),'trigger':_0x2658ea(0x1b4)}};}function Go(_0x3c96d2){const _0x568f1b=_0x6c183;return{'version':0x1,'embedId':_0x3c96d2['embedId'],'hostAnchorId':_0x3c96d2[_0x568f1b(0x42d)],'childUnitId':_0x3c96d2[_0x568f1b(0x3ca)],'childType':_0x3c96d2[_0x568f1b(0x45e)]};}function Ko(_0x5cb814){const _0x4c5bb6=_0x6c183;let _0x5ee77f=Math[_0x4c5bb6(0x482)](0x0,Number(_0x5cb814['decimalPlaces']??0x0)),_0x580d2f=_0x5cb814[_0x4c5bb6(0x1bd)]===!0x1?'0':'#,##0',_0x1ae7c1=_0x5ee77f?'.'+'0'['repeat'](_0x5ee77f):'',_0x2f7fd2=Jo(_0x5cb814[_0x4c5bb6(0x1da)]);return''+(_0x5cb814[_0x4c5bb6(0x4ba)]?Yo(_0x5cb814[_0x4c5bb6(0x4ba)]):'')+_0x580d2f+_0x1ae7c1+_0x2f7fd2;}function qo(_0x4d2f2e,_0x5505a0){const _0x19e8f8=_0x6c183;let _0x3ec068=Ko(_0x5505a0),_0x5e6a54=_0x3bb8d4[_0x19e8f8(0x3cd)](_0x3ec068,_0x4d2f2e,{'throws':!0x1});return Xo(String(_0x5e6a54),_0x5505a0['separatorStyle'],_0x5505a0[_0x19e8f8(0x30b)]);}function Jo(_0x293905){const _0x53007b=_0x6c183;return _0x293905==='K'?_0x53007b(0x331):_0x293905==='M'?_0x53007b(0x22c):_0x293905==='B'?_0x53007b(0x490):'';}function Yo(_0x315b37){const _0x4b7704=_0x6c183;return/^[A-Z]+$/i[_0x4b7704(0x215)](_0x315b37)?'\x22'+_0x315b37+'\x22':_0x315b37;}function Xo(_0x8995cf,_0x5d7db8,_0xcd32a1){const _0x1fe3fd=_0x6c183;let _0x3f30e3=_0x5d7db8===_0x1fe3fd(0x231)?Zo(_0xcd32a1):_0x5d7db8;return _0x3f30e3===_0x1fe3fd(0x2cc)?_0x8995cf['replace'](/,/g,'\x00')['replace'](/\./g,',')['replace'](/\0/g,'.'):_0x3f30e3===_0x1fe3fd(0x186)?_0x8995cf[_0x1fe3fd(0x14e)](/,/g,'\x20')[_0x1fe3fd(0x14e)](/\./g,','):_0x3f30e3===_0x1fe3fd(0x394)?_0x8995cf[_0x1fe3fd(0x14e)](/,/g,'\x20'):_0x8995cf;}function Zo(_0x31f993){const _0x1afae5=_0x6c183;var _0x11e194,_0x4c7826;let _0x3f0f8a=_0x31f993||new Intl[(_0x1afae5(0x420))]()[_0x1afae5(0x38b)]()[_0x1afae5(0x30b)],_0x586638;try{_0x586638=new Intl[(_0x1afae5(0x420))](_0x3f0f8a,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x1afae5(0x125)](0xf4240);}catch{return _0x1afae5(0x492);}let _0x4e73a5=(_0x11e194=_0x586638[_0x1afae5(0x392)](_0x5d375=>_0x5d375[_0x1afae5(0x20b)]===_0x1afae5(0x1f2)))==null?void 0x0:_0x11e194[_0x1afae5(0x350)],_0x1addf9=(_0x4c7826=_0x586638[_0x1afae5(0x392)](_0x5d3152=>_0x5d3152[_0x1afae5(0x20b)]==='decimal'))==null?void 0x0:_0x4c7826[_0x1afae5(0x350)],_0x5845a4=_0x4e73a5==='\u00a0'||_0x4e73a5==='\u202f'?'\x20':_0x4e73a5;return _0x5845a4==='.'&&_0x1addf9===','?_0x1afae5(0x2cc):_0x5845a4==='\x20'&&_0x1addf9===','?_0x1afae5(0x186):_0x5845a4==='\x20'&&_0x1addf9==='.'?_0x1afae5(0x394):_0x1afae5(0x492);}function Qo(_0x499d78,_0x39c9b2){const _0xa03c55=_0x6c183;let _0x434e28=_0x39c9b2&&typeof _0x39c9b2=='object'&&!Array[_0xa03c55(0x431)](_0x39c9b2)?_0x39c9b2:{},_0x54ed90=$o(_0x434e28[_0xa03c55(0x27f)],0x0,0x2,0x0),_0x48ec03=_0x499d78['toFixed'](_0x54ed90);return _0x434e28[_0xa03c55(0x3cd)]===_0xa03c55(0x24b)?_0x48ec03:_0x48ec03+'%';}function $o(_0x45cd36,_0x402642,_0x454093,_0x14d794){const _0x35ec78=_0x6c183;if(_0x45cd36==null||_0x45cd36==='')return _0x14d794;let _0x41c840=typeof _0x45cd36==_0x35ec78(0x24b)?_0x45cd36:Number(_0x45cd36);return Number[_0x35ec78(0x143)](_0x41c840)?Math[_0x35ec78(0x482)](_0x402642,Math['min'](_0x454093,Math[_0x35ec78(0x343)](_0x41c840))):_0x14d794;}const es=[_0x6c183(0x115),_0x6c183(0x152),'empty',_0x6c183(0x118),'sum','average','min','max'],ts=[_0x6c183(0x115),_0x6c183(0x152),_0x6c183(0x1b1),_0x6c183(0x118)],ns=[_0x6c183(0x129),_0x6c183(0x23b),'min',_0x6c183(0x482)],rs=[_0x6c183(0x27a),'max'],is=new Set([_0x3a044b['Number'],_0x3a044b['Currency'],_0x3a044b[_0x6c183(0x140)],_0x3a044b[_0x6c183(0x2c3)]]),as=new Set([_0x3a044b[_0x6c183(0x386)],_0x3a044b['Person'],_0x3a044b[_0x6c183(0x1ad)]]),os=_0x6c183(0x453);function ss(_0x58502c){const _0x33f011=_0x6c183;return typeof _0x58502c==_0x33f011(0x425)&&es[_0x33f011(0x16a)](_0x58502c);}function cs(_0x97406){const _0x40c758=_0x6c183;return!_0x97406||typeof _0x97406!=_0x40c758(0x3d7)?{}:Object[_0x40c758(0x176)](Object[_0x40c758(0x279)](_0x97406)[_0x40c758(0x2be)](_0x398e07=>ss(_0x398e07[0x1])));}function ls(_0x2441b1){const _0x344693=_0x6c183;return is[_0x344693(0x34b)](_0x2441b1[_0x344693(0x20b)])?[...ts,...ns]:_0x2441b1[_0x344693(0x20b)]===_0x3a044b['Formula']?[...ts,...ws(_0x2441b1)==='date'?rs:ns]:ts;}function us(_0x362999,_0x40e319){return ls(_0x362999)['includes'](_0x40e319);}function ds(_0x13571e,_0x3eb58d,_0x28a45f){const _0x2a59c3=_0x6c183;if(!us(_0x13571e,_0x28a45f))return null;let _0x15b724=_0x3eb58d['filter'](_0x13c76c=>!ps(_0x13571e,_0x13c76c));switch(_0x28a45f){case _0x2a59c3(0x115):return _0x3eb58d[_0x2a59c3(0x13c)];case _0x2a59c3(0x152):return _0x15b724[_0x2a59c3(0x13c)];case _0x2a59c3(0x1b1):return _0x3eb58d[_0x2a59c3(0x13c)]-_0x15b724[_0x2a59c3(0x13c)];case _0x2a59c3(0x118):return new Set(_0x15b724[_0x2a59c3(0x141)](_0x22a2b0=>_s(_0x13571e,_0x22a2b0)))[_0x2a59c3(0x15b)];case'sum':{let _0xda07d0=ms(_0x13571e,_0x15b724);return _0xda07d0[_0x2a59c3(0x13c)]?gs(_0xda07d0):null;}case _0x2a59c3(0x23b):{let _0x4c3a0f=ms(_0x13571e,_0x15b724);return _0x4c3a0f[_0x2a59c3(0x13c)]?gs(_0x4c3a0f)/_0x4c3a0f[_0x2a59c3(0x13c)]:null;}case _0x2a59c3(0x27a):{let _0x5b190d=ms(_0x13571e,_0x15b724);return _0x5b190d['length']?Math['min'](..._0x5b190d):null;}case'max':{let _0x47afef=ms(_0x13571e,_0x15b724);return _0x47afef['length']?Math[_0x2a59c3(0x482)](..._0x47afef):null;}}}function fs(_0x3bba8c,_0x5cde9f,_0x15a317){const _0xec8b54=_0x6c183;if(_0x15a317==null||!Number['isFinite'](_0x15a317))return'-';if(ts[_0xec8b54(0x16a)](_0x5cde9f))return String(_0x15a317);switch(_0x3bba8c[_0xec8b54(0x20b)]){case _0x3a044b[_0xec8b54(0x2f5)]:return qo(_0x15a317,xs(_0x3bba8c));case _0x3a044b[_0xec8b54(0x14d)]:return qo(_0x15a317,Ss(_0x3bba8c));case _0x3a044b[_0xec8b54(0x140)]:return Qo(_0x15a317,_0x3bba8c[_0xec8b54(0x2ba)]);case _0x3a044b['Formula']:return Cs(_0x15a317,_0x3bba8c);default:return Es(_0x15a317);}}function ps(_0x4a5a21,_0x3fe90a){const _0x54df41=_0x6c183;if(_0x3fe90a==null)return!0x0;if(typeof _0x3fe90a==_0x54df41(0x425))return _0x3fe90a[_0x54df41(0x226)]()==='';if(Array[_0x54df41(0x431)](_0x3fe90a))return _0x4a5a21[_0x54df41(0x20b)]===_0x3a044b[_0x54df41(0x1ab)]?!_0x3fe90a['some'](bs):_0x3fe90a[_0x54df41(0x13c)]===0x0;if(_0x4a5a21[_0x54df41(0x20b)]===_0x3a044b[_0x54df41(0x41f)]&&typeof _0x3fe90a=='object'){let _0x5719c8=_0x3fe90a;return[_0x5719c8[_0x54df41(0x3ae)],_0x5719c8[_0x54df41(0x32d)]][_0x54df41(0x387)](_0x1edcd4=>_0x1edcd4==null||String(_0x1edcd4)[_0x54df41(0x226)]()==='');}return!0x1;}function ms(_0x16215c,_0x36713c){const _0x444650=_0x6c183;let _0x4832e1=[];for(let _0x23a722 of _0x36713c){let _0x1c2d6e=hs(_0x16215c,_0x23a722);_0x1c2d6e!=null&&_0x4832e1[_0x444650(0x174)](_0x1c2d6e);}return _0x4832e1;}function hs(_0x386775,_0x134d5d){const _0x48f395=_0x6c183;if(typeof _0x134d5d==_0x48f395(0x24b))return Number[_0x48f395(0x143)](_0x134d5d)?_0x134d5d:null;if(_0x386775[_0x48f395(0x20b)]!==_0x3a044b['Formula']&&typeof _0x134d5d=='string'&&_0x134d5d[_0x48f395(0x226)]()!==''){let _0x323e68=Number(_0x134d5d);return Number[_0x48f395(0x143)](_0x323e68)?_0x323e68:null;}return null;}function gs(_0xad7f49){const _0x3f94c3=_0x6c183;let _0x291066=0x0,_0x5644e8=0x0;for(let _0x3e73e0 of _0xad7f49){let _0x352f26=_0x291066+_0x3e73e0;_0x5644e8+=Math[_0x3f94c3(0x4be)](_0x291066)>=Math['abs'](_0x3e73e0)?_0x291066-_0x352f26+_0x3e73e0:_0x3e73e0-_0x352f26+_0x291066,_0x291066=_0x352f26;}return _0x291066+_0x5644e8;}function _s(_0x5a262d,_0x520547){const _0x1bccd6=_0x6c183;return as[_0x1bccd6(0x34b)](_0x5a262d[_0x1bccd6(0x20b)])&&Array[_0x1bccd6(0x431)](_0x520547)?ys([...new Set(_0x520547[_0x1bccd6(0x141)](_0x4dd9ad=>ys(vs(_0x4dd9ad))))][_0x1bccd6(0x277)]()):ys(vs(_0x520547));}function vs(_0x3dcc6e){const _0x50ea03=_0x6c183;return Array[_0x50ea03(0x431)](_0x3dcc6e)?_0x3dcc6e[_0x50ea03(0x141)](vs):_0x3dcc6e&&typeof _0x3dcc6e==_0x50ea03(0x3d7)?Object[_0x50ea03(0x176)](Object[_0x50ea03(0x279)](_0x3dcc6e)[_0x50ea03(0x277)](([_0x2e94ac],[_0x5192fe])=>_0x2e94ac['localeCompare'](_0x5192fe))[_0x50ea03(0x141)](([_0x4ba7e7,_0x13eb12])=>[_0x4ba7e7,vs(_0x13eb12)])):_0x3dcc6e;}function ys(_0x29125c){const _0x694f48=_0x6c183;return JSON['stringify'](_0x29125c)??_0x694f48(0x31f);}function bs(_0x30ffb2){const _0x20c794=_0x6c183;if(typeof _0x30ffb2=='string')return _0x30ffb2[_0x20c794(0x226)]()!=='';if(!_0x30ffb2||typeof _0x30ffb2!=_0x20c794(0x3d7))return!0x1;let _0x5415de=_0x30ffb2;return[_0x5415de['id'],_0x5415de[_0x20c794(0x2a3)],_0x5415de[_0x20c794(0x495)],_0x5415de[_0x20c794(0x32d)],_0x5415de[_0x20c794(0x2aa)]][_0x20c794(0x185)](_0xb6dd8=>_0xb6dd8!=null&&String(_0xb6dd8)[_0x20c794(0x226)]()!=='');}function xs(_0x506595){const _0x54153f=_0x6c183;let _0x5975cc=Ds(_0x506595[_0x54153f(0x2ba)]);return{'decimalPlaces':ks(_0x5975cc[_0x54153f(0x27f)],0x0,0x14,0x2),'separatorStyle':typeof _0x5975cc[_0x54153f(0x370)]=='string'?_0x5975cc[_0x54153f(0x370)]:_0x54153f(0x231),'locale':typeof _0x5975cc[_0x54153f(0x30b)]==_0x54153f(0x425)?_0x5975cc[_0x54153f(0x30b)]:void 0x0,'useThousands':_0x5975cc[_0x54153f(0x1bd)]!==!0x1,'abbreviation':typeof _0x5975cc['abbreviation']==_0x54153f(0x425)?_0x5975cc[_0x54153f(0x1da)]:_0x54153f(0x42f)};}function Ss(_0x509be7){const _0x1e194a=_0x6c183;let _0x274ce7=Ds(_0x509be7[_0x1e194a(0x2ba)]);return{...xs(_0x509be7),'currencySymbol':String(_0x274ce7[_0x1e194a(0x4ba)]??'$')};}function Cs(_0x516cf4,_0xa22bfc){let _0x8c0020=Ts(_0xa22bfc);if(_0x8c0020===os)return Es(_0x516cf4);try{return String(_0x3bb8d4['format'](_0x8c0020,_0x516cf4,{'throws':!0x1}));}catch{return Es(_0x516cf4);}}function ws(_0x345290){const _0x1650f9=_0x6c183;let _0xd63928=Ds(Ds(_0x345290[_0x1650f9(0x2ba)])[_0x1650f9(0x1ef)]);return typeof _0xd63928[_0x1650f9(0x20b)]=='string'?_0xd63928['type']:'general';}function Ts(_0x1d68df){const _0x1c9cff=_0x6c183;let _0x2e9d88=Ds(Ds(_0x1d68df[_0x1c9cff(0x2ba)])[_0x1c9cff(0x1ef)]);return String(_0x2e9d88[_0x1c9cff(0x235)]??os)['trim']()||os;}function Es(_0x16cdd8){return String(Number['isInteger'](_0x16cdd8)?_0x16cdd8:Math['round']((_0x16cdd8+0x2**-0x34)*0x64)/0x64);}function Ds(_0x34b8db){const _0x38d02f=_0x6c183;return _0x34b8db&&typeof _0x34b8db=='object'&&!Array[_0x38d02f(0x431)](_0x34b8db)?_0x34b8db:{};}function Os(_0x445f99){const _0x5e4c9b=_0x6c183;if(_0x445f99==null||_0x445f99==='')return null;let _0x2d5599=typeof _0x445f99==_0x5e4c9b(0x24b)?_0x445f99:Number(_0x445f99);return Number[_0x5e4c9b(0x143)](_0x2d5599)?_0x2d5599:null;}function ks(_0x154a04,_0x51c63b,_0x23938d,_0xa4fcff){const _0x52e1eb=_0x6c183;let _0x19b309=Os(_0x154a04);return _0x19b309==null?_0xa4fcff:Math[_0x52e1eb(0x482)](_0x51c63b,Math[_0x52e1eb(0x27a)](_0x23938d,Math[_0x52e1eb(0x343)](_0x19b309)));}function As(_0x12caea,_0xe99a48){const _0xc7de8c=_0x6c183;let _0x152789=_0x4e3c3d['deepClone'](_0x12caea),_0x3fa7e7=_0xe99a48['includeRecords']===!0x0,_0x522e2b=new Map(),_0x51f3a1=_0xe99a48[_0xc7de8c(0x259)]??(()=>_0xc7de8c(0x25a)+_0x456020(0x8)),_0x42a0d2=_0x152789[_0xc7de8c(0x1cd)];return _0xe99a48[_0xc7de8c(0x3a0)]&&(_0x42a0d2=_0x152789['viewOrder'][_0xc7de8c(0x141)](_0x3b943c=>{const _0x29e8b8=_0xc7de8c;let _0x5e8592=_0x51f3a1();return _0x522e2b[_0x29e8b8(0x49e)](_0x3b943c,_0x5e8592),_0x5e8592;})),{..._0x152789,'id':_0xe99a48['id'],'name':_0xe99a48[_0xc7de8c(0x2a3)],'records':_0x3fa7e7?_0x152789[_0xc7de8c(0x258)]:{},'recordOrder':_0x3fa7e7?_0x152789[_0xc7de8c(0x1e7)]:[],'rowIndex':_0x3fa7e7?_0x152789['rowIndex']:{},'rowId':_0x3fa7e7?_0x152789[_0xc7de8c(0x3d0)]:{},'cellData':_0x3fa7e7?_0x152789[_0xc7de8c(0x389)]:{},'resources':_0x3fa7e7?_0x152789[_0xc7de8c(0x421)]:{},'viewOrder':_0x42a0d2,'views':Object['fromEntries'](Object[_0xc7de8c(0x279)](_0x152789[_0xc7de8c(0x362)]??{})[_0xc7de8c(0x141)](([_0x576877,_0xf0a9a6])=>{const _0x5a0c02=_0xc7de8c;let _0x2e9537=_0x522e2b[_0x5a0c02(0x43e)](_0x576877)??(_0xe99a48[_0x5a0c02(0x3a0)]?_0x51f3a1():_0x576877);return[_0x2e9537,{..._0xf0a9a6,'id':_0x2e9537,'tableId':_0xe99a48['id']}];}))};}var js=_0x6c183(0x1d1),Ms=_0x6c183(0x2c4);const Ns={},Ps={};function Fs(_0x3ace7d){return new z()['getAffectedRanges'](_0x3ace7d);}function Is(_0x4b806d){const _0x3181b0=_0x6c183;return _0x4b806d[_0x3181b0(0x2e6)]['map'](_0x176a01=>({'unitId':_0x4b806d[_0x3181b0(0x393)],'sheetId':_0x4b806d[_0x3181b0(0x210)],'range':{'startRow':_0x176a01['row'],'endRow':_0x176a01[_0x3181b0(0x4b3)],'startColumn':_0x176a01[_0x3181b0(0x295)],'endColumn':_0x176a01[_0x3181b0(0x295)]}}));}function Ls(_0x3a8d0c,_0x227b7e){const _0x4adc2e=_0x6c183;return{[_0x3a8d0c]:Object[_0x4adc2e(0x176)](_0x227b7e[_0x4adc2e(0x141)](_0x5adbc4=>[_0x5adbc4,'1']))};}let Rs=class extends _0x3b0b2d{constructor(_0x46f761,_0x3221e3){const _0x572423=_0x6c183;super(),this[_0x572423(0x28c)]=_0x46f761,this['_univerInstanceService']=_0x3221e3,this[_0x572423(0x24a)]();}['_initialize'](){const _0x1921c2=_0x6c183;this[_0x1921c2(0x28c)][_0x1921c2(0x2d9)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x231922=>this[_0x1921c2(0x3e7)](_0x231922['params'])}),this[_0x1921c2(0x135)](_0x1827e4(()=>{const _0x5b45b7=_0x1921c2;this[_0x5b45b7(0x28c)][_0x5b45b7(0x2b2)](Q['id']);}));}[_0x6c183(0x4a3)](_0x4ead58,_0x1cddb0){const _0x350a62=_0x6c183;let _0x3f4de3=this[_0x350a62(0x1be)]['getUnit'](_0x4ead58,_0x5c5c99[_0x350a62(0x36b)]);return(_0x3f4de3==null?void 0x0:_0x3f4de3[_0x350a62(0x32f)]()[_0x350a62(0x298)][_0x1cddb0])??null;}[_0x6c183(0x3e7)](_0xfc0160){const _0x5f26c2=_0x6c183;if(_0xfc0160[_0x5f26c2(0x172)]===_0x5f26c2(0x2f2))return{};if(!_0xfc0160[_0x5f26c2(0x393)]||!_0xfc0160['op'])return{'clearDependencyTreeCache':this[_0x5f26c2(0x153)](),'forceCalculation':!0x0};let _0xa6262c=Fs(_0xfc0160['op']),_0x1f84db=this['_getStructureDirtyTableIds'](_0xfc0160[_0x5f26c2(0x393)],_0xa6262c);if(_0x1f84db['length'])return{'clearDependencyTreeCache':Ls(_0xfc0160[_0x5f26c2(0x393)],_0x1f84db),'forceCalculation':!0x0};let _0x2124d2=Object['entries'](this[_0x5f26c2(0x452)](_0xfc0160['unitId'],_0xa6262c))[_0x5f26c2(0x17a)](([_0x53ac4a,_0x14ae45])=>Is({'unitId':_0xfc0160[_0x5f26c2(0x393)],'tableId':_0x53ac4a,'patches':_0x14ae45}));return _0x2124d2[_0x5f26c2(0x13c)]?{'dirtyRanges':_0x2124d2}:{};}[_0x6c183(0x167)](_0x3df5f1,_0x14f721){const _0x5bb0ed=_0x6c183;let _0xb222f4=_0x14f721[_0x5bb0ed(0x2be)](_0x4fb3ad=>_0x4fb3ad[_0x5bb0ed(0x28a)]!=='cell')[_0x5bb0ed(0x17a)](_0x2c82e4=>_0x2c82e4[_0x5bb0ed(0x210)]?[_0x2c82e4[_0x5bb0ed(0x210)]]:this[_0x5bb0ed(0x1ff)](_0x3df5f1));return Array[_0x5bb0ed(0x1d5)](new Set(_0xb222f4));}['_groupCellInvalidations'](_0x400a0a,_0x5614c2){let _0x14f6ba=new Set();return _0x5614c2['reduce']((_0x434bef,_0xc1a520)=>{const _0x371dac=_0x2b5a;let _0x581999=this['_toDirtyRangePatch'](_0x400a0a,_0xc1a520);if(!_0x581999)return _0x434bef;let _0x913e72=_0xc1a520[_0x371dac(0x210)]+':'+_0x581999[_0x371dac(0x4b3)]+':'+_0x581999[_0x371dac(0x295)];return _0x14f6ba[_0x371dac(0x34b)](_0x913e72)?_0x434bef:(_0x14f6ba[_0x371dac(0x2ee)](_0x913e72),_0x434bef[_0xc1a520[_0x371dac(0x210)]]=_0x434bef[_0xc1a520[_0x371dac(0x210)]]??[],_0x434bef[_0xc1a520[_0x371dac(0x210)]][_0x371dac(0x174)](_0x581999),_0x434bef);},{});}[_0x6c183(0x2ce)](_0x3521c5,_0x35a3db){const _0x28d48f=_0x6c183;if(_0x35a3db[_0x28d48f(0x28a)]!==_0x28d48f(0x1de))return null;if(_0x35a3db[_0x28d48f(0x4b3)]!=null&&_0x35a3db[_0x28d48f(0x229)]!=null)return{'row':_0x35a3db['row'],'col':_0x35a3db['column'],'value':null};if(!_0x35a3db[_0x28d48f(0x347)]||!_0x35a3db[_0x28d48f(0x2b0)])return null;let _0x4ef7da=this['_getTable'](_0x3521c5,_0x35a3db[_0x28d48f(0x210)]);if(!_0x4ef7da)return null;let _0x586a14=_t(_0x4ef7da,_0x35a3db[_0x28d48f(0x347)],_0x35a3db['fieldId']);return _0x586a14?{'row':_0x586a14[_0x28d48f(0x4b3)],'col':_0x586a14[_0x28d48f(0x295)],'value':null}:null;}[_0x6c183(0x1ff)](_0x5ba1dd){const _0x42092c=_0x6c183;let _0x271ad8=this[_0x42092c(0x1be)][_0x42092c(0x228)](_0x5ba1dd,_0x5c5c99['UNIVER_BASE']);return Object[_0x42092c(0x227)]((_0x271ad8==null?void 0x0:_0x271ad8['getSnapshot']()[_0x42092c(0x298)])??{})[_0x42092c(0x141)](_0x47e77d=>_0x47e77d['id']);}['_getAllBaseDependencyTreeCacheMap'](){const _0x9e6e23=_0x6c183;let _0x1d62c6=this[_0x9e6e23(0x1be)][_0x9e6e23(0x3db)](_0x5c5c99[_0x9e6e23(0x36b)])[_0x9e6e23(0x141)](_0x986a5f=>Ls(_0x986a5f[_0x9e6e23(0x2ff)](),Object['keys'](_0x986a5f[_0x9e6e23(0x32f)]()[_0x9e6e23(0x298)])));return Object[_0x9e6e23(0x1ec)]({},..._0x1d62c6);}};Rs=X([Y(0x0,_0x403c63),Y(0x1,_0x24efe9)],Rs);let zs=class extends _0x3b0b2d{constructor(_0x1bda70,_0x16b012,_0x1f19c4,_0x9a4d64){const _0x4b1aac=_0x6c183;super(),this[_0x4b1aac(0x3cc)]=_0x1bda70,this[_0x4b1aac(0x1be)]=_0x16b012,this['_formulaCalculationTriggerService']=_0x1f19c4,this['_formulaCalculationSessionService']=_0x9a4d64,G(this,'_formulaService',new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,_0x4b1aac(0x39c),new Set()),G(this,_0x4b1aac(0x3ff),Promise[_0x4b1aac(0x4a9)]()),G(this,_0x4b1aac(0x46d),!0x1),this[_0x4b1aac(0x24a)]();}['_initialize'](){const _0x4352d5=_0x6c183;this[_0x4352d5(0x1be)]['getAllUnitsForType'](_0x5c5c99[_0x4352d5(0x36b)])['forEach'](_0x443195=>{const _0x161b70=_0x4352d5;this[_0x161b70(0x1f0)](_0x443195);}),this[_0x4352d5(0x135)](this[_0x4352d5(0x1be)]['getTypeOfUnitAdded$'](_0x5c5c99[_0x4352d5(0x36b)])[_0x4352d5(0x265)](({unit:_0x3e3e99})=>{const _0x47f1e8=_0x4352d5;this[_0x47f1e8(0x1f0)](_0x3e3e99);})),this['disposeWithMe'](this[_0x4352d5(0x1be)][_0x4352d5(0x1b5)](_0x5c5c99['UNIVER_BASE'])['subscribe'](_0x182177=>{const _0x401673=_0x4352d5;this['_enqueueFormulaSync'](()=>this[_0x401673(0x29e)](_0x182177['getUnitId']()));})),this[_0x4352d5(0x135)](this['_commandService'][_0x4352d5(0x2ec)](_0x106bb9=>this[_0x4352d5(0x13d)](_0x106bb9)));}[_0x6c183(0x13d)](_0x44e5c1){const _0x5212fb=_0x6c183;if(_0x44e5c1['id']===_0x3da161['id']){Vs(_0x44e5c1['params'])&&this[_0x5212fb(0x455)](_0x44e5c1['params']);return;}if(this[_0x5212fb(0x46d)]||_0x44e5c1['id']!==Q['id'])return;let _0x1fc937=Bs(_0x44e5c1['params'])?_0x44e5c1['params']:void 0x0,_0x1254a0=_0x1fc937!=null&&_0x1fc937[_0x5212fb(0x393)]?[this['_univerInstanceService'][_0x5212fb(0x228)](_0x1fc937[_0x5212fb(0x393)],_0x5c5c99[_0x5212fb(0x36b)])][_0x5212fb(0x2be)](_0xa9e253=>!!_0xa9e253):this[_0x5212fb(0x1be)][_0x5212fb(0x3db)](_0x5c5c99[_0x5212fb(0x36b)]),_0x2f8cdd=_0x1fc937==null?void 0x0:_0x1fc937['op'];_0x1254a0['forEach'](_0x92a692=>{const _0x5b7635=_0x5212fb;let _0x46ba9f=_0x2f8cdd?Fs(_0x2f8cdd):[];(!_0x2f8cdd||_0x46ba9f['some'](_0x4e87b9=>_0x4e87b9['reason']!==_0x5b7635(0x1de)))&&this['_scheduleSuperTableSync'](_0x92a692);});}[_0x6c183(0x1f0)](_0x9f835a){const _0x3128b6=_0x6c183;let _0xa704ec=_0x9f835a[_0x3128b6(0x2ff)]();this[_0x3128b6(0x39c)][_0x3128b6(0x34b)](_0xa704ec)||(this[_0x3128b6(0x39c)]['add'](_0xa704ec),this[_0x3128b6(0x41d)](async()=>{const _0x5e8643=_0x3128b6;this[_0x5e8643(0x39c)][_0x5e8643(0x2fc)](_0xa704ec),await this['_syncSuperTables'](_0x9f835a);}));}async[_0x6c183(0x438)](_0x5af771){const _0x4ff14e=_0x6c183;let _0x55e3a8=_0x5af771[_0x4ff14e(0x2ff)](),_0x5461cd=this['_formulaService']['getSuperTableRegistrations'](_0x5af771[_0x4ff14e(0x32f)]()),_0x4ab9cb=new Set(_0x5461cd[_0x4ff14e(0x141)](({tableName:_0x12baf4})=>_0x12baf4)),_0x5ca400=this[_0x4ff14e(0x3e0)][_0x4ff14e(0x43e)](_0x55e3a8)??new Set();for(let _0x411501 of _0x5ca400)if(!_0x4ab9cb[_0x4ff14e(0x34b)](_0x411501)&&!await this[_0x4ff14e(0x245)](_0x371cf0['id'],{'unitId':_0x55e3a8,'tableName':_0x411501}))return;for(let {tableName:_0x36a504,reference:_0x430913}of _0x5461cd)if(!await this[_0x4ff14e(0x245)](_0x2af977['id'],{'unitId':_0x55e3a8,'tableName':_0x36a504,'reference':_0x430913}))return;this[_0x4ff14e(0x3e0)]['set'](_0x55e3a8,_0x4ab9cb);}async[_0x6c183(0x29e)](_0x249be5){const _0x293526=_0x6c183;let _0x8723a4=this['_registeredSuperTableNames'][_0x293526(0x43e)](_0x249be5)??new Set();for(let _0x199fbb of _0x8723a4)if(!await this['_executeSuperTableMutationWhileActive'](_0x371cf0['id'],{'unitId':_0x249be5,'tableName':_0x199fbb}))return;this[_0x293526(0x3e0)][_0x293526(0x2fc)](_0x249be5);}async[_0x6c183(0x245)](_0x6961f1,_0x263546){const _0x9b3648=_0x6c183;return!this[_0x9b3648(0x18e)]&&await this[_0x9b3648(0x3cc)][_0x9b3648(0x486)](_0x6961f1,_0x263546,{'onlyLocal':!0x0})&&!this[_0x9b3648(0x18e)];}[_0x6c183(0x41d)](_0x2073f5){const _0x390e71=_0x6c183;this[_0x390e71(0x3ff)]=this[_0x390e71(0x3ff)]['then'](_0x2073f5,_0x2073f5)['catch'](()=>void 0x0);}[_0x6c183(0x455)](_0x33bf98){const _0xdb0e53=_0x6c183;let _0x4134b9=this['_univerInstanceService'][_0xdb0e53(0x3db)](_0x5c5c99[_0xdb0e53(0x36b)]);if(!_0x4134b9['some'](_0x14d19d=>{const _0x2c4aa0=_0xdb0e53;var _0x2600b1;return((_0x2600b1=_0x33bf98[_0x2c4aa0(0x42e)])==null?void 0x0:_0x2600b1[_0x14d19d[_0x2c4aa0(0x2ff)]()])!=null;}))return;let _0x4bf57d=_0x4134b9['flatMap'](_0x439930=>Zi(_0x439930[_0xdb0e53(0x32f)](),_0x33bf98));if(!_0x4bf57d['length']){this[_0xdb0e53(0x178)][_0xdb0e53(0x480)](_0x1e8264[_0xdb0e53(0x4b4)],_0x33bf98);return;}let _0x45e61a=new W(),_0x1eba16=_0x4bf57d[_0xdb0e53(0x17a)](_0x16865f=>Is({'unitId':_0x16865f[_0xdb0e53(0x393)],'tableId':_0x16865f[_0xdb0e53(0x210)],'patches':_0x16865f[_0xdb0e53(0x2e6)]}));this[_0xdb0e53(0x46d)]=!0x0,(async()=>{const _0x4d1a31=_0xdb0e53;for(let _0x333d04 of _0x4bf57d){let _0x8614da=this[_0x4d1a31(0x1be)][_0x4d1a31(0x228)](_0x333d04[_0x4d1a31(0x393)],_0x5c5c99[_0x4d1a31(0x36b)]);_0x8614da&&await this[_0x4d1a31(0x3cc)]['executeCommand'](Q['id'],{'unitId':_0x333d04['unitId'],'op':_0x45e61a[_0x4d1a31(0x11d)](_0x8614da[_0x4d1a31(0x32f)](),_0x333d04[_0x4d1a31(0x210)],_0x333d04['patches']),'trigger':_0x3da161['id']},{'onlyLocal':!0x0});}await this[_0x4d1a31(0x3cc)][_0x4d1a31(0x486)](_0x174b70['id'],{'dirtyRanges':_0x1eba16},{'onlyLocal':!0x0});})()['finally'](()=>{const _0x338c8b=_0xdb0e53;this['_applyingFormulaResults']=!0x1,this[_0x338c8b(0x178)][_0x338c8b(0x480)](_0x1e8264[_0x338c8b(0x4b4)],_0x33bf98);});}};zs=X([Y(0x0,_0x5daeb6),Y(0x1,_0x24efe9),Y(0x2,_0x490adb(_0x2612d7)),Y(0x3,_0x490adb(_0xdc8395))],zs);function Bs(_0xb97de6){const _0xf80dd0=_0x6c183;return typeof _0xb97de6==_0xf80dd0(0x3d7)&&!!_0xb97de6&&'unitId'in _0xb97de6&&typeof _0xb97de6['unitId']==_0xf80dd0(0x425)&&'op'in _0xb97de6&&Array['isArray'](_0xb97de6['op']);}function Vs(_0x371730){const _0x3730d2=_0x6c183;return typeof _0x371730==_0x3730d2(0x3d7)&&!!_0x371730&&_0x3730d2(0x42e)in _0x371730&&_0x3730d2(0x4af)in _0x371730;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x3b0b2d{constructor(_0x1f8a12,_0xe21c1,_0x1865ea,_0x279e5a){const _0x143489=_0x6c183;super(),this['_injector']=_0x1f8a12,this[_0x143489(0x3cc)]=_0xe21c1,this[_0x143489(0x3ad)]=_0x1865ea,this[_0x143489(0x470)]=_0x279e5a,this[_0x143489(0x470)][_0x143489(0x3db)](_0x5c5c99[_0x143489(0x36b)])[_0x143489(0x2e0)](_0x3b813d=>this['_registerUnitPermissionPoints'](_0x3b813d[_0x143489(0x2ff)]())),this['disposeWithMe'](this[_0x143489(0x470)]['getTypeOfUnitAdded$'](_0x5c5c99['UNIVER_BASE'])[_0x143489(0x265)](({unit:_0xddddc9})=>this[_0x143489(0x1c4)](_0xddddc9[_0x143489(0x2ff)]()))),this[_0x143489(0x135)](this[_0x143489(0x3cc)][_0x143489(0x16b)]((_0x2a0394,_0x15fd46)=>this[_0x143489(0x197)](_0x2a0394,_0x15fd46))),this[_0x143489(0x135)](this['_instanceService']['getTypeOfUnitDisposed$'](_0x5c5c99[_0x143489(0x36b)])[_0x143489(0x265)](_0x7566bd=>{const _0x3f43d9=_0x143489;this[_0x3f43d9(0x224)]['get'](_0x14b422)[_0x3f43d9(0x3b8)](_0x7566bd['getUnitId']()),Rr(this[_0x3f43d9(0x3ad)],_0x7566bd[_0x3f43d9(0x2ff)]());}));}['_registerUnitPermissionPoints'](_0x20f408){const _0x191e6a=_0x6c183;Tr[_0x191e6a(0x2e0)](_0x68b61=>{const _0xf32621=_0x191e6a;let _0x319018=Pr(_0x20f408,_0x20f408,_0x68b61);this['_permissionService']['getPermissionPoint'](_0x319018['id'])||this['_permissionService'][_0xf32621(0x2e2)](_0x319018);}),this['_injector']['get'](_0x14b422)[_0x191e6a(0x43f)]({'unitId':_0x20f408,'objectId':_0x20f408,'objectType':_0x3cf49a['Base']});}['_check'](_0x295aa6,_0x46578c){const _0x2b840a=_0x6c183;var _0x58dd7d;if(_0x46578c!=null&&_0x46578c[_0x2b840a(0x36f)]||_0x46578c!=null&&_0x46578c[_0x2b840a(0x3b9)])return;let _0x2a4196=tc(_0x295aa6[_0x2b840a(0x282)])?_0x295aa6[_0x2b840a(0x282)]:void 0x0;if(_0x46578c!=null&&_0x46578c[_0x2b840a(0x2fe)]&&_0x295aa6['id']===_0x2b840a(0x340)&&(_0x2a4196==null?void 0x0:_0x2a4196[_0x2b840a(0x172)])===_0x3da161['id'])return;let _0x53178a=Gs(_0x295aa6['id']),_0x69b5cd=Ws(_0x2a4196==null?void 0x0:_0x2a4196['unitId'],_0x46578c)??(_0x53178a?(_0x58dd7d=this['_instanceService'][_0x2b840a(0x2a7)](_0x5c5c99[_0x2b840a(0x36b)]))==null?void 0x0:_0x58dd7d['getUnitId']():void 0x0);if(!_0x69b5cd||this['_instanceService'][_0x2b840a(0x17b)](_0x69b5cd)!==_0x5c5c99[_0x2b840a(0x36b)])return;if(_0x53178a){if(!Fr(this[_0x2b840a(0x3ad)],_0x69b5cd,_0x69b5cd,_0x53178a))throw this[_0x2b840a(0x224)]['get'](_0x35b5ff)['emitPermissionDenied'](_0x69b5cd),new _0x5ea448(_0x2b840a(0x119)+_0x1aafeb[_0x53178a]+_0x2b840a(0x27e));return;}if(Hs[_0x2b840a(0x34b)](_0x295aa6['id'])||!_0x295aa6['id']['startsWith'](_0x2b840a(0x2ef))&&!_0x295aa6['id'][_0x2b840a(0x1fb)](_0x2b840a(0x35b)))return;let _0x126d2b=this[_0x2b840a(0x470)][_0x2b840a(0x228)](_0x69b5cd,_0x5c5c99[_0x2b840a(0x36b)]),_0x23b0f7=_0x126d2b?Ks(_0x126d2b,_0x2a4196??{},_0x295aa6['id']):[];if(!_0x126d2b||!zr(this[_0x2b840a(0x3ad)],_0x69b5cd,_0x23b0f7))throw this[_0x2b840a(0x224)]['get'](_0x35b5ff)['emitPermissionDenied'](_0x69b5cd,_0x23b0f7),new _0x5ea448(_0x2b840a(0x1b7));}};Us=X([Y(0x0,_0x490adb(_0x4f0ad3)),Y(0x1,_0x5daeb6),Y(0x2,_0x41b15f),Y(0x3,_0x24efe9)],Us);function Ws(_0x147d71,_0xb57dea){const _0x51cbd6=_0x6c183;return typeof _0x147d71==_0x51cbd6(0x425)?_0x147d71:typeof(_0xb57dea==null?void 0x0:_0xb57dea[_0x51cbd6(0x393)])==_0x51cbd6(0x425)?_0xb57dea[_0x51cbd6(0x393)]:void 0x0;}function Gs(_0x1ba0fb){const _0xed273b=_0x6c183;if(_0x1ba0fb===_0xed273b(0x133)||_0x1ba0fb===_0xed273b(0x2a6))return _0x1aafeb[_0xed273b(0x1c9)];if(_0x1ba0fb[_0xed273b(0x1fb)](_0xed273b(0x3c9))||_0x1ba0fb[_0xed273b(0x1fb)](_0xed273b(0x12d)))return _0x1aafeb[_0xed273b(0x117)];}function Ks(_0x4ef018,_0x37c6f9,_0x309d6c){const _0xf18cff=_0x6c183;if(_0x309d6c===_0xf18cff(0x340)&&ec(_0x37c6f9['op']))return qs(_0x4ef018,_0x37c6f9['op']);let _0x3d4b89=new Set(),_0xbbf81b=Zs(_0x37c6f9,'table'),_0x3c4819=typeof _0x37c6f9[_0xf18cff(0x210)]==_0xf18cff(0x425)?_0x37c6f9['tableId']:_0xbbf81b[0x0];if(_0xbbf81b[_0xf18cff(0x2e0)](_0x519099=>_0x3d4b89[_0xf18cff(0x2ee)](K(_0x519099))),!_0x3c4819)return[..._0x3d4b89];let _0x54e83b=_0x4ef018[_0xf18cff(0x32f)]()[_0xf18cff(0x298)][_0x3c4819],_0x22ca4c=new Set(Zs(_0x37c6f9,'field')),_0x242ca0=new Set(Zs(_0x37c6f9,'record')),_0x224ecf=new Set(Zs(_0x37c6f9,_0xf18cff(0x37d)));return Qs(_0x54e83b,_0x37c6f9[_0xf18cff(0x2e6)],_0x242ca0,_0x22ca4c),$s(_0x37c6f9,_0x22ca4c),_0x22ca4c[_0xf18cff(0x2e0)](_0x127154=>_0x3d4b89[_0xf18cff(0x2ee)](q(_0x3c4819,_0x127154))),_0x242ca0[_0xf18cff(0x2e0)](_0x479033=>_0x3d4b89[_0xf18cff(0x2ee)](J(_0x3c4819,_0x479033))),_0x224ecf[_0xf18cff(0x2e0)](_0x3343e1=>_0x3d4b89[_0xf18cff(0x2ee)](Mr(_0x3c4819,_0x3343e1))),[..._0x3d4b89];}function qs(_0x4657e0,_0x431c84){const _0x39f5ea=_0x6c183;let _0xb42767=_0x4657e0[_0x39f5ea(0x32f)](),_0x496c47=new z()['getAffectedRanges'](_0x431c84),_0x40c676=Js(_0x431c84),_0x1dbd17=new Set();return _0x496c47[_0x39f5ea(0x2e0)](_0x443e96=>{const _0x48f4f3=_0x39f5ea;var _0x4bb237,_0x4f395a;let {tableId:_0x1cdd3d}=_0x443e96;if(!_0x1cdd3d)return;_0x1dbd17[_0x48f4f3(0x2ee)](K(_0x1cdd3d));let _0x5bb9c8=_0xb42767['tables'][_0x1cdd3d],_0x15d54b=_0x443e96[_0x48f4f3(0x347)]??(_0x443e96[_0x48f4f3(0x4b3)]==null||_0x5bb9c8==null||(_0x4bb237=_0x5bb9c8[_0x48f4f3(0x3d0)])==null?void 0x0:_0x4bb237[_0x443e96[_0x48f4f3(0x4b3)]]),_0x20db45=_0x443e96[_0x48f4f3(0x2b0)]??(_0x443e96[_0x48f4f3(0x229)]==null||_0x5bb9c8==null||(_0x4f395a=_0x5bb9c8[_0x48f4f3(0x1fe)])==null?void 0x0:_0x4f395a[_0x443e96['column']]);_0x15d54b&&_0x1dbd17[_0x48f4f3(0x2ee)](J(_0x1cdd3d,_0x15d54b)),_0x20db45&&_0x1dbd17['add'](q(_0x1cdd3d,_0x20db45)),_0x443e96[_0x48f4f3(0x288)]&&_0x1dbd17[_0x48f4f3(0x2ee)](Mr(_0x1cdd3d,_0x443e96[_0x48f4f3(0x288)])),(_0x443e96[_0x48f4f3(0x28a)]===_0x48f4f3(0x4c7)||_0x40c676[_0x48f4f3(0x34b)](_0x1cdd3d))&&_0x5bb9c8&&(Object[_0x48f4f3(0x24c)](_0x5bb9c8['fields'])[_0x48f4f3(0x2e0)](_0x445bd2=>_0x1dbd17[_0x48f4f3(0x2ee)](q(_0x1cdd3d,_0x445bd2))),Object['keys'](_0x5bb9c8[_0x48f4f3(0x258)])[_0x48f4f3(0x2e0)](_0x5c0715=>_0x1dbd17[_0x48f4f3(0x2ee)](J(_0x1cdd3d,_0x5c0715))),Object[_0x48f4f3(0x24c)](_0x5bb9c8['views'])[_0x48f4f3(0x2e0)](_0x2ec179=>_0x1dbd17[_0x48f4f3(0x2ee)](Mr(_0x1cdd3d,_0x2ec179)))),_0x443e96[_0x48f4f3(0x28a)]===_0x48f4f3(0x493)&&_0x5bb9c8&&Object['keys'](_0x5bb9c8['fields'])[_0x48f4f3(0x2e0)](_0x438ae1=>_0x1dbd17[_0x48f4f3(0x2ee)](q(_0x1cdd3d,_0x438ae1)));}),_0x496c47[_0x39f5ea(0x13c)]===0x0&&Xs(_0x431c84,_0x39f5ea(0x338))&&Object[_0x39f5ea(0x24c)](_0xb42767[_0x39f5ea(0x298)])[_0x39f5ea(0x2e0)](_0x41b768=>_0x1dbd17[_0x39f5ea(0x2ee)](K(_0x41b768))),[..._0x1dbd17];}function Js(_0x4d769c){let _0x4bd9e8=new Set(),_0x2fe7ef=_0x13d2f6=>{const _0x5a2ac9=_0x2b5a;Array[_0x5a2ac9(0x431)](_0x13d2f6)&&_0x13d2f6[_0x5a2ac9(0x2e0)]((_0xb336b2,_0x367f9b)=>{const _0x1285e4=_0x5a2ac9;_0xb336b2===_0x1285e4(0x298)&&typeof _0x13d2f6[_0x367f9b+0x1]=='string'&&Ys(_0x13d2f6[_0x367f9b+0x2])&&_0x4bd9e8['add'](_0x13d2f6[_0x367f9b+0x1]),_0x2fe7ef(_0xb336b2);});};return _0x2fe7ef(_0x4d769c),_0x4bd9e8;}function Ys(_0x2ccb2a){const _0x2517f0=_0x6c183;return!!_0x2ccb2a&&typeof _0x2ccb2a==_0x2517f0(0x3d7)&&!Array[_0x2517f0(0x431)](_0x2ccb2a)&&('i'in _0x2ccb2a||'r'in _0x2ccb2a||'p'in _0x2ccb2a||'d'in _0x2ccb2a||'es'in _0x2ccb2a||_0x2517f0(0x41c)in _0x2ccb2a||'et'in _0x2ccb2a);}function Xs(_0x29eb89,_0x58cbc9){const _0x10c03c=_0x6c183;return Array[_0x10c03c(0x431)](_0x29eb89)&&_0x29eb89[_0x10c03c(0x185)](_0x314019=>_0x314019===_0x58cbc9||Xs(_0x314019,_0x58cbc9));}function Zs(_0x4d3141,_0x4d3372){const _0x141022=_0x6c183;let _0x3951ce=new Set(),_0x54ff00=_0x4d3372+'Id',_0x2dd418=_0x4d3372+_0x141022(0x1f3),_0x1c7444=(_0x14579d,_0x169911='')=>{const _0x318da7=_0x141022;if(typeof _0x14579d==_0x318da7(0x425)){_0x169911===_0x54ff00&&_0x3951ce[_0x318da7(0x2ee)](_0x14579d);return;}if(Array[_0x318da7(0x431)](_0x14579d)){_0x169911===_0x2dd418?_0x14579d['forEach'](_0xc0e3bc=>{const _0x3d2bf1=_0x318da7;typeof _0xc0e3bc==_0x3d2bf1(0x425)&&_0x3951ce[_0x3d2bf1(0x2ee)](_0xc0e3bc);}):_0x14579d['forEach'](_0x1714cd=>_0x1c7444(_0x1714cd,_0x169911));return;}tc(_0x14579d)&&Object[_0x318da7(0x279)](_0x14579d)[_0x318da7(0x2e0)](([_0x3d18e4,_0x1057ee])=>{const _0x5c537a=_0x318da7;_0x3d18e4==='id'&&_0x169911===_0x4d3372&&typeof _0x1057ee==_0x5c537a(0x425)?_0x3951ce[_0x5c537a(0x2ee)](_0x1057ee):_0x1c7444(_0x1057ee,_0x3d18e4);});};return _0x1c7444(_0x4d3141),[..._0x3951ce];}function Qs(_0x4c3084,_0x14ea26,_0x245548,_0x2a4175){const _0x199bc7=_0x6c183;_0x4c3084&&Array[_0x199bc7(0x431)](_0x14ea26)&&_0x14ea26[_0x199bc7(0x2e0)](_0x247f84=>{const _0x5bc144=_0x199bc7;if(!tc(_0x247f84))return;let _0x31fe47=_0x247f84;if(typeof _0x31fe47[_0x5bc144(0x4b3)]==_0x5bc144(0x24b)){var _0x23cc90;let _0x3ee5a1=(_0x23cc90=_0x4c3084[_0x5bc144(0x3d0)])==null?void 0x0:_0x23cc90[_0x31fe47['row']];_0x3ee5a1&&_0x245548[_0x5bc144(0x2ee)](_0x3ee5a1);}if(typeof _0x31fe47[_0x5bc144(0x295)]=='number'){var _0x207be8;let _0x5ae4f8=(_0x207be8=_0x4c3084['colId'])==null?void 0x0:_0x207be8[_0x31fe47['col']];_0x5ae4f8&&_0x2a4175['add'](_0x5ae4f8);}});}function $s(_0x513746,_0x5e6f71,_0x31c2c7=''){const _0x473269=_0x6c183;if(_0x513746&&typeof _0x513746==_0x473269(0x3d7)){if(Array['isArray'](_0x513746)){_0x513746[_0x473269(0x2e0)](_0xd30d90=>$s(_0xd30d90,_0x5e6f71,_0x31c2c7));return;}tc(_0x513746)&&Object[_0x473269(0x279)](_0x513746)[_0x473269(0x2e0)](([_0x2609d9,_0x48a46f])=>{const _0x35a9cd=_0x473269;_0x31c2c7==='values'&&_0x5e6f71[_0x35a9cd(0x2ee)](_0x2609d9),$s(_0x48a46f,_0x5e6f71,_0x2609d9);});}}function ec(_0x2971b9){const _0x38f85a=_0x6c183;return Array[_0x38f85a(0x431)](_0x2971b9);}function tc(_0x106c1b){const _0x290e6b=_0x6c183;return typeof _0x106c1b==_0x290e6b(0x3d7)&&!!_0x106c1b&&!Array['isArray'](_0x106c1b);}const nc=_0x2e8f64(_0x6c183(0x290));let rc=class{constructor(_0x2780a8){const _0x2bc9e1=_0x6c183;this[_0x2bc9e1(0x1be)]=_0x2780a8;}[_0x6c183(0x261)](_0x38317f){const _0x1a7051=_0x6c183;return this['_univerInstanceService'][_0x1a7051(0x228)](_0x38317f,_0x5c5c99['UNIVER_BASE'])??null;}['getAllBases'](){const _0x59def9=_0x6c183;return this[_0x59def9(0x1be)]['getAllUnitsForType'](_0x5c5c99[_0x59def9(0x36b)]);}[_0x6c183(0x494)](_0x4a7325){const _0xed7968=_0x6c183;return this[_0xed7968(0x1be)][_0xed7968(0x1e8)](_0x5c5c99[_0xed7968(0x36b)],_0x4a7325);}};rc=X([Y(0x0,_0x24efe9)],rc);const ic=_0x2e8f64('base.view-registry.service');var ac=class extends _0x3b0b2d{constructor(..._0x34e201){const _0x295221=_0x6c183;super(..._0x34e201),G(this,_0x295221(0x1dd),new Map());}[_0x6c183(0x2d9)](_0xba95cc){const _0x3b619b=_0x6c183;return this[_0x3b619b(0x1dd)][_0x3b619b(0x49e)](_0xba95cc[_0x3b619b(0x20b)],_0xba95cc),_0x1827e4(()=>this[_0x3b619b(0x1dd)]['delete'](_0xba95cc['type']));}[_0x6c183(0x43e)](_0x2cc82a){const _0x584c3e=_0x6c183;let _0x55b54f=this['_plugins'][_0x584c3e(0x43e)](_0x2cc82a);if(!_0x55b54f)throw Error(_0x584c3e(0x2b9)+_0x2cc82a+_0x584c3e(0x25c));return _0x55b54f;}[_0x6c183(0x1db)](){const _0x39d232=_0x6c183;return Array[_0x39d232(0x1d5)](this[_0x39d232(0x1dd)][_0x39d232(0x227)]());}};const oc=[Q];let sc=class extends _0x5e5cdb{constructor(_0x301c9f=Ns,_0x38fdbb,_0x63e45c,_0x43b1a7,_0x124786,_0x4f5c9a){const _0x2d3a7b=_0x6c183;super(),this[_0x2d3a7b(0x16c)]=_0x301c9f,this[_0x2d3a7b(0x224)]=_0x38fdbb,this[_0x2d3a7b(0x3cc)]=_0x63e45c,this[_0x2d3a7b(0x1be)]=_0x43b1a7,this[_0x2d3a7b(0x2f0)]=_0x124786,this['_dataSyncPrimaryController']=_0x4f5c9a,G(this,'_baseSyncDisposables',new Map());let {..._0x2eb950}=_0x1bd132({},Ns,this['_config']);this[_0x2d3a7b(0x2f0)][_0x2d3a7b(0x11b)](_0x2d3a7b(0x16f),_0x2eb950),this['_univerInstanceService']['registerCtorForType'](_0x5c5c99[_0x2d3a7b(0x36b)],_0x351ad4),this[_0x2d3a7b(0x4cb)](),this[_0x2d3a7b(0x182)](),this[_0x2d3a7b(0x168)](),this[_0x2d3a7b(0x451)]();}[_0x6c183(0x234)](){const _0x47d505=_0x6c183;this[_0x47d505(0x224)][_0x47d505(0x2ee)]([Lo]),this[_0x47d505(0x135)](this[_0x47d505(0x224)][_0x47d505(0x43e)](_0x5daeb6)[_0x47d505(0x4a5)](Ro)),this[_0x47d505(0x135)](this['_injector'][_0x47d505(0x43e)](_0x5daeb6)['registerCommand'](zo)),this['disposeWithMe'](this[_0x47d505(0x224)][_0x47d505(0x43e)](_0x14b422)[_0x47d505(0x183)](_0x3cf49a[_0x47d505(0x1cc)],this[_0x47d505(0x224)][_0x47d505(0x43e)](Lo),Ro['id'],zo['id']));}[_0x6c183(0x4ab)](){const _0x19cf96=_0x6c183;_0x55f221(this[_0x19cf96(0x224)],[[rc],[qr],[Rs]]),this[_0x19cf96(0x1be)][_0x19cf96(0x3db)](_0x5c5c99[_0x19cf96(0x36b)])[_0x19cf96(0x2e0)](_0xd33f69=>this[_0x19cf96(0x1ed)](_0xd33f69[_0x19cf96(0x2ff)]())),_0x55f221(this['_injector'],[[zs],[Us]]);}[_0x6c183(0x4cb)](){const _0x50274f=_0x6c183;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x50274f(0x2e0)](_0x4f29a1=>this[_0x50274f(0x224)]['add'](_0x4f29a1));}[_0x6c183(0x182)](){const _0x14039b=_0x6c183;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc]['forEach'](_0x3cb011=>this['disposeWithMe'](this[_0x14039b(0x3cc)][_0x14039b(0x4a5)](_0x3cb011))),oc[_0x14039b(0x2e0)](_0x69d735=>{const _0x28b12b=_0x14039b;var _0xc2386b;return(_0xc2386b=this['_dataSyncPrimaryController'])==null?void 0x0:_0xc2386b[_0x28b12b(0x3bb)](_0x69d735);});}[_0x6c183(0x451)](){const _0x2419ac=_0x6c183;this[_0x2419ac(0x11e)]&&(this[_0x2419ac(0x135)](this[_0x2419ac(0x1be)][_0x2419ac(0x12b)](_0x5c5c99[_0x2419ac(0x36b)])[_0x2419ac(0x265)](({unit:_0xb47eac})=>{const _0x1ddeb1=_0x2419ac;this['_syncBaseUnit'](_0xb47eac[_0x1ddeb1(0x2ff)]());})),this['disposeWithMe'](this[_0x2419ac(0x1be)][_0x2419ac(0x1b5)](_0x5c5c99[_0x2419ac(0x36b)])[_0x2419ac(0x265)](_0x3bc5e7=>{const _0x2cf18c=_0x2419ac;var _0x10917a;(_0x10917a=this[_0x2cf18c(0x195)][_0x2cf18c(0x43e)](_0x3bc5e7['getUnitId']()))==null||_0x10917a[_0x2cf18c(0x1bb)](),this['_baseSyncDisposables'][_0x2cf18c(0x2fc)](_0x3bc5e7['getUnitId']());})));}[_0x6c183(0x1ed)](_0xb98a14){const _0x182eaf=_0x6c183;this[_0x182eaf(0x11e)]&&!this[_0x182eaf(0x195)][_0x182eaf(0x34b)](_0xb98a14)&&this[_0x182eaf(0x195)]['set'](_0xb98a14,this[_0x182eaf(0x11e)][_0x182eaf(0x31b)](_0xb98a14));}['_initRegistries'](){const _0x127091=_0x6c183;let _0x59cb14=this[_0x127091(0x224)][_0x127091(0x43e)](mr);zn()[_0x127091(0x2e0)](_0xbab98e=>_0x59cb14[_0x127091(0x2d9)](_0xbab98e));let _0x2d18d9=this[_0x127091(0x224)][_0x127091(0x43e)](ic),_0x1e0c0a=this[_0x127091(0x224)][_0x127091(0x43e)](ii);$r()['forEach'](_0x28db48=>{_0x2d18d9['register'](_0x28db48),_0x1e0c0a['registerView'](_0x28db48);});}};G(sc,'pluginName',_0x6c183(0x223)),G(sc,_0x6c183(0x3fa),js),G(sc,'version',Ms),G(sc,_0x6c183(0x20b),_0x5c5c99[_0x6c183(0x36b)]),sc=X([_0x2beafb(_0xa2587c,_0x16e087),Y(0x1,_0x490adb(_0x4f0ad3)),Y(0x2,_0x5daeb6),Y(0x3,_0x24efe9),Y(0x4,_0x2a3cb6),Y(0x5,_0x2f9a87(_0xd3ae6f))],sc);let cc=class extends _0x5e5cdb{constructor(_0xffe1f5=Ps,_0x2b6d1f,_0x2552c2,_0x557563,_0x3c9568){const _0xf81416=_0x6c183;super(),this[_0xf81416(0x16c)]=_0xffe1f5,this[_0xf81416(0x224)]=_0x2b6d1f,this[_0xf81416(0x3cc)]=_0x2552c2,this[_0xf81416(0x2f0)]=_0x557563,this[_0xf81416(0x1be)]=_0x3c9568;let {..._0x73202b}=_0x1bd132({},Ps,this[_0xf81416(0x16c)]);this[_0xf81416(0x2f0)][_0xf81416(0x11b)](_0xf81416(0x407),_0x73202b),this[_0xf81416(0x1be)][_0xf81416(0x322)](_0x5c5c99['UNIVER_BASE'],_0x351ad4),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0xf81416(0x2e0)](_0xeeb03a=>this['_injector'][_0xf81416(0x2ee)](_0xeeb03a)),oc['forEach'](_0x569241=>this[_0xf81416(0x135)](this[_0xf81416(0x3cc)]['registerCommand'](_0x569241)));}};G(cc,_0x6c183(0x297),_0x6c183(0x2bc)),G(cc,_0x6c183(0x3fa),js),G(cc,'version',Ms),G(cc,'type',_0x5c5c99[_0x6c183(0x36b)]),cc=X([_0x2beafb(_0xa2587c,_0x16e087),Y(0x1,_0x490adb(_0x4f0ad3)),Y(0x2,_0x5daeb6),Y(0x3,_0x2a3cb6),Y(0x4,_0x24efe9)],cc);function lc(_0x4199b9){const _0x5cbbe1=_0x6c183;let _0xa07181=Cc(_0x4199b9[_0x5cbbe1(0x2f3)]);if(!_0xa07181)return{'query':'','total':0x0,'matches':[]};let _0x1a9a30=[],_0x32277f=[];for(let _0x3ba49c=0x0;_0x3ba49c<_0x4199b9[_0x5cbbe1(0x31c)][_0x5cbbe1(0x13c)];_0x3ba49c++){if(!(_0x3ba49c in _0x4199b9[_0x5cbbe1(0x31c)]))continue;let _0xc448c9=_0x4199b9[_0x5cbbe1(0x4c7)][_0x5cbbe1(0x398)][_0x4199b9[_0x5cbbe1(0x31c)][_0x3ba49c]];_0xc448c9&&_0x32277f[_0x5cbbe1(0x174)]({'field':_0xc448c9,'fieldIndex':_0x3ba49c});}_0x4199b9['rows'][_0x5cbbe1(0x2e0)]((_0x465835,_0x2e008a)=>{const _0x47f05f=_0x5cbbe1;_0x32277f[_0x47f05f(0x2e0)](({field:_0x1b8bcc,fieldIndex:_0x28ac97})=>{const _0x539839=_0x47f05f;let _0x7e1c3c=uc(_0x465835[_0x539839(0x227)][_0x1b8bcc['id']],_0x1b8bcc);if(!_0x7e1c3c)return;let _0x422b9c=Sc(_0xa07181,_0x7e1c3c[_0x539839(0x1e9)]);_0x422b9c<=0x0||_0x1a9a30[_0x539839(0x174)]({'recordId':_0x465835[_0x539839(0x347)],'fieldId':_0x1b8bcc['id'],'fieldType':_0x1b8bcc[_0x539839(0x20b)],'text':_0x7e1c3c['displayText'],'score':_0x422b9c,'rowIndex':_0x2e008a,'fieldIndex':_0x28ac97});});}),_0x1a9a30[_0x5cbbe1(0x277)]((_0x24981f,_0x366b10)=>_0x366b10[_0x5cbbe1(0x212)]-_0x24981f[_0x5cbbe1(0x212)]||_0x24981f['rowIndex']-_0x366b10['rowIndex']||_0x24981f[_0x5cbbe1(0x29c)]-_0x366b10[_0x5cbbe1(0x29c)]);let _0x1e3e0f=_0x4199b9[_0x5cbbe1(0x31e)]==null?_0x1a9a30:_0x1a9a30['slice'](0x0,Math['max'](0x0,_0x4199b9['limit']));return{'query':_0xa07181,'total':_0x1a9a30[_0x5cbbe1(0x13c)],'matches':Tc(_0x1e3e0f)};}function uc(_0x22ca00,_0x1fdfcf){const _0x54535a=_0x6c183;let _0x53b92e=[];for(let _0x423fe5 of fc(_0x22ca00,_0x1fdfcf)){let _0x421570=Cc(_0x423fe5);_0x421570&&_0x53b92e[_0x54535a(0x174)](_0x421570);}return _0x53b92e[_0x54535a(0x13c)]?{'displayText':dc(_0x22ca00,_0x1fdfcf),'searchTexts':wc(_0x53b92e)}:null;}function dc(_0x526435,_0x38a66e){const _0x4324df=_0x6c183;switch(_0x38a66e['type']){case _0x3a044b[_0x4324df(0x20e)]:case _0x3a044b[_0x4324df(0x386)]:case _0x3a044b['Group']:return pc(_0x526435,_0x38a66e)[_0x4324df(0x11a)](',\x20');case _0x3a044b[_0x4324df(0x41f)]:return gc(_0x526435);case _0x3a044b['Date']:case _0x3a044b[_0x4324df(0x332)]:case _0x3a044b['UpdatedAt']:return _c(_0x526435,_0x38a66e);case _0x3a044b[_0x4324df(0x2f5)]:case _0x3a044b[_0x4324df(0x14d)]:return vc(_0x526435,_0x38a66e);case _0x3a044b['Progress']:return yc(_0x526435,_0x38a66e);case _0x3a044b[_0x4324df(0x233)]:return _0x526435?_0x4324df(0x35e):_0x4324df(0x4c2);case _0x3a044b[_0x4324df(0x1ab)]:return bc(_0x526435)[_0x4324df(0x11a)](',\x20');default:return xc(_0x526435);}}function fc(_0x3c38bb,_0x612bf8){const _0x2e6bf6=_0x6c183;switch(_0x612bf8['type']){case _0x3a044b[_0x2e6bf6(0x20e)]:case _0x3a044b[_0x2e6bf6(0x386)]:case _0x3a044b[_0x2e6bf6(0x1ad)]:{let _0x125453=pc(_0x3c38bb,_0x612bf8);if(Array[_0x2e6bf6(0x431)](_0x3c38bb)){let _0x384bbc=[..._0x125453];for(let _0x5e30ce=0x0;_0x5e30ce<_0x3c38bb[_0x2e6bf6(0x13c)];_0x5e30ce++)_0x5e30ce in _0x3c38bb&&_0x384bbc[_0x2e6bf6(0x174)](String(_0x3c38bb[_0x5e30ce]));return _0x384bbc;}return _0x3c38bb==null?_0x125453:[..._0x125453,String(_0x3c38bb)];}case _0x3a044b[_0x2e6bf6(0x41f)]:{let _0x198549=hc(_0x3c38bb);return[_0x198549['text'],_0x198549[_0x2e6bf6(0x32d)]];}case _0x3a044b['Date']:case _0x3a044b[_0x2e6bf6(0x332)]:case _0x3a044b[_0x2e6bf6(0x1fa)]:return[_c(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b[_0x2e6bf6(0x2f5)]:case _0x3a044b[_0x2e6bf6(0x14d)]:return[vc(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b[_0x2e6bf6(0x140)]:return[yc(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b['Checkbox']:return _0x3c38bb?[_0x2e6bf6(0x35e),_0x2e6bf6(0x4c1),_0x2e6bf6(0x3c6)]:['Unchecked','No',_0x2e6bf6(0x179)];case _0x3a044b[_0x2e6bf6(0x1ab)]:return bc(_0x3c38bb);default:return[xc(_0x3c38bb)];}}function pc(_0x2aed3e,_0x57a7bc){const _0xd6e1f0=_0x6c183;var _0x32b0e1;let _0x142a2e=Array[_0xd6e1f0(0x431)]((_0x32b0e1=_0x57a7bc['config'])==null?void 0x0:_0x32b0e1[_0xd6e1f0(0x2b3)])?_0x57a7bc[_0xd6e1f0(0x2ba)]['options']:[],_0x731d3b=[];if(Array[_0xd6e1f0(0x431)](_0x2aed3e)){for(let _0x12847d=0x0;_0x12847d<_0x2aed3e[_0xd6e1f0(0x13c)];_0x12847d++){if(!(_0x12847d in _0x2aed3e))continue;let _0x2e77da=String(_0x2aed3e[_0x12847d]);_0x2e77da&&_0x731d3b[_0xd6e1f0(0x174)](mc(_0x142a2e,_0x2e77da));}return _0x731d3b;}if(_0x2aed3e!=null){let _0x3e6aa0=String(_0x2aed3e);_0x3e6aa0&&_0x731d3b[_0xd6e1f0(0x174)](mc(_0x142a2e,_0x3e6aa0));}return _0x731d3b;}function mc(_0x3f9f74,_0x690df8){const _0x3d426c=_0x6c183;for(let _0x42fba5 of _0x3f9f74){if(typeof _0x42fba5==_0x3d426c(0x425)&&_0x42fba5===_0x690df8)return _0x42fba5;if(_0x42fba5&&typeof _0x42fba5=='object'){let _0x480559=_0x42fba5;if(String(_0x480559['id']??_0x480559[_0x3d426c(0x2a3)]??'')===_0x690df8||String(_0x480559[_0x3d426c(0x2a3)]??'')===_0x690df8)return String(_0x480559[_0x3d426c(0x2a3)]??_0x480559['id']??_0x690df8);}}return _0x690df8;}function hc(_0x36a54a){const _0xc0433=_0x6c183;if(_0x36a54a&&typeof _0x36a54a=='object'&&!Array['isArray'](_0x36a54a)){let _0x39b3fe=_0x36a54a;return{'text':String(_0x39b3fe[_0xc0433(0x3ae)]??_0x39b3fe[_0xc0433(0x32d)]??''),'url':String(_0x39b3fe[_0xc0433(0x32d)]??'')};}return{'text':xc(_0x36a54a),'url':xc(_0x36a54a)};}function gc(_0x4e8961){const _0x2aeebd=_0x6c183;let _0x730bd2=hc(_0x4e8961);return _0x730bd2[_0x2aeebd(0x3ae)]||_0x730bd2[_0x2aeebd(0x32d)];}function _c(_0x18bb6c,_0x2a04ab){const _0x5000c4=_0x6c183;return typeof _0x18bb6c!=_0x5000c4(0x24b)||!Number['isFinite'](_0x18bb6c)?'':mn(_0x18bb6c,_0x2a04ab[_0x5000c4(0x2ba)]);}function vc(_0x49dc02,_0x32c317){const _0x45dbf2=_0x6c183;let _0x159edb=typeof _0x49dc02==_0x45dbf2(0x24b)?_0x49dc02:Number(_0x49dc02);return Number[_0x45dbf2(0x143)](_0x159edb)?qo(_0x159edb,_0x32c317[_0x45dbf2(0x2ba)]):'';}function yc(_0x5b5c98,_0x55dfa5){const _0x516881=_0x6c183;let _0xd47556=typeof _0x5b5c98==_0x516881(0x24b)?_0x5b5c98:Number(_0x5b5c98);return Number['isFinite'](_0xd47556)?Qo(_0xd47556,_0x55dfa5['config']):'';}function bc(_0x37783e){const _0x20c0f7=_0x6c183;return Array[_0x20c0f7(0x431)](_0x37783e)?_0x37783e['flatMap'](_0x5163bb=>{const _0x4ceb8f=_0x20c0f7;if(!_0x5163bb||typeof _0x5163bb!=_0x4ceb8f(0x3d7))return[];let _0x3dca94=_0x5163bb,_0x3dc009=String(_0x3dca94[_0x4ceb8f(0x2a3)]??_0x3dca94[_0x4ceb8f(0x32d)]??'')[_0x4ceb8f(0x226)]();return _0x3dc009?[_0x3dc009]:[];}):[];}function xc(_0x566999){const _0x418739=_0x6c183;if(_0x566999==null)return'';if(typeof _0x566999==_0x418739(0x1cb))return _0x566999?'true':_0x418739(0x497);if(typeof _0x566999=='number')return String(_0x566999);if(Array['isArray'](_0x566999)){let _0x38b947=[];for(let _0xc15adb=0x0;_0xc15adb<_0x566999[_0x418739(0x13c)];_0xc15adb++){if(!(_0xc15adb in _0x566999))continue;let _0x4b84eb=xc(_0x566999[_0xc15adb]);_0x4b84eb&&_0x38b947[_0x418739(0x174)](_0x4b84eb);}return _0x38b947[_0x418739(0x11a)](',\x20');}if(typeof _0x566999==_0x418739(0x3d7)){let _0x48a65a=_0x566999;return String(_0x48a65a['title']??_0x48a65a[_0x418739(0x2a3)]??_0x48a65a[_0x418739(0x3ae)]??_0x48a65a[_0x418739(0x32d)]??'')[_0x418739(0x226)]();}return String(_0x566999);}function Sc(_0x5cc1a8,_0x8a3a00){const _0x3943d4=_0x6c183;let _0x5afc00=0x0;for(let _0x3eeea9 of _0x8a3a00)if(_0x3eeea9){if(_0x3eeea9===_0x5cc1a8){_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0x12c);continue;}if(_0x3eeea9[_0x3943d4(0x1fb)](_0x5cc1a8)){_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0xfa);continue;}_0x3eeea9[_0x3943d4(0x16a)](_0x5cc1a8)&&(_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0xc8));}return _0x5afc00;}function Cc(_0x2be9ee){const _0x1a4ee3=_0x6c183;return _0x2be9ee[_0x1a4ee3(0x226)]()[_0x1a4ee3(0x14e)](/\s+/g,'\x20')[_0x1a4ee3(0x432)]();}function wc(_0x42f0bf){const _0x7a2ec8=_0x6c183;return Array[_0x7a2ec8(0x1d5)](new Set(_0x42f0bf));}function Tc(_0x1b06d2){const _0x52fa43=_0x6c183;let _0x1512a9=[];for(let {rowIndex:_0x131d68,fieldIndex:_0x359fbc,..._0x2e80c8}of _0x1b06d2)_0x1512a9[_0x52fa43(0x174)](_0x2e80c8);return _0x1512a9;}function Ec(_0xf5c431){const _0x22c9ce=_0x6c183;return{'compress':!0x0,'kind':'base-range-values-v1','u':_0xf5c431[_0x22c9ce(0x393)],'t':_0xf5c431[_0x22c9ce(0x210)],'p':_0xf5c431[_0x22c9ce(0x2e6)]['map'](_0x180650=>[_0x180650[_0x22c9ce(0x4b3)],_0x180650[_0x22c9ce(0x295)],Ac(_0x180650[_0x22c9ce(0x350)])]),..._0xf5c431[_0x22c9ce(0x172)]===void 0x0?{}:{'g':_0xf5c431[_0x22c9ce(0x172)]}};}function Dc(_0xb3e175){const _0x33f9e9=_0x6c183;if(Lc(_0xb3e175,_0x33f9e9(0x472)),!Oc(_0xb3e175)){if(!Ic(_0xb3e175))throw Error(_0x33f9e9(0x2c9));return _0xb3e175;}return{'unitId':_0xb3e175['u'],'tableId':_0xb3e175['t'],'patches':_0xb3e175['p']['map'](([_0x32e72a,_0x4976e2,_0x37df08])=>({'row':_0x32e72a,'col':_0x4976e2,'value':jc(_0x37df08)})),..._0xb3e175['g']===void 0x0?{}:{'trigger':_0xb3e175['g']}};}function Oc(_0x45fa33){const _0x2eb33f=_0x6c183;return!Rc(_0x45fa33)||_0x45fa33['compress']!==!0x0||_0x45fa33[_0x2eb33f(0x275)]!==_0x2eb33f(0x472)?!0x1:typeof _0x45fa33['u']==_0x2eb33f(0x425)&&typeof _0x45fa33['t']==_0x2eb33f(0x425)&&(_0x45fa33['g']===void 0x0||typeof _0x45fa33['g']==_0x2eb33f(0x425))&&Array[_0x2eb33f(0x431)](_0x45fa33['p'])&&_0x45fa33['p'][_0x2eb33f(0x387)](_0x1cfa9e=>Array[_0x2eb33f(0x431)](_0x1cfa9e)&&_0x1cfa9e['length']===0x3&&Number[_0x2eb33f(0x406)](_0x1cfa9e[0x0])&&Number[_0x2eb33f(0x406)](_0x1cfa9e[0x1]));}function kc(_0x39d630){const _0x50d06b=_0x6c183;return!Rc(_0x39d630)||_0x39d630[_0x50d06b(0x13e)]!==!0x0||_0x39d630['kind']!=='base-snapshot-v1'||!Rc(_0x39d630['tables'])?!0x1:Object['values'](_0x39d630[_0x50d06b(0x298)])[_0x50d06b(0x387)](_0x24143c=>Rc(_0x24143c)&&(_0x24143c['cd']===void 0x0||Array[_0x50d06b(0x431)](_0x24143c['cd'])&&_0x24143c['cd']['every'](_0x13a4d2=>Array['isArray'](_0x13a4d2)&&_0x13a4d2['length']===0x3&&Number[_0x50d06b(0x406)](_0x13a4d2[0x0])&&Number[_0x50d06b(0x406)](_0x13a4d2[0x1])&&Fc(_0x13a4d2[0x2]))));}function Ac(_0x4ca9ab){return Pc(_0x4ca9ab)?Mc(_0x4ca9ab):_0x4ca9ab;}function jc(_0x27524d){return Fc(_0x27524d)?Nc(_0x27524d):_0x27524d;}function Mc(_0x11ba71){return{'c':0x1,..._0x11ba71['v']===void 0x0?{}:{'v':_0x11ba71['v']},..._0x11ba71['t']!==void 0x0&&_0x11ba71['t']!==null?{'t':_0x11ba71['t']}:_0x11ba71['t']===null?{'t':null}:{},..._0x11ba71['f']!==void 0x0&&_0x11ba71['f']!==null?{'f':_0x11ba71['f']}:_0x11ba71['f']===null?{'f':null}:{},..._0x11ba71['si']!==void 0x0&&_0x11ba71['si']!==null?{'si':_0x11ba71['si']}:_0x11ba71['si']===null?{'si':null}:{},..._0x11ba71['p']!==void 0x0&&_0x11ba71['p']!==null?{'p':_0x11ba71['p']}:_0x11ba71['p']===null?{'p':null}:{}};}function Nc(_0x8e94f5){return{..._0x8e94f5['v']===void 0x0?{}:{'v':_0x8e94f5['v']},..._0x8e94f5['t']===void 0x0?{}:{'t':_0x8e94f5['t']},..._0x8e94f5['f']===void 0x0?{}:{'f':_0x8e94f5['f']},..._0x8e94f5['si']===void 0x0?{}:{'si':_0x8e94f5['si']},..._0x8e94f5['p']===void 0x0?{}:{'p':_0x8e94f5['p']}};}function Pc(_0x575d0){const _0x51cd57=_0x6c183;return!!_0x575d0&&typeof _0x575d0==_0x51cd57(0x3d7)&&!Array[_0x51cd57(0x431)](_0x575d0)&&(Object[_0x51cd57(0x246)][_0x51cd57(0x48a)][_0x51cd57(0x43b)](_0x575d0,'v')||Object[_0x51cd57(0x246)]['hasOwnProperty']['call'](_0x575d0,'t')||Object[_0x51cd57(0x246)][_0x51cd57(0x48a)][_0x51cd57(0x43b)](_0x575d0,'p')||Object[_0x51cd57(0x246)]['hasOwnProperty'][_0x51cd57(0x43b)](_0x575d0,'f')||Object[_0x51cd57(0x246)]['hasOwnProperty'][_0x51cd57(0x43b)](_0x575d0,'si'));}function Fc(_0x3bbf1f){return Rc(_0x3bbf1f)&&_0x3bbf1f['c']===0x1;}function Ic(_0x4f851f){const _0x2e6aae=_0x6c183;return Rc(_0x4f851f)&&typeof _0x4f851f['unitId']==_0x2e6aae(0x425)&&typeof _0x4f851f['tableId']=='string'&&(_0x4f851f[_0x2e6aae(0x172)]===void 0x0||typeof _0x4f851f[_0x2e6aae(0x172)]==_0x2e6aae(0x425))&&Array['isArray'](_0x4f851f[_0x2e6aae(0x2e6)])&&_0x4f851f[_0x2e6aae(0x2e6)][_0x2e6aae(0x387)](_0x15843c=>Rc(_0x15843c)&&Number[_0x2e6aae(0x406)](_0x15843c[_0x2e6aae(0x4b3)])&&Number[_0x2e6aae(0x406)](_0x15843c['col'])&&_0x2e6aae(0x350)in _0x15843c);}function Lc(_0x5ef01c,_0x565746){const _0x243904=_0x6c183;if(Rc(_0x5ef01c)&&_0x5ef01c['compress']===!0x0){if(_0x5ef01c['kind']!==_0x565746)throw Error(_0x243904(0x2a8)+String(_0x5ef01c['kind'])+'\x22.');if(!(_0x565746==='base-range-values-v1'?Oc(_0x5ef01c):kc(_0x5ef01c)))throw Error(_0x243904(0x1d7)+_0x565746+'\x22.');}}function Rc(_0x3bf43e){const _0x3a1871=_0x6c183;return!!_0x3bf43e&&typeof _0x3bf43e==_0x3a1871(0x3d7)&&!Array[_0x3a1871(0x431)](_0x3bf43e);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x16f020 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
1
+ const _0x282c57=_0x3047;(function(_0x1b5c99,_0x231ea7){const _0x1331f8=_0x3047,_0x4970e6=_0x1b5c99();while(!![]){try{const _0x3daf6e=-parseInt(_0x1331f8(0x4f5))/0x1+-parseInt(_0x1331f8(0x1f1))/0x2*(-parseInt(_0x1331f8(0x23e))/0x3)+-parseInt(_0x1331f8(0x3cb))/0x4*(-parseInt(_0x1331f8(0x368))/0x5)+parseInt(_0x1331f8(0x558))/0x6+-parseInt(_0x1331f8(0x364))/0x7*(parseInt(_0x1331f8(0x34c))/0x8)+-parseInt(_0x1331f8(0x344))/0x9*(-parseInt(_0x1331f8(0x36a))/0xa)+-parseInt(_0x1331f8(0x53e))/0xb*(parseInt(_0x1331f8(0x37e))/0xc);if(_0x3daf6e===_0x231ea7)break;else _0x4970e6['push'](_0x4970e6['shift']());}catch(_0x13626f){_0x4970e6['push'](_0x4970e6['shift']());}}}(_0x332d,0x55b3c));import{BASE_RECORD_ID_FIELD_ID as _0x1a2ecc,BaseConditionalColorOperator as _0x5b882d,BaseConditionalColorTarget as _0x26d874,BaseConditionalDateMode as _0x3cc509,BaseDataModel as _0x1c1e04,BaseFieldType as _0x239099,BaseFilterConjunction as _0x2528f1,BaseHierarchyInvalidReason as _0x1e9d86,BaseRecordLinkRole as _0x33634f,BaseSortDirection as _0x111a17,BaseViewType as _0x1d9104,CellValueType as _0x110ba4,ColorKit as _0x3af328,CommandType as _0x31b5a7,CustomCommandExecutionError as _0x3aec47,DateSystem as _0x20fc86,DependentOn as _0x1ae952,Disposable as _0x3bb8e0,ErrorService as _0x2ba5f2,ICommandService as _0x2a9a16,IConfigService as _0x23dc17,IPermissionService as _0x39a8ae,IResourceManagerService as _0x59ae57,IUndoRedoService as _0x1f4c86,IUniverInstanceService as _0x54ce33,Inject as _0x4bcdd1,Injector as _0x5325dd,JSON1 as _0x2f9032,JSONX as _0x21604b,ObjectMatrix as _0x376646,ObjectPermissionRuleModel as _0x15cc0a,ObjectPermissionService as _0x532322,Optional as _0x2a3dd3,PermissionStatus as _0xcbb269,Plugin as _0x206208,Tools as _0xd92214,UniverInstanceType as _0x335149,allocateBaseFormulaTableName as _0x1d3afd,assertBaseTableRecordIdentity as _0x306a77,createBaseFormulaTableNameMap as _0x41215d,createBaseRecordIdField as _0x5674a9,createIdentifier as _0x2cfc4b,dateKit as _0x20f447,excelDateTimeSerial as _0x29c4f2,excelSerialToDateTime as _0x247811,generateRandomId as _0x4e27d9,getBaseFormulaTableName as _0x5e32d1,isBaseRecordIdFieldName as _0x38be32,isValidBaseRecordId as _0x2a190f,merge as _0xc2b1c2,nameCharacterCheck as _0x4ee737,numfmt as _0x1ce6f1,regexp as _0x529588,sequenceExecute as _0x34a596,toDisposable as _0x453a32,touchDependencies as _0x2fa2a9}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x14f705,IActiveDirtyManagerService as _0x5d22c8,RemoveSuperTableMutation as _0x16f34f,SetFormulaCalculationResultMutation as _0x260dd2,SetSuperTableMutation as _0x3f9972,SetTriggerFormulaCalculationStartMutation as _0x1d0f35,UniverProFormulaEnginePlugin as _0x269033,refactorFormulaUnitQualifier as _0x54dc4c}from'@univerjs-pro/engine-formula';import{UnitAction as _0x133e41,UnitObject as _0xd2ae12}from'@univerjs/protocol';import{UniverLicensePlugin as _0x3f6b6a}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x57ca42}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x2c8588,FormulaResultApplicationType as _0x5be45b}from'@univerjs/engine-formula';function N(_0x3eda17){const _0x2cc5cf=_0x3047;let _0x2d9ef2=_0x3eda17['config'][_0x2cc5cf(0x3e5)],_0x3a64ef=_0x3eda17[_0x2cc5cf(0x50c)][_0x2cc5cf(0x3ea)],_0x182d73=_0x3eda17[_0x2cc5cf(0x50c)]['displayFieldId'],_0x56e09d=_0x3eda17[_0x2cc5cf(0x50c)][_0x2cc5cf(0x29d)],_0x4b14fc=_0x3eda17[_0x2cc5cf(0x50c)][_0x2cc5cf(0x1f7)];return typeof _0x2d9ef2!=_0x2cc5cf(0x3e3)||!_0x2d9ef2||typeof _0x3a64ef!=_0x2cc5cf(0x386)||_0x182d73!==void 0x0&&(typeof _0x182d73!='string'||!_0x182d73)||_0x4b14fc!==void 0x0&&_0x4b14fc!==_0x33634f[_0x2cc5cf(0x19a)]||_0x56e09d!==void 0x0&&(!Array[_0x2cc5cf(0x3d5)](_0x56e09d)||_0x56e09d[_0x2cc5cf(0x436)](_0x37d393=>typeof _0x37d393!=_0x2cc5cf(0x3e3)||!_0x37d393)||new Set(_0x56e09d)['size']!==_0x56e09d[_0x2cc5cf(0x4ab)])?null:{'targetTableId':_0x2d9ef2,'multiple':_0x3a64ef,..._0x182d73?{'displayFieldId':_0x182d73}:{},..._0x56e09d?{'pickerFieldIds':[..._0x56e09d]}:{},..._0x4b14fc?{'relationRole':_0x4b14fc}:{}};}function Le(_0x1da1fe){const _0x49ed7d=_0x3047;return typeof _0x1da1fe!='string'||_0x1da1fe===''?[]:_0x1da1fe[_0x49ed7d(0x460)](',');}function Re(_0x39b8e9){const _0x26e0ed=_0x3047;return Array[_0x26e0ed(0x2f3)](new Set(_0x39b8e9))[_0x26e0ed(0x1c0)](',');}function ze(_0x46df41,_0x2ac3b7){const _0x1213d5=_0x3047;if(typeof _0x46df41!='string')return{'valid':!0x1,'reason':_0x1213d5(0x3fc)};if(_0x46df41==='')return{'valid':!0x0};let _0x5f5b2a=_0x46df41[_0x1213d5(0x460)](',');return!_0x2ac3b7&&_0x5f5b2a['length']>0x1?{'valid':!0x1,'reason':_0x1213d5(0x1d2)}:_0x5f5b2a[_0x1213d5(0x436)](_0x5070b9=>!_0x2a190f(_0x5070b9))||new Set(_0x5f5b2a)[_0x1213d5(0x286)]!==_0x5f5b2a[_0x1213d5(0x4ab)]||Re(_0x5f5b2a)!==_0x46df41?{'valid':!0x1,'reason':'[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.'}:{'valid':!0x0};}function Be(_0x38bc95,_0x2fe194){const _0x1ede4c=_0x3047;if(_0x2fe194[_0x1ede4c(0x4aa)]!==_0x239099[_0x1ede4c(0x2c2)])return{'valid':!0x0};let _0x1e9097=N(_0x2fe194),_0x595d80=_0x1e9097?_0x38bc95[_0x1ede4c(0x528)][_0x1e9097[_0x1ede4c(0x3e5)]]:void 0x0;if(!_0x1e9097||!_0x595d80)return{'valid':!0x1,'reason':_0x1ede4c(0x538)};let _0x2fb0f3=[..._0x1e9097[_0x1ede4c(0x41b)]?[_0x1e9097['displayFieldId']]:[],..._0x1e9097[_0x1ede4c(0x29d)]??[]][_0x1ede4c(0x525)](_0xadc505=>{const _0x54c3fd=_0x1ede4c;let _0x2b706c=_0x595d80[_0x54c3fd(0x453)][_0xadc505];return!_0x2b706c||_0x2b706c[_0x54c3fd(0x43c)]===!0x0||_0x2b706c['type']===_0x239099['RecordId'];});return _0x2fb0f3?{'valid':!0x1,'reason':_0x1ede4c(0x23f)+_0x2fb0f3+_0x1ede4c(0x231)}:{'valid':!0x0};}function Ve(_0x3360cc,_0x32d102,_0xe3e2cb,_0x3aee81={}){const _0x1b4f9d=_0x3047;let _0x46f7ca=N(_0x32d102);if(_0x32d102[_0x1b4f9d(0x4aa)]!==_0x239099[_0x1b4f9d(0x2c2)]||!_0x46f7ca)return{'valid':!0x1,'reason':_0x1b4f9d(0x4cd)};let _0x4c73ce=ze(_0xe3e2cb,_0x46f7ca[_0x1b4f9d(0x3ea)]);if(!_0x4c73ce[_0x1b4f9d(0x375)]||_0x3aee81[_0x1b4f9d(0x2c5)])return _0x4c73ce;let _0x3ea6c7=_0x3360cc[_0x1b4f9d(0x528)][_0x46f7ca['targetTableId']];if(!_0x3ea6c7)return{'valid':!0x1,'reason':_0x1b4f9d(0x538)};let _0x3b835b=Le(_0xe3e2cb)['find'](_0x365a8b=>!_0x3ea6c7['records'][_0x365a8b]);return _0x3b835b?{'valid':!0x1,'reason':_0x1b4f9d(0x459)+_0x3b835b+'\x22\x20does\x20not\x20exist.'}:{'valid':!0x0};}function He(_0xe388d5,_0x44b759){const _0xa3768b=_0x3047;return Object[_0xa3768b(0x54e)](_0xe388d5[_0xa3768b(0x528)])['flatMap'](_0xc6cc3c=>Object['values'](_0xc6cc3c[_0xa3768b(0x453)])[_0xa3768b(0x26a)](_0xfaa365=>{const _0xd10318=_0xa3768b;let _0xd9a051=_0xfaa365['type']===_0x239099[_0xd10318(0x2c2)]?N(_0xfaa365):null;return(_0xd9a051==null?void 0x0:_0xd9a051[_0xd10318(0x3e5)])===_0x44b759?[{'tableId':_0xc6cc3c['id'],'fieldId':_0xfaa365['id']}]:[];}));}const Ue=0x5,We=_0x282c57(0x31c);let Ge=function(_0x4ed4b8){const _0x251687=_0x282c57;return _0x4ed4b8['InvalidField']=_0x251687(0x38b),_0x4ed4b8['MissingRecord']='missingRecord',_0x4ed4b8[_0x251687(0x341)]=_0x251687(0x2e8),_0x4ed4b8[_0x251687(0x217)]=_0x251687(0x45f),_0x4ed4b8['MaxDepth']=_0x251687(0x1c4),_0x4ed4b8[_0x251687(0x201)]=_0x251687(0x20a),_0x4ed4b8;}({});var P=class extends Error{constructor(_0x59b646,_0x3eea37=_0x282c57(0x2bf)+_0x59b646){const _0x330552=_0x282c57;super(_0x3eea37),this[_0x330552(0x3fe)]=_0x59b646,this[_0x330552(0x2f4)]=_0x330552(0x1fe);}};let Ke=function(_0x2a8c59){const _0x1f130c=_0x282c57;return _0x2a8c59['UI']='ui',_0x2a8c59['Facade']=_0x1f130c(0x408),_0x2a8c59[_0x1f130c(0x195)]=_0x1f130c(0x1ba),_0x2a8c59['Undo']='undo',_0x2a8c59[_0x1f130c(0x202)]='redo',_0x2a8c59['Import']='import',_0x2a8c59;}({});function F(_0xf7c5a2,_0x1ee831){const _0x13d2b3=_0x282c57;if(!_0x1ee831)return!0x1;let _0x155c34=_0xf7c5a2['fields'][_0x1ee831];if(!_0x155c34||_0x155c34[_0x13d2b3(0x4aa)]!==_0x239099[_0x13d2b3(0x2c2)])return!0x1;let _0x39caa7=N(_0x155c34);return _0x39caa7?_0x39caa7[_0x13d2b3(0x3e5)]===_0xf7c5a2['id']&&_0x39caa7[_0x13d2b3(0x3ea)]===!0x1:!0x1;}function qe(_0x19f3bf){const _0x29d571=_0x282c57;return[..._0x19f3bf['fieldOrder'],...Object[_0x29d571(0x334)](_0x19f3bf[_0x29d571(0x453)])['filter'](_0x4a4537=>!_0x19f3bf[_0x29d571(0x534)]['includes'](_0x4a4537))[_0x29d571(0x1df)]()][_0x29d571(0x525)](_0xc818d3=>{const _0x3c7fb8=_0x29d571;var _0x5319a9;return F(_0x19f3bf,_0xc818d3)?((_0x5319a9=N(_0x19f3bf[_0x3c7fb8(0x453)][_0xc818d3]))==null?void 0x0:_0x5319a9[_0x3c7fb8(0x1f7)])===_0x33634f['Parent']:!0x1;})??null;}function Je(_0x49a8bb){const _0x41ab81=_0x282c57;let _0x38845c=qe(_0x49a8bb);if(_0x38845c)return _0x38845c;let _0xc9f96c=We,_0x526c70=0x2;for(;_0x49a8bb[_0x41ab81(0x453)][_0xc9f96c];)_0xc9f96c=We+'_'+_0x526c70++;return _0xc9f96c;}function Ye(_0x4af455,_0x5acfa1=Je(_0x4af455),_0x672fa9='Parent\x20Items'){const _0x339c2c=_0x282c57;return{'id':_0x5acfa1,'name':_0x672fa9,'type':_0x239099[_0x339c2c(0x2c2)],'config':{'targetTableId':_0x4af455['id'],'multiple':!0x1,'displayFieldId':_0x4af455[_0x339c2c(0x45c)],'pickerFieldIds':[_0x4af455['primaryFieldId']],'relationRole':_0x33634f['Parent']}};}function Xe(_0x43bc84){let _0x401ebf=qe(_0x43bc84);return _0x401ebf?[_0x401ebf]:[];}function Ze(_0x561e8e,_0x2f00ea){const _0x143bbb=_0x282c57;let _0x43a1af=[...Xe(_0x561e8e)][_0x143bbb(0x4cc)](_0x33061b=>_0x2f00ea['some'](_0x598f3a=>Object['prototype'][_0x143bbb(0x445)][_0x143bbb(0x2a4)](_0x598f3a[_0x143bbb(0x54e)],_0x33061b)));if(!_0x43a1af[_0x143bbb(0x4ab)])return[];let _0x267d09={..._0x561e8e[_0x143bbb(0x1e1)]};_0x2f00ea[_0x143bbb(0x34b)](_0xa0b5e9=>{const _0x2fc806=_0x143bbb;let _0x5576c6=_0x267d09[_0xa0b5e9[_0x2fc806(0x40d)]];_0x5576c6&&(_0x267d09[_0xa0b5e9[_0x2fc806(0x40d)]]={..._0x5576c6,'values':{..._0x5576c6[_0x2fc806(0x54e)],..._0xa0b5e9['values']}});});let _0x11d90c={..._0x561e8e,'records':_0x267d09},_0x46f8d5=[];return _0x43a1af['forEach'](_0x1518c9=>{const _0x37709a=_0x143bbb;let _0x56f4b9=tt(_0x561e8e,_0x1518c9),_0x4bff0b=tt(_0x11d90c,_0x1518c9);for(let [_0x22bebc,_0x17cc2c]of _0x4bff0b[_0x37709a(0x2c1)]){let _0x2ad306=_0x2f00ea[_0x37709a(0x436)](_0x2d521a=>_0x2d521a[_0x37709a(0x40d)]===_0x22bebc&&Object[_0x37709a(0x35c)]['hasOwnProperty'][_0x37709a(0x2a4)](_0x2d521a[_0x37709a(0x54e)],_0x1518c9));if(_0x56f4b9[_0x37709a(0x2c1)][_0x37709a(0x268)](_0x22bebc)!==_0x17cc2c||_0x2ad306)throw new P($e(_0x17cc2c));}_0x2f00ea[_0x37709a(0x34b)](_0x29a536=>{const _0x409da6=_0x37709a;if(!Object[_0x409da6(0x35c)][_0x409da6(0x445)][_0x409da6(0x2a4)](_0x29a536[_0x409da6(0x54e)],_0x1518c9))return;let _0x5d5260=_0x56f4b9[_0x409da6(0x39a)][_0x409da6(0x268)](_0x29a536[_0x409da6(0x40d)])??null,_0xf11034=_0x4bff0b[_0x409da6(0x39a)][_0x409da6(0x268)](_0x29a536[_0x409da6(0x40d)])??null;_0x5d5260!==_0xf11034&&_0x46f8d5[_0x409da6(0x381)]({'tableId':_0x561e8e['id'],'fieldId':_0x1518c9,'recordId':_0x29a536[_0x409da6(0x40d)],'oldParentRecordId':_0x5d5260,'parentRecordId':_0xf11034});});}),_0x46f8d5;}function Qe(_0x2a7859,_0xcdc91f){const _0x32705d=_0x282c57;let _0x3b0b49=_0xcdc91f['map'](_0x2de8ff=>_0x2de8ff['id']);if(new Set(_0x3b0b49)[_0x32705d(0x286)]!==_0x3b0b49[_0x32705d(0x4ab)]||_0x3b0b49[_0x32705d(0x436)](_0x297aa5=>_0x2a7859[_0x32705d(0x1e1)][_0x297aa5]))return[];let _0x194ffa=Xe(_0x2a7859),_0x345d3f=_0x194ffa['length']?null:Je(_0x2a7859),_0x16d2a4=[..._0x194ffa,..._0x345d3f&&_0xcdc91f[_0x32705d(0x436)](_0x4bb0dd=>Object[_0x32705d(0x35c)][_0x32705d(0x445)][_0x32705d(0x2a4)](_0x4bb0dd[_0x32705d(0x54e)],_0x345d3f))?[_0x345d3f]:[]][_0x32705d(0x4cc)](_0x1331e7=>_0xcdc91f[_0x32705d(0x436)](_0x418523=>Object['prototype']['hasOwnProperty'][_0x32705d(0x2a4)](_0x418523[_0x32705d(0x54e)],_0x1331e7)));if(!_0x16d2a4[_0x32705d(0x4ab)])return[];let _0xca2e61={..._0x2a7859,'records':{..._0x2a7859[_0x32705d(0x1e1)],...Object['fromEntries'](_0xcdc91f['map'](_0x41b962=>[_0x41b962['id'],_0x41b962]))},'recordOrder':[..._0x2a7859['recordOrder']??[],..._0xcdc91f['map'](_0x57570c=>_0x57570c['id'])]},_0x1015a2=[];return _0x16d2a4['forEach'](_0x4f670e=>{let _0x549ea8=tt(_0xca2e61,_0x4f670e);_0xcdc91f['forEach'](_0x192c90=>{const _0xde90e0=_0x3047;let _0x92dde9=_0x549ea8[_0xde90e0(0x2c1)][_0xde90e0(0x268)](_0x192c90['id']);if(_0x92dde9)throw new P($e(_0x92dde9));let _0x34f6af=_0x549ea8[_0xde90e0(0x39a)]['get'](_0x192c90['id'])??null;_0x34f6af&&_0x1015a2[_0xde90e0(0x381)]({'tableId':_0x2a7859['id'],'fieldId':_0x4f670e,'recordId':_0x192c90['id'],'oldParentRecordId':null,'parentRecordId':_0x34f6af});});}),_0x1015a2;}function $e(_0x3e9b21){const _0x55c97a=_0x282c57;switch(_0x3e9b21){case _0x1e9d86[_0x55c97a(0x266)]:return'missingRecord';case _0x1e9d86[_0x55c97a(0x341)]:return _0x55c97a(0x2e8);case _0x1e9d86[_0x55c97a(0x217)]:return _0x55c97a(0x45f);case _0x1e9d86[_0x55c97a(0x27f)]:return _0x55c97a(0x1c4);}}function et(_0x2df6b1,_0x5a813d){const _0x2f8a73=_0x282c57;let _0x33d15c=new Set(_0x5a813d),_0xe0c104=Xe(_0x2df6b1);return Object['values'](_0x2df6b1[_0x2f8a73(0x1e1)])[_0x2f8a73(0x26a)](_0x2e19b3=>_0x33d15c['has'](_0x2e19b3['id'])?[]:Array[_0x2f8a73(0x2f3)](_0xe0c104)['flatMap'](_0x14e989=>{const _0x7c062d=_0x2f8a73;let _0x5e9b8c=Le(_0x2e19b3[_0x7c062d(0x54e)][_0x14e989])[0x0]??null;return _0x5e9b8c&&_0x33d15c[_0x7c062d(0x25c)](_0x5e9b8c)?[{'tableId':_0x2df6b1['id'],'fieldId':_0x14e989,'recordId':_0x2e19b3['id'],'oldParentRecordId':_0x5e9b8c,'parentRecordId':null}]:[];}));}function tt(_0x5d5f18,_0x488f10,_0x1b7103=_0x5d5f18['recordOrder']??Object['keys'](_0x5d5f18[_0x282c57(0x1e1)])){const _0x3e1170=_0x282c57;if((_0x5d5f18[_0x3e1170(0x453)][_0x488f10]||_0x488f10!==Je(_0x5d5f18))&&!F(_0x5d5f18,_0x488f10))throw Error(_0x3e1170(0x19e)+_0x488f10+_0x3e1170(0x239));let _0x5b4b88=at(_0x5d5f18,_0x1b7103),_0x397c30=new Map(),_0x3e800e=new Map();for(let _0x413508 of _0x5b4b88){var _0x4cf79f;let _0x53f0a8=Le((_0x4cf79f=_0x5d5f18[_0x3e1170(0x1e1)][_0x413508])==null?void 0x0:_0x4cf79f[_0x3e1170(0x54e)][_0x488f10])[0x0]??null;_0x53f0a8?_0x53f0a8===_0x413508?(_0x397c30['set'](_0x413508,null),_0x3e800e[_0x3e1170(0x246)](_0x413508,_0x1e9d86[_0x3e1170(0x341)])):_0x5d5f18[_0x3e1170(0x1e1)][_0x53f0a8]?_0x397c30[_0x3e1170(0x246)](_0x413508,_0x53f0a8):(_0x397c30[_0x3e1170(0x246)](_0x413508,null),_0x3e800e[_0x3e1170(0x246)](_0x413508,_0x1e9d86['MissingParent'])):_0x397c30[_0x3e1170(0x246)](_0x413508,null);}ot(_0x397c30,_0x3e800e,_0x5b4b88),st(_0x397c30,_0x3e800e,_0x5b4b88);let _0x552d6a=new Map(_0x5b4b88[_0x3e1170(0x309)]((_0x2d255e,_0x1fa40b)=>[_0x2d255e,_0x1fa40b])),_0x5b8c72=new Map();for(let _0x4ab340 of _0x5b4b88){let _0x17f2c1=_0x397c30['get'](_0x4ab340)??null,_0x3bb582=_0x5b8c72[_0x3e1170(0x268)](_0x17f2c1)??[];_0x3bb582[_0x3e1170(0x381)](_0x4ab340),_0x5b8c72['set'](_0x17f2c1,_0x3bb582);}_0x5b8c72['forEach'](_0x135990=>_0x135990[_0x3e1170(0x1df)]((_0x192837,_0xef6987)=>(_0x552d6a[_0x3e1170(0x268)](_0x192837)??0x0)-(_0x552d6a['get'](_0xef6987)??0x0)));let _0x16091c=_0x5b8c72[_0x3e1170(0x268)](null)??[],_0x3f9987=new Map(),_0x554387=new Map(),_0x1a4dd6=[],_0x2dbb12=(_0x36d15d,_0x15d0e9)=>{const _0x4d0e4f=_0x3e1170;_0x3f9987[_0x4d0e4f(0x246)](_0x36d15d,_0x15d0e9),_0x1a4dd6[_0x4d0e4f(0x381)](_0x36d15d);let _0x14ec3f=0x0;for(let _0x2b1e81 of _0x5b8c72[_0x4d0e4f(0x268)](_0x36d15d)??[])_0x14ec3f=Math[_0x4d0e4f(0x468)](_0x14ec3f,0x1+_0x2dbb12(_0x2b1e81,_0x15d0e9+0x1));return _0x554387[_0x4d0e4f(0x246)](_0x36d15d,_0x14ec3f),_0x14ec3f;};return _0x16091c['forEach'](_0x19317d=>_0x2dbb12(_0x19317d,0x0)),{'fieldId':_0x488f10,'parentByRecordId':_0x397c30,'childrenByParentId':_0x5b8c72,'depthByRecordId':_0x3f9987,'subtreeHeightByRecordId':_0x554387,'invalidReasonByRecordId':_0x3e800e,'rootRecordIds':_0x16091c,'orderedRecordIds':_0x1a4dd6};}function nt(_0x3b9d5d,_0x5c6869,_0x292900=new Set(_0x5c6869[_0x282c57(0x309)](_0x435f6c=>_0x435f6c[_0x282c57(0x40d)]))){const _0x4fb072=_0x282c57;let _0x4e5afd=new Set(_0x292900);for(let _0x12653b of _0x292900){let _0xe36e76=_0x3b9d5d['parentByRecordId'][_0x4fb072(0x268)](_0x12653b)??null;for(;_0xe36e76;)_0x4e5afd[_0x4fb072(0x551)](_0xe36e76),_0xe36e76=_0x3b9d5d[_0x4fb072(0x39a)][_0x4fb072(0x268)](_0xe36e76)??null;}let _0x9a6736=new Map(_0x5c6869[_0x4fb072(0x309)](_0x2a4143=>[_0x2a4143[_0x4fb072(0x40d)],_0x2a4143])),_0x48a7a5=_0x3b9d5d[_0x4fb072(0x2db)][_0x4fb072(0x4cc)](_0x3d4fcc=>_0x4e5afd[_0x4fb072(0x25c)](_0x3d4fcc)),_0x1929c1=_0x48a7a5[_0x4fb072(0x26a)](_0x33bd93=>{const _0x3ccb62=_0x4fb072;let _0x29e291=_0x9a6736[_0x3ccb62(0x268)](_0x33bd93);return _0x29e291?[_0x29e291]:[];}),_0x5ce04a={};for(let _0x9fab78=0x0;_0x9fab78<_0x48a7a5[_0x4fb072(0x4ab)];_0x9fab78++){let _0x12cafe=_0x48a7a5[_0x9fab78];_0x5ce04a[_0x12cafe]={'recordId':_0x12cafe,'parentRecordId':_0x3b9d5d[_0x4fb072(0x39a)][_0x4fb072(0x268)](_0x12cafe)??null,'depth':_0x3b9d5d[_0x4fb072(0x3ec)][_0x4fb072(0x268)](_0x12cafe)??0x0,'directChildCount':(_0x3b9d5d[_0x4fb072(0x28a)][_0x4fb072(0x268)](_0x12cafe)??[])[_0x4fb072(0x4ab)],'subtreeHeight':_0x3b9d5d[_0x4fb072(0x488)][_0x4fb072(0x268)](_0x12cafe)??0x0,'subtreeEndIndex':_0x9fab78,'invalidReason':_0x3b9d5d['invalidReasonByRecordId'][_0x4fb072(0x268)](_0x12cafe)};}let _0x2dc6de=[];for(let _0x140280=0x0;_0x140280<_0x48a7a5[_0x4fb072(0x4ab)];_0x140280++){let _0x19d57f=_0x48a7a5[_0x140280],_0x35b3f4=_0x5ce04a[_0x19d57f][_0x4fb072(0x3dd)];for(;_0x2dc6de[_0x4fb072(0x4ab)]&&_0x2dc6de[_0x2dc6de[_0x4fb072(0x4ab)]-0x1][_0x4fb072(0x3dd)]>=_0x35b3f4;){let _0x12ad5c=_0x2dc6de[_0x4fb072(0x191)]();_0x5ce04a[_0x12ad5c[_0x4fb072(0x40d)]]['subtreeEndIndex']=_0x140280-0x1;}_0x2dc6de[_0x4fb072(0x381)]({'recordId':_0x19d57f,'depth':_0x35b3f4});}return _0x2dc6de[_0x4fb072(0x34b)](({recordId:_0x45fcc5})=>{const _0x1ed5e0=_0x4fb072;_0x5ce04a[_0x45fcc5][_0x1ed5e0(0x3da)]=_0x48a7a5['length']-0x1;}),{'rows':_0x1929c1,'hierarchy':{'fieldId':_0x3b9d5d['fieldId'],'rootRecordIds':_0x3b9d5d[_0x4fb072(0x1b0)][_0x4fb072(0x4cc)](_0x427f29=>_0x4e5afd[_0x4fb072(0x25c)](_0x427f29)),'orderedRecordIds':_0x48a7a5,'nodes':_0x5ce04a}};}function rt(_0x526afa,_0x4cd94b){const _0x1af679=_0x282c57;if(!_0x526afa['hierarchy']||!(_0x4cd94b!=null&&_0x4cd94b[_0x1af679(0x286)]))return _0x526afa['rows'];let _0x449d52=[],_0x44acc9=0x0;for(;_0x44acc9<_0x526afa[_0x1af679(0x535)]['length'];){let _0xc543f0=_0x526afa[_0x1af679(0x535)][_0x44acc9];_0x449d52[_0x1af679(0x381)](_0xc543f0);let _0x5b420d=_0x526afa[_0x1af679(0x43d)][_0x1af679(0x283)][_0xc543f0[_0x1af679(0x40d)]];_0x44acc9=_0x4cd94b['has'](_0xc543f0[_0x1af679(0x40d)])&&_0x5b420d?_0x5b420d['subtreeEndIndex']+0x1:_0x44acc9+0x1;}return _0x449d52;}function it(_0x54eb70,_0x4c2c7f,_0xeba009){const _0x42857b=_0x282c57;if(!_0xeba009)return{'valid':!0x0};if(_0x4c2c7f===_0xeba009)return{'valid':!0x1,'reason':_0x1e9d86['SelfParent']};let _0x5c1f8e=_0xeba009;for(;_0x5c1f8e;){if(_0x5c1f8e===_0x4c2c7f)return{'valid':!0x1,'reason':_0x1e9d86['Cycle']};_0x5c1f8e=_0x54eb70[_0x42857b(0x39a)][_0x42857b(0x268)](_0x5c1f8e)??null;}return(_0x54eb70[_0x42857b(0x3ec)][_0x42857b(0x268)](_0xeba009)??0x0)+0x1+(_0x54eb70['subtreeHeightByRecordId'][_0x42857b(0x268)](_0x4c2c7f)??0x0)>=0x5?{'valid':!0x1,'reason':_0x1e9d86[_0x42857b(0x27f)]}:{'valid':!0x0};}function at(_0x7dd33c,_0x1b003c){const _0x43d4b8=_0x282c57;let _0x114f57=new Set(),_0x9cef3=[];for(let _0x33ef93 of _0x1b003c)_0x7dd33c[_0x43d4b8(0x1e1)][_0x33ef93]&&!_0x114f57[_0x43d4b8(0x25c)](_0x33ef93)&&(_0x114f57['add'](_0x33ef93),_0x9cef3['push'](_0x33ef93));return Object[_0x43d4b8(0x334)](_0x7dd33c['records'])[_0x43d4b8(0x1df)]()[_0x43d4b8(0x34b)](_0x330cf4=>{const _0x9d204f=_0x43d4b8;_0x114f57['has'](_0x330cf4)||_0x9cef3[_0x9d204f(0x381)](_0x330cf4);}),_0x9cef3;}function ot(_0x1fef60,_0x4320e7,_0x4d3959){const _0x6225a6=_0x282c57;let _0x243143=new Set();for(let _0x1e1caf of _0x4d3959){if(_0x243143['has'](_0x1e1caf))continue;let _0x52a471=[],_0x4a65a3=new Map(),_0x1723ce=_0x1e1caf;for(;_0x1723ce&&!_0x243143[_0x6225a6(0x25c)](_0x1723ce);){let _0x15608e=_0x4a65a3[_0x6225a6(0x268)](_0x1723ce);if(_0x15608e!=null){let _0x5c6d5e=[..._0x52a471[_0x6225a6(0x287)](_0x15608e)][_0x6225a6(0x1df)]()[_0x6225a6(0x191)]();_0x1fef60[_0x6225a6(0x246)](_0x5c6d5e,null),_0x4320e7[_0x6225a6(0x246)](_0x5c6d5e,_0x1e9d86[_0x6225a6(0x217)]);break;}_0x4a65a3[_0x6225a6(0x246)](_0x1723ce,_0x52a471[_0x6225a6(0x4ab)]),_0x52a471[_0x6225a6(0x381)](_0x1723ce),_0x1723ce=_0x1fef60[_0x6225a6(0x268)](_0x1723ce)??null;}_0x52a471[_0x6225a6(0x34b)](_0x3fe4e3=>_0x243143[_0x6225a6(0x551)](_0x3fe4e3));}}function st(_0x424ac5,_0x4b4f25,_0x4dc8ff){const _0x1a20de=_0x282c57;let _0xc33f9f=new Map(),_0x9de15e=_0x51f930=>{const _0x2bd262=_0x3047;let _0x5a2a7f=_0xc33f9f[_0x2bd262(0x268)](_0x51f930);if(_0x5a2a7f!=null)return _0x5a2a7f;let _0x50bd3a=_0x424ac5[_0x2bd262(0x268)](_0x51f930)??null;if(!_0x50bd3a)return _0xc33f9f['set'](_0x51f930,0x0),0x0;let _0x2bab02=_0x9de15e(_0x50bd3a)+0x1;return _0x2bab02>=0x5?(_0x424ac5[_0x2bd262(0x246)](_0x51f930,null),_0x4b4f25[_0x2bd262(0x246)](_0x51f930,_0x1e9d86[_0x2bd262(0x27f)]),_0xc33f9f['set'](_0x51f930,0x0),0x0):(_0xc33f9f[_0x2bd262(0x246)](_0x51f930,_0x2bab02),_0x2bab02);};_0x4dc8ff[_0x1a20de(0x34b)](_0x9de15e);}let ct=0x0;function lt(){const _0xd7a5d5=_0x282c57;if(globalThis[_0xd7a5d5(0x2c8)]===!0x0)return!0x0;try{let _0x555732=typeof location>'u'?'':location[_0xd7a5d5(0x1ca)],_0x9981ac=new URLSearchParams(_0x555732);if(_0x9981ac['get'](_0xd7a5d5(0x41f))==='1'||_0x9981ac[_0xd7a5d5(0x268)]('basePerf')==='true'||_0x9981ac[_0xd7a5d5(0x268)](_0xd7a5d5(0x2d4))==='1')return!0x0;}catch{}try{let _0x239a09=typeof localStorage>'u'?null:localStorage[_0xd7a5d5(0x49a)](_0xd7a5d5(0x3f2));return _0x239a09==='1'||_0x239a09===_0xd7a5d5(0x2ee);}catch{return!0x1;}}function I(_0x19842b,_0x27f69b,_0x1249ad){const _0x167f63=_0x282c57;if(!lt())return _0x27f69b();let _0x20d19e=dt(),_0x3a2028=_0x167f63(0x1d6)+ct++;ft(_0x3a2028+_0x167f63(0x40f));try{return _0x27f69b();}finally{let _0x35b0d4=dt()-_0x20d19e;ft(_0x3a2028+_0x167f63(0x1be)),pt(_0x19842b,_0x3a2028+_0x167f63(0x40f),_0x3a2028+_0x167f63(0x1be)),ut(_0x19842b,_0x35b0d4,_0x1249ad);}}function ut(_0x52a63d,_0x22567e,_0x3f6393){const _0x5b484e=_0x282c57;if(!lt())return;let _0x390bf1=Math[_0x5b484e(0x1b1)](_0x22567e*0x64)/0x64,_0x2a4b09=_0x3f6393&&Object[_0x5b484e(0x334)](_0x3f6393)[_0x5b484e(0x4ab)]?'\x20'+JSON[_0x5b484e(0x2fb)](_0x3f6393):'';console[_0x5b484e(0x2ec)](_0x5b484e(0x249)+_0x52a63d+':\x20'+_0x390bf1+'ms'+_0x2a4b09);}function dt(){const _0x8394fd=_0x282c57;return typeof performance<'u'&&typeof performance[_0x8394fd(0x42b)]==_0x8394fd(0x3b9)?performance[_0x8394fd(0x42b)]():Date[_0x8394fd(0x42b)]();}function ft(_0x46349a){const _0x15c940=_0x282c57;try{if(typeof performance<'u'){var _0x179e9d,_0x2f25e3;(_0x179e9d=(_0x2f25e3=performance)[_0x15c940(0x52b)])==null||_0x179e9d['call'](_0x2f25e3,_0x46349a);}}catch{}}function pt(_0xa3564f,_0xa0c132,_0x1d0c6e){const _0x83cee4=_0x282c57;try{if(typeof performance<'u'){var _0x16a55b,_0x51ae0a;(_0x16a55b=(_0x51ae0a=performance)[_0x83cee4(0x3f0)])==null||_0x16a55b['call'](_0x51ae0a,_0x83cee4(0x249)+_0xa3564f,_0xa0c132,_0x1d0c6e);}}catch{}}function L(_0x3c66e0){const _0x288182=_0x282c57;var _0x2f3468;return lt()?I(_0x288182(0x33c),()=>mt(_0x3c66e0),{'tableId':_0x3c66e0['id'],'records':Object[_0x288182(0x334)](_0x3c66e0[_0x288182(0x1e1)]??{})[_0x288182(0x4ab)],'fields':_0x3c66e0['fieldOrder'][_0x288182(0x4ab)],'hasRecordOrder':!!((_0x2f3468=_0x3c66e0[_0x288182(0x413)])!=null&&_0x2f3468['length'])}):mt(_0x3c66e0);}function mt(_0x39e33b){const _0x4532cc=_0x282c57;var _0x5268f7;let _0x4e9e27=_0x39e33b[_0x4532cc(0x1e1)]??{},_0x5b556e=_0x39e33b[_0x4532cc(0x453)]??{},_0x4a781b=((_0x5268f7=_0x39e33b[_0x4532cc(0x413)])==null?void 0x0:_0x5268f7[_0x4532cc(0x4cc)](_0x584eb3=>_0x4e9e27[_0x584eb3]))??[],_0x2e5bf9=new Set(_0x4a781b),_0x5a0a49=[];for(let _0x51a90f of Object[_0x4532cc(0x54e)](_0x4e9e27))_0x2e5bf9['has'](_0x51a90f['id'])||_0x5a0a49['push'](_0x51a90f);let _0x3fb2ef=_0x5a0a49[_0x4532cc(0x4ab)]?[..._0x4a781b,...Rt(_0x5a0a49)]:_0x4a781b,_0x21b787=_0x39e33b[_0x4532cc(0x534)]['filter'](_0x131f12=>_0x5b556e[_0x131f12]),_0x18d78a={..._0x39e33b['rowId']??{}},_0x255992={..._0x39e33b['colId']??{}},_0x5c478d={..._0x39e33b[_0x4532cc(0x343)]??{}};_0x39e33b[_0x4532cc(0x413)]=_0x3fb2ef,_0x39e33b[_0x4532cc(0x277)]={},_0x39e33b[_0x4532cc(0x21b)]={},_0x39e33b[_0x4532cc(0x28f)]={},_0x39e33b[_0x4532cc(0x46d)]={},_0x39e33b[_0x4532cc(0x343)]={},_0x39e33b[_0x4532cc(0x27b)]={..._0x39e33b[_0x4532cc(0x27b)]??{}},_0x39e33b[_0x4532cc(0x27b)][_0x4532cc(0x556)]={..._0x39e33b[_0x4532cc(0x27b)][_0x4532cc(0x556)]??{}},_0x39e33b[_0x4532cc(0x27b)][_0x4532cc(0x3ba)]={..._0x39e33b[_0x4532cc(0x27b)][_0x4532cc(0x3ba)]??{}};let _0x2f6751=_0x39e33b[_0x4532cc(0x277)],_0x57fc93=_0x39e33b[_0x4532cc(0x21b)],_0x54687f=_0x39e33b[_0x4532cc(0x28f)],_0x66412e=_0x39e33b[_0x4532cc(0x46d)],_0x4e4238=_0x39e33b[_0x4532cc(0x343)];return _0x3fb2ef[_0x4532cc(0x34b)]((_0xe2fe15,_0x194c3a)=>{_0x2f6751[_0xe2fe15]=_0x194c3a,_0x57fc93[_0x194c3a]=_0xe2fe15;}),_0x21b787['forEach']((_0x23c148,_0x28b709)=>{_0x54687f[_0x23c148]=_0x28b709,_0x66412e[_0x28b709]=_0x23c148;}),Object[_0x4532cc(0x41d)](_0x5c478d)[_0x4532cc(0x34b)](([_0x353fe6,_0x2466b0])=>{const _0x2c95e4=_0x4532cc;let _0x5b9732=Number(_0x353fe6),_0x1f7c50=_0x18d78a[_0x5b9732]??_0x3fb2ef[_0x5b9732],_0x533150=_0x1f7c50?_0x2f6751[_0x1f7c50]:void 0x0;_0x533150!=null&&(_0x4e4238[_0x533150]={..._0x4e4238[_0x533150]??{}},Object[_0x2c95e4(0x41d)](_0x2466b0??{})[_0x2c95e4(0x34b)](([_0x116978,_0x149259])=>{let _0x2fec6e=Number(_0x116978),_0x40ec1f=_0x255992[_0x2fec6e]??_0x21b787[_0x2fec6e],_0x40f8f5=_0x40ec1f?_0x54687f[_0x40ec1f]:void 0x0;_0x40f8f5!=null&&(_0x4e4238[_0x533150][_0x40f8f5]=St(_0x149259));}));}),Object[_0x4532cc(0x54e)](_0x4e9e27)[_0x4532cc(0x34b)](_0x48add3=>{const _0x4d2939=_0x4532cc;let _0x5c1ead=_0x2f6751[_0x48add3['id']];_0x5c1ead!=null&&(_0x48add3[_0x4d2939(0x54e)]={..._0x48add3[_0x4d2939(0x54e)]??{},[_0x1a2ecc]:_0x48add3['id']},_0x4e4238[_0x5c1ead]={..._0x4e4238[_0x5c1ead]??{},0x0:{'v':_0x48add3['id'],'t':_0x110ba4[_0x4d2939(0x23b)]}},Object['entries'](_0x48add3['values']??{})[_0x4d2939(0x34b)](([_0x4a6878,_0x2a9da])=>{const _0x505049=_0x4d2939;let _0x56ffce=_0x5b556e[_0x4a6878];(_0x56ffce==null?void 0x0:_0x56ffce[_0x505049(0x4aa)])===_0x239099[_0x505049(0x392)]&&Dt(_0x39e33b,_0x48add3['id'],_0x4a6878,_0x2a9da);let _0x6fea53=_0x54687f[_0x4a6878];if(_0x6fea53==null)return;let _0x16e2b6=_0x4e4238[_0x5c1ead][_0x6fea53];if(_0x16e2b6!=null){jt(_0x16e2b6,_0x56ffce,_0x2a9da)&&(_0x4e4238[_0x5c1ead][_0x6fea53]=xt(_0x2a9da,_0x56ffce));return;}_0x4e4238[_0x5c1ead][_0x6fea53]=xt(_0x2a9da,_0x56ffce);}));}),_0x39e33b;}function ht(_0xbf6710,_0x532da9){const _0x3110a7=_0x282c57;return _0xbf6710[_0x3110a7(0x1e1)]=Object[_0x3110a7(0x1af)](Object[_0x3110a7(0x41d)](_0xbf6710[_0x3110a7(0x1e1)])[_0x3110a7(0x309)](([_0x3ba971,_0xb6f3b8])=>[_0x3ba971,{..._0xb6f3b8}])),L(_0xbf6710),Object[_0x3110a7(0x41d)](_0xbf6710['rowId']??{})['forEach'](([_0x26a668,_0x30800a])=>{const _0x5f5985=_0x3110a7;var _0x4dba15;let _0x2031d5=Number(_0x26a668),_0x53597f=_0xbf6710[_0x5f5985(0x1e1)][_0x30800a];_0x53597f&&(_0x53597f[_0x5f5985(0x54e)]={..._0x53597f[_0x5f5985(0x54e)]??{}},Object['entries'](((_0x4dba15=_0xbf6710[_0x5f5985(0x343)])==null?void 0x0:_0x4dba15[_0x2031d5])??{})[_0x5f5985(0x34b)](([_0x5bd9cd,_0x3b04df])=>{const _0x19142c=_0x5f5985;var _0x2a3b8c;let _0x3e07f8=(_0x2a3b8c=_0xbf6710[_0x19142c(0x46d)])==null?void 0x0:_0x2a3b8c[Number(_0x5bd9cd)];_0x3e07f8&&_0x532da9&&!_0x532da9(_0x30800a,_0x3e07f8)||(_0x3e07f8===_0x1a2ecc?_0x53597f[_0x19142c(0x54e)][_0x1a2ecc]=_0x53597f['id']:_0x3e07f8&&(_0x53597f[_0x19142c(0x54e)][_0x3e07f8]=Ct(_0x3b04df,_0xbf6710[_0x19142c(0x453)][_0x3e07f8],_0xbf6710,_0x30800a)));}));}),_0xbf6710;}function gt(_0x10feff,_0x404314){const _0x1eace7=_0x282c57;for(let {row:_0x54166c,col:_0x2ecac6}of _0x404314){var _0x26bec0,_0x2d04cc,_0x2a571f;let _0x25ac0d=(_0x26bec0=_0x10feff['rowId'])==null?void 0x0:_0x26bec0[_0x54166c],_0x145e28=(_0x2d04cc=_0x10feff[_0x1eace7(0x46d)])==null?void 0x0:_0x2d04cc[_0x2ecac6],_0x54d2ba=_0x25ac0d?_0x10feff[_0x1eace7(0x1e1)][_0x25ac0d]:void 0x0;if(!_0x54d2ba||!_0x145e28)continue;if(_0x145e28===_0x1a2ecc){_0x54d2ba['values'][_0x1a2ecc]=_0x54d2ba['id'];continue;}let _0x6176d5=(_0x2a571f=_0x10feff[_0x1eace7(0x343)])==null||(_0x2a571f=_0x2a571f[_0x54166c])==null?void 0x0:_0x2a571f[_0x2ecac6];(_0x6176d5!=null||Object[_0x1eace7(0x35c)][_0x1eace7(0x445)][_0x1eace7(0x2a4)](_0x54d2ba[_0x1eace7(0x54e)]??{},_0x145e28))&&(_0x54d2ba[_0x1eace7(0x54e)]={..._0x54d2ba[_0x1eace7(0x54e)]??{}},_0x54d2ba[_0x1eace7(0x54e)][_0x145e28]=Ct(_0x6176d5,_0x10feff[_0x1eace7(0x453)][_0x145e28],_0x10feff,_0x25ac0d));}return _0x10feff;}function _t(_0x142a04,_0x49f9f7,_0x4667f6){const _0x5447e2=_0x282c57;var _0x4eec7e,_0x38f043,_0x28e4a4,_0x4e0802,_0x94e4dd,_0x5d3553;let _0x2e83d4=(_0x4eec7e=_0x142a04[_0x5447e2(0x277)])==null?void 0x0:_0x4eec7e[_0x49f9f7],_0x25570c=(_0x38f043=_0x142a04[_0x5447e2(0x28f)])==null?void 0x0:_0x38f043[_0x4667f6];if(_0x2e83d4!=null&&_0x25570c!=null&&((_0x28e4a4=_0x142a04[_0x5447e2(0x21b)])==null?void 0x0:_0x28e4a4[_0x2e83d4])===_0x49f9f7&&((_0x4e0802=_0x142a04['colId'])==null?void 0x0:_0x4e0802[_0x25570c])===_0x4667f6)return{'row':_0x2e83d4,'col':_0x25570c};let _0x3d8c29=L(_0x142a04),_0x45c7a8=(_0x94e4dd=_0x3d8c29[_0x5447e2(0x277)])==null?void 0x0:_0x94e4dd[_0x49f9f7],_0x2ebbbf=(_0x5d3553=_0x3d8c29[_0x5447e2(0x28f)])==null?void 0x0:_0x5d3553[_0x4667f6];return _0x45c7a8==null||_0x2ebbbf==null?null:{'row':_0x45c7a8,'col':_0x2ebbbf};}function vt(_0x117c67,_0x2b7937,_0x298db5){const _0x161265=_0x282c57;var _0x5e713c;let _0x15a2d2=_t(_0x117c67,_0x2b7937,_0x298db5);if(_0x15a2d2)return(_0x5e713c=_0x117c67['cellData'])==null||(_0x5e713c=_0x5e713c[_0x15a2d2[_0x161265(0x2f0)]])==null?void 0x0:_0x5e713c[_0x15a2d2[_0x161265(0x340)]];}function yt(_0xb80ff9,_0x3907d5,_0x51069e){const _0x42cca3=_0x282c57;var _0x386d2f;let _0x585fae=vt(_0xb80ff9,_0x3907d5,_0x51069e),_0x2fe732=_0xb80ff9[_0x42cca3(0x453)][_0x51069e];if((_0x2fe732==null?void 0x0:_0x2fe732[_0x42cca3(0x4aa)])===_0x239099['Attachment']){var _0x278f54;return Ot(_0xb80ff9,_0x3907d5,_0x51069e)??kt((_0x278f54=_0xb80ff9['records'][_0x3907d5])==null||(_0x278f54=_0x278f54[_0x42cca3(0x54e)])==null?void 0x0:_0x278f54[_0x51069e]);}if(Mt(_0x2fe732)||Nt(_0x2fe732)||(_0x2fe732==null?void 0x0:_0x2fe732[_0x42cca3(0x4aa)])===_0x239099[_0x42cca3(0x1d7)]){var _0x4b4a8d;let _0x3e3257=(_0x4b4a8d=_0xb80ff9[_0x42cca3(0x1e1)][_0x3907d5])==null||(_0x4b4a8d=_0x4b4a8d[_0x42cca3(0x54e)])==null?void 0x0:_0x4b4a8d[_0x51069e];return _0x3e3257!=null&&_0x3e3257!==''?At(_0x3e3257,_0x2fe732):Ct(_0x585fae,_0x2fe732,_0xb80ff9,_0x3907d5);}return _0x585fae&&Object[_0x42cca3(0x35c)][_0x42cca3(0x445)][_0x42cca3(0x2a4)](_0x585fae,'v')?_0x585fae['v']??null:((_0x386d2f=_0xb80ff9[_0x42cca3(0x1e1)][_0x3907d5])==null||(_0x386d2f=_0x386d2f['values'])==null?void 0x0:_0x386d2f[_0x51069e])??null;}function bt(_0x5d9891,_0x56d872,_0x9386ab){const _0x2934d0=_0x282c57;var _0x405bf1;let _0x532fe3=vt(_0x5d9891,_0x56d872,_0x9386ab);if(_0x532fe3&&Object[_0x2934d0(0x35c)][_0x2934d0(0x445)][_0x2934d0(0x2a4)](_0x532fe3,'v'))return _0x532fe3['v']??null;let _0x3efa05=_0x5d9891[_0x2934d0(0x453)][_0x9386ab];return xt(((_0x405bf1=_0x5d9891[_0x2934d0(0x1e1)][_0x56d872])==null||(_0x405bf1=_0x405bf1[_0x2934d0(0x54e)])==null?void 0x0:_0x405bf1[_0x9386ab])??null,_0x3efa05)['v']??null;}function xt(_0x529cea,_0x59a7f2){const _0x370191=_0x282c57;if(Tt(_0x529cea))return(_0x59a7f2==null?void 0x0:_0x59a7f2[_0x370191(0x4aa)])===_0x239099[_0x370191(0x392)]?{..._0x529cea,'v':'','t':_0x110ba4[_0x370191(0x23b)]}:St(_0x529cea);if((_0x59a7f2==null?void 0x0:_0x59a7f2[_0x370191(0x4aa)])===_0x239099[_0x370191(0x392)])return{'v':'','t':_0x110ba4[_0x370191(0x23b)]};if(Nt(_0x59a7f2)){let _0x4df7e9=Pt(_0x529cea);return{'v':_0x4df7e9,'t':Lt(_0x4df7e9)};}if(Mt(_0x59a7f2))return{'v':Ft(_0x529cea)[_0x370191(0x1c0)](',\x20'),'t':_0x110ba4[_0x370191(0x23b)]};if((_0x59a7f2==null?void 0x0:_0x59a7f2['type'])===_0x239099[_0x370191(0x1d7)]&&_0x529cea&&typeof _0x529cea==_0x370191(0x4ba)&&!Array[_0x370191(0x3d5)](_0x529cea)){let _0x80f9f4=_0x529cea;return{'v':String(_0x80f9f4[_0x370191(0x4b7)]??_0x80f9f4[_0x370191(0x45d)]??''),'t':_0x110ba4[_0x370191(0x23b)]};}return _0x529cea===null||typeof _0x529cea=='string'||typeof _0x529cea=='number'||typeof _0x529cea==_0x370191(0x386)?{'v':_0x529cea,'t':Lt(_0x529cea)}:{'v':null,'t':null};}function St(_0x156b56){let _0x1650c5=zt(_0x156b56['t'],_0x156b56['v']);if(_0x1650c5===void 0x0){let {t:_0x3e35a6,..._0x293609}=_0x156b56;return _0x293609;}return{..._0x156b56,'t':_0x1650c5};}function Ct(_0x4b9b49,_0x52b072,_0x35babf,_0x4d1eae){const _0x786ca7=_0x282c57;if(!_0x4b9b49)return null;if((_0x52b072==null?void 0x0:_0x52b072[_0x786ca7(0x4aa)])===_0x239099['Attachment'])return _0x35babf&&_0x4d1eae?Ot(_0x35babf,_0x4d1eae,_0x52b072['id'])??[]:[];if(Mt(_0x52b072))return Ft(_0x4b9b49['v']);if((_0x52b072==null?void 0x0:_0x52b072[_0x786ca7(0x4aa)])===_0x239099['Link']&&_0x35babf&&_0x4d1eae){var _0x410626;let _0xdad66c=(_0x410626=_0x35babf[_0x786ca7(0x1e1)][_0x4d1eae])==null||(_0x410626=_0x410626['values'])==null?void 0x0:_0x410626[_0x52b072['id']];if(_0xdad66c&&typeof _0xdad66c==_0x786ca7(0x4ba)&&!Array[_0x786ca7(0x3d5)](_0xdad66c))return _0xdad66c;}return Object[_0x786ca7(0x35c)]['hasOwnProperty'][_0x786ca7(0x2a4)](_0x4b9b49,'v')?_0x4b9b49['v']??null:null;}function wt(_0x1ff46e,_0x2841e4,_0x36a7df,_0x19cc39,_0x206138){const _0x31c2f2=_0x282c57;return(_0x36a7df==null?void 0x0:_0x36a7df['type'])===_0x239099[_0x31c2f2(0x392)]?kt(_0x1ff46e):Nt(_0x36a7df)?Pt(_0x1ff46e):Mt(_0x36a7df)?Ft(_0x1ff46e):(_0x36a7df==null?void 0x0:_0x36a7df[_0x31c2f2(0x4aa)])===_0x239099[_0x31c2f2(0x1d7)]&&(_0x1ff46e==null||_0x1ff46e==='')?null:(_0x36a7df==null?void 0x0:_0x36a7df[_0x31c2f2(0x4aa)])===_0x239099['Link']&&_0x1ff46e&&typeof _0x1ff46e==_0x31c2f2(0x4ba)&&!Array[_0x31c2f2(0x3d5)](_0x1ff46e)&&!Tt(_0x1ff46e)?_0x1ff46e:Ct(_0x2841e4,_0x36a7df,_0x19cc39,_0x206138);}function Tt(_0x3fd6c7){const _0x3fc7f4=_0x282c57;return!!_0x3fd6c7&&typeof _0x3fd6c7==_0x3fc7f4(0x4ba)&&(Object[_0x3fc7f4(0x35c)]['hasOwnProperty'][_0x3fc7f4(0x2a4)](_0x3fd6c7,'v')||Object['prototype']['hasOwnProperty'][_0x3fc7f4(0x2a4)](_0x3fd6c7,'t')||Object[_0x3fc7f4(0x35c)]['hasOwnProperty'][_0x3fc7f4(0x2a4)](_0x3fd6c7,'p')||Object[_0x3fc7f4(0x35c)][_0x3fc7f4(0x445)][_0x3fc7f4(0x2a4)](_0x3fd6c7,'f')||Object['prototype'][_0x3fc7f4(0x445)][_0x3fc7f4(0x2a4)](_0x3fd6c7,'si'));}function Et(_0x96d0d1,_0x550451){return _0x96d0d1+'\x1f'+_0x550451;}function Dt(_0x321c75,_0x42c560,_0xe26c8,_0x281840){const _0x1b9475=_0x282c57;let _0x36af9e=kt(_0x281840);_0x321c75['resources']={..._0x321c75[_0x1b9475(0x27b)]??{}},_0x321c75[_0x1b9475(0x27b)]['attachmentSets']={..._0x321c75[_0x1b9475(0x27b)]['attachmentSets']??{}},_0x321c75[_0x1b9475(0x27b)][_0x1b9475(0x3ba)]={..._0x321c75[_0x1b9475(0x27b)][_0x1b9475(0x3ba)]??{}};let _0x3fb6bf=Et(_0xe26c8,_0x42c560),_0x4a78f1=[];for(let _0x327920=0x0;_0x327920<_0x36af9e[_0x1b9475(0x4ab)];_0x327920++){if(!(_0x327920 in _0x36af9e))continue;let _0x43730d=_0x36af9e[_0x327920],_0x1ce11b=String(_0x43730d['id']??_0x3fb6bf+'\x1f'+_0x327920),_0x2ca520={..._0x43730d,'id':_0x1ce11b};_0x321c75[_0x1b9475(0x27b)][_0x1b9475(0x3ba)][_0x1ce11b]=_0x2ca520,_0x4a78f1['push'](_0x1ce11b);}_0x321c75['resources']['attachmentSets'][_0x3fb6bf]=_0x4a78f1;}function Ot(_0x3e8618,_0x203cd3,_0x2fde88){const _0x3cab78=_0x282c57;var _0x249e58;let _0x5941fc=Et(_0x2fde88,_0x203cd3),_0x131020=(_0x249e58=_0x3e8618['resources'])==null||(_0x249e58=_0x249e58[_0x3cab78(0x556)])==null?void 0x0:_0x249e58[_0x5941fc];if(!_0x131020)return null;let _0x39464d=[];for(let _0x15d45b=0x0;_0x15d45b<_0x131020['length'];_0x15d45b++){var _0x230a16;if(!(_0x15d45b in _0x131020))continue;let _0xec10af=(_0x230a16=_0x3e8618[_0x3cab78(0x27b)])==null||(_0x230a16=_0x230a16[_0x3cab78(0x3ba)])==null?void 0x0:_0x230a16[_0x131020[_0x15d45b]];_0xec10af&&_0x39464d['push']({..._0xec10af});}return _0x39464d;}function kt(_0x21d377){const _0x5ab664=_0x282c57;if(_0x21d377==null||_0x21d377===''||Tt(_0x21d377)&&!('id'in _0x21d377)&&!('name'in _0x21d377))return[];let _0x568933=Array[_0x5ab664(0x3d5)](_0x21d377)?_0x21d377:[_0x21d377],_0xeae38b=[];for(let _0x370307=0x0;_0x370307<_0x568933[_0x5ab664(0x4ab)];_0x370307++){if(!(_0x370307 in _0x568933))continue;let _0x507d0a=_0x568933[_0x370307],_0x574d83=_0x507d0a&&typeof _0x507d0a==_0x5ab664(0x4ba)?{..._0x507d0a}:{'id':_0x5ab664(0x526)+_0x370307,'name':String(_0x507d0a)};Object[_0x5ab664(0x334)](_0x574d83)['length']>0x0&&_0xeae38b[_0x5ab664(0x381)](_0x574d83);}return _0xeae38b;}function At(_0x2417bd,_0x4739b1){const _0x3ec9b1=_0x282c57;return(_0x4739b1==null?void 0x0:_0x4739b1[_0x3ec9b1(0x4aa)])===_0x239099['Attachment']?kt(_0x2417bd):Nt(_0x4739b1)?Pt(_0x2417bd):Mt(_0x4739b1)?Ft(_0x2417bd):_0x2417bd;}function jt(_0x540691,_0x5db3db,_0x67f56){const _0x21a1a=_0x282c57;return(_0x5db3db==null?void 0x0:_0x5db3db[_0x21a1a(0x4aa)])===_0x239099[_0x21a1a(0x392)]?_0x540691['v']!=='':Nt(_0x5db3db)?_0x540691['v']!==Pt(_0x67f56):Mt(_0x5db3db)?Array[_0x21a1a(0x3d5)](_0x67f56)&&(_0x540691['v']==null||_0x540691['v']===''):!0x1;}function Mt(_0x3bfe3d){const _0x1dfd78=_0x282c57;return(_0x3bfe3d==null?void 0x0:_0x3bfe3d[_0x1dfd78(0x4aa)])===_0x239099[_0x1dfd78(0x4b3)]||(_0x3bfe3d==null?void 0x0:_0x3bfe3d[_0x1dfd78(0x4aa)])===_0x239099['Group']||(_0x3bfe3d==null?void 0x0:_0x3bfe3d[_0x1dfd78(0x4aa)])===_0x239099[_0x1dfd78(0x2a5)]&&_0x3bfe3d['config'][_0x1dfd78(0x1c8)]===!0x0;}function Nt(_0x42f06d){const _0x32474f=_0x282c57;return(_0x42f06d==null?void 0x0:_0x42f06d[_0x32474f(0x4aa)])===_0x239099[_0x32474f(0x2a5)]&&_0x42f06d[_0x32474f(0x50c)][_0x32474f(0x1c8)]!==!0x0;}function Pt(_0x4c79fd){const _0x5a30a7=_0x282c57;let _0x421a93=Tt(_0x4c79fd)?_0x4c79fd['v']:_0x4c79fd,_0x197c31=Array[_0x5a30a7(0x3d5)](_0x421a93)?_0x421a93[0x0]:_0x421a93;return _0x197c31==null||_0x197c31===''?null:String(_0x197c31);}function Ft(_0x4ae863){const _0x4e6cb3=_0x282c57;if(_0x4ae863==null||_0x4ae863==='')return[];let _0x47251d=[];if(Array['isArray'](_0x4ae863)){for(let _0x4d2abb=0x0;_0x4d2abb<_0x4ae863[_0x4e6cb3(0x4ab)];_0x4d2abb++){if(!(_0x4d2abb in _0x4ae863))continue;let _0x245a30=It(_0x4ae863[_0x4d2abb]);_0x245a30&&_0x47251d[_0x4e6cb3(0x381)](_0x245a30);}return _0x47251d;}for(let _0x312ff6 of String(_0x4ae863)[_0x4e6cb3(0x460)](',')){let _0x222f1e=_0x312ff6[_0x4e6cb3(0x24d)]();_0x222f1e&&_0x47251d[_0x4e6cb3(0x381)](_0x222f1e);}return _0x47251d;}function It(_0x24f6a0){const _0x3818b8=_0x282c57;if(_0x24f6a0==null)return'';if(typeof _0x24f6a0==_0x3818b8(0x3e3)||typeof _0x24f6a0==_0x3818b8(0x389)||typeof _0x24f6a0==_0x3818b8(0x386))return String(_0x24f6a0);if(typeof _0x24f6a0==_0x3818b8(0x4ba)){let _0x3c0521=_0x24f6a0;return String(_0x3c0521['id']??_0x3c0521[_0x3818b8(0x2f4)]??_0x3c0521[_0x3818b8(0x4b7)]??'');}return String(_0x24f6a0);}function Lt(_0x3e97e6){const _0x4d7eca=_0x282c57;return _0x3e97e6==null?null:typeof _0x3e97e6=='number'?_0x110ba4[_0x4d7eca(0x1ff)]:typeof _0x3e97e6==_0x4d7eca(0x386)?_0x110ba4[_0x4d7eca(0x2fd)]:_0x110ba4['STRING'];}function Rt(_0x1c7a85){const _0x1aba07=_0x282c57;_0x1c7a85[_0x1aba07(0x1df)]((_0x258bab,_0x131fe0)=>_0x258bab['orderKey'][_0x1aba07(0x506)](_0x131fe0['orderKey']));let _0x4c40a6=[];for(let _0x1d205e of _0x1c7a85)_0x4c40a6[_0x1aba07(0x381)](_0x1d205e['id']);return _0x4c40a6;}function zt(_0xeb7941,_0x2e72f5){const _0x4b57cf=_0x282c57;return _0xeb7941===_0x110ba4[_0x4b57cf(0x23b)]||_0xeb7941===_0x110ba4['NUMBER']||_0xeb7941===_0x110ba4[_0x4b57cf(0x2fd)]||_0xeb7941===_0x110ba4[_0x4b57cf(0x28b)]||_0xeb7941==null?_0xeb7941:Lt(_0x2e72f5??null);}function R(_0x1d2584){const _0x3a5bb5=_0x282c57;let _0x599ccb=null;for(let _0x1feefe of _0x1d2584)_0x599ccb=_0x599ccb===null?_0x1feefe:_0x2f9032[_0x3a5bb5(0x4aa)][_0x3a5bb5(0x3ad)](_0x599ccb,_0x1feefe);return _0x599ccb;}var z=class e{static[_0x282c57(0x2aa)](_0x264326,_0x595424){const _0x5995de=_0x282c57;let _0x474718=[];for(let _0x4e7ca0 of _0x595424){let _0x133eb6=Bt(_0x4e7ca0);if(!_0x133eb6||_0x133eb6['unitId']!==_0x264326['id'])return null;_0x474718['push'](_0x133eb6['op']);}try{let _0x1e99d5=R(_0x474718);return _0x1e99d5===null?_0x264326:new e()[_0x5995de(0x2e7)](_0x264326,_0x1e99d5);}catch{return null;}}[_0x282c57(0x2e7)](_0x3240d2,_0x4da749){const _0x3bcd83=_0x282c57;let _0x1eefbd=this['getAffectedRanges'](_0x4da749),_0x5ce279=I(_0x3bcd83(0x423),()=>Xt(_0x3240d2,_0x4da749),{'invalidations':_0x1eefbd['length']}),_0x4f852c=I('BaseJson1.json1Apply',()=>_0x2f9032[_0x3bcd83(0x4aa)][_0x3bcd83(0x247)](_0x5ce279,_0x4da749),{'invalidations':_0x1eefbd[_0x3bcd83(0x4ab)]}),_0xffda51=Ht(_0x4f852c,_0x1eefbd);return I(_0x3bcd83(0x497),()=>Vt(_0x4f852c,_0x1eefbd),{'invalidations':_0x1eefbd[_0x3bcd83(0x4ab)]})?(Ut(_0x4f852c,_0xffda51),_0x4f852c):(I(_0x3bcd83(0x4cb),()=>{const _0x5a888d=_0x3bcd83;this[_0x5a888d(0x493)](_0x4f852c,_0x1eefbd)[_0x5a888d(0x34b)](_0x210e97=>{const _0x3b6a68=_0x5a888d;let _0x1dfceb=_0x1eefbd['filter'](_0xbadaa7=>_0xbadaa7[_0x3b6a68(0x45e)]===_0x210e97['id']),_0x33fa90=_0x1dfceb[_0x3b6a68(0x4ab)]>0x0&&_0x1dfceb['every'](_0x1a7631=>_0x1a7631[_0x3b6a68(0x2cd)]==='field'||_0x1a7631['reason']===_0x3b6a68(0x47a)||_0x1a7631['reason']===_0x3b6a68(0x1f9)||_0x1a7631[_0x3b6a68(0x2cd)]===_0x3b6a68(0x3a6))?new Set(_0x1dfceb[_0x3b6a68(0x26a)](_0x1d67ad=>{const _0x23e766=_0x3b6a68;var _0x574c96;if(_0x1d67ad['reason']!==_0x23e766(0x2d9)||!_0x1d67ad[_0x23e766(0x387)])return[];let _0x31b874=(_0x574c96=_0x3240d2[_0x23e766(0x528)][_0x210e97['id']])==null?void 0x0:_0x574c96[_0x23e766(0x453)][_0x1d67ad[_0x23e766(0x387)]],_0x1485d5=_0x210e97['fields'][_0x1d67ad[_0x23e766(0x387)]];return(_0x31b874==null?void 0x0:_0x31b874[_0x23e766(0x4aa)])!==(_0x1485d5==null?void 0x0:_0x1485d5['type'])||(_0x31b874==null?void 0x0:_0x31b874['config']['allowMultiple'])!==(_0x1485d5==null?void 0x0:_0x1485d5['config']['allowMultiple'])?[_0x1d67ad[_0x23e766(0x387)]]:[];})):void 0x0,_0x23ada4=new Set(_0x1dfceb[_0x3b6a68(0x26a)](_0x3bddaa=>{const _0x54e777=_0x3b6a68;var _0x56d0fd,_0x39eaf5;return _0x3bddaa[_0x54e777(0x2cd)]!=='cell'||_0x3bddaa['row']==null||_0x3bddaa[_0x54e777(0x331)]==null?[]:[JSON[_0x54e777(0x2fb)]([(_0x56d0fd=_0x210e97[_0x54e777(0x21b)])==null?void 0x0:_0x56d0fd[_0x3bddaa[_0x54e777(0x2f0)]],(_0x39eaf5=_0x210e97[_0x54e777(0x46d)])==null?void 0x0:_0x39eaf5[_0x3bddaa[_0x54e777(0x331)]]])];}));ht(_0x210e97,_0x33fa90?(_0x3474ba,_0x4422a9)=>_0x33fa90[_0x3b6a68(0x25c)](_0x4422a9)||_0x23ada4[_0x3b6a68(0x25c)](JSON[_0x3b6a68(0x2fb)]([_0x3474ba,_0x4422a9])):void 0x0);});},{'invalidations':_0x1eefbd['length']}),Ut(_0x4f852c,_0xffda51),_0x4f852c);}[_0x282c57(0x35e)](_0x337a77,_0x11449e){const _0x1846c9=_0x282c57;return _0x2f9032['type'][_0x1846c9(0x4a8)](_0x11449e,_0x337a77);}[_0x282c57(0x485)](_0x472085){const _0x34bb35=_0x282c57;let _0x260fef=qt(_0x472085);return _0x260fef[_0x34bb35(0x4ab)]?Jt(_0x260fef['flatMap'](_0x349840=>this['getAffectedRanges'](_0x349840))):Wt(_0x472085);}[_0x282c57(0x493)](_0x30fe0c,_0x31a4e8){const _0x410ba9=_0x282c57;let _0x5f1dc6=_0x31a4e8['filter'](_0x264574=>_0x264574[_0x410ba9(0x2cd)]!==_0x410ba9(0x47a));return _0x5f1dc6[_0x410ba9(0x4ab)]?_0x5f1dc6[_0x410ba9(0x436)](_0x5934db=>!_0x5934db['tableId'])?Object['values'](_0x30fe0c[_0x410ba9(0x528)]??{}):Array[_0x410ba9(0x2f3)](new Set(_0x5f1dc6[_0x410ba9(0x309)](_0x55ea97=>_0x55ea97[_0x410ba9(0x45e)])))[_0x410ba9(0x26a)](_0x387dcf=>{var _0xa040dd;let _0x1c3513=(_0xa040dd=_0x30fe0c['tables'])==null?void 0x0:_0xa040dd[_0x387dcf];return _0x1c3513?[_0x1c3513]:[];}):[];}};function Bt(_0x431774){const _0x10f7a8=_0x282c57;let _0x5ad20c=_0x431774[_0x10f7a8(0x530)];return _0x431774['id']!==_0x10f7a8(0x48f)||typeof _0x5ad20c!=_0x10f7a8(0x4ba)||!_0x5ad20c||!('unitId'in _0x5ad20c)||typeof _0x5ad20c['unitId']!=_0x10f7a8(0x3e3)||!('op'in _0x5ad20c)||!Array[_0x10f7a8(0x3d5)](_0x5ad20c['op'])?null:{'unitId':_0x5ad20c['unitId'],'op':_0x5ad20c['op']};}function Vt(_0x5e8555,_0x334245){const _0x2b8a96=_0x282c57;if(!_0x334245[_0x2b8a96(0x4ab)]||_0x334245[_0x2b8a96(0x436)](_0x4b0a9f=>_0x4b0a9f[_0x2b8a96(0x2cd)]!=='cell'))return!0x1;let _0x90c9c6=new Map();for(let _0x3c1dfc of _0x334245){if(!_0x3c1dfc[_0x2b8a96(0x45e)]||_0x3c1dfc[_0x2b8a96(0x2f0)]==null||_0x3c1dfc[_0x2b8a96(0x331)]==null)continue;let _0x1dd73c=_0x90c9c6[_0x2b8a96(0x268)](_0x3c1dfc[_0x2b8a96(0x45e)])??[];_0x1dd73c[_0x2b8a96(0x381)]({'row':_0x3c1dfc[_0x2b8a96(0x2f0)],'col':_0x3c1dfc[_0x2b8a96(0x331)]}),_0x90c9c6[_0x2b8a96(0x246)](_0x3c1dfc['tableId'],_0x1dd73c);}return _0x90c9c6[_0x2b8a96(0x34b)]((_0x8b2292,_0x33585b)=>{const _0x8d4f03=_0x2b8a96;var _0x2bf1a8;let _0x566d47=(_0x2bf1a8=_0x5e8555[_0x8d4f03(0x528)])==null?void 0x0:_0x2bf1a8[_0x33585b];_0x566d47&&gt(_0x566d47,_0x8b2292);}),!0x0;}function Ht(_0x1feffc,_0x5d1e1e){let _0x2c77b0=new Set();return _0x5d1e1e['flatMap'](_0x359a18=>{const _0x517021=_0x3047;var _0x42c2f1;if(!_0x359a18[_0x517021(0x45e)]||!_0x359a18[_0x517021(0x40d)]||!_0x359a18['fieldId'])return[];let _0x329167=_0x359a18['tableId']+'\x1f'+_0x359a18[_0x517021(0x40d)]+'\x1f'+_0x359a18['fieldId'];if(_0x2c77b0[_0x517021(0x25c)](_0x329167))return[];_0x2c77b0[_0x517021(0x551)](_0x329167);let _0x6cd44c=(_0x42c2f1=_0x1feffc[_0x517021(0x528)][_0x359a18[_0x517021(0x45e)]])==null||(_0x42c2f1=_0x42c2f1[_0x517021(0x1e1)][_0x359a18[_0x517021(0x40d)]])==null?void 0x0:_0x42c2f1[_0x517021(0x54e)];return _0x6cd44c?[{'tableId':_0x359a18[_0x517021(0x45e)],'recordId':_0x359a18[_0x517021(0x40d)],'fieldId':_0x359a18[_0x517021(0x387)],'exists':Object['prototype']['hasOwnProperty'][_0x517021(0x2a4)](_0x6cd44c,_0x359a18[_0x517021(0x387)]),'value':_0x6cd44c[_0x359a18[_0x517021(0x387)]]}]:[];});}function Ut(_0xc558a8,_0x4dc78f){const _0xd36c7d=_0x282c57;_0x4dc78f[_0xd36c7d(0x34b)](_0x1dce81=>{const _0x5c92a3=_0xd36c7d;var _0x30749f;let _0x37ba45=(_0x30749f=_0xc558a8[_0x5c92a3(0x528)][_0x1dce81[_0x5c92a3(0x45e)]])==null||(_0x30749f=_0x30749f['records'][_0x1dce81[_0x5c92a3(0x40d)]])==null?void 0x0:_0x30749f[_0x5c92a3(0x54e)];_0x37ba45&&(_0x1dce81[_0x5c92a3(0x524)]?_0x37ba45[_0x1dce81[_0x5c92a3(0x387)]]=_0x1dce81[_0x5c92a3(0x373)]:delete _0x37ba45[_0x1dce81[_0x5c92a3(0x387)]]);});}function Wt(_0x3b5def){const _0x16d1a6=_0x282c57;if(!Array[_0x16d1a6(0x3d5)](_0x3b5def)||_0x3b5def[_0x16d1a6(0x4ab)]<0x2)return[{'tableId':'','reason':_0x16d1a6(0x21d)}];let _0x6bd24=_0x3b5def,_0x543d72=_0x6bd24[_0x16d1a6(0x1f4)]('tables');return _0x543d72===-0x1||typeof _0x6bd24[_0x543d72+0x1]!=_0x16d1a6(0x3e3)?_0x6bd24[0x0]===_0x16d1a6(0x1ae)?[]:[{'tableId':'','reason':_0x16d1a6(0x21d)}]:Gt(_0x6bd24,_0x543d72,String(_0x6bd24[_0x543d72+0x1]));}function Gt(_0x4bca43,_0x1f4b0d,_0x2b71bb){const _0x5c0257=_0x282c57;let _0x5df180=_0x4bca43[_0x1f4b0d+0x2];return _0x5df180===_0x5c0257(0x1e1)&&typeof _0x4bca43[_0x1f4b0d+0x3]=='string'?Kt(_0x4bca43,_0x1f4b0d,_0x2b71bb,String(_0x4bca43[_0x1f4b0d+0x3])):_0x5df180===_0x5c0257(0x343)&&_0x4bca43[_0x1f4b0d+0x3]!=null&&_0x4bca43[_0x1f4b0d+0x4]!=null?[{'tableId':_0x2b71bb,'reason':_0x5c0257(0x1f9),'row':Number(_0x4bca43[_0x1f4b0d+0x3]),'column':Number(_0x4bca43[_0x1f4b0d+0x4])}]:_0x5df180===_0x5c0257(0x453)&&typeof _0x4bca43[_0x1f4b0d+0x3]==_0x5c0257(0x3e3)?[{'tableId':_0x2b71bb,'reason':_0x5c0257(0x2d9),'fieldId':String(_0x4bca43[_0x1f4b0d+0x3])}]:_0x5df180===_0x5c0257(0x534)?[{'tableId':_0x2b71bb,'reason':'field'}]:_0x5df180===_0x5c0257(0x413)?[{'tableId':_0x2b71bb,'reason':_0x5c0257(0x3a6)}]:_0x5df180===_0x5c0257(0x4f9)&&typeof _0x4bca43[_0x1f4b0d+0x3]==_0x5c0257(0x3e3)?[{'tableId':_0x2b71bb,'reason':'view','viewId':String(_0x4bca43[_0x1f4b0d+0x3])}]:_0x5df180===_0x5c0257(0x3a5)?[{'tableId':_0x2b71bb,'reason':'view'}]:_0x5df180===_0x5c0257(0x27b)?[{'tableId':_0x2b71bb,'reason':_0x5c0257(0x1f9)}]:[{'tableId':_0x2b71bb,'reason':_0x5df180===void 0x0?_0x5c0257(0x270):_0x5c0257(0x21d)}];}function Kt(_0x1cf311,_0x2c513e,_0x169c5e,_0x267b48){const _0x18910c=_0x282c57;return _0x1cf311[_0x2c513e+0x4]===_0x18910c(0x54e)&&typeof _0x1cf311[_0x2c513e+0x5]==_0x18910c(0x3e3)?[{'tableId':_0x169c5e,'reason':_0x18910c(0x1f9),'recordId':_0x267b48,'fieldId':String(_0x1cf311[_0x2c513e+0x5])}]:_0x1cf311[_0x2c513e+0x4]===_0x18910c(0x250)||_0x1cf311[_0x2c513e+0x4]==='updatedBy'?[]:[{'tableId':_0x169c5e,'reason':_0x18910c(0x3a6),'recordId':_0x267b48}];}function qt(_0x9216c5){const _0x412e7f=_0x282c57;if(!Array[_0x412e7f(0x3d5)](_0x9216c5))return[];let _0x248529=_0x9216c5['filter'](Array[_0x412e7f(0x3d5)]);if(_0x248529[_0x412e7f(0x4ab)]>0x1&&_0x248529['length']===_0x9216c5[_0x412e7f(0x4ab)])return _0x248529;let _0x5ad43c=_0x9216c5[_0x412e7f(0x34e)](Array[_0x412e7f(0x3d5)]);if(_0x5ad43c>0x0&&_0x9216c5[_0x412e7f(0x287)](_0x5ad43c)['every'](Array['isArray'])){let _0x38ee85=_0x9216c5[_0x412e7f(0x287)](0x0,_0x5ad43c);return _0x9216c5['slice'](_0x5ad43c)['map'](_0x35b6db=>[..._0x38ee85,..._0x35b6db]);}let _0x5f2de7=_0x9216c5[_0x412e7f(0x1f4)](_0x412e7f(0x528));if(_0x5f2de7===-0x1||typeof _0x9216c5[_0x5f2de7+0x1]!=_0x412e7f(0x3e3))return[];let _0x3c640d=String(_0x9216c5[_0x5f2de7+0x1]),_0x4d19c8=_0x9216c5[_0x412e7f(0x287)](_0x5f2de7+0x2)[_0x412e7f(0x4cc)](Array[_0x412e7f(0x3d5)]);return _0x4d19c8[_0x412e7f(0x4ab)]<=0x1?[]:_0x4d19c8[_0x412e7f(0x309)](_0x4d1671=>[_0x412e7f(0x528),_0x3c640d,..._0x4d1671]);}function Jt(_0x47edb1){let _0x59002d=new Set();return _0x47edb1['filter'](_0x43c3aa=>{const _0x6a3d5d=_0x3047;let _0x52f786=JSON['stringify'](_0x43c3aa);return!_0x59002d[_0x6a3d5d(0x25c)](_0x52f786)&&(_0x59002d[_0x6a3d5d(0x551)](_0x52f786),!0x0);});}function Yt(_0x29b949){return _0xd92214['deepClone'](_0x29b949);}function Xt(_0x3e486d,_0x26530d){const _0x4baf1b=_0x282c57;let _0x14d881=Zt(_0x26530d);if(!_0x14d881[_0x4baf1b(0x4ab)])return Yt(_0x3e486d);let _0x26d2c4=an(_0x3e486d),_0x3847e6=new Set();for(let _0x39ef71 of _0x14d881)en(_0x26d2c4,_0x39ef71,_0x3847e6);return _0x26d2c4;}function Zt(_0x829d7e){let _0xd0acff=[];return Qt(_0x829d7e,[],_0xd0acff),_0xd0acff;}function Qt(_0x108a4c,_0x251b50,_0x4fbcc2){const _0x5b8155=_0x282c57;if(!Array[_0x5b8155(0x3d5)](_0x108a4c))return;let _0x1b8fd6=[];for(let _0x4a96b9 of _0x108a4c){if(Array[_0x5b8155(0x3d5)](_0x4a96b9)){Qt(_0x4a96b9,[..._0x251b50,..._0x1b8fd6],_0x4fbcc2);continue;}if($t(_0x4a96b9)){_0x4fbcc2['push']([..._0x251b50,..._0x1b8fd6]);continue;}(typeof _0x4a96b9=='string'||typeof _0x4a96b9=='number')&&_0x1b8fd6[_0x5b8155(0x381)](_0x4a96b9);}}function $t(_0x455679){const _0x18a959=_0x282c57;if(!_0x455679||typeof _0x455679!=_0x18a959(0x4ba)||Array[_0x18a959(0x3d5)](_0x455679))return!0x1;let _0x5d3a5c=_0x455679;return'i'in _0x5d3a5c||'r'in _0x5d3a5c||'p'in _0x5d3a5c||'d'in _0x5d3a5c||'es'in _0x5d3a5c||_0x18a959(0x2bb)in _0x5d3a5c||'et'in _0x5d3a5c;}function en(_0x3b1feb,_0x4da071,_0x57f89a){const _0x7139a3=_0x282c57;let _0x252676=_0x3b1feb,_0x4226ed=[];for(let _0x3da5ae=0x0;_0x3da5ae<_0x4da071['length']-0x1;_0x3da5ae++){let _0x552528=_0x4da071[_0x3da5ae];_0x4226ed[_0x7139a3(0x381)](_0x552528);let _0x507a4b=tn(_0x252676,_0x552528);if(!rn(_0x507a4b))return;let _0x494b86=JSON[_0x7139a3(0x2fb)](_0x4226ed);_0x57f89a[_0x7139a3(0x25c)](_0x494b86)||(nn(_0x252676,_0x552528,an(_0x507a4b)),_0x57f89a[_0x7139a3(0x551)](_0x494b86));let _0x12db30=tn(_0x252676,_0x552528);if(!rn(_0x12db30))return;_0x252676=_0x12db30;}}function tn(_0x1b9a2a,_0x360d95){const _0x290359=_0x282c57;return Array[_0x290359(0x3d5)](_0x1b9a2a)?typeof _0x360d95==_0x290359(0x389)?_0x1b9a2a[_0x360d95]:void 0x0:Reflect[_0x290359(0x268)](_0x1b9a2a,_0x360d95);}function nn(_0x3eabe2,_0x307741,_0x258347){const _0x49ad4e=_0x282c57;if(Array['isArray'](_0x3eabe2)){typeof _0x307741==_0x49ad4e(0x389)&&(_0x3eabe2[_0x307741]=_0x258347);return;}Reflect[_0x49ad4e(0x246)](_0x3eabe2,_0x307741,_0x258347);}function rn(_0x44baa4){return!!_0x44baa4&&typeof _0x44baa4=='object';}function an(_0x4cf5d6){const _0x25c082=_0x282c57;return Array[_0x25c082(0x3d5)](_0x4cf5d6)?_0x4cf5d6[_0x25c082(0x287)]():{..._0x4cf5d6};}const on=_0x282c57(0x489),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x282c57(0x3b6),'yyyy-mm-dd':_0x282c57(0x21f),'mm-dd':_0x282c57(0x491),'mm/dd/yyyy':_0x282c57(0x1eb),'dd/mm/yyyy':_0x282c57(0x32b),'mmm\x20d,\x20yyyy':_0x282c57(0x3f1)};function B(_0x5744c3,_0x1d0a73=_0x20fc86[_0x282c57(0x23a)]){let _0x27f916=_0x20f447(_0x5744c3)['valueOf']();return _0x29c4f2(new Date(_0x27f916),_0x1d0a73);}function ln(_0x18b9a3,_0x5a48c7=_0x20fc86[_0x282c57(0x23a)]){return _0x247811(_0x18b9a3,_0x5a48c7)['getTime']();}function un(_0x3ebd47,_0x324d86=_0x20fc86['Date1900']){const _0x4431d4=_0x282c57;if(_0x3ebd47==null||_0x3ebd47==='')return null;if(_0x3ebd47 instanceof Date)return B(_0x3ebd47,_0x324d86);if(typeof _0x3ebd47==_0x4431d4(0x389))return Number['isFinite'](_0x3ebd47)?_0x3ebd47>0xf4240?B(_0x3ebd47,_0x324d86):_0x3ebd47:null;let _0x8066e=Date[_0x4431d4(0x2a3)](String(_0x3ebd47));return Number[_0x4431d4(0x50e)](_0x8066e)?null:B(_0x8066e,_0x324d86);}function dn(_0x112b69,_0x1394a7=_0x20fc86[_0x282c57(0x23a)]){let _0x48959f=un(_0x112b69,_0x1394a7);return _0x48959f==null?null:ln(_0x48959f,_0x1394a7);}function fn(_0xd4ddfa={}){const _0xdb3041=_0x282c57;let _0x550dde=String(_0xd4ddfa['pattern']??_0xd4ddfa['format']??_0xd4ddfa['dateFormat']??on)[_0xdb3041(0x24d)]()||on,_0x8c96fc=sn[_0xdb3041(0x1ef)](_0x550dde);return{'pattern':_0x550dde[_0xdb3041(0x1a6)](sn,'')||on,'includeTime':typeof _0xd4ddfa['includeTime']==_0xdb3041(0x386)?_0xd4ddfa[_0xdb3041(0x39b)]:_0x8c96fc,'hourCycle':_0xd4ddfa['hourCycle']===_0xdb3041(0x476)?_0xdb3041(0x476):_0xdb3041(0x536)};}function pn(_0x547bca={}){let {format:_0x280ded,dateFormat:_0x2da246,..._0x377a2c}=_0x547bca;return{..._0x377a2c,...fn(_0x547bca)};}function mn(_0xdd61dd,_0x4d83e3={}){const _0x1393fa=_0x282c57;let _0xe67a28=dn(_0xdd61dd);if(_0xe67a28==null||!Number[_0x1393fa(0x210)](_0xe67a28))return'';let _0x38e335=fn(_0x4d83e3);return _0x20f447(_0xe67a28)[_0x1393fa(0x22b)](hn(_0x38e335));}function hn(_0x49d23e){const _0x4fc8dd=_0x282c57;let {pattern:_0x13e9fe,includeTime:_0xdfe40b,hourCycle:_0x1a6bfb}=_0x49d23e,_0x2d4b64=cn[_0x13e9fe]??cn[on];return _0xdfe40b?_0x2d4b64+'\x20'+(_0x1a6bfb===_0x4fc8dd(0x476)?_0x4fc8dd(0x3f9):_0x4fc8dd(0x1a7)):_0x2d4b64;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x239099[_0x282c57(0x205)]]),V=0x5265c00;function vn(_0x287d30){const _0x1b63b5=_0x282c57;switch(_0x287d30){case _0x239099[_0x1b63b5(0x546)]:case _0x239099['Currency']:case _0x239099[_0x1b63b5(0x2ca)]:case _0x239099['Rating']:return[_0x5b882d['IS'],_0x5b882d[_0x1b63b5(0x4af)],_0x5b882d[_0x1b63b5(0x2df)],_0x5b882d['LESS_THAN'],_0x5b882d[_0x1b63b5(0x1de)],_0x5b882d[_0x1b63b5(0x3ff)]];case _0x239099['Date']:case _0x239099[_0x1b63b5(0x35d)]:case _0x239099[_0x1b63b5(0x1bc)]:return[_0x5b882d['IS'],_0x5b882d['IS_NOT'],_0x5b882d[_0x1b63b5(0x4c6)],_0x5b882d[_0x1b63b5(0x422)],_0x5b882d[_0x1b63b5(0x1de)],_0x5b882d[_0x1b63b5(0x3ff)]];case _0x239099[_0x1b63b5(0x379)]:return[_0x5b882d['IS'],_0x5b882d[_0x1b63b5(0x4af)]];default:return[_0x5b882d['IS'],_0x5b882d['IS_NOT'],_0x5b882d['CONTAINS'],_0x5b882d['NOT_CONTAINS'],_0x5b882d[_0x1b63b5(0x1de)],_0x5b882d[_0x1b63b5(0x3ff)]];}}function yn(_0x4ac099){const _0x4c580b=_0x282c57;return _0x4ac099===_0x239099['Date']||_0x4ac099===_0x239099[_0x4c580b(0x35d)]||_0x4ac099===_0x239099[_0x4c580b(0x1bc)];}function bn(_0x2ccf3c,_0x428bc7){const _0x33267e=_0x282c57;return _0x2ccf3c==null&&_0x428bc7==null?0x0:_0x2ccf3c==null?-0x1:_0x428bc7==null?0x1:typeof _0x2ccf3c=='number'&&typeof _0x428bc7==_0x33267e(0x389)?_0x2ccf3c-_0x428bc7:String(_0x2ccf3c)[_0x33267e(0x506)](String(_0x428bc7));}function xn(_0x38cc4d,_0x55cf91,_0x45c36d,_0x20f1e7,_0x244bca={}){const _0x44321d=_0x282c57;if(_0x55cf91===_0x44321d(0x433))return Sn(_0x38cc4d);if(_0x55cf91==='isNotEmpty')return!Sn(_0x38cc4d);switch(_0x20f1e7['type']){case _0x239099[_0x44321d(0x546)]:case _0x239099[_0x44321d(0x4b6)]:case _0x239099[_0x44321d(0x2ca)]:case _0x239099[_0x44321d(0x3b7)]:return Cn(_0x38cc4d,_0x55cf91,_0x45c36d);case _0x239099[_0x44321d(0x240)]:case _0x239099[_0x44321d(0x35d)]:case _0x239099['UpdatedAt']:return Tn(_0x38cc4d,_0x55cf91,_0x45c36d,_0x244bca);case _0x239099[_0x44321d(0x379)]:return jn(_0x38cc4d,_0x55cf91,_0x45c36d);case _0x239099[_0x44321d(0x2fe)]:case _0x239099['MultiSelect']:case _0x239099[_0x44321d(0x2a5)]:case _0x239099[_0x44321d(0x3af)]:return Nn(_0x38cc4d,_0x55cf91,_0x45c36d,_0x20f1e7);default:return Pn(_0x38cc4d,_0x55cf91,_0x45c36d);}}function Sn(_0x3334b5){const _0x3cde9c=_0x282c57;return _0x3334b5==null?!0x0:Array['isArray'](_0x3334b5)?_0x3334b5[_0x3cde9c(0x4ab)]===0x0:typeof _0x3334b5==_0x3cde9c(0x3e3)&&_0x3334b5[_0x3cde9c(0x24d)]()==='';}function Cn(_0x5f141f,_0x4548bb,_0x2ad9dd){const _0x45abac=_0x282c57;let _0x39bf5e=wn(_0x5f141f),_0x1cab5f=wn(_0x2ad9dd);if(_0x39bf5e==null||_0x1cab5f==null)return!0x1;switch(_0x4548bb){case'is':return _0x39bf5e===_0x1cab5f;case _0x45abac(0x1a1):return _0x39bf5e!==_0x1cab5f;case _0x45abac(0x2f2):return _0x39bf5e>_0x1cab5f;case _0x45abac(0x499):return _0x39bf5e>=_0x1cab5f;case _0x45abac(0x37b):return _0x39bf5e<_0x1cab5f;case _0x45abac(0x4ca):return _0x39bf5e<=_0x1cab5f;default:return!0x1;}}function wn(_0x55ed68){if(_0x55ed68==null||_0x55ed68==='')return null;let _0x5b4e79=Number(_0x55ed68);return Number['isFinite'](_0x5b4e79)?_0x5b4e79:null;}function Tn(_0x1afdd1,_0x2c07c1,_0x25ef76,_0x551350){const _0x3a7ef7=_0x282c57;let _0x90898=Dn(_0x1afdd1);if(_0x90898==null)return!0x1;let _0x387920=En(_0x551350[_0x3a7ef7(0x51a)]??_0x3a7ef7(0x3e8),_0x25ef76,_0x551350['now']);if(!_0x387920)return!0x1;switch(_0x2c07c1){case'is':return _0x90898>=_0x387920[_0x3a7ef7(0x230)]&&_0x90898<=_0x387920['end'];case _0x3a7ef7(0x1a1):return _0x90898<_0x387920['start']||_0x90898>_0x387920[_0x3a7ef7(0x248)];case _0x3a7ef7(0x22e):return _0x90898<_0x387920['start'];case _0x3a7ef7(0x1a5):return _0x90898>_0x387920[_0x3a7ef7(0x248)];default:return!0x1;}}function En(_0x554762,_0xd950bb,_0x135d92=Date[_0x282c57(0x42b)]()){const _0x500c8a=_0x282c57;let _0x1d8054=On(_0x135d92);switch(_0x554762){case _0x500c8a(0x3e8):{let _0xd91f82=Dn(_0xd950bb);return _0xd91f82==null?null:{'start':_0xd91f82,'end':_0xd91f82+V-0x1};}case _0x500c8a(0x3e1):return{'start':_0x1d8054,'end':_0x1d8054+V-0x1};case _0x500c8a(0x452):return{'start':_0x1d8054+V,'end':_0x1d8054+V*0x2-0x1};case'yesterday':return{'start':_0x1d8054-V,'end':_0x1d8054-0x1};case _0x500c8a(0x409):return kn(_0x1d8054,0x0);case _0x500c8a(0x3bb):return kn(_0x1d8054,-0x1);case _0x500c8a(0x547):return An(_0x1d8054,0x0);case'lastMonth':return An(_0x1d8054,-0x1);case _0x500c8a(0x2b9):return{'start':_0x1d8054-V*0x6,'end':_0x1d8054+V-0x1};case _0x500c8a(0x2d7):return{'start':_0x1d8054,'end':_0x1d8054+V*0x7-0x1};case _0x500c8a(0x3d1):return{'start':_0x1d8054-V*0x1d,'end':_0x1d8054+V-0x1};case _0x500c8a(0x44e):return{'start':_0x1d8054,'end':_0x1d8054+V*0x1e-0x1};}}function Dn(_0x5b0f61){let _0x153f7d=un(_0x5b0f61);return _0x153f7d==null?null:On(ln(_0x153f7d));}function On(_0x5372c3){const _0x3fa261=_0x282c57;let _0x5dabd7=new Date(_0x5372c3);return _0x5dabd7[_0x3fa261(0x4bb)](0x0,0x0,0x0,0x0),_0x5dabd7[_0x3fa261(0x3b8)]();}function kn(_0x2a3798,_0xd30455){const _0x192c92=_0x282c57;let _0x1a159e=_0x2a3798-(new Date(_0x2a3798)[_0x192c92(0x2ef)]()+0x6)%0x7*V+_0xd30455*V*0x7;return{'start':_0x1a159e,'end':_0x1a159e+V*0x7-0x1};}function An(_0xfe2fb7,_0x145313){const _0x37156e=_0x282c57;let _0x1a75f1=new Date(_0xfe2fb7),_0x1b3f06=new Date(_0x1a75f1[_0x37156e(0x2a6)](),_0x1a75f1[_0x37156e(0x308)]()+_0x145313,0x1),_0x13f42a=new Date(_0x1a75f1['getFullYear'](),_0x1a75f1[_0x37156e(0x308)]()+_0x145313+0x1,0x1);return{'start':_0x1b3f06[_0x37156e(0x3b8)](),'end':_0x13f42a[_0x37156e(0x3b8)]()-0x1};}function jn(_0x3af031,_0x46dbf3,_0x5026c7){const _0x1b1d90=_0x282c57;let _0x2f71f4=Mn(_0x3af031),_0x4637a4=Mn(_0x5026c7);switch(_0x46dbf3){case'is':return _0x2f71f4===_0x4637a4;case _0x1b1d90(0x1a1):return _0x2f71f4!==_0x4637a4;default:return!0x1;}}function Mn(_0x3ae795){const _0x5b5f0e=_0x282c57;return _0x3ae795===!0x0||_0x3ae795===_0x5b5f0e(0x2ee)||_0x3ae795===0x1||_0x3ae795==='1';}function Nn(_0x509df6,_0x20cac3,_0x700028,_0x1a8c33){const _0x45a8cc=_0x282c57;let _0x19602f=In(_0x509df6,_0x1a8c33),_0x121bf6=In(_0x700028,_0x1a8c33),_0x3e0ba8=_0x121bf6[_0x45a8cc(0x4ab)]>0x0&&_0x121bf6[_0x45a8cc(0x436)](_0x5ebcf2=>_0x19602f[_0x45a8cc(0x3df)](_0x5ebcf2));switch(_0x20cac3){case'is':case _0x45a8cc(0x2bc):return _0x3e0ba8;case _0x45a8cc(0x1a1):case'notContains':return!_0x3e0ba8;default:return!0x1;}}function Pn(_0x15171d,_0xaf564f,_0x231d82){const _0x306cea=_0x282c57;let _0x26be0c=Fn(_0x15171d),_0x1a0ac0=Fn(_0x231d82);switch(_0xaf564f){case'is':return _0x26be0c===_0x1a0ac0;case _0x306cea(0x1a1):return _0x26be0c!==_0x1a0ac0;case _0x306cea(0x2bc):return _0x1a0ac0?_0x26be0c[_0x306cea(0x3df)](_0x1a0ac0):!0x1;case'notContains':return!_0x1a0ac0||!_0x26be0c[_0x306cea(0x3df)](_0x1a0ac0);default:return!0x1;}}function Fn(_0x2a19f7){const _0x291e02=_0x282c57;if(Array[_0x291e02(0x3d5)](_0x2a19f7))return _0x2a19f7['map'](_0x26cf6c=>Fn(_0x26cf6c))[_0x291e02(0x1c0)]('\x0a');if(_0x2a19f7&&typeof _0x2a19f7==_0x291e02(0x4ba)){let _0x40e237=_0x2a19f7;return String(_0x40e237['name']??_0x40e237[_0x291e02(0x19c)]??_0x40e237['text']??_0x40e237['value']??_0x40e237['id']??'')[_0x291e02(0x24d)]()[_0x291e02(0x3ca)]();}return String(_0x2a19f7??'')[_0x291e02(0x24d)]()[_0x291e02(0x3ca)]();}function In(_0x4e24d8,_0x436255){const _0x3902e1=_0x282c57;let _0x181d96=Ln(_0x4e24d8),_0x2729eb=Rn(_0x436255[_0x3902e1(0x50c)]??{});return _0x181d96[_0x3902e1(0x26a)](_0x55f17c=>_0x2729eb[_0x3902e1(0x268)](_0x55f17c)??[_0x55f17c])['filter']((_0x487c74,_0x10c710,_0x14a9f4)=>_0x487c74!==''&&_0x14a9f4[_0x3902e1(0x1f4)](_0x487c74)===_0x10c710);}function Ln(_0x1115f1){const _0x4acaee=_0x282c57;if(_0x1115f1==null||_0x1115f1==='')return[];if(Array['isArray'](_0x1115f1))return _0x1115f1[_0x4acaee(0x26a)](_0x21903a=>Ln(_0x21903a));if(_0x1115f1&&typeof _0x1115f1=='object'){let _0x2da63b=_0x1115f1;return['id',_0x4acaee(0x2f4),_0x4acaee(0x19c),'value',_0x4acaee(0x4b7)][_0x4acaee(0x26a)](_0x59b777=>Ln(_0x2da63b[_0x59b777]))[_0x4acaee(0x4cc)]((_0x2d837f,_0x1ecfbd,_0x3a8185)=>_0x3a8185[_0x4acaee(0x1f4)](_0x2d837f)===_0x1ecfbd);}return[Fn(_0x1115f1)];}function Rn(_0x3dbe52){const _0x1ae6b2=_0x282c57;let _0x6fc782=new Map();return(Array[_0x1ae6b2(0x3d5)](_0x3dbe52['options'])?_0x3dbe52['options']:[])['forEach'](_0x21a7cb=>{const _0x198b0a=_0x1ae6b2;if(!_0x21a7cb||typeof _0x21a7cb!=_0x198b0a(0x4ba))return;let _0x17a7f8=Ln(_0x21a7cb),_0x76da4=_0x17a7f8[_0x198b0a(0x4cc)]((_0x4e830c,_0x3cab01)=>_0x4e830c!==''&&_0x17a7f8['indexOf'](_0x4e830c)===_0x3cab01);_0x76da4[_0x198b0a(0x34b)](_0x49c8cb=>_0x6fc782['set'](_0x49c8cb,_0x76da4));}),_0x6fc782;}function H(_0xb61899,_0x521f98={},_0x20da5e=_0x260b35=>_0x260b35,_0x3e3f3e={}){const _0x15b0ca=_0x282c57;let _0x45904e=!_n['has'](_0xb61899),_0x1141aa=_0x20da5e??(_0x114c3c=>_0x114c3c);return{'type':_0xb61899,'i18nKey':_0x15b0ca(0x542)+_0xb61899,'enabled':_0x45904e,'visibleInCreateMenu':_0x45904e,'createDefaultConfig':_0x3e3f3e['createDefaultConfig']??(()=>({})),'createDefaultValue':_0x3e3f3e[_0x15b0ca(0x313)]??(_0x309555=>_0x309555[_0x15b0ca(0x522)]??null),'normalize':(_0xe71ee2,_0x51f80a)=>_0x1141aa(_0xe71ee2,_0x51f80a),'validate':(_0x18d958,_0x55613f)=>{const _0x5d726e=_0x15b0ca;var _0x319c14;return _0x45904e?((_0x319c14=_0x3e3f3e['validate'])==null?void 0x0:_0x319c14[_0x5d726e(0x2a4)](_0x3e3f3e,_0x18d958,_0x55613f))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x22ebe9,_0x1d5fca)=>bn(_0x22ebe9,_0x1d5fca),'filter':(_0x1c4df9,_0x5078d6,_0x421121,_0x358a10)=>xn(_0x1c4df9,_0x5078d6,_0x421121,_0x358a10),'toPlainText':_0x3e3f3e[_0x15b0ca(0x49d)]??(_0x212af0=>_0x212af0==null?'':String(_0x212af0)),'fromPlainText':_0x3e3f3e[_0x15b0ca(0x1c5)]??(_0xc69de7=>_0x1141aa(_0xc69de7,{'id':'','name':'','type':_0xb61899,'config':{}})),'getCapabilities':()=>({...gn,..._0x521f98,'editable':_0x45904e&&(_0x521f98[_0x15b0ca(0x3f7)]??gn[_0x15b0ca(0x3f7)])})};}function zn(){const _0x310d3a=_0x282c57;return[H(_0x239099[_0x310d3a(0x34a)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x310d3a(0x3de)}),'createDefaultValue':_0x17ab31=>_0x17ab31[_0x310d3a(0x522)]??''}),H(_0x239099[_0x310d3a(0x2fe)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x5c7ac9=>_0x5c7ac9==null||_0x5c7ac9===''?null:String(_0x5c7ac9),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x310d3a(0x27e)}})}),H(_0x239099['MultiSelect'],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x107ff1=>Array['isArray'](_0x107ff1)?_0x107ff1[_0x310d3a(0x309)](String):_0x107ff1==null?[]:[String(_0x107ff1)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x310d3a(0x27e)}}),'createDefaultValue':_0xfbb45d=>_0xfbb45d[_0x310d3a(0x522)]??[]}),H(_0x239099[_0x310d3a(0x2a5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x310d3a(0x540)}),'validate':Gn}),H(_0x239099['Group'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x310d3a(0x359)}),'createDefaultValue':_0x2f5bb7=>_0x2f5bb7[_0x310d3a(0x522)]??[],'validate':Kn}),H(_0x239099['Date'],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x45749f=>un(_0x45749f),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x239099[_0x310d3a(0x392)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x3ce28f=>_0x3ce28f==null?[]:Array[_0x310d3a(0x3d5)](_0x3ce28f)?_0x3ce28f:[_0x3ce28f],{'createDefaultValue':_0x2def2d=>_0x2def2d[_0x310d3a(0x522)]??[]}),H(_0x239099[_0x310d3a(0x546)],{},_0x51e060=>_0x51e060==null||_0x51e060===''?null:Number(_0x51e060),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x239099[_0x310d3a(0x379)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x2aea33=>_0x2aea33===!0x0||_0x2aea33===_0x310d3a(0x2ee)||_0x2aea33===0x1||_0x2aea33==='1',{'createDefaultConfig':()=>({'icon':'check','color':_0x310d3a(0x490)}),'createDefaultValue':_0x1f7a64=>_0x1f7a64[_0x310d3a(0x522)]??!0x1,'validate':_0xda468f=>typeof _0xda468f==_0x310d3a(0x386)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x310d3a(0x26b)}}),H(_0x239099[_0x310d3a(0x1d7)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x310d3a(0x4d4)}),'toPlainText':_0x5a0c3f=>Zn(_0x5a0c3f),'fromPlainText':_0x7fb6bf=>Xn(_0x7fb6bf)}),H(_0x239099[_0x310d3a(0x41e)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x310d3a(0x257),'pattern':_0x310d3a(0x218)}}),'createDefaultValue':()=>null}),H(_0x239099[_0x310d3a(0x1f6)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x310d3a(0x1c3)}),'createDefaultValue':()=>null}),H(_0x239099[_0x310d3a(0x4c1)],{'usableAsTitle':!0x0},_0xccc385=>_0xccc385==null?null:String(_0xccc385)[_0x310d3a(0x24d)](),{'validate':_0x385576=>_0x385576==null||_0x385576===''||/^\+?[0-9 ()-]{6,20}$/[_0x310d3a(0x1ef)](String(_0x385576))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x239099['Email'],{'usableAsTitle':!0x0},_0x22e68e=>_0x22e68e==null?null:String(_0x22e68e)[_0x310d3a(0x24d)](),{'validate':_0x271367=>_0x271367==null||_0x271367===''||$n(String(_0x271367))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x310d3a(0x3e9)}}),H(_0x239099[_0x310d3a(0x2ca)],{'usableAsGanttProgress':!0x0},_0x505ba8=>_0x505ba8==null||_0x505ba8===''?null:Number(_0x505ba8),{'createDefaultConfig':()=>({'format':_0x310d3a(0x384),'decimalPlaces':0x0,'color':_0x310d3a(0x42c),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x36f39b,_0x167b99)=>Yn(_0x36f39b,_0x167b99,_0x310d3a(0x43b))}),H(_0x239099['Currency'],{},_0x548c16=>_0x548c16==null||_0x548c16===''?null:Number(_0x548c16),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x239099['Rating'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x834803=>_0x834803==null||_0x834803===''?null:Number(_0x834803),{'createDefaultConfig':()=>({'icon':_0x310d3a(0x26d),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x28ee49,_0x4de250)=>Yn(_0x28ee49,_0x4de250,_0x310d3a(0x45b))}),H(_0x239099[_0x310d3a(0x2c2)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x942bef,_0x21e20b)=>ze(_0x942bef,_0x21e20b[_0x310d3a(0x50c)][_0x310d3a(0x3ea)]===!0x0)}),H(_0x239099['RecordId'],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x239099[_0x310d3a(0x4be)],{'editable':!0x1,'groupable':!0x0},_0x2eabd4=>_0x2eabd4==null?null:String(_0x2eabd4),{'createDefaultConfig':()=>({'provider':_0x310d3a(0x1c1)}),'createDefaultValue':()=>null}),H(_0x239099[_0x310d3a(0x532)],{'editable':!0x1,'groupable':!0x0},_0x2a96d5=>_0x2a96d5==null?null:String(_0x2a96d5),{'createDefaultConfig':()=>({'provider':_0x310d3a(0x1c1)}),'createDefaultValue':()=>null}),H(_0x239099[_0x310d3a(0x35d)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x5cf8be=>un(_0x5cf8be),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x239099[_0x310d3a(0x1bc)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x57e61d=>un(_0x57e61d),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x1f87bd=_0x282c57;return{'pattern':'#,##0.00','decimalPlaces':0x2,'separatorStyle':_0x1f87bd(0x3d9),'useThousands':!0x0,'abbreviation':_0x1f87bd(0x3f5),'allowNegative':!0x0};}function Vn(){const _0x3247a2=_0x282c57;return{'locale':_0x3247a2(0x1a9),'pattern':'yyyy/mm/dd','includeTime':!0x1,'hourCycle':_0x3247a2(0x536),'defaultMode':'none'};}function Hn(_0x154505){const _0x32da03=_0x282c57;return _0x154505==null||_0x154505===''?[]:Array[_0x32da03(0x3d5)](_0x154505)?_0x154505['map'](String):[String(_0x154505)];}function Un(_0x307110){const _0x15d82a=_0x282c57;return typeof _0x307110==_0x15d82a(0x3e3)?_0x307110:'';}function Wn(_0x4151ed,_0x48b885){const _0xa8f073=_0x282c57;return _0x4151ed==null||_0x4151ed===''?_0x48b885['config'][_0xa8f073(0x1c8)]===!0x0?[]:null:_0x48b885[_0xa8f073(0x50c)][_0xa8f073(0x1c8)]===!0x0?Array[_0xa8f073(0x3d5)](_0x4151ed)?_0x4151ed['map'](String):[String(_0x4151ed)]:Array['isArray'](_0x4151ed)?String(_0x4151ed[0x0]??'')||null:String(_0x4151ed);}function Gn(_0x143cba,_0x3438ba){const _0x460f82=_0x282c57;return _0x3438ba[_0x460f82(0x50c)][_0x460f82(0x1c8)]===!0x0?Kn(_0x143cba):_0x143cba==null||_0x143cba===''||typeof _0x143cba=='string'?{'valid':!0x0}:{'valid':!0x1,'reason':_0x460f82(0x2e1)};}function Kn(_0x5538d4){const _0x4cf559=_0x282c57;return _0x5538d4==null||Array['isArray'](_0x5538d4)&&_0x5538d4['every'](_0x29037b=>typeof _0x29037b==_0x4cf559(0x3e3))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4cf559(0x338)};}function qn(_0x3413ad){const _0x2cd104=_0x282c57;return _0x3413ad==null||typeof _0x3413ad=='number'&&Number[_0x2cd104(0x210)](_0x3413ad)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x2cd104(0x2f7)};}function Jn(_0x2ca6c3,_0x4ac7c6){const _0x425e05=_0x282c57;return _0x2ca6c3==null||_0x2ca6c3===''?{'valid':!0x0}:typeof _0x2ca6c3!='number'||!Number['isFinite'](_0x2ca6c3)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x4ac7c6[_0x425e05(0x50c)]['allowNegative']===!0x1&&_0x2ca6c3<0x0?{'valid':!0x1,'reason':_0x425e05(0x18d)}:{'valid':!0x0};}function Yn(_0xf28e1d,_0x3bd6d7,_0x1897eb){const _0x2f2e3c=_0x282c57;let _0x561841=Jn(_0xf28e1d,_0x3bd6d7);if(!_0x561841['valid']||_0xf28e1d==null||_0xf28e1d==='')return _0x561841;let _0x76ebd7=Number(_0x3bd6d7[_0x2f2e3c(0x50c)][_0x2f2e3c(0x520)]??_0x3bd6d7['config'][_0x2f2e3c(0x230)]??0x0),_0x56ed3e=Number(_0x3bd6d7[_0x2f2e3c(0x50c)][_0x2f2e3c(0x468)]??_0x3bd6d7['config'][_0x2f2e3c(0x248)]??0x64),_0x243630=Number(_0xf28e1d);return _0x243630>=_0x76ebd7&&_0x243630<=_0x56ed3e?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1897eb};}function Xn(_0x310053){const _0x5dd255=_0x282c57;if(_0x310053==null||_0x310053==='')return null;if(typeof _0x310053==_0x5dd255(0x4ba)&&!Array[_0x5dd255(0x3d5)](_0x310053)){let _0x271719=_0x310053,_0x2f363c=typeof _0x271719[_0x5dd255(0x4b7)]==_0x5dd255(0x3e3)?_0x271719[_0x5dd255(0x4b7)][_0x5dd255(0x24d)]():'',_0x27853b=typeof _0x271719[_0x5dd255(0x45d)]==_0x5dd255(0x3e3)?_0x271719[_0x5dd255(0x45d)]['trim']():'',_0xde958b=Qn(_0x27853b||_0x2f363c);return _0xde958b?{'text':_0x2f363c||_0x27853b||_0xde958b,'url':_0xde958b}:null;}let _0x320365=String(_0x310053)[_0x5dd255(0x24d)](),_0x1fb38a=Qn(_0x320365);return _0x1fb38a?{'text':_0x320365,'url':_0x1fb38a}:null;}function Zn(_0x425cbf){const _0x2c600b=_0x282c57;if(_0x425cbf==null)return'';if(typeof _0x425cbf==_0x2c600b(0x4ba)&&!Array[_0x2c600b(0x3d5)](_0x425cbf)){let _0x12f1da=_0x425cbf;return String(_0x12f1da[_0x2c600b(0x4b7)]||_0x12f1da[_0x2c600b(0x45d)]||'');}return String(_0x425cbf);}function Qn(_0x451de2){const _0x23679a=_0x282c57;let _0x3929a9=_0x451de2[_0x23679a(0x24d)]();if(!_0x3929a9)return'';let _0x48d8ee=/^[a-z][a-z\d+.-]*:/i[_0x23679a(0x1ef)](_0x3929a9)?_0x3929a9:_0x3929a9['startsWith']('//')?_0x23679a(0x553)+_0x3929a9:_0x23679a(0x2dc)+_0x3929a9;try{let _0x378eb1=new URL(_0x48d8ee);return _0x378eb1[_0x23679a(0x2f9)]===_0x23679a(0x385)||_0x378eb1['protocol']===_0x23679a(0x553)?_0x378eb1[_0x23679a(0x3c1)]:'';}catch{return'';}}function $n(_0x527224){const _0x40b701=_0x282c57;let _0x3b83d5=_0x527224[_0x40b701(0x1f4)]('@');if(_0x3b83d5<=0x0||_0x3b83d5!==_0x527224[_0x40b701(0x441)]('@'))return!0x1;let _0x391848=_0x527224['slice'](_0x3b83d5+0x1);return _0x391848['includes']('.')&&!_0x527224[_0x40b701(0x3df)]('\x20')&&!_0x391848['startsWith']('.')&&!_0x391848['endsWith']('.');}const U={'table':_0x4d5f4e=>['tables',_0x4d5f4e],'field':(_0x43eb9c,_0x5c0103)=>[_0x282c57(0x528),_0x43eb9c,_0x282c57(0x453),_0x5c0103],'fieldOrder':(_0x2c796a,_0x339c35)=>[_0x282c57(0x528),_0x2c796a,_0x282c57(0x534),_0x339c35],'record':(_0x566507,_0x283c0f)=>[_0x282c57(0x528),_0x566507,_0x282c57(0x1e1),_0x283c0f],'cell':(_0x4a8e7c,_0x263a2b,_0x578b21)=>[_0x282c57(0x528),_0x4a8e7c,'records',_0x263a2b,_0x282c57(0x54e),_0x578b21],'cellData':(_0x307d81,_0x4fbc71,_0x200288)=>[_0x282c57(0x528),_0x307d81,_0x282c57(0x343),String(_0x4fbc71),String(_0x200288)],'attachmentSet':(_0xa04fbd,_0x2cb146)=>[_0x282c57(0x528),_0xa04fbd,_0x282c57(0x27b),_0x282c57(0x556),_0x2cb146],'attachment':(_0x1c5607,_0x2caf4f)=>[_0x282c57(0x528),_0x1c5607,'resources',_0x282c57(0x3ba),_0x2caf4f],'view':(_0x58faf8,_0x18f505)=>[_0x282c57(0x528),_0x58faf8,_0x282c57(0x4f9),_0x18f505],'viewFieldHidden':(_0x21820d,_0x37bab7,_0x25f0d7)=>[_0x282c57(0x528),_0x21820d,_0x282c57(0x4f9),_0x37bab7,'fieldSettings',_0x25f0d7,'hidden']};var W=class{[_0x282c57(0x20b)](_0x5533ea,_0x5c9804){const _0x31efc2=_0x282c57;let _0x437e54=this[_0x31efc2(0x3bd)](_0x5533ea,_0x5533ea[_0x31efc2(0x2f4)],_0x5c9804);return R([this[_0x31efc2(0x4b2)]([_0x31efc2(0x2f4)],_0x5533ea['name'],_0x5c9804),..._0x437e54?[_0x437e54]:[]]);}['renameFormulaUnitReferences'](_0x1713a2,_0x27c255,_0x5adab2){const _0x5a5563=_0x282c57;let _0x2a1e1a=Object[_0x5a5563(0x54e)](_0x1713a2['tables'])[_0x5a5563(0x26a)](_0x4eede8=>Object[_0x5a5563(0x54e)](_0x4eede8[_0x5a5563(0x453)])[_0x5a5563(0x26a)](_0x15ca50=>{const _0x3c21fc=_0x5a5563;var _0x3612e8,_0x4e3cdd;if(_0x15ca50['type']!==_0x239099[_0x3c21fc(0x41e)])return[];let _0x4559f4=String(((_0x3612e8=_0x15ca50[_0x3c21fc(0x50c)])==null?void 0x0:_0x3612e8['formula'])??''),_0x491efc=_0x54dc4c(_0x4559f4,_0x27c255,_0x5adab2);return _0x491efc===_0x4559f4?[]:[this[_0x3c21fc(0x4b2)]([...U[_0x3c21fc(0x2d9)](_0x4eede8['id'],_0x15ca50['id']),_0x3c21fc(0x50c),_0x3c21fc(0x557)],(_0x4e3cdd=_0x15ca50['config'])==null?void 0x0:_0x4e3cdd[_0x3c21fc(0x557)],_0x491efc)];}));return _0x2a1e1a[_0x5a5563(0x4ab)]>0x0?R(_0x2a1e1a):void 0x0;}['createTable'](_0x4b5518,_0x2d6e37,_0x1799cb=_0x4b5518['tableOrder'][_0x282c57(0x4ab)]){const _0x1a937b=_0x282c57;let _0x568592=_0x1d3afd(_0x2d6e37['name'],_0x41215d(_0x4b5518)[_0x1a937b(0x54e)](),_0x2d6e37[_0x1a937b(0x3ab)]),_0x53ae4e=_0x2d6e37['formulaName']===_0x568592?_0x2d6e37:{..._0x2d6e37,'formulaName':_0x568592};return R([...this[_0x1a937b(0x4bf)](_0x4b5518),_0x2f9032['insertOp'](U[_0x1a937b(0x270)](_0x2d6e37['id']),_0x53ae4e),_0x2f9032[_0x1a937b(0x1d0)]([_0x1a937b(0x1ae),_0x1799cb],_0x2d6e37['id'])]);}['renameTable'](_0x4e69d0,_0x4cdd05,_0x121ae4){const _0x298acf=_0x282c57;let _0x81494c=_0x4e69d0[_0x298acf(0x528)][_0x4cdd05];return R([...this[_0x298acf(0x4bf)](_0x4e69d0),_0x2f9032[_0x298acf(0x3b0)]([...U[_0x298acf(0x270)](_0x4cdd05),'name'],_0x81494c['name'],_0x121ae4)]);}[_0x282c57(0x447)](_0x11d285,_0x270f5e){const _0x379834=_0x282c57;let _0x389af8=_0x11d285['tables'][_0x270f5e],_0xf5a230=_0x11d285[_0x379834(0x1ae)][_0x379834(0x1f4)](_0x270f5e);return R([...this['_materializeFormulaTableNames'](_0x11d285,new Set([_0x270f5e])),_0x2f9032[_0x379834(0x40b)](U[_0x379834(0x270)](_0x270f5e),_0x389af8),_0x2f9032['removeOp'](['tableOrder',_0xf5a230],_0x270f5e)]);}['createRecord'](_0x213000,_0x1fefa2,_0x581885){const _0x27a4c2=_0x282c57;return this[_0x27a4c2(0x243)](_0x213000,_0x1fefa2,[_0x581885]);}['createRecords'](_0x5c6dcd,_0x1667d9,_0x206b23){const _0x45a287=_0x282c57;let _0x39edaa=_0x5c6dcd[_0x45a287(0x528)][_0x1667d9],_0x1257d2=_0x206b23['filter'](_0x424a48=>_0x424a48&&!_0x39edaa['records'][_0x424a48['id']])[_0x45a287(0x309)](_0x59182d=>({..._0x59182d,'values':{..._0x59182d[_0x45a287(0x54e)],[_0x1a2ecc]:_0x59182d['id']}}));if(!_0x1257d2[_0x45a287(0x4ab)])return _0x2f9032[_0x45a287(0x3b0)]([...U['table'](_0x1667d9),'records'],_0x39edaa[_0x45a287(0x1e1)],_0x39edaa[_0x45a287(0x1e1)]);let _0xb20cb2=new _0x2f9032['WriteCursor'](),_0x1e0210=[..._0x1257d2][_0x45a287(0x1df)]((_0x4aa936,_0x24657f)=>_0x4aa936['id']<_0x24657f['id']?-0x1:+(_0x4aa936['id']>_0x24657f['id'])),_0x4070f9=[...U[_0x45a287(0x270)](_0x1667d9),_0x45a287(0x1e1)];_0xb20cb2[_0x45a287(0x446)](_0x4070f9);for(let _0x386363 of _0x1e0210)_0xb20cb2[_0x45a287(0x388)](_0x386363['id']),_0xb20cb2[_0x45a287(0x322)]('i',_0x386363),_0xb20cb2['ascend']();for(let _0x1bffaa=0x0;_0x1bffaa<_0x4070f9['length'];_0x1bffaa+=0x1)_0xb20cb2[_0x45a287(0x1ea)]();return R([_0xb20cb2[_0x45a287(0x268)](),this[_0x45a287(0x4ee)](_0x5c6dcd,_0x1667d9,_0x1257d2)]);}[_0x282c57(0x4fa)](_0x1fceef,_0x184ce2,_0x298167){const _0x49941b=_0x282c57;return this[_0x49941b(0x227)](_0x1fceef,_0x184ce2,[_0x298167]);}[_0x282c57(0x227)](_0x594a4f,_0x93a733,_0x139e8d){const _0x11ede1=_0x282c57;let _0x471f4e=_0x594a4f[_0x11ede1(0x528)][_0x93a733],_0x311b76=Array[_0x11ede1(0x2f3)](new Set(_0x139e8d))[_0x11ede1(0x4cc)](_0x2e6dc3=>_0x471f4e[_0x11ede1(0x1e1)][_0x2e6dc3]);if(!_0x311b76['length'])return _0x2f9032['replaceOp']([...U[_0x11ede1(0x270)](_0x93a733),_0x11ede1(0x1e1)],_0x471f4e[_0x11ede1(0x1e1)],_0x471f4e[_0x11ede1(0x1e1)]);let _0x3d9b6f=new Set(_0x311b76),_0x5a1f59=et(_0x471f4e,_0x311b76)[_0x11ede1(0x309)](_0x125597=>this[_0x11ede1(0x1e3)](_0x594a4f,_0x93a733,_0x125597['recordId'],_0x125597[_0x11ede1(0x387)],''));return R([this[_0x11ede1(0x3ee)](_0x594a4f,_0x93a733,_0x311b76,_0x3d9b6f),..._0x5a1f59]);}[_0x282c57(0x411)](_0xb60da0,_0x4db59f,_0x4e1d8d,_0x528591){const _0x3aa0d6=_0x282c57;let _0x4acd5c=_0xb60da0[_0x3aa0d6(0x528)][_0x4e1d8d],_0x9584a6=Array['from'](new Set(_0x528591))[_0x3aa0d6(0x4cc)](_0x47ee3f=>_0x4acd5c[_0x3aa0d6(0x1e1)][_0x47ee3f]),_0x4f6527=new Set(_0x9584a6);return R([new z()[_0x3aa0d6(0x35e)](_0xb60da0,this[_0x3aa0d6(0x3ee)](_0xb60da0,_0x4e1d8d,_0x9584a6,_0x4f6527)),...et(_0x4acd5c,_0x9584a6)[_0x3aa0d6(0x309)](_0xf164b4=>this[_0x3aa0d6(0x1e3)](_0x4db59f,_0x4e1d8d,_0xf164b4['recordId'],_0xf164b4[_0x3aa0d6(0x387)],_0xf164b4[_0x3aa0d6(0x1fb)]??''))]);}['_deleteRecordsBaseOp'](_0x171f96,_0x4e3992,_0x3514e0,_0x23cd30){const _0x322876=_0x282c57;let _0x1e52eb=_0x171f96[_0x322876(0x528)][_0x4e3992],_0x5ee5b0=_0x3514e0[_0x322876(0x309)](_0x416956=>{var _0x2be74d;return{'recordId':_0x416956,'index':((_0x2be74d=_0x1e52eb['recordOrder'])==null?void 0x0:_0x2be74d['indexOf'](_0x416956))??-0x1};})['filter'](_0x5ef4d5=>_0x5ef4d5[_0x322876(0x198)]>=0x0)['sort']((_0x2453c0,_0x319b32)=>_0x319b32[_0x322876(0x198)]-_0x2453c0[_0x322876(0x198)]);return R([..._0x3514e0[_0x322876(0x309)](_0x10a168=>_0x2f9032[_0x322876(0x40b)](U[_0x322876(0x3a6)](_0x4e3992,_0x10a168),_0x1e52eb[_0x322876(0x1e1)][_0x10a168])),..._0x5ee5b0[_0x322876(0x309)](({recordId:_0x4c89d1,index:_0x2b6f96})=>_0x2f9032[_0x322876(0x40b)](['tables',_0x4e3992,'recordOrder',_0x2b6f96],_0x4c89d1)),...this['_deleteAttachmentResources'](_0x1e52eb,_0x4e3992,_0x3222e7=>{const _0x57fdbf=_0x322876;let _0x3c5c14=_0x3222e7[_0x57fdbf(0x287)](_0x3222e7[_0x57fdbf(0x441)]('\x1f')+0x1);return _0x23cd30[_0x57fdbf(0x25c)](_0x3c5c14);})]);}['duplicateRecord'](_0x46596f,_0x3273db,_0x5b0592,_0x12442e){const _0x40e2a0=_0x282c57;return this[_0x40e2a0(0x32d)](_0x46596f,_0x3273db,{..._0x12442e,'values':{..._0x46596f['tables'][_0x3273db]['records'][_0x5b0592][_0x40e2a0(0x54e)],..._0x12442e[_0x40e2a0(0x54e)],[_0x1a2ecc]:_0x12442e['id']}});}['updateRecordOrder'](_0x38ea01,_0x51ab58,_0x3f4ad8,_0x29432a){const _0x4fbe8f=_0x282c57;let _0x415ad3=_0x38ea01[_0x4fbe8f(0x528)][_0x51ab58],_0x122958=[...U[_0x4fbe8f(0x3a6)](_0x51ab58,_0x3f4ad8),_0x4fbe8f(0x38a)],_0x47fd32=Object[_0x4fbe8f(0x54e)](_0x415ad3[_0x4fbe8f(0x1e1)])[_0x4fbe8f(0x309)](_0x4ac2a5=>_0x4ac2a5['id']===_0x3f4ad8?{..._0x4ac2a5,'orderKey':_0x29432a}:_0x4ac2a5)[_0x4fbe8f(0x1df)]((_0x50d906,_0x145ecb)=>String(_0x50d906['orderKey']??_0x50d906['id'])['localeCompare'](String(_0x145ecb[_0x4fbe8f(0x38a)]??_0x145ecb['id'])))[_0x4fbe8f(0x309)](_0x572ed0=>_0x572ed0['id']),_0x564279=[...U[_0x4fbe8f(0x270)](_0x51ab58),'recordOrder'];return R([this['_replaceOptional'](_0x122958,_0x415ad3[_0x4fbe8f(0x1e1)][_0x3f4ad8][_0x4fbe8f(0x38a)],_0x29432a),_0x415ad3[_0x4fbe8f(0x413)]?_0x2f9032['replaceOp'](_0x564279,_0x415ad3[_0x4fbe8f(0x413)],_0x47fd32):_0x2f9032['insertOp'](_0x564279,_0x47fd32)]);}[_0x282c57(0x1e3)](_0x19e779,_0x5af82b,_0x43ba13,_0x165519,_0x468f89){const _0x47e0b6=_0x282c57;var _0x2340b5,_0x47bcde;let _0x47c111=_0x19e779[_0x47e0b6(0x528)][_0x5af82b],_0x2d746b=ar(_0x47c111,_0x43ba13,_0x165519)?_0x47c111:L(_0x47c111),_0x1874db=(_0x2340b5=_0x2d746b[_0x47e0b6(0x277)])==null?void 0x0:_0x2340b5[_0x43ba13],_0x5c85c4=(_0x47bcde=_0x2d746b[_0x47e0b6(0x28f)])==null?void 0x0:_0x47bcde[_0x165519];if(_0x1874db==null||_0x5c85c4==null){var _0x39f114;return this[_0x47e0b6(0x4b2)](U[_0x47e0b6(0x1f9)](_0x5af82b,_0x43ba13,_0x165519),(_0x39f114=_0x19e779['tables'][_0x5af82b])==null||(_0x39f114=_0x39f114[_0x47e0b6(0x1e1)][_0x43ba13])==null?void 0x0:_0x39f114[_0x47e0b6(0x54e)][_0x165519],_0x468f89);}return this[_0x47e0b6(0x30b)](_0x19e779,_0x5af82b,[{'row':_0x1874db,'col':_0x5c85c4,'value':_0x468f89}]);}[_0x282c57(0x347)](_0x6219d7,_0xc4d24f,_0x278bbd){const _0x4ba2c0=_0x282c57;let _0x2f4bc2=_0x6219d7['tables'][_0xc4d24f],_0x4b2c99=_0x278bbd['every'](_0x600f16=>Object[_0x4ba2c0(0x334)](_0x600f16[_0x4ba2c0(0x54e)])[_0x4ba2c0(0x300)](_0x273bf8=>ar(_0x2f4bc2,_0x600f16['recordId'],_0x273bf8)))?_0x2f4bc2:L(_0x2f4bc2),_0x17719a=_0x278bbd[_0x4ba2c0(0x26a)](_0x710106=>Object[_0x4ba2c0(0x41d)](_0x710106[_0x4ba2c0(0x54e)])[_0x4ba2c0(0x26a)](([_0x104b5e,_0x2e20cb])=>{const _0x1236f7=_0x4ba2c0;var _0x2cd50a,_0x37d749;let _0x5b2061=(_0x2cd50a=_0x4b2c99[_0x1236f7(0x277)])==null?void 0x0:_0x2cd50a[_0x710106[_0x1236f7(0x40d)]],_0x24ac3f=(_0x37d749=_0x4b2c99[_0x1236f7(0x28f)])==null?void 0x0:_0x37d749[_0x104b5e];return _0x5b2061==null||_0x24ac3f==null?[]:[{'row':_0x5b2061,'col':_0x24ac3f,'value':_0x2e20cb}];})),_0x24cb83=_0x278bbd[_0x4ba2c0(0x26a)](_0x98f5a5=>Object[_0x4ba2c0(0x41d)](_0x98f5a5[_0x4ba2c0(0x4df)]??{})[_0x4ba2c0(0x309)](([_0x385712,_0x36094f])=>{const _0x1f6914=_0x4ba2c0;var _0x5ee38d;let _0x286cae=[...U[_0x1f6914(0x3a6)](_0xc4d24f,_0x98f5a5['recordId']),_0x385712],_0x94e235=(_0x5ee38d=_0x6219d7[_0x1f6914(0x528)][_0xc4d24f])==null||(_0x5ee38d=_0x5ee38d['records'][_0x98f5a5['recordId']])==null?void 0x0:_0x5ee38d[_0x385712];return this[_0x1f6914(0x4b2)](_0x286cae,_0x94e235,_0x36094f);}));return R([this[_0x4ba2c0(0x30b)](_0x6219d7,_0xc4d24f,_0x17719a),..._0x24cb83]);}[_0x282c57(0x30b)](_0x61c963,_0x63ce31,_0x336538){const _0x18d54e=_0x282c57;let _0x49f4df=_0x61c963['tables'][_0x63ce31],_0xa6fa7b=_0x336538[_0x18d54e(0x300)](_0x3879ac=>or(_0x49f4df,_0x3879ac['row'],_0x3879ac['col']))?_0x49f4df:L(_0x49f4df),_0x2d992c=new Map(),_0x12344c=_0x336538[_0x18d54e(0x26a)](_0x3c48c1=>{const _0x123974=_0x18d54e;var _0x38baa3,_0x41f230,_0x99aa7b,_0x4606b2;let _0x2d12cf=(_0x38baa3=_0xa6fa7b[_0x123974(0x46d)])==null?void 0x0:_0x38baa3[_0x3c48c1['col']],_0x2fc311=(_0x41f230=_0xa6fa7b[_0x123974(0x21b)])==null?void 0x0:_0x41f230[_0x3c48c1[_0x123974(0x2f0)]],_0x5263ca=_0x2d12cf?_0xa6fa7b[_0x123974(0x453)][_0x2d12cf]:void 0x0;if(_0x2d12cf===_0x1a2ecc||(_0x5263ca==null?void 0x0:_0x5263ca['type'])===_0x239099[_0x123974(0x205)])throw Error('[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.');let _0x141063=xt(_0x3c48c1[_0x123974(0x373)],_0x5263ca),_0x260459=(_0x99aa7b=_0xa6fa7b[_0x123974(0x343)])==null||(_0x99aa7b=_0x99aa7b[_0x3c48c1['row']])==null?void 0x0:_0x99aa7b[_0x3c48c1['col']],_0x35b55b=this[_0x123974(0x4b2)](U[_0x123974(0x343)](_0x63ce31,_0x3c48c1[_0x123974(0x2f0)],_0x3c48c1['col']),_0x260459,_0x141063);if(!_0x2d12cf||!_0x2fc311)return[_0x35b55b];let _0x4c179c=(_0x4606b2=_0xa6fa7b[_0x123974(0x1e1)][_0x2fc311])==null?void 0x0:_0x4606b2[_0x123974(0x54e)][_0x2d12cf],_0x33338e=(_0x5263ca==null?void 0x0:_0x5263ca['type'])===_0x239099[_0x123974(0x392)]?kt(_0x3c48c1[_0x123974(0x373)]):wt(_0x3c48c1['value'],_0x141063,_0x5263ca,_0xa6fa7b,_0x2fc311),_0x1f518e=[_0x35b55b,this[_0x123974(0x4b2)](U[_0x123974(0x1f9)](_0x63ce31,_0x2fc311,_0x2d12cf),_0x4c179c,_0x33338e)];return(_0x5263ca==null?void 0x0:_0x5263ca[_0x123974(0x4aa)])===_0x239099[_0x123974(0x392)]&&_0x2d992c['set'](Et(_0x2d12cf,_0x2fc311),{'recordId':_0x2fc311,'fieldId':_0x2d12cf,'attachments':_0x33338e}),_0x1f518e;});return _0x12344c['length']?R([..._0x12344c,...this[_0x18d54e(0x512)](_0xa6fa7b,_0x63ce31,Array[_0x18d54e(0x2f3)](_0x2d992c[_0x18d54e(0x54e)]()))]):_0x2f9032[_0x18d54e(0x3b0)]([_0x18d54e(0x528),_0x63ce31,_0x18d54e(0x343)],_0xa6fa7b[_0x18d54e(0x343)],_0xa6fa7b[_0x18d54e(0x343)]);}['createField'](_0x5bfd06,_0x21fec2,_0x5e242a){const _0x3ac533=_0x282c57;let _0x1959ba=_0x5bfd06[_0x3ac533(0x528)][_0x21fec2];if(_0x1959ba[_0x3ac533(0x453)][_0x5e242a['field']['id']]||_0x1959ba[_0x3ac533(0x534)][_0x3ac533(0x3df)](_0x5e242a[_0x3ac533(0x2d9)]['id']))return _0x2f9032[_0x3ac533(0x3b0)]([_0x3ac533(0x528),_0x21fec2,_0x3ac533(0x534)],_0x1959ba[_0x3ac533(0x534)],_0x1959ba[_0x3ac533(0x534)]);let _0x2ac84d=Math['max'](0x1,_0x5e242a['index']??_0x1959ba['fieldOrder'][_0x3ac533(0x4ab)]),_0x62e075=Object[_0x3ac533(0x54e)](_0x1959ba['views']??{})[_0x3ac533(0x26a)](_0x373884=>{const _0x158aa6=_0x3ac533;var _0x15840b;if(!_0x373884[_0x158aa6(0x534)]||_0x373884[_0x158aa6(0x534)][_0x158aa6(0x3df)](_0x5e242a['field']['id']))return[];let _0x57a5e7=ur(((_0x15840b=_0x5e242a[_0x158aa6(0x519)])==null?void 0x0:_0x15840b[_0x373884['id']])??_0x2ac84d,_0x373884[_0x158aa6(0x534)][_0x158aa6(0x4ab)]);return[_0x2f9032['insertOp']([...U[_0x158aa6(0x47a)](_0x21fec2,_0x373884['id']),_0x158aa6(0x534),_0x57a5e7],_0x5e242a['field']['id'])];});return R([..._0x5e242a[_0x3ac533(0x2d9)][_0x3ac533(0x4aa)]===_0x239099[_0x3ac533(0x41e)]?this[_0x3ac533(0x4bf)](_0x5bfd06):[],_0x2f9032['insertOp'](U[_0x3ac533(0x2d9)](_0x21fec2,_0x5e242a[_0x3ac533(0x2d9)]['id']),_0x5e242a[_0x3ac533(0x2d9)]),_0x2f9032[_0x3ac533(0x1d0)](U['fieldOrder'](_0x21fec2,_0x2ac84d),_0x5e242a[_0x3ac533(0x2d9)]['id']),..._0x62e075]);}[_0x282c57(0x237)](_0x503495,_0x3c41e7,_0x97f646,_0x169919){const _0x4b7292=_0x282c57;let _0xf229f2=_0x503495[_0x4b7292(0x528)][_0x3c41e7];if(!_0xf229f2[_0x4b7292(0x453)][_0x97f646]||_0xf229f2[_0x4b7292(0x453)][_0x169919[_0x4b7292(0x2d9)]['id']]||_0xf229f2['fieldOrder'][_0x4b7292(0x3df)](_0x169919[_0x4b7292(0x2d9)]['id']))return _0x2f9032['replaceOp']([_0x4b7292(0x528),_0x3c41e7,_0x4b7292(0x534)],_0xf229f2[_0x4b7292(0x534)],_0xf229f2[_0x4b7292(0x534)]);let _0x10823a=_0x169919['index']??_0xf229f2[_0x4b7292(0x534)][_0x4b7292(0x1f4)](_0x97f646)+0x1,_0x36fc08=_0xf229f2[_0x4b7292(0x534)][_0x4b7292(0x4cc)](_0x53fcfa=>_0x53fcfa!==_0x169919[_0x4b7292(0x2d9)]['id']),_0x1f62a1=cr(_0x36fc08,_0x169919[_0x4b7292(0x2d9)]['id'],_0x10823a),_0x1c27c4=Object['values'](_0xf229f2[_0x4b7292(0x4f9)]??{})[_0x4b7292(0x26a)](_0x43028a=>{const _0xc9cb4a=_0x4b7292;var _0xafaf26,_0x16a0df,_0x4b19d5,_0x4776ae;let _0x2bb11b=(_0xafaf26=_0x43028a[_0xc9cb4a(0x534)])!=null&&_0xafaf26[_0xc9cb4a(0x4ab)]?_0x43028a[_0xc9cb4a(0x534)]:_0x36fc08;if(_0x2bb11b[_0xc9cb4a(0x3df)](_0x169919['field']['id']))return[];let _0x1450f7=cr(_0x2bb11b,_0x169919[_0xc9cb4a(0x2d9)]['id'],((_0x16a0df=_0x169919[_0xc9cb4a(0x519)])==null?void 0x0:_0x16a0df[_0x43028a['id']])??_0x10823a),_0x43e8ad=(_0x4b19d5=_0x43028a[_0xc9cb4a(0x272)])==null?void 0x0:_0x4b19d5[_0x97f646];return[this[_0xc9cb4a(0x4b2)]([...U[_0xc9cb4a(0x47a)](_0x3c41e7,_0x43028a['id']),'fieldOrder'],_0x43028a[_0xc9cb4a(0x534)],_0x1450f7),..._0x43e8ad?[this[_0xc9cb4a(0x4b2)]([...U[_0xc9cb4a(0x47a)](_0x3c41e7,_0x43028a['id']),'fieldSettings',_0x169919[_0xc9cb4a(0x2d9)]['id']],(_0x4776ae=_0x43028a[_0xc9cb4a(0x272)])==null?void 0x0:_0x4776ae[_0x169919['field']['id']],_0x43e8ad)]:[]];}),_0x5055e9=Object[_0x4b7292(0x54e)](_0xf229f2[_0x4b7292(0x1e1)])[_0x4b7292(0x4cc)](_0x42a14b=>Object[_0x4b7292(0x35c)]['hasOwnProperty'][_0x4b7292(0x2a4)](_0x42a14b['values'],_0x97f646))[_0x4b7292(0x309)](_0x2d0670=>this[_0x4b7292(0x4b2)](U[_0x4b7292(0x1f9)](_0x3c41e7,_0x2d0670['id'],_0x169919[_0x4b7292(0x2d9)]['id']),_0x2d0670[_0x4b7292(0x54e)][_0x169919[_0x4b7292(0x2d9)]['id']],_0x2d0670[_0x4b7292(0x54e)][_0x97f646]));return R([..._0x169919[_0x4b7292(0x2d9)][_0x4b7292(0x4aa)]===_0x239099[_0x4b7292(0x41e)]?this[_0x4b7292(0x4bf)](_0x503495):[],_0x2f9032['insertOp'](U['field'](_0x3c41e7,_0x169919[_0x4b7292(0x2d9)]['id']),_0x169919['field']),_0x2f9032[_0x4b7292(0x3b0)]([_0x4b7292(0x528),_0x3c41e7,'fieldOrder'],_0xf229f2['fieldOrder'],_0x1f62a1),..._0x1c27c4,..._0x5055e9]);}[_0x282c57(0x2b0)](_0x40d0d1,_0xbb5388,_0x5eecfb,_0x3b87fa){const _0x479bc7=_0x282c57;let _0x43791f=_0x40d0d1[_0x479bc7(0x528)][_0xbb5388][_0x479bc7(0x453)][_0x5eecfb],_0x43f898={..._0x43791f,..._0x3b87fa};Object['keys'](_0x3b87fa)['forEach'](_0x2bed1b=>{_0x3b87fa[_0x2bed1b]===void 0x0&&delete _0x43f898[_0x2bed1b];});let _0x23f409=er(_0x40d0d1[_0x479bc7(0x528)][_0xbb5388],_0x5eecfb,_0x43791f,_0x43f898);_0x43f898=_0x23f409[_0x479bc7(0x2d9)];let _0x2e1f93=_0x2f9032[_0x479bc7(0x3b0)](U[_0x479bc7(0x2d9)](_0xbb5388,_0x5eecfb),_0x43791f,_0x43f898);return _0x43f898[_0x479bc7(0x4aa)]===_0x239099['Formula']?R([...this[_0x479bc7(0x4bf)](_0x40d0d1),_0x2e1f93,...this[_0x479bc7(0x4f2)](_0x40d0d1,_0xbb5388,_0x5eecfb,_0x43f898)]):R([_0x2e1f93,..._0x23f409['patches'][_0x479bc7(0x4ab)]?[this[_0x479bc7(0x30b)](_0x40d0d1,_0xbb5388,_0x23f409['patches'])]:[]]);}[_0x282c57(0x44f)](_0x2be53e,_0x160dd9,_0x52baa2,_0x123187){return this['updateField'](_0x2be53e,_0x160dd9,_0x52baa2,_0x123187);}[_0x282c57(0x47b)](_0x38c542,_0x5b94a1,_0xbffd1b){const _0x347475=_0x282c57;let _0x8646fd=_0x38c542[_0x347475(0x528)][_0x5b94a1];if(!(_0x8646fd!=null&&_0x8646fd[_0x347475(0x453)][_0xbffd1b])||_0x8646fd[_0x347475(0x45c)]===_0xbffd1b||_0xbffd1b===_0x1a2ecc)return _0x2f9032[_0x347475(0x3b0)]([_0x347475(0x528),_0x5b94a1,_0x347475(0x534)],_0x8646fd==null?void 0x0:_0x8646fd[_0x347475(0x534)],_0x8646fd==null?void 0x0:_0x8646fd[_0x347475(0x534)]);let _0x5257d6=_0x8646fd[_0x347475(0x534)][_0x347475(0x1f4)](_0xbffd1b),_0x2f29a4=Object[_0x347475(0x54e)](_0x8646fd['views'])[_0x347475(0x26a)](_0x9ae4ea=>{const _0x1b0ce8=_0x347475;var _0x57bc5b,_0xc11273,_0x46dee8,_0x2989f1,_0x3efb12,_0x5f0718,_0x3c6982;let _0x27a18a=[],_0x38dc93=((_0x57bc5b=_0x9ae4ea['fieldOrder'])==null?void 0x0:_0x57bc5b[_0x1b0ce8(0x1f4)](_0xbffd1b))??-0x1;_0x38dc93>=0x0&&_0x27a18a[_0x1b0ce8(0x381)](_0x2f9032[_0x1b0ce8(0x40b)]([...U['view'](_0x5b94a1,_0x9ae4ea['id']),_0x1b0ce8(0x534),_0x38dc93],_0xbffd1b));let _0x13e91e=(_0xc11273=_0x9ae4ea[_0x1b0ce8(0x272)])==null?void 0x0:_0xc11273[_0xbffd1b];_0x13e91e!==void 0x0&&_0x27a18a['push'](_0x2f9032[_0x1b0ce8(0x40b)]([...U['view'](_0x5b94a1,_0x9ae4ea['id']),_0x1b0ce8(0x272),_0xbffd1b],_0x13e91e));let _0x933dab=_0x9ae4ea[_0x1b0ce8(0x4cc)]?{..._0x9ae4ea[_0x1b0ce8(0x4cc)],'conditions':_0x9ae4ea[_0x1b0ce8(0x4cc)]['conditions'][_0x1b0ce8(0x4cc)](_0x3eef23=>_0x3eef23[_0x1b0ce8(0x387)]!==_0xbffd1b)}:_0x9ae4ea[_0x1b0ce8(0x4cc)];_0x933dab&&_0x933dab[_0x1b0ce8(0x3d8)][_0x1b0ce8(0x4ab)]!==((_0x46dee8=_0x9ae4ea[_0x1b0ce8(0x4cc)])==null?void 0x0:_0x46dee8['conditions'][_0x1b0ce8(0x4ab)])&&_0x27a18a[_0x1b0ce8(0x381)](this['_replaceOptional']([...U[_0x1b0ce8(0x47a)](_0x5b94a1,_0x9ae4ea['id']),_0x1b0ce8(0x4cc)],_0x9ae4ea['filter'],_0x933dab));let _0x1563d2=(_0x2989f1=_0x9ae4ea[_0x1b0ce8(0x1df)])==null?void 0x0:_0x2989f1[_0x1b0ce8(0x4cc)](_0x4f5a01=>_0x4f5a01[_0x1b0ce8(0x387)]!==_0xbffd1b);_0x1563d2&&_0x1563d2[_0x1b0ce8(0x4ab)]!==((_0x3efb12=_0x9ae4ea[_0x1b0ce8(0x1df)])==null?void 0x0:_0x3efb12[_0x1b0ce8(0x4ab)])&&_0x27a18a[_0x1b0ce8(0x381)](this['_replaceOptional']([...U[_0x1b0ce8(0x47a)](_0x5b94a1,_0x9ae4ea['id']),_0x1b0ce8(0x1df)],_0x9ae4ea[_0x1b0ce8(0x1df)],_0x1563d2));let _0xa76b09=(_0x5f0718=_0x9ae4ea['group'])==null?void 0x0:_0x5f0718['filter'](_0x3cbe7f=>_0x3cbe7f[_0x1b0ce8(0x387)]!==_0xbffd1b);_0xa76b09&&_0xa76b09[_0x1b0ce8(0x4ab)]!==((_0x3c6982=_0x9ae4ea[_0x1b0ce8(0x359)])==null?void 0x0:_0x3c6982[_0x1b0ce8(0x4ab)])&&_0x27a18a[_0x1b0ce8(0x381)](this[_0x1b0ce8(0x4b2)]([...U[_0x1b0ce8(0x47a)](_0x5b94a1,_0x9ae4ea['id']),_0x1b0ce8(0x359)],_0x9ae4ea[_0x1b0ce8(0x359)],_0xa76b09));let _0x20a72a=lr(_0x9ae4ea[_0x1b0ce8(0x50c)],_0xbffd1b);return JSON[_0x1b0ce8(0x2fb)](_0x20a72a)!==JSON[_0x1b0ce8(0x2fb)](_0x9ae4ea[_0x1b0ce8(0x50c)])&&_0x27a18a[_0x1b0ce8(0x381)](_0x2f9032[_0x1b0ce8(0x3b0)]([...U[_0x1b0ce8(0x47a)](_0x5b94a1,_0x9ae4ea['id']),_0x1b0ce8(0x50c)],_0x9ae4ea[_0x1b0ce8(0x50c)],_0x20a72a)),_0x27a18a;}),_0x2358df=Object['values'](_0x8646fd['records'])[_0x347475(0x26a)](_0x3adbd7=>Object['prototype']['hasOwnProperty'][_0x347475(0x2a4)](_0x3adbd7[_0x347475(0x54e)],_0xbffd1b)?[_0x2f9032[_0x347475(0x40b)](U[_0x347475(0x1f9)](_0x5b94a1,_0x3adbd7['id'],_0xbffd1b),_0x3adbd7[_0x347475(0x54e)][_0xbffd1b])]:[]);return R([_0x2f9032['removeOp'](U[_0x347475(0x2d9)](_0x5b94a1,_0xbffd1b),_0x8646fd[_0x347475(0x453)][_0xbffd1b]),_0x2f9032[_0x347475(0x40b)](U['fieldOrder'](_0x5b94a1,_0x5257d6),_0xbffd1b),..._0x2f29a4,..._0x2358df,...this[_0x347475(0x380)](_0x8646fd,_0x5b94a1,_0xc3a6b0=>_0xc3a6b0[_0x347475(0x289)](_0xbffd1b+'\x1f'))]);}[_0x282c57(0x1cc)](_0x2fc902,_0x3b82e8,_0x512c02,_0x5db33e){const _0x19d0a8=_0x282c57;let _0x3637a9=_0x2fc902[_0x19d0a8(0x528)][_0x3b82e8]['fieldOrder'];if(_0x512c02===_0x1a2ecc||_0x5db33e[_0x19d0a8(0x21a)]===_0x1a2ecc)throw Error(_0x19d0a8(0x18e));let _0x346eee=sr(_0x3637a9,_0x512c02,_0x5db33e);return _0x2f9032[_0x19d0a8(0x3b0)](['tables',_0x3b82e8,'fieldOrder'],_0x3637a9,_0x346eee);}[_0x282c57(0x24a)](_0x560cc6,_0x5ea5b2,_0x459d5a,_0x8f2d50=_0x560cc6[_0x282c57(0x528)][_0x5ea5b2][_0x282c57(0x3a5)]['length']){const _0x381852=_0x282c57;return R([_0x2f9032['insertOp'](U['view'](_0x5ea5b2,_0x459d5a['id']),_0x459d5a),_0x2f9032[_0x381852(0x1d0)](['tables',_0x5ea5b2,_0x381852(0x3a5),_0x8f2d50],_0x459d5a['id'])]);}['renameView'](_0x21a68c,_0x12f4e8,_0x2fc3fa,_0x1eccc7){const _0x25d9c1=_0x282c57;return _0x2f9032[_0x25d9c1(0x3b0)]([...U[_0x25d9c1(0x47a)](_0x12f4e8,_0x2fc3fa),_0x25d9c1(0x2f4)],_0x21a68c[_0x25d9c1(0x528)][_0x12f4e8][_0x25d9c1(0x4f9)][_0x2fc3fa]['name'],_0x1eccc7);}[_0x282c57(0x3fa)](_0x32524b,_0x3cab1a,_0x433eee){const _0x3e57b3=_0x282c57;let _0x232a07=_0x32524b[_0x3e57b3(0x528)][_0x3cab1a],_0x2b9a7c=_0x232a07[_0x3e57b3(0x4f9)][_0x433eee],_0x5611e0=_0x232a07['viewOrder'][_0x3e57b3(0x1f4)](_0x433eee);return R([_0x2f9032[_0x3e57b3(0x40b)](U['view'](_0x3cab1a,_0x433eee),_0x2b9a7c),_0x2f9032['removeOp']([_0x3e57b3(0x528),_0x3cab1a,_0x3e57b3(0x3a5),_0x5611e0],_0x433eee)]);}[_0x282c57(0x360)](_0x106f40,_0x2f7bf,_0xbcae45,_0x566358){const _0x3e474e=_0x282c57;let _0x5f95f5=_0x106f40[_0x3e474e(0x528)][_0x2f7bf][_0x3e474e(0x3a5)],_0x33f8fb=sr(_0x5f95f5,_0xbcae45,{'beforeFieldId':_0x566358[_0x3e474e(0x454)],'afterFieldId':_0x566358[_0x3e474e(0x314)]});return _0x2f9032[_0x3e474e(0x3b0)](['tables',_0x2f7bf,'viewOrder'],_0x5f95f5,_0x33f8fb);}[_0x282c57(0x393)](_0x1048a5,_0x3e570d,_0x5d4417,_0x4e23fe){const _0x10dc8e=_0x282c57;let _0x37195a=_0x1048a5[_0x10dc8e(0x528)][_0x3e570d][_0x10dc8e(0x4f9)][_0x5d4417][_0x10dc8e(0x50c)]??{},_0x37c0e6={..._0x37195a,..._0x4e23fe};return Object[_0x10dc8e(0x334)](_0x4e23fe)[_0x10dc8e(0x34b)](_0x1644d7=>{_0x4e23fe[_0x1644d7]===void 0x0&&delete _0x37c0e6[_0x1644d7];}),_0x2f9032[_0x10dc8e(0x3b0)]([...U[_0x10dc8e(0x47a)](_0x3e570d,_0x5d4417),_0x10dc8e(0x50c)],_0x37195a,_0x37c0e6);}['setViewFilter'](_0x2d1615,_0xc31589,_0x2c1fba,_0x139286){const _0x19b921=_0x282c57;return this[_0x19b921(0x4b2)]([...U[_0x19b921(0x47a)](_0xc31589,_0x2c1fba),_0x19b921(0x4cc)],_0x2d1615[_0x19b921(0x528)][_0xc31589]['views'][_0x2c1fba][_0x19b921(0x4cc)],_0x139286);}[_0x282c57(0x36b)](_0x48898e,_0x592e70,_0x5e6632,_0x56fc4c){const _0x400f50=_0x282c57;return this[_0x400f50(0x4b2)]([...U['view'](_0x592e70,_0x5e6632),'sort'],_0x48898e[_0x400f50(0x528)][_0x592e70][_0x400f50(0x4f9)][_0x5e6632][_0x400f50(0x1df)],_0x56fc4c);}['setViewGroup'](_0x3f8cf5,_0x4b6e18,_0x21bff8,_0x1cd5ed){const _0x3fe3b6=_0x282c57;return this[_0x3fe3b6(0x4b2)]([...U[_0x3fe3b6(0x47a)](_0x4b6e18,_0x21bff8),_0x3fe3b6(0x359)],_0x3f8cf5[_0x3fe3b6(0x528)][_0x4b6e18][_0x3fe3b6(0x4f9)][_0x21bff8][_0x3fe3b6(0x359)],_0x1cd5ed);}['setViewFieldVisible'](_0x183f02,_0x5b17d0,_0x46b839,_0x1fbc1c,_0x3ef44c){const _0x29e8d2=_0x282c57;return this[_0x29e8d2(0x1d5)](_0x183f02,_0x5b17d0,_0x46b839,_0x1fbc1c,{'hidden':!_0x3ef44c});}[_0x282c57(0x229)](_0x5cf40f,_0x3f4a35,_0x644e71,_0x5a10d9,_0x358238){const _0x3bf455=_0x282c57;return this[_0x3bf455(0x1d5)](_0x5cf40f,_0x3f4a35,_0x644e71,_0x5a10d9,{'width':_0x358238});}[_0x282c57(0x2af)](_0x458d0d,_0x28d770,_0x55a780,_0x55a542,_0xd1773e){const _0x192d9e=_0x282c57;let _0xb3d0f6=_0x458d0d[_0x192d9e(0x528)][_0x28d770][_0x192d9e(0x4f9)][_0x55a780],_0x105ad5=sr(_0xb3d0f6['fieldOrder']??_0x458d0d[_0x192d9e(0x528)][_0x28d770][_0x192d9e(0x534)],_0x55a542,_0xd1773e);return this['_replaceOptional']([...U[_0x192d9e(0x47a)](_0x28d770,_0x55a780),_0x192d9e(0x534)],_0xb3d0f6[_0x192d9e(0x534)],_0x105ad5);}['_setViewFieldSetting'](_0x3f94f3,_0x2049c2,_0x458b64,_0x376548,_0x14e327){const _0x4ba021=_0x282c57;let _0x4c27f6=_0x3f94f3[_0x4ba021(0x528)][_0x2049c2][_0x4ba021(0x4f9)][_0x458b64][_0x4ba021(0x272)]??{},_0x3f9c1c={..._0x4c27f6,[_0x376548]:{..._0x4c27f6[_0x376548],..._0x14e327}};return this[_0x4ba021(0x4b2)]([...U[_0x4ba021(0x47a)](_0x2049c2,_0x458b64),_0x4ba021(0x272)],_0x3f94f3['tables'][_0x2049c2][_0x4ba021(0x4f9)][_0x458b64][_0x4ba021(0x272)],_0x3f9c1c);}['_createRecordOrderOp'](_0x246077,_0x562c54,_0x105035){const _0xe77f01=_0x282c57;let _0x37ee80=_0x246077[_0xe77f01(0x528)][_0x562c54],_0x7ce673=new Set(_0x105035[_0xe77f01(0x309)](_0x17314c=>_0x17314c['id'])),_0x4fed5a=[...Object[_0xe77f01(0x54e)](_0x37ee80['records'])['filter'](_0x12a3b5=>!_0x7ce673[_0xe77f01(0x25c)](_0x12a3b5['id'])),..._0x105035][_0xe77f01(0x1df)]((_0x3c1f39,_0x4808da)=>String(_0x3c1f39['orderKey']??_0x3c1f39['id'])[_0xe77f01(0x506)](String(_0x4808da[_0xe77f01(0x38a)]??_0x4808da['id'])))[_0xe77f01(0x309)](_0x1d7889=>_0x1d7889['id']),_0x30eb04=[...U[_0xe77f01(0x270)](_0x562c54),_0xe77f01(0x413)];return _0x37ee80[_0xe77f01(0x413)]?_0x2f9032[_0xe77f01(0x3b0)](_0x30eb04,_0x37ee80[_0xe77f01(0x413)],_0x4fed5a):_0x2f9032['insertOp'](_0x30eb04,_0x4fed5a);}[_0x282c57(0x4bf)](_0x14938e,_0x362ee5=new Set()){const _0x380fe5=_0x282c57;let _0x1a9223=_0x41215d(_0x14938e);return Object[_0x380fe5(0x54e)](_0x14938e['tables'])[_0x380fe5(0x4cc)](_0x426942=>!_0x362ee5['has'](_0x426942['id']))[_0x380fe5(0x1df)]((_0x2234db,_0x20d879)=>_0x2234db['id'][_0x380fe5(0x506)](_0x20d879['id']))[_0x380fe5(0x26a)](_0x5135f3=>{const _0x439068=_0x380fe5;let _0x4b828e=_0x1a9223['get'](_0x5135f3['id']);return!_0x4b828e||_0x5135f3[_0x439068(0x3ab)]===_0x4b828e?[]:[this[_0x439068(0x4b2)]([...U[_0x439068(0x270)](_0x5135f3['id']),_0x439068(0x3ab)],_0x5135f3[_0x439068(0x3ab)],_0x4b828e)];});}[_0x282c57(0x4f2)](_0x39330f,_0x294443,_0x13ce3d,_0x12b969){const _0xf8a6b0=_0x282c57;var _0x3498bb,_0x3be709;let _0x383d8e=L(_0x39330f[_0xf8a6b0(0x528)][_0x294443]),_0x54da9b=String(((_0x3498bb=_0x12b969[_0xf8a6b0(0x50c)])==null?void 0x0:_0x3498bb[_0xf8a6b0(0x557)])??'')[_0xf8a6b0(0x24d)](),_0x44fade=(_0x3be709=_0x383d8e['colIndex'])==null?void 0x0:_0x3be709[_0x13ce3d];if(_0x44fade==null)return[];let _0x9be680=_0x383d8e['recordOrder']??Object[_0xf8a6b0(0x334)](_0x383d8e['records']),_0x167e69=_0x9be680[_0xf8a6b0(0x309)](_0x4b546f=>{const _0x4b5311=_0xf8a6b0;var _0x10a9c2;return(_0x10a9c2=_0x383d8e[_0x4b5311(0x277)])==null?void 0x0:_0x10a9c2[_0x4b546f];})[_0xf8a6b0(0x525)](_0x2b5b09=>_0x2b5b09!=null);return _0x9be680['flatMap'](_0x96bc42=>{const _0x3dbc17=_0xf8a6b0;var _0x3db0f7,_0x31f448;let _0x4f26cd=(_0x3db0f7=_0x383d8e[_0x3dbc17(0x277)])==null?void 0x0:_0x3db0f7[_0x96bc42];if(_0x4f26cd==null)return[];let _0x4112d5=(_0x31f448=_0x383d8e[_0x3dbc17(0x343)])==null||(_0x31f448=_0x31f448[_0x4f26cd])==null?void 0x0:_0x31f448[_0x44fade],_0x5026dc=_0x54da9b?_0x4f26cd===_0x167e69?{'f':_0x54da9b,'si':_0x13ce3d}:{'si':_0x13ce3d}:{'v':null,'t':null};return[this[_0x3dbc17(0x4b2)](U[_0x3dbc17(0x343)](_0x294443,_0x4f26cd,_0x44fade),_0x4112d5,_0x5026dc)];});}[_0x282c57(0x512)](_0x26e424,_0x2bd10c,_0x4dd82a){const _0x14d4db=_0x282c57;var _0x4ce07f;let _0x435b87=new Map(Object[_0x14d4db(0x41d)](((_0x4ce07f=_0x26e424[_0x14d4db(0x27b)])==null?void 0x0:_0x4ce07f[_0x14d4db(0x556)])??{})),_0x2dc853=new Map(),_0x461569=new Set(),_0x4bec20=_0x4dd82a[_0x14d4db(0x309)](({recordId:_0x37c5fc,fieldId:_0x46770e,attachments:_0x51a9db})=>{const _0x18cdc4=_0x14d4db;var _0x1f23c8;let _0x732d28=Et(_0x46770e,_0x37c5fc),_0x2b9f08=_0x51a9db[_0x18cdc4(0x309)]((_0x4a022f,_0x20a7f6)=>String(_0x4a022f['id']??_0x732d28+'\x1f'+_0x20a7f6));return _0x461569['add'](_0x732d28),_0x435b87['set'](_0x732d28,_0x2b9f08),_0x51a9db[_0x18cdc4(0x34b)]((_0x23d338,_0x2b96a8)=>{const _0x304404=_0x18cdc4;let _0x3a7cac=_0x2b9f08[_0x2b96a8];_0x2dc853[_0x304404(0x246)](_0x3a7cac,{..._0x23d338,'id':_0x3a7cac});}),this[_0x18cdc4(0x4b2)](U[_0x18cdc4(0x480)](_0x2bd10c,_0x732d28),(_0x1f23c8=_0x26e424[_0x18cdc4(0x27b)])==null||(_0x1f23c8=_0x1f23c8[_0x18cdc4(0x556)])==null?void 0x0:_0x1f23c8[_0x732d28],_0x2b9f08);}),_0xc1268f=Array[_0x14d4db(0x2f3)](_0x2dc853)[_0x14d4db(0x309)](([_0x35dea3,_0x23e605])=>{const _0x5e59a9=_0x14d4db;var _0x475ab4;return this[_0x5e59a9(0x4b2)](U[_0x5e59a9(0x31f)](_0x2bd10c,_0x35dea3),(_0x475ab4=_0x26e424['resources'])==null||(_0x475ab4=_0x475ab4[_0x5e59a9(0x3ba)])==null?void 0x0:_0x475ab4[_0x35dea3],_0x23e605);}),_0x4e4117=new Set(Array['from'](_0x435b87[_0x14d4db(0x54e)]())[_0x14d4db(0x49e)]()),_0x514c07=new Set(Array[_0x14d4db(0x2f3)](_0x461569)['flatMap'](_0x131801=>{const _0xafe642=_0x14d4db;var _0x251cd4;return((_0x251cd4=_0x26e424[_0xafe642(0x27b)])==null||(_0x251cd4=_0x251cd4[_0xafe642(0x556)])==null?void 0x0:_0x251cd4[_0x131801])??[];})),_0x4f31fd=Array[_0x14d4db(0x2f3)](_0x514c07)['flatMap'](_0x588b6b=>{const _0x4171e4=_0x14d4db;var _0x25fb08;let _0x497090=(_0x25fb08=_0x26e424[_0x4171e4(0x27b)])==null||(_0x25fb08=_0x25fb08[_0x4171e4(0x3ba)])==null?void 0x0:_0x25fb08[_0x588b6b];return _0x497090!==void 0x0&&!_0x4e4117[_0x4171e4(0x25c)](_0x588b6b)?[_0x2f9032[_0x4171e4(0x40b)](U['attachment'](_0x2bd10c,_0x588b6b),_0x497090)]:[];});return[..._0x4bec20,..._0xc1268f,..._0x4f31fd];}[_0x282c57(0x380)](_0x1f88e7,_0x5c6965,_0x921bef){const _0x5b4127=_0x282c57;var _0x7e360b;let _0xaea483=((_0x7e360b=_0x1f88e7[_0x5b4127(0x27b)])==null?void 0x0:_0x7e360b['attachmentSets'])??{},_0x1129b9=Object[_0x5b4127(0x41d)](_0xaea483)[_0x5b4127(0x4cc)](([_0x526568])=>_0x921bef(_0x526568));if(!_0x1129b9[_0x5b4127(0x4ab)])return[];let _0x18663d=new Set(Object[_0x5b4127(0x41d)](_0xaea483)[_0x5b4127(0x4cc)](([_0x236234])=>!_0x921bef(_0x236234))[_0x5b4127(0x26a)](([,_0xc72a77])=>_0xc72a77)),_0x56cc91=new Set(_0x1129b9[_0x5b4127(0x26a)](([,_0xb131fd])=>_0xb131fd));return[..._0x1129b9['map'](([_0x4f564e,_0x2d7ef0])=>_0x2f9032[_0x5b4127(0x40b)](U['attachmentSet'](_0x5c6965,_0x4f564e),_0x2d7ef0)),...Array[_0x5b4127(0x2f3)](_0x56cc91)['flatMap'](_0x5eee45=>{const _0x39460e=_0x5b4127;var _0x46518b;let _0x255b6c=(_0x46518b=_0x1f88e7[_0x39460e(0x27b)])==null||(_0x46518b=_0x46518b['attachments'])==null?void 0x0:_0x46518b[_0x5eee45];return _0x255b6c!==void 0x0&&!_0x18663d[_0x39460e(0x25c)](_0x5eee45)?[_0x2f9032['removeOp'](U[_0x39460e(0x31f)](_0x5c6965,_0x5eee45),_0x255b6c)]:[];})];}[_0x282c57(0x4b2)](_0x3ada83,_0x13bdce,_0x238f95){return _0x13bdce===void 0x0?_0x2f9032['insertOp'](_0x3ada83,_0x238f95):_0x2f9032['replaceOp'](_0x3ada83,_0x13bdce,_0x238f95);}};function er(_0x3ca0de,_0x403cd4,_0x4e861f,_0x28d9f0){const _0x250cc1=_0x282c57;var _0x41d7e7;let _0x269792=_0x28d9f0['type'];if(_0x4e861f[_0x250cc1(0x4aa)]!==_0x269792||_0x269792!==_0x239099[_0x250cc1(0x2fe)]&&_0x269792!==_0x239099['MultiSelect']||tr(_0x28d9f0[_0x250cc1(0x50c)][_0x250cc1(0x1da)]))return{'field':_0x28d9f0,'patches':[]};let _0x16aa2c=nr(_0x4e861f),_0x518d68=nr(_0x28d9f0);if(![..._0x16aa2c][_0x250cc1(0x436)](_0x324e39=>!_0x518d68[_0x250cc1(0x25c)](_0x324e39)))return{'field':_0x28d9f0,'patches':[]};let _0x364117=rr(_0x28d9f0[_0x250cc1(0x522)],_0x518d68,_0x269792),_0x4b7cec=ir(_0x364117,_0x28d9f0['defaultValue'])?_0x28d9f0:{..._0x28d9f0,'defaultValue':_0x364117},_0x3991b4=L(_0x3ca0de),_0x3a2b46=(_0x41d7e7=_0x3991b4[_0x250cc1(0x28f)])==null?void 0x0:_0x41d7e7[_0x403cd4];return _0x3a2b46==null?{'field':_0x4b7cec,'patches':[]}:{'field':_0x4b7cec,'patches':(_0x3991b4[_0x250cc1(0x413)]??[])['flatMap'](_0x504e3b=>{const _0x52440a=_0x250cc1;var _0xebf348,_0x296508;let _0x36b669=(_0xebf348=_0x3991b4[_0x52440a(0x277)])==null?void 0x0:_0xebf348[_0x504e3b],_0x916ad2=(_0x296508=_0x3991b4[_0x52440a(0x1e1)][_0x504e3b])==null?void 0x0:_0x296508[_0x52440a(0x54e)][_0x403cd4],_0x3aafae=rr(_0x916ad2,_0x518d68,_0x269792);return _0x36b669==null||ir(_0x3aafae,_0x916ad2)?[]:[{'row':_0x36b669,'col':_0x3a2b46,'value':_0x3aafae??null}];})};}function tr(_0x2056b9){const _0x58430a=_0x282c57;return typeof _0x2056b9==_0x58430a(0x4ba)&&!!_0x2056b9&&_0x58430a(0x4aa)in _0x2056b9&&_0x2056b9[_0x58430a(0x4aa)]===_0x58430a(0x2d9);}function nr(_0x30d48d){const _0x48d606=_0x282c57;var _0x32abf7;let _0x38137e=Array['isArray']((_0x32abf7=_0x30d48d['config'])==null?void 0x0:_0x32abf7[_0x48d606(0x4f3)])?_0x30d48d[_0x48d606(0x50c)][_0x48d606(0x4f3)]:[];return new Set(_0x38137e[_0x48d606(0x26a)](_0x58bba2=>{if(!_0x58bba2||typeof _0x58bba2!='object'||!('id'in _0x58bba2))return[];let _0x2b8916=String(_0x58bba2['id']);return _0x2b8916?[_0x2b8916]:[];}));}function rr(_0xde3b82,_0x3c4797,_0x308d89){const _0x181aac=_0x282c57;if(_0xde3b82==null||_0xde3b82==='')return _0xde3b82;if(_0x308d89===_0x239099[_0x181aac(0x2fe)])return _0x3c4797[_0x181aac(0x25c)](String(_0xde3b82))?_0xde3b82:null;let _0x19bffc=Array[_0x181aac(0x3d5)](_0xde3b82)?_0xde3b82[_0x181aac(0x309)](String):String(_0xde3b82)[_0x181aac(0x460)](',')[_0x181aac(0x309)](_0x1e8701=>_0x1e8701[_0x181aac(0x24d)]())[_0x181aac(0x4cc)](Boolean),_0x12acce=_0x19bffc['filter'](_0x4471e5=>_0x3c4797[_0x181aac(0x25c)](_0x4471e5));return _0x12acce[_0x181aac(0x4ab)]===_0x19bffc['length']?_0xde3b82:Array[_0x181aac(0x3d5)](_0xde3b82)?_0x12acce:String(_0xde3b82)[_0x181aac(0x3df)](',')?_0x12acce[_0x181aac(0x1c0)](','):_0x12acce[0x0]??[];}function ir(_0x474727,_0x2f8f75){const _0x496b89=_0x282c57;return JSON['stringify'](_0x474727)===JSON[_0x496b89(0x2fb)](_0x2f8f75);}function ar(_0x2b6826,_0x3cb01b,_0x413906){const _0x2bd558=_0x282c57;var _0x4f2b6d,_0x958134,_0x10f072,_0x5c2cdd;let _0x56a6d5=(_0x4f2b6d=_0x2b6826[_0x2bd558(0x277)])==null?void 0x0:_0x4f2b6d[_0x3cb01b],_0x353856=(_0x958134=_0x2b6826[_0x2bd558(0x28f)])==null?void 0x0:_0x958134[_0x413906];return _0x56a6d5!=null&&_0x353856!=null&&((_0x10f072=_0x2b6826[_0x2bd558(0x21b)])==null?void 0x0:_0x10f072[_0x56a6d5])===_0x3cb01b&&((_0x5c2cdd=_0x2b6826[_0x2bd558(0x46d)])==null?void 0x0:_0x5c2cdd[_0x353856])===_0x413906&&_0x2b6826[_0x2bd558(0x343)]!=null;}function or(_0x1fc377,_0x3cddc8,_0x226fcc){const _0x2979bf=_0x282c57;var _0x431ec7,_0x508e8e;return((_0x431ec7=_0x1fc377[_0x2979bf(0x21b)])==null?void 0x0:_0x431ec7[_0x3cddc8])!=null&&((_0x508e8e=_0x1fc377[_0x2979bf(0x46d)])==null?void 0x0:_0x508e8e[_0x226fcc])!=null&&_0x1fc377[_0x2979bf(0x343)]!=null;}function sr(_0x18b4ad,_0x232c1d,_0x5296b0){const _0x202634=_0x282c57;let _0x2dfae0=_0x18b4ad[_0x202634(0x4cc)](_0x1aaa17=>_0x1aaa17!==_0x232c1d),_0x21e915=_0x5296b0['beforeFieldId']?_0x2dfae0[_0x202634(0x1f4)](_0x5296b0['beforeFieldId']):_0x5296b0[_0x202634(0x1f0)]?_0x2dfae0[_0x202634(0x1f4)](_0x5296b0['afterFieldId'])+0x1:_0x2dfae0[_0x202634(0x4ab)];return _0x2dfae0[_0x202634(0x4eb)](_0x21e915<0x0?_0x2dfae0[_0x202634(0x4ab)]:_0x21e915,0x0,_0x232c1d),_0x2dfae0;}function cr(_0x4d6a56,_0x8cac3b,_0x2d1fcc){const _0xbc5ab1=_0x282c57;let _0x378752=_0x4d6a56[_0xbc5ab1(0x4cc)](_0x16fc7f=>_0x16fc7f!==_0x8cac3b);return _0x378752[_0xbc5ab1(0x4eb)](ur(_0x2d1fcc,_0x378752['length']),0x0,_0x8cac3b),_0x378752;}function lr(_0x8ca10b,_0x201e6c,_0x470c87){const _0x1c0007=_0x282c57;if(Array[_0x1c0007(0x3d5)](_0x8ca10b))return _0x470c87===_0x1c0007(0x25f)?_0x8ca10b[_0x1c0007(0x4cc)](_0x41e562=>_0x41e562!==_0x201e6c):_0x8ca10b[_0x1c0007(0x26a)](_0x1ab2da=>{const _0x2360ab=_0x1c0007;if(_0x1ab2da&&typeof _0x1ab2da==_0x2360ab(0x4ba)&&!Array[_0x2360ab(0x3d5)](_0x1ab2da)&&_0x1ab2da[_0x2360ab(0x387)]===_0x201e6c)return[];let _0x2bf636=lr(_0x1ab2da,_0x201e6c);return _0x2bf636===void 0x0?[]:[_0x2bf636];});if(!_0x8ca10b||typeof _0x8ca10b!=_0x1c0007(0x4ba))return _0x470c87!=null&&_0x470c87[_0x1c0007(0x48a)](_0x1c0007(0x25e))&&_0x8ca10b===_0x201e6c?void 0x0:_0x8ca10b;let _0x31f86f=_0x8ca10b;if(_0x31f86f[_0x1c0007(0x387)]!==_0x201e6c)return Object[_0x1c0007(0x1af)](Object['entries'](_0x31f86f)[_0x1c0007(0x26a)](([_0x33a22f,_0x2eaf22])=>{const _0x31e36f=_0x1c0007;if(_0x33a22f===_0x201e6c&&_0x470c87===_0x31e36f(0x272))return[];let _0x291696=lr(_0x2eaf22,_0x201e6c,_0x33a22f);return _0x291696===void 0x0?[]:[[_0x33a22f,_0x291696]];}));}function ur(_0x206ddd,_0x2b1ddd){const _0x1ec508=_0x282c57;return Math[_0x1ec508(0x468)](0x0,Math[_0x1ec508(0x520)](_0x206ddd,_0x2b1ddd));}function dr(_0x208dcd){'@babel/helpers - typeof';const _0x18e89f=_0x282c57;return dr=typeof Symbol==_0x18e89f(0x3b9)&&typeof Symbol['iterator']=='symbol'?function(_0x3bdfd1){return typeof _0x3bdfd1;}:function(_0x542fce){const _0x12379a=_0x18e89f;return _0x542fce&&typeof Symbol=='function'&&_0x542fce[_0x12379a(0x25b)]===Symbol&&_0x542fce!==Symbol['prototype']?_0x12379a(0x317):typeof _0x542fce;},dr(_0x208dcd);}function fr(_0x233e85,_0x1e333e){const _0x2dc12d=_0x282c57;if(dr(_0x233e85)!=_0x2dc12d(0x4ba)||!_0x233e85)return _0x233e85;var _0x51672d=_0x233e85[Symbol[_0x2dc12d(0x1e8)]];if(_0x51672d!==void 0x0){var _0x29bab0=_0x51672d['call'](_0x233e85,_0x1e333e||'default');if(dr(_0x29bab0)!=_0x2dc12d(0x4ba))return _0x29bab0;throw TypeError(_0x2dc12d(0x2fa));}return(_0x1e333e==='string'?String:Number)(_0x233e85);}function pr(_0x15e56a){const _0x25bb7d=_0x282c57;var _0x1dafb2=fr(_0x15e56a,'string');return dr(_0x1dafb2)==_0x25bb7d(0x317)?_0x1dafb2:_0x1dafb2+'';}function G(_0x414f73,_0x22202d,_0x51f099){const _0xcc1b49=_0x282c57;return(_0x22202d=pr(_0x22202d))in _0x414f73?Object[_0xcc1b49(0x23c)](_0x414f73,_0x22202d,{'value':_0x51f099,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x414f73[_0x22202d]=_0x51f099,_0x414f73;}const mr=_0x2cfc4b(_0x282c57(0x43a));var hr=class extends _0x3bb8e0{constructor(..._0x2e4477){const _0x6d6fd4=_0x282c57;super(..._0x2e4477),G(this,_0x6d6fd4(0x432),new Map());}[_0x282c57(0x39f)](_0x13267c){const _0xe6840d=_0x282c57;return this[_0xe6840d(0x432)]['set'](_0x13267c[_0xe6840d(0x4aa)],_0x13267c),_0x453a32(()=>this[_0xe6840d(0x432)][_0xe6840d(0x404)](_0x13267c[_0xe6840d(0x4aa)]));}[_0x282c57(0x268)](_0x23f27b){const _0x314ee3=_0x282c57;let _0x4e7d05=this[_0x314ee3(0x432)]['get'](_0x23f27b);if(!_0x4e7d05)throw Error(_0x314ee3(0x550)+_0x23f27b+'\x22\x20is\x20not\x20registered.');return _0x4e7d05;}[_0x282c57(0x4e4)](_0x512a1d){const _0xa1d76b=_0x282c57;return this[_0xa1d76b(0x432)]['get'](_0x512a1d);}['getAll'](){const _0xe7c83e=_0x282c57;return Array[_0xe7c83e(0x2f3)](this['_plugins'][_0xe7c83e(0x54e)]());}},gr=class{constructor(_0xdf032e){const _0x4ee7f0=_0x282c57;this[_0x4ee7f0(0x226)]=_0xdf032e,G(this,'type',_0xd2ae12[_0x4ee7f0(0x3d6)]),G(this,_0x4ee7f0(0x4a3),_0x133e41[_0x4ee7f0(0x4c4)]),G(this,_0x4ee7f0(0x42a),_0xcbb269[_0x4ee7f0(0x2b3)]),G(this,'id',void 0x0),G(this,_0x4ee7f0(0x373),!0x0),this['id']=this['type']+'.'+this[_0x4ee7f0(0x4a3)]+'_'+_0xdf032e;}},_r=class{constructor(_0x405799){const _0x263737=_0x282c57;this[_0x263737(0x226)]=_0x405799,G(this,'type',_0xd2ae12[_0x263737(0x3d6)]),G(this,_0x263737(0x4a3),_0x133e41[_0x263737(0x208)]),G(this,'status',_0xcbb269['INIT']),G(this,'id',void 0x0),G(this,_0x263737(0x373),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x405799;}},vr=class{constructor(_0x57ff1c){const _0x55634e=_0x282c57;this[_0x55634e(0x226)]=_0x57ff1c,G(this,_0x55634e(0x4aa),_0xd2ae12[_0x55634e(0x3d6)]),G(this,_0x55634e(0x4a3),_0x133e41[_0x55634e(0x4a6)]),G(this,_0x55634e(0x42a),_0xcbb269[_0x55634e(0x2b3)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x55634e(0x4a3)]+'_'+_0x57ff1c;}},yr=class{constructor(_0x46d834){const _0x503107=_0x282c57;this[_0x503107(0x226)]=_0x46d834,G(this,_0x503107(0x4aa),_0xd2ae12[_0x503107(0x3d6)]),G(this,_0x503107(0x4a3),_0x133e41[_0x503107(0x3ce)]),G(this,_0x503107(0x42a),_0xcbb269[_0x503107(0x2b3)]),G(this,'id',void 0x0),G(this,_0x503107(0x373),!0x0),this['id']=this[_0x503107(0x4aa)]+'.'+this[_0x503107(0x4a3)]+'_'+_0x46d834;}},br=class{constructor(_0xe8ffec,_0x4ad65b){const _0x4953e7=_0x282c57;this[_0x4953e7(0x226)]=_0xe8ffec,this[_0x4953e7(0x223)]=_0x4ad65b,G(this,_0x4953e7(0x4aa),_0xd2ae12[_0x4953e7(0x426)]),G(this,_0x4953e7(0x4a3),_0x133e41[_0x4953e7(0x4a6)]),G(this,'status',_0xcbb269[_0x4953e7(0x2b3)]),G(this,'id',void 0x0),G(this,_0x4953e7(0x373),!0x0),this['id']=this[_0x4953e7(0x4aa)]+'.'+this['subType']+'_'+_0xe8ffec+'_'+_0x4ad65b;}},xr=class{constructor(_0x6e617,_0x16955b){const _0x3d35d9=_0x282c57;this[_0x3d35d9(0x226)]=_0x6e617,this[_0x3d35d9(0x223)]=_0x16955b,G(this,_0x3d35d9(0x4aa),_0xd2ae12[_0x3d35d9(0x4e9)]),G(this,_0x3d35d9(0x4a3),_0x133e41['Edit']),G(this,_0x3d35d9(0x42a),_0xcbb269[_0x3d35d9(0x2b3)]),G(this,'id',void 0x0),G(this,_0x3d35d9(0x373),!0x0),this['id']=this['type']+'.'+this[_0x3d35d9(0x4a3)]+'_'+_0x6e617+'_'+_0x16955b;}},Sr=class{constructor(_0x281122,_0x18b9c1){const _0x142063=_0x282c57;this[_0x142063(0x226)]=_0x281122,this[_0x142063(0x223)]=_0x18b9c1,G(this,_0x142063(0x4aa),_0xd2ae12[_0x142063(0x2d0)]),G(this,_0x142063(0x4a3),_0x133e41[_0x142063(0x4a6)]),G(this,'status',_0xcbb269[_0x142063(0x2b3)]),G(this,'id',void 0x0),G(this,_0x142063(0x373),!0x0),this['id']=this[_0x142063(0x4aa)]+'.'+this[_0x142063(0x4a3)]+'_'+_0x281122+'_'+_0x18b9c1;}},Cr=class{constructor(_0x534820,_0x16cf40){const _0x40180b=_0x282c57;this['unitId']=_0x534820,this['objectId']=_0x16cf40,G(this,_0x40180b(0x4aa),_0xd2ae12[_0x40180b(0x29b)]),G(this,_0x40180b(0x4a3),_0x133e41[_0x40180b(0x4a6)]),G(this,_0x40180b(0x42a),_0xcbb269[_0x40180b(0x2b3)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x40180b(0x4aa)]+'.'+this[_0x40180b(0x4a3)]+'_'+_0x534820+'_'+_0x16cf40;}},wr=class{constructor(_0x17b505,_0x13ca57){const _0x7b4f44=_0x282c57;this['unitId']=_0x17b505,this[_0x7b4f44(0x223)]=_0x13ca57,G(this,'type',_0xd2ae12[_0x7b4f44(0x1ad)]),G(this,'subType',_0x133e41[_0x7b4f44(0x4a6)]),G(this,_0x7b4f44(0x42a),_0xcbb269[_0x7b4f44(0x2b3)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x7b4f44(0x4a3)]+'_'+_0x17b505+'_'+_0x13ca57;}};const Tr=[_0x133e41[_0x282c57(0x4a6)],_0x133e41[_0x282c57(0x208)],_0x133e41['Export'],_0x133e41[_0x282c57(0x4c4)]],Er=new Set([_0xd2ae12['Base'],_0xd2ae12['BaseTable'],_0xd2ae12[_0x282c57(0x4e9)],_0xd2ae12[_0x282c57(0x2d0)],_0xd2ae12[_0x282c57(0x1ad)],_0xd2ae12[_0x282c57(0x426)]]),Dr=_0x282c57(0x448),Or=_0x282c57(0x254),kr=_0x282c57(0x507),Ar=_0x282c57(0x26e),jr='dashboard/';function K(_0x13b9d7){return''+Dr+encodeURIComponent(_0x13b9d7);}function q(_0x5a9f4f,_0x66db39){return''+Or+encodeURIComponent(_0x5a9f4f)+'/'+encodeURIComponent(_0x66db39);}function J(_0x2a76ef,_0x3f6f29){return''+kr+encodeURIComponent(_0x2a76ef)+'/'+encodeURIComponent(_0x3f6f29);}function Mr(_0x508515,_0x19e79f){return''+Ar+encodeURIComponent(_0x508515)+'/'+encodeURIComponent(_0x19e79f);}function Nr(_0x16798b){return''+jr+encodeURIComponent(_0x16798b);}function Pr(_0x165108,_0x36b6ec,_0x8b6ea9){const _0x14fac0=_0x282c57;if(_0x36b6ec===_0x165108)switch(_0x8b6ea9){case _0x133e41[_0x14fac0(0x4a6)]:return new vr(_0x165108);case _0x133e41[_0x14fac0(0x208)]:return new _r(_0x165108);case _0x133e41['Export']:return new yr(_0x165108);case _0x133e41[_0x14fac0(0x4c4)]:return new gr(_0x165108);default:throw Error(_0x14fac0(0x4e6)+_0x8b6ea9);}if(_0x8b6ea9!==_0x133e41[_0x14fac0(0x4a6)])throw Error(_0x14fac0(0x4a7)+_0x36b6ec);if(_0x36b6ec[_0x14fac0(0x289)](Dr))return new Cr(_0x165108,_0x36b6ec);if(_0x36b6ec['startsWith'](Or))return new xr(_0x165108,_0x36b6ec);if(_0x36b6ec[_0x14fac0(0x289)](kr))return new Sr(_0x165108,_0x36b6ec);if(_0x36b6ec[_0x14fac0(0x289)](Ar))return new wr(_0x165108,_0x36b6ec);if(_0x36b6ec[_0x14fac0(0x289)](jr))return new br(_0x165108,_0x36b6ec);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x36b6ec);}function Fr(_0x2ba84b,_0x5e6e52,_0x407aec,_0x30dd9c){const _0x15df35=_0x282c57;var _0x26813f;return((_0x26813f=_0x2ba84b[_0x15df35(0x22c)](Pr(_0x5e6e52,_0x407aec,_0x30dd9c)['id']))==null?void 0x0:_0x26813f[_0x15df35(0x373)])??!0x0;}function Ir(_0xa0482,_0x34d77a,_0x48655d,_0x1af21d,_0x1360e0){const _0x2b0b3f=_0x282c57;let _0x5bb242=Pr(_0x34d77a,_0x48655d,_0x1af21d);_0xa0482[_0x2b0b3f(0x22c)](_0x5bb242['id'])||_0xa0482[_0x2b0b3f(0x311)](_0x5bb242),_0xa0482[_0x2b0b3f(0x47e)](_0x5bb242['id'],_0x1360e0);}function Lr(_0x4f0550,_0x392017,_0x217a23,_0x483b9b){const _0x2747cc=_0x282c57;_0x4f0550[_0x2747cc(0x46e)](Pr(_0x392017,_0x217a23,_0x483b9b)['id']);}function Rr(_0x15775b,_0x49fe02){const _0x52c108=_0x282c57;_0x15775b[_0x52c108(0x500)]()[_0x52c108(0x34b)]((_0x190a93,_0x48d234)=>{const _0x548275=_0x52c108;_0x190a93[_0x548275(0x306)](_0x211c8a=>{const _0x4601b1=_0x548275;Er[_0x4601b1(0x25c)](_0x211c8a[_0x4601b1(0x4aa)])&&_0x4601b1(0x226)in _0x211c8a&&_0x211c8a[_0x4601b1(0x226)]===_0x49fe02&&_0x15775b['deletePermissionPoint'](_0x48d234);})[_0x548275(0x405)]();});}function zr(_0x71faa9,_0x2d156d,_0x25eab1){const _0x5c75a3=_0x282c57;return Fr(_0x71faa9,_0x2d156d,_0x2d156d,_0x133e41[_0x5c75a3(0x4a6)])&&Array[_0x5c75a3(0x2f3)](_0x25eab1)[_0x5c75a3(0x300)](_0x17f947=>Fr(_0x71faa9,_0x2d156d,_0x17f947,_0x133e41[_0x5c75a3(0x4a6)]));}function Y(_0x40e9a8,_0x317dad){return function(_0x3b512e,_0x560474){_0x317dad(_0x3b512e,_0x560474,_0x40e9a8);};}function X(_0x5035ab,_0x3af17a,_0x26077e,_0x2a3f89){const _0x9ac5a6=_0x282c57;var _0x5c80d7=arguments[_0x9ac5a6(0x4ab)],_0x1672c4=_0x5c80d7<0x3?_0x3af17a:_0x2a3f89===null?_0x2a3f89=Object['getOwnPropertyDescriptor'](_0x3af17a,_0x26077e):_0x2a3f89,_0x3c9465;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x9ac5a6(0x3b9))_0x1672c4=Reflect[_0x9ac5a6(0x54f)](_0x5035ab,_0x3af17a,_0x26077e,_0x2a3f89);else{for(var _0x291b5f=_0x5035ab['length']-0x1;_0x291b5f>=0x0;_0x291b5f--)(_0x3c9465=_0x5035ab[_0x291b5f])&&(_0x1672c4=(_0x5c80d7<0x3?_0x3c9465(_0x1672c4):_0x5c80d7>0x3?_0x3c9465(_0x3af17a,_0x26077e,_0x1672c4):_0x3c9465(_0x3af17a,_0x26077e))||_0x1672c4);}return _0x5c80d7>0x3&&_0x1672c4&&Object['defineProperty'](_0x3af17a,_0x26077e,_0x1672c4),_0x1672c4;}const Br=_0x2cfc4b('base.permission.service');let Vr=class extends _0x3bb8e0{constructor(_0x5e7dbf,_0x46adaa){const _0x562a80=_0x282c57;super(),this[_0x562a80(0x513)]=_0x5e7dbf,this[_0x562a80(0x20c)]=_0x46adaa,G(this,'_basePermissions',new Map()),G(this,_0x562a80(0x383),new Map()),G(this,_0x562a80(0x451),new Map()),G(this,_0x562a80(0x4bd),new Map()),G(this,_0x562a80(0x330),new Map()),G(this,_0x562a80(0x414),new Map()),this[_0x562a80(0x4fe)](this[_0x562a80(0x20c)][_0x562a80(0x4b0)](_0x335149[_0x562a80(0x370)])[_0x562a80(0x306)](_0x173d05=>this[_0x562a80(0x50b)](_0x173d05[_0x562a80(0x1e4)]())));}[_0x282c57(0x42f)](_0x1207a1){const _0x481813=_0x282c57;var _0x34a60e;return this[_0x481813(0x462)](_0x1207a1,[])&&(((_0x34a60e=this[_0x481813(0x53b)]['get'](_0x1207a1))==null?void 0x0:_0x34a60e['createTable'])??!0x0);}[_0x282c57(0x403)](_0x185ef2){const _0x55dfb2=_0x282c57;return this[_0x55dfb2(0x2f8)](_0x185ef2);}[_0x282c57(0x2f5)](_0x49cfc3){const _0x59edd4=_0x282c57;var _0x278bb9;return this['_canEditTable'](_0x49cfc3)&&(((_0x278bb9=this[_0x59edd4(0x383)][_0x59edd4(0x268)](_0x49cfc3))==null?void 0x0:_0x278bb9[_0x59edd4(0x404)])??!0x0);}['canCreateField'](_0x10e098){const _0x496e05=_0x282c57;var _0x2e1c5b;return this[_0x496e05(0x2f8)](_0x10e098)&&(((_0x2e1c5b=this[_0x496e05(0x383)][_0x496e05(0x268)](_0x10e098))==null?void 0x0:_0x2e1c5b['createField'])??!0x0);}['canEditField'](_0x2fa5de,_0xbdcf63){const _0x4e73d1=_0x282c57;var _0x2af12a;return this[_0x4e73d1(0x2f8)](_0x2fa5de)&&this[_0x4e73d1(0x462)](_0x2fa5de,[q(_0x2fa5de,_0xbdcf63)])&&(((_0x2af12a=this[_0x4e73d1(0x451)][_0x4e73d1(0x268)](Ur(_0x2fa5de,_0xbdcf63)))==null?void 0x0:_0x2af12a[_0x4e73d1(0x301)])??!0x0);}[_0x282c57(0x510)](_0x433e51,_0x142aa4){const _0x178f95=_0x282c57;var _0x8ae1cc;return this[_0x178f95(0x3d0)](_0x433e51,_0x142aa4)&&(((_0x8ae1cc=this[_0x178f95(0x451)][_0x178f95(0x268)](Ur(_0x433e51,_0x142aa4)))==null?void 0x0:_0x8ae1cc[_0x178f95(0x404)])??!0x0);}[_0x282c57(0x4e2)](_0x19f3e9){const _0x57e087=_0x282c57;var _0x2d7568;return this[_0x57e087(0x2f8)](_0x19f3e9)&&(((_0x2d7568=this[_0x57e087(0x383)][_0x57e087(0x268)](_0x19f3e9))==null?void 0x0:_0x2d7568['createRecord'])??!0x0);}[_0x282c57(0x219)](_0x2d23be,_0x3217f7){const _0x57a1bb=_0x282c57;var _0x104eb5;let _0x34e472=this[_0x57a1bb(0x4bd)][_0x57a1bb(0x268)](Wr(_0x2d23be,_0x3217f7));return this['_canEdit'](_0x2d23be,[K(_0x2d23be),J(_0x2d23be,_0x3217f7)])&&(((_0x104eb5=this[_0x57a1bb(0x383)][_0x57a1bb(0x268)](_0x2d23be))==null?void 0x0:_0x104eb5[_0x57a1bb(0x301)])??!0x0)&&((_0x34e472==null?void 0x0:_0x34e472[_0x57a1bb(0x301)])??!0x0)&&((_0x34e472==null?void 0x0:_0x34e472['editCell'])??!0x0);}[_0x282c57(0x23d)](_0x7bd073,_0x3e2c35){const _0x4cf3c6=_0x282c57;var _0x194202,_0x1e8acd,_0x1b5c21;return this[_0x4cf3c6(0x462)](_0x7bd073,[K(_0x7bd073),J(_0x7bd073,_0x3e2c35)])&&(((_0x194202=this[_0x4cf3c6(0x383)][_0x4cf3c6(0x268)](_0x7bd073))==null?void 0x0:_0x194202[_0x4cf3c6(0x301)])??!0x0)&&(((_0x1e8acd=this[_0x4cf3c6(0x4bd)][_0x4cf3c6(0x268)](Wr(_0x7bd073,_0x3e2c35)))==null?void 0x0:_0x1e8acd['edit'])??!0x0)&&(((_0x1b5c21=this[_0x4cf3c6(0x4bd)][_0x4cf3c6(0x268)](Wr(_0x7bd073,_0x3e2c35)))==null?void 0x0:_0x1b5c21[_0x4cf3c6(0x404)])??!0x0);}['canEditCell'](_0x2f168b,_0x23b2f9,_0x46afbe){const _0x2072ac=_0x282c57;var _0x446e3e,_0x377948,_0x1460d6;let _0x2aa181=this['_fieldPermissions'][_0x2072ac(0x268)](Ur(_0x2f168b,_0x46afbe));return this['_canEdit'](_0x2f168b,[K(_0x2f168b),q(_0x2f168b,_0x46afbe),J(_0x2f168b,_0x23b2f9)])&&(((_0x446e3e=this[_0x2072ac(0x383)]['get'](_0x2f168b))==null?void 0x0:_0x446e3e[_0x2072ac(0x301)])??!0x0)&&(((_0x377948=this[_0x2072ac(0x4bd)]['get'](Wr(_0x2f168b,_0x23b2f9)))==null?void 0x0:_0x377948['edit'])??!0x0)&&(((_0x1460d6=this[_0x2072ac(0x4bd)][_0x2072ac(0x268)](Wr(_0x2f168b,_0x23b2f9)))==null?void 0x0:_0x1460d6[_0x2072ac(0x54c)])??!0x0)&&((_0x2aa181==null?void 0x0:_0x2aa181[_0x2072ac(0x301)])??!0x0)&&((_0x2aa181==null?void 0x0:_0x2aa181[_0x2072ac(0x54c)])??!0x0);}[_0x282c57(0x39d)](_0x3b04c7,_0x3a3544){const _0x8b2546=_0x282c57;var _0x2e6d79,_0x2a38ed,_0x13e17c;return this['_canEdit'](_0x3b04c7,[K(_0x3b04c7),Mr(_0x3b04c7,_0x3a3544)])&&(((_0x2e6d79=this[_0x8b2546(0x383)][_0x8b2546(0x268)](_0x3b04c7))==null?void 0x0:_0x2e6d79[_0x8b2546(0x301)])??!0x0)&&(((_0x2a38ed=this['_viewPermissions'][_0x8b2546(0x268)](Gr(_0x3b04c7,_0x3a3544)))==null?void 0x0:_0x2a38ed['edit'])??!0x0)&&(((_0x13e17c=this['_tablePermissions']['get'](_0x3b04c7))==null?void 0x0:_0x13e17c['manageView'])??!0x0);}[_0x282c57(0x3a1)](_0x3d02ae,_0x2d0fdd){const _0x52c8dc=_0x282c57;this['_basePermissions']['set'](_0x3d02ae,{...this['_basePermissions'][_0x52c8dc(0x268)](_0x3d02ae),..._0x2d0fdd}),_0x2d0fdd[_0x52c8dc(0x301)]!==void 0x0&&Ir(this['_permissionService'],_0x3d02ae,_0x3d02ae,_0x133e41['Edit'],_0x2d0fdd[_0x52c8dc(0x301)]);}[_0x282c57(0x28e)](_0x2b89ef,_0x148764){const _0x35d3c5=_0x282c57;this['_rememberTable'](_0x2b89ef),this[_0x35d3c5(0x383)][_0x35d3c5(0x246)](_0x2b89ef,{...this['_tablePermissions'][_0x35d3c5(0x268)](_0x2b89ef),..._0x148764}),this[_0x35d3c5(0x38c)](_0x2b89ef,K(_0x2b89ef),_0x148764[_0x35d3c5(0x301)]);}[_0x282c57(0x4de)](_0x4bcfdb,_0x766d94,_0x20f937){const _0x3c82a0=_0x282c57;this[_0x3c82a0(0x4cf)](_0x4bcfdb);let _0x5a8684=Ur(_0x4bcfdb,_0x766d94);this[_0x3c82a0(0x451)][_0x3c82a0(0x246)](_0x5a8684,{...this[_0x3c82a0(0x451)][_0x3c82a0(0x268)](_0x5a8684),..._0x20f937}),this[_0x3c82a0(0x38c)](_0x4bcfdb,q(_0x4bcfdb,_0x766d94),_0x20f937[_0x3c82a0(0x301)]);}[_0x282c57(0x365)](_0x21ba56,_0xc2d1fc,_0x51697c){const _0x2acefd=_0x282c57;this[_0x2acefd(0x4cf)](_0x21ba56);let _0x33f150=Wr(_0x21ba56,_0xc2d1fc);this[_0x2acefd(0x4bd)][_0x2acefd(0x246)](_0x33f150,{...this[_0x2acefd(0x4bd)][_0x2acefd(0x268)](_0x33f150),..._0x51697c}),this[_0x2acefd(0x38c)](_0x21ba56,J(_0x21ba56,_0xc2d1fc),_0x51697c['edit']);}[_0x282c57(0x3f3)](_0x3df923,_0x351a57,_0x501504){const _0x4c6b82=_0x282c57;this['_rememberTable'](_0x3df923);let _0x35a2cd=Gr(_0x3df923,_0x351a57);this['_viewPermissions']['set'](_0x35a2cd,{...this[_0x4c6b82(0x330)]['get'](_0x35a2cd),..._0x501504}),this['_setObjectEdit'](_0x3df923,Mr(_0x3df923,_0x351a57),_0x501504[_0x4c6b82(0x301)]);}[_0x282c57(0x222)](_0x216629){const _0x2bbb3c=_0x282c57;this['_basePermissions'][_0x2bbb3c(0x404)](_0x216629),Lr(this[_0x2bbb3c(0x513)],_0x216629,_0x216629,_0x133e41[_0x2bbb3c(0x4a6)]);}[_0x282c57(0x2ed)](_0x22da75){const _0x2565a2=_0x282c57;this[_0x2565a2(0x383)][_0x2565a2(0x404)](_0x22da75),this[_0x2565a2(0x233)](_0x22da75,K(_0x22da75));}['clearFieldPermission'](_0x2c7afe,_0x4330ff){const _0x16e94f=_0x282c57;this[_0x16e94f(0x451)][_0x16e94f(0x404)](Ur(_0x2c7afe,_0x4330ff)),this[_0x16e94f(0x233)](_0x2c7afe,q(_0x2c7afe,_0x4330ff));}[_0x282c57(0x3c5)](_0x510250,_0x4f2370){const _0x475a9e=_0x282c57;this[_0x475a9e(0x4bd)][_0x475a9e(0x404)](Wr(_0x510250,_0x4f2370)),this[_0x475a9e(0x233)](_0x510250,J(_0x510250,_0x4f2370));}[_0x282c57(0x3bc)](_0x5d27b4,_0x2b54f1){const _0x37d1e4=_0x282c57;this['_viewPermissions'][_0x37d1e4(0x404)](Gr(_0x5d27b4,_0x2b54f1)),this[_0x37d1e4(0x233)](_0x5d27b4,Mr(_0x5d27b4,_0x2b54f1));}['getSnapshot'](){const _0x1f2985=_0x282c57;return{'bases':Object[_0x1f2985(0x1af)](this[_0x1f2985(0x53b)]),'tables':Object[_0x1f2985(0x1af)](this[_0x1f2985(0x383)]),'fields':Object[_0x1f2985(0x1af)](this[_0x1f2985(0x451)]),'records':Object[_0x1f2985(0x1af)](this[_0x1f2985(0x4bd)]),'views':Object[_0x1f2985(0x1af)](this['_viewPermissions'])};}[_0x282c57(0x2f8)](_0x485d53){const _0x53b013=_0x282c57;var _0x3d2092;return this[_0x53b013(0x462)](_0x485d53,[K(_0x485d53)])&&(((_0x3d2092=this[_0x53b013(0x383)][_0x53b013(0x268)](_0x485d53))==null?void 0x0:_0x3d2092[_0x53b013(0x301)])??!0x0);}[_0x282c57(0x462)](_0x4f3178,_0xc60168){const _0xb85114=_0x282c57;var _0x572ddb;let _0x416a60=this[_0xb85114(0x2ce)](_0x4f3178);return!_0x416a60||zr(this[_0xb85114(0x513)],_0x416a60,_0xc60168)&&(((_0x572ddb=this['_basePermissions'][_0xb85114(0x268)](_0x416a60))==null?void 0x0:_0x572ddb['edit'])??!0x0);}[_0x282c57(0x38c)](_0x7d0f85,_0x5526e1,_0x48f11f){const _0x42298d=_0x282c57;if(_0x48f11f===void 0x0)return;let _0x2a315e=this[_0x42298d(0x2ce)](_0x7d0f85);_0x2a315e&&Ir(this['_permissionService'],_0x2a315e,_0x5526e1,_0x133e41[_0x42298d(0x4a6)],_0x48f11f);}[_0x282c57(0x233)](_0x1cfafd,_0x5014d2){let _0x58fe92=this['_resolveBaseId'](_0x1cfafd);_0x58fe92&&Lr(this['_permissionService'],_0x58fe92,_0x5014d2,_0x133e41['Edit']);}[_0x282c57(0x2ce)](_0x508202){const _0x2e95d9=_0x282c57;var _0x19ffa3;let _0x58a331=this[_0x2e95d9(0x20c)][_0x2e95d9(0x2ad)](_0x508202,_0x335149[_0x2e95d9(0x370)]);return _0x58a331?_0x58a331[_0x2e95d9(0x1e4)]():(_0x19ffa3=this[_0x2e95d9(0x20c)][_0x2e95d9(0x1cd)](_0x335149[_0x2e95d9(0x370)])[_0x2e95d9(0x525)](_0x4ce445=>!!_0x4ce445['getSnapshot']()[_0x2e95d9(0x528)][_0x508202]))==null?void 0x0:_0x19ffa3[_0x2e95d9(0x1e4)]();}['_rememberTable'](_0x55dfaf){const _0x627f14=_0x282c57;let _0x46b91e=this[_0x627f14(0x2ce)](_0x55dfaf);_0x46b91e&&this[_0x627f14(0x414)][_0x627f14(0x246)](_0x55dfaf,_0x46b91e);}[_0x282c57(0x50b)](_0x5d7767){const _0x112c36=_0x282c57;this[_0x112c36(0x53b)]['delete'](_0x5d7767),this[_0x112c36(0x414)][_0x112c36(0x34b)]((_0x5c49fc,_0x1cd2b1)=>{const _0x50ab85=_0x112c36;_0x5c49fc===_0x5d7767&&(this[_0x50ab85(0x383)][_0x50ab85(0x404)](_0x1cd2b1),Hr(this[_0x50ab85(0x451)],_0x1cd2b1+'\x1f'),Hr(this[_0x50ab85(0x4bd)],_0x1cd2b1+'\x1f'),Hr(this[_0x50ab85(0x330)],_0x1cd2b1+'\x1f'),this[_0x50ab85(0x414)][_0x50ab85(0x404)](_0x1cd2b1));});}};Vr=X([Y(0x0,_0x39a8ae),Y(0x1,_0x54ce33)],Vr);function Hr(_0x198c26,_0x76f401){const _0x3ad8ff=_0x282c57;_0x198c26[_0x3ad8ff(0x34b)]((_0x5e3d6b,_0x5eb246)=>{const _0x6804f=_0x3ad8ff;_0x5eb246[_0x6804f(0x289)](_0x76f401)&&_0x198c26[_0x6804f(0x404)](_0x5eb246);});}function Ur(_0x50330c,_0x18b326){return _0x50330c+'\x1f'+_0x18b326;}function Wr(_0x384f88,_0x4610f2){return _0x384f88+'\x1f'+_0x4610f2;}function _0x332d(){const _0x4353a0=['_applier','[RecordLink]:\x20target\x20record\x20\x22','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','[BaseField]:\x20invalid\x20rating\x20value.','primaryFieldId','url','tableId','cycle','split','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','_canEdit','onlyLocal','[BaseCommandService]:\x20cannot\x20delete\x20record.','base-snapshot-v1','invalidateByOp','_scheduleSuperTableSync','max','_injector','_check','Gantt','major-','colId','deletePermissionPoint','_enqueueFormulaSync','_applyFormulaResult','version','_normalizeGalleryConfig','readonly','_projectionCache','_getStructureDirtyTableIds','h12','False','base.command.set-base-kanban-group-field','getUTCFullYear','view','deleteField','Delete','_viewRowsCacheKey','updatePermissionPoint','BaseProjection.filterAndSortRows','attachmentSet',',,,\x22B\x22','emitPermissionDenied','majorHeaders','_getAllTableIds','getAffectedRanges','periodComma','exceptions','subtreeHeightByRecordId','yyyy/mm/dd','endsWith','base.command.set-base-view-group','this-row','_getOrderedRecords','matchAll','base.mutation.apply-base-json1','#16a34a','MM-DD','_globalRevision','_getTablesToNormalize','_projectedViewRowsCache','_getCurrentUserId','lastIndex','BaseJson1.syncCellInvalidations','unitOtherData','greaterThanOrEqual','getItem','numfmt','remove','toPlainText','flat','base.command.service','_apply','strategies','frozenFieldCount','subType','cardSize','DESC','Edit','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','invertWithDoc','abs','type','length','false','UTC','repeat','IS_NOT','getTypeOfUnitDisposed$','diffValue','_replaceOptional','MultiSelect','_getSystemFieldValue','Unchecked','Currency','text','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','_normalizeCellValue','object','setHours','_cellInvalidations','_recordPermissions','CreatedBy','_materializeFormulaTableNames','base.command.create-base-record','Phone','base.command.set-base-view-field-visible','snapshot','Comment','_projectedRowsCache','BEFORE','medium','_projectedGroupsCache','working','lessThanOrEqual','BaseJson1.normalizeTables','filter','[RecordLink]:\x20field\x20config\x20is\x20invalid.','executeCommand','_rememberTable','resolvedOptions','sum','base.command.update-base-field','locale','bases.fieldConfig.linkPlaceholder','\x22\x20does\x20not\x20exist.','invalidGanttEndField','deepClone','[BaseCommandService]:\x20cannot\x20edit\x20field.','createdBy','regenerateViewIds','hostAnchorId','_formulaSyncQueue','exec','setFieldPermission','recordPatch','setSnapshot','target','canCreateRecord','tableName','getTypePlugin','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','Unsupported\x20Base\x20permission\x20action:\x20','base.command.update-base-view-conditional-color-rules','collaborators','BaseField','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','splice','query','filled','_createRecordOrderOp','_createNumberingAllocator','_baseSyncDisposables','getUTCDay','_setFormulaFieldCells','options','toLocaleString','328820CNWApW','fieldIndex','invalidateByCell','_assertFieldDefinition','views','deleteRecord','_syncSuperTables','children','base.viewType.gallery','disposeWithMe','_resolveGanttDateFieldId','getAllPermissionPoint','_initCommands','getSuperTableRegistrations','rowIndexById','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','pattern','localeCompare','record/','invalid-characters','quarter','_patchCachedProjectedRows','_clearUnit','config','invalidDateField','isNaN','Base\x20edit\x20permission\x20denied.','canDeleteField','day','_setAttachmentResources','_permissionService','_initDataSync','spacePeriod','syncUnit','getCurrentUnitOfType','_normalizeGanttDisplayColor','viewIndexes','dateMode','_formulaCalculationTriggerService','year','order','off','short','min','then','defaultValue','weekdays','exists','find','attachment-','_filterRows','tables','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.set-base-view-field-width','mark','_recordIds','small','_normalizeGanttConfig','_onCommandExecuted','params','count','UpdatedBy','workingDaysOnly','fieldOrder','rows','h24','base.command.create-base-child-record','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','createUpdateCellOp','getCapabilities','_basePermissions','_resolveKanbanCardFieldIds','base.command.update-base-kanban-config','169356PMhheC','createdAt','person','endDateFieldId','base.fieldType.','[BaseCommandService]:\x20cannot\x20create\x20record.','DeleteView','color','Number','thisMonth','recordNamePrefix','Kanban','showTodayLine','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','editCell','_initDependencies','values','decorate','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','add','thread-comment.mutation.','https:','_canUseFastSort','base.command.set-base-view-sort','attachmentSets','formula','812034gLTItf','useThousands','_resolveCardTitleFieldId','base.command.validate-formula','displayColor','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','ruleId','_commandService','pop','compress','spaceComma','hidden','Remote','[BaseCommandService]:\x20cannot\x20manage\x20view.','groups','index','Base\x20','Parent','_calendarEventColor','label','$1\x20','[BaseHierarchy]:\x20field\x20\x22','createSetRecordValuesOp','pluginName','isNot','base.command.update-base-cell','_groupConfigCacheSegment','view-','after','replace','HH:mm','policy','en-US','missingField','_groupCellInvalidations','_tableRevisions','BaseView','tableOrder','fromEntries','rootRecordIds','round','__all__','decimalPlaces','packageName','unitData','base.mutation.','searchTexts','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','recordIds','remote','[BaseFormula]:\x20table\x20\x22','UpdatedAt','_withModifiedSystemValues',':end','invalidGanttStartField','join','user','A\x20table\x20with\x20this\x20name\x20already\x20exists.','autoIncrement','maxDepth','fromPlainText','card','_capabilities','allowMultiple','beforeCommandExecuted','search','_hierarchyIndexCache','moveField','getAllUnitsForType','action','__tempBatchingUndoRedo','insertOp','_disposed','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','raw','done','_setViewFieldSetting','base-perf-','Link','base.command.move-base-view','abbreviation','optionSource','MUTATION','Invalid\x20object\x20permission\x20batch.','rules','IS_EMPTY','sort','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','records','_activeDirtyManagerService','updateCell','getUnitId','changed','embedId','[BaseCommandService]:\x20cannot\x20edit\x20table.','toPrimitive','error','ascend','MM/DD/YYYY','createBatchCreateRecordsOp','_resolveKanbanCoverFieldId','_getTable','test','afterFieldId','233048ZQfXWv','setViewGroup','_setCachedProjection','indexOf','getUTCDate','Numbering','relationRole','base.mutation.set-permission-rules','cell','createSuperTableReference','oldParentRecordId','base.command.delete-base-view','parentRecordId','BaseHierarchyError','NUMBER','-view-grid','SortedView','Redo','normalize','[BaseCommandService]:\x20invalid\x20cell\x20value.','RecordId','createTable','all','Copy','createCreateRecordOp','sortedView','setBaseName','_instanceService','\x22.\x20Allowed\x20operators:\x20','_createSystemFieldValuePatches','_normalizeCalendarConfig','isFinite','[BaseCommandService]:\x20field\x20\x22','createField','dependencyFieldId','_findKanbanGroupField','_groupProjectionFieldIds','clear','Cycle','General','canEditRecord','beforeFieldId','rowId','long','unknown','_kanbanGroupKeys','YYYY-MM-DD','base.command.set-base-range-values','_matchesGanttColorRule','clearBasePermission','objectId','getTypeOfUnitAdded$','base.command.update-base-field-description','unitId','deleteRecords','createUnit','setViewFieldWidth','_rowTransformCacheSegment','format','getPermissionPoint','[BaseViewRegistryService]:\x20view\x20type\x20\x22','before','limit','start','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','_isColorfulKanbanGroupField','_clearObjectEdit','_formulaCalculationSessionService','onCommandExecuted','\x20has\x20unsupported\x20date\x20mode\x20\x22','duplicateField','-record-','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','Date1900','STRING','defineProperty','canDeleteRecord','12kZXsSV','[RecordLink]:\x20display\x20field\x20\x22','Date','registerView','_dataSyncPrimaryController','createRecords','objectType','trigger','set','apply','end','[BasePerf]\x20','createView','base.command.batch-create-base-records','operand','trim','changes','_getViewRevision','updatedAt','undefined','fld-','isValid','field/','_filterSortFieldIds','userID','general','revision','base-range-values-v1','base.resource.service','constructor','has','groupFieldId','FieldId','fieldIds','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','custom','calendar','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','Status','option-','MissingParent','End\x20date','get','invalid','flatMap','[BaseField]:\x20invalid\x20checkbox\x20value.','currencySymbol','star','view/','[BaseCommandService]:\x20invalid\x20field\x20definition.','table','globalRevision','fieldSettings','_getKanbanConfiguredLanes','\x22\x20is\x20not\x20registered.','BaseProjection.projectTableRows','_buildKanban','rowIndex','_resolveGalleryCoverFieldId','#BFDBFE','dispose','resources','codePointAt','NumberFormat','manual','MaxDepth','leftPaneCollapsed','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','startDateFieldId','nodes','getCurrentUser','leftPaneWidth','size','slice','_formulaService','startsWith','childrenByParentId','FORCE_STRING','getSnapshot','selectField','setTablePermission','colIndex','description','initializeUnit','direction','getStructuredDependencies','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','_findCalendarDateFieldId','setViewFilter','columns','gridViewId','showFieldNames','_bumpTableRevision','BaseTable','base.projection.service','pickerFieldIds','Failed\x20to\x20create\x20update\x20cell\x20operation:','cellRevision','base.command.ensure-base-temporal-view-date-fields','_buildGantt','decimal','parse','call','Person','getFullYear','_materializeGroups','_buildGrid','colorFieldId','tryMaterializeSnapshot','_resolveKanbanGroupFieldId','base.command.create-base-field','getUnit','registerCtorForType','setViewFieldOrder','updateField','_projectRows','_cellRevisions','INIT','usableAsCalendarDate','finally','coverFieldId','#,##0','displayText','past7','_buildCalendar','ena','contains','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','_getJson1DirtyData','[BaseHierarchy]:\x20','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','invalidReasonByRecordId','RecordLink','_factory','Calendar','allowDangling','renameView','[BaseFormula]:\x20table\x20does\x20not\x20exist.','__UNIVER_BASE_PERF__','_getCellRevision','Progress','progressFieldId','Start\x20date','reason','_resolveBaseId','[BaseProjectionService]:\x20missing\x20view\x20\x22','BaseRecord','_createNumberingFieldValuePatches','_isAllowedKanbanGroupField','[BaseCommandService]:\x20cannot\x20delete\x20field.','base-perf','getUTCMonth','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','next7','Choose\x20another\x20name.','field','data','orderedRecordIds','https://','Gallery','#FDE68A','GREATER_THAN','getCurrentUserId','[BaseField]:\x20invalid\x20person\x20value.','bases.config','delete-view','average','syncExecuteCommand','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','applyOp','selfParent','Name','toString','_registeredSuperTableNames','info','clearTablePermission','true','getDay','row','Working\x20day','greaterThan','from','name','canDeleteTable','_views','[BaseField]:\x20invalid\x20date\x20value.','_canEditTable','protocol','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stringify','registerSyncingMutations','BOOLEAN','SingleSelect','Checked','every','edit','Add','[BaseCommandService]:\x20cannot\x20edit\x20record.','fromChangeset','_syncBaseUnit','subscribe','operator','getMonth','map','base.viewType.gantt','setRangeValues','Use\x2031\x20characters\x20or\x20fewer.','_isGanttDateField','validateFormula','large','save','addPermissionPoint','_isAllDayCalendarEvent','createDefaultValue','afterViewId','usableAsGanttStart','cardLayout','symbol','base.command.delete-base-field','month','empty','parentFieldName','__base_hierarchy_parent__','_T_','_projectHierarchyGroups','attachment','kanban','mode','write','_initialize','redo','repairViewConfig','validate','updateRecordOrder','doing','#3b82f6','_configService','DD/MM/YYYY','conjunction','createRecord','Doing','Set','_viewPermissions','column','tableRevision','pushUndoRedo','keys','_createNumberingAllocators','title','_viewRevisionKey','[BaseField]:\x20invalid\x20multi-value\x20reference.','unshift','invalidateByField','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','IBaseCellData.ensureTableCellLayout','_getHierarchyIndex','renameTable','scale','col','SelfParent','_getCachedProjection','cellData','9WlmfpC','patches','base.command.update-base-view-config','setRecordValues','_projectGroups','BASE_OBJECT_PERMISSION_PLUGIN','Text','forEach','16240VAvtTc','key','findIndex','base.command.set-permissions','timeZone','#14b8a6','_registerUnitPermissionPoints','setViewFieldVisible','usableAsGanttEnd','owner','childType','base.viewType.grid','[BaseCommandService]:\x20cannot\x20edit\x20cell.','group','bases-exchange-client.operation.export-base-by-format','_initRegistries','prototype','CreatedAt','invertOp','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','moveView','width','Yes','resolve','1393mwGjDF','setRecordPermission','_kanbanLaneColor','COLUMN','95BGxynL','REMOTE_BASES_PLUGIN','3777170MxIUVD','setViewSort','markResultApplied','_projectTableRows','week','_resolveGalleryCardFieldIds','UNIVER_BASE','base.command.set-base-view-field-order','level','value','too-long','valid','source','createViewId','workingDays','Checkbox','base.command.set-base-view-filter','lessThan','columnSettings','getInstance','336KjuOuI','create-view','_deleteAttachmentResources','push','date','_tablePermissions','percent','http:','boolean','fieldId','descend','number','orderKey','invalidField','_setObjectEdit','conditional','members','baseRows','_cacheKey','commaPeriod','Attachment','updateViewConfig','_resolveCalendarDateFieldId','_fieldRegistry','_isKanbanGroupField','createRegExpFromSafeFragment','_getTableRevision','base.command.batch-delete-base-records','parentByRecordId','includeTime','kind','canManageView','_removeSuperTables','register','isInteger','setBasePermission','missingRecord','BaseCommand.createBatchCreateRecordsOp','path','viewOrder','record','reduce','Clear','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','\x20must\x20be\x20an\x20object.','formulaName','_createRecordWithDefaults','compose','usableAsCardCover','Group','replaceOp','base.view-registry.service','thread-comment.command.','normal','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','\x20has\x20unsupported\x20target\x20\x22','YYYY/MM/DD','Rating','getTime','function','attachments','lastWeek','clearViewPermission','renameFormulaUnitReferences','Grid','base.command.change-base-field-type','gantt','href','True','\x22\x20is\x20referenced\x20by\x20','_cellInvalidationsTouchFields','clearRecordPermission','BaseProjection.projectGroups',',,\x22M\x22','conditionalColoring','Empty','toLowerCase','112792BkKsln','setRule','_runtimeContext','Export','base.command.duplicate-base-field','canEditField','past30','_sortRows','BaseProjection.getProjection','_isAllDayGanttDateRange','isArray','Base','compare','conditions','local','subtreeEndIndex','base.command.create-base-view','timeslotSize','depth','bases.fieldConfig.textPlaceholder','includes','createCreateFieldOp','today','forValue','string','BaseProjection.materializeTableRows','targetTableId','_buildGallery','canCreateField','exact','[BaseField]:\x20invalid\x20email\x20value.','multiple','_isCalendarDateField','depthByRecordId','focusUnit','_deleteRecordsBaseOp','_isNonEmptyCellValue','measure','MMM\x20D,\x20YYYY','univer.basePerf','setViewPermission','registerCommand','none','_title','editable','_fastSortRows','h:mm\x20a','deleteView','primaryFieldName','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','_scheduledSuperTableSyncs','code','IS_NOT_EMPTY','setConfig','COMMAND','at\x20index\x20','canEditTable','delete','unsubscribe','unique','base.command.move-base-hierarchy-record','facade','thisWeek','_patchProjectedRowsForCellInvalidations','removeOp','_kanbanLaneTitle','recordId','BaseProjection.projectRows',':start','undo','createDeleteRecordsUndoOp','score','recordOrder','_tableBaseIds','getDependencies','getAll','createBase','base.command.set-base-record-values','unitWidth','\x20has\x20unsupported\x20operator\x20\x22','displayFieldId','_applyingFormulaResults','entries','Formula','basePerf','_projectFields','_config','AFTER','BaseJson1.cloneForOp','Table','fieldName','BaseDashboard','result','_viewRevisions','getAllBases','status','now','blue','[BaseCommandService]:\x20cannot\x20create\x20table.','_univerInstanceService','canCreateTable','titleFieldId','projection','_plugins','isEmpty','updatedBy','separatorStyle','some','formatToParts','invalidateByView','registerRuleModel','base.field-registry.service','[BaseField]:\x20invalid\x20progress\x20value.','system','hierarchy','duplicateRecord','[DeleteBaseTableCommand]:\x20table\x20\x22','_getAllBaseDependencyTreeCacheMap','lastIndexOf','base.mutation.set-permission-rule','Table\x20name\x20is\x20required.','[BaseCommandService]:\x20cannot\x20delete\x20table.','hasOwnProperty','descendPath','deleteTable','table/','_ganttBarColor','_toDirtyRangePatch','_executeSuperTableMutationWhileActive','thumbnail','viewId','next30','changeFieldType','1.0.3','_fieldPermissions','tomorrow','fields','beforeViewId','base.command.delete-base-table','canEditCell','#BBF7D0'];_0x332d=function(){return _0x4353a0;};return _0x332d();}function Gr(_0xc80ccb,_0x5561cf){return _0xc80ccb+'\x1f'+_0x5561cf;}const Kr=_0x2cfc4b(_0x282c57(0x49f));let qr=class{constructor(_0xce08e0,_0x1be216=Jr(),_0x5947d5={}){const _0x3e9337=_0x282c57;this['_permissionService']=_0xce08e0,this['_fieldRegistry']=_0x1be216,this[_0x3e9337(0x3cd)]=_0x5947d5,G(this,'_factory',new W()),G(this,'_applier',new z());}[_0x282c57(0x206)](_0x37527e,_0x2360ed,_0x5b62d9){const _0x17f544=_0x282c57;if(!this[_0x17f544(0x513)][_0x17f544(0x42f)](_0x37527e[_0x17f544(0x1e4)]()))throw Error(_0x17f544(0x42d));_0x306a77(_0x2360ed),this[_0x17f544(0x4a0)](_0x37527e,this[_0x17f544(0x2c3)]['createTable'](_0x37527e[_0x17f544(0x28c)](),_0x2360ed,_0x5b62d9));}[_0x282c57(0x33e)](_0x45ed39,_0x1b978a,_0x3476c2){const _0x32c5c7=_0x282c57;if(!this[_0x32c5c7(0x513)][_0x32c5c7(0x403)](_0x1b978a))throw Error(_0x32c5c7(0x1e7));this[_0x32c5c7(0x4a0)](_0x45ed39,this[_0x32c5c7(0x2c3)]['renameTable'](_0x45ed39[_0x32c5c7(0x28c)](),_0x1b978a,_0x3476c2));}[_0x282c57(0x447)](_0x3f5e55,_0x2b87c8){const _0x1ca32e=_0x282c57;if(!this[_0x1ca32e(0x513)]['canDeleteTable'](_0x2b87c8))throw Error(_0x1ca32e(0x444));let _0x5dcd65=He(_0x3f5e55[_0x1ca32e(0x28c)](),_0x2b87c8);if(_0x5dcd65[_0x1ca32e(0x4ab)]>0x0)throw Error(_0x1ca32e(0x2bd)+_0x5dcd65[_0x1ca32e(0x309)](_0x1f5864=>_0x1f5864['tableId']+'.'+_0x1f5864[_0x1ca32e(0x387)])[_0x1ca32e(0x1c0)](',\x20')+').');this[_0x1ca32e(0x4a0)](_0x3f5e55,this['_factory']['deleteTable'](_0x3f5e55[_0x1ca32e(0x28c)](),_0x2b87c8));}['updateCell'](_0x88c2a5,_0x5a8041,_0x315ca2,_0x24d8ec,_0x43ff37){const _0x48352e=_0x282c57;this[_0x48352e(0x4a0)](_0x88c2a5,this[_0x48352e(0x539)](_0x88c2a5,_0x5a8041,_0x315ca2,_0x24d8ec,_0x43ff37));}[_0x282c57(0x347)](_0xdd50d9,_0x1e72c1,_0x3a2437){const _0xdf4e63=_0x282c57;this[_0xdf4e63(0x4a0)](_0xdd50d9,this[_0xdf4e63(0x19f)](_0xdd50d9,_0x1e72c1,_0x3a2437));}[_0x282c57(0x32d)](_0x586c5b,_0x20fea4,_0x485ee6){const _0x23d175=_0x282c57;this[_0x23d175(0x4a0)](_0x586c5b,this[_0x23d175(0x209)](_0x586c5b,_0x20fea4,_0x485ee6));}[_0x282c57(0x539)](_0x510ff7,_0x4d02e3,_0x1314cf,_0x458295,_0x2f1adc){const _0xeeca9=_0x282c57;let _0x23392e=_0x510ff7[_0xeeca9(0x28c)](),_0x56436d=this['_normalizeCellValue'](_0x23392e,_0x4d02e3,_0x1314cf,_0x458295,_0x2f1adc),_0x37ca78=this[_0xeeca9(0x1bd)](_0x23392e,_0x4d02e3,_0x1314cf,{[_0x458295]:_0x56436d});return this[_0xeeca9(0x2c3)][_0xeeca9(0x347)](_0x23392e,_0x4d02e3,[_0x37ca78]);}[_0x282c57(0x19f)](_0x5413e2,_0x5c2472,_0x45aae4){const _0x273094=_0x282c57;let _0x26e7f1=_0x5413e2[_0x273094(0x28c)](),_0x834f27=_0x45aae4[_0x273094(0x309)](_0x573d68=>this['_withModifiedSystemValues'](_0x26e7f1,_0x5c2472,_0x573d68[_0x273094(0x40d)],{...Object[_0x273094(0x1af)](Object[_0x273094(0x41d)](_0x573d68[_0x273094(0x54e)])[_0x273094(0x309)](([_0x220d9d,_0x24efa0])=>[_0x220d9d,this[_0x273094(0x4b9)](_0x26e7f1,_0x5c2472,_0x573d68[_0x273094(0x40d)],_0x220d9d,_0x24efa0)]))}));return this[_0x273094(0x2c3)]['setRecordValues'](_0x26e7f1,_0x5c2472,_0x834f27);}[_0x282c57(0x209)](_0x3a7b03,_0x52aa96,_0x234eb4){const _0x28db37=_0x282c57;if(!this[_0x28db37(0x513)][_0x28db37(0x4e2)](_0x52aa96))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x376e3b=_0x3a7b03[_0x28db37(0x28c)](),_0x17ef12=this[_0x28db37(0x335)](_0x376e3b['tables'][_0x52aa96]);return this['_factory']['createRecord'](_0x376e3b,_0x52aa96,this[_0x28db37(0x3ac)](_0x376e3b,_0x52aa96,_0x234eb4,_0x17ef12));}[_0x282c57(0x1ec)](_0x2f28ad,_0x5b706f,_0x3917cc){const _0x36130b=_0x282c57;if(!this[_0x36130b(0x513)][_0x36130b(0x4e2)](_0x5b706f))throw Error(_0x36130b(0x543));let _0x369cfd=_0x2f28ad[_0x36130b(0x28c)]();return I(_0x36130b(0x3a3),()=>{const _0x29e0cc=_0x36130b;let _0x3d2ed7=this[_0x29e0cc(0x335)](_0x369cfd['tables'][_0x5b706f]);return this[_0x29e0cc(0x2c3)][_0x29e0cc(0x243)](_0x369cfd,_0x5b706f,_0x3917cc['map'](_0x7181bd=>this[_0x29e0cc(0x3ac)](_0x369cfd,_0x5b706f,_0x7181bd,_0x3d2ed7)));},{'existingRecords':Object[_0x36130b(0x334)](_0x369cfd['tables'][_0x5b706f][_0x36130b(0x1e1)])[_0x36130b(0x4ab)],'records':_0x3917cc['length']});}[_0x282c57(0x3e0)](_0x52f9fc,_0x6a1a68,_0x497f1b,_0x32b48e,_0x103ee2){const _0x505359=_0x282c57;if(!this[_0x505359(0x513)][_0x505359(0x3e7)](_0x6a1a68))throw Error('[BaseCommandService]:\x20cannot\x20create\x20field.');let _0x31f378=_0x52f9fc[_0x505359(0x28c)]();if(this[_0x505359(0x4f8)](_0x31f378,_0x497f1b),_0x32b48e===0x0)throw Error(_0x505359(0x260));let _0x4443e2=this['_factory'][_0x505359(0x212)](_0x31f378,_0x6a1a68,{'field':_0x497f1b,'index':_0x32b48e,'viewIndexes':_0x103ee2}),_0x20ec20=this[_0x505359(0x20e)](_0x31f378,_0x6a1a68,_0x497f1b);if(!_0x20ec20['length'])return _0x4443e2;let _0x103daa=this[_0x505359(0x458)]['applyOp'](_0x31f378,_0x4443e2);return R([_0x4443e2,this[_0x505359(0x2c3)][_0x505359(0x347)](_0x103daa,_0x6a1a68,_0x20ec20)]);}[_0x282c57(0x4fa)](_0x494dad,_0x2acc0d,_0x55c45f){const _0x5e9c59=_0x282c57;if(!this['_permissionService'][_0x5e9c59(0x23d)](_0x2acc0d,_0x55c45f))throw Error(_0x5e9c59(0x464));this[_0x5e9c59(0x4a0)](_0x494dad,this[_0x5e9c59(0x2c3)][_0x5e9c59(0x4fa)](_0x494dad['getSnapshot'](),_0x2acc0d,_0x55c45f));}['duplicateRecord'](_0x2c45a2,_0x124455,_0xc28c80,_0x2a23b2){const _0x4e0c5a=_0x282c57;if(!this[_0x4e0c5a(0x513)][_0x4e0c5a(0x4e2)](_0x124455))throw Error(_0x4e0c5a(0x543));this[_0x4e0c5a(0x4a0)](_0x2c45a2,this['_factory'][_0x4e0c5a(0x43e)](_0x2c45a2['getSnapshot'](),_0x124455,_0xc28c80,{..._0x2a23b2,'values':{..._0x2a23b2[_0x4e0c5a(0x54e)],[_0x1a2ecc]:_0x2a23b2['id']}}));}['updateRecordOrder'](_0x392921,_0x3c2cfb,_0x3b5f38,_0x30a763){const _0x1a4ce9=_0x282c57;if(!this[_0x1a4ce9(0x513)][_0x1a4ce9(0x219)](_0x3c2cfb,_0x3b5f38))throw Error(_0x1a4ce9(0x303));this[_0x1a4ce9(0x4a0)](_0x392921,this[_0x1a4ce9(0x2c3)]['updateRecordOrder'](_0x392921[_0x1a4ce9(0x28c)](),_0x3c2cfb,_0x3b5f38,_0x30a763));}['createField'](_0x315a52,_0x50e739,_0x26f112,_0x1d199c,_0x48fc5a){const _0x45e2ca=_0x282c57;this[_0x45e2ca(0x4a0)](_0x315a52,this[_0x45e2ca(0x3e0)](_0x315a52,_0x50e739,_0x26f112,_0x1d199c,_0x48fc5a));}[_0x282c57(0x2b0)](_0x29517c,_0x22beaa,_0x165701,_0x28b24e){const _0x2dd99e=_0x282c57;var _0x128671;if(!this[_0x2dd99e(0x513)][_0x2dd99e(0x3d0)](_0x22beaa,_0x165701))throw Error(_0x2dd99e(0x4d8));let _0x267355=_0x29517c[_0x2dd99e(0x28c)](),_0x4beb71=(_0x128671=_0x267355[_0x2dd99e(0x528)][_0x22beaa])==null?void 0x0:_0x128671[_0x2dd99e(0x453)][_0x165701];if(!_0x4beb71||_0x165701===_0x1a2ecc)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0x2dd99e(0x4f8)](_0x267355,{..._0x4beb71,..._0x28b24e}),this[_0x2dd99e(0x4a0)](_0x29517c,this[_0x2dd99e(0x2c3)][_0x2dd99e(0x2b0)](_0x267355,_0x22beaa,_0x165701,_0x28b24e));}[_0x282c57(0x44f)](_0x5f4959,_0x3f72fa,_0x14479b,_0x7f246d){const _0x288051=_0x282c57;var _0x2d3364;if(!this[_0x288051(0x513)][_0x288051(0x3d0)](_0x3f72fa,_0x14479b))throw Error(_0x288051(0x4d8));let _0x11d88d=_0x5f4959[_0x288051(0x28c)](),_0x1bbd50=(_0x2d3364=_0x11d88d[_0x288051(0x528)][_0x3f72fa])==null?void 0x0:_0x2d3364[_0x288051(0x453)][_0x14479b];if(!_0x1bbd50||_0x14479b===_0x1a2ecc)throw Error(_0x288051(0x461));this[_0x288051(0x4f8)](_0x11d88d,{..._0x1bbd50,..._0x7f246d}),this['_apply'](_0x5f4959,this[_0x288051(0x2c3)][_0x288051(0x44f)](_0x11d88d,_0x3f72fa,_0x14479b,_0x7f246d));}[_0x282c57(0x47b)](_0x42f4f7,_0x355eca,_0x4b1123){const _0x5ec6f7=_0x282c57;var _0x282d7c;if(((_0x282d7c=_0x42f4f7[_0x5ec6f7(0x28c)]()[_0x5ec6f7(0x528)][_0x355eca])==null?void 0x0:_0x282d7c['primaryFieldId'])===_0x4b1123||_0x4b1123===_0x1a2ecc)throw Error(_0x5ec6f7(0x4b8));if(!this[_0x5ec6f7(0x513)]['canDeleteField'](_0x355eca,_0x4b1123))throw Error(_0x5ec6f7(0x2d3));this[_0x5ec6f7(0x4a0)](_0x42f4f7,this[_0x5ec6f7(0x2c3)][_0x5ec6f7(0x47b)](_0x42f4f7[_0x5ec6f7(0x28c)](),_0x355eca,_0x4b1123));}[_0x282c57(0x1cc)](_0x3eeada,_0x5ba279,_0x600a2e,_0x1539da){const _0x7f82fb=_0x282c57;if(!this[_0x7f82fb(0x513)][_0x7f82fb(0x3d0)](_0x5ba279,_0x600a2e))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x600a2e===_0x1a2ecc||_0x1539da['beforeFieldId']===_0x1a2ecc)throw Error(_0x7f82fb(0x33b));this[_0x7f82fb(0x4a0)](_0x3eeada,this[_0x7f82fb(0x2c3)][_0x7f82fb(0x1cc)](_0x3eeada[_0x7f82fb(0x28c)](),_0x5ba279,_0x600a2e,_0x1539da));}[_0x282c57(0x24a)](_0x3ad2b1,_0x5bfba3,_0x41be92,_0x436ad3){const _0x169670=_0x282c57;if(!this[_0x169670(0x513)]['canManageView'](_0x5bfba3,_0x41be92['id']))throw Error(_0x169670(0x196));this[_0x169670(0x4a0)](_0x3ad2b1,this['_factory'][_0x169670(0x24a)](_0x3ad2b1[_0x169670(0x28c)](),_0x5bfba3,_0x41be92,_0x436ad3));}[_0x282c57(0x2c6)](_0xdb4fb2,_0x4f9b52,_0xa8d336,_0x3fe6bf){const _0x5096ec=_0x282c57;if(!this['_permissionService'][_0x5096ec(0x39d)](_0x4f9b52,_0xa8d336))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5096ec(0x4a0)](_0xdb4fb2,this['_factory'][_0x5096ec(0x2c6)](_0xdb4fb2['getSnapshot'](),_0x4f9b52,_0xa8d336,_0x3fe6bf));}[_0x282c57(0x3fa)](_0x253087,_0x29a873,_0x4e5515){const _0x564011=_0x282c57;if(!this[_0x564011(0x513)]['canManageView'](_0x29a873,_0x4e5515))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x564011(0x4a0)](_0x253087,this[_0x564011(0x2c3)][_0x564011(0x3fa)](_0x253087[_0x564011(0x28c)](),_0x29a873,_0x4e5515));}[_0x282c57(0x360)](_0x37e853,_0xef3fd3,_0x413186,_0x1f6475){const _0x220b49=_0x282c57;if(!this['_permissionService'][_0x220b49(0x39d)](_0xef3fd3,_0x413186))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0x37e853,this[_0x220b49(0x2c3)][_0x220b49(0x360)](_0x37e853['getSnapshot'](),_0xef3fd3,_0x413186,_0x1f6475));}[_0x282c57(0x393)](_0x3aa537,_0x525317,_0xc90519,_0x5917bb){const _0x1599ba=_0x282c57;if(!this[_0x1599ba(0x513)][_0x1599ba(0x39d)](_0x525317,_0xc90519))throw Error(_0x1599ba(0x196));this[_0x1599ba(0x4a0)](_0x3aa537,this[_0x1599ba(0x2c3)][_0x1599ba(0x393)](_0x3aa537[_0x1599ba(0x28c)](),_0x525317,_0xc90519,_0x5917bb));}[_0x282c57(0x296)](_0xc2195,_0x943bb,_0x2d25eb,_0x37d672){const _0x3ff4da=_0x282c57;if(!this['_permissionService']['canManageView'](_0x943bb,_0x2d25eb))throw Error(_0x3ff4da(0x196));this[_0x3ff4da(0x4a0)](_0xc2195,this[_0x3ff4da(0x2c3)][_0x3ff4da(0x296)](_0xc2195[_0x3ff4da(0x28c)](),_0x943bb,_0x2d25eb,_0x37d672));}[_0x282c57(0x36b)](_0x2224fd,_0x29a9e7,_0x22b10c,_0x3598a9){const _0xb41ec=_0x282c57;if(!this['_permissionService'][_0xb41ec(0x39d)](_0x29a9e7,_0x22b10c))throw Error(_0xb41ec(0x196));this[_0xb41ec(0x4a0)](_0x2224fd,this['_factory']['setViewSort'](_0x2224fd[_0xb41ec(0x28c)](),_0x29a9e7,_0x22b10c,_0x3598a9));}['setViewGroup'](_0x26a462,_0x1f916a,_0x10ac01,_0x3a56b2){const _0x77538c=_0x282c57;if(!this['_permissionService'][_0x77538c(0x39d)](_0x1f916a,_0x10ac01))throw Error(_0x77538c(0x196));this[_0x77538c(0x4a0)](_0x26a462,this['_factory'][_0x77538c(0x1f2)](_0x26a462[_0x77538c(0x28c)](),_0x1f916a,_0x10ac01,_0x3a56b2));}[_0x282c57(0x353)](_0x2183eb,_0x53227b,_0x3b9091,_0x248d5c,_0x5b6346){const _0x36ec24=_0x282c57;if(!this[_0x36ec24(0x513)][_0x36ec24(0x39d)](_0x53227b,_0x3b9091))throw Error(_0x36ec24(0x196));this[_0x36ec24(0x4a0)](_0x2183eb,this['_factory']['setViewFieldVisible'](_0x2183eb['getSnapshot'](),_0x53227b,_0x3b9091,_0x248d5c,_0x5b6346));}['setViewFieldWidth'](_0xa1a263,_0x4e9e05,_0x16b0e,_0x3bfb13,_0x77c1cd){const _0x415f26=_0x282c57;if(!this['_permissionService'][_0x415f26(0x39d)](_0x4e9e05,_0x16b0e))throw Error(_0x415f26(0x196));this[_0x415f26(0x4a0)](_0xa1a263,this['_factory'][_0x415f26(0x229)](_0xa1a263['getSnapshot'](),_0x4e9e05,_0x16b0e,_0x3bfb13,_0x77c1cd));}[_0x282c57(0x2af)](_0x207f92,_0x2153ed,_0xcf1a51,_0x900ed7,_0x45d480){const _0x4e3b07=_0x282c57;if(!this[_0x4e3b07(0x513)][_0x4e3b07(0x39d)](_0x2153ed,_0xcf1a51))throw Error(_0x4e3b07(0x196));this[_0x4e3b07(0x4a0)](_0x207f92,this[_0x4e3b07(0x2c3)][_0x4e3b07(0x2af)](_0x207f92[_0x4e3b07(0x28c)](),_0x2153ed,_0xcf1a51,_0x900ed7,_0x45d480));}[_0x282c57(0x4a0)](_0x4701aa,_0xd91409){const _0x14b3ef=_0x282c57;let _0x2d2722=_0x4701aa[_0x14b3ef(0x28c)]();_0x4701aa[_0x14b3ef(0x4e0)](this[_0x14b3ef(0x458)][_0x14b3ef(0x2e7)](_0x2d2722,_0xd91409));}[_0x282c57(0x3ac)](_0x27138b,_0x367038,_0x39df29,_0x5503ce=this[_0x282c57(0x335)](_0x27138b[_0x282c57(0x528)][_0x367038])){const _0x403b5b=_0x282c57;let _0x2e5361=_0x27138b['tables'][_0x367038],_0x2c66f6=_0x39df29['createdBy']??_0x39df29[_0x403b5b(0x434)]??this[_0x403b5b(0x495)](),_0x380fb6={..._0x39df29,'createdBy':_0x39df29[_0x403b5b(0x4d9)]??_0x2c66f6,'updatedBy':_0x39df29[_0x403b5b(0x434)]??_0x2c66f6,'values':{..._0x39df29['values']}};return _0x380fb6['values'][_0x1a2ecc]=_0x380fb6['id'],_0x2e5361[_0x403b5b(0x534)][_0x403b5b(0x34b)](_0x5991d7=>{const _0x32b3b8=_0x403b5b;let _0x436f92=_0x2e5361[_0x32b3b8(0x453)][_0x5991d7];if(_0x436f92&&_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]===void 0x0)switch(_0x436f92[_0x32b3b8(0x4aa)]){case _0x239099[_0x32b3b8(0x1f6)]:var _0x5c91e3;_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]=((_0x5c91e3=_0x5503ce[_0x32b3b8(0x268)](_0x5991d7))==null?void 0x0:_0x5c91e3())??this['_createNumberingAllocator'](_0x2e5361,_0x5991d7)();break;case _0x239099['CreatedBy']:_0x380fb6[_0x32b3b8(0x4d9)]&&(_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]=_0x380fb6[_0x32b3b8(0x4d9)]);break;case _0x239099['UpdatedBy']:_0x380fb6[_0x32b3b8(0x434)]&&(_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]=_0x380fb6[_0x32b3b8(0x434)]);break;case _0x239099[_0x32b3b8(0x35d)]:_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]=B(_0x380fb6[_0x32b3b8(0x53f)]);break;case _0x239099[_0x32b3b8(0x1bc)]:_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]=B(_0x380fb6[_0x32b3b8(0x250)]);break;default:{let _0x5bf1db=_0x436f92[_0x32b3b8(0x522)];_0x5bf1db!=null&&_0x5bf1db!==''&&!(Array[_0x32b3b8(0x3d5)](_0x5bf1db)&&_0x5bf1db[_0x32b3b8(0x4ab)]===0x0)&&(_0x380fb6[_0x32b3b8(0x54e)][_0x5991d7]=_0x5bf1db);}}}),_0x380fb6;}[_0x282c57(0x1bd)](_0x5c571c,_0x561e78,_0x321d2e,_0x325d06){const _0x3d89dd=_0x282c57;var _0x143430,_0x2c8fc4;let _0x412776=_0x5c571c['tables'][_0x561e78],_0x22db23=((_0x143430=(_0x2c8fc4=this[_0x3d89dd(0x3cd)])[_0x3d89dd(0x42b)])==null?void 0x0:_0x143430[_0x3d89dd(0x2a4)](_0x2c8fc4))??Date[_0x3d89dd(0x42b)](),_0x23bbc7=this[_0x3d89dd(0x495)](),_0x2a74d4={..._0x325d06};return _0x412776[_0x3d89dd(0x534)][_0x3d89dd(0x34b)](_0x4f75e6=>{const _0x235717=_0x3d89dd;let _0x485a29=_0x412776[_0x235717(0x453)][_0x4f75e6];_0x485a29&&(_0x485a29[_0x235717(0x4aa)]===_0x239099[_0x235717(0x1bc)]&&(_0x2a74d4[_0x4f75e6]=B(_0x22db23)),_0x485a29[_0x235717(0x4aa)]===_0x239099[_0x235717(0x532)]&&_0x23bbc7&&(_0x2a74d4[_0x4f75e6]=_0x23bbc7));}),{'recordId':_0x321d2e,'values':_0x2a74d4,'recordPatch':{'updatedAt':_0x22db23,..._0x23bbc7?{'updatedBy':_0x23bbc7}:{}}};}[_0x282c57(0x20e)](_0x49507e,_0x1fedc0,_0x20a347){const _0x3034aa=_0x282c57;let _0x3b7a62=_0x49507e['tables'][_0x1fedc0];return!_0x3b7a62||!Yr(_0x20a347)?[]:_0x20a347[_0x3034aa(0x4aa)]===_0x239099['Numbering']?this[_0x3034aa(0x2d1)](_0x3b7a62,_0x20a347['id']):Object['values'](_0x3b7a62[_0x3034aa(0x1e1)])['flatMap'](_0x53843d=>{const _0x55e77b=_0x3034aa;let _0x5395fc=this[_0x55e77b(0x4b4)](_0x20a347,_0x53843d);return _0x5395fc===void 0x0?[]:[{'recordId':_0x53843d['id'],'values':{[_0x20a347['id']]:_0x5395fc}}];});}['_getSystemFieldValue'](_0x3b90f8,_0x2e2eab){const _0x3b16cf=_0x282c57;switch(_0x3b90f8['type']){case _0x239099['CreatedBy']:return _0x2e2eab[_0x3b16cf(0x4d9)]??this[_0x3b16cf(0x495)]();case _0x239099['UpdatedBy']:return _0x2e2eab[_0x3b16cf(0x434)]??this[_0x3b16cf(0x495)]();case _0x239099[_0x3b16cf(0x35d)]:return B(_0x2e2eab[_0x3b16cf(0x53f)]??Date['now']());case _0x239099[_0x3b16cf(0x1bc)]:return B(_0x2e2eab[_0x3b16cf(0x250)]??Date[_0x3b16cf(0x42b)]());default:return;}}[_0x282c57(0x335)](_0x50f2de){const _0x475816=_0x282c57;let _0x3901a2=new Map();return _0x50f2de&&_0x50f2de[_0x475816(0x534)][_0x475816(0x34b)](_0x11679d=>{const _0x35c07c=_0x475816;let _0x168512=_0x50f2de[_0x35c07c(0x453)][_0x11679d];(_0x168512==null?void 0x0:_0x168512[_0x35c07c(0x4aa)])===_0x239099[_0x35c07c(0x1f6)]&&_0x3901a2['set'](_0x11679d,this[_0x35c07c(0x4ef)](_0x50f2de,_0x11679d));}),_0x3901a2;}[_0x282c57(0x4ef)](_0x32121c,_0x3f488d){const _0x3a9dd0=_0x282c57;let _0x59a1d6=Object[_0x3a9dd0(0x54e)](_0x32121c['records'])[_0x3a9dd0(0x3a7)]((_0x24b01e,_0x4b0a60)=>{const _0x210469=_0x3a9dd0;let _0x21c981=Number(_0x4b0a60[_0x210469(0x54e)][_0x3f488d]);return Number[_0x210469(0x210)](_0x21c981)?Math['max'](_0x24b01e,_0x21c981):_0x24b01e;},0x0);return()=>String(++_0x59a1d6);}[_0x282c57(0x2d1)](_0x544e1b,_0x431cbb){const _0x285662=_0x282c57;let _0x295f03=this[_0x285662(0x48d)](_0x544e1b),_0x2c4e5c=this['_createNumberingAllocator'](_0x544e1b,_0x431cbb);return _0x295f03['flatMap'](_0x5a9965=>this[_0x285662(0x3ef)](_0x5a9965[_0x285662(0x54e)][_0x431cbb])?[]:[{'recordId':_0x5a9965['id'],'values':{[_0x431cbb]:_0x2c4e5c()}}]);}[_0x282c57(0x48d)](_0x2d5cf4){const _0x58667b=_0x282c57;var _0x37da83;let _0x182a84=Object['values'](_0x2d5cf4['records']),_0x331efe=new Map(_0x182a84['map'](_0x371408=>[_0x371408['id'],_0x371408])),_0x59858d=[],_0x25d906=new Set();(_0x37da83=_0x2d5cf4[_0x58667b(0x413)])==null||_0x37da83[_0x58667b(0x34b)](_0x386a77=>{const _0x3a8bee=_0x58667b;let _0xf788a5=_0x331efe[_0x3a8bee(0x268)](_0x386a77);_0xf788a5&&(_0x59858d[_0x3a8bee(0x381)](_0xf788a5),_0x25d906[_0x3a8bee(0x551)](_0x386a77));});let _0x273df5=_0x182a84[_0x58667b(0x4cc)](_0x1bfdd7=>!_0x25d906[_0x58667b(0x25c)](_0x1bfdd7['id']))['sort']((_0x17b3f2,_0x4d0e25)=>String(_0x17b3f2['orderKey']??_0x17b3f2['id'])['localeCompare'](String(_0x4d0e25['orderKey']??_0x4d0e25['id']))||_0x17b3f2['id'][_0x58667b(0x506)](_0x4d0e25['id']));return[..._0x59858d,..._0x273df5];}[_0x282c57(0x3ef)](_0x5a0e35){const _0x3261d9=_0x282c57;return _0x5a0e35!=null&&_0x5a0e35!==''&&!(Array[_0x3261d9(0x3d5)](_0x5a0e35)&&_0x5a0e35[_0x3261d9(0x4ab)]===0x0);}[_0x282c57(0x495)](){const _0x331e7b=_0x282c57;var _0x45a871,_0x495ce9,_0x9e0f78,_0x1a4deb;return((_0x45a871=(_0x495ce9=this[_0x331e7b(0x3cd)])[_0x331e7b(0x2e0)])==null?void 0x0:_0x45a871['call'](_0x495ce9))??((_0x9e0f78=(_0x1a4deb=this[_0x331e7b(0x3cd)])[_0x331e7b(0x284)])==null||(_0x9e0f78=_0x9e0f78[_0x331e7b(0x2a4)](_0x1a4deb))==null?void 0x0:_0x9e0f78[_0x331e7b(0x256)])??void 0x0;}['_normalizeCellValue'](_0x2a7e3b,_0x5d52be,_0x1ae028,_0x36e8c1,_0x515d3f){const _0x36836f=_0x282c57;var _0xa775cf;if(!this[_0x36836f(0x513)][_0x36836f(0x456)](_0x5d52be,_0x1ae028,_0x36e8c1))throw Error(_0x36836f(0x358));let _0x234788=(_0xa775cf=_0x2a7e3b[_0x36836f(0x528)][_0x5d52be])==null?void 0x0:_0xa775cf[_0x36836f(0x453)][_0x36e8c1];if(!_0x234788)throw Error(_0x36836f(0x211)+_0x36e8c1+_0x36836f(0x4d5));let _0x5bc2d7=this[_0x36836f(0x395)][_0x36836f(0x268)](_0x234788[_0x36836f(0x4aa)]);if(_0x234788[_0x36836f(0x473)]||_0x234788[_0x36836f(0x43c)]||!_0x5bc2d7[_0x36836f(0x53a)](_0x234788)[_0x36836f(0x3f7)])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0x5b41a4=_0x5bc2d7[_0x36836f(0x203)](_0x515d3f,_0x234788),_0x254e74=_0x5bc2d7[_0x36836f(0x326)](_0x5b41a4,_0x234788);if(!_0x254e74[_0x36836f(0x375)])throw Error(_0x254e74[_0x36836f(0x2cd)]??_0x36836f(0x204));let _0x403cbe=_0x234788[_0x36836f(0x4aa)]===_0x239099[_0x36836f(0x2c2)]?Ve(_0x2a7e3b,_0x234788,_0x5b41a4):{'valid':!0x0};if(!_0x403cbe[_0x36836f(0x375)])throw Error(_0x403cbe[_0x36836f(0x2cd)]??_0x36836f(0x35f));return _0x5b41a4;}['_assertFieldDefinition'](_0x31514,_0xd89a5a){const _0x35d94c=_0x282c57;if(_0xd89a5a['id']===_0x1a2ecc||_0xd89a5a['type']===_0x239099[_0x35d94c(0x205)]||_0x38be32(_0xd89a5a[_0x35d94c(0x2f4)]))throw Error('[BaseCommandService]:\x20record-id\x20is\x20reserved.');let _0x3ea9f1=Be(_0x31514,_0xd89a5a);if(!_0x3ea9f1[_0x35d94c(0x375)])throw Error(_0x3ea9f1[_0x35d94c(0x2cd)]??_0x35d94c(0x26f));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x140431=_0x282c57;let _0x3681a8=new hr();return zn()[_0x140431(0x34b)](_0x22f57a=>_0x3681a8[_0x140431(0x39f)](_0x22f57a)),_0x3681a8;}function Yr(_0x5b3154){const _0x4f8514=_0x282c57;return _0x5b3154['type']===_0x239099[_0x4f8514(0x1f6)]||_0x5b3154['type']===_0x239099[_0x4f8514(0x4be)]||_0x5b3154['type']===_0x239099[_0x4f8514(0x532)]||_0x5b3154[_0x4f8514(0x4aa)]===_0x239099[_0x4f8514(0x35d)]||_0x5b3154['type']===_0x239099[_0x4f8514(0x1bc)];}const Xr=new Set([_0x239099[_0x282c57(0x2ca)],_0x239099[_0x282c57(0x3b7)],_0x239099[_0x282c57(0x379)]]);function Zr(_0x3ab118){const _0x5eed89=_0x282c57;let _0xb6b5c9=_0x3ab118[_0x5eed89(0x453)][_0x3ab118[_0x5eed89(0x45c)]];if((!_0xb6b5c9||_0xb6b5c9[_0x5eed89(0x43c)]!==!0x0&&_0xb6b5c9['id'][_0x5eed89(0x3ca)]()!=='id'&&_0xb6b5c9[_0x5eed89(0x2f4)][_0x5eed89(0x24d)]()[_0x5eed89(0x3ca)]()!=='id')&&_0xb6b5c9)return _0xb6b5c9['id'];for(let _0x283388 of _0x3ab118[_0x5eed89(0x534)]){let _0x179a31=_0x3ab118[_0x5eed89(0x453)][_0x283388];if(_0x179a31&&_0x179a31['id']!==_0x3ab118[_0x5eed89(0x45c)]&&_0x179a31[_0x5eed89(0x43c)]!==!0x0&&_0x179a31[_0x5eed89(0x4aa)]!==_0x239099['RecordId'])return _0x179a31['id'];}return _0x3ab118[_0x5eed89(0x45c)];}function Qr(_0x4d434c,_0x4e571d=[],_0x38536d=0x5){const _0x446aec=_0x282c57;let _0x42566b=new Set(_0x4e571d[_0x446aec(0x4cc)](_0x211f07=>!!_0x211f07)),_0xd82242=[],_0x128179=[];for(let _0x2a3ae8 of _0x4d434c[_0x446aec(0x534)]){let _0x3fdca5=_0x4d434c[_0x446aec(0x453)][_0x2a3ae8];_0x3fdca5&&_0x3fdca5[_0x446aec(0x43c)]!==!0x0&&_0x3fdca5['type']!==_0x239099[_0x446aec(0x205)]&&!_0x42566b[_0x446aec(0x25c)](_0x3fdca5['id'])&&(Xr[_0x446aec(0x25c)](_0x3fdca5[_0x446aec(0x4aa)])?_0xd82242:_0x128179)[_0x446aec(0x381)](_0x3fdca5['id']);}return[..._0xd82242,..._0x128179]['slice'](0x0,_0x38536d);}function $r(){const _0x501aae=_0x282c57;return[{'type':_0x1d9104[_0x501aae(0x3be)],'i18nKey':_0x501aae(0x357),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x1d9104[_0x501aae(0x549)],'i18nKey':'base.viewType.kanban','createDefaultConfig':_0x5bc23e=>{const _0x11fcc6=_0x501aae;let _0x1fa362=ei(_0x5bc23e);return{'groupFieldId':_0x1fa362,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x5bc23e[_0x11fcc6(0x45c)],'fieldIds':Qr(_0x5bc23e,[_0x5bc23e[_0x11fcc6(0x45c)],_0x1fa362])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x1d9104['Calendar'],'i18nKey':'base.viewType.calendar','createDefaultConfig':_0x3b0096=>{const _0x55e591=_0x501aae;let _0x120dd0=ti(_0x3b0096);return{'startDateFieldId':_0x120dd0,'endDateFieldId':ni(_0x3b0096,_0x120dd0),'titleFieldId':_0x3b0096[_0x55e591(0x45c)],'mode':'month','timeslotSize':_0x55e591(0x4c7),'timeZone':'local','displayColor':{'type':_0x55e591(0x261),'color':'#3b82f6'},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x1cad2a=_0x501aae;throw Error(_0x1cad2a(0x4e5));}},{'type':_0x1d9104[_0x501aae(0x46b)],'i18nKey':_0x501aae(0x30a),'createDefaultConfig':_0x42b285=>{const _0x57821b=_0x501aae;let _0x40d207=ti(_0x42b285);return{'startDateFieldId':_0x40d207,'endDateFieldId':ni(_0x42b285,_0x40d207)??_0x40d207,'titleFieldId':_0x42b285['primaryFieldId'],'scale':_0x57821b(0x319),'showTodayLine':!0x0,'displayColor':{'type':_0x57821b(0x261),'color':_0x57821b(0x351)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x1da277=_0x501aae;throw Error(_0x1da277(0x263));}},{'type':_0x1d9104[_0x501aae(0x2dd)],'i18nKey':_0x501aae(0x4fd),'createDefaultConfig':_0x369b34=>{const _0x516910=_0x501aae;let _0x5432d5=Zr(_0x369b34);return{'coverFieldId':null,'cardLayout':_0x516910(0x3b3),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x5432d5,'coverFieldId':null,'fieldIds':Qr(_0x369b34,[_0x5432d5,_0x369b34['primaryFieldId']])},'cardSize':_0x516910(0x4c7)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3933e6=_0x501aae;throw Error(_0x3933e6(0x529));}}];}function ei(_0x1db7c3){const _0x204f8d=_0x282c57;var _0x2669ff,_0x4c9212,_0x36b03d;let _0x4c12a9=_0x1db7c3[_0x204f8d(0x534)][_0x204f8d(0x309)](_0x4c1fe4=>_0x1db7c3['fields'][_0x4c1fe4])[_0x204f8d(0x4cc)](_0x56f5fe=>!!_0x56f5fe);return((_0x2669ff=_0x4c12a9[_0x204f8d(0x525)](_0x492e61=>_0x492e61[_0x204f8d(0x4aa)]===_0x239099[_0x204f8d(0x2fe)]||_0x492e61['type']===_0x239099[_0x204f8d(0x4b3)]||_0x492e61[_0x204f8d(0x4aa)]===_0x239099[_0x204f8d(0x3af)]))==null?void 0x0:_0x2669ff['id'])??((_0x4c9212=_0x4c12a9[_0x204f8d(0x525)](_0x170ad7=>_0x170ad7['type']===_0x239099[_0x204f8d(0x34a)]))==null?void 0x0:_0x4c9212['id'])??((_0x36b03d=_0x4c12a9[_0x204f8d(0x525)](_0x56ee8f=>_0x56ee8f[_0x204f8d(0x4aa)]===_0x239099['Date']||_0x56ee8f[_0x204f8d(0x4aa)]===_0x239099['CreatedAt']||_0x56ee8f[_0x204f8d(0x4aa)]===_0x239099['UpdatedAt']))==null?void 0x0:_0x36b03d['id'])??_0x1db7c3['primaryFieldId'];}function ti(_0x5a9466){const _0x3cbbc3=_0x282c57;var _0x58769d;return((_0x58769d=_0x5a9466['fieldOrder'][_0x3cbbc3(0x309)](_0x59366a=>_0x5a9466['fields'][_0x59366a])[_0x3cbbc3(0x525)](ri))==null?void 0x0:_0x58769d['id'])??'';}function ni(_0x154c0c,_0x610800){const _0xdb20a4=_0x282c57;var _0x18ed17;return(_0x18ed17=_0x154c0c[_0xdb20a4(0x534)][_0xdb20a4(0x309)](_0x21312c=>_0x154c0c['fields'][_0x21312c])[_0xdb20a4(0x525)](_0x4e8a5a=>ri(_0x4e8a5a)&&_0x4e8a5a['id']!==_0x610800))==null?void 0x0:_0x18ed17['id'];}function ri(_0x249dd7){const _0x28fd00=_0x282c57;return!!_0x249dd7&&_0x249dd7[_0x28fd00(0x4aa)]===_0x239099[_0x28fd00(0x240)]&&_0x249dd7['readonly']!==!0x0&&_0x249dd7[_0x28fd00(0x43c)]!==!0x0;}const ii=_0x2cfc4b(_0x282c57(0x29c)),ai=new Set([_0x239099['Number'],_0x239099[_0x282c57(0x4b6)],_0x239099[_0x282c57(0x2ca)],_0x239099[_0x282c57(0x3b7)],_0x239099[_0x282c57(0x240)],_0x239099[_0x282c57(0x35d)],_0x239099['UpdatedAt'],_0x239099['Checkbox']]),oi=0x5265c00;let si=class extends _0x3bb8e0{constructor(_0x318859){const _0x4ff30e=_0x282c57;super(),this[_0x4ff30e(0x395)]=_0x318859,G(this,'_views',new Map()),G(this,_0x4ff30e(0x474),new WeakMap()),G(this,_0x4ff30e(0x4c5),new Map()),G(this,_0x4ff30e(0x494),new Map()),G(this,_0x4ff30e(0x4c8),new Map()),G(this,_0x4ff30e(0x1cb),new Map()),G(this,_0x4ff30e(0x492),0x0),G(this,_0x4ff30e(0x1ac),new Map()),G(this,_0x4ff30e(0x2b2),new Map()),G(this,_0x4ff30e(0x4bc),new Map()),G(this,_0x4ff30e(0x428),new Map());}[_0x282c57(0x241)](_0x425eda){const _0x184ce7=_0x282c57;return this['_views'][_0x184ce7(0x246)](_0x425eda[_0x184ce7(0x4aa)],_0x425eda),_0x453a32(()=>this[_0x184ce7(0x2f6)][_0x184ce7(0x404)](_0x425eda[_0x184ce7(0x4aa)]));}['getProjection'](_0x749f2f,_0x18b2ca,_0x5473b7){const _0x3ac093=_0x282c57;var _0x171baa,_0x14f4ab,_0x4febcf;return I(_0x3ac093(0x3d3),()=>{const _0x346e15=_0x3ac093;let _0x4e6c6f=this[_0x346e15(0x342)](_0x749f2f,_0x18b2ca,_0x5473b7);if(_0x4e6c6f)return _0x4e6c6f;let _0x569a51=_0x749f2f[_0x346e15(0x528)][_0x18b2ca],_0x5104d8=_0x569a51==null?void 0x0:_0x569a51[_0x346e15(0x4f9)][_0x5473b7];if(!_0x569a51||!_0x5104d8)return this['_setCachedProjection'](_0x749f2f,_0x18b2ca,_0x5473b7,{'type':_0x346e15(0x269),'viewType':(_0x5104d8==null?void 0x0:_0x5104d8[_0x346e15(0x4aa)])??_0x1d9104[_0x346e15(0x3be)],'reason':_0x346e15(0x1aa)});let _0x58327a;switch(_0x5104d8['type']){case _0x1d9104[_0x346e15(0x3be)]:_0x58327a=this[_0x346e15(0x2a8)](_0x569a51,_0x5104d8);break;case _0x1d9104[_0x346e15(0x46b)]:_0x58327a=this[_0x346e15(0x2a1)](_0x569a51,_0x5104d8);break;case _0x1d9104['Kanban']:_0x58327a=this[_0x346e15(0x276)](_0x569a51,_0x5104d8);break;case _0x1d9104[_0x346e15(0x2c4)]:_0x58327a=this[_0x346e15(0x2ba)](_0x569a51,_0x5104d8);break;case _0x1d9104['Gallery']:_0x58327a=this[_0x346e15(0x3e6)](_0x569a51,_0x5104d8);break;default:_0x58327a={'type':_0x346e15(0x269),'viewType':_0x5104d8[_0x346e15(0x4aa)],'reason':_0x346e15(0x1aa)};}return this[_0x346e15(0x1f3)](_0x749f2f,_0x18b2ca,_0x5473b7,_0x58327a);},{'tableId':_0x18b2ca,'viewId':_0x5473b7,'viewType':(_0x171baa=_0x749f2f[_0x3ac093(0x528)][_0x18b2ca])==null||(_0x171baa=_0x171baa[_0x3ac093(0x4f9)][_0x5473b7])==null?void 0x0:_0x171baa[_0x3ac093(0x4aa)],'records':((_0x14f4ab=_0x749f2f['tables'][_0x18b2ca])==null||(_0x14f4ab=_0x14f4ab[_0x3ac093(0x413)])==null?void 0x0:_0x14f4ab[_0x3ac093(0x4ab)])??Object[_0x3ac093(0x334)](((_0x4febcf=_0x749f2f['tables'][_0x18b2ca])==null?void 0x0:_0x4febcf[_0x3ac093(0x1e1)])??{})[_0x3ac093(0x4ab)]});}[_0x282c57(0x325)](_0x426edd,_0x44ba6a,_0x1f26f0){const _0x291b4c=_0x282c57;var _0xbe20f5,_0x512730,_0x16dadb;let _0x4fd1f9=_0x426edd['tables'][_0x44ba6a],_0x1e2554=_0x4fd1f9==null?void 0x0:_0x4fd1f9[_0x291b4c(0x4f9)][_0x1f26f0];if(!_0x4fd1f9||!_0x1e2554)throw Error(_0x291b4c(0x2cf)+_0x1f26f0+'\x22.');let _0x3f1820=_0x18c932=>!!_0x4fd1f9['fields'][_0x18c932],_0x288787={..._0x1e2554,'filter':_0x1e2554[_0x291b4c(0x4cc)]?{..._0x1e2554[_0x291b4c(0x4cc)],'conditions':_0x1e2554[_0x291b4c(0x4cc)][_0x291b4c(0x3d8)][_0x291b4c(0x4cc)](_0x28a2af=>_0x3f1820(_0x28a2af[_0x291b4c(0x387)]))}:_0x1e2554[_0x291b4c(0x4cc)],'sort':(_0xbe20f5=_0x1e2554[_0x291b4c(0x1df)])==null?void 0x0:_0xbe20f5[_0x291b4c(0x4cc)](_0x50ff74=>_0x3f1820(_0x50ff74['fieldId'])),'group':(_0x512730=_0x1e2554[_0x291b4c(0x359)])==null?void 0x0:_0x512730[_0x291b4c(0x4cc)](_0x4b5e89=>_0x3f1820(_0x4b5e89['fieldId'])),'fieldOrder':(_0x16dadb=_0x1e2554['fieldOrder'])==null?void 0x0:_0x16dadb[_0x291b4c(0x4cc)](_0x3f1820),'fieldSettings':Object[_0x291b4c(0x1af)](Object[_0x291b4c(0x41d)](_0x1e2554[_0x291b4c(0x272)]??{})[_0x291b4c(0x4cc)](([_0x39873a])=>_0x3f1820(_0x39873a)))};if(_0x288787[_0x291b4c(0x4aa)]===_0x291b4c(0x320)){var _0x37bac9;let _0x80f9c2=_0x288787[_0x291b4c(0x50c)]??{},_0x2c5697=this[_0x291b4c(0x2ab)](_0x4fd1f9,_0x288787),_0x26486d=this[_0x291b4c(0x55a)](_0x4fd1f9,(_0x37bac9=_0x80f9c2['card'])==null?void 0x0:_0x37bac9[_0x291b4c(0x430)]);_0x288787['config']={..._0x80f9c2,'groupFieldId':_0x2c5697??_0x80f9c2[_0x291b4c(0x25d)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x4fd1f9,_0x80f9c2),'cardLayout':_0x80f9c2['cardLayout']===_0x291b4c(0x3ad)?_0x291b4c(0x3ad):_0x291b4c(0x3b3),'showFieldNames':_0x80f9c2[_0x291b4c(0x299)]!==!0x1,'fieldSettings':Object[_0x291b4c(0x1af)](Object[_0x291b4c(0x41d)](_0x80f9c2[_0x291b4c(0x272)]??{})[_0x291b4c(0x4cc)](([_0x5a4938])=>_0x3f1820(_0x5a4938))),'columnSettings':_0x80f9c2[_0x291b4c(0x37c)]??{},'card':{..._0x80f9c2[_0x291b4c(0x1c6)]??{},'titleFieldId':_0x26486d,'fieldIds':this['_resolveKanbanCardFieldIds'](_0x4fd1f9,_0x288787,_0x2c5697??'',_0x26486d)}};}return{'repaired':JSON[_0x291b4c(0x2fb)](_0x288787)!==JSON[_0x291b4c(0x2fb)](_0x1e2554),'view':_0x288787};}[_0x282c57(0x466)](){const _0x518438=_0x282c57;this[_0x518438(0x492)]++;}[_0x282c57(0x4f7)](_0x1d11f0,_0x36839d,_0x3c6f59){const _0x4a9136=_0x282c57;let _0x306334=this[_0x4a9136(0x2c9)](_0x1d11f0)+0x1;this['_cellRevisions'][_0x4a9136(0x246)](_0x1d11f0,_0x306334);let _0x5164ad=this['_cellInvalidations']['get'](_0x1d11f0)??[];_0x5164ad[_0x4a9136(0x381)]({'revision':_0x306334,'recordId':_0x36839d,'fieldId':_0x3c6f59}),this[_0x4a9136(0x4bc)][_0x4a9136(0x246)](_0x1d11f0,_0x5164ad);}['invalidateByField'](_0x35bbb5,_0x46b8cd){const _0x2114c1=_0x282c57;this[_0x2114c1(0x29a)](_0x35bbb5);}[_0x282c57(0x438)](_0x5435a1,_0x5ef7c3){const _0x952ae2=_0x282c57;this['_viewRevisions'][_0x952ae2(0x246)](this[_0x952ae2(0x337)](_0x5435a1,_0x5ef7c3),this[_0x952ae2(0x24f)](_0x5435a1,_0x5ef7c3)+0x1);}[_0x282c57(0x342)](_0x59d585,_0x559c71,_0xf398b2){const _0x26f418=_0x282c57;var _0xf710eb;let _0x1d02d4=(_0xf710eb=this[_0x26f418(0x474)][_0x26f418(0x268)](_0x59d585))==null?void 0x0:_0xf710eb[_0x26f418(0x268)](this['_cacheKey'](_0x559c71,_0xf398b2));return _0x1d02d4&&_0x1d02d4[_0x26f418(0x271)]===this[_0x26f418(0x492)]&&_0x1d02d4[_0x26f418(0x332)]===this[_0x26f418(0x398)](_0x559c71)&&_0x1d02d4[_0x26f418(0x29f)]===this[_0x26f418(0x2c9)](_0x559c71)&&_0x1d02d4['viewRevision']===this[_0x26f418(0x24f)](_0x559c71,_0xf398b2)?_0x1d02d4[_0x26f418(0x431)]:null;}['_setCachedProjection'](_0x3184df,_0x2c90f0,_0x24bafd,_0x22023c){const _0x24d56e=_0x282c57;let _0x32a6b3=this['_projectionCache'][_0x24d56e(0x268)](_0x3184df);return _0x32a6b3||(_0x32a6b3=new Map(),this[_0x24d56e(0x474)]['set'](_0x3184df,_0x32a6b3)),_0x32a6b3[_0x24d56e(0x246)](this[_0x24d56e(0x390)](_0x2c90f0,_0x24bafd),{'projection':_0x22023c,'globalRevision':this[_0x24d56e(0x492)],'tableRevision':this[_0x24d56e(0x398)](_0x2c90f0),'cellRevision':this[_0x24d56e(0x2c9)](_0x2c90f0),'viewRevision':this[_0x24d56e(0x24f)](_0x2c90f0,_0x24bafd)}),_0x22023c;}['_bumpTableRevision'](_0x5d8ca0){const _0x50c901=_0x282c57;this[_0x50c901(0x1ac)][_0x50c901(0x246)](_0x5d8ca0,this[_0x50c901(0x398)](_0x5d8ca0)+0x1);}['_getTableRevision'](_0x49ae08){return this['_tableRevisions']['get'](_0x49ae08)??0x0;}[_0x282c57(0x2c9)](_0x2682fd){const _0x2eab5a=_0x282c57;return this[_0x2eab5a(0x2b2)][_0x2eab5a(0x268)](_0x2682fd)??0x0;}[_0x282c57(0x24f)](_0x32e96d,_0x2303eb){const _0x2046e6=_0x282c57;return this[_0x2046e6(0x428)][_0x2046e6(0x268)](this[_0x2046e6(0x337)](_0x32e96d,_0x2303eb))??0x0;}[_0x282c57(0x390)](_0x50b56e,_0x43730e){return _0x50b56e+'\x00'+_0x43730e;}[_0x282c57(0x47d)](_0x2a3f8a,_0x52fcd6){return _0x2a3f8a+'\x00'+this['_rowTransformCacheSegment'](_0x52fcd6);}['_groupsCacheKey'](_0x58e974,_0x6a8a2e,_0x536b87){const _0x27eaa4=_0x282c57;return _0x58e974+'\x00'+this[_0x27eaa4(0x22a)](_0x6a8a2e)+'\x00'+this[_0x27eaa4(0x1a3)](_0x536b87);}['_rowTransformCacheSegment'](_0x402050){const _0x3e6761=_0x282c57;return _0x402050?mi({'filter':di(_0x402050[_0x3e6761(0x4cc)]),'sort':pi(_0x402050[_0x3e6761(0x1df)])}):_0x3e6761(0x1b2);}[_0x282c57(0x1a3)](_0x2824a0){const _0x58ade4=_0x282c57;return mi(_0x2824a0[_0x58ade4(0x309)](_0x33a250=>({'fieldId':_0x33a250[_0x58ade4(0x387)],'direction':_0x33a250[_0x58ade4(0x292)]??null})));}['_viewRevisionKey'](_0x3267e3,_0x35d5c0){return _0x3267e3+'\x00'+_0x35d5c0;}['_buildGrid'](_0x26d443,_0x38edc1){const _0x10dab7=_0x282c57;var _0xb416d3;let _0x320e7f=Je(_0x26d443),_0x5ec882=this[_0x10dab7(0x2b1)](_0x26d443,_0x38edc1),_0x537db0=(_0xb416d3=_0x38edc1[_0x10dab7(0x4cc)])!=null&&_0xb416d3['conditions']['length']?this['_projectRows'](_0x26d443,{..._0x38edc1,'filter':null}):_0x5ec882,_0x191ff1=nt(this[_0x10dab7(0x33d)](_0x26d443,_0x320e7f,_0x38edc1['id'],_0x537db0[_0x10dab7(0x309)](_0x4a6694=>_0x4a6694['recordId'])),_0x537db0,new Set(_0x5ec882[_0x10dab7(0x309)](_0xd0f090=>_0xd0f090[_0x10dab7(0x40d)])));return{'type':_0x1d9104[_0x10dab7(0x3be)],'fields':this[_0x10dab7(0x420)](_0x26d443,_0x38edc1),'rows':_0x191ff1[_0x10dab7(0x535)],'groups':this[_0x10dab7(0x31e)](_0x26d443,_0x38edc1,_0x191ff1[_0x10dab7(0x535)],_0x191ff1[_0x10dab7(0x43d)]),'hierarchy':_0x191ff1[_0x10dab7(0x43d)],'frozenFieldCount':typeof _0x38edc1[_0x10dab7(0x50c)][_0x10dab7(0x4a2)]==_0x10dab7(0x389)?_0x38edc1[_0x10dab7(0x50c)][_0x10dab7(0x4a2)]:0x0};}['_getHierarchyIndex'](_0x1118d2,_0x1e8dc1,_0x47e5c5,_0x4d326a){const _0x10c164=_0x282c57;let _0x10b651=_0x1118d2['id']+'\x00'+_0x1e8dc1+'\x00'+_0x47e5c5,_0x4db2bc=this[_0x10c164(0x2c9)](_0x1118d2['id']),_0x1833d0=this['_hierarchyIndexCache']['get'](_0x10b651);if(_0x1833d0&&_0x1833d0[_0x10c164(0x271)]===this[_0x10c164(0x492)]&&_0x1833d0['tableRevision']===this[_0x10c164(0x398)](_0x1118d2['id'])&&_0x1833d0[_0x10c164(0x2db)][_0x10c164(0x4ab)]===_0x4d326a[_0x10c164(0x4ab)]&&_0x1833d0['orderedRecordIds']['every']((_0x3e1bd7,_0x586f34)=>_0x3e1bd7===_0x4d326a[_0x586f34])){if(_0x1833d0[_0x10c164(0x29f)]===_0x4db2bc&&_0x1833d0[_0x10c164(0x270)]===_0x1118d2)return _0x1833d0[_0x10c164(0x198)];if(!this[_0x10c164(0x3c4)](_0x1118d2['id'],_0x1833d0[_0x10c164(0x29f)],_0x4db2bc,new Set([_0x1e8dc1])))return this[_0x10c164(0x1cb)][_0x10c164(0x246)](_0x10b651,{..._0x1833d0,'table':_0x1118d2,'cellRevision':_0x4db2bc}),_0x1833d0[_0x10c164(0x198)];}let _0x126642=tt(_0x1118d2,_0x1e8dc1,_0x4d326a);return this[_0x10c164(0x1cb)][_0x10c164(0x246)](_0x10b651,{'table':_0x1118d2,'index':_0x126642,'orderedRecordIds':_0x4d326a,'globalRevision':this[_0x10c164(0x492)],'tableRevision':this[_0x10c164(0x398)](_0x1118d2['id']),'cellRevision':_0x4db2bc}),_0x126642;}[_0x282c57(0x31e)](_0x271d5d,_0x54d71e,_0x27e731,_0x584590){const _0xd08e92=_0x282c57;var _0x415af1;if(!((_0x415af1=_0x54d71e[_0xd08e92(0x359)])!=null&&_0x415af1[_0xd08e92(0x4ab)]))return[];let _0x142554=new Map(_0x27e731['map'](_0x197c7c=>[_0x197c7c[_0xd08e92(0x40d)],_0x197c7c])),_0xef258b=_0x584590[_0xd08e92(0x1b0)][_0xd08e92(0x26a)](_0x570df2=>{const _0x8bfdb3=_0xd08e92;let _0x54440a=_0x142554[_0x8bfdb3(0x268)](_0x570df2);return _0x54440a?[_0x54440a]:[];}),_0x22215a=this[_0xd08e92(0x348)](_0x271d5d,_0x54d71e,_0xef258b),_0x5aa53a=new Map(_0x584590[_0xd08e92(0x2db)][_0xd08e92(0x309)]((_0xfdfbc1,_0x2480a5)=>[_0xfdfbc1,_0x2480a5])),_0x1f4a28=_0x385dbd=>{const _0x401b2f=_0xd08e92;let _0x482c87=_0x584590['nodes'][_0x385dbd],_0x3c0e1c=_0x5aa53a[_0x401b2f(0x268)](_0x385dbd)??-0x1;return _0x3c0e1c<0x0||!_0x482c87?[]:_0x584590[_0x401b2f(0x2db)]['slice'](_0x3c0e1c,_0x482c87[_0x401b2f(0x3da)]+0x1);},_0x36c533=_0x2eace8=>{const _0x44ff0e=_0xd08e92;var _0x2a6e10,_0x4b30cc;return{..._0x2eace8,'recordIds':(_0x2a6e10=_0x2eace8['children'])!=null&&_0x2a6e10[_0x44ff0e(0x4ab)]?_0x2eace8[_0x44ff0e(0x1b9)]:_0x2eace8['recordIds'][_0x44ff0e(0x26a)](_0x1f4a28),'children':(_0x4b30cc=_0x2eace8[_0x44ff0e(0x4fc)])==null?void 0x0:_0x4b30cc[_0x44ff0e(0x309)](_0x36c533)};};return _0x22215a[_0xd08e92(0x309)](_0x36c533);}[_0x282c57(0x276)](_0x4ac0be,_0x2bac9d){const _0x4de19c=_0x282c57;var _0x141bc8;let _0x18ba98=this[_0x4de19c(0x2ab)](_0x4ac0be,_0x2bac9d),_0x3a3167=_0x18ba98?_0x4ac0be[_0x4de19c(0x453)][_0x18ba98]:void 0x0;if(!_0x3a3167)return{'type':_0x4de19c(0x269),'viewType':_0x1d9104[_0x4de19c(0x549)],'reason':'invalidGroupField','fieldId':_0x2bac9d[_0x4de19c(0x50c)][_0x4de19c(0x25d)]};let _0x3162f7=this[_0x4de19c(0x2b1)](_0x4ac0be,_0x2bac9d),_0x1bce32=this[_0x4de19c(0x420)](_0x4ac0be,_0x2bac9d),_0x5839a4=_0x2bac9d[_0x4de19c(0x50c)]??{},_0x46965f=this['_resolveCardTitleFieldId'](_0x4ac0be,(_0x141bc8=_0x5839a4[_0x4de19c(0x1c6)])==null?void 0x0:_0x141bc8['titleFieldId']),_0x229166=this[_0x4de19c(0x53c)](_0x4ac0be,_0x2bac9d,_0x3a3167['id'],_0x46965f),_0x43b088=new Map();if(F(_0x4ac0be,_0x3a3167['id'])){let _0xe4daf8=this['_getHierarchyIndex'](_0x4ac0be,_0x3a3167['id'],_0x2bac9d['id'],_0x3162f7[_0x4de19c(0x309)](_0x33a16e=>_0x33a16e[_0x4de19c(0x40d)])),_0xf425d7=new Map();return _0x3162f7[_0x4de19c(0x34b)](_0x245c53=>{const _0x47459c=_0x4de19c;let _0x2d8703=_0xe4daf8[_0x47459c(0x39a)]['get'](_0x245c53['recordId'])??null,_0x1b2d04=_0x2d8703??'',_0x2e8663=_0x2d8703?_0x4ac0be['records'][_0x2d8703]:void 0x0,_0x15ca0d=_0xf425d7[_0x47459c(0x268)](_0x1b2d04)??{'key':_0x1b2d04,'title':_0x2e8663?String(yt(_0x4ac0be,_0x2e8663['id'],_0x4ac0be['primaryFieldId'])??_0x2d8703):this['_kanbanLaneTitle'](_0x3a3167,_0x1b2d04,_0x5839a4),'recordIds':[]};_0x15ca0d[_0x47459c(0x1b9)][_0x47459c(0x381)](_0x245c53[_0x47459c(0x40d)]),_0xf425d7[_0x47459c(0x246)](_0x1b2d04,_0x15ca0d);}),{'type':_0x1d9104[_0x4de19c(0x549)],'fields':_0x1bce32,'rows':_0x3162f7,'groups':[],'groupFieldId':_0x3a3167['id'],'titleFieldId':_0x46965f,'coverFieldId':this[_0x4de19c(0x1ed)](_0x4ac0be,_0x5839a4),'cardLayout':_0x5839a4[_0x4de19c(0x316)]===_0x4de19c(0x3ad)?_0x4de19c(0x3ad):'normal','showFieldNames':_0x5839a4[_0x4de19c(0x299)]!==!0x1,'visibleCardFieldIds':_0x229166,'lanes':['',..._0xe4daf8[_0x4de19c(0x2db)]]['flatMap'](_0x24625c=>{const _0xded19a=_0x4de19c;let _0x53d3e6=_0xf425d7[_0xded19a(0x268)](_0x24625c);return _0x53d3e6!=null&&_0x53d3e6['recordIds'][_0xded19a(0x4ab)]?[_0x53d3e6]:[];})};}return this[_0x4de19c(0x273)](_0x3a3167,_0x5839a4)[_0x4de19c(0x34b)](_0x1e03df=>_0x43b088[_0x4de19c(0x246)](_0x1e03df[_0x4de19c(0x34d)],{..._0x1e03df,'recordIds':[]})),_0x3162f7[_0x4de19c(0x34b)](_0x5593d7=>{const _0x916bd9=_0x4de19c;this[_0x916bd9(0x21e)](_0x3a3167,_0x5593d7[_0x916bd9(0x54e)][_0x3a3167['id']])[_0x916bd9(0x34b)](_0x5136ad=>{const _0x229415=_0x916bd9;let _0x10ac76=_0x43b088['get'](_0x5136ad)??{'key':_0x5136ad,'title':this['_kanbanLaneTitle'](_0x3a3167,_0x5136ad,_0x5839a4),'color':this[_0x229415(0x366)](_0x3a3167,_0x5136ad,_0x5839a4),'recordIds':[]};_0x10ac76['recordIds'][_0x229415(0x381)](_0x5593d7[_0x229415(0x40d)]),_0x43b088[_0x229415(0x246)](_0x5136ad,_0x10ac76);});}),{'type':_0x1d9104['Kanban'],'fields':_0x1bce32,'rows':_0x3162f7,'groups':this[_0x4de19c(0x348)](_0x4ac0be,_0x2bac9d,_0x3162f7),'groupFieldId':_0x3a3167['id'],'titleFieldId':_0x46965f,'coverFieldId':this[_0x4de19c(0x1ed)](_0x4ac0be,_0x5839a4),'cardLayout':_0x5839a4[_0x4de19c(0x316)]===_0x4de19c(0x3ad)?_0x4de19c(0x3ad):_0x4de19c(0x3b3),'showFieldNames':_0x5839a4['showFieldNames']!==!0x1,'visibleCardFieldIds':_0x229166,'lanes':Array[_0x4de19c(0x2f3)](_0x43b088[_0x4de19c(0x54e)]())};}[_0x282c57(0x2ab)](_0x25e390,_0x47c720){const _0x270dff=_0x282c57;var _0x3771b7;let _0x5361e5=(_0x3771b7=_0x47c720[_0x270dff(0x50c)])==null?void 0x0:_0x3771b7['groupFieldId'];return _0x5361e5&&this[_0x270dff(0x396)](_0x25e390,_0x5361e5)?_0x5361e5:this[_0x270dff(0x214)](_0x25e390,_0x121314=>this['_isAllowedKanbanGroupField'](_0x121314));}['_findKanbanGroupField'](_0x2fff53,_0xc5cb12){const _0x17a7e8=_0x282c57;for(let _0x5d4b08 of _0x2fff53[_0x17a7e8(0x534)]){let _0x1cc6a5=_0x2fff53['fields'][_0x5d4b08];if(_0x1cc6a5&&_0xc5cb12(_0x1cc6a5))return _0x1cc6a5['id'];}return null;}[_0x282c57(0x396)](_0x380acf,_0x535b7e){const _0x15d441=_0x282c57;let _0x2ef346=_0x380acf[_0x15d441(0x453)][_0x535b7e];return this[_0x15d441(0x2d2)](_0x2ef346)||F(_0x380acf,_0x535b7e);}[_0x282c57(0x2d2)](_0x36dee6){const _0x5aca39=_0x282c57;return!!_0x36dee6&&(_0x36dee6[_0x5aca39(0x4aa)]===_0x239099[_0x5aca39(0x2fe)]||_0x36dee6[_0x5aca39(0x4aa)]===_0x239099['MultiSelect']||_0x36dee6[_0x5aca39(0x4aa)]===_0x239099[_0x5aca39(0x3b7)]||_0x36dee6[_0x5aca39(0x4aa)]===_0x239099[_0x5aca39(0x2a5)]||_0x36dee6[_0x5aca39(0x4aa)]===_0x239099[_0x5aca39(0x3af)]||_0x36dee6[_0x5aca39(0x4aa)]===_0x239099[_0x5aca39(0x379)]);}[_0x282c57(0x232)](_0x382dbc){const _0x4d3e4e=_0x282c57;return _0x382dbc[_0x4d3e4e(0x4aa)]===_0x239099[_0x4d3e4e(0x2fe)]||_0x382dbc['type']===_0x239099[_0x4d3e4e(0x4b3)];}[_0x282c57(0x1ed)](_0x12e23a,_0x5ce106){const _0x4cf342=_0x282c57;var _0x140a77;let _0x460ab8=_0x5ce106[_0x4cf342(0x2b6)]??((_0x140a77=_0x5ce106[_0x4cf342(0x1c6)])==null?void 0x0:_0x140a77['coverFieldId'])??null;if(!_0x460ab8)return null;let _0x3ced8d=_0x12e23a['fields'][_0x460ab8];return _0x3ced8d&&this[_0x4cf342(0x1c7)](_0x3ced8d)[_0x4cf342(0x3ae)]?_0x3ced8d['id']:null;}[_0x282c57(0x53c)](_0xce1b1d,_0x2a64ef,_0x57d233,_0x3657df=this[_0x282c57(0x55a)](_0xce1b1d,((()=>{const _0x5e7bb1=_0x282c57;var _0x253003;return(_0x253003=_0x2a64ef[_0x5e7bb1(0x50c)])==null||(_0x253003=_0x253003['card'])==null?void 0x0:_0x253003[_0x5e7bb1(0x430)];})()))){const _0x189051=_0x282c57;var _0x36b18e;let _0x15eb26=_0x2a64ef['config']??{},_0x3952c3=(_0x36b18e=_0x15eb26[_0x189051(0x1c6)])!=null&&(_0x36b18e=_0x36b18e['fieldIds'])!=null&&_0x36b18e[_0x189051(0x4ab)]?_0x15eb26[_0x189051(0x1c6)]['fieldIds']:Qr(_0xce1b1d,[_0x3657df,_0xce1b1d[_0x189051(0x45c)],_0x57d233]),_0x462c3e=_0x15eb26[_0x189051(0x272)]??{};return _0x3952c3[_0x189051(0x4cc)](_0x255d31=>{const _0x547c3c=_0x189051;var _0x1df639,_0x95a426;let _0x405e2e=_0xce1b1d[_0x547c3c(0x453)][_0x255d31];return!(!_0x405e2e||_0x405e2e[_0x547c3c(0x43c)]===!0x0||_0x405e2e['type']===_0x239099[_0x547c3c(0x205)]||_0x405e2e['id']===_0x57d233||_0x405e2e['id']===_0x3657df||(_0x1df639=_0x2a64ef[_0x547c3c(0x272)])!=null&&(_0x1df639=_0x1df639[_0x255d31])!=null&&_0x1df639[_0x547c3c(0x194)]||(_0x95a426=_0x462c3e[_0x255d31])!=null&&_0x95a426[_0x547c3c(0x194)]);})[_0x189051(0x1df)]((_0xcd39f4,_0x499762)=>{const _0x37020c=_0x189051;var _0xb29349,_0x12ed79;return(((_0xb29349=_0x462c3e[_0xcd39f4])==null?void 0x0:_0xb29349[_0x37020c(0x51d)])??_0x3952c3[_0x37020c(0x1f4)](_0xcd39f4))-(((_0x12ed79=_0x462c3e[_0x499762])==null?void 0x0:_0x12ed79[_0x37020c(0x51d)])??_0x3952c3['indexOf'](_0x499762));});}[_0x282c57(0x273)](_0x46816c,_0x30afe2){const _0x174eb0=_0x282c57;var _0x5573cb;let _0x3cee69=(Array[_0x174eb0(0x3d5)]((_0x5573cb=_0x46816c[_0x174eb0(0x50c)])==null?void 0x0:_0x5573cb[_0x174eb0(0x4f3)])?_0x46816c[_0x174eb0(0x50c)]['options']:[])[_0x174eb0(0x26a)]((_0x53d35d,_0x5787e7)=>{const _0x2826ab=_0x174eb0;if(_0x53d35d==null)return[];let _0x4ae6b7=typeof _0x53d35d=='string'?{'id':_0x53d35d,'name':_0x53d35d,'color':void 0x0}:_0x53d35d,_0x36a663=String(_0x4ae6b7['id']??_0x4ae6b7[_0x2826ab(0x2f4)]??_0x2826ab(0x265)+(_0x5787e7+0x1));return[{'key':_0x36a663,'title':String(_0x4ae6b7['name']??_0x4ae6b7['id']??_0x36a663),'color':this['_kanbanLaneColor'](_0x46816c,_0x36a663,_0x30afe2)}];});return Object[_0x174eb0(0x41d)](_0x30afe2[_0x174eb0(0x37c)]??{})[_0x174eb0(0x34b)](([_0x281c22,_0x4b6fb9])=>{const _0x265eb0=_0x174eb0;_0x3cee69[_0x265eb0(0x436)](_0x59627b=>_0x59627b[_0x265eb0(0x34d)]===_0x281c22)||_0x3cee69['push']({'key':_0x281c22,'title':this[_0x265eb0(0x232)](_0x46816c)?_0x4b6fb9['title']??this[_0x265eb0(0x40c)](_0x46816c,_0x281c22,_0x30afe2):this[_0x265eb0(0x40c)](_0x46816c,_0x281c22,_0x30afe2),'color':this[_0x265eb0(0x366)](_0x46816c,_0x281c22,_0x30afe2)});}),_0x3cee69;}[_0x282c57(0x21e)](_0x955b90,_0x5c00d5){const _0x1f49f2=_0x282c57;let _0x432d5b=_0x4b853b=>{const _0x111800=_0x3047;var _0x51a804;let _0x38f633=_0x4b853b==null?'':String(_0x4b853b);return!_0x38f633||!this[_0x111800(0x232)](_0x955b90)?_0x38f633:((_0x51a804=Li(_0x955b90,_0x38f633))==null?void 0x0:_0x51a804['id'])??_0x38f633;};if(Array[_0x1f49f2(0x3d5)](_0x5c00d5)){let _0x450528=_0x5c00d5['map'](_0x432d5b)['filter'](_0x752e54=>_0x752e54!=='');return _0x450528[_0x1f49f2(0x4ab)]?_0x450528:[''];}return[_0x432d5b(_0x5c00d5)];}['_kanbanLaneTitle'](_0x3a84e3,_0x4930d1,_0x9fc862){const _0x46fc07=_0x282c57;if(!_0x4930d1)return'Uncategorized';let _0x2b500a=Li(_0x3a84e3,_0x4930d1);return(_0x2b500a==null?void 0x0:_0x2b500a[_0x46fc07(0x2f4)])??_0x4930d1;}[_0x282c57(0x366)](_0x9ae0a3,_0x4dfe5c,_0x46b8a9){const _0x5eed19=_0x282c57;var _0x19f8e4;if(this[_0x5eed19(0x232)](_0x9ae0a3))return(_0x19f8e4=Li(_0x9ae0a3,_0x4dfe5c))==null?void 0x0:_0x19f8e4[_0x5eed19(0x545)];}[_0x282c57(0x2ba)](_0x583d4a,_0x8f82e2){const _0x521580=_0x282c57;let _0x4f48b2=this[_0x521580(0x20f)](_0x583d4a,_0x8f82e2[_0x521580(0x50c)]??{}),_0x23e8b7=_0x583d4a['fields'][_0x4f48b2[_0x521580(0x282)]];if(!_0x23e8b7||_0x23e8b7[_0x521580(0x4aa)]!==_0x239099[_0x521580(0x240)]||_0x23e8b7[_0x521580(0x473)]===!0x0||_0x23e8b7[_0x521580(0x43c)]===!0x0||!this[_0x521580(0x1c7)](_0x23e8b7)[_0x521580(0x2b4)])return{'type':_0x521580(0x269),'viewType':_0x1d9104[_0x521580(0x2c4)],'reason':_0x521580(0x50d),'fieldId':_0x4f48b2[_0x521580(0x282)]};let _0x2a11a3=_0x4f48b2[_0x521580(0x541)]?_0x583d4a[_0x521580(0x453)][_0x4f48b2[_0x521580(0x541)]]:void 0x0,_0x449af9=this['_projectRows'](_0x583d4a,_0x8f82e2);return{'type':_0x1d9104[_0x521580(0x2c4)],'config':_0x4f48b2,'fields':this[_0x521580(0x420)](_0x583d4a,_0x8f82e2),'rows':_0x449af9,'groups':this[_0x521580(0x348)](_0x583d4a,_0x8f82e2,_0x449af9),'events':_0x449af9[_0x521580(0x26a)](_0x14790b=>{const _0x3109a5=_0x521580;let _0x21ed1f=dn(_0x14790b[_0x3109a5(0x54e)][_0x4f48b2['startDateFieldId']]);if(!Number[_0x3109a5(0x210)](_0x21ed1f))return[];let _0x5388df=_0x14790b[_0x3109a5(0x54e)][_0x4f48b2['startDateFieldId']],_0xa96370=_0x4f48b2[_0x3109a5(0x541)]==null?void 0x0:_0x14790b[_0x3109a5(0x54e)][_0x4f48b2[_0x3109a5(0x541)]],_0x15905b=_0x4f48b2[_0x3109a5(0x541)]==null?void 0x0:dn(_0xa96370),_0x5e5aec=Number['isFinite'](_0x15905b)?_0x15905b:void 0x0;return[{'recordId':_0x14790b[_0x3109a5(0x40d)],'title':this[_0x3109a5(0x3f6)](_0x583d4a,_0x14790b,_0x4f48b2[_0x3109a5(0x430)]),'start':_0x21ed1f,'end':_0x5e5aec,'color':this[_0x3109a5(0x19b)](_0x583d4a,_0x14790b,_0x4f48b2),'startMs':_0x21ed1f,'endMs':_0x5e5aec,'allDay':this['_isAllDayCalendarEvent'](_0x23e8b7,_0x2a11a3,_0x5388df,_0xa96370),'fieldValues':_0x14790b[_0x3109a5(0x54e)]}];})};}[_0x282c57(0x20f)](_0x3ae2c0,_0x26d7e3){const _0x3aade6=_0x282c57;let _0xcaa385=this[_0x3aade6(0x394)](_0x3ae2c0,_0x26d7e3[_0x3aade6(0x282)]),_0x33599b=_0x26d7e3[_0x3aade6(0x541)]&&this[_0x3aade6(0x3eb)](_0x3ae2c0,_0x26d7e3[_0x3aade6(0x541)])?_0x26d7e3[_0x3aade6(0x541)]:this[_0x3aade6(0x295)](_0x3ae2c0,_0xcaa385)??void 0x0,_0x482e71=_0x26d7e3[_0x3aade6(0x430)]?_0x3ae2c0['fields'][_0x26d7e3[_0x3aade6(0x430)]]:void 0x0,_0x1585be=_0x482e71&&_0x482e71[_0x3aade6(0x43c)]!==!0x0&&_0x482e71[_0x3aade6(0x4aa)]!==_0x239099[_0x3aade6(0x205)]?_0x26d7e3[_0x3aade6(0x430)]:_0x3ae2c0[_0x3aade6(0x45c)],_0x2779f1=_0x26d7e3[_0x3aade6(0x321)]===_0x3aade6(0x511)||_0x26d7e3[_0x3aade6(0x321)]===_0x3aade6(0x36e)?_0x26d7e3[_0x3aade6(0x321)]:_0x3aade6(0x319),_0x564da3=_0x26d7e3['timeslotSize']===_0x3aade6(0x51f)||_0x26d7e3[_0x3aade6(0x3dc)]===_0x3aade6(0x21c)?_0x26d7e3['timeslotSize']:_0x3aade6(0x4c7),_0xc0b4c=typeof _0x26d7e3[_0x3aade6(0x350)]=='string'&&_0x26d7e3['timeZone'][_0x3aade6(0x24d)]()?_0x26d7e3[_0x3aade6(0x350)]:_0x3aade6(0x3d9),_0x119659=this['_normalizeCalendarDisplayColor'](_0x3ae2c0,_0x26d7e3);return{..._0x26d7e3,'startDateFieldId':_0xcaa385,'endDateFieldId':_0x33599b,'titleFieldId':_0x1585be,'mode':_0x2779f1,'timeslotSize':_0x564da3,'timeZone':_0xc0b4c,'displayColor':_0x119659,'fieldSettings':Object['fromEntries'](Object[_0x3aade6(0x41d)](_0x26d7e3[_0x3aade6(0x272)]??{})['filter'](([_0x423211])=>{const _0x1f3cd0=_0x3aade6;let _0x58fa97=_0x3ae2c0[_0x1f3cd0(0x453)][_0x423211];return!!(_0x58fa97&&_0x58fa97['system']!==!0x0&&_0x58fa97['type']!==_0x239099[_0x1f3cd0(0x205)]);}))};}[_0x282c57(0x394)](_0x56986a,_0x14d640){const _0x270eaf=_0x282c57;return _0x14d640&&this['_isCalendarDateField'](_0x56986a,_0x14d640)?_0x14d640:this[_0x270eaf(0x295)](_0x56986a)??_0x14d640??'';}[_0x282c57(0x295)](_0x1ee61b,_0x4c0630){const _0x279f56=_0x282c57;for(let _0x163fe9 of _0x1ee61b[_0x279f56(0x534)])if(_0x163fe9!==_0x4c0630&&this[_0x279f56(0x3eb)](_0x1ee61b,_0x163fe9))return _0x163fe9;return null;}[_0x282c57(0x3eb)](_0x3bedee,_0x33a061){const _0x1f0438=_0x282c57;let _0x345654=_0x3bedee['fields'][_0x33a061];return!!_0x345654&&_0x345654['type']===_0x239099[_0x1f0438(0x240)]&&_0x345654[_0x1f0438(0x473)]!==!0x0&&_0x345654[_0x1f0438(0x43c)]!==!0x0&&this['_capabilities'](_0x345654)[_0x1f0438(0x2b4)];}['_normalizeCalendarDisplayColor'](_0x4ef221,_0x56c9fa){const _0x24f44b=_0x282c57;let _0xb2d12f=_0x56c9fa[_0x24f44b(0x18c)];if((_0xb2d12f==null?void 0x0:_0xb2d12f[_0x24f44b(0x4aa)])===_0x24f44b(0x28d)){let _0xa9efa3=_0x4ef221['fields'][_0xb2d12f[_0x24f44b(0x387)]];if(_0xa9efa3&&_0xa9efa3[_0x24f44b(0x4aa)]===_0x239099[_0x24f44b(0x2fe)])return _0xb2d12f;}if((_0xb2d12f==null?void 0x0:_0xb2d12f[_0x24f44b(0x4aa)])===_0x24f44b(0x261)&&typeof _0xb2d12f['color']==_0x24f44b(0x3e3)&&_0xb2d12f[_0x24f44b(0x545)][_0x24f44b(0x24d)]())return{'type':_0x24f44b(0x261),'color':_0xb2d12f[_0x24f44b(0x545)]};if(_0x56c9fa[_0x24f44b(0x2a9)]){let _0x139587=_0x4ef221[_0x24f44b(0x453)][_0x56c9fa[_0x24f44b(0x2a9)]];if(_0x139587&&_0x139587['type']===_0x239099['SingleSelect'])return{'type':_0x24f44b(0x28d),'fieldId':_0x56c9fa[_0x24f44b(0x2a9)]};}return{'type':_0x24f44b(0x261),'color':_0x24f44b(0x329)};}[_0x282c57(0x19b)](_0x3472d3,_0x65463d,_0x2f108a){const _0x153007=_0x282c57;let _0x28ed14=_0x2f108a[_0x153007(0x18c)];if((_0x28ed14==null?void 0x0:_0x28ed14[_0x153007(0x4aa)])===_0x153007(0x28d)){var _0x448b18;let _0x40015e=_0x3472d3['fields'][_0x28ed14[_0x153007(0x387)]];if(!_0x40015e)return;let _0x59858f=_0x65463d[_0x153007(0x54e)][_0x28ed14[_0x153007(0x387)]],_0x476694=Array[_0x153007(0x3d5)](_0x59858f)?_0x59858f[0x0]:_0x59858f;return _0x476694==null||(_0x448b18=Li(_0x40015e,String(_0x476694)))==null?void 0x0:_0x448b18[_0x153007(0x545)];}if((_0x28ed14==null?void 0x0:_0x28ed14[_0x153007(0x4aa)])==='custom')return _0x28ed14['color'];}[_0x282c57(0x312)](_0x4379de,_0x3d167a,_0x113bfb,_0x1fc7c4){const _0x207910=_0x282c57;var _0x3795ac,_0x4ad493;let _0x3b4830=((_0x3795ac=_0x4379de[_0x207910(0x50c)])==null?void 0x0:_0x3795ac[_0x207910(0x39b)])===!0x0,_0x6d511b=(_0x3d167a==null||(_0x4ad493=_0x3d167a[_0x207910(0x50c)])==null?void 0x0:_0x4ad493[_0x207910(0x39b)])===!0x0;return!_0x3b4830&&!_0x6d511b;}[_0x282c57(0x3d4)](_0x55c2d9,_0x3d506a){const _0x10a24b=_0x282c57;var _0x2fbca3,_0x778fb7;let _0x40cdcb=((_0x2fbca3=_0x55c2d9[_0x10a24b(0x50c)])==null?void 0x0:_0x2fbca3[_0x10a24b(0x39b)])===!0x0,_0xaa4488=((_0x778fb7=_0x3d506a[_0x10a24b(0x50c)])==null?void 0x0:_0x778fb7['includeTime'])===!0x0;return!_0x40cdcb&&!_0xaa4488;}['_buildGantt'](_0x45f54f,_0x3bf5a2){const _0x5c551d=_0x282c57;let _0x34c38b=this[_0x5c551d(0x52e)](_0x45f54f,_0x3bf5a2[_0x5c551d(0x50c)]),_0x123178=_0x45f54f['fields'][_0x34c38b[_0x5c551d(0x282)]];if(!_0x123178||_0x123178[_0x5c551d(0x4aa)]!==_0x239099['Date']||_0x123178[_0x5c551d(0x473)]===!0x0||_0x123178[_0x5c551d(0x43c)]===!0x0||!this[_0x5c551d(0x1c7)](_0x123178)[_0x5c551d(0x315)])return{'type':_0x5c551d(0x269),'viewType':_0x1d9104['Gantt'],'reason':_0x5c551d(0x1bf),'fieldId':_0x34c38b[_0x5c551d(0x282)]};let _0xb3ac61=_0x45f54f[_0x5c551d(0x453)][_0x34c38b['endDateFieldId']];if(!_0xb3ac61||_0xb3ac61[_0x5c551d(0x4aa)]!==_0x239099[_0x5c551d(0x240)]||_0xb3ac61[_0x5c551d(0x473)]===!0x0||_0xb3ac61['system']===!0x0||!this[_0x5c551d(0x1c7)](_0xb3ac61)[_0x5c551d(0x354)])return{'type':'invalid','viewType':_0x1d9104[_0x5c551d(0x46b)],'reason':_0x5c551d(0x4d6),'fieldId':_0x34c38b[_0x5c551d(0x541)]};let _0x5c689f=this[_0x5c551d(0x3d4)](_0x123178,_0xb3ac61),_0x47ef0d=this[_0x5c551d(0x2b1)](_0x45f54f,_0x3bf5a2),_0x3136c4=_0x47ef0d['flatMap'](_0x530d61=>{const _0x1598b7=_0x5c551d;let _0x4c8df3=dn(_0x530d61[_0x1598b7(0x54e)][_0x34c38b[_0x1598b7(0x282)]]),_0x1a3a93=dn(_0x530d61[_0x1598b7(0x54e)][_0x34c38b[_0x1598b7(0x541)]]);if(!Number[_0x1598b7(0x210)](_0x4c8df3)||!Number[_0x1598b7(0x210)](_0x1a3a93))return[];let _0xd18209=Math[_0x1598b7(0x520)](_0x4c8df3,_0x1a3a93),_0x3eb0db=Math[_0x1598b7(0x468)](_0x4c8df3,_0x1a3a93),_0x4ce54a=_0x34c38b[_0x1598b7(0x2cb)]==null?void 0x0:Number(_0x530d61['values'][_0x34c38b[_0x1598b7(0x2cb)]]);return[{'recordId':_0x530d61[_0x1598b7(0x40d)],'title':this[_0x1598b7(0x3f6)](_0x45f54f,_0x530d61,_0x34c38b['titleFieldId']),'start':_0xd18209,'end':_0x3eb0db,'color':this[_0x1598b7(0x449)](_0x45f54f,_0x530d61,_0x34c38b),'progress':Number['isFinite'](_0x4ce54a)?_0x4ce54a:void 0x0,'workingDayCount':_0x34c38b[_0x1598b7(0x533)]?Ti(_0xd18209,_0x3eb0db,_0x34c38b['workingDays']):void 0x0,'dependencyRecordIds':this[_0x1598b7(0x52c)](_0x530d61[_0x1598b7(0x54e)][_0x34c38b[_0x1598b7(0x213)]??''])}];}),_0x389ea3=_0x3136c4['length']?Z(Math['min'](..._0x3136c4[_0x5c551d(0x309)](_0x550009=>_0x550009[_0x5c551d(0x230)]))-0x5a*oi):Z(Date[_0x5c551d(0x42b)]()-0x5a*oi),_0x4aca67=_0x3136c4['length']?Z(Math[_0x5c551d(0x468)](..._0x3136c4['map'](_0x4e937f=>_0x4e937f['end']))+0x5b*oi):Z(Date['now']()+0x5b*oi),_0x3213f9=_i(_0x34c38b[_0x5c551d(0x33f)],_0x389ea3,_0x4aca67,_0x34c38b[_0x5c551d(0x533)]?_0x34c38b[_0x5c551d(0x378)]:void 0x0);return{'type':_0x1d9104[_0x5c551d(0x46b)],'fields':this['_projectFields'](_0x45f54f,{..._0x3bf5a2,'config':_0x34c38b}),'rows':_0x47ef0d,'groups':this[_0x5c551d(0x348)](_0x45f54f,_0x3bf5a2,_0x47ef0d),'config':_0x34c38b,'dateRangeAllDay':_0x5c689f,'timeline':{'scale':_0x34c38b[_0x5c551d(0x33f)],'start':_0x389ea3,'end':_0x4aca67,'unitWidth':_0x3213f9[_0x5c551d(0x419)],'majorHeaders':_0x3213f9[_0x5c551d(0x483)],'columns':_0x3213f9[_0x5c551d(0x297)]},'bars':_0x3136c4};}[_0x282c57(0x52e)](_0x2270cc,_0xce8c4f){const _0x84cd69=_0x282c57;let _0x3c43c8=this[_0x84cd69(0x4ff)](_0x2270cc,_0xce8c4f['startDateFieldId'],'start'),_0x47596d=this[_0x84cd69(0x4ff)](_0x2270cc,_0xce8c4f[_0x84cd69(0x541)],_0x84cd69(0x248))||_0x3c43c8,_0xd221ce=_0xce8c4f[_0x84cd69(0x430)]?_0x2270cc[_0x84cd69(0x453)][_0xce8c4f[_0x84cd69(0x430)]]:void 0x0,_0x47cd26=_0xd221ce&&_0xd221ce[_0x84cd69(0x43c)]!==!0x0&&_0xd221ce[_0x84cd69(0x4aa)]!==_0x239099[_0x84cd69(0x205)]?_0xce8c4f[_0x84cd69(0x430)]:_0x2270cc[_0x84cd69(0x45c)],_0xd7219d=_0xce8c4f[_0x84cd69(0x33f)]==='week'||_0xce8c4f[_0x84cd69(0x33f)]===_0x84cd69(0x509)||_0xce8c4f[_0x84cd69(0x33f)]===_0x84cd69(0x51c)?_0xce8c4f[_0x84cd69(0x33f)]:_0x84cd69(0x319),_0x2961b3=gi(_0xce8c4f[_0x84cd69(0x378)]);return{..._0xce8c4f,'startDateFieldId':_0x3c43c8,'endDateFieldId':_0x47596d,'titleFieldId':_0x47cd26,'scale':_0xd7219d,'leftPaneWidth':typeof _0xce8c4f[_0x84cd69(0x285)]==_0x84cd69(0x389)?_0xce8c4f[_0x84cd69(0x285)]:void 0x0,'leftPaneCollapsed':_0xce8c4f[_0x84cd69(0x280)]===!0x0,'showTodayLine':_0xce8c4f[_0x84cd69(0x54a)]!==!0x1,'displayColor':this['_normalizeGanttDisplayColor'](_0x2270cc,_0xce8c4f),'fieldSettings':Object[_0x84cd69(0x1af)](Object[_0x84cd69(0x41d)](_0xce8c4f[_0x84cd69(0x272)]??{})[_0x84cd69(0x4cc)](([_0x4dc4c9])=>{const _0x41ae29=_0x84cd69;let _0x2e1f4f=_0x2270cc[_0x41ae29(0x453)][_0x4dc4c9];return!!(_0x2e1f4f&&_0x2e1f4f[_0x41ae29(0x43c)]!==!0x0&&_0x2e1f4f[_0x41ae29(0x4aa)]!==_0x239099['RecordId']);})),'workingDaysOnly':_0xce8c4f[_0x84cd69(0x533)]===!0x0,'workingDays':_0x2961b3};}[_0x282c57(0x4ff)](_0x842770,_0x52134c,_0x593d75){const _0x41ca83=_0x282c57;if(_0x52134c&&this[_0x41ca83(0x30d)](_0x842770,_0x52134c,_0x593d75)||_0x52134c)return _0x52134c;for(let _0xfdc770 of _0x842770[_0x41ca83(0x534)])if(this['_isGanttDateField'](_0x842770,_0xfdc770,_0x593d75))return _0xfdc770;return _0x52134c??'';}[_0x282c57(0x30d)](_0x3360ca,_0x372b25,_0x4a9dc4){const _0x22128a=_0x282c57;let _0x197249=_0x3360ca[_0x22128a(0x453)][_0x372b25];if(!_0x197249||_0x197249[_0x22128a(0x4aa)]!==_0x239099['Date']||_0x197249[_0x22128a(0x473)]===!0x0||_0x197249[_0x22128a(0x43c)]===!0x0)return!0x1;let _0x1b1f55=this[_0x22128a(0x1c7)](_0x197249);return _0x4a9dc4===_0x22128a(0x230)?_0x1b1f55[_0x22128a(0x315)]:_0x1b1f55[_0x22128a(0x354)];}[_0x282c57(0x518)](_0xd21355,_0x2f8b6a){const _0xa5ad03=_0x282c57;let _0x2bde73=_0x2f8b6a[_0xa5ad03(0x18c)];if((_0x2bde73==null?void 0x0:_0x2bde73['type'])==='selectField'){let _0x37485c=_0xd21355[_0xa5ad03(0x453)][_0x2bde73[_0xa5ad03(0x387)]];if(_0x37485c&&_0x37485c[_0xa5ad03(0x4aa)]===_0x239099['SingleSelect'])return _0x2bde73;}return(_0x2bde73==null?void 0x0:_0x2bde73[_0xa5ad03(0x4aa)])===_0xa5ad03(0x38d)&&Array[_0xa5ad03(0x3d5)](_0x2bde73[_0xa5ad03(0x1dd)])?{'type':_0xa5ad03(0x38d),'rules':_0x2bde73[_0xa5ad03(0x1dd)]['filter'](_0x12339c=>!!_0xd21355['fields'][_0x12339c[_0xa5ad03(0x387)]])}:(_0x2bde73==null?void 0x0:_0x2bde73[_0xa5ad03(0x4aa)])===_0xa5ad03(0x261)&&typeof _0x2bde73[_0xa5ad03(0x545)]==_0xa5ad03(0x3e3)&&_0x2bde73['color'][_0xa5ad03(0x24d)]()?{'type':_0xa5ad03(0x261),'color':_0x2bde73[_0xa5ad03(0x545)]}:{'type':_0xa5ad03(0x261),'color':_0xa5ad03(0x351)};}['_ganttBarColor'](_0x19e6ed,_0x266944,_0x3b623b){const _0x215a4c=_0x282c57;let _0x266cd9=_0x3b623b[_0x215a4c(0x18c)];if((_0x266cd9==null?void 0x0:_0x266cd9[_0x215a4c(0x4aa)])===_0x215a4c(0x38d)){let _0x473219=_0x266cd9[_0x215a4c(0x1dd)]['find'](_0x418d00=>this[_0x215a4c(0x221)](_0x19e6ed,_0x266944,_0x418d00));if(_0x473219)return _0x473219[_0x215a4c(0x545)];}if((_0x266cd9==null?void 0x0:_0x266cd9[_0x215a4c(0x4aa)])===_0x215a4c(0x28d)){let _0xd32570=_0x19e6ed[_0x215a4c(0x453)][_0x266cd9[_0x215a4c(0x387)]];if(_0xd32570){var _0x308290;let _0x2aa152=_0x266944[_0x215a4c(0x54e)][_0x266cd9['fieldId']],_0x4b8c97=Array[_0x215a4c(0x3d5)](_0x2aa152)?_0x2aa152[0x0]:_0x2aa152,_0x178c56=_0x4b8c97==null||(_0x308290=Li(_0xd32570,String(_0x4b8c97)))==null?void 0x0:_0x308290[_0x215a4c(0x545)];if(_0x178c56)return _0x178c56;}}return(_0x266cd9==null?void 0x0:_0x266cd9[_0x215a4c(0x4aa)])==='custom'?_0x266cd9[_0x215a4c(0x545)]:'#14b8a6';}[_0x282c57(0x221)](_0x10f8bb,_0x3d46ff,_0x2844bb){const _0x1c5282=_0x282c57;let _0x2aecf4=_0x10f8bb[_0x1c5282(0x453)][_0x2844bb[_0x1c5282(0x387)]];return _0x2aecf4?xn(_0x3d46ff['values'][_0x2aecf4['id']],_0x2844bb['operator'],_0x2844bb[_0x1c5282(0x24c)],_0x2aecf4,{'dateMode':_0x2844bb[_0x1c5282(0x51a)]}):!0x1;}[_0x282c57(0x3e6)](_0x591ff1,_0x32bf9e){const _0x8b3566=_0x282c57;let _0x56c551=this['_projectRows'](_0x591ff1,_0x32bf9e),_0x226729=this['_normalizeGalleryConfig'](_0x591ff1,_0x32bf9e['config']??{}),_0x203232=this['_projectFields'](_0x591ff1,_0x32bf9e);return{'type':_0x1d9104[_0x8b3566(0x2dd)],'fields':_0x203232,'rows':_0x56c551,'groups':this[_0x8b3566(0x348)](_0x591ff1,_0x32bf9e,_0x56c551),'titleFieldId':_0x226729[_0x8b3566(0x1c6)][_0x8b3566(0x430)],'coverFieldId':_0x226729[_0x8b3566(0x2b6)],'cardLayout':_0x226729[_0x8b3566(0x316)]??_0x8b3566(0x3b3),'showFieldNames':_0x226729[_0x8b3566(0x299)]!==!0x1,'visibleCardFieldIds':this[_0x8b3566(0x36f)](_0x591ff1,_0x32bf9e,_0x226729),'cardSize':_0x226729[_0x8b3566(0x4a4)]??_0x8b3566(0x4c7),'cards':_0x56c551['map'](_0x7c0c73=>({'recordId':_0x7c0c73[_0x8b3566(0x40d)],'title':this['_title'](_0x591ff1,_0x7c0c73,_0x226729['card']['titleFieldId']),'values':_0x7c0c73['values']}))};}[_0x282c57(0x472)](_0x1b94d5,_0x2d80f0){const _0x28b29d=_0x282c57;let _0x35d95c=_0x2d80f0[_0x28b29d(0x1c6)]??{'fieldIds':[]},_0x19d546=this['_resolveCardTitleFieldId'](_0x1b94d5,_0x35d95c[_0x28b29d(0x430)]),_0x593d5a=this[_0x28b29d(0x278)](_0x1b94d5,_0x2d80f0),_0x224cc1=_0x2d80f0[_0x28b29d(0x4a4)]===_0x28b29d(0x52d)||_0x2d80f0[_0x28b29d(0x4a4)]===_0x28b29d(0x30f)?_0x2d80f0[_0x28b29d(0x4a4)]:'medium';return{..._0x2d80f0,'coverFieldId':_0x593d5a,'cardLayout':_0x2d80f0[_0x28b29d(0x316)]==='compose'?_0x28b29d(0x3ad):'normal','showFieldNames':_0x2d80f0[_0x28b29d(0x299)]!==!0x1,'fieldSettings':Object['fromEntries'](Object[_0x28b29d(0x41d)](_0x2d80f0[_0x28b29d(0x272)]??{})[_0x28b29d(0x4cc)](([_0x5629b8])=>{const _0x4901bd=_0x28b29d;let _0x32ad9e=_0x1b94d5[_0x4901bd(0x453)][_0x5629b8];return!!(_0x32ad9e&&_0x32ad9e[_0x4901bd(0x43c)]!==!0x0&&_0x32ad9e[_0x4901bd(0x4aa)]!==_0x239099['RecordId']);})),'card':{..._0x35d95c,'titleFieldId':_0x19d546,'coverFieldId':_0x593d5a,'fieldIds':Array[_0x28b29d(0x3d5)](_0x35d95c[_0x28b29d(0x25f)])?_0x35d95c[_0x28b29d(0x25f)]:[]},'cardSize':_0x224cc1};}[_0x282c57(0x55a)](_0x2c095b,_0x4d4c86){const _0x13e7ea=_0x282c57;let _0x17e9ee=_0x4d4c86?_0x2c095b['fields'][_0x4d4c86]:void 0x0;return _0x17e9ee&&_0x17e9ee[_0x13e7ea(0x43c)]!==!0x0&&_0x17e9ee['type']!==_0x239099['RecordId']?_0x17e9ee['id']:Zr(_0x2c095b);}[_0x282c57(0x278)](_0x1eafad,_0x9e6b4f){const _0x260a71=_0x282c57;var _0x11ca0d;let _0xee8502=_0x9e6b4f[_0x260a71(0x2b6)]??((_0x11ca0d=_0x9e6b4f['card'])==null?void 0x0:_0x11ca0d['coverFieldId'])??null;if(!_0xee8502)return null;let _0x29412a=_0x1eafad[_0x260a71(0x453)][_0xee8502];return _0x29412a&&this[_0x260a71(0x1c7)](_0x29412a)['usableAsCardCover']?_0x29412a['id']:null;}[_0x282c57(0x36f)](_0x17a80c,_0x453d83,_0x5b63aa){const _0x1261e5=_0x282c57;var _0x3efd08,_0x29fa8b,_0x54ae59;let _0x4794a1=_0x5b63aa[_0x1261e5(0x272)]??{},_0x164cd9=((_0x3efd08=_0x5b63aa[_0x1261e5(0x1c6)])==null?void 0x0:_0x3efd08[_0x1261e5(0x430)])??Zr(_0x17a80c),_0x52f93d=_0x5b63aa[_0x1261e5(0x2b6)]??((_0x29fa8b=_0x5b63aa[_0x1261e5(0x1c6)])==null?void 0x0:_0x29fa8b[_0x1261e5(0x2b6)])??null,_0x4bce79=(_0x54ae59=_0x5b63aa[_0x1261e5(0x1c6)])!=null&&(_0x54ae59=_0x54ae59[_0x1261e5(0x25f)])!=null&&_0x54ae59['length']?_0x5b63aa[_0x1261e5(0x1c6)][_0x1261e5(0x25f)]:Qr(_0x17a80c,[_0x164cd9,_0x52f93d,_0x17a80c[_0x1261e5(0x45c)]]);return _0x4bce79[_0x1261e5(0x4cc)](_0x2d6b54=>{const _0x442f7f=_0x1261e5;var _0x540b47,_0x1557fe;let _0x3ef7d5=_0x17a80c[_0x442f7f(0x453)][_0x2d6b54];return!(!_0x3ef7d5||_0x3ef7d5[_0x442f7f(0x43c)]===!0x0||_0x3ef7d5[_0x442f7f(0x4aa)]===_0x239099[_0x442f7f(0x205)]||_0x3ef7d5['id']===_0x164cd9||_0x3ef7d5['id']===_0x52f93d||(_0x540b47=_0x453d83['fieldSettings'])!=null&&(_0x540b47=_0x540b47[_0x2d6b54])!=null&&_0x540b47[_0x442f7f(0x194)]||(_0x1557fe=_0x4794a1[_0x2d6b54])!=null&&_0x1557fe[_0x442f7f(0x194)]);})[_0x1261e5(0x1df)]((_0x2609a8,_0x56d7e7)=>{const _0x1270af=_0x1261e5;var _0x3ec70a,_0x3e2523;return(((_0x3ec70a=_0x4794a1[_0x2609a8])==null?void 0x0:_0x3ec70a[_0x1270af(0x51d)])??_0x4bce79[_0x1270af(0x1f4)](_0x2609a8))-(((_0x3e2523=_0x4794a1[_0x56d7e7])==null?void 0x0:_0x3e2523[_0x1270af(0x51d)])??_0x4bce79[_0x1270af(0x1f4)](_0x56d7e7));});}[_0x282c57(0x420)](_0x5bafae,_0x5d1712){const _0x1b17b1=_0x282c57;var _0x380127;return((_0x380127=_0x5d1712['fieldOrder'])!=null&&_0x380127['length']?_0x5d1712[_0x1b17b1(0x534)]:_0x5bafae[_0x1b17b1(0x534)])[_0x1b17b1(0x26a)](_0x17be38=>{const _0x4d7f7c=_0x1b17b1;var _0x5ad388;let _0x14348e=_0x5bafae[_0x4d7f7c(0x453)][_0x17be38],_0x38a090=((_0x5ad388=_0x5d1712[_0x4d7f7c(0x272)])==null?void 0x0:_0x5ad388[_0x17be38])??{};return!_0x14348e||_0x14348e['system']===!0x0||_0x14348e['type']===_0x239099[_0x4d7f7c(0x205)]||_0x38a090[_0x4d7f7c(0x194)]?[]:[{'id':_0x14348e['id'],'name':_0x14348e[_0x4d7f7c(0x2f4)],'description':_0x14348e[_0x4d7f7c(0x290)],'type':_0x14348e[_0x4d7f7c(0x4aa)],'config':_0x14348e['config'],'width':_0x38a090[_0x4d7f7c(0x361)],'setting':_0x38a090}];});}[_0x282c57(0x2b1)](_0x23e6b7,_0x4315ff){const _0x109bd4=_0x282c57;var _0x350477;return I(_0x109bd4(0x40e),()=>{const _0x58e41e=_0x109bd4;var _0xb9aacb,_0xc2579d;let _0x1fe4ac=this[_0x58e41e(0x36d)](_0x23e6b7),_0x5120af=this[_0x58e41e(0x47d)](_0x23e6b7['id'],_0x4315ff),_0x1c3a8a=this[_0x58e41e(0x2c9)](_0x23e6b7['id']),_0x4b59ca=this[_0x58e41e(0x494)][_0x58e41e(0x268)](_0x5120af);if(_0x4b59ca&&_0x4b59ca[_0x58e41e(0x271)]===this[_0x58e41e(0x492)]&&_0x4b59ca[_0x58e41e(0x332)]===this['_getTableRevision'](_0x23e6b7['id'])){if(_0x4b59ca['cellRevision']===_0x1c3a8a&&_0x4b59ca[_0x58e41e(0x38f)]===_0x1fe4ac)return _0x4b59ca[_0x58e41e(0x535)];if(_0x4b59ca[_0x58e41e(0x29f)]!==_0x1c3a8a&&!this[_0x58e41e(0x3c4)](_0x23e6b7['id'],_0x4b59ca[_0x58e41e(0x29f)],_0x1c3a8a,this[_0x58e41e(0x255)](_0x4315ff))){let _0x6a7a4c=_0x4b59ca['rows']===_0x4b59ca['baseRows']?_0x1fe4ac:this[_0x58e41e(0x50a)](_0x4b59ca[_0x58e41e(0x535)],_0x1fe4ac);if(_0x6a7a4c)return this[_0x58e41e(0x494)]['set'](_0x5120af,{..._0x4b59ca,'rows':_0x6a7a4c,'baseRows':_0x1fe4ac,'cellRevision':_0x1c3a8a}),_0x6a7a4c;}}let _0x7ddcc3=I(_0x58e41e(0x47f),()=>this['_sortRows'](_0x23e6b7,_0x4315ff,this[_0x58e41e(0x527)](_0x23e6b7,_0x4315ff,_0x1fe4ac)),{'tableId':_0x23e6b7['id'],'viewId':_0x4315ff==null?void 0x0:_0x4315ff['id'],'viewType':_0x4315ff==null?void 0x0:_0x4315ff[_0x58e41e(0x4aa)],'rows':_0x1fe4ac['length'],'filters':(_0x4315ff==null||(_0xb9aacb=_0x4315ff[_0x58e41e(0x4cc)])==null?void 0x0:_0xb9aacb[_0x58e41e(0x3d8)]['length'])??0x0,'sorts':(_0x4315ff==null||(_0xc2579d=_0x4315ff[_0x58e41e(0x1df)])==null?void 0x0:_0xc2579d[_0x58e41e(0x4ab)])??0x0});return this[_0x58e41e(0x494)]['set'](_0x5120af,{'table':_0x23e6b7,'rows':_0x7ddcc3,'baseRows':_0x1fe4ac,'globalRevision':this[_0x58e41e(0x492)],'tableRevision':this[_0x58e41e(0x398)](_0x23e6b7['id']),'cellRevision':_0x1c3a8a}),_0x7ddcc3;},{'tableId':_0x23e6b7['id'],'viewId':_0x4315ff==null?void 0x0:_0x4315ff['id'],'viewType':_0x4315ff==null?void 0x0:_0x4315ff[_0x109bd4(0x4aa)],'records':((_0x350477=_0x23e6b7[_0x109bd4(0x413)])==null?void 0x0:_0x350477[_0x109bd4(0x4ab)])??Object[_0x109bd4(0x334)](_0x23e6b7[_0x109bd4(0x1e1)]??{})[_0x109bd4(0x4ab)]});}['_projectTableRows'](_0x84dd43){const _0x3264d3=_0x282c57;var _0x1186bf;return I(_0x3264d3(0x275),()=>{const _0x112302=_0x3264d3;var _0x202b25;let _0x496e61=this['_getCellRevision'](_0x84dd43['id']),_0xaec28a=this['_projectedRowsCache'][_0x112302(0x268)](_0x84dd43['id']);if(_0xaec28a&&_0xaec28a[_0x112302(0x271)]===this[_0x112302(0x492)]&&_0xaec28a[_0x112302(0x332)]===this[_0x112302(0x398)](_0x84dd43['id'])){if(_0xaec28a[_0x112302(0x29f)]===_0x496e61&&fi(_0xaec28a[_0x112302(0x270)],_0x84dd43))return _0xaec28a[_0x112302(0x270)]=_0x84dd43,_0xaec28a[_0x112302(0x535)];let _0x5835b1=this[_0x112302(0x40a)](_0x84dd43,_0xaec28a,_0x496e61);if(_0x5835b1)return _0x5835b1;}ui(_0x84dd43)||L(_0x84dd43);let _0xf1daf8=(_0x202b25=_0x84dd43[_0x112302(0x413)])!=null&&_0x202b25['length']?_0x84dd43[_0x112302(0x413)]:hi(_0x84dd43[_0x112302(0x1e1)]),_0x1de124=I(_0x112302(0x3e4),()=>{const _0x578df3=_0x112302;let _0x193c2f=[];for(let _0x152ee6 of _0xf1daf8){let _0x11591c=_0x84dd43[_0x578df3(0x1e1)][_0x152ee6];if(!_0x11591c)continue;let _0x39f0a4={};for(let _0x5379d1 of _0x84dd43[_0x578df3(0x534)])_0x39f0a4[_0x5379d1]=yt(_0x84dd43,_0x11591c['id'],_0x5379d1);_0x193c2f['push']({'recordId':_0x11591c['id'],'values':_0x39f0a4});}return _0x193c2f;},{'tableId':_0x84dd43['id'],'records':_0xf1daf8[_0x112302(0x4ab)],'fields':_0x84dd43[_0x112302(0x534)][_0x112302(0x4ab)]});return this[_0x112302(0x4c5)][_0x112302(0x246)](_0x84dd43['id'],{'table':_0x84dd43,'rows':_0x1de124,'rowIndexById':li(_0x1de124),'globalRevision':this[_0x112302(0x492)],'tableRevision':this[_0x112302(0x398)](_0x84dd43['id']),'cellRevision':_0x496e61}),_0x1de124;},{'tableId':_0x84dd43['id'],'records':((_0x1186bf=_0x84dd43[_0x3264d3(0x413)])==null?void 0x0:_0x1186bf['length'])??Object[_0x3264d3(0x334)](_0x84dd43[_0x3264d3(0x1e1)]??{})[_0x3264d3(0x4ab)],'fields':_0x84dd43['fieldOrder']['length']});}['_patchProjectedRowsForCellInvalidations'](_0x2ae1fb,_0x151142,_0x4833f3){const _0x5559fb=_0x282c57;let _0x470bae=(this['_cellInvalidations']['get'](_0x2ae1fb['id'])??[])[_0x5559fb(0x4cc)](_0x5efe48=>_0x5efe48[_0x5559fb(0x258)]>_0x151142[_0x5559fb(0x29f)]&&_0x5efe48[_0x5559fb(0x258)]<=_0x4833f3);if(!_0x470bae[_0x5559fb(0x4ab)])return _0x151142[_0x5559fb(0x270)]===_0x2ae1fb?_0x151142[_0x5559fb(0x535)]:null;let _0x4ef977=_0x151142[_0x5559fb(0x535)],_0x210e10=new Map();for(let _0x2e23c8 of _0x470bae){let _0x53f483=_0x210e10['get'](_0x2e23c8[_0x5559fb(0x40d)]);_0x53f483||(_0x53f483=new Set(),_0x210e10['set'](_0x2e23c8[_0x5559fb(0x40d)],_0x53f483)),_0x53f483['add'](_0x2e23c8[_0x5559fb(0x387)]);}for(let [_0x94ad3,_0x1bab00]of _0x210e10){if(!_0x2ae1fb[_0x5559fb(0x1e1)][_0x94ad3])return null;let _0x42ab02=_0x151142[_0x5559fb(0x503)][_0x5559fb(0x268)](_0x94ad3);if(_0x42ab02==null)return null;_0x4ef977===_0x151142[_0x5559fb(0x535)]&&(_0x4ef977=[..._0x151142[_0x5559fb(0x535)]]);let _0x14f4cd=_0x4ef977[_0x42ab02],_0x575e04={..._0x14f4cd[_0x5559fb(0x54e)]};_0x1bab00[_0x5559fb(0x34b)](_0x2d6011=>{_0x575e04[_0x2d6011]=yt(_0x2ae1fb,_0x94ad3,_0x2d6011);}),_0x4ef977[_0x42ab02]={..._0x14f4cd,'values':_0x575e04};}let _0x50afc6={'table':_0x2ae1fb,'rows':_0x4ef977,'rowIndexById':_0x151142[_0x5559fb(0x503)],'globalRevision':this['_globalRevision'],'tableRevision':this[_0x5559fb(0x398)](_0x2ae1fb['id']),'cellRevision':_0x4833f3};return this['_projectedRowsCache']['set'](_0x2ae1fb['id'],_0x50afc6),this[_0x5559fb(0x4bc)][_0x5559fb(0x246)](_0x2ae1fb['id'],(this[_0x5559fb(0x4bc)]['get'](_0x2ae1fb['id'])??[])['filter'](_0x5a0924=>_0x5a0924[_0x5559fb(0x258)]>Math[_0x5559fb(0x468)](0x0,_0x4833f3-0x100))),_0x4ef977;}[_0x282c57(0x50a)](_0x48d95c,_0x1f07b9){const _0x5581bc=_0x282c57;let _0x25bd3b=new Map(_0x1f07b9['map'](_0x1d644a=>[_0x1d644a[_0x5581bc(0x40d)],_0x1d644a])),_0x4fd57e=!0x1,_0x2b568d=_0x48d95c[_0x5581bc(0x309)](_0x180f4e=>{const _0x5daebc=_0x5581bc;let _0x120e73=_0x25bd3b[_0x5daebc(0x268)](_0x180f4e[_0x5daebc(0x40d)]);return _0x120e73?_0x120e73===_0x180f4e?_0x180f4e:(_0x4fd57e=!0x0,_0x120e73):_0x180f4e;});return _0x4fd57e?_0x2b568d:_0x48d95c;}[_0x282c57(0x3c4)](_0x2a343d,_0x22ec13,_0x372522,_0x1c4c11){const _0x3689ee=_0x282c57;return!_0x1c4c11[_0x3689ee(0x286)]||_0x22ec13===_0x372522?!0x1:_0x372522-_0x22ec13>0x100||(this[_0x3689ee(0x4bc)]['get'](_0x2a343d)??[])[_0x3689ee(0x436)](_0x48b0a0=>_0x48b0a0[_0x3689ee(0x258)]>_0x22ec13&&_0x48b0a0['revision']<=_0x372522&&_0x1c4c11[_0x3689ee(0x25c)](_0x48b0a0['fieldId']));}[_0x282c57(0x255)](_0x38a918){const _0x18d88c=_0x282c57;var _0x312e55,_0x1fa3fc;let _0x4b7f37=new Set();return _0x38a918==null||(_0x312e55=_0x38a918[_0x18d88c(0x4cc)])==null||_0x312e55[_0x18d88c(0x3d8)][_0x18d88c(0x34b)](_0x663166=>_0x4b7f37[_0x18d88c(0x551)](_0x663166['fieldId'])),_0x38a918==null||(_0x1fa3fc=_0x38a918[_0x18d88c(0x1df)])==null||_0x1fa3fc['forEach'](_0x4020c7=>_0x4b7f37[_0x18d88c(0x551)](_0x4020c7[_0x18d88c(0x387)])),_0x4b7f37;}[_0x282c57(0x215)](_0xa8b314){const _0x5c19f0=_0x282c57;var _0xca3cdf;let _0x33ed8b=this[_0x5c19f0(0x255)](_0xa8b314);return(_0xca3cdf=_0xa8b314[_0x5c19f0(0x359)])==null||_0xca3cdf[_0x5c19f0(0x34b)](_0x5ce0b8=>_0x33ed8b['add'](_0x5ce0b8[_0x5c19f0(0x387)])),_0x33ed8b;}[_0x282c57(0x527)](_0x38c1fd,_0x2f0b2e,_0x3ac95f){const _0x468dfb=_0x282c57;let _0x40c300=_0x2f0b2e==null?void 0x0:_0x2f0b2e[_0x468dfb(0x4cc)];if(!(_0x40c300!=null&&_0x40c300[_0x468dfb(0x3d8)][_0x468dfb(0x4ab)]))return _0x3ac95f;let _0x1a97ea=_0x40c300[_0x468dfb(0x3d8)][_0x468dfb(0x4cc)](_0x247e27=>!Ii(_0x247e27));return _0x1a97ea[_0x468dfb(0x4ab)]?_0x3ac95f[_0x468dfb(0x4cc)](_0x2b7cbe=>{const _0x149323=_0x468dfb;if(_0x40c300[_0x149323(0x32c)]===_0x2528f1['OR']){for(let _0x10f3c3 of _0x1a97ea){let _0x2e89ed=_0x38c1fd[_0x149323(0x453)][_0x10f3c3[_0x149323(0x387)]];if(!_0x2e89ed||this[_0x149323(0x395)]['get'](_0x2e89ed['type'])[_0x149323(0x4cc)](_0x2b7cbe['values'][_0x2e89ed['id']],_0x10f3c3[_0x149323(0x307)],_0x10f3c3[_0x149323(0x24c)],_0x2e89ed))return!0x0;}return!0x1;}for(let _0x4bba4e of _0x1a97ea){let _0x1be4c6=_0x38c1fd[_0x149323(0x453)][_0x4bba4e['fieldId']];if(_0x1be4c6&&!this['_fieldRegistry'][_0x149323(0x268)](_0x1be4c6[_0x149323(0x4aa)])[_0x149323(0x4cc)](_0x2b7cbe['values'][_0x1be4c6['id']],_0x4bba4e['operator'],_0x4bba4e[_0x149323(0x24c)],_0x1be4c6))return!0x1;}return!0x0;}):_0x3ac95f;}[_0x282c57(0x3d2)](_0x463ab3,_0x38881e,_0x3c8290){const _0x2ec346=_0x282c57;let _0x2505d2=(_0x38881e==null?void 0x0:_0x38881e[_0x2ec346(0x1df)])??[];if(!_0x2505d2[_0x2ec346(0x4ab)])return _0x3c8290;let _0x5e7da9=_0x2505d2['flatMap'](_0x34d629=>{const _0x5ba668=_0x2ec346;let _0x111b63=_0x463ab3[_0x5ba668(0x453)][_0x34d629[_0x5ba668(0x387)]];return _0x111b63?[{..._0x34d629,'field':_0x111b63}]:[];});return _0x5e7da9[_0x2ec346(0x4ab)]?this[_0x2ec346(0x554)](_0x5e7da9)?this['_fastSortRows'](_0x5e7da9,_0x3c8290):[..._0x3c8290][_0x2ec346(0x1df)]((_0x1f402b,_0x5d1368)=>{const _0x41ad26=_0x2ec346;for(let _0x5d8948 of _0x5e7da9){let _0x4933ea=_0x5d8948[_0x41ad26(0x2d9)],_0x2b3fe6=this[_0x41ad26(0x395)][_0x41ad26(0x268)](_0x4933ea[_0x41ad26(0x4aa)])[_0x41ad26(0x3d7)](_0x1f402b[_0x41ad26(0x54e)][_0x4933ea['id']],_0x5d1368['values'][_0x4933ea['id']],_0x4933ea);if(_0x2b3fe6!==0x0)return _0x5d8948[_0x41ad26(0x292)]===_0x111a17[_0x41ad26(0x4a5)]?-_0x2b3fe6:_0x2b3fe6;}return 0x0;}):_0x3c8290;}[_0x282c57(0x554)](_0x4bf492){const _0x3c87b3=_0x282c57;return _0x4bf492[_0x3c87b3(0x300)](_0xa952d9=>ai[_0x3c87b3(0x25c)](_0xa952d9[_0x3c87b3(0x2d9)][_0x3c87b3(0x4aa)]));}[_0x282c57(0x3f8)](_0x593928,_0x33a248){const _0x7faa6c=_0x282c57;return _0x33a248['map']((_0x14d371,_0x46eaf0)=>({'row':_0x14d371,'index':_0x46eaf0,'keys':_0x593928[_0x7faa6c(0x309)](_0x36aab2=>_0x14d371[_0x7faa6c(0x54e)][_0x36aab2[_0x7faa6c(0x387)]])}))[_0x7faa6c(0x1df)]((_0x217770,_0x59528f)=>{const _0x5cb8bb=_0x7faa6c;for(let _0x4feea2=0x0;_0x4feea2<_0x593928[_0x5cb8bb(0x4ab)];_0x4feea2++){let _0x543ef7=Fi(_0x217770[_0x5cb8bb(0x334)][_0x4feea2],_0x59528f['keys'][_0x4feea2]);if(_0x543ef7!==0x0)return _0x593928[_0x4feea2]['direction']===_0x111a17['DESC']?-_0x543ef7:_0x543ef7;}return _0x217770[_0x5cb8bb(0x198)]-_0x59528f[_0x5cb8bb(0x198)];})[_0x7faa6c(0x309)](_0x1c32ae=>_0x1c32ae['row']);}[_0x282c57(0x348)](_0x3a0d20,_0x4bdfae,_0x35e814){const _0x51a26d=_0x282c57;var _0x5f0d02;return I(_0x51a26d(0x3c6),()=>{const _0x45bb5d=_0x51a26d;var _0x32cb83;if(!((_0x32cb83=_0x4bdfae['group'])!=null&&_0x32cb83[_0x45bb5d(0x4ab)]))return[];let _0x2962f=_0x4bdfae[_0x45bb5d(0x359)][_0x45bb5d(0x4cc)](_0x1541bf=>_0x3a0d20['fields'][_0x1541bf['fieldId']]);if(!_0x2962f[_0x45bb5d(0x4ab)])return[];let _0x566619=this['_groupsCacheKey'](_0x3a0d20['id'],_0x4bdfae,_0x2962f),_0x452542=this[_0x45bb5d(0x2c9)](_0x3a0d20['id']),_0x1b9e93=this[_0x45bb5d(0x4c8)][_0x45bb5d(0x268)](_0x566619);if(_0x1b9e93&&_0x1b9e93['globalRevision']===this[_0x45bb5d(0x492)]&&_0x1b9e93[_0x45bb5d(0x332)]===this[_0x45bb5d(0x398)](_0x3a0d20['id'])){if(_0x1b9e93[_0x45bb5d(0x29f)]===_0x452542&&_0x1b9e93[_0x45bb5d(0x535)]===_0x35e814)return _0x1b9e93[_0x45bb5d(0x197)];if(_0x1b9e93['cellRevision']!==_0x452542&&!this[_0x45bb5d(0x3c4)](_0x3a0d20['id'],_0x1b9e93[_0x45bb5d(0x29f)],_0x452542,this[_0x45bb5d(0x215)](_0x4bdfae)))return this[_0x45bb5d(0x4c8)][_0x45bb5d(0x246)](_0x566619,{..._0x1b9e93,'rows':_0x35e814,'cellRevision':_0x452542}),_0x1b9e93[_0x45bb5d(0x197)];}let _0x1c16f5=new Map();for(let _0x26f071 of _0x35e814){let _0x1f4628=_0x1c16f5,_0x578e90='';for(let _0x5d6967=0x0;_0x5d6967<_0x2962f[_0x45bb5d(0x4ab)];_0x5d6967++){let _0x4f2354=_0x2962f[_0x5d6967],_0x559ba6=_0x26f071['values'][_0x4f2354[_0x45bb5d(0x387)]],_0x1eb607=ci(_0x559ba6),_0x1cba57=_0x4f2354[_0x45bb5d(0x387)]+'\x00'+_0x1eb607,_0x5afc47=_0x578e90+'/'+_0x4f2354[_0x45bb5d(0x387)]+':'+_0x1eb607,_0x3b02fa=_0x1f4628[_0x45bb5d(0x268)](_0x1cba57);_0x3b02fa||(_0x3b02fa={'key':_0x1eb607,'value':_0x559ba6,'path':_0x5afc47,'label':_0x1eb607||_0x45bb5d(0x3c9),'fieldId':_0x4f2354[_0x45bb5d(0x387)],'level':_0x5d6967,'recordIds':[],'children':new Map()},_0x1f4628[_0x45bb5d(0x246)](_0x1cba57,_0x3b02fa)),_0x3b02fa['recordIds'][_0x45bb5d(0x381)](_0x26f071[_0x45bb5d(0x40d)]),_0x1f4628=_0x3b02fa[_0x45bb5d(0x4fc)],_0x578e90=_0x5afc47;}}let _0xf04a7c=this['_materializeGroups'](_0x2962f,_0x1c16f5,0x0);return this[_0x45bb5d(0x4c8)][_0x45bb5d(0x246)](_0x566619,{'table':_0x3a0d20,'rows':_0x35e814,'groups':_0xf04a7c,'globalRevision':this[_0x45bb5d(0x492)],'tableRevision':this[_0x45bb5d(0x398)](_0x3a0d20['id']),'cellRevision':_0x452542}),_0xf04a7c;},{'tableId':_0x3a0d20['id'],'viewId':_0x4bdfae['id'],'viewType':_0x4bdfae['type'],'rows':_0x35e814[_0x51a26d(0x4ab)],'groupFields':((_0x5f0d02=_0x4bdfae[_0x51a26d(0x359)])==null?void 0x0:_0x5f0d02['length'])??0x0});}[_0x282c57(0x2a7)](_0x5e2137,_0x2fb09c,_0x2bb81e){const _0x52067b=_0x282c57;var _0x56dd64;let _0x21b0e7=Array[_0x52067b(0x2f3)](_0x2fb09c[_0x52067b(0x54e)]()),_0x42e47c=(_0x56dd64=_0x5e2137[_0x2bb81e])==null?void 0x0:_0x56dd64[_0x52067b(0x292)];return _0x42e47c&&_0x21b0e7[_0x52067b(0x1df)]((_0x48da67,_0x5f15cf)=>{const _0xaf72d3=_0x52067b;let _0x3ccfae=_0x48da67[_0xaf72d3(0x34d)]['localeCompare'](_0x5f15cf[_0xaf72d3(0x34d)]);return _0x42e47c===_0x111a17[_0xaf72d3(0x4a5)]?-_0x3ccfae:_0x3ccfae;}),_0x21b0e7[_0x52067b(0x309)](_0x5315e7=>({'key':_0x5315e7[_0x52067b(0x34d)],'value':_0x5315e7[_0x52067b(0x373)],'path':_0x5315e7[_0x52067b(0x3a4)],'label':_0x5315e7[_0x52067b(0x19c)],'fieldId':_0x5315e7[_0x52067b(0x387)],'level':_0x5315e7[_0x52067b(0x372)],'recordIds':_0x5315e7['recordIds'],'children':this[_0x52067b(0x2a7)](_0x5e2137,_0x5315e7[_0x52067b(0x4fc)],_0x2bb81e+0x1)}));}[_0x282c57(0x3f6)](_0x1bc4c6,_0x30c622,_0x1de7cb){const _0x1dbbf2=_0x282c57;let _0x522981=_0x1de7cb??_0x1bc4c6[_0x1dbbf2(0x45c)],_0x2d3783=_0x30c622[_0x1dbbf2(0x54e)][_0x522981];return _0x2d3783==null?'':String(_0x2d3783);}[_0x282c57(0x52c)](_0x229a61){const _0x38ea05=_0x282c57;if(Array[_0x38ea05(0x3d5)](_0x229a61))return _0x229a61[_0x38ea05(0x309)](String);if(typeof _0x229a61==_0x38ea05(0x3e3)&&_0x229a61)return[_0x229a61];}['_capabilities'](_0x24dc30){const _0x42c117=_0x282c57;return this[_0x42c117(0x395)]['get'](_0x24dc30[_0x42c117(0x4aa)])[_0x42c117(0x53a)](_0x24dc30);}};si=X([Y(0x0,_0x4bcdd1(mr))],si);function ci(_0xcf9c1b){return _0xcf9c1b==null?'':String(_0xcf9c1b);}function li(_0x53ef0d){const _0x595d25=_0x282c57;return new Map(_0x53ef0d[_0x595d25(0x309)]((_0x205e53,_0x37f493)=>[_0x205e53[_0x595d25(0x40d)],_0x37f493]));}function ui(_0x218412){const _0x1f27dd=_0x282c57;return!!(Array[_0x1f27dd(0x3d5)](_0x218412[_0x1f27dd(0x413)])&&_0x218412['rowIndex']&&_0x218412['rowId']&&_0x218412['colIndex']&&_0x218412[_0x1f27dd(0x46d)]&&_0x218412[_0x1f27dd(0x343)]);}function di(_0x4ac3f4){const _0x22555b=_0x282c57;let _0x5d1487=(_0x4ac3f4==null?void 0x0:_0x4ac3f4['conditions'][_0x22555b(0x4cc)](_0x23cb87=>!Ii(_0x23cb87)))??[];return!_0x4ac3f4||!_0x5d1487[_0x22555b(0x4ab)]?null:{'conjunction':_0x4ac3f4[_0x22555b(0x32c)],'conditions':_0x5d1487[_0x22555b(0x309)](_0x722287=>({'fieldId':_0x722287[_0x22555b(0x387)],'operator':_0x722287[_0x22555b(0x307)],'operand':_0x722287[_0x22555b(0x24c)]}))};}function fi(_0x99dcc0,_0x14d54b){const _0x205231=_0x282c57;return _0x99dcc0[_0x205231(0x1e1)]===_0x14d54b['records']&&_0x99dcc0[_0x205231(0x413)]===_0x14d54b['recordOrder']&&_0x99dcc0[_0x205231(0x453)]===_0x14d54b[_0x205231(0x453)]&&_0x99dcc0[_0x205231(0x534)]===_0x14d54b[_0x205231(0x534)]&&_0x99dcc0[_0x205231(0x343)]===_0x14d54b[_0x205231(0x343)]&&_0x99dcc0[_0x205231(0x277)]===_0x14d54b[_0x205231(0x277)]&&_0x99dcc0[_0x205231(0x21b)]===_0x14d54b[_0x205231(0x21b)]&&_0x99dcc0[_0x205231(0x28f)]===_0x14d54b[_0x205231(0x28f)]&&_0x99dcc0['colId']===_0x14d54b['colId'];}function pi(_0x3d7387){const _0x3753a2=_0x282c57;return _0x3d7387!=null&&_0x3d7387[_0x3753a2(0x4ab)]?_0x3d7387[_0x3753a2(0x309)](_0x590dc8=>({'fieldId':_0x590dc8[_0x3753a2(0x387)],'direction':_0x590dc8[_0x3753a2(0x292)]})):null;}function mi(_0x3c0ea0){const _0x4fbe40=_0x282c57;if(typeof _0x3c0ea0!=_0x4fbe40(0x4ba)||!_0x3c0ea0)return JSON[_0x4fbe40(0x2fb)](_0x3c0ea0)??'undefined';if(Array['isArray'](_0x3c0ea0))return'['+_0x3c0ea0['map'](mi)[_0x4fbe40(0x1c0)](',')+']';let _0x3f7a3c=_0x3c0ea0;return'{'+Object['keys'](_0x3f7a3c)[_0x4fbe40(0x1df)]()[_0x4fbe40(0x309)](_0x1e3e4a=>JSON[_0x4fbe40(0x2fb)](_0x1e3e4a)+':'+mi(_0x3f7a3c[_0x1e3e4a]))[_0x4fbe40(0x1c0)](',')+'}';}function hi(_0xe33ce5){const _0x502d99=_0x282c57;let _0x4590a8=Object[_0x502d99(0x54e)](_0xe33ce5)[_0x502d99(0x1df)]((_0x382762,_0xb16a3a)=>_0x382762[_0x502d99(0x38a)][_0x502d99(0x506)](_0xb16a3a[_0x502d99(0x38a)])),_0x365bf9=[];for(let _0x48c97f of _0x4590a8)_0x365bf9[_0x502d99(0x381)](_0x48c97f['id']);return _0x365bf9;}function gi(_0x2790e6){const _0x1748f3=_0x282c57;return{'weekdays':Array[_0x1748f3(0x3d5)](_0x2790e6==null?void 0x0:_0x2790e6[_0x1748f3(0x523)])&&_0x2790e6['weekdays'][_0x1748f3(0x4ab)]?[...new Set(_0x2790e6[_0x1748f3(0x523)][_0x1748f3(0x4cc)](_0x4b238b=>Number['isInteger'](_0x4b238b)&&_0x4b238b>=0x1&&_0x4b238b<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x1748f3(0x3d5)](_0x2790e6==null?void 0x0:_0x2790e6[_0x1748f3(0x487)])?_0x2790e6[_0x1748f3(0x487)][_0x1748f3(0x26a)](_0xcde4a3=>!_0xcde4a3||!Number[_0x1748f3(0x210)](_0xcde4a3[_0x1748f3(0x382)])?[]:[{'id':String(_0xcde4a3['id']||'exception-'+_0xcde4a3[_0x1748f3(0x382)]),'date':Z(Number(_0xcde4a3[_0x1748f3(0x382)])),'name':String(_0xcde4a3[_0x1748f3(0x2f4)]||_0x1748f3(0x2f1)),'type':_0xcde4a3[_0x1748f3(0x4aa)]===_0x1748f3(0x4c9)?_0x1748f3(0x4c9):_0x1748f3(0x51e)}]):[]};}function _i(_0x36c3c4,_0x5d9b10,_0x4a580d,_0x41b1bf){let _0x218bfe=xi(_0x36c3c4,_0x5d9b10),_0x4ac577=Si(_0x36c3c4,_0x4a580d),_0x3daf30=vi(_0x36c3c4,_0x218bfe,_0x4ac577,_0x41b1bf);return{'scale':_0x36c3c4,'start':_0x218bfe,'end':_0x4ac577,'unitWidth':bi(_0x36c3c4),'majorHeaders':yi(_0x36c3c4,_0x218bfe,_0x4ac577),'columns':_0x3daf30};}function vi(_0x298c37,_0x4e8671,_0x67ce62,_0x4db4ee){const _0x4f2806=_0x282c57;let _0x5debba=[],_0x4910ba=_0x4e8671;for(;_0x4910ba<_0x67ce62;){let _0x447347=_0x298c37===_0x4f2806(0x509)?ji(_0x4910ba,0x7):_0x298c37===_0x4f2806(0x51c)?Mi(_0x4910ba,0x1):ji(_0x4910ba,0x1);_0x5debba[_0x4f2806(0x381)]({'id':_0x298c37+'-'+_0x4910ba,'label':Ci(_0x298c37,_0x4910ba,_0x447347),'majorLabel':wi(_0x298c37,_0x4910ba),'start':_0x4910ba,'end':_0x447347,'nonWorking':Ei(_0x4910ba,_0x447347,_0x4db4ee)}),_0x4910ba=_0x447347;}return _0x5debba;}function yi(_0x19673b,_0x448588,_0x573f69){const _0x320d6c=_0x282c57;let _0x14db9b=[],_0x3b5007=_0x19673b===_0x320d6c(0x51c)?Ai(_0x448588):ki(_0x448588);for(;_0x3b5007<_0x573f69;){let _0x6c94a=_0x19673b===_0x320d6c(0x51c)?Ni(_0x3b5007,0x1):Mi(_0x3b5007,0x1);_0x14db9b[_0x320d6c(0x381)]({'id':_0x320d6c(0x46c)+_0x3b5007,'label':_0x19673b===_0x320d6c(0x51c)?String(new Date(_0x3b5007)[_0x320d6c(0x479)]()):Pi(_0x3b5007),'start':_0x3b5007,'end':_0x6c94a}),_0x3b5007=_0x6c94a;}return _0x14db9b;}function bi(_0x449db3){const _0x227555=_0x282c57;switch(_0x449db3){case _0x227555(0x36e):return 0xac;case _0x227555(0x509):return 0xac;case _0x227555(0x51c):return 0x88;default:return 0x56;}}function xi(_0x2f25ba,_0x1b33d6){const _0x2887a5=_0x282c57;return _0x2f25ba==='year'?Ai(_0x1b33d6):_0x2f25ba===_0x2887a5(0x509)?Oi(_0x1b33d6):Z(_0x1b33d6);}function Si(_0x31007e,_0x2da837){const _0x532420=_0x282c57;return _0x31007e==='year'?Ni(Ai(_0x2da837),0x1):_0x31007e===_0x532420(0x509)?ji(Oi(_0x2da837),0x7):ji(Z(_0x2da837),0x1);}function Ci(_0x4c4233,_0x160c03,_0x258d1d){const _0x12bba7=_0x282c57;let _0x4d23ad=new Date(_0x160c03);return _0x4c4233===_0x12bba7(0x509)?_0x4d23ad[_0x12bba7(0x1f5)]()+'-'+new Date(_0x258d1d-oi)[_0x12bba7(0x1f5)]():_0x4c4233==='year'?_0x4d23ad[_0x12bba7(0x4f4)](_0x12bba7(0x1a9),{'month':'short','timeZone':'UTC'}):String(_0x4d23ad[_0x12bba7(0x1f5)]());}function wi(_0x4cfc1a,_0xb11b3a){const _0x26dd0c=_0x282c57;return _0x4cfc1a===_0x26dd0c(0x51c)?String(new Date(_0xb11b3a)[_0x26dd0c(0x479)]()):Pi(_0xb11b3a);}function Ti(_0x9b3a77,_0x1aeaa4,_0x6a40b){let _0x4dd088=gi(_0x6a40b),_0x3e5b62=0x0;for(let _0x425daa=Z(_0x9b3a77);_0x425daa<=Z(_0x1aeaa4);_0x425daa=ji(_0x425daa,0x1))Di(_0x425daa,_0x4dd088)||_0x3e5b62++;return _0x3e5b62;}function Ei(_0xacddd6,_0x1fd5fd,_0x3bed72){if(!_0x3bed72)return!0x1;let _0x41f27c=gi(_0x3bed72);for(let _0x37681a=Z(_0xacddd6);_0x37681a<_0x1fd5fd;_0x37681a=ji(_0x37681a,0x1))if(!Di(_0x37681a,_0x41f27c))return!0x1;return!0x0;}function Di(_0x2e8546,_0x17c0f7){const _0x2b4911=_0x282c57;let _0x21b533=Z(_0x2e8546),_0x4ad9e2=_0x17c0f7[_0x2b4911(0x487)][_0x2b4911(0x525)](_0x22fc79=>Z(_0x22fc79[_0x2b4911(0x382)])===_0x21b533);if(_0x4ad9e2)return _0x4ad9e2[_0x2b4911(0x4aa)]===_0x2b4911(0x51e);let _0x21c2a4=new Date(_0x21b533)['getUTCDay'](),_0x249983=_0x21c2a4===0x0?0x7:_0x21c2a4;return!_0x17c0f7[_0x2b4911(0x523)][_0x2b4911(0x3df)](_0x249983);}function Z(_0x246e44){const _0x4bd1ac=_0x282c57;let _0x584c70=new Date(_0x246e44);return Date[_0x4bd1ac(0x4ad)](_0x584c70[_0x4bd1ac(0x479)](),_0x584c70[_0x4bd1ac(0x2d5)](),_0x584c70[_0x4bd1ac(0x1f5)]());}function Oi(_0x5363ad){const _0x23394b=_0x282c57;let _0x544e48=Z(_0x5363ad),_0x5675f0=new Date(_0x544e48)[_0x23394b(0x4f1)]();return ji(_0x544e48,-(_0x5675f0===0x0?0x6:_0x5675f0-0x1));}function ki(_0x2b222e){const _0x77a00b=_0x282c57;let _0x35cf62=new Date(_0x2b222e);return Date[_0x77a00b(0x4ad)](_0x35cf62['getUTCFullYear'](),_0x35cf62[_0x77a00b(0x2d5)](),0x1);}function Ai(_0x3e6a79){const _0x1900a7=_0x282c57;let _0x23adc2=new Date(_0x3e6a79);return Date[_0x1900a7(0x4ad)](_0x23adc2[_0x1900a7(0x479)](),0x0,0x1);}function ji(_0x229fbc,_0x1ea913){return _0x229fbc+_0x1ea913*oi;}function Mi(_0x19c8e3,_0x1a1739){const _0x1a5830=_0x282c57;let _0x1d0479=new Date(_0x19c8e3);return Date[_0x1a5830(0x4ad)](_0x1d0479['getUTCFullYear'](),_0x1d0479['getUTCMonth']()+_0x1a1739,0x1);}function Ni(_0x45ef09,_0x16816d){const _0x380269=_0x282c57;let _0x121c52=new Date(_0x45ef09);return Date[_0x380269(0x4ad)](_0x121c52['getUTCFullYear']()+_0x16816d,0x0,0x1);}function Pi(_0x30cec8){const _0xb67a52=_0x282c57;let _0x1cf389=new Date(_0x30cec8);return _0x1cf389[_0xb67a52(0x4f4)](_0xb67a52(0x1a9),{'month':'short','timeZone':'UTC'})+'\x20'+_0x1cf389['getUTCFullYear']();}function Fi(_0x3c7622,_0x596b5c){const _0x3b4009=_0x282c57;if(_0x3c7622==null&&_0x596b5c==null)return 0x0;if(_0x3c7622==null)return-0x1;if(_0x596b5c==null)return 0x1;if(typeof _0x3c7622==_0x3b4009(0x386)||typeof _0x596b5c==_0x3b4009(0x386))return Number(_0x3c7622===!0x0)-Number(_0x596b5c===!0x0);let _0x20e742=Number(_0x3c7622),_0xa29a95=Number(_0x596b5c),_0x2d0732=Number[_0x3b4009(0x210)](_0x20e742),_0x1afcf5=Number[_0x3b4009(0x210)](_0xa29a95);return _0x2d0732&&_0x1afcf5?_0x20e742-_0xa29a95:_0x2d0732?0x1:_0x1afcf5?-0x1:String(_0x3c7622)['localeCompare'](String(_0x596b5c));}function Ii(_0x394a21){const _0x52e3f7=_0x282c57;if(_0x394a21[_0x52e3f7(0x307)]!=='is'&&_0x394a21[_0x52e3f7(0x307)]!=='isNot')return!0x1;let _0x17cefd=_0x394a21[_0x52e3f7(0x24c)];return _0x17cefd==null?!0x0:typeof _0x17cefd=='string'?_0x17cefd[_0x52e3f7(0x24d)]()==='':Array[_0x52e3f7(0x3d5)](_0x17cefd)?_0x17cefd[_0x52e3f7(0x4ab)]===0x0:!0x1;}function Li(_0x392480,_0x267f89){const _0x2863ca=_0x282c57;var _0x521a40;let _0x3146cc=Array[_0x2863ca(0x3d5)]((_0x521a40=_0x392480[_0x2863ca(0x50c)])==null?void 0x0:_0x521a40[_0x2863ca(0x4f3)])?_0x392480[_0x2863ca(0x50c)]['options']:[];for(let _0x5715cd of _0x3146cc){if(_0x5715cd==null)continue;if(typeof _0x5715cd==_0x2863ca(0x3e3)){if(_0x5715cd===_0x267f89)return{'id':_0x5715cd,'name':_0x5715cd};continue;}let _0x2f5364=_0x5715cd,_0x4f017a=String(_0x2f5364['id']??_0x2f5364['name']??''),_0x4626fa=String(_0x2f5364[_0x2863ca(0x2f4)]??_0x2f5364['id']??_0x4f017a);if(_0x4f017a===_0x267f89||_0x4626fa===_0x267f89)return{'id':_0x4f017a,'name':_0x4626fa,'color':_0x2f5364[_0x2863ca(0x545)]==null?void 0x0:String(_0x2f5364[_0x2863ca(0x545)])};}return null;}let Ri=function(_0x51ba59){const _0x333e52=_0x282c57;return _0x51ba59['CreateView']=_0x333e52(0x37f),_0x51ba59[_0x333e52(0x544)]=_0x333e52(0x2e3),_0x51ba59;}({});const Q={'id':_0x282c57(0x48f),'type':_0x31b5a7[_0x282c57(0x1db)],'handler'(_0x34c4ae,_0x79c87e){const _0x539cc5=_0x282c57;let {unitId:_0x3af029,op:_0x2d22ab}=_0x79c87e,_0x631397=_0x34c4ae[_0x539cc5(0x268)](_0x54ce33)[_0x539cc5(0x2ad)](_0x3af029,_0x335149[_0x539cc5(0x370)]);if(!_0x631397)return!0x1;let _0x23525e=_0x631397['getSnapshot'](),_0x1b4cbc=new z(),_0x2a3239=_0x1b4cbc[_0x539cc5(0x485)](_0x2d22ab),_0x22749e=_0x1b4cbc['applyOp'](_0x23525e,_0x2d22ab);return _0x631397[_0x539cc5(0x4e0)](_0x22749e),zi(_0x22749e,_0x2a3239,_0x34c4ae[_0x539cc5(0x268)](ii)),!0x0;}};function zi(_0x46e999,_0x522529,_0x190cb4){const _0x5e7163=_0x282c57;let _0x9e3b9f=new Set(),_0x5a5eb5=new Set(),_0x1529dc=new Set();for(let _0x11e1ae of _0x522529){if(_0x11e1ae[_0x5e7163(0x2cd)]===_0x5e7163(0x47a)&&_0x11e1ae[_0x5e7163(0x45e)]&&_0x11e1ae[_0x5e7163(0x44d)]){let _0x57abb5=_0x11e1ae[_0x5e7163(0x45e)]+'\x00'+_0x11e1ae[_0x5e7163(0x44d)];_0x1529dc['has'](_0x57abb5)||(_0x1529dc['add'](_0x57abb5),_0x190cb4[_0x5e7163(0x438)](_0x11e1ae[_0x5e7163(0x45e)],_0x11e1ae[_0x5e7163(0x44d)]));continue;}if(_0x11e1ae[_0x5e7163(0x2cd)]===_0x5e7163(0x2d9)&&_0x11e1ae[_0x5e7163(0x45e)]&&_0x11e1ae['fieldId']){let _0x1d9eeb=_0x11e1ae[_0x5e7163(0x45e)]+'\x00'+_0x11e1ae[_0x5e7163(0x387)];_0x5a5eb5[_0x5e7163(0x25c)](_0x1d9eeb)||(_0x5a5eb5[_0x5e7163(0x551)](_0x1d9eeb),_0x190cb4[_0x5e7163(0x33a)](_0x11e1ae[_0x5e7163(0x45e)],_0x11e1ae[_0x5e7163(0x387)]));continue;}if(_0x11e1ae['reason']!==_0x5e7163(0x1f9)){_0x190cb4[_0x5e7163(0x466)]();return;}let _0xab885c=Bi(_0x46e999,_0x11e1ae);if(!_0xab885c){_0x190cb4[_0x5e7163(0x466)]();return;}let _0x209ad8=_0xab885c[_0x5e7163(0x45e)]+'\x00'+_0xab885c[_0x5e7163(0x40d)]+'\x00'+_0xab885c[_0x5e7163(0x387)];_0x9e3b9f['has'](_0x209ad8)||(_0x9e3b9f[_0x5e7163(0x551)](_0x209ad8),_0x190cb4['invalidateByCell'](_0xab885c['tableId'],_0xab885c[_0x5e7163(0x40d)],_0xab885c['fieldId']));}}function Bi(_0x2bc85e,_0x290788){const _0xaa9bb4=_0x282c57;var _0x1d492c,_0x8977a6;if(!_0x290788[_0xaa9bb4(0x45e)])return null;if(_0x290788[_0xaa9bb4(0x40d)]&&_0x290788[_0xaa9bb4(0x387)])return{'tableId':_0x290788[_0xaa9bb4(0x45e)],'recordId':_0x290788[_0xaa9bb4(0x40d)],'fieldId':_0x290788[_0xaa9bb4(0x387)]};if(_0x290788[_0xaa9bb4(0x2f0)]==null||_0x290788[_0xaa9bb4(0x331)]==null)return null;let _0x382931=_0x2bc85e[_0xaa9bb4(0x528)][_0x290788['tableId']],_0x48cb0b=_0x382931==null||(_0x1d492c=_0x382931['rowId'])==null?void 0x0:_0x1d492c[_0x290788[_0xaa9bb4(0x2f0)]],_0x25960b=_0x382931==null||(_0x8977a6=_0x382931[_0xaa9bb4(0x46d)])==null?void 0x0:_0x8977a6[_0x290788[_0xaa9bb4(0x331)]];return!_0x48cb0b||!_0x25960b?null:{'tableId':_0x290788[_0xaa9bb4(0x45e)],'recordId':_0x48cb0b,'fieldId':_0x25960b};}const Vi=_0x529588[_0x282c57(0x397)](String['raw']`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x529588['createRegExpFromSafeFragment'](String[_0x282c57(0x1d3)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x529588[_0x282c57(0x397)](String[_0x282c57(0x1d3)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x529588['createRegExpFromSafeFragment'](String['raw']`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x529588[_0x282c57(0x397)](String[_0x282c57(0x1d3)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x529588[_0x282c57(0x397)](String['raw']`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x529588[_0x282c57(0x397)](String[_0x282c57(0x1d3)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x529588[_0x282c57(0x397)](String[_0x282c57(0x1d3)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{['createSuperTableReference'](_0x156a6f,_0x8f443d=_0x156a6f['id']){const _0x514f47=_0x282c57;var _0x578d8a;let _0x3a608c=((_0x578d8a=_0x156a6f[_0x514f47(0x413)])==null?void 0x0:_0x578d8a[_0x514f47(0x4ab)])??Object['values'](_0x156a6f[_0x514f47(0x1e1)])[_0x514f47(0x4ab)];return{'sheetId':_0x8f443d,'titleMap':new Map(_0x156a6f[_0x514f47(0x534)][_0x514f47(0x309)]((_0x15d78a,_0x269b7f)=>{const _0x4536dc=_0x514f47;var _0x143e69;return[((_0x143e69=_0x156a6f[_0x4536dc(0x453)][_0x15d78a])==null?void 0x0:_0x143e69[_0x4536dc(0x2f4)])??_0x15d78a,_0x269b7f];})),'range':{'startRow':0x0,'endRow':Math[_0x514f47(0x468)](0x0,_0x3a608c-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x156a6f[_0x514f47(0x534)][_0x514f47(0x4ab)]-0x1)},'showHeader':!0x1};}['getSuperTableRegistrations'](_0x544458,_0x524ee9){const _0x546f63=_0x282c57;let _0x5277fb=[],_0x27fc6d=_0x524ee9?new Set(_0x524ee9):null,_0x4275a7=_0x41215d(_0x544458);return Object['values'](_0x544458[_0x546f63(0x528)])[_0x546f63(0x4cc)](_0x49efab=>!_0x27fc6d||_0x27fc6d['has'](_0x49efab['id']))[_0x546f63(0x34b)](_0x9064f9=>{const _0x5e0371=_0x546f63;let _0x3e0b26=this[_0x5e0371(0x1fa)](_0x9064f9,_0x9064f9['id']);_0x5277fb['push']({'tableId':_0x9064f9['id'],'tableName':_0x4275a7[_0x5e0371(0x268)](_0x9064f9['id']),'reference':_0x3e0b26});}),_0x5277fb;}[_0x282c57(0x30e)](_0x44e09a,_0x3d9214,_0x1aabff={}){const _0x2d902e=_0x282c57;let _0x39c655=_0x44e09a[_0x2d902e(0x24d)]();if(!_0x39c655)return{'valid':!0x0};if(na(_0x39c655))return{'valid':!0x1,'reason':_0x2d902e(0x2d6)};let _0x153eaa=_0x1aabff[_0x2d902e(0x4c3)]?_0x41215d(_0x1aabff[_0x2d902e(0x4c3)]):void 0x0;for(let _0x5d815e of ta(_0x39c655)){let _0x1bc137=ua(_0x5d815e,_0x3d9214,_0x1aabff[_0x2d902e(0x4c3)],_0x153eaa);if(!_0x1bc137['table'])return{'valid':!0x1,'reason':_0x2d902e(0x1bb)+_0x5d815e[_0x2d902e(0x4e3)]+'\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.'};if(!_0x1bc137['field'])return{'valid':!0x1,'reason':'[BaseFormula]:\x20field\x20\x22'+_0x5d815e['fieldName']+'\x22\x20does\x20not\x20exist.'};}return{'valid':!0x0};}[_0x282c57(0x415)](_0x1e8978,_0xc1d000,_0x33b528={}){const _0x1b9bde=_0x282c57;let _0x2adb4c=new Set();for(let _0x5bf545 of this[_0x1b9bde(0x293)](_0x1e8978,_0xc1d000,_0x33b528))_0x5bf545[_0x1b9bde(0x45e)]===_0xc1d000['id']&&_0x2adb4c[_0x1b9bde(0x551)](_0x5bf545['fieldId']);return Array[_0x1b9bde(0x2f3)](_0x2adb4c);}['getStructuredDependencies'](_0x4da8ee,_0x12dfb1,_0x13d6ab={}){const _0x5c1d80=_0x282c57;let _0x355398=new Map(),_0xf13622=_0x13d6ab[_0x5c1d80(0x4c3)]?_0x41215d(_0x13d6ab[_0x5c1d80(0x4c3)]):void 0x0;for(let _0x18f0df of ta(_0x4da8ee)){let _0x4fd50b=ua(_0x18f0df,_0x12dfb1,_0x13d6ab[_0x5c1d80(0x4c3)],_0xf13622);if(!_0x4fd50b[_0x5c1d80(0x270)]||!_0x4fd50b['field'])continue;let _0x4c24b5=_0x4fd50b[_0x5c1d80(0x270)]['id']+'\x1f'+_0x4fd50b['field']['id'];_0x355398[_0x5c1d80(0x246)](_0x4c24b5,{'tableId':_0x4fd50b[_0x5c1d80(0x270)]['id'],'fieldId':_0x4fd50b[_0x5c1d80(0x2d9)]['id']});}return Array[_0x5c1d80(0x2f3)](_0x355398['values']());}};function Zi(_0x379b45,_0x488593){const _0x5d109c=_0x282c57;var _0x543bac;let _0x5f1bcd=[],_0x23aeca=(_0x543bac=_0x488593[_0x5d109c(0x1b5)])==null?void 0x0:_0x543bac[_0x379b45['id']];return _0x23aeca&&Object[_0x5d109c(0x41d)](_0x23aeca)[_0x5d109c(0x34b)](([_0x2b7226,_0x1dc0f5])=>{const _0x10c19c=_0x5d109c;let _0xc8e3e4=_0x379b45[_0x10c19c(0x528)][_0x2b7226];if(!_0xc8e3e4||!_0x1dc0f5)return;let _0x4fc688=L(_0xc8e3e4),_0x17ce78=[];new _0x376646(_0x1dc0f5)[_0x10c19c(0x3e2)]((_0x188a78,_0x46ad12,_0x47cbf8)=>{const _0x25b0b4=_0x10c19c;let _0x21ed99=Qi(_0x4fc688,_0x188a78,_0x46ad12,_0x47cbf8);_0x21ed99&&_0x17ce78[_0x25b0b4(0x381)](_0x21ed99);}),_0x17ce78[_0x10c19c(0x4ab)]&&_0x5f1bcd[_0x10c19c(0x381)]({'unitId':_0x379b45['id'],'tableId':_0x2b7226,'patches':_0x17ce78});}),_0x5f1bcd;}function Qi(_0x3534d0,_0x51f24b,_0x543c4f,_0x313138){const _0x3a76b5=_0x282c57;var _0x1f11a7,_0x4a8804,_0x2abc78;let _0x2fdace=(_0x1f11a7=_0x3534d0[_0x3a76b5(0x21b)])==null?void 0x0:_0x1f11a7[_0x51f24b],_0x386bcc=(_0x4a8804=_0x3534d0[_0x3a76b5(0x46d)])==null?void 0x0:_0x4a8804[_0x543c4f];if(!_0x2fdace||!_0x3534d0['records'][_0x2fdace]||!_0x386bcc)return null;let _0x467cf8=_0x3534d0[_0x3a76b5(0x453)][_0x386bcc];if(!_0x467cf8||_0x467cf8['type']!==_0x3a76b5(0x557))return null;let _0x332e86=String(((_0x2abc78=_0x467cf8['config'])==null?void 0x0:_0x2abc78[_0x3a76b5(0x557)])??'')[_0x3a76b5(0x24d)](),_0x552500=(_0x313138==null?void 0x0:_0x313138['v'])??null,_0x44ddd3={'v':_0x552500,'t':ea(_0x552500),..._0x51f24b===0x0&&_0x332e86?{'f':_0x332e86}:{},'si':_0x467cf8['id']};return $i(vt(_0x3534d0,_0x2fdace,_0x386bcc),_0x44ddd3)?null:{'row':_0x51f24b,'col':_0x543c4f,'value':_0x44ddd3};}function $i(_0x54f376,_0x204852){return _0x54f376!=null&&Object['is'](_0x54f376['v']??null,_0x204852['v']??null)&&_0x54f376['t']===_0x204852['t']&&_0x54f376['f']===_0x204852['f']&&_0x54f376['si']===_0x204852['si'];}function ea(_0x165561){const _0x1d93c9=_0x282c57;return typeof _0x165561==_0x1d93c9(0x389)?_0x110ba4['NUMBER']:typeof _0x165561==_0x1d93c9(0x386)?_0x110ba4[_0x1d93c9(0x2fd)]:typeof _0x165561==_0x1d93c9(0x3e3)?_0x110ba4['STRING']:null;}function ta(_0x4dea60){const _0x2780d9=_0x282c57;let _0x453d51=ia(_0x4dea60,()=>''),_0xb29939=new Map(),_0x37a1cc=_0x2d8c6d=>{const _0x3f5968=_0x3047;_0xb29939[_0x3f5968(0x246)]((_0x2d8c6d[_0x3f5968(0x4e3)]??'')+'\x1f'+_0x2d8c6d[_0x3f5968(0x425)],_0x2d8c6d);};for(let _0x592a86 of _0x453d51[_0x2780d9(0x48e)](Ui))_0x37a1cc({'fieldName':_0x592a86[0x1],'scope':'this-row'});_0x453d51=_0x453d51['replace'](Wi,(_0x528962,_0x560f9a,_0x2365da,_0x25d152)=>(_0x37a1cc({'tableName':_0x560f9a,'fieldName':_0x25d152,'scope':_0x2365da[_0x2780d9(0x3ca)]()===_0x2780d9(0x2da)?'data':_0x2780d9(0x48c)}),'\x20')),_0x453d51=_0x453d51[_0x2780d9(0x1a6)](Gi,(_0x1306b8,_0x184867,_0x3808a8)=>(_0x37a1cc({'tableName':_0x184867,'fieldName':_0x3808a8,'scope':_0x2780d9(0x48c)}),'\x20')),_0x453d51=_0x453d51['replace'](qi,(_0x36801a,_0x331e7a,_0x35f6db,_0x36fb31)=>(_0x37a1cc({'fieldName':_0x36fb31,'scope':_0x35f6db[_0x2780d9(0x3ca)]()===_0x2780d9(0x2da)?_0x2780d9(0x2da):'this-row'}),_0x331e7a+'\x20')),_0x453d51=_0x453d51['replace'](Ji,(_0x134398,_0x38204b,_0x4968d8)=>(_0x37a1cc({'fieldName':_0x4968d8,'scope':'this-row'}),_0x38204b+'\x20'));for(let _0x12ac4c of _0x453d51['matchAll'](Ki))_0x37a1cc({'tableName':_0x12ac4c[0x1],'fieldName':_0x12ac4c[0x2]});for(let _0x5523d6 of _0x453d51[_0x2780d9(0x48e)](Yi))_0x37a1cc({'fieldName':_0x5523d6[0x2],'scope':'this-row'});return Array[_0x2780d9(0x2f3)](_0xb29939[_0x2780d9(0x54e)]());}function na(_0x338056){const _0x49483d=_0x282c57;let _0x447fd9=ia(_0x338056,()=>'\x20')['replace'](Ui,'\x20')[_0x49483d(0x1a6)](Wi,'\x20')[_0x49483d(0x1a6)](Gi,'\x20')['replace'](qi,_0x49483d(0x19d))[_0x49483d(0x1a6)](Ji,_0x49483d(0x19d))[_0x49483d(0x1a6)](Ki,'\x20')['replace'](Yi,_0x49483d(0x19d));return Vi[_0x49483d(0x1ef)](_0x447fd9);}function ra(_0x53ff91,_0x2a3a0b){return ca(oa(_0x53ff91,_0x2a3a0b),_0x2a3a0b);}function ia(_0x5671d1,_0x13a350){return aa(ra(_0x5671d1,_0x13a350),_0x13a350);}function aa(_0x3b90bb,_0x30fdc5){return _0x3b90bb['replace'](/"(?:""|[^"])*"/g,_0x30fdc5);}function oa(_0x13db0c,_0xb5ddfb){const _0x4c6d89=_0x282c57;return Hi[_0x4c6d89(0x496)]=0x0,_0x13db0c[_0x4c6d89(0x1a6)](Hi,(_0x2f77cd,_0x1a764a)=>la(_0x13db0c,_0x1a764a)?_0x2f77cd:_0xb5ddfb(_0x2f77cd));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x2f93f5,_0x4d2fa7){const _0xd1bbbf=_0x282c57;let _0x218e05=[];for(sa['lastIndex']=0x0;;){let _0x5a5676=sa[_0xd1bbbf(0x4dd)](_0x2f93f5);if(_0x5a5676==null)break;if(la(_0x2f93f5,_0x5a5676[_0xd1bbbf(0x198)]))continue;let _0x4d654f=sa[_0xd1bbbf(0x496)]-0x1,_0x2a9a11=0x0;for(let _0x25e36c=_0x4d654f;_0x25e36c<_0x2f93f5['length'];_0x25e36c++)if(_0x2f93f5[_0x25e36c]==='['&&_0x2a9a11++,_0x2f93f5[_0x25e36c]===']'&&(_0x2a9a11--,_0x2a9a11===0x0)){_0x218e05[_0xd1bbbf(0x381)]({'start':_0x5a5676['index'],'end':_0x25e36c+0x1}),sa[_0xd1bbbf(0x496)]=_0x25e36c+0x1;break;}}if(_0x218e05[_0xd1bbbf(0x4ab)]===0x0)return _0x2f93f5;let _0x36bae6='',_0x2cde55=0x0;for(let _0x556159 of _0x218e05)_0x36bae6+=_0x2f93f5['slice'](_0x2cde55,_0x556159[_0xd1bbbf(0x230)]),_0x36bae6+=_0x4d2fa7(_0x2f93f5[_0xd1bbbf(0x287)](_0x556159[_0xd1bbbf(0x230)],_0x556159[_0xd1bbbf(0x248)])),_0x2cde55=_0x556159[_0xd1bbbf(0x248)];return _0x36bae6+_0x2f93f5[_0xd1bbbf(0x287)](_0x2cde55);}function la(_0x4abed5,_0x4f423b){let _0x1b001d=!0x1;for(let _0x5823df=0x0;_0x5823df<_0x4f423b;_0x5823df++)if(_0x4abed5[_0x5823df]==='\x22'){if(_0x1b001d&&_0x4abed5[_0x5823df+0x1]==='\x22'){_0x5823df++;continue;}_0x1b001d=!_0x1b001d;}return _0x1b001d;}function ua(_0x4ad5d3,_0x14c2a8,_0x104a67,_0xf88d2){const _0x522860=_0x282c57;let _0x2016e8=da(_0x4ad5d3[_0x522860(0x4e3)],_0x14c2a8,_0x104a67,_0xf88d2);return{'table':_0x2016e8,'field':_0x2016e8?Object[_0x522860(0x54e)](_0x2016e8[_0x522860(0x453)])['find'](_0x4b5185=>_0x4b5185[_0x522860(0x2f4)]===_0x4ad5d3[_0x522860(0x425)]):void 0x0};}function da(_0x33c309,_0x17f177,_0x367dc8,_0x2ecec2){const _0x105f7d=_0x282c57;if(!_0x33c309)return _0x17f177;if(!_0x367dc8){var _0x39fc82;let _0x1e58c0=_0x33c309[_0x105f7d(0x3ca)]();return _0x1e58c0===_0x17f177['id']['toLowerCase']()||_0x1e58c0===_0x17f177[_0x105f7d(0x2f4)][_0x105f7d(0x3ca)]()||_0x1e58c0===((_0x39fc82=_0x17f177[_0x105f7d(0x3ab)])==null?void 0x0:_0x39fc82[_0x105f7d(0x3ca)]())?_0x17f177:void 0x0;}let _0xdc70e1=_0x33c309[_0x105f7d(0x3ca)](),_0x1ef1e8=_0x2ecec2??_0x41215d(_0x367dc8),_0x2d9c9f=Object[_0x105f7d(0x54e)](_0x367dc8[_0x105f7d(0x528)])[_0x105f7d(0x4cc)](_0x5378d5=>{const _0x13a3c8=_0x105f7d;var _0x329691;return _0x5378d5['id'][_0x13a3c8(0x3ca)]()===_0xdc70e1||_0x5378d5[_0x13a3c8(0x2f4)]['toLowerCase']()===_0xdc70e1||((_0x329691=_0x1ef1e8[_0x13a3c8(0x268)](_0x5378d5['id']))==null?void 0x0:_0x329691[_0x13a3c8(0x3ca)]())===_0xdc70e1||fa(_0x5378d5['id'])[_0x13a3c8(0x3ca)]()===_0xdc70e1;});return _0x2d9c9f['length']===0x1?_0x2d9c9f[0x0]:void 0x0;}function fa(_0x26155f){const _0x152256=_0x282c57;return _0x152256(0x31d)+Array[_0x152256(0x2f3)](_0x26155f,_0x510603=>{const _0x5d7bf0=_0x152256;var _0x4f3d0b;return/[A-Za-z0-9]/['test'](_0x510603)?_0x510603:'_x'+(((_0x4f3d0b=_0x510603[_0x5d7bf0(0x27c)](0x0))==null?void 0x0:_0x4f3d0b[_0x5d7bf0(0x2ea)](0x10))??'0')+'_';})['join']('');}const pa=new Xi();function ma(_0x16bf6f,_0x4a104b,_0x35fe48){const _0x3eb180=_0x282c57;var _0x128e47;if(_0x35fe48[_0x3eb180(0x4aa)]!==_0x239099[_0x3eb180(0x41e)])return!0x0;let _0x4197a2=String(((_0x128e47=_0x35fe48[_0x3eb180(0x50c)])==null?void 0x0:_0x128e47[_0x3eb180(0x557)])??''),_0x1f72ca=_0x16bf6f[_0x3eb180(0x28c)]();return pa['validateFormula'](_0x4197a2,_0x1f72ca[_0x3eb180(0x528)][_0x4a104b],{'snapshot':_0x1f72ca})[_0x3eb180(0x375)];}function $(_0x132726,_0xd1913b,_0x1b40bd){const _0x307b84=_0x282c57;let _0x17e235=_0x132726[_0x307b84(0x28c)]()[_0x307b84(0x528)][_0xd1913b];if(!_0x17e235)return!0x1;let {viewIds:_0x5e2958,fieldIds:_0x386f1c,recordIds:_0x21299c}=_0x1b40bd||{};if(_0x5e2958){for(let _0x4beb52 of _0x5e2958)if(!_0x17e235[_0x307b84(0x4f9)][_0x4beb52])return!0x1;}if(_0x386f1c){for(let _0x23eb35 of _0x386f1c)if(!_0x17e235[_0x307b84(0x453)][_0x23eb35])return!0x1;}if(_0x21299c){for(let _0x30a2ac of _0x21299c)if(!_0x17e235[_0x307b84(0x1e1)][_0x30a2ac])return!0x1;}return!0x0;}function ha(_0x3b3a76,_0x1fa650,_0x8d1c3a){const _0xb1270=_0x282c57;if(_0x8d1c3a['id']===_0x1a2ecc||_0x8d1c3a[_0xb1270(0x4aa)]===_0x239099[_0xb1270(0x205)]||_0x38be32(_0x8d1c3a[_0xb1270(0x2f4)])||!ma(_0x3b3a76,_0x1fa650,_0x8d1c3a))return!0x1;let _0x2b1101=_0x3b3a76[_0xb1270(0x28c)]();if(!Be(_0x2b1101,_0x8d1c3a)[_0xb1270(0x375)])return!0x1;if(_0x8d1c3a[_0xb1270(0x4aa)]!==_0x239099[_0xb1270(0x2c2)])return!0x0;let _0x34270d=N(_0x8d1c3a);if(!_0x34270d)return!0x1;if(_0x34270d[_0xb1270(0x1f7)]===void 0x0)return!0x0;if(_0x34270d['relationRole']!==_0x33634f[_0xb1270(0x19a)]||_0x34270d[_0xb1270(0x3e5)]!==_0x1fa650||_0x34270d[_0xb1270(0x3ea)]!==!0x1)return!0x1;let _0x1ba163=_0x2b1101[_0xb1270(0x528)][_0x1fa650];return!Object[_0xb1270(0x54e)](_0x1ba163[_0xb1270(0x453)])[_0xb1270(0x436)](_0x5e631f=>{const _0x12013f=_0xb1270;var _0x517c5f;return _0x5e631f['id']!==_0x8d1c3a['id']&&_0x5e631f[_0x12013f(0x4aa)]===_0x239099[_0x12013f(0x2c2)]&&((_0x517c5f=N(_0x5e631f))==null?void 0x0:_0x517c5f[_0x12013f(0x1f7)])===_0x33634f[_0x12013f(0x19a)];});}function ga(_0x47826f,_0x286aa6,_0x38a6a2,_0x270f90){const _0x4e685f=_0x282c57;var _0x19c959;let _0x547b39=_0x47826f[_0x4e685f(0x28c)](),_0x52a3ac=(_0x19c959=_0x547b39[_0x4e685f(0x528)][_0x286aa6])==null?void 0x0:_0x19c959[_0x4e685f(0x453)][_0x38a6a2];return!_0x52a3ac||_0x52a3ac['id']===_0x1a2ecc||_0x52a3ac[_0x4e685f(0x4aa)]===_0x239099[_0x4e685f(0x205)]?!0x1:_0x52a3ac['type']!==_0x239099[_0x4e685f(0x2c2)]||Ve(_0x547b39,_0x52a3ac,ya(_0x270f90))[_0x4e685f(0x375)];}function _a(_0x13f9c3,_0x3cbd4e,_0x41b45f){const _0x50940c=_0x282c57;let _0x122a50=_0x13f9c3[_0x50940c(0x28c)]()[_0x50940c(0x528)][_0x3cbd4e];return!_0x122a50||!_0x2a190f(_0x41b45f['id'])||_0x122a50[_0x50940c(0x1e1)][_0x41b45f['id']]||Object[_0x50940c(0x35c)][_0x50940c(0x445)][_0x50940c(0x2a4)](_0x41b45f['values'],_0x1a2ecc)&&_0x41b45f[_0x50940c(0x54e)][_0x1a2ecc]!==_0x41b45f['id']?!0x1:Object[_0x50940c(0x41d)](_0x41b45f['values'])[_0x50940c(0x300)](([_0x544241,_0x33c569])=>_0x544241===_0x1a2ecc||ga(_0x13f9c3,_0x3cbd4e,_0x544241,_0x33c569));}function va(_0x430458){const _0x2ad355=_0x282c57;return{..._0x430458,'values':{..._0x430458[_0x2ad355(0x54e)],[_0x1a2ecc]:_0x430458['id']}};}function ya(_0x50e858){const _0x3cbaf0=_0x282c57;if(_0x50e858&&typeof _0x50e858=='object'&&!Array[_0x3cbaf0(0x3d5)](_0x50e858)&&'v'in _0x50e858){let _0x5c5eb2=_0x50e858['v'];return _0x5c5eb2===void 0x0?null:_0x5c5eb2;}return _0x50e858;}function ba(_0x2cafc9,_0x1b8c51,_0x3f0e25,_0x933b13){const _0x99001d=_0x282c57;let _0x241fa8=_0x2cafc9[_0x99001d(0x28c)]()['tables'][_0x1b8c51];if(!_0x241fa8)return null;let _0x2ce3ce=qe(_0x241fa8),_0x299472=_0x2ce3ce??Je(_0x241fa8),_0x3f4cc1=_0x3f0e25[_0x99001d(0x436)](_0x401b57=>Object['prototype'][_0x99001d(0x445)]['call'](_0x401b57[_0x99001d(0x54e)],_0x299472)),_0x1366eb=_0x2ce3ce?_0x241fa8[_0x99001d(0x453)][_0x2ce3ce]:_0x3f4cc1?Ye(_0x241fa8,_0x299472,_0x933b13):null,_0x33350c=[];for(let _0x5b3658 of _0x3f0e25){let _0x557c30=_0x5b3658[_0x99001d(0x54e)][_0x299472],_0x21291d=_0x1366eb!==null&&Object['prototype']['hasOwnProperty']['call'](_0x5b3658['values'],_0x299472),_0x1959cf=ya(_0x557c30),_0x361bff=null;if(_0x21291d){if(typeof _0x1959cf!='string'||!ze(_0x1959cf,!0x1)[_0x99001d(0x375)])return null;_0x361bff=_0x1959cf;}let _0x371d3e={};if(Object[_0x99001d(0x41d)](_0x5b3658[_0x99001d(0x54e)])[_0x99001d(0x34b)](([_0x11de5b,_0x283147])=>{(!_0x21291d||_0x11de5b!==_0x299472)&&(_0x371d3e[_0x11de5b]=_0x283147);}),!_a(_0x2cafc9,_0x1b8c51,{..._0x5b3658,'values':_0x371d3e}))return null;let _0x455c7d={..._0x5b3658[_0x99001d(0x54e)]};_0x361bff!==null&&(_0x455c7d[_0x299472]=_0x361bff),_0x33350c[_0x99001d(0x381)](va({..._0x5b3658,'values':_0x455c7d}));}return{'records':_0x33350c,'hierarchyFieldToMaterialize':_0x2ce3ce?null:_0x1366eb,'hierarchyChanges':Qe(_0x241fa8,_0x33350c)};}const xa={'id':_0x282c57(0x24b),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x436713,_0x3154d6){const _0x57bd5b=_0x282c57;if(!_0x3154d6)return!0x1;let _0x8371a=_0x436713[_0x57bd5b(0x268)](_0x54ce33),{unitId:_0x3b7931,tableId:_0x209edb,records:_0x5e5653}=_0x3154d6,_0x34a0bd=_0x8371a['getUnit'](_0x3b7931,_0x335149[_0x57bd5b(0x370)]),_0x50582e=_0x5e5653[_0x57bd5b(0x309)](_0xe80962=>_0xe80962['id']);if(!_0x34a0bd||!$(_0x34a0bd,_0x209edb)||new Set(_0x50582e)[_0x57bd5b(0x286)]!==_0x50582e['length'])return!0x1;let _0x5379a7=_0x436713[_0x57bd5b(0x268)](_0x2a9a16),_0x9fbe9f=_0x436713[_0x57bd5b(0x268)](_0x1f4c86),_0x1b790e=_0x436713['get'](Kr),_0x53490a=_0x34a0bd[_0x57bd5b(0x28c)](),_0x2936d2=ba(_0x34a0bd,_0x209edb,_0x5e5653);if(!_0x2936d2)return!0x1;let {records:_0x55830e,hierarchyChanges:_0x58d54c,hierarchyFieldToMaterialize:_0x3b4020}=_0x2936d2,_0x21efe4=_0x3b4020?_0x1b790e[_0x57bd5b(0x3e0)](_0x34a0bd,_0x209edb,_0x3b4020,_0x53490a[_0x57bd5b(0x528)][_0x209edb][_0x57bd5b(0x534)][_0x57bd5b(0x4ab)]):null,_0x398bc5=_0x1b790e['createBatchCreateRecordsOp'](_0x34a0bd,_0x209edb,_0x55830e),_0x23e685=R([..._0x21efe4?[_0x21efe4]:[],_0x398bc5]),_0x471b05=new z()[_0x57bd5b(0x35e)](_0x53490a,_0x23e685),_0x568710={'unitId':_0x3b7931,'op':_0x23e685,'hierarchyChanges':_0x58d54c[_0x57bd5b(0x4ab)]?_0x58d54c:void 0x0,'source':_0x58d54c['length']?_0x3154d6[_0x57bd5b(0x376)]??'ui':void 0x0},_0x445bfb={..._0x568710,'source':_0x58d54c[_0x57bd5b(0x4ab)]?_0x57bd5b(0x324):void 0x0},_0x454937={'unitId':_0x3b7931,'op':_0x471b05,'hierarchyChanges':_0x58d54c[_0x57bd5b(0x4ab)]?_0x58d54c[_0x57bd5b(0x309)](_0x4558dd=>({..._0x4558dd,'oldParentRecordId':_0x4558dd['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x58d54c['length']?_0x57bd5b(0x410):void 0x0};return _0x5379a7[_0x57bd5b(0x2e5)](Q['id'],_0x568710)?(_0x8371a[_0x57bd5b(0x3ed)](_0x3b7931),_0x9fbe9f[_0x57bd5b(0x333)]({'unitID':_0x3b7931,'undoMutations':[{'id':Q['id'],'params':_0x454937}],'redoMutations':[{'id':Q['id'],'params':_0x445bfb}]}),!0x0):!0x1;}},Sa={'id':_0x282c57(0x399),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x2c786e,_0x38219b)=>{const _0x3f7d41=_0x282c57;if(!_0x38219b)return!0x1;let _0x48db31=_0x2c786e[_0x3f7d41(0x268)](_0x54ce33),{unitId:_0x16c7b6,tableId:_0x4bf148,recordIds:_0x4ab051}=_0x38219b,_0x16f055=_0x48db31[_0x3f7d41(0x2ad)](_0x16c7b6,_0x335149[_0x3f7d41(0x370)]);if(!_0x16f055||!$(_0x16f055,_0x4bf148,{'recordIds':_0x4ab051}))return!0x1;let _0x393f26=_0x2c786e['get'](_0x2a9a16),_0x367679=_0x2c786e['get'](_0x1f4c86),_0x587f82=_0x16f055[_0x3f7d41(0x28c)](),_0x11e1de=et(_0x587f82[_0x3f7d41(0x528)][_0x4bf148],_0x4ab051),_0x24609f=new W(),_0x182325=new z(),_0x1379f4=_0x24609f[_0x3f7d41(0x227)](_0x587f82,_0x4bf148,_0x4ab051),_0x3058db=_0x182325['applyOp'](_0x587f82,_0x1379f4),_0xda487b=_0x24609f[_0x3f7d41(0x411)](_0x587f82,_0x3058db,_0x4bf148,_0x4ab051),_0x25ddfb={'unitId':_0x16c7b6,'op':_0x1379f4,'hierarchyChanges':_0x11e1de,'source':_0x38219b[_0x3f7d41(0x376)]??'ui'},_0x315bb8={..._0x25ddfb,'source':_0x3f7d41(0x324)},_0x182a9a={'unitId':_0x16c7b6,'op':_0xda487b,'hierarchyChanges':_0x11e1de[_0x3f7d41(0x309)](_0x5d9a27=>({..._0x5d9a27,'oldParentRecordId':_0x5d9a27[_0x3f7d41(0x1fd)],'parentRecordId':_0x5d9a27[_0x3f7d41(0x1fb)]})),'source':_0x3f7d41(0x410)};return _0x393f26[_0x3f7d41(0x2e5)](Q['id'],_0x25ddfb)?(_0x48db31['focusUnit'](_0x16c7b6),_0x367679[_0x3f7d41(0x333)]({'unitID':_0x16c7b6,'undoMutations':[{'id':Q['id'],'params':_0x182a9a}],'redoMutations':[{'id':Q['id'],'params':_0x315bb8}]}),!0x0):!0x1;}},Ca={'id':_0x282c57(0x3bf),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x2b6870,_0x3c57ea)=>{const _0x426cff=_0x282c57;if(!_0x3c57ea)return!0x1;let _0x112c05=_0x2b6870[_0x426cff(0x268)](_0x54ce33),{unitId:_0x229988,tableId:_0x2fb7f9,fieldId:_0x4d3722,input:_0x5add2d}=_0x3c57ea,_0x44a373=_0x112c05[_0x426cff(0x2ad)](_0x229988,_0x335149['UNIVER_BASE']);if(!_0x44a373||_0x4d3722===_0x1a2ecc||!$(_0x44a373,_0x2fb7f9,{'fieldIds':[_0x4d3722]}))return!0x1;let _0x4533e1=_0x2b6870[_0x426cff(0x268)](_0x2a9a16),_0x66850a=_0x2b6870[_0x426cff(0x268)](_0x1f4c86),_0x516ee1=_0x44a373['getSnapshot']();if(!ha(_0x44a373,_0x2fb7f9,{..._0x516ee1['tables'][_0x2fb7f9][_0x426cff(0x453)][_0x4d3722],..._0x5add2d}))return!0x1;let _0x2e1577=new W()[_0x426cff(0x44f)](_0x516ee1,_0x2fb7f9,_0x4d3722,_0x5add2d),_0x4129cd=new z()[_0x426cff(0x35e)](_0x516ee1,_0x2e1577),_0x45ea2c={'unitId':_0x229988,'op':_0x2e1577},_0x38a414={'unitId':_0x229988,'op':_0x4129cd};return _0x4533e1['syncExecuteCommand'](Q['id'],_0x45ea2c)?(_0x112c05[_0x426cff(0x3ed)](_0x229988),_0x66850a[_0x426cff(0x333)]({'unitID':_0x229988,'undoMutations':[{'id':Q['id'],'params':_0x38a414}],'redoMutations':[{'id':Q['id'],'params':_0x45ea2c}]}),!0x0):!0x1;}},wa={'id':_0x282c57(0x537),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x42ecb7,_0x67fd1e){const _0x34a7e0=_0x282c57;var _0x2f88a7;if(!_0x67fd1e)return!0x1;let {unitId:_0x40c875,tableId:_0x7aa4ef,parentRecordId:_0x49c99b}=_0x67fd1e,_0x1bc38a=_0x42ecb7[_0x34a7e0(0x268)](_0x54ce33),_0x5879db=_0x1bc38a['getUnit'](_0x40c875,_0x335149['UNIVER_BASE']);if(!_0x5879db||!$(_0x5879db,_0x7aa4ef,{'recordIds':[_0x49c99b]}))throw new P('missingRecord');let _0x2fb344=_0x5879db[_0x34a7e0(0x28c)](),_0x417933=_0x2fb344[_0x34a7e0(0x528)][_0x7aa4ef],_0x2bca8a=qe(_0x417933),_0x328082=_0x2bca8a??_0x67fd1e[_0x34a7e0(0x387)]??Je(_0x417933);if(_0x2bca8a&&_0x67fd1e[_0x34a7e0(0x387)]&&_0x67fd1e[_0x34a7e0(0x387)]!==_0x2bca8a||_0x417933[_0x34a7e0(0x453)][_0x328082]&&!F(_0x417933,_0x328082))throw new P(_0x34a7e0(0x38b));if((tt(_0x417933,_0x328082)[_0x34a7e0(0x3ec)][_0x34a7e0(0x268)](_0x49c99b)??0x0)+0x1>=0x5)throw new P(_0x34a7e0(0x1c4));if(!_a(_0x5879db,_0x7aa4ef,_0x67fd1e[_0x34a7e0(0x3a6)]))return!0x1;let _0x301c6f=va({..._0x67fd1e[_0x34a7e0(0x3a6)],'values':{..._0x67fd1e[_0x34a7e0(0x3a6)][_0x34a7e0(0x54e)],[_0x328082]:Re([_0x49c99b])}}),_0x1a7e77=_0x42ecb7[_0x34a7e0(0x268)](Kr),_0x12242=new W(),_0x165c0e=_0x417933['fields'][_0x328082],_0x2f0f54=_0x165c0e?((_0x2f88a7=N(_0x165c0e))==null?void 0x0:_0x2f88a7[_0x34a7e0(0x1f7)])===_0x33634f['Parent']?null:_0x12242[_0x34a7e0(0x2b0)](_0x2fb344,_0x7aa4ef,_0x328082,{'config':{..._0x165c0e[_0x34a7e0(0x50c)],'relationRole':_0x33634f[_0x34a7e0(0x19a)]}}):_0x1a7e77[_0x34a7e0(0x3e0)](_0x5879db,_0x7aa4ef,Ye(_0x417933,_0x328082,_0x67fd1e['parentFieldName']),_0x417933[_0x34a7e0(0x534)]['length']),_0x4afdae=_0x1a7e77['createCreateRecordOp'](_0x5879db,_0x7aa4ef,_0x301c6f),_0x117528=R([..._0x2f0f54?[_0x2f0f54]:[],_0x4afdae]),_0x322e74=new z()[_0x34a7e0(0x35e)](_0x2fb344,_0x117528),_0x266962={'tableId':_0x7aa4ef,'fieldId':_0x328082,'recordId':_0x301c6f['id'],'oldParentRecordId':null,'parentRecordId':_0x49c99b},_0x32a8e7={'unitId':_0x40c875,'op':_0x117528,'trigger':wa['id'],'hierarchyChanges':[_0x266962],'source':_0x67fd1e[_0x34a7e0(0x376)]??'ui'},_0x24c17b={..._0x32a8e7,'source':_0x34a7e0(0x324)},_0xb64059={'unitId':_0x40c875,'op':_0x322e74,'trigger':wa['id'],'hierarchyChanges':[{..._0x266962,'oldParentRecordId':_0x49c99b,'parentRecordId':null}],'source':_0x34a7e0(0x410)};return _0x42ecb7['get'](_0x2a9a16)['syncExecuteCommand'](Q['id'],_0x32a8e7)?(_0x1bc38a[_0x34a7e0(0x3ed)](_0x40c875),_0x42ecb7[_0x34a7e0(0x268)](_0x1f4c86)[_0x34a7e0(0x333)]({'unitID':_0x40c875,'undoMutations':[{'id':Q['id'],'params':_0xb64059}],'redoMutations':[{'id':Q['id'],'params':_0x24c17b}]}),!0x0):!0x1;}},Ta={'id':_0x282c57(0x2ac),'type':_0x31b5a7['COMMAND'],'handler'(_0x419636,_0x1ff7a6){const _0x2e8cfc=_0x282c57;if(!_0x1ff7a6)return!0x1;let _0x57337b=_0x419636[_0x2e8cfc(0x268)](_0x54ce33),{unitId:_0x580e45,tableId:_0x2bc315,field:_0x109560,index:_0x354e7a,viewIndexes:_0x2cb465}=_0x1ff7a6,_0x234591=_0x57337b[_0x2e8cfc(0x2ad)](_0x580e45,_0x335149[_0x2e8cfc(0x370)]);if(!_0x234591||!$(_0x234591,_0x2bc315)||_0x234591[_0x2e8cfc(0x28c)]()[_0x2e8cfc(0x528)][_0x2bc315][_0x2e8cfc(0x453)][_0x109560['id']]||_0x354e7a===0x0||!ha(_0x234591,_0x2bc315,_0x109560))return!0x1;let _0x111d55=_0x419636[_0x2e8cfc(0x268)](_0x2a9a16),_0x1966ce=_0x419636[_0x2e8cfc(0x268)](_0x1f4c86),_0x12a263=_0x419636['get'](Kr)[_0x2e8cfc(0x3e0)](_0x234591,_0x2bc315,_0x109560,_0x354e7a,_0x2cb465),_0x349e00=new z()['invertOp'](_0x234591[_0x2e8cfc(0x28c)](),_0x12a263),_0x277702={'unitId':_0x580e45,'op':_0x12a263},_0x519ca7={'unitId':_0x580e45,'op':_0x349e00};return _0x111d55[_0x2e8cfc(0x2e5)](Q['id'],_0x277702)?(_0x57337b[_0x2e8cfc(0x3ed)](_0x580e45),_0x1966ce[_0x2e8cfc(0x333)]({'unitID':_0x580e45,'undoMutations':[{'id':Q['id'],'params':_0x519ca7}],'redoMutations':[{'id':Q['id'],'params':_0x277702}]}),!0x0):!0x1;}},Ea={'id':_0x282c57(0x4c0),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x1c6993,_0x38df0a){const _0x391fc2=_0x282c57;if(!_0x38df0a)return!0x1;let _0x363c66=_0x1c6993[_0x391fc2(0x268)](_0x54ce33),{unitId:_0x356ae1,tableId:_0x4baa8c,record:_0x16c6c2}=_0x38df0a,_0x370fa3=_0x363c66[_0x391fc2(0x2ad)](_0x356ae1,_0x335149[_0x391fc2(0x370)]);if(!_0x370fa3||!$(_0x370fa3,_0x4baa8c))return!0x1;let _0x436a77=_0x1c6993[_0x391fc2(0x268)](_0x2a9a16),_0x150785=_0x1c6993[_0x391fc2(0x268)](_0x1f4c86),_0x491d22=_0x1c6993[_0x391fc2(0x268)](Kr),_0x22d9f9=_0x370fa3['getSnapshot'](),_0x3b6038=ba(_0x370fa3,_0x4baa8c,[_0x16c6c2]);if(!_0x3b6038)return!0x1;let [_0x470371]=_0x3b6038[_0x391fc2(0x1e1)],{hierarchyChanges:_0x5ee813,hierarchyFieldToMaterialize:_0xf2437f}=_0x3b6038,_0xda8a82=_0xf2437f?_0x491d22[_0x391fc2(0x3e0)](_0x370fa3,_0x4baa8c,_0xf2437f,_0x22d9f9['tables'][_0x4baa8c][_0x391fc2(0x534)][_0x391fc2(0x4ab)]):null,_0x546449=_0x491d22['createCreateRecordOp'](_0x370fa3,_0x4baa8c,_0x470371),_0x365d68=R([..._0xda8a82?[_0xda8a82]:[],_0x546449]),_0x3a8c17=new z()['invertOp'](_0x22d9f9,_0x365d68),_0x175bee={'unitId':_0x356ae1,'op':_0x365d68,'hierarchyChanges':_0x5ee813['length']?_0x5ee813:void 0x0,'source':_0x5ee813['length']?_0x38df0a[_0x391fc2(0x376)]??'ui':void 0x0},_0x5b47cb={..._0x175bee,'source':_0x5ee813[_0x391fc2(0x4ab)]?_0x391fc2(0x324):void 0x0},_0x37c322={'unitId':_0x356ae1,'op':_0x3a8c17,'hierarchyChanges':_0x5ee813[_0x391fc2(0x4ab)]?_0x5ee813[_0x391fc2(0x309)](_0x14dae2=>({..._0x14dae2,'oldParentRecordId':_0x14dae2['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x5ee813[_0x391fc2(0x4ab)]?'undo':void 0x0};return _0x436a77[_0x391fc2(0x2e5)](Q['id'],_0x175bee)?(_0x363c66[_0x391fc2(0x3ed)](_0x356ae1),_0x150785['pushUndoRedo']({'unitID':_0x356ae1,'undoMutations':[{'id':Q['id'],'params':_0x37c322}],'redoMutations':[{'id':Q['id'],'params':_0x5b47cb}]}),!0x0):!0x1;}},Da=_0x282c57(0x45a);function Oa(_0x3a6a55,_0x6143d0,_0x5d2f78){const _0x4e5647=_0x282c57;if(!_0x6143d0[_0x4e5647(0x24d)]())return{'valid':!0x1,'reason':_0x4e5647(0x443),'error':'required'};if(_0x6143d0[_0x4e5647(0x4ab)]>0x1f)return{'valid':!0x1,'reason':_0x4e5647(0x30c),'error':_0x4e5647(0x374)};if(_0x6143d0[_0x4e5647(0x289)]('\x27')||_0x6143d0[_0x4e5647(0x48a)]('\x27'))return{'valid':!0x1,'reason':_0x4e5647(0x1b8),'error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x4e5647(0x1ef)](_0x6143d0))return{'valid':!0x1,'reason':_0x4e5647(0x504),'error':_0x4e5647(0x508)};if(!_0x4ee737(_0x6143d0))return{'valid':!0x1,'reason':_0x4e5647(0x2d8),'error':'invalid'};let _0xfd371d=_0x6143d0[_0x4e5647(0x3ca)]();return Object[_0x4e5647(0x54e)](_0x3a6a55[_0x4e5647(0x528)])[_0x4e5647(0x436)](_0x4f2329=>_0x4f2329['id']!==_0x5d2f78&&_0x4f2329[_0x4e5647(0x2f4)][_0x4e5647(0x3ca)]()===_0xfd371d)?{'valid':!0x1,'reason':_0x4e5647(0x1c2),'error':'duplicate'}:{'valid':!0x0};}function ka(_0x45a2b4,_0x5924be){const _0x30e96e=_0x282c57;let _0x411f62=_0x5924be['replace'](/[:\\/?*\[\]]/g,'\x20')[_0x30e96e(0x1a6)](/^'+|'+$/g,'')['trim']()||_0x30e96e(0x424),_0x1a6a79=0x1;for(;;){let _0x3e6249=_0x1a6a79===0x1?'':'\x20'+_0x1a6a79,_0x2053f3=''+_0x411f62['slice'](0x0,0x1f-_0x3e6249['length'])+_0x3e6249;if(Oa(_0x45a2b4,_0x2053f3)[_0x30e96e(0x375)])return _0x2053f3;_0x1a6a79++;}}const Aa={'id':'base.command.create-base-table','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0xa46ba2,_0x30795)=>{const _0x3b7e65=_0x282c57;if(!_0x30795)return!0x1;let _0x1edb8a=_0xa46ba2[_0x3b7e65(0x268)](_0x54ce33),{unitId:_0x4e3373,table:_0x590517,index:_0x1faa82}=_0x30795,_0x313c6d=_0x1edb8a[_0x3b7e65(0x2ad)](_0x4e3373,_0x335149[_0x3b7e65(0x370)]);if(!_0x313c6d||_0x313c6d[_0x3b7e65(0x28c)]()['tables'][_0x590517['id']]||!Oa(_0x313c6d[_0x3b7e65(0x28c)](),_0x590517['name'])['valid'])return!0x1;try{_0x306a77(_0x590517);}catch{return!0x1;}let _0x4e07af=_0xa46ba2[_0x3b7e65(0x268)](_0x2a9a16),_0x584ab2=_0xa46ba2[_0x3b7e65(0x268)](_0x1f4c86),_0x4c4209=_0x313c6d[_0x3b7e65(0x28c)](),_0x3561c1=new W()[_0x3b7e65(0x206)](_0x4c4209,_0x590517,_0x1faa82),_0x137980=new z()['invertOp'](_0x4c4209,_0x3561c1),_0xb1e836={'unitId':_0x4e3373,'op':_0x3561c1},_0x3f66b3={'unitId':_0x4e3373,'op':_0x137980};return _0x4e07af[_0x3b7e65(0x2e5)](Q['id'],_0xb1e836)?(_0x1edb8a[_0x3b7e65(0x3ed)](_0x4e3373),_0x584ab2['pushUndoRedo']({'unitID':_0x4e3373,'undoMutations':[{'id':Q['id'],'params':_0x3f66b3}],'redoMutations':[{'id':Q['id'],'params':_0xb1e836}]}),!0x0):!0x1;}};function ja(_0x50dce0,_0x619d37,_0x21e4ae=[]){const _0x494bc6=_0x282c57;let _0x2d0da4=new Set([...Object[_0x494bc6(0x54e)](_0x50dce0[_0x494bc6(0x453)])[_0x494bc6(0x4cc)](_0x377280=>_0x377280)[_0x494bc6(0x309)](_0x5eec41=>_0x5eec41[_0x494bc6(0x2f4)]),..._0x21e4ae[_0x494bc6(0x309)](_0x425bc0=>_0x425bc0[_0x494bc6(0x2f4)])]);if(!_0x2d0da4['has'](_0x619d37))return _0x619d37;let _0x28f0a3=0x2;for(;_0x2d0da4[_0x494bc6(0x25c)](_0x619d37+'\x20'+_0x28f0a3);)_0x28f0a3++;return _0x619d37+'\x20'+_0x28f0a3;}function Ma(_0x5f211b,_0x3d5318){const _0x55eacd=_0x282c57;if(!_0x5f211b||!_0x3d5318[_0x55eacd(0x4ab)])return;let _0x1de7d3=[..._0x5f211b];return _0x3d5318[_0x55eacd(0x34b)](_0x231638=>{const _0x29106c=_0x55eacd;_0x1de7d3[_0x29106c(0x3df)](_0x231638)||_0x1de7d3[_0x29106c(0x381)](_0x231638);}),_0x1de7d3;}const Na={'options':[{'id':'todo','name':'Todo','color':_0x282c57(0x279)},{'id':_0x282c57(0x328),'name':_0x282c57(0x32e),'color':_0x282c57(0x2de)},{'id':_0x282c57(0x1d4),'name':'Done','color':_0x282c57(0x457)}]},Pa={'locale':_0x282c57(0x1a9),'pattern':_0x282c57(0x489),'includeTime':!0x1,'hourCycle':'h24','defaultMode':_0x282c57(0x3f5)};function Fa(_0x22e242,_0x32c70e,_0x5e7aa6,_0x3a36da){const _0x10df62=_0x282c57;var _0x237d5a;let _0x42d885=new W(),_0x4ae29f=_0x22e242[_0x10df62(0x528)][_0x32c70e],_0x47a23f=_0x4ae29f?{..._0x5e7aa6,'fieldOrder':[_0x1a2ecc,...(_0x5e7aa6[_0x10df62(0x534)]??_0x4ae29f['fieldOrder'])[_0x10df62(0x4cc)](_0x45d0c1=>_0x45d0c1!==_0x1a2ecc)],'fieldSettings':{..._0x5e7aa6[_0x10df62(0x272)],[_0x1a2ecc]:{...(_0x237d5a=_0x5e7aa6['fieldSettings'])==null?void 0x0:_0x237d5a[_0x1a2ecc],'hidden':!0x0}}}:_0x5e7aa6;if(_0x4ae29f&&_0x47a23f[_0x10df62(0x4aa)]===_0x10df62(0x320)){let _0x164391=La(_0x4ae29f,_0x47a23f),_0x517435=_0x164391[_0x10df62(0x1e5)]?{..._0x47a23f,'config':_0x164391[_0x10df62(0x50c)],'fieldOrder':_0x164391[_0x10df62(0x534)]??_0x47a23f[_0x10df62(0x534)]}:_0x47a23f;return R([..._0x164391['fields'][_0x10df62(0x309)](_0x33dda8=>_0x42d885[_0x10df62(0x212)](_0x22e242,_0x32c70e,{'field':_0x33dda8})),_0x42d885['createView'](_0x22e242,_0x32c70e,_0x517435,_0x3a36da)]);}if(!_0x4ae29f||_0x47a23f['type']!==_0x10df62(0x262)&&_0x47a23f[_0x10df62(0x4aa)]!==_0x10df62(0x3c0))return _0x42d885[_0x10df62(0x24a)](_0x22e242,_0x32c70e,_0x47a23f,_0x3a36da);let _0xac652c=Ia(_0x4ae29f,_0x47a23f),_0x54735e=_0xac652c['changed']?{..._0x47a23f,'config':_0xac652c[_0x10df62(0x50c)],'fieldOrder':_0xac652c[_0x10df62(0x534)]??_0x47a23f[_0x10df62(0x534)]}:_0x47a23f;return _0x47a23f[_0x10df62(0x4aa)]===_0x10df62(0x3c0)&&Ba(_0x47a23f)&&(_0x54735e=Va(_0x4ae29f,_0x54735e,_0xac652c['fields'])),R([..._0xac652c['fields'][_0x10df62(0x309)](_0x3fda87=>_0x42d885[_0x10df62(0x212)](_0x22e242,_0x32c70e,{'field':_0x3fda87})),_0x42d885['createView'](_0x22e242,_0x32c70e,_0x54735e,_0x3a36da)]);}function Ia(_0x19e943,_0x4b8f26,_0x419c81=!0x1){const _0x39854d=_0x282c57;var _0xdc9fab,_0x512e7b;let _0x341544=_0x19e943['fieldOrder']['filter'](_0x541c8e=>Ua(_0x19e943,_0x541c8e)),_0x3f01be=[],_0x2ef693={..._0x4b8f26[_0x39854d(0x50c)]??{}},_0x3d4bc0=typeof _0x2ef693[_0x39854d(0x282)]==_0x39854d(0x3e3)&&Ua(_0x19e943,_0x2ef693[_0x39854d(0x282)])?_0x2ef693[_0x39854d(0x282)]:_0x341544[0x0],_0x2d6a53=typeof _0x2ef693[_0x39854d(0x541)]==_0x39854d(0x3e3)&&Ua(_0x19e943,_0x2ef693[_0x39854d(0x541)])&&_0x2ef693[_0x39854d(0x541)]!==_0x3d4bc0?_0x2ef693[_0x39854d(0x541)]:_0x341544[_0x39854d(0x525)](_0x103985=>_0x103985!==_0x3d4bc0);if(!_0x3d4bc0){let _0x544faf=Wa(_0x19e943,_0x3f01be,_0x4b8f26[_0x39854d(0x4aa)]===_0x39854d(0x3c0)?_0x39854d(0x2cc):_0x39854d(0x240));_0x3f01be[_0x39854d(0x381)](_0x544faf),_0x3d4bc0=_0x544faf['id'];}if((_0x4b8f26[_0x39854d(0x4aa)]===_0x39854d(0x3c0)||_0x419c81)&&!_0x2d6a53){let _0x4e2c55=Wa(_0x19e943,_0x3f01be,_0x39854d(0x267));_0x3f01be[_0x39854d(0x381)](_0x4e2c55),_0x2d6a53=_0x4e2c55['id'];}_0x4b8f26[_0x39854d(0x4aa)]===_0x39854d(0x262)&&!_0x2d6a53&&delete _0x2ef693['endDateFieldId'],_0x2ef693['startDateFieldId']=_0x3d4bc0,_0x4b8f26['type']===_0x39854d(0x262)&&_0x2d6a53&&(_0x2ef693[_0x39854d(0x541)]=_0x2d6a53),_0x4b8f26['type']===_0x39854d(0x3c0)&&(_0x2ef693[_0x39854d(0x541)]=_0x2d6a53??_0x3d4bc0);let _0x2a8156=Ma(_0x4b8f26['fieldOrder'],_0x3f01be[_0x39854d(0x309)](_0x4cea1a=>_0x4cea1a['id']));return{'changed':_0x3f01be[_0x39854d(0x4ab)]>0x0||_0x2ef693[_0x39854d(0x282)]!==((_0xdc9fab=_0x4b8f26[_0x39854d(0x50c)])==null?void 0x0:_0xdc9fab['startDateFieldId'])||_0x2ef693[_0x39854d(0x541)]!==((_0x512e7b=_0x4b8f26['config'])==null?void 0x0:_0x512e7b[_0x39854d(0x541)])||!(!_0x2a8156||_0xd92214[_0x39854d(0x4b1)](_0x2a8156,_0x4b8f26[_0x39854d(0x534)]??[])),'fields':_0x3f01be,'config':_0x2ef693,'fieldOrder':_0x2a8156};}function La(_0x390c2e,_0x128373){const _0x3435d0=_0x282c57;var _0x42a64c;let _0x7bed4f=[],_0x4b8764={..._0x128373[_0x3435d0(0x50c)]??{}},_0x321860=typeof _0x4b8764[_0x3435d0(0x25d)]=='string'&&Ra(_0x390c2e,_0x4b8764['groupFieldId'])?_0x4b8764[_0x3435d0(0x25d)]:_0x390c2e[_0x3435d0(0x534)][_0x3435d0(0x525)](_0x39fc3b=>Ra(_0x390c2e,_0x39fc3b));if(!_0x321860){let _0x2e7d21=za(_0x390c2e,_0x7bed4f);_0x7bed4f[_0x3435d0(0x381)](_0x2e7d21),_0x321860=_0x2e7d21['id'];}_0x4b8764['groupFieldId']=_0x321860;let _0x4916e7=Ma(_0x128373[_0x3435d0(0x534)],_0x7bed4f[_0x3435d0(0x309)](_0x41f724=>_0x41f724['id']));return{'changed':_0x7bed4f[_0x3435d0(0x4ab)]>0x0||_0x4b8764['groupFieldId']!==((_0x42a64c=_0x128373['config'])==null?void 0x0:_0x42a64c[_0x3435d0(0x25d)])||!(!_0x4916e7||_0xd92214[_0x3435d0(0x4b1)](_0x4916e7,_0x128373[_0x3435d0(0x534)]??[])),'fields':_0x7bed4f,'config':_0x4b8764,'fieldOrder':_0x4916e7};}function Ra(_0x345744,_0x255fec){const _0x1def13=_0x282c57;let _0x419252=_0x255fec?_0x345744[_0x1def13(0x453)][_0x255fec]:null;return _0x419252?[_0x239099[_0x1def13(0x2fe)],_0x239099[_0x1def13(0x4b3)],_0x239099[_0x1def13(0x3b7)],_0x239099[_0x1def13(0x2a5)],_0x239099[_0x1def13(0x3af)],_0x239099[_0x1def13(0x379)]][_0x1def13(0x3df)](_0x419252[_0x1def13(0x4aa)]):!0x1;}function za(_0x32882b,_0x294347){const _0x16d6a5=_0x282c57;return{'id':_0x16d6a5(0x252)+_0x4e27d9(0x8),'name':ja(_0x32882b,_0x16d6a5(0x264),_0x294347),'type':_0x239099[_0x16d6a5(0x2fe)],'config':_0xd92214[_0x16d6a5(0x4d7)](Na)};}function Ba(_0x7621f3){const _0x262701=_0x282c57;return Object['keys'](_0x7621f3['config']??{})[_0x262701(0x4ab)]===0x0&&Object[_0x262701(0x334)](_0x7621f3[_0x262701(0x272)]??{})[_0x262701(0x4ab)]===0x0;}function Va(_0x58eceb,_0x57815d,_0x19695a){const _0x2abb03=_0x282c57;let _0x10b70b={..._0x57815d[_0x2abb03(0x50c)]??{}},_0x2b120b=_0x19695a[_0x2abb03(0x309)](_0x27bbf1=>_0x27bbf1['id']),_0x20e96b=[..._0x58eceb[_0x2abb03(0x534)],..._0x2b120b],_0x244760=typeof _0x10b70b[_0x2abb03(0x430)]==_0x2abb03(0x3e3)&&Ha(_0x58eceb,_0x19695a,_0x10b70b['titleFieldId'])?_0x10b70b[_0x2abb03(0x430)]:_0x58eceb[_0x2abb03(0x45c)],_0x1acc52=typeof _0x10b70b[_0x2abb03(0x282)]=='string'?_0x10b70b[_0x2abb03(0x282)]:'',_0x4939cb=typeof _0x10b70b[_0x2abb03(0x541)]=='string'?_0x10b70b[_0x2abb03(0x541)]:_0x1acc52,_0x52da34=new Set([_0x244760,_0x1acc52,_0x4939cb]['filter'](_0x1cf388=>_0x1cf388&&Ha(_0x58eceb,_0x19695a,_0x1cf388))),_0x260125=Object[_0x2abb03(0x1af)](_0x20e96b[_0x2abb03(0x26a)](_0x45afb2=>_0x52da34[_0x2abb03(0x25c)](_0x45afb2)||!Ha(_0x58eceb,_0x19695a,_0x45afb2)?[]:[[_0x45afb2,{'hidden':!0x0}]]));return{..._0x57815d,'config':{..._0x10b70b,'titleFieldId':_0x244760},'fieldSettings':_0x260125};}function Ha(_0x1e7c78,_0x3718a8,_0x3121d9){const _0x138363=_0x282c57;return!!(_0x1e7c78[_0x138363(0x453)][_0x3121d9]??_0x3718a8[_0x138363(0x525)](_0xec1117=>_0xec1117['id']===_0x3121d9))&&!0x0;}function Ua(_0x5cc5e6,_0x47e8ea){const _0xace411=_0x282c57;let _0x3630fb=_0x47e8ea?_0x5cc5e6[_0xace411(0x453)][_0x47e8ea]:null;return!!_0x3630fb&&_0x3630fb[_0xace411(0x4aa)]===_0x239099[_0xace411(0x240)]&&_0x3630fb[_0xace411(0x473)]!==!0x0&&_0x3630fb['system']!==!0x0;}function Wa(_0x3a9261,_0x13af8a,_0x1c39e5){const _0x103cfc=_0x282c57;let _0x478465=new Set([...Object['keys'](_0x3a9261['fields']),..._0x13af8a['map'](_0x38d875=>_0x38d875['id'])]),_0x4dac71=_0x103cfc(0x252)+_0x4e27d9(0x8);for(;_0x478465[_0x103cfc(0x25c)](_0x4dac71);)_0x4dac71=_0x103cfc(0x252)+_0x4e27d9(0x8);return{'id':_0x4dac71,'name':ja(_0x3a9261,_0x1c39e5,_0x13af8a),'type':_0x239099[_0x103cfc(0x240)],'config':{...Pa}};}const Ga={'id':_0x282c57(0x3db),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x44a061,_0x7aa45d)=>{const _0x3b9c48=_0x282c57;if(!_0x7aa45d)return!0x1;let _0x44da9c=_0x44a061['get'](_0x54ce33),{unitId:_0x4c1786,tableId:_0x2e0290,view:_0x5eedeb,index:_0x2c1b75}=_0x7aa45d,_0x4f485e=_0x44da9c[_0x3b9c48(0x2ad)](_0x4c1786,_0x335149[_0x3b9c48(0x370)]);if(!_0x4f485e||!$(_0x4f485e,_0x2e0290)||_0x4f485e['getSnapshot']()['tables'][_0x2e0290][_0x3b9c48(0x4f9)][_0x5eedeb['id']])return!0x1;let _0x17c125=_0x44a061[_0x3b9c48(0x268)](_0x2a9a16),_0x5151ae=_0x44a061[_0x3b9c48(0x268)](_0x1f4c86),_0x136b03=_0x4f485e[_0x3b9c48(0x28c)](),_0x45481b=Fa(_0x136b03,_0x2e0290,_0x5eedeb,_0x2c1b75),_0x421f9b=new z()[_0x3b9c48(0x35e)](_0x136b03,_0x45481b),_0x3e3af5={'historyAction':_0x3b9c48(0x37f),'unitId':_0x4c1786,'op':_0x45481b,'viewType':_0x5eedeb[_0x3b9c48(0x4aa)]},_0x48435b={'historyAction':'delete-view','unitId':_0x4c1786,'op':_0x421f9b,'viewType':_0x5eedeb[_0x3b9c48(0x4aa)]};return _0x17c125['syncExecuteCommand'](Q['id'],_0x3e3af5)?(_0x44da9c[_0x3b9c48(0x3ed)](_0x4c1786),_0x5151ae[_0x3b9c48(0x333)]({'unitID':_0x4c1786,'undoMutations':[{'id':Q['id'],'params':_0x48435b}],'redoMutations':[{'id':Q['id'],'params':_0x3e3af5}]}),!0x0):!0x1;}},Ka={'id':_0x282c57(0x318),'type':_0x31b5a7['COMMAND'],'handler'(_0x44a550,_0x3a5359){const _0x2fc5df=_0x282c57;if(!_0x3a5359)return!0x1;let _0x26f5cc=_0x44a550[_0x2fc5df(0x268)](_0x54ce33),{unitId:_0x366445,tableId:_0x10414b,fieldId:_0x30e9a1}=_0x3a5359,_0x435b28=_0x26f5cc['getUnit'](_0x366445,_0x335149['UNIVER_BASE']);if(!_0x435b28)return!0x1;let _0x3ee69f=_0x435b28[_0x2fc5df(0x28c)](),_0x43994a=_0x3ee69f[_0x2fc5df(0x528)][_0x10414b];if(!$(_0x435b28,_0x10414b,{'fieldIds':[_0x30e9a1]})||_0x43994a[_0x2fc5df(0x45c)]===_0x30e9a1||_0x30e9a1===_0x1a2ecc)return!0x1;let _0x315650=_0x44a550[_0x2fc5df(0x268)](_0x2a9a16),_0x201684=_0x44a550['get'](_0x1f4c86),_0x498523=new W()[_0x2fc5df(0x47b)](_0x3ee69f,_0x10414b,_0x30e9a1),_0x1a1e98=new z()['invertOp'](_0x3ee69f,_0x498523),_0x27701b={'unitId':_0x366445,'op':_0x498523},_0x570abf={'unitId':_0x366445,'op':_0x1a1e98};return _0x315650[_0x2fc5df(0x2e5)](Q['id'],_0x27701b)?(_0x26f5cc[_0x2fc5df(0x3ed)](_0x366445),_0x201684[_0x2fc5df(0x333)]({'unitID':_0x366445,'undoMutations':[{'id':Q['id'],'params':_0x570abf}],'redoMutations':[{'id':Q['id'],'params':_0x27701b}]}),!0x0):!0x1;}},qa={'id':'base.command.delete-base-record','type':_0x31b5a7['COMMAND'],'handler':(_0x55da8d,_0x29dbae)=>{const _0x128c50=_0x282c57;if(!_0x29dbae)return!0x1;let _0x257801=_0x55da8d[_0x128c50(0x268)](_0x54ce33),{unitId:_0x296b1b,tableId:_0x1ce1b8,recordId:_0x37f053}=_0x29dbae,_0x4eed74=_0x257801[_0x128c50(0x2ad)](_0x296b1b,_0x335149[_0x128c50(0x370)]);if(!_0x4eed74||!$(_0x4eed74,_0x1ce1b8,{'recordIds':[_0x37f053]}))return!0x1;let _0xb89fb0=_0x55da8d[_0x128c50(0x268)](_0x2a9a16),_0x4b9879=_0x55da8d['get'](_0x1f4c86),_0x151982=_0x4eed74[_0x128c50(0x28c)](),_0x46fcba=et(_0x151982[_0x128c50(0x528)][_0x1ce1b8],[_0x37f053]),_0x543bdc=new W(),_0x415261=new z(),_0x4476e0=_0x543bdc[_0x128c50(0x4fa)](_0x151982,_0x1ce1b8,_0x37f053),_0xdabdec=_0x415261[_0x128c50(0x2e7)](_0x151982,_0x4476e0),_0x2bdd02=_0x543bdc[_0x128c50(0x411)](_0x151982,_0xdabdec,_0x1ce1b8,[_0x37f053]),_0x29d2b3={'unitId':_0x296b1b,'op':_0x4476e0,'hierarchyChanges':_0x46fcba,'source':_0x29dbae[_0x128c50(0x376)]??'ui'},_0x30f173={..._0x29d2b3,'source':_0x128c50(0x324)},_0x182598={'unitId':_0x296b1b,'op':_0x2bdd02,'hierarchyChanges':_0x46fcba['map'](_0x28db7c=>({..._0x28db7c,'oldParentRecordId':_0x28db7c[_0x128c50(0x1fd)],'parentRecordId':_0x28db7c['oldParentRecordId']})),'source':_0x128c50(0x410)};return _0xb89fb0[_0x128c50(0x2e5)](Q['id'],_0x29d2b3)?(_0x257801[_0x128c50(0x3ed)](_0x296b1b),_0x4b9879[_0x128c50(0x333)]({'unitID':_0x296b1b,'undoMutations':[{'id':Q['id'],'params':_0x182598}],'redoMutations':[{'id':Q['id'],'params':_0x30f173}]}),!0x0):!0x1;}},Ja={'id':_0x282c57(0x455),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x5e12a7,_0x4a11fe)=>{const _0x26b2da=_0x282c57;if(!_0x4a11fe)return!0x1;let _0x3db396=_0x5e12a7[_0x26b2da(0x268)](_0x54ce33),{unitId:_0x29c1c7,tableId:_0x238abb}=_0x4a11fe,_0x25486f=_0x3db396[_0x26b2da(0x2ad)](_0x29c1c7,_0x335149['UNIVER_BASE']);if(!_0x25486f||!$(_0x25486f,_0x238abb))return!0x1;let _0xff9cae=_0x5e12a7['get'](_0x2a9a16),_0x34c2eb=_0x5e12a7[_0x26b2da(0x268)](_0x1f4c86),_0xc049a3=_0x25486f[_0x26b2da(0x28c)](),_0x4286d5=He(_0xc049a3,_0x238abb);if(_0x4286d5[_0x26b2da(0x4ab)]>0x0)return console['error'](_0x26b2da(0x43f)+_0x238abb+_0x26b2da(0x3c3)+_0x4286d5[_0x26b2da(0x309)](_0x65927a=>_0x65927a[_0x26b2da(0x45e)]+'.'+_0x65927a[_0x26b2da(0x387)])[_0x26b2da(0x1c0)](',\x20')+'.'),!0x1;let _0x4ea44c=new W()['deleteTable'](_0xc049a3,_0x238abb),_0x5b13d0=new z()[_0x26b2da(0x35e)](_0xc049a3,_0x4ea44c),_0x50d7fe={'unitId':_0x29c1c7,'op':_0x4ea44c},_0x1b3fd9={'unitId':_0x29c1c7,'op':_0x5b13d0};return _0xff9cae[_0x26b2da(0x2e5)](Q['id'],_0x50d7fe)?(_0x3db396[_0x26b2da(0x3ed)](_0x29c1c7),_0x34c2eb[_0x26b2da(0x333)]({'unitID':_0x29c1c7,'undoMutations':[{'id':Q['id'],'params':_0x1b3fd9}],'redoMutations':[{'id':Q['id'],'params':_0x50d7fe}]}),!0x0):!0x1;}},Ya={'id':_0x282c57(0x1fc),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x321918,_0x1745d3)=>{const _0x1b7283=_0x282c57;if(!_0x1745d3)return!0x1;let _0x29ebab=_0x321918['get'](_0x54ce33),{unitId:_0x5bc1be,tableId:_0x253c35,viewId:_0x51d1fc}=_0x1745d3,_0x16393c=_0x29ebab[_0x1b7283(0x2ad)](_0x5bc1be,_0x335149['UNIVER_BASE']);if(!_0x16393c||!$(_0x16393c,_0x253c35,{'viewIds':[_0x51d1fc]}))return!0x1;let _0x45308d=_0x321918['get'](_0x2a9a16),_0x47e74c=_0x321918[_0x1b7283(0x268)](_0x1f4c86),_0x13698a=_0x16393c['getSnapshot'](),_0x3295e9=_0x13698a[_0x1b7283(0x528)][_0x253c35][_0x1b7283(0x4f9)][_0x51d1fc]['type'],_0x8a59c0=new W()[_0x1b7283(0x3fa)](_0x13698a,_0x253c35,_0x51d1fc),_0x236cd2=new z()['invertOp'](_0x13698a,_0x8a59c0),_0xa66b67={'historyAction':_0x1b7283(0x2e3),'unitId':_0x5bc1be,'op':_0x8a59c0,'viewType':_0x3295e9},_0x44c711={'historyAction':_0x1b7283(0x37f),'unitId':_0x5bc1be,'op':_0x236cd2,'viewType':_0x3295e9};return _0x45308d[_0x1b7283(0x2e5)](Q['id'],_0xa66b67)?(_0x29ebab[_0x1b7283(0x3ed)](_0x5bc1be),_0x47e74c['pushUndoRedo']({'unitID':_0x5bc1be,'undoMutations':[{'id':Q['id'],'params':_0x44c711}],'redoMutations':[{'id':Q['id'],'params':_0xa66b67}]}),!0x0):!0x1;}},Xa={'id':_0x282c57(0x3cf),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x1e2131,_0x59030b)=>{const _0x1d13f4=_0x282c57;if(!_0x59030b)return!0x1;let _0x26b90f=_0x1e2131['get'](_0x54ce33),{unitId:_0x541f18,tableId:_0x1beae2,sourceFieldId:_0x2cffb2,field:_0x2830fc,index:_0x507237,viewIndexes:_0x9737b0}=_0x59030b,_0x4edf09=_0x26b90f[_0x1d13f4(0x2ad)](_0x541f18,_0x335149['UNIVER_BASE']);if(!_0x4edf09||!$(_0x4edf09,_0x1beae2,{'fieldIds':[_0x2cffb2]})||_0x2cffb2===_0x1a2ecc||_0x4edf09[_0x1d13f4(0x28c)]()['tables'][_0x1beae2][_0x1d13f4(0x453)][_0x2830fc['id']]||_0x507237===0x0||!ha(_0x4edf09,_0x1beae2,_0x2830fc))return!0x1;let _0x210649=_0x1e2131['get'](_0x2a9a16),_0x2e7131=_0x1e2131[_0x1d13f4(0x268)](_0x1f4c86),_0x18ab64=_0x4edf09[_0x1d13f4(0x28c)](),_0x1a3490=new W()[_0x1d13f4(0x237)](_0x18ab64,_0x1beae2,_0x2cffb2,{'field':_0x2830fc,'index':_0x507237,'viewIndexes':_0x9737b0}),_0x4ad1dc=new z()[_0x1d13f4(0x35e)](_0x18ab64,_0x1a3490),_0x5662cc={'unitId':_0x541f18,'op':_0x1a3490},_0x183342={'unitId':_0x541f18,'op':_0x4ad1dc};return _0x210649['syncExecuteCommand'](Q['id'],_0x5662cc)?(_0x26b90f[_0x1d13f4(0x3ed)](_0x541f18),_0x2e7131[_0x1d13f4(0x333)]({'unitID':_0x541f18,'undoMutations':[{'id':Q['id'],'params':_0x183342}],'redoMutations':[{'id':Q['id'],'params':_0x5662cc}]}),!0x0):!0x1;}},Za={'id':'base.command.duplicate-base-record','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x337c81,_0x170175)=>{const _0x4af0df=_0x282c57;if(!_0x170175)return!0x1;let _0x26a05f=_0x337c81[_0x4af0df(0x268)](_0x54ce33),{unitId:_0x1a831c,tableId:_0x2496e5,sourceRecordId:_0x36f76d,record:_0x61414c}=_0x170175,_0x1abb9e=_0x26a05f[_0x4af0df(0x2ad)](_0x1a831c,_0x335149[_0x4af0df(0x370)]);if(!_0x1abb9e||!$(_0x1abb9e,_0x2496e5,{'recordIds':[_0x36f76d]})||!_a(_0x1abb9e,_0x2496e5,_0x61414c))return!0x1;let _0x55bb22=_0x337c81[_0x4af0df(0x268)](_0x2a9a16),_0x593d28=_0x337c81[_0x4af0df(0x268)](_0x1f4c86),_0x811d8b=_0x1abb9e[_0x4af0df(0x28c)](),_0x3ec303=va(_0x61414c),_0x2671da=Qe(_0x811d8b['tables'][_0x2496e5],[_0x3ec303]),_0x6e133c=new W()[_0x4af0df(0x43e)](_0x811d8b,_0x2496e5,_0x36f76d,_0x3ec303),_0x25b0ba=new z()[_0x4af0df(0x35e)](_0x811d8b,_0x6e133c),_0x2319f4={'unitId':_0x1a831c,'op':_0x6e133c,'hierarchyChanges':_0x2671da[_0x4af0df(0x4ab)]?_0x2671da:void 0x0,'source':_0x2671da[_0x4af0df(0x4ab)]?_0x170175[_0x4af0df(0x376)]??'ui':void 0x0},_0x59a819={..._0x2319f4,'source':_0x2671da[_0x4af0df(0x4ab)]?_0x4af0df(0x324):void 0x0},_0x554acd={'unitId':_0x1a831c,'op':_0x25b0ba,'hierarchyChanges':_0x2671da[_0x4af0df(0x4ab)]?_0x2671da[_0x4af0df(0x309)](_0x1624d2=>({..._0x1624d2,'oldParentRecordId':_0x1624d2['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x2671da[_0x4af0df(0x4ab)]?_0x4af0df(0x410):void 0x0};return _0x55bb22[_0x4af0df(0x2e5)](Q['id'],_0x2319f4)?(_0x26a05f['focusUnit'](_0x1a831c),_0x593d28[_0x4af0df(0x333)]({'unitID':_0x1a831c,'undoMutations':[{'id':Q['id'],'params':_0x554acd}],'redoMutations':[{'id':Q['id'],'params':_0x59a819}]}),!0x0):!0x1;}},Qa={'id':_0x282c57(0x2a0),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x3d39b8,_0xbcc342){const _0x2ca0a6=_0x282c57;if(!_0xbcc342)return!0x1;let _0x190495=_0x3d39b8[_0x2ca0a6(0x268)](_0x54ce33),{unitId:_0x2a6c69,tableId:_0x4c6031,viewId:_0x585a9b,ensureEndDateField:_0x99480a}=_0xbcc342,_0x2f23b8=_0x190495[_0x2ca0a6(0x2ad)](_0x2a6c69,_0x335149['UNIVER_BASE']);if(!_0x2f23b8||!$(_0x2f23b8,_0x4c6031,{'viewIds':[_0x585a9b]}))return!0x1;let _0x44eaa2=_0x2f23b8[_0x2ca0a6(0x28c)](),_0x4a67d3=_0x44eaa2[_0x2ca0a6(0x528)][_0x4c6031],_0x32f923=_0x4a67d3==null?void 0x0:_0x4a67d3[_0x2ca0a6(0x4f9)][_0x585a9b];if(!_0x4a67d3||!_0x32f923||_0x32f923[_0x2ca0a6(0x4aa)]!==_0x2ca0a6(0x262)&&_0x32f923['type']!==_0x2ca0a6(0x3c0))return!0x1;let _0x390e96=Ia(_0x4a67d3,_0x32f923,_0x99480a===!0x0);if(!_0x390e96[_0x2ca0a6(0x1e5)])return!0x1;let _0xb4bce2=_0x3d39b8[_0x2ca0a6(0x268)](_0x2a9a16),_0x3d52e7=_0x3d39b8[_0x2ca0a6(0x268)](_0x1f4c86),_0x2e031a=new W(),_0xffe8a0=[..._0x390e96[_0x2ca0a6(0x453)]['map'](_0x13886b=>_0x2e031a[_0x2ca0a6(0x212)](_0x44eaa2,_0xbcc342[_0x2ca0a6(0x45e)],{'field':_0x13886b})),$a([...eo(_0xbcc342[_0x2ca0a6(0x45e)],_0xbcc342[_0x2ca0a6(0x44d)]),'config'],_0x32f923[_0x2ca0a6(0x50c)],_0x390e96[_0x2ca0a6(0x50c)])];_0x390e96['fieldOrder']&&_0xffe8a0['push']($a([...eo(_0xbcc342['tableId'],_0xbcc342['viewId']),_0x2ca0a6(0x534)],_0x32f923['fieldOrder'],_0x390e96[_0x2ca0a6(0x534)]));let _0x472b82=R(_0xffe8a0),_0x3a1636=new z()[_0x2ca0a6(0x35e)](_0x44eaa2,_0x472b82),_0x850e6e={'unitId':_0x2a6c69,'op':_0x472b82},_0x3a9484={'unitId':_0x2a6c69,'op':_0x3a1636};return _0xb4bce2[_0x2ca0a6(0x2e5)](Q['id'],_0x850e6e)?(_0x190495[_0x2ca0a6(0x3ed)](_0x2a6c69),_0x3d52e7[_0x2ca0a6(0x333)]({'unitID':_0x2a6c69,'undoMutations':[{'id':Q['id'],'params':_0x3a9484}],'redoMutations':[{'id':Q['id'],'params':_0x850e6e}]}),!0x0):!0x1;}};function $a(_0x2ceba6,_0x4deccb,_0x3a6ea9){const _0x568e48=_0x282c57;return _0x4deccb===void 0x0?_0x2f9032[_0x568e48(0x1d0)](_0x2ceba6,_0x3a6ea9):_0x2f9032[_0x568e48(0x3b0)](_0x2ceba6,_0x4deccb,_0x3a6ea9);}function eo(_0x5d337f,_0x377592){const _0x5c561e=_0x282c57;return[_0x5c561e(0x528),_0x5d337f,_0x5c561e(0x4f9),_0x377592];}const to={'id':'base.command.move-base-field','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x5d1657,_0x1170b7)=>{const _0x397b24=_0x282c57;if(!_0x1170b7)return!0x1;let _0x412984=_0x5d1657['get'](_0x54ce33),{unitId:_0x2a2e07,tableId:_0x3f7635,fieldId:_0x2cd396,target:_0x44b6a0}=_0x1170b7,_0x3e0b82=_0x412984[_0x397b24(0x2ad)](_0x2a2e07,_0x335149[_0x397b24(0x370)]),_0x494bad=_0x44b6a0[_0x397b24(0x21a)]??_0x44b6a0['afterFieldId'];if(!_0x3e0b82||!!_0x44b6a0[_0x397b24(0x21a)]==!!_0x44b6a0[_0x397b24(0x1f0)]||!_0x494bad||_0x494bad===_0x2cd396||_0x2cd396===_0x1a2ecc||_0x44b6a0[_0x397b24(0x21a)]===_0x1a2ecc||!$(_0x3e0b82,_0x3f7635,{'fieldIds':[_0x2cd396,_0x494bad]}))return!0x1;let _0x26a3f2=_0x5d1657[_0x397b24(0x268)](_0x2a9a16),_0xb52aa1=_0x5d1657['get'](_0x1f4c86),_0x3a2308=_0x3e0b82[_0x397b24(0x28c)](),_0x4c70b4=new W()[_0x397b24(0x1cc)](_0x3a2308,_0x3f7635,_0x2cd396,_0x44b6a0),_0x1531eb=new z()['invertOp'](_0x3a2308,_0x4c70b4),_0x51c2c7={'unitId':_0x2a2e07,'op':_0x4c70b4},_0x56683f={'unitId':_0x2a2e07,'op':_0x1531eb};return _0x26a3f2['syncExecuteCommand'](Q['id'],_0x51c2c7)?(_0x412984['focusUnit'](_0x2a2e07),_0xb52aa1[_0x397b24(0x333)]({'unitID':_0x2a2e07,'undoMutations':[{'id':Q['id'],'params':_0x56683f}],'redoMutations':[{'id':Q['id'],'params':_0x51c2c7}]}),!0x0):!0x1;}},no={'id':_0x282c57(0x407),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x3bd4a,_0x5941c8)=>{const _0x4448f4=_0x282c57;var _0x4ac557;if(!_0x5941c8)return!0x1;let {unitId:_0x3943d4,tableId:_0x5b4ef6,recordId:_0x5dba18,parentRecordId:_0x38def9,orderKey:_0x3269e2}=_0x5941c8,_0x5293a9=_0x3bd4a[_0x4448f4(0x268)](_0x54ce33),_0x28f840=_0x5293a9[_0x4448f4(0x2ad)](_0x3943d4,_0x335149[_0x4448f4(0x370)]);if(!_0x28f840||!$(_0x28f840,_0x5b4ef6,{'recordIds':[_0x5dba18,..._0x38def9?[_0x38def9]:[]]}))throw new P(_0x4448f4(0x3a2));let _0x7228af=_0x28f840[_0x4448f4(0x28c)](),_0x2af9d1=_0x7228af[_0x4448f4(0x528)][_0x5b4ef6],_0x1ee77b=qe(_0x2af9d1),_0x3b7f10=_0x1ee77b??_0x5941c8['fieldId']??Je(_0x2af9d1);if(_0x1ee77b&&_0x5941c8[_0x4448f4(0x387)]&&_0x5941c8['fieldId']!==_0x1ee77b||_0x2af9d1['fields'][_0x3b7f10]&&!F(_0x2af9d1,_0x3b7f10))throw new P(_0x4448f4(0x38b));let _0x1afbb5=tt(_0x2af9d1,_0x3b7f10),_0xa5f77b=it(_0x1afbb5,_0x5dba18,_0x38def9);if(!_0xa5f77b[_0x4448f4(0x375)])throw new P(_0xa5f77b['reason']===_0x1e9d86[_0x4448f4(0x341)]?_0x4448f4(0x2e8):_0xa5f77b['reason']===_0x1e9d86[_0x4448f4(0x217)]?_0x4448f4(0x45f):_0x4448f4(0x1c4));let _0x27cdca=_0x1afbb5[_0x4448f4(0x39a)]['get'](_0x5dba18)??null,_0x2fdd43=_0x2af9d1['records'][_0x5dba18][_0x4448f4(0x38a)];if(_0x27cdca===_0x38def9&&(_0x3269e2===void 0x0||_0x3269e2===_0x2fdd43))return!0x0;let _0xcf3895=_0x27cdca!==_0x38def9,_0x10ca30=_0x3269e2!==void 0x0&&_0x3269e2!==_0x2fdd43,_0x3573af=new W(),_0x43f636=[],_0x77e7b1=_0x2af9d1[_0x4448f4(0x453)][_0x3b7f10],_0x6bcaff=_0xcf3895&&(!_0x77e7b1||((_0x4ac557=N(_0x77e7b1))==null?void 0x0:_0x4ac557[_0x4448f4(0x1f7)])!==_0x33634f[_0x4448f4(0x19a)])?_0x77e7b1?_0x3573af[_0x4448f4(0x2b0)](_0x7228af,_0x5b4ef6,_0x3b7f10,{'config':{..._0x77e7b1[_0x4448f4(0x50c)],'relationRole':_0x33634f[_0x4448f4(0x19a)]}}):_0x3bd4a[_0x4448f4(0x268)](Kr)['createCreateFieldOp'](_0x28f840,_0x5b4ef6,Ye(_0x2af9d1,_0x3b7f10,_0x5941c8[_0x4448f4(0x31b)]),_0x2af9d1[_0x4448f4(0x534)][_0x4448f4(0x4ab)]):null;_0x6bcaff&&_0x43f636[_0x4448f4(0x381)](_0x6bcaff),_0xcf3895&&_0x43f636[_0x4448f4(0x381)](_0x3573af[_0x4448f4(0x1e3)](_0x7228af,_0x5b4ef6,_0x5dba18,_0x3b7f10,_0x38def9?Re([_0x38def9]):'')),_0x10ca30&&_0x43f636[_0x4448f4(0x381)](_0x3573af[_0x4448f4(0x327)](_0x7228af,_0x5b4ef6,_0x5dba18,_0x3269e2));let _0x1c5dd8=R(_0x43f636),_0x3320cf={'tableId':_0x5b4ef6,'fieldId':_0x3b7f10,'recordId':_0x5dba18,'oldParentRecordId':_0x27cdca,'parentRecordId':_0x38def9},_0x2515a9={'unitId':_0x3943d4,'op':_0x1c5dd8,'trigger':no['id'],'hierarchyChanges':[_0x3320cf],'source':_0x5941c8[_0x4448f4(0x376)]??'ui'},_0x190156={..._0x2515a9,'source':'redo'};if(!_0x3bd4a['get'](_0x2a9a16)['syncExecuteCommand'](Q['id'],_0x2515a9))return!0x1;let _0x56119e=_0x28f840[_0x4448f4(0x28c)](),_0xa1d6d3=[];_0xcf3895&&_0xa1d6d3[_0x4448f4(0x381)](ro(_0x56119e,_0x7228af,_0x5b4ef6,_0x5dba18,_0x3b7f10)),_0x10ca30&&_0xa1d6d3['push'](io(_0x56119e,_0x7228af,_0x5b4ef6,_0x5dba18)),_0x6bcaff&&_0xa1d6d3['push'](new z()['invertOp'](_0x7228af,_0x6bcaff));let _0x1b4dc7={'unitId':_0x3943d4,'op':R(_0xa1d6d3),'trigger':no['id'],'hierarchyChanges':[{..._0x3320cf,'oldParentRecordId':_0x38def9,'parentRecordId':_0x27cdca}],'source':_0x4448f4(0x410)};return _0x5293a9[_0x4448f4(0x3ed)](_0x3943d4),_0x3bd4a[_0x4448f4(0x268)](_0x1f4c86)[_0x4448f4(0x333)]({'unitID':_0x3943d4,'undoMutations':[{'id':Q['id'],'params':_0x1b4dc7}],'redoMutations':[{'id':Q['id'],'params':_0x190156}]}),!0x0;}};function ro(_0xcc560a,_0x56ddb6,_0x2ebe24,_0x2db3f9,_0x1ff051){const _0x591fa6=_0x282c57;var _0x52e400,_0x3bd8d8,_0x17f7d3,_0x599efa,_0x439631,_0x42f269,_0x3b254e,_0x4d409c;let _0x2f17c6=_0xcc560a[_0x591fa6(0x528)][_0x2ebe24],_0x5d6e8d=_0x56ddb6[_0x591fa6(0x528)][_0x2ebe24],_0x59ee5d=(_0x52e400=_0x2f17c6[_0x591fa6(0x277)])==null?void 0x0:_0x52e400[_0x2db3f9],_0x2af0b9=(_0x3bd8d8=_0x2f17c6[_0x591fa6(0x28f)])==null?void 0x0:_0x3bd8d8[_0x1ff051],_0x28a51e=(_0x17f7d3=_0x5d6e8d[_0x591fa6(0x277)])==null?void 0x0:_0x17f7d3[_0x2db3f9],_0x1e458d=(_0x599efa=_0x5d6e8d[_0x591fa6(0x28f)])==null?void 0x0:_0x599efa[_0x1ff051],_0x29da4c=_0x59ee5d==null||_0x2af0b9==null||(_0x439631=_0x2f17c6[_0x591fa6(0x343)])==null||(_0x439631=_0x439631[_0x59ee5d])==null?void 0x0:_0x439631[_0x2af0b9],_0x4bcd11=_0x28a51e==null||_0x1e458d==null||(_0x42f269=_0x5d6e8d[_0x591fa6(0x343)])==null||(_0x42f269=_0x42f269[_0x28a51e])==null?void 0x0:_0x42f269[_0x1e458d],_0x5c4408=(_0x3b254e=_0x2f17c6[_0x591fa6(0x1e1)][_0x2db3f9])==null?void 0x0:_0x3b254e[_0x591fa6(0x54e)][_0x1ff051],_0x282227=(_0x4d409c=_0x5d6e8d[_0x591fa6(0x1e1)][_0x2db3f9])==null?void 0x0:_0x4d409c['values'][_0x1ff051],_0x11ee63=[],_0x2a4db7=ao(_0x59ee5d==null||_0x2af0b9==null?null:U[_0x591fa6(0x343)](_0x2ebe24,_0x59ee5d,_0x2af0b9),_0x29da4c,_0x4bcd11);_0x2a4db7&&_0x11ee63[_0x591fa6(0x381)](_0x2a4db7);let _0xfd050b=ao(U[_0x591fa6(0x1f9)](_0x2ebe24,_0x2db3f9,_0x1ff051),_0x5c4408,_0x282227);return _0xfd050b&&_0x11ee63[_0x591fa6(0x381)](_0xfd050b),R(_0x11ee63);}function io(_0x10f9e7,_0x5660f1,_0x33c395,_0x574df9){const _0x4295d2=_0x282c57;var _0x334bab,_0x29db3c;let _0x2f599b=_0x10f9e7[_0x4295d2(0x528)][_0x33c395],_0x5071d2=_0x5660f1['tables'][_0x33c395];return R([ao([...U['record'](_0x33c395,_0x574df9),_0x4295d2(0x38a)],(_0x334bab=_0x2f599b['records'][_0x574df9])==null?void 0x0:_0x334bab[_0x4295d2(0x38a)],(_0x29db3c=_0x5071d2[_0x4295d2(0x1e1)][_0x574df9])==null?void 0x0:_0x29db3c[_0x4295d2(0x38a)]),ao([...U[_0x4295d2(0x270)](_0x33c395),_0x4295d2(0x413)],_0x2f599b[_0x4295d2(0x413)],_0x5071d2[_0x4295d2(0x413)])][_0x4295d2(0x4cc)](_0x5b26ce=>!!_0x5b26ce));}function ao(_0x2c1cd6,_0x21f734,_0x46bd91){const _0x2dbb02=_0x282c57;if(!_0x2c1cd6||_0x21f734===void 0x0&&_0x46bd91===void 0x0)return null;let _0x354eb9=_0x21604b[_0x2dbb02(0x37d)]();return _0x46bd91===void 0x0?_0x354eb9['removeOp'](_0x2c1cd6,_0x21f734):_0x21f734===void 0x0?_0x354eb9['insertOp'](_0x2c1cd6,_0x46bd91):_0x354eb9['replaceOp'](_0x2c1cd6,_0x21f734,_0x46bd91);}const oo={'id':_0x282c57(0x1d8),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x99f96,_0x18ff94)=>{const _0x18f79c=_0x282c57;if(!_0x18ff94)return!0x1;let _0x20748b=_0x99f96['get'](_0x54ce33),{unitId:_0x37b122,tableId:_0x46a7b3,viewId:_0x238515,target:_0x25bce1}=_0x18ff94,_0x158881=_0x20748b['getUnit'](_0x37b122,_0x335149[_0x18f79c(0x370)]),_0x48089f=_0x25bce1[_0x18f79c(0x454)]??_0x25bce1[_0x18f79c(0x314)];if(!_0x158881||!_0x48089f||_0x48089f===_0x238515||!$(_0x158881,_0x46a7b3,{'viewIds':[_0x238515,_0x48089f]}))return!0x1;let _0x860269=_0x99f96['get'](_0x2a9a16),_0x4c393d=_0x99f96[_0x18f79c(0x268)](_0x1f4c86),_0x49c256=_0x158881[_0x18f79c(0x28c)](),_0x43b664=new W()[_0x18f79c(0x360)](_0x49c256,_0x46a7b3,_0x238515,_0x25bce1),_0x65d7c1=new z()[_0x18f79c(0x35e)](_0x49c256,_0x43b664),_0x5e54b0={'unitId':_0x37b122,'op':_0x43b664},_0x540fea={'unitId':_0x37b122,'op':_0x65d7c1};return _0x860269['syncExecuteCommand'](Q['id'],_0x5e54b0)?(_0x20748b[_0x18f79c(0x3ed)](_0x37b122),_0x4c393d[_0x18f79c(0x333)]({'unitID':_0x37b122,'undoMutations':[{'id':Q['id'],'params':_0x540fea}],'redoMutations':[{'id':Q['id'],'params':_0x5e54b0}]}),!0x0):!0x1;}},so={'id':'base.command.rename-base-table','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x361c52,_0x5a25ae)=>{const _0x582c22=_0x282c57;if(!_0x5a25ae)return!0x1;let _0x20cb1a=_0x361c52[_0x582c22(0x268)](_0x54ce33),{unitId:_0x55b7ab,tableId:_0x2216ee,name:_0x26bcc9}=_0x5a25ae,_0x5cf22f=_0x20cb1a['getUnit'](_0x55b7ab,_0x335149[_0x582c22(0x370)]);if(!_0x5cf22f||!$(_0x5cf22f,_0x2216ee)||!Oa(_0x5cf22f[_0x582c22(0x28c)](),_0x26bcc9,_0x2216ee)['valid'])return!0x1;let _0x23c0b0=_0x361c52['get'](_0x2a9a16),_0x4086d2=_0x361c52['get'](_0x1f4c86),_0x171e4d=_0x5cf22f['getSnapshot'](),_0x1e1a97=new W()[_0x582c22(0x33e)](_0x171e4d,_0x2216ee,_0x26bcc9),_0x52d826=new z()['invertOp'](_0x171e4d,_0x1e1a97),_0x9b22bf={'unitId':_0x55b7ab,'op':_0x1e1a97},_0x245e41={'unitId':_0x55b7ab,'op':_0x52d826};return _0x23c0b0['syncExecuteCommand'](Q['id'],_0x9b22bf)?(_0x20cb1a[_0x582c22(0x3ed)](_0x55b7ab),_0x4086d2[_0x582c22(0x333)]({'unitID':_0x55b7ab,'undoMutations':[{'id':Q['id'],'params':_0x245e41}],'redoMutations':[{'id':Q['id'],'params':_0x9b22bf}]}),!0x0):!0x1;}},co={'id':'base.command.rename-base-view','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x4298f7,_0x1913dc)=>{const _0x3cc710=_0x282c57;if(!_0x1913dc)return!0x1;let _0x5dbed2=_0x4298f7[_0x3cc710(0x268)](_0x54ce33),{unitId:_0x1e23f8,tableId:_0x8d2709,viewId:_0x411939,name:_0x33dd55}=_0x1913dc,_0x585f11=_0x5dbed2[_0x3cc710(0x2ad)](_0x1e23f8,_0x335149[_0x3cc710(0x370)]);if(!_0x585f11||!$(_0x585f11,_0x8d2709,{'viewIds':[_0x411939]}))return!0x1;let _0x215502=_0x4298f7[_0x3cc710(0x268)](_0x2a9a16),_0xc84c6b=_0x4298f7[_0x3cc710(0x268)](_0x1f4c86),_0x4275e6=_0x585f11[_0x3cc710(0x28c)](),_0x290b83=new W()['renameView'](_0x4275e6,_0x8d2709,_0x411939,_0x33dd55),_0x27b68=new z()[_0x3cc710(0x35e)](_0x4275e6,_0x290b83),_0x53050d={'unitId':_0x1e23f8,'op':_0x290b83},_0x17038e={'unitId':_0x1e23f8,'op':_0x27b68};return _0x215502[_0x3cc710(0x2e5)](Q['id'],_0x53050d)?(_0x5dbed2[_0x3cc710(0x3ed)](_0x1e23f8),_0xc84c6b[_0x3cc710(0x333)]({'unitID':_0x1e23f8,'undoMutations':[{'id':Q['id'],'params':_0x17038e}],'redoMutations':[{'id':Q['id'],'params':_0x53050d}]}),!0x0):!0x1;}},lo={'id':_0x282c57(0x478),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x2171f6,_0x2bbd28)=>{const _0x4432f6=_0x282c57;if(!_0x2bbd28)return!0x1;let _0x84aa6c=_0x2171f6[_0x4432f6(0x268)](_0x54ce33),{unitId:_0xccb813,tableId:_0x3e9391,viewId:_0x4fa843,fieldId:_0x39a429}=_0x2bbd28,_0x4df3fe=_0x84aa6c[_0x4432f6(0x2ad)](_0xccb813,_0x335149['UNIVER_BASE']);if(!_0x4df3fe||!$(_0x4df3fe,_0x3e9391,{'viewIds':[_0x4fa843],'fieldIds':[_0x39a429]}))return!0x1;let _0x4d8177=_0x2171f6[_0x4432f6(0x268)](_0x2a9a16),_0x471bd2=_0x2171f6[_0x4432f6(0x268)](_0x1f4c86),_0x505e06=_0x4df3fe['getSnapshot'](),_0x271f4a=new W()[_0x4432f6(0x393)](_0x505e06,_0x3e9391,_0x4fa843,{'groupFieldId':_0x39a429}),_0x48ab48=new z()['invertOp'](_0x505e06,_0x271f4a),_0x2618ca={'unitId':_0xccb813,'op':_0x271f4a},_0xcbfb1a={'unitId':_0xccb813,'op':_0x48ab48};return _0x4d8177[_0x4432f6(0x2e5)](Q['id'],_0x2618ca)?(_0x84aa6c[_0x4432f6(0x3ed)](_0xccb813),_0x471bd2[_0x4432f6(0x333)]({'unitID':_0xccb813,'undoMutations':[{'id':Q['id'],'params':_0xcbfb1a}],'redoMutations':[{'id':Q['id'],'params':_0x2618ca}]}),!0x0):!0x1;}},uo={'id':'base.command.set-base-name','type':_0x31b5a7['COMMAND'],'handler':(_0x3aa0a4,_0x135194)=>{const _0x1dd386=_0x282c57;if(!_0x135194)return!0x1;let _0x37f84c=_0x3aa0a4[_0x1dd386(0x268)](_0x54ce33),_0x445147=_0x37f84c[_0x1dd386(0x2ad)](_0x135194[_0x1dd386(0x226)],_0x335149['UNIVER_BASE']);if(!_0x445147)return!0x1;let _0x5779f4=_0x445147[_0x1dd386(0x28c)]()[_0x1dd386(0x2f4)];if(_0x5779f4===_0x135194[_0x1dd386(0x2f4)])return!0x0;let _0x3d1a0d=new W(),_0x673063=new z(),_0x27a70e=[],_0x3ba4e9=[],_0x115520=[_0x445147,..._0x37f84c[_0x1dd386(0x1cd)](_0x335149['UNIVER_BASE'])[_0x1dd386(0x4cc)](_0x24ebed=>_0x24ebed['getUnitId']()!==_0x135194[_0x1dd386(0x226)])];for(let _0x198142 of _0x115520){let _0x50f219=_0x198142[_0x1dd386(0x28c)](),_0x9394df=_0x198142===_0x445147?_0x3d1a0d[_0x1dd386(0x20b)](_0x50f219,_0x135194['name']):_0x3d1a0d[_0x1dd386(0x3bd)](_0x50f219,_0x5779f4,_0x135194[_0x1dd386(0x2f4)]);_0x9394df&&(_0x27a70e[_0x1dd386(0x381)]({'id':Q['id'],'params':{'unitId':_0x198142[_0x1dd386(0x1e4)](),'op':_0x9394df,'trigger':uo['id']}}),_0x3ba4e9[_0x1dd386(0x339)]({'id':Q['id'],'params':{'unitId':_0x198142['getUnitId'](),'op':_0x673063['invertOp'](_0x50f219,_0x9394df),'trigger':uo['id']}}));}let _0x15f524=_0x3aa0a4[_0x1dd386(0x268)](_0x2a9a16),_0xad5d55=_0x3aa0a4[_0x1dd386(0x268)](_0x1f4c86),_0x178225=_0xad5d55[_0x1dd386(0x1cf)](_0x135194[_0x1dd386(0x226)]);try{return _0x34a596(_0x27a70e,_0x15f524)[_0x1dd386(0x427)]?(_0x37f84c[_0x1dd386(0x3ed)](_0x135194[_0x1dd386(0x226)]),_0xad5d55[_0x1dd386(0x333)]({'unitID':_0x135194[_0x1dd386(0x226)],'undoMutations':_0x3ba4e9,'redoMutations':_0x27a70e}),!0x0):!0x1;}finally{_0x178225[_0x1dd386(0x27a)]();}}},fo={'type':_0x31b5a7[_0x282c57(0x401)],'id':'base.command.set-permission',async 'handler'(_0x5af0ef,_0x5dd191){const _0x5a1774=_0x282c57;if(!_0x5dd191||!Tr[_0x5a1774(0x3df)](_0x5dd191[_0x5a1774(0x1ce)])||_0x5dd191[_0x5a1774(0x223)]!==_0x5dd191[_0x5a1774(0x226)]&&_0x5dd191[_0x5a1774(0x1ce)]!==_0x133e41[_0x5a1774(0x4a6)]||_0x5dd191['policy']&&(![_0x5a1774(0x207),_0x5a1774(0x355),_0x5a1774(0x38e)][_0x5a1774(0x3df)](_0x5dd191[_0x5a1774(0x1a8)][_0x5a1774(0x301)])||_0x5dd191[_0x5a1774(0x1a8)][_0x5a1774(0x4a1)][_0x5a1774(0x436)](_0x4e8935=>!Tr['includes'](_0x4e8935['action'])||_0x5dd191[_0x5a1774(0x223)]!==_0x5dd191[_0x5a1774(0x226)]&&_0x4e8935[_0x5a1774(0x1ce)]!==_0x133e41[_0x5a1774(0x4a6)])))return!0x1;let _0x2395b7=Pr(_0x5dd191[_0x5a1774(0x226)],_0x5dd191['objectId'],_0x5dd191[_0x5a1774(0x1ce)]),_0x8bfcc6={'unitId':_0x5dd191[_0x5a1774(0x226)],'objectId':_0x5dd191[_0x5a1774(0x223)],'objectType':_0x2395b7['type']},_0x460c9d=_0x5af0ef['get'](_0x532322);return _0x5dd191[_0x5a1774(0x49c)]?await _0x460c9d['remove'](_0x8bfcc6):_0x5dd191[_0x5a1774(0x1a8)]?await _0x460c9d[_0x5a1774(0x310)](_0x8bfcc6,_0x5dd191[_0x5a1774(0x1a8)]):await _0x460c9d['setPoint'](_0x8bfcc6,_0x2395b7,_0x5dd191[_0x5a1774(0x373)]),!0x0;}},po={'type':_0x31b5a7[_0x282c57(0x401)],'id':_0x282c57(0x34f),async 'handler'(_0x56e09c,_0xad89f5){const _0x40c5fa=_0x282c57;if(!(_0xad89f5!=null&&_0xad89f5['unitId'])||!Array[_0x40c5fa(0x3d5)](_0xad89f5[_0x40c5fa(0x24e)])||!_0xad89f5['changes']['length']||_0xad89f5['changes'][_0x40c5fa(0x436)](_0x5c9d55=>!(_0x5c9d55!=null&&_0x5c9d55[_0x40c5fa(0x223)])||_0x5c9d55[_0x40c5fa(0x223)]===_0xad89f5[_0x40c5fa(0x226)]||_0x5c9d55[_0x40c5fa(0x1a8)]!==null&&(!_0x5c9d55['policy']||![_0x40c5fa(0x207),_0x40c5fa(0x355),'members'][_0x40c5fa(0x3df)](_0x5c9d55['policy']['edit'])||!Array[_0x40c5fa(0x3d5)](_0x5c9d55[_0x40c5fa(0x1a8)][_0x40c5fa(0x4e8)])||!Array[_0x40c5fa(0x3d5)](_0x5c9d55[_0x40c5fa(0x1a8)][_0x40c5fa(0x4a1)])||_0x5c9d55[_0x40c5fa(0x1a8)][_0x40c5fa(0x4a1)]['some'](_0x1d5af8=>_0x1d5af8['action']!==_0x133e41[_0x40c5fa(0x4a6)]))))throw Error(_0x40c5fa(0x1dc));return _0x56e09c[_0x40c5fa(0x268)](_0x532322)['saveMany'](_0xad89f5[_0x40c5fa(0x24e)][_0x40c5fa(0x309)](_0x1f4246=>{const _0x582419=_0x40c5fa;let _0x5c3c19=Pr(_0xad89f5[_0x582419(0x226)],_0x1f4246[_0x582419(0x223)],_0x133e41[_0x582419(0x4a6)]);return{'unitId':_0xad89f5['unitId'],'objectId':_0x1f4246[_0x582419(0x223)],'objectType':_0x5c3c19['type'],'policy':_0x1f4246[_0x582419(0x1a8)]};}));}};function mo(_0x577973,_0x38fdfd){const _0x56035d=_0x282c57;let _0x3398bf=L(_0xd92214[_0x56035d(0x4d7)](_0x577973)),_0x449d22=new Map();return _0x38fdfd[_0x56035d(0x34b)](_0x445a78=>{const _0x35dde8=_0x56035d;var _0x3baa59,_0x59d079;let _0x26ce58=_0x35dde8(0x40d)in _0x445a78?_0x445a78['recordId']:(_0x3baa59=_0x3398bf['rowId'])==null?void 0x0:_0x3baa59[_0x445a78[_0x35dde8(0x2f0)]],_0x3b9510=_0x35dde8(0x387)in _0x445a78?_0x445a78[_0x35dde8(0x387)]:(_0x59d079=_0x3398bf['colId'])==null?void 0x0:_0x59d079[_0x445a78[_0x35dde8(0x340)]],_0x1f8899=_0x3b9510?_0x3398bf[_0x35dde8(0x453)][_0x3b9510]:void 0x0;if(!_0x26ce58||!_0x3b9510||!_0x1f8899||!_0x3398bf[_0x35dde8(0x1e1)][_0x26ce58])return;let _0xda1bd7=xt(_0x445a78[_0x35dde8(0x373)],_0x1f8899),_0x4e5043=wt(_0x445a78[_0x35dde8(0x373)],_0xda1bd7,_0x1f8899,_0x3398bf,_0x26ce58),_0x469e42=_0x449d22[_0x35dde8(0x268)](_0x26ce58)??{};_0x469e42[_0x3b9510]=_0x4e5043,_0x449d22[_0x35dde8(0x246)](_0x26ce58,_0x469e42);}),[..._0x449d22][_0x56035d(0x309)](([_0x281e07,_0x3f41de])=>({'recordId':_0x281e07,'values':_0x3f41de}));}const ho={'id':_0x282c57(0x220),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x1c1902,_0x5f3643){const _0x26652f=_0x282c57;if(!_0x5f3643)return!0x1;let _0x2d2e5c=_0x1c1902[_0x26652f(0x268)](_0x54ce33),{unitId:_0x49a650,tableId:_0x2f78b0,patches:_0xc1b84d}=_0x5f3643,_0x5160f4=_0x2d2e5c[_0x26652f(0x2ad)](_0x49a650,_0x335149['UNIVER_BASE']);if(!_0x5160f4||!$(_0x5160f4,_0x2f78b0))return!0x1;let _0x5759ad=_0x1c1902[_0x26652f(0x268)](_0x2a9a16),_0x4db9a3=_0x1c1902[_0x26652f(0x268)](_0x1f4c86),_0x3959eb=_0x5160f4[_0x26652f(0x28c)](),_0x3719e4=L(_0x3959eb['tables'][_0x2f78b0]),_0x4f0223=_0xc1b84d[_0x26652f(0x309)](_0x275cb9=>{const _0x4d008e=_0x26652f;var _0x4b13cd;return _0x4d008e(0x40d)in _0x275cb9?_0x275cb9[_0x4d008e(0x40d)]:(_0x4b13cd=_0x3719e4['rowId'])==null?void 0x0:_0x4b13cd[_0x275cb9[_0x4d008e(0x2f0)]];})['filter'](_0x5c2c34=>_0x5c2c34!=null),_0x3cd4f4=_0xc1b84d[_0x26652f(0x309)](_0x55f56d=>{const _0x3e6655=_0x26652f;var _0x5692af;return _0x3e6655(0x387)in _0x55f56d?_0x55f56d['fieldId']:(_0x5692af=_0x3719e4['colId'])==null?void 0x0:_0x5692af[_0x55f56d[_0x3e6655(0x340)]];})[_0x26652f(0x4cc)](_0x4834f7=>_0x4834f7!=null);if(_0x4f0223[_0x26652f(0x4ab)]!==_0xc1b84d[_0x26652f(0x4ab)]||_0x3cd4f4[_0x26652f(0x4ab)]!==_0xc1b84d[_0x26652f(0x4ab)]||!$(_0x5160f4,_0x2f78b0,{'recordIds':_0x4f0223,'fieldIds':_0x3cd4f4})||_0xc1b84d[_0x26652f(0x436)]((_0x3202b8,_0x178f9e)=>!ga(_0x5160f4,_0x2f78b0,_0x3cd4f4[_0x178f9e],_0x3202b8[_0x26652f(0x373)])))return!0x1;let _0x1085cc=Ze(_0x3719e4,mo(_0x3719e4,_0xc1b84d)),_0xa8bda9=_0xc1b84d['flatMap'](_0x5b5d11=>{const _0x471ff5=_0x26652f;var _0xfa410,_0x123c27;if('row'in _0x5b5d11)return[_0x5b5d11];let _0xd1c22f=(_0xfa410=_0x3719e4[_0x471ff5(0x277)])==null?void 0x0:_0xfa410[_0x5b5d11['recordId']],_0x396791=(_0x123c27=_0x3719e4[_0x471ff5(0x28f)])==null?void 0x0:_0x123c27[_0x5b5d11[_0x471ff5(0x387)]];return _0xd1c22f==null||_0x396791==null?[]:[{'row':_0xd1c22f,'col':_0x396791,'value':_0x5b5d11['value']}];}),_0x415170=new W()[_0x26652f(0x30b)](_0x3959eb,_0x2f78b0,_0xa8bda9),_0x41a56e=new z()['invertOp'](_0x3959eb,_0x415170),_0x461b77={'unitId':_0x49a650,'op':_0x415170,'trigger':_0x1085cc[_0x26652f(0x4ab)]?ho['id']:void 0x0,'hierarchyChanges':_0x1085cc['length']?_0x1085cc:void 0x0,'source':_0x1085cc[_0x26652f(0x4ab)]?_0x26652f(0x324):void 0x0},_0x1ff4e2={'unitId':_0x49a650,'op':_0x41a56e,'trigger':_0x1085cc[_0x26652f(0x4ab)]?ho['id']:void 0x0,'hierarchyChanges':_0x1085cc[_0x26652f(0x4ab)]?_0x1085cc[_0x26652f(0x309)](_0xf66974=>({..._0xf66974,'oldParentRecordId':_0xf66974[_0x26652f(0x1fd)],'parentRecordId':_0xf66974[_0x26652f(0x1fb)]})):void 0x0,'source':_0x1085cc[_0x26652f(0x4ab)]?'undo':void 0x0},_0x5f5159={..._0x461b77,'source':_0x1085cc[_0x26652f(0x4ab)]?_0x5f3643['source']??'ui':void 0x0};return _0x5759ad['syncExecuteCommand'](Q['id'],_0x5f5159)?(_0x2d2e5c['focusUnit'](_0x49a650),_0x4db9a3[_0x26652f(0x333)]({'unitID':_0x49a650,'undoMutations':[{'id':Q['id'],'params':_0x1ff4e2}],'redoMutations':[{'id':Q['id'],'params':_0x461b77}]}),!0x0):!0x1;}},go={'id':_0x282c57(0x418),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x347b5b,_0x37d762){const _0x2e617f=_0x282c57;if(!_0x37d762)return!0x1;let _0x2887d5=_0x347b5b[_0x2e617f(0x268)](_0x54ce33),{unitId:_0x47a5e7,tableId:_0x3e698c,patches:_0x478566}=_0x37d762,_0x4d941c=_0x2887d5[_0x2e617f(0x2ad)](_0x47a5e7,_0x335149[_0x2e617f(0x370)]),_0x2774a7=_0x478566['map'](_0x308e82=>_0x308e82[_0x2e617f(0x40d)]),_0x472d65=_0x478566[_0x2e617f(0x26a)](_0x1cbad5=>Object[_0x2e617f(0x334)](_0x1cbad5[_0x2e617f(0x54e)]));if(!_0x4d941c||!$(_0x4d941c,_0x3e698c,{'recordIds':_0x2774a7,'fieldIds':_0x472d65})||_0x478566[_0x2e617f(0x436)](_0x428b9f=>Object['entries'](_0x428b9f[_0x2e617f(0x54e)])[_0x2e617f(0x436)](([_0x1891e1,_0xd8d187])=>!ga(_0x4d941c,_0x3e698c,_0x1891e1,_0xd8d187))))return!0x1;let _0x4264d3=Ze(_0x4d941c[_0x2e617f(0x28c)]()[_0x2e617f(0x528)][_0x3e698c],_0x478566),_0x4374fd=_0x347b5b[_0x2e617f(0x268)](_0x2a9a16),_0x24ca31=_0x347b5b[_0x2e617f(0x268)](_0x1f4c86),_0x514a4a=_0x347b5b[_0x2e617f(0x268)](Kr)[_0x2e617f(0x19f)](_0x4d941c,_0x3e698c,_0x478566),_0x5dafdf=new z()[_0x2e617f(0x35e)](_0x4d941c[_0x2e617f(0x28c)](),_0x514a4a),_0x3f9819={'unitId':_0x47a5e7,'op':_0x514a4a,'trigger':_0x4264d3[_0x2e617f(0x4ab)]?go['id']:void 0x0,'hierarchyChanges':_0x4264d3['length']?_0x4264d3:void 0x0,'source':_0x4264d3[_0x2e617f(0x4ab)]?_0x37d762['source']??'ui':void 0x0},_0x2f50e1={..._0x3f9819,'source':_0x4264d3[_0x2e617f(0x4ab)]?_0x2e617f(0x324):void 0x0},_0x17b133={'unitId':_0x47a5e7,'op':_0x5dafdf,'trigger':_0x4264d3['length']?go['id']:void 0x0,'hierarchyChanges':_0x4264d3[_0x2e617f(0x4ab)]?_0x4264d3[_0x2e617f(0x309)](_0x56395b=>({..._0x56395b,'oldParentRecordId':_0x56395b['parentRecordId'],'parentRecordId':_0x56395b[_0x2e617f(0x1fb)]})):void 0x0,'source':_0x4264d3[_0x2e617f(0x4ab)]?'undo':void 0x0};return _0x4374fd[_0x2e617f(0x2e5)](Q['id'],_0x3f9819)?(_0x2887d5[_0x2e617f(0x3ed)](_0x47a5e7),_0x24ca31[_0x2e617f(0x333)]({'unitID':_0x47a5e7,'undoMutations':[{'id':Q['id'],'params':_0x17b133}],'redoMutations':[{'id':Q['id'],'params':_0x2f50e1}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x194eb1,_0x3ccfdf)=>{const _0x3dd86b=_0x282c57;if(!_0x3ccfdf)return!0x1;let {unitId:_0x48710b,tableId:_0x2830d9,fieldId:_0x100356}=_0x3ccfdf,_0x1166b0=_0x194eb1[_0x3dd86b(0x268)](_0x54ce33),_0x519965=_0x1166b0[_0x3dd86b(0x2ad)](_0x48710b,_0x335149[_0x3dd86b(0x370)]);if(!_0x519965||!$(_0x519965,_0x2830d9))return!0x1;let _0x20e11f=_0x519965[_0x3dd86b(0x28c)](),_0x29e6cb=_0x20e11f[_0x3dd86b(0x528)][_0x2830d9];if(_0x100356!==null&&!F(_0x29e6cb,_0x100356))throw new P(_0x3dd86b(0x38b));if(qe(_0x29e6cb)===_0x100356)return!0x0;let _0x5ba5c4=new W(),_0x2a88ab=R(Object[_0x3dd86b(0x54e)](_0x29e6cb[_0x3dd86b(0x453)])[_0x3dd86b(0x26a)](_0x32f06f=>{const _0xfd029d=_0x3dd86b;if(!F(_0x29e6cb,_0x32f06f['id']))return[];let _0x3b45c7=N(_0x32f06f);if(!_0x3b45c7)return[];let _0x2771cd=_0x32f06f['id']===_0x100356;if(_0x3b45c7['relationRole']===_0x33634f['Parent']===_0x2771cd)return[];let _0x314528={..._0x32f06f[_0xfd029d(0x50c)],'targetTableId':_0x3b45c7[_0xfd029d(0x3e5)],'multiple':_0x3b45c7[_0xfd029d(0x3ea)]};return _0x2771cd?_0x314528[_0xfd029d(0x1f7)]=_0x33634f[_0xfd029d(0x19a)]:delete _0x314528['relationRole'],[_0x5ba5c4[_0xfd029d(0x2b0)](_0x20e11f,_0x2830d9,_0x32f06f['id'],{'config':_0x314528})];})),_0x58d5c9=new z()[_0x3dd86b(0x35e)](_0x20e11f,_0x2a88ab),_0x5dc2c2={'unitId':_0x48710b,'op':_0x2a88ab},_0x362a9c={'unitId':_0x48710b,'op':_0x58d5c9};return _0x194eb1[_0x3dd86b(0x268)](_0x2a9a16)[_0x3dd86b(0x2e5)](Q['id'],_0x5dc2c2)?(_0x1166b0[_0x3dd86b(0x3ed)](_0x48710b),_0x194eb1[_0x3dd86b(0x268)](_0x1f4c86)['pushUndoRedo']({'unitID':_0x48710b,'undoMutations':[{'id':Q['id'],'params':_0x362a9c}],'redoMutations':[{'id':Q['id'],'params':_0x5dc2c2}]}),!0x0):!0x1;}},vo={'id':_0x282c57(0x371),'type':_0x31b5a7['COMMAND'],'handler':(_0x24f89d,_0x37bdd8)=>{const _0xc51f3b=_0x282c57;if(!_0x37bdd8)return!0x1;let _0x40a5f1=_0x24f89d[_0xc51f3b(0x268)](_0x54ce33),{unitId:_0x212e91,tableId:_0x552b09,viewId:_0x21846c,fieldId:_0x53ec84,target:_0x235f27}=_0x37bdd8,_0x258e59=_0x40a5f1['getUnit'](_0x212e91,_0x335149[_0xc51f3b(0x370)]),_0x2a4804=_0x235f27[_0xc51f3b(0x21a)]??_0x235f27['afterFieldId'];if(!_0x258e59||!_0x2a4804||_0x2a4804===_0x53ec84||!$(_0x258e59,_0x552b09,{'viewIds':[_0x21846c],'fieldIds':[_0x53ec84,_0x2a4804]}))return!0x1;let _0x1218ad=_0x258e59[_0xc51f3b(0x28c)]()[_0xc51f3b(0x528)][_0x552b09],_0x33d94d=_0x1218ad[_0xc51f3b(0x453)][_0x53ec84],_0x38d213=_0x1218ad[_0xc51f3b(0x453)][_0x2a4804];if(_0x33d94d[_0xc51f3b(0x43c)]===!0x0||_0x33d94d[_0xc51f3b(0x4aa)]===_0x239099['RecordId']||_0x38d213[_0xc51f3b(0x43c)]===!0x0||_0x38d213[_0xc51f3b(0x4aa)]===_0x239099['RecordId'])return!0x1;let _0x45e465=_0x24f89d[_0xc51f3b(0x268)](_0x2a9a16),_0x2e647a=_0x24f89d[_0xc51f3b(0x268)](_0x1f4c86),_0x48d437=_0x258e59['getSnapshot'](),_0x30c8c7=new W()[_0xc51f3b(0x2af)](_0x48d437,_0x552b09,_0x21846c,_0x53ec84,_0x235f27),_0x54814f=new z()[_0xc51f3b(0x35e)](_0x48d437,_0x30c8c7),_0x2b6325={'unitId':_0x212e91,'op':_0x30c8c7},_0xb86344={'unitId':_0x212e91,'op':_0x54814f};return _0x45e465[_0xc51f3b(0x2e5)](Q['id'],_0x2b6325)?(_0x40a5f1[_0xc51f3b(0x3ed)](_0x212e91),_0x2e647a[_0xc51f3b(0x333)]({'unitID':_0x212e91,'undoMutations':[{'id':Q['id'],'params':_0xb86344}],'redoMutations':[{'id':Q['id'],'params':_0x2b6325}]}),!0x0):!0x1;}},yo={'id':_0x282c57(0x4c2),'type':_0x31b5a7['COMMAND'],'handler'(_0x5aed3b,_0x33e74c){const _0x32b4d5=_0x282c57;if(!_0x33e74c)return!0x1;let _0x2c25c9=_0x5aed3b[_0x32b4d5(0x268)](_0x54ce33),{unitId:_0x394ece,tableId:_0x291fc6,viewId:_0x3f828f,fieldId:_0x1073cf,visible:_0x656ab1}=_0x33e74c,_0x49d99b=_0x2c25c9[_0x32b4d5(0x2ad)](_0x394ece,_0x335149[_0x32b4d5(0x370)]);if(!_0x49d99b||!$(_0x49d99b,_0x291fc6,{'viewIds':[_0x3f828f],'fieldIds':[_0x1073cf]}))return!0x1;let _0x368f0e=_0x49d99b[_0x32b4d5(0x28c)]()['tables'][_0x291fc6][_0x32b4d5(0x453)][_0x1073cf];if(_0x368f0e[_0x32b4d5(0x43c)]===!0x0||_0x368f0e[_0x32b4d5(0x4aa)]===_0x239099[_0x32b4d5(0x205)])return!0x1;let _0x47bb01=_0x5aed3b[_0x32b4d5(0x268)](_0x2a9a16),_0x5383c2=_0x5aed3b['get'](_0x1f4c86),_0x543313=_0x49d99b[_0x32b4d5(0x28c)](),_0xd93a28=new W()[_0x32b4d5(0x353)](_0x543313,_0x291fc6,_0x3f828f,_0x1073cf,_0x656ab1),_0x1b0042=new z()[_0x32b4d5(0x35e)](_0x543313,_0xd93a28),_0x1ce096={'unitId':_0x394ece,'op':_0xd93a28},_0x57bef9={'unitId':_0x394ece,'op':_0x1b0042};return _0x47bb01[_0x32b4d5(0x2e5)](Q['id'],_0x1ce096)?(_0x2c25c9[_0x32b4d5(0x3ed)](_0x394ece),_0x5383c2[_0x32b4d5(0x333)]({'unitID':_0x394ece,'undoMutations':[{'id':Q['id'],'params':_0x57bef9}],'redoMutations':[{'id':Q['id'],'params':_0x1ce096}]}),!0x0):!0x1;}},bo={'id':_0x282c57(0x52a),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x3fa1d5,_0x26548c)=>{const _0x22bc8b=_0x282c57;if(!_0x26548c)return!0x1;let _0x5b1819=_0x3fa1d5['get'](_0x54ce33),{unitId:_0x166a7c,tableId:_0x4c71b4,viewId:_0x2525f8,fieldId:_0x328ddb,width:_0x5d7f8b}=_0x26548c,_0xdba627=_0x5b1819['getUnit'](_0x166a7c,_0x335149[_0x22bc8b(0x370)]);if(!_0xdba627||!$(_0xdba627,_0x4c71b4,{'viewIds':[_0x2525f8],'fieldIds':[_0x328ddb]}))return!0x1;let _0x17f6a1=_0xdba627[_0x22bc8b(0x28c)]()['tables'][_0x4c71b4][_0x22bc8b(0x453)][_0x328ddb];if(_0x17f6a1[_0x22bc8b(0x43c)]===!0x0||_0x17f6a1['type']===_0x239099[_0x22bc8b(0x205)])return!0x1;let _0x19cc32=_0x3fa1d5['get'](_0x2a9a16),_0x1f91bb=_0x3fa1d5[_0x22bc8b(0x268)](_0x1f4c86),_0x16ab7d=_0xdba627[_0x22bc8b(0x28c)](),_0x297a29=new W()[_0x22bc8b(0x229)](_0x16ab7d,_0x4c71b4,_0x2525f8,_0x328ddb,_0x5d7f8b),_0x2be264=new z()['invertOp'](_0x16ab7d,_0x297a29),_0x25fe23={'unitId':_0x166a7c,'op':_0x297a29},_0x29185c={'unitId':_0x166a7c,'op':_0x2be264};return _0x19cc32['syncExecuteCommand'](Q['id'],_0x25fe23)?(_0x5b1819[_0x22bc8b(0x3ed)](_0x166a7c),_0x1f91bb[_0x22bc8b(0x333)]({'unitID':_0x166a7c,'undoMutations':[{'id':Q['id'],'params':_0x29185c}],'redoMutations':[{'id':Q['id'],'params':_0x25fe23}]}),!0x0):!0x1;}},xo={'id':_0x282c57(0x37a),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x28dea8,_0x42cf1e)=>{const _0x42cd51=_0x282c57;if(!_0x42cf1e)return!0x1;let _0x23edc3=_0x28dea8[_0x42cd51(0x268)](_0x54ce33),{unitId:_0xa71404,tableId:_0x24d17a,viewId:_0x271c76,filter:_0x52e127}=_0x42cf1e,_0x35698f=_0x23edc3[_0x42cd51(0x2ad)](_0xa71404,_0x335149[_0x42cd51(0x370)]),_0x2cc4a8=(_0x52e127==null?void 0x0:_0x52e127[_0x42cd51(0x3d8)][_0x42cd51(0x309)](_0x3360c3=>_0x3360c3[_0x42cd51(0x387)]))??[];if(!_0x35698f||!$(_0x35698f,_0x24d17a,{'viewIds':[_0x271c76],'fieldIds':_0x2cc4a8}))return!0x1;let _0x22bfb=_0x28dea8[_0x42cd51(0x268)](_0x2a9a16),_0x1766c7=_0x28dea8['get'](_0x1f4c86),_0x270352=_0x35698f['getSnapshot'](),_0x23f47c=new W()[_0x42cd51(0x296)](_0x270352,_0x24d17a,_0x271c76,_0x52e127),_0x1d9d73=new z()['invertOp'](_0x270352,_0x23f47c),_0x3a3c1e={'unitId':_0xa71404,'op':_0x23f47c},_0x2733c={'unitId':_0xa71404,'op':_0x1d9d73};return _0x22bfb[_0x42cd51(0x2e5)](Q['id'],_0x3a3c1e)?(_0x23edc3[_0x42cd51(0x3ed)](_0xa71404),_0x1766c7['pushUndoRedo']({'unitID':_0xa71404,'undoMutations':[{'id':Q['id'],'params':_0x2733c}],'redoMutations':[{'id':Q['id'],'params':_0x3a3c1e}]}),!0x0):!0x1;}},So={'id':_0x282c57(0x48b),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x3a0a74,_0x412d4a)=>{const _0x2204fc=_0x282c57;if(!_0x412d4a)return!0x1;let _0x2a034b=_0x3a0a74[_0x2204fc(0x268)](_0x54ce33),{unitId:_0x4ac9fd,tableId:_0x1961d0,viewId:_0x9cb5db,group:_0x13e4f6}=_0x412d4a,_0x1826ea=_0x2a034b[_0x2204fc(0x2ad)](_0x4ac9fd,_0x335149[_0x2204fc(0x370)]);if(!_0x1826ea||!$(_0x1826ea,_0x1961d0,{'viewIds':[_0x9cb5db],'fieldIds':_0x13e4f6[_0x2204fc(0x309)](_0x35af82=>_0x35af82[_0x2204fc(0x387)])}))return!0x1;let _0x2c6822=_0x3a0a74['get'](_0x2a9a16),_0x5199f6=_0x3a0a74[_0x2204fc(0x268)](_0x1f4c86),_0x59b1a8=_0x1826ea[_0x2204fc(0x28c)](),_0x26c1f2=new W()[_0x2204fc(0x1f2)](_0x59b1a8,_0x1961d0,_0x9cb5db,_0x13e4f6),_0x49d57e=new z()[_0x2204fc(0x35e)](_0x59b1a8,_0x26c1f2),_0x5a9c64={'unitId':_0x4ac9fd,'op':_0x26c1f2},_0x3a9613={'unitId':_0x4ac9fd,'op':_0x49d57e};return _0x2c6822['syncExecuteCommand'](Q['id'],_0x5a9c64)?(_0x2a034b[_0x2204fc(0x3ed)](_0x4ac9fd),_0x5199f6[_0x2204fc(0x333)]({'unitID':_0x4ac9fd,'undoMutations':[{'id':Q['id'],'params':_0x3a9613}],'redoMutations':[{'id':Q['id'],'params':_0x5a9c64}]}),!0x0):!0x1;}},Co={'id':_0x282c57(0x555),'type':_0x31b5a7['COMMAND'],'handler':(_0x139dba,_0x46c48b)=>{const _0xf5a1ea=_0x282c57;if(!_0x46c48b)return!0x1;let _0x19c0d2=_0x139dba['get'](_0x54ce33),{unitId:_0x52cc01,tableId:_0xe54a,viewId:_0xb3da7b,sort:_0x2954bf}=_0x46c48b,_0x1c1873=_0x19c0d2[_0xf5a1ea(0x2ad)](_0x52cc01,_0x335149[_0xf5a1ea(0x370)]);if(!_0x1c1873||!$(_0x1c1873,_0xe54a,{'viewIds':[_0xb3da7b],'fieldIds':_0x2954bf[_0xf5a1ea(0x309)](_0x389b01=>_0x389b01[_0xf5a1ea(0x387)])}))return!0x1;let _0x24d001=_0x139dba[_0xf5a1ea(0x268)](_0x2a9a16),_0x34ba5a=_0x139dba['get'](_0x1f4c86),_0x1956bd=_0x1c1873[_0xf5a1ea(0x28c)](),_0x49bd19=new W()[_0xf5a1ea(0x36b)](_0x1956bd,_0xe54a,_0xb3da7b,_0x2954bf),_0x157e44=new z()[_0xf5a1ea(0x35e)](_0x1956bd,_0x49bd19),_0x3d981d={'unitId':_0x52cc01,'op':_0x49bd19},_0xdcf38b={'unitId':_0x52cc01,'op':_0x157e44};return _0x24d001['syncExecuteCommand'](Q['id'],_0x3d981d)?(_0x19c0d2[_0xf5a1ea(0x3ed)](_0x52cc01),_0x34ba5a[_0xf5a1ea(0x333)]({'unitID':_0x52cc01,'undoMutations':[{'id':Q['id'],'params':_0xdcf38b}],'redoMutations':[{'id':Q['id'],'params':_0x3d981d}]}),!0x0):!0x1;}},wo={'id':_0x282c57(0x1a2),'type':_0x31b5a7['COMMAND'],'handler'(_0x2eabda,_0x252126){const _0x4fba94=_0x282c57;if(!_0x252126)return!0x1;let _0x42df87=_0x2eabda[_0x4fba94(0x268)](_0x54ce33),{unitId:_0x1e07ae,tableId:_0x46478e,recordId:_0x43d872,fieldId:_0x18730a,value:_0x304488}=_0x252126,_0x3a8e06=_0x42df87[_0x4fba94(0x2ad)](_0x1e07ae,_0x335149[_0x4fba94(0x370)]);if(!_0x3a8e06||!$(_0x3a8e06,_0x46478e,{'recordIds':[_0x43d872],'fieldIds':[_0x18730a]})||!ga(_0x3a8e06,_0x46478e,_0x18730a,_0x304488))return!0x1;let _0x3bf0b1=_0x3a8e06[_0x4fba94(0x28c)]()[_0x4fba94(0x528)][_0x46478e],_0x3beea9=F(_0x3bf0b1,_0x18730a)&&Xe(_0x3bf0b1)[_0x4fba94(0x3df)](_0x18730a),_0x2ba2f7=_0x3beea9?tt(_0x3bf0b1,_0x18730a):null,_0x472d31=(_0x2ba2f7==null?void 0x0:_0x2ba2f7['parentByRecordId'][_0x4fba94(0x268)](_0x43d872))??null,_0x1b8a2e=_0x3beea9?Le(_0x304488)[0x0]??null:null;if(_0x2ba2f7){if(_0x1b8a2e&&!_0x3bf0b1[_0x4fba94(0x1e1)][_0x1b8a2e])throw new P(_0x4fba94(0x3a2));let _0x458774=it(_0x2ba2f7,_0x43d872,_0x1b8a2e);if(!_0x458774[_0x4fba94(0x375)])throw new P(_0x458774[_0x4fba94(0x2cd)]===_0x1e9d86[_0x4fba94(0x341)]?'selfParent':_0x458774[_0x4fba94(0x2cd)]===_0x1e9d86['Cycle']?'cycle':_0x4fba94(0x1c4));}let _0x29d70b=_0x2eabda['get'](_0x2a9a16),_0x55d757=_0x2eabda[_0x4fba94(0x268)](_0x1f4c86),_0x287e2d=_0x2eabda['get'](Kr),_0x3fff1d;try{_0x3fff1d=_0x287e2d[_0x4fba94(0x539)](_0x3a8e06,_0x46478e,_0x43d872,_0x18730a,_0x304488);}catch(_0x362c5f){return console[_0x4fba94(0x1e9)](_0x4fba94(0x29e),_0x362c5f),!0x1;}let _0xd5edc9=new z()[_0x4fba94(0x35e)](_0x3a8e06[_0x4fba94(0x28c)](),_0x3fff1d),_0x1f443c=_0x3beea9&&_0x472d31!==_0x1b8a2e?[{'tableId':_0x46478e,'fieldId':_0x18730a,'recordId':_0x43d872,'oldParentRecordId':_0x472d31,'parentRecordId':_0x1b8a2e}]:void 0x0,_0xe1779c={'unitId':_0x1e07ae,'op':_0x3fff1d,'trigger':_0x1f443c?wo['id']:void 0x0,'hierarchyChanges':_0x1f443c,'source':_0x1f443c?_0x252126['source']??'ui':void 0x0},_0x29d9e0={..._0xe1779c,'source':_0x1f443c?'redo':void 0x0},_0x1d77ea={'unitId':_0x1e07ae,'op':_0xd5edc9,'trigger':_0x1f443c?wo['id']:void 0x0,'hierarchyChanges':_0x1f443c==null?void 0x0:_0x1f443c['map'](_0x204ec7=>({..._0x204ec7,'oldParentRecordId':_0x204ec7[_0x4fba94(0x1fd)],'parentRecordId':_0x204ec7[_0x4fba94(0x1fb)]})),'source':_0x1f443c?_0x4fba94(0x410):void 0x0};return _0x29d70b[_0x4fba94(0x2e5)](Q['id'],_0xe1779c)?(_0x42df87[_0x4fba94(0x3ed)](_0x1e07ae),_0x55d757[_0x4fba94(0x333)]({'unitID':_0x1e07ae,'undoMutations':[{'id':Q['id'],'params':_0x1d77ea}],'redoMutations':[{'id':Q['id'],'params':_0x29d9e0}]}),!0x0):!0x1;}},To={'id':_0x282c57(0x225),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0x5b0816,_0x28ffb1){const _0x318825=_0x282c57;if(!_0x28ffb1)return!0x1;let _0x453080=_0x5b0816[_0x318825(0x268)](_0x54ce33),{unitId:_0x41a272,tableId:_0x182523,fieldId:_0x3acdca}=_0x28ffb1,_0x489fe1=_0x453080[_0x318825(0x2ad)](_0x41a272,_0x335149['UNIVER_BASE']);if(!_0x489fe1||!$(_0x489fe1,_0x182523,{'fieldIds':[_0x3acdca]}))return!0x1;let _0x4adb7c=_0x5b0816[_0x318825(0x268)](_0x2a9a16),_0x3c325d=_0x5b0816[_0x318825(0x268)](_0x1f4c86),_0x568ccf=_0x489fe1['getSnapshot'](),_0x11a7a0=_0x28ffb1['description']['trim'](),_0x4ae730=new W()[_0x318825(0x2b0)](_0x568ccf,_0x182523,_0x3acdca,{'description':_0x11a7a0}),_0x5c9189=new z()[_0x318825(0x35e)](_0x489fe1[_0x318825(0x28c)](),_0x4ae730),_0x505c97={'unitId':_0x41a272,'op':_0x4ae730},_0x46b644={'unitId':_0x41a272,'op':_0x5c9189};return _0x4adb7c[_0x318825(0x2e5)](Q['id'],_0x505c97)?(_0x453080[_0x318825(0x3ed)](_0x41a272),_0x3c325d['pushUndoRedo']({'unitID':_0x41a272,'undoMutations':[{'id':Q['id'],'params':_0x46b644}],'redoMutations':[{'id':Q['id'],'params':_0x505c97}]}),!0x0):!0x1;}},Eo={'id':_0x282c57(0x4d2),'type':_0x31b5a7['COMMAND'],'handler':(_0x52839a,_0x4f0302)=>{const _0xfbfe5f=_0x282c57;if(!_0x4f0302)return!0x1;let _0x21fbd5=_0x52839a[_0xfbfe5f(0x268)](_0x54ce33),{unitId:_0x2e80ba,tableId:_0x5e9393,fieldId:_0x4dd202,patch:_0x4115c1}=_0x4f0302,_0x51fa60=_0x21fbd5[_0xfbfe5f(0x2ad)](_0x2e80ba,_0x335149[_0xfbfe5f(0x370)]);if(!_0x51fa60||_0x4dd202===_0x1a2ecc||!$(_0x51fa60,_0x5e9393,{'fieldIds':[_0x4dd202]}))return!0x1;let _0x1df2f6=_0x52839a[_0xfbfe5f(0x268)](_0x2a9a16),_0x4dcf36=_0x52839a[_0xfbfe5f(0x268)](_0x1f4c86),_0x4c8652=_0x51fa60['getSnapshot']();if(!ha(_0x51fa60,_0x5e9393,{..._0x4c8652[_0xfbfe5f(0x528)][_0x5e9393][_0xfbfe5f(0x453)][_0x4dd202],..._0x4115c1}))return!0x1;let _0x26e1c5=new W()[_0xfbfe5f(0x2b0)](_0x4c8652,_0x5e9393,_0x4dd202,_0x4115c1),_0x3c29d5=new z()[_0xfbfe5f(0x35e)](_0x4c8652,_0x26e1c5),_0x53183a={'unitId':_0x2e80ba,'op':_0x26e1c5},_0x34e0fc={'unitId':_0x2e80ba,'op':_0x3c29d5};return _0x1df2f6['syncExecuteCommand'](Q['id'],_0x53183a)?(_0x21fbd5['focusUnit'](_0x2e80ba),_0x4dcf36[_0xfbfe5f(0x333)]({'unitID':_0x2e80ba,'undoMutations':[{'id':Q['id'],'params':_0x34e0fc}],'redoMutations':[{'id':Q['id'],'params':_0x53183a}]}),!0x0):!0x1;}},Do={'id':_0x282c57(0x53d),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x1e12e4,_0x5a8694)=>{const _0xeffc6=_0x282c57;if(!_0x5a8694)return!0x1;let _0x27d9d9=_0x1e12e4[_0xeffc6(0x268)](_0x54ce33),{unitId:_0x125484,tableId:_0x49b993,viewId:_0x53c19a,patch:_0x744074}=_0x5a8694,_0x477030=_0x27d9d9[_0xeffc6(0x2ad)](_0x125484,_0x335149[_0xeffc6(0x370)]);if(!_0x477030||!$(_0x477030,_0x49b993,{'viewIds':[_0x53c19a]}))return!0x1;let _0x2c8cdb=_0x1e12e4[_0xeffc6(0x268)](_0x2a9a16),_0x53f0a1=_0x1e12e4[_0xeffc6(0x268)](_0x1f4c86),_0x51df58=_0x477030[_0xeffc6(0x28c)](),_0x20558a=new W()[_0xeffc6(0x393)](_0x51df58,_0x49b993,_0x53c19a,_0x744074),_0x3860a9=new z()[_0xeffc6(0x35e)](_0x51df58,_0x20558a),_0x488a28={'unitId':_0x125484,'op':_0x20558a},_0x30b010={'unitId':_0x125484,'op':_0x3860a9};return _0x2c8cdb['syncExecuteCommand'](Q['id'],_0x488a28)?(_0x27d9d9['focusUnit'](_0x125484),_0x53f0a1[_0xeffc6(0x333)]({'unitID':_0x125484,'undoMutations':[{'id':Q['id'],'params':_0x30b010}],'redoMutations':[{'id':Q['id'],'params':_0x488a28}]}),!0x0):!0x1;}},Oo={'id':'base.command.update-base-record-order','type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x136fc0,_0x547c63)=>{const _0x3d459b=_0x282c57;if(!_0x547c63)return!0x1;let _0x859846=_0x136fc0[_0x3d459b(0x268)](_0x54ce33),{unitId:_0x5e2a1f,tableId:_0x4cdcdc,recordId:_0x3c05cb,orderKey:_0x40803d}=_0x547c63,_0x52a509=_0x859846[_0x3d459b(0x2ad)](_0x5e2a1f,_0x335149[_0x3d459b(0x370)]);if(!_0x52a509||!$(_0x52a509,_0x4cdcdc,{'recordIds':[_0x3c05cb]}))return!0x1;let _0xd3cfe0=_0x136fc0[_0x3d459b(0x268)](_0x2a9a16),_0x572536=_0x136fc0[_0x3d459b(0x268)](_0x1f4c86),_0x4b22fa=_0x52a509[_0x3d459b(0x28c)](),_0x3ec242=new W()[_0x3d459b(0x327)](_0x4b22fa,_0x4cdcdc,_0x3c05cb,_0x40803d),_0x5767b4=new z()['invertOp'](_0x4b22fa,_0x3ec242),_0x5b5f22={'unitId':_0x5e2a1f,'op':_0x3ec242},_0x3cd8a4={'unitId':_0x5e2a1f,'op':_0x5767b4};return _0xd3cfe0['syncExecuteCommand'](Q['id'],_0x5b5f22)?(_0x859846['focusUnit'](_0x5e2a1f),_0x572536[_0x3d459b(0x333)]({'unitID':_0x5e2a1f,'undoMutations':[{'id':Q['id'],'params':_0x3cd8a4}],'redoMutations':[{'id':Q['id'],'params':_0x5b5f22}]}),!0x0):!0x1;}};let ko=function(_0x178ab7){const _0x45bf05=_0x282c57;return _0x178ab7[_0x45bf05(0x32f)]=_0x45bf05(0x246),_0x178ab7[_0x45bf05(0x302)]='add',_0x178ab7[_0x45bf05(0x47c)]='delete',_0x178ab7[_0x45bf05(0x3a8)]=_0x45bf05(0x216),_0x178ab7;}({});const Ao={'id':_0x282c57(0x4e7),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x413f02,_0x21a320)=>{const _0x183f7f=_0x282c57;var _0x1288a4;if(!_0x21a320)return!0x1;let _0x27d14c=_0x413f02[_0x183f7f(0x268)](_0x54ce33),_0x34cde2=_0x27d14c[_0x183f7f(0x2ad)](_0x21a320['unitId'],_0x335149['UNIVER_BASE']);if(!_0x34cde2||!$(_0x34cde2,_0x21a320[_0x183f7f(0x45e)],{'viewIds':[_0x21a320['viewId']]}))return!0x1;let _0x1f99c7=_0x34cde2[_0x183f7f(0x28c)](),_0xdd93b1=_0x1f99c7[_0x183f7f(0x528)][_0x21a320['tableId']],_0xcf5aab=jo(((_0x1288a4=_0xdd93b1[_0x183f7f(0x4f9)][_0x21a320[_0x183f7f(0x44d)]]['config'][_0x183f7f(0x3c8)])==null?void 0x0:_0x1288a4[_0x183f7f(0x1dd)])??[],_0x21a320);if(!_0xcf5aab)return!0x1;Mo(_0xdd93b1,_0xcf5aab);let _0x25fede=new W()[_0x183f7f(0x393)](_0x1f99c7,_0x21a320[_0x183f7f(0x45e)],_0x21a320[_0x183f7f(0x44d)],{'conditionalColoring':_0xcf5aab['length']?{'rules':_0xcf5aab}:null}),_0x4e12f7=new z()[_0x183f7f(0x35e)](_0x1f99c7,_0x25fede),_0x5960c7={'unitId':_0x21a320[_0x183f7f(0x226)],'op':_0x25fede},_0x58b54e={'unitId':_0x21a320[_0x183f7f(0x226)],'op':_0x4e12f7};return _0x413f02[_0x183f7f(0x268)](_0x2a9a16)[_0x183f7f(0x2e5)](Q['id'],_0x5960c7)?(_0x27d14c[_0x183f7f(0x3ed)](_0x21a320[_0x183f7f(0x226)]),_0x413f02[_0x183f7f(0x268)](_0x1f4c86)['pushUndoRedo']({'unitID':_0x21a320[_0x183f7f(0x226)],'undoMutations':[{'id':Q['id'],'params':_0x58b54e}],'redoMutations':[{'id':Q['id'],'params':_0x5960c7}]}),!0x0):!0x1;}};function jo(_0x382c0d,_0x3a09cb){const _0x1bef18=_0x282c57;switch(_0x3a09cb[_0x1bef18(0x4aa)]){case _0x1bef18(0x246):return _0xd92214[_0x1bef18(0x4d7)](_0x3a09cb['rules']);case _0x1bef18(0x551):return[..._0xd92214[_0x1bef18(0x4d7)](_0x382c0d),_0xd92214[_0x1bef18(0x4d7)](_0x3a09cb['rule'])];case'delete':{let _0x2b04c2=_0x382c0d['filter'](_0x53bc64=>_0x53bc64['id']!==_0x3a09cb[_0x1bef18(0x18f)]);return _0x2b04c2[_0x1bef18(0x4ab)]===_0x382c0d['length']?null:_0xd92214[_0x1bef18(0x4d7)](_0x2b04c2);}case _0x1bef18(0x216):return _0x382c0d[_0x1bef18(0x4ab)]?[]:null;}}function Mo(_0x4df9f3,_0x10e0cd){const _0x3c90f4=_0x282c57;if(!Array[_0x3c90f4(0x3d5)](_0x10e0cd))throw TypeError(_0x3c90f4(0x3b4));let _0x38af11=new Set();for(let [_0x568352,_0xb18387]of _0x10e0cd[_0x3c90f4(0x41d)]())Po(_0x4df9f3,_0xb18387,No(_0xb18387,_0x568352,_0x38af11));}function No(_0x12b816,_0x5d0406,_0x2a8a6b){const _0x190e71=_0x282c57;if(!_0x12b816||typeof _0x12b816!=_0x190e71(0x4ba))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20'+_0x5d0406+_0x190e71(0x3aa));let _0x4214fe=typeof _0x12b816['id']==_0x190e71(0x3e3)&&_0x12b816['id'][_0x190e71(0x24d)]()?'\x22'+_0x12b816['id']+'\x22':_0x190e71(0x402)+_0x5d0406;if(typeof _0x12b816['id']!=_0x190e71(0x3e3)||!_0x12b816['id']['trim']())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x4214fe+'\x20must\x20have\x20a\x20non-empty\x20id.');if(_0x2a8a6b['has'](_0x12b816['id']))throw Error(_0x190e71(0x2e6)+_0x12b816['id']+'\x22.');_0x2a8a6b[_0x190e71(0x551)](_0x12b816['id']);let _0x3b4ba9=typeof _0x12b816[_0x190e71(0x545)]==_0x190e71(0x3e3)&&_0x12b816[_0x190e71(0x545)][_0x190e71(0x24d)]()?new _0x3af328(_0x12b816[_0x190e71(0x545)]):null;if(!(_0x3b4ba9!=null&&_0x3b4ba9[_0x190e71(0x253)]))throw Error(_0x190e71(0x1e0)+_0x4214fe+_0x190e71(0x3a9));return _0x4214fe;}function Po(_0xf76849,_0x404b69,_0x5eefed){const _0x2ca155=_0x282c57;let _0x3a409b=new Set(Object['values'](_0x26d874)),_0x101d20=new Set(Object[_0x2ca155(0x54e)](_0x5b882d)),_0x655baa=new Set(Object[_0x2ca155(0x54e)](_0x3cc509));if(!_0x3a409b[_0x2ca155(0x25c)](_0x404b69['target']))throw Error(_0x2ca155(0x1e0)+_0x5eefed+_0x2ca155(0x3b5)+String(_0x404b69[_0x2ca155(0x4e1)])+'\x22.');let _0x310abc=typeof _0x404b69['fieldId']=='string'?_0xf76849[_0x2ca155(0x453)][_0x404b69[_0x2ca155(0x387)]]:void 0x0;if(!_0x310abc||_0x310abc[_0x2ca155(0x43c)]===!0x0||_0x310abc[_0x2ca155(0x4aa)]===_0x239099[_0x2ca155(0x205)])throw Error(_0x2ca155(0x1e0)+_0x5eefed+_0x2ca155(0x294)+String(_0x404b69[_0x2ca155(0x387)])+'\x22.');if(!_0x101d20['has'](_0x404b69[_0x2ca155(0x307)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x5eefed+_0x2ca155(0x41a)+String(_0x404b69[_0x2ca155(0x307)])+'\x22.');if(_0x404b69[_0x2ca155(0x51a)]!==void 0x0&&!_0x655baa[_0x2ca155(0x25c)](_0x404b69[_0x2ca155(0x51a)]))throw Error(_0x2ca155(0x1e0)+_0x5eefed+_0x2ca155(0x236)+String(_0x404b69[_0x2ca155(0x51a)])+'\x22.');if(_0x404b69[_0x2ca155(0x4e1)]===_0x26d874[_0x2ca155(0x367)])return;let _0x19a47f=vn(_0x310abc[_0x2ca155(0x4aa)]);if(!_0x19a47f[_0x2ca155(0x3df)](_0x404b69[_0x2ca155(0x307)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x5eefed+'\x20cannot\x20use\x20operator\x20\x22'+_0x404b69[_0x2ca155(0x307)]+'\x22\x20with\x20field\x20type\x20\x22'+_0x310abc[_0x2ca155(0x4aa)]+_0x2ca155(0x20d)+_0x19a47f[_0x2ca155(0x1c0)](',\x20')+'.');if(_0x404b69[_0x2ca155(0x51a)]!==void 0x0&&!yn(_0x310abc['type']))throw Error(_0x2ca155(0x1e0)+_0x5eefed+_0x2ca155(0x281));}const Fo={'id':_0x282c57(0x346),'type':_0x31b5a7[_0x282c57(0x401)],'handler':(_0x333a99,_0x207825)=>{const _0x4453c6=_0x282c57;if(!_0x207825)return!0x1;let _0x567415=_0x333a99[_0x4453c6(0x268)](_0x54ce33),{unitId:_0xc38852,tableId:_0x2e5c2d,viewId:_0x4580fb,patch:_0x2837be}=_0x207825,_0x59e56f=_0x567415[_0x4453c6(0x2ad)](_0xc38852,_0x335149[_0x4453c6(0x370)]);if(!_0x59e56f||!$(_0x59e56f,_0x2e5c2d,{'viewIds':[_0x4580fb]}))return!0x1;let _0x18ce76=_0x333a99[_0x4453c6(0x268)](_0x2a9a16),_0x2e3f62=_0x333a99[_0x4453c6(0x268)](_0x1f4c86),_0x52ad4a=_0x59e56f[_0x4453c6(0x28c)](),_0x526c86=new W()[_0x4453c6(0x393)](_0x52ad4a,_0x2e5c2d,_0x4580fb,_0x2837be),_0x3c1577=new z()['invertOp'](_0x52ad4a,_0x526c86),_0x5542d3={'unitId':_0xc38852,'op':_0x526c86},_0x141583={'unitId':_0xc38852,'op':_0x3c1577};return _0x18ce76[_0x4453c6(0x2e5)](Q['id'],_0x5542d3)?(_0x567415[_0x4453c6(0x3ed)](_0xc38852),_0x2e3f62[_0x4453c6(0x333)]({'unitID':_0xc38852,'undoMutations':[{'id':Q['id'],'params':_0x141583}],'redoMutations':[{'id':Q['id'],'params':_0x5542d3}]}),!0x0):!0x1;}},Io={'id':_0x282c57(0x18b),'type':_0x31b5a7[_0x282c57(0x401)],'handler'(_0xd048,_0x2f28cc){const _0x29a48b=_0x282c57;if(!_0x2f28cc)return{'valid':!0x1,'reason':_0x29a48b(0x2c0)};let _0x2c0962=_0xd048[_0x29a48b(0x268)](_0x54ce33)[_0x29a48b(0x2ad)](_0x2f28cc[_0x29a48b(0x226)],_0x335149['UNIVER_BASE']),_0x3b69e4=_0x2c0962==null?void 0x0:_0x2c0962['getSnapshot'](),_0x161c09=_0x3b69e4==null?void 0x0:_0x3b69e4[_0x29a48b(0x528)][_0x2f28cc[_0x29a48b(0x45e)]];return!_0x3b69e4||!_0x161c09?{'valid':!0x1,'reason':_0x29a48b(0x2c7)}:new Xi()[_0x29a48b(0x30e)](_0x2f28cc[_0x29a48b(0x557)],_0x161c09,{'snapshot':_0x3b69e4});}};let Lo=class extends _0x15cc0a{constructor(_0x29cbbc){const _0x3acdde=_0x282c57;super(_0x29cbbc,_0x3acdde(0x349),_0x335149[_0x3acdde(0x370)],[_0xd2ae12[_0x3acdde(0x29b)],_0xd2ae12[_0x3acdde(0x4e9)],_0xd2ae12[_0x3acdde(0x2d0)],_0xd2ae12[_0x3acdde(0x1ad)],_0xd2ae12[_0x3acdde(0x426)]]);}};Lo=X([Y(0x0,_0x59ae57)],Lo);const Ro={'id':_0x282c57(0x442),'type':_0x31b5a7[_0x282c57(0x1db)],'handler':(_0x19c5c7,_0x38274)=>!_0x38274||!_0x19c5c7[_0x282c57(0x268)](_0x54ce33)[_0x282c57(0x2ad)](_0x38274['unitId'],_0x335149[_0x282c57(0x370)])?!0x1:_0x19c5c7[_0x282c57(0x268)](Lo)[_0x282c57(0x3cc)](_0x38274[_0x282c57(0x226)],_0x38274[_0x282c57(0x244)],_0x38274[_0x282c57(0x223)],_0x38274['rule'])},zo={'id':_0x282c57(0x1f8),'type':_0x31b5a7['MUTATION'],'handler':(_0x1671e0,_0x3c0b42)=>!_0x3c0b42||!_0x1671e0[_0x282c57(0x268)](_0x54ce33)[_0x282c57(0x2ad)](_0x3c0b42[_0x282c57(0x226)],_0x335149[_0x282c57(0x370)])?!0x1:_0x1671e0[_0x282c57(0x268)](Lo)['setRules'](_0x3c0b42[_0x282c57(0x226)],_0x3c0b42[_0x282c57(0x1dd)])};function Bo(_0x2df6f2){const _0x4b799e=_0x282c57;let _0xd65e6c=_0x2df6f2[_0x4b799e(0x42b)]??Date[_0x4b799e(0x42b)](),_0x1dad89=_0x2df6f2[_0x4b799e(0x45c)]??_0x2df6f2['id']+'-field-name',_0x979ebc=_0x2df6f2[_0x4b799e(0x298)]??_0x2df6f2['id']+_0x4b799e(0x200),_0x4cc991=_0x2df6f2['recordCount']??0x0,_0x71710d=_0x5674a9(),_0x1f794d={'id':_0x1dad89,'name':_0x2df6f2[_0x4b799e(0x3fb)]??_0x4b799e(0x2e9),'type':_0x239099['Text'],'config':{'placeholder':_0x4b799e(0x3de)}},_0x322c88={},_0xcfd7ee=[],_0x3d1465={},_0x13967b={},_0x3a1935={};for(let _0x3dcfbb=0x0;_0x3dcfbb<_0x4cc991;_0x3dcfbb++){let _0x496eac=_0x2df6f2['id']+_0x4b799e(0x238)+(_0x3dcfbb+0x1);_0x322c88[_0x496eac]={'id':_0x496eac,'values':{[_0x1a2ecc]:_0x496eac,..._0x2df6f2[_0x4b799e(0x548)]?{[_0x1dad89]:_0x2df6f2[_0x4b799e(0x548)]+'\x20'+(_0x3dcfbb+0x1)}:{}},'orderKey':String(_0x3dcfbb+0x1)['padStart'](0x4,'0'),'createdAt':_0xd65e6c,'updatedAt':_0xd65e6c},_0xcfd7ee[_0x4b799e(0x381)](_0x496eac),_0x3d1465[_0x496eac]=_0x3dcfbb,_0x13967b[_0x3dcfbb]=_0x496eac,_0x3a1935[_0x3dcfbb]={0x0:{'v':_0x496eac,'t':_0x110ba4[_0x4b799e(0x23b)]}},_0x2df6f2[_0x4b799e(0x548)]&&(_0x3a1935[_0x3dcfbb][0x1]={'v':_0x2df6f2[_0x4b799e(0x548)]+'\x20'+(_0x3dcfbb+0x1),'t':_0x110ba4['STRING']});}let _0x41d915={'id':_0x979ebc,'tableId':_0x2df6f2['id'],'name':'Grid','type':_0x1d9104['Grid'],'fieldOrder':[_0x1a2ecc,_0x1dad89],'fieldSettings':{[_0x1a2ecc]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x2df6f2['id'],'name':_0x2df6f2[_0x4b799e(0x2f4)],'primaryFieldId':_0x1dad89,'fieldOrder':[_0x1a2ecc,_0x1dad89],'fields':{[_0x1a2ecc]:_0x71710d,[_0x1dad89]:_0x1f794d},'records':_0x322c88,'recordOrder':_0xcfd7ee,'rowIndex':_0x3d1465,'rowId':_0x13967b,'colIndex':{[_0x1a2ecc]:0x0,[_0x1dad89]:0x1},'colId':{0x0:_0x1a2ecc,0x1:_0x1dad89},'cellData':_0x3a1935,'views':{[_0x979ebc]:_0x41d915},'viewOrder':[_0x979ebc]};}const Vo='UNIVER_EMBED_BASES_TABLE';function Ho(_0x1ffd5d){const _0x373fb0=_0x282c57;let _0x9c3fa7=Bo({'id':_0x1ffd5d['hostAnchorId'],'name':_0x1ffd5d[_0x373fb0(0x2f4)]??_0x1ffd5d[_0x373fb0(0x1e6)],'recordCount':0x0});return{..._0x9c3fa7,'resources':{..._0x9c3fa7[_0x373fb0(0x27b)]??{},[Vo]:Go(_0x1ffd5d)}};}function Uo(_0x26f843){const _0x5efe24=_0x282c57;return{'id':Q['id'],'params':{'unitId':_0x26f843['unitId'],'op':_0x2f9032[_0x5efe24(0x4aa)][_0x5efe24(0x3ad)](_0x2f9032['insertOp'](['tables',_0x26f843['table']['id']],_0x26f843[_0x5efe24(0x270)]),_0x2f9032[_0x5efe24(0x1d0)]([_0x5efe24(0x1ae),_0x26f843['index']??_0x26f843[_0x5efe24(0x4c3)][_0x5efe24(0x1ae)][_0x5efe24(0x4ab)]],_0x26f843[_0x5efe24(0x270)]['id'])),'trigger':'embed-ui'}};}function Wo(_0x409028){const _0x5b36b1=_0x282c57;let _0x13c16f=_0x409028[_0x5b36b1(0x4c3)][_0x5b36b1(0x1ae)][_0x5b36b1(0x1f4)](_0x409028[_0x5b36b1(0x45e)]);if(!(!_0x409028[_0x5b36b1(0x4c3)]['tables'][_0x409028[_0x5b36b1(0x45e)]]||_0x13c16f<0x0))return{'id':Q['id'],'params':{'unitId':_0x409028[_0x5b36b1(0x226)],'op':_0x2f9032[_0x5b36b1(0x4aa)][_0x5b36b1(0x3ad)](_0x2f9032['removeOp'](['tables',_0x409028[_0x5b36b1(0x45e)]],_0x409028[_0x5b36b1(0x4c3)][_0x5b36b1(0x528)][_0x409028[_0x5b36b1(0x45e)]]),_0x2f9032[_0x5b36b1(0x40b)]([_0x5b36b1(0x1ae),_0x13c16f],_0x409028[_0x5b36b1(0x45e)])),'trigger':'embed-ui'}};}function Go(_0x10d3a4){const _0x8ee221=_0x282c57;return{'version':0x1,'embedId':_0x10d3a4[_0x8ee221(0x1e6)],'hostAnchorId':_0x10d3a4[_0x8ee221(0x4db)],'childUnitId':_0x10d3a4['childUnitId'],'childType':_0x10d3a4[_0x8ee221(0x356)]};}function Ko(_0x4e1aac){const _0x4387c3=_0x282c57;let _0x2e2f47=Math[_0x4387c3(0x468)](0x0,Number(_0x4e1aac[_0x4387c3(0x1b3)]??0x0)),_0x14aaa4=_0x4e1aac['useThousands']===!0x1?'0':_0x4387c3(0x2b7),_0x55de91=_0x2e2f47?'.'+'0'[_0x4387c3(0x4ae)](_0x2e2f47):'',_0x247c4b=Jo(_0x4e1aac[_0x4387c3(0x1d9)]);return''+(_0x4e1aac[_0x4387c3(0x26c)]?Yo(_0x4e1aac['currencySymbol']):'')+_0x14aaa4+_0x55de91+_0x247c4b;}function qo(_0xeff048,_0x397f40){const _0x496f1c=_0x282c57;let _0x22474a=Ko(_0x397f40),_0x132530=_0x1ce6f1[_0x496f1c(0x22b)](_0x22474a,_0xeff048,{'throws':!0x1});return Xo(String(_0x132530),_0x397f40[_0x496f1c(0x435)],_0x397f40['locale']);}function Jo(_0x54a5ba){const _0x5d8793=_0x282c57;return _0x54a5ba==='K'?',\x22K\x22':_0x54a5ba==='M'?_0x5d8793(0x3c7):_0x54a5ba==='B'?_0x5d8793(0x481):'';}function Yo(_0x324380){const _0x159750=_0x282c57;return/^[A-Z]+$/i[_0x159750(0x1ef)](_0x324380)?'\x22'+_0x324380+'\x22':_0x324380;}function Xo(_0x27493c,_0x1ab659,_0x31da2e){const _0x14703b=_0x282c57;let _0x37364a=_0x1ab659===_0x14703b(0x3d9)?Zo(_0x31da2e):_0x1ab659;return _0x37364a===_0x14703b(0x486)?_0x27493c[_0x14703b(0x1a6)](/,/g,'\x00')[_0x14703b(0x1a6)](/\./g,',')['replace'](/\0/g,'.'):_0x37364a===_0x14703b(0x193)?_0x27493c[_0x14703b(0x1a6)](/,/g,'\x20')[_0x14703b(0x1a6)](/\./g,','):_0x37364a===_0x14703b(0x515)?_0x27493c['replace'](/,/g,'\x20'):_0x27493c;}function Zo(_0x5c7a7a){const _0x56d350=_0x282c57;var _0x13f556,_0xfd9063;let _0x1c675e=_0x5c7a7a||new Intl[(_0x56d350(0x27d))]()[_0x56d350(0x4d0)]()[_0x56d350(0x4d3)],_0x43f8ac;try{_0x43f8ac=new Intl[(_0x56d350(0x27d))](_0x1c675e,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x56d350(0x437)](0xf4240);}catch{return _0x56d350(0x391);}let _0x187016=(_0x13f556=_0x43f8ac['find'](_0x39a58e=>_0x39a58e['type']===_0x56d350(0x359)))==null?void 0x0:_0x13f556['value'],_0x3c05fe=(_0xfd9063=_0x43f8ac[_0x56d350(0x525)](_0x348ab8=>_0x348ab8[_0x56d350(0x4aa)]===_0x56d350(0x2a2)))==null?void 0x0:_0xfd9063[_0x56d350(0x373)],_0x41ae56=_0x187016==='\u00a0'||_0x187016==='\u202f'?'\x20':_0x187016;return _0x41ae56==='.'&&_0x3c05fe===','?'periodComma':_0x41ae56==='\x20'&&_0x3c05fe===','?_0x56d350(0x193):_0x41ae56==='\x20'&&_0x3c05fe==='.'?_0x56d350(0x515):'commaPeriod';}function Qo(_0x491f5d,_0x1ca5ed){const _0x226679=_0x282c57;let _0x1d2801=_0x1ca5ed&&typeof _0x1ca5ed=='object'&&!Array['isArray'](_0x1ca5ed)?_0x1ca5ed:{},_0x227b60=$o(_0x1d2801[_0x226679(0x1b3)],0x0,0x2,0x0),_0x5c0638=_0x491f5d['toFixed'](_0x227b60);return _0x1d2801[_0x226679(0x22b)]==='number'?_0x5c0638:_0x5c0638+'%';}function $o(_0xc0b83b,_0x556b17,_0x52a6c9,_0x5d6e01){const _0x325565=_0x282c57;if(_0xc0b83b==null||_0xc0b83b==='')return _0x5d6e01;let _0x1fc85c=typeof _0xc0b83b==_0x325565(0x389)?_0xc0b83b:Number(_0xc0b83b);return Number['isFinite'](_0x1fc85c)?Math['max'](_0x556b17,Math['min'](_0x52a6c9,Math[_0x325565(0x1b1)](_0x1fc85c))):_0x5d6e01;}const es=['count',_0x282c57(0x4ed),'empty',_0x282c57(0x406),_0x282c57(0x4d1),_0x282c57(0x2e4),_0x282c57(0x520),_0x282c57(0x468)],ts=[_0x282c57(0x531),_0x282c57(0x4ed),_0x282c57(0x31a),_0x282c57(0x406)],ns=[_0x282c57(0x4d1),_0x282c57(0x2e4),_0x282c57(0x520),_0x282c57(0x468)],rs=[_0x282c57(0x520),_0x282c57(0x468)],is=new Set([_0x239099['Number'],_0x239099[_0x282c57(0x4b6)],_0x239099[_0x282c57(0x2ca)],_0x239099[_0x282c57(0x3b7)]]),as=new Set([_0x239099[_0x282c57(0x4b3)],_0x239099[_0x282c57(0x2a5)],_0x239099[_0x282c57(0x3af)]]),os='General';function ss(_0x456c73){const _0x287ace=_0x282c57;return typeof _0x456c73==_0x287ace(0x3e3)&&es[_0x287ace(0x3df)](_0x456c73);}function cs(_0x4680b2){const _0x2db2fc=_0x282c57;return!_0x4680b2||typeof _0x4680b2!=_0x2db2fc(0x4ba)?{}:Object[_0x2db2fc(0x1af)](Object['entries'](_0x4680b2)[_0x2db2fc(0x4cc)](_0x5c9cc1=>ss(_0x5c9cc1[0x1])));}function ls(_0x179256){const _0x119900=_0x282c57;return is['has'](_0x179256[_0x119900(0x4aa)])?[...ts,...ns]:_0x179256[_0x119900(0x4aa)]===_0x239099[_0x119900(0x41e)]?[...ts,...ws(_0x179256)==='date'?rs:ns]:ts;}function us(_0x2da214,_0x1ae5c6){const _0x29c122=_0x282c57;return ls(_0x2da214)[_0x29c122(0x3df)](_0x1ae5c6);}function ds(_0x2aafc8,_0x2c6c66,_0x20b432){const _0x26ed22=_0x282c57;if(!us(_0x2aafc8,_0x20b432))return null;let _0x3756d6=_0x2c6c66['filter'](_0x132c6a=>!ps(_0x2aafc8,_0x132c6a));switch(_0x20b432){case _0x26ed22(0x531):return _0x2c6c66[_0x26ed22(0x4ab)];case _0x26ed22(0x4ed):return _0x3756d6['length'];case _0x26ed22(0x31a):return _0x2c6c66[_0x26ed22(0x4ab)]-_0x3756d6[_0x26ed22(0x4ab)];case _0x26ed22(0x406):return new Set(_0x3756d6[_0x26ed22(0x309)](_0xb37ab2=>_s(_0x2aafc8,_0xb37ab2)))[_0x26ed22(0x286)];case'sum':{let _0x21b021=ms(_0x2aafc8,_0x3756d6);return _0x21b021[_0x26ed22(0x4ab)]?gs(_0x21b021):null;}case _0x26ed22(0x2e4):{let _0x524dfc=ms(_0x2aafc8,_0x3756d6);return _0x524dfc['length']?gs(_0x524dfc)/_0x524dfc[_0x26ed22(0x4ab)]:null;}case _0x26ed22(0x520):{let _0xc3bbb4=ms(_0x2aafc8,_0x3756d6);return _0xc3bbb4[_0x26ed22(0x4ab)]?Math[_0x26ed22(0x520)](..._0xc3bbb4):null;}case _0x26ed22(0x468):{let _0x444ccc=ms(_0x2aafc8,_0x3756d6);return _0x444ccc[_0x26ed22(0x4ab)]?Math[_0x26ed22(0x468)](..._0x444ccc):null;}}}function fs(_0x420537,_0x274da4,_0x578d76){const _0x4cc2d1=_0x282c57;if(_0x578d76==null||!Number[_0x4cc2d1(0x210)](_0x578d76))return'-';if(ts[_0x4cc2d1(0x3df)](_0x274da4))return String(_0x578d76);switch(_0x420537[_0x4cc2d1(0x4aa)]){case _0x239099[_0x4cc2d1(0x546)]:return qo(_0x578d76,xs(_0x420537));case _0x239099[_0x4cc2d1(0x4b6)]:return qo(_0x578d76,Ss(_0x420537));case _0x239099['Progress']:return Qo(_0x578d76,_0x420537['config']);case _0x239099['Formula']:return Cs(_0x578d76,_0x420537);default:return Es(_0x578d76);}}function ps(_0x55a010,_0x512fba){const _0x1d4641=_0x282c57;if(_0x512fba==null)return!0x0;if(typeof _0x512fba=='string')return _0x512fba['trim']()==='';if(Array[_0x1d4641(0x3d5)](_0x512fba))return _0x55a010[_0x1d4641(0x4aa)]===_0x239099['Attachment']?!_0x512fba[_0x1d4641(0x436)](bs):_0x512fba[_0x1d4641(0x4ab)]===0x0;if(_0x55a010[_0x1d4641(0x4aa)]===_0x239099['Link']&&typeof _0x512fba==_0x1d4641(0x4ba)){let _0x55ae5d=_0x512fba;return[_0x55ae5d[_0x1d4641(0x4b7)],_0x55ae5d[_0x1d4641(0x45d)]][_0x1d4641(0x300)](_0x5ddc15=>_0x5ddc15==null||String(_0x5ddc15)['trim']()==='');}return!0x1;}function ms(_0x1e957a,_0x41cdea){const _0x557408=_0x282c57;let _0x1586fa=[];for(let _0x15c454 of _0x41cdea){let _0x7a4777=hs(_0x1e957a,_0x15c454);_0x7a4777!=null&&_0x1586fa[_0x557408(0x381)](_0x7a4777);}return _0x1586fa;}function hs(_0xb5b276,_0xf4c0f6){const _0x2614bf=_0x282c57;if(typeof _0xf4c0f6==_0x2614bf(0x389))return Number['isFinite'](_0xf4c0f6)?_0xf4c0f6:null;if(_0xb5b276[_0x2614bf(0x4aa)]!==_0x239099[_0x2614bf(0x41e)]&&typeof _0xf4c0f6==_0x2614bf(0x3e3)&&_0xf4c0f6[_0x2614bf(0x24d)]()!==''){let _0x28a517=Number(_0xf4c0f6);return Number[_0x2614bf(0x210)](_0x28a517)?_0x28a517:null;}return null;}function gs(_0x3a907b){const _0x76eb2e=_0x282c57;let _0x4b86fa=0x0,_0x53fd15=0x0;for(let _0x3e8071 of _0x3a907b){let _0x7f4e93=_0x4b86fa+_0x3e8071;_0x53fd15+=Math[_0x76eb2e(0x4a9)](_0x4b86fa)>=Math[_0x76eb2e(0x4a9)](_0x3e8071)?_0x4b86fa-_0x7f4e93+_0x3e8071:_0x3e8071-_0x7f4e93+_0x4b86fa,_0x4b86fa=_0x7f4e93;}return _0x4b86fa+_0x53fd15;}function _s(_0x1fef87,_0x5e2a1b){const _0x142f39=_0x282c57;return as[_0x142f39(0x25c)](_0x1fef87[_0x142f39(0x4aa)])&&Array[_0x142f39(0x3d5)](_0x5e2a1b)?ys([...new Set(_0x5e2a1b[_0x142f39(0x309)](_0x39bd05=>ys(vs(_0x39bd05))))][_0x142f39(0x1df)]()):ys(vs(_0x5e2a1b));}function vs(_0x5d0567){const _0x5e43a3=_0x282c57;return Array['isArray'](_0x5d0567)?_0x5d0567[_0x5e43a3(0x309)](vs):_0x5d0567&&typeof _0x5d0567=='object'?Object[_0x5e43a3(0x1af)](Object['entries'](_0x5d0567)['sort'](([_0x3c31ed],[_0x4a400d])=>_0x3c31ed['localeCompare'](_0x4a400d))[_0x5e43a3(0x309)](([_0x3e43c4,_0x44874f])=>[_0x3e43c4,vs(_0x44874f)])):_0x5d0567;}function ys(_0x5c8bd9){const _0x4f91b3=_0x282c57;return JSON[_0x4f91b3(0x2fb)](_0x5c8bd9)??_0x4f91b3(0x251);}function bs(_0x68864e){const _0x550f84=_0x282c57;if(typeof _0x68864e=='string')return _0x68864e[_0x550f84(0x24d)]()!=='';if(!_0x68864e||typeof _0x68864e!=_0x550f84(0x4ba))return!0x1;let _0x290766=_0x68864e;return[_0x290766['id'],_0x290766[_0x550f84(0x2f4)],_0x290766[_0x550f84(0x376)],_0x290766[_0x550f84(0x45d)],_0x290766[_0x550f84(0x44c)]]['some'](_0x22d7b5=>_0x22d7b5!=null&&String(_0x22d7b5)['trim']()!=='');}function xs(_0x290c50){const _0x2a63cd=_0x282c57;let _0x486113=Ds(_0x290c50[_0x2a63cd(0x50c)]);return{'decimalPlaces':ks(_0x486113[_0x2a63cd(0x1b3)],0x0,0x14,0x2),'separatorStyle':typeof _0x486113[_0x2a63cd(0x435)]==_0x2a63cd(0x3e3)?_0x486113[_0x2a63cd(0x435)]:_0x2a63cd(0x3d9),'locale':typeof _0x486113['locale']==_0x2a63cd(0x3e3)?_0x486113[_0x2a63cd(0x4d3)]:void 0x0,'useThousands':_0x486113[_0x2a63cd(0x559)]!==!0x1,'abbreviation':typeof _0x486113['abbreviation']==_0x2a63cd(0x3e3)?_0x486113[_0x2a63cd(0x1d9)]:'none'};}function Ss(_0x55b40d){const _0x4e9747=_0x282c57;let _0x366fea=Ds(_0x55b40d[_0x4e9747(0x50c)]);return{...xs(_0x55b40d),'currencySymbol':String(_0x366fea['currencySymbol']??'$')};}function Cs(_0x3719db,_0x2806b1){const _0x39f4a8=_0x282c57;let _0x4e3c31=Ts(_0x2806b1);if(_0x4e3c31===os)return Es(_0x3719db);try{return String(_0x1ce6f1[_0x39f4a8(0x22b)](_0x4e3c31,_0x3719db,{'throws':!0x1}));}catch{return Es(_0x3719db);}}function ws(_0x18b48e){const _0x2d4e33=_0x282c57;let _0xc7ba9a=Ds(Ds(_0x18b48e[_0x2d4e33(0x50c)])['numfmt']);return typeof _0xc7ba9a['type']==_0x2d4e33(0x3e3)?_0xc7ba9a['type']:'general';}function Ts(_0xab88d3){const _0x449dee=_0x282c57;let _0x52b266=Ds(Ds(_0xab88d3[_0x449dee(0x50c)])[_0x449dee(0x49b)]);return String(_0x52b266[_0x449dee(0x505)]??os)[_0x449dee(0x24d)]()||os;}function Es(_0x434b74){const _0x31b140=_0x282c57;return String(Number['isInteger'](_0x434b74)?_0x434b74:Math[_0x31b140(0x1b1)]((_0x434b74+0x2**-0x34)*0x64)/0x64);}function Ds(_0x307a7){return _0x307a7&&typeof _0x307a7=='object'&&!Array['isArray'](_0x307a7)?_0x307a7:{};}function Os(_0x343669){const _0x3833a1=_0x282c57;if(_0x343669==null||_0x343669==='')return null;let _0x243a6b=typeof _0x343669=='number'?_0x343669:Number(_0x343669);return Number[_0x3833a1(0x210)](_0x243a6b)?_0x243a6b:null;}function ks(_0x13153a,_0x56f369,_0xfa26d4,_0xe950d5){const _0x52a870=_0x282c57;let _0x4a70ff=Os(_0x13153a);return _0x4a70ff==null?_0xe950d5:Math['max'](_0x56f369,Math[_0x52a870(0x520)](_0xfa26d4,Math[_0x52a870(0x1b1)](_0x4a70ff)));}function As(_0x4cb5cf,_0x2b7dd3){const _0x582748=_0x282c57;let _0x181e18=_0xd92214[_0x582748(0x4d7)](_0x4cb5cf),_0x4395d5=_0x2b7dd3['includeRecords']===!0x0,_0x48ae24=new Map(),_0x20e857=_0x2b7dd3[_0x582748(0x377)]??(()=>_0x582748(0x1a4)+_0x4e27d9(0x8)),_0x22e44e=_0x181e18['viewOrder'];return _0x2b7dd3[_0x582748(0x4da)]&&(_0x22e44e=_0x181e18[_0x582748(0x3a5)][_0x582748(0x309)](_0xc20046=>{let _0x39d004=_0x20e857();return _0x48ae24['set'](_0xc20046,_0x39d004),_0x39d004;})),{..._0x181e18,'id':_0x2b7dd3['id'],'name':_0x2b7dd3['name'],'records':_0x4395d5?_0x181e18['records']:{},'recordOrder':_0x4395d5?_0x181e18[_0x582748(0x413)]:[],'rowIndex':_0x4395d5?_0x181e18[_0x582748(0x277)]:{},'rowId':_0x4395d5?_0x181e18[_0x582748(0x21b)]:{},'cellData':_0x4395d5?_0x181e18[_0x582748(0x343)]:{},'resources':_0x4395d5?_0x181e18['resources']:{},'viewOrder':_0x22e44e,'views':Object[_0x582748(0x1af)](Object['entries'](_0x181e18[_0x582748(0x4f9)]??{})[_0x582748(0x309)](([_0x29ef06,_0x3c6e84])=>{const _0x66d370=_0x582748;let _0x457a04=_0x48ae24[_0x66d370(0x268)](_0x29ef06)??(_0x2b7dd3[_0x66d370(0x4da)]?_0x20e857():_0x29ef06);return[_0x457a04,{..._0x3c6e84,'id':_0x457a04,'tableId':_0x2b7dd3['id']}];}))};}var js='@univerjs-pro/bases',Ms=_0x282c57(0x450);const Ns={},Ps={};function Fs(_0x150e10){const _0x4ad1eb=_0x282c57;return new z()[_0x4ad1eb(0x485)](_0x150e10);}function Is(_0x40e077){const _0xa2189a=_0x282c57;return _0x40e077[_0xa2189a(0x345)][_0xa2189a(0x309)](_0x2e75e3=>({'unitId':_0x40e077['unitId'],'sheetId':_0x40e077[_0xa2189a(0x45e)],'range':{'startRow':_0x2e75e3['row'],'endRow':_0x2e75e3[_0xa2189a(0x2f0)],'startColumn':_0x2e75e3[_0xa2189a(0x340)],'endColumn':_0x2e75e3[_0xa2189a(0x340)]}}));}function Ls(_0x18e47c,_0xef8d20){const _0x402bfb=_0x282c57;return{[_0x18e47c]:Object[_0x402bfb(0x1af)](_0xef8d20[_0x402bfb(0x309)](_0x4c0f51=>[_0x4c0f51,'1']))};}let Rs=class extends _0x3bb8e0{constructor(_0x527235,_0x52d406){const _0x8f20e=_0x282c57;super(),this['_activeDirtyManagerService']=_0x527235,this['_univerInstanceService']=_0x52d406,this[_0x8f20e(0x323)]();}[_0x282c57(0x323)](){const _0x31be5e=_0x282c57;this[_0x31be5e(0x1e2)][_0x31be5e(0x39f)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x20ec97=>this[_0x31be5e(0x2be)](_0x20ec97['params'])}),this['disposeWithMe'](_0x453a32(()=>{const _0x571ffd=_0x31be5e;this[_0x571ffd(0x1e2)][_0x571ffd(0x49c)](Q['id']);}));}[_0x282c57(0x1ee)](_0x95d38b,_0x474890){const _0xdd95be=_0x282c57;let _0x51b4f4=this['_univerInstanceService'][_0xdd95be(0x2ad)](_0x95d38b,_0x335149['UNIVER_BASE']);return(_0x51b4f4==null?void 0x0:_0x51b4f4[_0xdd95be(0x28c)]()[_0xdd95be(0x528)][_0x474890])??null;}[_0x282c57(0x2be)](_0x89fb42){const _0x3f6ca9=_0x282c57;if(_0x89fb42[_0x3f6ca9(0x245)]==='formula.mutation.set-formula-calculation-result')return{};if(!_0x89fb42[_0x3f6ca9(0x226)]||!_0x89fb42['op'])return{'clearDependencyTreeCache':this[_0x3f6ca9(0x440)](),'forceCalculation':!0x0};let _0x34fbf1=Fs(_0x89fb42['op']),_0x2b9bf5=this[_0x3f6ca9(0x475)](_0x89fb42[_0x3f6ca9(0x226)],_0x34fbf1);if(_0x2b9bf5[_0x3f6ca9(0x4ab)])return{'clearDependencyTreeCache':Ls(_0x89fb42[_0x3f6ca9(0x226)],_0x2b9bf5),'forceCalculation':!0x0};let _0x33a2db=Object[_0x3f6ca9(0x41d)](this[_0x3f6ca9(0x1ab)](_0x89fb42['unitId'],_0x34fbf1))[_0x3f6ca9(0x26a)](([_0xb82d31,_0x4fcaf6])=>Is({'unitId':_0x89fb42[_0x3f6ca9(0x226)],'tableId':_0xb82d31,'patches':_0x4fcaf6}));return _0x33a2db[_0x3f6ca9(0x4ab)]?{'dirtyRanges':_0x33a2db}:{};}[_0x282c57(0x475)](_0x1440ca,_0x57b7b2){const _0x2c9354=_0x282c57;let _0x4a4fac=_0x57b7b2[_0x2c9354(0x4cc)](_0x1f0ae4=>_0x1f0ae4['reason']!==_0x2c9354(0x1f9))[_0x2c9354(0x26a)](_0x445934=>_0x445934[_0x2c9354(0x45e)]?[_0x445934['tableId']]:this[_0x2c9354(0x484)](_0x1440ca));return Array[_0x2c9354(0x2f3)](new Set(_0x4a4fac));}[_0x282c57(0x1ab)](_0x5e4448,_0x56424c){const _0x2035aa=_0x282c57;let _0x490878=new Set();return _0x56424c[_0x2035aa(0x3a7)]((_0x1d4a80,_0x53ac7e)=>{const _0x38e510=_0x2035aa;let _0x2fb4fb=this[_0x38e510(0x44a)](_0x5e4448,_0x53ac7e);if(!_0x2fb4fb)return _0x1d4a80;let _0x4c4e53=_0x53ac7e[_0x38e510(0x45e)]+':'+_0x2fb4fb[_0x38e510(0x2f0)]+':'+_0x2fb4fb[_0x38e510(0x340)];return _0x490878[_0x38e510(0x25c)](_0x4c4e53)?_0x1d4a80:(_0x490878[_0x38e510(0x551)](_0x4c4e53),_0x1d4a80[_0x53ac7e[_0x38e510(0x45e)]]=_0x1d4a80[_0x53ac7e[_0x38e510(0x45e)]]??[],_0x1d4a80[_0x53ac7e[_0x38e510(0x45e)]]['push'](_0x2fb4fb),_0x1d4a80);},{});}[_0x282c57(0x44a)](_0x37338a,_0x35ffa1){const _0x284044=_0x282c57;if(_0x35ffa1[_0x284044(0x2cd)]!==_0x284044(0x1f9))return null;if(_0x35ffa1[_0x284044(0x2f0)]!=null&&_0x35ffa1['column']!=null)return{'row':_0x35ffa1[_0x284044(0x2f0)],'col':_0x35ffa1[_0x284044(0x331)],'value':null};if(!_0x35ffa1['recordId']||!_0x35ffa1['fieldId'])return null;let _0x597077=this[_0x284044(0x1ee)](_0x37338a,_0x35ffa1[_0x284044(0x45e)]);if(!_0x597077)return null;let _0x402cef=_t(_0x597077,_0x35ffa1[_0x284044(0x40d)],_0x35ffa1['fieldId']);return _0x402cef?{'row':_0x402cef[_0x284044(0x2f0)],'col':_0x402cef[_0x284044(0x340)],'value':null}:null;}['_getAllTableIds'](_0x41d21a){const _0xe32eac=_0x282c57;let _0x4b84a0=this[_0xe32eac(0x42e)][_0xe32eac(0x2ad)](_0x41d21a,_0x335149[_0xe32eac(0x370)]);return Object[_0xe32eac(0x54e)]((_0x4b84a0==null?void 0x0:_0x4b84a0[_0xe32eac(0x28c)]()[_0xe32eac(0x528)])??{})[_0xe32eac(0x309)](_0x526132=>_0x526132['id']);}[_0x282c57(0x440)](){const _0x493294=_0x282c57;let _0xf26f1c=this['_univerInstanceService']['getAllUnitsForType'](_0x335149['UNIVER_BASE'])[_0x493294(0x309)](_0xf1412d=>Ls(_0xf1412d['getUnitId'](),Object[_0x493294(0x334)](_0xf1412d[_0x493294(0x28c)]()[_0x493294(0x528)])));return Object['assign']({},..._0xf26f1c);}};Rs=X([Y(0x0,_0x5d22c8),Y(0x1,_0x54ce33)],Rs);let zs=class extends _0x3bb8e0{constructor(_0x5a43e1,_0x4a611c,_0x11fce0,_0x2b4c50){const _0x245258=_0x282c57;super(),this[_0x245258(0x190)]=_0x5a43e1,this[_0x245258(0x42e)]=_0x4a611c,this[_0x245258(0x51b)]=_0x11fce0,this[_0x245258(0x234)]=_0x2b4c50,G(this,_0x245258(0x288),new Xi()),G(this,_0x245258(0x2eb),new Map()),G(this,_0x245258(0x3fd),new Set()),G(this,'_formulaSyncQueue',Promise[_0x245258(0x363)]()),G(this,_0x245258(0x41c),!0x1),this[_0x245258(0x323)]();}[_0x282c57(0x323)](){const _0x496104=_0x282c57;this[_0x496104(0x42e)]['getAllUnitsForType'](_0x335149['UNIVER_BASE'])[_0x496104(0x34b)](_0x5e945f=>{const _0x42f292=_0x496104;this[_0x42f292(0x467)](_0x5e945f);}),this[_0x496104(0x4fe)](this[_0x496104(0x42e)][_0x496104(0x224)](_0x335149[_0x496104(0x370)])[_0x496104(0x306)](({unit:_0x65e9ba})=>{const _0x5eb334=_0x496104;this[_0x5eb334(0x467)](_0x65e9ba);})),this[_0x496104(0x4fe)](this[_0x496104(0x42e)][_0x496104(0x4b0)](_0x335149[_0x496104(0x370)])[_0x496104(0x306)](_0x4fcdab=>{const _0x5bd05d=_0x496104;this[_0x5bd05d(0x46f)](()=>this[_0x5bd05d(0x39e)](_0x4fcdab[_0x5bd05d(0x1e4)]()));})),this['disposeWithMe'](this[_0x496104(0x190)][_0x496104(0x235)](_0xf238a0=>this[_0x496104(0x52f)](_0xf238a0)));}[_0x282c57(0x52f)](_0x3c2340){const _0x2e72c2=_0x282c57;if(_0x3c2340['id']===_0x260dd2['id']){Vs(_0x3c2340[_0x2e72c2(0x530)])&&this[_0x2e72c2(0x470)](_0x3c2340[_0x2e72c2(0x530)]);return;}if(this[_0x2e72c2(0x41c)]||_0x3c2340['id']!==Q['id'])return;let _0x3c89a9=Bs(_0x3c2340['params'])?_0x3c2340[_0x2e72c2(0x530)]:void 0x0,_0x4780d8=_0x3c89a9!=null&&_0x3c89a9[_0x2e72c2(0x226)]?[this['_univerInstanceService'][_0x2e72c2(0x2ad)](_0x3c89a9[_0x2e72c2(0x226)],_0x335149[_0x2e72c2(0x370)])][_0x2e72c2(0x4cc)](_0x39781c=>!!_0x39781c):this[_0x2e72c2(0x42e)][_0x2e72c2(0x1cd)](_0x335149['UNIVER_BASE']),_0x4902c2=_0x3c89a9==null?void 0x0:_0x3c89a9['op'];_0x4780d8[_0x2e72c2(0x34b)](_0x2e3f4a=>{const _0x21a0fc=_0x2e72c2;let _0x4abb90=_0x4902c2?Fs(_0x4902c2):[];(!_0x4902c2||_0x4abb90['some'](_0x252a1d=>_0x252a1d[_0x21a0fc(0x2cd)]!==_0x21a0fc(0x1f9)))&&this[_0x21a0fc(0x467)](_0x2e3f4a);});}[_0x282c57(0x467)](_0x3e47f5){const _0x43c3f1=_0x282c57;let _0x421220=_0x3e47f5[_0x43c3f1(0x1e4)]();this['_scheduledSuperTableSyncs'][_0x43c3f1(0x25c)](_0x421220)||(this[_0x43c3f1(0x3fd)][_0x43c3f1(0x551)](_0x421220),this[_0x43c3f1(0x46f)](async()=>{const _0xc38662=_0x43c3f1;this[_0xc38662(0x3fd)][_0xc38662(0x404)](_0x421220),await this[_0xc38662(0x4fb)](_0x3e47f5);}));}async['_syncSuperTables'](_0x430fae){const _0x11ef67=_0x282c57;let _0xc673f2=_0x430fae['getUnitId'](),_0x107bd0=this[_0x11ef67(0x288)][_0x11ef67(0x502)](_0x430fae[_0x11ef67(0x28c)]()),_0x37d63c=new Set(_0x107bd0[_0x11ef67(0x309)](({tableName:_0x1715c2})=>_0x1715c2)),_0x307c65=this[_0x11ef67(0x2eb)][_0x11ef67(0x268)](_0xc673f2)??new Set();for(let _0x5293be of _0x307c65)if(!_0x37d63c[_0x11ef67(0x25c)](_0x5293be)&&!await this[_0x11ef67(0x44b)](_0x16f34f['id'],{'unitId':_0xc673f2,'tableName':_0x5293be}))return;for(let {tableName:_0x3895e1,reference:_0x27de86}of _0x107bd0)if(!await this[_0x11ef67(0x44b)](_0x3f9972['id'],{'unitId':_0xc673f2,'tableName':_0x3895e1,'reference':_0x27de86}))return;this[_0x11ef67(0x2eb)][_0x11ef67(0x246)](_0xc673f2,_0x37d63c);}async[_0x282c57(0x39e)](_0x4359bc){const _0x432844=_0x282c57;let _0x48562a=this['_registeredSuperTableNames'][_0x432844(0x268)](_0x4359bc)??new Set();for(let _0xd566ce of _0x48562a)if(!await this[_0x432844(0x44b)](_0x16f34f['id'],{'unitId':_0x4359bc,'tableName':_0xd566ce}))return;this[_0x432844(0x2eb)][_0x432844(0x404)](_0x4359bc);}async['_executeSuperTableMutationWhileActive'](_0x420224,_0x2024a2){const _0x3a0f11=_0x282c57;return!this[_0x3a0f11(0x1d1)]&&await this['_commandService'][_0x3a0f11(0x4ce)](_0x420224,_0x2024a2,{'onlyLocal':!0x0})&&!this[_0x3a0f11(0x1d1)];}[_0x282c57(0x46f)](_0x462ea1){const _0x46484f=_0x282c57;this[_0x46484f(0x4dc)]=this['_formulaSyncQueue'][_0x46484f(0x521)](_0x462ea1,_0x462ea1)['catch'](()=>void 0x0);}['_applyFormulaResult'](_0x2ec052){const _0x218ecb=_0x282c57;let _0x5e3461=this[_0x218ecb(0x42e)][_0x218ecb(0x1cd)](_0x335149[_0x218ecb(0x370)]);if(!_0x5e3461[_0x218ecb(0x436)](_0x3756b5=>{const _0x2ceab1=_0x218ecb;var _0x319873;return((_0x319873=_0x2ec052[_0x2ceab1(0x1b5)])==null?void 0x0:_0x319873[_0x3756b5[_0x2ceab1(0x1e4)]()])!=null;}))return;let _0x17f11c=_0x5e3461[_0x218ecb(0x26a)](_0x1b8968=>Zi(_0x1b8968['getSnapshot'](),_0x2ec052));if(!_0x17f11c[_0x218ecb(0x4ab)]){this[_0x218ecb(0x234)]['markResultApplied'](_0x5be45b['BASE'],_0x2ec052);return;}let _0x469626=new W(),_0x4dadbe=_0x17f11c[_0x218ecb(0x26a)](_0x44bc8d=>Is({'unitId':_0x44bc8d['unitId'],'tableId':_0x44bc8d[_0x218ecb(0x45e)],'patches':_0x44bc8d['patches']}));this[_0x218ecb(0x41c)]=!0x0,(async()=>{const _0x207128=_0x218ecb;for(let _0x46bfec of _0x17f11c){let _0x593629=this[_0x207128(0x42e)][_0x207128(0x2ad)](_0x46bfec[_0x207128(0x226)],_0x335149['UNIVER_BASE']);_0x593629&&await this[_0x207128(0x190)][_0x207128(0x4ce)](Q['id'],{'unitId':_0x46bfec[_0x207128(0x226)],'op':_0x469626[_0x207128(0x30b)](_0x593629['getSnapshot'](),_0x46bfec['tableId'],_0x46bfec['patches']),'trigger':_0x260dd2['id']},{'onlyLocal':!0x0});}await this[_0x207128(0x190)][_0x207128(0x4ce)](_0x1d0f35['id'],{'dirtyRanges':_0x4dadbe},{'onlyLocal':!0x0});})()[_0x218ecb(0x2b5)](()=>{const _0x382652=_0x218ecb;this['_applyingFormulaResults']=!0x1,this[_0x382652(0x234)][_0x382652(0x36c)](_0x5be45b['BASE'],_0x2ec052);});}};zs=X([Y(0x0,_0x2a9a16),Y(0x1,_0x54ce33),Y(0x2,_0x4bcdd1(_0x14f705)),Y(0x3,_0x4bcdd1(_0x2c8588))],zs);function Bs(_0x254e60){const _0xd984c3=_0x282c57;return typeof _0x254e60=='object'&&!!_0x254e60&&_0xd984c3(0x226)in _0x254e60&&typeof _0x254e60[_0xd984c3(0x226)]==_0xd984c3(0x3e3)&&'op'in _0x254e60&&Array['isArray'](_0x254e60['op']);}function Vs(_0xba7b77){const _0x3b7843=_0x282c57;return typeof _0xba7b77==_0x3b7843(0x4ba)&&!!_0xba7b77&&_0x3b7843(0x1b5)in _0xba7b77&&_0x3b7843(0x498)in _0xba7b77;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x3bb8e0{constructor(_0x3cf0c7,_0x3344a2,_0x5897a3,_0x4e0419){const _0xc1f7f4=_0x282c57;super(),this[_0xc1f7f4(0x469)]=_0x3cf0c7,this[_0xc1f7f4(0x190)]=_0x3344a2,this[_0xc1f7f4(0x513)]=_0x5897a3,this[_0xc1f7f4(0x20c)]=_0x4e0419,this['_instanceService']['getAllUnitsForType'](_0x335149['UNIVER_BASE'])[_0xc1f7f4(0x34b)](_0x12021a=>this[_0xc1f7f4(0x352)](_0x12021a['getUnitId']())),this[_0xc1f7f4(0x4fe)](this[_0xc1f7f4(0x20c)][_0xc1f7f4(0x224)](_0x335149[_0xc1f7f4(0x370)])[_0xc1f7f4(0x306)](({unit:_0x4a2001})=>this[_0xc1f7f4(0x352)](_0x4a2001[_0xc1f7f4(0x1e4)]()))),this[_0xc1f7f4(0x4fe)](this[_0xc1f7f4(0x190)][_0xc1f7f4(0x1c9)]((_0x3ea697,_0x1e288b)=>this[_0xc1f7f4(0x46a)](_0x3ea697,_0x1e288b))),this[_0xc1f7f4(0x4fe)](this[_0xc1f7f4(0x20c)][_0xc1f7f4(0x4b0)](_0x335149[_0xc1f7f4(0x370)])['subscribe'](_0x1f02a3=>{const _0x585599=_0xc1f7f4;this['_injector']['get'](_0x532322)['clearUnit'](_0x1f02a3[_0x585599(0x1e4)]()),Rr(this[_0x585599(0x513)],_0x1f02a3[_0x585599(0x1e4)]());}));}[_0x282c57(0x352)](_0x3e4d65){const _0x5c5fff=_0x282c57;Tr[_0x5c5fff(0x34b)](_0x59b678=>{const _0xb5355e=_0x5c5fff;let _0xf25414=Pr(_0x3e4d65,_0x3e4d65,_0x59b678);this[_0xb5355e(0x513)]['getPermissionPoint'](_0xf25414['id'])||this[_0xb5355e(0x513)][_0xb5355e(0x311)](_0xf25414);}),this[_0x5c5fff(0x469)][_0x5c5fff(0x268)](_0x532322)[_0x5c5fff(0x291)]({'unitId':_0x3e4d65,'objectId':_0x3e4d65,'objectType':_0xd2ae12[_0x5c5fff(0x3d6)]});}[_0x282c57(0x46a)](_0x39af1b,_0x255f9b){const _0x14b9cf=_0x282c57;var _0x562956;if(_0x255f9b!=null&&_0x255f9b['fromCollab']||_0x255f9b!=null&&_0x255f9b[_0x14b9cf(0x304)])return;let _0x1848b0=tc(_0x39af1b[_0x14b9cf(0x530)])?_0x39af1b[_0x14b9cf(0x530)]:void 0x0;if(_0x255f9b!=null&&_0x255f9b[_0x14b9cf(0x463)]&&_0x39af1b['id']==='base.mutation.apply-base-json1'&&(_0x1848b0==null?void 0x0:_0x1848b0[_0x14b9cf(0x245)])===_0x260dd2['id'])return;let _0x1cabdc=Gs(_0x39af1b['id']),_0x11ee7a=Ws(_0x1848b0==null?void 0x0:_0x1848b0['unitId'],_0x255f9b)??(_0x1cabdc?(_0x562956=this[_0x14b9cf(0x20c)][_0x14b9cf(0x517)](_0x335149['UNIVER_BASE']))==null?void 0x0:_0x562956[_0x14b9cf(0x1e4)]():void 0x0);if(!_0x11ee7a||this['_instanceService']['getUnitType'](_0x11ee7a)!==_0x335149[_0x14b9cf(0x370)])return;if(_0x1cabdc){if(!Fr(this[_0x14b9cf(0x513)],_0x11ee7a,_0x11ee7a,_0x1cabdc))throw this[_0x14b9cf(0x469)][_0x14b9cf(0x268)](_0x2ba5f2)[_0x14b9cf(0x482)](_0x11ee7a),new _0x3aec47(_0x14b9cf(0x199)+_0x133e41[_0x1cabdc]+'\x20permission\x20denied.');return;}if(Hs[_0x14b9cf(0x25c)](_0x39af1b['id'])||!_0x39af1b['id'][_0x14b9cf(0x289)]('base.command.')&&!_0x39af1b['id'][_0x14b9cf(0x289)](_0x14b9cf(0x1b6)))return;let _0x171588=this[_0x14b9cf(0x20c)][_0x14b9cf(0x2ad)](_0x11ee7a,_0x335149[_0x14b9cf(0x370)]),_0x28a463=_0x171588?Ks(_0x171588,_0x1848b0??{},_0x39af1b['id']):[];if(!_0x171588||!zr(this['_permissionService'],_0x11ee7a,_0x28a463))throw this[_0x14b9cf(0x469)][_0x14b9cf(0x268)](_0x2ba5f2)[_0x14b9cf(0x482)](_0x11ee7a,_0x28a463),new _0x3aec47(_0x14b9cf(0x50f));}};Us=X([Y(0x0,_0x4bcdd1(_0x5325dd)),Y(0x1,_0x2a9a16),Y(0x2,_0x39a8ae),Y(0x3,_0x54ce33)],Us);function Ws(_0x55665a,_0x4dc035){const _0x3fe36e=_0x282c57;return typeof _0x55665a==_0x3fe36e(0x3e3)?_0x55665a:typeof(_0x4dc035==null?void 0x0:_0x4dc035['unitId'])==_0x3fe36e(0x3e3)?_0x4dc035[_0x3fe36e(0x226)]:void 0x0;}function Gs(_0x2ac3ab){const _0x9cd901=_0x282c57;if(_0x2ac3ab==='bases-exchange-client.operation.export-base'||_0x2ac3ab===_0x9cd901(0x35a))return _0x133e41[_0x9cd901(0x3ce)];if(_0x2ac3ab[_0x9cd901(0x289)](_0x9cd901(0x3b2))||_0x2ac3ab[_0x9cd901(0x289)](_0x9cd901(0x552)))return _0x133e41[_0x9cd901(0x4c4)];}function Ks(_0x1024e0,_0x2fb8e6,_0x524af5){const _0xc22ffc=_0x282c57;if(_0x524af5===_0xc22ffc(0x48f)&&ec(_0x2fb8e6['op']))return qs(_0x1024e0,_0x2fb8e6['op']);let _0x5e7d70=new Set(),_0x5da876=Zs(_0x2fb8e6,_0xc22ffc(0x270)),_0x441052=typeof _0x2fb8e6[_0xc22ffc(0x45e)]==_0xc22ffc(0x3e3)?_0x2fb8e6[_0xc22ffc(0x45e)]:_0x5da876[0x0];if(_0x5da876['forEach'](_0x58dc91=>_0x5e7d70[_0xc22ffc(0x551)](K(_0x58dc91))),!_0x441052)return[..._0x5e7d70];let _0x5928f0=_0x1024e0[_0xc22ffc(0x28c)]()[_0xc22ffc(0x528)][_0x441052],_0x3d7223=new Set(Zs(_0x2fb8e6,'field')),_0x1c7caa=new Set(Zs(_0x2fb8e6,'record')),_0x1d8f4f=new Set(Zs(_0x2fb8e6,_0xc22ffc(0x47a)));return Qs(_0x5928f0,_0x2fb8e6['patches'],_0x1c7caa,_0x3d7223),$s(_0x2fb8e6,_0x3d7223),_0x3d7223[_0xc22ffc(0x34b)](_0x341e5c=>_0x5e7d70[_0xc22ffc(0x551)](q(_0x441052,_0x341e5c))),_0x1c7caa['forEach'](_0x4c86b2=>_0x5e7d70[_0xc22ffc(0x551)](J(_0x441052,_0x4c86b2))),_0x1d8f4f['forEach'](_0x1bdf39=>_0x5e7d70[_0xc22ffc(0x551)](Mr(_0x441052,_0x1bdf39))),[..._0x5e7d70];}function qs(_0x35c4e6,_0x1dad68){const _0x732ad9=_0x282c57;let _0x528612=_0x35c4e6['getSnapshot'](),_0x219787=new z()[_0x732ad9(0x485)](_0x1dad68),_0x1ce2e7=Js(_0x1dad68),_0x4aa535=new Set();return _0x219787[_0x732ad9(0x34b)](_0x3e74f1=>{const _0x1908d3=_0x732ad9;var _0x205405,_0x9b170f;let {tableId:_0x39af5b}=_0x3e74f1;if(!_0x39af5b)return;_0x4aa535[_0x1908d3(0x551)](K(_0x39af5b));let _0x1936e7=_0x528612[_0x1908d3(0x528)][_0x39af5b],_0x14f688=_0x3e74f1[_0x1908d3(0x40d)]??(_0x3e74f1[_0x1908d3(0x2f0)]==null||_0x1936e7==null||(_0x205405=_0x1936e7['rowId'])==null?void 0x0:_0x205405[_0x3e74f1[_0x1908d3(0x2f0)]]),_0x65decb=_0x3e74f1[_0x1908d3(0x387)]??(_0x3e74f1[_0x1908d3(0x331)]==null||_0x1936e7==null||(_0x9b170f=_0x1936e7[_0x1908d3(0x46d)])==null?void 0x0:_0x9b170f[_0x3e74f1['column']]);_0x14f688&&_0x4aa535[_0x1908d3(0x551)](J(_0x39af5b,_0x14f688)),_0x65decb&&_0x4aa535[_0x1908d3(0x551)](q(_0x39af5b,_0x65decb)),_0x3e74f1[_0x1908d3(0x44d)]&&_0x4aa535[_0x1908d3(0x551)](Mr(_0x39af5b,_0x3e74f1[_0x1908d3(0x44d)])),(_0x3e74f1['reason']===_0x1908d3(0x270)||_0x1ce2e7[_0x1908d3(0x25c)](_0x39af5b))&&_0x1936e7&&(Object[_0x1908d3(0x334)](_0x1936e7[_0x1908d3(0x453)])[_0x1908d3(0x34b)](_0x381bb1=>_0x4aa535[_0x1908d3(0x551)](q(_0x39af5b,_0x381bb1))),Object[_0x1908d3(0x334)](_0x1936e7[_0x1908d3(0x1e1)])[_0x1908d3(0x34b)](_0x55c546=>_0x4aa535[_0x1908d3(0x551)](J(_0x39af5b,_0x55c546))),Object[_0x1908d3(0x334)](_0x1936e7[_0x1908d3(0x4f9)])[_0x1908d3(0x34b)](_0x55470b=>_0x4aa535['add'](Mr(_0x39af5b,_0x55470b)))),_0x3e74f1[_0x1908d3(0x2cd)]===_0x1908d3(0x3a6)&&_0x1936e7&&Object[_0x1908d3(0x334)](_0x1936e7[_0x1908d3(0x453)])[_0x1908d3(0x34b)](_0x1b9db9=>_0x4aa535['add'](q(_0x39af5b,_0x1b9db9)));}),_0x219787[_0x732ad9(0x4ab)]===0x0&&Xs(_0x1dad68,_0x732ad9(0x1ae))&&Object[_0x732ad9(0x334)](_0x528612[_0x732ad9(0x528)])[_0x732ad9(0x34b)](_0x1d2cd0=>_0x4aa535[_0x732ad9(0x551)](K(_0x1d2cd0))),[..._0x4aa535];}function Js(_0xe8ba6d){let _0x200bbf=new Set(),_0x2b2827=_0x5515df=>{const _0x12f064=_0x3047;Array[_0x12f064(0x3d5)](_0x5515df)&&_0x5515df[_0x12f064(0x34b)]((_0x33932d,_0x18103a)=>{const _0x3a1b39=_0x12f064;_0x33932d===_0x3a1b39(0x528)&&typeof _0x5515df[_0x18103a+0x1]==_0x3a1b39(0x3e3)&&Ys(_0x5515df[_0x18103a+0x2])&&_0x200bbf['add'](_0x5515df[_0x18103a+0x1]),_0x2b2827(_0x33932d);});};return _0x2b2827(_0xe8ba6d),_0x200bbf;}function Ys(_0x5ecbce){const _0x43a966=_0x282c57;return!!_0x5ecbce&&typeof _0x5ecbce==_0x43a966(0x4ba)&&!Array[_0x43a966(0x3d5)](_0x5ecbce)&&('i'in _0x5ecbce||'r'in _0x5ecbce||'p'in _0x5ecbce||'d'in _0x5ecbce||'es'in _0x5ecbce||_0x43a966(0x2bb)in _0x5ecbce||'et'in _0x5ecbce);}function Xs(_0x6f0274,_0x38e614){const _0x413f48=_0x282c57;return Array[_0x413f48(0x3d5)](_0x6f0274)&&_0x6f0274[_0x413f48(0x436)](_0x2592bd=>_0x2592bd===_0x38e614||Xs(_0x2592bd,_0x38e614));}function Zs(_0x43d603,_0x5ae45f){let _0x3bd7ff=new Set(),_0x4d69f9=_0x5ae45f+'Id',_0x30e970=_0x5ae45f+'Ids',_0x33d8fc=(_0x2a8fe6,_0x4d3093='')=>{const _0x144f88=_0x3047;if(typeof _0x2a8fe6=='string'){_0x4d3093===_0x4d69f9&&_0x3bd7ff[_0x144f88(0x551)](_0x2a8fe6);return;}if(Array['isArray'](_0x2a8fe6)){_0x4d3093===_0x30e970?_0x2a8fe6[_0x144f88(0x34b)](_0x2b9ce9=>{const _0x36afd7=_0x144f88;typeof _0x2b9ce9==_0x36afd7(0x3e3)&&_0x3bd7ff[_0x36afd7(0x551)](_0x2b9ce9);}):_0x2a8fe6[_0x144f88(0x34b)](_0xd6a5c4=>_0x33d8fc(_0xd6a5c4,_0x4d3093));return;}tc(_0x2a8fe6)&&Object['entries'](_0x2a8fe6)[_0x144f88(0x34b)](([_0x4b45ce,_0x194cbd])=>{const _0x5142da=_0x144f88;_0x4b45ce==='id'&&_0x4d3093===_0x5ae45f&&typeof _0x194cbd==_0x5142da(0x3e3)?_0x3bd7ff[_0x5142da(0x551)](_0x194cbd):_0x33d8fc(_0x194cbd,_0x4b45ce);});};return _0x33d8fc(_0x43d603),[..._0x3bd7ff];}function Qs(_0xa58e6d,_0x141138,_0x46017d,_0x10c182){const _0x43ab1e=_0x282c57;_0xa58e6d&&Array[_0x43ab1e(0x3d5)](_0x141138)&&_0x141138[_0x43ab1e(0x34b)](_0x81c501=>{const _0x3608e4=_0x43ab1e;if(!tc(_0x81c501))return;let _0xc48ba9=_0x81c501;if(typeof _0xc48ba9[_0x3608e4(0x2f0)]=='number'){var _0x3c0b1f;let _0x531102=(_0x3c0b1f=_0xa58e6d[_0x3608e4(0x21b)])==null?void 0x0:_0x3c0b1f[_0xc48ba9['row']];_0x531102&&_0x46017d[_0x3608e4(0x551)](_0x531102);}if(typeof _0xc48ba9['col']=='number'){var _0x8ab75d;let _0x6df7a8=(_0x8ab75d=_0xa58e6d[_0x3608e4(0x46d)])==null?void 0x0:_0x8ab75d[_0xc48ba9[_0x3608e4(0x340)]];_0x6df7a8&&_0x10c182['add'](_0x6df7a8);}});}function $s(_0x298141,_0x587525,_0x2f1d99=''){const _0xf4f2b2=_0x282c57;if(_0x298141&&typeof _0x298141==_0xf4f2b2(0x4ba)){if(Array[_0xf4f2b2(0x3d5)](_0x298141)){_0x298141[_0xf4f2b2(0x34b)](_0xcc6a9c=>$s(_0xcc6a9c,_0x587525,_0x2f1d99));return;}tc(_0x298141)&&Object[_0xf4f2b2(0x41d)](_0x298141)[_0xf4f2b2(0x34b)](([_0x50cbee,_0x124dc1])=>{const _0x592f2d=_0xf4f2b2;_0x2f1d99===_0x592f2d(0x54e)&&_0x587525[_0x592f2d(0x551)](_0x50cbee),$s(_0x124dc1,_0x587525,_0x50cbee);});}}function ec(_0x3e5528){const _0x1c48ff=_0x282c57;return Array[_0x1c48ff(0x3d5)](_0x3e5528);}function tc(_0x3b7b09){const _0x51f3f7=_0x282c57;return typeof _0x3b7b09==_0x51f3f7(0x4ba)&&!!_0x3b7b09&&!Array[_0x51f3f7(0x3d5)](_0x3b7b09);}const nc=_0x2cfc4b(_0x282c57(0x25a));let rc=class{constructor(_0x3c32f5){const _0x112e88=_0x282c57;this[_0x112e88(0x42e)]=_0x3c32f5;}['getBase'](_0x4a2639){const _0x1540d8=_0x282c57;return this[_0x1540d8(0x42e)][_0x1540d8(0x2ad)](_0x4a2639,_0x335149[_0x1540d8(0x370)])??null;}[_0x282c57(0x429)](){const _0x1d4fd6=_0x282c57;return this[_0x1d4fd6(0x42e)][_0x1d4fd6(0x1cd)](_0x335149[_0x1d4fd6(0x370)]);}[_0x282c57(0x417)](_0x30995e){const _0x3bf34e=_0x282c57;return this['_univerInstanceService'][_0x3bf34e(0x228)](_0x335149[_0x3bf34e(0x370)],_0x30995e);}};rc=X([Y(0x0,_0x54ce33)],rc);const ic=_0x2cfc4b(_0x282c57(0x3b1));var ac=class extends _0x3bb8e0{constructor(..._0x5000cd){const _0x35b3ef=_0x282c57;super(..._0x5000cd),G(this,_0x35b3ef(0x432),new Map());}['register'](_0x5e7d46){const _0x740610=_0x282c57;return this['_plugins']['set'](_0x5e7d46[_0x740610(0x4aa)],_0x5e7d46),_0x453a32(()=>this[_0x740610(0x432)][_0x740610(0x404)](_0x5e7d46[_0x740610(0x4aa)]));}[_0x282c57(0x268)](_0x313149){const _0x3f80bd=_0x282c57;let _0x2b17d5=this['_plugins'][_0x3f80bd(0x268)](_0x313149);if(!_0x2b17d5)throw Error(_0x3f80bd(0x22d)+_0x313149+_0x3f80bd(0x274));return _0x2b17d5;}[_0x282c57(0x416)](){const _0x43e4e1=_0x282c57;return Array[_0x43e4e1(0x2f3)](this['_plugins'][_0x43e4e1(0x54e)]());}};const oc=[Q];let sc=class extends _0x206208{constructor(_0x1dbfda=Ns,_0x5f3c94,_0x60d4c2,_0x216100,_0x3967a2,_0x44a9df){const _0x317fb8=_0x282c57;super(),this[_0x317fb8(0x421)]=_0x1dbfda,this['_injector']=_0x5f3c94,this[_0x317fb8(0x190)]=_0x60d4c2,this[_0x317fb8(0x42e)]=_0x216100,this[_0x317fb8(0x32a)]=_0x3967a2,this[_0x317fb8(0x242)]=_0x44a9df,G(this,'_baseSyncDisposables',new Map());let {..._0x57029a}=_0xc2b1c2({},Ns,this['_config']);this[_0x317fb8(0x32a)][_0x317fb8(0x400)](_0x317fb8(0x2e2),_0x57029a),this[_0x317fb8(0x42e)][_0x317fb8(0x2ae)](_0x335149[_0x317fb8(0x370)],_0x1c1e04),this[_0x317fb8(0x54d)](),this[_0x317fb8(0x501)](),this[_0x317fb8(0x35b)](),this[_0x317fb8(0x514)]();}['onStarting'](){const _0x6847b2=_0x282c57;this[_0x6847b2(0x469)][_0x6847b2(0x551)]([Lo]),this[_0x6847b2(0x4fe)](this[_0x6847b2(0x469)][_0x6847b2(0x268)](_0x2a9a16)[_0x6847b2(0x3f4)](Ro)),this['disposeWithMe'](this[_0x6847b2(0x469)][_0x6847b2(0x268)](_0x2a9a16)[_0x6847b2(0x3f4)](zo)),this[_0x6847b2(0x4fe)](this[_0x6847b2(0x469)][_0x6847b2(0x268)](_0x532322)[_0x6847b2(0x439)](_0xd2ae12[_0x6847b2(0x3d6)],this[_0x6847b2(0x469)][_0x6847b2(0x268)](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x404638=_0x282c57;_0x2fa2a9(this[_0x404638(0x469)],[[rc],[qr],[Rs]]),this[_0x404638(0x42e)]['getAllUnitsForType'](_0x335149[_0x404638(0x370)])[_0x404638(0x34b)](_0x5decf3=>this[_0x404638(0x305)](_0x5decf3[_0x404638(0x1e4)]())),_0x2fa2a9(this[_0x404638(0x469)],[[zs],[Us]]);}['_initDependencies'](){const _0x52f654=_0x282c57;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x52f654(0x34b)](_0x2488f0=>this['_injector'][_0x52f654(0x551)](_0x2488f0));}['_initCommands'](){const _0x4c5261=_0x282c57;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc][_0x4c5261(0x34b)](_0x31967c=>this[_0x4c5261(0x4fe)](this[_0x4c5261(0x190)][_0x4c5261(0x3f4)](_0x31967c))),oc['forEach'](_0x5d314c=>{const _0x40f28a=_0x4c5261;var _0x4f9667;return(_0x4f9667=this[_0x40f28a(0x242)])==null?void 0x0:_0x4f9667[_0x40f28a(0x2fc)](_0x5d314c);});}['_initDataSync'](){const _0x4b07d8=_0x282c57;this[_0x4b07d8(0x242)]&&(this[_0x4b07d8(0x4fe)](this[_0x4b07d8(0x42e)][_0x4b07d8(0x224)](_0x335149[_0x4b07d8(0x370)])[_0x4b07d8(0x306)](({unit:_0x1a6829})=>{const _0x5993fe=_0x4b07d8;this['_syncBaseUnit'](_0x1a6829[_0x5993fe(0x1e4)]());})),this['disposeWithMe'](this[_0x4b07d8(0x42e)][_0x4b07d8(0x4b0)](_0x335149['UNIVER_BASE'])[_0x4b07d8(0x306)](_0x4aa757=>{const _0x4d8a61=_0x4b07d8;var _0x265e6f;(_0x265e6f=this[_0x4d8a61(0x4f0)][_0x4d8a61(0x268)](_0x4aa757['getUnitId']()))==null||_0x265e6f['dispose'](),this[_0x4d8a61(0x4f0)]['delete'](_0x4aa757[_0x4d8a61(0x1e4)]());})));}[_0x282c57(0x305)](_0x56d65f){const _0x4a10f0=_0x282c57;this['_dataSyncPrimaryController']&&!this[_0x4a10f0(0x4f0)]['has'](_0x56d65f)&&this[_0x4a10f0(0x4f0)][_0x4a10f0(0x246)](_0x56d65f,this[_0x4a10f0(0x242)][_0x4a10f0(0x516)](_0x56d65f));}[_0x282c57(0x35b)](){const _0x4ae9a9=_0x282c57;let _0x587bc5=this[_0x4ae9a9(0x469)][_0x4ae9a9(0x268)](mr);zn()['forEach'](_0x1e3ca5=>_0x587bc5[_0x4ae9a9(0x39f)](_0x1e3ca5));let _0x4d35c4=this[_0x4ae9a9(0x469)][_0x4ae9a9(0x268)](ic),_0x535e9c=this['_injector'][_0x4ae9a9(0x268)](ii);$r()[_0x4ae9a9(0x34b)](_0x2fa2fe=>{const _0x49a444=_0x4ae9a9;_0x4d35c4[_0x49a444(0x39f)](_0x2fa2fe),_0x535e9c[_0x49a444(0x241)](_0x2fa2fe);});}};G(sc,'pluginName','BASES_PLUGIN'),G(sc,_0x282c57(0x1b4),js),G(sc,_0x282c57(0x471),Ms),G(sc,_0x282c57(0x4aa),_0x335149[_0x282c57(0x370)]),sc=X([_0x1ae952(_0x3f6b6a,_0x269033),Y(0x1,_0x4bcdd1(_0x5325dd)),Y(0x2,_0x2a9a16),Y(0x3,_0x54ce33),Y(0x4,_0x23dc17),Y(0x5,_0x2a3dd3(_0x57ca42))],sc);let cc=class extends _0x206208{constructor(_0x4dd82d=Ps,_0xf7df7a,_0x15d3ce,_0xbb9ace,_0x237d1f){const _0x198e1e=_0x282c57;super(),this['_config']=_0x4dd82d,this[_0x198e1e(0x469)]=_0xf7df7a,this[_0x198e1e(0x190)]=_0x15d3ce,this['_configService']=_0xbb9ace,this[_0x198e1e(0x42e)]=_0x237d1f;let {..._0x326a85}=_0xc2b1c2({},Ps,this[_0x198e1e(0x421)]);this['_configService'][_0x198e1e(0x400)]('bases.remote.config',_0x326a85),this[_0x198e1e(0x42e)][_0x198e1e(0x2ae)](_0x335149[_0x198e1e(0x370)],_0x1c1e04),[[mr,{'useClass':hr}],[ii,{'useClass':si}]]['forEach'](_0x2ecd91=>this[_0x198e1e(0x469)][_0x198e1e(0x551)](_0x2ecd91)),oc[_0x198e1e(0x34b)](_0x10f36b=>this[_0x198e1e(0x4fe)](this[_0x198e1e(0x190)][_0x198e1e(0x3f4)](_0x10f36b)));}};G(cc,_0x282c57(0x1a0),_0x282c57(0x369)),G(cc,'packageName',js),G(cc,_0x282c57(0x471),Ms),G(cc,_0x282c57(0x4aa),_0x335149[_0x282c57(0x370)]),cc=X([_0x1ae952(_0x3f6b6a,_0x269033),Y(0x1,_0x4bcdd1(_0x5325dd)),Y(0x2,_0x2a9a16),Y(0x3,_0x23dc17),Y(0x4,_0x54ce33)],cc);function lc(_0x3a486e){const _0x190a9e=_0x282c57;let _0x4f7a71=Cc(_0x3a486e[_0x190a9e(0x4ec)]);if(!_0x4f7a71)return{'query':'','total':0x0,'matches':[]};let _0x3001a1=[],_0x160b9b=[];for(let _0x2c0127=0x0;_0x2c0127<_0x3a486e[_0x190a9e(0x25f)][_0x190a9e(0x4ab)];_0x2c0127++){if(!(_0x2c0127 in _0x3a486e[_0x190a9e(0x25f)]))continue;let _0x187f16=_0x3a486e['table']['fields'][_0x3a486e[_0x190a9e(0x25f)][_0x2c0127]];_0x187f16&&_0x160b9b[_0x190a9e(0x381)]({'field':_0x187f16,'fieldIndex':_0x2c0127});}_0x3a486e['rows'][_0x190a9e(0x34b)]((_0x1c3caf,_0x123a3e)=>{const _0x15ab38=_0x190a9e;_0x160b9b[_0x15ab38(0x34b)](({field:_0x5d6323,fieldIndex:_0xea6dbf})=>{const _0x3e8f23=_0x15ab38;let _0x67a3f0=uc(_0x1c3caf[_0x3e8f23(0x54e)][_0x5d6323['id']],_0x5d6323);if(!_0x67a3f0)return;let _0x17d118=Sc(_0x4f7a71,_0x67a3f0[_0x3e8f23(0x1b7)]);_0x17d118<=0x0||_0x3001a1[_0x3e8f23(0x381)]({'recordId':_0x1c3caf[_0x3e8f23(0x40d)],'fieldId':_0x5d6323['id'],'fieldType':_0x5d6323[_0x3e8f23(0x4aa)],'text':_0x67a3f0[_0x3e8f23(0x2b8)],'score':_0x17d118,'rowIndex':_0x123a3e,'fieldIndex':_0xea6dbf});});}),_0x3001a1[_0x190a9e(0x1df)]((_0xb04853,_0x546146)=>_0x546146[_0x190a9e(0x412)]-_0xb04853[_0x190a9e(0x412)]||_0xb04853[_0x190a9e(0x277)]-_0x546146['rowIndex']||_0xb04853[_0x190a9e(0x4f6)]-_0x546146[_0x190a9e(0x4f6)]);let _0x457a38=_0x3a486e[_0x190a9e(0x22f)]==null?_0x3001a1:_0x3001a1['slice'](0x0,Math['max'](0x0,_0x3a486e[_0x190a9e(0x22f)]));return{'query':_0x4f7a71,'total':_0x3001a1['length'],'matches':Tc(_0x457a38)};}function uc(_0x1027e2,_0x5a37fc){const _0x2691d0=_0x282c57;let _0x506317=[];for(let _0x92aa98 of fc(_0x1027e2,_0x5a37fc)){let _0xe0a8a4=Cc(_0x92aa98);_0xe0a8a4&&_0x506317[_0x2691d0(0x381)](_0xe0a8a4);}return _0x506317['length']?{'displayText':dc(_0x1027e2,_0x5a37fc),'searchTexts':wc(_0x506317)}:null;}function dc(_0x3a47bd,_0x27d3cb){const _0x395204=_0x282c57;switch(_0x27d3cb[_0x395204(0x4aa)]){case _0x239099[_0x395204(0x2fe)]:case _0x239099['MultiSelect']:case _0x239099[_0x395204(0x3af)]:return pc(_0x3a47bd,_0x27d3cb)['join'](',\x20');case _0x239099['Link']:return gc(_0x3a47bd);case _0x239099[_0x395204(0x240)]:case _0x239099[_0x395204(0x35d)]:case _0x239099['UpdatedAt']:return _c(_0x3a47bd,_0x27d3cb);case _0x239099[_0x395204(0x546)]:case _0x239099[_0x395204(0x4b6)]:return vc(_0x3a47bd,_0x27d3cb);case _0x239099['Progress']:return yc(_0x3a47bd,_0x27d3cb);case _0x239099[_0x395204(0x379)]:return _0x3a47bd?_0x395204(0x2ff):_0x395204(0x4b5);case _0x239099[_0x395204(0x392)]:return bc(_0x3a47bd)['join'](',\x20');default:return xc(_0x3a47bd);}}function fc(_0x4350d2,_0x47fcdf){const _0x49cd11=_0x282c57;switch(_0x47fcdf[_0x49cd11(0x4aa)]){case _0x239099[_0x49cd11(0x2fe)]:case _0x239099['MultiSelect']:case _0x239099['Group']:{let _0xda84d0=pc(_0x4350d2,_0x47fcdf);if(Array[_0x49cd11(0x3d5)](_0x4350d2)){let _0x39807e=[..._0xda84d0];for(let _0x36f2b9=0x0;_0x36f2b9<_0x4350d2[_0x49cd11(0x4ab)];_0x36f2b9++)_0x36f2b9 in _0x4350d2&&_0x39807e[_0x49cd11(0x381)](String(_0x4350d2[_0x36f2b9]));return _0x39807e;}return _0x4350d2==null?_0xda84d0:[..._0xda84d0,String(_0x4350d2)];}case _0x239099['Link']:{let _0x58d344=hc(_0x4350d2);return[_0x58d344[_0x49cd11(0x4b7)],_0x58d344[_0x49cd11(0x45d)]];}case _0x239099['Date']:case _0x239099[_0x49cd11(0x35d)]:case _0x239099[_0x49cd11(0x1bc)]:return[_c(_0x4350d2,_0x47fcdf),xc(_0x4350d2)];case _0x239099['Number']:case _0x239099['Currency']:return[vc(_0x4350d2,_0x47fcdf),xc(_0x4350d2)];case _0x239099[_0x49cd11(0x2ca)]:return[yc(_0x4350d2,_0x47fcdf),xc(_0x4350d2)];case _0x239099['Checkbox']:return _0x4350d2?[_0x49cd11(0x2ff),_0x49cd11(0x362),_0x49cd11(0x3c2)]:[_0x49cd11(0x4b5),'No',_0x49cd11(0x477)];case _0x239099[_0x49cd11(0x392)]:return bc(_0x4350d2);default:return[xc(_0x4350d2)];}}function pc(_0xbb71bf,_0x3327c4){const _0xd1c035=_0x282c57;var _0x5c6c6f;let _0x3c9bde=Array['isArray']((_0x5c6c6f=_0x3327c4[_0xd1c035(0x50c)])==null?void 0x0:_0x5c6c6f[_0xd1c035(0x4f3)])?_0x3327c4[_0xd1c035(0x50c)][_0xd1c035(0x4f3)]:[],_0x5285b4=[];if(Array['isArray'](_0xbb71bf)){for(let _0x158435=0x0;_0x158435<_0xbb71bf[_0xd1c035(0x4ab)];_0x158435++){if(!(_0x158435 in _0xbb71bf))continue;let _0x2149a4=String(_0xbb71bf[_0x158435]);_0x2149a4&&_0x5285b4[_0xd1c035(0x381)](mc(_0x3c9bde,_0x2149a4));}return _0x5285b4;}if(_0xbb71bf!=null){let _0x2e09c8=String(_0xbb71bf);_0x2e09c8&&_0x5285b4[_0xd1c035(0x381)](mc(_0x3c9bde,_0x2e09c8));}return _0x5285b4;}function mc(_0x488656,_0x32a4c7){const _0x48e852=_0x282c57;for(let _0x19427a of _0x488656){if(typeof _0x19427a=='string'&&_0x19427a===_0x32a4c7)return _0x19427a;if(_0x19427a&&typeof _0x19427a=='object'){let _0x14a185=_0x19427a;if(String(_0x14a185['id']??_0x14a185[_0x48e852(0x2f4)]??'')===_0x32a4c7||String(_0x14a185[_0x48e852(0x2f4)]??'')===_0x32a4c7)return String(_0x14a185[_0x48e852(0x2f4)]??_0x14a185['id']??_0x32a4c7);}}return _0x32a4c7;}function hc(_0x36cd03){const _0x1737d7=_0x282c57;if(_0x36cd03&&typeof _0x36cd03=='object'&&!Array[_0x1737d7(0x3d5)](_0x36cd03)){let _0x2bd60b=_0x36cd03;return{'text':String(_0x2bd60b['text']??_0x2bd60b[_0x1737d7(0x45d)]??''),'url':String(_0x2bd60b[_0x1737d7(0x45d)]??'')};}return{'text':xc(_0x36cd03),'url':xc(_0x36cd03)};}function gc(_0x490f80){const _0x25f11d=_0x282c57;let _0x3ff6ca=hc(_0x490f80);return _0x3ff6ca['text']||_0x3ff6ca[_0x25f11d(0x45d)];}function _c(_0x3ded7c,_0x55e0b3){const _0x39ec10=_0x282c57;return typeof _0x3ded7c!='number'||!Number[_0x39ec10(0x210)](_0x3ded7c)?'':mn(_0x3ded7c,_0x55e0b3[_0x39ec10(0x50c)]);}function vc(_0x884842,_0x81d71c){const _0x1afe11=_0x282c57;let _0x636fc=typeof _0x884842==_0x1afe11(0x389)?_0x884842:Number(_0x884842);return Number[_0x1afe11(0x210)](_0x636fc)?qo(_0x636fc,_0x81d71c[_0x1afe11(0x50c)]):'';}function yc(_0x3cc3a9,_0x4fe61e){const _0x3d42ab=_0x282c57;let _0x1d3f9e=typeof _0x3cc3a9=='number'?_0x3cc3a9:Number(_0x3cc3a9);return Number['isFinite'](_0x1d3f9e)?Qo(_0x1d3f9e,_0x4fe61e[_0x3d42ab(0x50c)]):'';}function bc(_0x1ff799){const _0x40550f=_0x282c57;return Array['isArray'](_0x1ff799)?_0x1ff799[_0x40550f(0x26a)](_0x3987f1=>{const _0xc3430f=_0x40550f;if(!_0x3987f1||typeof _0x3987f1!=_0xc3430f(0x4ba))return[];let _0x2933e3=_0x3987f1,_0x241898=String(_0x2933e3[_0xc3430f(0x2f4)]??_0x2933e3[_0xc3430f(0x45d)]??'')[_0xc3430f(0x24d)]();return _0x241898?[_0x241898]:[];}):[];}function xc(_0x55ea3){const _0x333e35=_0x282c57;if(_0x55ea3==null)return'';if(typeof _0x55ea3==_0x333e35(0x386))return _0x55ea3?_0x333e35(0x2ee):_0x333e35(0x4ac);if(typeof _0x55ea3=='number')return String(_0x55ea3);if(Array['isArray'](_0x55ea3)){let _0x4877d5=[];for(let _0x2c8cd2=0x0;_0x2c8cd2<_0x55ea3[_0x333e35(0x4ab)];_0x2c8cd2++){if(!(_0x2c8cd2 in _0x55ea3))continue;let _0x214b01=xc(_0x55ea3[_0x2c8cd2]);_0x214b01&&_0x4877d5[_0x333e35(0x381)](_0x214b01);}return _0x4877d5[_0x333e35(0x1c0)](',\x20');}if(typeof _0x55ea3=='object'){let _0x4407d0=_0x55ea3;return String(_0x4407d0[_0x333e35(0x336)]??_0x4407d0['name']??_0x4407d0[_0x333e35(0x4b7)]??_0x4407d0[_0x333e35(0x45d)]??'')[_0x333e35(0x24d)]();}return String(_0x55ea3);}function _0x3047(_0x2093fa,_0x20bbd1){_0x2093fa=_0x2093fa-0x18b;const _0x332d1e=_0x332d();let _0x3047b2=_0x332d1e[_0x2093fa];return _0x3047b2;}function Sc(_0x3308c3,_0x3c7154){const _0xa2b481=_0x282c57;let _0x3c2437=0x0;for(let _0x546c22 of _0x3c7154)if(_0x546c22){if(_0x546c22===_0x3308c3){_0x3c2437=Math[_0xa2b481(0x468)](_0x3c2437,0x12c);continue;}if(_0x546c22['startsWith'](_0x3308c3)){_0x3c2437=Math['max'](_0x3c2437,0xfa);continue;}_0x546c22[_0xa2b481(0x3df)](_0x3308c3)&&(_0x3c2437=Math['max'](_0x3c2437,0xc8));}return _0x3c2437;}function Cc(_0x23195a){const _0x5cede0=_0x282c57;return _0x23195a['trim']()[_0x5cede0(0x1a6)](/\s+/g,'\x20')['toLowerCase']();}function wc(_0xf2db3e){const _0x2e812d=_0x282c57;return Array[_0x2e812d(0x2f3)](new Set(_0xf2db3e));}function Tc(_0xf842ce){const _0x3df469=_0x282c57;let _0x48cb25=[];for(let {rowIndex:_0x2aa12b,fieldIndex:_0xc12392,..._0x197e66}of _0xf842ce)_0x48cb25[_0x3df469(0x381)](_0x197e66);return _0x48cb25;}function Ec(_0x509c88){const _0x49d1be=_0x282c57;return{'compress':!0x0,'kind':'base-range-values-v1','u':_0x509c88[_0x49d1be(0x226)],'t':_0x509c88[_0x49d1be(0x45e)],'p':_0x509c88['patches'][_0x49d1be(0x309)](_0x267bff=>[_0x267bff['row'],_0x267bff[_0x49d1be(0x340)],Ac(_0x267bff[_0x49d1be(0x373)])]),..._0x509c88[_0x49d1be(0x245)]===void 0x0?{}:{'g':_0x509c88[_0x49d1be(0x245)]}};}function Dc(_0x4f2d20){const _0x31aa4f=_0x282c57;if(Lc(_0x4f2d20,'base-range-values-v1'),!Oc(_0x4f2d20)){if(!Ic(_0x4f2d20))throw Error(_0x31aa4f(0x4ea));return _0x4f2d20;}return{'unitId':_0x4f2d20['u'],'tableId':_0x4f2d20['t'],'patches':_0x4f2d20['p'][_0x31aa4f(0x309)](([_0x2d69a9,_0x316945,_0x9a5516])=>({'row':_0x2d69a9,'col':_0x316945,'value':jc(_0x9a5516)})),..._0x4f2d20['g']===void 0x0?{}:{'trigger':_0x4f2d20['g']}};}function Oc(_0x4e3e4b){const _0x34a20d=_0x282c57;return!Rc(_0x4e3e4b)||_0x4e3e4b['compress']!==!0x0||_0x4e3e4b[_0x34a20d(0x39c)]!==_0x34a20d(0x259)?!0x1:typeof _0x4e3e4b['u']==_0x34a20d(0x3e3)&&typeof _0x4e3e4b['t']=='string'&&(_0x4e3e4b['g']===void 0x0||typeof _0x4e3e4b['g']=='string')&&Array[_0x34a20d(0x3d5)](_0x4e3e4b['p'])&&_0x4e3e4b['p'][_0x34a20d(0x300)](_0x5594dc=>Array['isArray'](_0x5594dc)&&_0x5594dc[_0x34a20d(0x4ab)]===0x3&&Number['isInteger'](_0x5594dc[0x0])&&Number[_0x34a20d(0x3a0)](_0x5594dc[0x1]));}function kc(_0x2f7646){const _0x44190c=_0x282c57;return!Rc(_0x2f7646)||_0x2f7646[_0x44190c(0x192)]!==!0x0||_0x2f7646[_0x44190c(0x39c)]!==_0x44190c(0x465)||!Rc(_0x2f7646[_0x44190c(0x528)])?!0x1:Object[_0x44190c(0x54e)](_0x2f7646['tables'])[_0x44190c(0x300)](_0x374e8c=>Rc(_0x374e8c)&&(_0x374e8c['cd']===void 0x0||Array[_0x44190c(0x3d5)](_0x374e8c['cd'])&&_0x374e8c['cd'][_0x44190c(0x300)](_0x371c74=>Array['isArray'](_0x371c74)&&_0x371c74['length']===0x3&&Number['isInteger'](_0x371c74[0x0])&&Number['isInteger'](_0x371c74[0x1])&&Fc(_0x371c74[0x2]))));}function Ac(_0x5e37d3){return Pc(_0x5e37d3)?Mc(_0x5e37d3):_0x5e37d3;}function jc(_0x7aa50b){return Fc(_0x7aa50b)?Nc(_0x7aa50b):_0x7aa50b;}function Mc(_0xc27f34){return{'c':0x1,..._0xc27f34['v']===void 0x0?{}:{'v':_0xc27f34['v']},..._0xc27f34['t']!==void 0x0&&_0xc27f34['t']!==null?{'t':_0xc27f34['t']}:_0xc27f34['t']===null?{'t':null}:{},..._0xc27f34['f']!==void 0x0&&_0xc27f34['f']!==null?{'f':_0xc27f34['f']}:_0xc27f34['f']===null?{'f':null}:{},..._0xc27f34['si']!==void 0x0&&_0xc27f34['si']!==null?{'si':_0xc27f34['si']}:_0xc27f34['si']===null?{'si':null}:{},..._0xc27f34['p']!==void 0x0&&_0xc27f34['p']!==null?{'p':_0xc27f34['p']}:_0xc27f34['p']===null?{'p':null}:{}};}function Nc(_0x105c5b){return{..._0x105c5b['v']===void 0x0?{}:{'v':_0x105c5b['v']},..._0x105c5b['t']===void 0x0?{}:{'t':_0x105c5b['t']},..._0x105c5b['f']===void 0x0?{}:{'f':_0x105c5b['f']},..._0x105c5b['si']===void 0x0?{}:{'si':_0x105c5b['si']},..._0x105c5b['p']===void 0x0?{}:{'p':_0x105c5b['p']}};}function Pc(_0x1e3eb3){const _0x3137a1=_0x282c57;return!!_0x1e3eb3&&typeof _0x1e3eb3==_0x3137a1(0x4ba)&&!Array[_0x3137a1(0x3d5)](_0x1e3eb3)&&(Object[_0x3137a1(0x35c)][_0x3137a1(0x445)][_0x3137a1(0x2a4)](_0x1e3eb3,'v')||Object[_0x3137a1(0x35c)]['hasOwnProperty'][_0x3137a1(0x2a4)](_0x1e3eb3,'t')||Object[_0x3137a1(0x35c)][_0x3137a1(0x445)]['call'](_0x1e3eb3,'p')||Object['prototype']['hasOwnProperty'][_0x3137a1(0x2a4)](_0x1e3eb3,'f')||Object[_0x3137a1(0x35c)][_0x3137a1(0x445)][_0x3137a1(0x2a4)](_0x1e3eb3,'si'));}function Fc(_0x505df6){return Rc(_0x505df6)&&_0x505df6['c']===0x1;}function Ic(_0x2aef50){const _0x1d8b38=_0x282c57;return Rc(_0x2aef50)&&typeof _0x2aef50['unitId']==_0x1d8b38(0x3e3)&&typeof _0x2aef50[_0x1d8b38(0x45e)]=='string'&&(_0x2aef50[_0x1d8b38(0x245)]===void 0x0||typeof _0x2aef50[_0x1d8b38(0x245)]==_0x1d8b38(0x3e3))&&Array[_0x1d8b38(0x3d5)](_0x2aef50[_0x1d8b38(0x345)])&&_0x2aef50['patches'][_0x1d8b38(0x300)](_0x4692b0=>Rc(_0x4692b0)&&Number[_0x1d8b38(0x3a0)](_0x4692b0[_0x1d8b38(0x2f0)])&&Number['isInteger'](_0x4692b0['col'])&&_0x1d8b38(0x373)in _0x4692b0);}function Lc(_0x59218a,_0x5ed8b5){const _0x576321=_0x282c57;if(Rc(_0x59218a)&&_0x59218a[_0x576321(0x192)]===!0x0){if(_0x59218a[_0x576321(0x39c)]!==_0x5ed8b5)throw Error(_0x576321(0x54b)+String(_0x59218a[_0x576321(0x39c)])+'\x22.');if(!(_0x5ed8b5===_0x576321(0x259)?Oc(_0x59218a):kc(_0x59218a)))throw Error('[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22'+_0x5ed8b5+'\x22.');}}function Rc(_0x5398aa){const _0x4ef6dd=_0x282c57;return!!_0x5398aa&&typeof _0x5398aa==_0x4ef6dd(0x4ba)&&!Array[_0x4ef6dd(0x3d5)](_0x5398aa);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x5e32d1 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};