@univerjs-pro/bases 1.0.0-beta.0 → 1.0.0-beta.2

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 (94) 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/types/commands/commands/validate-base-formula.command.d.ts +8 -0
  65. package/lib/types/controllers/base-formula-calculation.controller.d.ts +1 -0
  66. package/lib/types/facade/f-base.d.ts +21 -7
  67. package/lib/types/facade/f-enum.d.ts +2 -1
  68. package/lib/types/facade/f-table.d.ts +47 -7
  69. package/lib/types/index.d.ts +6 -0
  70. package/lib/types/models/base-table-name.d.ts +8 -0
  71. package/lib/types/ot/json1-op-factory.d.ts +1 -1
  72. package/lib/types/services/base-formula.service.d.ts +2 -23
  73. package/lib/umd/facade.js +1 -1
  74. package/lib/umd/index.js +1 -1
  75. package/lib/umd/locale/ar-SA.js +1 -1
  76. package/lib/umd/locale/ca-ES.js +1 -1
  77. package/lib/umd/locale/de-DE.js +1 -1
  78. package/lib/umd/locale/en-US.js +1 -1
  79. package/lib/umd/locale/es-ES.js +1 -1
  80. package/lib/umd/locale/fa-IR.js +1 -1
  81. package/lib/umd/locale/fr-FR.js +1 -1
  82. package/lib/umd/locale/id-ID.js +1 -1
  83. package/lib/umd/locale/it-IT.js +1 -1
  84. package/lib/umd/locale/ja-JP.js +1 -1
  85. package/lib/umd/locale/ko-KR.js +1 -1
  86. package/lib/umd/locale/pl-PL.js +1 -1
  87. package/lib/umd/locale/pt-BR.js +1 -1
  88. package/lib/umd/locale/ru-RU.js +1 -1
  89. package/lib/umd/locale/sk-SK.js +1 -1
  90. package/lib/umd/locale/vi-VN.js +1 -1
  91. package/lib/umd/locale/zh-CN.js +1 -1
  92. package/lib/umd/locale/zh-HK.js +1 -1
  93. package/lib/umd/locale/zh-TW.js +1 -1
  94. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x274f9f=_0x2f15;(function(_0x176cb2,_0x12a8a1){const _0xc2b912=_0x2f15,_0x1fe997=_0x176cb2();while(!![]){try{const _0x2ca35d=parseInt(_0xc2b912(0x450))/0x1+-parseInt(_0xc2b912(0x284))/0x2*(parseInt(_0xc2b912(0x41a))/0x3)+parseInt(_0xc2b912(0x437))/0x4+parseInt(_0xc2b912(0x2fe))/0x5*(parseInt(_0xc2b912(0x47b))/0x6)+-parseInt(_0xc2b912(0x514))/0x7+-parseInt(_0xc2b912(0x33e))/0x8+parseInt(_0xc2b912(0x493))/0x9;if(_0x2ca35d===_0x12a8a1)break;else _0x1fe997['push'](_0x1fe997['shift']());}catch(_0x3b67cc){_0x1fe997['push'](_0x1fe997['shift']());}}}(_0x42e6,0x9efe2));import{BASE_RECORD_ID_FIELD_ID as _0x525439,BaseConditionalColorOperator as _0x5914e9,BaseConditionalColorTarget as _0x2cbedb,BaseConditionalDateMode as _0x300409,BaseDataModel as _0x588b72,BaseFieldType as _0x11438e,BaseFilterConjunction as _0x14e8fd,BaseHierarchyInvalidReason as _0x29e4ba,BaseRecordLinkRole as _0x2af9b7,BaseSortDirection as _0x575c6c,BaseViewType as _0x31904d,CellValueType as _0x332e7b,ColorKit as _0x52124a,CommandType as _0x154d7f,DependentOn as _0x536e3b,Disposable as _0x4191ab,ICommandService as _0x232cd6,IConfigService as _0x1468c7,IUndoRedoService as _0x56cd6a,IUniverInstanceService as _0x310540,Inject as _0x3a5702,Injector as _0x3682df,JSON1 as _0x356391,JSONX as _0x8f86bf,ObjectMatrix as _0x388afb,Optional as _0x4a9daf,Plugin as _0x5f2ac0,Tools as _0x12a306,UniverInstanceType as _0x993548,assertBaseTableRecordIdentity as _0xbbbb25,createBaseRecordIdField as _0x4bb477,createIdentifier as _0x3c1d0d,dateKit as _0x1b3caf,generateRandomId as _0x3a2895,isBaseRecordIdFieldName as _0xec31b8,isValidBaseRecordId as _0x198e88,merge as _0xb3ba83,numfmt as _0x3efcdb,regexp as _0x3f679a,sequenceExecute as _0x40b820,toDisposable as _0x26ad0b,touchDependencies as _0x469d0d}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x5f1979,IActiveDirtyManagerService as _0x27fac4,RemoveSuperTableMutation as _0x12c440,SetFormulaCalculationResultMutation as _0x333d70,SetSuperTableMutation as _0x505dfe,SetTriggerFormulaCalculationStartMutation as _0x4ce331,UniverProFormulaEnginePlugin as _0x2d5150,refactorFormulaUnitQualifier as _0x4bae62}from'@univerjs-pro/engine-formula';import{UniverLicensePlugin as _0x3b093}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x11da31}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x2120b4,FormulaResultApplicationType as _0x3f3756}from'@univerjs/engine-formula';function A(_0x5283f7){const _0x4a65f0=_0x2f15;let _0x22adbb=_0x5283f7[_0x4a65f0(0x427)]['targetTableId'],_0x15104d=_0x5283f7[_0x4a65f0(0x427)][_0x4a65f0(0x501)],_0x1073f5=_0x5283f7[_0x4a65f0(0x427)][_0x4a65f0(0x444)],_0x2ddd7f=_0x5283f7['config'][_0x4a65f0(0x438)],_0x4c9db5=_0x5283f7[_0x4a65f0(0x427)][_0x4a65f0(0x253)];return typeof _0x22adbb!=_0x4a65f0(0x3c6)||!_0x22adbb||typeof _0x15104d!=_0x4a65f0(0x4ed)||_0x1073f5!==void 0x0&&(typeof _0x1073f5!='string'||!_0x1073f5)||_0x4c9db5!==void 0x0&&_0x4c9db5!==_0x2af9b7[_0x4a65f0(0x38c)]||_0x2ddd7f!==void 0x0&&(!Array[_0x4a65f0(0x39e)](_0x2ddd7f)||_0x2ddd7f['some'](_0x386251=>typeof _0x386251!=_0x4a65f0(0x3c6)||!_0x386251)||new Set(_0x2ddd7f)[_0x4a65f0(0x43d)]!==_0x2ddd7f['length'])?null:{'targetTableId':_0x22adbb,'multiple':_0x15104d,..._0x1073f5?{'displayFieldId':_0x1073f5}:{},..._0x2ddd7f?{'pickerFieldIds':[..._0x2ddd7f]}:{},..._0x4c9db5?{'relationRole':_0x4c9db5}:{}};}function we(_0x5f3c5b){const _0x30dbda=_0x2f15;return typeof _0x5f3c5b!='string'||_0x5f3c5b===''?[]:_0x5f3c5b[_0x30dbda(0x213)](',');}function Te(_0x51d776){const _0x2527e2=_0x2f15;return Array[_0x2527e2(0x2a4)](new Set(_0x51d776))[_0x2527e2(0x48b)](',');}function Ee(_0x513539,_0x564593){const _0x2a8ab5=_0x2f15;if(typeof _0x513539!=_0x2a8ab5(0x3c6))return{'valid':!0x1,'reason':_0x2a8ab5(0x4bf)};if(_0x513539==='')return{'valid':!0x0};let _0x201edc=_0x513539[_0x2a8ab5(0x213)](',');return!_0x564593&&_0x201edc[_0x2a8ab5(0x353)]>0x1?{'valid':!0x1,'reason':_0x2a8ab5(0x327)}:_0x201edc[_0x2a8ab5(0x29f)](_0xb1b974=>!_0x198e88(_0xb1b974))||new Set(_0x201edc)[_0x2a8ab5(0x43d)]!==_0x201edc[_0x2a8ab5(0x353)]||Te(_0x201edc)!==_0x513539?{'valid':!0x1,'reason':_0x2a8ab5(0x40f)}:{'valid':!0x0};}function De(_0x32e2a4,_0x43ca8c){const _0x3fd852=_0x2f15;if(_0x43ca8c[_0x3fd852(0x2b9)]!==_0x11438e['RecordLink'])return{'valid':!0x0};let _0x2e8917=A(_0x43ca8c),_0x56ba61=_0x2e8917?_0x32e2a4['tables'][_0x2e8917[_0x3fd852(0x4a5)]]:void 0x0;if(!_0x2e8917||!_0x56ba61)return{'valid':!0x1,'reason':_0x3fd852(0x3c1)};let _0x48f4c0=[..._0x2e8917['displayFieldId']?[_0x2e8917[_0x3fd852(0x444)]]:[],..._0x2e8917[_0x3fd852(0x438)]??[]]['find'](_0x80386e=>{const _0x44da75=_0x3fd852;let _0x437739=_0x56ba61['fields'][_0x80386e];return!_0x437739||_0x437739[_0x44da75(0x3a9)]===!0x0||_0x437739[_0x44da75(0x2b9)]===_0x11438e[_0x44da75(0x20d)];});return _0x48f4c0?{'valid':!0x1,'reason':_0x3fd852(0x30d)+_0x48f4c0+'\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.'}:{'valid':!0x0};}function Oe(_0x397b60,_0x260afc,_0x494ae7,_0x451776={}){const _0x54f60d=_0x2f15;let _0xe48583=A(_0x260afc);if(_0x260afc[_0x54f60d(0x2b9)]!==_0x11438e[_0x54f60d(0x24c)]||!_0xe48583)return{'valid':!0x1,'reason':_0x54f60d(0x206)};let _0x5da05f=Ee(_0x494ae7,_0xe48583[_0x54f60d(0x501)]);if(!_0x5da05f['valid']||_0x451776[_0x54f60d(0x3d5)])return _0x5da05f;let _0x2129da=_0x397b60[_0x54f60d(0x529)][_0xe48583[_0x54f60d(0x4a5)]];if(!_0x2129da)return{'valid':!0x1,'reason':_0x54f60d(0x3c1)};let _0x5f35a4=we(_0x494ae7)[_0x54f60d(0x271)](_0x4c5a2e=>!_0x2129da['records'][_0x4c5a2e]);return _0x5f35a4?{'valid':!0x1,'reason':_0x54f60d(0x27b)+_0x5f35a4+_0x54f60d(0x518)}:{'valid':!0x0};}function ke(_0x59a958,_0x51b818){const _0x162610=_0x2f15;return Object[_0x162610(0x33c)](_0x59a958['tables'])['flatMap'](_0x594c60=>Object[_0x162610(0x33c)](_0x594c60['fields'])[_0x162610(0x25e)](_0x24c8a9=>{const _0x4cfb21=_0x162610;let _0x66f8d5=_0x24c8a9[_0x4cfb21(0x2b9)]===_0x11438e[_0x4cfb21(0x24c)]?A(_0x24c8a9):null;return(_0x66f8d5==null?void 0x0:_0x66f8d5[_0x4cfb21(0x4a5)])===_0x51b818?[{'tableId':_0x594c60['id'],'fieldId':_0x24c8a9['id']}]:[];}));}const Ae=0x5,je=_0x274f9f(0x2c7);let Me=function(_0x69d215){const _0xe7834b=_0x274f9f;return _0x69d215[_0xe7834b(0x4b2)]='invalidField',_0x69d215[_0xe7834b(0x375)]=_0xe7834b(0x2ac),_0x69d215[_0xe7834b(0x390)]=_0xe7834b(0x1e5),_0x69d215['Cycle']=_0xe7834b(0x4b4),_0x69d215[_0xe7834b(0x4e8)]=_0xe7834b(0x250),_0x69d215[_0xe7834b(0x44e)]=_0xe7834b(0x442),_0x69d215;}({});var j=class extends Error{constructor(_0x17974a,_0x109466='[BaseHierarchy]:\x20'+_0x17974a){const _0x104d53=_0x274f9f;super(_0x109466),this[_0x104d53(0x2b1)]=_0x17974a,this[_0x104d53(0x248)]=_0x104d53(0x204);}};let Ne=function(_0x1f8805){const _0x5cfc21=_0x274f9f;return _0x1f8805['UI']='ui',_0x1f8805[_0x5cfc21(0x3ab)]='facade',_0x1f8805[_0x5cfc21(0x241)]=_0x5cfc21(0x34a),_0x1f8805[_0x5cfc21(0x414)]='undo',_0x1f8805['Redo']=_0x5cfc21(0x37f),_0x1f8805[_0x5cfc21(0x2cb)]=_0x5cfc21(0x261),_0x1f8805;}({});function M(_0x2c23ff,_0x3dbddf){const _0x418541=_0x274f9f;if(!_0x3dbddf)return!0x1;let _0x198322=_0x2c23ff[_0x418541(0x39f)][_0x3dbddf];if(!_0x198322||_0x198322[_0x418541(0x2b9)]!==_0x11438e[_0x418541(0x24c)])return!0x1;let _0x4c8601=A(_0x198322);return _0x4c8601?_0x4c8601[_0x418541(0x4a5)]===_0x2c23ff['id']&&_0x4c8601[_0x418541(0x501)]===!0x1:!0x1;}function N(_0x138b7f){const _0x5db612=_0x274f9f;return[..._0x138b7f['fieldOrder'],...Object[_0x5db612(0x311)](_0x138b7f[_0x5db612(0x39f)])[_0x5db612(0x458)](_0x1ec257=>!_0x138b7f[_0x5db612(0x47a)][_0x5db612(0x1d2)](_0x1ec257))[_0x5db612(0x456)]()][_0x5db612(0x271)](_0x2ec87f=>{const _0x4b6687=_0x5db612;var _0x369fc5;return M(_0x138b7f,_0x2ec87f)?((_0x369fc5=A(_0x138b7f[_0x4b6687(0x39f)][_0x2ec87f]))==null?void 0x0:_0x369fc5[_0x4b6687(0x253)])===_0x2af9b7[_0x4b6687(0x38c)]:!0x1;})??null;}function P(_0x1f4a96){let _0x4fa713=N(_0x1f4a96);if(_0x4fa713)return _0x4fa713;let _0x119cb5=je,_0xbb3df7=0x2;for(;_0x1f4a96['fields'][_0x119cb5];)_0x119cb5=je+'_'+_0xbb3df7++;return _0x119cb5;}function Pe(_0x5e6b67,_0x53c138=P(_0x5e6b67),_0x3da77d=_0x274f9f(0x300)){const _0x2279b4=_0x274f9f;return{'id':_0x53c138,'name':_0x3da77d,'type':_0x11438e['RecordLink'],'config':{'targetTableId':_0x5e6b67['id'],'multiple':!0x1,'displayFieldId':_0x5e6b67[_0x2279b4(0x2db)],'pickerFieldIds':[_0x5e6b67[_0x2279b4(0x2db)]],'relationRole':_0x2af9b7[_0x2279b4(0x38c)]}};}function Fe(_0x5c85c6){let _0x794e6b=N(_0x5c85c6);return _0x794e6b?[_0x794e6b]:[];}function Ie(_0x327753,_0x11befd){const _0x406d6d=_0x274f9f;let _0x2c1aa5=[...Fe(_0x327753)][_0x406d6d(0x458)](_0x13f875=>_0x11befd[_0x406d6d(0x29f)](_0x3af9dd=>Object[_0x406d6d(0x20f)][_0x406d6d(0x465)][_0x406d6d(0x385)](_0x3af9dd[_0x406d6d(0x33c)],_0x13f875)));if(!_0x2c1aa5[_0x406d6d(0x353)])return[];let _0x1888af={..._0x327753[_0x406d6d(0x3c4)]};_0x11befd[_0x406d6d(0x366)](_0xbd5fef=>{const _0x269d4e=_0x406d6d;let _0x32be32=_0x1888af[_0xbd5fef[_0x269d4e(0x44a)]];_0x32be32&&(_0x1888af[_0xbd5fef[_0x269d4e(0x44a)]]={..._0x32be32,'values':{..._0x32be32[_0x269d4e(0x33c)],..._0xbd5fef[_0x269d4e(0x33c)]}});});let _0x140d9b={..._0x327753,'records':_0x1888af},_0x34bbd2=[];return _0x2c1aa5[_0x406d6d(0x366)](_0x28606c=>{const _0xf75087=_0x406d6d;let _0x55486a=F(_0x327753,_0x28606c),_0x494728=F(_0x140d9b,_0x28606c);for(let [_0x3f9c71,_0x46e94b]of _0x494728[_0xf75087(0x4fc)]){let _0x56500a=_0x11befd[_0xf75087(0x29f)](_0x13f68d=>_0x13f68d[_0xf75087(0x44a)]===_0x3f9c71&&Object[_0xf75087(0x20f)][_0xf75087(0x465)]['call'](_0x13f68d[_0xf75087(0x33c)],_0x28606c));if(_0x55486a[_0xf75087(0x4fc)][_0xf75087(0x23e)](_0x3f9c71)!==_0x46e94b||_0x56500a)throw new j(Re(_0x46e94b));}_0x11befd['forEach'](_0x4a40e5=>{const _0x2b3962=_0xf75087;if(!Object['prototype']['hasOwnProperty']['call'](_0x4a40e5[_0x2b3962(0x33c)],_0x28606c))return;let _0x424d3e=_0x55486a[_0x2b3962(0x4a8)][_0x2b3962(0x23e)](_0x4a40e5[_0x2b3962(0x44a)])??null,_0x563bd2=_0x494728[_0x2b3962(0x4a8)][_0x2b3962(0x23e)](_0x4a40e5[_0x2b3962(0x44a)])??null;_0x424d3e!==_0x563bd2&&_0x34bbd2[_0x2b3962(0x254)]({'tableId':_0x327753['id'],'fieldId':_0x28606c,'recordId':_0x4a40e5[_0x2b3962(0x44a)],'oldParentRecordId':_0x424d3e,'parentRecordId':_0x563bd2});});}),_0x34bbd2;}function Le(_0x3a14db,_0x4d1e0f){const _0x3de4fd=_0x274f9f;let _0x28226d=_0x4d1e0f['map'](_0x5dce2c=>_0x5dce2c['id']);if(new Set(_0x28226d)[_0x3de4fd(0x43d)]!==_0x28226d[_0x3de4fd(0x353)]||_0x28226d[_0x3de4fd(0x29f)](_0x2c5d8d=>_0x3a14db[_0x3de4fd(0x3c4)][_0x2c5d8d]))return[];let _0x482fc8=Fe(_0x3a14db),_0xad5c0b=_0x482fc8[_0x3de4fd(0x353)]?null:P(_0x3a14db),_0x1512fc=[..._0x482fc8,..._0xad5c0b&&_0x4d1e0f['some'](_0x1b3d58=>Object[_0x3de4fd(0x20f)]['hasOwnProperty']['call'](_0x1b3d58[_0x3de4fd(0x33c)],_0xad5c0b))?[_0xad5c0b]:[]][_0x3de4fd(0x458)](_0x48387f=>_0x4d1e0f[_0x3de4fd(0x29f)](_0x278815=>Object[_0x3de4fd(0x20f)][_0x3de4fd(0x465)][_0x3de4fd(0x385)](_0x278815[_0x3de4fd(0x33c)],_0x48387f)));if(!_0x1512fc[_0x3de4fd(0x353)])return[];let _0x48ab1f={..._0x3a14db,'records':{..._0x3a14db['records'],...Object[_0x3de4fd(0x372)](_0x4d1e0f[_0x3de4fd(0x22e)](_0x1bd321=>[_0x1bd321['id'],_0x1bd321]))},'recordOrder':[..._0x3a14db[_0x3de4fd(0x4fd)]??[],..._0x4d1e0f[_0x3de4fd(0x22e)](_0x27a895=>_0x27a895['id'])]},_0x17d47b=[];return _0x1512fc['forEach'](_0x1df1f7=>{let _0x49c6bf=F(_0x48ab1f,_0x1df1f7);_0x4d1e0f['forEach'](_0x383d8c=>{const _0x1bdca1=_0x2f15;let _0x42861d=_0x49c6bf[_0x1bdca1(0x4fc)][_0x1bdca1(0x23e)](_0x383d8c['id']);if(_0x42861d)throw new j(Re(_0x42861d));let _0x7fa15c=_0x49c6bf[_0x1bdca1(0x4a8)][_0x1bdca1(0x23e)](_0x383d8c['id'])??null;_0x7fa15c&&_0x17d47b[_0x1bdca1(0x254)]({'tableId':_0x3a14db['id'],'fieldId':_0x1df1f7,'recordId':_0x383d8c['id'],'oldParentRecordId':null,'parentRecordId':_0x7fa15c});});}),_0x17d47b;}function Re(_0x1b2344){const _0xf1bf98=_0x274f9f;switch(_0x1b2344){case _0x29e4ba['MissingParent']:return _0xf1bf98(0x2ac);case _0x29e4ba[_0xf1bf98(0x390)]:return _0xf1bf98(0x1e5);case _0x29e4ba[_0xf1bf98(0x4c5)]:return _0xf1bf98(0x4b4);case _0x29e4ba[_0xf1bf98(0x4e8)]:return _0xf1bf98(0x250);}}function ze(_0x2b86e2,_0x40ab8b){const _0x36f40d=_0x274f9f;let _0x276a17=new Set(_0x40ab8b),_0x25788b=Fe(_0x2b86e2);return Object[_0x36f40d(0x33c)](_0x2b86e2[_0x36f40d(0x3c4)])[_0x36f40d(0x25e)](_0x427116=>_0x276a17[_0x36f40d(0x51e)](_0x427116['id'])?[]:Array['from'](_0x25788b)[_0x36f40d(0x25e)](_0x259156=>{const _0x541d64=_0x36f40d;let _0x1d87fa=we(_0x427116[_0x541d64(0x33c)][_0x259156])[0x0]??null;return _0x1d87fa&&_0x276a17[_0x541d64(0x51e)](_0x1d87fa)?[{'tableId':_0x2b86e2['id'],'fieldId':_0x259156,'recordId':_0x427116['id'],'oldParentRecordId':_0x1d87fa,'parentRecordId':null}]:[];}));}function F(_0xb617dd,_0x1fced9,_0x5d5541=_0xb617dd[_0x274f9f(0x4fd)]??Object['keys'](_0xb617dd['records'])){const _0x55f784=_0x274f9f;if(!(!_0xb617dd[_0x55f784(0x39f)][_0x1fced9]&&_0x1fced9===P(_0xb617dd))&&!M(_0xb617dd,_0x1fced9))throw Error(_0x55f784(0x49d)+_0x1fced9+_0x55f784(0x50c));let _0x12930c=Ue(_0xb617dd,_0x5d5541),_0x451661=new Map(),_0x2aebef=new Map();for(let _0x567132 of _0x12930c){var _0x3d54f0;let _0x2f076c=we((_0x3d54f0=_0xb617dd['records'][_0x567132])==null?void 0x0:_0x3d54f0[_0x55f784(0x33c)][_0x1fced9])[0x0]??null;_0x2f076c?_0x2f076c===_0x567132?(_0x451661[_0x55f784(0x317)](_0x567132,null),_0x2aebef[_0x55f784(0x317)](_0x567132,_0x29e4ba['SelfParent'])):_0xb617dd['records'][_0x2f076c]?_0x451661[_0x55f784(0x317)](_0x567132,_0x2f076c):(_0x451661['set'](_0x567132,null),_0x2aebef[_0x55f784(0x317)](_0x567132,_0x29e4ba['MissingParent'])):_0x451661[_0x55f784(0x317)](_0x567132,null);}We(_0x451661,_0x2aebef,_0x12930c),Ge(_0x451661,_0x2aebef,_0x12930c);let _0x12f0f6=new Map(_0x12930c[_0x55f784(0x22e)]((_0x1d6708,_0xe45d97)=>[_0x1d6708,_0xe45d97])),_0x30b13d=new Map();for(let _0x8506ab of _0x12930c){let _0x3b5934=_0x451661[_0x55f784(0x23e)](_0x8506ab)??null,_0x345921=_0x30b13d['get'](_0x3b5934)??[];_0x345921[_0x55f784(0x254)](_0x8506ab),_0x30b13d[_0x55f784(0x317)](_0x3b5934,_0x345921);}_0x30b13d[_0x55f784(0x366)](_0x52d728=>_0x52d728[_0x55f784(0x456)]((_0x70aa5c,_0x6d79d5)=>(_0x12f0f6[_0x55f784(0x23e)](_0x70aa5c)??0x0)-(_0x12f0f6[_0x55f784(0x23e)](_0x6d79d5)??0x0)));let _0x24ca01=_0x30b13d[_0x55f784(0x23e)](null)??[],_0x223536=new Map(),_0x19e7c5=new Map(),_0x47c7fa=[],_0x2e0862=(_0x35abbc,_0x2b3634)=>{const _0x3fbc77=_0x55f784;_0x223536[_0x3fbc77(0x317)](_0x35abbc,_0x2b3634),_0x47c7fa[_0x3fbc77(0x254)](_0x35abbc);let _0xe82f20=0x0;for(let _0x43c71d of _0x30b13d[_0x3fbc77(0x23e)](_0x35abbc)??[])_0xe82f20=Math[_0x3fbc77(0x3f9)](_0xe82f20,0x1+_0x2e0862(_0x43c71d,_0x2b3634+0x1));return _0x19e7c5[_0x3fbc77(0x317)](_0x35abbc,_0xe82f20),_0xe82f20;};return _0x24ca01[_0x55f784(0x366)](_0x24e4f9=>_0x2e0862(_0x24e4f9,0x0)),{'fieldId':_0x1fced9,'parentByRecordId':_0x451661,'childrenByParentId':_0x30b13d,'depthByRecordId':_0x223536,'subtreeHeightByRecordId':_0x19e7c5,'invalidReasonByRecordId':_0x2aebef,'rootRecordIds':_0x24ca01,'orderedRecordIds':_0x47c7fa};}function Be(_0x3aa80e,_0x14b732,_0x1b23e7=new Set(_0x14b732['map'](_0x7b2c8c=>_0x7b2c8c[_0x274f9f(0x44a)]))){const _0x68d30f=_0x274f9f;let _0x4bee4c=new Set(_0x1b23e7);for(let _0x2dd814 of _0x1b23e7){let _0x5a1ff1=_0x3aa80e['parentByRecordId'][_0x68d30f(0x23e)](_0x2dd814)??null;for(;_0x5a1ff1;)_0x4bee4c[_0x68d30f(0x4a3)](_0x5a1ff1),_0x5a1ff1=_0x3aa80e[_0x68d30f(0x4a8)][_0x68d30f(0x23e)](_0x5a1ff1)??null;}let _0x53fb8b=new Map(_0x14b732[_0x68d30f(0x22e)](_0x523137=>[_0x523137[_0x68d30f(0x44a)],_0x523137])),_0x2efa9d=_0x3aa80e[_0x68d30f(0x3b3)][_0x68d30f(0x458)](_0xfd0d3=>_0x4bee4c['has'](_0xfd0d3)),_0x5d74bf=_0x2efa9d[_0x68d30f(0x25e)](_0x26c6da=>{const _0x4c326c=_0x68d30f;let _0x3d5fb4=_0x53fb8b[_0x4c326c(0x23e)](_0x26c6da);return _0x3d5fb4?[_0x3d5fb4]:[];}),_0x57d541={};for(let _0x5e1919=0x0;_0x5e1919<_0x2efa9d[_0x68d30f(0x353)];_0x5e1919++){let _0x42235c=_0x2efa9d[_0x5e1919];_0x57d541[_0x42235c]={'recordId':_0x42235c,'parentRecordId':_0x3aa80e[_0x68d30f(0x4a8)][_0x68d30f(0x23e)](_0x42235c)??null,'depth':_0x3aa80e[_0x68d30f(0x26b)][_0x68d30f(0x23e)](_0x42235c)??0x0,'directChildCount':(_0x3aa80e['childrenByParentId'][_0x68d30f(0x23e)](_0x42235c)??[])[_0x68d30f(0x353)],'subtreeHeight':_0x3aa80e[_0x68d30f(0x4ad)][_0x68d30f(0x23e)](_0x42235c)??0x0,'subtreeEndIndex':_0x5e1919,'invalidReason':_0x3aa80e[_0x68d30f(0x4fc)][_0x68d30f(0x23e)](_0x42235c)};}let _0x1d3194=[];for(let _0x14b7e7=0x0;_0x14b7e7<_0x2efa9d[_0x68d30f(0x353)];_0x14b7e7++){let _0x2e7b14=_0x2efa9d[_0x14b7e7],_0xa15ce7=_0x57d541[_0x2e7b14][_0x68d30f(0x49e)];for(;_0x1d3194[_0x68d30f(0x353)]&&_0x1d3194[_0x1d3194[_0x68d30f(0x353)]-0x1]['depth']>=_0xa15ce7;){let _0x1eb1da=_0x1d3194['pop']();_0x57d541[_0x1eb1da[_0x68d30f(0x44a)]][_0x68d30f(0x20a)]=_0x14b7e7-0x1;}_0x1d3194['push']({'recordId':_0x2e7b14,'depth':_0xa15ce7});}return _0x1d3194[_0x68d30f(0x366)](({recordId:_0x2005d3})=>{const _0x22cece=_0x68d30f;_0x57d541[_0x2005d3][_0x22cece(0x20a)]=_0x2efa9d['length']-0x1;}),{'rows':_0x5d74bf,'hierarchy':{'fieldId':_0x3aa80e[_0x68d30f(0x419)],'rootRecordIds':_0x3aa80e[_0x68d30f(0x2f8)][_0x68d30f(0x458)](_0x11165d=>_0x4bee4c[_0x68d30f(0x51e)](_0x11165d)),'orderedRecordIds':_0x2efa9d,'nodes':_0x57d541}};}function Ve(_0x2d6245,_0x11510a){const _0x54e788=_0x274f9f;if(!_0x2d6245[_0x54e788(0x24a)]||!(_0x11510a!=null&&_0x11510a[_0x54e788(0x43d)]))return _0x2d6245[_0x54e788(0x522)];let _0x280737=[],_0x47e44d=0x0;for(;_0x47e44d<_0x2d6245[_0x54e788(0x522)][_0x54e788(0x353)];){let _0x458f00=_0x2d6245[_0x54e788(0x522)][_0x47e44d];_0x280737[_0x54e788(0x254)](_0x458f00);let _0xa2eece=_0x2d6245['hierarchy'][_0x54e788(0x23d)][_0x458f00[_0x54e788(0x44a)]];_0x47e44d=_0x11510a[_0x54e788(0x51e)](_0x458f00[_0x54e788(0x44a)])&&_0xa2eece?_0xa2eece[_0x54e788(0x20a)]+0x1:_0x47e44d+0x1;}return _0x280737;}function He(_0x4bd9b2,_0x3d9151,_0x14c267){const _0x140059=_0x274f9f;if(!_0x14c267)return{'valid':!0x0};if(_0x3d9151===_0x14c267)return{'valid':!0x1,'reason':_0x29e4ba[_0x140059(0x390)]};let _0x2aafbc=_0x14c267;for(;_0x2aafbc;){if(_0x2aafbc===_0x3d9151)return{'valid':!0x1,'reason':_0x29e4ba[_0x140059(0x4c5)]};_0x2aafbc=_0x4bd9b2[_0x140059(0x4a8)][_0x140059(0x23e)](_0x2aafbc)??null;}return(_0x4bd9b2[_0x140059(0x26b)][_0x140059(0x23e)](_0x14c267)??0x0)+0x1+(_0x4bd9b2[_0x140059(0x4ad)][_0x140059(0x23e)](_0x3d9151)??0x0)>=0x5?{'valid':!0x1,'reason':_0x29e4ba[_0x140059(0x4e8)]}:{'valid':!0x0};}function Ue(_0x28fcf2,_0x59b10d){const _0x57fd49=_0x274f9f;let _0x13e048=new Set(),_0x456ae9=[];for(let _0x4aac3d of _0x59b10d)_0x28fcf2[_0x57fd49(0x3c4)][_0x4aac3d]&&!_0x13e048['has'](_0x4aac3d)&&(_0x13e048[_0x57fd49(0x4a3)](_0x4aac3d),_0x456ae9[_0x57fd49(0x254)](_0x4aac3d));return Object[_0x57fd49(0x311)](_0x28fcf2[_0x57fd49(0x3c4)])[_0x57fd49(0x456)]()[_0x57fd49(0x366)](_0x17c573=>{const _0x2161aa=_0x57fd49;_0x13e048['has'](_0x17c573)||_0x456ae9[_0x2161aa(0x254)](_0x17c573);}),_0x456ae9;}function _0x42e6(){const _0x176874=['view-','base.command.set-base-view-field-visible','MultiSelect','validate','NumberFormat','_cellInvalidations','system','cell','Facade','_getSystemFieldValue','mark','ena','groups','yyyy/mm/dd','decorate','trigger','orderedRecordIds','changeFieldType','Set','_applyFormulaResult','Done','setBasePermission','getProjection','readonly','url','viewOrder','periodComma','base.command.duplicate-base-field','getUTCMonth','duplicateField','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','empty','setHours','records','_resolveGalleryCardFieldIds','string','renameTable','createBase','_removeSuperTables','\x20must\x20be\x20an\x20object.','decimalPlaces','invalidateByField','BaseProjection.projectGroups','_getTableRevision','fld-','doing','[BaseCommandService]:\x20cannot\x20delete\x20field.','IS_NOT_EMPTY','_recordPermissions','pushUndoRedo','allowDangling','undo','Kanban','workingDaysOnly','getTypePlugin','updatedAt','_projectGroups','Delete','getSuperTableRegistrations','_capabilities','exceptions','resolve','defineProperty','base.command.create-base-child-record','ruleId','fieldIds','small','_fieldRegistry','base.command.rename-base-table','timeZone','base.command.set-base-view-sort','cardSize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_canUseFastSort','renameView','End\x20date','titleFieldId','_toDirtyRangePatch','UNIVER_BASE','filled','lastIndexOf','_normalizeCalendarDisplayColor','createField','base.command.move-base-hierarchy-record','getTypeOfUnitDisposed$','dateFormat','max','#,##0.00','dispose','usableAsGanttEnd','key','bases.fieldConfig.linkPlaceholder','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','conditions','operator','invalid','_tablePermissions','\x20has\x20unsupported\x20date\x20mode\x20\x22','http:','register','[BaseCommandService]:\x20cannot\x20edit\x20cell.','_replaceOptional','canEditCell','_tableRevisions','-view-grid','padStart','Gantt','workingDays','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','includeRecords','_formulaCalculationTriggerService','registerCommand','base.command.delete-base-record','Undo','globalRevision','true','end','hidden','fieldId','9oxcUwb','unshift',':start','_setViewFieldSetting','@univerjs-pro/bases','Name','start','syncExecuteCommand','raw','markResultApplied','base.command.service','_resolveCardTitleFieldId','base.command.move-base-field','config','True','before','[BaseField]:\x20invalid\x20person\x20value.','createDefaultValue','_normalizeCalendarConfig','resources','column','value','YYYY-MM-DD','canManageView','invalidField','_isNonEmptyCellValue','cellData','getUnitId','_buildGantt','3535248MVmKpy','pickerFieldIds','_setFormulaFieldCells','currencySymbol','_getJson1DirtyData','missingField','size','Number','base.viewType.calendar','tableRevision','bases.config','sortedView','isNot','displayFieldId','#,##0','YYYY/MM/DD','setViewFieldVisible','getAllUnitsForType','_projectionCache','recordId','Date','attachmentSet','Checkbox','SortedView','updateViewConfig','1042865ctZHwr','isValid','user','Currency','\x22.\x20Allowed\x20operators:\x20','kanban','sort','_createRecordOrderOp','filter','frozenFieldCount','getTime','_factory','disposeWithMe','BOOLEAN','_normalizeCellValue','greaterThanOrEqual','Clear','invalidDateField','getUnit','https:','_globalRevision','hasOwnProperty','[BaseCommandService]:\x20invalid\x20cell\x20value.','setRangeValues','base.command.update-base-cell','path','record','_univerInstanceService','_isKanbanGroupField','registerSyncingMutations','average','embedId','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','pattern','\x22\x20with\x20field\x20type\x20\x22','Empty','_activeDirtyManagerService','exact','_kanbanGroupKeys','forValue','__UNIVER_BASE_PERF__','createDefaultConfig','fieldOrder','10266fbrLBl','rowId','_filterSortFieldIds','_buildCalendar','_createNumberingAllocator','False','getDependencies','subscribe','format','blue','_groupCellInvalidations','attachments','today','_formulaSyncQueue','Doing','_getCachedProjection','join','month','h24','_withModifiedSystemValues','base.mutation.apply-base-json1','viewId','reduce','getInstance','10575900VwpmZE','createTable','_createNumberingFieldValuePatches','base.resource.service','deleteRecord','sheetId','apply','unitOtherData','Checked','renameFormulaUnitReferences','[BaseHierarchy]:\x20field\x20\x22','depth','selectField','Grid','_plugins','_scheduleSuperTableSync','add','DESC','targetTableId','past30','options','parentByRecordId','[BaseCommandService]:\x20invalid\x20field\x20definition.','createView','tableOrder','CreatedBy','subtreeHeightByRecordId','getFullYear','_initDataSync','_initDependencies','next30','InvalidField','number','cycle','after','Add','limit','includeTime','colIndex','_fieldPermissions','unitId','registerTable','colId','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','todo','createRegExpFromSafeFragment','notContains','[BaseFormula]:\x20field\x20\x22','_title','Cycle','check','[DeleteBaseTableCommand]:\x20table\x20\x22','unitWidth','[BaseField]:\x20invalid\x20email\x20value.','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','card','gantt','_buildKanban','setViewSort','custom','createSuperTableReference','_normalizeGalleryConfig','showFieldNames','_initRegistries','revision','unitData',',,\x22M\x22','_rowTransformCacheSegment','\x20cannot\x20use\x20operator\x20\x22','parentRecordId','year','getCapabilities','at\x20index\x20','[BaseProjectionService]:\x20missing\x20view\x20\x22','_commandService','now','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','contains','manual','lastMonth','base.command.update-base-view-config','Calendar','field','[BaseField]:\x20invalid\x20multi-value\x20reference.','MaxDepth','level','every','_getStructureDirtyTableIds','GREATER_THAN','boolean','toPrimitive','_onCommandExecuted','useThousands','round','#FDE68A','attachment-','https://','fieldName','percent','getUTCFullYear','_projectTableRows','_dataSyncPrimaryController','endsWith','base.field-registry.service','invalidReasonByRecordId','recordOrder','startDateFieldId','min','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','multiple','indexOf','_scheduledSuperTableSyncs','createCreateFieldOp','label','[BaseViewRegistryService]:\x20view\x20type\x20\x22','BaseProjection.getProjection','compose','_syncBaseUnit','params','base.command.create-base-field','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','target','_groupConfigCacheSegment','\x20has\x20unsupported\x20operator\x20\x22','invertWithDoc','_resolveKanbanCoverFieldId','columns','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','7256501LRktcr','uniqueTableName','_views','#3b82f6','\x22\x20does\x20not\x20exist.','index','1.0.0-beta.0','_patchProjectedRowsForCellInvalidations','slice','medium','has','[BaseField]:\x20invalid\x20rating\x20value.','splice','cardLayout','rows','deepClone','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','Formula','short','_applier','operand','tables','none','_sortRows','h:mm\x20a','includes','_getKanbanConfiguredLanes',',\x22K\x22','count','base.command.move-base-view','edit','off','getAll','setBaseName','[BaseCommandService]:\x20cannot\x20create\x20table.','AFTER','cellRevision','dependencyFieldId','focusUnit','hostAnchorId','_baseSyncDisposables','userID','color','\x22\x20is\x20referenced\x20by\x20','selfParent','option-','createRecords','descendPath','COMMAND','LESS_THAN','repeat','_initCommands','createUnit','isFinite','_cellRevisions','invalidateByOp','constructor','getStructuredDependencies','_getHierarchyIndex','clear','isInteger','_hierarchyIndexCache','startsWith','createUpdateCellOp','Group','_createRecordWithDefaults','Gallery','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','children','localeCompare','insertOp','assign','leftPaneWidth','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','diffValue','BaseHierarchyError','dateMode','[RecordLink]:\x20field\x20config\x20is\x20invalid.','viewRevision','toLowerCase','abbreviation','subtreeEndIndex','allowMultiple','_enqueueFormulaSync','RecordId','[BaseField]:\x20invalid\x20progress\x20value.','prototype','coverFieldId','WriteCursor','setSnapshot','split','canDeleteField','patches','createSetRecordValuesOp','recordPatch','BaseProjection.projectRows','_isAllDayCalendarEvent','_bumpTableRevision','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','invalidateByCell','valueOf','separatorStyle','IBaseCellData.ensureTableCellLayout','_isGanttDateField','query','MM-DD','_findCalendarDateFieldId','_projectedRowsCache','_kanbanLaneTitle','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','createBatchCreateRecordsOp','star','baseRows','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','lessThanOrEqual','findIndex','views','map','_getCurrentUserId','major-','registerSuperTable','locale','[BaseCommandService]:\x20cannot\x20create\x20record.','base.command.update-base-field','registerView','setViewFieldOrder','usableAsCalendarDate','Start\x20date','en-US','base.command.set-base-name','#16a34a','changed','nodes','get','displayText','allowNegative','Remote','BaseProjection.filterAndSortRows','fieldSettings','symbol','canEditField','direction','progressFieldId','name','Todo','hierarchy','_getAllBaseDependencyTreeCacheMap','RecordLink','MUTATION','Numbering','day','maxDepth','order','base.command.delete-base-table','relationRole','push','lessThan','base.viewType.gallery','reason','table','Rating','displayColor','deleteField','endDateFieldId','_isAllowedKanbanGroupField','flatMap','createCreateRecordOp','base.command.ensure-base-temporal-view-date-fields','import','_assertFieldDefinition','yesterday','row','base.command.set-base-table-hierarchy-field','regenerateViewIds','Text','normal','rowIndex','moveView','depthByRecordId','rules','info','removeOp','canCreateField','formula.mutation.set-formula-calculation-result','find','source','lastIndex','_apply','_runtimeContext','person','updateRecordOrder','UpdatedBy','updateField','createRecord','[RecordLink]:\x20target\x20record\x20\x22','BaseProjection.materializeTableRows','date','canDeleteTable','setRecordValues','orderKey','onCommandExecuted','SingleSelect','_kanbanLaneColor','800234neEdeY','_groupsCacheKey','_matchesGanttColorRule','base.command.set-base-record-values','version','_groupProjectionFieldIds','autoIncrement','_initialize','_resolveGalleryCoverFieldId','base.command.update-base-record-order','_permissionService','Status','_getCellRevision','description','done','fromPlainText','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','[BasePerf]\x20','recordNamePrefix','setViewFilter','Progress','score','base.command.change-base-field-type','local','_buildGrid','_setCachedProjection','tableName','some','_normalizeGanttDisplayColor','__tempBatchingUndoRedo','unique','STRING','from','executeCommand','test','[BaseField]:\x20invalid\x20checkbox\x20value.','finally','href','base.command.rename-base-view','registerCtorForType','missingRecord','_formulaCalculationSessionService','getAllBases','__all__','\x20must\x20have\x20a\x20non-empty\x20id.','code','_isAllDayGanttDateRange','updatedBy','unknown','greaterThan','stringify','base.viewType.kanban','getDay','type','trim','spacePeriod','beforeViewId','_getViewRevision','invalidGroupField','CONTAINS','showTodayLine','Email','search','formula','getItem','setRecordPermission','invertOp','__base_hierarchy_parent__','NUMBER','_viewRevisionKey','getUTCDate','Import','UTC','_projectedGroupsCache','resolvedOptions','createViewId','getSnapshot','leftPaneCollapsed','HH:mm','invalidGanttStartField','entries','_isColorfulKanbanGroupField','thisWeek','text','scale','_projectRows','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','primaryFieldId','_projectedViewRowsCache','[BaseFormula]:\x20table\x20\x22','_config','UpdatedAt','MMM\x20D,\x20YYYY','Unchecked','replaceOp','parentFieldName','[BaseField]:\x20invalid\x20phone\x20value.','isEmpty','groupFieldId','BEFORE','editable','_resolveCalendarDateFieldId','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','canDeleteRecord','clearRecordPermission','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','deleteTable','delete','general','abs','_viewRevisions','attachmentSets','base.command.delete-base-field','_fastSortRows','IS_EMPTY','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','rootRecordIds','FieldId','Link','formatToParts','childType','base.command.update-base-kanban-config','2770cMECpE','setFieldPermission','Parent\x20Items','getAffectedRanges','_calendarEventColor','exception-','_isCalendarDateField',':end','_viewRowsCacheKey','[BaseCommandService]:\x20cannot\x20manage\x20view.','base.projection.service','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','fieldIndex','spaceComma','repairViewConfig','[RecordLink]:\x20display\x20field\x20\x22','base.command.set-base-view-field-order','decimal','_configService','keys','calendar','_projectHierarchyGroups','object','canCreateRecord','recordIds','set','function','defaultValue','setViewGroup','oldParentRecordId','_basePermissions','duplicateRecord','Attachment','createdAt','Yes','#14b8a6','usableAsCardCover','[BaseCommandService]:\x20cannot\x20edit\x20field.','pop','getMonth','attachment','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.',',,,\x22B\x22','updateCell','_cellInvalidationsTouchFields','setConfig','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','conjunction','_createSystemFieldValuePatches','_formulaService','_getTablesToNormalize','base.command.set-base-view-field-width','moveField','base.permission.service','precision','embed-ui','BASE','_materializeGroups','DD/MM/YYYY','_registeredSuperTableNames','view','isNaN','values','Person','9291544Idnfgh','CreatedAt','Working\x20day','beforeFieldId','ascend','packageName','editCell','remove','conditionalColoring','applyOp','BaseJson1.normalizeTables','pluginName','remote','[BaseCommandService]:\x20field\x20\x22','_ganttBarColor','_findKanbanGroupField','canCreateTable','getTypeOfUnitAdded$','colorFieldId','_setAttachmentResources','valid','length','rowIndexById','col','getOwnPropertyDescriptor','long','_injector','[BaseCommandService]:\x20cannot\x20delete\x20table.','matchAll','width','_buildGallery','onReady','deleteView','weekdays','_patchCachedProjectedRows','base.command.create-base-view','columnSettings','snapshot','base.command.batch-create-base-records','#BFDBFE','forEach','viewIndexes','base.command.update-base-view-conditional-color-rules','Uncategorized','error','REMOTE_BASES_PLUGIN','_resolveGanttDateFieldId','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_resolveKanbanGroupFieldId','base.command.delete-base-view','createdBy','rule','fromEntries','then','working','MissingRecord','_createNumberingAllocators','majorHeaders','base.command.update-base-field-description','_resolveKanbanCardFieldIds','_applyingFormulaResults','h12','afterFieldId','BASES_PLUGIN','tableId','redo','[BaseCommandService]:\x20cannot\x20create\x20field.','past7','commaPeriod','bases.fieldConfig.textPlaceholder','hourCycle','call','replace','deleteRecords','conditional','BaseJson1.cloneForOp','numfmt','getUTCDay','Parent','_getAllTableIds','Failed\x20to\x20create\x20update\x20cell\x20operation:','_cacheKey','SelfParent','title','mode','_normalizeGanttConfig','group','IS_NOT','FORCE_STRING','thisMonth','_projectFields','_filterRows','quarter','_deleteAttachmentResources','timeslotSize','sum','isArray','fields','setViewFieldWidth','_syncSuperTables','week'];_0x42e6=function(){return _0x176874;};return _0x42e6();}function We(_0x4eb7ac,_0x291261,_0x329ec4){const _0xdeb20=_0x274f9f;let _0x19e1cf=new Set();for(let _0xc58bc4 of _0x329ec4){if(_0x19e1cf[_0xdeb20(0x51e)](_0xc58bc4))continue;let _0x1140ad=[],_0x4bd27b=new Map(),_0x38b0da=_0xc58bc4;for(;_0x38b0da&&!_0x19e1cf[_0xdeb20(0x51e)](_0x38b0da);){let _0x377d7b=_0x4bd27b['get'](_0x38b0da);if(_0x377d7b!=null){let _0x28dff0=[..._0x1140ad['slice'](_0x377d7b)][_0xdeb20(0x456)]()[_0xdeb20(0x324)]();_0x4eb7ac[_0xdeb20(0x317)](_0x28dff0,null),_0x291261['set'](_0x28dff0,_0x29e4ba['Cycle']);break;}_0x4bd27b['set'](_0x38b0da,_0x1140ad[_0xdeb20(0x353)]),_0x1140ad['push'](_0x38b0da),_0x38b0da=_0x4eb7ac['get'](_0x38b0da)??null;}_0x1140ad[_0xdeb20(0x366)](_0x2e7c24=>_0x19e1cf[_0xdeb20(0x4a3)](_0x2e7c24));}}function Ge(_0x2acf6f,_0x3a6d3d,_0x2005e3){const _0x2bc04e=_0x274f9f;let _0x1d08dd=new Map(),_0x3ce2df=_0x1f7501=>{const _0x344af3=_0x2f15;let _0x287485=_0x1d08dd[_0x344af3(0x23e)](_0x1f7501);if(_0x287485!=null)return _0x287485;let _0x21043f=_0x2acf6f['get'](_0x1f7501)??null;if(!_0x21043f)return _0x1d08dd['set'](_0x1f7501,0x0),0x0;let _0x53de52=_0x3ce2df(_0x21043f)+0x1;return _0x53de52>=0x5?(_0x2acf6f[_0x344af3(0x317)](_0x1f7501,null),_0x3a6d3d[_0x344af3(0x317)](_0x1f7501,_0x29e4ba[_0x344af3(0x4e8)]),_0x1d08dd['set'](_0x1f7501,0x0),0x0):(_0x1d08dd[_0x344af3(0x317)](_0x1f7501,_0x53de52),_0x53de52);};_0x2005e3[_0x2bc04e(0x366)](_0x3ce2df);}let Ke=0x0;function qe(){const _0x344812=_0x274f9f;if(globalThis[_0x344812(0x478)]===!0x0)return!0x0;try{let _0x205cf8=typeof location>'u'?'':location[_0x344812(0x2c2)],_0x5d4d87=new URLSearchParams(_0x205cf8);if(_0x5d4d87['get']('basePerf')==='1'||_0x5d4d87[_0x344812(0x23e)]('basePerf')===_0x344812(0x416)||_0x5d4d87[_0x344812(0x23e)]('base-perf')==='1')return!0x0;}catch{}try{let _0x5ef91b=typeof localStorage>'u'?null:localStorage[_0x344812(0x2c4)]('univer.basePerf');return _0x5ef91b==='1'||_0x5ef91b===_0x344812(0x416);}catch{return!0x1;}}function I(_0x4a4fff,_0x5a7b52,_0xbe9b14){const _0x1e7971=_0x274f9f;if(!qe())return _0x5a7b52();let _0x2b4c65=Ye(),_0x1ec17b='base-perf-'+Ke++;Xe(_0x1ec17b+_0x1e7971(0x41c));try{return _0x5a7b52();}finally{let _0x2fd4b6=Ye()-_0x2b4c65;Xe(_0x1ec17b+':end'),Ze(_0x4a4fff,_0x1ec17b+':start',_0x1ec17b+_0x1e7971(0x305)),Je(_0x4a4fff,_0x2fd4b6,_0xbe9b14);}}function Je(_0x14d590,_0x44799b,_0x5bd5a8){const _0x5d5d55=_0x274f9f;if(!qe())return;let _0x56759a=Math[_0x5d5d55(0x4f1)](_0x44799b*0x64)/0x64,_0x493b2f=_0x5bd5a8&&Object[_0x5d5d55(0x311)](_0x5bd5a8)[_0x5d5d55(0x353)]?'\x20'+JSON['stringify'](_0x5bd5a8):'';console[_0x5d5d55(0x26d)](_0x5d5d55(0x295)+_0x14d590+':\x20'+_0x56759a+'ms'+_0x493b2f);}function Ye(){const _0x548b15=_0x274f9f;return typeof performance<'u'&&typeof performance[_0x548b15(0x4df)]==_0x548b15(0x318)?performance['now']():Date[_0x548b15(0x4df)]();}function Xe(_0x5c855b){const _0x3f0662=_0x274f9f;try{if(typeof performance<'u'){var _0x36d426,_0x46d42b;(_0x36d426=(_0x46d42b=performance)[_0x3f0662(0x3ad)])==null||_0x36d426[_0x3f0662(0x385)](_0x46d42b,_0x5c855b);}}catch{}}function Ze(_0xf4b532,_0x4e6921,_0x5b78b8){const _0x550581=_0x274f9f;try{if(typeof performance<'u'){var _0x44f5eb,_0x2f5a92;(_0x44f5eb=(_0x2f5a92=performance)['measure'])==null||_0x44f5eb['call'](_0x2f5a92,_0x550581(0x295)+_0xf4b532,_0x4e6921,_0x5b78b8);}}catch{}}function L(_0x4cc105){const _0xc516c=_0x274f9f;var _0x43b738;return qe()?I(_0xc516c(0x21f),()=>Qe(_0x4cc105),{'tableId':_0x4cc105['id'],'records':Object[_0xc516c(0x311)](_0x4cc105['records']??{})[_0xc516c(0x353)],'fields':_0x4cc105[_0xc516c(0x47a)][_0xc516c(0x353)],'hasRecordOrder':!!((_0x43b738=_0x4cc105[_0xc516c(0x4fd)])!=null&&_0x43b738[_0xc516c(0x353)])}):Qe(_0x4cc105);}function Qe(_0x139b35){const _0x24f4e4=_0x274f9f;var _0x13687b;let _0x4baa84=_0x139b35[_0x24f4e4(0x3c4)]??{},_0x5b98df=_0x139b35[_0x24f4e4(0x39f)]??{},_0x5c1e54=((_0x13687b=_0x139b35[_0x24f4e4(0x4fd)])==null?void 0x0:_0x13687b[_0x24f4e4(0x458)](_0x1955c3=>_0x4baa84[_0x1955c3]))??[],_0x5a01ac=new Set(_0x5c1e54),_0xbcb3a9=[];for(let _0x3b8e66 of Object['values'](_0x4baa84))_0x5a01ac[_0x24f4e4(0x51e)](_0x3b8e66['id'])||_0xbcb3a9[_0x24f4e4(0x254)](_0x3b8e66);let _0x547bd9=_0xbcb3a9[_0x24f4e4(0x353)]?[..._0x5c1e54,...bt(_0xbcb3a9)]:_0x5c1e54,_0x4a8441=_0x139b35['fieldOrder']['filter'](_0x537a3c=>_0x5b98df[_0x537a3c]),_0x5f318b={..._0x139b35['rowId']??{}},_0x468e5c={..._0x139b35[_0x24f4e4(0x4bd)]??{}},_0x1b4a31={..._0x139b35[_0x24f4e4(0x434)]??{}};_0x139b35[_0x24f4e4(0x4fd)]=_0x547bd9,_0x139b35[_0x24f4e4(0x269)]={},_0x139b35[_0x24f4e4(0x47c)]={},_0x139b35[_0x24f4e4(0x4b9)]={},_0x139b35['colId']={},_0x139b35[_0x24f4e4(0x434)]={},_0x139b35[_0x24f4e4(0x42d)]={..._0x139b35['resources']??{}},_0x139b35['resources'][_0x24f4e4(0x2f3)]={..._0x139b35[_0x24f4e4(0x42d)][_0x24f4e4(0x2f3)]??{}},_0x139b35[_0x24f4e4(0x42d)][_0x24f4e4(0x486)]={..._0x139b35[_0x24f4e4(0x42d)][_0x24f4e4(0x486)]??{}};let _0x4e73d4=_0x139b35['rowIndex'],_0x14b5d7=_0x139b35[_0x24f4e4(0x47c)],_0x5afb0a=_0x139b35[_0x24f4e4(0x4b9)],_0x14d00d=_0x139b35['colId'],_0x3846e8=_0x139b35[_0x24f4e4(0x434)];return _0x547bd9['forEach']((_0x3d2276,_0x3467e3)=>{_0x4e73d4[_0x3d2276]=_0x3467e3,_0x14b5d7[_0x3467e3]=_0x3d2276;}),_0x4a8441[_0x24f4e4(0x366)]((_0x5c1e10,_0x26aaa1)=>{_0x5afb0a[_0x5c1e10]=_0x26aaa1,_0x14d00d[_0x26aaa1]=_0x5c1e10;}),Object[_0x24f4e4(0x2d4)](_0x1b4a31)[_0x24f4e4(0x366)](([_0xd2e695,_0x250da7])=>{const _0x22db2a=_0x24f4e4;let _0x21f16f=Number(_0xd2e695),_0x308572=_0x5f318b[_0x21f16f]??_0x547bd9[_0x21f16f],_0x53d804=_0x308572?_0x4e73d4[_0x308572]:void 0x0;_0x53d804!=null&&(_0x3846e8[_0x53d804]={..._0x3846e8[_0x53d804]??{}},Object[_0x22db2a(0x2d4)](_0x250da7??{})[_0x22db2a(0x366)](([_0x44b714,_0x37daf8])=>{let _0x505689=Number(_0x44b714),_0x3063ed=_0x468e5c[_0x505689]??_0x4a8441[_0x505689],_0x505ac5=_0x3063ed?_0x5afb0a[_0x3063ed]:void 0x0;_0x505ac5!=null&&(_0x3846e8[_0x53d804][_0x505ac5]=ot(_0x37daf8));}));}),Object[_0x24f4e4(0x33c)](_0x4baa84)['forEach'](_0x2b4fc1=>{const _0x32b99e=_0x24f4e4;let _0x64126b=_0x4e73d4[_0x2b4fc1['id']];_0x64126b!=null&&(_0x2b4fc1[_0x32b99e(0x33c)]={..._0x2b4fc1[_0x32b99e(0x33c)]??{},[_0x525439]:_0x2b4fc1['id']},_0x3846e8[_0x64126b]={..._0x3846e8[_0x64126b]??{},0x0:{'v':_0x2b4fc1['id'],'t':_0x332e7b[_0x32b99e(0x2a3)]}},Object[_0x32b99e(0x2d4)](_0x2b4fc1[_0x32b99e(0x33c)]??{})[_0x32b99e(0x366)](([_0xd97dee,_0x1ae87b])=>{const _0x8ccca0=_0x32b99e;let _0x123fe3=_0x5b98df[_0xd97dee];(_0x123fe3==null?void 0x0:_0x123fe3['type'])===_0x11438e[_0x8ccca0(0x31e)]&&dt(_0x139b35,_0x2b4fc1['id'],_0xd97dee,_0x1ae87b);let _0xd9c117=_0x5afb0a[_0xd97dee];if(_0xd9c117==null)return;let _0x2f20b=_0x3846e8[_0x64126b][_0xd9c117];if(_0x2f20b!=null){ht(_0x2f20b,_0x123fe3,_0x1ae87b)&&(_0x3846e8[_0x64126b][_0xd9c117]=at(_0x1ae87b,_0x123fe3));return;}_0x3846e8[_0x64126b][_0xd9c117]=at(_0x1ae87b,_0x123fe3);}));}),_0x139b35;}function $e(_0x19d477){const _0x130fa9=_0x274f9f;return L(_0x19d477),Object[_0x130fa9(0x2d4)](_0x19d477[_0x130fa9(0x47c)]??{})[_0x130fa9(0x366)](([_0x31d14f,_0xfdf61c])=>{const _0x91c0ac=_0x130fa9;var _0x2b4800;let _0x39aefe=Number(_0x31d14f),_0x13ddf9=_0x19d477[_0x91c0ac(0x3c4)][_0xfdf61c];_0x13ddf9&&(_0x13ddf9['values']={..._0x13ddf9[_0x91c0ac(0x33c)]??{}},Object[_0x91c0ac(0x2d4)](((_0x2b4800=_0x19d477[_0x91c0ac(0x434)])==null?void 0x0:_0x2b4800[_0x39aefe])??{})[_0x91c0ac(0x366)](([_0x23731a,_0x17c10c])=>{const _0x4df3f1=_0x91c0ac;var _0x46805e;let _0x1e53fc=(_0x46805e=_0x19d477[_0x4df3f1(0x4bd)])==null?void 0x0:_0x46805e[Number(_0x23731a)];_0x1e53fc===_0x525439?_0x13ddf9[_0x4df3f1(0x33c)][_0x525439]=_0x13ddf9['id']:_0x1e53fc&&(_0x13ddf9[_0x4df3f1(0x33c)][_0x1e53fc]=st(_0x17c10c,_0x19d477[_0x4df3f1(0x39f)][_0x1e53fc],_0x19d477,_0xfdf61c));}));}),_0x19d477;}function et(_0x488438,_0x3a7f97){const _0x4df523=_0x274f9f;for(let {row:_0x10d6b7,col:_0x1bf170}of _0x3a7f97){var _0x13b1d0,_0x2b2768,_0x1e8cfc;let _0x1d7b30=(_0x13b1d0=_0x488438[_0x4df523(0x47c)])==null?void 0x0:_0x13b1d0[_0x10d6b7],_0x25c9b9=(_0x2b2768=_0x488438[_0x4df523(0x4bd)])==null?void 0x0:_0x2b2768[_0x1bf170],_0x2e2ebe=_0x1d7b30?_0x488438[_0x4df523(0x3c4)][_0x1d7b30]:void 0x0;if(!_0x2e2ebe||!_0x25c9b9)continue;if(_0x25c9b9===_0x525439){_0x2e2ebe[_0x4df523(0x33c)][_0x525439]=_0x2e2ebe['id'];continue;}let _0x88a9db=(_0x1e8cfc=_0x488438[_0x4df523(0x434)])==null||(_0x1e8cfc=_0x1e8cfc[_0x10d6b7])==null?void 0x0:_0x1e8cfc[_0x1bf170];_0x88a9db==null&&!Object[_0x4df523(0x20f)]['hasOwnProperty'][_0x4df523(0x385)](_0x2e2ebe[_0x4df523(0x33c)]??{},_0x25c9b9)||(_0x2e2ebe['values']={..._0x2e2ebe['values']??{}},_0x2e2ebe[_0x4df523(0x33c)][_0x25c9b9]=st(_0x88a9db,_0x488438[_0x4df523(0x39f)][_0x25c9b9],_0x488438,_0x1d7b30));}return _0x488438;}function tt(_0x116a67,_0x157a56,_0x467859){const _0x320e68=_0x274f9f;var _0x19c933,_0x21e41a,_0x36cf13,_0x59fdce,_0x167d98,_0x1b7488;let _0x3356e2=(_0x19c933=_0x116a67[_0x320e68(0x269)])==null?void 0x0:_0x19c933[_0x157a56],_0x464838=(_0x21e41a=_0x116a67[_0x320e68(0x4b9)])==null?void 0x0:_0x21e41a[_0x467859];if(_0x3356e2!=null&&_0x464838!=null&&((_0x36cf13=_0x116a67['rowId'])==null?void 0x0:_0x36cf13[_0x3356e2])===_0x157a56&&((_0x59fdce=_0x116a67[_0x320e68(0x4bd)])==null?void 0x0:_0x59fdce[_0x464838])===_0x467859)return{'row':_0x3356e2,'col':_0x464838};let _0xcb0281=L(_0x116a67),_0xeaea3d=(_0x167d98=_0xcb0281[_0x320e68(0x269)])==null?void 0x0:_0x167d98[_0x157a56],_0x2bf2dc=(_0x1b7488=_0xcb0281['colIndex'])==null?void 0x0:_0x1b7488[_0x467859];return _0xeaea3d==null||_0x2bf2dc==null?null:{'row':_0xeaea3d,'col':_0x2bf2dc};}function nt(_0x35c751,_0x44037a,_0x25262f){const _0x290ba5=_0x274f9f;var _0x5b455d;let _0x1c5d39=tt(_0x35c751,_0x44037a,_0x25262f);if(_0x1c5d39)return(_0x5b455d=_0x35c751[_0x290ba5(0x434)])==null||(_0x5b455d=_0x5b455d[_0x1c5d39[_0x290ba5(0x264)]])==null?void 0x0:_0x5b455d[_0x1c5d39[_0x290ba5(0x355)]];}function rt(_0x361c50,_0x509cd0,_0x380de2){const _0x5e71e5=_0x274f9f;var _0x3d3b35;let _0x3905d7=nt(_0x361c50,_0x509cd0,_0x380de2),_0x149e42=_0x361c50[_0x5e71e5(0x39f)][_0x380de2];if((_0x149e42==null?void 0x0:_0x149e42['type'])===_0x11438e[_0x5e71e5(0x31e)]){var _0x37bcdd;return ft(_0x361c50,_0x509cd0,_0x380de2)??pt((_0x37bcdd=_0x361c50[_0x5e71e5(0x3c4)][_0x509cd0])==null||(_0x37bcdd=_0x37bcdd[_0x5e71e5(0x33c)])==null?void 0x0:_0x37bcdd[_0x380de2]);}if(gt(_0x149e42)||(_0x149e42==null?void 0x0:_0x149e42['type'])===_0x11438e[_0x5e71e5(0x2fa)]){var _0x294846;let _0x471da1=(_0x294846=_0x361c50[_0x5e71e5(0x3c4)][_0x509cd0])==null||(_0x294846=_0x294846['values'])==null?void 0x0:_0x294846[_0x380de2];return _0x471da1!=null&&_0x471da1!==''?mt(_0x471da1,_0x149e42):st(_0x3905d7,_0x149e42,_0x361c50,_0x509cd0);}return _0x3905d7&&Object[_0x5e71e5(0x20f)][_0x5e71e5(0x465)]['call'](_0x3905d7,'v')?_0x3905d7['v']??null:((_0x3d3b35=_0x361c50['records'][_0x509cd0])==null||(_0x3d3b35=_0x3d3b35[_0x5e71e5(0x33c)])==null?void 0x0:_0x3d3b35[_0x380de2])??null;}function it(_0x545162,_0x5b58c8,_0x47930a){const _0x531c84=_0x274f9f;var _0x3aa569;let _0xbadd0f=nt(_0x545162,_0x5b58c8,_0x47930a);if(_0xbadd0f&&Object[_0x531c84(0x20f)]['hasOwnProperty'][_0x531c84(0x385)](_0xbadd0f,'v'))return _0xbadd0f['v']??null;let _0x5cef15=_0x545162['fields'][_0x47930a];return at(((_0x3aa569=_0x545162[_0x531c84(0x3c4)][_0x5b58c8])==null||(_0x3aa569=_0x3aa569[_0x531c84(0x33c)])==null?void 0x0:_0x3aa569[_0x47930a])??null,_0x5cef15)['v']??null;}function at(_0x45b490,_0x595d27){const _0x5ebb4f=_0x274f9f;if(lt(_0x45b490))return(_0x595d27==null?void 0x0:_0x595d27[_0x5ebb4f(0x2b9)])===_0x11438e[_0x5ebb4f(0x31e)]?{..._0x45b490,'v':'','t':_0x332e7b['STRING']}:ot(_0x45b490);if((_0x595d27==null?void 0x0:_0x595d27[_0x5ebb4f(0x2b9)])===_0x11438e[_0x5ebb4f(0x31e)])return{'v':'','t':_0x332e7b[_0x5ebb4f(0x2a3)]};if(gt(_0x595d27))return{'v':_t(_0x45b490)[_0x5ebb4f(0x48b)](',\x20'),'t':_0x332e7b[_0x5ebb4f(0x2a3)]};if((_0x595d27==null?void 0x0:_0x595d27[_0x5ebb4f(0x2b9)])===_0x11438e['Link']&&_0x45b490&&typeof _0x45b490==_0x5ebb4f(0x314)&&!Array[_0x5ebb4f(0x39e)](_0x45b490)){let _0x180fea=_0x45b490;return{'v':String(_0x180fea[_0x5ebb4f(0x2d7)]??_0x180fea['url']??''),'t':_0x332e7b[_0x5ebb4f(0x2a3)]};}return _0x45b490===null||typeof _0x45b490==_0x5ebb4f(0x3c6)||typeof _0x45b490==_0x5ebb4f(0x4b3)||typeof _0x45b490==_0x5ebb4f(0x4ed)?{'v':_0x45b490,'t':yt(_0x45b490)}:{'v':null,'t':null};}function ot(_0xb0473d){let _0x24c9bf=xt(_0xb0473d['t'],_0xb0473d['v']);if(_0x24c9bf===void 0x0){let {t:_0x255899,..._0x137f76}=_0xb0473d;return _0x137f76;}return{..._0xb0473d,'t':_0x24c9bf};}function st(_0x41bd85,_0x57845a,_0x5858af,_0x21ee9f){const _0x4f4f56=_0x274f9f;if(!_0x41bd85)return null;if((_0x57845a==null?void 0x0:_0x57845a['type'])===_0x11438e[_0x4f4f56(0x31e)])return _0x5858af&&_0x21ee9f?ft(_0x5858af,_0x21ee9f,_0x57845a['id'])??[]:[];if(gt(_0x57845a))return _t(_0x41bd85['v']);if((_0x57845a==null?void 0x0:_0x57845a[_0x4f4f56(0x2b9)])===_0x11438e[_0x4f4f56(0x2fa)]&&_0x5858af&&_0x21ee9f){var _0x2f59ca;let _0x4846c0=(_0x2f59ca=_0x5858af[_0x4f4f56(0x3c4)][_0x21ee9f])==null||(_0x2f59ca=_0x2f59ca[_0x4f4f56(0x33c)])==null?void 0x0:_0x2f59ca[_0x57845a['id']];if(_0x4846c0&&typeof _0x4846c0=='object'&&!Array[_0x4f4f56(0x39e)](_0x4846c0))return _0x4846c0;}return Object[_0x4f4f56(0x20f)][_0x4f4f56(0x465)][_0x4f4f56(0x385)](_0x41bd85,'v')?_0x41bd85['v']??null:null;}function ct(_0x8bf27d,_0x3a2499,_0x3a5b1c,_0x29dddf,_0x2091e4){const _0x2e4eed=_0x274f9f;return(_0x3a5b1c==null?void 0x0:_0x3a5b1c[_0x2e4eed(0x2b9)])===_0x11438e[_0x2e4eed(0x31e)]?pt(_0x8bf27d):gt(_0x3a5b1c)?_t(_0x8bf27d):(_0x3a5b1c==null?void 0x0:_0x3a5b1c[_0x2e4eed(0x2b9)])===_0x11438e[_0x2e4eed(0x2fa)]&&_0x8bf27d&&typeof _0x8bf27d==_0x2e4eed(0x314)&&!Array[_0x2e4eed(0x39e)](_0x8bf27d)&&!lt(_0x8bf27d)?_0x8bf27d:st(_0x3a2499,_0x3a5b1c,_0x29dddf,_0x2091e4);}function lt(_0x3c6936){const _0x33164f=_0x274f9f;return!!_0x3c6936&&typeof _0x3c6936==_0x33164f(0x314)&&(Object[_0x33164f(0x20f)]['hasOwnProperty'][_0x33164f(0x385)](_0x3c6936,'v')||Object[_0x33164f(0x20f)][_0x33164f(0x465)][_0x33164f(0x385)](_0x3c6936,'t')||Object[_0x33164f(0x20f)][_0x33164f(0x465)][_0x33164f(0x385)](_0x3c6936,'p')||Object['prototype'][_0x33164f(0x465)][_0x33164f(0x385)](_0x3c6936,'f')||Object[_0x33164f(0x20f)][_0x33164f(0x465)]['call'](_0x3c6936,'si'));}function ut(_0x25880e,_0x56f3d8){return _0x25880e+'\x1f'+_0x56f3d8;}function dt(_0x1fdb3b,_0x24d999,_0x3efb94,_0x2733cb){const _0x3ca2ec=_0x274f9f;let _0x1189f8=pt(_0x2733cb);_0x1fdb3b[_0x3ca2ec(0x42d)]={..._0x1fdb3b[_0x3ca2ec(0x42d)]??{}},_0x1fdb3b['resources'][_0x3ca2ec(0x2f3)]={..._0x1fdb3b['resources']['attachmentSets']??{}},_0x1fdb3b[_0x3ca2ec(0x42d)][_0x3ca2ec(0x486)]={..._0x1fdb3b['resources'][_0x3ca2ec(0x486)]??{}};let _0x2e74a3=ut(_0x3efb94,_0x24d999),_0x2d779f=[];for(let _0xf8ef6c=0x0;_0xf8ef6c<_0x1189f8['length'];_0xf8ef6c++){if(!(_0xf8ef6c in _0x1189f8))continue;let _0x2e085f=_0x1189f8[_0xf8ef6c],_0x39eef5=String(_0x2e085f['id']??_0x2e74a3+'\x1f'+_0xf8ef6c),_0x229ce5={..._0x2e085f,'id':_0x39eef5};_0x1fdb3b[_0x3ca2ec(0x42d)][_0x3ca2ec(0x486)][_0x39eef5]=_0x229ce5,_0x2d779f['push'](_0x39eef5);}_0x1fdb3b[_0x3ca2ec(0x42d)][_0x3ca2ec(0x2f3)][_0x2e74a3]=_0x2d779f;}function ft(_0x3db565,_0x45c9c2,_0x101120){const _0x57a349=_0x274f9f;var _0xbf5b7d;let _0x1291c1=ut(_0x101120,_0x45c9c2),_0x4c3d30=(_0xbf5b7d=_0x3db565[_0x57a349(0x42d)])==null||(_0xbf5b7d=_0xbf5b7d[_0x57a349(0x2f3)])==null?void 0x0:_0xbf5b7d[_0x1291c1];if(!_0x4c3d30)return null;let _0x56db21=[];for(let _0x15c907=0x0;_0x15c907<_0x4c3d30[_0x57a349(0x353)];_0x15c907++){var _0x44d01c;if(!(_0x15c907 in _0x4c3d30))continue;let _0x592884=(_0x44d01c=_0x3db565[_0x57a349(0x42d)])==null||(_0x44d01c=_0x44d01c['attachments'])==null?void 0x0:_0x44d01c[_0x4c3d30[_0x15c907]];_0x592884&&_0x56db21[_0x57a349(0x254)]({..._0x592884});}return _0x56db21;}function pt(_0x333dc2){const _0x3f9b11=_0x274f9f;if(_0x333dc2==null||_0x333dc2===''||lt(_0x333dc2)&&!('id'in _0x333dc2)&&!(_0x3f9b11(0x248)in _0x333dc2))return[];let _0x4b5ada=Array[_0x3f9b11(0x39e)](_0x333dc2)?_0x333dc2:[_0x333dc2],_0x372591=[];for(let _0x1de35e=0x0;_0x1de35e<_0x4b5ada[_0x3f9b11(0x353)];_0x1de35e++){if(!(_0x1de35e in _0x4b5ada))continue;let _0x14471b=_0x4b5ada[_0x1de35e],_0x5dea59=_0x14471b&&typeof _0x14471b==_0x3f9b11(0x314)?{..._0x14471b}:{'id':_0x3f9b11(0x4f3)+_0x1de35e,'name':String(_0x14471b)};Object[_0x3f9b11(0x311)](_0x5dea59)[_0x3f9b11(0x353)]>0x0&&_0x372591[_0x3f9b11(0x254)](_0x5dea59);}return _0x372591;}function mt(_0x17221b,_0x391b57){const _0x5086be=_0x274f9f;return(_0x391b57==null?void 0x0:_0x391b57[_0x5086be(0x2b9)])===_0x11438e[_0x5086be(0x31e)]?pt(_0x17221b):gt(_0x391b57)?_t(_0x17221b):_0x17221b;}function ht(_0x1e156c,_0x28643b,_0x414a02){const _0x25d5f6=_0x274f9f;return(_0x28643b==null?void 0x0:_0x28643b[_0x25d5f6(0x2b9)])===_0x11438e[_0x25d5f6(0x31e)]?_0x1e156c['v']!=='':gt(_0x28643b)?Array[_0x25d5f6(0x39e)](_0x414a02)&&(_0x1e156c['v']==null||_0x1e156c['v']===''):!0x1;}function gt(_0x160bcf){const _0x18251b=_0x274f9f;return(_0x160bcf==null?void 0x0:_0x160bcf['type'])===_0x11438e[_0x18251b(0x3a5)]||(_0x160bcf==null?void 0x0:_0x160bcf['type'])===_0x11438e[_0x18251b(0x33d)]||(_0x160bcf==null?void 0x0:_0x160bcf['type'])===_0x11438e[_0x18251b(0x1f9)];}function _t(_0x53bdfe){const _0x436d2c=_0x274f9f;if(_0x53bdfe==null||_0x53bdfe==='')return[];let _0xa1c435=[];if(Array['isArray'](_0x53bdfe)){for(let _0x56b54f=0x0;_0x56b54f<_0x53bdfe['length'];_0x56b54f++){if(!(_0x56b54f in _0x53bdfe))continue;let _0x360a58=vt(_0x53bdfe[_0x56b54f]);_0x360a58&&_0xa1c435[_0x436d2c(0x254)](_0x360a58);}return _0xa1c435;}for(let _0x181e90 of String(_0x53bdfe)['split'](',')){let _0x38db64=_0x181e90[_0x436d2c(0x2ba)]();_0x38db64&&_0xa1c435[_0x436d2c(0x254)](_0x38db64);}return _0xa1c435;}function vt(_0x58c7ae){const _0x5e1bf6=_0x274f9f;if(_0x58c7ae==null)return'';if(typeof _0x58c7ae==_0x5e1bf6(0x3c6)||typeof _0x58c7ae=='number'||typeof _0x58c7ae==_0x5e1bf6(0x4ed))return String(_0x58c7ae);if(typeof _0x58c7ae==_0x5e1bf6(0x314)){let _0x2999d1=_0x58c7ae;return String(_0x2999d1['id']??_0x2999d1[_0x5e1bf6(0x248)]??_0x2999d1['text']??'');}return String(_0x58c7ae);}function yt(_0x1a6383){const _0x21a4df=_0x274f9f;return _0x1a6383==null?null:typeof _0x1a6383==_0x21a4df(0x4b3)?_0x332e7b[_0x21a4df(0x2c8)]:typeof _0x1a6383==_0x21a4df(0x4ed)?_0x332e7b[_0x21a4df(0x45d)]:_0x332e7b[_0x21a4df(0x2a3)];}function bt(_0x2310b5){const _0x432499=_0x274f9f;_0x2310b5[_0x432499(0x456)]((_0xd4a1dc,_0x46643a)=>_0xd4a1dc[_0x432499(0x280)][_0x432499(0x1fe)](_0x46643a[_0x432499(0x280)]));let _0x495d70=[];for(let _0x588594 of _0x2310b5)_0x495d70[_0x432499(0x254)](_0x588594['id']);return _0x495d70;}function xt(_0xd5817,_0xf7ab81){const _0x2d80ff=_0x274f9f;return _0xd5817===_0x332e7b['STRING']||_0xd5817===_0x332e7b[_0x2d80ff(0x2c8)]||_0xd5817===_0x332e7b[_0x2d80ff(0x45d)]||_0xd5817===_0x332e7b[_0x2d80ff(0x396)]||_0xd5817==null?_0xd5817:yt(_0xf7ab81??null);}function R(_0x510f9a){const _0x453f7c=_0x274f9f;let _0x36c0b9=null;for(let _0x22d5f5 of _0x510f9a)_0x36c0b9=_0x36c0b9===null?_0x22d5f5:_0x356391[_0x453f7c(0x2b9)][_0x453f7c(0x508)](_0x36c0b9,_0x22d5f5);return _0x36c0b9;}var z=class e{static['tryMaterializeSnapshot'](_0x5c9ab6,_0x2639bc){const _0x525f86=_0x274f9f;let _0x5d72c4=[];for(let _0x5b6219 of _0x2639bc){let _0xe77f52=St(_0x5b6219);if(!_0xe77f52||_0xe77f52[_0x525f86(0x4bb)]!==_0x5c9ab6['id'])return null;_0x5d72c4[_0x525f86(0x254)](_0xe77f52['op']);}try{let _0x91270b=R(_0x5d72c4);return _0x91270b===null?_0x5c9ab6:new e()[_0x525f86(0x347)](_0x5c9ab6,_0x91270b);}catch{return null;}}[_0x274f9f(0x347)](_0x1ef144,_0x4017a1){const _0x3af9e4=_0x274f9f;let _0x21fee1=this[_0x3af9e4(0x301)](_0x4017a1),_0x2ce7b8=I(_0x3af9e4(0x389),()=>At(_0x1ef144,_0x4017a1),{'invalidations':_0x21fee1['length']}),_0x3bb53c=I('BaseJson1.json1Apply',()=>_0x356391['type'][_0x3af9e4(0x499)](_0x2ce7b8,_0x4017a1),{'invalidations':_0x21fee1['length']});return I('BaseJson1.syncCellInvalidations',()=>Ct(_0x3bb53c,_0x21fee1),{'invalidations':_0x21fee1['length']})||I(_0x3af9e4(0x348),()=>{const _0x7755ce=_0x3af9e4;this[_0x7755ce(0x330)](_0x3bb53c,_0x21fee1)[_0x7755ce(0x366)](_0x4cef13=>{$e(_0x4cef13);});},{'invalidations':_0x21fee1['length']}),_0x3bb53c;}[_0x274f9f(0x2c6)](_0x509021,_0x331a95){const _0x1bc726=_0x274f9f;return _0x356391[_0x1bc726(0x2b9)][_0x1bc726(0x510)](_0x331a95,_0x509021);}[_0x274f9f(0x301)](_0x1a72eb){const _0x33e492=_0x274f9f;let _0x575668=Dt(_0x1a72eb);return _0x575668[_0x33e492(0x353)]?Ot(_0x575668['flatMap'](_0x50da87=>this['getAffectedRanges'](_0x50da87))):wt(_0x1a72eb);}[_0x274f9f(0x330)](_0x3e8f93,_0x4d44ba){const _0x2adf5e=_0x274f9f;return _0x4d44ba[_0x2adf5e(0x353)]?_0x4d44ba[_0x2adf5e(0x29f)](_0x184ddf=>!_0x184ddf[_0x2adf5e(0x37e)])?Object[_0x2adf5e(0x33c)](_0x3e8f93[_0x2adf5e(0x529)]??{}):Array[_0x2adf5e(0x2a4)](new Set(_0x4d44ba['map'](_0x45f555=>_0x45f555[_0x2adf5e(0x37e)])))[_0x2adf5e(0x25e)](_0x3f45df=>{const _0x32e767=_0x2adf5e;var _0x32cf8d;let _0x3cbdda=(_0x32cf8d=_0x3e8f93[_0x32e767(0x529)])==null?void 0x0:_0x32cf8d[_0x3f45df];return _0x3cbdda?[_0x3cbdda]:[];}):[];}};function St(_0x20aeb3){const _0x13c4f8=_0x274f9f;let _0x24670c=_0x20aeb3['params'];return _0x20aeb3['id']!==_0x13c4f8(0x48f)||typeof _0x24670c!=_0x13c4f8(0x314)||!_0x24670c||!('unitId'in _0x24670c)||typeof _0x24670c[_0x13c4f8(0x4bb)]!=_0x13c4f8(0x3c6)||!('op'in _0x24670c)||!Array[_0x13c4f8(0x39e)](_0x24670c['op'])?null:{'unitId':_0x24670c['unitId'],'op':_0x24670c['op']};}function Ct(_0x4e0c48,_0x207845){const _0x7a2a69=_0x274f9f;if(!_0x207845[_0x7a2a69(0x353)]||_0x207845[_0x7a2a69(0x29f)](_0x180b11=>_0x180b11[_0x7a2a69(0x257)]!==_0x7a2a69(0x3aa)))return!0x1;let _0x24bc18=new Map();for(let _0x903d2a of _0x207845){if(!_0x903d2a['tableId']||_0x903d2a['row']==null||_0x903d2a[_0x7a2a69(0x42e)]==null)continue;let _0xf5dc84=_0x24bc18['get'](_0x903d2a[_0x7a2a69(0x37e)])??[];_0xf5dc84['push']({'row':_0x903d2a[_0x7a2a69(0x264)],'col':_0x903d2a['column']}),_0x24bc18[_0x7a2a69(0x317)](_0x903d2a[_0x7a2a69(0x37e)],_0xf5dc84);}return _0x24bc18[_0x7a2a69(0x366)]((_0x2eca11,_0x3770bd)=>{const _0x308426=_0x7a2a69;var _0x3e2eaa;let _0x1b644c=(_0x3e2eaa=_0x4e0c48[_0x308426(0x529)])==null?void 0x0:_0x3e2eaa[_0x3770bd];_0x1b644c&&et(_0x1b644c,_0x2eca11);}),!0x0;}function wt(_0xc81294){const _0x44c975=_0x274f9f;if(!Array[_0x44c975(0x39e)](_0xc81294)||_0xc81294[_0x44c975(0x353)]<0x2)return[{'tableId':'','reason':_0x44c975(0x2b4)}];let _0x23369d=_0xc81294,_0x44bbce=_0x23369d[_0x44c975(0x502)]('tables');return _0x44bbce===-0x1||typeof _0x23369d[_0x44bbce+0x1]!=_0x44c975(0x3c6)?_0x23369d[0x0]===_0x44c975(0x4ab)?[]:[{'tableId':'','reason':_0x44c975(0x2b4)}]:Tt(_0x23369d,_0x44bbce,String(_0x23369d[_0x44bbce+0x1]));}function Tt(_0x108f60,_0x56387b,_0x3453af){const _0x2b38dd=_0x274f9f;let _0x3f48df=_0x108f60[_0x56387b+0x2];return _0x3f48df==='records'&&typeof _0x108f60[_0x56387b+0x3]==_0x2b38dd(0x3c6)?Et(_0x108f60,_0x56387b,_0x3453af,String(_0x108f60[_0x56387b+0x3])):_0x3f48df===_0x2b38dd(0x434)&&_0x108f60[_0x56387b+0x3]!=null&&_0x108f60[_0x56387b+0x4]!=null?[{'tableId':_0x3453af,'reason':_0x2b38dd(0x3aa),'row':Number(_0x108f60[_0x56387b+0x3]),'column':Number(_0x108f60[_0x56387b+0x4])}]:_0x3f48df===_0x2b38dd(0x39f)&&typeof _0x108f60[_0x56387b+0x3]==_0x2b38dd(0x3c6)?[{'tableId':_0x3453af,'reason':_0x2b38dd(0x4e6),'fieldId':String(_0x108f60[_0x56387b+0x3])}]:_0x3f48df===_0x2b38dd(0x22d)&&typeof _0x108f60[_0x56387b+0x3]=='string'?[{'tableId':_0x3453af,'reason':_0x2b38dd(0x33a),'viewId':String(_0x108f60[_0x56387b+0x3])}]:[{'tableId':_0x3453af,'reason':_0x3f48df===void 0x0?_0x2b38dd(0x258):'unknown'}];}function Et(_0x44147f,_0x1a9069,_0x453d91,_0x171abf){const _0x197c3a=_0x274f9f;return _0x44147f[_0x1a9069+0x4]===_0x197c3a(0x33c)&&typeof _0x44147f[_0x1a9069+0x5]==_0x197c3a(0x3c6)?[{'tableId':_0x453d91,'reason':_0x197c3a(0x3aa),'recordId':_0x171abf,'fieldId':String(_0x44147f[_0x1a9069+0x5])}]:_0x44147f[_0x1a9069+0x4]===_0x197c3a(0x3da)||_0x44147f[_0x1a9069+0x4]===_0x197c3a(0x2b3)?[]:[{'tableId':_0x453d91,'reason':_0x197c3a(0x46a),'recordId':_0x171abf}];}function Dt(_0x53cc32){const _0x4147d9=_0x274f9f;if(!Array[_0x4147d9(0x39e)](_0x53cc32))return[];let _0xd188f0=_0x53cc32[_0x4147d9(0x458)](Array[_0x4147d9(0x39e)]);if(_0xd188f0[_0x4147d9(0x353)]>0x1&&_0xd188f0[_0x4147d9(0x353)]===_0x53cc32[_0x4147d9(0x353)])return _0xd188f0;let _0x3c3943=_0x53cc32[_0x4147d9(0x22c)](Array[_0x4147d9(0x39e)]);if(_0x3c3943>0x0&&_0x53cc32['slice'](_0x3c3943)[_0x4147d9(0x4ea)](Array[_0x4147d9(0x39e)])){let _0x5d436a=_0x53cc32['slice'](0x0,_0x3c3943);return _0x53cc32[_0x4147d9(0x51c)](_0x3c3943)[_0x4147d9(0x22e)](_0x5f316b=>[..._0x5d436a,..._0x5f316b]);}let _0x122f65=_0x53cc32[_0x4147d9(0x502)](_0x4147d9(0x529));if(_0x122f65===-0x1||typeof _0x53cc32[_0x122f65+0x1]!=_0x4147d9(0x3c6))return[];let _0x35aecf=String(_0x53cc32[_0x122f65+0x1]),_0x48baaa=_0x53cc32['slice'](_0x122f65+0x2)[_0x4147d9(0x458)](Array[_0x4147d9(0x39e)]);return _0x48baaa['length']<=0x1?[]:_0x48baaa[_0x4147d9(0x22e)](_0x322c4b=>[_0x4147d9(0x529),_0x35aecf,..._0x322c4b]);}function Ot(_0x2cad8c){const _0x96f4c7=_0x274f9f;let _0xe14bbd=new Set();return _0x2cad8c[_0x96f4c7(0x458)](_0x6c1be1=>{const _0x2bd398=_0x96f4c7;let _0x340ff4=JSON[_0x2bd398(0x2b6)](_0x6c1be1);return _0xe14bbd['has'](_0x340ff4)?!0x1:(_0xe14bbd[_0x2bd398(0x4a3)](_0x340ff4),!0x0);});}function kt(_0x36b43e){const _0x24fd39=_0x274f9f;return _0x12a306[_0x24fd39(0x523)](_0x36b43e);}function At(_0x8f368b,_0x21d323){let _0x13cf53=jt(_0x21d323);if(!_0x13cf53['length'])return kt(_0x8f368b);let _0x41676a=Rt(_0x8f368b),_0x448a2b=new Set();for(let _0x59cd90 of _0x13cf53)Pt(_0x41676a,_0x59cd90,_0x448a2b);return _0x41676a;}function jt(_0x4a5c9c){let _0xbc2985=[];return Mt(_0x4a5c9c,[],_0xbc2985),_0xbc2985;}function Mt(_0x3eb00c,_0x4ce039,_0x5860ff){const _0x5cb94c=_0x274f9f;if(!Array[_0x5cb94c(0x39e)](_0x3eb00c))return;let _0x31a6a4=[];for(let _0x4da6b0 of _0x3eb00c){if(Array[_0x5cb94c(0x39e)](_0x4da6b0)){Mt(_0x4da6b0,[..._0x4ce039,..._0x31a6a4],_0x5860ff);continue;}if(Nt(_0x4da6b0)){_0x5860ff[_0x5cb94c(0x254)]([..._0x4ce039,..._0x31a6a4]);continue;}(typeof _0x4da6b0==_0x5cb94c(0x3c6)||typeof _0x4da6b0==_0x5cb94c(0x4b3))&&_0x31a6a4[_0x5cb94c(0x254)](_0x4da6b0);}}function Nt(_0x6605d0){const _0x3eb9f9=_0x274f9f;if(!_0x6605d0||typeof _0x6605d0!='object'||Array[_0x3eb9f9(0x39e)](_0x6605d0))return!0x1;let _0x283f51=_0x6605d0;return'i'in _0x283f51||'r'in _0x283f51||'p'in _0x283f51||'d'in _0x283f51||'es'in _0x283f51||_0x3eb9f9(0x3ae)in _0x283f51||'et'in _0x283f51;}function Pt(_0x332d2d,_0x379783,_0x377787){const _0x3aba28=_0x274f9f;let _0x167f6e=_0x332d2d,_0x31b66e=[];for(let _0x22b662=0x0;_0x22b662<_0x379783['length']-0x1;_0x22b662++){let _0x4dcd42=_0x379783[_0x22b662];_0x31b66e[_0x3aba28(0x254)](_0x4dcd42);let _0x5f498b=Ft(_0x167f6e,_0x4dcd42);if(!Lt(_0x5f498b))return;let _0x234af8=JSON[_0x3aba28(0x2b6)](_0x31b66e);_0x377787[_0x3aba28(0x51e)](_0x234af8)||(It(_0x167f6e,_0x4dcd42,Rt(_0x5f498b)),_0x377787['add'](_0x234af8));let _0x29c80f=Ft(_0x167f6e,_0x4dcd42);if(!Lt(_0x29c80f))return;_0x167f6e=_0x29c80f;}}function Ft(_0x2bfa8f,_0x15205f){const _0x2e75e3=_0x274f9f;return Array[_0x2e75e3(0x39e)](_0x2bfa8f)?typeof _0x15205f==_0x2e75e3(0x4b3)?_0x2bfa8f[_0x15205f]:void 0x0:Reflect['get'](_0x2bfa8f,_0x15205f);}function It(_0x7c9383,_0x597f60,_0x35163c){const _0x178e2e=_0x274f9f;if(Array[_0x178e2e(0x39e)](_0x7c9383)){typeof _0x597f60==_0x178e2e(0x4b3)&&(_0x7c9383[_0x597f60]=_0x35163c);return;}Reflect[_0x178e2e(0x317)](_0x7c9383,_0x597f60,_0x35163c);}function Lt(_0x343371){const _0x18d6c6=_0x274f9f;return!!_0x343371&&typeof _0x343371==_0x18d6c6(0x314);}function Rt(_0x9db6a3){const _0x5bae45=_0x274f9f;return Array['isArray'](_0x9db6a3)?_0x9db6a3[_0x5bae45(0x51c)]():{..._0x9db6a3};}const zt=0x5a0*0x3c*0x3e8,Bt=0x63e1,Vt='yyyy/mm/dd',Ht=/\s+hh:mm\s*$/i,Ut={'yyyy/mm/dd':_0x274f9f(0x446),'yyyy-mm-dd':_0x274f9f(0x430),'mm-dd':_0x274f9f(0x222),'mm/dd/yyyy':'MM/DD/YYYY','dd/mm/yyyy':_0x274f9f(0x338),'mmm\x20d,\x20yyyy':_0x274f9f(0x2e0)};function B(_0x23c471){const _0x4e192d=_0x274f9f;return _0x1b3caf(_0x23c471)[_0x4e192d(0x21d)]()/zt+Bt;}function Wt(_0x479be6){return Math['round']((_0x479be6-Bt)*zt);}function Gt(_0x4902cc){const _0x42ce74=_0x274f9f;if(_0x4902cc==null||_0x4902cc==='')return null;if(_0x4902cc instanceof Date)return B(_0x4902cc);if(typeof _0x4902cc==_0x42ce74(0x4b3))return Number[_0x42ce74(0x1ee)](_0x4902cc)?_0x4902cc>0xf4240?B(_0x4902cc):_0x4902cc:null;let _0x3137d9=Date['parse'](String(_0x4902cc));return Number[_0x42ce74(0x33b)](_0x3137d9)?null:B(_0x3137d9);}function Kt(_0x34339d){let _0x46abd8=Gt(_0x34339d);return _0x46abd8==null?null:Wt(_0x46abd8);}function qt(_0xfa9082={}){const _0x5ab7b4=_0x274f9f;let _0x55447d=String(_0xfa9082[_0x5ab7b4(0x471)]??_0xfa9082[_0x5ab7b4(0x483)]??_0xfa9082[_0x5ab7b4(0x3f8)]??Vt)[_0x5ab7b4(0x2ba)]()||Vt,_0x229701=Ht[_0x5ab7b4(0x2a6)](_0x55447d);return{'pattern':_0x55447d[_0x5ab7b4(0x386)](Ht,'')||Vt,'includeTime':typeof _0xfa9082[_0x5ab7b4(0x4b8)]==_0x5ab7b4(0x4ed)?_0xfa9082['includeTime']:_0x229701,'hourCycle':_0xfa9082[_0x5ab7b4(0x384)]===_0x5ab7b4(0x37b)?_0x5ab7b4(0x37b):_0x5ab7b4(0x48d)};}function Jt(_0x4a7a8b={}){let {format:_0x1aab35,dateFormat:_0x49efa8,..._0x3a9825}=_0x4a7a8b;return{..._0x3a9825,...qt(_0x4a7a8b)};}function Yt(_0x12e428,_0x528227={}){const _0x54c090=_0x274f9f;let _0x33d457=Kt(_0x12e428);if(_0x33d457==null||!Number[_0x54c090(0x1ee)](_0x33d457))return'';let _0xdb4e79=qt(_0x528227);return _0x1b3caf(_0x33d457)['format'](Xt(_0xdb4e79));}function Xt(_0x72187c){const _0x56d866=_0x274f9f;let {pattern:_0x29c396,includeTime:_0x5f07a6,hourCycle:_0x208ea7}=_0x72187c,_0x1f4606=Ut[_0x29c396]??Ut[Vt];return _0x5f07a6?_0x1f4606+'\x20'+(_0x208ea7===_0x56d866(0x37b)?_0x56d866(0x1d1):_0x56d866(0x2d2)):_0x1f4606;}const Zt={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},Qt=new Set([_0x11438e[_0x274f9f(0x20d)]]),V=0x5a0*0x3c*0x3e8;function $t(_0x3ef1a7){const _0x135484=_0x274f9f;switch(_0x3ef1a7){case _0x11438e[_0x135484(0x43e)]:case _0x11438e['Currency']:case _0x11438e['Progress']:case _0x11438e[_0x135484(0x259)]:return[_0x5914e9['IS'],_0x5914e9[_0x135484(0x395)],_0x5914e9[_0x135484(0x4ec)],_0x5914e9[_0x135484(0x1ea)],_0x5914e9['IS_EMPTY'],_0x5914e9[_0x135484(0x3d2)]];case _0x11438e['Date']:case _0x11438e[_0x135484(0x33f)]:case _0x11438e[_0x135484(0x2df)]:return[_0x5914e9['IS'],_0x5914e9[_0x135484(0x395)],_0x5914e9[_0x135484(0x2e7)],_0x5914e9[_0x135484(0x1dc)],_0x5914e9[_0x135484(0x2f6)],_0x5914e9[_0x135484(0x3d2)]];case _0x11438e['Checkbox']:return[_0x5914e9['IS'],_0x5914e9[_0x135484(0x395)]];default:return[_0x5914e9['IS'],_0x5914e9['IS_NOT'],_0x5914e9[_0x135484(0x2bf)],_0x5914e9['NOT_CONTAINS'],_0x5914e9['IS_EMPTY'],_0x5914e9[_0x135484(0x3d2)]];}}function en(_0x2b50b4){const _0x242bee=_0x274f9f;return _0x2b50b4===_0x11438e[_0x242bee(0x44b)]||_0x2b50b4===_0x11438e[_0x242bee(0x33f)]||_0x2b50b4===_0x11438e[_0x242bee(0x2df)];}function tn(_0x235c22,_0x3ccda8){const _0x1c99e1=_0x274f9f;return _0x235c22==null&&_0x3ccda8==null?0x0:_0x235c22==null?-0x1:_0x3ccda8==null?0x1:typeof _0x235c22==_0x1c99e1(0x4b3)&&typeof _0x3ccda8==_0x1c99e1(0x4b3)?_0x235c22-_0x3ccda8:String(_0x235c22)[_0x1c99e1(0x1fe)](String(_0x3ccda8));}function nn(_0x50addb,_0x3a2dcd,_0x40f057,_0x53666a,_0x27ab19={}){const _0x43d2ca=_0x274f9f;if(_0x3a2dcd===_0x43d2ca(0x2e5))return rn(_0x50addb);if(_0x3a2dcd==='isNotEmpty')return!rn(_0x50addb);switch(_0x53666a[_0x43d2ca(0x2b9)]){case _0x11438e[_0x43d2ca(0x43e)]:case _0x11438e[_0x43d2ca(0x453)]:case _0x11438e[_0x43d2ca(0x298)]:case _0x11438e[_0x43d2ca(0x259)]:return an(_0x50addb,_0x3a2dcd,_0x40f057);case _0x11438e[_0x43d2ca(0x44b)]:case _0x11438e[_0x43d2ca(0x33f)]:case _0x11438e[_0x43d2ca(0x2df)]:return sn(_0x50addb,_0x3a2dcd,_0x40f057,_0x27ab19);case _0x11438e[_0x43d2ca(0x44d)]:return pn(_0x50addb,_0x3a2dcd,_0x40f057);case _0x11438e[_0x43d2ca(0x282)]:case _0x11438e[_0x43d2ca(0x3a5)]:case _0x11438e['Person']:case _0x11438e[_0x43d2ca(0x1f9)]:return hn(_0x50addb,_0x3a2dcd,_0x40f057,_0x53666a);default:return gn(_0x50addb,_0x3a2dcd,_0x40f057);}}function rn(_0x21aeaf){const _0x3791e6=_0x274f9f;return _0x21aeaf==null?!0x0:Array[_0x3791e6(0x39e)](_0x21aeaf)?_0x21aeaf[_0x3791e6(0x353)]===0x0:typeof _0x21aeaf=='string'&&_0x21aeaf['trim']()==='';}function an(_0x4ed2e,_0x4ee5a9,_0x2dd856){const _0x1fcc18=_0x274f9f;let _0x209eab=on(_0x4ed2e),_0x44852f=on(_0x2dd856);if(_0x209eab==null||_0x44852f==null)return!0x1;switch(_0x4ee5a9){case'is':return _0x209eab===_0x44852f;case _0x1fcc18(0x443):return _0x209eab!==_0x44852f;case _0x1fcc18(0x2b5):return _0x209eab>_0x44852f;case _0x1fcc18(0x45f):return _0x209eab>=_0x44852f;case _0x1fcc18(0x255):return _0x209eab<_0x44852f;case _0x1fcc18(0x22b):return _0x209eab<=_0x44852f;default:return!0x1;}}function on(_0x506a88){if(_0x506a88==null||_0x506a88==='')return null;let _0x20b23d=Number(_0x506a88);return Number['isFinite'](_0x20b23d)?_0x20b23d:null;}function sn(_0x20dc5f,_0xba1d7e,_0x25bddd,_0x4538ac){const _0xe8be15=_0x274f9f;let _0x368bac=ln(_0x20dc5f);if(_0x368bac==null)return!0x1;let _0x375f96=cn(_0x4538ac[_0xe8be15(0x205)]??_0xe8be15(0x475),_0x25bddd,_0x4538ac['now']);if(!_0x375f96)return!0x1;switch(_0xba1d7e){case'is':return _0x368bac>=_0x375f96[_0xe8be15(0x420)]&&_0x368bac<=_0x375f96[_0xe8be15(0x417)];case'isNot':return _0x368bac<_0x375f96[_0xe8be15(0x420)]||_0x368bac>_0x375f96['end'];case _0xe8be15(0x429):return _0x368bac<_0x375f96['start'];case _0xe8be15(0x4b5):return _0x368bac>_0x375f96['end'];default:return!0x1;}}function cn(_0x5170f5,_0xa1aaa6,_0x371130=Date[_0x274f9f(0x4df)]()){const _0x5e2db3=_0x274f9f;let _0x6943a3=un(_0x371130);switch(_0x5170f5){case _0x5e2db3(0x475):{let _0x33c633=ln(_0xa1aaa6);return _0x33c633==null?null:{'start':_0x33c633,'end':_0x33c633+V-0x1};}case _0x5e2db3(0x487):return{'start':_0x6943a3,'end':_0x6943a3+V-0x1};case'tomorrow':return{'start':_0x6943a3+V,'end':_0x6943a3+V*0x2-0x1};case _0x5e2db3(0x263):return{'start':_0x6943a3-V,'end':_0x6943a3-0x1};case _0x5e2db3(0x2d6):return dn(_0x6943a3,0x0);case'lastWeek':return dn(_0x6943a3,-0x1);case _0x5e2db3(0x397):return fn(_0x6943a3,0x0);case _0x5e2db3(0x4e3):return fn(_0x6943a3,-0x1);case _0x5e2db3(0x381):return{'start':_0x6943a3-V*0x6,'end':_0x6943a3+V-0x1};case'next7':return{'start':_0x6943a3,'end':_0x6943a3+V*0x7-0x1};case _0x5e2db3(0x4a6):return{'start':_0x6943a3-V*0x1d,'end':_0x6943a3+V-0x1};case _0x5e2db3(0x4b1):return{'start':_0x6943a3,'end':_0x6943a3+V*0x1e-0x1};}}function ln(_0x1ef0ea){let _0x524e92=Gt(_0x1ef0ea);return _0x524e92==null?null:un(Wt(_0x524e92));}function un(_0x29c399){const _0x80103c=_0x274f9f;let _0x285b84=new Date(_0x29c399);return _0x285b84[_0x80103c(0x3c3)](0x0,0x0,0x0,0x0),_0x285b84[_0x80103c(0x45a)]();}function dn(_0x42c5e4,_0x5982ea){const _0x4add59=_0x274f9f;let _0x36cbff=_0x42c5e4-(new Date(_0x42c5e4)[_0x4add59(0x2b8)]()+0x6)%0x7*V+_0x5982ea*V*0x7;return{'start':_0x36cbff,'end':_0x36cbff+V*0x7-0x1};}function fn(_0x1fd317,_0x5741a3){const _0x45b536=_0x274f9f;let _0xd8872a=new Date(_0x1fd317),_0x55ade0=new Date(_0xd8872a['getFullYear'](),_0xd8872a[_0x45b536(0x325)]()+_0x5741a3,0x1),_0x54cf33=new Date(_0xd8872a[_0x45b536(0x4ae)](),_0xd8872a[_0x45b536(0x325)]()+_0x5741a3+0x1,0x1);return{'start':_0x55ade0[_0x45b536(0x45a)](),'end':_0x54cf33['getTime']()-0x1};}function pn(_0x4ee5bf,_0x3d59ed,_0x2603e1){const _0x5d0fa7=_0x274f9f;let _0x3c2bdc=mn(_0x4ee5bf),_0x3e5b82=mn(_0x2603e1);switch(_0x3d59ed){case'is':return _0x3c2bdc===_0x3e5b82;case _0x5d0fa7(0x443):return _0x3c2bdc!==_0x3e5b82;default:return!0x1;}}function mn(_0x3343fd){const _0xb56b1c=_0x274f9f;return _0x3343fd===!0x0||_0x3343fd===_0xb56b1c(0x416)||_0x3343fd===0x1||_0x3343fd==='1';}function hn(_0x140b49,_0x1bb46b,_0x33c470,_0x39acd2){const _0x532854=_0x274f9f;let _0x417d0b=vn(_0x140b49,_0x39acd2),_0x5d773c=vn(_0x33c470,_0x39acd2),_0x343fdf=_0x5d773c['length']>0x0&&_0x5d773c['some'](_0x44bdd0=>_0x417d0b[_0x532854(0x1d2)](_0x44bdd0));switch(_0x1bb46b){case'is':case'contains':return _0x343fdf;case _0x532854(0x443):case'notContains':return!_0x343fdf;default:return!0x1;}}function gn(_0x18dd0c,_0x17a6bd,_0x5cd1f9){const _0x43e09b=_0x274f9f;let _0x2a93a7=_n(_0x18dd0c),_0x80ca6e=_n(_0x5cd1f9);switch(_0x17a6bd){case'is':return _0x2a93a7===_0x80ca6e;case _0x43e09b(0x443):return _0x2a93a7!==_0x80ca6e;case _0x43e09b(0x4e1):return _0x80ca6e?_0x2a93a7['includes'](_0x80ca6e):!0x1;case _0x43e09b(0x4c2):return!_0x80ca6e||!_0x2a93a7[_0x43e09b(0x1d2)](_0x80ca6e);default:return!0x1;}}function _n(_0x52c308){const _0x22ecef=_0x274f9f;if(Array[_0x22ecef(0x39e)](_0x52c308))return _0x52c308['map'](_0x4b9dd6=>_n(_0x4b9dd6))[_0x22ecef(0x48b)]('\x0a');if(_0x52c308&&typeof _0x52c308==_0x22ecef(0x314)){let _0x1c060c=_0x52c308;return String(_0x1c060c[_0x22ecef(0x248)]??_0x1c060c[_0x22ecef(0x505)]??_0x1c060c['text']??_0x1c060c[_0x22ecef(0x42f)]??_0x1c060c['id']??'')[_0x22ecef(0x2ba)]()[_0x22ecef(0x208)]();}return String(_0x52c308??'')['trim']()['toLowerCase']();}function vn(_0x4ef807,_0x1d344c){const _0x1f832b=_0x274f9f;let _0x5a1098=yn(_0x4ef807),_0x49677a=bn(_0x1d344c[_0x1f832b(0x427)]??{});return _0x5a1098['flatMap'](_0x1cf9f6=>_0x49677a[_0x1f832b(0x23e)](_0x1cf9f6)??[_0x1cf9f6])[_0x1f832b(0x458)]((_0x38ecf1,_0x4d8e70,_0x503d55)=>_0x38ecf1!==''&&_0x503d55[_0x1f832b(0x502)](_0x38ecf1)===_0x4d8e70);}function yn(_0x4234fd){const _0xb1e000=_0x274f9f;if(_0x4234fd==null||_0x4234fd==='')return[];if(Array['isArray'](_0x4234fd))return _0x4234fd['flatMap'](_0x50a19d=>yn(_0x50a19d));if(_0x4234fd&&typeof _0x4234fd=='object'){let _0x1e518b=_0x4234fd;return['id',_0xb1e000(0x248),_0xb1e000(0x505),_0xb1e000(0x42f),'text']['flatMap'](_0x3b5f55=>yn(_0x1e518b[_0x3b5f55]))['filter']((_0x5b6440,_0x5117fa,_0x36fbb2)=>_0x36fbb2['indexOf'](_0x5b6440)===_0x5117fa);}return[_n(_0x4234fd)];}function bn(_0x135e3e){const _0x4a892a=_0x274f9f;let _0x3d29a8=new Map();return(Array['isArray'](_0x135e3e[_0x4a892a(0x4a7)])?_0x135e3e['options']:[])[_0x4a892a(0x366)](_0x19173b=>{const _0x913b81=_0x4a892a;if(!_0x19173b||typeof _0x19173b!='object')return;let _0x2a2955=yn(_0x19173b),_0x517116=_0x2a2955[_0x913b81(0x458)]((_0x3b198c,_0x11e15b)=>_0x3b198c!==''&&_0x2a2955[_0x913b81(0x502)](_0x3b198c)===_0x11e15b);_0x517116[_0x913b81(0x366)](_0x1ccc0b=>_0x3d29a8[_0x913b81(0x317)](_0x1ccc0b,_0x517116));}),_0x3d29a8;}function H(_0x34ee3e,_0x683fe8={},_0x48fe93=_0x43c131=>_0x43c131,_0x22539b={}){const _0xf79f5a=_0x274f9f;let _0x3b3caa=!Qt['has'](_0x34ee3e),_0x3d6be5=_0x48fe93??(_0x1b9710=>_0x1b9710);return{'type':_0x34ee3e,'i18nKey':'base.fieldType.'+_0x34ee3e,'enabled':_0x3b3caa,'visibleInCreateMenu':_0x3b3caa,'createDefaultConfig':_0x22539b[_0xf79f5a(0x479)]??(()=>({})),'createDefaultValue':_0x22539b[_0xf79f5a(0x42b)]??(_0x13fd49=>_0x13fd49[_0xf79f5a(0x319)]??null),'normalize':(_0x511960,_0x5b3df4)=>_0x3d6be5(_0x511960,_0x5b3df4),'validate':(_0x1f85e8,_0x4e5c89)=>{const _0x14d957=_0xf79f5a;var _0x83899c;return _0x3b3caa?((_0x83899c=_0x22539b[_0x14d957(0x3a6)])==null?void 0x0:_0x83899c[_0x14d957(0x385)](_0x22539b,_0x1f85e8,_0x4e5c89))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x38476b,_0x3e61b4)=>tn(_0x38476b,_0x3e61b4),'filter':(_0x4e35e8,_0x6d089a,_0x4dfba0,_0x3ada40)=>nn(_0x4e35e8,_0x6d089a,_0x4dfba0,_0x3ada40),'toPlainText':_0x22539b['toPlainText']??(_0x1c92f6=>_0x1c92f6==null?'':String(_0x1c92f6)),'fromPlainText':_0x22539b[_0xf79f5a(0x293)]??(_0x4ea477=>_0x3d6be5(_0x4ea477,{'id':'','name':'','type':_0x34ee3e,'config':{}})),'getCapabilities':()=>({...Zt,..._0x683fe8,'editable':_0x3b3caa&&(_0x683fe8[_0xf79f5a(0x2e8)]??Zt[_0xf79f5a(0x2e8)])})};}function xn(){const _0x3f6a53=_0x274f9f;return[H(_0x11438e['Text'],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x3f6a53(0x383)}),'createDefaultValue':_0x336df8=>_0x336df8[_0x3f6a53(0x319)]??''}),H(_0x11438e[_0x3f6a53(0x282)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x5d3821=>_0x5d3821==null||_0x5d3821===''?null:String(_0x5d3821),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x3f6a53(0x4e2)}})}),H(_0x11438e[_0x3f6a53(0x3a5)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x53ac9c=>Array[_0x3f6a53(0x39e)](_0x53ac9c)?_0x53ac9c['map'](String):_0x53ac9c==null?[]:[String(_0x53ac9c)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x3f6a53(0x4e2)}}),'createDefaultValue':_0x284bb0=>_0x284bb0[_0x3f6a53(0x319)]??[]}),H(_0x11438e[_0x3f6a53(0x33d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},En,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x3f6a53(0x276)}),'validate':Dn}),H(_0x11438e[_0x3f6a53(0x1f9)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},wn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x3f6a53(0x394)}),'createDefaultValue':_0x4d5733=>_0x4d5733[_0x3f6a53(0x319)]??[],'validate':On}),H(_0x11438e[_0x3f6a53(0x44b)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x225868=>Gt(_0x225868),{'createDefaultConfig':()=>Cn(),'validate':kn}),H(_0x11438e[_0x3f6a53(0x31e)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x5ba4d2=>_0x5ba4d2==null?[]:Array[_0x3f6a53(0x39e)](_0x5ba4d2)?_0x5ba4d2:[_0x5ba4d2],{'createDefaultValue':_0x36e0ce=>_0x36e0ce[_0x3f6a53(0x319)]??[]}),H(_0x11438e[_0x3f6a53(0x43e)],{},_0x3a7c39=>_0x3a7c39==null||_0x3a7c39===''?null:Number(_0x3a7c39),{'createDefaultConfig':()=>Sn(),'validate':An}),H(_0x11438e[_0x3f6a53(0x44d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x491534=>_0x491534===!0x0||_0x491534===_0x3f6a53(0x416)||_0x491534===0x1||_0x491534==='1',{'createDefaultConfig':()=>({'icon':_0x3f6a53(0x4c6),'color':_0x3f6a53(0x23b)}),'createDefaultValue':_0x1d7c1f=>_0x1d7c1f['defaultValue']??!0x1,'validate':_0x118b59=>typeof _0x118b59==_0x3f6a53(0x4ed)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3f6a53(0x2a7)}}),H(_0x11438e[_0x3f6a53(0x2fa)],{'supportsRelation':!0x0},Mn,{'createDefaultConfig':()=>({'placeholder':_0x3f6a53(0x3fe)}),'toPlainText':_0x268883=>Nn(_0x268883),'fromPlainText':_0x4396ed=>Mn(_0x4396ed)}),H(_0x11438e['Formula'],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x3f6a53(0x2f0),'pattern':'General'}}),'createDefaultValue':()=>null}),H(_0x11438e[_0x3f6a53(0x24e)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x3f6a53(0x28a)}),'createDefaultValue':()=>null}),H(_0x11438e['Phone'],{'usableAsTitle':!0x0},_0xe303fb=>_0xe303fb==null?null:String(_0xe303fb)[_0x3f6a53(0x2ba)](),{'validate':_0x26a589=>_0x26a589==null||_0x26a589===''||/^\+?[0-9 ()-]{6,20}$/[_0x3f6a53(0x2a6)](String(_0x26a589))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3f6a53(0x2e4)}}),H(_0x11438e[_0x3f6a53(0x2c1)],{'usableAsTitle':!0x0},_0x20a4ee=>_0x20a4ee==null?null:String(_0x20a4ee)[_0x3f6a53(0x2ba)](),{'validate':_0x1cdfb5=>_0x1cdfb5==null||_0x1cdfb5===''||Fn(String(_0x1cdfb5))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3f6a53(0x4c9)}}),H(_0x11438e[_0x3f6a53(0x298)],{'usableAsGanttProgress':!0x0},_0x11cf9f=>_0x11cf9f==null||_0x11cf9f===''?null:Number(_0x11cf9f),{'createDefaultConfig':()=>({'format':_0x3f6a53(0x4f6),'decimalPlaces':0x0,'color':_0x3f6a53(0x484),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x2379b8,_0x2b4dbd)=>jn(_0x2379b8,_0x2b4dbd,_0x3f6a53(0x20e))}),H(_0x11438e['Currency'],{},_0x1dbe74=>_0x1dbe74==null||_0x1dbe74===''?null:Number(_0x1dbe74),{'createDefaultConfig':()=>({...Sn(),'currencySymbol':'$'}),'validate':An}),H(_0x11438e['Rating'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x27922c=>_0x27922c==null||_0x27922c===''?null:Number(_0x27922c),{'createDefaultConfig':()=>({'icon':_0x3f6a53(0x228),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x14f5d2,_0x231c74)=>jn(_0x14f5d2,_0x231c74,_0x3f6a53(0x51f))}),H(_0x11438e[_0x3f6a53(0x24c)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Tn,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x14f206,_0x425a1b)=>Ee(_0x14f206,_0x425a1b[_0x3f6a53(0x427)][_0x3f6a53(0x501)]===!0x0)}),H(_0x11438e[_0x3f6a53(0x20d)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x11438e[_0x3f6a53(0x4ac)],{'editable':!0x1,'groupable':!0x0},_0xc68497=>_0xc68497==null?null:String(_0xc68497),{'createDefaultConfig':()=>({'provider':_0x3f6a53(0x452)}),'createDefaultValue':()=>null}),H(_0x11438e[_0x3f6a53(0x278)],{'editable':!0x1,'groupable':!0x0},_0x5d67ea=>_0x5d67ea==null?null:String(_0x5d67ea),{'createDefaultConfig':()=>({'provider':_0x3f6a53(0x452)}),'createDefaultValue':()=>null}),H(_0x11438e[_0x3f6a53(0x33f)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x24f8aa=>Gt(_0x24f8aa),{'createDefaultConfig':()=>Cn(),'createDefaultValue':()=>null,'validate':kn}),H(_0x11438e[_0x3f6a53(0x2df)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x44ee2b=>Gt(_0x44ee2b),{'createDefaultConfig':()=>Cn(),'createDefaultValue':()=>null,'validate':kn})];}function Sn(){const _0x50b52f=_0x274f9f;return{'pattern':_0x50b52f(0x3fa),'decimalPlaces':0x2,'separatorStyle':_0x50b52f(0x29b),'useThousands':!0x0,'abbreviation':_0x50b52f(0x52a),'allowNegative':!0x0};}function Cn(){const _0x1de1d4=_0x274f9f;return{'locale':'en-US','pattern':_0x1de1d4(0x3b0),'includeTime':!0x1,'hourCycle':_0x1de1d4(0x48d),'defaultMode':_0x1de1d4(0x52a)};}function wn(_0x52d171){const _0x199260=_0x274f9f;return _0x52d171==null||_0x52d171===''?[]:Array[_0x199260(0x39e)](_0x52d171)?_0x52d171[_0x199260(0x22e)](String):[String(_0x52d171)];}function Tn(_0x5a210e){const _0x36f1a9=_0x274f9f;return typeof _0x5a210e==_0x36f1a9(0x3c6)?_0x5a210e:'';}function En(_0x116d0b,_0x5caf39){const _0x41443f=_0x274f9f;return _0x116d0b==null||_0x116d0b===''?_0x5caf39[_0x41443f(0x427)][_0x41443f(0x20b)]===!0x0?[]:null:_0x5caf39[_0x41443f(0x427)][_0x41443f(0x20b)]===!0x0?Array[_0x41443f(0x39e)](_0x116d0b)?_0x116d0b[_0x41443f(0x22e)](String):[String(_0x116d0b)]:Array[_0x41443f(0x39e)](_0x116d0b)?String(_0x116d0b[0x0]??'')||null:String(_0x116d0b);}function Dn(_0x30679c,_0x72703){const _0x49f0ad=_0x274f9f;return _0x72703[_0x49f0ad(0x427)][_0x49f0ad(0x20b)]===!0x0?On(_0x30679c):_0x30679c==null||_0x30679c===''||typeof _0x30679c==_0x49f0ad(0x3c6)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x49f0ad(0x42a)};}function On(_0x554d63){const _0x4bf591=_0x274f9f;return _0x554d63==null||Array[_0x4bf591(0x39e)](_0x554d63)&&_0x554d63[_0x4bf591(0x4ea)](_0x4c6112=>typeof _0x4c6112==_0x4bf591(0x3c6))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4bf591(0x4e7)};}function kn(_0x51d349){const _0x175ed6=_0x274f9f;return _0x51d349==null||typeof _0x51d349==_0x175ed6(0x4b3)&&Number[_0x175ed6(0x1ee)](_0x51d349)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20date\x20value.'};}function An(_0x3bcf2e,_0x362220){const _0x1124ef=_0x274f9f;return _0x3bcf2e==null||_0x3bcf2e===''?{'valid':!0x0}:typeof _0x3bcf2e!='number'||!Number['isFinite'](_0x3bcf2e)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x362220[_0x1124ef(0x427)][_0x1124ef(0x240)]===!0x1&&_0x3bcf2e<0x0?{'valid':!0x1,'reason':_0x1124ef(0x294)}:{'valid':!0x0};}function jn(_0x53eace,_0x5c3850,_0x38a60a){const _0x5ec0f0=_0x274f9f;let _0x516fc3=An(_0x53eace,_0x5c3850);if(!_0x516fc3['valid']||_0x53eace==null||_0x53eace==='')return _0x516fc3;let _0x4639c3=Number(_0x5c3850['config'][_0x5ec0f0(0x4ff)]??_0x5c3850[_0x5ec0f0(0x427)]['start']??0x0),_0x31b246=Number(_0x5c3850[_0x5ec0f0(0x427)][_0x5ec0f0(0x3f9)]??_0x5c3850['config'][_0x5ec0f0(0x417)]??0x64),_0x1560fb=Number(_0x53eace);return _0x1560fb>=_0x4639c3&&_0x1560fb<=_0x31b246?{'valid':!0x0}:{'valid':!0x1,'reason':_0x38a60a};}function Mn(_0x48ff41){const _0x156a48=_0x274f9f;if(_0x48ff41==null||_0x48ff41==='')return null;if(typeof _0x48ff41=='object'&&!Array[_0x156a48(0x39e)](_0x48ff41)){let _0x28adfd=_0x48ff41,_0x24283a=typeof _0x28adfd['text']=='string'?_0x28adfd[_0x156a48(0x2d7)]['trim']():'',_0x4ceffe=typeof _0x28adfd[_0x156a48(0x3bb)]==_0x156a48(0x3c6)?_0x28adfd[_0x156a48(0x3bb)]['trim']():'',_0x1493e4=Pn(_0x4ceffe||_0x24283a);return _0x1493e4?{'text':_0x24283a||_0x4ceffe||_0x1493e4,'url':_0x1493e4}:null;}let _0x1a014f=String(_0x48ff41)[_0x156a48(0x2ba)](),_0x38a00f=Pn(_0x1a014f);return _0x38a00f?{'text':_0x1a014f,'url':_0x38a00f}:null;}function Nn(_0x55f34d){const _0x46f282=_0x274f9f;if(_0x55f34d==null)return'';if(typeof _0x55f34d=='object'&&!Array[_0x46f282(0x39e)](_0x55f34d)){let _0x2f24be=_0x55f34d;return String(_0x2f24be[_0x46f282(0x2d7)]||_0x2f24be[_0x46f282(0x3bb)]||'');}return String(_0x55f34d);}function Pn(_0x55d0bf){const _0x23123f=_0x274f9f;let _0x1c2edb=_0x55d0bf['trim']();if(!_0x1c2edb)return'';let _0x4652b1=/^[a-z][a-z\d+.-]*:/i[_0x23123f(0x2a6)](_0x1c2edb)?_0x1c2edb:_0x1c2edb[_0x23123f(0x1f7)]('//')?_0x23123f(0x463)+_0x1c2edb:_0x23123f(0x4f4)+_0x1c2edb;try{let _0x15e34b=new URL(_0x4652b1);return _0x15e34b['protocol']===_0x23123f(0x405)||_0x15e34b['protocol']===_0x23123f(0x463)?_0x15e34b[_0x23123f(0x2a9)]:'';}catch{return'';}}function Fn(_0x49ecb5){const _0x529cdd=_0x274f9f;let _0x5ddcc6=_0x49ecb5[_0x529cdd(0x502)]('@');if(_0x5ddcc6<=0x0||_0x5ddcc6!==_0x49ecb5[_0x529cdd(0x3f3)]('@'))return!0x1;let _0x3baae=_0x49ecb5['slice'](_0x5ddcc6+0x1);return _0x3baae[_0x529cdd(0x1d2)]('.')&&!_0x49ecb5['includes']('\x20')&&!_0x3baae[_0x529cdd(0x1f7)]('.')&&!_0x3baae[_0x529cdd(0x4fa)]('.');}const U={'table':_0x959a6=>[_0x274f9f(0x529),_0x959a6],'field':(_0x227cb0,_0x5245dd)=>[_0x274f9f(0x529),_0x227cb0,_0x274f9f(0x39f),_0x5245dd],'fieldOrder':(_0x357887,_0x10cd91)=>['tables',_0x357887,'fieldOrder',_0x10cd91],'record':(_0x9ae154,_0x4dce03)=>[_0x274f9f(0x529),_0x9ae154,_0x274f9f(0x3c4),_0x4dce03],'cell':(_0x13b155,_0x13f81a,_0x29bdfb)=>['tables',_0x13b155,_0x274f9f(0x3c4),_0x13f81a,_0x274f9f(0x33c),_0x29bdfb],'cellData':(_0x5520e3,_0x15a956,_0x51bccc)=>[_0x274f9f(0x529),_0x5520e3,_0x274f9f(0x434),String(_0x15a956),String(_0x51bccc)],'attachmentSet':(_0x2a59f5,_0x1cc2fe)=>[_0x274f9f(0x529),_0x2a59f5,_0x274f9f(0x42d),_0x274f9f(0x2f3),_0x1cc2fe],'attachment':(_0x5172e4,_0x3bda66)=>['tables',_0x5172e4,_0x274f9f(0x42d),_0x274f9f(0x486),_0x3bda66],'view':(_0x4e8cc6,_0x94da8e)=>[_0x274f9f(0x529),_0x4e8cc6,_0x274f9f(0x22d),_0x94da8e],'viewFieldHidden':(_0x29303d,_0x5bda1a,_0x15fe88)=>[_0x274f9f(0x529),_0x29303d,_0x274f9f(0x22d),_0x5bda1a,'fieldSettings',_0x15fe88,_0x274f9f(0x418)]};var W=class{['setBaseName'](_0xf500ac,_0x2c9364){const _0x2e031d=_0x274f9f;let _0x498d99=this['renameFormulaUnitReferences'](_0xf500ac,_0xf500ac['name'],_0x2c9364);return R([this[_0x2e031d(0x408)]([_0x2e031d(0x248)],_0xf500ac['name'],_0x2c9364),..._0x498d99?[_0x498d99]:[]]);}[_0x274f9f(0x49c)](_0x1b91ac,_0x46dcf1,_0x2b532b){const _0x503238=_0x274f9f;let _0x393549=Object[_0x503238(0x33c)](_0x1b91ac[_0x503238(0x529)])[_0x503238(0x25e)](_0x34e92b=>Object['values'](_0x34e92b[_0x503238(0x39f)])['flatMap'](_0x7f8b5b=>{const _0x2f5c01=_0x503238;var _0x13c864,_0x2ff4c0;if(_0x7f8b5b['type']!==_0x11438e[_0x2f5c01(0x525)])return[];let _0x2ac725=String(((_0x13c864=_0x7f8b5b['config'])==null?void 0x0:_0x13c864[_0x2f5c01(0x2c3)])??''),_0x16763d=_0x4bae62(_0x2ac725,_0x46dcf1,_0x2b532b);return _0x16763d===_0x2ac725?[]:[this[_0x2f5c01(0x408)]([...U[_0x2f5c01(0x4e6)](_0x34e92b['id'],_0x7f8b5b['id']),_0x2f5c01(0x427),_0x2f5c01(0x2c3)],(_0x2ff4c0=_0x7f8b5b[_0x2f5c01(0x427)])==null?void 0x0:_0x2ff4c0[_0x2f5c01(0x2c3)],_0x16763d)];}));return _0x393549[_0x503238(0x353)]>0x0?R(_0x393549):void 0x0;}[_0x274f9f(0x494)](_0x2d5c7d,_0x5a1044,_0x3de84a=_0x2d5c7d['tableOrder'][_0x274f9f(0x353)]){const _0x37708e=_0x274f9f;return R([_0x356391['insertOp'](U[_0x37708e(0x258)](_0x5a1044['id']),_0x5a1044),_0x356391[_0x37708e(0x1ff)](['tableOrder',_0x3de84a],_0x5a1044['id'])]);}['renameTable'](_0x2ae269,_0x389c46,_0x44ff58){const _0x180763=_0x274f9f;let _0x50fa70=_0x2ae269[_0x180763(0x529)][_0x389c46]['name'],_0x369446=Object['values'](_0x2ae269[_0x180763(0x529)])[_0x180763(0x25e)](_0x28a749=>Object[_0x180763(0x33c)](_0x28a749[_0x180763(0x39f)])[_0x180763(0x25e)](_0x5ef12f=>{const _0x4f8c14=_0x180763;var _0x3cfd86;if(_0x5ef12f[_0x4f8c14(0x2b9)]!==_0x11438e[_0x4f8c14(0x525)])return[];let _0x11edcf=String(((_0x3cfd86=_0x5ef12f[_0x4f8c14(0x427)])==null?void 0x0:_0x3cfd86['formula'])??''),_0x41d983=Hn(_0x11edcf,_0x50fa70,_0x44ff58);return _0x41d983===_0x11edcf?[]:[this[_0x4f8c14(0x279)](_0x2ae269,_0x28a749['id'],_0x5ef12f['id'],{'config':{..._0x5ef12f['config'],'formula':_0x41d983}})];}));return R([_0x356391['replaceOp']([...U[_0x180763(0x258)](_0x389c46),'name'],_0x50fa70,_0x44ff58),..._0x369446]);}[_0x274f9f(0x2ee)](_0x591298,_0x116ac9){const _0x3d7e7d=_0x274f9f;let _0x1c9711=_0x591298['tables'][_0x116ac9],_0x56db7e=_0x591298[_0x3d7e7d(0x4ab)][_0x3d7e7d(0x502)](_0x116ac9);return R([_0x356391[_0x3d7e7d(0x26e)](U['table'](_0x116ac9),_0x1c9711),_0x356391['removeOp']([_0x3d7e7d(0x4ab),_0x56db7e],_0x116ac9)]);}[_0x274f9f(0x27a)](_0xa68e57,_0x5ccb19,_0x1159be){const _0x5937d0=_0x274f9f;return this[_0x5937d0(0x1e7)](_0xa68e57,_0x5ccb19,[_0x1159be]);}['createRecords'](_0x4585fe,_0x44b1d9,_0x6f0cdf){const _0x195940=_0x274f9f;let _0x301fbb=_0x4585fe[_0x195940(0x529)][_0x44b1d9],_0x2eb249=_0x6f0cdf[_0x195940(0x458)](_0x239827=>_0x239827&&!_0x301fbb['records'][_0x239827['id']])['map'](_0x1696a2=>({..._0x1696a2,'values':{..._0x1696a2[_0x195940(0x33c)],[_0x525439]:_0x1696a2['id']}}));if(!_0x2eb249[_0x195940(0x353)])return _0x356391[_0x195940(0x2e2)]([...U[_0x195940(0x258)](_0x44b1d9),_0x195940(0x3c4)],_0x301fbb[_0x195940(0x3c4)],_0x301fbb[_0x195940(0x3c4)]);let _0x2f915a=new _0x356391[(_0x195940(0x211))](),_0x2928e6=[..._0x2eb249]['sort']((_0x24d8cb,_0x2d712a)=>_0x24d8cb['id']<_0x2d712a['id']?-0x1:+(_0x24d8cb['id']>_0x2d712a['id'])),_0x53f11f=[...U[_0x195940(0x258)](_0x44b1d9),_0x195940(0x3c4)];_0x2f915a[_0x195940(0x1e8)](_0x53f11f);for(let _0x13ac3e of _0x2928e6)_0x2f915a['descend'](_0x13ac3e['id']),_0x2f915a['write']('i',_0x13ac3e),_0x2f915a[_0x195940(0x342)]();for(let _0x27acc5=0x0;_0x27acc5<_0x53f11f[_0x195940(0x353)];_0x27acc5+=0x1)_0x2f915a[_0x195940(0x342)]();return R([_0x2f915a[_0x195940(0x23e)](),this['_createRecordOrderOp'](_0x4585fe,_0x44b1d9,_0x2eb249)]);}[_0x274f9f(0x497)](_0x8b747f,_0x2eb3df,_0x454149){const _0x200c22=_0x274f9f;return this[_0x200c22(0x387)](_0x8b747f,_0x2eb3df,[_0x454149]);}[_0x274f9f(0x387)](_0x183673,_0x35848e,_0x2427fc){const _0x4fec39=_0x274f9f;let _0x2c7f5d=_0x183673[_0x4fec39(0x529)][_0x35848e],_0x1c905b=Array['from'](new Set(_0x2427fc))[_0x4fec39(0x458)](_0x51d5d3=>_0x2c7f5d['records'][_0x51d5d3]);if(!_0x1c905b[_0x4fec39(0x353)])return _0x356391[_0x4fec39(0x2e2)]([...U[_0x4fec39(0x258)](_0x35848e),_0x4fec39(0x3c4)],_0x2c7f5d[_0x4fec39(0x3c4)],_0x2c7f5d[_0x4fec39(0x3c4)]);let _0xf4383d=new Set(_0x1c905b),_0x550ad3=ze(_0x2c7f5d,_0x1c905b)[_0x4fec39(0x22e)](_0x65d81e=>this[_0x4fec39(0x329)](_0x183673,_0x35848e,_0x65d81e['recordId'],_0x65d81e[_0x4fec39(0x419)],'')),_0x5cc2f3=_0x1c905b[_0x4fec39(0x22e)](_0x1c9973=>{const _0x561d5e=_0x4fec39;var _0x5a3acc;return{'recordId':_0x1c9973,'index':((_0x5a3acc=_0x2c7f5d[_0x561d5e(0x4fd)])==null?void 0x0:_0x5a3acc[_0x561d5e(0x502)](_0x1c9973))??-0x1};})['filter'](_0x456a76=>_0x456a76[_0x4fec39(0x519)]>=0x0)['sort']((_0x461c6e,_0x4a13e6)=>_0x4a13e6[_0x4fec39(0x519)]-_0x461c6e[_0x4fec39(0x519)]);return R([..._0x1c905b[_0x4fec39(0x22e)](_0xc111f5=>_0x356391[_0x4fec39(0x26e)](U[_0x4fec39(0x46a)](_0x35848e,_0xc111f5),_0x2c7f5d[_0x4fec39(0x3c4)][_0xc111f5])),..._0x5cc2f3[_0x4fec39(0x22e)](({recordId:_0x5ceb26,index:_0x33281f})=>_0x356391['removeOp']([_0x4fec39(0x529),_0x35848e,_0x4fec39(0x4fd),_0x33281f],_0x5ceb26)),..._0x550ad3,...this['_deleteAttachmentResources'](_0x2c7f5d,_0x35848e,_0x386dff=>{const _0x597318=_0x4fec39;let _0x16d690=_0x386dff[_0x597318(0x51c)](_0x386dff[_0x597318(0x3f3)]('\x1f')+0x1);return _0xf4383d[_0x597318(0x51e)](_0x16d690);})]);}['duplicateRecord'](_0x27af6f,_0x366c62,_0x1cf531,_0x269ea4){const _0x1ad5f1=_0x274f9f;return this[_0x1ad5f1(0x27a)](_0x27af6f,_0x366c62,{..._0x269ea4,'values':{..._0x27af6f[_0x1ad5f1(0x529)][_0x366c62][_0x1ad5f1(0x3c4)][_0x1cf531]['values'],..._0x269ea4[_0x1ad5f1(0x33c)],[_0x525439]:_0x269ea4['id']}});}['updateRecordOrder'](_0x2d896a,_0xdbc8fe,_0x1320ff,_0x47ffd1){const _0x524a24=_0x274f9f;let _0x18f44b=_0x2d896a[_0x524a24(0x529)][_0xdbc8fe],_0x5b8988=[...U[_0x524a24(0x46a)](_0xdbc8fe,_0x1320ff),_0x524a24(0x280)],_0x21a6ff=Object['values'](_0x18f44b[_0x524a24(0x3c4)])[_0x524a24(0x22e)](_0x299ef6=>_0x299ef6['id']===_0x1320ff?{..._0x299ef6,'orderKey':_0x47ffd1}:_0x299ef6)[_0x524a24(0x456)]((_0x112672,_0x3555ea)=>String(_0x112672[_0x524a24(0x280)]??_0x112672['id'])[_0x524a24(0x1fe)](String(_0x3555ea[_0x524a24(0x280)]??_0x3555ea['id'])))['map'](_0x515889=>_0x515889['id']),_0x347db0=[...U['table'](_0xdbc8fe),_0x524a24(0x4fd)];return R([this[_0x524a24(0x408)](_0x5b8988,_0x18f44b[_0x524a24(0x3c4)][_0x1320ff][_0x524a24(0x280)],_0x47ffd1),_0x18f44b[_0x524a24(0x4fd)]?_0x356391[_0x524a24(0x2e2)](_0x347db0,_0x18f44b[_0x524a24(0x4fd)],_0x21a6ff):_0x356391['insertOp'](_0x347db0,_0x21a6ff)]);}['updateCell'](_0x5c4701,_0x2c7e49,_0x35e6d6,_0x14f11e,_0x35ec2b){const _0x1c25be=_0x274f9f;var _0x43d8d9,_0x1ff132;let _0x14e2e7=_0x5c4701[_0x1c25be(0x529)][_0x2c7e49],_0x4e285d=In(_0x14e2e7,_0x35e6d6,_0x14f11e)?_0x14e2e7:L(_0x14e2e7),_0x331fbe=(_0x43d8d9=_0x4e285d['rowIndex'])==null?void 0x0:_0x43d8d9[_0x35e6d6],_0x5f0520=(_0x1ff132=_0x4e285d['colIndex'])==null?void 0x0:_0x1ff132[_0x14f11e];if(_0x331fbe==null||_0x5f0520==null){var _0x3baa05;return this[_0x1c25be(0x408)](U[_0x1c25be(0x3aa)](_0x2c7e49,_0x35e6d6,_0x14f11e),(_0x3baa05=_0x5c4701[_0x1c25be(0x529)][_0x2c7e49])==null||(_0x3baa05=_0x3baa05[_0x1c25be(0x3c4)][_0x35e6d6])==null?void 0x0:_0x3baa05['values'][_0x14f11e],_0x35ec2b);}return this[_0x1c25be(0x467)](_0x5c4701,_0x2c7e49,[{'row':_0x331fbe,'col':_0x5f0520,'value':_0x35ec2b}]);}[_0x274f9f(0x27f)](_0x48a874,_0x36b4c8,_0x5deec3){const _0x38e4ac=_0x274f9f;let _0x8f3362=_0x48a874[_0x38e4ac(0x529)][_0x36b4c8],_0x163d56=_0x5deec3[_0x38e4ac(0x4ea)](_0x3c9c4b=>Object[_0x38e4ac(0x311)](_0x3c9c4b[_0x38e4ac(0x33c)])['every'](_0x567041=>In(_0x8f3362,_0x3c9c4b['recordId'],_0x567041)))?_0x8f3362:L(_0x8f3362),_0x52956f=_0x5deec3['flatMap'](_0x122db9=>Object[_0x38e4ac(0x2d4)](_0x122db9[_0x38e4ac(0x33c)])[_0x38e4ac(0x25e)](([_0x92d1aa,_0x3b4a84])=>{const _0x5cc20c=_0x38e4ac;var _0x36a371,_0x91ea5f;let _0x2f74b8=(_0x36a371=_0x163d56[_0x5cc20c(0x269)])==null?void 0x0:_0x36a371[_0x122db9['recordId']],_0x326c3f=(_0x91ea5f=_0x163d56[_0x5cc20c(0x4b9)])==null?void 0x0:_0x91ea5f[_0x92d1aa];return _0x2f74b8==null||_0x326c3f==null?[]:[{'row':_0x2f74b8,'col':_0x326c3f,'value':_0x3b4a84}];})),_0x2967fd=_0x5deec3['flatMap'](_0x5ed8cc=>Object['entries'](_0x5ed8cc[_0x38e4ac(0x217)]??{})[_0x38e4ac(0x22e)](([_0x2e7722,_0x14f13f])=>{const _0x33f995=_0x38e4ac;var _0x9091f;let _0x2b90bf=[...U['record'](_0x36b4c8,_0x5ed8cc['recordId']),_0x2e7722],_0x19eafd=(_0x9091f=_0x48a874[_0x33f995(0x529)][_0x36b4c8])==null||(_0x9091f=_0x9091f['records'][_0x5ed8cc['recordId']])==null?void 0x0:_0x9091f[_0x2e7722];return this['_replaceOptional'](_0x2b90bf,_0x19eafd,_0x14f13f);}));return R([this[_0x38e4ac(0x467)](_0x48a874,_0x36b4c8,_0x52956f),..._0x2967fd]);}['setRangeValues'](_0x128c5f,_0x5e145b,_0x5b0986){const _0x10db0f=_0x274f9f;let _0x38c7dd=_0x128c5f[_0x10db0f(0x529)][_0x5e145b],_0x5104ac=_0x5b0986[_0x10db0f(0x4ea)](_0x4e43e8=>Ln(_0x38c7dd,_0x4e43e8[_0x10db0f(0x264)],_0x4e43e8[_0x10db0f(0x355)]))?_0x38c7dd:L(_0x38c7dd),_0x243f94=_0x5b0986[_0x10db0f(0x25e)](_0x50663f=>{const _0x172c5d=_0x10db0f;var _0x92c819,_0x24880e,_0x1da700,_0x59e917;let _0x2ec9cb=(_0x92c819=_0x5104ac[_0x172c5d(0x4bd)])==null?void 0x0:_0x92c819[_0x50663f[_0x172c5d(0x355)]],_0x417627=(_0x24880e=_0x5104ac['rowId'])==null?void 0x0:_0x24880e[_0x50663f[_0x172c5d(0x264)]],_0x352224=_0x2ec9cb?_0x5104ac[_0x172c5d(0x39f)][_0x2ec9cb]:void 0x0;if(_0x2ec9cb===_0x525439||(_0x352224==null?void 0x0:_0x352224[_0x172c5d(0x2b9)])===_0x11438e['RecordId'])throw Error(_0x172c5d(0x4be));let _0x509f26=at(_0x50663f[_0x172c5d(0x42f)],_0x352224),_0x4e9d25=(_0x1da700=_0x5104ac[_0x172c5d(0x434)])==null||(_0x1da700=_0x1da700[_0x50663f['row']])==null?void 0x0:_0x1da700[_0x50663f[_0x172c5d(0x355)]],_0x22938e=this[_0x172c5d(0x408)](U[_0x172c5d(0x434)](_0x5e145b,_0x50663f['row'],_0x50663f[_0x172c5d(0x355)]),_0x4e9d25,_0x509f26);if(!_0x2ec9cb||!_0x417627)return[_0x22938e];let _0x26e5c7=(_0x59e917=_0x5104ac['records'][_0x417627])==null?void 0x0:_0x59e917['values'][_0x2ec9cb],_0x6ffdaa=(_0x352224==null?void 0x0:_0x352224[_0x172c5d(0x2b9)])===_0x11438e[_0x172c5d(0x31e)]?pt(_0x50663f[_0x172c5d(0x42f)]):ct(_0x50663f['value'],_0x509f26,_0x352224,_0x5104ac,_0x417627),_0xd69764=[_0x22938e,this['_replaceOptional'](U[_0x172c5d(0x3aa)](_0x5e145b,_0x417627,_0x2ec9cb),_0x26e5c7,_0x6ffdaa)];if((_0x352224==null?void 0x0:_0x352224[_0x172c5d(0x2b9)])!==_0x11438e[_0x172c5d(0x31e)])return _0xd69764;let _0x149010=this[_0x172c5d(0x351)](_0x5104ac,_0x5e145b,_0x417627,_0x2ec9cb,_0x6ffdaa);return[..._0xd69764,..._0x149010];});return _0x243f94[_0x10db0f(0x353)]?R(_0x243f94):_0x356391[_0x10db0f(0x2e2)]([_0x10db0f(0x529),_0x5e145b,'cellData'],_0x5104ac[_0x10db0f(0x434)],_0x5104ac[_0x10db0f(0x434)]);}[_0x274f9f(0x3f5)](_0x5775d8,_0x1bce0f,_0x2f7f61){const _0x433f9d=_0x274f9f;let _0x3d6526=_0x5775d8[_0x433f9d(0x529)][_0x1bce0f];if(_0x3d6526['fields'][_0x2f7f61[_0x433f9d(0x4e6)]['id']]||_0x3d6526[_0x433f9d(0x47a)]['includes'](_0x2f7f61[_0x433f9d(0x4e6)]['id']))return _0x356391[_0x433f9d(0x2e2)](['tables',_0x1bce0f,_0x433f9d(0x47a)],_0x3d6526[_0x433f9d(0x47a)],_0x3d6526[_0x433f9d(0x47a)]);let _0xad4a64=Math['max'](0x1,_0x2f7f61[_0x433f9d(0x519)]??_0x3d6526[_0x433f9d(0x47a)][_0x433f9d(0x353)]),_0x2e97b2=Object[_0x433f9d(0x33c)](_0x3d6526[_0x433f9d(0x22d)]??{})[_0x433f9d(0x25e)](_0x17ede1=>{const _0x4673a6=_0x433f9d;var _0x4c0b29;if(!_0x17ede1['fieldOrder']||_0x17ede1[_0x4673a6(0x47a)][_0x4673a6(0x1d2)](_0x2f7f61[_0x4673a6(0x4e6)]['id']))return[];let _0x8b766c=Vn(((_0x4c0b29=_0x2f7f61[_0x4673a6(0x367)])==null?void 0x0:_0x4c0b29[_0x17ede1['id']])??_0xad4a64,_0x17ede1[_0x4673a6(0x47a)]['length']);return[_0x356391[_0x4673a6(0x1ff)]([...U[_0x4673a6(0x33a)](_0x1bce0f,_0x17ede1['id']),'fieldOrder',_0x8b766c],_0x2f7f61['field']['id'])];});return R([_0x356391[_0x433f9d(0x1ff)](U[_0x433f9d(0x4e6)](_0x1bce0f,_0x2f7f61['field']['id']),_0x2f7f61['field']),_0x356391[_0x433f9d(0x1ff)](U[_0x433f9d(0x47a)](_0x1bce0f,_0xad4a64),_0x2f7f61[_0x433f9d(0x4e6)]['id']),..._0x2e97b2]);}['duplicateField'](_0x44b218,_0x4dbf3f,_0x37fc2a,_0x4b7229){const _0x2a482a=_0x274f9f;let _0xdcb007=_0x44b218['tables'][_0x4dbf3f];if(!_0xdcb007[_0x2a482a(0x39f)][_0x37fc2a]||_0xdcb007[_0x2a482a(0x39f)][_0x4b7229['field']['id']]||_0xdcb007[_0x2a482a(0x47a)][_0x2a482a(0x1d2)](_0x4b7229['field']['id']))return _0x356391[_0x2a482a(0x2e2)](['tables',_0x4dbf3f,_0x2a482a(0x47a)],_0xdcb007[_0x2a482a(0x47a)],_0xdcb007[_0x2a482a(0x47a)]);let _0x52a446=_0x4b7229[_0x2a482a(0x519)]??_0xdcb007[_0x2a482a(0x47a)][_0x2a482a(0x502)](_0x37fc2a)+0x1,_0x336a7c=_0xdcb007[_0x2a482a(0x47a)]['filter'](_0x4233e3=>_0x4233e3!==_0x4b7229[_0x2a482a(0x4e6)]['id']),_0x445cb3=zn(_0x336a7c,_0x4b7229[_0x2a482a(0x4e6)]['id'],_0x52a446),_0x525b45=Object[_0x2a482a(0x33c)](_0xdcb007['views']??{})[_0x2a482a(0x25e)](_0x4d06a0=>{const _0x1d3f96=_0x2a482a;var _0x352155,_0x2ae9cb,_0x396916,_0x21fe20;let _0x5afc6b=(_0x352155=_0x4d06a0[_0x1d3f96(0x47a)])!=null&&_0x352155[_0x1d3f96(0x353)]?_0x4d06a0[_0x1d3f96(0x47a)]:_0x336a7c;if(_0x5afc6b[_0x1d3f96(0x1d2)](_0x4b7229[_0x1d3f96(0x4e6)]['id']))return[];let _0x57bcd3=zn(_0x5afc6b,_0x4b7229[_0x1d3f96(0x4e6)]['id'],((_0x2ae9cb=_0x4b7229[_0x1d3f96(0x367)])==null?void 0x0:_0x2ae9cb[_0x4d06a0['id']])??_0x52a446),_0x24811d=(_0x396916=_0x4d06a0[_0x1d3f96(0x243)])==null?void 0x0:_0x396916[_0x37fc2a];return[this['_replaceOptional']([...U[_0x1d3f96(0x33a)](_0x4dbf3f,_0x4d06a0['id']),_0x1d3f96(0x47a)],_0x4d06a0[_0x1d3f96(0x47a)],_0x57bcd3),..._0x24811d?[this[_0x1d3f96(0x408)]([...U[_0x1d3f96(0x33a)](_0x4dbf3f,_0x4d06a0['id']),_0x1d3f96(0x243),_0x4b7229[_0x1d3f96(0x4e6)]['id']],(_0x21fe20=_0x4d06a0[_0x1d3f96(0x243)])==null?void 0x0:_0x21fe20[_0x4b7229[_0x1d3f96(0x4e6)]['id']],_0x24811d)]:[]];}),_0x11cc14=Object[_0x2a482a(0x33c)](_0xdcb007[_0x2a482a(0x3c4)])[_0x2a482a(0x458)](_0x22995a=>Object['prototype'][_0x2a482a(0x465)][_0x2a482a(0x385)](_0x22995a[_0x2a482a(0x33c)],_0x37fc2a))[_0x2a482a(0x22e)](_0x2d2dcf=>this[_0x2a482a(0x408)](U[_0x2a482a(0x3aa)](_0x4dbf3f,_0x2d2dcf['id'],_0x4b7229[_0x2a482a(0x4e6)]['id']),_0x2d2dcf['values'][_0x4b7229[_0x2a482a(0x4e6)]['id']],_0x2d2dcf[_0x2a482a(0x33c)][_0x37fc2a]));return R([_0x356391[_0x2a482a(0x1ff)](U[_0x2a482a(0x4e6)](_0x4dbf3f,_0x4b7229[_0x2a482a(0x4e6)]['id']),_0x4b7229['field']),_0x356391[_0x2a482a(0x2e2)]([_0x2a482a(0x529),_0x4dbf3f,_0x2a482a(0x47a)],_0xdcb007['fieldOrder'],_0x445cb3),..._0x525b45,..._0x11cc14]);}['updateField'](_0x3ba1cd,_0x5738ce,_0x35df98,_0x3ebaba){const _0x2af4b9=_0x274f9f;let _0x594165=_0x3ba1cd[_0x2af4b9(0x529)][_0x5738ce][_0x2af4b9(0x39f)][_0x35df98],_0x5d0932={..._0x594165,..._0x3ebaba};Object['keys'](_0x3ebaba)[_0x2af4b9(0x366)](_0x245311=>{_0x3ebaba[_0x245311]===void 0x0&&delete _0x5d0932[_0x245311];});let _0x45c05f=_0x356391[_0x2af4b9(0x2e2)](U['field'](_0x5738ce,_0x35df98),_0x594165,_0x5d0932);return _0x5d0932[_0x2af4b9(0x2b9)]===_0x11438e[_0x2af4b9(0x525)]?R([_0x45c05f,...this[_0x2af4b9(0x439)](_0x3ba1cd,_0x5738ce,_0x35df98,_0x5d0932)]):_0x45c05f;}[_0x274f9f(0x3b4)](_0x2ea7bd,_0x12f4fd,_0x46ce78,_0x18c24f){return this['updateField'](_0x2ea7bd,_0x12f4fd,_0x46ce78,_0x18c24f);}[_0x274f9f(0x25b)](_0x256cd4,_0x2e341a,_0x1f17ca){const _0x188715=_0x274f9f;let _0x359ca2=_0x256cd4['tables'][_0x2e341a];if(!(_0x359ca2!=null&&_0x359ca2[_0x188715(0x39f)][_0x1f17ca])||_0x359ca2['primaryFieldId']===_0x1f17ca||_0x1f17ca===_0x525439)return _0x356391[_0x188715(0x2e2)]([_0x188715(0x529),_0x2e341a,_0x188715(0x47a)],_0x359ca2==null?void 0x0:_0x359ca2[_0x188715(0x47a)],_0x359ca2==null?void 0x0:_0x359ca2['fieldOrder']);let _0x45305b=_0x359ca2['fieldOrder'][_0x188715(0x502)](_0x1f17ca),_0x250359=Object['values'](_0x359ca2[_0x188715(0x22d)])[_0x188715(0x25e)](_0x4b3026=>{const _0x1fefbe=_0x188715;var _0x3a1813,_0x539d4b,_0x32f686,_0x8f3d73,_0x49caa1,_0xb65beb,_0x27cbb9;let _0x5978ad=[],_0x5d41b8=((_0x3a1813=_0x4b3026['fieldOrder'])==null?void 0x0:_0x3a1813[_0x1fefbe(0x502)](_0x1f17ca))??-0x1;_0x5d41b8>=0x0&&_0x5978ad['push'](_0x356391['removeOp']([...U['view'](_0x2e341a,_0x4b3026['id']),_0x1fefbe(0x47a),_0x5d41b8],_0x1f17ca));let _0x5c391b=(_0x539d4b=_0x4b3026[_0x1fefbe(0x243)])==null?void 0x0:_0x539d4b[_0x1f17ca];_0x5c391b!==void 0x0&&_0x5978ad['push'](_0x356391[_0x1fefbe(0x26e)]([...U[_0x1fefbe(0x33a)](_0x2e341a,_0x4b3026['id']),_0x1fefbe(0x243),_0x1f17ca],_0x5c391b));let _0x8c9629=_0x4b3026['filter']?{..._0x4b3026[_0x1fefbe(0x458)],'conditions':_0x4b3026['filter'][_0x1fefbe(0x400)][_0x1fefbe(0x458)](_0x1bf95a=>_0x1bf95a[_0x1fefbe(0x419)]!==_0x1f17ca)}:_0x4b3026[_0x1fefbe(0x458)];_0x8c9629&&_0x8c9629['conditions'][_0x1fefbe(0x353)]!==((_0x32f686=_0x4b3026[_0x1fefbe(0x458)])==null?void 0x0:_0x32f686['conditions'][_0x1fefbe(0x353)])&&_0x5978ad[_0x1fefbe(0x254)](this[_0x1fefbe(0x408)]([...U['view'](_0x2e341a,_0x4b3026['id']),_0x1fefbe(0x458)],_0x4b3026[_0x1fefbe(0x458)],_0x8c9629));let _0xe8b60c=(_0x8f3d73=_0x4b3026['sort'])==null?void 0x0:_0x8f3d73[_0x1fefbe(0x458)](_0x3e62a2=>_0x3e62a2[_0x1fefbe(0x419)]!==_0x1f17ca);_0xe8b60c&&_0xe8b60c[_0x1fefbe(0x353)]!==((_0x49caa1=_0x4b3026[_0x1fefbe(0x456)])==null?void 0x0:_0x49caa1[_0x1fefbe(0x353)])&&_0x5978ad[_0x1fefbe(0x254)](this['_replaceOptional']([...U['view'](_0x2e341a,_0x4b3026['id']),'sort'],_0x4b3026['sort'],_0xe8b60c));let _0x5008d3=(_0xb65beb=_0x4b3026[_0x1fefbe(0x394)])==null?void 0x0:_0xb65beb[_0x1fefbe(0x458)](_0x19060f=>_0x19060f['fieldId']!==_0x1f17ca);_0x5008d3&&_0x5008d3['length']!==((_0x27cbb9=_0x4b3026['group'])==null?void 0x0:_0x27cbb9[_0x1fefbe(0x353)])&&_0x5978ad[_0x1fefbe(0x254)](this[_0x1fefbe(0x408)]([...U[_0x1fefbe(0x33a)](_0x2e341a,_0x4b3026['id']),_0x1fefbe(0x394)],_0x4b3026[_0x1fefbe(0x394)],_0x5008d3));let _0x56407e=Bn(_0x4b3026['config'],_0x1f17ca);return JSON[_0x1fefbe(0x2b6)](_0x56407e)!==JSON[_0x1fefbe(0x2b6)](_0x4b3026[_0x1fefbe(0x427)])&&_0x5978ad['push'](_0x356391[_0x1fefbe(0x2e2)]([...U[_0x1fefbe(0x33a)](_0x2e341a,_0x4b3026['id']),_0x1fefbe(0x427)],_0x4b3026['config'],_0x56407e)),_0x5978ad;}),_0x1ed68a=Object['values'](_0x359ca2[_0x188715(0x3c4)])[_0x188715(0x25e)](_0x36e918=>Object[_0x188715(0x20f)]['hasOwnProperty'][_0x188715(0x385)](_0x36e918['values'],_0x1f17ca)?[_0x356391[_0x188715(0x26e)](U['cell'](_0x2e341a,_0x36e918['id'],_0x1f17ca),_0x36e918['values'][_0x1f17ca])]:[]);return R([_0x356391[_0x188715(0x26e)](U[_0x188715(0x4e6)](_0x2e341a,_0x1f17ca),_0x359ca2['fields'][_0x1f17ca]),_0x356391[_0x188715(0x26e)](U[_0x188715(0x47a)](_0x2e341a,_0x45305b),_0x1f17ca),..._0x250359,..._0x1ed68a,...this[_0x188715(0x39b)](_0x359ca2,_0x2e341a,_0x101da7=>_0x101da7[_0x188715(0x1f7)](_0x1f17ca+'\x1f'))]);}[_0x274f9f(0x332)](_0x4ffbe1,_0x558cd1,_0x3fcbe3,_0x1311aa){const _0x3b6aed=_0x274f9f;let _0x22971b=_0x4ffbe1['tables'][_0x558cd1][_0x3b6aed(0x47a)];if(_0x3fcbe3===_0x525439||_0x1311aa[_0x3b6aed(0x341)]===_0x525439)throw Error(_0x3b6aed(0x32c));let _0x3b3c19=Rn(_0x22971b,_0x3fcbe3,_0x1311aa);return _0x356391[_0x3b6aed(0x2e2)]([_0x3b6aed(0x529),_0x558cd1,'fieldOrder'],_0x22971b,_0x3b3c19);}[_0x274f9f(0x4aa)](_0x13faec,_0x4614ad,_0x295bd4,_0x339187=_0x13faec[_0x274f9f(0x529)][_0x4614ad]['viewOrder'][_0x274f9f(0x353)]){const _0x45abb5=_0x274f9f;return R([_0x356391[_0x45abb5(0x1ff)](U[_0x45abb5(0x33a)](_0x4614ad,_0x295bd4['id']),_0x295bd4),_0x356391[_0x45abb5(0x1ff)]([_0x45abb5(0x529),_0x4614ad,_0x45abb5(0x3bc),_0x339187],_0x295bd4['id'])]);}[_0x274f9f(0x3ed)](_0x43f0f9,_0x5722cc,_0x43e4b3,_0x5ce9bc){const _0x3ba245=_0x274f9f;return _0x356391[_0x3ba245(0x2e2)]([...U[_0x3ba245(0x33a)](_0x5722cc,_0x43e4b3),_0x3ba245(0x248)],_0x43f0f9[_0x3ba245(0x529)][_0x5722cc]['views'][_0x43e4b3][_0x3ba245(0x248)],_0x5ce9bc);}[_0x274f9f(0x35e)](_0x3c0f8f,_0x31caa2,_0x229694){const _0x538442=_0x274f9f;let _0x34a129=_0x3c0f8f['tables'][_0x31caa2],_0x12d5cb=_0x34a129[_0x538442(0x22d)][_0x229694],_0x24ddcf=_0x34a129[_0x538442(0x3bc)][_0x538442(0x502)](_0x229694);return R([_0x356391[_0x538442(0x26e)](U[_0x538442(0x33a)](_0x31caa2,_0x229694),_0x12d5cb),_0x356391[_0x538442(0x26e)]([_0x538442(0x529),_0x31caa2,'viewOrder',_0x24ddcf],_0x229694)]);}[_0x274f9f(0x26a)](_0x13afbe,_0xeb93b3,_0x334985,_0x32326c){const _0x421c94=_0x274f9f;let _0x340026=_0x13afbe[_0x421c94(0x529)][_0xeb93b3][_0x421c94(0x3bc)],_0x52ef89=Rn(_0x340026,_0x334985,{'beforeFieldId':_0x32326c[_0x421c94(0x2bc)],'afterFieldId':_0x32326c['afterViewId']});return _0x356391['replaceOp']([_0x421c94(0x529),_0xeb93b3,_0x421c94(0x3bc)],_0x340026,_0x52ef89);}[_0x274f9f(0x44f)](_0x46e1cd,_0x3c60ac,_0x13671f,_0x23e780){const _0x2d47d6=_0x274f9f;let _0x295442=_0x46e1cd[_0x2d47d6(0x529)][_0x3c60ac][_0x2d47d6(0x22d)][_0x13671f][_0x2d47d6(0x427)]??{},_0x4f05a0={..._0x295442,..._0x23e780};return Object[_0x2d47d6(0x311)](_0x23e780)[_0x2d47d6(0x366)](_0x58bdef=>{_0x23e780[_0x58bdef]===void 0x0&&delete _0x4f05a0[_0x58bdef];}),_0x356391[_0x2d47d6(0x2e2)]([...U['view'](_0x3c60ac,_0x13671f),_0x2d47d6(0x427)],_0x295442,_0x4f05a0);}[_0x274f9f(0x297)](_0x250ef4,_0x39e81c,_0x423e14,_0x30320a){const _0x3181d4=_0x274f9f;return this[_0x3181d4(0x408)]([...U['view'](_0x39e81c,_0x423e14),'filter'],_0x250ef4[_0x3181d4(0x529)][_0x39e81c]['views'][_0x423e14][_0x3181d4(0x458)],_0x30320a);}['setViewSort'](_0x513b36,_0x406b68,_0x4c3de8,_0x1bb771){const _0x2519ee=_0x274f9f;return this[_0x2519ee(0x408)]([...U[_0x2519ee(0x33a)](_0x406b68,_0x4c3de8),_0x2519ee(0x456)],_0x513b36[_0x2519ee(0x529)][_0x406b68][_0x2519ee(0x22d)][_0x4c3de8][_0x2519ee(0x456)],_0x1bb771);}[_0x274f9f(0x31a)](_0x28cebd,_0x4b2150,_0x15d000,_0xa61fcb){const _0x30eb09=_0x274f9f;return this[_0x30eb09(0x408)]([...U[_0x30eb09(0x33a)](_0x4b2150,_0x15d000),_0x30eb09(0x394)],_0x28cebd['tables'][_0x4b2150][_0x30eb09(0x22d)][_0x15d000][_0x30eb09(0x394)],_0xa61fcb);}[_0x274f9f(0x447)](_0x237db9,_0x34d6e0,_0x8e900e,_0x59e0b6,_0x7b6829){const _0x22661d=_0x274f9f;return this[_0x22661d(0x41d)](_0x237db9,_0x34d6e0,_0x8e900e,_0x59e0b6,{'hidden':!_0x7b6829});}[_0x274f9f(0x3a0)](_0x298151,_0xf02397,_0x5e5ba8,_0x213d67,_0x484224){const _0x271241=_0x274f9f;return this[_0x271241(0x41d)](_0x298151,_0xf02397,_0x5e5ba8,_0x213d67,{'width':_0x484224});}['setViewFieldOrder'](_0xb7100,_0xffbf56,_0x31ff3b,_0x11974f,_0xa11344){const _0xae67c7=_0x274f9f;let _0x47ef2c=_0xb7100['tables'][_0xffbf56]['views'][_0x31ff3b],_0x5c83e7=Rn(_0x47ef2c['fieldOrder']??_0xb7100[_0xae67c7(0x529)][_0xffbf56]['fieldOrder'],_0x11974f,_0xa11344);return this[_0xae67c7(0x408)]([...U[_0xae67c7(0x33a)](_0xffbf56,_0x31ff3b),_0xae67c7(0x47a)],_0x47ef2c[_0xae67c7(0x47a)],_0x5c83e7);}[_0x274f9f(0x41d)](_0x468b64,_0x21bd38,_0x4166fa,_0x5bb94f,_0x2727cd){const _0x329556=_0x274f9f;let _0x4b05a5=_0x468b64[_0x329556(0x529)][_0x21bd38][_0x329556(0x22d)][_0x4166fa][_0x329556(0x243)]??{},_0x28f976={..._0x4b05a5,[_0x5bb94f]:{..._0x4b05a5[_0x5bb94f],..._0x2727cd}};return this[_0x329556(0x408)]([...U[_0x329556(0x33a)](_0x21bd38,_0x4166fa),'fieldSettings'],_0x468b64[_0x329556(0x529)][_0x21bd38][_0x329556(0x22d)][_0x4166fa][_0x329556(0x243)],_0x28f976);}[_0x274f9f(0x457)](_0x225853,_0x1f3a28,_0x2e83d3){const _0x5eb2bf=_0x274f9f;let _0xa0439b=_0x225853[_0x5eb2bf(0x529)][_0x1f3a28],_0x185301=new Set(_0x2e83d3[_0x5eb2bf(0x22e)](_0x41af36=>_0x41af36['id'])),_0x2eb19b=[...Object[_0x5eb2bf(0x33c)](_0xa0439b[_0x5eb2bf(0x3c4)])[_0x5eb2bf(0x458)](_0x60e54b=>!_0x185301[_0x5eb2bf(0x51e)](_0x60e54b['id'])),..._0x2e83d3]['sort']((_0x2a9f05,_0x54a227)=>String(_0x2a9f05['orderKey']??_0x2a9f05['id'])['localeCompare'](String(_0x54a227['orderKey']??_0x54a227['id'])))[_0x5eb2bf(0x22e)](_0x391c17=>_0x391c17['id']),_0x414fdc=[...U[_0x5eb2bf(0x258)](_0x1f3a28),_0x5eb2bf(0x4fd)];return _0xa0439b[_0x5eb2bf(0x4fd)]?_0x356391[_0x5eb2bf(0x2e2)](_0x414fdc,_0xa0439b[_0x5eb2bf(0x4fd)],_0x2eb19b):_0x356391['insertOp'](_0x414fdc,_0x2eb19b);}['_setFormulaFieldCells'](_0x1a5266,_0x4d6f54,_0x47572c,_0x48ca59){const _0x6692a2=_0x274f9f;var _0x37f780,_0x46d46b;let _0x2e4cd3=L(_0x1a5266[_0x6692a2(0x529)][_0x4d6f54]),_0x427b85=String(((_0x37f780=_0x48ca59[_0x6692a2(0x427)])==null?void 0x0:_0x37f780['formula'])??'')['trim'](),_0x369b4d=(_0x46d46b=_0x2e4cd3[_0x6692a2(0x4b9)])==null?void 0x0:_0x46d46b[_0x47572c];if(_0x369b4d==null)return[];let _0x36ef01=_0x2e4cd3[_0x6692a2(0x4fd)]??Object[_0x6692a2(0x311)](_0x2e4cd3[_0x6692a2(0x3c4)]),_0x4dfd06=_0x36ef01[_0x6692a2(0x22e)](_0x9e9b4a=>{var _0x2a1a7d;return(_0x2a1a7d=_0x2e4cd3['rowIndex'])==null?void 0x0:_0x2a1a7d[_0x9e9b4a];})['find'](_0x2fca92=>_0x2fca92!=null);return _0x36ef01['flatMap'](_0x2421e4=>{const _0x176500=_0x6692a2;var _0x4ab069,_0x50191f;let _0x375704=(_0x4ab069=_0x2e4cd3[_0x176500(0x269)])==null?void 0x0:_0x4ab069[_0x2421e4];if(_0x375704==null)return[];let _0x4f5716=(_0x50191f=_0x2e4cd3['cellData'])==null||(_0x50191f=_0x50191f[_0x375704])==null?void 0x0:_0x50191f[_0x369b4d],_0xb7ef4c=_0x427b85?_0x375704===_0x4dfd06?{'f':_0x427b85,'si':_0x47572c}:{'si':_0x47572c}:{'v':null,'t':null};return[this[_0x176500(0x408)](U[_0x176500(0x434)](_0x4d6f54,_0x375704,_0x369b4d),_0x4f5716,_0xb7ef4c)];});}[_0x274f9f(0x351)](_0x428ad5,_0x5e81bb,_0x103b7f,_0x4b8cdb,_0x439aa8){const _0x5d405f=_0x274f9f;var _0x50f7db;let _0x10a3d2=ut(_0x4b8cdb,_0x103b7f),_0x297ed9=_0x439aa8[_0x5d405f(0x22e)]((_0x25ce58,_0x5df0cb)=>String(_0x25ce58['id']??_0x10a3d2+'\x1f'+_0x5df0cb));return[this[_0x5d405f(0x408)](U['attachmentSet'](_0x5e81bb,_0x10a3d2),(_0x50f7db=_0x428ad5[_0x5d405f(0x42d)])==null||(_0x50f7db=_0x50f7db['attachmentSets'])==null?void 0x0:_0x50f7db[_0x10a3d2],_0x297ed9),..._0x439aa8['map']((_0x3a3f28,_0x4ea2d0)=>{const _0x1b9b34=_0x5d405f;var _0x4e9675;let _0x1c309d=_0x297ed9[_0x4ea2d0];return this[_0x1b9b34(0x408)](U['attachment'](_0x5e81bb,_0x1c309d),(_0x4e9675=_0x428ad5[_0x1b9b34(0x42d)])==null||(_0x4e9675=_0x4e9675[_0x1b9b34(0x486)])==null?void 0x0:_0x4e9675[_0x1c309d],{..._0x3a3f28,'id':_0x1c309d});})];}[_0x274f9f(0x39b)](_0xab7930,_0x57d485,_0x57094a){const _0x2583b3=_0x274f9f;var _0x2e6b82;let _0x2aa8fe=((_0x2e6b82=_0xab7930[_0x2583b3(0x42d)])==null?void 0x0:_0x2e6b82[_0x2583b3(0x2f3)])??{},_0x356ca4=Object['entries'](_0x2aa8fe)[_0x2583b3(0x458)](([_0x400684])=>_0x57094a(_0x400684));if(!_0x356ca4[_0x2583b3(0x353)])return[];let _0xfd2d5a=new Set(Object[_0x2583b3(0x2d4)](_0x2aa8fe)[_0x2583b3(0x458)](([_0x4c204f])=>!_0x57094a(_0x4c204f))[_0x2583b3(0x25e)](([,_0x1cf786])=>_0x1cf786)),_0x3b908a=new Set(_0x356ca4[_0x2583b3(0x25e)](([,_0x37eea2])=>_0x37eea2));return[..._0x356ca4[_0x2583b3(0x22e)](([_0x421cdf,_0x51681e])=>_0x356391[_0x2583b3(0x26e)](U[_0x2583b3(0x44c)](_0x57d485,_0x421cdf),_0x51681e)),...Array['from'](_0x3b908a)[_0x2583b3(0x25e)](_0x23c232=>{const _0x465667=_0x2583b3;var _0xf9b669;let _0x1fa7cd=(_0xf9b669=_0xab7930[_0x465667(0x42d)])==null||(_0xf9b669=_0xf9b669['attachments'])==null?void 0x0:_0xf9b669[_0x23c232];return _0x1fa7cd!==void 0x0&&!_0xfd2d5a[_0x465667(0x51e)](_0x23c232)?[_0x356391['removeOp'](U[_0x465667(0x326)](_0x57d485,_0x23c232),_0x1fa7cd)]:[];})];}[_0x274f9f(0x408)](_0x4f78e3,_0x2fd950,_0xc06c6){const _0xc78dad=_0x274f9f;return _0x2fd950===void 0x0?_0x356391[_0xc78dad(0x1ff)](_0x4f78e3,_0xc06c6):_0x356391[_0xc78dad(0x2e2)](_0x4f78e3,_0x2fd950,_0xc06c6);}};function In(_0x497f36,_0x54eb05,_0x1ac55c){const _0x6b3710=_0x274f9f;var _0x464a59,_0x17b66f,_0x3c590a,_0x2c3802;let _0x242947=(_0x464a59=_0x497f36['rowIndex'])==null?void 0x0:_0x464a59[_0x54eb05],_0x4b28b0=(_0x17b66f=_0x497f36['colIndex'])==null?void 0x0:_0x17b66f[_0x1ac55c];return _0x242947!=null&&_0x4b28b0!=null&&((_0x3c590a=_0x497f36[_0x6b3710(0x47c)])==null?void 0x0:_0x3c590a[_0x242947])===_0x54eb05&&((_0x2c3802=_0x497f36[_0x6b3710(0x4bd)])==null?void 0x0:_0x2c3802[_0x4b28b0])===_0x1ac55c&&_0x497f36['cellData']!=null;}function Ln(_0x274af4,_0x572aff,_0x480054){const _0x4b00bc=_0x274f9f;var _0x2dbc73,_0x5057a6;return((_0x2dbc73=_0x274af4[_0x4b00bc(0x47c)])==null?void 0x0:_0x2dbc73[_0x572aff])!=null&&((_0x5057a6=_0x274af4[_0x4b00bc(0x4bd)])==null?void 0x0:_0x5057a6[_0x480054])!=null&&_0x274af4[_0x4b00bc(0x434)]!=null;}function Rn(_0x50c434,_0x2f524c,_0x582706){const _0x234327=_0x274f9f;let _0x422090=_0x50c434['filter'](_0x3c462f=>_0x3c462f!==_0x2f524c),_0x454d08=_0x582706['beforeFieldId']?_0x422090['indexOf'](_0x582706[_0x234327(0x341)]):_0x582706[_0x234327(0x37c)]?_0x422090[_0x234327(0x502)](_0x582706[_0x234327(0x37c)])+0x1:_0x422090[_0x234327(0x353)];return _0x422090[_0x234327(0x520)](_0x454d08<0x0?_0x422090[_0x234327(0x353)]:_0x454d08,0x0,_0x2f524c),_0x422090;}function zn(_0x4112a2,_0x4a4ca2,_0x4c7ec2){const _0x285172=_0x274f9f;let _0x1e4774=_0x4112a2[_0x285172(0x458)](_0x403478=>_0x403478!==_0x4a4ca2);return _0x1e4774[_0x285172(0x520)](Vn(_0x4c7ec2,_0x1e4774[_0x285172(0x353)]),0x0,_0x4a4ca2),_0x1e4774;}function Bn(_0x5ccb60,_0x272f6a,_0x4cc818){const _0x5024ae=_0x274f9f;if(Array[_0x5024ae(0x39e)](_0x5ccb60))return _0x4cc818===_0x5024ae(0x3e4)?_0x5ccb60[_0x5024ae(0x458)](_0x2c0234=>_0x2c0234!==_0x272f6a):_0x5ccb60[_0x5024ae(0x25e)](_0x1af813=>{const _0x224149=_0x5024ae;if(_0x1af813&&typeof _0x1af813==_0x224149(0x314)&&!Array[_0x224149(0x39e)](_0x1af813)&&_0x1af813[_0x224149(0x419)]===_0x272f6a)return[];let _0x4efc56=Bn(_0x1af813,_0x272f6a);return _0x4efc56===void 0x0?[]:[_0x4efc56];});if(!_0x5ccb60||typeof _0x5ccb60!='object')return _0x4cc818!=null&&_0x4cc818['endsWith'](_0x5024ae(0x2f9))&&_0x5ccb60===_0x272f6a?void 0x0:_0x5ccb60;let _0x3b6283=_0x5ccb60;if(_0x3b6283['fieldId']!==_0x272f6a)return Object[_0x5024ae(0x372)](Object['entries'](_0x3b6283)['flatMap'](([_0xfbb963,_0x459b27])=>{const _0x39bf21=_0x5024ae;if(_0xfbb963===_0x272f6a&&_0x4cc818===_0x39bf21(0x243))return[];let _0x101f0e=Bn(_0x459b27,_0x272f6a,_0xfbb963);return _0x101f0e===void 0x0?[]:[[_0xfbb963,_0x101f0e]];}));}function Vn(_0x16a388,_0x4b4ba5){const _0x2de1e3=_0x274f9f;return Math[_0x2de1e3(0x3f9)](0x0,Math['min'](_0x16a388,_0x4b4ba5));}function Hn(_0x3248ce,_0x2f4161,_0x10e938){const _0x4af21f=_0x274f9f;if(!_0x3248ce||!_0x2f4161||_0x2f4161===_0x10e938)return _0x3248ce;let _0x44332a='',_0x34c37d=!0x1,_0x1a0b4f=_0x2f4161[_0x4af21f(0x208)]();for(let _0x4224ae=0x0;_0x4224ae<_0x3248ce[_0x4af21f(0x353)];){let _0x46fe47=_0x3248ce[_0x4224ae];if(_0x46fe47==='\x22'){if(_0x34c37d&&_0x3248ce[_0x4224ae+0x1]==='\x22'){_0x44332a+='\x22\x22',_0x4224ae+=0x2;continue;}_0x34c37d=!_0x34c37d,_0x44332a+=_0x46fe47,_0x4224ae++;continue;}if(!_0x34c37d&&_0x3248ce[_0x4af21f(0x51c)](_0x4224ae,_0x4224ae+_0x2f4161[_0x4af21f(0x353)])[_0x4af21f(0x208)]()===_0x1a0b4f&&Un(_0x3248ce,_0x4224ae,_0x2f4161[_0x4af21f(0x353)])){_0x44332a+=_0x10e938,_0x4224ae+=_0x2f4161[_0x4af21f(0x353)];continue;}_0x44332a+=_0x46fe47,_0x4224ae++;}return _0x44332a;}function Un(_0x23c2f2,_0x58354b,_0x2bda98){const _0x4cfc57=_0x274f9f;let _0x30c3c2=_0x23c2f2[_0x58354b-0x1];if(_0x30c3c2&&/[\w.]/[_0x4cfc57(0x2a6)](_0x30c3c2))return!0x1;let _0x509048=_0x58354b+_0x2bda98;for(;/\s/[_0x4cfc57(0x2a6)](_0x23c2f2[_0x509048]??'');)_0x509048++;return _0x23c2f2[_0x509048]==='[';}function Wn(_0x1afc99){'@babel/helpers - typeof';const _0x3b907f=_0x274f9f;return Wn=typeof Symbol==_0x3b907f(0x318)&&typeof Symbol['iterator']==_0x3b907f(0x244)?function(_0x3c6262){return typeof _0x3c6262;}:function(_0x55d35e){const _0x2f6d80=_0x3b907f;return _0x55d35e&&typeof Symbol==_0x2f6d80(0x318)&&_0x55d35e[_0x2f6d80(0x1f1)]===Symbol&&_0x55d35e!==Symbol['prototype']?'symbol':typeof _0x55d35e;},Wn(_0x1afc99);}function Gn(_0x5e70a9,_0x5bf050){const _0x344e93=_0x274f9f;if(Wn(_0x5e70a9)!=_0x344e93(0x314)||!_0x5e70a9)return _0x5e70a9;var _0x27eadc=_0x5e70a9[Symbol[_0x344e93(0x4ee)]];if(_0x27eadc!==void 0x0){var _0x365204=_0x27eadc['call'](_0x5e70a9,_0x5bf050||'default');if(Wn(_0x365204)!=_0x344e93(0x314))return _0x365204;throw TypeError(_0x344e93(0x3eb));}return(_0x5bf050===_0x344e93(0x3c6)?String:Number)(_0x5e70a9);}function Kn(_0x421b65){const _0x126838=_0x274f9f;var _0x37f040=Gn(_0x421b65,_0x126838(0x3c6));return Wn(_0x37f040)==_0x126838(0x244)?_0x37f040:_0x37f040+'';}function G(_0x515081,_0x235823,_0x3481ea){const _0x465879=_0x274f9f;return(_0x235823=Kn(_0x235823))in _0x515081?Object[_0x465879(0x3e1)](_0x515081,_0x235823,{'value':_0x3481ea,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x515081[_0x235823]=_0x3481ea,_0x515081;}const qn=_0x3c1d0d(_0x274f9f(0x4fb));var Jn=class extends _0x4191ab{constructor(..._0x238a5e){const _0x31c824=_0x274f9f;super(..._0x238a5e),G(this,_0x31c824(0x4a1),new Map());}[_0x274f9f(0x406)](_0x424ff4){const _0x49b9ad=_0x274f9f;return this[_0x49b9ad(0x4a1)][_0x49b9ad(0x317)](_0x424ff4[_0x49b9ad(0x2b9)],_0x424ff4),_0x26ad0b(()=>this[_0x49b9ad(0x4a1)][_0x49b9ad(0x2ef)](_0x424ff4[_0x49b9ad(0x2b9)]));}[_0x274f9f(0x23e)](_0x40048c){const _0x25ecea=_0x274f9f;let _0x2e8473=this[_0x25ecea(0x4a1)]['get'](_0x40048c);if(!_0x2e8473)throw Error(_0x25ecea(0x2da)+_0x40048c+'\x22\x20is\x20not\x20registered.');return _0x2e8473;}[_0x274f9f(0x3d9)](_0x8a985c){const _0x48244f=_0x274f9f;return this[_0x48244f(0x4a1)][_0x48244f(0x23e)](_0x8a985c);}[_0x274f9f(0x1d9)](){const _0x255de8=_0x274f9f;return Array[_0x255de8(0x2a4)](this['_plugins'][_0x255de8(0x33c)]());}};const Yn=_0x3c1d0d(_0x274f9f(0x333));var Xn=class{constructor(){const _0x2a5e2a=_0x274f9f;G(this,'_basePermissions',new Map()),G(this,'_tablePermissions',new Map()),G(this,'_fieldPermissions',new Map()),G(this,_0x2a5e2a(0x3d3),new Map());}[_0x274f9f(0x34e)](_0x3522d7){const _0x353301=_0x274f9f;var _0x5e82b4;return((_0x5e82b4=this[_0x353301(0x31c)][_0x353301(0x23e)](_0x3522d7))==null?void 0x0:_0x5e82b4[_0x353301(0x494)])??!0x0;}[_0x274f9f(0x27e)](_0x48d57c){const _0x42fb37=_0x274f9f;var _0x26a60a;return((_0x26a60a=this[_0x42fb37(0x403)][_0x42fb37(0x23e)](_0x48d57c))==null?void 0x0:_0x26a60a[_0x42fb37(0x2ef)])??!0x0;}[_0x274f9f(0x26f)](_0x498c8c){const _0x28d9a1=_0x274f9f;var _0x4f4a17;return((_0x4f4a17=this[_0x28d9a1(0x403)][_0x28d9a1(0x23e)](_0x498c8c))==null?void 0x0:_0x4f4a17['createField'])??!0x0;}[_0x274f9f(0x245)](_0x2964bb,_0xda4db4){const _0x3fd7bd=_0x274f9f;var _0x37acb5;return((_0x37acb5=this[_0x3fd7bd(0x4ba)][_0x3fd7bd(0x23e)](Zn(_0x2964bb,_0xda4db4)))==null?void 0x0:_0x37acb5[_0x3fd7bd(0x1d7)])??!0x0;}[_0x274f9f(0x214)](_0x4a2df2,_0x3b2a71){const _0x5bcfdb=_0x274f9f;var _0x335b5a;return((_0x335b5a=this['_fieldPermissions'][_0x5bcfdb(0x23e)](Zn(_0x4a2df2,_0x3b2a71)))==null?void 0x0:_0x335b5a[_0x5bcfdb(0x2ef)])??!0x0;}[_0x274f9f(0x315)](_0x321c4a){const _0x5905ba=_0x274f9f;var _0x412c5c;return((_0x412c5c=this[_0x5905ba(0x403)][_0x5905ba(0x23e)](_0x321c4a))==null?void 0x0:_0x412c5c[_0x5905ba(0x27a)])??!0x0;}[_0x274f9f(0x2eb)](_0x25e881,_0x1eabe6){var _0x5d7130;return((_0x5d7130=this['_recordPermissions']['get'](Qn(_0x25e881,_0x1eabe6)))==null?void 0x0:_0x5d7130['delete'])??!0x0;}[_0x274f9f(0x409)](_0x4084b2,_0x3c95bb,_0x188e83){const _0x47902b=_0x274f9f;var _0x2573c1;let _0x203387=this[_0x47902b(0x4ba)][_0x47902b(0x23e)](Zn(_0x4084b2,_0x188e83));return(((_0x2573c1=this[_0x47902b(0x3d3)][_0x47902b(0x23e)](Qn(_0x4084b2,_0x3c95bb)))==null?void 0x0:_0x2573c1[_0x47902b(0x344)])??!0x0)&&((_0x203387==null?void 0x0:_0x203387[_0x47902b(0x1d7)])??!0x0)&&((_0x203387==null?void 0x0:_0x203387['editCell'])??!0x0);}[_0x274f9f(0x431)](_0x259bf8){const _0x163021=_0x274f9f;var _0x51b0e4;return((_0x51b0e4=this[_0x163021(0x403)][_0x163021(0x23e)](_0x259bf8))==null?void 0x0:_0x51b0e4['manageView'])??!0x0;}[_0x274f9f(0x3b8)](_0x532540,_0x1a0d2e){const _0x49bfd9=_0x274f9f;this[_0x49bfd9(0x31c)]['set'](_0x532540,{...this[_0x49bfd9(0x31c)]['get'](_0x532540),..._0x1a0d2e});}['setTablePermission'](_0x4fdf98,_0x25cde5){const _0x421746=_0x274f9f;this[_0x421746(0x403)]['set'](_0x4fdf98,{...this[_0x421746(0x403)]['get'](_0x4fdf98),..._0x25cde5});}[_0x274f9f(0x2ff)](_0x6e2d24,_0x38b858,_0x4b8c9b){const _0x41d18e=_0x274f9f;let _0x4937ed=Zn(_0x6e2d24,_0x38b858);this['_fieldPermissions'][_0x41d18e(0x317)](_0x4937ed,{...this['_fieldPermissions'][_0x41d18e(0x23e)](_0x4937ed),..._0x4b8c9b});}[_0x274f9f(0x2c5)](_0x5c4a51,_0x52388b,_0x4c2601){const _0x2f4a2b=_0x274f9f;let _0x2b6726=Qn(_0x5c4a51,_0x52388b);this[_0x2f4a2b(0x3d3)]['set'](_0x2b6726,{...this[_0x2f4a2b(0x3d3)][_0x2f4a2b(0x23e)](_0x2b6726),..._0x4c2601});}['clearBasePermission'](_0x55036c){const _0xfced8a=_0x274f9f;this[_0xfced8a(0x31c)][_0xfced8a(0x2ef)](_0x55036c);}['clearTablePermission'](_0x16db70){const _0x207e8b=_0x274f9f;this[_0x207e8b(0x403)][_0x207e8b(0x2ef)](_0x16db70);}['clearFieldPermission'](_0x2d7537,_0x1e0f33){const _0x393a98=_0x274f9f;this[_0x393a98(0x4ba)]['delete'](Zn(_0x2d7537,_0x1e0f33));}[_0x274f9f(0x2ec)](_0x4642d9,_0x26fc83){const _0xc3ef78=_0x274f9f;this[_0xc3ef78(0x3d3)][_0xc3ef78(0x2ef)](Qn(_0x4642d9,_0x26fc83));}[_0x274f9f(0x2d0)](){const _0x6ba7c6=_0x274f9f;return{'bases':Object[_0x6ba7c6(0x372)](this[_0x6ba7c6(0x31c)]),'tables':Object[_0x6ba7c6(0x372)](this[_0x6ba7c6(0x403)]),'fields':Object[_0x6ba7c6(0x372)](this[_0x6ba7c6(0x4ba)]),'records':Object['fromEntries'](this['_recordPermissions'])};}};function Zn(_0x61e5ae,_0x72f664){return _0x61e5ae+'\x1f'+_0x72f664;}function Qn(_0x363827,_0x63a20b){return _0x363827+'\x1f'+_0x63a20b;}function K(_0x41ebba,_0x18f39f){return function(_0x5ce6f0,_0x4f978f){_0x18f39f(_0x5ce6f0,_0x4f978f,_0x41ebba);};}function q(_0x353526,_0x5e5af1,_0x3bf6e4,_0x2af29d){const _0x54d947=_0x274f9f;var _0x488db0=arguments[_0x54d947(0x353)],_0x5efa8b=_0x488db0<0x3?_0x5e5af1:_0x2af29d===null?_0x2af29d=Object[_0x54d947(0x356)](_0x5e5af1,_0x3bf6e4):_0x2af29d,_0x56d36f;if(typeof Reflect==_0x54d947(0x314)&&typeof Reflect[_0x54d947(0x3b1)]==_0x54d947(0x318))_0x5efa8b=Reflect[_0x54d947(0x3b1)](_0x353526,_0x5e5af1,_0x3bf6e4,_0x2af29d);else{for(var _0x3f92b9=_0x353526[_0x54d947(0x353)]-0x1;_0x3f92b9>=0x0;_0x3f92b9--)(_0x56d36f=_0x353526[_0x3f92b9])&&(_0x5efa8b=(_0x488db0<0x3?_0x56d36f(_0x5efa8b):_0x488db0>0x3?_0x56d36f(_0x5e5af1,_0x3bf6e4,_0x5efa8b):_0x56d36f(_0x5e5af1,_0x3bf6e4))||_0x5efa8b);}return _0x488db0>0x3&&_0x5efa8b&&Object['defineProperty'](_0x5e5af1,_0x3bf6e4,_0x5efa8b),_0x5efa8b;}const J=_0x3c1d0d(_0x274f9f(0x424));let $n=class{constructor(_0x32bf33,_0x2e7a4f=er(),_0x5698f5={}){const _0xa55ac4=_0x274f9f;this['_permissionService']=_0x32bf33,this[_0xa55ac4(0x3e6)]=_0x2e7a4f,this[_0xa55ac4(0x275)]=_0x5698f5,G(this,_0xa55ac4(0x45b),new W()),G(this,'_applier',new z());}[_0x274f9f(0x494)](_0x28d72c,_0x114ab8,_0x4b27ea){const _0x4bb700=_0x274f9f;if(!this[_0x4bb700(0x28e)][_0x4bb700(0x34e)](_0x28d72c['getUnitId']()))throw Error(_0x4bb700(0x1db));_0xbbbb25(_0x114ab8),this[_0x4bb700(0x274)](_0x28d72c,this[_0x4bb700(0x45b)][_0x4bb700(0x494)](_0x28d72c[_0x4bb700(0x2d0)](),_0x114ab8,_0x4b27ea));}['renameTable'](_0x5f391d,_0x44f33e,_0x3d74d4){const _0x4f7009=_0x274f9f;this[_0x4f7009(0x274)](_0x5f391d,this['_factory'][_0x4f7009(0x3c7)](_0x5f391d[_0x4f7009(0x2d0)](),_0x44f33e,_0x3d74d4));}[_0x274f9f(0x2ee)](_0x305741,_0x242119){const _0x234adc=_0x274f9f;if(!this[_0x234adc(0x28e)][_0x234adc(0x27e)](_0x242119))throw Error(_0x234adc(0x359));let _0x4af632=ke(_0x305741[_0x234adc(0x2d0)](),_0x242119);if(_0x4af632[_0x234adc(0x353)]>0x0)throw Error(_0x234adc(0x202)+_0x4af632[_0x234adc(0x22e)](_0x46e8f9=>_0x46e8f9['tableId']+'.'+_0x46e8f9[_0x234adc(0x419)])['join'](',\x20')+').');this[_0x234adc(0x274)](_0x305741,this[_0x234adc(0x45b)][_0x234adc(0x2ee)](_0x305741['getSnapshot'](),_0x242119));}['updateCell'](_0xa2ba1b,_0x574fd2,_0x1ed602,_0x7ccd76,_0xfd7b35){const _0x209a58=_0x274f9f;this[_0x209a58(0x274)](_0xa2ba1b,this[_0x209a58(0x1f8)](_0xa2ba1b,_0x574fd2,_0x1ed602,_0x7ccd76,_0xfd7b35));}['setRecordValues'](_0x3b087a,_0x268060,_0x16eda9){const _0x4c37fa=_0x274f9f;this[_0x4c37fa(0x274)](_0x3b087a,this[_0x4c37fa(0x216)](_0x3b087a,_0x268060,_0x16eda9));}['createRecord'](_0x4d0cf4,_0x34dc92,_0x21b970){const _0x518dbe=_0x274f9f;this['_apply'](_0x4d0cf4,this[_0x518dbe(0x25f)](_0x4d0cf4,_0x34dc92,_0x21b970));}[_0x274f9f(0x1f8)](_0x2c99c3,_0x4cb288,_0x28a769,_0x49ad06,_0x39ef93){const _0x4fe106=_0x274f9f;let _0x984dd7=_0x2c99c3[_0x4fe106(0x2d0)](),_0x1c3f03=this[_0x4fe106(0x45e)](_0x984dd7,_0x4cb288,_0x28a769,_0x49ad06,_0x39ef93),_0x41a63e=this['_withModifiedSystemValues'](_0x984dd7,_0x4cb288,_0x28a769,{[_0x49ad06]:_0x1c3f03});return this[_0x4fe106(0x45b)][_0x4fe106(0x27f)](_0x984dd7,_0x4cb288,[_0x41a63e]);}[_0x274f9f(0x216)](_0x238f88,_0x3c3001,_0x3f0cb0){const _0x4b5fb9=_0x274f9f;let _0x5ae333=_0x238f88['getSnapshot'](),_0x30f100=_0x3f0cb0[_0x4b5fb9(0x22e)](_0x374316=>this['_withModifiedSystemValues'](_0x5ae333,_0x3c3001,_0x374316[_0x4b5fb9(0x44a)],{...Object[_0x4b5fb9(0x372)](Object[_0x4b5fb9(0x2d4)](_0x374316[_0x4b5fb9(0x33c)])[_0x4b5fb9(0x22e)](([_0x59ecf0,_0x14d86e])=>[_0x59ecf0,this['_normalizeCellValue'](_0x5ae333,_0x3c3001,_0x374316[_0x4b5fb9(0x44a)],_0x59ecf0,_0x14d86e)]))}));return this[_0x4b5fb9(0x45b)][_0x4b5fb9(0x27f)](_0x5ae333,_0x3c3001,_0x30f100);}[_0x274f9f(0x25f)](_0x3fd3ee,_0x738792,_0x3087ef){const _0x4238d8=_0x274f9f;if(!this['_permissionService'][_0x4238d8(0x315)](_0x738792))throw Error(_0x4238d8(0x233));let _0x5bad1a=_0x3fd3ee['getSnapshot'](),_0x3836e8=this[_0x4238d8(0x376)](_0x5bad1a[_0x4238d8(0x529)][_0x738792]);return this['_factory'][_0x4238d8(0x27a)](_0x5bad1a,_0x738792,this[_0x4238d8(0x1fa)](_0x5bad1a,_0x738792,_0x3087ef,_0x3836e8));}[_0x274f9f(0x227)](_0x411bed,_0x30fa78,_0x34c382){const _0x2c9837=_0x274f9f;if(!this['_permissionService'][_0x2c9837(0x315)](_0x30fa78))throw Error(_0x2c9837(0x233));let _0xde1b72=_0x411bed['getSnapshot']();return I('BaseCommand.createBatchCreateRecordsOp',()=>{const _0x370950=_0x2c9837;let _0x2cb7af=this[_0x370950(0x376)](_0xde1b72[_0x370950(0x529)][_0x30fa78]);return this[_0x370950(0x45b)][_0x370950(0x1e7)](_0xde1b72,_0x30fa78,_0x34c382[_0x370950(0x22e)](_0x169c51=>this[_0x370950(0x1fa)](_0xde1b72,_0x30fa78,_0x169c51,_0x2cb7af)));},{'existingRecords':Object[_0x2c9837(0x311)](_0xde1b72[_0x2c9837(0x529)][_0x30fa78][_0x2c9837(0x3c4)])[_0x2c9837(0x353)],'records':_0x34c382['length']});}[_0x274f9f(0x504)](_0xa0862d,_0x33b567,_0x79f17f,_0xfa2848,_0x49f4d8){const _0x2f3048=_0x274f9f;if(!this['_permissionService']['canCreateField'](_0x33b567))throw Error(_0x2f3048(0x380));let _0x2e80de=_0xa0862d['getSnapshot']();if(this['_assertFieldDefinition'](_0x2e80de,_0x79f17f),_0xfa2848===0x0)throw Error(_0x2f3048(0x2ed));let _0x36d099=this['_factory'][_0x2f3048(0x3f5)](_0x2e80de,_0x33b567,{'field':_0x79f17f,'index':_0xfa2848,'viewIndexes':_0x49f4d8}),_0x541261=this[_0x2f3048(0x32e)](_0x2e80de,_0x33b567,_0x79f17f);if(!_0x541261['length'])return _0x36d099;let _0x33c13b=this[_0x2f3048(0x527)][_0x2f3048(0x347)](_0x2e80de,_0x36d099);return R([_0x36d099,this['_factory'][_0x2f3048(0x27f)](_0x33c13b,_0x33b567,_0x541261)]);}[_0x274f9f(0x497)](_0x3899a4,_0x49c783,_0x57cc09){const _0x1cb2de=_0x274f9f;if(!this[_0x1cb2de(0x28e)][_0x1cb2de(0x2eb)](_0x49c783,_0x57cc09))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20record.');this[_0x1cb2de(0x274)](_0x3899a4,this[_0x1cb2de(0x45b)][_0x1cb2de(0x497)](_0x3899a4[_0x1cb2de(0x2d0)](),_0x49c783,_0x57cc09));}['duplicateRecord'](_0x29bcfd,_0x4a53fa,_0x432ccd,_0x5e6f43){const _0x11e2ff=_0x274f9f;this[_0x11e2ff(0x274)](_0x29bcfd,this[_0x11e2ff(0x45b)][_0x11e2ff(0x31d)](_0x29bcfd['getSnapshot'](),_0x4a53fa,_0x432ccd,{..._0x5e6f43,'values':{..._0x5e6f43['values'],[_0x525439]:_0x5e6f43['id']}}));}[_0x274f9f(0x277)](_0xe75d68,_0x508767,_0x1a9e66,_0x3a1eac){const _0x29f8f8=_0x274f9f;this[_0x29f8f8(0x274)](_0xe75d68,this[_0x29f8f8(0x45b)][_0x29f8f8(0x277)](_0xe75d68[_0x29f8f8(0x2d0)](),_0x508767,_0x1a9e66,_0x3a1eac));}['createField'](_0x475b9b,_0x46a9dd,_0x3459d0,_0x3256ec,_0x397229){const _0x3793d0=_0x274f9f;this['_apply'](_0x475b9b,this[_0x3793d0(0x504)](_0x475b9b,_0x46a9dd,_0x3459d0,_0x3256ec,_0x397229));}[_0x274f9f(0x279)](_0x553d15,_0x565986,_0x2d9c59,_0x2df62a){const _0xd4951b=_0x274f9f;var _0x550309;if(!this[_0xd4951b(0x28e)][_0xd4951b(0x245)](_0x565986,_0x2d9c59))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x44c52d=_0x553d15[_0xd4951b(0x2d0)](),_0x2cf3eb=(_0x550309=_0x44c52d['tables'][_0x565986])==null?void 0x0:_0x550309[_0xd4951b(0x39f)][_0x2d9c59];if(!_0x2cf3eb||_0x2d9c59===_0x525439)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0xd4951b(0x262)](_0x44c52d,{..._0x2cf3eb,..._0x2df62a}),this['_apply'](_0x553d15,this[_0xd4951b(0x45b)][_0xd4951b(0x279)](_0x44c52d,_0x565986,_0x2d9c59,_0x2df62a));}[_0x274f9f(0x3b4)](_0x270dda,_0x5d59ee,_0x5998be,_0x518a5d){const _0x207d57=_0x274f9f;var _0x57204a;if(!this[_0x207d57(0x28e)]['canEditField'](_0x5d59ee,_0x5998be))throw Error(_0x207d57(0x323));let _0x23c946=_0x270dda['getSnapshot'](),_0x1323cb=(_0x57204a=_0x23c946[_0x207d57(0x529)][_0x5d59ee])==null?void 0x0:_0x57204a['fields'][_0x5998be];if(!_0x1323cb||_0x5998be===_0x525439)throw Error(_0x207d57(0x4ca));this[_0x207d57(0x262)](_0x23c946,{..._0x1323cb,..._0x518a5d}),this['_apply'](_0x270dda,this[_0x207d57(0x45b)][_0x207d57(0x3b4)](_0x23c946,_0x5d59ee,_0x5998be,_0x518a5d));}[_0x274f9f(0x25b)](_0x41ab48,_0x2592b9,_0x309cdb){const _0x16eb71=_0x274f9f;var _0x27d8c3;if(((_0x27d8c3=_0x41ab48[_0x16eb71(0x2d0)]()['tables'][_0x2592b9])==null?void 0x0:_0x27d8c3['primaryFieldId'])===_0x309cdb||_0x309cdb===_0x525439)throw Error(_0x16eb71(0x1fc));if(!this['_permissionService'][_0x16eb71(0x214)](_0x2592b9,_0x309cdb))throw Error(_0x16eb71(0x3d1));this[_0x16eb71(0x274)](_0x41ab48,this[_0x16eb71(0x45b)]['deleteField'](_0x41ab48[_0x16eb71(0x2d0)](),_0x2592b9,_0x309cdb));}[_0x274f9f(0x332)](_0x1b5462,_0x185f44,_0x5dc33a,_0x37afd2){const _0x578b68=_0x274f9f;if(!this[_0x578b68(0x28e)][_0x578b68(0x245)](_0x185f44,_0x5dc33a))throw Error(_0x578b68(0x323));if(_0x5dc33a===_0x525439||_0x37afd2['beforeFieldId']===_0x525439)throw Error('[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');this[_0x578b68(0x274)](_0x1b5462,this[_0x578b68(0x45b)]['moveField'](_0x1b5462[_0x578b68(0x2d0)](),_0x185f44,_0x5dc33a,_0x37afd2));}[_0x274f9f(0x4aa)](_0x3c4447,_0x552e01,_0x106113,_0x27a172){const _0x78ecc4=_0x274f9f;this[_0x78ecc4(0x274)](_0x3c4447,this[_0x78ecc4(0x45b)][_0x78ecc4(0x4aa)](_0x3c4447['getSnapshot'](),_0x552e01,_0x106113,_0x27a172));}[_0x274f9f(0x3ed)](_0x546551,_0x2680cd,_0x5c4ecd,_0x4002db){const _0x21a143=_0x274f9f;if(!this[_0x21a143(0x28e)]['canManageView'](_0x2680cd,_0x5c4ecd))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x21a143(0x274)](_0x546551,this[_0x21a143(0x45b)][_0x21a143(0x3ed)](_0x546551[_0x21a143(0x2d0)](),_0x2680cd,_0x5c4ecd,_0x4002db));}['deleteView'](_0x809735,_0x42dfb5,_0xd981fd){const _0x1b5c05=_0x274f9f;if(!this[_0x1b5c05(0x28e)][_0x1b5c05(0x431)](_0x42dfb5,_0xd981fd))throw Error(_0x1b5c05(0x307));this[_0x1b5c05(0x274)](_0x809735,this[_0x1b5c05(0x45b)][_0x1b5c05(0x35e)](_0x809735[_0x1b5c05(0x2d0)](),_0x42dfb5,_0xd981fd));}[_0x274f9f(0x26a)](_0x1f3b51,_0x113cc8,_0x476082,_0x45584f){const _0xd34897=_0x274f9f;if(!this[_0xd34897(0x28e)][_0xd34897(0x431)](_0x113cc8,_0x476082))throw Error(_0xd34897(0x307));this[_0xd34897(0x274)](_0x1f3b51,this[_0xd34897(0x45b)][_0xd34897(0x26a)](_0x1f3b51[_0xd34897(0x2d0)](),_0x113cc8,_0x476082,_0x45584f));}[_0x274f9f(0x44f)](_0x41118e,_0x3c031d,_0x34e496,_0x4dfaf9){const _0x2cf219=_0x274f9f;if(!this[_0x2cf219(0x28e)][_0x2cf219(0x431)](_0x3c031d,_0x34e496))throw Error(_0x2cf219(0x307));this[_0x2cf219(0x274)](_0x41118e,this[_0x2cf219(0x45b)][_0x2cf219(0x44f)](_0x41118e[_0x2cf219(0x2d0)](),_0x3c031d,_0x34e496,_0x4dfaf9));}['setViewFilter'](_0x586633,_0x77e5b8,_0x278be4,_0x21fbac){const _0x4e85cd=_0x274f9f;this['_apply'](_0x586633,this['_factory']['setViewFilter'](_0x586633[_0x4e85cd(0x2d0)](),_0x77e5b8,_0x278be4,_0x21fbac));}[_0x274f9f(0x4ce)](_0x3e971c,_0x353a44,_0x126875,_0x2347c8){const _0x4848aa=_0x274f9f;this[_0x4848aa(0x274)](_0x3e971c,this[_0x4848aa(0x45b)][_0x4848aa(0x4ce)](_0x3e971c[_0x4848aa(0x2d0)](),_0x353a44,_0x126875,_0x2347c8));}['setViewGroup'](_0x44f440,_0x7b4221,_0x3089fe,_0x5dc82f){const _0x3fbd41=_0x274f9f;this['_apply'](_0x44f440,this['_factory']['setViewGroup'](_0x44f440[_0x3fbd41(0x2d0)](),_0x7b4221,_0x3089fe,_0x5dc82f));}[_0x274f9f(0x447)](_0x3f21f8,_0x437a27,_0x1bb1c8,_0x527c90,_0x120cc5){const _0x510954=_0x274f9f;if(!this[_0x510954(0x28e)]['canManageView'](_0x437a27,_0x1bb1c8))throw Error(_0x510954(0x307));this[_0x510954(0x274)](_0x3f21f8,this[_0x510954(0x45b)][_0x510954(0x447)](_0x3f21f8[_0x510954(0x2d0)](),_0x437a27,_0x1bb1c8,_0x527c90,_0x120cc5));}['setViewFieldWidth'](_0x5e92b2,_0x5323ee,_0x167227,_0x129739,_0x45acb5){const _0x3836c1=_0x274f9f;this[_0x3836c1(0x274)](_0x5e92b2,this[_0x3836c1(0x45b)]['setViewFieldWidth'](_0x5e92b2[_0x3836c1(0x2d0)](),_0x5323ee,_0x167227,_0x129739,_0x45acb5));}[_0x274f9f(0x236)](_0x1c6feb,_0x6daff3,_0x234109,_0x365f68,_0x374407){const _0x3f8924=_0x274f9f;this[_0x3f8924(0x274)](_0x1c6feb,this[_0x3f8924(0x45b)][_0x3f8924(0x236)](_0x1c6feb[_0x3f8924(0x2d0)](),_0x6daff3,_0x234109,_0x365f68,_0x374407));}[_0x274f9f(0x274)](_0x60b88d,_0x4b1577){const _0x16527f=_0x274f9f;let _0x158b32=_0x60b88d[_0x16527f(0x2d0)]();_0x60b88d[_0x16527f(0x212)](this[_0x16527f(0x527)][_0x16527f(0x347)](_0x158b32,_0x4b1577));}[_0x274f9f(0x1fa)](_0x3ec869,_0x25d6b2,_0x48a418,_0x599baa=this[_0x274f9f(0x376)](_0x3ec869[_0x274f9f(0x529)][_0x25d6b2])){const _0x21c4b0=_0x274f9f;let _0x2a9208=_0x3ec869['tables'][_0x25d6b2],_0x5f330f=_0x48a418[_0x21c4b0(0x370)]??_0x48a418[_0x21c4b0(0x2b3)]??this[_0x21c4b0(0x22f)](),_0xf318f={..._0x48a418,'createdBy':_0x48a418['createdBy']??_0x5f330f,'updatedBy':_0x48a418[_0x21c4b0(0x2b3)]??_0x5f330f,'values':{..._0x48a418['values']}};return _0xf318f[_0x21c4b0(0x33c)][_0x525439]=_0xf318f['id'],_0x2a9208[_0x21c4b0(0x47a)][_0x21c4b0(0x366)](_0x1715e5=>{const _0xbb3c1d=_0x21c4b0;let _0x7029ba=_0x2a9208[_0xbb3c1d(0x39f)][_0x1715e5];if(!(!_0x7029ba||_0xf318f['values'][_0x1715e5]!==void 0x0))switch(_0x7029ba[_0xbb3c1d(0x2b9)]){case _0x11438e[_0xbb3c1d(0x24e)]:var _0x387897;_0xf318f[_0xbb3c1d(0x33c)][_0x1715e5]=((_0x387897=_0x599baa[_0xbb3c1d(0x23e)](_0x1715e5))==null?void 0x0:_0x387897())??this[_0xbb3c1d(0x47f)](_0x2a9208,_0x1715e5)();break;case _0x11438e['CreatedBy']:_0xf318f[_0xbb3c1d(0x370)]&&(_0xf318f[_0xbb3c1d(0x33c)][_0x1715e5]=_0xf318f[_0xbb3c1d(0x370)]);break;case _0x11438e[_0xbb3c1d(0x278)]:_0xf318f[_0xbb3c1d(0x2b3)]&&(_0xf318f[_0xbb3c1d(0x33c)][_0x1715e5]=_0xf318f[_0xbb3c1d(0x2b3)]);break;case _0x11438e[_0xbb3c1d(0x33f)]:_0xf318f[_0xbb3c1d(0x33c)][_0x1715e5]=B(_0xf318f[_0xbb3c1d(0x31f)]);break;case _0x11438e[_0xbb3c1d(0x2df)]:_0xf318f[_0xbb3c1d(0x33c)][_0x1715e5]=B(_0xf318f[_0xbb3c1d(0x3da)]);break;default:{let _0x319878=_0x7029ba[_0xbb3c1d(0x319)];_0x319878!=null&&_0x319878!==''&&!(Array['isArray'](_0x319878)&&_0x319878[_0xbb3c1d(0x353)]===0x0)&&(_0xf318f['values'][_0x1715e5]=_0x319878);}}}),_0xf318f;}[_0x274f9f(0x48e)](_0x4e7b86,_0x2bbf8a,_0x4d24ff,_0x4fd014){const _0x4a3a91=_0x274f9f;var _0x4294d7,_0x5f56c4;let _0x1034e3=_0x4e7b86['tables'][_0x2bbf8a],_0x5e7180=((_0x4294d7=(_0x5f56c4=this[_0x4a3a91(0x275)])[_0x4a3a91(0x4df)])==null?void 0x0:_0x4294d7[_0x4a3a91(0x385)](_0x5f56c4))??Date[_0x4a3a91(0x4df)](),_0x3aa53e=this['_getCurrentUserId'](),_0xb3197={..._0x4fd014};return _0x1034e3['fieldOrder'][_0x4a3a91(0x366)](_0x51059e=>{const _0x523835=_0x4a3a91;let _0x3627e2=_0x1034e3[_0x523835(0x39f)][_0x51059e];_0x3627e2&&(_0x3627e2[_0x523835(0x2b9)]===_0x11438e[_0x523835(0x2df)]&&(_0xb3197[_0x51059e]=B(_0x5e7180)),_0x3627e2['type']===_0x11438e[_0x523835(0x278)]&&_0x3aa53e&&(_0xb3197[_0x51059e]=_0x3aa53e));}),{'recordId':_0x4d24ff,'values':_0xb3197,'recordPatch':{'updatedAt':_0x5e7180,..._0x3aa53e?{'updatedBy':_0x3aa53e}:{}}};}[_0x274f9f(0x32e)](_0x4a47b2,_0x26ec21,_0x5689bb){const _0x3db4ea=_0x274f9f;let _0x230e7a=_0x4a47b2[_0x3db4ea(0x529)][_0x26ec21];return!_0x230e7a||!tr(_0x5689bb)?[]:_0x5689bb[_0x3db4ea(0x2b9)]===_0x11438e[_0x3db4ea(0x24e)]?this[_0x3db4ea(0x495)](_0x230e7a,_0x5689bb['id']):Object[_0x3db4ea(0x33c)](_0x230e7a[_0x3db4ea(0x3c4)])[_0x3db4ea(0x25e)](_0x55fd7c=>{const _0x2271e8=_0x3db4ea;let _0x3b051b=this[_0x2271e8(0x3ac)](_0x5689bb,_0x55fd7c);return _0x3b051b===void 0x0?[]:[{'recordId':_0x55fd7c['id'],'values':{[_0x5689bb['id']]:_0x3b051b}}];});}['_getSystemFieldValue'](_0x4b6ccd,_0x2725c5){const _0x1f91b7=_0x274f9f;switch(_0x4b6ccd[_0x1f91b7(0x2b9)]){case _0x11438e['CreatedBy']:return _0x2725c5[_0x1f91b7(0x370)]??this[_0x1f91b7(0x22f)]();case _0x11438e[_0x1f91b7(0x278)]:return _0x2725c5[_0x1f91b7(0x2b3)]??this[_0x1f91b7(0x22f)]();case _0x11438e[_0x1f91b7(0x33f)]:return B(_0x2725c5['createdAt']??Date[_0x1f91b7(0x4df)]());case _0x11438e[_0x1f91b7(0x2df)]:return B(_0x2725c5['updatedAt']??Date[_0x1f91b7(0x4df)]());default:return;}}[_0x274f9f(0x376)](_0x6a2c6){const _0x5591e7=_0x274f9f;let _0x524ecb=new Map();return _0x6a2c6&&_0x6a2c6[_0x5591e7(0x47a)]['forEach'](_0x5389db=>{const _0x6513f0=_0x5591e7;let _0x142183=_0x6a2c6[_0x6513f0(0x39f)][_0x5389db];(_0x142183==null?void 0x0:_0x142183[_0x6513f0(0x2b9)])===_0x11438e[_0x6513f0(0x24e)]&&_0x524ecb[_0x6513f0(0x317)](_0x5389db,this['_createNumberingAllocator'](_0x6a2c6,_0x5389db));}),_0x524ecb;}['_createNumberingAllocator'](_0x3e87c7,_0x41d205){const _0x2b2579=_0x274f9f;let _0x436fd3=Object['values'](_0x3e87c7[_0x2b2579(0x3c4)])[_0x2b2579(0x491)]((_0xefa954,_0x275dbf)=>{const _0xa644e1=_0x2b2579;let _0x5e8250=Number(_0x275dbf[_0xa644e1(0x33c)][_0x41d205]);return Number['isFinite'](_0x5e8250)?Math['max'](_0xefa954,_0x5e8250):_0xefa954;},0x0);return()=>String(++_0x436fd3);}[_0x274f9f(0x495)](_0x46611c,_0x903279){const _0x113764=_0x274f9f;let _0x6e414a=this['_getOrderedRecords'](_0x46611c),_0x552691=this[_0x113764(0x47f)](_0x46611c,_0x903279);return _0x6e414a['flatMap'](_0x2c7efd=>this[_0x113764(0x433)](_0x2c7efd[_0x113764(0x33c)][_0x903279])?[]:[{'recordId':_0x2c7efd['id'],'values':{[_0x903279]:_0x552691()}}]);}['_getOrderedRecords'](_0x32029f){const _0x4135fd=_0x274f9f;var _0x1e42e9;let _0x35c34e=Object[_0x4135fd(0x33c)](_0x32029f[_0x4135fd(0x3c4)]),_0x404d9c=new Map(_0x35c34e['map'](_0x25865c=>[_0x25865c['id'],_0x25865c])),_0x2770e1=[],_0x24c927=new Set();(_0x1e42e9=_0x32029f['recordOrder'])==null||_0x1e42e9['forEach'](_0x3da2e3=>{const _0x14c5b0=_0x4135fd;let _0x42ccae=_0x404d9c[_0x14c5b0(0x23e)](_0x3da2e3);_0x42ccae&&(_0x2770e1[_0x14c5b0(0x254)](_0x42ccae),_0x24c927[_0x14c5b0(0x4a3)](_0x3da2e3));});let _0x56ad3b=_0x35c34e[_0x4135fd(0x458)](_0x4c7b9d=>!_0x24c927['has'](_0x4c7b9d['id']))['sort']((_0x5b5a4e,_0x26829c)=>String(_0x5b5a4e[_0x4135fd(0x280)]??_0x5b5a4e['id'])[_0x4135fd(0x1fe)](String(_0x26829c['orderKey']??_0x26829c['id']))||_0x5b5a4e['id'][_0x4135fd(0x1fe)](_0x26829c['id']));return[..._0x2770e1,..._0x56ad3b];}['_isNonEmptyCellValue'](_0x3f56dc){const _0x45139e=_0x274f9f;return _0x3f56dc!=null&&_0x3f56dc!==''&&!(Array[_0x45139e(0x39e)](_0x3f56dc)&&_0x3f56dc['length']===0x0);}[_0x274f9f(0x22f)](){const _0x49e235=_0x274f9f;var _0xd674f3,_0x11365f,_0x5b1485,_0x474f14;return((_0xd674f3=(_0x11365f=this[_0x49e235(0x275)])['getCurrentUserId'])==null?void 0x0:_0xd674f3[_0x49e235(0x385)](_0x11365f))??((_0x5b1485=(_0x474f14=this[_0x49e235(0x275)])['getCurrentUser'])==null||(_0x5b1485=_0x5b1485[_0x49e235(0x385)](_0x474f14))==null?void 0x0:_0x5b1485[_0x49e235(0x1e2)])??void 0x0;}[_0x274f9f(0x45e)](_0x33dc3c,_0x19ecee,_0x49fa1b,_0x483109,_0x5ea935){const _0x3a2685=_0x274f9f;var _0x27eba8;if(!this[_0x3a2685(0x28e)][_0x3a2685(0x409)](_0x19ecee,_0x49fa1b,_0x483109))throw Error(_0x3a2685(0x407));let _0x557468=(_0x27eba8=_0x33dc3c['tables'][_0x19ecee])==null?void 0x0:_0x27eba8['fields'][_0x483109];if(!_0x557468)throw Error(_0x3a2685(0x34b)+_0x483109+_0x3a2685(0x518));let _0xec020a=this[_0x3a2685(0x3e6)][_0x3a2685(0x23e)](_0x557468['type']);if(_0x557468[_0x3a2685(0x3ba)]||_0x557468[_0x3a2685(0x3a9)]||!_0xec020a[_0x3a2685(0x4db)](_0x557468)[_0x3a2685(0x2e8)])throw Error(_0x3a2685(0x470));let _0x5711f1=_0xec020a['normalize'](_0x5ea935,_0x557468),_0x443c8d=_0xec020a['validate'](_0x5711f1,_0x557468);if(!_0x443c8d['valid'])throw Error(_0x443c8d[_0x3a2685(0x257)]??_0x3a2685(0x466));let _0x575f27=_0x557468[_0x3a2685(0x2b9)]===_0x11438e[_0x3a2685(0x24c)]?Oe(_0x33dc3c,_0x557468,_0x5711f1):{'valid':!0x0};if(!_0x575f27['valid'])throw Error(_0x575f27[_0x3a2685(0x257)]??_0x3a2685(0x22a));return _0x5711f1;}[_0x274f9f(0x262)](_0x4daa3b,_0x50613f){const _0x298c96=_0x274f9f;if(_0x50613f['id']===_0x525439||_0x50613f[_0x298c96(0x2b9)]===_0x11438e[_0x298c96(0x20d)]||_0xec31b8(_0x50613f[_0x298c96(0x248)]))throw Error('[BaseCommandService]:\x20record-id\x20is\x20reserved.');let _0x7d5a1f=De(_0x4daa3b,_0x50613f);if(!_0x7d5a1f['valid'])throw Error(_0x7d5a1f[_0x298c96(0x257)]??_0x298c96(0x4a9));}};$n=q([K(0x0,Yn),K(0x1,qn)],$n);function er(){const _0x1262c5=_0x274f9f;let _0xc0ff48=new Jn();return xn()[_0x1262c5(0x366)](_0x2c5ab1=>_0xc0ff48[_0x1262c5(0x406)](_0x2c5ab1)),_0xc0ff48;}function tr(_0x1d26e8){const _0xf4a3e4=_0x274f9f;return _0x1d26e8[_0xf4a3e4(0x2b9)]===_0x11438e[_0xf4a3e4(0x24e)]||_0x1d26e8[_0xf4a3e4(0x2b9)]===_0x11438e[_0xf4a3e4(0x4ac)]||_0x1d26e8[_0xf4a3e4(0x2b9)]===_0x11438e[_0xf4a3e4(0x278)]||_0x1d26e8[_0xf4a3e4(0x2b9)]===_0x11438e['CreatedAt']||_0x1d26e8[_0xf4a3e4(0x2b9)]===_0x11438e['UpdatedAt'];}const nr=new Set([_0x11438e[_0x274f9f(0x298)],_0x11438e[_0x274f9f(0x259)],_0x11438e['Checkbox']]);function rr(_0x1e0d55){const _0x3de31f=_0x274f9f;let _0x4c854c=_0x1e0d55[_0x3de31f(0x39f)][_0x1e0d55['primaryFieldId']];if(!(_0x4c854c&&(_0x4c854c['system']===!0x0||_0x4c854c['id'][_0x3de31f(0x208)]()==='id'||_0x4c854c[_0x3de31f(0x248)]['trim']()[_0x3de31f(0x208)]()==='id'))&&_0x4c854c)return _0x4c854c['id'];for(let _0x1ea74a of _0x1e0d55[_0x3de31f(0x47a)]){let _0xeb2106=_0x1e0d55[_0x3de31f(0x39f)][_0x1ea74a];if(_0xeb2106&&_0xeb2106['id']!==_0x1e0d55[_0x3de31f(0x2db)]&&_0xeb2106[_0x3de31f(0x3a9)]!==!0x0&&_0xeb2106[_0x3de31f(0x2b9)]!==_0x11438e[_0x3de31f(0x20d)])return _0xeb2106['id'];}return _0x1e0d55[_0x3de31f(0x2db)];}function ir(_0x57d94e,_0x3c6cb1=[],_0x3735cb=0x5){const _0x1d5bde=_0x274f9f;let _0x1c8294=new Set(_0x3c6cb1['filter'](_0x279ade=>!!_0x279ade)),_0x22746f=[],_0x22237d=[];for(let _0x4e315d of _0x57d94e[_0x1d5bde(0x47a)]){let _0x421658=_0x57d94e[_0x1d5bde(0x39f)][_0x4e315d];_0x421658&&_0x421658[_0x1d5bde(0x3a9)]!==!0x0&&_0x421658['type']!==_0x11438e[_0x1d5bde(0x20d)]&&!_0x1c8294[_0x1d5bde(0x51e)](_0x421658['id'])&&(nr[_0x1d5bde(0x51e)](_0x421658[_0x1d5bde(0x2b9)])?_0x22746f:_0x22237d)['push'](_0x421658['id']);}return[..._0x22746f,..._0x22237d][_0x1d5bde(0x51c)](0x0,_0x3735cb);}function ar(){const _0x49db01=_0x274f9f;return[{'type':_0x31904d[_0x49db01(0x4a0)],'i18nKey':'base.viewType.grid','createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0xc22cff=_0x49db01;throw Error(_0xc22cff(0x36d));}},{'type':_0x31904d[_0x49db01(0x3d7)],'i18nKey':_0x49db01(0x2b7),'createDefaultConfig':_0x2052a2=>{const _0x1ee096=_0x49db01;let _0x1aa88f=or(_0x2052a2);return{'groupFieldId':_0x1aa88f,'coverFieldId':null,'cardLayout':_0x1ee096(0x268),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x2052a2[_0x1ee096(0x2db)],'fieldIds':ir(_0x2052a2,[_0x2052a2[_0x1ee096(0x2db)],_0x1aa88f])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x16f622=_0x49db01;throw Error(_0x16f622(0x309));}},{'type':_0x31904d['Calendar'],'i18nKey':_0x49db01(0x43f),'createDefaultConfig':_0x125cbc=>{const _0x34f5b4=_0x49db01;let _0x586084=sr(_0x125cbc);return{'startDateFieldId':_0x586084,'endDateFieldId':cr(_0x125cbc,_0x586084),'titleFieldId':_0x125cbc[_0x34f5b4(0x2db)],'mode':_0x34f5b4(0x48c),'timeslotSize':_0x34f5b4(0x51d),'timeZone':_0x34f5b4(0x29b),'displayColor':{'type':_0x34f5b4(0x4cf),'color':_0x34f5b4(0x517)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x5c90c3=_0x49db01;throw Error(_0x5c90c3(0x2ea));}},{'type':_0x31904d['Gantt'],'i18nKey':'base.viewType.gantt','createDefaultConfig':_0x14b23f=>{const _0x3a9bc9=_0x49db01;let _0x2bcadf=sr(_0x14b23f);return{'startDateFieldId':_0x2bcadf,'endDateFieldId':cr(_0x14b23f,_0x2bcadf)??_0x2bcadf,'titleFieldId':_0x14b23f['primaryFieldId'],'scale':_0x3a9bc9(0x48c),'showTodayLine':!0x0,'displayColor':{'type':_0x3a9bc9(0x4cf),'color':_0x3a9bc9(0x321)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x129010=_0x49db01;throw Error(_0x129010(0x500));}},{'type':_0x31904d[_0x49db01(0x1fb)],'i18nKey':_0x49db01(0x256),'createDefaultConfig':_0x2a8b61=>{const _0xedc673=_0x49db01;let _0x553f3f=rr(_0x2a8b61);return{'coverFieldId':null,'cardLayout':_0xedc673(0x268),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x553f3f,'coverFieldId':null,'fieldIds':ir(_0x2a8b61,[_0x553f3f,_0x2a8b61[_0xedc673(0x2db)]])},'cardSize':_0xedc673(0x51d)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x2c7629=_0x49db01;throw Error(_0x2c7629(0x3ff));}}];}function or(_0xc9c739){const _0x3bd77f=_0x274f9f;var _0x38a6,_0x5265b4,_0x476436;let _0x3284a2=_0xc9c739[_0x3bd77f(0x47a)][_0x3bd77f(0x22e)](_0x1f6748=>_0xc9c739[_0x3bd77f(0x39f)][_0x1f6748])[_0x3bd77f(0x458)](_0x249e5e=>!!_0x249e5e);return((_0x38a6=_0x3284a2[_0x3bd77f(0x271)](_0x257f32=>_0x257f32[_0x3bd77f(0x2b9)]===_0x11438e[_0x3bd77f(0x282)]||_0x257f32[_0x3bd77f(0x2b9)]===_0x11438e[_0x3bd77f(0x3a5)]||_0x257f32[_0x3bd77f(0x2b9)]===_0x11438e[_0x3bd77f(0x1f9)]))==null?void 0x0:_0x38a6['id'])??((_0x5265b4=_0x3284a2[_0x3bd77f(0x271)](_0x2232b9=>_0x2232b9[_0x3bd77f(0x2b9)]===_0x11438e['Text']))==null?void 0x0:_0x5265b4['id'])??((_0x476436=_0x3284a2[_0x3bd77f(0x271)](_0x2d576f=>_0x2d576f['type']===_0x11438e['Date']||_0x2d576f[_0x3bd77f(0x2b9)]===_0x11438e[_0x3bd77f(0x33f)]||_0x2d576f[_0x3bd77f(0x2b9)]===_0x11438e['UpdatedAt']))==null?void 0x0:_0x476436['id'])??_0xc9c739[_0x3bd77f(0x2db)];}function sr(_0x5b800c){const _0x511907=_0x274f9f;var _0x7ed281;return((_0x7ed281=_0x5b800c[_0x511907(0x47a)][_0x511907(0x22e)](_0x2fc42d=>_0x5b800c[_0x511907(0x39f)][_0x2fc42d])[_0x511907(0x271)](lr))==null?void 0x0:_0x7ed281['id'])??'';}function cr(_0x78bf03,_0x44177d){const _0x40ddaa=_0x274f9f;var _0x4f0152;return(_0x4f0152=_0x78bf03['fieldOrder'][_0x40ddaa(0x22e)](_0x43b900=>_0x78bf03[_0x40ddaa(0x39f)][_0x43b900])[_0x40ddaa(0x271)](_0x29d4cb=>lr(_0x29d4cb)&&_0x29d4cb['id']!==_0x44177d))==null?void 0x0:_0x4f0152['id'];}function lr(_0x1c8002){const _0x2f19b0=_0x274f9f;return!!_0x1c8002&&_0x1c8002[_0x2f19b0(0x2b9)]===_0x11438e[_0x2f19b0(0x44b)]&&_0x1c8002[_0x2f19b0(0x3ba)]!==!0x0&&_0x1c8002[_0x2f19b0(0x3a9)]!==!0x0;}const ur=_0x3c1d0d(_0x274f9f(0x308)),dr=new Set([_0x11438e[_0x274f9f(0x43e)],_0x11438e['Currency'],_0x11438e[_0x274f9f(0x298)],_0x11438e[_0x274f9f(0x259)],_0x11438e[_0x274f9f(0x44b)],_0x11438e[_0x274f9f(0x33f)],_0x11438e['UpdatedAt'],_0x11438e[_0x274f9f(0x44d)]]);let fr=class extends _0x4191ab{constructor(_0x2dbbe5){const _0xdf748b=_0x274f9f;super(),this[_0xdf748b(0x3e6)]=_0x2dbbe5,G(this,_0xdf748b(0x516),new Map()),G(this,'_projectionCache',new WeakMap()),G(this,_0xdf748b(0x224),new Map()),G(this,_0xdf748b(0x2dc),new Map()),G(this,_0xdf748b(0x2cd),new Map()),G(this,_0xdf748b(0x1f6),new Map()),G(this,_0xdf748b(0x464),0x0),G(this,_0xdf748b(0x40a),new Map()),G(this,_0xdf748b(0x1ef),new Map()),G(this,_0xdf748b(0x3a8),new Map()),G(this,_0xdf748b(0x2f2),new Map());}['registerView'](_0x55358a){const _0x2a650e=_0x274f9f;return this['_views'][_0x2a650e(0x317)](_0x55358a['type'],_0x55358a),_0x26ad0b(()=>this['_views']['delete'](_0x55358a[_0x2a650e(0x2b9)]));}[_0x274f9f(0x3b9)](_0x150654,_0x482904,_0x203709){const _0x2855e6=_0x274f9f;var _0x563758,_0x30c56f,_0x4c4950;return I(_0x2855e6(0x507),()=>{const _0x4b85f7=_0x2855e6;let _0xf2d94c=this[_0x4b85f7(0x48a)](_0x150654,_0x482904,_0x203709);if(_0xf2d94c)return _0xf2d94c;let _0x3cd7bd=_0x150654[_0x4b85f7(0x529)][_0x482904],_0x2caaa4=_0x3cd7bd==null?void 0x0:_0x3cd7bd[_0x4b85f7(0x22d)][_0x203709];if(!_0x3cd7bd||!_0x2caaa4)return this[_0x4b85f7(0x29d)](_0x150654,_0x482904,_0x203709,{'type':_0x4b85f7(0x402),'viewType':(_0x2caaa4==null?void 0x0:_0x2caaa4[_0x4b85f7(0x2b9)])??_0x31904d['Grid'],'reason':_0x4b85f7(0x43c)});let _0x182239;switch(_0x2caaa4[_0x4b85f7(0x2b9)]){case _0x31904d[_0x4b85f7(0x4a0)]:_0x182239=this[_0x4b85f7(0x29c)](_0x3cd7bd,_0x2caaa4);break;case _0x31904d['Gantt']:_0x182239=this[_0x4b85f7(0x436)](_0x3cd7bd,_0x2caaa4);break;case _0x31904d[_0x4b85f7(0x3d7)]:_0x182239=this[_0x4b85f7(0x4cd)](_0x3cd7bd,_0x2caaa4);break;case _0x31904d['Calendar']:_0x182239=this['_buildCalendar'](_0x3cd7bd,_0x2caaa4);break;case _0x31904d[_0x4b85f7(0x1fb)]:_0x182239=this[_0x4b85f7(0x35c)](_0x3cd7bd,_0x2caaa4);break;default:_0x182239={'type':_0x4b85f7(0x402),'viewType':_0x2caaa4['type'],'reason':'missingField'};}return this['_setCachedProjection'](_0x150654,_0x482904,_0x203709,_0x182239);},{'tableId':_0x482904,'viewId':_0x203709,'viewType':(_0x563758=_0x150654[_0x2855e6(0x529)][_0x482904])==null||(_0x563758=_0x563758[_0x2855e6(0x22d)][_0x203709])==null?void 0x0:_0x563758[_0x2855e6(0x2b9)],'records':((_0x30c56f=_0x150654['tables'][_0x482904])==null||(_0x30c56f=_0x30c56f[_0x2855e6(0x4fd)])==null?void 0x0:_0x30c56f[_0x2855e6(0x353)])??Object['keys'](((_0x4c4950=_0x150654[_0x2855e6(0x529)][_0x482904])==null?void 0x0:_0x4c4950[_0x2855e6(0x3c4)])??{})[_0x2855e6(0x353)]});}[_0x274f9f(0x30c)](_0x398f55,_0x2f6944,_0x7d7066){const _0xfb06fc=_0x274f9f;var _0x42a675,_0x58fb3b,_0xb71dca;let _0x37e5c1=_0x398f55[_0xfb06fc(0x529)][_0x2f6944],_0x2ef073=_0x37e5c1==null?void 0x0:_0x37e5c1[_0xfb06fc(0x22d)][_0x7d7066];if(!_0x37e5c1||!_0x2ef073)throw Error(_0xfb06fc(0x4dd)+_0x7d7066+'\x22.');let _0xc72e1b=_0x4d8dea=>!!_0x37e5c1[_0xfb06fc(0x39f)][_0x4d8dea],_0x4f7706={..._0x2ef073,'filter':_0x2ef073[_0xfb06fc(0x458)]?{..._0x2ef073[_0xfb06fc(0x458)],'conditions':_0x2ef073[_0xfb06fc(0x458)][_0xfb06fc(0x400)][_0xfb06fc(0x458)](_0x52043c=>_0xc72e1b(_0x52043c['fieldId']))}:_0x2ef073['filter'],'sort':(_0x42a675=_0x2ef073['sort'])==null?void 0x0:_0x42a675[_0xfb06fc(0x458)](_0x230ede=>_0xc72e1b(_0x230ede[_0xfb06fc(0x419)])),'group':(_0x58fb3b=_0x2ef073[_0xfb06fc(0x394)])==null?void 0x0:_0x58fb3b[_0xfb06fc(0x458)](_0x245a74=>_0xc72e1b(_0x245a74[_0xfb06fc(0x419)])),'fieldOrder':(_0xb71dca=_0x2ef073['fieldOrder'])==null?void 0x0:_0xb71dca[_0xfb06fc(0x458)](_0xc72e1b),'fieldSettings':Object[_0xfb06fc(0x372)](Object['entries'](_0x2ef073[_0xfb06fc(0x243)]??{})[_0xfb06fc(0x458)](([_0x82fd95])=>_0xc72e1b(_0x82fd95)))};if(_0x4f7706[_0xfb06fc(0x2b9)]==='kanban'){var _0x1d890f;let _0x4dfcb0=_0x4f7706[_0xfb06fc(0x427)]??{},_0x562676=this[_0xfb06fc(0x36e)](_0x37e5c1,_0x4f7706),_0xa8e476=this['_resolveCardTitleFieldId'](_0x37e5c1,(_0x1d890f=_0x4dfcb0[_0xfb06fc(0x4cb)])==null?void 0x0:_0x1d890f[_0xfb06fc(0x3ef)]);_0x4f7706[_0xfb06fc(0x427)]={..._0x4dfcb0,'groupFieldId':_0x562676??_0x4dfcb0[_0xfb06fc(0x2e6)],'coverFieldId':this[_0xfb06fc(0x511)](_0x37e5c1,_0x4dfcb0),'cardLayout':_0x4dfcb0[_0xfb06fc(0x521)]===_0xfb06fc(0x508)?'compose':_0xfb06fc(0x268),'showFieldNames':_0x4dfcb0[_0xfb06fc(0x4d2)]!==!0x1,'fieldSettings':Object[_0xfb06fc(0x372)](Object[_0xfb06fc(0x2d4)](_0x4dfcb0[_0xfb06fc(0x243)]??{})[_0xfb06fc(0x458)](([_0x44d729])=>_0xc72e1b(_0x44d729))),'columnSettings':_0x4dfcb0['columnSettings']??{},'card':{..._0x4dfcb0['card']??{},'titleFieldId':_0xa8e476,'fieldIds':this[_0xfb06fc(0x379)](_0x37e5c1,_0x4f7706,_0x562676??'',_0xa8e476)}};}return{'repaired':JSON[_0xfb06fc(0x2b6)](_0x4f7706)!==JSON['stringify'](_0x2ef073),'view':_0x4f7706};}[_0x274f9f(0x1f0)](){const _0x2b0bed=_0x274f9f;this[_0x2b0bed(0x464)]++;}[_0x274f9f(0x21c)](_0x55d094,_0x585d18,_0x178a89){const _0xc4b110=_0x274f9f;let _0x4a2a49=this['_getCellRevision'](_0x55d094)+0x1;this[_0xc4b110(0x1ef)][_0xc4b110(0x317)](_0x55d094,_0x4a2a49);let _0x55cac8=this['_cellInvalidations'][_0xc4b110(0x23e)](_0x55d094)??[];_0x55cac8['push']({'revision':_0x4a2a49,'recordId':_0x585d18,'fieldId':_0x178a89}),this[_0xc4b110(0x3a8)]['set'](_0x55d094,_0x55cac8);}[_0x274f9f(0x3cc)](_0x580c5d,_0x922251){const _0x2578db=_0x274f9f;this[_0x2578db(0x21a)](_0x580c5d);}['invalidateByView'](_0x365cf2,_0x44d836){const _0x4bd3f8=_0x274f9f;this[_0x4bd3f8(0x2f2)][_0x4bd3f8(0x317)](this[_0x4bd3f8(0x2c9)](_0x365cf2,_0x44d836),this[_0x4bd3f8(0x2bd)](_0x365cf2,_0x44d836)+0x1);}[_0x274f9f(0x48a)](_0x4d3023,_0x343d9b,_0x15cc02){const _0x411788=_0x274f9f;var _0x41ead7;let _0x1964a9=(_0x41ead7=this[_0x411788(0x449)][_0x411788(0x23e)](_0x4d3023))==null?void 0x0:_0x41ead7[_0x411788(0x23e)](this[_0x411788(0x38f)](_0x343d9b,_0x15cc02));return _0x1964a9&&_0x1964a9[_0x411788(0x415)]===this[_0x411788(0x464)]&&_0x1964a9[_0x411788(0x440)]===this[_0x411788(0x3ce)](_0x343d9b)&&_0x1964a9[_0x411788(0x1dd)]===this[_0x411788(0x290)](_0x343d9b)&&_0x1964a9[_0x411788(0x207)]===this['_getViewRevision'](_0x343d9b,_0x15cc02)?_0x1964a9['projection']:null;}[_0x274f9f(0x29d)](_0x1a1579,_0x4c950c,_0x233e10,_0x2e66ab){const _0x241c4c=_0x274f9f;let _0x42826c=this[_0x241c4c(0x449)]['get'](_0x1a1579);return _0x42826c||(_0x42826c=new Map(),this[_0x241c4c(0x449)][_0x241c4c(0x317)](_0x1a1579,_0x42826c)),_0x42826c[_0x241c4c(0x317)](this[_0x241c4c(0x38f)](_0x4c950c,_0x233e10),{'projection':_0x2e66ab,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x241c4c(0x3ce)](_0x4c950c),'cellRevision':this[_0x241c4c(0x290)](_0x4c950c),'viewRevision':this[_0x241c4c(0x2bd)](_0x4c950c,_0x233e10)}),_0x2e66ab;}[_0x274f9f(0x21a)](_0x10dea2){const _0x3cfeec=_0x274f9f;this[_0x3cfeec(0x40a)][_0x3cfeec(0x317)](_0x10dea2,this['_getTableRevision'](_0x10dea2)+0x1);}[_0x274f9f(0x3ce)](_0x2fe7b5){const _0x4ecb1c=_0x274f9f;return this[_0x4ecb1c(0x40a)][_0x4ecb1c(0x23e)](_0x2fe7b5)??0x0;}['_getCellRevision'](_0x23619e){const _0xe5bbc=_0x274f9f;return this[_0xe5bbc(0x1ef)][_0xe5bbc(0x23e)](_0x23619e)??0x0;}[_0x274f9f(0x2bd)](_0x43eb40,_0x472eac){const _0x1f6bc3=_0x274f9f;return this[_0x1f6bc3(0x2f2)][_0x1f6bc3(0x23e)](this[_0x1f6bc3(0x2c9)](_0x43eb40,_0x472eac))??0x0;}['_cacheKey'](_0x133521,_0x12d6db){return _0x133521+'\x00'+_0x12d6db;}[_0x274f9f(0x306)](_0x15cbc5,_0x250c01){const _0x3aae27=_0x274f9f;return _0x15cbc5+'\x00'+this[_0x3aae27(0x4d7)](_0x250c01);}[_0x274f9f(0x285)](_0x23e3b6,_0x1f7372,_0x5aa8fe){const _0x42549b=_0x274f9f;return _0x23e3b6+'\x00'+this[_0x42549b(0x4d7)](_0x1f7372)+'\x00'+this[_0x42549b(0x50e)](_0x5aa8fe);}[_0x274f9f(0x4d7)](_0x162919){const _0x591eca=_0x274f9f;return _0x162919?vr({'filter':gr(_0x162919['filter']),'sort':_r(_0x162919['sort'])}):_0x591eca(0x2af);}['_groupConfigCacheSegment'](_0x5e38da){const _0x59eb6f=_0x274f9f;return vr(_0x5e38da[_0x59eb6f(0x22e)](_0x2f4e68=>({'fieldId':_0x2f4e68['fieldId'],'direction':_0x2f4e68['direction']??null})));}[_0x274f9f(0x2c9)](_0x5e58e4,_0x1f3c9e){return _0x5e58e4+'\x00'+_0x1f3c9e;}['_buildGrid'](_0xf9507d,_0x12fe12){const _0x7aa5cf=_0x274f9f;var _0xf2127e;let _0x59ee03=P(_0xf9507d),_0x37816a=this[_0x7aa5cf(0x2d9)](_0xf9507d,_0x12fe12),_0x4d4a41=(_0xf2127e=_0x12fe12['filter'])!=null&&_0xf2127e[_0x7aa5cf(0x400)]['length']?this['_projectRows'](_0xf9507d,{..._0x12fe12,'filter':null}):_0x37816a,_0x450219=Be(this[_0x7aa5cf(0x1f3)](_0xf9507d,_0x59ee03,_0x12fe12['id'],_0x4d4a41[_0x7aa5cf(0x22e)](_0x310f73=>_0x310f73[_0x7aa5cf(0x44a)])),_0x4d4a41,new Set(_0x37816a[_0x7aa5cf(0x22e)](_0x407089=>_0x407089[_0x7aa5cf(0x44a)])));return{'type':_0x31904d[_0x7aa5cf(0x4a0)],'fields':this[_0x7aa5cf(0x398)](_0xf9507d,_0x12fe12),'rows':_0x450219[_0x7aa5cf(0x522)],'groups':this[_0x7aa5cf(0x313)](_0xf9507d,_0x12fe12,_0x450219[_0x7aa5cf(0x522)],_0x450219[_0x7aa5cf(0x24a)]),'hierarchy':_0x450219['hierarchy'],'frozenFieldCount':typeof _0x12fe12[_0x7aa5cf(0x427)]['frozenFieldCount']==_0x7aa5cf(0x4b3)?_0x12fe12['config'][_0x7aa5cf(0x459)]:0x0};}[_0x274f9f(0x1f3)](_0x538eab,_0xcf5bc0,_0x33fbc5,_0x4e30fe){const _0x5e0e2c=_0x274f9f;let _0x37a5b8=_0x538eab['id']+'\x00'+_0xcf5bc0+'\x00'+_0x33fbc5,_0x432c84=this['_getCellRevision'](_0x538eab['id']),_0x421235=this[_0x5e0e2c(0x1f6)][_0x5e0e2c(0x23e)](_0x37a5b8);if(_0x421235&&_0x421235[_0x5e0e2c(0x415)]===this[_0x5e0e2c(0x464)]&&_0x421235['tableRevision']===this[_0x5e0e2c(0x3ce)](_0x538eab['id'])){if(_0x421235[_0x5e0e2c(0x1dd)]===_0x432c84&&_0x421235['table']===_0x538eab)return _0x421235['index'];if(!this[_0x5e0e2c(0x32a)](_0x538eab['id'],_0x421235[_0x5e0e2c(0x1dd)],_0x432c84,new Set([_0xcf5bc0])))return this[_0x5e0e2c(0x1f6)][_0x5e0e2c(0x317)](_0x37a5b8,{..._0x421235,'table':_0x538eab,'cellRevision':_0x432c84}),_0x421235[_0x5e0e2c(0x519)];}let _0x25b008=F(_0x538eab,_0xcf5bc0,_0x4e30fe);return this[_0x5e0e2c(0x1f6)][_0x5e0e2c(0x317)](_0x37a5b8,{'table':_0x538eab,'index':_0x25b008,'globalRevision':this[_0x5e0e2c(0x464)],'tableRevision':this['_getTableRevision'](_0x538eab['id']),'cellRevision':_0x432c84}),_0x25b008;}[_0x274f9f(0x313)](_0x649c71,_0x2b2fba,_0x3497a9,_0x183f47){const _0x44bec7=_0x274f9f;var _0x3c6af5;if(!((_0x3c6af5=_0x2b2fba[_0x44bec7(0x394)])!=null&&_0x3c6af5['length']))return[];let _0xd8cb59=new Map(_0x3497a9[_0x44bec7(0x22e)](_0x8c6b2=>[_0x8c6b2['recordId'],_0x8c6b2])),_0x8b4b62=_0x183f47[_0x44bec7(0x2f8)][_0x44bec7(0x25e)](_0x5e1da9=>{const _0x610542=_0x44bec7;let _0x5be35c=_0xd8cb59[_0x610542(0x23e)](_0x5e1da9);return _0x5be35c?[_0x5be35c]:[];}),_0x12fd41=this[_0x44bec7(0x3db)](_0x649c71,_0x2b2fba,_0x8b4b62),_0x2a13cc=new Map(_0x183f47[_0x44bec7(0x3b3)][_0x44bec7(0x22e)]((_0x525111,_0x4217cb)=>[_0x525111,_0x4217cb])),_0x3ae708=_0x430742=>{const _0x2fec7e=_0x44bec7;let _0x1985cd=_0x183f47[_0x2fec7e(0x23d)][_0x430742],_0x369101=_0x2a13cc[_0x2fec7e(0x23e)](_0x430742)??-0x1;return _0x369101<0x0||!_0x1985cd?[]:_0x183f47[_0x2fec7e(0x3b3)][_0x2fec7e(0x51c)](_0x369101,_0x1985cd[_0x2fec7e(0x20a)]+0x1);},_0x37ad14=_0x569257=>{const _0xd87164=_0x44bec7;var _0xd01bdb,_0x5593dd;return{..._0x569257,'recordIds':(_0xd01bdb=_0x569257[_0xd87164(0x1fd)])!=null&&_0xd01bdb[_0xd87164(0x353)]?_0x569257[_0xd87164(0x316)]:_0x569257[_0xd87164(0x316)][_0xd87164(0x25e)](_0x3ae708),'children':(_0x5593dd=_0x569257[_0xd87164(0x1fd)])==null?void 0x0:_0x5593dd[_0xd87164(0x22e)](_0x37ad14)};};return _0x12fd41['map'](_0x37ad14);}['_buildKanban'](_0x19dfd0,_0x3c6080){const _0xf8688e=_0x274f9f;var _0x1fa051;let _0x8930e2=this[_0xf8688e(0x36e)](_0x19dfd0,_0x3c6080),_0x8f856e=_0x8930e2?_0x19dfd0[_0xf8688e(0x39f)][_0x8930e2]:void 0x0;if(!_0x8f856e)return{'type':'invalid','viewType':_0x31904d[_0xf8688e(0x3d7)],'reason':_0xf8688e(0x2be),'fieldId':_0x3c6080[_0xf8688e(0x427)][_0xf8688e(0x2e6)]};let _0x368663=this['_projectRows'](_0x19dfd0,_0x3c6080),_0x1194d5=this['_projectFields'](_0x19dfd0,_0x3c6080),_0x7f3819=_0x3c6080[_0xf8688e(0x427)]??{},_0x2109ea=this[_0xf8688e(0x425)](_0x19dfd0,(_0x1fa051=_0x7f3819[_0xf8688e(0x4cb)])==null?void 0x0:_0x1fa051['titleFieldId']),_0x1194c6=this[_0xf8688e(0x379)](_0x19dfd0,_0x3c6080,_0x8f856e['id'],_0x2109ea),_0x5ca0f3=new Map();if(M(_0x19dfd0,_0x8f856e['id'])){let _0x418291=this[_0xf8688e(0x1f3)](_0x19dfd0,_0x8f856e['id'],_0x3c6080['id'],_0x368663[_0xf8688e(0x22e)](_0x291e0d=>_0x291e0d[_0xf8688e(0x44a)])),_0x5e43fd=new Map();return _0x368663['forEach'](_0x16d2b4=>{const _0xc632f=_0xf8688e;let _0x1a6f11=_0x418291[_0xc632f(0x4a8)]['get'](_0x16d2b4[_0xc632f(0x44a)])??null,_0x2e9677=_0x1a6f11??'',_0x186793=_0x1a6f11?_0x19dfd0[_0xc632f(0x3c4)][_0x1a6f11]:void 0x0,_0x4d70fc=_0x5e43fd['get'](_0x2e9677)??{'key':_0x2e9677,'title':_0x186793?String(rt(_0x19dfd0,_0x186793['id'],_0x19dfd0[_0xc632f(0x2db)])??_0x1a6f11):this['_kanbanLaneTitle'](_0x8f856e,_0x2e9677,_0x7f3819),'recordIds':[]};_0x4d70fc['recordIds']['push'](_0x16d2b4['recordId']),_0x5e43fd[_0xc632f(0x317)](_0x2e9677,_0x4d70fc);}),{'type':_0x31904d[_0xf8688e(0x3d7)],'fields':_0x1194d5,'rows':_0x368663,'groups':[],'groupFieldId':_0x8f856e['id'],'titleFieldId':_0x2109ea,'coverFieldId':this[_0xf8688e(0x511)](_0x19dfd0,_0x7f3819),'cardLayout':_0x7f3819['cardLayout']==='compose'?'compose':_0xf8688e(0x268),'showFieldNames':_0x7f3819[_0xf8688e(0x4d2)]!==!0x1,'visibleCardFieldIds':_0x1194c6,'lanes':['',..._0x418291[_0xf8688e(0x3b3)]]['flatMap'](_0x5c0b14=>{const _0x8bf405=_0xf8688e;let _0x228413=_0x5e43fd[_0x8bf405(0x23e)](_0x5c0b14);return _0x228413!=null&&_0x228413['recordIds'][_0x8bf405(0x353)]?[_0x228413]:[];})};}return this[_0xf8688e(0x1d3)](_0x8f856e,_0x7f3819)[_0xf8688e(0x366)](_0x4ea7f4=>_0x5ca0f3['set'](_0x4ea7f4[_0xf8688e(0x3fd)],{..._0x4ea7f4,'recordIds':[]})),_0x368663[_0xf8688e(0x366)](_0x290053=>{const _0x164bfe=_0xf8688e;this[_0x164bfe(0x476)](_0x8f856e,_0x290053[_0x164bfe(0x33c)][_0x8f856e['id']])[_0x164bfe(0x366)](_0x208d75=>{const _0x5bc9c4=_0x164bfe;let _0x5cb1c9=_0x5ca0f3[_0x5bc9c4(0x23e)](_0x208d75)??{'key':_0x208d75,'title':this[_0x5bc9c4(0x225)](_0x8f856e,_0x208d75,_0x7f3819),'color':this['_kanbanLaneColor'](_0x8f856e,_0x208d75,_0x7f3819),'recordIds':[]};_0x5cb1c9[_0x5bc9c4(0x316)][_0x5bc9c4(0x254)](_0x290053[_0x5bc9c4(0x44a)]),_0x5ca0f3[_0x5bc9c4(0x317)](_0x208d75,_0x5cb1c9);});}),{'type':_0x31904d[_0xf8688e(0x3d7)],'fields':_0x1194d5,'rows':_0x368663,'groups':this[_0xf8688e(0x3db)](_0x19dfd0,_0x3c6080,_0x368663),'groupFieldId':_0x8f856e['id'],'titleFieldId':_0x2109ea,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x19dfd0,_0x7f3819),'cardLayout':_0x7f3819['cardLayout']===_0xf8688e(0x508)?_0xf8688e(0x508):_0xf8688e(0x268),'showFieldNames':_0x7f3819[_0xf8688e(0x4d2)]!==!0x1,'visibleCardFieldIds':_0x1194c6,'lanes':Array[_0xf8688e(0x2a4)](_0x5ca0f3['values']())};}[_0x274f9f(0x36e)](_0x5cabcd,_0x5db778){const _0x157b09=_0x274f9f;var _0x1c69ac;let _0x2b7cb6=(_0x1c69ac=_0x5db778[_0x157b09(0x427)])==null?void 0x0:_0x1c69ac['groupFieldId'];return _0x2b7cb6&&this[_0x157b09(0x46c)](_0x5cabcd,_0x2b7cb6)?_0x2b7cb6:this[_0x157b09(0x34d)](_0x5cabcd,_0x470487=>this[_0x157b09(0x25d)](_0x470487));}[_0x274f9f(0x34d)](_0x349956,_0x4a7417){const _0x4a04ce=_0x274f9f;for(let _0x267d1c of _0x349956[_0x4a04ce(0x47a)]){let _0x4886b6=_0x349956['fields'][_0x267d1c];if(_0x4886b6&&_0x4a7417(_0x4886b6))return _0x4886b6['id'];}return null;}[_0x274f9f(0x46c)](_0x52e83c,_0x45dea9){const _0x9781c8=_0x274f9f;let _0x9eb415=_0x52e83c[_0x9781c8(0x39f)][_0x45dea9];return this[_0x9781c8(0x25d)](_0x9eb415)||M(_0x52e83c,_0x45dea9);}['_isAllowedKanbanGroupField'](_0x4c4c0a){const _0x330acf=_0x274f9f;return!!_0x4c4c0a&&(_0x4c4c0a[_0x330acf(0x2b9)]===_0x11438e[_0x330acf(0x282)]||_0x4c4c0a[_0x330acf(0x2b9)]===_0x11438e['MultiSelect']||_0x4c4c0a[_0x330acf(0x2b9)]===_0x11438e['Rating']||_0x4c4c0a[_0x330acf(0x2b9)]===_0x11438e[_0x330acf(0x33d)]||_0x4c4c0a[_0x330acf(0x2b9)]===_0x11438e[_0x330acf(0x1f9)]||_0x4c4c0a[_0x330acf(0x2b9)]===_0x11438e[_0x330acf(0x44d)]);}[_0x274f9f(0x2d5)](_0x574d36){const _0x434873=_0x274f9f;return _0x574d36[_0x434873(0x2b9)]===_0x11438e[_0x434873(0x282)]||_0x574d36[_0x434873(0x2b9)]===_0x11438e[_0x434873(0x3a5)];}[_0x274f9f(0x511)](_0x1f51e6,_0x33d588){const _0x274d90=_0x274f9f;var _0x4ea585;let _0x201204=_0x33d588[_0x274d90(0x210)]??((_0x4ea585=_0x33d588[_0x274d90(0x4cb)])==null?void 0x0:_0x4ea585[_0x274d90(0x210)])??null;if(!_0x201204)return null;let _0x4e26a6=_0x1f51e6['fields'][_0x201204];return _0x4e26a6&&this[_0x274d90(0x3de)](_0x4e26a6)['usableAsCardCover']?_0x4e26a6['id']:null;}['_resolveKanbanCardFieldIds'](_0x4ca0aa,_0x1c4313,_0xe04a77,_0x1bafb3=this['_resolveCardTitleFieldId'](_0x4ca0aa,((()=>{const _0x15a0a1=_0x274f9f;var _0x5be304;return(_0x5be304=_0x1c4313[_0x15a0a1(0x427)])==null||(_0x5be304=_0x5be304[_0x15a0a1(0x4cb)])==null?void 0x0:_0x5be304[_0x15a0a1(0x3ef)];})()))){const _0x401c89=_0x274f9f;var _0xf11445;let _0x1eb071=_0x1c4313[_0x401c89(0x427)]??{},_0x58a18a=(_0xf11445=_0x1eb071[_0x401c89(0x4cb)])!=null&&(_0xf11445=_0xf11445['fieldIds'])!=null&&_0xf11445[_0x401c89(0x353)]?_0x1eb071[_0x401c89(0x4cb)][_0x401c89(0x3e4)]:ir(_0x4ca0aa,[_0x1bafb3,_0x4ca0aa[_0x401c89(0x2db)],_0xe04a77]),_0x1fc806=_0x1eb071[_0x401c89(0x243)]??{};return _0x58a18a[_0x401c89(0x458)](_0x33414c=>{const _0x555882=_0x401c89;var _0x4f7d2b,_0x47ca69;let _0x18e3bf=_0x4ca0aa['fields'][_0x33414c];return!(!_0x18e3bf||_0x18e3bf[_0x555882(0x3a9)]===!0x0||_0x18e3bf[_0x555882(0x2b9)]===_0x11438e[_0x555882(0x20d)]||_0x18e3bf['id']===_0xe04a77||_0x18e3bf['id']===_0x1bafb3||(_0x4f7d2b=_0x1c4313[_0x555882(0x243)])!=null&&(_0x4f7d2b=_0x4f7d2b[_0x33414c])!=null&&_0x4f7d2b[_0x555882(0x418)]||(_0x47ca69=_0x1fc806[_0x33414c])!=null&&_0x47ca69['hidden']);})[_0x401c89(0x456)]((_0x4fc709,_0x518e51)=>{const _0x6965f6=_0x401c89;var _0x167b34,_0x415247;return(((_0x167b34=_0x1fc806[_0x4fc709])==null?void 0x0:_0x167b34[_0x6965f6(0x251)])??_0x58a18a[_0x6965f6(0x502)](_0x4fc709))-(((_0x415247=_0x1fc806[_0x518e51])==null?void 0x0:_0x415247[_0x6965f6(0x251)])??_0x58a18a[_0x6965f6(0x502)](_0x518e51));});}[_0x274f9f(0x1d3)](_0x51b8c5,_0x485146){const _0x5c52f6=_0x274f9f;var _0x10cf11;let _0x38a656=(Array[_0x5c52f6(0x39e)]((_0x10cf11=_0x51b8c5['config'])==null?void 0x0:_0x10cf11[_0x5c52f6(0x4a7)])?_0x51b8c5['config']['options']:[])['flatMap']((_0xf9549,_0x4d4c43)=>{const _0x3a5730=_0x5c52f6;if(_0xf9549==null)return[];let _0x45570a=typeof _0xf9549=='string'?{'id':_0xf9549,'name':_0xf9549,'color':void 0x0}:_0xf9549,_0x45406e=String(_0x45570a['id']??_0x45570a[_0x3a5730(0x248)]??_0x3a5730(0x1e6)+(_0x4d4c43+0x1));return[{'key':_0x45406e,'title':String(_0x45570a[_0x3a5730(0x248)]??_0x45570a['id']??_0x45406e),'color':this['_kanbanLaneColor'](_0x51b8c5,_0x45406e,_0x485146)}];});return Object[_0x5c52f6(0x2d4)](_0x485146[_0x5c52f6(0x362)]??{})[_0x5c52f6(0x366)](([_0x2a3358,_0x3cc130])=>{const _0x8b25c1=_0x5c52f6;_0x38a656[_0x8b25c1(0x29f)](_0x81abe4=>_0x81abe4['key']===_0x2a3358)||_0x38a656['push']({'key':_0x2a3358,'title':this[_0x8b25c1(0x2d5)](_0x51b8c5)?_0x3cc130[_0x8b25c1(0x391)]??this[_0x8b25c1(0x225)](_0x51b8c5,_0x2a3358,_0x485146):this[_0x8b25c1(0x225)](_0x51b8c5,_0x2a3358,_0x485146),'color':this['_kanbanLaneColor'](_0x51b8c5,_0x2a3358,_0x485146)});}),_0x38a656;}[_0x274f9f(0x476)](_0x42091a,_0x3ff367){const _0x4d80eb=_0x274f9f;let _0x89e00f=_0x468ba4=>{const _0x478bb4=_0x2f15;var _0x4e18c1;let _0x5429f6=_0x468ba4==null?'':String(_0x468ba4);return!_0x5429f6||!this[_0x478bb4(0x2d5)](_0x42091a)?_0x5429f6:((_0x4e18c1=Vr(_0x42091a,_0x5429f6))==null?void 0x0:_0x4e18c1['id'])??_0x5429f6;};if(Array[_0x4d80eb(0x39e)](_0x3ff367)){let _0x45f887=_0x3ff367['map'](_0x89e00f)[_0x4d80eb(0x458)](_0x5c9497=>_0x5c9497!=='');return _0x45f887['length']?_0x45f887:[''];}return[_0x89e00f(_0x3ff367)];}['_kanbanLaneTitle'](_0x57d060,_0x30098f,_0x2c706c){const _0x4e7089=_0x274f9f;if(!_0x30098f)return _0x4e7089(0x369);let _0x355040=Vr(_0x57d060,_0x30098f);return(_0x355040==null?void 0x0:_0x355040[_0x4e7089(0x248)])??_0x30098f;}[_0x274f9f(0x283)](_0x27f84b,_0x31722b,_0x373106){const _0x3e01bf=_0x274f9f;var _0x46df38;if(this[_0x3e01bf(0x2d5)](_0x27f84b))return(_0x46df38=Vr(_0x27f84b,_0x31722b))==null?void 0x0:_0x46df38[_0x3e01bf(0x1e3)];}[_0x274f9f(0x47e)](_0x1d3e48,_0x473f81){const _0x3903a8=_0x274f9f;let _0x5b036c=this[_0x3903a8(0x42c)](_0x1d3e48,_0x473f81[_0x3903a8(0x427)]??{}),_0x57cb3c=_0x1d3e48[_0x3903a8(0x39f)][_0x5b036c[_0x3903a8(0x4fe)]];if(!_0x57cb3c||_0x57cb3c[_0x3903a8(0x2b9)]!==_0x11438e[_0x3903a8(0x44b)]||_0x57cb3c[_0x3903a8(0x3ba)]===!0x0||_0x57cb3c[_0x3903a8(0x3a9)]===!0x0||!this['_capabilities'](_0x57cb3c)['usableAsCalendarDate'])return{'type':_0x3903a8(0x402),'viewType':_0x31904d['Calendar'],'reason':_0x3903a8(0x461),'fieldId':_0x5b036c[_0x3903a8(0x4fe)]};let _0x1b8670=_0x5b036c[_0x3903a8(0x25c)]?_0x1d3e48[_0x3903a8(0x39f)][_0x5b036c[_0x3903a8(0x25c)]]:void 0x0,_0x22ab0b=this['_projectRows'](_0x1d3e48,_0x473f81);return{'type':_0x31904d[_0x3903a8(0x4e5)],'config':_0x5b036c,'fields':this[_0x3903a8(0x398)](_0x1d3e48,_0x473f81),'rows':_0x22ab0b,'groups':this[_0x3903a8(0x3db)](_0x1d3e48,_0x473f81,_0x22ab0b),'events':_0x22ab0b[_0x3903a8(0x25e)](_0x5b042c=>{const _0x5655f7=_0x3903a8;let _0x5a9dd4=Kt(_0x5b042c['values'][_0x5b036c['startDateFieldId']]);if(!Number[_0x5655f7(0x1ee)](_0x5a9dd4))return[];let _0x312d42=_0x5b042c['values'][_0x5b036c[_0x5655f7(0x4fe)]],_0x38684d=_0x5b036c[_0x5655f7(0x25c)]==null?void 0x0:_0x5b042c[_0x5655f7(0x33c)][_0x5b036c[_0x5655f7(0x25c)]],_0xa76c8e=_0x5b036c['endDateFieldId']==null?void 0x0:Kt(_0x38684d),_0x173546=Number[_0x5655f7(0x1ee)](_0xa76c8e)?_0xa76c8e:void 0x0;return[{'recordId':_0x5b042c[_0x5655f7(0x44a)],'title':this[_0x5655f7(0x4c4)](_0x1d3e48,_0x5b042c,_0x5b036c[_0x5655f7(0x3ef)]),'start':_0x5a9dd4,'end':_0x173546,'color':this[_0x5655f7(0x302)](_0x1d3e48,_0x5b042c,_0x5b036c),'startMs':_0x5a9dd4,'endMs':_0x173546,'allDay':this[_0x5655f7(0x219)](_0x57cb3c,_0x1b8670,_0x312d42,_0x38684d),'fieldValues':_0x5b042c['values']}];})};}[_0x274f9f(0x42c)](_0x1c0d89,_0xaa9665){const _0x32b051=_0x274f9f;let _0x1773a0=this[_0x32b051(0x2e9)](_0x1c0d89,_0xaa9665['startDateFieldId']),_0x1a9ee4=_0xaa9665[_0x32b051(0x25c)]&&this[_0x32b051(0x304)](_0x1c0d89,_0xaa9665[_0x32b051(0x25c)])?_0xaa9665[_0x32b051(0x25c)]:this['_findCalendarDateFieldId'](_0x1c0d89,_0x1773a0)??void 0x0,_0x407838=_0xaa9665['titleFieldId']?_0x1c0d89[_0x32b051(0x39f)][_0xaa9665[_0x32b051(0x3ef)]]:void 0x0,_0x44f5c3=_0x407838&&_0x407838[_0x32b051(0x3a9)]!==!0x0&&_0x407838[_0x32b051(0x2b9)]!==_0x11438e['RecordId']?_0xaa9665['titleFieldId']:_0x1c0d89[_0x32b051(0x2db)],_0x7a150b=_0xaa9665[_0x32b051(0x392)]===_0x32b051(0x24f)||_0xaa9665[_0x32b051(0x392)]===_0x32b051(0x3a2)?_0xaa9665[_0x32b051(0x392)]:_0x32b051(0x48c),_0x141b9a=_0xaa9665[_0x32b051(0x39c)]==='short'||_0xaa9665['timeslotSize']===_0x32b051(0x357)?_0xaa9665['timeslotSize']:_0x32b051(0x51d),_0x19aae1=typeof _0xaa9665[_0x32b051(0x3e8)]==_0x32b051(0x3c6)&&_0xaa9665[_0x32b051(0x3e8)][_0x32b051(0x2ba)]()?_0xaa9665[_0x32b051(0x3e8)]:_0x32b051(0x29b),_0x2bc489=this[_0x32b051(0x3f4)](_0x1c0d89,_0xaa9665);return{..._0xaa9665,'startDateFieldId':_0x1773a0,'endDateFieldId':_0x1a9ee4,'titleFieldId':_0x44f5c3,'mode':_0x7a150b,'timeslotSize':_0x141b9a,'timeZone':_0x19aae1,'displayColor':_0x2bc489,'fieldSettings':Object[_0x32b051(0x372)](Object[_0x32b051(0x2d4)](_0xaa9665[_0x32b051(0x243)]??{})[_0x32b051(0x458)](([_0x1ae19c])=>{const _0x208bde=_0x32b051;let _0x37dea8=_0x1c0d89[_0x208bde(0x39f)][_0x1ae19c];return!!(_0x37dea8&&_0x37dea8['system']!==!0x0&&_0x37dea8[_0x208bde(0x2b9)]!==_0x11438e[_0x208bde(0x20d)]);}))};}[_0x274f9f(0x2e9)](_0x53894c,_0x2eb4f5){const _0x3d3a06=_0x274f9f;return _0x2eb4f5&&this[_0x3d3a06(0x304)](_0x53894c,_0x2eb4f5)?_0x2eb4f5:this[_0x3d3a06(0x223)](_0x53894c)??_0x2eb4f5??'';}[_0x274f9f(0x223)](_0x5bf8a5,_0x24dfff){const _0x3b9d4a=_0x274f9f;for(let _0x5f4fdf of _0x5bf8a5[_0x3b9d4a(0x47a)])if(_0x5f4fdf!==_0x24dfff&&this['_isCalendarDateField'](_0x5bf8a5,_0x5f4fdf))return _0x5f4fdf;return null;}[_0x274f9f(0x304)](_0x35e5fb,_0xe12f20){const _0x246ad7=_0x274f9f;let _0x445095=_0x35e5fb[_0x246ad7(0x39f)][_0xe12f20];return!!_0x445095&&_0x445095[_0x246ad7(0x2b9)]===_0x11438e['Date']&&_0x445095[_0x246ad7(0x3ba)]!==!0x0&&_0x445095[_0x246ad7(0x3a9)]!==!0x0&&this[_0x246ad7(0x3de)](_0x445095)[_0x246ad7(0x237)];}[_0x274f9f(0x3f4)](_0x496c17,_0x497562){const _0x11a1f8=_0x274f9f;let _0x7fc42e=_0x497562['displayColor'];if((_0x7fc42e==null?void 0x0:_0x7fc42e['type'])===_0x11a1f8(0x49f)){let _0x45884e=_0x496c17[_0x11a1f8(0x39f)][_0x7fc42e[_0x11a1f8(0x419)]];if(_0x45884e&&_0x45884e['type']===_0x11438e[_0x11a1f8(0x282)])return _0x7fc42e;}if((_0x7fc42e==null?void 0x0:_0x7fc42e[_0x11a1f8(0x2b9)])===_0x11a1f8(0x4cf)&&typeof _0x7fc42e['color']==_0x11a1f8(0x3c6)&&_0x7fc42e[_0x11a1f8(0x1e3)][_0x11a1f8(0x2ba)]())return{'type':_0x11a1f8(0x4cf),'color':_0x7fc42e[_0x11a1f8(0x1e3)]};if(_0x497562[_0x11a1f8(0x350)]){let _0x5f495e=_0x496c17['fields'][_0x497562[_0x11a1f8(0x350)]];if(_0x5f495e&&_0x5f495e['type']===_0x11438e[_0x11a1f8(0x282)])return{'type':_0x11a1f8(0x49f),'fieldId':_0x497562[_0x11a1f8(0x350)]};}return{'type':_0x11a1f8(0x4cf),'color':_0x11a1f8(0x517)};}[_0x274f9f(0x302)](_0x31388d,_0xbb2ae6,_0x5be1f0){const _0x10ad52=_0x274f9f;let _0x399e83=_0x5be1f0[_0x10ad52(0x25a)];if((_0x399e83==null?void 0x0:_0x399e83['type'])==='selectField'){var _0x513c90;let _0x1422a5=_0x31388d[_0x10ad52(0x39f)][_0x399e83[_0x10ad52(0x419)]];if(!_0x1422a5)return;let _0x54adf1=_0xbb2ae6['values'][_0x399e83[_0x10ad52(0x419)]],_0x59747f=Array[_0x10ad52(0x39e)](_0x54adf1)?_0x54adf1[0x0]:_0x54adf1;return _0x59747f==null||(_0x513c90=Vr(_0x1422a5,String(_0x59747f)))==null?void 0x0:_0x513c90[_0x10ad52(0x1e3)];}if((_0x399e83==null?void 0x0:_0x399e83[_0x10ad52(0x2b9)])===_0x10ad52(0x4cf))return _0x399e83[_0x10ad52(0x1e3)];}[_0x274f9f(0x219)](_0x11eb5f,_0xebeac,_0x2f106b,_0x2e8236){const _0x56ccae=_0x274f9f;var _0x4a0892,_0x133216;let _0x4c6fe7=((_0x4a0892=_0x11eb5f[_0x56ccae(0x427)])==null?void 0x0:_0x4a0892[_0x56ccae(0x4b8)])===!0x0,_0x510810=(_0xebeac==null||(_0x133216=_0xebeac[_0x56ccae(0x427)])==null?void 0x0:_0x133216[_0x56ccae(0x4b8)])===!0x0;return!_0x4c6fe7&&!_0x510810;}[_0x274f9f(0x2b2)](_0x14fc52,_0x513248){const _0x32a556=_0x274f9f;var _0x567a09,_0x494b8a;let _0x59fdd9=((_0x567a09=_0x14fc52[_0x32a556(0x427)])==null?void 0x0:_0x567a09['includeTime'])===!0x0,_0x23c488=((_0x494b8a=_0x513248[_0x32a556(0x427)])==null?void 0x0:_0x494b8a[_0x32a556(0x4b8)])===!0x0;return!_0x59fdd9&&!_0x23c488;}[_0x274f9f(0x436)](_0x55def9,_0x795292){const _0x1a653f=_0x274f9f;let _0x2d2386=this[_0x1a653f(0x393)](_0x55def9,_0x795292[_0x1a653f(0x427)]),_0x194961=_0x55def9[_0x1a653f(0x39f)][_0x2d2386['startDateFieldId']];if(!_0x194961||_0x194961[_0x1a653f(0x2b9)]!==_0x11438e[_0x1a653f(0x44b)]||_0x194961['readonly']===!0x0||_0x194961[_0x1a653f(0x3a9)]===!0x0||!this['_capabilities'](_0x194961)['usableAsGanttStart'])return{'type':'invalid','viewType':_0x31904d['Gantt'],'reason':_0x1a653f(0x2d3),'fieldId':_0x2d2386[_0x1a653f(0x4fe)]};let _0x378924=_0x55def9[_0x1a653f(0x39f)][_0x2d2386[_0x1a653f(0x25c)]];if(!_0x378924||_0x378924['type']!==_0x11438e[_0x1a653f(0x44b)]||_0x378924['readonly']===!0x0||_0x378924['system']===!0x0||!this['_capabilities'](_0x378924)[_0x1a653f(0x3fc)])return{'type':_0x1a653f(0x402),'viewType':_0x31904d[_0x1a653f(0x40d)],'reason':'invalidGanttEndField','fieldId':_0x2d2386[_0x1a653f(0x25c)]};let _0x2ac952=this['_isAllDayGanttDateRange'](_0x194961,_0x378924),_0x3197b8=this[_0x1a653f(0x2d9)](_0x55def9,_0x795292),_0x16b020=_0x3197b8['flatMap'](_0x1959df=>{const _0x442c24=_0x1a653f;let _0xa4233b=Kt(_0x1959df[_0x442c24(0x33c)][_0x2d2386[_0x442c24(0x4fe)]]),_0x16321c=Kt(_0x1959df[_0x442c24(0x33c)][_0x2d2386['endDateFieldId']]);if(!Number['isFinite'](_0xa4233b)||!Number['isFinite'](_0x16321c))return[];let _0x5c544c=Math[_0x442c24(0x4ff)](_0xa4233b,_0x16321c),_0x2e1ef8=Math['max'](_0xa4233b,_0x16321c),_0x3ad8ba=_0x2d2386[_0x442c24(0x247)]==null?void 0x0:Number(_0x1959df['values'][_0x2d2386[_0x442c24(0x247)]]);return[{'recordId':_0x1959df[_0x442c24(0x44a)],'title':this['_title'](_0x55def9,_0x1959df,_0x2d2386['titleFieldId']),'start':_0x5c544c,'end':_0x2e1ef8,'color':this['_ganttBarColor'](_0x55def9,_0x1959df,_0x2d2386),'progress':Number['isFinite'](_0x3ad8ba)?_0x3ad8ba:void 0x0,'workingDayCount':_0x2d2386[_0x442c24(0x3d8)]?Ar(_0x5c544c,_0x2e1ef8,_0x2d2386[_0x442c24(0x40e)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x1959df[_0x442c24(0x33c)][_0x2d2386[_0x442c24(0x1de)]??''])}];}),_0x352174=_0x16b020[_0x1a653f(0x353)]?Y(Math['min'](..._0x16b020[_0x1a653f(0x22e)](_0x46b6e9=>_0x46b6e9[_0x1a653f(0x420)]))-0x5a*br):Y(Date[_0x1a653f(0x4df)]()-0x5a*br),_0xb18c22=_0x16b020[_0x1a653f(0x353)]?Y(Math['max'](..._0x16b020[_0x1a653f(0x22e)](_0x1e129b=>_0x1e129b[_0x1a653f(0x417)]))+0x5b*br):Y(Date[_0x1a653f(0x4df)]()+0x5b*br),_0x47881c=Sr(_0x2d2386['scale'],_0x352174,_0xb18c22,_0x2d2386['workingDaysOnly']?_0x2d2386[_0x1a653f(0x40e)]:void 0x0);return{'type':_0x31904d[_0x1a653f(0x40d)],'fields':this[_0x1a653f(0x398)](_0x55def9,{..._0x795292,'config':_0x2d2386}),'rows':_0x3197b8,'groups':this[_0x1a653f(0x3db)](_0x55def9,_0x795292,_0x3197b8),'config':_0x2d2386,'dateRangeAllDay':_0x2ac952,'timeline':{'scale':_0x2d2386[_0x1a653f(0x2d8)],'start':_0x352174,'end':_0xb18c22,'unitWidth':_0x47881c[_0x1a653f(0x4c8)],'majorHeaders':_0x47881c[_0x1a653f(0x377)],'columns':_0x47881c[_0x1a653f(0x512)]},'bars':_0x16b020};}['_normalizeGanttConfig'](_0x4dad78,_0x2370b8){const _0x30d9ff=_0x274f9f;let _0xf64805=this[_0x30d9ff(0x36c)](_0x4dad78,_0x2370b8['startDateFieldId'],'start'),_0x3c8104=this[_0x30d9ff(0x36c)](_0x4dad78,_0x2370b8[_0x30d9ff(0x25c)],_0x30d9ff(0x417))||_0xf64805,_0x525c38=_0x2370b8['titleFieldId']?_0x4dad78['fields'][_0x2370b8['titleFieldId']]:void 0x0,_0x392481=_0x525c38&&_0x525c38[_0x30d9ff(0x3a9)]!==!0x0&&_0x525c38[_0x30d9ff(0x2b9)]!==_0x11438e['RecordId']?_0x2370b8['titleFieldId']:_0x4dad78[_0x30d9ff(0x2db)],_0x1eed20=_0x2370b8[_0x30d9ff(0x2d8)]==='week'||_0x2370b8[_0x30d9ff(0x2d8)]===_0x30d9ff(0x39a)||_0x2370b8[_0x30d9ff(0x2d8)]===_0x30d9ff(0x4da)?_0x2370b8[_0x30d9ff(0x2d8)]:_0x30d9ff(0x48c),_0xef1036=xr(_0x2370b8[_0x30d9ff(0x40e)]);return{..._0x2370b8,'startDateFieldId':_0xf64805,'endDateFieldId':_0x3c8104,'titleFieldId':_0x392481,'scale':_0x1eed20,'leftPaneWidth':typeof _0x2370b8[_0x30d9ff(0x201)]==_0x30d9ff(0x4b3)?_0x2370b8[_0x30d9ff(0x201)]:void 0x0,'leftPaneCollapsed':_0x2370b8[_0x30d9ff(0x2d1)]===!0x0,'showTodayLine':_0x2370b8[_0x30d9ff(0x2c0)]!==!0x1,'displayColor':this[_0x30d9ff(0x2a0)](_0x4dad78,_0x2370b8),'fieldSettings':Object[_0x30d9ff(0x372)](Object[_0x30d9ff(0x2d4)](_0x2370b8['fieldSettings']??{})[_0x30d9ff(0x458)](([_0x1b7bcb])=>{const _0x1deff7=_0x30d9ff;let _0x1a0ee8=_0x4dad78[_0x1deff7(0x39f)][_0x1b7bcb];return!!(_0x1a0ee8&&_0x1a0ee8[_0x1deff7(0x3a9)]!==!0x0&&_0x1a0ee8[_0x1deff7(0x2b9)]!==_0x11438e[_0x1deff7(0x20d)]);})),'workingDaysOnly':_0x2370b8[_0x30d9ff(0x3d8)]===!0x0,'workingDays':_0xef1036};}['_resolveGanttDateFieldId'](_0x5c4e0a,_0x4600cb,_0x345102){const _0x373c55=_0x274f9f;if(_0x4600cb&&this[_0x373c55(0x220)](_0x5c4e0a,_0x4600cb,_0x345102)||_0x4600cb)return _0x4600cb;for(let _0x3366d9 of _0x5c4e0a[_0x373c55(0x47a)])if(this['_isGanttDateField'](_0x5c4e0a,_0x3366d9,_0x345102))return _0x3366d9;return _0x4600cb??'';}['_isGanttDateField'](_0x1961c9,_0xa611,_0x5d39f0){const _0x2baeca=_0x274f9f;let _0x5f98ae=_0x1961c9['fields'][_0xa611];if(!_0x5f98ae||_0x5f98ae[_0x2baeca(0x2b9)]!==_0x11438e[_0x2baeca(0x44b)]||_0x5f98ae['readonly']===!0x0||_0x5f98ae[_0x2baeca(0x3a9)]===!0x0)return!0x1;let _0x23c829=this[_0x2baeca(0x3de)](_0x5f98ae);return _0x5d39f0===_0x2baeca(0x420)?_0x23c829['usableAsGanttStart']:_0x23c829[_0x2baeca(0x3fc)];}[_0x274f9f(0x2a0)](_0x4029ae,_0x511e20){const _0x46aab8=_0x274f9f;let _0x4829a3=_0x511e20[_0x46aab8(0x25a)];if((_0x4829a3==null?void 0x0:_0x4829a3[_0x46aab8(0x2b9)])===_0x46aab8(0x49f)){let _0x4c6b68=_0x4029ae[_0x46aab8(0x39f)][_0x4829a3['fieldId']];if(_0x4c6b68&&_0x4c6b68[_0x46aab8(0x2b9)]===_0x11438e['SingleSelect'])return _0x4829a3;}return(_0x4829a3==null?void 0x0:_0x4829a3['type'])===_0x46aab8(0x388)&&Array[_0x46aab8(0x39e)](_0x4829a3[_0x46aab8(0x26c)])?{'type':'conditional','rules':_0x4829a3['rules'][_0x46aab8(0x458)](_0x59edc7=>!!_0x4029ae[_0x46aab8(0x39f)][_0x59edc7[_0x46aab8(0x419)]])}:(_0x4829a3==null?void 0x0:_0x4829a3[_0x46aab8(0x2b9)])===_0x46aab8(0x4cf)&&typeof _0x4829a3[_0x46aab8(0x1e3)]=='string'&&_0x4829a3[_0x46aab8(0x1e3)][_0x46aab8(0x2ba)]()?{'type':_0x46aab8(0x4cf),'color':_0x4829a3[_0x46aab8(0x1e3)]}:{'type':_0x46aab8(0x4cf),'color':_0x46aab8(0x321)};}[_0x274f9f(0x34c)](_0x5688ef,_0x46e87e,_0x477b3f){const _0x2c5451=_0x274f9f;let _0x121325=_0x477b3f[_0x2c5451(0x25a)];if((_0x121325==null?void 0x0:_0x121325[_0x2c5451(0x2b9)])==='conditional'){let _0x2d1a4e=_0x121325[_0x2c5451(0x26c)][_0x2c5451(0x271)](_0x1cb1bb=>this[_0x2c5451(0x286)](_0x5688ef,_0x46e87e,_0x1cb1bb));if(_0x2d1a4e)return _0x2d1a4e['color'];}if((_0x121325==null?void 0x0:_0x121325[_0x2c5451(0x2b9)])===_0x2c5451(0x49f)){let _0x7b13ef=_0x5688ef['fields'][_0x121325[_0x2c5451(0x419)]];if(_0x7b13ef){var _0x5e7cc5;let _0x3684e9=_0x46e87e['values'][_0x121325['fieldId']],_0x8e10ad=Array[_0x2c5451(0x39e)](_0x3684e9)?_0x3684e9[0x0]:_0x3684e9,_0xcdfe8e=_0x8e10ad==null||(_0x5e7cc5=Vr(_0x7b13ef,String(_0x8e10ad)))==null?void 0x0:_0x5e7cc5[_0x2c5451(0x1e3)];if(_0xcdfe8e)return _0xcdfe8e;}}return(_0x121325==null?void 0x0:_0x121325['type'])===_0x2c5451(0x4cf)?_0x121325[_0x2c5451(0x1e3)]:_0x2c5451(0x321);}['_matchesGanttColorRule'](_0x10b598,_0x59463e,_0x142675){const _0x35c178=_0x274f9f;let _0x580123=_0x10b598['fields'][_0x142675[_0x35c178(0x419)]];return _0x580123?nn(_0x59463e[_0x35c178(0x33c)][_0x580123['id']],_0x142675[_0x35c178(0x401)],_0x142675[_0x35c178(0x528)],_0x580123,{'dateMode':_0x142675[_0x35c178(0x205)]}):!0x1;}[_0x274f9f(0x35c)](_0x2cf056,_0xb5a17b){const _0x15321f=_0x274f9f;let _0x2fff1b=this[_0x15321f(0x2d9)](_0x2cf056,_0xb5a17b),_0x455d3a=this['_normalizeGalleryConfig'](_0x2cf056,_0xb5a17b['config']??{}),_0x2ca2fb=this[_0x15321f(0x398)](_0x2cf056,_0xb5a17b);return{'type':_0x31904d[_0x15321f(0x1fb)],'fields':_0x2ca2fb,'rows':_0x2fff1b,'groups':this[_0x15321f(0x3db)](_0x2cf056,_0xb5a17b,_0x2fff1b),'titleFieldId':_0x455d3a[_0x15321f(0x4cb)][_0x15321f(0x3ef)],'coverFieldId':_0x455d3a[_0x15321f(0x210)],'cardLayout':_0x455d3a['cardLayout']??'normal','showFieldNames':_0x455d3a[_0x15321f(0x4d2)]!==!0x1,'visibleCardFieldIds':this[_0x15321f(0x3c5)](_0x2cf056,_0xb5a17b,_0x455d3a),'cardSize':_0x455d3a[_0x15321f(0x3ea)]??_0x15321f(0x51d),'cards':_0x2fff1b['map'](_0x179c72=>({'recordId':_0x179c72[_0x15321f(0x44a)],'title':this['_title'](_0x2cf056,_0x179c72,_0x455d3a['card'][_0x15321f(0x3ef)]),'values':_0x179c72[_0x15321f(0x33c)]}))};}[_0x274f9f(0x4d1)](_0x389f73,_0xf888ea){const _0x4b0a32=_0x274f9f;let _0x3d9fcb=_0xf888ea[_0x4b0a32(0x4cb)]??{'fieldIds':[]},_0x5d1e7e=this[_0x4b0a32(0x425)](_0x389f73,_0x3d9fcb[_0x4b0a32(0x3ef)]),_0x1f7ed6=this[_0x4b0a32(0x28c)](_0x389f73,_0xf888ea),_0x2192e4=_0xf888ea[_0x4b0a32(0x3ea)]===_0x4b0a32(0x3e5)||_0xf888ea[_0x4b0a32(0x3ea)]==='large'?_0xf888ea[_0x4b0a32(0x3ea)]:_0x4b0a32(0x51d);return{..._0xf888ea,'coverFieldId':_0x1f7ed6,'cardLayout':_0xf888ea[_0x4b0a32(0x521)]===_0x4b0a32(0x508)?_0x4b0a32(0x508):_0x4b0a32(0x268),'showFieldNames':_0xf888ea[_0x4b0a32(0x4d2)]!==!0x1,'fieldSettings':Object[_0x4b0a32(0x372)](Object[_0x4b0a32(0x2d4)](_0xf888ea['fieldSettings']??{})['filter'](([_0x38ee2e])=>{const _0x49bfac=_0x4b0a32;let _0x1a427f=_0x389f73['fields'][_0x38ee2e];return!!(_0x1a427f&&_0x1a427f[_0x49bfac(0x3a9)]!==!0x0&&_0x1a427f[_0x49bfac(0x2b9)]!==_0x11438e[_0x49bfac(0x20d)]);})),'card':{..._0x3d9fcb,'titleFieldId':_0x5d1e7e,'coverFieldId':_0x1f7ed6,'fieldIds':Array[_0x4b0a32(0x39e)](_0x3d9fcb[_0x4b0a32(0x3e4)])?_0x3d9fcb[_0x4b0a32(0x3e4)]:[]},'cardSize':_0x2192e4};}[_0x274f9f(0x425)](_0x5247c5,_0x2fbfea){const _0x49db2d=_0x274f9f;let _0x1df1a1=_0x2fbfea?_0x5247c5[_0x49db2d(0x39f)][_0x2fbfea]:void 0x0;return _0x1df1a1&&_0x1df1a1[_0x49db2d(0x3a9)]!==!0x0&&_0x1df1a1['type']!==_0x11438e[_0x49db2d(0x20d)]?_0x1df1a1['id']:rr(_0x5247c5);}['_resolveGalleryCoverFieldId'](_0x5a8ddc,_0x512216){const _0x111223=_0x274f9f;var _0x414198;let _0x45cce1=_0x512216[_0x111223(0x210)]??((_0x414198=_0x512216[_0x111223(0x4cb)])==null?void 0x0:_0x414198['coverFieldId'])??null;if(!_0x45cce1)return null;let _0x19dabb=_0x5a8ddc[_0x111223(0x39f)][_0x45cce1];return _0x19dabb&&this[_0x111223(0x3de)](_0x19dabb)[_0x111223(0x322)]?_0x19dabb['id']:null;}['_resolveGalleryCardFieldIds'](_0x1365c3,_0x5262e5,_0xc97d12){const _0x432ce9=_0x274f9f;var _0xe5e104,_0x34c473,_0x3ac236;let _0x5553b2=_0xc97d12[_0x432ce9(0x243)]??{},_0x416b35=((_0xe5e104=_0xc97d12[_0x432ce9(0x4cb)])==null?void 0x0:_0xe5e104[_0x432ce9(0x3ef)])??rr(_0x1365c3),_0x662511=_0xc97d12[_0x432ce9(0x210)]??((_0x34c473=_0xc97d12['card'])==null?void 0x0:_0x34c473[_0x432ce9(0x210)])??null,_0x363e0b=(_0x3ac236=_0xc97d12[_0x432ce9(0x4cb)])!=null&&(_0x3ac236=_0x3ac236[_0x432ce9(0x3e4)])!=null&&_0x3ac236[_0x432ce9(0x353)]?_0xc97d12[_0x432ce9(0x4cb)][_0x432ce9(0x3e4)]:ir(_0x1365c3,[_0x416b35,_0x662511,_0x1365c3['primaryFieldId']]);return _0x363e0b[_0x432ce9(0x458)](_0x523133=>{const _0x536979=_0x432ce9;var _0x41c7d9,_0x5cc0cb;let _0x1457ef=_0x1365c3['fields'][_0x523133];return!(!_0x1457ef||_0x1457ef[_0x536979(0x3a9)]===!0x0||_0x1457ef['type']===_0x11438e[_0x536979(0x20d)]||_0x1457ef['id']===_0x416b35||_0x1457ef['id']===_0x662511||(_0x41c7d9=_0x5262e5[_0x536979(0x243)])!=null&&(_0x41c7d9=_0x41c7d9[_0x523133])!=null&&_0x41c7d9[_0x536979(0x418)]||(_0x5cc0cb=_0x5553b2[_0x523133])!=null&&_0x5cc0cb[_0x536979(0x418)]);})[_0x432ce9(0x456)]((_0x54bef3,_0x389a24)=>{const _0x331592=_0x432ce9;var _0x429456,_0x7788a7;return(((_0x429456=_0x5553b2[_0x54bef3])==null?void 0x0:_0x429456[_0x331592(0x251)])??_0x363e0b[_0x331592(0x502)](_0x54bef3))-(((_0x7788a7=_0x5553b2[_0x389a24])==null?void 0x0:_0x7788a7[_0x331592(0x251)])??_0x363e0b[_0x331592(0x502)](_0x389a24));});}[_0x274f9f(0x398)](_0x2e57d9,_0x14ac02){const _0x174d32=_0x274f9f;var _0x4ec7b5;return((_0x4ec7b5=_0x14ac02[_0x174d32(0x47a)])!=null&&_0x4ec7b5['length']?_0x14ac02['fieldOrder']:_0x2e57d9[_0x174d32(0x47a)])[_0x174d32(0x25e)](_0x44b84f=>{const _0x32d9ce=_0x174d32;var _0x574773;let _0x519ea5=_0x2e57d9[_0x32d9ce(0x39f)][_0x44b84f],_0x15598b=((_0x574773=_0x14ac02[_0x32d9ce(0x243)])==null?void 0x0:_0x574773[_0x44b84f])??{};return!_0x519ea5||_0x519ea5[_0x32d9ce(0x3a9)]===!0x0||_0x519ea5[_0x32d9ce(0x2b9)]===_0x11438e['RecordId']||_0x15598b[_0x32d9ce(0x418)]?[]:[{'id':_0x519ea5['id'],'name':_0x519ea5[_0x32d9ce(0x248)],'description':_0x519ea5[_0x32d9ce(0x291)],'type':_0x519ea5['type'],'config':_0x519ea5[_0x32d9ce(0x427)],'width':_0x15598b[_0x32d9ce(0x35b)],'setting':_0x15598b}];});}[_0x274f9f(0x2d9)](_0x122922,_0x293bcb){const _0x1a2659=_0x274f9f;var _0x543771;return I(_0x1a2659(0x218),()=>{const _0x459eef=_0x1a2659;var _0x4ff27e,_0x4bd4d0;let _0x448334=this[_0x459eef(0x4f8)](_0x122922),_0x35d970=this[_0x459eef(0x306)](_0x122922['id'],_0x293bcb),_0x65c5c=this[_0x459eef(0x290)](_0x122922['id']),_0x1f89dc=this[_0x459eef(0x2dc)][_0x459eef(0x23e)](_0x35d970);if(_0x1f89dc&&_0x1f89dc['globalRevision']===this[_0x459eef(0x464)]&&_0x1f89dc[_0x459eef(0x440)]===this['_getTableRevision'](_0x122922['id'])){if(_0x1f89dc[_0x459eef(0x1dd)]===_0x65c5c&&_0x1f89dc['baseRows']===_0x448334)return _0x1f89dc[_0x459eef(0x522)];if(_0x1f89dc[_0x459eef(0x1dd)]!==_0x65c5c&&!this['_cellInvalidationsTouchFields'](_0x122922['id'],_0x1f89dc[_0x459eef(0x1dd)],_0x65c5c,this['_filterSortFieldIds'](_0x293bcb))){let _0x2ecf57=_0x1f89dc[_0x459eef(0x522)]===_0x1f89dc[_0x459eef(0x229)]?_0x448334:this[_0x459eef(0x360)](_0x1f89dc['rows'],_0x448334);if(_0x2ecf57)return this[_0x459eef(0x2dc)]['set'](_0x35d970,{..._0x1f89dc,'rows':_0x2ecf57,'baseRows':_0x448334,'cellRevision':_0x65c5c}),_0x2ecf57;}}let _0x33ea8c=I(_0x459eef(0x242),()=>this['_sortRows'](_0x122922,_0x293bcb,this[_0x459eef(0x399)](_0x122922,_0x293bcb,_0x448334)),{'tableId':_0x122922['id'],'viewId':_0x293bcb==null?void 0x0:_0x293bcb['id'],'viewType':_0x293bcb==null?void 0x0:_0x293bcb['type'],'rows':_0x448334[_0x459eef(0x353)],'filters':(_0x293bcb==null||(_0x4ff27e=_0x293bcb[_0x459eef(0x458)])==null?void 0x0:_0x4ff27e[_0x459eef(0x400)]['length'])??0x0,'sorts':(_0x293bcb==null||(_0x4bd4d0=_0x293bcb[_0x459eef(0x456)])==null?void 0x0:_0x4bd4d0[_0x459eef(0x353)])??0x0});return this[_0x459eef(0x2dc)][_0x459eef(0x317)](_0x35d970,{'table':_0x122922,'rows':_0x33ea8c,'baseRows':_0x448334,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x459eef(0x3ce)](_0x122922['id']),'cellRevision':_0x65c5c}),_0x33ea8c;},{'tableId':_0x122922['id'],'viewId':_0x293bcb==null?void 0x0:_0x293bcb['id'],'viewType':_0x293bcb==null?void 0x0:_0x293bcb[_0x1a2659(0x2b9)],'records':((_0x543771=_0x122922['recordOrder'])==null?void 0x0:_0x543771[_0x1a2659(0x353)])??Object[_0x1a2659(0x311)](_0x122922[_0x1a2659(0x3c4)]??{})[_0x1a2659(0x353)]});}[_0x274f9f(0x4f8)](_0x277967){const _0x59431c=_0x274f9f;var _0x347d24;return I('BaseProjection.projectTableRows',()=>{const _0x2b0614=_0x2f15;var _0x11267b;let _0x367499=this[_0x2b0614(0x290)](_0x277967['id']),_0x2aeba6=this[_0x2b0614(0x224)]['get'](_0x277967['id']);if(_0x2aeba6&&_0x2aeba6['globalRevision']===this['_globalRevision']&&_0x2aeba6[_0x2b0614(0x440)]===this['_getTableRevision'](_0x277967['id'])){if(_0x2aeba6[_0x2b0614(0x1dd)]===_0x367499&&_0x2aeba6[_0x2b0614(0x258)]===_0x277967)return _0x2aeba6['rows'];let _0x301e14=this[_0x2b0614(0x51b)](_0x277967,_0x2aeba6,_0x367499);if(_0x301e14)return _0x301e14;}hr(_0x277967)||L(_0x277967);let _0x3b0ff4=(_0x11267b=_0x277967['recordOrder'])!=null&&_0x11267b[_0x2b0614(0x353)]?_0x277967[_0x2b0614(0x4fd)]:yr(_0x277967['records']),_0x46237b=I(_0x2b0614(0x27c),()=>{const _0x5eae8f=_0x2b0614;let _0x5f089e=[];for(let _0x107406 of _0x3b0ff4){let _0x44b57b=_0x277967[_0x5eae8f(0x3c4)][_0x107406];if(!_0x44b57b)continue;let _0x41a242={};for(let _0xf528ec of _0x277967['fieldOrder'])_0x41a242[_0xf528ec]=rt(_0x277967,_0x44b57b['id'],_0xf528ec);_0x5f089e['push']({'recordId':_0x44b57b['id'],'values':_0x41a242});}return _0x5f089e;},{'tableId':_0x277967['id'],'records':_0x3b0ff4[_0x2b0614(0x353)],'fields':_0x277967[_0x2b0614(0x47a)][_0x2b0614(0x353)]});return this['_projectedRowsCache'][_0x2b0614(0x317)](_0x277967['id'],{'table':_0x277967,'rows':_0x46237b,'rowIndexById':mr(_0x46237b),'globalRevision':this[_0x2b0614(0x464)],'tableRevision':this[_0x2b0614(0x3ce)](_0x277967['id']),'cellRevision':_0x367499}),_0x46237b;},{'tableId':_0x277967['id'],'records':((_0x347d24=_0x277967[_0x59431c(0x4fd)])==null?void 0x0:_0x347d24[_0x59431c(0x353)])??Object[_0x59431c(0x311)](_0x277967[_0x59431c(0x3c4)]??{})['length'],'fields':_0x277967[_0x59431c(0x47a)]['length']});}[_0x274f9f(0x51b)](_0x6e2934,_0x16b418,_0x248a2b){const _0x30fff2=_0x274f9f;let _0x41982f=(this[_0x30fff2(0x3a8)][_0x30fff2(0x23e)](_0x6e2934['id'])??[])['filter'](_0x553c6a=>_0x553c6a[_0x30fff2(0x4d4)]>_0x16b418[_0x30fff2(0x1dd)]&&_0x553c6a[_0x30fff2(0x4d4)]<=_0x248a2b);if(!_0x41982f[_0x30fff2(0x353)])return _0x16b418[_0x30fff2(0x258)]===_0x6e2934?_0x16b418[_0x30fff2(0x522)]:null;let _0x5cfa25=_0x16b418[_0x30fff2(0x522)],_0x587a7f=new Map();for(let _0x3978a7 of _0x41982f){let _0x3e1f5f=_0x587a7f[_0x30fff2(0x23e)](_0x3978a7['recordId']);_0x3e1f5f||(_0x3e1f5f=new Set(),_0x587a7f['set'](_0x3978a7[_0x30fff2(0x44a)],_0x3e1f5f)),_0x3e1f5f[_0x30fff2(0x4a3)](_0x3978a7[_0x30fff2(0x419)]);}for(let [_0x42e4c9,_0x3ccf98]of _0x587a7f){if(!_0x6e2934[_0x30fff2(0x3c4)][_0x42e4c9])return null;let _0x3c2716=_0x16b418[_0x30fff2(0x354)][_0x30fff2(0x23e)](_0x42e4c9);if(_0x3c2716==null)return null;_0x5cfa25===_0x16b418[_0x30fff2(0x522)]&&(_0x5cfa25=[..._0x16b418[_0x30fff2(0x522)]]);let _0x231bdb=_0x5cfa25[_0x3c2716],_0x64da70={..._0x231bdb[_0x30fff2(0x33c)]};_0x3ccf98[_0x30fff2(0x366)](_0x5baf3c=>{_0x64da70[_0x5baf3c]=rt(_0x6e2934,_0x42e4c9,_0x5baf3c);}),_0x5cfa25[_0x3c2716]={..._0x231bdb,'values':_0x64da70};}let _0x3d5eb9={'table':_0x6e2934,'rows':_0x5cfa25,'rowIndexById':_0x16b418[_0x30fff2(0x354)],'globalRevision':this[_0x30fff2(0x464)],'tableRevision':this['_getTableRevision'](_0x6e2934['id']),'cellRevision':_0x248a2b};return this[_0x30fff2(0x224)][_0x30fff2(0x317)](_0x6e2934['id'],_0x3d5eb9),this[_0x30fff2(0x3a8)]['set'](_0x6e2934['id'],(this[_0x30fff2(0x3a8)][_0x30fff2(0x23e)](_0x6e2934['id'])??[])[_0x30fff2(0x458)](_0x2d7439=>_0x2d7439['revision']>Math[_0x30fff2(0x3f9)](0x0,_0x248a2b-0x100))),_0x5cfa25;}[_0x274f9f(0x360)](_0x4aa327,_0x436626){const _0xc1776=_0x274f9f;let _0x427f46=new Map(_0x436626[_0xc1776(0x22e)](_0x41b57b=>[_0x41b57b[_0xc1776(0x44a)],_0x41b57b])),_0x47fac3=!0x1,_0x2dad4f=_0x4aa327[_0xc1776(0x22e)](_0x45ccf=>{const _0x53e8dd=_0xc1776;let _0x1ba36e=_0x427f46[_0x53e8dd(0x23e)](_0x45ccf['recordId']);return _0x1ba36e?_0x1ba36e===_0x45ccf?_0x45ccf:(_0x47fac3=!0x0,_0x1ba36e):_0x45ccf;});return _0x47fac3?_0x2dad4f:_0x4aa327;}[_0x274f9f(0x32a)](_0x20f57f,_0x2bf985,_0x55208a,_0x9241cd){const _0x377a78=_0x274f9f;return!_0x9241cd[_0x377a78(0x43d)]||_0x2bf985===_0x55208a?!0x1:_0x55208a-_0x2bf985>0x100||(this[_0x377a78(0x3a8)]['get'](_0x20f57f)??[])[_0x377a78(0x29f)](_0x5f5113=>_0x5f5113[_0x377a78(0x4d4)]>_0x2bf985&&_0x5f5113[_0x377a78(0x4d4)]<=_0x55208a&&_0x9241cd[_0x377a78(0x51e)](_0x5f5113[_0x377a78(0x419)]));}[_0x274f9f(0x47d)](_0x26d877){const _0xa0d4ab=_0x274f9f;var _0x2ebc75,_0x584fd2;let _0x3c21a2=new Set();return _0x26d877==null||(_0x2ebc75=_0x26d877[_0xa0d4ab(0x458)])==null||_0x2ebc75[_0xa0d4ab(0x400)][_0xa0d4ab(0x366)](_0x233f18=>_0x3c21a2[_0xa0d4ab(0x4a3)](_0x233f18[_0xa0d4ab(0x419)])),_0x26d877==null||(_0x584fd2=_0x26d877[_0xa0d4ab(0x456)])==null||_0x584fd2[_0xa0d4ab(0x366)](_0x13d9bc=>_0x3c21a2[_0xa0d4ab(0x4a3)](_0x13d9bc[_0xa0d4ab(0x419)])),_0x3c21a2;}[_0x274f9f(0x289)](_0x166b19){const _0x14e1cc=_0x274f9f;var _0x162259;let _0x20337b=this[_0x14e1cc(0x47d)](_0x166b19);return(_0x162259=_0x166b19[_0x14e1cc(0x394)])==null||_0x162259[_0x14e1cc(0x366)](_0x53b9a8=>_0x20337b['add'](_0x53b9a8['fieldId'])),_0x20337b;}['_filterRows'](_0x44899d,_0x3e9552,_0x4f4487){const _0x4a42db=_0x274f9f;let _0x299bcc=_0x3e9552==null?void 0x0:_0x3e9552[_0x4a42db(0x458)];if(!(_0x299bcc!=null&&_0x299bcc[_0x4a42db(0x400)][_0x4a42db(0x353)]))return _0x4f4487;let _0x34d2e5=_0x299bcc[_0x4a42db(0x400)]['filter'](_0x17416f=>!Br(_0x17416f));return _0x34d2e5['length']?_0x4f4487[_0x4a42db(0x458)](_0x31333d=>{const _0x40ad68=_0x4a42db;if(_0x299bcc['conjunction']===_0x14e8fd['OR']){for(let _0x22f851 of _0x34d2e5){let _0x54de8c=_0x44899d['fields'][_0x22f851[_0x40ad68(0x419)]];if(!_0x54de8c||this['_fieldRegistry'][_0x40ad68(0x23e)](_0x54de8c[_0x40ad68(0x2b9)])['filter'](_0x31333d[_0x40ad68(0x33c)][_0x54de8c['id']],_0x22f851[_0x40ad68(0x401)],_0x22f851[_0x40ad68(0x528)],_0x54de8c))return!0x0;}return!0x1;}for(let _0x953b7c of _0x34d2e5){let _0x8b98b7=_0x44899d[_0x40ad68(0x39f)][_0x953b7c[_0x40ad68(0x419)]];if(_0x8b98b7&&!this['_fieldRegistry'][_0x40ad68(0x23e)](_0x8b98b7['type'])[_0x40ad68(0x458)](_0x31333d[_0x40ad68(0x33c)][_0x8b98b7['id']],_0x953b7c['operator'],_0x953b7c['operand'],_0x8b98b7))return!0x1;}return!0x0;}):_0x4f4487;}[_0x274f9f(0x1d0)](_0x5cef4a,_0x1cbabc,_0x16fd0f){const _0xa9100c=_0x274f9f;let _0xd46e7e=(_0x1cbabc==null?void 0x0:_0x1cbabc[_0xa9100c(0x456)])??[];if(!_0xd46e7e[_0xa9100c(0x353)])return _0x16fd0f;let _0x2470e8=_0xd46e7e[_0xa9100c(0x25e)](_0x4dcb90=>{let _0x49522f=_0x5cef4a['fields'][_0x4dcb90['fieldId']];return _0x49522f?[{..._0x4dcb90,'field':_0x49522f}]:[];});return _0x2470e8[_0xa9100c(0x353)]?this[_0xa9100c(0x3ec)](_0x2470e8)?this['_fastSortRows'](_0x2470e8,_0x16fd0f):[..._0x16fd0f][_0xa9100c(0x456)]((_0x160b03,_0x407584)=>{const _0x1a1610=_0xa9100c;for(let _0x169b7a of _0x2470e8){let _0x5c4cd4=_0x169b7a[_0x1a1610(0x4e6)],_0x33771b=this[_0x1a1610(0x3e6)][_0x1a1610(0x23e)](_0x5c4cd4[_0x1a1610(0x2b9)])['compare'](_0x160b03[_0x1a1610(0x33c)][_0x5c4cd4['id']],_0x407584[_0x1a1610(0x33c)][_0x5c4cd4['id']],_0x5c4cd4);if(_0x33771b!==0x0)return _0x169b7a[_0x1a1610(0x246)]===_0x575c6c[_0x1a1610(0x4a4)]?-_0x33771b:_0x33771b;}return 0x0;}):_0x16fd0f;}[_0x274f9f(0x3ec)](_0x33026b){const _0x54b217=_0x274f9f;return _0x33026b[_0x54b217(0x4ea)](_0x4d19a9=>dr[_0x54b217(0x51e)](_0x4d19a9['field'][_0x54b217(0x2b9)]));}[_0x274f9f(0x2f5)](_0x5940a0,_0x18d280){const _0x498839=_0x274f9f;return _0x18d280[_0x498839(0x22e)]((_0x52d370,_0x2b2d22)=>({'row':_0x52d370,'index':_0x2b2d22,'keys':_0x5940a0[_0x498839(0x22e)](_0x3df5da=>_0x52d370[_0x498839(0x33c)][_0x3df5da[_0x498839(0x419)]])}))['sort']((_0x178b98,_0xefc4f7)=>{const _0x4f7a2a=_0x498839;for(let _0x5ef800=0x0;_0x5ef800<_0x5940a0['length'];_0x5ef800++){let _0x16ed06=zr(_0x178b98[_0x4f7a2a(0x311)][_0x5ef800],_0xefc4f7['keys'][_0x5ef800]);if(_0x16ed06!==0x0)return _0x5940a0[_0x5ef800][_0x4f7a2a(0x246)]===_0x575c6c['DESC']?-_0x16ed06:_0x16ed06;}return _0x178b98[_0x4f7a2a(0x519)]-_0xefc4f7[_0x4f7a2a(0x519)];})[_0x498839(0x22e)](_0x47868e=>_0x47868e[_0x498839(0x264)]);}[_0x274f9f(0x3db)](_0x42a135,_0x4e03e0,_0x93cb68){const _0x44c214=_0x274f9f;var _0x412b60;return I(_0x44c214(0x3cd),()=>{const _0x2f1113=_0x44c214;var _0x13f6f0;if(!((_0x13f6f0=_0x4e03e0['group'])!=null&&_0x13f6f0['length']))return[];let _0x167a8b=_0x4e03e0[_0x2f1113(0x394)][_0x2f1113(0x458)](_0xb1dd90=>_0x42a135['fields'][_0xb1dd90[_0x2f1113(0x419)]]);if(!_0x167a8b['length'])return[];let _0x277870=this[_0x2f1113(0x285)](_0x42a135['id'],_0x4e03e0,_0x167a8b),_0x455552=this[_0x2f1113(0x290)](_0x42a135['id']),_0x3008de=this['_projectedGroupsCache']['get'](_0x277870);if(_0x3008de&&_0x3008de['globalRevision']===this[_0x2f1113(0x464)]&&_0x3008de[_0x2f1113(0x440)]===this[_0x2f1113(0x3ce)](_0x42a135['id'])){if(_0x3008de[_0x2f1113(0x1dd)]===_0x455552&&_0x3008de[_0x2f1113(0x522)]===_0x93cb68)return _0x3008de['groups'];if(_0x3008de[_0x2f1113(0x1dd)]!==_0x455552&&!this[_0x2f1113(0x32a)](_0x42a135['id'],_0x3008de['cellRevision'],_0x455552,this[_0x2f1113(0x289)](_0x4e03e0)))return this[_0x2f1113(0x2cd)]['set'](_0x277870,{..._0x3008de,'rows':_0x93cb68,'cellRevision':_0x455552}),_0x3008de[_0x2f1113(0x3af)];}let _0x2b045e=new Map();for(let _0x383b06 of _0x93cb68){let _0x812c6c=_0x2b045e,_0x1675d5='';for(let _0x19eb6b=0x0;_0x19eb6b<_0x167a8b['length'];_0x19eb6b++){let _0x1f868a=_0x167a8b[_0x19eb6b],_0x15e4b9=_0x383b06[_0x2f1113(0x33c)][_0x1f868a[_0x2f1113(0x419)]],_0x179c78=pr(_0x15e4b9),_0x5c78f6=_0x1f868a[_0x2f1113(0x419)]+'\x00'+_0x179c78,_0x11010e=_0x1675d5+'/'+_0x1f868a['fieldId']+':'+_0x179c78,_0x1b6ada=_0x812c6c['get'](_0x5c78f6);_0x1b6ada||(_0x1b6ada={'key':_0x179c78,'value':_0x15e4b9,'path':_0x11010e,'label':_0x179c78||_0x2f1113(0x473),'fieldId':_0x1f868a[_0x2f1113(0x419)],'level':_0x19eb6b,'recordIds':[],'children':new Map()},_0x812c6c[_0x2f1113(0x317)](_0x5c78f6,_0x1b6ada)),_0x1b6ada[_0x2f1113(0x316)][_0x2f1113(0x254)](_0x383b06['recordId']),_0x812c6c=_0x1b6ada[_0x2f1113(0x1fd)],_0x1675d5=_0x11010e;}}let _0x37c9f5=this[_0x2f1113(0x337)](_0x167a8b,_0x2b045e,0x0);return this[_0x2f1113(0x2cd)][_0x2f1113(0x317)](_0x277870,{'table':_0x42a135,'rows':_0x93cb68,'groups':_0x37c9f5,'globalRevision':this[_0x2f1113(0x464)],'tableRevision':this['_getTableRevision'](_0x42a135['id']),'cellRevision':_0x455552}),_0x37c9f5;},{'tableId':_0x42a135['id'],'viewId':_0x4e03e0['id'],'viewType':_0x4e03e0[_0x44c214(0x2b9)],'rows':_0x93cb68[_0x44c214(0x353)],'groupFields':((_0x412b60=_0x4e03e0[_0x44c214(0x394)])==null?void 0x0:_0x412b60[_0x44c214(0x353)])??0x0});}[_0x274f9f(0x337)](_0x3cf955,_0x47dc3b,_0x2b4ad5){const _0xef2d90=_0x274f9f;var _0x335270;let _0x1003a3=Array[_0xef2d90(0x2a4)](_0x47dc3b[_0xef2d90(0x33c)]()),_0x1736c6=(_0x335270=_0x3cf955[_0x2b4ad5])==null?void 0x0:_0x335270[_0xef2d90(0x246)];return _0x1736c6&&_0x1003a3[_0xef2d90(0x456)]((_0x400183,_0x244b46)=>{const _0x242000=_0xef2d90;let _0xcb76f7=_0x400183[_0x242000(0x3fd)]['localeCompare'](_0x244b46['key']);return _0x1736c6===_0x575c6c[_0x242000(0x4a4)]?-_0xcb76f7:_0xcb76f7;}),_0x1003a3[_0xef2d90(0x22e)](_0x1c0de8=>({'key':_0x1c0de8['key'],'value':_0x1c0de8['value'],'path':_0x1c0de8[_0xef2d90(0x469)],'label':_0x1c0de8[_0xef2d90(0x505)],'fieldId':_0x1c0de8[_0xef2d90(0x419)],'level':_0x1c0de8[_0xef2d90(0x4e9)],'recordIds':_0x1c0de8[_0xef2d90(0x316)],'children':this[_0xef2d90(0x337)](_0x3cf955,_0x1c0de8[_0xef2d90(0x1fd)],_0x2b4ad5+0x1)}));}[_0x274f9f(0x4c4)](_0xb4fe37,_0x1fffcb,_0x2d6dfa){const _0x1add68=_0x274f9f;let _0x12f06d=_0x2d6dfa??_0xb4fe37[_0x1add68(0x2db)],_0x3341b7=_0x1fffcb[_0x1add68(0x33c)][_0x12f06d];return _0x3341b7==null?'':String(_0x3341b7);}['_recordIds'](_0x340ab4){const _0x2c153d=_0x274f9f;if(Array[_0x2c153d(0x39e)](_0x340ab4))return _0x340ab4[_0x2c153d(0x22e)](String);if(typeof _0x340ab4==_0x2c153d(0x3c6)&&_0x340ab4)return[_0x340ab4];}[_0x274f9f(0x3de)](_0x3d38c3){const _0x302d61=_0x274f9f;return this[_0x302d61(0x3e6)][_0x302d61(0x23e)](_0x3d38c3[_0x302d61(0x2b9)])['getCapabilities'](_0x3d38c3);}};fr=q([K(0x0,_0x3a5702(qn))],fr);function pr(_0x451aa6){return _0x451aa6==null?'':String(_0x451aa6);}function mr(_0x382a61){const _0x3ba26a=_0x274f9f;return new Map(_0x382a61[_0x3ba26a(0x22e)]((_0x3131a4,_0x4eeb57)=>[_0x3131a4[_0x3ba26a(0x44a)],_0x4eeb57]));}function hr(_0x33ef02){const _0x67937=_0x274f9f;return!!(Array[_0x67937(0x39e)](_0x33ef02[_0x67937(0x4fd)])&&_0x33ef02[_0x67937(0x269)]&&_0x33ef02[_0x67937(0x47c)]&&_0x33ef02['colIndex']&&_0x33ef02[_0x67937(0x4bd)]&&_0x33ef02['cellData']);}function gr(_0x4c8b05){const _0x2a5673=_0x274f9f;return _0x4c8b05!=null&&_0x4c8b05[_0x2a5673(0x400)][_0x2a5673(0x353)]?{'conjunction':_0x4c8b05[_0x2a5673(0x32d)],'conditions':_0x4c8b05['conditions'][_0x2a5673(0x22e)](_0x264e7d=>({'fieldId':_0x264e7d[_0x2a5673(0x419)],'operator':_0x264e7d['operator'],'operand':_0x264e7d[_0x2a5673(0x528)]}))}:null;}function _r(_0x458a18){const _0x15b08b=_0x274f9f;return _0x458a18!=null&&_0x458a18[_0x15b08b(0x353)]?_0x458a18[_0x15b08b(0x22e)](_0x2f6ef4=>({'fieldId':_0x2f6ef4[_0x15b08b(0x419)],'direction':_0x2f6ef4[_0x15b08b(0x246)]})):null;}function vr(_0x3c0231){const _0xb372e6=_0x274f9f;if(typeof _0x3c0231!=_0xb372e6(0x314)||!_0x3c0231)return JSON[_0xb372e6(0x2b6)](_0x3c0231)??'undefined';if(Array['isArray'](_0x3c0231))return'['+_0x3c0231['map'](vr)[_0xb372e6(0x48b)](',')+']';let _0x122716=_0x3c0231;return'{'+Object['keys'](_0x122716)[_0xb372e6(0x456)]()['map'](_0x3926e3=>JSON['stringify'](_0x3926e3)+':'+vr(_0x122716[_0x3926e3]))['join'](',')+'}';}function yr(_0x4e50c4){const _0x4ccc24=_0x274f9f;let _0x15b3c9=Object[_0x4ccc24(0x33c)](_0x4e50c4)[_0x4ccc24(0x456)]((_0x2bcf31,_0x3b760e)=>_0x2bcf31['orderKey']['localeCompare'](_0x3b760e['orderKey'])),_0xc86865=[];for(let _0x5cff2e of _0x15b3c9)_0xc86865['push'](_0x5cff2e['id']);return _0xc86865;}const br=0x5a0*0x3c*0x3e8;function xr(_0x2cd7ff){const _0x40bd1e=_0x274f9f;return{'weekdays':Array[_0x40bd1e(0x39e)](_0x2cd7ff==null?void 0x0:_0x2cd7ff['weekdays'])&&_0x2cd7ff['weekdays']['length']?[...new Set(_0x2cd7ff['weekdays'][_0x40bd1e(0x458)](_0x23d6a8=>Number['isInteger'](_0x23d6a8)&&_0x23d6a8>=0x1&&_0x23d6a8<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x40bd1e(0x39e)](_0x2cd7ff==null?void 0x0:_0x2cd7ff[_0x40bd1e(0x3df)])?_0x2cd7ff[_0x40bd1e(0x3df)][_0x40bd1e(0x25e)](_0x3ca3e9=>!_0x3ca3e9||!Number['isFinite'](_0x3ca3e9['date'])?[]:[{'id':String(_0x3ca3e9['id']||_0x40bd1e(0x303)+_0x3ca3e9['date']),'date':Y(Number(_0x3ca3e9[_0x40bd1e(0x27d)])),'name':String(_0x3ca3e9['name']||_0x40bd1e(0x340)),'type':_0x3ca3e9[_0x40bd1e(0x2b9)]==='working'?_0x40bd1e(0x374):_0x40bd1e(0x1d8)}]):[]};}function Sr(_0x48d3ec,_0x4caa12,_0x26ad83,_0x17600f){let _0x7e435d=Er(_0x48d3ec,_0x4caa12),_0x40be9c=Dr(_0x48d3ec,_0x26ad83),_0x4448a9=Cr(_0x48d3ec,_0x7e435d,_0x40be9c,_0x17600f);return{'scale':_0x48d3ec,'start':_0x7e435d,'end':_0x40be9c,'unitWidth':Tr(_0x48d3ec),'majorHeaders':wr(_0x48d3ec,_0x7e435d,_0x40be9c),'columns':_0x4448a9};}function Cr(_0x2bb63c,_0x219826,_0x16ad23,_0x3837b8){const _0x5b3ebc=_0x274f9f;let _0x226d49=[],_0x2580ed=_0x219826;for(;_0x2580ed<_0x16ad23;){let _0x16bd4f=_0x2bb63c==='quarter'?X(_0x2580ed,0x7):_0x2bb63c===_0x5b3ebc(0x4da)?Ir(_0x2580ed,0x1):X(_0x2580ed,0x1);_0x226d49[_0x5b3ebc(0x254)]({'id':_0x2bb63c+'-'+_0x2580ed,'label':Or(_0x2bb63c,_0x2580ed,_0x16bd4f),'majorLabel':kr(_0x2bb63c,_0x2580ed),'start':_0x2580ed,'end':_0x16bd4f,'nonWorking':jr(_0x2580ed,_0x16bd4f,_0x3837b8)}),_0x2580ed=_0x16bd4f;}return _0x226d49;}function wr(_0x5ec7b1,_0x10fb26,_0x1d2c73){const _0x54d1e5=_0x274f9f;let _0x54d6fe=[],_0x19f9bb=_0x5ec7b1==='year'?Fr(_0x10fb26):Pr(_0x10fb26);for(;_0x19f9bb<_0x1d2c73;){let _0x2c3001=_0x5ec7b1===_0x54d1e5(0x4da)?Lr(_0x19f9bb,0x1):Ir(_0x19f9bb,0x1);_0x54d6fe['push']({'id':_0x54d1e5(0x230)+_0x19f9bb,'label':_0x5ec7b1==='year'?String(new Date(_0x19f9bb)[_0x54d1e5(0x4f7)]()):Rr(_0x19f9bb),'start':_0x19f9bb,'end':_0x2c3001}),_0x19f9bb=_0x2c3001;}return _0x54d6fe;}function Tr(_0x1da13a){const _0x2dd1d0=_0x274f9f;switch(_0x1da13a){case _0x2dd1d0(0x3a2):return 0xac;case _0x2dd1d0(0x39a):return 0xac;case'year':return 0x88;default:return 0x56;}}function Er(_0xae932b,_0x49cba1){const _0x57b976=_0x274f9f;return _0xae932b==='year'?Fr(_0x49cba1):_0xae932b===_0x57b976(0x39a)?Nr(_0x49cba1):Y(_0x49cba1);}function Dr(_0x5975fb,_0x4d68dd){const _0x15e6b3=_0x274f9f;return _0x5975fb===_0x15e6b3(0x4da)?Lr(Fr(_0x4d68dd),0x1):_0x5975fb===_0x15e6b3(0x39a)?X(Nr(_0x4d68dd),0x7):X(Y(_0x4d68dd),0x1);}function Or(_0x1ee612,_0x49517e,_0x489cf6){const _0x14ed08=_0x274f9f;let _0x1c172f=new Date(_0x49517e);return _0x1ee612===_0x14ed08(0x39a)?_0x1c172f[_0x14ed08(0x2ca)]()+'-'+new Date(_0x489cf6-br)[_0x14ed08(0x2ca)]():_0x1ee612===_0x14ed08(0x4da)?_0x1c172f['toLocaleString'](_0x14ed08(0x239),{'month':_0x14ed08(0x526),'timeZone':'UTC'}):String(_0x1c172f[_0x14ed08(0x2ca)]());}function kr(_0x5560bb,_0x44942c){const _0x54644b=_0x274f9f;return _0x5560bb===_0x54644b(0x4da)?String(new Date(_0x44942c)[_0x54644b(0x4f7)]()):Rr(_0x44942c);}function Ar(_0x231b81,_0x331cfc,_0x4425e7){let _0x221c74=xr(_0x4425e7),_0x26fb72=0x0;for(let _0x4ea8f0=Y(_0x231b81);_0x4ea8f0<=Y(_0x331cfc);_0x4ea8f0=X(_0x4ea8f0,0x1))Mr(_0x4ea8f0,_0x221c74)||_0x26fb72++;return _0x26fb72;}function jr(_0x1c6355,_0x2170ac,_0x408ffb){if(!_0x408ffb)return!0x1;let _0x28cedd=xr(_0x408ffb);for(let _0x4f0130=Y(_0x1c6355);_0x4f0130<_0x2170ac;_0x4f0130=X(_0x4f0130,0x1))if(!Mr(_0x4f0130,_0x28cedd))return!0x1;return!0x0;}function Mr(_0x2eb462,_0x2090ee){const _0x3a4ae1=_0x274f9f;let _0x1d928b=Y(_0x2eb462),_0x4f795d=_0x2090ee['exceptions']['find'](_0x5f194b=>Y(_0x5f194b[_0x3a4ae1(0x27d)])===_0x1d928b);if(_0x4f795d)return _0x4f795d[_0x3a4ae1(0x2b9)]===_0x3a4ae1(0x1d8);let _0x1c07d5=new Date(_0x1d928b)[_0x3a4ae1(0x38b)](),_0x22fb26=_0x1c07d5===0x0?0x7:_0x1c07d5;return!_0x2090ee[_0x3a4ae1(0x35f)][_0x3a4ae1(0x1d2)](_0x22fb26);}function Y(_0x597abb){const _0x4d8f8e=_0x274f9f;let _0x121d84=new Date(_0x597abb);return Date[_0x4d8f8e(0x2cc)](_0x121d84[_0x4d8f8e(0x4f7)](),_0x121d84[_0x4d8f8e(0x3bf)](),_0x121d84[_0x4d8f8e(0x2ca)]());}function Nr(_0x293ba7){const _0x1cae77=_0x274f9f;let _0x373c87=Y(_0x293ba7),_0x3c01c1=new Date(_0x373c87)[_0x1cae77(0x38b)]();return X(_0x373c87,-(_0x3c01c1===0x0?0x6:_0x3c01c1-0x1));}function Pr(_0x26d97d){const _0x5c683f=_0x274f9f;let _0x3e5296=new Date(_0x26d97d);return Date[_0x5c683f(0x2cc)](_0x3e5296[_0x5c683f(0x4f7)](),_0x3e5296[_0x5c683f(0x3bf)](),0x1);}function Fr(_0x5a87b1){const _0x3a0660=_0x274f9f;let _0x4b21c8=new Date(_0x5a87b1);return Date['UTC'](_0x4b21c8[_0x3a0660(0x4f7)](),0x0,0x1);}function X(_0x4e0c53,_0x865d26){return _0x4e0c53+_0x865d26*br;}function Ir(_0x21f5f4,_0x445b53){const _0x4ee812=_0x274f9f;let _0x2b8ded=new Date(_0x21f5f4);return Date[_0x4ee812(0x2cc)](_0x2b8ded[_0x4ee812(0x4f7)](),_0x2b8ded['getUTCMonth']()+_0x445b53,0x1);}function Lr(_0x754e28,_0xd5ca53){const _0x1ef99d=_0x274f9f;let _0x5d7e47=new Date(_0x754e28);return Date[_0x1ef99d(0x2cc)](_0x5d7e47[_0x1ef99d(0x4f7)]()+_0xd5ca53,0x0,0x1);}function Rr(_0x2df744){const _0x2dc756=_0x274f9f;let _0x30720d=new Date(_0x2df744);return _0x30720d['toLocaleString'](_0x2dc756(0x239),{'month':_0x2dc756(0x526),'timeZone':'UTC'})+'\x20'+_0x30720d[_0x2dc756(0x4f7)]();}function zr(_0xf15e2b,_0x5e0b05){const _0x1cc4d1=_0x274f9f;if(_0xf15e2b==null&&_0x5e0b05==null)return 0x0;if(_0xf15e2b==null)return-0x1;if(_0x5e0b05==null)return 0x1;if(typeof _0xf15e2b==_0x1cc4d1(0x4ed)||typeof _0x5e0b05=='boolean')return Number(_0xf15e2b===!0x0)-Number(_0x5e0b05===!0x0);let _0x458a72=Number(_0xf15e2b),_0x1dd46b=Number(_0x5e0b05),_0x1b22c4=Number[_0x1cc4d1(0x1ee)](_0x458a72),_0x5e5a73=Number[_0x1cc4d1(0x1ee)](_0x1dd46b);return _0x1b22c4&&_0x5e5a73?_0x458a72-_0x1dd46b:_0x1b22c4?0x1:_0x5e5a73?-0x1:String(_0xf15e2b)[_0x1cc4d1(0x1fe)](String(_0x5e0b05));}function Br(_0x2535e5){const _0x3ec65a=_0x274f9f;if(_0x2535e5[_0x3ec65a(0x401)]!=='is'&&_0x2535e5[_0x3ec65a(0x401)]!=='isNot')return!0x1;let _0x27d46c=_0x2535e5[_0x3ec65a(0x528)];return _0x27d46c==null?!0x0:typeof _0x27d46c==_0x3ec65a(0x3c6)?_0x27d46c[_0x3ec65a(0x2ba)]()==='':Array['isArray'](_0x27d46c)?_0x27d46c[_0x3ec65a(0x353)]===0x0:!0x1;}function _0x2f15(_0x5c349b,_0x10f63f){_0x5c349b=_0x5c349b-0x1d0;const _0x42e693=_0x42e6();let _0x2f15a8=_0x42e693[_0x5c349b];return _0x2f15a8;}function Vr(_0x40489f,_0x54b41c){const _0x4bc923=_0x274f9f;var _0x2120c6;let _0x36e966=Array[_0x4bc923(0x39e)]((_0x2120c6=_0x40489f['config'])==null?void 0x0:_0x2120c6['options'])?_0x40489f[_0x4bc923(0x427)]['options']:[];for(let _0x4d3ee0 of _0x36e966){if(_0x4d3ee0==null)continue;if(typeof _0x4d3ee0==_0x4bc923(0x3c6)){if(_0x4d3ee0===_0x54b41c)return{'id':_0x4d3ee0,'name':_0x4d3ee0};continue;}let _0x1752e7=_0x4d3ee0,_0x2a3e03=String(_0x1752e7['id']??_0x1752e7[_0x4bc923(0x248)]??''),_0x39e55e=String(_0x1752e7[_0x4bc923(0x248)]??_0x1752e7['id']??_0x2a3e03);if(_0x2a3e03===_0x54b41c||_0x39e55e===_0x54b41c)return{'id':_0x2a3e03,'name':_0x39e55e,'color':_0x1752e7[_0x4bc923(0x1e3)]==null?void 0x0:String(_0x1752e7['color'])};}return null;}const Z={'id':_0x274f9f(0x48f),'type':_0x154d7f[_0x274f9f(0x24d)],'handler'(_0x1d28bb,_0x491109){const _0x40fa01=_0x274f9f;let {unitId:_0x1f60b0,op:_0x64402d}=_0x491109,_0xf5e42e=_0x1d28bb['get'](_0x310540)[_0x40fa01(0x462)](_0x1f60b0,_0x993548[_0x40fa01(0x3f1)]);if(!_0xf5e42e)return!0x1;let _0x2e7469=_0xf5e42e[_0x40fa01(0x2d0)](),_0x392965=new z(),_0x41604d=_0x392965[_0x40fa01(0x301)](_0x64402d),_0x196b4b=_0x392965['applyOp'](_0x2e7469,_0x64402d);return _0xf5e42e['setSnapshot'](_0x196b4b),Hr(_0x196b4b,_0x41604d,_0x1d28bb[_0x40fa01(0x23e)](ur)),!0x0;}};function Hr(_0xba50da,_0x4c3d22,_0x2e9f26){const _0x509df4=_0x274f9f;let _0x59884f=new Set();for(let _0x580626 of _0x4c3d22){if(_0x580626[_0x509df4(0x257)]!==_0x509df4(0x3aa)){_0x2e9f26[_0x509df4(0x1f0)]();return;}let _0x5dd771=Ur(_0xba50da,_0x580626);if(!_0x5dd771){_0x2e9f26[_0x509df4(0x1f0)]();return;}let _0x37d56b=_0x5dd771[_0x509df4(0x37e)]+'\x00'+_0x5dd771[_0x509df4(0x44a)]+'\x00'+_0x5dd771[_0x509df4(0x419)];_0x59884f[_0x509df4(0x51e)](_0x37d56b)||(_0x59884f['add'](_0x37d56b),_0x2e9f26[_0x509df4(0x21c)](_0x5dd771[_0x509df4(0x37e)],_0x5dd771[_0x509df4(0x44a)],_0x5dd771['fieldId']));}}function Ur(_0x3ef101,_0x19739e){const _0x10d922=_0x274f9f;var _0x2ec0df,_0x1843a3;if(!_0x19739e[_0x10d922(0x37e)])return null;if(_0x19739e[_0x10d922(0x44a)]&&_0x19739e[_0x10d922(0x419)])return{'tableId':_0x19739e[_0x10d922(0x37e)],'recordId':_0x19739e[_0x10d922(0x44a)],'fieldId':_0x19739e['fieldId']};if(_0x19739e[_0x10d922(0x264)]==null||_0x19739e['column']==null)return null;let _0x1cb264=_0x3ef101['tables'][_0x19739e[_0x10d922(0x37e)]],_0x25976f=_0x1cb264==null||(_0x2ec0df=_0x1cb264[_0x10d922(0x47c)])==null?void 0x0:_0x2ec0df[_0x19739e[_0x10d922(0x264)]],_0x121510=_0x1cb264==null||(_0x1843a3=_0x1cb264['colId'])==null?void 0x0:_0x1843a3[_0x19739e[_0x10d922(0x42e)]];return!_0x25976f||!_0x121510?null:{'tableId':_0x19739e[_0x10d922(0x37e)],'recordId':_0x25976f,'fieldId':_0x121510};}function Q(_0xd53bf4,_0x9c174a,_0x230244){const _0x4d3b54=_0x274f9f;let _0x16dc59=_0xd53bf4[_0x4d3b54(0x2d0)]()[_0x4d3b54(0x529)][_0x9c174a];if(!_0x16dc59)return!0x1;let {viewIds:_0x5db0d1,fieldIds:_0x49cf70,recordIds:_0x2fa561}=_0x230244||{};if(_0x5db0d1){for(let _0x1b5ed8 of _0x5db0d1)if(!_0x16dc59[_0x4d3b54(0x22d)][_0x1b5ed8])return!0x1;}if(_0x49cf70){for(let _0x4e9b2e of _0x49cf70)if(!_0x16dc59[_0x4d3b54(0x39f)][_0x4e9b2e])return!0x1;}if(_0x2fa561){for(let _0x36ab04 of _0x2fa561)if(!_0x16dc59[_0x4d3b54(0x3c4)][_0x36ab04])return!0x1;}return!0x0;}function Wr(_0x37b070,_0x1b1396,_0xb741cc){const _0x5a3d4d=_0x274f9f;if(_0xb741cc['id']===_0x525439||_0xb741cc[_0x5a3d4d(0x2b9)]===_0x11438e[_0x5a3d4d(0x20d)]||_0xec31b8(_0xb741cc[_0x5a3d4d(0x248)]))return!0x1;let _0x128958=_0x37b070['getSnapshot']();if(!De(_0x128958,_0xb741cc)['valid'])return!0x1;if(_0xb741cc[_0x5a3d4d(0x2b9)]!==_0x11438e['RecordLink'])return!0x0;let _0x578331=A(_0xb741cc);if(!_0x578331)return!0x1;if(_0x578331[_0x5a3d4d(0x253)]===void 0x0)return!0x0;if(_0x578331[_0x5a3d4d(0x253)]!==_0x2af9b7[_0x5a3d4d(0x38c)]||_0x578331['targetTableId']!==_0x1b1396||_0x578331[_0x5a3d4d(0x501)]!==!0x1)return!0x1;let _0x1aa3c3=_0x128958[_0x5a3d4d(0x529)][_0x1b1396];return!Object[_0x5a3d4d(0x33c)](_0x1aa3c3['fields'])[_0x5a3d4d(0x29f)](_0x4448fd=>{const _0x38f869=_0x5a3d4d;var _0x48e27d;return _0x4448fd['id']!==_0xb741cc['id']&&_0x4448fd['type']===_0x11438e[_0x38f869(0x24c)]&&((_0x48e27d=A(_0x4448fd))==null?void 0x0:_0x48e27d[_0x38f869(0x253)])===_0x2af9b7[_0x38f869(0x38c)];});}function Gr(_0x523c0d,_0x2afdc6,_0x1f793d,_0x530b4d){const _0xf84ea1=_0x274f9f;var _0x3fdd84;let _0x57a4ff=_0x523c0d[_0xf84ea1(0x2d0)](),_0x2c46a7=(_0x3fdd84=_0x57a4ff[_0xf84ea1(0x529)][_0x2afdc6])==null?void 0x0:_0x3fdd84[_0xf84ea1(0x39f)][_0x1f793d];return!_0x2c46a7||_0x2c46a7['id']===_0x525439||_0x2c46a7['type']===_0x11438e[_0xf84ea1(0x20d)]?!0x1:_0x2c46a7[_0xf84ea1(0x2b9)]!==_0x11438e[_0xf84ea1(0x24c)]||Oe(_0x57a4ff,_0x2c46a7,Jr(_0x530b4d))[_0xf84ea1(0x352)];}function Kr(_0x276538,_0xe6bb84,_0x3cc88b){const _0x309a28=_0x274f9f;let _0x3d1314=_0x276538['getSnapshot']()[_0x309a28(0x529)][_0xe6bb84];return!_0x3d1314||!_0x198e88(_0x3cc88b['id'])||_0x3d1314[_0x309a28(0x3c4)][_0x3cc88b['id']]||Object[_0x309a28(0x20f)][_0x309a28(0x465)][_0x309a28(0x385)](_0x3cc88b[_0x309a28(0x33c)],_0x525439)&&_0x3cc88b['values'][_0x525439]!==_0x3cc88b['id']?!0x1:Object[_0x309a28(0x2d4)](_0x3cc88b['values'])['every'](([_0xffd32,_0xaf8251])=>_0xffd32===_0x525439||Gr(_0x276538,_0xe6bb84,_0xffd32,_0xaf8251));}function qr(_0x1353b2){const _0x1413f5=_0x274f9f;return{..._0x1353b2,'values':{..._0x1353b2[_0x1413f5(0x33c)],[_0x525439]:_0x1353b2['id']}};}function Jr(_0x4e97d8){const _0x2c07ef=_0x274f9f;if(_0x4e97d8&&typeof _0x4e97d8==_0x2c07ef(0x314)&&!Array[_0x2c07ef(0x39e)](_0x4e97d8)&&'v'in _0x4e97d8){let _0x4a7122=_0x4e97d8['v'];return _0x4a7122===void 0x0?null:_0x4a7122;}return _0x4e97d8;}function Yr(_0x4670ce,_0x435290,_0x1ab986,_0x253f66){const _0x46343a=_0x274f9f;let _0x425015=_0x4670ce[_0x46343a(0x2d0)]()[_0x46343a(0x529)][_0x435290];if(!_0x425015)return null;let _0xe85008=N(_0x425015),_0x5a58b3=_0xe85008??P(_0x425015),_0x3af49b=_0x1ab986['some'](_0x3370ed=>Object[_0x46343a(0x20f)][_0x46343a(0x465)]['call'](_0x3370ed[_0x46343a(0x33c)],_0x5a58b3)),_0x2ec141=_0xe85008?_0x425015[_0x46343a(0x39f)][_0xe85008]:_0x3af49b?Pe(_0x425015,_0x5a58b3,_0x253f66):null,_0x2b3b6f=[];for(let _0x37e843 of _0x1ab986){let _0x448433=_0x37e843['values'][_0x5a58b3],_0x50f2fb=_0x2ec141!==null&&Object[_0x46343a(0x20f)][_0x46343a(0x465)]['call'](_0x37e843[_0x46343a(0x33c)],_0x5a58b3),_0xc4baf2=Jr(_0x448433),_0x2ca3a8=null;if(_0x50f2fb){if(typeof _0xc4baf2!=_0x46343a(0x3c6)||!Ee(_0xc4baf2,!0x1)[_0x46343a(0x352)])return null;_0x2ca3a8=_0xc4baf2;}let _0x1d9543={};if(Object[_0x46343a(0x2d4)](_0x37e843[_0x46343a(0x33c)])[_0x46343a(0x366)](([_0x5aaee3,_0x44cb88])=>{(!_0x50f2fb||_0x5aaee3!==_0x5a58b3)&&(_0x1d9543[_0x5aaee3]=_0x44cb88);}),!Kr(_0x4670ce,_0x435290,{..._0x37e843,'values':_0x1d9543}))return null;let _0x429c23={..._0x37e843[_0x46343a(0x33c)]};_0x2ca3a8!==null&&(_0x429c23[_0x5a58b3]=_0x2ca3a8),_0x2b3b6f[_0x46343a(0x254)](qr({..._0x37e843,'values':_0x429c23}));}return{'records':_0x2b3b6f,'hierarchyFieldToMaterialize':_0xe85008?null:_0x2ec141,'hierarchyChanges':Le(_0x425015,_0x2b3b6f)};}const Xr={'id':_0x274f9f(0x364),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0x4543f2,_0x5d8b40){const _0xe0ac1b=_0x274f9f;if(!_0x5d8b40)return!0x1;let _0x412167=_0x4543f2[_0xe0ac1b(0x23e)](_0x310540),{unitId:_0x3164d0,tableId:_0x271f39,records:_0x1e7a76}=_0x5d8b40,_0x2aa095=_0x412167[_0xe0ac1b(0x462)](_0x3164d0,_0x993548['UNIVER_BASE']),_0x39ad70=_0x1e7a76[_0xe0ac1b(0x22e)](_0x5a570f=>_0x5a570f['id']);if(!_0x2aa095||!Q(_0x2aa095,_0x271f39)||new Set(_0x39ad70)['size']!==_0x39ad70[_0xe0ac1b(0x353)])return!0x1;let _0x2063de=_0x4543f2[_0xe0ac1b(0x23e)](_0x232cd6),_0x568aa1=_0x4543f2[_0xe0ac1b(0x23e)](_0x56cd6a),_0x454a5b=_0x4543f2[_0xe0ac1b(0x23e)](J),_0x5a1c98=_0x2aa095[_0xe0ac1b(0x2d0)](),_0x261f60=Yr(_0x2aa095,_0x271f39,_0x1e7a76);if(!_0x261f60)return!0x1;let {records:_0x1999f9,hierarchyChanges:_0x3f2c36,hierarchyFieldToMaterialize:_0x517524}=_0x261f60,_0x46df81=_0x517524?_0x454a5b[_0xe0ac1b(0x504)](_0x2aa095,_0x271f39,_0x517524,_0x5a1c98[_0xe0ac1b(0x529)][_0x271f39]['fieldOrder']['length']):null,_0x430cea=_0x454a5b[_0xe0ac1b(0x227)](_0x2aa095,_0x271f39,_0x1999f9),_0x2176dd=R([..._0x46df81?[_0x46df81]:[],_0x430cea]),_0x595611=new z()['invertOp'](_0x5a1c98,_0x2176dd),_0x2596af={'unitId':_0x3164d0,'op':_0x2176dd,'hierarchyChanges':_0x3f2c36[_0xe0ac1b(0x353)]?_0x3f2c36:void 0x0,'source':_0x3f2c36[_0xe0ac1b(0x353)]?_0x5d8b40[_0xe0ac1b(0x272)]??'ui':void 0x0},_0x173139={..._0x2596af,'source':_0x3f2c36['length']?_0xe0ac1b(0x37f):void 0x0},_0x5c7276={'unitId':_0x3164d0,'op':_0x595611,'hierarchyChanges':_0x3f2c36[_0xe0ac1b(0x353)]?_0x3f2c36[_0xe0ac1b(0x22e)](_0x2e6a24=>({..._0x2e6a24,'oldParentRecordId':_0x2e6a24['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x3f2c36[_0xe0ac1b(0x353)]?_0xe0ac1b(0x3d6):void 0x0};return _0x2063de[_0xe0ac1b(0x421)](Z['id'],_0x2596af)?(_0x412167[_0xe0ac1b(0x1df)](_0x3164d0),_0x568aa1['pushUndoRedo']({'unitID':_0x3164d0,'undoMutations':[{'id':Z['id'],'params':_0x5c7276}],'redoMutations':[{'id':Z['id'],'params':_0x173139}]}),!0x0):!0x1;}},Zr={'id':'base.command.batch-delete-base-records','type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x16052d,_0x497ee5)=>{const _0x4f480e=_0x274f9f;if(!_0x497ee5)return!0x1;let _0x2e5da6=_0x16052d['get'](_0x310540),{unitId:_0x55662c,tableId:_0x5072b2,recordIds:_0x2f9ab6}=_0x497ee5,_0x1d764a=_0x2e5da6[_0x4f480e(0x462)](_0x55662c,_0x993548[_0x4f480e(0x3f1)]);if(!_0x1d764a||!Q(_0x1d764a,_0x5072b2,{'recordIds':_0x2f9ab6}))return!0x1;let _0x48ea34=_0x16052d[_0x4f480e(0x23e)](_0x232cd6),_0x4d57c4=_0x16052d['get'](_0x56cd6a),_0x24133d=_0x1d764a[_0x4f480e(0x2d0)](),_0x4b7663=ze(_0x24133d['tables'][_0x5072b2],_0x2f9ab6),_0x1ae1b9=new W()[_0x4f480e(0x387)](_0x24133d,_0x5072b2,_0x2f9ab6),_0x3de6fe=new z()[_0x4f480e(0x2c6)](_0x24133d,_0x1ae1b9),_0x5a95d6={'unitId':_0x55662c,'op':_0x1ae1b9,'hierarchyChanges':_0x4b7663,'source':_0x497ee5[_0x4f480e(0x272)]??'ui'},_0x716dfd={..._0x5a95d6,'source':'redo'},_0x29b3af={'unitId':_0x55662c,'op':_0x3de6fe,'hierarchyChanges':_0x4b7663[_0x4f480e(0x22e)](_0x1bfb58=>({..._0x1bfb58,'oldParentRecordId':_0x1bfb58[_0x4f480e(0x4d9)],'parentRecordId':_0x1bfb58[_0x4f480e(0x31b)]})),'source':_0x4f480e(0x3d6)};return _0x48ea34[_0x4f480e(0x421)](Z['id'],_0x5a95d6)?(_0x2e5da6[_0x4f480e(0x1df)](_0x55662c),_0x4d57c4[_0x4f480e(0x3d4)]({'unitID':_0x55662c,'undoMutations':[{'id':Z['id'],'params':_0x29b3af}],'redoMutations':[{'id':Z['id'],'params':_0x716dfd}]}),!0x0):!0x1;}},Qr={'id':_0x274f9f(0x29a),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x20dfe1,_0x3e595a)=>{const _0x279ee2=_0x274f9f;if(!_0x3e595a)return!0x1;let _0x4a0809=_0x20dfe1['get'](_0x310540),{unitId:_0x22d735,tableId:_0x24f9e1,fieldId:_0x1c646e,input:_0x1f11fa}=_0x3e595a,_0x10ed9b=_0x4a0809['getUnit'](_0x22d735,_0x993548[_0x279ee2(0x3f1)]);if(!_0x10ed9b||_0x1c646e===_0x525439||!Q(_0x10ed9b,_0x24f9e1,{'fieldIds':[_0x1c646e]}))return!0x1;let _0xb0ae28=_0x20dfe1['get'](_0x232cd6),_0x351b56=_0x20dfe1[_0x279ee2(0x23e)](_0x56cd6a),_0x57b2a0=_0x10ed9b[_0x279ee2(0x2d0)]();if(!Wr(_0x10ed9b,_0x24f9e1,{..._0x57b2a0[_0x279ee2(0x529)][_0x24f9e1][_0x279ee2(0x39f)][_0x1c646e],..._0x1f11fa}))return!0x1;let _0x5af91b=new W()[_0x279ee2(0x3b4)](_0x57b2a0,_0x24f9e1,_0x1c646e,_0x1f11fa),_0x5c4ceb=new z()[_0x279ee2(0x2c6)](_0x57b2a0,_0x5af91b),_0xc59f60={'unitId':_0x22d735,'op':_0x5af91b},_0x22b61f={'unitId':_0x22d735,'op':_0x5c4ceb};return _0xb0ae28[_0x279ee2(0x421)](Z['id'],_0xc59f60)?(_0x4a0809['focusUnit'](_0x22d735),_0x351b56[_0x279ee2(0x3d4)]({'unitID':_0x22d735,'undoMutations':[{'id':Z['id'],'params':_0x22b61f}],'redoMutations':[{'id':Z['id'],'params':_0xc59f60}]}),!0x0):!0x1;}},$r={'id':_0x274f9f(0x3e2),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0x2d5f5c,_0xf4bb07){const _0x235edc=_0x274f9f;var _0x3a4c79;if(!_0xf4bb07)return!0x1;let {unitId:_0x3cc6e8,tableId:_0xdfcf8f,parentRecordId:_0x24d424}=_0xf4bb07,_0x54bc8f=_0x2d5f5c[_0x235edc(0x23e)](_0x310540),_0x350fc5=_0x54bc8f[_0x235edc(0x462)](_0x3cc6e8,_0x993548[_0x235edc(0x3f1)]);if(!_0x350fc5||!Q(_0x350fc5,_0xdfcf8f,{'recordIds':[_0x24d424]}))throw new j('missingRecord');let _0x5b1d47=_0x350fc5[_0x235edc(0x2d0)](),_0x3cfbbb=_0x5b1d47['tables'][_0xdfcf8f],_0x5b8bdc=N(_0x3cfbbb),_0x17fa55=_0x5b8bdc??_0xf4bb07[_0x235edc(0x419)]??P(_0x3cfbbb);if(_0x5b8bdc&&_0xf4bb07['fieldId']&&_0xf4bb07[_0x235edc(0x419)]!==_0x5b8bdc||_0x3cfbbb[_0x235edc(0x39f)][_0x17fa55]&&!M(_0x3cfbbb,_0x17fa55))throw new j(_0x235edc(0x432));if((F(_0x3cfbbb,_0x17fa55)[_0x235edc(0x26b)]['get'](_0x24d424)??0x0)+0x1>=0x5)throw new j(_0x235edc(0x250));if(!Kr(_0x350fc5,_0xdfcf8f,_0xf4bb07[_0x235edc(0x46a)]))return!0x1;let _0x5b77a8=qr({..._0xf4bb07['record'],'values':{..._0xf4bb07[_0x235edc(0x46a)][_0x235edc(0x33c)],[_0x17fa55]:Te([_0x24d424])}}),_0x31ea5f=_0x2d5f5c['get'](J),_0x19d897=new W(),_0x1fffe3=_0x3cfbbb[_0x235edc(0x39f)][_0x17fa55],_0xa87333=_0x1fffe3?((_0x3a4c79=A(_0x1fffe3))==null?void 0x0:_0x3a4c79[_0x235edc(0x253)])===_0x2af9b7['Parent']?null:_0x19d897['updateField'](_0x5b1d47,_0xdfcf8f,_0x17fa55,{'config':{..._0x1fffe3['config'],'relationRole':_0x2af9b7[_0x235edc(0x38c)]}}):_0x31ea5f[_0x235edc(0x504)](_0x350fc5,_0xdfcf8f,Pe(_0x3cfbbb,_0x17fa55,_0xf4bb07[_0x235edc(0x2e3)]),_0x3cfbbb[_0x235edc(0x47a)][_0x235edc(0x353)]),_0x15d59b=_0x31ea5f[_0x235edc(0x25f)](_0x350fc5,_0xdfcf8f,_0x5b77a8),_0x2b0673=R([..._0xa87333?[_0xa87333]:[],_0x15d59b]),_0x5d7dd5=new z()[_0x235edc(0x2c6)](_0x5b1d47,_0x2b0673),_0x41472b={'tableId':_0xdfcf8f,'fieldId':_0x17fa55,'recordId':_0x5b77a8['id'],'oldParentRecordId':null,'parentRecordId':_0x24d424},_0x1ac685={'unitId':_0x3cc6e8,'op':_0x2b0673,'trigger':$r['id'],'hierarchyChanges':[_0x41472b],'source':_0xf4bb07[_0x235edc(0x272)]??'ui'},_0x36b85d={..._0x1ac685,'source':_0x235edc(0x37f)},_0x283c15={'unitId':_0x3cc6e8,'op':_0x5d7dd5,'trigger':$r['id'],'hierarchyChanges':[{..._0x41472b,'oldParentRecordId':_0x24d424,'parentRecordId':null}],'source':_0x235edc(0x3d6)};return _0x2d5f5c['get'](_0x232cd6)[_0x235edc(0x421)](Z['id'],_0x1ac685)?(_0x54bc8f[_0x235edc(0x1df)](_0x3cc6e8),_0x2d5f5c[_0x235edc(0x23e)](_0x56cd6a)[_0x235edc(0x3d4)]({'unitID':_0x3cc6e8,'undoMutations':[{'id':Z['id'],'params':_0x283c15}],'redoMutations':[{'id':Z['id'],'params':_0x36b85d}]}),!0x0):!0x1;}},ei={'id':_0x274f9f(0x50b),'type':_0x154d7f['COMMAND'],'handler'(_0x1139c7,_0x1d8043){const _0x353cd6=_0x274f9f;if(!_0x1d8043)return!0x1;let _0x49ac80=_0x1139c7[_0x353cd6(0x23e)](_0x310540),{unitId:_0x294814,tableId:_0x3ca94b,field:_0x49a4e9,index:_0x129dfa,viewIndexes:_0x32820e}=_0x1d8043,_0x443e57=_0x49ac80[_0x353cd6(0x462)](_0x294814,_0x993548[_0x353cd6(0x3f1)]);if(!_0x443e57||!Q(_0x443e57,_0x3ca94b)||_0x443e57['getSnapshot']()[_0x353cd6(0x529)][_0x3ca94b][_0x353cd6(0x39f)][_0x49a4e9['id']]||_0x129dfa===0x0||!Wr(_0x443e57,_0x3ca94b,_0x49a4e9))return!0x1;let _0x3f8a5a=_0x1139c7[_0x353cd6(0x23e)](_0x232cd6),_0x3e55bc=_0x1139c7[_0x353cd6(0x23e)](_0x56cd6a),_0x258d6d=_0x1139c7[_0x353cd6(0x23e)](J)[_0x353cd6(0x504)](_0x443e57,_0x3ca94b,_0x49a4e9,_0x129dfa,_0x32820e),_0x303103=new z()[_0x353cd6(0x2c6)](_0x443e57[_0x353cd6(0x2d0)](),_0x258d6d),_0x2346f5={'unitId':_0x294814,'op':_0x258d6d},_0x12b976={'unitId':_0x294814,'op':_0x303103};return _0x3f8a5a['syncExecuteCommand'](Z['id'],_0x2346f5)?(_0x49ac80[_0x353cd6(0x1df)](_0x294814),_0x3e55bc[_0x353cd6(0x3d4)]({'unitID':_0x294814,'undoMutations':[{'id':Z['id'],'params':_0x12b976}],'redoMutations':[{'id':Z['id'],'params':_0x2346f5}]}),!0x0):!0x1;}},ti={'id':'base.command.create-base-record','type':_0x154d7f['COMMAND'],'handler'(_0x116977,_0x4cc37b){const _0xaaccdc=_0x274f9f;if(!_0x4cc37b)return!0x1;let _0x1a5f3e=_0x116977[_0xaaccdc(0x23e)](_0x310540),{unitId:_0x5e74ae,tableId:_0x30e900,record:_0x15d21a}=_0x4cc37b,_0x933b27=_0x1a5f3e[_0xaaccdc(0x462)](_0x5e74ae,_0x993548[_0xaaccdc(0x3f1)]);if(!_0x933b27||!Q(_0x933b27,_0x30e900))return!0x1;let _0x1bbe9d=_0x116977[_0xaaccdc(0x23e)](_0x232cd6),_0x228e8e=_0x116977[_0xaaccdc(0x23e)](_0x56cd6a),_0x23865a=_0x116977[_0xaaccdc(0x23e)](J),_0x15936f=_0x933b27[_0xaaccdc(0x2d0)](),_0x2eddc3=Yr(_0x933b27,_0x30e900,[_0x15d21a]);if(!_0x2eddc3)return!0x1;let [_0x2ec027]=_0x2eddc3['records'],{hierarchyChanges:_0x41ce99,hierarchyFieldToMaterialize:_0x5b2b86}=_0x2eddc3,_0x3ca356=_0x5b2b86?_0x23865a[_0xaaccdc(0x504)](_0x933b27,_0x30e900,_0x5b2b86,_0x15936f[_0xaaccdc(0x529)][_0x30e900][_0xaaccdc(0x47a)][_0xaaccdc(0x353)]):null,_0x211b9b=_0x23865a[_0xaaccdc(0x25f)](_0x933b27,_0x30e900,_0x2ec027),_0x53a860=R([..._0x3ca356?[_0x3ca356]:[],_0x211b9b]),_0x5725b8=new z()[_0xaaccdc(0x2c6)](_0x15936f,_0x53a860),_0x29827b={'unitId':_0x5e74ae,'op':_0x53a860,'hierarchyChanges':_0x41ce99['length']?_0x41ce99:void 0x0,'source':_0x41ce99[_0xaaccdc(0x353)]?_0x4cc37b[_0xaaccdc(0x272)]??'ui':void 0x0},_0x327123={..._0x29827b,'source':_0x41ce99[_0xaaccdc(0x353)]?'redo':void 0x0},_0x3b2c9e={'unitId':_0x5e74ae,'op':_0x5725b8,'hierarchyChanges':_0x41ce99[_0xaaccdc(0x353)]?_0x41ce99[_0xaaccdc(0x22e)](_0x5a2c4f=>({..._0x5a2c4f,'oldParentRecordId':_0x5a2c4f[_0xaaccdc(0x4d9)],'parentRecordId':null})):void 0x0,'source':_0x41ce99[_0xaaccdc(0x353)]?_0xaaccdc(0x3d6):void 0x0};return _0x1bbe9d[_0xaaccdc(0x421)](Z['id'],_0x29827b)?(_0x1a5f3e[_0xaaccdc(0x1df)](_0x5e74ae),_0x228e8e[_0xaaccdc(0x3d4)]({'unitID':_0x5e74ae,'undoMutations':[{'id':Z['id'],'params':_0x3b2c9e}],'redoMutations':[{'id':Z['id'],'params':_0x327123}]}),!0x0):!0x1;}},ni={'id':'base.command.create-base-table','type':_0x154d7f['COMMAND'],'handler':(_0x1b2cc4,_0x167580)=>{const _0x3739ec=_0x274f9f;if(!_0x167580)return!0x1;let _0x317a4a=_0x1b2cc4[_0x3739ec(0x23e)](_0x310540),{unitId:_0x291a4d,table:_0x517750,index:_0x56588e}=_0x167580,_0x27f2f2=_0x317a4a[_0x3739ec(0x462)](_0x291a4d,_0x993548[_0x3739ec(0x3f1)]);if(!_0x27f2f2||_0x27f2f2['getSnapshot']()[_0x3739ec(0x529)][_0x517750['id']])return!0x1;try{_0xbbbb25(_0x517750);}catch{return!0x1;}let _0x3a42ad=_0x1b2cc4[_0x3739ec(0x23e)](_0x232cd6),_0x378a7d=_0x1b2cc4[_0x3739ec(0x23e)](_0x56cd6a),_0x4cf0a1=_0x27f2f2[_0x3739ec(0x2d0)](),_0xe9e15b={..._0x517750,'name':_0x27f2f2[_0x3739ec(0x515)](_0x517750[_0x3739ec(0x248)])},_0x158534=new W()[_0x3739ec(0x494)](_0x4cf0a1,_0xe9e15b,_0x56588e),_0x19f09f=new z()[_0x3739ec(0x2c6)](_0x4cf0a1,_0x158534),_0x5b67e0={'unitId':_0x291a4d,'op':_0x158534},_0x23be08={'unitId':_0x291a4d,'op':_0x19f09f};return _0x3a42ad['syncExecuteCommand'](Z['id'],_0x5b67e0)?(_0x317a4a[_0x3739ec(0x1df)](_0x291a4d),_0x378a7d['pushUndoRedo']({'unitID':_0x291a4d,'undoMutations':[{'id':Z['id'],'params':_0x23be08}],'redoMutations':[{'id':Z['id'],'params':_0x5b67e0}]}),!0x0):!0x1;}};function ri(_0x27c405,_0xdfdb3,_0x1f7a47=[]){const _0x4a0e32=_0x274f9f;let _0x418936=new Set([...Object[_0x4a0e32(0x33c)](_0x27c405[_0x4a0e32(0x39f)])[_0x4a0e32(0x458)](_0x4fbba9=>_0x4fbba9)[_0x4a0e32(0x22e)](_0x3023a5=>_0x3023a5['name']),..._0x1f7a47[_0x4a0e32(0x22e)](_0x4fc3be=>_0x4fc3be[_0x4a0e32(0x248)])]);if(!_0x418936[_0x4a0e32(0x51e)](_0xdfdb3))return _0xdfdb3;let _0x5448ec=0x2;for(;_0x418936[_0x4a0e32(0x51e)](_0xdfdb3+'\x20'+_0x5448ec);)_0x5448ec++;return _0xdfdb3+'\x20'+_0x5448ec;}function ii(_0x1140cd,_0x59bdf0){const _0x594aad=_0x274f9f;if(!_0x1140cd||!_0x59bdf0[_0x594aad(0x353)])return;let _0x358b09=[..._0x1140cd];return _0x59bdf0['forEach'](_0x1e7a85=>{const _0x570b1f=_0x594aad;_0x358b09['includes'](_0x1e7a85)||_0x358b09[_0x570b1f(0x254)](_0x1e7a85);}),_0x358b09;}const ai={'options':[{'id':_0x274f9f(0x4c0),'name':_0x274f9f(0x249),'color':_0x274f9f(0x365)},{'id':_0x274f9f(0x3d0),'name':_0x274f9f(0x489),'color':_0x274f9f(0x4f2)},{'id':_0x274f9f(0x292),'name':_0x274f9f(0x3b7),'color':'#BBF7D0'}]},oi={'locale':_0x274f9f(0x239),'pattern':_0x274f9f(0x3b0),'includeTime':!0x1,'hourCycle':_0x274f9f(0x48d),'defaultMode':_0x274f9f(0x52a)};function si(_0x29a932,_0x5326de,_0xc02df4,_0x1335bb){const _0x257c00=_0x274f9f;var _0x33570e;let _0x1dc47b=new W(),_0x57f6b7=_0x29a932[_0x257c00(0x529)][_0x5326de],_0x2f4328=_0x57f6b7?{..._0xc02df4,'fieldOrder':[_0x525439,...(_0xc02df4[_0x257c00(0x47a)]??_0x57f6b7[_0x257c00(0x47a)])[_0x257c00(0x458)](_0x1f55d3=>_0x1f55d3!==_0x525439)],'fieldSettings':{..._0xc02df4[_0x257c00(0x243)],[_0x525439]:{...(_0x33570e=_0xc02df4[_0x257c00(0x243)])==null?void 0x0:_0x33570e[_0x525439],'hidden':!0x0}}}:_0xc02df4;if(_0x57f6b7&&_0x2f4328[_0x257c00(0x2b9)]===_0x257c00(0x455)){let _0x3387f5=li(_0x57f6b7,_0x2f4328),_0x58761a=_0x3387f5[_0x257c00(0x23c)]?{..._0x2f4328,'config':_0x3387f5[_0x257c00(0x427)],'fieldOrder':_0x3387f5[_0x257c00(0x47a)]??_0x2f4328['fieldOrder']}:_0x2f4328;return R([..._0x3387f5[_0x257c00(0x39f)][_0x257c00(0x22e)](_0x6904bb=>_0x1dc47b[_0x257c00(0x3f5)](_0x29a932,_0x5326de,{'field':_0x6904bb})),_0x1dc47b[_0x257c00(0x4aa)](_0x29a932,_0x5326de,_0x58761a,_0x1335bb)]);}if(!_0x57f6b7||_0x2f4328[_0x257c00(0x2b9)]!==_0x257c00(0x312)&&_0x2f4328['type']!==_0x257c00(0x4cc))return _0x1dc47b[_0x257c00(0x4aa)](_0x29a932,_0x5326de,_0x2f4328,_0x1335bb);let _0x59fefc=ci(_0x57f6b7,_0x2f4328),_0x214884=_0x59fefc[_0x257c00(0x23c)]?{..._0x2f4328,'config':_0x59fefc[_0x257c00(0x427)],'fieldOrder':_0x59fefc[_0x257c00(0x47a)]??_0x2f4328[_0x257c00(0x47a)]}:_0x2f4328;return _0x2f4328[_0x257c00(0x2b9)]===_0x257c00(0x4cc)&&fi(_0x2f4328)&&(_0x214884=pi(_0x57f6b7,_0x214884,_0x59fefc[_0x257c00(0x39f)])),R([..._0x59fefc[_0x257c00(0x39f)][_0x257c00(0x22e)](_0x3e0143=>_0x1dc47b['createField'](_0x29a932,_0x5326de,{'field':_0x3e0143})),_0x1dc47b[_0x257c00(0x4aa)](_0x29a932,_0x5326de,_0x214884,_0x1335bb)]);}function ci(_0x565d9a,_0x3bf81d,_0x3f859b=!0x1){const _0x5e3197=_0x274f9f;var _0xa94945,_0x975091;let _0x123628=_0x565d9a[_0x5e3197(0x47a)][_0x5e3197(0x458)](_0x197044=>hi(_0x565d9a,_0x197044)),_0x5c6fe9=[],_0x3feef6={..._0x3bf81d[_0x5e3197(0x427)]??{}},_0x571097=typeof _0x3feef6['startDateFieldId']==_0x5e3197(0x3c6)&&hi(_0x565d9a,_0x3feef6[_0x5e3197(0x4fe)])?_0x3feef6[_0x5e3197(0x4fe)]:_0x123628[0x0],_0x34dc13=typeof _0x3feef6[_0x5e3197(0x25c)]=='string'&&hi(_0x565d9a,_0x3feef6[_0x5e3197(0x25c)])&&_0x3feef6['endDateFieldId']!==_0x571097?_0x3feef6[_0x5e3197(0x25c)]:_0x123628[_0x5e3197(0x271)](_0x280e81=>_0x280e81!==_0x571097);if(!_0x571097){let _0x23a077=gi(_0x565d9a,_0x5c6fe9,_0x3bf81d[_0x5e3197(0x2b9)]==='gantt'?_0x5e3197(0x238):_0x5e3197(0x44b));_0x5c6fe9[_0x5e3197(0x254)](_0x23a077),_0x571097=_0x23a077['id'];}if((_0x3bf81d['type']==='gantt'||_0x3f859b)&&!_0x34dc13){let _0x4690de=gi(_0x565d9a,_0x5c6fe9,_0x5e3197(0x3ee));_0x5c6fe9[_0x5e3197(0x254)](_0x4690de),_0x34dc13=_0x4690de['id'];}_0x3bf81d['type']==='calendar'&&!_0x34dc13&&delete _0x3feef6['endDateFieldId'],_0x3feef6['startDateFieldId']=_0x571097,_0x3bf81d[_0x5e3197(0x2b9)]===_0x5e3197(0x312)&&_0x34dc13&&(_0x3feef6['endDateFieldId']=_0x34dc13),_0x3bf81d[_0x5e3197(0x2b9)]===_0x5e3197(0x4cc)&&(_0x3feef6['endDateFieldId']=_0x34dc13??_0x571097);let _0x53a34f=ii(_0x3bf81d[_0x5e3197(0x47a)],_0x5c6fe9['map'](_0x598046=>_0x598046['id']));return{'changed':_0x5c6fe9['length']>0x0||_0x3feef6[_0x5e3197(0x4fe)]!==((_0xa94945=_0x3bf81d['config'])==null?void 0x0:_0xa94945[_0x5e3197(0x4fe)])||_0x3feef6[_0x5e3197(0x25c)]!==((_0x975091=_0x3bf81d[_0x5e3197(0x427)])==null?void 0x0:_0x975091[_0x5e3197(0x25c)])||!!(_0x53a34f&&!_0x12a306[_0x5e3197(0x203)](_0x53a34f,_0x3bf81d[_0x5e3197(0x47a)]??[])),'fields':_0x5c6fe9,'config':_0x3feef6,'fieldOrder':_0x53a34f};}function li(_0x49d518,_0x586337){const _0x33e701=_0x274f9f;var _0x3db084;let _0x583faf=[],_0x30c642={..._0x586337[_0x33e701(0x427)]??{}},_0x4587a0=typeof _0x30c642[_0x33e701(0x2e6)]=='string'&&ui(_0x49d518,_0x30c642[_0x33e701(0x2e6)])?_0x30c642[_0x33e701(0x2e6)]:_0x49d518[_0x33e701(0x47a)][_0x33e701(0x271)](_0x3c937d=>ui(_0x49d518,_0x3c937d));if(!_0x4587a0){let _0x22e128=di(_0x49d518,_0x583faf);_0x583faf['push'](_0x22e128),_0x4587a0=_0x22e128['id'];}_0x30c642[_0x33e701(0x2e6)]=_0x4587a0;let _0x36ee01=ii(_0x586337[_0x33e701(0x47a)],_0x583faf[_0x33e701(0x22e)](_0x5eb84f=>_0x5eb84f['id']));return{'changed':_0x583faf[_0x33e701(0x353)]>0x0||_0x30c642[_0x33e701(0x2e6)]!==((_0x3db084=_0x586337[_0x33e701(0x427)])==null?void 0x0:_0x3db084[_0x33e701(0x2e6)])||!!(_0x36ee01&&!_0x12a306[_0x33e701(0x203)](_0x36ee01,_0x586337[_0x33e701(0x47a)]??[])),'fields':_0x583faf,'config':_0x30c642,'fieldOrder':_0x36ee01};}function ui(_0x37e7f6,_0x2452c3){const _0x2d81f7=_0x274f9f;let _0x431536=_0x2452c3?_0x37e7f6[_0x2d81f7(0x39f)][_0x2452c3]:null;return _0x431536?[_0x11438e['SingleSelect'],_0x11438e[_0x2d81f7(0x3a5)],_0x11438e[_0x2d81f7(0x259)],_0x11438e[_0x2d81f7(0x33d)],_0x11438e['Group'],_0x11438e[_0x2d81f7(0x44d)]][_0x2d81f7(0x1d2)](_0x431536[_0x2d81f7(0x2b9)]):!0x1;}function di(_0x2bd5eb,_0x15adbd){const _0x5a7c13=_0x274f9f;return{'id':_0x5a7c13(0x3cf)+_0x3a2895(0x8),'name':ri(_0x2bd5eb,_0x5a7c13(0x28f),_0x15adbd),'type':_0x11438e[_0x5a7c13(0x282)],'config':_0x12a306['deepClone'](ai)};}function fi(_0x481f97){const _0x5bd07a=_0x274f9f;return Object[_0x5bd07a(0x311)](_0x481f97['config']??{})['length']===0x0&&Object[_0x5bd07a(0x311)](_0x481f97[_0x5bd07a(0x243)]??{})['length']===0x0;}function pi(_0x487c6d,_0x340b11,_0x16e2f0){const _0x51f437=_0x274f9f;let _0xd9ef7b={..._0x340b11[_0x51f437(0x427)]??{}},_0x329d6b=_0x16e2f0['map'](_0x183a9b=>_0x183a9b['id']),_0xf8e037=[..._0x487c6d[_0x51f437(0x47a)],..._0x329d6b],_0x4b0d9d=typeof _0xd9ef7b['titleFieldId']==_0x51f437(0x3c6)&&mi(_0x487c6d,_0x16e2f0,_0xd9ef7b[_0x51f437(0x3ef)])?_0xd9ef7b[_0x51f437(0x3ef)]:_0x487c6d['primaryFieldId'],_0x2615d4=typeof _0xd9ef7b[_0x51f437(0x4fe)]==_0x51f437(0x3c6)?_0xd9ef7b['startDateFieldId']:'',_0x4256c8=typeof _0xd9ef7b['endDateFieldId']==_0x51f437(0x3c6)?_0xd9ef7b[_0x51f437(0x25c)]:_0x2615d4,_0x4368bb=new Set([_0x4b0d9d,_0x2615d4,_0x4256c8][_0x51f437(0x458)](_0x149a3e=>_0x149a3e&&mi(_0x487c6d,_0x16e2f0,_0x149a3e))),_0x3f7053=Object[_0x51f437(0x372)](_0xf8e037[_0x51f437(0x25e)](_0x1444dc=>_0x4368bb[_0x51f437(0x51e)](_0x1444dc)||!mi(_0x487c6d,_0x16e2f0,_0x1444dc)?[]:[[_0x1444dc,{'hidden':!0x0}]]));return{..._0x340b11,'config':{..._0xd9ef7b,'titleFieldId':_0x4b0d9d},'fieldSettings':_0x3f7053};}function mi(_0x1e6d91,_0x22fa95,_0x1fcbca){const _0x2d6b2b=_0x274f9f;return!!(_0x1e6d91[_0x2d6b2b(0x39f)][_0x1fcbca]??_0x22fa95[_0x2d6b2b(0x271)](_0x470206=>_0x470206['id']===_0x1fcbca))&&!0x0;}function hi(_0x337324,_0x511cab){const _0x48eaa5=_0x274f9f;let _0x510c03=_0x511cab?_0x337324[_0x48eaa5(0x39f)][_0x511cab]:null;return!!_0x510c03&&_0x510c03[_0x48eaa5(0x2b9)]===_0x11438e[_0x48eaa5(0x44b)]&&_0x510c03[_0x48eaa5(0x3ba)]!==!0x0&&_0x510c03[_0x48eaa5(0x3a9)]!==!0x0;}function gi(_0x40d159,_0x287918,_0x4b9f7b){const _0x5204dc=_0x274f9f;let _0x22de01=new Set([...Object[_0x5204dc(0x311)](_0x40d159['fields']),..._0x287918[_0x5204dc(0x22e)](_0x8896ea=>_0x8896ea['id'])]),_0x36b14d=_0x5204dc(0x3cf)+_0x3a2895(0x8);for(;_0x22de01['has'](_0x36b14d);)_0x36b14d='fld-'+_0x3a2895(0x8);return{'id':_0x36b14d,'name':ri(_0x40d159,_0x4b9f7b,_0x287918),'type':_0x11438e['Date'],'config':{...oi}};}const _i={'id':_0x274f9f(0x361),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x9004f3,_0x3b731d)=>{const _0x46bc1c=_0x274f9f;if(!_0x3b731d)return!0x1;let _0x122ef9=_0x9004f3['get'](_0x310540),{unitId:_0x4aa4de,tableId:_0x273c82,view:_0x1dbbd4,index:_0x3d1601}=_0x3b731d,_0x23dd84=_0x122ef9[_0x46bc1c(0x462)](_0x4aa4de,_0x993548[_0x46bc1c(0x3f1)]);if(!_0x23dd84||!Q(_0x23dd84,_0x273c82)||_0x23dd84[_0x46bc1c(0x2d0)]()['tables'][_0x273c82][_0x46bc1c(0x22d)][_0x1dbbd4['id']])return!0x1;let _0x1a61ba=_0x9004f3['get'](_0x232cd6),_0x581c19=_0x9004f3['get'](_0x56cd6a),_0xeda0f5=_0x23dd84['getSnapshot'](),_0x464f45=si(_0xeda0f5,_0x273c82,_0x1dbbd4,_0x3d1601),_0x378504=new z()[_0x46bc1c(0x2c6)](_0xeda0f5,_0x464f45),_0x409062={'unitId':_0x4aa4de,'op':_0x464f45},_0x5e31e9={'unitId':_0x4aa4de,'op':_0x378504};return _0x1a61ba[_0x46bc1c(0x421)](Z['id'],_0x409062)?(_0x122ef9[_0x46bc1c(0x1df)](_0x4aa4de),_0x581c19[_0x46bc1c(0x3d4)]({'unitID':_0x4aa4de,'undoMutations':[{'id':Z['id'],'params':_0x5e31e9}],'redoMutations':[{'id':Z['id'],'params':_0x409062}]}),!0x0):!0x1;}},vi={'id':_0x274f9f(0x2f4),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0xdd3f5b,_0x22cb7b){const _0x103550=_0x274f9f;if(!_0x22cb7b)return!0x1;let _0x1567ee=_0xdd3f5b[_0x103550(0x23e)](_0x310540),{unitId:_0x375255,tableId:_0x204ec5,fieldId:_0x41461f}=_0x22cb7b,_0x5c5aa9=_0x1567ee['getUnit'](_0x375255,_0x993548[_0x103550(0x3f1)]);if(!_0x5c5aa9)return!0x1;let _0x4613d9=_0x5c5aa9[_0x103550(0x2d0)](),_0x38c91a=_0x4613d9['tables'][_0x204ec5];if(!Q(_0x5c5aa9,_0x204ec5,{'fieldIds':[_0x41461f]})||_0x38c91a[_0x103550(0x2db)]===_0x41461f||_0x41461f===_0x525439)return!0x1;let _0x568619=_0xdd3f5b[_0x103550(0x23e)](_0x232cd6),_0x4a95cc=_0xdd3f5b[_0x103550(0x23e)](_0x56cd6a),_0x15d393=new W()[_0x103550(0x25b)](_0x4613d9,_0x204ec5,_0x41461f),_0xf20893=new z()[_0x103550(0x2c6)](_0x4613d9,_0x15d393),_0x5e8cc8={'unitId':_0x375255,'op':_0x15d393},_0x352c66={'unitId':_0x375255,'op':_0xf20893};return _0x568619['syncExecuteCommand'](Z['id'],_0x5e8cc8)?(_0x1567ee[_0x103550(0x1df)](_0x375255),_0x4a95cc[_0x103550(0x3d4)]({'unitID':_0x375255,'undoMutations':[{'id':Z['id'],'params':_0x352c66}],'redoMutations':[{'id':Z['id'],'params':_0x5e8cc8}]}),!0x0):!0x1;}},yi={'id':_0x274f9f(0x413),'type':_0x154d7f['COMMAND'],'handler':(_0x18aa3f,_0xba4c9a)=>{const _0x163fd2=_0x274f9f;if(!_0xba4c9a)return!0x1;let _0xc4759=_0x18aa3f['get'](_0x310540),{unitId:_0x3dff3e,tableId:_0x1ed245,recordId:_0xcf0aa7}=_0xba4c9a,_0x41744d=_0xc4759[_0x163fd2(0x462)](_0x3dff3e,_0x993548[_0x163fd2(0x3f1)]);if(!_0x41744d||!Q(_0x41744d,_0x1ed245,{'recordIds':[_0xcf0aa7]}))return!0x1;let _0x2b3ac5=_0x18aa3f[_0x163fd2(0x23e)](_0x232cd6),_0xd252d7=_0x18aa3f[_0x163fd2(0x23e)](_0x56cd6a),_0x3a826b=_0x41744d[_0x163fd2(0x2d0)](),_0x5a3160=ze(_0x3a826b['tables'][_0x1ed245],[_0xcf0aa7]),_0x33d085=new W()[_0x163fd2(0x497)](_0x3a826b,_0x1ed245,_0xcf0aa7),_0x3e2136=new z()[_0x163fd2(0x2c6)](_0x3a826b,_0x33d085),_0xae1ec={'unitId':_0x3dff3e,'op':_0x33d085,'hierarchyChanges':_0x5a3160,'source':_0xba4c9a['source']??'ui'},_0x39b257={..._0xae1ec,'source':_0x163fd2(0x37f)},_0xe5f986={'unitId':_0x3dff3e,'op':_0x3e2136,'hierarchyChanges':_0x5a3160['map'](_0x1e0426=>({..._0x1e0426,'oldParentRecordId':_0x1e0426[_0x163fd2(0x4d9)],'parentRecordId':_0x1e0426[_0x163fd2(0x31b)]})),'source':'undo'};return _0x2b3ac5[_0x163fd2(0x421)](Z['id'],_0xae1ec)?(_0xc4759[_0x163fd2(0x1df)](_0x3dff3e),_0xd252d7['pushUndoRedo']({'unitID':_0x3dff3e,'undoMutations':[{'id':Z['id'],'params':_0xe5f986}],'redoMutations':[{'id':Z['id'],'params':_0x39b257}]}),!0x0):!0x1;}},bi={'id':_0x274f9f(0x252),'type':_0x154d7f['COMMAND'],'handler':(_0x14ecca,_0x3dd803)=>{const _0x5d1d4c=_0x274f9f;if(!_0x3dd803)return!0x1;let _0x36f6de=_0x14ecca[_0x5d1d4c(0x23e)](_0x310540),{unitId:_0x1442d1,tableId:_0x5d3f92}=_0x3dd803,_0x561409=_0x36f6de['getUnit'](_0x1442d1,_0x993548[_0x5d1d4c(0x3f1)]);if(!_0x561409||!Q(_0x561409,_0x5d3f92))return!0x1;let _0x2ef5a7=_0x14ecca['get'](_0x232cd6),_0x613c8f=_0x14ecca[_0x5d1d4c(0x23e)](_0x56cd6a),_0x5526e7=_0x561409['getSnapshot'](),_0x1ff5d6=ke(_0x5526e7,_0x5d3f92);if(_0x1ff5d6[_0x5d1d4c(0x353)]>0x0)return console[_0x5d1d4c(0x36a)](_0x5d1d4c(0x4c7)+_0x5d3f92+_0x5d1d4c(0x1e4)+_0x1ff5d6[_0x5d1d4c(0x22e)](_0x47ad05=>_0x47ad05[_0x5d1d4c(0x37e)]+'.'+_0x47ad05[_0x5d1d4c(0x419)])[_0x5d1d4c(0x48b)](',\x20')+'.'),!0x1;let _0x22e7d4=new W()['deleteTable'](_0x5526e7,_0x5d3f92),_0xf767aa=new z()['invertOp'](_0x5526e7,_0x22e7d4),_0xc8cb6b={'unitId':_0x1442d1,'op':_0x22e7d4},_0x5a6328={'unitId':_0x1442d1,'op':_0xf767aa};return _0x2ef5a7[_0x5d1d4c(0x421)](Z['id'],_0xc8cb6b)?(_0x36f6de[_0x5d1d4c(0x1df)](_0x1442d1),_0x613c8f[_0x5d1d4c(0x3d4)]({'unitID':_0x1442d1,'undoMutations':[{'id':Z['id'],'params':_0x5a6328}],'redoMutations':[{'id':Z['id'],'params':_0xc8cb6b}]}),!0x0):!0x1;}},xi={'id':_0x274f9f(0x36f),'type':_0x154d7f['COMMAND'],'handler':(_0xd109c5,_0x409a5b)=>{const _0x7ebc2=_0x274f9f;if(!_0x409a5b)return!0x1;let _0x211107=_0xd109c5[_0x7ebc2(0x23e)](_0x310540),{unitId:_0xc5cc23,tableId:_0x1203dc,viewId:_0x5674ca}=_0x409a5b,_0x513df4=_0x211107['getUnit'](_0xc5cc23,_0x993548[_0x7ebc2(0x3f1)]);if(!_0x513df4||!Q(_0x513df4,_0x1203dc,{'viewIds':[_0x5674ca]}))return!0x1;let _0x3c231a=_0xd109c5[_0x7ebc2(0x23e)](_0x232cd6),_0x415370=_0xd109c5[_0x7ebc2(0x23e)](_0x56cd6a),_0x3b376d=_0x513df4[_0x7ebc2(0x2d0)](),_0x2257d3=new W()[_0x7ebc2(0x35e)](_0x3b376d,_0x1203dc,_0x5674ca),_0x42291b=new z()[_0x7ebc2(0x2c6)](_0x3b376d,_0x2257d3),_0x410cce={'unitId':_0xc5cc23,'op':_0x2257d3},_0x48f274={'unitId':_0xc5cc23,'op':_0x42291b};return _0x3c231a[_0x7ebc2(0x421)](Z['id'],_0x410cce)?(_0x211107['focusUnit'](_0xc5cc23),_0x415370[_0x7ebc2(0x3d4)]({'unitID':_0xc5cc23,'undoMutations':[{'id':Z['id'],'params':_0x48f274}],'redoMutations':[{'id':Z['id'],'params':_0x410cce}]}),!0x0):!0x1;}},Si={'id':_0x274f9f(0x3be),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x8d736a,_0x52950f)=>{const _0x29be28=_0x274f9f;if(!_0x52950f)return!0x1;let _0x2e31d6=_0x8d736a[_0x29be28(0x23e)](_0x310540),{unitId:_0x26acc6,tableId:_0x313e64,sourceFieldId:_0x115fb8,field:_0x449d0f,index:_0x3d0d4e,viewIndexes:_0x357bac}=_0x52950f,_0x52cd26=_0x2e31d6['getUnit'](_0x26acc6,_0x993548[_0x29be28(0x3f1)]);if(!_0x52cd26||!Q(_0x52cd26,_0x313e64,{'fieldIds':[_0x115fb8]})||_0x115fb8===_0x525439||_0x52cd26[_0x29be28(0x2d0)]()['tables'][_0x313e64]['fields'][_0x449d0f['id']]||_0x3d0d4e===0x0||!Wr(_0x52cd26,_0x313e64,_0x449d0f))return!0x1;let _0x52b1c4=_0x8d736a['get'](_0x232cd6),_0x4fe1da=_0x8d736a[_0x29be28(0x23e)](_0x56cd6a),_0x1ef599=_0x52cd26[_0x29be28(0x2d0)](),_0x41be59=new W()[_0x29be28(0x3c0)](_0x1ef599,_0x313e64,_0x115fb8,{'field':_0x449d0f,'index':_0x3d0d4e,'viewIndexes':_0x357bac}),_0x1f8436=new z()['invertOp'](_0x1ef599,_0x41be59),_0xffd1f3={'unitId':_0x26acc6,'op':_0x41be59},_0x1f43bd={'unitId':_0x26acc6,'op':_0x1f8436};return _0x52b1c4[_0x29be28(0x421)](Z['id'],_0xffd1f3)?(_0x2e31d6['focusUnit'](_0x26acc6),_0x4fe1da[_0x29be28(0x3d4)]({'unitID':_0x26acc6,'undoMutations':[{'id':Z['id'],'params':_0x1f43bd}],'redoMutations':[{'id':Z['id'],'params':_0xffd1f3}]}),!0x0):!0x1;}},Ci={'id':'base.command.duplicate-base-record','type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x255244,_0x4b2cae)=>{const _0x3d1920=_0x274f9f;if(!_0x4b2cae)return!0x1;let _0x299ba9=_0x255244[_0x3d1920(0x23e)](_0x310540),{unitId:_0x3fc428,tableId:_0x4e5bc6,sourceRecordId:_0x8da5ce,record:_0x394698}=_0x4b2cae,_0x4b5312=_0x299ba9['getUnit'](_0x3fc428,_0x993548[_0x3d1920(0x3f1)]);if(!_0x4b5312||!Q(_0x4b5312,_0x4e5bc6,{'recordIds':[_0x8da5ce]})||!Kr(_0x4b5312,_0x4e5bc6,_0x394698))return!0x1;let _0x1804dc=_0x255244['get'](_0x232cd6),_0x585107=_0x255244['get'](_0x56cd6a),_0x1a504f=_0x4b5312[_0x3d1920(0x2d0)](),_0x15226c=qr(_0x394698),_0x30d624=Le(_0x1a504f['tables'][_0x4e5bc6],[_0x15226c]),_0x187906=new W()[_0x3d1920(0x31d)](_0x1a504f,_0x4e5bc6,_0x8da5ce,_0x15226c),_0x39543c=new z()[_0x3d1920(0x2c6)](_0x1a504f,_0x187906),_0x3924f7={'unitId':_0x3fc428,'op':_0x187906,'hierarchyChanges':_0x30d624[_0x3d1920(0x353)]?_0x30d624:void 0x0,'source':_0x30d624['length']?_0x4b2cae[_0x3d1920(0x272)]??'ui':void 0x0},_0x5e0ce9={..._0x3924f7,'source':_0x30d624[_0x3d1920(0x353)]?_0x3d1920(0x37f):void 0x0},_0x5c20c1={'unitId':_0x3fc428,'op':_0x39543c,'hierarchyChanges':_0x30d624[_0x3d1920(0x353)]?_0x30d624[_0x3d1920(0x22e)](_0x527308=>({..._0x527308,'oldParentRecordId':_0x527308['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x30d624[_0x3d1920(0x353)]?_0x3d1920(0x3d6):void 0x0};return _0x1804dc[_0x3d1920(0x421)](Z['id'],_0x3924f7)?(_0x299ba9['focusUnit'](_0x3fc428),_0x585107[_0x3d1920(0x3d4)]({'unitID':_0x3fc428,'undoMutations':[{'id':Z['id'],'params':_0x5c20c1}],'redoMutations':[{'id':Z['id'],'params':_0x5e0ce9}]}),!0x0):!0x1;}},wi={'id':_0x274f9f(0x260),'type':_0x154d7f['COMMAND'],'handler'(_0x39859d,_0x95cbca){const _0x1c40d1=_0x274f9f;if(!_0x95cbca)return!0x1;let _0x1d60e9=_0x39859d[_0x1c40d1(0x23e)](_0x310540),{unitId:_0x3ef114,tableId:_0x49ac07,viewId:_0x1293c4,ensureEndDateField:_0x18c9e9}=_0x95cbca,_0x11b810=_0x1d60e9['getUnit'](_0x3ef114,_0x993548[_0x1c40d1(0x3f1)]);if(!_0x11b810||!Q(_0x11b810,_0x49ac07,{'viewIds':[_0x1293c4]}))return!0x1;let _0x2ba041=_0x11b810[_0x1c40d1(0x2d0)](),_0x3a3672=_0x2ba041[_0x1c40d1(0x529)][_0x49ac07],_0x534aed=_0x3a3672==null?void 0x0:_0x3a3672[_0x1c40d1(0x22d)][_0x1293c4];if(!_0x3a3672||!_0x534aed||_0x534aed[_0x1c40d1(0x2b9)]!==_0x1c40d1(0x312)&&_0x534aed[_0x1c40d1(0x2b9)]!==_0x1c40d1(0x4cc))return!0x1;let _0x6ee5b=ci(_0x3a3672,_0x534aed,_0x18c9e9===!0x0);if(!_0x6ee5b['changed'])return!0x1;let _0x4aed17=_0x39859d[_0x1c40d1(0x23e)](_0x232cd6),_0x47dac1=_0x39859d[_0x1c40d1(0x23e)](_0x56cd6a),_0x261792=new W(),_0x4844fc=[..._0x6ee5b['fields']['map'](_0x142f08=>_0x261792[_0x1c40d1(0x3f5)](_0x2ba041,_0x95cbca[_0x1c40d1(0x37e)],{'field':_0x142f08})),Ti([...Ei(_0x95cbca[_0x1c40d1(0x37e)],_0x95cbca[_0x1c40d1(0x490)]),_0x1c40d1(0x427)],_0x534aed[_0x1c40d1(0x427)],_0x6ee5b['config'])];_0x6ee5b[_0x1c40d1(0x47a)]&&_0x4844fc['push'](Ti([...Ei(_0x95cbca[_0x1c40d1(0x37e)],_0x95cbca[_0x1c40d1(0x490)]),_0x1c40d1(0x47a)],_0x534aed[_0x1c40d1(0x47a)],_0x6ee5b['fieldOrder']));let _0x448913=R(_0x4844fc),_0x1dbc9a=new z()[_0x1c40d1(0x2c6)](_0x2ba041,_0x448913),_0x59b0e0={'unitId':_0x3ef114,'op':_0x448913},_0x355196={'unitId':_0x3ef114,'op':_0x1dbc9a};return _0x4aed17[_0x1c40d1(0x421)](Z['id'],_0x59b0e0)?(_0x1d60e9[_0x1c40d1(0x1df)](_0x3ef114),_0x47dac1['pushUndoRedo']({'unitID':_0x3ef114,'undoMutations':[{'id':Z['id'],'params':_0x355196}],'redoMutations':[{'id':Z['id'],'params':_0x59b0e0}]}),!0x0):!0x1;}};function Ti(_0x4731d1,_0x5c7ff8,_0x201e1a){const _0x5bc5b3=_0x274f9f;return _0x5c7ff8===void 0x0?_0x356391[_0x5bc5b3(0x1ff)](_0x4731d1,_0x201e1a):_0x356391[_0x5bc5b3(0x2e2)](_0x4731d1,_0x5c7ff8,_0x201e1a);}function Ei(_0xc4ff98,_0x393b8e){return['tables',_0xc4ff98,'views',_0x393b8e];}const Di={'id':_0x274f9f(0x426),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x68bbde,_0xb7a4cd)=>{const _0x341ef9=_0x274f9f;if(!_0xb7a4cd)return!0x1;let _0x2ffbe6=_0x68bbde[_0x341ef9(0x23e)](_0x310540),{unitId:_0x330e85,tableId:_0x3e86b9,fieldId:_0x3add92,target:_0x11eebe}=_0xb7a4cd,_0x47b107=_0x2ffbe6[_0x341ef9(0x462)](_0x330e85,_0x993548[_0x341ef9(0x3f1)]),_0x401054=_0x11eebe['beforeFieldId']??_0x11eebe['afterFieldId'];if(!_0x47b107||!!_0x11eebe['beforeFieldId']==!!_0x11eebe[_0x341ef9(0x37c)]||!_0x401054||_0x401054===_0x3add92||_0x3add92===_0x525439||_0x11eebe['beforeFieldId']===_0x525439||!Q(_0x47b107,_0x3e86b9,{'fieldIds':[_0x3add92,_0x401054]}))return!0x1;let _0x2f8d3b=_0x68bbde['get'](_0x232cd6),_0x4f28e3=_0x68bbde[_0x341ef9(0x23e)](_0x56cd6a),_0x58350c=_0x47b107[_0x341ef9(0x2d0)](),_0x3c5281=new W()[_0x341ef9(0x332)](_0x58350c,_0x3e86b9,_0x3add92,_0x11eebe),_0x52c874=new z()[_0x341ef9(0x2c6)](_0x58350c,_0x3c5281),_0x425d3a={'unitId':_0x330e85,'op':_0x3c5281},_0xac2544={'unitId':_0x330e85,'op':_0x52c874};return _0x2f8d3b[_0x341ef9(0x421)](Z['id'],_0x425d3a)?(_0x2ffbe6[_0x341ef9(0x1df)](_0x330e85),_0x4f28e3[_0x341ef9(0x3d4)]({'unitID':_0x330e85,'undoMutations':[{'id':Z['id'],'params':_0xac2544}],'redoMutations':[{'id':Z['id'],'params':_0x425d3a}]}),!0x0):!0x1;}},Oi={'id':_0x274f9f(0x3f6),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x418ba9,_0x12a37e)=>{const _0x2c3ac5=_0x274f9f;var _0x54b52b;if(!_0x12a37e)return!0x1;let {unitId:_0x50f9de,tableId:_0x22194b,recordId:_0xba25a4,parentRecordId:_0x1bbc5a,orderKey:_0x441065}=_0x12a37e,_0x3eb08f=_0x418ba9[_0x2c3ac5(0x23e)](_0x310540),_0x415047=_0x3eb08f[_0x2c3ac5(0x462)](_0x50f9de,_0x993548['UNIVER_BASE']);if(!_0x415047||!Q(_0x415047,_0x22194b,{'recordIds':[_0xba25a4,..._0x1bbc5a?[_0x1bbc5a]:[]]}))throw new j(_0x2c3ac5(0x2ac));let _0x1e974e=_0x415047[_0x2c3ac5(0x2d0)](),_0xcbe836=_0x1e974e[_0x2c3ac5(0x529)][_0x22194b],_0x152808=N(_0xcbe836),_0x37cab3=_0x152808??_0x12a37e['fieldId']??P(_0xcbe836);if(_0x152808&&_0x12a37e[_0x2c3ac5(0x419)]&&_0x12a37e[_0x2c3ac5(0x419)]!==_0x152808||_0xcbe836['fields'][_0x37cab3]&&!M(_0xcbe836,_0x37cab3))throw new j(_0x2c3ac5(0x432));let _0x1248ec=F(_0xcbe836,_0x37cab3),_0x33c5f3=He(_0x1248ec,_0xba25a4,_0x1bbc5a);if(!_0x33c5f3[_0x2c3ac5(0x352)])throw new j(_0x33c5f3[_0x2c3ac5(0x257)]===_0x29e4ba['SelfParent']?_0x2c3ac5(0x1e5):_0x33c5f3['reason']===_0x29e4ba['Cycle']?'cycle':_0x2c3ac5(0x250));let _0x3f24c2=_0x1248ec['parentByRecordId']['get'](_0xba25a4)??null,_0x3d433b=_0xcbe836[_0x2c3ac5(0x3c4)][_0xba25a4][_0x2c3ac5(0x280)];if(_0x3f24c2===_0x1bbc5a&&(_0x441065===void 0x0||_0x441065===_0x3d433b))return!0x0;let _0x58cb2c=_0x3f24c2!==_0x1bbc5a,_0x3bda20=_0x441065!==void 0x0&&_0x441065!==_0x3d433b,_0x2c70be=new W(),_0x484576=[],_0x5db41f=_0xcbe836[_0x2c3ac5(0x39f)][_0x37cab3],_0x5f42e3=_0x58cb2c&&(!_0x5db41f||((_0x54b52b=A(_0x5db41f))==null?void 0x0:_0x54b52b[_0x2c3ac5(0x253)])!==_0x2af9b7[_0x2c3ac5(0x38c)])?_0x5db41f?_0x2c70be['updateField'](_0x1e974e,_0x22194b,_0x37cab3,{'config':{..._0x5db41f[_0x2c3ac5(0x427)],'relationRole':_0x2af9b7[_0x2c3ac5(0x38c)]}}):_0x418ba9[_0x2c3ac5(0x23e)](J)[_0x2c3ac5(0x504)](_0x415047,_0x22194b,Pe(_0xcbe836,_0x37cab3,_0x12a37e[_0x2c3ac5(0x2e3)]),_0xcbe836[_0x2c3ac5(0x47a)][_0x2c3ac5(0x353)]):null;_0x5f42e3&&_0x484576['push'](_0x5f42e3),_0x58cb2c&&_0x484576['push'](_0x2c70be[_0x2c3ac5(0x329)](_0x1e974e,_0x22194b,_0xba25a4,_0x37cab3,_0x1bbc5a?Te([_0x1bbc5a]):'')),_0x3bda20&&_0x484576[_0x2c3ac5(0x254)](_0x2c70be['updateRecordOrder'](_0x1e974e,_0x22194b,_0xba25a4,_0x441065));let _0x3fe668=R(_0x484576),_0x12f173={'tableId':_0x22194b,'fieldId':_0x37cab3,'recordId':_0xba25a4,'oldParentRecordId':_0x3f24c2,'parentRecordId':_0x1bbc5a},_0x2b2b2a={'unitId':_0x50f9de,'op':_0x3fe668,'trigger':Oi['id'],'hierarchyChanges':[_0x12f173],'source':_0x12a37e[_0x2c3ac5(0x272)]??'ui'},_0x36193f={..._0x2b2b2a,'source':_0x2c3ac5(0x37f)};if(!_0x418ba9[_0x2c3ac5(0x23e)](_0x232cd6)[_0x2c3ac5(0x421)](Z['id'],_0x2b2b2a))return!0x1;let _0x5a5672=_0x415047[_0x2c3ac5(0x2d0)](),_0x5c8b1c=[];_0x58cb2c&&_0x5c8b1c['push'](ki(_0x5a5672,_0x1e974e,_0x22194b,_0xba25a4,_0x37cab3)),_0x3bda20&&_0x5c8b1c[_0x2c3ac5(0x254)](Ai(_0x5a5672,_0x1e974e,_0x22194b,_0xba25a4)),_0x5f42e3&&_0x5c8b1c[_0x2c3ac5(0x254)](new z()[_0x2c3ac5(0x2c6)](_0x1e974e,_0x5f42e3));let _0x382443={'unitId':_0x50f9de,'op':R(_0x5c8b1c),'trigger':Oi['id'],'hierarchyChanges':[{..._0x12f173,'oldParentRecordId':_0x1bbc5a,'parentRecordId':_0x3f24c2}],'source':'undo'};return _0x3eb08f[_0x2c3ac5(0x1df)](_0x50f9de),_0x418ba9['get'](_0x56cd6a)[_0x2c3ac5(0x3d4)]({'unitID':_0x50f9de,'undoMutations':[{'id':Z['id'],'params':_0x382443}],'redoMutations':[{'id':Z['id'],'params':_0x36193f}]}),!0x0;}};function ki(_0x2f4073,_0x1dc093,_0x447be8,_0x7824d2,_0x3e3071){const _0x5bdf1b=_0x274f9f;var _0x20f72a,_0x3204f3,_0x332717,_0x134002,_0x59c493,_0x260760,_0x2015e6,_0x2936a2;let _0x49f9cd=_0x2f4073[_0x5bdf1b(0x529)][_0x447be8],_0x3fbae5=_0x1dc093[_0x5bdf1b(0x529)][_0x447be8],_0x326bdd=(_0x20f72a=_0x49f9cd[_0x5bdf1b(0x269)])==null?void 0x0:_0x20f72a[_0x7824d2],_0x4ffcd3=(_0x3204f3=_0x49f9cd[_0x5bdf1b(0x4b9)])==null?void 0x0:_0x3204f3[_0x3e3071],_0x28bfb4=(_0x332717=_0x3fbae5['rowIndex'])==null?void 0x0:_0x332717[_0x7824d2],_0x59164f=(_0x134002=_0x3fbae5[_0x5bdf1b(0x4b9)])==null?void 0x0:_0x134002[_0x3e3071],_0x59e01d=_0x326bdd==null||_0x4ffcd3==null||(_0x59c493=_0x49f9cd[_0x5bdf1b(0x434)])==null||(_0x59c493=_0x59c493[_0x326bdd])==null?void 0x0:_0x59c493[_0x4ffcd3],_0x2084ac=_0x28bfb4==null||_0x59164f==null||(_0x260760=_0x3fbae5[_0x5bdf1b(0x434)])==null||(_0x260760=_0x260760[_0x28bfb4])==null?void 0x0:_0x260760[_0x59164f],_0x38d487=(_0x2015e6=_0x49f9cd[_0x5bdf1b(0x3c4)][_0x7824d2])==null?void 0x0:_0x2015e6[_0x5bdf1b(0x33c)][_0x3e3071],_0x42fbb5=(_0x2936a2=_0x3fbae5['records'][_0x7824d2])==null?void 0x0:_0x2936a2[_0x5bdf1b(0x33c)][_0x3e3071],_0x408bea=[],_0x2091fb=ji(_0x326bdd==null||_0x4ffcd3==null?null:U[_0x5bdf1b(0x434)](_0x447be8,_0x326bdd,_0x4ffcd3),_0x59e01d,_0x2084ac);_0x2091fb&&_0x408bea[_0x5bdf1b(0x254)](_0x2091fb);let _0x4bbd71=ji(U[_0x5bdf1b(0x3aa)](_0x447be8,_0x7824d2,_0x3e3071),_0x38d487,_0x42fbb5);return _0x4bbd71&&_0x408bea[_0x5bdf1b(0x254)](_0x4bbd71),R(_0x408bea);}function Ai(_0x5bd194,_0x4c44fb,_0x392ae3,_0x32449a){const _0x16dcd6=_0x274f9f;var _0x1ca474,_0x1ae73e;let _0x16f111=_0x5bd194['tables'][_0x392ae3],_0x537e30=_0x4c44fb['tables'][_0x392ae3];return R([ji([...U['record'](_0x392ae3,_0x32449a),_0x16dcd6(0x280)],(_0x1ca474=_0x16f111[_0x16dcd6(0x3c4)][_0x32449a])==null?void 0x0:_0x1ca474[_0x16dcd6(0x280)],(_0x1ae73e=_0x537e30[_0x16dcd6(0x3c4)][_0x32449a])==null?void 0x0:_0x1ae73e[_0x16dcd6(0x280)]),ji([...U[_0x16dcd6(0x258)](_0x392ae3),_0x16dcd6(0x4fd)],_0x16f111[_0x16dcd6(0x4fd)],_0x537e30[_0x16dcd6(0x4fd)])][_0x16dcd6(0x458)](_0x3e2a54=>!!_0x3e2a54));}function ji(_0x1aa511,_0x5155f8,_0x20e0ac){const _0xfd3d88=_0x274f9f;if(!_0x1aa511||_0x5155f8===void 0x0&&_0x20e0ac===void 0x0)return null;let _0x3aab15=_0x8f86bf[_0xfd3d88(0x492)]();return _0x20e0ac===void 0x0?_0x3aab15['removeOp'](_0x1aa511,_0x5155f8):_0x5155f8===void 0x0?_0x3aab15[_0xfd3d88(0x1ff)](_0x1aa511,_0x20e0ac):_0x3aab15[_0xfd3d88(0x2e2)](_0x1aa511,_0x5155f8,_0x20e0ac);}const Mi={'id':_0x274f9f(0x1d6),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x494086,_0x3cbae8)=>{const _0x750ca5=_0x274f9f;if(!_0x3cbae8)return!0x1;let _0x2ca72e=_0x494086[_0x750ca5(0x23e)](_0x310540),{unitId:_0x2f14c2,tableId:_0x249146,viewId:_0x372854,target:_0x1f4257}=_0x3cbae8,_0x3a390e=_0x2ca72e[_0x750ca5(0x462)](_0x2f14c2,_0x993548[_0x750ca5(0x3f1)]),_0x137cb9=_0x1f4257[_0x750ca5(0x2bc)]??_0x1f4257['afterViewId'];if(!_0x3a390e||!_0x137cb9||_0x137cb9===_0x372854||!Q(_0x3a390e,_0x249146,{'viewIds':[_0x372854,_0x137cb9]}))return!0x1;let _0x22bb03=_0x494086['get'](_0x232cd6),_0x231468=_0x494086[_0x750ca5(0x23e)](_0x56cd6a),_0x18cb01=_0x3a390e[_0x750ca5(0x2d0)](),_0x49ca38=new W()[_0x750ca5(0x26a)](_0x18cb01,_0x249146,_0x372854,_0x1f4257),_0x360063=new z()['invertOp'](_0x18cb01,_0x49ca38),_0x2b462d={'unitId':_0x2f14c2,'op':_0x49ca38},_0x2a0490={'unitId':_0x2f14c2,'op':_0x360063};return _0x22bb03[_0x750ca5(0x421)](Z['id'],_0x2b462d)?(_0x2ca72e['focusUnit'](_0x2f14c2),_0x231468[_0x750ca5(0x3d4)]({'unitID':_0x2f14c2,'undoMutations':[{'id':Z['id'],'params':_0x2a0490}],'redoMutations':[{'id':Z['id'],'params':_0x2b462d}]}),!0x0):!0x1;}},Ni={'id':_0x274f9f(0x3e7),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x473e12,_0x1a1f1d)=>{const _0x471718=_0x274f9f;if(!_0x1a1f1d)return!0x1;let _0x218d44=_0x473e12[_0x471718(0x23e)](_0x310540),{unitId:_0x12783e,tableId:_0x1c6b12,name:_0x270ccd}=_0x1a1f1d,_0x4399ed=_0x218d44[_0x471718(0x462)](_0x12783e,_0x993548[_0x471718(0x3f1)]);if(!_0x4399ed||!Q(_0x4399ed,_0x1c6b12))return!0x1;let _0x5b37e1=_0x473e12[_0x471718(0x23e)](_0x232cd6),_0x3ea901=_0x473e12['get'](_0x56cd6a),_0x49603f=_0x4399ed['getSnapshot'](),_0xa899e9=new W()[_0x471718(0x3c7)](_0x49603f,_0x1c6b12,_0x270ccd),_0x4ca5ba=new z()[_0x471718(0x2c6)](_0x49603f,_0xa899e9),_0x28f7d6={'unitId':_0x12783e,'op':_0xa899e9},_0x92d877={'unitId':_0x12783e,'op':_0x4ca5ba};return _0x5b37e1[_0x471718(0x421)](Z['id'],_0x28f7d6)?(_0x218d44[_0x471718(0x1df)](_0x12783e),_0x3ea901[_0x471718(0x3d4)]({'unitID':_0x12783e,'undoMutations':[{'id':Z['id'],'params':_0x92d877}],'redoMutations':[{'id':Z['id'],'params':_0x28f7d6}]}),!0x0):!0x1;}},Pi={'id':_0x274f9f(0x2aa),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x49d0ca,_0x46e84d)=>{const _0x595348=_0x274f9f;if(!_0x46e84d)return!0x1;let _0x356ff0=_0x49d0ca[_0x595348(0x23e)](_0x310540),{unitId:_0x9dd5ae,tableId:_0x4f6a03,viewId:_0x4e67a7,name:_0x3b1980}=_0x46e84d,_0x463ba5=_0x356ff0[_0x595348(0x462)](_0x9dd5ae,_0x993548[_0x595348(0x3f1)]);if(!_0x463ba5||!Q(_0x463ba5,_0x4f6a03,{'viewIds':[_0x4e67a7]}))return!0x1;let _0x1dbecc=_0x49d0ca[_0x595348(0x23e)](_0x232cd6),_0x5aeb57=_0x49d0ca['get'](_0x56cd6a),_0x37c439=_0x463ba5['getSnapshot'](),_0x4c9ae8=new W()[_0x595348(0x3ed)](_0x37c439,_0x4f6a03,_0x4e67a7,_0x3b1980),_0x4e85cf=new z()[_0x595348(0x2c6)](_0x37c439,_0x4c9ae8),_0x247721={'unitId':_0x9dd5ae,'op':_0x4c9ae8},_0x765e6d={'unitId':_0x9dd5ae,'op':_0x4e85cf};return _0x1dbecc[_0x595348(0x421)](Z['id'],_0x247721)?(_0x356ff0[_0x595348(0x1df)](_0x9dd5ae),_0x5aeb57['pushUndoRedo']({'unitID':_0x9dd5ae,'undoMutations':[{'id':Z['id'],'params':_0x765e6d}],'redoMutations':[{'id':Z['id'],'params':_0x247721}]}),!0x0):!0x1;}},Fi={'id':'base.command.set-base-kanban-group-field','type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x1ee6e1,_0x48759f)=>{const _0x2ccf92=_0x274f9f;if(!_0x48759f)return!0x1;let _0x26a2c7=_0x1ee6e1[_0x2ccf92(0x23e)](_0x310540),{unitId:_0x498191,tableId:_0x4ceb67,viewId:_0x29e5c0,fieldId:_0x212bcc}=_0x48759f,_0x21a279=_0x26a2c7['getUnit'](_0x498191,_0x993548[_0x2ccf92(0x3f1)]);if(!_0x21a279||!Q(_0x21a279,_0x4ceb67,{'viewIds':[_0x29e5c0],'fieldIds':[_0x212bcc]}))return!0x1;let _0x10dbad=_0x1ee6e1[_0x2ccf92(0x23e)](_0x232cd6),_0x42b191=_0x1ee6e1[_0x2ccf92(0x23e)](_0x56cd6a),_0x52480c=_0x21a279[_0x2ccf92(0x2d0)](),_0x43dd73=new W()['updateViewConfig'](_0x52480c,_0x4ceb67,_0x29e5c0,{'groupFieldId':_0x212bcc}),_0x839d3d=new z()[_0x2ccf92(0x2c6)](_0x52480c,_0x43dd73),_0x38e66b={'unitId':_0x498191,'op':_0x43dd73},_0x3af046={'unitId':_0x498191,'op':_0x839d3d};return _0x10dbad[_0x2ccf92(0x421)](Z['id'],_0x38e66b)?(_0x26a2c7[_0x2ccf92(0x1df)](_0x498191),_0x42b191[_0x2ccf92(0x3d4)]({'unitID':_0x498191,'undoMutations':[{'id':Z['id'],'params':_0x3af046}],'redoMutations':[{'id':Z['id'],'params':_0x38e66b}]}),!0x0):!0x1;}},Ii={'id':_0x274f9f(0x23a),'type':_0x154d7f['COMMAND'],'handler':(_0x19bd81,_0x3de4a4)=>{const _0x39a379=_0x274f9f;if(!_0x3de4a4)return!0x1;let _0x40cf25=_0x19bd81[_0x39a379(0x23e)](_0x310540),_0x4e8e04=_0x40cf25[_0x39a379(0x462)](_0x3de4a4[_0x39a379(0x4bb)],_0x993548['UNIVER_BASE']);if(!_0x4e8e04)return!0x1;let _0x132f22=_0x4e8e04[_0x39a379(0x2d0)]()[_0x39a379(0x248)];if(_0x132f22===_0x3de4a4[_0x39a379(0x248)])return!0x0;let _0x2deb66=new W(),_0x2a01f5=new z(),_0x21223b=[],_0x457c2d=[],_0x5f13d8=[_0x4e8e04,..._0x40cf25[_0x39a379(0x448)](_0x993548[_0x39a379(0x3f1)])[_0x39a379(0x458)](_0x449717=>_0x449717['getUnitId']()!==_0x3de4a4['unitId'])];for(let _0x58bd89 of _0x5f13d8){let _0x509910=_0x58bd89[_0x39a379(0x2d0)](),_0x1cdd28=_0x58bd89===_0x4e8e04?_0x2deb66[_0x39a379(0x1da)](_0x509910,_0x3de4a4[_0x39a379(0x248)]):_0x2deb66[_0x39a379(0x49c)](_0x509910,_0x132f22,_0x3de4a4['name']);_0x1cdd28&&(_0x21223b[_0x39a379(0x254)]({'id':Z['id'],'params':{'unitId':_0x58bd89[_0x39a379(0x435)](),'op':_0x1cdd28,'trigger':Ii['id']}}),_0x457c2d[_0x39a379(0x41b)]({'id':Z['id'],'params':{'unitId':_0x58bd89[_0x39a379(0x435)](),'op':_0x2a01f5[_0x39a379(0x2c6)](_0x509910,_0x1cdd28),'trigger':Ii['id']}}));}let _0x5d935e=_0x19bd81['get'](_0x232cd6),_0xd13a0f=_0x19bd81[_0x39a379(0x23e)](_0x56cd6a),_0x1739ca=_0xd13a0f[_0x39a379(0x2a1)](_0x3de4a4[_0x39a379(0x4bb)]);try{return _0x40b820(_0x21223b,_0x5d935e)['result']?(_0x40cf25[_0x39a379(0x1df)](_0x3de4a4[_0x39a379(0x4bb)]),_0xd13a0f[_0x39a379(0x3d4)]({'unitID':_0x3de4a4[_0x39a379(0x4bb)],'undoMutations':_0x457c2d,'redoMutations':_0x21223b}),!0x0):!0x1;}finally{_0x1739ca[_0x39a379(0x3fb)]();}}};function Li(_0x426fd7,_0x476919){const _0x4c4ccc=_0x274f9f;let _0x356532=L(_0x12a306[_0x4c4ccc(0x523)](_0x426fd7)),_0x46c787=new Map();return _0x476919[_0x4c4ccc(0x366)](_0x5dd93d=>{const _0x46daec=_0x4c4ccc;var _0x4f469a,_0x540515;let _0x9f7340=_0x46daec(0x44a)in _0x5dd93d?_0x5dd93d['recordId']:(_0x4f469a=_0x356532[_0x46daec(0x47c)])==null?void 0x0:_0x4f469a[_0x5dd93d[_0x46daec(0x264)]],_0x48d3ef='fieldId'in _0x5dd93d?_0x5dd93d[_0x46daec(0x419)]:(_0x540515=_0x356532['colId'])==null?void 0x0:_0x540515[_0x5dd93d[_0x46daec(0x355)]],_0x43eec4=_0x48d3ef?_0x356532[_0x46daec(0x39f)][_0x48d3ef]:void 0x0;if(!_0x9f7340||!_0x48d3ef||!_0x43eec4||!_0x356532[_0x46daec(0x3c4)][_0x9f7340])return;let _0x5b71de=at(_0x5dd93d[_0x46daec(0x42f)],_0x43eec4),_0x702d18=ct(_0x5dd93d['value'],_0x5b71de,_0x43eec4,_0x356532,_0x9f7340),_0x9d1d86=_0x46c787['get'](_0x9f7340)??{};_0x9d1d86[_0x48d3ef]=_0x702d18,_0x46c787['set'](_0x9f7340,_0x9d1d86);}),[..._0x46c787][_0x4c4ccc(0x22e)](([_0x442f54,_0x37589c])=>({'recordId':_0x442f54,'values':_0x37589c}));}const Ri={'id':'base.command.set-base-range-values','type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0x587028,_0x2ec2e0){const _0x19796a=_0x274f9f;if(!_0x2ec2e0)return!0x1;let _0x578498=_0x587028[_0x19796a(0x23e)](_0x310540),{unitId:_0x207777,tableId:_0x4e593d,patches:_0xfca8a}=_0x2ec2e0,_0x4178e2=_0x578498['getUnit'](_0x207777,_0x993548[_0x19796a(0x3f1)]);if(!_0x4178e2||!Q(_0x4178e2,_0x4e593d))return!0x1;let _0x42f46a=_0x587028[_0x19796a(0x23e)](_0x232cd6),_0x206163=_0x587028[_0x19796a(0x23e)](_0x56cd6a),_0x139fad=_0x4178e2[_0x19796a(0x2d0)](),_0x322fe2=L(_0x139fad['tables'][_0x4e593d]),_0xca0c45=_0xfca8a[_0x19796a(0x22e)](_0x1171ff=>{const _0x247134=_0x19796a;var _0xe48a;return _0x247134(0x44a)in _0x1171ff?_0x1171ff[_0x247134(0x44a)]:(_0xe48a=_0x322fe2[_0x247134(0x47c)])==null?void 0x0:_0xe48a[_0x1171ff[_0x247134(0x264)]];})[_0x19796a(0x458)](_0x10bd8d=>_0x10bd8d!=null),_0x1c7331=_0xfca8a[_0x19796a(0x22e)](_0x3c8cbd=>{const _0x2c5aaa=_0x19796a;var _0x3d5278;return _0x2c5aaa(0x419)in _0x3c8cbd?_0x3c8cbd[_0x2c5aaa(0x419)]:(_0x3d5278=_0x322fe2[_0x2c5aaa(0x4bd)])==null?void 0x0:_0x3d5278[_0x3c8cbd[_0x2c5aaa(0x355)]];})[_0x19796a(0x458)](_0x5c5389=>_0x5c5389!=null);if(_0xca0c45[_0x19796a(0x353)]!==_0xfca8a[_0x19796a(0x353)]||_0x1c7331[_0x19796a(0x353)]!==_0xfca8a['length']||!Q(_0x4178e2,_0x4e593d,{'recordIds':_0xca0c45,'fieldIds':_0x1c7331})||_0xfca8a[_0x19796a(0x29f)]((_0x1b8ba1,_0x3effcd)=>!Gr(_0x4178e2,_0x4e593d,_0x1c7331[_0x3effcd],_0x1b8ba1[_0x19796a(0x42f)])))return!0x1;let _0x492322=Ie(_0x322fe2,Li(_0x322fe2,_0xfca8a)),_0x2af0a2=_0xfca8a[_0x19796a(0x25e)](_0x55f804=>{const _0x38d2a7=_0x19796a;var _0x5314cb,_0x56af99;if(_0x38d2a7(0x264)in _0x55f804)return[_0x55f804];let _0xb12087=(_0x5314cb=_0x322fe2['rowIndex'])==null?void 0x0:_0x5314cb[_0x55f804['recordId']],_0x251612=(_0x56af99=_0x322fe2['colIndex'])==null?void 0x0:_0x56af99[_0x55f804[_0x38d2a7(0x419)]];return _0xb12087==null||_0x251612==null?[]:[{'row':_0xb12087,'col':_0x251612,'value':_0x55f804[_0x38d2a7(0x42f)]}];}),_0x46f4fa=new W()['setRangeValues'](_0x139fad,_0x4e593d,_0x2af0a2),_0x37fd8d=new z()['invertOp'](_0x139fad,_0x46f4fa),_0x44bc10={'unitId':_0x207777,'op':_0x46f4fa,'trigger':_0x492322['length']?Ri['id']:void 0x0,'hierarchyChanges':_0x492322[_0x19796a(0x353)]?_0x492322:void 0x0,'source':_0x492322[_0x19796a(0x353)]?_0x19796a(0x37f):void 0x0},_0x1212fb={'unitId':_0x207777,'op':_0x37fd8d,'trigger':_0x492322[_0x19796a(0x353)]?Ri['id']:void 0x0,'hierarchyChanges':_0x492322['length']?_0x492322[_0x19796a(0x22e)](_0x395e45=>({..._0x395e45,'oldParentRecordId':_0x395e45[_0x19796a(0x4d9)],'parentRecordId':_0x395e45[_0x19796a(0x31b)]})):void 0x0,'source':_0x492322['length']?_0x19796a(0x3d6):void 0x0},_0x4e0d9a={..._0x44bc10,'source':_0x492322[_0x19796a(0x353)]?_0x2ec2e0['source']??'ui':void 0x0};return _0x42f46a[_0x19796a(0x421)](Z['id'],_0x4e0d9a)?(_0x578498['focusUnit'](_0x207777),_0x206163['pushUndoRedo']({'unitID':_0x207777,'undoMutations':[{'id':Z['id'],'params':_0x1212fb}],'redoMutations':[{'id':Z['id'],'params':_0x44bc10}]}),!0x0):!0x1;}},zi={'id':_0x274f9f(0x287),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0x68bb2e,_0xf47c7){const _0x26cd77=_0x274f9f;if(!_0xf47c7)return!0x1;let _0xb56558=_0x68bb2e[_0x26cd77(0x23e)](_0x310540),{unitId:_0x5e44db,tableId:_0x39791e,patches:_0x5c1b9d}=_0xf47c7,_0x49a5c6=_0xb56558['getUnit'](_0x5e44db,_0x993548['UNIVER_BASE']),_0x273ef0=_0x5c1b9d[_0x26cd77(0x22e)](_0x2c1cdc=>_0x2c1cdc[_0x26cd77(0x44a)]),_0x1e56ad=_0x5c1b9d[_0x26cd77(0x25e)](_0x21e6d8=>Object['keys'](_0x21e6d8[_0x26cd77(0x33c)]));if(!_0x49a5c6||!Q(_0x49a5c6,_0x39791e,{'recordIds':_0x273ef0,'fieldIds':_0x1e56ad})||_0x5c1b9d[_0x26cd77(0x29f)](_0xa16ef8=>Object[_0x26cd77(0x2d4)](_0xa16ef8['values'])['some'](([_0x111231,_0x1ea4ce])=>!Gr(_0x49a5c6,_0x39791e,_0x111231,_0x1ea4ce))))return!0x1;let _0x5f20ca=Ie(_0x49a5c6['getSnapshot']()[_0x26cd77(0x529)][_0x39791e],_0x5c1b9d),_0x4f4643=_0x68bb2e[_0x26cd77(0x23e)](_0x232cd6),_0x46cae8=_0x68bb2e[_0x26cd77(0x23e)](_0x56cd6a),_0x26b4be=_0x68bb2e[_0x26cd77(0x23e)](J)[_0x26cd77(0x216)](_0x49a5c6,_0x39791e,_0x5c1b9d),_0x52c8fe=new z()[_0x26cd77(0x2c6)](_0x49a5c6['getSnapshot'](),_0x26b4be),_0x305c7c={'unitId':_0x5e44db,'op':_0x26b4be,'trigger':_0x5f20ca[_0x26cd77(0x353)]?zi['id']:void 0x0,'hierarchyChanges':_0x5f20ca['length']?_0x5f20ca:void 0x0,'source':_0x5f20ca[_0x26cd77(0x353)]?_0xf47c7[_0x26cd77(0x272)]??'ui':void 0x0},_0x7e8674={..._0x305c7c,'source':_0x5f20ca[_0x26cd77(0x353)]?_0x26cd77(0x37f):void 0x0},_0xae19f1={'unitId':_0x5e44db,'op':_0x52c8fe,'trigger':_0x5f20ca[_0x26cd77(0x353)]?zi['id']:void 0x0,'hierarchyChanges':_0x5f20ca['length']?_0x5f20ca['map'](_0x584bbd=>({..._0x584bbd,'oldParentRecordId':_0x584bbd[_0x26cd77(0x4d9)],'parentRecordId':_0x584bbd[_0x26cd77(0x31b)]})):void 0x0,'source':_0x5f20ca['length']?'undo':void 0x0};return _0x4f4643[_0x26cd77(0x421)](Z['id'],_0x305c7c)?(_0xb56558[_0x26cd77(0x1df)](_0x5e44db),_0x46cae8['pushUndoRedo']({'unitID':_0x5e44db,'undoMutations':[{'id':Z['id'],'params':_0xae19f1}],'redoMutations':[{'id':Z['id'],'params':_0x7e8674}]}),!0x0):!0x1;}},Bi={'id':_0x274f9f(0x265),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x501843,_0x19158c)=>{const _0x1468f0=_0x274f9f;if(!_0x19158c)return!0x1;let {unitId:_0x5921ae,tableId:_0x25b287,fieldId:_0x1fd11a}=_0x19158c,_0x23e43d=_0x501843[_0x1468f0(0x23e)](_0x310540),_0x265dc5=_0x23e43d[_0x1468f0(0x462)](_0x5921ae,_0x993548[_0x1468f0(0x3f1)]);if(!_0x265dc5||!Q(_0x265dc5,_0x25b287))return!0x1;let _0xd75357=_0x265dc5[_0x1468f0(0x2d0)](),_0x2035d1=_0xd75357[_0x1468f0(0x529)][_0x25b287];if(_0x1fd11a!==null&&!M(_0x2035d1,_0x1fd11a))throw new j('invalidField');if(N(_0x2035d1)===_0x1fd11a)return!0x0;let _0x2d2113=new W(),_0x173ed4=R(Object['values'](_0x2035d1['fields'])['flatMap'](_0x566e75=>{const _0xfa820a=_0x1468f0;if(!M(_0x2035d1,_0x566e75['id']))return[];let _0x4b58c4=A(_0x566e75);if(!_0x4b58c4)return[];let _0x475e07=_0x566e75['id']===_0x1fd11a;if(_0x4b58c4['relationRole']===_0x2af9b7[_0xfa820a(0x38c)]===_0x475e07)return[];let _0xfd1db={..._0x566e75[_0xfa820a(0x427)],'targetTableId':_0x4b58c4[_0xfa820a(0x4a5)],'multiple':_0x4b58c4['multiple']};return _0x475e07?_0xfd1db[_0xfa820a(0x253)]=_0x2af9b7[_0xfa820a(0x38c)]:delete _0xfd1db[_0xfa820a(0x253)],[_0x2d2113[_0xfa820a(0x279)](_0xd75357,_0x25b287,_0x566e75['id'],{'config':_0xfd1db})];})),_0x32a002=new z()[_0x1468f0(0x2c6)](_0xd75357,_0x173ed4),_0x1976d9={'unitId':_0x5921ae,'op':_0x173ed4},_0x1d0132={'unitId':_0x5921ae,'op':_0x32a002};return _0x501843[_0x1468f0(0x23e)](_0x232cd6)[_0x1468f0(0x421)](Z['id'],_0x1976d9)?(_0x23e43d[_0x1468f0(0x1df)](_0x5921ae),_0x501843[_0x1468f0(0x23e)](_0x56cd6a)[_0x1468f0(0x3d4)]({'unitID':_0x5921ae,'undoMutations':[{'id':Z['id'],'params':_0x1d0132}],'redoMutations':[{'id':Z['id'],'params':_0x1976d9}]}),!0x0):!0x1;}},Vi={'id':_0x274f9f(0x30e),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x1c6852,_0x21f1e3)=>{const _0x31d3b3=_0x274f9f;if(!_0x21f1e3)return!0x1;let _0x4330bb=_0x1c6852[_0x31d3b3(0x23e)](_0x310540),{unitId:_0x3703c3,tableId:_0x349774,viewId:_0x5f4d51,fieldId:_0x611010,target:_0x5b0cce}=_0x21f1e3,_0x51a091=_0x4330bb['getUnit'](_0x3703c3,_0x993548['UNIVER_BASE']),_0x28e7f0=_0x5b0cce[_0x31d3b3(0x341)]??_0x5b0cce['afterFieldId'];if(!_0x51a091||!_0x28e7f0||_0x28e7f0===_0x611010||!Q(_0x51a091,_0x349774,{'viewIds':[_0x5f4d51],'fieldIds':[_0x611010,_0x28e7f0]}))return!0x1;let _0x4940ae=_0x51a091[_0x31d3b3(0x2d0)]()['tables'][_0x349774],_0x2e3445=_0x4940ae[_0x31d3b3(0x39f)][_0x611010],_0x4dc70a=_0x4940ae[_0x31d3b3(0x39f)][_0x28e7f0];if(_0x2e3445[_0x31d3b3(0x3a9)]===!0x0||_0x2e3445[_0x31d3b3(0x2b9)]===_0x11438e[_0x31d3b3(0x20d)]||_0x4dc70a[_0x31d3b3(0x3a9)]===!0x0||_0x4dc70a[_0x31d3b3(0x2b9)]===_0x11438e[_0x31d3b3(0x20d)])return!0x1;let _0x24f31d=_0x1c6852[_0x31d3b3(0x23e)](_0x232cd6),_0x5ad840=_0x1c6852['get'](_0x56cd6a),_0x37b989=_0x51a091['getSnapshot'](),_0x3a7a10=new W()[_0x31d3b3(0x236)](_0x37b989,_0x349774,_0x5f4d51,_0x611010,_0x5b0cce),_0x303f1d=new z()[_0x31d3b3(0x2c6)](_0x37b989,_0x3a7a10),_0x50b208={'unitId':_0x3703c3,'op':_0x3a7a10},_0x48a265={'unitId':_0x3703c3,'op':_0x303f1d};return _0x24f31d[_0x31d3b3(0x421)](Z['id'],_0x50b208)?(_0x4330bb[_0x31d3b3(0x1df)](_0x3703c3),_0x5ad840[_0x31d3b3(0x3d4)]({'unitID':_0x3703c3,'undoMutations':[{'id':Z['id'],'params':_0x48a265}],'redoMutations':[{'id':Z['id'],'params':_0x50b208}]}),!0x0):!0x1;}},Hi={'id':_0x274f9f(0x3a4),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0x4fff1f,_0x44854c){const _0x147a3b=_0x274f9f;if(!_0x44854c)return!0x1;let _0x224470=_0x4fff1f[_0x147a3b(0x23e)](_0x310540),{unitId:_0x4c48c6,tableId:_0xa5e433,viewId:_0x5e1eb8,fieldId:_0x5c83c3,visible:_0x8974b8}=_0x44854c,_0x1fb177=_0x224470['getUnit'](_0x4c48c6,_0x993548[_0x147a3b(0x3f1)]);if(!_0x1fb177||!Q(_0x1fb177,_0xa5e433,{'viewIds':[_0x5e1eb8],'fieldIds':[_0x5c83c3]}))return!0x1;let _0xea52db=_0x1fb177[_0x147a3b(0x2d0)]()[_0x147a3b(0x529)][_0xa5e433]['fields'][_0x5c83c3];if(_0xea52db['system']===!0x0||_0xea52db[_0x147a3b(0x2b9)]===_0x11438e[_0x147a3b(0x20d)])return!0x1;let _0x5452d5=_0x4fff1f[_0x147a3b(0x23e)](_0x232cd6),_0x114da8=_0x4fff1f['get'](_0x56cd6a),_0xd8a0cb=_0x1fb177['getSnapshot'](),_0x4562ea=new W()['setViewFieldVisible'](_0xd8a0cb,_0xa5e433,_0x5e1eb8,_0x5c83c3,_0x8974b8),_0x21b5b3=new z()[_0x147a3b(0x2c6)](_0xd8a0cb,_0x4562ea),_0x1266b3={'unitId':_0x4c48c6,'op':_0x4562ea},_0x3a678a={'unitId':_0x4c48c6,'op':_0x21b5b3};return _0x5452d5['syncExecuteCommand'](Z['id'],_0x1266b3)?(_0x224470[_0x147a3b(0x1df)](_0x4c48c6),_0x114da8[_0x147a3b(0x3d4)]({'unitID':_0x4c48c6,'undoMutations':[{'id':Z['id'],'params':_0x3a678a}],'redoMutations':[{'id':Z['id'],'params':_0x1266b3}]}),!0x0):!0x1;}},Ui={'id':_0x274f9f(0x331),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x38132c,_0xe2f67e)=>{const _0x156490=_0x274f9f;if(!_0xe2f67e)return!0x1;let _0x5b082e=_0x38132c['get'](_0x310540),{unitId:_0x4a475a,tableId:_0x57cf2b,viewId:_0x21512e,fieldId:_0x353d43,width:_0x2747d5}=_0xe2f67e,_0x26023a=_0x5b082e[_0x156490(0x462)](_0x4a475a,_0x993548[_0x156490(0x3f1)]);if(!_0x26023a||!Q(_0x26023a,_0x57cf2b,{'viewIds':[_0x21512e],'fieldIds':[_0x353d43]}))return!0x1;let _0x1451dc=_0x26023a[_0x156490(0x2d0)]()[_0x156490(0x529)][_0x57cf2b]['fields'][_0x353d43];if(_0x1451dc[_0x156490(0x3a9)]===!0x0||_0x1451dc[_0x156490(0x2b9)]===_0x11438e[_0x156490(0x20d)])return!0x1;let _0x15e379=_0x38132c[_0x156490(0x23e)](_0x232cd6),_0x59d057=_0x38132c[_0x156490(0x23e)](_0x56cd6a),_0x3722cc=_0x26023a[_0x156490(0x2d0)](),_0x493830=new W()[_0x156490(0x3a0)](_0x3722cc,_0x57cf2b,_0x21512e,_0x353d43,_0x2747d5),_0x2b3ef8=new z()['invertOp'](_0x3722cc,_0x493830),_0x4077ee={'unitId':_0x4a475a,'op':_0x493830},_0x28b4b4={'unitId':_0x4a475a,'op':_0x2b3ef8};return _0x15e379['syncExecuteCommand'](Z['id'],_0x4077ee)?(_0x5b082e[_0x156490(0x1df)](_0x4a475a),_0x59d057[_0x156490(0x3d4)]({'unitID':_0x4a475a,'undoMutations':[{'id':Z['id'],'params':_0x28b4b4}],'redoMutations':[{'id':Z['id'],'params':_0x4077ee}]}),!0x0):!0x1;}},Wi={'id':'base.command.set-base-view-filter','type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x4c901e,_0x206eca)=>{const _0x39e438=_0x274f9f;if(!_0x206eca)return!0x1;let _0x5d3558=_0x4c901e[_0x39e438(0x23e)](_0x310540),{unitId:_0x472da5,tableId:_0x4b1d95,viewId:_0x4c5b41,filter:_0x489fa3}=_0x206eca,_0x529df0=_0x5d3558['getUnit'](_0x472da5,_0x993548['UNIVER_BASE']),_0x2c6084=(_0x489fa3==null?void 0x0:_0x489fa3['conditions'][_0x39e438(0x22e)](_0x29d27b=>_0x29d27b['fieldId']))??[];if(!_0x529df0||!Q(_0x529df0,_0x4b1d95,{'viewIds':[_0x4c5b41],'fieldIds':_0x2c6084}))return!0x1;let _0x35dd8f=_0x4c901e[_0x39e438(0x23e)](_0x232cd6),_0xbd6811=_0x4c901e['get'](_0x56cd6a),_0x2606a4=_0x529df0[_0x39e438(0x2d0)](),_0x3b7f81=new W()['setViewFilter'](_0x2606a4,_0x4b1d95,_0x4c5b41,_0x489fa3),_0x2a546e=new z()[_0x39e438(0x2c6)](_0x2606a4,_0x3b7f81),_0x214440={'unitId':_0x472da5,'op':_0x3b7f81},_0x388c6a={'unitId':_0x472da5,'op':_0x2a546e};return _0x35dd8f[_0x39e438(0x421)](Z['id'],_0x214440)?(_0x5d3558['focusUnit'](_0x472da5),_0xbd6811[_0x39e438(0x3d4)]({'unitID':_0x472da5,'undoMutations':[{'id':Z['id'],'params':_0x388c6a}],'redoMutations':[{'id':Z['id'],'params':_0x214440}]}),!0x0):!0x1;}},Gi={'id':'base.command.set-base-view-group','type':_0x154d7f['COMMAND'],'handler':(_0x419357,_0x59cb8b)=>{const _0x2e8241=_0x274f9f;if(!_0x59cb8b)return!0x1;let _0x4f2ac1=_0x419357[_0x2e8241(0x23e)](_0x310540),{unitId:_0x55d12a,tableId:_0x59de31,viewId:_0xe9acf2,group:_0x4fc40b}=_0x59cb8b,_0x429244=_0x4f2ac1[_0x2e8241(0x462)](_0x55d12a,_0x993548[_0x2e8241(0x3f1)]);if(!_0x429244||!Q(_0x429244,_0x59de31,{'viewIds':[_0xe9acf2],'fieldIds':_0x4fc40b[_0x2e8241(0x22e)](_0xa4668f=>_0xa4668f[_0x2e8241(0x419)])}))return!0x1;let _0xf0ad85=_0x419357[_0x2e8241(0x23e)](_0x232cd6),_0x2af493=_0x419357['get'](_0x56cd6a),_0x518a15=_0x429244['getSnapshot'](),_0x5add13=new W()['setViewGroup'](_0x518a15,_0x59de31,_0xe9acf2,_0x4fc40b),_0x59fa40=new z()[_0x2e8241(0x2c6)](_0x518a15,_0x5add13),_0x52ae15={'unitId':_0x55d12a,'op':_0x5add13},_0x13f71c={'unitId':_0x55d12a,'op':_0x59fa40};return _0xf0ad85[_0x2e8241(0x421)](Z['id'],_0x52ae15)?(_0x4f2ac1['focusUnit'](_0x55d12a),_0x2af493[_0x2e8241(0x3d4)]({'unitID':_0x55d12a,'undoMutations':[{'id':Z['id'],'params':_0x13f71c}],'redoMutations':[{'id':Z['id'],'params':_0x52ae15}]}),!0x0):!0x1;}},Ki={'id':_0x274f9f(0x3e9),'type':_0x154d7f['COMMAND'],'handler':(_0x315f7b,_0x5d4d3c)=>{const _0x363253=_0x274f9f;if(!_0x5d4d3c)return!0x1;let _0x540cb3=_0x315f7b[_0x363253(0x23e)](_0x310540),{unitId:_0x56be8b,tableId:_0x4fc8e6,viewId:_0x2fa987,sort:_0x4764d5}=_0x5d4d3c,_0x461c29=_0x540cb3['getUnit'](_0x56be8b,_0x993548['UNIVER_BASE']);if(!_0x461c29||!Q(_0x461c29,_0x4fc8e6,{'viewIds':[_0x2fa987],'fieldIds':_0x4764d5[_0x363253(0x22e)](_0x147c10=>_0x147c10[_0x363253(0x419)])}))return!0x1;let _0x17d34e=_0x315f7b['get'](_0x232cd6),_0x17b36e=_0x315f7b['get'](_0x56cd6a),_0x488d07=_0x461c29[_0x363253(0x2d0)](),_0x2e223e=new W()[_0x363253(0x4ce)](_0x488d07,_0x4fc8e6,_0x2fa987,_0x4764d5),_0x167388=new z()[_0x363253(0x2c6)](_0x488d07,_0x2e223e),_0x34cb11={'unitId':_0x56be8b,'op':_0x2e223e},_0x369084={'unitId':_0x56be8b,'op':_0x167388};return _0x17d34e[_0x363253(0x421)](Z['id'],_0x34cb11)?(_0x540cb3['focusUnit'](_0x56be8b),_0x17b36e[_0x363253(0x3d4)]({'unitID':_0x56be8b,'undoMutations':[{'id':Z['id'],'params':_0x369084}],'redoMutations':[{'id':Z['id'],'params':_0x34cb11}]}),!0x0):!0x1;}},qi={'id':_0x274f9f(0x468),'type':_0x154d7f['COMMAND'],'handler'(_0x1b7c85,_0x442d33){const _0x4fdf5f=_0x274f9f;if(!_0x442d33)return!0x1;let _0x371d42=_0x1b7c85[_0x4fdf5f(0x23e)](_0x310540),{unitId:_0x297ed8,tableId:_0x16f616,recordId:_0x507f09,fieldId:_0x3b410e,value:_0x3b6d4c}=_0x442d33,_0x469e62=_0x371d42[_0x4fdf5f(0x462)](_0x297ed8,_0x993548[_0x4fdf5f(0x3f1)]);if(!_0x469e62||!Q(_0x469e62,_0x16f616,{'recordIds':[_0x507f09],'fieldIds':[_0x3b410e]})||!Gr(_0x469e62,_0x16f616,_0x3b410e,_0x3b6d4c))return!0x1;let _0x491fa6=_0x469e62[_0x4fdf5f(0x2d0)]()['tables'][_0x16f616],_0x19eb13=M(_0x491fa6,_0x3b410e)&&Fe(_0x491fa6)[_0x4fdf5f(0x1d2)](_0x3b410e),_0x3e9b30=_0x19eb13?F(_0x491fa6,_0x3b410e):null,_0x38297d=(_0x3e9b30==null?void 0x0:_0x3e9b30['parentByRecordId'][_0x4fdf5f(0x23e)](_0x507f09))??null,_0x3f9f38=_0x19eb13?we(_0x3b6d4c)[0x0]??null:null;if(_0x3e9b30){if(_0x3f9f38&&!_0x491fa6[_0x4fdf5f(0x3c4)][_0x3f9f38])throw new j('missingRecord');let _0x361eb6=He(_0x3e9b30,_0x507f09,_0x3f9f38);if(!_0x361eb6['valid'])throw new j(_0x361eb6[_0x4fdf5f(0x257)]===_0x29e4ba[_0x4fdf5f(0x390)]?_0x4fdf5f(0x1e5):_0x361eb6[_0x4fdf5f(0x257)]===_0x29e4ba['Cycle']?_0x4fdf5f(0x4b4):_0x4fdf5f(0x250));}let _0x529b2a=_0x1b7c85[_0x4fdf5f(0x23e)](_0x232cd6),_0x4bade3=_0x1b7c85['get'](_0x56cd6a),_0x588e94=_0x1b7c85['get'](J),_0x1c8ddb;try{_0x1c8ddb=_0x588e94[_0x4fdf5f(0x1f8)](_0x469e62,_0x16f616,_0x507f09,_0x3b410e,_0x3b6d4c);}catch(_0x1efdcf){return console['error'](_0x4fdf5f(0x38e),_0x1efdcf),!0x1;}let _0x368944=new z()['invertOp'](_0x469e62[_0x4fdf5f(0x2d0)](),_0x1c8ddb),_0x2dd702=_0x19eb13&&_0x38297d!==_0x3f9f38?[{'tableId':_0x16f616,'fieldId':_0x3b410e,'recordId':_0x507f09,'oldParentRecordId':_0x38297d,'parentRecordId':_0x3f9f38}]:void 0x0,_0x471309={'unitId':_0x297ed8,'op':_0x1c8ddb,'trigger':_0x2dd702?qi['id']:void 0x0,'hierarchyChanges':_0x2dd702,'source':_0x2dd702?_0x442d33[_0x4fdf5f(0x272)]??'ui':void 0x0},_0x2823d0={..._0x471309,'source':_0x2dd702?_0x4fdf5f(0x37f):void 0x0},_0x1bcc94={'unitId':_0x297ed8,'op':_0x368944,'trigger':_0x2dd702?qi['id']:void 0x0,'hierarchyChanges':_0x2dd702==null?void 0x0:_0x2dd702[_0x4fdf5f(0x22e)](_0x146942=>({..._0x146942,'oldParentRecordId':_0x146942[_0x4fdf5f(0x4d9)],'parentRecordId':_0x146942[_0x4fdf5f(0x31b)]})),'source':_0x2dd702?_0x4fdf5f(0x3d6):void 0x0};return _0x529b2a[_0x4fdf5f(0x421)](Z['id'],_0x471309)?(_0x371d42[_0x4fdf5f(0x1df)](_0x297ed8),_0x4bade3[_0x4fdf5f(0x3d4)]({'unitID':_0x297ed8,'undoMutations':[{'id':Z['id'],'params':_0x1bcc94}],'redoMutations':[{'id':Z['id'],'params':_0x2823d0}]}),!0x0):!0x1;}},Ji={'id':_0x274f9f(0x378),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler'(_0x34408a,_0x2095d0){const _0x373fee=_0x274f9f;if(!_0x2095d0)return!0x1;let _0x5f0340=_0x34408a[_0x373fee(0x23e)](_0x310540),{unitId:_0x565d9f,tableId:_0x246828,fieldId:_0x287f5c}=_0x2095d0,_0x583cfd=_0x5f0340[_0x373fee(0x462)](_0x565d9f,_0x993548[_0x373fee(0x3f1)]);if(!_0x583cfd||!Q(_0x583cfd,_0x246828,{'fieldIds':[_0x287f5c]}))return!0x1;let _0x297972=_0x34408a[_0x373fee(0x23e)](_0x232cd6),_0xed3991=_0x34408a[_0x373fee(0x23e)](_0x56cd6a),_0x245c36=_0x583cfd[_0x373fee(0x2d0)](),_0x535d8a=_0x2095d0[_0x373fee(0x291)][_0x373fee(0x2ba)](),_0x4b16ee=new W()[_0x373fee(0x279)](_0x245c36,_0x246828,_0x287f5c,{'description':_0x535d8a}),_0x1eb540=new z()[_0x373fee(0x2c6)](_0x583cfd[_0x373fee(0x2d0)](),_0x4b16ee),_0x26c299={'unitId':_0x565d9f,'op':_0x4b16ee},_0xf61625={'unitId':_0x565d9f,'op':_0x1eb540};return _0x297972['syncExecuteCommand'](Z['id'],_0x26c299)?(_0x5f0340[_0x373fee(0x1df)](_0x565d9f),_0xed3991[_0x373fee(0x3d4)]({'unitID':_0x565d9f,'undoMutations':[{'id':Z['id'],'params':_0xf61625}],'redoMutations':[{'id':Z['id'],'params':_0x26c299}]}),!0x0):!0x1;}},Yi={'id':_0x274f9f(0x234),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x176bee,_0x41c398)=>{const _0x58fbd6=_0x274f9f;if(!_0x41c398)return!0x1;let _0x1a0189=_0x176bee[_0x58fbd6(0x23e)](_0x310540),{unitId:_0xd4b4d5,tableId:_0x48162d,fieldId:_0x5a86d6,patch:_0x1a2e35}=_0x41c398,_0x4083df=_0x1a0189[_0x58fbd6(0x462)](_0xd4b4d5,_0x993548[_0x58fbd6(0x3f1)]);if(!_0x4083df||_0x5a86d6===_0x525439||!Q(_0x4083df,_0x48162d,{'fieldIds':[_0x5a86d6]}))return!0x1;let _0x35b2c8=_0x176bee[_0x58fbd6(0x23e)](_0x232cd6),_0x50a728=_0x176bee[_0x58fbd6(0x23e)](_0x56cd6a),_0x50a73b=_0x4083df[_0x58fbd6(0x2d0)]();if(!Wr(_0x4083df,_0x48162d,{..._0x50a73b['tables'][_0x48162d]['fields'][_0x5a86d6],..._0x1a2e35}))return!0x1;let _0x580f89=new W()[_0x58fbd6(0x279)](_0x50a73b,_0x48162d,_0x5a86d6,_0x1a2e35),_0x2479ba=new z()[_0x58fbd6(0x2c6)](_0x50a73b,_0x580f89),_0x38c36c={'unitId':_0xd4b4d5,'op':_0x580f89},_0x44e936={'unitId':_0xd4b4d5,'op':_0x2479ba};return _0x35b2c8[_0x58fbd6(0x421)](Z['id'],_0x38c36c)?(_0x1a0189[_0x58fbd6(0x1df)](_0xd4b4d5),_0x50a728[_0x58fbd6(0x3d4)]({'unitID':_0xd4b4d5,'undoMutations':[{'id':Z['id'],'params':_0x44e936}],'redoMutations':[{'id':Z['id'],'params':_0x38c36c}]}),!0x0):!0x1;}},Xi={'id':_0x274f9f(0x2fd),'type':_0x154d7f['COMMAND'],'handler':(_0x5bea59,_0xce2a01)=>{const _0x50868d=_0x274f9f;if(!_0xce2a01)return!0x1;let _0x54c8e2=_0x5bea59[_0x50868d(0x23e)](_0x310540),{unitId:_0x43a4fb,tableId:_0x4304b4,viewId:_0x251afb,patch:_0x1fe3b7}=_0xce2a01,_0x57a1ae=_0x54c8e2[_0x50868d(0x462)](_0x43a4fb,_0x993548[_0x50868d(0x3f1)]);if(!_0x57a1ae||!Q(_0x57a1ae,_0x4304b4,{'viewIds':[_0x251afb]}))return!0x1;let _0x41a595=_0x5bea59['get'](_0x232cd6),_0x4a2f1b=_0x5bea59[_0x50868d(0x23e)](_0x56cd6a),_0xc88ede=_0x57a1ae[_0x50868d(0x2d0)](),_0x538316=new W()['updateViewConfig'](_0xc88ede,_0x4304b4,_0x251afb,_0x1fe3b7),_0x4c77f8=new z()[_0x50868d(0x2c6)](_0xc88ede,_0x538316),_0x51f599={'unitId':_0x43a4fb,'op':_0x538316},_0xc20569={'unitId':_0x43a4fb,'op':_0x4c77f8};return _0x41a595[_0x50868d(0x421)](Z['id'],_0x51f599)?(_0x54c8e2[_0x50868d(0x1df)](_0x43a4fb),_0x4a2f1b[_0x50868d(0x3d4)]({'unitID':_0x43a4fb,'undoMutations':[{'id':Z['id'],'params':_0xc20569}],'redoMutations':[{'id':Z['id'],'params':_0x51f599}]}),!0x0):!0x1;}},Zi={'id':_0x274f9f(0x28d),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x3fe217,_0x31184a)=>{const _0x4da178=_0x274f9f;if(!_0x31184a)return!0x1;let _0x5edb97=_0x3fe217[_0x4da178(0x23e)](_0x310540),{unitId:_0x1c173b,tableId:_0x5d339b,recordId:_0x2c45f4,orderKey:_0x7aefe9}=_0x31184a,_0x2fa5c8=_0x5edb97[_0x4da178(0x462)](_0x1c173b,_0x993548[_0x4da178(0x3f1)]);if(!_0x2fa5c8||!Q(_0x2fa5c8,_0x5d339b,{'recordIds':[_0x2c45f4]}))return!0x1;let _0xc74868=_0x3fe217[_0x4da178(0x23e)](_0x232cd6),_0x447b8e=_0x3fe217[_0x4da178(0x23e)](_0x56cd6a),_0x490d75=_0x2fa5c8[_0x4da178(0x2d0)](),_0x445190=new W()['updateRecordOrder'](_0x490d75,_0x5d339b,_0x2c45f4,_0x7aefe9),_0x14ccd2=new z()[_0x4da178(0x2c6)](_0x490d75,_0x445190),_0x547338={'unitId':_0x1c173b,'op':_0x445190},_0x3a6d97={'unitId':_0x1c173b,'op':_0x14ccd2};return _0xc74868[_0x4da178(0x421)](Z['id'],_0x547338)?(_0x5edb97['focusUnit'](_0x1c173b),_0x447b8e[_0x4da178(0x3d4)]({'unitID':_0x1c173b,'undoMutations':[{'id':Z['id'],'params':_0x3a6d97}],'redoMutations':[{'id':Z['id'],'params':_0x547338}]}),!0x0):!0x1;}};let Qi=function(_0x474d0f){const _0x1b0664=_0x274f9f;return _0x474d0f[_0x1b0664(0x3b5)]=_0x1b0664(0x317),_0x474d0f[_0x1b0664(0x4b6)]=_0x1b0664(0x4a3),_0x474d0f[_0x1b0664(0x3dc)]=_0x1b0664(0x2ef),_0x474d0f[_0x1b0664(0x460)]=_0x1b0664(0x1f4),_0x474d0f;}({});const $i={'id':_0x274f9f(0x368),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x45c376,_0x1f1b3b)=>{const _0x47941e=_0x274f9f;var _0x5aeed8;if(!_0x1f1b3b)return!0x1;let _0x34e01d=_0x45c376[_0x47941e(0x23e)](_0x310540),_0x4f7d62=_0x34e01d[_0x47941e(0x462)](_0x1f1b3b['unitId'],_0x993548[_0x47941e(0x3f1)]);if(!_0x4f7d62||!Q(_0x4f7d62,_0x1f1b3b['tableId'],{'viewIds':[_0x1f1b3b[_0x47941e(0x490)]]}))return!0x1;let _0xce4ccd=_0x4f7d62['getSnapshot'](),_0x1e8c74=_0xce4ccd[_0x47941e(0x529)][_0x1f1b3b[_0x47941e(0x37e)]],_0x45dc7a=ea(((_0x5aeed8=_0x1e8c74['views'][_0x1f1b3b[_0x47941e(0x490)]][_0x47941e(0x427)][_0x47941e(0x346)])==null?void 0x0:_0x5aeed8[_0x47941e(0x26c)])??[],_0x1f1b3b);if(!_0x45dc7a)return!0x1;ta(_0x1e8c74,_0x45dc7a);let _0x1fbb3b=new W()['updateViewConfig'](_0xce4ccd,_0x1f1b3b[_0x47941e(0x37e)],_0x1f1b3b['viewId'],{'conditionalColoring':_0x45dc7a[_0x47941e(0x353)]?{'rules':_0x45dc7a}:null}),_0x421407=new z()[_0x47941e(0x2c6)](_0xce4ccd,_0x1fbb3b),_0x1aa9c9={'unitId':_0x1f1b3b[_0x47941e(0x4bb)],'op':_0x1fbb3b},_0xca06a5={'unitId':_0x1f1b3b['unitId'],'op':_0x421407};return _0x45c376[_0x47941e(0x23e)](_0x232cd6)['syncExecuteCommand'](Z['id'],_0x1aa9c9)?(_0x34e01d[_0x47941e(0x1df)](_0x1f1b3b[_0x47941e(0x4bb)]),_0x45c376['get'](_0x56cd6a)['pushUndoRedo']({'unitID':_0x1f1b3b[_0x47941e(0x4bb)],'undoMutations':[{'id':Z['id'],'params':_0xca06a5}],'redoMutations':[{'id':Z['id'],'params':_0x1aa9c9}]}),!0x0):!0x1;}};function ea(_0x3b4c71,_0x4b1d4d){const _0x12ab2b=_0x274f9f;switch(_0x4b1d4d[_0x12ab2b(0x2b9)]){case _0x12ab2b(0x317):return _0x12a306['deepClone'](_0x4b1d4d['rules']);case _0x12ab2b(0x4a3):return[..._0x12a306[_0x12ab2b(0x523)](_0x3b4c71),_0x12a306[_0x12ab2b(0x523)](_0x4b1d4d[_0x12ab2b(0x371)])];case _0x12ab2b(0x2ef):{let _0x148bf7=_0x3b4c71[_0x12ab2b(0x458)](_0x1fca2d=>_0x1fca2d['id']!==_0x4b1d4d[_0x12ab2b(0x3e3)]);return _0x148bf7[_0x12ab2b(0x353)]===_0x3b4c71[_0x12ab2b(0x353)]?null:_0x12a306[_0x12ab2b(0x523)](_0x148bf7);}case _0x12ab2b(0x1f4):return _0x3b4c71[_0x12ab2b(0x353)]?[]:null;}}function ta(_0x367c24,_0x474fd0){const _0x827aa5=_0x274f9f;if(!Array[_0x827aa5(0x39e)](_0x474fd0))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.');let _0x531a82=new Set();for(let [_0x4d30bf,_0x2d6473]of _0x474fd0[_0x827aa5(0x2d4)]())ra(_0x367c24,_0x2d6473,na(_0x2d6473,_0x4d30bf,_0x531a82));}function na(_0x41e301,_0x5dcfbd,_0x25b100){const _0x308a99=_0x274f9f;if(!_0x41e301||typeof _0x41e301!=_0x308a99(0x314))throw TypeError(_0x308a99(0x21b)+_0x5dcfbd+_0x308a99(0x3ca));let _0x16cfb5=typeof _0x41e301['id']=='string'&&_0x41e301['id']['trim']()?'\x22'+_0x41e301['id']+'\x22':_0x308a99(0x4dc)+_0x5dcfbd;if(typeof _0x41e301['id']!=_0x308a99(0x3c6)||!_0x41e301['id'][_0x308a99(0x2ba)]())throw Error(_0x308a99(0x524)+_0x16cfb5+_0x308a99(0x2b0));if(_0x25b100['has'](_0x41e301['id']))throw Error(_0x308a99(0x4e0)+_0x41e301['id']+'\x22.');_0x25b100[_0x308a99(0x4a3)](_0x41e301['id']);let _0x22d964=typeof _0x41e301['color']==_0x308a99(0x3c6)&&_0x41e301[_0x308a99(0x1e3)][_0x308a99(0x2ba)]()?new _0x52124a(_0x41e301['color']):null;if(!(_0x22d964!=null&&_0x22d964[_0x308a99(0x451)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x16cfb5+_0x308a99(0x513));return _0x16cfb5;}function ra(_0x36babf,_0x38580f,_0x491315){const _0x1e2f66=_0x274f9f;let _0x4778da=new Set(Object[_0x1e2f66(0x33c)](_0x2cbedb)),_0x3be52a=new Set(Object[_0x1e2f66(0x33c)](_0x5914e9)),_0x91c02e=new Set(Object[_0x1e2f66(0x33c)](_0x300409));if(!_0x4778da['has'](_0x38580f['target']))throw Error(_0x1e2f66(0x524)+_0x491315+'\x20has\x20unsupported\x20target\x20\x22'+String(_0x38580f[_0x1e2f66(0x50d)])+'\x22.');let _0xd6372c=typeof _0x38580f['fieldId']==_0x1e2f66(0x3c6)?_0x36babf['fields'][_0x38580f[_0x1e2f66(0x419)]]:void 0x0;if(!_0xd6372c||_0xd6372c[_0x1e2f66(0x3a9)]===!0x0||_0xd6372c[_0x1e2f66(0x2b9)]===_0x11438e[_0x1e2f66(0x20d)])throw Error(_0x1e2f66(0x524)+_0x491315+_0x1e2f66(0x2f7)+String(_0x38580f[_0x1e2f66(0x419)])+'\x22.');if(!_0x3be52a[_0x1e2f66(0x51e)](_0x38580f[_0x1e2f66(0x401)]))throw Error(_0x1e2f66(0x524)+_0x491315+_0x1e2f66(0x50f)+String(_0x38580f[_0x1e2f66(0x401)])+'\x22.');if(_0x38580f['dateMode']!==void 0x0&&!_0x91c02e['has'](_0x38580f[_0x1e2f66(0x205)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x491315+_0x1e2f66(0x404)+String(_0x38580f['dateMode'])+'\x22.');if(_0x38580f[_0x1e2f66(0x50d)]===_0x2cbedb['COLUMN'])return;let _0x314a39=$t(_0xd6372c[_0x1e2f66(0x2b9)]);if(!_0x314a39['includes'](_0x38580f[_0x1e2f66(0x401)]))throw Error(_0x1e2f66(0x524)+_0x491315+_0x1e2f66(0x4d8)+_0x38580f[_0x1e2f66(0x401)]+_0x1e2f66(0x472)+_0xd6372c[_0x1e2f66(0x2b9)]+_0x1e2f66(0x454)+_0x314a39['join'](',\x20')+'.');if(_0x38580f[_0x1e2f66(0x205)]!==void 0x0&&!en(_0xd6372c[_0x1e2f66(0x2b9)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x491315+_0x1e2f66(0x226));}const ia={'id':_0x274f9f(0x4e4),'type':_0x154d7f[_0x274f9f(0x1e9)],'handler':(_0x495c25,_0x31e0bd)=>{const _0x3b3489=_0x274f9f;if(!_0x31e0bd)return!0x1;let _0x5bc10b=_0x495c25[_0x3b3489(0x23e)](_0x310540),{unitId:_0x270665,tableId:_0x3ce689,viewId:_0x50234e,patch:_0x47dbff}=_0x31e0bd,_0x51bb03=_0x5bc10b['getUnit'](_0x270665,_0x993548['UNIVER_BASE']);if(!_0x51bb03||!Q(_0x51bb03,_0x3ce689,{'viewIds':[_0x50234e]}))return!0x1;let _0x5e10d9=_0x495c25[_0x3b3489(0x23e)](_0x232cd6),_0x31f919=_0x495c25[_0x3b3489(0x23e)](_0x56cd6a),_0x3ec692=_0x51bb03[_0x3b3489(0x2d0)](),_0x27dbb9=new W()['updateViewConfig'](_0x3ec692,_0x3ce689,_0x50234e,_0x47dbff),_0x2c2659=new z()[_0x3b3489(0x2c6)](_0x3ec692,_0x27dbb9),_0x6673d0={'unitId':_0x270665,'op':_0x27dbb9},_0x5457d0={'unitId':_0x270665,'op':_0x2c2659};return _0x5e10d9[_0x3b3489(0x421)](Z['id'],_0x6673d0)?(_0x5bc10b[_0x3b3489(0x1df)](_0x270665),_0x31f919[_0x3b3489(0x3d4)]({'unitID':_0x270665,'undoMutations':[{'id':Z['id'],'params':_0x5457d0}],'redoMutations':[{'id':Z['id'],'params':_0x6673d0}]}),!0x0):!0x1;}};function aa(_0x47f599){const _0x2f73e1=_0x274f9f;let _0xb9cfed=_0x47f599[_0x2f73e1(0x4df)]??Date[_0x2f73e1(0x4df)](),_0x4b0a07=_0x47f599[_0x2f73e1(0x2db)]??_0x47f599['id']+'-field-name',_0x42d040=_0x47f599['gridViewId']??_0x47f599['id']+_0x2f73e1(0x40b),_0x2a6bc4=_0x47f599['recordCount']??0x0,_0x1543b8=_0x4bb477(),_0x297a08={'id':_0x4b0a07,'name':_0x47f599['primaryFieldName']??_0x2f73e1(0x41f),'type':_0x11438e[_0x2f73e1(0x267)],'config':{'placeholder':_0x2f73e1(0x383)}},_0x2ff67d={},_0x288dd3=[],_0x1a11e7={},_0x1483ac={},_0x546628={};for(let _0x436a12=0x0;_0x436a12<_0x2a6bc4;_0x436a12++){let _0x5d17bf=_0x47f599['id']+'-record-'+(_0x436a12+0x1);_0x2ff67d[_0x5d17bf]={'id':_0x5d17bf,'values':{[_0x525439]:_0x5d17bf,..._0x47f599['recordNamePrefix']?{[_0x4b0a07]:_0x47f599[_0x2f73e1(0x296)]+'\x20'+(_0x436a12+0x1)}:{}},'orderKey':String(_0x436a12+0x1)[_0x2f73e1(0x40c)](0x4,'0'),'createdAt':_0xb9cfed,'updatedAt':_0xb9cfed},_0x288dd3[_0x2f73e1(0x254)](_0x5d17bf),_0x1a11e7[_0x5d17bf]=_0x436a12,_0x1483ac[_0x436a12]=_0x5d17bf,_0x546628[_0x436a12]={0x0:{'v':_0x5d17bf,'t':_0x332e7b[_0x2f73e1(0x2a3)]}},_0x47f599[_0x2f73e1(0x296)]&&(_0x546628[_0x436a12][0x1]={'v':_0x47f599['recordNamePrefix']+'\x20'+(_0x436a12+0x1),'t':_0x332e7b['STRING']});}let _0x1ca508={'id':_0x42d040,'tableId':_0x47f599['id'],'name':'Grid','type':_0x31904d[_0x2f73e1(0x4a0)],'fieldOrder':[_0x525439,_0x4b0a07],'fieldSettings':{[_0x525439]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x47f599['id'],'name':_0x47f599[_0x2f73e1(0x248)],'primaryFieldId':_0x4b0a07,'fieldOrder':[_0x525439,_0x4b0a07],'fields':{[_0x525439]:_0x1543b8,[_0x4b0a07]:_0x297a08},'records':_0x2ff67d,'recordOrder':_0x288dd3,'rowIndex':_0x1a11e7,'rowId':_0x1483ac,'colIndex':{[_0x525439]:0x0,[_0x4b0a07]:0x1},'colId':{0x0:_0x525439,0x1:_0x4b0a07},'cellData':_0x546628,'views':{[_0x42d040]:_0x1ca508},'viewOrder':[_0x42d040]};}const oa='UNIVER_EMBED_BASES_TABLE';function sa(_0xf56f76){const _0x309732=_0x274f9f;let _0x5a4082=aa({'id':_0xf56f76[_0x309732(0x1e0)],'name':_0xf56f76[_0x309732(0x248)]??_0xf56f76[_0x309732(0x46f)],'recordCount':0x0});return{..._0x5a4082,'resources':{..._0x5a4082[_0x309732(0x42d)]??{},[oa]:ua(_0xf56f76)}};}function ca(_0x440624){const _0x143a55=_0x274f9f;return{'id':Z['id'],'params':{'unitId':_0x440624[_0x143a55(0x4bb)],'op':new W()['createTable'](_0x440624[_0x143a55(0x363)],_0x440624['table'],_0x440624[_0x143a55(0x519)]),'trigger':'embed-ui'}};}function la(_0x2059c3){const _0x290a80=_0x274f9f;let _0x1bd5bd=_0x2059c3['snapshot']['tableOrder'][_0x290a80(0x502)](_0x2059c3[_0x290a80(0x37e)]);if(!(!_0x2059c3['snapshot'][_0x290a80(0x529)][_0x2059c3[_0x290a80(0x37e)]]||_0x1bd5bd<0x0))return{'id':Z['id'],'params':{'unitId':_0x2059c3[_0x290a80(0x4bb)],'op':new W()['deleteTable'](_0x2059c3[_0x290a80(0x363)],_0x2059c3[_0x290a80(0x37e)]),'trigger':_0x290a80(0x335)}};}function ua(_0x633863){const _0x2d69f5=_0x274f9f;return{'version':0x1,'embedId':_0x633863[_0x2d69f5(0x46f)],'hostAnchorId':_0x633863[_0x2d69f5(0x1e0)],'childUnitId':_0x633863['childUnitId'],'childType':_0x633863[_0x2d69f5(0x2fc)]};}function da(_0x2ea7f0){const _0x2223a2=_0x274f9f;let _0x2b9510=Math['max'](0x0,Number(_0x2ea7f0[_0x2223a2(0x3cb)]??0x0)),_0x4460e6=_0x2ea7f0[_0x2223a2(0x4f0)]===!0x1?'0':_0x2223a2(0x445),_0x2a5946=_0x2b9510?'.'+'0'[_0x2223a2(0x1eb)](_0x2b9510):'',_0x1fa60=pa(_0x2ea7f0[_0x2223a2(0x209)]);return''+(_0x2ea7f0[_0x2223a2(0x43a)]?ma(_0x2ea7f0[_0x2223a2(0x43a)]):'')+_0x4460e6+_0x2a5946+_0x1fa60;}function fa(_0x1770c2,_0x32a3e8){const _0x1ca1e5=_0x274f9f;let _0xa422e5=da(_0x32a3e8),_0x2b4b76=_0x3efcdb[_0x1ca1e5(0x483)](_0xa422e5,_0x1770c2,{'throws':!0x1});return ha(String(_0x2b4b76),_0x32a3e8[_0x1ca1e5(0x21e)],_0x32a3e8[_0x1ca1e5(0x232)]);}function pa(_0x49022f){const _0x47a4be=_0x274f9f;return _0x49022f==='K'?_0x47a4be(0x1d4):_0x49022f==='M'?_0x47a4be(0x4d6):_0x49022f==='B'?_0x47a4be(0x328):'';}function ma(_0x97fa6f){return/^[A-Z]+$/i['test'](_0x97fa6f)?'\x22'+_0x97fa6f+'\x22':_0x97fa6f;}function ha(_0xd6c982,_0x2029d6,_0x1c4dee){const _0x15792d=_0x274f9f;let _0x55626d=_0x2029d6===_0x15792d(0x29b)?ga(_0x1c4dee):_0x2029d6;return _0x55626d===_0x15792d(0x3bd)?_0xd6c982[_0x15792d(0x386)](/,/g,'\x00')[_0x15792d(0x386)](/\./g,',')[_0x15792d(0x386)](/\0/g,'.'):_0x55626d===_0x15792d(0x30b)?_0xd6c982[_0x15792d(0x386)](/,/g,'\x20')[_0x15792d(0x386)](/\./g,','):_0x55626d===_0x15792d(0x2bb)?_0xd6c982[_0x15792d(0x386)](/,/g,'\x20'):_0xd6c982;}function ga(_0x55abf3){const _0x90c174=_0x274f9f;var _0x3d3b09,_0x4763a3;let _0x5ca621=_0x55abf3||new Intl[(_0x90c174(0x3a7))]()[_0x90c174(0x2ce)]()[_0x90c174(0x232)],_0x2cabd6;try{_0x2cabd6=new Intl[(_0x90c174(0x3a7))](_0x5ca621,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x90c174(0x2fb)](0xf4240);}catch{return _0x90c174(0x382);}let _0x287ffa=(_0x3d3b09=_0x2cabd6[_0x90c174(0x271)](_0xed6669=>_0xed6669['type']===_0x90c174(0x394)))==null?void 0x0:_0x3d3b09[_0x90c174(0x42f)],_0x5ca267=(_0x4763a3=_0x2cabd6[_0x90c174(0x271)](_0x478cec=>_0x478cec[_0x90c174(0x2b9)]===_0x90c174(0x30f)))==null?void 0x0:_0x4763a3[_0x90c174(0x42f)],_0x1e7082=_0x287ffa==='\u00a0'||_0x287ffa==='\u202f'?'\x20':_0x287ffa;return _0x1e7082==='.'&&_0x5ca267===','?_0x90c174(0x3bd):_0x1e7082==='\x20'&&_0x5ca267===','?_0x90c174(0x30b):_0x1e7082==='\x20'&&_0x5ca267==='.'?_0x90c174(0x2bb):'commaPeriod';}function _a(_0x35601b,_0x1e8f12){const _0x51db11=_0x274f9f;let _0x4b4caa=_0x1e8f12&&typeof _0x1e8f12==_0x51db11(0x314)&&!Array[_0x51db11(0x39e)](_0x1e8f12)?_0x1e8f12:{},_0x591601=va(_0x4b4caa['decimalPlaces'],0x0,0x2,0x0),_0x2f2e75=_0x35601b['toFixed'](_0x591601);return _0x4b4caa[_0x51db11(0x483)]===_0x51db11(0x4b3)?_0x2f2e75:_0x2f2e75+'%';}function va(_0x5d034f,_0x4b383c,_0x2e7bd5,_0x59feaf){const _0x2c9fb5=_0x274f9f;if(_0x5d034f==null||_0x5d034f==='')return _0x59feaf;let _0x49198f=typeof _0x5d034f==_0x2c9fb5(0x4b3)?_0x5d034f:Number(_0x5d034f);return Number[_0x2c9fb5(0x1ee)](_0x49198f)?Math[_0x2c9fb5(0x3f9)](_0x4b383c,Math['min'](_0x2e7bd5,Math['round'](_0x49198f))):_0x59feaf;}const ya=[_0x274f9f(0x1d5),_0x274f9f(0x3f2),_0x274f9f(0x3c2),_0x274f9f(0x2a2),_0x274f9f(0x39d),_0x274f9f(0x46e),'min',_0x274f9f(0x3f9)],ba=[_0x274f9f(0x1d5),_0x274f9f(0x3f2),_0x274f9f(0x3c2),_0x274f9f(0x2a2)],xa=[_0x274f9f(0x39d),_0x274f9f(0x46e),_0x274f9f(0x4ff),_0x274f9f(0x3f9)],Sa=['min',_0x274f9f(0x3f9)],Ca=new Set([_0x11438e[_0x274f9f(0x43e)],_0x11438e[_0x274f9f(0x453)],_0x11438e[_0x274f9f(0x298)],_0x11438e[_0x274f9f(0x259)]]),wa=new Set([_0x11438e[_0x274f9f(0x3a5)],_0x11438e[_0x274f9f(0x33d)],_0x11438e['Group']]),Ta='General';function Ea(_0xa0176b){const _0x24e23a=_0x274f9f;return typeof _0xa0176b==_0x24e23a(0x3c6)&&ya['includes'](_0xa0176b);}function Da(_0x220f0c){const _0x1b18e6=_0x274f9f;return!_0x220f0c||typeof _0x220f0c!=_0x1b18e6(0x314)?{}:Object['fromEntries'](Object['entries'](_0x220f0c)[_0x1b18e6(0x458)](_0x30069e=>Ea(_0x30069e[0x1])));}function Oa(_0x28398d){const _0x55e72c=_0x274f9f;return Ca[_0x55e72c(0x51e)](_0x28398d['type'])?[...ba,...xa]:_0x28398d[_0x55e72c(0x2b9)]===_0x11438e[_0x55e72c(0x525)]?[...ba,...Ua(_0x28398d)==='date'?Sa:xa]:ba;}function ka(_0x4eca4e,_0xd4fc54){const _0x19cf3d=_0x274f9f;return Oa(_0x4eca4e)[_0x19cf3d(0x1d2)](_0xd4fc54);}function Aa(_0xabbc53,_0x1e2cdd,_0x5285f2){const _0x4f1279=_0x274f9f;if(!ka(_0xabbc53,_0x5285f2))return null;let _0x5032c2=_0x1e2cdd[_0x4f1279(0x458)](_0x468f43=>!Ma(_0xabbc53,_0x468f43));switch(_0x5285f2){case _0x4f1279(0x1d5):return _0x1e2cdd[_0x4f1279(0x353)];case'filled':return _0x5032c2[_0x4f1279(0x353)];case _0x4f1279(0x3c2):return _0x1e2cdd[_0x4f1279(0x353)]-_0x5032c2[_0x4f1279(0x353)];case _0x4f1279(0x2a2):return new Set(_0x5032c2[_0x4f1279(0x22e)](_0x12d819=>Ia(_0xabbc53,_0x12d819)))[_0x4f1279(0x43d)];case _0x4f1279(0x39d):{let _0x1165e2=Na(_0xabbc53,_0x5032c2);return _0x1165e2[_0x4f1279(0x353)]?Fa(_0x1165e2):null;}case _0x4f1279(0x46e):{let _0x188235=Na(_0xabbc53,_0x5032c2);return _0x188235['length']?Fa(_0x188235)/_0x188235['length']:null;}case _0x4f1279(0x4ff):{let _0x2b5d61=Na(_0xabbc53,_0x5032c2);return _0x2b5d61[_0x4f1279(0x353)]?Math[_0x4f1279(0x4ff)](..._0x2b5d61):null;}case _0x4f1279(0x3f9):{let _0x4211bc=Na(_0xabbc53,_0x5032c2);return _0x4211bc[_0x4f1279(0x353)]?Math[_0x4f1279(0x3f9)](..._0x4211bc):null;}}}function ja(_0x4ed3f9,_0x7e5856,_0x23069d){const _0x353c12=_0x274f9f;if(_0x23069d==null||!Number['isFinite'](_0x23069d))return'-';if(ba[_0x353c12(0x1d2)](_0x7e5856))return String(_0x23069d);switch(_0x4ed3f9['type']){case _0x11438e[_0x353c12(0x43e)]:return fa(_0x23069d,Ba(_0x4ed3f9));case _0x11438e[_0x353c12(0x453)]:return fa(_0x23069d,Va(_0x4ed3f9));case _0x11438e[_0x353c12(0x298)]:return _a(_0x23069d,_0x4ed3f9[_0x353c12(0x427)]);case _0x11438e[_0x353c12(0x525)]:return Ha(_0x23069d,_0x4ed3f9);default:return Ga(_0x23069d);}}function Ma(_0x3927f3,_0x31aec2){const _0xbf4d6c=_0x274f9f;if(_0x31aec2==null)return!0x0;if(typeof _0x31aec2=='string')return _0x31aec2[_0xbf4d6c(0x2ba)]()==='';if(Array[_0xbf4d6c(0x39e)](_0x31aec2))return _0x3927f3[_0xbf4d6c(0x2b9)]===_0x11438e[_0xbf4d6c(0x31e)]?!_0x31aec2[_0xbf4d6c(0x29f)](za):_0x31aec2[_0xbf4d6c(0x353)]===0x0;if(_0x3927f3[_0xbf4d6c(0x2b9)]===_0x11438e['Link']&&typeof _0x31aec2=='object'){let _0x266a0a=_0x31aec2;return[_0x266a0a[_0xbf4d6c(0x2d7)],_0x266a0a['url']]['every'](_0x45dbc8=>_0x45dbc8==null||String(_0x45dbc8)[_0xbf4d6c(0x2ba)]()==='');}return!0x1;}function Na(_0x5479fb,_0x2ae95a){const _0x1648f3=_0x274f9f;let _0x227a4b=[];for(let _0x4825bf of _0x2ae95a){let _0x575447=Pa(_0x5479fb,_0x4825bf);_0x575447!=null&&_0x227a4b[_0x1648f3(0x254)](_0x575447);}return _0x227a4b;}function Pa(_0x23bc1d,_0x3e3e78){const _0x169beb=_0x274f9f;if(typeof _0x3e3e78==_0x169beb(0x4b3))return Number[_0x169beb(0x1ee)](_0x3e3e78)?_0x3e3e78:null;if(_0x23bc1d[_0x169beb(0x2b9)]!==_0x11438e[_0x169beb(0x525)]&&typeof _0x3e3e78==_0x169beb(0x3c6)&&_0x3e3e78['trim']()!==''){let _0x5acfdc=Number(_0x3e3e78);return Number['isFinite'](_0x5acfdc)?_0x5acfdc:null;}return null;}function Fa(_0x14aacb){const _0x128341=_0x274f9f;let _0x10e581=0x0,_0x3cdffa=0x0;for(let _0x5f5d59 of _0x14aacb){let _0x18d4a2=_0x10e581+_0x5f5d59;_0x3cdffa+=Math[_0x128341(0x2f1)](_0x10e581)>=Math[_0x128341(0x2f1)](_0x5f5d59)?_0x10e581-_0x18d4a2+_0x5f5d59:_0x5f5d59-_0x18d4a2+_0x10e581,_0x10e581=_0x18d4a2;}return _0x10e581+_0x3cdffa;}function Ia(_0x189fb3,_0x105387){const _0x5530f5=_0x274f9f;return wa[_0x5530f5(0x51e)](_0x189fb3[_0x5530f5(0x2b9)])&&Array[_0x5530f5(0x39e)](_0x105387)?Ra([...new Set(_0x105387[_0x5530f5(0x22e)](_0x291f49=>Ra(La(_0x291f49))))][_0x5530f5(0x456)]()):Ra(La(_0x105387));}function La(_0x456c98){const _0x5df7fe=_0x274f9f;return Array[_0x5df7fe(0x39e)](_0x456c98)?_0x456c98[_0x5df7fe(0x22e)](La):_0x456c98&&typeof _0x456c98==_0x5df7fe(0x314)?Object['fromEntries'](Object[_0x5df7fe(0x2d4)](_0x456c98)['sort'](([_0x1ce1b1],[_0x19d6a2])=>_0x1ce1b1[_0x5df7fe(0x1fe)](_0x19d6a2))[_0x5df7fe(0x22e)](([_0x2adccc,_0x3c9932])=>[_0x2adccc,La(_0x3c9932)])):_0x456c98;}function Ra(_0x3c571f){const _0x2f573e=_0x274f9f;return JSON[_0x2f573e(0x2b6)](_0x3c571f)??'undefined';}function za(_0xa7fa5d){const _0x3bfb8e=_0x274f9f;if(typeof _0xa7fa5d=='string')return _0xa7fa5d[_0x3bfb8e(0x2ba)]()!=='';if(!_0xa7fa5d||typeof _0xa7fa5d!=_0x3bfb8e(0x314))return!0x1;let _0x221130=_0xa7fa5d;return[_0x221130['id'],_0x221130[_0x3bfb8e(0x248)],_0x221130['source'],_0x221130['url'],_0x221130['thumbnail']][_0x3bfb8e(0x29f)](_0x53ce3c=>_0x53ce3c!=null&&String(_0x53ce3c)[_0x3bfb8e(0x2ba)]()!=='');}function Ba(_0x99b724){const _0x342ef4=_0x274f9f;let _0x1bebf5=Ka(_0x99b724[_0x342ef4(0x427)]);return{'decimalPlaces':Ja(_0x1bebf5[_0x342ef4(0x3cb)]??_0x1bebf5[_0x342ef4(0x334)],0x0,0x14,0x2),'separatorStyle':typeof _0x1bebf5[_0x342ef4(0x21e)]==_0x342ef4(0x3c6)?_0x1bebf5['separatorStyle']:'local','locale':typeof _0x1bebf5[_0x342ef4(0x232)]=='string'?_0x1bebf5[_0x342ef4(0x232)]:void 0x0,'useThousands':_0x1bebf5[_0x342ef4(0x4f0)]!==!0x1,'abbreviation':typeof _0x1bebf5['abbreviation']==_0x342ef4(0x3c6)?_0x1bebf5[_0x342ef4(0x209)]:_0x342ef4(0x52a)};}function Va(_0x24f7ef){const _0x1e74da=_0x274f9f;let _0x6cb3f3=Ka(_0x24f7ef[_0x1e74da(0x427)]);return{...Ba(_0x24f7ef),'currencySymbol':String(_0x6cb3f3[_0x1e74da(0x43a)]??_0x6cb3f3[_0x1e74da(0x244)]??'$')};}function Ha(_0x317082,_0x239109){let _0x309924=Wa(_0x239109);if(_0x309924===Ta)return Ga(_0x317082);try{return String(_0x3efcdb['format'](_0x309924,_0x317082,{'throws':!0x1}));}catch{return Ga(_0x317082);}}function Ua(_0x3fee68){const _0x30611d=_0x274f9f;let _0x206c9c=Ka(Ka(_0x3fee68[_0x30611d(0x427)])['numfmt']);return typeof _0x206c9c[_0x30611d(0x2b9)]==_0x30611d(0x3c6)?_0x206c9c[_0x30611d(0x2b9)]:_0x30611d(0x2f0);}function Wa(_0x5dd89e){const _0x439965=_0x274f9f;let _0x275002=Ka(Ka(_0x5dd89e[_0x439965(0x427)])[_0x439965(0x38a)]);return String(_0x275002[_0x439965(0x471)]??Ta)[_0x439965(0x2ba)]()||Ta;}function Ga(_0x5cedfc){const _0x3016aa=_0x274f9f;return String(Number[_0x3016aa(0x1f5)](_0x5cedfc)?_0x5cedfc:Math['round']((_0x5cedfc+0x2**-0x34)*0x64)/0x64);}function Ka(_0x4217af){const _0x3c36eb=_0x274f9f;return _0x4217af&&typeof _0x4217af==_0x3c36eb(0x314)&&!Array[_0x3c36eb(0x39e)](_0x4217af)?_0x4217af:{};}function qa(_0xf2358b){const _0x3d8160=_0x274f9f;if(_0xf2358b==null||_0xf2358b==='')return null;let _0x17ec84=typeof _0xf2358b==_0x3d8160(0x4b3)?_0xf2358b:Number(_0xf2358b);return Number[_0x3d8160(0x1ee)](_0x17ec84)?_0x17ec84:null;}function Ja(_0x3b3b23,_0x2740fa,_0x51c8f8,_0x5f3c6a){const _0x501853=_0x274f9f;let _0x1e7bcb=qa(_0x3b3b23);return _0x1e7bcb==null?_0x5f3c6a:Math[_0x501853(0x3f9)](_0x2740fa,Math['min'](_0x51c8f8,Math[_0x501853(0x4f1)](_0x1e7bcb)));}function Ya(_0x35cd23,_0x348c9a){const _0x5f0ddd=_0x274f9f;let _0x5dfefc=_0x12a306[_0x5f0ddd(0x523)](_0x35cd23),_0x12e734=_0x348c9a[_0x5f0ddd(0x410)]===!0x0,_0x200c3f=new Map(),_0x33c3e9=_0x348c9a[_0x5f0ddd(0x2cf)]??(()=>_0x5f0ddd(0x3a3)+_0x3a2895(0x8)),_0x58f658=_0x5dfefc[_0x5f0ddd(0x3bc)];return _0x348c9a[_0x5f0ddd(0x266)]&&(_0x58f658=_0x5dfefc[_0x5f0ddd(0x3bc)]['map'](_0x53ac42=>{let _0x771ccd=_0x33c3e9();return _0x200c3f['set'](_0x53ac42,_0x771ccd),_0x771ccd;})),{..._0x5dfefc,'id':_0x348c9a['id'],'name':_0x348c9a[_0x5f0ddd(0x248)],'records':_0x12e734?_0x5dfefc[_0x5f0ddd(0x3c4)]:{},'recordOrder':_0x12e734?_0x5dfefc[_0x5f0ddd(0x4fd)]:[],'rowIndex':_0x12e734?_0x5dfefc[_0x5f0ddd(0x269)]:{},'rowId':_0x12e734?_0x5dfefc[_0x5f0ddd(0x47c)]:{},'cellData':_0x12e734?_0x5dfefc['cellData']:{},'resources':_0x12e734?_0x5dfefc[_0x5f0ddd(0x42d)]:{},'viewOrder':_0x58f658,'views':Object[_0x5f0ddd(0x372)](Object[_0x5f0ddd(0x2d4)](_0x5dfefc['views']??{})[_0x5f0ddd(0x22e)](([_0x9bd1b3,_0x33b5d4])=>{const _0x4e4d78=_0x5f0ddd;let _0x4781a9=_0x200c3f[_0x4e4d78(0x23e)](_0x9bd1b3)??(_0x348c9a[_0x4e4d78(0x266)]?_0x33c3e9():_0x9bd1b3);return[_0x4781a9,{..._0x33b5d4,'id':_0x4781a9,'tableId':_0x348c9a['id']}];}))};}var Xa=_0x274f9f(0x41e),Za=_0x274f9f(0x51a);const Qa={},$a={};function eo(_0x204417){const _0x4c06b9=_0x274f9f;return new z()[_0x4c06b9(0x301)](_0x204417);}function to(_0x51ad7c){const _0x43ce3f=_0x274f9f;return _0x51ad7c[_0x43ce3f(0x215)][_0x43ce3f(0x22e)](_0x48933c=>({'unitId':_0x51ad7c[_0x43ce3f(0x4bb)],'sheetId':_0x51ad7c[_0x43ce3f(0x37e)],'range':{'startRow':_0x48933c[_0x43ce3f(0x264)],'endRow':_0x48933c['row'],'startColumn':_0x48933c[_0x43ce3f(0x355)],'endColumn':_0x48933c['col']}}));}function no(_0x3adf7b,_0x5eb47c){const _0x2f8733=_0x274f9f;return{[_0x3adf7b]:Object[_0x2f8733(0x372)](_0x5eb47c[_0x2f8733(0x22e)](_0x5cd9a2=>[_0x5cd9a2,'1']))};}let ro=class extends _0x4191ab{constructor(_0x21ba76,_0x5d5708){const _0x39043c=_0x274f9f;super(),this[_0x39043c(0x474)]=_0x21ba76,this[_0x39043c(0x46b)]=_0x5d5708,this['_initialize']();}[_0x274f9f(0x28b)](){const _0x21d6e5=_0x274f9f;this[_0x21d6e5(0x474)][_0x21d6e5(0x406)](Z['id'],{'commandId':Z['id'],'getDirtyData':_0x230d3f=>this[_0x21d6e5(0x43b)](_0x230d3f[_0x21d6e5(0x50a)])}),this[_0x21d6e5(0x45c)](_0x26ad0b(()=>{const _0x16cfe1=_0x21d6e5;this['_activeDirtyManagerService'][_0x16cfe1(0x345)](Z['id']);}));}['_getTable'](_0x4bd1c4,_0x56d7e6){const _0x39c9de=_0x274f9f;let _0x168062=this[_0x39c9de(0x46b)][_0x39c9de(0x462)](_0x4bd1c4,_0x993548[_0x39c9de(0x3f1)]);return(_0x168062==null?void 0x0:_0x168062[_0x39c9de(0x2d0)]()[_0x39c9de(0x529)][_0x56d7e6])??null;}[_0x274f9f(0x43b)](_0x5b072c){const _0x5ee9fc=_0x274f9f;if(_0x5b072c[_0x5ee9fc(0x3b2)]===_0x5ee9fc(0x270))return{};if(!_0x5b072c[_0x5ee9fc(0x4bb)]||!_0x5b072c['op'])return{'clearDependencyTreeCache':this[_0x5ee9fc(0x24b)](),'forceCalculation':!0x0};let _0xf38d20=eo(_0x5b072c['op']),_0xdeab69=this['_getStructureDirtyTableIds'](_0x5b072c[_0x5ee9fc(0x4bb)],_0xf38d20);if(_0xdeab69[_0x5ee9fc(0x353)])return{'clearDependencyTreeCache':no(_0x5b072c[_0x5ee9fc(0x4bb)],_0xdeab69),'forceCalculation':!0x0};let _0x5e423b=Object[_0x5ee9fc(0x2d4)](this[_0x5ee9fc(0x485)](_0x5b072c['unitId'],_0xf38d20))[_0x5ee9fc(0x25e)](([_0x48e3c9,_0x54627c])=>to({'unitId':_0x5b072c[_0x5ee9fc(0x4bb)],'tableId':_0x48e3c9,'patches':_0x54627c}));return _0x5e423b[_0x5ee9fc(0x353)]?{'dirtyRanges':_0x5e423b}:{};}[_0x274f9f(0x4eb)](_0x3da4a1,_0x4ab21c){const _0x1b1bd3=_0x274f9f;let _0x2ffc3d=_0x4ab21c[_0x1b1bd3(0x458)](_0x1fcead=>_0x1fcead[_0x1b1bd3(0x257)]!==_0x1b1bd3(0x3aa))[_0x1b1bd3(0x25e)](_0x40ebb6=>_0x40ebb6[_0x1b1bd3(0x37e)]?[_0x40ebb6['tableId']]:this['_getAllTableIds'](_0x3da4a1));return Array[_0x1b1bd3(0x2a4)](new Set(_0x2ffc3d));}[_0x274f9f(0x485)](_0x19011c,_0x4e2995){let _0x5920e7=new Set();return _0x4e2995['reduce']((_0x204fac,_0x264262)=>{const _0x4ba456=_0x2f15;let _0xea7d4f=this[_0x4ba456(0x3f0)](_0x19011c,_0x264262);if(!_0xea7d4f)return _0x204fac;let _0x2a330b=_0x264262[_0x4ba456(0x37e)]+':'+_0xea7d4f[_0x4ba456(0x264)]+':'+_0xea7d4f['col'];return _0x5920e7['has'](_0x2a330b)?_0x204fac:(_0x5920e7[_0x4ba456(0x4a3)](_0x2a330b),_0x204fac[_0x264262[_0x4ba456(0x37e)]]=_0x204fac[_0x264262['tableId']]??[],_0x204fac[_0x264262[_0x4ba456(0x37e)]][_0x4ba456(0x254)](_0xea7d4f),_0x204fac);},{});}[_0x274f9f(0x3f0)](_0xfcd1d5,_0x214542){const _0x242a43=_0x274f9f;if(_0x214542[_0x242a43(0x257)]!=='cell')return null;if(_0x214542[_0x242a43(0x264)]!=null&&_0x214542['column']!=null)return{'row':_0x214542['row'],'col':_0x214542[_0x242a43(0x42e)],'value':null};if(!_0x214542[_0x242a43(0x44a)]||!_0x214542[_0x242a43(0x419)])return null;let _0x23165e=this['_getTable'](_0xfcd1d5,_0x214542[_0x242a43(0x37e)]);if(!_0x23165e)return null;let _0x5f4d0d=tt(_0x23165e,_0x214542['recordId'],_0x214542[_0x242a43(0x419)]);return _0x5f4d0d?{'row':_0x5f4d0d[_0x242a43(0x264)],'col':_0x5f4d0d[_0x242a43(0x355)],'value':null}:null;}[_0x274f9f(0x38d)](_0x391c2d){const _0x3cabb7=_0x274f9f;let _0x4ddb90=this[_0x3cabb7(0x46b)][_0x3cabb7(0x462)](_0x391c2d,_0x993548['UNIVER_BASE']);return Object[_0x3cabb7(0x33c)]((_0x4ddb90==null?void 0x0:_0x4ddb90[_0x3cabb7(0x2d0)]()[_0x3cabb7(0x529)])??{})[_0x3cabb7(0x22e)](_0x1b70d3=>_0x1b70d3['id']);}[_0x274f9f(0x24b)](){const _0x3bd25d=_0x274f9f;let _0x424d81=this[_0x3bd25d(0x46b)]['getAllUnitsForType'](_0x993548[_0x3bd25d(0x3f1)])['map'](_0xe86fb8=>no(_0xe86fb8[_0x3bd25d(0x435)](),Object[_0x3bd25d(0x311)](_0xe86fb8[_0x3bd25d(0x2d0)]()[_0x3bd25d(0x529)])));return Object[_0x3bd25d(0x200)]({},..._0x424d81);}};ro=q([K(0x0,_0x27fac4),K(0x1,_0x310540)],ro);const io=_0x3f679a['createRegExpFromSafeFragment'](String[_0x274f9f(0x422)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),ao=_0x3f679a[_0x274f9f(0x4c1)](String['raw']`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),oo=/\{([^}]+)\}/g,so=_0x3f679a[_0x274f9f(0x4c1)](String['raw']`\b([A-Z_]\w*)\[([^\]]+)\]`,'gi'),co=_0x3f679a[_0x274f9f(0x4c1)](String[_0x274f9f(0x422)]`(^|[^\w\][])\[([^\]]+)\]`,'g');var lo=class{[_0x274f9f(0x4d0)](_0x3d398e,_0x408d99=_0x3d398e['id']){const _0x395b29=_0x274f9f;var _0x460e31;let _0xc2b28c=((_0x460e31=_0x3d398e['recordOrder'])==null?void 0x0:_0x460e31[_0x395b29(0x353)])??Object['values'](_0x3d398e[_0x395b29(0x3c4)])[_0x395b29(0x353)];return{'sheetId':_0x408d99,'titleMap':new Map(_0x3d398e[_0x395b29(0x47a)][_0x395b29(0x22e)]((_0x549fcf,_0x1c1ed5)=>{const _0x13526d=_0x395b29;var _0x280ef3;return[((_0x280ef3=_0x3d398e[_0x13526d(0x39f)][_0x549fcf])==null?void 0x0:_0x280ef3['name'])??_0x549fcf,_0x1c1ed5];})),'range':{'startRow':0x0,'endRow':Math[_0x395b29(0x3f9)](0x0,_0xc2b28c-0x1),'startColumn':0x0,'endColumn':Math[_0x395b29(0x3f9)](0x0,_0x3d398e[_0x395b29(0x47a)][_0x395b29(0x353)]-0x1)},'showHeader':!0x1};}[_0x274f9f(0x231)](_0x80f4e0,_0x486997,_0x48892f,_0x44a7c6={}){const _0x4542c2=_0x274f9f;let _0x314988=this[_0x4542c2(0x4d0)](_0x48892f,_0x44a7c6[_0x4542c2(0x498)]??_0x48892f['id']);return new Set([_0x48892f['id'],_0x48892f[_0x4542c2(0x248)],_0x44a7c6['tableName']][_0x4542c2(0x458)](_0x40e9a9=>!!_0x40e9a9))[_0x4542c2(0x366)](_0x41f18b=>_0x80f4e0[_0x4542c2(0x4bc)](_0x486997,_0x41f18b,_0x314988)),_0x314988;}['registerSuperTables'](_0x445409,_0x493f86){const _0x38554d=_0x274f9f;let _0x4af4f9=this[_0x38554d(0x3dd)](_0x493f86);return _0x4af4f9['forEach'](({tableName:_0x24089b,reference:_0x137b2b})=>{const _0x422955=_0x38554d;_0x445409[_0x422955(0x4bc)](_0x493f86['id'],_0x24089b,_0x137b2b);}),Array[_0x38554d(0x2a4)](new Set(_0x4af4f9[_0x38554d(0x22e)](({reference:_0x6ad05d})=>_0x6ad05d)));}[_0x274f9f(0x3dd)](_0x388ab4,_0x2bd172){const _0x1e656d=_0x274f9f;let _0x5a9303=[],_0xc312db=_0x2bd172?new Set(_0x2bd172):null,_0x4244a9=new Map();return Object['values'](_0x388ab4[_0x1e656d(0x529)])[_0x1e656d(0x366)](_0x2f4f94=>{const _0x4af467=_0x1e656d;let _0x2d6ce9=_0x2f4f94[_0x4af467(0x248)][_0x4af467(0x2ba)]()['toLowerCase']();_0x4244a9[_0x4af467(0x317)](_0x2d6ce9,(_0x4244a9[_0x4af467(0x23e)](_0x2d6ce9)??0x0)+0x1);}),Object[_0x1e656d(0x33c)](_0x388ab4[_0x1e656d(0x529)])['filter'](_0x5218d7=>!_0xc312db||_0xc312db[_0x1e656d(0x51e)](_0x5218d7['id']))[_0x1e656d(0x366)](_0x2704ba=>{const _0x4a651b=_0x1e656d;let _0x5162f8=this[_0x4a651b(0x4d0)](_0x2704ba,_0x2704ba['id']);_0x5a9303['push']({'tableId':_0x2704ba['id'],'tableName':_0x2704ba['id'],'reference':_0x5162f8}),(_0x4244a9[_0x4a651b(0x23e)](_0x2704ba[_0x4a651b(0x248)][_0x4a651b(0x2ba)]()[_0x4a651b(0x208)]())??0x0)===0x1&&_0x5a9303[_0x4a651b(0x254)]({'tableId':_0x2704ba['id'],'tableName':_0x2704ba[_0x4a651b(0x248)],'reference':_0x5162f8});}),_0x5a9303;}['validateFormula'](_0x4d7c65,_0xbd6e7d,_0x5a5d0b={}){const _0x30b888=_0x274f9f;let _0x59e0cf=_0x4d7c65[_0x30b888(0x2ba)]();if(!_0x59e0cf)return{'valid':!0x0};if(go(_0x59e0cf))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};for(let _0x29f65d of ho(_0x59e0cf)){let _0x362412=So(_0x29f65d,_0xbd6e7d,_0x5a5d0b[_0x30b888(0x363)]);if(!_0x362412[_0x30b888(0x258)])return{'valid':!0x1,'reason':_0x30b888(0x2dd)+_0x29f65d[_0x30b888(0x29e)]+_0x30b888(0x518)};if(!_0x362412[_0x30b888(0x4e6)])return{'valid':!0x1,'reason':_0x30b888(0x4c3)+_0x29f65d[_0x30b888(0x4f5)]+_0x30b888(0x518)};}return{'valid':!0x0};}[_0x274f9f(0x481)](_0x18ffef,_0x2e5776,_0x13519e={}){const _0x51448b=_0x274f9f;let _0xeab29b=new Set();for(let _0x5d57ff of this['getStructuredDependencies'](_0x18ffef,_0x2e5776,_0x13519e))_0x5d57ff['tableId']===_0x2e5776['id']&&_0xeab29b[_0x51448b(0x4a3)](_0x5d57ff[_0x51448b(0x419)]);return Array[_0x51448b(0x2a4)](_0xeab29b);}[_0x274f9f(0x1f2)](_0x5c6932,_0x388714,_0x5456d1={}){const _0x3d5502=_0x274f9f;let _0x28d8d8=new Map();for(let _0x9907f6 of ho(_0x5c6932)){let _0x1b8c2b=So(_0x9907f6,_0x388714,_0x5456d1[_0x3d5502(0x363)]);if(!_0x1b8c2b[_0x3d5502(0x258)]||!_0x1b8c2b[_0x3d5502(0x4e6)])continue;let _0x40f84c=_0x1b8c2b[_0x3d5502(0x258)]['id']+'\x1f'+_0x1b8c2b['field']['id'];_0x28d8d8['set'](_0x40f84c,{'tableId':_0x1b8c2b[_0x3d5502(0x258)]['id'],'fieldId':_0x1b8c2b[_0x3d5502(0x4e6)]['id']});}return Array[_0x3d5502(0x2a4)](_0x28d8d8[_0x3d5502(0x33c)]());}};function uo(_0x20802b,_0x5e9c65){const _0x28d560=_0x274f9f;var _0x3c222b;let _0x4c0392=[],_0x319de7=(_0x3c222b=_0x5e9c65[_0x28d560(0x4d5)])==null?void 0x0:_0x3c222b[_0x20802b['id']];return _0x319de7&&Object[_0x28d560(0x2d4)](_0x319de7)['forEach'](([_0x2a4914,_0x2c93a1])=>{const _0x4bd36f=_0x28d560;let _0x39d9f7=_0x20802b[_0x4bd36f(0x529)][_0x2a4914];if(!_0x39d9f7||!_0x2c93a1)return;let _0x11c402=L(_0x39d9f7),_0x3f80ad=[];new _0x388afb(_0x2c93a1)[_0x4bd36f(0x477)]((_0x603df0,_0xd6e0c1,_0xb40056)=>{let _0x143afd=fo(_0x11c402,_0x603df0,_0xd6e0c1,_0xb40056);_0x143afd&&_0x3f80ad['push'](_0x143afd);}),_0x3f80ad[_0x4bd36f(0x353)]&&_0x4c0392[_0x4bd36f(0x254)]({'unitId':_0x20802b['id'],'tableId':_0x2a4914,'patches':_0x3f80ad});}),_0x4c0392;}function fo(_0x3aeb26,_0x24c495,_0x36d6dc,_0x5521d7){const _0x3b56ee=_0x274f9f;var _0x2309aa,_0x281b73,_0x26ad46;let _0x30c1a7=(_0x2309aa=_0x3aeb26['rowId'])==null?void 0x0:_0x2309aa[_0x24c495],_0x5b888b=(_0x281b73=_0x3aeb26['colId'])==null?void 0x0:_0x281b73[_0x36d6dc];if(!_0x30c1a7||!_0x3aeb26[_0x3b56ee(0x3c4)][_0x30c1a7]||!_0x5b888b)return null;let _0x2f3b80=_0x3aeb26['fields'][_0x5b888b];if(!_0x2f3b80||_0x2f3b80['type']!==_0x3b56ee(0x2c3))return null;let _0x2b484f=String(((_0x26ad46=_0x2f3b80[_0x3b56ee(0x427)])==null?void 0x0:_0x26ad46['formula'])??'')[_0x3b56ee(0x2ba)](),_0x37aa3e=(_0x5521d7==null?void 0x0:_0x5521d7['v'])??null,_0x11eb82={'v':_0x37aa3e,'t':mo(_0x37aa3e),..._0x24c495===0x0&&_0x2b484f?{'f':_0x2b484f}:{},'si':_0x2f3b80['id']};return po(nt(_0x3aeb26,_0x30c1a7,_0x5b888b),_0x11eb82)?null:{'row':_0x24c495,'col':_0x36d6dc,'value':_0x11eb82};}function po(_0xf3a3d8,_0x5b0642){return _0xf3a3d8!=null&&Object['is'](_0xf3a3d8['v']??null,_0x5b0642['v']??null)&&_0xf3a3d8['t']===_0x5b0642['t']&&_0xf3a3d8['f']===_0x5b0642['f']&&_0xf3a3d8['si']===_0x5b0642['si'];}function mo(_0x36b235){const _0x5958d7=_0x274f9f;return typeof _0x36b235==_0x5958d7(0x4b3)?_0x332e7b[_0x5958d7(0x2c8)]:typeof _0x36b235=='boolean'?_0x332e7b[_0x5958d7(0x45d)]:typeof _0x36b235==_0x5958d7(0x3c6)?_0x332e7b[_0x5958d7(0x2a3)]:null;}function ho(_0xdff1c1){const _0x5d2168=_0x274f9f;_0xdff1c1=_o(_0xdff1c1,()=>'');let _0x112e8f=new Map();for(let _0x4787c6 of _0xdff1c1['matchAll'](oo)){let _0x45c0a0={'fieldName':_0x4787c6[0x1]};_0x112e8f[_0x5d2168(0x317)]('\x1f'+_0x45c0a0[_0x5d2168(0x4f5)],_0x45c0a0);}for(let _0x198e66 of _0xdff1c1[_0x5d2168(0x35a)](so)){let _0x12cb31={'tableName':_0x198e66[0x1],'fieldName':_0x198e66[0x2]};_0x112e8f[_0x5d2168(0x317)](_0x12cb31[_0x5d2168(0x29e)]+'\x1f'+_0x12cb31['fieldName'],_0x12cb31);}for(let _0x4bc587 of _0xdff1c1['matchAll'](co)){let _0x26563a={'fieldName':_0x4bc587[0x2]};_0x112e8f[_0x5d2168(0x317)]('\x1f'+_0x26563a[_0x5d2168(0x4f5)],_0x26563a);}return Array['from'](_0x112e8f[_0x5d2168(0x33c)]());}function go(_0x2061bd){const _0x122855=_0x274f9f;let _0x5bccdc=vo(_0x2061bd,()=>'\x20')['replace'](oo,'\x20')[_0x122855(0x386)](so,'\x20')[_0x122855(0x386)](co,'$1\x20');return io[_0x122855(0x2a6)](_0x5bccdc);}function _o(_0x4e8c98,_0x1815e7){return bo(vo(_0x4e8c98,_0x1815e7),_0x1815e7);}function vo(_0x440759,_0x1020e1){const _0x4c54c7=_0x274f9f;return ao[_0x4c54c7(0x273)]=0x0,_0x440759[_0x4c54c7(0x386)](ao,(_0x475105,_0x3bbfe4)=>xo(_0x440759,_0x3bbfe4)?_0x475105:_0x1020e1(_0x475105));}const yo=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function bo(_0x5e7270,_0x3be973){const _0xf54cd9=_0x274f9f;let _0x5a4fca=[];yo[_0xf54cd9(0x273)]=0x0;let _0x1f1a6a;for(;(_0x1f1a6a=yo['exec'](_0x5e7270))!=null;){if(xo(_0x5e7270,_0x1f1a6a[_0xf54cd9(0x519)]))continue;let _0x39edd2=yo['lastIndex']-0x1,_0x4c9d20=0x0;for(let _0x4938ea=_0x39edd2;_0x4938ea<_0x5e7270[_0xf54cd9(0x353)];_0x4938ea++)if(_0x5e7270[_0x4938ea]==='['&&_0x4c9d20++,_0x5e7270[_0x4938ea]===']'&&(_0x4c9d20--,_0x4c9d20===0x0)){_0x5a4fca['push']({'start':_0x1f1a6a[_0xf54cd9(0x519)],'end':_0x4938ea+0x1}),yo[_0xf54cd9(0x273)]=_0x4938ea+0x1;break;}}if(_0x5a4fca['length']===0x0)return _0x5e7270;let _0x1e9938='',_0x57c9e2=0x0;for(let _0x12cd2b of _0x5a4fca)_0x1e9938+=_0x5e7270['slice'](_0x57c9e2,_0x12cd2b['start']),_0x1e9938+=_0x3be973(_0x5e7270[_0xf54cd9(0x51c)](_0x12cd2b['start'],_0x12cd2b[_0xf54cd9(0x417)])),_0x57c9e2=_0x12cd2b[_0xf54cd9(0x417)];return _0x1e9938+_0x5e7270[_0xf54cd9(0x51c)](_0x57c9e2);}function xo(_0x14569f,_0x5bfade){let _0x24fbf5=!0x1;for(let _0x477512=0x0;_0x477512<_0x5bfade;_0x477512++)if(_0x14569f[_0x477512]==='\x22'){if(_0x24fbf5&&_0x14569f[_0x477512+0x1]==='\x22'){_0x477512++;continue;}_0x24fbf5=!_0x24fbf5;}return _0x24fbf5;}function So(_0x3e54fa,_0x3110da,_0x411494){const _0x2871ba=_0x274f9f;let _0x4f06a7=Co(_0x3e54fa[_0x2871ba(0x29e)],_0x3110da,_0x411494);return{'table':_0x4f06a7,'field':_0x4f06a7?Object['values'](_0x4f06a7[_0x2871ba(0x39f)])[_0x2871ba(0x271)](_0x109577=>_0x109577[_0x2871ba(0x248)]===_0x3e54fa[_0x2871ba(0x4f5)]):void 0x0};}function Co(_0x5a069f,_0x4cad7,_0x7a8e2b){const _0xf6b93c=_0x274f9f;if(!_0x5a069f||_0x5a069f===_0xf6b93c(0x258)||_0x5a069f===_0x4cad7['id']||_0x5a069f===_0x4cad7[_0xf6b93c(0x248)])return _0x4cad7;if(!_0x7a8e2b)return;let _0x3e1c20=_0x7a8e2b[_0xf6b93c(0x529)][_0x5a069f];if(_0x3e1c20)return _0x3e1c20;let _0x2893cb=Object['values'](_0x7a8e2b['tables'])[_0xf6b93c(0x458)](_0xd7fb5a=>_0xd7fb5a[_0xf6b93c(0x248)]===_0x5a069f);return _0x2893cb['length']===0x1?_0x2893cb[0x0]:void 0x0;}let wo=class extends _0x4191ab{constructor(_0x4ceba2,_0x48e58a,_0x46054a,_0x421cbe){const _0x4856b7=_0x274f9f;super(),this[_0x4856b7(0x4de)]=_0x4ceba2,this[_0x4856b7(0x46b)]=_0x48e58a,this[_0x4856b7(0x411)]=_0x46054a,this[_0x4856b7(0x2ad)]=_0x421cbe,G(this,_0x4856b7(0x32f),new lo()),G(this,_0x4856b7(0x339),new Map()),G(this,_0x4856b7(0x503),new Set()),G(this,_0x4856b7(0x488),Promise[_0x4856b7(0x3e0)]()),G(this,'_applyingFormulaResults',!0x1),this[_0x4856b7(0x28b)]();}[_0x274f9f(0x28b)](){const _0x38c5ab=_0x274f9f;this[_0x38c5ab(0x46b)][_0x38c5ab(0x448)](_0x993548[_0x38c5ab(0x3f1)])['forEach'](_0x39c6b3=>{const _0x34793f=_0x38c5ab;this[_0x34793f(0x4a2)](_0x39c6b3);}),this[_0x38c5ab(0x45c)](this[_0x38c5ab(0x46b)][_0x38c5ab(0x34f)](_0x993548[_0x38c5ab(0x3f1)])[_0x38c5ab(0x482)](({unit:_0x515e8b})=>{const _0x5cb985=_0x38c5ab;this[_0x5cb985(0x4a2)](_0x515e8b);})),this[_0x38c5ab(0x45c)](this[_0x38c5ab(0x46b)][_0x38c5ab(0x3f7)](_0x993548[_0x38c5ab(0x3f1)])[_0x38c5ab(0x482)](_0x5a6f3e=>{const _0x3f8f40=_0x38c5ab;this[_0x3f8f40(0x20c)](()=>this[_0x3f8f40(0x3c9)](_0x5a6f3e[_0x3f8f40(0x435)]()));})),this[_0x38c5ab(0x45c)](this[_0x38c5ab(0x4de)][_0x38c5ab(0x281)](_0xf2723=>this[_0x38c5ab(0x4ef)](_0xf2723)));}['_onCommandExecuted'](_0x104ce4){const _0x1097dd=_0x274f9f;if(_0x104ce4['id']===_0x333d70['id']){Eo(_0x104ce4[_0x1097dd(0x50a)])&&this['_applyFormulaResult'](_0x104ce4[_0x1097dd(0x50a)]);return;}if(this[_0x1097dd(0x37a)]||_0x104ce4['id']!==Z['id'])return;let _0x357977=To(_0x104ce4[_0x1097dd(0x50a)])?_0x104ce4['params']:void 0x0,_0xae66ea=_0x357977!=null&&_0x357977[_0x1097dd(0x4bb)]?[this['_univerInstanceService'][_0x1097dd(0x462)](_0x357977['unitId'],_0x993548[_0x1097dd(0x3f1)])][_0x1097dd(0x458)](_0x3d1cdd=>!!_0x3d1cdd):this[_0x1097dd(0x46b)][_0x1097dd(0x448)](_0x993548[_0x1097dd(0x3f1)]),_0x448b24=_0x357977==null?void 0x0:_0x357977['op'];_0xae66ea[_0x1097dd(0x366)](_0x496de1=>{const _0x1f25b8=_0x1097dd;let _0x472658=_0x448b24?eo(_0x448b24):[];(!_0x448b24||_0x472658['some'](_0xb6ff57=>_0xb6ff57[_0x1f25b8(0x257)]!==_0x1f25b8(0x3aa)))&&this[_0x1f25b8(0x4a2)](_0x496de1);});}['_scheduleSuperTableSync'](_0x24d11a){const _0x3d9a54=_0x274f9f;let _0x45ad32=_0x24d11a['getUnitId']();this['_scheduledSuperTableSyncs']['has'](_0x45ad32)||(this[_0x3d9a54(0x503)][_0x3d9a54(0x4a3)](_0x45ad32),this[_0x3d9a54(0x20c)](async()=>{const _0x146f5e=_0x3d9a54;this[_0x146f5e(0x503)]['delete'](_0x45ad32),await this[_0x146f5e(0x3a1)](_0x24d11a);}));}async['_syncSuperTables'](_0x1cdf41){const _0x16cbc2=_0x274f9f;let _0x11a60c=_0x1cdf41[_0x16cbc2(0x435)](),_0x130ee5=this[_0x16cbc2(0x32f)][_0x16cbc2(0x3dd)](_0x1cdf41[_0x16cbc2(0x2d0)]()),_0x1f0975=new Set(_0x130ee5['map'](({tableName:_0x35c0fd})=>_0x35c0fd)),_0x14173f=this[_0x16cbc2(0x339)]['get'](_0x11a60c)??new Set();for(let _0x182abf of _0x14173f)_0x1f0975['has'](_0x182abf)||await this[_0x16cbc2(0x4de)][_0x16cbc2(0x2a5)](_0x12c440['id'],{'unitId':_0x11a60c,'tableName':_0x182abf},{'onlyLocal':!0x0});for(let {tableName:_0x350671,reference:_0x4b1dd7}of _0x130ee5)await this[_0x16cbc2(0x4de)][_0x16cbc2(0x2a5)](_0x505dfe['id'],{'unitId':_0x11a60c,'tableName':_0x350671,'reference':_0x4b1dd7},{'onlyLocal':!0x0});this[_0x16cbc2(0x339)][_0x16cbc2(0x317)](_0x11a60c,_0x1f0975);}async[_0x274f9f(0x3c9)](_0xe75cb5){const _0x1c06a3=_0x274f9f;let _0x1f58fb=this[_0x1c06a3(0x339)][_0x1c06a3(0x23e)](_0xe75cb5)??new Set();for(let _0x34e77a of _0x1f58fb)await this[_0x1c06a3(0x4de)][_0x1c06a3(0x2a5)](_0x12c440['id'],{'unitId':_0xe75cb5,'tableName':_0x34e77a},{'onlyLocal':!0x0});this[_0x1c06a3(0x339)][_0x1c06a3(0x2ef)](_0xe75cb5);}[_0x274f9f(0x20c)](_0x143c7a){const _0x381126=_0x274f9f;this['_formulaSyncQueue']=this['_formulaSyncQueue'][_0x381126(0x373)](_0x143c7a,_0x143c7a)['catch'](()=>void 0x0);}[_0x274f9f(0x3b6)](_0x3c0375){const _0x247393=_0x274f9f;let _0x560385=this[_0x247393(0x46b)][_0x247393(0x448)](_0x993548[_0x247393(0x3f1)]);if(!_0x560385[_0x247393(0x29f)](_0x3fe1cd=>{const _0x3f1224=_0x247393;var _0x29f71e;return((_0x29f71e=_0x3c0375['unitData'])==null?void 0x0:_0x29f71e[_0x3fe1cd[_0x3f1224(0x435)]()])!=null;}))return;let _0x4279c4=_0x560385['flatMap'](_0x2e1d5e=>uo(_0x2e1d5e[_0x247393(0x2d0)](),_0x3c0375));if(!_0x4279c4[_0x247393(0x353)]){this[_0x247393(0x2ad)][_0x247393(0x423)](_0x3f3756[_0x247393(0x336)],_0x3c0375);return;}let _0x700ebc=new W(),_0x246834=_0x4279c4[_0x247393(0x25e)](_0x37a80f=>to({'unitId':_0x37a80f[_0x247393(0x4bb)],'tableId':_0x37a80f[_0x247393(0x37e)],'patches':_0x37a80f[_0x247393(0x215)]}));this[_0x247393(0x37a)]=!0x0,(async()=>{const _0x425f5b=_0x247393;for(let _0x3e5257 of _0x4279c4){let _0x571215=this['_univerInstanceService'][_0x425f5b(0x462)](_0x3e5257[_0x425f5b(0x4bb)],_0x993548[_0x425f5b(0x3f1)]);_0x571215&&await this[_0x425f5b(0x4de)]['executeCommand'](Z['id'],{'unitId':_0x3e5257[_0x425f5b(0x4bb)],'op':_0x700ebc[_0x425f5b(0x467)](_0x571215['getSnapshot'](),_0x3e5257['tableId'],_0x3e5257['patches']),'trigger':_0x333d70['id']},{'onlyLocal':!0x0});}await this[_0x425f5b(0x4de)]['executeCommand'](_0x4ce331['id'],{'dirtyRanges':_0x246834},{'onlyLocal':!0x0});})()[_0x247393(0x2a8)](()=>{const _0x213f38=_0x247393;this[_0x213f38(0x37a)]=!0x1,this[_0x213f38(0x2ad)][_0x213f38(0x423)](_0x3f3756['BASE'],_0x3c0375);});}};wo=q([K(0x0,_0x232cd6),K(0x1,_0x310540),K(0x2,_0x3a5702(_0x5f1979)),K(0x3,_0x3a5702(_0x2120b4))],wo);function To(_0x6ebb33){const _0x57023c=_0x274f9f;return typeof _0x6ebb33=='object'&&!!_0x6ebb33&&_0x57023c(0x4bb)in _0x6ebb33&&typeof _0x6ebb33['unitId']=='string'&&'op'in _0x6ebb33&&Array[_0x57023c(0x39e)](_0x6ebb33['op']);}function Eo(_0x30ba19){const _0x1119df=_0x274f9f;return typeof _0x30ba19==_0x1119df(0x314)&&!!_0x30ba19&&_0x1119df(0x4d5)in _0x30ba19&&_0x1119df(0x49a)in _0x30ba19;}const Do=_0x3c1d0d(_0x274f9f(0x496));let Oo=class{constructor(_0x4a7281){const _0x20c462=_0x274f9f;this[_0x20c462(0x46b)]=_0x4a7281;}['getBase'](_0xea6be){const _0x20812c=_0x274f9f;return this['_univerInstanceService']['getUnit'](_0xea6be,_0x993548[_0x20812c(0x3f1)])??null;}[_0x274f9f(0x2ae)](){const _0x27b4d2=_0x274f9f;return this[_0x27b4d2(0x46b)][_0x27b4d2(0x448)](_0x993548[_0x27b4d2(0x3f1)]);}[_0x274f9f(0x3c8)](_0x2d3af9){const _0x345802=_0x274f9f;return this[_0x345802(0x46b)][_0x345802(0x1ed)](_0x993548['UNIVER_BASE'],_0x2d3af9);}};Oo=q([K(0x0,_0x310540)],Oo);const ko=_0x3c1d0d('base.view-registry.service');var Ao=class extends _0x4191ab{constructor(..._0x579087){const _0x22d76d=_0x274f9f;super(..._0x579087),G(this,_0x22d76d(0x4a1),new Map());}[_0x274f9f(0x406)](_0x27de95){const _0x32ed58=_0x274f9f;return this['_plugins'][_0x32ed58(0x317)](_0x27de95[_0x32ed58(0x2b9)],_0x27de95),_0x26ad0b(()=>this[_0x32ed58(0x4a1)]['delete'](_0x27de95[_0x32ed58(0x2b9)]));}[_0x274f9f(0x23e)](_0x55dfb4){const _0x5d9d37=_0x274f9f;let _0x17db9=this[_0x5d9d37(0x4a1)][_0x5d9d37(0x23e)](_0x55dfb4);if(!_0x17db9)throw Error(_0x5d9d37(0x506)+_0x55dfb4+'\x22\x20is\x20not\x20registered.');return _0x17db9;}['getAll'](){const _0x4b1d84=_0x274f9f;return Array['from'](this[_0x4b1d84(0x4a1)]['values']());}};const jo=[Z];let Mo=class extends _0x5f2ac0{constructor(_0xd30012=Qa,_0xcdedc1,_0x55657d,_0x1dc085,_0x13d93c,_0x4e2ff2){const _0x10c578=_0x274f9f;super(),this[_0x10c578(0x2de)]=_0xd30012,this[_0x10c578(0x358)]=_0xcdedc1,this[_0x10c578(0x4de)]=_0x55657d,this['_univerInstanceService']=_0x1dc085,this[_0x10c578(0x310)]=_0x13d93c,this['_dataSyncPrimaryController']=_0x4e2ff2,G(this,'_baseSyncDisposables',new Map());let {..._0x4922bd}=_0xb3ba83({},Qa,this[_0x10c578(0x2de)]);this[_0x10c578(0x310)][_0x10c578(0x32b)](_0x10c578(0x441),_0x4922bd),this[_0x10c578(0x46b)][_0x10c578(0x2ab)](_0x993548[_0x10c578(0x3f1)],_0x588b72),this['_initDependencies'](),this['_initCommands'](),this['_initRegistries'](),this[_0x10c578(0x4af)]();}[_0x274f9f(0x35d)](){const _0x24fdb5=_0x274f9f;_0x469d0d(this[_0x24fdb5(0x358)],[[Oo],[$n],[ro]]),this[_0x24fdb5(0x46b)][_0x24fdb5(0x448)](_0x993548[_0x24fdb5(0x3f1)])[_0x24fdb5(0x366)](_0x4fa5e5=>this['_syncBaseUnit'](_0x4fa5e5[_0x24fdb5(0x435)]())),_0x469d0d(this[_0x24fdb5(0x358)],[[wo]]);}[_0x274f9f(0x4b0)](){const _0x13b37d=_0x274f9f;[[qn,{'useClass':Jn}],[ko,{'useClass':Ao}],[ur,{'useClass':fr}],[Do,{'useClass':Oo}],[Yn,{'useClass':Xn}],[J,{'useClass':$n}],[ro],[wo]][_0x13b37d(0x366)](_0x48432b=>this['_injector'][_0x13b37d(0x4a3)](_0x48432b));}[_0x274f9f(0x1ec)](){const _0x9f5a7b=_0x274f9f;[ni,Ni,bi,qi,zi,Ri,ti,$r,Xr,yi,Zr,Ci,Zi,Oi,ei,Si,Yi,Ji,Qr,vi,Di,_i,wi,Pi,Ii,xi,Mi,ia,$i,Fi,Xi,Wi,Ki,Gi,Bi,Hi,Ui,Vi,...jo][_0x9f5a7b(0x366)](_0x2bd1d1=>this['disposeWithMe'](this[_0x9f5a7b(0x4de)][_0x9f5a7b(0x412)](_0x2bd1d1))),jo['forEach'](_0x4743ed=>{const _0x118cf7=_0x9f5a7b;var _0x1074b9;return(_0x1074b9=this[_0x118cf7(0x4f9)])==null?void 0x0:_0x1074b9[_0x118cf7(0x46d)](_0x4743ed);});}[_0x274f9f(0x4af)](){const _0x3cdbc3=_0x274f9f;this[_0x3cdbc3(0x4f9)]&&(this[_0x3cdbc3(0x45c)](this[_0x3cdbc3(0x46b)][_0x3cdbc3(0x34f)](_0x993548[_0x3cdbc3(0x3f1)])[_0x3cdbc3(0x482)](({unit:_0x2cea96})=>{const _0x9f4926=_0x3cdbc3;this[_0x9f4926(0x509)](_0x2cea96[_0x9f4926(0x435)]());})),this[_0x3cdbc3(0x45c)](this['_univerInstanceService'][_0x3cdbc3(0x3f7)](_0x993548[_0x3cdbc3(0x3f1)])[_0x3cdbc3(0x482)](_0x3cf93f=>{const _0x108cbe=_0x3cdbc3;var _0x2515a2;(_0x2515a2=this[_0x108cbe(0x1e1)][_0x108cbe(0x23e)](_0x3cf93f[_0x108cbe(0x435)]()))==null||_0x2515a2[_0x108cbe(0x3fb)](),this[_0x108cbe(0x1e1)]['delete'](_0x3cf93f['getUnitId']());})));}['_syncBaseUnit'](_0x43e8a2){const _0x4b5f6e=_0x274f9f;!this['_dataSyncPrimaryController']||this[_0x4b5f6e(0x1e1)]['has'](_0x43e8a2)||this[_0x4b5f6e(0x1e1)]['set'](_0x43e8a2,this[_0x4b5f6e(0x4f9)]['syncUnit'](_0x43e8a2));}[_0x274f9f(0x4d3)](){const _0x4ae955=_0x274f9f;let _0x4ab39c=this[_0x4ae955(0x358)][_0x4ae955(0x23e)](qn);xn()[_0x4ae955(0x366)](_0x56898b=>_0x4ab39c['register'](_0x56898b));let _0x358071=this[_0x4ae955(0x358)][_0x4ae955(0x23e)](ko),_0x2f3a73=this['_injector']['get'](ur);ar()[_0x4ae955(0x366)](_0x39aba1=>{const _0x504742=_0x4ae955;_0x358071[_0x504742(0x406)](_0x39aba1),_0x2f3a73[_0x504742(0x235)](_0x39aba1);});}};G(Mo,_0x274f9f(0x349),_0x274f9f(0x37d)),G(Mo,_0x274f9f(0x343),Xa),G(Mo,'version',Za),G(Mo,_0x274f9f(0x2b9),_0x993548[_0x274f9f(0x3f1)]),Mo=q([_0x536e3b(_0x3b093,_0x2d5150),K(0x1,_0x3a5702(_0x3682df)),K(0x2,_0x232cd6),K(0x3,_0x310540),K(0x4,_0x1468c7),K(0x5,_0x4a9daf(_0x11da31))],Mo);let No=class extends _0x5f2ac0{constructor(_0x51d9b3=$a,_0x503a5f,_0x9bf1d7,_0x1156b1,_0x388b06){const _0x2bb88a=_0x274f9f;super(),this[_0x2bb88a(0x2de)]=_0x51d9b3,this['_injector']=_0x503a5f,this[_0x2bb88a(0x4de)]=_0x9bf1d7,this['_configService']=_0x1156b1,this[_0x2bb88a(0x46b)]=_0x388b06;let {..._0x4409c4}=_0xb3ba83({},$a,this[_0x2bb88a(0x2de)]);this['_configService'][_0x2bb88a(0x32b)]('bases.remote.config',_0x4409c4),this[_0x2bb88a(0x46b)]['registerCtorForType'](_0x993548[_0x2bb88a(0x3f1)],_0x588b72),[[qn,{'useClass':Jn}],[ur,{'useClass':fr}]][_0x2bb88a(0x366)](_0xb674ae=>this[_0x2bb88a(0x358)][_0x2bb88a(0x4a3)](_0xb674ae)),jo['forEach'](_0x1f49b6=>this['disposeWithMe'](this[_0x2bb88a(0x4de)][_0x2bb88a(0x412)](_0x1f49b6)));}};G(No,_0x274f9f(0x349),_0x274f9f(0x36b)),G(No,_0x274f9f(0x343),Xa),G(No,_0x274f9f(0x288),Za),G(No,_0x274f9f(0x2b9),_0x993548[_0x274f9f(0x3f1)]),No=q([_0x536e3b(_0x3b093,_0x2d5150),K(0x1,_0x3a5702(_0x3682df)),K(0x2,_0x232cd6),K(0x3,_0x1468c7),K(0x4,_0x310540)],No);function Po(_0x4ac08f){const _0x4323fc=_0x274f9f;let _0x532c0b=qo(_0x4ac08f[_0x4323fc(0x221)]);if(!_0x532c0b)return{'query':'','total':0x0,'matches':[]};let _0x152d2c=[],_0x1ff543=[];for(let _0x3fa69d=0x0;_0x3fa69d<_0x4ac08f['fieldIds']['length'];_0x3fa69d++){if(!(_0x3fa69d in _0x4ac08f[_0x4323fc(0x3e4)]))continue;let _0x5dffed=_0x4ac08f[_0x4323fc(0x258)][_0x4323fc(0x39f)][_0x4ac08f[_0x4323fc(0x3e4)][_0x3fa69d]];_0x5dffed&&_0x1ff543['push']({'field':_0x5dffed,'fieldIndex':_0x3fa69d});}_0x4ac08f['rows'][_0x4323fc(0x366)]((_0xedd276,_0x2ecb3c)=>{const _0x43241d=_0x4323fc;_0x1ff543[_0x43241d(0x366)](({field:_0x859a0,fieldIndex:_0x23fdaf})=>{const _0x27de19=_0x43241d;let _0x3f8830=Fo(_0xedd276['values'][_0x859a0['id']],_0x859a0);if(!_0x3f8830)return;let _0x4fcd16=Ko(_0x532c0b,_0x3f8830['searchTexts']);_0x4fcd16<=0x0||_0x152d2c[_0x27de19(0x254)]({'recordId':_0xedd276[_0x27de19(0x44a)],'fieldId':_0x859a0['id'],'fieldType':_0x859a0['type'],'text':_0x3f8830[_0x27de19(0x23f)],'score':_0x4fcd16,'rowIndex':_0x2ecb3c,'fieldIndex':_0x23fdaf});});}),_0x152d2c[_0x4323fc(0x456)]((_0x348ac7,_0x535f18)=>_0x535f18['score']-_0x348ac7[_0x4323fc(0x299)]||_0x348ac7['rowIndex']-_0x535f18[_0x4323fc(0x269)]||_0x348ac7[_0x4323fc(0x30a)]-_0x535f18['fieldIndex']);let _0x25dee6=_0x4ac08f[_0x4323fc(0x4b7)]==null?_0x152d2c:_0x152d2c[_0x4323fc(0x51c)](0x0,Math[_0x4323fc(0x3f9)](0x0,_0x4ac08f['limit']));return{'query':_0x532c0b,'total':_0x152d2c[_0x4323fc(0x353)],'matches':Yo(_0x25dee6)};}function Fo(_0x50278b,_0x570dc9){const _0x5b9241=_0x274f9f;let _0x2a5b1d=[];for(let _0x1c2f4b of Lo(_0x50278b,_0x570dc9)){let _0x1d60c2=qo(_0x1c2f4b);_0x1d60c2&&_0x2a5b1d[_0x5b9241(0x254)](_0x1d60c2);}return _0x2a5b1d[_0x5b9241(0x353)]?{'displayText':Io(_0x50278b,_0x570dc9),'searchTexts':Jo(_0x2a5b1d)}:null;}function Io(_0x30c7bc,_0x57cc8){const _0x7d9fd6=_0x274f9f;switch(_0x57cc8[_0x7d9fd6(0x2b9)]){case _0x11438e[_0x7d9fd6(0x282)]:case _0x11438e[_0x7d9fd6(0x3a5)]:case _0x11438e['Group']:return Ro(_0x30c7bc,_0x57cc8)[_0x7d9fd6(0x48b)](',\x20');case _0x11438e[_0x7d9fd6(0x2fa)]:return Vo(_0x30c7bc);case _0x11438e['Date']:case _0x11438e[_0x7d9fd6(0x33f)]:case _0x11438e['UpdatedAt']:return Ho(_0x30c7bc,_0x57cc8);case _0x11438e[_0x7d9fd6(0x43e)]:case _0x11438e['Currency']:return Uo(_0x30c7bc,_0x57cc8);case _0x11438e[_0x7d9fd6(0x298)]:return Wo(_0x30c7bc,_0x57cc8);case _0x11438e[_0x7d9fd6(0x44d)]:return _0x30c7bc?'Checked':_0x7d9fd6(0x2e1);case _0x11438e[_0x7d9fd6(0x31e)]:return Go(_0x30c7bc)[_0x7d9fd6(0x48b)](',\x20');default:return $(_0x30c7bc);}}function Lo(_0x1da62e,_0x12897e){const _0x1b6409=_0x274f9f;switch(_0x12897e[_0x1b6409(0x2b9)]){case _0x11438e[_0x1b6409(0x282)]:case _0x11438e[_0x1b6409(0x3a5)]:case _0x11438e[_0x1b6409(0x1f9)]:{let _0x598761=Ro(_0x1da62e,_0x12897e);if(Array['isArray'](_0x1da62e)){let _0x38ed84=[..._0x598761];for(let _0x371ea6=0x0;_0x371ea6<_0x1da62e[_0x1b6409(0x353)];_0x371ea6++)_0x371ea6 in _0x1da62e&&_0x38ed84[_0x1b6409(0x254)](String(_0x1da62e[_0x371ea6]));return _0x38ed84;}return _0x1da62e==null?_0x598761:[..._0x598761,String(_0x1da62e)];}case _0x11438e['Link']:{let _0x5bafa7=Bo(_0x1da62e);return[_0x5bafa7['text'],_0x5bafa7[_0x1b6409(0x3bb)]];}case _0x11438e[_0x1b6409(0x44b)]:case _0x11438e[_0x1b6409(0x33f)]:case _0x11438e['UpdatedAt']:return[Ho(_0x1da62e,_0x12897e),$(_0x1da62e)];case _0x11438e[_0x1b6409(0x43e)]:case _0x11438e[_0x1b6409(0x453)]:return[Uo(_0x1da62e,_0x12897e),$(_0x1da62e)];case _0x11438e[_0x1b6409(0x298)]:return[Wo(_0x1da62e,_0x12897e),$(_0x1da62e)];case _0x11438e[_0x1b6409(0x44d)]:return _0x1da62e?[_0x1b6409(0x49b),_0x1b6409(0x320),_0x1b6409(0x428)]:[_0x1b6409(0x2e1),'No',_0x1b6409(0x480)];case _0x11438e['Attachment']:return Go(_0x1da62e);default:return[$(_0x1da62e)];}}function Ro(_0x5da16e,_0xeffe2a){const _0x3fbeb4=_0x274f9f;var _0x1c82ef;let _0x3ab711=Array[_0x3fbeb4(0x39e)]((_0x1c82ef=_0xeffe2a[_0x3fbeb4(0x427)])==null?void 0x0:_0x1c82ef[_0x3fbeb4(0x4a7)])?_0xeffe2a[_0x3fbeb4(0x427)][_0x3fbeb4(0x4a7)]:[],_0x261d0a=[];if(Array[_0x3fbeb4(0x39e)](_0x5da16e)){for(let _0x173a37=0x0;_0x173a37<_0x5da16e[_0x3fbeb4(0x353)];_0x173a37++){if(!(_0x173a37 in _0x5da16e))continue;let _0xb15675=String(_0x5da16e[_0x173a37]);_0xb15675&&_0x261d0a[_0x3fbeb4(0x254)](zo(_0x3ab711,_0xb15675));}return _0x261d0a;}if(_0x5da16e!=null){let _0x263c55=String(_0x5da16e);_0x263c55&&_0x261d0a[_0x3fbeb4(0x254)](zo(_0x3ab711,_0x263c55));}return _0x261d0a;}function zo(_0x103200,_0x3e0610){const _0xb626c1=_0x274f9f;for(let _0x593619 of _0x103200){if(typeof _0x593619==_0xb626c1(0x3c6)&&_0x593619===_0x3e0610)return _0x593619;if(_0x593619&&typeof _0x593619=='object'){let _0x354736=_0x593619;if(String(_0x354736['id']??_0x354736[_0xb626c1(0x248)]??'')===_0x3e0610||String(_0x354736[_0xb626c1(0x248)]??'')===_0x3e0610)return String(_0x354736[_0xb626c1(0x248)]??_0x354736['id']??_0x3e0610);}}return _0x3e0610;}function Bo(_0xf02daf){const _0x3242d1=_0x274f9f;if(_0xf02daf&&typeof _0xf02daf==_0x3242d1(0x314)&&!Array['isArray'](_0xf02daf)){let _0x1c9cab=_0xf02daf;return{'text':String(_0x1c9cab[_0x3242d1(0x2d7)]??_0x1c9cab[_0x3242d1(0x3bb)]??''),'url':String(_0x1c9cab[_0x3242d1(0x3bb)]??'')};}return{'text':$(_0xf02daf),'url':$(_0xf02daf)};}function Vo(_0x31b312){const _0x349a73=_0x274f9f;let _0x19adff=Bo(_0x31b312);return _0x19adff[_0x349a73(0x2d7)]||_0x19adff['url'];}function Ho(_0x1a892d,_0x147cd0){const _0x289e67=_0x274f9f;return typeof _0x1a892d!=_0x289e67(0x4b3)||!Number[_0x289e67(0x1ee)](_0x1a892d)?'':Yt(_0x1a892d,_0x147cd0[_0x289e67(0x427)]);}function Uo(_0x3b2b7c,_0x570439){const _0x641d1c=_0x274f9f;let _0x44f27f=typeof _0x3b2b7c==_0x641d1c(0x4b3)?_0x3b2b7c:Number(_0x3b2b7c);return Number[_0x641d1c(0x1ee)](_0x44f27f)?fa(_0x44f27f,_0x570439['config']):'';}function Wo(_0x111aa4,_0x56fedc){const _0x202abd=_0x274f9f;let _0x24a878=typeof _0x111aa4==_0x202abd(0x4b3)?_0x111aa4:Number(_0x111aa4);return Number[_0x202abd(0x1ee)](_0x24a878)?_a(_0x24a878,_0x56fedc[_0x202abd(0x427)]):'';}function Go(_0x594070){const _0x1ddcf7=_0x274f9f;return Array[_0x1ddcf7(0x39e)](_0x594070)?_0x594070[_0x1ddcf7(0x25e)](_0x35b2c7=>{const _0x190a6e=_0x1ddcf7;if(!_0x35b2c7||typeof _0x35b2c7!=_0x190a6e(0x314))return[];let _0x3fd74d=_0x35b2c7,_0x4980f5=String(_0x3fd74d['name']??_0x3fd74d['url']??'')[_0x190a6e(0x2ba)]();return _0x4980f5?[_0x4980f5]:[];}):[];}function $(_0x3c8a91){const _0x4ec6ac=_0x274f9f;if(_0x3c8a91==null)return'';if(typeof _0x3c8a91=='boolean')return _0x3c8a91?'true':'false';if(typeof _0x3c8a91==_0x4ec6ac(0x4b3))return String(_0x3c8a91);if(Array[_0x4ec6ac(0x39e)](_0x3c8a91)){let _0x191309=[];for(let _0x49f2ea=0x0;_0x49f2ea<_0x3c8a91[_0x4ec6ac(0x353)];_0x49f2ea++){if(!(_0x49f2ea in _0x3c8a91))continue;let _0x217f7f=$(_0x3c8a91[_0x49f2ea]);_0x217f7f&&_0x191309['push'](_0x217f7f);}return _0x191309['join'](',\x20');}if(typeof _0x3c8a91==_0x4ec6ac(0x314)){let _0x1009c9=_0x3c8a91;return String(_0x1009c9['title']??_0x1009c9['name']??_0x1009c9['text']??_0x1009c9['url']??'')[_0x4ec6ac(0x2ba)]();}return String(_0x3c8a91);}function Ko(_0x13079e,_0x2c7be5){const _0x3eabf8=_0x274f9f;let _0xe72b07=0x0;for(let _0x1cb8e3 of _0x2c7be5)if(_0x1cb8e3){if(_0x1cb8e3===_0x13079e){_0xe72b07=Math[_0x3eabf8(0x3f9)](_0xe72b07,0x12c);continue;}if(_0x1cb8e3[_0x3eabf8(0x1f7)](_0x13079e)){_0xe72b07=Math[_0x3eabf8(0x3f9)](_0xe72b07,0xfa);continue;}_0x1cb8e3[_0x3eabf8(0x1d2)](_0x13079e)&&(_0xe72b07=Math[_0x3eabf8(0x3f9)](_0xe72b07,0xc8));}return _0xe72b07;}function qo(_0x20af3d){const _0x1b9fd6=_0x274f9f;return _0x20af3d[_0x1b9fd6(0x2ba)]()[_0x1b9fd6(0x386)](/\s+/g,'\x20')['toLowerCase']();}function Jo(_0x4e19f6){const _0x4db916=_0x274f9f;return Array[_0x4db916(0x2a4)](new Set(_0x4e19f6));}function Yo(_0x59ecb6){const _0x5ccf6c=_0x274f9f;let _0x515af5=[];for(let {rowIndex:_0x21415b,fieldIndex:_0x6b19b9,..._0x11049e}of _0x59ecb6)_0x515af5[_0x5ccf6c(0x254)](_0x11049e);return _0x515af5;}export{Z as ApplyBaseJson1Mutation,ya as BASE_FIELD_STAT_TYPES,Ae as BASE_HIERARCHY_MAX_LEVELS,je as BASE_HIERARCHY_PARENT_FIELD_ID,Qi as BaseConditionalColorRuleUpdateType,Ne as BaseEventSource,j as BaseHierarchyError,Me as BaseHierarchyErrorCode,z as BaseJson1OpApplier,W as BaseJson1OpFactory,Xr as BatchCreateBaseRecordsCommand,Zr as BatchDeleteBaseRecordsCommand,Qr as ChangeBaseFieldTypeCommand,$r as CreateBaseChildRecordCommand,ei as CreateBaseFieldCommand,ti as CreateBaseRecordCommand,ni as CreateBaseTableCommand,_i as CreateBaseViewCommand,vi as DeleteBaseFieldCommand,yi as DeleteBaseRecordCommand,bi as DeleteBaseTableCommand,xi as DeleteBaseViewCommand,Si as DuplicateBaseFieldCommand,Ci as DuplicateBaseRecordCommand,oa as EMBED_BASES_TABLE_RESOURCE_KEY,wi as EnsureBaseTemporalViewDateFieldsCommand,J as IBaseCommandService,Yn as IBasePermissionService,ur as IBaseProjectionService,ko as IBaseViewRegistryService,Di as MoveBaseFieldCommand,Oi as MoveBaseHierarchyRecordCommand,Mi as MoveBaseViewCommand,Ni as RenameBaseTableCommand,Pi as RenameBaseViewCommand,Fi as SetBaseKanbanGroupFieldCommand,Ii as SetBaseNameCommand,Ri as SetBaseRangeValuesCommand,zi as SetBaseRecordValuesCommand,Bi as SetBaseTableHierarchyFieldCommand,Vi as SetBaseViewFieldOrderCommand,Hi as SetBaseViewFieldVisibleCommand,Ui as SetBaseViewFieldWidthCommand,Wi as SetBaseViewFilterCommand,Gi as SetBaseViewGroupCommand,Ki as SetBaseViewSortCommand,Mo as UniverBasesPlugin,No as UniverRemoteBasesPlugin,qi as UpdateBaseCellCommand,Yi as UpdateBaseFieldCommand,Ji as UpdateBaseFieldDescriptionCommand,Xi as UpdateBaseKanbanConfigCommand,Zi as UpdateBaseRecordOrderCommand,$i as UpdateBaseViewConditionalColorRulesCommand,ia as UpdateBaseViewConfigCommand,Kt as baseDateSerialToDateMs,F as buildBaseHierarchyIndex,Aa as calculateBaseFieldStat,Ya as copyBaseTableSnapshot,Pe as createBaseHierarchyParentField,aa as createDefaultBaseTableSnapshot,sa as createEmbedBasesTable,ca as createEmbedBasesTableAddMutation,la as createEmbedBasesTableRemoveMutation,B as dateToExcelSerial,L as ensureBaseTableCellLayout,ke as findRecordLinkReferences,Yt as formatBaseDateValue,ja as formatBaseFieldStatValue,fa as formatBaseNumberValue,_a as formatBaseProgressValue,Fe as getActiveBaseHierarchyFieldIds,it as getBaseCellFormulaValue,rt as getBaseCellValue,$t as getBaseConditionalColorOperators,ze as getBaseHierarchyDeletePromotions,N as getBaseHierarchyFieldId,A as getRecordLinkFieldConfig,Oa as getSupportedBaseFieldStatTypes,Ve as getVisibleBaseHierarchyRows,ga as inferBaseSeparatorStyle,en as isBaseConditionalColorDateField,Ma as isBaseFieldStatEmptyValue,ka as isBaseFieldStatSupported,Ea as isBaseFieldStatType,M as isBaseHierarchyField,nn as matchesBaseCondition,Jt as normalizeBaseDateFieldConfig,Gt as normalizeBaseDateSerial,Da as normalizeBaseFieldStatsConfig,we as parseRecordLinkIds,Be as projectBaseHierarchy,qt as resolveBaseDateFieldConfig,P as resolveBaseHierarchyFieldId,Li as resolveBaseRangeHierarchyPatches,Po as searchBaseTable,Te as serializeRecordLinkIds,I as traceBasePerformance,ri as uniqueFieldName,He as validateBaseHierarchyMove,Le as validateBaseHierarchyRecordCreations,Ie as validateBaseHierarchyRecordPatches,Ee as validateCanonicalRecordLinkValue,De as validateRecordLinkField,Oe as validateRecordLinkValue};
1
+ const _0x58a750=_0x392b;(function(_0x2fbeaf,_0xf37a3){const _0x47db7e=_0x392b,_0x13b772=_0x2fbeaf();while(!![]){try{const _0x38d4ff=parseInt(_0x47db7e(0x316))/0x1*(-parseInt(_0x47db7e(0xe4))/0x2)+parseInt(_0x47db7e(0x1be))/0x3+-parseInt(_0x47db7e(0x3c0))/0x4+-parseInt(_0x47db7e(0x12c))/0x5+parseInt(_0x47db7e(0x224))/0x6*(-parseInt(_0x47db7e(0x3e5))/0x7)+parseInt(_0x47db7e(0x117))/0x8*(-parseInt(_0x47db7e(0x1ca))/0x9)+parseInt(_0x47db7e(0x10c))/0xa;if(_0x38d4ff===_0xf37a3)break;else _0x13b772['push'](_0x13b772['shift']());}catch(_0x4568ed){_0x13b772['push'](_0x13b772['shift']());}}}(_0x1521,0x619c9));import{BASE_RECORD_ID_FIELD_ID as _0x1abc18,BaseConditionalColorOperator as _0x22d7a1,BaseConditionalColorTarget as _0x171b5a,BaseConditionalDateMode as _0x4da2be,BaseDataModel as _0x3a2bc5,BaseFieldType as _0x54dcd1,BaseFilterConjunction as _0x56d9d3,BaseHierarchyInvalidReason as _0x4ff8e1,BaseRecordLinkRole as _0x3e04ef,BaseSortDirection as _0x5d1b53,BaseViewType as _0x92bd2,CellValueType as _0x10de44,ColorKit as _0x48db12,CommandType as _0x1b11d6,DependentOn as _0x3a22a2,Disposable as _0xba4bb0,ICommandService as _0x49c211,IConfigService as _0x48274f,IUndoRedoService as _0x510401,IUniverInstanceService as _0x59fb84,Inject as _0x2e761d,Injector as _0x291526,JSON1 as _0x2f9a7e,JSONX as _0x353726,ObjectMatrix as _0x4643ee,Optional as _0x1f97d4,Plugin as _0x52dd5b,Tools as _0x4a5e41,UniverInstanceType as _0x1fd3aa,allocateBaseFormulaTableName as _0x5d3ddf,assertBaseTableRecordIdentity as _0x130471,createBaseFormulaTableNameMap as _0x318b91,createBaseRecordIdField as _0x1397cf,createIdentifier as _0x35316f,dateKit as _0x4563e6,generateRandomId as _0xb44a74,getBaseFormulaTableName as _0x26c8a4,isBaseRecordIdFieldName as _0x25ea8a,isValidBaseRecordId as _0x1b6733,merge as _0x58c239,nameCharacterCheck as _0x4fdd3b,numfmt as _0x3fe5a0,regexp as _0x95a1c7,sequenceExecute as _0x4a72e3,toDisposable as _0x1b8d04,touchDependencies as _0x18b6bb}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x3dccbe,IActiveDirtyManagerService as _0x164f7c,RemoveSuperTableMutation as _0x3d62d9,SetFormulaCalculationResultMutation as _0x562d61,SetSuperTableMutation as _0x490ac1,SetTriggerFormulaCalculationStartMutation as _0x439af8,UniverProFormulaEnginePlugin as _0x170a2e,refactorFormulaUnitQualifier as _0x59c223}from'@univerjs-pro/engine-formula';import{UniverLicensePlugin as _0x160ab0}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x571f74}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x5f1921,FormulaResultApplicationType as _0x301cda}from'@univerjs/engine-formula';function N(_0x111961){const _0x7a0e3b=_0x392b;let _0x4458ec=_0x111961[_0x7a0e3b(0x346)][_0x7a0e3b(0x169)],_0x22e460=_0x111961[_0x7a0e3b(0x346)]['multiple'],_0x3dc751=_0x111961[_0x7a0e3b(0x346)][_0x7a0e3b(0x3a3)],_0x462c91=_0x111961[_0x7a0e3b(0x346)]['pickerFieldIds'],_0x361dce=_0x111961[_0x7a0e3b(0x346)]['relationRole'];return typeof _0x4458ec!='string'||!_0x4458ec||typeof _0x22e460!=_0x7a0e3b(0x27a)||_0x3dc751!==void 0x0&&(typeof _0x3dc751!=_0x7a0e3b(0x223)||!_0x3dc751)||_0x361dce!==void 0x0&&_0x361dce!==_0x3e04ef[_0x7a0e3b(0x128)]||_0x462c91!==void 0x0&&(!Array[_0x7a0e3b(0x25e)](_0x462c91)||_0x462c91[_0x7a0e3b(0x2c9)](_0x51c588=>typeof _0x51c588!=_0x7a0e3b(0x223)||!_0x51c588)||new Set(_0x462c91)[_0x7a0e3b(0x3e9)]!==_0x462c91[_0x7a0e3b(0x17a)])?null:{'targetTableId':_0x4458ec,'multiple':_0x22e460,..._0x3dc751?{'displayFieldId':_0x3dc751}:{},..._0x462c91?{'pickerFieldIds':[..._0x462c91]}:{},..._0x361dce?{'relationRole':_0x361dce}:{}};}function Te(_0x519692){const _0x4dbab0=_0x392b;return typeof _0x519692!=_0x4dbab0(0x223)||_0x519692===''?[]:_0x519692[_0x4dbab0(0x13e)](',');}function Ee(_0xc44986){const _0x4d5d38=_0x392b;return Array[_0x4d5d38(0x247)](new Set(_0xc44986))['join'](',');}function De(_0x45203d,_0x46c953){const _0x3bdcde=_0x392b;if(typeof _0x45203d!=_0x3bdcde(0x223))return{'valid':!0x1,'reason':_0x3bdcde(0xef)};if(_0x45203d==='')return{'valid':!0x0};let _0x29c7ee=_0x45203d['split'](',');return!_0x46c953&&_0x29c7ee[_0x3bdcde(0x17a)]>0x1?{'valid':!0x1,'reason':_0x3bdcde(0xfd)}:_0x29c7ee['some'](_0x2bd7d1=>!_0x1b6733(_0x2bd7d1))||new Set(_0x29c7ee)['size']!==_0x29c7ee[_0x3bdcde(0x17a)]||Ee(_0x29c7ee)!==_0x45203d?{'valid':!0x1,'reason':_0x3bdcde(0xf9)}:{'valid':!0x0};}function Oe(_0x1fbce1,_0x1f468f){const _0x23398e=_0x392b;if(_0x1f468f[_0x23398e(0x18d)]!==_0x54dcd1[_0x23398e(0x1c1)])return{'valid':!0x0};let _0x1e3295=N(_0x1f468f),_0x49c6e1=_0x1e3295?_0x1fbce1['tables'][_0x1e3295[_0x23398e(0x169)]]:void 0x0;if(!_0x1e3295||!_0x49c6e1)return{'valid':!0x1,'reason':'[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.'};let _0x2d5743=[..._0x1e3295['displayFieldId']?[_0x1e3295['displayFieldId']]:[],..._0x1e3295['pickerFieldIds']??[]][_0x23398e(0x145)](_0x3032f5=>{const _0x2b52ca=_0x23398e;let _0x2302fa=_0x49c6e1['fields'][_0x3032f5];return!_0x2302fa||_0x2302fa[_0x2b52ca(0x124)]===!0x0||_0x2302fa[_0x2b52ca(0x18d)]===_0x54dcd1[_0x2b52ca(0x249)];});return _0x2d5743?{'valid':!0x1,'reason':'[RecordLink]:\x20display\x20field\x20\x22'+_0x2d5743+'\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.'}:{'valid':!0x0};}function ke(_0xc1ee6c,_0x345739,_0x498e52,_0x3cb930={}){const _0x3ec307=_0x392b;let _0x15033d=N(_0x345739);if(_0x345739[_0x3ec307(0x18d)]!==_0x54dcd1[_0x3ec307(0x1c1)]||!_0x15033d)return{'valid':!0x1,'reason':_0x3ec307(0x3a8)};let _0x173112=De(_0x498e52,_0x15033d[_0x3ec307(0x149)]);if(!_0x173112[_0x3ec307(0x258)]||_0x3cb930[_0x3ec307(0x209)])return _0x173112;let _0x1ccc6b=_0xc1ee6c[_0x3ec307(0x347)][_0x15033d[_0x3ec307(0x169)]];if(!_0x1ccc6b)return{'valid':!0x1,'reason':'[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.'};let _0x31d009=Te(_0x498e52)['find'](_0x3faf91=>!_0x1ccc6b[_0x3ec307(0x286)][_0x3faf91]);return _0x31d009?{'valid':!0x1,'reason':_0x3ec307(0x1ee)+_0x31d009+_0x3ec307(0x417)}:{'valid':!0x0};}function Ae(_0x5bfd46,_0xa68f93){const _0x38a300=_0x392b;return Object[_0x38a300(0x255)](_0x5bfd46[_0x38a300(0x347)])[_0x38a300(0x330)](_0x442367=>Object['values'](_0x442367[_0x38a300(0x29a)])[_0x38a300(0x330)](_0x36144a=>{const _0x48e650=_0x38a300;let _0x5ddae8=_0x36144a[_0x48e650(0x18d)]===_0x54dcd1[_0x48e650(0x1c1)]?N(_0x36144a):null;return(_0x5ddae8==null?void 0x0:_0x5ddae8['targetTableId'])===_0xa68f93?[{'tableId':_0x442367['id'],'fieldId':_0x36144a['id']}]:[];}));}const je=0x5,Me=_0x58a750(0x127);let Ne=function(_0x529a82){const _0x17f9c9=_0x58a750;return _0x529a82[_0x17f9c9(0x176)]=_0x17f9c9(0x3d7),_0x529a82[_0x17f9c9(0x2b0)]=_0x17f9c9(0xcf),_0x529a82[_0x17f9c9(0x420)]=_0x17f9c9(0x366),_0x529a82[_0x17f9c9(0xc8)]='cycle',_0x529a82[_0x17f9c9(0xfb)]='maxDepth',_0x529a82[_0x17f9c9(0x2f0)]='sortedView',_0x529a82;}({});var P=class extends Error{constructor(_0x370cc1,_0x112975=_0x58a750(0x3fc)+_0x370cc1){const _0x542b83=_0x58a750;super(_0x112975),this['code']=_0x370cc1,this[_0x542b83(0x2fa)]=_0x542b83(0x3d3);}};let Pe=function(_0x25d3c6){const _0x52753b=_0x58a750;return _0x25d3c6['UI']='ui',_0x25d3c6['Facade']='facade',_0x25d3c6['Remote']=_0x52753b(0x24b),_0x25d3c6[_0x52753b(0x22d)]=_0x52753b(0x3bf),_0x25d3c6[_0x52753b(0x20a)]='redo',_0x25d3c6[_0x52753b(0x231)]=_0x52753b(0x310),_0x25d3c6;}({});function F(_0x2275ca,_0x5ed67c){const _0x117fb8=_0x58a750;if(!_0x5ed67c)return!0x1;let _0x13c60a=_0x2275ca[_0x117fb8(0x29a)][_0x5ed67c];if(!_0x13c60a||_0x13c60a[_0x117fb8(0x18d)]!==_0x54dcd1[_0x117fb8(0x1c1)])return!0x1;let _0x244de7=N(_0x13c60a);return _0x244de7?_0x244de7['targetTableId']===_0x2275ca['id']&&_0x244de7[_0x117fb8(0x149)]===!0x1:!0x1;}function Fe(_0x1335fd){const _0x4115a3=_0x58a750;return[..._0x1335fd['fieldOrder'],...Object[_0x4115a3(0x29c)](_0x1335fd[_0x4115a3(0x29a)])[_0x4115a3(0x253)](_0x46a611=>!_0x1335fd['fieldOrder'][_0x4115a3(0x422)](_0x46a611))[_0x4115a3(0x172)]()][_0x4115a3(0x145)](_0x54d312=>{const _0xcafea5=_0x4115a3;var _0x451ccc;return F(_0x1335fd,_0x54d312)?((_0x451ccc=N(_0x1335fd[_0xcafea5(0x29a)][_0x54d312]))==null?void 0x0:_0x451ccc[_0xcafea5(0x2b7)])===_0x3e04ef['Parent']:!0x1;})??null;}function I(_0x714741){const _0x2e8581=_0x58a750;let _0xb6b1ee=Fe(_0x714741);if(_0xb6b1ee)return _0xb6b1ee;let _0x4b9dcf=Me,_0x1dadf2=0x2;for(;_0x714741[_0x2e8581(0x29a)][_0x4b9dcf];)_0x4b9dcf=Me+'_'+_0x1dadf2++;return _0x4b9dcf;}function Ie(_0x221fe0,_0x197394=I(_0x221fe0),_0x3654e5='Parent\x20Items'){const _0x393401=_0x58a750;return{'id':_0x197394,'name':_0x3654e5,'type':_0x54dcd1[_0x393401(0x1c1)],'config':{'targetTableId':_0x221fe0['id'],'multiple':!0x1,'displayFieldId':_0x221fe0[_0x393401(0x1a8)],'pickerFieldIds':[_0x221fe0[_0x393401(0x1a8)]],'relationRole':_0x3e04ef[_0x393401(0x128)]}};}function Le(_0x275c6c){let _0x54f3fa=Fe(_0x275c6c);return _0x54f3fa?[_0x54f3fa]:[];}function Re(_0x171f03,_0x7c06ee){const _0xb1c3ea=_0x58a750;let _0x49d574=[...Le(_0x171f03)][_0xb1c3ea(0x253)](_0x457141=>_0x7c06ee[_0xb1c3ea(0x2c9)](_0xe91315=>Object['prototype']['hasOwnProperty']['call'](_0xe91315[_0xb1c3ea(0x255)],_0x457141)));if(!_0x49d574['length'])return[];let _0x54f5d7={..._0x171f03[_0xb1c3ea(0x286)]};_0x7c06ee[_0xb1c3ea(0x3b6)](_0x54d683=>{const _0x38f7d5=_0xb1c3ea;let _0x135e3d=_0x54f5d7[_0x54d683[_0x38f7d5(0x378)]];_0x135e3d&&(_0x54f5d7[_0x54d683['recordId']]={..._0x135e3d,'values':{..._0x135e3d[_0x38f7d5(0x255)],..._0x54d683['values']}});});let _0x350e37={..._0x171f03,'records':_0x54f5d7},_0x4d706c=[];return _0x49d574['forEach'](_0x3e7fcb=>{const _0x4fdd01=_0xb1c3ea;let _0x34dcfd=L(_0x171f03,_0x3e7fcb),_0x285885=L(_0x350e37,_0x3e7fcb);for(let [_0x23af55,_0x2345d9]of _0x285885[_0x4fdd01(0x35a)]){let _0x51fa6c=_0x7c06ee[_0x4fdd01(0x2c9)](_0x17459=>_0x17459[_0x4fdd01(0x378)]===_0x23af55&&Object[_0x4fdd01(0x352)]['hasOwnProperty'][_0x4fdd01(0x35f)](_0x17459[_0x4fdd01(0x255)],_0x3e7fcb));if(_0x34dcfd['invalidReasonByRecordId'][_0x4fdd01(0x1ce)](_0x23af55)!==_0x2345d9||_0x51fa6c)throw new P(Be(_0x2345d9));}_0x7c06ee[_0x4fdd01(0x3b6)](_0xe6cfb6=>{const _0x153cd7=_0x4fdd01;if(!Object[_0x153cd7(0x352)][_0x153cd7(0x363)]['call'](_0xe6cfb6[_0x153cd7(0x255)],_0x3e7fcb))return;let _0x29031d=_0x34dcfd['parentByRecordId']['get'](_0xe6cfb6['recordId'])??null,_0x1c548d=_0x285885[_0x153cd7(0x201)]['get'](_0xe6cfb6[_0x153cd7(0x378)])??null;_0x29031d!==_0x1c548d&&_0x4d706c[_0x153cd7(0x2fe)]({'tableId':_0x171f03['id'],'fieldId':_0x3e7fcb,'recordId':_0xe6cfb6[_0x153cd7(0x378)],'oldParentRecordId':_0x29031d,'parentRecordId':_0x1c548d});});}),_0x4d706c;}function ze(_0x24ceb1,_0xc40ce9){const _0x5635d4=_0x58a750;let _0x252ae6=_0xc40ce9[_0x5635d4(0x36b)](_0x35d39d=>_0x35d39d['id']);if(new Set(_0x252ae6)[_0x5635d4(0x3e9)]!==_0x252ae6[_0x5635d4(0x17a)]||_0x252ae6[_0x5635d4(0x2c9)](_0x212b00=>_0x24ceb1['records'][_0x212b00]))return[];let _0x95e298=Le(_0x24ceb1),_0x2b1682=_0x95e298['length']?null:I(_0x24ceb1),_0x50d6c9=[..._0x95e298,..._0x2b1682&&_0xc40ce9[_0x5635d4(0x2c9)](_0x231cd7=>Object['prototype'][_0x5635d4(0x363)]['call'](_0x231cd7['values'],_0x2b1682))?[_0x2b1682]:[]][_0x5635d4(0x253)](_0x5b25d2=>_0xc40ce9['some'](_0x28ae90=>Object[_0x5635d4(0x352)][_0x5635d4(0x363)][_0x5635d4(0x35f)](_0x28ae90[_0x5635d4(0x255)],_0x5b25d2)));if(!_0x50d6c9['length'])return[];let _0x45c5fe={..._0x24ceb1,'records':{..._0x24ceb1[_0x5635d4(0x286)],...Object[_0x5635d4(0x241)](_0xc40ce9[_0x5635d4(0x36b)](_0x1f3310=>[_0x1f3310['id'],_0x1f3310]))},'recordOrder':[..._0x24ceb1[_0x5635d4(0x22a)]??[],..._0xc40ce9['map'](_0x26086a=>_0x26086a['id'])]},_0x187ea9=[];return _0x50d6c9['forEach'](_0x405e53=>{const _0x204c6b=_0x5635d4;let _0x356ba4=L(_0x45c5fe,_0x405e53);_0xc40ce9[_0x204c6b(0x3b6)](_0x2eb3e2=>{const _0x901080=_0x204c6b;let _0xdf886a=_0x356ba4[_0x901080(0x35a)][_0x901080(0x1ce)](_0x2eb3e2['id']);if(_0xdf886a)throw new P(Be(_0xdf886a));let _0x53bcc4=_0x356ba4['parentByRecordId'][_0x901080(0x1ce)](_0x2eb3e2['id'])??null;_0x53bcc4&&_0x187ea9['push']({'tableId':_0x24ceb1['id'],'fieldId':_0x405e53,'recordId':_0x2eb3e2['id'],'oldParentRecordId':null,'parentRecordId':_0x53bcc4});});}),_0x187ea9;}function Be(_0x41343e){const _0x47b7e6=_0x58a750;switch(_0x41343e){case _0x4ff8e1['MissingParent']:return _0x47b7e6(0xcf);case _0x4ff8e1[_0x47b7e6(0x420)]:return _0x47b7e6(0x366);case _0x4ff8e1[_0x47b7e6(0xc8)]:return _0x47b7e6(0xfc);case _0x4ff8e1['MaxDepth']:return _0x47b7e6(0x161);}}function Ve(_0x3d250a,_0x268210){const _0x15ee07=_0x58a750;let _0x156b0f=new Set(_0x268210),_0x9713f2=Le(_0x3d250a);return Object[_0x15ee07(0x255)](_0x3d250a['records'])['flatMap'](_0x410a2b=>_0x156b0f[_0x15ee07(0x192)](_0x410a2b['id'])?[]:Array['from'](_0x9713f2)[_0x15ee07(0x330)](_0xa0b90b=>{const _0x18e806=_0x15ee07;let _0x117d33=Te(_0x410a2b[_0x18e806(0x255)][_0xa0b90b])[0x0]??null;return _0x117d33&&_0x156b0f[_0x18e806(0x192)](_0x117d33)?[{'tableId':_0x3d250a['id'],'fieldId':_0xa0b90b,'recordId':_0x410a2b['id'],'oldParentRecordId':_0x117d33,'parentRecordId':null}]:[];}));}function L(_0x57d8e6,_0x479d98,_0x5b55d0=_0x57d8e6['recordOrder']??Object[_0x58a750(0x29c)](_0x57d8e6[_0x58a750(0x286)])){const _0x5d2e79=_0x58a750;if(!(!_0x57d8e6[_0x5d2e79(0x29a)][_0x479d98]&&_0x479d98===I(_0x57d8e6))&&!F(_0x57d8e6,_0x479d98))throw Error(_0x5d2e79(0x305)+_0x479d98+_0x5d2e79(0x144));let _0x5b28d1=Ge(_0x57d8e6,_0x5b55d0),_0x2dd49a=new Map(),_0x417521=new Map();for(let _0x3ba0fc of _0x5b28d1){var _0x13d14e;let _0x415caa=Te((_0x13d14e=_0x57d8e6[_0x5d2e79(0x286)][_0x3ba0fc])==null?void 0x0:_0x13d14e[_0x5d2e79(0x255)][_0x479d98])[0x0]??null;_0x415caa?_0x415caa===_0x3ba0fc?(_0x2dd49a[_0x5d2e79(0x191)](_0x3ba0fc,null),_0x417521[_0x5d2e79(0x191)](_0x3ba0fc,_0x4ff8e1[_0x5d2e79(0x420)])):_0x57d8e6['records'][_0x415caa]?_0x2dd49a[_0x5d2e79(0x191)](_0x3ba0fc,_0x415caa):(_0x2dd49a[_0x5d2e79(0x191)](_0x3ba0fc,null),_0x417521[_0x5d2e79(0x191)](_0x3ba0fc,_0x4ff8e1['MissingParent'])):_0x2dd49a[_0x5d2e79(0x191)](_0x3ba0fc,null);}Ke(_0x2dd49a,_0x417521,_0x5b28d1),qe(_0x2dd49a,_0x417521,_0x5b28d1);let _0x4f8403=new Map(_0x5b28d1[_0x5d2e79(0x36b)]((_0x4a186d,_0x56c750)=>[_0x4a186d,_0x56c750])),_0xa4e6d1=new Map();for(let _0xc52cca of _0x5b28d1){let _0x246519=_0x2dd49a[_0x5d2e79(0x1ce)](_0xc52cca)??null,_0xf48a99=_0xa4e6d1['get'](_0x246519)??[];_0xf48a99[_0x5d2e79(0x2fe)](_0xc52cca),_0xa4e6d1[_0x5d2e79(0x191)](_0x246519,_0xf48a99);}_0xa4e6d1['forEach'](_0xd008fe=>_0xd008fe[_0x5d2e79(0x172)]((_0x4d2cc0,_0x1d9f59)=>(_0x4f8403[_0x5d2e79(0x1ce)](_0x4d2cc0)??0x0)-(_0x4f8403[_0x5d2e79(0x1ce)](_0x1d9f59)??0x0)));let _0x2287ab=_0xa4e6d1[_0x5d2e79(0x1ce)](null)??[],_0x10e70b=new Map(),_0x789649=new Map(),_0x284fbd=[],_0x5a8104=(_0x5026fd,_0x3bb074)=>{const _0x52b1ca=_0x5d2e79;_0x10e70b[_0x52b1ca(0x191)](_0x5026fd,_0x3bb074),_0x284fbd['push'](_0x5026fd);let _0x328087=0x0;for(let _0x3c133a of _0xa4e6d1[_0x52b1ca(0x1ce)](_0x5026fd)??[])_0x328087=Math['max'](_0x328087,0x1+_0x5a8104(_0x3c133a,_0x3bb074+0x1));return _0x789649[_0x52b1ca(0x191)](_0x5026fd,_0x328087),_0x328087;};return _0x2287ab['forEach'](_0x3df8fa=>_0x5a8104(_0x3df8fa,0x0)),{'fieldId':_0x479d98,'parentByRecordId':_0x2dd49a,'childrenByParentId':_0xa4e6d1,'depthByRecordId':_0x10e70b,'subtreeHeightByRecordId':_0x789649,'invalidReasonByRecordId':_0x417521,'rootRecordIds':_0x2287ab,'orderedRecordIds':_0x284fbd};}function He(_0x37ae5b,_0x11db2d,_0x2e9475=new Set(_0x11db2d[_0x58a750(0x36b)](_0x2b94ce=>_0x2b94ce['recordId']))){const _0x15efa6=_0x58a750;let _0x252adf=new Set(_0x2e9475);for(let _0x3b619b of _0x2e9475){let _0x150dd4=_0x37ae5b['parentByRecordId'][_0x15efa6(0x1ce)](_0x3b619b)??null;for(;_0x150dd4;)_0x252adf[_0x15efa6(0x2a8)](_0x150dd4),_0x150dd4=_0x37ae5b[_0x15efa6(0x201)]['get'](_0x150dd4)??null;}let _0x20f0a6=new Map(_0x11db2d[_0x15efa6(0x36b)](_0x2389b2=>[_0x2389b2['recordId'],_0x2389b2])),_0x3f68b1=_0x37ae5b['orderedRecordIds'][_0x15efa6(0x253)](_0x1f1478=>_0x252adf[_0x15efa6(0x192)](_0x1f1478)),_0x870342=_0x3f68b1[_0x15efa6(0x330)](_0x50fd86=>{const _0x520ae6=_0x15efa6;let _0x5d9162=_0x20f0a6[_0x520ae6(0x1ce)](_0x50fd86);return _0x5d9162?[_0x5d9162]:[];}),_0x79d155={};for(let _0x35e8d3=0x0;_0x35e8d3<_0x3f68b1[_0x15efa6(0x17a)];_0x35e8d3++){let _0x3a6489=_0x3f68b1[_0x35e8d3];_0x79d155[_0x3a6489]={'recordId':_0x3a6489,'parentRecordId':_0x37ae5b[_0x15efa6(0x201)]['get'](_0x3a6489)??null,'depth':_0x37ae5b[_0x15efa6(0x105)][_0x15efa6(0x1ce)](_0x3a6489)??0x0,'directChildCount':(_0x37ae5b[_0x15efa6(0x11a)][_0x15efa6(0x1ce)](_0x3a6489)??[])[_0x15efa6(0x17a)],'subtreeHeight':_0x37ae5b['subtreeHeightByRecordId'][_0x15efa6(0x1ce)](_0x3a6489)??0x0,'subtreeEndIndex':_0x35e8d3,'invalidReason':_0x37ae5b[_0x15efa6(0x35a)]['get'](_0x3a6489)};}let _0x35e99d=[];for(let _0x43fe64=0x0;_0x43fe64<_0x3f68b1['length'];_0x43fe64++){let _0x7f2946=_0x3f68b1[_0x43fe64],_0x495c35=_0x79d155[_0x7f2946][_0x15efa6(0x155)];for(;_0x35e99d[_0x15efa6(0x17a)]&&_0x35e99d[_0x35e99d['length']-0x1]['depth']>=_0x495c35;){let _0xe2c6fd=_0x35e99d['pop']();_0x79d155[_0xe2c6fd[_0x15efa6(0x378)]][_0x15efa6(0x26d)]=_0x43fe64-0x1;}_0x35e99d[_0x15efa6(0x2fe)]({'recordId':_0x7f2946,'depth':_0x495c35});}return _0x35e99d['forEach'](({recordId:_0x3691fa})=>{const _0x501ba0=_0x15efa6;_0x79d155[_0x3691fa][_0x501ba0(0x26d)]=_0x3f68b1[_0x501ba0(0x17a)]-0x1;}),{'rows':_0x870342,'hierarchy':{'fieldId':_0x37ae5b[_0x15efa6(0x32d)],'rootRecordIds':_0x37ae5b['rootRecordIds'][_0x15efa6(0x253)](_0x59a6b9=>_0x252adf[_0x15efa6(0x192)](_0x59a6b9)),'orderedRecordIds':_0x3f68b1,'nodes':_0x79d155}};}function Ue(_0x2082d3,_0x1f7c68){const _0x5e137a=_0x58a750;if(!_0x2082d3['hierarchy']||!(_0x1f7c68!=null&&_0x1f7c68['size']))return _0x2082d3[_0x5e137a(0x204)];let _0x96badb=[],_0x2928d6=0x0;for(;_0x2928d6<_0x2082d3[_0x5e137a(0x204)]['length'];){let _0x13a682=_0x2082d3[_0x5e137a(0x204)][_0x2928d6];_0x96badb[_0x5e137a(0x2fe)](_0x13a682);let _0x56a718=_0x2082d3[_0x5e137a(0x19d)][_0x5e137a(0x10e)][_0x13a682[_0x5e137a(0x378)]];_0x2928d6=_0x1f7c68['has'](_0x13a682['recordId'])&&_0x56a718?_0x56a718[_0x5e137a(0x26d)]+0x1:_0x2928d6+0x1;}return _0x96badb;}function We(_0x2ecc93,_0x307463,_0x4758c9){const _0x594549=_0x58a750;if(!_0x4758c9)return{'valid':!0x0};if(_0x307463===_0x4758c9)return{'valid':!0x1,'reason':_0x4ff8e1[_0x594549(0x420)]};let _0x4d5dd4=_0x4758c9;for(;_0x4d5dd4;){if(_0x4d5dd4===_0x307463)return{'valid':!0x1,'reason':_0x4ff8e1[_0x594549(0xc8)]};_0x4d5dd4=_0x2ecc93['parentByRecordId'][_0x594549(0x1ce)](_0x4d5dd4)??null;}return(_0x2ecc93[_0x594549(0x105)][_0x594549(0x1ce)](_0x4758c9)??0x0)+0x1+(_0x2ecc93[_0x594549(0x3c5)][_0x594549(0x1ce)](_0x307463)??0x0)>=0x5?{'valid':!0x1,'reason':_0x4ff8e1[_0x594549(0xfb)]}:{'valid':!0x0};}function Ge(_0x429ced,_0x5208e1){const _0x960f2=_0x58a750;let _0x5edd9b=new Set(),_0x26495d=[];for(let _0x1be366 of _0x5208e1)_0x429ced[_0x960f2(0x286)][_0x1be366]&&!_0x5edd9b[_0x960f2(0x192)](_0x1be366)&&(_0x5edd9b[_0x960f2(0x2a8)](_0x1be366),_0x26495d[_0x960f2(0x2fe)](_0x1be366));return Object[_0x960f2(0x29c)](_0x429ced[_0x960f2(0x286)])[_0x960f2(0x172)]()['forEach'](_0x2c9d70=>{const _0x24e312=_0x960f2;_0x5edd9b[_0x24e312(0x192)](_0x2c9d70)||_0x26495d[_0x24e312(0x2fe)](_0x2c9d70);}),_0x26495d;}function Ke(_0x562244,_0x41d50a,_0x3dde32){const _0x5dcad0=_0x58a750;let _0x517dee=new Set();for(let _0x48a2e6 of _0x3dde32){if(_0x517dee[_0x5dcad0(0x192)](_0x48a2e6))continue;let _0x391950=[],_0x328776=new Map(),_0x5a25da=_0x48a2e6;for(;_0x5a25da&&!_0x517dee[_0x5dcad0(0x192)](_0x5a25da);){let _0x2aba4f=_0x328776['get'](_0x5a25da);if(_0x2aba4f!=null){let _0x41845f=[..._0x391950[_0x5dcad0(0x39f)](_0x2aba4f)][_0x5dcad0(0x172)]()[_0x5dcad0(0x2d3)]();_0x562244[_0x5dcad0(0x191)](_0x41845f,null),_0x41d50a['set'](_0x41845f,_0x4ff8e1[_0x5dcad0(0xc8)]);break;}_0x328776['set'](_0x5a25da,_0x391950[_0x5dcad0(0x17a)]),_0x391950[_0x5dcad0(0x2fe)](_0x5a25da),_0x5a25da=_0x562244[_0x5dcad0(0x1ce)](_0x5a25da)??null;}_0x391950['forEach'](_0x21ca77=>_0x517dee[_0x5dcad0(0x2a8)](_0x21ca77));}}function qe(_0x34afd3,_0x5b3f8b,_0xfe1e21){const _0x1e26bb=_0x58a750;let _0x33db42=new Map(),_0x109e8b=_0x4c3233=>{const _0x30c550=_0x392b;let _0x57987e=_0x33db42[_0x30c550(0x1ce)](_0x4c3233);if(_0x57987e!=null)return _0x57987e;let _0x1beb49=_0x34afd3[_0x30c550(0x1ce)](_0x4c3233)??null;if(!_0x1beb49)return _0x33db42['set'](_0x4c3233,0x0),0x0;let _0x4304fc=_0x109e8b(_0x1beb49)+0x1;return _0x4304fc>=0x5?(_0x34afd3[_0x30c550(0x191)](_0x4c3233,null),_0x5b3f8b['set'](_0x4c3233,_0x4ff8e1['MaxDepth']),_0x33db42[_0x30c550(0x191)](_0x4c3233,0x0),0x0):(_0x33db42[_0x30c550(0x191)](_0x4c3233,_0x4304fc),_0x4304fc);};_0xfe1e21[_0x1e26bb(0x3b6)](_0x109e8b);}let Je=0x0;function Ye(){const _0xcea6ac=_0x58a750;if(globalThis[_0xcea6ac(0x1e2)]===!0x0)return!0x0;try{let _0x922a71=typeof location>'u'?'':location['search'],_0x2dc48b=new URLSearchParams(_0x922a71);if(_0x2dc48b[_0xcea6ac(0x1ce)](_0xcea6ac(0x14c))==='1'||_0x2dc48b[_0xcea6ac(0x1ce)](_0xcea6ac(0x14c))===_0xcea6ac(0x312)||_0x2dc48b['get']('base-perf')==='1')return!0x0;}catch{}try{let _0x445e63=typeof localStorage>'u'?null:localStorage[_0xcea6ac(0x205)](_0xcea6ac(0x26e));return _0x445e63==='1'||_0x445e63===_0xcea6ac(0x312);}catch{return!0x1;}}function R(_0x333fd0,_0x164f40,_0x2b44e9){const _0x3795a7=_0x58a750;if(!Ye())return _0x164f40();let _0x370c5c=Ze(),_0x519ab0='base-perf-'+Je++;Qe(_0x519ab0+':start');try{return _0x164f40();}finally{let _0x1a446c=Ze()-_0x370c5c;Qe(_0x519ab0+_0x3795a7(0x3cd)),$e(_0x333fd0,_0x519ab0+_0x3795a7(0x3f6),_0x519ab0+':end'),Xe(_0x333fd0,_0x1a446c,_0x2b44e9);}}function Xe(_0x1bfc8b,_0xbd7a92,_0x20cca7){const _0x29ae98=_0x58a750;if(!Ye())return;let _0x2036c4=Math[_0x29ae98(0x3a7)](_0xbd7a92*0x64)/0x64,_0x33546b=_0x20cca7&&Object[_0x29ae98(0x29c)](_0x20cca7)[_0x29ae98(0x17a)]?'\x20'+JSON[_0x29ae98(0x403)](_0x20cca7):'';console[_0x29ae98(0xdf)]('[BasePerf]\x20'+_0x1bfc8b+':\x20'+_0x2036c4+'ms'+_0x33546b);}function Ze(){const _0x2a9dcd=_0x58a750;return typeof performance<'u'&&typeof performance[_0x2a9dcd(0x158)]==_0x2a9dcd(0x25c)?performance[_0x2a9dcd(0x158)]():Date[_0x2a9dcd(0x158)]();}function Qe(_0x205529){const _0x230b98=_0x58a750;try{if(typeof performance<'u'){var _0xed63c7,_0x1f5aed;(_0xed63c7=(_0x1f5aed=performance)[_0x230b98(0x301)])==null||_0xed63c7[_0x230b98(0x35f)](_0x1f5aed,_0x205529);}}catch{}}function $e(_0x252f55,_0x414f3d,_0x1048a5){const _0x1d9d72=_0x58a750;try{if(typeof performance<'u'){var _0x2ad108,_0x5a35ce;(_0x2ad108=(_0x5a35ce=performance)[_0x1d9d72(0x159)])==null||_0x2ad108[_0x1d9d72(0x35f)](_0x5a35ce,_0x1d9d72(0x12d)+_0x252f55,_0x414f3d,_0x1048a5);}}catch{}}function z(_0x4738f0){const _0x1cfa4a=_0x58a750;var _0x4a1f5b;return Ye()?R(_0x1cfa4a(0x342),()=>et(_0x4738f0),{'tableId':_0x4738f0['id'],'records':Object['keys'](_0x4738f0['records']??{})['length'],'fields':_0x4738f0['fieldOrder'][_0x1cfa4a(0x17a)],'hasRecordOrder':!!((_0x4a1f5b=_0x4738f0[_0x1cfa4a(0x22a)])!=null&&_0x4a1f5b[_0x1cfa4a(0x17a)])}):et(_0x4738f0);}function et(_0x19b0a4){const _0x5cb227=_0x58a750;var _0xab4ac1;let _0x1208a7=_0x19b0a4[_0x5cb227(0x286)]??{},_0x4bf28c=_0x19b0a4[_0x5cb227(0x29a)]??{},_0x53e114=((_0xab4ac1=_0x19b0a4[_0x5cb227(0x22a)])==null?void 0x0:_0xab4ac1[_0x5cb227(0x253)](_0x1cb170=>_0x1208a7[_0x1cb170]))??[],_0x389ceb=new Set(_0x53e114),_0x117ec4=[];for(let _0x13d3d2 of Object[_0x5cb227(0x255)](_0x1208a7))_0x389ceb[_0x5cb227(0x192)](_0x13d3d2['id'])||_0x117ec4['push'](_0x13d3d2);let _0x1f03c2=_0x117ec4[_0x5cb227(0x17a)]?[..._0x53e114,...St(_0x117ec4)]:_0x53e114,_0x417a57=_0x19b0a4['fieldOrder'][_0x5cb227(0x253)](_0x2964cf=>_0x4bf28c[_0x2964cf]),_0x5236cc={..._0x19b0a4[_0x5cb227(0x2c1)]??{}},_0x110818={..._0x19b0a4[_0x5cb227(0x28b)]??{}},_0x55fda={..._0x19b0a4['cellData']??{}};_0x19b0a4['recordOrder']=_0x1f03c2,_0x19b0a4[_0x5cb227(0x1b6)]={},_0x19b0a4[_0x5cb227(0x2c1)]={},_0x19b0a4[_0x5cb227(0x203)]={},_0x19b0a4[_0x5cb227(0x28b)]={},_0x19b0a4['cellData']={},_0x19b0a4['resources']={..._0x19b0a4[_0x5cb227(0xfa)]??{}},_0x19b0a4[_0x5cb227(0xfa)][_0x5cb227(0x31a)]={..._0x19b0a4[_0x5cb227(0xfa)]['attachmentSets']??{}},_0x19b0a4[_0x5cb227(0xfa)][_0x5cb227(0x21b)]={..._0x19b0a4['resources'][_0x5cb227(0x21b)]??{}};let _0x3a9798=_0x19b0a4[_0x5cb227(0x1b6)],_0x2a42d8=_0x19b0a4[_0x5cb227(0x2c1)],_0x4b8447=_0x19b0a4[_0x5cb227(0x203)],_0x323682=_0x19b0a4['colId'],_0x4c57c4=_0x19b0a4['cellData'];return _0x1f03c2['forEach']((_0x54daa6,_0x305914)=>{_0x3a9798[_0x54daa6]=_0x305914,_0x2a42d8[_0x305914]=_0x54daa6;}),_0x417a57[_0x5cb227(0x3b6)]((_0x330bcb,_0x4972a6)=>{_0x4b8447[_0x330bcb]=_0x4972a6,_0x323682[_0x4972a6]=_0x330bcb;}),Object[_0x5cb227(0x23c)](_0x55fda)[_0x5cb227(0x3b6)](([_0x130777,_0x89d04b])=>{const _0x3060c5=_0x5cb227;let _0x3a6ba7=Number(_0x130777),_0x4d0067=_0x5236cc[_0x3a6ba7]??_0x1f03c2[_0x3a6ba7],_0x72521d=_0x4d0067?_0x3a9798[_0x4d0067]:void 0x0;_0x72521d!=null&&(_0x4c57c4[_0x72521d]={..._0x4c57c4[_0x72521d]??{}},Object[_0x3060c5(0x23c)](_0x89d04b??{})[_0x3060c5(0x3b6)](([_0x3ddee7,_0x294a68])=>{let _0xd643db=Number(_0x3ddee7),_0x1da220=_0x110818[_0xd643db]??_0x417a57[_0xd643db],_0x3e7734=_0x1da220?_0x4b8447[_0x1da220]:void 0x0;_0x3e7734!=null&&(_0x4c57c4[_0x72521d][_0x3e7734]=ct(_0x294a68));}));}),Object[_0x5cb227(0x255)](_0x1208a7)['forEach'](_0xec434e=>{const _0x438f73=_0x5cb227;let _0x2d3874=_0x3a9798[_0xec434e['id']];_0x2d3874!=null&&(_0xec434e['values']={..._0xec434e[_0x438f73(0x255)]??{},[_0x1abc18]:_0xec434e['id']},_0x4c57c4[_0x2d3874]={..._0x4c57c4[_0x2d3874]??{},0x0:{'v':_0xec434e['id'],'t':_0x10de44[_0x438f73(0x364)]}},Object[_0x438f73(0x23c)](_0xec434e[_0x438f73(0x255)]??{})[_0x438f73(0x3b6)](([_0x1715b6,_0x5bcf38])=>{const _0x339ba1=_0x438f73;let _0x5050a3=_0x4bf28c[_0x1715b6];(_0x5050a3==null?void 0x0:_0x5050a3[_0x339ba1(0x18d)])===_0x54dcd1[_0x339ba1(0xd4)]&&pt(_0x19b0a4,_0xec434e['id'],_0x1715b6,_0x5bcf38);let _0x55876a=_0x4b8447[_0x1715b6];if(_0x55876a==null)return;let _0xe8a1ed=_0x4c57c4[_0x2d3874][_0x55876a];if(_0xe8a1ed!=null){_t(_0xe8a1ed,_0x5050a3,_0x5bcf38)&&(_0x4c57c4[_0x2d3874][_0x55876a]=st(_0x5bcf38,_0x5050a3));return;}_0x4c57c4[_0x2d3874][_0x55876a]=st(_0x5bcf38,_0x5050a3);}));}),_0x19b0a4;}function tt(_0x221462){const _0x1d35ab=_0x58a750;return z(_0x221462),Object[_0x1d35ab(0x23c)](_0x221462[_0x1d35ab(0x2c1)]??{})[_0x1d35ab(0x3b6)](([_0x232e5f,_0x332ecf])=>{const _0x422814=_0x1d35ab;var _0x7f2aa;let _0x1b9af8=Number(_0x232e5f),_0x32bae4=_0x221462[_0x422814(0x286)][_0x332ecf];_0x32bae4&&(_0x32bae4[_0x422814(0x255)]={..._0x32bae4[_0x422814(0x255)]??{}},Object['entries'](((_0x7f2aa=_0x221462[_0x422814(0xd8)])==null?void 0x0:_0x7f2aa[_0x1b9af8])??{})['forEach'](([_0x1efd95,_0x3a9b49])=>{const _0x3d4f10=_0x422814;var _0x145269;let _0x16f886=(_0x145269=_0x221462[_0x3d4f10(0x28b)])==null?void 0x0:_0x145269[Number(_0x1efd95)];_0x16f886===_0x1abc18?_0x32bae4[_0x3d4f10(0x255)][_0x1abc18]=_0x32bae4['id']:_0x16f886&&(_0x32bae4[_0x3d4f10(0x255)][_0x16f886]=lt(_0x3a9b49,_0x221462[_0x3d4f10(0x29a)][_0x16f886],_0x221462,_0x332ecf));}));}),_0x221462;}function nt(_0x458763,_0x348304){const _0x5ec271=_0x58a750;for(let {row:_0x58fa8b,col:_0x802509}of _0x348304){var _0xc88af5,_0x3e696d,_0x49b131;let _0x15a89a=(_0xc88af5=_0x458763[_0x5ec271(0x2c1)])==null?void 0x0:_0xc88af5[_0x58fa8b],_0xc4a577=(_0x3e696d=_0x458763['colId'])==null?void 0x0:_0x3e696d[_0x802509],_0x4f961c=_0x15a89a?_0x458763[_0x5ec271(0x286)][_0x15a89a]:void 0x0;if(!_0x4f961c||!_0xc4a577)continue;if(_0xc4a577===_0x1abc18){_0x4f961c['values'][_0x1abc18]=_0x4f961c['id'];continue;}let _0x133b8a=(_0x49b131=_0x458763[_0x5ec271(0xd8)])==null||(_0x49b131=_0x49b131[_0x58fa8b])==null?void 0x0:_0x49b131[_0x802509];_0x133b8a==null&&!Object['prototype'][_0x5ec271(0x363)][_0x5ec271(0x35f)](_0x4f961c['values']??{},_0xc4a577)||(_0x4f961c[_0x5ec271(0x255)]={..._0x4f961c[_0x5ec271(0x255)]??{}},_0x4f961c[_0x5ec271(0x255)][_0xc4a577]=lt(_0x133b8a,_0x458763[_0x5ec271(0x29a)][_0xc4a577],_0x458763,_0x15a89a));}return _0x458763;}function rt(_0x517960,_0x3de2b8,_0x535c68){const _0x5098cb=_0x58a750;var _0x33dfaf,_0x429d1f,_0x4cc169,_0x3903ba,_0x22dea5,_0x5a9e59;let _0x28b2a5=(_0x33dfaf=_0x517960[_0x5098cb(0x1b6)])==null?void 0x0:_0x33dfaf[_0x3de2b8],_0x1cd5d8=(_0x429d1f=_0x517960['colIndex'])==null?void 0x0:_0x429d1f[_0x535c68];if(_0x28b2a5!=null&&_0x1cd5d8!=null&&((_0x4cc169=_0x517960[_0x5098cb(0x2c1)])==null?void 0x0:_0x4cc169[_0x28b2a5])===_0x3de2b8&&((_0x3903ba=_0x517960[_0x5098cb(0x28b)])==null?void 0x0:_0x3903ba[_0x1cd5d8])===_0x535c68)return{'row':_0x28b2a5,'col':_0x1cd5d8};let _0x344a97=z(_0x517960),_0x3e9571=(_0x22dea5=_0x344a97['rowIndex'])==null?void 0x0:_0x22dea5[_0x3de2b8],_0x55e8a2=(_0x5a9e59=_0x344a97['colIndex'])==null?void 0x0:_0x5a9e59[_0x535c68];return _0x3e9571==null||_0x55e8a2==null?null:{'row':_0x3e9571,'col':_0x55e8a2};}function it(_0x1e2b45,_0x17f249,_0x534ba8){const _0x2ad008=_0x58a750;var _0x2f4809;let _0x3d39c7=rt(_0x1e2b45,_0x17f249,_0x534ba8);if(_0x3d39c7)return(_0x2f4809=_0x1e2b45[_0x2ad008(0xd8)])==null||(_0x2f4809=_0x2f4809[_0x3d39c7[_0x2ad008(0x207)]])==null?void 0x0:_0x2f4809[_0x3d39c7[_0x2ad008(0x2c3)]];}function at(_0x306c92,_0x1d5747,_0x32a910){const _0x894ca9=_0x58a750;var _0x45246e;let _0x54f7db=it(_0x306c92,_0x1d5747,_0x32a910),_0x4baf1c=_0x306c92[_0x894ca9(0x29a)][_0x32a910];if((_0x4baf1c==null?void 0x0:_0x4baf1c[_0x894ca9(0x18d)])===_0x54dcd1['Attachment']){var _0x1a5a85;return mt(_0x306c92,_0x1d5747,_0x32a910)??ht((_0x1a5a85=_0x306c92[_0x894ca9(0x286)][_0x1d5747])==null||(_0x1a5a85=_0x1a5a85[_0x894ca9(0x255)])==null?void 0x0:_0x1a5a85[_0x32a910]);}if(vt(_0x4baf1c)||(_0x4baf1c==null?void 0x0:_0x4baf1c[_0x894ca9(0x18d)])===_0x54dcd1[_0x894ca9(0x39d)]){var _0x4a3ac9;let _0x4be3be=(_0x4a3ac9=_0x306c92[_0x894ca9(0x286)][_0x1d5747])==null||(_0x4a3ac9=_0x4a3ac9[_0x894ca9(0x255)])==null?void 0x0:_0x4a3ac9[_0x32a910];return _0x4be3be!=null&&_0x4be3be!==''?gt(_0x4be3be,_0x4baf1c):lt(_0x54f7db,_0x4baf1c,_0x306c92,_0x1d5747);}return _0x54f7db&&Object[_0x894ca9(0x352)][_0x894ca9(0x363)][_0x894ca9(0x35f)](_0x54f7db,'v')?_0x54f7db['v']??null:((_0x45246e=_0x306c92[_0x894ca9(0x286)][_0x1d5747])==null||(_0x45246e=_0x45246e[_0x894ca9(0x255)])==null?void 0x0:_0x45246e[_0x32a910])??null;}function ot(_0xd4db46,_0x4a8f4d,_0x19743e){const _0x1426f0=_0x58a750;var _0x41e57d;let _0x4c2116=it(_0xd4db46,_0x4a8f4d,_0x19743e);if(_0x4c2116&&Object[_0x1426f0(0x352)][_0x1426f0(0x363)]['call'](_0x4c2116,'v'))return _0x4c2116['v']??null;let _0xbe5066=_0xd4db46[_0x1426f0(0x29a)][_0x19743e];return st(((_0x41e57d=_0xd4db46[_0x1426f0(0x286)][_0x4a8f4d])==null||(_0x41e57d=_0x41e57d['values'])==null?void 0x0:_0x41e57d[_0x19743e])??null,_0xbe5066)['v']??null;}function st(_0x280c52,_0x37861f){const _0x3d219e=_0x58a750;if(dt(_0x280c52))return(_0x37861f==null?void 0x0:_0x37861f[_0x3d219e(0x18d)])===_0x54dcd1[_0x3d219e(0xd4)]?{..._0x280c52,'v':'','t':_0x10de44[_0x3d219e(0x364)]}:ct(_0x280c52);if((_0x37861f==null?void 0x0:_0x37861f[_0x3d219e(0x18d)])===_0x54dcd1[_0x3d219e(0xd4)])return{'v':'','t':_0x10de44['STRING']};if(vt(_0x37861f))return{'v':yt(_0x280c52)[_0x3d219e(0x20b)](',\x20'),'t':_0x10de44[_0x3d219e(0x364)]};if((_0x37861f==null?void 0x0:_0x37861f[_0x3d219e(0x18d)])===_0x54dcd1[_0x3d219e(0x39d)]&&_0x280c52&&typeof _0x280c52=='object'&&!Array[_0x3d219e(0x25e)](_0x280c52)){let _0x1a008f=_0x280c52;return{'v':String(_0x1a008f[_0x3d219e(0x11c)]??_0x1a008f[_0x3d219e(0x2d9)]??''),'t':_0x10de44[_0x3d219e(0x364)]};}return _0x280c52===null||typeof _0x280c52=='string'||typeof _0x280c52==_0x3d219e(0x30a)||typeof _0x280c52==_0x3d219e(0x27a)?{'v':_0x280c52,'t':xt(_0x280c52)}:{'v':null,'t':null};}function ct(_0x31d08f){let _0x58a1b6=Ct(_0x31d08f['t'],_0x31d08f['v']);if(_0x58a1b6===void 0x0){let {t:_0x38a679,..._0x2b4d23}=_0x31d08f;return _0x2b4d23;}return{..._0x31d08f,'t':_0x58a1b6};}function lt(_0x14b23a,_0xb9172b,_0xb16bde,_0x868745){const _0x5f2dca=_0x58a750;if(!_0x14b23a)return null;if((_0xb9172b==null?void 0x0:_0xb9172b[_0x5f2dca(0x18d)])===_0x54dcd1[_0x5f2dca(0xd4)])return _0xb16bde&&_0x868745?mt(_0xb16bde,_0x868745,_0xb9172b['id'])??[]:[];if(vt(_0xb9172b))return yt(_0x14b23a['v']);if((_0xb9172b==null?void 0x0:_0xb9172b[_0x5f2dca(0x18d)])===_0x54dcd1['Link']&&_0xb16bde&&_0x868745){var _0x42d798;let _0x38ffaf=(_0x42d798=_0xb16bde[_0x5f2dca(0x286)][_0x868745])==null||(_0x42d798=_0x42d798[_0x5f2dca(0x255)])==null?void 0x0:_0x42d798[_0xb9172b['id']];if(_0x38ffaf&&typeof _0x38ffaf==_0x5f2dca(0x133)&&!Array[_0x5f2dca(0x25e)](_0x38ffaf))return _0x38ffaf;}return Object[_0x5f2dca(0x352)][_0x5f2dca(0x363)]['call'](_0x14b23a,'v')?_0x14b23a['v']??null:null;}function ut(_0xe28de5,_0xdb1b58,_0xc09c62,_0x5da869,_0x24c1bf){const _0x3035ce=_0x58a750;return(_0xc09c62==null?void 0x0:_0xc09c62[_0x3035ce(0x18d)])===_0x54dcd1[_0x3035ce(0xd4)]?ht(_0xe28de5):vt(_0xc09c62)?yt(_0xe28de5):(_0xc09c62==null?void 0x0:_0xc09c62[_0x3035ce(0x18d)])===_0x54dcd1[_0x3035ce(0x39d)]&&_0xe28de5&&typeof _0xe28de5==_0x3035ce(0x133)&&!Array['isArray'](_0xe28de5)&&!dt(_0xe28de5)?_0xe28de5:lt(_0xdb1b58,_0xc09c62,_0x5da869,_0x24c1bf);}function dt(_0x1cb50a){const _0x59a711=_0x58a750;return!!_0x1cb50a&&typeof _0x1cb50a==_0x59a711(0x133)&&(Object[_0x59a711(0x352)][_0x59a711(0x363)][_0x59a711(0x35f)](_0x1cb50a,'v')||Object[_0x59a711(0x352)][_0x59a711(0x363)][_0x59a711(0x35f)](_0x1cb50a,'t')||Object['prototype'][_0x59a711(0x363)]['call'](_0x1cb50a,'p')||Object[_0x59a711(0x352)][_0x59a711(0x363)][_0x59a711(0x35f)](_0x1cb50a,'f')||Object[_0x59a711(0x352)][_0x59a711(0x363)][_0x59a711(0x35f)](_0x1cb50a,'si'));}function ft(_0x27c5eb,_0x37d239){return _0x27c5eb+'\x1f'+_0x37d239;}function _0x1521(){const _0x3a6db7=['padStart','base.command.batch-delete-base-records','raw','groups','_getCurrentUserId','missingField','duplicate','_getCellRevision','YYYY/MM/DD','embed-ui','empty','showFieldNames','#,##0.00','_scheduleSuperTableSync','register','_buildKanban','Done','separatorStyle','_isGanttDateField','person','duplicateField','_resolveCardTitleFieldId','fld-','_groupProjectionFieldIds','_normalizeCellValue','_scheduledSuperTableSyncs','_rowTransformCacheSegment','description','_materializeGroups','startDateFieldId','getCurrentUser','Link','NOT_CONTAINS','slice','_normalizeCalendarConfig','duplicateRecord','hostAnchorId','displayFieldId','createSuperTableReference','leftPaneWidth','after','round','[RecordLink]:\x20field\x20config\x20is\x20invalid.','check','_univerInstanceService','unknown','_applyFormulaResult','columnSettings','base.fieldType.','date','_initialize','_normalizeGanttDisplayColor','trim','columns','setRangeValues','tryMaterializeSnapshot','forEach','getStructuredDependencies','pattern','base.command.delete-base-table','[BaseField]:\x20invalid\x20number\x20value.','_isAllowedKanbanGroupField','dateMode','filled','compose','undo','1534708EFSyig','BaseJson1.json1Apply','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Group','blue','subtreeHeightByRecordId','canManageView','invalidDateField','_groupsCacheKey','oldParentRecordId','displayColor','tableId','conditionalColoring',':end','includeRecords','greaterThanOrEqual','replaceOp','toLowerCase','exception-','BaseHierarchyError','Clear','base.permission.service','_config','invalidField','isNot','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','_cellRevisions','#BFDBFE','BaseProjection.projectGroups','_replaceOptional','lessThanOrEqual','label','fieldOrder','_buildCalendar','autoIncrement','percent','createViewId','4639327kGcczE','cardSize','lastIndex','Numbering','size','base.mutation.apply-base-json1','Choose\x20another\x20name.','getInstance','_kanbanGroupKeys','color','titleFieldId',',,,\x22B\x22','Calendar','group','[BaseCommandService]:\x20record-id\x20is\x20reserved.','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','notContains',':start','getTime','NumberFormat','_createNumberingFieldValuePatches','assign','params','[BaseHierarchy]:\x20','catch','-record-','base.command.set-base-view-group','table','[BaseField]:\x20invalid\x20progress\x20value.','_withModifiedSystemValues','stringify','title','undefined','_isCalendarDateField','attachmentSet','operand','\x20has\x20unsupported\x20date\x20mode\x20\x22','_projectedRowsCache','result','protocol','Formula','past30','base.command.create-base-field','_hierarchyIndexCache','_tableRevisions','_onCommandExecuted','every','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','_basePermissions','_bumpTableRevision','\x22\x20does\x20not\x20exist.','_factory','changed','_removeSuperTables','COMMAND','_normalizeCalendarDisplayColor','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','usableAsCardCover','UNIVER_BASE','SelfParent','error','includes','default','[BaseCommandService]:\x20cannot\x20delete\x20record.','children','greaterThan','Cycle','updatedBy','pushUndoRedo','Name','_canUseFastSort','projection','_findCalendarDateFieldId','missingRecord','[BaseCommandService]:\x20invalid\x20field\x20definition.','_kanbanLaneTitle','registerCommand','attachment-','Attachment','insertOp','rowIndexById','UpdatedBy','cellData','viewIndexes','_runtimeContext','_formulaCalculationTriggerService','registerCtorForType','_formulaCalculationSessionService','working','info','bases.remote.config','_fastSortRows','getAllBases','revision','4MJBiMn','updatedAt','createField','unitOtherData','formatToParts','createCreateFieldOp','_applyingFormulaResults','_resolveGalleryCardFieldIds','getAllUnitsForType','base.command.update-base-cell','_projectRows','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','end','MMM\x20D,\x20YYYY','updateCell','MultiSelect','_createRecordWithDefaults','canEditField','_getAllBaseDependencyTreeCacheMap','_apply','abs','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','resources','MaxDepth','cycle','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_setCachedProjection','allowMultiple','local','_getTablesToNormalize','key','clearRecordPermission','depthByRecordId','_filterRows','#14b8a6','base.command.create-base-table','_buildGantt','getProjection','pluginName','23984020PrEPdr','_setFormulaFieldCells','nodes','redo','invalidGroupField','[BaseField]:\x20invalid\x20date\x20value.','Use\x2031\x20characters\x20or\x20fewer.','syncExecuteCommand','base.command.set-base-record-values','_initDataSync','useThousands','11640bXeCuK','unique','Checked','childrenByParentId','base.command.rename-base-view','text','abbreviation','_filterSortFieldIds','base.field-registry.service','True','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','conjunction','system','_normalizeGanttConfig','_tablePermissions','__base_hierarchy_parent__','Parent','required','base.command.create-base-view','Failed\x20to\x20create\x20update\x20cell\x20operation:','873730trwCDi','[BasePerf]\x20','[BaseFormula]:\x20table\x20does\x20not\x20exist.','Start\x20date','apostrophe','packageName','[BaseCommandService]:\x20cannot\x20create\x20record.','object','\x22\x20with\x20field\x20type\x20\x22','leftPaneCollapsed','write','remove','createBase','[BaseCommandService]:\x20cannot\x20create\x20field.','_getTable','_normalizeGalleryConfig','past7','_cacheKey','split','[BaseCommandService]:\x20invalid\x20cell\x20value.','Grid','getAffectedRanges','decimal','deleteRecords','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','find','[BaseCommandService]:\x20cannot\x20create\x20table.','year','conditions','multiple','_createRecordOrderOp','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','basePerf','_getJson1DirtyData','_projectHierarchyGroups','[BaseCommandService]:\x20field\x20\x22','progressFieldId','setViewGroup','Gantt','registerView','tableName','depth','trigger','updateViewConfig','now','measure','sum','options','_syncSuperTables','direction','setRecordPermission','splice','Date','maxDepth','getUTCDay','_getHierarchyIndex','_globalRevision','width','_getStructureDirtyTableIds','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','UNIVER_EMBED_BASES_TABLE','targetTableId','getCurrentUserId','compare','IS_EMPTY','disposeWithMe','#16a34a','cell','invertOp','invertWithDoc','sort','FORCE_STRING','unitWidth','base.command.move-base-hierarchy-record','InvalidField','getCapabilities','_dataSyncPrimaryController','getUTCDate','length','[BaseCommandService]:\x20cannot\x20manage\x20view.','False','HH:mm','base.projection.service','dispose','tableRevision','endDateFieldId','base.command.ensure-base-temporal-view-date-fields','clearTablePermission','setViewSort','\x20has\x20unsupported\x20target\x20\x22','deleteField','General','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.batch-create-base-records','moveField','_title','at\x20index\x20','type','_formulaSyncQueue','BaseProjection.filterAndSortRows','colorFieldId','set','has','SingleSelect','max','usableAsGanttStart','rule','forValue','[BaseCommandService]:\x20cannot\x20edit\x20field.','operator','unitData','validate','defaultValue','hierarchy','\x20cannot\x20use\x20operator\x20\x22','globalRevision','_buildGallery','index','getTypePlugin','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','CreatedAt','commaPeriod','long','\x20must\x20have\x20a\x20non-empty\x20id.','primaryFieldId','_kanbanLaneColor','_createNumberingAllocator','afterFieldId','includeTime','childType','viewRevision','periodComma','conditional','_isNonEmptyCellValue','registerSyncingMutations','exceptions','UpdatedAt','invalidateByField','rowIndex','http:','[BaseField]:\x20invalid\x20rating\x20value.','invalid','_viewRowsCacheKey','REMOTE_BASES_PLUGIN','_initCommands','_resolveKanbanCardFieldIds','381333NkjLGu','isNotEmpty','manual','RecordLink',',,\x22M\x22','indexOf','defineProperty','clear','focusUnit','_ganttBarColor','replace','_toDirtyRangePatch','3546xqyRsv','major-','canEditCell','deleteRecord','get','average','_registeredSuperTableNames','base.viewType.gantt','usableAsCalendarDate','#BBF7D0','regenerateViewIds','workingDaysOnly','matchAll','_materializeFormulaTableNames','isFinite','getMonth','BaseProjection.getProjection','base.command.duplicate-base-field','weekdays','_getTableRevision','_activeDirtyManagerService','star','BASE','createdBy','__UNIVER_BASE_PERF__','getFullYear','YYYY-MM-DD','displayText','target','invalidateByView','_isAllDayCalendarEvent','fieldIds','_capabilities','week','ena','done','[RecordLink]:\x20target\x20record\x20\x22','usableAsGanttEnd','renameFormulaUnitReferences','embedId','updateField','userID','BaseJson1.normalizeTables','Phone','GREATER_THAN','column','beforeFieldId','BaseProjection.projectTableRows','_baseSyncDisposables','parentFieldName','gridViewId','frozenFieldCount','invalidateByCell','BOOLEAN','descendPath','parentByRecordId','gantt','colIndex','rows','getItem','toPrimitive','row','createRecord','allowDangling','Redo','join','ruleId','IS_NOT','UTC','repairViewConfig','subscribe','1.0.0-beta.2','_groupCellInvalidations','view','startsWith','dependencyFieldId','formula','bases.config','createCreateRecordOp','IS_NOT_EMPTY','format','attachments','patches','valueOf','limit','delete','base.resource.service','[DeleteBaseTableCommand]:\x20table\x20\x22','-field-name','string','6qtFHpE','_resolveGanttDateFieldId','bases.fieldConfig.textPlaceholder','fromPlainText','_setAttachmentResources','https:','recordOrder','validateFormula','_plugins','Undo','[BaseFormula]:\x20table\x20\x22','data','_getKanbanConfiguredLanes','Import','Table','snapshot','_projectFields','_resolveKanbanGroupFieldId','\x20must\x20be\x20an\x20object.','baseRows','getAll','changeFieldType','too-long','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','entries','createUpdateCellOp','score','endsWith','_disposed','fromEntries','#,##0','hourCycle','card','isValid','toLocaleString','from','Kanban','RecordId','large','remote','next7','thumbnail','invalid-characters','getBase','_projectedViewRowsCache','normal','canCreateTable','filter','min','values','NUMBER','canDeleteTable','valid','-view-grid','__all__','isInteger','function','locale','isArray','_isKanbanGroupField','updateRecordOrder','setRecordValues','canCreateField','MUTATION','getDay','numfmt','base.command.set-base-view-filter','getUnitId','user','bases.fieldConfig.linkPlaceholder','source','_executeSuperTableMutationWhileActive','_initDependencies','subtreeEndIndex','univer.basePerf','getSnapshot','[BaseFormula]:\x20field\x20\x22','_calendarEventColor','showTodayLine','_projectTableRows','afterViewId','removeOp','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','record','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','yyyy/mm/dd','boolean','diffValue','base.command.set-base-range-values','base.command.move-base-field','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','#FDE68A','custom','base.command.update-base-view-config','createRecords','clearBasePermission','deleteTable','fieldSettings','records','DD/MM/YYYY','setConfig','medium','unitId','colId','_fieldRegistry','version','href','query','https://','localeCompare','next30','h12','ascend','base.viewType.grid','Delete','applyOp','Number','syncUnit','fields','value','keys','false','invalidGanttEndField','day','\x22.\x20Allowed\x20operators:\x20','_buildGrid','_groupConfigCacheSegment','viewId','_getSystemFieldValue','createdAt','repeat','setBaseName','add','rules','test','base.command.change-base-field-type','getSuperTableRegistrations','start','renameTable','reason','MissingRecord','_resolveKanbanCoverFieldId','moveView','[BaseField]:\x20invalid\x20email\x20value.','_sortRows','[BaseField]:\x20invalid\x20phone\x20value.','[BaseCommandService]:\x20cannot\x20delete\x20table.','relationRole','_syncBaseUnit','_getViewRevision','executeCommand','_cellInvalidationsTouchFields','_createNumberingAllocators','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','invalidateByOp','h24','#3b82f6','rowId','_permissionService','col','views','_views','createView','formulaName','readonly','some','Checkbox','base.viewType.gallery','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','createDefaultConfig','getUTCFullYear','short','spaceComma','cardLayout','getTypeOfUnitDisposed$','pop','clearFieldPermission','_findKanbanGroupField','quarter','searchTexts','recordIds','url','exact','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','groupFieldId','_projectionCache','renameView','BASES_PLUGIN','tableOrder','base.view-registry.service','setSnapshot','_initRegistries','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','setViewFieldOrder','BaseCommand.createBatchCreateRecordsOp','_viewRevisionKey','_formulaService','setViewFilter','deepClone','timeZone','selectField','field','deleteView','SortedView','coverFieldId','yesterday','doing','CreatedBy','calendar','parentRecordId','today','precision','Rating','name','MM-DD','attachment','none','push','base.command.update-base-view-conditional-color-rules','_T_','mark','Currency','this-row','Text','[BaseHierarchy]:\x20field\x20\x22','_getOrderedRecords','edit','COLUMN','lastIndexOf','number','_createSystemFieldValuePatches','hidden','setViewFieldWidth','cellRevision','BEFORE','import','symbol','true','findIndex','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).','base.command.set-base-table-hierarchy-field','165621lbyKzA','_cellInvalidations','_setViewFieldSetting','general','attachmentSets','_injector','fieldName','getUnit','DESC','_recordPermissions','BaseJson1.syncCellInvalidations','month','_fieldPermissions','$1\x20','LESS_THAN','Progress','base.viewType.kanban','viewOrder','setTablePermission','_matchesGanttColorRule','_resolveGalleryCoverFieldId','Todo','\x22\x20is\x20referenced\x20by\x20','fieldId','getUTCMonth','base.command.update-base-field-description','flatMap','scale','canCreateRecord','recordNamePrefix','thisMonth','setViewFieldVisible','timeslotSize','getTypeOfUnitAdded$','unshift','view-','_resolveCalendarDateFieldId','editable','Unchecked','BaseJson1.cloneForOp','markResultApplied','_isColorfulKanbanGroupField','count','base.command.rename-base-table','IBaseCellData.ensureTableCellLayout','_viewRevisions','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','Gallery','config','tables','recordPatch','[BaseField]:\x20invalid\x20person\x20value.','decorate','_enqueueFormulaSync','codePointAt','\x22\x20is\x20not\x20registered.','fieldIndex','_applier','MM/DD/YYYY','createBatchCreateRecordsOp','prototype','_patchProjectedRowsForCellInvalidations','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','_assertFieldDefinition','_recordIds','workingDays','iterator','createTable','invalidReasonByRecordId','createDefaultValue','parse','toFixed','order','call','_projectedGroupsCache','currencySymbol','CONTAINS','hasOwnProperty','STRING','lastMonth','selfParent','decimalPlaces','orderKey','off','recordCount','map','_commandService','Person','dateFormat','base.command.set-base-name','createRegExpFromSafeFragment','reduce','_isAllDayGanttDateRange','mode','apply','orderedRecordIds','createSetRecordValuesOp','_getCachedProjection','recordId','_deleteAttachmentResources','en-US','_projectGroups','childUnitId','then'];_0x1521=function(){return _0x3a6db7;};return _0x1521();}function pt(_0x416ecf,_0x4aa496,_0xe75895,_0x504048){const _0x15e239=_0x58a750;let _0x37a6e2=ht(_0x504048);_0x416ecf[_0x15e239(0xfa)]={..._0x416ecf[_0x15e239(0xfa)]??{}},_0x416ecf[_0x15e239(0xfa)][_0x15e239(0x31a)]={..._0x416ecf[_0x15e239(0xfa)][_0x15e239(0x31a)]??{}},_0x416ecf[_0x15e239(0xfa)]['attachments']={..._0x416ecf[_0x15e239(0xfa)]['attachments']??{}};let _0x3eac53=ft(_0xe75895,_0x4aa496),_0x137d36=[];for(let _0x4f3ec9=0x0;_0x4f3ec9<_0x37a6e2[_0x15e239(0x17a)];_0x4f3ec9++){if(!(_0x4f3ec9 in _0x37a6e2))continue;let _0x585eb7=_0x37a6e2[_0x4f3ec9],_0x4d81e8=String(_0x585eb7['id']??_0x3eac53+'\x1f'+_0x4f3ec9),_0x3854ff={..._0x585eb7,'id':_0x4d81e8};_0x416ecf[_0x15e239(0xfa)][_0x15e239(0x21b)][_0x4d81e8]=_0x3854ff,_0x137d36[_0x15e239(0x2fe)](_0x4d81e8);}_0x416ecf[_0x15e239(0xfa)][_0x15e239(0x31a)][_0x3eac53]=_0x137d36;}function mt(_0x28e459,_0x5b39e8,_0x18d5ed){const _0x354c6e=_0x58a750;var _0x30d4ff;let _0x564c89=ft(_0x18d5ed,_0x5b39e8),_0x455512=(_0x30d4ff=_0x28e459[_0x354c6e(0xfa)])==null||(_0x30d4ff=_0x30d4ff['attachmentSets'])==null?void 0x0:_0x30d4ff[_0x564c89];if(!_0x455512)return null;let _0x130727=[];for(let _0x5181b7=0x0;_0x5181b7<_0x455512[_0x354c6e(0x17a)];_0x5181b7++){var _0x207411;if(!(_0x5181b7 in _0x455512))continue;let _0x39a02a=(_0x207411=_0x28e459[_0x354c6e(0xfa)])==null||(_0x207411=_0x207411[_0x354c6e(0x21b)])==null?void 0x0:_0x207411[_0x455512[_0x5181b7]];_0x39a02a&&_0x130727[_0x354c6e(0x2fe)]({..._0x39a02a});}return _0x130727;}function ht(_0x10a1ab){const _0x45d7ff=_0x58a750;if(_0x10a1ab==null||_0x10a1ab===''||dt(_0x10a1ab)&&!('id'in _0x10a1ab)&&!(_0x45d7ff(0x2fa)in _0x10a1ab))return[];let _0x9a98c4=Array[_0x45d7ff(0x25e)](_0x10a1ab)?_0x10a1ab:[_0x10a1ab],_0x4ea1cb=[];for(let _0x41ead7=0x0;_0x41ead7<_0x9a98c4[_0x45d7ff(0x17a)];_0x41ead7++){if(!(_0x41ead7 in _0x9a98c4))continue;let _0xe5fd27=_0x9a98c4[_0x41ead7],_0x32da22=_0xe5fd27&&typeof _0xe5fd27==_0x45d7ff(0x133)?{..._0xe5fd27}:{'id':_0x45d7ff(0xd3)+_0x41ead7,'name':String(_0xe5fd27)};Object[_0x45d7ff(0x29c)](_0x32da22)[_0x45d7ff(0x17a)]>0x0&&_0x4ea1cb['push'](_0x32da22);}return _0x4ea1cb;}function gt(_0x33f545,_0x191d3b){const _0x36ed17=_0x58a750;return(_0x191d3b==null?void 0x0:_0x191d3b['type'])===_0x54dcd1[_0x36ed17(0xd4)]?ht(_0x33f545):vt(_0x191d3b)?yt(_0x33f545):_0x33f545;}function _t(_0x3d8f2b,_0x551820,_0x3b6200){const _0x570eff=_0x58a750;return(_0x551820==null?void 0x0:_0x551820[_0x570eff(0x18d)])===_0x54dcd1[_0x570eff(0xd4)]?_0x3d8f2b['v']!=='':vt(_0x551820)?Array['isArray'](_0x3b6200)&&(_0x3d8f2b['v']==null||_0x3d8f2b['v']===''):!0x1;}function vt(_0x20ee42){const _0x40318c=_0x58a750;return(_0x20ee42==null?void 0x0:_0x20ee42[_0x40318c(0x18d)])===_0x54dcd1[_0x40318c(0xf3)]||(_0x20ee42==null?void 0x0:_0x20ee42[_0x40318c(0x18d)])===_0x54dcd1[_0x40318c(0x36d)]||(_0x20ee42==null?void 0x0:_0x20ee42[_0x40318c(0x18d)])===_0x54dcd1[_0x40318c(0x3c3)];}function yt(_0x18bbf6){const _0x533a7a=_0x58a750;if(_0x18bbf6==null||_0x18bbf6==='')return[];let _0x258d3d=[];if(Array[_0x533a7a(0x25e)](_0x18bbf6)){for(let _0x59d0ce=0x0;_0x59d0ce<_0x18bbf6[_0x533a7a(0x17a)];_0x59d0ce++){if(!(_0x59d0ce in _0x18bbf6))continue;let _0x14b4f7=bt(_0x18bbf6[_0x59d0ce]);_0x14b4f7&&_0x258d3d[_0x533a7a(0x2fe)](_0x14b4f7);}return _0x258d3d;}for(let _0x73186c of String(_0x18bbf6)[_0x533a7a(0x13e)](',')){let _0x2ce90f=_0x73186c['trim']();_0x2ce90f&&_0x258d3d[_0x533a7a(0x2fe)](_0x2ce90f);}return _0x258d3d;}function bt(_0x2db045){const _0x1856a6=_0x58a750;if(_0x2db045==null)return'';if(typeof _0x2db045==_0x1856a6(0x223)||typeof _0x2db045=='number'||typeof _0x2db045=='boolean')return String(_0x2db045);if(typeof _0x2db045==_0x1856a6(0x133)){let _0x4500f9=_0x2db045;return String(_0x4500f9['id']??_0x4500f9['name']??_0x4500f9[_0x1856a6(0x11c)]??'');}return String(_0x2db045);}function xt(_0x473cff){const _0x1c7714=_0x58a750;return _0x473cff==null?null:typeof _0x473cff==_0x1c7714(0x30a)?_0x10de44['NUMBER']:typeof _0x473cff==_0x1c7714(0x27a)?_0x10de44[_0x1c7714(0x1ff)]:_0x10de44['STRING'];}function St(_0x4ec6af){const _0x5d45c8=_0x58a750;_0x4ec6af[_0x5d45c8(0x172)]((_0x554496,_0x56060c)=>_0x554496['orderKey'][_0x5d45c8(0x291)](_0x56060c['orderKey']));let _0x13d0cc=[];for(let _0x5186e1 of _0x4ec6af)_0x13d0cc[_0x5d45c8(0x2fe)](_0x5186e1['id']);return _0x13d0cc;}function Ct(_0xec7f2f,_0x567c2f){const _0x1a2cfd=_0x58a750;return _0xec7f2f===_0x10de44[_0x1a2cfd(0x364)]||_0xec7f2f===_0x10de44['NUMBER']||_0xec7f2f===_0x10de44[_0x1a2cfd(0x1ff)]||_0xec7f2f===_0x10de44[_0x1a2cfd(0x173)]||_0xec7f2f==null?_0xec7f2f:xt(_0x567c2f??null);}function B(_0x52caad){const _0x377b26=_0x58a750;let _0x197d92=null;for(let _0x2bbba2 of _0x52caad)_0x197d92=_0x197d92===null?_0x2bbba2:_0x2f9a7e['type'][_0x377b26(0x3be)](_0x197d92,_0x2bbba2);return _0x197d92;}var V=class e{static[_0x58a750(0x3b5)](_0x3f8a32,_0x2a9ec8){const _0x4e97ce=_0x58a750;let _0xace33c=[];for(let _0x3014f0 of _0x2a9ec8){let _0x4fa534=wt(_0x3014f0);if(!_0x4fa534||_0x4fa534[_0x4e97ce(0x28a)]!==_0x3f8a32['id'])return null;_0xace33c[_0x4e97ce(0x2fe)](_0x4fa534['op']);}try{let _0x5d92ba=B(_0xace33c);return _0x5d92ba===null?_0x3f8a32:new e()[_0x4e97ce(0x297)](_0x3f8a32,_0x5d92ba);}catch{return null;}}['applyOp'](_0x49a557,_0xfeed52){const _0x5b36db=_0x58a750;let _0x42011d=this['getAffectedRanges'](_0xfeed52),_0x1871b9=R(_0x5b36db(0x33d),()=>Mt(_0x49a557,_0xfeed52),{'invalidations':_0x42011d[_0x5b36db(0x17a)]}),_0x4ef20a=R(_0x5b36db(0x3c1),()=>_0x2f9a7e[_0x5b36db(0x18d)][_0x5b36db(0x374)](_0x1871b9,_0xfeed52),{'invalidations':_0x42011d[_0x5b36db(0x17a)]});return R(_0x5b36db(0x320),()=>Tt(_0x4ef20a,_0x42011d),{'invalidations':_0x42011d['length']})||R(_0x5b36db(0x1f4),()=>{const _0x24587e=_0x5b36db;this[_0x24587e(0x102)](_0x4ef20a,_0x42011d)[_0x24587e(0x3b6)](_0x2dea18=>{tt(_0x2dea18);});},{'invalidations':_0x42011d['length']}),_0x4ef20a;}['invertOp'](_0x28744d,_0x56b1bc){const _0x27197d=_0x58a750;return _0x2f9a7e[_0x27197d(0x18d)][_0x27197d(0x171)](_0x56b1bc,_0x28744d);}[_0x58a750(0x141)](_0x3079af){const _0x426b51=_0x58a750;let _0x5db2c0=kt(_0x3079af);return _0x5db2c0['length']?At(_0x5db2c0[_0x426b51(0x330)](_0x1abbe4=>this[_0x426b51(0x141)](_0x1abbe4))):Et(_0x3079af);}[_0x58a750(0x102)](_0x4054d9,_0x482734){const _0x27d7bd=_0x58a750;return _0x482734[_0x27d7bd(0x17a)]?_0x482734['some'](_0xdd8de7=>!_0xdd8de7[_0x27d7bd(0x3cb)])?Object[_0x27d7bd(0x255)](_0x4054d9[_0x27d7bd(0x347)]??{}):Array[_0x27d7bd(0x247)](new Set(_0x482734[_0x27d7bd(0x36b)](_0x4d9968=>_0x4d9968[_0x27d7bd(0x3cb)])))['flatMap'](_0x55fcdf=>{const _0x253a23=_0x27d7bd;var _0x33da5c;let _0xee1430=(_0x33da5c=_0x4054d9[_0x253a23(0x347)])==null?void 0x0:_0x33da5c[_0x55fcdf];return _0xee1430?[_0xee1430]:[];}):[];}};function wt(_0x3ce403){const _0x310fd3=_0x58a750;let _0x3ea5c5=_0x3ce403[_0x310fd3(0x3fb)];return _0x3ce403['id']!==_0x310fd3(0x3ea)||typeof _0x3ea5c5!=_0x310fd3(0x133)||!_0x3ea5c5||!(_0x310fd3(0x28a)in _0x3ea5c5)||typeof _0x3ea5c5[_0x310fd3(0x28a)]!=_0x310fd3(0x223)||!('op'in _0x3ea5c5)||!Array[_0x310fd3(0x25e)](_0x3ea5c5['op'])?null:{'unitId':_0x3ea5c5[_0x310fd3(0x28a)],'op':_0x3ea5c5['op']};}function Tt(_0x58d06d,_0xdce46e){const _0x12e2a4=_0x58a750;if(!_0xdce46e[_0x12e2a4(0x17a)]||_0xdce46e[_0x12e2a4(0x2c9)](_0x321afd=>_0x321afd[_0x12e2a4(0x2af)]!==_0x12e2a4(0x16f)))return!0x1;let _0x12cc34=new Map();for(let _0x40e69b of _0xdce46e){if(!_0x40e69b['tableId']||_0x40e69b['row']==null||_0x40e69b[_0x12e2a4(0x1f7)]==null)continue;let _0xfea691=_0x12cc34[_0x12e2a4(0x1ce)](_0x40e69b[_0x12e2a4(0x3cb)])??[];_0xfea691[_0x12e2a4(0x2fe)]({'row':_0x40e69b[_0x12e2a4(0x207)],'col':_0x40e69b['column']}),_0x12cc34['set'](_0x40e69b[_0x12e2a4(0x3cb)],_0xfea691);}return _0x12cc34[_0x12e2a4(0x3b6)]((_0x11a5a9,_0x3c50b9)=>{const _0xa030a9=_0x12e2a4;var _0x1f5a6e;let _0x2ea46e=(_0x1f5a6e=_0x58d06d[_0xa030a9(0x347)])==null?void 0x0:_0x1f5a6e[_0x3c50b9];_0x2ea46e&&nt(_0x2ea46e,_0x11a5a9);}),!0x0;}function Et(_0x3b4a7e){const _0x23a5e1=_0x58a750;if(!Array[_0x23a5e1(0x25e)](_0x3b4a7e)||_0x3b4a7e[_0x23a5e1(0x17a)]<0x2)return[{'tableId':'','reason':'unknown'}];let _0x11cfb0=_0x3b4a7e,_0x1320ef=_0x11cfb0[_0x23a5e1(0x1c3)](_0x23a5e1(0x347));return _0x1320ef===-0x1||typeof _0x11cfb0[_0x1320ef+0x1]!=_0x23a5e1(0x223)?_0x11cfb0[0x0]===_0x23a5e1(0x2e0)?[]:[{'tableId':'','reason':_0x23a5e1(0x3ab)}]:Dt(_0x11cfb0,_0x1320ef,String(_0x11cfb0[_0x1320ef+0x1]));}function Dt(_0x2d08c0,_0x2f950e,_0x5d4c2a){const _0x4668b9=_0x58a750;let _0x36de53=_0x2d08c0[_0x2f950e+0x2];return _0x36de53==='records'&&typeof _0x2d08c0[_0x2f950e+0x3]==_0x4668b9(0x223)?Ot(_0x2d08c0,_0x2f950e,_0x5d4c2a,String(_0x2d08c0[_0x2f950e+0x3])):_0x36de53==='cellData'&&_0x2d08c0[_0x2f950e+0x3]!=null&&_0x2d08c0[_0x2f950e+0x4]!=null?[{'tableId':_0x5d4c2a,'reason':'cell','row':Number(_0x2d08c0[_0x2f950e+0x3]),'column':Number(_0x2d08c0[_0x2f950e+0x4])}]:_0x36de53===_0x4668b9(0x29a)&&typeof _0x2d08c0[_0x2f950e+0x3]==_0x4668b9(0x223)?[{'tableId':_0x5d4c2a,'reason':_0x4668b9(0x2ee),'fieldId':String(_0x2d08c0[_0x2f950e+0x3])}]:_0x36de53===_0x4668b9(0x2c4)&&typeof _0x2d08c0[_0x2f950e+0x3]==_0x4668b9(0x223)?[{'tableId':_0x5d4c2a,'reason':'view','viewId':String(_0x2d08c0[_0x2f950e+0x3])}]:[{'tableId':_0x5d4c2a,'reason':_0x36de53===void 0x0?_0x4668b9(0x400):_0x4668b9(0x3ab)}];}function Ot(_0x2bc79a,_0x59a2d0,_0x80084f,_0x73b11a){const _0x26617f=_0x58a750;return _0x2bc79a[_0x59a2d0+0x4]==='values'&&typeof _0x2bc79a[_0x59a2d0+0x5]==_0x26617f(0x223)?[{'tableId':_0x80084f,'reason':_0x26617f(0x16f),'recordId':_0x73b11a,'fieldId':String(_0x2bc79a[_0x59a2d0+0x5])}]:_0x2bc79a[_0x59a2d0+0x4]===_0x26617f(0xe5)||_0x2bc79a[_0x59a2d0+0x4]===_0x26617f(0xc9)?[]:[{'tableId':_0x80084f,'reason':_0x26617f(0x277),'recordId':_0x73b11a}];}function kt(_0x5483e4){const _0x4d3709=_0x58a750;if(!Array[_0x4d3709(0x25e)](_0x5483e4))return[];let _0x5e67af=_0x5483e4[_0x4d3709(0x253)](Array[_0x4d3709(0x25e)]);if(_0x5e67af[_0x4d3709(0x17a)]>0x1&&_0x5e67af[_0x4d3709(0x17a)]===_0x5483e4['length'])return _0x5e67af;let _0x440b4c=_0x5483e4[_0x4d3709(0x313)](Array['isArray']);if(_0x440b4c>0x0&&_0x5483e4[_0x4d3709(0x39f)](_0x440b4c)[_0x4d3709(0x413)](Array['isArray'])){let _0xe21496=_0x5483e4[_0x4d3709(0x39f)](0x0,_0x440b4c);return _0x5483e4[_0x4d3709(0x39f)](_0x440b4c)[_0x4d3709(0x36b)](_0x424db2=>[..._0xe21496,..._0x424db2]);}let _0x902018=_0x5483e4['indexOf']('tables');if(_0x902018===-0x1||typeof _0x5483e4[_0x902018+0x1]!=_0x4d3709(0x223))return[];let _0x4b5df8=String(_0x5483e4[_0x902018+0x1]),_0x4191a9=_0x5483e4[_0x4d3709(0x39f)](_0x902018+0x2)[_0x4d3709(0x253)](Array[_0x4d3709(0x25e)]);return _0x4191a9[_0x4d3709(0x17a)]<=0x1?[]:_0x4191a9[_0x4d3709(0x36b)](_0x3783cf=>[_0x4d3709(0x347),_0x4b5df8,..._0x3783cf]);}function At(_0x264cfb){const _0x4450e3=_0x58a750;let _0x44e1e2=new Set();return _0x264cfb[_0x4450e3(0x253)](_0xd99f9=>{const _0x5301f3=_0x4450e3;let _0x302d37=JSON[_0x5301f3(0x403)](_0xd99f9);return _0x44e1e2[_0x5301f3(0x192)](_0x302d37)?!0x1:(_0x44e1e2[_0x5301f3(0x2a8)](_0x302d37),!0x0);});}function jt(_0x509028){return _0x4a5e41['deepClone'](_0x509028);}function Mt(_0x1ccd52,_0x52c6db){const _0x1b4ec6=_0x58a750;let _0x34fa73=Nt(_0x52c6db);if(!_0x34fa73[_0x1b4ec6(0x17a)])return jt(_0x1ccd52);let _0x427423=Bt(_0x1ccd52),_0x5cc7c2=new Set();for(let _0x52e4ff of _0x34fa73)It(_0x427423,_0x52e4ff,_0x5cc7c2);return _0x427423;}function Nt(_0x295342){let _0x1ceb19=[];return Pt(_0x295342,[],_0x1ceb19),_0x1ceb19;}function Pt(_0x20dab3,_0x275413,_0x54e07e){const _0x45440c=_0x58a750;if(!Array[_0x45440c(0x25e)](_0x20dab3))return;let _0x2eea3e=[];for(let _0x583948 of _0x20dab3){if(Array[_0x45440c(0x25e)](_0x583948)){Pt(_0x583948,[..._0x275413,..._0x2eea3e],_0x54e07e);continue;}if(Ft(_0x583948)){_0x54e07e[_0x45440c(0x2fe)]([..._0x275413,..._0x2eea3e]);continue;}(typeof _0x583948==_0x45440c(0x223)||typeof _0x583948=='number')&&_0x2eea3e[_0x45440c(0x2fe)](_0x583948);}}function Ft(_0x204fbd){const _0x58a105=_0x58a750;if(!_0x204fbd||typeof _0x204fbd!='object'||Array[_0x58a105(0x25e)](_0x204fbd))return!0x1;let _0x15d278=_0x204fbd;return'i'in _0x15d278||'r'in _0x15d278||'p'in _0x15d278||'d'in _0x15d278||'es'in _0x15d278||_0x58a105(0x1ec)in _0x15d278||'et'in _0x15d278;}function It(_0x445f90,_0x4fdf22,_0x5c7373){const _0x384cf4=_0x58a750;let _0x1d48c7=_0x445f90,_0x1a362b=[];for(let _0xf0014d=0x0;_0xf0014d<_0x4fdf22[_0x384cf4(0x17a)]-0x1;_0xf0014d++){let _0x4cbe5b=_0x4fdf22[_0xf0014d];_0x1a362b[_0x384cf4(0x2fe)](_0x4cbe5b);let _0x46eae6=Lt(_0x1d48c7,_0x4cbe5b);if(!zt(_0x46eae6))return;let _0x15c1bb=JSON[_0x384cf4(0x403)](_0x1a362b);_0x5c7373[_0x384cf4(0x192)](_0x15c1bb)||(Rt(_0x1d48c7,_0x4cbe5b,Bt(_0x46eae6)),_0x5c7373['add'](_0x15c1bb));let _0x2f6a34=Lt(_0x1d48c7,_0x4cbe5b);if(!zt(_0x2f6a34))return;_0x1d48c7=_0x2f6a34;}}function Lt(_0x4a68be,_0x6727be){const _0x16fc77=_0x58a750;return Array[_0x16fc77(0x25e)](_0x4a68be)?typeof _0x6727be==_0x16fc77(0x30a)?_0x4a68be[_0x6727be]:void 0x0:Reflect[_0x16fc77(0x1ce)](_0x4a68be,_0x6727be);}function Rt(_0x252d65,_0x4d406c,_0xb5e2b1){const _0x4e125a=_0x58a750;if(Array[_0x4e125a(0x25e)](_0x252d65)){typeof _0x4d406c==_0x4e125a(0x30a)&&(_0x252d65[_0x4d406c]=_0xb5e2b1);return;}Reflect[_0x4e125a(0x191)](_0x252d65,_0x4d406c,_0xb5e2b1);}function zt(_0x506d02){const _0x1f0a01=_0x58a750;return!!_0x506d02&&typeof _0x506d02==_0x1f0a01(0x133);}function Bt(_0x25a7aa){const _0x32ebec=_0x58a750;return Array['isArray'](_0x25a7aa)?_0x25a7aa[_0x32ebec(0x39f)]():{..._0x25a7aa};}const Vt=0x5a0*0x3c*0x3e8,Ht=0x63e1,Ut='yyyy/mm/dd',Wt=/\s+hh:mm\s*$/i,Gt={'yyyy/mm/dd':_0x58a750(0x386),'yyyy-mm-dd':_0x58a750(0x1e4),'mm-dd':_0x58a750(0x2fb),'mm/dd/yyyy':_0x58a750(0x350),'dd/mm/yyyy':_0x58a750(0x287),'mmm\x20d,\x20yyyy':_0x58a750(0xf1)};function H(_0x32fa5d){const _0x399e02=_0x58a750;return _0x4563e6(_0x32fa5d)[_0x399e02(0x21d)]()/Vt+Ht;}function Kt(_0x581668){const _0x22afb3=_0x58a750;return Math[_0x22afb3(0x3a7)]((_0x581668-Ht)*Vt);}function qt(_0x3a8104){const _0x260f9e=_0x58a750;if(_0x3a8104==null||_0x3a8104==='')return null;if(_0x3a8104 instanceof Date)return H(_0x3a8104);if(typeof _0x3a8104==_0x260f9e(0x30a))return Number['isFinite'](_0x3a8104)?_0x3a8104>0xf4240?H(_0x3a8104):_0x3a8104:null;let _0x48218d=Date[_0x260f9e(0x35c)](String(_0x3a8104));return Number['isNaN'](_0x48218d)?null:H(_0x48218d);}function Jt(_0x56650c){let _0x2aad0f=qt(_0x56650c);return _0x2aad0f==null?null:Kt(_0x2aad0f);}function Yt(_0x4f3040={}){const _0x29e01c=_0x58a750;let _0x3af45a=String(_0x4f3040[_0x29e01c(0x3b8)]??_0x4f3040[_0x29e01c(0x21a)]??_0x4f3040[_0x29e01c(0x36e)]??Ut)[_0x29e01c(0x3b2)]()||Ut,_0x501ed7=Wt[_0x29e01c(0x2aa)](_0x3af45a);return{'pattern':_0x3af45a[_0x29e01c(0x1c8)](Wt,'')||Ut,'includeTime':typeof _0x4f3040['includeTime']==_0x29e01c(0x27a)?_0x4f3040[_0x29e01c(0x1ac)]:_0x501ed7,'hourCycle':_0x4f3040[_0x29e01c(0x243)]===_0x29e01c(0x293)?_0x29e01c(0x293):_0x29e01c(0x2bf)};}function Xt(_0x14a6d3={}){let {format:_0x269831,dateFormat:_0x1fcca4,..._0x290e7c}=_0x14a6d3;return{..._0x290e7c,...Yt(_0x14a6d3)};}function Zt(_0x118120,_0x885be1={}){const _0x23ccd2=_0x58a750;let _0x49325b=Jt(_0x118120);if(_0x49325b==null||!Number[_0x23ccd2(0x1d8)](_0x49325b))return'';let _0x2dfb14=Yt(_0x885be1);return _0x4563e6(_0x49325b)[_0x23ccd2(0x21a)](Qt(_0x2dfb14));}function Qt(_0x18ea65){const _0x287bf6=_0x58a750;let {pattern:_0x26a0b5,includeTime:_0x1e9659,hourCycle:_0xe189c0}=_0x18ea65,_0x44d444=Gt[_0x26a0b5]??Gt[Ut];return _0x1e9659?_0x44d444+'\x20'+(_0xe189c0===_0x287bf6(0x293)?'h:mm\x20a':_0x287bf6(0x17d)):_0x44d444;}const $t={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},en=new Set([_0x54dcd1[_0x58a750(0x249)]]),U=0x5a0*0x3c*0x3e8;function tn(_0x178387){const _0x3606cd=_0x58a750;switch(_0x178387){case _0x54dcd1[_0x3606cd(0x298)]:case _0x54dcd1[_0x3606cd(0x302)]:case _0x54dcd1[_0x3606cd(0x325)]:case _0x54dcd1[_0x3606cd(0x2f9)]:return[_0x22d7a1['IS'],_0x22d7a1['IS_NOT'],_0x22d7a1[_0x3606cd(0x1f6)],_0x22d7a1[_0x3606cd(0x324)],_0x22d7a1['IS_EMPTY'],_0x22d7a1[_0x3606cd(0x219)]];case _0x54dcd1['Date']:case _0x54dcd1['CreatedAt']:case _0x54dcd1['UpdatedAt']:return[_0x22d7a1['IS'],_0x22d7a1[_0x3606cd(0x20d)],_0x22d7a1[_0x3606cd(0x30f)],_0x22d7a1['AFTER'],_0x22d7a1[_0x3606cd(0x16c)],_0x22d7a1[_0x3606cd(0x219)]];case _0x54dcd1[_0x3606cd(0x2ca)]:return[_0x22d7a1['IS'],_0x22d7a1[_0x3606cd(0x20d)]];default:return[_0x22d7a1['IS'],_0x22d7a1['IS_NOT'],_0x22d7a1[_0x3606cd(0x362)],_0x22d7a1[_0x3606cd(0x39e)],_0x22d7a1[_0x3606cd(0x16c)],_0x22d7a1[_0x3606cd(0x219)]];}}function nn(_0x4ad11c){const _0x49b098=_0x58a750;return _0x4ad11c===_0x54dcd1['Date']||_0x4ad11c===_0x54dcd1['CreatedAt']||_0x4ad11c===_0x54dcd1[_0x49b098(0x1b4)];}function rn(_0x34bc07,_0x45292a){const _0x441c74=_0x58a750;return _0x34bc07==null&&_0x45292a==null?0x0:_0x34bc07==null?-0x1:_0x45292a==null?0x1:typeof _0x34bc07==_0x441c74(0x30a)&&typeof _0x45292a==_0x441c74(0x30a)?_0x34bc07-_0x45292a:String(_0x34bc07)[_0x441c74(0x291)](String(_0x45292a));}function an(_0x5edc8e,_0xd2b3c4,_0x3726aa,_0x39583d,_0x286389={}){const _0x25a4a4=_0x58a750;if(_0xd2b3c4==='isEmpty')return on(_0x5edc8e);if(_0xd2b3c4===_0x25a4a4(0x1bf))return!on(_0x5edc8e);switch(_0x39583d['type']){case _0x54dcd1[_0x25a4a4(0x298)]:case _0x54dcd1[_0x25a4a4(0x302)]:case _0x54dcd1[_0x25a4a4(0x325)]:case _0x54dcd1[_0x25a4a4(0x2f9)]:return sn(_0x5edc8e,_0xd2b3c4,_0x3726aa);case _0x54dcd1[_0x25a4a4(0x160)]:case _0x54dcd1[_0x25a4a4(0x1a4)]:case _0x54dcd1['UpdatedAt']:return ln(_0x5edc8e,_0xd2b3c4,_0x3726aa,_0x286389);case _0x54dcd1[_0x25a4a4(0x2ca)]:return hn(_0x5edc8e,_0xd2b3c4,_0x3726aa);case _0x54dcd1['SingleSelect']:case _0x54dcd1[_0x25a4a4(0xf3)]:case _0x54dcd1[_0x25a4a4(0x36d)]:case _0x54dcd1[_0x25a4a4(0x3c3)]:return _n(_0x5edc8e,_0xd2b3c4,_0x3726aa,_0x39583d);default:return vn(_0x5edc8e,_0xd2b3c4,_0x3726aa);}}function on(_0x8093d6){const _0x135828=_0x58a750;return _0x8093d6==null?!0x0:Array[_0x135828(0x25e)](_0x8093d6)?_0x8093d6[_0x135828(0x17a)]===0x0:typeof _0x8093d6==_0x135828(0x223)&&_0x8093d6[_0x135828(0x3b2)]()==='';}function sn(_0x5d3f60,_0x104baa,_0x5ef555){const _0x22fb00=_0x58a750;let _0x13c367=cn(_0x5d3f60),_0x12059e=cn(_0x5ef555);if(_0x13c367==null||_0x12059e==null)return!0x1;switch(_0x104baa){case'is':return _0x13c367===_0x12059e;case _0x22fb00(0x3d8):return _0x13c367!==_0x12059e;case _0x22fb00(0x426):return _0x13c367>_0x12059e;case _0x22fb00(0x3cf):return _0x13c367>=_0x12059e;case'lessThan':return _0x13c367<_0x12059e;case _0x22fb00(0x3de):return _0x13c367<=_0x12059e;default:return!0x1;}}function cn(_0x2125a5){const _0x3d81b9=_0x58a750;if(_0x2125a5==null||_0x2125a5==='')return null;let _0x5081fa=Number(_0x2125a5);return Number[_0x3d81b9(0x1d8)](_0x5081fa)?_0x5081fa:null;}function ln(_0x36d26a,_0x208a2a,_0x368a67,_0x567a26){const _0x333504=_0x58a750;let _0xd13069=dn(_0x36d26a);if(_0xd13069==null)return!0x1;let _0x362052=un(_0x567a26['dateMode']??_0x333504(0x2da),_0x368a67,_0x567a26[_0x333504(0x158)]);if(!_0x362052)return!0x1;switch(_0x208a2a){case'is':return _0xd13069>=_0x362052[_0x333504(0x2ad)]&&_0xd13069<=_0x362052[_0x333504(0xf0)];case _0x333504(0x3d8):return _0xd13069<_0x362052['start']||_0xd13069>_0x362052[_0x333504(0xf0)];case'before':return _0xd13069<_0x362052[_0x333504(0x2ad)];case _0x333504(0x3a6):return _0xd13069>_0x362052[_0x333504(0xf0)];default:return!0x1;}}function un(_0x1db399,_0x489da9,_0x3a3cf3=Date[_0x58a750(0x158)]()){const _0x522174=_0x58a750;let _0x747a3d=fn(_0x3a3cf3);switch(_0x1db399){case _0x522174(0x2da):{let _0x31bb7e=dn(_0x489da9);return _0x31bb7e==null?null:{'start':_0x31bb7e,'end':_0x31bb7e+U-0x1};}case _0x522174(0x2f7):return{'start':_0x747a3d,'end':_0x747a3d+U-0x1};case'tomorrow':return{'start':_0x747a3d+U,'end':_0x747a3d+U*0x2-0x1};case _0x522174(0x2f2):return{'start':_0x747a3d-U,'end':_0x747a3d-0x1};case'thisWeek':return pn(_0x747a3d,0x0);case'lastWeek':return pn(_0x747a3d,-0x1);case _0x522174(0x334):return mn(_0x747a3d,0x0);case _0x522174(0x365):return mn(_0x747a3d,-0x1);case _0x522174(0x13c):return{'start':_0x747a3d-U*0x6,'end':_0x747a3d+U-0x1};case _0x522174(0x24c):return{'start':_0x747a3d,'end':_0x747a3d+U*0x7-0x1};case _0x522174(0x40e):return{'start':_0x747a3d-U*0x1d,'end':_0x747a3d+U-0x1};case _0x522174(0x292):return{'start':_0x747a3d,'end':_0x747a3d+U*0x1e-0x1};}}function dn(_0x52c507){let _0x36f432=qt(_0x52c507);return _0x36f432==null?null:fn(Kt(_0x36f432));}function fn(_0x160091){const _0x3b6a54=_0x58a750;let _0x3980a2=new Date(_0x160091);return _0x3980a2['setHours'](0x0,0x0,0x0,0x0),_0x3980a2[_0x3b6a54(0x3f7)]();}function pn(_0x53b11a,_0x2e2727){const _0x345655=_0x58a750;let _0x4b9ade=_0x53b11a-(new Date(_0x53b11a)[_0x345655(0x264)]()+0x6)%0x7*U+_0x2e2727*U*0x7;return{'start':_0x4b9ade,'end':_0x4b9ade+U*0x7-0x1};}function mn(_0x2e1954,_0x1e4849){const _0x1e50c9=_0x58a750;let _0x2671f6=new Date(_0x2e1954),_0x42ed2f=new Date(_0x2671f6[_0x1e50c9(0x1e3)](),_0x2671f6[_0x1e50c9(0x1d9)]()+_0x1e4849,0x1),_0x371a8e=new Date(_0x2671f6[_0x1e50c9(0x1e3)](),_0x2671f6['getMonth']()+_0x1e4849+0x1,0x1);return{'start':_0x42ed2f['getTime'](),'end':_0x371a8e[_0x1e50c9(0x3f7)]()-0x1};}function hn(_0x4044d2,_0x51afbd,_0x29d11f){const _0x3243c9=_0x58a750;let _0x424924=gn(_0x4044d2),_0x3ddc1b=gn(_0x29d11f);switch(_0x51afbd){case'is':return _0x424924===_0x3ddc1b;case _0x3243c9(0x3d8):return _0x424924!==_0x3ddc1b;default:return!0x1;}}function gn(_0x598e3e){const _0x39754e=_0x58a750;return _0x598e3e===!0x0||_0x598e3e===_0x39754e(0x312)||_0x598e3e===0x1||_0x598e3e==='1';}function _n(_0x4d518b,_0x94ae2e,_0x4374d5,_0x1bbb98){const _0x2b1d59=_0x58a750;let _0x8c847a=bn(_0x4d518b,_0x1bbb98),_0x32f636=bn(_0x4374d5,_0x1bbb98),_0x4451e5=_0x32f636[_0x2b1d59(0x17a)]>0x0&&_0x32f636['some'](_0x5ee582=>_0x8c847a[_0x2b1d59(0x422)](_0x5ee582));switch(_0x94ae2e){case'is':case'contains':return _0x4451e5;case _0x2b1d59(0x3d8):case _0x2b1d59(0x3f5):return!_0x4451e5;default:return!0x1;}}function vn(_0x245fba,_0x1b57f5,_0x27a0ea){const _0x429fa0=_0x58a750;let _0x3b4ade=yn(_0x245fba),_0x42605c=yn(_0x27a0ea);switch(_0x1b57f5){case'is':return _0x3b4ade===_0x42605c;case _0x429fa0(0x3d8):return _0x3b4ade!==_0x42605c;case'contains':return _0x42605c?_0x3b4ade[_0x429fa0(0x422)](_0x42605c):!0x1;case'notContains':return!_0x42605c||!_0x3b4ade[_0x429fa0(0x422)](_0x42605c);default:return!0x1;}}function yn(_0x331981){const _0x15d5be=_0x58a750;if(Array['isArray'](_0x331981))return _0x331981[_0x15d5be(0x36b)](_0x23df89=>yn(_0x23df89))[_0x15d5be(0x20b)]('\x0a');if(_0x331981&&typeof _0x331981==_0x15d5be(0x133)){let _0xc94c8f=_0x331981;return String(_0xc94c8f[_0x15d5be(0x2fa)]??_0xc94c8f[_0x15d5be(0x3df)]??_0xc94c8f[_0x15d5be(0x11c)]??_0xc94c8f[_0x15d5be(0x29b)]??_0xc94c8f['id']??'')[_0x15d5be(0x3b2)]()['toLowerCase']();}return String(_0x331981??'')[_0x15d5be(0x3b2)]()[_0x15d5be(0x3d1)]();}function bn(_0x17f960,_0x29df27){const _0x53a177=_0x58a750;let _0x2a8180=xn(_0x17f960),_0x338b44=Sn(_0x29df27[_0x53a177(0x346)]??{});return _0x2a8180[_0x53a177(0x330)](_0x20ef2f=>_0x338b44['get'](_0x20ef2f)??[_0x20ef2f])['filter']((_0x1bebfb,_0x29ce0d,_0x217dcd)=>_0x1bebfb!==''&&_0x217dcd[_0x53a177(0x1c3)](_0x1bebfb)===_0x29ce0d);}function xn(_0x347199){const _0x5d1444=_0x58a750;if(_0x347199==null||_0x347199==='')return[];if(Array[_0x5d1444(0x25e)](_0x347199))return _0x347199['flatMap'](_0xfc8e4b=>xn(_0xfc8e4b));if(_0x347199&&typeof _0x347199==_0x5d1444(0x133)){let _0x3f2c2a=_0x347199;return['id','name',_0x5d1444(0x3df),_0x5d1444(0x29b),_0x5d1444(0x11c)][_0x5d1444(0x330)](_0x13348=>xn(_0x3f2c2a[_0x13348]))[_0x5d1444(0x253)]((_0x4c9acf,_0x588b80,_0x262ed4)=>_0x262ed4[_0x5d1444(0x1c3)](_0x4c9acf)===_0x588b80);}return[yn(_0x347199)];}function Sn(_0x3081b4){const _0x2e2f0b=_0x58a750;let _0x7a51cd=new Map();return(Array['isArray'](_0x3081b4[_0x2e2f0b(0x15b)])?_0x3081b4[_0x2e2f0b(0x15b)]:[])[_0x2e2f0b(0x3b6)](_0x40c856=>{const _0x4e2bc3=_0x2e2f0b;if(!_0x40c856||typeof _0x40c856!='object')return;let _0x48e707=xn(_0x40c856),_0x5fdbf6=_0x48e707[_0x4e2bc3(0x253)]((_0x106756,_0xad3d42)=>_0x106756!==''&&_0x48e707[_0x4e2bc3(0x1c3)](_0x106756)===_0xad3d42);_0x5fdbf6[_0x4e2bc3(0x3b6)](_0x1edaef=>_0x7a51cd[_0x4e2bc3(0x191)](_0x1edaef,_0x5fdbf6));}),_0x7a51cd;}function W(_0x10eb77,_0x74e14b={},_0x39d153=_0x5bedbb=>_0x5bedbb,_0x1a0073={}){const _0x242bd9=_0x58a750;let _0x1925df=!en[_0x242bd9(0x192)](_0x10eb77),_0x4f2358=_0x39d153??(_0x10a342=>_0x10a342);return{'type':_0x10eb77,'i18nKey':_0x242bd9(0x3ae)+_0x10eb77,'enabled':_0x1925df,'visibleInCreateMenu':_0x1925df,'createDefaultConfig':_0x1a0073[_0x242bd9(0x2cd)]??(()=>({})),'createDefaultValue':_0x1a0073[_0x242bd9(0x35b)]??(_0x14bcd6=>_0x14bcd6[_0x242bd9(0x19c)]??null),'normalize':(_0x45b55e,_0x3536fd)=>_0x4f2358(_0x45b55e,_0x3536fd),'validate':(_0xd6dfad,_0x16586f)=>{var _0xdbd2a9;return _0x1925df?((_0xdbd2a9=_0x1a0073['validate'])==null?void 0x0:_0xdbd2a9['call'](_0x1a0073,_0xd6dfad,_0x16586f))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x5c605b,_0x409774)=>rn(_0x5c605b,_0x409774),'filter':(_0x371d0f,_0x3c3653,_0x2c9cf4,_0x3d5d52)=>an(_0x371d0f,_0x3c3653,_0x2c9cf4,_0x3d5d52),'toPlainText':_0x1a0073['toPlainText']??(_0x18a12e=>_0x18a12e==null?'':String(_0x18a12e)),'fromPlainText':_0x1a0073[_0x242bd9(0x227)]??(_0xdaa6ee=>_0x4f2358(_0xdaa6ee,{'id':'','name':'','type':_0x10eb77,'config':{}})),'getCapabilities':()=>({...$t,..._0x74e14b,'editable':_0x1925df&&(_0x74e14b[_0x242bd9(0x33b)]??$t[_0x242bd9(0x33b)])})};}function Cn(){const _0x4fd9af=_0x58a750;return[W(_0x54dcd1[_0x4fd9af(0x304)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x4fd9af(0x226)}),'createDefaultValue':_0x2e6b85=>_0x2e6b85[_0x4fd9af(0x19c)]??''}),W(_0x54dcd1[_0x4fd9af(0x193)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x4b62f4=>_0x4b62f4==null||_0x4b62f4===''?null:String(_0x4b62f4),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':'manual'}})}),W(_0x54dcd1[_0x4fd9af(0xf3)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x6d616f=>Array[_0x4fd9af(0x25e)](_0x6d616f)?_0x6d616f[_0x4fd9af(0x36b)](String):_0x6d616f==null?[]:[String(_0x6d616f)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x4fd9af(0x1c0)}}),'createDefaultValue':_0x197e8d=>_0x197e8d['defaultValue']??[]}),W(_0x54dcd1[_0x4fd9af(0x36d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},On,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x4fd9af(0x391)}),'validate':kn}),W(_0x54dcd1[_0x4fd9af(0x3c3)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},En,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x4fd9af(0x3f2)}),'createDefaultValue':_0x3236b1=>_0x3236b1[_0x4fd9af(0x19c)]??[],'validate':An}),W(_0x54dcd1[_0x4fd9af(0x160)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x5518a0=>qt(_0x5518a0),{'createDefaultConfig':()=>Tn(),'validate':jn}),W(_0x54dcd1[_0x4fd9af(0xd4)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x2b7c54=>_0x2b7c54==null?[]:Array[_0x4fd9af(0x25e)](_0x2b7c54)?_0x2b7c54:[_0x2b7c54],{'createDefaultValue':_0x49698a=>_0x49698a[_0x4fd9af(0x19c)]??[]}),W(_0x54dcd1[_0x4fd9af(0x298)],{},_0x6d7c22=>_0x6d7c22==null||_0x6d7c22===''?null:Number(_0x6d7c22),{'createDefaultConfig':()=>wn(),'validate':Mn}),W(_0x54dcd1[_0x4fd9af(0x2ca)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x884228=>_0x884228===!0x0||_0x884228==='true'||_0x884228===0x1||_0x884228==='1',{'createDefaultConfig':()=>({'icon':_0x4fd9af(0x3a9),'color':_0x4fd9af(0x16e)}),'createDefaultValue':_0x48dee6=>_0x48dee6['defaultValue']??!0x1,'validate':_0x4ad177=>typeof _0x4ad177==_0x4fd9af(0x27a)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20checkbox\x20value.'}}),W(_0x54dcd1[_0x4fd9af(0x39d)],{'supportsRelation':!0x0},Pn,{'createDefaultConfig':()=>({'placeholder':_0x4fd9af(0x269)}),'toPlainText':_0x423b99=>Fn(_0x423b99),'fromPlainText':_0x5796a9=>Pn(_0x5796a9)}),W(_0x54dcd1['Formula'],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x4fd9af(0x319),'pattern':_0x4fd9af(0x187)}}),'createDefaultValue':()=>null}),W(_0x54dcd1[_0x4fd9af(0x3e8)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x4fd9af(0x3e2)}),'createDefaultValue':()=>null}),W(_0x54dcd1[_0x4fd9af(0x1f5)],{'usableAsTitle':!0x0},_0x5af444=>_0x5af444==null?null:String(_0x5af444)[_0x4fd9af(0x3b2)](),{'validate':_0x4c02a4=>_0x4c02a4==null||_0x4c02a4===''||/^\+?[0-9 ()-]{6,20}$/[_0x4fd9af(0x2aa)](String(_0x4c02a4))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4fd9af(0x2b5)}}),W(_0x54dcd1['Email'],{'usableAsTitle':!0x0},_0x38b835=>_0x38b835==null?null:String(_0x38b835)[_0x4fd9af(0x3b2)](),{'validate':_0x394efa=>_0x394efa==null||_0x394efa===''||Ln(String(_0x394efa))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4fd9af(0x2b3)}}),W(_0x54dcd1[_0x4fd9af(0x325)],{'usableAsGanttProgress':!0x0},_0x43a34c=>_0x43a34c==null||_0x43a34c===''?null:Number(_0x43a34c),{'createDefaultConfig':()=>({'format':_0x4fd9af(0x3e3),'decimalPlaces':0x0,'color':_0x4fd9af(0x3c4),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x5688ce,_0x46ee78)=>Nn(_0x5688ce,_0x46ee78,_0x4fd9af(0x401))}),W(_0x54dcd1[_0x4fd9af(0x302)],{},_0x4a03a8=>_0x4a03a8==null||_0x4a03a8===''?null:Number(_0x4a03a8),{'createDefaultConfig':()=>({...wn(),'currencySymbol':'$'}),'validate':Mn}),W(_0x54dcd1['Rating'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x16d3ff=>_0x16d3ff==null||_0x16d3ff===''?null:Number(_0x16d3ff),{'createDefaultConfig':()=>({'icon':_0x4fd9af(0x1df),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x4b3bb2,_0xb7aa11)=>Nn(_0x4b3bb2,_0xb7aa11,_0x4fd9af(0x1b8))}),W(_0x54dcd1['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Dn,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x218c39,_0x3edb7a)=>De(_0x218c39,_0x3edb7a[_0x4fd9af(0x346)][_0x4fd9af(0x149)]===!0x0)}),W(_0x54dcd1['RecordId'],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),W(_0x54dcd1[_0x4fd9af(0x2f4)],{'editable':!0x1,'groupable':!0x0},_0x169a6c=>_0x169a6c==null?null:String(_0x169a6c),{'createDefaultConfig':()=>({'provider':_0x4fd9af(0x268)}),'createDefaultValue':()=>null}),W(_0x54dcd1[_0x4fd9af(0xd7)],{'editable':!0x1,'groupable':!0x0},_0x5cfb14=>_0x5cfb14==null?null:String(_0x5cfb14),{'createDefaultConfig':()=>({'provider':'user'}),'createDefaultValue':()=>null}),W(_0x54dcd1['CreatedAt'],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x3b2397=>qt(_0x3b2397),{'createDefaultConfig':()=>Tn(),'createDefaultValue':()=>null,'validate':jn}),W(_0x54dcd1[_0x4fd9af(0x1b4)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x5a7579=>qt(_0x5a7579),{'createDefaultConfig':()=>Tn(),'createDefaultValue':()=>null,'validate':jn})];}function wn(){const _0xc2c145=_0x58a750;return{'pattern':_0xc2c145(0x38a),'decimalPlaces':0x2,'separatorStyle':_0xc2c145(0x101),'useThousands':!0x0,'abbreviation':_0xc2c145(0x2fd),'allowNegative':!0x0};}function Tn(){const _0x4b3a79=_0x58a750;return{'locale':'en-US','pattern':_0x4b3a79(0x279),'includeTime':!0x1,'hourCycle':_0x4b3a79(0x2bf),'defaultMode':_0x4b3a79(0x2fd)};}function En(_0x573878){return _0x573878==null||_0x573878===''?[]:Array['isArray'](_0x573878)?_0x573878['map'](String):[String(_0x573878)];}function Dn(_0x1ecfb5){const _0x5de6c6=_0x58a750;return typeof _0x1ecfb5==_0x5de6c6(0x223)?_0x1ecfb5:'';}function On(_0x5bd098,_0x48952c){const _0x2dd831=_0x58a750;return _0x5bd098==null||_0x5bd098===''?_0x48952c[_0x2dd831(0x346)][_0x2dd831(0x100)]===!0x0?[]:null:_0x48952c[_0x2dd831(0x346)][_0x2dd831(0x100)]===!0x0?Array[_0x2dd831(0x25e)](_0x5bd098)?_0x5bd098[_0x2dd831(0x36b)](String):[String(_0x5bd098)]:Array[_0x2dd831(0x25e)](_0x5bd098)?String(_0x5bd098[0x0]??'')||null:String(_0x5bd098);}function kn(_0x3874e7,_0x3e003b){const _0xd9a6fa=_0x58a750;return _0x3e003b[_0xd9a6fa(0x346)]['allowMultiple']===!0x0?An(_0x3874e7):_0x3874e7==null||_0x3874e7===''||typeof _0x3874e7==_0xd9a6fa(0x223)?{'valid':!0x0}:{'valid':!0x1,'reason':_0xd9a6fa(0x349)};}function An(_0x284f02){const _0xd2f2c=_0x58a750;return _0x284f02==null||Array[_0xd2f2c(0x25e)](_0x284f02)&&_0x284f02[_0xd2f2c(0x413)](_0x15bb18=>typeof _0x15bb18==_0xd2f2c(0x223))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20multi-value\x20reference.'};}function jn(_0x4ced17){const _0x33b94d=_0x58a750;return _0x4ced17==null||typeof _0x4ced17==_0x33b94d(0x30a)&&Number['isFinite'](_0x4ced17)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x33b94d(0x111)};}function Mn(_0x5d1db3,_0x26b208){const _0x1644fa=_0x58a750;return _0x5d1db3==null||_0x5d1db3===''?{'valid':!0x0}:typeof _0x5d1db3!=_0x1644fa(0x30a)||!Number[_0x1644fa(0x1d8)](_0x5d1db3)?{'valid':!0x1,'reason':_0x1644fa(0x3ba)}:_0x26b208[_0x1644fa(0x346)]['allowNegative']===!0x1&&_0x5d1db3<0x0?{'valid':!0x1,'reason':_0x1644fa(0x3d9)}:{'valid':!0x0};}function Nn(_0x13799a,_0x214323,_0x1d293c){const _0x5c7dd6=_0x58a750;let _0x50c5b5=Mn(_0x13799a,_0x214323);if(!_0x50c5b5[_0x5c7dd6(0x258)]||_0x13799a==null||_0x13799a==='')return _0x50c5b5;let _0x185432=Number(_0x214323['config'][_0x5c7dd6(0x254)]??_0x214323[_0x5c7dd6(0x346)][_0x5c7dd6(0x2ad)]??0x0),_0x5e923d=Number(_0x214323[_0x5c7dd6(0x346)][_0x5c7dd6(0x194)]??_0x214323[_0x5c7dd6(0x346)][_0x5c7dd6(0xf0)]??0x64),_0x47a123=Number(_0x13799a);return _0x47a123>=_0x185432&&_0x47a123<=_0x5e923d?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1d293c};}function Pn(_0x41d1a1){const _0x3ec100=_0x58a750;if(_0x41d1a1==null||_0x41d1a1==='')return null;if(typeof _0x41d1a1==_0x3ec100(0x133)&&!Array[_0x3ec100(0x25e)](_0x41d1a1)){let _0x1ec4d5=_0x41d1a1,_0x2d9b7a=typeof _0x1ec4d5[_0x3ec100(0x11c)]==_0x3ec100(0x223)?_0x1ec4d5[_0x3ec100(0x11c)][_0x3ec100(0x3b2)]():'',_0xd28a98=typeof _0x1ec4d5[_0x3ec100(0x2d9)]==_0x3ec100(0x223)?_0x1ec4d5['url']['trim']():'',_0x56593d=In(_0xd28a98||_0x2d9b7a);return _0x56593d?{'text':_0x2d9b7a||_0xd28a98||_0x56593d,'url':_0x56593d}:null;}let _0x3d34b6=String(_0x41d1a1)[_0x3ec100(0x3b2)](),_0x4e5f89=In(_0x3d34b6);return _0x4e5f89?{'text':_0x3d34b6,'url':_0x4e5f89}:null;}function Fn(_0x3b5787){const _0x154f03=_0x58a750;if(_0x3b5787==null)return'';if(typeof _0x3b5787==_0x154f03(0x133)&&!Array[_0x154f03(0x25e)](_0x3b5787)){let _0x571485=_0x3b5787;return String(_0x571485[_0x154f03(0x11c)]||_0x571485['url']||'');}return String(_0x3b5787);}function In(_0x33fcdd){const _0x293829=_0x58a750;let _0x2fd7de=_0x33fcdd['trim']();if(!_0x2fd7de)return'';let _0x544e7b=/^[a-z][a-z\d+.-]*:/i[_0x293829(0x2aa)](_0x2fd7de)?_0x2fd7de:_0x2fd7de[_0x293829(0x214)]('//')?_0x293829(0x229)+_0x2fd7de:_0x293829(0x290)+_0x2fd7de;try{let _0x21dc42=new URL(_0x544e7b);return _0x21dc42['protocol']===_0x293829(0x1b7)||_0x21dc42[_0x293829(0x40c)]===_0x293829(0x229)?_0x21dc42[_0x293829(0x28e)]:'';}catch{return'';}}function Ln(_0xe80100){const _0x23bf89=_0x58a750;let _0x22f456=_0xe80100['indexOf']('@');if(_0x22f456<=0x0||_0x22f456!==_0xe80100[_0x23bf89(0x309)]('@'))return!0x1;let _0x44b5=_0xe80100[_0x23bf89(0x39f)](_0x22f456+0x1);return _0x44b5[_0x23bf89(0x422)]('.')&&!_0xe80100['includes']('\x20')&&!_0x44b5[_0x23bf89(0x214)]('.')&&!_0x44b5[_0x23bf89(0x23f)]('.');}function _0x392b(_0xd181fb,_0xbd0df3){_0xd181fb=_0xd181fb-0xc8;const _0x15213c=_0x1521();let _0x392bdc=_0x15213c[_0xd181fb];return _0x392bdc;}const G={'table':_0x23fc87=>['tables',_0x23fc87],'field':(_0x59cbe7,_0x43ed06)=>[_0x58a750(0x347),_0x59cbe7,_0x58a750(0x29a),_0x43ed06],'fieldOrder':(_0x3785a9,_0x13f467)=>['tables',_0x3785a9,'fieldOrder',_0x13f467],'record':(_0x133b6b,_0x41d504)=>[_0x58a750(0x347),_0x133b6b,_0x58a750(0x286),_0x41d504],'cell':(_0x5285b3,_0x350945,_0x4a4902)=>[_0x58a750(0x347),_0x5285b3,_0x58a750(0x286),_0x350945,_0x58a750(0x255),_0x4a4902],'cellData':(_0x16a792,_0xf6b0a1,_0xa38b0a)=>[_0x58a750(0x347),_0x16a792,_0x58a750(0xd8),String(_0xf6b0a1),String(_0xa38b0a)],'attachmentSet':(_0x541d78,_0x4aaf48)=>[_0x58a750(0x347),_0x541d78,_0x58a750(0xfa),_0x58a750(0x31a),_0x4aaf48],'attachment':(_0x25d299,_0x4817ac)=>[_0x58a750(0x347),_0x25d299,_0x58a750(0xfa),'attachments',_0x4817ac],'view':(_0x2a05ca,_0x41c26d)=>[_0x58a750(0x347),_0x2a05ca,_0x58a750(0x2c4),_0x41c26d],'viewFieldHidden':(_0x1e5274,_0x143b2d,_0xc54247)=>[_0x58a750(0x347),_0x1e5274,_0x58a750(0x2c4),_0x143b2d,_0x58a750(0x285),_0xc54247,_0x58a750(0x30c)]};var K=class{[_0x58a750(0x2a7)](_0x3789cf,_0x1fc2d6){const _0x5807a8=_0x58a750;let _0x2d90d7=this[_0x5807a8(0x1f0)](_0x3789cf,_0x3789cf['name'],_0x1fc2d6);return B([this[_0x5807a8(0x3dd)]([_0x5807a8(0x2fa)],_0x3789cf[_0x5807a8(0x2fa)],_0x1fc2d6),..._0x2d90d7?[_0x2d90d7]:[]]);}['renameFormulaUnitReferences'](_0x564fd5,_0xa15948,_0x34a3ab){const _0x2eb498=_0x58a750;let _0x40d7ed=Object[_0x2eb498(0x255)](_0x564fd5[_0x2eb498(0x347)])[_0x2eb498(0x330)](_0x235f66=>Object['values'](_0x235f66[_0x2eb498(0x29a)])[_0x2eb498(0x330)](_0x41ef7c=>{const _0x260042=_0x2eb498;var _0x1e1bf0,_0x1e2e82;if(_0x41ef7c[_0x260042(0x18d)]!==_0x54dcd1[_0x260042(0x40d)])return[];let _0x27097f=String(((_0x1e1bf0=_0x41ef7c[_0x260042(0x346)])==null?void 0x0:_0x1e1bf0[_0x260042(0x216)])??''),_0x56e2d5=_0x59c223(_0x27097f,_0xa15948,_0x34a3ab);return _0x56e2d5===_0x27097f?[]:[this['_replaceOptional']([...G[_0x260042(0x2ee)](_0x235f66['id'],_0x41ef7c['id']),_0x260042(0x346),_0x260042(0x216)],(_0x1e2e82=_0x41ef7c[_0x260042(0x346)])==null?void 0x0:_0x1e2e82[_0x260042(0x216)],_0x56e2d5)];}));return _0x40d7ed[_0x2eb498(0x17a)]>0x0?B(_0x40d7ed):void 0x0;}[_0x58a750(0x359)](_0x2a9458,_0x46c383,_0xb59dcf=_0x2a9458[_0x58a750(0x2e0)][_0x58a750(0x17a)]){const _0x5a957c=_0x58a750;let _0x251a47=_0x5d3ddf(_0x46c383[_0x5a957c(0x2fa)],_0x318b91(_0x2a9458)[_0x5a957c(0x255)](),_0x46c383[_0x5a957c(0x2c7)]),_0x192c1e=_0x46c383['formulaName']===_0x251a47?_0x46c383:{..._0x46c383,'formulaName':_0x251a47};return B([...this[_0x5a957c(0x1d7)](_0x2a9458),_0x2f9a7e['insertOp'](G[_0x5a957c(0x400)](_0x46c383['id']),_0x192c1e),_0x2f9a7e[_0x5a957c(0xd5)](['tableOrder',_0xb59dcf],_0x46c383['id'])]);}['renameTable'](_0x5a82b9,_0x49c3b9,_0x139539){const _0x4becc1=_0x58a750;let _0x456afa=_0x5a82b9[_0x4becc1(0x347)][_0x49c3b9];return B([...this[_0x4becc1(0x1d7)](_0x5a82b9),_0x2f9a7e[_0x4becc1(0x3d0)]([...G[_0x4becc1(0x400)](_0x49c3b9),_0x4becc1(0x2fa)],_0x456afa[_0x4becc1(0x2fa)],_0x139539)]);}[_0x58a750(0x284)](_0x5f4bad,_0x109d4f){const _0x47d801=_0x58a750;let _0x4b3af8=_0x5f4bad[_0x47d801(0x347)][_0x109d4f],_0x1060db=_0x5f4bad[_0x47d801(0x2e0)]['indexOf'](_0x109d4f);return B([...this[_0x47d801(0x1d7)](_0x5f4bad,new Set([_0x109d4f])),_0x2f9a7e[_0x47d801(0x275)](G[_0x47d801(0x400)](_0x109d4f),_0x4b3af8),_0x2f9a7e[_0x47d801(0x275)]([_0x47d801(0x2e0),_0x1060db],_0x109d4f)]);}[_0x58a750(0x208)](_0x44d089,_0x35c375,_0x4aae42){const _0x5be418=_0x58a750;return this[_0x5be418(0x282)](_0x44d089,_0x35c375,[_0x4aae42]);}[_0x58a750(0x282)](_0x5e2846,_0x2c7792,_0x554f43){const _0x38352d=_0x58a750;let _0x1dfc45=_0x5e2846['tables'][_0x2c7792],_0x3906c1=_0x554f43[_0x38352d(0x253)](_0x1eb8ea=>_0x1eb8ea&&!_0x1dfc45['records'][_0x1eb8ea['id']])[_0x38352d(0x36b)](_0x394353=>({..._0x394353,'values':{..._0x394353[_0x38352d(0x255)],[_0x1abc18]:_0x394353['id']}}));if(!_0x3906c1['length'])return _0x2f9a7e[_0x38352d(0x3d0)]([...G['table'](_0x2c7792),_0x38352d(0x286)],_0x1dfc45['records'],_0x1dfc45[_0x38352d(0x286)]);let _0x5684a0=new _0x2f9a7e['WriteCursor'](),_0x3240cc=[..._0x3906c1][_0x38352d(0x172)]((_0x2b9f1f,_0x1deafe)=>_0x2b9f1f['id']<_0x1deafe['id']?-0x1:+(_0x2b9f1f['id']>_0x1deafe['id'])),_0x2ea42a=[...G[_0x38352d(0x400)](_0x2c7792),'records'];_0x5684a0[_0x38352d(0x200)](_0x2ea42a);for(let _0x3f3847 of _0x3240cc)_0x5684a0['descend'](_0x3f3847['id']),_0x5684a0[_0x38352d(0x136)]('i',_0x3f3847),_0x5684a0[_0x38352d(0x294)]();for(let _0x5b78a1=0x0;_0x5b78a1<_0x2ea42a[_0x38352d(0x17a)];_0x5b78a1+=0x1)_0x5684a0[_0x38352d(0x294)]();return B([_0x5684a0[_0x38352d(0x1ce)](),this[_0x38352d(0x14a)](_0x5e2846,_0x2c7792,_0x3906c1)]);}[_0x58a750(0x1cd)](_0x2a3853,_0x2e20a9,_0xb37990){const _0x1b0198=_0x58a750;return this[_0x1b0198(0x143)](_0x2a3853,_0x2e20a9,[_0xb37990]);}[_0x58a750(0x143)](_0x31993e,_0x4dbc0d,_0x4ea88f){const _0x4b213a=_0x58a750;let _0x49ba00=_0x31993e[_0x4b213a(0x347)][_0x4dbc0d],_0x390f2b=Array[_0x4b213a(0x247)](new Set(_0x4ea88f))['filter'](_0x454a9c=>_0x49ba00[_0x4b213a(0x286)][_0x454a9c]);if(!_0x390f2b['length'])return _0x2f9a7e['replaceOp']([...G[_0x4b213a(0x400)](_0x4dbc0d),_0x4b213a(0x286)],_0x49ba00['records'],_0x49ba00[_0x4b213a(0x286)]);let _0x36cfd2=new Set(_0x390f2b),_0x20af5a=Ve(_0x49ba00,_0x390f2b)[_0x4b213a(0x36b)](_0x5a854b=>this[_0x4b213a(0xf2)](_0x31993e,_0x4dbc0d,_0x5a854b[_0x4b213a(0x378)],_0x5a854b[_0x4b213a(0x32d)],'')),_0x383e6b=_0x390f2b[_0x4b213a(0x36b)](_0x45bbf5=>{const _0x34a425=_0x4b213a;var _0x1438cd;return{'recordId':_0x45bbf5,'index':((_0x1438cd=_0x49ba00['recordOrder'])==null?void 0x0:_0x1438cd[_0x34a425(0x1c3)](_0x45bbf5))??-0x1};})[_0x4b213a(0x253)](_0x190b26=>_0x190b26[_0x4b213a(0x1a1)]>=0x0)[_0x4b213a(0x172)]((_0x33be1d,_0x24078b)=>_0x24078b[_0x4b213a(0x1a1)]-_0x33be1d['index']);return B([..._0x390f2b[_0x4b213a(0x36b)](_0x29babf=>_0x2f9a7e[_0x4b213a(0x275)](G[_0x4b213a(0x277)](_0x4dbc0d,_0x29babf),_0x49ba00[_0x4b213a(0x286)][_0x29babf])),..._0x383e6b[_0x4b213a(0x36b)](({recordId:_0x5a6789,index:_0x4c45a0})=>_0x2f9a7e[_0x4b213a(0x275)]([_0x4b213a(0x347),_0x4dbc0d,_0x4b213a(0x22a),_0x4c45a0],_0x5a6789)),..._0x20af5a,...this[_0x4b213a(0x379)](_0x49ba00,_0x4dbc0d,_0x354406=>{const _0x4bbefe=_0x4b213a;let _0x5318e5=_0x354406[_0x4bbefe(0x39f)](_0x354406[_0x4bbefe(0x309)]('\x1f')+0x1);return _0x36cfd2['has'](_0x5318e5);})]);}[_0x58a750(0x3a1)](_0x3dbafc,_0x57ba47,_0x23fdf6,_0x7027ef){const _0x16235a=_0x58a750;return this[_0x16235a(0x208)](_0x3dbafc,_0x57ba47,{..._0x7027ef,'values':{..._0x3dbafc[_0x16235a(0x347)][_0x57ba47]['records'][_0x23fdf6][_0x16235a(0x255)],..._0x7027ef[_0x16235a(0x255)],[_0x1abc18]:_0x7027ef['id']}});}[_0x58a750(0x260)](_0xbfd5e0,_0x434727,_0x4e3cf2,_0x333519){const _0x2d16ac=_0x58a750;let _0x4d2c3f=_0xbfd5e0[_0x2d16ac(0x347)][_0x434727],_0x32b6be=[...G['record'](_0x434727,_0x4e3cf2),_0x2d16ac(0x368)],_0x4732bb=Object[_0x2d16ac(0x255)](_0x4d2c3f[_0x2d16ac(0x286)])[_0x2d16ac(0x36b)](_0x5bff72=>_0x5bff72['id']===_0x4e3cf2?{..._0x5bff72,'orderKey':_0x333519}:_0x5bff72)['sort']((_0x55217d,_0x2f27b8)=>String(_0x55217d['orderKey']??_0x55217d['id'])[_0x2d16ac(0x291)](String(_0x2f27b8['orderKey']??_0x2f27b8['id'])))[_0x2d16ac(0x36b)](_0x17db27=>_0x17db27['id']),_0xd40656=[...G[_0x2d16ac(0x400)](_0x434727),'recordOrder'];return B([this[_0x2d16ac(0x3dd)](_0x32b6be,_0x4d2c3f[_0x2d16ac(0x286)][_0x4e3cf2]['orderKey'],_0x333519),_0x4d2c3f[_0x2d16ac(0x22a)]?_0x2f9a7e[_0x2d16ac(0x3d0)](_0xd40656,_0x4d2c3f['recordOrder'],_0x4732bb):_0x2f9a7e[_0x2d16ac(0xd5)](_0xd40656,_0x4732bb)]);}['updateCell'](_0x4a40b0,_0x56ddfb,_0x530093,_0x54fae3,_0x12c7e9){const _0x21b408=_0x58a750;var _0x5a0e81,_0x104411;let _0x4b7b31=_0x4a40b0[_0x21b408(0x347)][_0x56ddfb],_0x69b48b=Rn(_0x4b7b31,_0x530093,_0x54fae3)?_0x4b7b31:z(_0x4b7b31),_0x32c676=(_0x5a0e81=_0x69b48b[_0x21b408(0x1b6)])==null?void 0x0:_0x5a0e81[_0x530093],_0x3dd209=(_0x104411=_0x69b48b[_0x21b408(0x203)])==null?void 0x0:_0x104411[_0x54fae3];if(_0x32c676==null||_0x3dd209==null){var _0x5c3bfc;return this[_0x21b408(0x3dd)](G[_0x21b408(0x16f)](_0x56ddfb,_0x530093,_0x54fae3),(_0x5c3bfc=_0x4a40b0[_0x21b408(0x347)][_0x56ddfb])==null||(_0x5c3bfc=_0x5c3bfc['records'][_0x530093])==null?void 0x0:_0x5c3bfc[_0x21b408(0x255)][_0x54fae3],_0x12c7e9);}return this[_0x21b408(0x3b4)](_0x4a40b0,_0x56ddfb,[{'row':_0x32c676,'col':_0x3dd209,'value':_0x12c7e9}]);}[_0x58a750(0x261)](_0x3266cf,_0x5c3b2c,_0x27800d){const _0xb8dd37=_0x58a750;let _0x4b3154=_0x3266cf[_0xb8dd37(0x347)][_0x5c3b2c],_0xaf1b7a=_0x27800d[_0xb8dd37(0x413)](_0x34cfc1=>Object[_0xb8dd37(0x29c)](_0x34cfc1[_0xb8dd37(0x255)])[_0xb8dd37(0x413)](_0x334ec=>Rn(_0x4b3154,_0x34cfc1[_0xb8dd37(0x378)],_0x334ec)))?_0x4b3154:z(_0x4b3154),_0x2d39a1=_0x27800d[_0xb8dd37(0x330)](_0x3c7503=>Object['entries'](_0x3c7503[_0xb8dd37(0x255)])[_0xb8dd37(0x330)](([_0x530ace,_0x2174ad])=>{const _0x154c4b=_0xb8dd37;var _0x3c591c,_0x395261;let _0xecdd5d=(_0x3c591c=_0xaf1b7a[_0x154c4b(0x1b6)])==null?void 0x0:_0x3c591c[_0x3c7503[_0x154c4b(0x378)]],_0x4d3f48=(_0x395261=_0xaf1b7a['colIndex'])==null?void 0x0:_0x395261[_0x530ace];return _0xecdd5d==null||_0x4d3f48==null?[]:[{'row':_0xecdd5d,'col':_0x4d3f48,'value':_0x2174ad}];})),_0x4f2580=_0x27800d[_0xb8dd37(0x330)](_0x55e2b7=>Object['entries'](_0x55e2b7[_0xb8dd37(0x348)]??{})[_0xb8dd37(0x36b)](([_0x2d327c,_0x447bcd])=>{const _0x168126=_0xb8dd37;var _0x39c1cf;let _0xe304fc=[...G[_0x168126(0x277)](_0x5c3b2c,_0x55e2b7[_0x168126(0x378)]),_0x2d327c],_0x203713=(_0x39c1cf=_0x3266cf[_0x168126(0x347)][_0x5c3b2c])==null||(_0x39c1cf=_0x39c1cf[_0x168126(0x286)][_0x55e2b7['recordId']])==null?void 0x0:_0x39c1cf[_0x2d327c];return this['_replaceOptional'](_0xe304fc,_0x203713,_0x447bcd);}));return B([this[_0xb8dd37(0x3b4)](_0x3266cf,_0x5c3b2c,_0x2d39a1),..._0x4f2580]);}[_0x58a750(0x3b4)](_0x56512a,_0x1c33ff,_0xb087f5){const _0x1cb96c=_0x58a750;let _0x328e1e=_0x56512a[_0x1cb96c(0x347)][_0x1c33ff],_0x2c9711=_0xb087f5[_0x1cb96c(0x413)](_0x1a25c3=>zn(_0x328e1e,_0x1a25c3[_0x1cb96c(0x207)],_0x1a25c3['col']))?_0x328e1e:z(_0x328e1e),_0xec5350=_0xb087f5[_0x1cb96c(0x330)](_0x2da4e9=>{const _0x53d3cd=_0x1cb96c;var _0x2d83a7,_0x54424f,_0x12c5fd,_0x5ccc71;let _0x20de01=(_0x2d83a7=_0x2c9711['colId'])==null?void 0x0:_0x2d83a7[_0x2da4e9[_0x53d3cd(0x2c3)]],_0x4200ab=(_0x54424f=_0x2c9711[_0x53d3cd(0x2c1)])==null?void 0x0:_0x54424f[_0x2da4e9['row']],_0x2655e4=_0x20de01?_0x2c9711[_0x53d3cd(0x29a)][_0x20de01]:void 0x0;if(_0x20de01===_0x1abc18||(_0x2655e4==null?void 0x0:_0x2655e4['type'])===_0x54dcd1[_0x53d3cd(0x249)])throw Error(_0x53d3cd(0x122));let _0x57b3a3=st(_0x2da4e9[_0x53d3cd(0x29b)],_0x2655e4),_0x568116=(_0x12c5fd=_0x2c9711[_0x53d3cd(0xd8)])==null||(_0x12c5fd=_0x12c5fd[_0x2da4e9['row']])==null?void 0x0:_0x12c5fd[_0x2da4e9['col']],_0x55fbad=this[_0x53d3cd(0x3dd)](G[_0x53d3cd(0xd8)](_0x1c33ff,_0x2da4e9['row'],_0x2da4e9['col']),_0x568116,_0x57b3a3);if(!_0x20de01||!_0x4200ab)return[_0x55fbad];let _0x54325d=(_0x5ccc71=_0x2c9711[_0x53d3cd(0x286)][_0x4200ab])==null?void 0x0:_0x5ccc71['values'][_0x20de01],_0x58fef5=(_0x2655e4==null?void 0x0:_0x2655e4['type'])===_0x54dcd1['Attachment']?ht(_0x2da4e9[_0x53d3cd(0x29b)]):ut(_0x2da4e9[_0x53d3cd(0x29b)],_0x57b3a3,_0x2655e4,_0x2c9711,_0x4200ab),_0x5dd602=[_0x55fbad,this[_0x53d3cd(0x3dd)](G['cell'](_0x1c33ff,_0x4200ab,_0x20de01),_0x54325d,_0x58fef5)];if((_0x2655e4==null?void 0x0:_0x2655e4[_0x53d3cd(0x18d)])!==_0x54dcd1['Attachment'])return _0x5dd602;let _0x3f39ed=this['_setAttachmentResources'](_0x2c9711,_0x1c33ff,_0x4200ab,_0x20de01,_0x58fef5);return[..._0x5dd602,..._0x3f39ed];});return _0xec5350[_0x1cb96c(0x17a)]?B(_0xec5350):_0x2f9a7e['replaceOp'](['tables',_0x1c33ff,_0x1cb96c(0xd8)],_0x2c9711[_0x1cb96c(0xd8)],_0x2c9711[_0x1cb96c(0xd8)]);}['createField'](_0x141899,_0x84832b,_0x12a019){const _0x552873=_0x58a750;let _0x41e83c=_0x141899['tables'][_0x84832b];if(_0x41e83c['fields'][_0x12a019[_0x552873(0x2ee)]['id']]||_0x41e83c[_0x552873(0x3e0)]['includes'](_0x12a019[_0x552873(0x2ee)]['id']))return _0x2f9a7e[_0x552873(0x3d0)](['tables',_0x84832b,_0x552873(0x3e0)],_0x41e83c['fieldOrder'],_0x41e83c['fieldOrder']);let _0x353ad7=Math[_0x552873(0x194)](0x1,_0x12a019[_0x552873(0x1a1)]??_0x41e83c['fieldOrder'][_0x552873(0x17a)]),_0x42fad=Object[_0x552873(0x255)](_0x41e83c[_0x552873(0x2c4)]??{})[_0x552873(0x330)](_0x2be489=>{const _0x19d20a=_0x552873;var _0x4c74f2;if(!_0x2be489[_0x19d20a(0x3e0)]||_0x2be489[_0x19d20a(0x3e0)][_0x19d20a(0x422)](_0x12a019[_0x19d20a(0x2ee)]['id']))return[];let _0x508a78=Un(((_0x4c74f2=_0x12a019[_0x19d20a(0xd9)])==null?void 0x0:_0x4c74f2[_0x2be489['id']])??_0x353ad7,_0x2be489['fieldOrder'][_0x19d20a(0x17a)]);return[_0x2f9a7e['insertOp']([...G[_0x19d20a(0x213)](_0x84832b,_0x2be489['id']),_0x19d20a(0x3e0),_0x508a78],_0x12a019[_0x19d20a(0x2ee)]['id'])];});return B([..._0x12a019[_0x552873(0x2ee)][_0x552873(0x18d)]===_0x54dcd1[_0x552873(0x40d)]?this['_materializeFormulaTableNames'](_0x141899):[],_0x2f9a7e['insertOp'](G['field'](_0x84832b,_0x12a019[_0x552873(0x2ee)]['id']),_0x12a019['field']),_0x2f9a7e[_0x552873(0xd5)](G['fieldOrder'](_0x84832b,_0x353ad7),_0x12a019['field']['id']),..._0x42fad]);}[_0x58a750(0x392)](_0x4786b7,_0x477e88,_0x256f00,_0x4413d6){const _0x203a84=_0x58a750;let _0x29d033=_0x4786b7[_0x203a84(0x347)][_0x477e88];if(!_0x29d033[_0x203a84(0x29a)][_0x256f00]||_0x29d033[_0x203a84(0x29a)][_0x4413d6['field']['id']]||_0x29d033[_0x203a84(0x3e0)][_0x203a84(0x422)](_0x4413d6[_0x203a84(0x2ee)]['id']))return _0x2f9a7e[_0x203a84(0x3d0)](['tables',_0x477e88,_0x203a84(0x3e0)],_0x29d033[_0x203a84(0x3e0)],_0x29d033[_0x203a84(0x3e0)]);let _0x5b580d=_0x4413d6[_0x203a84(0x1a1)]??_0x29d033[_0x203a84(0x3e0)]['indexOf'](_0x256f00)+0x1,_0x6c9411=_0x29d033[_0x203a84(0x3e0)][_0x203a84(0x253)](_0x34df7d=>_0x34df7d!==_0x4413d6['field']['id']),_0x156654=Vn(_0x6c9411,_0x4413d6[_0x203a84(0x2ee)]['id'],_0x5b580d),_0x37fa2e=Object['values'](_0x29d033[_0x203a84(0x2c4)]??{})[_0x203a84(0x330)](_0x2fa0c0=>{const _0xa68084=_0x203a84;var _0x21423a,_0x12213b,_0x334f06,_0x2d2c49;let _0x22dad5=(_0x21423a=_0x2fa0c0[_0xa68084(0x3e0)])!=null&&_0x21423a['length']?_0x2fa0c0[_0xa68084(0x3e0)]:_0x6c9411;if(_0x22dad5[_0xa68084(0x422)](_0x4413d6['field']['id']))return[];let _0x1430a5=Vn(_0x22dad5,_0x4413d6[_0xa68084(0x2ee)]['id'],((_0x12213b=_0x4413d6[_0xa68084(0xd9)])==null?void 0x0:_0x12213b[_0x2fa0c0['id']])??_0x5b580d),_0x264dd2=(_0x334f06=_0x2fa0c0[_0xa68084(0x285)])==null?void 0x0:_0x334f06[_0x256f00];return[this[_0xa68084(0x3dd)]([...G['view'](_0x477e88,_0x2fa0c0['id']),_0xa68084(0x3e0)],_0x2fa0c0['fieldOrder'],_0x1430a5),..._0x264dd2?[this[_0xa68084(0x3dd)]([...G[_0xa68084(0x213)](_0x477e88,_0x2fa0c0['id']),_0xa68084(0x285),_0x4413d6[_0xa68084(0x2ee)]['id']],(_0x2d2c49=_0x2fa0c0['fieldSettings'])==null?void 0x0:_0x2d2c49[_0x4413d6[_0xa68084(0x2ee)]['id']],_0x264dd2)]:[]];}),_0x1fcb6d=Object[_0x203a84(0x255)](_0x29d033[_0x203a84(0x286)])[_0x203a84(0x253)](_0x571ceb=>Object['prototype'][_0x203a84(0x363)][_0x203a84(0x35f)](_0x571ceb[_0x203a84(0x255)],_0x256f00))[_0x203a84(0x36b)](_0x3170da=>this[_0x203a84(0x3dd)](G[_0x203a84(0x16f)](_0x477e88,_0x3170da['id'],_0x4413d6[_0x203a84(0x2ee)]['id']),_0x3170da[_0x203a84(0x255)][_0x4413d6[_0x203a84(0x2ee)]['id']],_0x3170da[_0x203a84(0x255)][_0x256f00]));return B([..._0x4413d6['field'][_0x203a84(0x18d)]===_0x54dcd1[_0x203a84(0x40d)]?this[_0x203a84(0x1d7)](_0x4786b7):[],_0x2f9a7e[_0x203a84(0xd5)](G['field'](_0x477e88,_0x4413d6[_0x203a84(0x2ee)]['id']),_0x4413d6['field']),_0x2f9a7e[_0x203a84(0x3d0)]([_0x203a84(0x347),_0x477e88,_0x203a84(0x3e0)],_0x29d033[_0x203a84(0x3e0)],_0x156654),..._0x37fa2e,..._0x1fcb6d]);}['updateField'](_0xb712bf,_0x1d45a3,_0x3fef66,_0x2ed125){const _0x882e37=_0x58a750;let _0x3a187a=_0xb712bf[_0x882e37(0x347)][_0x1d45a3][_0x882e37(0x29a)][_0x3fef66],_0x5dca4b={..._0x3a187a,..._0x2ed125};Object[_0x882e37(0x29c)](_0x2ed125)['forEach'](_0x530127=>{_0x2ed125[_0x530127]===void 0x0&&delete _0x5dca4b[_0x530127];});let _0x12a60c=_0x2f9a7e[_0x882e37(0x3d0)](G['field'](_0x1d45a3,_0x3fef66),_0x3a187a,_0x5dca4b);return _0x5dca4b[_0x882e37(0x18d)]===_0x54dcd1[_0x882e37(0x40d)]?B([...this['_materializeFormulaTableNames'](_0xb712bf),_0x12a60c,...this[_0x882e37(0x10d)](_0xb712bf,_0x1d45a3,_0x3fef66,_0x5dca4b)]):_0x12a60c;}['changeFieldType'](_0xb01da,_0x59b4d9,_0xe929c5,_0x1f579b){const _0x13a862=_0x58a750;return this[_0x13a862(0x1f2)](_0xb01da,_0x59b4d9,_0xe929c5,_0x1f579b);}['deleteField'](_0x5f4b8b,_0x1aedd6,_0x48fd62){const _0x540c64=_0x58a750;let _0x56f322=_0x5f4b8b['tables'][_0x1aedd6];if(!(_0x56f322!=null&&_0x56f322[_0x540c64(0x29a)][_0x48fd62])||_0x56f322[_0x540c64(0x1a8)]===_0x48fd62||_0x48fd62===_0x1abc18)return _0x2f9a7e[_0x540c64(0x3d0)]([_0x540c64(0x347),_0x1aedd6,_0x540c64(0x3e0)],_0x56f322==null?void 0x0:_0x56f322[_0x540c64(0x3e0)],_0x56f322==null?void 0x0:_0x56f322['fieldOrder']);let _0x5469a8=_0x56f322[_0x540c64(0x3e0)][_0x540c64(0x1c3)](_0x48fd62),_0x220d73=Object[_0x540c64(0x255)](_0x56f322[_0x540c64(0x2c4)])[_0x540c64(0x330)](_0x5c960e=>{const _0x22a635=_0x540c64;var _0x4e8e4e,_0x3c6875,_0x5a4934,_0x340f07,_0x4db944,_0x5014c7,_0x5d2f16;let _0x8c10b3=[],_0x4f7682=((_0x4e8e4e=_0x5c960e[_0x22a635(0x3e0)])==null?void 0x0:_0x4e8e4e[_0x22a635(0x1c3)](_0x48fd62))??-0x1;_0x4f7682>=0x0&&_0x8c10b3[_0x22a635(0x2fe)](_0x2f9a7e[_0x22a635(0x275)]([...G[_0x22a635(0x213)](_0x1aedd6,_0x5c960e['id']),'fieldOrder',_0x4f7682],_0x48fd62));let _0x536641=(_0x3c6875=_0x5c960e[_0x22a635(0x285)])==null?void 0x0:_0x3c6875[_0x48fd62];_0x536641!==void 0x0&&_0x8c10b3['push'](_0x2f9a7e[_0x22a635(0x275)]([...G[_0x22a635(0x213)](_0x1aedd6,_0x5c960e['id']),_0x22a635(0x285),_0x48fd62],_0x536641));let _0x3704a2=_0x5c960e['filter']?{..._0x5c960e[_0x22a635(0x253)],'conditions':_0x5c960e[_0x22a635(0x253)][_0x22a635(0x148)]['filter'](_0x3f487e=>_0x3f487e[_0x22a635(0x32d)]!==_0x48fd62)}:_0x5c960e[_0x22a635(0x253)];_0x3704a2&&_0x3704a2['conditions'][_0x22a635(0x17a)]!==((_0x5a4934=_0x5c960e[_0x22a635(0x253)])==null?void 0x0:_0x5a4934[_0x22a635(0x148)]['length'])&&_0x8c10b3['push'](this['_replaceOptional']([...G[_0x22a635(0x213)](_0x1aedd6,_0x5c960e['id']),'filter'],_0x5c960e['filter'],_0x3704a2));let _0x4a0101=(_0x340f07=_0x5c960e[_0x22a635(0x172)])==null?void 0x0:_0x340f07[_0x22a635(0x253)](_0x59870c=>_0x59870c[_0x22a635(0x32d)]!==_0x48fd62);_0x4a0101&&_0x4a0101[_0x22a635(0x17a)]!==((_0x4db944=_0x5c960e[_0x22a635(0x172)])==null?void 0x0:_0x4db944[_0x22a635(0x17a)])&&_0x8c10b3['push'](this[_0x22a635(0x3dd)]([...G[_0x22a635(0x213)](_0x1aedd6,_0x5c960e['id']),_0x22a635(0x172)],_0x5c960e['sort'],_0x4a0101));let _0x28afdf=(_0x5014c7=_0x5c960e[_0x22a635(0x3f2)])==null?void 0x0:_0x5014c7[_0x22a635(0x253)](_0x29d5ed=>_0x29d5ed[_0x22a635(0x32d)]!==_0x48fd62);_0x28afdf&&_0x28afdf[_0x22a635(0x17a)]!==((_0x5d2f16=_0x5c960e[_0x22a635(0x3f2)])==null?void 0x0:_0x5d2f16[_0x22a635(0x17a)])&&_0x8c10b3[_0x22a635(0x2fe)](this[_0x22a635(0x3dd)]([...G[_0x22a635(0x213)](_0x1aedd6,_0x5c960e['id']),'group'],_0x5c960e['group'],_0x28afdf));let _0x648a1a=Hn(_0x5c960e[_0x22a635(0x346)],_0x48fd62);return JSON[_0x22a635(0x403)](_0x648a1a)!==JSON[_0x22a635(0x403)](_0x5c960e['config'])&&_0x8c10b3['push'](_0x2f9a7e['replaceOp']([...G[_0x22a635(0x213)](_0x1aedd6,_0x5c960e['id']),_0x22a635(0x346)],_0x5c960e[_0x22a635(0x346)],_0x648a1a)),_0x8c10b3;}),_0x28942c=Object[_0x540c64(0x255)](_0x56f322[_0x540c64(0x286)])[_0x540c64(0x330)](_0x386de2=>Object['prototype'][_0x540c64(0x363)][_0x540c64(0x35f)](_0x386de2['values'],_0x48fd62)?[_0x2f9a7e[_0x540c64(0x275)](G[_0x540c64(0x16f)](_0x1aedd6,_0x386de2['id'],_0x48fd62),_0x386de2[_0x540c64(0x255)][_0x48fd62])]:[]);return B([_0x2f9a7e[_0x540c64(0x275)](G[_0x540c64(0x2ee)](_0x1aedd6,_0x48fd62),_0x56f322[_0x540c64(0x29a)][_0x48fd62]),_0x2f9a7e[_0x540c64(0x275)](G[_0x540c64(0x3e0)](_0x1aedd6,_0x5469a8),_0x48fd62),..._0x220d73,..._0x28942c,...this[_0x540c64(0x379)](_0x56f322,_0x1aedd6,_0x1c67d0=>_0x1c67d0[_0x540c64(0x214)](_0x48fd62+'\x1f'))]);}[_0x58a750(0x18a)](_0x24eb23,_0xa41da8,_0x2c1c3d,_0x2daaab){const _0x1fa0ac=_0x58a750;let _0xbcec10=_0x24eb23[_0x1fa0ac(0x347)][_0xa41da8]['fieldOrder'];if(_0x2c1c3d===_0x1abc18||_0x2daaab[_0x1fa0ac(0x1f8)]===_0x1abc18)throw Error('[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');let _0x191e51=Bn(_0xbcec10,_0x2c1c3d,_0x2daaab);return _0x2f9a7e[_0x1fa0ac(0x3d0)]([_0x1fa0ac(0x347),_0xa41da8,_0x1fa0ac(0x3e0)],_0xbcec10,_0x191e51);}[_0x58a750(0x2c6)](_0x4e8965,_0x4beda4,_0xf17775,_0x45c1ef=_0x4e8965[_0x58a750(0x347)][_0x4beda4][_0x58a750(0x327)][_0x58a750(0x17a)]){const _0x4582ee=_0x58a750;return B([_0x2f9a7e[_0x4582ee(0xd5)](G[_0x4582ee(0x213)](_0x4beda4,_0xf17775['id']),_0xf17775),_0x2f9a7e['insertOp']([_0x4582ee(0x347),_0x4beda4,_0x4582ee(0x327),_0x45c1ef],_0xf17775['id'])]);}[_0x58a750(0x2de)](_0x1dadda,_0x4a7d9e,_0x40bed2,_0x41fd3e){const _0x4d9451=_0x58a750;return _0x2f9a7e[_0x4d9451(0x3d0)]([...G[_0x4d9451(0x213)](_0x4a7d9e,_0x40bed2),_0x4d9451(0x2fa)],_0x1dadda[_0x4d9451(0x347)][_0x4a7d9e][_0x4d9451(0x2c4)][_0x40bed2][_0x4d9451(0x2fa)],_0x41fd3e);}[_0x58a750(0x2ef)](_0x4de0ce,_0x396371,_0x56fd5f){const _0x587c3c=_0x58a750;let _0x4879bf=_0x4de0ce[_0x587c3c(0x347)][_0x396371],_0x2606dd=_0x4879bf[_0x587c3c(0x2c4)][_0x56fd5f],_0x1e7fec=_0x4879bf[_0x587c3c(0x327)]['indexOf'](_0x56fd5f);return B([_0x2f9a7e[_0x587c3c(0x275)](G['view'](_0x396371,_0x56fd5f),_0x2606dd),_0x2f9a7e[_0x587c3c(0x275)]([_0x587c3c(0x347),_0x396371,'viewOrder',_0x1e7fec],_0x56fd5f)]);}[_0x58a750(0x2b2)](_0x5659ab,_0xa0b905,_0x4e2cdb,_0x37c0a4){const _0x37b812=_0x58a750;let _0xb6cc9c=_0x5659ab[_0x37b812(0x347)][_0xa0b905][_0x37b812(0x327)],_0x585c2d=Bn(_0xb6cc9c,_0x4e2cdb,{'beforeFieldId':_0x37c0a4['beforeViewId'],'afterFieldId':_0x37c0a4[_0x37b812(0x274)]});return _0x2f9a7e[_0x37b812(0x3d0)]([_0x37b812(0x347),_0xa0b905,'viewOrder'],_0xb6cc9c,_0x585c2d);}[_0x58a750(0x157)](_0x81596b,_0x8d465a,_0x5983ca,_0x48056b){const _0x378f90=_0x58a750;let _0x434395=_0x81596b[_0x378f90(0x347)][_0x8d465a][_0x378f90(0x2c4)][_0x5983ca]['config']??{},_0x50567f={..._0x434395,..._0x48056b};return Object['keys'](_0x48056b)['forEach'](_0x3ad479=>{_0x48056b[_0x3ad479]===void 0x0&&delete _0x50567f[_0x3ad479];}),_0x2f9a7e[_0x378f90(0x3d0)]([...G[_0x378f90(0x213)](_0x8d465a,_0x5983ca),_0x378f90(0x346)],_0x434395,_0x50567f);}[_0x58a750(0x2ea)](_0x579c9f,_0x45e80f,_0x6b2119,_0x561dfd){const _0x55d091=_0x58a750;return this[_0x55d091(0x3dd)]([...G['view'](_0x45e80f,_0x6b2119),_0x55d091(0x253)],_0x579c9f[_0x55d091(0x347)][_0x45e80f][_0x55d091(0x2c4)][_0x6b2119][_0x55d091(0x253)],_0x561dfd);}['setViewSort'](_0x1af95f,_0x3568d3,_0x272a29,_0xe8edc){const _0xcb8fa1=_0x58a750;return this[_0xcb8fa1(0x3dd)]([...G[_0xcb8fa1(0x213)](_0x3568d3,_0x272a29),_0xcb8fa1(0x172)],_0x1af95f[_0xcb8fa1(0x347)][_0x3568d3][_0xcb8fa1(0x2c4)][_0x272a29]['sort'],_0xe8edc);}['setViewGroup'](_0x114839,_0x6d91e,_0x39d485,_0xadb83e){const _0x433329=_0x58a750;return this['_replaceOptional']([...G['view'](_0x6d91e,_0x39d485),_0x433329(0x3f2)],_0x114839[_0x433329(0x347)][_0x6d91e][_0x433329(0x2c4)][_0x39d485][_0x433329(0x3f2)],_0xadb83e);}[_0x58a750(0x335)](_0x4e83e4,_0x57bd67,_0x26eed7,_0x390e95,_0x466285){const _0x1b292d=_0x58a750;return this[_0x1b292d(0x318)](_0x4e83e4,_0x57bd67,_0x26eed7,_0x390e95,{'hidden':!_0x466285});}[_0x58a750(0x30d)](_0x2625a1,_0x5788eb,_0x1e4309,_0x543cb8,_0x292956){const _0x286b35=_0x58a750;return this[_0x286b35(0x318)](_0x2625a1,_0x5788eb,_0x1e4309,_0x543cb8,{'width':_0x292956});}[_0x58a750(0x2e6)](_0x16959d,_0x347ff9,_0x3b6725,_0x16d507,_0x57562d){const _0x1c58b3=_0x58a750;let _0x2f5cdd=_0x16959d['tables'][_0x347ff9]['views'][_0x3b6725],_0x4143e5=Bn(_0x2f5cdd['fieldOrder']??_0x16959d[_0x1c58b3(0x347)][_0x347ff9][_0x1c58b3(0x3e0)],_0x16d507,_0x57562d);return this['_replaceOptional']([...G[_0x1c58b3(0x213)](_0x347ff9,_0x3b6725),_0x1c58b3(0x3e0)],_0x2f5cdd[_0x1c58b3(0x3e0)],_0x4143e5);}[_0x58a750(0x318)](_0x210acf,_0x46573a,_0x5d1a03,_0x455536,_0x33b57b){const _0x515435=_0x58a750;let _0x2e4271=_0x210acf['tables'][_0x46573a][_0x515435(0x2c4)][_0x5d1a03]['fieldSettings']??{},_0x28771a={..._0x2e4271,[_0x455536]:{..._0x2e4271[_0x455536],..._0x33b57b}};return this[_0x515435(0x3dd)]([...G[_0x515435(0x213)](_0x46573a,_0x5d1a03),'fieldSettings'],_0x210acf[_0x515435(0x347)][_0x46573a][_0x515435(0x2c4)][_0x5d1a03][_0x515435(0x285)],_0x28771a);}['_createRecordOrderOp'](_0x5092e2,_0x56e11d,_0x3412a8){const _0x517d95=_0x58a750;let _0x269b6c=_0x5092e2['tables'][_0x56e11d],_0x602ad4=new Set(_0x3412a8[_0x517d95(0x36b)](_0x41f1a1=>_0x41f1a1['id'])),_0x18746f=[...Object[_0x517d95(0x255)](_0x269b6c[_0x517d95(0x286)])['filter'](_0x87f63d=>!_0x602ad4['has'](_0x87f63d['id'])),..._0x3412a8][_0x517d95(0x172)]((_0x4c0051,_0x34715d)=>String(_0x4c0051[_0x517d95(0x368)]??_0x4c0051['id'])[_0x517d95(0x291)](String(_0x34715d[_0x517d95(0x368)]??_0x34715d['id'])))[_0x517d95(0x36b)](_0x72aac8=>_0x72aac8['id']),_0x440790=[...G[_0x517d95(0x400)](_0x56e11d),_0x517d95(0x22a)];return _0x269b6c[_0x517d95(0x22a)]?_0x2f9a7e[_0x517d95(0x3d0)](_0x440790,_0x269b6c['recordOrder'],_0x18746f):_0x2f9a7e[_0x517d95(0xd5)](_0x440790,_0x18746f);}[_0x58a750(0x1d7)](_0x3e42c5,_0x4bf825=new Set()){const _0x10b931=_0x58a750;let _0x4b82cf=_0x318b91(_0x3e42c5);return Object[_0x10b931(0x255)](_0x3e42c5[_0x10b931(0x347)])[_0x10b931(0x253)](_0x3d5de4=>!_0x4bf825[_0x10b931(0x192)](_0x3d5de4['id']))['sort']((_0x5840df,_0x34fb27)=>_0x5840df['id'][_0x10b931(0x291)](_0x34fb27['id']))[_0x10b931(0x330)](_0x2754c6=>{const _0x5d5684=_0x10b931;let _0x8591ab=_0x4b82cf[_0x5d5684(0x1ce)](_0x2754c6['id']);return!_0x8591ab||_0x2754c6[_0x5d5684(0x2c7)]===_0x8591ab?[]:[this['_replaceOptional']([...G['table'](_0x2754c6['id']),_0x5d5684(0x2c7)],_0x2754c6[_0x5d5684(0x2c7)],_0x8591ab)];});}[_0x58a750(0x10d)](_0x2f8359,_0x5181fa,_0x4e7db9,_0x4a6e4c){const _0x41799c=_0x58a750;var _0x233e33,_0x43addc;let _0x2ba56c=z(_0x2f8359[_0x41799c(0x347)][_0x5181fa]),_0x2185cd=String(((_0x233e33=_0x4a6e4c[_0x41799c(0x346)])==null?void 0x0:_0x233e33['formula'])??'')[_0x41799c(0x3b2)](),_0x171b3f=(_0x43addc=_0x2ba56c['colIndex'])==null?void 0x0:_0x43addc[_0x4e7db9];if(_0x171b3f==null)return[];let _0x26a292=_0x2ba56c[_0x41799c(0x22a)]??Object[_0x41799c(0x29c)](_0x2ba56c[_0x41799c(0x286)]),_0xb8e2fa=_0x26a292[_0x41799c(0x36b)](_0x3bac80=>{const _0xebc421=_0x41799c;var _0x14978b;return(_0x14978b=_0x2ba56c[_0xebc421(0x1b6)])==null?void 0x0:_0x14978b[_0x3bac80];})['find'](_0x5a8ead=>_0x5a8ead!=null);return _0x26a292[_0x41799c(0x330)](_0x2d8267=>{const _0x4a9579=_0x41799c;var _0x10e2f5,_0x39384d;let _0x5e9bbe=(_0x10e2f5=_0x2ba56c[_0x4a9579(0x1b6)])==null?void 0x0:_0x10e2f5[_0x2d8267];if(_0x5e9bbe==null)return[];let _0x232947=(_0x39384d=_0x2ba56c['cellData'])==null||(_0x39384d=_0x39384d[_0x5e9bbe])==null?void 0x0:_0x39384d[_0x171b3f],_0xbac8d9=_0x2185cd?_0x5e9bbe===_0xb8e2fa?{'f':_0x2185cd,'si':_0x4e7db9}:{'si':_0x4e7db9}:{'v':null,'t':null};return[this[_0x4a9579(0x3dd)](G[_0x4a9579(0xd8)](_0x5181fa,_0x5e9bbe,_0x171b3f),_0x232947,_0xbac8d9)];});}[_0x58a750(0x228)](_0x464ddb,_0x33ad92,_0x15287f,_0x37ed34,_0x1a63e1){const _0x2ba181=_0x58a750;var _0xdd7896;let _0x3e693c=ft(_0x37ed34,_0x15287f),_0x777f82=_0x1a63e1[_0x2ba181(0x36b)]((_0x31f3e4,_0x403b0f)=>String(_0x31f3e4['id']??_0x3e693c+'\x1f'+_0x403b0f));return[this[_0x2ba181(0x3dd)](G[_0x2ba181(0x407)](_0x33ad92,_0x3e693c),(_0xdd7896=_0x464ddb[_0x2ba181(0xfa)])==null||(_0xdd7896=_0xdd7896[_0x2ba181(0x31a)])==null?void 0x0:_0xdd7896[_0x3e693c],_0x777f82),..._0x1a63e1[_0x2ba181(0x36b)]((_0x23840c,_0x2bd975)=>{const _0x210b1f=_0x2ba181;var _0x169eef;let _0x43644e=_0x777f82[_0x2bd975];return this[_0x210b1f(0x3dd)](G[_0x210b1f(0x2fc)](_0x33ad92,_0x43644e),(_0x169eef=_0x464ddb[_0x210b1f(0xfa)])==null||(_0x169eef=_0x169eef[_0x210b1f(0x21b)])==null?void 0x0:_0x169eef[_0x43644e],{..._0x23840c,'id':_0x43644e});})];}[_0x58a750(0x379)](_0x40e6a1,_0x23f24f,_0x5d3ad7){const _0xc41b94=_0x58a750;var _0x18c730;let _0x1f67bc=((_0x18c730=_0x40e6a1[_0xc41b94(0xfa)])==null?void 0x0:_0x18c730['attachmentSets'])??{},_0x4d8fdb=Object[_0xc41b94(0x23c)](_0x1f67bc)[_0xc41b94(0x253)](([_0x1fdb98])=>_0x5d3ad7(_0x1fdb98));if(!_0x4d8fdb[_0xc41b94(0x17a)])return[];let _0x41759a=new Set(Object[_0xc41b94(0x23c)](_0x1f67bc)[_0xc41b94(0x253)](([_0x180c36])=>!_0x5d3ad7(_0x180c36))[_0xc41b94(0x330)](([,_0x2f5f29])=>_0x2f5f29)),_0x28a092=new Set(_0x4d8fdb[_0xc41b94(0x330)](([,_0x3977b9])=>_0x3977b9));return[..._0x4d8fdb[_0xc41b94(0x36b)](([_0xe93661,_0x4c22ef])=>_0x2f9a7e[_0xc41b94(0x275)](G[_0xc41b94(0x407)](_0x23f24f,_0xe93661),_0x4c22ef)),...Array[_0xc41b94(0x247)](_0x28a092)[_0xc41b94(0x330)](_0x217127=>{const _0x382174=_0xc41b94;var _0x8ef1c9;let _0x2708ad=(_0x8ef1c9=_0x40e6a1['resources'])==null||(_0x8ef1c9=_0x8ef1c9['attachments'])==null?void 0x0:_0x8ef1c9[_0x217127];return _0x2708ad!==void 0x0&&!_0x41759a['has'](_0x217127)?[_0x2f9a7e[_0x382174(0x275)](G[_0x382174(0x2fc)](_0x23f24f,_0x217127),_0x2708ad)]:[];})];}[_0x58a750(0x3dd)](_0x353a8b,_0x5e4355,_0x25766c){const _0x151e37=_0x58a750;return _0x5e4355===void 0x0?_0x2f9a7e[_0x151e37(0xd5)](_0x353a8b,_0x25766c):_0x2f9a7e[_0x151e37(0x3d0)](_0x353a8b,_0x5e4355,_0x25766c);}};function Rn(_0x2d7caf,_0x362de4,_0x522ce6){const _0x59c96d=_0x58a750;var _0x2c174b,_0x1a5c6c,_0x40b066,_0x4d680d;let _0x231a5e=(_0x2c174b=_0x2d7caf[_0x59c96d(0x1b6)])==null?void 0x0:_0x2c174b[_0x362de4],_0x54192a=(_0x1a5c6c=_0x2d7caf['colIndex'])==null?void 0x0:_0x1a5c6c[_0x522ce6];return _0x231a5e!=null&&_0x54192a!=null&&((_0x40b066=_0x2d7caf['rowId'])==null?void 0x0:_0x40b066[_0x231a5e])===_0x362de4&&((_0x4d680d=_0x2d7caf['colId'])==null?void 0x0:_0x4d680d[_0x54192a])===_0x522ce6&&_0x2d7caf[_0x59c96d(0xd8)]!=null;}function zn(_0x1fdc7e,_0x2fa762,_0x161301){const _0x576e8f=_0x58a750;var _0x4c4356,_0x5351bf;return((_0x4c4356=_0x1fdc7e[_0x576e8f(0x2c1)])==null?void 0x0:_0x4c4356[_0x2fa762])!=null&&((_0x5351bf=_0x1fdc7e[_0x576e8f(0x28b)])==null?void 0x0:_0x5351bf[_0x161301])!=null&&_0x1fdc7e[_0x576e8f(0xd8)]!=null;}function Bn(_0x4fa593,_0x545e9c,_0x2903d1){const _0x79d532=_0x58a750;let _0x1e00fe=_0x4fa593[_0x79d532(0x253)](_0x2599e6=>_0x2599e6!==_0x545e9c),_0x4e6899=_0x2903d1['beforeFieldId']?_0x1e00fe[_0x79d532(0x1c3)](_0x2903d1[_0x79d532(0x1f8)]):_0x2903d1['afterFieldId']?_0x1e00fe[_0x79d532(0x1c3)](_0x2903d1[_0x79d532(0x1ab)])+0x1:_0x1e00fe['length'];return _0x1e00fe[_0x79d532(0x15f)](_0x4e6899<0x0?_0x1e00fe[_0x79d532(0x17a)]:_0x4e6899,0x0,_0x545e9c),_0x1e00fe;}function Vn(_0x4523d5,_0x23d59a,_0xdb0c07){const _0x1c5cde=_0x58a750;let _0x21c641=_0x4523d5[_0x1c5cde(0x253)](_0x342bb9=>_0x342bb9!==_0x23d59a);return _0x21c641[_0x1c5cde(0x15f)](Un(_0xdb0c07,_0x21c641[_0x1c5cde(0x17a)]),0x0,_0x23d59a),_0x21c641;}function Hn(_0x3aca8c,_0x2de6ba,_0x57bc56){const _0x53d46c=_0x58a750;if(Array['isArray'](_0x3aca8c))return _0x57bc56===_0x53d46c(0x1e9)?_0x3aca8c[_0x53d46c(0x253)](_0x20df64=>_0x20df64!==_0x2de6ba):_0x3aca8c[_0x53d46c(0x330)](_0x129709=>{const _0x1be25b=_0x53d46c;if(_0x129709&&typeof _0x129709=='object'&&!Array['isArray'](_0x129709)&&_0x129709[_0x1be25b(0x32d)]===_0x2de6ba)return[];let _0x405576=Hn(_0x129709,_0x2de6ba);return _0x405576===void 0x0?[]:[_0x405576];});if(!_0x3aca8c||typeof _0x3aca8c!=_0x53d46c(0x133))return _0x57bc56!=null&&_0x57bc56[_0x53d46c(0x23f)]('FieldId')&&_0x3aca8c===_0x2de6ba?void 0x0:_0x3aca8c;let _0x490b5c=_0x3aca8c;if(_0x490b5c[_0x53d46c(0x32d)]!==_0x2de6ba)return Object[_0x53d46c(0x241)](Object[_0x53d46c(0x23c)](_0x490b5c)[_0x53d46c(0x330)](([_0x29e9e2,_0x4b2ac2])=>{const _0x1990c8=_0x53d46c;if(_0x29e9e2===_0x2de6ba&&_0x57bc56===_0x1990c8(0x285))return[];let _0x318735=Hn(_0x4b2ac2,_0x2de6ba,_0x29e9e2);return _0x318735===void 0x0?[]:[[_0x29e9e2,_0x318735]];}));}function Un(_0x3428de,_0x2d676c){const _0x448ddd=_0x58a750;return Math[_0x448ddd(0x194)](0x0,Math['min'](_0x3428de,_0x2d676c));}function Wn(_0x4e24de){'@babel/helpers - typeof';const _0x3672bb=_0x58a750;return Wn=typeof Symbol=='function'&&typeof Symbol[_0x3672bb(0x358)]==_0x3672bb(0x311)?function(_0xd6f62){return typeof _0xd6f62;}:function(_0x33cc4c){const _0x31d342=_0x3672bb;return _0x33cc4c&&typeof Symbol=='function'&&_0x33cc4c['constructor']===Symbol&&_0x33cc4c!==Symbol[_0x31d342(0x352)]?_0x31d342(0x311):typeof _0x33cc4c;},Wn(_0x4e24de);}function Gn(_0x4bf222,_0x2b24ac){const _0x21e91d=_0x58a750;if(Wn(_0x4bf222)!=_0x21e91d(0x133)||!_0x4bf222)return _0x4bf222;var _0x1623fc=_0x4bf222[Symbol[_0x21e91d(0x206)]];if(_0x1623fc!==void 0x0){var _0x34d8bd=_0x1623fc[_0x21e91d(0x35f)](_0x4bf222,_0x2b24ac||_0x21e91d(0x423));if(Wn(_0x34d8bd)!=_0x21e91d(0x133))return _0x34d8bd;throw TypeError(_0x21e91d(0x3c2));}return(_0x2b24ac===_0x21e91d(0x223)?String:Number)(_0x4bf222);}function Kn(_0x35bb84){const _0x3bdb20=_0x58a750;var _0x1d641c=Gn(_0x35bb84,_0x3bdb20(0x223));return Wn(_0x1d641c)==_0x3bdb20(0x311)?_0x1d641c:_0x1d641c+'';}function q(_0x465405,_0x398175,_0x4ad14e){const _0x32b4fb=_0x58a750;return(_0x398175=Kn(_0x398175))in _0x465405?Object[_0x32b4fb(0x1c4)](_0x465405,_0x398175,{'value':_0x4ad14e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x465405[_0x398175]=_0x4ad14e,_0x465405;}const qn=_0x35316f(_0x58a750(0x11f));var Jn=class extends _0xba4bb0{constructor(..._0x4a1c3f){const _0x34217f=_0x58a750;super(..._0x4a1c3f),q(this,_0x34217f(0x22c),new Map());}[_0x58a750(0x38c)](_0x446ed5){const _0x2a744c=_0x58a750;return this[_0x2a744c(0x22c)][_0x2a744c(0x191)](_0x446ed5['type'],_0x446ed5),_0x1b8d04(()=>this['_plugins']['delete'](_0x446ed5[_0x2a744c(0x18d)]));}[_0x58a750(0x1ce)](_0xcc2003){const _0x55c156=_0x58a750;let _0x15c472=this[_0x55c156(0x22c)]['get'](_0xcc2003);if(!_0x15c472)throw Error('[BaseFieldRegistryService]:\x20field\x20type\x20\x22'+_0xcc2003+_0x55c156(0x34d));return _0x15c472;}[_0x58a750(0x1a2)](_0x59a93d){const _0x5eed09=_0x58a750;return this[_0x5eed09(0x22c)][_0x5eed09(0x1ce)](_0x59a93d);}[_0x58a750(0x238)](){const _0x2e9967=_0x58a750;return Array[_0x2e9967(0x247)](this['_plugins']['values']());}};const Yn=_0x35316f(_0x58a750(0x3d5));var Xn=class{constructor(){const _0x21de05=_0x58a750;q(this,_0x21de05(0x415),new Map()),q(this,'_tablePermissions',new Map()),q(this,_0x21de05(0x322),new Map()),q(this,_0x21de05(0x31f),new Map());}['canCreateTable'](_0x2dccaf){const _0xa9e5be=_0x58a750;var _0x4db49c;return((_0x4db49c=this[_0xa9e5be(0x415)][_0xa9e5be(0x1ce)](_0x2dccaf))==null?void 0x0:_0x4db49c['createTable'])??!0x0;}[_0x58a750(0x257)](_0x440020){const _0x3f77c9=_0x58a750;var _0x707ac7;return((_0x707ac7=this[_0x3f77c9(0x126)][_0x3f77c9(0x1ce)](_0x440020))==null?void 0x0:_0x707ac7[_0x3f77c9(0x21f)])??!0x0;}['canCreateField'](_0x41fc95){const _0x5a4bdd=_0x58a750;var _0x309740;return((_0x309740=this[_0x5a4bdd(0x126)]['get'](_0x41fc95))==null?void 0x0:_0x309740['createField'])??!0x0;}[_0x58a750(0xf5)](_0xd6dd32,_0x5d74c1){const _0x1e4cae=_0x58a750;var _0x53ca93;return((_0x53ca93=this[_0x1e4cae(0x322)][_0x1e4cae(0x1ce)](Zn(_0xd6dd32,_0x5d74c1)))==null?void 0x0:_0x53ca93[_0x1e4cae(0x307)])??!0x0;}['canDeleteField'](_0x8a3086,_0x4b5d4e){const _0x279c06=_0x58a750;var _0x1331cc;return((_0x1331cc=this[_0x279c06(0x322)][_0x279c06(0x1ce)](Zn(_0x8a3086,_0x4b5d4e)))==null?void 0x0:_0x1331cc[_0x279c06(0x21f)])??!0x0;}[_0x58a750(0x332)](_0x2756aa){const _0x31d0de=_0x58a750;var _0x4ec4ef;return((_0x4ec4ef=this['_tablePermissions'][_0x31d0de(0x1ce)](_0x2756aa))==null?void 0x0:_0x4ec4ef[_0x31d0de(0x208)])??!0x0;}['canDeleteRecord'](_0x38b1bf,_0x47f594){const _0x3cd400=_0x58a750;var _0x28442f;return((_0x28442f=this[_0x3cd400(0x31f)][_0x3cd400(0x1ce)](Qn(_0x38b1bf,_0x47f594)))==null?void 0x0:_0x28442f[_0x3cd400(0x21f)])??!0x0;}[_0x58a750(0x1cc)](_0x6875b0,_0x1b605f,_0x93719e){const _0x5b2dd3=_0x58a750;var _0x1e0581;let _0x40c22a=this[_0x5b2dd3(0x322)]['get'](Zn(_0x6875b0,_0x93719e));return(((_0x1e0581=this[_0x5b2dd3(0x31f)][_0x5b2dd3(0x1ce)](Qn(_0x6875b0,_0x1b605f)))==null?void 0x0:_0x1e0581['editCell'])??!0x0)&&((_0x40c22a==null?void 0x0:_0x40c22a[_0x5b2dd3(0x307)])??!0x0)&&((_0x40c22a==null?void 0x0:_0x40c22a['editCell'])??!0x0);}[_0x58a750(0x3c6)](_0x2285a4){const _0x4d244f=_0x58a750;var _0x5d09e8;return((_0x5d09e8=this[_0x4d244f(0x126)][_0x4d244f(0x1ce)](_0x2285a4))==null?void 0x0:_0x5d09e8['manageView'])??!0x0;}['setBasePermission'](_0x425408,_0x5347f6){const _0x170190=_0x58a750;this['_basePermissions']['set'](_0x425408,{...this[_0x170190(0x415)][_0x170190(0x1ce)](_0x425408),..._0x5347f6});}[_0x58a750(0x328)](_0x2b4a3c,_0x95d3ed){const _0x887d0d=_0x58a750;this['_tablePermissions'][_0x887d0d(0x191)](_0x2b4a3c,{...this[_0x887d0d(0x126)]['get'](_0x2b4a3c),..._0x95d3ed});}['setFieldPermission'](_0x5e30a2,_0x1579de,_0x5558f6){const _0x2f215b=_0x58a750;let _0x48b9c8=Zn(_0x5e30a2,_0x1579de);this['_fieldPermissions'][_0x2f215b(0x191)](_0x48b9c8,{...this[_0x2f215b(0x322)][_0x2f215b(0x1ce)](_0x48b9c8),..._0x5558f6});}[_0x58a750(0x15e)](_0x25202f,_0x4ac9fd,_0x119046){const _0x1a3f29=_0x58a750;let _0x192938=Qn(_0x25202f,_0x4ac9fd);this[_0x1a3f29(0x31f)][_0x1a3f29(0x191)](_0x192938,{...this['_recordPermissions'][_0x1a3f29(0x1ce)](_0x192938),..._0x119046});}[_0x58a750(0x283)](_0x5ef226){const _0x5eb0ed=_0x58a750;this[_0x5eb0ed(0x415)][_0x5eb0ed(0x21f)](_0x5ef226);}[_0x58a750(0x183)](_0x294bd0){const _0x9c487d=_0x58a750;this[_0x9c487d(0x126)][_0x9c487d(0x21f)](_0x294bd0);}[_0x58a750(0x2d4)](_0x17d68b,_0xe39d8c){const _0xafb9cc=_0x58a750;this[_0xafb9cc(0x322)][_0xafb9cc(0x21f)](Zn(_0x17d68b,_0xe39d8c));}[_0x58a750(0x104)](_0x9f9315,_0x508130){const _0xdb0883=_0x58a750;this['_recordPermissions'][_0xdb0883(0x21f)](Qn(_0x9f9315,_0x508130));}[_0x58a750(0x26f)](){const _0x2e0464=_0x58a750;return{'bases':Object[_0x2e0464(0x241)](this[_0x2e0464(0x415)]),'tables':Object['fromEntries'](this[_0x2e0464(0x126)]),'fields':Object['fromEntries'](this[_0x2e0464(0x322)]),'records':Object[_0x2e0464(0x241)](this[_0x2e0464(0x31f)])};}};function Zn(_0x1b7bfc,_0x314391){return _0x1b7bfc+'\x1f'+_0x314391;}function Qn(_0xec441e,_0x3524ee){return _0xec441e+'\x1f'+_0x3524ee;}function J(_0x5723a6,_0x3f6672){return function(_0x5dcd4d,_0x459851){_0x3f6672(_0x5dcd4d,_0x459851,_0x5723a6);};}function $n(_0x4fb8a9,_0x2a1e64,_0x28bca6,_0x355a73){const _0x5156e3=_0x58a750;var _0x158394=arguments['length'],_0x14b867=_0x158394<0x3?_0x2a1e64:_0x355a73===null?_0x355a73=Object['getOwnPropertyDescriptor'](_0x2a1e64,_0x28bca6):_0x355a73,_0x4e1f37;if(typeof Reflect==_0x5156e3(0x133)&&typeof Reflect['decorate']==_0x5156e3(0x25c))_0x14b867=Reflect[_0x5156e3(0x34a)](_0x4fb8a9,_0x2a1e64,_0x28bca6,_0x355a73);else{for(var _0x3a065f=_0x4fb8a9[_0x5156e3(0x17a)]-0x1;_0x3a065f>=0x0;_0x3a065f--)(_0x4e1f37=_0x4fb8a9[_0x3a065f])&&(_0x14b867=(_0x158394<0x3?_0x4e1f37(_0x14b867):_0x158394>0x3?_0x4e1f37(_0x2a1e64,_0x28bca6,_0x14b867):_0x4e1f37(_0x2a1e64,_0x28bca6))||_0x14b867);}return _0x158394>0x3&&_0x14b867&&Object[_0x5156e3(0x1c4)](_0x2a1e64,_0x28bca6,_0x14b867),_0x14b867;}const Y=_0x35316f('base.command.service');let er=class{constructor(_0x190efc,_0x199963=tr(),_0x2c02d8={}){const _0x341c61=_0x58a750;this[_0x341c61(0x2c2)]=_0x190efc,this['_fieldRegistry']=_0x199963,this[_0x341c61(0xda)]=_0x2c02d8,q(this,_0x341c61(0x418),new K()),q(this,_0x341c61(0x34f),new V());}[_0x58a750(0x359)](_0x416ccb,_0x43b06a,_0xa13130){const _0x76335f=_0x58a750;if(!this[_0x76335f(0x2c2)][_0x76335f(0x252)](_0x416ccb[_0x76335f(0x267)]()))throw Error(_0x76335f(0x146));_0x130471(_0x43b06a),this[_0x76335f(0xf7)](_0x416ccb,this[_0x76335f(0x418)][_0x76335f(0x359)](_0x416ccb[_0x76335f(0x26f)](),_0x43b06a,_0xa13130));}[_0x58a750(0x2ae)](_0x3e7d9e,_0x122371,_0x169d79){const _0x4222a0=_0x58a750;this['_apply'](_0x3e7d9e,this[_0x4222a0(0x418)][_0x4222a0(0x2ae)](_0x3e7d9e['getSnapshot'](),_0x122371,_0x169d79));}[_0x58a750(0x284)](_0x12855e,_0x1c751){const _0x11e7cc=_0x58a750;if(!this['_permissionService']['canDeleteTable'](_0x1c751))throw Error(_0x11e7cc(0x2b6));let _0x161125=Ae(_0x12855e[_0x11e7cc(0x26f)](),_0x1c751);if(_0x161125[_0x11e7cc(0x17a)]>0x0)throw Error(_0x11e7cc(0x3f4)+_0x161125[_0x11e7cc(0x36b)](_0x2cd9f9=>_0x2cd9f9[_0x11e7cc(0x3cb)]+'.'+_0x2cd9f9[_0x11e7cc(0x32d)])[_0x11e7cc(0x20b)](',\x20')+').');this[_0x11e7cc(0xf7)](_0x12855e,this['_factory']['deleteTable'](_0x12855e[_0x11e7cc(0x26f)](),_0x1c751));}[_0x58a750(0xf2)](_0x3be9d8,_0x4a96d8,_0x2c8eea,_0x532c0c,_0x438e9c){const _0x478e79=_0x58a750;this[_0x478e79(0xf7)](_0x3be9d8,this['createUpdateCellOp'](_0x3be9d8,_0x4a96d8,_0x2c8eea,_0x532c0c,_0x438e9c));}[_0x58a750(0x261)](_0x4cb37d,_0x5b1787,_0x5001c4){const _0x288596=_0x58a750;this[_0x288596(0xf7)](_0x4cb37d,this[_0x288596(0x376)](_0x4cb37d,_0x5b1787,_0x5001c4));}['createRecord'](_0x45c1ff,_0x19036b,_0x5865a2){const _0x138f20=_0x58a750;this[_0x138f20(0xf7)](_0x45c1ff,this[_0x138f20(0x218)](_0x45c1ff,_0x19036b,_0x5865a2));}[_0x58a750(0x23d)](_0x7fc77b,_0x296fa3,_0x71c250,_0x4db858,_0x465bd8){const _0x42a493=_0x58a750;let _0x14eb32=_0x7fc77b[_0x42a493(0x26f)](),_0x20ff37=this[_0x42a493(0x396)](_0x14eb32,_0x296fa3,_0x71c250,_0x4db858,_0x465bd8),_0x4dc47c=this[_0x42a493(0x402)](_0x14eb32,_0x296fa3,_0x71c250,{[_0x4db858]:_0x20ff37});return this[_0x42a493(0x418)]['setRecordValues'](_0x14eb32,_0x296fa3,[_0x4dc47c]);}[_0x58a750(0x376)](_0x1d7f2,_0x4a2eed,_0x9023c3){const _0x23007d=_0x58a750;let _0x135366=_0x1d7f2['getSnapshot'](),_0x51969c=_0x9023c3['map'](_0x13e26c=>this[_0x23007d(0x402)](_0x135366,_0x4a2eed,_0x13e26c[_0x23007d(0x378)],{...Object['fromEntries'](Object[_0x23007d(0x23c)](_0x13e26c[_0x23007d(0x255)])[_0x23007d(0x36b)](([_0x329ecb,_0x55e347])=>[_0x329ecb,this[_0x23007d(0x396)](_0x135366,_0x4a2eed,_0x13e26c[_0x23007d(0x378)],_0x329ecb,_0x55e347)]))}));return this[_0x23007d(0x418)][_0x23007d(0x261)](_0x135366,_0x4a2eed,_0x51969c);}[_0x58a750(0x218)](_0x4b2903,_0x10446d,_0x5c3b63){const _0x422cc0=_0x58a750;if(!this[_0x422cc0(0x2c2)][_0x422cc0(0x332)](_0x10446d))throw Error(_0x422cc0(0x132));let _0x4f1456=_0x4b2903[_0x422cc0(0x26f)](),_0x584d2b=this[_0x422cc0(0x2bc)](_0x4f1456['tables'][_0x10446d]);return this[_0x422cc0(0x418)][_0x422cc0(0x208)](_0x4f1456,_0x10446d,this[_0x422cc0(0xf4)](_0x4f1456,_0x10446d,_0x5c3b63,_0x584d2b));}[_0x58a750(0x351)](_0x28e5b2,_0x596f1a,_0x57a935){const _0x3fc2fc=_0x58a750;if(!this[_0x3fc2fc(0x2c2)][_0x3fc2fc(0x332)](_0x596f1a))throw Error(_0x3fc2fc(0x132));let _0x17aa78=_0x28e5b2[_0x3fc2fc(0x26f)]();return R(_0x3fc2fc(0x2e7),()=>{const _0x196ba6=_0x3fc2fc;let _0x5cfbe0=this[_0x196ba6(0x2bc)](_0x17aa78[_0x196ba6(0x347)][_0x596f1a]);return this[_0x196ba6(0x418)][_0x196ba6(0x282)](_0x17aa78,_0x596f1a,_0x57a935['map'](_0x10e436=>this['_createRecordWithDefaults'](_0x17aa78,_0x596f1a,_0x10e436,_0x5cfbe0)));},{'existingRecords':Object[_0x3fc2fc(0x29c)](_0x17aa78['tables'][_0x596f1a]['records'])[_0x3fc2fc(0x17a)],'records':_0x57a935[_0x3fc2fc(0x17a)]});}['createCreateFieldOp'](_0x350370,_0x4a1b43,_0x4a4fcc,_0x479010,_0x41f13a){const _0x123358=_0x58a750;if(!this[_0x123358(0x2c2)][_0x123358(0x262)](_0x4a1b43))throw Error(_0x123358(0x139));let _0xe86e0f=_0x350370[_0x123358(0x26f)]();if(this[_0x123358(0x355)](_0xe86e0f,_0x4a4fcc),_0x479010===0x0)throw Error('[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.');let _0x350fd1=this[_0x123358(0x418)][_0x123358(0xe6)](_0xe86e0f,_0x4a1b43,{'field':_0x4a4fcc,'index':_0x479010,'viewIndexes':_0x41f13a}),_0x25f1f1=this[_0x123358(0x30b)](_0xe86e0f,_0x4a1b43,_0x4a4fcc);if(!_0x25f1f1[_0x123358(0x17a)])return _0x350fd1;let _0x1a68de=this[_0x123358(0x34f)][_0x123358(0x297)](_0xe86e0f,_0x350fd1);return B([_0x350fd1,this[_0x123358(0x418)][_0x123358(0x261)](_0x1a68de,_0x4a1b43,_0x25f1f1)]);}[_0x58a750(0x1cd)](_0x2d8145,_0x5dfa29,_0xf7161e){const _0x393c65=_0x58a750;if(!this['_permissionService']['canDeleteRecord'](_0x5dfa29,_0xf7161e))throw Error(_0x393c65(0x424));this[_0x393c65(0xf7)](_0x2d8145,this[_0x393c65(0x418)]['deleteRecord'](_0x2d8145[_0x393c65(0x26f)](),_0x5dfa29,_0xf7161e));}[_0x58a750(0x3a1)](_0x274462,_0x5614ea,_0x1c42a9,_0x14a670){const _0x4235dd=_0x58a750;this[_0x4235dd(0xf7)](_0x274462,this[_0x4235dd(0x418)]['duplicateRecord'](_0x274462[_0x4235dd(0x26f)](),_0x5614ea,_0x1c42a9,{..._0x14a670,'values':{..._0x14a670['values'],[_0x1abc18]:_0x14a670['id']}}));}[_0x58a750(0x260)](_0x43374e,_0x2ce9e8,_0x5b3879,_0x380eec){const _0x24a87c=_0x58a750;this[_0x24a87c(0xf7)](_0x43374e,this[_0x24a87c(0x418)][_0x24a87c(0x260)](_0x43374e[_0x24a87c(0x26f)](),_0x2ce9e8,_0x5b3879,_0x380eec));}[_0x58a750(0xe6)](_0x732c51,_0x7bdb66,_0x165457,_0x25d2dc,_0x3ce633){const _0x50c6a3=_0x58a750;this['_apply'](_0x732c51,this[_0x50c6a3(0xe9)](_0x732c51,_0x7bdb66,_0x165457,_0x25d2dc,_0x3ce633));}[_0x58a750(0x1f2)](_0x10f7e3,_0x1c5e8d,_0x1a279d,_0x108408){const _0x1a7274=_0x58a750;var _0x241c12;if(!this[_0x1a7274(0x2c2)][_0x1a7274(0xf5)](_0x1c5e8d,_0x1a279d))throw Error(_0x1a7274(0x198));let _0x51dc65=_0x10f7e3[_0x1a7274(0x26f)](),_0x4de37b=(_0x241c12=_0x51dc65[_0x1a7274(0x347)][_0x1c5e8d])==null?void 0x0:_0x241c12[_0x1a7274(0x29a)][_0x1a279d];if(!_0x4de37b||_0x1a279d===_0x1abc18)throw Error(_0x1a7274(0x1a3));this['_assertFieldDefinition'](_0x51dc65,{..._0x4de37b,..._0x108408}),this[_0x1a7274(0xf7)](_0x10f7e3,this[_0x1a7274(0x418)][_0x1a7274(0x1f2)](_0x51dc65,_0x1c5e8d,_0x1a279d,_0x108408));}[_0x58a750(0x239)](_0x272772,_0x42b2cf,_0x3c381c,_0x12fc1a){const _0x4e5f68=_0x58a750;var _0x4e32bc;if(!this[_0x4e5f68(0x2c2)][_0x4e5f68(0xf5)](_0x42b2cf,_0x3c381c))throw Error(_0x4e5f68(0x198));let _0x596cb1=_0x272772[_0x4e5f68(0x26f)](),_0x4b0b21=(_0x4e32bc=_0x596cb1[_0x4e5f68(0x347)][_0x42b2cf])==null?void 0x0:_0x4e32bc[_0x4e5f68(0x29a)][_0x3c381c];if(!_0x4b0b21||_0x3c381c===_0x1abc18)throw Error(_0x4e5f68(0x2e5));this['_assertFieldDefinition'](_0x596cb1,{..._0x4b0b21,..._0x12fc1a}),this[_0x4e5f68(0xf7)](_0x272772,this[_0x4e5f68(0x418)][_0x4e5f68(0x239)](_0x596cb1,_0x42b2cf,_0x3c381c,_0x12fc1a));}[_0x58a750(0x186)](_0xab0d4a,_0x4a3c9a,_0x21e207){const _0x400056=_0x58a750;var _0x186266;if(((_0x186266=_0xab0d4a['getSnapshot']()[_0x400056(0x347)][_0x4a3c9a])==null?void 0x0:_0x186266['primaryFieldId'])===_0x21e207||_0x21e207===_0x1abc18)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this[_0x400056(0x2c2)]['canDeleteField'](_0x4a3c9a,_0x21e207))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this[_0x400056(0xf7)](_0xab0d4a,this[_0x400056(0x418)][_0x400056(0x186)](_0xab0d4a['getSnapshot'](),_0x4a3c9a,_0x21e207));}['moveField'](_0x12496e,_0x574246,_0x5f3cba,_0x461a57){const _0x159287=_0x58a750;if(!this[_0x159287(0x2c2)][_0x159287(0xf5)](_0x574246,_0x5f3cba))throw Error(_0x159287(0x198));if(_0x5f3cba===_0x1abc18||_0x461a57['beforeFieldId']===_0x1abc18)throw Error(_0x159287(0x2cc));this['_apply'](_0x12496e,this[_0x159287(0x418)][_0x159287(0x18a)](_0x12496e[_0x159287(0x26f)](),_0x574246,_0x5f3cba,_0x461a57));}[_0x58a750(0x2c6)](_0x4c8c5d,_0x28b498,_0x3f6ba3,_0x7ec56a){const _0x5eaee9=_0x58a750;this[_0x5eaee9(0xf7)](_0x4c8c5d,this[_0x5eaee9(0x418)][_0x5eaee9(0x2c6)](_0x4c8c5d[_0x5eaee9(0x26f)](),_0x28b498,_0x3f6ba3,_0x7ec56a));}[_0x58a750(0x2de)](_0x15622c,_0x573c38,_0x5c3dc1,_0x9cc705){const _0x486c24=_0x58a750;if(!this[_0x486c24(0x2c2)][_0x486c24(0x3c6)](_0x573c38,_0x5c3dc1))throw Error(_0x486c24(0x17b));this[_0x486c24(0xf7)](_0x15622c,this[_0x486c24(0x418)][_0x486c24(0x2de)](_0x15622c[_0x486c24(0x26f)](),_0x573c38,_0x5c3dc1,_0x9cc705));}['deleteView'](_0x1ee939,_0x14bb4a,_0x316ff6){const _0x3c0a34=_0x58a750;if(!this['_permissionService'][_0x3c0a34(0x3c6)](_0x14bb4a,_0x316ff6))throw Error(_0x3c0a34(0x17b));this[_0x3c0a34(0xf7)](_0x1ee939,this[_0x3c0a34(0x418)][_0x3c0a34(0x2ef)](_0x1ee939[_0x3c0a34(0x26f)](),_0x14bb4a,_0x316ff6));}[_0x58a750(0x2b2)](_0x299db0,_0x90ca85,_0x1410f8,_0x3c09b5){const _0x359489=_0x58a750;if(!this[_0x359489(0x2c2)][_0x359489(0x3c6)](_0x90ca85,_0x1410f8))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0x299db0,this[_0x359489(0x418)]['moveView'](_0x299db0[_0x359489(0x26f)](),_0x90ca85,_0x1410f8,_0x3c09b5));}[_0x58a750(0x157)](_0x1099e1,_0x3e9a33,_0x103499,_0x52f3d3){const _0xea13a1=_0x58a750;if(!this[_0xea13a1(0x2c2)][_0xea13a1(0x3c6)](_0x3e9a33,_0x103499))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0xea13a1(0xf7)](_0x1099e1,this[_0xea13a1(0x418)][_0xea13a1(0x157)](_0x1099e1[_0xea13a1(0x26f)](),_0x3e9a33,_0x103499,_0x52f3d3));}[_0x58a750(0x2ea)](_0x2296fe,_0x1390f9,_0x26e7a9,_0x5e91a4){const _0x8c0f7b=_0x58a750;this[_0x8c0f7b(0xf7)](_0x2296fe,this[_0x8c0f7b(0x418)]['setViewFilter'](_0x2296fe[_0x8c0f7b(0x26f)](),_0x1390f9,_0x26e7a9,_0x5e91a4));}['setViewSort'](_0x249583,_0x3f8bf1,_0x3f3786,_0x469436){const _0x35279d=_0x58a750;this['_apply'](_0x249583,this['_factory'][_0x35279d(0x184)](_0x249583[_0x35279d(0x26f)](),_0x3f8bf1,_0x3f3786,_0x469436));}[_0x58a750(0x151)](_0x1ec2b5,_0x2ece7a,_0x2bbc31,_0x3dc9e5){const _0x2e74f4=_0x58a750;this[_0x2e74f4(0xf7)](_0x1ec2b5,this[_0x2e74f4(0x418)][_0x2e74f4(0x151)](_0x1ec2b5[_0x2e74f4(0x26f)](),_0x2ece7a,_0x2bbc31,_0x3dc9e5));}['setViewFieldVisible'](_0x24d5b3,_0x5e11c9,_0x16f91d,_0x9f3724,_0x3715ff){const _0x46031b=_0x58a750;if(!this[_0x46031b(0x2c2)][_0x46031b(0x3c6)](_0x5e11c9,_0x16f91d))throw Error(_0x46031b(0x17b));this['_apply'](_0x24d5b3,this['_factory'][_0x46031b(0x335)](_0x24d5b3[_0x46031b(0x26f)](),_0x5e11c9,_0x16f91d,_0x9f3724,_0x3715ff));}[_0x58a750(0x30d)](_0x5db0d0,_0x2c0e65,_0x404d8a,_0x2ac4b8,_0x4df697){const _0x50c958=_0x58a750;this[_0x50c958(0xf7)](_0x5db0d0,this[_0x50c958(0x418)]['setViewFieldWidth'](_0x5db0d0[_0x50c958(0x26f)](),_0x2c0e65,_0x404d8a,_0x2ac4b8,_0x4df697));}['setViewFieldOrder'](_0x4ea800,_0x368ff9,_0x4a42a5,_0x3da631,_0x2ff137){const _0x2efc3f=_0x58a750;this[_0x2efc3f(0xf7)](_0x4ea800,this['_factory'][_0x2efc3f(0x2e6)](_0x4ea800[_0x2efc3f(0x26f)](),_0x368ff9,_0x4a42a5,_0x3da631,_0x2ff137));}[_0x58a750(0xf7)](_0x2ffa27,_0x3d79a2){const _0x128450=_0x58a750;let _0x570bdf=_0x2ffa27[_0x128450(0x26f)]();_0x2ffa27['setSnapshot'](this[_0x128450(0x34f)][_0x128450(0x297)](_0x570bdf,_0x3d79a2));}[_0x58a750(0xf4)](_0x30c443,_0x2d4a22,_0x26ff09,_0x22f497=this[_0x58a750(0x2bc)](_0x30c443[_0x58a750(0x347)][_0x2d4a22])){const _0x3dbc86=_0x58a750;let _0x256859=_0x30c443['tables'][_0x2d4a22],_0x1b87ad=_0x26ff09[_0x3dbc86(0x1e1)]??_0x26ff09[_0x3dbc86(0xc9)]??this[_0x3dbc86(0x382)](),_0x26837e={..._0x26ff09,'createdBy':_0x26ff09[_0x3dbc86(0x1e1)]??_0x1b87ad,'updatedBy':_0x26ff09[_0x3dbc86(0xc9)]??_0x1b87ad,'values':{..._0x26ff09[_0x3dbc86(0x255)]}};return _0x26837e['values'][_0x1abc18]=_0x26837e['id'],_0x256859[_0x3dbc86(0x3e0)]['forEach'](_0x447ee4=>{const _0x517065=_0x3dbc86;let _0x34d661=_0x256859[_0x517065(0x29a)][_0x447ee4];if(!(!_0x34d661||_0x26837e['values'][_0x447ee4]!==void 0x0))switch(_0x34d661[_0x517065(0x18d)]){case _0x54dcd1[_0x517065(0x3e8)]:var _0x3a49ea;_0x26837e[_0x517065(0x255)][_0x447ee4]=((_0x3a49ea=_0x22f497[_0x517065(0x1ce)](_0x447ee4))==null?void 0x0:_0x3a49ea())??this['_createNumberingAllocator'](_0x256859,_0x447ee4)();break;case _0x54dcd1[_0x517065(0x2f4)]:_0x26837e[_0x517065(0x1e1)]&&(_0x26837e[_0x517065(0x255)][_0x447ee4]=_0x26837e[_0x517065(0x1e1)]);break;case _0x54dcd1['UpdatedBy']:_0x26837e[_0x517065(0xc9)]&&(_0x26837e[_0x517065(0x255)][_0x447ee4]=_0x26837e[_0x517065(0xc9)]);break;case _0x54dcd1['CreatedAt']:_0x26837e['values'][_0x447ee4]=H(_0x26837e[_0x517065(0x2a5)]);break;case _0x54dcd1[_0x517065(0x1b4)]:_0x26837e[_0x517065(0x255)][_0x447ee4]=H(_0x26837e[_0x517065(0xe5)]);break;default:{let _0x56b86c=_0x34d661[_0x517065(0x19c)];_0x56b86c!=null&&_0x56b86c!==''&&!(Array[_0x517065(0x25e)](_0x56b86c)&&_0x56b86c[_0x517065(0x17a)]===0x0)&&(_0x26837e[_0x517065(0x255)][_0x447ee4]=_0x56b86c);}}}),_0x26837e;}[_0x58a750(0x402)](_0x5d2cdf,_0x5a992a,_0x47609d,_0x5147ea){const _0x1511f5=_0x58a750;var _0x2f312,_0x11ddd5;let _0x1ecccb=_0x5d2cdf[_0x1511f5(0x347)][_0x5a992a],_0xa9b80e=((_0x2f312=(_0x11ddd5=this['_runtimeContext'])[_0x1511f5(0x158)])==null?void 0x0:_0x2f312[_0x1511f5(0x35f)](_0x11ddd5))??Date[_0x1511f5(0x158)](),_0x5592b4=this[_0x1511f5(0x382)](),_0x3ad8b4={..._0x5147ea};return _0x1ecccb[_0x1511f5(0x3e0)][_0x1511f5(0x3b6)](_0xdaf329=>{const _0x438806=_0x1511f5;let _0x2abf7a=_0x1ecccb[_0x438806(0x29a)][_0xdaf329];_0x2abf7a&&(_0x2abf7a[_0x438806(0x18d)]===_0x54dcd1[_0x438806(0x1b4)]&&(_0x3ad8b4[_0xdaf329]=H(_0xa9b80e)),_0x2abf7a[_0x438806(0x18d)]===_0x54dcd1[_0x438806(0xd7)]&&_0x5592b4&&(_0x3ad8b4[_0xdaf329]=_0x5592b4));}),{'recordId':_0x47609d,'values':_0x3ad8b4,'recordPatch':{'updatedAt':_0xa9b80e,..._0x5592b4?{'updatedBy':_0x5592b4}:{}}};}[_0x58a750(0x30b)](_0x1e5d56,_0x2ff9a2,_0x1370fc){const _0x1121e3=_0x58a750;let _0xcb7308=_0x1e5d56[_0x1121e3(0x347)][_0x2ff9a2];return!_0xcb7308||!nr(_0x1370fc)?[]:_0x1370fc[_0x1121e3(0x18d)]===_0x54dcd1[_0x1121e3(0x3e8)]?this[_0x1121e3(0x3f9)](_0xcb7308,_0x1370fc['id']):Object[_0x1121e3(0x255)](_0xcb7308[_0x1121e3(0x286)])[_0x1121e3(0x330)](_0x2d3f64=>{const _0x696485=_0x1121e3;let _0x1d5a2c=this[_0x696485(0x2a4)](_0x1370fc,_0x2d3f64);return _0x1d5a2c===void 0x0?[]:[{'recordId':_0x2d3f64['id'],'values':{[_0x1370fc['id']]:_0x1d5a2c}}];});}['_getSystemFieldValue'](_0x568f69,_0x1a02d7){const _0xfec96=_0x58a750;switch(_0x568f69[_0xfec96(0x18d)]){case _0x54dcd1[_0xfec96(0x2f4)]:return _0x1a02d7[_0xfec96(0x1e1)]??this['_getCurrentUserId']();case _0x54dcd1[_0xfec96(0xd7)]:return _0x1a02d7[_0xfec96(0xc9)]??this[_0xfec96(0x382)]();case _0x54dcd1[_0xfec96(0x1a4)]:return H(_0x1a02d7['createdAt']??Date[_0xfec96(0x158)]());case _0x54dcd1['UpdatedAt']:return H(_0x1a02d7[_0xfec96(0xe5)]??Date[_0xfec96(0x158)]());default:return;}}['_createNumberingAllocators'](_0x16a6aa){const _0x29812b=_0x58a750;let _0x5abb86=new Map();return _0x16a6aa&&_0x16a6aa[_0x29812b(0x3e0)][_0x29812b(0x3b6)](_0x23b5bb=>{const _0x1e70b0=_0x29812b;let _0x127449=_0x16a6aa[_0x1e70b0(0x29a)][_0x23b5bb];(_0x127449==null?void 0x0:_0x127449[_0x1e70b0(0x18d)])===_0x54dcd1[_0x1e70b0(0x3e8)]&&_0x5abb86[_0x1e70b0(0x191)](_0x23b5bb,this[_0x1e70b0(0x1aa)](_0x16a6aa,_0x23b5bb));}),_0x5abb86;}[_0x58a750(0x1aa)](_0x35fa88,_0x2de43d){const _0x1e9f68=_0x58a750;let _0x53c4e1=Object[_0x1e9f68(0x255)](_0x35fa88['records'])[_0x1e9f68(0x371)]((_0x2e005b,_0x5518ff)=>{const _0x4646b8=_0x1e9f68;let _0x21e3e8=Number(_0x5518ff[_0x4646b8(0x255)][_0x2de43d]);return Number[_0x4646b8(0x1d8)](_0x21e3e8)?Math['max'](_0x2e005b,_0x21e3e8):_0x2e005b;},0x0);return()=>String(++_0x53c4e1);}[_0x58a750(0x3f9)](_0x5b3a4e,_0xc974ef){const _0x30ad0d=_0x58a750;let _0x1df93e=this[_0x30ad0d(0x306)](_0x5b3a4e),_0x3939b8=this[_0x30ad0d(0x1aa)](_0x5b3a4e,_0xc974ef);return _0x1df93e['flatMap'](_0x2315e3=>this[_0x30ad0d(0x1b1)](_0x2315e3[_0x30ad0d(0x255)][_0xc974ef])?[]:[{'recordId':_0x2315e3['id'],'values':{[_0xc974ef]:_0x3939b8()}}]);}[_0x58a750(0x306)](_0x39f7ac){const _0x19f798=_0x58a750;var _0x3bb69d;let _0x2cefa8=Object['values'](_0x39f7ac['records']),_0x3cef7e=new Map(_0x2cefa8['map'](_0x20c2bd=>[_0x20c2bd['id'],_0x20c2bd])),_0x4aad39=[],_0x494be4=new Set();(_0x3bb69d=_0x39f7ac['recordOrder'])==null||_0x3bb69d[_0x19f798(0x3b6)](_0x49f436=>{const _0x3d33ca=_0x19f798;let _0x142efa=_0x3cef7e[_0x3d33ca(0x1ce)](_0x49f436);_0x142efa&&(_0x4aad39[_0x3d33ca(0x2fe)](_0x142efa),_0x494be4[_0x3d33ca(0x2a8)](_0x49f436));});let _0x4e7af7=_0x2cefa8['filter'](_0x1fa31c=>!_0x494be4['has'](_0x1fa31c['id']))[_0x19f798(0x172)]((_0x223af7,_0x308097)=>String(_0x223af7['orderKey']??_0x223af7['id'])[_0x19f798(0x291)](String(_0x308097[_0x19f798(0x368)]??_0x308097['id']))||_0x223af7['id'][_0x19f798(0x291)](_0x308097['id']));return[..._0x4aad39,..._0x4e7af7];}[_0x58a750(0x1b1)](_0x51af17){const _0x46a46b=_0x58a750;return _0x51af17!=null&&_0x51af17!==''&&!(Array[_0x46a46b(0x25e)](_0x51af17)&&_0x51af17[_0x46a46b(0x17a)]===0x0);}[_0x58a750(0x382)](){const _0x424165=_0x58a750;var _0x42ffcb,_0xd8d33d,_0x2fa523,_0x3864c3;return((_0x42ffcb=(_0xd8d33d=this[_0x424165(0xda)])[_0x424165(0x16a)])==null?void 0x0:_0x42ffcb[_0x424165(0x35f)](_0xd8d33d))??((_0x2fa523=(_0x3864c3=this['_runtimeContext'])[_0x424165(0x39c)])==null||(_0x2fa523=_0x2fa523['call'](_0x3864c3))==null?void 0x0:_0x2fa523[_0x424165(0x1f3)])??void 0x0;}[_0x58a750(0x396)](_0x3cba3c,_0x1b14ef,_0x470796,_0x2756b7,_0x23eed3){const _0x343aff=_0x58a750;var _0x276294;if(!this['_permissionService']['canEditCell'](_0x1b14ef,_0x470796,_0x2756b7))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20cell.');let _0x3945c9=(_0x276294=_0x3cba3c[_0x343aff(0x347)][_0x1b14ef])==null?void 0x0:_0x276294['fields'][_0x2756b7];if(!_0x3945c9)throw Error(_0x343aff(0x14f)+_0x2756b7+'\x22\x20does\x20not\x20exist.');let _0x2440ec=this['_fieldRegistry']['get'](_0x3945c9[_0x343aff(0x18d)]);if(_0x3945c9[_0x343aff(0x2c8)]||_0x3945c9['system']||!_0x2440ec[_0x343aff(0x177)](_0x3945c9)['editable'])throw Error(_0x343aff(0x354));let _0x56bf69=_0x2440ec['normalize'](_0x23eed3,_0x3945c9),_0x5acb68=_0x2440ec[_0x343aff(0x19b)](_0x56bf69,_0x3945c9);if(!_0x5acb68[_0x343aff(0x258)])throw Error(_0x5acb68[_0x343aff(0x2af)]??_0x343aff(0x13f));let _0x263f66=_0x3945c9[_0x343aff(0x18d)]===_0x54dcd1['RecordLink']?ke(_0x3cba3c,_0x3945c9,_0x56bf69):{'valid':!0x0};if(!_0x263f66[_0x343aff(0x258)])throw Error(_0x263f66[_0x343aff(0x2af)]??_0x343aff(0x2e4));return _0x56bf69;}[_0x58a750(0x355)](_0x16410e,_0x447523){const _0x5f6f09=_0x58a750;if(_0x447523['id']===_0x1abc18||_0x447523[_0x5f6f09(0x18d)]===_0x54dcd1[_0x5f6f09(0x249)]||_0x25ea8a(_0x447523[_0x5f6f09(0x2fa)]))throw Error(_0x5f6f09(0x3f3));let _0x5ba457=Oe(_0x16410e,_0x447523);if(!_0x5ba457[_0x5f6f09(0x258)])throw Error(_0x5ba457['reason']??_0x5f6f09(0xd0));}};er=$n([J(0x0,Yn),J(0x1,qn)],er);function tr(){const _0x478142=_0x58a750;let _0x23685a=new Jn();return Cn()[_0x478142(0x3b6)](_0x1c29e0=>_0x23685a[_0x478142(0x38c)](_0x1c29e0)),_0x23685a;}function nr(_0xcd85b3){const _0x254ef0=_0x58a750;return _0xcd85b3[_0x254ef0(0x18d)]===_0x54dcd1[_0x254ef0(0x3e8)]||_0xcd85b3[_0x254ef0(0x18d)]===_0x54dcd1[_0x254ef0(0x2f4)]||_0xcd85b3[_0x254ef0(0x18d)]===_0x54dcd1[_0x254ef0(0xd7)]||_0xcd85b3[_0x254ef0(0x18d)]===_0x54dcd1[_0x254ef0(0x1a4)]||_0xcd85b3[_0x254ef0(0x18d)]===_0x54dcd1[_0x254ef0(0x1b4)];}const rr=new Set([_0x54dcd1[_0x58a750(0x325)],_0x54dcd1[_0x58a750(0x2f9)],_0x54dcd1[_0x58a750(0x2ca)]]);function ir(_0x1c7a7b){const _0x3d0331=_0x58a750;let _0x31698d=_0x1c7a7b[_0x3d0331(0x29a)][_0x1c7a7b['primaryFieldId']];if(!(_0x31698d&&(_0x31698d['system']===!0x0||_0x31698d['id']['toLowerCase']()==='id'||_0x31698d[_0x3d0331(0x2fa)][_0x3d0331(0x3b2)]()['toLowerCase']()==='id'))&&_0x31698d)return _0x31698d['id'];for(let _0x121544 of _0x1c7a7b[_0x3d0331(0x3e0)]){let _0xcf4433=_0x1c7a7b[_0x3d0331(0x29a)][_0x121544];if(_0xcf4433&&_0xcf4433['id']!==_0x1c7a7b[_0x3d0331(0x1a8)]&&_0xcf4433[_0x3d0331(0x124)]!==!0x0&&_0xcf4433[_0x3d0331(0x18d)]!==_0x54dcd1[_0x3d0331(0x249)])return _0xcf4433['id'];}return _0x1c7a7b['primaryFieldId'];}function ar(_0x43c9ac,_0x255b61=[],_0x4ab5b1=0x5){const _0x2d6a67=_0x58a750;let _0x29612f=new Set(_0x255b61['filter'](_0x532750=>!!_0x532750)),_0x2ac959=[],_0x54693c=[];for(let _0x52bafb of _0x43c9ac[_0x2d6a67(0x3e0)]){let _0x4264c7=_0x43c9ac[_0x2d6a67(0x29a)][_0x52bafb];_0x4264c7&&_0x4264c7[_0x2d6a67(0x124)]!==!0x0&&_0x4264c7[_0x2d6a67(0x18d)]!==_0x54dcd1[_0x2d6a67(0x249)]&&!_0x29612f[_0x2d6a67(0x192)](_0x4264c7['id'])&&(rr[_0x2d6a67(0x192)](_0x4264c7[_0x2d6a67(0x18d)])?_0x2ac959:_0x54693c)[_0x2d6a67(0x2fe)](_0x4264c7['id']);}return[..._0x2ac959,..._0x54693c][_0x2d6a67(0x39f)](0x0,_0x4ab5b1);}function or(){const _0x146432=_0x58a750;return[{'type':_0x92bd2[_0x146432(0x140)],'i18nKey':_0x146432(0x295),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x1c1cec=_0x146432;throw Error(_0x1c1cec(0x278));}},{'type':_0x92bd2[_0x146432(0x248)],'i18nKey':_0x146432(0x326),'createDefaultConfig':_0x247315=>{const _0x449faa=_0x146432;let _0x1becaa=sr(_0x247315);return{'groupFieldId':_0x1becaa,'coverFieldId':null,'cardLayout':_0x449faa(0x251),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x247315['primaryFieldId'],'fieldIds':ar(_0x247315,[_0x247315[_0x449faa(0x1a8)],_0x1becaa])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x4251cb=_0x146432;throw Error(_0x4251cb(0x2bd));}},{'type':_0x92bd2[_0x146432(0x3f1)],'i18nKey':'base.viewType.calendar','createDefaultConfig':_0x110d68=>{const _0x2be62e=_0x146432;let _0x554fa4=cr(_0x110d68);return{'startDateFieldId':_0x554fa4,'endDateFieldId':lr(_0x110d68,_0x554fa4),'titleFieldId':_0x110d68[_0x2be62e(0x1a8)],'mode':_0x2be62e(0x321),'timeslotSize':'medium','timeZone':'local','displayColor':{'type':'custom','color':_0x2be62e(0x2c0)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x29d5ef=_0x146432;throw Error(_0x29d5ef(0xfe));}},{'type':_0x92bd2[_0x146432(0x152)],'i18nKey':_0x146432(0x1d1),'createDefaultConfig':_0x52078a=>{const _0x3645c8=_0x146432;let _0x240f1b=cr(_0x52078a);return{'startDateFieldId':_0x240f1b,'endDateFieldId':lr(_0x52078a,_0x240f1b)??_0x240f1b,'titleFieldId':_0x52078a['primaryFieldId'],'scale':_0x3645c8(0x321),'showTodayLine':!0x0,'displayColor':{'type':_0x3645c8(0x280),'color':'#14b8a6'},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3ab217=_0x146432;throw Error(_0x3ab217(0x188));}},{'type':_0x92bd2[_0x146432(0x345)],'i18nKey':_0x146432(0x2cb),'createDefaultConfig':_0xb6e869=>{const _0x57623d=_0x146432;let _0x33b3e5=ir(_0xb6e869);return{'coverFieldId':null,'cardLayout':_0x57623d(0x251),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x33b3e5,'coverFieldId':null,'fieldIds':ar(_0xb6e869,[_0x33b3e5,_0xb6e869[_0x57623d(0x1a8)]])},'cardSize':_0x57623d(0x289)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x369471=_0x146432;throw Error(_0x369471(0x2db));}}];}function sr(_0x131799){const _0x373773=_0x58a750;var _0x5d4ab3,_0x41e571,_0x6206c5;let _0x30e890=_0x131799['fieldOrder'][_0x373773(0x36b)](_0x691d5d=>_0x131799[_0x373773(0x29a)][_0x691d5d])['filter'](_0xa3803f=>!!_0xa3803f);return((_0x5d4ab3=_0x30e890['find'](_0x567dbe=>_0x567dbe['type']===_0x54dcd1['SingleSelect']||_0x567dbe[_0x373773(0x18d)]===_0x54dcd1[_0x373773(0xf3)]||_0x567dbe[_0x373773(0x18d)]===_0x54dcd1[_0x373773(0x3c3)]))==null?void 0x0:_0x5d4ab3['id'])??((_0x41e571=_0x30e890[_0x373773(0x145)](_0x504633=>_0x504633['type']===_0x54dcd1[_0x373773(0x304)]))==null?void 0x0:_0x41e571['id'])??((_0x6206c5=_0x30e890[_0x373773(0x145)](_0x5f4477=>_0x5f4477['type']===_0x54dcd1['Date']||_0x5f4477[_0x373773(0x18d)]===_0x54dcd1['CreatedAt']||_0x5f4477[_0x373773(0x18d)]===_0x54dcd1['UpdatedAt']))==null?void 0x0:_0x6206c5['id'])??_0x131799[_0x373773(0x1a8)];}function cr(_0x346b0f){const _0x289bdd=_0x58a750;var _0x5b92ed;return((_0x5b92ed=_0x346b0f[_0x289bdd(0x3e0)][_0x289bdd(0x36b)](_0x54dae3=>_0x346b0f[_0x289bdd(0x29a)][_0x54dae3])[_0x289bdd(0x145)](ur))==null?void 0x0:_0x5b92ed['id'])??'';}function lr(_0xc2547e,_0xf8e6cc){const _0x830036=_0x58a750;var _0x3fd119;return(_0x3fd119=_0xc2547e['fieldOrder'][_0x830036(0x36b)](_0x23b0b9=>_0xc2547e[_0x830036(0x29a)][_0x23b0b9])[_0x830036(0x145)](_0x2d39e8=>ur(_0x2d39e8)&&_0x2d39e8['id']!==_0xf8e6cc))==null?void 0x0:_0x3fd119['id'];}function ur(_0x337401){const _0x349681=_0x58a750;return!!_0x337401&&_0x337401[_0x349681(0x18d)]===_0x54dcd1[_0x349681(0x160)]&&_0x337401[_0x349681(0x2c8)]!==!0x0&&_0x337401['system']!==!0x0;}const dr=_0x35316f(_0x58a750(0x17e)),fr=new Set([_0x54dcd1[_0x58a750(0x298)],_0x54dcd1['Currency'],_0x54dcd1['Progress'],_0x54dcd1[_0x58a750(0x2f9)],_0x54dcd1[_0x58a750(0x160)],_0x54dcd1[_0x58a750(0x1a4)],_0x54dcd1[_0x58a750(0x1b4)],_0x54dcd1[_0x58a750(0x2ca)]]);let pr=class extends _0xba4bb0{constructor(_0x117bf4){const _0x1f966d=_0x58a750;super(),this['_fieldRegistry']=_0x117bf4,q(this,_0x1f966d(0x2c5),new Map()),q(this,_0x1f966d(0x2dd),new WeakMap()),q(this,'_projectedRowsCache',new Map()),q(this,_0x1f966d(0x250),new Map()),q(this,_0x1f966d(0x360),new Map()),q(this,_0x1f966d(0x410),new Map()),q(this,_0x1f966d(0x164),0x0),q(this,'_tableRevisions',new Map()),q(this,'_cellRevisions',new Map()),q(this,_0x1f966d(0x317),new Map()),q(this,_0x1f966d(0x343),new Map());}[_0x58a750(0x153)](_0xb53611){const _0x337797=_0x58a750;return this[_0x337797(0x2c5)][_0x337797(0x191)](_0xb53611[_0x337797(0x18d)],_0xb53611),_0x1b8d04(()=>this[_0x337797(0x2c5)]['delete'](_0xb53611[_0x337797(0x18d)]));}[_0x58a750(0x10a)](_0x173f67,_0x5db76e,_0x459f6){const _0x5c541e=_0x58a750;var _0x4f2e26,_0x53db01,_0x23666a;return R(_0x5c541e(0x1da),()=>{const _0x5ed524=_0x5c541e;let _0x12dd33=this[_0x5ed524(0x377)](_0x173f67,_0x5db76e,_0x459f6);if(_0x12dd33)return _0x12dd33;let _0x3edbe3=_0x173f67[_0x5ed524(0x347)][_0x5db76e],_0x504fdc=_0x3edbe3==null?void 0x0:_0x3edbe3[_0x5ed524(0x2c4)][_0x459f6];if(!_0x3edbe3||!_0x504fdc)return this[_0x5ed524(0xff)](_0x173f67,_0x5db76e,_0x459f6,{'type':_0x5ed524(0x1b9),'viewType':(_0x504fdc==null?void 0x0:_0x504fdc[_0x5ed524(0x18d)])??_0x92bd2['Grid'],'reason':_0x5ed524(0x383)});let _0x2852d7;switch(_0x504fdc[_0x5ed524(0x18d)]){case _0x92bd2[_0x5ed524(0x140)]:_0x2852d7=this['_buildGrid'](_0x3edbe3,_0x504fdc);break;case _0x92bd2['Gantt']:_0x2852d7=this[_0x5ed524(0x109)](_0x3edbe3,_0x504fdc);break;case _0x92bd2[_0x5ed524(0x248)]:_0x2852d7=this[_0x5ed524(0x38d)](_0x3edbe3,_0x504fdc);break;case _0x92bd2[_0x5ed524(0x3f1)]:_0x2852d7=this[_0x5ed524(0x3e1)](_0x3edbe3,_0x504fdc);break;case _0x92bd2['Gallery']:_0x2852d7=this[_0x5ed524(0x1a0)](_0x3edbe3,_0x504fdc);break;default:_0x2852d7={'type':'invalid','viewType':_0x504fdc['type'],'reason':'missingField'};}return this['_setCachedProjection'](_0x173f67,_0x5db76e,_0x459f6,_0x2852d7);},{'tableId':_0x5db76e,'viewId':_0x459f6,'viewType':(_0x4f2e26=_0x173f67[_0x5c541e(0x347)][_0x5db76e])==null||(_0x4f2e26=_0x4f2e26[_0x5c541e(0x2c4)][_0x459f6])==null?void 0x0:_0x4f2e26[_0x5c541e(0x18d)],'records':((_0x53db01=_0x173f67[_0x5c541e(0x347)][_0x5db76e])==null||(_0x53db01=_0x53db01[_0x5c541e(0x22a)])==null?void 0x0:_0x53db01[_0x5c541e(0x17a)])??Object[_0x5c541e(0x29c)](((_0x23666a=_0x173f67[_0x5c541e(0x347)][_0x5db76e])==null?void 0x0:_0x23666a[_0x5c541e(0x286)])??{})[_0x5c541e(0x17a)]});}[_0x58a750(0x20f)](_0xb273c9,_0x3df04f,_0xb5e627){const _0x7246c8=_0x58a750;var _0x5927c8,_0x5665fa,_0x1962fd;let _0x367d69=_0xb273c9[_0x7246c8(0x347)][_0x3df04f],_0x423f06=_0x367d69==null?void 0x0:_0x367d69[_0x7246c8(0x2c4)][_0xb5e627];if(!_0x367d69||!_0x423f06)throw Error('[BaseProjectionService]:\x20missing\x20view\x20\x22'+_0xb5e627+'\x22.');let _0x113113=_0x5a0d=>!!_0x367d69['fields'][_0x5a0d],_0x4d6903={..._0x423f06,'filter':_0x423f06[_0x7246c8(0x253)]?{..._0x423f06['filter'],'conditions':_0x423f06[_0x7246c8(0x253)][_0x7246c8(0x148)][_0x7246c8(0x253)](_0x244a6c=>_0x113113(_0x244a6c[_0x7246c8(0x32d)]))}:_0x423f06['filter'],'sort':(_0x5927c8=_0x423f06[_0x7246c8(0x172)])==null?void 0x0:_0x5927c8['filter'](_0x425fa0=>_0x113113(_0x425fa0[_0x7246c8(0x32d)])),'group':(_0x5665fa=_0x423f06[_0x7246c8(0x3f2)])==null?void 0x0:_0x5665fa[_0x7246c8(0x253)](_0xdeef01=>_0x113113(_0xdeef01[_0x7246c8(0x32d)])),'fieldOrder':(_0x1962fd=_0x423f06['fieldOrder'])==null?void 0x0:_0x1962fd[_0x7246c8(0x253)](_0x113113),'fieldSettings':Object[_0x7246c8(0x241)](Object[_0x7246c8(0x23c)](_0x423f06['fieldSettings']??{})[_0x7246c8(0x253)](([_0x1049aa])=>_0x113113(_0x1049aa)))};if(_0x4d6903[_0x7246c8(0x18d)]==='kanban'){var _0x51ec94;let _0x4f0166=_0x4d6903[_0x7246c8(0x346)]??{},_0x537343=this['_resolveKanbanGroupFieldId'](_0x367d69,_0x4d6903),_0x12f80c=this['_resolveCardTitleFieldId'](_0x367d69,(_0x51ec94=_0x4f0166[_0x7246c8(0x244)])==null?void 0x0:_0x51ec94[_0x7246c8(0x3ef)]);_0x4d6903[_0x7246c8(0x346)]={..._0x4f0166,'groupFieldId':_0x537343??_0x4f0166[_0x7246c8(0x2dc)],'coverFieldId':this[_0x7246c8(0x2b1)](_0x367d69,_0x4f0166),'cardLayout':_0x4f0166[_0x7246c8(0x2d1)]==='compose'?_0x7246c8(0x3be):_0x7246c8(0x251),'showFieldNames':_0x4f0166[_0x7246c8(0x389)]!==!0x1,'fieldSettings':Object[_0x7246c8(0x241)](Object[_0x7246c8(0x23c)](_0x4f0166[_0x7246c8(0x285)]??{})[_0x7246c8(0x253)](([_0x15c2b8])=>_0x113113(_0x15c2b8))),'columnSettings':_0x4f0166[_0x7246c8(0x3ad)]??{},'card':{..._0x4f0166[_0x7246c8(0x244)]??{},'titleFieldId':_0x12f80c,'fieldIds':this[_0x7246c8(0x1bd)](_0x367d69,_0x4d6903,_0x537343??'',_0x12f80c)}};}return{'repaired':JSON[_0x7246c8(0x403)](_0x4d6903)!==JSON[_0x7246c8(0x403)](_0x423f06),'view':_0x4d6903};}[_0x58a750(0x2be)](){const _0x4671ff=_0x58a750;this[_0x4671ff(0x164)]++;}[_0x58a750(0x1fe)](_0x194b5c,_0x2a2a59,_0x50eb79){const _0x470f3c=_0x58a750;let _0x100cfd=this[_0x470f3c(0x385)](_0x194b5c)+0x1;this[_0x470f3c(0x3da)][_0x470f3c(0x191)](_0x194b5c,_0x100cfd);let _0x463dce=this[_0x470f3c(0x317)][_0x470f3c(0x1ce)](_0x194b5c)??[];_0x463dce['push']({'revision':_0x100cfd,'recordId':_0x2a2a59,'fieldId':_0x50eb79}),this[_0x470f3c(0x317)][_0x470f3c(0x191)](_0x194b5c,_0x463dce);}[_0x58a750(0x1b5)](_0x3f81a7,_0x2d1920){const _0x38e418=_0x58a750;this[_0x38e418(0x416)](_0x3f81a7);}[_0x58a750(0x1e7)](_0x3db7b1,_0x36943c){const _0x459987=_0x58a750;this[_0x459987(0x343)][_0x459987(0x191)](this[_0x459987(0x2e8)](_0x3db7b1,_0x36943c),this['_getViewRevision'](_0x3db7b1,_0x36943c)+0x1);}[_0x58a750(0x377)](_0x327190,_0x13645a,_0x501477){const _0x5bf5d7=_0x58a750;var _0x5bb09a;let _0x2ac3bd=(_0x5bb09a=this['_projectionCache'][_0x5bf5d7(0x1ce)](_0x327190))==null?void 0x0:_0x5bb09a[_0x5bf5d7(0x1ce)](this[_0x5bf5d7(0x13d)](_0x13645a,_0x501477));return _0x2ac3bd&&_0x2ac3bd[_0x5bf5d7(0x19f)]===this['_globalRevision']&&_0x2ac3bd[_0x5bf5d7(0x180)]===this[_0x5bf5d7(0x1dd)](_0x13645a)&&_0x2ac3bd['cellRevision']===this['_getCellRevision'](_0x13645a)&&_0x2ac3bd[_0x5bf5d7(0x1ae)]===this['_getViewRevision'](_0x13645a,_0x501477)?_0x2ac3bd[_0x5bf5d7(0xcd)]:null;}[_0x58a750(0xff)](_0x36746e,_0x534e61,_0x1670cb,_0x27c6b3){const _0x27da11=_0x58a750;let _0x27b25e=this[_0x27da11(0x2dd)]['get'](_0x36746e);return _0x27b25e||(_0x27b25e=new Map(),this[_0x27da11(0x2dd)][_0x27da11(0x191)](_0x36746e,_0x27b25e)),_0x27b25e[_0x27da11(0x191)](this[_0x27da11(0x13d)](_0x534e61,_0x1670cb),{'projection':_0x27c6b3,'globalRevision':this[_0x27da11(0x164)],'tableRevision':this['_getTableRevision'](_0x534e61),'cellRevision':this['_getCellRevision'](_0x534e61),'viewRevision':this['_getViewRevision'](_0x534e61,_0x1670cb)}),_0x27c6b3;}[_0x58a750(0x416)](_0x292788){const _0xcd5012=_0x58a750;this[_0xcd5012(0x411)][_0xcd5012(0x191)](_0x292788,this[_0xcd5012(0x1dd)](_0x292788)+0x1);}[_0x58a750(0x1dd)](_0x16b7ff){const _0x223915=_0x58a750;return this[_0x223915(0x411)][_0x223915(0x1ce)](_0x16b7ff)??0x0;}[_0x58a750(0x385)](_0x152dee){const _0x11fa47=_0x58a750;return this[_0x11fa47(0x3da)][_0x11fa47(0x1ce)](_0x152dee)??0x0;}[_0x58a750(0x2b9)](_0x157696,_0x3b044b){return this['_viewRevisions']['get'](this['_viewRevisionKey'](_0x157696,_0x3b044b))??0x0;}[_0x58a750(0x13d)](_0x1b535c,_0x379d2a){return _0x1b535c+'\x00'+_0x379d2a;}[_0x58a750(0x1ba)](_0x6b6218,_0x1f1043){const _0x1a0062=_0x58a750;return _0x6b6218+'\x00'+this[_0x1a0062(0x398)](_0x1f1043);}[_0x58a750(0x3c8)](_0x51db41,_0x105add,_0x2b63b4){const _0x24aa07=_0x58a750;return _0x51db41+'\x00'+this['_rowTransformCacheSegment'](_0x105add)+'\x00'+this[_0x24aa07(0x2a2)](_0x2b63b4);}[_0x58a750(0x398)](_0x1b4a34){const _0x420ff7=_0x58a750;return _0x1b4a34?yr({'filter':_r(_0x1b4a34['filter']),'sort':vr(_0x1b4a34[_0x420ff7(0x172)])}):_0x420ff7(0x25a);}[_0x58a750(0x2a2)](_0x10d97f){const _0x408258=_0x58a750;return yr(_0x10d97f[_0x408258(0x36b)](_0x1b5adb=>({'fieldId':_0x1b5adb['fieldId'],'direction':_0x1b5adb[_0x408258(0x15d)]??null})));}[_0x58a750(0x2e8)](_0x2ca8a7,_0x403a06){return _0x2ca8a7+'\x00'+_0x403a06;}[_0x58a750(0x2a1)](_0x3613df,_0x663c0c){const _0x3b3772=_0x58a750;var _0x30c977;let _0x2900de=I(_0x3613df),_0x1bb5ec=this[_0x3b3772(0xee)](_0x3613df,_0x663c0c),_0x30a5ba=(_0x30c977=_0x663c0c[_0x3b3772(0x253)])!=null&&_0x30c977[_0x3b3772(0x148)]['length']?this[_0x3b3772(0xee)](_0x3613df,{..._0x663c0c,'filter':null}):_0x1bb5ec,_0x172091=He(this[_0x3b3772(0x163)](_0x3613df,_0x2900de,_0x663c0c['id'],_0x30a5ba[_0x3b3772(0x36b)](_0x25b7df=>_0x25b7df['recordId'])),_0x30a5ba,new Set(_0x1bb5ec[_0x3b3772(0x36b)](_0x4b17af=>_0x4b17af[_0x3b3772(0x378)])));return{'type':_0x92bd2[_0x3b3772(0x140)],'fields':this['_projectFields'](_0x3613df,_0x663c0c),'rows':_0x172091[_0x3b3772(0x204)],'groups':this[_0x3b3772(0x14e)](_0x3613df,_0x663c0c,_0x172091[_0x3b3772(0x204)],_0x172091[_0x3b3772(0x19d)]),'hierarchy':_0x172091[_0x3b3772(0x19d)],'frozenFieldCount':typeof _0x663c0c[_0x3b3772(0x346)][_0x3b3772(0x1fd)]=='number'?_0x663c0c[_0x3b3772(0x346)][_0x3b3772(0x1fd)]:0x0};}[_0x58a750(0x163)](_0x54e47a,_0x5524b8,_0xdee030,_0xf11e0c){const _0x486699=_0x58a750;let _0x3dd204=_0x54e47a['id']+'\x00'+_0x5524b8+'\x00'+_0xdee030,_0x5bbc16=this['_getCellRevision'](_0x54e47a['id']),_0x571f40=this[_0x486699(0x410)]['get'](_0x3dd204);if(_0x571f40&&_0x571f40[_0x486699(0x19f)]===this['_globalRevision']&&_0x571f40[_0x486699(0x180)]===this[_0x486699(0x1dd)](_0x54e47a['id'])){if(_0x571f40[_0x486699(0x30e)]===_0x5bbc16&&_0x571f40[_0x486699(0x400)]===_0x54e47a)return _0x571f40[_0x486699(0x1a1)];if(!this[_0x486699(0x2bb)](_0x54e47a['id'],_0x571f40['cellRevision'],_0x5bbc16,new Set([_0x5524b8])))return this['_hierarchyIndexCache'][_0x486699(0x191)](_0x3dd204,{..._0x571f40,'table':_0x54e47a,'cellRevision':_0x5bbc16}),_0x571f40['index'];}let _0x1a29b0=L(_0x54e47a,_0x5524b8,_0xf11e0c);return this[_0x486699(0x410)][_0x486699(0x191)](_0x3dd204,{'table':_0x54e47a,'index':_0x1a29b0,'globalRevision':this[_0x486699(0x164)],'tableRevision':this[_0x486699(0x1dd)](_0x54e47a['id']),'cellRevision':_0x5bbc16}),_0x1a29b0;}['_projectHierarchyGroups'](_0x2485f1,_0x2e90e7,_0x391340,_0x6f01f6){const _0x46f9b5=_0x58a750;var _0x365694;if(!((_0x365694=_0x2e90e7[_0x46f9b5(0x3f2)])!=null&&_0x365694['length']))return[];let _0x3c8ba5=new Map(_0x391340[_0x46f9b5(0x36b)](_0xa17ab3=>[_0xa17ab3[_0x46f9b5(0x378)],_0xa17ab3])),_0x2fead5=_0x6f01f6['rootRecordIds']['flatMap'](_0x4b6e37=>{let _0x57e032=_0x3c8ba5['get'](_0x4b6e37);return _0x57e032?[_0x57e032]:[];}),_0xe76106=this['_projectGroups'](_0x2485f1,_0x2e90e7,_0x2fead5),_0x3ed90c=new Map(_0x6f01f6[_0x46f9b5(0x375)][_0x46f9b5(0x36b)]((_0x2fec80,_0x472782)=>[_0x2fec80,_0x472782])),_0x28921a=_0x339725=>{const _0x1b987d=_0x46f9b5;let _0x3b91f=_0x6f01f6[_0x1b987d(0x10e)][_0x339725],_0x1b8eac=_0x3ed90c[_0x1b987d(0x1ce)](_0x339725)??-0x1;return _0x1b8eac<0x0||!_0x3b91f?[]:_0x6f01f6[_0x1b987d(0x375)]['slice'](_0x1b8eac,_0x3b91f[_0x1b987d(0x26d)]+0x1);},_0x23f4e1=_0x38d521=>{const _0x955629=_0x46f9b5;var _0x58c5ae,_0x1f3d9a;return{..._0x38d521,'recordIds':(_0x58c5ae=_0x38d521['children'])!=null&&_0x58c5ae[_0x955629(0x17a)]?_0x38d521[_0x955629(0x2d8)]:_0x38d521[_0x955629(0x2d8)][_0x955629(0x330)](_0x28921a),'children':(_0x1f3d9a=_0x38d521[_0x955629(0x425)])==null?void 0x0:_0x1f3d9a[_0x955629(0x36b)](_0x23f4e1)};};return _0xe76106[_0x46f9b5(0x36b)](_0x23f4e1);}[_0x58a750(0x38d)](_0x39eea6,_0x242795){const _0x52df81=_0x58a750;var _0x13abda;let _0x5c4207=this[_0x52df81(0x235)](_0x39eea6,_0x242795),_0x15af57=_0x5c4207?_0x39eea6[_0x52df81(0x29a)][_0x5c4207]:void 0x0;if(!_0x15af57)return{'type':_0x52df81(0x1b9),'viewType':_0x92bd2['Kanban'],'reason':_0x52df81(0x110),'fieldId':_0x242795[_0x52df81(0x346)][_0x52df81(0x2dc)]};let _0x5c7514=this['_projectRows'](_0x39eea6,_0x242795),_0x15838b=this[_0x52df81(0x234)](_0x39eea6,_0x242795),_0xd777b7=_0x242795[_0x52df81(0x346)]??{},_0x5f500e=this[_0x52df81(0x393)](_0x39eea6,(_0x13abda=_0xd777b7['card'])==null?void 0x0:_0x13abda[_0x52df81(0x3ef)]),_0x58f56a=this['_resolveKanbanCardFieldIds'](_0x39eea6,_0x242795,_0x15af57['id'],_0x5f500e),_0x1da135=new Map();if(F(_0x39eea6,_0x15af57['id'])){let _0x32b305=this[_0x52df81(0x163)](_0x39eea6,_0x15af57['id'],_0x242795['id'],_0x5c7514['map'](_0x37e004=>_0x37e004[_0x52df81(0x378)])),_0x43a40f=new Map();return _0x5c7514[_0x52df81(0x3b6)](_0x2ed91e=>{const _0x185227=_0x52df81;let _0xb7a049=_0x32b305[_0x185227(0x201)][_0x185227(0x1ce)](_0x2ed91e[_0x185227(0x378)])??null,_0x15f59e=_0xb7a049??'',_0x322662=_0xb7a049?_0x39eea6[_0x185227(0x286)][_0xb7a049]:void 0x0,_0x3ed488=_0x43a40f[_0x185227(0x1ce)](_0x15f59e)??{'key':_0x15f59e,'title':_0x322662?String(at(_0x39eea6,_0x322662['id'],_0x39eea6[_0x185227(0x1a8)])??_0xb7a049):this[_0x185227(0xd1)](_0x15af57,_0x15f59e,_0xd777b7),'recordIds':[]};_0x3ed488[_0x185227(0x2d8)][_0x185227(0x2fe)](_0x2ed91e[_0x185227(0x378)]),_0x43a40f['set'](_0x15f59e,_0x3ed488);}),{'type':_0x92bd2[_0x52df81(0x248)],'fields':_0x15838b,'rows':_0x5c7514,'groups':[],'groupFieldId':_0x15af57['id'],'titleFieldId':_0x5f500e,'coverFieldId':this[_0x52df81(0x2b1)](_0x39eea6,_0xd777b7),'cardLayout':_0xd777b7[_0x52df81(0x2d1)]===_0x52df81(0x3be)?'compose':_0x52df81(0x251),'showFieldNames':_0xd777b7[_0x52df81(0x389)]!==!0x1,'visibleCardFieldIds':_0x58f56a,'lanes':['',..._0x32b305[_0x52df81(0x375)]][_0x52df81(0x330)](_0x3b7ccd=>{const _0x407b5b=_0x52df81;let _0x583b18=_0x43a40f[_0x407b5b(0x1ce)](_0x3b7ccd);return _0x583b18!=null&&_0x583b18[_0x407b5b(0x2d8)][_0x407b5b(0x17a)]?[_0x583b18]:[];})};}return this[_0x52df81(0x230)](_0x15af57,_0xd777b7)['forEach'](_0x2fc21d=>_0x1da135[_0x52df81(0x191)](_0x2fc21d[_0x52df81(0x103)],{..._0x2fc21d,'recordIds':[]})),_0x5c7514[_0x52df81(0x3b6)](_0x2ab122=>{const _0x4d6490=_0x52df81;this[_0x4d6490(0x3ed)](_0x15af57,_0x2ab122[_0x4d6490(0x255)][_0x15af57['id']])['forEach'](_0x5631ed=>{const _0x58ce7d=_0x4d6490;let _0x4dd05e=_0x1da135[_0x58ce7d(0x1ce)](_0x5631ed)??{'key':_0x5631ed,'title':this[_0x58ce7d(0xd1)](_0x15af57,_0x5631ed,_0xd777b7),'color':this[_0x58ce7d(0x1a9)](_0x15af57,_0x5631ed,_0xd777b7),'recordIds':[]};_0x4dd05e[_0x58ce7d(0x2d8)]['push'](_0x2ab122[_0x58ce7d(0x378)]),_0x1da135[_0x58ce7d(0x191)](_0x5631ed,_0x4dd05e);});}),{'type':_0x92bd2[_0x52df81(0x248)],'fields':_0x15838b,'rows':_0x5c7514,'groups':this['_projectGroups'](_0x39eea6,_0x242795,_0x5c7514),'groupFieldId':_0x15af57['id'],'titleFieldId':_0x5f500e,'coverFieldId':this[_0x52df81(0x2b1)](_0x39eea6,_0xd777b7),'cardLayout':_0xd777b7[_0x52df81(0x2d1)]===_0x52df81(0x3be)?_0x52df81(0x3be):'normal','showFieldNames':_0xd777b7[_0x52df81(0x389)]!==!0x1,'visibleCardFieldIds':_0x58f56a,'lanes':Array['from'](_0x1da135['values']())};}[_0x58a750(0x235)](_0x3db353,_0x36fc4b){const _0x17e5e2=_0x58a750;var _0x2e670d;let _0x2332b2=(_0x2e670d=_0x36fc4b[_0x17e5e2(0x346)])==null?void 0x0:_0x2e670d['groupFieldId'];return _0x2332b2&&this['_isKanbanGroupField'](_0x3db353,_0x2332b2)?_0x2332b2:this['_findKanbanGroupField'](_0x3db353,_0x410b89=>this[_0x17e5e2(0x3bb)](_0x410b89));}[_0x58a750(0x2d5)](_0x5876ff,_0xe20823){const _0x297763=_0x58a750;for(let _0x4d8dc8 of _0x5876ff[_0x297763(0x3e0)]){let _0x201442=_0x5876ff[_0x297763(0x29a)][_0x4d8dc8];if(_0x201442&&_0xe20823(_0x201442))return _0x201442['id'];}return null;}[_0x58a750(0x25f)](_0x5a2319,_0x1a8a5a){const _0x1a5c2e=_0x58a750;let _0x13090c=_0x5a2319['fields'][_0x1a8a5a];return this[_0x1a5c2e(0x3bb)](_0x13090c)||F(_0x5a2319,_0x1a8a5a);}['_isAllowedKanbanGroupField'](_0x444a64){const _0x5963bb=_0x58a750;return!!_0x444a64&&(_0x444a64[_0x5963bb(0x18d)]===_0x54dcd1[_0x5963bb(0x193)]||_0x444a64[_0x5963bb(0x18d)]===_0x54dcd1[_0x5963bb(0xf3)]||_0x444a64[_0x5963bb(0x18d)]===_0x54dcd1[_0x5963bb(0x2f9)]||_0x444a64[_0x5963bb(0x18d)]===_0x54dcd1[_0x5963bb(0x36d)]||_0x444a64[_0x5963bb(0x18d)]===_0x54dcd1['Group']||_0x444a64['type']===_0x54dcd1['Checkbox']);}[_0x58a750(0x33f)](_0x307aaf){const _0x3c5731=_0x58a750;return _0x307aaf['type']===_0x54dcd1['SingleSelect']||_0x307aaf[_0x3c5731(0x18d)]===_0x54dcd1[_0x3c5731(0xf3)];}[_0x58a750(0x2b1)](_0xe73ae8,_0x877c34){const _0x11287a=_0x58a750;var _0x367124;let _0x5b2957=_0x877c34[_0x11287a(0x2f1)]??((_0x367124=_0x877c34['card'])==null?void 0x0:_0x367124[_0x11287a(0x2f1)])??null;if(!_0x5b2957)return null;let _0x2becf1=_0xe73ae8[_0x11287a(0x29a)][_0x5b2957];return _0x2becf1&&this[_0x11287a(0x1ea)](_0x2becf1)[_0x11287a(0x41e)]?_0x2becf1['id']:null;}[_0x58a750(0x1bd)](_0x3fa0bd,_0x4c8a6f,_0x55e5e5,_0x5bce47=this[_0x58a750(0x393)](_0x3fa0bd,((()=>{const _0x558301=_0x58a750;var _0x170621;return(_0x170621=_0x4c8a6f['config'])==null||(_0x170621=_0x170621['card'])==null?void 0x0:_0x170621[_0x558301(0x3ef)];})()))){const _0x3ba82d=_0x58a750;var _0x104031;let _0xbacbad=_0x4c8a6f[_0x3ba82d(0x346)]??{},_0x506534=(_0x104031=_0xbacbad[_0x3ba82d(0x244)])!=null&&(_0x104031=_0x104031[_0x3ba82d(0x1e9)])!=null&&_0x104031[_0x3ba82d(0x17a)]?_0xbacbad[_0x3ba82d(0x244)][_0x3ba82d(0x1e9)]:ar(_0x3fa0bd,[_0x5bce47,_0x3fa0bd[_0x3ba82d(0x1a8)],_0x55e5e5]),_0x56de6c=_0xbacbad['fieldSettings']??{};return _0x506534['filter'](_0x3a21b6=>{const _0xa122d5=_0x3ba82d;var _0x3e46e5,_0x40b2c5;let _0x1a2a05=_0x3fa0bd[_0xa122d5(0x29a)][_0x3a21b6];return!(!_0x1a2a05||_0x1a2a05[_0xa122d5(0x124)]===!0x0||_0x1a2a05['type']===_0x54dcd1[_0xa122d5(0x249)]||_0x1a2a05['id']===_0x55e5e5||_0x1a2a05['id']===_0x5bce47||(_0x3e46e5=_0x4c8a6f[_0xa122d5(0x285)])!=null&&(_0x3e46e5=_0x3e46e5[_0x3a21b6])!=null&&_0x3e46e5[_0xa122d5(0x30c)]||(_0x40b2c5=_0x56de6c[_0x3a21b6])!=null&&_0x40b2c5[_0xa122d5(0x30c)]);})['sort']((_0xeefeae,_0x2034e1)=>{const _0x3c1844=_0x3ba82d;var _0x3edeae,_0x5e7e27;return(((_0x3edeae=_0x56de6c[_0xeefeae])==null?void 0x0:_0x3edeae[_0x3c1844(0x35e)])??_0x506534[_0x3c1844(0x1c3)](_0xeefeae))-(((_0x5e7e27=_0x56de6c[_0x2034e1])==null?void 0x0:_0x5e7e27[_0x3c1844(0x35e)])??_0x506534[_0x3c1844(0x1c3)](_0x2034e1));});}[_0x58a750(0x230)](_0x8dea8d,_0x2bd840){const _0x593845=_0x58a750;var _0x3e9620;let _0x4e9e1c=(Array['isArray']((_0x3e9620=_0x8dea8d[_0x593845(0x346)])==null?void 0x0:_0x3e9620['options'])?_0x8dea8d['config']['options']:[])[_0x593845(0x330)]((_0x357487,_0x491691)=>{const _0x29f16e=_0x593845;if(_0x357487==null)return[];let _0x5d9df6=typeof _0x357487=='string'?{'id':_0x357487,'name':_0x357487,'color':void 0x0}:_0x357487,_0x1e1667=String(_0x5d9df6['id']??_0x5d9df6[_0x29f16e(0x2fa)]??'option-'+(_0x491691+0x1));return[{'key':_0x1e1667,'title':String(_0x5d9df6['name']??_0x5d9df6['id']??_0x1e1667),'color':this['_kanbanLaneColor'](_0x8dea8d,_0x1e1667,_0x2bd840)}];});return Object[_0x593845(0x23c)](_0x2bd840['columnSettings']??{})[_0x593845(0x3b6)](([_0x20d3bf,_0x163b3b])=>{const _0x3ce2bc=_0x593845;_0x4e9e1c[_0x3ce2bc(0x2c9)](_0xb4c920=>_0xb4c920[_0x3ce2bc(0x103)]===_0x20d3bf)||_0x4e9e1c['push']({'key':_0x20d3bf,'title':this[_0x3ce2bc(0x33f)](_0x8dea8d)?_0x163b3b[_0x3ce2bc(0x404)]??this[_0x3ce2bc(0xd1)](_0x8dea8d,_0x20d3bf,_0x2bd840):this[_0x3ce2bc(0xd1)](_0x8dea8d,_0x20d3bf,_0x2bd840),'color':this[_0x3ce2bc(0x1a9)](_0x8dea8d,_0x20d3bf,_0x2bd840)});}),_0x4e9e1c;}[_0x58a750(0x3ed)](_0x2ee77c,_0x1338c9){const _0x50f161=_0x58a750;let _0x39eb7a=_0x331651=>{const _0x27f605=_0x392b;var _0x2fb7e4;let _0x19295a=_0x331651==null?'':String(_0x331651);return!_0x19295a||!this[_0x27f605(0x33f)](_0x2ee77c)?_0x19295a:((_0x2fb7e4=Ur(_0x2ee77c,_0x19295a))==null?void 0x0:_0x2fb7e4['id'])??_0x19295a;};if(Array[_0x50f161(0x25e)](_0x1338c9)){let _0x5896fa=_0x1338c9[_0x50f161(0x36b)](_0x39eb7a)['filter'](_0x1257c7=>_0x1257c7!=='');return _0x5896fa[_0x50f161(0x17a)]?_0x5896fa:[''];}return[_0x39eb7a(_0x1338c9)];}[_0x58a750(0xd1)](_0x5e2d91,_0x45a9a8,_0x5e2a46){if(!_0x45a9a8)return'Uncategorized';let _0x18a6a0=Ur(_0x5e2d91,_0x45a9a8);return(_0x18a6a0==null?void 0x0:_0x18a6a0['name'])??_0x45a9a8;}['_kanbanLaneColor'](_0x81d02e,_0x38eacd,_0x3a7755){const _0x1a6646=_0x58a750;var _0x3b90be;if(this[_0x1a6646(0x33f)](_0x81d02e))return(_0x3b90be=Ur(_0x81d02e,_0x38eacd))==null?void 0x0:_0x3b90be[_0x1a6646(0x3ee)];}[_0x58a750(0x3e1)](_0x33349c,_0x507497){const _0x55026e=_0x58a750;let _0x5200fc=this[_0x55026e(0x3a0)](_0x33349c,_0x507497[_0x55026e(0x346)]??{}),_0x131a64=_0x33349c['fields'][_0x5200fc[_0x55026e(0x39b)]];if(!_0x131a64||_0x131a64[_0x55026e(0x18d)]!==_0x54dcd1[_0x55026e(0x160)]||_0x131a64[_0x55026e(0x2c8)]===!0x0||_0x131a64[_0x55026e(0x124)]===!0x0||!this[_0x55026e(0x1ea)](_0x131a64)[_0x55026e(0x1d2)])return{'type':'invalid','viewType':_0x92bd2[_0x55026e(0x3f1)],'reason':_0x55026e(0x3c7),'fieldId':_0x5200fc['startDateFieldId']};let _0x14bf20=_0x5200fc[_0x55026e(0x181)]?_0x33349c[_0x55026e(0x29a)][_0x5200fc[_0x55026e(0x181)]]:void 0x0,_0x390e98=this['_projectRows'](_0x33349c,_0x507497);return{'type':_0x92bd2[_0x55026e(0x3f1)],'config':_0x5200fc,'fields':this[_0x55026e(0x234)](_0x33349c,_0x507497),'rows':_0x390e98,'groups':this[_0x55026e(0x37b)](_0x33349c,_0x507497,_0x390e98),'events':_0x390e98[_0x55026e(0x330)](_0x52ab31=>{const _0x425161=_0x55026e;let _0x417444=Jt(_0x52ab31[_0x425161(0x255)][_0x5200fc[_0x425161(0x39b)]]);if(!Number[_0x425161(0x1d8)](_0x417444))return[];let _0x5eaf87=_0x52ab31[_0x425161(0x255)][_0x5200fc[_0x425161(0x39b)]],_0x4c90ec=_0x5200fc['endDateFieldId']==null?void 0x0:_0x52ab31['values'][_0x5200fc['endDateFieldId']],_0x33896a=_0x5200fc[_0x425161(0x181)]==null?void 0x0:Jt(_0x4c90ec),_0x50d7d5=Number[_0x425161(0x1d8)](_0x33896a)?_0x33896a:void 0x0;return[{'recordId':_0x52ab31[_0x425161(0x378)],'title':this[_0x425161(0x18b)](_0x33349c,_0x52ab31,_0x5200fc[_0x425161(0x3ef)]),'start':_0x417444,'end':_0x50d7d5,'color':this['_calendarEventColor'](_0x33349c,_0x52ab31,_0x5200fc),'startMs':_0x417444,'endMs':_0x50d7d5,'allDay':this['_isAllDayCalendarEvent'](_0x131a64,_0x14bf20,_0x5eaf87,_0x4c90ec),'fieldValues':_0x52ab31['values']}];})};}['_normalizeCalendarConfig'](_0x1c7b2d,_0x396ba2){const _0x2bde22=_0x58a750;let _0x504684=this['_resolveCalendarDateFieldId'](_0x1c7b2d,_0x396ba2[_0x2bde22(0x39b)]),_0x3f6841=_0x396ba2[_0x2bde22(0x181)]&&this[_0x2bde22(0x406)](_0x1c7b2d,_0x396ba2[_0x2bde22(0x181)])?_0x396ba2['endDateFieldId']:this[_0x2bde22(0xce)](_0x1c7b2d,_0x504684)??void 0x0,_0x321e18=_0x396ba2[_0x2bde22(0x3ef)]?_0x1c7b2d['fields'][_0x396ba2[_0x2bde22(0x3ef)]]:void 0x0,_0x4ea6bb=_0x321e18&&_0x321e18[_0x2bde22(0x124)]!==!0x0&&_0x321e18['type']!==_0x54dcd1[_0x2bde22(0x249)]?_0x396ba2[_0x2bde22(0x3ef)]:_0x1c7b2d['primaryFieldId'],_0x2ca92b=_0x396ba2[_0x2bde22(0x373)]===_0x2bde22(0x29f)||_0x396ba2[_0x2bde22(0x373)]===_0x2bde22(0x1eb)?_0x396ba2[_0x2bde22(0x373)]:_0x2bde22(0x321),_0x57e124=_0x396ba2[_0x2bde22(0x336)]===_0x2bde22(0x2cf)||_0x396ba2[_0x2bde22(0x336)]===_0x2bde22(0x1a6)?_0x396ba2[_0x2bde22(0x336)]:_0x2bde22(0x289),_0x28ec2d=typeof _0x396ba2['timeZone']==_0x2bde22(0x223)&&_0x396ba2[_0x2bde22(0x2ec)]['trim']()?_0x396ba2[_0x2bde22(0x2ec)]:'local',_0x1413b4=this[_0x2bde22(0x41c)](_0x1c7b2d,_0x396ba2);return{..._0x396ba2,'startDateFieldId':_0x504684,'endDateFieldId':_0x3f6841,'titleFieldId':_0x4ea6bb,'mode':_0x2ca92b,'timeslotSize':_0x57e124,'timeZone':_0x28ec2d,'displayColor':_0x1413b4,'fieldSettings':Object[_0x2bde22(0x241)](Object[_0x2bde22(0x23c)](_0x396ba2['fieldSettings']??{})[_0x2bde22(0x253)](([_0x48b33a])=>{const _0x52ef1e=_0x2bde22;let _0x526e69=_0x1c7b2d[_0x52ef1e(0x29a)][_0x48b33a];return!!(_0x526e69&&_0x526e69['system']!==!0x0&&_0x526e69[_0x52ef1e(0x18d)]!==_0x54dcd1[_0x52ef1e(0x249)]);}))};}[_0x58a750(0x33a)](_0x49e43b,_0x24c03c){const _0x55a4f7=_0x58a750;return _0x24c03c&&this['_isCalendarDateField'](_0x49e43b,_0x24c03c)?_0x24c03c:this[_0x55a4f7(0xce)](_0x49e43b)??_0x24c03c??'';}[_0x58a750(0xce)](_0x4f4031,_0x20bb7c){const _0x353e8d=_0x58a750;for(let _0x4c6023 of _0x4f4031[_0x353e8d(0x3e0)])if(_0x4c6023!==_0x20bb7c&&this['_isCalendarDateField'](_0x4f4031,_0x4c6023))return _0x4c6023;return null;}[_0x58a750(0x406)](_0x8c5856,_0x3db82b){const _0x3ec1b9=_0x58a750;let _0x2d875e=_0x8c5856[_0x3ec1b9(0x29a)][_0x3db82b];return!!_0x2d875e&&_0x2d875e[_0x3ec1b9(0x18d)]===_0x54dcd1[_0x3ec1b9(0x160)]&&_0x2d875e[_0x3ec1b9(0x2c8)]!==!0x0&&_0x2d875e['system']!==!0x0&&this[_0x3ec1b9(0x1ea)](_0x2d875e)['usableAsCalendarDate'];}['_normalizeCalendarDisplayColor'](_0x554764,_0x5ebf32){const _0x3313a4=_0x58a750;let _0x2fd68a=_0x5ebf32[_0x3313a4(0x3ca)];if((_0x2fd68a==null?void 0x0:_0x2fd68a[_0x3313a4(0x18d)])===_0x3313a4(0x2ed)){let _0x2efba7=_0x554764[_0x3313a4(0x29a)][_0x2fd68a[_0x3313a4(0x32d)]];if(_0x2efba7&&_0x2efba7[_0x3313a4(0x18d)]===_0x54dcd1['SingleSelect'])return _0x2fd68a;}if((_0x2fd68a==null?void 0x0:_0x2fd68a['type'])===_0x3313a4(0x280)&&typeof _0x2fd68a[_0x3313a4(0x3ee)]==_0x3313a4(0x223)&&_0x2fd68a[_0x3313a4(0x3ee)][_0x3313a4(0x3b2)]())return{'type':'custom','color':_0x2fd68a['color']};if(_0x5ebf32['colorFieldId']){let _0x4c93bb=_0x554764[_0x3313a4(0x29a)][_0x5ebf32[_0x3313a4(0x190)]];if(_0x4c93bb&&_0x4c93bb['type']===_0x54dcd1[_0x3313a4(0x193)])return{'type':_0x3313a4(0x2ed),'fieldId':_0x5ebf32['colorFieldId']};}return{'type':'custom','color':_0x3313a4(0x2c0)};}[_0x58a750(0x271)](_0x384872,_0x4a310d,_0x67360e){const _0x341547=_0x58a750;let _0x1212c9=_0x67360e[_0x341547(0x3ca)];if((_0x1212c9==null?void 0x0:_0x1212c9['type'])==='selectField'){var _0x31c19d;let _0x5a1d15=_0x384872[_0x341547(0x29a)][_0x1212c9[_0x341547(0x32d)]];if(!_0x5a1d15)return;let _0x5561c3=_0x4a310d[_0x341547(0x255)][_0x1212c9[_0x341547(0x32d)]],_0x181669=Array[_0x341547(0x25e)](_0x5561c3)?_0x5561c3[0x0]:_0x5561c3;return _0x181669==null||(_0x31c19d=Ur(_0x5a1d15,String(_0x181669)))==null?void 0x0:_0x31c19d[_0x341547(0x3ee)];}if((_0x1212c9==null?void 0x0:_0x1212c9[_0x341547(0x18d)])===_0x341547(0x280))return _0x1212c9[_0x341547(0x3ee)];}[_0x58a750(0x1e8)](_0x4c4222,_0x6e963b,_0x1b26f9,_0x55e590){const _0x5293a=_0x58a750;var _0x2b7fd5,_0x1728ad;let _0x32be08=((_0x2b7fd5=_0x4c4222[_0x5293a(0x346)])==null?void 0x0:_0x2b7fd5[_0x5293a(0x1ac)])===!0x0,_0x4cd25a=(_0x6e963b==null||(_0x1728ad=_0x6e963b['config'])==null?void 0x0:_0x1728ad[_0x5293a(0x1ac)])===!0x0;return!_0x32be08&&!_0x4cd25a;}[_0x58a750(0x372)](_0x3b2da1,_0x48b042){const _0xe8790=_0x58a750;var _0xd603fb,_0x99ea3b;let _0x416b12=((_0xd603fb=_0x3b2da1[_0xe8790(0x346)])==null?void 0x0:_0xd603fb[_0xe8790(0x1ac)])===!0x0,_0x23a839=((_0x99ea3b=_0x48b042[_0xe8790(0x346)])==null?void 0x0:_0x99ea3b[_0xe8790(0x1ac)])===!0x0;return!_0x416b12&&!_0x23a839;}[_0x58a750(0x109)](_0x1ecc94,_0x4ad00c){const _0x5b108c=_0x58a750;let _0xcc72b3=this[_0x5b108c(0x125)](_0x1ecc94,_0x4ad00c['config']),_0x446b62=_0x1ecc94[_0x5b108c(0x29a)][_0xcc72b3[_0x5b108c(0x39b)]];if(!_0x446b62||_0x446b62[_0x5b108c(0x18d)]!==_0x54dcd1[_0x5b108c(0x160)]||_0x446b62[_0x5b108c(0x2c8)]===!0x0||_0x446b62[_0x5b108c(0x124)]===!0x0||!this[_0x5b108c(0x1ea)](_0x446b62)['usableAsGanttStart'])return{'type':_0x5b108c(0x1b9),'viewType':_0x92bd2[_0x5b108c(0x152)],'reason':'invalidGanttStartField','fieldId':_0xcc72b3[_0x5b108c(0x39b)]};let _0x3ed9df=_0x1ecc94[_0x5b108c(0x29a)][_0xcc72b3[_0x5b108c(0x181)]];if(!_0x3ed9df||_0x3ed9df[_0x5b108c(0x18d)]!==_0x54dcd1[_0x5b108c(0x160)]||_0x3ed9df[_0x5b108c(0x2c8)]===!0x0||_0x3ed9df[_0x5b108c(0x124)]===!0x0||!this[_0x5b108c(0x1ea)](_0x3ed9df)[_0x5b108c(0x1ef)])return{'type':'invalid','viewType':_0x92bd2[_0x5b108c(0x152)],'reason':_0x5b108c(0x29e),'fieldId':_0xcc72b3[_0x5b108c(0x181)]};let _0x4c7fa5=this['_isAllDayGanttDateRange'](_0x446b62,_0x3ed9df),_0x2af3b5=this['_projectRows'](_0x1ecc94,_0x4ad00c),_0x32c982=_0x2af3b5['flatMap'](_0x573778=>{const _0x490dd2=_0x5b108c;let _0x4f1443=Jt(_0x573778[_0x490dd2(0x255)][_0xcc72b3['startDateFieldId']]),_0x2a7afc=Jt(_0x573778[_0x490dd2(0x255)][_0xcc72b3[_0x490dd2(0x181)]]);if(!Number[_0x490dd2(0x1d8)](_0x4f1443)||!Number[_0x490dd2(0x1d8)](_0x2a7afc))return[];let _0x47aa08=Math['min'](_0x4f1443,_0x2a7afc),_0x23eb54=Math[_0x490dd2(0x194)](_0x4f1443,_0x2a7afc),_0x4eacd2=_0xcc72b3[_0x490dd2(0x150)]==null?void 0x0:Number(_0x573778[_0x490dd2(0x255)][_0xcc72b3[_0x490dd2(0x150)]]);return[{'recordId':_0x573778[_0x490dd2(0x378)],'title':this[_0x490dd2(0x18b)](_0x1ecc94,_0x573778,_0xcc72b3[_0x490dd2(0x3ef)]),'start':_0x47aa08,'end':_0x23eb54,'color':this[_0x490dd2(0x1c7)](_0x1ecc94,_0x573778,_0xcc72b3),'progress':Number[_0x490dd2(0x1d8)](_0x4eacd2)?_0x4eacd2:void 0x0,'workingDayCount':_0xcc72b3[_0x490dd2(0x1d5)]?jr(_0x47aa08,_0x23eb54,_0xcc72b3[_0x490dd2(0x357)]):void 0x0,'dependencyRecordIds':this[_0x490dd2(0x356)](_0x573778['values'][_0xcc72b3[_0x490dd2(0x215)]??''])}];}),_0x458842=_0x32c982[_0x5b108c(0x17a)]?X(Math[_0x5b108c(0x254)](..._0x32c982[_0x5b108c(0x36b)](_0x42b775=>_0x42b775[_0x5b108c(0x2ad)]))-0x5a*xr):X(Date[_0x5b108c(0x158)]()-0x5a*xr),_0xaec997=_0x32c982[_0x5b108c(0x17a)]?X(Math[_0x5b108c(0x194)](..._0x32c982[_0x5b108c(0x36b)](_0x19ff28=>_0x19ff28['end']))+0x5b*xr):X(Date[_0x5b108c(0x158)]()+0x5b*xr),_0x263f48=Cr(_0xcc72b3[_0x5b108c(0x331)],_0x458842,_0xaec997,_0xcc72b3[_0x5b108c(0x1d5)]?_0xcc72b3[_0x5b108c(0x357)]:void 0x0);return{'type':_0x92bd2[_0x5b108c(0x152)],'fields':this['_projectFields'](_0x1ecc94,{..._0x4ad00c,'config':_0xcc72b3}),'rows':_0x2af3b5,'groups':this[_0x5b108c(0x37b)](_0x1ecc94,_0x4ad00c,_0x2af3b5),'config':_0xcc72b3,'dateRangeAllDay':_0x4c7fa5,'timeline':{'scale':_0xcc72b3[_0x5b108c(0x331)],'start':_0x458842,'end':_0xaec997,'unitWidth':_0x263f48[_0x5b108c(0x174)],'majorHeaders':_0x263f48['majorHeaders'],'columns':_0x263f48[_0x5b108c(0x3b3)]},'bars':_0x32c982};}['_normalizeGanttConfig'](_0x4dd33e,_0x28871d){const _0x4bddea=_0x58a750;let _0x3cf5b4=this[_0x4bddea(0x225)](_0x4dd33e,_0x28871d[_0x4bddea(0x39b)],_0x4bddea(0x2ad)),_0x5b5953=this[_0x4bddea(0x225)](_0x4dd33e,_0x28871d['endDateFieldId'],_0x4bddea(0xf0))||_0x3cf5b4,_0xcfe7fd=_0x28871d['titleFieldId']?_0x4dd33e[_0x4bddea(0x29a)][_0x28871d[_0x4bddea(0x3ef)]]:void 0x0,_0x39ca95=_0xcfe7fd&&_0xcfe7fd[_0x4bddea(0x124)]!==!0x0&&_0xcfe7fd[_0x4bddea(0x18d)]!==_0x54dcd1[_0x4bddea(0x249)]?_0x28871d[_0x4bddea(0x3ef)]:_0x4dd33e[_0x4bddea(0x1a8)],_0x294840=_0x28871d[_0x4bddea(0x331)]===_0x4bddea(0x1eb)||_0x28871d[_0x4bddea(0x331)]==='quarter'||_0x28871d[_0x4bddea(0x331)]===_0x4bddea(0x147)?_0x28871d['scale']:_0x4bddea(0x321),_0x17d37f=Sr(_0x28871d['workingDays']);return{..._0x28871d,'startDateFieldId':_0x3cf5b4,'endDateFieldId':_0x5b5953,'titleFieldId':_0x39ca95,'scale':_0x294840,'leftPaneWidth':typeof _0x28871d[_0x4bddea(0x3a5)]==_0x4bddea(0x30a)?_0x28871d['leftPaneWidth']:void 0x0,'leftPaneCollapsed':_0x28871d[_0x4bddea(0x135)]===!0x0,'showTodayLine':_0x28871d[_0x4bddea(0x272)]!==!0x1,'displayColor':this[_0x4bddea(0x3b1)](_0x4dd33e,_0x28871d),'fieldSettings':Object['fromEntries'](Object['entries'](_0x28871d[_0x4bddea(0x285)]??{})[_0x4bddea(0x253)](([_0x5dbb9e])=>{const _0x106e36=_0x4bddea;let _0x2c9f03=_0x4dd33e[_0x106e36(0x29a)][_0x5dbb9e];return!!(_0x2c9f03&&_0x2c9f03[_0x106e36(0x124)]!==!0x0&&_0x2c9f03[_0x106e36(0x18d)]!==_0x54dcd1[_0x106e36(0x249)]);})),'workingDaysOnly':_0x28871d[_0x4bddea(0x1d5)]===!0x0,'workingDays':_0x17d37f};}[_0x58a750(0x225)](_0xab2652,_0x513f08,_0x130530){const _0x5bae03=_0x58a750;if(_0x513f08&&this[_0x5bae03(0x390)](_0xab2652,_0x513f08,_0x130530)||_0x513f08)return _0x513f08;for(let _0x1e02d3 of _0xab2652['fieldOrder'])if(this[_0x5bae03(0x390)](_0xab2652,_0x1e02d3,_0x130530))return _0x1e02d3;return _0x513f08??'';}[_0x58a750(0x390)](_0x2a75d7,_0x322c65,_0x2f8eaa){const _0x282dc2=_0x58a750;let _0x4a01fc=_0x2a75d7[_0x282dc2(0x29a)][_0x322c65];if(!_0x4a01fc||_0x4a01fc['type']!==_0x54dcd1[_0x282dc2(0x160)]||_0x4a01fc[_0x282dc2(0x2c8)]===!0x0||_0x4a01fc[_0x282dc2(0x124)]===!0x0)return!0x1;let _0x266e5d=this['_capabilities'](_0x4a01fc);return _0x2f8eaa==='start'?_0x266e5d[_0x282dc2(0x195)]:_0x266e5d[_0x282dc2(0x1ef)];}['_normalizeGanttDisplayColor'](_0x5d388a,_0xacfc17){const _0x350ae6=_0x58a750;let _0x2eea5e=_0xacfc17[_0x350ae6(0x3ca)];if((_0x2eea5e==null?void 0x0:_0x2eea5e[_0x350ae6(0x18d)])===_0x350ae6(0x2ed)){let _0x5b95bb=_0x5d388a[_0x350ae6(0x29a)][_0x2eea5e['fieldId']];if(_0x5b95bb&&_0x5b95bb['type']===_0x54dcd1[_0x350ae6(0x193)])return _0x2eea5e;}return(_0x2eea5e==null?void 0x0:_0x2eea5e[_0x350ae6(0x18d)])==='conditional'&&Array[_0x350ae6(0x25e)](_0x2eea5e[_0x350ae6(0x2a9)])?{'type':_0x350ae6(0x1b0),'rules':_0x2eea5e['rules'][_0x350ae6(0x253)](_0x2c6994=>!!_0x5d388a[_0x350ae6(0x29a)][_0x2c6994[_0x350ae6(0x32d)]])}:(_0x2eea5e==null?void 0x0:_0x2eea5e['type'])===_0x350ae6(0x280)&&typeof _0x2eea5e[_0x350ae6(0x3ee)]==_0x350ae6(0x223)&&_0x2eea5e['color'][_0x350ae6(0x3b2)]()?{'type':_0x350ae6(0x280),'color':_0x2eea5e[_0x350ae6(0x3ee)]}:{'type':_0x350ae6(0x280),'color':_0x350ae6(0x107)};}[_0x58a750(0x1c7)](_0x1b7e2c,_0xc2bfdc,_0x240f6c){const _0x141791=_0x58a750;let _0x1f3474=_0x240f6c['displayColor'];if((_0x1f3474==null?void 0x0:_0x1f3474['type'])==='conditional'){let _0x1143ea=_0x1f3474[_0x141791(0x2a9)][_0x141791(0x145)](_0x4a2469=>this[_0x141791(0x329)](_0x1b7e2c,_0xc2bfdc,_0x4a2469));if(_0x1143ea)return _0x1143ea[_0x141791(0x3ee)];}if((_0x1f3474==null?void 0x0:_0x1f3474[_0x141791(0x18d)])===_0x141791(0x2ed)){let _0x3c6fde=_0x1b7e2c[_0x141791(0x29a)][_0x1f3474['fieldId']];if(_0x3c6fde){var _0x58b76e;let _0x533f85=_0xc2bfdc[_0x141791(0x255)][_0x1f3474[_0x141791(0x32d)]],_0x51915d=Array[_0x141791(0x25e)](_0x533f85)?_0x533f85[0x0]:_0x533f85,_0x2bcf85=_0x51915d==null||(_0x58b76e=Ur(_0x3c6fde,String(_0x51915d)))==null?void 0x0:_0x58b76e[_0x141791(0x3ee)];if(_0x2bcf85)return _0x2bcf85;}}return(_0x1f3474==null?void 0x0:_0x1f3474[_0x141791(0x18d)])===_0x141791(0x280)?_0x1f3474['color']:_0x141791(0x107);}[_0x58a750(0x329)](_0x142cbb,_0x53fda0,_0x19a839){const _0x3d75e7=_0x58a750;let _0x50c8f9=_0x142cbb[_0x3d75e7(0x29a)][_0x19a839[_0x3d75e7(0x32d)]];return _0x50c8f9?an(_0x53fda0['values'][_0x50c8f9['id']],_0x19a839[_0x3d75e7(0x199)],_0x19a839[_0x3d75e7(0x408)],_0x50c8f9,{'dateMode':_0x19a839[_0x3d75e7(0x3bc)]}):!0x1;}[_0x58a750(0x1a0)](_0x434178,_0x3cac51){const _0x10700e=_0x58a750;let _0x4ae1fd=this['_projectRows'](_0x434178,_0x3cac51),_0x4e4e96=this['_normalizeGalleryConfig'](_0x434178,_0x3cac51['config']??{}),_0x4d6164=this[_0x10700e(0x234)](_0x434178,_0x3cac51);return{'type':_0x92bd2[_0x10700e(0x345)],'fields':_0x4d6164,'rows':_0x4ae1fd,'groups':this[_0x10700e(0x37b)](_0x434178,_0x3cac51,_0x4ae1fd),'titleFieldId':_0x4e4e96['card'][_0x10700e(0x3ef)],'coverFieldId':_0x4e4e96[_0x10700e(0x2f1)],'cardLayout':_0x4e4e96['cardLayout']??_0x10700e(0x251),'showFieldNames':_0x4e4e96[_0x10700e(0x389)]!==!0x1,'visibleCardFieldIds':this['_resolveGalleryCardFieldIds'](_0x434178,_0x3cac51,_0x4e4e96),'cardSize':_0x4e4e96['cardSize']??_0x10700e(0x289),'cards':_0x4ae1fd['map'](_0x27e255=>({'recordId':_0x27e255['recordId'],'title':this[_0x10700e(0x18b)](_0x434178,_0x27e255,_0x4e4e96[_0x10700e(0x244)][_0x10700e(0x3ef)]),'values':_0x27e255[_0x10700e(0x255)]}))};}[_0x58a750(0x13b)](_0x14a182,_0x5e65e5){const _0x50bf4c=_0x58a750;let _0x27bd44=_0x5e65e5['card']??{'fieldIds':[]},_0x43d1b0=this['_resolveCardTitleFieldId'](_0x14a182,_0x27bd44[_0x50bf4c(0x3ef)]),_0x28102a=this[_0x50bf4c(0x32a)](_0x14a182,_0x5e65e5),_0x1b99cd=_0x5e65e5[_0x50bf4c(0x3e6)]==='small'||_0x5e65e5['cardSize']===_0x50bf4c(0x24a)?_0x5e65e5['cardSize']:_0x50bf4c(0x289);return{..._0x5e65e5,'coverFieldId':_0x28102a,'cardLayout':_0x5e65e5['cardLayout']===_0x50bf4c(0x3be)?_0x50bf4c(0x3be):_0x50bf4c(0x251),'showFieldNames':_0x5e65e5[_0x50bf4c(0x389)]!==!0x1,'fieldSettings':Object[_0x50bf4c(0x241)](Object[_0x50bf4c(0x23c)](_0x5e65e5[_0x50bf4c(0x285)]??{})[_0x50bf4c(0x253)](([_0x27c0a4])=>{const _0x35732f=_0x50bf4c;let _0x80f552=_0x14a182['fields'][_0x27c0a4];return!!(_0x80f552&&_0x80f552[_0x35732f(0x124)]!==!0x0&&_0x80f552[_0x35732f(0x18d)]!==_0x54dcd1[_0x35732f(0x249)]);})),'card':{..._0x27bd44,'titleFieldId':_0x43d1b0,'coverFieldId':_0x28102a,'fieldIds':Array[_0x50bf4c(0x25e)](_0x27bd44[_0x50bf4c(0x1e9)])?_0x27bd44[_0x50bf4c(0x1e9)]:[]},'cardSize':_0x1b99cd};}[_0x58a750(0x393)](_0x20b54b,_0x3493cd){const _0x457778=_0x58a750;let _0x479dfc=_0x3493cd?_0x20b54b['fields'][_0x3493cd]:void 0x0;return _0x479dfc&&_0x479dfc[_0x457778(0x124)]!==!0x0&&_0x479dfc[_0x457778(0x18d)]!==_0x54dcd1[_0x457778(0x249)]?_0x479dfc['id']:ir(_0x20b54b);}[_0x58a750(0x32a)](_0x8db8bb,_0x183b99){const _0x423b59=_0x58a750;var _0x5303e9;let _0x1fd53b=_0x183b99['coverFieldId']??((_0x5303e9=_0x183b99[_0x423b59(0x244)])==null?void 0x0:_0x5303e9[_0x423b59(0x2f1)])??null;if(!_0x1fd53b)return null;let _0x3c7117=_0x8db8bb[_0x423b59(0x29a)][_0x1fd53b];return _0x3c7117&&this[_0x423b59(0x1ea)](_0x3c7117)[_0x423b59(0x41e)]?_0x3c7117['id']:null;}[_0x58a750(0xeb)](_0x540e3b,_0x47695c,_0x2ecea8){const _0x49fee1=_0x58a750;var _0x457a5d,_0x41ee2c,_0x52f429;let _0x2a98a4=_0x2ecea8[_0x49fee1(0x285)]??{},_0x58684e=((_0x457a5d=_0x2ecea8[_0x49fee1(0x244)])==null?void 0x0:_0x457a5d[_0x49fee1(0x3ef)])??ir(_0x540e3b),_0x34c014=_0x2ecea8[_0x49fee1(0x2f1)]??((_0x41ee2c=_0x2ecea8[_0x49fee1(0x244)])==null?void 0x0:_0x41ee2c[_0x49fee1(0x2f1)])??null,_0x2712d1=(_0x52f429=_0x2ecea8['card'])!=null&&(_0x52f429=_0x52f429[_0x49fee1(0x1e9)])!=null&&_0x52f429['length']?_0x2ecea8[_0x49fee1(0x244)][_0x49fee1(0x1e9)]:ar(_0x540e3b,[_0x58684e,_0x34c014,_0x540e3b[_0x49fee1(0x1a8)]]);return _0x2712d1['filter'](_0x3de8dc=>{const _0xddca26=_0x49fee1;var _0x1b13b2,_0x131f40;let _0x4fd97a=_0x540e3b['fields'][_0x3de8dc];return!(!_0x4fd97a||_0x4fd97a[_0xddca26(0x124)]===!0x0||_0x4fd97a[_0xddca26(0x18d)]===_0x54dcd1[_0xddca26(0x249)]||_0x4fd97a['id']===_0x58684e||_0x4fd97a['id']===_0x34c014||(_0x1b13b2=_0x47695c[_0xddca26(0x285)])!=null&&(_0x1b13b2=_0x1b13b2[_0x3de8dc])!=null&&_0x1b13b2['hidden']||(_0x131f40=_0x2a98a4[_0x3de8dc])!=null&&_0x131f40[_0xddca26(0x30c)]);})[_0x49fee1(0x172)]((_0x365fcf,_0x517137)=>{const _0x258da2=_0x49fee1;var _0x18edc6,_0x14b305;return(((_0x18edc6=_0x2a98a4[_0x365fcf])==null?void 0x0:_0x18edc6['order'])??_0x2712d1[_0x258da2(0x1c3)](_0x365fcf))-(((_0x14b305=_0x2a98a4[_0x517137])==null?void 0x0:_0x14b305[_0x258da2(0x35e)])??_0x2712d1[_0x258da2(0x1c3)](_0x517137));});}[_0x58a750(0x234)](_0x41a0ed,_0x17d778){const _0x3973a9=_0x58a750;var _0x58e3fe;return((_0x58e3fe=_0x17d778[_0x3973a9(0x3e0)])!=null&&_0x58e3fe[_0x3973a9(0x17a)]?_0x17d778[_0x3973a9(0x3e0)]:_0x41a0ed[_0x3973a9(0x3e0)])[_0x3973a9(0x330)](_0x2b4700=>{const _0x2a2d7b=_0x3973a9;var _0x1887f4;let _0x262c30=_0x41a0ed['fields'][_0x2b4700],_0x929e51=((_0x1887f4=_0x17d778[_0x2a2d7b(0x285)])==null?void 0x0:_0x1887f4[_0x2b4700])??{};return!_0x262c30||_0x262c30[_0x2a2d7b(0x124)]===!0x0||_0x262c30[_0x2a2d7b(0x18d)]===_0x54dcd1[_0x2a2d7b(0x249)]||_0x929e51[_0x2a2d7b(0x30c)]?[]:[{'id':_0x262c30['id'],'name':_0x262c30[_0x2a2d7b(0x2fa)],'description':_0x262c30[_0x2a2d7b(0x399)],'type':_0x262c30['type'],'config':_0x262c30[_0x2a2d7b(0x346)],'width':_0x929e51[_0x2a2d7b(0x165)],'setting':_0x929e51}];});}['_projectRows'](_0x5d4fc0,_0x424e25){const _0x30e927=_0x58a750;var _0x281ea4;return R('BaseProjection.projectRows',()=>{const _0x31bafe=_0x392b;var _0x4c83a0,_0x39f783;let _0x6889c9=this['_projectTableRows'](_0x5d4fc0),_0x3a0b39=this[_0x31bafe(0x1ba)](_0x5d4fc0['id'],_0x424e25),_0x4f4d29=this['_getCellRevision'](_0x5d4fc0['id']),_0x591a06=this[_0x31bafe(0x250)]['get'](_0x3a0b39);if(_0x591a06&&_0x591a06[_0x31bafe(0x19f)]===this[_0x31bafe(0x164)]&&_0x591a06['tableRevision']===this[_0x31bafe(0x1dd)](_0x5d4fc0['id'])){if(_0x591a06[_0x31bafe(0x30e)]===_0x4f4d29&&_0x591a06[_0x31bafe(0x237)]===_0x6889c9)return _0x591a06[_0x31bafe(0x204)];if(_0x591a06[_0x31bafe(0x30e)]!==_0x4f4d29&&!this[_0x31bafe(0x2bb)](_0x5d4fc0['id'],_0x591a06['cellRevision'],_0x4f4d29,this[_0x31bafe(0x11e)](_0x424e25))){let _0xf295d8=_0x591a06['rows']===_0x591a06['baseRows']?_0x6889c9:this['_patchCachedProjectedRows'](_0x591a06['rows'],_0x6889c9);if(_0xf295d8)return this[_0x31bafe(0x250)][_0x31bafe(0x191)](_0x3a0b39,{..._0x591a06,'rows':_0xf295d8,'baseRows':_0x6889c9,'cellRevision':_0x4f4d29}),_0xf295d8;}}let _0x1c127d=R(_0x31bafe(0x18f),()=>this[_0x31bafe(0x2b4)](_0x5d4fc0,_0x424e25,this[_0x31bafe(0x106)](_0x5d4fc0,_0x424e25,_0x6889c9)),{'tableId':_0x5d4fc0['id'],'viewId':_0x424e25==null?void 0x0:_0x424e25['id'],'viewType':_0x424e25==null?void 0x0:_0x424e25[_0x31bafe(0x18d)],'rows':_0x6889c9['length'],'filters':(_0x424e25==null||(_0x4c83a0=_0x424e25[_0x31bafe(0x253)])==null?void 0x0:_0x4c83a0[_0x31bafe(0x148)][_0x31bafe(0x17a)])??0x0,'sorts':(_0x424e25==null||(_0x39f783=_0x424e25[_0x31bafe(0x172)])==null?void 0x0:_0x39f783[_0x31bafe(0x17a)])??0x0});return this[_0x31bafe(0x250)][_0x31bafe(0x191)](_0x3a0b39,{'table':_0x5d4fc0,'rows':_0x1c127d,'baseRows':_0x6889c9,'globalRevision':this[_0x31bafe(0x164)],'tableRevision':this[_0x31bafe(0x1dd)](_0x5d4fc0['id']),'cellRevision':_0x4f4d29}),_0x1c127d;},{'tableId':_0x5d4fc0['id'],'viewId':_0x424e25==null?void 0x0:_0x424e25['id'],'viewType':_0x424e25==null?void 0x0:_0x424e25[_0x30e927(0x18d)],'records':((_0x281ea4=_0x5d4fc0[_0x30e927(0x22a)])==null?void 0x0:_0x281ea4[_0x30e927(0x17a)])??Object['keys'](_0x5d4fc0[_0x30e927(0x286)]??{})['length']});}[_0x58a750(0x273)](_0x118b47){const _0xbdbc85=_0x58a750;var _0x467c29;return R(_0xbdbc85(0x1f9),()=>{const _0x9f3db7=_0xbdbc85;var _0x558449;let _0x1c7068=this[_0x9f3db7(0x385)](_0x118b47['id']),_0x3918de=this['_projectedRowsCache'][_0x9f3db7(0x1ce)](_0x118b47['id']);if(_0x3918de&&_0x3918de['globalRevision']===this[_0x9f3db7(0x164)]&&_0x3918de['tableRevision']===this[_0x9f3db7(0x1dd)](_0x118b47['id'])){if(_0x3918de['cellRevision']===_0x1c7068&&_0x3918de[_0x9f3db7(0x400)]===_0x118b47)return _0x3918de['rows'];let _0x16ea11=this['_patchProjectedRowsForCellInvalidations'](_0x118b47,_0x3918de,_0x1c7068);if(_0x16ea11)return _0x16ea11;}gr(_0x118b47)||z(_0x118b47);let _0x46fceb=(_0x558449=_0x118b47[_0x9f3db7(0x22a)])!=null&&_0x558449[_0x9f3db7(0x17a)]?_0x118b47[_0x9f3db7(0x22a)]:br(_0x118b47['records']),_0x468b89=R('BaseProjection.materializeTableRows',()=>{const _0x16bd4f=_0x9f3db7;let _0x50620c=[];for(let _0x5f0948 of _0x46fceb){let _0xf9d7b1=_0x118b47['records'][_0x5f0948];if(!_0xf9d7b1)continue;let _0x10abff={};for(let _0x26eec7 of _0x118b47['fieldOrder'])_0x10abff[_0x26eec7]=at(_0x118b47,_0xf9d7b1['id'],_0x26eec7);_0x50620c[_0x16bd4f(0x2fe)]({'recordId':_0xf9d7b1['id'],'values':_0x10abff});}return _0x50620c;},{'tableId':_0x118b47['id'],'records':_0x46fceb['length'],'fields':_0x118b47[_0x9f3db7(0x3e0)][_0x9f3db7(0x17a)]});return this[_0x9f3db7(0x40a)][_0x9f3db7(0x191)](_0x118b47['id'],{'table':_0x118b47,'rows':_0x468b89,'rowIndexById':hr(_0x468b89),'globalRevision':this[_0x9f3db7(0x164)],'tableRevision':this[_0x9f3db7(0x1dd)](_0x118b47['id']),'cellRevision':_0x1c7068}),_0x468b89;},{'tableId':_0x118b47['id'],'records':((_0x467c29=_0x118b47['recordOrder'])==null?void 0x0:_0x467c29[_0xbdbc85(0x17a)])??Object[_0xbdbc85(0x29c)](_0x118b47[_0xbdbc85(0x286)]??{})['length'],'fields':_0x118b47['fieldOrder']['length']});}[_0x58a750(0x353)](_0x46aa43,_0x53981a,_0x595009){const _0x148669=_0x58a750;let _0x1b85f8=(this['_cellInvalidations'][_0x148669(0x1ce)](_0x46aa43['id'])??[])['filter'](_0x128513=>_0x128513['revision']>_0x53981a[_0x148669(0x30e)]&&_0x128513[_0x148669(0xe3)]<=_0x595009);if(!_0x1b85f8[_0x148669(0x17a)])return _0x53981a[_0x148669(0x400)]===_0x46aa43?_0x53981a[_0x148669(0x204)]:null;let _0x2d4fcd=_0x53981a[_0x148669(0x204)],_0x17a504=new Map();for(let _0xd84c65 of _0x1b85f8){let _0x5bd190=_0x17a504[_0x148669(0x1ce)](_0xd84c65['recordId']);_0x5bd190||(_0x5bd190=new Set(),_0x17a504[_0x148669(0x191)](_0xd84c65['recordId'],_0x5bd190)),_0x5bd190['add'](_0xd84c65[_0x148669(0x32d)]);}for(let [_0x9942dd,_0xf52c66]of _0x17a504){if(!_0x46aa43[_0x148669(0x286)][_0x9942dd])return null;let _0x57ae67=_0x53981a[_0x148669(0xd6)][_0x148669(0x1ce)](_0x9942dd);if(_0x57ae67==null)return null;_0x2d4fcd===_0x53981a[_0x148669(0x204)]&&(_0x2d4fcd=[..._0x53981a['rows']]);let _0x2c9814=_0x2d4fcd[_0x57ae67],_0x178a09={..._0x2c9814['values']};_0xf52c66['forEach'](_0x523c22=>{_0x178a09[_0x523c22]=at(_0x46aa43,_0x9942dd,_0x523c22);}),_0x2d4fcd[_0x57ae67]={..._0x2c9814,'values':_0x178a09};}let _0x55c8ce={'table':_0x46aa43,'rows':_0x2d4fcd,'rowIndexById':_0x53981a[_0x148669(0xd6)],'globalRevision':this[_0x148669(0x164)],'tableRevision':this[_0x148669(0x1dd)](_0x46aa43['id']),'cellRevision':_0x595009};return this['_projectedRowsCache'][_0x148669(0x191)](_0x46aa43['id'],_0x55c8ce),this[_0x148669(0x317)][_0x148669(0x191)](_0x46aa43['id'],(this[_0x148669(0x317)][_0x148669(0x1ce)](_0x46aa43['id'])??[])[_0x148669(0x253)](_0x4a5987=>_0x4a5987[_0x148669(0xe3)]>Math[_0x148669(0x194)](0x0,_0x595009-0x100))),_0x2d4fcd;}['_patchCachedProjectedRows'](_0x2ec845,_0x43a226){const _0x56743b=_0x58a750;let _0x2d0fc6=new Map(_0x43a226[_0x56743b(0x36b)](_0x228a36=>[_0x228a36[_0x56743b(0x378)],_0x228a36])),_0x5eb6dc=!0x1,_0x1bdddc=_0x2ec845[_0x56743b(0x36b)](_0x55e84c=>{const _0x2c5aec=_0x56743b;let _0x5b9759=_0x2d0fc6[_0x2c5aec(0x1ce)](_0x55e84c[_0x2c5aec(0x378)]);return _0x5b9759?_0x5b9759===_0x55e84c?_0x55e84c:(_0x5eb6dc=!0x0,_0x5b9759):_0x55e84c;});return _0x5eb6dc?_0x1bdddc:_0x2ec845;}[_0x58a750(0x2bb)](_0x55f7d2,_0x478253,_0x2b4e37,_0x33a7db){const _0x1b45f6=_0x58a750;return!_0x33a7db[_0x1b45f6(0x3e9)]||_0x478253===_0x2b4e37?!0x1:_0x2b4e37-_0x478253>0x100||(this[_0x1b45f6(0x317)][_0x1b45f6(0x1ce)](_0x55f7d2)??[])[_0x1b45f6(0x2c9)](_0x16046e=>_0x16046e[_0x1b45f6(0xe3)]>_0x478253&&_0x16046e[_0x1b45f6(0xe3)]<=_0x2b4e37&&_0x33a7db[_0x1b45f6(0x192)](_0x16046e[_0x1b45f6(0x32d)]));}[_0x58a750(0x11e)](_0x2a644f){const _0x53755f=_0x58a750;var _0x4fbcd8,_0x4e68ca;let _0x246718=new Set();return _0x2a644f==null||(_0x4fbcd8=_0x2a644f[_0x53755f(0x253)])==null||_0x4fbcd8['conditions'][_0x53755f(0x3b6)](_0x40f215=>_0x246718[_0x53755f(0x2a8)](_0x40f215['fieldId'])),_0x2a644f==null||(_0x4e68ca=_0x2a644f[_0x53755f(0x172)])==null||_0x4e68ca[_0x53755f(0x3b6)](_0x8d222f=>_0x246718[_0x53755f(0x2a8)](_0x8d222f[_0x53755f(0x32d)])),_0x246718;}[_0x58a750(0x395)](_0x4660e4){const _0x261900=_0x58a750;var _0x5d3fce;let _0x168545=this['_filterSortFieldIds'](_0x4660e4);return(_0x5d3fce=_0x4660e4[_0x261900(0x3f2)])==null||_0x5d3fce[_0x261900(0x3b6)](_0x388043=>_0x168545[_0x261900(0x2a8)](_0x388043[_0x261900(0x32d)])),_0x168545;}[_0x58a750(0x106)](_0x4ad792,_0x4503fe,_0x3d5f77){const _0x5e7349=_0x58a750;let _0x536f66=_0x4503fe==null?void 0x0:_0x4503fe[_0x5e7349(0x253)];if(!(_0x536f66!=null&&_0x536f66[_0x5e7349(0x148)]['length']))return _0x3d5f77;let _0x4d6675=_0x536f66[_0x5e7349(0x148)][_0x5e7349(0x253)](_0x1cfa2e=>!Hr(_0x1cfa2e));return _0x4d6675[_0x5e7349(0x17a)]?_0x3d5f77[_0x5e7349(0x253)](_0xb8d398=>{const _0x2e6b13=_0x5e7349;if(_0x536f66[_0x2e6b13(0x123)]===_0x56d9d3['OR']){for(let _0xf36c9a of _0x4d6675){let _0x38f282=_0x4ad792[_0x2e6b13(0x29a)][_0xf36c9a[_0x2e6b13(0x32d)]];if(!_0x38f282||this[_0x2e6b13(0x28c)][_0x2e6b13(0x1ce)](_0x38f282[_0x2e6b13(0x18d)])[_0x2e6b13(0x253)](_0xb8d398[_0x2e6b13(0x255)][_0x38f282['id']],_0xf36c9a[_0x2e6b13(0x199)],_0xf36c9a[_0x2e6b13(0x408)],_0x38f282))return!0x0;}return!0x1;}for(let _0x11e374 of _0x4d6675){let _0x537daa=_0x4ad792[_0x2e6b13(0x29a)][_0x11e374[_0x2e6b13(0x32d)]];if(_0x537daa&&!this['_fieldRegistry'][_0x2e6b13(0x1ce)](_0x537daa[_0x2e6b13(0x18d)])[_0x2e6b13(0x253)](_0xb8d398[_0x2e6b13(0x255)][_0x537daa['id']],_0x11e374[_0x2e6b13(0x199)],_0x11e374[_0x2e6b13(0x408)],_0x537daa))return!0x1;}return!0x0;}):_0x3d5f77;}[_0x58a750(0x2b4)](_0x2220a5,_0x1aea73,_0x555f78){const _0x4fbf8c=_0x58a750;let _0x3541b4=(_0x1aea73==null?void 0x0:_0x1aea73[_0x4fbf8c(0x172)])??[];if(!_0x3541b4[_0x4fbf8c(0x17a)])return _0x555f78;let _0x48edaa=_0x3541b4['flatMap'](_0x146515=>{const _0x36d8f3=_0x4fbf8c;let _0x5e5d93=_0x2220a5[_0x36d8f3(0x29a)][_0x146515[_0x36d8f3(0x32d)]];return _0x5e5d93?[{..._0x146515,'field':_0x5e5d93}]:[];});return _0x48edaa[_0x4fbf8c(0x17a)]?this[_0x4fbf8c(0xcc)](_0x48edaa)?this[_0x4fbf8c(0xe1)](_0x48edaa,_0x555f78):[..._0x555f78][_0x4fbf8c(0x172)]((_0x15a742,_0xfc926a)=>{const _0x4720b4=_0x4fbf8c;for(let _0x561d6e of _0x48edaa){let _0x1ebe2a=_0x561d6e[_0x4720b4(0x2ee)],_0x52bec1=this[_0x4720b4(0x28c)]['get'](_0x1ebe2a[_0x4720b4(0x18d)])[_0x4720b4(0x16b)](_0x15a742[_0x4720b4(0x255)][_0x1ebe2a['id']],_0xfc926a['values'][_0x1ebe2a['id']],_0x1ebe2a);if(_0x52bec1!==0x0)return _0x561d6e['direction']===_0x5d1b53[_0x4720b4(0x31e)]?-_0x52bec1:_0x52bec1;}return 0x0;}):_0x555f78;}[_0x58a750(0xcc)](_0x235091){const _0x1893b2=_0x58a750;return _0x235091['every'](_0x600496=>fr[_0x1893b2(0x192)](_0x600496['field']['type']));}[_0x58a750(0xe1)](_0x3f677c,_0x42375f){const _0x56f6e9=_0x58a750;return _0x42375f['map']((_0x5c7b43,_0x4967da)=>({'row':_0x5c7b43,'index':_0x4967da,'keys':_0x3f677c[_0x56f6e9(0x36b)](_0x317171=>_0x5c7b43['values'][_0x317171[_0x56f6e9(0x32d)]])}))[_0x56f6e9(0x172)]((_0x4bb595,_0x3194f2)=>{const _0x2de73c=_0x56f6e9;for(let _0x580bfb=0x0;_0x580bfb<_0x3f677c[_0x2de73c(0x17a)];_0x580bfb++){let _0x8973ee=Vr(_0x4bb595[_0x2de73c(0x29c)][_0x580bfb],_0x3194f2['keys'][_0x580bfb]);if(_0x8973ee!==0x0)return _0x3f677c[_0x580bfb][_0x2de73c(0x15d)]===_0x5d1b53[_0x2de73c(0x31e)]?-_0x8973ee:_0x8973ee;}return _0x4bb595[_0x2de73c(0x1a1)]-_0x3194f2[_0x2de73c(0x1a1)];})[_0x56f6e9(0x36b)](_0x5043fd=>_0x5043fd[_0x56f6e9(0x207)]);}[_0x58a750(0x37b)](_0x46e585,_0x108ca2,_0x365ca5){const _0x3899a2=_0x58a750;var _0x1aee5e;return R(_0x3899a2(0x3dc),()=>{const _0x249691=_0x3899a2;var _0x2fff3e;if(!((_0x2fff3e=_0x108ca2[_0x249691(0x3f2)])!=null&&_0x2fff3e[_0x249691(0x17a)]))return[];let _0x30dffa=_0x108ca2[_0x249691(0x3f2)][_0x249691(0x253)](_0x23275c=>_0x46e585[_0x249691(0x29a)][_0x23275c['fieldId']]);if(!_0x30dffa['length'])return[];let _0x532d47=this[_0x249691(0x3c8)](_0x46e585['id'],_0x108ca2,_0x30dffa),_0x3a7324=this[_0x249691(0x385)](_0x46e585['id']),_0x41834e=this[_0x249691(0x360)][_0x249691(0x1ce)](_0x532d47);if(_0x41834e&&_0x41834e[_0x249691(0x19f)]===this[_0x249691(0x164)]&&_0x41834e['tableRevision']===this[_0x249691(0x1dd)](_0x46e585['id'])){if(_0x41834e[_0x249691(0x30e)]===_0x3a7324&&_0x41834e['rows']===_0x365ca5)return _0x41834e[_0x249691(0x381)];if(_0x41834e['cellRevision']!==_0x3a7324&&!this['_cellInvalidationsTouchFields'](_0x46e585['id'],_0x41834e[_0x249691(0x30e)],_0x3a7324,this[_0x249691(0x395)](_0x108ca2)))return this[_0x249691(0x360)][_0x249691(0x191)](_0x532d47,{..._0x41834e,'rows':_0x365ca5,'cellRevision':_0x3a7324}),_0x41834e[_0x249691(0x381)];}let _0x521adc=new Map();for(let _0x2d601e of _0x365ca5){let _0xd8ac82=_0x521adc,_0x195c85='';for(let _0xe417b0=0x0;_0xe417b0<_0x30dffa[_0x249691(0x17a)];_0xe417b0++){let _0x3c54b0=_0x30dffa[_0xe417b0],_0x49769d=_0x2d601e[_0x249691(0x255)][_0x3c54b0[_0x249691(0x32d)]],_0xe8ac4d=mr(_0x49769d),_0x76e7a6=_0x3c54b0['fieldId']+'\x00'+_0xe8ac4d,_0x561939=_0x195c85+'/'+_0x3c54b0[_0x249691(0x32d)]+':'+_0xe8ac4d,_0x44d718=_0xd8ac82[_0x249691(0x1ce)](_0x76e7a6);_0x44d718||(_0x44d718={'key':_0xe8ac4d,'value':_0x49769d,'path':_0x561939,'label':_0xe8ac4d||'Empty','fieldId':_0x3c54b0[_0x249691(0x32d)],'level':_0xe417b0,'recordIds':[],'children':new Map()},_0xd8ac82[_0x249691(0x191)](_0x76e7a6,_0x44d718)),_0x44d718[_0x249691(0x2d8)][_0x249691(0x2fe)](_0x2d601e[_0x249691(0x378)]),_0xd8ac82=_0x44d718[_0x249691(0x425)],_0x195c85=_0x561939;}}let _0x4e6309=this[_0x249691(0x39a)](_0x30dffa,_0x521adc,0x0);return this['_projectedGroupsCache'][_0x249691(0x191)](_0x532d47,{'table':_0x46e585,'rows':_0x365ca5,'groups':_0x4e6309,'globalRevision':this[_0x249691(0x164)],'tableRevision':this['_getTableRevision'](_0x46e585['id']),'cellRevision':_0x3a7324}),_0x4e6309;},{'tableId':_0x46e585['id'],'viewId':_0x108ca2['id'],'viewType':_0x108ca2['type'],'rows':_0x365ca5['length'],'groupFields':((_0x1aee5e=_0x108ca2[_0x3899a2(0x3f2)])==null?void 0x0:_0x1aee5e['length'])??0x0});}['_materializeGroups'](_0x9219bf,_0x15bdb6,_0x3e30d8){const _0x17022f=_0x58a750;var _0x254ddc;let _0x4b083a=Array[_0x17022f(0x247)](_0x15bdb6[_0x17022f(0x255)]()),_0x43e346=(_0x254ddc=_0x9219bf[_0x3e30d8])==null?void 0x0:_0x254ddc['direction'];return _0x43e346&&_0x4b083a['sort']((_0x36613f,_0x4ee6a9)=>{const _0x5c1964=_0x17022f;let _0x1388f0=_0x36613f['key'][_0x5c1964(0x291)](_0x4ee6a9['key']);return _0x43e346===_0x5d1b53[_0x5c1964(0x31e)]?-_0x1388f0:_0x1388f0;}),_0x4b083a['map'](_0x148bb0=>({'key':_0x148bb0['key'],'value':_0x148bb0[_0x17022f(0x29b)],'path':_0x148bb0['path'],'label':_0x148bb0[_0x17022f(0x3df)],'fieldId':_0x148bb0[_0x17022f(0x32d)],'level':_0x148bb0['level'],'recordIds':_0x148bb0['recordIds'],'children':this[_0x17022f(0x39a)](_0x9219bf,_0x148bb0[_0x17022f(0x425)],_0x3e30d8+0x1)}));}[_0x58a750(0x18b)](_0x10cb2a,_0x3c91e1,_0x5b07a1){const _0x251fbf=_0x58a750;let _0x31e19a=_0x5b07a1??_0x10cb2a[_0x251fbf(0x1a8)],_0x3a25b9=_0x3c91e1[_0x251fbf(0x255)][_0x31e19a];return _0x3a25b9==null?'':String(_0x3a25b9);}[_0x58a750(0x356)](_0x43e0df){const _0xcadd0e=_0x58a750;if(Array[_0xcadd0e(0x25e)](_0x43e0df))return _0x43e0df['map'](String);if(typeof _0x43e0df==_0xcadd0e(0x223)&&_0x43e0df)return[_0x43e0df];}[_0x58a750(0x1ea)](_0x2643f0){const _0x55fc39=_0x58a750;return this[_0x55fc39(0x28c)]['get'](_0x2643f0[_0x55fc39(0x18d)])[_0x55fc39(0x177)](_0x2643f0);}};pr=$n([J(0x0,_0x2e761d(qn))],pr);function mr(_0x35f884){return _0x35f884==null?'':String(_0x35f884);}function hr(_0x356eba){const _0x485b82=_0x58a750;return new Map(_0x356eba['map']((_0x1c7987,_0x3deff0)=>[_0x1c7987[_0x485b82(0x378)],_0x3deff0]));}function gr(_0x357415){const _0xe85c3b=_0x58a750;return!!(Array[_0xe85c3b(0x25e)](_0x357415['recordOrder'])&&_0x357415[_0xe85c3b(0x1b6)]&&_0x357415[_0xe85c3b(0x2c1)]&&_0x357415['colIndex']&&_0x357415[_0xe85c3b(0x28b)]&&_0x357415['cellData']);}function _r(_0x43f51d){const _0x4fb595=_0x58a750;return _0x43f51d!=null&&_0x43f51d[_0x4fb595(0x148)][_0x4fb595(0x17a)]?{'conjunction':_0x43f51d['conjunction'],'conditions':_0x43f51d[_0x4fb595(0x148)][_0x4fb595(0x36b)](_0x10a517=>({'fieldId':_0x10a517['fieldId'],'operator':_0x10a517[_0x4fb595(0x199)],'operand':_0x10a517[_0x4fb595(0x408)]}))}:null;}function vr(_0x55e532){const _0x4d75f7=_0x58a750;return _0x55e532!=null&&_0x55e532[_0x4d75f7(0x17a)]?_0x55e532[_0x4d75f7(0x36b)](_0x2012c1=>({'fieldId':_0x2012c1['fieldId'],'direction':_0x2012c1[_0x4d75f7(0x15d)]})):null;}function yr(_0x194ed0){const _0x203b40=_0x58a750;if(typeof _0x194ed0!=_0x203b40(0x133)||!_0x194ed0)return JSON[_0x203b40(0x403)](_0x194ed0)??_0x203b40(0x405);if(Array[_0x203b40(0x25e)](_0x194ed0))return'['+_0x194ed0[_0x203b40(0x36b)](yr)[_0x203b40(0x20b)](',')+']';let _0x4db592=_0x194ed0;return'{'+Object[_0x203b40(0x29c)](_0x4db592)[_0x203b40(0x172)]()['map'](_0x3a8fe8=>JSON[_0x203b40(0x403)](_0x3a8fe8)+':'+yr(_0x4db592[_0x3a8fe8]))[_0x203b40(0x20b)](',')+'}';}function br(_0x53b339){const _0x5600df=_0x58a750;let _0x2d8ab6=Object[_0x5600df(0x255)](_0x53b339)[_0x5600df(0x172)]((_0x4a7b1c,_0xd725cf)=>_0x4a7b1c[_0x5600df(0x368)][_0x5600df(0x291)](_0xd725cf[_0x5600df(0x368)])),_0x40e126=[];for(let _0x481536 of _0x2d8ab6)_0x40e126[_0x5600df(0x2fe)](_0x481536['id']);return _0x40e126;}const xr=0x5a0*0x3c*0x3e8;function Sr(_0x3a83d6){const _0x23d49f=_0x58a750;return{'weekdays':Array[_0x23d49f(0x25e)](_0x3a83d6==null?void 0x0:_0x3a83d6[_0x23d49f(0x1dc)])&&_0x3a83d6[_0x23d49f(0x1dc)]['length']?[...new Set(_0x3a83d6[_0x23d49f(0x1dc)]['filter'](_0x30ec5d=>Number[_0x23d49f(0x25b)](_0x30ec5d)&&_0x30ec5d>=0x1&&_0x30ec5d<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x23d49f(0x25e)](_0x3a83d6==null?void 0x0:_0x3a83d6[_0x23d49f(0x1b3)])?_0x3a83d6['exceptions']['flatMap'](_0x3616c6=>!_0x3616c6||!Number['isFinite'](_0x3616c6['date'])?[]:[{'id':String(_0x3616c6['id']||_0x23d49f(0x3d2)+_0x3616c6[_0x23d49f(0x3af)]),'date':X(Number(_0x3616c6[_0x23d49f(0x3af)])),'name':String(_0x3616c6[_0x23d49f(0x2fa)]||'Working\x20day'),'type':_0x3616c6[_0x23d49f(0x18d)]===_0x23d49f(0xde)?_0x23d49f(0xde):_0x23d49f(0x369)}]):[]};}function Cr(_0x221c12,_0x3d101f,_0x4b8daf,_0x3a0922){let _0x3249c7=Dr(_0x221c12,_0x3d101f),_0x4ba87d=Or(_0x221c12,_0x4b8daf),_0x21f033=wr(_0x221c12,_0x3249c7,_0x4ba87d,_0x3a0922);return{'scale':_0x221c12,'start':_0x3249c7,'end':_0x4ba87d,'unitWidth':Er(_0x221c12),'majorHeaders':Tr(_0x221c12,_0x3249c7,_0x4ba87d),'columns':_0x21f033};}function wr(_0x3a228a,_0x570194,_0x17ea32,_0x1eed4a){const _0x2d06e9=_0x58a750;let _0x184851=[],_0x270a59=_0x570194;for(;_0x270a59<_0x17ea32;){let _0x319b6d=_0x3a228a==='quarter'?Lr(_0x270a59,0x7):_0x3a228a===_0x2d06e9(0x147)?Rr(_0x270a59,0x1):Lr(_0x270a59,0x1);_0x184851[_0x2d06e9(0x2fe)]({'id':_0x3a228a+'-'+_0x270a59,'label':kr(_0x3a228a,_0x270a59,_0x319b6d),'majorLabel':Ar(_0x3a228a,_0x270a59),'start':_0x270a59,'end':_0x319b6d,'nonWorking':Mr(_0x270a59,_0x319b6d,_0x1eed4a)}),_0x270a59=_0x319b6d;}return _0x184851;}function Tr(_0x3ccbf5,_0x405b95,_0x524338){const _0x317b3e=_0x58a750;let _0x4d66bf=[],_0x1f97e5=_0x3ccbf5===_0x317b3e(0x147)?Ir(_0x405b95):Fr(_0x405b95);for(;_0x1f97e5<_0x524338;){let _0x445a40=_0x3ccbf5==='year'?zr(_0x1f97e5,0x1):Rr(_0x1f97e5,0x1);_0x4d66bf[_0x317b3e(0x2fe)]({'id':_0x317b3e(0x1cb)+_0x1f97e5,'label':_0x3ccbf5===_0x317b3e(0x147)?String(new Date(_0x1f97e5)[_0x317b3e(0x2ce)]()):Br(_0x1f97e5),'start':_0x1f97e5,'end':_0x445a40}),_0x1f97e5=_0x445a40;}return _0x4d66bf;}function Er(_0x435a2c){const _0x3b4c12=_0x58a750;switch(_0x435a2c){case _0x3b4c12(0x1eb):return 0xac;case _0x3b4c12(0x2d6):return 0xac;case _0x3b4c12(0x147):return 0x88;default:return 0x56;}}function Dr(_0x234251,_0x2c1ca7){const _0x4804bd=_0x58a750;return _0x234251===_0x4804bd(0x147)?Ir(_0x2c1ca7):_0x234251==='quarter'?Pr(_0x2c1ca7):X(_0x2c1ca7);}function Or(_0x5ea0ee,_0x59fda5){const _0x31ce07=_0x58a750;return _0x5ea0ee==='year'?zr(Ir(_0x59fda5),0x1):_0x5ea0ee===_0x31ce07(0x2d6)?Lr(Pr(_0x59fda5),0x7):Lr(X(_0x59fda5),0x1);}function kr(_0x51da37,_0x178479,_0x4ef59f){const _0x20b1ce=_0x58a750;let _0x3b9332=new Date(_0x178479);return _0x51da37===_0x20b1ce(0x2d6)?_0x3b9332['getUTCDate']()+'-'+new Date(_0x4ef59f-xr)[_0x20b1ce(0x179)]():_0x51da37===_0x20b1ce(0x147)?_0x3b9332[_0x20b1ce(0x246)](_0x20b1ce(0x37a),{'month':_0x20b1ce(0x2cf),'timeZone':_0x20b1ce(0x20e)}):String(_0x3b9332[_0x20b1ce(0x179)]());}function Ar(_0x3dd65f,_0x4bec36){const _0x13f3e1=_0x58a750;return _0x3dd65f===_0x13f3e1(0x147)?String(new Date(_0x4bec36)[_0x13f3e1(0x2ce)]()):Br(_0x4bec36);}function jr(_0x3a7168,_0x51be7a,_0x843078){let _0x17d88f=Sr(_0x843078),_0x5ecd99=0x0;for(let _0x3e8e9b=X(_0x3a7168);_0x3e8e9b<=X(_0x51be7a);_0x3e8e9b=Lr(_0x3e8e9b,0x1))Nr(_0x3e8e9b,_0x17d88f)||_0x5ecd99++;return _0x5ecd99;}function Mr(_0x2a99fa,_0x5744e3,_0x14a6ec){if(!_0x14a6ec)return!0x1;let _0x39ba6c=Sr(_0x14a6ec);for(let _0x270fa9=X(_0x2a99fa);_0x270fa9<_0x5744e3;_0x270fa9=Lr(_0x270fa9,0x1))if(!Nr(_0x270fa9,_0x39ba6c))return!0x1;return!0x0;}function Nr(_0x9d2c5f,_0x28f366){const _0x3e8ef9=_0x58a750;let _0xdfce12=X(_0x9d2c5f),_0x3573c9=_0x28f366[_0x3e8ef9(0x1b3)][_0x3e8ef9(0x145)](_0x4ddfa3=>X(_0x4ddfa3[_0x3e8ef9(0x3af)])===_0xdfce12);if(_0x3573c9)return _0x3573c9[_0x3e8ef9(0x18d)]===_0x3e8ef9(0x369);let _0x40e8d0=new Date(_0xdfce12)[_0x3e8ef9(0x162)](),_0x1f7ec5=_0x40e8d0===0x0?0x7:_0x40e8d0;return!_0x28f366[_0x3e8ef9(0x1dc)][_0x3e8ef9(0x422)](_0x1f7ec5);}function X(_0x10ffc2){const _0x11eb1b=_0x58a750;let _0x28de50=new Date(_0x10ffc2);return Date[_0x11eb1b(0x20e)](_0x28de50['getUTCFullYear'](),_0x28de50['getUTCMonth'](),_0x28de50[_0x11eb1b(0x179)]());}function Pr(_0x1a6dc4){const _0x575a0b=_0x58a750;let _0x23951d=X(_0x1a6dc4),_0x182dfb=new Date(_0x23951d)[_0x575a0b(0x162)]();return Lr(_0x23951d,-(_0x182dfb===0x0?0x6:_0x182dfb-0x1));}function Fr(_0x5d6a52){const _0x5c430b=_0x58a750;let _0x464cf7=new Date(_0x5d6a52);return Date[_0x5c430b(0x20e)](_0x464cf7[_0x5c430b(0x2ce)](),_0x464cf7[_0x5c430b(0x32e)](),0x1);}function Ir(_0x20671f){const _0x4a8827=_0x58a750;let _0x30b891=new Date(_0x20671f);return Date['UTC'](_0x30b891[_0x4a8827(0x2ce)](),0x0,0x1);}function Lr(_0x381f6c,_0x4100e8){return _0x381f6c+_0x4100e8*xr;}function Rr(_0x34cf39,_0x4d5cc2){const _0x52704f=_0x58a750;let _0x1c6011=new Date(_0x34cf39);return Date[_0x52704f(0x20e)](_0x1c6011['getUTCFullYear'](),_0x1c6011[_0x52704f(0x32e)]()+_0x4d5cc2,0x1);}function zr(_0x3ddaf7,_0x2773bd){const _0x3ffc48=_0x58a750;let _0x2a0c2b=new Date(_0x3ddaf7);return Date[_0x3ffc48(0x20e)](_0x2a0c2b[_0x3ffc48(0x2ce)]()+_0x2773bd,0x0,0x1);}function Br(_0x18f4ac){const _0x3fb92f=_0x58a750;let _0x1f37fe=new Date(_0x18f4ac);return _0x1f37fe['toLocaleString'](_0x3fb92f(0x37a),{'month':'short','timeZone':_0x3fb92f(0x20e)})+'\x20'+_0x1f37fe['getUTCFullYear']();}function Vr(_0x150c01,_0x11261d){const _0x12576c=_0x58a750;if(_0x150c01==null&&_0x11261d==null)return 0x0;if(_0x150c01==null)return-0x1;if(_0x11261d==null)return 0x1;if(typeof _0x150c01==_0x12576c(0x27a)||typeof _0x11261d==_0x12576c(0x27a))return Number(_0x150c01===!0x0)-Number(_0x11261d===!0x0);let _0x587dbe=Number(_0x150c01),_0x4ab804=Number(_0x11261d),_0x2fac9e=Number[_0x12576c(0x1d8)](_0x587dbe),_0x5794fa=Number[_0x12576c(0x1d8)](_0x4ab804);return _0x2fac9e&&_0x5794fa?_0x587dbe-_0x4ab804:_0x2fac9e?0x1:_0x5794fa?-0x1:String(_0x150c01)[_0x12576c(0x291)](String(_0x11261d));}function Hr(_0x4513cf){const _0xe3ff5a=_0x58a750;if(_0x4513cf[_0xe3ff5a(0x199)]!=='is'&&_0x4513cf[_0xe3ff5a(0x199)]!=='isNot')return!0x1;let _0x5c09ae=_0x4513cf[_0xe3ff5a(0x408)];return _0x5c09ae==null?!0x0:typeof _0x5c09ae==_0xe3ff5a(0x223)?_0x5c09ae['trim']()==='':Array['isArray'](_0x5c09ae)?_0x5c09ae['length']===0x0:!0x1;}function Ur(_0x106576,_0x76b23d){const _0x343681=_0x58a750;var _0x28b058;let _0x3912ab=Array['isArray']((_0x28b058=_0x106576[_0x343681(0x346)])==null?void 0x0:_0x28b058['options'])?_0x106576[_0x343681(0x346)]['options']:[];for(let _0x151978 of _0x3912ab){if(_0x151978==null)continue;if(typeof _0x151978=='string'){if(_0x151978===_0x76b23d)return{'id':_0x151978,'name':_0x151978};continue;}let _0x2a9d4e=_0x151978,_0x18bdd2=String(_0x2a9d4e['id']??_0x2a9d4e[_0x343681(0x2fa)]??''),_0x101849=String(_0x2a9d4e['name']??_0x2a9d4e['id']??_0x18bdd2);if(_0x18bdd2===_0x76b23d||_0x101849===_0x76b23d)return{'id':_0x18bdd2,'name':_0x101849,'color':_0x2a9d4e[_0x343681(0x3ee)]==null?void 0x0:String(_0x2a9d4e[_0x343681(0x3ee)])};}return null;}const Z={'id':'base.mutation.apply-base-json1','type':_0x1b11d6[_0x58a750(0x263)],'handler'(_0x13beb3,_0x51121b){const _0x1694b2=_0x58a750;let {unitId:_0x2a5dd9,op:_0x646e71}=_0x51121b,_0x571ffa=_0x13beb3[_0x1694b2(0x1ce)](_0x59fb84)[_0x1694b2(0x31d)](_0x2a5dd9,_0x1fd3aa[_0x1694b2(0x41f)]);if(!_0x571ffa)return!0x1;let _0x41bbcb=_0x571ffa['getSnapshot'](),_0x468b53=new V(),_0xf1b171=_0x468b53[_0x1694b2(0x141)](_0x646e71),_0x3b206e=_0x468b53['applyOp'](_0x41bbcb,_0x646e71);return _0x571ffa[_0x1694b2(0x2e2)](_0x3b206e),Wr(_0x3b206e,_0xf1b171,_0x13beb3[_0x1694b2(0x1ce)](dr)),!0x0;}};function Wr(_0x3d69e5,_0x21d7d7,_0x14dc11){const _0x190070=_0x58a750;let _0x300d6e=new Set();for(let _0x25c2d0 of _0x21d7d7){if(_0x25c2d0[_0x190070(0x2af)]!==_0x190070(0x16f)){_0x14dc11[_0x190070(0x2be)]();return;}let _0x1cbd0a=Gr(_0x3d69e5,_0x25c2d0);if(!_0x1cbd0a){_0x14dc11[_0x190070(0x2be)]();return;}let _0x165ec4=_0x1cbd0a[_0x190070(0x3cb)]+'\x00'+_0x1cbd0a[_0x190070(0x378)]+'\x00'+_0x1cbd0a[_0x190070(0x32d)];_0x300d6e[_0x190070(0x192)](_0x165ec4)||(_0x300d6e[_0x190070(0x2a8)](_0x165ec4),_0x14dc11[_0x190070(0x1fe)](_0x1cbd0a['tableId'],_0x1cbd0a[_0x190070(0x378)],_0x1cbd0a[_0x190070(0x32d)]));}}function Gr(_0x178fd3,_0x357b4a){const _0x2091d3=_0x58a750;var _0x303b54,_0x2cb11c;if(!_0x357b4a[_0x2091d3(0x3cb)])return null;if(_0x357b4a[_0x2091d3(0x378)]&&_0x357b4a[_0x2091d3(0x32d)])return{'tableId':_0x357b4a[_0x2091d3(0x3cb)],'recordId':_0x357b4a[_0x2091d3(0x378)],'fieldId':_0x357b4a['fieldId']};if(_0x357b4a['row']==null||_0x357b4a[_0x2091d3(0x1f7)]==null)return null;let _0x33040c=_0x178fd3[_0x2091d3(0x347)][_0x357b4a['tableId']],_0x1a83eb=_0x33040c==null||(_0x303b54=_0x33040c[_0x2091d3(0x2c1)])==null?void 0x0:_0x303b54[_0x357b4a[_0x2091d3(0x207)]],_0x5853d6=_0x33040c==null||(_0x2cb11c=_0x33040c['colId'])==null?void 0x0:_0x2cb11c[_0x357b4a[_0x2091d3(0x1f7)]];return!_0x1a83eb||!_0x5853d6?null:{'tableId':_0x357b4a['tableId'],'recordId':_0x1a83eb,'fieldId':_0x5853d6};}const Kr=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),qr=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Jr=/\{([^}]+)\}/g,Yr=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Xr=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Zr=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),Qr=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),$r=_0x95a1c7[_0x58a750(0x370)](String[_0x58a750(0x380)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),ei=_0x95a1c7[_0x58a750(0x370)](String['raw']`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var ti=class{[_0x58a750(0x3a4)](_0x342f4c,_0x5c1903=_0x342f4c['id']){const _0x449725=_0x58a750;var _0x59e4ff;let _0x1be61e=((_0x59e4ff=_0x342f4c[_0x449725(0x22a)])==null?void 0x0:_0x59e4ff[_0x449725(0x17a)])??Object[_0x449725(0x255)](_0x342f4c['records'])[_0x449725(0x17a)];return{'sheetId':_0x5c1903,'titleMap':new Map(_0x342f4c[_0x449725(0x3e0)][_0x449725(0x36b)]((_0x2bd12e,_0x579a7a)=>{const _0x4cb9fb=_0x449725;var _0x1c5644;return[((_0x1c5644=_0x342f4c[_0x4cb9fb(0x29a)][_0x2bd12e])==null?void 0x0:_0x1c5644[_0x4cb9fb(0x2fa)])??_0x2bd12e,_0x579a7a];})),'range':{'startRow':0x0,'endRow':Math[_0x449725(0x194)](0x0,_0x1be61e-0x1),'startColumn':0x0,'endColumn':Math[_0x449725(0x194)](0x0,_0x342f4c['fieldOrder'][_0x449725(0x17a)]-0x1)},'showHeader':!0x1};}[_0x58a750(0x2ac)](_0x71bfe3,_0x4fe805){const _0x4d9ab8=_0x58a750;let _0x583289=[],_0x211d03=_0x4fe805?new Set(_0x4fe805):null,_0x50cf2f=_0x318b91(_0x71bfe3);return Object[_0x4d9ab8(0x255)](_0x71bfe3[_0x4d9ab8(0x347)])[_0x4d9ab8(0x253)](_0x440137=>!_0x211d03||_0x211d03['has'](_0x440137['id']))['forEach'](_0x2b2076=>{const _0x5706e8=_0x4d9ab8;let _0x489e64=this[_0x5706e8(0x3a4)](_0x2b2076,_0x2b2076['id']);_0x583289[_0x5706e8(0x2fe)]({'tableId':_0x2b2076['id'],'tableName':_0x50cf2f[_0x5706e8(0x1ce)](_0x2b2076['id']),'reference':_0x489e64});}),_0x583289;}[_0x58a750(0x22b)](_0x35652d,_0x39697d,_0x3ebedc={}){const _0x2d74a4=_0x58a750;let _0x42617=_0x35652d[_0x2d74a4(0x3b2)]();if(!_0x42617)return{'valid':!0x0};if(si(_0x42617))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x4e9e11=_0x3ebedc[_0x2d74a4(0x233)]?_0x318b91(_0x3ebedc[_0x2d74a4(0x233)]):void 0x0;for(let _0x160928 of oi(_0x42617)){let _0x4c7df4=hi(_0x160928,_0x39697d,_0x3ebedc[_0x2d74a4(0x233)],_0x4e9e11);if(!_0x4c7df4['table'])return{'valid':!0x1,'reason':_0x2d74a4(0x22e)+_0x160928[_0x2d74a4(0x154)]+_0x2d74a4(0x27e)};if(!_0x4c7df4[_0x2d74a4(0x2ee)])return{'valid':!0x1,'reason':_0x2d74a4(0x270)+_0x160928[_0x2d74a4(0x31c)]+_0x2d74a4(0x417)};}return{'valid':!0x0};}['getDependencies'](_0x391ed0,_0x4bc0be,_0xbd651b={}){const _0x204361=_0x58a750;let _0x3ba024=new Set();for(let _0x38edd0 of this[_0x204361(0x3b7)](_0x391ed0,_0x4bc0be,_0xbd651b))_0x38edd0[_0x204361(0x3cb)]===_0x4bc0be['id']&&_0x3ba024['add'](_0x38edd0[_0x204361(0x32d)]);return Array[_0x204361(0x247)](_0x3ba024);}[_0x58a750(0x3b7)](_0x126178,_0x19e181,_0x3ba87f={}){const _0x870702=_0x58a750;let _0x2920fd=new Map(),_0xe1c9cb=_0x3ba87f['snapshot']?_0x318b91(_0x3ba87f['snapshot']):void 0x0;for(let _0x5df1be of oi(_0x126178)){let _0x1e8d05=hi(_0x5df1be,_0x19e181,_0x3ba87f[_0x870702(0x233)],_0xe1c9cb);if(!_0x1e8d05[_0x870702(0x400)]||!_0x1e8d05['field'])continue;let _0x1b779a=_0x1e8d05[_0x870702(0x400)]['id']+'\x1f'+_0x1e8d05['field']['id'];_0x2920fd['set'](_0x1b779a,{'tableId':_0x1e8d05[_0x870702(0x400)]['id'],'fieldId':_0x1e8d05['field']['id']});}return Array[_0x870702(0x247)](_0x2920fd[_0x870702(0x255)]());}};function ni(_0x112e0b,_0x1ee9fd){const _0x5c6cd4=_0x58a750;var _0x4b5d6a;let _0xd0f277=[],_0x1ffa55=(_0x4b5d6a=_0x1ee9fd[_0x5c6cd4(0x19a)])==null?void 0x0:_0x4b5d6a[_0x112e0b['id']];return _0x1ffa55&&Object['entries'](_0x1ffa55)['forEach'](([_0x72a31c,_0x94209a])=>{const _0x3c2efd=_0x5c6cd4;let _0x210ebb=_0x112e0b[_0x3c2efd(0x347)][_0x72a31c];if(!_0x210ebb||!_0x94209a)return;let _0x29abd2=z(_0x210ebb),_0x224643=[];new _0x4643ee(_0x94209a)[_0x3c2efd(0x197)]((_0x1d1058,_0x236028,_0x33fd79)=>{const _0x410a39=_0x3c2efd;let _0x8e6099=ri(_0x29abd2,_0x1d1058,_0x236028,_0x33fd79);_0x8e6099&&_0x224643[_0x410a39(0x2fe)](_0x8e6099);}),_0x224643[_0x3c2efd(0x17a)]&&_0xd0f277[_0x3c2efd(0x2fe)]({'unitId':_0x112e0b['id'],'tableId':_0x72a31c,'patches':_0x224643});}),_0xd0f277;}function ri(_0x2475ac,_0x3e118a,_0x4f52c8,_0xfe473b){const _0x561065=_0x58a750;var _0x5f3f52,_0x42bd65,_0x2368c2;let _0x27f3b8=(_0x5f3f52=_0x2475ac[_0x561065(0x2c1)])==null?void 0x0:_0x5f3f52[_0x3e118a],_0x569cff=(_0x42bd65=_0x2475ac[_0x561065(0x28b)])==null?void 0x0:_0x42bd65[_0x4f52c8];if(!_0x27f3b8||!_0x2475ac[_0x561065(0x286)][_0x27f3b8]||!_0x569cff)return null;let _0x3a6be3=_0x2475ac[_0x561065(0x29a)][_0x569cff];if(!_0x3a6be3||_0x3a6be3[_0x561065(0x18d)]!=='formula')return null;let _0x1606ac=String(((_0x2368c2=_0x3a6be3[_0x561065(0x346)])==null?void 0x0:_0x2368c2[_0x561065(0x216)])??'')['trim'](),_0x43c523=(_0xfe473b==null?void 0x0:_0xfe473b['v'])??null,_0x1fbbdc={'v':_0x43c523,'t':ai(_0x43c523),..._0x3e118a===0x0&&_0x1606ac?{'f':_0x1606ac}:{},'si':_0x3a6be3['id']};return ii(it(_0x2475ac,_0x27f3b8,_0x569cff),_0x1fbbdc)?null:{'row':_0x3e118a,'col':_0x4f52c8,'value':_0x1fbbdc};}function ii(_0x5f1212,_0x181836){return _0x5f1212!=null&&Object['is'](_0x5f1212['v']??null,_0x181836['v']??null)&&_0x5f1212['t']===_0x181836['t']&&_0x5f1212['f']===_0x181836['f']&&_0x5f1212['si']===_0x181836['si'];}function ai(_0xa4ca63){const _0x213756=_0x58a750;return typeof _0xa4ca63==_0x213756(0x30a)?_0x10de44[_0x213756(0x256)]:typeof _0xa4ca63==_0x213756(0x27a)?_0x10de44[_0x213756(0x1ff)]:typeof _0xa4ca63==_0x213756(0x223)?_0x10de44[_0x213756(0x364)]:null;}function oi(_0x2e8bb6){const _0x41b5eb=_0x58a750;let _0x4a952e=li(_0x2e8bb6,()=>''),_0x52fced=new Map(),_0x1609c3=_0x18f23a=>{const _0x1607b4=_0x392b;_0x52fced[_0x1607b4(0x191)]((_0x18f23a[_0x1607b4(0x154)]??'')+'\x1f'+_0x18f23a[_0x1607b4(0x31c)],_0x18f23a);};for(let _0x5c3419 of _0x4a952e[_0x41b5eb(0x1d6)](Jr))_0x1609c3({'fieldName':_0x5c3419[0x1],'scope':'this-row'});_0x4a952e=_0x4a952e[_0x41b5eb(0x1c8)](Yr,(_0x534c9a,_0x359f08,_0x756b99,_0x20881a)=>(_0x1609c3({'tableName':_0x359f08,'fieldName':_0x20881a,'scope':_0x756b99[_0x41b5eb(0x3d1)]()==='data'?'data':_0x41b5eb(0x303)}),'\x20')),_0x4a952e=_0x4a952e['replace'](Xr,(_0x1f5348,_0x190f7e,_0x5e10e2)=>(_0x1609c3({'tableName':_0x190f7e,'fieldName':_0x5e10e2,'scope':'this-row'}),'\x20')),_0x4a952e=_0x4a952e['replace'](Qr,(_0x3dab07,_0x4fdf65,_0xab7b73,_0x5b4b29)=>(_0x1609c3({'fieldName':_0x5b4b29,'scope':_0xab7b73[_0x41b5eb(0x3d1)]()===_0x41b5eb(0x22f)?_0x41b5eb(0x22f):_0x41b5eb(0x303)}),_0x4fdf65+'\x20')),_0x4a952e=_0x4a952e['replace']($r,(_0x2c4e3a,_0x362dd7,_0x418f8a)=>(_0x1609c3({'fieldName':_0x418f8a,'scope':'this-row'}),_0x362dd7+'\x20'));for(let _0x57a005 of _0x4a952e[_0x41b5eb(0x1d6)](Zr))_0x1609c3({'tableName':_0x57a005[0x1],'fieldName':_0x57a005[0x2]});for(let _0x27063d of _0x4a952e[_0x41b5eb(0x1d6)](ei))_0x1609c3({'fieldName':_0x27063d[0x2],'scope':'this-row'});return Array[_0x41b5eb(0x247)](_0x52fced[_0x41b5eb(0x255)]());}function si(_0x5ce4b7){const _0x475cfb=_0x58a750;let _0x74bc43=li(_0x5ce4b7,()=>'\x20')['replace'](Jr,'\x20')[_0x475cfb(0x1c8)](Yr,'\x20')[_0x475cfb(0x1c8)](Xr,'\x20')['replace'](Qr,_0x475cfb(0x323))[_0x475cfb(0x1c8)]($r,_0x475cfb(0x323))[_0x475cfb(0x1c8)](Zr,'\x20')[_0x475cfb(0x1c8)](ei,_0x475cfb(0x323));return Kr[_0x475cfb(0x2aa)](_0x74bc43);}function ci(_0x3b5c75,_0x1363af){return pi(di(_0x3b5c75,_0x1363af),_0x1363af);}function li(_0x50574b,_0x3b1b17){return ui(ci(_0x50574b,_0x3b1b17),_0x3b1b17);}function ui(_0x2ae3ae,_0x1bdf10){const _0x356cbf=_0x58a750;return _0x2ae3ae[_0x356cbf(0x1c8)](/"(?:""|[^"])*"/g,_0x1bdf10);}function di(_0x852a41,_0x341a1f){const _0x181367=_0x58a750;return qr[_0x181367(0x3e7)]=0x0,_0x852a41[_0x181367(0x1c8)](qr,(_0x3cf357,_0x227483)=>mi(_0x852a41,_0x227483)?_0x3cf357:_0x341a1f(_0x3cf357));}const fi=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function pi(_0x349ebf,_0x67eac1){const _0x31abb7=_0x58a750;let _0xa29e46=[];for(fi[_0x31abb7(0x3e7)]=0x0;;){let _0x475452=fi['exec'](_0x349ebf);if(_0x475452==null)break;if(mi(_0x349ebf,_0x475452[_0x31abb7(0x1a1)]))continue;let _0x102b40=fi[_0x31abb7(0x3e7)]-0x1,_0x134182=0x0;for(let _0x2cb9ea=_0x102b40;_0x2cb9ea<_0x349ebf[_0x31abb7(0x17a)];_0x2cb9ea++)if(_0x349ebf[_0x2cb9ea]==='['&&_0x134182++,_0x349ebf[_0x2cb9ea]===']'&&(_0x134182--,_0x134182===0x0)){_0xa29e46['push']({'start':_0x475452['index'],'end':_0x2cb9ea+0x1}),fi[_0x31abb7(0x3e7)]=_0x2cb9ea+0x1;break;}}if(_0xa29e46[_0x31abb7(0x17a)]===0x0)return _0x349ebf;let _0x388f2a='',_0xb9eb22=0x0;for(let _0x2b9ee4 of _0xa29e46)_0x388f2a+=_0x349ebf['slice'](_0xb9eb22,_0x2b9ee4[_0x31abb7(0x2ad)]),_0x388f2a+=_0x67eac1(_0x349ebf[_0x31abb7(0x39f)](_0x2b9ee4[_0x31abb7(0x2ad)],_0x2b9ee4[_0x31abb7(0xf0)])),_0xb9eb22=_0x2b9ee4[_0x31abb7(0xf0)];return _0x388f2a+_0x349ebf[_0x31abb7(0x39f)](_0xb9eb22);}function mi(_0x39d2a8,_0x6524bd){let _0x22a0aa=!0x1;for(let _0x3b6a69=0x0;_0x3b6a69<_0x6524bd;_0x3b6a69++)if(_0x39d2a8[_0x3b6a69]==='\x22'){if(_0x22a0aa&&_0x39d2a8[_0x3b6a69+0x1]==='\x22'){_0x3b6a69++;continue;}_0x22a0aa=!_0x22a0aa;}return _0x22a0aa;}function hi(_0x21e46e,_0x1112d5,_0x379e55,_0x1e8e1b){const _0x1d7337=_0x58a750;let _0x4cba69=gi(_0x21e46e[_0x1d7337(0x154)],_0x1112d5,_0x379e55,_0x1e8e1b);return{'table':_0x4cba69,'field':_0x4cba69?Object[_0x1d7337(0x255)](_0x4cba69[_0x1d7337(0x29a)])['find'](_0x7cbba2=>_0x7cbba2['name']===_0x21e46e[_0x1d7337(0x31c)]):void 0x0};}function gi(_0x28a67a,_0x16ae91,_0x46f637,_0x274a44){const _0x569310=_0x58a750;if(!_0x28a67a)return _0x16ae91;if(!_0x46f637){var _0xd9f03c;let _0x4e78bc=_0x28a67a[_0x569310(0x3d1)]();return _0x4e78bc===_0x16ae91['id'][_0x569310(0x3d1)]()||_0x4e78bc===_0x16ae91['name'][_0x569310(0x3d1)]()||_0x4e78bc===((_0xd9f03c=_0x16ae91['formulaName'])==null?void 0x0:_0xd9f03c['toLowerCase']())?_0x16ae91:void 0x0;}let _0x36e59a=_0x28a67a[_0x569310(0x3d1)](),_0x4a35a7=_0x274a44??_0x318b91(_0x46f637),_0x8cd120=Object[_0x569310(0x255)](_0x46f637[_0x569310(0x347)])[_0x569310(0x253)](_0x5857dd=>{const _0x1c2d0e=_0x569310;var _0x397c63;return _0x5857dd['id'][_0x1c2d0e(0x3d1)]()===_0x36e59a||_0x5857dd[_0x1c2d0e(0x2fa)]['toLowerCase']()===_0x36e59a||((_0x397c63=_0x4a35a7[_0x1c2d0e(0x1ce)](_0x5857dd['id']))==null?void 0x0:_0x397c63[_0x1c2d0e(0x3d1)]())===_0x36e59a||_i(_0x5857dd['id'])['toLowerCase']()===_0x36e59a;});return _0x8cd120[_0x569310(0x17a)]===0x1?_0x8cd120[0x0]:void 0x0;}function _i(_0x2e7043){const _0x19b6b2=_0x58a750;return _0x19b6b2(0x300)+Array['from'](_0x2e7043,_0xc8689=>{const _0xf6e25d=_0x19b6b2;var _0xbb5b58;return/[A-Za-z0-9]/['test'](_0xc8689)?_0xc8689:'_x'+(((_0xbb5b58=_0xc8689[_0xf6e25d(0x34c)](0x0))==null?void 0x0:_0xbb5b58['toString'](0x10))??'0')+'_';})[_0x19b6b2(0x20b)]('');}const vi=new ti();function yi(_0x8e5af2,_0xa08e90,_0x383b0c){const _0x120f89=_0x58a750;var _0xbb2534;if(_0x383b0c['type']!==_0x54dcd1[_0x120f89(0x40d)])return!0x0;let _0x288091=String(((_0xbb2534=_0x383b0c[_0x120f89(0x346)])==null?void 0x0:_0xbb2534[_0x120f89(0x216)])??''),_0x3863f5=_0x8e5af2['getSnapshot']();return vi[_0x120f89(0x22b)](_0x288091,_0x3863f5[_0x120f89(0x347)][_0xa08e90],{'snapshot':_0x3863f5})[_0x120f89(0x258)];}function Q(_0x57a182,_0x145036,_0x523b3d){const _0x5c2811=_0x58a750;let _0x41564d=_0x57a182['getSnapshot']()[_0x5c2811(0x347)][_0x145036];if(!_0x41564d)return!0x1;let {viewIds:_0x2a5e5f,fieldIds:_0x5c78eb,recordIds:_0xf914a8}=_0x523b3d||{};if(_0x2a5e5f){for(let _0x44992d of _0x2a5e5f)if(!_0x41564d[_0x5c2811(0x2c4)][_0x44992d])return!0x1;}if(_0x5c78eb){for(let _0x5e03cd of _0x5c78eb)if(!_0x41564d[_0x5c2811(0x29a)][_0x5e03cd])return!0x1;}if(_0xf914a8){for(let _0x561ed0 of _0xf914a8)if(!_0x41564d[_0x5c2811(0x286)][_0x561ed0])return!0x1;}return!0x0;}function bi(_0x50e2a9,_0x10d04f,_0x3944e8){const _0x4cd6c5=_0x58a750;if(_0x3944e8['id']===_0x1abc18||_0x3944e8[_0x4cd6c5(0x18d)]===_0x54dcd1[_0x4cd6c5(0x249)]||_0x25ea8a(_0x3944e8[_0x4cd6c5(0x2fa)])||!yi(_0x50e2a9,_0x10d04f,_0x3944e8))return!0x1;let _0x423709=_0x50e2a9[_0x4cd6c5(0x26f)]();if(!Oe(_0x423709,_0x3944e8)[_0x4cd6c5(0x258)])return!0x1;if(_0x3944e8[_0x4cd6c5(0x18d)]!==_0x54dcd1['RecordLink'])return!0x0;let _0x1976c2=N(_0x3944e8);if(!_0x1976c2)return!0x1;if(_0x1976c2[_0x4cd6c5(0x2b7)]===void 0x0)return!0x0;if(_0x1976c2[_0x4cd6c5(0x2b7)]!==_0x3e04ef['Parent']||_0x1976c2['targetTableId']!==_0x10d04f||_0x1976c2[_0x4cd6c5(0x149)]!==!0x1)return!0x1;let _0x193c2f=_0x423709[_0x4cd6c5(0x347)][_0x10d04f];return!Object[_0x4cd6c5(0x255)](_0x193c2f['fields'])[_0x4cd6c5(0x2c9)](_0x1531e3=>{const _0x316a36=_0x4cd6c5;var _0x55e90b;return _0x1531e3['id']!==_0x3944e8['id']&&_0x1531e3[_0x316a36(0x18d)]===_0x54dcd1[_0x316a36(0x1c1)]&&((_0x55e90b=N(_0x1531e3))==null?void 0x0:_0x55e90b['relationRole'])===_0x3e04ef[_0x316a36(0x128)];});}function xi(_0x284121,_0x28272f,_0xf9f72d,_0x132a5a){const _0x4115f3=_0x58a750;var _0x4db342;let _0x226a9d=_0x284121[_0x4115f3(0x26f)](),_0x44dbb2=(_0x4db342=_0x226a9d[_0x4115f3(0x347)][_0x28272f])==null?void 0x0:_0x4db342['fields'][_0xf9f72d];return!_0x44dbb2||_0x44dbb2['id']===_0x1abc18||_0x44dbb2[_0x4115f3(0x18d)]===_0x54dcd1[_0x4115f3(0x249)]?!0x1:_0x44dbb2[_0x4115f3(0x18d)]!==_0x54dcd1[_0x4115f3(0x1c1)]||ke(_0x226a9d,_0x44dbb2,wi(_0x132a5a))['valid'];}function Si(_0x529bcc,_0x425d93,_0x1c5ec3){const _0xa2f2ee=_0x58a750;let _0x566a6b=_0x529bcc[_0xa2f2ee(0x26f)]()[_0xa2f2ee(0x347)][_0x425d93];return!_0x566a6b||!_0x1b6733(_0x1c5ec3['id'])||_0x566a6b[_0xa2f2ee(0x286)][_0x1c5ec3['id']]||Object['prototype'][_0xa2f2ee(0x363)][_0xa2f2ee(0x35f)](_0x1c5ec3['values'],_0x1abc18)&&_0x1c5ec3[_0xa2f2ee(0x255)][_0x1abc18]!==_0x1c5ec3['id']?!0x1:Object[_0xa2f2ee(0x23c)](_0x1c5ec3['values'])[_0xa2f2ee(0x413)](([_0x37b676,_0x5895c2])=>_0x37b676===_0x1abc18||xi(_0x529bcc,_0x425d93,_0x37b676,_0x5895c2));}function Ci(_0x27ec9f){const _0x145fba=_0x58a750;return{..._0x27ec9f,'values':{..._0x27ec9f[_0x145fba(0x255)],[_0x1abc18]:_0x27ec9f['id']}};}function wi(_0x30f74f){const _0x70a21d=_0x58a750;if(_0x30f74f&&typeof _0x30f74f==_0x70a21d(0x133)&&!Array[_0x70a21d(0x25e)](_0x30f74f)&&'v'in _0x30f74f){let _0xa63e31=_0x30f74f['v'];return _0xa63e31===void 0x0?null:_0xa63e31;}return _0x30f74f;}function Ti(_0x54f86c,_0x3a48d7,_0xcadf76,_0x9e6097){const _0x11826f=_0x58a750;let _0x430bc0=_0x54f86c[_0x11826f(0x26f)]()[_0x11826f(0x347)][_0x3a48d7];if(!_0x430bc0)return null;let _0x20b5ff=Fe(_0x430bc0),_0x6cb945=_0x20b5ff??I(_0x430bc0),_0x41916a=_0xcadf76['some'](_0x1f02d0=>Object[_0x11826f(0x352)]['hasOwnProperty']['call'](_0x1f02d0[_0x11826f(0x255)],_0x6cb945)),_0x4423e7=_0x20b5ff?_0x430bc0[_0x11826f(0x29a)][_0x20b5ff]:_0x41916a?Ie(_0x430bc0,_0x6cb945,_0x9e6097):null,_0x2ae3f9=[];for(let _0x1dab47 of _0xcadf76){let _0x303500=_0x1dab47[_0x11826f(0x255)][_0x6cb945],_0x314fca=_0x4423e7!==null&&Object['prototype'][_0x11826f(0x363)][_0x11826f(0x35f)](_0x1dab47[_0x11826f(0x255)],_0x6cb945),_0x392864=wi(_0x303500),_0x404f37=null;if(_0x314fca){if(typeof _0x392864!=_0x11826f(0x223)||!De(_0x392864,!0x1)[_0x11826f(0x258)])return null;_0x404f37=_0x392864;}let _0x2e5839={};if(Object['entries'](_0x1dab47[_0x11826f(0x255)])['forEach'](([_0x2d2527,_0xbdfd4])=>{(!_0x314fca||_0x2d2527!==_0x6cb945)&&(_0x2e5839[_0x2d2527]=_0xbdfd4);}),!Si(_0x54f86c,_0x3a48d7,{..._0x1dab47,'values':_0x2e5839}))return null;let _0x470757={..._0x1dab47[_0x11826f(0x255)]};_0x404f37!==null&&(_0x470757[_0x6cb945]=_0x404f37),_0x2ae3f9[_0x11826f(0x2fe)](Ci({..._0x1dab47,'values':_0x470757}));}return{'records':_0x2ae3f9,'hierarchyFieldToMaterialize':_0x20b5ff?null:_0x4423e7,'hierarchyChanges':ze(_0x430bc0,_0x2ae3f9)};}const Ei={'id':_0x58a750(0x189),'type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x3f9894,_0x2e8ab8){const _0x55fb3d=_0x58a750;if(!_0x2e8ab8)return!0x1;let _0x5cc501=_0x3f9894[_0x55fb3d(0x1ce)](_0x59fb84),{unitId:_0x4c4662,tableId:_0x459899,records:_0x6dbf12}=_0x2e8ab8,_0x150917=_0x5cc501[_0x55fb3d(0x31d)](_0x4c4662,_0x1fd3aa[_0x55fb3d(0x41f)]),_0x48206a=_0x6dbf12[_0x55fb3d(0x36b)](_0x344643=>_0x344643['id']);if(!_0x150917||!Q(_0x150917,_0x459899)||new Set(_0x48206a)[_0x55fb3d(0x3e9)]!==_0x48206a['length'])return!0x1;let _0xbf43b2=_0x3f9894[_0x55fb3d(0x1ce)](_0x49c211),_0x3cd915=_0x3f9894[_0x55fb3d(0x1ce)](_0x510401),_0x141192=_0x3f9894[_0x55fb3d(0x1ce)](Y),_0x19bbed=_0x150917[_0x55fb3d(0x26f)](),_0x102542=Ti(_0x150917,_0x459899,_0x6dbf12);if(!_0x102542)return!0x1;let {records:_0x490592,hierarchyChanges:_0x1b4b8e,hierarchyFieldToMaterialize:_0x4a6f9a}=_0x102542,_0x2d2044=_0x4a6f9a?_0x141192[_0x55fb3d(0xe9)](_0x150917,_0x459899,_0x4a6f9a,_0x19bbed['tables'][_0x459899]['fieldOrder'][_0x55fb3d(0x17a)]):null,_0x4e87d9=_0x141192[_0x55fb3d(0x351)](_0x150917,_0x459899,_0x490592),_0x2427aa=B([..._0x2d2044?[_0x2d2044]:[],_0x4e87d9]),_0x5c0957=new V()[_0x55fb3d(0x170)](_0x19bbed,_0x2427aa),_0x4d8be2={'unitId':_0x4c4662,'op':_0x2427aa,'hierarchyChanges':_0x1b4b8e[_0x55fb3d(0x17a)]?_0x1b4b8e:void 0x0,'source':_0x1b4b8e['length']?_0x2e8ab8[_0x55fb3d(0x26a)]??'ui':void 0x0},_0x20b482={..._0x4d8be2,'source':_0x1b4b8e['length']?_0x55fb3d(0x10f):void 0x0},_0x424767={'unitId':_0x4c4662,'op':_0x5c0957,'hierarchyChanges':_0x1b4b8e[_0x55fb3d(0x17a)]?_0x1b4b8e['map'](_0x517bfe=>({..._0x517bfe,'oldParentRecordId':_0x517bfe[_0x55fb3d(0x2f6)],'parentRecordId':null})):void 0x0,'source':_0x1b4b8e[_0x55fb3d(0x17a)]?_0x55fb3d(0x3bf):void 0x0};return _0xbf43b2[_0x55fb3d(0x113)](Z['id'],_0x4d8be2)?(_0x5cc501[_0x55fb3d(0x1c6)](_0x4c4662),_0x3cd915[_0x55fb3d(0xca)]({'unitID':_0x4c4662,'undoMutations':[{'id':Z['id'],'params':_0x424767}],'redoMutations':[{'id':Z['id'],'params':_0x20b482}]}),!0x0):!0x1;}},Di={'id':_0x58a750(0x37f),'type':_0x1b11d6['COMMAND'],'handler':(_0x464837,_0x48ed4b)=>{const _0x289bb4=_0x58a750;if(!_0x48ed4b)return!0x1;let _0x2db267=_0x464837[_0x289bb4(0x1ce)](_0x59fb84),{unitId:_0x597561,tableId:_0x158965,recordIds:_0x39e48b}=_0x48ed4b,_0x46a7a0=_0x2db267[_0x289bb4(0x31d)](_0x597561,_0x1fd3aa[_0x289bb4(0x41f)]);if(!_0x46a7a0||!Q(_0x46a7a0,_0x158965,{'recordIds':_0x39e48b}))return!0x1;let _0x82f3a=_0x464837[_0x289bb4(0x1ce)](_0x49c211),_0x57f026=_0x464837[_0x289bb4(0x1ce)](_0x510401),_0x47d58e=_0x46a7a0['getSnapshot'](),_0x15903a=Ve(_0x47d58e[_0x289bb4(0x347)][_0x158965],_0x39e48b),_0x126032=new K()[_0x289bb4(0x143)](_0x47d58e,_0x158965,_0x39e48b),_0x31d3cc=new V()[_0x289bb4(0x170)](_0x47d58e,_0x126032),_0x702fd={'unitId':_0x597561,'op':_0x126032,'hierarchyChanges':_0x15903a,'source':_0x48ed4b[_0x289bb4(0x26a)]??'ui'},_0x3d26a5={..._0x702fd,'source':_0x289bb4(0x10f)},_0x2cad4a={'unitId':_0x597561,'op':_0x31d3cc,'hierarchyChanges':_0x15903a[_0x289bb4(0x36b)](_0x24ffee=>({..._0x24ffee,'oldParentRecordId':_0x24ffee['parentRecordId'],'parentRecordId':_0x24ffee[_0x289bb4(0x3c9)]})),'source':_0x289bb4(0x3bf)};return _0x82f3a[_0x289bb4(0x113)](Z['id'],_0x702fd)?(_0x2db267[_0x289bb4(0x1c6)](_0x597561),_0x57f026['pushUndoRedo']({'unitID':_0x597561,'undoMutations':[{'id':Z['id'],'params':_0x2cad4a}],'redoMutations':[{'id':Z['id'],'params':_0x3d26a5}]}),!0x0):!0x1;}},Oi={'id':_0x58a750(0x2ab),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x240701,_0x497595)=>{const _0x255896=_0x58a750;if(!_0x497595)return!0x1;let _0x507cd8=_0x240701['get'](_0x59fb84),{unitId:_0x1026e2,tableId:_0x2b6d2f,fieldId:_0x4c94f5,input:_0x2bc530}=_0x497595,_0x1e0f0a=_0x507cd8['getUnit'](_0x1026e2,_0x1fd3aa[_0x255896(0x41f)]);if(!_0x1e0f0a||_0x4c94f5===_0x1abc18||!Q(_0x1e0f0a,_0x2b6d2f,{'fieldIds':[_0x4c94f5]}))return!0x1;let _0x509b3b=_0x240701[_0x255896(0x1ce)](_0x49c211),_0x22f9d1=_0x240701['get'](_0x510401),_0x4fc427=_0x1e0f0a['getSnapshot']();if(!bi(_0x1e0f0a,_0x2b6d2f,{..._0x4fc427[_0x255896(0x347)][_0x2b6d2f][_0x255896(0x29a)][_0x4c94f5],..._0x2bc530}))return!0x1;let _0x14b685=new K()[_0x255896(0x239)](_0x4fc427,_0x2b6d2f,_0x4c94f5,_0x2bc530),_0x56b0a0=new V()[_0x255896(0x170)](_0x4fc427,_0x14b685),_0x86fa0c={'unitId':_0x1026e2,'op':_0x14b685},_0x1b66c3={'unitId':_0x1026e2,'op':_0x56b0a0};return _0x509b3b[_0x255896(0x113)](Z['id'],_0x86fa0c)?(_0x507cd8['focusUnit'](_0x1026e2),_0x22f9d1['pushUndoRedo']({'unitID':_0x1026e2,'undoMutations':[{'id':Z['id'],'params':_0x1b66c3}],'redoMutations':[{'id':Z['id'],'params':_0x86fa0c}]}),!0x0):!0x1;}},ki={'id':'base.command.create-base-child-record','type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x5887d5,_0xedc2cf){const _0x2d25d9=_0x58a750;var _0x51b978;if(!_0xedc2cf)return!0x1;let {unitId:_0x3d51c8,tableId:_0x4dcb29,parentRecordId:_0x276dc3}=_0xedc2cf,_0x37fddd=_0x5887d5[_0x2d25d9(0x1ce)](_0x59fb84),_0xc6ee3=_0x37fddd[_0x2d25d9(0x31d)](_0x3d51c8,_0x1fd3aa['UNIVER_BASE']);if(!_0xc6ee3||!Q(_0xc6ee3,_0x4dcb29,{'recordIds':[_0x276dc3]}))throw new P('missingRecord');let _0x5c5889=_0xc6ee3['getSnapshot'](),_0x23d2f5=_0x5c5889[_0x2d25d9(0x347)][_0x4dcb29],_0x5074bc=Fe(_0x23d2f5),_0x597d4d=_0x5074bc??_0xedc2cf[_0x2d25d9(0x32d)]??I(_0x23d2f5);if(_0x5074bc&&_0xedc2cf[_0x2d25d9(0x32d)]&&_0xedc2cf[_0x2d25d9(0x32d)]!==_0x5074bc||_0x23d2f5[_0x2d25d9(0x29a)][_0x597d4d]&&!F(_0x23d2f5,_0x597d4d))throw new P(_0x2d25d9(0x3d7));if((L(_0x23d2f5,_0x597d4d)[_0x2d25d9(0x105)][_0x2d25d9(0x1ce)](_0x276dc3)??0x0)+0x1>=0x5)throw new P(_0x2d25d9(0x161));if(!Si(_0xc6ee3,_0x4dcb29,_0xedc2cf[_0x2d25d9(0x277)]))return!0x1;let _0x4673d6=Ci({..._0xedc2cf[_0x2d25d9(0x277)],'values':{..._0xedc2cf[_0x2d25d9(0x277)][_0x2d25d9(0x255)],[_0x597d4d]:Ee([_0x276dc3])}}),_0x353ef3=_0x5887d5[_0x2d25d9(0x1ce)](Y),_0x8d4d1c=new K(),_0x4e4e24=_0x23d2f5[_0x2d25d9(0x29a)][_0x597d4d],_0x35a754=_0x4e4e24?((_0x51b978=N(_0x4e4e24))==null?void 0x0:_0x51b978['relationRole'])===_0x3e04ef[_0x2d25d9(0x128)]?null:_0x8d4d1c[_0x2d25d9(0x1f2)](_0x5c5889,_0x4dcb29,_0x597d4d,{'config':{..._0x4e4e24[_0x2d25d9(0x346)],'relationRole':_0x3e04ef[_0x2d25d9(0x128)]}}):_0x353ef3['createCreateFieldOp'](_0xc6ee3,_0x4dcb29,Ie(_0x23d2f5,_0x597d4d,_0xedc2cf[_0x2d25d9(0x1fb)]),_0x23d2f5[_0x2d25d9(0x3e0)][_0x2d25d9(0x17a)]),_0x4956a4=_0x353ef3[_0x2d25d9(0x218)](_0xc6ee3,_0x4dcb29,_0x4673d6),_0x361749=B([..._0x35a754?[_0x35a754]:[],_0x4956a4]),_0x16c98d=new V()[_0x2d25d9(0x170)](_0x5c5889,_0x361749),_0x58a7db={'tableId':_0x4dcb29,'fieldId':_0x597d4d,'recordId':_0x4673d6['id'],'oldParentRecordId':null,'parentRecordId':_0x276dc3},_0x43bcfa={'unitId':_0x3d51c8,'op':_0x361749,'trigger':ki['id'],'hierarchyChanges':[_0x58a7db],'source':_0xedc2cf[_0x2d25d9(0x26a)]??'ui'},_0x499a1c={..._0x43bcfa,'source':_0x2d25d9(0x10f)},_0xad23e8={'unitId':_0x3d51c8,'op':_0x16c98d,'trigger':ki['id'],'hierarchyChanges':[{..._0x58a7db,'oldParentRecordId':_0x276dc3,'parentRecordId':null}],'source':_0x2d25d9(0x3bf)};return _0x5887d5['get'](_0x49c211)[_0x2d25d9(0x113)](Z['id'],_0x43bcfa)?(_0x37fddd[_0x2d25d9(0x1c6)](_0x3d51c8),_0x5887d5[_0x2d25d9(0x1ce)](_0x510401)['pushUndoRedo']({'unitID':_0x3d51c8,'undoMutations':[{'id':Z['id'],'params':_0xad23e8}],'redoMutations':[{'id':Z['id'],'params':_0x499a1c}]}),!0x0):!0x1;}},Ai={'id':_0x58a750(0x40f),'type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x52a744,_0x590e68){const _0x473ed1=_0x58a750;if(!_0x590e68)return!0x1;let _0x4b1edf=_0x52a744[_0x473ed1(0x1ce)](_0x59fb84),{unitId:_0x42fe5f,tableId:_0x2fb6c6,field:_0x5a48cf,index:_0x241a6c,viewIndexes:_0x48a192}=_0x590e68,_0x5df044=_0x4b1edf['getUnit'](_0x42fe5f,_0x1fd3aa['UNIVER_BASE']);if(!_0x5df044||!Q(_0x5df044,_0x2fb6c6)||_0x5df044[_0x473ed1(0x26f)]()['tables'][_0x2fb6c6][_0x473ed1(0x29a)][_0x5a48cf['id']]||_0x241a6c===0x0||!bi(_0x5df044,_0x2fb6c6,_0x5a48cf))return!0x1;let _0x59278e=_0x52a744[_0x473ed1(0x1ce)](_0x49c211),_0x5cfd3a=_0x52a744['get'](_0x510401),_0x3a8500=_0x52a744['get'](Y)[_0x473ed1(0xe9)](_0x5df044,_0x2fb6c6,_0x5a48cf,_0x241a6c,_0x48a192),_0x285aa4=new V()[_0x473ed1(0x170)](_0x5df044[_0x473ed1(0x26f)](),_0x3a8500),_0x5335b8={'unitId':_0x42fe5f,'op':_0x3a8500},_0x405d84={'unitId':_0x42fe5f,'op':_0x285aa4};return _0x59278e[_0x473ed1(0x113)](Z['id'],_0x5335b8)?(_0x4b1edf[_0x473ed1(0x1c6)](_0x42fe5f),_0x5cfd3a[_0x473ed1(0xca)]({'unitID':_0x42fe5f,'undoMutations':[{'id':Z['id'],'params':_0x405d84}],'redoMutations':[{'id':Z['id'],'params':_0x5335b8}]}),!0x0):!0x1;}},ji={'id':'base.command.create-base-record','type':_0x1b11d6['COMMAND'],'handler'(_0x46c713,_0xe12060){const _0x177e7f=_0x58a750;if(!_0xe12060)return!0x1;let _0x19035c=_0x46c713[_0x177e7f(0x1ce)](_0x59fb84),{unitId:_0x4bae9d,tableId:_0x1a7a4c,record:_0x494c6c}=_0xe12060,_0x4962a2=_0x19035c[_0x177e7f(0x31d)](_0x4bae9d,_0x1fd3aa['UNIVER_BASE']);if(!_0x4962a2||!Q(_0x4962a2,_0x1a7a4c))return!0x1;let _0x311da2=_0x46c713['get'](_0x49c211),_0x484bd5=_0x46c713[_0x177e7f(0x1ce)](_0x510401),_0x309825=_0x46c713[_0x177e7f(0x1ce)](Y),_0x49d478=_0x4962a2[_0x177e7f(0x26f)](),_0x4d3cf1=Ti(_0x4962a2,_0x1a7a4c,[_0x494c6c]);if(!_0x4d3cf1)return!0x1;let [_0xfef015]=_0x4d3cf1[_0x177e7f(0x286)],{hierarchyChanges:_0x2e3224,hierarchyFieldToMaterialize:_0x29ef97}=_0x4d3cf1,_0x4a7e1e=_0x29ef97?_0x309825[_0x177e7f(0xe9)](_0x4962a2,_0x1a7a4c,_0x29ef97,_0x49d478['tables'][_0x1a7a4c]['fieldOrder'][_0x177e7f(0x17a)]):null,_0xda9615=_0x309825[_0x177e7f(0x218)](_0x4962a2,_0x1a7a4c,_0xfef015),_0x1dac55=B([..._0x4a7e1e?[_0x4a7e1e]:[],_0xda9615]),_0x82cf40=new V()[_0x177e7f(0x170)](_0x49d478,_0x1dac55),_0x2eadf3={'unitId':_0x4bae9d,'op':_0x1dac55,'hierarchyChanges':_0x2e3224[_0x177e7f(0x17a)]?_0x2e3224:void 0x0,'source':_0x2e3224['length']?_0xe12060[_0x177e7f(0x26a)]??'ui':void 0x0},_0x465c6b={..._0x2eadf3,'source':_0x2e3224[_0x177e7f(0x17a)]?'redo':void 0x0},_0x17a44d={'unitId':_0x4bae9d,'op':_0x82cf40,'hierarchyChanges':_0x2e3224['length']?_0x2e3224[_0x177e7f(0x36b)](_0x2c0e24=>({..._0x2c0e24,'oldParentRecordId':_0x2c0e24[_0x177e7f(0x2f6)],'parentRecordId':null})):void 0x0,'source':_0x2e3224['length']?_0x177e7f(0x3bf):void 0x0};return _0x311da2[_0x177e7f(0x113)](Z['id'],_0x2eadf3)?(_0x19035c[_0x177e7f(0x1c6)](_0x4bae9d),_0x484bd5[_0x177e7f(0xca)]({'unitID':_0x4bae9d,'undoMutations':[{'id':Z['id'],'params':_0x17a44d}],'redoMutations':[{'id':Z['id'],'params':_0x465c6b}]}),!0x0):!0x1;}},Mi=_0x58a750(0x314);function Ni(_0x3eec41,_0x9cf41a,_0xf3306f){const _0x4674bc=_0x58a750;if(!_0x9cf41a[_0x4674bc(0x3b2)]())return{'valid':!0x1,'reason':'Table\x20name\x20is\x20required.','error':_0x4674bc(0x129)};if(_0x9cf41a[_0x4674bc(0x17a)]>0x1f)return{'valid':!0x1,'reason':_0x4674bc(0x112),'error':_0x4674bc(0x23a)};if(_0x9cf41a[_0x4674bc(0x214)]('\x27')||_0x9cf41a[_0x4674bc(0x23f)]('\x27'))return{'valid':!0x1,'reason':_0x4674bc(0x14b),'error':_0x4674bc(0x130)};if(/[:\\/?*\[\]]/[_0x4674bc(0x2aa)](_0x9cf41a))return{'valid':!0x1,'reason':_0x4674bc(0x23b),'error':_0x4674bc(0x24e)};if(!_0x4fdd3b(_0x9cf41a))return{'valid':!0x1,'reason':_0x4674bc(0x3eb),'error':_0x4674bc(0x1b9)};let _0x5e9384=_0x9cf41a[_0x4674bc(0x3d1)]();return Object[_0x4674bc(0x255)](_0x3eec41[_0x4674bc(0x347)])[_0x4674bc(0x2c9)](_0x43fd31=>_0x43fd31['id']!==_0xf3306f&&_0x43fd31['name'][_0x4674bc(0x3d1)]()===_0x5e9384)?{'valid':!0x1,'reason':'A\x20table\x20with\x20this\x20name\x20already\x20exists.','error':_0x4674bc(0x384)}:{'valid':!0x0};}function Pi(_0x2b9c32,_0x14730c){const _0x22cf8e=_0x58a750;let _0x149b2e=_0x14730c[_0x22cf8e(0x1c8)](/[:\\/?*\[\]]/g,'\x20')[_0x22cf8e(0x1c8)](/^'+|'+$/g,'')[_0x22cf8e(0x3b2)]()||_0x22cf8e(0x232),_0x4d9f90=0x1;for(;;){let _0x531e19=_0x4d9f90===0x1?'':'\x20'+_0x4d9f90,_0x1f733c=''+_0x149b2e[_0x22cf8e(0x39f)](0x0,0x1f-_0x531e19[_0x22cf8e(0x17a)])+_0x531e19;if(Ni(_0x2b9c32,_0x1f733c)[_0x22cf8e(0x258)])return _0x1f733c;_0x4d9f90++;}}const Fi={'id':_0x58a750(0x108),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x5b3fe7,_0x35e210)=>{const _0x542d03=_0x58a750;if(!_0x35e210)return!0x1;let _0x2c419b=_0x5b3fe7['get'](_0x59fb84),{unitId:_0x3d718e,table:_0xc73de6,index:_0x54680b}=_0x35e210,_0x3cc268=_0x2c419b[_0x542d03(0x31d)](_0x3d718e,_0x1fd3aa[_0x542d03(0x41f)]);if(!_0x3cc268||_0x3cc268[_0x542d03(0x26f)]()[_0x542d03(0x347)][_0xc73de6['id']]||!Ni(_0x3cc268[_0x542d03(0x26f)](),_0xc73de6[_0x542d03(0x2fa)])[_0x542d03(0x258)])return!0x1;try{_0x130471(_0xc73de6);}catch{return!0x1;}let _0x1d524f=_0x5b3fe7[_0x542d03(0x1ce)](_0x49c211),_0x6be8c7=_0x5b3fe7[_0x542d03(0x1ce)](_0x510401),_0x559b7b=_0x3cc268[_0x542d03(0x26f)](),_0x2ab647=new K()[_0x542d03(0x359)](_0x559b7b,_0xc73de6,_0x54680b),_0x125aef=new V()[_0x542d03(0x170)](_0x559b7b,_0x2ab647),_0x37629e={'unitId':_0x3d718e,'op':_0x2ab647},_0x177ebd={'unitId':_0x3d718e,'op':_0x125aef};return _0x1d524f[_0x542d03(0x113)](Z['id'],_0x37629e)?(_0x2c419b[_0x542d03(0x1c6)](_0x3d718e),_0x6be8c7[_0x542d03(0xca)]({'unitID':_0x3d718e,'undoMutations':[{'id':Z['id'],'params':_0x177ebd}],'redoMutations':[{'id':Z['id'],'params':_0x37629e}]}),!0x0):!0x1;}};function Ii(_0x4cdfca,_0x2cacb6,_0x1b1fba=[]){const _0x4c0809=_0x58a750;let _0x292e94=new Set([...Object[_0x4c0809(0x255)](_0x4cdfca[_0x4c0809(0x29a)])['filter'](_0x4b0d3f=>_0x4b0d3f)[_0x4c0809(0x36b)](_0x76e631=>_0x76e631[_0x4c0809(0x2fa)]),..._0x1b1fba[_0x4c0809(0x36b)](_0xc6b529=>_0xc6b529[_0x4c0809(0x2fa)])]);if(!_0x292e94[_0x4c0809(0x192)](_0x2cacb6))return _0x2cacb6;let _0x384824=0x2;for(;_0x292e94[_0x4c0809(0x192)](_0x2cacb6+'\x20'+_0x384824);)_0x384824++;return _0x2cacb6+'\x20'+_0x384824;}function Li(_0x1b2c37,_0x215005){if(!_0x1b2c37||!_0x215005['length'])return;let _0x1f2927=[..._0x1b2c37];return _0x215005['forEach'](_0x24aaad=>{const _0x2293cd=_0x392b;_0x1f2927['includes'](_0x24aaad)||_0x1f2927[_0x2293cd(0x2fe)](_0x24aaad);}),_0x1f2927;}const Ri={'options':[{'id':'todo','name':_0x58a750(0x32b),'color':_0x58a750(0x3db)},{'id':_0x58a750(0x2f3),'name':'Doing','color':_0x58a750(0x27f)},{'id':_0x58a750(0x1ed),'name':_0x58a750(0x38e),'color':_0x58a750(0x1d3)}]},zi={'locale':'en-US','pattern':_0x58a750(0x279),'includeTime':!0x1,'hourCycle':_0x58a750(0x2bf),'defaultMode':'none'};function Bi(_0x2d5ad4,_0x5dfea5,_0x5e6482,_0xf44ad){const _0x27f98a=_0x58a750;var _0x207af6;let _0x570a3b=new K(),_0x1c291a=_0x2d5ad4[_0x27f98a(0x347)][_0x5dfea5],_0x151e68=_0x1c291a?{..._0x5e6482,'fieldOrder':[_0x1abc18,...(_0x5e6482[_0x27f98a(0x3e0)]??_0x1c291a[_0x27f98a(0x3e0)])['filter'](_0x293208=>_0x293208!==_0x1abc18)],'fieldSettings':{..._0x5e6482['fieldSettings'],[_0x1abc18]:{...(_0x207af6=_0x5e6482['fieldSettings'])==null?void 0x0:_0x207af6[_0x1abc18],'hidden':!0x0}}}:_0x5e6482;if(_0x1c291a&&_0x151e68[_0x27f98a(0x18d)]==='kanban'){let _0x40c6ed=Hi(_0x1c291a,_0x151e68),_0x2e90f1=_0x40c6ed['changed']?{..._0x151e68,'config':_0x40c6ed[_0x27f98a(0x346)],'fieldOrder':_0x40c6ed['fieldOrder']??_0x151e68[_0x27f98a(0x3e0)]}:_0x151e68;return B([..._0x40c6ed[_0x27f98a(0x29a)][_0x27f98a(0x36b)](_0x232785=>_0x570a3b[_0x27f98a(0xe6)](_0x2d5ad4,_0x5dfea5,{'field':_0x232785})),_0x570a3b[_0x27f98a(0x2c6)](_0x2d5ad4,_0x5dfea5,_0x2e90f1,_0xf44ad)]);}if(!_0x1c291a||_0x151e68['type']!==_0x27f98a(0x2f5)&&_0x151e68['type']!==_0x27f98a(0x202))return _0x570a3b['createView'](_0x2d5ad4,_0x5dfea5,_0x151e68,_0xf44ad);let _0x155618=Vi(_0x1c291a,_0x151e68),_0x8a420f=_0x155618[_0x27f98a(0x419)]?{..._0x151e68,'config':_0x155618[_0x27f98a(0x346)],'fieldOrder':_0x155618[_0x27f98a(0x3e0)]??_0x151e68[_0x27f98a(0x3e0)]}:_0x151e68;return _0x151e68['type']==='gantt'&&Gi(_0x151e68)&&(_0x8a420f=Ki(_0x1c291a,_0x8a420f,_0x155618[_0x27f98a(0x29a)])),B([..._0x155618[_0x27f98a(0x29a)][_0x27f98a(0x36b)](_0x150212=>_0x570a3b[_0x27f98a(0xe6)](_0x2d5ad4,_0x5dfea5,{'field':_0x150212})),_0x570a3b[_0x27f98a(0x2c6)](_0x2d5ad4,_0x5dfea5,_0x8a420f,_0xf44ad)]);}function Vi(_0x49bbb0,_0x40a686,_0x3ab59d=!0x1){const _0xb3f38d=_0x58a750;var _0x5105c2,_0x5733ea;let _0x2f2b61=_0x49bbb0[_0xb3f38d(0x3e0)][_0xb3f38d(0x253)](_0x301a05=>Ji(_0x49bbb0,_0x301a05)),_0x8e9e84=[],_0x24e335={..._0x40a686[_0xb3f38d(0x346)]??{}},_0x45084a=typeof _0x24e335['startDateFieldId']==_0xb3f38d(0x223)&&Ji(_0x49bbb0,_0x24e335[_0xb3f38d(0x39b)])?_0x24e335[_0xb3f38d(0x39b)]:_0x2f2b61[0x0],_0x131c81=typeof _0x24e335['endDateFieldId']==_0xb3f38d(0x223)&&Ji(_0x49bbb0,_0x24e335[_0xb3f38d(0x181)])&&_0x24e335[_0xb3f38d(0x181)]!==_0x45084a?_0x24e335[_0xb3f38d(0x181)]:_0x2f2b61[_0xb3f38d(0x145)](_0x4d0f98=>_0x4d0f98!==_0x45084a);if(!_0x45084a){let _0x5ae47d=Yi(_0x49bbb0,_0x8e9e84,_0x40a686[_0xb3f38d(0x18d)]==='gantt'?_0xb3f38d(0x12f):_0xb3f38d(0x160));_0x8e9e84['push'](_0x5ae47d),_0x45084a=_0x5ae47d['id'];}if((_0x40a686[_0xb3f38d(0x18d)]===_0xb3f38d(0x202)||_0x3ab59d)&&!_0x131c81){let _0x481329=Yi(_0x49bbb0,_0x8e9e84,'End\x20date');_0x8e9e84[_0xb3f38d(0x2fe)](_0x481329),_0x131c81=_0x481329['id'];}_0x40a686[_0xb3f38d(0x18d)]==='calendar'&&!_0x131c81&&delete _0x24e335[_0xb3f38d(0x181)],_0x24e335[_0xb3f38d(0x39b)]=_0x45084a,_0x40a686[_0xb3f38d(0x18d)]==='calendar'&&_0x131c81&&(_0x24e335['endDateFieldId']=_0x131c81),_0x40a686[_0xb3f38d(0x18d)]===_0xb3f38d(0x202)&&(_0x24e335['endDateFieldId']=_0x131c81??_0x45084a);let _0x211acb=Li(_0x40a686[_0xb3f38d(0x3e0)],_0x8e9e84['map'](_0x14719f=>_0x14719f['id']));return{'changed':_0x8e9e84[_0xb3f38d(0x17a)]>0x0||_0x24e335[_0xb3f38d(0x39b)]!==((_0x5105c2=_0x40a686[_0xb3f38d(0x346)])==null?void 0x0:_0x5105c2[_0xb3f38d(0x39b)])||_0x24e335[_0xb3f38d(0x181)]!==((_0x5733ea=_0x40a686['config'])==null?void 0x0:_0x5733ea[_0xb3f38d(0x181)])||!!(_0x211acb&&!_0x4a5e41['diffValue'](_0x211acb,_0x40a686[_0xb3f38d(0x3e0)]??[])),'fields':_0x8e9e84,'config':_0x24e335,'fieldOrder':_0x211acb};}function Hi(_0x137c07,_0x13a878){const _0x362633=_0x58a750;var _0x6861fd;let _0x1e01c4=[],_0xe619e9={..._0x13a878[_0x362633(0x346)]??{}},_0x37f684=typeof _0xe619e9[_0x362633(0x2dc)]==_0x362633(0x223)&&Ui(_0x137c07,_0xe619e9[_0x362633(0x2dc)])?_0xe619e9[_0x362633(0x2dc)]:_0x137c07[_0x362633(0x3e0)][_0x362633(0x145)](_0x49d1c8=>Ui(_0x137c07,_0x49d1c8));if(!_0x37f684){let _0x57fc20=Wi(_0x137c07,_0x1e01c4);_0x1e01c4['push'](_0x57fc20),_0x37f684=_0x57fc20['id'];}_0xe619e9[_0x362633(0x2dc)]=_0x37f684;let _0x1e1d42=Li(_0x13a878['fieldOrder'],_0x1e01c4[_0x362633(0x36b)](_0x2507b7=>_0x2507b7['id']));return{'changed':_0x1e01c4[_0x362633(0x17a)]>0x0||_0xe619e9[_0x362633(0x2dc)]!==((_0x6861fd=_0x13a878['config'])==null?void 0x0:_0x6861fd[_0x362633(0x2dc)])||!!(_0x1e1d42&&!_0x4a5e41[_0x362633(0x27b)](_0x1e1d42,_0x13a878[_0x362633(0x3e0)]??[])),'fields':_0x1e01c4,'config':_0xe619e9,'fieldOrder':_0x1e1d42};}function Ui(_0x10aafe,_0x3342ed){const _0x4241ad=_0x58a750;let _0x4001e2=_0x3342ed?_0x10aafe[_0x4241ad(0x29a)][_0x3342ed]:null;return _0x4001e2?[_0x54dcd1['SingleSelect'],_0x54dcd1[_0x4241ad(0xf3)],_0x54dcd1[_0x4241ad(0x2f9)],_0x54dcd1['Person'],_0x54dcd1[_0x4241ad(0x3c3)],_0x54dcd1[_0x4241ad(0x2ca)]][_0x4241ad(0x422)](_0x4001e2[_0x4241ad(0x18d)]):!0x1;}function Wi(_0x4603f3,_0x5633c2){const _0x42c937=_0x58a750;return{'id':'fld-'+_0xb44a74(0x8),'name':Ii(_0x4603f3,'Status',_0x5633c2),'type':_0x54dcd1[_0x42c937(0x193)],'config':_0x4a5e41[_0x42c937(0x2eb)](Ri)};}function Gi(_0x1195a3){const _0x548369=_0x58a750;return Object['keys'](_0x1195a3[_0x548369(0x346)]??{})[_0x548369(0x17a)]===0x0&&Object[_0x548369(0x29c)](_0x1195a3['fieldSettings']??{})[_0x548369(0x17a)]===0x0;}function Ki(_0x40ac13,_0x13372c,_0x565ed3){const _0x35e173=_0x58a750;let _0x5a7124={..._0x13372c[_0x35e173(0x346)]??{}},_0x111271=_0x565ed3[_0x35e173(0x36b)](_0x596c5a=>_0x596c5a['id']),_0x943541=[..._0x40ac13[_0x35e173(0x3e0)],..._0x111271],_0x11c2c8=typeof _0x5a7124[_0x35e173(0x3ef)]==_0x35e173(0x223)&&qi(_0x40ac13,_0x565ed3,_0x5a7124[_0x35e173(0x3ef)])?_0x5a7124['titleFieldId']:_0x40ac13[_0x35e173(0x1a8)],_0x18efab=typeof _0x5a7124[_0x35e173(0x39b)]==_0x35e173(0x223)?_0x5a7124['startDateFieldId']:'',_0x3db8b6=typeof _0x5a7124['endDateFieldId']==_0x35e173(0x223)?_0x5a7124['endDateFieldId']:_0x18efab,_0x2eee15=new Set([_0x11c2c8,_0x18efab,_0x3db8b6][_0x35e173(0x253)](_0x3f6a3c=>_0x3f6a3c&&qi(_0x40ac13,_0x565ed3,_0x3f6a3c))),_0xff5659=Object['fromEntries'](_0x943541[_0x35e173(0x330)](_0x23d1fd=>_0x2eee15['has'](_0x23d1fd)||!qi(_0x40ac13,_0x565ed3,_0x23d1fd)?[]:[[_0x23d1fd,{'hidden':!0x0}]]));return{..._0x13372c,'config':{..._0x5a7124,'titleFieldId':_0x11c2c8},'fieldSettings':_0xff5659};}function qi(_0x1ebed1,_0x1c5c04,_0x24a614){const _0x40800e=_0x58a750;return!!(_0x1ebed1[_0x40800e(0x29a)][_0x24a614]??_0x1c5c04[_0x40800e(0x145)](_0x2fa780=>_0x2fa780['id']===_0x24a614))&&!0x0;}function Ji(_0x1b8ce8,_0x5ad4fe){const _0x4fd40b=_0x58a750;let _0xb2c4c7=_0x5ad4fe?_0x1b8ce8['fields'][_0x5ad4fe]:null;return!!_0xb2c4c7&&_0xb2c4c7[_0x4fd40b(0x18d)]===_0x54dcd1[_0x4fd40b(0x160)]&&_0xb2c4c7[_0x4fd40b(0x2c8)]!==!0x0&&_0xb2c4c7[_0x4fd40b(0x124)]!==!0x0;}function Yi(_0x538a5c,_0x1cbac4,_0x5ec587){const _0x18523d=_0x58a750;let _0x4ed0ab=new Set([...Object['keys'](_0x538a5c[_0x18523d(0x29a)]),..._0x1cbac4[_0x18523d(0x36b)](_0x283a3d=>_0x283a3d['id'])]),_0x9e01ff=_0x18523d(0x394)+_0xb44a74(0x8);for(;_0x4ed0ab['has'](_0x9e01ff);)_0x9e01ff=_0x18523d(0x394)+_0xb44a74(0x8);return{'id':_0x9e01ff,'name':Ii(_0x538a5c,_0x5ec587,_0x1cbac4),'type':_0x54dcd1[_0x18523d(0x160)],'config':{...zi}};}const Xi={'id':_0x58a750(0x12a),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x1239c6,_0x437143)=>{const _0x48b8b3=_0x58a750;if(!_0x437143)return!0x1;let _0x2ec099=_0x1239c6[_0x48b8b3(0x1ce)](_0x59fb84),{unitId:_0x3f4c06,tableId:_0x516562,view:_0x8be0d7,index:_0x24af1c}=_0x437143,_0x39ea6f=_0x2ec099[_0x48b8b3(0x31d)](_0x3f4c06,_0x1fd3aa[_0x48b8b3(0x41f)]);if(!_0x39ea6f||!Q(_0x39ea6f,_0x516562)||_0x39ea6f['getSnapshot']()[_0x48b8b3(0x347)][_0x516562][_0x48b8b3(0x2c4)][_0x8be0d7['id']])return!0x1;let _0x3983c1=_0x1239c6['get'](_0x49c211),_0x3f42ff=_0x1239c6[_0x48b8b3(0x1ce)](_0x510401),_0x5e0b0a=_0x39ea6f[_0x48b8b3(0x26f)](),_0x15347b=Bi(_0x5e0b0a,_0x516562,_0x8be0d7,_0x24af1c),_0x1fb9f1=new V()[_0x48b8b3(0x170)](_0x5e0b0a,_0x15347b),_0x47c6bd={'unitId':_0x3f4c06,'op':_0x15347b},_0x4b4535={'unitId':_0x3f4c06,'op':_0x1fb9f1};return _0x3983c1[_0x48b8b3(0x113)](Z['id'],_0x47c6bd)?(_0x2ec099[_0x48b8b3(0x1c6)](_0x3f4c06),_0x3f42ff[_0x48b8b3(0xca)]({'unitID':_0x3f4c06,'undoMutations':[{'id':Z['id'],'params':_0x4b4535}],'redoMutations':[{'id':Z['id'],'params':_0x47c6bd}]}),!0x0):!0x1;}},Zi={'id':'base.command.delete-base-field','type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0xcc74b1,_0x5407c7){const _0x5de752=_0x58a750;if(!_0x5407c7)return!0x1;let _0xfda309=_0xcc74b1[_0x5de752(0x1ce)](_0x59fb84),{unitId:_0x1a35c9,tableId:_0x159ee4,fieldId:_0x1e1cd1}=_0x5407c7,_0x54b377=_0xfda309[_0x5de752(0x31d)](_0x1a35c9,_0x1fd3aa['UNIVER_BASE']);if(!_0x54b377)return!0x1;let _0x23a54a=_0x54b377['getSnapshot'](),_0x3b4e1c=_0x23a54a['tables'][_0x159ee4];if(!Q(_0x54b377,_0x159ee4,{'fieldIds':[_0x1e1cd1]})||_0x3b4e1c[_0x5de752(0x1a8)]===_0x1e1cd1||_0x1e1cd1===_0x1abc18)return!0x1;let _0x2e58cf=_0xcc74b1[_0x5de752(0x1ce)](_0x49c211),_0x2ce4b5=_0xcc74b1['get'](_0x510401),_0x14d321=new K()[_0x5de752(0x186)](_0x23a54a,_0x159ee4,_0x1e1cd1),_0x112b1d=new V()[_0x5de752(0x170)](_0x23a54a,_0x14d321),_0x544599={'unitId':_0x1a35c9,'op':_0x14d321},_0x2dd926={'unitId':_0x1a35c9,'op':_0x112b1d};return _0x2e58cf['syncExecuteCommand'](Z['id'],_0x544599)?(_0xfda309['focusUnit'](_0x1a35c9),_0x2ce4b5['pushUndoRedo']({'unitID':_0x1a35c9,'undoMutations':[{'id':Z['id'],'params':_0x2dd926}],'redoMutations':[{'id':Z['id'],'params':_0x544599}]}),!0x0):!0x1;}},Qi={'id':'base.command.delete-base-record','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x4602e3,_0x3b43ac)=>{const _0x5d8502=_0x58a750;if(!_0x3b43ac)return!0x1;let _0x383838=_0x4602e3[_0x5d8502(0x1ce)](_0x59fb84),{unitId:_0x3fdd9a,tableId:_0x34a41c,recordId:_0x41a7b7}=_0x3b43ac,_0x50a784=_0x383838[_0x5d8502(0x31d)](_0x3fdd9a,_0x1fd3aa[_0x5d8502(0x41f)]);if(!_0x50a784||!Q(_0x50a784,_0x34a41c,{'recordIds':[_0x41a7b7]}))return!0x1;let _0x1e847d=_0x4602e3[_0x5d8502(0x1ce)](_0x49c211),_0x32fe8=_0x4602e3[_0x5d8502(0x1ce)](_0x510401),_0x45b58d=_0x50a784[_0x5d8502(0x26f)](),_0x147c44=Ve(_0x45b58d['tables'][_0x34a41c],[_0x41a7b7]),_0x57457d=new K()[_0x5d8502(0x1cd)](_0x45b58d,_0x34a41c,_0x41a7b7),_0x6619e=new V()['invertOp'](_0x45b58d,_0x57457d),_0x328e73={'unitId':_0x3fdd9a,'op':_0x57457d,'hierarchyChanges':_0x147c44,'source':_0x3b43ac[_0x5d8502(0x26a)]??'ui'},_0x66c06c={..._0x328e73,'source':'redo'},_0x50463b={'unitId':_0x3fdd9a,'op':_0x6619e,'hierarchyChanges':_0x147c44['map'](_0x5efccd=>({..._0x5efccd,'oldParentRecordId':_0x5efccd[_0x5d8502(0x2f6)],'parentRecordId':_0x5efccd[_0x5d8502(0x3c9)]})),'source':_0x5d8502(0x3bf)};return _0x1e847d['syncExecuteCommand'](Z['id'],_0x328e73)?(_0x383838[_0x5d8502(0x1c6)](_0x3fdd9a),_0x32fe8[_0x5d8502(0xca)]({'unitID':_0x3fdd9a,'undoMutations':[{'id':Z['id'],'params':_0x50463b}],'redoMutations':[{'id':Z['id'],'params':_0x66c06c}]}),!0x0):!0x1;}},$i={'id':_0x58a750(0x3b9),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x5d2723,_0x44ba7d)=>{const _0x1d020d=_0x58a750;if(!_0x44ba7d)return!0x1;let _0x23cc0b=_0x5d2723[_0x1d020d(0x1ce)](_0x59fb84),{unitId:_0x465b46,tableId:_0x9c65cf}=_0x44ba7d,_0x1c9c0d=_0x23cc0b[_0x1d020d(0x31d)](_0x465b46,_0x1fd3aa['UNIVER_BASE']);if(!_0x1c9c0d||!Q(_0x1c9c0d,_0x9c65cf))return!0x1;let _0x59532e=_0x5d2723[_0x1d020d(0x1ce)](_0x49c211),_0x198430=_0x5d2723[_0x1d020d(0x1ce)](_0x510401),_0x34133e=_0x1c9c0d[_0x1d020d(0x26f)](),_0xd73d94=Ae(_0x34133e,_0x9c65cf);if(_0xd73d94[_0x1d020d(0x17a)]>0x0)return console[_0x1d020d(0x421)](_0x1d020d(0x221)+_0x9c65cf+_0x1d020d(0x32c)+_0xd73d94[_0x1d020d(0x36b)](_0x4abc5c=>_0x4abc5c[_0x1d020d(0x3cb)]+'.'+_0x4abc5c[_0x1d020d(0x32d)])['join'](',\x20')+'.'),!0x1;let _0x36ba42=new K()['deleteTable'](_0x34133e,_0x9c65cf),_0x4b23d1=new V()['invertOp'](_0x34133e,_0x36ba42),_0x525b05={'unitId':_0x465b46,'op':_0x36ba42},_0x18d18b={'unitId':_0x465b46,'op':_0x4b23d1};return _0x59532e[_0x1d020d(0x113)](Z['id'],_0x525b05)?(_0x23cc0b[_0x1d020d(0x1c6)](_0x465b46),_0x198430[_0x1d020d(0xca)]({'unitID':_0x465b46,'undoMutations':[{'id':Z['id'],'params':_0x18d18b}],'redoMutations':[{'id':Z['id'],'params':_0x525b05}]}),!0x0):!0x1;}},ea={'id':'base.command.delete-base-view','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x4d51ff,_0x59e6a3)=>{const _0x4b2a43=_0x58a750;if(!_0x59e6a3)return!0x1;let _0x392527=_0x4d51ff['get'](_0x59fb84),{unitId:_0x2dd6c2,tableId:_0x5b1137,viewId:_0x295b65}=_0x59e6a3,_0x3fc0c9=_0x392527[_0x4b2a43(0x31d)](_0x2dd6c2,_0x1fd3aa[_0x4b2a43(0x41f)]);if(!_0x3fc0c9||!Q(_0x3fc0c9,_0x5b1137,{'viewIds':[_0x295b65]}))return!0x1;let _0x336886=_0x4d51ff[_0x4b2a43(0x1ce)](_0x49c211),_0x57537d=_0x4d51ff[_0x4b2a43(0x1ce)](_0x510401),_0x5ae26c=_0x3fc0c9['getSnapshot'](),_0xce54f2=new K()[_0x4b2a43(0x2ef)](_0x5ae26c,_0x5b1137,_0x295b65),_0x3b20ec=new V()[_0x4b2a43(0x170)](_0x5ae26c,_0xce54f2),_0x40285e={'unitId':_0x2dd6c2,'op':_0xce54f2},_0x3b636d={'unitId':_0x2dd6c2,'op':_0x3b20ec};return _0x336886[_0x4b2a43(0x113)](Z['id'],_0x40285e)?(_0x392527[_0x4b2a43(0x1c6)](_0x2dd6c2),_0x57537d[_0x4b2a43(0xca)]({'unitID':_0x2dd6c2,'undoMutations':[{'id':Z['id'],'params':_0x3b636d}],'redoMutations':[{'id':Z['id'],'params':_0x40285e}]}),!0x0):!0x1;}},ta={'id':_0x58a750(0x1db),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x1015f7,_0x44afcd)=>{const _0x2667cd=_0x58a750;if(!_0x44afcd)return!0x1;let _0x4fb5d3=_0x1015f7[_0x2667cd(0x1ce)](_0x59fb84),{unitId:_0x464429,tableId:_0x5320bb,sourceFieldId:_0x11372b,field:_0x367515,index:_0x2c66af,viewIndexes:_0x9421e2}=_0x44afcd,_0x3b52f6=_0x4fb5d3[_0x2667cd(0x31d)](_0x464429,_0x1fd3aa[_0x2667cd(0x41f)]);if(!_0x3b52f6||!Q(_0x3b52f6,_0x5320bb,{'fieldIds':[_0x11372b]})||_0x11372b===_0x1abc18||_0x3b52f6[_0x2667cd(0x26f)]()[_0x2667cd(0x347)][_0x5320bb]['fields'][_0x367515['id']]||_0x2c66af===0x0||!bi(_0x3b52f6,_0x5320bb,_0x367515))return!0x1;let _0x49e66e=_0x1015f7['get'](_0x49c211),_0x213a74=_0x1015f7[_0x2667cd(0x1ce)](_0x510401),_0x82709=_0x3b52f6['getSnapshot'](),_0x368436=new K()['duplicateField'](_0x82709,_0x5320bb,_0x11372b,{'field':_0x367515,'index':_0x2c66af,'viewIndexes':_0x9421e2}),_0x38564f=new V()[_0x2667cd(0x170)](_0x82709,_0x368436),_0x5055d7={'unitId':_0x464429,'op':_0x368436},_0x48b170={'unitId':_0x464429,'op':_0x38564f};return _0x49e66e['syncExecuteCommand'](Z['id'],_0x5055d7)?(_0x4fb5d3[_0x2667cd(0x1c6)](_0x464429),_0x213a74['pushUndoRedo']({'unitID':_0x464429,'undoMutations':[{'id':Z['id'],'params':_0x48b170}],'redoMutations':[{'id':Z['id'],'params':_0x5055d7}]}),!0x0):!0x1;}},na={'id':'base.command.duplicate-base-record','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x128240,_0xa9b20)=>{const _0x4ad4dd=_0x58a750;if(!_0xa9b20)return!0x1;let _0x39be2c=_0x128240[_0x4ad4dd(0x1ce)](_0x59fb84),{unitId:_0x5aa26f,tableId:_0x1dc968,sourceRecordId:_0x4093cd,record:_0x3f2044}=_0xa9b20,_0x15b577=_0x39be2c[_0x4ad4dd(0x31d)](_0x5aa26f,_0x1fd3aa['UNIVER_BASE']);if(!_0x15b577||!Q(_0x15b577,_0x1dc968,{'recordIds':[_0x4093cd]})||!Si(_0x15b577,_0x1dc968,_0x3f2044))return!0x1;let _0x40b669=_0x128240[_0x4ad4dd(0x1ce)](_0x49c211),_0x57bb6d=_0x128240[_0x4ad4dd(0x1ce)](_0x510401),_0x2132f6=_0x15b577[_0x4ad4dd(0x26f)](),_0x111481=Ci(_0x3f2044),_0x43c2da=ze(_0x2132f6[_0x4ad4dd(0x347)][_0x1dc968],[_0x111481]),_0x44b7d1=new K()[_0x4ad4dd(0x3a1)](_0x2132f6,_0x1dc968,_0x4093cd,_0x111481),_0x49a30f=new V()['invertOp'](_0x2132f6,_0x44b7d1),_0x15543b={'unitId':_0x5aa26f,'op':_0x44b7d1,'hierarchyChanges':_0x43c2da[_0x4ad4dd(0x17a)]?_0x43c2da:void 0x0,'source':_0x43c2da[_0x4ad4dd(0x17a)]?_0xa9b20['source']??'ui':void 0x0},_0x5b87d6={..._0x15543b,'source':_0x43c2da[_0x4ad4dd(0x17a)]?_0x4ad4dd(0x10f):void 0x0},_0x346c57={'unitId':_0x5aa26f,'op':_0x49a30f,'hierarchyChanges':_0x43c2da[_0x4ad4dd(0x17a)]?_0x43c2da['map'](_0xb0c7d1=>({..._0xb0c7d1,'oldParentRecordId':_0xb0c7d1[_0x4ad4dd(0x2f6)],'parentRecordId':null})):void 0x0,'source':_0x43c2da[_0x4ad4dd(0x17a)]?_0x4ad4dd(0x3bf):void 0x0};return _0x40b669[_0x4ad4dd(0x113)](Z['id'],_0x15543b)?(_0x39be2c[_0x4ad4dd(0x1c6)](_0x5aa26f),_0x57bb6d[_0x4ad4dd(0xca)]({'unitID':_0x5aa26f,'undoMutations':[{'id':Z['id'],'params':_0x346c57}],'redoMutations':[{'id':Z['id'],'params':_0x5b87d6}]}),!0x0):!0x1;}},ra={'id':_0x58a750(0x182),'type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0xc6f7f7,_0x510979){const _0x5e222f=_0x58a750;if(!_0x510979)return!0x1;let _0x2827c2=_0xc6f7f7[_0x5e222f(0x1ce)](_0x59fb84),{unitId:_0x36cce8,tableId:_0x6a1b6c,viewId:_0x870f42,ensureEndDateField:_0x2be2e1}=_0x510979,_0x507343=_0x2827c2[_0x5e222f(0x31d)](_0x36cce8,_0x1fd3aa['UNIVER_BASE']);if(!_0x507343||!Q(_0x507343,_0x6a1b6c,{'viewIds':[_0x870f42]}))return!0x1;let _0x3d101a=_0x507343[_0x5e222f(0x26f)](),_0x15f078=_0x3d101a['tables'][_0x6a1b6c],_0x5eda49=_0x15f078==null?void 0x0:_0x15f078['views'][_0x870f42];if(!_0x15f078||!_0x5eda49||_0x5eda49[_0x5e222f(0x18d)]!==_0x5e222f(0x2f5)&&_0x5eda49[_0x5e222f(0x18d)]!==_0x5e222f(0x202))return!0x1;let _0x550586=Vi(_0x15f078,_0x5eda49,_0x2be2e1===!0x0);if(!_0x550586[_0x5e222f(0x419)])return!0x1;let _0x786705=_0xc6f7f7['get'](_0x49c211),_0x195c26=_0xc6f7f7[_0x5e222f(0x1ce)](_0x510401),_0x469ed3=new K(),_0x2e1777=[..._0x550586[_0x5e222f(0x29a)][_0x5e222f(0x36b)](_0x49f730=>_0x469ed3[_0x5e222f(0xe6)](_0x3d101a,_0x510979[_0x5e222f(0x3cb)],{'field':_0x49f730})),ia([...aa(_0x510979[_0x5e222f(0x3cb)],_0x510979[_0x5e222f(0x2a3)]),_0x5e222f(0x346)],_0x5eda49[_0x5e222f(0x346)],_0x550586[_0x5e222f(0x346)])];_0x550586[_0x5e222f(0x3e0)]&&_0x2e1777['push'](ia([...aa(_0x510979[_0x5e222f(0x3cb)],_0x510979[_0x5e222f(0x2a3)]),_0x5e222f(0x3e0)],_0x5eda49['fieldOrder'],_0x550586[_0x5e222f(0x3e0)]));let _0x4c047d=B(_0x2e1777),_0x2e82b3=new V()['invertOp'](_0x3d101a,_0x4c047d),_0xa5e95f={'unitId':_0x36cce8,'op':_0x4c047d},_0x59490b={'unitId':_0x36cce8,'op':_0x2e82b3};return _0x786705[_0x5e222f(0x113)](Z['id'],_0xa5e95f)?(_0x2827c2['focusUnit'](_0x36cce8),_0x195c26[_0x5e222f(0xca)]({'unitID':_0x36cce8,'undoMutations':[{'id':Z['id'],'params':_0x59490b}],'redoMutations':[{'id':Z['id'],'params':_0xa5e95f}]}),!0x0):!0x1;}};function ia(_0x4291b3,_0x2f26b9,_0xfa199e){const _0x36d781=_0x58a750;return _0x2f26b9===void 0x0?_0x2f9a7e[_0x36d781(0xd5)](_0x4291b3,_0xfa199e):_0x2f9a7e['replaceOp'](_0x4291b3,_0x2f26b9,_0xfa199e);}function aa(_0x4f704d,_0x38c7b3){const _0xe6a3f2=_0x58a750;return[_0xe6a3f2(0x347),_0x4f704d,_0xe6a3f2(0x2c4),_0x38c7b3];}const oa={'id':_0x58a750(0x27d),'type':_0x1b11d6['COMMAND'],'handler':(_0x4726a6,_0x1d91a5)=>{const _0xcb99b7=_0x58a750;if(!_0x1d91a5)return!0x1;let _0x16ac5a=_0x4726a6[_0xcb99b7(0x1ce)](_0x59fb84),{unitId:_0x1e48ec,tableId:_0x394a1e,fieldId:_0x481547,target:_0x507d96}=_0x1d91a5,_0x40c649=_0x16ac5a['getUnit'](_0x1e48ec,_0x1fd3aa[_0xcb99b7(0x41f)]),_0x248e20=_0x507d96['beforeFieldId']??_0x507d96[_0xcb99b7(0x1ab)];if(!_0x40c649||!!_0x507d96[_0xcb99b7(0x1f8)]==!!_0x507d96[_0xcb99b7(0x1ab)]||!_0x248e20||_0x248e20===_0x481547||_0x481547===_0x1abc18||_0x507d96[_0xcb99b7(0x1f8)]===_0x1abc18||!Q(_0x40c649,_0x394a1e,{'fieldIds':[_0x481547,_0x248e20]}))return!0x1;let _0x46b9ee=_0x4726a6[_0xcb99b7(0x1ce)](_0x49c211),_0x4fe362=_0x4726a6['get'](_0x510401),_0x1269b6=_0x40c649[_0xcb99b7(0x26f)](),_0x5b8933=new K()[_0xcb99b7(0x18a)](_0x1269b6,_0x394a1e,_0x481547,_0x507d96),_0x225064=new V()[_0xcb99b7(0x170)](_0x1269b6,_0x5b8933),_0x3d227a={'unitId':_0x1e48ec,'op':_0x5b8933},_0x319792={'unitId':_0x1e48ec,'op':_0x225064};return _0x46b9ee['syncExecuteCommand'](Z['id'],_0x3d227a)?(_0x16ac5a[_0xcb99b7(0x1c6)](_0x1e48ec),_0x4fe362[_0xcb99b7(0xca)]({'unitID':_0x1e48ec,'undoMutations':[{'id':Z['id'],'params':_0x319792}],'redoMutations':[{'id':Z['id'],'params':_0x3d227a}]}),!0x0):!0x1;}},sa={'id':_0x58a750(0x175),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x18b9ef,_0x275bbe)=>{const _0x38e0c3=_0x58a750;var _0x14435a;if(!_0x275bbe)return!0x1;let {unitId:_0x3866c9,tableId:_0x2179ba,recordId:_0x39fd90,parentRecordId:_0x3c5cec,orderKey:_0x515495}=_0x275bbe,_0x8970b2=_0x18b9ef[_0x38e0c3(0x1ce)](_0x59fb84),_0x14a600=_0x8970b2[_0x38e0c3(0x31d)](_0x3866c9,_0x1fd3aa[_0x38e0c3(0x41f)]);if(!_0x14a600||!Q(_0x14a600,_0x2179ba,{'recordIds':[_0x39fd90,..._0x3c5cec?[_0x3c5cec]:[]]}))throw new P('missingRecord');let _0x4dcc4f=_0x14a600[_0x38e0c3(0x26f)](),_0x314237=_0x4dcc4f[_0x38e0c3(0x347)][_0x2179ba],_0x11ccfb=Fe(_0x314237),_0x50aec2=_0x11ccfb??_0x275bbe[_0x38e0c3(0x32d)]??I(_0x314237);if(_0x11ccfb&&_0x275bbe['fieldId']&&_0x275bbe[_0x38e0c3(0x32d)]!==_0x11ccfb||_0x314237[_0x38e0c3(0x29a)][_0x50aec2]&&!F(_0x314237,_0x50aec2))throw new P(_0x38e0c3(0x3d7));let _0x5e0dcb=L(_0x314237,_0x50aec2),_0xeec191=We(_0x5e0dcb,_0x39fd90,_0x3c5cec);if(!_0xeec191['valid'])throw new P(_0xeec191[_0x38e0c3(0x2af)]===_0x4ff8e1[_0x38e0c3(0x420)]?_0x38e0c3(0x366):_0xeec191[_0x38e0c3(0x2af)]===_0x4ff8e1['Cycle']?_0x38e0c3(0xfc):_0x38e0c3(0x161));let _0x5a74e3=_0x5e0dcb[_0x38e0c3(0x201)][_0x38e0c3(0x1ce)](_0x39fd90)??null,_0x2f472f=_0x314237[_0x38e0c3(0x286)][_0x39fd90][_0x38e0c3(0x368)];if(_0x5a74e3===_0x3c5cec&&(_0x515495===void 0x0||_0x515495===_0x2f472f))return!0x0;let _0x429acb=_0x5a74e3!==_0x3c5cec,_0x483082=_0x515495!==void 0x0&&_0x515495!==_0x2f472f,_0x2c87eb=new K(),_0x64cb58=[],_0x3a78e3=_0x314237[_0x38e0c3(0x29a)][_0x50aec2],_0x20bbda=_0x429acb&&(!_0x3a78e3||((_0x14435a=N(_0x3a78e3))==null?void 0x0:_0x14435a[_0x38e0c3(0x2b7)])!==_0x3e04ef[_0x38e0c3(0x128)])?_0x3a78e3?_0x2c87eb[_0x38e0c3(0x1f2)](_0x4dcc4f,_0x2179ba,_0x50aec2,{'config':{..._0x3a78e3['config'],'relationRole':_0x3e04ef[_0x38e0c3(0x128)]}}):_0x18b9ef[_0x38e0c3(0x1ce)](Y)[_0x38e0c3(0xe9)](_0x14a600,_0x2179ba,Ie(_0x314237,_0x50aec2,_0x275bbe[_0x38e0c3(0x1fb)]),_0x314237[_0x38e0c3(0x3e0)]['length']):null;_0x20bbda&&_0x64cb58['push'](_0x20bbda),_0x429acb&&_0x64cb58[_0x38e0c3(0x2fe)](_0x2c87eb[_0x38e0c3(0xf2)](_0x4dcc4f,_0x2179ba,_0x39fd90,_0x50aec2,_0x3c5cec?Ee([_0x3c5cec]):'')),_0x483082&&_0x64cb58['push'](_0x2c87eb[_0x38e0c3(0x260)](_0x4dcc4f,_0x2179ba,_0x39fd90,_0x515495));let _0x287633=B(_0x64cb58),_0x52c2a9={'tableId':_0x2179ba,'fieldId':_0x50aec2,'recordId':_0x39fd90,'oldParentRecordId':_0x5a74e3,'parentRecordId':_0x3c5cec},_0x4c9268={'unitId':_0x3866c9,'op':_0x287633,'trigger':sa['id'],'hierarchyChanges':[_0x52c2a9],'source':_0x275bbe[_0x38e0c3(0x26a)]??'ui'},_0x2edae8={..._0x4c9268,'source':_0x38e0c3(0x10f)};if(!_0x18b9ef[_0x38e0c3(0x1ce)](_0x49c211)[_0x38e0c3(0x113)](Z['id'],_0x4c9268))return!0x1;let _0x3652b0=_0x14a600[_0x38e0c3(0x26f)](),_0x430b40=[];_0x429acb&&_0x430b40['push'](ca(_0x3652b0,_0x4dcc4f,_0x2179ba,_0x39fd90,_0x50aec2)),_0x483082&&_0x430b40[_0x38e0c3(0x2fe)](la(_0x3652b0,_0x4dcc4f,_0x2179ba,_0x39fd90)),_0x20bbda&&_0x430b40[_0x38e0c3(0x2fe)](new V()[_0x38e0c3(0x170)](_0x4dcc4f,_0x20bbda));let _0x395913={'unitId':_0x3866c9,'op':B(_0x430b40),'trigger':sa['id'],'hierarchyChanges':[{..._0x52c2a9,'oldParentRecordId':_0x3c5cec,'parentRecordId':_0x5a74e3}],'source':_0x38e0c3(0x3bf)};return _0x8970b2[_0x38e0c3(0x1c6)](_0x3866c9),_0x18b9ef[_0x38e0c3(0x1ce)](_0x510401)[_0x38e0c3(0xca)]({'unitID':_0x3866c9,'undoMutations':[{'id':Z['id'],'params':_0x395913}],'redoMutations':[{'id':Z['id'],'params':_0x2edae8}]}),!0x0;}};function ca(_0x3bd400,_0x23bc8b,_0x47d6df,_0x42f8ab,_0xd78c9){const _0x57b3c0=_0x58a750;var _0x3ed874,_0x26e393,_0x125146,_0x52f52d,_0xd641c3,_0x9f8638,_0x3e3318,_0x527173;let _0x557fa1=_0x3bd400[_0x57b3c0(0x347)][_0x47d6df],_0x2d8a58=_0x23bc8b['tables'][_0x47d6df],_0x50607c=(_0x3ed874=_0x557fa1[_0x57b3c0(0x1b6)])==null?void 0x0:_0x3ed874[_0x42f8ab],_0x11c826=(_0x26e393=_0x557fa1['colIndex'])==null?void 0x0:_0x26e393[_0xd78c9],_0x180a82=(_0x125146=_0x2d8a58[_0x57b3c0(0x1b6)])==null?void 0x0:_0x125146[_0x42f8ab],_0x1bb321=(_0x52f52d=_0x2d8a58[_0x57b3c0(0x203)])==null?void 0x0:_0x52f52d[_0xd78c9],_0x505937=_0x50607c==null||_0x11c826==null||(_0xd641c3=_0x557fa1[_0x57b3c0(0xd8)])==null||(_0xd641c3=_0xd641c3[_0x50607c])==null?void 0x0:_0xd641c3[_0x11c826],_0x2d0878=_0x180a82==null||_0x1bb321==null||(_0x9f8638=_0x2d8a58[_0x57b3c0(0xd8)])==null||(_0x9f8638=_0x9f8638[_0x180a82])==null?void 0x0:_0x9f8638[_0x1bb321],_0x12827d=(_0x3e3318=_0x557fa1[_0x57b3c0(0x286)][_0x42f8ab])==null?void 0x0:_0x3e3318[_0x57b3c0(0x255)][_0xd78c9],_0x279602=(_0x527173=_0x2d8a58[_0x57b3c0(0x286)][_0x42f8ab])==null?void 0x0:_0x527173['values'][_0xd78c9],_0x5d83e8=[],_0x13bd69=ua(_0x50607c==null||_0x11c826==null?null:G['cellData'](_0x47d6df,_0x50607c,_0x11c826),_0x505937,_0x2d0878);_0x13bd69&&_0x5d83e8['push'](_0x13bd69);let _0x2a8cf4=ua(G[_0x57b3c0(0x16f)](_0x47d6df,_0x42f8ab,_0xd78c9),_0x12827d,_0x279602);return _0x2a8cf4&&_0x5d83e8[_0x57b3c0(0x2fe)](_0x2a8cf4),B(_0x5d83e8);}function la(_0x35ec36,_0x4a02cb,_0x31d8a9,_0x16bc55){const _0x3eef5c=_0x58a750;var _0x4094c0,_0x2bbe17;let _0x1ff5fb=_0x35ec36['tables'][_0x31d8a9],_0x3b2b0c=_0x4a02cb['tables'][_0x31d8a9];return B([ua([...G[_0x3eef5c(0x277)](_0x31d8a9,_0x16bc55),'orderKey'],(_0x4094c0=_0x1ff5fb[_0x3eef5c(0x286)][_0x16bc55])==null?void 0x0:_0x4094c0[_0x3eef5c(0x368)],(_0x2bbe17=_0x3b2b0c['records'][_0x16bc55])==null?void 0x0:_0x2bbe17[_0x3eef5c(0x368)]),ua([...G[_0x3eef5c(0x400)](_0x31d8a9),_0x3eef5c(0x22a)],_0x1ff5fb[_0x3eef5c(0x22a)],_0x3b2b0c[_0x3eef5c(0x22a)])][_0x3eef5c(0x253)](_0x1b913b=>!!_0x1b913b));}function ua(_0x3a2241,_0x1294dc,_0x566655){const _0x188eeb=_0x58a750;if(!_0x3a2241||_0x1294dc===void 0x0&&_0x566655===void 0x0)return null;let _0xf175d1=_0x353726[_0x188eeb(0x3ec)]();return _0x566655===void 0x0?_0xf175d1[_0x188eeb(0x275)](_0x3a2241,_0x1294dc):_0x1294dc===void 0x0?_0xf175d1[_0x188eeb(0xd5)](_0x3a2241,_0x566655):_0xf175d1[_0x188eeb(0x3d0)](_0x3a2241,_0x1294dc,_0x566655);}const da={'id':'base.command.move-base-view','type':_0x1b11d6['COMMAND'],'handler':(_0x45f637,_0x2b0cd0)=>{const _0x2857c1=_0x58a750;if(!_0x2b0cd0)return!0x1;let _0x29176c=_0x45f637[_0x2857c1(0x1ce)](_0x59fb84),{unitId:_0xa668f2,tableId:_0x2e7010,viewId:_0x37eddb,target:_0x37a6d7}=_0x2b0cd0,_0x303feb=_0x29176c['getUnit'](_0xa668f2,_0x1fd3aa['UNIVER_BASE']),_0x477e0c=_0x37a6d7['beforeViewId']??_0x37a6d7[_0x2857c1(0x274)];if(!_0x303feb||!_0x477e0c||_0x477e0c===_0x37eddb||!Q(_0x303feb,_0x2e7010,{'viewIds':[_0x37eddb,_0x477e0c]}))return!0x1;let _0x62d5af=_0x45f637['get'](_0x49c211),_0x133d4b=_0x45f637['get'](_0x510401),_0x226e9c=_0x303feb['getSnapshot'](),_0x5954ec=new K()[_0x2857c1(0x2b2)](_0x226e9c,_0x2e7010,_0x37eddb,_0x37a6d7),_0x3ab2ea=new V()[_0x2857c1(0x170)](_0x226e9c,_0x5954ec),_0x1cc9e0={'unitId':_0xa668f2,'op':_0x5954ec},_0x3de999={'unitId':_0xa668f2,'op':_0x3ab2ea};return _0x62d5af['syncExecuteCommand'](Z['id'],_0x1cc9e0)?(_0x29176c[_0x2857c1(0x1c6)](_0xa668f2),_0x133d4b[_0x2857c1(0xca)]({'unitID':_0xa668f2,'undoMutations':[{'id':Z['id'],'params':_0x3de999}],'redoMutations':[{'id':Z['id'],'params':_0x1cc9e0}]}),!0x0):!0x1;}},fa={'id':_0x58a750(0x341),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x2a095f,_0xec907f)=>{const _0x315dc5=_0x58a750;if(!_0xec907f)return!0x1;let _0x311f52=_0x2a095f[_0x315dc5(0x1ce)](_0x59fb84),{unitId:_0x5ab28b,tableId:_0x498cca,name:_0x219b47}=_0xec907f,_0x1e8d65=_0x311f52[_0x315dc5(0x31d)](_0x5ab28b,_0x1fd3aa[_0x315dc5(0x41f)]);if(!_0x1e8d65||!Q(_0x1e8d65,_0x498cca)||!Ni(_0x1e8d65[_0x315dc5(0x26f)](),_0x219b47,_0x498cca)[_0x315dc5(0x258)])return!0x1;let _0x1070fa=_0x2a095f[_0x315dc5(0x1ce)](_0x49c211),_0x466feb=_0x2a095f[_0x315dc5(0x1ce)](_0x510401),_0x574b4d=_0x1e8d65['getSnapshot'](),_0x45f91=new K()['renameTable'](_0x574b4d,_0x498cca,_0x219b47),_0x397d0e=new V()[_0x315dc5(0x170)](_0x574b4d,_0x45f91),_0xe01077={'unitId':_0x5ab28b,'op':_0x45f91},_0x572e8b={'unitId':_0x5ab28b,'op':_0x397d0e};return _0x1070fa[_0x315dc5(0x113)](Z['id'],_0xe01077)?(_0x311f52[_0x315dc5(0x1c6)](_0x5ab28b),_0x466feb['pushUndoRedo']({'unitID':_0x5ab28b,'undoMutations':[{'id':Z['id'],'params':_0x572e8b}],'redoMutations':[{'id':Z['id'],'params':_0xe01077}]}),!0x0):!0x1;}},pa={'id':_0x58a750(0x11b),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x41fbca,_0x367783)=>{const _0x34349e=_0x58a750;if(!_0x367783)return!0x1;let _0x2ea036=_0x41fbca[_0x34349e(0x1ce)](_0x59fb84),{unitId:_0x1a5a00,tableId:_0x223343,viewId:_0x33e51a,name:_0x3e4135}=_0x367783,_0x13a912=_0x2ea036[_0x34349e(0x31d)](_0x1a5a00,_0x1fd3aa[_0x34349e(0x41f)]);if(!_0x13a912||!Q(_0x13a912,_0x223343,{'viewIds':[_0x33e51a]}))return!0x1;let _0x5d81a2=_0x41fbca[_0x34349e(0x1ce)](_0x49c211),_0x41b683=_0x41fbca[_0x34349e(0x1ce)](_0x510401),_0x2c1076=_0x13a912[_0x34349e(0x26f)](),_0x27e76c=new K()[_0x34349e(0x2de)](_0x2c1076,_0x223343,_0x33e51a,_0x3e4135),_0x1f0cdf=new V()[_0x34349e(0x170)](_0x2c1076,_0x27e76c),_0x57157a={'unitId':_0x1a5a00,'op':_0x27e76c},_0x3bf980={'unitId':_0x1a5a00,'op':_0x1f0cdf};return _0x5d81a2[_0x34349e(0x113)](Z['id'],_0x57157a)?(_0x2ea036[_0x34349e(0x1c6)](_0x1a5a00),_0x41b683['pushUndoRedo']({'unitID':_0x1a5a00,'undoMutations':[{'id':Z['id'],'params':_0x3bf980}],'redoMutations':[{'id':Z['id'],'params':_0x57157a}]}),!0x0):!0x1;}},ma={'id':'base.command.set-base-kanban-group-field','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x26f053,_0x5dc47c)=>{const _0x10c90c=_0x58a750;if(!_0x5dc47c)return!0x1;let _0x245963=_0x26f053['get'](_0x59fb84),{unitId:_0x116adf,tableId:_0x121c8f,viewId:_0x2f0462,fieldId:_0x41d66f}=_0x5dc47c,_0xcacf4a=_0x245963[_0x10c90c(0x31d)](_0x116adf,_0x1fd3aa[_0x10c90c(0x41f)]);if(!_0xcacf4a||!Q(_0xcacf4a,_0x121c8f,{'viewIds':[_0x2f0462],'fieldIds':[_0x41d66f]}))return!0x1;let _0x3a3777=_0x26f053[_0x10c90c(0x1ce)](_0x49c211),_0x3c9e54=_0x26f053[_0x10c90c(0x1ce)](_0x510401),_0x503f09=_0xcacf4a[_0x10c90c(0x26f)](),_0x222a1a=new K()['updateViewConfig'](_0x503f09,_0x121c8f,_0x2f0462,{'groupFieldId':_0x41d66f}),_0x1de87e=new V()[_0x10c90c(0x170)](_0x503f09,_0x222a1a),_0x29a488={'unitId':_0x116adf,'op':_0x222a1a},_0x5e7579={'unitId':_0x116adf,'op':_0x1de87e};return _0x3a3777[_0x10c90c(0x113)](Z['id'],_0x29a488)?(_0x245963[_0x10c90c(0x1c6)](_0x116adf),_0x3c9e54[_0x10c90c(0xca)]({'unitID':_0x116adf,'undoMutations':[{'id':Z['id'],'params':_0x5e7579}],'redoMutations':[{'id':Z['id'],'params':_0x29a488}]}),!0x0):!0x1;}},ha={'id':_0x58a750(0x36f),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x1636db,_0x51fa33)=>{const _0x3bf8ce=_0x58a750;if(!_0x51fa33)return!0x1;let _0x394533=_0x1636db[_0x3bf8ce(0x1ce)](_0x59fb84),_0xb893be=_0x394533[_0x3bf8ce(0x31d)](_0x51fa33[_0x3bf8ce(0x28a)],_0x1fd3aa['UNIVER_BASE']);if(!_0xb893be)return!0x1;let _0x4e6a14=_0xb893be[_0x3bf8ce(0x26f)]()[_0x3bf8ce(0x2fa)];if(_0x4e6a14===_0x51fa33[_0x3bf8ce(0x2fa)])return!0x0;let _0x4d315e=new K(),_0x57bf35=new V(),_0x243358=[],_0xed2a8c=[],_0x1bbcfc=[_0xb893be,..._0x394533[_0x3bf8ce(0xec)](_0x1fd3aa[_0x3bf8ce(0x41f)])['filter'](_0x1c8847=>_0x1c8847[_0x3bf8ce(0x267)]()!==_0x51fa33[_0x3bf8ce(0x28a)])];for(let _0x4a962e of _0x1bbcfc){let _0xc2876e=_0x4a962e[_0x3bf8ce(0x26f)](),_0x29cdb7=_0x4a962e===_0xb893be?_0x4d315e[_0x3bf8ce(0x2a7)](_0xc2876e,_0x51fa33[_0x3bf8ce(0x2fa)]):_0x4d315e[_0x3bf8ce(0x1f0)](_0xc2876e,_0x4e6a14,_0x51fa33['name']);_0x29cdb7&&(_0x243358[_0x3bf8ce(0x2fe)]({'id':Z['id'],'params':{'unitId':_0x4a962e[_0x3bf8ce(0x267)](),'op':_0x29cdb7,'trigger':ha['id']}}),_0xed2a8c[_0x3bf8ce(0x338)]({'id':Z['id'],'params':{'unitId':_0x4a962e[_0x3bf8ce(0x267)](),'op':_0x57bf35[_0x3bf8ce(0x170)](_0xc2876e,_0x29cdb7),'trigger':ha['id']}}));}let _0x157aea=_0x1636db['get'](_0x49c211),_0x39957e=_0x1636db[_0x3bf8ce(0x1ce)](_0x510401),_0x46a27b=_0x39957e['__tempBatchingUndoRedo'](_0x51fa33[_0x3bf8ce(0x28a)]);try{return _0x4a72e3(_0x243358,_0x157aea)[_0x3bf8ce(0x40b)]?(_0x394533['focusUnit'](_0x51fa33[_0x3bf8ce(0x28a)]),_0x39957e[_0x3bf8ce(0xca)]({'unitID':_0x51fa33[_0x3bf8ce(0x28a)],'undoMutations':_0xed2a8c,'redoMutations':_0x243358}),!0x0):!0x1;}finally{_0x46a27b[_0x3bf8ce(0x17f)]();}}};function ga(_0xafa1b6,_0xc70f15){const _0x53c596=_0x58a750;let _0x19ce1c=z(_0x4a5e41[_0x53c596(0x2eb)](_0xafa1b6)),_0x12e92f=new Map();return _0xc70f15[_0x53c596(0x3b6)](_0x10355a=>{const _0x3a7513=_0x53c596;var _0x25476d,_0x50d533;let _0x179050=_0x3a7513(0x378)in _0x10355a?_0x10355a[_0x3a7513(0x378)]:(_0x25476d=_0x19ce1c[_0x3a7513(0x2c1)])==null?void 0x0:_0x25476d[_0x10355a[_0x3a7513(0x207)]],_0x5880fd=_0x3a7513(0x32d)in _0x10355a?_0x10355a[_0x3a7513(0x32d)]:(_0x50d533=_0x19ce1c['colId'])==null?void 0x0:_0x50d533[_0x10355a[_0x3a7513(0x2c3)]],_0x59843a=_0x5880fd?_0x19ce1c[_0x3a7513(0x29a)][_0x5880fd]:void 0x0;if(!_0x179050||!_0x5880fd||!_0x59843a||!_0x19ce1c[_0x3a7513(0x286)][_0x179050])return;let _0x10c79a=st(_0x10355a['value'],_0x59843a),_0xe5ed63=ut(_0x10355a[_0x3a7513(0x29b)],_0x10c79a,_0x59843a,_0x19ce1c,_0x179050),_0x538ee6=_0x12e92f[_0x3a7513(0x1ce)](_0x179050)??{};_0x538ee6[_0x5880fd]=_0xe5ed63,_0x12e92f[_0x3a7513(0x191)](_0x179050,_0x538ee6);}),[..._0x12e92f][_0x53c596(0x36b)](([_0x453700,_0x6db9e1])=>({'recordId':_0x453700,'values':_0x6db9e1}));}const _a={'id':_0x58a750(0x27c),'type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x1d3fe9,_0x212733){const _0x87da4=_0x58a750;if(!_0x212733)return!0x1;let _0x4b9b93=_0x1d3fe9['get'](_0x59fb84),{unitId:_0x276343,tableId:_0x2ce4e5,patches:_0x1415ef}=_0x212733,_0x2817ba=_0x4b9b93[_0x87da4(0x31d)](_0x276343,_0x1fd3aa['UNIVER_BASE']);if(!_0x2817ba||!Q(_0x2817ba,_0x2ce4e5))return!0x1;let _0x377b61=_0x1d3fe9[_0x87da4(0x1ce)](_0x49c211),_0x4a403b=_0x1d3fe9[_0x87da4(0x1ce)](_0x510401),_0x173e77=_0x2817ba[_0x87da4(0x26f)](),_0x279f78=z(_0x173e77[_0x87da4(0x347)][_0x2ce4e5]),_0x339fbd=_0x1415ef[_0x87da4(0x36b)](_0x31956b=>{const _0xe5843a=_0x87da4;var _0x1ead98;return _0xe5843a(0x378)in _0x31956b?_0x31956b['recordId']:(_0x1ead98=_0x279f78[_0xe5843a(0x2c1)])==null?void 0x0:_0x1ead98[_0x31956b['row']];})[_0x87da4(0x253)](_0xcf9273=>_0xcf9273!=null),_0x406744=_0x1415ef[_0x87da4(0x36b)](_0x20c39e=>{const _0x2a6097=_0x87da4;var _0x2c2a12;return'fieldId'in _0x20c39e?_0x20c39e[_0x2a6097(0x32d)]:(_0x2c2a12=_0x279f78[_0x2a6097(0x28b)])==null?void 0x0:_0x2c2a12[_0x20c39e[_0x2a6097(0x2c3)]];})['filter'](_0xa2fade=>_0xa2fade!=null);if(_0x339fbd[_0x87da4(0x17a)]!==_0x1415ef[_0x87da4(0x17a)]||_0x406744[_0x87da4(0x17a)]!==_0x1415ef[_0x87da4(0x17a)]||!Q(_0x2817ba,_0x2ce4e5,{'recordIds':_0x339fbd,'fieldIds':_0x406744})||_0x1415ef[_0x87da4(0x2c9)]((_0x5f4f99,_0x16bc8c)=>!xi(_0x2817ba,_0x2ce4e5,_0x406744[_0x16bc8c],_0x5f4f99[_0x87da4(0x29b)])))return!0x1;let _0x47dbd3=Re(_0x279f78,ga(_0x279f78,_0x1415ef)),_0x2edf4d=_0x1415ef[_0x87da4(0x330)](_0x5cef9f=>{const _0x5a9d77=_0x87da4;var _0x1a8abb,_0x2a0d55;if(_0x5a9d77(0x207)in _0x5cef9f)return[_0x5cef9f];let _0x172e57=(_0x1a8abb=_0x279f78[_0x5a9d77(0x1b6)])==null?void 0x0:_0x1a8abb[_0x5cef9f[_0x5a9d77(0x378)]],_0x3b709c=(_0x2a0d55=_0x279f78['colIndex'])==null?void 0x0:_0x2a0d55[_0x5cef9f['fieldId']];return _0x172e57==null||_0x3b709c==null?[]:[{'row':_0x172e57,'col':_0x3b709c,'value':_0x5cef9f[_0x5a9d77(0x29b)]}];}),_0x2d7596=new K()[_0x87da4(0x3b4)](_0x173e77,_0x2ce4e5,_0x2edf4d),_0x20dc1a=new V()[_0x87da4(0x170)](_0x173e77,_0x2d7596),_0x3eb565={'unitId':_0x276343,'op':_0x2d7596,'trigger':_0x47dbd3[_0x87da4(0x17a)]?_a['id']:void 0x0,'hierarchyChanges':_0x47dbd3[_0x87da4(0x17a)]?_0x47dbd3:void 0x0,'source':_0x47dbd3[_0x87da4(0x17a)]?_0x87da4(0x10f):void 0x0},_0x45ea4c={'unitId':_0x276343,'op':_0x20dc1a,'trigger':_0x47dbd3[_0x87da4(0x17a)]?_a['id']:void 0x0,'hierarchyChanges':_0x47dbd3[_0x87da4(0x17a)]?_0x47dbd3[_0x87da4(0x36b)](_0x4aeb12=>({..._0x4aeb12,'oldParentRecordId':_0x4aeb12[_0x87da4(0x2f6)],'parentRecordId':_0x4aeb12[_0x87da4(0x3c9)]})):void 0x0,'source':_0x47dbd3[_0x87da4(0x17a)]?_0x87da4(0x3bf):void 0x0},_0x210cc2={..._0x3eb565,'source':_0x47dbd3[_0x87da4(0x17a)]?_0x212733[_0x87da4(0x26a)]??'ui':void 0x0};return _0x377b61[_0x87da4(0x113)](Z['id'],_0x210cc2)?(_0x4b9b93[_0x87da4(0x1c6)](_0x276343),_0x4a403b[_0x87da4(0xca)]({'unitID':_0x276343,'undoMutations':[{'id':Z['id'],'params':_0x45ea4c}],'redoMutations':[{'id':Z['id'],'params':_0x3eb565}]}),!0x0):!0x1;}},va={'id':_0x58a750(0x114),'type':_0x1b11d6['COMMAND'],'handler'(_0x52387d,_0xe2e7a0){const _0x311a45=_0x58a750;if(!_0xe2e7a0)return!0x1;let _0x29442c=_0x52387d[_0x311a45(0x1ce)](_0x59fb84),{unitId:_0x110645,tableId:_0x5b4350,patches:_0x4a0439}=_0xe2e7a0,_0x29002f=_0x29442c[_0x311a45(0x31d)](_0x110645,_0x1fd3aa[_0x311a45(0x41f)]),_0x312aef=_0x4a0439[_0x311a45(0x36b)](_0x47f66e=>_0x47f66e[_0x311a45(0x378)]),_0x56370c=_0x4a0439[_0x311a45(0x330)](_0x1a41f0=>Object['keys'](_0x1a41f0[_0x311a45(0x255)]));if(!_0x29002f||!Q(_0x29002f,_0x5b4350,{'recordIds':_0x312aef,'fieldIds':_0x56370c})||_0x4a0439['some'](_0x510df5=>Object[_0x311a45(0x23c)](_0x510df5['values'])['some'](([_0x2faf79,_0xb0f2ca])=>!xi(_0x29002f,_0x5b4350,_0x2faf79,_0xb0f2ca))))return!0x1;let _0x2b8d42=Re(_0x29002f[_0x311a45(0x26f)]()[_0x311a45(0x347)][_0x5b4350],_0x4a0439),_0x1099f6=_0x52387d[_0x311a45(0x1ce)](_0x49c211),_0x4416c4=_0x52387d['get'](_0x510401),_0x57d17a=_0x52387d[_0x311a45(0x1ce)](Y)[_0x311a45(0x376)](_0x29002f,_0x5b4350,_0x4a0439),_0x43372f=new V()['invertOp'](_0x29002f[_0x311a45(0x26f)](),_0x57d17a),_0x43f028={'unitId':_0x110645,'op':_0x57d17a,'trigger':_0x2b8d42[_0x311a45(0x17a)]?va['id']:void 0x0,'hierarchyChanges':_0x2b8d42['length']?_0x2b8d42:void 0x0,'source':_0x2b8d42[_0x311a45(0x17a)]?_0xe2e7a0['source']??'ui':void 0x0},_0x97ab47={..._0x43f028,'source':_0x2b8d42['length']?_0x311a45(0x10f):void 0x0},_0x5ec0f3={'unitId':_0x110645,'op':_0x43372f,'trigger':_0x2b8d42[_0x311a45(0x17a)]?va['id']:void 0x0,'hierarchyChanges':_0x2b8d42[_0x311a45(0x17a)]?_0x2b8d42[_0x311a45(0x36b)](_0x4cf840=>({..._0x4cf840,'oldParentRecordId':_0x4cf840[_0x311a45(0x2f6)],'parentRecordId':_0x4cf840[_0x311a45(0x3c9)]})):void 0x0,'source':_0x2b8d42['length']?_0x311a45(0x3bf):void 0x0};return _0x1099f6[_0x311a45(0x113)](Z['id'],_0x43f028)?(_0x29442c[_0x311a45(0x1c6)](_0x110645),_0x4416c4[_0x311a45(0xca)]({'unitID':_0x110645,'undoMutations':[{'id':Z['id'],'params':_0x5ec0f3}],'redoMutations':[{'id':Z['id'],'params':_0x97ab47}]}),!0x0):!0x1;}},ya={'id':_0x58a750(0x315),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0xd1b63e,_0x5990fa)=>{const _0x4c843c=_0x58a750;if(!_0x5990fa)return!0x1;let {unitId:_0x50700c,tableId:_0x27a76a,fieldId:_0x1f8903}=_0x5990fa,_0x16b2e2=_0xd1b63e[_0x4c843c(0x1ce)](_0x59fb84),_0x35426b=_0x16b2e2[_0x4c843c(0x31d)](_0x50700c,_0x1fd3aa[_0x4c843c(0x41f)]);if(!_0x35426b||!Q(_0x35426b,_0x27a76a))return!0x1;let _0xfd65b2=_0x35426b[_0x4c843c(0x26f)](),_0x535c2f=_0xfd65b2[_0x4c843c(0x347)][_0x27a76a];if(_0x1f8903!==null&&!F(_0x535c2f,_0x1f8903))throw new P(_0x4c843c(0x3d7));if(Fe(_0x535c2f)===_0x1f8903)return!0x0;let _0x100832=new K(),_0x5bc58d=B(Object[_0x4c843c(0x255)](_0x535c2f[_0x4c843c(0x29a)])[_0x4c843c(0x330)](_0x159083=>{const _0xaf0eeb=_0x4c843c;if(!F(_0x535c2f,_0x159083['id']))return[];let _0xff067e=N(_0x159083);if(!_0xff067e)return[];let _0x5359f7=_0x159083['id']===_0x1f8903;if(_0xff067e[_0xaf0eeb(0x2b7)]===_0x3e04ef[_0xaf0eeb(0x128)]===_0x5359f7)return[];let _0x55bdb0={..._0x159083[_0xaf0eeb(0x346)],'targetTableId':_0xff067e[_0xaf0eeb(0x169)],'multiple':_0xff067e['multiple']};return _0x5359f7?_0x55bdb0['relationRole']=_0x3e04ef[_0xaf0eeb(0x128)]:delete _0x55bdb0[_0xaf0eeb(0x2b7)],[_0x100832['updateField'](_0xfd65b2,_0x27a76a,_0x159083['id'],{'config':_0x55bdb0})];})),_0x3a45a8=new V()[_0x4c843c(0x170)](_0xfd65b2,_0x5bc58d),_0x12ec7b={'unitId':_0x50700c,'op':_0x5bc58d},_0x1059f0={'unitId':_0x50700c,'op':_0x3a45a8};return _0xd1b63e[_0x4c843c(0x1ce)](_0x49c211)['syncExecuteCommand'](Z['id'],_0x12ec7b)?(_0x16b2e2[_0x4c843c(0x1c6)](_0x50700c),_0xd1b63e['get'](_0x510401)[_0x4c843c(0xca)]({'unitID':_0x50700c,'undoMutations':[{'id':Z['id'],'params':_0x1059f0}],'redoMutations':[{'id':Z['id'],'params':_0x12ec7b}]}),!0x0):!0x1;}},ba={'id':'base.command.set-base-view-field-order','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0xab9d0d,_0x510356)=>{const _0x2b3e63=_0x58a750;if(!_0x510356)return!0x1;let _0x4f6b1d=_0xab9d0d[_0x2b3e63(0x1ce)](_0x59fb84),{unitId:_0x4a62ec,tableId:_0x376c01,viewId:_0x3422e4,fieldId:_0x482ccc,target:_0x2bf903}=_0x510356,_0xd7c9fe=_0x4f6b1d[_0x2b3e63(0x31d)](_0x4a62ec,_0x1fd3aa[_0x2b3e63(0x41f)]),_0xdb10f4=_0x2bf903[_0x2b3e63(0x1f8)]??_0x2bf903[_0x2b3e63(0x1ab)];if(!_0xd7c9fe||!_0xdb10f4||_0xdb10f4===_0x482ccc||!Q(_0xd7c9fe,_0x376c01,{'viewIds':[_0x3422e4],'fieldIds':[_0x482ccc,_0xdb10f4]}))return!0x1;let _0x5e628f=_0xd7c9fe[_0x2b3e63(0x26f)]()['tables'][_0x376c01],_0x34fdf1=_0x5e628f[_0x2b3e63(0x29a)][_0x482ccc],_0x22883a=_0x5e628f[_0x2b3e63(0x29a)][_0xdb10f4];if(_0x34fdf1[_0x2b3e63(0x124)]===!0x0||_0x34fdf1['type']===_0x54dcd1['RecordId']||_0x22883a[_0x2b3e63(0x124)]===!0x0||_0x22883a[_0x2b3e63(0x18d)]===_0x54dcd1[_0x2b3e63(0x249)])return!0x1;let _0x139db0=_0xab9d0d[_0x2b3e63(0x1ce)](_0x49c211),_0x36d206=_0xab9d0d[_0x2b3e63(0x1ce)](_0x510401),_0x11630a=_0xd7c9fe['getSnapshot'](),_0x53bf0b=new K()[_0x2b3e63(0x2e6)](_0x11630a,_0x376c01,_0x3422e4,_0x482ccc,_0x2bf903),_0x4a57a0=new V()[_0x2b3e63(0x170)](_0x11630a,_0x53bf0b),_0x455ae1={'unitId':_0x4a62ec,'op':_0x53bf0b},_0x32fe9a={'unitId':_0x4a62ec,'op':_0x4a57a0};return _0x139db0[_0x2b3e63(0x113)](Z['id'],_0x455ae1)?(_0x4f6b1d[_0x2b3e63(0x1c6)](_0x4a62ec),_0x36d206[_0x2b3e63(0xca)]({'unitID':_0x4a62ec,'undoMutations':[{'id':Z['id'],'params':_0x32fe9a}],'redoMutations':[{'id':Z['id'],'params':_0x455ae1}]}),!0x0):!0x1;}},xa={'id':'base.command.set-base-view-field-visible','type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x3dba42,_0x116c0d){const _0x447ee7=_0x58a750;if(!_0x116c0d)return!0x1;let _0x3ba112=_0x3dba42[_0x447ee7(0x1ce)](_0x59fb84),{unitId:_0x4c1914,tableId:_0x4b74e1,viewId:_0x24c95e,fieldId:_0x2549a8,visible:_0x82f180}=_0x116c0d,_0x2c6919=_0x3ba112['getUnit'](_0x4c1914,_0x1fd3aa[_0x447ee7(0x41f)]);if(!_0x2c6919||!Q(_0x2c6919,_0x4b74e1,{'viewIds':[_0x24c95e],'fieldIds':[_0x2549a8]}))return!0x1;let _0x4cdd50=_0x2c6919[_0x447ee7(0x26f)]()[_0x447ee7(0x347)][_0x4b74e1][_0x447ee7(0x29a)][_0x2549a8];if(_0x4cdd50[_0x447ee7(0x124)]===!0x0||_0x4cdd50[_0x447ee7(0x18d)]===_0x54dcd1[_0x447ee7(0x249)])return!0x1;let _0x550da0=_0x3dba42['get'](_0x49c211),_0x26a038=_0x3dba42['get'](_0x510401),_0x1c4173=_0x2c6919['getSnapshot'](),_0x1e6522=new K()[_0x447ee7(0x335)](_0x1c4173,_0x4b74e1,_0x24c95e,_0x2549a8,_0x82f180),_0x358c5d=new V()['invertOp'](_0x1c4173,_0x1e6522),_0x2d832f={'unitId':_0x4c1914,'op':_0x1e6522},_0x5911d0={'unitId':_0x4c1914,'op':_0x358c5d};return _0x550da0[_0x447ee7(0x113)](Z['id'],_0x2d832f)?(_0x3ba112['focusUnit'](_0x4c1914),_0x26a038['pushUndoRedo']({'unitID':_0x4c1914,'undoMutations':[{'id':Z['id'],'params':_0x5911d0}],'redoMutations':[{'id':Z['id'],'params':_0x2d832f}]}),!0x0):!0x1;}},Sa={'id':'base.command.set-base-view-field-width','type':_0x1b11d6['COMMAND'],'handler':(_0x402f72,_0xd999ab)=>{const _0x3c6c64=_0x58a750;if(!_0xd999ab)return!0x1;let _0x95dd16=_0x402f72[_0x3c6c64(0x1ce)](_0x59fb84),{unitId:_0x383139,tableId:_0x23c80e,viewId:_0xc80487,fieldId:_0x580cd5,width:_0x2abfa6}=_0xd999ab,_0x48dfa2=_0x95dd16[_0x3c6c64(0x31d)](_0x383139,_0x1fd3aa[_0x3c6c64(0x41f)]);if(!_0x48dfa2||!Q(_0x48dfa2,_0x23c80e,{'viewIds':[_0xc80487],'fieldIds':[_0x580cd5]}))return!0x1;let _0x3e009d=_0x48dfa2[_0x3c6c64(0x26f)]()[_0x3c6c64(0x347)][_0x23c80e]['fields'][_0x580cd5];if(_0x3e009d[_0x3c6c64(0x124)]===!0x0||_0x3e009d['type']===_0x54dcd1[_0x3c6c64(0x249)])return!0x1;let _0x3c5a85=_0x402f72[_0x3c6c64(0x1ce)](_0x49c211),_0x3852c8=_0x402f72['get'](_0x510401),_0x4df8dc=_0x48dfa2[_0x3c6c64(0x26f)](),_0x18a29a=new K()['setViewFieldWidth'](_0x4df8dc,_0x23c80e,_0xc80487,_0x580cd5,_0x2abfa6),_0x8282cf=new V()[_0x3c6c64(0x170)](_0x4df8dc,_0x18a29a),_0x1f5d54={'unitId':_0x383139,'op':_0x18a29a},_0x496c54={'unitId':_0x383139,'op':_0x8282cf};return _0x3c5a85[_0x3c6c64(0x113)](Z['id'],_0x1f5d54)?(_0x95dd16[_0x3c6c64(0x1c6)](_0x383139),_0x3852c8['pushUndoRedo']({'unitID':_0x383139,'undoMutations':[{'id':Z['id'],'params':_0x496c54}],'redoMutations':[{'id':Z['id'],'params':_0x1f5d54}]}),!0x0):!0x1;}},Ca={'id':_0x58a750(0x266),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x53f0dc,_0x44a6ec)=>{const _0x22f571=_0x58a750;if(!_0x44a6ec)return!0x1;let _0x5d1dd2=_0x53f0dc[_0x22f571(0x1ce)](_0x59fb84),{unitId:_0x1499bb,tableId:_0xa8453d,viewId:_0x5d5a74,filter:_0x208c94}=_0x44a6ec,_0x2cd3a0=_0x5d1dd2[_0x22f571(0x31d)](_0x1499bb,_0x1fd3aa[_0x22f571(0x41f)]),_0x27ac94=(_0x208c94==null?void 0x0:_0x208c94[_0x22f571(0x148)]['map'](_0x5a643f=>_0x5a643f[_0x22f571(0x32d)]))??[];if(!_0x2cd3a0||!Q(_0x2cd3a0,_0xa8453d,{'viewIds':[_0x5d5a74],'fieldIds':_0x27ac94}))return!0x1;let _0x43df9e=_0x53f0dc[_0x22f571(0x1ce)](_0x49c211),_0xe9d317=_0x53f0dc[_0x22f571(0x1ce)](_0x510401),_0x5f5700=_0x2cd3a0['getSnapshot'](),_0x23136d=new K()[_0x22f571(0x2ea)](_0x5f5700,_0xa8453d,_0x5d5a74,_0x208c94),_0x71da78=new V()[_0x22f571(0x170)](_0x5f5700,_0x23136d),_0x3579ac={'unitId':_0x1499bb,'op':_0x23136d},_0x308a84={'unitId':_0x1499bb,'op':_0x71da78};return _0x43df9e[_0x22f571(0x113)](Z['id'],_0x3579ac)?(_0x5d1dd2['focusUnit'](_0x1499bb),_0xe9d317[_0x22f571(0xca)]({'unitID':_0x1499bb,'undoMutations':[{'id':Z['id'],'params':_0x308a84}],'redoMutations':[{'id':Z['id'],'params':_0x3579ac}]}),!0x0):!0x1;}},wa={'id':_0x58a750(0x3ff),'type':_0x1b11d6['COMMAND'],'handler':(_0x12ee70,_0x4e30b3)=>{const _0x4963ed=_0x58a750;if(!_0x4e30b3)return!0x1;let _0x54e8ab=_0x12ee70[_0x4963ed(0x1ce)](_0x59fb84),{unitId:_0x431e8a,tableId:_0x3b36c2,viewId:_0x3b35e4,group:_0x35c641}=_0x4e30b3,_0x5258ea=_0x54e8ab[_0x4963ed(0x31d)](_0x431e8a,_0x1fd3aa[_0x4963ed(0x41f)]);if(!_0x5258ea||!Q(_0x5258ea,_0x3b36c2,{'viewIds':[_0x3b35e4],'fieldIds':_0x35c641[_0x4963ed(0x36b)](_0x207c17=>_0x207c17['fieldId'])}))return!0x1;let _0x5bdaf2=_0x12ee70['get'](_0x49c211),_0x2960e1=_0x12ee70[_0x4963ed(0x1ce)](_0x510401),_0x465ad5=_0x5258ea[_0x4963ed(0x26f)](),_0x1b75c2=new K()[_0x4963ed(0x151)](_0x465ad5,_0x3b36c2,_0x3b35e4,_0x35c641),_0x53286c=new V()[_0x4963ed(0x170)](_0x465ad5,_0x1b75c2),_0x122286={'unitId':_0x431e8a,'op':_0x1b75c2},_0x2d53d9={'unitId':_0x431e8a,'op':_0x53286c};return _0x5bdaf2['syncExecuteCommand'](Z['id'],_0x122286)?(_0x54e8ab[_0x4963ed(0x1c6)](_0x431e8a),_0x2960e1[_0x4963ed(0xca)]({'unitID':_0x431e8a,'undoMutations':[{'id':Z['id'],'params':_0x2d53d9}],'redoMutations':[{'id':Z['id'],'params':_0x122286}]}),!0x0):!0x1;}},Ta={'id':'base.command.set-base-view-sort','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x5a58a1,_0x439d7a)=>{const _0x336c0b=_0x58a750;if(!_0x439d7a)return!0x1;let _0x43d43a=_0x5a58a1[_0x336c0b(0x1ce)](_0x59fb84),{unitId:_0x3dcf92,tableId:_0x619b75,viewId:_0x41cea8,sort:_0x2f4539}=_0x439d7a,_0x1cb6c3=_0x43d43a[_0x336c0b(0x31d)](_0x3dcf92,_0x1fd3aa['UNIVER_BASE']);if(!_0x1cb6c3||!Q(_0x1cb6c3,_0x619b75,{'viewIds':[_0x41cea8],'fieldIds':_0x2f4539[_0x336c0b(0x36b)](_0x5e145a=>_0x5e145a['fieldId'])}))return!0x1;let _0x2985b8=_0x5a58a1[_0x336c0b(0x1ce)](_0x49c211),_0x29ba7b=_0x5a58a1[_0x336c0b(0x1ce)](_0x510401),_0x3525b6=_0x1cb6c3[_0x336c0b(0x26f)](),_0xc5171c=new K()[_0x336c0b(0x184)](_0x3525b6,_0x619b75,_0x41cea8,_0x2f4539),_0xe431bb=new V()[_0x336c0b(0x170)](_0x3525b6,_0xc5171c),_0x137225={'unitId':_0x3dcf92,'op':_0xc5171c},_0x56c592={'unitId':_0x3dcf92,'op':_0xe431bb};return _0x2985b8['syncExecuteCommand'](Z['id'],_0x137225)?(_0x43d43a[_0x336c0b(0x1c6)](_0x3dcf92),_0x29ba7b[_0x336c0b(0xca)]({'unitID':_0x3dcf92,'undoMutations':[{'id':Z['id'],'params':_0x56c592}],'redoMutations':[{'id':Z['id'],'params':_0x137225}]}),!0x0):!0x1;}},Ea={'id':_0x58a750(0xed),'type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x1b0e6f,_0x36c407){const _0x497b78=_0x58a750;if(!_0x36c407)return!0x1;let _0x54747f=_0x1b0e6f[_0x497b78(0x1ce)](_0x59fb84),{unitId:_0x3981bd,tableId:_0x540808,recordId:_0x12e219,fieldId:_0x454742,value:_0x3ceb05}=_0x36c407,_0xe8613f=_0x54747f[_0x497b78(0x31d)](_0x3981bd,_0x1fd3aa[_0x497b78(0x41f)]);if(!_0xe8613f||!Q(_0xe8613f,_0x540808,{'recordIds':[_0x12e219],'fieldIds':[_0x454742]})||!xi(_0xe8613f,_0x540808,_0x454742,_0x3ceb05))return!0x1;let _0x167480=_0xe8613f[_0x497b78(0x26f)]()['tables'][_0x540808],_0x418fbc=F(_0x167480,_0x454742)&&Le(_0x167480)[_0x497b78(0x422)](_0x454742),_0x1e71d5=_0x418fbc?L(_0x167480,_0x454742):null,_0x28a010=(_0x1e71d5==null?void 0x0:_0x1e71d5[_0x497b78(0x201)]['get'](_0x12e219))??null,_0x8225de=_0x418fbc?Te(_0x3ceb05)[0x0]??null:null;if(_0x1e71d5){if(_0x8225de&&!_0x167480['records'][_0x8225de])throw new P(_0x497b78(0xcf));let _0x1421ba=We(_0x1e71d5,_0x12e219,_0x8225de);if(!_0x1421ba[_0x497b78(0x258)])throw new P(_0x1421ba[_0x497b78(0x2af)]===_0x4ff8e1['SelfParent']?_0x497b78(0x366):_0x1421ba[_0x497b78(0x2af)]===_0x4ff8e1[_0x497b78(0xc8)]?'cycle':_0x497b78(0x161));}let _0x539cd8=_0x1b0e6f[_0x497b78(0x1ce)](_0x49c211),_0x15892a=_0x1b0e6f[_0x497b78(0x1ce)](_0x510401),_0x3bc3b6=_0x1b0e6f[_0x497b78(0x1ce)](Y),_0x35bcb7;try{_0x35bcb7=_0x3bc3b6[_0x497b78(0x23d)](_0xe8613f,_0x540808,_0x12e219,_0x454742,_0x3ceb05);}catch(_0x2a0e19){return console[_0x497b78(0x421)](_0x497b78(0x12b),_0x2a0e19),!0x1;}let _0x42b1a5=new V()[_0x497b78(0x170)](_0xe8613f[_0x497b78(0x26f)](),_0x35bcb7),_0x17b201=_0x418fbc&&_0x28a010!==_0x8225de?[{'tableId':_0x540808,'fieldId':_0x454742,'recordId':_0x12e219,'oldParentRecordId':_0x28a010,'parentRecordId':_0x8225de}]:void 0x0,_0x3a66df={'unitId':_0x3981bd,'op':_0x35bcb7,'trigger':_0x17b201?Ea['id']:void 0x0,'hierarchyChanges':_0x17b201,'source':_0x17b201?_0x36c407[_0x497b78(0x26a)]??'ui':void 0x0},_0x121b67={..._0x3a66df,'source':_0x17b201?'redo':void 0x0},_0x585ee3={'unitId':_0x3981bd,'op':_0x42b1a5,'trigger':_0x17b201?Ea['id']:void 0x0,'hierarchyChanges':_0x17b201==null?void 0x0:_0x17b201[_0x497b78(0x36b)](_0xffa2c3=>({..._0xffa2c3,'oldParentRecordId':_0xffa2c3['parentRecordId'],'parentRecordId':_0xffa2c3[_0x497b78(0x3c9)]})),'source':_0x17b201?_0x497b78(0x3bf):void 0x0};return _0x539cd8['syncExecuteCommand'](Z['id'],_0x3a66df)?(_0x54747f['focusUnit'](_0x3981bd),_0x15892a[_0x497b78(0xca)]({'unitID':_0x3981bd,'undoMutations':[{'id':Z['id'],'params':_0x585ee3}],'redoMutations':[{'id':Z['id'],'params':_0x121b67}]}),!0x0):!0x1;}},Da={'id':_0x58a750(0x32f),'type':_0x1b11d6['COMMAND'],'handler'(_0x517a83,_0x2486eb){const _0x41fbf8=_0x58a750;if(!_0x2486eb)return!0x1;let _0x20d2fb=_0x517a83['get'](_0x59fb84),{unitId:_0x2bd73f,tableId:_0x2797d6,fieldId:_0x50e839}=_0x2486eb,_0x32c8bb=_0x20d2fb[_0x41fbf8(0x31d)](_0x2bd73f,_0x1fd3aa['UNIVER_BASE']);if(!_0x32c8bb||!Q(_0x32c8bb,_0x2797d6,{'fieldIds':[_0x50e839]}))return!0x1;let _0x4adcce=_0x517a83[_0x41fbf8(0x1ce)](_0x49c211),_0x55c23f=_0x517a83['get'](_0x510401),_0x552891=_0x32c8bb[_0x41fbf8(0x26f)](),_0x221137=_0x2486eb[_0x41fbf8(0x399)][_0x41fbf8(0x3b2)](),_0x72c6a6=new K()['updateField'](_0x552891,_0x2797d6,_0x50e839,{'description':_0x221137}),_0x261c8f=new V()['invertOp'](_0x32c8bb[_0x41fbf8(0x26f)](),_0x72c6a6),_0x28314b={'unitId':_0x2bd73f,'op':_0x72c6a6},_0x3dcd23={'unitId':_0x2bd73f,'op':_0x261c8f};return _0x4adcce[_0x41fbf8(0x113)](Z['id'],_0x28314b)?(_0x20d2fb[_0x41fbf8(0x1c6)](_0x2bd73f),_0x55c23f['pushUndoRedo']({'unitID':_0x2bd73f,'undoMutations':[{'id':Z['id'],'params':_0x3dcd23}],'redoMutations':[{'id':Z['id'],'params':_0x28314b}]}),!0x0):!0x1;}},Oa={'id':'base.command.update-base-field','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x5d78fb,_0x4ede1e)=>{const _0x2816b8=_0x58a750;if(!_0x4ede1e)return!0x1;let _0x2dfe83=_0x5d78fb[_0x2816b8(0x1ce)](_0x59fb84),{unitId:_0xd4587a,tableId:_0x8f895e,fieldId:_0x1ec806,patch:_0x101e82}=_0x4ede1e,_0x50bc5d=_0x2dfe83[_0x2816b8(0x31d)](_0xd4587a,_0x1fd3aa[_0x2816b8(0x41f)]);if(!_0x50bc5d||_0x1ec806===_0x1abc18||!Q(_0x50bc5d,_0x8f895e,{'fieldIds':[_0x1ec806]}))return!0x1;let _0x4e5d37=_0x5d78fb['get'](_0x49c211),_0x4ea990=_0x5d78fb['get'](_0x510401),_0x23eddf=_0x50bc5d[_0x2816b8(0x26f)]();if(!bi(_0x50bc5d,_0x8f895e,{..._0x23eddf['tables'][_0x8f895e][_0x2816b8(0x29a)][_0x1ec806],..._0x101e82}))return!0x1;let _0x352bc8=new K()[_0x2816b8(0x1f2)](_0x23eddf,_0x8f895e,_0x1ec806,_0x101e82),_0x5dc5f1=new V()[_0x2816b8(0x170)](_0x23eddf,_0x352bc8),_0xbc9681={'unitId':_0xd4587a,'op':_0x352bc8},_0x5a68bc={'unitId':_0xd4587a,'op':_0x5dc5f1};return _0x4e5d37['syncExecuteCommand'](Z['id'],_0xbc9681)?(_0x2dfe83['focusUnit'](_0xd4587a),_0x4ea990[_0x2816b8(0xca)]({'unitID':_0xd4587a,'undoMutations':[{'id':Z['id'],'params':_0x5a68bc}],'redoMutations':[{'id':Z['id'],'params':_0xbc9681}]}),!0x0):!0x1;}},ka={'id':'base.command.update-base-kanban-config','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x26e8a0,_0x1cbf33)=>{const _0x116dd9=_0x58a750;if(!_0x1cbf33)return!0x1;let _0x1fb3a2=_0x26e8a0['get'](_0x59fb84),{unitId:_0xad0a9a,tableId:_0x3cc9ec,viewId:_0x17ce10,patch:_0xcc28d5}=_0x1cbf33,_0x562e56=_0x1fb3a2[_0x116dd9(0x31d)](_0xad0a9a,_0x1fd3aa['UNIVER_BASE']);if(!_0x562e56||!Q(_0x562e56,_0x3cc9ec,{'viewIds':[_0x17ce10]}))return!0x1;let _0x368bd1=_0x26e8a0[_0x116dd9(0x1ce)](_0x49c211),_0x227ab2=_0x26e8a0['get'](_0x510401),_0xda8289=_0x562e56['getSnapshot'](),_0x3e22ec=new K()[_0x116dd9(0x157)](_0xda8289,_0x3cc9ec,_0x17ce10,_0xcc28d5),_0x3ed1fe=new V()['invertOp'](_0xda8289,_0x3e22ec),_0x34997f={'unitId':_0xad0a9a,'op':_0x3e22ec},_0x3bff5f={'unitId':_0xad0a9a,'op':_0x3ed1fe};return _0x368bd1[_0x116dd9(0x113)](Z['id'],_0x34997f)?(_0x1fb3a2[_0x116dd9(0x1c6)](_0xad0a9a),_0x227ab2[_0x116dd9(0xca)]({'unitID':_0xad0a9a,'undoMutations':[{'id':Z['id'],'params':_0x3bff5f}],'redoMutations':[{'id':Z['id'],'params':_0x34997f}]}),!0x0):!0x1;}},Aa={'id':'base.command.update-base-record-order','type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x46ff4d,_0x47fd8d)=>{const _0x2de75f=_0x58a750;if(!_0x47fd8d)return!0x1;let _0x4bfbb7=_0x46ff4d[_0x2de75f(0x1ce)](_0x59fb84),{unitId:_0x4a9750,tableId:_0x5455be,recordId:_0x100a68,orderKey:_0x4e374a}=_0x47fd8d,_0xeba6a9=_0x4bfbb7[_0x2de75f(0x31d)](_0x4a9750,_0x1fd3aa[_0x2de75f(0x41f)]);if(!_0xeba6a9||!Q(_0xeba6a9,_0x5455be,{'recordIds':[_0x100a68]}))return!0x1;let _0x5dec33=_0x46ff4d['get'](_0x49c211),_0x330dff=_0x46ff4d[_0x2de75f(0x1ce)](_0x510401),_0x48c3c7=_0xeba6a9[_0x2de75f(0x26f)](),_0x32ee90=new K()[_0x2de75f(0x260)](_0x48c3c7,_0x5455be,_0x100a68,_0x4e374a),_0x47a3b9=new V()[_0x2de75f(0x170)](_0x48c3c7,_0x32ee90),_0x57c949={'unitId':_0x4a9750,'op':_0x32ee90},_0x3c19d2={'unitId':_0x4a9750,'op':_0x47a3b9};return _0x5dec33[_0x2de75f(0x113)](Z['id'],_0x57c949)?(_0x4bfbb7[_0x2de75f(0x1c6)](_0x4a9750),_0x330dff[_0x2de75f(0xca)]({'unitID':_0x4a9750,'undoMutations':[{'id':Z['id'],'params':_0x3c19d2}],'redoMutations':[{'id':Z['id'],'params':_0x57c949}]}),!0x0):!0x1;}};let ja=function(_0x4bba30){const _0x2952d9=_0x58a750;return _0x4bba30['Set']=_0x2952d9(0x191),_0x4bba30['Add']=_0x2952d9(0x2a8),_0x4bba30[_0x2952d9(0x296)]='delete',_0x4bba30[_0x2952d9(0x3d4)]='clear',_0x4bba30;}({});const Ma={'id':_0x58a750(0x2ff),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x1b1279,_0x24f8c1)=>{const _0x1fdd74=_0x58a750;var _0x2aeacc;if(!_0x24f8c1)return!0x1;let _0x1296e9=_0x1b1279[_0x1fdd74(0x1ce)](_0x59fb84),_0x497828=_0x1296e9[_0x1fdd74(0x31d)](_0x24f8c1[_0x1fdd74(0x28a)],_0x1fd3aa['UNIVER_BASE']);if(!_0x497828||!Q(_0x497828,_0x24f8c1[_0x1fdd74(0x3cb)],{'viewIds':[_0x24f8c1[_0x1fdd74(0x2a3)]]}))return!0x1;let _0x1da30a=_0x497828[_0x1fdd74(0x26f)](),_0x5ad75e=_0x1da30a['tables'][_0x24f8c1[_0x1fdd74(0x3cb)]],_0x16cde7=Na(((_0x2aeacc=_0x5ad75e['views'][_0x24f8c1[_0x1fdd74(0x2a3)]][_0x1fdd74(0x346)][_0x1fdd74(0x3cc)])==null?void 0x0:_0x2aeacc[_0x1fdd74(0x2a9)])??[],_0x24f8c1);if(!_0x16cde7)return!0x1;Pa(_0x5ad75e,_0x16cde7);let _0x96c3d0=new K()[_0x1fdd74(0x157)](_0x1da30a,_0x24f8c1[_0x1fdd74(0x3cb)],_0x24f8c1[_0x1fdd74(0x2a3)],{'conditionalColoring':_0x16cde7[_0x1fdd74(0x17a)]?{'rules':_0x16cde7}:null}),_0x2d05d3=new V()[_0x1fdd74(0x170)](_0x1da30a,_0x96c3d0),_0x40146b={'unitId':_0x24f8c1[_0x1fdd74(0x28a)],'op':_0x96c3d0},_0x2eb705={'unitId':_0x24f8c1[_0x1fdd74(0x28a)],'op':_0x2d05d3};return _0x1b1279[_0x1fdd74(0x1ce)](_0x49c211)[_0x1fdd74(0x113)](Z['id'],_0x40146b)?(_0x1296e9[_0x1fdd74(0x1c6)](_0x24f8c1['unitId']),_0x1b1279[_0x1fdd74(0x1ce)](_0x510401)[_0x1fdd74(0xca)]({'unitID':_0x24f8c1[_0x1fdd74(0x28a)],'undoMutations':[{'id':Z['id'],'params':_0x2eb705}],'redoMutations':[{'id':Z['id'],'params':_0x40146b}]}),!0x0):!0x1;}};function Na(_0x6664e9,_0xd2111b){const _0x678087=_0x58a750;switch(_0xd2111b[_0x678087(0x18d)]){case _0x678087(0x191):return _0x4a5e41['deepClone'](_0xd2111b[_0x678087(0x2a9)]);case _0x678087(0x2a8):return[..._0x4a5e41[_0x678087(0x2eb)](_0x6664e9),_0x4a5e41[_0x678087(0x2eb)](_0xd2111b[_0x678087(0x196)])];case _0x678087(0x21f):{let _0x2016dc=_0x6664e9[_0x678087(0x253)](_0x329bd0=>_0x329bd0['id']!==_0xd2111b[_0x678087(0x20c)]);return _0x2016dc[_0x678087(0x17a)]===_0x6664e9[_0x678087(0x17a)]?null:_0x4a5e41[_0x678087(0x2eb)](_0x2016dc);}case _0x678087(0x1c5):return _0x6664e9[_0x678087(0x17a)]?[]:null;}}function Pa(_0x3bd801,_0x46596f){const _0x53734e=_0x58a750;if(!Array[_0x53734e(0x25e)](_0x46596f))throw TypeError(_0x53734e(0x414));let _0x3c120b=new Set();for(let [_0x43da1b,_0xe308f4]of _0x46596f[_0x53734e(0x23c)]())Ia(_0x3bd801,_0xe308f4,Fa(_0xe308f4,_0x43da1b,_0x3c120b));}function Fa(_0x5cab10,_0x11d91f,_0x5daebb){const _0x1c1d38=_0x58a750;if(!_0x5cab10||typeof _0x5cab10!='object')throw TypeError(_0x1c1d38(0x276)+_0x11d91f+_0x1c1d38(0x236));let _0x41ab75=typeof _0x5cab10['id']==_0x1c1d38(0x223)&&_0x5cab10['id']['trim']()?'\x22'+_0x5cab10['id']+'\x22':_0x1c1d38(0x18c)+_0x11d91f;if(typeof _0x5cab10['id']!=_0x1c1d38(0x223)||!_0x5cab10['id'][_0x1c1d38(0x3b2)]())throw Error(_0x1c1d38(0x167)+_0x41ab75+_0x1c1d38(0x1a7));if(_0x5daebb[_0x1c1d38(0x192)](_0x5cab10['id']))throw Error(_0x1c1d38(0x344)+_0x5cab10['id']+'\x22.');_0x5daebb['add'](_0x5cab10['id']);let _0x113725=typeof _0x5cab10[_0x1c1d38(0x3ee)]==_0x1c1d38(0x223)&&_0x5cab10['color'][_0x1c1d38(0x3b2)]()?new _0x48db12(_0x5cab10[_0x1c1d38(0x3ee)]):null;if(!(_0x113725!=null&&_0x113725[_0x1c1d38(0x245)]))throw Error(_0x1c1d38(0x167)+_0x41ab75+'\x20must\x20have\x20a\x20valid\x20CSS\x20color.');return _0x41ab75;}function Ia(_0x3c2e6a,_0x59fa86,_0x46e508){const _0x11e8d6=_0x58a750;let _0x42a4d8=new Set(Object['values'](_0x171b5a)),_0x2e3504=new Set(Object['values'](_0x22d7a1)),_0x125ecb=new Set(Object[_0x11e8d6(0x255)](_0x4da2be));if(!_0x42a4d8['has'](_0x59fa86['target']))throw Error(_0x11e8d6(0x167)+_0x46e508+_0x11e8d6(0x185)+String(_0x59fa86[_0x11e8d6(0x1e6)])+'\x22.');let _0x4b5bb8=typeof _0x59fa86[_0x11e8d6(0x32d)]==_0x11e8d6(0x223)?_0x3c2e6a[_0x11e8d6(0x29a)][_0x59fa86['fieldId']]:void 0x0;if(!_0x4b5bb8||_0x4b5bb8[_0x11e8d6(0x124)]===!0x0||_0x4b5bb8[_0x11e8d6(0x18d)]===_0x54dcd1['RecordId'])throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x46e508+'\x20references\x20missing\x20or\x20non-public\x20field\x20\x22'+String(_0x59fa86[_0x11e8d6(0x32d)])+'\x22.');if(!_0x2e3504[_0x11e8d6(0x192)](_0x59fa86[_0x11e8d6(0x199)]))throw Error(_0x11e8d6(0x167)+_0x46e508+'\x20has\x20unsupported\x20operator\x20\x22'+String(_0x59fa86[_0x11e8d6(0x199)])+'\x22.');if(_0x59fa86[_0x11e8d6(0x3bc)]!==void 0x0&&!_0x125ecb['has'](_0x59fa86[_0x11e8d6(0x3bc)]))throw Error(_0x11e8d6(0x167)+_0x46e508+_0x11e8d6(0x409)+String(_0x59fa86[_0x11e8d6(0x3bc)])+'\x22.');if(_0x59fa86[_0x11e8d6(0x1e6)]===_0x171b5a[_0x11e8d6(0x308)])return;let _0x2a4516=tn(_0x4b5bb8[_0x11e8d6(0x18d)]);if(!_0x2a4516[_0x11e8d6(0x422)](_0x59fa86[_0x11e8d6(0x199)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x46e508+_0x11e8d6(0x19e)+_0x59fa86[_0x11e8d6(0x199)]+_0x11e8d6(0x134)+_0x4b5bb8[_0x11e8d6(0x18d)]+_0x11e8d6(0x2a0)+_0x2a4516[_0x11e8d6(0x20b)](',\x20')+'.');if(_0x59fa86['dateMode']!==void 0x0&&!nn(_0x4b5bb8['type']))throw Error(_0x11e8d6(0x167)+_0x46e508+_0x11e8d6(0x121));}const La={'id':_0x58a750(0x281),'type':_0x1b11d6[_0x58a750(0x41b)],'handler':(_0x14720b,_0x53f7cd)=>{const _0x4e6cac=_0x58a750;if(!_0x53f7cd)return!0x1;let _0x5bae9d=_0x14720b[_0x4e6cac(0x1ce)](_0x59fb84),{unitId:_0x3b8b2d,tableId:_0x1a70c3,viewId:_0x529417,patch:_0x5c1d35}=_0x53f7cd,_0x23d2ee=_0x5bae9d[_0x4e6cac(0x31d)](_0x3b8b2d,_0x1fd3aa[_0x4e6cac(0x41f)]);if(!_0x23d2ee||!Q(_0x23d2ee,_0x1a70c3,{'viewIds':[_0x529417]}))return!0x1;let _0x2ff882=_0x14720b['get'](_0x49c211),_0x502de0=_0x14720b['get'](_0x510401),_0x15c67c=_0x23d2ee[_0x4e6cac(0x26f)](),_0x39b18d=new K()[_0x4e6cac(0x157)](_0x15c67c,_0x1a70c3,_0x529417,_0x5c1d35),_0x1b3379=new V()[_0x4e6cac(0x170)](_0x15c67c,_0x39b18d),_0x4b206f={'unitId':_0x3b8b2d,'op':_0x39b18d},_0x2ea675={'unitId':_0x3b8b2d,'op':_0x1b3379};return _0x2ff882['syncExecuteCommand'](Z['id'],_0x4b206f)?(_0x5bae9d[_0x4e6cac(0x1c6)](_0x3b8b2d),_0x502de0[_0x4e6cac(0xca)]({'unitID':_0x3b8b2d,'undoMutations':[{'id':Z['id'],'params':_0x2ea675}],'redoMutations':[{'id':Z['id'],'params':_0x4b206f}]}),!0x0):!0x1;}},Ra={'id':'base.command.validate-formula','type':_0x1b11d6[_0x58a750(0x41b)],'handler'(_0x6a6726,_0xf96135){const _0x1c178d=_0x58a750;if(!_0xf96135)return{'valid':!0x1,'reason':_0x1c178d(0x41d)};let _0x4cb01c=_0x6a6726['get'](_0x59fb84)[_0x1c178d(0x31d)](_0xf96135[_0x1c178d(0x28a)],_0x1fd3aa[_0x1c178d(0x41f)]),_0x1fcd3f=_0x4cb01c==null?void 0x0:_0x4cb01c[_0x1c178d(0x26f)](),_0x255671=_0x1fcd3f==null?void 0x0:_0x1fcd3f[_0x1c178d(0x347)][_0xf96135[_0x1c178d(0x3cb)]];return!_0x1fcd3f||!_0x255671?{'valid':!0x1,'reason':_0x1c178d(0x12e)}:new ti()['validateFormula'](_0xf96135[_0x1c178d(0x216)],_0x255671,{'snapshot':_0x1fcd3f});}};function za(_0xceeb77){const _0x33ebd6=_0x58a750;let _0x27402e=_0xceeb77['now']??Date[_0x33ebd6(0x158)](),_0x1b3866=_0xceeb77[_0x33ebd6(0x1a8)]??_0xceeb77['id']+_0x33ebd6(0x222),_0x26d628=_0xceeb77[_0x33ebd6(0x1fc)]??_0xceeb77['id']+_0x33ebd6(0x259),_0x48ca17=_0xceeb77[_0x33ebd6(0x36a)]??0x0,_0x577f35=_0x1397cf(),_0x284615={'id':_0x1b3866,'name':_0xceeb77['primaryFieldName']??_0x33ebd6(0xcb),'type':_0x54dcd1[_0x33ebd6(0x304)],'config':{'placeholder':'bases.fieldConfig.textPlaceholder'}},_0x32114c={},_0x1cd53b=[],_0x47b011={},_0x392438={},_0x464931={};for(let _0x2917c3=0x0;_0x2917c3<_0x48ca17;_0x2917c3++){let _0x10a163=_0xceeb77['id']+_0x33ebd6(0x3fe)+(_0x2917c3+0x1);_0x32114c[_0x10a163]={'id':_0x10a163,'values':{[_0x1abc18]:_0x10a163,..._0xceeb77[_0x33ebd6(0x333)]?{[_0x1b3866]:_0xceeb77['recordNamePrefix']+'\x20'+(_0x2917c3+0x1)}:{}},'orderKey':String(_0x2917c3+0x1)[_0x33ebd6(0x37e)](0x4,'0'),'createdAt':_0x27402e,'updatedAt':_0x27402e},_0x1cd53b[_0x33ebd6(0x2fe)](_0x10a163),_0x47b011[_0x10a163]=_0x2917c3,_0x392438[_0x2917c3]=_0x10a163,_0x464931[_0x2917c3]={0x0:{'v':_0x10a163,'t':_0x10de44['STRING']}},_0xceeb77['recordNamePrefix']&&(_0x464931[_0x2917c3][0x1]={'v':_0xceeb77['recordNamePrefix']+'\x20'+(_0x2917c3+0x1),'t':_0x10de44[_0x33ebd6(0x364)]});}let _0x3da133={'id':_0x26d628,'tableId':_0xceeb77['id'],'name':'Grid','type':_0x92bd2[_0x33ebd6(0x140)],'fieldOrder':[_0x1abc18,_0x1b3866],'fieldSettings':{[_0x1abc18]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0xceeb77['id'],'name':_0xceeb77[_0x33ebd6(0x2fa)],'primaryFieldId':_0x1b3866,'fieldOrder':[_0x1abc18,_0x1b3866],'fields':{[_0x1abc18]:_0x577f35,[_0x1b3866]:_0x284615},'records':_0x32114c,'recordOrder':_0x1cd53b,'rowIndex':_0x47b011,'rowId':_0x392438,'colIndex':{[_0x1abc18]:0x0,[_0x1b3866]:0x1},'colId':{0x0:_0x1abc18,0x1:_0x1b3866},'cellData':_0x464931,'views':{[_0x26d628]:_0x3da133},'viewOrder':[_0x26d628]};}const Ba=_0x58a750(0x168);function Va(_0x2b4395){const _0x13119d=_0x58a750;let _0x3d67e0=za({'id':_0x2b4395[_0x13119d(0x3a2)],'name':_0x2b4395['name']??_0x2b4395[_0x13119d(0x1f1)],'recordCount':0x0});return{..._0x3d67e0,'resources':{..._0x3d67e0['resources']??{},[Ba]:Wa(_0x2b4395)}};}function Ha(_0x158e1e){const _0x33645e=_0x58a750;return{'id':Z['id'],'params':{'unitId':_0x158e1e[_0x33645e(0x28a)],'op':_0x2f9a7e[_0x33645e(0x18d)][_0x33645e(0x3be)](_0x2f9a7e[_0x33645e(0xd5)]([_0x33645e(0x347),_0x158e1e['table']['id']],_0x158e1e['table']),_0x2f9a7e[_0x33645e(0xd5)]([_0x33645e(0x2e0),_0x158e1e[_0x33645e(0x1a1)]??_0x158e1e[_0x33645e(0x233)][_0x33645e(0x2e0)][_0x33645e(0x17a)]],_0x158e1e['table']['id'])),'trigger':_0x33645e(0x387)}};}function Ua(_0x1eae53){const _0x1b7f60=_0x58a750;let _0x6aee48=_0x1eae53[_0x1b7f60(0x233)][_0x1b7f60(0x2e0)][_0x1b7f60(0x1c3)](_0x1eae53[_0x1b7f60(0x3cb)]);if(!(!_0x1eae53[_0x1b7f60(0x233)][_0x1b7f60(0x347)][_0x1eae53['tableId']]||_0x6aee48<0x0))return{'id':Z['id'],'params':{'unitId':_0x1eae53['unitId'],'op':_0x2f9a7e[_0x1b7f60(0x18d)]['compose'](_0x2f9a7e[_0x1b7f60(0x275)]([_0x1b7f60(0x347),_0x1eae53[_0x1b7f60(0x3cb)]],_0x1eae53[_0x1b7f60(0x233)][_0x1b7f60(0x347)][_0x1eae53[_0x1b7f60(0x3cb)]]),_0x2f9a7e[_0x1b7f60(0x275)]([_0x1b7f60(0x2e0),_0x6aee48],_0x1eae53[_0x1b7f60(0x3cb)])),'trigger':_0x1b7f60(0x387)}};}function Wa(_0x317ae3){const _0x108c64=_0x58a750;return{'version':0x1,'embedId':_0x317ae3[_0x108c64(0x1f1)],'hostAnchorId':_0x317ae3['hostAnchorId'],'childUnitId':_0x317ae3[_0x108c64(0x37c)],'childType':_0x317ae3[_0x108c64(0x1ad)]};}function Ga(_0x5bc7f7){const _0x3c9e8a=_0x58a750;let _0x120eea=Math[_0x3c9e8a(0x194)](0x0,Number(_0x5bc7f7[_0x3c9e8a(0x367)]??0x0)),_0x207c5b=_0x5bc7f7[_0x3c9e8a(0x116)]===!0x1?'0':_0x3c9e8a(0x242),_0x3922b9=_0x120eea?'.'+'0'[_0x3c9e8a(0x2a6)](_0x120eea):'',_0x32b6da=qa(_0x5bc7f7[_0x3c9e8a(0x11d)]);return''+(_0x5bc7f7[_0x3c9e8a(0x361)]?Ja(_0x5bc7f7[_0x3c9e8a(0x361)]):'')+_0x207c5b+_0x3922b9+_0x32b6da;}function Ka(_0x27d7db,_0x4ae5d2){const _0x35d085=_0x58a750;let _0x291ef1=Ga(_0x4ae5d2),_0x87dc2=_0x3fe5a0['format'](_0x291ef1,_0x27d7db,{'throws':!0x1});return Ya(String(_0x87dc2),_0x4ae5d2[_0x35d085(0x38f)],_0x4ae5d2[_0x35d085(0x25d)]);}function qa(_0x1a6327){const _0x46b396=_0x58a750;return _0x1a6327==='K'?',\x22K\x22':_0x1a6327==='M'?_0x46b396(0x1c2):_0x1a6327==='B'?_0x46b396(0x3f0):'';}function Ja(_0xd95a8){const _0x579dee=_0x58a750;return/^[A-Z]+$/i[_0x579dee(0x2aa)](_0xd95a8)?'\x22'+_0xd95a8+'\x22':_0xd95a8;}function Ya(_0x1a6293,_0x3308af,_0x5a3dd2){const _0xbced33=_0x58a750;let _0x1d2796=_0x3308af===_0xbced33(0x101)?Xa(_0x5a3dd2):_0x3308af;return _0x1d2796===_0xbced33(0x1af)?_0x1a6293[_0xbced33(0x1c8)](/,/g,'\x00')[_0xbced33(0x1c8)](/\./g,',')[_0xbced33(0x1c8)](/\0/g,'.'):_0x1d2796===_0xbced33(0x2d0)?_0x1a6293[_0xbced33(0x1c8)](/,/g,'\x20')[_0xbced33(0x1c8)](/\./g,','):_0x1d2796==='spacePeriod'?_0x1a6293[_0xbced33(0x1c8)](/,/g,'\x20'):_0x1a6293;}function Xa(_0x45e91f){const _0x599928=_0x58a750;var _0x4a5d52,_0x5b4a27;let _0x3846a3=_0x45e91f||new Intl[(_0x599928(0x3f8))]()['resolvedOptions']()['locale'],_0x1c90d8;try{_0x1c90d8=new Intl['NumberFormat'](_0x3846a3,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x599928(0xe8)](0xf4240);}catch{return _0x599928(0x1a5);}let _0x372b1b=(_0x4a5d52=_0x1c90d8[_0x599928(0x145)](_0x54228c=>_0x54228c[_0x599928(0x18d)]===_0x599928(0x3f2)))==null?void 0x0:_0x4a5d52[_0x599928(0x29b)],_0x120fea=(_0x5b4a27=_0x1c90d8[_0x599928(0x145)](_0x16f5dc=>_0x16f5dc[_0x599928(0x18d)]===_0x599928(0x142)))==null?void 0x0:_0x5b4a27[_0x599928(0x29b)],_0x7966c3=_0x372b1b==='\u00a0'||_0x372b1b==='\u202f'?'\x20':_0x372b1b;return _0x7966c3==='.'&&_0x120fea===','?'periodComma':_0x7966c3==='\x20'&&_0x120fea===','?_0x599928(0x2d0):_0x7966c3==='\x20'&&_0x120fea==='.'?'spacePeriod':_0x599928(0x1a5);}function Za(_0x8ebed3,_0x5a23fa){const _0x14562f=_0x58a750;let _0x4493e8=_0x5a23fa&&typeof _0x5a23fa==_0x14562f(0x133)&&!Array[_0x14562f(0x25e)](_0x5a23fa)?_0x5a23fa:{},_0x438acd=Qa(_0x4493e8['decimalPlaces'],0x0,0x2,0x0),_0x331394=_0x8ebed3[_0x14562f(0x35d)](_0x438acd);return _0x4493e8[_0x14562f(0x21a)]==='number'?_0x331394:_0x331394+'%';}function Qa(_0x4343f2,_0x15c405,_0x1262bd,_0x31f134){const _0x3ac135=_0x58a750;if(_0x4343f2==null||_0x4343f2==='')return _0x31f134;let _0x4b0e5d=typeof _0x4343f2=='number'?_0x4343f2:Number(_0x4343f2);return Number[_0x3ac135(0x1d8)](_0x4b0e5d)?Math[_0x3ac135(0x194)](_0x15c405,Math[_0x3ac135(0x254)](_0x1262bd,Math['round'](_0x4b0e5d))):_0x31f134;}const $a=['count','filled',_0x58a750(0x388),_0x58a750(0x118),_0x58a750(0x15a),_0x58a750(0x1cf),_0x58a750(0x254),'max'],eo=[_0x58a750(0x340),'filled',_0x58a750(0x388),_0x58a750(0x118)],to=[_0x58a750(0x15a),'average',_0x58a750(0x254),_0x58a750(0x194)],no=['min',_0x58a750(0x194)],ro=new Set([_0x54dcd1[_0x58a750(0x298)],_0x54dcd1['Currency'],_0x54dcd1[_0x58a750(0x325)],_0x54dcd1[_0x58a750(0x2f9)]]),io=new Set([_0x54dcd1['MultiSelect'],_0x54dcd1[_0x58a750(0x36d)],_0x54dcd1['Group']]),ao='General';function oo(_0x77578f){const _0x2edefa=_0x58a750;return typeof _0x77578f==_0x2edefa(0x223)&&$a['includes'](_0x77578f);}function so(_0x215cd6){const _0x5ef343=_0x58a750;return!_0x215cd6||typeof _0x215cd6!='object'?{}:Object[_0x5ef343(0x241)](Object[_0x5ef343(0x23c)](_0x215cd6)[_0x5ef343(0x253)](_0x216942=>oo(_0x216942[0x1])));}function co(_0x239d6d){const _0x50724c=_0x58a750;return ro[_0x50724c(0x192)](_0x239d6d[_0x50724c(0x18d)])?[...eo,...to]:_0x239d6d[_0x50724c(0x18d)]===_0x54dcd1[_0x50724c(0x40d)]?[...eo,...wo(_0x239d6d)===_0x50724c(0x3af)?no:to]:eo;}function lo(_0x5b6aae,_0x15c1c2){const _0x37b3d2=_0x58a750;return co(_0x5b6aae)[_0x37b3d2(0x422)](_0x15c1c2);}function uo(_0x2b7a35,_0x101414,_0x109c54){const _0x3fd6dc=_0x58a750;if(!lo(_0x2b7a35,_0x109c54))return null;let _0x2d1992=_0x101414[_0x3fd6dc(0x253)](_0x2e8b61=>!po(_0x2b7a35,_0x2e8b61));switch(_0x109c54){case _0x3fd6dc(0x340):return _0x101414[_0x3fd6dc(0x17a)];case _0x3fd6dc(0x3bd):return _0x2d1992['length'];case _0x3fd6dc(0x388):return _0x101414['length']-_0x2d1992['length'];case _0x3fd6dc(0x118):return new Set(_0x2d1992[_0x3fd6dc(0x36b)](_0x2ce5b5=>_o(_0x2b7a35,_0x2ce5b5)))[_0x3fd6dc(0x3e9)];case _0x3fd6dc(0x15a):{let _0x38cce5=mo(_0x2b7a35,_0x2d1992);return _0x38cce5['length']?go(_0x38cce5):null;}case _0x3fd6dc(0x1cf):{let _0x2a736c=mo(_0x2b7a35,_0x2d1992);return _0x2a736c[_0x3fd6dc(0x17a)]?go(_0x2a736c)/_0x2a736c[_0x3fd6dc(0x17a)]:null;}case'min':{let _0x24721d=mo(_0x2b7a35,_0x2d1992);return _0x24721d[_0x3fd6dc(0x17a)]?Math['min'](..._0x24721d):null;}case _0x3fd6dc(0x194):{let _0x192436=mo(_0x2b7a35,_0x2d1992);return _0x192436['length']?Math['max'](..._0x192436):null;}}}function fo(_0x4d3dc2,_0x604653,_0x4fd192){const _0x49e704=_0x58a750;if(_0x4fd192==null||!Number['isFinite'](_0x4fd192))return'-';if(eo[_0x49e704(0x422)](_0x604653))return String(_0x4fd192);switch(_0x4d3dc2[_0x49e704(0x18d)]){case _0x54dcd1['Number']:return Ka(_0x4fd192,xo(_0x4d3dc2));case _0x54dcd1[_0x49e704(0x302)]:return Ka(_0x4fd192,So(_0x4d3dc2));case _0x54dcd1[_0x49e704(0x325)]:return Za(_0x4fd192,_0x4d3dc2[_0x49e704(0x346)]);case _0x54dcd1['Formula']:return Co(_0x4fd192,_0x4d3dc2);default:return Eo(_0x4fd192);}}function po(_0x2fdc26,_0x2e0cef){const _0x226004=_0x58a750;if(_0x2e0cef==null)return!0x0;if(typeof _0x2e0cef==_0x226004(0x223))return _0x2e0cef['trim']()==='';if(Array[_0x226004(0x25e)](_0x2e0cef))return _0x2fdc26['type']===_0x54dcd1[_0x226004(0xd4)]?!_0x2e0cef[_0x226004(0x2c9)](bo):_0x2e0cef[_0x226004(0x17a)]===0x0;if(_0x2fdc26[_0x226004(0x18d)]===_0x54dcd1['Link']&&typeof _0x2e0cef=='object'){let _0x521d2c=_0x2e0cef;return[_0x521d2c[_0x226004(0x11c)],_0x521d2c[_0x226004(0x2d9)]]['every'](_0x21421e=>_0x21421e==null||String(_0x21421e)[_0x226004(0x3b2)]()==='');}return!0x1;}function mo(_0x358e32,_0x5519ae){let _0x3587bb=[];for(let _0x2ae385 of _0x5519ae){let _0x3234ef=ho(_0x358e32,_0x2ae385);_0x3234ef!=null&&_0x3587bb['push'](_0x3234ef);}return _0x3587bb;}function ho(_0x21cd3c,_0x40fba6){const _0x2561ed=_0x58a750;if(typeof _0x40fba6==_0x2561ed(0x30a))return Number[_0x2561ed(0x1d8)](_0x40fba6)?_0x40fba6:null;if(_0x21cd3c['type']!==_0x54dcd1[_0x2561ed(0x40d)]&&typeof _0x40fba6=='string'&&_0x40fba6[_0x2561ed(0x3b2)]()!==''){let _0x5745f2=Number(_0x40fba6);return Number[_0x2561ed(0x1d8)](_0x5745f2)?_0x5745f2:null;}return null;}function go(_0x1f3c4d){const _0x13da66=_0x58a750;let _0x18872d=0x0,_0x4d3104=0x0;for(let _0x588e47 of _0x1f3c4d){let _0x1cb866=_0x18872d+_0x588e47;_0x4d3104+=Math[_0x13da66(0xf8)](_0x18872d)>=Math[_0x13da66(0xf8)](_0x588e47)?_0x18872d-_0x1cb866+_0x588e47:_0x588e47-_0x1cb866+_0x18872d,_0x18872d=_0x1cb866;}return _0x18872d+_0x4d3104;}function _o(_0x1e81bb,_0x2a470b){const _0x45eb36=_0x58a750;return io[_0x45eb36(0x192)](_0x1e81bb[_0x45eb36(0x18d)])&&Array[_0x45eb36(0x25e)](_0x2a470b)?yo([...new Set(_0x2a470b[_0x45eb36(0x36b)](_0x3ad187=>yo(vo(_0x3ad187))))]['sort']()):yo(vo(_0x2a470b));}function vo(_0x27bbb){const _0x41178d=_0x58a750;return Array[_0x41178d(0x25e)](_0x27bbb)?_0x27bbb['map'](vo):_0x27bbb&&typeof _0x27bbb=='object'?Object[_0x41178d(0x241)](Object[_0x41178d(0x23c)](_0x27bbb)['sort'](([_0x9e6033],[_0x13b0e2])=>_0x9e6033[_0x41178d(0x291)](_0x13b0e2))[_0x41178d(0x36b)](([_0x27618d,_0x46de2a])=>[_0x27618d,vo(_0x46de2a)])):_0x27bbb;}function yo(_0x347dfe){const _0x452cd8=_0x58a750;return JSON[_0x452cd8(0x403)](_0x347dfe)??_0x452cd8(0x405);}function bo(_0x274059){const _0x391569=_0x58a750;if(typeof _0x274059==_0x391569(0x223))return _0x274059[_0x391569(0x3b2)]()!=='';if(!_0x274059||typeof _0x274059!=_0x391569(0x133))return!0x1;let _0x43cbac=_0x274059;return[_0x43cbac['id'],_0x43cbac[_0x391569(0x2fa)],_0x43cbac[_0x391569(0x26a)],_0x43cbac[_0x391569(0x2d9)],_0x43cbac[_0x391569(0x24d)]][_0x391569(0x2c9)](_0x33c65c=>_0x33c65c!=null&&String(_0x33c65c)['trim']()!=='');}function xo(_0x59e29a){const _0x13ad47=_0x58a750;let _0x12f928=Do(_0x59e29a[_0x13ad47(0x346)]);return{'decimalPlaces':ko(_0x12f928[_0x13ad47(0x367)]??_0x12f928[_0x13ad47(0x2f8)],0x0,0x14,0x2),'separatorStyle':typeof _0x12f928[_0x13ad47(0x38f)]==_0x13ad47(0x223)?_0x12f928[_0x13ad47(0x38f)]:_0x13ad47(0x101),'locale':typeof _0x12f928[_0x13ad47(0x25d)]==_0x13ad47(0x223)?_0x12f928[_0x13ad47(0x25d)]:void 0x0,'useThousands':_0x12f928[_0x13ad47(0x116)]!==!0x1,'abbreviation':typeof _0x12f928['abbreviation']==_0x13ad47(0x223)?_0x12f928['abbreviation']:_0x13ad47(0x2fd)};}function So(_0x72e9d9){const _0x170ee6=_0x58a750;let _0x4920b9=Do(_0x72e9d9[_0x170ee6(0x346)]);return{...xo(_0x72e9d9),'currencySymbol':String(_0x4920b9[_0x170ee6(0x361)]??_0x4920b9[_0x170ee6(0x311)]??'$')};}function Co(_0x1c94f2,_0x30ee2b){const _0x1447dd=_0x58a750;let _0x1186f8=To(_0x30ee2b);if(_0x1186f8===ao)return Eo(_0x1c94f2);try{return String(_0x3fe5a0[_0x1447dd(0x21a)](_0x1186f8,_0x1c94f2,{'throws':!0x1}));}catch{return Eo(_0x1c94f2);}}function wo(_0x4254a8){const _0x1a04f2=_0x58a750;let _0xcd4d03=Do(Do(_0x4254a8[_0x1a04f2(0x346)])[_0x1a04f2(0x265)]);return typeof _0xcd4d03[_0x1a04f2(0x18d)]==_0x1a04f2(0x223)?_0xcd4d03['type']:_0x1a04f2(0x319);}function To(_0xfe33ae){const _0x27eccc=_0x58a750;let _0x15eb6d=Do(Do(_0xfe33ae[_0x27eccc(0x346)])[_0x27eccc(0x265)]);return String(_0x15eb6d[_0x27eccc(0x3b8)]??ao)['trim']()||ao;}function Eo(_0x1c8437){const _0x3fe266=_0x58a750;return String(Number[_0x3fe266(0x25b)](_0x1c8437)?_0x1c8437:Math[_0x3fe266(0x3a7)]((_0x1c8437+0x2**-0x34)*0x64)/0x64);}function Do(_0x33ef6f){const _0x4c4191=_0x58a750;return _0x33ef6f&&typeof _0x33ef6f==_0x4c4191(0x133)&&!Array[_0x4c4191(0x25e)](_0x33ef6f)?_0x33ef6f:{};}function Oo(_0x2c780d){if(_0x2c780d==null||_0x2c780d==='')return null;let _0x1c8b35=typeof _0x2c780d=='number'?_0x2c780d:Number(_0x2c780d);return Number['isFinite'](_0x1c8b35)?_0x1c8b35:null;}function ko(_0x59bcc4,_0x9a3ee3,_0x24777c,_0x1ea075){const _0x1bbab3=_0x58a750;let _0x55b6bf=Oo(_0x59bcc4);return _0x55b6bf==null?_0x1ea075:Math[_0x1bbab3(0x194)](_0x9a3ee3,Math[_0x1bbab3(0x254)](_0x24777c,Math[_0x1bbab3(0x3a7)](_0x55b6bf)));}function Ao(_0x56de2a,_0x31c5b7){const _0x32cb7e=_0x58a750;let _0x4d5812=_0x4a5e41['deepClone'](_0x56de2a),_0x19ebd4=_0x31c5b7[_0x32cb7e(0x3ce)]===!0x0,_0x3177d4=new Map(),_0x3bf510=_0x31c5b7[_0x32cb7e(0x3e4)]??(()=>_0x32cb7e(0x339)+_0xb44a74(0x8)),_0x50ca0b=_0x4d5812[_0x32cb7e(0x327)];return _0x31c5b7[_0x32cb7e(0x1d4)]&&(_0x50ca0b=_0x4d5812[_0x32cb7e(0x327)]['map'](_0x1f561a=>{const _0x581044=_0x32cb7e;let _0x2ae4c1=_0x3bf510();return _0x3177d4[_0x581044(0x191)](_0x1f561a,_0x2ae4c1),_0x2ae4c1;})),{..._0x4d5812,'id':_0x31c5b7['id'],'name':_0x31c5b7[_0x32cb7e(0x2fa)],'records':_0x19ebd4?_0x4d5812[_0x32cb7e(0x286)]:{},'recordOrder':_0x19ebd4?_0x4d5812[_0x32cb7e(0x22a)]:[],'rowIndex':_0x19ebd4?_0x4d5812['rowIndex']:{},'rowId':_0x19ebd4?_0x4d5812[_0x32cb7e(0x2c1)]:{},'cellData':_0x19ebd4?_0x4d5812[_0x32cb7e(0xd8)]:{},'resources':_0x19ebd4?_0x4d5812[_0x32cb7e(0xfa)]:{},'viewOrder':_0x50ca0b,'views':Object[_0x32cb7e(0x241)](Object['entries'](_0x4d5812[_0x32cb7e(0x2c4)]??{})['map'](([_0x315b5e,_0x2df2f8])=>{const _0x5d030f=_0x32cb7e;let _0x525502=_0x3177d4['get'](_0x315b5e)??(_0x31c5b7[_0x5d030f(0x1d4)]?_0x3bf510():_0x315b5e);return[_0x525502,{..._0x2df2f8,'id':_0x525502,'tableId':_0x31c5b7['id']}];}))};}var jo='@univerjs-pro/bases',Mo=_0x58a750(0x211);const No={},Po={};function Fo(_0xa5131c){const _0x2f79a4=_0x58a750;return new V()[_0x2f79a4(0x141)](_0xa5131c);}function Io(_0x4425aa){const _0x24d55e=_0x58a750;return _0x4425aa[_0x24d55e(0x21c)][_0x24d55e(0x36b)](_0xe13883=>({'unitId':_0x4425aa[_0x24d55e(0x28a)],'sheetId':_0x4425aa[_0x24d55e(0x3cb)],'range':{'startRow':_0xe13883[_0x24d55e(0x207)],'endRow':_0xe13883[_0x24d55e(0x207)],'startColumn':_0xe13883[_0x24d55e(0x2c3)],'endColumn':_0xe13883['col']}}));}function Lo(_0x821f71,_0x593100){const _0x4491cb=_0x58a750;return{[_0x821f71]:Object['fromEntries'](_0x593100[_0x4491cb(0x36b)](_0x2b2c66=>[_0x2b2c66,'1']))};}let Ro=class extends _0xba4bb0{constructor(_0x52ca49,_0x3c9b3d){const _0x4b8ec0=_0x58a750;super(),this[_0x4b8ec0(0x1de)]=_0x52ca49,this['_univerInstanceService']=_0x3c9b3d,this['_initialize']();}[_0x58a750(0x3b0)](){const _0x3e3ced=_0x58a750;this['_activeDirtyManagerService'][_0x3e3ced(0x38c)](Z['id'],{'commandId':Z['id'],'getDirtyData':_0x134b9d=>this[_0x3e3ced(0x14d)](_0x134b9d['params'])}),this[_0x3e3ced(0x16d)](_0x1b8d04(()=>{const _0x332292=_0x3e3ced;this[_0x332292(0x1de)][_0x332292(0x137)](Z['id']);}));}['_getTable'](_0x54cf4e,_0x2ec64e){const _0x5c0f8b=_0x58a750;let _0xd4080b=this[_0x5c0f8b(0x3aa)]['getUnit'](_0x54cf4e,_0x1fd3aa[_0x5c0f8b(0x41f)]);return(_0xd4080b==null?void 0x0:_0xd4080b['getSnapshot']()[_0x5c0f8b(0x347)][_0x2ec64e])??null;}[_0x58a750(0x14d)](_0x233106){const _0x3ec2c7=_0x58a750;if(_0x233106[_0x3ec2c7(0x156)]==='formula.mutation.set-formula-calculation-result')return{};if(!_0x233106[_0x3ec2c7(0x28a)]||!_0x233106['op'])return{'clearDependencyTreeCache':this[_0x3ec2c7(0xf6)](),'forceCalculation':!0x0};let _0x373185=Fo(_0x233106['op']),_0x1c7ece=this['_getStructureDirtyTableIds'](_0x233106['unitId'],_0x373185);if(_0x1c7ece[_0x3ec2c7(0x17a)])return{'clearDependencyTreeCache':Lo(_0x233106[_0x3ec2c7(0x28a)],_0x1c7ece),'forceCalculation':!0x0};let _0x3bb2b0=Object['entries'](this[_0x3ec2c7(0x212)](_0x233106['unitId'],_0x373185))[_0x3ec2c7(0x330)](([_0x53d3de,_0x2602d8])=>Io({'unitId':_0x233106['unitId'],'tableId':_0x53d3de,'patches':_0x2602d8}));return _0x3bb2b0[_0x3ec2c7(0x17a)]?{'dirtyRanges':_0x3bb2b0}:{};}[_0x58a750(0x166)](_0x2cc54c,_0x1b85cb){const _0x33524b=_0x58a750;let _0x488ee6=_0x1b85cb[_0x33524b(0x253)](_0x5c161f=>_0x5c161f[_0x33524b(0x2af)]!=='cell')[_0x33524b(0x330)](_0x3f8fe0=>_0x3f8fe0[_0x33524b(0x3cb)]?[_0x3f8fe0['tableId']]:this['_getAllTableIds'](_0x2cc54c));return Array[_0x33524b(0x247)](new Set(_0x488ee6));}[_0x58a750(0x212)](_0x57af7f,_0x3c6bad){const _0x1e028b=_0x58a750;let _0x12acd7=new Set();return _0x3c6bad[_0x1e028b(0x371)]((_0x33d158,_0x2a348b)=>{const _0x4b3844=_0x1e028b;let _0x2510bb=this[_0x4b3844(0x1c9)](_0x57af7f,_0x2a348b);if(!_0x2510bb)return _0x33d158;let _0x302135=_0x2a348b[_0x4b3844(0x3cb)]+':'+_0x2510bb[_0x4b3844(0x207)]+':'+_0x2510bb[_0x4b3844(0x2c3)];return _0x12acd7[_0x4b3844(0x192)](_0x302135)?_0x33d158:(_0x12acd7[_0x4b3844(0x2a8)](_0x302135),_0x33d158[_0x2a348b[_0x4b3844(0x3cb)]]=_0x33d158[_0x2a348b[_0x4b3844(0x3cb)]]??[],_0x33d158[_0x2a348b[_0x4b3844(0x3cb)]][_0x4b3844(0x2fe)](_0x2510bb),_0x33d158);},{});}[_0x58a750(0x1c9)](_0x475df6,_0x1ed70e){const _0x2b1369=_0x58a750;if(_0x1ed70e[_0x2b1369(0x2af)]!==_0x2b1369(0x16f))return null;if(_0x1ed70e['row']!=null&&_0x1ed70e[_0x2b1369(0x1f7)]!=null)return{'row':_0x1ed70e[_0x2b1369(0x207)],'col':_0x1ed70e[_0x2b1369(0x1f7)],'value':null};if(!_0x1ed70e[_0x2b1369(0x378)]||!_0x1ed70e[_0x2b1369(0x32d)])return null;let _0x4d5628=this[_0x2b1369(0x13a)](_0x475df6,_0x1ed70e[_0x2b1369(0x3cb)]);if(!_0x4d5628)return null;let _0x381cf5=rt(_0x4d5628,_0x1ed70e[_0x2b1369(0x378)],_0x1ed70e['fieldId']);return _0x381cf5?{'row':_0x381cf5[_0x2b1369(0x207)],'col':_0x381cf5['col'],'value':null}:null;}['_getAllTableIds'](_0x35c1e7){const _0x4c00ce=_0x58a750;let _0x36e9f8=this['_univerInstanceService'][_0x4c00ce(0x31d)](_0x35c1e7,_0x1fd3aa['UNIVER_BASE']);return Object[_0x4c00ce(0x255)]((_0x36e9f8==null?void 0x0:_0x36e9f8['getSnapshot']()[_0x4c00ce(0x347)])??{})[_0x4c00ce(0x36b)](_0x573dc0=>_0x573dc0['id']);}['_getAllBaseDependencyTreeCacheMap'](){const _0x109594=_0x58a750;let _0x742c27=this['_univerInstanceService'][_0x109594(0xec)](_0x1fd3aa[_0x109594(0x41f)])[_0x109594(0x36b)](_0x3549f0=>Lo(_0x3549f0['getUnitId'](),Object[_0x109594(0x29c)](_0x3549f0[_0x109594(0x26f)]()[_0x109594(0x347)])));return Object[_0x109594(0x3fa)]({},..._0x742c27);}};Ro=$n([J(0x0,_0x164f7c),J(0x1,_0x59fb84)],Ro);let zo=class extends _0xba4bb0{constructor(_0x50d91d,_0x1fd242,_0x1b8343,_0x500a80){const _0x3d856b=_0x58a750;super(),this[_0x3d856b(0x36c)]=_0x50d91d,this[_0x3d856b(0x3aa)]=_0x1fd242,this[_0x3d856b(0xdb)]=_0x1b8343,this[_0x3d856b(0xdd)]=_0x500a80,q(this,_0x3d856b(0x2e9),new ti()),q(this,'_registeredSuperTableNames',new Map()),q(this,_0x3d856b(0x397),new Set()),q(this,_0x3d856b(0x18e),Promise['resolve']()),q(this,_0x3d856b(0xea),!0x1),this[_0x3d856b(0x3b0)]();}[_0x58a750(0x3b0)](){const _0x4feeaf=_0x58a750;this['_univerInstanceService'][_0x4feeaf(0xec)](_0x1fd3aa[_0x4feeaf(0x41f)])[_0x4feeaf(0x3b6)](_0x54f2ea=>{const _0x3f88e9=_0x4feeaf;this[_0x3f88e9(0x38b)](_0x54f2ea);}),this['disposeWithMe'](this[_0x4feeaf(0x3aa)][_0x4feeaf(0x337)](_0x1fd3aa['UNIVER_BASE'])[_0x4feeaf(0x210)](({unit:_0x11db54})=>{const _0x1def59=_0x4feeaf;this[_0x1def59(0x38b)](_0x11db54);})),this['disposeWithMe'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1fd3aa[_0x4feeaf(0x41f)])[_0x4feeaf(0x210)](_0x52b85e=>{const _0x1abf6c=_0x4feeaf;this['_enqueueFormulaSync'](()=>this[_0x1abf6c(0x41a)](_0x52b85e[_0x1abf6c(0x267)]()));})),this[_0x4feeaf(0x16d)](this[_0x4feeaf(0x36c)]['onCommandExecuted'](_0x5ac26f=>this['_onCommandExecuted'](_0x5ac26f)));}[_0x58a750(0x412)](_0x12e8e3){const _0x2cd0dc=_0x58a750;if(_0x12e8e3['id']===_0x562d61['id']){Vo(_0x12e8e3[_0x2cd0dc(0x3fb)])&&this['_applyFormulaResult'](_0x12e8e3[_0x2cd0dc(0x3fb)]);return;}if(this[_0x2cd0dc(0xea)]||_0x12e8e3['id']!==Z['id'])return;let _0xcd4ab8=Bo(_0x12e8e3['params'])?_0x12e8e3['params']:void 0x0,_0x145535=_0xcd4ab8!=null&&_0xcd4ab8[_0x2cd0dc(0x28a)]?[this[_0x2cd0dc(0x3aa)][_0x2cd0dc(0x31d)](_0xcd4ab8[_0x2cd0dc(0x28a)],_0x1fd3aa[_0x2cd0dc(0x41f)])][_0x2cd0dc(0x253)](_0x2153d7=>!!_0x2153d7):this[_0x2cd0dc(0x3aa)][_0x2cd0dc(0xec)](_0x1fd3aa[_0x2cd0dc(0x41f)]),_0x12e9f6=_0xcd4ab8==null?void 0x0:_0xcd4ab8['op'];_0x145535['forEach'](_0x2d12c9=>{const _0x45d6b9=_0x2cd0dc;let _0xf99b7d=_0x12e9f6?Fo(_0x12e9f6):[];(!_0x12e9f6||_0xf99b7d['some'](_0x3a61e8=>_0x3a61e8['reason']!=='cell'))&&this[_0x45d6b9(0x38b)](_0x2d12c9);});}[_0x58a750(0x38b)](_0x1da94f){const _0x59f320=_0x58a750;let _0x4bbd00=_0x1da94f[_0x59f320(0x267)]();this[_0x59f320(0x397)][_0x59f320(0x192)](_0x4bbd00)||(this[_0x59f320(0x397)][_0x59f320(0x2a8)](_0x4bbd00),this[_0x59f320(0x34b)](async()=>{const _0xba7def=_0x59f320;this[_0xba7def(0x397)][_0xba7def(0x21f)](_0x4bbd00),await this[_0xba7def(0x15c)](_0x1da94f);}));}async[_0x58a750(0x15c)](_0x5f0b04){const _0x523d09=_0x58a750;let _0x4f2ce5=_0x5f0b04[_0x523d09(0x267)](),_0x4353fa=this[_0x523d09(0x2e9)][_0x523d09(0x2ac)](_0x5f0b04[_0x523d09(0x26f)]()),_0xc3716a=new Set(_0x4353fa[_0x523d09(0x36b)](({tableName:_0x401b67})=>_0x401b67)),_0x54a089=this[_0x523d09(0x1d0)][_0x523d09(0x1ce)](_0x4f2ce5)??new Set();for(let _0x18b24d of _0x54a089)if(!_0xc3716a[_0x523d09(0x192)](_0x18b24d)&&!await this[_0x523d09(0x26b)](_0x3d62d9['id'],{'unitId':_0x4f2ce5,'tableName':_0x18b24d}))return;for(let {tableName:_0x392473,reference:_0x5875a3}of _0x4353fa)if(!await this[_0x523d09(0x26b)](_0x490ac1['id'],{'unitId':_0x4f2ce5,'tableName':_0x392473,'reference':_0x5875a3}))return;this[_0x523d09(0x1d0)][_0x523d09(0x191)](_0x4f2ce5,_0xc3716a);}async[_0x58a750(0x41a)](_0x53d9a9){const _0x5b5061=_0x58a750;let _0x36f9d6=this[_0x5b5061(0x1d0)][_0x5b5061(0x1ce)](_0x53d9a9)??new Set();for(let _0x37fb80 of _0x36f9d6)if(!await this[_0x5b5061(0x26b)](_0x3d62d9['id'],{'unitId':_0x53d9a9,'tableName':_0x37fb80}))return;this[_0x5b5061(0x1d0)][_0x5b5061(0x21f)](_0x53d9a9);}async[_0x58a750(0x26b)](_0x17f694,_0x34d6d9){const _0x5d27fe=_0x58a750;return!this[_0x5d27fe(0x240)]&&await this[_0x5d27fe(0x36c)]['executeCommand'](_0x17f694,_0x34d6d9,{'onlyLocal':!0x0})&&!this[_0x5d27fe(0x240)];}[_0x58a750(0x34b)](_0x2146a2){const _0x4414fd=_0x58a750;this[_0x4414fd(0x18e)]=this[_0x4414fd(0x18e)][_0x4414fd(0x37d)](_0x2146a2,_0x2146a2)[_0x4414fd(0x3fd)](()=>void 0x0);}[_0x58a750(0x3ac)](_0x51b2f5){const _0x1fc9b6=_0x58a750;let _0x489d1a=this['_univerInstanceService'][_0x1fc9b6(0xec)](_0x1fd3aa[_0x1fc9b6(0x41f)]);if(!_0x489d1a[_0x1fc9b6(0x2c9)](_0x3377d9=>{var _0x3718e3;return((_0x3718e3=_0x51b2f5['unitData'])==null?void 0x0:_0x3718e3[_0x3377d9['getUnitId']()])!=null;}))return;let _0x4f6fd6=_0x489d1a['flatMap'](_0xb0c7b8=>ni(_0xb0c7b8[_0x1fc9b6(0x26f)](),_0x51b2f5));if(!_0x4f6fd6[_0x1fc9b6(0x17a)]){this[_0x1fc9b6(0xdd)][_0x1fc9b6(0x33e)](_0x301cda[_0x1fc9b6(0x1e0)],_0x51b2f5);return;}let _0x55a650=new K(),_0x17eb2a=_0x4f6fd6[_0x1fc9b6(0x330)](_0x5b95a5=>Io({'unitId':_0x5b95a5['unitId'],'tableId':_0x5b95a5[_0x1fc9b6(0x3cb)],'patches':_0x5b95a5[_0x1fc9b6(0x21c)]}));this['_applyingFormulaResults']=!0x0,(async()=>{const _0x2034b4=_0x1fc9b6;for(let _0x2894c4 of _0x4f6fd6){let _0x30c1a0=this['_univerInstanceService']['getUnit'](_0x2894c4[_0x2034b4(0x28a)],_0x1fd3aa[_0x2034b4(0x41f)]);_0x30c1a0&&await this['_commandService'][_0x2034b4(0x2ba)](Z['id'],{'unitId':_0x2894c4[_0x2034b4(0x28a)],'op':_0x55a650['setRangeValues'](_0x30c1a0[_0x2034b4(0x26f)](),_0x2894c4['tableId'],_0x2894c4[_0x2034b4(0x21c)]),'trigger':_0x562d61['id']},{'onlyLocal':!0x0});}await this[_0x2034b4(0x36c)][_0x2034b4(0x2ba)](_0x439af8['id'],{'dirtyRanges':_0x17eb2a},{'onlyLocal':!0x0});})()['finally'](()=>{const _0x20704f=_0x1fc9b6;this[_0x20704f(0xea)]=!0x1,this[_0x20704f(0xdd)][_0x20704f(0x33e)](_0x301cda[_0x20704f(0x1e0)],_0x51b2f5);});}};zo=$n([J(0x0,_0x49c211),J(0x1,_0x59fb84),J(0x2,_0x2e761d(_0x3dccbe)),J(0x3,_0x2e761d(_0x5f1921))],zo);function Bo(_0xa4073d){const _0x58cb03=_0x58a750;return typeof _0xa4073d==_0x58cb03(0x133)&&!!_0xa4073d&&_0x58cb03(0x28a)in _0xa4073d&&typeof _0xa4073d[_0x58cb03(0x28a)]==_0x58cb03(0x223)&&'op'in _0xa4073d&&Array[_0x58cb03(0x25e)](_0xa4073d['op']);}function Vo(_0x354088){const _0x237113=_0x58a750;return typeof _0x354088==_0x237113(0x133)&&!!_0x354088&&'unitData'in _0x354088&&_0x237113(0xe7)in _0x354088;}const Ho=_0x35316f(_0x58a750(0x220));let Uo=class{constructor(_0x39471b){const _0x2cac68=_0x58a750;this[_0x2cac68(0x3aa)]=_0x39471b;}[_0x58a750(0x24f)](_0x1e7ea4){const _0x2eb3eb=_0x58a750;return this[_0x2eb3eb(0x3aa)][_0x2eb3eb(0x31d)](_0x1e7ea4,_0x1fd3aa[_0x2eb3eb(0x41f)])??null;}[_0x58a750(0xe2)](){const _0x13c923=_0x58a750;return this[_0x13c923(0x3aa)][_0x13c923(0xec)](_0x1fd3aa[_0x13c923(0x41f)]);}[_0x58a750(0x138)](_0x53b9fc){return this['_univerInstanceService']['createUnit'](_0x1fd3aa['UNIVER_BASE'],_0x53b9fc);}};Uo=$n([J(0x0,_0x59fb84)],Uo);const Wo=_0x35316f(_0x58a750(0x2e1));var Go=class extends _0xba4bb0{constructor(..._0x12ee82){const _0xe917e6=_0x58a750;super(..._0x12ee82),q(this,_0xe917e6(0x22c),new Map());}[_0x58a750(0x38c)](_0x2cf6ec){const _0x272c05=_0x58a750;return this[_0x272c05(0x22c)][_0x272c05(0x191)](_0x2cf6ec[_0x272c05(0x18d)],_0x2cf6ec),_0x1b8d04(()=>this[_0x272c05(0x22c)][_0x272c05(0x21f)](_0x2cf6ec[_0x272c05(0x18d)]));}[_0x58a750(0x1ce)](_0x3434da){const _0x117bfe=_0x58a750;let _0x2e91e0=this[_0x117bfe(0x22c)]['get'](_0x3434da);if(!_0x2e91e0)throw Error('[BaseViewRegistryService]:\x20view\x20type\x20\x22'+_0x3434da+_0x117bfe(0x34d));return _0x2e91e0;}[_0x58a750(0x238)](){const _0x5df140=_0x58a750;return Array[_0x5df140(0x247)](this[_0x5df140(0x22c)][_0x5df140(0x255)]());}};const Ko=[Z];let qo=class extends _0x52dd5b{constructor(_0x4c0c4c=No,_0x5a2436,_0x1487ce,_0xb24007,_0x31a566,_0x1b44eb){const _0x4be67d=_0x58a750;super(),this[_0x4be67d(0x3d6)]=_0x4c0c4c,this[_0x4be67d(0x31b)]=_0x5a2436,this[_0x4be67d(0x36c)]=_0x1487ce,this[_0x4be67d(0x3aa)]=_0xb24007,this['_configService']=_0x31a566,this[_0x4be67d(0x178)]=_0x1b44eb,q(this,'_baseSyncDisposables',new Map());let {..._0x12497d}=_0x58c239({},No,this[_0x4be67d(0x3d6)]);this['_configService'][_0x4be67d(0x288)](_0x4be67d(0x217),_0x12497d),this[_0x4be67d(0x3aa)][_0x4be67d(0xdc)](_0x1fd3aa[_0x4be67d(0x41f)],_0x3a2bc5),this[_0x4be67d(0x26c)](),this[_0x4be67d(0x1bc)](),this[_0x4be67d(0x2e3)](),this['_initDataSync']();}['onReady'](){const _0x259dd3=_0x58a750;_0x18b6bb(this[_0x259dd3(0x31b)],[[Uo],[er],[Ro]]),this[_0x259dd3(0x3aa)][_0x259dd3(0xec)](_0x1fd3aa[_0x259dd3(0x41f)])[_0x259dd3(0x3b6)](_0x52d813=>this[_0x259dd3(0x2b8)](_0x52d813[_0x259dd3(0x267)]())),_0x18b6bb(this[_0x259dd3(0x31b)],[[zo]]);}[_0x58a750(0x26c)](){const _0x57532a=_0x58a750;[[qn,{'useClass':Jn}],[Wo,{'useClass':Go}],[dr,{'useClass':pr}],[Ho,{'useClass':Uo}],[Yn,{'useClass':Xn}],[Y,{'useClass':er}],[Ro],[zo]][_0x57532a(0x3b6)](_0x158ef6=>this[_0x57532a(0x31b)]['add'](_0x158ef6));}[_0x58a750(0x1bc)](){const _0x55f693=_0x58a750;[Fi,fa,$i,Ea,va,_a,ji,ki,Ei,Qi,Di,na,Aa,sa,Ai,ta,Oa,Da,Oi,Zi,oa,Ra,Xi,ra,pa,ha,ea,da,La,Ma,ma,ka,Ca,Ta,wa,ya,xa,Sa,ba,...Ko][_0x55f693(0x3b6)](_0x3d4cb2=>this[_0x55f693(0x16d)](this[_0x55f693(0x36c)]['registerCommand'](_0x3d4cb2))),Ko[_0x55f693(0x3b6)](_0x505084=>{const _0xca1015=_0x55f693;var _0x5ef14a;return(_0x5ef14a=this[_0xca1015(0x178)])==null?void 0x0:_0x5ef14a[_0xca1015(0x1b2)](_0x505084);});}[_0x58a750(0x115)](){const _0x1ceb73=_0x58a750;this['_dataSyncPrimaryController']&&(this['disposeWithMe'](this[_0x1ceb73(0x3aa)]['getTypeOfUnitAdded$'](_0x1fd3aa[_0x1ceb73(0x41f)])[_0x1ceb73(0x210)](({unit:_0x4bb911})=>{const _0xcdd1c=_0x1ceb73;this[_0xcdd1c(0x2b8)](_0x4bb911[_0xcdd1c(0x267)]());})),this[_0x1ceb73(0x16d)](this[_0x1ceb73(0x3aa)][_0x1ceb73(0x2d2)](_0x1fd3aa[_0x1ceb73(0x41f)])[_0x1ceb73(0x210)](_0x1219a8=>{const _0x23940d=_0x1ceb73;var _0x369299;(_0x369299=this[_0x23940d(0x1fa)][_0x23940d(0x1ce)](_0x1219a8['getUnitId']()))==null||_0x369299[_0x23940d(0x17f)](),this[_0x23940d(0x1fa)][_0x23940d(0x21f)](_0x1219a8[_0x23940d(0x267)]());})));}[_0x58a750(0x2b8)](_0x35338c){const _0x1fa611=_0x58a750;!this['_dataSyncPrimaryController']||this[_0x1fa611(0x1fa)][_0x1fa611(0x192)](_0x35338c)||this[_0x1fa611(0x1fa)]['set'](_0x35338c,this[_0x1fa611(0x178)][_0x1fa611(0x299)](_0x35338c));}[_0x58a750(0x2e3)](){const _0x285bc2=_0x58a750;let _0x4b691e=this[_0x285bc2(0x31b)][_0x285bc2(0x1ce)](qn);Cn()['forEach'](_0x86532=>_0x4b691e[_0x285bc2(0x38c)](_0x86532));let _0x4221d5=this['_injector']['get'](Wo),_0x5758fb=this[_0x285bc2(0x31b)][_0x285bc2(0x1ce)](dr);or()[_0x285bc2(0x3b6)](_0x1627d3=>{const _0x4f5ffb=_0x285bc2;_0x4221d5['register'](_0x1627d3),_0x5758fb[_0x4f5ffb(0x153)](_0x1627d3);});}};q(qo,_0x58a750(0x10b),_0x58a750(0x2df)),q(qo,_0x58a750(0x131),jo),q(qo,'version',Mo),q(qo,_0x58a750(0x18d),_0x1fd3aa[_0x58a750(0x41f)]),qo=$n([_0x3a22a2(_0x160ab0,_0x170a2e),J(0x1,_0x2e761d(_0x291526)),J(0x2,_0x49c211),J(0x3,_0x59fb84),J(0x4,_0x48274f),J(0x5,_0x1f97d4(_0x571f74))],qo);let Jo=class extends _0x52dd5b{constructor(_0x164e28=Po,_0x38ea6a,_0x39ecb9,_0x182e1a,_0x39b6c6){const _0x4c5f1b=_0x58a750;super(),this[_0x4c5f1b(0x3d6)]=_0x164e28,this['_injector']=_0x38ea6a,this['_commandService']=_0x39ecb9,this['_configService']=_0x182e1a,this[_0x4c5f1b(0x3aa)]=_0x39b6c6;let {..._0x1c9bcd}=_0x58c239({},Po,this[_0x4c5f1b(0x3d6)]);this['_configService'][_0x4c5f1b(0x288)](_0x4c5f1b(0xe0),_0x1c9bcd),this[_0x4c5f1b(0x3aa)][_0x4c5f1b(0xdc)](_0x1fd3aa[_0x4c5f1b(0x41f)],_0x3a2bc5),[[qn,{'useClass':Jn}],[dr,{'useClass':pr}]][_0x4c5f1b(0x3b6)](_0x308f92=>this['_injector'][_0x4c5f1b(0x2a8)](_0x308f92)),Ko[_0x4c5f1b(0x3b6)](_0x1bc462=>this[_0x4c5f1b(0x16d)](this[_0x4c5f1b(0x36c)][_0x4c5f1b(0xd2)](_0x1bc462)));}};q(Jo,_0x58a750(0x10b),_0x58a750(0x1bb)),q(Jo,'packageName',jo),q(Jo,_0x58a750(0x28d),Mo),q(Jo,_0x58a750(0x18d),_0x1fd3aa[_0x58a750(0x41f)]),Jo=$n([_0x3a22a2(_0x160ab0,_0x170a2e),J(0x1,_0x2e761d(_0x291526)),J(0x2,_0x49c211),J(0x3,_0x48274f),J(0x4,_0x59fb84)],Jo);function Yo(_0x3182e9){const _0x1d1626=_0x58a750;let _0x2c9af0=cs(_0x3182e9[_0x1d1626(0x28f)]);if(!_0x2c9af0)return{'query':'','total':0x0,'matches':[]};let _0x17c7aa=[],_0x39840b=[];for(let _0x485fe2=0x0;_0x485fe2<_0x3182e9[_0x1d1626(0x1e9)][_0x1d1626(0x17a)];_0x485fe2++){if(!(_0x485fe2 in _0x3182e9[_0x1d1626(0x1e9)]))continue;let _0x251134=_0x3182e9[_0x1d1626(0x400)][_0x1d1626(0x29a)][_0x3182e9[_0x1d1626(0x1e9)][_0x485fe2]];_0x251134&&_0x39840b[_0x1d1626(0x2fe)]({'field':_0x251134,'fieldIndex':_0x485fe2});}_0x3182e9[_0x1d1626(0x204)][_0x1d1626(0x3b6)]((_0x111928,_0x916c38)=>{const _0x2132de=_0x1d1626;_0x39840b[_0x2132de(0x3b6)](({field:_0x93b93e,fieldIndex:_0x38cacb})=>{const _0x3ce632=_0x2132de;let _0x96d26=Xo(_0x111928[_0x3ce632(0x255)][_0x93b93e['id']],_0x93b93e);if(!_0x96d26)return;let _0x37f9eb=ss(_0x2c9af0,_0x96d26[_0x3ce632(0x2d7)]);_0x37f9eb<=0x0||_0x17c7aa[_0x3ce632(0x2fe)]({'recordId':_0x111928[_0x3ce632(0x378)],'fieldId':_0x93b93e['id'],'fieldType':_0x93b93e[_0x3ce632(0x18d)],'text':_0x96d26[_0x3ce632(0x1e5)],'score':_0x37f9eb,'rowIndex':_0x916c38,'fieldIndex':_0x38cacb});});}),_0x17c7aa[_0x1d1626(0x172)]((_0x1e4bb0,_0x482e46)=>_0x482e46[_0x1d1626(0x23e)]-_0x1e4bb0['score']||_0x1e4bb0[_0x1d1626(0x1b6)]-_0x482e46[_0x1d1626(0x1b6)]||_0x1e4bb0[_0x1d1626(0x34e)]-_0x482e46[_0x1d1626(0x34e)]);let _0x448e4b=_0x3182e9[_0x1d1626(0x21e)]==null?_0x17c7aa:_0x17c7aa['slice'](0x0,Math[_0x1d1626(0x194)](0x0,_0x3182e9['limit']));return{'query':_0x2c9af0,'total':_0x17c7aa[_0x1d1626(0x17a)],'matches':us(_0x448e4b)};}function Xo(_0x286145,_0x527e29){const _0x12d026=_0x58a750;let _0x44c4d8=[];for(let _0x49e7c4 of Qo(_0x286145,_0x527e29)){let _0x297f8c=cs(_0x49e7c4);_0x297f8c&&_0x44c4d8[_0x12d026(0x2fe)](_0x297f8c);}return _0x44c4d8[_0x12d026(0x17a)]?{'displayText':Zo(_0x286145,_0x527e29),'searchTexts':ls(_0x44c4d8)}:null;}function Zo(_0x4f33e8,_0x2ce163){const _0x337821=_0x58a750;switch(_0x2ce163[_0x337821(0x18d)]){case _0x54dcd1['SingleSelect']:case _0x54dcd1[_0x337821(0xf3)]:case _0x54dcd1[_0x337821(0x3c3)]:return $o(_0x4f33e8,_0x2ce163)[_0x337821(0x20b)](',\x20');case _0x54dcd1[_0x337821(0x39d)]:return ns(_0x4f33e8);case _0x54dcd1[_0x337821(0x160)]:case _0x54dcd1[_0x337821(0x1a4)]:case _0x54dcd1[_0x337821(0x1b4)]:return rs(_0x4f33e8,_0x2ce163);case _0x54dcd1[_0x337821(0x298)]:case _0x54dcd1[_0x337821(0x302)]:return is(_0x4f33e8,_0x2ce163);case _0x54dcd1[_0x337821(0x325)]:return as(_0x4f33e8,_0x2ce163);case _0x54dcd1[_0x337821(0x2ca)]:return _0x4f33e8?_0x337821(0x119):_0x337821(0x33c);case _0x54dcd1[_0x337821(0xd4)]:return os(_0x4f33e8)['join'](',\x20');default:return $(_0x4f33e8);}}function Qo(_0x2957dd,_0x55af09){const _0x3146ce=_0x58a750;switch(_0x55af09['type']){case _0x54dcd1['SingleSelect']:case _0x54dcd1['MultiSelect']:case _0x54dcd1[_0x3146ce(0x3c3)]:{let _0x2ff70d=$o(_0x2957dd,_0x55af09);if(Array[_0x3146ce(0x25e)](_0x2957dd)){let _0x36b0f1=[..._0x2ff70d];for(let _0x569b5e=0x0;_0x569b5e<_0x2957dd[_0x3146ce(0x17a)];_0x569b5e++)_0x569b5e in _0x2957dd&&_0x36b0f1[_0x3146ce(0x2fe)](String(_0x2957dd[_0x569b5e]));return _0x36b0f1;}return _0x2957dd==null?_0x2ff70d:[..._0x2ff70d,String(_0x2957dd)];}case _0x54dcd1[_0x3146ce(0x39d)]:{let _0x6cf6ff=ts(_0x2957dd);return[_0x6cf6ff[_0x3146ce(0x11c)],_0x6cf6ff['url']];}case _0x54dcd1['Date']:case _0x54dcd1['CreatedAt']:case _0x54dcd1['UpdatedAt']:return[rs(_0x2957dd,_0x55af09),$(_0x2957dd)];case _0x54dcd1[_0x3146ce(0x298)]:case _0x54dcd1['Currency']:return[is(_0x2957dd,_0x55af09),$(_0x2957dd)];case _0x54dcd1[_0x3146ce(0x325)]:return[as(_0x2957dd,_0x55af09),$(_0x2957dd)];case _0x54dcd1['Checkbox']:return _0x2957dd?['Checked','Yes',_0x3146ce(0x120)]:[_0x3146ce(0x33c),'No',_0x3146ce(0x17c)];case _0x54dcd1['Attachment']:return os(_0x2957dd);default:return[$(_0x2957dd)];}}function $o(_0x4f6fb2,_0x5d6d64){const _0x309724=_0x58a750;var _0x2fa49d;let _0x36fdb2=Array[_0x309724(0x25e)]((_0x2fa49d=_0x5d6d64['config'])==null?void 0x0:_0x2fa49d['options'])?_0x5d6d64[_0x309724(0x346)]['options']:[],_0x1a873e=[];if(Array[_0x309724(0x25e)](_0x4f6fb2)){for(let _0x4f0cf9=0x0;_0x4f0cf9<_0x4f6fb2[_0x309724(0x17a)];_0x4f0cf9++){if(!(_0x4f0cf9 in _0x4f6fb2))continue;let _0xe5b65f=String(_0x4f6fb2[_0x4f0cf9]);_0xe5b65f&&_0x1a873e[_0x309724(0x2fe)](es(_0x36fdb2,_0xe5b65f));}return _0x1a873e;}if(_0x4f6fb2!=null){let _0x230b83=String(_0x4f6fb2);_0x230b83&&_0x1a873e['push'](es(_0x36fdb2,_0x230b83));}return _0x1a873e;}function es(_0x216918,_0x2ecf5b){const _0x5c454e=_0x58a750;for(let _0xeba410 of _0x216918){if(typeof _0xeba410==_0x5c454e(0x223)&&_0xeba410===_0x2ecf5b)return _0xeba410;if(_0xeba410&&typeof _0xeba410==_0x5c454e(0x133)){let _0x402dc6=_0xeba410;if(String(_0x402dc6['id']??_0x402dc6[_0x5c454e(0x2fa)]??'')===_0x2ecf5b||String(_0x402dc6['name']??'')===_0x2ecf5b)return String(_0x402dc6[_0x5c454e(0x2fa)]??_0x402dc6['id']??_0x2ecf5b);}}return _0x2ecf5b;}function ts(_0x5a3470){const _0xa7416a=_0x58a750;if(_0x5a3470&&typeof _0x5a3470==_0xa7416a(0x133)&&!Array['isArray'](_0x5a3470)){let _0x4740a6=_0x5a3470;return{'text':String(_0x4740a6['text']??_0x4740a6['url']??''),'url':String(_0x4740a6['url']??'')};}return{'text':$(_0x5a3470),'url':$(_0x5a3470)};}function ns(_0xf328a9){let _0x2a3ffc=ts(_0xf328a9);return _0x2a3ffc['text']||_0x2a3ffc['url'];}function rs(_0xde1428,_0x19491f){const _0x133bc8=_0x58a750;return typeof _0xde1428!=_0x133bc8(0x30a)||!Number[_0x133bc8(0x1d8)](_0xde1428)?'':Zt(_0xde1428,_0x19491f[_0x133bc8(0x346)]);}function is(_0x34df5c,_0x4a5150){const _0x49d3b6=_0x58a750;let _0x50f80d=typeof _0x34df5c==_0x49d3b6(0x30a)?_0x34df5c:Number(_0x34df5c);return Number[_0x49d3b6(0x1d8)](_0x50f80d)?Ka(_0x50f80d,_0x4a5150[_0x49d3b6(0x346)]):'';}function as(_0x4dea99,_0x246358){const _0x505321=_0x58a750;let _0x3ee4db=typeof _0x4dea99==_0x505321(0x30a)?_0x4dea99:Number(_0x4dea99);return Number[_0x505321(0x1d8)](_0x3ee4db)?Za(_0x3ee4db,_0x246358[_0x505321(0x346)]):'';}function os(_0xca925f){const _0x3adcea=_0x58a750;return Array['isArray'](_0xca925f)?_0xca925f[_0x3adcea(0x330)](_0x4235d6=>{const _0x4e509f=_0x3adcea;if(!_0x4235d6||typeof _0x4235d6!=_0x4e509f(0x133))return[];let _0x1fe7e1=_0x4235d6,_0x20fd51=String(_0x1fe7e1[_0x4e509f(0x2fa)]??_0x1fe7e1['url']??'')[_0x4e509f(0x3b2)]();return _0x20fd51?[_0x20fd51]:[];}):[];}function $(_0x52f8c0){const _0x512933=_0x58a750;if(_0x52f8c0==null)return'';if(typeof _0x52f8c0==_0x512933(0x27a))return _0x52f8c0?_0x512933(0x312):_0x512933(0x29d);if(typeof _0x52f8c0==_0x512933(0x30a))return String(_0x52f8c0);if(Array['isArray'](_0x52f8c0)){let _0x2aef6a=[];for(let _0x1080b4=0x0;_0x1080b4<_0x52f8c0[_0x512933(0x17a)];_0x1080b4++){if(!(_0x1080b4 in _0x52f8c0))continue;let _0x596081=$(_0x52f8c0[_0x1080b4]);_0x596081&&_0x2aef6a[_0x512933(0x2fe)](_0x596081);}return _0x2aef6a[_0x512933(0x20b)](',\x20');}if(typeof _0x52f8c0=='object'){let _0xd8c391=_0x52f8c0;return String(_0xd8c391[_0x512933(0x404)]??_0xd8c391[_0x512933(0x2fa)]??_0xd8c391[_0x512933(0x11c)]??_0xd8c391[_0x512933(0x2d9)]??'')['trim']();}return String(_0x52f8c0);}function ss(_0x292e65,_0x138902){const _0x3d771b=_0x58a750;let _0x5a3b6c=0x0;for(let _0x410fcf of _0x138902)if(_0x410fcf){if(_0x410fcf===_0x292e65){_0x5a3b6c=Math['max'](_0x5a3b6c,0x12c);continue;}if(_0x410fcf['startsWith'](_0x292e65)){_0x5a3b6c=Math[_0x3d771b(0x194)](_0x5a3b6c,0xfa);continue;}_0x410fcf[_0x3d771b(0x422)](_0x292e65)&&(_0x5a3b6c=Math['max'](_0x5a3b6c,0xc8));}return _0x5a3b6c;}function cs(_0x1db8d2){const _0xf30f10=_0x58a750;return _0x1db8d2[_0xf30f10(0x3b2)]()['replace'](/\s+/g,'\x20')[_0xf30f10(0x3d1)]();}function ls(_0x3bb737){const _0x7dc422=_0x58a750;return Array[_0x7dc422(0x247)](new Set(_0x3bb737));}function us(_0x378a6f){const _0x2a7443=_0x58a750;let _0x48b9ee=[];for(let {rowIndex:_0x2271b3,fieldIndex:_0x461cdc,..._0x541aba}of _0x378a6f)_0x48b9ee[_0x2a7443(0x2fe)](_0x541aba);return _0x48b9ee;}export{Z as ApplyBaseJson1Mutation,$a as BASE_FIELD_STAT_TYPES,je as BASE_HIERARCHY_MAX_LEVELS,Me as BASE_HIERARCHY_PARENT_FIELD_ID,Mi as BASE_TABLE_NAME_REQUIREMENTS,ja as BaseConditionalColorRuleUpdateType,Pe as BaseEventSource,ti as BaseFormulaService,P as BaseHierarchyError,Ne as BaseHierarchyErrorCode,V as BaseJson1OpApplier,K as BaseJson1OpFactory,Ei as BatchCreateBaseRecordsCommand,Di as BatchDeleteBaseRecordsCommand,Oi as ChangeBaseFieldTypeCommand,ki as CreateBaseChildRecordCommand,Ai as CreateBaseFieldCommand,ji as CreateBaseRecordCommand,Fi as CreateBaseTableCommand,Xi as CreateBaseViewCommand,Zi as DeleteBaseFieldCommand,Qi as DeleteBaseRecordCommand,$i as DeleteBaseTableCommand,ea as DeleteBaseViewCommand,ta as DuplicateBaseFieldCommand,na as DuplicateBaseRecordCommand,Ba as EMBED_BASES_TABLE_RESOURCE_KEY,ra as EnsureBaseTemporalViewDateFieldsCommand,Y as IBaseCommandService,Yn as IBasePermissionService,dr as IBaseProjectionService,Wo as IBaseViewRegistryService,oa as MoveBaseFieldCommand,sa as MoveBaseHierarchyRecordCommand,da as MoveBaseViewCommand,fa as RenameBaseTableCommand,pa as RenameBaseViewCommand,ma as SetBaseKanbanGroupFieldCommand,ha as SetBaseNameCommand,_a as SetBaseRangeValuesCommand,va as SetBaseRecordValuesCommand,ya as SetBaseTableHierarchyFieldCommand,ba as SetBaseViewFieldOrderCommand,xa as SetBaseViewFieldVisibleCommand,Sa as SetBaseViewFieldWidthCommand,Ca as SetBaseViewFilterCommand,wa as SetBaseViewGroupCommand,Ta as SetBaseViewSortCommand,qo as UniverBasesPlugin,Jo as UniverRemoteBasesPlugin,Ea as UpdateBaseCellCommand,Oa as UpdateBaseFieldCommand,Da as UpdateBaseFieldDescriptionCommand,ka as UpdateBaseKanbanConfigCommand,Aa as UpdateBaseRecordOrderCommand,Ma as UpdateBaseViewConditionalColorRulesCommand,La as UpdateBaseViewConfigCommand,Ra as ValidateBaseFormulaCommand,Jt as baseDateSerialToDateMs,L as buildBaseHierarchyIndex,uo as calculateBaseFieldStat,Ao as copyBaseTableSnapshot,Ie as createBaseHierarchyParentField,za as createDefaultBaseTableSnapshot,Va as createEmbedBasesTable,Ha as createEmbedBasesTableAddMutation,Ua as createEmbedBasesTableRemoveMutation,Pi as createUniqueBaseTableName,H as dateToExcelSerial,z as ensureBaseTableCellLayout,Ae as findRecordLinkReferences,Zt as formatBaseDateValue,fo as formatBaseFieldStatValue,Ka as formatBaseNumberValue,Za as formatBaseProgressValue,Le as getActiveBaseHierarchyFieldIds,ot as getBaseCellFormulaValue,at as getBaseCellValue,tn as getBaseConditionalColorOperators,_0x26c8a4 as getBaseFormulaTableName,Ve as getBaseHierarchyDeletePromotions,Fe as getBaseHierarchyFieldId,N as getRecordLinkFieldConfig,co as getSupportedBaseFieldStatTypes,Ue as getVisibleBaseHierarchyRows,Xa as inferBaseSeparatorStyle,nn as isBaseConditionalColorDateField,po as isBaseFieldStatEmptyValue,lo as isBaseFieldStatSupported,oo as isBaseFieldStatType,F as isBaseHierarchyField,an as matchesBaseCondition,Xt as normalizeBaseDateFieldConfig,qt as normalizeBaseDateSerial,so as normalizeBaseFieldStatsConfig,Te as parseRecordLinkIds,He as projectBaseHierarchy,Yt as resolveBaseDateFieldConfig,I as resolveBaseHierarchyFieldId,ga as resolveBaseRangeHierarchyPatches,Yo as searchBaseTable,Ee as serializeRecordLinkIds,R as traceBasePerformance,Ii as uniqueFieldName,We as validateBaseHierarchyMove,ze as validateBaseHierarchyRecordCreations,Re as validateBaseHierarchyRecordPatches,Ni as validateBaseTableName,De as validateCanonicalRecordLinkValue,Oe as validateRecordLinkField,ke as validateRecordLinkValue};