@univerjs-pro/bases 1.0.0-rc.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x142fa8=_0x3f85;(function(_0x53549f,_0x2298c3){const _0x431e49=_0x3f85,_0xe6f1f8=_0x53549f();while(!![]){try{const _0x566fd2=-parseInt(_0x431e49(0x3c0))/0x1+-parseInt(_0x431e49(0x9e))/0x2+-parseInt(_0x431e49(0x3e4))/0x3*(parseInt(_0x431e49(0x19f))/0x4)+-parseInt(_0x431e49(0x297))/0x5*(-parseInt(_0x431e49(0x2a5))/0x6)+-parseInt(_0x431e49(0xd5))/0x7+-parseInt(_0x431e49(0x1d0))/0x8+parseInt(_0x431e49(0x156))/0x9;if(_0x566fd2===_0x2298c3)break;else _0xe6f1f8['push'](_0xe6f1f8['shift']());}catch(_0x417250){_0xe6f1f8['push'](_0xe6f1f8['shift']());}}}(_0xbe31,0xceeea));import{BASE_RECORD_ID_FIELD_ID as _0x48af21,BaseConditionalColorOperator as _0x5eda1f,BaseConditionalColorTarget as _0x10c8ae,BaseConditionalDateMode as _0x5151f9,BaseDataModel as _0x403b04,BaseFieldType as _0x2348b1,BaseFilterConjunction as _0x5e7358,BaseHierarchyInvalidReason as _0x22b9ef,BaseRecordLinkRole as _0x103858,BaseSortDirection as _0x4c50ec,BaseViewType as _0x22d567,CellValueType as _0x5ad018,ColorKit as _0x54cdd4,CommandType as _0x3ba701,CustomCommandExecutionError as _0x148f06,DateSystem as _0xc6e2ae,DependentOn as _0x3244a1,Disposable as _0x10ccd0,ErrorService as _0x5164e7,ICommandService as _0x3c2684,IConfigService as _0x5e3bb9,IPermissionService as _0x385c73,IResourceManagerService as _0x37fee1,IUndoRedoService as _0x43263b,IUniverInstanceService as _0x44289e,Inject as _0x41ade0,Injector as _0x2be356,JSON1 as _0x5846ca,JSONX as _0x2258c6,ObjectMatrix as _0x4bd20b,ObjectPermissionRuleModel as _0x560341,ObjectPermissionService as _0x421939,Optional as _0x54ab61,PermissionStatus as _0x2392ad,Plugin as _0x49669a,Tools as _0x3e4e1e,UniverInstanceType as _0x5b7c15,allocateBaseFormulaTableName as _0x2e7cd5,assertBaseTableRecordIdentity as _0x281585,createBaseFormulaTableNameMap as _0x41c34,createBaseRecordIdField as _0x1d29e3,createIdentifier as _0x13a3c3,dateKit as _0x2aeeac,excelDateTimeSerial as _0x4ef3c5,excelSerialToDateTime as _0x215493,generateRandomId as _0x1aa742,getBaseFormulaTableName as _0x4bdb4d,isBaseRecordIdFieldName as _0x117705,isValidBaseRecordId as _0xeeedad,merge as _0x5a1217,nameCharacterCheck as _0x551707,numfmt as _0x59e2da,regexp as _0x36a586,sequenceExecute as _0x11015e,toDisposable as _0x2a43b1,touchDependencies as _0xfbf5ef}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x205669,IActiveDirtyManagerService as _0x30ae7b,RemoveSuperTableMutation as _0x4ccdda,SetFormulaCalculationResultMutation as _0x36ab71,SetSuperTableMutation as _0x30d71d,SetTriggerFormulaCalculationStartMutation as _0x1cab84,UniverProFormulaEnginePlugin as _0x182417,refactorFormulaUnitQualifier as _0x499a6d}from'@univerjs-pro/engine-formula';import{UnitAction as _0x2a0fb0,UnitObject as _0x16a23b}from'@univerjs/protocol';import{UniverLicensePlugin as _0x490beb}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x211e68}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x30a9fb,FormulaResultApplicationType as _0x3905d6}from'@univerjs/engine-formula';function N(_0x4be92c){const _0x1750e4=_0x3f85;let _0x1f1446=_0x4be92c[_0x1750e4(0xfa)][_0x1750e4(0x242)],_0x243a33=_0x4be92c[_0x1750e4(0xfa)][_0x1750e4(0x3fc)],_0x332a45=_0x4be92c['config'][_0x1750e4(0x294)],_0x85bb2=_0x4be92c[_0x1750e4(0xfa)]['pickerFieldIds'],_0x42c108=_0x4be92c['config'][_0x1750e4(0x247)];return typeof _0x1f1446!=_0x1750e4(0x3a1)||!_0x1f1446||typeof _0x243a33!='boolean'||_0x332a45!==void 0x0&&(typeof _0x332a45!=_0x1750e4(0x3a1)||!_0x332a45)||_0x42c108!==void 0x0&&_0x42c108!==_0x103858[_0x1750e4(0x100)]||_0x85bb2!==void 0x0&&(!Array[_0x1750e4(0x8f)](_0x85bb2)||_0x85bb2[_0x1750e4(0x3b4)](_0x47e20f=>typeof _0x47e20f!=_0x1750e4(0x3a1)||!_0x47e20f)||new Set(_0x85bb2)[_0x1750e4(0xad)]!==_0x85bb2[_0x1750e4(0x7d)])?null:{'targetTableId':_0x1f1446,'multiple':_0x243a33,..._0x332a45?{'displayFieldId':_0x332a45}:{},..._0x85bb2?{'pickerFieldIds':[..._0x85bb2]}:{},..._0x42c108?{'relationRole':_0x42c108}:{}};}function Le(_0xd9b242){const _0x4ad7e3=_0x3f85;return typeof _0xd9b242!=_0x4ad7e3(0x3a1)||_0xd9b242===''?[]:_0xd9b242[_0x4ad7e3(0x110)](',');}function Re(_0x21fff8){const _0x3732bf=_0x3f85;return Array[_0x3732bf(0x35b)](new Set(_0x21fff8))[_0x3732bf(0x2b0)](',');}function ze(_0x14cf61,_0x6d9adf){const _0x272c3e=_0x3f85;if(typeof _0x14cf61!='string')return{'valid':!0x1,'reason':_0x272c3e(0x264)};if(_0x14cf61==='')return{'valid':!0x0};let _0x30203a=_0x14cf61['split'](',');return!_0x6d9adf&&_0x30203a[_0x272c3e(0x7d)]>0x1?{'valid':!0x1,'reason':_0x272c3e(0x323)}:_0x30203a[_0x272c3e(0x3b4)](_0x55973f=>!_0xeeedad(_0x55973f))||new Set(_0x30203a)[_0x272c3e(0xad)]!==_0x30203a['length']||Re(_0x30203a)!==_0x14cf61?{'valid':!0x1,'reason':_0x272c3e(0x147)}:{'valid':!0x0};}function Be(_0x1ba600,_0x3d9621){const _0x3ae90a=_0x3f85;if(_0x3d9621[_0x3ae90a(0x35c)]!==_0x2348b1[_0x3ae90a(0x382)])return{'valid':!0x0};let _0x2b18bf=N(_0x3d9621),_0x1ec0fa=_0x2b18bf?_0x1ba600[_0x3ae90a(0x3bd)][_0x2b18bf[_0x3ae90a(0x242)]]:void 0x0;if(!_0x2b18bf||!_0x1ec0fa)return{'valid':!0x1,'reason':_0x3ae90a(0x1f7)};let _0x55a84f=[..._0x2b18bf[_0x3ae90a(0x294)]?[_0x2b18bf[_0x3ae90a(0x294)]]:[],..._0x2b18bf[_0x3ae90a(0xc4)]??[]][_0x3ae90a(0x3bb)](_0x4ddef1=>{const _0x259601=_0x3ae90a;let _0x4d340c=_0x1ec0fa[_0x259601(0x37f)][_0x4ddef1];return!_0x4d340c||_0x4d340c[_0x259601(0x231)]===!0x0||_0x4d340c['type']===_0x2348b1['RecordId'];});return _0x55a84f?{'valid':!0x1,'reason':'[RecordLink]:\x20display\x20field\x20\x22'+_0x55a84f+_0x3ae90a(0x27e)}:{'valid':!0x0};}function Ve(_0x2de7dd,_0x2ac821,_0x3f8986,_0x3ec00d={}){const _0x2b65e7=_0x3f85;let _0x3a426d=N(_0x2ac821);if(_0x2ac821[_0x2b65e7(0x35c)]!==_0x2348b1[_0x2b65e7(0x382)]||!_0x3a426d)return{'valid':!0x1,'reason':'[RecordLink]:\x20field\x20config\x20is\x20invalid.'};let _0x4abe7e=ze(_0x3f8986,_0x3a426d[_0x2b65e7(0x3fc)]);if(!_0x4abe7e[_0x2b65e7(0x266)]||_0x3ec00d[_0x2b65e7(0x258)])return _0x4abe7e;let _0x1cfdc9=_0x2de7dd[_0x2b65e7(0x3bd)][_0x3a426d[_0x2b65e7(0x242)]];if(!_0x1cfdc9)return{'valid':!0x1,'reason':_0x2b65e7(0x1f7)};let _0x55f761=Le(_0x3f8986)[_0x2b65e7(0x3bb)](_0x1681b3=>!_0x1cfdc9[_0x2b65e7(0x309)][_0x1681b3]);return _0x55f761?{'valid':!0x1,'reason':_0x2b65e7(0x350)+_0x55f761+_0x2b65e7(0x189)}:{'valid':!0x0};}function He(_0x655e3d,_0x178315){const _0x5e656b=_0x3f85;return Object['values'](_0x655e3d['tables'])[_0x5e656b(0x167)](_0x25c65c=>Object[_0x5e656b(0x307)](_0x25c65c[_0x5e656b(0x37f)])['flatMap'](_0x5c74e0=>{const _0x5899f8=_0x5e656b;let _0x487809=_0x5c74e0[_0x5899f8(0x35c)]===_0x2348b1[_0x5899f8(0x382)]?N(_0x5c74e0):null;return(_0x487809==null?void 0x0:_0x487809[_0x5899f8(0x242)])===_0x178315?[{'tableId':_0x25c65c['id'],'fieldId':_0x5c74e0['id']}]:[];}));}const Ue=0x5,We=_0x142fa8(0x3ab);let Ge=function(_0x139d04){const _0x559087=_0x142fa8;return _0x139d04[_0x559087(0x141)]=_0x559087(0x371),_0x139d04[_0x559087(0x1a2)]=_0x559087(0x14a),_0x139d04[_0x559087(0x3f1)]='selfParent',_0x139d04[_0x559087(0x13a)]=_0x559087(0x3cb),_0x139d04['MaxDepth']=_0x559087(0x39c),_0x139d04[_0x559087(0x281)]=_0x559087(0x2b9),_0x139d04;}({});var P=class extends Error{constructor(_0x20d34d,_0x1e87ee=_0x142fa8(0x3f9)+_0x20d34d){const _0x4a380f=_0x142fa8;super(_0x1e87ee),this['code']=_0x20d34d,this['name']=_0x4a380f(0x3a6);}};let Ke=function(_0x30651f){const _0x475dc6=_0x142fa8;return _0x30651f['UI']='ui',_0x30651f['Facade']='facade',_0x30651f[_0x475dc6(0x389)]=_0x475dc6(0x184),_0x30651f['Undo']='undo',_0x30651f[_0x475dc6(0x3ce)]=_0x475dc6(0xcc),_0x30651f[_0x475dc6(0x132)]='import',_0x30651f;}({});function F(_0x3636d4,_0x5c1785){const _0xe9b456=_0x142fa8;if(!_0x5c1785)return!0x1;let _0x5262b1=_0x3636d4[_0xe9b456(0x37f)][_0x5c1785];if(!_0x5262b1||_0x5262b1['type']!==_0x2348b1[_0xe9b456(0x382)])return!0x1;let _0x49b465=N(_0x5262b1);return _0x49b465?_0x49b465[_0xe9b456(0x242)]===_0x3636d4['id']&&_0x49b465[_0xe9b456(0x3fc)]===!0x1:!0x1;}function qe(_0x53c0f3){const _0x149c81=_0x142fa8;return[..._0x53c0f3['fieldOrder'],...Object['keys'](_0x53c0f3[_0x149c81(0x37f)])[_0x149c81(0x13c)](_0x3739e5=>!_0x53c0f3[_0x149c81(0x143)][_0x149c81(0x8b)](_0x3739e5))[_0x149c81(0x34b)]()]['find'](_0x1ae61f=>{const _0x545e84=_0x149c81;var _0x831ee1;return F(_0x53c0f3,_0x1ae61f)?((_0x831ee1=N(_0x53c0f3[_0x545e84(0x37f)][_0x1ae61f]))==null?void 0x0:_0x831ee1['relationRole'])===_0x103858[_0x545e84(0x100)]:!0x1;})??null;}function Je(_0x2ecb43){const _0x1df964=_0x142fa8;let _0x249609=qe(_0x2ecb43);if(_0x249609)return _0x249609;let _0x3f82d7=We,_0x5e9e62=0x2;for(;_0x2ecb43[_0x1df964(0x37f)][_0x3f82d7];)_0x3f82d7=We+'_'+_0x5e9e62++;return _0x3f82d7;}function Ye(_0x4ba8ac,_0x52a295=Je(_0x4ba8ac),_0x3b7e24='Parent\x20Items'){const _0x32ad0b=_0x142fa8;return{'id':_0x52a295,'name':_0x3b7e24,'type':_0x2348b1[_0x32ad0b(0x382)],'config':{'targetTableId':_0x4ba8ac['id'],'multiple':!0x1,'displayFieldId':_0x4ba8ac[_0x32ad0b(0x195)],'pickerFieldIds':[_0x4ba8ac[_0x32ad0b(0x195)]],'relationRole':_0x103858[_0x32ad0b(0x100)]}};}function Xe(_0x41f419){let _0x4a1ac2=qe(_0x41f419);return _0x4a1ac2?[_0x4a1ac2]:[];}function Ze(_0xa5b463,_0x259ace){const _0x15f121=_0x142fa8;let _0x55eb49=[...Xe(_0xa5b463)][_0x15f121(0x13c)](_0x575bb3=>_0x259ace[_0x15f121(0x3b4)](_0x291580=>Object['prototype'][_0x15f121(0x26e)][_0x15f121(0x3e6)](_0x291580[_0x15f121(0x307)],_0x575bb3)));if(!_0x55eb49[_0x15f121(0x7d)])return[];let _0x30acc3={..._0xa5b463[_0x15f121(0x309)]};_0x259ace[_0x15f121(0x2e7)](_0x62fe5f=>{const _0x90e722=_0x15f121;let _0x33193f=_0x30acc3[_0x62fe5f[_0x90e722(0x1ee)]];_0x33193f&&(_0x30acc3[_0x62fe5f[_0x90e722(0x1ee)]]={..._0x33193f,'values':{..._0x33193f['values'],..._0x62fe5f[_0x90e722(0x307)]}});});let _0x47f55c={..._0xa5b463,'records':_0x30acc3},_0x50af71=[];return _0x55eb49[_0x15f121(0x2e7)](_0x3653b8=>{const _0x1db6c3=_0x15f121;let _0x2a7cab=tt(_0xa5b463,_0x3653b8),_0xc2afa5=tt(_0x47f55c,_0x3653b8);for(let [_0x2306a0,_0x5ea17a]of _0xc2afa5[_0x1db6c3(0x104)]){let _0x54376d=_0x259ace['some'](_0x1e9168=>_0x1e9168[_0x1db6c3(0x1ee)]===_0x2306a0&&Object[_0x1db6c3(0x18b)]['hasOwnProperty']['call'](_0x1e9168[_0x1db6c3(0x307)],_0x3653b8));if(_0x2a7cab[_0x1db6c3(0x104)]['get'](_0x2306a0)!==_0x5ea17a||_0x54376d)throw new P($e(_0x5ea17a));}_0x259ace['forEach'](_0x5586fd=>{const _0x1fc164=_0x1db6c3;if(!Object[_0x1fc164(0x18b)][_0x1fc164(0x26e)][_0x1fc164(0x3e6)](_0x5586fd[_0x1fc164(0x307)],_0x3653b8))return;let _0x5143e2=_0x2a7cab[_0x1fc164(0x22a)]['get'](_0x5586fd[_0x1fc164(0x1ee)])??null,_0x436f0b=_0xc2afa5[_0x1fc164(0x22a)]['get'](_0x5586fd['recordId'])??null;_0x5143e2!==_0x436f0b&&_0x50af71[_0x1fc164(0x319)]({'tableId':_0xa5b463['id'],'fieldId':_0x3653b8,'recordId':_0x5586fd['recordId'],'oldParentRecordId':_0x5143e2,'parentRecordId':_0x436f0b});});}),_0x50af71;}function Qe(_0x388092,_0x8ac279){const _0x28b184=_0x142fa8;let _0x226e35=_0x8ac279[_0x28b184(0x1bc)](_0x5c8c5a=>_0x5c8c5a['id']);if(new Set(_0x226e35)[_0x28b184(0xad)]!==_0x226e35['length']||_0x226e35['some'](_0x453a51=>_0x388092['records'][_0x453a51]))return[];let _0x2ae1e3=Xe(_0x388092),_0x2388a0=_0x2ae1e3[_0x28b184(0x7d)]?null:Je(_0x388092),_0x37d2fb=[..._0x2ae1e3,..._0x2388a0&&_0x8ac279[_0x28b184(0x3b4)](_0x540fd0=>Object[_0x28b184(0x18b)]['hasOwnProperty'][_0x28b184(0x3e6)](_0x540fd0[_0x28b184(0x307)],_0x2388a0))?[_0x2388a0]:[]][_0x28b184(0x13c)](_0x12f203=>_0x8ac279[_0x28b184(0x3b4)](_0x64c0ef=>Object[_0x28b184(0x18b)]['hasOwnProperty'][_0x28b184(0x3e6)](_0x64c0ef[_0x28b184(0x307)],_0x12f203)));if(!_0x37d2fb['length'])return[];let _0x275c9f={..._0x388092,'records':{..._0x388092[_0x28b184(0x309)],...Object[_0x28b184(0xb5)](_0x8ac279[_0x28b184(0x1bc)](_0x24410a=>[_0x24410a['id'],_0x24410a]))},'recordOrder':[..._0x388092['recordOrder']??[],..._0x8ac279[_0x28b184(0x1bc)](_0x580723=>_0x580723['id'])]},_0x2c6fcb=[];return _0x37d2fb[_0x28b184(0x2e7)](_0xcabd46=>{const _0x5dde51=_0x28b184;let _0x55ff4d=tt(_0x275c9f,_0xcabd46);_0x8ac279[_0x5dde51(0x2e7)](_0x20ebcb=>{const _0x29ff2b=_0x5dde51;let _0x14ee4a=_0x55ff4d[_0x29ff2b(0x104)][_0x29ff2b(0x12f)](_0x20ebcb['id']);if(_0x14ee4a)throw new P($e(_0x14ee4a));let _0xf71465=_0x55ff4d[_0x29ff2b(0x22a)][_0x29ff2b(0x12f)](_0x20ebcb['id'])??null;_0xf71465&&_0x2c6fcb[_0x29ff2b(0x319)]({'tableId':_0x388092['id'],'fieldId':_0xcabd46,'recordId':_0x20ebcb['id'],'oldParentRecordId':null,'parentRecordId':_0xf71465});});}),_0x2c6fcb;}function $e(_0x20d20d){const _0x3f66cb=_0x142fa8;switch(_0x20d20d){case _0x22b9ef[_0x3f66cb(0x351)]:return _0x3f66cb(0x14a);case _0x22b9ef[_0x3f66cb(0x3f1)]:return'selfParent';case _0x22b9ef['Cycle']:return _0x3f66cb(0x3cb);case _0x22b9ef['MaxDepth']:return'maxDepth';}}function et(_0xfa8359,_0xea065f){const _0x36ec96=_0x142fa8;let _0x3b50cd=new Set(_0xea065f),_0x2f0960=Xe(_0xfa8359);return Object[_0x36ec96(0x307)](_0xfa8359['records'])[_0x36ec96(0x167)](_0x76e950=>_0x3b50cd[_0x36ec96(0x8e)](_0x76e950['id'])?[]:Array[_0x36ec96(0x35b)](_0x2f0960)[_0x36ec96(0x167)](_0x2c6ce9=>{const _0xf8c221=_0x36ec96;let _0x3de2dc=Le(_0x76e950[_0xf8c221(0x307)][_0x2c6ce9])[0x0]??null;return _0x3de2dc&&_0x3b50cd[_0xf8c221(0x8e)](_0x3de2dc)?[{'tableId':_0xfa8359['id'],'fieldId':_0x2c6ce9,'recordId':_0x76e950['id'],'oldParentRecordId':_0x3de2dc,'parentRecordId':null}]:[];}));}function tt(_0x171a98,_0x2d3338,_0x346e70=_0x171a98[_0x142fa8(0x18c)]??Object['keys'](_0x171a98[_0x142fa8(0x309)])){const _0x28b1c4=_0x142fa8;if(!(!_0x171a98[_0x28b1c4(0x37f)][_0x2d3338]&&_0x2d3338===Je(_0x171a98))&&!F(_0x171a98,_0x2d3338))throw Error(_0x28b1c4(0x394)+_0x2d3338+_0x28b1c4(0xf4));let _0x2eb5ee=at(_0x171a98,_0x346e70),_0x233883=new Map(),_0xafbbce=new Map();for(let _0x2f0768 of _0x2eb5ee){var _0x40bd08;let _0x3c15d4=Le((_0x40bd08=_0x171a98['records'][_0x2f0768])==null?void 0x0:_0x40bd08['values'][_0x2d3338])[0x0]??null;_0x3c15d4?_0x3c15d4===_0x2f0768?(_0x233883[_0x28b1c4(0x23a)](_0x2f0768,null),_0xafbbce[_0x28b1c4(0x23a)](_0x2f0768,_0x22b9ef[_0x28b1c4(0x3f1)])):_0x171a98[_0x28b1c4(0x309)][_0x3c15d4]?_0x233883[_0x28b1c4(0x23a)](_0x2f0768,_0x3c15d4):(_0x233883['set'](_0x2f0768,null),_0xafbbce['set'](_0x2f0768,_0x22b9ef[_0x28b1c4(0x351)])):_0x233883[_0x28b1c4(0x23a)](_0x2f0768,null);}ot(_0x233883,_0xafbbce,_0x2eb5ee),st(_0x233883,_0xafbbce,_0x2eb5ee);let _0x2ffe9d=new Map(_0x2eb5ee['map']((_0x3e889f,_0xcff212)=>[_0x3e889f,_0xcff212])),_0x586411=new Map();for(let _0x948389 of _0x2eb5ee){let _0x5b2ac1=_0x233883['get'](_0x948389)??null,_0x29e030=_0x586411[_0x28b1c4(0x12f)](_0x5b2ac1)??[];_0x29e030[_0x28b1c4(0x319)](_0x948389),_0x586411[_0x28b1c4(0x23a)](_0x5b2ac1,_0x29e030);}_0x586411[_0x28b1c4(0x2e7)](_0x258076=>_0x258076[_0x28b1c4(0x34b)]((_0x49db3a,_0x1a5794)=>(_0x2ffe9d[_0x28b1c4(0x12f)](_0x49db3a)??0x0)-(_0x2ffe9d[_0x28b1c4(0x12f)](_0x1a5794)??0x0)));let _0x4db733=_0x586411[_0x28b1c4(0x12f)](null)??[],_0x1591ea=new Map(),_0x12b1fb=new Map(),_0x17b82a=[],_0x43a95e=(_0x2aac06,_0xad4a84)=>{const _0x2faa94=_0x28b1c4;_0x1591ea['set'](_0x2aac06,_0xad4a84),_0x17b82a[_0x2faa94(0x319)](_0x2aac06);let _0x327586=0x0;for(let _0x57db8b of _0x586411[_0x2faa94(0x12f)](_0x2aac06)??[])_0x327586=Math[_0x2faa94(0x41f)](_0x327586,0x1+_0x43a95e(_0x57db8b,_0xad4a84+0x1));return _0x12b1fb[_0x2faa94(0x23a)](_0x2aac06,_0x327586),_0x327586;};return _0x4db733[_0x28b1c4(0x2e7)](_0x3d2ab4=>_0x43a95e(_0x3d2ab4,0x0)),{'fieldId':_0x2d3338,'parentByRecordId':_0x233883,'childrenByParentId':_0x586411,'depthByRecordId':_0x1591ea,'subtreeHeightByRecordId':_0x12b1fb,'invalidReasonByRecordId':_0xafbbce,'rootRecordIds':_0x4db733,'orderedRecordIds':_0x17b82a};}function nt(_0xa70ee9,_0x27eb31,_0x5e7729=new Set(_0x27eb31[_0x142fa8(0x1bc)](_0xcc88d8=>_0xcc88d8[_0x142fa8(0x1ee)]))){const _0x5e6ab8=_0x142fa8;let _0x1d05f9=new Set(_0x5e7729);for(let _0x5790d3 of _0x5e7729){let _0x2c7a8d=_0xa70ee9[_0x5e6ab8(0x22a)][_0x5e6ab8(0x12f)](_0x5790d3)??null;for(;_0x2c7a8d;)_0x1d05f9[_0x5e6ab8(0x28d)](_0x2c7a8d),_0x2c7a8d=_0xa70ee9[_0x5e6ab8(0x22a)]['get'](_0x2c7a8d)??null;}let _0x34ce64=new Map(_0x27eb31[_0x5e6ab8(0x1bc)](_0x5a9caf=>[_0x5a9caf[_0x5e6ab8(0x1ee)],_0x5a9caf])),_0x41e811=_0xa70ee9['orderedRecordIds']['filter'](_0x2f502a=>_0x1d05f9[_0x5e6ab8(0x8e)](_0x2f502a)),_0x4965bd=_0x41e811['flatMap'](_0x555d67=>{let _0x5dec1e=_0x34ce64['get'](_0x555d67);return _0x5dec1e?[_0x5dec1e]:[];}),_0x379851={};for(let _0x53b4ef=0x0;_0x53b4ef<_0x41e811[_0x5e6ab8(0x7d)];_0x53b4ef++){let _0x530978=_0x41e811[_0x53b4ef];_0x379851[_0x530978]={'recordId':_0x530978,'parentRecordId':_0xa70ee9[_0x5e6ab8(0x22a)][_0x5e6ab8(0x12f)](_0x530978)??null,'depth':_0xa70ee9[_0x5e6ab8(0x88)]['get'](_0x530978)??0x0,'directChildCount':(_0xa70ee9[_0x5e6ab8(0x273)][_0x5e6ab8(0x12f)](_0x530978)??[])[_0x5e6ab8(0x7d)],'subtreeHeight':_0xa70ee9[_0x5e6ab8(0x3dd)]['get'](_0x530978)??0x0,'subtreeEndIndex':_0x53b4ef,'invalidReason':_0xa70ee9[_0x5e6ab8(0x104)][_0x5e6ab8(0x12f)](_0x530978)};}let _0x5ed4f9=[];for(let _0x311fc3=0x0;_0x311fc3<_0x41e811[_0x5e6ab8(0x7d)];_0x311fc3++){let _0x5e477c=_0x41e811[_0x311fc3],_0x2fc242=_0x379851[_0x5e477c][_0x5e6ab8(0x2d1)];for(;_0x5ed4f9[_0x5e6ab8(0x7d)]&&_0x5ed4f9[_0x5ed4f9['length']-0x1][_0x5e6ab8(0x2d1)]>=_0x2fc242;){let _0x573e47=_0x5ed4f9[_0x5e6ab8(0x198)]();_0x379851[_0x573e47[_0x5e6ab8(0x1ee)]][_0x5e6ab8(0xcd)]=_0x311fc3-0x1;}_0x5ed4f9[_0x5e6ab8(0x319)]({'recordId':_0x5e477c,'depth':_0x2fc242});}return _0x5ed4f9[_0x5e6ab8(0x2e7)](({recordId:_0x3f2a88})=>{const _0x51c837=_0x5e6ab8;_0x379851[_0x3f2a88][_0x51c837(0xcd)]=_0x41e811[_0x51c837(0x7d)]-0x1;}),{'rows':_0x4965bd,'hierarchy':{'fieldId':_0xa70ee9[_0x5e6ab8(0x3c1)],'rootRecordIds':_0xa70ee9['rootRecordIds']['filter'](_0xec7c91=>_0x1d05f9[_0x5e6ab8(0x8e)](_0xec7c91)),'orderedRecordIds':_0x41e811,'nodes':_0x379851}};}function rt(_0x18a458,_0x60bef1){const _0x29ea00=_0x142fa8;if(!_0x18a458['hierarchy']||!(_0x60bef1!=null&&_0x60bef1[_0x29ea00(0xad)]))return _0x18a458[_0x29ea00(0x308)];let _0x925ede=[],_0x6189fc=0x0;for(;_0x6189fc<_0x18a458[_0x29ea00(0x308)][_0x29ea00(0x7d)];){let _0x20d4fd=_0x18a458[_0x29ea00(0x308)][_0x6189fc];_0x925ede[_0x29ea00(0x319)](_0x20d4fd);let _0x312b39=_0x18a458[_0x29ea00(0x36b)][_0x29ea00(0x197)][_0x20d4fd['recordId']];_0x6189fc=_0x60bef1[_0x29ea00(0x8e)](_0x20d4fd['recordId'])&&_0x312b39?_0x312b39[_0x29ea00(0xcd)]+0x1:_0x6189fc+0x1;}return _0x925ede;}function it(_0x3de30a,_0x1039a6,_0x3972da){const _0x1551e7=_0x142fa8;if(!_0x3972da)return{'valid':!0x0};if(_0x1039a6===_0x3972da)return{'valid':!0x1,'reason':_0x22b9ef[_0x1551e7(0x3f1)]};let _0x3df014=_0x3972da;for(;_0x3df014;){if(_0x3df014===_0x1039a6)return{'valid':!0x1,'reason':_0x22b9ef[_0x1551e7(0x13a)]};_0x3df014=_0x3de30a['parentByRecordId'][_0x1551e7(0x12f)](_0x3df014)??null;}return(_0x3de30a[_0x1551e7(0x88)]['get'](_0x3972da)??0x0)+0x1+(_0x3de30a['subtreeHeightByRecordId'][_0x1551e7(0x12f)](_0x1039a6)??0x0)>=0x5?{'valid':!0x1,'reason':_0x22b9ef[_0x1551e7(0x367)]}:{'valid':!0x0};}function at(_0x1543e6,_0x990491){const _0x3c24a9=_0x142fa8;let _0x4e2e21=new Set(),_0x18c008=[];for(let _0xceb2b4 of _0x990491)_0x1543e6[_0x3c24a9(0x309)][_0xceb2b4]&&!_0x4e2e21[_0x3c24a9(0x8e)](_0xceb2b4)&&(_0x4e2e21[_0x3c24a9(0x28d)](_0xceb2b4),_0x18c008['push'](_0xceb2b4));return Object['keys'](_0x1543e6[_0x3c24a9(0x309)])[_0x3c24a9(0x34b)]()['forEach'](_0x10381f=>{_0x4e2e21['has'](_0x10381f)||_0x18c008['push'](_0x10381f);}),_0x18c008;}function ot(_0x3be2fa,_0x256939,_0x32f80d){const _0x502492=_0x142fa8;let _0x516820=new Set();for(let _0x4210e9 of _0x32f80d){if(_0x516820[_0x502492(0x8e)](_0x4210e9))continue;let _0x5a6dab=[],_0x29f3b6=new Map(),_0x20e851=_0x4210e9;for(;_0x20e851&&!_0x516820['has'](_0x20e851);){let _0x265bf0=_0x29f3b6[_0x502492(0x12f)](_0x20e851);if(_0x265bf0!=null){let _0x518adb=[..._0x5a6dab[_0x502492(0x3e0)](_0x265bf0)][_0x502492(0x34b)]()[_0x502492(0x198)]();_0x3be2fa[_0x502492(0x23a)](_0x518adb,null),_0x256939[_0x502492(0x23a)](_0x518adb,_0x22b9ef[_0x502492(0x13a)]);break;}_0x29f3b6[_0x502492(0x23a)](_0x20e851,_0x5a6dab[_0x502492(0x7d)]),_0x5a6dab[_0x502492(0x319)](_0x20e851),_0x20e851=_0x3be2fa[_0x502492(0x12f)](_0x20e851)??null;}_0x5a6dab[_0x502492(0x2e7)](_0x25ea59=>_0x516820['add'](_0x25ea59));}}function st(_0x5b4784,_0x46b1d4,_0x445014){const _0x4d9d5b=_0x142fa8;let _0x408254=new Map(),_0x528300=_0x7d9e53=>{const _0x2f4e61=_0x3f85;let _0x524320=_0x408254['get'](_0x7d9e53);if(_0x524320!=null)return _0x524320;let _0x4420c2=_0x5b4784[_0x2f4e61(0x12f)](_0x7d9e53)??null;if(!_0x4420c2)return _0x408254[_0x2f4e61(0x23a)](_0x7d9e53,0x0),0x0;let _0x1ac6a5=_0x528300(_0x4420c2)+0x1;return _0x1ac6a5>=0x5?(_0x5b4784[_0x2f4e61(0x23a)](_0x7d9e53,null),_0x46b1d4['set'](_0x7d9e53,_0x22b9ef[_0x2f4e61(0x367)]),_0x408254['set'](_0x7d9e53,0x0),0x0):(_0x408254[_0x2f4e61(0x23a)](_0x7d9e53,_0x1ac6a5),_0x1ac6a5);};_0x445014[_0x4d9d5b(0x2e7)](_0x528300);}let ct=0x0;function lt(){const _0x1f3bd9=_0x142fa8;if(globalThis['__UNIVER_BASE_PERF__']===!0x0)return!0x0;try{let _0x3eee6b=typeof location>'u'?'':location[_0x1f3bd9(0x37d)],_0x5a575c=new URLSearchParams(_0x3eee6b);if(_0x5a575c[_0x1f3bd9(0x12f)](_0x1f3bd9(0x2dc))==='1'||_0x5a575c[_0x1f3bd9(0x12f)](_0x1f3bd9(0x2dc))===_0x1f3bd9(0x403)||_0x5a575c['get'](_0x1f3bd9(0x17d))==='1')return!0x0;}catch{}try{let _0x31a51a=typeof localStorage>'u'?null:localStorage[_0x1f3bd9(0x124)]('univer.basePerf');return _0x31a51a==='1'||_0x31a51a===_0x1f3bd9(0x403);}catch{return!0x1;}}function I(_0x4776f,_0x59cda0,_0x5905dc){const _0x203d60=_0x142fa8;if(!lt())return _0x59cda0();let _0x3bbd9f=dt(),_0x555f31=_0x203d60(0x347)+ct++;ft(_0x555f31+_0x203d60(0xdb));try{return _0x59cda0();}finally{let _0x4dea2c=dt()-_0x3bbd9f;ft(_0x555f31+':end'),pt(_0x4776f,_0x555f31+':start',_0x555f31+_0x203d60(0x3db)),ut(_0x4776f,_0x4dea2c,_0x5905dc);}}function ut(_0x5791ad,_0x44ec67,_0x4a5baf){const _0x18be40=_0x142fa8;if(!lt())return;let _0x5444d8=Math[_0x18be40(0x2f3)](_0x44ec67*0x64)/0x64,_0x275d16=_0x4a5baf&&Object[_0x18be40(0xd3)](_0x4a5baf)['length']?'\x20'+JSON['stringify'](_0x4a5baf):'';console[_0x18be40(0x194)](_0x18be40(0x432)+_0x5791ad+':\x20'+_0x5444d8+'ms'+_0x275d16);}function dt(){const _0x3e7afd=_0x142fa8;return typeof performance<'u'&&typeof performance[_0x3e7afd(0x3b2)]==_0x3e7afd(0xaf)?performance['now']():Date['now']();}function ft(_0x4ec866){const _0x538312=_0x142fa8;try{if(typeof performance<'u'){var _0x550fdc,_0x5ddb10;(_0x550fdc=(_0x5ddb10=performance)[_0x538312(0x357)])==null||_0x550fdc['call'](_0x5ddb10,_0x4ec866);}}catch{}}function pt(_0x4ef3c4,_0x10602d,_0x19be76){const _0xf3d2b5=_0x142fa8;try{if(typeof performance<'u'){var _0xedd524,_0x170091;(_0xedd524=(_0x170091=performance)[_0xf3d2b5(0x1fe)])==null||_0xedd524['call'](_0x170091,_0xf3d2b5(0x432)+_0x4ef3c4,_0x10602d,_0x19be76);}}catch{}}function L(_0x1e6deb){const _0x5ebab9=_0x142fa8;var _0x36d5e7;return lt()?I('IBaseCellData.ensureTableCellLayout',()=>mt(_0x1e6deb),{'tableId':_0x1e6deb['id'],'records':Object[_0x5ebab9(0xd3)](_0x1e6deb[_0x5ebab9(0x309)]??{})[_0x5ebab9(0x7d)],'fields':_0x1e6deb[_0x5ebab9(0x143)][_0x5ebab9(0x7d)],'hasRecordOrder':!!((_0x36d5e7=_0x1e6deb[_0x5ebab9(0x18c)])!=null&&_0x36d5e7[_0x5ebab9(0x7d)])}):mt(_0x1e6deb);}function mt(_0x362498){const _0x2e2e51=_0x142fa8;var _0x451eb7;let _0x5f1154=_0x362498[_0x2e2e51(0x309)]??{},_0x338360=_0x362498[_0x2e2e51(0x37f)]??{},_0xc9119a=((_0x451eb7=_0x362498[_0x2e2e51(0x18c)])==null?void 0x0:_0x451eb7[_0x2e2e51(0x13c)](_0x230cfb=>_0x5f1154[_0x230cfb]))??[],_0x5c59bb=new Set(_0xc9119a),_0x512eba=[];for(let _0x3b3db8 of Object['values'](_0x5f1154))_0x5c59bb[_0x2e2e51(0x8e)](_0x3b3db8['id'])||_0x512eba[_0x2e2e51(0x319)](_0x3b3db8);let _0x1600a4=_0x512eba[_0x2e2e51(0x7d)]?[..._0xc9119a,...Rt(_0x512eba)]:_0xc9119a,_0x326494=_0x362498['fieldOrder'][_0x2e2e51(0x13c)](_0x1a51fe=>_0x338360[_0x1a51fe]),_0x2a4129={..._0x362498[_0x2e2e51(0x3f0)]??{}},_0x1af16b={..._0x362498[_0x2e2e51(0xf8)]??{}},_0x3ac7eb={..._0x362498[_0x2e2e51(0x3b1)]??{}};_0x362498[_0x2e2e51(0x18c)]=_0x1600a4,_0x362498['rowIndex']={},_0x362498[_0x2e2e51(0x3f0)]={},_0x362498['colIndex']={},_0x362498[_0x2e2e51(0xf8)]={},_0x362498[_0x2e2e51(0x3b1)]={},_0x362498['resources']={..._0x362498['resources']??{}},_0x362498[_0x2e2e51(0x1d4)][_0x2e2e51(0x2ff)]={..._0x362498[_0x2e2e51(0x1d4)]['attachmentSets']??{}},_0x362498[_0x2e2e51(0x1d4)][_0x2e2e51(0x13d)]={..._0x362498['resources'][_0x2e2e51(0x13d)]??{}};let _0x258b95=_0x362498[_0x2e2e51(0x276)],_0x418531=_0x362498['rowId'],_0x29d330=_0x362498[_0x2e2e51(0x425)],_0x182704=_0x362498[_0x2e2e51(0xf8)],_0x3b807d=_0x362498['cellData'];return _0x1600a4['forEach']((_0xc7d72c,_0x2f5b3e)=>{_0x258b95[_0xc7d72c]=_0x2f5b3e,_0x418531[_0x2f5b3e]=_0xc7d72c;}),_0x326494[_0x2e2e51(0x2e7)]((_0x458bce,_0x235be0)=>{_0x29d330[_0x458bce]=_0x235be0,_0x182704[_0x235be0]=_0x458bce;}),Object[_0x2e2e51(0x274)](_0x3ac7eb)[_0x2e2e51(0x2e7)](([_0x2ac186,_0x1fa65c])=>{const _0xa18f22=_0x2e2e51;let _0x5facbe=Number(_0x2ac186),_0x287894=_0x2a4129[_0x5facbe]??_0x1600a4[_0x5facbe],_0x193259=_0x287894?_0x258b95[_0x287894]:void 0x0;_0x193259!=null&&(_0x3b807d[_0x193259]={..._0x3b807d[_0x193259]??{}},Object[_0xa18f22(0x274)](_0x1fa65c??{})[_0xa18f22(0x2e7)](([_0x408afe,_0x96e995])=>{let _0x66f243=Number(_0x408afe),_0x19aa6b=_0x1af16b[_0x66f243]??_0x326494[_0x66f243],_0x4e05ac=_0x19aa6b?_0x29d330[_0x19aa6b]:void 0x0;_0x4e05ac!=null&&(_0x3b807d[_0x193259][_0x4e05ac]=St(_0x96e995));}));}),Object['values'](_0x5f1154)[_0x2e2e51(0x2e7)](_0x3724fb=>{const _0x41adec=_0x2e2e51;let _0x2b8054=_0x258b95[_0x3724fb['id']];_0x2b8054!=null&&(_0x3724fb[_0x41adec(0x307)]={..._0x3724fb['values']??{},[_0x48af21]:_0x3724fb['id']},_0x3b807d[_0x2b8054]={..._0x3b807d[_0x2b8054]??{},0x0:{'v':_0x3724fb['id'],'t':_0x5ad018['STRING']}},Object[_0x41adec(0x274)](_0x3724fb[_0x41adec(0x307)]??{})[_0x41adec(0x2e7)](([_0x2075f8,_0x206234])=>{const _0x58225c=_0x41adec;let _0x559404=_0x338360[_0x2075f8];(_0x559404==null?void 0x0:_0x559404[_0x58225c(0x35c)])===_0x2348b1['Attachment']&&Dt(_0x362498,_0x3724fb['id'],_0x2075f8,_0x206234);let _0x2568c1=_0x29d330[_0x2075f8];if(_0x2568c1==null)return;let _0x3ea59c=_0x3b807d[_0x2b8054][_0x2568c1];if(_0x3ea59c!=null){jt(_0x3ea59c,_0x559404,_0x206234)&&(_0x3b807d[_0x2b8054][_0x2568c1]=xt(_0x206234,_0x559404));return;}_0x3b807d[_0x2b8054][_0x2568c1]=xt(_0x206234,_0x559404);}));}),_0x362498;}function ht(_0xd558b9,_0x23281d){const _0x3cbc92=_0x142fa8;return _0xd558b9['records']=Object['fromEntries'](Object[_0x3cbc92(0x274)](_0xd558b9[_0x3cbc92(0x309)])[_0x3cbc92(0x1bc)](([_0x4fdaaa,_0x2cd8d4])=>[_0x4fdaaa,{..._0x2cd8d4}])),L(_0xd558b9),Object[_0x3cbc92(0x274)](_0xd558b9['rowId']??{})['forEach'](([_0x4b68ec,_0x402386])=>{const _0x2cc2b6=_0x3cbc92;var _0x5018a6;let _0x28b360=Number(_0x4b68ec),_0x4ed49c=_0xd558b9[_0x2cc2b6(0x309)][_0x402386];_0x4ed49c&&(_0x4ed49c[_0x2cc2b6(0x307)]={..._0x4ed49c[_0x2cc2b6(0x307)]??{}},Object['entries'](((_0x5018a6=_0xd558b9[_0x2cc2b6(0x3b1)])==null?void 0x0:_0x5018a6[_0x28b360])??{})[_0x2cc2b6(0x2e7)](([_0x5b1c2f,_0xef4550])=>{const _0x468222=_0x2cc2b6;var _0xc4372a;let _0x3eca17=(_0xc4372a=_0xd558b9[_0x468222(0xf8)])==null?void 0x0:_0xc4372a[Number(_0x5b1c2f)];_0x3eca17&&_0x23281d&&!_0x23281d(_0x402386,_0x3eca17)||(_0x3eca17===_0x48af21?_0x4ed49c['values'][_0x48af21]=_0x4ed49c['id']:_0x3eca17&&(_0x4ed49c[_0x468222(0x307)][_0x3eca17]=Ct(_0xef4550,_0xd558b9[_0x468222(0x37f)][_0x3eca17],_0xd558b9,_0x402386)));}));}),_0xd558b9;}function gt(_0x4b9ed8,_0x45d3ca){const _0x1136c9=_0x142fa8;for(let {row:_0x5f12ca,col:_0xb7b5f2}of _0x45d3ca){var _0x67fac,_0x3dac50,_0x288bf0;let _0x571947=(_0x67fac=_0x4b9ed8[_0x1136c9(0x3f0)])==null?void 0x0:_0x67fac[_0x5f12ca],_0x120c09=(_0x3dac50=_0x4b9ed8['colId'])==null?void 0x0:_0x3dac50[_0xb7b5f2],_0x4529e7=_0x571947?_0x4b9ed8[_0x1136c9(0x309)][_0x571947]:void 0x0;if(!_0x4529e7||!_0x120c09)continue;if(_0x120c09===_0x48af21){_0x4529e7[_0x1136c9(0x307)][_0x48af21]=_0x4529e7['id'];continue;}let _0x13f9b8=(_0x288bf0=_0x4b9ed8[_0x1136c9(0x3b1)])==null||(_0x288bf0=_0x288bf0[_0x5f12ca])==null?void 0x0:_0x288bf0[_0xb7b5f2];_0x13f9b8==null&&!Object[_0x1136c9(0x18b)][_0x1136c9(0x26e)][_0x1136c9(0x3e6)](_0x4529e7['values']??{},_0x120c09)||(_0x4529e7[_0x1136c9(0x307)]={..._0x4529e7[_0x1136c9(0x307)]??{}},_0x4529e7[_0x1136c9(0x307)][_0x120c09]=Ct(_0x13f9b8,_0x4b9ed8['fields'][_0x120c09],_0x4b9ed8,_0x571947));}return _0x4b9ed8;}function _t(_0x8e4cb5,_0x19b6ef,_0x46c2e0){const _0x46a5fe=_0x142fa8;var _0x593f9d,_0x4e0e77,_0x2722b,_0x47a2a4,_0xc4f63,_0x524b10;let _0x17d93c=(_0x593f9d=_0x8e4cb5[_0x46a5fe(0x276)])==null?void 0x0:_0x593f9d[_0x19b6ef],_0x23aa81=(_0x4e0e77=_0x8e4cb5['colIndex'])==null?void 0x0:_0x4e0e77[_0x46c2e0];if(_0x17d93c!=null&&_0x23aa81!=null&&((_0x2722b=_0x8e4cb5[_0x46a5fe(0x3f0)])==null?void 0x0:_0x2722b[_0x17d93c])===_0x19b6ef&&((_0x47a2a4=_0x8e4cb5[_0x46a5fe(0xf8)])==null?void 0x0:_0x47a2a4[_0x23aa81])===_0x46c2e0)return{'row':_0x17d93c,'col':_0x23aa81};let _0x224f17=L(_0x8e4cb5),_0x385ed2=(_0xc4f63=_0x224f17[_0x46a5fe(0x276)])==null?void 0x0:_0xc4f63[_0x19b6ef],_0x5e1825=(_0x524b10=_0x224f17[_0x46a5fe(0x425)])==null?void 0x0:_0x524b10[_0x46c2e0];return _0x385ed2==null||_0x5e1825==null?null:{'row':_0x385ed2,'col':_0x5e1825};}function vt(_0x3c665c,_0x55aa48,_0x355729){const _0x2d7bf3=_0x142fa8;var _0x373c27;let _0x2e2e80=_t(_0x3c665c,_0x55aa48,_0x355729);if(_0x2e2e80)return(_0x373c27=_0x3c665c[_0x2d7bf3(0x3b1)])==null||(_0x373c27=_0x373c27[_0x2e2e80[_0x2d7bf3(0x1ae)]])==null?void 0x0:_0x373c27[_0x2e2e80[_0x2d7bf3(0x1c6)]];}function yt(_0x16d93f,_0x496d0f,_0x42a8a7){const _0x11e720=_0x142fa8;var _0xe85b87;let _0x5687f2=vt(_0x16d93f,_0x496d0f,_0x42a8a7),_0x4fbc1d=_0x16d93f['fields'][_0x42a8a7];if((_0x4fbc1d==null?void 0x0:_0x4fbc1d['type'])===_0x2348b1[_0x11e720(0x2af)]){var _0x430e3e;return Ot(_0x16d93f,_0x496d0f,_0x42a8a7)??kt((_0x430e3e=_0x16d93f['records'][_0x496d0f])==null||(_0x430e3e=_0x430e3e[_0x11e720(0x307)])==null?void 0x0:_0x430e3e[_0x42a8a7]);}if(Mt(_0x4fbc1d)||Nt(_0x4fbc1d)||(_0x4fbc1d==null?void 0x0:_0x4fbc1d['type'])===_0x2348b1[_0x11e720(0x20f)]){var _0x308341;let _0xe5bc94=(_0x308341=_0x16d93f['records'][_0x496d0f])==null||(_0x308341=_0x308341[_0x11e720(0x307)])==null?void 0x0:_0x308341[_0x42a8a7];return _0xe5bc94!=null&&_0xe5bc94!==''?At(_0xe5bc94,_0x4fbc1d):Ct(_0x5687f2,_0x4fbc1d,_0x16d93f,_0x496d0f);}return _0x5687f2&&Object['prototype'][_0x11e720(0x26e)][_0x11e720(0x3e6)](_0x5687f2,'v')?_0x5687f2['v']??null:((_0xe85b87=_0x16d93f[_0x11e720(0x309)][_0x496d0f])==null||(_0xe85b87=_0xe85b87[_0x11e720(0x307)])==null?void 0x0:_0xe85b87[_0x42a8a7])??null;}function bt(_0x43f104,_0x1e5c8f,_0x491bc8){const _0x112649=_0x142fa8;var _0x363636;let _0x5d759d=vt(_0x43f104,_0x1e5c8f,_0x491bc8);if(_0x5d759d&&Object['prototype'][_0x112649(0x26e)][_0x112649(0x3e6)](_0x5d759d,'v'))return _0x5d759d['v']??null;let _0xf84f12=_0x43f104[_0x112649(0x37f)][_0x491bc8];return xt(((_0x363636=_0x43f104[_0x112649(0x309)][_0x1e5c8f])==null||(_0x363636=_0x363636[_0x112649(0x307)])==null?void 0x0:_0x363636[_0x491bc8])??null,_0xf84f12)['v']??null;}function xt(_0x28a673,_0x1b2f97){const _0x30ce8c=_0x142fa8;if(Tt(_0x28a673))return(_0x1b2f97==null?void 0x0:_0x1b2f97[_0x30ce8c(0x35c)])===_0x2348b1[_0x30ce8c(0x2af)]?{..._0x28a673,'v':'','t':_0x5ad018[_0x30ce8c(0x2c3)]}:St(_0x28a673);if((_0x1b2f97==null?void 0x0:_0x1b2f97['type'])===_0x2348b1['Attachment'])return{'v':'','t':_0x5ad018[_0x30ce8c(0x2c3)]};if(Nt(_0x1b2f97)){let _0x151c88=Pt(_0x28a673);return{'v':_0x151c88,'t':Lt(_0x151c88)};}if(Mt(_0x1b2f97))return{'v':Ft(_0x28a673)[_0x30ce8c(0x2b0)](',\x20'),'t':_0x5ad018[_0x30ce8c(0x2c3)]};if((_0x1b2f97==null?void 0x0:_0x1b2f97[_0x30ce8c(0x35c)])===_0x2348b1[_0x30ce8c(0x20f)]&&_0x28a673&&typeof _0x28a673==_0x30ce8c(0x1e3)&&!Array[_0x30ce8c(0x8f)](_0x28a673)){let _0xc77055=_0x28a673;return{'v':String(_0xc77055[_0x30ce8c(0x2be)]??_0xc77055[_0x30ce8c(0xfe)]??''),'t':_0x5ad018['STRING']};}return _0x28a673===null||typeof _0x28a673==_0x30ce8c(0x3a1)||typeof _0x28a673==_0x30ce8c(0xcb)||typeof _0x28a673==_0x30ce8c(0x267)?{'v':_0x28a673,'t':Lt(_0x28a673)}:{'v':null,'t':null};}function St(_0x51b901){let _0x441716=zt(_0x51b901['t'],_0x51b901['v']);if(_0x441716===void 0x0){let {t:_0x23659e,..._0x38a9b4}=_0x51b901;return _0x38a9b4;}return{..._0x51b901,'t':_0x441716};}function Ct(_0x532d8d,_0x53d6b1,_0x323a4d,_0x12cd00){const _0x28dd64=_0x142fa8;if(!_0x532d8d)return null;if((_0x53d6b1==null?void 0x0:_0x53d6b1[_0x28dd64(0x35c)])===_0x2348b1[_0x28dd64(0x2af)])return _0x323a4d&&_0x12cd00?Ot(_0x323a4d,_0x12cd00,_0x53d6b1['id'])??[]:[];if(Mt(_0x53d6b1))return Ft(_0x532d8d['v']);if((_0x53d6b1==null?void 0x0:_0x53d6b1[_0x28dd64(0x35c)])===_0x2348b1[_0x28dd64(0x20f)]&&_0x323a4d&&_0x12cd00){var _0x105fab;let _0x1e6b72=(_0x105fab=_0x323a4d[_0x28dd64(0x309)][_0x12cd00])==null||(_0x105fab=_0x105fab[_0x28dd64(0x307)])==null?void 0x0:_0x105fab[_0x53d6b1['id']];if(_0x1e6b72&&typeof _0x1e6b72==_0x28dd64(0x1e3)&&!Array[_0x28dd64(0x8f)](_0x1e6b72))return _0x1e6b72;}return Object['prototype'][_0x28dd64(0x26e)][_0x28dd64(0x3e6)](_0x532d8d,'v')?_0x532d8d['v']??null:null;}function wt(_0x19c073,_0x95818e,_0x325ec4,_0x5a8685,_0x3c5511){const _0x408efb=_0x142fa8;return(_0x325ec4==null?void 0x0:_0x325ec4[_0x408efb(0x35c)])===_0x2348b1['Attachment']?kt(_0x19c073):Nt(_0x325ec4)?Pt(_0x19c073):Mt(_0x325ec4)?Ft(_0x19c073):(_0x325ec4==null?void 0x0:_0x325ec4[_0x408efb(0x35c)])===_0x2348b1[_0x408efb(0x20f)]&&(_0x19c073==null||_0x19c073==='')?null:(_0x325ec4==null?void 0x0:_0x325ec4[_0x408efb(0x35c)])===_0x2348b1[_0x408efb(0x20f)]&&_0x19c073&&typeof _0x19c073=='object'&&!Array[_0x408efb(0x8f)](_0x19c073)&&!Tt(_0x19c073)?_0x19c073:Ct(_0x95818e,_0x325ec4,_0x5a8685,_0x3c5511);}function Tt(_0x57855e){const _0x53d8e5=_0x142fa8;return!!_0x57855e&&typeof _0x57855e=='object'&&(Object['prototype']['hasOwnProperty'][_0x53d8e5(0x3e6)](_0x57855e,'v')||Object[_0x53d8e5(0x18b)]['hasOwnProperty'][_0x53d8e5(0x3e6)](_0x57855e,'t')||Object[_0x53d8e5(0x18b)][_0x53d8e5(0x26e)]['call'](_0x57855e,'p')||Object[_0x53d8e5(0x18b)]['hasOwnProperty'][_0x53d8e5(0x3e6)](_0x57855e,'f')||Object['prototype'][_0x53d8e5(0x26e)][_0x53d8e5(0x3e6)](_0x57855e,'si'));}function Et(_0x2d51da,_0x5e55f6){return _0x2d51da+'\x1f'+_0x5e55f6;}function Dt(_0x21c9c0,_0x1609a4,_0x7b444b,_0x30b12e){const _0x10e249=_0x142fa8;let _0x58776e=kt(_0x30b12e);_0x21c9c0[_0x10e249(0x1d4)]={..._0x21c9c0[_0x10e249(0x1d4)]??{}},_0x21c9c0['resources'][_0x10e249(0x2ff)]={..._0x21c9c0[_0x10e249(0x1d4)]['attachmentSets']??{}},_0x21c9c0[_0x10e249(0x1d4)][_0x10e249(0x13d)]={..._0x21c9c0['resources']['attachments']??{}};let _0x200d49=Et(_0x7b444b,_0x1609a4),_0x272c54=[];for(let _0x8abff9=0x0;_0x8abff9<_0x58776e[_0x10e249(0x7d)];_0x8abff9++){if(!(_0x8abff9 in _0x58776e))continue;let _0xbf0304=_0x58776e[_0x8abff9],_0x98871d=String(_0xbf0304['id']??_0x200d49+'\x1f'+_0x8abff9),_0x2be3d2={..._0xbf0304,'id':_0x98871d};_0x21c9c0[_0x10e249(0x1d4)]['attachments'][_0x98871d]=_0x2be3d2,_0x272c54[_0x10e249(0x319)](_0x98871d);}_0x21c9c0['resources'][_0x10e249(0x2ff)][_0x200d49]=_0x272c54;}function Ot(_0x41f3f2,_0x41065a,_0x263248){const _0x42e135=_0x142fa8;var _0x102ce5;let _0x1eab34=Et(_0x263248,_0x41065a),_0x86f1e0=(_0x102ce5=_0x41f3f2['resources'])==null||(_0x102ce5=_0x102ce5['attachmentSets'])==null?void 0x0:_0x102ce5[_0x1eab34];if(!_0x86f1e0)return null;let _0x505d72=[];for(let _0x5dea72=0x0;_0x5dea72<_0x86f1e0[_0x42e135(0x7d)];_0x5dea72++){var _0x3feb33;if(!(_0x5dea72 in _0x86f1e0))continue;let _0x17661c=(_0x3feb33=_0x41f3f2[_0x42e135(0x1d4)])==null||(_0x3feb33=_0x3feb33[_0x42e135(0x13d)])==null?void 0x0:_0x3feb33[_0x86f1e0[_0x5dea72]];_0x17661c&&_0x505d72[_0x42e135(0x319)]({..._0x17661c});}return _0x505d72;}function kt(_0x39a5da){const _0x35bd3b=_0x142fa8;if(_0x39a5da==null||_0x39a5da===''||Tt(_0x39a5da)&&!('id'in _0x39a5da)&&!('name'in _0x39a5da))return[];let _0x1e51d5=Array[_0x35bd3b(0x8f)](_0x39a5da)?_0x39a5da:[_0x39a5da],_0x202368=[];for(let _0x3bceca=0x0;_0x3bceca<_0x1e51d5[_0x35bd3b(0x7d)];_0x3bceca++){if(!(_0x3bceca in _0x1e51d5))continue;let _0x2706a9=_0x1e51d5[_0x3bceca],_0x2af4bf=_0x2706a9&&typeof _0x2706a9==_0x35bd3b(0x1e3)?{..._0x2706a9}:{'id':_0x35bd3b(0x120)+_0x3bceca,'name':String(_0x2706a9)};Object[_0x35bd3b(0xd3)](_0x2af4bf)[_0x35bd3b(0x7d)]>0x0&&_0x202368[_0x35bd3b(0x319)](_0x2af4bf);}return _0x202368;}function At(_0x564782,_0xfef442){const _0x14e546=_0x142fa8;return(_0xfef442==null?void 0x0:_0xfef442[_0x14e546(0x35c)])===_0x2348b1['Attachment']?kt(_0x564782):Nt(_0xfef442)?Pt(_0x564782):Mt(_0xfef442)?Ft(_0x564782):_0x564782;}function jt(_0x24d87d,_0x1a0941,_0x674189){const _0x3f8471=_0x142fa8;return(_0x1a0941==null?void 0x0:_0x1a0941[_0x3f8471(0x35c)])===_0x2348b1[_0x3f8471(0x2af)]?_0x24d87d['v']!=='':Nt(_0x1a0941)?_0x24d87d['v']!==Pt(_0x674189):Mt(_0x1a0941)?Array[_0x3f8471(0x8f)](_0x674189)&&(_0x24d87d['v']==null||_0x24d87d['v']===''):!0x1;}function Mt(_0x228ae5){const _0x11dd72=_0x142fa8;return(_0x228ae5==null?void 0x0:_0x228ae5[_0x11dd72(0x35c)])===_0x2348b1[_0x11dd72(0x3b0)]||(_0x228ae5==null?void 0x0:_0x228ae5[_0x11dd72(0x35c)])===_0x2348b1[_0x11dd72(0x12d)]||(_0x228ae5==null?void 0x0:_0x228ae5[_0x11dd72(0x35c)])===_0x2348b1[_0x11dd72(0x30f)]&&_0x228ae5[_0x11dd72(0xfa)]['allowMultiple']===!0x0;}function Nt(_0x57dfb4){const _0x1a4ca8=_0x142fa8;return(_0x57dfb4==null?void 0x0:_0x57dfb4[_0x1a4ca8(0x35c)])===_0x2348b1[_0x1a4ca8(0x30f)]&&_0x57dfb4[_0x1a4ca8(0xfa)]['allowMultiple']!==!0x0;}function Pt(_0x20a667){const _0x175af1=_0x142fa8;let _0x3e0866=Tt(_0x20a667)?_0x20a667['v']:_0x20a667,_0x41adc9=Array[_0x175af1(0x8f)](_0x3e0866)?_0x3e0866[0x0]:_0x3e0866;return _0x41adc9==null||_0x41adc9===''?null:String(_0x41adc9);}function Ft(_0x2c7fc9){const _0x169e1b=_0x142fa8;if(_0x2c7fc9==null||_0x2c7fc9==='')return[];let _0x3cdd82=[];if(Array['isArray'](_0x2c7fc9)){for(let _0x5dd1e2=0x0;_0x5dd1e2<_0x2c7fc9['length'];_0x5dd1e2++){if(!(_0x5dd1e2 in _0x2c7fc9))continue;let _0x4aad1e=It(_0x2c7fc9[_0x5dd1e2]);_0x4aad1e&&_0x3cdd82[_0x169e1b(0x319)](_0x4aad1e);}return _0x3cdd82;}for(let _0x376a4e of String(_0x2c7fc9)['split'](',')){let _0x94570f=_0x376a4e[_0x169e1b(0x41a)]();_0x94570f&&_0x3cdd82[_0x169e1b(0x319)](_0x94570f);}return _0x3cdd82;}function It(_0x490d8d){const _0x20ec78=_0x142fa8;if(_0x490d8d==null)return'';if(typeof _0x490d8d==_0x20ec78(0x3a1)||typeof _0x490d8d=='number'||typeof _0x490d8d==_0x20ec78(0x267))return String(_0x490d8d);if(typeof _0x490d8d==_0x20ec78(0x1e3)){let _0x51f5e2=_0x490d8d;return String(_0x51f5e2['id']??_0x51f5e2[_0x20ec78(0x112)]??_0x51f5e2[_0x20ec78(0x2be)]??'');}return String(_0x490d8d);}function Lt(_0x2666b4){const _0x32a9c3=_0x142fa8;return _0x2666b4==null?null:typeof _0x2666b4==_0x32a9c3(0xcb)?_0x5ad018[_0x32a9c3(0x384)]:typeof _0x2666b4=='boolean'?_0x5ad018[_0x32a9c3(0x29a)]:_0x5ad018['STRING'];}function Rt(_0x3cc60a){const _0x52a794=_0x142fa8;_0x3cc60a[_0x52a794(0x34b)]((_0x481f2f,_0x5a24d1)=>_0x481f2f[_0x52a794(0xc0)][_0x52a794(0x94)](_0x5a24d1['orderKey']));let _0x5c9b11=[];for(let _0x19545a of _0x3cc60a)_0x5c9b11[_0x52a794(0x319)](_0x19545a['id']);return _0x5c9b11;}function zt(_0x52e263,_0x6641f6){const _0x402d88=_0x142fa8;return _0x52e263===_0x5ad018[_0x402d88(0x2c3)]||_0x52e263===_0x5ad018['NUMBER']||_0x52e263===_0x5ad018[_0x402d88(0x29a)]||_0x52e263===_0x5ad018[_0x402d88(0x3a5)]||_0x52e263==null?_0x52e263:Lt(_0x6641f6??null);}function R(_0x38e3bf){const _0x34d344=_0x142fa8;let _0x15b656=null;for(let _0x233540 of _0x38e3bf)_0x15b656=_0x15b656===null?_0x233540:_0x5846ca[_0x34d344(0x35c)][_0x34d344(0x2bb)](_0x15b656,_0x233540);return _0x15b656;}var z=class e{static[_0x142fa8(0x205)](_0x36b72a,_0x47053a){const _0x11d925=_0x142fa8;let _0x27d7c1=[];for(let _0x211877 of _0x47053a){let _0x2747e0=Bt(_0x211877);if(!_0x2747e0||_0x2747e0[_0x11d925(0x22b)]!==_0x36b72a['id'])return null;_0x27d7c1[_0x11d925(0x319)](_0x2747e0['op']);}try{let _0x2218ed=R(_0x27d7c1);return _0x2218ed===null?_0x36b72a:new e()['applyOp'](_0x36b72a,_0x2218ed);}catch{return null;}}['applyOp'](_0x44e2e3,_0xc9c026){const _0x284eaf=_0x142fa8;let _0x222059=this['getAffectedRanges'](_0xc9c026),_0x423913=I(_0x284eaf(0x42e),()=>Xt(_0x44e2e3,_0xc9c026),{'invalidations':_0x222059[_0x284eaf(0x7d)]}),_0x45d1dd=I(_0x284eaf(0xe9),()=>_0x5846ca[_0x284eaf(0x35c)][_0x284eaf(0x240)](_0x423913,_0xc9c026),{'invalidations':_0x222059[_0x284eaf(0x7d)]}),_0x547b3d=Ht(_0x45d1dd,_0x222059);return I(_0x284eaf(0x1ce),()=>Vt(_0x45d1dd,_0x222059),{'invalidations':_0x222059[_0x284eaf(0x7d)]})?(Ut(_0x45d1dd,_0x547b3d),_0x45d1dd):(I(_0x284eaf(0x1c2),()=>{const _0x10b537=_0x284eaf;this[_0x10b537(0x40e)](_0x45d1dd,_0x222059)['forEach'](_0x2e52be=>{const _0x32f2b6=_0x10b537;let _0x482066=_0x222059[_0x32f2b6(0x13c)](_0xc43c0b=>_0xc43c0b[_0x32f2b6(0x90)]===_0x2e52be['id']),_0x8b31de=_0x482066[_0x32f2b6(0x7d)]>0x0&&_0x482066[_0x32f2b6(0x40c)](_0xfca9d2=>_0xfca9d2['reason']==='field'||_0xfca9d2[_0x32f2b6(0xb3)]===_0x32f2b6(0x395)||_0xfca9d2[_0x32f2b6(0xb3)]===_0x32f2b6(0x346)||_0xfca9d2[_0x32f2b6(0xb3)]==='record')?new Set(_0x482066[_0x32f2b6(0x167)](_0xfb123=>{const _0x6c7bc1=_0x32f2b6;var _0x4fada5;if(_0xfb123[_0x6c7bc1(0xb3)]!==_0x6c7bc1(0x202)||!_0xfb123['fieldId'])return[];let _0x4f9ee2=(_0x4fada5=_0x44e2e3[_0x6c7bc1(0x3bd)][_0x2e52be['id']])==null?void 0x0:_0x4fada5[_0x6c7bc1(0x37f)][_0xfb123['fieldId']],_0x39f574=_0x2e52be[_0x6c7bc1(0x37f)][_0xfb123[_0x6c7bc1(0x3c1)]];return(_0x4f9ee2==null?void 0x0:_0x4f9ee2['type'])!==(_0x39f574==null?void 0x0:_0x39f574['type'])||(_0x4f9ee2==null?void 0x0:_0x4f9ee2[_0x6c7bc1(0xfa)][_0x6c7bc1(0x32f)])!==(_0x39f574==null?void 0x0:_0x39f574[_0x6c7bc1(0xfa)][_0x6c7bc1(0x32f)])?[_0xfb123['fieldId']]:[];})):void 0x0,_0x517980=new Set(_0x482066['flatMap'](_0x556ea1=>{const _0x31d9c7=_0x32f2b6;var _0x2c8f67,_0x40f0cb;return _0x556ea1[_0x31d9c7(0xb3)]!==_0x31d9c7(0x346)||_0x556ea1['row']==null||_0x556ea1[_0x31d9c7(0xca)]==null?[]:[JSON[_0x31d9c7(0x2b1)]([(_0x2c8f67=_0x2e52be['rowId'])==null?void 0x0:_0x2c8f67[_0x556ea1[_0x31d9c7(0x1ae)]],(_0x40f0cb=_0x2e52be[_0x31d9c7(0xf8)])==null?void 0x0:_0x40f0cb[_0x556ea1['column']]])];}));ht(_0x2e52be,_0x8b31de?(_0x3d0864,_0x2f9f76)=>_0x8b31de[_0x32f2b6(0x8e)](_0x2f9f76)||_0x517980[_0x32f2b6(0x8e)](JSON[_0x32f2b6(0x2b1)]([_0x3d0864,_0x2f9f76])):void 0x0);});},{'invalidations':_0x222059[_0x284eaf(0x7d)]}),Ut(_0x45d1dd,_0x547b3d),_0x45d1dd);}[_0x142fa8(0x3f8)](_0x569ae9,_0x663bf5){const _0x42c101=_0x142fa8;return _0x5846ca['type'][_0x42c101(0x365)](_0x663bf5,_0x569ae9);}[_0x142fa8(0x377)](_0x6ba06f){const _0x18ccaf=_0x142fa8;let _0x20ec89=qt(_0x6ba06f);return _0x20ec89[_0x18ccaf(0x7d)]?Jt(_0x20ec89[_0x18ccaf(0x167)](_0x446f8c=>this[_0x18ccaf(0x377)](_0x446f8c))):Wt(_0x6ba06f);}[_0x142fa8(0x40e)](_0x26cbb2,_0x55222a){const _0x26f092=_0x142fa8;let _0x105ea9=_0x55222a['filter'](_0x280561=>_0x280561['reason']!==_0x26f092(0x395));return _0x105ea9['length']?_0x105ea9['some'](_0x5c896e=>!_0x5c896e['tableId'])?Object[_0x26f092(0x307)](_0x26cbb2[_0x26f092(0x3bd)]??{}):Array[_0x26f092(0x35b)](new Set(_0x105ea9['map'](_0x405b31=>_0x405b31[_0x26f092(0x90)])))[_0x26f092(0x167)](_0x29978a=>{const _0x1cb2d9=_0x26f092;var _0x386f07;let _0x480279=(_0x386f07=_0x26cbb2[_0x1cb2d9(0x3bd)])==null?void 0x0:_0x386f07[_0x29978a];return _0x480279?[_0x480279]:[];}):[];}};function Bt(_0x3178ff){const _0x4edf21=_0x142fa8;let _0x16f1bc=_0x3178ff[_0x4edf21(0x3a7)];return _0x3178ff['id']!==_0x4edf21(0x37a)||typeof _0x16f1bc!=_0x4edf21(0x1e3)||!_0x16f1bc||!(_0x4edf21(0x22b)in _0x16f1bc)||typeof _0x16f1bc[_0x4edf21(0x22b)]!=_0x4edf21(0x3a1)||!('op'in _0x16f1bc)||!Array[_0x4edf21(0x8f)](_0x16f1bc['op'])?null:{'unitId':_0x16f1bc[_0x4edf21(0x22b)],'op':_0x16f1bc['op']};}function Vt(_0x595cf4,_0x5aff7b){const _0x3e78ea=_0x142fa8;if(!_0x5aff7b[_0x3e78ea(0x7d)]||_0x5aff7b['some'](_0x50f1a8=>_0x50f1a8['reason']!==_0x3e78ea(0x346)))return!0x1;let _0x31a80a=new Map();for(let _0x20414e of _0x5aff7b){if(!_0x20414e[_0x3e78ea(0x90)]||_0x20414e[_0x3e78ea(0x1ae)]==null||_0x20414e[_0x3e78ea(0xca)]==null)continue;let _0x565558=_0x31a80a[_0x3e78ea(0x12f)](_0x20414e[_0x3e78ea(0x90)])??[];_0x565558[_0x3e78ea(0x319)]({'row':_0x20414e[_0x3e78ea(0x1ae)],'col':_0x20414e[_0x3e78ea(0xca)]}),_0x31a80a[_0x3e78ea(0x23a)](_0x20414e[_0x3e78ea(0x90)],_0x565558);}return _0x31a80a[_0x3e78ea(0x2e7)]((_0x118f4b,_0x20b9eb)=>{var _0x590a1a;let _0x508f3f=(_0x590a1a=_0x595cf4['tables'])==null?void 0x0:_0x590a1a[_0x20b9eb];_0x508f3f&>(_0x508f3f,_0x118f4b);}),!0x0;}function Ht(_0xc46208,_0x3d30da){const _0x69f64e=_0x142fa8;let _0x2e8970=new Set();return _0x3d30da[_0x69f64e(0x167)](_0x401529=>{const _0x11be71=_0x69f64e;var _0xd7d9fa;if(!_0x401529['tableId']||!_0x401529[_0x11be71(0x1ee)]||!_0x401529[_0x11be71(0x3c1)])return[];let _0x529279=_0x401529[_0x11be71(0x90)]+'\x1f'+_0x401529['recordId']+'\x1f'+_0x401529[_0x11be71(0x3c1)];if(_0x2e8970[_0x11be71(0x8e)](_0x529279))return[];_0x2e8970[_0x11be71(0x28d)](_0x529279);let _0x5613b4=(_0xd7d9fa=_0xc46208[_0x11be71(0x3bd)][_0x401529[_0x11be71(0x90)]])==null||(_0xd7d9fa=_0xd7d9fa[_0x11be71(0x309)][_0x401529[_0x11be71(0x1ee)]])==null?void 0x0:_0xd7d9fa[_0x11be71(0x307)];return _0x5613b4?[{'tableId':_0x401529[_0x11be71(0x90)],'recordId':_0x401529[_0x11be71(0x1ee)],'fieldId':_0x401529['fieldId'],'exists':Object[_0x11be71(0x18b)][_0x11be71(0x26e)]['call'](_0x5613b4,_0x401529[_0x11be71(0x3c1)]),'value':_0x5613b4[_0x401529[_0x11be71(0x3c1)]]}]:[];});}function Ut(_0x4393c0,_0x3c0ec9){_0x3c0ec9['forEach'](_0x1cf713=>{const _0x341646=_0x3f85;var _0x1ac8a0;let _0x456778=(_0x1ac8a0=_0x4393c0[_0x341646(0x3bd)][_0x1cf713[_0x341646(0x90)]])==null||(_0x1ac8a0=_0x1ac8a0['records'][_0x1cf713[_0x341646(0x1ee)]])==null?void 0x0:_0x1ac8a0[_0x341646(0x307)];_0x456778&&(_0x1cf713['exists']?_0x456778[_0x1cf713[_0x341646(0x3c1)]]=_0x1cf713[_0x341646(0x177)]:delete _0x456778[_0x1cf713[_0x341646(0x3c1)]]);});}function Wt(_0xb843b8){const _0x249bc9=_0x142fa8;if(!Array['isArray'](_0xb843b8)||_0xb843b8['length']<0x2)return[{'tableId':'','reason':_0x249bc9(0x2db)}];let _0x1c0bd0=_0xb843b8,_0x4962dc=_0x1c0bd0[_0x249bc9(0x123)](_0x249bc9(0x3bd));return _0x4962dc===-0x1||typeof _0x1c0bd0[_0x4962dc+0x1]!=_0x249bc9(0x3a1)?_0x1c0bd0[0x0]===_0x249bc9(0x1c3)?[]:[{'tableId':'','reason':_0x249bc9(0x2db)}]:Gt(_0x1c0bd0,_0x4962dc,String(_0x1c0bd0[_0x4962dc+0x1]));}function Gt(_0x3a011d,_0x524021,_0x28e871){const _0x37015a=_0x142fa8;let _0x53a9c0=_0x3a011d[_0x524021+0x2];return _0x53a9c0==='records'&&typeof _0x3a011d[_0x524021+0x3]=='string'?Kt(_0x3a011d,_0x524021,_0x28e871,String(_0x3a011d[_0x524021+0x3])):_0x53a9c0===_0x37015a(0x3b1)&&_0x3a011d[_0x524021+0x3]!=null&&_0x3a011d[_0x524021+0x4]!=null?[{'tableId':_0x28e871,'reason':_0x37015a(0x346),'row':Number(_0x3a011d[_0x524021+0x3]),'column':Number(_0x3a011d[_0x524021+0x4])}]:_0x53a9c0===_0x37015a(0x37f)&&typeof _0x3a011d[_0x524021+0x3]==_0x37015a(0x3a1)?[{'tableId':_0x28e871,'reason':_0x37015a(0x202),'fieldId':String(_0x3a011d[_0x524021+0x3])}]:_0x53a9c0==='fieldOrder'?[{'tableId':_0x28e871,'reason':_0x37015a(0x202)}]:_0x53a9c0===_0x37015a(0x18c)?[{'tableId':_0x28e871,'reason':_0x37015a(0x3ad)}]:_0x53a9c0===_0x37015a(0x1df)&&typeof _0x3a011d[_0x524021+0x3]==_0x37015a(0x3a1)?[{'tableId':_0x28e871,'reason':'view','viewId':String(_0x3a011d[_0x524021+0x3])}]:_0x53a9c0===_0x37015a(0x29c)?[{'tableId':_0x28e871,'reason':_0x37015a(0x395)}]:_0x53a9c0===_0x37015a(0x1d4)?[{'tableId':_0x28e871,'reason':_0x37015a(0x346)}]:[{'tableId':_0x28e871,'reason':_0x53a9c0===void 0x0?_0x37015a(0x108):_0x37015a(0x2db)}];}function Kt(_0x2a2116,_0x320d9f,_0xfce37e,_0xe89305){const _0x599d54=_0x142fa8;return _0x2a2116[_0x320d9f+0x4]===_0x599d54(0x307)&&typeof _0x2a2116[_0x320d9f+0x5]==_0x599d54(0x3a1)?[{'tableId':_0xfce37e,'reason':_0x599d54(0x346),'recordId':_0xe89305,'fieldId':String(_0x2a2116[_0x320d9f+0x5])}]:_0x2a2116[_0x320d9f+0x4]===_0x599d54(0x2ee)||_0x2a2116[_0x320d9f+0x4]===_0x599d54(0x118)?[]:[{'tableId':_0xfce37e,'reason':'record','recordId':_0xe89305}];}function qt(_0x2233fa){const _0x49668c=_0x142fa8;if(!Array[_0x49668c(0x8f)](_0x2233fa))return[];let _0x58b0c9=_0x2233fa[_0x49668c(0x13c)](Array[_0x49668c(0x8f)]);if(_0x58b0c9[_0x49668c(0x7d)]>0x1&&_0x58b0c9[_0x49668c(0x7d)]===_0x2233fa[_0x49668c(0x7d)])return _0x58b0c9;let _0x29e64b=_0x2233fa[_0x49668c(0x38a)](Array[_0x49668c(0x8f)]);if(_0x29e64b>0x0&&_0x2233fa[_0x49668c(0x3e0)](_0x29e64b)[_0x49668c(0x40c)](Array[_0x49668c(0x8f)])){let _0x39904c=_0x2233fa['slice'](0x0,_0x29e64b);return _0x2233fa[_0x49668c(0x3e0)](_0x29e64b)[_0x49668c(0x1bc)](_0xe17d65=>[..._0x39904c,..._0xe17d65]);}let _0xe2dd73=_0x2233fa[_0x49668c(0x123)]('tables');if(_0xe2dd73===-0x1||typeof _0x2233fa[_0xe2dd73+0x1]!=_0x49668c(0x3a1))return[];let _0x21d7df=String(_0x2233fa[_0xe2dd73+0x1]),_0x350e2b=_0x2233fa['slice'](_0xe2dd73+0x2)['filter'](Array['isArray']);return _0x350e2b[_0x49668c(0x7d)]<=0x1?[]:_0x350e2b[_0x49668c(0x1bc)](_0x5030eb=>[_0x49668c(0x3bd),_0x21d7df,..._0x5030eb]);}function Jt(_0x716d94){let _0x11ebeb=new Set();return _0x716d94['filter'](_0x1b2377=>{const _0x1c376d=_0x3f85;let _0xa8c21a=JSON[_0x1c376d(0x2b1)](_0x1b2377);return _0x11ebeb['has'](_0xa8c21a)?!0x1:(_0x11ebeb[_0x1c376d(0x28d)](_0xa8c21a),!0x0);});}function Yt(_0x3596fe){const _0xa537b2=_0x142fa8;return _0x3e4e1e[_0xa537b2(0x31f)](_0x3596fe);}function Xt(_0x111994,_0x30fe3c){let _0x2440f4=Zt(_0x30fe3c);if(!_0x2440f4['length'])return Yt(_0x111994);let _0x1e8dfc=an(_0x111994),_0x2a76f5=new Set();for(let _0x509c77 of _0x2440f4)en(_0x1e8dfc,_0x509c77,_0x2a76f5);return _0x1e8dfc;}function Zt(_0x308d15){let _0x2bfa44=[];return Qt(_0x308d15,[],_0x2bfa44),_0x2bfa44;}function Qt(_0x29ffa2,_0x17169c,_0x48f447){const _0x483bcc=_0x142fa8;if(!Array[_0x483bcc(0x8f)](_0x29ffa2))return;let _0x47ae38=[];for(let _0x30eb4b of _0x29ffa2){if(Array[_0x483bcc(0x8f)](_0x30eb4b)){Qt(_0x30eb4b,[..._0x17169c,..._0x47ae38],_0x48f447);continue;}if($t(_0x30eb4b)){_0x48f447[_0x483bcc(0x319)]([..._0x17169c,..._0x47ae38]);continue;}(typeof _0x30eb4b==_0x483bcc(0x3a1)||typeof _0x30eb4b==_0x483bcc(0xcb))&&_0x47ae38['push'](_0x30eb4b);}}function $t(_0x1b5741){const _0x1caf3b=_0x142fa8;if(!_0x1b5741||typeof _0x1b5741!=_0x1caf3b(0x1e3)||Array['isArray'](_0x1b5741))return!0x1;let _0x43e345=_0x1b5741;return'i'in _0x43e345||'r'in _0x43e345||'p'in _0x43e345||'d'in _0x43e345||'es'in _0x43e345||_0x1caf3b(0x126)in _0x43e345||'et'in _0x43e345;}function en(_0x142fab,_0x311123,_0x7dc830){const _0x5a94b9=_0x142fa8;let _0x550de9=_0x142fab,_0x232556=[];for(let _0x3fc733=0x0;_0x3fc733<_0x311123['length']-0x1;_0x3fc733++){let _0x3226da=_0x311123[_0x3fc733];_0x232556[_0x5a94b9(0x319)](_0x3226da);let _0x1c113b=tn(_0x550de9,_0x3226da);if(!rn(_0x1c113b))return;let _0x58b3e1=JSON[_0x5a94b9(0x2b1)](_0x232556);_0x7dc830[_0x5a94b9(0x8e)](_0x58b3e1)||(nn(_0x550de9,_0x3226da,an(_0x1c113b)),_0x7dc830[_0x5a94b9(0x28d)](_0x58b3e1));let _0x48c130=tn(_0x550de9,_0x3226da);if(!rn(_0x48c130))return;_0x550de9=_0x48c130;}}function tn(_0x1355b4,_0x4d89a7){const _0x17684e=_0x142fa8;return Array[_0x17684e(0x8f)](_0x1355b4)?typeof _0x4d89a7==_0x17684e(0xcb)?_0x1355b4[_0x4d89a7]:void 0x0:Reflect[_0x17684e(0x12f)](_0x1355b4,_0x4d89a7);}function nn(_0x500512,_0x24ad06,_0x80c37d){const _0x38e26a=_0x142fa8;if(Array[_0x38e26a(0x8f)](_0x500512)){typeof _0x24ad06=='number'&&(_0x500512[_0x24ad06]=_0x80c37d);return;}Reflect[_0x38e26a(0x23a)](_0x500512,_0x24ad06,_0x80c37d);}function rn(_0x5251de){const _0x2ef991=_0x142fa8;return!!_0x5251de&&typeof _0x5251de==_0x2ef991(0x1e3);}function an(_0x471eb1){const _0x4c7ace=_0x142fa8;return Array['isArray'](_0x471eb1)?_0x471eb1[_0x4c7ace(0x3e0)]():{..._0x471eb1};}const on='yyyy/mm/dd',sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':'YYYY/MM/DD','yyyy-mm-dd':'YYYY-MM-DD','mm-dd':'MM-DD','mm/dd/yyyy':'MM/DD/YYYY','dd/mm/yyyy':_0x142fa8(0x335),'mmm\x20d,\x20yyyy':_0x142fa8(0x340)};function B(_0x49c428,_0x3013ee=_0xc6e2ae[_0x142fa8(0x271)]){const _0x4f7f52=_0x142fa8;let _0x5778de=_0x2aeeac(_0x49c428)[_0x4f7f52(0x391)]();return _0x4ef3c5(new Date(_0x5778de),_0x3013ee);}function ln(_0x400be7,_0x118473=_0xc6e2ae['Date1900']){const _0x46b42e=_0x142fa8;return _0x215493(_0x400be7,_0x118473)[_0x46b42e(0x3e3)]();}function un(_0x41c4fd,_0x132147=_0xc6e2ae['Date1900']){const _0x2330cf=_0x142fa8;if(_0x41c4fd==null||_0x41c4fd==='')return null;if(_0x41c4fd instanceof Date)return B(_0x41c4fd,_0x132147);if(typeof _0x41c4fd=='number')return Number[_0x2330cf(0x1a1)](_0x41c4fd)?_0x41c4fd>0xf4240?B(_0x41c4fd,_0x132147):_0x41c4fd:null;let _0x3285fe=Date[_0x2330cf(0x2a3)](String(_0x41c4fd));return Number['isNaN'](_0x3285fe)?null:B(_0x3285fe,_0x132147);}function dn(_0x3ce0ae,_0x3fc57a=_0xc6e2ae['Date1900']){let _0x175ae9=un(_0x3ce0ae,_0x3fc57a);return _0x175ae9==null?null:ln(_0x175ae9,_0x3fc57a);}function fn(_0x18aa7a={}){const _0x14e494=_0x142fa8;let _0x431b92=String(_0x18aa7a['pattern']??_0x18aa7a[_0x14e494(0x2b8)]??_0x18aa7a[_0x14e494(0x331)]??on)[_0x14e494(0x41a)]()||on,_0x286619=sn[_0x14e494(0x413)](_0x431b92);return{'pattern':_0x431b92['replace'](sn,'')||on,'includeTime':typeof _0x18aa7a[_0x14e494(0x14b)]==_0x14e494(0x267)?_0x18aa7a[_0x14e494(0x14b)]:_0x286619,'hourCycle':_0x18aa7a[_0x14e494(0x229)]===_0x14e494(0xdf)?_0x14e494(0xdf):_0x14e494(0xb9)};}function pn(_0x61dff4={}){let {format:_0x40afa9,dateFormat:_0x547e78,..._0x1975ce}=_0x61dff4;return{..._0x1975ce,...fn(_0x61dff4)};}function mn(_0xd389bd,_0x26676e={}){let _0x2b7c1a=dn(_0xd389bd);if(_0x2b7c1a==null||!Number['isFinite'](_0x2b7c1a))return'';let _0x498bcf=fn(_0x26676e);return _0x2aeeac(_0x2b7c1a)['format'](hn(_0x498bcf));}function hn(_0xc4eb8e){const _0x47915a=_0x142fa8;let {pattern:_0x5a5503,includeTime:_0x58baf1,hourCycle:_0x43f0ed}=_0xc4eb8e,_0x1df818=cn[_0x5a5503]??cn[on];return _0x58baf1?_0x1df818+'\x20'+(_0x43f0ed===_0x47915a(0xdf)?_0x47915a(0x206):'HH:mm'):_0x1df818;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x2348b1[_0x142fa8(0x416)]]),V=0x5a0*0x3c*0x3e8;function vn(_0x2606ba){const _0x311d09=_0x142fa8;switch(_0x2606ba){case _0x2348b1['Number']:case _0x2348b1[_0x311d09(0x1c1)]:case _0x2348b1['Progress']:case _0x2348b1[_0x311d09(0x41d)]:return[_0x5eda1f['IS'],_0x5eda1f['IS_NOT'],_0x5eda1f[_0x311d09(0x291)],_0x5eda1f['LESS_THAN'],_0x5eda1f['IS_EMPTY'],_0x5eda1f[_0x311d09(0x1dd)]];case _0x2348b1[_0x311d09(0xff)]:case _0x2348b1[_0x311d09(0x434)]:case _0x2348b1[_0x311d09(0x259)]:return[_0x5eda1f['IS'],_0x5eda1f['IS_NOT'],_0x5eda1f[_0x311d09(0x151)],_0x5eda1f[_0x311d09(0x345)],_0x5eda1f[_0x311d09(0x1c0)],_0x5eda1f[_0x311d09(0x1dd)]];case _0x2348b1[_0x311d09(0x326)]:return[_0x5eda1f['IS'],_0x5eda1f[_0x311d09(0x42a)]];default:return[_0x5eda1f['IS'],_0x5eda1f[_0x311d09(0x42a)],_0x5eda1f[_0x311d09(0x183)],_0x5eda1f[_0x311d09(0x1cc)],_0x5eda1f[_0x311d09(0x1c0)],_0x5eda1f[_0x311d09(0x1dd)]];}}function yn(_0x278b25){const _0x28cb34=_0x142fa8;return _0x278b25===_0x2348b1[_0x28cb34(0xff)]||_0x278b25===_0x2348b1[_0x28cb34(0x434)]||_0x278b25===_0x2348b1[_0x28cb34(0x259)];}function bn(_0x249116,_0x2f94af){const _0x41c58d=_0x142fa8;return _0x249116==null&&_0x2f94af==null?0x0:_0x249116==null?-0x1:_0x2f94af==null?0x1:typeof _0x249116==_0x41c58d(0xcb)&&typeof _0x2f94af==_0x41c58d(0xcb)?_0x249116-_0x2f94af:String(_0x249116)[_0x41c58d(0x94)](String(_0x2f94af));}function xn(_0x3d4000,_0xb59c3d,_0x303d2b,_0x354123,_0x176596={}){const _0x547e9b=_0x142fa8;if(_0xb59c3d===_0x547e9b(0x3f2))return Sn(_0x3d4000);if(_0xb59c3d==='isNotEmpty')return!Sn(_0x3d4000);switch(_0x354123[_0x547e9b(0x35c)]){case _0x2348b1[_0x547e9b(0xe6)]:case _0x2348b1[_0x547e9b(0x1c1)]:case _0x2348b1['Progress']:case _0x2348b1['Rating']:return Cn(_0x3d4000,_0xb59c3d,_0x303d2b);case _0x2348b1[_0x547e9b(0xff)]:case _0x2348b1[_0x547e9b(0x434)]:case _0x2348b1[_0x547e9b(0x259)]:return Tn(_0x3d4000,_0xb59c3d,_0x303d2b,_0x176596);case _0x2348b1['Checkbox']:return jn(_0x3d4000,_0xb59c3d,_0x303d2b);case _0x2348b1[_0x547e9b(0x14e)]:case _0x2348b1[_0x547e9b(0x3b0)]:case _0x2348b1[_0x547e9b(0x30f)]:case _0x2348b1['Group']:return Nn(_0x3d4000,_0xb59c3d,_0x303d2b,_0x354123);default:return Pn(_0x3d4000,_0xb59c3d,_0x303d2b);}}function Sn(_0x4e75ac){const _0x118371=_0x142fa8;return _0x4e75ac==null?!0x0:Array[_0x118371(0x8f)](_0x4e75ac)?_0x4e75ac[_0x118371(0x7d)]===0x0:typeof _0x4e75ac==_0x118371(0x3a1)&&_0x4e75ac[_0x118371(0x41a)]()==='';}function Cn(_0x5dd1aa,_0x36880d,_0xf95adc){const _0x59d0d0=_0x142fa8;let _0x224449=wn(_0x5dd1aa),_0x475092=wn(_0xf95adc);if(_0x224449==null||_0x475092==null)return!0x1;switch(_0x36880d){case'is':return _0x224449===_0x475092;case _0x59d0d0(0x1b8):return _0x224449!==_0x475092;case _0x59d0d0(0x250):return _0x224449>_0x475092;case _0x59d0d0(0x30a):return _0x224449>=_0x475092;case _0x59d0d0(0x34e):return _0x224449<_0x475092;case'lessThanOrEqual':return _0x224449<=_0x475092;default:return!0x1;}}function wn(_0x4eb86a){const _0x585bf1=_0x142fa8;if(_0x4eb86a==null||_0x4eb86a==='')return null;let _0x27dd1d=Number(_0x4eb86a);return Number[_0x585bf1(0x1a1)](_0x27dd1d)?_0x27dd1d:null;}function Tn(_0x2e2af5,_0x2cf461,_0x3715f8,_0x31fe0c){const _0x37dc41=_0x142fa8;let _0x263e0f=Dn(_0x2e2af5);if(_0x263e0f==null)return!0x1;let _0x2fe81e=En(_0x31fe0c[_0x37dc41(0x28e)]??'exact',_0x3715f8,_0x31fe0c[_0x37dc41(0x3b2)]);if(!_0x2fe81e)return!0x1;switch(_0x2cf461){case'is':return _0x263e0f>=_0x2fe81e[_0x37dc41(0x29b)]&&_0x263e0f<=_0x2fe81e[_0x37dc41(0x38e)];case _0x37dc41(0x1b8):return _0x263e0f<_0x2fe81e[_0x37dc41(0x29b)]||_0x263e0f>_0x2fe81e[_0x37dc41(0x38e)];case _0x37dc41(0x39f):return _0x263e0f<_0x2fe81e[_0x37dc41(0x29b)];case'after':return _0x263e0f>_0x2fe81e[_0x37dc41(0x38e)];default:return!0x1;}}function En(_0x3388f6,_0x3587af,_0x433507=Date[_0x142fa8(0x3b2)]()){const _0x3cc609=_0x142fa8;let _0x3e5569=On(_0x433507);switch(_0x3388f6){case'exact':{let _0x431211=Dn(_0x3587af);return _0x431211==null?null:{'start':_0x431211,'end':_0x431211+V-0x1};}case _0x3cc609(0x11b):return{'start':_0x3e5569,'end':_0x3e5569+V-0x1};case _0x3cc609(0x1f8):return{'start':_0x3e5569+V,'end':_0x3e5569+V*0x2-0x1};case _0x3cc609(0x221):return{'start':_0x3e5569-V,'end':_0x3e5569-0x1};case _0x3cc609(0xe1):return kn(_0x3e5569,0x0);case _0x3cc609(0xd9):return kn(_0x3e5569,-0x1);case _0x3cc609(0x292):return An(_0x3e5569,0x0);case'lastMonth':return An(_0x3e5569,-0x1);case _0x3cc609(0xc7):return{'start':_0x3e5569-V*0x6,'end':_0x3e5569+V-0x1};case'next7':return{'start':_0x3e5569,'end':_0x3e5569+V*0x7-0x1};case _0x3cc609(0xac):return{'start':_0x3e5569-V*0x1d,'end':_0x3e5569+V-0x1};case _0x3cc609(0xed):return{'start':_0x3e5569,'end':_0x3e5569+V*0x1e-0x1};}}function Dn(_0x3e6de9){let _0x4e026f=un(_0x3e6de9);return _0x4e026f==null?null:On(ln(_0x4e026f));}function On(_0x65b7f2){const _0x3ed380=_0x142fa8;let _0x2cef4f=new Date(_0x65b7f2);return _0x2cef4f[_0x3ed380(0x26f)](0x0,0x0,0x0,0x0),_0x2cef4f['getTime']();}function kn(_0x23e149,_0x10b5aa){let _0x5869e4=_0x23e149-(new Date(_0x23e149)['getDay']()+0x6)%0x7*V+_0x10b5aa*V*0x7;return{'start':_0x5869e4,'end':_0x5869e4+V*0x7-0x1};}function An(_0x1e4be1,_0x266c49){const _0x2d658d=_0x142fa8;let _0x9c9961=new Date(_0x1e4be1),_0x4d843e=new Date(_0x9c9961['getFullYear'](),_0x9c9961[_0x2d658d(0x161)]()+_0x266c49,0x1),_0x2a16bf=new Date(_0x9c9961[_0x2d658d(0x1d5)](),_0x9c9961[_0x2d658d(0x161)]()+_0x266c49+0x1,0x1);return{'start':_0x4d843e[_0x2d658d(0x3e3)](),'end':_0x2a16bf['getTime']()-0x1};}function jn(_0x200037,_0x48ef5f,_0x14fb1a){const _0x50755b=_0x142fa8;let _0x5e5888=Mn(_0x200037),_0x430df0=Mn(_0x14fb1a);switch(_0x48ef5f){case'is':return _0x5e5888===_0x430df0;case _0x50755b(0x1b8):return _0x5e5888!==_0x430df0;default:return!0x1;}}function Mn(_0x107cfa){const _0x5a90c5=_0x142fa8;return _0x107cfa===!0x0||_0x107cfa===_0x5a90c5(0x403)||_0x107cfa===0x1||_0x107cfa==='1';}function Nn(_0x51cac4,_0x3c650d,_0x3cfb3b,_0x2067bc){const _0x39972b=_0x142fa8;let _0x476bb8=In(_0x51cac4,_0x2067bc),_0x530a73=In(_0x3cfb3b,_0x2067bc),_0x4e9dc7=_0x530a73[_0x39972b(0x7d)]>0x0&&_0x530a73[_0x39972b(0x3b4)](_0x3ec5eb=>_0x476bb8[_0x39972b(0x8b)](_0x3ec5eb));switch(_0x3c650d){case'is':case _0x39972b(0x265):return _0x4e9dc7;case _0x39972b(0x1b8):case _0x39972b(0x15c):return!_0x4e9dc7;default:return!0x1;}}function Pn(_0x37f565,_0x3058c8,_0x36b7de){const _0x14e819=_0x142fa8;let _0x3b6955=Fn(_0x37f565),_0x2df1a9=Fn(_0x36b7de);switch(_0x3058c8){case'is':return _0x3b6955===_0x2df1a9;case'isNot':return _0x3b6955!==_0x2df1a9;case'contains':return _0x2df1a9?_0x3b6955[_0x14e819(0x8b)](_0x2df1a9):!0x1;case'notContains':return!_0x2df1a9||!_0x3b6955[_0x14e819(0x8b)](_0x2df1a9);default:return!0x1;}}function Fn(_0x24261b){const _0x7743=_0x142fa8;if(Array[_0x7743(0x8f)](_0x24261b))return _0x24261b[_0x7743(0x1bc)](_0x148826=>Fn(_0x148826))[_0x7743(0x2b0)]('\x0a');if(_0x24261b&&typeof _0x24261b=='object'){let _0x5ab5b5=_0x24261b;return String(_0x5ab5b5['name']??_0x5ab5b5[_0x7743(0x163)]??_0x5ab5b5[_0x7743(0x2be)]??_0x5ab5b5[_0x7743(0x177)]??_0x5ab5b5['id']??'')[_0x7743(0x41a)]()[_0x7743(0x315)]();}return String(_0x24261b??'')[_0x7743(0x41a)]()[_0x7743(0x315)]();}function In(_0x3b210b,_0x49cf07){const _0x305b0a=_0x142fa8;let _0x3ebd56=Ln(_0x3b210b),_0x4adb96=Rn(_0x49cf07[_0x305b0a(0xfa)]??{});return _0x3ebd56['flatMap'](_0x2f87a9=>_0x4adb96[_0x305b0a(0x12f)](_0x2f87a9)??[_0x2f87a9])[_0x305b0a(0x13c)]((_0x29b322,_0x13cba7,_0x11b371)=>_0x29b322!==''&&_0x11b371[_0x305b0a(0x123)](_0x29b322)===_0x13cba7);}function Ln(_0x30db78){const _0x5c18c4=_0x142fa8;if(_0x30db78==null||_0x30db78==='')return[];if(Array['isArray'](_0x30db78))return _0x30db78['flatMap'](_0x55ebcf=>Ln(_0x55ebcf));if(_0x30db78&&typeof _0x30db78==_0x5c18c4(0x1e3)){let _0x2d4e4a=_0x30db78;return['id',_0x5c18c4(0x112),_0x5c18c4(0x163),'value',_0x5c18c4(0x2be)][_0x5c18c4(0x167)](_0xa57999=>Ln(_0x2d4e4a[_0xa57999]))[_0x5c18c4(0x13c)]((_0x4cd4be,_0x343155,_0x5d4de7)=>_0x5d4de7[_0x5c18c4(0x123)](_0x4cd4be)===_0x343155);}return[Fn(_0x30db78)];}function Rn(_0x183e8c){const _0x1bbae4=_0x142fa8;let _0x2b9bcb=new Map();return(Array['isArray'](_0x183e8c['options'])?_0x183e8c[_0x1bbae4(0xbd)]:[])[_0x1bbae4(0x2e7)](_0x34bb3f=>{const _0x12e1af=_0x1bbae4;if(!_0x34bb3f||typeof _0x34bb3f!=_0x12e1af(0x1e3))return;let _0x43f446=Ln(_0x34bb3f),_0x4b1b7=_0x43f446[_0x12e1af(0x13c)]((_0x1c242c,_0x12e23e)=>_0x1c242c!==''&&_0x43f446[_0x12e1af(0x123)](_0x1c242c)===_0x12e23e);_0x4b1b7[_0x12e1af(0x2e7)](_0x5272e7=>_0x2b9bcb[_0x12e1af(0x23a)](_0x5272e7,_0x4b1b7));}),_0x2b9bcb;}function H(_0x34bcb2,_0x43abf3={},_0x533d3d=_0x87e66a=>_0x87e66a,_0x221e03={}){const _0x4d25d1=_0x142fa8;let _0x194128=!_n[_0x4d25d1(0x8e)](_0x34bcb2),_0x69732c=_0x533d3d??(_0x519464=>_0x519464);return{'type':_0x34bcb2,'i18nKey':_0x4d25d1(0x22e)+_0x34bcb2,'enabled':_0x194128,'visibleInCreateMenu':_0x194128,'createDefaultConfig':_0x221e03[_0x4d25d1(0x29e)]??(()=>({})),'createDefaultValue':_0x221e03[_0x4d25d1(0x1e0)]??(_0x3fc121=>_0x3fc121[_0x4d25d1(0xba)]??null),'normalize':(_0x4b76ea,_0x60b145)=>_0x69732c(_0x4b76ea,_0x60b145),'validate':(_0x512f87,_0x585e22)=>{var _0x231ecd;return _0x194128?((_0x231ecd=_0x221e03['validate'])==null?void 0x0:_0x231ecd['call'](_0x221e03,_0x512f87,_0x585e22))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x4d1409,_0x2cc716)=>bn(_0x4d1409,_0x2cc716),'filter':(_0x24a7ea,_0x5a8295,_0x409583,_0xc13aae)=>xn(_0x24a7ea,_0x5a8295,_0x409583,_0xc13aae),'toPlainText':_0x221e03[_0x4d25d1(0x105)]??(_0x17c170=>_0x17c170==null?'':String(_0x17c170)),'fromPlainText':_0x221e03['fromPlainText']??(_0x219a94=>_0x69732c(_0x219a94,{'id':'','name':'','type':_0x34bcb2,'config':{}})),'getCapabilities':()=>({...gn,..._0x43abf3,'editable':_0x194128&&(_0x43abf3[_0x4d25d1(0x3c4)]??gn[_0x4d25d1(0x3c4)])})};}function zn(){const _0x570b7f=_0x142fa8;return[H(_0x2348b1[_0x570b7f(0x25b)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x570b7f(0x27b)}),'createDefaultValue':_0x48770d=>_0x48770d['defaultValue']??''}),H(_0x2348b1[_0x570b7f(0x14e)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x4b30a5=>_0x4b30a5==null||_0x4b30a5===''?null:String(_0x4b30a5),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x570b7f(0x2e8)}})}),H(_0x2348b1[_0x570b7f(0x3b0)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x179825=>Array[_0x570b7f(0x8f)](_0x179825)?_0x179825[_0x570b7f(0x1bc)](String):_0x179825==null?[]:[String(_0x179825)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':'manual'}}),'createDefaultValue':_0x453e7b=>_0x453e7b[_0x570b7f(0xba)]??[]}),H(_0x2348b1[_0x570b7f(0x30f)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x570b7f(0x386)}),'validate':Gn}),H(_0x2348b1[_0x570b7f(0x12d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x570b7f(0x22c)}),'createDefaultValue':_0x5c9bd9=>_0x5c9bd9[_0x570b7f(0xba)]??[],'validate':Kn}),H(_0x2348b1[_0x570b7f(0xff)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x24fb2e=>un(_0x24fb2e),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x2348b1[_0x570b7f(0x2af)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0xdd66d7=>_0xdd66d7==null?[]:Array['isArray'](_0xdd66d7)?_0xdd66d7:[_0xdd66d7],{'createDefaultValue':_0x2aa35c=>_0x2aa35c[_0x570b7f(0xba)]??[]}),H(_0x2348b1[_0x570b7f(0xe6)],{},_0x41462a=>_0x41462a==null||_0x41462a===''?null:Number(_0x41462a),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x2348b1['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x44b38a=>_0x44b38a===!0x0||_0x44b38a==='true'||_0x44b38a===0x1||_0x44b38a==='1',{'createDefaultConfig':()=>({'icon':_0x570b7f(0xda),'color':_0x570b7f(0x29f)}),'createDefaultValue':_0x643df5=>_0x643df5[_0x570b7f(0xba)]??!0x1,'validate':_0x136f40=>typeof _0x136f40==_0x570b7f(0x267)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20checkbox\x20value.'}}),H(_0x2348b1[_0x570b7f(0x20f)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x570b7f(0x26b)}),'toPlainText':_0xb61145=>Zn(_0xb61145),'fromPlainText':_0x21975a=>Xn(_0x21975a)}),H(_0x2348b1[_0x570b7f(0x1a7)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x570b7f(0x31d),'pattern':'General'}}),'createDefaultValue':()=>null}),H(_0x2348b1[_0x570b7f(0x2ed)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x570b7f(0x18f)}),'createDefaultValue':()=>null}),H(_0x2348b1[_0x570b7f(0x16c)],{'usableAsTitle':!0x0},_0x466c95=>_0x466c95==null?null:String(_0x466c95)['trim'](),{'validate':_0x32fccc=>_0x32fccc==null||_0x32fccc===''||/^\+?[0-9 ()-]{6,20}$/[_0x570b7f(0x413)](String(_0x32fccc))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x570b7f(0xf9)}}),H(_0x2348b1['Email'],{'usableAsTitle':!0x0},_0x155b3c=>_0x155b3c==null?null:String(_0x155b3c)[_0x570b7f(0x41a)](),{'validate':_0x43e399=>_0x43e399==null||_0x43e399===''||$n(String(_0x43e399))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20email\x20value.'}}),H(_0x2348b1[_0x570b7f(0x2cb)],{'usableAsGanttProgress':!0x0},_0x4abe18=>_0x4abe18==null||_0x4abe18===''?null:Number(_0x4abe18),{'createDefaultConfig':()=>({'format':_0x570b7f(0x146),'decimalPlaces':0x0,'color':_0x570b7f(0xb8),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x4bb833,_0x81a489)=>Yn(_0x4bb833,_0x81a489,_0x570b7f(0xdd))}),H(_0x2348b1[_0x570b7f(0x1c1)],{},_0x49e0bc=>_0x49e0bc==null||_0x49e0bc===''?null:Number(_0x49e0bc),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x2348b1[_0x570b7f(0x41d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0xc86aca=>_0xc86aca==null||_0xc86aca===''?null:Number(_0xc86aca),{'createDefaultConfig':()=>({'icon':'star','min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x46605f,_0xee2154)=>Yn(_0x46605f,_0xee2154,_0x570b7f(0x329))}),H(_0x2348b1['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x5a8bdc,_0x5caa1b)=>ze(_0x5a8bdc,_0x5caa1b[_0x570b7f(0xfa)]['multiple']===!0x0)}),H(_0x2348b1[_0x570b7f(0x416)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x2348b1[_0x570b7f(0x103)],{'editable':!0x1,'groupable':!0x0},_0x45f1fb=>_0x45f1fb==null?null:String(_0x45f1fb),{'createDefaultConfig':()=>({'provider':_0x570b7f(0x2b2)}),'createDefaultValue':()=>null}),H(_0x2348b1['UpdatedBy'],{'editable':!0x1,'groupable':!0x0},_0x3e3269=>_0x3e3269==null?null:String(_0x3e3269),{'createDefaultConfig':()=>({'provider':_0x570b7f(0x2b2)}),'createDefaultValue':()=>null}),H(_0x2348b1[_0x570b7f(0x434)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x3ccaa0=>un(_0x3ccaa0),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x2348b1[_0x570b7f(0x259)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x288fd1=>un(_0x288fd1),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x488ba8=_0x142fa8;return{'pattern':'#,##0.00','decimalPlaces':0x2,'separatorStyle':_0x488ba8(0xf6),'useThousands':!0x0,'abbreviation':_0x488ba8(0xd6),'allowNegative':!0x0};}function Vn(){const _0x28b257=_0x142fa8;return{'locale':_0x28b257(0x31a),'pattern':_0x28b257(0x101),'includeTime':!0x1,'hourCycle':_0x28b257(0xb9),'defaultMode':'none'};}function Hn(_0x59856d){return _0x59856d==null||_0x59856d===''?[]:Array['isArray'](_0x59856d)?_0x59856d['map'](String):[String(_0x59856d)];}function Un(_0x9d0d28){const _0x34c5e5=_0x142fa8;return typeof _0x9d0d28==_0x34c5e5(0x3a1)?_0x9d0d28:'';}function Wn(_0x3ddc1a,_0x3fe871){const _0x299f58=_0x142fa8;return _0x3ddc1a==null||_0x3ddc1a===''?_0x3fe871[_0x299f58(0xfa)][_0x299f58(0x32f)]===!0x0?[]:null:_0x3fe871[_0x299f58(0xfa)][_0x299f58(0x32f)]===!0x0?Array[_0x299f58(0x8f)](_0x3ddc1a)?_0x3ddc1a[_0x299f58(0x1bc)](String):[String(_0x3ddc1a)]:Array[_0x299f58(0x8f)](_0x3ddc1a)?String(_0x3ddc1a[0x0]??'')||null:String(_0x3ddc1a);}function Gn(_0x31e172,_0x2f1766){const _0x202bba=_0x142fa8;return _0x2f1766['config'][_0x202bba(0x32f)]===!0x0?Kn(_0x31e172):_0x31e172==null||_0x31e172===''||typeof _0x31e172==_0x202bba(0x3a1)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x202bba(0x3f6)};}function Kn(_0x32e530){const _0x8e54d4=_0x142fa8;return _0x32e530==null||Array['isArray'](_0x32e530)&&_0x32e530[_0x8e54d4(0x40c)](_0x4c9287=>typeof _0x4c9287==_0x8e54d4(0x3a1))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x8e54d4(0x374)};}function qn(_0x467588){const _0xaa7258=_0x142fa8;return _0x467588==null||typeof _0x467588==_0xaa7258(0xcb)&&Number[_0xaa7258(0x1a1)](_0x467588)?{'valid':!0x0}:{'valid':!0x1,'reason':_0xaa7258(0x1a0)};}function Jn(_0x4872be,_0x2addd0){const _0x3cd775=_0x142fa8;return _0x4872be==null||_0x4872be===''?{'valid':!0x0}:typeof _0x4872be!=_0x3cd775(0xcb)||!Number['isFinite'](_0x4872be)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x2addd0[_0x3cd775(0xfa)][_0x3cd775(0x2f6)]===!0x1&&_0x4872be<0x0?{'valid':!0x1,'reason':_0x3cd775(0x2d2)}:{'valid':!0x0};}function Yn(_0xa5bd37,_0x11ea46,_0x4638b9){const _0x14c082=_0x142fa8;let _0x5ad033=Jn(_0xa5bd37,_0x11ea46);if(!_0x5ad033['valid']||_0xa5bd37==null||_0xa5bd37==='')return _0x5ad033;let _0x450299=Number(_0x11ea46[_0x14c082(0xfa)][_0x14c082(0x27d)]??_0x11ea46[_0x14c082(0xfa)][_0x14c082(0x29b)]??0x0),_0x45cfbb=Number(_0x11ea46['config'][_0x14c082(0x41f)]??_0x11ea46[_0x14c082(0xfa)][_0x14c082(0x38e)]??0x64),_0x519948=Number(_0xa5bd37);return _0x519948>=_0x450299&&_0x519948<=_0x45cfbb?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4638b9};}function Xn(_0x179f59){const _0x2557cf=_0x142fa8;if(_0x179f59==null||_0x179f59==='')return null;if(typeof _0x179f59==_0x2557cf(0x1e3)&&!Array[_0x2557cf(0x8f)](_0x179f59)){let _0x432e09=_0x179f59,_0x305936=typeof _0x432e09['text']=='string'?_0x432e09['text'][_0x2557cf(0x41a)]():'',_0x31496d=typeof _0x432e09[_0x2557cf(0xfe)]=='string'?_0x432e09[_0x2557cf(0xfe)][_0x2557cf(0x41a)]():'',_0x1cf5f5=Qn(_0x31496d||_0x305936);return _0x1cf5f5?{'text':_0x305936||_0x31496d||_0x1cf5f5,'url':_0x1cf5f5}:null;}let _0xae0fd6=String(_0x179f59)[_0x2557cf(0x41a)](),_0x26e433=Qn(_0xae0fd6);return _0x26e433?{'text':_0xae0fd6,'url':_0x26e433}:null;}function Zn(_0x441471){const _0x3fbeb=_0x142fa8;if(_0x441471==null)return'';if(typeof _0x441471=='object'&&!Array['isArray'](_0x441471)){let _0x22925e=_0x441471;return String(_0x22925e[_0x3fbeb(0x2be)]||_0x22925e['url']||'');}return String(_0x441471);}function Qn(_0x116799){const _0x57ff4a=_0x142fa8;let _0x51621e=_0x116799[_0x57ff4a(0x41a)]();if(!_0x51621e)return'';let _0x52036f=/^[a-z][a-z\d+.-]*:/i[_0x57ff4a(0x413)](_0x51621e)?_0x51621e:_0x51621e[_0x57ff4a(0x38d)]('//')?'https:'+_0x51621e:_0x57ff4a(0x415)+_0x51621e;try{let _0x52e52d=new URL(_0x52036f);return _0x52e52d[_0x57ff4a(0x26d)]===_0x57ff4a(0x93)||_0x52e52d[_0x57ff4a(0x26d)]===_0x57ff4a(0x410)?_0x52e52d[_0x57ff4a(0x92)]:'';}catch{return'';}}function $n(_0x4247a9){const _0x26264e=_0x142fa8;let _0x27bd44=_0x4247a9[_0x26264e(0x123)]('@');if(_0x27bd44<=0x0||_0x27bd44!==_0x4247a9[_0x26264e(0xdc)]('@'))return!0x1;let _0x36f38c=_0x4247a9[_0x26264e(0x3e0)](_0x27bd44+0x1);return _0x36f38c[_0x26264e(0x8b)]('.')&&!_0x4247a9[_0x26264e(0x8b)]('\x20')&&!_0x36f38c['startsWith']('.')&&!_0x36f38c[_0x26264e(0x216)]('.');}const U={'table':_0x3cbdf1=>['tables',_0x3cbdf1],'field':(_0x230972,_0x2e4f21)=>[_0x142fa8(0x3bd),_0x230972,_0x142fa8(0x37f),_0x2e4f21],'fieldOrder':(_0x40c146,_0x22b23c)=>[_0x142fa8(0x3bd),_0x40c146,'fieldOrder',_0x22b23c],'record':(_0x5144ff,_0x53ae79)=>[_0x142fa8(0x3bd),_0x5144ff,_0x142fa8(0x309),_0x53ae79],'cell':(_0x25cf00,_0x52b53a,_0x5018b0)=>[_0x142fa8(0x3bd),_0x25cf00,'records',_0x52b53a,'values',_0x5018b0],'cellData':(_0x11ea6e,_0x4c40e7,_0x4e3deb)=>[_0x142fa8(0x3bd),_0x11ea6e,_0x142fa8(0x3b1),String(_0x4c40e7),String(_0x4e3deb)],'attachmentSet':(_0x5aa6d4,_0x3c534c)=>[_0x142fa8(0x3bd),_0x5aa6d4,_0x142fa8(0x1d4),_0x142fa8(0x2ff),_0x3c534c],'attachment':(_0x528fbd,_0xbbefe2)=>[_0x142fa8(0x3bd),_0x528fbd,_0x142fa8(0x1d4),_0x142fa8(0x13d),_0xbbefe2],'view':(_0x1d0511,_0x2c93a3)=>[_0x142fa8(0x3bd),_0x1d0511,_0x142fa8(0x1df),_0x2c93a3],'viewFieldHidden':(_0x187974,_0x55db78,_0x242348)=>[_0x142fa8(0x3bd),_0x187974,_0x142fa8(0x1df),_0x55db78,_0x142fa8(0x241),_0x242348,'hidden']};var W=class{[_0x142fa8(0xd7)](_0x3a1888,_0x56b5ae){const _0xfcd54a=_0x142fa8;let _0x1726ec=this[_0xfcd54a(0x133)](_0x3a1888,_0x3a1888[_0xfcd54a(0x112)],_0x56b5ae);return R([this[_0xfcd54a(0x37c)]([_0xfcd54a(0x112)],_0x3a1888[_0xfcd54a(0x112)],_0x56b5ae),..._0x1726ec?[_0x1726ec]:[]]);}[_0x142fa8(0x133)](_0x2e8ba1,_0x4f0809,_0x4fca68){const _0x37758f=_0x142fa8;let _0x5bb7c8=Object['values'](_0x2e8ba1[_0x37758f(0x3bd)])[_0x37758f(0x167)](_0x447e5c=>Object[_0x37758f(0x307)](_0x447e5c[_0x37758f(0x37f)])[_0x37758f(0x167)](_0x451cb8=>{const _0x4223b7=_0x37758f;var _0x55bcf1,_0x5952b5;if(_0x451cb8['type']!==_0x2348b1['Formula'])return[];let _0x3a4614=String(((_0x55bcf1=_0x451cb8[_0x4223b7(0xfa)])==null?void 0x0:_0x55bcf1[_0x4223b7(0x19a)])??''),_0x2e51ef=_0x499a6d(_0x3a4614,_0x4f0809,_0x4fca68);return _0x2e51ef===_0x3a4614?[]:[this['_replaceOptional']([...U[_0x4223b7(0x202)](_0x447e5c['id'],_0x451cb8['id']),_0x4223b7(0xfa),_0x4223b7(0x19a)],(_0x5952b5=_0x451cb8['config'])==null?void 0x0:_0x5952b5[_0x4223b7(0x19a)],_0x2e51ef)];}));return _0x5bb7c8[_0x37758f(0x7d)]>0x0?R(_0x5bb7c8):void 0x0;}[_0x142fa8(0x287)](_0x310e3d,_0x1057fb,_0x9850d6=_0x310e3d[_0x142fa8(0x1c3)][_0x142fa8(0x7d)]){const _0x22fc99=_0x142fa8;let _0x80a549=_0x2e7cd5(_0x1057fb['name'],_0x41c34(_0x310e3d)[_0x22fc99(0x307)](),_0x1057fb[_0x22fc99(0x227)]),_0x2eba6e=_0x1057fb['formulaName']===_0x80a549?_0x1057fb:{..._0x1057fb,'formulaName':_0x80a549};return R([...this['_materializeFormulaTableNames'](_0x310e3d),_0x5846ca[_0x22fc99(0xae)](U[_0x22fc99(0x108)](_0x1057fb['id']),_0x2eba6e),_0x5846ca[_0x22fc99(0xae)]([_0x22fc99(0x1c3),_0x9850d6],_0x1057fb['id'])]);}[_0x142fa8(0xc2)](_0x1398d4,_0x46b822,_0x30caed){const _0x4c2f3a=_0x142fa8;let _0x154db5=_0x1398d4[_0x4c2f3a(0x3bd)][_0x46b822];return R([...this[_0x4c2f3a(0x17a)](_0x1398d4),_0x5846ca['replaceOp']([...U[_0x4c2f3a(0x108)](_0x46b822),_0x4c2f3a(0x112)],_0x154db5[_0x4c2f3a(0x112)],_0x30caed)]);}[_0x142fa8(0x20c)](_0x2292db,_0x1174dd){const _0x1ff80d=_0x142fa8;let _0x115747=_0x2292db[_0x1ff80d(0x3bd)][_0x1174dd],_0xd90768=_0x2292db[_0x1ff80d(0x1c3)][_0x1ff80d(0x123)](_0x1174dd);return R([...this['_materializeFormulaTableNames'](_0x2292db,new Set([_0x1174dd])),_0x5846ca[_0x1ff80d(0xa6)](U[_0x1ff80d(0x108)](_0x1174dd),_0x115747),_0x5846ca[_0x1ff80d(0xa6)]([_0x1ff80d(0x1c3),_0xd90768],_0x1174dd)]);}['createRecord'](_0x2ba6a4,_0x4933ec,_0x2a0c84){const _0x283bbd=_0x142fa8;return this[_0x283bbd(0xd0)](_0x2ba6a4,_0x4933ec,[_0x2a0c84]);}['createRecords'](_0x16b650,_0x59002a,_0x12591f){const _0xec4f72=_0x142fa8;let _0x54f577=_0x16b650['tables'][_0x59002a],_0x4cd417=_0x12591f[_0xec4f72(0x13c)](_0x5dafec=>_0x5dafec&&!_0x54f577[_0xec4f72(0x309)][_0x5dafec['id']])[_0xec4f72(0x1bc)](_0x12190e=>({..._0x12190e,'values':{..._0x12190e[_0xec4f72(0x307)],[_0x48af21]:_0x12190e['id']}}));if(!_0x4cd417[_0xec4f72(0x7d)])return _0x5846ca[_0xec4f72(0x2fd)]([...U['table'](_0x59002a),_0xec4f72(0x309)],_0x54f577[_0xec4f72(0x309)],_0x54f577[_0xec4f72(0x309)]);let _0x371d2a=new _0x5846ca[(_0xec4f72(0x42f))](),_0x39c8f3=[..._0x4cd417][_0xec4f72(0x34b)]((_0x21bea8,_0x1e1b36)=>_0x21bea8['id']<_0x1e1b36['id']?-0x1:+(_0x21bea8['id']>_0x1e1b36['id'])),_0x564bb3=[...U[_0xec4f72(0x108)](_0x59002a),_0xec4f72(0x309)];_0x371d2a[_0xec4f72(0x18d)](_0x564bb3);for(let _0x39a91f of _0x39c8f3)_0x371d2a['descend'](_0x39a91f['id']),_0x371d2a[_0xec4f72(0x98)]('i',_0x39a91f),_0x371d2a[_0xec4f72(0x3d9)]();for(let _0x3cda11=0x0;_0x3cda11<_0x564bb3[_0xec4f72(0x7d)];_0x3cda11+=0x1)_0x371d2a[_0xec4f72(0x3d9)]();return R([_0x371d2a[_0xec4f72(0x12f)](),this[_0xec4f72(0x261)](_0x16b650,_0x59002a,_0x4cd417)]);}['deleteRecord'](_0x32a264,_0x2bd6e0,_0x45fb4b){const _0x1f28c8=_0x142fa8;return this[_0x1f28c8(0x139)](_0x32a264,_0x2bd6e0,[_0x45fb4b]);}[_0x142fa8(0x139)](_0x4d82cb,_0x63d7db,_0x5506ef){const _0x457569=_0x142fa8;let _0x12b637=_0x4d82cb[_0x457569(0x3bd)][_0x63d7db],_0x127bc0=Array[_0x457569(0x35b)](new Set(_0x5506ef))['filter'](_0x2e9f1e=>_0x12b637[_0x457569(0x309)][_0x2e9f1e]);if(!_0x127bc0[_0x457569(0x7d)])return _0x5846ca[_0x457569(0x2fd)]([...U[_0x457569(0x108)](_0x63d7db),_0x457569(0x309)],_0x12b637[_0x457569(0x309)],_0x12b637[_0x457569(0x309)]);let _0x38d862=new Set(_0x127bc0),_0x51d3c3=et(_0x12b637,_0x127bc0)['map'](_0x463173=>this[_0x457569(0x1ef)](_0x4d82cb,_0x63d7db,_0x463173[_0x457569(0x1ee)],_0x463173[_0x457569(0x3c1)],''));return R([this['_deleteRecordsBaseOp'](_0x4d82cb,_0x63d7db,_0x127bc0,_0x38d862),..._0x51d3c3]);}[_0x142fa8(0xc9)](_0x20b883,_0x4a8116,_0x1a1883,_0x8d4e1e){const _0xfc706f=_0x142fa8;let _0x34db4e=_0x20b883[_0xfc706f(0x3bd)][_0x1a1883],_0x23a1f5=Array[_0xfc706f(0x35b)](new Set(_0x8d4e1e))['filter'](_0x268883=>_0x34db4e[_0xfc706f(0x309)][_0x268883]),_0x67ae3c=new Set(_0x23a1f5);return R([new z()[_0xfc706f(0x3f8)](_0x20b883,this[_0xfc706f(0x2bd)](_0x20b883,_0x1a1883,_0x23a1f5,_0x67ae3c)),...et(_0x34db4e,_0x23a1f5)[_0xfc706f(0x1bc)](_0x490140=>this['updateCell'](_0x4a8116,_0x1a1883,_0x490140[_0xfc706f(0x1ee)],_0x490140[_0xfc706f(0x3c1)],_0x490140[_0xfc706f(0x116)]??''))]);}[_0x142fa8(0x2bd)](_0x127b21,_0x27ad3b,_0x29f313,_0x4a6524){const _0x3ecb73=_0x142fa8;let _0x5293dd=_0x127b21[_0x3ecb73(0x3bd)][_0x27ad3b],_0x5988b4=_0x29f313[_0x3ecb73(0x1bc)](_0x2cbf22=>{const _0x1e4722=_0x3ecb73;var _0x41b354;return{'recordId':_0x2cbf22,'index':((_0x41b354=_0x5293dd[_0x1e4722(0x18c)])==null?void 0x0:_0x41b354[_0x1e4722(0x123)](_0x2cbf22))??-0x1};})[_0x3ecb73(0x13c)](_0x541dc6=>_0x541dc6[_0x3ecb73(0x2e6)]>=0x0)[_0x3ecb73(0x34b)]((_0x54047b,_0x281528)=>_0x281528['index']-_0x54047b[_0x3ecb73(0x2e6)]);return R([..._0x29f313[_0x3ecb73(0x1bc)](_0x5acd46=>_0x5846ca[_0x3ecb73(0xa6)](U[_0x3ecb73(0x3ad)](_0x27ad3b,_0x5acd46),_0x5293dd['records'][_0x5acd46])),..._0x5988b4[_0x3ecb73(0x1bc)](({recordId:_0x38c939,index:_0x331146})=>_0x5846ca[_0x3ecb73(0xa6)]([_0x3ecb73(0x3bd),_0x27ad3b,_0x3ecb73(0x18c),_0x331146],_0x38c939)),...this[_0x3ecb73(0x1fc)](_0x5293dd,_0x27ad3b,_0x6887d1=>{const _0x3839e4=_0x3ecb73;let _0x37f519=_0x6887d1[_0x3839e4(0x3e0)](_0x6887d1['lastIndexOf']('\x1f')+0x1);return _0x4a6524['has'](_0x37f519);})]);}[_0x142fa8(0x24c)](_0x3b6c51,_0x1838e6,_0x918d48,_0x4d2147){const _0x58e227=_0x142fa8;return this[_0x58e227(0x277)](_0x3b6c51,_0x1838e6,{..._0x4d2147,'values':{..._0x3b6c51[_0x58e227(0x3bd)][_0x1838e6]['records'][_0x918d48]['values'],..._0x4d2147[_0x58e227(0x307)],[_0x48af21]:_0x4d2147['id']}});}[_0x142fa8(0x2a4)](_0x3af108,_0xe78bcd,_0x59a686,_0x1c5b9b){const _0x3cfad6=_0x142fa8;let _0x5dcc18=_0x3af108[_0x3cfad6(0x3bd)][_0xe78bcd],_0x38decc=[...U[_0x3cfad6(0x3ad)](_0xe78bcd,_0x59a686),_0x3cfad6(0xc0)],_0x11b25d=Object['values'](_0x5dcc18[_0x3cfad6(0x309)])[_0x3cfad6(0x1bc)](_0x27d32d=>_0x27d32d['id']===_0x59a686?{..._0x27d32d,'orderKey':_0x1c5b9b}:_0x27d32d)['sort']((_0xbba4d9,_0x5b6ba0)=>String(_0xbba4d9['orderKey']??_0xbba4d9['id'])[_0x3cfad6(0x94)](String(_0x5b6ba0['orderKey']??_0x5b6ba0['id'])))[_0x3cfad6(0x1bc)](_0x94cb79=>_0x94cb79['id']),_0xaaeea6=[...U[_0x3cfad6(0x108)](_0xe78bcd),_0x3cfad6(0x18c)];return R([this['_replaceOptional'](_0x38decc,_0x5dcc18['records'][_0x59a686]['orderKey'],_0x1c5b9b),_0x5dcc18['recordOrder']?_0x5846ca[_0x3cfad6(0x2fd)](_0xaaeea6,_0x5dcc18[_0x3cfad6(0x18c)],_0x11b25d):_0x5846ca['insertOp'](_0xaaeea6,_0x11b25d)]);}[_0x142fa8(0x1ef)](_0x3c35e8,_0x2deb42,_0x24bc9e,_0x12dd60,_0x12621c){const _0xdbee29=_0x142fa8;var _0x5416c9,_0x84d549;let _0x214c2a=_0x3c35e8[_0xdbee29(0x3bd)][_0x2deb42],_0x31ab39=ar(_0x214c2a,_0x24bc9e,_0x12dd60)?_0x214c2a:L(_0x214c2a),_0x281fef=(_0x5416c9=_0x31ab39[_0xdbee29(0x276)])==null?void 0x0:_0x5416c9[_0x24bc9e],_0x239009=(_0x84d549=_0x31ab39[_0xdbee29(0x425)])==null?void 0x0:_0x84d549[_0x12dd60];if(_0x281fef==null||_0x239009==null){var _0x827b96;return this[_0xdbee29(0x37c)](U['cell'](_0x2deb42,_0x24bc9e,_0x12dd60),(_0x827b96=_0x3c35e8[_0xdbee29(0x3bd)][_0x2deb42])==null||(_0x827b96=_0x827b96['records'][_0x24bc9e])==null?void 0x0:_0x827b96[_0xdbee29(0x307)][_0x12dd60],_0x12621c);}return this[_0xdbee29(0x2c5)](_0x3c35e8,_0x2deb42,[{'row':_0x281fef,'col':_0x239009,'value':_0x12621c}]);}['setRecordValues'](_0x47e6f8,_0x5ce997,_0x10fe96){const _0x1e1c75=_0x142fa8;let _0x4e2c32=_0x47e6f8[_0x1e1c75(0x3bd)][_0x5ce997],_0x1cce76=_0x10fe96['every'](_0x4dbe73=>Object[_0x1e1c75(0xd3)](_0x4dbe73[_0x1e1c75(0x307)])[_0x1e1c75(0x40c)](_0x449ce3=>ar(_0x4e2c32,_0x4dbe73[_0x1e1c75(0x1ee)],_0x449ce3)))?_0x4e2c32:L(_0x4e2c32),_0x4cbb1a=_0x10fe96[_0x1e1c75(0x167)](_0x33a3de=>Object[_0x1e1c75(0x274)](_0x33a3de[_0x1e1c75(0x307)])[_0x1e1c75(0x167)](([_0x50c6eb,_0x1c3c47])=>{const _0x7c2b5d=_0x1e1c75;var _0x5c3eaf,_0x34bc8;let _0x3ac2a1=(_0x5c3eaf=_0x1cce76[_0x7c2b5d(0x276)])==null?void 0x0:_0x5c3eaf[_0x33a3de[_0x7c2b5d(0x1ee)]],_0x55514c=(_0x34bc8=_0x1cce76[_0x7c2b5d(0x425)])==null?void 0x0:_0x34bc8[_0x50c6eb];return _0x3ac2a1==null||_0x55514c==null?[]:[{'row':_0x3ac2a1,'col':_0x55514c,'value':_0x1c3c47}];})),_0x449def=_0x10fe96[_0x1e1c75(0x167)](_0x44aaa8=>Object[_0x1e1c75(0x274)](_0x44aaa8['recordPatch']??{})['map'](([_0x277605,_0x2e7579])=>{const _0x45e75d=_0x1e1c75;var _0x5479f3;let _0x2f26ca=[...U[_0x45e75d(0x3ad)](_0x5ce997,_0x44aaa8[_0x45e75d(0x1ee)]),_0x277605],_0xf26eac=(_0x5479f3=_0x47e6f8[_0x45e75d(0x3bd)][_0x5ce997])==null||(_0x5479f3=_0x5479f3[_0x45e75d(0x309)][_0x44aaa8[_0x45e75d(0x1ee)]])==null?void 0x0:_0x5479f3[_0x277605];return this[_0x45e75d(0x37c)](_0x2f26ca,_0xf26eac,_0x2e7579);}));return R([this[_0x1e1c75(0x2c5)](_0x47e6f8,_0x5ce997,_0x4cbb1a),..._0x449def]);}[_0x142fa8(0x2c5)](_0x376cbb,_0x5a1da8,_0x1edc17){const _0xf47f2=_0x142fa8;let _0x3adee6=_0x376cbb[_0xf47f2(0x3bd)][_0x5a1da8],_0x138a6c=_0x1edc17[_0xf47f2(0x40c)](_0x192aa8=>or(_0x3adee6,_0x192aa8[_0xf47f2(0x1ae)],_0x192aa8[_0xf47f2(0x1c6)]))?_0x3adee6:L(_0x3adee6),_0x423949=new Map(),_0x517e33=_0x1edc17[_0xf47f2(0x167)](_0x2f1c38=>{const _0x3db2ef=_0xf47f2;var _0x311f0e,_0x31e294,_0x4c7aac,_0x2115b6;let _0x21a344=(_0x311f0e=_0x138a6c['colId'])==null?void 0x0:_0x311f0e[_0x2f1c38[_0x3db2ef(0x1c6)]],_0x2e771f=(_0x31e294=_0x138a6c[_0x3db2ef(0x3f0)])==null?void 0x0:_0x31e294[_0x2f1c38[_0x3db2ef(0x1ae)]],_0x1abc5e=_0x21a344?_0x138a6c['fields'][_0x21a344]:void 0x0;if(_0x21a344===_0x48af21||(_0x1abc5e==null?void 0x0:_0x1abc5e[_0x3db2ef(0x35c)])===_0x2348b1[_0x3db2ef(0x416)])throw Error(_0x3db2ef(0x136));let _0x355fa0=xt(_0x2f1c38[_0x3db2ef(0x177)],_0x1abc5e),_0x1c739d=(_0x4c7aac=_0x138a6c[_0x3db2ef(0x3b1)])==null||(_0x4c7aac=_0x4c7aac[_0x2f1c38['row']])==null?void 0x0:_0x4c7aac[_0x2f1c38[_0x3db2ef(0x1c6)]],_0x58c756=this[_0x3db2ef(0x37c)](U['cellData'](_0x5a1da8,_0x2f1c38['row'],_0x2f1c38[_0x3db2ef(0x1c6)]),_0x1c739d,_0x355fa0);if(!_0x21a344||!_0x2e771f)return[_0x58c756];let _0x2ff2b7=(_0x2115b6=_0x138a6c['records'][_0x2e771f])==null?void 0x0:_0x2115b6[_0x3db2ef(0x307)][_0x21a344],_0x4713ab=(_0x1abc5e==null?void 0x0:_0x1abc5e[_0x3db2ef(0x35c)])===_0x2348b1[_0x3db2ef(0x2af)]?kt(_0x2f1c38['value']):wt(_0x2f1c38[_0x3db2ef(0x177)],_0x355fa0,_0x1abc5e,_0x138a6c,_0x2e771f),_0x2193f1=[_0x58c756,this[_0x3db2ef(0x37c)](U[_0x3db2ef(0x346)](_0x5a1da8,_0x2e771f,_0x21a344),_0x2ff2b7,_0x4713ab)];return(_0x1abc5e==null?void 0x0:_0x1abc5e[_0x3db2ef(0x35c)])===_0x2348b1[_0x3db2ef(0x2af)]&&_0x423949[_0x3db2ef(0x23a)](Et(_0x21a344,_0x2e771f),{'recordId':_0x2e771f,'fieldId':_0x21a344,'attachments':_0x4713ab}),_0x2193f1;});return _0x517e33[_0xf47f2(0x7d)]?R([..._0x517e33,...this[_0xf47f2(0x102)](_0x138a6c,_0x5a1da8,Array['from'](_0x423949[_0xf47f2(0x307)]()))]):_0x5846ca[_0xf47f2(0x2fd)]([_0xf47f2(0x3bd),_0x5a1da8,'cellData'],_0x138a6c['cellData'],_0x138a6c[_0xf47f2(0x3b1)]);}[_0x142fa8(0x82)](_0x407eea,_0xe2ecb7,_0x597409){const _0x8eeedf=_0x142fa8;let _0x5d0479=_0x407eea['tables'][_0xe2ecb7];if(_0x5d0479['fields'][_0x597409[_0x8eeedf(0x202)]['id']]||_0x5d0479[_0x8eeedf(0x143)][_0x8eeedf(0x8b)](_0x597409[_0x8eeedf(0x202)]['id']))return _0x5846ca[_0x8eeedf(0x2fd)]([_0x8eeedf(0x3bd),_0xe2ecb7,'fieldOrder'],_0x5d0479['fieldOrder'],_0x5d0479[_0x8eeedf(0x143)]);let _0x25a3ef=Math[_0x8eeedf(0x41f)](0x1,_0x597409[_0x8eeedf(0x2e6)]??_0x5d0479[_0x8eeedf(0x143)][_0x8eeedf(0x7d)]),_0x250978=Object[_0x8eeedf(0x307)](_0x5d0479[_0x8eeedf(0x1df)]??{})[_0x8eeedf(0x167)](_0x4bb342=>{const _0x516d0b=_0x8eeedf;var _0x293a9e;if(!_0x4bb342[_0x516d0b(0x143)]||_0x4bb342[_0x516d0b(0x143)][_0x516d0b(0x8b)](_0x597409['field']['id']))return[];let _0x301a14=ur(((_0x293a9e=_0x597409[_0x516d0b(0x431)])==null?void 0x0:_0x293a9e[_0x4bb342['id']])??_0x25a3ef,_0x4bb342[_0x516d0b(0x143)][_0x516d0b(0x7d)]);return[_0x5846ca[_0x516d0b(0xae)]([...U['view'](_0xe2ecb7,_0x4bb342['id']),_0x516d0b(0x143),_0x301a14],_0x597409[_0x516d0b(0x202)]['id'])];});return R([..._0x597409[_0x8eeedf(0x202)][_0x8eeedf(0x35c)]===_0x2348b1['Formula']?this[_0x8eeedf(0x17a)](_0x407eea):[],_0x5846ca[_0x8eeedf(0xae)](U[_0x8eeedf(0x202)](_0xe2ecb7,_0x597409[_0x8eeedf(0x202)]['id']),_0x597409[_0x8eeedf(0x202)]),_0x5846ca[_0x8eeedf(0xae)](U[_0x8eeedf(0x143)](_0xe2ecb7,_0x25a3ef),_0x597409[_0x8eeedf(0x202)]['id']),..._0x250978]);}[_0x142fa8(0x255)](_0x1ee8e1,_0x334374,_0x1bb005,_0xb82435){const _0x4a583f=_0x142fa8;let _0x20e9e2=_0x1ee8e1[_0x4a583f(0x3bd)][_0x334374];if(!_0x20e9e2[_0x4a583f(0x37f)][_0x1bb005]||_0x20e9e2[_0x4a583f(0x37f)][_0xb82435['field']['id']]||_0x20e9e2[_0x4a583f(0x143)][_0x4a583f(0x8b)](_0xb82435[_0x4a583f(0x202)]['id']))return _0x5846ca[_0x4a583f(0x2fd)]([_0x4a583f(0x3bd),_0x334374,_0x4a583f(0x143)],_0x20e9e2[_0x4a583f(0x143)],_0x20e9e2['fieldOrder']);let _0x38eb90=_0xb82435[_0x4a583f(0x2e6)]??_0x20e9e2['fieldOrder'][_0x4a583f(0x123)](_0x1bb005)+0x1,_0x12715d=_0x20e9e2[_0x4a583f(0x143)][_0x4a583f(0x13c)](_0x32373c=>_0x32373c!==_0xb82435[_0x4a583f(0x202)]['id']),_0x1e2a5f=cr(_0x12715d,_0xb82435[_0x4a583f(0x202)]['id'],_0x38eb90),_0x50566d=Object[_0x4a583f(0x307)](_0x20e9e2[_0x4a583f(0x1df)]??{})[_0x4a583f(0x167)](_0x18451d=>{const _0x56767=_0x4a583f;var _0xec8c80,_0x41b1d6,_0x344d41,_0x3f9538;let _0x1de90b=(_0xec8c80=_0x18451d[_0x56767(0x143)])!=null&&_0xec8c80['length']?_0x18451d[_0x56767(0x143)]:_0x12715d;if(_0x1de90b[_0x56767(0x8b)](_0xb82435[_0x56767(0x202)]['id']))return[];let _0x22a393=cr(_0x1de90b,_0xb82435['field']['id'],((_0x41b1d6=_0xb82435[_0x56767(0x431)])==null?void 0x0:_0x41b1d6[_0x18451d['id']])??_0x38eb90),_0x340330=(_0x344d41=_0x18451d[_0x56767(0x241)])==null?void 0x0:_0x344d41[_0x1bb005];return[this[_0x56767(0x37c)]([...U[_0x56767(0x395)](_0x334374,_0x18451d['id']),'fieldOrder'],_0x18451d['fieldOrder'],_0x22a393),..._0x340330?[this[_0x56767(0x37c)]([...U[_0x56767(0x395)](_0x334374,_0x18451d['id']),_0x56767(0x241),_0xb82435[_0x56767(0x202)]['id']],(_0x3f9538=_0x18451d[_0x56767(0x241)])==null?void 0x0:_0x3f9538[_0xb82435[_0x56767(0x202)]['id']],_0x340330)]:[]];}),_0x390507=Object[_0x4a583f(0x307)](_0x20e9e2[_0x4a583f(0x309)])[_0x4a583f(0x13c)](_0x202a27=>Object[_0x4a583f(0x18b)]['hasOwnProperty'][_0x4a583f(0x3e6)](_0x202a27[_0x4a583f(0x307)],_0x1bb005))[_0x4a583f(0x1bc)](_0x5e156d=>this[_0x4a583f(0x37c)](U[_0x4a583f(0x346)](_0x334374,_0x5e156d['id'],_0xb82435[_0x4a583f(0x202)]['id']),_0x5e156d[_0x4a583f(0x307)][_0xb82435[_0x4a583f(0x202)]['id']],_0x5e156d[_0x4a583f(0x307)][_0x1bb005]));return R([..._0xb82435[_0x4a583f(0x202)][_0x4a583f(0x35c)]===_0x2348b1[_0x4a583f(0x1a7)]?this[_0x4a583f(0x17a)](_0x1ee8e1):[],_0x5846ca['insertOp'](U[_0x4a583f(0x202)](_0x334374,_0xb82435[_0x4a583f(0x202)]['id']),_0xb82435[_0x4a583f(0x202)]),_0x5846ca[_0x4a583f(0x2fd)]([_0x4a583f(0x3bd),_0x334374,_0x4a583f(0x143)],_0x20e9e2[_0x4a583f(0x143)],_0x1e2a5f),..._0x50566d,..._0x390507]);}[_0x142fa8(0x14c)](_0x3d0c70,_0x4e6c97,_0x1ad90a,_0x2d405f){const _0x44aa19=_0x142fa8;let _0x2cb87e=_0x3d0c70['tables'][_0x4e6c97][_0x44aa19(0x37f)][_0x1ad90a],_0x498f5b={..._0x2cb87e,..._0x2d405f};Object[_0x44aa19(0xd3)](_0x2d405f)['forEach'](_0x22d7f5=>{_0x2d405f[_0x22d7f5]===void 0x0&&delete _0x498f5b[_0x22d7f5];});let _0x229e98=er(_0x3d0c70[_0x44aa19(0x3bd)][_0x4e6c97],_0x1ad90a,_0x2cb87e,_0x498f5b);_0x498f5b=_0x229e98[_0x44aa19(0x202)];let _0x5a59ca=_0x5846ca['replaceOp'](U[_0x44aa19(0x202)](_0x4e6c97,_0x1ad90a),_0x2cb87e,_0x498f5b);return _0x498f5b[_0x44aa19(0x35c)]===_0x2348b1[_0x44aa19(0x1a7)]?R([...this[_0x44aa19(0x17a)](_0x3d0c70),_0x5a59ca,...this[_0x44aa19(0x219)](_0x3d0c70,_0x4e6c97,_0x1ad90a,_0x498f5b)]):R([_0x5a59ca,..._0x229e98[_0x44aa19(0x2f8)]['length']?[this[_0x44aa19(0x2c5)](_0x3d0c70,_0x4e6c97,_0x229e98[_0x44aa19(0x2f8)])]:[]]);}[_0x142fa8(0x356)](_0x70c7a,_0x8de905,_0x35564a,_0x5e09e1){const _0x432171=_0x142fa8;return this[_0x432171(0x14c)](_0x70c7a,_0x8de905,_0x35564a,_0x5e09e1);}[_0x142fa8(0xd8)](_0x4ee9dd,_0x39435f,_0x2f63f5){const _0x2db700=_0x142fa8;let _0x118a5d=_0x4ee9dd['tables'][_0x39435f];if(!(_0x118a5d!=null&&_0x118a5d[_0x2db700(0x37f)][_0x2f63f5])||_0x118a5d[_0x2db700(0x195)]===_0x2f63f5||_0x2f63f5===_0x48af21)return _0x5846ca[_0x2db700(0x2fd)]([_0x2db700(0x3bd),_0x39435f,_0x2db700(0x143)],_0x118a5d==null?void 0x0:_0x118a5d['fieldOrder'],_0x118a5d==null?void 0x0:_0x118a5d['fieldOrder']);let _0x512a2f=_0x118a5d[_0x2db700(0x143)][_0x2db700(0x123)](_0x2f63f5),_0x42d87a=Object[_0x2db700(0x307)](_0x118a5d[_0x2db700(0x1df)])['flatMap'](_0x1d7836=>{const _0x58f3da=_0x2db700;var _0x2fff04,_0x122980,_0x10a947,_0x456ff1,_0x2793e2,_0x58e168,_0xe322dd;let _0x15dc14=[],_0xff08fa=((_0x2fff04=_0x1d7836['fieldOrder'])==null?void 0x0:_0x2fff04[_0x58f3da(0x123)](_0x2f63f5))??-0x1;_0xff08fa>=0x0&&_0x15dc14[_0x58f3da(0x319)](_0x5846ca[_0x58f3da(0xa6)]([...U[_0x58f3da(0x395)](_0x39435f,_0x1d7836['id']),_0x58f3da(0x143),_0xff08fa],_0x2f63f5));let _0x1da360=(_0x122980=_0x1d7836[_0x58f3da(0x241)])==null?void 0x0:_0x122980[_0x2f63f5];_0x1da360!==void 0x0&&_0x15dc14['push'](_0x5846ca[_0x58f3da(0xa6)]([...U[_0x58f3da(0x395)](_0x39435f,_0x1d7836['id']),_0x58f3da(0x241),_0x2f63f5],_0x1da360));let _0x48a739=_0x1d7836[_0x58f3da(0x13c)]?{..._0x1d7836['filter'],'conditions':_0x1d7836['filter'][_0x58f3da(0x37b)][_0x58f3da(0x13c)](_0x3fbe40=>_0x3fbe40[_0x58f3da(0x3c1)]!==_0x2f63f5)}:_0x1d7836['filter'];_0x48a739&&_0x48a739[_0x58f3da(0x37b)][_0x58f3da(0x7d)]!==((_0x10a947=_0x1d7836[_0x58f3da(0x13c)])==null?void 0x0:_0x10a947[_0x58f3da(0x37b)][_0x58f3da(0x7d)])&&_0x15dc14[_0x58f3da(0x319)](this[_0x58f3da(0x37c)]([...U[_0x58f3da(0x395)](_0x39435f,_0x1d7836['id']),_0x58f3da(0x13c)],_0x1d7836[_0x58f3da(0x13c)],_0x48a739));let _0x47b46b=(_0x456ff1=_0x1d7836[_0x58f3da(0x34b)])==null?void 0x0:_0x456ff1[_0x58f3da(0x13c)](_0x3db067=>_0x3db067['fieldId']!==_0x2f63f5);_0x47b46b&&_0x47b46b[_0x58f3da(0x7d)]!==((_0x2793e2=_0x1d7836[_0x58f3da(0x34b)])==null?void 0x0:_0x2793e2['length'])&&_0x15dc14[_0x58f3da(0x319)](this[_0x58f3da(0x37c)]([...U[_0x58f3da(0x395)](_0x39435f,_0x1d7836['id']),_0x58f3da(0x34b)],_0x1d7836['sort'],_0x47b46b));let _0x524b43=(_0x58e168=_0x1d7836[_0x58f3da(0x22c)])==null?void 0x0:_0x58e168[_0x58f3da(0x13c)](_0x364b28=>_0x364b28[_0x58f3da(0x3c1)]!==_0x2f63f5);_0x524b43&&_0x524b43[_0x58f3da(0x7d)]!==((_0xe322dd=_0x1d7836[_0x58f3da(0x22c)])==null?void 0x0:_0xe322dd[_0x58f3da(0x7d)])&&_0x15dc14['push'](this[_0x58f3da(0x37c)]([...U[_0x58f3da(0x395)](_0x39435f,_0x1d7836['id']),'group'],_0x1d7836[_0x58f3da(0x22c)],_0x524b43));let _0x5b9ea3=lr(_0x1d7836[_0x58f3da(0xfa)],_0x2f63f5);return JSON[_0x58f3da(0x2b1)](_0x5b9ea3)!==JSON[_0x58f3da(0x2b1)](_0x1d7836[_0x58f3da(0xfa)])&&_0x15dc14[_0x58f3da(0x319)](_0x5846ca[_0x58f3da(0x2fd)]([...U[_0x58f3da(0x395)](_0x39435f,_0x1d7836['id']),'config'],_0x1d7836[_0x58f3da(0xfa)],_0x5b9ea3)),_0x15dc14;}),_0xeec8b7=Object[_0x2db700(0x307)](_0x118a5d[_0x2db700(0x309)])[_0x2db700(0x167)](_0x5309cb=>Object[_0x2db700(0x18b)][_0x2db700(0x26e)][_0x2db700(0x3e6)](_0x5309cb['values'],_0x2f63f5)?[_0x5846ca[_0x2db700(0xa6)](U[_0x2db700(0x346)](_0x39435f,_0x5309cb['id'],_0x2f63f5),_0x5309cb[_0x2db700(0x307)][_0x2f63f5])]:[]);return R([_0x5846ca['removeOp'](U[_0x2db700(0x202)](_0x39435f,_0x2f63f5),_0x118a5d[_0x2db700(0x37f)][_0x2f63f5]),_0x5846ca[_0x2db700(0xa6)](U['fieldOrder'](_0x39435f,_0x512a2f),_0x2f63f5),..._0x42d87a,..._0xeec8b7,...this['_deleteAttachmentResources'](_0x118a5d,_0x39435f,_0x3cad1d=>_0x3cad1d[_0x2db700(0x38d)](_0x2f63f5+'\x1f'))]);}['moveField'](_0x13eff3,_0x50c3cb,_0x22ab2f,_0x91a242){const _0x4eaeba=_0x142fa8;let _0x172cf5=_0x13eff3[_0x4eaeba(0x3bd)][_0x50c3cb]['fieldOrder'];if(_0x22ab2f===_0x48af21||_0x91a242[_0x4eaeba(0x1da)]===_0x48af21)throw Error(_0x4eaeba(0x223));let _0x3fcad8=sr(_0x172cf5,_0x22ab2f,_0x91a242);return _0x5846ca[_0x4eaeba(0x2fd)]([_0x4eaeba(0x3bd),_0x50c3cb,_0x4eaeba(0x143)],_0x172cf5,_0x3fcad8);}[_0x142fa8(0x87)](_0x2a6cb1,_0x38e52b,_0x34639d,_0x51853d=_0x2a6cb1[_0x142fa8(0x3bd)][_0x38e52b]['viewOrder']['length']){const _0x1fb1d2=_0x142fa8;return R([_0x5846ca[_0x1fb1d2(0xae)](U[_0x1fb1d2(0x395)](_0x38e52b,_0x34639d['id']),_0x34639d),_0x5846ca[_0x1fb1d2(0xae)]([_0x1fb1d2(0x3bd),_0x38e52b,_0x1fb1d2(0x29c),_0x51853d],_0x34639d['id'])]);}[_0x142fa8(0x2e2)](_0x400ce4,_0x3c2e45,_0x12f61b,_0x5dc467){const _0x5e2759=_0x142fa8;return _0x5846ca[_0x5e2759(0x2fd)]([...U[_0x5e2759(0x395)](_0x3c2e45,_0x12f61b),'name'],_0x400ce4[_0x5e2759(0x3bd)][_0x3c2e45][_0x5e2759(0x1df)][_0x12f61b][_0x5e2759(0x112)],_0x5dc467);}[_0x142fa8(0x185)](_0x457923,_0x5e738a,_0x5622d1){const _0x1c2320=_0x142fa8;let _0x459c16=_0x457923[_0x1c2320(0x3bd)][_0x5e738a],_0x451f17=_0x459c16['views'][_0x5622d1],_0x153d4a=_0x459c16[_0x1c2320(0x29c)]['indexOf'](_0x5622d1);return R([_0x5846ca[_0x1c2320(0xa6)](U['view'](_0x5e738a,_0x5622d1),_0x451f17),_0x5846ca['removeOp']([_0x1c2320(0x3bd),_0x5e738a,_0x1c2320(0x29c),_0x153d4a],_0x5622d1)]);}['moveView'](_0x5ee826,_0x33bae6,_0x2a1c14,_0x25d7e8){const _0x688c3a=_0x142fa8;let _0x1a579d=_0x5ee826[_0x688c3a(0x3bd)][_0x33bae6]['viewOrder'],_0x3d1d4d=sr(_0x1a579d,_0x2a1c14,{'beforeFieldId':_0x25d7e8[_0x688c3a(0x2ea)],'afterFieldId':_0x25d7e8['afterViewId']});return _0x5846ca[_0x688c3a(0x2fd)]([_0x688c3a(0x3bd),_0x33bae6,_0x688c3a(0x29c)],_0x1a579d,_0x3d1d4d);}[_0x142fa8(0x16f)](_0x23655b,_0xdf814e,_0x16dd05,_0x3a48f5){const _0x406a1b=_0x142fa8;let _0x53e4eb=_0x23655b['tables'][_0xdf814e][_0x406a1b(0x1df)][_0x16dd05]['config']??{},_0x6f965a={..._0x53e4eb,..._0x3a48f5};return Object[_0x406a1b(0xd3)](_0x3a48f5)[_0x406a1b(0x2e7)](_0x223e33=>{_0x3a48f5[_0x223e33]===void 0x0&&delete _0x6f965a[_0x223e33];}),_0x5846ca[_0x406a1b(0x2fd)]([...U[_0x406a1b(0x395)](_0xdf814e,_0x16dd05),'config'],_0x53e4eb,_0x6f965a);}[_0x142fa8(0x1de)](_0x34a9fb,_0x4418ee,_0x14121d,_0x2c2c6d){const _0x1ac23f=_0x142fa8;return this[_0x1ac23f(0x37c)]([...U[_0x1ac23f(0x395)](_0x4418ee,_0x14121d),_0x1ac23f(0x13c)],_0x34a9fb[_0x1ac23f(0x3bd)][_0x4418ee]['views'][_0x14121d][_0x1ac23f(0x13c)],_0x2c2c6d);}[_0x142fa8(0x2e1)](_0x5e373e,_0x3f5a06,_0x518c18,_0xb54b3f){const _0xbb8369=_0x142fa8;return this[_0xbb8369(0x37c)]([...U['view'](_0x3f5a06,_0x518c18),_0xbb8369(0x34b)],_0x5e373e[_0xbb8369(0x3bd)][_0x3f5a06][_0xbb8369(0x1df)][_0x518c18][_0xbb8369(0x34b)],_0xb54b3f);}['setViewGroup'](_0x275128,_0x40b51e,_0x2f9b59,_0x30795e){const _0x52526a=_0x142fa8;return this[_0x52526a(0x37c)]([...U[_0x52526a(0x395)](_0x40b51e,_0x2f9b59),_0x52526a(0x22c)],_0x275128[_0x52526a(0x3bd)][_0x40b51e][_0x52526a(0x1df)][_0x2f9b59]['group'],_0x30795e);}['setViewFieldVisible'](_0x4f8e33,_0x1508f6,_0x49d9fb,_0x2aa1a9,_0x3df873){const _0x4fc64a=_0x142fa8;return this[_0x4fc64a(0x3d7)](_0x4f8e33,_0x1508f6,_0x49d9fb,_0x2aa1a9,{'hidden':!_0x3df873});}[_0x142fa8(0x24a)](_0x19839e,_0x4467f9,_0xbd56cb,_0x47f699,_0x4c35c0){const _0x1d6618=_0x142fa8;return this[_0x1d6618(0x3d7)](_0x19839e,_0x4467f9,_0xbd56cb,_0x47f699,{'width':_0x4c35c0});}[_0x142fa8(0x433)](_0x117e5a,_0x257d8e,_0x29f77e,_0x48b444,_0x2b6009){const _0x30dc9c=_0x142fa8;let _0x3e12c6=_0x117e5a['tables'][_0x257d8e][_0x30dc9c(0x1df)][_0x29f77e],_0x907c1=sr(_0x3e12c6[_0x30dc9c(0x143)]??_0x117e5a[_0x30dc9c(0x3bd)][_0x257d8e][_0x30dc9c(0x143)],_0x48b444,_0x2b6009);return this[_0x30dc9c(0x37c)]([...U[_0x30dc9c(0x395)](_0x257d8e,_0x29f77e),'fieldOrder'],_0x3e12c6[_0x30dc9c(0x143)],_0x907c1);}[_0x142fa8(0x3d7)](_0x173991,_0x41ed3d,_0x30b791,_0x378767,_0x3fd7cd){const _0x25ffd7=_0x142fa8;let _0xd83897=_0x173991[_0x25ffd7(0x3bd)][_0x41ed3d]['views'][_0x30b791]['fieldSettings']??{},_0x147a06={..._0xd83897,[_0x378767]:{..._0xd83897[_0x378767],..._0x3fd7cd}};return this[_0x25ffd7(0x37c)]([...U['view'](_0x41ed3d,_0x30b791),_0x25ffd7(0x241)],_0x173991[_0x25ffd7(0x3bd)][_0x41ed3d][_0x25ffd7(0x1df)][_0x30b791]['fieldSettings'],_0x147a06);}[_0x142fa8(0x261)](_0x3c1207,_0x2df1c4,_0x10f605){const _0x256f8e=_0x142fa8;let _0x18ef23=_0x3c1207[_0x256f8e(0x3bd)][_0x2df1c4],_0x2dc74c=new Set(_0x10f605[_0x256f8e(0x1bc)](_0x458fc5=>_0x458fc5['id'])),_0x925e04=[...Object[_0x256f8e(0x307)](_0x18ef23[_0x256f8e(0x309)])[_0x256f8e(0x13c)](_0x30dba2=>!_0x2dc74c[_0x256f8e(0x8e)](_0x30dba2['id'])),..._0x10f605][_0x256f8e(0x34b)]((_0x44a00a,_0x5e3111)=>String(_0x44a00a[_0x256f8e(0xc0)]??_0x44a00a['id'])[_0x256f8e(0x94)](String(_0x5e3111[_0x256f8e(0xc0)]??_0x5e3111['id'])))[_0x256f8e(0x1bc)](_0x3cfbdf=>_0x3cfbdf['id']),_0x22539e=[...U[_0x256f8e(0x108)](_0x2df1c4),_0x256f8e(0x18c)];return _0x18ef23[_0x256f8e(0x18c)]?_0x5846ca[_0x256f8e(0x2fd)](_0x22539e,_0x18ef23[_0x256f8e(0x18c)],_0x925e04):_0x5846ca['insertOp'](_0x22539e,_0x925e04);}[_0x142fa8(0x17a)](_0x583a97,_0x4b569d=new Set()){const _0x2532c1=_0x142fa8;let _0x347a16=_0x41c34(_0x583a97);return Object[_0x2532c1(0x307)](_0x583a97[_0x2532c1(0x3bd)])[_0x2532c1(0x13c)](_0xd7e2a1=>!_0x4b569d[_0x2532c1(0x8e)](_0xd7e2a1['id']))['sort']((_0x4a155b,_0x9d42e7)=>_0x4a155b['id'][_0x2532c1(0x94)](_0x9d42e7['id']))['flatMap'](_0x141e2d=>{const _0x39bc9d=_0x2532c1;let _0x39705c=_0x347a16[_0x39bc9d(0x12f)](_0x141e2d['id']);return!_0x39705c||_0x141e2d['formulaName']===_0x39705c?[]:[this[_0x39bc9d(0x37c)]([...U[_0x39bc9d(0x108)](_0x141e2d['id']),_0x39bc9d(0x227)],_0x141e2d[_0x39bc9d(0x227)],_0x39705c)];});}['_setFormulaFieldCells'](_0x9a9572,_0x564961,_0x278a40,_0x5d164a){const _0x3ae51a=_0x142fa8;var _0x3ef323,_0x1c3844;let _0x306254=L(_0x9a9572[_0x3ae51a(0x3bd)][_0x564961]),_0x2917d6=String(((_0x3ef323=_0x5d164a['config'])==null?void 0x0:_0x3ef323[_0x3ae51a(0x19a)])??'')[_0x3ae51a(0x41a)](),_0x30a907=(_0x1c3844=_0x306254[_0x3ae51a(0x425)])==null?void 0x0:_0x1c3844[_0x278a40];if(_0x30a907==null)return[];let _0x387369=_0x306254['recordOrder']??Object[_0x3ae51a(0xd3)](_0x306254[_0x3ae51a(0x309)]),_0x217cdf=_0x387369[_0x3ae51a(0x1bc)](_0x120bde=>{const _0x256559=_0x3ae51a;var _0xa63b5a;return(_0xa63b5a=_0x306254[_0x256559(0x276)])==null?void 0x0:_0xa63b5a[_0x120bde];})[_0x3ae51a(0x3bb)](_0x5ca802=>_0x5ca802!=null);return _0x387369['flatMap'](_0x4ef31b=>{const _0x14e1e8=_0x3ae51a;var _0xa26c2b,_0xc62f65;let _0x34736b=(_0xa26c2b=_0x306254['rowIndex'])==null?void 0x0:_0xa26c2b[_0x4ef31b];if(_0x34736b==null)return[];let _0x4a630e=(_0xc62f65=_0x306254[_0x14e1e8(0x3b1)])==null||(_0xc62f65=_0xc62f65[_0x34736b])==null?void 0x0:_0xc62f65[_0x30a907],_0x1d157e=_0x2917d6?_0x34736b===_0x217cdf?{'f':_0x2917d6,'si':_0x278a40}:{'si':_0x278a40}:{'v':null,'t':null};return[this['_replaceOptional'](U[_0x14e1e8(0x3b1)](_0x564961,_0x34736b,_0x30a907),_0x4a630e,_0x1d157e)];});}[_0x142fa8(0x102)](_0x4c4a6c,_0x48540f,_0xe396ef){const _0xe1573a=_0x142fa8;var _0xafee77;let _0x3733d8=new Map(Object[_0xe1573a(0x274)](((_0xafee77=_0x4c4a6c[_0xe1573a(0x1d4)])==null?void 0x0:_0xafee77[_0xe1573a(0x2ff)])??{})),_0x55c813=new Map(),_0x724833=new Set(),_0x210811=_0xe396ef['map'](({recordId:_0x3fe5ad,fieldId:_0x53ddee,attachments:_0x16b367})=>{const _0x72194=_0xe1573a;var _0xf919d9;let _0x2d1fcb=Et(_0x53ddee,_0x3fe5ad),_0x58929a=_0x16b367[_0x72194(0x1bc)]((_0x1d5f46,_0x23733c)=>String(_0x1d5f46['id']??_0x2d1fcb+'\x1f'+_0x23733c));return _0x724833['add'](_0x2d1fcb),_0x3733d8['set'](_0x2d1fcb,_0x58929a),_0x16b367[_0x72194(0x2e7)]((_0x2fd0e1,_0x129033)=>{const _0x39dcce=_0x72194;let _0x11ff23=_0x58929a[_0x129033];_0x55c813[_0x39dcce(0x23a)](_0x11ff23,{..._0x2fd0e1,'id':_0x11ff23});}),this['_replaceOptional'](U[_0x72194(0x426)](_0x48540f,_0x2d1fcb),(_0xf919d9=_0x4c4a6c[_0x72194(0x1d4)])==null||(_0xf919d9=_0xf919d9[_0x72194(0x2ff)])==null?void 0x0:_0xf919d9[_0x2d1fcb],_0x58929a);}),_0x1dedf5=Array['from'](_0x55c813)[_0xe1573a(0x1bc)](([_0x18b70d,_0x2e50cc])=>{const _0x4a847b=_0xe1573a;var _0x13273c;return this['_replaceOptional'](U['attachment'](_0x48540f,_0x18b70d),(_0x13273c=_0x4c4a6c[_0x4a847b(0x1d4)])==null||(_0x13273c=_0x13273c['attachments'])==null?void 0x0:_0x13273c[_0x18b70d],_0x2e50cc);}),_0x565144=new Set(Array['from'](_0x3733d8[_0xe1573a(0x307)]())['flat']()),_0x477a85=new Set(Array['from'](_0x724833)['flatMap'](_0x232b78=>{const _0x34b83f=_0xe1573a;var _0x4979e9;return((_0x4979e9=_0x4c4a6c[_0x34b83f(0x1d4)])==null||(_0x4979e9=_0x4979e9['attachmentSets'])==null?void 0x0:_0x4979e9[_0x232b78])??[];})),_0x576b0a=Array[_0xe1573a(0x35b)](_0x477a85)[_0xe1573a(0x167)](_0x55ecea=>{const _0x2b772c=_0xe1573a;var _0x4133bd;let _0x38bfe9=(_0x4133bd=_0x4c4a6c[_0x2b772c(0x1d4)])==null||(_0x4133bd=_0x4133bd[_0x2b772c(0x13d)])==null?void 0x0:_0x4133bd[_0x55ecea];return _0x38bfe9!==void 0x0&&!_0x565144[_0x2b772c(0x8e)](_0x55ecea)?[_0x5846ca[_0x2b772c(0xa6)](U['attachment'](_0x48540f,_0x55ecea),_0x38bfe9)]:[];});return[..._0x210811,..._0x1dedf5,..._0x576b0a];}['_deleteAttachmentResources'](_0x20269b,_0x3c0c8d,_0x347d13){const _0xead494=_0x142fa8;var _0x14ada7;let _0x1f1661=((_0x14ada7=_0x20269b['resources'])==null?void 0x0:_0x14ada7[_0xead494(0x2ff)])??{},_0x1d10c9=Object[_0xead494(0x274)](_0x1f1661)[_0xead494(0x13c)](([_0x1c6b69])=>_0x347d13(_0x1c6b69));if(!_0x1d10c9[_0xead494(0x7d)])return[];let _0x24fb16=new Set(Object[_0xead494(0x274)](_0x1f1661)[_0xead494(0x13c)](([_0x327e0a])=>!_0x347d13(_0x327e0a))['flatMap'](([,_0x3c49fd])=>_0x3c49fd)),_0x48c0e0=new Set(_0x1d10c9[_0xead494(0x167)](([,_0x1dbfc7])=>_0x1dbfc7));return[..._0x1d10c9[_0xead494(0x1bc)](([_0x43b6c9,_0x342d65])=>_0x5846ca[_0xead494(0xa6)](U[_0xead494(0x426)](_0x3c0c8d,_0x43b6c9),_0x342d65)),...Array[_0xead494(0x35b)](_0x48c0e0)[_0xead494(0x167)](_0x11a1a1=>{const _0x5c8582=_0xead494;var _0x24c7d3;let _0x4c901a=(_0x24c7d3=_0x20269b['resources'])==null||(_0x24c7d3=_0x24c7d3[_0x5c8582(0x13d)])==null?void 0x0:_0x24c7d3[_0x11a1a1];return _0x4c901a!==void 0x0&&!_0x24fb16['has'](_0x11a1a1)?[_0x5846ca[_0x5c8582(0xa6)](U[_0x5c8582(0xe7)](_0x3c0c8d,_0x11a1a1),_0x4c901a)]:[];})];}['_replaceOptional'](_0x13cc54,_0x3ef234,_0x3b2401){const _0x276e57=_0x142fa8;return _0x3ef234===void 0x0?_0x5846ca[_0x276e57(0xae)](_0x13cc54,_0x3b2401):_0x5846ca[_0x276e57(0x2fd)](_0x13cc54,_0x3ef234,_0x3b2401);}};function er(_0x5d4c76,_0x36f336,_0x533097,_0x2899a0){const _0x2e311e=_0x142fa8;var _0x171868;let _0x429f95=_0x2899a0[_0x2e311e(0x35c)];if(_0x533097[_0x2e311e(0x35c)]!==_0x429f95||_0x429f95!==_0x2348b1[_0x2e311e(0x14e)]&&_0x429f95!==_0x2348b1['MultiSelect']||tr(_0x2899a0[_0x2e311e(0xfa)]['optionSource']))return{'field':_0x2899a0,'patches':[]};let _0x181bf0=nr(_0x533097),_0x7d47c=nr(_0x2899a0);if(![..._0x181bf0][_0x2e311e(0x3b4)](_0x40d9f7=>!_0x7d47c['has'](_0x40d9f7)))return{'field':_0x2899a0,'patches':[]};let _0x41c8d6=rr(_0x2899a0[_0x2e311e(0xba)],_0x7d47c,_0x429f95),_0x60c474=ir(_0x41c8d6,_0x2899a0[_0x2e311e(0xba)])?_0x2899a0:{..._0x2899a0,'defaultValue':_0x41c8d6},_0x365e3a=L(_0x5d4c76),_0x33d820=(_0x171868=_0x365e3a['colIndex'])==null?void 0x0:_0x171868[_0x36f336];return _0x33d820==null?{'field':_0x60c474,'patches':[]}:{'field':_0x60c474,'patches':(_0x365e3a['recordOrder']??[])[_0x2e311e(0x167)](_0x3a6fa0=>{const _0x2d1b42=_0x2e311e;var _0x939ec4,_0x5e79d6;let _0x18b2f6=(_0x939ec4=_0x365e3a['rowIndex'])==null?void 0x0:_0x939ec4[_0x3a6fa0],_0x40bb4d=(_0x5e79d6=_0x365e3a[_0x2d1b42(0x309)][_0x3a6fa0])==null?void 0x0:_0x5e79d6[_0x2d1b42(0x307)][_0x36f336],_0x38daac=rr(_0x40bb4d,_0x7d47c,_0x429f95);return _0x18b2f6==null||ir(_0x38daac,_0x40bb4d)?[]:[{'row':_0x18b2f6,'col':_0x33d820,'value':_0x38daac??null}];})};}function tr(_0x3af11e){const _0x3b83e6=_0x142fa8;return typeof _0x3af11e==_0x3b83e6(0x1e3)&&!!_0x3af11e&&'type'in _0x3af11e&&_0x3af11e['type']===_0x3b83e6(0x202);}function nr(_0x83a67f){const _0x44e16b=_0x142fa8;var _0x87a6c7;let _0x33cecc=Array[_0x44e16b(0x8f)]((_0x87a6c7=_0x83a67f[_0x44e16b(0xfa)])==null?void 0x0:_0x87a6c7[_0x44e16b(0xbd)])?_0x83a67f['config'][_0x44e16b(0xbd)]:[];return new Set(_0x33cecc[_0x44e16b(0x167)](_0x2bdab6=>{const _0x138c0e=_0x44e16b;if(!_0x2bdab6||typeof _0x2bdab6!=_0x138c0e(0x1e3)||!('id'in _0x2bdab6))return[];let _0x28b7e3=String(_0x2bdab6['id']);return _0x28b7e3?[_0x28b7e3]:[];}));}function rr(_0x30094b,_0x56cde9,_0x4a6f1d){const _0x5db4da=_0x142fa8;if(_0x30094b==null||_0x30094b==='')return _0x30094b;if(_0x4a6f1d===_0x2348b1[_0x5db4da(0x14e)])return _0x56cde9[_0x5db4da(0x8e)](String(_0x30094b))?_0x30094b:null;let _0x3c089c=Array[_0x5db4da(0x8f)](_0x30094b)?_0x30094b['map'](String):String(_0x30094b)[_0x5db4da(0x110)](',')[_0x5db4da(0x1bc)](_0x4b03a9=>_0x4b03a9[_0x5db4da(0x41a)]())[_0x5db4da(0x13c)](Boolean),_0x5265fe=_0x3c089c['filter'](_0x3d570f=>_0x56cde9[_0x5db4da(0x8e)](_0x3d570f));return _0x5265fe[_0x5db4da(0x7d)]===_0x3c089c[_0x5db4da(0x7d)]?_0x30094b:Array['isArray'](_0x30094b)?_0x5265fe:String(_0x30094b)[_0x5db4da(0x8b)](',')?_0x5265fe[_0x5db4da(0x2b0)](','):_0x5265fe[0x0]??[];}function ir(_0x5176bc,_0x46aaeb){const _0x1affac=_0x142fa8;return JSON['stringify'](_0x5176bc)===JSON[_0x1affac(0x2b1)](_0x46aaeb);}function ar(_0x2a786a,_0x3b2c22,_0x20132f){const _0x1a50ac=_0x142fa8;var _0x1010ca,_0x17e127,_0x89b324,_0x51c5ad;let _0x5d40ee=(_0x1010ca=_0x2a786a[_0x1a50ac(0x276)])==null?void 0x0:_0x1010ca[_0x3b2c22],_0x41b400=(_0x17e127=_0x2a786a[_0x1a50ac(0x425)])==null?void 0x0:_0x17e127[_0x20132f];return _0x5d40ee!=null&&_0x41b400!=null&&((_0x89b324=_0x2a786a[_0x1a50ac(0x3f0)])==null?void 0x0:_0x89b324[_0x5d40ee])===_0x3b2c22&&((_0x51c5ad=_0x2a786a['colId'])==null?void 0x0:_0x51c5ad[_0x41b400])===_0x20132f&&_0x2a786a[_0x1a50ac(0x3b1)]!=null;}function or(_0x282da7,_0x4f408d,_0x5343b5){const _0x35d563=_0x142fa8;var _0x14d603,_0x21c529;return((_0x14d603=_0x282da7[_0x35d563(0x3f0)])==null?void 0x0:_0x14d603[_0x4f408d])!=null&&((_0x21c529=_0x282da7['colId'])==null?void 0x0:_0x21c529[_0x5343b5])!=null&&_0x282da7[_0x35d563(0x3b1)]!=null;}function sr(_0x35f054,_0x4acf66,_0x213ca6){const _0x3a6ffe=_0x142fa8;let _0x2e095e=_0x35f054[_0x3a6ffe(0x13c)](_0x25812b=>_0x25812b!==_0x4acf66),_0x561e36=_0x213ca6[_0x3a6ffe(0x1da)]?_0x2e095e[_0x3a6ffe(0x123)](_0x213ca6[_0x3a6ffe(0x1da)]):_0x213ca6['afterFieldId']?_0x2e095e[_0x3a6ffe(0x123)](_0x213ca6[_0x3a6ffe(0x95)])+0x1:_0x2e095e[_0x3a6ffe(0x7d)];return _0x2e095e['splice'](_0x561e36<0x0?_0x2e095e[_0x3a6ffe(0x7d)]:_0x561e36,0x0,_0x4acf66),_0x2e095e;}function cr(_0x33dc30,_0x29e8a8,_0x538bc1){const _0x216e1c=_0x142fa8;let _0x53b575=_0x33dc30[_0x216e1c(0x13c)](_0x5483c9=>_0x5483c9!==_0x29e8a8);return _0x53b575[_0x216e1c(0x3ed)](ur(_0x538bc1,_0x53b575['length']),0x0,_0x29e8a8),_0x53b575;}function lr(_0x52f19d,_0x5982c1,_0x5b1ca6){const _0x20847f=_0x142fa8;if(Array['isArray'](_0x52f19d))return _0x5b1ca6===_0x20847f(0x26c)?_0x52f19d['filter'](_0x59def2=>_0x59def2!==_0x5982c1):_0x52f19d['flatMap'](_0x2a5471=>{const _0x51850d=_0x20847f;if(_0x2a5471&&typeof _0x2a5471==_0x51850d(0x1e3)&&!Array[_0x51850d(0x8f)](_0x2a5471)&&_0x2a5471[_0x51850d(0x3c1)]===_0x5982c1)return[];let _0x4716b4=lr(_0x2a5471,_0x5982c1);return _0x4716b4===void 0x0?[]:[_0x4716b4];});if(!_0x52f19d||typeof _0x52f19d!='object')return _0x5b1ca6!=null&&_0x5b1ca6[_0x20847f(0x216)](_0x20847f(0x11a))&&_0x52f19d===_0x5982c1?void 0x0:_0x52f19d;let _0xb640fd=_0x52f19d;if(_0xb640fd[_0x20847f(0x3c1)]!==_0x5982c1)return Object[_0x20847f(0xb5)](Object[_0x20847f(0x274)](_0xb640fd)[_0x20847f(0x167)](([_0x612b1e,_0x1e68aa])=>{const _0x1a782e=_0x20847f;if(_0x612b1e===_0x5982c1&&_0x5b1ca6===_0x1a782e(0x241))return[];let _0x1ee5e0=lr(_0x1e68aa,_0x5982c1,_0x612b1e);return _0x1ee5e0===void 0x0?[]:[[_0x612b1e,_0x1ee5e0]];}));}function ur(_0x958068,_0x4c0956){const _0x2525a7=_0x142fa8;return Math[_0x2525a7(0x41f)](0x0,Math[_0x2525a7(0x27d)](_0x958068,_0x4c0956));}function dr(_0x15f813){'@babel/helpers - typeof';const _0x3b1c8d=_0x142fa8;return dr=typeof Symbol==_0x3b1c8d(0xaf)&&typeof Symbol['iterator']=='symbol'?function(_0x4dcbce){return typeof _0x4dcbce;}:function(_0x1b794b){const _0x4c5d7b=_0x3b1c8d;return _0x1b794b&&typeof Symbol==_0x4c5d7b(0xaf)&&_0x1b794b['constructor']===Symbol&&_0x1b794b!==Symbol['prototype']?_0x4c5d7b(0x1f9):typeof _0x1b794b;},dr(_0x15f813);}function fr(_0x48d39b,_0x37d037){const _0x398dfe=_0x142fa8;if(dr(_0x48d39b)!='object'||!_0x48d39b)return _0x48d39b;var _0x134971=_0x48d39b[Symbol[_0x398dfe(0x38f)]];if(_0x134971!==void 0x0){var _0x1a0637=_0x134971[_0x398dfe(0x3e6)](_0x48d39b,_0x37d037||_0x398dfe(0x28a));if(dr(_0x1a0637)!=_0x398dfe(0x1e3))return _0x1a0637;throw TypeError(_0x398dfe(0x2f1));}return(_0x37d037===_0x398dfe(0x3a1)?String:Number)(_0x48d39b);}function pr(_0x528b6f){const _0x18baa5=_0x142fa8;var _0x34d3d2=fr(_0x528b6f,_0x18baa5(0x3a1));return dr(_0x34d3d2)==_0x18baa5(0x1f9)?_0x34d3d2:_0x34d3d2+'';}function G(_0x36c110,_0x43815d,_0x564daf){const _0x31514e=_0x142fa8;return(_0x43815d=pr(_0x43815d))in _0x36c110?Object[_0x31514e(0x1dc)](_0x36c110,_0x43815d,{'value':_0x564daf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36c110[_0x43815d]=_0x564daf,_0x36c110;}const mr=_0x13a3c3('base.field-registry.service');var hr=class extends _0x10ccd0{constructor(..._0x377ac3){const _0xd2bf6b=_0x142fa8;super(..._0x377ac3),G(this,_0xd2bf6b(0x115),new Map());}[_0x142fa8(0x2a2)](_0x3547e8){const _0x2d2471=_0x142fa8;return this[_0x2d2471(0x115)][_0x2d2471(0x23a)](_0x3547e8[_0x2d2471(0x35c)],_0x3547e8),_0x2a43b1(()=>this[_0x2d2471(0x115)][_0x2d2471(0x180)](_0x3547e8[_0x2d2471(0x35c)]));}[_0x142fa8(0x12f)](_0x4a3a75){const _0x20baf7=_0x142fa8;let _0x640655=this[_0x20baf7(0x115)][_0x20baf7(0x12f)](_0x4a3a75);if(!_0x640655)throw Error(_0x20baf7(0x192)+_0x4a3a75+_0x20baf7(0x28c));return _0x640655;}[_0x142fa8(0x243)](_0x4ef724){const _0x244563=_0x142fa8;return this[_0x244563(0x115)][_0x244563(0x12f)](_0x4ef724);}[_0x142fa8(0x385)](){const _0x159656=_0x142fa8;return Array[_0x159656(0x35b)](this[_0x159656(0x115)][_0x159656(0x307)]());}},gr=class{constructor(_0x18655d){const _0x3bd2ee=_0x142fa8;this[_0x3bd2ee(0x22b)]=_0x18655d,G(this,'type',_0x16a23b[_0x3bd2ee(0xe3)]),G(this,_0x3bd2ee(0x28f),_0x2a0fb0[_0x3bd2ee(0x23c)]),G(this,_0x3bd2ee(0x28b),_0x2392ad[_0x3bd2ee(0x2d0)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x3bd2ee(0x28f)]+'_'+_0x18655d;}},_r=class{constructor(_0x4ca2b6){const _0x163610=_0x142fa8;this['unitId']=_0x4ca2b6,G(this,_0x163610(0x35c),_0x16a23b[_0x163610(0xe3)]),G(this,_0x163610(0x28f),_0x2a0fb0[_0x163610(0x188)]),G(this,_0x163610(0x28b),_0x2392ad[_0x163610(0x2d0)]),G(this,'id',void 0x0),G(this,_0x163610(0x177),!0x0),this['id']=this[_0x163610(0x35c)]+'.'+this[_0x163610(0x28f)]+'_'+_0x4ca2b6;}},vr=class{constructor(_0x75270e){const _0x2e9284=_0x142fa8;this['unitId']=_0x75270e,G(this,_0x2e9284(0x35c),_0x16a23b['Base']),G(this,'subType',_0x2a0fb0['Edit']),G(this,_0x2e9284(0x28b),_0x2392ad[_0x2e9284(0x2d0)]),G(this,'id',void 0x0),G(this,_0x2e9284(0x177),!0x0),this['id']=this[_0x2e9284(0x35c)]+'.'+this[_0x2e9284(0x28f)]+'_'+_0x75270e;}},yr=class{constructor(_0x47f2fc){const _0x13b31d=_0x142fa8;this[_0x13b31d(0x22b)]=_0x47f2fc,G(this,_0x13b31d(0x35c),_0x16a23b[_0x13b31d(0xe3)]),G(this,_0x13b31d(0x28f),_0x2a0fb0['Export']),G(this,_0x13b31d(0x28b),_0x2392ad[_0x13b31d(0x2d0)]),G(this,'id',void 0x0),G(this,_0x13b31d(0x177),!0x0),this['id']=this[_0x13b31d(0x35c)]+'.'+this[_0x13b31d(0x28f)]+'_'+_0x47f2fc;}},br=class{constructor(_0x443328,_0x3f6cdd){const _0x4dc898=_0x142fa8;this[_0x4dc898(0x22b)]=_0x443328,this[_0x4dc898(0x311)]=_0x3f6cdd,G(this,_0x4dc898(0x35c),_0x16a23b['BaseDashboard']),G(this,_0x4dc898(0x28f),_0x2a0fb0['Edit']),G(this,_0x4dc898(0x28b),_0x2392ad[_0x4dc898(0x2d0)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x4dc898(0x35c)]+'.'+this['subType']+'_'+_0x443328+'_'+_0x3f6cdd;}},xr=class{constructor(_0x52963f,_0x24170e){const _0x210e1c=_0x142fa8;this[_0x210e1c(0x22b)]=_0x52963f,this[_0x210e1c(0x311)]=_0x24170e,G(this,_0x210e1c(0x35c),_0x16a23b[_0x210e1c(0x8c)]),G(this,_0x210e1c(0x28f),_0x2a0fb0[_0x210e1c(0x2c1)]),G(this,_0x210e1c(0x28b),_0x2392ad['INIT']),G(this,'id',void 0x0),G(this,_0x210e1c(0x177),!0x0),this['id']=this[_0x210e1c(0x35c)]+'.'+this[_0x210e1c(0x28f)]+'_'+_0x52963f+'_'+_0x24170e;}},Sr=class{constructor(_0x5097c7,_0x197b7f){const _0x3240c9=_0x142fa8;this[_0x3240c9(0x22b)]=_0x5097c7,this[_0x3240c9(0x311)]=_0x197b7f,G(this,_0x3240c9(0x35c),_0x16a23b['BaseRecord']),G(this,_0x3240c9(0x28f),_0x2a0fb0[_0x3240c9(0x2c1)]),G(this,'status',_0x2392ad['INIT']),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x3240c9(0x28f)]+'_'+_0x5097c7+'_'+_0x197b7f;}},Cr=class{constructor(_0x532903,_0x31e0ca){const _0x2968ec=_0x142fa8;this[_0x2968ec(0x22b)]=_0x532903,this['objectId']=_0x31e0ca,G(this,_0x2968ec(0x35c),_0x16a23b[_0x2968ec(0x2f7)]),G(this,_0x2968ec(0x28f),_0x2a0fb0[_0x2968ec(0x2c1)]),G(this,_0x2968ec(0x28b),_0x2392ad[_0x2968ec(0x2d0)]),G(this,'id',void 0x0),G(this,_0x2968ec(0x177),!0x0),this['id']=this[_0x2968ec(0x35c)]+'.'+this[_0x2968ec(0x28f)]+'_'+_0x532903+'_'+_0x31e0ca;}},wr=class{constructor(_0x29d088,_0x55ee75){const _0x555545=_0x142fa8;this[_0x555545(0x22b)]=_0x29d088,this['objectId']=_0x55ee75,G(this,'type',_0x16a23b[_0x555545(0x2eb)]),G(this,_0x555545(0x28f),_0x2a0fb0[_0x555545(0x2c1)]),G(this,_0x555545(0x28b),_0x2392ad['INIT']),G(this,'id',void 0x0),G(this,_0x555545(0x177),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x29d088+'_'+_0x55ee75;}};const Tr=[_0x2a0fb0[_0x142fa8(0x2c1)],_0x2a0fb0[_0x142fa8(0x188)],_0x2a0fb0[_0x142fa8(0x173)],_0x2a0fb0[_0x142fa8(0x23c)]],Er=new Set([_0x16a23b['Base'],_0x16a23b[_0x142fa8(0x2f7)],_0x16a23b['BaseField'],_0x16a23b['BaseRecord'],_0x16a23b[_0x142fa8(0x2eb)],_0x16a23b['BaseDashboard']]),Dr=_0x142fa8(0xb4),Or=_0x142fa8(0x2df),kr=_0x142fa8(0x429),Ar='view/',jr=_0x142fa8(0x2c7);function K(_0x19552b){return''+Dr+encodeURIComponent(_0x19552b);}function q(_0x3489f7,_0x10493b){return''+Or+encodeURIComponent(_0x3489f7)+'/'+encodeURIComponent(_0x10493b);}function J(_0x1ccc72,_0x48be89){return''+kr+encodeURIComponent(_0x1ccc72)+'/'+encodeURIComponent(_0x48be89);}function Mr(_0x925ee8,_0x41cc29){return''+Ar+encodeURIComponent(_0x925ee8)+'/'+encodeURIComponent(_0x41cc29);}function Nr(_0x27f70a){return''+jr+encodeURIComponent(_0x27f70a);}function Pr(_0x445350,_0x2309bc,_0x1ecf7c){const _0x41ba21=_0x142fa8;if(_0x2309bc===_0x445350)switch(_0x1ecf7c){case _0x2a0fb0[_0x41ba21(0x2c1)]:return new vr(_0x445350);case _0x2a0fb0[_0x41ba21(0x188)]:return new _r(_0x445350);case _0x2a0fb0[_0x41ba21(0x173)]:return new yr(_0x445350);case _0x2a0fb0[_0x41ba21(0x23c)]:return new gr(_0x445350);default:throw Error('Unsupported\x20Base\x20permission\x20action:\x20'+_0x1ecf7c);}if(_0x1ecf7c!==_0x2a0fb0[_0x41ba21(0x2c1)])throw Error('Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20'+_0x2309bc);if(_0x2309bc[_0x41ba21(0x38d)](Dr))return new Cr(_0x445350,_0x2309bc);if(_0x2309bc[_0x41ba21(0x38d)](Or))return new xr(_0x445350,_0x2309bc);if(_0x2309bc[_0x41ba21(0x38d)](kr))return new Sr(_0x445350,_0x2309bc);if(_0x2309bc[_0x41ba21(0x38d)](Ar))return new wr(_0x445350,_0x2309bc);if(_0x2309bc[_0x41ba21(0x38d)](jr))return new br(_0x445350,_0x2309bc);throw Error(_0x41ba21(0x263)+_0x2309bc);}function Fr(_0x436331,_0x6cbea8,_0x2087ef,_0x5f5183){const _0x1659c6=_0x142fa8;var _0x428167;return((_0x428167=_0x436331[_0x1659c6(0x405)](Pr(_0x6cbea8,_0x2087ef,_0x5f5183)['id']))==null?void 0x0:_0x428167[_0x1659c6(0x177)])??!0x0;}function Ir(_0x4b82be,_0x2c8d11,_0x395738,_0x3be07b,_0x465570){const _0x62ae87=_0x142fa8;let _0x2bf684=Pr(_0x2c8d11,_0x395738,_0x3be07b);_0x4b82be['getPermissionPoint'](_0x2bf684['id'])||_0x4b82be[_0x62ae87(0x1a6)](_0x2bf684),_0x4b82be[_0x62ae87(0x16e)](_0x2bf684['id'],_0x465570);}function Lr(_0x44b10c,_0x1ac2b6,_0x3e649f,_0x201583){const _0x26b439=_0x142fa8;_0x44b10c[_0x26b439(0xb1)](Pr(_0x1ac2b6,_0x3e649f,_0x201583)['id']);}function Rr(_0x179e82,_0x3752b7){_0x179e82['getAllPermissionPoint']()['forEach']((_0x86cabd,_0x5e9eca)=>{const _0x28b0cc=_0x3f85;_0x86cabd[_0x28b0cc(0x2d7)](_0x317e5b=>{const _0x39bcb3=_0x28b0cc;Er[_0x39bcb3(0x8e)](_0x317e5b[_0x39bcb3(0x35c)])&&_0x39bcb3(0x22b)in _0x317e5b&&_0x317e5b['unitId']===_0x3752b7&&_0x179e82['deletePermissionPoint'](_0x5e9eca);})[_0x28b0cc(0x36c)]();});}function zr(_0x4c98c1,_0xea3fd2,_0x4ae138){const _0x48f9e0=_0x142fa8;return Fr(_0x4c98c1,_0xea3fd2,_0xea3fd2,_0x2a0fb0[_0x48f9e0(0x2c1)])&&Array[_0x48f9e0(0x35b)](_0x4ae138)['every'](_0x36ff6b=>Fr(_0x4c98c1,_0xea3fd2,_0x36ff6b,_0x2a0fb0['Edit']));}function Y(_0x520f64,_0x3eef94){return function(_0x1ebbae,_0x12bf9d){_0x3eef94(_0x1ebbae,_0x12bf9d,_0x520f64);};}function X(_0x24f90c,_0x59513a,_0x5ce220,_0x5a6ef6){const _0x3d1c9f=_0x142fa8;var _0x1571bd=arguments['length'],_0x2e85a4=_0x1571bd<0x3?_0x59513a:_0x5a6ef6===null?_0x5a6ef6=Object[_0x3d1c9f(0xa9)](_0x59513a,_0x5ce220):_0x5a6ef6,_0xdf51e4;if(typeof Reflect==_0x3d1c9f(0x1e3)&&typeof Reflect[_0x3d1c9f(0x412)]==_0x3d1c9f(0xaf))_0x2e85a4=Reflect[_0x3d1c9f(0x412)](_0x24f90c,_0x59513a,_0x5ce220,_0x5a6ef6);else{for(var _0x35c2db=_0x24f90c[_0x3d1c9f(0x7d)]-0x1;_0x35c2db>=0x0;_0x35c2db--)(_0xdf51e4=_0x24f90c[_0x35c2db])&&(_0x2e85a4=(_0x1571bd<0x3?_0xdf51e4(_0x2e85a4):_0x1571bd>0x3?_0xdf51e4(_0x59513a,_0x5ce220,_0x2e85a4):_0xdf51e4(_0x59513a,_0x5ce220))||_0x2e85a4);}return _0x1571bd>0x3&&_0x2e85a4&&Object[_0x3d1c9f(0x1dc)](_0x59513a,_0x5ce220,_0x2e85a4),_0x2e85a4;}const Br=_0x13a3c3(_0x142fa8(0x3c9));let Vr=class extends _0x10ccd0{constructor(_0x3d0b50,_0x3bb19e){const _0x6c214b=_0x142fa8;super(),this[_0x6c214b(0x2e0)]=_0x3d0b50,this['_instanceService']=_0x3bb19e,G(this,_0x6c214b(0x13b),new Map()),G(this,_0x6c214b(0x226),new Map()),G(this,_0x6c214b(0x366),new Map()),G(this,'_recordPermissions',new Map()),G(this,_0x6c214b(0x1fa),new Map()),G(this,_0x6c214b(0x232),new Map()),this[_0x6c214b(0x3bf)](this[_0x6c214b(0x313)]['getTypeOfUnitDisposed$'](_0x5b7c15[_0x6c214b(0x324)])[_0x6c214b(0x2d7)](_0x4328a6=>this[_0x6c214b(0x400)](_0x4328a6[_0x6c214b(0xb2)]())));}[_0x142fa8(0x1f1)](_0x34c6b5){const _0x2dea40=_0x142fa8;var _0xd3e33e;return this[_0x2dea40(0x80)](_0x34c6b5,[])&&(((_0xd3e33e=this[_0x2dea40(0x13b)][_0x2dea40(0x12f)](_0x34c6b5))==null?void 0x0:_0xd3e33e[_0x2dea40(0x287)])??!0x0);}[_0x142fa8(0x2ae)](_0x1eb12e){return this['_canEditTable'](_0x1eb12e);}[_0x142fa8(0x2d3)](_0x58e265){const _0x4faa4c=_0x142fa8;var _0x714fe0;return this[_0x4faa4c(0x368)](_0x58e265)&&(((_0x714fe0=this[_0x4faa4c(0x226)]['get'](_0x58e265))==null?void 0x0:_0x714fe0[_0x4faa4c(0x180)])??!0x0);}[_0x142fa8(0xc8)](_0x5498f1){const _0x2aaa46=_0x142fa8;var _0x56f0da;return this[_0x2aaa46(0x368)](_0x5498f1)&&(((_0x56f0da=this[_0x2aaa46(0x226)][_0x2aaa46(0x12f)](_0x5498f1))==null?void 0x0:_0x56f0da[_0x2aaa46(0x82)])??!0x0);}[_0x142fa8(0x239)](_0x31ea12,_0x2f3c27){const _0x56816b=_0x142fa8;var _0x27cae7;return this[_0x56816b(0x368)](_0x31ea12)&&this[_0x56816b(0x80)](_0x31ea12,[q(_0x31ea12,_0x2f3c27)])&&(((_0x27cae7=this['_fieldPermissions'][_0x56816b(0x12f)](Ur(_0x31ea12,_0x2f3c27)))==null?void 0x0:_0x27cae7[_0x56816b(0x2fb)])??!0x0);}['canDeleteField'](_0x5d3e11,_0x5047a3){const _0x5d3c77=_0x142fa8;var _0x29e454;return this[_0x5d3c77(0x239)](_0x5d3e11,_0x5047a3)&&(((_0x29e454=this[_0x5d3c77(0x366)][_0x5d3c77(0x12f)](Ur(_0x5d3e11,_0x5047a3)))==null?void 0x0:_0x29e454[_0x5d3c77(0x180)])??!0x0);}[_0x142fa8(0x1e1)](_0xd887fd){const _0x3aab02=_0x142fa8;var _0x581939;return this['_canEditTable'](_0xd887fd)&&(((_0x581939=this[_0x3aab02(0x226)][_0x3aab02(0x12f)](_0xd887fd))==null?void 0x0:_0x581939[_0x3aab02(0x277)])??!0x0);}[_0x142fa8(0x214)](_0x271493,_0x53ff7b){const _0x2f70fe=_0x142fa8;var _0x4e32fc;let _0x4a613a=this[_0x2f70fe(0x39d)][_0x2f70fe(0x12f)](Wr(_0x271493,_0x53ff7b));return this[_0x2f70fe(0x80)](_0x271493,[K(_0x271493),J(_0x271493,_0x53ff7b)])&&(((_0x4e32fc=this[_0x2f70fe(0x226)][_0x2f70fe(0x12f)](_0x271493))==null?void 0x0:_0x4e32fc[_0x2f70fe(0x2fb)])??!0x0)&&((_0x4a613a==null?void 0x0:_0x4a613a[_0x2f70fe(0x2fb)])??!0x0)&&((_0x4a613a==null?void 0x0:_0x4a613a[_0x2f70fe(0x295)])??!0x0);}['canDeleteRecord'](_0xcad135,_0x39292b){const _0x105f76=_0x142fa8;var _0x83b26e,_0x408cb1,_0xb1f37;return this['_canEdit'](_0xcad135,[K(_0xcad135),J(_0xcad135,_0x39292b)])&&(((_0x83b26e=this[_0x105f76(0x226)][_0x105f76(0x12f)](_0xcad135))==null?void 0x0:_0x83b26e[_0x105f76(0x2fb)])??!0x0)&&(((_0x408cb1=this['_recordPermissions']['get'](Wr(_0xcad135,_0x39292b)))==null?void 0x0:_0x408cb1['edit'])??!0x0)&&(((_0xb1f37=this[_0x105f76(0x39d)][_0x105f76(0x12f)](Wr(_0xcad135,_0x39292b)))==null?void 0x0:_0xb1f37[_0x105f76(0x180)])??!0x0);}[_0x142fa8(0x376)](_0x4e6d42,_0x5ca1fd,_0x5d9356){const _0x5a5af=_0x142fa8;var _0x3f714f,_0x4a4839,_0x5699fa;let _0x636a6=this[_0x5a5af(0x366)][_0x5a5af(0x12f)](Ur(_0x4e6d42,_0x5d9356));return this[_0x5a5af(0x80)](_0x4e6d42,[K(_0x4e6d42),q(_0x4e6d42,_0x5d9356),J(_0x4e6d42,_0x5ca1fd)])&&(((_0x3f714f=this[_0x5a5af(0x226)][_0x5a5af(0x12f)](_0x4e6d42))==null?void 0x0:_0x3f714f[_0x5a5af(0x2fb)])??!0x0)&&(((_0x4a4839=this[_0x5a5af(0x39d)][_0x5a5af(0x12f)](Wr(_0x4e6d42,_0x5ca1fd)))==null?void 0x0:_0x4a4839[_0x5a5af(0x2fb)])??!0x0)&&(((_0x5699fa=this[_0x5a5af(0x39d)][_0x5a5af(0x12f)](Wr(_0x4e6d42,_0x5ca1fd)))==null?void 0x0:_0x5699fa[_0x5a5af(0x295)])??!0x0)&&((_0x636a6==null?void 0x0:_0x636a6[_0x5a5af(0x2fb)])??!0x0)&&((_0x636a6==null?void 0x0:_0x636a6[_0x5a5af(0x295)])??!0x0);}[_0x142fa8(0x3e5)](_0x3e60fb,_0x216f35){const _0x4e48f2=_0x142fa8;var _0xf3df2f,_0x34a4eb,_0x218e6c;return this[_0x4e48f2(0x80)](_0x3e60fb,[K(_0x3e60fb),Mr(_0x3e60fb,_0x216f35)])&&(((_0xf3df2f=this[_0x4e48f2(0x226)][_0x4e48f2(0x12f)](_0x3e60fb))==null?void 0x0:_0xf3df2f[_0x4e48f2(0x2fb)])??!0x0)&&(((_0x34a4eb=this[_0x4e48f2(0x1fa)]['get'](Gr(_0x3e60fb,_0x216f35)))==null?void 0x0:_0x34a4eb[_0x4e48f2(0x2fb)])??!0x0)&&(((_0x218e6c=this[_0x4e48f2(0x226)][_0x4e48f2(0x12f)](_0x3e60fb))==null?void 0x0:_0x218e6c[_0x4e48f2(0x217)])??!0x0);}[_0x142fa8(0x342)](_0x1eb8ec,_0xe6c440){const _0x43eca2=_0x142fa8;this[_0x43eca2(0x13b)][_0x43eca2(0x23a)](_0x1eb8ec,{...this['_basePermissions'][_0x43eca2(0x12f)](_0x1eb8ec),..._0xe6c440}),_0xe6c440['edit']!==void 0x0&&Ir(this[_0x43eca2(0x2e0)],_0x1eb8ec,_0x1eb8ec,_0x2a0fb0[_0x43eca2(0x2c1)],_0xe6c440['edit']);}[_0x142fa8(0x23e)](_0x1e367a,_0x112939){const _0x57114c=_0x142fa8;this[_0x57114c(0xb6)](_0x1e367a),this[_0x57114c(0x226)][_0x57114c(0x23a)](_0x1e367a,{...this['_tablePermissions'][_0x57114c(0x12f)](_0x1e367a),..._0x112939}),this[_0x57114c(0x2aa)](_0x1e367a,K(_0x1e367a),_0x112939['edit']);}[_0x142fa8(0x1d3)](_0x3e4d01,_0x4e8646,_0xf3f176){const _0x5ea1ca=_0x142fa8;this[_0x5ea1ca(0xb6)](_0x3e4d01);let _0x25c249=Ur(_0x3e4d01,_0x4e8646);this[_0x5ea1ca(0x366)][_0x5ea1ca(0x23a)](_0x25c249,{...this[_0x5ea1ca(0x366)][_0x5ea1ca(0x12f)](_0x25c249),..._0xf3f176}),this['_setObjectEdit'](_0x3e4d01,q(_0x3e4d01,_0x4e8646),_0xf3f176['edit']);}[_0x142fa8(0x1ab)](_0x3faf47,_0x23656f,_0x11aa0b){const _0x129d44=_0x142fa8;this[_0x129d44(0xb6)](_0x3faf47);let _0x24cc65=Wr(_0x3faf47,_0x23656f);this['_recordPermissions'][_0x129d44(0x23a)](_0x24cc65,{...this[_0x129d44(0x39d)][_0x129d44(0x12f)](_0x24cc65),..._0x11aa0b}),this[_0x129d44(0x2aa)](_0x3faf47,J(_0x3faf47,_0x23656f),_0x11aa0b[_0x129d44(0x2fb)]);}[_0x142fa8(0x3da)](_0xb82f0,_0x46c1a6,_0x1dde6d){const _0x2ec917=_0x142fa8;this[_0x2ec917(0xb6)](_0xb82f0);let _0x362d52=Gr(_0xb82f0,_0x46c1a6);this[_0x2ec917(0x1fa)][_0x2ec917(0x23a)](_0x362d52,{...this[_0x2ec917(0x1fa)][_0x2ec917(0x12f)](_0x362d52),..._0x1dde6d}),this[_0x2ec917(0x2aa)](_0xb82f0,Mr(_0xb82f0,_0x46c1a6),_0x1dde6d['edit']);}[_0x142fa8(0x18e)](_0x248ae0){const _0x177ec1=_0x142fa8;this[_0x177ec1(0x13b)][_0x177ec1(0x180)](_0x248ae0),Lr(this['_permissionService'],_0x248ae0,_0x248ae0,_0x2a0fb0[_0x177ec1(0x2c1)]);}[_0x142fa8(0x17b)](_0x10082a){const _0x43423b=_0x142fa8;this['_tablePermissions'][_0x43423b(0x180)](_0x10082a),this[_0x43423b(0xb0)](_0x10082a,K(_0x10082a));}['clearFieldPermission'](_0x4f85a9,_0x4b6e29){const _0xd3cf93=_0x142fa8;this[_0xd3cf93(0x366)][_0xd3cf93(0x180)](Ur(_0x4f85a9,_0x4b6e29)),this[_0xd3cf93(0xb0)](_0x4f85a9,q(_0x4f85a9,_0x4b6e29));}['clearRecordPermission'](_0x5012ff,_0x55ddd9){const _0x38a3e1=_0x142fa8;this['_recordPermissions'][_0x38a3e1(0x180)](Wr(_0x5012ff,_0x55ddd9)),this[_0x38a3e1(0xb0)](_0x5012ff,J(_0x5012ff,_0x55ddd9));}[_0x142fa8(0x1e8)](_0x34ff27,_0x5e4606){const _0x4474c1=_0x142fa8;this[_0x4474c1(0x1fa)]['delete'](Gr(_0x34ff27,_0x5e4606)),this['_clearObjectEdit'](_0x34ff27,Mr(_0x34ff27,_0x5e4606));}['getSnapshot'](){const _0x24760f=_0x142fa8;return{'bases':Object['fromEntries'](this['_basePermissions']),'tables':Object['fromEntries'](this[_0x24760f(0x226)]),'fields':Object[_0x24760f(0xb5)](this[_0x24760f(0x366)]),'records':Object['fromEntries'](this[_0x24760f(0x39d)]),'views':Object[_0x24760f(0xb5)](this[_0x24760f(0x1fa)])};}[_0x142fa8(0x368)](_0x17f84b){const _0x2553da=_0x142fa8;var _0x1a3034;return this[_0x2553da(0x80)](_0x17f84b,[K(_0x17f84b)])&&(((_0x1a3034=this[_0x2553da(0x226)][_0x2553da(0x12f)](_0x17f84b))==null?void 0x0:_0x1a3034['edit'])??!0x0);}[_0x142fa8(0x80)](_0x12a59d,_0x42f43b){const _0x1327bd=_0x142fa8;var _0x34dbf7;let _0x30c305=this[_0x1327bd(0x3b5)](_0x12a59d);return!_0x30c305||zr(this[_0x1327bd(0x2e0)],_0x30c305,_0x42f43b)&&(((_0x34dbf7=this['_basePermissions']['get'](_0x30c305))==null?void 0x0:_0x34dbf7[_0x1327bd(0x2fb)])??!0x0);}[_0x142fa8(0x2aa)](_0x4d2944,_0x404bf8,_0x379799){const _0x3cf20e=_0x142fa8;if(_0x379799===void 0x0)return;let _0x35a894=this[_0x3cf20e(0x3b5)](_0x4d2944);_0x35a894&&Ir(this[_0x3cf20e(0x2e0)],_0x35a894,_0x404bf8,_0x2a0fb0[_0x3cf20e(0x2c1)],_0x379799);}[_0x142fa8(0xb0)](_0x555552,_0x37d6ad){const _0x528d33=_0x142fa8;let _0xc84518=this[_0x528d33(0x3b5)](_0x555552);_0xc84518&&Lr(this['_permissionService'],_0xc84518,_0x37d6ad,_0x2a0fb0[_0x528d33(0x2c1)]);}[_0x142fa8(0x3b5)](_0x2dd847){const _0x552b4f=_0x142fa8;var _0x16f795;let _0x504f22=this[_0x552b4f(0x313)][_0x552b4f(0x9c)](_0x2dd847,_0x5b7c15[_0x552b4f(0x324)]);return _0x504f22?_0x504f22[_0x552b4f(0xb2)]():(_0x16f795=this[_0x552b4f(0x313)][_0x552b4f(0x34f)](_0x5b7c15[_0x552b4f(0x324)])[_0x552b4f(0x3bb)](_0x5d8cfa=>!!_0x5d8cfa[_0x552b4f(0x3ea)]()[_0x552b4f(0x3bd)][_0x2dd847]))==null?void 0x0:_0x16f795[_0x552b4f(0xb2)]();}[_0x142fa8(0xb6)](_0x412ef9){const _0x9b22c8=_0x142fa8;let _0x2cdf15=this[_0x9b22c8(0x3b5)](_0x412ef9);_0x2cdf15&&this[_0x9b22c8(0x232)]['set'](_0x412ef9,_0x2cdf15);}[_0x142fa8(0x400)](_0x2ae86c){const _0x3d96a5=_0x142fa8;this['_basePermissions'][_0x3d96a5(0x180)](_0x2ae86c),this[_0x3d96a5(0x232)][_0x3d96a5(0x2e7)]((_0x3643e5,_0x386c8b)=>{const _0x5c994f=_0x3d96a5;_0x3643e5===_0x2ae86c&&(this['_tablePermissions'][_0x5c994f(0x180)](_0x386c8b),Hr(this[_0x5c994f(0x366)],_0x386c8b+'\x1f'),Hr(this[_0x5c994f(0x39d)],_0x386c8b+'\x1f'),Hr(this['_viewPermissions'],_0x386c8b+'\x1f'),this[_0x5c994f(0x232)]['delete'](_0x386c8b));});}};Vr=X([Y(0x0,_0x385c73),Y(0x1,_0x44289e)],Vr);function Hr(_0x8caee3,_0x506b11){const _0x9e1dc2=_0x142fa8;_0x8caee3[_0x9e1dc2(0x2e7)]((_0x9e1667,_0x4d3f9a)=>{const _0x2663a6=_0x9e1dc2;_0x4d3f9a[_0x2663a6(0x38d)](_0x506b11)&&_0x8caee3[_0x2663a6(0x180)](_0x4d3f9a);});}function Ur(_0x2739ff,_0xf39d12){return _0x2739ff+'\x1f'+_0xf39d12;}function Wr(_0x2421cc,_0x200a4b){return _0x2421cc+'\x1f'+_0x200a4b;}function Gr(_0x28c647,_0x2dafe1){return _0x28c647+'\x1f'+_0x2dafe1;}const Kr=_0x13a3c3(_0x142fa8(0x10f));let qr=class{constructor(_0x3dd40a,_0x440522=Jr(),_0x197113={}){const _0xe73581=_0x142fa8;this['_permissionService']=_0x3dd40a,this[_0xe73581(0x107)]=_0x440522,this[_0xe73581(0xf5)]=_0x197113,G(this,_0xe73581(0x317),new W()),G(this,_0xe73581(0x234),new z());}[_0x142fa8(0x287)](_0x4ff915,_0x149af0,_0x2477fc){const _0x3374a1=_0x142fa8;if(!this[_0x3374a1(0x2e0)][_0x3374a1(0x1f1)](_0x4ff915[_0x3374a1(0xb2)]()))throw Error(_0x3374a1(0x111));_0x281585(_0x149af0),this[_0x3374a1(0x193)](_0x4ff915,this['_factory'][_0x3374a1(0x287)](_0x4ff915['getSnapshot'](),_0x149af0,_0x2477fc));}['renameTable'](_0x5aa7d5,_0x285879,_0x42c949){const _0x3c5462=_0x142fa8;if(!this[_0x3c5462(0x2e0)][_0x3c5462(0x2ae)](_0x285879))throw Error(_0x3c5462(0x1f6));this['_apply'](_0x5aa7d5,this['_factory'][_0x3c5462(0xc2)](_0x5aa7d5['getSnapshot'](),_0x285879,_0x42c949));}['deleteTable'](_0xac7438,_0x311215){const _0x5c7b84=_0x142fa8;if(!this[_0x5c7b84(0x2e0)][_0x5c7b84(0x2d3)](_0x311215))throw Error(_0x5c7b84(0x420));let _0x512b3b=He(_0xac7438[_0x5c7b84(0x3ea)](),_0x311215);if(_0x512b3b[_0x5c7b84(0x7d)]>0x0)throw Error(_0x5c7b84(0x380)+_0x512b3b[_0x5c7b84(0x1bc)](_0x1d7d3a=>_0x1d7d3a[_0x5c7b84(0x90)]+'.'+_0x1d7d3a[_0x5c7b84(0x3c1)])['join'](',\x20')+').');this[_0x5c7b84(0x193)](_0xac7438,this[_0x5c7b84(0x317)][_0x5c7b84(0x20c)](_0xac7438[_0x5c7b84(0x3ea)](),_0x311215));}[_0x142fa8(0x1ef)](_0x583ca6,_0x8a1831,_0x3162b5,_0x3a9b57,_0x52070d){const _0x1524e7=_0x142fa8;this[_0x1524e7(0x193)](_0x583ca6,this['createUpdateCellOp'](_0x583ca6,_0x8a1831,_0x3162b5,_0x3a9b57,_0x52070d));}['setRecordValues'](_0xd6decb,_0xf8014e,_0x12f969){const _0x50dad2=_0x142fa8;this[_0x50dad2(0x193)](_0xd6decb,this[_0x50dad2(0x2d9)](_0xd6decb,_0xf8014e,_0x12f969));}[_0x142fa8(0x277)](_0x26c631,_0xb0210f,_0x583e7e){const _0x120eb5=_0x142fa8;this[_0x120eb5(0x193)](_0x26c631,this['createCreateRecordOp'](_0x26c631,_0xb0210f,_0x583e7e));}[_0x142fa8(0x122)](_0x599e3b,_0x588b45,_0x11fb14,_0x772cd,_0x531c9c){const _0x2f6fdc=_0x142fa8;let _0x461bb8=_0x599e3b[_0x2f6fdc(0x3ea)](),_0x2c69d6=this[_0x2f6fdc(0x39e)](_0x461bb8,_0x588b45,_0x11fb14,_0x772cd,_0x531c9c),_0x2221d0=this['_withModifiedSystemValues'](_0x461bb8,_0x588b45,_0x11fb14,{[_0x772cd]:_0x2c69d6});return this[_0x2f6fdc(0x317)][_0x2f6fdc(0xa7)](_0x461bb8,_0x588b45,[_0x2221d0]);}['createSetRecordValuesOp'](_0x2d1ab9,_0x1aa5b3,_0x2a08bc){const _0x505a98=_0x142fa8;let _0x46d938=_0x2d1ab9[_0x505a98(0x3ea)](),_0x29eea3=_0x2a08bc['map'](_0x188ce1=>this[_0x505a98(0x3a8)](_0x46d938,_0x1aa5b3,_0x188ce1[_0x505a98(0x1ee)],{...Object['fromEntries'](Object[_0x505a98(0x274)](_0x188ce1['values'])[_0x505a98(0x1bc)](([_0x2ffce3,_0x12c910])=>[_0x2ffce3,this['_normalizeCellValue'](_0x46d938,_0x1aa5b3,_0x188ce1[_0x505a98(0x1ee)],_0x2ffce3,_0x12c910)]))}));return this[_0x505a98(0x317)]['setRecordValues'](_0x46d938,_0x1aa5b3,_0x29eea3);}['createCreateRecordOp'](_0x1235c1,_0x5824c1,_0x127a63){const _0x14ced7=_0x142fa8;if(!this[_0x14ced7(0x2e0)][_0x14ced7(0x1e1)](_0x5824c1))throw Error(_0x14ced7(0x3d0));let _0x3769f0=_0x1235c1['getSnapshot'](),_0x1ef37c=this[_0x14ced7(0x149)](_0x3769f0[_0x14ced7(0x3bd)][_0x5824c1]);return this[_0x14ced7(0x317)]['createRecord'](_0x3769f0,_0x5824c1,this['_createRecordWithDefaults'](_0x3769f0,_0x5824c1,_0x127a63,_0x1ef37c));}[_0x142fa8(0x3fd)](_0x3fb227,_0x35697c,_0x37fef9){const _0x221a7f=_0x142fa8;if(!this[_0x221a7f(0x2e0)][_0x221a7f(0x1e1)](_0x35697c))throw Error(_0x221a7f(0x3d0));let _0x400a8c=_0x3fb227[_0x221a7f(0x3ea)]();return I(_0x221a7f(0x306),()=>{const _0x249654=_0x221a7f;let _0x2e46fe=this[_0x249654(0x149)](_0x400a8c['tables'][_0x35697c]);return this[_0x249654(0x317)][_0x249654(0xd0)](_0x400a8c,_0x35697c,_0x37fef9[_0x249654(0x1bc)](_0xe475e5=>this[_0x249654(0x40a)](_0x400a8c,_0x35697c,_0xe475e5,_0x2e46fe)));},{'existingRecords':Object[_0x221a7f(0xd3)](_0x400a8c[_0x221a7f(0x3bd)][_0x35697c][_0x221a7f(0x309)])['length'],'records':_0x37fef9['length']});}['createCreateFieldOp'](_0x246a77,_0x57394e,_0x4f28d2,_0x1cc018,_0xb9e894){const _0x406aa5=_0x142fa8;if(!this['_permissionService'][_0x406aa5(0xc8)](_0x57394e))throw Error(_0x406aa5(0x321));let _0xca205a=_0x246a77[_0x406aa5(0x3ea)]();if(this[_0x406aa5(0x2cd)](_0xca205a,_0x4f28d2),_0x1cc018===0x0)throw Error(_0x406aa5(0x320));let _0x3174ec=this[_0x406aa5(0x317)]['createField'](_0xca205a,_0x57394e,{'field':_0x4f28d2,'index':_0x1cc018,'viewIndexes':_0xb9e894}),_0x4fe8f6=this[_0x406aa5(0x203)](_0xca205a,_0x57394e,_0x4f28d2);if(!_0x4fe8f6['length'])return _0x3174ec;let _0x4191b5=this[_0x406aa5(0x234)][_0x406aa5(0x121)](_0xca205a,_0x3174ec);return R([_0x3174ec,this[_0x406aa5(0x317)][_0x406aa5(0xa7)](_0x4191b5,_0x57394e,_0x4fe8f6)]);}[_0x142fa8(0x1bf)](_0x3c817d,_0xeb6d2d,_0x23b4ed){const _0x446f81=_0x142fa8;if(!this[_0x446f81(0x2e0)][_0x446f81(0x39b)](_0xeb6d2d,_0x23b4ed))throw Error(_0x446f81(0xa3));this[_0x446f81(0x193)](_0x3c817d,this[_0x446f81(0x317)][_0x446f81(0x1bf)](_0x3c817d[_0x446f81(0x3ea)](),_0xeb6d2d,_0x23b4ed));}[_0x142fa8(0x24c)](_0x1a80ef,_0x3464cc,_0xd8c446,_0x3ac115){const _0x15c4f8=_0x142fa8;if(!this['_permissionService'][_0x15c4f8(0x1e1)](_0x3464cc))throw Error(_0x15c4f8(0x3d0));this[_0x15c4f8(0x193)](_0x1a80ef,this[_0x15c4f8(0x317)][_0x15c4f8(0x24c)](_0x1a80ef[_0x15c4f8(0x3ea)](),_0x3464cc,_0xd8c446,{..._0x3ac115,'values':{..._0x3ac115['values'],[_0x48af21]:_0x3ac115['id']}}));}[_0x142fa8(0x2a4)](_0x510c12,_0x286ca2,_0x45bb06,_0x46c739){const _0x279adb=_0x142fa8;if(!this[_0x279adb(0x2e0)][_0x279adb(0x214)](_0x286ca2,_0x45bb06))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record.');this[_0x279adb(0x193)](_0x510c12,this['_factory'][_0x279adb(0x2a4)](_0x510c12['getSnapshot'](),_0x286ca2,_0x45bb06,_0x46c739));}['createField'](_0x12bf76,_0x26b7fd,_0x10de42,_0x51e63e,_0xea5c4e){const _0x10c51e=_0x142fa8;this[_0x10c51e(0x193)](_0x12bf76,this['createCreateFieldOp'](_0x12bf76,_0x26b7fd,_0x10de42,_0x51e63e,_0xea5c4e));}[_0x142fa8(0x14c)](_0x27d6b5,_0x23356b,_0x46c4d8,_0x231cf2){const _0x1cf76a=_0x142fa8;var _0x4a6d47;if(!this[_0x1cf76a(0x2e0)]['canEditField'](_0x23356b,_0x46c4d8))throw Error(_0x1cf76a(0x2e9));let _0x382a0b=_0x27d6b5[_0x1cf76a(0x3ea)](),_0x16580d=(_0x4a6d47=_0x382a0b[_0x1cf76a(0x3bd)][_0x23356b])==null?void 0x0:_0x4a6d47[_0x1cf76a(0x37f)][_0x46c4d8];if(!_0x16580d||_0x46c4d8===_0x48af21)throw Error(_0x1cf76a(0x257));this[_0x1cf76a(0x2cd)](_0x382a0b,{..._0x16580d,..._0x231cf2}),this[_0x1cf76a(0x193)](_0x27d6b5,this[_0x1cf76a(0x317)][_0x1cf76a(0x14c)](_0x382a0b,_0x23356b,_0x46c4d8,_0x231cf2));}[_0x142fa8(0x356)](_0x400943,_0x3539df,_0x5c9ad7,_0x50b1bd){const _0x1214bc=_0x142fa8;var _0x4f575b;if(!this[_0x1214bc(0x2e0)][_0x1214bc(0x239)](_0x3539df,_0x5c9ad7))throw Error(_0x1214bc(0x2e9));let _0x74a80e=_0x400943[_0x1214bc(0x3ea)](),_0xc8a50f=(_0x4f575b=_0x74a80e[_0x1214bc(0x3bd)][_0x3539df])==null?void 0x0:_0x4f575b[_0x1214bc(0x37f)][_0x5c9ad7];if(!_0xc8a50f||_0x5c9ad7===_0x48af21)throw Error(_0x1214bc(0x26a));this[_0x1214bc(0x2cd)](_0x74a80e,{..._0xc8a50f,..._0x50b1bd}),this[_0x1214bc(0x193)](_0x400943,this[_0x1214bc(0x317)][_0x1214bc(0x356)](_0x74a80e,_0x3539df,_0x5c9ad7,_0x50b1bd));}[_0x142fa8(0xd8)](_0x3441f3,_0x3b530c,_0x3d3c5f){const _0x494912=_0x142fa8;var _0x597b76;if(((_0x597b76=_0x3441f3[_0x494912(0x3ea)]()[_0x494912(0x3bd)][_0x3b530c])==null?void 0x0:_0x597b76[_0x494912(0x195)])===_0x3d3c5f||_0x3d3c5f===_0x48af21)throw Error(_0x494912(0x1f5));if(!this[_0x494912(0x2e0)][_0x494912(0x252)](_0x3b530c,_0x3d3c5f))throw Error(_0x494912(0x119));this[_0x494912(0x193)](_0x3441f3,this['_factory']['deleteField'](_0x3441f3['getSnapshot'](),_0x3b530c,_0x3d3c5f));}['moveField'](_0x5d5b7e,_0x29bfe5,_0x390535,_0x445811){const _0x2cce86=_0x142fa8;if(!this[_0x2cce86(0x2e0)][_0x2cce86(0x239)](_0x29bfe5,_0x390535))throw Error(_0x2cce86(0x2e9));if(_0x390535===_0x48af21||_0x445811[_0x2cce86(0x1da)]===_0x48af21)throw Error(_0x2cce86(0x3f7));this[_0x2cce86(0x193)](_0x5d5b7e,this['_factory'][_0x2cce86(0x3e7)](_0x5d5b7e[_0x2cce86(0x3ea)](),_0x29bfe5,_0x390535,_0x445811));}[_0x142fa8(0x87)](_0x3b2245,_0xe7a409,_0x4ddc20,_0x27ac20){const _0x62bd07=_0x142fa8;if(!this[_0x62bd07(0x2e0)][_0x62bd07(0x3e5)](_0xe7a409,_0x4ddc20['id']))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x62bd07(0x193)](_0x3b2245,this[_0x62bd07(0x317)][_0x62bd07(0x87)](_0x3b2245[_0x62bd07(0x3ea)](),_0xe7a409,_0x4ddc20,_0x27ac20));}['renameView'](_0x4dd744,_0x37cebc,_0x4b9a12,_0x5dc3fe){const _0x1c687c=_0x142fa8;if(!this[_0x1c687c(0x2e0)][_0x1c687c(0x3e5)](_0x37cebc,_0x4b9a12))throw Error(_0x1c687c(0x41c));this[_0x1c687c(0x193)](_0x4dd744,this[_0x1c687c(0x317)][_0x1c687c(0x2e2)](_0x4dd744[_0x1c687c(0x3ea)](),_0x37cebc,_0x4b9a12,_0x5dc3fe));}[_0x142fa8(0x185)](_0x1afde1,_0x18b744,_0x23ded1){const _0xbf6d41=_0x142fa8;if(!this[_0xbf6d41(0x2e0)][_0xbf6d41(0x3e5)](_0x18b744,_0x23ded1))throw Error(_0xbf6d41(0x41c));this[_0xbf6d41(0x193)](_0x1afde1,this[_0xbf6d41(0x317)][_0xbf6d41(0x185)](_0x1afde1[_0xbf6d41(0x3ea)](),_0x18b744,_0x23ded1));}['moveView'](_0x1a2a7c,_0x1da359,_0xb93e2d,_0x23b05f){const _0x35a7cd=_0x142fa8;if(!this['_permissionService'][_0x35a7cd(0x3e5)](_0x1da359,_0xb93e2d))throw Error(_0x35a7cd(0x41c));this[_0x35a7cd(0x193)](_0x1a2a7c,this[_0x35a7cd(0x317)]['moveView'](_0x1a2a7c[_0x35a7cd(0x3ea)](),_0x1da359,_0xb93e2d,_0x23b05f));}['updateViewConfig'](_0x2f3497,_0x35d4fc,_0x23b800,_0x237227){const _0x318197=_0x142fa8;if(!this[_0x318197(0x2e0)]['canManageView'](_0x35d4fc,_0x23b800))throw Error(_0x318197(0x41c));this['_apply'](_0x2f3497,this[_0x318197(0x317)][_0x318197(0x16f)](_0x2f3497[_0x318197(0x3ea)](),_0x35d4fc,_0x23b800,_0x237227));}['setViewFilter'](_0x46ffe9,_0x143e1e,_0x5aca41,_0x21dfa6){const _0xcc1932=_0x142fa8;if(!this[_0xcc1932(0x2e0)]['canManageView'](_0x143e1e,_0x5aca41))throw Error(_0xcc1932(0x41c));this[_0xcc1932(0x193)](_0x46ffe9,this[_0xcc1932(0x317)][_0xcc1932(0x1de)](_0x46ffe9['getSnapshot'](),_0x143e1e,_0x5aca41,_0x21dfa6));}[_0x142fa8(0x2e1)](_0xe67899,_0x351a23,_0x2ad8a4,_0x39bd64){const _0x3a2d17=_0x142fa8;if(!this[_0x3a2d17(0x2e0)][_0x3a2d17(0x3e5)](_0x351a23,_0x2ad8a4))throw Error(_0x3a2d17(0x41c));this[_0x3a2d17(0x193)](_0xe67899,this[_0x3a2d17(0x317)][_0x3a2d17(0x2e1)](_0xe67899[_0x3a2d17(0x3ea)](),_0x351a23,_0x2ad8a4,_0x39bd64));}[_0x142fa8(0x200)](_0x523306,_0x5ac238,_0x105ec9,_0x547e28){const _0x24f431=_0x142fa8;if(!this['_permissionService'][_0x24f431(0x3e5)](_0x5ac238,_0x105ec9))throw Error(_0x24f431(0x41c));this[_0x24f431(0x193)](_0x523306,this[_0x24f431(0x317)][_0x24f431(0x200)](_0x523306['getSnapshot'](),_0x5ac238,_0x105ec9,_0x547e28));}[_0x142fa8(0x392)](_0x157a07,_0xc1a673,_0x1d2690,_0x3394c6,_0x4453a2){const _0x118d6d=_0x142fa8;if(!this['_permissionService'][_0x118d6d(0x3e5)](_0xc1a673,_0x1d2690))throw Error(_0x118d6d(0x41c));this['_apply'](_0x157a07,this['_factory'][_0x118d6d(0x392)](_0x157a07['getSnapshot'](),_0xc1a673,_0x1d2690,_0x3394c6,_0x4453a2));}[_0x142fa8(0x24a)](_0x366e2d,_0x52bcae,_0x544075,_0x13cbff,_0x339f20){const _0x2137cf=_0x142fa8;if(!this[_0x2137cf(0x2e0)]['canManageView'](_0x52bcae,_0x544075))throw Error(_0x2137cf(0x41c));this[_0x2137cf(0x193)](_0x366e2d,this[_0x2137cf(0x317)]['setViewFieldWidth'](_0x366e2d[_0x2137cf(0x3ea)](),_0x52bcae,_0x544075,_0x13cbff,_0x339f20));}[_0x142fa8(0x433)](_0xc20d42,_0xcdc8e7,_0x330abc,_0x2f3c19,_0x342742){const _0x501fc3=_0x142fa8;if(!this['_permissionService'][_0x501fc3(0x3e5)](_0xcdc8e7,_0x330abc))throw Error(_0x501fc3(0x41c));this[_0x501fc3(0x193)](_0xc20d42,this[_0x501fc3(0x317)][_0x501fc3(0x433)](_0xc20d42[_0x501fc3(0x3ea)](),_0xcdc8e7,_0x330abc,_0x2f3c19,_0x342742));}['_apply'](_0x599f1c,_0x5601e0){const _0x32fb9f=_0x142fa8;let _0x31f224=_0x599f1c[_0x32fb9f(0x3ea)]();_0x599f1c['setSnapshot'](this['_applier'][_0x32fb9f(0x121)](_0x31f224,_0x5601e0));}[_0x142fa8(0x40a)](_0x22012d,_0x2833cb,_0x26c2f7,_0x2d14c9=this[_0x142fa8(0x149)](_0x22012d['tables'][_0x2833cb])){const _0x33c4c6=_0x142fa8;let _0x156270=_0x22012d[_0x33c4c6(0x3bd)][_0x2833cb],_0x241732=_0x26c2f7[_0x33c4c6(0x1a8)]??_0x26c2f7['updatedBy']??this[_0x33c4c6(0x3fe)](),_0x3c7c19={..._0x26c2f7,'createdBy':_0x26c2f7[_0x33c4c6(0x1a8)]??_0x241732,'updatedBy':_0x26c2f7[_0x33c4c6(0x118)]??_0x241732,'values':{..._0x26c2f7['values']}};return _0x3c7c19[_0x33c4c6(0x307)][_0x48af21]=_0x3c7c19['id'],_0x156270[_0x33c4c6(0x143)][_0x33c4c6(0x2e7)](_0xe75f3e=>{const _0x57676e=_0x33c4c6;let _0x53bcb6=_0x156270[_0x57676e(0x37f)][_0xe75f3e];if(!(!_0x53bcb6||_0x3c7c19[_0x57676e(0x307)][_0xe75f3e]!==void 0x0))switch(_0x53bcb6['type']){case _0x2348b1['Numbering']:var _0x58bb34;_0x3c7c19['values'][_0xe75f3e]=((_0x58bb34=_0x2d14c9[_0x57676e(0x12f)](_0xe75f3e))==null?void 0x0:_0x58bb34())??this[_0x57676e(0xd1)](_0x156270,_0xe75f3e)();break;case _0x2348b1['CreatedBy']:_0x3c7c19[_0x57676e(0x1a8)]&&(_0x3c7c19['values'][_0xe75f3e]=_0x3c7c19['createdBy']);break;case _0x2348b1['UpdatedBy']:_0x3c7c19[_0x57676e(0x118)]&&(_0x3c7c19[_0x57676e(0x307)][_0xe75f3e]=_0x3c7c19[_0x57676e(0x118)]);break;case _0x2348b1[_0x57676e(0x434)]:_0x3c7c19[_0x57676e(0x307)][_0xe75f3e]=B(_0x3c7c19['createdAt']);break;case _0x2348b1['UpdatedAt']:_0x3c7c19[_0x57676e(0x307)][_0xe75f3e]=B(_0x3c7c19[_0x57676e(0x2ee)]);break;default:{let _0x18c638=_0x53bcb6[_0x57676e(0xba)];_0x18c638!=null&&_0x18c638!==''&&!(Array['isArray'](_0x18c638)&&_0x18c638[_0x57676e(0x7d)]===0x0)&&(_0x3c7c19[_0x57676e(0x307)][_0xe75f3e]=_0x18c638);}}}),_0x3c7c19;}[_0x142fa8(0x3a8)](_0x10df87,_0x566201,_0x304f06,_0x423310){const _0x1d726e=_0x142fa8;var _0x2f2681,_0x56e61b;let _0x446298=_0x10df87[_0x1d726e(0x3bd)][_0x566201],_0x3a6c88=((_0x2f2681=(_0x56e61b=this['_runtimeContext'])['now'])==null?void 0x0:_0x2f2681[_0x1d726e(0x3e6)](_0x56e61b))??Date['now'](),_0xed0637=this['_getCurrentUserId'](),_0x54ce8f={..._0x423310};return _0x446298[_0x1d726e(0x143)][_0x1d726e(0x2e7)](_0x9a1365=>{const _0x3b1baa=_0x1d726e;let _0x1e1ad5=_0x446298['fields'][_0x9a1365];_0x1e1ad5&&(_0x1e1ad5[_0x3b1baa(0x35c)]===_0x2348b1[_0x3b1baa(0x259)]&&(_0x54ce8f[_0x9a1365]=B(_0x3a6c88)),_0x1e1ad5['type']===_0x2348b1[_0x3b1baa(0x164)]&&_0xed0637&&(_0x54ce8f[_0x9a1365]=_0xed0637));}),{'recordId':_0x304f06,'values':_0x54ce8f,'recordPatch':{'updatedAt':_0x3a6c88,..._0xed0637?{'updatedBy':_0xed0637}:{}}};}[_0x142fa8(0x203)](_0x9d6053,_0x325263,_0xc2e035){const _0x20e377=_0x142fa8;let _0x43f908=_0x9d6053['tables'][_0x325263];return!_0x43f908||!Yr(_0xc2e035)?[]:_0xc2e035['type']===_0x2348b1[_0x20e377(0x2ed)]?this[_0x20e377(0x2ac)](_0x43f908,_0xc2e035['id']):Object['values'](_0x43f908[_0x20e377(0x309)])[_0x20e377(0x167)](_0x2633d8=>{const _0x53e5c3=_0x20e377;let _0x2b78d6=this[_0x53e5c3(0x2c0)](_0xc2e035,_0x2633d8);return _0x2b78d6===void 0x0?[]:[{'recordId':_0x2633d8['id'],'values':{[_0xc2e035['id']]:_0x2b78d6}}];});}[_0x142fa8(0x2c0)](_0x9108b5,_0x317b11){const _0x2bcef5=_0x142fa8;switch(_0x9108b5['type']){case _0x2348b1[_0x2bcef5(0x103)]:return _0x317b11[_0x2bcef5(0x1a8)]??this[_0x2bcef5(0x3fe)]();case _0x2348b1[_0x2bcef5(0x164)]:return _0x317b11[_0x2bcef5(0x118)]??this[_0x2bcef5(0x3fe)]();case _0x2348b1[_0x2bcef5(0x434)]:return B(_0x317b11['createdAt']??Date[_0x2bcef5(0x3b2)]());case _0x2348b1[_0x2bcef5(0x259)]:return B(_0x317b11['updatedAt']??Date['now']());default:return;}}[_0x142fa8(0x149)](_0x1ee121){const _0x35756f=_0x142fa8;let _0x3912dd=new Map();return _0x1ee121&&_0x1ee121[_0x35756f(0x143)][_0x35756f(0x2e7)](_0x12aa96=>{const _0x17a912=_0x35756f;let _0x2fbf2c=_0x1ee121[_0x17a912(0x37f)][_0x12aa96];(_0x2fbf2c==null?void 0x0:_0x2fbf2c['type'])===_0x2348b1[_0x17a912(0x2ed)]&&_0x3912dd[_0x17a912(0x23a)](_0x12aa96,this[_0x17a912(0xd1)](_0x1ee121,_0x12aa96));}),_0x3912dd;}['_createNumberingAllocator'](_0x1c264c,_0xb1aed4){const _0x3c5219=_0x142fa8;let _0xc28e32=Object[_0x3c5219(0x307)](_0x1c264c['records'])[_0x3c5219(0x3c5)]((_0x29dd5c,_0x2ed6b0)=>{const _0xc30bdc=_0x3c5219;let _0x593ae9=Number(_0x2ed6b0[_0xc30bdc(0x307)][_0xb1aed4]);return Number['isFinite'](_0x593ae9)?Math[_0xc30bdc(0x41f)](_0x29dd5c,_0x593ae9):_0x29dd5c;},0x0);return()=>String(++_0xc28e32);}[_0x142fa8(0x2ac)](_0x5357bf,_0x2e5478){const _0xc21264=_0x142fa8;let _0x40fb31=this['_getOrderedRecords'](_0x5357bf),_0x1d1bb8=this['_createNumberingAllocator'](_0x5357bf,_0x2e5478);return _0x40fb31[_0xc21264(0x167)](_0xbeb01d=>this['_isNonEmptyCellValue'](_0xbeb01d[_0xc21264(0x307)][_0x2e5478])?[]:[{'recordId':_0xbeb01d['id'],'values':{[_0x2e5478]:_0x1d1bb8()}}]);}[_0x142fa8(0x379)](_0x4a7b5a){const _0x38ccbb=_0x142fa8;var _0x71e6;let _0x198183=Object[_0x38ccbb(0x307)](_0x4a7b5a[_0x38ccbb(0x309)]),_0x687842=new Map(_0x198183['map'](_0x10c60b=>[_0x10c60b['id'],_0x10c60b])),_0x53e885=[],_0x1cc516=new Set();(_0x71e6=_0x4a7b5a[_0x38ccbb(0x18c)])==null||_0x71e6['forEach'](_0x2cd0cd=>{const _0x295a77=_0x38ccbb;let _0x5a797f=_0x687842[_0x295a77(0x12f)](_0x2cd0cd);_0x5a797f&&(_0x53e885[_0x295a77(0x319)](_0x5a797f),_0x1cc516['add'](_0x2cd0cd));});let _0x396543=_0x198183[_0x38ccbb(0x13c)](_0x1d8d7e=>!_0x1cc516[_0x38ccbb(0x8e)](_0x1d8d7e['id']))['sort']((_0x2f5c7c,_0x3530d8)=>String(_0x2f5c7c[_0x38ccbb(0xc0)]??_0x2f5c7c['id'])['localeCompare'](String(_0x3530d8[_0x38ccbb(0xc0)]??_0x3530d8['id']))||_0x2f5c7c['id']['localeCompare'](_0x3530d8['id']));return[..._0x53e885,..._0x396543];}[_0x142fa8(0x3e1)](_0x5a1ac0){return _0x5a1ac0!=null&&_0x5a1ac0!==''&&!(Array['isArray'](_0x5a1ac0)&&_0x5a1ac0['length']===0x0);}[_0x142fa8(0x3fe)](){const _0x15508d=_0x142fa8;var _0x46285a,_0x1a6b32,_0x7be83,_0x1ace85;return((_0x46285a=(_0x1a6b32=this[_0x15508d(0xf5)])[_0x15508d(0xbc)])==null?void 0x0:_0x46285a[_0x15508d(0x3e6)](_0x1a6b32))??((_0x7be83=(_0x1ace85=this[_0x15508d(0xf5)])[_0x15508d(0x375)])==null||(_0x7be83=_0x7be83[_0x15508d(0x3e6)](_0x1ace85))==null?void 0x0:_0x7be83[_0x15508d(0x81)])??void 0x0;}[_0x142fa8(0x39e)](_0x16adfb,_0x9cc3d6,_0x450aff,_0x4bff6d,_0x162418){const _0x3d9491=_0x142fa8;var _0x586006;if(!this['_permissionService'][_0x3d9491(0x376)](_0x9cc3d6,_0x450aff,_0x4bff6d))throw Error(_0x3d9491(0x1c7));let _0x23998f=(_0x586006=_0x16adfb['tables'][_0x9cc3d6])==null?void 0x0:_0x586006[_0x3d9491(0x37f)][_0x4bff6d];if(!_0x23998f)throw Error(_0x3d9491(0x312)+_0x4bff6d+_0x3d9491(0x189));let _0x1d16fd=this['_fieldRegistry'][_0x3d9491(0x12f)](_0x23998f[_0x3d9491(0x35c)]);if(_0x23998f[_0x3d9491(0x381)]||_0x23998f['system']||!_0x1d16fd[_0x3d9491(0x12a)](_0x23998f)['editable'])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0xde4e6d=_0x1d16fd['normalize'](_0x162418,_0x23998f),_0x312969=_0x1d16fd[_0x3d9491(0x10d)](_0xde4e6d,_0x23998f);if(!_0x312969[_0x3d9491(0x266)])throw Error(_0x312969[_0x3d9491(0xb3)]??_0x3d9491(0x3ba));let _0x11019f=_0x23998f[_0x3d9491(0x35c)]===_0x2348b1[_0x3d9491(0x382)]?Ve(_0x16adfb,_0x23998f,_0xde4e6d):{'valid':!0x0};if(!_0x11019f[_0x3d9491(0x266)])throw Error(_0x11019f[_0x3d9491(0xb3)]??_0x3d9491(0x86));return _0xde4e6d;}[_0x142fa8(0x2cd)](_0x41b263,_0xb2bf1e){const _0x428eae=_0x142fa8;if(_0xb2bf1e['id']===_0x48af21||_0xb2bf1e['type']===_0x2348b1[_0x428eae(0x416)]||_0x117705(_0xb2bf1e['name']))throw Error(_0x428eae(0x2e5));let _0x6d2ccf=Be(_0x41b263,_0xb2bf1e);if(!_0x6d2ccf[_0x428eae(0x266)])throw Error(_0x6d2ccf[_0x428eae(0xb3)]??'[BaseCommandService]:\x20invalid\x20field\x20definition.');}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function _0xbe31(){const _0xcff4e9=['getUTCMonth','INIT','depth','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','canDeleteTable','base.command.update-base-kanban-config','_isColorfulKanbanGroupField','base.command.duplicate-base-field','subscribe','separatorStyle','createSetRecordValuesOp','gantt','unknown','basePerf','decimalPlaces','isInteger','field/','_permissionService','setViewSort','renameView','parentRecordId','viewRevision','[BaseCommandService]:\x20record-id\x20is\x20reserved.','index','forEach','manual','[BaseCommandService]:\x20cannot\x20edit\x20field.','beforeViewId','BaseView','locale','Numbering','updatedAt','majorHeaders','-view-grid','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','base.command.set-base-range-values','round','_findCalendarDateFieldId','Choose\x20another\x20name.','allowNegative','BaseTable','patches','_globalRevision','getProjection','edit','Uncategorized','replaceOp','onStarting','attachmentSets','fieldIndex','CreateView','_canUseFastSort','fld-','week','_title','BaseCommand.createBatchCreateRecordsOp','values','rows','records','greaterThanOrEqual','_tableRevisions','baseRows','title','_scheduledSuperTableSyncs','Person',',,\x22M\x22','objectId','[BaseCommandService]:\x20field\x20\x22','_instanceService','displayColor','toLowerCase','base.mutation.set-permission-rules','_factory','_kanbanGroupKeys','push','en-US','undefined','invalidGanttStartField','general','remove','deepClone','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','[BaseCommandService]:\x20cannot\x20create\x20field.','_resolveCardTitleFieldId','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','UNIVER_BASE','trigger','Checkbox','colorFieldId','DESC','[BaseField]:\x20invalid\x20rating\x20value.','abbreviation','_projectedGroupsCache','scale','registerCommand','workingDays','allowMultiple','_resolveKanbanCardFieldIds','dateFormat','_bumpTableRevision','base.command.set-base-table-hierarchy-field','_resolveGanttDateFieldId','DD/MM/YYYY','_formulaCalculationTriggerService','base.command.create-base-child-record','pushUndoRedo','emitPermissionDenied','base.command.delete-base-table','members','periodComma','false','thread-comment.command.','BASE_OBJECT_PERMISSION_PLUGIN','MMM\x20D,\x20YYYY','day','setBasePermission','_univerInstanceService','base.command.create-base-field','AFTER','cell','base-perf-','setPoint','False','_buildGallery','sort','base.mutation.set-permission-rule','long','lessThan','getAllUnitsForType','[RecordLink]:\x20target\x20record\x20\x22','MissingParent','_projectGroups','base-range-values-v1','padStart','year','changeFieldType','mark','action','_cellRevisions','Done','from','type','normal','_dataSyncPrimaryController','level','invalidateByField','Base\x20','result','showFieldNames','__tempBatchingUndoRedo','invertWithDoc','_fieldPermissions','MaxDepth','_canEditTable','onlyLocal','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','hierarchy','unsubscribe','[BaseProjectionService]:\x20missing\x20view\x20\x22','custom','UTC','filled','invalidField','objectType','_normalizeGanttConfig','[BaseField]:\x20invalid\x20multi-value\x20reference.','getCurrentUser','canEditCell','getAffectedRanges','base.command.set-base-view-field-visible','_getOrderedRecords','base.mutation.apply-base-json1','conditions','_replaceOptional','search','_initCommands','fields','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','readonly','RecordLink','_normalizeGalleryConfig','NUMBER','getAll','person','getCurrentUnitOfType','_executeSuperTableMutationWhileActive','Remote','findIndex','limit','Empty','startsWith','end','toPrimitive','count','valueOf','setViewFieldVisible','clearUnit','[BaseHierarchy]:\x20field\x20\x22','view','owner','_initialize','base.command.rename-base-view','thread-comment.mutation.','bases.remote.config','canDeleteRecord','maxDepth','_recordPermissions','_normalizeCellValue','before','timeZone','string','base.command.move-base-view','rules','[BaseFormula]:\x20table\x20\x22','FORCE_STRING','BaseHierarchyError','params','_withModifiedSystemValues','Add','medium','__base_hierarchy_parent__','setRules','record','Gallery','_getViewRevision','MultiSelect','cellData','now','_toDirtyRangePatch','some','_resolveBaseId','resolvedOptions','Grid','$1\x20','matchAll','[BaseCommandService]:\x20invalid\x20cell\x20value.','find','_projectionCache','tables','parentFieldName','disposeWithMe','491666HXxEYr','fieldId','executeCommand','End\x20date','editable','reduce','diffValue','Working\x20day','_groupsCacheKey','base.permission.service','required','cycle','\x20permission\x20denied.','create-view','Redo','revision','[BaseCommandService]:\x20cannot\x20create\x20record.','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','exception-','Start\x20date','width','projection','fromChangeset','_setViewFieldSetting','_registeredSuperTableNames','ascend','setViewPermission',':end','_resolveKanbanGroupFieldId','subtreeHeightByRecordId','pattern','lastIndex','slice','_isNonEmptyCellValue','invalidateByOp','getTime','33tiwnKM','canManageView','call','moveField','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).','_buildKanban','getSnapshot','_projectTableRows','@univerjs-pro/bases','splice','\x22\x20with\x20field\x20type\x20\x22','hidden','rowId','SelfParent','isEmpty','catch','startDateFieldId','_projectedViewRowsCache','[BaseField]:\x20invalid\x20person\x20value.','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','invertOp','[BaseHierarchy]:\x20','dispose','_initDependencies','multiple','createBatchCreateRecordsOp','_getCurrentUserId','recordIds','_clearUnit','replace','_T_','true','_commandService','getPermissionPoint','selfParent','toString','createRegExpFromSafeFragment','childType','_createRecordWithDefaults','key','every','_getStructureDirtyTableIds','_getTablesToNormalize','_materializeGroups','https:','Yes','decorate','test','target','https://','RecordId','setRule','_buildGrid','_formulaSyncQueue','trim','orderedRecordIds','[BaseCommandService]:\x20cannot\x20manage\x20view.','Rating','#,##0','max','[BaseCommandService]:\x20cannot\x20delete\x20table.','General','doing','all','fromCollab','colIndex','attachmentSet','base.command.create-base-view','_applyFormulaResult','record/','IS_NOT','_config','Kanban','this-row','BaseJson1.cloneForOp','WriteCursor','beforeCommandExecuted','viewIndexes','[BasePerf]\x20','setViewFieldOrder','CreatedAt','length','formatToParts','_resolveKanbanCoverFieldId','_canEdit','userID','createField','mode','save','invalidateByCell','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','createView','depthByRecordId','_check','strategies','includes','BaseField','changes','has','isArray','tableId','bases.config','href','http:','localeCompare','afterFieldId','source','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','write','duplicate','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','cardLayout','getUnit','syncUnit','1407822SxlwiN','error','DeleteView','_isGanttDateField','Name','[BaseCommandService]:\x20cannot\x20delete\x20record.','decimal','getUTCFullYear','removeOp','setRecordValues','viewId','getOwnPropertyDescriptor','BaseDashboard','description','past30','size','insertOp','function','_clearObjectEdit','deletePermissionPoint','getUnitId','reason','table/','fromEntries','_rememberTable','globalRevision','blue','h24','defaultValue','_getCachedProjection','getCurrentUserId','options','_kanbanLaneTitle','Failed\x20to\x20create\x20update\x20cell\x20operation:','orderKey','weekdays','renameTable','_activeDirtyManagerService','pickerFieldIds','Status','_isKanbanGroupField','past7','canCreateField','createDeleteRecordsUndoOp','column','number','redo','subtreeEndIndex','policy','[BaseFormula]:\x20table\x20does\x20not\x20exist.','createRecords','_createNumberingAllocator','_syncBaseUnit','keys','unitOtherData','1807638WyeNHO','none','setBaseName','deleteField','lastWeek','check',':start','lastIndexOf','[BaseField]:\x20invalid\x20progress\x20value.','getBase','h12','Ids','thisWeek','#14b8a6','Base','getSuperTableRegistrations','_isAllowedKanbanGroupField','Number','attachment','Table','BaseJson1.json1Apply','base.command.update-base-record-order','undo','sum','next30','small','\x22.\x20Allowed\x20operators:\x20','getUTCDate','_groupConfigCacheSegment','score','invalid-characters','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','_runtimeContext','local','toLocaleString','colId','[BaseField]:\x20invalid\x20phone\x20value.','config','_scheduleSuperTableSync','quarter','Set','url','Date','Parent','yyyy/mm/dd','_setAttachmentResources','CreatedBy','invalidReasonByRecordId','toPlainText','_cellInvalidationsTouchFields','_fieldRegistry','table','getTypeOfUnitDisposed$','getInstance','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','_getJson1DirtyData','validate','_capabilities','base.command.service','split','[BaseCommandService]:\x20cannot\x20create\x20table.','name','invalid','at\x20index\x20','_plugins','oldParentRecordId','validateFormula','updatedBy','[BaseCommandService]:\x20cannot\x20delete\x20field.','FieldId','today','BaseProjection.getProjection','_resolveGalleryCardFieldIds','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','dependencyFieldId','attachment-','applyOp','createUpdateCellOp','indexOf','getItem','_recordIds','ena','query','base.command.rename-base-table','base.command.set-base-kanban-group-field','getCapabilities','color','regenerateViewIds','Group','base.command.set-permission','get','\x20has\x20unsupported\x20target\x20\x22','COMMAND','Import','renameFormulaUnitReferences','_baseSyncDisposables','base.command.delete-base-field','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','createCreateRecordOp','deleteRecords','Cycle','_basePermissions','filter','attachments','_buildCalendar','_configService','_removeSuperTables','InvalidField','initializeUnit','fieldOrder','formula.mutation.set-formula-calculation-result','frozenFieldCount','percent','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','markResultApplied','_createNumberingAllocators','missingRecord','includeTime','updateField','recordNamePrefix','SingleSelect','coverFieldId','base.command.delete-base-view','BEFORE','_viewRevisionKey','spacePeriod','missingField','base.mutation.','26485893tXvqTm','_hierarchyIndexCache','month','_getAllBaseDependencyTreeCacheMap','average','[BaseFormula]:\x20field\x20\x22','notContains','card','_viewRowsCacheKey','#BFDBFE','delete-view','getMonth','getStructuredDependencies','label','UpdatedBy','_enqueueFormulaSync','Invalid\x20object\x20permission\x20batch.','flatMap','True','[DeleteBaseTableCommand]:\x20table\x20\x22','getUnitType','Gantt','Phone','packageName','updatePermissionPoint','updateViewConfig','base.viewType.gallery','base.command.set-base-name','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','Export','_rowTransformCacheSegment','_filterRows','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','value','rootRecordIds','embed-ui','_materializeFormulaTableNames','clearTablePermission','saveMany','base-perf','base.resource.service',',,,\x22B\x22','delete','groupFieldId','tableRevision','CONTAINS','remote','deleteView','changed','usableAsGanttEnd','Copy','\x22\x20does\x20not\x20exist.','toFixed','prototype','recordOrder','descendPath','clearBasePermission','autoIncrement','columns','getAllBases','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','_apply','info','primaryFieldId','createCreateFieldOp','nodes','pop','_calendarEventColor','formula','_views','_getTableRevision','data','_getCellRevision','569236tFYMHr','[BaseField]:\x20invalid\x20date\x20value.','isFinite','MissingRecord','base.view-registry.service','_syncSuperTables','empty','addPermissionPoint','Formula','createdBy','_projectRows','option-','setRecordPermission','kanban','bases-exchange-client.operation.export-base-by-format','row','order','date','collaborators','exceptions','_patchCachedProjectedRows','base.command.set-base-view-field-width','fieldName','snapshot','createSuperTableReference','isNot','_cacheKey','compress','_getHierarchyIndex','map','embedId','kind','deleteRecord','IS_EMPTY','Currency','BaseJson1.normalizeTables','tableOrder','cellRevision','getUTCDay','col','[BaseCommandService]:\x20cannot\x20edit\x20cell.','BaseProjection.filterAndSortRows','progressFieldId','_kanbanLaneColor','_getTable','NOT_CONTAINS','_projectFields','BaseJson1.syncCellInvalidations','_fastSortRows','4402384NzeQbw','base.command.create-base-table','_patchProjectedRowsForCellInvalidations','setFieldPermission','resources','getFullYear','_formulaService','_matchesGanttColorRule','view-','NumberFormat','beforeFieldId','todo','defineProperty','IS_NOT_EMPTY','setViewFilter','views','createDefaultValue','canCreateRecord','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','object','#3b82f6','getTypeOfUnitAdded$','onCommandExecuted','base.command.change-base-field-type','clearViewPermission','children','createViewId',',\x22K\x22','base.viewType.grid','path','recordId','updateCell','Checked','canCreateTable','_filterSortFieldIds','focusUnit','base.command.update-base-cell','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','[BaseCommandService]:\x20cannot\x20edit\x20table.','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','tomorrow','symbol','_viewPermissions','abs','_deleteAttachmentResources','too-long','measure','_applyingFormulaResults','setViewGroup','calendar','field','_createSystemFieldValuePatches','cardSize','tryMaterializeSnapshot','h:mm\x20a','conditional','titleFieldId','groups','_onCommandExecuted','registerCtorForType','deleteTable','\x20must\x20be\x20an\x20object.','_viewRevisions','Link','Todo','Unchecked','direction','invalidGanttEndField','canEditRecord','base.command.set-base-record-values','endsWith','manageView','unitData','_setFormulaFieldCells','raw','_groupProjectionFieldIds','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','usableAsCardCover','_groupCellInvalidations','BaseRecord','registerView','yesterday','includeRecords','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','setConfig','recordCount','_tablePermissions','formulaName','short','hourCycle','parentByRecordId','unitId','group','\x20must\x20have\x20a\x20non-empty\x20id.','base.fieldType.','_resolveCalendarDateFieldId','gridViewId','system','_tableBaseIds','selectField','_applier','bases-exchange-client.operation.export-base','[BaseViewRegistryService]:\x20view\x20type\x20\x22','base.command.set-base-view-filter','operator','canEditField','set','_sortRows','Comment','_cellInvalidations','setTablePermission','invalidDateField','apply','fieldSettings','targetTableId','getTypePlugin','base.projection.service','-field-name','BASE','relationRole','_projectedRowsCache','clear','setViewFieldWidth','base.command.set-permissions','duplicateRecord','Clear','currencySymbol','base.command.batch-create-base-records','greaterThan','usableAsCalendarDate','canDeleteField','ruleId','setSnapshot','duplicateField','operand','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','allowDangling','UpdatedAt','BASES_PLUGIN','Text','_normalizeCalendarConfig','isValid','UNIVER_EMBED_BASES_TABLE','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','Doing','_createRecordOrderOp','base.command.batch-delete-base-records','Unsupported\x20Base\x20permission\x20object:\x20','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','contains','valid','boolean','Use\x2031\x20characters\x20or\x20fewer.','done','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','bases.fieldConfig.linkPlaceholder','fieldIds','protocol','hasOwnProperty','setHours','base.viewType.kanban','Date1900','_normalizeGanttDisplayColor','childrenByParentId','entries','thumbnail','rowIndex','createRecord','apostrophe','Calendar','COLUMN','bases.fieldConfig.textPlaceholder','BaseProjection.projectGroups','min','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','registerRuleModel','useThousands','SortedView','rowIndexById','_getAllTableIds','base.command.set-base-view-sort','BaseProjection.projectRows','_findKanbanGroupField','createTable','usableAsGanttStart','_ganttBarColor','default','status','\x22\x20is\x20not\x20registered.','add','dateMode','subType','base.command.delete-base-record','GREATER_THAN','thisMonth','_formulaCalculationSessionService','displayFieldId','editCell','endDateFieldId','2725woRHvZ','childUnitId','_normalizeCalendarDisplayColor','BOOLEAN','start','viewOrder','workingDaysOnly','createDefaultConfig','#16a34a','unique','searchTexts','register','parse','updateRecordOrder','16230ABdbqD','_isCalendarDateField','A\x20table\x20with\x20this\x20name\x20already\x20exists.','leftPaneCollapsed','syncExecuteCommand','_setObjectEdit','\x20has\x20unsupported\x20date\x20mode\x20\x22','_createNumberingFieldValuePatches','_setCachedProjection','canEditTable','Attachment','join','stringify','user','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','primaryFieldName','working','_isAllDayCalendarEvent','_injector','format','sortedView','onReady','compose','hostAnchorId','_deleteRecordsBaseOp','text','base.command.update-base-view-config','_getSystemFieldValue','Edit','timeslotSize','STRING','_isAllDayGanttDateRange','setRangeValues','resolve','dashboard/','_disposed','tableName','registerSyncingMutations','Progress','Base\x20edit\x20permission\x20denied.','_assertFieldDefinition','\x20has\x20unsupported\x20operator\x20\x22'];_0xbe31=function(){return _0xcff4e9;};return _0xbe31();}function Jr(){const _0x30026a=_0x142fa8;let _0x4cae77=new hr();return zn()[_0x30026a(0x2e7)](_0xc17886=>_0x4cae77[_0x30026a(0x2a2)](_0xc17886)),_0x4cae77;}function Yr(_0x15523b){const _0x4c426e=_0x142fa8;return _0x15523b[_0x4c426e(0x35c)]===_0x2348b1[_0x4c426e(0x2ed)]||_0x15523b[_0x4c426e(0x35c)]===_0x2348b1[_0x4c426e(0x103)]||_0x15523b[_0x4c426e(0x35c)]===_0x2348b1[_0x4c426e(0x164)]||_0x15523b['type']===_0x2348b1['CreatedAt']||_0x15523b['type']===_0x2348b1[_0x4c426e(0x259)];}const Xr=new Set([_0x2348b1[_0x142fa8(0x2cb)],_0x2348b1[_0x142fa8(0x41d)],_0x2348b1[_0x142fa8(0x326)]]);function Zr(_0x5af731){const _0x327c82=_0x142fa8;let _0xc9df0=_0x5af731[_0x327c82(0x37f)][_0x5af731[_0x327c82(0x195)]];if(!(_0xc9df0&&(_0xc9df0['system']===!0x0||_0xc9df0['id'][_0x327c82(0x315)]()==='id'||_0xc9df0[_0x327c82(0x112)][_0x327c82(0x41a)]()[_0x327c82(0x315)]()==='id'))&&_0xc9df0)return _0xc9df0['id'];for(let _0x1f9a4c of _0x5af731[_0x327c82(0x143)]){let _0x146b30=_0x5af731[_0x327c82(0x37f)][_0x1f9a4c];if(_0x146b30&&_0x146b30['id']!==_0x5af731[_0x327c82(0x195)]&&_0x146b30['system']!==!0x0&&_0x146b30[_0x327c82(0x35c)]!==_0x2348b1[_0x327c82(0x416)])return _0x146b30['id'];}return _0x5af731[_0x327c82(0x195)];}function Qr(_0x39f4c7,_0x167eda=[],_0x22d9d6=0x5){const _0x43882a=_0x142fa8;let _0xa2e1d7=new Set(_0x167eda[_0x43882a(0x13c)](_0x4cc92b=>!!_0x4cc92b)),_0x1e115b=[],_0x1d875d=[];for(let _0x5dd396 of _0x39f4c7['fieldOrder']){let _0x412bef=_0x39f4c7[_0x43882a(0x37f)][_0x5dd396];_0x412bef&&_0x412bef[_0x43882a(0x231)]!==!0x0&&_0x412bef['type']!==_0x2348b1[_0x43882a(0x416)]&&!_0xa2e1d7[_0x43882a(0x8e)](_0x412bef['id'])&&(Xr['has'](_0x412bef['type'])?_0x1e115b:_0x1d875d)[_0x43882a(0x319)](_0x412bef['id']);}return[..._0x1e115b,..._0x1d875d][_0x43882a(0x3e0)](0x0,_0x22d9d6);}function $r(){const _0x1dee58=_0x142fa8;return[{'type':_0x22d567[_0x1dee58(0x3b7)],'i18nKey':_0x1dee58(0x1ec),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x2410a6=_0x1dee58;throw Error(_0x2410a6(0x25f));}},{'type':_0x22d567[_0x1dee58(0x42c)],'i18nKey':_0x1dee58(0x270),'createDefaultConfig':_0x39abbb=>{const _0x5bd8aa=_0x1dee58;let _0x581ec1=ei(_0x39abbb);return{'groupFieldId':_0x581ec1,'coverFieldId':null,'cardLayout':_0x5bd8aa(0x35d),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x39abbb[_0x5bd8aa(0x195)],'fieldIds':Qr(_0x39abbb,[_0x39abbb[_0x5bd8aa(0x195)],_0x581ec1])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x22d567[_0x1dee58(0x279)],'i18nKey':'base.viewType.calendar','createDefaultConfig':_0x469ef9=>{const _0x4e4059=_0x1dee58;let _0x3c4002=ti(_0x469ef9);return{'startDateFieldId':_0x3c4002,'endDateFieldId':ni(_0x469ef9,_0x3c4002),'titleFieldId':_0x469ef9['primaryFieldId'],'mode':_0x4e4059(0x158),'timeslotSize':_0x4e4059(0x3aa),'timeZone':_0x4e4059(0xf6),'displayColor':{'type':_0x4e4059(0x36e),'color':_0x4e4059(0x1e4)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x22d567[_0x1dee58(0x16b)],'i18nKey':'base.viewType.gantt','createDefaultConfig':_0x3c71dc=>{const _0x19bb0c=_0x1dee58;let _0x1c1db0=ti(_0x3c71dc);return{'startDateFieldId':_0x1c1db0,'endDateFieldId':ni(_0x3c71dc,_0x1c1db0)??_0x1c1db0,'titleFieldId':_0x3c71dc[_0x19bb0c(0x195)],'scale':_0x19bb0c(0x158),'showTodayLine':!0x0,'displayColor':{'type':_0x19bb0c(0x36e),'color':_0x19bb0c(0xe2)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x52dce4=_0x1dee58;throw Error(_0x52dce4(0x172));}},{'type':_0x22d567[_0x1dee58(0x3ae)],'i18nKey':_0x1dee58(0x170),'createDefaultConfig':_0x2a3b6a=>{const _0x421a0f=_0x1dee58;let _0x2ae7a7=Zr(_0x2a3b6a);return{'coverFieldId':null,'cardLayout':_0x421a0f(0x35d),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x2ae7a7,'coverFieldId':null,'fieldIds':Qr(_0x2a3b6a,[_0x2ae7a7,_0x2a3b6a[_0x421a0f(0x195)]])},'cardSize':_0x421a0f(0x3aa)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}}];}function ei(_0x4bcf95){const _0x37cf11=_0x142fa8;var _0x5cef54,_0x2611a9,_0xce2438;let _0x4c2999=_0x4bcf95['fieldOrder'][_0x37cf11(0x1bc)](_0x351faa=>_0x4bcf95['fields'][_0x351faa])[_0x37cf11(0x13c)](_0x5a4be9=>!!_0x5a4be9);return((_0x5cef54=_0x4c2999[_0x37cf11(0x3bb)](_0x2edd5d=>_0x2edd5d[_0x37cf11(0x35c)]===_0x2348b1[_0x37cf11(0x14e)]||_0x2edd5d[_0x37cf11(0x35c)]===_0x2348b1[_0x37cf11(0x3b0)]||_0x2edd5d[_0x37cf11(0x35c)]===_0x2348b1[_0x37cf11(0x12d)]))==null?void 0x0:_0x5cef54['id'])??((_0x2611a9=_0x4c2999[_0x37cf11(0x3bb)](_0x1b99b7=>_0x1b99b7[_0x37cf11(0x35c)]===_0x2348b1[_0x37cf11(0x25b)]))==null?void 0x0:_0x2611a9['id'])??((_0xce2438=_0x4c2999[_0x37cf11(0x3bb)](_0x11c4ac=>_0x11c4ac[_0x37cf11(0x35c)]===_0x2348b1['Date']||_0x11c4ac[_0x37cf11(0x35c)]===_0x2348b1[_0x37cf11(0x434)]||_0x11c4ac[_0x37cf11(0x35c)]===_0x2348b1[_0x37cf11(0x259)]))==null?void 0x0:_0xce2438['id'])??_0x4bcf95[_0x37cf11(0x195)];}function ti(_0x353e9e){const _0x4051e4=_0x142fa8;var _0x2cf481;return((_0x2cf481=_0x353e9e['fieldOrder'][_0x4051e4(0x1bc)](_0x264abd=>_0x353e9e[_0x4051e4(0x37f)][_0x264abd])[_0x4051e4(0x3bb)](ri))==null?void 0x0:_0x2cf481['id'])??'';}function ni(_0x160438,_0x480ac1){const _0x45c6d0=_0x142fa8;var _0x208694;return(_0x208694=_0x160438[_0x45c6d0(0x143)][_0x45c6d0(0x1bc)](_0x2cba8e=>_0x160438['fields'][_0x2cba8e])[_0x45c6d0(0x3bb)](_0x57b310=>ri(_0x57b310)&&_0x57b310['id']!==_0x480ac1))==null?void 0x0:_0x208694['id'];}function ri(_0xde535a){const _0x3ae4d7=_0x142fa8;return!!_0xde535a&&_0xde535a[_0x3ae4d7(0x35c)]===_0x2348b1['Date']&&_0xde535a[_0x3ae4d7(0x381)]!==!0x0&&_0xde535a[_0x3ae4d7(0x231)]!==!0x0;}const ii=_0x13a3c3(_0x142fa8(0x244)),ai=new Set([_0x2348b1[_0x142fa8(0xe6)],_0x2348b1['Currency'],_0x2348b1['Progress'],_0x2348b1[_0x142fa8(0x41d)],_0x2348b1[_0x142fa8(0xff)],_0x2348b1[_0x142fa8(0x434)],_0x2348b1[_0x142fa8(0x259)],_0x2348b1[_0x142fa8(0x326)]]),oi=0x5a0*0x3c*0x3e8;let si=class extends _0x10ccd0{constructor(_0x3b52a2){const _0x3dde86=_0x142fa8;super(),this[_0x3dde86(0x107)]=_0x3b52a2,G(this,_0x3dde86(0x19b),new Map()),G(this,_0x3dde86(0x3bc),new WeakMap()),G(this,_0x3dde86(0x248),new Map()),G(this,_0x3dde86(0x3f5),new Map()),G(this,'_projectedGroupsCache',new Map()),G(this,'_hierarchyIndexCache',new Map()),G(this,_0x3dde86(0x2f9),0x0),G(this,_0x3dde86(0x30b),new Map()),G(this,_0x3dde86(0x359),new Map()),G(this,_0x3dde86(0x23d),new Map()),G(this,_0x3dde86(0x20e),new Map());}['registerView'](_0x357a03){const _0x1e8645=_0x142fa8;return this[_0x1e8645(0x19b)][_0x1e8645(0x23a)](_0x357a03[_0x1e8645(0x35c)],_0x357a03),_0x2a43b1(()=>this[_0x1e8645(0x19b)]['delete'](_0x357a03['type']));}[_0x142fa8(0x2fa)](_0x5b734a,_0x56c3cf,_0x2b140d){const _0x520e55=_0x142fa8;var _0xffde24,_0x183fe5,_0x11719a;return I(_0x520e55(0x11c),()=>{const _0x2b2959=_0x520e55;let _0x4e9b7a=this[_0x2b2959(0xbb)](_0x5b734a,_0x56c3cf,_0x2b140d);if(_0x4e9b7a)return _0x4e9b7a;let _0x4264d0=_0x5b734a['tables'][_0x56c3cf],_0x24f54d=_0x4264d0==null?void 0x0:_0x4264d0[_0x2b2959(0x1df)][_0x2b140d];if(!_0x4264d0||!_0x24f54d)return this[_0x2b2959(0x2ad)](_0x5b734a,_0x56c3cf,_0x2b140d,{'type':_0x2b2959(0x113),'viewType':(_0x24f54d==null?void 0x0:_0x24f54d[_0x2b2959(0x35c)])??_0x22d567[_0x2b2959(0x3b7)],'reason':_0x2b2959(0x154)});let _0x5465e7;switch(_0x24f54d[_0x2b2959(0x35c)]){case _0x22d567[_0x2b2959(0x3b7)]:_0x5465e7=this[_0x2b2959(0x418)](_0x4264d0,_0x24f54d);break;case _0x22d567[_0x2b2959(0x16b)]:_0x5465e7=this['_buildGantt'](_0x4264d0,_0x24f54d);break;case _0x22d567[_0x2b2959(0x42c)]:_0x5465e7=this['_buildKanban'](_0x4264d0,_0x24f54d);break;case _0x22d567[_0x2b2959(0x279)]:_0x5465e7=this[_0x2b2959(0x13e)](_0x4264d0,_0x24f54d);break;case _0x22d567[_0x2b2959(0x3ae)]:_0x5465e7=this[_0x2b2959(0x34a)](_0x4264d0,_0x24f54d);break;default:_0x5465e7={'type':'invalid','viewType':_0x24f54d[_0x2b2959(0x35c)],'reason':_0x2b2959(0x154)};}return this['_setCachedProjection'](_0x5b734a,_0x56c3cf,_0x2b140d,_0x5465e7);},{'tableId':_0x56c3cf,'viewId':_0x2b140d,'viewType':(_0xffde24=_0x5b734a['tables'][_0x56c3cf])==null||(_0xffde24=_0xffde24[_0x520e55(0x1df)][_0x2b140d])==null?void 0x0:_0xffde24[_0x520e55(0x35c)],'records':((_0x183fe5=_0x5b734a[_0x520e55(0x3bd)][_0x56c3cf])==null||(_0x183fe5=_0x183fe5[_0x520e55(0x18c)])==null?void 0x0:_0x183fe5[_0x520e55(0x7d)])??Object[_0x520e55(0xd3)](((_0x11719a=_0x5b734a[_0x520e55(0x3bd)][_0x56c3cf])==null?void 0x0:_0x11719a[_0x520e55(0x309)])??{})[_0x520e55(0x7d)]});}['repairViewConfig'](_0x17de21,_0x1323e8,_0x503714){const _0x1fb539=_0x142fa8;var _0x8b1bb8,_0x25822c,_0x19a190;let _0x2d3bcc=_0x17de21['tables'][_0x1323e8],_0xbbc089=_0x2d3bcc==null?void 0x0:_0x2d3bcc[_0x1fb539(0x1df)][_0x503714];if(!_0x2d3bcc||!_0xbbc089)throw Error(_0x1fb539(0x36d)+_0x503714+'\x22.');let _0x4eea70=_0x55c0e5=>!!_0x2d3bcc[_0x1fb539(0x37f)][_0x55c0e5],_0x4bf1c2={..._0xbbc089,'filter':_0xbbc089['filter']?{..._0xbbc089[_0x1fb539(0x13c)],'conditions':_0xbbc089['filter'][_0x1fb539(0x37b)][_0x1fb539(0x13c)](_0x153d55=>_0x4eea70(_0x153d55[_0x1fb539(0x3c1)]))}:_0xbbc089[_0x1fb539(0x13c)],'sort':(_0x8b1bb8=_0xbbc089[_0x1fb539(0x34b)])==null?void 0x0:_0x8b1bb8[_0x1fb539(0x13c)](_0x312b30=>_0x4eea70(_0x312b30[_0x1fb539(0x3c1)])),'group':(_0x25822c=_0xbbc089[_0x1fb539(0x22c)])==null?void 0x0:_0x25822c[_0x1fb539(0x13c)](_0x1ddcb5=>_0x4eea70(_0x1ddcb5['fieldId'])),'fieldOrder':(_0x19a190=_0xbbc089[_0x1fb539(0x143)])==null?void 0x0:_0x19a190[_0x1fb539(0x13c)](_0x4eea70),'fieldSettings':Object[_0x1fb539(0xb5)](Object['entries'](_0xbbc089['fieldSettings']??{})[_0x1fb539(0x13c)](([_0x5e35ba])=>_0x4eea70(_0x5e35ba)))};if(_0x4bf1c2['type']===_0x1fb539(0x1ac)){var _0x17f982;let _0xdfaaa4=_0x4bf1c2[_0x1fb539(0xfa)]??{},_0x80c429=this[_0x1fb539(0x3dc)](_0x2d3bcc,_0x4bf1c2),_0x7f3454=this[_0x1fb539(0x322)](_0x2d3bcc,(_0x17f982=_0xdfaaa4[_0x1fb539(0x15d)])==null?void 0x0:_0x17f982[_0x1fb539(0x208)]);_0x4bf1c2['config']={..._0xdfaaa4,'groupFieldId':_0x80c429??_0xdfaaa4[_0x1fb539(0x181)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x2d3bcc,_0xdfaaa4),'cardLayout':_0xdfaaa4[_0x1fb539(0x9b)]===_0x1fb539(0x2bb)?_0x1fb539(0x2bb):_0x1fb539(0x35d),'showFieldNames':_0xdfaaa4[_0x1fb539(0x363)]!==!0x1,'fieldSettings':Object[_0x1fb539(0xb5)](Object[_0x1fb539(0x274)](_0xdfaaa4['fieldSettings']??{})[_0x1fb539(0x13c)](([_0xb4eb3f])=>_0x4eea70(_0xb4eb3f))),'columnSettings':_0xdfaaa4['columnSettings']??{},'card':{..._0xdfaaa4[_0x1fb539(0x15d)]??{},'titleFieldId':_0x7f3454,'fieldIds':this[_0x1fb539(0x330)](_0x2d3bcc,_0x4bf1c2,_0x80c429??'',_0x7f3454)}};}return{'repaired':JSON[_0x1fb539(0x2b1)](_0x4bf1c2)!==JSON[_0x1fb539(0x2b1)](_0xbbc089),'view':_0x4bf1c2};}['invalidateByOp'](){const _0x833ea2=_0x142fa8;this[_0x833ea2(0x2f9)]++;}[_0x142fa8(0x85)](_0x5f0208,_0x58b49e,_0x1ef176){const _0x2f4706=_0x142fa8;let _0x45c61b=this['_getCellRevision'](_0x5f0208)+0x1;this[_0x2f4706(0x359)]['set'](_0x5f0208,_0x45c61b);let _0x370b26=this[_0x2f4706(0x23d)][_0x2f4706(0x12f)](_0x5f0208)??[];_0x370b26['push']({'revision':_0x45c61b,'recordId':_0x58b49e,'fieldId':_0x1ef176}),this[_0x2f4706(0x23d)]['set'](_0x5f0208,_0x370b26);}[_0x142fa8(0x360)](_0x74dd0e,_0xa9d5c7){const _0x13ca15=_0x142fa8;this[_0x13ca15(0x332)](_0x74dd0e);}['invalidateByView'](_0x4d8117,_0x2fc974){const _0x584fa0=_0x142fa8;this[_0x584fa0(0x20e)][_0x584fa0(0x23a)](this[_0x584fa0(0x152)](_0x4d8117,_0x2fc974),this[_0x584fa0(0x3af)](_0x4d8117,_0x2fc974)+0x1);}['_getCachedProjection'](_0x1e2053,_0x48fbc0,_0x4ca8b5){const _0x1754f9=_0x142fa8;var _0xbf17e2;let _0xa9dba9=(_0xbf17e2=this[_0x1754f9(0x3bc)][_0x1754f9(0x12f)](_0x1e2053))==null?void 0x0:_0xbf17e2['get'](this[_0x1754f9(0x1b9)](_0x48fbc0,_0x4ca8b5));return _0xa9dba9&&_0xa9dba9['globalRevision']===this[_0x1754f9(0x2f9)]&&_0xa9dba9['tableRevision']===this[_0x1754f9(0x19c)](_0x48fbc0)&&_0xa9dba9[_0x1754f9(0x1c4)]===this['_getCellRevision'](_0x48fbc0)&&_0xa9dba9[_0x1754f9(0x2e4)]===this[_0x1754f9(0x3af)](_0x48fbc0,_0x4ca8b5)?_0xa9dba9[_0x1754f9(0x3d5)]:null;}['_setCachedProjection'](_0x58381f,_0x5f113e,_0x405f85,_0x19bf80){const _0x72bc3e=_0x142fa8;let _0x58273d=this['_projectionCache'][_0x72bc3e(0x12f)](_0x58381f);return _0x58273d||(_0x58273d=new Map(),this['_projectionCache']['set'](_0x58381f,_0x58273d)),_0x58273d[_0x72bc3e(0x23a)](this[_0x72bc3e(0x1b9)](_0x5f113e,_0x405f85),{'projection':_0x19bf80,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x72bc3e(0x19c)](_0x5f113e),'cellRevision':this['_getCellRevision'](_0x5f113e),'viewRevision':this[_0x72bc3e(0x3af)](_0x5f113e,_0x405f85)}),_0x19bf80;}['_bumpTableRevision'](_0x10fde2){const _0x4a87a3=_0x142fa8;this['_tableRevisions'][_0x4a87a3(0x23a)](_0x10fde2,this['_getTableRevision'](_0x10fde2)+0x1);}[_0x142fa8(0x19c)](_0x8763ea){const _0x57a17=_0x142fa8;return this['_tableRevisions'][_0x57a17(0x12f)](_0x8763ea)??0x0;}[_0x142fa8(0x19e)](_0x485e44){const _0x5ed692=_0x142fa8;return this[_0x5ed692(0x359)][_0x5ed692(0x12f)](_0x485e44)??0x0;}[_0x142fa8(0x3af)](_0x5318ac,_0x58198c){const _0x271b4f=_0x142fa8;return this[_0x271b4f(0x20e)][_0x271b4f(0x12f)](this[_0x271b4f(0x152)](_0x5318ac,_0x58198c))??0x0;}[_0x142fa8(0x1b9)](_0x8e5af4,_0x339c48){return _0x8e5af4+'\x00'+_0x339c48;}[_0x142fa8(0x15e)](_0x2cdd62,_0x439266){const _0x557c17=_0x142fa8;return _0x2cdd62+'\x00'+this[_0x557c17(0x174)](_0x439266);}[_0x142fa8(0x3c8)](_0x421fcf,_0xaf43e2,_0x56af1b){const _0xb7345f=_0x142fa8;return _0x421fcf+'\x00'+this[_0xb7345f(0x174)](_0xaf43e2)+'\x00'+this[_0xb7345f(0xf1)](_0x56af1b);}[_0x142fa8(0x174)](_0x99423){const _0x4d2dfd=_0x142fa8;return _0x99423?mi({'filter':di(_0x99423[_0x4d2dfd(0x13c)]),'sort':pi(_0x99423[_0x4d2dfd(0x34b)])}):'__all__';}[_0x142fa8(0xf1)](_0x57081d){const _0x224fc0=_0x142fa8;return mi(_0x57081d[_0x224fc0(0x1bc)](_0x3c8fc3=>({'fieldId':_0x3c8fc3[_0x224fc0(0x3c1)],'direction':_0x3c8fc3[_0x224fc0(0x212)]??null})));}['_viewRevisionKey'](_0x175ed3,_0x55e697){return _0x175ed3+'\x00'+_0x55e697;}[_0x142fa8(0x418)](_0x43375b,_0x3e73a5){const _0x436908=_0x142fa8;var _0x3063bb;let _0xb36d=Je(_0x43375b),_0x440490=this[_0x436908(0x1a9)](_0x43375b,_0x3e73a5),_0x1b13aa=(_0x3063bb=_0x3e73a5['filter'])!=null&&_0x3063bb['conditions'][_0x436908(0x7d)]?this['_projectRows'](_0x43375b,{..._0x3e73a5,'filter':null}):_0x440490,_0x64a496=nt(this[_0x436908(0x1bb)](_0x43375b,_0xb36d,_0x3e73a5['id'],_0x1b13aa[_0x436908(0x1bc)](_0x1b6e9d=>_0x1b6e9d['recordId'])),_0x1b13aa,new Set(_0x440490['map'](_0x1cdff2=>_0x1cdff2[_0x436908(0x1ee)])));return{'type':_0x22d567[_0x436908(0x3b7)],'fields':this[_0x436908(0x1cd)](_0x43375b,_0x3e73a5),'rows':_0x64a496[_0x436908(0x308)],'groups':this['_projectHierarchyGroups'](_0x43375b,_0x3e73a5,_0x64a496[_0x436908(0x308)],_0x64a496[_0x436908(0x36b)]),'hierarchy':_0x64a496[_0x436908(0x36b)],'frozenFieldCount':typeof _0x3e73a5[_0x436908(0xfa)][_0x436908(0x145)]==_0x436908(0xcb)?_0x3e73a5[_0x436908(0xfa)][_0x436908(0x145)]:0x0};}['_getHierarchyIndex'](_0x3b8d86,_0x4b1de4,_0x3b06f8,_0x5d1390){const _0x2c5ade=_0x142fa8;let _0x2bd8a8=_0x3b8d86['id']+'\x00'+_0x4b1de4+'\x00'+_0x3b06f8,_0x4ac6a4=this[_0x2c5ade(0x19e)](_0x3b8d86['id']),_0x36b0f3=this[_0x2c5ade(0x157)][_0x2c5ade(0x12f)](_0x2bd8a8);if(_0x36b0f3&&_0x36b0f3[_0x2c5ade(0xb7)]===this[_0x2c5ade(0x2f9)]&&_0x36b0f3[_0x2c5ade(0x182)]===this[_0x2c5ade(0x19c)](_0x3b8d86['id'])&&_0x36b0f3[_0x2c5ade(0x41b)][_0x2c5ade(0x7d)]===_0x5d1390[_0x2c5ade(0x7d)]&&_0x36b0f3['orderedRecordIds']['every']((_0x464cec,_0x2d3280)=>_0x464cec===_0x5d1390[_0x2d3280])){if(_0x36b0f3[_0x2c5ade(0x1c4)]===_0x4ac6a4&&_0x36b0f3['table']===_0x3b8d86)return _0x36b0f3[_0x2c5ade(0x2e6)];if(!this[_0x2c5ade(0x106)](_0x3b8d86['id'],_0x36b0f3[_0x2c5ade(0x1c4)],_0x4ac6a4,new Set([_0x4b1de4])))return this[_0x2c5ade(0x157)][_0x2c5ade(0x23a)](_0x2bd8a8,{..._0x36b0f3,'table':_0x3b8d86,'cellRevision':_0x4ac6a4}),_0x36b0f3[_0x2c5ade(0x2e6)];}let _0x4326f8=tt(_0x3b8d86,_0x4b1de4,_0x5d1390);return this[_0x2c5ade(0x157)][_0x2c5ade(0x23a)](_0x2bd8a8,{'table':_0x3b8d86,'index':_0x4326f8,'orderedRecordIds':_0x5d1390,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x2c5ade(0x19c)](_0x3b8d86['id']),'cellRevision':_0x4ac6a4}),_0x4326f8;}['_projectHierarchyGroups'](_0x204a8f,_0x46bc9d,_0x452051,_0x5b9913){const _0x2441ed=_0x142fa8;var _0x5cf6b9;if(!((_0x5cf6b9=_0x46bc9d['group'])!=null&&_0x5cf6b9[_0x2441ed(0x7d)]))return[];let _0x1c44c1=new Map(_0x452051[_0x2441ed(0x1bc)](_0x102c90=>[_0x102c90[_0x2441ed(0x1ee)],_0x102c90])),_0x56c7c0=_0x5b9913[_0x2441ed(0x178)]['flatMap'](_0x2d737e=>{const _0x120dac=_0x2441ed;let _0x1b8b42=_0x1c44c1[_0x120dac(0x12f)](_0x2d737e);return _0x1b8b42?[_0x1b8b42]:[];}),_0xb49622=this[_0x2441ed(0x352)](_0x204a8f,_0x46bc9d,_0x56c7c0),_0xb63d2a=new Map(_0x5b9913[_0x2441ed(0x41b)][_0x2441ed(0x1bc)]((_0x1781fc,_0x1a1084)=>[_0x1781fc,_0x1a1084])),_0x2533da=_0xaedda0=>{const _0x3ab457=_0x2441ed;let _0x47d677=_0x5b9913[_0x3ab457(0x197)][_0xaedda0],_0x317d44=_0xb63d2a[_0x3ab457(0x12f)](_0xaedda0)??-0x1;return _0x317d44<0x0||!_0x47d677?[]:_0x5b9913[_0x3ab457(0x41b)]['slice'](_0x317d44,_0x47d677[_0x3ab457(0xcd)]+0x1);},_0x36b908=_0x11230b=>{const _0x3fb3e8=_0x2441ed;var _0x132b90,_0x271908;return{..._0x11230b,'recordIds':(_0x132b90=_0x11230b[_0x3fb3e8(0x1e9)])!=null&&_0x132b90['length']?_0x11230b[_0x3fb3e8(0x3ff)]:_0x11230b[_0x3fb3e8(0x3ff)]['flatMap'](_0x2533da),'children':(_0x271908=_0x11230b[_0x3fb3e8(0x1e9)])==null?void 0x0:_0x271908[_0x3fb3e8(0x1bc)](_0x36b908)};};return _0xb49622[_0x2441ed(0x1bc)](_0x36b908);}[_0x142fa8(0x3e9)](_0x3081ea,_0x1bcf6e){const _0x5b3cc4=_0x142fa8;var _0x3eceba;let _0x1a5db7=this['_resolveKanbanGroupFieldId'](_0x3081ea,_0x1bcf6e),_0x1c2705=_0x1a5db7?_0x3081ea['fields'][_0x1a5db7]:void 0x0;if(!_0x1c2705)return{'type':_0x5b3cc4(0x113),'viewType':_0x22d567[_0x5b3cc4(0x42c)],'reason':'invalidGroupField','fieldId':_0x1bcf6e[_0x5b3cc4(0xfa)][_0x5b3cc4(0x181)]};let _0x16c629=this['_projectRows'](_0x3081ea,_0x1bcf6e),_0xc0eb01=this[_0x5b3cc4(0x1cd)](_0x3081ea,_0x1bcf6e),_0x21dccd=_0x1bcf6e[_0x5b3cc4(0xfa)]??{},_0x2bec93=this[_0x5b3cc4(0x322)](_0x3081ea,(_0x3eceba=_0x21dccd[_0x5b3cc4(0x15d)])==null?void 0x0:_0x3eceba[_0x5b3cc4(0x208)]),_0x437009=this[_0x5b3cc4(0x330)](_0x3081ea,_0x1bcf6e,_0x1c2705['id'],_0x2bec93),_0x3caded=new Map();if(F(_0x3081ea,_0x1c2705['id'])){let _0x442e44=this['_getHierarchyIndex'](_0x3081ea,_0x1c2705['id'],_0x1bcf6e['id'],_0x16c629['map'](_0x3b9304=>_0x3b9304[_0x5b3cc4(0x1ee)])),_0x4ac9f8=new Map();return _0x16c629[_0x5b3cc4(0x2e7)](_0x3153a6=>{const _0x3aae6f=_0x5b3cc4;let _0xcb6d53=_0x442e44[_0x3aae6f(0x22a)][_0x3aae6f(0x12f)](_0x3153a6[_0x3aae6f(0x1ee)])??null,_0x5ad634=_0xcb6d53??'',_0x1577dc=_0xcb6d53?_0x3081ea[_0x3aae6f(0x309)][_0xcb6d53]:void 0x0,_0xbb92b8=_0x4ac9f8['get'](_0x5ad634)??{'key':_0x5ad634,'title':_0x1577dc?String(yt(_0x3081ea,_0x1577dc['id'],_0x3081ea[_0x3aae6f(0x195)])??_0xcb6d53):this[_0x3aae6f(0xbe)](_0x1c2705,_0x5ad634,_0x21dccd),'recordIds':[]};_0xbb92b8[_0x3aae6f(0x3ff)][_0x3aae6f(0x319)](_0x3153a6[_0x3aae6f(0x1ee)]),_0x4ac9f8[_0x3aae6f(0x23a)](_0x5ad634,_0xbb92b8);}),{'type':_0x22d567[_0x5b3cc4(0x42c)],'fields':_0xc0eb01,'rows':_0x16c629,'groups':[],'groupFieldId':_0x1c2705['id'],'titleFieldId':_0x2bec93,'coverFieldId':this[_0x5b3cc4(0x7f)](_0x3081ea,_0x21dccd),'cardLayout':_0x21dccd[_0x5b3cc4(0x9b)]==='compose'?_0x5b3cc4(0x2bb):_0x5b3cc4(0x35d),'showFieldNames':_0x21dccd[_0x5b3cc4(0x363)]!==!0x1,'visibleCardFieldIds':_0x437009,'lanes':['',..._0x442e44[_0x5b3cc4(0x41b)]][_0x5b3cc4(0x167)](_0x5e1378=>{const _0x159d69=_0x5b3cc4;let _0x5b6ffe=_0x4ac9f8[_0x159d69(0x12f)](_0x5e1378);return _0x5b6ffe!=null&&_0x5b6ffe['recordIds'][_0x159d69(0x7d)]?[_0x5b6ffe]:[];})};}return this['_getKanbanConfiguredLanes'](_0x1c2705,_0x21dccd)['forEach'](_0x44f5b7=>_0x3caded[_0x5b3cc4(0x23a)](_0x44f5b7[_0x5b3cc4(0x40b)],{..._0x44f5b7,'recordIds':[]})),_0x16c629['forEach'](_0x330dd5=>{const _0x1e9156=_0x5b3cc4;this['_kanbanGroupKeys'](_0x1c2705,_0x330dd5[_0x1e9156(0x307)][_0x1c2705['id']])['forEach'](_0x3aaf46=>{const _0x406a64=_0x1e9156;let _0x5c44ad=_0x3caded[_0x406a64(0x12f)](_0x3aaf46)??{'key':_0x3aaf46,'title':this['_kanbanLaneTitle'](_0x1c2705,_0x3aaf46,_0x21dccd),'color':this[_0x406a64(0x1ca)](_0x1c2705,_0x3aaf46,_0x21dccd),'recordIds':[]};_0x5c44ad[_0x406a64(0x3ff)][_0x406a64(0x319)](_0x330dd5['recordId']),_0x3caded[_0x406a64(0x23a)](_0x3aaf46,_0x5c44ad);});}),{'type':_0x22d567[_0x5b3cc4(0x42c)],'fields':_0xc0eb01,'rows':_0x16c629,'groups':this[_0x5b3cc4(0x352)](_0x3081ea,_0x1bcf6e,_0x16c629),'groupFieldId':_0x1c2705['id'],'titleFieldId':_0x2bec93,'coverFieldId':this[_0x5b3cc4(0x7f)](_0x3081ea,_0x21dccd),'cardLayout':_0x21dccd[_0x5b3cc4(0x9b)]===_0x5b3cc4(0x2bb)?_0x5b3cc4(0x2bb):_0x5b3cc4(0x35d),'showFieldNames':_0x21dccd[_0x5b3cc4(0x363)]!==!0x1,'visibleCardFieldIds':_0x437009,'lanes':Array['from'](_0x3caded[_0x5b3cc4(0x307)]())};}[_0x142fa8(0x3dc)](_0x56801b,_0x2a2f47){const _0x3f04f6=_0x142fa8;var _0x3a6c7d;let _0x288ae7=(_0x3a6c7d=_0x2a2f47['config'])==null?void 0x0:_0x3a6c7d[_0x3f04f6(0x181)];return _0x288ae7&&this[_0x3f04f6(0xc6)](_0x56801b,_0x288ae7)?_0x288ae7:this[_0x3f04f6(0x286)](_0x56801b,_0x169edc=>this['_isAllowedKanbanGroupField'](_0x169edc));}['_findKanbanGroupField'](_0xf52700,_0x5c6943){const _0x4024b0=_0x142fa8;for(let _0x50a90f of _0xf52700[_0x4024b0(0x143)]){let _0x46f808=_0xf52700[_0x4024b0(0x37f)][_0x50a90f];if(_0x46f808&&_0x5c6943(_0x46f808))return _0x46f808['id'];}return null;}[_0x142fa8(0xc6)](_0x597046,_0x2195bd){const _0x5a5f3b=_0x142fa8;let _0x2efd35=_0x597046['fields'][_0x2195bd];return this[_0x5a5f3b(0xe5)](_0x2efd35)||F(_0x597046,_0x2195bd);}['_isAllowedKanbanGroupField'](_0x57ab0c){const _0x51d872=_0x142fa8;return!!_0x57ab0c&&(_0x57ab0c['type']===_0x2348b1[_0x51d872(0x14e)]||_0x57ab0c[_0x51d872(0x35c)]===_0x2348b1[_0x51d872(0x3b0)]||_0x57ab0c['type']===_0x2348b1[_0x51d872(0x41d)]||_0x57ab0c['type']===_0x2348b1[_0x51d872(0x30f)]||_0x57ab0c[_0x51d872(0x35c)]===_0x2348b1[_0x51d872(0x12d)]||_0x57ab0c[_0x51d872(0x35c)]===_0x2348b1[_0x51d872(0x326)]);}[_0x142fa8(0x2d5)](_0x4f81c8){const _0x1999d9=_0x142fa8;return _0x4f81c8['type']===_0x2348b1[_0x1999d9(0x14e)]||_0x4f81c8[_0x1999d9(0x35c)]===_0x2348b1[_0x1999d9(0x3b0)];}['_resolveKanbanCoverFieldId'](_0x18d283,_0x4de39a){const _0x31df66=_0x142fa8;var _0xb96cca;let _0x27f1ee=_0x4de39a[_0x31df66(0x14f)]??((_0xb96cca=_0x4de39a[_0x31df66(0x15d)])==null?void 0x0:_0xb96cca['coverFieldId'])??null;if(!_0x27f1ee)return null;let _0x2c7f8b=_0x18d283[_0x31df66(0x37f)][_0x27f1ee];return _0x2c7f8b&&this[_0x31df66(0x10e)](_0x2c7f8b)[_0x31df66(0x21d)]?_0x2c7f8b['id']:null;}[_0x142fa8(0x330)](_0x9f1f6a,_0x35c2e4,_0x20512e,_0x59da3e=this[_0x142fa8(0x322)](_0x9f1f6a,((()=>{const _0x4b7da7=_0x142fa8;var _0x5d731b;return(_0x5d731b=_0x35c2e4[_0x4b7da7(0xfa)])==null||(_0x5d731b=_0x5d731b[_0x4b7da7(0x15d)])==null?void 0x0:_0x5d731b[_0x4b7da7(0x208)];})()))){const _0x5a05ae=_0x142fa8;var _0x314d48;let _0x1db980=_0x35c2e4['config']??{},_0x4536c3=(_0x314d48=_0x1db980[_0x5a05ae(0x15d)])!=null&&(_0x314d48=_0x314d48['fieldIds'])!=null&&_0x314d48[_0x5a05ae(0x7d)]?_0x1db980['card']['fieldIds']:Qr(_0x9f1f6a,[_0x59da3e,_0x9f1f6a['primaryFieldId'],_0x20512e]),_0x171e98=_0x1db980[_0x5a05ae(0x241)]??{};return _0x4536c3['filter'](_0x18616f=>{const _0x1550f5=_0x5a05ae;var _0x475e55,_0x296619;let _0x1a916f=_0x9f1f6a['fields'][_0x18616f];return!(!_0x1a916f||_0x1a916f[_0x1550f5(0x231)]===!0x0||_0x1a916f[_0x1550f5(0x35c)]===_0x2348b1[_0x1550f5(0x416)]||_0x1a916f['id']===_0x20512e||_0x1a916f['id']===_0x59da3e||(_0x475e55=_0x35c2e4[_0x1550f5(0x241)])!=null&&(_0x475e55=_0x475e55[_0x18616f])!=null&&_0x475e55[_0x1550f5(0x3ef)]||(_0x296619=_0x171e98[_0x18616f])!=null&&_0x296619[_0x1550f5(0x3ef)]);})[_0x5a05ae(0x34b)]((_0x43b5ff,_0x11a9d4)=>{const _0x29d2bf=_0x5a05ae;var _0x3a024f,_0x508632;return(((_0x3a024f=_0x171e98[_0x43b5ff])==null?void 0x0:_0x3a024f['order'])??_0x4536c3['indexOf'](_0x43b5ff))-(((_0x508632=_0x171e98[_0x11a9d4])==null?void 0x0:_0x508632[_0x29d2bf(0x1af)])??_0x4536c3['indexOf'](_0x11a9d4));});}['_getKanbanConfiguredLanes'](_0x94a671,_0x258eb2){const _0x1adea3=_0x142fa8;var _0x40f221;let _0x1b51a0=(Array[_0x1adea3(0x8f)]((_0x40f221=_0x94a671[_0x1adea3(0xfa)])==null?void 0x0:_0x40f221['options'])?_0x94a671[_0x1adea3(0xfa)][_0x1adea3(0xbd)]:[])['flatMap']((_0x396d6a,_0x1ef215)=>{const _0x183618=_0x1adea3;if(_0x396d6a==null)return[];let _0x5914c9=typeof _0x396d6a==_0x183618(0x3a1)?{'id':_0x396d6a,'name':_0x396d6a,'color':void 0x0}:_0x396d6a,_0x15378f=String(_0x5914c9['id']??_0x5914c9[_0x183618(0x112)]??_0x183618(0x1aa)+(_0x1ef215+0x1));return[{'key':_0x15378f,'title':String(_0x5914c9[_0x183618(0x112)]??_0x5914c9['id']??_0x15378f),'color':this[_0x183618(0x1ca)](_0x94a671,_0x15378f,_0x258eb2)}];});return Object[_0x1adea3(0x274)](_0x258eb2['columnSettings']??{})['forEach'](([_0x5c7ae0,_0x3beb4f])=>{const _0x57caf3=_0x1adea3;_0x1b51a0[_0x57caf3(0x3b4)](_0x3a6ba3=>_0x3a6ba3[_0x57caf3(0x40b)]===_0x5c7ae0)||_0x1b51a0[_0x57caf3(0x319)]({'key':_0x5c7ae0,'title':this[_0x57caf3(0x2d5)](_0x94a671)?_0x3beb4f[_0x57caf3(0x30d)]??this[_0x57caf3(0xbe)](_0x94a671,_0x5c7ae0,_0x258eb2):this[_0x57caf3(0xbe)](_0x94a671,_0x5c7ae0,_0x258eb2),'color':this[_0x57caf3(0x1ca)](_0x94a671,_0x5c7ae0,_0x258eb2)});}),_0x1b51a0;}[_0x142fa8(0x318)](_0x4e92c4,_0xb34f7f){const _0x55d8cb=_0x142fa8;let _0x3d35b0=_0x102d1f=>{var _0x3bc535;let _0x3209e5=_0x102d1f==null?'':String(_0x102d1f);return!_0x3209e5||!this['_isColorfulKanbanGroupField'](_0x4e92c4)?_0x3209e5:((_0x3bc535=Li(_0x4e92c4,_0x3209e5))==null?void 0x0:_0x3bc535['id'])??_0x3209e5;};if(Array[_0x55d8cb(0x8f)](_0xb34f7f)){let _0x5c46ca=_0xb34f7f[_0x55d8cb(0x1bc)](_0x3d35b0)[_0x55d8cb(0x13c)](_0x304ff5=>_0x304ff5!=='');return _0x5c46ca[_0x55d8cb(0x7d)]?_0x5c46ca:[''];}return[_0x3d35b0(_0xb34f7f)];}[_0x142fa8(0xbe)](_0x4d2eea,_0x20fc36,_0x2bfe82){const _0x51d57b=_0x142fa8;if(!_0x20fc36)return _0x51d57b(0x2fc);let _0x2ab88d=Li(_0x4d2eea,_0x20fc36);return(_0x2ab88d==null?void 0x0:_0x2ab88d[_0x51d57b(0x112)])??_0x20fc36;}[_0x142fa8(0x1ca)](_0x3d7fed,_0x4d68a3,_0x459714){const _0x266655=_0x142fa8;var _0x317f62;if(this[_0x266655(0x2d5)](_0x3d7fed))return(_0x317f62=Li(_0x3d7fed,_0x4d68a3))==null?void 0x0:_0x317f62[_0x266655(0x12b)];}['_buildCalendar'](_0x4ac984,_0xd5c108){const _0x544680=_0x142fa8;let _0x1791a4=this[_0x544680(0x25c)](_0x4ac984,_0xd5c108[_0x544680(0xfa)]??{}),_0x2a9ca3=_0x4ac984[_0x544680(0x37f)][_0x1791a4[_0x544680(0x3f4)]];if(!_0x2a9ca3||_0x2a9ca3[_0x544680(0x35c)]!==_0x2348b1[_0x544680(0xff)]||_0x2a9ca3[_0x544680(0x381)]===!0x0||_0x2a9ca3[_0x544680(0x231)]===!0x0||!this['_capabilities'](_0x2a9ca3)[_0x544680(0x251)])return{'type':_0x544680(0x113),'viewType':_0x22d567[_0x544680(0x279)],'reason':_0x544680(0x23f),'fieldId':_0x1791a4[_0x544680(0x3f4)]};let _0x23ba00=_0x1791a4[_0x544680(0x296)]?_0x4ac984[_0x544680(0x37f)][_0x1791a4[_0x544680(0x296)]]:void 0x0,_0x3d1e84=this[_0x544680(0x1a9)](_0x4ac984,_0xd5c108);return{'type':_0x22d567[_0x544680(0x279)],'config':_0x1791a4,'fields':this['_projectFields'](_0x4ac984,_0xd5c108),'rows':_0x3d1e84,'groups':this[_0x544680(0x352)](_0x4ac984,_0xd5c108,_0x3d1e84),'events':_0x3d1e84[_0x544680(0x167)](_0x11fc51=>{const _0x39fbaa=_0x544680;let _0x28f7db=dn(_0x11fc51[_0x39fbaa(0x307)][_0x1791a4[_0x39fbaa(0x3f4)]]);if(!Number[_0x39fbaa(0x1a1)](_0x28f7db))return[];let _0x45a26b=_0x11fc51[_0x39fbaa(0x307)][_0x1791a4[_0x39fbaa(0x3f4)]],_0x449dd1=_0x1791a4[_0x39fbaa(0x296)]==null?void 0x0:_0x11fc51['values'][_0x1791a4[_0x39fbaa(0x296)]],_0x409363=_0x1791a4[_0x39fbaa(0x296)]==null?void 0x0:dn(_0x449dd1),_0x1be4ae=Number[_0x39fbaa(0x1a1)](_0x409363)?_0x409363:void 0x0;return[{'recordId':_0x11fc51[_0x39fbaa(0x1ee)],'title':this[_0x39fbaa(0x305)](_0x4ac984,_0x11fc51,_0x1791a4[_0x39fbaa(0x208)]),'start':_0x28f7db,'end':_0x1be4ae,'color':this[_0x39fbaa(0x199)](_0x4ac984,_0x11fc51,_0x1791a4),'startMs':_0x28f7db,'endMs':_0x1be4ae,'allDay':this[_0x39fbaa(0x2b6)](_0x2a9ca3,_0x23ba00,_0x45a26b,_0x449dd1),'fieldValues':_0x11fc51[_0x39fbaa(0x307)]}];})};}[_0x142fa8(0x25c)](_0x1d383c,_0x36fe79){const _0x4bc014=_0x142fa8;let _0x26d2a3=this[_0x4bc014(0x22f)](_0x1d383c,_0x36fe79['startDateFieldId']),_0x36e67a=_0x36fe79['endDateFieldId']&&this[_0x4bc014(0x2a6)](_0x1d383c,_0x36fe79[_0x4bc014(0x296)])?_0x36fe79[_0x4bc014(0x296)]:this['_findCalendarDateFieldId'](_0x1d383c,_0x26d2a3)??void 0x0,_0x22cb67=_0x36fe79[_0x4bc014(0x208)]?_0x1d383c[_0x4bc014(0x37f)][_0x36fe79[_0x4bc014(0x208)]]:void 0x0,_0x5b7d0a=_0x22cb67&&_0x22cb67[_0x4bc014(0x231)]!==!0x0&&_0x22cb67[_0x4bc014(0x35c)]!==_0x2348b1[_0x4bc014(0x416)]?_0x36fe79[_0x4bc014(0x208)]:_0x1d383c[_0x4bc014(0x195)],_0x5789aa=_0x36fe79[_0x4bc014(0x83)]===_0x4bc014(0x341)||_0x36fe79[_0x4bc014(0x83)]===_0x4bc014(0x304)?_0x36fe79['mode']:'month',_0x2fb3a5=_0x36fe79[_0x4bc014(0x2c2)]===_0x4bc014(0x228)||_0x36fe79[_0x4bc014(0x2c2)]===_0x4bc014(0x34d)?_0x36fe79[_0x4bc014(0x2c2)]:_0x4bc014(0x3aa),_0x50c0fb=typeof _0x36fe79['timeZone']==_0x4bc014(0x3a1)&&_0x36fe79[_0x4bc014(0x3a0)]['trim']()?_0x36fe79[_0x4bc014(0x3a0)]:_0x4bc014(0xf6),_0x2d8dd1=this['_normalizeCalendarDisplayColor'](_0x1d383c,_0x36fe79);return{..._0x36fe79,'startDateFieldId':_0x26d2a3,'endDateFieldId':_0x36e67a,'titleFieldId':_0x5b7d0a,'mode':_0x5789aa,'timeslotSize':_0x2fb3a5,'timeZone':_0x50c0fb,'displayColor':_0x2d8dd1,'fieldSettings':Object[_0x4bc014(0xb5)](Object[_0x4bc014(0x274)](_0x36fe79['fieldSettings']??{})['filter'](([_0x1d1f59])=>{const _0x7e91f5=_0x4bc014;let _0x57cb7a=_0x1d383c[_0x7e91f5(0x37f)][_0x1d1f59];return!!(_0x57cb7a&&_0x57cb7a[_0x7e91f5(0x231)]!==!0x0&&_0x57cb7a['type']!==_0x2348b1[_0x7e91f5(0x416)]);}))};}[_0x142fa8(0x22f)](_0x78b60d,_0x2f53bf){const _0x1e49d9=_0x142fa8;return _0x2f53bf&&this['_isCalendarDateField'](_0x78b60d,_0x2f53bf)?_0x2f53bf:this[_0x1e49d9(0x2f4)](_0x78b60d)??_0x2f53bf??'';}['_findCalendarDateFieldId'](_0x1a54d0,_0x110706){const _0x17de6e=_0x142fa8;for(let _0x1dc37e of _0x1a54d0[_0x17de6e(0x143)])if(_0x1dc37e!==_0x110706&&this[_0x17de6e(0x2a6)](_0x1a54d0,_0x1dc37e))return _0x1dc37e;return null;}[_0x142fa8(0x2a6)](_0x263de4,_0x2c2f08){const _0x533b25=_0x142fa8;let _0x50c060=_0x263de4[_0x533b25(0x37f)][_0x2c2f08];return!!_0x50c060&&_0x50c060[_0x533b25(0x35c)]===_0x2348b1[_0x533b25(0xff)]&&_0x50c060['readonly']!==!0x0&&_0x50c060['system']!==!0x0&&this[_0x533b25(0x10e)](_0x50c060)[_0x533b25(0x251)];}[_0x142fa8(0x299)](_0xdccf2f,_0x45e96c){const _0x4f24f1=_0x142fa8;let _0x18772a=_0x45e96c['displayColor'];if((_0x18772a==null?void 0x0:_0x18772a['type'])==='selectField'){let _0x439e85=_0xdccf2f[_0x4f24f1(0x37f)][_0x18772a[_0x4f24f1(0x3c1)]];if(_0x439e85&&_0x439e85[_0x4f24f1(0x35c)]===_0x2348b1['SingleSelect'])return _0x18772a;}if((_0x18772a==null?void 0x0:_0x18772a[_0x4f24f1(0x35c)])===_0x4f24f1(0x36e)&&typeof _0x18772a['color']==_0x4f24f1(0x3a1)&&_0x18772a['color'][_0x4f24f1(0x41a)]())return{'type':_0x4f24f1(0x36e),'color':_0x18772a[_0x4f24f1(0x12b)]};if(_0x45e96c[_0x4f24f1(0x327)]){let _0x2b18f1=_0xdccf2f['fields'][_0x45e96c[_0x4f24f1(0x327)]];if(_0x2b18f1&&_0x2b18f1[_0x4f24f1(0x35c)]===_0x2348b1[_0x4f24f1(0x14e)])return{'type':_0x4f24f1(0x233),'fieldId':_0x45e96c['colorFieldId']};}return{'type':_0x4f24f1(0x36e),'color':_0x4f24f1(0x1e4)};}[_0x142fa8(0x199)](_0x2f7196,_0x1fbd94,_0x50ce1a){const _0x66002a=_0x142fa8;let _0x23bc33=_0x50ce1a[_0x66002a(0x314)];if((_0x23bc33==null?void 0x0:_0x23bc33[_0x66002a(0x35c)])==='selectField'){var _0x377991;let _0x5d847a=_0x2f7196[_0x66002a(0x37f)][_0x23bc33[_0x66002a(0x3c1)]];if(!_0x5d847a)return;let _0x209943=_0x1fbd94['values'][_0x23bc33[_0x66002a(0x3c1)]],_0x1b2791=Array[_0x66002a(0x8f)](_0x209943)?_0x209943[0x0]:_0x209943;return _0x1b2791==null||(_0x377991=Li(_0x5d847a,String(_0x1b2791)))==null?void 0x0:_0x377991['color'];}if((_0x23bc33==null?void 0x0:_0x23bc33[_0x66002a(0x35c)])===_0x66002a(0x36e))return _0x23bc33['color'];}[_0x142fa8(0x2b6)](_0x4d922e,_0x141cbd,_0x13b434,_0x906d76){const _0x5a3118=_0x142fa8;var _0x11a470,_0x3316ef;let _0x214a8e=((_0x11a470=_0x4d922e['config'])==null?void 0x0:_0x11a470['includeTime'])===!0x0,_0x3310b1=(_0x141cbd==null||(_0x3316ef=_0x141cbd['config'])==null?void 0x0:_0x3316ef[_0x5a3118(0x14b)])===!0x0;return!_0x214a8e&&!_0x3310b1;}[_0x142fa8(0x2c4)](_0x447a88,_0x38097c){const _0x15484d=_0x142fa8;var _0x4139ee,_0xe29730;let _0x2758ae=((_0x4139ee=_0x447a88[_0x15484d(0xfa)])==null?void 0x0:_0x4139ee[_0x15484d(0x14b)])===!0x0,_0x114403=((_0xe29730=_0x38097c[_0x15484d(0xfa)])==null?void 0x0:_0xe29730[_0x15484d(0x14b)])===!0x0;return!_0x2758ae&&!_0x114403;}['_buildGantt'](_0x1cd3bd,_0x28a2b7){const _0x1be8f0=_0x142fa8;let _0x27a791=this[_0x1be8f0(0x373)](_0x1cd3bd,_0x28a2b7['config']),_0x451a9b=_0x1cd3bd[_0x1be8f0(0x37f)][_0x27a791[_0x1be8f0(0x3f4)]];if(!_0x451a9b||_0x451a9b[_0x1be8f0(0x35c)]!==_0x2348b1['Date']||_0x451a9b[_0x1be8f0(0x381)]===!0x0||_0x451a9b['system']===!0x0||!this[_0x1be8f0(0x10e)](_0x451a9b)[_0x1be8f0(0x288)])return{'type':_0x1be8f0(0x113),'viewType':_0x22d567['Gantt'],'reason':_0x1be8f0(0x31c),'fieldId':_0x27a791[_0x1be8f0(0x3f4)]};let _0x5950f9=_0x1cd3bd['fields'][_0x27a791[_0x1be8f0(0x296)]];if(!_0x5950f9||_0x5950f9[_0x1be8f0(0x35c)]!==_0x2348b1[_0x1be8f0(0xff)]||_0x5950f9[_0x1be8f0(0x381)]===!0x0||_0x5950f9[_0x1be8f0(0x231)]===!0x0||!this[_0x1be8f0(0x10e)](_0x5950f9)['usableAsGanttEnd'])return{'type':_0x1be8f0(0x113),'viewType':_0x22d567[_0x1be8f0(0x16b)],'reason':_0x1be8f0(0x213),'fieldId':_0x27a791[_0x1be8f0(0x296)]};let _0x215299=this['_isAllDayGanttDateRange'](_0x451a9b,_0x5950f9),_0x4ba99e=this['_projectRows'](_0x1cd3bd,_0x28a2b7),_0x2b1ced=_0x4ba99e[_0x1be8f0(0x167)](_0x347877=>{const _0x4d477a=_0x1be8f0;let _0x230f3c=dn(_0x347877[_0x4d477a(0x307)][_0x27a791[_0x4d477a(0x3f4)]]),_0x17c034=dn(_0x347877[_0x4d477a(0x307)][_0x27a791[_0x4d477a(0x296)]]);if(!Number['isFinite'](_0x230f3c)||!Number[_0x4d477a(0x1a1)](_0x17c034))return[];let _0x1a73cf=Math[_0x4d477a(0x27d)](_0x230f3c,_0x17c034),_0x29ceb8=Math[_0x4d477a(0x41f)](_0x230f3c,_0x17c034),_0x594775=_0x27a791[_0x4d477a(0x1c9)]==null?void 0x0:Number(_0x347877[_0x4d477a(0x307)][_0x27a791[_0x4d477a(0x1c9)]]);return[{'recordId':_0x347877[_0x4d477a(0x1ee)],'title':this[_0x4d477a(0x305)](_0x1cd3bd,_0x347877,_0x27a791['titleFieldId']),'start':_0x1a73cf,'end':_0x29ceb8,'color':this[_0x4d477a(0x289)](_0x1cd3bd,_0x347877,_0x27a791),'progress':Number[_0x4d477a(0x1a1)](_0x594775)?_0x594775:void 0x0,'workingDayCount':_0x27a791[_0x4d477a(0x29d)]?Ti(_0x1a73cf,_0x29ceb8,_0x27a791[_0x4d477a(0x32e)]):void 0x0,'dependencyRecordIds':this[_0x4d477a(0x125)](_0x347877[_0x4d477a(0x307)][_0x27a791[_0x4d477a(0x11f)]??''])}];}),_0x54b79c=_0x2b1ced['length']?Z(Math[_0x1be8f0(0x27d)](..._0x2b1ced['map'](_0x138530=>_0x138530['start']))-0x5a*oi):Z(Date[_0x1be8f0(0x3b2)]()-0x5a*oi),_0x327c47=_0x2b1ced['length']?Z(Math[_0x1be8f0(0x41f)](..._0x2b1ced[_0x1be8f0(0x1bc)](_0x48066a=>_0x48066a[_0x1be8f0(0x38e)]))+0x5b*oi):Z(Date['now']()+0x5b*oi),_0xf152e5=_i(_0x27a791[_0x1be8f0(0x32c)],_0x54b79c,_0x327c47,_0x27a791[_0x1be8f0(0x29d)]?_0x27a791[_0x1be8f0(0x32e)]:void 0x0);return{'type':_0x22d567[_0x1be8f0(0x16b)],'fields':this[_0x1be8f0(0x1cd)](_0x1cd3bd,{..._0x28a2b7,'config':_0x27a791}),'rows':_0x4ba99e,'groups':this['_projectGroups'](_0x1cd3bd,_0x28a2b7,_0x4ba99e),'config':_0x27a791,'dateRangeAllDay':_0x215299,'timeline':{'scale':_0x27a791['scale'],'start':_0x54b79c,'end':_0x327c47,'unitWidth':_0xf152e5['unitWidth'],'majorHeaders':_0xf152e5[_0x1be8f0(0x2ef)],'columns':_0xf152e5[_0x1be8f0(0x190)]},'bars':_0x2b1ced};}[_0x142fa8(0x373)](_0x146862,_0x141754){const _0xfd7faf=_0x142fa8;let _0x27e6c4=this[_0xfd7faf(0x334)](_0x146862,_0x141754['startDateFieldId'],_0xfd7faf(0x29b)),_0x3109a9=this[_0xfd7faf(0x334)](_0x146862,_0x141754['endDateFieldId'],_0xfd7faf(0x38e))||_0x27e6c4,_0x3e75bd=_0x141754[_0xfd7faf(0x208)]?_0x146862[_0xfd7faf(0x37f)][_0x141754['titleFieldId']]:void 0x0,_0x591ecb=_0x3e75bd&&_0x3e75bd[_0xfd7faf(0x231)]!==!0x0&&_0x3e75bd[_0xfd7faf(0x35c)]!==_0x2348b1[_0xfd7faf(0x416)]?_0x141754['titleFieldId']:_0x146862['primaryFieldId'],_0x9544c3=_0x141754[_0xfd7faf(0x32c)]==='week'||_0x141754[_0xfd7faf(0x32c)]==='quarter'||_0x141754[_0xfd7faf(0x32c)]===_0xfd7faf(0x355)?_0x141754[_0xfd7faf(0x32c)]:_0xfd7faf(0x158),_0x5da017=gi(_0x141754['workingDays']);return{..._0x141754,'startDateFieldId':_0x27e6c4,'endDateFieldId':_0x3109a9,'titleFieldId':_0x591ecb,'scale':_0x9544c3,'leftPaneWidth':typeof _0x141754['leftPaneWidth']==_0xfd7faf(0xcb)?_0x141754['leftPaneWidth']:void 0x0,'leftPaneCollapsed':_0x141754[_0xfd7faf(0x2a8)]===!0x0,'showTodayLine':_0x141754['showTodayLine']!==!0x1,'displayColor':this['_normalizeGanttDisplayColor'](_0x146862,_0x141754),'fieldSettings':Object[_0xfd7faf(0xb5)](Object[_0xfd7faf(0x274)](_0x141754['fieldSettings']??{})[_0xfd7faf(0x13c)](([_0x435192])=>{const _0x4fa1f9=_0xfd7faf;let _0x22ad6b=_0x146862[_0x4fa1f9(0x37f)][_0x435192];return!!(_0x22ad6b&&_0x22ad6b[_0x4fa1f9(0x231)]!==!0x0&&_0x22ad6b[_0x4fa1f9(0x35c)]!==_0x2348b1[_0x4fa1f9(0x416)]);})),'workingDaysOnly':_0x141754['workingDaysOnly']===!0x0,'workingDays':_0x5da017};}[_0x142fa8(0x334)](_0x15137d,_0x1cb1a9,_0xfdb629){const _0x147b46=_0x142fa8;if(_0x1cb1a9&&this[_0x147b46(0xa1)](_0x15137d,_0x1cb1a9,_0xfdb629)||_0x1cb1a9)return _0x1cb1a9;for(let _0x5aaffb of _0x15137d[_0x147b46(0x143)])if(this[_0x147b46(0xa1)](_0x15137d,_0x5aaffb,_0xfdb629))return _0x5aaffb;return _0x1cb1a9??'';}[_0x142fa8(0xa1)](_0x20c7ea,_0x3dff06,_0x10a747){const _0x831c3=_0x142fa8;let _0x413a3b=_0x20c7ea['fields'][_0x3dff06];if(!_0x413a3b||_0x413a3b[_0x831c3(0x35c)]!==_0x2348b1[_0x831c3(0xff)]||_0x413a3b[_0x831c3(0x381)]===!0x0||_0x413a3b[_0x831c3(0x231)]===!0x0)return!0x1;let _0x305a10=this[_0x831c3(0x10e)](_0x413a3b);return _0x10a747===_0x831c3(0x29b)?_0x305a10[_0x831c3(0x288)]:_0x305a10[_0x831c3(0x187)];}[_0x142fa8(0x272)](_0x460b2e,_0x1b0282){const _0x5ee3e7=_0x142fa8;let _0x32f0d5=_0x1b0282[_0x5ee3e7(0x314)];if((_0x32f0d5==null?void 0x0:_0x32f0d5[_0x5ee3e7(0x35c)])===_0x5ee3e7(0x233)){let _0x3ffcdf=_0x460b2e[_0x5ee3e7(0x37f)][_0x32f0d5[_0x5ee3e7(0x3c1)]];if(_0x3ffcdf&&_0x3ffcdf[_0x5ee3e7(0x35c)]===_0x2348b1[_0x5ee3e7(0x14e)])return _0x32f0d5;}return(_0x32f0d5==null?void 0x0:_0x32f0d5[_0x5ee3e7(0x35c)])==='conditional'&&Array[_0x5ee3e7(0x8f)](_0x32f0d5[_0x5ee3e7(0x3a3)])?{'type':_0x5ee3e7(0x207),'rules':_0x32f0d5[_0x5ee3e7(0x3a3)]['filter'](_0xc6aed1=>!!_0x460b2e[_0x5ee3e7(0x37f)][_0xc6aed1['fieldId']])}:(_0x32f0d5==null?void 0x0:_0x32f0d5['type'])===_0x5ee3e7(0x36e)&&typeof _0x32f0d5[_0x5ee3e7(0x12b)]=='string'&&_0x32f0d5[_0x5ee3e7(0x12b)][_0x5ee3e7(0x41a)]()?{'type':_0x5ee3e7(0x36e),'color':_0x32f0d5[_0x5ee3e7(0x12b)]}:{'type':_0x5ee3e7(0x36e),'color':_0x5ee3e7(0xe2)};}[_0x142fa8(0x289)](_0x4f036e,_0x3355e7,_0x17897d){const _0xe482a6=_0x142fa8;let _0x28dbfa=_0x17897d['displayColor'];if((_0x28dbfa==null?void 0x0:_0x28dbfa[_0xe482a6(0x35c)])===_0xe482a6(0x207)){let _0x269410=_0x28dbfa['rules']['find'](_0x40b0f7=>this[_0xe482a6(0x1d7)](_0x4f036e,_0x3355e7,_0x40b0f7));if(_0x269410)return _0x269410[_0xe482a6(0x12b)];}if((_0x28dbfa==null?void 0x0:_0x28dbfa[_0xe482a6(0x35c)])==='selectField'){let _0x131e29=_0x4f036e['fields'][_0x28dbfa['fieldId']];if(_0x131e29){var _0x5cc885;let _0x295756=_0x3355e7[_0xe482a6(0x307)][_0x28dbfa[_0xe482a6(0x3c1)]],_0x3ba024=Array[_0xe482a6(0x8f)](_0x295756)?_0x295756[0x0]:_0x295756,_0x8f8d17=_0x3ba024==null||(_0x5cc885=Li(_0x131e29,String(_0x3ba024)))==null?void 0x0:_0x5cc885[_0xe482a6(0x12b)];if(_0x8f8d17)return _0x8f8d17;}}return(_0x28dbfa==null?void 0x0:_0x28dbfa[_0xe482a6(0x35c)])===_0xe482a6(0x36e)?_0x28dbfa[_0xe482a6(0x12b)]:'#14b8a6';}[_0x142fa8(0x1d7)](_0x49fa50,_0x1e0d7a,_0x4a37d4){const _0xff60d9=_0x142fa8;let _0x2d6da9=_0x49fa50[_0xff60d9(0x37f)][_0x4a37d4[_0xff60d9(0x3c1)]];return _0x2d6da9?xn(_0x1e0d7a[_0xff60d9(0x307)][_0x2d6da9['id']],_0x4a37d4[_0xff60d9(0x238)],_0x4a37d4[_0xff60d9(0x256)],_0x2d6da9,{'dateMode':_0x4a37d4[_0xff60d9(0x28e)]}):!0x1;}[_0x142fa8(0x34a)](_0x5121ca,_0x283f27){const _0x22bd76=_0x142fa8;let _0xbc541e=this[_0x22bd76(0x1a9)](_0x5121ca,_0x283f27),_0x2591a1=this[_0x22bd76(0x383)](_0x5121ca,_0x283f27[_0x22bd76(0xfa)]??{}),_0x2d8b33=this[_0x22bd76(0x1cd)](_0x5121ca,_0x283f27);return{'type':_0x22d567['Gallery'],'fields':_0x2d8b33,'rows':_0xbc541e,'groups':this[_0x22bd76(0x352)](_0x5121ca,_0x283f27,_0xbc541e),'titleFieldId':_0x2591a1[_0x22bd76(0x15d)][_0x22bd76(0x208)],'coverFieldId':_0x2591a1['coverFieldId'],'cardLayout':_0x2591a1[_0x22bd76(0x9b)]??_0x22bd76(0x35d),'showFieldNames':_0x2591a1[_0x22bd76(0x363)]!==!0x1,'visibleCardFieldIds':this[_0x22bd76(0x11d)](_0x5121ca,_0x283f27,_0x2591a1),'cardSize':_0x2591a1[_0x22bd76(0x204)]??'medium','cards':_0xbc541e[_0x22bd76(0x1bc)](_0x5e1b5f=>({'recordId':_0x5e1b5f['recordId'],'title':this['_title'](_0x5121ca,_0x5e1b5f,_0x2591a1[_0x22bd76(0x15d)][_0x22bd76(0x208)]),'values':_0x5e1b5f['values']}))};}[_0x142fa8(0x383)](_0x57155a,_0x443700){const _0x210235=_0x142fa8;let _0x334c47=_0x443700[_0x210235(0x15d)]??{'fieldIds':[]},_0x18985c=this[_0x210235(0x322)](_0x57155a,_0x334c47[_0x210235(0x208)]),_0x3d8f0b=this['_resolveGalleryCoverFieldId'](_0x57155a,_0x443700),_0x574bdf=_0x443700[_0x210235(0x204)]===_0x210235(0xee)||_0x443700[_0x210235(0x204)]==='large'?_0x443700[_0x210235(0x204)]:_0x210235(0x3aa);return{..._0x443700,'coverFieldId':_0x3d8f0b,'cardLayout':_0x443700['cardLayout']==='compose'?_0x210235(0x2bb):_0x210235(0x35d),'showFieldNames':_0x443700[_0x210235(0x363)]!==!0x1,'fieldSettings':Object[_0x210235(0xb5)](Object[_0x210235(0x274)](_0x443700[_0x210235(0x241)]??{})[_0x210235(0x13c)](([_0x3a4b79])=>{const _0x11118f=_0x210235;let _0x32e17=_0x57155a[_0x11118f(0x37f)][_0x3a4b79];return!!(_0x32e17&&_0x32e17[_0x11118f(0x231)]!==!0x0&&_0x32e17['type']!==_0x2348b1[_0x11118f(0x416)]);})),'card':{..._0x334c47,'titleFieldId':_0x18985c,'coverFieldId':_0x3d8f0b,'fieldIds':Array[_0x210235(0x8f)](_0x334c47[_0x210235(0x26c)])?_0x334c47[_0x210235(0x26c)]:[]},'cardSize':_0x574bdf};}[_0x142fa8(0x322)](_0x2392cb,_0x46e92c){const _0x139e44=_0x142fa8;let _0x4c69cd=_0x46e92c?_0x2392cb['fields'][_0x46e92c]:void 0x0;return _0x4c69cd&&_0x4c69cd[_0x139e44(0x231)]!==!0x0&&_0x4c69cd[_0x139e44(0x35c)]!==_0x2348b1[_0x139e44(0x416)]?_0x4c69cd['id']:Zr(_0x2392cb);}['_resolveGalleryCoverFieldId'](_0x4accf4,_0x1a1f19){const _0x384267=_0x142fa8;var _0x1bcb1b;let _0x45932f=_0x1a1f19[_0x384267(0x14f)]??((_0x1bcb1b=_0x1a1f19[_0x384267(0x15d)])==null?void 0x0:_0x1bcb1b[_0x384267(0x14f)])??null;if(!_0x45932f)return null;let _0x2e4b98=_0x4accf4['fields'][_0x45932f];return _0x2e4b98&&this['_capabilities'](_0x2e4b98)[_0x384267(0x21d)]?_0x2e4b98['id']:null;}['_resolveGalleryCardFieldIds'](_0x55d6a3,_0x1f9475,_0x2c8ca2){const _0x33cd51=_0x142fa8;var _0x1f0e2f,_0x27ba93,_0x1febe5;let _0x375eea=_0x2c8ca2[_0x33cd51(0x241)]??{},_0x596bfb=((_0x1f0e2f=_0x2c8ca2[_0x33cd51(0x15d)])==null?void 0x0:_0x1f0e2f[_0x33cd51(0x208)])??Zr(_0x55d6a3),_0x289a43=_0x2c8ca2['coverFieldId']??((_0x27ba93=_0x2c8ca2[_0x33cd51(0x15d)])==null?void 0x0:_0x27ba93['coverFieldId'])??null,_0xcb97ce=(_0x1febe5=_0x2c8ca2[_0x33cd51(0x15d)])!=null&&(_0x1febe5=_0x1febe5[_0x33cd51(0x26c)])!=null&&_0x1febe5[_0x33cd51(0x7d)]?_0x2c8ca2[_0x33cd51(0x15d)][_0x33cd51(0x26c)]:Qr(_0x55d6a3,[_0x596bfb,_0x289a43,_0x55d6a3['primaryFieldId']]);return _0xcb97ce[_0x33cd51(0x13c)](_0x3503c9=>{const _0x298083=_0x33cd51;var _0x27c5c6,_0x1ad8fe;let _0x585c40=_0x55d6a3[_0x298083(0x37f)][_0x3503c9];return!(!_0x585c40||_0x585c40[_0x298083(0x231)]===!0x0||_0x585c40['type']===_0x2348b1['RecordId']||_0x585c40['id']===_0x596bfb||_0x585c40['id']===_0x289a43||(_0x27c5c6=_0x1f9475['fieldSettings'])!=null&&(_0x27c5c6=_0x27c5c6[_0x3503c9])!=null&&_0x27c5c6[_0x298083(0x3ef)]||(_0x1ad8fe=_0x375eea[_0x3503c9])!=null&&_0x1ad8fe['hidden']);})[_0x33cd51(0x34b)]((_0x2a65b1,_0x699db)=>{const _0x460b4c=_0x33cd51;var _0x214589,_0x19ff02;return(((_0x214589=_0x375eea[_0x2a65b1])==null?void 0x0:_0x214589['order'])??_0xcb97ce[_0x460b4c(0x123)](_0x2a65b1))-(((_0x19ff02=_0x375eea[_0x699db])==null?void 0x0:_0x19ff02[_0x460b4c(0x1af)])??_0xcb97ce[_0x460b4c(0x123)](_0x699db));});}[_0x142fa8(0x1cd)](_0x168dd9,_0x32d173){const _0x1e229a=_0x142fa8;var _0x30e566;return((_0x30e566=_0x32d173[_0x1e229a(0x143)])!=null&&_0x30e566['length']?_0x32d173[_0x1e229a(0x143)]:_0x168dd9[_0x1e229a(0x143)])[_0x1e229a(0x167)](_0xbb831b=>{const _0x48d853=_0x1e229a;var _0xae315b;let _0x409894=_0x168dd9[_0x48d853(0x37f)][_0xbb831b],_0x3384c4=((_0xae315b=_0x32d173[_0x48d853(0x241)])==null?void 0x0:_0xae315b[_0xbb831b])??{};return!_0x409894||_0x409894[_0x48d853(0x231)]===!0x0||_0x409894[_0x48d853(0x35c)]===_0x2348b1[_0x48d853(0x416)]||_0x3384c4['hidden']?[]:[{'id':_0x409894['id'],'name':_0x409894[_0x48d853(0x112)],'description':_0x409894[_0x48d853(0xab)],'type':_0x409894['type'],'config':_0x409894['config'],'width':_0x3384c4[_0x48d853(0x3d4)],'setting':_0x3384c4}];});}[_0x142fa8(0x1a9)](_0x340f4a,_0x1688ff){const _0x25fd2b=_0x142fa8;var _0x17be9f;return I(_0x25fd2b(0x285),()=>{const _0x152989=_0x25fd2b;var _0x18f030,_0xab2224;let _0x5ce503=this[_0x152989(0x3eb)](_0x340f4a),_0xd7fc70=this[_0x152989(0x15e)](_0x340f4a['id'],_0x1688ff),_0x3e834e=this[_0x152989(0x19e)](_0x340f4a['id']),_0x3fbe71=this[_0x152989(0x3f5)][_0x152989(0x12f)](_0xd7fc70);if(_0x3fbe71&&_0x3fbe71[_0x152989(0xb7)]===this[_0x152989(0x2f9)]&&_0x3fbe71['tableRevision']===this[_0x152989(0x19c)](_0x340f4a['id'])){if(_0x3fbe71[_0x152989(0x1c4)]===_0x3e834e&&_0x3fbe71[_0x152989(0x30c)]===_0x5ce503)return _0x3fbe71[_0x152989(0x308)];if(_0x3fbe71['cellRevision']!==_0x3e834e&&!this['_cellInvalidationsTouchFields'](_0x340f4a['id'],_0x3fbe71[_0x152989(0x1c4)],_0x3e834e,this[_0x152989(0x1f2)](_0x1688ff))){let _0x1ab640=_0x3fbe71[_0x152989(0x308)]===_0x3fbe71['baseRows']?_0x5ce503:this['_patchCachedProjectedRows'](_0x3fbe71[_0x152989(0x308)],_0x5ce503);if(_0x1ab640)return this['_projectedViewRowsCache'][_0x152989(0x23a)](_0xd7fc70,{..._0x3fbe71,'rows':_0x1ab640,'baseRows':_0x5ce503,'cellRevision':_0x3e834e}),_0x1ab640;}}let _0x435c0b=I(_0x152989(0x1c8),()=>this['_sortRows'](_0x340f4a,_0x1688ff,this[_0x152989(0x175)](_0x340f4a,_0x1688ff,_0x5ce503)),{'tableId':_0x340f4a['id'],'viewId':_0x1688ff==null?void 0x0:_0x1688ff['id'],'viewType':_0x1688ff==null?void 0x0:_0x1688ff[_0x152989(0x35c)],'rows':_0x5ce503['length'],'filters':(_0x1688ff==null||(_0x18f030=_0x1688ff[_0x152989(0x13c)])==null?void 0x0:_0x18f030[_0x152989(0x37b)][_0x152989(0x7d)])??0x0,'sorts':(_0x1688ff==null||(_0xab2224=_0x1688ff[_0x152989(0x34b)])==null?void 0x0:_0xab2224[_0x152989(0x7d)])??0x0});return this[_0x152989(0x3f5)]['set'](_0xd7fc70,{'table':_0x340f4a,'rows':_0x435c0b,'baseRows':_0x5ce503,'globalRevision':this[_0x152989(0x2f9)],'tableRevision':this[_0x152989(0x19c)](_0x340f4a['id']),'cellRevision':_0x3e834e}),_0x435c0b;},{'tableId':_0x340f4a['id'],'viewId':_0x1688ff==null?void 0x0:_0x1688ff['id'],'viewType':_0x1688ff==null?void 0x0:_0x1688ff[_0x25fd2b(0x35c)],'records':((_0x17be9f=_0x340f4a[_0x25fd2b(0x18c)])==null?void 0x0:_0x17be9f[_0x25fd2b(0x7d)])??Object[_0x25fd2b(0xd3)](_0x340f4a[_0x25fd2b(0x309)]??{})['length']});}['_projectTableRows'](_0x3243d6){const _0x23db51=_0x142fa8;var _0x4831c5;return I('BaseProjection.projectTableRows',()=>{const _0x1afaa3=_0x3f85;var _0x66e1d4;let _0x352212=this[_0x1afaa3(0x19e)](_0x3243d6['id']),_0xbce399=this[_0x1afaa3(0x248)]['get'](_0x3243d6['id']);if(_0xbce399&&_0xbce399[_0x1afaa3(0xb7)]===this[_0x1afaa3(0x2f9)]&&_0xbce399[_0x1afaa3(0x182)]===this[_0x1afaa3(0x19c)](_0x3243d6['id'])){if(_0xbce399[_0x1afaa3(0x1c4)]===_0x352212&&fi(_0xbce399[_0x1afaa3(0x108)],_0x3243d6))return _0xbce399[_0x1afaa3(0x108)]=_0x3243d6,_0xbce399['rows'];let _0x8b7f4=this[_0x1afaa3(0x1d2)](_0x3243d6,_0xbce399,_0x352212);if(_0x8b7f4)return _0x8b7f4;}ui(_0x3243d6)||L(_0x3243d6);let _0x245b3d=(_0x66e1d4=_0x3243d6[_0x1afaa3(0x18c)])!=null&&_0x66e1d4['length']?_0x3243d6[_0x1afaa3(0x18c)]:hi(_0x3243d6[_0x1afaa3(0x309)]),_0x497562=I('BaseProjection.materializeTableRows',()=>{const _0x3cc913=_0x1afaa3;let _0x5c1bbe=[];for(let _0x3bede7 of _0x245b3d){let _0x35396a=_0x3243d6[_0x3cc913(0x309)][_0x3bede7];if(!_0x35396a)continue;let _0x99a06d={};for(let _0x208a8e of _0x3243d6[_0x3cc913(0x143)])_0x99a06d[_0x208a8e]=yt(_0x3243d6,_0x35396a['id'],_0x208a8e);_0x5c1bbe['push']({'recordId':_0x35396a['id'],'values':_0x99a06d});}return _0x5c1bbe;},{'tableId':_0x3243d6['id'],'records':_0x245b3d[_0x1afaa3(0x7d)],'fields':_0x3243d6['fieldOrder']['length']});return this['_projectedRowsCache'][_0x1afaa3(0x23a)](_0x3243d6['id'],{'table':_0x3243d6,'rows':_0x497562,'rowIndexById':li(_0x497562),'globalRevision':this['_globalRevision'],'tableRevision':this['_getTableRevision'](_0x3243d6['id']),'cellRevision':_0x352212}),_0x497562;},{'tableId':_0x3243d6['id'],'records':((_0x4831c5=_0x3243d6['recordOrder'])==null?void 0x0:_0x4831c5[_0x23db51(0x7d)])??Object['keys'](_0x3243d6['records']??{})[_0x23db51(0x7d)],'fields':_0x3243d6['fieldOrder']['length']});}[_0x142fa8(0x1d2)](_0x4a4535,_0x2dcbf8,_0x5e5630){const _0x391569=_0x142fa8;let _0x1c726b=(this[_0x391569(0x23d)][_0x391569(0x12f)](_0x4a4535['id'])??[])[_0x391569(0x13c)](_0x29bd1b=>_0x29bd1b[_0x391569(0x3cf)]>_0x2dcbf8[_0x391569(0x1c4)]&&_0x29bd1b[_0x391569(0x3cf)]<=_0x5e5630);if(!_0x1c726b[_0x391569(0x7d)])return _0x2dcbf8[_0x391569(0x108)]===_0x4a4535?_0x2dcbf8[_0x391569(0x308)]:null;let _0x1ce0dd=_0x2dcbf8[_0x391569(0x308)],_0x2b7203=new Map();for(let _0x9917d4 of _0x1c726b){let _0x3f833c=_0x2b7203[_0x391569(0x12f)](_0x9917d4['recordId']);_0x3f833c||(_0x3f833c=new Set(),_0x2b7203['set'](_0x9917d4[_0x391569(0x1ee)],_0x3f833c)),_0x3f833c[_0x391569(0x28d)](_0x9917d4[_0x391569(0x3c1)]);}for(let [_0x523966,_0x28c480]of _0x2b7203){if(!_0x4a4535['records'][_0x523966])return null;let _0xea11fc=_0x2dcbf8[_0x391569(0x282)][_0x391569(0x12f)](_0x523966);if(_0xea11fc==null)return null;_0x1ce0dd===_0x2dcbf8[_0x391569(0x308)]&&(_0x1ce0dd=[..._0x2dcbf8['rows']]);let _0x5d4265=_0x1ce0dd[_0xea11fc],_0x3df690={..._0x5d4265[_0x391569(0x307)]};_0x28c480[_0x391569(0x2e7)](_0x42bdab=>{_0x3df690[_0x42bdab]=yt(_0x4a4535,_0x523966,_0x42bdab);}),_0x1ce0dd[_0xea11fc]={..._0x5d4265,'values':_0x3df690};}let _0x117049={'table':_0x4a4535,'rows':_0x1ce0dd,'rowIndexById':_0x2dcbf8[_0x391569(0x282)],'globalRevision':this[_0x391569(0x2f9)],'tableRevision':this['_getTableRevision'](_0x4a4535['id']),'cellRevision':_0x5e5630};return this[_0x391569(0x248)][_0x391569(0x23a)](_0x4a4535['id'],_0x117049),this[_0x391569(0x23d)]['set'](_0x4a4535['id'],(this[_0x391569(0x23d)]['get'](_0x4a4535['id'])??[])['filter'](_0x44b409=>_0x44b409['revision']>Math[_0x391569(0x41f)](0x0,_0x5e5630-0x100))),_0x1ce0dd;}[_0x142fa8(0x1b3)](_0x9279a5,_0x5d67e9){const _0x3489c0=_0x142fa8;let _0x26f301=new Map(_0x5d67e9[_0x3489c0(0x1bc)](_0xa4d7c9=>[_0xa4d7c9['recordId'],_0xa4d7c9])),_0x1e480e=!0x1,_0x1d87b4=_0x9279a5[_0x3489c0(0x1bc)](_0x1041fa=>{const _0x2cf645=_0x3489c0;let _0x1c0bc=_0x26f301[_0x2cf645(0x12f)](_0x1041fa['recordId']);return _0x1c0bc?_0x1c0bc===_0x1041fa?_0x1041fa:(_0x1e480e=!0x0,_0x1c0bc):_0x1041fa;});return _0x1e480e?_0x1d87b4:_0x9279a5;}[_0x142fa8(0x106)](_0x1d84b5,_0x191d70,_0x5d082d,_0x4dd91f){const _0x4d4930=_0x142fa8;return!_0x4dd91f['size']||_0x191d70===_0x5d082d?!0x1:_0x5d082d-_0x191d70>0x100||(this[_0x4d4930(0x23d)][_0x4d4930(0x12f)](_0x1d84b5)??[])[_0x4d4930(0x3b4)](_0x2142ad=>_0x2142ad[_0x4d4930(0x3cf)]>_0x191d70&&_0x2142ad[_0x4d4930(0x3cf)]<=_0x5d082d&&_0x4dd91f[_0x4d4930(0x8e)](_0x2142ad['fieldId']));}['_filterSortFieldIds'](_0x23f902){const _0x4537af=_0x142fa8;var _0x3a6b43,_0xcd8df6;let _0xec5ee3=new Set();return _0x23f902==null||(_0x3a6b43=_0x23f902[_0x4537af(0x13c)])==null||_0x3a6b43[_0x4537af(0x37b)][_0x4537af(0x2e7)](_0x768a2e=>_0xec5ee3[_0x4537af(0x28d)](_0x768a2e[_0x4537af(0x3c1)])),_0x23f902==null||(_0xcd8df6=_0x23f902[_0x4537af(0x34b)])==null||_0xcd8df6[_0x4537af(0x2e7)](_0x6047b4=>_0xec5ee3[_0x4537af(0x28d)](_0x6047b4[_0x4537af(0x3c1)])),_0xec5ee3;}['_groupProjectionFieldIds'](_0xcc946f){const _0x3df7d5=_0x142fa8;var _0x15ae92;let _0x8f3431=this[_0x3df7d5(0x1f2)](_0xcc946f);return(_0x15ae92=_0xcc946f[_0x3df7d5(0x22c)])==null||_0x15ae92[_0x3df7d5(0x2e7)](_0x187e2e=>_0x8f3431[_0x3df7d5(0x28d)](_0x187e2e['fieldId'])),_0x8f3431;}[_0x142fa8(0x175)](_0x1531c6,_0x575933,_0x2ee6d7){const _0x4338a2=_0x142fa8;let _0x459d23=_0x575933==null?void 0x0:_0x575933[_0x4338a2(0x13c)];if(!(_0x459d23!=null&&_0x459d23[_0x4338a2(0x37b)][_0x4338a2(0x7d)]))return _0x2ee6d7;let _0x2b9366=_0x459d23[_0x4338a2(0x37b)][_0x4338a2(0x13c)](_0x3ab9e8=>!Ii(_0x3ab9e8));return _0x2b9366[_0x4338a2(0x7d)]?_0x2ee6d7[_0x4338a2(0x13c)](_0x3028f5=>{const _0x19fdd6=_0x4338a2;if(_0x459d23['conjunction']===_0x5e7358['OR']){for(let _0x35875e of _0x2b9366){let _0x16c680=_0x1531c6[_0x19fdd6(0x37f)][_0x35875e['fieldId']];if(!_0x16c680||this[_0x19fdd6(0x107)][_0x19fdd6(0x12f)](_0x16c680[_0x19fdd6(0x35c)])[_0x19fdd6(0x13c)](_0x3028f5[_0x19fdd6(0x307)][_0x16c680['id']],_0x35875e[_0x19fdd6(0x238)],_0x35875e[_0x19fdd6(0x256)],_0x16c680))return!0x0;}return!0x1;}for(let _0x3403eb of _0x2b9366){let _0x5deafe=_0x1531c6['fields'][_0x3403eb['fieldId']];if(_0x5deafe&&!this[_0x19fdd6(0x107)][_0x19fdd6(0x12f)](_0x5deafe[_0x19fdd6(0x35c)])[_0x19fdd6(0x13c)](_0x3028f5[_0x19fdd6(0x307)][_0x5deafe['id']],_0x3403eb[_0x19fdd6(0x238)],_0x3403eb[_0x19fdd6(0x256)],_0x5deafe))return!0x1;}return!0x0;}):_0x2ee6d7;}[_0x142fa8(0x23b)](_0x5c7b27,_0x169362,_0x3cde32){const _0x27f47d=_0x142fa8;let _0x174454=(_0x169362==null?void 0x0:_0x169362[_0x27f47d(0x34b)])??[];if(!_0x174454[_0x27f47d(0x7d)])return _0x3cde32;let _0x22223f=_0x174454[_0x27f47d(0x167)](_0x46b88d=>{const _0x356dff=_0x27f47d;let _0x2fcd8a=_0x5c7b27['fields'][_0x46b88d[_0x356dff(0x3c1)]];return _0x2fcd8a?[{..._0x46b88d,'field':_0x2fcd8a}]:[];});return _0x22223f['length']?this[_0x27f47d(0x302)](_0x22223f)?this['_fastSortRows'](_0x22223f,_0x3cde32):[..._0x3cde32][_0x27f47d(0x34b)]((_0xe804df,_0x59708f)=>{const _0x5d48a3=_0x27f47d;for(let _0x2398ee of _0x22223f){let _0x3fca31=_0x2398ee[_0x5d48a3(0x202)],_0x2c75de=this[_0x5d48a3(0x107)][_0x5d48a3(0x12f)](_0x3fca31[_0x5d48a3(0x35c)])['compare'](_0xe804df[_0x5d48a3(0x307)][_0x3fca31['id']],_0x59708f[_0x5d48a3(0x307)][_0x3fca31['id']],_0x3fca31);if(_0x2c75de!==0x0)return _0x2398ee[_0x5d48a3(0x212)]===_0x4c50ec[_0x5d48a3(0x328)]?-_0x2c75de:_0x2c75de;}return 0x0;}):_0x3cde32;}[_0x142fa8(0x302)](_0x4f49ff){const _0x2803cb=_0x142fa8;return _0x4f49ff[_0x2803cb(0x40c)](_0x305d7c=>ai[_0x2803cb(0x8e)](_0x305d7c[_0x2803cb(0x202)][_0x2803cb(0x35c)]));}[_0x142fa8(0x1cf)](_0x42e996,_0x56f805){const _0x5c7554=_0x142fa8;return _0x56f805[_0x5c7554(0x1bc)]((_0x37d3ab,_0x615da3)=>({'row':_0x37d3ab,'index':_0x615da3,'keys':_0x42e996[_0x5c7554(0x1bc)](_0xe9db29=>_0x37d3ab[_0x5c7554(0x307)][_0xe9db29['fieldId']])}))[_0x5c7554(0x34b)]((_0x5e09dd,_0x1a6a24)=>{const _0x325014=_0x5c7554;for(let _0x9d8caa=0x0;_0x9d8caa<_0x42e996['length'];_0x9d8caa++){let _0x8ed6a1=Fi(_0x5e09dd[_0x325014(0xd3)][_0x9d8caa],_0x1a6a24[_0x325014(0xd3)][_0x9d8caa]);if(_0x8ed6a1!==0x0)return _0x42e996[_0x9d8caa][_0x325014(0x212)]===_0x4c50ec[_0x325014(0x328)]?-_0x8ed6a1:_0x8ed6a1;}return _0x5e09dd[_0x325014(0x2e6)]-_0x1a6a24[_0x325014(0x2e6)];})['map'](_0x326c0c=>_0x326c0c[_0x5c7554(0x1ae)]);}[_0x142fa8(0x352)](_0x1b3cb6,_0x216780,_0x5d0d73){const _0x694aa9=_0x142fa8;var _0x5b804d;return I(_0x694aa9(0x27c),()=>{const _0x2caedc=_0x694aa9;var _0x3b5127;if(!((_0x3b5127=_0x216780[_0x2caedc(0x22c)])!=null&&_0x3b5127[_0x2caedc(0x7d)]))return[];let _0x2cea4b=_0x216780['group'][_0x2caedc(0x13c)](_0xe12d0f=>_0x1b3cb6[_0x2caedc(0x37f)][_0xe12d0f[_0x2caedc(0x3c1)]]);if(!_0x2cea4b[_0x2caedc(0x7d)])return[];let _0x546b09=this[_0x2caedc(0x3c8)](_0x1b3cb6['id'],_0x216780,_0x2cea4b),_0x2c3ff0=this['_getCellRevision'](_0x1b3cb6['id']),_0x1ef3fb=this[_0x2caedc(0x32b)]['get'](_0x546b09);if(_0x1ef3fb&&_0x1ef3fb[_0x2caedc(0xb7)]===this[_0x2caedc(0x2f9)]&&_0x1ef3fb[_0x2caedc(0x182)]===this[_0x2caedc(0x19c)](_0x1b3cb6['id'])){if(_0x1ef3fb[_0x2caedc(0x1c4)]===_0x2c3ff0&&_0x1ef3fb[_0x2caedc(0x308)]===_0x5d0d73)return _0x1ef3fb['groups'];if(_0x1ef3fb[_0x2caedc(0x1c4)]!==_0x2c3ff0&&!this[_0x2caedc(0x106)](_0x1b3cb6['id'],_0x1ef3fb[_0x2caedc(0x1c4)],_0x2c3ff0,this[_0x2caedc(0x21b)](_0x216780)))return this[_0x2caedc(0x32b)][_0x2caedc(0x23a)](_0x546b09,{..._0x1ef3fb,'rows':_0x5d0d73,'cellRevision':_0x2c3ff0}),_0x1ef3fb[_0x2caedc(0x209)];}let _0x5ade4e=new Map();for(let _0x568fab of _0x5d0d73){let _0x5f02d0=_0x5ade4e,_0x4bb968='';for(let _0x6357fa=0x0;_0x6357fa<_0x2cea4b[_0x2caedc(0x7d)];_0x6357fa++){let _0x34c0a0=_0x2cea4b[_0x6357fa],_0x3eebba=_0x568fab[_0x2caedc(0x307)][_0x34c0a0[_0x2caedc(0x3c1)]],_0xf981c8=ci(_0x3eebba),_0x39d73c=_0x34c0a0['fieldId']+'\x00'+_0xf981c8,_0x4affc3=_0x4bb968+'/'+_0x34c0a0['fieldId']+':'+_0xf981c8,_0x7a7d69=_0x5f02d0[_0x2caedc(0x12f)](_0x39d73c);_0x7a7d69||(_0x7a7d69={'key':_0xf981c8,'value':_0x3eebba,'path':_0x4affc3,'label':_0xf981c8||_0x2caedc(0x38c),'fieldId':_0x34c0a0[_0x2caedc(0x3c1)],'level':_0x6357fa,'recordIds':[],'children':new Map()},_0x5f02d0[_0x2caedc(0x23a)](_0x39d73c,_0x7a7d69)),_0x7a7d69[_0x2caedc(0x3ff)][_0x2caedc(0x319)](_0x568fab[_0x2caedc(0x1ee)]),_0x5f02d0=_0x7a7d69[_0x2caedc(0x1e9)],_0x4bb968=_0x4affc3;}}let _0x36b16f=this[_0x2caedc(0x40f)](_0x2cea4b,_0x5ade4e,0x0);return this['_projectedGroupsCache'][_0x2caedc(0x23a)](_0x546b09,{'table':_0x1b3cb6,'rows':_0x5d0d73,'groups':_0x36b16f,'globalRevision':this[_0x2caedc(0x2f9)],'tableRevision':this[_0x2caedc(0x19c)](_0x1b3cb6['id']),'cellRevision':_0x2c3ff0}),_0x36b16f;},{'tableId':_0x1b3cb6['id'],'viewId':_0x216780['id'],'viewType':_0x216780['type'],'rows':_0x5d0d73['length'],'groupFields':((_0x5b804d=_0x216780['group'])==null?void 0x0:_0x5b804d[_0x694aa9(0x7d)])??0x0});}[_0x142fa8(0x40f)](_0x1f50d3,_0x3bd3f7,_0x5e0fca){const _0x49276c=_0x142fa8;var _0x1bd52d;let _0x38a356=Array[_0x49276c(0x35b)](_0x3bd3f7[_0x49276c(0x307)]()),_0x2e8255=(_0x1bd52d=_0x1f50d3[_0x5e0fca])==null?void 0x0:_0x1bd52d[_0x49276c(0x212)];return _0x2e8255&&_0x38a356[_0x49276c(0x34b)]((_0x1ce67f,_0x1059a4)=>{const _0x52b705=_0x49276c;let _0x298164=_0x1ce67f[_0x52b705(0x40b)][_0x52b705(0x94)](_0x1059a4[_0x52b705(0x40b)]);return _0x2e8255===_0x4c50ec['DESC']?-_0x298164:_0x298164;}),_0x38a356[_0x49276c(0x1bc)](_0x37b2c1=>({'key':_0x37b2c1[_0x49276c(0x40b)],'value':_0x37b2c1['value'],'path':_0x37b2c1[_0x49276c(0x1ed)],'label':_0x37b2c1[_0x49276c(0x163)],'fieldId':_0x37b2c1[_0x49276c(0x3c1)],'level':_0x37b2c1[_0x49276c(0x35f)],'recordIds':_0x37b2c1['recordIds'],'children':this[_0x49276c(0x40f)](_0x1f50d3,_0x37b2c1['children'],_0x5e0fca+0x1)}));}[_0x142fa8(0x305)](_0x221fb8,_0x5538d2,_0x58b85d){const _0x3e72cd=_0x142fa8;let _0x206749=_0x58b85d??_0x221fb8[_0x3e72cd(0x195)],_0x237fe2=_0x5538d2['values'][_0x206749];return _0x237fe2==null?'':String(_0x237fe2);}['_recordIds'](_0x255e9c){const _0x1fd8dd=_0x142fa8;if(Array[_0x1fd8dd(0x8f)](_0x255e9c))return _0x255e9c['map'](String);if(typeof _0x255e9c==_0x1fd8dd(0x3a1)&&_0x255e9c)return[_0x255e9c];}[_0x142fa8(0x10e)](_0x5c2d5d){const _0x23b6ec=_0x142fa8;return this[_0x23b6ec(0x107)][_0x23b6ec(0x12f)](_0x5c2d5d['type'])['getCapabilities'](_0x5c2d5d);}};si=X([Y(0x0,_0x41ade0(mr))],si);function ci(_0x30eb64){return _0x30eb64==null?'':String(_0x30eb64);}function li(_0x57aee2){const _0x43134d=_0x142fa8;return new Map(_0x57aee2[_0x43134d(0x1bc)]((_0x568006,_0x3eefcc)=>[_0x568006[_0x43134d(0x1ee)],_0x3eefcc]));}function ui(_0x444657){const _0x10af2a=_0x142fa8;return!!(Array['isArray'](_0x444657[_0x10af2a(0x18c)])&&_0x444657['rowIndex']&&_0x444657['rowId']&&_0x444657['colIndex']&&_0x444657[_0x10af2a(0xf8)]&&_0x444657[_0x10af2a(0x3b1)]);}function di(_0x559d35){const _0x4c989a=_0x142fa8;let _0x42c0c0=(_0x559d35==null?void 0x0:_0x559d35[_0x4c989a(0x37b)][_0x4c989a(0x13c)](_0x7ff7fe=>!Ii(_0x7ff7fe)))??[];return!_0x559d35||!_0x42c0c0[_0x4c989a(0x7d)]?null:{'conjunction':_0x559d35['conjunction'],'conditions':_0x42c0c0[_0x4c989a(0x1bc)](_0x318e58=>({'fieldId':_0x318e58['fieldId'],'operator':_0x318e58[_0x4c989a(0x238)],'operand':_0x318e58['operand']}))};}function fi(_0x460800,_0x46015b){const _0x2fa3a3=_0x142fa8;return _0x460800[_0x2fa3a3(0x309)]===_0x46015b[_0x2fa3a3(0x309)]&&_0x460800[_0x2fa3a3(0x18c)]===_0x46015b[_0x2fa3a3(0x18c)]&&_0x460800[_0x2fa3a3(0x37f)]===_0x46015b[_0x2fa3a3(0x37f)]&&_0x460800[_0x2fa3a3(0x143)]===_0x46015b[_0x2fa3a3(0x143)]&&_0x460800['cellData']===_0x46015b[_0x2fa3a3(0x3b1)]&&_0x460800[_0x2fa3a3(0x276)]===_0x46015b[_0x2fa3a3(0x276)]&&_0x460800[_0x2fa3a3(0x3f0)]===_0x46015b[_0x2fa3a3(0x3f0)]&&_0x460800[_0x2fa3a3(0x425)]===_0x46015b['colIndex']&&_0x460800[_0x2fa3a3(0xf8)]===_0x46015b[_0x2fa3a3(0xf8)];}function pi(_0x141437){const _0xaaa50a=_0x142fa8;return _0x141437!=null&&_0x141437[_0xaaa50a(0x7d)]?_0x141437[_0xaaa50a(0x1bc)](_0x56ba61=>({'fieldId':_0x56ba61[_0xaaa50a(0x3c1)],'direction':_0x56ba61['direction']})):null;}function mi(_0x23b4d6){const _0x3aa9db=_0x142fa8;if(typeof _0x23b4d6!='object'||!_0x23b4d6)return JSON[_0x3aa9db(0x2b1)](_0x23b4d6)??_0x3aa9db(0x31b);if(Array[_0x3aa9db(0x8f)](_0x23b4d6))return'['+_0x23b4d6['map'](mi)[_0x3aa9db(0x2b0)](',')+']';let _0x143fa1=_0x23b4d6;return'{'+Object['keys'](_0x143fa1)['sort']()[_0x3aa9db(0x1bc)](_0x5d48e5=>JSON[_0x3aa9db(0x2b1)](_0x5d48e5)+':'+mi(_0x143fa1[_0x5d48e5]))['join'](',')+'}';}function hi(_0x5cc034){const _0x5970ff=_0x142fa8;let _0x368383=Object[_0x5970ff(0x307)](_0x5cc034)['sort']((_0xc84b1,_0x5612d6)=>_0xc84b1[_0x5970ff(0xc0)][_0x5970ff(0x94)](_0x5612d6['orderKey'])),_0xabb40=[];for(let _0x397a4d of _0x368383)_0xabb40[_0x5970ff(0x319)](_0x397a4d['id']);return _0xabb40;}function gi(_0x2a0269){const _0x38c506=_0x142fa8;return{'weekdays':Array[_0x38c506(0x8f)](_0x2a0269==null?void 0x0:_0x2a0269[_0x38c506(0xc1)])&&_0x2a0269['weekdays']['length']?[...new Set(_0x2a0269[_0x38c506(0xc1)]['filter'](_0x581a3a=>Number[_0x38c506(0x2de)](_0x581a3a)&&_0x581a3a>=0x1&&_0x581a3a<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array['isArray'](_0x2a0269==null?void 0x0:_0x2a0269['exceptions'])?_0x2a0269[_0x38c506(0x1b2)][_0x38c506(0x167)](_0x1e56d0=>!_0x1e56d0||!Number[_0x38c506(0x1a1)](_0x1e56d0[_0x38c506(0x1b0)])?[]:[{'id':String(_0x1e56d0['id']||_0x38c506(0x3d2)+_0x1e56d0['date']),'date':Z(Number(_0x1e56d0['date'])),'name':String(_0x1e56d0[_0x38c506(0x112)]||_0x38c506(0x3c7)),'type':_0x1e56d0[_0x38c506(0x35c)]==='working'?_0x38c506(0x2b5):'off'}]):[]};}function _i(_0x2f352c,_0x3af35d,_0x46320d,_0x54122e){let _0x3a0cb4=xi(_0x2f352c,_0x3af35d),_0x22c6d9=Si(_0x2f352c,_0x46320d),_0x1a9255=vi(_0x2f352c,_0x3a0cb4,_0x22c6d9,_0x54122e);return{'scale':_0x2f352c,'start':_0x3a0cb4,'end':_0x22c6d9,'unitWidth':bi(_0x2f352c),'majorHeaders':yi(_0x2f352c,_0x3a0cb4,_0x22c6d9),'columns':_0x1a9255};}function vi(_0x51f9a3,_0x524d51,_0x120d68,_0x22151e){const _0x3015ba=_0x142fa8;let _0x5cbfb4=[],_0x181d88=_0x524d51;for(;_0x181d88<_0x120d68;){let _0x2067e8=_0x51f9a3==='quarter'?ji(_0x181d88,0x7):_0x51f9a3===_0x3015ba(0x355)?Mi(_0x181d88,0x1):ji(_0x181d88,0x1);_0x5cbfb4[_0x3015ba(0x319)]({'id':_0x51f9a3+'-'+_0x181d88,'label':Ci(_0x51f9a3,_0x181d88,_0x2067e8),'majorLabel':wi(_0x51f9a3,_0x181d88),'start':_0x181d88,'end':_0x2067e8,'nonWorking':Ei(_0x181d88,_0x2067e8,_0x22151e)}),_0x181d88=_0x2067e8;}return _0x5cbfb4;}function yi(_0x319080,_0x50d0e1,_0x3517be){const _0x129bad=_0x142fa8;let _0xa2d445=[],_0x3dd3d0=_0x319080===_0x129bad(0x355)?Ai(_0x50d0e1):ki(_0x50d0e1);for(;_0x3dd3d0<_0x3517be;){let _0x8649cf=_0x319080==='year'?Ni(_0x3dd3d0,0x1):Mi(_0x3dd3d0,0x1);_0xa2d445['push']({'id':'major-'+_0x3dd3d0,'label':_0x319080==='year'?String(new Date(_0x3dd3d0)[_0x129bad(0xa5)]()):Pi(_0x3dd3d0),'start':_0x3dd3d0,'end':_0x8649cf}),_0x3dd3d0=_0x8649cf;}return _0xa2d445;}function bi(_0x3739c7){const _0x5d80f9=_0x142fa8;switch(_0x3739c7){case _0x5d80f9(0x304):return 0xac;case'quarter':return 0xac;case _0x5d80f9(0x355):return 0x88;default:return 0x56;}}function xi(_0x137444,_0x16cd62){const _0x5797fb=_0x142fa8;return _0x137444==='year'?Ai(_0x16cd62):_0x137444===_0x5797fb(0xfc)?Oi(_0x16cd62):Z(_0x16cd62);}function Si(_0x3abafa,_0x3dfe4b){const _0x331246=_0x142fa8;return _0x3abafa==='year'?Ni(Ai(_0x3dfe4b),0x1):_0x3abafa===_0x331246(0xfc)?ji(Oi(_0x3dfe4b),0x7):ji(Z(_0x3dfe4b),0x1);}function Ci(_0x26e084,_0x4419ec,_0x25135f){const _0x5aaeab=_0x142fa8;let _0x16bde7=new Date(_0x4419ec);return _0x26e084===_0x5aaeab(0xfc)?_0x16bde7[_0x5aaeab(0xf0)]()+'-'+new Date(_0x25135f-oi)[_0x5aaeab(0xf0)]():_0x26e084===_0x5aaeab(0x355)?_0x16bde7[_0x5aaeab(0xf7)]('en-US',{'month':_0x5aaeab(0x228),'timeZone':'UTC'}):String(_0x16bde7[_0x5aaeab(0xf0)]());}function wi(_0x47c26e,_0x414784){return _0x47c26e==='year'?String(new Date(_0x414784)['getUTCFullYear']()):Pi(_0x414784);}function Ti(_0x48f17d,_0x119df7,_0x5bfd81){let _0x2229cd=gi(_0x5bfd81),_0x203a09=0x0;for(let _0x48b5b3=Z(_0x48f17d);_0x48b5b3<=Z(_0x119df7);_0x48b5b3=ji(_0x48b5b3,0x1))Di(_0x48b5b3,_0x2229cd)||_0x203a09++;return _0x203a09;}function Ei(_0x56824c,_0x3730a7,_0x387ccc){if(!_0x387ccc)return!0x1;let _0x1dec65=gi(_0x387ccc);for(let _0x36c5cd=Z(_0x56824c);_0x36c5cd<_0x3730a7;_0x36c5cd=ji(_0x36c5cd,0x1))if(!Di(_0x36c5cd,_0x1dec65))return!0x1;return!0x0;}function Di(_0x218d3a,_0x230789){const _0x6a24ca=_0x142fa8;let _0x235464=Z(_0x218d3a),_0x2d9f44=_0x230789[_0x6a24ca(0x1b2)]['find'](_0x20e4e3=>Z(_0x20e4e3[_0x6a24ca(0x1b0)])===_0x235464);if(_0x2d9f44)return _0x2d9f44[_0x6a24ca(0x35c)]==='off';let _0x3eb688=new Date(_0x235464)[_0x6a24ca(0x1c5)](),_0x67475a=_0x3eb688===0x0?0x7:_0x3eb688;return!_0x230789[_0x6a24ca(0xc1)][_0x6a24ca(0x8b)](_0x67475a);}function Z(_0xd1592a){const _0x30a697=_0x142fa8;let _0x31f416=new Date(_0xd1592a);return Date['UTC'](_0x31f416[_0x30a697(0xa5)](),_0x31f416[_0x30a697(0x2cf)](),_0x31f416[_0x30a697(0xf0)]());}function Oi(_0x563984){const _0x2d092c=_0x142fa8;let _0x1018da=Z(_0x563984),_0x3bd0e3=new Date(_0x1018da)[_0x2d092c(0x1c5)]();return ji(_0x1018da,-(_0x3bd0e3===0x0?0x6:_0x3bd0e3-0x1));}function ki(_0x3b9951){const _0x22e327=_0x142fa8;let _0x2bab41=new Date(_0x3b9951);return Date[_0x22e327(0x36f)](_0x2bab41[_0x22e327(0xa5)](),_0x2bab41[_0x22e327(0x2cf)](),0x1);}function Ai(_0x5976e1){const _0x58b6f1=_0x142fa8;let _0x121164=new Date(_0x5976e1);return Date[_0x58b6f1(0x36f)](_0x121164[_0x58b6f1(0xa5)](),0x0,0x1);}function ji(_0xf780cd,_0x573a3d){return _0xf780cd+_0x573a3d*oi;}function Mi(_0x407b62,_0x56e060){const _0x38a769=_0x142fa8;let _0x1aadd5=new Date(_0x407b62);return Date[_0x38a769(0x36f)](_0x1aadd5[_0x38a769(0xa5)](),_0x1aadd5[_0x38a769(0x2cf)]()+_0x56e060,0x1);}function Ni(_0x1097de,_0x46a1e1){const _0x4c0b74=_0x142fa8;let _0xc61267=new Date(_0x1097de);return Date['UTC'](_0xc61267[_0x4c0b74(0xa5)]()+_0x46a1e1,0x0,0x1);}function Pi(_0x444b9f){const _0x2a8369=_0x142fa8;let _0x8b28d1=new Date(_0x444b9f);return _0x8b28d1['toLocaleString']('en-US',{'month':_0x2a8369(0x228),'timeZone':_0x2a8369(0x36f)})+'\x20'+_0x8b28d1['getUTCFullYear']();}function Fi(_0x178a03,_0x3e9380){const _0x5df3de=_0x142fa8;if(_0x178a03==null&&_0x3e9380==null)return 0x0;if(_0x178a03==null)return-0x1;if(_0x3e9380==null)return 0x1;if(typeof _0x178a03==_0x5df3de(0x267)||typeof _0x3e9380==_0x5df3de(0x267))return Number(_0x178a03===!0x0)-Number(_0x3e9380===!0x0);let _0x50aa21=Number(_0x178a03),_0x4a2210=Number(_0x3e9380),_0x4c5635=Number['isFinite'](_0x50aa21),_0xfcd971=Number[_0x5df3de(0x1a1)](_0x4a2210);return _0x4c5635&&_0xfcd971?_0x50aa21-_0x4a2210:_0x4c5635?0x1:_0xfcd971?-0x1:String(_0x178a03)[_0x5df3de(0x94)](String(_0x3e9380));}function Ii(_0x528713){const _0x258734=_0x142fa8;if(_0x528713['operator']!=='is'&&_0x528713[_0x258734(0x238)]!==_0x258734(0x1b8))return!0x1;let _0xca4d3a=_0x528713['operand'];return _0xca4d3a==null?!0x0:typeof _0xca4d3a=='string'?_0xca4d3a[_0x258734(0x41a)]()==='':Array[_0x258734(0x8f)](_0xca4d3a)?_0xca4d3a[_0x258734(0x7d)]===0x0:!0x1;}function Li(_0x17ba07,_0x115d8b){const _0xccb293=_0x142fa8;var _0x5b348b;let _0x1dad8d=Array[_0xccb293(0x8f)]((_0x5b348b=_0x17ba07[_0xccb293(0xfa)])==null?void 0x0:_0x5b348b[_0xccb293(0xbd)])?_0x17ba07[_0xccb293(0xfa)][_0xccb293(0xbd)]:[];for(let _0x93d10 of _0x1dad8d){if(_0x93d10==null)continue;if(typeof _0x93d10==_0xccb293(0x3a1)){if(_0x93d10===_0x115d8b)return{'id':_0x93d10,'name':_0x93d10};continue;}let _0x5a619e=_0x93d10,_0x377117=String(_0x5a619e['id']??_0x5a619e['name']??''),_0x4b153b=String(_0x5a619e[_0xccb293(0x112)]??_0x5a619e['id']??_0x377117);if(_0x377117===_0x115d8b||_0x4b153b===_0x115d8b)return{'id':_0x377117,'name':_0x4b153b,'color':_0x5a619e['color']==null?void 0x0:String(_0x5a619e[_0xccb293(0x12b)])};}return null;}let Ri=function(_0x280777){const _0xdff892=_0x142fa8;return _0x280777[_0xdff892(0x301)]=_0xdff892(0x3cd),_0x280777[_0xdff892(0xa0)]=_0xdff892(0x160),_0x280777;}({});const Q={'id':_0x142fa8(0x37a),'type':_0x3ba701['MUTATION'],'handler'(_0x27d077,_0x1958ee){const _0x2c394b=_0x142fa8;let {unitId:_0x246555,op:_0x121c1b}=_0x1958ee,_0x4080a7=_0x27d077['get'](_0x44289e)[_0x2c394b(0x9c)](_0x246555,_0x5b7c15['UNIVER_BASE']);if(!_0x4080a7)return!0x1;let _0x2d820b=_0x4080a7[_0x2c394b(0x3ea)](),_0x27f85a=new z(),_0x11fa3b=_0x27f85a[_0x2c394b(0x377)](_0x121c1b),_0x284677=_0x27f85a['applyOp'](_0x2d820b,_0x121c1b);return _0x4080a7[_0x2c394b(0x254)](_0x284677),zi(_0x284677,_0x11fa3b,_0x27d077[_0x2c394b(0x12f)](ii)),!0x0;}};function zi(_0x3c0b1f,_0x3f4cb2,_0x1ec49d){const _0x35ddc7=_0x142fa8;let _0x2fd1f6=new Set(),_0x28b1b8=new Set(),_0x669f86=new Set();for(let _0x16ee89 of _0x3f4cb2){if(_0x16ee89['reason']===_0x35ddc7(0x395)&&_0x16ee89[_0x35ddc7(0x90)]&&_0x16ee89[_0x35ddc7(0xa8)]){let _0x246791=_0x16ee89[_0x35ddc7(0x90)]+'\x00'+_0x16ee89[_0x35ddc7(0xa8)];_0x669f86['has'](_0x246791)||(_0x669f86['add'](_0x246791),_0x1ec49d['invalidateByView'](_0x16ee89[_0x35ddc7(0x90)],_0x16ee89['viewId']));continue;}if(_0x16ee89[_0x35ddc7(0xb3)]===_0x35ddc7(0x202)&&_0x16ee89[_0x35ddc7(0x90)]&&_0x16ee89['fieldId']){let _0x3fc593=_0x16ee89[_0x35ddc7(0x90)]+'\x00'+_0x16ee89[_0x35ddc7(0x3c1)];_0x28b1b8[_0x35ddc7(0x8e)](_0x3fc593)||(_0x28b1b8['add'](_0x3fc593),_0x1ec49d[_0x35ddc7(0x360)](_0x16ee89[_0x35ddc7(0x90)],_0x16ee89[_0x35ddc7(0x3c1)]));continue;}if(_0x16ee89[_0x35ddc7(0xb3)]!==_0x35ddc7(0x346)){_0x1ec49d[_0x35ddc7(0x3e2)]();return;}let _0x588556=Bi(_0x3c0b1f,_0x16ee89);if(!_0x588556){_0x1ec49d[_0x35ddc7(0x3e2)]();return;}let _0x51cdb4=_0x588556[_0x35ddc7(0x90)]+'\x00'+_0x588556[_0x35ddc7(0x1ee)]+'\x00'+_0x588556[_0x35ddc7(0x3c1)];_0x2fd1f6[_0x35ddc7(0x8e)](_0x51cdb4)||(_0x2fd1f6['add'](_0x51cdb4),_0x1ec49d[_0x35ddc7(0x85)](_0x588556[_0x35ddc7(0x90)],_0x588556[_0x35ddc7(0x1ee)],_0x588556[_0x35ddc7(0x3c1)]));}}function Bi(_0x34af2a,_0x13ff92){const _0x496b5b=_0x142fa8;var _0x53d630,_0x1274af;if(!_0x13ff92[_0x496b5b(0x90)])return null;if(_0x13ff92[_0x496b5b(0x1ee)]&&_0x13ff92[_0x496b5b(0x3c1)])return{'tableId':_0x13ff92[_0x496b5b(0x90)],'recordId':_0x13ff92[_0x496b5b(0x1ee)],'fieldId':_0x13ff92[_0x496b5b(0x3c1)]};if(_0x13ff92['row']==null||_0x13ff92[_0x496b5b(0xca)]==null)return null;let _0x5c5b9a=_0x34af2a[_0x496b5b(0x3bd)][_0x13ff92[_0x496b5b(0x90)]],_0x147f74=_0x5c5b9a==null||(_0x53d630=_0x5c5b9a[_0x496b5b(0x3f0)])==null?void 0x0:_0x53d630[_0x13ff92[_0x496b5b(0x1ae)]],_0x3b8c99=_0x5c5b9a==null||(_0x1274af=_0x5c5b9a[_0x496b5b(0xf8)])==null?void 0x0:_0x1274af[_0x13ff92[_0x496b5b(0xca)]];return!_0x147f74||!_0x3b8c99?null:{'tableId':_0x13ff92['tableId'],'recordId':_0x147f74,'fieldId':_0x3b8c99};}const Vi=_0x36a586['createRegExpFromSafeFragment'](String['raw']`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x36a586[_0x142fa8(0x408)](String['raw']`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x36a586[_0x142fa8(0x408)](String[_0x142fa8(0x21a)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x36a586['createRegExpFromSafeFragment'](String[_0x142fa8(0x21a)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x36a586[_0x142fa8(0x408)](String[_0x142fa8(0x21a)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x36a586[_0x142fa8(0x408)](String[_0x142fa8(0x21a)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x36a586[_0x142fa8(0x408)](String[_0x142fa8(0x21a)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x36a586[_0x142fa8(0x408)](String[_0x142fa8(0x21a)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x142fa8(0x1b7)](_0x38f830,_0x4766e2=_0x38f830['id']){const _0x42bfc5=_0x142fa8;var _0x51d14b;let _0x50f9c4=((_0x51d14b=_0x38f830['recordOrder'])==null?void 0x0:_0x51d14b['length'])??Object[_0x42bfc5(0x307)](_0x38f830[_0x42bfc5(0x309)])[_0x42bfc5(0x7d)];return{'sheetId':_0x4766e2,'titleMap':new Map(_0x38f830[_0x42bfc5(0x143)]['map']((_0x113b9d,_0xb6c25c)=>{const _0x4007c9=_0x42bfc5;var _0x8b01b;return[((_0x8b01b=_0x38f830[_0x4007c9(0x37f)][_0x113b9d])==null?void 0x0:_0x8b01b[_0x4007c9(0x112)])??_0x113b9d,_0xb6c25c];})),'range':{'startRow':0x0,'endRow':Math[_0x42bfc5(0x41f)](0x0,_0x50f9c4-0x1),'startColumn':0x0,'endColumn':Math[_0x42bfc5(0x41f)](0x0,_0x38f830['fieldOrder'][_0x42bfc5(0x7d)]-0x1)},'showHeader':!0x1};}[_0x142fa8(0xe4)](_0x5569b3,_0x1a6bf2){const _0x2c0b22=_0x142fa8;let _0x132695=[],_0x2bd857=_0x1a6bf2?new Set(_0x1a6bf2):null,_0x277864=_0x41c34(_0x5569b3);return Object[_0x2c0b22(0x307)](_0x5569b3[_0x2c0b22(0x3bd)])['filter'](_0x453ff4=>!_0x2bd857||_0x2bd857[_0x2c0b22(0x8e)](_0x453ff4['id']))[_0x2c0b22(0x2e7)](_0x667bc9=>{const _0x5a317a=_0x2c0b22;let _0x52cc89=this['createSuperTableReference'](_0x667bc9,_0x667bc9['id']);_0x132695[_0x5a317a(0x319)]({'tableId':_0x667bc9['id'],'tableName':_0x277864[_0x5a317a(0x12f)](_0x667bc9['id']),'reference':_0x52cc89});}),_0x132695;}[_0x142fa8(0x117)](_0x5c4ca7,_0x23bf6a,_0x2bbf63={}){const _0x7a89af=_0x142fa8;let _0x5ebe66=_0x5c4ca7[_0x7a89af(0x41a)]();if(!_0x5ebe66)return{'valid':!0x0};if(na(_0x5ebe66))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x1f1ef5=_0x2bbf63['snapshot']?_0x41c34(_0x2bbf63[_0x7a89af(0x1b6)]):void 0x0;for(let _0x510d58 of ta(_0x5ebe66)){let _0x5ac8f2=ua(_0x510d58,_0x23bf6a,_0x2bbf63[_0x7a89af(0x1b6)],_0x1f1ef5);if(!_0x5ac8f2[_0x7a89af(0x108)])return{'valid':!0x1,'reason':_0x7a89af(0x3a4)+_0x510d58[_0x7a89af(0x2c9)]+_0x7a89af(0x2b3)};if(!_0x5ac8f2[_0x7a89af(0x202)])return{'valid':!0x1,'reason':_0x7a89af(0x15b)+_0x510d58['fieldName']+'\x22\x20does\x20not\x20exist.'};}return{'valid':!0x0};}['getDependencies'](_0xcf39cf,_0x51aee8,_0x2918a2={}){const _0xbc9985=_0x142fa8;let _0x9944fb=new Set();for(let _0x26761b of this[_0xbc9985(0x162)](_0xcf39cf,_0x51aee8,_0x2918a2))_0x26761b[_0xbc9985(0x90)]===_0x51aee8['id']&&_0x9944fb[_0xbc9985(0x28d)](_0x26761b[_0xbc9985(0x3c1)]);return Array['from'](_0x9944fb);}[_0x142fa8(0x162)](_0x3f5f88,_0x170389,_0x1fb243={}){const _0x2532dc=_0x142fa8;let _0x5acfae=new Map(),_0xd95e74=_0x1fb243['snapshot']?_0x41c34(_0x1fb243[_0x2532dc(0x1b6)]):void 0x0;for(let _0x29d266 of ta(_0x3f5f88)){let _0x2c854d=ua(_0x29d266,_0x170389,_0x1fb243['snapshot'],_0xd95e74);if(!_0x2c854d[_0x2532dc(0x108)]||!_0x2c854d[_0x2532dc(0x202)])continue;let _0x1cd62d=_0x2c854d[_0x2532dc(0x108)]['id']+'\x1f'+_0x2c854d[_0x2532dc(0x202)]['id'];_0x5acfae[_0x2532dc(0x23a)](_0x1cd62d,{'tableId':_0x2c854d['table']['id'],'fieldId':_0x2c854d[_0x2532dc(0x202)]['id']});}return Array['from'](_0x5acfae[_0x2532dc(0x307)]());}};function Zi(_0x41bfc5,_0x40a47d){const _0x2ac824=_0x142fa8;var _0x56c737;let _0x34b9c6=[],_0x5518f8=(_0x56c737=_0x40a47d[_0x2ac824(0x218)])==null?void 0x0:_0x56c737[_0x41bfc5['id']];return _0x5518f8&&Object['entries'](_0x5518f8)['forEach'](([_0x2a6660,_0x598bfc])=>{const _0x42db71=_0x2ac824;let _0x34a914=_0x41bfc5[_0x42db71(0x3bd)][_0x2a6660];if(!_0x34a914||!_0x598bfc)return;let _0x2b0d3b=L(_0x34a914),_0x447ca8=[];new _0x4bd20b(_0x598bfc)['forValue']((_0x2dc9bd,_0x12e08f,_0xc6d5ca)=>{const _0x4e73fe=_0x42db71;let _0x4d46b4=Qi(_0x2b0d3b,_0x2dc9bd,_0x12e08f,_0xc6d5ca);_0x4d46b4&&_0x447ca8[_0x4e73fe(0x319)](_0x4d46b4);}),_0x447ca8[_0x42db71(0x7d)]&&_0x34b9c6[_0x42db71(0x319)]({'unitId':_0x41bfc5['id'],'tableId':_0x2a6660,'patches':_0x447ca8});}),_0x34b9c6;}function Qi(_0x3cbe34,_0x3d27b1,_0x32fef7,_0xe71af9){const _0x3f00bc=_0x142fa8;var _0x1c7643,_0x398673,_0x954feb;let _0x5ee281=(_0x1c7643=_0x3cbe34[_0x3f00bc(0x3f0)])==null?void 0x0:_0x1c7643[_0x3d27b1],_0x89756=(_0x398673=_0x3cbe34[_0x3f00bc(0xf8)])==null?void 0x0:_0x398673[_0x32fef7];if(!_0x5ee281||!_0x3cbe34['records'][_0x5ee281]||!_0x89756)return null;let _0x4aeed4=_0x3cbe34['fields'][_0x89756];if(!_0x4aeed4||_0x4aeed4[_0x3f00bc(0x35c)]!==_0x3f00bc(0x19a))return null;let _0x2367eb=String(((_0x954feb=_0x4aeed4[_0x3f00bc(0xfa)])==null?void 0x0:_0x954feb[_0x3f00bc(0x19a)])??'')[_0x3f00bc(0x41a)](),_0x5613cf=(_0xe71af9==null?void 0x0:_0xe71af9['v'])??null,_0x54c25c={'v':_0x5613cf,'t':ea(_0x5613cf),..._0x3d27b1===0x0&&_0x2367eb?{'f':_0x2367eb}:{},'si':_0x4aeed4['id']};return $i(vt(_0x3cbe34,_0x5ee281,_0x89756),_0x54c25c)?null:{'row':_0x3d27b1,'col':_0x32fef7,'value':_0x54c25c};}function $i(_0x3623ee,_0x1ba052){return _0x3623ee!=null&&Object['is'](_0x3623ee['v']??null,_0x1ba052['v']??null)&&_0x3623ee['t']===_0x1ba052['t']&&_0x3623ee['f']===_0x1ba052['f']&&_0x3623ee['si']===_0x1ba052['si'];}function ea(_0x45e9e2){const _0x244a0f=_0x142fa8;return typeof _0x45e9e2==_0x244a0f(0xcb)?_0x5ad018[_0x244a0f(0x384)]:typeof _0x45e9e2==_0x244a0f(0x267)?_0x5ad018['BOOLEAN']:typeof _0x45e9e2=='string'?_0x5ad018[_0x244a0f(0x2c3)]:null;}function ta(_0x389972){const _0x25100b=_0x142fa8;let _0x1ddcfe=ia(_0x389972,()=>''),_0x1b61d1=new Map(),_0x5f098d=_0x7c0cde=>{const _0x449db6=_0x3f85;_0x1b61d1[_0x449db6(0x23a)]((_0x7c0cde[_0x449db6(0x2c9)]??'')+'\x1f'+_0x7c0cde[_0x449db6(0x1b5)],_0x7c0cde);};for(let _0x3b96b3 of _0x1ddcfe[_0x25100b(0x3b9)](Ui))_0x5f098d({'fieldName':_0x3b96b3[0x1],'scope':_0x25100b(0x42d)});_0x1ddcfe=_0x1ddcfe[_0x25100b(0x401)](Wi,(_0x32c68a,_0x4bb3cb,_0x5b18a0,_0x55ffc8)=>(_0x5f098d({'tableName':_0x4bb3cb,'fieldName':_0x55ffc8,'scope':_0x5b18a0[_0x25100b(0x315)]()===_0x25100b(0x19d)?'data':_0x25100b(0x42d)}),'\x20')),_0x1ddcfe=_0x1ddcfe[_0x25100b(0x401)](Gi,(_0x4ec4a5,_0x4ef255,_0x399cfc)=>(_0x5f098d({'tableName':_0x4ef255,'fieldName':_0x399cfc,'scope':'this-row'}),'\x20')),_0x1ddcfe=_0x1ddcfe['replace'](qi,(_0xe7fcc4,_0x5e3304,_0x36448c,_0xfa5d43)=>(_0x5f098d({'fieldName':_0xfa5d43,'scope':_0x36448c[_0x25100b(0x315)]()===_0x25100b(0x19d)?_0x25100b(0x19d):_0x25100b(0x42d)}),_0x5e3304+'\x20')),_0x1ddcfe=_0x1ddcfe[_0x25100b(0x401)](Ji,(_0x456188,_0x49032b,_0x375063)=>(_0x5f098d({'fieldName':_0x375063,'scope':_0x25100b(0x42d)}),_0x49032b+'\x20'));for(let _0x27b658 of _0x1ddcfe[_0x25100b(0x3b9)](Ki))_0x5f098d({'tableName':_0x27b658[0x1],'fieldName':_0x27b658[0x2]});for(let _0x58b357 of _0x1ddcfe['matchAll'](Yi))_0x5f098d({'fieldName':_0x58b357[0x2],'scope':'this-row'});return Array['from'](_0x1b61d1[_0x25100b(0x307)]());}function na(_0x2a3fb7){const _0x9bba81=_0x142fa8;let _0x58b71f=ia(_0x2a3fb7,()=>'\x20')['replace'](Ui,'\x20')[_0x9bba81(0x401)](Wi,'\x20')['replace'](Gi,'\x20')[_0x9bba81(0x401)](qi,_0x9bba81(0x3b8))[_0x9bba81(0x401)](Ji,_0x9bba81(0x3b8))[_0x9bba81(0x401)](Ki,'\x20')[_0x9bba81(0x401)](Yi,_0x9bba81(0x3b8));return Vi['test'](_0x58b71f);}function ra(_0x1ddd90,_0x5c78f4){return ca(oa(_0x1ddd90,_0x5c78f4),_0x5c78f4);}function ia(_0x3a8471,_0x3d4af3){return aa(ra(_0x3a8471,_0x3d4af3),_0x3d4af3);}function aa(_0x17192d,_0x59cf89){return _0x17192d['replace'](/"(?:""|[^"])*"/g,_0x59cf89);}function oa(_0x10a6b1,_0xa28e06){const _0x4f3bc8=_0x142fa8;return Hi[_0x4f3bc8(0x3df)]=0x0,_0x10a6b1[_0x4f3bc8(0x401)](Hi,(_0x42ff43,_0x5c6ff7)=>la(_0x10a6b1,_0x5c6ff7)?_0x42ff43:_0xa28e06(_0x42ff43));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1bccbe,_0x3dff56){const _0x4c4cb4=_0x142fa8;let _0x139028=[];for(sa[_0x4c4cb4(0x3df)]=0x0;;){let _0xd82990=sa['exec'](_0x1bccbe);if(_0xd82990==null)break;if(la(_0x1bccbe,_0xd82990[_0x4c4cb4(0x2e6)]))continue;let _0x16559e=sa[_0x4c4cb4(0x3df)]-0x1,_0x1050c4=0x0;for(let _0x1779de=_0x16559e;_0x1779de<_0x1bccbe['length'];_0x1779de++)if(_0x1bccbe[_0x1779de]==='['&&_0x1050c4++,_0x1bccbe[_0x1779de]===']'&&(_0x1050c4--,_0x1050c4===0x0)){_0x139028[_0x4c4cb4(0x319)]({'start':_0xd82990[_0x4c4cb4(0x2e6)],'end':_0x1779de+0x1}),sa[_0x4c4cb4(0x3df)]=_0x1779de+0x1;break;}}if(_0x139028[_0x4c4cb4(0x7d)]===0x0)return _0x1bccbe;let _0x425407='',_0x43bcc1=0x0;for(let _0x2adf14 of _0x139028)_0x425407+=_0x1bccbe[_0x4c4cb4(0x3e0)](_0x43bcc1,_0x2adf14['start']),_0x425407+=_0x3dff56(_0x1bccbe[_0x4c4cb4(0x3e0)](_0x2adf14['start'],_0x2adf14[_0x4c4cb4(0x38e)])),_0x43bcc1=_0x2adf14[_0x4c4cb4(0x38e)];return _0x425407+_0x1bccbe[_0x4c4cb4(0x3e0)](_0x43bcc1);}function la(_0xc6bfe5,_0x4994e2){let _0x299bb6=!0x1;for(let _0x526cbb=0x0;_0x526cbb<_0x4994e2;_0x526cbb++)if(_0xc6bfe5[_0x526cbb]==='\x22'){if(_0x299bb6&&_0xc6bfe5[_0x526cbb+0x1]==='\x22'){_0x526cbb++;continue;}_0x299bb6=!_0x299bb6;}return _0x299bb6;}function ua(_0x2be3de,_0x45bfc7,_0x120b14,_0x1d7ff5){const _0x596e9a=_0x142fa8;let _0x34dc17=da(_0x2be3de[_0x596e9a(0x2c9)],_0x45bfc7,_0x120b14,_0x1d7ff5);return{'table':_0x34dc17,'field':_0x34dc17?Object[_0x596e9a(0x307)](_0x34dc17[_0x596e9a(0x37f)])[_0x596e9a(0x3bb)](_0x55aa78=>_0x55aa78['name']===_0x2be3de['fieldName']):void 0x0};}function da(_0x50f0e6,_0x2305e5,_0x321a5f,_0x7591f6){const _0x52747b=_0x142fa8;if(!_0x50f0e6)return _0x2305e5;if(!_0x321a5f){var _0x435ef0;let _0x1c6018=_0x50f0e6[_0x52747b(0x315)]();return _0x1c6018===_0x2305e5['id']['toLowerCase']()||_0x1c6018===_0x2305e5[_0x52747b(0x112)]['toLowerCase']()||_0x1c6018===((_0x435ef0=_0x2305e5[_0x52747b(0x227)])==null?void 0x0:_0x435ef0[_0x52747b(0x315)]())?_0x2305e5:void 0x0;}let _0x4dd200=_0x50f0e6['toLowerCase'](),_0x5e7020=_0x7591f6??_0x41c34(_0x321a5f),_0x30018d=Object[_0x52747b(0x307)](_0x321a5f['tables'])[_0x52747b(0x13c)](_0x37677b=>{const _0x4fc66d=_0x52747b;var _0x57d34e;return _0x37677b['id']['toLowerCase']()===_0x4dd200||_0x37677b['name']['toLowerCase']()===_0x4dd200||((_0x57d34e=_0x5e7020[_0x4fc66d(0x12f)](_0x37677b['id']))==null?void 0x0:_0x57d34e['toLowerCase']())===_0x4dd200||fa(_0x37677b['id'])[_0x4fc66d(0x315)]()===_0x4dd200;});return _0x30018d[_0x52747b(0x7d)]===0x1?_0x30018d[0x0]:void 0x0;}function fa(_0x45e6ef){const _0x60ec96=_0x142fa8;return _0x60ec96(0x402)+Array[_0x60ec96(0x35b)](_0x45e6ef,_0x4261e8=>{const _0x59b493=_0x60ec96;var _0x570b5f;return/[A-Za-z0-9]/['test'](_0x4261e8)?_0x4261e8:'_x'+(((_0x570b5f=_0x4261e8['codePointAt'](0x0))==null?void 0x0:_0x570b5f[_0x59b493(0x407)](0x10))??'0')+'_';})['join']('');}const pa=new Xi();function ma(_0x3844f6,_0x431f08,_0xedf3f8){const _0x1bca27=_0x142fa8;var _0x3651db;if(_0xedf3f8[_0x1bca27(0x35c)]!==_0x2348b1[_0x1bca27(0x1a7)])return!0x0;let _0x3cc436=String(((_0x3651db=_0xedf3f8[_0x1bca27(0xfa)])==null?void 0x0:_0x3651db[_0x1bca27(0x19a)])??''),_0xb6a331=_0x3844f6[_0x1bca27(0x3ea)]();return pa[_0x1bca27(0x117)](_0x3cc436,_0xb6a331['tables'][_0x431f08],{'snapshot':_0xb6a331})[_0x1bca27(0x266)];}function $(_0x520134,_0x1da44b,_0x395624){const _0x4cc03f=_0x142fa8;let _0x143d0d=_0x520134[_0x4cc03f(0x3ea)]()['tables'][_0x1da44b];if(!_0x143d0d)return!0x1;let {viewIds:_0x16b4ee,fieldIds:_0x143a12,recordIds:_0xfa6e10}=_0x395624||{};if(_0x16b4ee){for(let _0xa25ed1 of _0x16b4ee)if(!_0x143d0d['views'][_0xa25ed1])return!0x1;}if(_0x143a12){for(let _0x613a83 of _0x143a12)if(!_0x143d0d['fields'][_0x613a83])return!0x1;}if(_0xfa6e10){for(let _0x29c031 of _0xfa6e10)if(!_0x143d0d[_0x4cc03f(0x309)][_0x29c031])return!0x1;}return!0x0;}function ha(_0xdfda9d,_0x3c9c39,_0x218b82){const _0x515b49=_0x142fa8;if(_0x218b82['id']===_0x48af21||_0x218b82[_0x515b49(0x35c)]===_0x2348b1['RecordId']||_0x117705(_0x218b82[_0x515b49(0x112)])||!ma(_0xdfda9d,_0x3c9c39,_0x218b82))return!0x1;let _0x5c8db5=_0xdfda9d[_0x515b49(0x3ea)]();if(!Be(_0x5c8db5,_0x218b82)[_0x515b49(0x266)])return!0x1;if(_0x218b82[_0x515b49(0x35c)]!==_0x2348b1[_0x515b49(0x382)])return!0x0;let _0x320c95=N(_0x218b82);if(!_0x320c95)return!0x1;if(_0x320c95['relationRole']===void 0x0)return!0x0;if(_0x320c95[_0x515b49(0x247)]!==_0x103858[_0x515b49(0x100)]||_0x320c95[_0x515b49(0x242)]!==_0x3c9c39||_0x320c95[_0x515b49(0x3fc)]!==!0x1)return!0x1;let _0x38f795=_0x5c8db5[_0x515b49(0x3bd)][_0x3c9c39];return!Object[_0x515b49(0x307)](_0x38f795[_0x515b49(0x37f)])['some'](_0x34a740=>{const _0xcc7a3b=_0x515b49;var _0xc9f083;return _0x34a740['id']!==_0x218b82['id']&&_0x34a740[_0xcc7a3b(0x35c)]===_0x2348b1[_0xcc7a3b(0x382)]&&((_0xc9f083=N(_0x34a740))==null?void 0x0:_0xc9f083[_0xcc7a3b(0x247)])===_0x103858['Parent'];});}function ga(_0x121f60,_0x3bd5d1,_0x2edb8b,_0x1b9777){const _0x3dfd05=_0x142fa8;var _0x3b0466;let _0x50183e=_0x121f60[_0x3dfd05(0x3ea)](),_0xa52f86=(_0x3b0466=_0x50183e[_0x3dfd05(0x3bd)][_0x3bd5d1])==null?void 0x0:_0x3b0466['fields'][_0x2edb8b];return!_0xa52f86||_0xa52f86['id']===_0x48af21||_0xa52f86['type']===_0x2348b1[_0x3dfd05(0x416)]?!0x1:_0xa52f86[_0x3dfd05(0x35c)]!==_0x2348b1[_0x3dfd05(0x382)]||Ve(_0x50183e,_0xa52f86,ya(_0x1b9777))[_0x3dfd05(0x266)];}function _a(_0x2474c2,_0x1590cc,_0x10b191){const _0x1a1912=_0x142fa8;let _0x276211=_0x2474c2[_0x1a1912(0x3ea)]()['tables'][_0x1590cc];return!_0x276211||!_0xeeedad(_0x10b191['id'])||_0x276211[_0x1a1912(0x309)][_0x10b191['id']]||Object[_0x1a1912(0x18b)][_0x1a1912(0x26e)][_0x1a1912(0x3e6)](_0x10b191[_0x1a1912(0x307)],_0x48af21)&&_0x10b191['values'][_0x48af21]!==_0x10b191['id']?!0x1:Object[_0x1a1912(0x274)](_0x10b191[_0x1a1912(0x307)])[_0x1a1912(0x40c)](([_0x357f89,_0x4103c7])=>_0x357f89===_0x48af21||ga(_0x2474c2,_0x1590cc,_0x357f89,_0x4103c7));}function va(_0x1736de){const _0x1c2454=_0x142fa8;return{..._0x1736de,'values':{..._0x1736de[_0x1c2454(0x307)],[_0x48af21]:_0x1736de['id']}};}function ya(_0x1286ac){const _0x2cd3e3=_0x142fa8;if(_0x1286ac&&typeof _0x1286ac==_0x2cd3e3(0x1e3)&&!Array[_0x2cd3e3(0x8f)](_0x1286ac)&&'v'in _0x1286ac){let _0x107691=_0x1286ac['v'];return _0x107691===void 0x0?null:_0x107691;}return _0x1286ac;}function ba(_0x4cade9,_0x3fd12f,_0x333bcb,_0x94388c){const _0x490930=_0x142fa8;let _0x4e7557=_0x4cade9['getSnapshot']()[_0x490930(0x3bd)][_0x3fd12f];if(!_0x4e7557)return null;let _0x3a3205=qe(_0x4e7557),_0x42436c=_0x3a3205??Je(_0x4e7557),_0x1e4a72=_0x333bcb[_0x490930(0x3b4)](_0x382105=>Object[_0x490930(0x18b)][_0x490930(0x26e)][_0x490930(0x3e6)](_0x382105[_0x490930(0x307)],_0x42436c)),_0xa26b92=_0x3a3205?_0x4e7557['fields'][_0x3a3205]:_0x1e4a72?Ye(_0x4e7557,_0x42436c,_0x94388c):null,_0x476a20=[];for(let _0x1cea6c of _0x333bcb){let _0xffeeac=_0x1cea6c[_0x490930(0x307)][_0x42436c],_0x271c32=_0xa26b92!==null&&Object[_0x490930(0x18b)]['hasOwnProperty'][_0x490930(0x3e6)](_0x1cea6c[_0x490930(0x307)],_0x42436c),_0x37aa84=ya(_0xffeeac),_0x1e635c=null;if(_0x271c32){if(typeof _0x37aa84!=_0x490930(0x3a1)||!ze(_0x37aa84,!0x1)[_0x490930(0x266)])return null;_0x1e635c=_0x37aa84;}let _0x38dfcb={};if(Object[_0x490930(0x274)](_0x1cea6c[_0x490930(0x307)])[_0x490930(0x2e7)](([_0x19f24a,_0x31b65a])=>{(!_0x271c32||_0x19f24a!==_0x42436c)&&(_0x38dfcb[_0x19f24a]=_0x31b65a);}),!_a(_0x4cade9,_0x3fd12f,{..._0x1cea6c,'values':_0x38dfcb}))return null;let _0x57bb68={..._0x1cea6c['values']};_0x1e635c!==null&&(_0x57bb68[_0x42436c]=_0x1e635c),_0x476a20[_0x490930(0x319)](va({..._0x1cea6c,'values':_0x57bb68}));}return{'records':_0x476a20,'hierarchyFieldToMaterialize':_0x3a3205?null:_0xa26b92,'hierarchyChanges':Qe(_0x4e7557,_0x476a20)};}const xa={'id':_0x142fa8(0x24f),'type':_0x3ba701[_0x142fa8(0x131)],'handler'(_0x2e251a,_0x4e144d){const _0x536f0c=_0x142fa8;if(!_0x4e144d)return!0x1;let _0x43a98a=_0x2e251a['get'](_0x44289e),{unitId:_0x2a101b,tableId:_0x324679,records:_0x12e909}=_0x4e144d,_0x12d056=_0x43a98a['getUnit'](_0x2a101b,_0x5b7c15[_0x536f0c(0x324)]),_0x5df326=_0x12e909[_0x536f0c(0x1bc)](_0x30b250=>_0x30b250['id']);if(!_0x12d056||!$(_0x12d056,_0x324679)||new Set(_0x5df326)[_0x536f0c(0xad)]!==_0x5df326[_0x536f0c(0x7d)])return!0x1;let _0x3868c4=_0x2e251a[_0x536f0c(0x12f)](_0x3c2684),_0x1a9587=_0x2e251a['get'](_0x43263b),_0x2c8383=_0x2e251a[_0x536f0c(0x12f)](Kr),_0x5ded75=_0x12d056[_0x536f0c(0x3ea)](),_0x2f0add=ba(_0x12d056,_0x324679,_0x12e909);if(!_0x2f0add)return!0x1;let {records:_0xf64b8c,hierarchyChanges:_0x2ee2d5,hierarchyFieldToMaterialize:_0x5a9c38}=_0x2f0add,_0x3d694e=_0x5a9c38?_0x2c8383[_0x536f0c(0x196)](_0x12d056,_0x324679,_0x5a9c38,_0x5ded75[_0x536f0c(0x3bd)][_0x324679][_0x536f0c(0x143)]['length']):null,_0x53512e=_0x2c8383['createBatchCreateRecordsOp'](_0x12d056,_0x324679,_0xf64b8c),_0x198ee3=R([..._0x3d694e?[_0x3d694e]:[],_0x53512e]),_0x7d589e=new z()[_0x536f0c(0x3f8)](_0x5ded75,_0x198ee3),_0x37900c={'unitId':_0x2a101b,'op':_0x198ee3,'hierarchyChanges':_0x2ee2d5['length']?_0x2ee2d5:void 0x0,'source':_0x2ee2d5['length']?_0x4e144d[_0x536f0c(0x96)]??'ui':void 0x0},_0x5b4723={..._0x37900c,'source':_0x2ee2d5[_0x536f0c(0x7d)]?'redo':void 0x0},_0x3be9c0={'unitId':_0x2a101b,'op':_0x7d589e,'hierarchyChanges':_0x2ee2d5['length']?_0x2ee2d5[_0x536f0c(0x1bc)](_0x3d8f51=>({..._0x3d8f51,'oldParentRecordId':_0x3d8f51[_0x536f0c(0x2e3)],'parentRecordId':null})):void 0x0,'source':_0x2ee2d5[_0x536f0c(0x7d)]?_0x536f0c(0xeb):void 0x0};return _0x3868c4[_0x536f0c(0x2a9)](Q['id'],_0x37900c)?(_0x43a98a['focusUnit'](_0x2a101b),_0x1a9587[_0x536f0c(0x338)]({'unitID':_0x2a101b,'undoMutations':[{'id':Q['id'],'params':_0x3be9c0}],'redoMutations':[{'id':Q['id'],'params':_0x5b4723}]}),!0x0):!0x1;}},Sa={'id':_0x142fa8(0x262),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x310514,_0x5dbad0)=>{const _0x122ca5=_0x142fa8;if(!_0x5dbad0)return!0x1;let _0x595984=_0x310514['get'](_0x44289e),{unitId:_0x66e37b,tableId:_0x4dfb38,recordIds:_0x58950b}=_0x5dbad0,_0x3ce679=_0x595984[_0x122ca5(0x9c)](_0x66e37b,_0x5b7c15[_0x122ca5(0x324)]);if(!_0x3ce679||!$(_0x3ce679,_0x4dfb38,{'recordIds':_0x58950b}))return!0x1;let _0x1852cc=_0x310514[_0x122ca5(0x12f)](_0x3c2684),_0x546f40=_0x310514[_0x122ca5(0x12f)](_0x43263b),_0x1c5c0a=_0x3ce679[_0x122ca5(0x3ea)](),_0x1de0ac=et(_0x1c5c0a[_0x122ca5(0x3bd)][_0x4dfb38],_0x58950b),_0x12bb2e=new W(),_0x190577=new z(),_0x3452b4=_0x12bb2e[_0x122ca5(0x139)](_0x1c5c0a,_0x4dfb38,_0x58950b),_0x171ef4=_0x190577[_0x122ca5(0x121)](_0x1c5c0a,_0x3452b4),_0x1f64fd=_0x12bb2e['createDeleteRecordsUndoOp'](_0x1c5c0a,_0x171ef4,_0x4dfb38,_0x58950b),_0x3c5681={'unitId':_0x66e37b,'op':_0x3452b4,'hierarchyChanges':_0x1de0ac,'source':_0x5dbad0[_0x122ca5(0x96)]??'ui'},_0x41aecf={..._0x3c5681,'source':_0x122ca5(0xcc)},_0x4a94fe={'unitId':_0x66e37b,'op':_0x1f64fd,'hierarchyChanges':_0x1de0ac[_0x122ca5(0x1bc)](_0x3350ed=>({..._0x3350ed,'oldParentRecordId':_0x3350ed[_0x122ca5(0x2e3)],'parentRecordId':_0x3350ed[_0x122ca5(0x116)]})),'source':_0x122ca5(0xeb)};return _0x1852cc[_0x122ca5(0x2a9)](Q['id'],_0x3c5681)?(_0x595984[_0x122ca5(0x1f3)](_0x66e37b),_0x546f40['pushUndoRedo']({'unitID':_0x66e37b,'undoMutations':[{'id':Q['id'],'params':_0x4a94fe}],'redoMutations':[{'id':Q['id'],'params':_0x41aecf}]}),!0x0):!0x1;}},Ca={'id':_0x142fa8(0x1e7),'type':_0x3ba701['COMMAND'],'handler':(_0x33868b,_0x4f6223)=>{const _0x368e15=_0x142fa8;if(!_0x4f6223)return!0x1;let _0x589cb9=_0x33868b['get'](_0x44289e),{unitId:_0x578a63,tableId:_0x7834d2,fieldId:_0xc2f7cc,input:_0x1288d2}=_0x4f6223,_0x20bd8b=_0x589cb9['getUnit'](_0x578a63,_0x5b7c15['UNIVER_BASE']);if(!_0x20bd8b||_0xc2f7cc===_0x48af21||!$(_0x20bd8b,_0x7834d2,{'fieldIds':[_0xc2f7cc]}))return!0x1;let _0x32bc03=_0x33868b[_0x368e15(0x12f)](_0x3c2684),_0x1580e6=_0x33868b['get'](_0x43263b),_0xb8a654=_0x20bd8b[_0x368e15(0x3ea)]();if(!ha(_0x20bd8b,_0x7834d2,{..._0xb8a654['tables'][_0x7834d2][_0x368e15(0x37f)][_0xc2f7cc],..._0x1288d2}))return!0x1;let _0x1d91d0=new W()[_0x368e15(0x356)](_0xb8a654,_0x7834d2,_0xc2f7cc,_0x1288d2),_0x5209a9=new z()['invertOp'](_0xb8a654,_0x1d91d0),_0x3ecf1e={'unitId':_0x578a63,'op':_0x1d91d0},_0x4f0fba={'unitId':_0x578a63,'op':_0x5209a9};return _0x32bc03[_0x368e15(0x2a9)](Q['id'],_0x3ecf1e)?(_0x589cb9[_0x368e15(0x1f3)](_0x578a63),_0x1580e6[_0x368e15(0x338)]({'unitID':_0x578a63,'undoMutations':[{'id':Q['id'],'params':_0x4f0fba}],'redoMutations':[{'id':Q['id'],'params':_0x3ecf1e}]}),!0x0):!0x1;}},wa={'id':_0x142fa8(0x337),'type':_0x3ba701['COMMAND'],'handler'(_0x934b44,_0x19819a){const _0x317867=_0x142fa8;var _0x417d4d;if(!_0x19819a)return!0x1;let {unitId:_0x362b05,tableId:_0x28bb9f,parentRecordId:_0x2f52ac}=_0x19819a,_0x72da70=_0x934b44['get'](_0x44289e),_0xd0d708=_0x72da70[_0x317867(0x9c)](_0x362b05,_0x5b7c15[_0x317867(0x324)]);if(!_0xd0d708||!$(_0xd0d708,_0x28bb9f,{'recordIds':[_0x2f52ac]}))throw new P(_0x317867(0x14a));let _0x347544=_0xd0d708[_0x317867(0x3ea)](),_0x175da4=_0x347544[_0x317867(0x3bd)][_0x28bb9f],_0x5b98f2=qe(_0x175da4),_0x44737e=_0x5b98f2??_0x19819a[_0x317867(0x3c1)]??Je(_0x175da4);if(_0x5b98f2&&_0x19819a[_0x317867(0x3c1)]&&_0x19819a[_0x317867(0x3c1)]!==_0x5b98f2||_0x175da4[_0x317867(0x37f)][_0x44737e]&&!F(_0x175da4,_0x44737e))throw new P(_0x317867(0x371));if((tt(_0x175da4,_0x44737e)[_0x317867(0x88)][_0x317867(0x12f)](_0x2f52ac)??0x0)+0x1>=0x5)throw new P(_0x317867(0x39c));if(!_a(_0xd0d708,_0x28bb9f,_0x19819a[_0x317867(0x3ad)]))return!0x1;let _0x388ba4=va({..._0x19819a[_0x317867(0x3ad)],'values':{..._0x19819a['record'][_0x317867(0x307)],[_0x44737e]:Re([_0x2f52ac])}}),_0x4d453a=_0x934b44[_0x317867(0x12f)](Kr),_0x2ad3dd=new W(),_0x1ee62b=_0x175da4['fields'][_0x44737e],_0x3b696b=_0x1ee62b?((_0x417d4d=N(_0x1ee62b))==null?void 0x0:_0x417d4d[_0x317867(0x247)])===_0x103858[_0x317867(0x100)]?null:_0x2ad3dd[_0x317867(0x14c)](_0x347544,_0x28bb9f,_0x44737e,{'config':{..._0x1ee62b[_0x317867(0xfa)],'relationRole':_0x103858['Parent']}}):_0x4d453a['createCreateFieldOp'](_0xd0d708,_0x28bb9f,Ye(_0x175da4,_0x44737e,_0x19819a['parentFieldName']),_0x175da4['fieldOrder'][_0x317867(0x7d)]),_0x3e3eeb=_0x4d453a[_0x317867(0x138)](_0xd0d708,_0x28bb9f,_0x388ba4),_0x4c4808=R([..._0x3b696b?[_0x3b696b]:[],_0x3e3eeb]),_0x3f1020=new z()[_0x317867(0x3f8)](_0x347544,_0x4c4808),_0x13fae5={'tableId':_0x28bb9f,'fieldId':_0x44737e,'recordId':_0x388ba4['id'],'oldParentRecordId':null,'parentRecordId':_0x2f52ac},_0x2acc04={'unitId':_0x362b05,'op':_0x4c4808,'trigger':wa['id'],'hierarchyChanges':[_0x13fae5],'source':_0x19819a['source']??'ui'},_0x841936={..._0x2acc04,'source':_0x317867(0xcc)},_0x3c0ace={'unitId':_0x362b05,'op':_0x3f1020,'trigger':wa['id'],'hierarchyChanges':[{..._0x13fae5,'oldParentRecordId':_0x2f52ac,'parentRecordId':null}],'source':_0x317867(0xeb)};return _0x934b44['get'](_0x3c2684)['syncExecuteCommand'](Q['id'],_0x2acc04)?(_0x72da70['focusUnit'](_0x362b05),_0x934b44['get'](_0x43263b)['pushUndoRedo']({'unitID':_0x362b05,'undoMutations':[{'id':Q['id'],'params':_0x3c0ace}],'redoMutations':[{'id':Q['id'],'params':_0x841936}]}),!0x0):!0x1;}},Ta={'id':_0x142fa8(0x344),'type':_0x3ba701[_0x142fa8(0x131)],'handler'(_0x24e06a,_0x2e06e0){const _0x47565a=_0x142fa8;if(!_0x2e06e0)return!0x1;let _0x5e15f5=_0x24e06a[_0x47565a(0x12f)](_0x44289e),{unitId:_0x275915,tableId:_0x288727,field:_0x1b8a16,index:_0x796b55,viewIndexes:_0x18e657}=_0x2e06e0,_0x26413b=_0x5e15f5[_0x47565a(0x9c)](_0x275915,_0x5b7c15[_0x47565a(0x324)]);if(!_0x26413b||!$(_0x26413b,_0x288727)||_0x26413b['getSnapshot']()[_0x47565a(0x3bd)][_0x288727][_0x47565a(0x37f)][_0x1b8a16['id']]||_0x796b55===0x0||!ha(_0x26413b,_0x288727,_0x1b8a16))return!0x1;let _0x2cef8c=_0x24e06a[_0x47565a(0x12f)](_0x3c2684),_0x1be656=_0x24e06a['get'](_0x43263b),_0x503c0d=_0x24e06a[_0x47565a(0x12f)](Kr)['createCreateFieldOp'](_0x26413b,_0x288727,_0x1b8a16,_0x796b55,_0x18e657),_0x290a31=new z()[_0x47565a(0x3f8)](_0x26413b[_0x47565a(0x3ea)](),_0x503c0d),_0x5a9760={'unitId':_0x275915,'op':_0x503c0d},_0x57f382={'unitId':_0x275915,'op':_0x290a31};return _0x2cef8c[_0x47565a(0x2a9)](Q['id'],_0x5a9760)?(_0x5e15f5['focusUnit'](_0x275915),_0x1be656[_0x47565a(0x338)]({'unitID':_0x275915,'undoMutations':[{'id':Q['id'],'params':_0x57f382}],'redoMutations':[{'id':Q['id'],'params':_0x5a9760}]}),!0x0):!0x1;}},Ea={'id':'base.command.create-base-record','type':_0x3ba701['COMMAND'],'handler'(_0x21e116,_0xae1402){const _0x19243d=_0x142fa8;if(!_0xae1402)return!0x1;let _0x4e7968=_0x21e116['get'](_0x44289e),{unitId:_0x58cd12,tableId:_0xcf0448,record:_0x492f7b}=_0xae1402,_0xb6b016=_0x4e7968[_0x19243d(0x9c)](_0x58cd12,_0x5b7c15[_0x19243d(0x324)]);if(!_0xb6b016||!$(_0xb6b016,_0xcf0448))return!0x1;let _0x731613=_0x21e116[_0x19243d(0x12f)](_0x3c2684),_0x97f65c=_0x21e116[_0x19243d(0x12f)](_0x43263b),_0x830c33=_0x21e116[_0x19243d(0x12f)](Kr),_0x2451e5=_0xb6b016[_0x19243d(0x3ea)](),_0xb819f5=ba(_0xb6b016,_0xcf0448,[_0x492f7b]);if(!_0xb819f5)return!0x1;let [_0x95604c]=_0xb819f5[_0x19243d(0x309)],{hierarchyChanges:_0x2ee219,hierarchyFieldToMaterialize:_0x2f647f}=_0xb819f5,_0x467b52=_0x2f647f?_0x830c33[_0x19243d(0x196)](_0xb6b016,_0xcf0448,_0x2f647f,_0x2451e5['tables'][_0xcf0448][_0x19243d(0x143)]['length']):null,_0x45fa3f=_0x830c33[_0x19243d(0x138)](_0xb6b016,_0xcf0448,_0x95604c),_0x52b1e0=R([..._0x467b52?[_0x467b52]:[],_0x45fa3f]),_0x2c93c0=new z()[_0x19243d(0x3f8)](_0x2451e5,_0x52b1e0),_0x2d2dc8={'unitId':_0x58cd12,'op':_0x52b1e0,'hierarchyChanges':_0x2ee219[_0x19243d(0x7d)]?_0x2ee219:void 0x0,'source':_0x2ee219[_0x19243d(0x7d)]?_0xae1402['source']??'ui':void 0x0},_0x167200={..._0x2d2dc8,'source':_0x2ee219[_0x19243d(0x7d)]?_0x19243d(0xcc):void 0x0},_0x5e1c4c={'unitId':_0x58cd12,'op':_0x2c93c0,'hierarchyChanges':_0x2ee219['length']?_0x2ee219[_0x19243d(0x1bc)](_0x5b3f37=>({..._0x5b3f37,'oldParentRecordId':_0x5b3f37[_0x19243d(0x2e3)],'parentRecordId':null})):void 0x0,'source':_0x2ee219[_0x19243d(0x7d)]?'undo':void 0x0};return _0x731613[_0x19243d(0x2a9)](Q['id'],_0x2d2dc8)?(_0x4e7968['focusUnit'](_0x58cd12),_0x97f65c[_0x19243d(0x338)]({'unitID':_0x58cd12,'undoMutations':[{'id':Q['id'],'params':_0x5e1c4c}],'redoMutations':[{'id':Q['id'],'params':_0x167200}]}),!0x0):!0x1;}},Da=_0x142fa8(0x3e8);function Oa(_0x593694,_0x4f07af,_0x45189e){const _0x261148=_0x142fa8;if(!_0x4f07af[_0x261148(0x41a)]())return{'valid':!0x1,'reason':'Table\x20name\x20is\x20required.','error':_0x261148(0x3ca)};if(_0x4f07af[_0x261148(0x7d)]>0x1f)return{'valid':!0x1,'reason':_0x261148(0x268),'error':_0x261148(0x1fd)};if(_0x4f07af['startsWith']('\x27')||_0x4f07af['endsWith']('\x27'))return{'valid':!0x1,'reason':_0x261148(0x9a),'error':_0x261148(0x278)};if(/[:\\/?*\[\]]/[_0x261148(0x413)](_0x4f07af))return{'valid':!0x1,'reason':_0x261148(0x21c),'error':_0x261148(0xf3)};if(!_0x551707(_0x4f07af))return{'valid':!0x1,'reason':_0x261148(0x2f5),'error':'invalid'};let _0x3ee836=_0x4f07af['toLowerCase']();return Object[_0x261148(0x307)](_0x593694[_0x261148(0x3bd)])['some'](_0xc847d0=>_0xc847d0['id']!==_0x45189e&&_0xc847d0[_0x261148(0x112)][_0x261148(0x315)]()===_0x3ee836)?{'valid':!0x1,'reason':_0x261148(0x2a7),'error':_0x261148(0x99)}:{'valid':!0x0};}function ka(_0x418866,_0x36b481){const _0x42496e=_0x142fa8;let _0x4037ac=_0x36b481[_0x42496e(0x401)](/[:\\/?*\[\]]/g,'\x20')[_0x42496e(0x401)](/^'+|'+$/g,'')['trim']()||_0x42496e(0xe8),_0x1ea2a6=0x1;for(;;){let _0x8e70fc=_0x1ea2a6===0x1?'':'\x20'+_0x1ea2a6,_0x18a31d=''+_0x4037ac[_0x42496e(0x3e0)](0x0,0x1f-_0x8e70fc[_0x42496e(0x7d)])+_0x8e70fc;if(Oa(_0x418866,_0x18a31d)[_0x42496e(0x266)])return _0x18a31d;_0x1ea2a6++;}}const Aa={'id':_0x142fa8(0x1d1),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x3a8840,_0x46e2eb)=>{const _0x2025b2=_0x142fa8;if(!_0x46e2eb)return!0x1;let _0x22cf1b=_0x3a8840['get'](_0x44289e),{unitId:_0x202291,table:_0xa0248,index:_0x2d3ac5}=_0x46e2eb,_0x28fbf5=_0x22cf1b[_0x2025b2(0x9c)](_0x202291,_0x5b7c15['UNIVER_BASE']);if(!_0x28fbf5||_0x28fbf5[_0x2025b2(0x3ea)]()[_0x2025b2(0x3bd)][_0xa0248['id']]||!Oa(_0x28fbf5['getSnapshot'](),_0xa0248[_0x2025b2(0x112)])[_0x2025b2(0x266)])return!0x1;try{_0x281585(_0xa0248);}catch{return!0x1;}let _0x231aea=_0x3a8840['get'](_0x3c2684),_0x299b12=_0x3a8840[_0x2025b2(0x12f)](_0x43263b),_0x2b0489=_0x28fbf5['getSnapshot'](),_0x4a65b3=new W()['createTable'](_0x2b0489,_0xa0248,_0x2d3ac5),_0x59235d=new z()[_0x2025b2(0x3f8)](_0x2b0489,_0x4a65b3),_0x2d7895={'unitId':_0x202291,'op':_0x4a65b3},_0x2752ad={'unitId':_0x202291,'op':_0x59235d};return _0x231aea[_0x2025b2(0x2a9)](Q['id'],_0x2d7895)?(_0x22cf1b['focusUnit'](_0x202291),_0x299b12[_0x2025b2(0x338)]({'unitID':_0x202291,'undoMutations':[{'id':Q['id'],'params':_0x2752ad}],'redoMutations':[{'id':Q['id'],'params':_0x2d7895}]}),!0x0):!0x1;}};function ja(_0xc77fb3,_0x5650f0,_0x33b4b2=[]){const _0x29a96e=_0x142fa8;let _0x1de081=new Set([...Object[_0x29a96e(0x307)](_0xc77fb3[_0x29a96e(0x37f)])[_0x29a96e(0x13c)](_0x4aab22=>_0x4aab22)[_0x29a96e(0x1bc)](_0x3246ab=>_0x3246ab[_0x29a96e(0x112)]),..._0x33b4b2['map'](_0x9c29b4=>_0x9c29b4[_0x29a96e(0x112)])]);if(!_0x1de081[_0x29a96e(0x8e)](_0x5650f0))return _0x5650f0;let _0x48b0f3=0x2;for(;_0x1de081['has'](_0x5650f0+'\x20'+_0x48b0f3);)_0x48b0f3++;return _0x5650f0+'\x20'+_0x48b0f3;}function Ma(_0x1160e8,_0x1ed72f){const _0x39e86e=_0x142fa8;if(!_0x1160e8||!_0x1ed72f[_0x39e86e(0x7d)])return;let _0x3a73fb=[..._0x1160e8];return _0x1ed72f[_0x39e86e(0x2e7)](_0x5dce5d=>{const _0x2a4108=_0x39e86e;_0x3a73fb[_0x2a4108(0x8b)](_0x5dce5d)||_0x3a73fb['push'](_0x5dce5d);}),_0x3a73fb;}const Na={'options':[{'id':_0x142fa8(0x1db),'name':_0x142fa8(0x210),'color':_0x142fa8(0x15f)},{'id':_0x142fa8(0x422),'name':_0x142fa8(0x260),'color':'#FDE68A'},{'id':_0x142fa8(0x269),'name':_0x142fa8(0x35a),'color':'#BBF7D0'}]},Pa={'locale':_0x142fa8(0x31a),'pattern':_0x142fa8(0x101),'includeTime':!0x1,'hourCycle':_0x142fa8(0xb9),'defaultMode':'none'};function Fa(_0x1cdf86,_0x57334b,_0x517d7c,_0x53f078){const _0x5b006d=_0x142fa8;var _0x385e44;let _0x7ea64d=new W(),_0x4292a7=_0x1cdf86[_0x5b006d(0x3bd)][_0x57334b],_0x4b4077=_0x4292a7?{..._0x517d7c,'fieldOrder':[_0x48af21,...(_0x517d7c[_0x5b006d(0x143)]??_0x4292a7[_0x5b006d(0x143)])[_0x5b006d(0x13c)](_0x11c665=>_0x11c665!==_0x48af21)],'fieldSettings':{..._0x517d7c['fieldSettings'],[_0x48af21]:{...(_0x385e44=_0x517d7c['fieldSettings'])==null?void 0x0:_0x385e44[_0x48af21],'hidden':!0x0}}}:_0x517d7c;if(_0x4292a7&&_0x4b4077[_0x5b006d(0x35c)]===_0x5b006d(0x1ac)){let _0x24a61c=La(_0x4292a7,_0x4b4077),_0xa35467=_0x24a61c[_0x5b006d(0x186)]?{..._0x4b4077,'config':_0x24a61c['config'],'fieldOrder':_0x24a61c['fieldOrder']??_0x4b4077['fieldOrder']}:_0x4b4077;return R([..._0x24a61c[_0x5b006d(0x37f)][_0x5b006d(0x1bc)](_0x2f0763=>_0x7ea64d['createField'](_0x1cdf86,_0x57334b,{'field':_0x2f0763})),_0x7ea64d[_0x5b006d(0x87)](_0x1cdf86,_0x57334b,_0xa35467,_0x53f078)]);}if(!_0x4292a7||_0x4b4077[_0x5b006d(0x35c)]!=='calendar'&&_0x4b4077[_0x5b006d(0x35c)]!==_0x5b006d(0x2da))return _0x7ea64d['createView'](_0x1cdf86,_0x57334b,_0x4b4077,_0x53f078);let _0x246bf9=Ia(_0x4292a7,_0x4b4077),_0x4226e3=_0x246bf9['changed']?{..._0x4b4077,'config':_0x246bf9[_0x5b006d(0xfa)],'fieldOrder':_0x246bf9['fieldOrder']??_0x4b4077[_0x5b006d(0x143)]}:_0x4b4077;return _0x4b4077[_0x5b006d(0x35c)]===_0x5b006d(0x2da)&&Ba(_0x4b4077)&&(_0x4226e3=Va(_0x4292a7,_0x4226e3,_0x246bf9[_0x5b006d(0x37f)])),R([..._0x246bf9[_0x5b006d(0x37f)]['map'](_0x29e8b3=>_0x7ea64d['createField'](_0x1cdf86,_0x57334b,{'field':_0x29e8b3})),_0x7ea64d[_0x5b006d(0x87)](_0x1cdf86,_0x57334b,_0x4226e3,_0x53f078)]);}function Ia(_0x194b0,_0x3a41d8,_0x3229e6=!0x1){const _0x501b5b=_0x142fa8;var _0x1868c5,_0x2965cb;let _0x5f1649=_0x194b0[_0x501b5b(0x143)][_0x501b5b(0x13c)](_0x3bf1a9=>Ua(_0x194b0,_0x3bf1a9)),_0x48fecf=[],_0xd32cc={..._0x3a41d8[_0x501b5b(0xfa)]??{}},_0x262050=typeof _0xd32cc['startDateFieldId']=='string'&&Ua(_0x194b0,_0xd32cc[_0x501b5b(0x3f4)])?_0xd32cc['startDateFieldId']:_0x5f1649[0x0],_0x17baf3=typeof _0xd32cc['endDateFieldId']==_0x501b5b(0x3a1)&&Ua(_0x194b0,_0xd32cc[_0x501b5b(0x296)])&&_0xd32cc[_0x501b5b(0x296)]!==_0x262050?_0xd32cc[_0x501b5b(0x296)]:_0x5f1649[_0x501b5b(0x3bb)](_0x1dddf6=>_0x1dddf6!==_0x262050);if(!_0x262050){let _0x421a98=Wa(_0x194b0,_0x48fecf,_0x3a41d8[_0x501b5b(0x35c)]===_0x501b5b(0x2da)?_0x501b5b(0x3d3):_0x501b5b(0xff));_0x48fecf[_0x501b5b(0x319)](_0x421a98),_0x262050=_0x421a98['id'];}if((_0x3a41d8[_0x501b5b(0x35c)]===_0x501b5b(0x2da)||_0x3229e6)&&!_0x17baf3){let _0x4152e5=Wa(_0x194b0,_0x48fecf,_0x501b5b(0x3c3));_0x48fecf[_0x501b5b(0x319)](_0x4152e5),_0x17baf3=_0x4152e5['id'];}_0x3a41d8[_0x501b5b(0x35c)]===_0x501b5b(0x201)&&!_0x17baf3&&delete _0xd32cc['endDateFieldId'],_0xd32cc['startDateFieldId']=_0x262050,_0x3a41d8['type']===_0x501b5b(0x201)&&_0x17baf3&&(_0xd32cc['endDateFieldId']=_0x17baf3),_0x3a41d8[_0x501b5b(0x35c)]===_0x501b5b(0x2da)&&(_0xd32cc['endDateFieldId']=_0x17baf3??_0x262050);let _0xf3b1df=Ma(_0x3a41d8[_0x501b5b(0x143)],_0x48fecf[_0x501b5b(0x1bc)](_0x4a8f86=>_0x4a8f86['id']));return{'changed':_0x48fecf[_0x501b5b(0x7d)]>0x0||_0xd32cc['startDateFieldId']!==((_0x1868c5=_0x3a41d8[_0x501b5b(0xfa)])==null?void 0x0:_0x1868c5['startDateFieldId'])||_0xd32cc[_0x501b5b(0x296)]!==((_0x2965cb=_0x3a41d8[_0x501b5b(0xfa)])==null?void 0x0:_0x2965cb[_0x501b5b(0x296)])||!!(_0xf3b1df&&!_0x3e4e1e[_0x501b5b(0x3c6)](_0xf3b1df,_0x3a41d8[_0x501b5b(0x143)]??[])),'fields':_0x48fecf,'config':_0xd32cc,'fieldOrder':_0xf3b1df};}function La(_0x15fd92,_0x1c7b20){const _0x318128=_0x142fa8;var _0x5baaba;let _0x448678=[],_0x3dfbc1={..._0x1c7b20[_0x318128(0xfa)]??{}},_0x59429f=typeof _0x3dfbc1[_0x318128(0x181)]==_0x318128(0x3a1)&&Ra(_0x15fd92,_0x3dfbc1['groupFieldId'])?_0x3dfbc1[_0x318128(0x181)]:_0x15fd92[_0x318128(0x143)][_0x318128(0x3bb)](_0x21e794=>Ra(_0x15fd92,_0x21e794));if(!_0x59429f){let _0x5d5a18=za(_0x15fd92,_0x448678);_0x448678[_0x318128(0x319)](_0x5d5a18),_0x59429f=_0x5d5a18['id'];}_0x3dfbc1[_0x318128(0x181)]=_0x59429f;let _0x42b694=Ma(_0x1c7b20[_0x318128(0x143)],_0x448678[_0x318128(0x1bc)](_0x1feaf5=>_0x1feaf5['id']));return{'changed':_0x448678[_0x318128(0x7d)]>0x0||_0x3dfbc1[_0x318128(0x181)]!==((_0x5baaba=_0x1c7b20[_0x318128(0xfa)])==null?void 0x0:_0x5baaba['groupFieldId'])||!!(_0x42b694&&!_0x3e4e1e[_0x318128(0x3c6)](_0x42b694,_0x1c7b20[_0x318128(0x143)]??[])),'fields':_0x448678,'config':_0x3dfbc1,'fieldOrder':_0x42b694};}function Ra(_0x5a67b6,_0x1d7a75){const _0x3bc556=_0x142fa8;let _0x1391cc=_0x1d7a75?_0x5a67b6['fields'][_0x1d7a75]:null;return _0x1391cc?[_0x2348b1[_0x3bc556(0x14e)],_0x2348b1[_0x3bc556(0x3b0)],_0x2348b1['Rating'],_0x2348b1[_0x3bc556(0x30f)],_0x2348b1[_0x3bc556(0x12d)],_0x2348b1['Checkbox']][_0x3bc556(0x8b)](_0x1391cc[_0x3bc556(0x35c)]):!0x1;}function za(_0x37b4ec,_0x456e0a){const _0xba0f6e=_0x142fa8;return{'id':_0xba0f6e(0x303)+_0x1aa742(0x8),'name':ja(_0x37b4ec,_0xba0f6e(0xc5),_0x456e0a),'type':_0x2348b1['SingleSelect'],'config':_0x3e4e1e[_0xba0f6e(0x31f)](Na)};}function Ba(_0x2cd7d5){const _0xa087f0=_0x142fa8;return Object[_0xa087f0(0xd3)](_0x2cd7d5[_0xa087f0(0xfa)]??{})['length']===0x0&&Object[_0xa087f0(0xd3)](_0x2cd7d5[_0xa087f0(0x241)]??{})['length']===0x0;}function Va(_0x62ef41,_0x4a99d6,_0xb16c4f){const _0x2dd85d=_0x142fa8;let _0x45358b={..._0x4a99d6['config']??{}},_0x87e029=_0xb16c4f[_0x2dd85d(0x1bc)](_0x178c69=>_0x178c69['id']),_0x3be0d6=[..._0x62ef41[_0x2dd85d(0x143)],..._0x87e029],_0x886fdd=typeof _0x45358b['titleFieldId']=='string'&&Ha(_0x62ef41,_0xb16c4f,_0x45358b[_0x2dd85d(0x208)])?_0x45358b['titleFieldId']:_0x62ef41[_0x2dd85d(0x195)],_0x3b357c=typeof _0x45358b['startDateFieldId']==_0x2dd85d(0x3a1)?_0x45358b['startDateFieldId']:'',_0x5d1b56=typeof _0x45358b[_0x2dd85d(0x296)]==_0x2dd85d(0x3a1)?_0x45358b[_0x2dd85d(0x296)]:_0x3b357c,_0x292d34=new Set([_0x886fdd,_0x3b357c,_0x5d1b56][_0x2dd85d(0x13c)](_0x79e658=>_0x79e658&&Ha(_0x62ef41,_0xb16c4f,_0x79e658))),_0x172d59=Object['fromEntries'](_0x3be0d6[_0x2dd85d(0x167)](_0xadace5=>_0x292d34[_0x2dd85d(0x8e)](_0xadace5)||!Ha(_0x62ef41,_0xb16c4f,_0xadace5)?[]:[[_0xadace5,{'hidden':!0x0}]]));return{..._0x4a99d6,'config':{..._0x45358b,'titleFieldId':_0x886fdd},'fieldSettings':_0x172d59};}function Ha(_0x1d00bb,_0x3f000d,_0x4a835b){const _0x1dc917=_0x142fa8;return!!(_0x1d00bb[_0x1dc917(0x37f)][_0x4a835b]??_0x3f000d[_0x1dc917(0x3bb)](_0x2251e6=>_0x2251e6['id']===_0x4a835b))&&!0x0;}function Ua(_0x5ed21c,_0x2e345e){const _0x3bfa15=_0x142fa8;let _0x56e622=_0x2e345e?_0x5ed21c[_0x3bfa15(0x37f)][_0x2e345e]:null;return!!_0x56e622&&_0x56e622[_0x3bfa15(0x35c)]===_0x2348b1['Date']&&_0x56e622[_0x3bfa15(0x381)]!==!0x0&&_0x56e622[_0x3bfa15(0x231)]!==!0x0;}function Wa(_0x1155b4,_0x5781a4,_0x1c9755){const _0x16c53a=_0x142fa8;let _0x2507d2=new Set([...Object[_0x16c53a(0xd3)](_0x1155b4['fields']),..._0x5781a4[_0x16c53a(0x1bc)](_0xe54edf=>_0xe54edf['id'])]),_0x1f516f=_0x16c53a(0x303)+_0x1aa742(0x8);for(;_0x2507d2[_0x16c53a(0x8e)](_0x1f516f);)_0x1f516f=_0x16c53a(0x303)+_0x1aa742(0x8);return{'id':_0x1f516f,'name':ja(_0x1155b4,_0x1c9755,_0x5781a4),'type':_0x2348b1[_0x16c53a(0xff)],'config':{...Pa}};}const Ga={'id':_0x142fa8(0x427),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x2818eb,_0x9a30f9)=>{const _0x257832=_0x142fa8;if(!_0x9a30f9)return!0x1;let _0x48c91e=_0x2818eb['get'](_0x44289e),{unitId:_0x3190df,tableId:_0x5be30d,view:_0x41bb64,index:_0x124051}=_0x9a30f9,_0x139692=_0x48c91e['getUnit'](_0x3190df,_0x5b7c15['UNIVER_BASE']);if(!_0x139692||!$(_0x139692,_0x5be30d)||_0x139692[_0x257832(0x3ea)]()[_0x257832(0x3bd)][_0x5be30d]['views'][_0x41bb64['id']])return!0x1;let _0x40c2fb=_0x2818eb[_0x257832(0x12f)](_0x3c2684),_0x44fa41=_0x2818eb[_0x257832(0x12f)](_0x43263b),_0x28ffd0=_0x139692[_0x257832(0x3ea)](),_0x5abf00=Fa(_0x28ffd0,_0x5be30d,_0x41bb64,_0x124051),_0xa483f5=new z()[_0x257832(0x3f8)](_0x28ffd0,_0x5abf00),_0x29e843={'historyAction':_0x257832(0x3cd),'unitId':_0x3190df,'op':_0x5abf00,'viewType':_0x41bb64['type']},_0x49cc64={'historyAction':_0x257832(0x160),'unitId':_0x3190df,'op':_0xa483f5,'viewType':_0x41bb64[_0x257832(0x35c)]};return _0x40c2fb[_0x257832(0x2a9)](Q['id'],_0x29e843)?(_0x48c91e[_0x257832(0x1f3)](_0x3190df),_0x44fa41['pushUndoRedo']({'unitID':_0x3190df,'undoMutations':[{'id':Q['id'],'params':_0x49cc64}],'redoMutations':[{'id':Q['id'],'params':_0x29e843}]}),!0x0):!0x1;}},Ka={'id':_0x142fa8(0x135),'type':_0x3ba701['COMMAND'],'handler'(_0x4c25d8,_0x373124){const _0x5d52f3=_0x142fa8;if(!_0x373124)return!0x1;let _0x504128=_0x4c25d8[_0x5d52f3(0x12f)](_0x44289e),{unitId:_0x26f554,tableId:_0x18f23b,fieldId:_0x8b168}=_0x373124,_0x584d9d=_0x504128[_0x5d52f3(0x9c)](_0x26f554,_0x5b7c15['UNIVER_BASE']);if(!_0x584d9d)return!0x1;let _0x13cf1a=_0x584d9d[_0x5d52f3(0x3ea)](),_0x14665c=_0x13cf1a[_0x5d52f3(0x3bd)][_0x18f23b];if(!$(_0x584d9d,_0x18f23b,{'fieldIds':[_0x8b168]})||_0x14665c[_0x5d52f3(0x195)]===_0x8b168||_0x8b168===_0x48af21)return!0x1;let _0x3372cb=_0x4c25d8['get'](_0x3c2684),_0x8143fb=_0x4c25d8[_0x5d52f3(0x12f)](_0x43263b),_0xa049ae=new W()[_0x5d52f3(0xd8)](_0x13cf1a,_0x18f23b,_0x8b168),_0x58ccce=new z()[_0x5d52f3(0x3f8)](_0x13cf1a,_0xa049ae),_0x14ce83={'unitId':_0x26f554,'op':_0xa049ae},_0x1c1b0e={'unitId':_0x26f554,'op':_0x58ccce};return _0x3372cb[_0x5d52f3(0x2a9)](Q['id'],_0x14ce83)?(_0x504128[_0x5d52f3(0x1f3)](_0x26f554),_0x8143fb[_0x5d52f3(0x338)]({'unitID':_0x26f554,'undoMutations':[{'id':Q['id'],'params':_0x1c1b0e}],'redoMutations':[{'id':Q['id'],'params':_0x14ce83}]}),!0x0):!0x1;}},qa={'id':_0x142fa8(0x290),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x18eff5,_0x58cab2)=>{const _0x48da5c=_0x142fa8;if(!_0x58cab2)return!0x1;let _0xcf3fc5=_0x18eff5[_0x48da5c(0x12f)](_0x44289e),{unitId:_0x4d0ed6,tableId:_0x3631f6,recordId:_0x354144}=_0x58cab2,_0x1dbfa2=_0xcf3fc5[_0x48da5c(0x9c)](_0x4d0ed6,_0x5b7c15[_0x48da5c(0x324)]);if(!_0x1dbfa2||!$(_0x1dbfa2,_0x3631f6,{'recordIds':[_0x354144]}))return!0x1;let _0x4b0ef3=_0x18eff5[_0x48da5c(0x12f)](_0x3c2684),_0x3ed592=_0x18eff5['get'](_0x43263b),_0x191da5=_0x1dbfa2['getSnapshot'](),_0x50d2dc=et(_0x191da5[_0x48da5c(0x3bd)][_0x3631f6],[_0x354144]),_0x472879=new W(),_0x48f50b=new z(),_0xdea93f=_0x472879[_0x48da5c(0x1bf)](_0x191da5,_0x3631f6,_0x354144),_0x20f92e=_0x48f50b[_0x48da5c(0x121)](_0x191da5,_0xdea93f),_0x43be61=_0x472879['createDeleteRecordsUndoOp'](_0x191da5,_0x20f92e,_0x3631f6,[_0x354144]),_0x4ea842={'unitId':_0x4d0ed6,'op':_0xdea93f,'hierarchyChanges':_0x50d2dc,'source':_0x58cab2[_0x48da5c(0x96)]??'ui'},_0x323989={..._0x4ea842,'source':_0x48da5c(0xcc)},_0x466d5a={'unitId':_0x4d0ed6,'op':_0x43be61,'hierarchyChanges':_0x50d2dc[_0x48da5c(0x1bc)](_0x25a93c=>({..._0x25a93c,'oldParentRecordId':_0x25a93c[_0x48da5c(0x2e3)],'parentRecordId':_0x25a93c[_0x48da5c(0x116)]})),'source':_0x48da5c(0xeb)};return _0x4b0ef3[_0x48da5c(0x2a9)](Q['id'],_0x4ea842)?(_0xcf3fc5[_0x48da5c(0x1f3)](_0x4d0ed6),_0x3ed592[_0x48da5c(0x338)]({'unitID':_0x4d0ed6,'undoMutations':[{'id':Q['id'],'params':_0x466d5a}],'redoMutations':[{'id':Q['id'],'params':_0x323989}]}),!0x0):!0x1;}},Ja={'id':_0x142fa8(0x33a),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x5ce7bc,_0x35a268)=>{const _0x52eaeb=_0x142fa8;if(!_0x35a268)return!0x1;let _0x181875=_0x5ce7bc[_0x52eaeb(0x12f)](_0x44289e),{unitId:_0x4a89f7,tableId:_0x1efd09}=_0x35a268,_0x2ca8c5=_0x181875[_0x52eaeb(0x9c)](_0x4a89f7,_0x5b7c15['UNIVER_BASE']);if(!_0x2ca8c5||!$(_0x2ca8c5,_0x1efd09))return!0x1;let _0x1acf53=_0x5ce7bc[_0x52eaeb(0x12f)](_0x3c2684),_0x1286bf=_0x5ce7bc[_0x52eaeb(0x12f)](_0x43263b),_0x547a17=_0x2ca8c5[_0x52eaeb(0x3ea)](),_0xb4dd5a=He(_0x547a17,_0x1efd09);if(_0xb4dd5a[_0x52eaeb(0x7d)]>0x0)return console[_0x52eaeb(0x9f)](_0x52eaeb(0x169)+_0x1efd09+'\x22\x20is\x20referenced\x20by\x20'+_0xb4dd5a[_0x52eaeb(0x1bc)](_0x2431a3=>_0x2431a3['tableId']+'.'+_0x2431a3['fieldId'])['join'](',\x20')+'.'),!0x1;let _0x22d747=new W()[_0x52eaeb(0x20c)](_0x547a17,_0x1efd09),_0x10d3a9=new z()[_0x52eaeb(0x3f8)](_0x547a17,_0x22d747),_0x2d0050={'unitId':_0x4a89f7,'op':_0x22d747},_0x2965a2={'unitId':_0x4a89f7,'op':_0x10d3a9};return _0x1acf53[_0x52eaeb(0x2a9)](Q['id'],_0x2d0050)?(_0x181875[_0x52eaeb(0x1f3)](_0x4a89f7),_0x1286bf[_0x52eaeb(0x338)]({'unitID':_0x4a89f7,'undoMutations':[{'id':Q['id'],'params':_0x2965a2}],'redoMutations':[{'id':Q['id'],'params':_0x2d0050}]}),!0x0):!0x1;}},Ya={'id':_0x142fa8(0x150),'type':_0x3ba701['COMMAND'],'handler':(_0x512acb,_0x445cc3)=>{const _0x52f91f=_0x142fa8;if(!_0x445cc3)return!0x1;let _0x5bf641=_0x512acb[_0x52f91f(0x12f)](_0x44289e),{unitId:_0x43c12e,tableId:_0xf24d0,viewId:_0x1949b0}=_0x445cc3,_0x57ca75=_0x5bf641['getUnit'](_0x43c12e,_0x5b7c15[_0x52f91f(0x324)]);if(!_0x57ca75||!$(_0x57ca75,_0xf24d0,{'viewIds':[_0x1949b0]}))return!0x1;let _0x523d86=_0x512acb['get'](_0x3c2684),_0x3461e1=_0x512acb[_0x52f91f(0x12f)](_0x43263b),_0x3384b3=_0x57ca75[_0x52f91f(0x3ea)](),_0x41887e=_0x3384b3[_0x52f91f(0x3bd)][_0xf24d0][_0x52f91f(0x1df)][_0x1949b0][_0x52f91f(0x35c)],_0xf660c8=new W()[_0x52f91f(0x185)](_0x3384b3,_0xf24d0,_0x1949b0),_0x2803f3=new z()['invertOp'](_0x3384b3,_0xf660c8),_0x41b46f={'historyAction':_0x52f91f(0x160),'unitId':_0x43c12e,'op':_0xf660c8,'viewType':_0x41887e},_0x285112={'historyAction':_0x52f91f(0x3cd),'unitId':_0x43c12e,'op':_0x2803f3,'viewType':_0x41887e};return _0x523d86[_0x52f91f(0x2a9)](Q['id'],_0x41b46f)?(_0x5bf641[_0x52f91f(0x1f3)](_0x43c12e),_0x3461e1['pushUndoRedo']({'unitID':_0x43c12e,'undoMutations':[{'id':Q['id'],'params':_0x285112}],'redoMutations':[{'id':Q['id'],'params':_0x41b46f}]}),!0x0):!0x1;}},Xa={'id':_0x142fa8(0x2d6),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x123ccc,_0xa2385)=>{const _0x3c2865=_0x142fa8;if(!_0xa2385)return!0x1;let _0x4e0ecd=_0x123ccc['get'](_0x44289e),{unitId:_0x58fe5c,tableId:_0x1bcc25,sourceFieldId:_0x2386a9,field:_0x5b986f,index:_0x4138f9,viewIndexes:_0xa5d21f}=_0xa2385,_0x19fc17=_0x4e0ecd[_0x3c2865(0x9c)](_0x58fe5c,_0x5b7c15['UNIVER_BASE']);if(!_0x19fc17||!$(_0x19fc17,_0x1bcc25,{'fieldIds':[_0x2386a9]})||_0x2386a9===_0x48af21||_0x19fc17[_0x3c2865(0x3ea)]()[_0x3c2865(0x3bd)][_0x1bcc25][_0x3c2865(0x37f)][_0x5b986f['id']]||_0x4138f9===0x0||!ha(_0x19fc17,_0x1bcc25,_0x5b986f))return!0x1;let _0x2503c0=_0x123ccc[_0x3c2865(0x12f)](_0x3c2684),_0x265c2c=_0x123ccc['get'](_0x43263b),_0x4d86bc=_0x19fc17['getSnapshot'](),_0x5194e8=new W()[_0x3c2865(0x255)](_0x4d86bc,_0x1bcc25,_0x2386a9,{'field':_0x5b986f,'index':_0x4138f9,'viewIndexes':_0xa5d21f}),_0xc5d246=new z()['invertOp'](_0x4d86bc,_0x5194e8),_0x1e7da5={'unitId':_0x58fe5c,'op':_0x5194e8},_0x2d499e={'unitId':_0x58fe5c,'op':_0xc5d246};return _0x2503c0[_0x3c2865(0x2a9)](Q['id'],_0x1e7da5)?(_0x4e0ecd['focusUnit'](_0x58fe5c),_0x265c2c['pushUndoRedo']({'unitID':_0x58fe5c,'undoMutations':[{'id':Q['id'],'params':_0x2d499e}],'redoMutations':[{'id':Q['id'],'params':_0x1e7da5}]}),!0x0):!0x1;}},Za={'id':'base.command.duplicate-base-record','type':_0x3ba701['COMMAND'],'handler':(_0x32bd73,_0x55151a)=>{const _0x571aff=_0x142fa8;if(!_0x55151a)return!0x1;let _0x5a0579=_0x32bd73[_0x571aff(0x12f)](_0x44289e),{unitId:_0x270ab2,tableId:_0x4fb3cf,sourceRecordId:_0x4ac89c,record:_0x511c0e}=_0x55151a,_0x235f61=_0x5a0579['getUnit'](_0x270ab2,_0x5b7c15[_0x571aff(0x324)]);if(!_0x235f61||!$(_0x235f61,_0x4fb3cf,{'recordIds':[_0x4ac89c]})||!_a(_0x235f61,_0x4fb3cf,_0x511c0e))return!0x1;let _0x309f6d=_0x32bd73[_0x571aff(0x12f)](_0x3c2684),_0x276d8f=_0x32bd73[_0x571aff(0x12f)](_0x43263b),_0x1964f3=_0x235f61[_0x571aff(0x3ea)](),_0x6e91a7=va(_0x511c0e),_0x13f09e=Qe(_0x1964f3[_0x571aff(0x3bd)][_0x4fb3cf],[_0x6e91a7]),_0x113078=new W()[_0x571aff(0x24c)](_0x1964f3,_0x4fb3cf,_0x4ac89c,_0x6e91a7),_0x3cc27a=new z()['invertOp'](_0x1964f3,_0x113078),_0x4659bc={'unitId':_0x270ab2,'op':_0x113078,'hierarchyChanges':_0x13f09e[_0x571aff(0x7d)]?_0x13f09e:void 0x0,'source':_0x13f09e[_0x571aff(0x7d)]?_0x55151a['source']??'ui':void 0x0},_0x2fd84f={..._0x4659bc,'source':_0x13f09e[_0x571aff(0x7d)]?_0x571aff(0xcc):void 0x0},_0x292790={'unitId':_0x270ab2,'op':_0x3cc27a,'hierarchyChanges':_0x13f09e['length']?_0x13f09e[_0x571aff(0x1bc)](_0x53b7ae=>({..._0x53b7ae,'oldParentRecordId':_0x53b7ae['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x13f09e['length']?_0x571aff(0xeb):void 0x0};return _0x309f6d['syncExecuteCommand'](Q['id'],_0x4659bc)?(_0x5a0579[_0x571aff(0x1f3)](_0x270ab2),_0x276d8f[_0x571aff(0x338)]({'unitID':_0x270ab2,'undoMutations':[{'id':Q['id'],'params':_0x292790}],'redoMutations':[{'id':Q['id'],'params':_0x2fd84f}]}),!0x0):!0x1;}},Qa={'id':'base.command.ensure-base-temporal-view-date-fields','type':_0x3ba701[_0x142fa8(0x131)],'handler'(_0x22c7bf,_0xb9fa4a){const _0x5d0947=_0x142fa8;if(!_0xb9fa4a)return!0x1;let _0x242730=_0x22c7bf[_0x5d0947(0x12f)](_0x44289e),{unitId:_0x4b11b7,tableId:_0x451ea6,viewId:_0x8b3534,ensureEndDateField:_0x59db53}=_0xb9fa4a,_0x18fffb=_0x242730[_0x5d0947(0x9c)](_0x4b11b7,_0x5b7c15[_0x5d0947(0x324)]);if(!_0x18fffb||!$(_0x18fffb,_0x451ea6,{'viewIds':[_0x8b3534]}))return!0x1;let _0x57014=_0x18fffb['getSnapshot'](),_0x55730e=_0x57014[_0x5d0947(0x3bd)][_0x451ea6],_0x534ec6=_0x55730e==null?void 0x0:_0x55730e[_0x5d0947(0x1df)][_0x8b3534];if(!_0x55730e||!_0x534ec6||_0x534ec6[_0x5d0947(0x35c)]!==_0x5d0947(0x201)&&_0x534ec6[_0x5d0947(0x35c)]!==_0x5d0947(0x2da))return!0x1;let _0x37cfcb=Ia(_0x55730e,_0x534ec6,_0x59db53===!0x0);if(!_0x37cfcb[_0x5d0947(0x186)])return!0x1;let _0x52069a=_0x22c7bf[_0x5d0947(0x12f)](_0x3c2684),_0x520f26=_0x22c7bf[_0x5d0947(0x12f)](_0x43263b),_0x423ec9=new W(),_0x45a9eb=[..._0x37cfcb['fields'][_0x5d0947(0x1bc)](_0x241d3b=>_0x423ec9['createField'](_0x57014,_0xb9fa4a['tableId'],{'field':_0x241d3b})),$a([...eo(_0xb9fa4a['tableId'],_0xb9fa4a[_0x5d0947(0xa8)]),_0x5d0947(0xfa)],_0x534ec6[_0x5d0947(0xfa)],_0x37cfcb[_0x5d0947(0xfa)])];_0x37cfcb[_0x5d0947(0x143)]&&_0x45a9eb[_0x5d0947(0x319)]($a([...eo(_0xb9fa4a['tableId'],_0xb9fa4a[_0x5d0947(0xa8)]),'fieldOrder'],_0x534ec6['fieldOrder'],_0x37cfcb[_0x5d0947(0x143)]));let _0x347edc=R(_0x45a9eb),_0x19a7f0=new z()[_0x5d0947(0x3f8)](_0x57014,_0x347edc),_0x503e3b={'unitId':_0x4b11b7,'op':_0x347edc},_0x14755f={'unitId':_0x4b11b7,'op':_0x19a7f0};return _0x52069a[_0x5d0947(0x2a9)](Q['id'],_0x503e3b)?(_0x242730[_0x5d0947(0x1f3)](_0x4b11b7),_0x520f26['pushUndoRedo']({'unitID':_0x4b11b7,'undoMutations':[{'id':Q['id'],'params':_0x14755f}],'redoMutations':[{'id':Q['id'],'params':_0x503e3b}]}),!0x0):!0x1;}};function $a(_0x377092,_0x4130d1,_0x3da2b8){const _0x191b10=_0x142fa8;return _0x4130d1===void 0x0?_0x5846ca[_0x191b10(0xae)](_0x377092,_0x3da2b8):_0x5846ca[_0x191b10(0x2fd)](_0x377092,_0x4130d1,_0x3da2b8);}function eo(_0x3251d8,_0x1b0868){const _0x1d657f=_0x142fa8;return[_0x1d657f(0x3bd),_0x3251d8,_0x1d657f(0x1df),_0x1b0868];}const to={'id':'base.command.move-base-field','type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x4fe759,_0xd68d11)=>{const _0x12214c=_0x142fa8;if(!_0xd68d11)return!0x1;let _0x149461=_0x4fe759[_0x12214c(0x12f)](_0x44289e),{unitId:_0xc3f06f,tableId:_0x18d588,fieldId:_0x36e6d2,target:_0x40de74}=_0xd68d11,_0xf91556=_0x149461[_0x12214c(0x9c)](_0xc3f06f,_0x5b7c15['UNIVER_BASE']),_0x5e5bdd=_0x40de74['beforeFieldId']??_0x40de74['afterFieldId'];if(!_0xf91556||!!_0x40de74[_0x12214c(0x1da)]==!!_0x40de74['afterFieldId']||!_0x5e5bdd||_0x5e5bdd===_0x36e6d2||_0x36e6d2===_0x48af21||_0x40de74[_0x12214c(0x1da)]===_0x48af21||!$(_0xf91556,_0x18d588,{'fieldIds':[_0x36e6d2,_0x5e5bdd]}))return!0x1;let _0x18c323=_0x4fe759['get'](_0x3c2684),_0x207828=_0x4fe759[_0x12214c(0x12f)](_0x43263b),_0x55abf9=_0xf91556[_0x12214c(0x3ea)](),_0x42142b=new W()[_0x12214c(0x3e7)](_0x55abf9,_0x18d588,_0x36e6d2,_0x40de74),_0x5bbcb5=new z()[_0x12214c(0x3f8)](_0x55abf9,_0x42142b),_0x5ccee3={'unitId':_0xc3f06f,'op':_0x42142b},_0x8addcc={'unitId':_0xc3f06f,'op':_0x5bbcb5};return _0x18c323[_0x12214c(0x2a9)](Q['id'],_0x5ccee3)?(_0x149461[_0x12214c(0x1f3)](_0xc3f06f),_0x207828[_0x12214c(0x338)]({'unitID':_0xc3f06f,'undoMutations':[{'id':Q['id'],'params':_0x8addcc}],'redoMutations':[{'id':Q['id'],'params':_0x5ccee3}]}),!0x0):!0x1;}},no={'id':'base.command.move-base-hierarchy-record','type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x49f929,_0x2833d2)=>{const _0x39fd78=_0x142fa8;var _0x232406;if(!_0x2833d2)return!0x1;let {unitId:_0x124e48,tableId:_0x501473,recordId:_0x14036e,parentRecordId:_0x5b7954,orderKey:_0x38e307}=_0x2833d2,_0xe7bef2=_0x49f929[_0x39fd78(0x12f)](_0x44289e),_0x1bb5e9=_0xe7bef2[_0x39fd78(0x9c)](_0x124e48,_0x5b7c15['UNIVER_BASE']);if(!_0x1bb5e9||!$(_0x1bb5e9,_0x501473,{'recordIds':[_0x14036e,..._0x5b7954?[_0x5b7954]:[]]}))throw new P(_0x39fd78(0x14a));let _0x4dd768=_0x1bb5e9[_0x39fd78(0x3ea)](),_0x460154=_0x4dd768[_0x39fd78(0x3bd)][_0x501473],_0x3c7aaa=qe(_0x460154),_0x3b5c0f=_0x3c7aaa??_0x2833d2['fieldId']??Je(_0x460154);if(_0x3c7aaa&&_0x2833d2[_0x39fd78(0x3c1)]&&_0x2833d2[_0x39fd78(0x3c1)]!==_0x3c7aaa||_0x460154[_0x39fd78(0x37f)][_0x3b5c0f]&&!F(_0x460154,_0x3b5c0f))throw new P(_0x39fd78(0x371));let _0x5763bd=tt(_0x460154,_0x3b5c0f),_0x23b9e7=it(_0x5763bd,_0x14036e,_0x5b7954);if(!_0x23b9e7[_0x39fd78(0x266)])throw new P(_0x23b9e7[_0x39fd78(0xb3)]===_0x22b9ef[_0x39fd78(0x3f1)]?_0x39fd78(0x406):_0x23b9e7[_0x39fd78(0xb3)]===_0x22b9ef['Cycle']?_0x39fd78(0x3cb):'maxDepth');let _0x579620=_0x5763bd[_0x39fd78(0x22a)][_0x39fd78(0x12f)](_0x14036e)??null,_0x2b91dc=_0x460154[_0x39fd78(0x309)][_0x14036e][_0x39fd78(0xc0)];if(_0x579620===_0x5b7954&&(_0x38e307===void 0x0||_0x38e307===_0x2b91dc))return!0x0;let _0x1b746e=_0x579620!==_0x5b7954,_0x1c7738=_0x38e307!==void 0x0&&_0x38e307!==_0x2b91dc,_0x1dfe76=new W(),_0xce3228=[],_0x4ad90b=_0x460154[_0x39fd78(0x37f)][_0x3b5c0f],_0x25af1f=_0x1b746e&&(!_0x4ad90b||((_0x232406=N(_0x4ad90b))==null?void 0x0:_0x232406['relationRole'])!==_0x103858[_0x39fd78(0x100)])?_0x4ad90b?_0x1dfe76[_0x39fd78(0x14c)](_0x4dd768,_0x501473,_0x3b5c0f,{'config':{..._0x4ad90b[_0x39fd78(0xfa)],'relationRole':_0x103858[_0x39fd78(0x100)]}}):_0x49f929[_0x39fd78(0x12f)](Kr)[_0x39fd78(0x196)](_0x1bb5e9,_0x501473,Ye(_0x460154,_0x3b5c0f,_0x2833d2[_0x39fd78(0x3be)]),_0x460154[_0x39fd78(0x143)][_0x39fd78(0x7d)]):null;_0x25af1f&&_0xce3228['push'](_0x25af1f),_0x1b746e&&_0xce3228[_0x39fd78(0x319)](_0x1dfe76['updateCell'](_0x4dd768,_0x501473,_0x14036e,_0x3b5c0f,_0x5b7954?Re([_0x5b7954]):'')),_0x1c7738&&_0xce3228[_0x39fd78(0x319)](_0x1dfe76[_0x39fd78(0x2a4)](_0x4dd768,_0x501473,_0x14036e,_0x38e307));let _0x73e572=R(_0xce3228),_0x576516={'tableId':_0x501473,'fieldId':_0x3b5c0f,'recordId':_0x14036e,'oldParentRecordId':_0x579620,'parentRecordId':_0x5b7954},_0x128573={'unitId':_0x124e48,'op':_0x73e572,'trigger':no['id'],'hierarchyChanges':[_0x576516],'source':_0x2833d2[_0x39fd78(0x96)]??'ui'},_0x2df7b8={..._0x128573,'source':_0x39fd78(0xcc)};if(!_0x49f929[_0x39fd78(0x12f)](_0x3c2684)[_0x39fd78(0x2a9)](Q['id'],_0x128573))return!0x1;let _0x525320=_0x1bb5e9[_0x39fd78(0x3ea)](),_0x519c7d=[];_0x1b746e&&_0x519c7d['push'](ro(_0x525320,_0x4dd768,_0x501473,_0x14036e,_0x3b5c0f)),_0x1c7738&&_0x519c7d['push'](io(_0x525320,_0x4dd768,_0x501473,_0x14036e)),_0x25af1f&&_0x519c7d[_0x39fd78(0x319)](new z()[_0x39fd78(0x3f8)](_0x4dd768,_0x25af1f));let _0x5ba7d2={'unitId':_0x124e48,'op':R(_0x519c7d),'trigger':no['id'],'hierarchyChanges':[{..._0x576516,'oldParentRecordId':_0x5b7954,'parentRecordId':_0x579620}],'source':_0x39fd78(0xeb)};return _0xe7bef2[_0x39fd78(0x1f3)](_0x124e48),_0x49f929[_0x39fd78(0x12f)](_0x43263b)[_0x39fd78(0x338)]({'unitID':_0x124e48,'undoMutations':[{'id':Q['id'],'params':_0x5ba7d2}],'redoMutations':[{'id':Q['id'],'params':_0x2df7b8}]}),!0x0;}};function ro(_0x5e690f,_0x38991a,_0x1c4ffb,_0x47967a,_0x1561de){const _0x310f43=_0x142fa8;var _0x191fde,_0x5c770d,_0x3458ae,_0x58ff75,_0x362f2a,_0xd28903,_0x738700,_0x1d2aa3;let _0x1f2fdf=_0x5e690f[_0x310f43(0x3bd)][_0x1c4ffb],_0xaed8b6=_0x38991a['tables'][_0x1c4ffb],_0x3f00ca=(_0x191fde=_0x1f2fdf['rowIndex'])==null?void 0x0:_0x191fde[_0x47967a],_0x4375b3=(_0x5c770d=_0x1f2fdf[_0x310f43(0x425)])==null?void 0x0:_0x5c770d[_0x1561de],_0x559e70=(_0x3458ae=_0xaed8b6['rowIndex'])==null?void 0x0:_0x3458ae[_0x47967a],_0x24b853=(_0x58ff75=_0xaed8b6[_0x310f43(0x425)])==null?void 0x0:_0x58ff75[_0x1561de],_0x1cf74d=_0x3f00ca==null||_0x4375b3==null||(_0x362f2a=_0x1f2fdf[_0x310f43(0x3b1)])==null||(_0x362f2a=_0x362f2a[_0x3f00ca])==null?void 0x0:_0x362f2a[_0x4375b3],_0x180a7e=_0x559e70==null||_0x24b853==null||(_0xd28903=_0xaed8b6[_0x310f43(0x3b1)])==null||(_0xd28903=_0xd28903[_0x559e70])==null?void 0x0:_0xd28903[_0x24b853],_0x28254d=(_0x738700=_0x1f2fdf[_0x310f43(0x309)][_0x47967a])==null?void 0x0:_0x738700['values'][_0x1561de],_0xf1ba0e=(_0x1d2aa3=_0xaed8b6[_0x310f43(0x309)][_0x47967a])==null?void 0x0:_0x1d2aa3['values'][_0x1561de],_0x868744=[],_0x2d9ac1=ao(_0x3f00ca==null||_0x4375b3==null?null:U[_0x310f43(0x3b1)](_0x1c4ffb,_0x3f00ca,_0x4375b3),_0x1cf74d,_0x180a7e);_0x2d9ac1&&_0x868744[_0x310f43(0x319)](_0x2d9ac1);let _0x5b810e=ao(U[_0x310f43(0x346)](_0x1c4ffb,_0x47967a,_0x1561de),_0x28254d,_0xf1ba0e);return _0x5b810e&&_0x868744[_0x310f43(0x319)](_0x5b810e),R(_0x868744);}function io(_0x2ba0c9,_0x801e5d,_0x3a3b19,_0x3730ce){const _0x52f5c2=_0x142fa8;var _0x44b9b8,_0x517982;let _0x5cca8e=_0x2ba0c9[_0x52f5c2(0x3bd)][_0x3a3b19],_0x5c2270=_0x801e5d[_0x52f5c2(0x3bd)][_0x3a3b19];return R([ao([...U['record'](_0x3a3b19,_0x3730ce),_0x52f5c2(0xc0)],(_0x44b9b8=_0x5cca8e['records'][_0x3730ce])==null?void 0x0:_0x44b9b8[_0x52f5c2(0xc0)],(_0x517982=_0x5c2270[_0x52f5c2(0x309)][_0x3730ce])==null?void 0x0:_0x517982[_0x52f5c2(0xc0)]),ao([...U['table'](_0x3a3b19),_0x52f5c2(0x18c)],_0x5cca8e[_0x52f5c2(0x18c)],_0x5c2270['recordOrder'])][_0x52f5c2(0x13c)](_0x1dc56a=>!!_0x1dc56a));}function ao(_0x3a34ac,_0x38af60,_0x466b1f){const _0x2a7575=_0x142fa8;if(!_0x3a34ac||_0x38af60===void 0x0&&_0x466b1f===void 0x0)return null;let _0x5f0a87=_0x2258c6[_0x2a7575(0x10a)]();return _0x466b1f===void 0x0?_0x5f0a87[_0x2a7575(0xa6)](_0x3a34ac,_0x38af60):_0x38af60===void 0x0?_0x5f0a87[_0x2a7575(0xae)](_0x3a34ac,_0x466b1f):_0x5f0a87[_0x2a7575(0x2fd)](_0x3a34ac,_0x38af60,_0x466b1f);}const oo={'id':_0x142fa8(0x3a2),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x4ed8d6,_0x4522b4)=>{const _0x1ed81f=_0x142fa8;if(!_0x4522b4)return!0x1;let _0x52f98b=_0x4ed8d6[_0x1ed81f(0x12f)](_0x44289e),{unitId:_0x2cf866,tableId:_0x20f1bd,viewId:_0x56d301,target:_0x15bf4b}=_0x4522b4,_0x12ee95=_0x52f98b[_0x1ed81f(0x9c)](_0x2cf866,_0x5b7c15[_0x1ed81f(0x324)]),_0x177c7c=_0x15bf4b[_0x1ed81f(0x2ea)]??_0x15bf4b['afterViewId'];if(!_0x12ee95||!_0x177c7c||_0x177c7c===_0x56d301||!$(_0x12ee95,_0x20f1bd,{'viewIds':[_0x56d301,_0x177c7c]}))return!0x1;let _0x4bd443=_0x4ed8d6[_0x1ed81f(0x12f)](_0x3c2684),_0x44d301=_0x4ed8d6[_0x1ed81f(0x12f)](_0x43263b),_0x9ce4b7=_0x12ee95[_0x1ed81f(0x3ea)](),_0x18a9e1=new W()['moveView'](_0x9ce4b7,_0x20f1bd,_0x56d301,_0x15bf4b),_0x2851f7=new z()['invertOp'](_0x9ce4b7,_0x18a9e1),_0x449c4c={'unitId':_0x2cf866,'op':_0x18a9e1},_0x23b848={'unitId':_0x2cf866,'op':_0x2851f7};return _0x4bd443[_0x1ed81f(0x2a9)](Q['id'],_0x449c4c)?(_0x52f98b['focusUnit'](_0x2cf866),_0x44d301[_0x1ed81f(0x338)]({'unitID':_0x2cf866,'undoMutations':[{'id':Q['id'],'params':_0x23b848}],'redoMutations':[{'id':Q['id'],'params':_0x449c4c}]}),!0x0):!0x1;}},so={'id':_0x142fa8(0x128),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x40f86b,_0x2cca51)=>{const _0x52ec57=_0x142fa8;if(!_0x2cca51)return!0x1;let _0x4f61fc=_0x40f86b[_0x52ec57(0x12f)](_0x44289e),{unitId:_0x454e9d,tableId:_0x305153,name:_0x45f8e2}=_0x2cca51,_0x36457=_0x4f61fc[_0x52ec57(0x9c)](_0x454e9d,_0x5b7c15[_0x52ec57(0x324)]);if(!_0x36457||!$(_0x36457,_0x305153)||!Oa(_0x36457[_0x52ec57(0x3ea)](),_0x45f8e2,_0x305153)[_0x52ec57(0x266)])return!0x1;let _0x27adca=_0x40f86b['get'](_0x3c2684),_0x37faca=_0x40f86b['get'](_0x43263b),_0x3fc01a=_0x36457[_0x52ec57(0x3ea)](),_0x517d81=new W()[_0x52ec57(0xc2)](_0x3fc01a,_0x305153,_0x45f8e2),_0x505fc4=new z()['invertOp'](_0x3fc01a,_0x517d81),_0x2a85fe={'unitId':_0x454e9d,'op':_0x517d81},_0x5e0eba={'unitId':_0x454e9d,'op':_0x505fc4};return _0x27adca[_0x52ec57(0x2a9)](Q['id'],_0x2a85fe)?(_0x4f61fc[_0x52ec57(0x1f3)](_0x454e9d),_0x37faca['pushUndoRedo']({'unitID':_0x454e9d,'undoMutations':[{'id':Q['id'],'params':_0x5e0eba}],'redoMutations':[{'id':Q['id'],'params':_0x2a85fe}]}),!0x0):!0x1;}},co={'id':_0x142fa8(0x398),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x563ea0,_0x368d6f)=>{const _0x2a7116=_0x142fa8;if(!_0x368d6f)return!0x1;let _0x48e93a=_0x563ea0['get'](_0x44289e),{unitId:_0x4c4348,tableId:_0x19cddf,viewId:_0x5c5de7,name:_0x273c06}=_0x368d6f,_0x11170d=_0x48e93a[_0x2a7116(0x9c)](_0x4c4348,_0x5b7c15['UNIVER_BASE']);if(!_0x11170d||!$(_0x11170d,_0x19cddf,{'viewIds':[_0x5c5de7]}))return!0x1;let _0x4fc295=_0x563ea0[_0x2a7116(0x12f)](_0x3c2684),_0x49dc33=_0x563ea0[_0x2a7116(0x12f)](_0x43263b),_0x27d55d=_0x11170d[_0x2a7116(0x3ea)](),_0x187fd3=new W()[_0x2a7116(0x2e2)](_0x27d55d,_0x19cddf,_0x5c5de7,_0x273c06),_0x1bb106=new z()[_0x2a7116(0x3f8)](_0x27d55d,_0x187fd3),_0x350a0c={'unitId':_0x4c4348,'op':_0x187fd3},_0x13d9e0={'unitId':_0x4c4348,'op':_0x1bb106};return _0x4fc295[_0x2a7116(0x2a9)](Q['id'],_0x350a0c)?(_0x48e93a[_0x2a7116(0x1f3)](_0x4c4348),_0x49dc33['pushUndoRedo']({'unitID':_0x4c4348,'undoMutations':[{'id':Q['id'],'params':_0x13d9e0}],'redoMutations':[{'id':Q['id'],'params':_0x350a0c}]}),!0x0):!0x1;}},lo={'id':_0x142fa8(0x129),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x3d414d,_0x5f5abb)=>{const _0x9e7cf4=_0x142fa8;if(!_0x5f5abb)return!0x1;let _0x4efcd1=_0x3d414d['get'](_0x44289e),{unitId:_0x44a563,tableId:_0xa24c38,viewId:_0x306826,fieldId:_0x225749}=_0x5f5abb,_0x30c040=_0x4efcd1[_0x9e7cf4(0x9c)](_0x44a563,_0x5b7c15[_0x9e7cf4(0x324)]);if(!_0x30c040||!$(_0x30c040,_0xa24c38,{'viewIds':[_0x306826],'fieldIds':[_0x225749]}))return!0x1;let _0x29fcda=_0x3d414d[_0x9e7cf4(0x12f)](_0x3c2684),_0x53714f=_0x3d414d[_0x9e7cf4(0x12f)](_0x43263b),_0x43c057=_0x30c040[_0x9e7cf4(0x3ea)](),_0x1bbbec=new W()['updateViewConfig'](_0x43c057,_0xa24c38,_0x306826,{'groupFieldId':_0x225749}),_0x34eeb3=new z()[_0x9e7cf4(0x3f8)](_0x43c057,_0x1bbbec),_0x1045b6={'unitId':_0x44a563,'op':_0x1bbbec},_0x454d5d={'unitId':_0x44a563,'op':_0x34eeb3};return _0x29fcda[_0x9e7cf4(0x2a9)](Q['id'],_0x1045b6)?(_0x4efcd1[_0x9e7cf4(0x1f3)](_0x44a563),_0x53714f[_0x9e7cf4(0x338)]({'unitID':_0x44a563,'undoMutations':[{'id':Q['id'],'params':_0x454d5d}],'redoMutations':[{'id':Q['id'],'params':_0x1045b6}]}),!0x0):!0x1;}},uo={'id':_0x142fa8(0x171),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x269d85,_0x2868b2)=>{const _0x36b137=_0x142fa8;if(!_0x2868b2)return!0x1;let _0x494a00=_0x269d85[_0x36b137(0x12f)](_0x44289e),_0x38a2c5=_0x494a00['getUnit'](_0x2868b2[_0x36b137(0x22b)],_0x5b7c15[_0x36b137(0x324)]);if(!_0x38a2c5)return!0x1;let _0x7a2882=_0x38a2c5[_0x36b137(0x3ea)]()['name'];if(_0x7a2882===_0x2868b2[_0x36b137(0x112)])return!0x0;let _0x21c4dd=new W(),_0x56c9a5=new z(),_0x5d007c=[],_0x358c81=[],_0x1cfa8a=[_0x38a2c5,..._0x494a00['getAllUnitsForType'](_0x5b7c15['UNIVER_BASE'])['filter'](_0x24b5f4=>_0x24b5f4['getUnitId']()!==_0x2868b2[_0x36b137(0x22b)])];for(let _0x3c0b75 of _0x1cfa8a){let _0x1f8561=_0x3c0b75[_0x36b137(0x3ea)](),_0x31841c=_0x3c0b75===_0x38a2c5?_0x21c4dd[_0x36b137(0xd7)](_0x1f8561,_0x2868b2[_0x36b137(0x112)]):_0x21c4dd[_0x36b137(0x133)](_0x1f8561,_0x7a2882,_0x2868b2[_0x36b137(0x112)]);_0x31841c&&(_0x5d007c['push']({'id':Q['id'],'params':{'unitId':_0x3c0b75[_0x36b137(0xb2)](),'op':_0x31841c,'trigger':uo['id']}}),_0x358c81['unshift']({'id':Q['id'],'params':{'unitId':_0x3c0b75[_0x36b137(0xb2)](),'op':_0x56c9a5[_0x36b137(0x3f8)](_0x1f8561,_0x31841c),'trigger':uo['id']}}));}let _0x192839=_0x269d85[_0x36b137(0x12f)](_0x3c2684),_0x135cdc=_0x269d85[_0x36b137(0x12f)](_0x43263b),_0x1f10f1=_0x135cdc[_0x36b137(0x364)](_0x2868b2[_0x36b137(0x22b)]);try{return _0x11015e(_0x5d007c,_0x192839)[_0x36b137(0x362)]?(_0x494a00[_0x36b137(0x1f3)](_0x2868b2[_0x36b137(0x22b)]),_0x135cdc[_0x36b137(0x338)]({'unitID':_0x2868b2[_0x36b137(0x22b)],'undoMutations':_0x358c81,'redoMutations':_0x5d007c}),!0x0):!0x1;}finally{_0x1f10f1[_0x36b137(0x3fa)]();}}},fo={'type':_0x3ba701[_0x142fa8(0x131)],'id':_0x142fa8(0x12e),async 'handler'(_0x2fb8b4,_0x3683d1){const _0x411ab1=_0x142fa8;if(!_0x3683d1||!Tr[_0x411ab1(0x8b)](_0x3683d1['action'])||_0x3683d1[_0x411ab1(0x311)]!==_0x3683d1[_0x411ab1(0x22b)]&&_0x3683d1[_0x411ab1(0x358)]!==_0x2a0fb0[_0x411ab1(0x2c1)]||_0x3683d1['policy']&&(![_0x411ab1(0x423),_0x411ab1(0x396),_0x411ab1(0x33b)][_0x411ab1(0x8b)](_0x3683d1[_0x411ab1(0xce)][_0x411ab1(0x2fb)])||_0x3683d1['policy'][_0x411ab1(0x8a)][_0x411ab1(0x3b4)](_0x278f17=>!Tr[_0x411ab1(0x8b)](_0x278f17['action'])||_0x3683d1[_0x411ab1(0x311)]!==_0x3683d1[_0x411ab1(0x22b)]&&_0x278f17[_0x411ab1(0x358)]!==_0x2a0fb0['Edit'])))return!0x1;let _0x11bc6f=Pr(_0x3683d1[_0x411ab1(0x22b)],_0x3683d1[_0x411ab1(0x311)],_0x3683d1[_0x411ab1(0x358)]),_0x3c2845={'unitId':_0x3683d1[_0x411ab1(0x22b)],'objectId':_0x3683d1['objectId'],'objectType':_0x11bc6f['type']},_0x5ac577=_0x2fb8b4[_0x411ab1(0x12f)](_0x421939);return _0x3683d1[_0x411ab1(0x31e)]?await _0x5ac577[_0x411ab1(0x31e)](_0x3c2845):_0x3683d1[_0x411ab1(0xce)]?await _0x5ac577[_0x411ab1(0x84)](_0x3c2845,_0x3683d1['policy']):await _0x5ac577[_0x411ab1(0x348)](_0x3c2845,_0x11bc6f,_0x3683d1[_0x411ab1(0x177)]),!0x0;}},po={'type':_0x3ba701[_0x142fa8(0x131)],'id':_0x142fa8(0x24b),async 'handler'(_0x473b4c,_0x3ddc8b){const _0x41b7f4=_0x142fa8;if(!(_0x3ddc8b!=null&&_0x3ddc8b[_0x41b7f4(0x22b)])||!Array[_0x41b7f4(0x8f)](_0x3ddc8b[_0x41b7f4(0x8d)])||!_0x3ddc8b['changes'][_0x41b7f4(0x7d)]||_0x3ddc8b['changes']['some'](_0x431755=>!(_0x431755!=null&&_0x431755['objectId'])||_0x431755['objectId']===_0x3ddc8b[_0x41b7f4(0x22b)]||_0x431755['policy']!==null&&(!_0x431755['policy']||![_0x41b7f4(0x423),_0x41b7f4(0x396),_0x41b7f4(0x33b)][_0x41b7f4(0x8b)](_0x431755[_0x41b7f4(0xce)][_0x41b7f4(0x2fb)])||!Array[_0x41b7f4(0x8f)](_0x431755[_0x41b7f4(0xce)][_0x41b7f4(0x1b1)])||!Array['isArray'](_0x431755['policy'][_0x41b7f4(0x8a)])||_0x431755[_0x41b7f4(0xce)][_0x41b7f4(0x8a)][_0x41b7f4(0x3b4)](_0x2340ba=>_0x2340ba[_0x41b7f4(0x358)]!==_0x2a0fb0['Edit']))))throw Error(_0x41b7f4(0x166));return _0x473b4c[_0x41b7f4(0x12f)](_0x421939)[_0x41b7f4(0x17c)](_0x3ddc8b[_0x41b7f4(0x8d)][_0x41b7f4(0x1bc)](_0x4b1bc9=>{const _0x16d631=_0x41b7f4;let _0x21ac0d=Pr(_0x3ddc8b[_0x16d631(0x22b)],_0x4b1bc9[_0x16d631(0x311)],_0x2a0fb0['Edit']);return{'unitId':_0x3ddc8b['unitId'],'objectId':_0x4b1bc9[_0x16d631(0x311)],'objectType':_0x21ac0d['type'],'policy':_0x4b1bc9[_0x16d631(0xce)]};}));}};function mo(_0x14b1bc,_0x23c3d9){const _0x1819bb=_0x142fa8;let _0x3ab8ea=L(_0x3e4e1e[_0x1819bb(0x31f)](_0x14b1bc)),_0xf74cb=new Map();return _0x23c3d9[_0x1819bb(0x2e7)](_0x1f1f93=>{const _0x4b90da=_0x1819bb;var _0x6833fb,_0x9fa657;let _0x15c3ef=_0x4b90da(0x1ee)in _0x1f1f93?_0x1f1f93[_0x4b90da(0x1ee)]:(_0x6833fb=_0x3ab8ea[_0x4b90da(0x3f0)])==null?void 0x0:_0x6833fb[_0x1f1f93['row']],_0x3c43b9=_0x4b90da(0x3c1)in _0x1f1f93?_0x1f1f93['fieldId']:(_0x9fa657=_0x3ab8ea['colId'])==null?void 0x0:_0x9fa657[_0x1f1f93[_0x4b90da(0x1c6)]],_0x3b24f4=_0x3c43b9?_0x3ab8ea[_0x4b90da(0x37f)][_0x3c43b9]:void 0x0;if(!_0x15c3ef||!_0x3c43b9||!_0x3b24f4||!_0x3ab8ea[_0x4b90da(0x309)][_0x15c3ef])return;let _0x3b7241=xt(_0x1f1f93[_0x4b90da(0x177)],_0x3b24f4),_0xeeb794=wt(_0x1f1f93[_0x4b90da(0x177)],_0x3b7241,_0x3b24f4,_0x3ab8ea,_0x15c3ef),_0x49d1bc=_0xf74cb['get'](_0x15c3ef)??{};_0x49d1bc[_0x3c43b9]=_0xeeb794,_0xf74cb['set'](_0x15c3ef,_0x49d1bc);}),[..._0xf74cb]['map'](([_0x5aeea5,_0x175ae8])=>({'recordId':_0x5aeea5,'values':_0x175ae8}));}const ho={'id':_0x142fa8(0x2f2),'type':_0x3ba701['COMMAND'],'handler'(_0x4a4f3d,_0x364487){const _0x15ac48=_0x142fa8;if(!_0x364487)return!0x1;let _0x157a11=_0x4a4f3d[_0x15ac48(0x12f)](_0x44289e),{unitId:_0x3b0a5e,tableId:_0x3a85c8,patches:_0xc5c458}=_0x364487,_0x37beb2=_0x157a11['getUnit'](_0x3b0a5e,_0x5b7c15[_0x15ac48(0x324)]);if(!_0x37beb2||!$(_0x37beb2,_0x3a85c8))return!0x1;let _0x5968fc=_0x4a4f3d[_0x15ac48(0x12f)](_0x3c2684),_0x2e31fb=_0x4a4f3d[_0x15ac48(0x12f)](_0x43263b),_0x437858=_0x37beb2[_0x15ac48(0x3ea)](),_0x35b9b7=L(_0x437858[_0x15ac48(0x3bd)][_0x3a85c8]),_0x81a3be=_0xc5c458[_0x15ac48(0x1bc)](_0xeb6260=>{const _0x5a99a0=_0x15ac48;var _0x211592;return _0x5a99a0(0x1ee)in _0xeb6260?_0xeb6260['recordId']:(_0x211592=_0x35b9b7['rowId'])==null?void 0x0:_0x211592[_0xeb6260['row']];})[_0x15ac48(0x13c)](_0x49de99=>_0x49de99!=null),_0x240895=_0xc5c458[_0x15ac48(0x1bc)](_0x30e14a=>{const _0x3b724b=_0x15ac48;var _0xd7f8c8;return _0x3b724b(0x3c1)in _0x30e14a?_0x30e14a[_0x3b724b(0x3c1)]:(_0xd7f8c8=_0x35b9b7[_0x3b724b(0xf8)])==null?void 0x0:_0xd7f8c8[_0x30e14a[_0x3b724b(0x1c6)]];})[_0x15ac48(0x13c)](_0x42dde2=>_0x42dde2!=null);if(_0x81a3be['length']!==_0xc5c458[_0x15ac48(0x7d)]||_0x240895[_0x15ac48(0x7d)]!==_0xc5c458['length']||!$(_0x37beb2,_0x3a85c8,{'recordIds':_0x81a3be,'fieldIds':_0x240895})||_0xc5c458['some']((_0x34d768,_0x4be4d9)=>!ga(_0x37beb2,_0x3a85c8,_0x240895[_0x4be4d9],_0x34d768[_0x15ac48(0x177)])))return!0x1;let _0x412cd8=Ze(_0x35b9b7,mo(_0x35b9b7,_0xc5c458)),_0x2ae23b=_0xc5c458['flatMap'](_0x98937b=>{const _0x53fe40=_0x15ac48;var _0x2a78b8,_0x42b33f;if(_0x53fe40(0x1ae)in _0x98937b)return[_0x98937b];let _0x399f81=(_0x2a78b8=_0x35b9b7[_0x53fe40(0x276)])==null?void 0x0:_0x2a78b8[_0x98937b['recordId']],_0x489e80=(_0x42b33f=_0x35b9b7[_0x53fe40(0x425)])==null?void 0x0:_0x42b33f[_0x98937b[_0x53fe40(0x3c1)]];return _0x399f81==null||_0x489e80==null?[]:[{'row':_0x399f81,'col':_0x489e80,'value':_0x98937b[_0x53fe40(0x177)]}];}),_0xe89cd4=new W()[_0x15ac48(0x2c5)](_0x437858,_0x3a85c8,_0x2ae23b),_0x5e4ed6=new z()[_0x15ac48(0x3f8)](_0x437858,_0xe89cd4),_0x5e0fba={'unitId':_0x3b0a5e,'op':_0xe89cd4,'trigger':_0x412cd8[_0x15ac48(0x7d)]?ho['id']:void 0x0,'hierarchyChanges':_0x412cd8[_0x15ac48(0x7d)]?_0x412cd8:void 0x0,'source':_0x412cd8[_0x15ac48(0x7d)]?_0x15ac48(0xcc):void 0x0},_0x30927e={'unitId':_0x3b0a5e,'op':_0x5e4ed6,'trigger':_0x412cd8[_0x15ac48(0x7d)]?ho['id']:void 0x0,'hierarchyChanges':_0x412cd8[_0x15ac48(0x7d)]?_0x412cd8[_0x15ac48(0x1bc)](_0x1dee2d=>({..._0x1dee2d,'oldParentRecordId':_0x1dee2d[_0x15ac48(0x2e3)],'parentRecordId':_0x1dee2d[_0x15ac48(0x116)]})):void 0x0,'source':_0x412cd8[_0x15ac48(0x7d)]?_0x15ac48(0xeb):void 0x0},_0x3ab1e5={..._0x5e0fba,'source':_0x412cd8[_0x15ac48(0x7d)]?_0x364487[_0x15ac48(0x96)]??'ui':void 0x0};return _0x5968fc[_0x15ac48(0x2a9)](Q['id'],_0x3ab1e5)?(_0x157a11[_0x15ac48(0x1f3)](_0x3b0a5e),_0x2e31fb[_0x15ac48(0x338)]({'unitID':_0x3b0a5e,'undoMutations':[{'id':Q['id'],'params':_0x30927e}],'redoMutations':[{'id':Q['id'],'params':_0x5e0fba}]}),!0x0):!0x1;}},go={'id':_0x142fa8(0x215),'type':_0x3ba701[_0x142fa8(0x131)],'handler'(_0x4ac3e7,_0x403317){const _0x1902c2=_0x142fa8;if(!_0x403317)return!0x1;let _0xf0ae5a=_0x4ac3e7['get'](_0x44289e),{unitId:_0x14cd47,tableId:_0xe2e8ed,patches:_0x2ae6b9}=_0x403317,_0x4a5a91=_0xf0ae5a[_0x1902c2(0x9c)](_0x14cd47,_0x5b7c15[_0x1902c2(0x324)]),_0x17c43f=_0x2ae6b9[_0x1902c2(0x1bc)](_0x59655a=>_0x59655a['recordId']),_0x570eae=_0x2ae6b9[_0x1902c2(0x167)](_0x1f5db3=>Object[_0x1902c2(0xd3)](_0x1f5db3[_0x1902c2(0x307)]));if(!_0x4a5a91||!$(_0x4a5a91,_0xe2e8ed,{'recordIds':_0x17c43f,'fieldIds':_0x570eae})||_0x2ae6b9[_0x1902c2(0x3b4)](_0x245407=>Object[_0x1902c2(0x274)](_0x245407[_0x1902c2(0x307)])[_0x1902c2(0x3b4)](([_0x50eaf3,_0x1af180])=>!ga(_0x4a5a91,_0xe2e8ed,_0x50eaf3,_0x1af180))))return!0x1;let _0x130f89=Ze(_0x4a5a91[_0x1902c2(0x3ea)]()['tables'][_0xe2e8ed],_0x2ae6b9),_0x4ab09d=_0x4ac3e7[_0x1902c2(0x12f)](_0x3c2684),_0x357c92=_0x4ac3e7[_0x1902c2(0x12f)](_0x43263b),_0x23c47e=_0x4ac3e7[_0x1902c2(0x12f)](Kr)[_0x1902c2(0x2d9)](_0x4a5a91,_0xe2e8ed,_0x2ae6b9),_0x33f12f=new z()[_0x1902c2(0x3f8)](_0x4a5a91[_0x1902c2(0x3ea)](),_0x23c47e),_0x136ef1={'unitId':_0x14cd47,'op':_0x23c47e,'trigger':_0x130f89[_0x1902c2(0x7d)]?go['id']:void 0x0,'hierarchyChanges':_0x130f89[_0x1902c2(0x7d)]?_0x130f89:void 0x0,'source':_0x130f89[_0x1902c2(0x7d)]?_0x403317[_0x1902c2(0x96)]??'ui':void 0x0},_0x3f0386={..._0x136ef1,'source':_0x130f89[_0x1902c2(0x7d)]?_0x1902c2(0xcc):void 0x0},_0x56d910={'unitId':_0x14cd47,'op':_0x33f12f,'trigger':_0x130f89[_0x1902c2(0x7d)]?go['id']:void 0x0,'hierarchyChanges':_0x130f89['length']?_0x130f89[_0x1902c2(0x1bc)](_0xdff4f=>({..._0xdff4f,'oldParentRecordId':_0xdff4f[_0x1902c2(0x2e3)],'parentRecordId':_0xdff4f[_0x1902c2(0x116)]})):void 0x0,'source':_0x130f89[_0x1902c2(0x7d)]?_0x1902c2(0xeb):void 0x0};return _0x4ab09d['syncExecuteCommand'](Q['id'],_0x136ef1)?(_0xf0ae5a[_0x1902c2(0x1f3)](_0x14cd47),_0x357c92[_0x1902c2(0x338)]({'unitID':_0x14cd47,'undoMutations':[{'id':Q['id'],'params':_0x56d910}],'redoMutations':[{'id':Q['id'],'params':_0x3f0386}]}),!0x0):!0x1;}},_o={'id':_0x142fa8(0x333),'type':_0x3ba701['COMMAND'],'handler':(_0x4a5325,_0x40eb1f)=>{const _0x4888a6=_0x142fa8;if(!_0x40eb1f)return!0x1;let {unitId:_0x33edeb,tableId:_0x54c67a,fieldId:_0x37c29b}=_0x40eb1f,_0x44628a=_0x4a5325[_0x4888a6(0x12f)](_0x44289e),_0x1e2035=_0x44628a[_0x4888a6(0x9c)](_0x33edeb,_0x5b7c15[_0x4888a6(0x324)]);if(!_0x1e2035||!$(_0x1e2035,_0x54c67a))return!0x1;let _0x39ed58=_0x1e2035[_0x4888a6(0x3ea)](),_0x455812=_0x39ed58[_0x4888a6(0x3bd)][_0x54c67a];if(_0x37c29b!==null&&!F(_0x455812,_0x37c29b))throw new P(_0x4888a6(0x371));if(qe(_0x455812)===_0x37c29b)return!0x0;let _0x3a7fe6=new W(),_0x44db85=R(Object[_0x4888a6(0x307)](_0x455812[_0x4888a6(0x37f)])['flatMap'](_0xe2268d=>{const _0x375421=_0x4888a6;if(!F(_0x455812,_0xe2268d['id']))return[];let _0x27bc7b=N(_0xe2268d);if(!_0x27bc7b)return[];let _0x10e2be=_0xe2268d['id']===_0x37c29b;if(_0x27bc7b[_0x375421(0x247)]===_0x103858[_0x375421(0x100)]===_0x10e2be)return[];let _0x4389be={..._0xe2268d[_0x375421(0xfa)],'targetTableId':_0x27bc7b[_0x375421(0x242)],'multiple':_0x27bc7b[_0x375421(0x3fc)]};return _0x10e2be?_0x4389be[_0x375421(0x247)]=_0x103858[_0x375421(0x100)]:delete _0x4389be[_0x375421(0x247)],[_0x3a7fe6[_0x375421(0x14c)](_0x39ed58,_0x54c67a,_0xe2268d['id'],{'config':_0x4389be})];})),_0x5b77b1=new z()[_0x4888a6(0x3f8)](_0x39ed58,_0x44db85),_0x446cb4={'unitId':_0x33edeb,'op':_0x44db85},_0x441f99={'unitId':_0x33edeb,'op':_0x5b77b1};return _0x4a5325['get'](_0x3c2684)['syncExecuteCommand'](Q['id'],_0x446cb4)?(_0x44628a[_0x4888a6(0x1f3)](_0x33edeb),_0x4a5325['get'](_0x43263b)[_0x4888a6(0x338)]({'unitID':_0x33edeb,'undoMutations':[{'id':Q['id'],'params':_0x441f99}],'redoMutations':[{'id':Q['id'],'params':_0x446cb4}]}),!0x0):!0x1;}},vo={'id':'base.command.set-base-view-field-order','type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x214145,_0x29823e)=>{const _0x5ccebf=_0x142fa8;if(!_0x29823e)return!0x1;let _0x494ac6=_0x214145[_0x5ccebf(0x12f)](_0x44289e),{unitId:_0x3d7182,tableId:_0x2833ce,viewId:_0xc88f0d,fieldId:_0x25c9af,target:_0x4b34f5}=_0x29823e,_0x293064=_0x494ac6[_0x5ccebf(0x9c)](_0x3d7182,_0x5b7c15[_0x5ccebf(0x324)]),_0x24ee6f=_0x4b34f5[_0x5ccebf(0x1da)]??_0x4b34f5[_0x5ccebf(0x95)];if(!_0x293064||!_0x24ee6f||_0x24ee6f===_0x25c9af||!$(_0x293064,_0x2833ce,{'viewIds':[_0xc88f0d],'fieldIds':[_0x25c9af,_0x24ee6f]}))return!0x1;let _0x4447b0=_0x293064[_0x5ccebf(0x3ea)]()['tables'][_0x2833ce],_0x48f1b1=_0x4447b0[_0x5ccebf(0x37f)][_0x25c9af],_0x4b483f=_0x4447b0['fields'][_0x24ee6f];if(_0x48f1b1[_0x5ccebf(0x231)]===!0x0||_0x48f1b1['type']===_0x2348b1['RecordId']||_0x4b483f[_0x5ccebf(0x231)]===!0x0||_0x4b483f[_0x5ccebf(0x35c)]===_0x2348b1[_0x5ccebf(0x416)])return!0x1;let _0x577218=_0x214145[_0x5ccebf(0x12f)](_0x3c2684),_0x38f37a=_0x214145[_0x5ccebf(0x12f)](_0x43263b),_0x1a9330=_0x293064[_0x5ccebf(0x3ea)](),_0x172e68=new W()[_0x5ccebf(0x433)](_0x1a9330,_0x2833ce,_0xc88f0d,_0x25c9af,_0x4b34f5),_0x35fd2a=new z()[_0x5ccebf(0x3f8)](_0x1a9330,_0x172e68),_0x415ca6={'unitId':_0x3d7182,'op':_0x172e68},_0x5d7ad5={'unitId':_0x3d7182,'op':_0x35fd2a};return _0x577218[_0x5ccebf(0x2a9)](Q['id'],_0x415ca6)?(_0x494ac6['focusUnit'](_0x3d7182),_0x38f37a['pushUndoRedo']({'unitID':_0x3d7182,'undoMutations':[{'id':Q['id'],'params':_0x5d7ad5}],'redoMutations':[{'id':Q['id'],'params':_0x415ca6}]}),!0x0):!0x1;}},yo={'id':_0x142fa8(0x378),'type':_0x3ba701['COMMAND'],'handler'(_0x43e904,_0x2ebf5b){const _0x311728=_0x142fa8;if(!_0x2ebf5b)return!0x1;let _0x5c73d0=_0x43e904[_0x311728(0x12f)](_0x44289e),{unitId:_0x463269,tableId:_0x541ef3,viewId:_0x36265a,fieldId:_0x332865,visible:_0x143580}=_0x2ebf5b,_0x3675ac=_0x5c73d0[_0x311728(0x9c)](_0x463269,_0x5b7c15['UNIVER_BASE']);if(!_0x3675ac||!$(_0x3675ac,_0x541ef3,{'viewIds':[_0x36265a],'fieldIds':[_0x332865]}))return!0x1;let _0x5d15e6=_0x3675ac['getSnapshot']()[_0x311728(0x3bd)][_0x541ef3][_0x311728(0x37f)][_0x332865];if(_0x5d15e6[_0x311728(0x231)]===!0x0||_0x5d15e6[_0x311728(0x35c)]===_0x2348b1[_0x311728(0x416)])return!0x1;let _0x4e8d35=_0x43e904[_0x311728(0x12f)](_0x3c2684),_0x2270cf=_0x43e904['get'](_0x43263b),_0x37bfbd=_0x3675ac[_0x311728(0x3ea)](),_0x406147=new W()[_0x311728(0x392)](_0x37bfbd,_0x541ef3,_0x36265a,_0x332865,_0x143580),_0x45a114=new z()[_0x311728(0x3f8)](_0x37bfbd,_0x406147),_0x5414ff={'unitId':_0x463269,'op':_0x406147},_0x5577c0={'unitId':_0x463269,'op':_0x45a114};return _0x4e8d35[_0x311728(0x2a9)](Q['id'],_0x5414ff)?(_0x5c73d0['focusUnit'](_0x463269),_0x2270cf[_0x311728(0x338)]({'unitID':_0x463269,'undoMutations':[{'id':Q['id'],'params':_0x5577c0}],'redoMutations':[{'id':Q['id'],'params':_0x5414ff}]}),!0x0):!0x1;}},bo={'id':_0x142fa8(0x1b4),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x23f789,_0x5053a6)=>{const _0x561c36=_0x142fa8;if(!_0x5053a6)return!0x1;let _0x281594=_0x23f789['get'](_0x44289e),{unitId:_0x188dcb,tableId:_0x129f91,viewId:_0x49c38f,fieldId:_0x1d48fd,width:_0x216b3c}=_0x5053a6,_0x3bdde9=_0x281594['getUnit'](_0x188dcb,_0x5b7c15[_0x561c36(0x324)]);if(!_0x3bdde9||!$(_0x3bdde9,_0x129f91,{'viewIds':[_0x49c38f],'fieldIds':[_0x1d48fd]}))return!0x1;let _0x24ea1c=_0x3bdde9[_0x561c36(0x3ea)]()[_0x561c36(0x3bd)][_0x129f91][_0x561c36(0x37f)][_0x1d48fd];if(_0x24ea1c[_0x561c36(0x231)]===!0x0||_0x24ea1c[_0x561c36(0x35c)]===_0x2348b1['RecordId'])return!0x1;let _0x477ff2=_0x23f789[_0x561c36(0x12f)](_0x3c2684),_0x331a7d=_0x23f789['get'](_0x43263b),_0x3b5af9=_0x3bdde9[_0x561c36(0x3ea)](),_0x151737=new W()[_0x561c36(0x24a)](_0x3b5af9,_0x129f91,_0x49c38f,_0x1d48fd,_0x216b3c),_0x48984f=new z()[_0x561c36(0x3f8)](_0x3b5af9,_0x151737),_0x3f50fc={'unitId':_0x188dcb,'op':_0x151737},_0x319042={'unitId':_0x188dcb,'op':_0x48984f};return _0x477ff2[_0x561c36(0x2a9)](Q['id'],_0x3f50fc)?(_0x281594['focusUnit'](_0x188dcb),_0x331a7d[_0x561c36(0x338)]({'unitID':_0x188dcb,'undoMutations':[{'id':Q['id'],'params':_0x319042}],'redoMutations':[{'id':Q['id'],'params':_0x3f50fc}]}),!0x0):!0x1;}},xo={'id':_0x142fa8(0x237),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x592b1c,_0x204691)=>{const _0x5ef78b=_0x142fa8;if(!_0x204691)return!0x1;let _0xcecbe2=_0x592b1c[_0x5ef78b(0x12f)](_0x44289e),{unitId:_0x59f496,tableId:_0x4fa684,viewId:_0x52254c,filter:_0x882c58}=_0x204691,_0x484819=_0xcecbe2['getUnit'](_0x59f496,_0x5b7c15[_0x5ef78b(0x324)]),_0x31eb55=(_0x882c58==null?void 0x0:_0x882c58[_0x5ef78b(0x37b)][_0x5ef78b(0x1bc)](_0xee0860=>_0xee0860[_0x5ef78b(0x3c1)]))??[];if(!_0x484819||!$(_0x484819,_0x4fa684,{'viewIds':[_0x52254c],'fieldIds':_0x31eb55}))return!0x1;let _0x5709f5=_0x592b1c[_0x5ef78b(0x12f)](_0x3c2684),_0x12e948=_0x592b1c['get'](_0x43263b),_0x4e1a2b=_0x484819[_0x5ef78b(0x3ea)](),_0x3c8e71=new W()[_0x5ef78b(0x1de)](_0x4e1a2b,_0x4fa684,_0x52254c,_0x882c58),_0x3e2665=new z()[_0x5ef78b(0x3f8)](_0x4e1a2b,_0x3c8e71),_0x1365d7={'unitId':_0x59f496,'op':_0x3c8e71},_0x14ca36={'unitId':_0x59f496,'op':_0x3e2665};return _0x5709f5[_0x5ef78b(0x2a9)](Q['id'],_0x1365d7)?(_0xcecbe2[_0x5ef78b(0x1f3)](_0x59f496),_0x12e948[_0x5ef78b(0x338)]({'unitID':_0x59f496,'undoMutations':[{'id':Q['id'],'params':_0x14ca36}],'redoMutations':[{'id':Q['id'],'params':_0x1365d7}]}),!0x0):!0x1;}},So={'id':'base.command.set-base-view-group','type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0xf200e,_0x4af6ee)=>{const _0x28f764=_0x142fa8;if(!_0x4af6ee)return!0x1;let _0x3c4009=_0xf200e[_0x28f764(0x12f)](_0x44289e),{unitId:_0xae02f6,tableId:_0x4f7ae4,viewId:_0xc02852,group:_0x2346ea}=_0x4af6ee,_0x4c3e05=_0x3c4009['getUnit'](_0xae02f6,_0x5b7c15['UNIVER_BASE']);if(!_0x4c3e05||!$(_0x4c3e05,_0x4f7ae4,{'viewIds':[_0xc02852],'fieldIds':_0x2346ea['map'](_0x31ffe6=>_0x31ffe6[_0x28f764(0x3c1)])}))return!0x1;let _0x9ae23a=_0xf200e[_0x28f764(0x12f)](_0x3c2684),_0xbcc99e=_0xf200e['get'](_0x43263b),_0xafd3b5=_0x4c3e05[_0x28f764(0x3ea)](),_0x567af3=new W()[_0x28f764(0x200)](_0xafd3b5,_0x4f7ae4,_0xc02852,_0x2346ea),_0xdfc761=new z()[_0x28f764(0x3f8)](_0xafd3b5,_0x567af3),_0x1511d3={'unitId':_0xae02f6,'op':_0x567af3},_0x34f7c4={'unitId':_0xae02f6,'op':_0xdfc761};return _0x9ae23a['syncExecuteCommand'](Q['id'],_0x1511d3)?(_0x3c4009[_0x28f764(0x1f3)](_0xae02f6),_0xbcc99e[_0x28f764(0x338)]({'unitID':_0xae02f6,'undoMutations':[{'id':Q['id'],'params':_0x34f7c4}],'redoMutations':[{'id':Q['id'],'params':_0x1511d3}]}),!0x0):!0x1;}},Co={'id':_0x142fa8(0x284),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x3da646,_0x1b43fe)=>{const _0x34f7fc=_0x142fa8;if(!_0x1b43fe)return!0x1;let _0x44309f=_0x3da646[_0x34f7fc(0x12f)](_0x44289e),{unitId:_0x567c20,tableId:_0x1c861f,viewId:_0x2ab057,sort:_0x2e1c63}=_0x1b43fe,_0xaacdb2=_0x44309f['getUnit'](_0x567c20,_0x5b7c15[_0x34f7fc(0x324)]);if(!_0xaacdb2||!$(_0xaacdb2,_0x1c861f,{'viewIds':[_0x2ab057],'fieldIds':_0x2e1c63[_0x34f7fc(0x1bc)](_0x1de273=>_0x1de273[_0x34f7fc(0x3c1)])}))return!0x1;let _0x1d86b7=_0x3da646[_0x34f7fc(0x12f)](_0x3c2684),_0x47e718=_0x3da646[_0x34f7fc(0x12f)](_0x43263b),_0x5c2b16=_0xaacdb2[_0x34f7fc(0x3ea)](),_0x39ada0=new W()[_0x34f7fc(0x2e1)](_0x5c2b16,_0x1c861f,_0x2ab057,_0x2e1c63),_0x1fc62b=new z()[_0x34f7fc(0x3f8)](_0x5c2b16,_0x39ada0),_0x181e48={'unitId':_0x567c20,'op':_0x39ada0},_0x191602={'unitId':_0x567c20,'op':_0x1fc62b};return _0x1d86b7['syncExecuteCommand'](Q['id'],_0x181e48)?(_0x44309f[_0x34f7fc(0x1f3)](_0x567c20),_0x47e718[_0x34f7fc(0x338)]({'unitID':_0x567c20,'undoMutations':[{'id':Q['id'],'params':_0x191602}],'redoMutations':[{'id':Q['id'],'params':_0x181e48}]}),!0x0):!0x1;}},wo={'id':_0x142fa8(0x1f4),'type':_0x3ba701['COMMAND'],'handler'(_0x55a282,_0x3ba635){const _0x3c635d=_0x142fa8;if(!_0x3ba635)return!0x1;let _0x38c5fd=_0x55a282[_0x3c635d(0x12f)](_0x44289e),{unitId:_0x27704b,tableId:_0x3f9684,recordId:_0x5c523d,fieldId:_0x51bb69,value:_0x2af98b}=_0x3ba635,_0x2d0b29=_0x38c5fd[_0x3c635d(0x9c)](_0x27704b,_0x5b7c15[_0x3c635d(0x324)]);if(!_0x2d0b29||!$(_0x2d0b29,_0x3f9684,{'recordIds':[_0x5c523d],'fieldIds':[_0x51bb69]})||!ga(_0x2d0b29,_0x3f9684,_0x51bb69,_0x2af98b))return!0x1;let _0x3124e4=_0x2d0b29[_0x3c635d(0x3ea)]()[_0x3c635d(0x3bd)][_0x3f9684],_0x45158d=F(_0x3124e4,_0x51bb69)&&Xe(_0x3124e4)[_0x3c635d(0x8b)](_0x51bb69),_0x521d8e=_0x45158d?tt(_0x3124e4,_0x51bb69):null,_0x268140=(_0x521d8e==null?void 0x0:_0x521d8e[_0x3c635d(0x22a)][_0x3c635d(0x12f)](_0x5c523d))??null,_0x15d992=_0x45158d?Le(_0x2af98b)[0x0]??null:null;if(_0x521d8e){if(_0x15d992&&!_0x3124e4[_0x3c635d(0x309)][_0x15d992])throw new P(_0x3c635d(0x14a));let _0x3ea6b5=it(_0x521d8e,_0x5c523d,_0x15d992);if(!_0x3ea6b5[_0x3c635d(0x266)])throw new P(_0x3ea6b5['reason']===_0x22b9ef[_0x3c635d(0x3f1)]?'selfParent':_0x3ea6b5[_0x3c635d(0xb3)]===_0x22b9ef[_0x3c635d(0x13a)]?_0x3c635d(0x3cb):_0x3c635d(0x39c));}let _0x54383e=_0x55a282[_0x3c635d(0x12f)](_0x3c2684),_0x304646=_0x55a282[_0x3c635d(0x12f)](_0x43263b),_0x292abd=_0x55a282[_0x3c635d(0x12f)](Kr),_0x2c83d9;try{_0x2c83d9=_0x292abd['createUpdateCellOp'](_0x2d0b29,_0x3f9684,_0x5c523d,_0x51bb69,_0x2af98b);}catch(_0x48e3a3){return console[_0x3c635d(0x9f)](_0x3c635d(0xbf),_0x48e3a3),!0x1;}let _0x4fb8d8=new z()[_0x3c635d(0x3f8)](_0x2d0b29[_0x3c635d(0x3ea)](),_0x2c83d9),_0x42908a=_0x45158d&&_0x268140!==_0x15d992?[{'tableId':_0x3f9684,'fieldId':_0x51bb69,'recordId':_0x5c523d,'oldParentRecordId':_0x268140,'parentRecordId':_0x15d992}]:void 0x0,_0x301d0c={'unitId':_0x27704b,'op':_0x2c83d9,'trigger':_0x42908a?wo['id']:void 0x0,'hierarchyChanges':_0x42908a,'source':_0x42908a?_0x3ba635['source']??'ui':void 0x0},_0x25b999={..._0x301d0c,'source':_0x42908a?_0x3c635d(0xcc):void 0x0},_0x5c23ba={'unitId':_0x27704b,'op':_0x4fb8d8,'trigger':_0x42908a?wo['id']:void 0x0,'hierarchyChanges':_0x42908a==null?void 0x0:_0x42908a[_0x3c635d(0x1bc)](_0x130dfc=>({..._0x130dfc,'oldParentRecordId':_0x130dfc[_0x3c635d(0x2e3)],'parentRecordId':_0x130dfc[_0x3c635d(0x116)]})),'source':_0x42908a?_0x3c635d(0xeb):void 0x0};return _0x54383e[_0x3c635d(0x2a9)](Q['id'],_0x301d0c)?(_0x38c5fd['focusUnit'](_0x27704b),_0x304646[_0x3c635d(0x338)]({'unitID':_0x27704b,'undoMutations':[{'id':Q['id'],'params':_0x5c23ba}],'redoMutations':[{'id':Q['id'],'params':_0x25b999}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x3ba701[_0x142fa8(0x131)],'handler'(_0x64d8b0,_0x3bae9b){const _0x3539dc=_0x142fa8;if(!_0x3bae9b)return!0x1;let _0x3ff4c8=_0x64d8b0[_0x3539dc(0x12f)](_0x44289e),{unitId:_0xae482e,tableId:_0x3b6039,fieldId:_0x48ede5}=_0x3bae9b,_0x263a79=_0x3ff4c8[_0x3539dc(0x9c)](_0xae482e,_0x5b7c15['UNIVER_BASE']);if(!_0x263a79||!$(_0x263a79,_0x3b6039,{'fieldIds':[_0x48ede5]}))return!0x1;let _0x3785f1=_0x64d8b0[_0x3539dc(0x12f)](_0x3c2684),_0xcb9edb=_0x64d8b0[_0x3539dc(0x12f)](_0x43263b),_0xd200f7=_0x263a79[_0x3539dc(0x3ea)](),_0x45f7a9=_0x3bae9b[_0x3539dc(0xab)]['trim'](),_0x4cfb2c=new W()[_0x3539dc(0x14c)](_0xd200f7,_0x3b6039,_0x48ede5,{'description':_0x45f7a9}),_0x3f9099=new z()[_0x3539dc(0x3f8)](_0x263a79[_0x3539dc(0x3ea)](),_0x4cfb2c),_0x34bbcd={'unitId':_0xae482e,'op':_0x4cfb2c},_0x522c1b={'unitId':_0xae482e,'op':_0x3f9099};return _0x3785f1[_0x3539dc(0x2a9)](Q['id'],_0x34bbcd)?(_0x3ff4c8[_0x3539dc(0x1f3)](_0xae482e),_0xcb9edb[_0x3539dc(0x338)]({'unitID':_0xae482e,'undoMutations':[{'id':Q['id'],'params':_0x522c1b}],'redoMutations':[{'id':Q['id'],'params':_0x34bbcd}]}),!0x0):!0x1;}},Eo={'id':'base.command.update-base-field','type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x3b4d1d,_0x303a12)=>{const _0x295451=_0x142fa8;if(!_0x303a12)return!0x1;let _0x16eb7c=_0x3b4d1d[_0x295451(0x12f)](_0x44289e),{unitId:_0x4138cb,tableId:_0x1eaeeb,fieldId:_0x219f1d,patch:_0x56a5a1}=_0x303a12,_0x39c2e4=_0x16eb7c[_0x295451(0x9c)](_0x4138cb,_0x5b7c15[_0x295451(0x324)]);if(!_0x39c2e4||_0x219f1d===_0x48af21||!$(_0x39c2e4,_0x1eaeeb,{'fieldIds':[_0x219f1d]}))return!0x1;let _0x43b80b=_0x3b4d1d['get'](_0x3c2684),_0x5e90bf=_0x3b4d1d[_0x295451(0x12f)](_0x43263b),_0xe4d7d5=_0x39c2e4[_0x295451(0x3ea)]();if(!ha(_0x39c2e4,_0x1eaeeb,{..._0xe4d7d5[_0x295451(0x3bd)][_0x1eaeeb][_0x295451(0x37f)][_0x219f1d],..._0x56a5a1}))return!0x1;let _0x32986e=new W()[_0x295451(0x14c)](_0xe4d7d5,_0x1eaeeb,_0x219f1d,_0x56a5a1),_0x461052=new z()[_0x295451(0x3f8)](_0xe4d7d5,_0x32986e),_0x1fda3e={'unitId':_0x4138cb,'op':_0x32986e},_0x2124c4={'unitId':_0x4138cb,'op':_0x461052};return _0x43b80b[_0x295451(0x2a9)](Q['id'],_0x1fda3e)?(_0x16eb7c[_0x295451(0x1f3)](_0x4138cb),_0x5e90bf[_0x295451(0x338)]({'unitID':_0x4138cb,'undoMutations':[{'id':Q['id'],'params':_0x2124c4}],'redoMutations':[{'id':Q['id'],'params':_0x1fda3e}]}),!0x0):!0x1;}},Do={'id':_0x142fa8(0x2d4),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x18cc26,_0x55a321)=>{const _0x2ee435=_0x142fa8;if(!_0x55a321)return!0x1;let _0x36d527=_0x18cc26[_0x2ee435(0x12f)](_0x44289e),{unitId:_0x52e3da,tableId:_0x53e66d,viewId:_0x1a812b,patch:_0x406694}=_0x55a321,_0x179519=_0x36d527[_0x2ee435(0x9c)](_0x52e3da,_0x5b7c15[_0x2ee435(0x324)]);if(!_0x179519||!$(_0x179519,_0x53e66d,{'viewIds':[_0x1a812b]}))return!0x1;let _0x2eb15f=_0x18cc26[_0x2ee435(0x12f)](_0x3c2684),_0x5b45a0=_0x18cc26[_0x2ee435(0x12f)](_0x43263b),_0x3bc16b=_0x179519[_0x2ee435(0x3ea)](),_0x253d72=new W()[_0x2ee435(0x16f)](_0x3bc16b,_0x53e66d,_0x1a812b,_0x406694),_0x1e58a2=new z()[_0x2ee435(0x3f8)](_0x3bc16b,_0x253d72),_0x144a55={'unitId':_0x52e3da,'op':_0x253d72},_0x5cf788={'unitId':_0x52e3da,'op':_0x1e58a2};return _0x2eb15f[_0x2ee435(0x2a9)](Q['id'],_0x144a55)?(_0x36d527[_0x2ee435(0x1f3)](_0x52e3da),_0x5b45a0[_0x2ee435(0x338)]({'unitID':_0x52e3da,'undoMutations':[{'id':Q['id'],'params':_0x5cf788}],'redoMutations':[{'id':Q['id'],'params':_0x144a55}]}),!0x0):!0x1;}},Oo={'id':_0x142fa8(0xea),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0xe4c6e0,_0x282199)=>{const _0x3b544f=_0x142fa8;if(!_0x282199)return!0x1;let _0x35ee50=_0xe4c6e0[_0x3b544f(0x12f)](_0x44289e),{unitId:_0x455fc4,tableId:_0x2bce1c,recordId:_0xf18a72,orderKey:_0x27ac52}=_0x282199,_0x1264b7=_0x35ee50[_0x3b544f(0x9c)](_0x455fc4,_0x5b7c15[_0x3b544f(0x324)]);if(!_0x1264b7||!$(_0x1264b7,_0x2bce1c,{'recordIds':[_0xf18a72]}))return!0x1;let _0x48ca7a=_0xe4c6e0[_0x3b544f(0x12f)](_0x3c2684),_0x3175f3=_0xe4c6e0[_0x3b544f(0x12f)](_0x43263b),_0x58e2ab=_0x1264b7[_0x3b544f(0x3ea)](),_0x5dbf4d=new W()[_0x3b544f(0x2a4)](_0x58e2ab,_0x2bce1c,_0xf18a72,_0x27ac52),_0x142631=new z()[_0x3b544f(0x3f8)](_0x58e2ab,_0x5dbf4d),_0x3ed71b={'unitId':_0x455fc4,'op':_0x5dbf4d},_0x5afb50={'unitId':_0x455fc4,'op':_0x142631};return _0x48ca7a[_0x3b544f(0x2a9)](Q['id'],_0x3ed71b)?(_0x35ee50['focusUnit'](_0x455fc4),_0x3175f3['pushUndoRedo']({'unitID':_0x455fc4,'undoMutations':[{'id':Q['id'],'params':_0x5afb50}],'redoMutations':[{'id':Q['id'],'params':_0x3ed71b}]}),!0x0):!0x1;}};let ko=function(_0x1784e2){const _0x32b260=_0x142fa8;return _0x1784e2[_0x32b260(0xfd)]='set',_0x1784e2[_0x32b260(0x3a9)]='add',_0x1784e2['Delete']=_0x32b260(0x180),_0x1784e2[_0x32b260(0x24d)]=_0x32b260(0x249),_0x1784e2;}({});const Ao={'id':'base.command.update-base-view-conditional-color-rules','type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x3c33e0,_0x3dca35)=>{const _0x1d31a9=_0x142fa8;var _0x14d36d;if(!_0x3dca35)return!0x1;let _0x48bfc9=_0x3c33e0[_0x1d31a9(0x12f)](_0x44289e),_0x4cbdf4=_0x48bfc9[_0x1d31a9(0x9c)](_0x3dca35[_0x1d31a9(0x22b)],_0x5b7c15[_0x1d31a9(0x324)]);if(!_0x4cbdf4||!$(_0x4cbdf4,_0x3dca35[_0x1d31a9(0x90)],{'viewIds':[_0x3dca35['viewId']]}))return!0x1;let _0x111d90=_0x4cbdf4[_0x1d31a9(0x3ea)](),_0x4fd0dc=_0x111d90[_0x1d31a9(0x3bd)][_0x3dca35[_0x1d31a9(0x90)]],_0x2b43aa=jo(((_0x14d36d=_0x4fd0dc[_0x1d31a9(0x1df)][_0x3dca35[_0x1d31a9(0xa8)]][_0x1d31a9(0xfa)]['conditionalColoring'])==null?void 0x0:_0x14d36d[_0x1d31a9(0x3a3)])??[],_0x3dca35);if(!_0x2b43aa)return!0x1;Mo(_0x4fd0dc,_0x2b43aa);let _0x9d4fa7=new W()[_0x1d31a9(0x16f)](_0x111d90,_0x3dca35['tableId'],_0x3dca35[_0x1d31a9(0xa8)],{'conditionalColoring':_0x2b43aa[_0x1d31a9(0x7d)]?{'rules':_0x2b43aa}:null}),_0x4598b=new z()['invertOp'](_0x111d90,_0x9d4fa7),_0x558af4={'unitId':_0x3dca35[_0x1d31a9(0x22b)],'op':_0x9d4fa7},_0x2d5ff4={'unitId':_0x3dca35[_0x1d31a9(0x22b)],'op':_0x4598b};return _0x3c33e0[_0x1d31a9(0x12f)](_0x3c2684)[_0x1d31a9(0x2a9)](Q['id'],_0x558af4)?(_0x48bfc9[_0x1d31a9(0x1f3)](_0x3dca35['unitId']),_0x3c33e0['get'](_0x43263b)['pushUndoRedo']({'unitID':_0x3dca35[_0x1d31a9(0x22b)],'undoMutations':[{'id':Q['id'],'params':_0x2d5ff4}],'redoMutations':[{'id':Q['id'],'params':_0x558af4}]}),!0x0):!0x1;}};function jo(_0x58bb19,_0x34104c){const _0x2cd0d7=_0x142fa8;switch(_0x34104c[_0x2cd0d7(0x35c)]){case _0x2cd0d7(0x23a):return _0x3e4e1e[_0x2cd0d7(0x31f)](_0x34104c[_0x2cd0d7(0x3a3)]);case _0x2cd0d7(0x28d):return[..._0x3e4e1e['deepClone'](_0x58bb19),_0x3e4e1e['deepClone'](_0x34104c['rule'])];case'delete':{let _0x1df18b=_0x58bb19[_0x2cd0d7(0x13c)](_0x4f4eca=>_0x4f4eca['id']!==_0x34104c[_0x2cd0d7(0x253)]);return _0x1df18b[_0x2cd0d7(0x7d)]===_0x58bb19['length']?null:_0x3e4e1e[_0x2cd0d7(0x31f)](_0x1df18b);}case _0x2cd0d7(0x249):return _0x58bb19['length']?[]:null;}}function Mo(_0x36c53e,_0x1a827b){const _0x3d959f=_0x142fa8;if(!Array['isArray'](_0x1a827b))throw TypeError(_0x3d959f(0x10b));let _0x458edc=new Set();for(let [_0x297627,_0x510420]of _0x1a827b[_0x3d959f(0x274)]())Po(_0x36c53e,_0x510420,No(_0x510420,_0x297627,_0x458edc));}function No(_0x2794cc,_0x19c086,_0x327067){const _0x4148cd=_0x142fa8;if(!_0x2794cc||typeof _0x2794cc!=_0x4148cd(0x1e3))throw TypeError(_0x4148cd(0x176)+_0x19c086+_0x4148cd(0x20d));let _0x43f90c=typeof _0x2794cc['id']=='string'&&_0x2794cc['id'][_0x4148cd(0x41a)]()?'\x22'+_0x2794cc['id']+'\x22':_0x4148cd(0x114)+_0x19c086;if(typeof _0x2794cc['id']!='string'||!_0x2794cc['id'][_0x4148cd(0x41a)]())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x43f90c+_0x4148cd(0x22d));if(_0x327067['has'](_0x2794cc['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x2794cc['id']+'\x22.');_0x327067[_0x4148cd(0x28d)](_0x2794cc['id']);let _0x62a76=typeof _0x2794cc[_0x4148cd(0x12b)]==_0x4148cd(0x3a1)&&_0x2794cc[_0x4148cd(0x12b)][_0x4148cd(0x41a)]()?new _0x54cdd4(_0x2794cc[_0x4148cd(0x12b)]):null;if(!(_0x62a76!=null&&_0x62a76[_0x4148cd(0x25d)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x43f90c+_0x4148cd(0x97));return _0x43f90c;}function Po(_0x563272,_0x126ee9,_0x32f4ab){const _0xc5c47d=_0x142fa8;let _0x150136=new Set(Object[_0xc5c47d(0x307)](_0x10c8ae)),_0x3db700=new Set(Object[_0xc5c47d(0x307)](_0x5eda1f)),_0x5a0e43=new Set(Object[_0xc5c47d(0x307)](_0x5151f9));if(!_0x150136['has'](_0x126ee9[_0xc5c47d(0x414)]))throw Error(_0xc5c47d(0x1e2)+_0x32f4ab+_0xc5c47d(0x130)+String(_0x126ee9[_0xc5c47d(0x414)])+'\x22.');let _0x163ba4=typeof _0x126ee9[_0xc5c47d(0x3c1)]=='string'?_0x563272[_0xc5c47d(0x37f)][_0x126ee9[_0xc5c47d(0x3c1)]]:void 0x0;if(!_0x163ba4||_0x163ba4[_0xc5c47d(0x231)]===!0x0||_0x163ba4[_0xc5c47d(0x35c)]===_0x2348b1[_0xc5c47d(0x416)])throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x32f4ab+_0xc5c47d(0x36a)+String(_0x126ee9['fieldId'])+'\x22.');if(!_0x3db700[_0xc5c47d(0x8e)](_0x126ee9[_0xc5c47d(0x238)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x32f4ab+_0xc5c47d(0x2ce)+String(_0x126ee9[_0xc5c47d(0x238)])+'\x22.');if(_0x126ee9[_0xc5c47d(0x28e)]!==void 0x0&&!_0x5a0e43['has'](_0x126ee9['dateMode']))throw Error(_0xc5c47d(0x1e2)+_0x32f4ab+_0xc5c47d(0x2ab)+String(_0x126ee9['dateMode'])+'\x22.');if(_0x126ee9[_0xc5c47d(0x414)]===_0x10c8ae[_0xc5c47d(0x27a)])return;let _0x1acc99=vn(_0x163ba4['type']);if(!_0x1acc99[_0xc5c47d(0x8b)](_0x126ee9[_0xc5c47d(0x238)]))throw Error(_0xc5c47d(0x1e2)+_0x32f4ab+'\x20cannot\x20use\x20operator\x20\x22'+_0x126ee9[_0xc5c47d(0x238)]+_0xc5c47d(0x3ee)+_0x163ba4['type']+_0xc5c47d(0xef)+_0x1acc99['join'](',\x20')+'.');if(_0x126ee9[_0xc5c47d(0x28e)]!==void 0x0&&!yn(_0x163ba4[_0xc5c47d(0x35c)]))throw Error(_0xc5c47d(0x1e2)+_0x32f4ab+'\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.');}const Fo={'id':_0x142fa8(0x2bf),'type':_0x3ba701[_0x142fa8(0x131)],'handler':(_0x10c4c6,_0x5d235e)=>{const _0x2168f6=_0x142fa8;if(!_0x5d235e)return!0x1;let _0x3fb760=_0x10c4c6['get'](_0x44289e),{unitId:_0x2742a9,tableId:_0x5b7309,viewId:_0x134d2d,patch:_0x50b9d6}=_0x5d235e,_0x3a3ee4=_0x3fb760[_0x2168f6(0x9c)](_0x2742a9,_0x5b7c15['UNIVER_BASE']);if(!_0x3a3ee4||!$(_0x3a3ee4,_0x5b7309,{'viewIds':[_0x134d2d]}))return!0x1;let _0x1bd906=_0x10c4c6[_0x2168f6(0x12f)](_0x3c2684),_0x402877=_0x10c4c6[_0x2168f6(0x12f)](_0x43263b),_0x8e939a=_0x3a3ee4[_0x2168f6(0x3ea)](),_0x3068d5=new W()[_0x2168f6(0x16f)](_0x8e939a,_0x5b7309,_0x134d2d,_0x50b9d6),_0x1fe210=new z()['invertOp'](_0x8e939a,_0x3068d5),_0x349cb0={'unitId':_0x2742a9,'op':_0x3068d5},_0x10f06a={'unitId':_0x2742a9,'op':_0x1fe210};return _0x1bd906[_0x2168f6(0x2a9)](Q['id'],_0x349cb0)?(_0x3fb760[_0x2168f6(0x1f3)](_0x2742a9),_0x402877[_0x2168f6(0x338)]({'unitID':_0x2742a9,'undoMutations':[{'id':Q['id'],'params':_0x10f06a}],'redoMutations':[{'id':Q['id'],'params':_0x349cb0}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x3ba701[_0x142fa8(0x131)],'handler'(_0x2c6ca1,_0x555217){const _0x3e7cc0=_0x142fa8;if(!_0x555217)return{'valid':!0x1,'reason':'[BaseFormula]:\x20validation\x20parameters\x20are\x20required.'};let _0x2435d3=_0x2c6ca1['get'](_0x44289e)[_0x3e7cc0(0x9c)](_0x555217[_0x3e7cc0(0x22b)],_0x5b7c15['UNIVER_BASE']),_0x3cff1b=_0x2435d3==null?void 0x0:_0x2435d3[_0x3e7cc0(0x3ea)](),_0x327b75=_0x3cff1b==null?void 0x0:_0x3cff1b[_0x3e7cc0(0x3bd)][_0x555217[_0x3e7cc0(0x90)]];return!_0x3cff1b||!_0x327b75?{'valid':!0x1,'reason':_0x3e7cc0(0xcf)}:new Xi()[_0x3e7cc0(0x117)](_0x555217[_0x3e7cc0(0x19a)],_0x327b75,{'snapshot':_0x3cff1b});}};let Lo=class extends _0x560341{constructor(_0x58f9ce){const _0x599970=_0x142fa8;super(_0x58f9ce,_0x599970(0x33f),_0x5b7c15[_0x599970(0x324)],[_0x16a23b[_0x599970(0x2f7)],_0x16a23b[_0x599970(0x8c)],_0x16a23b[_0x599970(0x21f)],_0x16a23b['BaseView'],_0x16a23b[_0x599970(0xaa)]]);}};Lo=X([Y(0x0,_0x37fee1)],Lo);const Ro={'id':_0x142fa8(0x34c),'type':_0x3ba701['MUTATION'],'handler':(_0x50d779,_0x2913bd)=>!_0x2913bd||!_0x50d779[_0x142fa8(0x12f)](_0x44289e)['getUnit'](_0x2913bd[_0x142fa8(0x22b)],_0x5b7c15[_0x142fa8(0x324)])?!0x1:_0x50d779[_0x142fa8(0x12f)](Lo)[_0x142fa8(0x417)](_0x2913bd['unitId'],_0x2913bd[_0x142fa8(0x372)],_0x2913bd['objectId'],_0x2913bd['rule'])},zo={'id':_0x142fa8(0x316),'type':_0x3ba701['MUTATION'],'handler':(_0x59216d,_0x17e8c9)=>!_0x17e8c9||!_0x59216d['get'](_0x44289e)['getUnit'](_0x17e8c9['unitId'],_0x5b7c15[_0x142fa8(0x324)])?!0x1:_0x59216d[_0x142fa8(0x12f)](Lo)[_0x142fa8(0x3ac)](_0x17e8c9[_0x142fa8(0x22b)],_0x17e8c9['rules'])};function Bo(_0xefad7f){const _0x162980=_0x142fa8;let _0x514774=_0xefad7f[_0x162980(0x3b2)]??Date['now'](),_0x30c805=_0xefad7f[_0x162980(0x195)]??_0xefad7f['id']+_0x162980(0x245),_0x341603=_0xefad7f[_0x162980(0x230)]??_0xefad7f['id']+_0x162980(0x2f0),_0x31a432=_0xefad7f[_0x162980(0x225)]??0x0,_0x378bef=_0x1d29e3(),_0x2d7941={'id':_0x30c805,'name':_0xefad7f[_0x162980(0x2b4)]??_0x162980(0xa2),'type':_0x2348b1['Text'],'config':{'placeholder':_0x162980(0x27b)}},_0x2ed5db={},_0x204331=[],_0x40a892={},_0xe4fae6={},_0x297c13={};for(let _0x3b35b3=0x0;_0x3b35b3<_0x31a432;_0x3b35b3++){let _0x4a7d12=_0xefad7f['id']+'-record-'+(_0x3b35b3+0x1);_0x2ed5db[_0x4a7d12]={'id':_0x4a7d12,'values':{[_0x48af21]:_0x4a7d12,..._0xefad7f[_0x162980(0x14d)]?{[_0x30c805]:_0xefad7f[_0x162980(0x14d)]+'\x20'+(_0x3b35b3+0x1)}:{}},'orderKey':String(_0x3b35b3+0x1)[_0x162980(0x354)](0x4,'0'),'createdAt':_0x514774,'updatedAt':_0x514774},_0x204331[_0x162980(0x319)](_0x4a7d12),_0x40a892[_0x4a7d12]=_0x3b35b3,_0xe4fae6[_0x3b35b3]=_0x4a7d12,_0x297c13[_0x3b35b3]={0x0:{'v':_0x4a7d12,'t':_0x5ad018[_0x162980(0x2c3)]}},_0xefad7f[_0x162980(0x14d)]&&(_0x297c13[_0x3b35b3][0x1]={'v':_0xefad7f[_0x162980(0x14d)]+'\x20'+(_0x3b35b3+0x1),'t':_0x5ad018[_0x162980(0x2c3)]});}let _0x227d01={'id':_0x341603,'tableId':_0xefad7f['id'],'name':_0x162980(0x3b7),'type':_0x22d567[_0x162980(0x3b7)],'fieldOrder':[_0x48af21,_0x30c805],'fieldSettings':{[_0x48af21]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0xefad7f['id'],'name':_0xefad7f[_0x162980(0x112)],'primaryFieldId':_0x30c805,'fieldOrder':[_0x48af21,_0x30c805],'fields':{[_0x48af21]:_0x378bef,[_0x30c805]:_0x2d7941},'records':_0x2ed5db,'recordOrder':_0x204331,'rowIndex':_0x40a892,'rowId':_0xe4fae6,'colIndex':{[_0x48af21]:0x0,[_0x30c805]:0x1},'colId':{0x0:_0x48af21,0x1:_0x30c805},'cellData':_0x297c13,'views':{[_0x341603]:_0x227d01},'viewOrder':[_0x341603]};}const Vo=_0x142fa8(0x25e);function Ho(_0x307fe5){const _0x1f56f3=_0x142fa8;let _0x32a140=Bo({'id':_0x307fe5[_0x1f56f3(0x2bc)],'name':_0x307fe5[_0x1f56f3(0x112)]??_0x307fe5[_0x1f56f3(0x1bd)],'recordCount':0x0});return{..._0x32a140,'resources':{..._0x32a140[_0x1f56f3(0x1d4)]??{},[Vo]:Go(_0x307fe5)}};}function Uo(_0x5e4e80){const _0x4292f0=_0x142fa8;return{'id':Q['id'],'params':{'unitId':_0x5e4e80[_0x4292f0(0x22b)],'op':_0x5846ca[_0x4292f0(0x35c)][_0x4292f0(0x2bb)](_0x5846ca['insertOp']([_0x4292f0(0x3bd),_0x5e4e80['table']['id']],_0x5e4e80[_0x4292f0(0x108)]),_0x5846ca[_0x4292f0(0xae)]([_0x4292f0(0x1c3),_0x5e4e80[_0x4292f0(0x2e6)]??_0x5e4e80['snapshot'][_0x4292f0(0x1c3)][_0x4292f0(0x7d)]],_0x5e4e80[_0x4292f0(0x108)]['id'])),'trigger':_0x4292f0(0x179)}};}function Wo(_0x50f2f5){const _0x4b7660=_0x142fa8;let _0x1912d9=_0x50f2f5[_0x4b7660(0x1b6)][_0x4b7660(0x1c3)][_0x4b7660(0x123)](_0x50f2f5['tableId']);if(!(!_0x50f2f5[_0x4b7660(0x1b6)][_0x4b7660(0x3bd)][_0x50f2f5[_0x4b7660(0x90)]]||_0x1912d9<0x0))return{'id':Q['id'],'params':{'unitId':_0x50f2f5[_0x4b7660(0x22b)],'op':_0x5846ca[_0x4b7660(0x35c)][_0x4b7660(0x2bb)](_0x5846ca[_0x4b7660(0xa6)](['tables',_0x50f2f5[_0x4b7660(0x90)]],_0x50f2f5[_0x4b7660(0x1b6)][_0x4b7660(0x3bd)][_0x50f2f5[_0x4b7660(0x90)]]),_0x5846ca[_0x4b7660(0xa6)]([_0x4b7660(0x1c3),_0x1912d9],_0x50f2f5[_0x4b7660(0x90)])),'trigger':'embed-ui'}};}function Go(_0x254569){const _0x57a02f=_0x142fa8;return{'version':0x1,'embedId':_0x254569[_0x57a02f(0x1bd)],'hostAnchorId':_0x254569[_0x57a02f(0x2bc)],'childUnitId':_0x254569[_0x57a02f(0x298)],'childType':_0x254569[_0x57a02f(0x409)]};}function Ko(_0x1c72a2){const _0x25458d=_0x142fa8;let _0x2d4542=Math[_0x25458d(0x41f)](0x0,Number(_0x1c72a2[_0x25458d(0x2dd)]??0x0)),_0x469213=_0x1c72a2[_0x25458d(0x280)]===!0x1?'0':_0x25458d(0x41e),_0x1bbb3e=_0x2d4542?'.'+'0'['repeat'](_0x2d4542):'',_0x16cbc6=Jo(_0x1c72a2[_0x25458d(0x32a)]);return''+(_0x1c72a2[_0x25458d(0x24e)]?Yo(_0x1c72a2[_0x25458d(0x24e)]):'')+_0x469213+_0x1bbb3e+_0x16cbc6;}function qo(_0x1f6bb1,_0x228df4){const _0x380acb=_0x142fa8;let _0x2113dc=Ko(_0x228df4),_0xd16870=_0x59e2da[_0x380acb(0x2b8)](_0x2113dc,_0x1f6bb1,{'throws':!0x1});return Xo(String(_0xd16870),_0x228df4[_0x380acb(0x2d8)],_0x228df4['locale']);}function Jo(_0x2702f5){const _0x71b157=_0x142fa8;return _0x2702f5==='K'?_0x71b157(0x1eb):_0x2702f5==='M'?_0x71b157(0x310):_0x2702f5==='B'?_0x71b157(0x17f):'';}function Yo(_0x51c5ca){const _0x4564a3=_0x142fa8;return/^[A-Z]+$/i[_0x4564a3(0x413)](_0x51c5ca)?'\x22'+_0x51c5ca+'\x22':_0x51c5ca;}function Xo(_0x2cde70,_0x1e2e05,_0x525902){const _0x21c1db=_0x142fa8;let _0x482bde=_0x1e2e05===_0x21c1db(0xf6)?Zo(_0x525902):_0x1e2e05;return _0x482bde===_0x21c1db(0x33c)?_0x2cde70[_0x21c1db(0x401)](/,/g,'\x00')[_0x21c1db(0x401)](/\./g,',')[_0x21c1db(0x401)](/\0/g,'.'):_0x482bde==='spaceComma'?_0x2cde70[_0x21c1db(0x401)](/,/g,'\x20')[_0x21c1db(0x401)](/\./g,','):_0x482bde===_0x21c1db(0x153)?_0x2cde70[_0x21c1db(0x401)](/,/g,'\x20'):_0x2cde70;}function Zo(_0x344dff){const _0x5b8540=_0x142fa8;var _0x58964b,_0x57462b;let _0x394142=_0x344dff||new Intl[(_0x5b8540(0x1d9))]()[_0x5b8540(0x3b6)]()[_0x5b8540(0x2ec)],_0x488a64;try{_0x488a64=new Intl[(_0x5b8540(0x1d9))](_0x394142,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x5b8540(0x7e)](0xf4240);}catch{return'commaPeriod';}let _0x20a4cb=(_0x58964b=_0x488a64[_0x5b8540(0x3bb)](_0x3d5021=>_0x3d5021[_0x5b8540(0x35c)]===_0x5b8540(0x22c)))==null?void 0x0:_0x58964b[_0x5b8540(0x177)],_0x1f6640=(_0x57462b=_0x488a64[_0x5b8540(0x3bb)](_0x1f17ec=>_0x1f17ec[_0x5b8540(0x35c)]===_0x5b8540(0xa4)))==null?void 0x0:_0x57462b[_0x5b8540(0x177)],_0xdf74d0=_0x20a4cb==='\u00a0'||_0x20a4cb==='\u202f'?'\x20':_0x20a4cb;return _0xdf74d0==='.'&&_0x1f6640===','?_0x5b8540(0x33c):_0xdf74d0==='\x20'&&_0x1f6640===','?'spaceComma':_0xdf74d0==='\x20'&&_0x1f6640==='.'?_0x5b8540(0x153):'commaPeriod';}function Qo(_0x408f32,_0x2bd9b9){const _0x1b8076=_0x142fa8;let _0x2af640=_0x2bd9b9&&typeof _0x2bd9b9==_0x1b8076(0x1e3)&&!Array['isArray'](_0x2bd9b9)?_0x2bd9b9:{},_0xbf4667=$o(_0x2af640['decimalPlaces'],0x0,0x2,0x0),_0x2b5950=_0x408f32[_0x1b8076(0x18a)](_0xbf4667);return _0x2af640['format']===_0x1b8076(0xcb)?_0x2b5950:_0x2b5950+'%';}function $o(_0x4dbce2,_0x359008,_0x20da0c,_0x447390){const _0xab638c=_0x142fa8;if(_0x4dbce2==null||_0x4dbce2==='')return _0x447390;let _0x5ef789=typeof _0x4dbce2==_0xab638c(0xcb)?_0x4dbce2:Number(_0x4dbce2);return Number[_0xab638c(0x1a1)](_0x5ef789)?Math['max'](_0x359008,Math[_0xab638c(0x27d)](_0x20da0c,Math[_0xab638c(0x2f3)](_0x5ef789))):_0x447390;}const es=[_0x142fa8(0x390),_0x142fa8(0x370),_0x142fa8(0x1a5),_0x142fa8(0x2a0),'sum',_0x142fa8(0x15a),_0x142fa8(0x27d),_0x142fa8(0x41f)],ts=[_0x142fa8(0x390),'filled',_0x142fa8(0x1a5),_0x142fa8(0x2a0)],ns=[_0x142fa8(0xec),_0x142fa8(0x15a),'min',_0x142fa8(0x41f)],rs=[_0x142fa8(0x27d),_0x142fa8(0x41f)],is=new Set([_0x2348b1[_0x142fa8(0xe6)],_0x2348b1['Currency'],_0x2348b1[_0x142fa8(0x2cb)],_0x2348b1[_0x142fa8(0x41d)]]),as=new Set([_0x2348b1[_0x142fa8(0x3b0)],_0x2348b1['Person'],_0x2348b1[_0x142fa8(0x12d)]]),os=_0x142fa8(0x421);function ss(_0x5222f0){const _0x359f47=_0x142fa8;return typeof _0x5222f0==_0x359f47(0x3a1)&&es[_0x359f47(0x8b)](_0x5222f0);}function cs(_0x4fd555){const _0xfbb45b=_0x142fa8;return!_0x4fd555||typeof _0x4fd555!='object'?{}:Object[_0xfbb45b(0xb5)](Object[_0xfbb45b(0x274)](_0x4fd555)[_0xfbb45b(0x13c)](_0x275d30=>ss(_0x275d30[0x1])));}function ls(_0x5c4f14){const _0x22f4d8=_0x142fa8;return is[_0x22f4d8(0x8e)](_0x5c4f14[_0x22f4d8(0x35c)])?[...ts,...ns]:_0x5c4f14['type']===_0x2348b1[_0x22f4d8(0x1a7)]?[...ts,...ws(_0x5c4f14)===_0x22f4d8(0x1b0)?rs:ns]:ts;}function us(_0x138fd6,_0x288fbf){const _0x52bfd8=_0x142fa8;return ls(_0x138fd6)[_0x52bfd8(0x8b)](_0x288fbf);}function ds(_0x4b5ab5,_0x46e477,_0x66360c){const _0x4b36e0=_0x142fa8;if(!us(_0x4b5ab5,_0x66360c))return null;let _0x295d92=_0x46e477[_0x4b36e0(0x13c)](_0x5c173e=>!ps(_0x4b5ab5,_0x5c173e));switch(_0x66360c){case _0x4b36e0(0x390):return _0x46e477[_0x4b36e0(0x7d)];case'filled':return _0x295d92[_0x4b36e0(0x7d)];case _0x4b36e0(0x1a5):return _0x46e477[_0x4b36e0(0x7d)]-_0x295d92[_0x4b36e0(0x7d)];case _0x4b36e0(0x2a0):return new Set(_0x295d92['map'](_0x38f84f=>_s(_0x4b5ab5,_0x38f84f)))[_0x4b36e0(0xad)];case'sum':{let _0x1ab22a=ms(_0x4b5ab5,_0x295d92);return _0x1ab22a[_0x4b36e0(0x7d)]?gs(_0x1ab22a):null;}case _0x4b36e0(0x15a):{let _0x5f619e=ms(_0x4b5ab5,_0x295d92);return _0x5f619e[_0x4b36e0(0x7d)]?gs(_0x5f619e)/_0x5f619e[_0x4b36e0(0x7d)]:null;}case'min':{let _0x3bca55=ms(_0x4b5ab5,_0x295d92);return _0x3bca55[_0x4b36e0(0x7d)]?Math['min'](..._0x3bca55):null;}case _0x4b36e0(0x41f):{let _0x2e0169=ms(_0x4b5ab5,_0x295d92);return _0x2e0169[_0x4b36e0(0x7d)]?Math[_0x4b36e0(0x41f)](..._0x2e0169):null;}}}function fs(_0x110b8b,_0x846d48,_0x387d73){const _0x4ae635=_0x142fa8;if(_0x387d73==null||!Number[_0x4ae635(0x1a1)](_0x387d73))return'-';if(ts['includes'](_0x846d48))return String(_0x387d73);switch(_0x110b8b[_0x4ae635(0x35c)]){case _0x2348b1[_0x4ae635(0xe6)]:return qo(_0x387d73,xs(_0x110b8b));case _0x2348b1[_0x4ae635(0x1c1)]:return qo(_0x387d73,Ss(_0x110b8b));case _0x2348b1[_0x4ae635(0x2cb)]:return Qo(_0x387d73,_0x110b8b['config']);case _0x2348b1[_0x4ae635(0x1a7)]:return Cs(_0x387d73,_0x110b8b);default:return Es(_0x387d73);}}function ps(_0x4b0d45,_0x212b31){const _0x123e82=_0x142fa8;if(_0x212b31==null)return!0x0;if(typeof _0x212b31=='string')return _0x212b31[_0x123e82(0x41a)]()==='';if(Array[_0x123e82(0x8f)](_0x212b31))return _0x4b0d45['type']===_0x2348b1[_0x123e82(0x2af)]?!_0x212b31[_0x123e82(0x3b4)](bs):_0x212b31[_0x123e82(0x7d)]===0x0;if(_0x4b0d45[_0x123e82(0x35c)]===_0x2348b1[_0x123e82(0x20f)]&&typeof _0x212b31==_0x123e82(0x1e3)){let _0x3c8112=_0x212b31;return[_0x3c8112[_0x123e82(0x2be)],_0x3c8112[_0x123e82(0xfe)]][_0x123e82(0x40c)](_0x1d62ca=>_0x1d62ca==null||String(_0x1d62ca)[_0x123e82(0x41a)]()==='');}return!0x1;}function ms(_0x50eeea,_0x5d2e3e){const _0x5cf584=_0x142fa8;let _0x1a5107=[];for(let _0x279f82 of _0x5d2e3e){let _0x4395d6=hs(_0x50eeea,_0x279f82);_0x4395d6!=null&&_0x1a5107[_0x5cf584(0x319)](_0x4395d6);}return _0x1a5107;}function hs(_0x3c7644,_0x3a56c2){const _0x54bb4c=_0x142fa8;if(typeof _0x3a56c2==_0x54bb4c(0xcb))return Number[_0x54bb4c(0x1a1)](_0x3a56c2)?_0x3a56c2:null;if(_0x3c7644[_0x54bb4c(0x35c)]!==_0x2348b1['Formula']&&typeof _0x3a56c2==_0x54bb4c(0x3a1)&&_0x3a56c2[_0x54bb4c(0x41a)]()!==''){let _0x1fc4b8=Number(_0x3a56c2);return Number[_0x54bb4c(0x1a1)](_0x1fc4b8)?_0x1fc4b8:null;}return null;}function gs(_0x58a457){const _0x2d223e=_0x142fa8;let _0x3a8af7=0x0,_0x41a2ae=0x0;for(let _0x1cee30 of _0x58a457){let _0x216f92=_0x3a8af7+_0x1cee30;_0x41a2ae+=Math['abs'](_0x3a8af7)>=Math[_0x2d223e(0x1fb)](_0x1cee30)?_0x3a8af7-_0x216f92+_0x1cee30:_0x1cee30-_0x216f92+_0x3a8af7,_0x3a8af7=_0x216f92;}return _0x3a8af7+_0x41a2ae;}function _s(_0x51c509,_0x55a9af){const _0x3fc6f6=_0x142fa8;return as[_0x3fc6f6(0x8e)](_0x51c509[_0x3fc6f6(0x35c)])&&Array['isArray'](_0x55a9af)?ys([...new Set(_0x55a9af[_0x3fc6f6(0x1bc)](_0x4b329e=>ys(vs(_0x4b329e))))]['sort']()):ys(vs(_0x55a9af));}function vs(_0x52cc47){const _0x396056=_0x142fa8;return Array[_0x396056(0x8f)](_0x52cc47)?_0x52cc47[_0x396056(0x1bc)](vs):_0x52cc47&&typeof _0x52cc47=='object'?Object[_0x396056(0xb5)](Object['entries'](_0x52cc47)['sort'](([_0x3da1b0],[_0x17d9fb])=>_0x3da1b0[_0x396056(0x94)](_0x17d9fb))[_0x396056(0x1bc)](([_0x272b07,_0x1fdbf3])=>[_0x272b07,vs(_0x1fdbf3)])):_0x52cc47;}function ys(_0x49ecdd){const _0x4af189=_0x142fa8;return JSON['stringify'](_0x49ecdd)??_0x4af189(0x31b);}function bs(_0x58765b){const _0x228dcc=_0x142fa8;if(typeof _0x58765b==_0x228dcc(0x3a1))return _0x58765b[_0x228dcc(0x41a)]()!=='';if(!_0x58765b||typeof _0x58765b!=_0x228dcc(0x1e3))return!0x1;let _0x31522a=_0x58765b;return[_0x31522a['id'],_0x31522a['name'],_0x31522a['source'],_0x31522a[_0x228dcc(0xfe)],_0x31522a[_0x228dcc(0x275)]][_0x228dcc(0x3b4)](_0x3c09af=>_0x3c09af!=null&&String(_0x3c09af)['trim']()!=='');}function xs(_0x38173c){const _0x3c9c6b=_0x142fa8;let _0xcef8da=Ds(_0x38173c[_0x3c9c6b(0xfa)]);return{'decimalPlaces':ks(_0xcef8da[_0x3c9c6b(0x2dd)],0x0,0x14,0x2),'separatorStyle':typeof _0xcef8da['separatorStyle']==_0x3c9c6b(0x3a1)?_0xcef8da[_0x3c9c6b(0x2d8)]:_0x3c9c6b(0xf6),'locale':typeof _0xcef8da[_0x3c9c6b(0x2ec)]==_0x3c9c6b(0x3a1)?_0xcef8da['locale']:void 0x0,'useThousands':_0xcef8da[_0x3c9c6b(0x280)]!==!0x1,'abbreviation':typeof _0xcef8da[_0x3c9c6b(0x32a)]==_0x3c9c6b(0x3a1)?_0xcef8da[_0x3c9c6b(0x32a)]:'none'};}function Ss(_0x1e2a46){const _0x401178=_0x142fa8;let _0x619596=Ds(_0x1e2a46['config']);return{...xs(_0x1e2a46),'currencySymbol':String(_0x619596[_0x401178(0x24e)]??'$')};}function Cs(_0x2dda1b,_0x171c17){const _0x452fc2=_0x142fa8;let _0x37edf0=Ts(_0x171c17);if(_0x37edf0===os)return Es(_0x2dda1b);try{return String(_0x59e2da[_0x452fc2(0x2b8)](_0x37edf0,_0x2dda1b,{'throws':!0x1}));}catch{return Es(_0x2dda1b);}}function ws(_0x36e96c){const _0x31c1ce=_0x142fa8;let _0xd8eec5=Ds(Ds(_0x36e96c[_0x31c1ce(0xfa)])['numfmt']);return typeof _0xd8eec5['type']==_0x31c1ce(0x3a1)?_0xd8eec5[_0x31c1ce(0x35c)]:_0x31c1ce(0x31d);}function Ts(_0x5f3ade){const _0x58acc5=_0x142fa8;let _0x252fc2=Ds(Ds(_0x5f3ade['config'])['numfmt']);return String(_0x252fc2[_0x58acc5(0x3de)]??os)['trim']()||os;}function Es(_0x1374fe){const _0x5ea174=_0x142fa8;return String(Number[_0x5ea174(0x2de)](_0x1374fe)?_0x1374fe:Math[_0x5ea174(0x2f3)]((_0x1374fe+0x2**-0x34)*0x64)/0x64);}function Ds(_0x3e35f0){const _0x557528=_0x142fa8;return _0x3e35f0&&typeof _0x3e35f0==_0x557528(0x1e3)&&!Array[_0x557528(0x8f)](_0x3e35f0)?_0x3e35f0:{};}function Os(_0x460c66){const _0x26b394=_0x142fa8;if(_0x460c66==null||_0x460c66==='')return null;let _0xcad602=typeof _0x460c66=='number'?_0x460c66:Number(_0x460c66);return Number[_0x26b394(0x1a1)](_0xcad602)?_0xcad602:null;}function ks(_0x5193d9,_0xda7295,_0x38bff8,_0x5a0a65){const _0x1a969c=_0x142fa8;let _0x5b6280=Os(_0x5193d9);return _0x5b6280==null?_0x5a0a65:Math['max'](_0xda7295,Math[_0x1a969c(0x27d)](_0x38bff8,Math[_0x1a969c(0x2f3)](_0x5b6280)));}function As(_0x35aebd,_0xd5d03f){const _0x2bd234=_0x142fa8;let _0x4a0514=_0x3e4e1e[_0x2bd234(0x31f)](_0x35aebd),_0xe40860=_0xd5d03f[_0x2bd234(0x222)]===!0x0,_0x5a63d8=new Map(),_0x94c389=_0xd5d03f[_0x2bd234(0x1ea)]??(()=>_0x2bd234(0x1d8)+_0x1aa742(0x8)),_0x84c88b=_0x4a0514[_0x2bd234(0x29c)];return _0xd5d03f[_0x2bd234(0x12c)]&&(_0x84c88b=_0x4a0514[_0x2bd234(0x29c)][_0x2bd234(0x1bc)](_0x4fe199=>{const _0x55af03=_0x2bd234;let _0x5e5dba=_0x94c389();return _0x5a63d8[_0x55af03(0x23a)](_0x4fe199,_0x5e5dba),_0x5e5dba;})),{..._0x4a0514,'id':_0xd5d03f['id'],'name':_0xd5d03f[_0x2bd234(0x112)],'records':_0xe40860?_0x4a0514[_0x2bd234(0x309)]:{},'recordOrder':_0xe40860?_0x4a0514[_0x2bd234(0x18c)]:[],'rowIndex':_0xe40860?_0x4a0514[_0x2bd234(0x276)]:{},'rowId':_0xe40860?_0x4a0514[_0x2bd234(0x3f0)]:{},'cellData':_0xe40860?_0x4a0514[_0x2bd234(0x3b1)]:{},'resources':_0xe40860?_0x4a0514[_0x2bd234(0x1d4)]:{},'viewOrder':_0x84c88b,'views':Object[_0x2bd234(0xb5)](Object[_0x2bd234(0x274)](_0x4a0514[_0x2bd234(0x1df)]??{})['map'](([_0xad040b,_0x29560])=>{const _0x44a4a8=_0x2bd234;let _0x22ca05=_0x5a63d8[_0x44a4a8(0x12f)](_0xad040b)??(_0xd5d03f['regenerateViewIds']?_0x94c389():_0xad040b);return[_0x22ca05,{..._0x29560,'id':_0x22ca05,'tableId':_0xd5d03f['id']}];}))};}var js=_0x142fa8(0x3ec),Ms='1.0.0-rc.0';const Ns={},Ps={};function Fs(_0x183549){const _0x40c0ad=_0x142fa8;return new z()[_0x40c0ad(0x377)](_0x183549);}function Is(_0x220cb5){const _0xe5498b=_0x142fa8;return _0x220cb5[_0xe5498b(0x2f8)][_0xe5498b(0x1bc)](_0x1b5e6a=>({'unitId':_0x220cb5[_0xe5498b(0x22b)],'sheetId':_0x220cb5[_0xe5498b(0x90)],'range':{'startRow':_0x1b5e6a[_0xe5498b(0x1ae)],'endRow':_0x1b5e6a[_0xe5498b(0x1ae)],'startColumn':_0x1b5e6a[_0xe5498b(0x1c6)],'endColumn':_0x1b5e6a[_0xe5498b(0x1c6)]}}));}function Ls(_0x513f67,_0x53d8bd){const _0x2b48c0=_0x142fa8;return{[_0x513f67]:Object[_0x2b48c0(0xb5)](_0x53d8bd[_0x2b48c0(0x1bc)](_0x35a117=>[_0x35a117,'1']))};}let Rs=class extends _0x10ccd0{constructor(_0x4d0e60,_0x2870cb){const _0x58a805=_0x142fa8;super(),this[_0x58a805(0xc3)]=_0x4d0e60,this[_0x58a805(0x343)]=_0x2870cb,this[_0x58a805(0x397)]();}[_0x142fa8(0x397)](){const _0x3b98aa=_0x142fa8;this[_0x3b98aa(0xc3)]['register'](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x2db8d3=>this[_0x3b98aa(0x10c)](_0x2db8d3['params'])}),this[_0x3b98aa(0x3bf)](_0x2a43b1(()=>{const _0x253799=_0x3b98aa;this[_0x253799(0xc3)]['remove'](Q['id']);}));}[_0x142fa8(0x1cb)](_0x39113a,_0x12540a){const _0x506c42=_0x142fa8;let _0x233693=this[_0x506c42(0x343)][_0x506c42(0x9c)](_0x39113a,_0x5b7c15[_0x506c42(0x324)]);return(_0x233693==null?void 0x0:_0x233693[_0x506c42(0x3ea)]()[_0x506c42(0x3bd)][_0x12540a])??null;}['_getJson1DirtyData'](_0x23bc13){const _0x37a396=_0x142fa8;if(_0x23bc13[_0x37a396(0x325)]===_0x37a396(0x144))return{};if(!_0x23bc13[_0x37a396(0x22b)]||!_0x23bc13['op'])return{'clearDependencyTreeCache':this[_0x37a396(0x159)](),'forceCalculation':!0x0};let _0x2a14ca=Fs(_0x23bc13['op']),_0x10a1c5=this[_0x37a396(0x40d)](_0x23bc13['unitId'],_0x2a14ca);if(_0x10a1c5[_0x37a396(0x7d)])return{'clearDependencyTreeCache':Ls(_0x23bc13[_0x37a396(0x22b)],_0x10a1c5),'forceCalculation':!0x0};let _0x11f67a=Object[_0x37a396(0x274)](this[_0x37a396(0x21e)](_0x23bc13[_0x37a396(0x22b)],_0x2a14ca))[_0x37a396(0x167)](([_0x184f8c,_0x4b62d5])=>Is({'unitId':_0x23bc13[_0x37a396(0x22b)],'tableId':_0x184f8c,'patches':_0x4b62d5}));return _0x11f67a['length']?{'dirtyRanges':_0x11f67a}:{};}['_getStructureDirtyTableIds'](_0x55e96b,_0x273477){const _0xd362fc=_0x142fa8;let _0x438254=_0x273477['filter'](_0x4d3193=>_0x4d3193[_0xd362fc(0xb3)]!=='cell')['flatMap'](_0x57f019=>_0x57f019[_0xd362fc(0x90)]?[_0x57f019[_0xd362fc(0x90)]]:this[_0xd362fc(0x283)](_0x55e96b));return Array[_0xd362fc(0x35b)](new Set(_0x438254));}[_0x142fa8(0x21e)](_0x2ef904,_0x21f7fe){const _0x111500=_0x142fa8;let _0x404638=new Set();return _0x21f7fe[_0x111500(0x3c5)]((_0x49b735,_0x4e38c9)=>{const _0xc4b9dc=_0x111500;let _0x3f3c5f=this[_0xc4b9dc(0x3b3)](_0x2ef904,_0x4e38c9);if(!_0x3f3c5f)return _0x49b735;let _0x5d8f94=_0x4e38c9[_0xc4b9dc(0x90)]+':'+_0x3f3c5f['row']+':'+_0x3f3c5f[_0xc4b9dc(0x1c6)];return _0x404638['has'](_0x5d8f94)?_0x49b735:(_0x404638[_0xc4b9dc(0x28d)](_0x5d8f94),_0x49b735[_0x4e38c9['tableId']]=_0x49b735[_0x4e38c9['tableId']]??[],_0x49b735[_0x4e38c9[_0xc4b9dc(0x90)]]['push'](_0x3f3c5f),_0x49b735);},{});}[_0x142fa8(0x3b3)](_0x540e31,_0x569d92){const _0x356d9e=_0x142fa8;if(_0x569d92[_0x356d9e(0xb3)]!==_0x356d9e(0x346))return null;if(_0x569d92[_0x356d9e(0x1ae)]!=null&&_0x569d92[_0x356d9e(0xca)]!=null)return{'row':_0x569d92['row'],'col':_0x569d92[_0x356d9e(0xca)],'value':null};if(!_0x569d92[_0x356d9e(0x1ee)]||!_0x569d92[_0x356d9e(0x3c1)])return null;let _0x3d676b=this['_getTable'](_0x540e31,_0x569d92['tableId']);if(!_0x3d676b)return null;let _0x2cad67=_t(_0x3d676b,_0x569d92[_0x356d9e(0x1ee)],_0x569d92[_0x356d9e(0x3c1)]);return _0x2cad67?{'row':_0x2cad67[_0x356d9e(0x1ae)],'col':_0x2cad67['col'],'value':null}:null;}[_0x142fa8(0x283)](_0xc0146e){const _0x212a6a=_0x142fa8;let _0x12180b=this[_0x212a6a(0x343)][_0x212a6a(0x9c)](_0xc0146e,_0x5b7c15[_0x212a6a(0x324)]);return Object['values']((_0x12180b==null?void 0x0:_0x12180b[_0x212a6a(0x3ea)]()[_0x212a6a(0x3bd)])??{})[_0x212a6a(0x1bc)](_0x1f7129=>_0x1f7129['id']);}[_0x142fa8(0x159)](){const _0x366bf2=_0x142fa8;let _0x3407ae=this[_0x366bf2(0x343)]['getAllUnitsForType'](_0x5b7c15[_0x366bf2(0x324)])[_0x366bf2(0x1bc)](_0x4f0193=>Ls(_0x4f0193[_0x366bf2(0xb2)](),Object[_0x366bf2(0xd3)](_0x4f0193['getSnapshot']()[_0x366bf2(0x3bd)])));return Object['assign']({},..._0x3407ae);}};Rs=X([Y(0x0,_0x30ae7b),Y(0x1,_0x44289e)],Rs);let zs=class extends _0x10ccd0{constructor(_0x4a14f2,_0x27d434,_0x599fc4,_0x13a162){const _0x1a88d0=_0x142fa8;super(),this[_0x1a88d0(0x404)]=_0x4a14f2,this[_0x1a88d0(0x343)]=_0x27d434,this[_0x1a88d0(0x336)]=_0x599fc4,this[_0x1a88d0(0x293)]=_0x13a162,G(this,_0x1a88d0(0x1d6),new Xi()),G(this,_0x1a88d0(0x3d8),new Map()),G(this,_0x1a88d0(0x30e),new Set()),G(this,_0x1a88d0(0x419),Promise[_0x1a88d0(0x2c6)]()),G(this,_0x1a88d0(0x1ff),!0x1),this['_initialize']();}[_0x142fa8(0x397)](){const _0xc540a2=_0x142fa8;this[_0xc540a2(0x343)][_0xc540a2(0x34f)](_0x5b7c15[_0xc540a2(0x324)])[_0xc540a2(0x2e7)](_0x2af31c=>{const _0x329d8c=_0xc540a2;this[_0x329d8c(0xfb)](_0x2af31c);}),this[_0xc540a2(0x3bf)](this[_0xc540a2(0x343)][_0xc540a2(0x1e5)](_0x5b7c15[_0xc540a2(0x324)])['subscribe'](({unit:_0x3fd8ba})=>{const _0x2e7955=_0xc540a2;this[_0x2e7955(0xfb)](_0x3fd8ba);})),this[_0xc540a2(0x3bf)](this[_0xc540a2(0x343)]['getTypeOfUnitDisposed$'](_0x5b7c15[_0xc540a2(0x324)])[_0xc540a2(0x2d7)](_0x50a845=>{const _0x200af8=_0xc540a2;this[_0x200af8(0x165)](()=>this[_0x200af8(0x140)](_0x50a845[_0x200af8(0xb2)]()));})),this[_0xc540a2(0x3bf)](this[_0xc540a2(0x404)][_0xc540a2(0x1e6)](_0x1cefbc=>this[_0xc540a2(0x20a)](_0x1cefbc)));}[_0x142fa8(0x20a)](_0x1fec63){const _0x6eeb76=_0x142fa8;if(_0x1fec63['id']===_0x36ab71['id']){Vs(_0x1fec63[_0x6eeb76(0x3a7)])&&this[_0x6eeb76(0x428)](_0x1fec63[_0x6eeb76(0x3a7)]);return;}if(this[_0x6eeb76(0x1ff)]||_0x1fec63['id']!==Q['id'])return;let _0x4968b0=Bs(_0x1fec63[_0x6eeb76(0x3a7)])?_0x1fec63[_0x6eeb76(0x3a7)]:void 0x0,_0xd871ae=_0x4968b0!=null&&_0x4968b0[_0x6eeb76(0x22b)]?[this[_0x6eeb76(0x343)][_0x6eeb76(0x9c)](_0x4968b0[_0x6eeb76(0x22b)],_0x5b7c15[_0x6eeb76(0x324)])][_0x6eeb76(0x13c)](_0x38b426=>!!_0x38b426):this[_0x6eeb76(0x343)][_0x6eeb76(0x34f)](_0x5b7c15['UNIVER_BASE']),_0x16702a=_0x4968b0==null?void 0x0:_0x4968b0['op'];_0xd871ae[_0x6eeb76(0x2e7)](_0x1fc6f5=>{const _0x8abde3=_0x6eeb76;let _0x4dcc17=_0x16702a?Fs(_0x16702a):[];(!_0x16702a||_0x4dcc17[_0x8abde3(0x3b4)](_0x4d03db=>_0x4d03db['reason']!==_0x8abde3(0x346)))&&this[_0x8abde3(0xfb)](_0x1fc6f5);});}[_0x142fa8(0xfb)](_0x40bc4d){const _0x4a09ee=_0x142fa8;let _0x5ef693=_0x40bc4d[_0x4a09ee(0xb2)]();this[_0x4a09ee(0x30e)]['has'](_0x5ef693)||(this[_0x4a09ee(0x30e)][_0x4a09ee(0x28d)](_0x5ef693),this[_0x4a09ee(0x165)](async()=>{const _0xddb23a=_0x4a09ee;this['_scheduledSuperTableSyncs']['delete'](_0x5ef693),await this[_0xddb23a(0x1a4)](_0x40bc4d);}));}async[_0x142fa8(0x1a4)](_0x5589b3){const _0x2a8977=_0x142fa8;let _0x20ce2c=_0x5589b3[_0x2a8977(0xb2)](),_0x342c25=this[_0x2a8977(0x1d6)]['getSuperTableRegistrations'](_0x5589b3[_0x2a8977(0x3ea)]()),_0x3aceab=new Set(_0x342c25[_0x2a8977(0x1bc)](({tableName:_0x2ea733})=>_0x2ea733)),_0x32e90f=this[_0x2a8977(0x3d8)]['get'](_0x20ce2c)??new Set();for(let _0x5bda74 of _0x32e90f)if(!_0x3aceab[_0x2a8977(0x8e)](_0x5bda74)&&!await this['_executeSuperTableMutationWhileActive'](_0x4ccdda['id'],{'unitId':_0x20ce2c,'tableName':_0x5bda74}))return;for(let {tableName:_0x10d0e6,reference:_0x360f27}of _0x342c25)if(!await this['_executeSuperTableMutationWhileActive'](_0x30d71d['id'],{'unitId':_0x20ce2c,'tableName':_0x10d0e6,'reference':_0x360f27}))return;this[_0x2a8977(0x3d8)]['set'](_0x20ce2c,_0x3aceab);}async[_0x142fa8(0x140)](_0x36181e){const _0x2d0100=_0x142fa8;let _0x2995ad=this[_0x2d0100(0x3d8)][_0x2d0100(0x12f)](_0x36181e)??new Set();for(let _0x5647ed of _0x2995ad)if(!await this[_0x2d0100(0x388)](_0x4ccdda['id'],{'unitId':_0x36181e,'tableName':_0x5647ed}))return;this[_0x2d0100(0x3d8)][_0x2d0100(0x180)](_0x36181e);}async[_0x142fa8(0x388)](_0x4fd19f,_0x5cb77b){const _0x1b657f=_0x142fa8;return!this[_0x1b657f(0x2c8)]&&await this[_0x1b657f(0x404)][_0x1b657f(0x3c2)](_0x4fd19f,_0x5cb77b,{'onlyLocal':!0x0})&&!this['_disposed'];}[_0x142fa8(0x165)](_0x49d43b){const _0x2adb13=_0x142fa8;this[_0x2adb13(0x419)]=this['_formulaSyncQueue']['then'](_0x49d43b,_0x49d43b)[_0x2adb13(0x3f3)](()=>void 0x0);}['_applyFormulaResult'](_0x46766f){const _0x59e126=_0x142fa8;let _0x4faf41=this[_0x59e126(0x343)]['getAllUnitsForType'](_0x5b7c15['UNIVER_BASE']);if(!_0x4faf41[_0x59e126(0x3b4)](_0x2e8ccd=>{const _0x5f0df9=_0x59e126;var _0x170bc6;return((_0x170bc6=_0x46766f['unitData'])==null?void 0x0:_0x170bc6[_0x2e8ccd[_0x5f0df9(0xb2)]()])!=null;}))return;let _0x43b38a=_0x4faf41[_0x59e126(0x167)](_0x2b14ce=>Zi(_0x2b14ce[_0x59e126(0x3ea)](),_0x46766f));if(!_0x43b38a['length']){this['_formulaCalculationSessionService']['markResultApplied'](_0x3905d6['BASE'],_0x46766f);return;}let _0x3d8367=new W(),_0x2f5fe0=_0x43b38a[_0x59e126(0x167)](_0x1ab885=>Is({'unitId':_0x1ab885[_0x59e126(0x22b)],'tableId':_0x1ab885[_0x59e126(0x90)],'patches':_0x1ab885[_0x59e126(0x2f8)]}));this[_0x59e126(0x1ff)]=!0x0,(async()=>{const _0x53188d=_0x59e126;for(let _0x513f01 of _0x43b38a){let _0x11760e=this[_0x53188d(0x343)][_0x53188d(0x9c)](_0x513f01['unitId'],_0x5b7c15[_0x53188d(0x324)]);_0x11760e&&await this[_0x53188d(0x404)][_0x53188d(0x3c2)](Q['id'],{'unitId':_0x513f01[_0x53188d(0x22b)],'op':_0x3d8367[_0x53188d(0x2c5)](_0x11760e[_0x53188d(0x3ea)](),_0x513f01[_0x53188d(0x90)],_0x513f01[_0x53188d(0x2f8)]),'trigger':_0x36ab71['id']},{'onlyLocal':!0x0});}await this['_commandService'][_0x53188d(0x3c2)](_0x1cab84['id'],{'dirtyRanges':_0x2f5fe0},{'onlyLocal':!0x0});})()['finally'](()=>{const _0xa6a6f8=_0x59e126;this[_0xa6a6f8(0x1ff)]=!0x1,this[_0xa6a6f8(0x293)][_0xa6a6f8(0x148)](_0x3905d6[_0xa6a6f8(0x246)],_0x46766f);});}};zs=X([Y(0x0,_0x3c2684),Y(0x1,_0x44289e),Y(0x2,_0x41ade0(_0x205669)),Y(0x3,_0x41ade0(_0x30a9fb))],zs);function Bs(_0x51881a){const _0x1de3c7=_0x142fa8;return typeof _0x51881a=='object'&&!!_0x51881a&&'unitId'in _0x51881a&&typeof _0x51881a[_0x1de3c7(0x22b)]==_0x1de3c7(0x3a1)&&'op'in _0x51881a&&Array['isArray'](_0x51881a['op']);}function Vs(_0x45a543){const _0x9a0989=_0x142fa8;return typeof _0x45a543==_0x9a0989(0x1e3)&&!!_0x45a543&&_0x9a0989(0x218)in _0x45a543&&_0x9a0989(0xd4)in _0x45a543;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x10ccd0{constructor(_0x503049,_0xdaa454,_0x53724d,_0x5bd825){const _0x377f47=_0x142fa8;super(),this['_injector']=_0x503049,this[_0x377f47(0x404)]=_0xdaa454,this[_0x377f47(0x2e0)]=_0x53724d,this[_0x377f47(0x313)]=_0x5bd825,this[_0x377f47(0x313)][_0x377f47(0x34f)](_0x5b7c15[_0x377f47(0x324)])[_0x377f47(0x2e7)](_0x58b7bc=>this['_registerUnitPermissionPoints'](_0x58b7bc[_0x377f47(0xb2)]())),this[_0x377f47(0x3bf)](this[_0x377f47(0x313)][_0x377f47(0x1e5)](_0x5b7c15['UNIVER_BASE'])[_0x377f47(0x2d7)](({unit:_0x5db9f7})=>this['_registerUnitPermissionPoints'](_0x5db9f7[_0x377f47(0xb2)]()))),this[_0x377f47(0x3bf)](this[_0x377f47(0x404)][_0x377f47(0x430)]((_0x25e6e3,_0x4f75b5)=>this['_check'](_0x25e6e3,_0x4f75b5))),this[_0x377f47(0x3bf)](this[_0x377f47(0x313)][_0x377f47(0x109)](_0x5b7c15['UNIVER_BASE'])[_0x377f47(0x2d7)](_0x639332=>{const _0x40b5a8=_0x377f47;this[_0x40b5a8(0x2b7)][_0x40b5a8(0x12f)](_0x421939)[_0x40b5a8(0x393)](_0x639332[_0x40b5a8(0xb2)]()),Rr(this[_0x40b5a8(0x2e0)],_0x639332[_0x40b5a8(0xb2)]());}));}['_registerUnitPermissionPoints'](_0xc1a88b){const _0x4c6e4d=_0x142fa8;Tr[_0x4c6e4d(0x2e7)](_0xa34316=>{const _0x1903dd=_0x4c6e4d;let _0x78c4f5=Pr(_0xc1a88b,_0xc1a88b,_0xa34316);this[_0x1903dd(0x2e0)][_0x1903dd(0x405)](_0x78c4f5['id'])||this['_permissionService'][_0x1903dd(0x1a6)](_0x78c4f5);}),this[_0x4c6e4d(0x2b7)]['get'](_0x421939)[_0x4c6e4d(0x142)]({'unitId':_0xc1a88b,'objectId':_0xc1a88b,'objectType':_0x16a23b['Base']});}[_0x142fa8(0x89)](_0x4e62cd,_0x233088){const _0x171e7c=_0x142fa8;var _0x1dc4f2;if(_0x233088!=null&&_0x233088[_0x171e7c(0x424)]||_0x233088!=null&&_0x233088[_0x171e7c(0x3d6)])return;let _0x263c28=tc(_0x4e62cd[_0x171e7c(0x3a7)])?_0x4e62cd['params']:void 0x0;if(_0x233088!=null&&_0x233088[_0x171e7c(0x369)]&&_0x4e62cd['id']==='base.mutation.apply-base-json1'&&(_0x263c28==null?void 0x0:_0x263c28[_0x171e7c(0x325)])===_0x36ab71['id'])return;let _0x5446f6=Gs(_0x4e62cd['id']),_0x16a276=Ws(_0x263c28==null?void 0x0:_0x263c28[_0x171e7c(0x22b)],_0x233088)??(_0x5446f6?(_0x1dc4f2=this[_0x171e7c(0x313)][_0x171e7c(0x387)](_0x5b7c15['UNIVER_BASE']))==null?void 0x0:_0x1dc4f2[_0x171e7c(0xb2)]():void 0x0);if(!_0x16a276||this[_0x171e7c(0x313)][_0x171e7c(0x16a)](_0x16a276)!==_0x5b7c15[_0x171e7c(0x324)])return;if(_0x5446f6){if(!Fr(this[_0x171e7c(0x2e0)],_0x16a276,_0x16a276,_0x5446f6))throw this['_injector'][_0x171e7c(0x12f)](_0x5164e7)[_0x171e7c(0x339)](_0x16a276),new _0x148f06(_0x171e7c(0x361)+_0x2a0fb0[_0x5446f6]+_0x171e7c(0x3cc));return;}if(Hs['has'](_0x4e62cd['id'])||!_0x4e62cd['id'][_0x171e7c(0x38d)]('base.command.')&&!_0x4e62cd['id'][_0x171e7c(0x38d)](_0x171e7c(0x155)))return;let _0x3ad4f9=this[_0x171e7c(0x313)][_0x171e7c(0x9c)](_0x16a276,_0x5b7c15[_0x171e7c(0x324)]),_0x509340=_0x3ad4f9?Ks(_0x3ad4f9,_0x263c28??{},_0x4e62cd['id']):[];if(!_0x3ad4f9||!zr(this[_0x171e7c(0x2e0)],_0x16a276,_0x509340))throw this['_injector']['get'](_0x5164e7)[_0x171e7c(0x339)](_0x16a276,_0x509340),new _0x148f06(_0x171e7c(0x2cc));}};Us=X([Y(0x0,_0x41ade0(_0x2be356)),Y(0x1,_0x3c2684),Y(0x2,_0x385c73),Y(0x3,_0x44289e)],Us);function Ws(_0x34b492,_0x548053){const _0x2e37c9=_0x142fa8;return typeof _0x34b492==_0x2e37c9(0x3a1)?_0x34b492:typeof(_0x548053==null?void 0x0:_0x548053[_0x2e37c9(0x22b)])==_0x2e37c9(0x3a1)?_0x548053['unitId']:void 0x0;}function Gs(_0x1d6a07){const _0xd44257=_0x142fa8;if(_0x1d6a07===_0xd44257(0x235)||_0x1d6a07===_0xd44257(0x1ad))return _0x2a0fb0[_0xd44257(0x173)];if(_0x1d6a07[_0xd44257(0x38d)](_0xd44257(0x33e))||_0x1d6a07[_0xd44257(0x38d)](_0xd44257(0x399)))return _0x2a0fb0[_0xd44257(0x23c)];}function _0x3f85(_0x175102,_0x3140e1){_0x175102=_0x175102-0x7d;const _0xbe3171=_0xbe31();let _0x3f852e=_0xbe3171[_0x175102];return _0x3f852e;}function Ks(_0xe990d5,_0x15f2a3,_0x226e87){const _0x34dd30=_0x142fa8;if(_0x226e87==='base.mutation.apply-base-json1'&&ec(_0x15f2a3['op']))return qs(_0xe990d5,_0x15f2a3['op']);let _0x3758d2=new Set(),_0x57df7e=Zs(_0x15f2a3,_0x34dd30(0x108)),_0x348ce9=typeof _0x15f2a3[_0x34dd30(0x90)]==_0x34dd30(0x3a1)?_0x15f2a3[_0x34dd30(0x90)]:_0x57df7e[0x0];if(_0x57df7e[_0x34dd30(0x2e7)](_0x13e4df=>_0x3758d2[_0x34dd30(0x28d)](K(_0x13e4df))),!_0x348ce9)return[..._0x3758d2];let _0x476ea9=_0xe990d5['getSnapshot']()['tables'][_0x348ce9],_0x579461=new Set(Zs(_0x15f2a3,'field')),_0x4dd461=new Set(Zs(_0x15f2a3,_0x34dd30(0x3ad))),_0x3c652d=new Set(Zs(_0x15f2a3,_0x34dd30(0x395)));return Qs(_0x476ea9,_0x15f2a3[_0x34dd30(0x2f8)],_0x4dd461,_0x579461),$s(_0x15f2a3,_0x579461),_0x579461['forEach'](_0x4b1aa0=>_0x3758d2['add'](q(_0x348ce9,_0x4b1aa0))),_0x4dd461[_0x34dd30(0x2e7)](_0x208b55=>_0x3758d2['add'](J(_0x348ce9,_0x208b55))),_0x3c652d['forEach'](_0x40549b=>_0x3758d2['add'](Mr(_0x348ce9,_0x40549b))),[..._0x3758d2];}function qs(_0x4a68d7,_0x51b2ef){const _0x246099=_0x142fa8;let _0x5c0e92=_0x4a68d7[_0x246099(0x3ea)](),_0x91c8d4=new z()[_0x246099(0x377)](_0x51b2ef),_0x3e529f=Js(_0x51b2ef),_0x548671=new Set();return _0x91c8d4[_0x246099(0x2e7)](_0x19a079=>{const _0x482366=_0x246099;var _0x35b3dc,_0x2e71c9;let {tableId:_0x258aa5}=_0x19a079;if(!_0x258aa5)return;_0x548671[_0x482366(0x28d)](K(_0x258aa5));let _0x5a4168=_0x5c0e92['tables'][_0x258aa5],_0x18beae=_0x19a079[_0x482366(0x1ee)]??(_0x19a079[_0x482366(0x1ae)]==null||_0x5a4168==null||(_0x35b3dc=_0x5a4168[_0x482366(0x3f0)])==null?void 0x0:_0x35b3dc[_0x19a079[_0x482366(0x1ae)]]),_0x506aba=_0x19a079[_0x482366(0x3c1)]??(_0x19a079[_0x482366(0xca)]==null||_0x5a4168==null||(_0x2e71c9=_0x5a4168[_0x482366(0xf8)])==null?void 0x0:_0x2e71c9[_0x19a079[_0x482366(0xca)]]);_0x18beae&&_0x548671['add'](J(_0x258aa5,_0x18beae)),_0x506aba&&_0x548671[_0x482366(0x28d)](q(_0x258aa5,_0x506aba)),_0x19a079[_0x482366(0xa8)]&&_0x548671[_0x482366(0x28d)](Mr(_0x258aa5,_0x19a079['viewId'])),(_0x19a079[_0x482366(0xb3)]==='table'||_0x3e529f[_0x482366(0x8e)](_0x258aa5))&&_0x5a4168&&(Object[_0x482366(0xd3)](_0x5a4168['fields'])[_0x482366(0x2e7)](_0x2c9bf3=>_0x548671['add'](q(_0x258aa5,_0x2c9bf3))),Object[_0x482366(0xd3)](_0x5a4168[_0x482366(0x309)])[_0x482366(0x2e7)](_0x81263b=>_0x548671['add'](J(_0x258aa5,_0x81263b))),Object[_0x482366(0xd3)](_0x5a4168[_0x482366(0x1df)])[_0x482366(0x2e7)](_0x3b9550=>_0x548671[_0x482366(0x28d)](Mr(_0x258aa5,_0x3b9550)))),_0x19a079['reason']===_0x482366(0x3ad)&&_0x5a4168&&Object['keys'](_0x5a4168['fields'])[_0x482366(0x2e7)](_0xe8d5ad=>_0x548671[_0x482366(0x28d)](q(_0x258aa5,_0xe8d5ad)));}),_0x91c8d4[_0x246099(0x7d)]===0x0&&Xs(_0x51b2ef,_0x246099(0x1c3))&&Object[_0x246099(0xd3)](_0x5c0e92['tables'])[_0x246099(0x2e7)](_0x5bd1c4=>_0x548671[_0x246099(0x28d)](K(_0x5bd1c4))),[..._0x548671];}function Js(_0x1be291){let _0x4a1cdd=new Set(),_0x5b5328=_0x144ef4=>{const _0x54d1e1=_0x3f85;Array[_0x54d1e1(0x8f)](_0x144ef4)&&_0x144ef4['forEach']((_0x480647,_0x287b09)=>{const _0x952ef0=_0x54d1e1;_0x480647===_0x952ef0(0x3bd)&&typeof _0x144ef4[_0x287b09+0x1]=='string'&&Ys(_0x144ef4[_0x287b09+0x2])&&_0x4a1cdd[_0x952ef0(0x28d)](_0x144ef4[_0x287b09+0x1]),_0x5b5328(_0x480647);});};return _0x5b5328(_0x1be291),_0x4a1cdd;}function Ys(_0x129c24){const _0x193acc=_0x142fa8;return!!_0x129c24&&typeof _0x129c24==_0x193acc(0x1e3)&&!Array[_0x193acc(0x8f)](_0x129c24)&&('i'in _0x129c24||'r'in _0x129c24||'p'in _0x129c24||'d'in _0x129c24||'es'in _0x129c24||_0x193acc(0x126)in _0x129c24||'et'in _0x129c24);}function Xs(_0x327a31,_0x100d51){const _0x470809=_0x142fa8;return Array[_0x470809(0x8f)](_0x327a31)&&_0x327a31[_0x470809(0x3b4)](_0x521eab=>_0x521eab===_0x100d51||Xs(_0x521eab,_0x100d51));}function Zs(_0x20f7f7,_0x1c8aa0){const _0x3f69b1=_0x142fa8;let _0x30061b=new Set(),_0x104b1e=_0x1c8aa0+'Id',_0x14ee2d=_0x1c8aa0+_0x3f69b1(0xe0),_0x5ca0d1=(_0x14fba0,_0x462c47='')=>{const _0x39f315=_0x3f69b1;if(typeof _0x14fba0=='string'){_0x462c47===_0x104b1e&&_0x30061b[_0x39f315(0x28d)](_0x14fba0);return;}if(Array[_0x39f315(0x8f)](_0x14fba0)){_0x462c47===_0x14ee2d?_0x14fba0[_0x39f315(0x2e7)](_0x2e9d4c=>{const _0x14df98=_0x39f315;typeof _0x2e9d4c=='string'&&_0x30061b[_0x14df98(0x28d)](_0x2e9d4c);}):_0x14fba0[_0x39f315(0x2e7)](_0x234956=>_0x5ca0d1(_0x234956,_0x462c47));return;}tc(_0x14fba0)&&Object['entries'](_0x14fba0)['forEach'](([_0x3af029,_0x1e519b])=>{const _0x2c872e=_0x39f315;_0x3af029==='id'&&_0x462c47===_0x1c8aa0&&typeof _0x1e519b==_0x2c872e(0x3a1)?_0x30061b[_0x2c872e(0x28d)](_0x1e519b):_0x5ca0d1(_0x1e519b,_0x3af029);});};return _0x5ca0d1(_0x20f7f7),[..._0x30061b];}function Qs(_0x2d2c10,_0x48764e,_0x5bd433,_0x29796f){const _0x1a2972=_0x142fa8;!_0x2d2c10||!Array[_0x1a2972(0x8f)](_0x48764e)||_0x48764e[_0x1a2972(0x2e7)](_0x4d81c4=>{const _0x540b82=_0x1a2972;if(!tc(_0x4d81c4))return;let _0x94613b=_0x4d81c4;if(typeof _0x94613b[_0x540b82(0x1ae)]==_0x540b82(0xcb)){var _0x52e343;let _0x484848=(_0x52e343=_0x2d2c10['rowId'])==null?void 0x0:_0x52e343[_0x94613b[_0x540b82(0x1ae)]];_0x484848&&_0x5bd433[_0x540b82(0x28d)](_0x484848);}if(typeof _0x94613b[_0x540b82(0x1c6)]==_0x540b82(0xcb)){var _0x3abcb2;let _0x19085c=(_0x3abcb2=_0x2d2c10[_0x540b82(0xf8)])==null?void 0x0:_0x3abcb2[_0x94613b[_0x540b82(0x1c6)]];_0x19085c&&_0x29796f[_0x540b82(0x28d)](_0x19085c);}});}function $s(_0x271eb0,_0x4e85f5,_0xe7c397=''){const _0x3fcd53=_0x142fa8;if(!(!_0x271eb0||typeof _0x271eb0!=_0x3fcd53(0x1e3))){if(Array[_0x3fcd53(0x8f)](_0x271eb0)){_0x271eb0[_0x3fcd53(0x2e7)](_0x35bde0=>$s(_0x35bde0,_0x4e85f5,_0xe7c397));return;}tc(_0x271eb0)&&Object[_0x3fcd53(0x274)](_0x271eb0)['forEach'](([_0x2a6e74,_0x95a725])=>{_0xe7c397==='values'&&_0x4e85f5['add'](_0x2a6e74),$s(_0x95a725,_0x4e85f5,_0x2a6e74);});}}function ec(_0x57cacd){return Array['isArray'](_0x57cacd);}function tc(_0x5ad65f){const _0x3ffe76=_0x142fa8;return typeof _0x5ad65f==_0x3ffe76(0x1e3)&&!!_0x5ad65f&&!Array[_0x3ffe76(0x8f)](_0x5ad65f);}const nc=_0x13a3c3(_0x142fa8(0x17e));let rc=class{constructor(_0x1824b8){this['_univerInstanceService']=_0x1824b8;}[_0x142fa8(0xde)](_0x782ee6){const _0x5339fe=_0x142fa8;return this[_0x5339fe(0x343)][_0x5339fe(0x9c)](_0x782ee6,_0x5b7c15['UNIVER_BASE'])??null;}[_0x142fa8(0x191)](){const _0x530ded=_0x142fa8;return this[_0x530ded(0x343)][_0x530ded(0x34f)](_0x5b7c15[_0x530ded(0x324)]);}['createBase'](_0x3b445e){const _0x3436e4=_0x142fa8;return this[_0x3436e4(0x343)]['createUnit'](_0x5b7c15['UNIVER_BASE'],_0x3b445e);}};rc=X([Y(0x0,_0x44289e)],rc);const ic=_0x13a3c3(_0x142fa8(0x1a3));var ac=class extends _0x10ccd0{constructor(..._0x21b1bc){const _0xe7cec6=_0x142fa8;super(..._0x21b1bc),G(this,_0xe7cec6(0x115),new Map());}[_0x142fa8(0x2a2)](_0x5f0663){const _0x14dce7=_0x142fa8;return this[_0x14dce7(0x115)][_0x14dce7(0x23a)](_0x5f0663[_0x14dce7(0x35c)],_0x5f0663),_0x2a43b1(()=>this[_0x14dce7(0x115)]['delete'](_0x5f0663[_0x14dce7(0x35c)]));}[_0x142fa8(0x12f)](_0x1f37f1){const _0x554b81=_0x142fa8;let _0x15253b=this[_0x554b81(0x115)][_0x554b81(0x12f)](_0x1f37f1);if(!_0x15253b)throw Error(_0x554b81(0x236)+_0x1f37f1+'\x22\x20is\x20not\x20registered.');return _0x15253b;}[_0x142fa8(0x385)](){const _0x47fb1e=_0x142fa8;return Array[_0x47fb1e(0x35b)](this['_plugins'][_0x47fb1e(0x307)]());}};const oc=[Q];let sc=class extends _0x49669a{constructor(_0x4b54a4=Ns,_0x3f37a8,_0x23a222,_0x341bc4,_0x432a8e,_0x5af0aa){const _0x2eb655=_0x142fa8;super(),this[_0x2eb655(0x42b)]=_0x4b54a4,this[_0x2eb655(0x2b7)]=_0x3f37a8,this['_commandService']=_0x23a222,this[_0x2eb655(0x343)]=_0x341bc4,this[_0x2eb655(0x13f)]=_0x432a8e,this[_0x2eb655(0x35e)]=_0x5af0aa,G(this,_0x2eb655(0x134),new Map());let {..._0x3aa33f}=_0x5a1217({},Ns,this['_config']);this['_configService'][_0x2eb655(0x224)](_0x2eb655(0x91),_0x3aa33f),this['_univerInstanceService'][_0x2eb655(0x20b)](_0x5b7c15['UNIVER_BASE'],_0x403b04),this[_0x2eb655(0x3fb)](),this[_0x2eb655(0x37e)](),this['_initRegistries'](),this['_initDataSync']();}[_0x142fa8(0x2fe)](){const _0x2322e9=_0x142fa8;this[_0x2322e9(0x2b7)]['add']([Lo]),this[_0x2322e9(0x3bf)](this['_injector'][_0x2322e9(0x12f)](_0x3c2684)['registerCommand'](Ro)),this['disposeWithMe'](this[_0x2322e9(0x2b7)][_0x2322e9(0x12f)](_0x3c2684)['registerCommand'](zo)),this[_0x2322e9(0x3bf)](this[_0x2322e9(0x2b7)][_0x2322e9(0x12f)](_0x421939)[_0x2322e9(0x27f)](_0x16a23b['Base'],this[_0x2322e9(0x2b7)]['get'](Lo),Ro['id'],zo['id']));}[_0x142fa8(0x2ba)](){const _0x4422cb=_0x142fa8;_0xfbf5ef(this[_0x4422cb(0x2b7)],[[rc],[qr],[Rs]]),this['_univerInstanceService'][_0x4422cb(0x34f)](_0x5b7c15['UNIVER_BASE'])['forEach'](_0x2c12a9=>this[_0x4422cb(0xd2)](_0x2c12a9['getUnitId']())),_0xfbf5ef(this[_0x4422cb(0x2b7)],[[zs],[Us]]);}[_0x142fa8(0x3fb)](){const _0x6e14c6=_0x142fa8;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x6e14c6(0x2e7)](_0x2899a6=>this[_0x6e14c6(0x2b7)][_0x6e14c6(0x28d)](_0x2899a6));}['_initCommands'](){const _0x4cfdd1=_0x142fa8;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc][_0x4cfdd1(0x2e7)](_0x2a8a6b=>this['disposeWithMe'](this[_0x4cfdd1(0x404)][_0x4cfdd1(0x32d)](_0x2a8a6b))),oc['forEach'](_0x3af673=>{const _0x18e038=_0x4cfdd1;var _0x55f223;return(_0x55f223=this[_0x18e038(0x35e)])==null?void 0x0:_0x55f223[_0x18e038(0x2ca)](_0x3af673);});}['_initDataSync'](){const _0x420e42=_0x142fa8;this[_0x420e42(0x35e)]&&(this[_0x420e42(0x3bf)](this[_0x420e42(0x343)][_0x420e42(0x1e5)](_0x5b7c15[_0x420e42(0x324)])[_0x420e42(0x2d7)](({unit:_0x56d4df})=>{const _0x4c98f9=_0x420e42;this[_0x4c98f9(0xd2)](_0x56d4df['getUnitId']());})),this['disposeWithMe'](this[_0x420e42(0x343)][_0x420e42(0x109)](_0x5b7c15[_0x420e42(0x324)])[_0x420e42(0x2d7)](_0x45a473=>{const _0x23c940=_0x420e42;var _0x4823a7;(_0x4823a7=this[_0x23c940(0x134)]['get'](_0x45a473['getUnitId']()))==null||_0x4823a7[_0x23c940(0x3fa)](),this[_0x23c940(0x134)][_0x23c940(0x180)](_0x45a473[_0x23c940(0xb2)]());})));}[_0x142fa8(0xd2)](_0x23b2d5){const _0x3f582c=_0x142fa8;!this[_0x3f582c(0x35e)]||this['_baseSyncDisposables']['has'](_0x23b2d5)||this[_0x3f582c(0x134)][_0x3f582c(0x23a)](_0x23b2d5,this[_0x3f582c(0x35e)][_0x3f582c(0x9d)](_0x23b2d5));}['_initRegistries'](){const _0x480ac0=_0x142fa8;let _0x45bf90=this[_0x480ac0(0x2b7)][_0x480ac0(0x12f)](mr);zn()['forEach'](_0x1fe138=>_0x45bf90[_0x480ac0(0x2a2)](_0x1fe138));let _0x357905=this['_injector'][_0x480ac0(0x12f)](ic),_0xae0f5=this[_0x480ac0(0x2b7)]['get'](ii);$r()[_0x480ac0(0x2e7)](_0xe2b799=>{const _0x44ed6d=_0x480ac0;_0x357905['register'](_0xe2b799),_0xae0f5[_0x44ed6d(0x220)](_0xe2b799);});}};G(sc,'pluginName',_0x142fa8(0x25a)),G(sc,'packageName',js),G(sc,'version',Ms),G(sc,'type',_0x5b7c15['UNIVER_BASE']),sc=X([_0x3244a1(_0x490beb,_0x182417),Y(0x1,_0x41ade0(_0x2be356)),Y(0x2,_0x3c2684),Y(0x3,_0x44289e),Y(0x4,_0x5e3bb9),Y(0x5,_0x54ab61(_0x211e68))],sc);let cc=class extends _0x49669a{constructor(_0x3389ba=Ps,_0x242034,_0x4ac1ce,_0x4122b2,_0x21da27){const _0x208b56=_0x142fa8;super(),this[_0x208b56(0x42b)]=_0x3389ba,this['_injector']=_0x242034,this[_0x208b56(0x404)]=_0x4ac1ce,this[_0x208b56(0x13f)]=_0x4122b2,this[_0x208b56(0x343)]=_0x21da27;let {..._0x553890}=_0x5a1217({},Ps,this[_0x208b56(0x42b)]);this[_0x208b56(0x13f)][_0x208b56(0x224)](_0x208b56(0x39a),_0x553890),this[_0x208b56(0x343)]['registerCtorForType'](_0x5b7c15[_0x208b56(0x324)],_0x403b04),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0x208b56(0x2e7)](_0x4b3d42=>this[_0x208b56(0x2b7)][_0x208b56(0x28d)](_0x4b3d42)),oc[_0x208b56(0x2e7)](_0x766a37=>this['disposeWithMe'](this[_0x208b56(0x404)]['registerCommand'](_0x766a37)));}};G(cc,'pluginName','REMOTE_BASES_PLUGIN'),G(cc,_0x142fa8(0x16d),js),G(cc,'version',Ms),G(cc,'type',_0x5b7c15[_0x142fa8(0x324)]),cc=X([_0x3244a1(_0x490beb,_0x182417),Y(0x1,_0x41ade0(_0x2be356)),Y(0x2,_0x3c2684),Y(0x3,_0x5e3bb9),Y(0x4,_0x44289e)],cc);function lc(_0x1f7158){const _0x4de9fd=_0x142fa8;let _0x179dcf=Cc(_0x1f7158[_0x4de9fd(0x127)]);if(!_0x179dcf)return{'query':'','total':0x0,'matches':[]};let _0x4bc5fa=[],_0x4469ef=[];for(let _0x4b4dbe=0x0;_0x4b4dbe<_0x1f7158[_0x4de9fd(0x26c)][_0x4de9fd(0x7d)];_0x4b4dbe++){if(!(_0x4b4dbe in _0x1f7158[_0x4de9fd(0x26c)]))continue;let _0x2cf71d=_0x1f7158['table'][_0x4de9fd(0x37f)][_0x1f7158[_0x4de9fd(0x26c)][_0x4b4dbe]];_0x2cf71d&&_0x4469ef[_0x4de9fd(0x319)]({'field':_0x2cf71d,'fieldIndex':_0x4b4dbe});}_0x1f7158[_0x4de9fd(0x308)][_0x4de9fd(0x2e7)]((_0x5ec976,_0x24bbc4)=>{const _0x1ddcf1=_0x4de9fd;_0x4469ef[_0x1ddcf1(0x2e7)](({field:_0x3f3971,fieldIndex:_0xb8c429})=>{const _0xb11073=_0x1ddcf1;let _0x3c9fe1=uc(_0x5ec976[_0xb11073(0x307)][_0x3f3971['id']],_0x3f3971);if(!_0x3c9fe1)return;let _0x3b24e2=Sc(_0x179dcf,_0x3c9fe1[_0xb11073(0x2a1)]);_0x3b24e2<=0x0||_0x4bc5fa[_0xb11073(0x319)]({'recordId':_0x5ec976[_0xb11073(0x1ee)],'fieldId':_0x3f3971['id'],'fieldType':_0x3f3971[_0xb11073(0x35c)],'text':_0x3c9fe1['displayText'],'score':_0x3b24e2,'rowIndex':_0x24bbc4,'fieldIndex':_0xb8c429});});}),_0x4bc5fa[_0x4de9fd(0x34b)]((_0x1dc18f,_0x310d21)=>_0x310d21[_0x4de9fd(0xf2)]-_0x1dc18f[_0x4de9fd(0xf2)]||_0x1dc18f['rowIndex']-_0x310d21[_0x4de9fd(0x276)]||_0x1dc18f['fieldIndex']-_0x310d21[_0x4de9fd(0x300)]);let _0x18af6b=_0x1f7158[_0x4de9fd(0x38b)]==null?_0x4bc5fa:_0x4bc5fa[_0x4de9fd(0x3e0)](0x0,Math[_0x4de9fd(0x41f)](0x0,_0x1f7158[_0x4de9fd(0x38b)]));return{'query':_0x179dcf,'total':_0x4bc5fa[_0x4de9fd(0x7d)],'matches':Tc(_0x18af6b)};}function uc(_0x3f3073,_0x214b7a){const _0x20f313=_0x142fa8;let _0xc6cbf1=[];for(let _0x3bcb37 of fc(_0x3f3073,_0x214b7a)){let _0x664a6a=Cc(_0x3bcb37);_0x664a6a&&_0xc6cbf1[_0x20f313(0x319)](_0x664a6a);}return _0xc6cbf1[_0x20f313(0x7d)]?{'displayText':dc(_0x3f3073,_0x214b7a),'searchTexts':wc(_0xc6cbf1)}:null;}function dc(_0x383540,_0x1e1f52){const _0x15ec6c=_0x142fa8;switch(_0x1e1f52['type']){case _0x2348b1['SingleSelect']:case _0x2348b1[_0x15ec6c(0x3b0)]:case _0x2348b1[_0x15ec6c(0x12d)]:return pc(_0x383540,_0x1e1f52)[_0x15ec6c(0x2b0)](',\x20');case _0x2348b1['Link']:return gc(_0x383540);case _0x2348b1[_0x15ec6c(0xff)]:case _0x2348b1[_0x15ec6c(0x434)]:case _0x2348b1['UpdatedAt']:return _c(_0x383540,_0x1e1f52);case _0x2348b1[_0x15ec6c(0xe6)]:case _0x2348b1[_0x15ec6c(0x1c1)]:return vc(_0x383540,_0x1e1f52);case _0x2348b1[_0x15ec6c(0x2cb)]:return yc(_0x383540,_0x1e1f52);case _0x2348b1[_0x15ec6c(0x326)]:return _0x383540?_0x15ec6c(0x1f0):_0x15ec6c(0x211);case _0x2348b1['Attachment']:return bc(_0x383540)['join'](',\x20');default:return xc(_0x383540);}}function fc(_0x1c4fc6,_0x1aa220){const _0x33e7d0=_0x142fa8;switch(_0x1aa220[_0x33e7d0(0x35c)]){case _0x2348b1[_0x33e7d0(0x14e)]:case _0x2348b1[_0x33e7d0(0x3b0)]:case _0x2348b1[_0x33e7d0(0x12d)]:{let _0x273b90=pc(_0x1c4fc6,_0x1aa220);if(Array['isArray'](_0x1c4fc6)){let _0x42aa73=[..._0x273b90];for(let _0x35fbcf=0x0;_0x35fbcf<_0x1c4fc6[_0x33e7d0(0x7d)];_0x35fbcf++)_0x35fbcf in _0x1c4fc6&&_0x42aa73[_0x33e7d0(0x319)](String(_0x1c4fc6[_0x35fbcf]));return _0x42aa73;}return _0x1c4fc6==null?_0x273b90:[..._0x273b90,String(_0x1c4fc6)];}case _0x2348b1['Link']:{let _0x3724d4=hc(_0x1c4fc6);return[_0x3724d4['text'],_0x3724d4['url']];}case _0x2348b1['Date']:case _0x2348b1['CreatedAt']:case _0x2348b1[_0x33e7d0(0x259)]:return[_c(_0x1c4fc6,_0x1aa220),xc(_0x1c4fc6)];case _0x2348b1[_0x33e7d0(0xe6)]:case _0x2348b1[_0x33e7d0(0x1c1)]:return[vc(_0x1c4fc6,_0x1aa220),xc(_0x1c4fc6)];case _0x2348b1['Progress']:return[yc(_0x1c4fc6,_0x1aa220),xc(_0x1c4fc6)];case _0x2348b1[_0x33e7d0(0x326)]:return _0x1c4fc6?[_0x33e7d0(0x1f0),_0x33e7d0(0x411),_0x33e7d0(0x168)]:['Unchecked','No',_0x33e7d0(0x349)];case _0x2348b1[_0x33e7d0(0x2af)]:return bc(_0x1c4fc6);default:return[xc(_0x1c4fc6)];}}function pc(_0x47dbfc,_0x581093){const _0x588992=_0x142fa8;var _0xbc46cd;let _0x9bbe80=Array[_0x588992(0x8f)]((_0xbc46cd=_0x581093[_0x588992(0xfa)])==null?void 0x0:_0xbc46cd[_0x588992(0xbd)])?_0x581093[_0x588992(0xfa)][_0x588992(0xbd)]:[],_0x2f0204=[];if(Array[_0x588992(0x8f)](_0x47dbfc)){for(let _0x43da16=0x0;_0x43da16<_0x47dbfc[_0x588992(0x7d)];_0x43da16++){if(!(_0x43da16 in _0x47dbfc))continue;let _0x4bd0c7=String(_0x47dbfc[_0x43da16]);_0x4bd0c7&&_0x2f0204['push'](mc(_0x9bbe80,_0x4bd0c7));}return _0x2f0204;}if(_0x47dbfc!=null){let _0x481571=String(_0x47dbfc);_0x481571&&_0x2f0204[_0x588992(0x319)](mc(_0x9bbe80,_0x481571));}return _0x2f0204;}function mc(_0x124244,_0x1cff27){const _0x2fa0af=_0x142fa8;for(let _0x52ed30 of _0x124244){if(typeof _0x52ed30==_0x2fa0af(0x3a1)&&_0x52ed30===_0x1cff27)return _0x52ed30;if(_0x52ed30&&typeof _0x52ed30=='object'){let _0x1feee1=_0x52ed30;if(String(_0x1feee1['id']??_0x1feee1[_0x2fa0af(0x112)]??'')===_0x1cff27||String(_0x1feee1[_0x2fa0af(0x112)]??'')===_0x1cff27)return String(_0x1feee1[_0x2fa0af(0x112)]??_0x1feee1['id']??_0x1cff27);}}return _0x1cff27;}function hc(_0x750f80){const _0x104c91=_0x142fa8;if(_0x750f80&&typeof _0x750f80==_0x104c91(0x1e3)&&!Array['isArray'](_0x750f80)){let _0xefcb53=_0x750f80;return{'text':String(_0xefcb53[_0x104c91(0x2be)]??_0xefcb53['url']??''),'url':String(_0xefcb53[_0x104c91(0xfe)]??'')};}return{'text':xc(_0x750f80),'url':xc(_0x750f80)};}function gc(_0x42f7f3){const _0x1752c1=_0x142fa8;let _0x511f08=hc(_0x42f7f3);return _0x511f08[_0x1752c1(0x2be)]||_0x511f08[_0x1752c1(0xfe)];}function _c(_0x67b0f5,_0x4035b9){const _0x14a630=_0x142fa8;return typeof _0x67b0f5!=_0x14a630(0xcb)||!Number[_0x14a630(0x1a1)](_0x67b0f5)?'':mn(_0x67b0f5,_0x4035b9['config']);}function vc(_0x1a9747,_0x3cdcb5){const _0x35899d=_0x142fa8;let _0x174438=typeof _0x1a9747==_0x35899d(0xcb)?_0x1a9747:Number(_0x1a9747);return Number[_0x35899d(0x1a1)](_0x174438)?qo(_0x174438,_0x3cdcb5[_0x35899d(0xfa)]):'';}function yc(_0x1de2bd,_0x22ceba){const _0x2c98e2=_0x142fa8;let _0x541b35=typeof _0x1de2bd=='number'?_0x1de2bd:Number(_0x1de2bd);return Number['isFinite'](_0x541b35)?Qo(_0x541b35,_0x22ceba[_0x2c98e2(0xfa)]):'';}function bc(_0x3de5b7){const _0x31f3ea=_0x142fa8;return Array[_0x31f3ea(0x8f)](_0x3de5b7)?_0x3de5b7[_0x31f3ea(0x167)](_0x274e7d=>{const _0x123df3=_0x31f3ea;if(!_0x274e7d||typeof _0x274e7d!=_0x123df3(0x1e3))return[];let _0x4e1560=_0x274e7d,_0x4fedfd=String(_0x4e1560[_0x123df3(0x112)]??_0x4e1560['url']??'')[_0x123df3(0x41a)]();return _0x4fedfd?[_0x4fedfd]:[];}):[];}function xc(_0x502e49){const _0xb1e1f6=_0x142fa8;if(_0x502e49==null)return'';if(typeof _0x502e49=='boolean')return _0x502e49?_0xb1e1f6(0x403):_0xb1e1f6(0x33d);if(typeof _0x502e49==_0xb1e1f6(0xcb))return String(_0x502e49);if(Array['isArray'](_0x502e49)){let _0x24bea2=[];for(let _0x293198=0x0;_0x293198<_0x502e49[_0xb1e1f6(0x7d)];_0x293198++){if(!(_0x293198 in _0x502e49))continue;let _0xc2687b=xc(_0x502e49[_0x293198]);_0xc2687b&&_0x24bea2[_0xb1e1f6(0x319)](_0xc2687b);}return _0x24bea2[_0xb1e1f6(0x2b0)](',\x20');}if(typeof _0x502e49=='object'){let _0x3666c3=_0x502e49;return String(_0x3666c3[_0xb1e1f6(0x30d)]??_0x3666c3[_0xb1e1f6(0x112)]??_0x3666c3['text']??_0x3666c3[_0xb1e1f6(0xfe)]??'')['trim']();}return String(_0x502e49);}function Sc(_0x3067b5,_0x157d92){const _0x5a9201=_0x142fa8;let _0x597bc4=0x0;for(let _0x5de7d6 of _0x157d92)if(_0x5de7d6){if(_0x5de7d6===_0x3067b5){_0x597bc4=Math[_0x5a9201(0x41f)](_0x597bc4,0x12c);continue;}if(_0x5de7d6[_0x5a9201(0x38d)](_0x3067b5)){_0x597bc4=Math['max'](_0x597bc4,0xfa);continue;}_0x5de7d6['includes'](_0x3067b5)&&(_0x597bc4=Math[_0x5a9201(0x41f)](_0x597bc4,0xc8));}return _0x597bc4;}function Cc(_0x5084b7){const _0xce59cc=_0x142fa8;return _0x5084b7[_0xce59cc(0x41a)]()[_0xce59cc(0x401)](/\s+/g,'\x20')[_0xce59cc(0x315)]();}function wc(_0x5c4f49){const _0x55093d=_0x142fa8;return Array[_0x55093d(0x35b)](new Set(_0x5c4f49));}function Tc(_0xb990d9){const _0x1c7b10=_0x142fa8;let _0x7cc6c6=[];for(let {rowIndex:_0x35d4ce,fieldIndex:_0xd26caf,..._0x121303}of _0xb990d9)_0x7cc6c6[_0x1c7b10(0x319)](_0x121303);return _0x7cc6c6;}function Ec(_0x375e6c){const _0xca91cc=_0x142fa8;return{'compress':!0x0,'kind':_0xca91cc(0x353),'u':_0x375e6c['unitId'],'t':_0x375e6c[_0xca91cc(0x90)],'p':_0x375e6c[_0xca91cc(0x2f8)][_0xca91cc(0x1bc)](_0x4ab951=>[_0x4ab951['row'],_0x4ab951[_0xca91cc(0x1c6)],Ac(_0x4ab951[_0xca91cc(0x177)])]),..._0x375e6c[_0xca91cc(0x325)]===void 0x0?{}:{'g':_0x375e6c[_0xca91cc(0x325)]}};}function Dc(_0xb963a0){const _0xf764ef=_0x142fa8;if(Lc(_0xb963a0,_0xf764ef(0x353)),!Oc(_0xb963a0)){if(!Ic(_0xb963a0))throw Error(_0xf764ef(0x3d1));return _0xb963a0;}return{'unitId':_0xb963a0['u'],'tableId':_0xb963a0['t'],'patches':_0xb963a0['p'][_0xf764ef(0x1bc)](([_0x521f98,_0x4ee0c4,_0x20b2b7])=>({'row':_0x521f98,'col':_0x4ee0c4,'value':jc(_0x20b2b7)})),..._0xb963a0['g']===void 0x0?{}:{'trigger':_0xb963a0['g']}};}function Oc(_0x521c3c){const _0x409ea5=_0x142fa8;return!Rc(_0x521c3c)||_0x521c3c[_0x409ea5(0x1ba)]!==!0x0||_0x521c3c[_0x409ea5(0x1be)]!=='base-range-values-v1'?!0x1:typeof _0x521c3c['u']==_0x409ea5(0x3a1)&&typeof _0x521c3c['t']==_0x409ea5(0x3a1)&&(_0x521c3c['g']===void 0x0||typeof _0x521c3c['g']==_0x409ea5(0x3a1))&&Array[_0x409ea5(0x8f)](_0x521c3c['p'])&&_0x521c3c['p']['every'](_0x3814b8=>Array['isArray'](_0x3814b8)&&_0x3814b8[_0x409ea5(0x7d)]===0x3&&Number[_0x409ea5(0x2de)](_0x3814b8[0x0])&&Number[_0x409ea5(0x2de)](_0x3814b8[0x1]));}function kc(_0x21c01b){const _0xb7a750=_0x142fa8;return!Rc(_0x21c01b)||_0x21c01b[_0xb7a750(0x1ba)]!==!0x0||_0x21c01b[_0xb7a750(0x1be)]!=='base-snapshot-v1'||!Rc(_0x21c01b[_0xb7a750(0x3bd)])?!0x1:Object['values'](_0x21c01b[_0xb7a750(0x3bd)])[_0xb7a750(0x40c)](_0x37422a=>Rc(_0x37422a)&&(_0x37422a['cd']===void 0x0||Array[_0xb7a750(0x8f)](_0x37422a['cd'])&&_0x37422a['cd']['every'](_0x8b6ea2=>Array[_0xb7a750(0x8f)](_0x8b6ea2)&&_0x8b6ea2[_0xb7a750(0x7d)]===0x3&&Number[_0xb7a750(0x2de)](_0x8b6ea2[0x0])&&Number[_0xb7a750(0x2de)](_0x8b6ea2[0x1])&&Fc(_0x8b6ea2[0x2]))));}function Ac(_0x23df6b){return Pc(_0x23df6b)?Mc(_0x23df6b):_0x23df6b;}function jc(_0x2775b6){return Fc(_0x2775b6)?Nc(_0x2775b6):_0x2775b6;}function Mc(_0x14f6d9){return{'c':0x1,..._0x14f6d9['v']===void 0x0?{}:{'v':_0x14f6d9['v']},..._0x14f6d9['t']!==void 0x0&&_0x14f6d9['t']!==null?{'t':_0x14f6d9['t']}:_0x14f6d9['t']===null?{'t':null}:{},..._0x14f6d9['f']!==void 0x0&&_0x14f6d9['f']!==null?{'f':_0x14f6d9['f']}:_0x14f6d9['f']===null?{'f':null}:{},..._0x14f6d9['si']!==void 0x0&&_0x14f6d9['si']!==null?{'si':_0x14f6d9['si']}:_0x14f6d9['si']===null?{'si':null}:{},..._0x14f6d9['p']!==void 0x0&&_0x14f6d9['p']!==null?{'p':_0x14f6d9['p']}:_0x14f6d9['p']===null?{'p':null}:{}};}function Nc(_0x430d2f){return{..._0x430d2f['v']===void 0x0?{}:{'v':_0x430d2f['v']},..._0x430d2f['t']===void 0x0?{}:{'t':_0x430d2f['t']},..._0x430d2f['f']===void 0x0?{}:{'f':_0x430d2f['f']},..._0x430d2f['si']===void 0x0?{}:{'si':_0x430d2f['si']},..._0x430d2f['p']===void 0x0?{}:{'p':_0x430d2f['p']}};}function Pc(_0x2eeef9){const _0x164573=_0x142fa8;return!!_0x2eeef9&&typeof _0x2eeef9=='object'&&!Array[_0x164573(0x8f)](_0x2eeef9)&&(Object[_0x164573(0x18b)]['hasOwnProperty'][_0x164573(0x3e6)](_0x2eeef9,'v')||Object[_0x164573(0x18b)]['hasOwnProperty'][_0x164573(0x3e6)](_0x2eeef9,'t')||Object[_0x164573(0x18b)]['hasOwnProperty'][_0x164573(0x3e6)](_0x2eeef9,'p')||Object[_0x164573(0x18b)]['hasOwnProperty'][_0x164573(0x3e6)](_0x2eeef9,'f')||Object['prototype'][_0x164573(0x26e)]['call'](_0x2eeef9,'si'));}function Fc(_0x20bd85){return Rc(_0x20bd85)&&_0x20bd85['c']===0x1;}function Ic(_0x5ec999){const _0x3ba350=_0x142fa8;return Rc(_0x5ec999)&&typeof _0x5ec999[_0x3ba350(0x22b)]==_0x3ba350(0x3a1)&&typeof _0x5ec999[_0x3ba350(0x90)]==_0x3ba350(0x3a1)&&(_0x5ec999[_0x3ba350(0x325)]===void 0x0||typeof _0x5ec999[_0x3ba350(0x325)]==_0x3ba350(0x3a1))&&Array[_0x3ba350(0x8f)](_0x5ec999['patches'])&&_0x5ec999['patches']['every'](_0x847e9=>Rc(_0x847e9)&&Number[_0x3ba350(0x2de)](_0x847e9['row'])&&Number[_0x3ba350(0x2de)](_0x847e9[_0x3ba350(0x1c6)])&&'value'in _0x847e9);}function Lc(_0x5e0406,_0x27adff){const _0x5c291b=_0x142fa8;if(!(!Rc(_0x5e0406)||_0x5e0406[_0x5c291b(0x1ba)]!==!0x0)){if(_0x5e0406[_0x5c291b(0x1be)]!==_0x27adff)throw Error(_0x5c291b(0x11e)+String(_0x5e0406[_0x5c291b(0x1be)])+'\x22.');if(!(_0x27adff==='base-range-values-v1'?Oc(_0x5e0406):kc(_0x5e0406)))throw Error(_0x5c291b(0x137)+_0x27adff+'\x22.');}}function Rc(_0xa5d55){const _0x24c47a=_0x142fa8;return!!_0xa5d55&&typeof _0xa5d55==_0x24c47a(0x1e3)&&!Array[_0x24c47a(0x8f)](_0xa5d55);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x4bdb4d as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|
|
1
|
+
const _0x6c183=_0x2b5a;(function(_0x5dd0cf,_0x519b5a){const _0x5e4642=_0x2b5a,_0x25dfc5=_0x5dd0cf();while(!![]){try{const _0x1a8f2d=parseInt(_0x5e4642(0x21c))/0x1*(parseInt(_0x5e4642(0x3ee))/0x2)+parseInt(_0x5e4642(0x1d9))/0x3*(parseInt(_0x5e4642(0x1b9))/0x4)+parseInt(_0x5e4642(0x266))/0x5*(parseInt(_0x5e4642(0x49b))/0x6)+-parseInt(_0x5e4642(0x1c2))/0x7+parseInt(_0x5e4642(0x2bd))/0x8+parseInt(_0x5e4642(0x202))/0x9+-parseInt(_0x5e4642(0x123))/0xa;if(_0x1a8f2d===_0x519b5a)break;else _0x25dfc5['push'](_0x25dfc5['shift']());}catch(_0x508c96){_0x25dfc5['push'](_0x25dfc5['shift']());}}}(_0x4376,0xb7fe8));import{BASE_RECORD_ID_FIELD_ID as _0x5a35e2,BaseConditionalColorOperator as _0x50d725,BaseConditionalColorTarget as _0x4b6a96,BaseConditionalDateMode as _0x2b5b2b,BaseDataModel as _0x351ad4,BaseFieldType as _0x3a044b,BaseFilterConjunction as _0x6d8219,BaseHierarchyInvalidReason as _0x5b4879,BaseRecordLinkRole as _0x4c2417,BaseSortDirection as _0x574bb1,BaseViewType as _0x3ece31,CellValueType as _0x4dac72,ColorKit as _0x4014bd,CommandType as _0x22977e,CustomCommandExecutionError as _0x5ea448,DateSystem as _0x5c27c9,DependentOn as _0x2beafb,Disposable as _0x3b0b2d,ErrorService as _0x35b5ff,ICommandService as _0x5daeb6,IConfigService as _0x2a3cb6,IPermissionService as _0x41b15f,IResourceManagerService as _0x3ca90e,IUndoRedoService as _0x5b9522,IUniverInstanceService as _0x24efe9,Inject as _0x490adb,Injector as _0x4f0ad3,JSON1 as _0x53fdae,JSONX as _0x39141f,ObjectMatrix as _0x47103a,ObjectPermissionRuleModel as _0x65b7b4,ObjectPermissionService as _0x14b422,Optional as _0x2f9a87,PermissionStatus as _0x16215e,Plugin as _0x5e5cdb,Tools as _0x4e3c3d,UniverInstanceType as _0x5c5c99,allocateBaseFormulaTableName as _0x2afbd2,assertBaseTableRecordIdentity as _0x37d535,createBaseFormulaTableNameMap as _0x160d60,createBaseRecordIdField as _0x96204b,createIdentifier as _0x2e8f64,dateKit as _0x509f61,excelDateTimeSerial as _0x36b37f,excelSerialToDateTime as _0x33b7e5,generateRandomId as _0x456020,getBaseFormulaTableName as _0x16f020,isBaseRecordIdFieldName as _0x771c24,isValidBaseRecordId as _0x7f3dc3,merge as _0x1bd132,nameCharacterCheck as _0x5cd2f5,numfmt as _0x3bb8d4,regexp as _0x481624,sequenceExecute as _0x170e9a,toDisposable as _0x1827e4,touchDependencies as _0x55f221}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x2612d7,IActiveDirtyManagerService as _0x403c63,RemoveSuperTableMutation as _0x371cf0,SetFormulaCalculationResultMutation as _0x3da161,SetSuperTableMutation as _0x2af977,SetTriggerFormulaCalculationStartMutation as _0x174b70,UniverProFormulaEnginePlugin as _0x16e087,refactorFormulaUnitQualifier as _0x2f992f}from'@univerjs-pro/engine-formula';import{UnitAction as _0x1aafeb,UnitObject as _0x3cf49a}from'@univerjs/protocol';import{UniverLicensePlugin as _0xa2587c}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0xd3ae6f}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0xdc8395,FormulaResultApplicationType as _0x1e8264}from'@univerjs/engine-formula';function N(_0x2be6a4){const _0x3b33cc=_0x2b5a;let _0x1e38c3=_0x2be6a4['config'][_0x3b33cc(0x334)],_0x13b7e8=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x376)],_0x3a3081=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x131)],_0x44dab3=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x201)],_0x2c23=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x1d4)];return typeof _0x1e38c3!=_0x3b33cc(0x425)||!_0x1e38c3||typeof _0x13b7e8!=_0x3b33cc(0x1cb)||_0x3a3081!==void 0x0&&(typeof _0x3a3081!=_0x3b33cc(0x425)||!_0x3a3081)||_0x2c23!==void 0x0&&_0x2c23!==_0x4c2417[_0x3b33cc(0x2e7)]||_0x44dab3!==void 0x0&&(!Array[_0x3b33cc(0x431)](_0x44dab3)||_0x44dab3[_0x3b33cc(0x185)](_0x455881=>typeof _0x455881!=_0x3b33cc(0x425)||!_0x455881)||new Set(_0x44dab3)[_0x3b33cc(0x15b)]!==_0x44dab3[_0x3b33cc(0x13c)])?null:{'targetTableId':_0x1e38c3,'multiple':_0x13b7e8,..._0x3a3081?{'displayFieldId':_0x3a3081}:{},..._0x44dab3?{'pickerFieldIds':[..._0x44dab3]}:{},..._0x2c23?{'relationRole':_0x2c23}:{}};}function Le(_0xc10ea9){const _0x4ec874=_0x2b5a;return typeof _0xc10ea9!=_0x4ec874(0x425)||_0xc10ea9===''?[]:_0xc10ea9[_0x4ec874(0x1c0)](',');}function Re(_0x347d0c){const _0x2d26c6=_0x2b5a;return Array[_0x2d26c6(0x1d5)](new Set(_0x347d0c))[_0x2d26c6(0x11a)](',');}function ze(_0x5696ef,_0x440a81){const _0x370117=_0x2b5a;if(typeof _0x5696ef!=_0x370117(0x425))return{'valid':!0x1,'reason':_0x370117(0x402)};if(_0x5696ef==='')return{'valid':!0x0};let _0x5a70d5=_0x5696ef[_0x370117(0x1c0)](',');return!_0x440a81&&_0x5a70d5[_0x370117(0x13c)]>0x1?{'valid':!0x1,'reason':_0x370117(0x221)}:_0x5a70d5['some'](_0x27e70e=>!_0x7f3dc3(_0x27e70e))||new Set(_0x5a70d5)[_0x370117(0x15b)]!==_0x5a70d5['length']||Re(_0x5a70d5)!==_0x5696ef?{'valid':!0x1,'reason':_0x370117(0x218)}:{'valid':!0x0};}function Be(_0x10c9cc,_0x60656){const _0x22913e=_0x2b5a;if(_0x60656['type']!==_0x3a044b[_0x22913e(0x3ac)])return{'valid':!0x0};let _0x46ac91=N(_0x60656),_0xe11b27=_0x46ac91?_0x10c9cc['tables'][_0x46ac91[_0x22913e(0x334)]]:void 0x0;if(!_0x46ac91||!_0xe11b27)return{'valid':!0x1,'reason':_0x22913e(0x20f)};let _0x547589=[..._0x46ac91[_0x22913e(0x131)]?[_0x46ac91[_0x22913e(0x131)]]:[],..._0x46ac91['pickerFieldIds']??[]][_0x22913e(0x392)](_0x2a652d=>{const _0xec2bb8=_0x22913e;let _0x519970=_0xe11b27['fields'][_0x2a652d];return!_0x519970||_0x519970['system']===!0x0||_0x519970[_0xec2bb8(0x20b)]===_0x3a044b[_0xec2bb8(0x22f)];});return _0x547589?{'valid':!0x1,'reason':_0x22913e(0x391)+_0x547589+_0x22913e(0x2e3)}:{'valid':!0x0};}function Ve(_0x8f341,_0x35fb1c,_0x525548,_0x2144f0={}){const _0xcf1a3f=_0x2b5a;let _0x5793f1=N(_0x35fb1c);if(_0x35fb1c[_0xcf1a3f(0x20b)]!==_0x3a044b[_0xcf1a3f(0x3ac)]||!_0x5793f1)return{'valid':!0x1,'reason':_0xcf1a3f(0x320)};let _0x3205e0=ze(_0x525548,_0x5793f1[_0xcf1a3f(0x376)]);if(!_0x3205e0[_0xcf1a3f(0x26e)]||_0x2144f0[_0xcf1a3f(0x40f)])return _0x3205e0;let _0x29ea12=_0x8f341[_0xcf1a3f(0x298)][_0x5793f1['targetTableId']];if(!_0x29ea12)return{'valid':!0x1,'reason':_0xcf1a3f(0x20f)};let _0x57b1de=Le(_0x525548)['find'](_0x24647d=>!_0x29ea12[_0xcf1a3f(0x258)][_0x24647d]);return _0x57b1de?{'valid':!0x1,'reason':_0xcf1a3f(0x19c)+_0x57b1de+_0xcf1a3f(0x2bf)}:{'valid':!0x0};}function He(_0x1314db,_0x55f5f8){const _0x21e246=_0x2b5a;return Object[_0x21e246(0x227)](_0x1314db['tables'])[_0x21e246(0x17a)](_0x245477=>Object['values'](_0x245477[_0x21e246(0x398)])[_0x21e246(0x17a)](_0x147b42=>{const _0x5b7c2f=_0x21e246;let _0x1b317e=_0x147b42['type']===_0x3a044b[_0x5b7c2f(0x3ac)]?N(_0x147b42):null;return(_0x1b317e==null?void 0x0:_0x1b317e[_0x5b7c2f(0x334)])===_0x55f5f8?[{'tableId':_0x245477['id'],'fieldId':_0x147b42['id']}]:[];}));}const Ue=0x5,We=_0x6c183(0x2ae);let Ge=function(_0x5d06f6){const _0x331c27=_0x6c183;return _0x5d06f6[_0x331c27(0x1f9)]=_0x331c27(0x48d),_0x5d06f6[_0x331c27(0x2f9)]=_0x331c27(0x281),_0x5d06f6['SelfParent']=_0x331c27(0x1a4),_0x5d06f6[_0x331c27(0x478)]=_0x331c27(0x3b4),_0x5d06f6['MaxDepth']=_0x331c27(0x138),_0x5d06f6['SortedView']='sortedView',_0x5d06f6;}({});var P=class extends Error{constructor(_0x477638,_0x327dc0='[BaseHierarchy]:\x20'+_0x477638){const _0x35c603=_0x6c183;super(_0x327dc0),this[_0x35c603(0x3c5)]=_0x477638,this[_0x35c603(0x2a3)]=_0x35c603(0x496);}};let Ke=function(_0x263430){const _0x7de001=_0x6c183;return _0x263430['UI']='ui',_0x263430['Facade']=_0x7de001(0x305),_0x263430[_0x7de001(0x238)]=_0x7de001(0x3bf),_0x263430[_0x7de001(0x45a)]=_0x7de001(0x23c),_0x263430[_0x7de001(0x378)]='redo',_0x263430['Import']='import',_0x263430;}({});function F(_0x4a2979,_0x55fc5f){const _0xd7ff25=_0x6c183;if(!_0x55fc5f)return!0x1;let _0x16198e=_0x4a2979['fields'][_0x55fc5f];if(!_0x16198e||_0x16198e[_0xd7ff25(0x20b)]!==_0x3a044b[_0xd7ff25(0x3ac)])return!0x1;let _0xbe98d7=N(_0x16198e);return _0xbe98d7?_0xbe98d7[_0xd7ff25(0x334)]===_0x4a2979['id']&&_0xbe98d7[_0xd7ff25(0x376)]===!0x1:!0x1;}function qe(_0x5ef973){const _0x168fdd=_0x6c183;return[..._0x5ef973[_0x168fdd(0x3b5)],...Object[_0x168fdd(0x24c)](_0x5ef973[_0x168fdd(0x398)])['filter'](_0xf415ff=>!_0x5ef973['fieldOrder'][_0x168fdd(0x16a)](_0xf415ff))['sort']()][_0x168fdd(0x392)](_0x4a810a=>{const _0x434d32=_0x168fdd;var _0xa2c394;return F(_0x5ef973,_0x4a810a)?((_0xa2c394=N(_0x5ef973['fields'][_0x4a810a]))==null?void 0x0:_0xa2c394[_0x434d32(0x1d4)])===_0x4c2417[_0x434d32(0x2e7)]:!0x1;})??null;}function Je(_0x4660b5){const _0x15659b=_0x6c183;let _0x4b8657=qe(_0x4660b5);if(_0x4b8657)return _0x4b8657;let _0x473ff2=We,_0x259b01=0x2;for(;_0x4660b5[_0x15659b(0x398)][_0x473ff2];)_0x473ff2=We+'_'+_0x259b01++;return _0x473ff2;}function Ye(_0x5da45a,_0x3eb4d7=Je(_0x5da45a),_0x6edad2='Parent\x20Items'){const _0x2da938=_0x6c183;return{'id':_0x3eb4d7,'name':_0x6edad2,'type':_0x3a044b['RecordLink'],'config':{'targetTableId':_0x5da45a['id'],'multiple':!0x1,'displayFieldId':_0x5da45a[_0x2da938(0x3b2)],'pickerFieldIds':[_0x5da45a[_0x2da938(0x3b2)]],'relationRole':_0x4c2417[_0x2da938(0x2e7)]}};}function Xe(_0x45dd57){let _0x178d53=qe(_0x45dd57);return _0x178d53?[_0x178d53]:[];}function Ze(_0x11e1d9,_0x24a7e0){const _0x583f79=_0x6c183;let _0x3471be=[...Xe(_0x11e1d9)][_0x583f79(0x2be)](_0x354ee4=>_0x24a7e0['some'](_0x4fab1a=>Object[_0x583f79(0x246)][_0x583f79(0x48a)]['call'](_0x4fab1a[_0x583f79(0x227)],_0x354ee4)));if(!_0x3471be[_0x583f79(0x13c)])return[];let _0x4744f9={..._0x11e1d9[_0x583f79(0x258)]};_0x24a7e0[_0x583f79(0x2e0)](_0xaa69ad=>{const _0x2d92b2=_0x583f79;let _0x4feb56=_0x4744f9[_0xaa69ad['recordId']];_0x4feb56&&(_0x4744f9[_0xaa69ad[_0x2d92b2(0x347)]]={..._0x4feb56,'values':{..._0x4feb56[_0x2d92b2(0x227)],..._0xaa69ad['values']}});});let _0x3786f9={..._0x11e1d9,'records':_0x4744f9},_0x300342=[];return _0x3471be[_0x583f79(0x2e0)](_0x320ee6=>{const _0x2732a4=_0x583f79;let _0x58e09c=tt(_0x11e1d9,_0x320ee6),_0x573d22=tt(_0x3786f9,_0x320ee6);for(let [_0x315c08,_0x26e935]of _0x573d22[_0x2732a4(0x3b6)]){let _0x3fd7ef=_0x24a7e0['some'](_0x4ab12a=>_0x4ab12a['recordId']===_0x315c08&&Object[_0x2732a4(0x246)]['hasOwnProperty'][_0x2732a4(0x43b)](_0x4ab12a[_0x2732a4(0x227)],_0x320ee6));if(_0x58e09c[_0x2732a4(0x3b6)]['get'](_0x315c08)!==_0x26e935||_0x3fd7ef)throw new P($e(_0x26e935));}_0x24a7e0[_0x2732a4(0x2e0)](_0xe62c9a=>{const _0x11d71e=_0x2732a4;if(!Object[_0x11d71e(0x246)][_0x11d71e(0x48a)][_0x11d71e(0x43b)](_0xe62c9a[_0x11d71e(0x227)],_0x320ee6))return;let _0x21486c=_0x58e09c['parentByRecordId'][_0x11d71e(0x43e)](_0xe62c9a[_0x11d71e(0x347)])??null,_0x4999ba=_0x573d22['parentByRecordId'][_0x11d71e(0x43e)](_0xe62c9a[_0x11d71e(0x347)])??null;_0x21486c!==_0x4999ba&&_0x300342[_0x11d71e(0x174)]({'tableId':_0x11e1d9['id'],'fieldId':_0x320ee6,'recordId':_0xe62c9a[_0x11d71e(0x347)],'oldParentRecordId':_0x21486c,'parentRecordId':_0x4999ba});});}),_0x300342;}function Qe(_0x477ecf,_0x2b3bd4){const _0x4fae7c=_0x6c183;let _0x10159d=_0x2b3bd4['map'](_0x3cb6b6=>_0x3cb6b6['id']);if(new Set(_0x10159d)[_0x4fae7c(0x15b)]!==_0x10159d[_0x4fae7c(0x13c)]||_0x10159d['some'](_0x2522c0=>_0x477ecf[_0x4fae7c(0x258)][_0x2522c0]))return[];let _0x341d83=Xe(_0x477ecf),_0x5891aa=_0x341d83[_0x4fae7c(0x13c)]?null:Je(_0x477ecf),_0x364808=[..._0x341d83,..._0x5891aa&&_0x2b3bd4['some'](_0x16f288=>Object['prototype'][_0x4fae7c(0x48a)][_0x4fae7c(0x43b)](_0x16f288[_0x4fae7c(0x227)],_0x5891aa))?[_0x5891aa]:[]][_0x4fae7c(0x2be)](_0x5462f1=>_0x2b3bd4['some'](_0x1555bf=>Object[_0x4fae7c(0x246)]['hasOwnProperty'][_0x4fae7c(0x43b)](_0x1555bf[_0x4fae7c(0x227)],_0x5462f1)));if(!_0x364808[_0x4fae7c(0x13c)])return[];let _0xd49a25={..._0x477ecf,'records':{..._0x477ecf[_0x4fae7c(0x258)],...Object[_0x4fae7c(0x176)](_0x2b3bd4[_0x4fae7c(0x141)](_0x7c001a=>[_0x7c001a['id'],_0x7c001a]))},'recordOrder':[..._0x477ecf[_0x4fae7c(0x1e7)]??[],..._0x2b3bd4[_0x4fae7c(0x141)](_0x26e737=>_0x26e737['id'])]},_0xdd8f05=[];return _0x364808[_0x4fae7c(0x2e0)](_0x25803e=>{const _0x2a59a2=_0x4fae7c;let _0xe16cd6=tt(_0xd49a25,_0x25803e);_0x2b3bd4[_0x2a59a2(0x2e0)](_0x5d03ec=>{const _0x160462=_0x2a59a2;let _0x5ec8e3=_0xe16cd6[_0x160462(0x3b6)][_0x160462(0x43e)](_0x5d03ec['id']);if(_0x5ec8e3)throw new P($e(_0x5ec8e3));let _0x21e5b9=_0xe16cd6[_0x160462(0x3b7)]['get'](_0x5d03ec['id'])??null;_0x21e5b9&&_0xdd8f05[_0x160462(0x174)]({'tableId':_0x477ecf['id'],'fieldId':_0x25803e,'recordId':_0x5d03ec['id'],'oldParentRecordId':null,'parentRecordId':_0x21e5b9});});}),_0xdd8f05;}function $e(_0x5ed22a){const _0x4e1b7e=_0x6c183;switch(_0x5ed22a){case _0x5b4879[_0x4e1b7e(0x23e)]:return'missingRecord';case _0x5b4879[_0x4e1b7e(0x40a)]:return'selfParent';case _0x5b4879['Cycle']:return _0x4e1b7e(0x3b4);case _0x5b4879[_0x4e1b7e(0x285)]:return _0x4e1b7e(0x138);}}function et(_0x58e3e3,_0x2c7ea0){const _0x483257=_0x6c183;let _0xa6adf5=new Set(_0x2c7ea0),_0x1de4ec=Xe(_0x58e3e3);return Object[_0x483257(0x227)](_0x58e3e3['records'])['flatMap'](_0x14cc6e=>_0xa6adf5[_0x483257(0x34b)](_0x14cc6e['id'])?[]:Array[_0x483257(0x1d5)](_0x1de4ec)[_0x483257(0x17a)](_0x54f19f=>{const _0xa3e947=_0x483257;let _0x1244ac=Le(_0x14cc6e[_0xa3e947(0x227)][_0x54f19f])[0x0]??null;return _0x1244ac&&_0xa6adf5[_0xa3e947(0x34b)](_0x1244ac)?[{'tableId':_0x58e3e3['id'],'fieldId':_0x54f19f,'recordId':_0x14cc6e['id'],'oldParentRecordId':_0x1244ac,'parentRecordId':null}]:[];}));}function tt(_0x41d7d8,_0x483118,_0x33c640=_0x41d7d8['recordOrder']??Object[_0x6c183(0x24c)](_0x41d7d8['records'])){const _0x346bcb=_0x6c183;if((_0x41d7d8[_0x346bcb(0x398)][_0x483118]||_0x483118!==Je(_0x41d7d8))&&!F(_0x41d7d8,_0x483118))throw Error(_0x346bcb(0x314)+_0x483118+'\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.');let _0x2bbcb0=at(_0x41d7d8,_0x33c640),_0xc30707=new Map(),_0x11c8af=new Map();for(let _0x15db2c of _0x2bbcb0){var _0xb2f5db;let _0x463046=Le((_0xb2f5db=_0x41d7d8[_0x346bcb(0x258)][_0x15db2c])==null?void 0x0:_0xb2f5db['values'][_0x483118])[0x0]??null;_0x463046?_0x463046===_0x15db2c?(_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null),_0x11c8af[_0x346bcb(0x49e)](_0x15db2c,_0x5b4879[_0x346bcb(0x40a)])):_0x41d7d8[_0x346bcb(0x258)][_0x463046]?_0xc30707[_0x346bcb(0x49e)](_0x15db2c,_0x463046):(_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null),_0x11c8af['set'](_0x15db2c,_0x5b4879[_0x346bcb(0x23e)])):_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null);}ot(_0xc30707,_0x11c8af,_0x2bbcb0),st(_0xc30707,_0x11c8af,_0x2bbcb0);let _0x22b52e=new Map(_0x2bbcb0[_0x346bcb(0x141)]((_0x3dd604,_0x1385c2)=>[_0x3dd604,_0x1385c2])),_0x434a87=new Map();for(let _0x5de3a3 of _0x2bbcb0){let _0x4b2a14=_0xc30707[_0x346bcb(0x43e)](_0x5de3a3)??null,_0x25cdb2=_0x434a87[_0x346bcb(0x43e)](_0x4b2a14)??[];_0x25cdb2[_0x346bcb(0x174)](_0x5de3a3),_0x434a87[_0x346bcb(0x49e)](_0x4b2a14,_0x25cdb2);}_0x434a87['forEach'](_0x57b9d5=>_0x57b9d5[_0x346bcb(0x277)]((_0x36361c,_0x2a5f60)=>(_0x22b52e[_0x346bcb(0x43e)](_0x36361c)??0x0)-(_0x22b52e[_0x346bcb(0x43e)](_0x2a5f60)??0x0)));let _0xb26df9=_0x434a87[_0x346bcb(0x43e)](null)??[],_0x5b5707=new Map(),_0x3dc7d5=new Map(),_0x9626da=[],_0x299ca8=(_0x5957ab,_0x2167b6)=>{const _0x4c04e3=_0x346bcb;_0x5b5707['set'](_0x5957ab,_0x2167b6),_0x9626da['push'](_0x5957ab);let _0x1174fc=0x0;for(let _0x503870 of _0x434a87['get'](_0x5957ab)??[])_0x1174fc=Math[_0x4c04e3(0x482)](_0x1174fc,0x1+_0x299ca8(_0x503870,_0x2167b6+0x1));return _0x3dc7d5['set'](_0x5957ab,_0x1174fc),_0x1174fc;};return _0xb26df9[_0x346bcb(0x2e0)](_0x29e837=>_0x299ca8(_0x29e837,0x0)),{'fieldId':_0x483118,'parentByRecordId':_0xc30707,'childrenByParentId':_0x434a87,'depthByRecordId':_0x5b5707,'subtreeHeightByRecordId':_0x3dc7d5,'invalidReasonByRecordId':_0x11c8af,'rootRecordIds':_0xb26df9,'orderedRecordIds':_0x9626da};}function nt(_0x381a07,_0x470cf7,_0x3892bd=new Set(_0x470cf7[_0x6c183(0x141)](_0x1253ea=>_0x1253ea[_0x6c183(0x347)]))){const _0x1f780e=_0x6c183;let _0x32d2a8=new Set(_0x3892bd);for(let _0x1f9f55 of _0x3892bd){let _0x1d2da5=_0x381a07[_0x1f780e(0x3b7)][_0x1f780e(0x43e)](_0x1f9f55)??null;for(;_0x1d2da5;)_0x32d2a8[_0x1f780e(0x2ee)](_0x1d2da5),_0x1d2da5=_0x381a07[_0x1f780e(0x3b7)][_0x1f780e(0x43e)](_0x1d2da5)??null;}let _0x21e345=new Map(_0x470cf7[_0x1f780e(0x141)](_0x490397=>[_0x490397[_0x1f780e(0x347)],_0x490397])),_0x351bbe=_0x381a07[_0x1f780e(0x3c3)][_0x1f780e(0x2be)](_0x1da6fc=>_0x32d2a8[_0x1f780e(0x34b)](_0x1da6fc)),_0x234e45=_0x351bbe['flatMap'](_0xe1492d=>{const _0x261797=_0x1f780e;let _0xb03461=_0x21e345[_0x261797(0x43e)](_0xe1492d);return _0xb03461?[_0xb03461]:[];}),_0x65e759={};for(let _0x3ad1a6=0x0;_0x3ad1a6<_0x351bbe[_0x1f780e(0x13c)];_0x3ad1a6++){let _0x336ba6=_0x351bbe[_0x3ad1a6];_0x65e759[_0x336ba6]={'recordId':_0x336ba6,'parentRecordId':_0x381a07[_0x1f780e(0x3b7)]['get'](_0x336ba6)??null,'depth':_0x381a07[_0x1f780e(0x273)][_0x1f780e(0x43e)](_0x336ba6)??0x0,'directChildCount':(_0x381a07[_0x1f780e(0x2c7)][_0x1f780e(0x43e)](_0x336ba6)??[])[_0x1f780e(0x13c)],'subtreeHeight':_0x381a07[_0x1f780e(0x146)][_0x1f780e(0x43e)](_0x336ba6)??0x0,'subtreeEndIndex':_0x3ad1a6,'invalidReason':_0x381a07['invalidReasonByRecordId'][_0x1f780e(0x43e)](_0x336ba6)};}let _0x5b7e1e=[];for(let _0xd987a5=0x0;_0xd987a5<_0x351bbe[_0x1f780e(0x13c)];_0xd987a5++){let _0x2edd0d=_0x351bbe[_0xd987a5],_0x3752ce=_0x65e759[_0x2edd0d]['depth'];for(;_0x5b7e1e[_0x1f780e(0x13c)]&&_0x5b7e1e[_0x5b7e1e[_0x1f780e(0x13c)]-0x1][_0x1f780e(0x3bd)]>=_0x3752ce;){let _0x2faae5=_0x5b7e1e[_0x1f780e(0x481)]();_0x65e759[_0x2faae5[_0x1f780e(0x347)]]['subtreeEndIndex']=_0xd987a5-0x1;}_0x5b7e1e['push']({'recordId':_0x2edd0d,'depth':_0x3752ce});}return _0x5b7e1e['forEach'](({recordId:_0x4c4faf})=>{const _0x33c6ed=_0x1f780e;_0x65e759[_0x4c4faf][_0x33c6ed(0x3fb)]=_0x351bbe[_0x33c6ed(0x13c)]-0x1;}),{'rows':_0x234e45,'hierarchy':{'fieldId':_0x381a07[_0x1f780e(0x2b0)],'rootRecordIds':_0x381a07[_0x1f780e(0x4ad)][_0x1f780e(0x2be)](_0x38b508=>_0x32d2a8[_0x1f780e(0x34b)](_0x38b508)),'orderedRecordIds':_0x351bbe,'nodes':_0x65e759}};}function rt(_0x475537,_0x59e3fa){const _0x4f03e9=_0x6c183;if(!_0x475537[_0x4f03e9(0x160)]||!(_0x59e3fa!=null&&_0x59e3fa['size']))return _0x475537[_0x4f03e9(0x2c5)];let _0x21d537=[],_0x50841b=0x0;for(;_0x50841b<_0x475537[_0x4f03e9(0x2c5)][_0x4f03e9(0x13c)];){let _0x51a4c4=_0x475537[_0x4f03e9(0x2c5)][_0x50841b];_0x21d537['push'](_0x51a4c4);let _0x52d34a=_0x475537[_0x4f03e9(0x160)][_0x4f03e9(0x2e4)][_0x51a4c4[_0x4f03e9(0x347)]];_0x50841b=_0x59e3fa[_0x4f03e9(0x34b)](_0x51a4c4[_0x4f03e9(0x347)])&&_0x52d34a?_0x52d34a['subtreeEndIndex']+0x1:_0x50841b+0x1;}return _0x21d537;}function it(_0x2aa3ab,_0x197172,_0x1f5a3a){const _0x3a2d7d=_0x6c183;if(!_0x1f5a3a)return{'valid':!0x0};if(_0x197172===_0x1f5a3a)return{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x40a)]};let _0x55be3c=_0x1f5a3a;for(;_0x55be3c;){if(_0x55be3c===_0x197172)return{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x478)]};_0x55be3c=_0x2aa3ab['parentByRecordId'][_0x3a2d7d(0x43e)](_0x55be3c)??null;}return(_0x2aa3ab['depthByRecordId'][_0x3a2d7d(0x43e)](_0x1f5a3a)??0x0)+0x1+(_0x2aa3ab[_0x3a2d7d(0x146)][_0x3a2d7d(0x43e)](_0x197172)??0x0)>=0x5?{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x285)]}:{'valid':!0x0};}function at(_0x431600,_0x3fb1b5){const _0x1c569d=_0x6c183;let _0xc92e69=new Set(),_0xacdf3d=[];for(let _0x5424e9 of _0x3fb1b5)_0x431600['records'][_0x5424e9]&&!_0xc92e69[_0x1c569d(0x34b)](_0x5424e9)&&(_0xc92e69[_0x1c569d(0x2ee)](_0x5424e9),_0xacdf3d[_0x1c569d(0x174)](_0x5424e9));return Object[_0x1c569d(0x24c)](_0x431600['records'])['sort']()[_0x1c569d(0x2e0)](_0x31e898=>{const _0x4370cb=_0x1c569d;_0xc92e69[_0x4370cb(0x34b)](_0x31e898)||_0xacdf3d[_0x4370cb(0x174)](_0x31e898);}),_0xacdf3d;}function ot(_0x2d3c46,_0x4692fb,_0xbc05d5){const _0xd17422=_0x6c183;let _0x1135c7=new Set();for(let _0x75b99d of _0xbc05d5){if(_0x1135c7['has'](_0x75b99d))continue;let _0x5f0873=[],_0x3b73f1=new Map(),_0x29d32b=_0x75b99d;for(;_0x29d32b&&!_0x1135c7[_0xd17422(0x34b)](_0x29d32b);){let _0x3df1ec=_0x3b73f1[_0xd17422(0x43e)](_0x29d32b);if(_0x3df1ec!=null){let _0x19dabc=[..._0x5f0873[_0xd17422(0x12c)](_0x3df1ec)][_0xd17422(0x277)]()[_0xd17422(0x481)]();_0x2d3c46[_0xd17422(0x49e)](_0x19dabc,null),_0x4692fb[_0xd17422(0x49e)](_0x19dabc,_0x5b4879['Cycle']);break;}_0x3b73f1[_0xd17422(0x49e)](_0x29d32b,_0x5f0873[_0xd17422(0x13c)]),_0x5f0873['push'](_0x29d32b),_0x29d32b=_0x2d3c46[_0xd17422(0x43e)](_0x29d32b)??null;}_0x5f0873['forEach'](_0x455f93=>_0x1135c7[_0xd17422(0x2ee)](_0x455f93));}}function st(_0x122e9f,_0x4fa300,_0xade768){const _0x4dd917=_0x6c183;let _0x4f8640=new Map(),_0x2c50e9=_0x8234d5=>{const _0x2e2056=_0x2b5a;let _0x397d49=_0x4f8640['get'](_0x8234d5);if(_0x397d49!=null)return _0x397d49;let _0x36081e=_0x122e9f['get'](_0x8234d5)??null;if(!_0x36081e)return _0x4f8640[_0x2e2056(0x49e)](_0x8234d5,0x0),0x0;let _0x2444cc=_0x2c50e9(_0x36081e)+0x1;return _0x2444cc>=0x5?(_0x122e9f[_0x2e2056(0x49e)](_0x8234d5,null),_0x4fa300['set'](_0x8234d5,_0x5b4879[_0x2e2056(0x285)]),_0x4f8640[_0x2e2056(0x49e)](_0x8234d5,0x0),0x0):(_0x4f8640['set'](_0x8234d5,_0x2444cc),_0x2444cc);};_0xade768[_0x4dd917(0x2e0)](_0x2c50e9);}let ct=0x0;function lt(){const _0x18b79c=_0x6c183;if(globalThis['__UNIVER_BASE_PERF__']===!0x0)return!0x0;try{let _0x3dfe9d=typeof location>'u'?'':location['search'],_0x2f0595=new URLSearchParams(_0x3dfe9d);if(_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2b6))==='1'||_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2b6))===_0x18b79c(0x269)||_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2e5))==='1')return!0x0;}catch{}try{let _0x556114=typeof localStorage>'u'?null:localStorage[_0x18b79c(0x4a2)](_0x18b79c(0x29a));return _0x556114==='1'||_0x556114===_0x18b79c(0x269);}catch{return!0x1;}}function I(_0x324efd,_0x4e870c,_0x51a978){const _0x50f4d9=_0x6c183;if(!lt())return _0x4e870c();let _0x6ef8b5=dt(),_0x4bfaaa='base-perf-'+ct++;ft(_0x4bfaaa+_0x50f4d9(0x3e6));try{return _0x4e870c();}finally{let _0x47c07b=dt()-_0x6ef8b5;ft(_0x4bfaaa+_0x50f4d9(0x4c6)),pt(_0x324efd,_0x4bfaaa+_0x50f4d9(0x3e6),_0x4bfaaa+':end'),ut(_0x324efd,_0x47c07b,_0x51a978);}}function ut(_0x3b6fed,_0x3fdc91,_0x74b852){const _0x21fc60=_0x6c183;if(!lt())return;let _0x5adf3a=Math[_0x21fc60(0x343)](_0x3fdc91*0x64)/0x64,_0x18a5cc=_0x74b852&&Object[_0x21fc60(0x24c)](_0x74b852)[_0x21fc60(0x13c)]?'\x20'+JSON[_0x21fc60(0x25f)](_0x74b852):'';console[_0x21fc60(0x435)](_0x21fc60(0x1f1)+_0x3b6fed+':\x20'+_0x5adf3a+'ms'+_0x18a5cc);}function dt(){const _0x35915c=_0x6c183;return typeof performance<'u'&&typeof performance[_0x35915c(0x2a4)]==_0x35915c(0x424)?performance['now']():Date[_0x35915c(0x2a4)]();}function ft(_0x14914d){try{if(typeof performance<'u'){var _0x262c87,_0x1edf1f;(_0x262c87=(_0x1edf1f=performance)['mark'])==null||_0x262c87['call'](_0x1edf1f,_0x14914d);}}catch{}}function pt(_0x2e467b,_0x5925ae,_0x2ea3d2){const _0x7f2478=_0x6c183;try{if(typeof performance<'u'){var _0x5d1392,_0x351fa4;(_0x5d1392=(_0x351fa4=performance)[_0x7f2478(0x1ae)])==null||_0x5d1392[_0x7f2478(0x43b)](_0x351fa4,'[BasePerf]\x20'+_0x2e467b,_0x5925ae,_0x2ea3d2);}}catch{}}function L(_0x534866){const _0x14bbf5=_0x6c183;var _0x1734b9;return lt()?I(_0x14bbf5(0x217),()=>mt(_0x534866),{'tableId':_0x534866['id'],'records':Object[_0x14bbf5(0x24c)](_0x534866[_0x14bbf5(0x258)]??{})[_0x14bbf5(0x13c)],'fields':_0x534866[_0x14bbf5(0x3b5)][_0x14bbf5(0x13c)],'hasRecordOrder':!!((_0x1734b9=_0x534866['recordOrder'])!=null&&_0x1734b9[_0x14bbf5(0x13c)])}):mt(_0x534866);}function mt(_0x38f498){const _0x1d69c3=_0x6c183;var _0x1bdb61;let _0x2e9131=_0x38f498[_0x1d69c3(0x258)]??{},_0x560b7f=_0x38f498[_0x1d69c3(0x398)]??{},_0x4d3090=((_0x1bdb61=_0x38f498[_0x1d69c3(0x1e7)])==null?void 0x0:_0x1bdb61['filter'](_0x32549b=>_0x2e9131[_0x32549b]))??[],_0x187e56=new Set(_0x4d3090),_0x2e11c1=[];for(let _0x3411a2 of Object['values'](_0x2e9131))_0x187e56['has'](_0x3411a2['id'])||_0x2e11c1[_0x1d69c3(0x174)](_0x3411a2);let _0x365846=_0x2e11c1[_0x1d69c3(0x13c)]?[..._0x4d3090,...Rt(_0x2e11c1)]:_0x4d3090,_0x4563e2=_0x38f498[_0x1d69c3(0x3b5)][_0x1d69c3(0x2be)](_0x4bfeef=>_0x560b7f[_0x4bfeef]),_0x152f6d={..._0x38f498[_0x1d69c3(0x3d0)]??{}},_0x1cf960={..._0x38f498[_0x1d69c3(0x1fe)]??{}},_0x3b8c89={..._0x38f498[_0x1d69c3(0x389)]??{}};_0x38f498[_0x1d69c3(0x1e7)]=_0x365846,_0x38f498[_0x1d69c3(0x375)]={},_0x38f498[_0x1d69c3(0x3d0)]={},_0x38f498['colIndex']={},_0x38f498[_0x1d69c3(0x1fe)]={},_0x38f498[_0x1d69c3(0x389)]={},_0x38f498['resources']={..._0x38f498[_0x1d69c3(0x421)]??{}},_0x38f498[_0x1d69c3(0x421)][_0x1d69c3(0x199)]={..._0x38f498['resources'][_0x1d69c3(0x199)]??{}},_0x38f498['resources'][_0x1d69c3(0x4b9)]={..._0x38f498[_0x1d69c3(0x421)][_0x1d69c3(0x4b9)]??{}};let _0x19ae6d=_0x38f498['rowIndex'],_0x33687a=_0x38f498['rowId'],_0x12e741=_0x38f498[_0x1d69c3(0x390)],_0x3a6e3d=_0x38f498['colId'],_0x9ef92b=_0x38f498[_0x1d69c3(0x389)];return _0x365846[_0x1d69c3(0x2e0)]((_0x3c476a,_0x5c56e6)=>{_0x19ae6d[_0x3c476a]=_0x5c56e6,_0x33687a[_0x5c56e6]=_0x3c476a;}),_0x4563e2[_0x1d69c3(0x2e0)]((_0x458028,_0x1ed264)=>{_0x12e741[_0x458028]=_0x1ed264,_0x3a6e3d[_0x1ed264]=_0x458028;}),Object[_0x1d69c3(0x279)](_0x3b8c89)['forEach'](([_0x8256c1,_0x29be1a])=>{const _0x3eee1d=_0x1d69c3;let _0x2f60c0=Number(_0x8256c1),_0x26f6d3=_0x152f6d[_0x2f60c0]??_0x365846[_0x2f60c0],_0x10cd91=_0x26f6d3?_0x19ae6d[_0x26f6d3]:void 0x0;_0x10cd91!=null&&(_0x9ef92b[_0x10cd91]={..._0x9ef92b[_0x10cd91]??{}},Object[_0x3eee1d(0x279)](_0x29be1a??{})[_0x3eee1d(0x2e0)](([_0x5a55a5,_0x438559])=>{let _0x7ddaaf=Number(_0x5a55a5),_0x4fd80b=_0x1cf960[_0x7ddaaf]??_0x4563e2[_0x7ddaaf],_0x31ef99=_0x4fd80b?_0x12e741[_0x4fd80b]:void 0x0;_0x31ef99!=null&&(_0x9ef92b[_0x10cd91][_0x31ef99]=St(_0x438559));}));}),Object['values'](_0x2e9131)[_0x1d69c3(0x2e0)](_0x28b7aa=>{const _0x21d38b=_0x1d69c3;let _0x5d71fa=_0x19ae6d[_0x28b7aa['id']];_0x5d71fa!=null&&(_0x28b7aa[_0x21d38b(0x227)]={..._0x28b7aa[_0x21d38b(0x227)]??{},[_0x5a35e2]:_0x28b7aa['id']},_0x9ef92b[_0x5d71fa]={..._0x9ef92b[_0x5d71fa]??{},0x0:{'v':_0x28b7aa['id'],'t':_0x4dac72[_0x21d38b(0x18a)]}},Object[_0x21d38b(0x279)](_0x28b7aa['values']??{})['forEach'](([_0x1fe726,_0x12ff88])=>{const _0x127068=_0x21d38b;let _0x2e2c8f=_0x560b7f[_0x1fe726];(_0x2e2c8f==null?void 0x0:_0x2e2c8f[_0x127068(0x20b)])===_0x3a044b[_0x127068(0x1ab)]&&Dt(_0x38f498,_0x28b7aa['id'],_0x1fe726,_0x12ff88);let _0x2db116=_0x12e741[_0x1fe726];if(_0x2db116==null)return;let _0x5ab2c6=_0x9ef92b[_0x5d71fa][_0x2db116];if(_0x5ab2c6!=null){jt(_0x5ab2c6,_0x2e2c8f,_0x12ff88)&&(_0x9ef92b[_0x5d71fa][_0x2db116]=xt(_0x12ff88,_0x2e2c8f));return;}_0x9ef92b[_0x5d71fa][_0x2db116]=xt(_0x12ff88,_0x2e2c8f);}));}),_0x38f498;}function ht(_0x2ae022,_0x1e4c0f){const _0xe178f7=_0x6c183;return _0x2ae022[_0xe178f7(0x258)]=Object[_0xe178f7(0x176)](Object[_0xe178f7(0x279)](_0x2ae022[_0xe178f7(0x258)])[_0xe178f7(0x141)](([_0x5a93ec,_0x236a46])=>[_0x5a93ec,{..._0x236a46}])),L(_0x2ae022),Object[_0xe178f7(0x279)](_0x2ae022[_0xe178f7(0x3d0)]??{})[_0xe178f7(0x2e0)](([_0x203f7c,_0x33e6b1])=>{const _0x3cc19c=_0xe178f7;var _0x41f478;let _0x16bc50=Number(_0x203f7c),_0x183a46=_0x2ae022[_0x3cc19c(0x258)][_0x33e6b1];_0x183a46&&(_0x183a46[_0x3cc19c(0x227)]={..._0x183a46[_0x3cc19c(0x227)]??{}},Object['entries'](((_0x41f478=_0x2ae022['cellData'])==null?void 0x0:_0x41f478[_0x16bc50])??{})[_0x3cc19c(0x2e0)](([_0x4be748,_0x4a8c9a])=>{const _0x179d3f=_0x3cc19c;var _0x51f3c6;let _0x3c434a=(_0x51f3c6=_0x2ae022[_0x179d3f(0x1fe)])==null?void 0x0:_0x51f3c6[Number(_0x4be748)];_0x3c434a&&_0x1e4c0f&&!_0x1e4c0f(_0x33e6b1,_0x3c434a)||(_0x3c434a===_0x5a35e2?_0x183a46['values'][_0x5a35e2]=_0x183a46['id']:_0x3c434a&&(_0x183a46[_0x179d3f(0x227)][_0x3c434a]=Ct(_0x4a8c9a,_0x2ae022['fields'][_0x3c434a],_0x2ae022,_0x33e6b1)));}));}),_0x2ae022;}function gt(_0x4c4201,_0x1bed3a){const _0x5e4c5d=_0x6c183;for(let {row:_0x4ee377,col:_0x2c24e3}of _0x1bed3a){var _0x1dbccc,_0x5aeb2f,_0x1bc06e;let _0x4557bf=(_0x1dbccc=_0x4c4201[_0x5e4c5d(0x3d0)])==null?void 0x0:_0x1dbccc[_0x4ee377],_0x55d6e1=(_0x5aeb2f=_0x4c4201[_0x5e4c5d(0x1fe)])==null?void 0x0:_0x5aeb2f[_0x2c24e3],_0x1a48e7=_0x4557bf?_0x4c4201[_0x5e4c5d(0x258)][_0x4557bf]:void 0x0;if(!_0x1a48e7||!_0x55d6e1)continue;if(_0x55d6e1===_0x5a35e2){_0x1a48e7[_0x5e4c5d(0x227)][_0x5a35e2]=_0x1a48e7['id'];continue;}let _0x4ed01d=(_0x1bc06e=_0x4c4201['cellData'])==null||(_0x1bc06e=_0x1bc06e[_0x4ee377])==null?void 0x0:_0x1bc06e[_0x2c24e3];(_0x4ed01d!=null||Object[_0x5e4c5d(0x246)][_0x5e4c5d(0x48a)][_0x5e4c5d(0x43b)](_0x1a48e7[_0x5e4c5d(0x227)]??{},_0x55d6e1))&&(_0x1a48e7[_0x5e4c5d(0x227)]={..._0x1a48e7['values']??{}},_0x1a48e7['values'][_0x55d6e1]=Ct(_0x4ed01d,_0x4c4201[_0x5e4c5d(0x398)][_0x55d6e1],_0x4c4201,_0x4557bf));}return _0x4c4201;}function _t(_0x49871b,_0x23225f,_0x387c7b){const _0x5ee162=_0x6c183;var _0x5403aa,_0x2a4211,_0x3e52d9,_0xa13413,_0x1dd1e4,_0x433960;let _0x27384e=(_0x5403aa=_0x49871b[_0x5ee162(0x375)])==null?void 0x0:_0x5403aa[_0x23225f],_0x2690af=(_0x2a4211=_0x49871b[_0x5ee162(0x390)])==null?void 0x0:_0x2a4211[_0x387c7b];if(_0x27384e!=null&&_0x2690af!=null&&((_0x3e52d9=_0x49871b[_0x5ee162(0x3d0)])==null?void 0x0:_0x3e52d9[_0x27384e])===_0x23225f&&((_0xa13413=_0x49871b[_0x5ee162(0x1fe)])==null?void 0x0:_0xa13413[_0x2690af])===_0x387c7b)return{'row':_0x27384e,'col':_0x2690af};let _0x563712=L(_0x49871b),_0x317d5c=(_0x1dd1e4=_0x563712[_0x5ee162(0x375)])==null?void 0x0:_0x1dd1e4[_0x23225f],_0x5372ae=(_0x433960=_0x563712[_0x5ee162(0x390)])==null?void 0x0:_0x433960[_0x387c7b];return _0x317d5c==null||_0x5372ae==null?null:{'row':_0x317d5c,'col':_0x5372ae};}function vt(_0x1503d6,_0x1c4ac9,_0x337e23){const _0xdd88ab=_0x6c183;var _0x1fd2d0;let _0x4ae2f3=_t(_0x1503d6,_0x1c4ac9,_0x337e23);if(_0x4ae2f3)return(_0x1fd2d0=_0x1503d6['cellData'])==null||(_0x1fd2d0=_0x1fd2d0[_0x4ae2f3[_0xdd88ab(0x4b3)]])==null?void 0x0:_0x1fd2d0[_0x4ae2f3[_0xdd88ab(0x295)]];}function yt(_0x21371a,_0x366f24,_0x2220c7){const _0x42c342=_0x6c183;var _0x55d914;let _0x564b79=vt(_0x21371a,_0x366f24,_0x2220c7),_0x2ba599=_0x21371a[_0x42c342(0x398)][_0x2220c7];if((_0x2ba599==null?void 0x0:_0x2ba599['type'])===_0x3a044b['Attachment']){var _0x2d4db3;return Ot(_0x21371a,_0x366f24,_0x2220c7)??kt((_0x2d4db3=_0x21371a['records'][_0x366f24])==null||(_0x2d4db3=_0x2d4db3['values'])==null?void 0x0:_0x2d4db3[_0x2220c7]);}if(Mt(_0x2ba599)||Nt(_0x2ba599)||(_0x2ba599==null?void 0x0:_0x2ba599[_0x42c342(0x20b)])===_0x3a044b['Link']){var _0x3e427f;let _0x5cdc8d=(_0x3e427f=_0x21371a[_0x42c342(0x258)][_0x366f24])==null||(_0x3e427f=_0x3e427f['values'])==null?void 0x0:_0x3e427f[_0x2220c7];return _0x5cdc8d!=null&&_0x5cdc8d!==''?At(_0x5cdc8d,_0x2ba599):Ct(_0x564b79,_0x2ba599,_0x21371a,_0x366f24);}return _0x564b79&&Object['prototype'][_0x42c342(0x48a)][_0x42c342(0x43b)](_0x564b79,'v')?_0x564b79['v']??null:((_0x55d914=_0x21371a[_0x42c342(0x258)][_0x366f24])==null||(_0x55d914=_0x55d914[_0x42c342(0x227)])==null?void 0x0:_0x55d914[_0x2220c7])??null;}function bt(_0x1e5791,_0x34e651,_0x1b5652){const _0x4f3260=_0x6c183;var _0x12cdeb;let _0x75d941=vt(_0x1e5791,_0x34e651,_0x1b5652);if(_0x75d941&&Object[_0x4f3260(0x246)][_0x4f3260(0x48a)][_0x4f3260(0x43b)](_0x75d941,'v'))return _0x75d941['v']??null;let _0xa959e0=_0x1e5791['fields'][_0x1b5652];return xt(((_0x12cdeb=_0x1e5791[_0x4f3260(0x258)][_0x34e651])==null||(_0x12cdeb=_0x12cdeb[_0x4f3260(0x227)])==null?void 0x0:_0x12cdeb[_0x1b5652])??null,_0xa959e0)['v']??null;}function xt(_0x25b4fa,_0x4acb79){const _0x177c6f=_0x6c183;if(Tt(_0x25b4fa))return(_0x4acb79==null?void 0x0:_0x4acb79[_0x177c6f(0x20b)])===_0x3a044b[_0x177c6f(0x1ab)]?{..._0x25b4fa,'v':'','t':_0x4dac72['STRING']}:St(_0x25b4fa);if((_0x4acb79==null?void 0x0:_0x4acb79[_0x177c6f(0x20b)])===_0x3a044b[_0x177c6f(0x1ab)])return{'v':'','t':_0x4dac72[_0x177c6f(0x18a)]};if(Nt(_0x4acb79)){let _0x1f97cf=Pt(_0x25b4fa);return{'v':_0x1f97cf,'t':Lt(_0x1f97cf)};}if(Mt(_0x4acb79))return{'v':Ft(_0x25b4fa)['join'](',\x20'),'t':_0x4dac72[_0x177c6f(0x18a)]};if((_0x4acb79==null?void 0x0:_0x4acb79['type'])===_0x3a044b[_0x177c6f(0x41f)]&&_0x25b4fa&&typeof _0x25b4fa==_0x177c6f(0x3d7)&&!Array[_0x177c6f(0x431)](_0x25b4fa)){let _0x357413=_0x25b4fa;return{'v':String(_0x357413[_0x177c6f(0x3ae)]??_0x357413[_0x177c6f(0x32d)]??''),'t':_0x4dac72['STRING']};}return _0x25b4fa===null||typeof _0x25b4fa==_0x177c6f(0x425)||typeof _0x25b4fa=='number'||typeof _0x25b4fa==_0x177c6f(0x1cb)?{'v':_0x25b4fa,'t':Lt(_0x25b4fa)}:{'v':null,'t':null};}function St(_0x15d988){let _0x462742=zt(_0x15d988['t'],_0x15d988['v']);if(_0x462742===void 0x0){let {t:_0x5518ad,..._0x47c662}=_0x15d988;return _0x47c662;}return{..._0x15d988,'t':_0x462742};}function Ct(_0x29a1f0,_0x513c83,_0x7bba70,_0x685f47){const _0x1da3eb=_0x6c183;if(!_0x29a1f0)return null;if((_0x513c83==null?void 0x0:_0x513c83[_0x1da3eb(0x20b)])===_0x3a044b['Attachment'])return _0x7bba70&&_0x685f47?Ot(_0x7bba70,_0x685f47,_0x513c83['id'])??[]:[];if(Mt(_0x513c83))return Ft(_0x29a1f0['v']);if((_0x513c83==null?void 0x0:_0x513c83[_0x1da3eb(0x20b)])===_0x3a044b[_0x1da3eb(0x41f)]&&_0x7bba70&&_0x685f47){var _0x3b856a;let _0x990a08=(_0x3b856a=_0x7bba70['records'][_0x685f47])==null||(_0x3b856a=_0x3b856a[_0x1da3eb(0x227)])==null?void 0x0:_0x3b856a[_0x513c83['id']];if(_0x990a08&&typeof _0x990a08==_0x1da3eb(0x3d7)&&!Array['isArray'](_0x990a08))return _0x990a08;}return Object['prototype'][_0x1da3eb(0x48a)][_0x1da3eb(0x43b)](_0x29a1f0,'v')?_0x29a1f0['v']??null:null;}function wt(_0x481e05,_0x1d2fdb,_0x205cf8,_0x4c718b,_0x6396e8){const _0x1c67e2=_0x6c183;return(_0x205cf8==null?void 0x0:_0x205cf8['type'])===_0x3a044b[_0x1c67e2(0x1ab)]?kt(_0x481e05):Nt(_0x205cf8)?Pt(_0x481e05):Mt(_0x205cf8)?Ft(_0x481e05):(_0x205cf8==null?void 0x0:_0x205cf8['type'])===_0x3a044b[_0x1c67e2(0x41f)]&&(_0x481e05==null||_0x481e05==='')?null:(_0x205cf8==null?void 0x0:_0x205cf8[_0x1c67e2(0x20b)])===_0x3a044b[_0x1c67e2(0x41f)]&&_0x481e05&&typeof _0x481e05==_0x1c67e2(0x3d7)&&!Array['isArray'](_0x481e05)&&!Tt(_0x481e05)?_0x481e05:Ct(_0x1d2fdb,_0x205cf8,_0x4c718b,_0x6396e8);}function Tt(_0x44a14f){const _0x512577=_0x6c183;return!!_0x44a14f&&typeof _0x44a14f==_0x512577(0x3d7)&&(Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'v')||Object['prototype']['hasOwnProperty'][_0x512577(0x43b)](_0x44a14f,'t')||Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'p')||Object['prototype'][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'f')||Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'si'));}function Et(_0x286138,_0x3c8988){return _0x286138+'\x1f'+_0x3c8988;}function Dt(_0x4b77ec,_0x389f24,_0x5229d5,_0x43a15c){const _0x172f6c=_0x6c183;let _0x1e9f8e=kt(_0x43a15c);_0x4b77ec['resources']={..._0x4b77ec[_0x172f6c(0x421)]??{}},_0x4b77ec[_0x172f6c(0x421)]['attachmentSets']={..._0x4b77ec[_0x172f6c(0x421)]['attachmentSets']??{}},_0x4b77ec[_0x172f6c(0x421)][_0x172f6c(0x4b9)]={..._0x4b77ec['resources']['attachments']??{}};let _0x434724=Et(_0x5229d5,_0x389f24),_0x30f32b=[];for(let _0x21e4dc=0x0;_0x21e4dc<_0x1e9f8e['length'];_0x21e4dc++){if(!(_0x21e4dc in _0x1e9f8e))continue;let _0x15215d=_0x1e9f8e[_0x21e4dc],_0x38c495=String(_0x15215d['id']??_0x434724+'\x1f'+_0x21e4dc),_0x17ce1f={..._0x15215d,'id':_0x38c495};_0x4b77ec['resources'][_0x172f6c(0x4b9)][_0x38c495]=_0x17ce1f,_0x30f32b[_0x172f6c(0x174)](_0x38c495);}_0x4b77ec[_0x172f6c(0x421)][_0x172f6c(0x199)][_0x434724]=_0x30f32b;}function Ot(_0x4aad99,_0x5b889b,_0x293f73){const _0x5f5d6e=_0x6c183;var _0x5df4d4;let _0x451aa5=Et(_0x293f73,_0x5b889b),_0x564009=(_0x5df4d4=_0x4aad99[_0x5f5d6e(0x421)])==null||(_0x5df4d4=_0x5df4d4['attachmentSets'])==null?void 0x0:_0x5df4d4[_0x451aa5];if(!_0x564009)return null;let _0x175d14=[];for(let _0x784ee1=0x0;_0x784ee1<_0x564009[_0x5f5d6e(0x13c)];_0x784ee1++){var _0x59d619;if(!(_0x784ee1 in _0x564009))continue;let _0x4704b4=(_0x59d619=_0x4aad99[_0x5f5d6e(0x421)])==null||(_0x59d619=_0x59d619[_0x5f5d6e(0x4b9)])==null?void 0x0:_0x59d619[_0x564009[_0x784ee1]];_0x4704b4&&_0x175d14[_0x5f5d6e(0x174)]({..._0x4704b4});}return _0x175d14;}function kt(_0x4cf363){const _0x18511e=_0x6c183;if(_0x4cf363==null||_0x4cf363===''||Tt(_0x4cf363)&&!('id'in _0x4cf363)&&!('name'in _0x4cf363))return[];let _0x49cb2b=Array[_0x18511e(0x431)](_0x4cf363)?_0x4cf363:[_0x4cf363],_0x1a140f=[];for(let _0x445a26=0x0;_0x445a26<_0x49cb2b[_0x18511e(0x13c)];_0x445a26++){if(!(_0x445a26 in _0x49cb2b))continue;let _0x53e3e3=_0x49cb2b[_0x445a26],_0x347ac9=_0x53e3e3&&typeof _0x53e3e3=='object'?{..._0x53e3e3}:{'id':_0x18511e(0x2b7)+_0x445a26,'name':String(_0x53e3e3)};Object['keys'](_0x347ac9)[_0x18511e(0x13c)]>0x0&&_0x1a140f[_0x18511e(0x174)](_0x347ac9);}return _0x1a140f;}function At(_0x1e7c06,_0x2cba30){return(_0x2cba30==null?void 0x0:_0x2cba30['type'])===_0x3a044b['Attachment']?kt(_0x1e7c06):Nt(_0x2cba30)?Pt(_0x1e7c06):Mt(_0x2cba30)?Ft(_0x1e7c06):_0x1e7c06;}function jt(_0x383d3a,_0x4d5371,_0x344589){const _0x5c17a3=_0x6c183;return(_0x4d5371==null?void 0x0:_0x4d5371['type'])===_0x3a044b[_0x5c17a3(0x1ab)]?_0x383d3a['v']!=='':Nt(_0x4d5371)?_0x383d3a['v']!==Pt(_0x344589):Mt(_0x4d5371)?Array[_0x5c17a3(0x431)](_0x344589)&&(_0x383d3a['v']==null||_0x383d3a['v']===''):!0x1;}function Mt(_0x4d4fd3){const _0x5943f6=_0x6c183;return(_0x4d4fd3==null?void 0x0:_0x4d4fd3['type'])===_0x3a044b[_0x5943f6(0x386)]||(_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5943f6(0x20b)])===_0x3a044b[_0x5943f6(0x1ad)]||(_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5943f6(0x20b)])===_0x3a044b[_0x5943f6(0x359)]&&_0x4d4fd3[_0x5943f6(0x2ba)]['allowMultiple']===!0x0;}function Nt(_0x19a687){const _0x245e0d=_0x6c183;return(_0x19a687==null?void 0x0:_0x19a687[_0x245e0d(0x20b)])===_0x3a044b[_0x245e0d(0x359)]&&_0x19a687['config'][_0x245e0d(0x198)]!==!0x0;}function Pt(_0x19b8a3){let _0x2f3d70=Tt(_0x19b8a3)?_0x19b8a3['v']:_0x19b8a3,_0x2ec5e6=Array['isArray'](_0x2f3d70)?_0x2f3d70[0x0]:_0x2f3d70;return _0x2ec5e6==null||_0x2ec5e6===''?null:String(_0x2ec5e6);}function Ft(_0x321370){const _0x4fc6d4=_0x6c183;if(_0x321370==null||_0x321370==='')return[];let _0x45ff6f=[];if(Array[_0x4fc6d4(0x431)](_0x321370)){for(let _0x6a5a0e=0x0;_0x6a5a0e<_0x321370[_0x4fc6d4(0x13c)];_0x6a5a0e++){if(!(_0x6a5a0e in _0x321370))continue;let _0x433477=It(_0x321370[_0x6a5a0e]);_0x433477&&_0x45ff6f[_0x4fc6d4(0x174)](_0x433477);}return _0x45ff6f;}for(let _0x50f979 of String(_0x321370)[_0x4fc6d4(0x1c0)](',')){let _0x3f2b31=_0x50f979['trim']();_0x3f2b31&&_0x45ff6f['push'](_0x3f2b31);}return _0x45ff6f;}function It(_0x11813d){const _0x287b8e=_0x6c183;if(_0x11813d==null)return'';if(typeof _0x11813d==_0x287b8e(0x425)||typeof _0x11813d==_0x287b8e(0x24b)||typeof _0x11813d=='boolean')return String(_0x11813d);if(typeof _0x11813d=='object'){let _0x447d9d=_0x11813d;return String(_0x447d9d['id']??_0x447d9d[_0x287b8e(0x2a3)]??_0x447d9d[_0x287b8e(0x3ae)]??'');}return String(_0x11813d);}function Lt(_0x386f5a){const _0x53d856=_0x6c183;return _0x386f5a==null?null:typeof _0x386f5a=='number'?_0x4dac72['NUMBER']:typeof _0x386f5a==_0x53d856(0x1cb)?_0x4dac72[_0x53d856(0x1b8)]:_0x4dac72[_0x53d856(0x18a)];}function Rt(_0x568f63){const _0x2a4f6f=_0x6c183;_0x568f63[_0x2a4f6f(0x277)]((_0x281c70,_0x2fc099)=>_0x281c70[_0x2a4f6f(0x4a1)]['localeCompare'](_0x2fc099[_0x2a4f6f(0x4a1)]));let _0x257de0=[];for(let _0x5c9e7a of _0x568f63)_0x257de0[_0x2a4f6f(0x174)](_0x5c9e7a['id']);return _0x257de0;}function zt(_0xa9485a,_0x5eed5b){const _0x41d8ff=_0x6c183;return _0xa9485a===_0x4dac72[_0x41d8ff(0x18a)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x324)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x1b8)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x175)]||_0xa9485a==null?_0xa9485a:Lt(_0x5eed5b??null);}function R(_0x96eccc){const _0x18483d=_0x6c183;let _0x3226d2=null;for(let _0x4ce7bb of _0x96eccc)_0x3226d2=_0x3226d2===null?_0x4ce7bb:_0x53fdae[_0x18483d(0x20b)][_0x18483d(0x2a2)](_0x3226d2,_0x4ce7bb);return _0x3226d2;}var z=class e{static[_0x6c183(0x30e)](_0xe525ab,_0x27ea61){const _0x51c1bd=_0x6c183;let _0x39b8c7=[];for(let _0x1f4bdf of _0x27ea61){let _0x4028df=Bt(_0x1f4bdf);if(!_0x4028df||_0x4028df[_0x51c1bd(0x393)]!==_0xe525ab['id'])return null;_0x39b8c7[_0x51c1bd(0x174)](_0x4028df['op']);}try{let _0x1a0182=R(_0x39b8c7);return _0x1a0182===null?_0xe525ab:new e()[_0x51c1bd(0x4c3)](_0xe525ab,_0x1a0182);}catch{return null;}}[_0x6c183(0x4c3)](_0x3bd42c,_0x104de0){const _0x5bda69=_0x6c183;let _0x3d68ba=this[_0x5bda69(0x311)](_0x104de0),_0x4f434d=I(_0x5bda69(0x3a7),()=>Xt(_0x3bd42c,_0x104de0),{'invalidations':_0x3d68ba[_0x5bda69(0x13c)]}),_0x21e2a6=I('BaseJson1.json1Apply',()=>_0x53fdae[_0x5bda69(0x20b)]['apply'](_0x4f434d,_0x104de0),{'invalidations':_0x3d68ba['length']}),_0x36d3ef=Ht(_0x21e2a6,_0x3d68ba);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x21e2a6,_0x3d68ba),{'invalidations':_0x3d68ba['length']})?(Ut(_0x21e2a6,_0x36d3ef),_0x21e2a6):(I(_0x5bda69(0x335),()=>{const _0x353d12=_0x5bda69;this[_0x353d12(0x306)](_0x21e2a6,_0x3d68ba)['forEach'](_0xdf237d=>{const _0x1aed4f=_0x353d12;let _0x5af1f7=_0x3d68ba[_0x1aed4f(0x2be)](_0x44cd95=>_0x44cd95[_0x1aed4f(0x210)]===_0xdf237d['id']),_0x1ef448=_0x5af1f7[_0x1aed4f(0x13c)]>0x0&&_0x5af1f7['every'](_0x44145c=>_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x2d5)||_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x37d)||_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x1de)||_0x44145c['reason']===_0x1aed4f(0x493))?new Set(_0x5af1f7[_0x1aed4f(0x17a)](_0x270711=>{const _0x441529=_0x1aed4f;var _0x1eab4c;if(_0x270711[_0x441529(0x28a)]!==_0x441529(0x2d5)||!_0x270711['fieldId'])return[];let _0x3933e6=(_0x1eab4c=_0x3bd42c[_0x441529(0x298)][_0xdf237d['id']])==null?void 0x0:_0x1eab4c['fields'][_0x270711[_0x441529(0x2b0)]],_0x215778=_0xdf237d[_0x441529(0x398)][_0x270711[_0x441529(0x2b0)]];return(_0x3933e6==null?void 0x0:_0x3933e6['type'])!==(_0x215778==null?void 0x0:_0x215778['type'])||(_0x3933e6==null?void 0x0:_0x3933e6[_0x441529(0x2ba)][_0x441529(0x198)])!==(_0x215778==null?void 0x0:_0x215778['config'][_0x441529(0x198)])?[_0x270711[_0x441529(0x2b0)]]:[];})):void 0x0,_0x4d5bf1=new Set(_0x5af1f7[_0x1aed4f(0x17a)](_0x3a70d6=>{const _0x5a74cb=_0x1aed4f;var _0x372c29,_0x2d0eaf;return _0x3a70d6[_0x5a74cb(0x28a)]!==_0x5a74cb(0x1de)||_0x3a70d6[_0x5a74cb(0x4b3)]==null||_0x3a70d6[_0x5a74cb(0x229)]==null?[]:[JSON[_0x5a74cb(0x25f)]([(_0x372c29=_0xdf237d[_0x5a74cb(0x3d0)])==null?void 0x0:_0x372c29[_0x3a70d6[_0x5a74cb(0x4b3)]],(_0x2d0eaf=_0xdf237d[_0x5a74cb(0x1fe)])==null?void 0x0:_0x2d0eaf[_0x3a70d6[_0x5a74cb(0x229)]]])];}));ht(_0xdf237d,_0x1ef448?(_0x572813,_0x4de451)=>_0x1ef448['has'](_0x4de451)||_0x4d5bf1[_0x1aed4f(0x34b)](JSON['stringify']([_0x572813,_0x4de451])):void 0x0);});},{'invalidations':_0x3d68ba[_0x5bda69(0x13c)]}),Ut(_0x21e2a6,_0x36d3ef),_0x21e2a6);}[_0x6c183(0x2d8)](_0xa20adb,_0x37c6f0){const _0x22f11d=_0x6c183;return _0x53fdae['type'][_0x22f11d(0x270)](_0x37c6f0,_0xa20adb);}[_0x6c183(0x311)](_0x255214){const _0x1ea0da=_0x6c183;let _0x57a43f=qt(_0x255214);return _0x57a43f[_0x1ea0da(0x13c)]?Jt(_0x57a43f[_0x1ea0da(0x17a)](_0x29c0d2=>this[_0x1ea0da(0x311)](_0x29c0d2))):Wt(_0x255214);}[_0x6c183(0x306)](_0x15ddd5,_0x25413d){const _0x5d9d00=_0x6c183;let _0x25f26a=_0x25413d[_0x5d9d00(0x2be)](_0x961931=>_0x961931['reason']!==_0x5d9d00(0x37d));return _0x25f26a[_0x5d9d00(0x13c)]?_0x25f26a['some'](_0x4c4c61=>!_0x4c4c61[_0x5d9d00(0x210)])?Object['values'](_0x15ddd5[_0x5d9d00(0x298)]??{}):Array[_0x5d9d00(0x1d5)](new Set(_0x25f26a[_0x5d9d00(0x141)](_0x516e68=>_0x516e68[_0x5d9d00(0x210)])))[_0x5d9d00(0x17a)](_0x1dd174=>{const _0x1c9b14=_0x5d9d00;var _0x544cf7;let _0xe33c01=(_0x544cf7=_0x15ddd5[_0x1c9b14(0x298)])==null?void 0x0:_0x544cf7[_0x1dd174];return _0xe33c01?[_0xe33c01]:[];}):[];}};function Bt(_0x572886){const _0x32db7d=_0x6c183;let _0x5e8a81=_0x572886['params'];return _0x572886['id']!==_0x32db7d(0x340)||typeof _0x5e8a81!='object'||!_0x5e8a81||!(_0x32db7d(0x393)in _0x5e8a81)||typeof _0x5e8a81[_0x32db7d(0x393)]!='string'||!('op'in _0x5e8a81)||!Array[_0x32db7d(0x431)](_0x5e8a81['op'])?null:{'unitId':_0x5e8a81[_0x32db7d(0x393)],'op':_0x5e8a81['op']};}function _0x4376(){const _0x29bbb7=['_getCachedProjection','_recordIds','objectType','rowIndex','multiple','base.command.batch-delete-base-records','Redo','_resolveBaseId','localeCompare','removeOp','_applier','view','IS_EMPTY','cardSize','[BaseCommandService]:\x20cannot\x20create\x20record.','_findCalendarDateFieldId','BaseDashboard','createRegExpFromSafeFragment','h12','next7','MultiSelect','every','saveMany','cellData','setBasePermission','resolvedOptions','lastIndexOf','clearFieldPermission','_projectionCache','date','colIndex','[RecordLink]:\x20display\x20field\x20\x22','find','unitId','spacePeriod','level','conditions','recordIds','fields','createDefaultConfig','base.command.create-base-view','card','_scheduledSuperTableSyncs','label','setFieldPermission','_normalizeCalendarDisplayColor','regenerateViewIds','setTablePermission','working','invalid','all','-field-name','setRecordValues','BaseJson1.cloneForOp','getSuperTableRegistrations','readonly','_bumpTableRevision','validateFormula','RecordLink','_permissionService','text','base.field-registry.service','MUTATION','\x20must\x20have\x20a\x20non-empty\x20id.','primaryFieldId','_filterSortFieldIds','cycle','fieldOrder','invalidReasonByRecordId','parentByRecordId','clearUnit','fromChangeset','_isAllowedKanbanGroupField','registerSyncingMutations','formula','depth','_normalizeGanttDisplayColor','remote','large','_createSystemFieldValuePatches','_resolveKanbanCardFieldIds','orderedRecordIds','_assertFieldDefinition','code','True','invalidateByOp','BaseRecord','thread-comment.command.','childUnitId','mode','_commandService','format','gridViewId','system','rowId','Working\x20day','canManageView','getTime','invalidateByField','_groupsCacheKey','base.mutation.set-permission-rules','object','rowIndexById','_projectFields','conditional','getAllUnitsForType','target','[BaseCommandService]:\x20cannot\x20manage\x20view.','next30','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','_registeredSuperTableNames','base.command.change-base-field-type','_canUseFastSort','leftPaneWidth','_viewRevisions','changeFieldType',':start','_getJson1DirtyData','action','renameFormulaUnitReferences','dateMode','_projectGroups','createBatchCreateRecordsOp','getUTCDate','52RlyNdo','endDateFieldId','base.command.update-base-record-order','long','_T_','Use\x2031\x20characters\x20or\x20fewer.','_resolveCardTitleFieldId','_isAllDayCalendarEvent','invalidDateField','setBaseName','getUTCMonth','deleteView','packageName','subtreeEndIndex','raw','duplicate','updatePermissionPoint','_formulaSyncQueue','[BaseFormula]:\x20field\x20\x22','blue','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','_capabilities','MMM\x20D,\x20YYYY','Failed\x20to\x20create\x20update\x20cell\x20operation:','isInteger','bases.remote.config','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','conditionalColoring','SelfParent','canCreateField','_cellInvalidations','_getHierarchyIndex','workingDaysOnly','allowDangling','_getSystemFieldValue','_kanbanLaneTitle','_findKanbanGroupField','recordPatch','invalidGroupField','getUTCFullYear','short','setViewGroup','base.viewType.gantt','getCurrentUserId','start','clearBasePermission','ena','_enqueueFormulaSync','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','Link','NumberFormat','resources','getFullYear','formulaName','function','string','groupFieldId','after','_getKanbanConfiguredLanes','base.command.move-base-view','_isColorfulKanbanGroupField','_getCellRevision','canEditField','hostAnchorId','unitData','none','displayColor','isArray','toLowerCase','exact','Gallery','info','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','_canEdit','_syncSuperTables','end','INIT','call','Kanban','month','get','initializeUnit','Add','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','findIndex','exists','exceptions','Empty','custom','CONTAINS','defineProperty','_projectRows','_hierarchyIndexCache','getAllPermissionPoint','_patchProjectedRowsForCellInvalidations','create-view','indexOf','[BaseProjectionService]:\x20missing\x20view\x20\x22','showTodayLine','_initDataSync','_groupCellInvalidations','General','constructor','_applyFormulaResult','_buildGrid','this-row','leftPaneCollapsed','[BaseCommandService]:\x20cannot\x20create\x20table.','Undo','owner','members','updatedAt','childType','error','save','editable','fromPlainText','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','Phone','deleteRecord','base.command.create-base-table','createCreateRecordOp','decorate','_resolveGanttDateFieldId','canEditRecord','_clearObjectEdit','_normalizeCellValue','_applyingFormulaResults','optionSource','Table\x20name\x20is\x20required.','_instanceService','Clear','base-range-values-v1','afterFieldId','parentRecordId','BaseTable','_createNumberingAllocators','Set','Cycle','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','base.mutation.set-permission-rule','isNaN','pushUndoRedo','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','_resolveGalleryCardFieldIds','getInstance','markResultApplied','pop','max','createSetRecordValuesOp','_projectedRowsCache','base.viewType.kanban','executeCommand','exception-','title','dependencyFieldId','hasOwnProperty','canDeleteRecord','_getOrderedRecords','invalidField','\x20has\x20unsupported\x20date\x20mode\x20\x22','fieldSettings',',,,\x22B\x22','manual','commaPeriod','record','createBase','source','BaseHierarchyError','false','BaseProjection.getProjection','_materializeFormulaTableNames','[BaseFormula]:\x20table\x20\x22','174rXfLUM','unsubscribe','_isAllDayGanttDateRange','set','clearViewPermission','Formula','orderKey','getItem','_getTable','_isCalendarDateField','registerCommand','kanban','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','_replaceOptional','resolve','_recordPermissions','onReady','default','rootRecordIds','base.command.create-base-field','unitOtherData','_tableBaseIds','progressFieldId','UTC','row','BASE','startDateFieldId','fld-','createCreateFieldOp','_factory','attachments','currencySymbol','rule','_isGanttDateField','tableName','abs','getTypePlugin','\x20has\x20unsupported\x20operator\x20\x22','Yes','Unchecked','applyOp','rules','revision',':end','table','usableAsCalendarDate','BaseProjection.projectTableRows','contains','_initDependencies','invalidGanttStartField','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','notContains','count','protocol','Comment','unique','Base\x20','join','setConfig','canCreateTable','setRangeValues','_dataSyncPrimaryController','__tempBatchingUndoRedo','UNIVER_EMBED_BASES_TABLE','duplicateRecord','setRule','24277520bkBCxc','BaseProjection.projectGroups','formatToParts','children','YYYY-MM-DD','base.command.duplicate-base-field','sum','record/','getTypeOfUnitAdded$','slice','thread-comment.mutation.','_normalizeGanttConfig','direction','day','displayFieldId','invalidateByView','bases-exchange-client.operation.export-base','createRecord','disposeWithMe','BaseCommand.createBatchCreateRecordsOp','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','maxDepth','compare','_cellRevisions','updateField','length','_onCommandExecuted','compress','insertOp','Progress','map','_setViewFieldSetting','isFinite','toPlainText','delete-view','subtreeHeightByRecordId','h24','past30','yyyy/mm/dd','matchAll','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','[BaseFormula]:\x20table\x20does\x20not\x20exist.','Currency','replace','_projectedGroupsCache','_groupProjectionFieldIds','_setObjectEdit','filled','_getAllBaseDependencyTreeCacheMap','_buildCalendar','base.command.set-base-view-group','_views','_withModifiedSystemValues','deleteRecords','index','defaultValue','size','columnSettings','showFieldNames','setViewFieldWidth','renameView','hierarchy','Grid','setPoint','syncExecuteCommand','timeZone','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','BASE_OBJECT_PERMISSION_PLUGIN','_getStructureDirtyTableIds','_initRegistries','[BaseField]:\x20invalid\x20progress\x20value.','includes','beforeCommandExecuted','_config','usableAsCardCover','setViewFilter','bases.config','thisMonth','_normalizeCalendarConfig','trigger','[BaseField]:\x20invalid\x20email\x20value.','push','FORCE_STRING','fromEntries','diffValue','_formulaCalculationSessionService','False','flatMap','getUnitType','snapshot','renameTable','#BFDBFE','today','replaceOp','\x22\x20is\x20referenced\x20by\x20','_initCommands','registerRuleModel','_normalizeGalleryConfig','some','spaceComma','getPermissionPoint','normalize','[BaseCommandService]:\x20cannot\x20edit\x20record.','STRING','h:mm\x20a','setViewFieldVisible','_setFormulaFieldCells','_disposed','_createNumberingAllocator','off','_globalRevision','base.command.validate-formula','_getViewRevision','primaryFieldName','_baseSyncDisposables','_resolveKanbanGroupFieldId','_check','allowMultiple','attachmentSets','_filterRows','edit','[RecordLink]:\x20target\x20record\x20\x22','getUTCDay','base.command.set-base-view-field-width','DD/MM/YYYY','_setAttachmentResources','invalidateByCell','-view-grid','[BaseCommandService]:\x20cannot\x20delete\x20table.','selfParent','_resolveKanbanCoverFieldId','_viewPermissions','medium','validate','workingDays','invalidGanttEndField','Attachment','_resolveGalleryCoverFieldId','Group','measure','beforeViewId','canDeleteTable','empty','hidden','createTable','embed-ui','getTypeOfUnitDisposed$','COMMAND','Base\x20edit\x20permission\x20denied.','BOOLEAN','4yQPuSM','titleFieldId','dispose','toLocaleString','useThousands','_univerInstanceService','createRecords','split','_groupConfigCacheSegment','2025863KsaXEU','data','_registerUnitPermissionPoints','MM/DD/YYYY','parentFieldName','base.command.delete-base-record','createdAt','Export','weekdays','boolean','Base','viewOrder','description','Gantt','usableAsGanttEnd','@univerjs-pro/bases','base.command.create-base-record','toPrimitive','relationRole','from','colorFieldId','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','#3b82f6','990861kCaGRr','abbreviation','getAll','_clearUnit','_plugins','cell','A\x20table\x20with\x20this\x20name\x20already\x20exists.','repairViewConfig','scale','_fieldPermissions','todo','changed','GREATER_THAN','updatedBy','recordOrder','createUnit','searchTexts','quarter','calendar','assign','_syncBaseUnit','viewRevision','numfmt','_scheduleSuperTableSync','[BasePerf]\x20','group','Ids','_canEditTable','Uncategorized','BaseField','past7','_setCachedProjection','InvalidField','UpdatedAt','startsWith','_ganttBarColor','timeslotSize','colId','_getAllTableIds','Edit','pickerFieldIds','2113704KJIyaQ','[BaseCommandService]:\x20cannot\x20delete\x20record.','base.command.rename-base-table','major-','base.command.duplicate-base-record','[BaseField]:\x20invalid\x20phone\x20value.','Calendar','symbol','padStart','type','Name','updateCell','SingleSelect','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','tableId','clearTablePermission','score','frozenFieldCount','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','test','getCurrentUser','IBaseCellData.ensureTableCellLayout','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','_apply','coverFieldId','lessThanOrEqual','42383ujtTnN','cellRevision','bases.fieldConfig.textPlaceholder','#FDE68A','operator','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','canDeleteField','BASES_PLUGIN','_injector','createDeleteRecordsUndoOp','trim','values','getUnit','column','setViewFieldOrder','https:',',,\x22M\x22','base.command.update-base-kanban-config','includeTime','RecordId','_fastSortRows','local','base.command.service','Checkbox','onStarting','pattern','BaseProjection.filterAndSortRows','_cellInvalidationsTouchFields','Remote','_patchCachedProjectedRows','[BaseCommandService]:\x20field\x20\x22','average','undo','setViewSort','MissingParent','_deleteAttachmentResources','table/','UpdatedBy','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','focusUnit','before','_executeSuperTableMutationWhileActive','prototype','base.command.ensure-base-temporal-view-date-fields','Date1900','getProjection','_initialize','number','keys','base.viewType.calendar','BEFORE','base.permission.service','createField','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','attachmentSet','NOT_CONTAINS','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','Doing','[BaseCommandService]:\x20cannot\x20edit\x20table.','projection','records','createViewId','view-','duplicateField','\x22\x20is\x20not\x20registered.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','_getCurrentUserId','stringify','Unsupported\x20Base\x20permission\x20action:\x20','getBase','dateFormat','unknown','usableAsGanttStart','subscribe','64865BXAIwL','strategies','user','true','getDependencies','gantt','MM-DD','[BaseCommandService]:\x20invalid\x20field\x20definition.','valid','Email','invertWithDoc','_title','[BaseField]:\x20invalid\x20checkbox\x20value.','depthByRecordId','base.command.delete-base-field','kind','color','sort','conjunction','entries','min','exec','required','#BBF7D0','\x20permission\x20denied.','decimalPlaces','getMonth','missingRecord','params','deleteTable','Numbering','MaxDepth','COLUMN','_fieldRegistry','viewId','splice','reason','_createRecordWithDefaults','_activeDirtyManagerService','CreatedBy','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20record-id\x20is\x20reserved.','base.resource.service','tableRevision','missingField','deletePermissionPoint','iterator','col','createSuperTableReference','pluginName','tables','at\x20index\x20','univer.basePerf','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','fieldIndex','deepClone','_removeSuperTables','_basePermissions','_viewRevisionKey','_isKanbanGroupField','compose','name','now','dashboard/','bases-exchange-client.operation.export-base-by-format','getCurrentUnitOfType','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','_createRecordOrderOp','thumbnail','setSnapshot','Todo','[BaseCommandService]:\x20cannot\x20edit\x20cell.','__base_hierarchy_parent__','base.command.move-base-hierarchy-record','fieldId','getOwnPropertyDescriptor','remove','options','BaseProjection.materializeTableRows','lastIndex','basePerf','attachment-','collaborators','[BaseViewRegistryService]:\x20view\x20type\x20\x22','config','_rememberTable','REMOTE_BASES_PLUGIN','11419864EzKqdb','filter','\x22\x20does\x20not\x20exist.','small','subType','path','Rating','1.0.1','rows','_projectedViewRowsCache','childrenByParentId','[BaseField]:\x20invalid\x20date\x20value.','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','getStructuredDependencies','base.command.rename-base-view','periodComma','_cacheKey','_toDirtyRangePatch','updateViewConfig','fieldName','oldParentRecordId','embedId','_runtimeContext','afterViewId','field','person','createView','invertOp','register','en-US','base.command.set-base-view-field-visible','base.command.set-base-name','globalRevision','week','too-long','forEach','key','addPermissionPoint','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','nodes','base-perf','patches','Parent','clearRecordPermission','allowNegative','columns','policy','onCommandExecuted','_resolveCalendarDateFieldId','add','base.command.','_configService','#16a34a','formula.mutation.set-formula-calculation-result','query','[BaseCommandService]:\x20invalid\x20cell\x20value.','Number','_buildGantt','base.command.set-permission','baseRows','MissingRecord','base.command.batch-create-base-records','deleteField','delete','getCapabilities','onlyLocal','getUnitId','[BaseField]:\x20invalid\x20multi-value\x20reference.','selectField','operand','star','isEmpty','facade','_getTablesToNormalize','greaterThanOrEqual','moveView','codePointAt','_sortRows','locale','manageView','HH:mm','tryMaterializeSnapshot','[DeleteBaseTableCommand]:\x20table\x20\x22','field/','getAffectedRanges','_viewRowsCacheKey','updateRecordOrder','[BaseHierarchy]:\x20field\x20\x22','Text','order','setRecordPermission','base.fieldType.','base.command.update-base-view-conditional-color-rules','_kanbanLaneColor','syncUnit','fieldIds','_deleteRecordsBaseOp','limit','undefined','[RecordLink]:\x20field\x20config\x20is\x20invalid.','canCreateRecord','registerCtorForType','status','NUMBER','Start\x20date','[BaseCommandService]:\x20cannot\x20delete\x20field.','invalid-characters','clear','createdBy','redo','_projectTableRows','IS_NOT','url','attachment','getSnapshot','yesterday',',\x22K\x22','CreatedAt','_createNumberingFieldValuePatches','targetTableId','BaseJson1.normalizeTables','greaterThan','Copy','tableOrder','normal','BaseView','base.viewType.grid','cardLayout','beforeFieldId','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','toString','base.mutation.apply-base-json1','_matchesGanttColorRule','\x20has\x20unsupported\x20target\x20\x22','round','moveField','groups','Date','recordId','_tablePermissions','\x22\x20with\x20field\x20type\x20\x22','getDay','has','\x20cannot\x20use\x20operator\x20\x22','changes','https://','reduce','value','$1\x20','doing','_getTableRevision','_tableRevisions','recordNamePrefix','isNot','createUpdateCellOp','_materializeGroups','Person','endsWith','base.mutation.','DESC','_projectHierarchyGroups','Checked','_rowTransformCacheSegment','setViewPermission','year','views','IS_NOT_EMPTY','End\x20date','objectId','result','editCell','isNotEmpty','viewIndexes','base.command.set-base-view-sort','UNIVER_BASE','_buildGallery','[BaseCommandService]:\x20cannot\x20edit\x20field.','http:','fromCollab','separatorStyle','_buildKanban'];_0x4376=function(){return _0x29bbb7;};return _0x4376();}function Vt(_0x58653e,_0x307160){const _0x38bc50=_0x6c183;if(!_0x307160['length']||_0x307160['some'](_0x38733a=>_0x38733a[_0x38bc50(0x28a)]!=='cell'))return!0x1;let _0x440372=new Map();for(let _0xa76db3 of _0x307160){if(!_0xa76db3[_0x38bc50(0x210)]||_0xa76db3[_0x38bc50(0x4b3)]==null||_0xa76db3[_0x38bc50(0x229)]==null)continue;let _0xa5683c=_0x440372[_0x38bc50(0x43e)](_0xa76db3[_0x38bc50(0x210)])??[];_0xa5683c[_0x38bc50(0x174)]({'row':_0xa76db3[_0x38bc50(0x4b3)],'col':_0xa76db3['column']}),_0x440372[_0x38bc50(0x49e)](_0xa76db3[_0x38bc50(0x210)],_0xa5683c);}return _0x440372[_0x38bc50(0x2e0)]((_0x4fef4e,_0x1b11d0)=>{var _0x3f2413;let _0x102f54=(_0x3f2413=_0x58653e['tables'])==null?void 0x0:_0x3f2413[_0x1b11d0];_0x102f54&>(_0x102f54,_0x4fef4e);}),!0x0;}function Ht(_0xa42937,_0x142c71){const _0x7ce1ec=_0x6c183;let _0x28f4a0=new Set();return _0x142c71[_0x7ce1ec(0x17a)](_0x3c6dd4=>{const _0x612421=_0x7ce1ec;var _0x3ff8c5;if(!_0x3c6dd4['tableId']||!_0x3c6dd4[_0x612421(0x347)]||!_0x3c6dd4['fieldId'])return[];let _0x5f0d1c=_0x3c6dd4[_0x612421(0x210)]+'\x1f'+_0x3c6dd4[_0x612421(0x347)]+'\x1f'+_0x3c6dd4['fieldId'];if(_0x28f4a0['has'](_0x5f0d1c))return[];_0x28f4a0[_0x612421(0x2ee)](_0x5f0d1c);let _0x19f903=(_0x3ff8c5=_0xa42937[_0x612421(0x298)][_0x3c6dd4[_0x612421(0x210)]])==null||(_0x3ff8c5=_0x3ff8c5[_0x612421(0x258)][_0x3c6dd4[_0x612421(0x347)]])==null?void 0x0:_0x3ff8c5[_0x612421(0x227)];return _0x19f903?[{'tableId':_0x3c6dd4[_0x612421(0x210)],'recordId':_0x3c6dd4[_0x612421(0x347)],'fieldId':_0x3c6dd4[_0x612421(0x2b0)],'exists':Object[_0x612421(0x246)][_0x612421(0x48a)][_0x612421(0x43b)](_0x19f903,_0x3c6dd4[_0x612421(0x2b0)]),'value':_0x19f903[_0x3c6dd4[_0x612421(0x2b0)]]}]:[];});}function Ut(_0x14e9df,_0x323475){const _0x2aa34d=_0x6c183;_0x323475[_0x2aa34d(0x2e0)](_0x39042c=>{const _0x2b2e4f=_0x2aa34d;var _0x507081;let _0x2f9786=(_0x507081=_0x14e9df[_0x2b2e4f(0x298)][_0x39042c[_0x2b2e4f(0x210)]])==null||(_0x507081=_0x507081[_0x2b2e4f(0x258)][_0x39042c[_0x2b2e4f(0x347)]])==null?void 0x0:_0x507081[_0x2b2e4f(0x227)];_0x2f9786&&(_0x39042c[_0x2b2e4f(0x443)]?_0x2f9786[_0x39042c['fieldId']]=_0x39042c[_0x2b2e4f(0x350)]:delete _0x2f9786[_0x39042c[_0x2b2e4f(0x2b0)]]);});}function Wt(_0xd73b86){const _0x5df920=_0x6c183;if(!Array['isArray'](_0xd73b86)||_0xd73b86[_0x5df920(0x13c)]<0x2)return[{'tableId':'','reason':_0x5df920(0x263)}];let _0x15edbf=_0xd73b86,_0x37c3ef=_0x15edbf['indexOf']('tables');return _0x37c3ef===-0x1||typeof _0x15edbf[_0x37c3ef+0x1]!='string'?_0x15edbf[0x0]===_0x5df920(0x338)?[]:[{'tableId':'','reason':_0x5df920(0x263)}]:Gt(_0x15edbf,_0x37c3ef,String(_0x15edbf[_0x37c3ef+0x1]));}function Gt(_0x2c1db4,_0x1e2865,_0x26c7bb){const _0x3903e8=_0x6c183;let _0x241796=_0x2c1db4[_0x1e2865+0x2];return _0x241796===_0x3903e8(0x258)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?Kt(_0x2c1db4,_0x1e2865,_0x26c7bb,String(_0x2c1db4[_0x1e2865+0x3])):_0x241796===_0x3903e8(0x389)&&_0x2c1db4[_0x1e2865+0x3]!=null&&_0x2c1db4[_0x1e2865+0x4]!=null?[{'tableId':_0x26c7bb,'reason':'cell','row':Number(_0x2c1db4[_0x1e2865+0x3]),'column':Number(_0x2c1db4[_0x1e2865+0x4])}]:_0x241796===_0x3903e8(0x398)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x2d5),'fieldId':String(_0x2c1db4[_0x1e2865+0x3])}]:_0x241796==='fieldOrder'?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x2d5)}]:_0x241796===_0x3903e8(0x1e7)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x493)}]:_0x241796===_0x3903e8(0x362)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x37d),'viewId':String(_0x2c1db4[_0x1e2865+0x3])}]:_0x241796===_0x3903e8(0x1cd)?[{'tableId':_0x26c7bb,'reason':'view'}]:_0x241796===_0x3903e8(0x421)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x1de)}]:[{'tableId':_0x26c7bb,'reason':_0x241796===void 0x0?_0x3903e8(0x4c7):'unknown'}];}function Kt(_0x25d2da,_0x1a07db,_0xabd3a7,_0x358041){const _0x4374ad=_0x6c183;return _0x25d2da[_0x1a07db+0x4]==='values'&&typeof _0x25d2da[_0x1a07db+0x5]==_0x4374ad(0x425)?[{'tableId':_0xabd3a7,'reason':'cell','recordId':_0x358041,'fieldId':String(_0x25d2da[_0x1a07db+0x5])}]:_0x25d2da[_0x1a07db+0x4]===_0x4374ad(0x45d)||_0x25d2da[_0x1a07db+0x4]===_0x4374ad(0x1e6)?[]:[{'tableId':_0xabd3a7,'reason':_0x4374ad(0x493),'recordId':_0x358041}];}function qt(_0x5455e7){const _0x145e2d=_0x6c183;if(!Array[_0x145e2d(0x431)](_0x5455e7))return[];let _0x5aa2c5=_0x5455e7[_0x145e2d(0x2be)](Array[_0x145e2d(0x431)]);if(_0x5aa2c5[_0x145e2d(0x13c)]>0x1&&_0x5aa2c5[_0x145e2d(0x13c)]===_0x5455e7['length'])return _0x5aa2c5;let _0x4557c1=_0x5455e7[_0x145e2d(0x442)](Array['isArray']);if(_0x4557c1>0x0&&_0x5455e7['slice'](_0x4557c1)[_0x145e2d(0x387)](Array[_0x145e2d(0x431)])){let _0xe901f5=_0x5455e7[_0x145e2d(0x12c)](0x0,_0x4557c1);return _0x5455e7['slice'](_0x4557c1)[_0x145e2d(0x141)](_0x5a5336=>[..._0xe901f5,..._0x5a5336]);}let _0x5e8f5f=_0x5455e7[_0x145e2d(0x44e)](_0x145e2d(0x298));if(_0x5e8f5f===-0x1||typeof _0x5455e7[_0x5e8f5f+0x1]!=_0x145e2d(0x425))return[];let _0x3e02a8=String(_0x5455e7[_0x5e8f5f+0x1]),_0x11072d=_0x5455e7[_0x145e2d(0x12c)](_0x5e8f5f+0x2)[_0x145e2d(0x2be)](Array[_0x145e2d(0x431)]);return _0x11072d[_0x145e2d(0x13c)]<=0x1?[]:_0x11072d[_0x145e2d(0x141)](_0x5800f1=>[_0x145e2d(0x298),_0x3e02a8,..._0x5800f1]);}function Jt(_0x3995f9){let _0x5185d8=new Set();return _0x3995f9['filter'](_0x2f41e1=>{const _0x122027=_0x2b5a;let _0x4c6010=JSON[_0x122027(0x25f)](_0x2f41e1);return!_0x5185d8[_0x122027(0x34b)](_0x4c6010)&&(_0x5185d8[_0x122027(0x2ee)](_0x4c6010),!0x0);});}function Yt(_0x558259){const _0x1569c4=_0x6c183;return _0x4e3c3d[_0x1569c4(0x29d)](_0x558259);}function Xt(_0x2fc663,_0x2c69c2){const _0x5b4b87=_0x6c183;let _0x22af51=Zt(_0x2c69c2);if(!_0x22af51[_0x5b4b87(0x13c)])return Yt(_0x2fc663);let _0x3d458e=an(_0x2fc663),_0x5a374b=new Set();for(let _0x3ea0ab of _0x22af51)en(_0x3d458e,_0x3ea0ab,_0x5a374b);return _0x3d458e;}function Zt(_0x20949d){let _0x5e2603=[];return Qt(_0x20949d,[],_0x5e2603),_0x5e2603;}function Qt(_0x226ea8,_0x4ea9fc,_0x44fe93){const _0x48b3fc=_0x6c183;if(!Array[_0x48b3fc(0x431)](_0x226ea8))return;let _0x45d5a9=[];for(let _0x35a7b5 of _0x226ea8){if(Array[_0x48b3fc(0x431)](_0x35a7b5)){Qt(_0x35a7b5,[..._0x4ea9fc,..._0x45d5a9],_0x44fe93);continue;}if($t(_0x35a7b5)){_0x44fe93[_0x48b3fc(0x174)]([..._0x4ea9fc,..._0x45d5a9]);continue;}(typeof _0x35a7b5==_0x48b3fc(0x425)||typeof _0x35a7b5=='number')&&_0x45d5a9[_0x48b3fc(0x174)](_0x35a7b5);}}function $t(_0x433a06){const _0x2e23f6=_0x6c183;if(!_0x433a06||typeof _0x433a06!='object'||Array['isArray'](_0x433a06))return!0x1;let _0x1dae1d=_0x433a06;return'i'in _0x1dae1d||'r'in _0x1dae1d||'p'in _0x1dae1d||'d'in _0x1dae1d||'es'in _0x1dae1d||_0x2e23f6(0x41c)in _0x1dae1d||'et'in _0x1dae1d;}function en(_0x23bbdb,_0x2e1358,_0x33c32a){const _0x31bf25=_0x6c183;let _0x4e83b3=_0x23bbdb,_0x2d06cc=[];for(let _0x414574=0x0;_0x414574<_0x2e1358['length']-0x1;_0x414574++){let _0x24294f=_0x2e1358[_0x414574];_0x2d06cc[_0x31bf25(0x174)](_0x24294f);let _0x3836c4=tn(_0x4e83b3,_0x24294f);if(!rn(_0x3836c4))return;let _0x5aa60d=JSON[_0x31bf25(0x25f)](_0x2d06cc);_0x33c32a[_0x31bf25(0x34b)](_0x5aa60d)||(nn(_0x4e83b3,_0x24294f,an(_0x3836c4)),_0x33c32a['add'](_0x5aa60d));let _0x59fa34=tn(_0x4e83b3,_0x24294f);if(!rn(_0x59fa34))return;_0x4e83b3=_0x59fa34;}}function tn(_0x2c7042,_0x33e1e6){const _0x2b3d57=_0x6c183;return Array[_0x2b3d57(0x431)](_0x2c7042)?typeof _0x33e1e6==_0x2b3d57(0x24b)?_0x2c7042[_0x33e1e6]:void 0x0:Reflect[_0x2b3d57(0x43e)](_0x2c7042,_0x33e1e6);}function nn(_0x1a205e,_0x39a048,_0x25b1ba){const _0x2cd5dc=_0x6c183;if(Array[_0x2cd5dc(0x431)](_0x1a205e)){typeof _0x39a048==_0x2cd5dc(0x24b)&&(_0x1a205e[_0x39a048]=_0x25b1ba);return;}Reflect[_0x2cd5dc(0x49e)](_0x1a205e,_0x39a048,_0x25b1ba);}function rn(_0x40bc00){const _0x86d418=_0x6c183;return!!_0x40bc00&&typeof _0x40bc00==_0x86d418(0x3d7);}function an(_0x545c03){const _0x3dabaf=_0x6c183;return Array[_0x3dabaf(0x431)](_0x545c03)?_0x545c03[_0x3dabaf(0x12c)]():{..._0x545c03};}const on=_0x6c183(0x149),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':'YYYY/MM/DD','yyyy-mm-dd':_0x6c183(0x127),'mm-dd':_0x6c183(0x26c),'mm/dd/yyyy':_0x6c183(0x1c5),'dd/mm/yyyy':_0x6c183(0x19f),'mmm\x20d,\x20yyyy':_0x6c183(0x404)};function B(_0x55060c,_0x4694eb=_0x5c27c9[_0x6c183(0x248)]){let _0x3c9c41=_0x509f61(_0x55060c)['valueOf']();return _0x36b37f(new Date(_0x3c9c41),_0x4694eb);}function ln(_0x1f205b,_0x349950=_0x5c27c9[_0x6c183(0x248)]){const _0x171766=_0x6c183;return _0x33b7e5(_0x1f205b,_0x349950)[_0x171766(0x3d3)]();}function un(_0x1b04a3,_0x799a6=_0x5c27c9[_0x6c183(0x248)]){const _0x121ce1=_0x6c183;if(_0x1b04a3==null||_0x1b04a3==='')return null;if(_0x1b04a3 instanceof Date)return B(_0x1b04a3,_0x799a6);if(typeof _0x1b04a3==_0x121ce1(0x24b))return Number[_0x121ce1(0x143)](_0x1b04a3)?_0x1b04a3>0xf4240?B(_0x1b04a3,_0x799a6):_0x1b04a3:null;let _0x51a501=Date['parse'](String(_0x1b04a3));return Number[_0x121ce1(0x47b)](_0x51a501)?null:B(_0x51a501,_0x799a6);}function dn(_0x3fe07a,_0x189912=_0x5c27c9[_0x6c183(0x248)]){let _0x344572=un(_0x3fe07a,_0x189912);return _0x344572==null?null:ln(_0x344572,_0x189912);}function fn(_0x43ca07={}){const _0x3b79ba=_0x6c183;let _0x210c7b=String(_0x43ca07[_0x3b79ba(0x235)]??_0x43ca07[_0x3b79ba(0x3cd)]??_0x43ca07[_0x3b79ba(0x262)]??on)['trim']()||on,_0x11d590=sn[_0x3b79ba(0x215)](_0x210c7b);return{'pattern':_0x210c7b[_0x3b79ba(0x14e)](sn,'')||on,'includeTime':typeof _0x43ca07[_0x3b79ba(0x22e)]==_0x3b79ba(0x1cb)?_0x43ca07[_0x3b79ba(0x22e)]:_0x11d590,'hourCycle':_0x43ca07['hourCycle']===_0x3b79ba(0x384)?_0x3b79ba(0x384):'h24'};}function pn(_0x8d5cc={}){let {format:_0x5bfbce,dateFormat:_0x6b1f7f,..._0x206887}=_0x8d5cc;return{..._0x206887,...fn(_0x8d5cc)};}function mn(_0x194f5e,_0xe90be={}){const _0x5e9798=_0x6c183;let _0x2352b0=dn(_0x194f5e);if(_0x2352b0==null||!Number['isFinite'](_0x2352b0))return'';let _0x302521=fn(_0xe90be);return _0x509f61(_0x2352b0)[_0x5e9798(0x3cd)](hn(_0x302521));}function hn(_0x1f34df){const _0x304e3c=_0x6c183;let {pattern:_0x1fb3cb,includeTime:_0x199180,hourCycle:_0x1dc501}=_0x1f34df,_0x3340a8=cn[_0x1fb3cb]??cn[on];return _0x199180?_0x3340a8+'\x20'+(_0x1dc501===_0x304e3c(0x384)?_0x304e3c(0x18b):_0x304e3c(0x30d)):_0x3340a8;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x3a044b[_0x6c183(0x22f)]]),V=0x5265c00;function vn(_0x3f8d03){const _0x1604b5=_0x6c183;switch(_0x3f8d03){case _0x3a044b[_0x1604b5(0x2f5)]:case _0x3a044b[_0x1604b5(0x14d)]:case _0x3a044b[_0x1604b5(0x140)]:case _0x3a044b[_0x1604b5(0x2c3)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x1e5)],_0x50d725['LESS_THAN'],_0x50d725[_0x1604b5(0x37e)],_0x50d725['IS_NOT_EMPTY']];case _0x3a044b[_0x1604b5(0x346)]:case _0x3a044b[_0x1604b5(0x332)]:case _0x3a044b[_0x1604b5(0x1fa)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x24e)],_0x50d725['AFTER'],_0x50d725[_0x1604b5(0x37e)],_0x50d725['IS_NOT_EMPTY']];case _0x3a044b[_0x1604b5(0x233)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)]];default:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x447)],_0x50d725[_0x1604b5(0x253)],_0x50d725[_0x1604b5(0x37e)],_0x50d725[_0x1604b5(0x363)]];}}function yn(_0x980013){const _0x542465=_0x6c183;return _0x980013===_0x3a044b['Date']||_0x980013===_0x3a044b['CreatedAt']||_0x980013===_0x3a044b[_0x542465(0x1fa)];}function bn(_0x382c01,_0x489a6a){const _0xb6f6d7=_0x6c183;return _0x382c01==null&&_0x489a6a==null?0x0:_0x382c01==null?-0x1:_0x489a6a==null?0x1:typeof _0x382c01==_0xb6f6d7(0x24b)&&typeof _0x489a6a==_0xb6f6d7(0x24b)?_0x382c01-_0x489a6a:String(_0x382c01)[_0xb6f6d7(0x37a)](String(_0x489a6a));}function xn(_0x544b5f,_0x1237c6,_0x16fc28,_0x1a6daf,_0x223a93={}){const _0x2df731=_0x6c183;if(_0x1237c6===_0x2df731(0x304))return Sn(_0x544b5f);if(_0x1237c6===_0x2df731(0x368))return!Sn(_0x544b5f);switch(_0x1a6daf[_0x2df731(0x20b)]){case _0x3a044b['Number']:case _0x3a044b['Currency']:case _0x3a044b['Progress']:case _0x3a044b['Rating']:return Cn(_0x544b5f,_0x1237c6,_0x16fc28);case _0x3a044b['Date']:case _0x3a044b[_0x2df731(0x332)]:case _0x3a044b['UpdatedAt']:return Tn(_0x544b5f,_0x1237c6,_0x16fc28,_0x223a93);case _0x3a044b['Checkbox']:return jn(_0x544b5f,_0x1237c6,_0x16fc28);case _0x3a044b[_0x2df731(0x20e)]:case _0x3a044b['MultiSelect']:case _0x3a044b[_0x2df731(0x359)]:case _0x3a044b['Group']:return Nn(_0x544b5f,_0x1237c6,_0x16fc28,_0x1a6daf);default:return Pn(_0x544b5f,_0x1237c6,_0x16fc28);}}function Sn(_0x52f419){const _0x5cde00=_0x6c183;return _0x52f419==null?!0x0:Array['isArray'](_0x52f419)?_0x52f419[_0x5cde00(0x13c)]===0x0:typeof _0x52f419==_0x5cde00(0x425)&&_0x52f419[_0x5cde00(0x226)]()==='';}function Cn(_0x183f88,_0xe7f246,_0x4e5ebf){const _0x47f51e=_0x6c183;let _0xde3745=wn(_0x183f88),_0x439b67=wn(_0x4e5ebf);if(_0xde3745==null||_0x439b67==null)return!0x1;switch(_0xe7f246){case'is':return _0xde3745===_0x439b67;case _0x47f51e(0x356):return _0xde3745!==_0x439b67;case _0x47f51e(0x336):return _0xde3745>_0x439b67;case _0x47f51e(0x307):return _0xde3745>=_0x439b67;case'lessThan':return _0xde3745<_0x439b67;case _0x47f51e(0x21b):return _0xde3745<=_0x439b67;default:return!0x1;}}function wn(_0x475c3a){const _0x11725d=_0x6c183;if(_0x475c3a==null||_0x475c3a==='')return null;let _0x1c8f1c=Number(_0x475c3a);return Number[_0x11725d(0x143)](_0x1c8f1c)?_0x1c8f1c:null;}function Tn(_0x27dca7,_0x29add6,_0x4c1dfc,_0x35199b){const _0x33728c=_0x6c183;let _0x52a9a9=Dn(_0x27dca7);if(_0x52a9a9==null)return!0x1;let _0x2068df=En(_0x35199b[_0x33728c(0x3ea)]??_0x33728c(0x433),_0x4c1dfc,_0x35199b['now']);if(!_0x2068df)return!0x1;switch(_0x29add6){case'is':return _0x52a9a9>=_0x2068df['start']&&_0x52a9a9<=_0x2068df[_0x33728c(0x439)];case _0x33728c(0x356):return _0x52a9a9<_0x2068df['start']||_0x52a9a9>_0x2068df[_0x33728c(0x439)];case _0x33728c(0x244):return _0x52a9a9<_0x2068df['start'];case _0x33728c(0x427):return _0x52a9a9>_0x2068df[_0x33728c(0x439)];default:return!0x1;}}function En(_0x1875aa,_0x23fb02,_0x443000=Date[_0x6c183(0x2a4)]()){const _0x420c0f=_0x6c183;let _0x43edc7=On(_0x443000);switch(_0x1875aa){case'exact':{let _0x32d91c=Dn(_0x23fb02);return _0x32d91c==null?null:{'start':_0x32d91c,'end':_0x32d91c+V-0x1};}case _0x420c0f(0x17f):return{'start':_0x43edc7,'end':_0x43edc7+V-0x1};case'tomorrow':return{'start':_0x43edc7+V,'end':_0x43edc7+V*0x2-0x1};case _0x420c0f(0x330):return{'start':_0x43edc7-V,'end':_0x43edc7-0x1};case'thisWeek':return kn(_0x43edc7,0x0);case'lastWeek':return kn(_0x43edc7,-0x1);case _0x420c0f(0x170):return An(_0x43edc7,0x0);case'lastMonth':return An(_0x43edc7,-0x1);case _0x420c0f(0x1f7):return{'start':_0x43edc7-V*0x6,'end':_0x43edc7+V-0x1};case _0x420c0f(0x385):return{'start':_0x43edc7,'end':_0x43edc7+V*0x7-0x1};case _0x420c0f(0x148):return{'start':_0x43edc7-V*0x1d,'end':_0x43edc7+V-0x1};case _0x420c0f(0x3de):return{'start':_0x43edc7,'end':_0x43edc7+V*0x1e-0x1};}}function Dn(_0x5459be){let _0x2f8565=un(_0x5459be);return _0x2f8565==null?null:On(ln(_0x2f8565));}function On(_0x4798d8){const _0x17e8c1=_0x6c183;let _0xe91f47=new Date(_0x4798d8);return _0xe91f47['setHours'](0x0,0x0,0x0,0x0),_0xe91f47[_0x17e8c1(0x3d3)]();}function kn(_0x5d352f,_0x1b7b40){const _0x1de306=_0x6c183;let _0x941c11=_0x5d352f-(new Date(_0x5d352f)[_0x1de306(0x34a)]()+0x6)%0x7*V+_0x1b7b40*V*0x7;return{'start':_0x941c11,'end':_0x941c11+V*0x7-0x1};}function An(_0x59c990,_0x3bb7ad){const _0x3a21ed=_0x6c183;let _0x16db1b=new Date(_0x59c990),_0x32536f=new Date(_0x16db1b[_0x3a21ed(0x422)](),_0x16db1b[_0x3a21ed(0x280)]()+_0x3bb7ad,0x1),_0x1bbc22=new Date(_0x16db1b[_0x3a21ed(0x422)](),_0x16db1b[_0x3a21ed(0x280)]()+_0x3bb7ad+0x1,0x1);return{'start':_0x32536f[_0x3a21ed(0x3d3)](),'end':_0x1bbc22[_0x3a21ed(0x3d3)]()-0x1};}function jn(_0x1031c6,_0x331eba,_0x4576a4){const _0x2a1e00=_0x6c183;let _0x7b3651=Mn(_0x1031c6),_0x52b1b9=Mn(_0x4576a4);switch(_0x331eba){case'is':return _0x7b3651===_0x52b1b9;case _0x2a1e00(0x356):return _0x7b3651!==_0x52b1b9;default:return!0x1;}}function Mn(_0x1eea4c){const _0x5ebf20=_0x6c183;return _0x1eea4c===!0x0||_0x1eea4c===_0x5ebf20(0x269)||_0x1eea4c===0x1||_0x1eea4c==='1';}function Nn(_0xf56af1,_0x38493d,_0x37ebf7,_0x2ca56c){const _0x45ddbf=_0x6c183;let _0x351701=In(_0xf56af1,_0x2ca56c),_0x5cec58=In(_0x37ebf7,_0x2ca56c),_0x5a2ba5=_0x5cec58[_0x45ddbf(0x13c)]>0x0&&_0x5cec58[_0x45ddbf(0x185)](_0x391341=>_0x351701[_0x45ddbf(0x16a)](_0x391341));switch(_0x38493d){case'is':case'contains':return _0x5a2ba5;case _0x45ddbf(0x356):case _0x45ddbf(0x114):return!_0x5a2ba5;default:return!0x1;}}function Pn(_0x503081,_0x4d0da2,_0x53b3e2){const _0x4bac62=_0x6c183;let _0xd0521b=Fn(_0x503081),_0x3bb569=Fn(_0x53b3e2);switch(_0x4d0da2){case'is':return _0xd0521b===_0x3bb569;case _0x4bac62(0x356):return _0xd0521b!==_0x3bb569;case _0x4bac62(0x4ca):return _0x3bb569?_0xd0521b[_0x4bac62(0x16a)](_0x3bb569):!0x1;case _0x4bac62(0x114):return!_0x3bb569||!_0xd0521b[_0x4bac62(0x16a)](_0x3bb569);default:return!0x1;}}function Fn(_0x2fe538){const _0x1e343c=_0x6c183;if(Array[_0x1e343c(0x431)](_0x2fe538))return _0x2fe538[_0x1e343c(0x141)](_0x36396b=>Fn(_0x36396b))[_0x1e343c(0x11a)]('\x0a');if(_0x2fe538&&typeof _0x2fe538=='object'){let _0x121eee=_0x2fe538;return String(_0x121eee['name']??_0x121eee['label']??_0x121eee['text']??_0x121eee[_0x1e343c(0x350)]??_0x121eee['id']??'')[_0x1e343c(0x226)]()[_0x1e343c(0x432)]();}return String(_0x2fe538??'')['trim']()[_0x1e343c(0x432)]();}function In(_0x5a6ee5,_0x135be5){const _0x594016=_0x6c183;let _0x309623=Ln(_0x5a6ee5),_0x561e31=Rn(_0x135be5[_0x594016(0x2ba)]??{});return _0x309623[_0x594016(0x17a)](_0x103f46=>_0x561e31[_0x594016(0x43e)](_0x103f46)??[_0x103f46])['filter']((_0x2f0efa,_0x5d91aa,_0x1f4b77)=>_0x2f0efa!==''&&_0x1f4b77[_0x594016(0x44e)](_0x2f0efa)===_0x5d91aa);}function Ln(_0x17272c){const _0xbef247=_0x6c183;if(_0x17272c==null||_0x17272c==='')return[];if(Array[_0xbef247(0x431)](_0x17272c))return _0x17272c[_0xbef247(0x17a)](_0x50dd22=>Ln(_0x50dd22));if(_0x17272c&&typeof _0x17272c==_0xbef247(0x3d7)){let _0xf43b4e=_0x17272c;return['id','name',_0xbef247(0x39d),_0xbef247(0x350),_0xbef247(0x3ae)]['flatMap'](_0xc48f82=>Ln(_0xf43b4e[_0xc48f82]))[_0xbef247(0x2be)]((_0x5c6168,_0xdc3df8,_0xae6d0)=>_0xae6d0['indexOf'](_0x5c6168)===_0xdc3df8);}return[Fn(_0x17272c)];}function Rn(_0x1b7c59){const _0x164e51=_0x6c183;let _0x39fa0b=new Map();return(Array[_0x164e51(0x431)](_0x1b7c59[_0x164e51(0x2b3)])?_0x1b7c59[_0x164e51(0x2b3)]:[])[_0x164e51(0x2e0)](_0x26718a=>{const _0x27b740=_0x164e51;if(!_0x26718a||typeof _0x26718a!=_0x27b740(0x3d7))return;let _0x4eb76f=Ln(_0x26718a),_0xe4e984=_0x4eb76f[_0x27b740(0x2be)]((_0x10d358,_0x21e60f)=>_0x10d358!==''&&_0x4eb76f[_0x27b740(0x44e)](_0x10d358)===_0x21e60f);_0xe4e984['forEach'](_0x3f8c05=>_0x39fa0b[_0x27b740(0x49e)](_0x3f8c05,_0xe4e984));}),_0x39fa0b;}function H(_0x15ac03,_0x2b3f96={},_0x28d251=_0x393c8f=>_0x393c8f,_0x5741c6={}){const _0x361814=_0x6c183;let _0x3866fa=!_n[_0x361814(0x34b)](_0x15ac03),_0x3068e0=_0x28d251??(_0x28b360=>_0x28b360);return{'type':_0x15ac03,'i18nKey':_0x361814(0x318)+_0x15ac03,'enabled':_0x3866fa,'visibleInCreateMenu':_0x3866fa,'createDefaultConfig':_0x5741c6[_0x361814(0x399)]??(()=>({})),'createDefaultValue':_0x5741c6['createDefaultValue']??(_0x3308e6=>_0x3308e6['defaultValue']??null),'normalize':(_0x341c82,_0x549fdb)=>_0x3068e0(_0x341c82,_0x549fdb),'validate':(_0x32ae9a,_0x5f3c5d)=>{const _0x296537=_0x361814;var _0x5358ab;return _0x3866fa?((_0x5358ab=_0x5741c6[_0x296537(0x1a8)])==null?void 0x0:_0x5358ab[_0x296537(0x43b)](_0x5741c6,_0x32ae9a,_0x5f3c5d))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x3e2567,_0x37f888)=>bn(_0x3e2567,_0x37f888),'filter':(_0x5ce96f,_0x5abd1c,_0x39d388,_0x3e0249)=>xn(_0x5ce96f,_0x5abd1c,_0x39d388,_0x3e0249),'toPlainText':_0x5741c6[_0x361814(0x144)]??(_0x4e6bc2=>_0x4e6bc2==null?'':String(_0x4e6bc2)),'fromPlainText':_0x5741c6[_0x361814(0x462)]??(_0x2b0e67=>_0x3068e0(_0x2b0e67,{'id':'','name':'','type':_0x15ac03,'config':{}})),'getCapabilities':()=>({...gn,..._0x2b3f96,'editable':_0x3866fa&&(_0x2b3f96[_0x361814(0x461)]??gn[_0x361814(0x461)])})};}function zn(){const _0x1a28dd=_0x6c183;return[H(_0x3a044b[_0x1a28dd(0x315)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1a28dd(0x21e)}),'createDefaultValue':_0x669bb8=>_0x669bb8['defaultValue']??''}),H(_0x3a044b[_0x1a28dd(0x20e)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x224ca0=>_0x224ca0==null||_0x224ca0===''?null:String(_0x224ca0),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1a28dd(0x491)}})}),H(_0x3a044b['MultiSelect'],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x272643=>Array[_0x1a28dd(0x431)](_0x272643)?_0x272643[_0x1a28dd(0x141)](String):_0x272643==null?[]:[String(_0x272643)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1a28dd(0x491)}}),'createDefaultValue':_0x43197e=>_0x43197e[_0x1a28dd(0x15a)]??[]}),H(_0x3a044b[_0x1a28dd(0x359)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1a28dd(0x2d6)}),'validate':Gn}),H(_0x3a044b[_0x1a28dd(0x1ad)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':'group'}),'createDefaultValue':_0x483d0f=>_0x483d0f['defaultValue']??[],'validate':Kn}),H(_0x3a044b[_0x1a28dd(0x346)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x144fc8=>un(_0x144fc8),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x3a044b[_0x1a28dd(0x1ab)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x528ff5=>_0x528ff5==null?[]:Array[_0x1a28dd(0x431)](_0x528ff5)?_0x528ff5:[_0x528ff5],{'createDefaultValue':_0x1ff62b=>_0x1ff62b[_0x1a28dd(0x15a)]??[]}),H(_0x3a044b[_0x1a28dd(0x2f5)],{},_0x52089d=>_0x52089d==null||_0x52089d===''?null:Number(_0x52089d),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x3a044b['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x3dedf8=>_0x3dedf8===!0x0||_0x3dedf8===_0x1a28dd(0x269)||_0x3dedf8===0x1||_0x3dedf8==='1',{'createDefaultConfig':()=>({'icon':'check','color':_0x1a28dd(0x2f1)}),'createDefaultValue':_0x371116=>_0x371116[_0x1a28dd(0x15a)]??!0x1,'validate':_0x4ea8a8=>typeof _0x4ea8a8==_0x1a28dd(0x1cb)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x272)}}),H(_0x3a044b['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.linkPlaceholder'}),'toPlainText':_0x30472d=>Zn(_0x30472d),'fromPlainText':_0x369460=>Xn(_0x369460)}),H(_0x3a044b['Formula'],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':'general','pattern':_0x1a28dd(0x453)}}),'createDefaultValue':()=>null}),H(_0x3a044b['Numbering'],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':'autoIncrement'}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x464)],{'usableAsTitle':!0x0},_0x2b0143=>_0x2b0143==null?null:String(_0x2b0143)[_0x1a28dd(0x226)](),{'validate':_0x45f5a4=>_0x45f5a4==null||_0x45f5a4===''||/^\+?[0-9 ()-]{6,20}$/[_0x1a28dd(0x215)](String(_0x45f5a4))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x207)}}),H(_0x3a044b[_0x1a28dd(0x26f)],{'usableAsTitle':!0x0},_0x3d7080=>_0x3d7080==null?null:String(_0x3d7080)[_0x1a28dd(0x226)](),{'validate':_0x309542=>_0x309542==null||_0x309542===''||$n(String(_0x309542))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x173)}}),H(_0x3a044b['Progress'],{'usableAsGanttProgress':!0x0},_0xc87f25=>_0xc87f25==null||_0xc87f25===''?null:Number(_0xc87f25),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1a28dd(0x401),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x3369d5,_0x1081a1)=>Yn(_0x3369d5,_0x1081a1,_0x1a28dd(0x169))}),H(_0x3a044b['Currency'],{},_0x3d451b=>_0x3d451b==null||_0x3d451b===''?null:Number(_0x3d451b),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x3a044b[_0x1a28dd(0x2c3)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x2fa611=>_0x2fa611==null||_0x2fa611===''?null:Number(_0x2fa611),{'createDefaultConfig':()=>({'icon':_0x1a28dd(0x303),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x564a15,_0x3d4fd8)=>Yn(_0x564a15,_0x3d4fd8,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x3a044b['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x2ee3c3,_0x855f0c)=>ze(_0x2ee3c3,_0x855f0c[_0x1a28dd(0x2ba)][_0x1a28dd(0x376)]===!0x0)}),H(_0x3a044b['RecordId'],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x3a044b['CreatedBy'],{'editable':!0x1,'groupable':!0x0},_0x382ed7=>_0x382ed7==null?null:String(_0x382ed7),{'createDefaultConfig':()=>({'provider':_0x1a28dd(0x268)}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x241)],{'editable':!0x1,'groupable':!0x0},_0x5c5e05=>_0x5c5e05==null?null:String(_0x5c5e05),{'createDefaultConfig':()=>({'provider':'user'}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x332)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x43eaa2=>un(_0x43eaa2),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x3a044b[_0x1a28dd(0x1fa)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x1e683b=>un(_0x1e683b),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x66c79d=_0x6c183;return{'pattern':'#,##0.00','decimalPlaces':0x2,'separatorStyle':_0x66c79d(0x231),'useThousands':!0x0,'abbreviation':_0x66c79d(0x42f),'allowNegative':!0x0};}function Vn(){const _0x530e83=_0x6c183;return{'locale':_0x530e83(0x2da),'pattern':_0x530e83(0x149),'includeTime':!0x1,'hourCycle':_0x530e83(0x147),'defaultMode':_0x530e83(0x42f)};}function Hn(_0x469201){const _0x30e6a2=_0x6c183;return _0x469201==null||_0x469201===''?[]:Array[_0x30e6a2(0x431)](_0x469201)?_0x469201['map'](String):[String(_0x469201)];}function Un(_0x2b2586){const _0x12b38f=_0x6c183;return typeof _0x2b2586==_0x12b38f(0x425)?_0x2b2586:'';}function Wn(_0xa45271,_0x1cf6d6){const _0x523e31=_0x6c183;return _0xa45271==null||_0xa45271===''?_0x1cf6d6[_0x523e31(0x2ba)]['allowMultiple']===!0x0?[]:null:_0x1cf6d6[_0x523e31(0x2ba)][_0x523e31(0x198)]===!0x0?Array[_0x523e31(0x431)](_0xa45271)?_0xa45271[_0x523e31(0x141)](String):[String(_0xa45271)]:Array['isArray'](_0xa45271)?String(_0xa45271[0x0]??'')||null:String(_0xa45271);}function Gn(_0x135deb,_0x31678b){const _0xf83622=_0x6c183;return _0x31678b['config'][_0xf83622(0x198)]===!0x0?Kn(_0x135deb):_0x135deb==null||_0x135deb===''||typeof _0x135deb==_0xf83622(0x425)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20person\x20value.'};}function Kn(_0x1a4c98){const _0x4f3cc1=_0x6c183;return _0x1a4c98==null||Array[_0x4f3cc1(0x431)](_0x1a4c98)&&_0x1a4c98['every'](_0x3ae5da=>typeof _0x3ae5da==_0x4f3cc1(0x425))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4f3cc1(0x300)};}function qn(_0x5277de){const _0x140b9f=_0x6c183;return _0x5277de==null||typeof _0x5277de==_0x140b9f(0x24b)&&Number[_0x140b9f(0x143)](_0x5277de)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x140b9f(0x2c8)};}function Jn(_0x20f84b,_0x451649){const _0x800bf2=_0x6c183;return _0x20f84b==null||_0x20f84b===''?{'valid':!0x0}:typeof _0x20f84b!=_0x800bf2(0x24b)||!Number[_0x800bf2(0x143)](_0x20f84b)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x451649[_0x800bf2(0x2ba)][_0x800bf2(0x2e9)]===!0x1&&_0x20f84b<0x0?{'valid':!0x1,'reason':_0x800bf2(0x479)}:{'valid':!0x0};}function Yn(_0x5a02a8,_0x11c176,_0x394bdd){const _0xa14b8c=_0x6c183;let _0x4f80d4=Jn(_0x5a02a8,_0x11c176);if(!_0x4f80d4[_0xa14b8c(0x26e)]||_0x5a02a8==null||_0x5a02a8==='')return _0x4f80d4;let _0x149fac=Number(_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x27a)]??_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x41a)]??0x0),_0x4403aa=Number(_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x482)]??_0x11c176['config'][_0xa14b8c(0x439)]??0x64),_0x571ee7=Number(_0x5a02a8);return _0x571ee7>=_0x149fac&&_0x571ee7<=_0x4403aa?{'valid':!0x0}:{'valid':!0x1,'reason':_0x394bdd};}function Xn(_0x1a9f62){const _0x28cee4=_0x6c183;if(_0x1a9f62==null||_0x1a9f62==='')return null;if(typeof _0x1a9f62=='object'&&!Array[_0x28cee4(0x431)](_0x1a9f62)){let _0xb91756=_0x1a9f62,_0x2e6822=typeof _0xb91756['text']==_0x28cee4(0x425)?_0xb91756['text'][_0x28cee4(0x226)]():'',_0x500f9c=typeof _0xb91756[_0x28cee4(0x32d)]==_0x28cee4(0x425)?_0xb91756['url']['trim']():'',_0x2de4c0=Qn(_0x500f9c||_0x2e6822);return _0x2de4c0?{'text':_0x2e6822||_0x500f9c||_0x2de4c0,'url':_0x2de4c0}:null;}let _0x5b0947=String(_0x1a9f62)[_0x28cee4(0x226)](),_0x3a79e3=Qn(_0x5b0947);return _0x3a79e3?{'text':_0x5b0947,'url':_0x3a79e3}:null;}function Zn(_0x37b513){const _0xf0d793=_0x6c183;if(_0x37b513==null)return'';if(typeof _0x37b513==_0xf0d793(0x3d7)&&!Array[_0xf0d793(0x431)](_0x37b513)){let _0x559690=_0x37b513;return String(_0x559690[_0xf0d793(0x3ae)]||_0x559690[_0xf0d793(0x32d)]||'');}return String(_0x37b513);}function Qn(_0xa9f43a){const _0x19ae47=_0x6c183;let _0x4a3a10=_0xa9f43a[_0x19ae47(0x226)]();if(!_0x4a3a10)return'';let _0x356b5c=/^[a-z][a-z\d+.-]*:/i[_0x19ae47(0x215)](_0x4a3a10)?_0x4a3a10:_0x4a3a10[_0x19ae47(0x1fb)]('//')?_0x19ae47(0x22b)+_0x4a3a10:_0x19ae47(0x34e)+_0x4a3a10;try{let _0x21096f=new URL(_0x356b5c);return _0x21096f[_0x19ae47(0x116)]===_0x19ae47(0x36e)||_0x21096f[_0x19ae47(0x116)]===_0x19ae47(0x22b)?_0x21096f['href']:'';}catch{return'';}}function $n(_0x1b60f2){const _0x4f4f63=_0x6c183;let _0x232168=_0x1b60f2[_0x4f4f63(0x44e)]('@');if(_0x232168<=0x0||_0x232168!==_0x1b60f2['lastIndexOf']('@'))return!0x1;let _0xfb2e85=_0x1b60f2[_0x4f4f63(0x12c)](_0x232168+0x1);return _0xfb2e85[_0x4f4f63(0x16a)]('.')&&!_0x1b60f2[_0x4f4f63(0x16a)]('\x20')&&!_0xfb2e85[_0x4f4f63(0x1fb)]('.')&&!_0xfb2e85[_0x4f4f63(0x35a)]('.');}const U={'table':_0x1a3d1c=>['tables',_0x1a3d1c],'field':(_0x138e72,_0x5a7d88)=>[_0x6c183(0x298),_0x138e72,'fields',_0x5a7d88],'fieldOrder':(_0x2cfbbb,_0x50204f)=>[_0x6c183(0x298),_0x2cfbbb,_0x6c183(0x3b5),_0x50204f],'record':(_0x2ea1f7,_0x3d1ee0)=>[_0x6c183(0x298),_0x2ea1f7,'records',_0x3d1ee0],'cell':(_0xb3851f,_0x24abd6,_0x1fa297)=>[_0x6c183(0x298),_0xb3851f,'records',_0x24abd6,'values',_0x1fa297],'cellData':(_0x9a6fd1,_0x138583,_0xb439f3)=>[_0x6c183(0x298),_0x9a6fd1,_0x6c183(0x389),String(_0x138583),String(_0xb439f3)],'attachmentSet':(_0x48d798,_0x5f1121)=>['tables',_0x48d798,_0x6c183(0x421),_0x6c183(0x199),_0x5f1121],'attachment':(_0x3e4efb,_0x503473)=>['tables',_0x3e4efb,_0x6c183(0x421),'attachments',_0x503473],'view':(_0x29b23c,_0x42611a)=>[_0x6c183(0x298),_0x29b23c,'views',_0x42611a],'viewFieldHidden':(_0x146121,_0x14de02,_0x337aa9)=>[_0x6c183(0x298),_0x146121,_0x6c183(0x362),_0x14de02,_0x6c183(0x48f),_0x337aa9,_0x6c183(0x1b2)]};var W=class{[_0x6c183(0x3f7)](_0x566cc3,_0x47525b){const _0x57aed3=_0x6c183;let _0x59c16e=this['renameFormulaUnitReferences'](_0x566cc3,_0x566cc3['name'],_0x47525b);return R([this[_0x57aed3(0x4a8)](['name'],_0x566cc3[_0x57aed3(0x2a3)],_0x47525b),..._0x59c16e?[_0x59c16e]:[]]);}[_0x6c183(0x3e9)](_0x5c54cc,_0x1a1155,_0x1083cf){const _0x519f2b=_0x6c183;let _0x38c9c4=Object['values'](_0x5c54cc['tables'])[_0x519f2b(0x17a)](_0x5d4394=>Object['values'](_0x5d4394[_0x519f2b(0x398)])[_0x519f2b(0x17a)](_0x5dd73f=>{const _0x1bab52=_0x519f2b;var _0x22103e,_0x20ad6b;if(_0x5dd73f[_0x1bab52(0x20b)]!==_0x3a044b['Formula'])return[];let _0x3f1361=String(((_0x22103e=_0x5dd73f[_0x1bab52(0x2ba)])==null?void 0x0:_0x22103e['formula'])??''),_0x581c95=_0x2f992f(_0x3f1361,_0x1a1155,_0x1083cf);return _0x581c95===_0x3f1361?[]:[this[_0x1bab52(0x4a8)]([...U['field'](_0x5d4394['id'],_0x5dd73f['id']),_0x1bab52(0x2ba),_0x1bab52(0x3bc)],(_0x20ad6b=_0x5dd73f[_0x1bab52(0x2ba)])==null?void 0x0:_0x20ad6b[_0x1bab52(0x3bc)],_0x581c95)];}));return _0x38c9c4[_0x519f2b(0x13c)]>0x0?R(_0x38c9c4):void 0x0;}['createTable'](_0x2ab47a,_0x32f756,_0x49d9aa=_0x2ab47a[_0x6c183(0x338)]['length']){const _0x243420=_0x6c183;let _0x36366b=_0x2afbd2(_0x32f756[_0x243420(0x2a3)],_0x160d60(_0x2ab47a)[_0x243420(0x227)](),_0x32f756[_0x243420(0x423)]),_0x146144=_0x32f756[_0x243420(0x423)]===_0x36366b?_0x32f756:{..._0x32f756,'formulaName':_0x36366b};return R([...this[_0x243420(0x499)](_0x2ab47a),_0x53fdae[_0x243420(0x13f)](U[_0x243420(0x4c7)](_0x32f756['id']),_0x146144),_0x53fdae['insertOp']([_0x243420(0x338),_0x49d9aa],_0x32f756['id'])]);}[_0x6c183(0x17d)](_0x4dca5d,_0x1f76a2,_0x1c2265){const _0x3dc0b4=_0x6c183;let _0x49f1c0=_0x4dca5d['tables'][_0x1f76a2];return R([...this['_materializeFormulaTableNames'](_0x4dca5d),_0x53fdae['replaceOp']([...U[_0x3dc0b4(0x4c7)](_0x1f76a2),_0x3dc0b4(0x2a3)],_0x49f1c0[_0x3dc0b4(0x2a3)],_0x1c2265)]);}[_0x6c183(0x283)](_0x4638e3,_0x477e5d){const _0x31f1fd=_0x6c183;let _0x1085b2=_0x4638e3[_0x31f1fd(0x298)][_0x477e5d],_0x8273a4=_0x4638e3[_0x31f1fd(0x338)][_0x31f1fd(0x44e)](_0x477e5d);return R([...this[_0x31f1fd(0x499)](_0x4638e3,new Set([_0x477e5d])),_0x53fdae[_0x31f1fd(0x37b)](U['table'](_0x477e5d),_0x1085b2),_0x53fdae[_0x31f1fd(0x37b)]([_0x31f1fd(0x338),_0x8273a4],_0x477e5d)]);}['createRecord'](_0xf36748,_0x57f8a2,_0xbfc906){const _0x5cbd05=_0x6c183;return this[_0x5cbd05(0x1bf)](_0xf36748,_0x57f8a2,[_0xbfc906]);}[_0x6c183(0x1bf)](_0x99461d,_0x36dd48,_0x4f24cc){const _0xc46b26=_0x6c183;let _0xcdff0c=_0x99461d[_0xc46b26(0x298)][_0x36dd48],_0x202b03=_0x4f24cc['filter'](_0x2efd33=>_0x2efd33&&!_0xcdff0c[_0xc46b26(0x258)][_0x2efd33['id']])[_0xc46b26(0x141)](_0x2b5513=>({..._0x2b5513,'values':{..._0x2b5513[_0xc46b26(0x227)],[_0x5a35e2]:_0x2b5513['id']}}));if(!_0x202b03['length'])return _0x53fdae['replaceOp']([...U[_0xc46b26(0x4c7)](_0x36dd48),_0xc46b26(0x258)],_0xcdff0c[_0xc46b26(0x258)],_0xcdff0c[_0xc46b26(0x258)]);let _0x4ca0bc=new _0x53fdae['WriteCursor'](),_0x484d8e=[..._0x202b03]['sort']((_0xd2dc3a,_0x391186)=>_0xd2dc3a['id']<_0x391186['id']?-0x1:+(_0xd2dc3a['id']>_0x391186['id'])),_0x2dfbf8=[...U['table'](_0x36dd48),_0xc46b26(0x258)];_0x4ca0bc['descendPath'](_0x2dfbf8);for(let _0x23e667 of _0x484d8e)_0x4ca0bc['descend'](_0x23e667['id']),_0x4ca0bc['write']('i',_0x23e667),_0x4ca0bc['ascend']();for(let _0x422b26=0x0;_0x422b26<_0x2dfbf8[_0xc46b26(0x13c)];_0x422b26+=0x1)_0x4ca0bc['ascend']();return R([_0x4ca0bc[_0xc46b26(0x43e)](),this[_0xc46b26(0x2a9)](_0x99461d,_0x36dd48,_0x202b03)]);}['deleteRecord'](_0x5c4dee,_0x362156,_0x3c3d11){const _0x1a48d9=_0x6c183;return this[_0x1a48d9(0x158)](_0x5c4dee,_0x362156,[_0x3c3d11]);}[_0x6c183(0x158)](_0x42fd4e,_0x165894,_0x37819f){const _0x1b7c39=_0x6c183;let _0x110053=_0x42fd4e[_0x1b7c39(0x298)][_0x165894],_0x49c4b7=Array[_0x1b7c39(0x1d5)](new Set(_0x37819f))[_0x1b7c39(0x2be)](_0x45ab7b=>_0x110053[_0x1b7c39(0x258)][_0x45ab7b]);if(!_0x49c4b7[_0x1b7c39(0x13c)])return _0x53fdae[_0x1b7c39(0x180)]([...U['table'](_0x165894),_0x1b7c39(0x258)],_0x110053[_0x1b7c39(0x258)],_0x110053[_0x1b7c39(0x258)]);let _0x5358cd=new Set(_0x49c4b7),_0x4d34f8=et(_0x110053,_0x49c4b7)[_0x1b7c39(0x141)](_0x2915d6=>this['updateCell'](_0x42fd4e,_0x165894,_0x2915d6['recordId'],_0x2915d6[_0x1b7c39(0x2b0)],''));return R([this[_0x1b7c39(0x31d)](_0x42fd4e,_0x165894,_0x49c4b7,_0x5358cd),..._0x4d34f8]);}[_0x6c183(0x225)](_0x5181e2,_0x365e17,_0x42edeb,_0xc9ffd3){const _0x2f9c57=_0x6c183;let _0x10e608=_0x5181e2['tables'][_0x42edeb],_0x19d14a=Array[_0x2f9c57(0x1d5)](new Set(_0xc9ffd3))['filter'](_0x43fe8b=>_0x10e608[_0x2f9c57(0x258)][_0x43fe8b]),_0xae377e=new Set(_0x19d14a);return R([new z()[_0x2f9c57(0x2d8)](_0x5181e2,this[_0x2f9c57(0x31d)](_0x5181e2,_0x42edeb,_0x19d14a,_0xae377e)),...et(_0x10e608,_0x19d14a)['map'](_0x3b44ae=>this[_0x2f9c57(0x20d)](_0x365e17,_0x42edeb,_0x3b44ae['recordId'],_0x3b44ae[_0x2f9c57(0x2b0)],_0x3b44ae[_0x2f9c57(0x2d1)]??''))]);}[_0x6c183(0x31d)](_0x235f97,_0x4276c4,_0x1da834,_0x357416){const _0x5e4af9=_0x6c183;let _0x166df0=_0x235f97[_0x5e4af9(0x298)][_0x4276c4],_0x477052=_0x1da834[_0x5e4af9(0x141)](_0x337c48=>{const _0x59b1f2=_0x5e4af9;var _0x2d0c19;return{'recordId':_0x337c48,'index':((_0x2d0c19=_0x166df0[_0x59b1f2(0x1e7)])==null?void 0x0:_0x2d0c19[_0x59b1f2(0x44e)](_0x337c48))??-0x1};})['filter'](_0x4057c3=>_0x4057c3['index']>=0x0)['sort']((_0x506c12,_0x11a676)=>_0x11a676[_0x5e4af9(0x159)]-_0x506c12['index']);return R([..._0x1da834['map'](_0x37c6db=>_0x53fdae[_0x5e4af9(0x37b)](U[_0x5e4af9(0x493)](_0x4276c4,_0x37c6db),_0x166df0[_0x5e4af9(0x258)][_0x37c6db])),..._0x477052[_0x5e4af9(0x141)](({recordId:_0x54add7,index:_0x25aaab})=>_0x53fdae[_0x5e4af9(0x37b)](['tables',_0x4276c4,_0x5e4af9(0x1e7),_0x25aaab],_0x54add7)),...this[_0x5e4af9(0x23f)](_0x166df0,_0x4276c4,_0x2f1022=>{const _0x35ab14=_0x5e4af9;let _0x322857=_0x2f1022['slice'](_0x2f1022[_0x35ab14(0x38c)]('\x1f')+0x1);return _0x357416[_0x35ab14(0x34b)](_0x322857);})]);}['duplicateRecord'](_0x176a1c,_0x32f608,_0x578f70,_0x58d320){const _0x488bcc=_0x6c183;return this[_0x488bcc(0x134)](_0x176a1c,_0x32f608,{..._0x58d320,'values':{..._0x176a1c[_0x488bcc(0x298)][_0x32f608][_0x488bcc(0x258)][_0x578f70][_0x488bcc(0x227)],..._0x58d320[_0x488bcc(0x227)],[_0x5a35e2]:_0x58d320['id']}});}[_0x6c183(0x313)](_0x4a0f47,_0x42ce98,_0x31f2d7,_0x2771fb){const _0x4d3282=_0x6c183;let _0x59bb71=_0x4a0f47[_0x4d3282(0x298)][_0x42ce98],_0x1d630c=[...U['record'](_0x42ce98,_0x31f2d7),'orderKey'],_0x2e0df7=Object[_0x4d3282(0x227)](_0x59bb71['records'])[_0x4d3282(0x141)](_0x59e8c2=>_0x59e8c2['id']===_0x31f2d7?{..._0x59e8c2,'orderKey':_0x2771fb}:_0x59e8c2)[_0x4d3282(0x277)]((_0x3e9191,_0x22c3bf)=>String(_0x3e9191[_0x4d3282(0x4a1)]??_0x3e9191['id'])[_0x4d3282(0x37a)](String(_0x22c3bf['orderKey']??_0x22c3bf['id'])))[_0x4d3282(0x141)](_0x158d36=>_0x158d36['id']),_0x1ff5dd=[...U[_0x4d3282(0x4c7)](_0x42ce98),_0x4d3282(0x1e7)];return R([this['_replaceOptional'](_0x1d630c,_0x59bb71[_0x4d3282(0x258)][_0x31f2d7][_0x4d3282(0x4a1)],_0x2771fb),_0x59bb71[_0x4d3282(0x1e7)]?_0x53fdae['replaceOp'](_0x1ff5dd,_0x59bb71[_0x4d3282(0x1e7)],_0x2e0df7):_0x53fdae['insertOp'](_0x1ff5dd,_0x2e0df7)]);}[_0x6c183(0x20d)](_0x2c2e32,_0x5ffb95,_0x57b369,_0x37b89a,_0x5bfacb){const _0xe06ddb=_0x6c183;var _0x573598,_0x23b928;let _0x277715=_0x2c2e32[_0xe06ddb(0x298)][_0x5ffb95],_0x29a2db=ar(_0x277715,_0x57b369,_0x37b89a)?_0x277715:L(_0x277715),_0x84219c=(_0x573598=_0x29a2db['rowIndex'])==null?void 0x0:_0x573598[_0x57b369],_0x1ce158=(_0x23b928=_0x29a2db['colIndex'])==null?void 0x0:_0x23b928[_0x37b89a];if(_0x84219c==null||_0x1ce158==null){var _0x51fdcb;return this[_0xe06ddb(0x4a8)](U[_0xe06ddb(0x1de)](_0x5ffb95,_0x57b369,_0x37b89a),(_0x51fdcb=_0x2c2e32[_0xe06ddb(0x298)][_0x5ffb95])==null||(_0x51fdcb=_0x51fdcb[_0xe06ddb(0x258)][_0x57b369])==null?void 0x0:_0x51fdcb[_0xe06ddb(0x227)][_0x37b89a],_0x5bfacb);}return this[_0xe06ddb(0x11d)](_0x2c2e32,_0x5ffb95,[{'row':_0x84219c,'col':_0x1ce158,'value':_0x5bfacb}]);}[_0x6c183(0x3a6)](_0x252384,_0x166502,_0x2113c6){const _0x3e99d8=_0x6c183;let _0x16f049=_0x252384['tables'][_0x166502],_0x1592f3=_0x2113c6['every'](_0x4a1099=>Object[_0x3e99d8(0x24c)](_0x4a1099[_0x3e99d8(0x227)])[_0x3e99d8(0x387)](_0x52b28c=>ar(_0x16f049,_0x4a1099[_0x3e99d8(0x347)],_0x52b28c)))?_0x16f049:L(_0x16f049),_0x49aa9b=_0x2113c6[_0x3e99d8(0x17a)](_0x1ebceb=>Object[_0x3e99d8(0x279)](_0x1ebceb[_0x3e99d8(0x227)])[_0x3e99d8(0x17a)](([_0x1df160,_0x71699e])=>{const _0x553d16=_0x3e99d8;var _0x1416b6,_0x4dae7e;let _0x44f671=(_0x1416b6=_0x1592f3[_0x553d16(0x375)])==null?void 0x0:_0x1416b6[_0x1ebceb[_0x553d16(0x347)]],_0x57909f=(_0x4dae7e=_0x1592f3[_0x553d16(0x390)])==null?void 0x0:_0x4dae7e[_0x1df160];return _0x44f671==null||_0x57909f==null?[]:[{'row':_0x44f671,'col':_0x57909f,'value':_0x71699e}];})),_0x14ef7e=_0x2113c6[_0x3e99d8(0x17a)](_0x38c71b=>Object['entries'](_0x38c71b[_0x3e99d8(0x413)]??{})[_0x3e99d8(0x141)](([_0x29ba17,_0x5d50f7])=>{const _0x3741e0=_0x3e99d8;var _0x203f66;let _0x4df911=[...U[_0x3741e0(0x493)](_0x166502,_0x38c71b['recordId']),_0x29ba17],_0x4051a6=(_0x203f66=_0x252384[_0x3741e0(0x298)][_0x166502])==null||(_0x203f66=_0x203f66['records'][_0x38c71b[_0x3741e0(0x347)]])==null?void 0x0:_0x203f66[_0x29ba17];return this[_0x3741e0(0x4a8)](_0x4df911,_0x4051a6,_0x5d50f7);}));return R([this[_0x3e99d8(0x11d)](_0x252384,_0x166502,_0x49aa9b),..._0x14ef7e]);}[_0x6c183(0x11d)](_0xea155f,_0x272a30,_0x19f4ec){const _0xc0c62=_0x6c183;let _0x18c3b4=_0xea155f[_0xc0c62(0x298)][_0x272a30],_0x357633=_0x19f4ec[_0xc0c62(0x387)](_0x4cea52=>or(_0x18c3b4,_0x4cea52['row'],_0x4cea52['col']))?_0x18c3b4:L(_0x18c3b4),_0x566c3b=new Map(),_0x32fdb4=_0x19f4ec['flatMap'](_0x3c6916=>{const _0x2ff715=_0xc0c62;var _0x5ed0c8,_0x22d780,_0x5616f3,_0x5ae7e7;let _0x1a57a8=(_0x5ed0c8=_0x357633[_0x2ff715(0x1fe)])==null?void 0x0:_0x5ed0c8[_0x3c6916['col']],_0x4e4cbe=(_0x22d780=_0x357633[_0x2ff715(0x3d0)])==null?void 0x0:_0x22d780[_0x3c6916[_0x2ff715(0x4b3)]],_0x4bd446=_0x1a57a8?_0x357633[_0x2ff715(0x398)][_0x1a57a8]:void 0x0;if(_0x1a57a8===_0x5a35e2||(_0x4bd446==null?void 0x0:_0x4bd446[_0x2ff715(0x20b)])===_0x3a044b['RecordId'])throw Error('[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.');let _0x46d1ff=xt(_0x3c6916[_0x2ff715(0x350)],_0x4bd446),_0x5c925f=(_0x5616f3=_0x357633[_0x2ff715(0x389)])==null||(_0x5616f3=_0x5616f3[_0x3c6916['row']])==null?void 0x0:_0x5616f3[_0x3c6916['col']],_0xd37345=this[_0x2ff715(0x4a8)](U[_0x2ff715(0x389)](_0x272a30,_0x3c6916[_0x2ff715(0x4b3)],_0x3c6916[_0x2ff715(0x295)]),_0x5c925f,_0x46d1ff);if(!_0x1a57a8||!_0x4e4cbe)return[_0xd37345];let _0x204c11=(_0x5ae7e7=_0x357633[_0x2ff715(0x258)][_0x4e4cbe])==null?void 0x0:_0x5ae7e7[_0x2ff715(0x227)][_0x1a57a8],_0x4cfb26=(_0x4bd446==null?void 0x0:_0x4bd446[_0x2ff715(0x20b)])===_0x3a044b[_0x2ff715(0x1ab)]?kt(_0x3c6916[_0x2ff715(0x350)]):wt(_0x3c6916['value'],_0x46d1ff,_0x4bd446,_0x357633,_0x4e4cbe),_0x1ce84a=[_0xd37345,this[_0x2ff715(0x4a8)](U[_0x2ff715(0x1de)](_0x272a30,_0x4e4cbe,_0x1a57a8),_0x204c11,_0x4cfb26)];return(_0x4bd446==null?void 0x0:_0x4bd446['type'])===_0x3a044b['Attachment']&&_0x566c3b[_0x2ff715(0x49e)](Et(_0x1a57a8,_0x4e4cbe),{'recordId':_0x4e4cbe,'fieldId':_0x1a57a8,'attachments':_0x4cfb26}),_0x1ce84a;});return _0x32fdb4[_0xc0c62(0x13c)]?R([..._0x32fdb4,...this[_0xc0c62(0x1a0)](_0x357633,_0x272a30,Array['from'](_0x566c3b[_0xc0c62(0x227)]()))]):_0x53fdae[_0xc0c62(0x180)]([_0xc0c62(0x298),_0x272a30,_0xc0c62(0x389)],_0x357633['cellData'],_0x357633[_0xc0c62(0x389)]);}['createField'](_0x3e96fc,_0x4b5de6,_0x37bf60){const _0x5d15b2=_0x6c183;let _0x270ef0=_0x3e96fc[_0x5d15b2(0x298)][_0x4b5de6];if(_0x270ef0[_0x5d15b2(0x398)][_0x37bf60[_0x5d15b2(0x2d5)]['id']]||_0x270ef0[_0x5d15b2(0x3b5)][_0x5d15b2(0x16a)](_0x37bf60['field']['id']))return _0x53fdae['replaceOp']([_0x5d15b2(0x298),_0x4b5de6,_0x5d15b2(0x3b5)],_0x270ef0[_0x5d15b2(0x3b5)],_0x270ef0[_0x5d15b2(0x3b5)]);let _0x48659b=Math[_0x5d15b2(0x482)](0x1,_0x37bf60[_0x5d15b2(0x159)]??_0x270ef0[_0x5d15b2(0x3b5)][_0x5d15b2(0x13c)]),_0xe51f35=Object['values'](_0x270ef0[_0x5d15b2(0x362)]??{})[_0x5d15b2(0x17a)](_0x3942f5=>{const _0x55c482=_0x5d15b2;var _0xcc8583;if(!_0x3942f5[_0x55c482(0x3b5)]||_0x3942f5[_0x55c482(0x3b5)][_0x55c482(0x16a)](_0x37bf60['field']['id']))return[];let _0x31d5fa=ur(((_0xcc8583=_0x37bf60[_0x55c482(0x369)])==null?void 0x0:_0xcc8583[_0x3942f5['id']])??_0x48659b,_0x3942f5[_0x55c482(0x3b5)]['length']);return[_0x53fdae[_0x55c482(0x13f)]([...U[_0x55c482(0x37d)](_0x4b5de6,_0x3942f5['id']),_0x55c482(0x3b5),_0x31d5fa],_0x37bf60[_0x55c482(0x2d5)]['id'])];});return R([..._0x37bf60[_0x5d15b2(0x2d5)][_0x5d15b2(0x20b)]===_0x3a044b['Formula']?this[_0x5d15b2(0x499)](_0x3e96fc):[],_0x53fdae['insertOp'](U[_0x5d15b2(0x2d5)](_0x4b5de6,_0x37bf60[_0x5d15b2(0x2d5)]['id']),_0x37bf60[_0x5d15b2(0x2d5)]),_0x53fdae['insertOp'](U[_0x5d15b2(0x3b5)](_0x4b5de6,_0x48659b),_0x37bf60['field']['id']),..._0xe51f35]);}['duplicateField'](_0x145410,_0x242728,_0x2a011f,_0x9ba9a6){const _0xf6f88c=_0x6c183;let _0x454fc0=_0x145410[_0xf6f88c(0x298)][_0x242728];if(!_0x454fc0[_0xf6f88c(0x398)][_0x2a011f]||_0x454fc0[_0xf6f88c(0x398)][_0x9ba9a6[_0xf6f88c(0x2d5)]['id']]||_0x454fc0[_0xf6f88c(0x3b5)][_0xf6f88c(0x16a)](_0x9ba9a6[_0xf6f88c(0x2d5)]['id']))return _0x53fdae[_0xf6f88c(0x180)]([_0xf6f88c(0x298),_0x242728,_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)]);let _0xee6fe8=_0x9ba9a6[_0xf6f88c(0x159)]??_0x454fc0[_0xf6f88c(0x3b5)]['indexOf'](_0x2a011f)+0x1,_0x428fb5=_0x454fc0['fieldOrder'][_0xf6f88c(0x2be)](_0xb159bf=>_0xb159bf!==_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x5cfa27=cr(_0x428fb5,_0x9ba9a6['field']['id'],_0xee6fe8),_0xf88106=Object[_0xf6f88c(0x227)](_0x454fc0[_0xf6f88c(0x362)]??{})[_0xf6f88c(0x17a)](_0x211dff=>{const _0x36f944=_0xf6f88c;var _0x579d32,_0x11e6e2,_0x5baf5c,_0xcf9e99;let _0x4f8171=(_0x579d32=_0x211dff[_0x36f944(0x3b5)])!=null&&_0x579d32['length']?_0x211dff[_0x36f944(0x3b5)]:_0x428fb5;if(_0x4f8171[_0x36f944(0x16a)](_0x9ba9a6['field']['id']))return[];let _0x421115=cr(_0x4f8171,_0x9ba9a6[_0x36f944(0x2d5)]['id'],((_0x11e6e2=_0x9ba9a6[_0x36f944(0x369)])==null?void 0x0:_0x11e6e2[_0x211dff['id']])??_0xee6fe8),_0x3f675d=(_0x5baf5c=_0x211dff['fieldSettings'])==null?void 0x0:_0x5baf5c[_0x2a011f];return[this[_0x36f944(0x4a8)]([...U[_0x36f944(0x37d)](_0x242728,_0x211dff['id']),_0x36f944(0x3b5)],_0x211dff[_0x36f944(0x3b5)],_0x421115),..._0x3f675d?[this[_0x36f944(0x4a8)]([...U[_0x36f944(0x37d)](_0x242728,_0x211dff['id']),_0x36f944(0x48f),_0x9ba9a6[_0x36f944(0x2d5)]['id']],(_0xcf9e99=_0x211dff[_0x36f944(0x48f)])==null?void 0x0:_0xcf9e99[_0x9ba9a6['field']['id']],_0x3f675d)]:[]];}),_0x3668fd=Object[_0xf6f88c(0x227)](_0x454fc0[_0xf6f88c(0x258)])[_0xf6f88c(0x2be)](_0x3b0c1c=>Object['prototype'][_0xf6f88c(0x48a)][_0xf6f88c(0x43b)](_0x3b0c1c['values'],_0x2a011f))[_0xf6f88c(0x141)](_0x1e914f=>this['_replaceOptional'](U[_0xf6f88c(0x1de)](_0x242728,_0x1e914f['id'],_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x1e914f['values'][_0x9ba9a6['field']['id']],_0x1e914f[_0xf6f88c(0x227)][_0x2a011f]));return R([..._0x9ba9a6['field'][_0xf6f88c(0x20b)]===_0x3a044b[_0xf6f88c(0x4a0)]?this[_0xf6f88c(0x499)](_0x145410):[],_0x53fdae['insertOp'](U[_0xf6f88c(0x2d5)](_0x242728,_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x9ba9a6[_0xf6f88c(0x2d5)]),_0x53fdae['replaceOp'](['tables',_0x242728,_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)],_0x5cfa27),..._0xf88106,..._0x3668fd]);}[_0x6c183(0x13b)](_0x5051d4,_0x242ac9,_0x83f840,_0x3993c2){const _0xc8cc36=_0x6c183;let _0x119e39=_0x5051d4[_0xc8cc36(0x298)][_0x242ac9][_0xc8cc36(0x398)][_0x83f840],_0x16d48c={..._0x119e39,..._0x3993c2};Object[_0xc8cc36(0x24c)](_0x3993c2)[_0xc8cc36(0x2e0)](_0x9ee7e8=>{_0x3993c2[_0x9ee7e8]===void 0x0&&delete _0x16d48c[_0x9ee7e8];});let _0x4911d6=er(_0x5051d4[_0xc8cc36(0x298)][_0x242ac9],_0x83f840,_0x119e39,_0x16d48c);_0x16d48c=_0x4911d6[_0xc8cc36(0x2d5)];let _0x4a9fce=_0x53fdae[_0xc8cc36(0x180)](U['field'](_0x242ac9,_0x83f840),_0x119e39,_0x16d48c);return _0x16d48c['type']===_0x3a044b[_0xc8cc36(0x4a0)]?R([...this['_materializeFormulaTableNames'](_0x5051d4),_0x4a9fce,...this[_0xc8cc36(0x18d)](_0x5051d4,_0x242ac9,_0x83f840,_0x16d48c)]):R([_0x4a9fce,..._0x4911d6['patches']['length']?[this['setRangeValues'](_0x5051d4,_0x242ac9,_0x4911d6['patches'])]:[]]);}[_0x6c183(0x3e5)](_0x26649e,_0x610455,_0x1ddd02,_0x255885){const _0x192675=_0x6c183;return this[_0x192675(0x13b)](_0x26649e,_0x610455,_0x1ddd02,_0x255885);}['deleteField'](_0x3875d8,_0x251d6b,_0x3a08d1){const _0x50e1d6=_0x6c183;let _0x3e8b1b=_0x3875d8['tables'][_0x251d6b];if(!(_0x3e8b1b!=null&&_0x3e8b1b['fields'][_0x3a08d1])||_0x3e8b1b[_0x50e1d6(0x3b2)]===_0x3a08d1||_0x3a08d1===_0x5a35e2)return _0x53fdae[_0x50e1d6(0x180)](['tables',_0x251d6b,_0x50e1d6(0x3b5)],_0x3e8b1b==null?void 0x0:_0x3e8b1b[_0x50e1d6(0x3b5)],_0x3e8b1b==null?void 0x0:_0x3e8b1b[_0x50e1d6(0x3b5)]);let _0x5ad8d0=_0x3e8b1b[_0x50e1d6(0x3b5)][_0x50e1d6(0x44e)](_0x3a08d1),_0x5f3aea=Object[_0x50e1d6(0x227)](_0x3e8b1b[_0x50e1d6(0x362)])[_0x50e1d6(0x17a)](_0x3919e8=>{const _0x6001c4=_0x50e1d6;var _0x16bc29,_0x7948b0,_0xd1e3c1,_0x4063fa,_0x5a71f4,_0x570883,_0x377283;let _0x4ece43=[],_0x46ae3a=((_0x16bc29=_0x3919e8['fieldOrder'])==null?void 0x0:_0x16bc29[_0x6001c4(0x44e)](_0x3a08d1))??-0x1;_0x46ae3a>=0x0&&_0x4ece43[_0x6001c4(0x174)](_0x53fdae[_0x6001c4(0x37b)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x3b5),_0x46ae3a],_0x3a08d1));let _0x365a45=(_0x7948b0=_0x3919e8[_0x6001c4(0x48f)])==null?void 0x0:_0x7948b0[_0x3a08d1];_0x365a45!==void 0x0&&_0x4ece43['push'](_0x53fdae[_0x6001c4(0x37b)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x48f),_0x3a08d1],_0x365a45));let _0xb10cd0=_0x3919e8[_0x6001c4(0x2be)]?{..._0x3919e8['filter'],'conditions':_0x3919e8[_0x6001c4(0x2be)]['conditions']['filter'](_0x5a9df6=>_0x5a9df6['fieldId']!==_0x3a08d1)}:_0x3919e8[_0x6001c4(0x2be)];_0xb10cd0&&_0xb10cd0[_0x6001c4(0x396)]['length']!==((_0xd1e3c1=_0x3919e8[_0x6001c4(0x2be)])==null?void 0x0:_0xd1e3c1[_0x6001c4(0x396)]['length'])&&_0x4ece43['push'](this[_0x6001c4(0x4a8)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),'filter'],_0x3919e8[_0x6001c4(0x2be)],_0xb10cd0));let _0x29435a=(_0x4063fa=_0x3919e8['sort'])==null?void 0x0:_0x4063fa[_0x6001c4(0x2be)](_0x14678a=>_0x14678a[_0x6001c4(0x2b0)]!==_0x3a08d1);_0x29435a&&_0x29435a['length']!==((_0x5a71f4=_0x3919e8[_0x6001c4(0x277)])==null?void 0x0:_0x5a71f4[_0x6001c4(0x13c)])&&_0x4ece43[_0x6001c4(0x174)](this[_0x6001c4(0x4a8)]([...U['view'](_0x251d6b,_0x3919e8['id']),'sort'],_0x3919e8[_0x6001c4(0x277)],_0x29435a));let _0x3baff4=(_0x570883=_0x3919e8['group'])==null?void 0x0:_0x570883[_0x6001c4(0x2be)](_0xf3101=>_0xf3101['fieldId']!==_0x3a08d1);_0x3baff4&&_0x3baff4[_0x6001c4(0x13c)]!==((_0x377283=_0x3919e8[_0x6001c4(0x1f2)])==null?void 0x0:_0x377283[_0x6001c4(0x13c)])&&_0x4ece43[_0x6001c4(0x174)](this[_0x6001c4(0x4a8)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x1f2)],_0x3919e8['group'],_0x3baff4));let _0x3fc135=lr(_0x3919e8['config'],_0x3a08d1);return JSON[_0x6001c4(0x25f)](_0x3fc135)!==JSON[_0x6001c4(0x25f)](_0x3919e8['config'])&&_0x4ece43['push'](_0x53fdae['replaceOp']([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),'config'],_0x3919e8[_0x6001c4(0x2ba)],_0x3fc135)),_0x4ece43;}),_0x4ceb70=Object[_0x50e1d6(0x227)](_0x3e8b1b[_0x50e1d6(0x258)])[_0x50e1d6(0x17a)](_0x3ef8e7=>Object[_0x50e1d6(0x246)][_0x50e1d6(0x48a)][_0x50e1d6(0x43b)](_0x3ef8e7['values'],_0x3a08d1)?[_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x1de)](_0x251d6b,_0x3ef8e7['id'],_0x3a08d1),_0x3ef8e7['values'][_0x3a08d1])]:[]);return R([_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x2d5)](_0x251d6b,_0x3a08d1),_0x3e8b1b[_0x50e1d6(0x398)][_0x3a08d1]),_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x3b5)](_0x251d6b,_0x5ad8d0),_0x3a08d1),..._0x5f3aea,..._0x4ceb70,...this['_deleteAttachmentResources'](_0x3e8b1b,_0x251d6b,_0x14bb5d=>_0x14bb5d[_0x50e1d6(0x1fb)](_0x3a08d1+'\x1f'))]);}[_0x6c183(0x344)](_0x43ee13,_0xbeae85,_0x3c441a,_0x35044e){const _0x288d69=_0x6c183;let _0x118955=_0x43ee13[_0x288d69(0x298)][_0xbeae85]['fieldOrder'];if(_0x3c441a===_0x5a35e2||_0x35044e[_0x288d69(0x33d)]===_0x5a35e2)throw Error(_0x288d69(0x165));let _0x396f64=sr(_0x118955,_0x3c441a,_0x35044e);return _0x53fdae[_0x288d69(0x180)]([_0x288d69(0x298),_0xbeae85,_0x288d69(0x3b5)],_0x118955,_0x396f64);}[_0x6c183(0x2d7)](_0x1622fc,_0x1ecf71,_0x4e50c7,_0x3b122f=_0x1622fc['tables'][_0x1ecf71][_0x6c183(0x1cd)][_0x6c183(0x13c)]){const _0x107e2d=_0x6c183;return R([_0x53fdae[_0x107e2d(0x13f)](U['view'](_0x1ecf71,_0x4e50c7['id']),_0x4e50c7),_0x53fdae[_0x107e2d(0x13f)]([_0x107e2d(0x298),_0x1ecf71,_0x107e2d(0x1cd),_0x3b122f],_0x4e50c7['id'])]);}[_0x6c183(0x15f)](_0xf22a06,_0x3d2746,_0xc7f641,_0x1b4284){const _0x1b702e=_0x6c183;return _0x53fdae[_0x1b702e(0x180)]([...U[_0x1b702e(0x37d)](_0x3d2746,_0xc7f641),'name'],_0xf22a06[_0x1b702e(0x298)][_0x3d2746][_0x1b702e(0x362)][_0xc7f641][_0x1b702e(0x2a3)],_0x1b4284);}['deleteView'](_0x2354fd,_0x339769,_0x106f0c){const _0x676153=_0x6c183;let _0x15e772=_0x2354fd[_0x676153(0x298)][_0x339769],_0x1d413d=_0x15e772[_0x676153(0x362)][_0x106f0c],_0xae4292=_0x15e772[_0x676153(0x1cd)]['indexOf'](_0x106f0c);return R([_0x53fdae[_0x676153(0x37b)](U['view'](_0x339769,_0x106f0c),_0x1d413d),_0x53fdae[_0x676153(0x37b)]([_0x676153(0x298),_0x339769,'viewOrder',_0xae4292],_0x106f0c)]);}[_0x6c183(0x308)](_0xd2b96,_0x13f379,_0x3c523b,_0x556111){const _0x1b665e=_0x6c183;let _0x4713c4=_0xd2b96[_0x1b665e(0x298)][_0x13f379][_0x1b665e(0x1cd)],_0x25477b=sr(_0x4713c4,_0x3c523b,{'beforeFieldId':_0x556111[_0x1b665e(0x1af)],'afterFieldId':_0x556111[_0x1b665e(0x2d4)]});return _0x53fdae[_0x1b665e(0x180)]([_0x1b665e(0x298),_0x13f379,_0x1b665e(0x1cd)],_0x4713c4,_0x25477b);}['updateViewConfig'](_0x4a059d,_0x4617b0,_0x58d8d0,_0x242b64){const _0x3cdc0a=_0x6c183;let _0x39c5bf=_0x4a059d[_0x3cdc0a(0x298)][_0x4617b0][_0x3cdc0a(0x362)][_0x58d8d0]['config']??{},_0x386e43={..._0x39c5bf,..._0x242b64};return Object['keys'](_0x242b64)[_0x3cdc0a(0x2e0)](_0x58261d=>{_0x242b64[_0x58261d]===void 0x0&&delete _0x386e43[_0x58261d];}),_0x53fdae[_0x3cdc0a(0x180)]([...U[_0x3cdc0a(0x37d)](_0x4617b0,_0x58d8d0),_0x3cdc0a(0x2ba)],_0x39c5bf,_0x386e43);}[_0x6c183(0x16e)](_0x10f781,_0x3101b8,_0x49c678,_0x188b9a){const _0x168c8a=_0x6c183;return this[_0x168c8a(0x4a8)]([...U['view'](_0x3101b8,_0x49c678),_0x168c8a(0x2be)],_0x10f781[_0x168c8a(0x298)][_0x3101b8]['views'][_0x49c678][_0x168c8a(0x2be)],_0x188b9a);}[_0x6c183(0x23d)](_0xa21fdb,_0x27bccf,_0x4f6e94,_0x8726b9){const _0x46ef7b=_0x6c183;return this[_0x46ef7b(0x4a8)]([...U[_0x46ef7b(0x37d)](_0x27bccf,_0x4f6e94),_0x46ef7b(0x277)],_0xa21fdb[_0x46ef7b(0x298)][_0x27bccf][_0x46ef7b(0x362)][_0x4f6e94]['sort'],_0x8726b9);}['setViewGroup'](_0x5bbbf4,_0xbbe032,_0x1654a2,_0x2af382){const _0x3c3c48=_0x6c183;return this[_0x3c3c48(0x4a8)]([...U['view'](_0xbbe032,_0x1654a2),'group'],_0x5bbbf4[_0x3c3c48(0x298)][_0xbbe032][_0x3c3c48(0x362)][_0x1654a2]['group'],_0x2af382);}[_0x6c183(0x18c)](_0x3d8a9e,_0x1c868f,_0x118caa,_0x3f165a,_0x326413){return this['_setViewFieldSetting'](_0x3d8a9e,_0x1c868f,_0x118caa,_0x3f165a,{'hidden':!_0x326413});}[_0x6c183(0x15e)](_0x1541a9,_0x3335d2,_0x420b24,_0x4d2f7b,_0x3ad3d6){const _0x5c79ad=_0x6c183;return this[_0x5c79ad(0x142)](_0x1541a9,_0x3335d2,_0x420b24,_0x4d2f7b,{'width':_0x3ad3d6});}[_0x6c183(0x22a)](_0x5f484a,_0x5706d6,_0x33b768,_0x1dad8c,_0x387043){const _0x1dc155=_0x6c183;let _0x37cfee=_0x5f484a[_0x1dc155(0x298)][_0x5706d6][_0x1dc155(0x362)][_0x33b768],_0x31cb52=sr(_0x37cfee[_0x1dc155(0x3b5)]??_0x5f484a[_0x1dc155(0x298)][_0x5706d6][_0x1dc155(0x3b5)],_0x1dad8c,_0x387043);return this['_replaceOptional']([...U[_0x1dc155(0x37d)](_0x5706d6,_0x33b768),_0x1dc155(0x3b5)],_0x37cfee[_0x1dc155(0x3b5)],_0x31cb52);}[_0x6c183(0x142)](_0x156c9a,_0x31cd87,_0x54e2f0,_0x59646c,_0x497fb2){const _0x34d3ca=_0x6c183;let _0x3c42ae=_0x156c9a['tables'][_0x31cd87][_0x34d3ca(0x362)][_0x54e2f0][_0x34d3ca(0x48f)]??{},_0x3125fa={..._0x3c42ae,[_0x59646c]:{..._0x3c42ae[_0x59646c],..._0x497fb2}};return this[_0x34d3ca(0x4a8)]([...U[_0x34d3ca(0x37d)](_0x31cd87,_0x54e2f0),'fieldSettings'],_0x156c9a[_0x34d3ca(0x298)][_0x31cd87][_0x34d3ca(0x362)][_0x54e2f0][_0x34d3ca(0x48f)],_0x3125fa);}['_createRecordOrderOp'](_0xe2d040,_0x5efb5b,_0x30b8f3){const _0x1e1a9b=_0x6c183;let _0x3afc31=_0xe2d040[_0x1e1a9b(0x298)][_0x5efb5b],_0x13a19e=new Set(_0x30b8f3['map'](_0x45723d=>_0x45723d['id'])),_0x1bbf5f=[...Object[_0x1e1a9b(0x227)](_0x3afc31[_0x1e1a9b(0x258)])[_0x1e1a9b(0x2be)](_0x3c945a=>!_0x13a19e['has'](_0x3c945a['id'])),..._0x30b8f3][_0x1e1a9b(0x277)]((_0x5a7d5a,_0x33ea5b)=>String(_0x5a7d5a['orderKey']??_0x5a7d5a['id'])[_0x1e1a9b(0x37a)](String(_0x33ea5b['orderKey']??_0x33ea5b['id'])))[_0x1e1a9b(0x141)](_0x4e68e9=>_0x4e68e9['id']),_0x16201b=[...U[_0x1e1a9b(0x4c7)](_0x5efb5b),_0x1e1a9b(0x1e7)];return _0x3afc31[_0x1e1a9b(0x1e7)]?_0x53fdae[_0x1e1a9b(0x180)](_0x16201b,_0x3afc31['recordOrder'],_0x1bbf5f):_0x53fdae[_0x1e1a9b(0x13f)](_0x16201b,_0x1bbf5f);}[_0x6c183(0x499)](_0x595d72,_0x49f9f3=new Set()){const _0x2ff6a4=_0x6c183;let _0x15e169=_0x160d60(_0x595d72);return Object[_0x2ff6a4(0x227)](_0x595d72[_0x2ff6a4(0x298)])[_0x2ff6a4(0x2be)](_0x17f7a8=>!_0x49f9f3['has'](_0x17f7a8['id']))[_0x2ff6a4(0x277)]((_0x366927,_0x487e4e)=>_0x366927['id'][_0x2ff6a4(0x37a)](_0x487e4e['id']))[_0x2ff6a4(0x17a)](_0x19ccb9=>{const _0x5cb9b7=_0x2ff6a4;let _0x56a595=_0x15e169[_0x5cb9b7(0x43e)](_0x19ccb9['id']);return!_0x56a595||_0x19ccb9[_0x5cb9b7(0x423)]===_0x56a595?[]:[this[_0x5cb9b7(0x4a8)]([...U['table'](_0x19ccb9['id']),'formulaName'],_0x19ccb9[_0x5cb9b7(0x423)],_0x56a595)];});}[_0x6c183(0x18d)](_0x37ce02,_0x4d6ca6,_0x38fb6a,_0xfbf31c){const _0x2b4989=_0x6c183;var _0x4d583b,_0x21dc43;let _0xa1cb0b=L(_0x37ce02[_0x2b4989(0x298)][_0x4d6ca6]),_0x21fd8b=String(((_0x4d583b=_0xfbf31c[_0x2b4989(0x2ba)])==null?void 0x0:_0x4d583b[_0x2b4989(0x3bc)])??'')[_0x2b4989(0x226)](),_0x1d046b=(_0x21dc43=_0xa1cb0b[_0x2b4989(0x390)])==null?void 0x0:_0x21dc43[_0x38fb6a];if(_0x1d046b==null)return[];let _0x36d0b4=_0xa1cb0b[_0x2b4989(0x1e7)]??Object['keys'](_0xa1cb0b[_0x2b4989(0x258)]),_0xadca0f=_0x36d0b4[_0x2b4989(0x141)](_0x152709=>{var _0x4ea2d6;return(_0x4ea2d6=_0xa1cb0b['rowIndex'])==null?void 0x0:_0x4ea2d6[_0x152709];})[_0x2b4989(0x392)](_0xafc05=>_0xafc05!=null);return _0x36d0b4['flatMap'](_0x261837=>{const _0x1c1216=_0x2b4989;var _0x55a6c1,_0xc64eff;let _0x128604=(_0x55a6c1=_0xa1cb0b[_0x1c1216(0x375)])==null?void 0x0:_0x55a6c1[_0x261837];if(_0x128604==null)return[];let _0xd4b124=(_0xc64eff=_0xa1cb0b[_0x1c1216(0x389)])==null||(_0xc64eff=_0xc64eff[_0x128604])==null?void 0x0:_0xc64eff[_0x1d046b],_0x272471=_0x21fd8b?_0x128604===_0xadca0f?{'f':_0x21fd8b,'si':_0x38fb6a}:{'si':_0x38fb6a}:{'v':null,'t':null};return[this[_0x1c1216(0x4a8)](U[_0x1c1216(0x389)](_0x4d6ca6,_0x128604,_0x1d046b),_0xd4b124,_0x272471)];});}['_setAttachmentResources'](_0x842449,_0x2d744a,_0x366f70){const _0x5b7a29=_0x6c183;var _0x55d75c;let _0x54a088=new Map(Object[_0x5b7a29(0x279)](((_0x55d75c=_0x842449['resources'])==null?void 0x0:_0x55d75c['attachmentSets'])??{})),_0x426bf6=new Map(),_0x2dd7d2=new Set(),_0x5abf2f=_0x366f70['map'](({recordId:_0x2d771e,fieldId:_0x4c9186,attachments:_0x4d0574})=>{const _0x50979a=_0x5b7a29;var _0x27e8ba;let _0x495dfe=Et(_0x4c9186,_0x2d771e),_0x877607=_0x4d0574[_0x50979a(0x141)]((_0x285f4b,_0x1898ef)=>String(_0x285f4b['id']??_0x495dfe+'\x1f'+_0x1898ef));return _0x2dd7d2[_0x50979a(0x2ee)](_0x495dfe),_0x54a088['set'](_0x495dfe,_0x877607),_0x4d0574[_0x50979a(0x2e0)]((_0x16bb28,_0x34c27e)=>{let _0x40e76a=_0x877607[_0x34c27e];_0x426bf6['set'](_0x40e76a,{..._0x16bb28,'id':_0x40e76a});}),this['_replaceOptional'](U[_0x50979a(0x252)](_0x2d744a,_0x495dfe),(_0x27e8ba=_0x842449['resources'])==null||(_0x27e8ba=_0x27e8ba[_0x50979a(0x199)])==null?void 0x0:_0x27e8ba[_0x495dfe],_0x877607);}),_0x2eb618=Array[_0x5b7a29(0x1d5)](_0x426bf6)[_0x5b7a29(0x141)](([_0x52b00e,_0x15d37f])=>{const _0x39445e=_0x5b7a29;var _0x276410;return this[_0x39445e(0x4a8)](U['attachment'](_0x2d744a,_0x52b00e),(_0x276410=_0x842449['resources'])==null||(_0x276410=_0x276410['attachments'])==null?void 0x0:_0x276410[_0x52b00e],_0x15d37f);}),_0x3f8625=new Set(Array[_0x5b7a29(0x1d5)](_0x54a088[_0x5b7a29(0x227)]())['flat']()),_0x290ca9=new Set(Array[_0x5b7a29(0x1d5)](_0x2dd7d2)[_0x5b7a29(0x17a)](_0x445207=>{const _0xc543da=_0x5b7a29;var _0x3dcf31;return((_0x3dcf31=_0x842449[_0xc543da(0x421)])==null||(_0x3dcf31=_0x3dcf31[_0xc543da(0x199)])==null?void 0x0:_0x3dcf31[_0x445207])??[];})),_0x407d16=Array[_0x5b7a29(0x1d5)](_0x290ca9)['flatMap'](_0x324806=>{const _0x4ff9b6=_0x5b7a29;var _0x130724;let _0x2d95b9=(_0x130724=_0x842449[_0x4ff9b6(0x421)])==null||(_0x130724=_0x130724[_0x4ff9b6(0x4b9)])==null?void 0x0:_0x130724[_0x324806];return _0x2d95b9!==void 0x0&&!_0x3f8625[_0x4ff9b6(0x34b)](_0x324806)?[_0x53fdae[_0x4ff9b6(0x37b)](U[_0x4ff9b6(0x32e)](_0x2d744a,_0x324806),_0x2d95b9)]:[];});return[..._0x5abf2f,..._0x2eb618,..._0x407d16];}[_0x6c183(0x23f)](_0x3bc7b2,_0xec1ede,_0x280e95){const _0x2eee62=_0x6c183;var _0x48d2f9;let _0x59ee60=((_0x48d2f9=_0x3bc7b2['resources'])==null?void 0x0:_0x48d2f9[_0x2eee62(0x199)])??{},_0x3af791=Object[_0x2eee62(0x279)](_0x59ee60)[_0x2eee62(0x2be)](([_0x2c8602])=>_0x280e95(_0x2c8602));if(!_0x3af791[_0x2eee62(0x13c)])return[];let _0x1d622a=new Set(Object[_0x2eee62(0x279)](_0x59ee60)['filter'](([_0x4d3eea])=>!_0x280e95(_0x4d3eea))[_0x2eee62(0x17a)](([,_0x4edaf7])=>_0x4edaf7)),_0x53a186=new Set(_0x3af791[_0x2eee62(0x17a)](([,_0x47e583])=>_0x47e583));return[..._0x3af791['map'](([_0x296300,_0x479b5f])=>_0x53fdae[_0x2eee62(0x37b)](U['attachmentSet'](_0xec1ede,_0x296300),_0x479b5f)),...Array['from'](_0x53a186)['flatMap'](_0x4ca043=>{const _0x13eda3=_0x2eee62;var _0x249a16;let _0x352e02=(_0x249a16=_0x3bc7b2[_0x13eda3(0x421)])==null||(_0x249a16=_0x249a16[_0x13eda3(0x4b9)])==null?void 0x0:_0x249a16[_0x4ca043];return _0x352e02!==void 0x0&&!_0x1d622a[_0x13eda3(0x34b)](_0x4ca043)?[_0x53fdae[_0x13eda3(0x37b)](U[_0x13eda3(0x32e)](_0xec1ede,_0x4ca043),_0x352e02)]:[];})];}[_0x6c183(0x4a8)](_0x240a3e,_0x71a5cf,_0x357a1b){const _0x369b03=_0x6c183;return _0x71a5cf===void 0x0?_0x53fdae[_0x369b03(0x13f)](_0x240a3e,_0x357a1b):_0x53fdae[_0x369b03(0x180)](_0x240a3e,_0x71a5cf,_0x357a1b);}};function er(_0x1bf9e1,_0x4c551a,_0x1fe2c0,_0x36704e){const _0x464740=_0x6c183;var _0x52c4e5;let _0x422adb=_0x36704e['type'];if(_0x1fe2c0['type']!==_0x422adb||_0x422adb!==_0x3a044b[_0x464740(0x20e)]&&_0x422adb!==_0x3a044b[_0x464740(0x386)]||tr(_0x36704e[_0x464740(0x2ba)][_0x464740(0x46e)]))return{'field':_0x36704e,'patches':[]};let _0x39d6ce=nr(_0x1fe2c0),_0x386238=nr(_0x36704e);if(![..._0x39d6ce]['some'](_0x36c878=>!_0x386238[_0x464740(0x34b)](_0x36c878)))return{'field':_0x36704e,'patches':[]};let _0x54ba3b=rr(_0x36704e[_0x464740(0x15a)],_0x386238,_0x422adb),_0x1dd44b=ir(_0x54ba3b,_0x36704e[_0x464740(0x15a)])?_0x36704e:{..._0x36704e,'defaultValue':_0x54ba3b},_0x1dcd55=L(_0x1bf9e1),_0x2e7aaa=(_0x52c4e5=_0x1dcd55['colIndex'])==null?void 0x0:_0x52c4e5[_0x4c551a];return _0x2e7aaa==null?{'field':_0x1dd44b,'patches':[]}:{'field':_0x1dd44b,'patches':(_0x1dcd55[_0x464740(0x1e7)]??[])['flatMap'](_0x4bac41=>{const _0x46d576=_0x464740;var _0x107280,_0x1fc81e;let _0x18650a=(_0x107280=_0x1dcd55['rowIndex'])==null?void 0x0:_0x107280[_0x4bac41],_0x420ed7=(_0x1fc81e=_0x1dcd55['records'][_0x4bac41])==null?void 0x0:_0x1fc81e[_0x46d576(0x227)][_0x4c551a],_0x4f675a=rr(_0x420ed7,_0x386238,_0x422adb);return _0x18650a==null||ir(_0x4f675a,_0x420ed7)?[]:[{'row':_0x18650a,'col':_0x2e7aaa,'value':_0x4f675a??null}];})};}function tr(_0x2a63a2){const _0x207840=_0x6c183;return typeof _0x2a63a2==_0x207840(0x3d7)&&!!_0x2a63a2&&_0x207840(0x20b)in _0x2a63a2&&_0x2a63a2[_0x207840(0x20b)]===_0x207840(0x2d5);}function nr(_0x5d42d5){const _0x4488ec=_0x6c183;var _0x56ccf5;let _0x3878b0=Array[_0x4488ec(0x431)]((_0x56ccf5=_0x5d42d5['config'])==null?void 0x0:_0x56ccf5[_0x4488ec(0x2b3)])?_0x5d42d5[_0x4488ec(0x2ba)][_0x4488ec(0x2b3)]:[];return new Set(_0x3878b0[_0x4488ec(0x17a)](_0x42129c=>{const _0x3dc139=_0x4488ec;if(!_0x42129c||typeof _0x42129c!=_0x3dc139(0x3d7)||!('id'in _0x42129c))return[];let _0x1731a5=String(_0x42129c['id']);return _0x1731a5?[_0x1731a5]:[];}));}function rr(_0x57c406,_0x4d508f,_0x1aeb60){const _0x38a91b=_0x6c183;if(_0x57c406==null||_0x57c406==='')return _0x57c406;if(_0x1aeb60===_0x3a044b[_0x38a91b(0x20e)])return _0x4d508f[_0x38a91b(0x34b)](String(_0x57c406))?_0x57c406:null;let _0x553fc3=Array['isArray'](_0x57c406)?_0x57c406[_0x38a91b(0x141)](String):String(_0x57c406)[_0x38a91b(0x1c0)](',')[_0x38a91b(0x141)](_0x198d80=>_0x198d80['trim']())['filter'](Boolean),_0x460507=_0x553fc3[_0x38a91b(0x2be)](_0x5cb29e=>_0x4d508f[_0x38a91b(0x34b)](_0x5cb29e));return _0x460507[_0x38a91b(0x13c)]===_0x553fc3[_0x38a91b(0x13c)]?_0x57c406:Array[_0x38a91b(0x431)](_0x57c406)?_0x460507:String(_0x57c406)[_0x38a91b(0x16a)](',')?_0x460507[_0x38a91b(0x11a)](','):_0x460507[0x0]??[];}function ir(_0x28efd3,_0x35ea25){const _0x3950e5=_0x6c183;return JSON[_0x3950e5(0x25f)](_0x28efd3)===JSON[_0x3950e5(0x25f)](_0x35ea25);}function ar(_0x91a96a,_0xdb0247,_0x544c6d){const _0x380f5c=_0x6c183;var _0x66fe55,_0x3b39c2,_0xf8df09,_0x567e47;let _0x6eed5f=(_0x66fe55=_0x91a96a['rowIndex'])==null?void 0x0:_0x66fe55[_0xdb0247],_0x13cec9=(_0x3b39c2=_0x91a96a[_0x380f5c(0x390)])==null?void 0x0:_0x3b39c2[_0x544c6d];return _0x6eed5f!=null&&_0x13cec9!=null&&((_0xf8df09=_0x91a96a['rowId'])==null?void 0x0:_0xf8df09[_0x6eed5f])===_0xdb0247&&((_0x567e47=_0x91a96a[_0x380f5c(0x1fe)])==null?void 0x0:_0x567e47[_0x13cec9])===_0x544c6d&&_0x91a96a['cellData']!=null;}function or(_0x14a626,_0x54cbcb,_0xf36515){const _0x2d00e0=_0x6c183;var _0x42ecbe,_0x3318c4;return((_0x42ecbe=_0x14a626[_0x2d00e0(0x3d0)])==null?void 0x0:_0x42ecbe[_0x54cbcb])!=null&&((_0x3318c4=_0x14a626[_0x2d00e0(0x1fe)])==null?void 0x0:_0x3318c4[_0xf36515])!=null&&_0x14a626[_0x2d00e0(0x389)]!=null;}function sr(_0x5eb570,_0x20152a,_0x4d1e8d){const _0x57c392=_0x6c183;let _0x4756f4=_0x5eb570[_0x57c392(0x2be)](_0x440e05=>_0x440e05!==_0x20152a),_0x16c390=_0x4d1e8d['beforeFieldId']?_0x4756f4[_0x57c392(0x44e)](_0x4d1e8d['beforeFieldId']):_0x4d1e8d[_0x57c392(0x473)]?_0x4756f4[_0x57c392(0x44e)](_0x4d1e8d[_0x57c392(0x473)])+0x1:_0x4756f4[_0x57c392(0x13c)];return _0x4756f4[_0x57c392(0x289)](_0x16c390<0x0?_0x4756f4[_0x57c392(0x13c)]:_0x16c390,0x0,_0x20152a),_0x4756f4;}function cr(_0x149f83,_0x55495a,_0x36f3fb){const _0x592a08=_0x6c183;let _0x592934=_0x149f83[_0x592a08(0x2be)](_0x3a36c9=>_0x3a36c9!==_0x55495a);return _0x592934[_0x592a08(0x289)](ur(_0x36f3fb,_0x592934[_0x592a08(0x13c)]),0x0,_0x55495a),_0x592934;}function lr(_0x5d082f,_0x2b7f4c,_0xcab269){const _0x270daf=_0x6c183;if(Array[_0x270daf(0x431)](_0x5d082f))return _0xcab269===_0x270daf(0x31c)?_0x5d082f[_0x270daf(0x2be)](_0xa9dc11=>_0xa9dc11!==_0x2b7f4c):_0x5d082f['flatMap'](_0x5e6f4a=>{const _0x19ffb1=_0x270daf;if(_0x5e6f4a&&typeof _0x5e6f4a==_0x19ffb1(0x3d7)&&!Array[_0x19ffb1(0x431)](_0x5e6f4a)&&_0x5e6f4a[_0x19ffb1(0x2b0)]===_0x2b7f4c)return[];let _0xb53f6=lr(_0x5e6f4a,_0x2b7f4c);return _0xb53f6===void 0x0?[]:[_0xb53f6];});if(!_0x5d082f||typeof _0x5d082f!='object')return _0xcab269!=null&&_0xcab269[_0x270daf(0x35a)]('FieldId')&&_0x5d082f===_0x2b7f4c?void 0x0:_0x5d082f;let _0x18a6ab=_0x5d082f;if(_0x18a6ab['fieldId']!==_0x2b7f4c)return Object[_0x270daf(0x176)](Object[_0x270daf(0x279)](_0x18a6ab)[_0x270daf(0x17a)](([_0x51fe6d,_0xf2c025])=>{const _0x28fb05=_0x270daf;if(_0x51fe6d===_0x2b7f4c&&_0xcab269===_0x28fb05(0x48f))return[];let _0x469a49=lr(_0xf2c025,_0x2b7f4c,_0x51fe6d);return _0x469a49===void 0x0?[]:[[_0x51fe6d,_0x469a49]];}));}function ur(_0x3d41ba,_0x21a9e6){const _0x1993fb=_0x6c183;return Math[_0x1993fb(0x482)](0x0,Math[_0x1993fb(0x27a)](_0x3d41ba,_0x21a9e6));}function dr(_0x1f9ec6){'@babel/helpers - typeof';const _0x556bf4=_0x6c183;return dr=typeof Symbol==_0x556bf4(0x424)&&typeof Symbol[_0x556bf4(0x294)]==_0x556bf4(0x209)?function(_0x35284a){return typeof _0x35284a;}:function(_0x383deb){const _0x3dc619=_0x556bf4;return _0x383deb&&typeof Symbol==_0x3dc619(0x424)&&_0x383deb[_0x3dc619(0x454)]===Symbol&&_0x383deb!==Symbol[_0x3dc619(0x246)]?'symbol':typeof _0x383deb;},dr(_0x1f9ec6);}function fr(_0x4fc481,_0x91723d){const _0x3ba384=_0x6c183;if(dr(_0x4fc481)!=_0x3ba384(0x3d7)||!_0x4fc481)return _0x4fc481;var _0x34674b=_0x4fc481[Symbol[_0x3ba384(0x1d3)]];if(_0x34674b!==void 0x0){var _0x6f5fe9=_0x34674b[_0x3ba384(0x43b)](_0x4fc481,_0x91723d||_0x3ba384(0x4ac));if(dr(_0x6f5fe9)!=_0x3ba384(0x3d7))return _0x6f5fe9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x91723d===_0x3ba384(0x425)?String:Number)(_0x4fc481);}function pr(_0x4ee82d){const _0x5a64aa=_0x6c183;var _0x548ccb=fr(_0x4ee82d,_0x5a64aa(0x425));return dr(_0x548ccb)==_0x5a64aa(0x209)?_0x548ccb:_0x548ccb+'';}function G(_0x500ff5,_0x3b76c5,_0x50333a){const _0x12cdc3=_0x6c183;return(_0x3b76c5=pr(_0x3b76c5))in _0x500ff5?Object[_0x12cdc3(0x448)](_0x500ff5,_0x3b76c5,{'value':_0x50333a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x500ff5[_0x3b76c5]=_0x50333a,_0x500ff5;}const mr=_0x2e8f64(_0x6c183(0x3af));var hr=class extends _0x3b0b2d{constructor(..._0x160926){const _0x46562f=_0x6c183;super(..._0x160926),G(this,_0x46562f(0x1dd),new Map());}[_0x6c183(0x2d9)](_0x1af74c){const _0x566f06=_0x6c183;return this['_plugins'][_0x566f06(0x49e)](_0x1af74c[_0x566f06(0x20b)],_0x1af74c),_0x1827e4(()=>this[_0x566f06(0x1dd)][_0x566f06(0x2fc)](_0x1af74c[_0x566f06(0x20b)]));}['get'](_0x286974){const _0x3a5f0a=_0x6c183;let _0x24eb91=this[_0x3a5f0a(0x1dd)][_0x3a5f0a(0x43e)](_0x286974);if(!_0x24eb91)throw Error('[BaseFieldRegistryService]:\x20field\x20type\x20\x22'+_0x286974+_0x3a5f0a(0x25c));return _0x24eb91;}[_0x6c183(0x4bf)](_0xc16cbc){const _0x344e55=_0x6c183;return this[_0x344e55(0x1dd)]['get'](_0xc16cbc);}[_0x6c183(0x1db)](){const _0x29aaa5=_0x6c183;return Array[_0x29aaa5(0x1d5)](this[_0x29aaa5(0x1dd)][_0x29aaa5(0x227)]());}},gr=class{constructor(_0x206e37){const _0x249465=_0x6c183;this[_0x249465(0x393)]=_0x206e37,G(this,_0x249465(0x20b),_0x3cf49a[_0x249465(0x1cc)]),G(this,'subType',_0x1aafeb[_0x249465(0x117)]),G(this,_0x249465(0x323),_0x16215e[_0x249465(0x43a)]),G(this,'id',void 0x0),G(this,_0x249465(0x350),!0x0),this['id']=this[_0x249465(0x20b)]+'.'+this[_0x249465(0x2c1)]+'_'+_0x206e37;}},_r=class{constructor(_0x159a19){const _0x1e0d31=_0x6c183;this[_0x1e0d31(0x393)]=_0x159a19,G(this,'type',_0x3cf49a[_0x1e0d31(0x1cc)]),G(this,_0x1e0d31(0x2c1),_0x1aafeb[_0x1e0d31(0x337)]),G(this,_0x1e0d31(0x323),_0x16215e[_0x1e0d31(0x43a)]),G(this,'id',void 0x0),G(this,_0x1e0d31(0x350),!0x0),this['id']=this['type']+'.'+this[_0x1e0d31(0x2c1)]+'_'+_0x159a19;}},vr=class{constructor(_0x57afde){const _0x214c7f=_0x6c183;this[_0x214c7f(0x393)]=_0x57afde,G(this,_0x214c7f(0x20b),_0x3cf49a['Base']),G(this,_0x214c7f(0x2c1),_0x1aafeb[_0x214c7f(0x200)]),G(this,'status',_0x16215e[_0x214c7f(0x43a)]),G(this,'id',void 0x0),G(this,_0x214c7f(0x350),!0x0),this['id']=this[_0x214c7f(0x20b)]+'.'+this[_0x214c7f(0x2c1)]+'_'+_0x57afde;}},yr=class{constructor(_0x1e7ee9){const _0x58d948=_0x6c183;this[_0x58d948(0x393)]=_0x1e7ee9,G(this,'type',_0x3cf49a[_0x58d948(0x1cc)]),G(this,_0x58d948(0x2c1),_0x1aafeb['Export']),G(this,_0x58d948(0x323),_0x16215e[_0x58d948(0x43a)]),G(this,'id',void 0x0),G(this,_0x58d948(0x350),!0x0),this['id']=this[_0x58d948(0x20b)]+'.'+this[_0x58d948(0x2c1)]+'_'+_0x1e7ee9;}},br=class{constructor(_0x4f1406,_0x3576de){const _0x515c06=_0x6c183;this[_0x515c06(0x393)]=_0x4f1406,this[_0x515c06(0x365)]=_0x3576de,G(this,_0x515c06(0x20b),_0x3cf49a[_0x515c06(0x382)]),G(this,_0x515c06(0x2c1),_0x1aafeb['Edit']),G(this,_0x515c06(0x323),_0x16215e['INIT']),G(this,'id',void 0x0),G(this,_0x515c06(0x350),!0x0),this['id']=this[_0x515c06(0x20b)]+'.'+this[_0x515c06(0x2c1)]+'_'+_0x4f1406+'_'+_0x3576de;}},xr=class{constructor(_0x35f6d3,_0x390a02){const _0x32ba36=_0x6c183;this['unitId']=_0x35f6d3,this[_0x32ba36(0x365)]=_0x390a02,G(this,_0x32ba36(0x20b),_0x3cf49a[_0x32ba36(0x1f6)]),G(this,'subType',_0x1aafeb[_0x32ba36(0x200)]),G(this,_0x32ba36(0x323),_0x16215e[_0x32ba36(0x43a)]),G(this,'id',void 0x0),G(this,_0x32ba36(0x350),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x35f6d3+'_'+_0x390a02;}},Sr=class{constructor(_0x162b26,_0x7d9867){const _0x128711=_0x6c183;this[_0x128711(0x393)]=_0x162b26,this[_0x128711(0x365)]=_0x7d9867,G(this,_0x128711(0x20b),_0x3cf49a['BaseRecord']),G(this,'subType',_0x1aafeb[_0x128711(0x200)]),G(this,_0x128711(0x323),_0x16215e[_0x128711(0x43a)]),G(this,'id',void 0x0),G(this,_0x128711(0x350),!0x0),this['id']=this[_0x128711(0x20b)]+'.'+this['subType']+'_'+_0x162b26+'_'+_0x7d9867;}},Cr=class{constructor(_0x522de4,_0x275a10){const _0x448c3a=_0x6c183;this[_0x448c3a(0x393)]=_0x522de4,this['objectId']=_0x275a10,G(this,'type',_0x3cf49a['BaseTable']),G(this,_0x448c3a(0x2c1),_0x1aafeb[_0x448c3a(0x200)]),G(this,_0x448c3a(0x323),_0x16215e[_0x448c3a(0x43a)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x522de4+'_'+_0x275a10;}},wr=class{constructor(_0x3d4a88,_0x5f147c){const _0x5f5a19=_0x6c183;this['unitId']=_0x3d4a88,this[_0x5f5a19(0x365)]=_0x5f147c,G(this,_0x5f5a19(0x20b),_0x3cf49a[_0x5f5a19(0x33a)]),G(this,_0x5f5a19(0x2c1),_0x1aafeb['Edit']),G(this,'status',_0x16215e[_0x5f5a19(0x43a)]),G(this,'id',void 0x0),G(this,_0x5f5a19(0x350),!0x0),this['id']=this[_0x5f5a19(0x20b)]+'.'+this[_0x5f5a19(0x2c1)]+'_'+_0x3d4a88+'_'+_0x5f147c;}};const Tr=[_0x1aafeb[_0x6c183(0x200)],_0x1aafeb[_0x6c183(0x337)],_0x1aafeb['Export'],_0x1aafeb[_0x6c183(0x117)]],Er=new Set([_0x3cf49a['Base'],_0x3cf49a[_0x6c183(0x475)],_0x3cf49a['BaseField'],_0x3cf49a[_0x6c183(0x3c8)],_0x3cf49a[_0x6c183(0x33a)],_0x3cf49a[_0x6c183(0x382)]]),Dr=_0x6c183(0x240),Or=_0x6c183(0x310),kr=_0x6c183(0x12a),Ar='view/',jr=_0x6c183(0x2a5);function K(_0x4df66c){return''+Dr+encodeURIComponent(_0x4df66c);}function q(_0x5ddd8a,_0x181f14){return''+Or+encodeURIComponent(_0x5ddd8a)+'/'+encodeURIComponent(_0x181f14);}function J(_0x50efa0,_0x1d9a13){return''+kr+encodeURIComponent(_0x50efa0)+'/'+encodeURIComponent(_0x1d9a13);}function Mr(_0x23cd0e,_0x4b3c8c){return''+Ar+encodeURIComponent(_0x23cd0e)+'/'+encodeURIComponent(_0x4b3c8c);}function Nr(_0x159d95){return''+jr+encodeURIComponent(_0x159d95);}function Pr(_0x546d74,_0x35e39c,_0xed7c08){const _0x366cbe=_0x6c183;if(_0x35e39c===_0x546d74)switch(_0xed7c08){case _0x1aafeb[_0x366cbe(0x200)]:return new vr(_0x546d74);case _0x1aafeb[_0x366cbe(0x337)]:return new _r(_0x546d74);case _0x1aafeb[_0x366cbe(0x1c9)]:return new yr(_0x546d74);case _0x1aafeb[_0x366cbe(0x117)]:return new gr(_0x546d74);default:throw Error(_0x366cbe(0x260)+_0xed7c08);}if(_0xed7c08!==_0x1aafeb[_0x366cbe(0x200)])throw Error(_0x366cbe(0x4a7)+_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Dr))return new Cr(_0x546d74,_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Or))return new xr(_0x546d74,_0x35e39c);if(_0x35e39c['startsWith'](kr))return new Sr(_0x546d74,_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Ar))return new wr(_0x546d74,_0x35e39c);if(_0x35e39c['startsWith'](jr))return new br(_0x546d74,_0x35e39c);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x35e39c);}function Fr(_0xe5bcbc,_0x121748,_0x375d36,_0x571b00){const _0x469b12=_0x6c183;var _0x3403ca;return((_0x3403ca=_0xe5bcbc[_0x469b12(0x187)](Pr(_0x121748,_0x375d36,_0x571b00)['id']))==null?void 0x0:_0x3403ca[_0x469b12(0x350)])??!0x0;}function Ir(_0xb59e6d,_0x14ef8d,_0x5fba68,_0x491e4b,_0xb455e2){const _0x5ccd67=_0x6c183;let _0x26cd9b=Pr(_0x14ef8d,_0x5fba68,_0x491e4b);_0xb59e6d[_0x5ccd67(0x187)](_0x26cd9b['id'])||_0xb59e6d[_0x5ccd67(0x2e2)](_0x26cd9b),_0xb59e6d[_0x5ccd67(0x3fe)](_0x26cd9b['id'],_0xb455e2);}function Lr(_0x597f25,_0x13ce32,_0x4f8aa0,_0x2e569d){const _0x48ab5e=_0x6c183;_0x597f25[_0x48ab5e(0x293)](Pr(_0x13ce32,_0x4f8aa0,_0x2e569d)['id']);}function Rr(_0x129dde,_0x5beccc){const _0x44fad4=_0x6c183;_0x129dde[_0x44fad4(0x44b)]()[_0x44fad4(0x2e0)]((_0x322482,_0x4bd5e0)=>{const _0x541862=_0x44fad4;_0x322482['subscribe'](_0x5b4706=>{const _0x42d9f8=_0x2b5a;Er[_0x42d9f8(0x34b)](_0x5b4706['type'])&&'unitId'in _0x5b4706&&_0x5b4706[_0x42d9f8(0x393)]===_0x5beccc&&_0x129dde[_0x42d9f8(0x293)](_0x4bd5e0);})[_0x541862(0x49c)]();});}function zr(_0x5967f4,_0x347edc,_0x3d2bd4){const _0x3b46e2=_0x6c183;return Fr(_0x5967f4,_0x347edc,_0x347edc,_0x1aafeb['Edit'])&&Array[_0x3b46e2(0x1d5)](_0x3d2bd4)[_0x3b46e2(0x387)](_0x5808c2=>Fr(_0x5967f4,_0x347edc,_0x5808c2,_0x1aafeb[_0x3b46e2(0x200)]));}function Y(_0x428a95,_0x5ee01e){return function(_0xb7b503,_0x47e4c0){_0x5ee01e(_0xb7b503,_0x47e4c0,_0x428a95);};}function X(_0x1cbb46,_0x5a5c11,_0x263598,_0x2e59a6){const _0x56c033=_0x6c183;var _0x94113d=arguments[_0x56c033(0x13c)],_0x177929=_0x94113d<0x3?_0x5a5c11:_0x2e59a6===null?_0x2e59a6=Object[_0x56c033(0x2b1)](_0x5a5c11,_0x263598):_0x2e59a6,_0x5c74ab;if(typeof Reflect=='object'&&typeof Reflect[_0x56c033(0x468)]==_0x56c033(0x424))_0x177929=Reflect[_0x56c033(0x468)](_0x1cbb46,_0x5a5c11,_0x263598,_0x2e59a6);else{for(var _0x1c4043=_0x1cbb46[_0x56c033(0x13c)]-0x1;_0x1c4043>=0x0;_0x1c4043--)(_0x5c74ab=_0x1cbb46[_0x1c4043])&&(_0x177929=(_0x94113d<0x3?_0x5c74ab(_0x177929):_0x94113d>0x3?_0x5c74ab(_0x5a5c11,_0x263598,_0x177929):_0x5c74ab(_0x5a5c11,_0x263598))||_0x177929);}return _0x94113d>0x3&&_0x177929&&Object[_0x56c033(0x448)](_0x5a5c11,_0x263598,_0x177929),_0x177929;}const Br=_0x2e8f64(_0x6c183(0x24f));let Vr=class extends _0x3b0b2d{constructor(_0x46ef55,_0x48bd2e){const _0x781d7f=_0x6c183;super(),this[_0x781d7f(0x3ad)]=_0x46ef55,this['_instanceService']=_0x48bd2e,G(this,_0x781d7f(0x29f),new Map()),G(this,_0x781d7f(0x348),new Map()),G(this,_0x781d7f(0x1e2),new Map()),G(this,_0x781d7f(0x4aa),new Map()),G(this,_0x781d7f(0x1a6),new Map()),G(this,'_tableBaseIds',new Map()),this[_0x781d7f(0x135)](this[_0x781d7f(0x470)][_0x781d7f(0x1b5)](_0x5c5c99['UNIVER_BASE'])['subscribe'](_0x3ea0c9=>this['_clearUnit'](_0x3ea0c9[_0x781d7f(0x2ff)]())));}[_0x6c183(0x11c)](_0x1c8e98){const _0x2c85bd=_0x6c183;var _0x1374a8;return this[_0x2c85bd(0x437)](_0x1c8e98,[])&&(((_0x1374a8=this[_0x2c85bd(0x29f)]['get'](_0x1c8e98))==null?void 0x0:_0x1374a8['createTable'])??!0x0);}['canEditTable'](_0x5c75d3){return this['_canEditTable'](_0x5c75d3);}[_0x6c183(0x1b0)](_0x502838){const _0x5e292e=_0x6c183;var _0x28b624;return this[_0x5e292e(0x1f4)](_0x502838)&&(((_0x28b624=this['_tablePermissions'][_0x5e292e(0x43e)](_0x502838))==null?void 0x0:_0x28b624[_0x5e292e(0x2fc)])??!0x0);}['canCreateField'](_0x2243aa){const _0x1e9078=_0x6c183;var _0x1b6873;return this[_0x1e9078(0x1f4)](_0x2243aa)&&(((_0x1b6873=this[_0x1e9078(0x348)][_0x1e9078(0x43e)](_0x2243aa))==null?void 0x0:_0x1b6873[_0x1e9078(0x250)])??!0x0);}[_0x6c183(0x42c)](_0x5650f9,_0x58b4c4){const _0x568014=_0x6c183;var _0x3a548f;return this[_0x568014(0x1f4)](_0x5650f9)&&this[_0x568014(0x437)](_0x5650f9,[q(_0x5650f9,_0x58b4c4)])&&(((_0x3a548f=this[_0x568014(0x1e2)]['get'](Ur(_0x5650f9,_0x58b4c4)))==null?void 0x0:_0x3a548f[_0x568014(0x19b)])??!0x0);}[_0x6c183(0x222)](_0x563a15,_0x4b2ea2){const _0x4bfff8=_0x6c183;var _0x177d26;return this[_0x4bfff8(0x42c)](_0x563a15,_0x4b2ea2)&&(((_0x177d26=this[_0x4bfff8(0x1e2)]['get'](Ur(_0x563a15,_0x4b2ea2)))==null?void 0x0:_0x177d26[_0x4bfff8(0x2fc)])??!0x0);}[_0x6c183(0x321)](_0x21e6d2){const _0x423991=_0x6c183;var _0x2d96d4;return this[_0x423991(0x1f4)](_0x21e6d2)&&(((_0x2d96d4=this[_0x423991(0x348)][_0x423991(0x43e)](_0x21e6d2))==null?void 0x0:_0x2d96d4[_0x423991(0x134)])??!0x0);}[_0x6c183(0x46a)](_0x1b2a13,_0x38e3d5){const _0x1bc42d=_0x6c183;var _0x2a0a3e;let _0x1d6a99=this[_0x1bc42d(0x4aa)][_0x1bc42d(0x43e)](Wr(_0x1b2a13,_0x38e3d5));return this[_0x1bc42d(0x437)](_0x1b2a13,[K(_0x1b2a13),J(_0x1b2a13,_0x38e3d5)])&&(((_0x2a0a3e=this['_tablePermissions'][_0x1bc42d(0x43e)](_0x1b2a13))==null?void 0x0:_0x2a0a3e[_0x1bc42d(0x19b)])??!0x0)&&((_0x1d6a99==null?void 0x0:_0x1d6a99['edit'])??!0x0)&&((_0x1d6a99==null?void 0x0:_0x1d6a99[_0x1bc42d(0x367)])??!0x0);}['canDeleteRecord'](_0x1de9b6,_0x7e1781){const _0x140078=_0x6c183;var _0x5e62cd,_0x2ee4b2,_0x56cfc4;return this['_canEdit'](_0x1de9b6,[K(_0x1de9b6),J(_0x1de9b6,_0x7e1781)])&&(((_0x5e62cd=this[_0x140078(0x348)][_0x140078(0x43e)](_0x1de9b6))==null?void 0x0:_0x5e62cd['edit'])??!0x0)&&(((_0x2ee4b2=this[_0x140078(0x4aa)]['get'](Wr(_0x1de9b6,_0x7e1781)))==null?void 0x0:_0x2ee4b2[_0x140078(0x19b)])??!0x0)&&(((_0x56cfc4=this['_recordPermissions'][_0x140078(0x43e)](Wr(_0x1de9b6,_0x7e1781)))==null?void 0x0:_0x56cfc4[_0x140078(0x2fc)])??!0x0);}['canEditCell'](_0x48edab,_0x3556cf,_0x4e26b4){const _0x1541ea=_0x6c183;var _0x3300c6,_0x200cd6,_0x5f3d3b;let _0x5a3415=this[_0x1541ea(0x1e2)][_0x1541ea(0x43e)](Ur(_0x48edab,_0x4e26b4));return this['_canEdit'](_0x48edab,[K(_0x48edab),q(_0x48edab,_0x4e26b4),J(_0x48edab,_0x3556cf)])&&(((_0x3300c6=this[_0x1541ea(0x348)]['get'](_0x48edab))==null?void 0x0:_0x3300c6[_0x1541ea(0x19b)])??!0x0)&&(((_0x200cd6=this['_recordPermissions'][_0x1541ea(0x43e)](Wr(_0x48edab,_0x3556cf)))==null?void 0x0:_0x200cd6[_0x1541ea(0x19b)])??!0x0)&&(((_0x5f3d3b=this[_0x1541ea(0x4aa)][_0x1541ea(0x43e)](Wr(_0x48edab,_0x3556cf)))==null?void 0x0:_0x5f3d3b['editCell'])??!0x0)&&((_0x5a3415==null?void 0x0:_0x5a3415['edit'])??!0x0)&&((_0x5a3415==null?void 0x0:_0x5a3415[_0x1541ea(0x367)])??!0x0);}[_0x6c183(0x3d2)](_0x332858,_0x2f800d){const _0x1cc067=_0x6c183;var _0x1126b3,_0x37c36c,_0x4e9148;return this[_0x1cc067(0x437)](_0x332858,[K(_0x332858),Mr(_0x332858,_0x2f800d)])&&(((_0x1126b3=this['_tablePermissions'][_0x1cc067(0x43e)](_0x332858))==null?void 0x0:_0x1126b3[_0x1cc067(0x19b)])??!0x0)&&(((_0x37c36c=this['_viewPermissions'][_0x1cc067(0x43e)](Gr(_0x332858,_0x2f800d)))==null?void 0x0:_0x37c36c['edit'])??!0x0)&&(((_0x4e9148=this[_0x1cc067(0x348)][_0x1cc067(0x43e)](_0x332858))==null?void 0x0:_0x4e9148[_0x1cc067(0x30c)])??!0x0);}[_0x6c183(0x38a)](_0x4522e3,_0x446f23){const _0x366325=_0x6c183;this[_0x366325(0x29f)][_0x366325(0x49e)](_0x4522e3,{...this[_0x366325(0x29f)]['get'](_0x4522e3),..._0x446f23}),_0x446f23[_0x366325(0x19b)]!==void 0x0&&Ir(this[_0x366325(0x3ad)],_0x4522e3,_0x4522e3,_0x1aafeb['Edit'],_0x446f23['edit']);}[_0x6c183(0x3a1)](_0xa39520,_0x286a6a){const _0x99db4d=_0x6c183;this['_rememberTable'](_0xa39520),this[_0x99db4d(0x348)][_0x99db4d(0x49e)](_0xa39520,{...this['_tablePermissions'][_0x99db4d(0x43e)](_0xa39520),..._0x286a6a}),this[_0x99db4d(0x151)](_0xa39520,K(_0xa39520),_0x286a6a['edit']);}[_0x6c183(0x39e)](_0x32abcb,_0x1f292f,_0x50d0e0){const _0x4f6878=_0x6c183;this[_0x4f6878(0x2bb)](_0x32abcb);let _0x2c9ff9=Ur(_0x32abcb,_0x1f292f);this[_0x4f6878(0x1e2)][_0x4f6878(0x49e)](_0x2c9ff9,{...this[_0x4f6878(0x1e2)][_0x4f6878(0x43e)](_0x2c9ff9),..._0x50d0e0}),this[_0x4f6878(0x151)](_0x32abcb,q(_0x32abcb,_0x1f292f),_0x50d0e0[_0x4f6878(0x19b)]);}[_0x6c183(0x317)](_0xa08bca,_0x496022,_0x42a035){const _0x4aee32=_0x6c183;this[_0x4aee32(0x2bb)](_0xa08bca);let _0x30c312=Wr(_0xa08bca,_0x496022);this['_recordPermissions'][_0x4aee32(0x49e)](_0x30c312,{...this[_0x4aee32(0x4aa)]['get'](_0x30c312),..._0x42a035}),this[_0x4aee32(0x151)](_0xa08bca,J(_0xa08bca,_0x496022),_0x42a035[_0x4aee32(0x19b)]);}[_0x6c183(0x360)](_0x3c1d52,_0x48b274,_0x115eec){const _0x38e416=_0x6c183;this['_rememberTable'](_0x3c1d52);let _0x13ea84=Gr(_0x3c1d52,_0x48b274);this[_0x38e416(0x1a6)]['set'](_0x13ea84,{...this['_viewPermissions'][_0x38e416(0x43e)](_0x13ea84),..._0x115eec}),this[_0x38e416(0x151)](_0x3c1d52,Mr(_0x3c1d52,_0x48b274),_0x115eec[_0x38e416(0x19b)]);}[_0x6c183(0x41b)](_0x3f2892){const _0xbd203e=_0x6c183;this[_0xbd203e(0x29f)]['delete'](_0x3f2892),Lr(this[_0xbd203e(0x3ad)],_0x3f2892,_0x3f2892,_0x1aafeb[_0xbd203e(0x200)]);}[_0x6c183(0x211)](_0x1c207b){const _0x449a32=_0x6c183;this[_0x449a32(0x348)][_0x449a32(0x2fc)](_0x1c207b),this[_0x449a32(0x46b)](_0x1c207b,K(_0x1c207b));}[_0x6c183(0x38d)](_0x1d3e1b,_0x1ea8b1){const _0x517281=_0x6c183;this[_0x517281(0x1e2)][_0x517281(0x2fc)](Ur(_0x1d3e1b,_0x1ea8b1)),this[_0x517281(0x46b)](_0x1d3e1b,q(_0x1d3e1b,_0x1ea8b1));}[_0x6c183(0x2e8)](_0x59b54d,_0x2e28e6){const _0x433437=_0x6c183;this['_recordPermissions'][_0x433437(0x2fc)](Wr(_0x59b54d,_0x2e28e6)),this['_clearObjectEdit'](_0x59b54d,J(_0x59b54d,_0x2e28e6));}[_0x6c183(0x49f)](_0x5c6879,_0x40e79b){const _0xd8bcc=_0x6c183;this[_0xd8bcc(0x1a6)][_0xd8bcc(0x2fc)](Gr(_0x5c6879,_0x40e79b)),this[_0xd8bcc(0x46b)](_0x5c6879,Mr(_0x5c6879,_0x40e79b));}['getSnapshot'](){const _0x54e50d=_0x6c183;return{'bases':Object[_0x54e50d(0x176)](this[_0x54e50d(0x29f)]),'tables':Object[_0x54e50d(0x176)](this['_tablePermissions']),'fields':Object[_0x54e50d(0x176)](this[_0x54e50d(0x1e2)]),'records':Object['fromEntries'](this[_0x54e50d(0x4aa)]),'views':Object['fromEntries'](this[_0x54e50d(0x1a6)])};}[_0x6c183(0x1f4)](_0x5a714a){const _0x4b469f=_0x6c183;var _0x453269;return this[_0x4b469f(0x437)](_0x5a714a,[K(_0x5a714a)])&&(((_0x453269=this[_0x4b469f(0x348)][_0x4b469f(0x43e)](_0x5a714a))==null?void 0x0:_0x453269[_0x4b469f(0x19b)])??!0x0);}[_0x6c183(0x437)](_0x1e7628,_0x4bcd88){const _0x493fec=_0x6c183;var _0x53bd47;let _0x241cf7=this[_0x493fec(0x379)](_0x1e7628);return!_0x241cf7||zr(this[_0x493fec(0x3ad)],_0x241cf7,_0x4bcd88)&&(((_0x53bd47=this[_0x493fec(0x29f)][_0x493fec(0x43e)](_0x241cf7))==null?void 0x0:_0x53bd47[_0x493fec(0x19b)])??!0x0);}[_0x6c183(0x151)](_0x51af38,_0x4c69dd,_0x4dae24){const _0x3bfdf5=_0x6c183;if(_0x4dae24===void 0x0)return;let _0x3f87c8=this[_0x3bfdf5(0x379)](_0x51af38);_0x3f87c8&&Ir(this[_0x3bfdf5(0x3ad)],_0x3f87c8,_0x4c69dd,_0x1aafeb[_0x3bfdf5(0x200)],_0x4dae24);}[_0x6c183(0x46b)](_0x543cb5,_0x9c1da3){const _0x2594eb=_0x6c183;let _0x50e893=this[_0x2594eb(0x379)](_0x543cb5);_0x50e893&&Lr(this['_permissionService'],_0x50e893,_0x9c1da3,_0x1aafeb[_0x2594eb(0x200)]);}['_resolveBaseId'](_0x392f31){const _0x57bb63=_0x6c183;var _0x412c20;let _0x17c8f1=this[_0x57bb63(0x470)]['getUnit'](_0x392f31,_0x5c5c99[_0x57bb63(0x36b)]);return _0x17c8f1?_0x17c8f1[_0x57bb63(0x2ff)]():(_0x412c20=this[_0x57bb63(0x470)]['getAllUnitsForType'](_0x5c5c99[_0x57bb63(0x36b)])[_0x57bb63(0x392)](_0x2da3af=>!!_0x2da3af[_0x57bb63(0x32f)]()[_0x57bb63(0x298)][_0x392f31]))==null?void 0x0:_0x412c20[_0x57bb63(0x2ff)]();}[_0x6c183(0x2bb)](_0x14a418){const _0x3062c5=_0x6c183;let _0x861c1c=this[_0x3062c5(0x379)](_0x14a418);_0x861c1c&&this[_0x3062c5(0x4b0)][_0x3062c5(0x49e)](_0x14a418,_0x861c1c);}[_0x6c183(0x1dc)](_0x2cf1fd){const _0x349767=_0x6c183;this['_basePermissions']['delete'](_0x2cf1fd),this[_0x349767(0x4b0)][_0x349767(0x2e0)]((_0x567939,_0x4d26f2)=>{const _0x38a65a=_0x349767;_0x567939===_0x2cf1fd&&(this['_tablePermissions']['delete'](_0x4d26f2),Hr(this[_0x38a65a(0x1e2)],_0x4d26f2+'\x1f'),Hr(this[_0x38a65a(0x4aa)],_0x4d26f2+'\x1f'),Hr(this[_0x38a65a(0x1a6)],_0x4d26f2+'\x1f'),this[_0x38a65a(0x4b0)][_0x38a65a(0x2fc)](_0x4d26f2));});}};Vr=X([Y(0x0,_0x41b15f),Y(0x1,_0x24efe9)],Vr);function Hr(_0x4737a0,_0xc5004b){const _0x5df299=_0x6c183;_0x4737a0[_0x5df299(0x2e0)]((_0x3f35ea,_0x181bed)=>{const _0x427908=_0x5df299;_0x181bed[_0x427908(0x1fb)](_0xc5004b)&&_0x4737a0[_0x427908(0x2fc)](_0x181bed);});}function Ur(_0x2d8fd2,_0x526ff9){return _0x2d8fd2+'\x1f'+_0x526ff9;}function Wr(_0xd4183b,_0x1e41a1){return _0xd4183b+'\x1f'+_0x1e41a1;}function Gr(_0x3a8a63,_0x2b8c5b){return _0x3a8a63+'\x1f'+_0x2b8c5b;}const Kr=_0x2e8f64(_0x6c183(0x232));let qr=class{constructor(_0x484976,_0x5e3e76=Jr(),_0x2e8a2f={}){const _0x16d0e4=_0x6c183;this['_permissionService']=_0x484976,this[_0x16d0e4(0x287)]=_0x5e3e76,this[_0x16d0e4(0x2d3)]=_0x2e8a2f,G(this,_0x16d0e4(0x4b8),new W()),G(this,_0x16d0e4(0x37c),new z());}[_0x6c183(0x1b3)](_0xb2d68b,_0x35ac39,_0x3977ff){const _0x3db15c=_0x6c183;if(!this[_0x3db15c(0x3ad)][_0x3db15c(0x11c)](_0xb2d68b[_0x3db15c(0x2ff)]()))throw Error(_0x3db15c(0x459));_0x37d535(_0x35ac39),this['_apply'](_0xb2d68b,this[_0x3db15c(0x4b8)]['createTable'](_0xb2d68b[_0x3db15c(0x32f)](),_0x35ac39,_0x3977ff));}['renameTable'](_0x3d72cd,_0x600218,_0xe873c2){const _0x2e5ccd=_0x6c183;if(!this[_0x2e5ccd(0x3ad)]['canEditTable'](_0x600218))throw Error(_0x2e5ccd(0x256));this[_0x2e5ccd(0x219)](_0x3d72cd,this[_0x2e5ccd(0x4b8)][_0x2e5ccd(0x17d)](_0x3d72cd[_0x2e5ccd(0x32f)](),_0x600218,_0xe873c2));}[_0x6c183(0x283)](_0x3ee986,_0x1316db){const _0x2f6ad2=_0x6c183;if(!this['_permissionService'][_0x2f6ad2(0x1b0)](_0x1316db))throw Error(_0x2f6ad2(0x1a3));let _0x599b25=He(_0x3ee986[_0x2f6ad2(0x32f)](),_0x1316db);if(_0x599b25[_0x2f6ad2(0x13c)]>0x0)throw Error(_0x2f6ad2(0x408)+_0x599b25[_0x2f6ad2(0x141)](_0x5ba3c1=>_0x5ba3c1['tableId']+'.'+_0x5ba3c1['fieldId'])['join'](',\x20')+').');this[_0x2f6ad2(0x219)](_0x3ee986,this['_factory'][_0x2f6ad2(0x283)](_0x3ee986[_0x2f6ad2(0x32f)](),_0x1316db));}[_0x6c183(0x20d)](_0x53822f,_0x386f7e,_0x88d4bc,_0x37daff,_0x23d95c){const _0x51d6d7=_0x6c183;this['_apply'](_0x53822f,this[_0x51d6d7(0x357)](_0x53822f,_0x386f7e,_0x88d4bc,_0x37daff,_0x23d95c));}['setRecordValues'](_0x5ae247,_0x364500,_0x314aaf){const _0x3a9ea1=_0x6c183;this[_0x3a9ea1(0x219)](_0x5ae247,this[_0x3a9ea1(0x483)](_0x5ae247,_0x364500,_0x314aaf));}['createRecord'](_0x26d75a,_0x9f284d,_0x123c39){const _0x305840=_0x6c183;this[_0x305840(0x219)](_0x26d75a,this[_0x305840(0x467)](_0x26d75a,_0x9f284d,_0x123c39));}[_0x6c183(0x357)](_0x38ac95,_0x3594d7,_0x3e67c2,_0x5bd0b8,_0x2665a9){const _0xe8fa0c=_0x6c183;let _0x51cebb=_0x38ac95[_0xe8fa0c(0x32f)](),_0x458450=this[_0xe8fa0c(0x46c)](_0x51cebb,_0x3594d7,_0x3e67c2,_0x5bd0b8,_0x2665a9),_0x2e2a64=this['_withModifiedSystemValues'](_0x51cebb,_0x3594d7,_0x3e67c2,{[_0x5bd0b8]:_0x458450});return this['_factory'][_0xe8fa0c(0x3a6)](_0x51cebb,_0x3594d7,[_0x2e2a64]);}['createSetRecordValuesOp'](_0x5db2e9,_0x56523b,_0x309bec){const _0x5baf74=_0x6c183;let _0x51edd6=_0x5db2e9['getSnapshot'](),_0x49fc00=_0x309bec[_0x5baf74(0x141)](_0x2ff194=>this[_0x5baf74(0x157)](_0x51edd6,_0x56523b,_0x2ff194[_0x5baf74(0x347)],{...Object['fromEntries'](Object[_0x5baf74(0x279)](_0x2ff194[_0x5baf74(0x227)])[_0x5baf74(0x141)](([_0x332b38,_0x658f49])=>[_0x332b38,this[_0x5baf74(0x46c)](_0x51edd6,_0x56523b,_0x2ff194['recordId'],_0x332b38,_0x658f49)]))}));return this[_0x5baf74(0x4b8)][_0x5baf74(0x3a6)](_0x51edd6,_0x56523b,_0x49fc00);}['createCreateRecordOp'](_0x547e32,_0x481b00,_0x12acec){const _0x67f7b3=_0x6c183;if(!this['_permissionService'][_0x67f7b3(0x321)](_0x481b00))throw Error(_0x67f7b3(0x380));let _0x4e7d91=_0x547e32['getSnapshot'](),_0x36e262=this[_0x67f7b3(0x476)](_0x4e7d91[_0x67f7b3(0x298)][_0x481b00]);return this[_0x67f7b3(0x4b8)][_0x67f7b3(0x134)](_0x4e7d91,_0x481b00,this[_0x67f7b3(0x28b)](_0x4e7d91,_0x481b00,_0x12acec,_0x36e262));}[_0x6c183(0x3ec)](_0x4a9353,_0xa97848,_0x2e75fd){const _0x4f7f03=_0x6c183;if(!this['_permissionService'][_0x4f7f03(0x321)](_0xa97848))throw Error(_0x4f7f03(0x380));let _0x36e5cb=_0x4a9353['getSnapshot']();return I(_0x4f7f03(0x136),()=>{const _0x9bc0b2=_0x4f7f03;let _0x5191dc=this['_createNumberingAllocators'](_0x36e5cb['tables'][_0xa97848]);return this[_0x9bc0b2(0x4b8)]['createRecords'](_0x36e5cb,_0xa97848,_0x2e75fd[_0x9bc0b2(0x141)](_0x1420fe=>this[_0x9bc0b2(0x28b)](_0x36e5cb,_0xa97848,_0x1420fe,_0x5191dc)));},{'existingRecords':Object['keys'](_0x36e5cb['tables'][_0xa97848][_0x4f7f03(0x258)])[_0x4f7f03(0x13c)],'records':_0x2e75fd[_0x4f7f03(0x13c)]});}[_0x6c183(0x4b7)](_0x993ee6,_0x198101,_0x28dbaa,_0x3b8bb0,_0x29c464){const _0x45e083=_0x6c183;if(!this[_0x45e083(0x3ad)][_0x45e083(0x40b)](_0x198101))throw Error('[BaseCommandService]:\x20cannot\x20create\x20field.');let _0x41d926=_0x993ee6[_0x45e083(0x32f)]();if(this[_0x45e083(0x3c4)](_0x41d926,_0x28dbaa),_0x3b8bb0===0x0)throw Error(_0x45e083(0x242));let _0x50ee01=this['_factory'][_0x45e083(0x250)](_0x41d926,_0x198101,{'field':_0x28dbaa,'index':_0x3b8bb0,'viewIndexes':_0x29c464}),_0x3949d0=this['_createSystemFieldValuePatches'](_0x41d926,_0x198101,_0x28dbaa);if(!_0x3949d0[_0x45e083(0x13c)])return _0x50ee01;let _0x42473c=this[_0x45e083(0x37c)][_0x45e083(0x4c3)](_0x41d926,_0x50ee01);return R([_0x50ee01,this[_0x45e083(0x4b8)]['setRecordValues'](_0x42473c,_0x198101,_0x3949d0)]);}[_0x6c183(0x465)](_0x40b5b5,_0x53689a,_0xa33012){const _0x29ba38=_0x6c183;if(!this[_0x29ba38(0x3ad)][_0x29ba38(0x48b)](_0x53689a,_0xa33012))throw Error(_0x29ba38(0x203));this[_0x29ba38(0x219)](_0x40b5b5,this['_factory'][_0x29ba38(0x465)](_0x40b5b5[_0x29ba38(0x32f)](),_0x53689a,_0xa33012));}[_0x6c183(0x121)](_0x4f44bf,_0x1f02ee,_0x2cd70e,_0x3b0652){const _0x25c532=_0x6c183;if(!this['_permissionService']['canCreateRecord'](_0x1f02ee))throw Error(_0x25c532(0x380));this['_apply'](_0x4f44bf,this[_0x25c532(0x4b8)][_0x25c532(0x121)](_0x4f44bf[_0x25c532(0x32f)](),_0x1f02ee,_0x2cd70e,{..._0x3b0652,'values':{..._0x3b0652[_0x25c532(0x227)],[_0x5a35e2]:_0x3b0652['id']}}));}[_0x6c183(0x313)](_0x174459,_0x232ab0,_0x5d67a1,_0x561e46){const _0x1e2eda=_0x6c183;if(!this[_0x1e2eda(0x3ad)][_0x1e2eda(0x46a)](_0x232ab0,_0x5d67a1))throw Error(_0x1e2eda(0x189));this[_0x1e2eda(0x219)](_0x174459,this[_0x1e2eda(0x4b8)][_0x1e2eda(0x313)](_0x174459[_0x1e2eda(0x32f)](),_0x232ab0,_0x5d67a1,_0x561e46));}['createField'](_0x4900bb,_0x70ccb8,_0xacc2eb,_0x367068,_0xb85634){const _0x3c9c2b=_0x6c183;this['_apply'](_0x4900bb,this[_0x3c9c2b(0x4b7)](_0x4900bb,_0x70ccb8,_0xacc2eb,_0x367068,_0xb85634));}[_0x6c183(0x13b)](_0x4d6deb,_0x9e8bf8,_0x4e9ac0,_0x3c64a3){const _0x5bcff0=_0x6c183;var _0x4bfc56;if(!this['_permissionService'][_0x5bcff0(0x42c)](_0x9e8bf8,_0x4e9ac0))throw Error(_0x5bcff0(0x36d));let _0x329a1f=_0x4d6deb[_0x5bcff0(0x32f)](),_0x15fa55=(_0x4bfc56=_0x329a1f[_0x5bcff0(0x298)][_0x9e8bf8])==null?void 0x0:_0x4bfc56[_0x5bcff0(0x398)][_0x4e9ac0];if(!_0x15fa55||_0x4e9ac0===_0x5a35e2)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0x5bcff0(0x3c4)](_0x329a1f,{..._0x15fa55,..._0x3c64a3}),this['_apply'](_0x4d6deb,this[_0x5bcff0(0x4b8)][_0x5bcff0(0x13b)](_0x329a1f,_0x9e8bf8,_0x4e9ac0,_0x3c64a3));}[_0x6c183(0x3e5)](_0x1fc326,_0x47a379,_0x2d944d,_0x55146c){const _0x216cb2=_0x6c183;var _0x462e79;if(!this[_0x216cb2(0x3ad)][_0x216cb2(0x42c)](_0x47a379,_0x2d944d))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x387688=_0x1fc326[_0x216cb2(0x32f)](),_0x30e289=(_0x462e79=_0x387688[_0x216cb2(0x298)][_0x47a379])==null?void 0x0:_0x462e79[_0x216cb2(0x398)][_0x2d944d];if(!_0x30e289||_0x2d944d===_0x5a35e2)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x216cb2(0x3c4)](_0x387688,{..._0x30e289,..._0x55146c}),this[_0x216cb2(0x219)](_0x1fc326,this[_0x216cb2(0x4b8)]['changeFieldType'](_0x387688,_0x47a379,_0x2d944d,_0x55146c));}[_0x6c183(0x2fb)](_0x22f112,_0x529b52,_0xe9978a){const _0x27875b=_0x6c183;var _0x15496e;if(((_0x15496e=_0x22f112['getSnapshot']()[_0x27875b(0x298)][_0x529b52])==null?void 0x0:_0x15496e[_0x27875b(0x3b2)])===_0xe9978a||_0xe9978a===_0x5a35e2)throw Error(_0x27875b(0x47d));if(!this['_permissionService'][_0x27875b(0x222)](_0x529b52,_0xe9978a))throw Error(_0x27875b(0x326));this[_0x27875b(0x219)](_0x22f112,this['_factory']['deleteField'](_0x22f112['getSnapshot'](),_0x529b52,_0xe9978a));}[_0x6c183(0x344)](_0x116560,_0x362ecd,_0x11e8c0,_0x3ed191){const _0x18e48f=_0x6c183;if(!this[_0x18e48f(0x3ad)]['canEditField'](_0x362ecd,_0x11e8c0))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x11e8c0===_0x5a35e2||_0x3ed191[_0x18e48f(0x33d)]===_0x5a35e2)throw Error(_0x18e48f(0x3df));this[_0x18e48f(0x219)](_0x116560,this[_0x18e48f(0x4b8)][_0x18e48f(0x344)](_0x116560[_0x18e48f(0x32f)](),_0x362ecd,_0x11e8c0,_0x3ed191));}[_0x6c183(0x2d7)](_0x4b3f94,_0x212c25,_0x2cdee0,_0x5c214e){const _0xbd898e=_0x6c183;if(!this[_0xbd898e(0x3ad)][_0xbd898e(0x3d2)](_0x212c25,_0x2cdee0['id']))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0xbd898e(0x219)](_0x4b3f94,this[_0xbd898e(0x4b8)][_0xbd898e(0x2d7)](_0x4b3f94[_0xbd898e(0x32f)](),_0x212c25,_0x2cdee0,_0x5c214e));}[_0x6c183(0x15f)](_0x42e872,_0x113eac,_0x1eb9ed,_0x4b7258){const _0x2c883b=_0x6c183;if(!this['_permissionService'][_0x2c883b(0x3d2)](_0x113eac,_0x1eb9ed))throw Error(_0x2c883b(0x3dd));this[_0x2c883b(0x219)](_0x42e872,this[_0x2c883b(0x4b8)][_0x2c883b(0x15f)](_0x42e872['getSnapshot'](),_0x113eac,_0x1eb9ed,_0x4b7258));}['deleteView'](_0x21aca3,_0x15f760,_0x7bfb63){const _0x1e1b3b=_0x6c183;if(!this['_permissionService']['canManageView'](_0x15f760,_0x7bfb63))throw Error(_0x1e1b3b(0x3dd));this[_0x1e1b3b(0x219)](_0x21aca3,this['_factory'][_0x1e1b3b(0x3f9)](_0x21aca3[_0x1e1b3b(0x32f)](),_0x15f760,_0x7bfb63));}[_0x6c183(0x308)](_0x23620f,_0xa0041e,_0x668f54,_0x4d7837){const _0x5632b9=_0x6c183;if(!this['_permissionService'][_0x5632b9(0x3d2)](_0xa0041e,_0x668f54))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5632b9(0x219)](_0x23620f,this[_0x5632b9(0x4b8)][_0x5632b9(0x308)](_0x23620f[_0x5632b9(0x32f)](),_0xa0041e,_0x668f54,_0x4d7837));}[_0x6c183(0x2cf)](_0x305860,_0x4d4b78,_0x5cb4fb,_0x2fd56a){const _0x5c7e69=_0x6c183;if(!this[_0x5c7e69(0x3ad)]['canManageView'](_0x4d4b78,_0x5cb4fb))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5c7e69(0x219)](_0x305860,this[_0x5c7e69(0x4b8)][_0x5c7e69(0x2cf)](_0x305860[_0x5c7e69(0x32f)](),_0x4d4b78,_0x5cb4fb,_0x2fd56a));}[_0x6c183(0x16e)](_0x21fd9a,_0x3c68e6,_0x2c7b8f,_0x98ef70){const _0x2629ea=_0x6c183;if(!this[_0x2629ea(0x3ad)]['canManageView'](_0x3c68e6,_0x2c7b8f))throw Error(_0x2629ea(0x3dd));this[_0x2629ea(0x219)](_0x21fd9a,this['_factory'][_0x2629ea(0x16e)](_0x21fd9a[_0x2629ea(0x32f)](),_0x3c68e6,_0x2c7b8f,_0x98ef70));}[_0x6c183(0x23d)](_0x7dd152,_0xb0ffe3,_0x2649e5,_0x4aa382){const _0x200caa=_0x6c183;if(!this[_0x200caa(0x3ad)][_0x200caa(0x3d2)](_0xb0ffe3,_0x2649e5))throw Error(_0x200caa(0x3dd));this[_0x200caa(0x219)](_0x7dd152,this['_factory'][_0x200caa(0x23d)](_0x7dd152[_0x200caa(0x32f)](),_0xb0ffe3,_0x2649e5,_0x4aa382));}[_0x6c183(0x417)](_0x1ced79,_0x1eddbc,_0x2d332c,_0x5ec751){const _0x194989=_0x6c183;if(!this['_permissionService'][_0x194989(0x3d2)](_0x1eddbc,_0x2d332c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x194989(0x219)](_0x1ced79,this[_0x194989(0x4b8)][_0x194989(0x417)](_0x1ced79['getSnapshot'](),_0x1eddbc,_0x2d332c,_0x5ec751));}[_0x6c183(0x18c)](_0x947a4c,_0x38cd59,_0x468f2f,_0x2e3324,_0xd7af66){const _0x30815f=_0x6c183;if(!this['_permissionService'][_0x30815f(0x3d2)](_0x38cd59,_0x468f2f))throw Error(_0x30815f(0x3dd));this['_apply'](_0x947a4c,this['_factory'][_0x30815f(0x18c)](_0x947a4c[_0x30815f(0x32f)](),_0x38cd59,_0x468f2f,_0x2e3324,_0xd7af66));}[_0x6c183(0x15e)](_0x183c4d,_0x734d86,_0x11da5a,_0x5bd4b9,_0x528892){const _0x473afb=_0x6c183;if(!this[_0x473afb(0x3ad)][_0x473afb(0x3d2)](_0x734d86,_0x11da5a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x473afb(0x219)](_0x183c4d,this['_factory']['setViewFieldWidth'](_0x183c4d['getSnapshot'](),_0x734d86,_0x11da5a,_0x5bd4b9,_0x528892));}[_0x6c183(0x22a)](_0x6985f,_0x4ad678,_0x5c3d02,_0x5c85e6,_0x5bf347){const _0x568d0d=_0x6c183;if(!this[_0x568d0d(0x3ad)][_0x568d0d(0x3d2)](_0x4ad678,_0x5c3d02))throw Error(_0x568d0d(0x3dd));this[_0x568d0d(0x219)](_0x6985f,this['_factory'][_0x568d0d(0x22a)](_0x6985f[_0x568d0d(0x32f)](),_0x4ad678,_0x5c3d02,_0x5c85e6,_0x5bf347));}['_apply'](_0x416321,_0xdd84f0){const _0x233008=_0x6c183;let _0x15532e=_0x416321['getSnapshot']();_0x416321[_0x233008(0x2ab)](this['_applier'][_0x233008(0x4c3)](_0x15532e,_0xdd84f0));}[_0x6c183(0x28b)](_0x557be5,_0x391119,_0x12cf4c,_0x18de9a=this[_0x6c183(0x476)](_0x557be5[_0x6c183(0x298)][_0x391119])){const _0x34d246=_0x6c183;let _0x3325b8=_0x557be5['tables'][_0x391119],_0x177a8e=_0x12cf4c[_0x34d246(0x329)]??_0x12cf4c[_0x34d246(0x1e6)]??this[_0x34d246(0x25e)](),_0xdcd66d={..._0x12cf4c,'createdBy':_0x12cf4c[_0x34d246(0x329)]??_0x177a8e,'updatedBy':_0x12cf4c[_0x34d246(0x1e6)]??_0x177a8e,'values':{..._0x12cf4c[_0x34d246(0x227)]}};return _0xdcd66d[_0x34d246(0x227)][_0x5a35e2]=_0xdcd66d['id'],_0x3325b8[_0x34d246(0x3b5)][_0x34d246(0x2e0)](_0x10fbaa=>{const _0x317972=_0x34d246;let _0x59d393=_0x3325b8[_0x317972(0x398)][_0x10fbaa];if(_0x59d393&&_0xdcd66d['values'][_0x10fbaa]===void 0x0)switch(_0x59d393['type']){case _0x3a044b[_0x317972(0x284)]:var _0x27f8de;_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=((_0x27f8de=_0x18de9a[_0x317972(0x43e)](_0x10fbaa))==null?void 0x0:_0x27f8de())??this['_createNumberingAllocator'](_0x3325b8,_0x10fbaa)();break;case _0x3a044b[_0x317972(0x28d)]:_0xdcd66d['createdBy']&&(_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=_0xdcd66d[_0x317972(0x329)]);break;case _0x3a044b['UpdatedBy']:_0xdcd66d['updatedBy']&&(_0xdcd66d['values'][_0x10fbaa]=_0xdcd66d[_0x317972(0x1e6)]);break;case _0x3a044b['CreatedAt']:_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=B(_0xdcd66d[_0x317972(0x1c8)]);break;case _0x3a044b[_0x317972(0x1fa)]:_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=B(_0xdcd66d['updatedAt']);break;default:{let _0x52640f=_0x59d393[_0x317972(0x15a)];_0x52640f!=null&&_0x52640f!==''&&!(Array['isArray'](_0x52640f)&&_0x52640f[_0x317972(0x13c)]===0x0)&&(_0xdcd66d['values'][_0x10fbaa]=_0x52640f);}}}),_0xdcd66d;}[_0x6c183(0x157)](_0x5b8186,_0x30f4c2,_0x2a6d52,_0x45f002){const _0x17e6a1=_0x6c183;var _0x558c73,_0x5b62c8;let _0x1a6eb0=_0x5b8186[_0x17e6a1(0x298)][_0x30f4c2],_0x1d211b=((_0x558c73=(_0x5b62c8=this[_0x17e6a1(0x2d3)])['now'])==null?void 0x0:_0x558c73['call'](_0x5b62c8))??Date[_0x17e6a1(0x2a4)](),_0x52ff9e=this[_0x17e6a1(0x25e)](),_0x5db16d={..._0x45f002};return _0x1a6eb0['fieldOrder']['forEach'](_0x267c5a=>{const _0x24dbec=_0x17e6a1;let _0x4325ee=_0x1a6eb0['fields'][_0x267c5a];_0x4325ee&&(_0x4325ee[_0x24dbec(0x20b)]===_0x3a044b['UpdatedAt']&&(_0x5db16d[_0x267c5a]=B(_0x1d211b)),_0x4325ee[_0x24dbec(0x20b)]===_0x3a044b['UpdatedBy']&&_0x52ff9e&&(_0x5db16d[_0x267c5a]=_0x52ff9e));}),{'recordId':_0x2a6d52,'values':_0x5db16d,'recordPatch':{'updatedAt':_0x1d211b,..._0x52ff9e?{'updatedBy':_0x52ff9e}:{}}};}[_0x6c183(0x3c1)](_0x5a84bc,_0x3e101a,_0x215de1){const _0x5a1b0a=_0x6c183;let _0xb31436=_0x5a84bc['tables'][_0x3e101a];return!_0xb31436||!Yr(_0x215de1)?[]:_0x215de1[_0x5a1b0a(0x20b)]===_0x3a044b[_0x5a1b0a(0x284)]?this['_createNumberingFieldValuePatches'](_0xb31436,_0x215de1['id']):Object[_0x5a1b0a(0x227)](_0xb31436[_0x5a1b0a(0x258)])['flatMap'](_0x3b3e23=>{const _0x21431d=_0x5a1b0a;let _0x4607a4=this[_0x21431d(0x410)](_0x215de1,_0x3b3e23);return _0x4607a4===void 0x0?[]:[{'recordId':_0x3b3e23['id'],'values':{[_0x215de1['id']]:_0x4607a4}}];});}[_0x6c183(0x410)](_0x57daee,_0x3d02b8){const _0x15c995=_0x6c183;switch(_0x57daee['type']){case _0x3a044b[_0x15c995(0x28d)]:return _0x3d02b8['createdBy']??this['_getCurrentUserId']();case _0x3a044b['UpdatedBy']:return _0x3d02b8[_0x15c995(0x1e6)]??this['_getCurrentUserId']();case _0x3a044b[_0x15c995(0x332)]:return B(_0x3d02b8[_0x15c995(0x1c8)]??Date[_0x15c995(0x2a4)]());case _0x3a044b[_0x15c995(0x1fa)]:return B(_0x3d02b8[_0x15c995(0x45d)]??Date[_0x15c995(0x2a4)]());default:return;}}['_createNumberingAllocators'](_0x368319){const _0x207d3c=_0x6c183;let _0x22bf77=new Map();return _0x368319&&_0x368319['fieldOrder'][_0x207d3c(0x2e0)](_0x3611ce=>{const _0x1d3645=_0x207d3c;let _0x41b624=_0x368319[_0x1d3645(0x398)][_0x3611ce];(_0x41b624==null?void 0x0:_0x41b624[_0x1d3645(0x20b)])===_0x3a044b[_0x1d3645(0x284)]&&_0x22bf77[_0x1d3645(0x49e)](_0x3611ce,this[_0x1d3645(0x18f)](_0x368319,_0x3611ce));}),_0x22bf77;}[_0x6c183(0x18f)](_0x7015d7,_0x500f3d){const _0x4fa6ff=_0x6c183;let _0x5b6c7c=Object['values'](_0x7015d7[_0x4fa6ff(0x258)])[_0x4fa6ff(0x34f)]((_0x152557,_0x3b7f70)=>{const _0x4d225b=_0x4fa6ff;let _0x2d039c=Number(_0x3b7f70['values'][_0x500f3d]);return Number[_0x4d225b(0x143)](_0x2d039c)?Math['max'](_0x152557,_0x2d039c):_0x152557;},0x0);return()=>String(++_0x5b6c7c);}[_0x6c183(0x333)](_0x1d98ed,_0x1b27a9){const _0x3a516e=_0x6c183;let _0x452393=this[_0x3a516e(0x48c)](_0x1d98ed),_0x383403=this['_createNumberingAllocator'](_0x1d98ed,_0x1b27a9);return _0x452393[_0x3a516e(0x17a)](_0x185f31=>this['_isNonEmptyCellValue'](_0x185f31[_0x3a516e(0x227)][_0x1b27a9])?[]:[{'recordId':_0x185f31['id'],'values':{[_0x1b27a9]:_0x383403()}}]);}[_0x6c183(0x48c)](_0x1074e4){const _0x4afa9a=_0x6c183;var _0xf6b2d9;let _0x27be9c=Object[_0x4afa9a(0x227)](_0x1074e4[_0x4afa9a(0x258)]),_0x6cfa66=new Map(_0x27be9c[_0x4afa9a(0x141)](_0x316a57=>[_0x316a57['id'],_0x316a57])),_0xbb43cf=[],_0x3836fa=new Set();(_0xf6b2d9=_0x1074e4[_0x4afa9a(0x1e7)])==null||_0xf6b2d9['forEach'](_0x2bcd4f=>{const _0x50ea18=_0x4afa9a;let _0x304b41=_0x6cfa66[_0x50ea18(0x43e)](_0x2bcd4f);_0x304b41&&(_0xbb43cf['push'](_0x304b41),_0x3836fa['add'](_0x2bcd4f));});let _0x163f9e=_0x27be9c['filter'](_0x557817=>!_0x3836fa[_0x4afa9a(0x34b)](_0x557817['id']))[_0x4afa9a(0x277)]((_0x1f9e43,_0x5b55a8)=>String(_0x1f9e43['orderKey']??_0x1f9e43['id'])['localeCompare'](String(_0x5b55a8['orderKey']??_0x5b55a8['id']))||_0x1f9e43['id'][_0x4afa9a(0x37a)](_0x5b55a8['id']));return[..._0xbb43cf,..._0x163f9e];}['_isNonEmptyCellValue'](_0x3359a0){const _0x3052f7=_0x6c183;return _0x3359a0!=null&&_0x3359a0!==''&&!(Array[_0x3052f7(0x431)](_0x3359a0)&&_0x3359a0[_0x3052f7(0x13c)]===0x0);}[_0x6c183(0x25e)](){const _0x5c0b51=_0x6c183;var _0x508e16,_0xfbd1d6,_0x196dff,_0x21e3c5;return((_0x508e16=(_0xfbd1d6=this['_runtimeContext'])[_0x5c0b51(0x419)])==null?void 0x0:_0x508e16[_0x5c0b51(0x43b)](_0xfbd1d6))??((_0x196dff=(_0x21e3c5=this[_0x5c0b51(0x2d3)])[_0x5c0b51(0x216)])==null||(_0x196dff=_0x196dff[_0x5c0b51(0x43b)](_0x21e3c5))==null?void 0x0:_0x196dff['userID'])??void 0x0;}['_normalizeCellValue'](_0x818c6e,_0x2e72ed,_0x40f78c,_0x48c5a4,_0x5cf3d7){const _0x22706b=_0x6c183;var _0x4467f1;if(!this['_permissionService']['canEditCell'](_0x2e72ed,_0x40f78c,_0x48c5a4))throw Error(_0x22706b(0x2ad));let _0x317dea=(_0x4467f1=_0x818c6e[_0x22706b(0x298)][_0x2e72ed])==null?void 0x0:_0x4467f1[_0x22706b(0x398)][_0x48c5a4];if(!_0x317dea)throw Error(_0x22706b(0x23a)+_0x48c5a4+_0x22706b(0x2bf));let _0x30c07d=this[_0x22706b(0x287)][_0x22706b(0x43e)](_0x317dea[_0x22706b(0x20b)]);if(_0x317dea[_0x22706b(0x3a9)]||_0x317dea['system']||!_0x30c07d[_0x22706b(0x2fd)](_0x317dea)['editable'])throw Error(_0x22706b(0x436));let _0x2589bf=_0x30c07d[_0x22706b(0x188)](_0x5cf3d7,_0x317dea),_0x35f7b9=_0x30c07d[_0x22706b(0x1a8)](_0x2589bf,_0x317dea);if(!_0x35f7b9[_0x22706b(0x26e)])throw Error(_0x35f7b9[_0x22706b(0x28a)]??_0x22706b(0x2f4));let _0x2d74c7=_0x317dea[_0x22706b(0x20b)]===_0x3a044b['RecordLink']?Ve(_0x818c6e,_0x317dea,_0x2589bf):{'valid':!0x0};if(!_0x2d74c7[_0x22706b(0x26e)])throw Error(_0x2d74c7['reason']??_0x22706b(0x14b));return _0x2589bf;}[_0x6c183(0x3c4)](_0x4c70ca,_0x5d9039){const _0x55913=_0x6c183;if(_0x5d9039['id']===_0x5a35e2||_0x5d9039[_0x55913(0x20b)]===_0x3a044b[_0x55913(0x22f)]||_0x771c24(_0x5d9039[_0x55913(0x2a3)]))throw Error(_0x55913(0x28f));let _0x1994ed=Be(_0x4c70ca,_0x5d9039);if(!_0x1994ed[_0x55913(0x26e)])throw Error(_0x1994ed['reason']??_0x55913(0x26d));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x36cf5f=_0x6c183;let _0xe99094=new hr();return zn()[_0x36cf5f(0x2e0)](_0x4965dd=>_0xe99094['register'](_0x4965dd)),_0xe99094;}function Yr(_0x31e6d3){const _0x58cfd7=_0x6c183;return _0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b['Numbering']||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x28d)]||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b['UpdatedBy']||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x332)]||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x1fa)];}const Xr=new Set([_0x3a044b[_0x6c183(0x140)],_0x3a044b[_0x6c183(0x2c3)],_0x3a044b[_0x6c183(0x233)]]);function Zr(_0x51cd11){const _0x4540aa=_0x6c183;let _0x41df88=_0x51cd11[_0x4540aa(0x398)][_0x51cd11[_0x4540aa(0x3b2)]];if((!_0x41df88||_0x41df88[_0x4540aa(0x3cf)]!==!0x0&&_0x41df88['id'][_0x4540aa(0x432)]()!=='id'&&_0x41df88[_0x4540aa(0x2a3)][_0x4540aa(0x226)]()[_0x4540aa(0x432)]()!=='id')&&_0x41df88)return _0x41df88['id'];for(let _0x562969 of _0x51cd11[_0x4540aa(0x3b5)]){let _0x4003cb=_0x51cd11['fields'][_0x562969];if(_0x4003cb&&_0x4003cb['id']!==_0x51cd11[_0x4540aa(0x3b2)]&&_0x4003cb['system']!==!0x0&&_0x4003cb[_0x4540aa(0x20b)]!==_0x3a044b[_0x4540aa(0x22f)])return _0x4003cb['id'];}return _0x51cd11[_0x4540aa(0x3b2)];}function Qr(_0x1e098d,_0x2305aa=[],_0x5ddb7b=0x5){const _0x40a992=_0x6c183;let _0x1c8e11=new Set(_0x2305aa[_0x40a992(0x2be)](_0x2bef4e=>!!_0x2bef4e)),_0x3209f2=[],_0x5512ce=[];for(let _0x129384 of _0x1e098d['fieldOrder']){let _0x1f55af=_0x1e098d['fields'][_0x129384];_0x1f55af&&_0x1f55af['system']!==!0x0&&_0x1f55af['type']!==_0x3a044b[_0x40a992(0x22f)]&&!_0x1c8e11[_0x40a992(0x34b)](_0x1f55af['id'])&&(Xr['has'](_0x1f55af[_0x40a992(0x20b)])?_0x3209f2:_0x5512ce)[_0x40a992(0x174)](_0x1f55af['id']);}return[..._0x3209f2,..._0x5512ce][_0x40a992(0x12c)](0x0,_0x5ddb7b);}function $r(){const _0x68a9cb=_0x6c183;return[{'type':_0x3ece31[_0x68a9cb(0x161)],'i18nKey':_0x68a9cb(0x33b),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x3ece31[_0x68a9cb(0x43c)],'i18nKey':_0x68a9cb(0x485),'createDefaultConfig':_0x454eaf=>{const _0x4b357b=_0x68a9cb;let _0x538291=ei(_0x454eaf);return{'groupFieldId':_0x538291,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x454eaf[_0x4b357b(0x3b2)],'fieldIds':Qr(_0x454eaf,[_0x454eaf[_0x4b357b(0x3b2)],_0x538291])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x110cb6=_0x68a9cb;throw Error(_0x110cb6(0x28e));}},{'type':_0x3ece31[_0x68a9cb(0x208)],'i18nKey':_0x68a9cb(0x24d),'createDefaultConfig':_0x532c7d=>{const _0x2054f4=_0x68a9cb;let _0x559ffb=ti(_0x532c7d);return{'startDateFieldId':_0x559ffb,'endDateFieldId':ni(_0x532c7d,_0x559ffb),'titleFieldId':_0x532c7d['primaryFieldId'],'mode':_0x2054f4(0x43d),'timeslotSize':_0x2054f4(0x1a7),'timeZone':_0x2054f4(0x231),'displayColor':{'type':'custom','color':'#3b82f6'},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x227358=_0x68a9cb;throw Error(_0x227358(0x214));}},{'type':_0x3ece31[_0x68a9cb(0x1cf)],'i18nKey':_0x68a9cb(0x418),'createDefaultConfig':_0x4fa132=>{const _0x255e98=_0x68a9cb;let _0xac5ebb=ti(_0x4fa132);return{'startDateFieldId':_0xac5ebb,'endDateFieldId':ni(_0x4fa132,_0xac5ebb)??_0xac5ebb,'titleFieldId':_0x4fa132['primaryFieldId'],'scale':_0x255e98(0x43d),'showTodayLine':!0x0,'displayColor':{'type':_0x255e98(0x446),'color':'#14b8a6'},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x232b47=_0x68a9cb;throw Error(_0x232b47(0x137));}},{'type':_0x3ece31['Gallery'],'i18nKey':'base.viewType.gallery','createDefaultConfig':_0x569b5c=>{const _0x33df61=_0x68a9cb;let _0x54b54d=Zr(_0x569b5c);return{'coverFieldId':null,'cardLayout':_0x33df61(0x339),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x54b54d,'coverFieldId':null,'fieldIds':Qr(_0x569b5c,[_0x54b54d,_0x569b5c[_0x33df61(0x3b2)]])},'cardSize':_0x33df61(0x1a7)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x566818=_0x68a9cb;throw Error(_0x566818(0x441));}}];}function ei(_0x590908){const _0x5908e4=_0x6c183;var _0x1e449e,_0x208d39,_0x1611df;let _0x12d44b=_0x590908[_0x5908e4(0x3b5)][_0x5908e4(0x141)](_0x890bbb=>_0x590908[_0x5908e4(0x398)][_0x890bbb])['filter'](_0x8737a2=>!!_0x8737a2);return((_0x1e449e=_0x12d44b[_0x5908e4(0x392)](_0x3b7e57=>_0x3b7e57[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x20e)]||_0x3b7e57[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x386)]||_0x3b7e57['type']===_0x3a044b[_0x5908e4(0x1ad)]))==null?void 0x0:_0x1e449e['id'])??((_0x208d39=_0x12d44b[_0x5908e4(0x392)](_0x18bd05=>_0x18bd05[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x315)]))==null?void 0x0:_0x208d39['id'])??((_0x1611df=_0x12d44b[_0x5908e4(0x392)](_0x2706aa=>_0x2706aa[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x346)]||_0x2706aa['type']===_0x3a044b[_0x5908e4(0x332)]||_0x2706aa[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x1fa)]))==null?void 0x0:_0x1611df['id'])??_0x590908[_0x5908e4(0x3b2)];}function ti(_0x3bf4f1){const _0x35b602=_0x6c183;var _0x788bb4;return((_0x788bb4=_0x3bf4f1[_0x35b602(0x3b5)]['map'](_0x2855cb=>_0x3bf4f1[_0x35b602(0x398)][_0x2855cb])[_0x35b602(0x392)](ri))==null?void 0x0:_0x788bb4['id'])??'';}function ni(_0x433493,_0x4cdb69){const _0x54d4d3=_0x6c183;var _0x2b8295;return(_0x2b8295=_0x433493[_0x54d4d3(0x3b5)]['map'](_0x134393=>_0x433493[_0x54d4d3(0x398)][_0x134393])[_0x54d4d3(0x392)](_0x3da117=>ri(_0x3da117)&&_0x3da117['id']!==_0x4cdb69))==null?void 0x0:_0x2b8295['id'];}function ri(_0x55b933){const _0x3d13ae=_0x6c183;return!!_0x55b933&&_0x55b933[_0x3d13ae(0x20b)]===_0x3a044b[_0x3d13ae(0x346)]&&_0x55b933[_0x3d13ae(0x3a9)]!==!0x0&&_0x55b933[_0x3d13ae(0x3cf)]!==!0x0;}const ii=_0x2e8f64('base.projection.service'),ai=new Set([_0x3a044b[_0x6c183(0x2f5)],_0x3a044b[_0x6c183(0x14d)],_0x3a044b[_0x6c183(0x140)],_0x3a044b['Rating'],_0x3a044b[_0x6c183(0x346)],_0x3a044b[_0x6c183(0x332)],_0x3a044b[_0x6c183(0x1fa)],_0x3a044b[_0x6c183(0x233)]]),oi=0x5265c00;let si=class extends _0x3b0b2d{constructor(_0x2f73fb){const _0x5774d8=_0x6c183;super(),this[_0x5774d8(0x287)]=_0x2f73fb,G(this,_0x5774d8(0x156),new Map()),G(this,_0x5774d8(0x38e),new WeakMap()),G(this,_0x5774d8(0x484),new Map()),G(this,_0x5774d8(0x2c6),new Map()),G(this,_0x5774d8(0x14f),new Map()),G(this,'_hierarchyIndexCache',new Map()),G(this,_0x5774d8(0x191),0x0),G(this,_0x5774d8(0x354),new Map()),G(this,_0x5774d8(0x13a),new Map()),G(this,'_cellInvalidations',new Map()),G(this,'_viewRevisions',new Map());}['registerView'](_0x4f3c1c){const _0x298bb3=_0x6c183;return this[_0x298bb3(0x156)][_0x298bb3(0x49e)](_0x4f3c1c[_0x298bb3(0x20b)],_0x4f3c1c),_0x1827e4(()=>this[_0x298bb3(0x156)][_0x298bb3(0x2fc)](_0x4f3c1c[_0x298bb3(0x20b)]));}[_0x6c183(0x249)](_0x3c8c71,_0x4f2f75,_0x583238){const _0x27ee08=_0x6c183;var _0x576867,_0x43a285,_0x331d1d;return I(_0x27ee08(0x498),()=>{const _0x2d84ff=_0x27ee08;let _0x4ba8a7=this[_0x2d84ff(0x372)](_0x3c8c71,_0x4f2f75,_0x583238);if(_0x4ba8a7)return _0x4ba8a7;let _0x5a914c=_0x3c8c71[_0x2d84ff(0x298)][_0x4f2f75],_0x4a46db=_0x5a914c==null?void 0x0:_0x5a914c['views'][_0x583238];if(!_0x5a914c||!_0x4a46db)return this['_setCachedProjection'](_0x3c8c71,_0x4f2f75,_0x583238,{'type':_0x2d84ff(0x3a3),'viewType':(_0x4a46db==null?void 0x0:_0x4a46db['type'])??_0x3ece31['Grid'],'reason':_0x2d84ff(0x292)});let _0x39a6cd;switch(_0x4a46db[_0x2d84ff(0x20b)]){case _0x3ece31['Grid']:_0x39a6cd=this[_0x2d84ff(0x456)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x1cf)]:_0x39a6cd=this[_0x2d84ff(0x2f6)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x43c)]:_0x39a6cd=this[_0x2d84ff(0x371)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x208)]:_0x39a6cd=this['_buildCalendar'](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x434)]:_0x39a6cd=this[_0x2d84ff(0x36c)](_0x5a914c,_0x4a46db);break;default:_0x39a6cd={'type':_0x2d84ff(0x3a3),'viewType':_0x4a46db[_0x2d84ff(0x20b)],'reason':_0x2d84ff(0x292)};}return this[_0x2d84ff(0x1f8)](_0x3c8c71,_0x4f2f75,_0x583238,_0x39a6cd);},{'tableId':_0x4f2f75,'viewId':_0x583238,'viewType':(_0x576867=_0x3c8c71[_0x27ee08(0x298)][_0x4f2f75])==null||(_0x576867=_0x576867[_0x27ee08(0x362)][_0x583238])==null?void 0x0:_0x576867[_0x27ee08(0x20b)],'records':((_0x43a285=_0x3c8c71[_0x27ee08(0x298)][_0x4f2f75])==null||(_0x43a285=_0x43a285[_0x27ee08(0x1e7)])==null?void 0x0:_0x43a285[_0x27ee08(0x13c)])??Object['keys'](((_0x331d1d=_0x3c8c71['tables'][_0x4f2f75])==null?void 0x0:_0x331d1d['records'])??{})['length']});}[_0x6c183(0x1e0)](_0x4b0283,_0x4f7891,_0x3074ed){const _0x94263=_0x6c183;var _0x352b8c,_0x4935a2,_0x32a793;let _0x1e7f3a=_0x4b0283[_0x94263(0x298)][_0x4f7891],_0x5e6316=_0x1e7f3a==null?void 0x0:_0x1e7f3a[_0x94263(0x362)][_0x3074ed];if(!_0x1e7f3a||!_0x5e6316)throw Error(_0x94263(0x44f)+_0x3074ed+'\x22.');let _0xb2dce6=_0x4555ab=>!!_0x1e7f3a[_0x94263(0x398)][_0x4555ab],_0x54fdda={..._0x5e6316,'filter':_0x5e6316['filter']?{..._0x5e6316[_0x94263(0x2be)],'conditions':_0x5e6316['filter'][_0x94263(0x396)][_0x94263(0x2be)](_0x506c42=>_0xb2dce6(_0x506c42[_0x94263(0x2b0)]))}:_0x5e6316[_0x94263(0x2be)],'sort':(_0x352b8c=_0x5e6316['sort'])==null?void 0x0:_0x352b8c[_0x94263(0x2be)](_0xb1ed58=>_0xb2dce6(_0xb1ed58[_0x94263(0x2b0)])),'group':(_0x4935a2=_0x5e6316[_0x94263(0x1f2)])==null?void 0x0:_0x4935a2[_0x94263(0x2be)](_0x14a31e=>_0xb2dce6(_0x14a31e['fieldId'])),'fieldOrder':(_0x32a793=_0x5e6316[_0x94263(0x3b5)])==null?void 0x0:_0x32a793[_0x94263(0x2be)](_0xb2dce6),'fieldSettings':Object[_0x94263(0x176)](Object[_0x94263(0x279)](_0x5e6316[_0x94263(0x48f)]??{})['filter'](([_0x4c5f7f])=>_0xb2dce6(_0x4c5f7f)))};if(_0x54fdda[_0x94263(0x20b)]===_0x94263(0x4a6)){var _0x393350;let _0x3d8109=_0x54fdda['config']??{},_0x174484=this['_resolveKanbanGroupFieldId'](_0x1e7f3a,_0x54fdda),_0x236021=this[_0x94263(0x3f4)](_0x1e7f3a,(_0x393350=_0x3d8109['card'])==null?void 0x0:_0x393350[_0x94263(0x1ba)]);_0x54fdda[_0x94263(0x2ba)]={..._0x3d8109,'groupFieldId':_0x174484??_0x3d8109[_0x94263(0x426)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x1e7f3a,_0x3d8109),'cardLayout':_0x3d8109['cardLayout']==='compose'?_0x94263(0x2a2):_0x94263(0x339),'showFieldNames':_0x3d8109[_0x94263(0x15d)]!==!0x1,'fieldSettings':Object[_0x94263(0x176)](Object[_0x94263(0x279)](_0x3d8109[_0x94263(0x48f)]??{})[_0x94263(0x2be)](([_0x199500])=>_0xb2dce6(_0x199500))),'columnSettings':_0x3d8109[_0x94263(0x15c)]??{},'card':{..._0x3d8109[_0x94263(0x39b)]??{},'titleFieldId':_0x236021,'fieldIds':this[_0x94263(0x3c2)](_0x1e7f3a,_0x54fdda,_0x174484??'',_0x236021)}};}return{'repaired':JSON['stringify'](_0x54fdda)!==JSON[_0x94263(0x25f)](_0x5e6316),'view':_0x54fdda};}[_0x6c183(0x3c7)](){const _0x171181=_0x6c183;this[_0x171181(0x191)]++;}[_0x6c183(0x1a1)](_0x3c1d3f,_0xa9014f,_0x194a37){const _0x248d88=_0x6c183;let _0x2a59da=this['_getCellRevision'](_0x3c1d3f)+0x1;this[_0x248d88(0x13a)][_0x248d88(0x49e)](_0x3c1d3f,_0x2a59da);let _0x23fd41=this['_cellInvalidations'][_0x248d88(0x43e)](_0x3c1d3f)??[];_0x23fd41[_0x248d88(0x174)]({'revision':_0x2a59da,'recordId':_0xa9014f,'fieldId':_0x194a37}),this[_0x248d88(0x40c)][_0x248d88(0x49e)](_0x3c1d3f,_0x23fd41);}[_0x6c183(0x3d4)](_0x34178a,_0x5e05cf){const _0xf8d521=_0x6c183;this[_0xf8d521(0x3aa)](_0x34178a);}[_0x6c183(0x132)](_0x511322,_0x3f8c03){const _0x11bafb=_0x6c183;this[_0x11bafb(0x3e4)][_0x11bafb(0x49e)](this['_viewRevisionKey'](_0x511322,_0x3f8c03),this[_0x11bafb(0x193)](_0x511322,_0x3f8c03)+0x1);}[_0x6c183(0x372)](_0x4156b0,_0x5858b7,_0x69d8b1){const _0x5a7828=_0x6c183;var _0x6398c4;let _0x37f259=(_0x6398c4=this[_0x5a7828(0x38e)]['get'](_0x4156b0))==null?void 0x0:_0x6398c4[_0x5a7828(0x43e)](this['_cacheKey'](_0x5858b7,_0x69d8b1));return _0x37f259&&_0x37f259[_0x5a7828(0x2dd)]===this[_0x5a7828(0x191)]&&_0x37f259[_0x5a7828(0x291)]===this['_getTableRevision'](_0x5858b7)&&_0x37f259[_0x5a7828(0x21d)]===this['_getCellRevision'](_0x5858b7)&&_0x37f259[_0x5a7828(0x1ee)]===this[_0x5a7828(0x193)](_0x5858b7,_0x69d8b1)?_0x37f259[_0x5a7828(0x257)]:null;}[_0x6c183(0x1f8)](_0x3ba26d,_0x41d421,_0x56da27,_0x197b73){const _0x187d5f=_0x6c183;let _0x84b808=this['_projectionCache'][_0x187d5f(0x43e)](_0x3ba26d);return _0x84b808||(_0x84b808=new Map(),this[_0x187d5f(0x38e)][_0x187d5f(0x49e)](_0x3ba26d,_0x84b808)),_0x84b808['set'](this['_cacheKey'](_0x41d421,_0x56da27),{'projection':_0x197b73,'globalRevision':this[_0x187d5f(0x191)],'tableRevision':this['_getTableRevision'](_0x41d421),'cellRevision':this[_0x187d5f(0x42b)](_0x41d421),'viewRevision':this[_0x187d5f(0x193)](_0x41d421,_0x56da27)}),_0x197b73;}[_0x6c183(0x3aa)](_0x57c454){const _0x521cc2=_0x6c183;this[_0x521cc2(0x354)][_0x521cc2(0x49e)](_0x57c454,this[_0x521cc2(0x353)](_0x57c454)+0x1);}[_0x6c183(0x353)](_0x18f67f){const _0x5bbc87=_0x6c183;return this[_0x5bbc87(0x354)][_0x5bbc87(0x43e)](_0x18f67f)??0x0;}[_0x6c183(0x42b)](_0x4e0237){const _0x74665a=_0x6c183;return this[_0x74665a(0x13a)][_0x74665a(0x43e)](_0x4e0237)??0x0;}[_0x6c183(0x193)](_0x509507,_0x2182c1){const _0x172853=_0x6c183;return this[_0x172853(0x3e4)][_0x172853(0x43e)](this['_viewRevisionKey'](_0x509507,_0x2182c1))??0x0;}[_0x6c183(0x2cd)](_0x32c07d,_0x3ce7f4){return _0x32c07d+'\x00'+_0x3ce7f4;}[_0x6c183(0x312)](_0x1ec138,_0x513e95){const _0x2925e4=_0x6c183;return _0x1ec138+'\x00'+this[_0x2925e4(0x35f)](_0x513e95);}[_0x6c183(0x3d5)](_0x1505ca,_0xcb197b,_0x518fe7){const _0x509415=_0x6c183;return _0x1505ca+'\x00'+this['_rowTransformCacheSegment'](_0xcb197b)+'\x00'+this[_0x509415(0x1c1)](_0x518fe7);}[_0x6c183(0x35f)](_0x41cab4){const _0x5dcba9=_0x6c183;return _0x41cab4?mi({'filter':di(_0x41cab4[_0x5dcba9(0x2be)]),'sort':pi(_0x41cab4[_0x5dcba9(0x277)])}):'__all__';}['_groupConfigCacheSegment'](_0x54a815){const _0x54121b=_0x6c183;return mi(_0x54a815[_0x54121b(0x141)](_0x35380b=>({'fieldId':_0x35380b[_0x54121b(0x2b0)],'direction':_0x35380b[_0x54121b(0x12f)]??null})));}[_0x6c183(0x2a0)](_0x3fdc30,_0x4a71ac){return _0x3fdc30+'\x00'+_0x4a71ac;}[_0x6c183(0x456)](_0x362d68,_0x5d7473){const _0x5d18b2=_0x6c183;var _0x2bfe3e;let _0x32d51d=Je(_0x362d68),_0x5ab2ab=this[_0x5d18b2(0x449)](_0x362d68,_0x5d7473),_0x44b472=(_0x2bfe3e=_0x5d7473['filter'])!=null&&_0x2bfe3e[_0x5d18b2(0x396)][_0x5d18b2(0x13c)]?this[_0x5d18b2(0x449)](_0x362d68,{..._0x5d7473,'filter':null}):_0x5ab2ab,_0xfb264d=nt(this['_getHierarchyIndex'](_0x362d68,_0x32d51d,_0x5d7473['id'],_0x44b472[_0x5d18b2(0x141)](_0x2e3b7a=>_0x2e3b7a[_0x5d18b2(0x347)])),_0x44b472,new Set(_0x5ab2ab[_0x5d18b2(0x141)](_0x4fa847=>_0x4fa847[_0x5d18b2(0x347)])));return{'type':_0x3ece31[_0x5d18b2(0x161)],'fields':this[_0x5d18b2(0x3d9)](_0x362d68,_0x5d7473),'rows':_0xfb264d[_0x5d18b2(0x2c5)],'groups':this[_0x5d18b2(0x35d)](_0x362d68,_0x5d7473,_0xfb264d[_0x5d18b2(0x2c5)],_0xfb264d[_0x5d18b2(0x160)]),'hierarchy':_0xfb264d['hierarchy'],'frozenFieldCount':typeof _0x5d7473['config'][_0x5d18b2(0x213)]==_0x5d18b2(0x24b)?_0x5d7473['config']['frozenFieldCount']:0x0};}[_0x6c183(0x40d)](_0x488d6c,_0x58f0e7,_0x28c8a8,_0x37cf30){const _0x1bdf29=_0x6c183;let _0x6b05c1=_0x488d6c['id']+'\x00'+_0x58f0e7+'\x00'+_0x28c8a8,_0x344143=this[_0x1bdf29(0x42b)](_0x488d6c['id']),_0x5e6e70=this[_0x1bdf29(0x44a)][_0x1bdf29(0x43e)](_0x6b05c1);if(_0x5e6e70&&_0x5e6e70[_0x1bdf29(0x2dd)]===this[_0x1bdf29(0x191)]&&_0x5e6e70['tableRevision']===this[_0x1bdf29(0x353)](_0x488d6c['id'])&&_0x5e6e70[_0x1bdf29(0x3c3)][_0x1bdf29(0x13c)]===_0x37cf30[_0x1bdf29(0x13c)]&&_0x5e6e70['orderedRecordIds'][_0x1bdf29(0x387)]((_0x39cf65,_0x36dd08)=>_0x39cf65===_0x37cf30[_0x36dd08])){if(_0x5e6e70[_0x1bdf29(0x21d)]===_0x344143&&_0x5e6e70[_0x1bdf29(0x4c7)]===_0x488d6c)return _0x5e6e70[_0x1bdf29(0x159)];if(!this['_cellInvalidationsTouchFields'](_0x488d6c['id'],_0x5e6e70[_0x1bdf29(0x21d)],_0x344143,new Set([_0x58f0e7])))return this['_hierarchyIndexCache']['set'](_0x6b05c1,{..._0x5e6e70,'table':_0x488d6c,'cellRevision':_0x344143}),_0x5e6e70['index'];}let _0x541b57=tt(_0x488d6c,_0x58f0e7,_0x37cf30);return this[_0x1bdf29(0x44a)]['set'](_0x6b05c1,{'table':_0x488d6c,'index':_0x541b57,'orderedRecordIds':_0x37cf30,'globalRevision':this[_0x1bdf29(0x191)],'tableRevision':this[_0x1bdf29(0x353)](_0x488d6c['id']),'cellRevision':_0x344143}),_0x541b57;}[_0x6c183(0x35d)](_0xa40e0b,_0x3ee20c,_0x395197,_0x31daac){const _0x54ece9=_0x6c183;var _0x53dfe6;if(!((_0x53dfe6=_0x3ee20c[_0x54ece9(0x1f2)])!=null&&_0x53dfe6['length']))return[];let _0x312faa=new Map(_0x395197[_0x54ece9(0x141)](_0x1348d4=>[_0x1348d4[_0x54ece9(0x347)],_0x1348d4])),_0x54be91=_0x31daac['rootRecordIds']['flatMap'](_0x33abd7=>{const _0x5b4e01=_0x54ece9;let _0x564f1c=_0x312faa[_0x5b4e01(0x43e)](_0x33abd7);return _0x564f1c?[_0x564f1c]:[];}),_0x19ecc9=this[_0x54ece9(0x3eb)](_0xa40e0b,_0x3ee20c,_0x54be91),_0x265326=new Map(_0x31daac['orderedRecordIds'][_0x54ece9(0x141)]((_0x4237a7,_0x32245c)=>[_0x4237a7,_0x32245c])),_0x3c7ba1=_0x485be2=>{const _0x23335c=_0x54ece9;let _0x7ca6bc=_0x31daac['nodes'][_0x485be2],_0x46609d=_0x265326[_0x23335c(0x43e)](_0x485be2)??-0x1;return _0x46609d<0x0||!_0x7ca6bc?[]:_0x31daac[_0x23335c(0x3c3)]['slice'](_0x46609d,_0x7ca6bc['subtreeEndIndex']+0x1);},_0x5bac22=_0x36bc0e=>{const _0x490299=_0x54ece9;var _0x418cc5,_0x1cdd68;return{..._0x36bc0e,'recordIds':(_0x418cc5=_0x36bc0e['children'])!=null&&_0x418cc5[_0x490299(0x13c)]?_0x36bc0e[_0x490299(0x397)]:_0x36bc0e['recordIds'][_0x490299(0x17a)](_0x3c7ba1),'children':(_0x1cdd68=_0x36bc0e[_0x490299(0x126)])==null?void 0x0:_0x1cdd68[_0x490299(0x141)](_0x5bac22)};};return _0x19ecc9['map'](_0x5bac22);}[_0x6c183(0x371)](_0x156bb5,_0x5a549a){const _0x259299=_0x6c183;var _0x2c55ff;let _0x36550f=this[_0x259299(0x196)](_0x156bb5,_0x5a549a),_0x34915a=_0x36550f?_0x156bb5[_0x259299(0x398)][_0x36550f]:void 0x0;if(!_0x34915a)return{'type':'invalid','viewType':_0x3ece31[_0x259299(0x43c)],'reason':_0x259299(0x414),'fieldId':_0x5a549a[_0x259299(0x2ba)][_0x259299(0x426)]};let _0x13a9d7=this[_0x259299(0x449)](_0x156bb5,_0x5a549a),_0x56605f=this[_0x259299(0x3d9)](_0x156bb5,_0x5a549a),_0x5a7c8b=_0x5a549a['config']??{},_0x549948=this[_0x259299(0x3f4)](_0x156bb5,(_0x2c55ff=_0x5a7c8b[_0x259299(0x39b)])==null?void 0x0:_0x2c55ff['titleFieldId']),_0xb10c99=this[_0x259299(0x3c2)](_0x156bb5,_0x5a549a,_0x34915a['id'],_0x549948),_0x4a9119=new Map();if(F(_0x156bb5,_0x34915a['id'])){let _0x2d500d=this[_0x259299(0x40d)](_0x156bb5,_0x34915a['id'],_0x5a549a['id'],_0x13a9d7['map'](_0x38afab=>_0x38afab['recordId'])),_0x2fe72c=new Map();return _0x13a9d7['forEach'](_0x5a9813=>{const _0x55aa99=_0x259299;let _0x2f591f=_0x2d500d[_0x55aa99(0x3b7)]['get'](_0x5a9813[_0x55aa99(0x347)])??null,_0x2ddcc9=_0x2f591f??'',_0x27fc15=_0x2f591f?_0x156bb5[_0x55aa99(0x258)][_0x2f591f]:void 0x0,_0x2e7e18=_0x2fe72c[_0x55aa99(0x43e)](_0x2ddcc9)??{'key':_0x2ddcc9,'title':_0x27fc15?String(yt(_0x156bb5,_0x27fc15['id'],_0x156bb5['primaryFieldId'])??_0x2f591f):this['_kanbanLaneTitle'](_0x34915a,_0x2ddcc9,_0x5a7c8b),'recordIds':[]};_0x2e7e18[_0x55aa99(0x397)][_0x55aa99(0x174)](_0x5a9813['recordId']),_0x2fe72c[_0x55aa99(0x49e)](_0x2ddcc9,_0x2e7e18);}),{'type':_0x3ece31[_0x259299(0x43c)],'fields':_0x56605f,'rows':_0x13a9d7,'groups':[],'groupFieldId':_0x34915a['id'],'titleFieldId':_0x549948,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x156bb5,_0x5a7c8b),'cardLayout':_0x5a7c8b[_0x259299(0x33c)]===_0x259299(0x2a2)?_0x259299(0x2a2):_0x259299(0x339),'showFieldNames':_0x5a7c8b[_0x259299(0x15d)]!==!0x1,'visibleCardFieldIds':_0xb10c99,'lanes':['',..._0x2d500d[_0x259299(0x3c3)]][_0x259299(0x17a)](_0x298f92=>{const _0x5dfc10=_0x259299;let _0x2f06ca=_0x2fe72c[_0x5dfc10(0x43e)](_0x298f92);return _0x2f06ca!=null&&_0x2f06ca['recordIds'][_0x5dfc10(0x13c)]?[_0x2f06ca]:[];})};}return this[_0x259299(0x428)](_0x34915a,_0x5a7c8b)[_0x259299(0x2e0)](_0x41ef00=>_0x4a9119[_0x259299(0x49e)](_0x41ef00[_0x259299(0x2e1)],{..._0x41ef00,'recordIds':[]})),_0x13a9d7[_0x259299(0x2e0)](_0x56caaf=>{const _0x1fcb1b=_0x259299;this['_kanbanGroupKeys'](_0x34915a,_0x56caaf[_0x1fcb1b(0x227)][_0x34915a['id']])['forEach'](_0x33eae0=>{const _0x262304=_0x1fcb1b;let _0x3f0f53=_0x4a9119[_0x262304(0x43e)](_0x33eae0)??{'key':_0x33eae0,'title':this[_0x262304(0x411)](_0x34915a,_0x33eae0,_0x5a7c8b),'color':this[_0x262304(0x31a)](_0x34915a,_0x33eae0,_0x5a7c8b),'recordIds':[]};_0x3f0f53['recordIds'][_0x262304(0x174)](_0x56caaf[_0x262304(0x347)]),_0x4a9119[_0x262304(0x49e)](_0x33eae0,_0x3f0f53);});}),{'type':_0x3ece31['Kanban'],'fields':_0x56605f,'rows':_0x13a9d7,'groups':this['_projectGroups'](_0x156bb5,_0x5a549a,_0x13a9d7),'groupFieldId':_0x34915a['id'],'titleFieldId':_0x549948,'coverFieldId':this[_0x259299(0x1a5)](_0x156bb5,_0x5a7c8b),'cardLayout':_0x5a7c8b[_0x259299(0x33c)]===_0x259299(0x2a2)?_0x259299(0x2a2):_0x259299(0x339),'showFieldNames':_0x5a7c8b[_0x259299(0x15d)]!==!0x1,'visibleCardFieldIds':_0xb10c99,'lanes':Array[_0x259299(0x1d5)](_0x4a9119[_0x259299(0x227)]())};}['_resolveKanbanGroupFieldId'](_0x57f16d,_0x4c4261){const _0x371aeb=_0x6c183;var _0x581e11;let _0x5c7a7c=(_0x581e11=_0x4c4261[_0x371aeb(0x2ba)])==null?void 0x0:_0x581e11[_0x371aeb(0x426)];return _0x5c7a7c&&this[_0x371aeb(0x2a1)](_0x57f16d,_0x5c7a7c)?_0x5c7a7c:this[_0x371aeb(0x412)](_0x57f16d,_0x6ef8d8=>this[_0x371aeb(0x3ba)](_0x6ef8d8));}[_0x6c183(0x412)](_0x140b6a,_0x58ffe3){const _0x3f0f38=_0x6c183;for(let _0x48eda2 of _0x140b6a[_0x3f0f38(0x3b5)]){let _0x31e1dc=_0x140b6a[_0x3f0f38(0x398)][_0x48eda2];if(_0x31e1dc&&_0x58ffe3(_0x31e1dc))return _0x31e1dc['id'];}return null;}[_0x6c183(0x2a1)](_0x47fb7d,_0x32a8bd){const _0x2dd7b7=_0x6c183;let _0x3be031=_0x47fb7d['fields'][_0x32a8bd];return this[_0x2dd7b7(0x3ba)](_0x3be031)||F(_0x47fb7d,_0x32a8bd);}[_0x6c183(0x3ba)](_0x362be0){const _0x334ee0=_0x6c183;return!!_0x362be0&&(_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x20e)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x386)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x2c3)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x359)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x1ad)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x233)]);}[_0x6c183(0x42a)](_0x3b8d96){const _0x456b6b=_0x6c183;return _0x3b8d96['type']===_0x3a044b[_0x456b6b(0x20e)]||_0x3b8d96[_0x456b6b(0x20b)]===_0x3a044b['MultiSelect'];}['_resolveKanbanCoverFieldId'](_0x405793,_0x31f219){const _0x514141=_0x6c183;var _0x1e533c;let _0x242397=_0x31f219['coverFieldId']??((_0x1e533c=_0x31f219['card'])==null?void 0x0:_0x1e533c[_0x514141(0x21a)])??null;if(!_0x242397)return null;let _0x469db8=_0x405793[_0x514141(0x398)][_0x242397];return _0x469db8&&this[_0x514141(0x403)](_0x469db8)[_0x514141(0x16d)]?_0x469db8['id']:null;}['_resolveKanbanCardFieldIds'](_0x91f47e,_0x81d2d9,_0x335b36,_0x485c4a=this[_0x6c183(0x3f4)](_0x91f47e,((()=>{const _0x28157e=_0x6c183;var _0x4b3fa0;return(_0x4b3fa0=_0x81d2d9['config'])==null||(_0x4b3fa0=_0x4b3fa0[_0x28157e(0x39b)])==null?void 0x0:_0x4b3fa0[_0x28157e(0x1ba)];})()))){const _0x441cc4=_0x6c183;var _0x5c37a0;let _0x4b75ac=_0x81d2d9[_0x441cc4(0x2ba)]??{},_0x1359f2=(_0x5c37a0=_0x4b75ac[_0x441cc4(0x39b)])!=null&&(_0x5c37a0=_0x5c37a0['fieldIds'])!=null&&_0x5c37a0[_0x441cc4(0x13c)]?_0x4b75ac[_0x441cc4(0x39b)]['fieldIds']:Qr(_0x91f47e,[_0x485c4a,_0x91f47e[_0x441cc4(0x3b2)],_0x335b36]),_0x5532e0=_0x4b75ac[_0x441cc4(0x48f)]??{};return _0x1359f2['filter'](_0x3a225f=>{const _0x1e448c=_0x441cc4;var _0x185302,_0x30deeb;let _0x50a942=_0x91f47e[_0x1e448c(0x398)][_0x3a225f];return!(!_0x50a942||_0x50a942[_0x1e448c(0x3cf)]===!0x0||_0x50a942[_0x1e448c(0x20b)]===_0x3a044b[_0x1e448c(0x22f)]||_0x50a942['id']===_0x335b36||_0x50a942['id']===_0x485c4a||(_0x185302=_0x81d2d9['fieldSettings'])!=null&&(_0x185302=_0x185302[_0x3a225f])!=null&&_0x185302[_0x1e448c(0x1b2)]||(_0x30deeb=_0x5532e0[_0x3a225f])!=null&&_0x30deeb['hidden']);})[_0x441cc4(0x277)]((_0x4900f5,_0x443165)=>{const _0x40ce17=_0x441cc4;var _0x2db5e5,_0x184d8e;return(((_0x2db5e5=_0x5532e0[_0x4900f5])==null?void 0x0:_0x2db5e5[_0x40ce17(0x316)])??_0x1359f2['indexOf'](_0x4900f5))-(((_0x184d8e=_0x5532e0[_0x443165])==null?void 0x0:_0x184d8e[_0x40ce17(0x316)])??_0x1359f2[_0x40ce17(0x44e)](_0x443165));});}[_0x6c183(0x428)](_0x5dcff9,_0x5843fc){const _0x1d7717=_0x6c183;var _0x450cea;let _0x78fcf2=(Array[_0x1d7717(0x431)]((_0x450cea=_0x5dcff9[_0x1d7717(0x2ba)])==null?void 0x0:_0x450cea[_0x1d7717(0x2b3)])?_0x5dcff9[_0x1d7717(0x2ba)][_0x1d7717(0x2b3)]:[])['flatMap']((_0x503594,_0x51523c)=>{const _0x11c5d1=_0x1d7717;if(_0x503594==null)return[];let _0x5c75d4=typeof _0x503594=='string'?{'id':_0x503594,'name':_0x503594,'color':void 0x0}:_0x503594,_0x1e23f2=String(_0x5c75d4['id']??_0x5c75d4[_0x11c5d1(0x2a3)]??'option-'+(_0x51523c+0x1));return[{'key':_0x1e23f2,'title':String(_0x5c75d4[_0x11c5d1(0x2a3)]??_0x5c75d4['id']??_0x1e23f2),'color':this[_0x11c5d1(0x31a)](_0x5dcff9,_0x1e23f2,_0x5843fc)}];});return Object[_0x1d7717(0x279)](_0x5843fc[_0x1d7717(0x15c)]??{})[_0x1d7717(0x2e0)](([_0x1b29d8,_0x4616ca])=>{const _0x475146=_0x1d7717;_0x78fcf2['some'](_0x4d92d6=>_0x4d92d6['key']===_0x1b29d8)||_0x78fcf2[_0x475146(0x174)]({'key':_0x1b29d8,'title':this[_0x475146(0x42a)](_0x5dcff9)?_0x4616ca[_0x475146(0x488)]??this['_kanbanLaneTitle'](_0x5dcff9,_0x1b29d8,_0x5843fc):this[_0x475146(0x411)](_0x5dcff9,_0x1b29d8,_0x5843fc),'color':this[_0x475146(0x31a)](_0x5dcff9,_0x1b29d8,_0x5843fc)});}),_0x78fcf2;}['_kanbanGroupKeys'](_0x29cd1f,_0x185b7f){const _0x2dc7ea=_0x6c183;let _0x38cf4e=_0x24cb58=>{const _0x37432d=_0x2b5a;var _0x10c0b6;let _0x398c91=_0x24cb58==null?'':String(_0x24cb58);return!_0x398c91||!this[_0x37432d(0x42a)](_0x29cd1f)?_0x398c91:((_0x10c0b6=Li(_0x29cd1f,_0x398c91))==null?void 0x0:_0x10c0b6['id'])??_0x398c91;};if(Array['isArray'](_0x185b7f)){let _0x5625c5=_0x185b7f[_0x2dc7ea(0x141)](_0x38cf4e)[_0x2dc7ea(0x2be)](_0x4d68f2=>_0x4d68f2!=='');return _0x5625c5[_0x2dc7ea(0x13c)]?_0x5625c5:[''];}return[_0x38cf4e(_0x185b7f)];}[_0x6c183(0x411)](_0x55e52d,_0x1a5d3d,_0x2c182a){const _0x1a863f=_0x6c183;if(!_0x1a5d3d)return _0x1a863f(0x1f5);let _0x187bc6=Li(_0x55e52d,_0x1a5d3d);return(_0x187bc6==null?void 0x0:_0x187bc6[_0x1a863f(0x2a3)])??_0x1a5d3d;}[_0x6c183(0x31a)](_0xa04ac8,_0x50022b,_0x126e0d){const _0x23ca52=_0x6c183;var _0x5dd31a;if(this[_0x23ca52(0x42a)](_0xa04ac8))return(_0x5dd31a=Li(_0xa04ac8,_0x50022b))==null?void 0x0:_0x5dd31a[_0x23ca52(0x276)];}[_0x6c183(0x154)](_0x214901,_0x589750){const _0x4571c5=_0x6c183;let _0x538cff=this['_normalizeCalendarConfig'](_0x214901,_0x589750[_0x4571c5(0x2ba)]??{}),_0x47bbf7=_0x214901['fields'][_0x538cff[_0x4571c5(0x4b5)]];if(!_0x47bbf7||_0x47bbf7[_0x4571c5(0x20b)]!==_0x3a044b['Date']||_0x47bbf7[_0x4571c5(0x3a9)]===!0x0||_0x47bbf7[_0x4571c5(0x3cf)]===!0x0||!this[_0x4571c5(0x403)](_0x47bbf7)[_0x4571c5(0x4c8)])return{'type':'invalid','viewType':_0x3ece31['Calendar'],'reason':_0x4571c5(0x3f6),'fieldId':_0x538cff[_0x4571c5(0x4b5)]};let _0xb5b5a9=_0x538cff[_0x4571c5(0x3ef)]?_0x214901[_0x4571c5(0x398)][_0x538cff[_0x4571c5(0x3ef)]]:void 0x0,_0x36359c=this[_0x4571c5(0x449)](_0x214901,_0x589750);return{'type':_0x3ece31[_0x4571c5(0x208)],'config':_0x538cff,'fields':this[_0x4571c5(0x3d9)](_0x214901,_0x589750),'rows':_0x36359c,'groups':this[_0x4571c5(0x3eb)](_0x214901,_0x589750,_0x36359c),'events':_0x36359c['flatMap'](_0x214629=>{const _0x5c5e9a=_0x4571c5;let _0x128ea0=dn(_0x214629[_0x5c5e9a(0x227)][_0x538cff[_0x5c5e9a(0x4b5)]]);if(!Number['isFinite'](_0x128ea0))return[];let _0x24496e=_0x214629['values'][_0x538cff[_0x5c5e9a(0x4b5)]],_0x362bce=_0x538cff[_0x5c5e9a(0x3ef)]==null?void 0x0:_0x214629['values'][_0x538cff[_0x5c5e9a(0x3ef)]],_0x1dee64=_0x538cff[_0x5c5e9a(0x3ef)]==null?void 0x0:dn(_0x362bce),_0x4286f1=Number[_0x5c5e9a(0x143)](_0x1dee64)?_0x1dee64:void 0x0;return[{'recordId':_0x214629['recordId'],'title':this[_0x5c5e9a(0x271)](_0x214901,_0x214629,_0x538cff['titleFieldId']),'start':_0x128ea0,'end':_0x4286f1,'color':this['_calendarEventColor'](_0x214901,_0x214629,_0x538cff),'startMs':_0x128ea0,'endMs':_0x4286f1,'allDay':this[_0x5c5e9a(0x3f5)](_0x47bbf7,_0xb5b5a9,_0x24496e,_0x362bce),'fieldValues':_0x214629[_0x5c5e9a(0x227)]}];})};}[_0x6c183(0x171)](_0x575c52,_0x296a3c){const _0xb5db00=_0x6c183;let _0x340e00=this['_resolveCalendarDateFieldId'](_0x575c52,_0x296a3c['startDateFieldId']),_0x2428f2=_0x296a3c[_0xb5db00(0x3ef)]&&this['_isCalendarDateField'](_0x575c52,_0x296a3c[_0xb5db00(0x3ef)])?_0x296a3c[_0xb5db00(0x3ef)]:this[_0xb5db00(0x381)](_0x575c52,_0x340e00)??void 0x0,_0xab886a=_0x296a3c[_0xb5db00(0x1ba)]?_0x575c52[_0xb5db00(0x398)][_0x296a3c[_0xb5db00(0x1ba)]]:void 0x0,_0x2dd211=_0xab886a&&_0xab886a[_0xb5db00(0x3cf)]!==!0x0&&_0xab886a[_0xb5db00(0x20b)]!==_0x3a044b[_0xb5db00(0x22f)]?_0x296a3c[_0xb5db00(0x1ba)]:_0x575c52[_0xb5db00(0x3b2)],_0x298c46=_0x296a3c['mode']===_0xb5db00(0x130)||_0x296a3c[_0xb5db00(0x3cb)]==='week'?_0x296a3c['mode']:'month',_0x2e049e=_0x296a3c['timeslotSize']===_0xb5db00(0x416)||_0x296a3c['timeslotSize']===_0xb5db00(0x3f1)?_0x296a3c[_0xb5db00(0x1fd)]:_0xb5db00(0x1a7),_0x52e61e=typeof _0x296a3c['timeZone']==_0xb5db00(0x425)&&_0x296a3c[_0xb5db00(0x164)][_0xb5db00(0x226)]()?_0x296a3c[_0xb5db00(0x164)]:_0xb5db00(0x231),_0x5f1768=this[_0xb5db00(0x39f)](_0x575c52,_0x296a3c);return{..._0x296a3c,'startDateFieldId':_0x340e00,'endDateFieldId':_0x2428f2,'titleFieldId':_0x2dd211,'mode':_0x298c46,'timeslotSize':_0x2e049e,'timeZone':_0x52e61e,'displayColor':_0x5f1768,'fieldSettings':Object[_0xb5db00(0x176)](Object['entries'](_0x296a3c['fieldSettings']??{})[_0xb5db00(0x2be)](([_0x37ff7e])=>{const _0x19c422=_0xb5db00;let _0x3b5ece=_0x575c52[_0x19c422(0x398)][_0x37ff7e];return!!(_0x3b5ece&&_0x3b5ece[_0x19c422(0x3cf)]!==!0x0&&_0x3b5ece[_0x19c422(0x20b)]!==_0x3a044b[_0x19c422(0x22f)]);}))};}[_0x6c183(0x2ed)](_0xc07962,_0x56f23f){const _0x5a5d29=_0x6c183;return _0x56f23f&&this[_0x5a5d29(0x4a4)](_0xc07962,_0x56f23f)?_0x56f23f:this[_0x5a5d29(0x381)](_0xc07962)??_0x56f23f??'';}[_0x6c183(0x381)](_0x67a48,_0x3ad5a7){const _0x448107=_0x6c183;for(let _0x172899 of _0x67a48[_0x448107(0x3b5)])if(_0x172899!==_0x3ad5a7&&this[_0x448107(0x4a4)](_0x67a48,_0x172899))return _0x172899;return null;}[_0x6c183(0x4a4)](_0x4dd16d,_0xa8fd92){const _0x5cfafd=_0x6c183;let _0x18210d=_0x4dd16d['fields'][_0xa8fd92];return!!_0x18210d&&_0x18210d['type']===_0x3a044b['Date']&&_0x18210d[_0x5cfafd(0x3a9)]!==!0x0&&_0x18210d[_0x5cfafd(0x3cf)]!==!0x0&&this['_capabilities'](_0x18210d)[_0x5cfafd(0x4c8)];}[_0x6c183(0x39f)](_0x22c364,_0x52975a){const _0x36dccb=_0x6c183;let _0x5dff4a=_0x52975a[_0x36dccb(0x430)];if((_0x5dff4a==null?void 0x0:_0x5dff4a[_0x36dccb(0x20b)])===_0x36dccb(0x301)){let _0x34a5f6=_0x22c364[_0x36dccb(0x398)][_0x5dff4a['fieldId']];if(_0x34a5f6&&_0x34a5f6[_0x36dccb(0x20b)]===_0x3a044b[_0x36dccb(0x20e)])return _0x5dff4a;}if((_0x5dff4a==null?void 0x0:_0x5dff4a[_0x36dccb(0x20b)])===_0x36dccb(0x446)&&typeof _0x5dff4a[_0x36dccb(0x276)]=='string'&&_0x5dff4a[_0x36dccb(0x276)][_0x36dccb(0x226)]())return{'type':_0x36dccb(0x446),'color':_0x5dff4a['color']};if(_0x52975a['colorFieldId']){let _0x43a620=_0x22c364['fields'][_0x52975a[_0x36dccb(0x1d6)]];if(_0x43a620&&_0x43a620[_0x36dccb(0x20b)]===_0x3a044b['SingleSelect'])return{'type':'selectField','fieldId':_0x52975a[_0x36dccb(0x1d6)]};}return{'type':_0x36dccb(0x446),'color':_0x36dccb(0x1d8)};}['_calendarEventColor'](_0x34b7bc,_0x227639,_0x234c79){const _0x412600=_0x6c183;let _0x36b0cb=_0x234c79[_0x412600(0x430)];if((_0x36b0cb==null?void 0x0:_0x36b0cb[_0x412600(0x20b)])===_0x412600(0x301)){var _0x30cda3;let _0x446b2d=_0x34b7bc[_0x412600(0x398)][_0x36b0cb['fieldId']];if(!_0x446b2d)return;let _0x3ce7b9=_0x227639[_0x412600(0x227)][_0x36b0cb[_0x412600(0x2b0)]],_0x31ad0c=Array[_0x412600(0x431)](_0x3ce7b9)?_0x3ce7b9[0x0]:_0x3ce7b9;return _0x31ad0c==null||(_0x30cda3=Li(_0x446b2d,String(_0x31ad0c)))==null?void 0x0:_0x30cda3[_0x412600(0x276)];}if((_0x36b0cb==null?void 0x0:_0x36b0cb['type'])===_0x412600(0x446))return _0x36b0cb[_0x412600(0x276)];}['_isAllDayCalendarEvent'](_0x4375b4,_0x2c91ea,_0x5569e7,_0x1703d5){const _0x571c17=_0x6c183;var _0x38b957,_0x2094f0;let _0x23dfc6=((_0x38b957=_0x4375b4[_0x571c17(0x2ba)])==null?void 0x0:_0x38b957[_0x571c17(0x22e)])===!0x0,_0x173cab=(_0x2c91ea==null||(_0x2094f0=_0x2c91ea[_0x571c17(0x2ba)])==null?void 0x0:_0x2094f0[_0x571c17(0x22e)])===!0x0;return!_0x23dfc6&&!_0x173cab;}[_0x6c183(0x49d)](_0x5209b9,_0x3e6092){const _0x3d22cc=_0x6c183;var _0x1946a9,_0x5953ca;let _0x17f846=((_0x1946a9=_0x5209b9[_0x3d22cc(0x2ba)])==null?void 0x0:_0x1946a9['includeTime'])===!0x0,_0x4f6525=((_0x5953ca=_0x3e6092[_0x3d22cc(0x2ba)])==null?void 0x0:_0x5953ca['includeTime'])===!0x0;return!_0x17f846&&!_0x4f6525;}[_0x6c183(0x2f6)](_0x41a9e9,_0x418d69){const _0x496164=_0x6c183;let _0x5f3621=this[_0x496164(0x12e)](_0x41a9e9,_0x418d69['config']),_0x2f7a79=_0x41a9e9[_0x496164(0x398)][_0x5f3621[_0x496164(0x4b5)]];if(!_0x2f7a79||_0x2f7a79[_0x496164(0x20b)]!==_0x3a044b[_0x496164(0x346)]||_0x2f7a79[_0x496164(0x3a9)]===!0x0||_0x2f7a79[_0x496164(0x3cf)]===!0x0||!this[_0x496164(0x403)](_0x2f7a79)[_0x496164(0x264)])return{'type':_0x496164(0x3a3),'viewType':_0x3ece31[_0x496164(0x1cf)],'reason':_0x496164(0x4cc),'fieldId':_0x5f3621['startDateFieldId']};let _0xcd21b7=_0x41a9e9[_0x496164(0x398)][_0x5f3621[_0x496164(0x3ef)]];if(!_0xcd21b7||_0xcd21b7['type']!==_0x3a044b['Date']||_0xcd21b7[_0x496164(0x3a9)]===!0x0||_0xcd21b7['system']===!0x0||!this[_0x496164(0x403)](_0xcd21b7)[_0x496164(0x1d0)])return{'type':'invalid','viewType':_0x3ece31[_0x496164(0x1cf)],'reason':_0x496164(0x1aa),'fieldId':_0x5f3621[_0x496164(0x3ef)]};let _0x1cd535=this[_0x496164(0x49d)](_0x2f7a79,_0xcd21b7),_0x31b34e=this['_projectRows'](_0x41a9e9,_0x418d69),_0x12e009=_0x31b34e[_0x496164(0x17a)](_0x3748bb=>{const _0x1c190f=_0x496164;let _0x15f206=dn(_0x3748bb['values'][_0x5f3621[_0x1c190f(0x4b5)]]),_0x3e9123=dn(_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x3ef)]]);if(!Number[_0x1c190f(0x143)](_0x15f206)||!Number['isFinite'](_0x3e9123))return[];let _0x7d0243=Math[_0x1c190f(0x27a)](_0x15f206,_0x3e9123),_0x26ca03=Math[_0x1c190f(0x482)](_0x15f206,_0x3e9123),_0x50f86e=_0x5f3621['progressFieldId']==null?void 0x0:Number(_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x4b1)]]);return[{'recordId':_0x3748bb[_0x1c190f(0x347)],'title':this[_0x1c190f(0x271)](_0x41a9e9,_0x3748bb,_0x5f3621[_0x1c190f(0x1ba)]),'start':_0x7d0243,'end':_0x26ca03,'color':this[_0x1c190f(0x1fc)](_0x41a9e9,_0x3748bb,_0x5f3621),'progress':Number[_0x1c190f(0x143)](_0x50f86e)?_0x50f86e:void 0x0,'workingDayCount':_0x5f3621['workingDaysOnly']?Ti(_0x7d0243,_0x26ca03,_0x5f3621[_0x1c190f(0x1a9)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x489)]??''])}];}),_0x33b9fa=_0x12e009[_0x496164(0x13c)]?Z(Math[_0x496164(0x27a)](..._0x12e009[_0x496164(0x141)](_0x184f14=>_0x184f14[_0x496164(0x41a)]))-0x5a*oi):Z(Date[_0x496164(0x2a4)]()-0x5a*oi),_0x1562c7=_0x12e009[_0x496164(0x13c)]?Z(Math['max'](..._0x12e009['map'](_0x13742c=>_0x13742c[_0x496164(0x439)]))+0x5b*oi):Z(Date['now']()+0x5b*oi),_0x59068d=_i(_0x5f3621['scale'],_0x33b9fa,_0x1562c7,_0x5f3621[_0x496164(0x40e)]?_0x5f3621['workingDays']:void 0x0);return{'type':_0x3ece31[_0x496164(0x1cf)],'fields':this[_0x496164(0x3d9)](_0x41a9e9,{..._0x418d69,'config':_0x5f3621}),'rows':_0x31b34e,'groups':this[_0x496164(0x3eb)](_0x41a9e9,_0x418d69,_0x31b34e),'config':_0x5f3621,'dateRangeAllDay':_0x1cd535,'timeline':{'scale':_0x5f3621['scale'],'start':_0x33b9fa,'end':_0x1562c7,'unitWidth':_0x59068d['unitWidth'],'majorHeaders':_0x59068d['majorHeaders'],'columns':_0x59068d[_0x496164(0x2ea)]},'bars':_0x12e009};}[_0x6c183(0x12e)](_0x1820b3,_0x471d91){const _0xed6a3d=_0x6c183;let _0x500db5=this[_0xed6a3d(0x469)](_0x1820b3,_0x471d91['startDateFieldId'],_0xed6a3d(0x41a)),_0x2792ac=this[_0xed6a3d(0x469)](_0x1820b3,_0x471d91[_0xed6a3d(0x3ef)],_0xed6a3d(0x439))||_0x500db5,_0x2eaac7=_0x471d91[_0xed6a3d(0x1ba)]?_0x1820b3['fields'][_0x471d91[_0xed6a3d(0x1ba)]]:void 0x0,_0x5530d2=_0x2eaac7&&_0x2eaac7[_0xed6a3d(0x3cf)]!==!0x0&&_0x2eaac7[_0xed6a3d(0x20b)]!==_0x3a044b[_0xed6a3d(0x22f)]?_0x471d91[_0xed6a3d(0x1ba)]:_0x1820b3['primaryFieldId'],_0x3157f5=_0x471d91[_0xed6a3d(0x1e1)]===_0xed6a3d(0x2de)||_0x471d91[_0xed6a3d(0x1e1)]==='quarter'||_0x471d91[_0xed6a3d(0x1e1)]==='year'?_0x471d91['scale']:_0xed6a3d(0x43d),_0x2becc6=gi(_0x471d91[_0xed6a3d(0x1a9)]);return{..._0x471d91,'startDateFieldId':_0x500db5,'endDateFieldId':_0x2792ac,'titleFieldId':_0x5530d2,'scale':_0x3157f5,'leftPaneWidth':typeof _0x471d91[_0xed6a3d(0x3e3)]=='number'?_0x471d91[_0xed6a3d(0x3e3)]:void 0x0,'leftPaneCollapsed':_0x471d91[_0xed6a3d(0x458)]===!0x0,'showTodayLine':_0x471d91[_0xed6a3d(0x450)]!==!0x1,'displayColor':this[_0xed6a3d(0x3be)](_0x1820b3,_0x471d91),'fieldSettings':Object[_0xed6a3d(0x176)](Object[_0xed6a3d(0x279)](_0x471d91['fieldSettings']??{})['filter'](([_0x3391b7])=>{const _0x521970=_0xed6a3d;let _0x12c7c8=_0x1820b3[_0x521970(0x398)][_0x3391b7];return!!(_0x12c7c8&&_0x12c7c8['system']!==!0x0&&_0x12c7c8['type']!==_0x3a044b[_0x521970(0x22f)]);})),'workingDaysOnly':_0x471d91[_0xed6a3d(0x40e)]===!0x0,'workingDays':_0x2becc6};}['_resolveGanttDateFieldId'](_0x3c6ac9,_0x9aec31,_0x2d3040){const _0x31a297=_0x6c183;if(_0x9aec31&&this['_isGanttDateField'](_0x3c6ac9,_0x9aec31,_0x2d3040)||_0x9aec31)return _0x9aec31;for(let _0x3d26e2 of _0x3c6ac9['fieldOrder'])if(this[_0x31a297(0x4bc)](_0x3c6ac9,_0x3d26e2,_0x2d3040))return _0x3d26e2;return _0x9aec31??'';}[_0x6c183(0x4bc)](_0x12f909,_0x566db7,_0x53245f){const _0x5c37fe=_0x6c183;let _0x13d709=_0x12f909['fields'][_0x566db7];if(!_0x13d709||_0x13d709['type']!==_0x3a044b[_0x5c37fe(0x346)]||_0x13d709['readonly']===!0x0||_0x13d709[_0x5c37fe(0x3cf)]===!0x0)return!0x1;let _0x10e985=this[_0x5c37fe(0x403)](_0x13d709);return _0x53245f===_0x5c37fe(0x41a)?_0x10e985[_0x5c37fe(0x264)]:_0x10e985[_0x5c37fe(0x1d0)];}['_normalizeGanttDisplayColor'](_0x4cf8f6,_0x36957f){const _0x1fbe29=_0x6c183;let _0x43ef54=_0x36957f[_0x1fbe29(0x430)];if((_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])===_0x1fbe29(0x301)){let _0x35c0ea=_0x4cf8f6[_0x1fbe29(0x398)][_0x43ef54[_0x1fbe29(0x2b0)]];if(_0x35c0ea&&_0x35c0ea['type']===_0x3a044b[_0x1fbe29(0x20e)])return _0x43ef54;}return(_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])===_0x1fbe29(0x3da)&&Array['isArray'](_0x43ef54['rules'])?{'type':_0x1fbe29(0x3da),'rules':_0x43ef54[_0x1fbe29(0x4c4)][_0x1fbe29(0x2be)](_0x365ac6=>!!_0x4cf8f6['fields'][_0x365ac6[_0x1fbe29(0x2b0)]])}:(_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])==='custom'&&typeof _0x43ef54[_0x1fbe29(0x276)]==_0x1fbe29(0x425)&&_0x43ef54[_0x1fbe29(0x276)][_0x1fbe29(0x226)]()?{'type':_0x1fbe29(0x446),'color':_0x43ef54[_0x1fbe29(0x276)]}:{'type':_0x1fbe29(0x446),'color':'#14b8a6'};}[_0x6c183(0x1fc)](_0x537fbe,_0x1fce71,_0x365116){const _0x466fd5=_0x6c183;let _0x1af3f9=_0x365116[_0x466fd5(0x430)];if((_0x1af3f9==null?void 0x0:_0x1af3f9[_0x466fd5(0x20b)])===_0x466fd5(0x3da)){let _0xdcba3e=_0x1af3f9[_0x466fd5(0x4c4)]['find'](_0xba8ee=>this[_0x466fd5(0x341)](_0x537fbe,_0x1fce71,_0xba8ee));if(_0xdcba3e)return _0xdcba3e[_0x466fd5(0x276)];}if((_0x1af3f9==null?void 0x0:_0x1af3f9[_0x466fd5(0x20b)])===_0x466fd5(0x301)){let _0x41221e=_0x537fbe[_0x466fd5(0x398)][_0x1af3f9[_0x466fd5(0x2b0)]];if(_0x41221e){var _0x38f085;let _0x5ddf08=_0x1fce71['values'][_0x1af3f9[_0x466fd5(0x2b0)]],_0x3afd8e=Array[_0x466fd5(0x431)](_0x5ddf08)?_0x5ddf08[0x0]:_0x5ddf08,_0x5dc7bb=_0x3afd8e==null||(_0x38f085=Li(_0x41221e,String(_0x3afd8e)))==null?void 0x0:_0x38f085[_0x466fd5(0x276)];if(_0x5dc7bb)return _0x5dc7bb;}}return(_0x1af3f9==null?void 0x0:_0x1af3f9['type'])===_0x466fd5(0x446)?_0x1af3f9[_0x466fd5(0x276)]:'#14b8a6';}[_0x6c183(0x341)](_0x5cfa6a,_0x52b25e,_0x2447ab){const _0x3a7bf5=_0x6c183;let _0x32df92=_0x5cfa6a['fields'][_0x2447ab[_0x3a7bf5(0x2b0)]];return _0x32df92?xn(_0x52b25e[_0x3a7bf5(0x227)][_0x32df92['id']],_0x2447ab['operator'],_0x2447ab[_0x3a7bf5(0x302)],_0x32df92,{'dateMode':_0x2447ab['dateMode']}):!0x1;}[_0x6c183(0x36c)](_0x376ba9,_0xc0a926){const _0x29d65e=_0x6c183;let _0x1497f7=this['_projectRows'](_0x376ba9,_0xc0a926),_0x4558e1=this['_normalizeGalleryConfig'](_0x376ba9,_0xc0a926[_0x29d65e(0x2ba)]??{}),_0x1243bd=this[_0x29d65e(0x3d9)](_0x376ba9,_0xc0a926);return{'type':_0x3ece31[_0x29d65e(0x434)],'fields':_0x1243bd,'rows':_0x1497f7,'groups':this['_projectGroups'](_0x376ba9,_0xc0a926,_0x1497f7),'titleFieldId':_0x4558e1[_0x29d65e(0x39b)][_0x29d65e(0x1ba)],'coverFieldId':_0x4558e1['coverFieldId'],'cardLayout':_0x4558e1[_0x29d65e(0x33c)]??_0x29d65e(0x339),'showFieldNames':_0x4558e1[_0x29d65e(0x15d)]!==!0x1,'visibleCardFieldIds':this[_0x29d65e(0x47e)](_0x376ba9,_0xc0a926,_0x4558e1),'cardSize':_0x4558e1[_0x29d65e(0x37f)]??_0x29d65e(0x1a7),'cards':_0x1497f7[_0x29d65e(0x141)](_0x13b966=>({'recordId':_0x13b966[_0x29d65e(0x347)],'title':this['_title'](_0x376ba9,_0x13b966,_0x4558e1[_0x29d65e(0x39b)][_0x29d65e(0x1ba)]),'values':_0x13b966[_0x29d65e(0x227)]}))};}[_0x6c183(0x184)](_0xaf6446,_0x55617a){const _0x240d23=_0x6c183;let _0x350a05=_0x55617a['card']??{'fieldIds':[]},_0x58e4d5=this[_0x240d23(0x3f4)](_0xaf6446,_0x350a05[_0x240d23(0x1ba)]),_0x1767ff=this[_0x240d23(0x1ac)](_0xaf6446,_0x55617a),_0x5e07d2=_0x55617a['cardSize']===_0x240d23(0x2c0)||_0x55617a[_0x240d23(0x37f)]===_0x240d23(0x3c0)?_0x55617a['cardSize']:_0x240d23(0x1a7);return{..._0x55617a,'coverFieldId':_0x1767ff,'cardLayout':_0x55617a['cardLayout']===_0x240d23(0x2a2)?_0x240d23(0x2a2):'normal','showFieldNames':_0x55617a[_0x240d23(0x15d)]!==!0x1,'fieldSettings':Object[_0x240d23(0x176)](Object[_0x240d23(0x279)](_0x55617a[_0x240d23(0x48f)]??{})['filter'](([_0x587e5f])=>{const _0x3cb423=_0x240d23;let _0x3172b1=_0xaf6446[_0x3cb423(0x398)][_0x587e5f];return!!(_0x3172b1&&_0x3172b1[_0x3cb423(0x3cf)]!==!0x0&&_0x3172b1[_0x3cb423(0x20b)]!==_0x3a044b[_0x3cb423(0x22f)]);})),'card':{..._0x350a05,'titleFieldId':_0x58e4d5,'coverFieldId':_0x1767ff,'fieldIds':Array[_0x240d23(0x431)](_0x350a05['fieldIds'])?_0x350a05[_0x240d23(0x31c)]:[]},'cardSize':_0x5e07d2};}[_0x6c183(0x3f4)](_0x18846f,_0x4f8a75){const _0x48a591=_0x6c183;let _0x11b9d8=_0x4f8a75?_0x18846f[_0x48a591(0x398)][_0x4f8a75]:void 0x0;return _0x11b9d8&&_0x11b9d8['system']!==!0x0&&_0x11b9d8[_0x48a591(0x20b)]!==_0x3a044b['RecordId']?_0x11b9d8['id']:Zr(_0x18846f);}['_resolveGalleryCoverFieldId'](_0x41f6c3,_0x31f5b3){const _0x393bdf=_0x6c183;var _0x43f49b;let _0x25d07e=_0x31f5b3[_0x393bdf(0x21a)]??((_0x43f49b=_0x31f5b3[_0x393bdf(0x39b)])==null?void 0x0:_0x43f49b['coverFieldId'])??null;if(!_0x25d07e)return null;let _0x394436=_0x41f6c3[_0x393bdf(0x398)][_0x25d07e];return _0x394436&&this['_capabilities'](_0x394436)['usableAsCardCover']?_0x394436['id']:null;}['_resolveGalleryCardFieldIds'](_0x20b267,_0x14da62,_0x5c4ecb){const _0x5d2da9=_0x6c183;var _0x5c730c,_0x1cdfe0,_0x2ae84d;let _0x3cfbd9=_0x5c4ecb[_0x5d2da9(0x48f)]??{},_0x5e2ce5=((_0x5c730c=_0x5c4ecb[_0x5d2da9(0x39b)])==null?void 0x0:_0x5c730c[_0x5d2da9(0x1ba)])??Zr(_0x20b267),_0x36793a=_0x5c4ecb[_0x5d2da9(0x21a)]??((_0x1cdfe0=_0x5c4ecb[_0x5d2da9(0x39b)])==null?void 0x0:_0x1cdfe0[_0x5d2da9(0x21a)])??null,_0x32d0ab=(_0x2ae84d=_0x5c4ecb[_0x5d2da9(0x39b)])!=null&&(_0x2ae84d=_0x2ae84d[_0x5d2da9(0x31c)])!=null&&_0x2ae84d['length']?_0x5c4ecb[_0x5d2da9(0x39b)][_0x5d2da9(0x31c)]:Qr(_0x20b267,[_0x5e2ce5,_0x36793a,_0x20b267['primaryFieldId']]);return _0x32d0ab[_0x5d2da9(0x2be)](_0x511ab0=>{const _0x501d59=_0x5d2da9;var _0x550206,_0x796eac;let _0x1cfb01=_0x20b267['fields'][_0x511ab0];return!(!_0x1cfb01||_0x1cfb01[_0x501d59(0x3cf)]===!0x0||_0x1cfb01[_0x501d59(0x20b)]===_0x3a044b[_0x501d59(0x22f)]||_0x1cfb01['id']===_0x5e2ce5||_0x1cfb01['id']===_0x36793a||(_0x550206=_0x14da62[_0x501d59(0x48f)])!=null&&(_0x550206=_0x550206[_0x511ab0])!=null&&_0x550206[_0x501d59(0x1b2)]||(_0x796eac=_0x3cfbd9[_0x511ab0])!=null&&_0x796eac[_0x501d59(0x1b2)]);})['sort']((_0x15cf0d,_0x318898)=>{const _0x1d5319=_0x5d2da9;var _0x383320,_0x4df36d;return(((_0x383320=_0x3cfbd9[_0x15cf0d])==null?void 0x0:_0x383320['order'])??_0x32d0ab[_0x1d5319(0x44e)](_0x15cf0d))-(((_0x4df36d=_0x3cfbd9[_0x318898])==null?void 0x0:_0x4df36d[_0x1d5319(0x316)])??_0x32d0ab[_0x1d5319(0x44e)](_0x318898));});}[_0x6c183(0x3d9)](_0x360eca,_0x11f55a){const _0x48d6e8=_0x6c183;var _0x12c473;return((_0x12c473=_0x11f55a[_0x48d6e8(0x3b5)])!=null&&_0x12c473[_0x48d6e8(0x13c)]?_0x11f55a[_0x48d6e8(0x3b5)]:_0x360eca[_0x48d6e8(0x3b5)])[_0x48d6e8(0x17a)](_0x28f66d=>{const _0x4a1ddf=_0x48d6e8;var _0x4d0b9e;let _0x5c36d9=_0x360eca['fields'][_0x28f66d],_0x2bf7b5=((_0x4d0b9e=_0x11f55a['fieldSettings'])==null?void 0x0:_0x4d0b9e[_0x28f66d])??{};return!_0x5c36d9||_0x5c36d9[_0x4a1ddf(0x3cf)]===!0x0||_0x5c36d9[_0x4a1ddf(0x20b)]===_0x3a044b[_0x4a1ddf(0x22f)]||_0x2bf7b5['hidden']?[]:[{'id':_0x5c36d9['id'],'name':_0x5c36d9[_0x4a1ddf(0x2a3)],'description':_0x5c36d9[_0x4a1ddf(0x1ce)],'type':_0x5c36d9[_0x4a1ddf(0x20b)],'config':_0x5c36d9[_0x4a1ddf(0x2ba)],'width':_0x2bf7b5['width'],'setting':_0x2bf7b5}];});}[_0x6c183(0x449)](_0x34f254,_0x47b9d6){const _0x1c9cda=_0x6c183;var _0x498fe8;return I('BaseProjection.projectRows',()=>{const _0x244278=_0x2b5a;var _0x224ed4,_0x6c36a0;let _0x534c59=this['_projectTableRows'](_0x34f254),_0x2c5bc8=this[_0x244278(0x312)](_0x34f254['id'],_0x47b9d6),_0x4d648e=this[_0x244278(0x42b)](_0x34f254['id']),_0x5e19d0=this[_0x244278(0x2c6)][_0x244278(0x43e)](_0x2c5bc8);if(_0x5e19d0&&_0x5e19d0[_0x244278(0x2dd)]===this[_0x244278(0x191)]&&_0x5e19d0[_0x244278(0x291)]===this[_0x244278(0x353)](_0x34f254['id'])){if(_0x5e19d0['cellRevision']===_0x4d648e&&_0x5e19d0[_0x244278(0x2f8)]===_0x534c59)return _0x5e19d0[_0x244278(0x2c5)];if(_0x5e19d0['cellRevision']!==_0x4d648e&&!this['_cellInvalidationsTouchFields'](_0x34f254['id'],_0x5e19d0['cellRevision'],_0x4d648e,this[_0x244278(0x3b3)](_0x47b9d6))){let _0x56af3f=_0x5e19d0[_0x244278(0x2c5)]===_0x5e19d0[_0x244278(0x2f8)]?_0x534c59:this[_0x244278(0x239)](_0x5e19d0[_0x244278(0x2c5)],_0x534c59);if(_0x56af3f)return this['_projectedViewRowsCache'][_0x244278(0x49e)](_0x2c5bc8,{..._0x5e19d0,'rows':_0x56af3f,'baseRows':_0x534c59,'cellRevision':_0x4d648e}),_0x56af3f;}}let _0x456c5b=I(_0x244278(0x236),()=>this['_sortRows'](_0x34f254,_0x47b9d6,this[_0x244278(0x19a)](_0x34f254,_0x47b9d6,_0x534c59)),{'tableId':_0x34f254['id'],'viewId':_0x47b9d6==null?void 0x0:_0x47b9d6['id'],'viewType':_0x47b9d6==null?void 0x0:_0x47b9d6[_0x244278(0x20b)],'rows':_0x534c59[_0x244278(0x13c)],'filters':(_0x47b9d6==null||(_0x224ed4=_0x47b9d6[_0x244278(0x2be)])==null?void 0x0:_0x224ed4[_0x244278(0x396)][_0x244278(0x13c)])??0x0,'sorts':(_0x47b9d6==null||(_0x6c36a0=_0x47b9d6[_0x244278(0x277)])==null?void 0x0:_0x6c36a0[_0x244278(0x13c)])??0x0});return this[_0x244278(0x2c6)][_0x244278(0x49e)](_0x2c5bc8,{'table':_0x34f254,'rows':_0x456c5b,'baseRows':_0x534c59,'globalRevision':this[_0x244278(0x191)],'tableRevision':this[_0x244278(0x353)](_0x34f254['id']),'cellRevision':_0x4d648e}),_0x456c5b;},{'tableId':_0x34f254['id'],'viewId':_0x47b9d6==null?void 0x0:_0x47b9d6['id'],'viewType':_0x47b9d6==null?void 0x0:_0x47b9d6[_0x1c9cda(0x20b)],'records':((_0x498fe8=_0x34f254[_0x1c9cda(0x1e7)])==null?void 0x0:_0x498fe8['length'])??Object[_0x1c9cda(0x24c)](_0x34f254['records']??{})['length']});}[_0x6c183(0x32b)](_0x2d40b7){const _0x211a8d=_0x6c183;var _0x4a3bf7;return I(_0x211a8d(0x4c9),()=>{const _0x46c208=_0x211a8d;var _0x2665e8;let _0x13467a=this[_0x46c208(0x42b)](_0x2d40b7['id']),_0x528595=this[_0x46c208(0x484)][_0x46c208(0x43e)](_0x2d40b7['id']);if(_0x528595&&_0x528595['globalRevision']===this[_0x46c208(0x191)]&&_0x528595[_0x46c208(0x291)]===this[_0x46c208(0x353)](_0x2d40b7['id'])){if(_0x528595[_0x46c208(0x21d)]===_0x13467a&&fi(_0x528595['table'],_0x2d40b7))return _0x528595['table']=_0x2d40b7,_0x528595[_0x46c208(0x2c5)];let _0x5ede6d=this[_0x46c208(0x44c)](_0x2d40b7,_0x528595,_0x13467a);if(_0x5ede6d)return _0x5ede6d;}ui(_0x2d40b7)||L(_0x2d40b7);let _0x4becc7=(_0x2665e8=_0x2d40b7[_0x46c208(0x1e7)])!=null&&_0x2665e8['length']?_0x2d40b7[_0x46c208(0x1e7)]:hi(_0x2d40b7[_0x46c208(0x258)]),_0x5a1128=I(_0x46c208(0x2b4),()=>{const _0x1733fa=_0x46c208;let _0x4d123d=[];for(let _0x568116 of _0x4becc7){let _0x329c22=_0x2d40b7['records'][_0x568116];if(!_0x329c22)continue;let _0x116d61={};for(let _0x33e3d1 of _0x2d40b7[_0x1733fa(0x3b5)])_0x116d61[_0x33e3d1]=yt(_0x2d40b7,_0x329c22['id'],_0x33e3d1);_0x4d123d['push']({'recordId':_0x329c22['id'],'values':_0x116d61});}return _0x4d123d;},{'tableId':_0x2d40b7['id'],'records':_0x4becc7[_0x46c208(0x13c)],'fields':_0x2d40b7[_0x46c208(0x3b5)]['length']});return this[_0x46c208(0x484)][_0x46c208(0x49e)](_0x2d40b7['id'],{'table':_0x2d40b7,'rows':_0x5a1128,'rowIndexById':li(_0x5a1128),'globalRevision':this[_0x46c208(0x191)],'tableRevision':this[_0x46c208(0x353)](_0x2d40b7['id']),'cellRevision':_0x13467a}),_0x5a1128;},{'tableId':_0x2d40b7['id'],'records':((_0x4a3bf7=_0x2d40b7[_0x211a8d(0x1e7)])==null?void 0x0:_0x4a3bf7[_0x211a8d(0x13c)])??Object[_0x211a8d(0x24c)](_0x2d40b7[_0x211a8d(0x258)]??{})[_0x211a8d(0x13c)],'fields':_0x2d40b7[_0x211a8d(0x3b5)]['length']});}[_0x6c183(0x44c)](_0x1f14bd,_0x1f6cdb,_0x50593c){const _0x182c41=_0x6c183;let _0x568a9b=(this['_cellInvalidations']['get'](_0x1f14bd['id'])??[])[_0x182c41(0x2be)](_0x340743=>_0x340743['revision']>_0x1f6cdb[_0x182c41(0x21d)]&&_0x340743[_0x182c41(0x4c5)]<=_0x50593c);if(!_0x568a9b['length'])return _0x1f6cdb[_0x182c41(0x4c7)]===_0x1f14bd?_0x1f6cdb[_0x182c41(0x2c5)]:null;let _0x356198=_0x1f6cdb[_0x182c41(0x2c5)],_0x1601ac=new Map();for(let _0x42b993 of _0x568a9b){let _0x5d149d=_0x1601ac[_0x182c41(0x43e)](_0x42b993[_0x182c41(0x347)]);_0x5d149d||(_0x5d149d=new Set(),_0x1601ac['set'](_0x42b993[_0x182c41(0x347)],_0x5d149d)),_0x5d149d[_0x182c41(0x2ee)](_0x42b993['fieldId']);}for(let [_0x3506b7,_0x24d76f]of _0x1601ac){if(!_0x1f14bd[_0x182c41(0x258)][_0x3506b7])return null;let _0x3c522d=_0x1f6cdb[_0x182c41(0x3d8)]['get'](_0x3506b7);if(_0x3c522d==null)return null;_0x356198===_0x1f6cdb['rows']&&(_0x356198=[..._0x1f6cdb[_0x182c41(0x2c5)]]);let _0x18818f=_0x356198[_0x3c522d],_0x272c5f={..._0x18818f[_0x182c41(0x227)]};_0x24d76f[_0x182c41(0x2e0)](_0x206c13=>{_0x272c5f[_0x206c13]=yt(_0x1f14bd,_0x3506b7,_0x206c13);}),_0x356198[_0x3c522d]={..._0x18818f,'values':_0x272c5f};}let _0x1d6f33={'table':_0x1f14bd,'rows':_0x356198,'rowIndexById':_0x1f6cdb[_0x182c41(0x3d8)],'globalRevision':this[_0x182c41(0x191)],'tableRevision':this[_0x182c41(0x353)](_0x1f14bd['id']),'cellRevision':_0x50593c};return this['_projectedRowsCache'][_0x182c41(0x49e)](_0x1f14bd['id'],_0x1d6f33),this[_0x182c41(0x40c)][_0x182c41(0x49e)](_0x1f14bd['id'],(this[_0x182c41(0x40c)][_0x182c41(0x43e)](_0x1f14bd['id'])??[])[_0x182c41(0x2be)](_0x35aed6=>_0x35aed6[_0x182c41(0x4c5)]>Math['max'](0x0,_0x50593c-0x100))),_0x356198;}[_0x6c183(0x239)](_0x1d44c6,_0x50fff7){const _0x5e6449=_0x6c183;let _0x1d8219=new Map(_0x50fff7[_0x5e6449(0x141)](_0x292643=>[_0x292643[_0x5e6449(0x347)],_0x292643])),_0x4824ba=!0x1,_0x2ad52e=_0x1d44c6['map'](_0xc5c951=>{const _0x296164=_0x5e6449;let _0x32d144=_0x1d8219[_0x296164(0x43e)](_0xc5c951['recordId']);return _0x32d144?_0x32d144===_0xc5c951?_0xc5c951:(_0x4824ba=!0x0,_0x32d144):_0xc5c951;});return _0x4824ba?_0x2ad52e:_0x1d44c6;}[_0x6c183(0x237)](_0x2cb009,_0x2f94c6,_0x126f39,_0x151a56){const _0x17ef79=_0x6c183;return!_0x151a56['size']||_0x2f94c6===_0x126f39?!0x1:_0x126f39-_0x2f94c6>0x100||(this[_0x17ef79(0x40c)][_0x17ef79(0x43e)](_0x2cb009)??[])[_0x17ef79(0x185)](_0x5f2675=>_0x5f2675[_0x17ef79(0x4c5)]>_0x2f94c6&&_0x5f2675[_0x17ef79(0x4c5)]<=_0x126f39&&_0x151a56[_0x17ef79(0x34b)](_0x5f2675[_0x17ef79(0x2b0)]));}['_filterSortFieldIds'](_0x5d71c1){const _0x29a4b2=_0x6c183;var _0x2909de,_0x5b1333;let _0x23d0fc=new Set();return _0x5d71c1==null||(_0x2909de=_0x5d71c1[_0x29a4b2(0x2be)])==null||_0x2909de[_0x29a4b2(0x396)][_0x29a4b2(0x2e0)](_0x50916b=>_0x23d0fc[_0x29a4b2(0x2ee)](_0x50916b[_0x29a4b2(0x2b0)])),_0x5d71c1==null||(_0x5b1333=_0x5d71c1[_0x29a4b2(0x277)])==null||_0x5b1333['forEach'](_0x9f3820=>_0x23d0fc[_0x29a4b2(0x2ee)](_0x9f3820['fieldId'])),_0x23d0fc;}['_groupProjectionFieldIds'](_0x13c31d){const _0x3549d3=_0x6c183;var _0x12afae;let _0x4c837f=this[_0x3549d3(0x3b3)](_0x13c31d);return(_0x12afae=_0x13c31d[_0x3549d3(0x1f2)])==null||_0x12afae[_0x3549d3(0x2e0)](_0x89f287=>_0x4c837f[_0x3549d3(0x2ee)](_0x89f287[_0x3549d3(0x2b0)])),_0x4c837f;}[_0x6c183(0x19a)](_0x26b5b9,_0x5d8730,_0x107718){const _0x1d8e91=_0x6c183;let _0x33c84d=_0x5d8730==null?void 0x0:_0x5d8730[_0x1d8e91(0x2be)];if(!(_0x33c84d!=null&&_0x33c84d[_0x1d8e91(0x396)][_0x1d8e91(0x13c)]))return _0x107718;let _0x45a85b=_0x33c84d[_0x1d8e91(0x396)][_0x1d8e91(0x2be)](_0x312696=>!Ii(_0x312696));return _0x45a85b['length']?_0x107718[_0x1d8e91(0x2be)](_0x5f5987=>{const _0x2a9736=_0x1d8e91;if(_0x33c84d[_0x2a9736(0x278)]===_0x6d8219['OR']){for(let _0x20df96 of _0x45a85b){let _0x5db49a=_0x26b5b9['fields'][_0x20df96['fieldId']];if(!_0x5db49a||this['_fieldRegistry'][_0x2a9736(0x43e)](_0x5db49a[_0x2a9736(0x20b)])[_0x2a9736(0x2be)](_0x5f5987[_0x2a9736(0x227)][_0x5db49a['id']],_0x20df96[_0x2a9736(0x220)],_0x20df96[_0x2a9736(0x302)],_0x5db49a))return!0x0;}return!0x1;}for(let _0x52b382 of _0x45a85b){let _0x56d243=_0x26b5b9[_0x2a9736(0x398)][_0x52b382[_0x2a9736(0x2b0)]];if(_0x56d243&&!this[_0x2a9736(0x287)]['get'](_0x56d243[_0x2a9736(0x20b)])[_0x2a9736(0x2be)](_0x5f5987['values'][_0x56d243['id']],_0x52b382[_0x2a9736(0x220)],_0x52b382[_0x2a9736(0x302)],_0x56d243))return!0x1;}return!0x0;}):_0x107718;}[_0x6c183(0x30a)](_0x573fe5,_0x180d52,_0x4da7aa){const _0x493294=_0x6c183;let _0x5add88=(_0x180d52==null?void 0x0:_0x180d52[_0x493294(0x277)])??[];if(!_0x5add88['length'])return _0x4da7aa;let _0x4d54d8=_0x5add88[_0x493294(0x17a)](_0x232f67=>{const _0x19bd14=_0x493294;let _0x551456=_0x573fe5[_0x19bd14(0x398)][_0x232f67[_0x19bd14(0x2b0)]];return _0x551456?[{..._0x232f67,'field':_0x551456}]:[];});return _0x4d54d8['length']?this[_0x493294(0x3e2)](_0x4d54d8)?this[_0x493294(0x230)](_0x4d54d8,_0x4da7aa):[..._0x4da7aa][_0x493294(0x277)]((_0x5531b9,_0x2eea00)=>{const _0x4a29d3=_0x493294;for(let _0x4b75a7 of _0x4d54d8){let _0x4a88ce=_0x4b75a7[_0x4a29d3(0x2d5)],_0x3b4d9a=this['_fieldRegistry'][_0x4a29d3(0x43e)](_0x4a88ce[_0x4a29d3(0x20b)])[_0x4a29d3(0x139)](_0x5531b9[_0x4a29d3(0x227)][_0x4a88ce['id']],_0x2eea00[_0x4a29d3(0x227)][_0x4a88ce['id']],_0x4a88ce);if(_0x3b4d9a!==0x0)return _0x4b75a7[_0x4a29d3(0x12f)]===_0x574bb1[_0x4a29d3(0x35c)]?-_0x3b4d9a:_0x3b4d9a;}return 0x0;}):_0x4da7aa;}[_0x6c183(0x3e2)](_0x50a031){const _0x12e12b=_0x6c183;return _0x50a031[_0x12e12b(0x387)](_0x7113f9=>ai['has'](_0x7113f9['field'][_0x12e12b(0x20b)]));}[_0x6c183(0x230)](_0x52415f,_0x592de4){const _0xb3df92=_0x6c183;return _0x592de4[_0xb3df92(0x141)]((_0x5e3236,_0xa240a9)=>({'row':_0x5e3236,'index':_0xa240a9,'keys':_0x52415f['map'](_0x1f3915=>_0x5e3236[_0xb3df92(0x227)][_0x1f3915[_0xb3df92(0x2b0)]])}))[_0xb3df92(0x277)]((_0x5e186a,_0x42a86b)=>{const _0x5f8785=_0xb3df92;for(let _0x3caeb6=0x0;_0x3caeb6<_0x52415f['length'];_0x3caeb6++){let _0x6ce8ce=Fi(_0x5e186a['keys'][_0x3caeb6],_0x42a86b[_0x5f8785(0x24c)][_0x3caeb6]);if(_0x6ce8ce!==0x0)return _0x52415f[_0x3caeb6][_0x5f8785(0x12f)]===_0x574bb1[_0x5f8785(0x35c)]?-_0x6ce8ce:_0x6ce8ce;}return _0x5e186a['index']-_0x42a86b[_0x5f8785(0x159)];})[_0xb3df92(0x141)](_0x2d3c0a=>_0x2d3c0a[_0xb3df92(0x4b3)]);}[_0x6c183(0x3eb)](_0x4d2720,_0x49e756,_0xbc4380){const _0x29f414=_0x6c183;var _0x17327a;return I(_0x29f414(0x124),()=>{const _0x229046=_0x29f414;var _0x581a4b;if(!((_0x581a4b=_0x49e756[_0x229046(0x1f2)])!=null&&_0x581a4b[_0x229046(0x13c)]))return[];let _0x134425=_0x49e756[_0x229046(0x1f2)][_0x229046(0x2be)](_0x4817f4=>_0x4d2720[_0x229046(0x398)][_0x4817f4['fieldId']]);if(!_0x134425[_0x229046(0x13c)])return[];let _0x1d724e=this[_0x229046(0x3d5)](_0x4d2720['id'],_0x49e756,_0x134425),_0x525741=this[_0x229046(0x42b)](_0x4d2720['id']),_0x468964=this[_0x229046(0x14f)][_0x229046(0x43e)](_0x1d724e);if(_0x468964&&_0x468964[_0x229046(0x2dd)]===this[_0x229046(0x191)]&&_0x468964[_0x229046(0x291)]===this[_0x229046(0x353)](_0x4d2720['id'])){if(_0x468964[_0x229046(0x21d)]===_0x525741&&_0x468964[_0x229046(0x2c5)]===_0xbc4380)return _0x468964[_0x229046(0x345)];if(_0x468964[_0x229046(0x21d)]!==_0x525741&&!this[_0x229046(0x237)](_0x4d2720['id'],_0x468964['cellRevision'],_0x525741,this[_0x229046(0x150)](_0x49e756)))return this[_0x229046(0x14f)][_0x229046(0x49e)](_0x1d724e,{..._0x468964,'rows':_0xbc4380,'cellRevision':_0x525741}),_0x468964[_0x229046(0x345)];}let _0x22f523=new Map();for(let _0x5a7d6f of _0xbc4380){let _0x420685=_0x22f523,_0x9ceeca='';for(let _0x2de4a7=0x0;_0x2de4a7<_0x134425[_0x229046(0x13c)];_0x2de4a7++){let _0x3cd911=_0x134425[_0x2de4a7],_0x32457b=_0x5a7d6f['values'][_0x3cd911['fieldId']],_0x131ea8=ci(_0x32457b),_0x39f596=_0x3cd911[_0x229046(0x2b0)]+'\x00'+_0x131ea8,_0x210c47=_0x9ceeca+'/'+_0x3cd911[_0x229046(0x2b0)]+':'+_0x131ea8,_0x1d1a56=_0x420685[_0x229046(0x43e)](_0x39f596);_0x1d1a56||(_0x1d1a56={'key':_0x131ea8,'value':_0x32457b,'path':_0x210c47,'label':_0x131ea8||_0x229046(0x445),'fieldId':_0x3cd911[_0x229046(0x2b0)],'level':_0x2de4a7,'recordIds':[],'children':new Map()},_0x420685[_0x229046(0x49e)](_0x39f596,_0x1d1a56)),_0x1d1a56[_0x229046(0x397)][_0x229046(0x174)](_0x5a7d6f[_0x229046(0x347)]),_0x420685=_0x1d1a56[_0x229046(0x126)],_0x9ceeca=_0x210c47;}}let _0x51b526=this[_0x229046(0x358)](_0x134425,_0x22f523,0x0);return this[_0x229046(0x14f)][_0x229046(0x49e)](_0x1d724e,{'table':_0x4d2720,'rows':_0xbc4380,'groups':_0x51b526,'globalRevision':this[_0x229046(0x191)],'tableRevision':this[_0x229046(0x353)](_0x4d2720['id']),'cellRevision':_0x525741}),_0x51b526;},{'tableId':_0x4d2720['id'],'viewId':_0x49e756['id'],'viewType':_0x49e756[_0x29f414(0x20b)],'rows':_0xbc4380[_0x29f414(0x13c)],'groupFields':((_0x17327a=_0x49e756[_0x29f414(0x1f2)])==null?void 0x0:_0x17327a['length'])??0x0});}[_0x6c183(0x358)](_0x330f92,_0x3f3138,_0x32c956){const _0x4131e9=_0x6c183;var _0x59b6ff;let _0x189fce=Array[_0x4131e9(0x1d5)](_0x3f3138['values']()),_0x32e90c=(_0x59b6ff=_0x330f92[_0x32c956])==null?void 0x0:_0x59b6ff[_0x4131e9(0x12f)];return _0x32e90c&&_0x189fce[_0x4131e9(0x277)]((_0x5528c6,_0x527102)=>{const _0x15e803=_0x4131e9;let _0x15128f=_0x5528c6[_0x15e803(0x2e1)]['localeCompare'](_0x527102[_0x15e803(0x2e1)]);return _0x32e90c===_0x574bb1[_0x15e803(0x35c)]?-_0x15128f:_0x15128f;}),_0x189fce[_0x4131e9(0x141)](_0x13ef2b=>({'key':_0x13ef2b[_0x4131e9(0x2e1)],'value':_0x13ef2b[_0x4131e9(0x350)],'path':_0x13ef2b[_0x4131e9(0x2c2)],'label':_0x13ef2b['label'],'fieldId':_0x13ef2b['fieldId'],'level':_0x13ef2b[_0x4131e9(0x395)],'recordIds':_0x13ef2b['recordIds'],'children':this[_0x4131e9(0x358)](_0x330f92,_0x13ef2b['children'],_0x32c956+0x1)}));}[_0x6c183(0x271)](_0x3eadc9,_0x3d39d0,_0x3c4c51){const _0x3bc5c0=_0x6c183;let _0x1cc03f=_0x3c4c51??_0x3eadc9[_0x3bc5c0(0x3b2)],_0x4bf5ae=_0x3d39d0[_0x3bc5c0(0x227)][_0x1cc03f];return _0x4bf5ae==null?'':String(_0x4bf5ae);}[_0x6c183(0x373)](_0x4bd508){const _0x50ecf2=_0x6c183;if(Array['isArray'](_0x4bd508))return _0x4bd508[_0x50ecf2(0x141)](String);if(typeof _0x4bd508==_0x50ecf2(0x425)&&_0x4bd508)return[_0x4bd508];}[_0x6c183(0x403)](_0x2e75c3){const _0x4d879d=_0x6c183;return this[_0x4d879d(0x287)][_0x4d879d(0x43e)](_0x2e75c3['type'])[_0x4d879d(0x2fd)](_0x2e75c3);}};si=X([Y(0x0,_0x490adb(mr))],si);function _0x2b5a(_0x2b76f9,_0x55d52f){_0x2b76f9=_0x2b76f9-0x113;const _0x437642=_0x4376();let _0x2b5af1=_0x437642[_0x2b76f9];return _0x2b5af1;}function ci(_0x5eecd4){return _0x5eecd4==null?'':String(_0x5eecd4);}function li(_0x3e6fbc){const _0x244c7a=_0x6c183;return new Map(_0x3e6fbc[_0x244c7a(0x141)]((_0x25c40e,_0x3320f4)=>[_0x25c40e[_0x244c7a(0x347)],_0x3320f4]));}function ui(_0x11d53f){const _0x51e5d6=_0x6c183;return!!(Array[_0x51e5d6(0x431)](_0x11d53f[_0x51e5d6(0x1e7)])&&_0x11d53f[_0x51e5d6(0x375)]&&_0x11d53f['rowId']&&_0x11d53f['colIndex']&&_0x11d53f[_0x51e5d6(0x1fe)]&&_0x11d53f[_0x51e5d6(0x389)]);}function di(_0x489cd0){const _0x24791e=_0x6c183;let _0x750535=(_0x489cd0==null?void 0x0:_0x489cd0[_0x24791e(0x396)]['filter'](_0x2559c6=>!Ii(_0x2559c6)))??[];return!_0x489cd0||!_0x750535[_0x24791e(0x13c)]?null:{'conjunction':_0x489cd0[_0x24791e(0x278)],'conditions':_0x750535['map'](_0x3f02cc=>({'fieldId':_0x3f02cc['fieldId'],'operator':_0x3f02cc[_0x24791e(0x220)],'operand':_0x3f02cc[_0x24791e(0x302)]}))};}function fi(_0x300a6d,_0x128d99){const _0x25719d=_0x6c183;return _0x300a6d[_0x25719d(0x258)]===_0x128d99[_0x25719d(0x258)]&&_0x300a6d[_0x25719d(0x1e7)]===_0x128d99[_0x25719d(0x1e7)]&&_0x300a6d[_0x25719d(0x398)]===_0x128d99['fields']&&_0x300a6d['fieldOrder']===_0x128d99['fieldOrder']&&_0x300a6d[_0x25719d(0x389)]===_0x128d99['cellData']&&_0x300a6d[_0x25719d(0x375)]===_0x128d99['rowIndex']&&_0x300a6d[_0x25719d(0x3d0)]===_0x128d99[_0x25719d(0x3d0)]&&_0x300a6d[_0x25719d(0x390)]===_0x128d99['colIndex']&&_0x300a6d['colId']===_0x128d99['colId'];}function pi(_0x45be31){const _0x18082f=_0x6c183;return _0x45be31!=null&&_0x45be31[_0x18082f(0x13c)]?_0x45be31[_0x18082f(0x141)](_0x36b882=>({'fieldId':_0x36b882[_0x18082f(0x2b0)],'direction':_0x36b882[_0x18082f(0x12f)]})):null;}function mi(_0x537de6){const _0x50addd=_0x6c183;if(typeof _0x537de6!=_0x50addd(0x3d7)||!_0x537de6)return JSON[_0x50addd(0x25f)](_0x537de6)??_0x50addd(0x31f);if(Array['isArray'](_0x537de6))return'['+_0x537de6[_0x50addd(0x141)](mi)[_0x50addd(0x11a)](',')+']';let _0x20eb1f=_0x537de6;return'{'+Object['keys'](_0x20eb1f)[_0x50addd(0x277)]()[_0x50addd(0x141)](_0x25f004=>JSON['stringify'](_0x25f004)+':'+mi(_0x20eb1f[_0x25f004]))[_0x50addd(0x11a)](',')+'}';}function hi(_0x57d296){const _0x3d43ce=_0x6c183;let _0x107a55=Object['values'](_0x57d296)[_0x3d43ce(0x277)]((_0x1020d4,_0x3ea8b8)=>_0x1020d4[_0x3d43ce(0x4a1)][_0x3d43ce(0x37a)](_0x3ea8b8[_0x3d43ce(0x4a1)])),_0xf4ee4f=[];for(let _0xfc5a61 of _0x107a55)_0xf4ee4f[_0x3d43ce(0x174)](_0xfc5a61['id']);return _0xf4ee4f;}function gi(_0x31bda5){const _0x2b4c3d=_0x6c183;return{'weekdays':Array[_0x2b4c3d(0x431)](_0x31bda5==null?void 0x0:_0x31bda5[_0x2b4c3d(0x1ca)])&&_0x31bda5[_0x2b4c3d(0x1ca)][_0x2b4c3d(0x13c)]?[...new Set(_0x31bda5[_0x2b4c3d(0x1ca)][_0x2b4c3d(0x2be)](_0x351398=>Number[_0x2b4c3d(0x406)](_0x351398)&&_0x351398>=0x1&&_0x351398<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x2b4c3d(0x431)](_0x31bda5==null?void 0x0:_0x31bda5[_0x2b4c3d(0x444)])?_0x31bda5[_0x2b4c3d(0x444)][_0x2b4c3d(0x17a)](_0x38d091=>!_0x38d091||!Number[_0x2b4c3d(0x143)](_0x38d091[_0x2b4c3d(0x38f)])?[]:[{'id':String(_0x38d091['id']||_0x2b4c3d(0x487)+_0x38d091[_0x2b4c3d(0x38f)]),'date':Z(Number(_0x38d091[_0x2b4c3d(0x38f)])),'name':String(_0x38d091[_0x2b4c3d(0x2a3)]||_0x2b4c3d(0x3d1)),'type':_0x38d091['type']===_0x2b4c3d(0x3a2)?_0x2b4c3d(0x3a2):_0x2b4c3d(0x190)}]):[]};}function _i(_0x27084a,_0x210df6,_0x5a142b,_0xcc411a){let _0x31227b=xi(_0x27084a,_0x210df6),_0x1fd688=Si(_0x27084a,_0x5a142b),_0x531b7f=vi(_0x27084a,_0x31227b,_0x1fd688,_0xcc411a);return{'scale':_0x27084a,'start':_0x31227b,'end':_0x1fd688,'unitWidth':bi(_0x27084a),'majorHeaders':yi(_0x27084a,_0x31227b,_0x1fd688),'columns':_0x531b7f};}function vi(_0x14b39f,_0x480108,_0x44c827,_0x13d3f6){const _0x32a676=_0x6c183;let _0x5ce2a5=[],_0x52f0d6=_0x480108;for(;_0x52f0d6<_0x44c827;){let _0x529a6a=_0x14b39f===_0x32a676(0x1ea)?ji(_0x52f0d6,0x7):_0x14b39f===_0x32a676(0x361)?Mi(_0x52f0d6,0x1):ji(_0x52f0d6,0x1);_0x5ce2a5[_0x32a676(0x174)]({'id':_0x14b39f+'-'+_0x52f0d6,'label':Ci(_0x14b39f,_0x52f0d6,_0x529a6a),'majorLabel':wi(_0x14b39f,_0x52f0d6),'start':_0x52f0d6,'end':_0x529a6a,'nonWorking':Ei(_0x52f0d6,_0x529a6a,_0x13d3f6)}),_0x52f0d6=_0x529a6a;}return _0x5ce2a5;}function yi(_0x5c7694,_0x5693e2,_0x358f84){const _0x10c92a=_0x6c183;let _0x1cb32c=[],_0x2b266f=_0x5c7694===_0x10c92a(0x361)?Ai(_0x5693e2):ki(_0x5693e2);for(;_0x2b266f<_0x358f84;){let _0x516c76=_0x5c7694===_0x10c92a(0x361)?Ni(_0x2b266f,0x1):Mi(_0x2b266f,0x1);_0x1cb32c[_0x10c92a(0x174)]({'id':_0x10c92a(0x205)+_0x2b266f,'label':_0x5c7694===_0x10c92a(0x361)?String(new Date(_0x2b266f)[_0x10c92a(0x415)]()):Pi(_0x2b266f),'start':_0x2b266f,'end':_0x516c76}),_0x2b266f=_0x516c76;}return _0x1cb32c;}function bi(_0x58a07b){const _0x4cc2da=_0x6c183;switch(_0x58a07b){case _0x4cc2da(0x2de):return 0xac;case'quarter':return 0xac;case _0x4cc2da(0x361):return 0x88;default:return 0x56;}}function xi(_0x53e470,_0x2e46d5){const _0x50cba7=_0x6c183;return _0x53e470===_0x50cba7(0x361)?Ai(_0x2e46d5):_0x53e470===_0x50cba7(0x1ea)?Oi(_0x2e46d5):Z(_0x2e46d5);}function Si(_0x54a2f8,_0x48efb3){const _0x5b0cd8=_0x6c183;return _0x54a2f8===_0x5b0cd8(0x361)?Ni(Ai(_0x48efb3),0x1):_0x54a2f8===_0x5b0cd8(0x1ea)?ji(Oi(_0x48efb3),0x7):ji(Z(_0x48efb3),0x1);}function Ci(_0x2b26e1,_0x4aa76e,_0x43de02){const _0x2eabab=_0x6c183;let _0x402922=new Date(_0x4aa76e);return _0x2b26e1===_0x2eabab(0x1ea)?_0x402922[_0x2eabab(0x3ed)]()+'-'+new Date(_0x43de02-oi)[_0x2eabab(0x3ed)]():_0x2b26e1===_0x2eabab(0x361)?_0x402922[_0x2eabab(0x1bc)](_0x2eabab(0x2da),{'month':_0x2eabab(0x416),'timeZone':_0x2eabab(0x4b2)}):String(_0x402922[_0x2eabab(0x3ed)]());}function wi(_0x5926f1,_0x28fc65){return _0x5926f1==='year'?String(new Date(_0x28fc65)['getUTCFullYear']()):Pi(_0x28fc65);}function Ti(_0x239cff,_0x42f286,_0x3da196){let _0x1f92db=gi(_0x3da196),_0xc82be7=0x0;for(let _0x1ff74c=Z(_0x239cff);_0x1ff74c<=Z(_0x42f286);_0x1ff74c=ji(_0x1ff74c,0x1))Di(_0x1ff74c,_0x1f92db)||_0xc82be7++;return _0xc82be7;}function Ei(_0x3de10a,_0x4472fd,_0x250f70){if(!_0x250f70)return!0x1;let _0x376082=gi(_0x250f70);for(let _0x50c41c=Z(_0x3de10a);_0x50c41c<_0x4472fd;_0x50c41c=ji(_0x50c41c,0x1))if(!Di(_0x50c41c,_0x376082))return!0x1;return!0x0;}function Di(_0x44d86d,_0x1767ee){const _0x6a5a37=_0x6c183;let _0x525529=Z(_0x44d86d),_0x4b9a07=_0x1767ee['exceptions'][_0x6a5a37(0x392)](_0x1a89c4=>Z(_0x1a89c4['date'])===_0x525529);if(_0x4b9a07)return _0x4b9a07[_0x6a5a37(0x20b)]==='off';let _0xced94=new Date(_0x525529)['getUTCDay'](),_0xc5540=_0xced94===0x0?0x7:_0xced94;return!_0x1767ee['weekdays'][_0x6a5a37(0x16a)](_0xc5540);}function Z(_0x3dafd1){const _0x318b1e=_0x6c183;let _0xfae21b=new Date(_0x3dafd1);return Date[_0x318b1e(0x4b2)](_0xfae21b[_0x318b1e(0x415)](),_0xfae21b[_0x318b1e(0x3f8)](),_0xfae21b['getUTCDate']());}function Oi(_0x25b9b4){const _0x27c005=_0x6c183;let _0x316fe9=Z(_0x25b9b4),_0x5f1d47=new Date(_0x316fe9)[_0x27c005(0x19d)]();return ji(_0x316fe9,-(_0x5f1d47===0x0?0x6:_0x5f1d47-0x1));}function ki(_0x12946c){const _0x52745f=_0x6c183;let _0x16362e=new Date(_0x12946c);return Date[_0x52745f(0x4b2)](_0x16362e[_0x52745f(0x415)](),_0x16362e[_0x52745f(0x3f8)](),0x1);}function Ai(_0x4ffdb9){const _0x301d61=_0x6c183;let _0x2ef2c1=new Date(_0x4ffdb9);return Date[_0x301d61(0x4b2)](_0x2ef2c1[_0x301d61(0x415)](),0x0,0x1);}function ji(_0x378fb1,_0x57e240){return _0x378fb1+_0x57e240*oi;}function Mi(_0x4cef62,_0x44196d){const _0x50d057=_0x6c183;let _0x4789a1=new Date(_0x4cef62);return Date[_0x50d057(0x4b2)](_0x4789a1[_0x50d057(0x415)](),_0x4789a1[_0x50d057(0x3f8)]()+_0x44196d,0x1);}function Ni(_0x4f43de,_0x528ed4){const _0x50ddf2=_0x6c183;let _0x1ead8a=new Date(_0x4f43de);return Date[_0x50ddf2(0x4b2)](_0x1ead8a[_0x50ddf2(0x415)]()+_0x528ed4,0x0,0x1);}function Pi(_0x2b13ba){const _0x4aaf69=_0x6c183;let _0x1635e5=new Date(_0x2b13ba);return _0x1635e5[_0x4aaf69(0x1bc)](_0x4aaf69(0x2da),{'month':_0x4aaf69(0x416),'timeZone':'UTC'})+'\x20'+_0x1635e5[_0x4aaf69(0x415)]();}function Fi(_0x34748b,_0x2b358f){const _0x3206f1=_0x6c183;if(_0x34748b==null&&_0x2b358f==null)return 0x0;if(_0x34748b==null)return-0x1;if(_0x2b358f==null)return 0x1;if(typeof _0x34748b=='boolean'||typeof _0x2b358f==_0x3206f1(0x1cb))return Number(_0x34748b===!0x0)-Number(_0x2b358f===!0x0);let _0x199949=Number(_0x34748b),_0x568bc0=Number(_0x2b358f),_0x4b77d1=Number[_0x3206f1(0x143)](_0x199949),_0x246bd5=Number[_0x3206f1(0x143)](_0x568bc0);return _0x4b77d1&&_0x246bd5?_0x199949-_0x568bc0:_0x4b77d1?0x1:_0x246bd5?-0x1:String(_0x34748b)[_0x3206f1(0x37a)](String(_0x2b358f));}function Ii(_0x2a3500){const _0x16083c=_0x6c183;if(_0x2a3500[_0x16083c(0x220)]!=='is'&&_0x2a3500[_0x16083c(0x220)]!=='isNot')return!0x1;let _0x27eeec=_0x2a3500[_0x16083c(0x302)];return _0x27eeec==null?!0x0:typeof _0x27eeec=='string'?_0x27eeec[_0x16083c(0x226)]()==='':Array['isArray'](_0x27eeec)?_0x27eeec['length']===0x0:!0x1;}function Li(_0x7ec840,_0x10f713){const _0x1a2aa5=_0x6c183;var _0x38f11a;let _0x36fcc4=Array[_0x1a2aa5(0x431)]((_0x38f11a=_0x7ec840[_0x1a2aa5(0x2ba)])==null?void 0x0:_0x38f11a[_0x1a2aa5(0x2b3)])?_0x7ec840[_0x1a2aa5(0x2ba)][_0x1a2aa5(0x2b3)]:[];for(let _0x514975 of _0x36fcc4){if(_0x514975==null)continue;if(typeof _0x514975=='string'){if(_0x514975===_0x10f713)return{'id':_0x514975,'name':_0x514975};continue;}let _0x69e4cd=_0x514975,_0x446245=String(_0x69e4cd['id']??_0x69e4cd['name']??''),_0x59812a=String(_0x69e4cd[_0x1a2aa5(0x2a3)]??_0x69e4cd['id']??_0x446245);if(_0x446245===_0x10f713||_0x59812a===_0x10f713)return{'id':_0x446245,'name':_0x59812a,'color':_0x69e4cd[_0x1a2aa5(0x276)]==null?void 0x0:String(_0x69e4cd[_0x1a2aa5(0x276)])};}return null;}let Ri=function(_0x39905f){const _0x26e7c1=_0x6c183;return _0x39905f['CreateView']=_0x26e7c1(0x44d),_0x39905f['DeleteView']=_0x26e7c1(0x145),_0x39905f;}({});const Q={'id':'base.mutation.apply-base-json1','type':_0x22977e[_0x6c183(0x3b0)],'handler'(_0x4ec426,_0x57669f){const _0x26a48b=_0x6c183;let {unitId:_0x15bc5c,op:_0x590b24}=_0x57669f,_0xf1c4ea=_0x4ec426[_0x26a48b(0x43e)](_0x24efe9)[_0x26a48b(0x228)](_0x15bc5c,_0x5c5c99['UNIVER_BASE']);if(!_0xf1c4ea)return!0x1;let _0x515062=_0xf1c4ea[_0x26a48b(0x32f)](),_0x3f9fde=new z(),_0x581681=_0x3f9fde[_0x26a48b(0x311)](_0x590b24),_0x318c81=_0x3f9fde[_0x26a48b(0x4c3)](_0x515062,_0x590b24);return _0xf1c4ea[_0x26a48b(0x2ab)](_0x318c81),zi(_0x318c81,_0x581681,_0x4ec426[_0x26a48b(0x43e)](ii)),!0x0;}};function zi(_0xee9c59,_0x5f3ee1,_0x360099){const _0x516fa0=_0x6c183;let _0x5b41b2=new Set(),_0x3ccd0e=new Set(),_0x4aaba5=new Set();for(let _0x3e287e of _0x5f3ee1){if(_0x3e287e[_0x516fa0(0x28a)]===_0x516fa0(0x37d)&&_0x3e287e[_0x516fa0(0x210)]&&_0x3e287e[_0x516fa0(0x288)]){let _0x18796d=_0x3e287e[_0x516fa0(0x210)]+'\x00'+_0x3e287e[_0x516fa0(0x288)];_0x4aaba5[_0x516fa0(0x34b)](_0x18796d)||(_0x4aaba5['add'](_0x18796d),_0x360099[_0x516fa0(0x132)](_0x3e287e[_0x516fa0(0x210)],_0x3e287e[_0x516fa0(0x288)]));continue;}if(_0x3e287e[_0x516fa0(0x28a)]===_0x516fa0(0x2d5)&&_0x3e287e[_0x516fa0(0x210)]&&_0x3e287e[_0x516fa0(0x2b0)]){let _0x282b27=_0x3e287e[_0x516fa0(0x210)]+'\x00'+_0x3e287e[_0x516fa0(0x2b0)];_0x3ccd0e[_0x516fa0(0x34b)](_0x282b27)||(_0x3ccd0e['add'](_0x282b27),_0x360099[_0x516fa0(0x3d4)](_0x3e287e[_0x516fa0(0x210)],_0x3e287e[_0x516fa0(0x2b0)]));continue;}if(_0x3e287e[_0x516fa0(0x28a)]!==_0x516fa0(0x1de)){_0x360099[_0x516fa0(0x3c7)]();return;}let _0x23b549=Bi(_0xee9c59,_0x3e287e);if(!_0x23b549){_0x360099[_0x516fa0(0x3c7)]();return;}let _0x1b275c=_0x23b549['tableId']+'\x00'+_0x23b549['recordId']+'\x00'+_0x23b549[_0x516fa0(0x2b0)];_0x5b41b2['has'](_0x1b275c)||(_0x5b41b2[_0x516fa0(0x2ee)](_0x1b275c),_0x360099[_0x516fa0(0x1a1)](_0x23b549[_0x516fa0(0x210)],_0x23b549['recordId'],_0x23b549[_0x516fa0(0x2b0)]));}}function Bi(_0x189a20,_0x17eb4d){const _0x5a651e=_0x6c183;var _0x329e9d,_0x20098f;if(!_0x17eb4d[_0x5a651e(0x210)])return null;if(_0x17eb4d[_0x5a651e(0x347)]&&_0x17eb4d[_0x5a651e(0x2b0)])return{'tableId':_0x17eb4d['tableId'],'recordId':_0x17eb4d['recordId'],'fieldId':_0x17eb4d[_0x5a651e(0x2b0)]};if(_0x17eb4d[_0x5a651e(0x4b3)]==null||_0x17eb4d[_0x5a651e(0x229)]==null)return null;let _0x13398d=_0x189a20['tables'][_0x17eb4d[_0x5a651e(0x210)]],_0x4e3599=_0x13398d==null||(_0x329e9d=_0x13398d[_0x5a651e(0x3d0)])==null?void 0x0:_0x329e9d[_0x17eb4d['row']],_0x2a79ff=_0x13398d==null||(_0x20098f=_0x13398d[_0x5a651e(0x1fe)])==null?void 0x0:_0x20098f[_0x17eb4d[_0x5a651e(0x229)]];return!_0x4e3599||!_0x2a79ff?null:{'tableId':_0x17eb4d['tableId'],'recordId':_0x4e3599,'fieldId':_0x2a79ff};}const Vi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x6c183(0x296)](_0x3840b0,_0xef7da6=_0x3840b0['id']){const _0x444be5=_0x6c183;var _0x2943ad;let _0x2778df=((_0x2943ad=_0x3840b0[_0x444be5(0x1e7)])==null?void 0x0:_0x2943ad[_0x444be5(0x13c)])??Object['values'](_0x3840b0[_0x444be5(0x258)])[_0x444be5(0x13c)];return{'sheetId':_0xef7da6,'titleMap':new Map(_0x3840b0['fieldOrder']['map']((_0xec2dc9,_0x1acc3b)=>{const _0x3c6484=_0x444be5;var _0x12f1e4;return[((_0x12f1e4=_0x3840b0[_0x3c6484(0x398)][_0xec2dc9])==null?void 0x0:_0x12f1e4['name'])??_0xec2dc9,_0x1acc3b];})),'range':{'startRow':0x0,'endRow':Math[_0x444be5(0x482)](0x0,_0x2778df-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x3840b0[_0x444be5(0x3b5)][_0x444be5(0x13c)]-0x1)},'showHeader':!0x1};}[_0x6c183(0x3a8)](_0x4157a9,_0xfc3f54){const _0x11a510=_0x6c183;let _0x60ab11=[],_0x15ed14=_0xfc3f54?new Set(_0xfc3f54):null,_0x41763c=_0x160d60(_0x4157a9);return Object['values'](_0x4157a9[_0x11a510(0x298)])['filter'](_0x151a8d=>!_0x15ed14||_0x15ed14['has'](_0x151a8d['id']))[_0x11a510(0x2e0)](_0x44640b=>{const _0x12976e=_0x11a510;let _0x39430e=this[_0x12976e(0x296)](_0x44640b,_0x44640b['id']);_0x60ab11[_0x12976e(0x174)]({'tableId':_0x44640b['id'],'tableName':_0x41763c[_0x12976e(0x43e)](_0x44640b['id']),'reference':_0x39430e});}),_0x60ab11;}[_0x6c183(0x3ab)](_0x1d26c8,_0x3d93f0,_0x59baab={}){const _0x4d4a90=_0x6c183;let _0x55c31d=_0x1d26c8[_0x4d4a90(0x226)]();if(!_0x55c31d)return{'valid':!0x0};if(na(_0x55c31d))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x5cfcf6=_0x59baab[_0x4d4a90(0x17c)]?_0x160d60(_0x59baab[_0x4d4a90(0x17c)]):void 0x0;for(let _0x3cbc5f of ta(_0x55c31d)){let _0x4a7b22=ua(_0x3cbc5f,_0x3d93f0,_0x59baab[_0x4d4a90(0x17c)],_0x5cfcf6);if(!_0x4a7b22[_0x4d4a90(0x4c7)])return{'valid':!0x1,'reason':_0x4d4a90(0x49a)+_0x3cbc5f[_0x4d4a90(0x4bd)]+_0x4d4a90(0x251)};if(!_0x4a7b22[_0x4d4a90(0x2d5)])return{'valid':!0x1,'reason':_0x4d4a90(0x400)+_0x3cbc5f[_0x4d4a90(0x2d0)]+_0x4d4a90(0x2bf)};}return{'valid':!0x0};}[_0x6c183(0x26a)](_0x3c8e31,_0x367876,_0x4a2738={}){const _0x1d789d=_0x6c183;let _0x5d2639=new Set();for(let _0x45a0cf of this['getStructuredDependencies'](_0x3c8e31,_0x367876,_0x4a2738))_0x45a0cf[_0x1d789d(0x210)]===_0x367876['id']&&_0x5d2639[_0x1d789d(0x2ee)](_0x45a0cf['fieldId']);return Array[_0x1d789d(0x1d5)](_0x5d2639);}[_0x6c183(0x2ca)](_0x242502,_0x21501e,_0x380131={}){const _0xc7bdd1=_0x6c183;let _0x5c83b0=new Map(),_0x168013=_0x380131[_0xc7bdd1(0x17c)]?_0x160d60(_0x380131[_0xc7bdd1(0x17c)]):void 0x0;for(let _0x355593 of ta(_0x242502)){let _0xeda712=ua(_0x355593,_0x21501e,_0x380131[_0xc7bdd1(0x17c)],_0x168013);if(!_0xeda712[_0xc7bdd1(0x4c7)]||!_0xeda712['field'])continue;let _0xdb93c7=_0xeda712['table']['id']+'\x1f'+_0xeda712[_0xc7bdd1(0x2d5)]['id'];_0x5c83b0['set'](_0xdb93c7,{'tableId':_0xeda712['table']['id'],'fieldId':_0xeda712[_0xc7bdd1(0x2d5)]['id']});}return Array[_0xc7bdd1(0x1d5)](_0x5c83b0[_0xc7bdd1(0x227)]());}};function Zi(_0x42f92c,_0x14037f){const _0x330cef=_0x6c183;var _0x2454a1;let _0x2a2320=[],_0x2caf98=(_0x2454a1=_0x14037f[_0x330cef(0x42e)])==null?void 0x0:_0x2454a1[_0x42f92c['id']];return _0x2caf98&&Object['entries'](_0x2caf98)['forEach'](([_0x4b91be,_0x3fb16])=>{const _0x545cde=_0x330cef;let _0x3f3e7f=_0x42f92c[_0x545cde(0x298)][_0x4b91be];if(!_0x3f3e7f||!_0x3fb16)return;let _0x3d67b7=L(_0x3f3e7f),_0x17f303=[];new _0x47103a(_0x3fb16)['forValue']((_0x4d7531,_0x9ca94e,_0x580e8f)=>{const _0x1bb266=_0x545cde;let _0x530eb8=Qi(_0x3d67b7,_0x4d7531,_0x9ca94e,_0x580e8f);_0x530eb8&&_0x17f303[_0x1bb266(0x174)](_0x530eb8);}),_0x17f303[_0x545cde(0x13c)]&&_0x2a2320[_0x545cde(0x174)]({'unitId':_0x42f92c['id'],'tableId':_0x4b91be,'patches':_0x17f303});}),_0x2a2320;}function Qi(_0x34610b,_0x5b1a69,_0x2ce64c,_0x43ca6e){const _0x424899=_0x6c183;var _0x168363,_0x2d2020,_0x55862a;let _0x5342c4=(_0x168363=_0x34610b[_0x424899(0x3d0)])==null?void 0x0:_0x168363[_0x5b1a69],_0x325184=(_0x2d2020=_0x34610b['colId'])==null?void 0x0:_0x2d2020[_0x2ce64c];if(!_0x5342c4||!_0x34610b['records'][_0x5342c4]||!_0x325184)return null;let _0x5292d2=_0x34610b[_0x424899(0x398)][_0x325184];if(!_0x5292d2||_0x5292d2[_0x424899(0x20b)]!=='formula')return null;let _0x5e18a7=String(((_0x55862a=_0x5292d2[_0x424899(0x2ba)])==null?void 0x0:_0x55862a[_0x424899(0x3bc)])??'')[_0x424899(0x226)](),_0x3f57d0=(_0x43ca6e==null?void 0x0:_0x43ca6e['v'])??null,_0x12c475={'v':_0x3f57d0,'t':ea(_0x3f57d0),..._0x5b1a69===0x0&&_0x5e18a7?{'f':_0x5e18a7}:{},'si':_0x5292d2['id']};return $i(vt(_0x34610b,_0x5342c4,_0x325184),_0x12c475)?null:{'row':_0x5b1a69,'col':_0x2ce64c,'value':_0x12c475};}function $i(_0x54801c,_0xb16859){return _0x54801c!=null&&Object['is'](_0x54801c['v']??null,_0xb16859['v']??null)&&_0x54801c['t']===_0xb16859['t']&&_0x54801c['f']===_0xb16859['f']&&_0x54801c['si']===_0xb16859['si'];}function ea(_0x1e4b48){const _0x2a9117=_0x6c183;return typeof _0x1e4b48=='number'?_0x4dac72[_0x2a9117(0x324)]:typeof _0x1e4b48==_0x2a9117(0x1cb)?_0x4dac72[_0x2a9117(0x1b8)]:typeof _0x1e4b48=='string'?_0x4dac72[_0x2a9117(0x18a)]:null;}function ta(_0x173459){const _0x3c986d=_0x6c183;let _0x212359=ia(_0x173459,()=>''),_0x2bd9df=new Map(),_0x53b957=_0x56c7b0=>{const _0xa58719=_0x2b5a;_0x2bd9df[_0xa58719(0x49e)]((_0x56c7b0[_0xa58719(0x4bd)]??'')+'\x1f'+_0x56c7b0['fieldName'],_0x56c7b0);};for(let _0x3f52a9 of _0x212359[_0x3c986d(0x14a)](Ui))_0x53b957({'fieldName':_0x3f52a9[0x1],'scope':'this-row'});_0x212359=_0x212359[_0x3c986d(0x14e)](Wi,(_0x58cbfa,_0x36b73e,_0x522ec5,_0x587c69)=>(_0x53b957({'tableName':_0x36b73e,'fieldName':_0x587c69,'scope':_0x522ec5['toLowerCase']()===_0x3c986d(0x1c3)?_0x3c986d(0x1c3):_0x3c986d(0x457)}),'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](Gi,(_0x4e007a,_0x42ba1f,_0x28d5aa)=>(_0x53b957({'tableName':_0x42ba1f,'fieldName':_0x28d5aa,'scope':_0x3c986d(0x457)}),'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](qi,(_0xd4f9eb,_0x24fdb1,_0x4a9bc1,_0x15b69b)=>(_0x53b957({'fieldName':_0x15b69b,'scope':_0x4a9bc1[_0x3c986d(0x432)]()===_0x3c986d(0x1c3)?_0x3c986d(0x1c3):'this-row'}),_0x24fdb1+'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](Ji,(_0x18e422,_0x1e4f7c,_0x33f8ac)=>(_0x53b957({'fieldName':_0x33f8ac,'scope':_0x3c986d(0x457)}),_0x1e4f7c+'\x20'));for(let _0x2e8968 of _0x212359['matchAll'](Ki))_0x53b957({'tableName':_0x2e8968[0x1],'fieldName':_0x2e8968[0x2]});for(let _0xb0612 of _0x212359[_0x3c986d(0x14a)](Yi))_0x53b957({'fieldName':_0xb0612[0x2],'scope':_0x3c986d(0x457)});return Array[_0x3c986d(0x1d5)](_0x2bd9df[_0x3c986d(0x227)]());}function na(_0x4b62b9){const _0x1634f7=_0x6c183;let _0x37f759=ia(_0x4b62b9,()=>'\x20')[_0x1634f7(0x14e)](Ui,'\x20')['replace'](Wi,'\x20')['replace'](Gi,'\x20')['replace'](qi,'$1\x20')[_0x1634f7(0x14e)](Ji,_0x1634f7(0x351))[_0x1634f7(0x14e)](Ki,'\x20')['replace'](Yi,_0x1634f7(0x351));return Vi[_0x1634f7(0x215)](_0x37f759);}function ra(_0x8601fa,_0x29dc63){return ca(oa(_0x8601fa,_0x29dc63),_0x29dc63);}function ia(_0x203208,_0x110e35){return aa(ra(_0x203208,_0x110e35),_0x110e35);}function aa(_0x1c820d,_0xfd49df){const _0x2f343a=_0x6c183;return _0x1c820d[_0x2f343a(0x14e)](/"(?:""|[^"])*"/g,_0xfd49df);}function oa(_0x111088,_0x385eb8){const _0xcaff5e=_0x6c183;return Hi[_0xcaff5e(0x2b5)]=0x0,_0x111088[_0xcaff5e(0x14e)](Hi,(_0x296c8e,_0x508d34)=>la(_0x111088,_0x508d34)?_0x296c8e:_0x385eb8(_0x296c8e));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1b1ce4,_0x54e8fe){const _0x40c8ae=_0x6c183;let _0x47d6b0=[];for(sa[_0x40c8ae(0x2b5)]=0x0;;){let _0x101f90=sa[_0x40c8ae(0x27b)](_0x1b1ce4);if(_0x101f90==null)break;if(la(_0x1b1ce4,_0x101f90[_0x40c8ae(0x159)]))continue;let _0x5ae621=sa[_0x40c8ae(0x2b5)]-0x1,_0x5d3a2e=0x0;for(let _0x23fa07=_0x5ae621;_0x23fa07<_0x1b1ce4[_0x40c8ae(0x13c)];_0x23fa07++)if(_0x1b1ce4[_0x23fa07]==='['&&_0x5d3a2e++,_0x1b1ce4[_0x23fa07]===']'&&(_0x5d3a2e--,_0x5d3a2e===0x0)){_0x47d6b0[_0x40c8ae(0x174)]({'start':_0x101f90[_0x40c8ae(0x159)],'end':_0x23fa07+0x1}),sa[_0x40c8ae(0x2b5)]=_0x23fa07+0x1;break;}}if(_0x47d6b0['length']===0x0)return _0x1b1ce4;let _0x36bcbd='',_0x27172c=0x0;for(let _0x406b10 of _0x47d6b0)_0x36bcbd+=_0x1b1ce4[_0x40c8ae(0x12c)](_0x27172c,_0x406b10[_0x40c8ae(0x41a)]),_0x36bcbd+=_0x54e8fe(_0x1b1ce4['slice'](_0x406b10[_0x40c8ae(0x41a)],_0x406b10[_0x40c8ae(0x439)])),_0x27172c=_0x406b10[_0x40c8ae(0x439)];return _0x36bcbd+_0x1b1ce4[_0x40c8ae(0x12c)](_0x27172c);}function la(_0x51a254,_0x4693ad){let _0x3d356d=!0x1;for(let _0x530ea=0x0;_0x530ea<_0x4693ad;_0x530ea++)if(_0x51a254[_0x530ea]==='\x22'){if(_0x3d356d&&_0x51a254[_0x530ea+0x1]==='\x22'){_0x530ea++;continue;}_0x3d356d=!_0x3d356d;}return _0x3d356d;}function ua(_0x1f6a55,_0xaee627,_0xaec2d1,_0x496595){const _0x30417a=_0x6c183;let _0x41bfb6=da(_0x1f6a55[_0x30417a(0x4bd)],_0xaee627,_0xaec2d1,_0x496595);return{'table':_0x41bfb6,'field':_0x41bfb6?Object[_0x30417a(0x227)](_0x41bfb6[_0x30417a(0x398)])[_0x30417a(0x392)](_0x45b3d3=>_0x45b3d3['name']===_0x1f6a55['fieldName']):void 0x0};}function da(_0x3894a7,_0x12d883,_0x2dd7cf,_0x2a3263){const _0x226e35=_0x6c183;if(!_0x3894a7)return _0x12d883;if(!_0x2dd7cf){var _0x492212;let _0x2dbe43=_0x3894a7[_0x226e35(0x432)]();return _0x2dbe43===_0x12d883['id'][_0x226e35(0x432)]()||_0x2dbe43===_0x12d883[_0x226e35(0x2a3)][_0x226e35(0x432)]()||_0x2dbe43===((_0x492212=_0x12d883[_0x226e35(0x423)])==null?void 0x0:_0x492212[_0x226e35(0x432)]())?_0x12d883:void 0x0;}let _0x1561fc=_0x3894a7[_0x226e35(0x432)](),_0x146441=_0x2a3263??_0x160d60(_0x2dd7cf),_0x170d94=Object[_0x226e35(0x227)](_0x2dd7cf[_0x226e35(0x298)])[_0x226e35(0x2be)](_0x673145=>{const _0x579351=_0x226e35;var _0x3cf17b;return _0x673145['id'][_0x579351(0x432)]()===_0x1561fc||_0x673145[_0x579351(0x2a3)]['toLowerCase']()===_0x1561fc||((_0x3cf17b=_0x146441[_0x579351(0x43e)](_0x673145['id']))==null?void 0x0:_0x3cf17b['toLowerCase']())===_0x1561fc||fa(_0x673145['id'])[_0x579351(0x432)]()===_0x1561fc;});return _0x170d94[_0x226e35(0x13c)]===0x1?_0x170d94[0x0]:void 0x0;}function fa(_0x5480ba){const _0x562aab=_0x6c183;return _0x562aab(0x3f2)+Array['from'](_0x5480ba,_0x37d529=>{const _0x199108=_0x562aab;var _0x5f266d;return/[A-Za-z0-9]/[_0x199108(0x215)](_0x37d529)?_0x37d529:'_x'+(((_0x5f266d=_0x37d529[_0x199108(0x309)](0x0))==null?void 0x0:_0x5f266d[_0x199108(0x33f)](0x10))??'0')+'_';})[_0x562aab(0x11a)]('');}const pa=new Xi();function ma(_0x482dbd,_0x51bfb4,_0x2835cd){const _0x10d4d6=_0x6c183;var _0x43feac;if(_0x2835cd[_0x10d4d6(0x20b)]!==_0x3a044b[_0x10d4d6(0x4a0)])return!0x0;let _0x45ad90=String(((_0x43feac=_0x2835cd[_0x10d4d6(0x2ba)])==null?void 0x0:_0x43feac[_0x10d4d6(0x3bc)])??''),_0x2d2c91=_0x482dbd[_0x10d4d6(0x32f)]();return pa[_0x10d4d6(0x3ab)](_0x45ad90,_0x2d2c91['tables'][_0x51bfb4],{'snapshot':_0x2d2c91})[_0x10d4d6(0x26e)];}function $(_0x334943,_0x1b6aea,_0x4553c3){const _0xd80796=_0x6c183;let _0x214983=_0x334943[_0xd80796(0x32f)]()[_0xd80796(0x298)][_0x1b6aea];if(!_0x214983)return!0x1;let {viewIds:_0x45f3b3,fieldIds:_0x271555,recordIds:_0x5adec9}=_0x4553c3||{};if(_0x45f3b3){for(let _0x818299 of _0x45f3b3)if(!_0x214983['views'][_0x818299])return!0x1;}if(_0x271555){for(let _0x38cfd7 of _0x271555)if(!_0x214983[_0xd80796(0x398)][_0x38cfd7])return!0x1;}if(_0x5adec9){for(let _0x37b610 of _0x5adec9)if(!_0x214983[_0xd80796(0x258)][_0x37b610])return!0x1;}return!0x0;}function ha(_0x18291e,_0x5be5ed,_0x3caca5){const _0x376ed4=_0x6c183;if(_0x3caca5['id']===_0x5a35e2||_0x3caca5[_0x376ed4(0x20b)]===_0x3a044b[_0x376ed4(0x22f)]||_0x771c24(_0x3caca5[_0x376ed4(0x2a3)])||!ma(_0x18291e,_0x5be5ed,_0x3caca5))return!0x1;let _0x144bc0=_0x18291e[_0x376ed4(0x32f)]();if(!Be(_0x144bc0,_0x3caca5)[_0x376ed4(0x26e)])return!0x1;if(_0x3caca5[_0x376ed4(0x20b)]!==_0x3a044b[_0x376ed4(0x3ac)])return!0x0;let _0x999a8e=N(_0x3caca5);if(!_0x999a8e)return!0x1;if(_0x999a8e['relationRole']===void 0x0)return!0x0;if(_0x999a8e[_0x376ed4(0x1d4)]!==_0x4c2417[_0x376ed4(0x2e7)]||_0x999a8e[_0x376ed4(0x334)]!==_0x5be5ed||_0x999a8e[_0x376ed4(0x376)]!==!0x1)return!0x1;let _0x31f930=_0x144bc0['tables'][_0x5be5ed];return!Object[_0x376ed4(0x227)](_0x31f930['fields'])[_0x376ed4(0x185)](_0x276ba7=>{const _0xac0338=_0x376ed4;var _0x25a831;return _0x276ba7['id']!==_0x3caca5['id']&&_0x276ba7[_0xac0338(0x20b)]===_0x3a044b[_0xac0338(0x3ac)]&&((_0x25a831=N(_0x276ba7))==null?void 0x0:_0x25a831[_0xac0338(0x1d4)])===_0x4c2417[_0xac0338(0x2e7)];});}function ga(_0xfdb6c8,_0x42dba9,_0xd8e3bf,_0x16e618){const _0x1e19ae=_0x6c183;var _0x51ec14;let _0x2c7046=_0xfdb6c8[_0x1e19ae(0x32f)](),_0x5b25ff=(_0x51ec14=_0x2c7046[_0x1e19ae(0x298)][_0x42dba9])==null?void 0x0:_0x51ec14[_0x1e19ae(0x398)][_0xd8e3bf];return!_0x5b25ff||_0x5b25ff['id']===_0x5a35e2||_0x5b25ff[_0x1e19ae(0x20b)]===_0x3a044b[_0x1e19ae(0x22f)]?!0x1:_0x5b25ff[_0x1e19ae(0x20b)]!==_0x3a044b[_0x1e19ae(0x3ac)]||Ve(_0x2c7046,_0x5b25ff,ya(_0x16e618))[_0x1e19ae(0x26e)];}function _a(_0x2757e7,_0x5dc684,_0x4d41d6){const _0x108abe=_0x6c183;let _0x5abc6b=_0x2757e7['getSnapshot']()['tables'][_0x5dc684];return!_0x5abc6b||!_0x7f3dc3(_0x4d41d6['id'])||_0x5abc6b[_0x108abe(0x258)][_0x4d41d6['id']]||Object[_0x108abe(0x246)][_0x108abe(0x48a)]['call'](_0x4d41d6['values'],_0x5a35e2)&&_0x4d41d6[_0x108abe(0x227)][_0x5a35e2]!==_0x4d41d6['id']?!0x1:Object['entries'](_0x4d41d6[_0x108abe(0x227)])[_0x108abe(0x387)](([_0x38c6df,_0x582c7a])=>_0x38c6df===_0x5a35e2||ga(_0x2757e7,_0x5dc684,_0x38c6df,_0x582c7a));}function va(_0x1f6261){return{..._0x1f6261,'values':{..._0x1f6261['values'],[_0x5a35e2]:_0x1f6261['id']}};}function ya(_0x5b22dc){const _0x7d4682=_0x6c183;if(_0x5b22dc&&typeof _0x5b22dc==_0x7d4682(0x3d7)&&!Array[_0x7d4682(0x431)](_0x5b22dc)&&'v'in _0x5b22dc){let _0x26f0f1=_0x5b22dc['v'];return _0x26f0f1===void 0x0?null:_0x26f0f1;}return _0x5b22dc;}function ba(_0x56a44e,_0x11dcf0,_0x2da80b,_0xea6927){const _0x1009ac=_0x6c183;let _0x5a7bd0=_0x56a44e[_0x1009ac(0x32f)]()[_0x1009ac(0x298)][_0x11dcf0];if(!_0x5a7bd0)return null;let _0x34a6d6=qe(_0x5a7bd0),_0x1dd06b=_0x34a6d6??Je(_0x5a7bd0),_0x276149=_0x2da80b['some'](_0x526534=>Object['prototype'][_0x1009ac(0x48a)][_0x1009ac(0x43b)](_0x526534['values'],_0x1dd06b)),_0x52c19c=_0x34a6d6?_0x5a7bd0[_0x1009ac(0x398)][_0x34a6d6]:_0x276149?Ye(_0x5a7bd0,_0x1dd06b,_0xea6927):null,_0x3abe60=[];for(let _0x593ea0 of _0x2da80b){let _0x136fe6=_0x593ea0[_0x1009ac(0x227)][_0x1dd06b],_0x1ca83e=_0x52c19c!==null&&Object['prototype'][_0x1009ac(0x48a)]['call'](_0x593ea0[_0x1009ac(0x227)],_0x1dd06b),_0x384304=ya(_0x136fe6),_0x3ee6ae=null;if(_0x1ca83e){if(typeof _0x384304!=_0x1009ac(0x425)||!ze(_0x384304,!0x1)[_0x1009ac(0x26e)])return null;_0x3ee6ae=_0x384304;}let _0x2ac597={};if(Object[_0x1009ac(0x279)](_0x593ea0[_0x1009ac(0x227)])[_0x1009ac(0x2e0)](([_0x4303d4,_0x1b5d78])=>{(!_0x1ca83e||_0x4303d4!==_0x1dd06b)&&(_0x2ac597[_0x4303d4]=_0x1b5d78);}),!_a(_0x56a44e,_0x11dcf0,{..._0x593ea0,'values':_0x2ac597}))return null;let _0x550068={..._0x593ea0[_0x1009ac(0x227)]};_0x3ee6ae!==null&&(_0x550068[_0x1dd06b]=_0x3ee6ae),_0x3abe60['push'](va({..._0x593ea0,'values':_0x550068}));}return{'records':_0x3abe60,'hierarchyFieldToMaterialize':_0x34a6d6?null:_0x52c19c,'hierarchyChanges':Qe(_0x5a7bd0,_0x3abe60)};}const xa={'id':_0x6c183(0x2fa),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x12ae40,_0x4ef96d){const _0x20e18f=_0x6c183;if(!_0x4ef96d)return!0x1;let _0x1d09a1=_0x12ae40[_0x20e18f(0x43e)](_0x24efe9),{unitId:_0x1659e8,tableId:_0x3c3ff3,records:_0x49087e}=_0x4ef96d,_0x1ed92a=_0x1d09a1[_0x20e18f(0x228)](_0x1659e8,_0x5c5c99['UNIVER_BASE']),_0x4107f8=_0x49087e['map'](_0x7f5012=>_0x7f5012['id']);if(!_0x1ed92a||!$(_0x1ed92a,_0x3c3ff3)||new Set(_0x4107f8)[_0x20e18f(0x15b)]!==_0x4107f8[_0x20e18f(0x13c)])return!0x1;let _0x36d980=_0x12ae40['get'](_0x5daeb6),_0x1a17e8=_0x12ae40[_0x20e18f(0x43e)](_0x5b9522),_0x6bec=_0x12ae40['get'](Kr),_0x463621=_0x1ed92a[_0x20e18f(0x32f)](),_0x589a96=ba(_0x1ed92a,_0x3c3ff3,_0x49087e);if(!_0x589a96)return!0x1;let {records:_0x304c03,hierarchyChanges:_0x149217,hierarchyFieldToMaterialize:_0x2f4a38}=_0x589a96,_0x66717=_0x2f4a38?_0x6bec[_0x20e18f(0x4b7)](_0x1ed92a,_0x3c3ff3,_0x2f4a38,_0x463621[_0x20e18f(0x298)][_0x3c3ff3][_0x20e18f(0x3b5)][_0x20e18f(0x13c)]):null,_0x1c25a0=_0x6bec[_0x20e18f(0x3ec)](_0x1ed92a,_0x3c3ff3,_0x304c03),_0x35b22a=R([..._0x66717?[_0x66717]:[],_0x1c25a0]),_0x4f308a=new z()[_0x20e18f(0x2d8)](_0x463621,_0x35b22a),_0x1fbbb9={'unitId':_0x1659e8,'op':_0x35b22a,'hierarchyChanges':_0x149217['length']?_0x149217:void 0x0,'source':_0x149217[_0x20e18f(0x13c)]?_0x4ef96d[_0x20e18f(0x495)]??'ui':void 0x0},_0x25f9cf={..._0x1fbbb9,'source':_0x149217[_0x20e18f(0x13c)]?_0x20e18f(0x32a):void 0x0},_0x31cf42={'unitId':_0x1659e8,'op':_0x4f308a,'hierarchyChanges':_0x149217[_0x20e18f(0x13c)]?_0x149217[_0x20e18f(0x141)](_0xc17471=>({..._0xc17471,'oldParentRecordId':_0xc17471[_0x20e18f(0x474)],'parentRecordId':null})):void 0x0,'source':_0x149217[_0x20e18f(0x13c)]?_0x20e18f(0x23c):void 0x0};return _0x36d980[_0x20e18f(0x163)](Q['id'],_0x1fbbb9)?(_0x1d09a1[_0x20e18f(0x243)](_0x1659e8),_0x1a17e8['pushUndoRedo']({'unitID':_0x1659e8,'undoMutations':[{'id':Q['id'],'params':_0x31cf42}],'redoMutations':[{'id':Q['id'],'params':_0x25f9cf}]}),!0x0):!0x1;}},Sa={'id':_0x6c183(0x377),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3200aa,_0x48794b)=>{const _0x443a80=_0x6c183;if(!_0x48794b)return!0x1;let _0x47cc2b=_0x3200aa[_0x443a80(0x43e)](_0x24efe9),{unitId:_0x2f2fad,tableId:_0x2b0918,recordIds:_0x324ea2}=_0x48794b,_0x377798=_0x47cc2b[_0x443a80(0x228)](_0x2f2fad,_0x5c5c99[_0x443a80(0x36b)]);if(!_0x377798||!$(_0x377798,_0x2b0918,{'recordIds':_0x324ea2}))return!0x1;let _0x1f6dff=_0x3200aa[_0x443a80(0x43e)](_0x5daeb6),_0x1459dd=_0x3200aa['get'](_0x5b9522),_0x1f91f1=_0x377798[_0x443a80(0x32f)](),_0x2f5748=et(_0x1f91f1[_0x443a80(0x298)][_0x2b0918],_0x324ea2),_0x3069ab=new W(),_0x721fba=new z(),_0x3580b2=_0x3069ab[_0x443a80(0x158)](_0x1f91f1,_0x2b0918,_0x324ea2),_0x4a0929=_0x721fba['applyOp'](_0x1f91f1,_0x3580b2),_0x10a9e9=_0x3069ab['createDeleteRecordsUndoOp'](_0x1f91f1,_0x4a0929,_0x2b0918,_0x324ea2),_0x10c0e0={'unitId':_0x2f2fad,'op':_0x3580b2,'hierarchyChanges':_0x2f5748,'source':_0x48794b['source']??'ui'},_0x4de18c={..._0x10c0e0,'source':_0x443a80(0x32a)},_0x13d4bf={'unitId':_0x2f2fad,'op':_0x10a9e9,'hierarchyChanges':_0x2f5748[_0x443a80(0x141)](_0x18c676=>({..._0x18c676,'oldParentRecordId':_0x18c676[_0x443a80(0x474)],'parentRecordId':_0x18c676[_0x443a80(0x2d1)]})),'source':_0x443a80(0x23c)};return _0x1f6dff['syncExecuteCommand'](Q['id'],_0x10c0e0)?(_0x47cc2b[_0x443a80(0x243)](_0x2f2fad),_0x1459dd[_0x443a80(0x47c)]({'unitID':_0x2f2fad,'undoMutations':[{'id':Q['id'],'params':_0x13d4bf}],'redoMutations':[{'id':Q['id'],'params':_0x4de18c}]}),!0x0):!0x1;}},Ca={'id':_0x6c183(0x3e1),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0xb63fcc,_0x1f82ff)=>{const _0x53aaee=_0x6c183;if(!_0x1f82ff)return!0x1;let _0x3f5546=_0xb63fcc[_0x53aaee(0x43e)](_0x24efe9),{unitId:_0x527715,tableId:_0x10b106,fieldId:_0x5184fd,input:_0xbd6687}=_0x1f82ff,_0x320e55=_0x3f5546[_0x53aaee(0x228)](_0x527715,_0x5c5c99[_0x53aaee(0x36b)]);if(!_0x320e55||_0x5184fd===_0x5a35e2||!$(_0x320e55,_0x10b106,{'fieldIds':[_0x5184fd]}))return!0x1;let _0x3afb8e=_0xb63fcc[_0x53aaee(0x43e)](_0x5daeb6),_0x12c472=_0xb63fcc[_0x53aaee(0x43e)](_0x5b9522),_0x1ed5d1=_0x320e55[_0x53aaee(0x32f)]();if(!ha(_0x320e55,_0x10b106,{..._0x1ed5d1[_0x53aaee(0x298)][_0x10b106][_0x53aaee(0x398)][_0x5184fd],..._0xbd6687}))return!0x1;let _0x4d152b=new W()[_0x53aaee(0x3e5)](_0x1ed5d1,_0x10b106,_0x5184fd,_0xbd6687),_0x3abff7=new z()[_0x53aaee(0x2d8)](_0x1ed5d1,_0x4d152b),_0x3b7752={'unitId':_0x527715,'op':_0x4d152b},_0x1849c5={'unitId':_0x527715,'op':_0x3abff7};return _0x3afb8e['syncExecuteCommand'](Q['id'],_0x3b7752)?(_0x3f5546['focusUnit'](_0x527715),_0x12c472[_0x53aaee(0x47c)]({'unitID':_0x527715,'undoMutations':[{'id':Q['id'],'params':_0x1849c5}],'redoMutations':[{'id':Q['id'],'params':_0x3b7752}]}),!0x0):!0x1;}},wa={'id':'base.command.create-base-child-record','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x597837,_0x4b5303){const _0x1ff416=_0x6c183;var _0x7da9cb;if(!_0x4b5303)return!0x1;let {unitId:_0x577981,tableId:_0x596db9,parentRecordId:_0x4a9596}=_0x4b5303,_0x1574eb=_0x597837[_0x1ff416(0x43e)](_0x24efe9),_0x355bf5=_0x1574eb[_0x1ff416(0x228)](_0x577981,_0x5c5c99[_0x1ff416(0x36b)]);if(!_0x355bf5||!$(_0x355bf5,_0x596db9,{'recordIds':[_0x4a9596]}))throw new P('missingRecord');let _0x1e4e54=_0x355bf5[_0x1ff416(0x32f)](),_0x31ba02=_0x1e4e54[_0x1ff416(0x298)][_0x596db9],_0x354f35=qe(_0x31ba02),_0x31f28f=_0x354f35??_0x4b5303['fieldId']??Je(_0x31ba02);if(_0x354f35&&_0x4b5303[_0x1ff416(0x2b0)]&&_0x4b5303['fieldId']!==_0x354f35||_0x31ba02[_0x1ff416(0x398)][_0x31f28f]&&!F(_0x31ba02,_0x31f28f))throw new P(_0x1ff416(0x48d));if((tt(_0x31ba02,_0x31f28f)[_0x1ff416(0x273)][_0x1ff416(0x43e)](_0x4a9596)??0x0)+0x1>=0x5)throw new P(_0x1ff416(0x138));if(!_a(_0x355bf5,_0x596db9,_0x4b5303[_0x1ff416(0x493)]))return!0x1;let _0x31ee75=va({..._0x4b5303['record'],'values':{..._0x4b5303[_0x1ff416(0x493)][_0x1ff416(0x227)],[_0x31f28f]:Re([_0x4a9596])}}),_0x1c7373=_0x597837[_0x1ff416(0x43e)](Kr),_0xa1dfc2=new W(),_0x2cb5fb=_0x31ba02[_0x1ff416(0x398)][_0x31f28f],_0x39d798=_0x2cb5fb?((_0x7da9cb=N(_0x2cb5fb))==null?void 0x0:_0x7da9cb[_0x1ff416(0x1d4)])===_0x4c2417[_0x1ff416(0x2e7)]?null:_0xa1dfc2[_0x1ff416(0x13b)](_0x1e4e54,_0x596db9,_0x31f28f,{'config':{..._0x2cb5fb[_0x1ff416(0x2ba)],'relationRole':_0x4c2417[_0x1ff416(0x2e7)]}}):_0x1c7373[_0x1ff416(0x4b7)](_0x355bf5,_0x596db9,Ye(_0x31ba02,_0x31f28f,_0x4b5303[_0x1ff416(0x1c6)]),_0x31ba02[_0x1ff416(0x3b5)]['length']),_0x5e8167=_0x1c7373[_0x1ff416(0x467)](_0x355bf5,_0x596db9,_0x31ee75),_0x8ba6e0=R([..._0x39d798?[_0x39d798]:[],_0x5e8167]),_0x15eb80=new z()[_0x1ff416(0x2d8)](_0x1e4e54,_0x8ba6e0),_0x2d04c6={'tableId':_0x596db9,'fieldId':_0x31f28f,'recordId':_0x31ee75['id'],'oldParentRecordId':null,'parentRecordId':_0x4a9596},_0x175d11={'unitId':_0x577981,'op':_0x8ba6e0,'trigger':wa['id'],'hierarchyChanges':[_0x2d04c6],'source':_0x4b5303[_0x1ff416(0x495)]??'ui'},_0x4aa822={..._0x175d11,'source':_0x1ff416(0x32a)},_0x8469d4={'unitId':_0x577981,'op':_0x15eb80,'trigger':wa['id'],'hierarchyChanges':[{..._0x2d04c6,'oldParentRecordId':_0x4a9596,'parentRecordId':null}],'source':'undo'};return _0x597837[_0x1ff416(0x43e)](_0x5daeb6)[_0x1ff416(0x163)](Q['id'],_0x175d11)?(_0x1574eb[_0x1ff416(0x243)](_0x577981),_0x597837[_0x1ff416(0x43e)](_0x5b9522)[_0x1ff416(0x47c)]({'unitID':_0x577981,'undoMutations':[{'id':Q['id'],'params':_0x8469d4}],'redoMutations':[{'id':Q['id'],'params':_0x4aa822}]}),!0x0):!0x1;}},Ta={'id':_0x6c183(0x4ae),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x1a0563,_0xe78845){const _0x407289=_0x6c183;if(!_0xe78845)return!0x1;let _0xce1cdc=_0x1a0563[_0x407289(0x43e)](_0x24efe9),{unitId:_0x5be20f,tableId:_0xbefe1b,field:_0x4925bb,index:_0x3106c9,viewIndexes:_0x113aa7}=_0xe78845,_0x277506=_0xce1cdc[_0x407289(0x228)](_0x5be20f,_0x5c5c99[_0x407289(0x36b)]);if(!_0x277506||!$(_0x277506,_0xbefe1b)||_0x277506[_0x407289(0x32f)]()[_0x407289(0x298)][_0xbefe1b][_0x407289(0x398)][_0x4925bb['id']]||_0x3106c9===0x0||!ha(_0x277506,_0xbefe1b,_0x4925bb))return!0x1;let _0xd3ddf1=_0x1a0563[_0x407289(0x43e)](_0x5daeb6),_0x4c49f0=_0x1a0563['get'](_0x5b9522),_0x266d25=_0x1a0563['get'](Kr)[_0x407289(0x4b7)](_0x277506,_0xbefe1b,_0x4925bb,_0x3106c9,_0x113aa7),_0x5a67d4=new z()[_0x407289(0x2d8)](_0x277506[_0x407289(0x32f)](),_0x266d25),_0x489f91={'unitId':_0x5be20f,'op':_0x266d25},_0x2ee134={'unitId':_0x5be20f,'op':_0x5a67d4};return _0xd3ddf1[_0x407289(0x163)](Q['id'],_0x489f91)?(_0xce1cdc[_0x407289(0x243)](_0x5be20f),_0x4c49f0[_0x407289(0x47c)]({'unitID':_0x5be20f,'undoMutations':[{'id':Q['id'],'params':_0x2ee134}],'redoMutations':[{'id':Q['id'],'params':_0x489f91}]}),!0x0):!0x1;}},Ea={'id':_0x6c183(0x1d2),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x207494,_0x337a69){const _0xb0801=_0x6c183;if(!_0x337a69)return!0x1;let _0xeb8d1f=_0x207494[_0xb0801(0x43e)](_0x24efe9),{unitId:_0x2ecd5e,tableId:_0x4fd3e1,record:_0x1a2fe3}=_0x337a69,_0x119ff7=_0xeb8d1f['getUnit'](_0x2ecd5e,_0x5c5c99['UNIVER_BASE']);if(!_0x119ff7||!$(_0x119ff7,_0x4fd3e1))return!0x1;let _0x4a2f18=_0x207494[_0xb0801(0x43e)](_0x5daeb6),_0x554110=_0x207494[_0xb0801(0x43e)](_0x5b9522),_0x150c70=_0x207494[_0xb0801(0x43e)](Kr),_0x124ec7=_0x119ff7['getSnapshot'](),_0xffb6a7=ba(_0x119ff7,_0x4fd3e1,[_0x1a2fe3]);if(!_0xffb6a7)return!0x1;let [_0x1bf8e7]=_0xffb6a7[_0xb0801(0x258)],{hierarchyChanges:_0x5dd0fc,hierarchyFieldToMaterialize:_0x587074}=_0xffb6a7,_0x1fa051=_0x587074?_0x150c70['createCreateFieldOp'](_0x119ff7,_0x4fd3e1,_0x587074,_0x124ec7[_0xb0801(0x298)][_0x4fd3e1][_0xb0801(0x3b5)][_0xb0801(0x13c)]):null,_0x5ba5dc=_0x150c70[_0xb0801(0x467)](_0x119ff7,_0x4fd3e1,_0x1bf8e7),_0x3a688e=R([..._0x1fa051?[_0x1fa051]:[],_0x5ba5dc]),_0x21ad56=new z()[_0xb0801(0x2d8)](_0x124ec7,_0x3a688e),_0x5a5288={'unitId':_0x2ecd5e,'op':_0x3a688e,'hierarchyChanges':_0x5dd0fc[_0xb0801(0x13c)]?_0x5dd0fc:void 0x0,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0x337a69[_0xb0801(0x495)]??'ui':void 0x0},_0x3d948f={..._0x5a5288,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0xb0801(0x32a):void 0x0},_0x14b247={'unitId':_0x2ecd5e,'op':_0x21ad56,'hierarchyChanges':_0x5dd0fc['length']?_0x5dd0fc[_0xb0801(0x141)](_0x3cb7d6=>({..._0x3cb7d6,'oldParentRecordId':_0x3cb7d6[_0xb0801(0x474)],'parentRecordId':null})):void 0x0,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0xb0801(0x23c):void 0x0};return _0x4a2f18[_0xb0801(0x163)](Q['id'],_0x5a5288)?(_0xeb8d1f[_0xb0801(0x243)](_0x2ecd5e),_0x554110[_0xb0801(0x47c)]({'unitID':_0x2ecd5e,'undoMutations':[{'id':Q['id'],'params':_0x14b247}],'redoMutations':[{'id':Q['id'],'params':_0x3d948f}]}),!0x0):!0x1;}},Da=_0x6c183(0x113);function Oa(_0x249350,_0x5df53a,_0x54b8ca){const _0x551b88=_0x6c183;if(!_0x5df53a['trim']())return{'valid':!0x1,'reason':_0x551b88(0x46f),'error':_0x551b88(0x27c)};if(_0x5df53a[_0x551b88(0x13c)]>0x1f)return{'valid':!0x1,'reason':_0x551b88(0x3f3),'error':_0x551b88(0x2df)};if(_0x5df53a[_0x551b88(0x1fb)]('\x27')||_0x5df53a[_0x551b88(0x35a)]('\x27'))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x551b88(0x215)](_0x5df53a))return{'valid':!0x1,'reason':_0x551b88(0x41e),'error':_0x551b88(0x327)};if(!_0x5cd2f5(_0x5df53a))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':_0x551b88(0x3a3)};let _0x24cea1=_0x5df53a[_0x551b88(0x432)]();return Object['values'](_0x249350[_0x551b88(0x298)])[_0x551b88(0x185)](_0x103f29=>_0x103f29['id']!==_0x54b8ca&&_0x103f29['name'][_0x551b88(0x432)]()===_0x24cea1)?{'valid':!0x1,'reason':_0x551b88(0x1df),'error':_0x551b88(0x3fd)}:{'valid':!0x0};}function ka(_0x182e81,_0x57ad58){const _0x33c1e5=_0x6c183;let _0x222e62=_0x57ad58[_0x33c1e5(0x14e)](/[:\\/?*\[\]]/g,'\x20')[_0x33c1e5(0x14e)](/^'+|'+$/g,'')[_0x33c1e5(0x226)]()||'Table',_0xf12fae=0x1;for(;;){let _0x1222db=_0xf12fae===0x1?'':'\x20'+_0xf12fae,_0x23100a=''+_0x222e62[_0x33c1e5(0x12c)](0x0,0x1f-_0x1222db['length'])+_0x1222db;if(Oa(_0x182e81,_0x23100a)[_0x33c1e5(0x26e)])return _0x23100a;_0xf12fae++;}}const Aa={'id':_0x6c183(0x466),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x40b727,_0x5d767d)=>{const _0xac77c6=_0x6c183;if(!_0x5d767d)return!0x1;let _0x163daf=_0x40b727[_0xac77c6(0x43e)](_0x24efe9),{unitId:_0x4fe3cd,table:_0xcc6d0,index:_0x119b86}=_0x5d767d,_0x1193cf=_0x163daf[_0xac77c6(0x228)](_0x4fe3cd,_0x5c5c99[_0xac77c6(0x36b)]);if(!_0x1193cf||_0x1193cf[_0xac77c6(0x32f)]()[_0xac77c6(0x298)][_0xcc6d0['id']]||!Oa(_0x1193cf[_0xac77c6(0x32f)](),_0xcc6d0[_0xac77c6(0x2a3)])[_0xac77c6(0x26e)])return!0x1;try{_0x37d535(_0xcc6d0);}catch{return!0x1;}let _0x55eb1f=_0x40b727[_0xac77c6(0x43e)](_0x5daeb6),_0x57822e=_0x40b727[_0xac77c6(0x43e)](_0x5b9522),_0x3a7e92=_0x1193cf[_0xac77c6(0x32f)](),_0x23ad0c=new W()[_0xac77c6(0x1b3)](_0x3a7e92,_0xcc6d0,_0x119b86),_0x1137de=new z()['invertOp'](_0x3a7e92,_0x23ad0c),_0x540e04={'unitId':_0x4fe3cd,'op':_0x23ad0c},_0x5d8487={'unitId':_0x4fe3cd,'op':_0x1137de};return _0x55eb1f[_0xac77c6(0x163)](Q['id'],_0x540e04)?(_0x163daf[_0xac77c6(0x243)](_0x4fe3cd),_0x57822e['pushUndoRedo']({'unitID':_0x4fe3cd,'undoMutations':[{'id':Q['id'],'params':_0x5d8487}],'redoMutations':[{'id':Q['id'],'params':_0x540e04}]}),!0x0):!0x1;}};function ja(_0x2d5d9b,_0x9a2088,_0x4cfcf0=[]){const _0x427186=_0x6c183;let _0x21270a=new Set([...Object['values'](_0x2d5d9b['fields'])[_0x427186(0x2be)](_0x158c6b=>_0x158c6b)[_0x427186(0x141)](_0x424f51=>_0x424f51['name']),..._0x4cfcf0[_0x427186(0x141)](_0x17abeb=>_0x17abeb[_0x427186(0x2a3)])]);if(!_0x21270a['has'](_0x9a2088))return _0x9a2088;let _0x32eb9b=0x2;for(;_0x21270a[_0x427186(0x34b)](_0x9a2088+'\x20'+_0x32eb9b);)_0x32eb9b++;return _0x9a2088+'\x20'+_0x32eb9b;}function Ma(_0x90f91a,_0x1812d7){const _0x11a919=_0x6c183;if(!_0x90f91a||!_0x1812d7[_0x11a919(0x13c)])return;let _0x26ea51=[..._0x90f91a];return _0x1812d7[_0x11a919(0x2e0)](_0x37b36f=>{const _0x46e7cb=_0x11a919;_0x26ea51[_0x46e7cb(0x16a)](_0x37b36f)||_0x26ea51[_0x46e7cb(0x174)](_0x37b36f);}),_0x26ea51;}const Na={'options':[{'id':_0x6c183(0x1e3),'name':_0x6c183(0x2ac),'color':_0x6c183(0x17e)},{'id':_0x6c183(0x352),'name':_0x6c183(0x255),'color':_0x6c183(0x21f)},{'id':'done','name':'Done','color':_0x6c183(0x27d)}]},Pa={'locale':_0x6c183(0x2da),'pattern':_0x6c183(0x149),'includeTime':!0x1,'hourCycle':_0x6c183(0x147),'defaultMode':_0x6c183(0x42f)};function Fa(_0x1b6274,_0x3b6ce3,_0x288890,_0x24a9b3){const _0xe25609=_0x6c183;var _0x5dc82e;let _0x8d3412=new W(),_0x3ad961=_0x1b6274['tables'][_0x3b6ce3],_0x35baf1=_0x3ad961?{..._0x288890,'fieldOrder':[_0x5a35e2,...(_0x288890[_0xe25609(0x3b5)]??_0x3ad961[_0xe25609(0x3b5)])[_0xe25609(0x2be)](_0x538790=>_0x538790!==_0x5a35e2)],'fieldSettings':{..._0x288890[_0xe25609(0x48f)],[_0x5a35e2]:{...(_0x5dc82e=_0x288890[_0xe25609(0x48f)])==null?void 0x0:_0x5dc82e[_0x5a35e2],'hidden':!0x0}}}:_0x288890;if(_0x3ad961&&_0x35baf1['type']===_0xe25609(0x4a6)){let _0x2cd409=La(_0x3ad961,_0x35baf1),_0x3fed0a=_0x2cd409['changed']?{..._0x35baf1,'config':_0x2cd409[_0xe25609(0x2ba)],'fieldOrder':_0x2cd409['fieldOrder']??_0x35baf1[_0xe25609(0x3b5)]}:_0x35baf1;return R([..._0x2cd409['fields'][_0xe25609(0x141)](_0x6bf8c=>_0x8d3412[_0xe25609(0x250)](_0x1b6274,_0x3b6ce3,{'field':_0x6bf8c})),_0x8d3412['createView'](_0x1b6274,_0x3b6ce3,_0x3fed0a,_0x24a9b3)]);}if(!_0x3ad961||_0x35baf1[_0xe25609(0x20b)]!==_0xe25609(0x1eb)&&_0x35baf1[_0xe25609(0x20b)]!==_0xe25609(0x26b))return _0x8d3412[_0xe25609(0x2d7)](_0x1b6274,_0x3b6ce3,_0x35baf1,_0x24a9b3);let _0x3720c5=Ia(_0x3ad961,_0x35baf1),_0x3ebb60=_0x3720c5['changed']?{..._0x35baf1,'config':_0x3720c5[_0xe25609(0x2ba)],'fieldOrder':_0x3720c5['fieldOrder']??_0x35baf1['fieldOrder']}:_0x35baf1;return _0x35baf1['type']==='gantt'&&Ba(_0x35baf1)&&(_0x3ebb60=Va(_0x3ad961,_0x3ebb60,_0x3720c5[_0xe25609(0x398)])),R([..._0x3720c5[_0xe25609(0x398)][_0xe25609(0x141)](_0x505aad=>_0x8d3412['createField'](_0x1b6274,_0x3b6ce3,{'field':_0x505aad})),_0x8d3412[_0xe25609(0x2d7)](_0x1b6274,_0x3b6ce3,_0x3ebb60,_0x24a9b3)]);}function Ia(_0x3e84ab,_0x547a69,_0x45f1a6=!0x1){const _0x1f4f2d=_0x6c183;var _0x4a4ed5,_0x2367e5;let _0x348df2=_0x3e84ab[_0x1f4f2d(0x3b5)][_0x1f4f2d(0x2be)](_0x2c63f8=>Ua(_0x3e84ab,_0x2c63f8)),_0x332c8a=[],_0x48c52c={..._0x547a69[_0x1f4f2d(0x2ba)]??{}},_0x213c91=typeof _0x48c52c[_0x1f4f2d(0x4b5)]==_0x1f4f2d(0x425)&&Ua(_0x3e84ab,_0x48c52c['startDateFieldId'])?_0x48c52c[_0x1f4f2d(0x4b5)]:_0x348df2[0x0],_0x3d38a0=typeof _0x48c52c['endDateFieldId']==_0x1f4f2d(0x425)&&Ua(_0x3e84ab,_0x48c52c[_0x1f4f2d(0x3ef)])&&_0x48c52c['endDateFieldId']!==_0x213c91?_0x48c52c['endDateFieldId']:_0x348df2[_0x1f4f2d(0x392)](_0x45738d=>_0x45738d!==_0x213c91);if(!_0x213c91){let _0x13d448=Wa(_0x3e84ab,_0x332c8a,_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x26b)?_0x1f4f2d(0x325):_0x1f4f2d(0x346));_0x332c8a[_0x1f4f2d(0x174)](_0x13d448),_0x213c91=_0x13d448['id'];}if((_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x26b)||_0x45f1a6)&&!_0x3d38a0){let _0x354c20=Wa(_0x3e84ab,_0x332c8a,_0x1f4f2d(0x364));_0x332c8a[_0x1f4f2d(0x174)](_0x354c20),_0x3d38a0=_0x354c20['id'];}_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x1eb)&&!_0x3d38a0&&delete _0x48c52c[_0x1f4f2d(0x3ef)],_0x48c52c[_0x1f4f2d(0x4b5)]=_0x213c91,_0x547a69[_0x1f4f2d(0x20b)]==='calendar'&&_0x3d38a0&&(_0x48c52c[_0x1f4f2d(0x3ef)]=_0x3d38a0),_0x547a69['type']===_0x1f4f2d(0x26b)&&(_0x48c52c[_0x1f4f2d(0x3ef)]=_0x3d38a0??_0x213c91);let _0x4b3126=Ma(_0x547a69[_0x1f4f2d(0x3b5)],_0x332c8a['map'](_0x1f333d=>_0x1f333d['id']));return{'changed':_0x332c8a[_0x1f4f2d(0x13c)]>0x0||_0x48c52c[_0x1f4f2d(0x4b5)]!==((_0x4a4ed5=_0x547a69['config'])==null?void 0x0:_0x4a4ed5[_0x1f4f2d(0x4b5)])||_0x48c52c[_0x1f4f2d(0x3ef)]!==((_0x2367e5=_0x547a69[_0x1f4f2d(0x2ba)])==null?void 0x0:_0x2367e5[_0x1f4f2d(0x3ef)])||!(!_0x4b3126||_0x4e3c3d[_0x1f4f2d(0x177)](_0x4b3126,_0x547a69['fieldOrder']??[])),'fields':_0x332c8a,'config':_0x48c52c,'fieldOrder':_0x4b3126};}function La(_0x57df75,_0x1e0a28){const _0x34463e=_0x6c183;var _0x2b3f14;let _0x3e6fbf=[],_0x567f9d={..._0x1e0a28[_0x34463e(0x2ba)]??{}},_0x291a28=typeof _0x567f9d['groupFieldId']==_0x34463e(0x425)&&Ra(_0x57df75,_0x567f9d['groupFieldId'])?_0x567f9d[_0x34463e(0x426)]:_0x57df75[_0x34463e(0x3b5)]['find'](_0x11bb75=>Ra(_0x57df75,_0x11bb75));if(!_0x291a28){let _0x356f18=za(_0x57df75,_0x3e6fbf);_0x3e6fbf['push'](_0x356f18),_0x291a28=_0x356f18['id'];}_0x567f9d[_0x34463e(0x426)]=_0x291a28;let _0x4a324f=Ma(_0x1e0a28[_0x34463e(0x3b5)],_0x3e6fbf[_0x34463e(0x141)](_0x284f56=>_0x284f56['id']));return{'changed':_0x3e6fbf[_0x34463e(0x13c)]>0x0||_0x567f9d[_0x34463e(0x426)]!==((_0x2b3f14=_0x1e0a28[_0x34463e(0x2ba)])==null?void 0x0:_0x2b3f14[_0x34463e(0x426)])||!(!_0x4a324f||_0x4e3c3d[_0x34463e(0x177)](_0x4a324f,_0x1e0a28[_0x34463e(0x3b5)]??[])),'fields':_0x3e6fbf,'config':_0x567f9d,'fieldOrder':_0x4a324f};}function Ra(_0x14919a,_0x2115cc){const _0x31b855=_0x6c183;let _0x232d12=_0x2115cc?_0x14919a[_0x31b855(0x398)][_0x2115cc]:null;return _0x232d12?[_0x3a044b[_0x31b855(0x20e)],_0x3a044b[_0x31b855(0x386)],_0x3a044b[_0x31b855(0x2c3)],_0x3a044b['Person'],_0x3a044b[_0x31b855(0x1ad)],_0x3a044b[_0x31b855(0x233)]]['includes'](_0x232d12[_0x31b855(0x20b)]):!0x1;}function za(_0x467c25,_0x4d517c){const _0x4a96fb=_0x6c183;return{'id':_0x4a96fb(0x4b6)+_0x456020(0x8),'name':ja(_0x467c25,'Status',_0x4d517c),'type':_0x3a044b[_0x4a96fb(0x20e)],'config':_0x4e3c3d[_0x4a96fb(0x29d)](Na)};}function Ba(_0x42e65c){const _0x41f308=_0x6c183;return Object['keys'](_0x42e65c[_0x41f308(0x2ba)]??{})[_0x41f308(0x13c)]===0x0&&Object[_0x41f308(0x24c)](_0x42e65c[_0x41f308(0x48f)]??{})['length']===0x0;}function Va(_0x3de707,_0x315c96,_0xf7d5a1){const _0x1faa6f=_0x6c183;let _0x599611={..._0x315c96[_0x1faa6f(0x2ba)]??{}},_0x495218=_0xf7d5a1[_0x1faa6f(0x141)](_0x3af4c6=>_0x3af4c6['id']),_0x2cd4b7=[..._0x3de707[_0x1faa6f(0x3b5)],..._0x495218],_0x97a481=typeof _0x599611['titleFieldId']==_0x1faa6f(0x425)&&Ha(_0x3de707,_0xf7d5a1,_0x599611['titleFieldId'])?_0x599611[_0x1faa6f(0x1ba)]:_0x3de707[_0x1faa6f(0x3b2)],_0xd6d756=typeof _0x599611['startDateFieldId']==_0x1faa6f(0x425)?_0x599611[_0x1faa6f(0x4b5)]:'',_0x100103=typeof _0x599611['endDateFieldId']=='string'?_0x599611[_0x1faa6f(0x3ef)]:_0xd6d756,_0x30b322=new Set([_0x97a481,_0xd6d756,_0x100103][_0x1faa6f(0x2be)](_0x4fab4a=>_0x4fab4a&&Ha(_0x3de707,_0xf7d5a1,_0x4fab4a))),_0x2389a2=Object[_0x1faa6f(0x176)](_0x2cd4b7[_0x1faa6f(0x17a)](_0x52356f=>_0x30b322[_0x1faa6f(0x34b)](_0x52356f)||!Ha(_0x3de707,_0xf7d5a1,_0x52356f)?[]:[[_0x52356f,{'hidden':!0x0}]]));return{..._0x315c96,'config':{..._0x599611,'titleFieldId':_0x97a481},'fieldSettings':_0x2389a2};}function Ha(_0x1576b5,_0x2942fa,_0x299d14){const _0x27e872=_0x6c183;return!!(_0x1576b5[_0x27e872(0x398)][_0x299d14]??_0x2942fa[_0x27e872(0x392)](_0x2df538=>_0x2df538['id']===_0x299d14))&&!0x0;}function Ua(_0x11f9e5,_0x10ddd3){const _0x262d0a=_0x6c183;let _0x42cb17=_0x10ddd3?_0x11f9e5[_0x262d0a(0x398)][_0x10ddd3]:null;return!!_0x42cb17&&_0x42cb17[_0x262d0a(0x20b)]===_0x3a044b[_0x262d0a(0x346)]&&_0x42cb17['readonly']!==!0x0&&_0x42cb17[_0x262d0a(0x3cf)]!==!0x0;}function Wa(_0xc21177,_0x3557ca,_0x39fef0){const _0x39fed3=_0x6c183;let _0x22ab56=new Set([...Object[_0x39fed3(0x24c)](_0xc21177[_0x39fed3(0x398)]),..._0x3557ca[_0x39fed3(0x141)](_0x55223a=>_0x55223a['id'])]),_0x454dc8=_0x39fed3(0x4b6)+_0x456020(0x8);for(;_0x22ab56[_0x39fed3(0x34b)](_0x454dc8);)_0x454dc8=_0x39fed3(0x4b6)+_0x456020(0x8);return{'id':_0x454dc8,'name':ja(_0xc21177,_0x39fef0,_0x3557ca),'type':_0x3a044b['Date'],'config':{...Pa}};}const Ga={'id':_0x6c183(0x39a),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x20781e,_0x46994b)=>{const _0x2a3325=_0x6c183;if(!_0x46994b)return!0x1;let _0x150bf0=_0x20781e[_0x2a3325(0x43e)](_0x24efe9),{unitId:_0x14a367,tableId:_0x33fe52,view:_0x31dd8c,index:_0x50295c}=_0x46994b,_0x5b8a9f=_0x150bf0[_0x2a3325(0x228)](_0x14a367,_0x5c5c99[_0x2a3325(0x36b)]);if(!_0x5b8a9f||!$(_0x5b8a9f,_0x33fe52)||_0x5b8a9f[_0x2a3325(0x32f)]()[_0x2a3325(0x298)][_0x33fe52][_0x2a3325(0x362)][_0x31dd8c['id']])return!0x1;let _0x30bd97=_0x20781e[_0x2a3325(0x43e)](_0x5daeb6),_0x30bdc0=_0x20781e[_0x2a3325(0x43e)](_0x5b9522),_0x5a07aa=_0x5b8a9f[_0x2a3325(0x32f)](),_0x209d4c=Fa(_0x5a07aa,_0x33fe52,_0x31dd8c,_0x50295c),_0x37d13c=new z()[_0x2a3325(0x2d8)](_0x5a07aa,_0x209d4c),_0x165bff={'historyAction':_0x2a3325(0x44d),'unitId':_0x14a367,'op':_0x209d4c,'viewType':_0x31dd8c['type']},_0x20f895={'historyAction':_0x2a3325(0x145),'unitId':_0x14a367,'op':_0x37d13c,'viewType':_0x31dd8c[_0x2a3325(0x20b)]};return _0x30bd97[_0x2a3325(0x163)](Q['id'],_0x165bff)?(_0x150bf0[_0x2a3325(0x243)](_0x14a367),_0x30bdc0[_0x2a3325(0x47c)]({'unitID':_0x14a367,'undoMutations':[{'id':Q['id'],'params':_0x20f895}],'redoMutations':[{'id':Q['id'],'params':_0x165bff}]}),!0x0):!0x1;}},Ka={'id':_0x6c183(0x274),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x553932,_0x2ff919){const _0x28b9fe=_0x6c183;if(!_0x2ff919)return!0x1;let _0x406cd3=_0x553932[_0x28b9fe(0x43e)](_0x24efe9),{unitId:_0x1fa5cc,tableId:_0x41db8b,fieldId:_0x187f29}=_0x2ff919,_0x108a22=_0x406cd3[_0x28b9fe(0x228)](_0x1fa5cc,_0x5c5c99[_0x28b9fe(0x36b)]);if(!_0x108a22)return!0x1;let _0x599ee7=_0x108a22['getSnapshot'](),_0x224077=_0x599ee7[_0x28b9fe(0x298)][_0x41db8b];if(!$(_0x108a22,_0x41db8b,{'fieldIds':[_0x187f29]})||_0x224077[_0x28b9fe(0x3b2)]===_0x187f29||_0x187f29===_0x5a35e2)return!0x1;let _0x39ce3d=_0x553932[_0x28b9fe(0x43e)](_0x5daeb6),_0x662ec7=_0x553932['get'](_0x5b9522),_0x1a9b80=new W()['deleteField'](_0x599ee7,_0x41db8b,_0x187f29),_0x911843=new z()['invertOp'](_0x599ee7,_0x1a9b80),_0x16d498={'unitId':_0x1fa5cc,'op':_0x1a9b80},_0x3c3af8={'unitId':_0x1fa5cc,'op':_0x911843};return _0x39ce3d[_0x28b9fe(0x163)](Q['id'],_0x16d498)?(_0x406cd3[_0x28b9fe(0x243)](_0x1fa5cc),_0x662ec7[_0x28b9fe(0x47c)]({'unitID':_0x1fa5cc,'undoMutations':[{'id':Q['id'],'params':_0x3c3af8}],'redoMutations':[{'id':Q['id'],'params':_0x16d498}]}),!0x0):!0x1;}},qa={'id':_0x6c183(0x1c7),'type':_0x22977e['COMMAND'],'handler':(_0x2013c9,_0x7d6d58)=>{const _0x1fef8b=_0x6c183;if(!_0x7d6d58)return!0x1;let _0x122331=_0x2013c9[_0x1fef8b(0x43e)](_0x24efe9),{unitId:_0x58407e,tableId:_0x8cade5,recordId:_0x386177}=_0x7d6d58,_0x118a2e=_0x122331['getUnit'](_0x58407e,_0x5c5c99[_0x1fef8b(0x36b)]);if(!_0x118a2e||!$(_0x118a2e,_0x8cade5,{'recordIds':[_0x386177]}))return!0x1;let _0x45e3e4=_0x2013c9['get'](_0x5daeb6),_0x23c254=_0x2013c9[_0x1fef8b(0x43e)](_0x5b9522),_0x3f01a3=_0x118a2e[_0x1fef8b(0x32f)](),_0x540d30=et(_0x3f01a3['tables'][_0x8cade5],[_0x386177]),_0x4066cf=new W(),_0xf19bfa=new z(),_0xc2f43a=_0x4066cf[_0x1fef8b(0x465)](_0x3f01a3,_0x8cade5,_0x386177),_0x37587a=_0xf19bfa[_0x1fef8b(0x4c3)](_0x3f01a3,_0xc2f43a),_0x1692a0=_0x4066cf[_0x1fef8b(0x225)](_0x3f01a3,_0x37587a,_0x8cade5,[_0x386177]),_0x19d51c={'unitId':_0x58407e,'op':_0xc2f43a,'hierarchyChanges':_0x540d30,'source':_0x7d6d58[_0x1fef8b(0x495)]??'ui'},_0x24af53={..._0x19d51c,'source':'redo'},_0x48cd46={'unitId':_0x58407e,'op':_0x1692a0,'hierarchyChanges':_0x540d30['map'](_0x4ee603=>({..._0x4ee603,'oldParentRecordId':_0x4ee603[_0x1fef8b(0x474)],'parentRecordId':_0x4ee603[_0x1fef8b(0x2d1)]})),'source':_0x1fef8b(0x23c)};return _0x45e3e4[_0x1fef8b(0x163)](Q['id'],_0x19d51c)?(_0x122331['focusUnit'](_0x58407e),_0x23c254['pushUndoRedo']({'unitID':_0x58407e,'undoMutations':[{'id':Q['id'],'params':_0x48cd46}],'redoMutations':[{'id':Q['id'],'params':_0x24af53}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x22977e['COMMAND'],'handler':(_0x8629d6,_0x4c0627)=>{const _0x1c3550=_0x6c183;if(!_0x4c0627)return!0x1;let _0x1a26cb=_0x8629d6[_0x1c3550(0x43e)](_0x24efe9),{unitId:_0x14324c,tableId:_0x343648}=_0x4c0627,_0x80d9ab=_0x1a26cb[_0x1c3550(0x228)](_0x14324c,_0x5c5c99['UNIVER_BASE']);if(!_0x80d9ab||!$(_0x80d9ab,_0x343648))return!0x1;let _0x401154=_0x8629d6['get'](_0x5daeb6),_0x15a4d3=_0x8629d6[_0x1c3550(0x43e)](_0x5b9522),_0x375abd=_0x80d9ab[_0x1c3550(0x32f)](),_0x34eea4=He(_0x375abd,_0x343648);if(_0x34eea4[_0x1c3550(0x13c)]>0x0)return console['error'](_0x1c3550(0x30f)+_0x343648+_0x1c3550(0x181)+_0x34eea4[_0x1c3550(0x141)](_0x563c8b=>_0x563c8b[_0x1c3550(0x210)]+'.'+_0x563c8b['fieldId'])[_0x1c3550(0x11a)](',\x20')+'.'),!0x1;let _0x3417f4=new W()[_0x1c3550(0x283)](_0x375abd,_0x343648),_0x554626=new z()[_0x1c3550(0x2d8)](_0x375abd,_0x3417f4),_0x34b828={'unitId':_0x14324c,'op':_0x3417f4},_0x262e67={'unitId':_0x14324c,'op':_0x554626};return _0x401154['syncExecuteCommand'](Q['id'],_0x34b828)?(_0x1a26cb[_0x1c3550(0x243)](_0x14324c),_0x15a4d3[_0x1c3550(0x47c)]({'unitID':_0x14324c,'undoMutations':[{'id':Q['id'],'params':_0x262e67}],'redoMutations':[{'id':Q['id'],'params':_0x34b828}]}),!0x0):!0x1;}},Ya={'id':'base.command.delete-base-view','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3ea21f,_0x44b905)=>{const _0x51df61=_0x6c183;if(!_0x44b905)return!0x1;let _0x1df303=_0x3ea21f[_0x51df61(0x43e)](_0x24efe9),{unitId:_0x58134b,tableId:_0x25aaed,viewId:_0x567646}=_0x44b905,_0x4ccbdf=_0x1df303['getUnit'](_0x58134b,_0x5c5c99[_0x51df61(0x36b)]);if(!_0x4ccbdf||!$(_0x4ccbdf,_0x25aaed,{'viewIds':[_0x567646]}))return!0x1;let _0x37dffc=_0x3ea21f[_0x51df61(0x43e)](_0x5daeb6),_0x49aa2f=_0x3ea21f[_0x51df61(0x43e)](_0x5b9522),_0x1e62bd=_0x4ccbdf[_0x51df61(0x32f)](),_0x26ce89=_0x1e62bd[_0x51df61(0x298)][_0x25aaed][_0x51df61(0x362)][_0x567646][_0x51df61(0x20b)],_0x330cdc=new W()[_0x51df61(0x3f9)](_0x1e62bd,_0x25aaed,_0x567646),_0x39fabc=new z()[_0x51df61(0x2d8)](_0x1e62bd,_0x330cdc),_0x38fad1={'historyAction':_0x51df61(0x145),'unitId':_0x58134b,'op':_0x330cdc,'viewType':_0x26ce89},_0x5e1d41={'historyAction':_0x51df61(0x44d),'unitId':_0x58134b,'op':_0x39fabc,'viewType':_0x26ce89};return _0x37dffc[_0x51df61(0x163)](Q['id'],_0x38fad1)?(_0x1df303[_0x51df61(0x243)](_0x58134b),_0x49aa2f[_0x51df61(0x47c)]({'unitID':_0x58134b,'undoMutations':[{'id':Q['id'],'params':_0x5e1d41}],'redoMutations':[{'id':Q['id'],'params':_0x38fad1}]}),!0x0):!0x1;}},Xa={'id':_0x6c183(0x128),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3b6113,_0x500447)=>{const _0x3324d2=_0x6c183;if(!_0x500447)return!0x1;let _0x4c0d4f=_0x3b6113[_0x3324d2(0x43e)](_0x24efe9),{unitId:_0x48e3f4,tableId:_0x20679d,sourceFieldId:_0x448a94,field:_0x3b1a0b,index:_0x226539,viewIndexes:_0x46a890}=_0x500447,_0x54708d=_0x4c0d4f[_0x3324d2(0x228)](_0x48e3f4,_0x5c5c99[_0x3324d2(0x36b)]);if(!_0x54708d||!$(_0x54708d,_0x20679d,{'fieldIds':[_0x448a94]})||_0x448a94===_0x5a35e2||_0x54708d[_0x3324d2(0x32f)]()[_0x3324d2(0x298)][_0x20679d][_0x3324d2(0x398)][_0x3b1a0b['id']]||_0x226539===0x0||!ha(_0x54708d,_0x20679d,_0x3b1a0b))return!0x1;let _0x304d82=_0x3b6113[_0x3324d2(0x43e)](_0x5daeb6),_0x25fc76=_0x3b6113[_0x3324d2(0x43e)](_0x5b9522),_0x3790fe=_0x54708d[_0x3324d2(0x32f)](),_0x4b7342=new W()[_0x3324d2(0x25b)](_0x3790fe,_0x20679d,_0x448a94,{'field':_0x3b1a0b,'index':_0x226539,'viewIndexes':_0x46a890}),_0x480ce0=new z()[_0x3324d2(0x2d8)](_0x3790fe,_0x4b7342),_0x22178a={'unitId':_0x48e3f4,'op':_0x4b7342},_0x50184b={'unitId':_0x48e3f4,'op':_0x480ce0};return _0x304d82[_0x3324d2(0x163)](Q['id'],_0x22178a)?(_0x4c0d4f[_0x3324d2(0x243)](_0x48e3f4),_0x25fc76[_0x3324d2(0x47c)]({'unitID':_0x48e3f4,'undoMutations':[{'id':Q['id'],'params':_0x50184b}],'redoMutations':[{'id':Q['id'],'params':_0x22178a}]}),!0x0):!0x1;}},Za={'id':_0x6c183(0x206),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x4c825d,_0xb32af6)=>{const _0x200970=_0x6c183;if(!_0xb32af6)return!0x1;let _0x3fa843=_0x4c825d['get'](_0x24efe9),{unitId:_0x33fb4e,tableId:_0x5d0bbc,sourceRecordId:_0x49cbe1,record:_0x25536d}=_0xb32af6,_0x1f1306=_0x3fa843[_0x200970(0x228)](_0x33fb4e,_0x5c5c99[_0x200970(0x36b)]);if(!_0x1f1306||!$(_0x1f1306,_0x5d0bbc,{'recordIds':[_0x49cbe1]})||!_a(_0x1f1306,_0x5d0bbc,_0x25536d))return!0x1;let _0x5850b4=_0x4c825d[_0x200970(0x43e)](_0x5daeb6),_0x5bc2ec=_0x4c825d[_0x200970(0x43e)](_0x5b9522),_0x46a72d=_0x1f1306['getSnapshot'](),_0x1a25da=va(_0x25536d),_0x33e0c8=Qe(_0x46a72d['tables'][_0x5d0bbc],[_0x1a25da]),_0x1cebea=new W()['duplicateRecord'](_0x46a72d,_0x5d0bbc,_0x49cbe1,_0x1a25da),_0x3a945d=new z()[_0x200970(0x2d8)](_0x46a72d,_0x1cebea),_0x4e1c68={'unitId':_0x33fb4e,'op':_0x1cebea,'hierarchyChanges':_0x33e0c8[_0x200970(0x13c)]?_0x33e0c8:void 0x0,'source':_0x33e0c8[_0x200970(0x13c)]?_0xb32af6['source']??'ui':void 0x0},_0x47a5d0={..._0x4e1c68,'source':_0x33e0c8['length']?'redo':void 0x0},_0x3c952b={'unitId':_0x33fb4e,'op':_0x3a945d,'hierarchyChanges':_0x33e0c8[_0x200970(0x13c)]?_0x33e0c8[_0x200970(0x141)](_0x1565b0=>({..._0x1565b0,'oldParentRecordId':_0x1565b0[_0x200970(0x474)],'parentRecordId':null})):void 0x0,'source':_0x33e0c8[_0x200970(0x13c)]?'undo':void 0x0};return _0x5850b4[_0x200970(0x163)](Q['id'],_0x4e1c68)?(_0x3fa843[_0x200970(0x243)](_0x33fb4e),_0x5bc2ec[_0x200970(0x47c)]({'unitID':_0x33fb4e,'undoMutations':[{'id':Q['id'],'params':_0x3c952b}],'redoMutations':[{'id':Q['id'],'params':_0x47a5d0}]}),!0x0):!0x1;}},Qa={'id':_0x6c183(0x247),'type':_0x22977e['COMMAND'],'handler'(_0x509c66,_0x5815a1){const _0x45d9a7=_0x6c183;if(!_0x5815a1)return!0x1;let _0x56db3a=_0x509c66[_0x45d9a7(0x43e)](_0x24efe9),{unitId:_0x1bfe58,tableId:_0x505ba5,viewId:_0x43d94c,ensureEndDateField:_0x50693b}=_0x5815a1,_0x53fdc9=_0x56db3a['getUnit'](_0x1bfe58,_0x5c5c99[_0x45d9a7(0x36b)]);if(!_0x53fdc9||!$(_0x53fdc9,_0x505ba5,{'viewIds':[_0x43d94c]}))return!0x1;let _0x4a1010=_0x53fdc9[_0x45d9a7(0x32f)](),_0x1eaf00=_0x4a1010[_0x45d9a7(0x298)][_0x505ba5],_0x9f3488=_0x1eaf00==null?void 0x0:_0x1eaf00['views'][_0x43d94c];if(!_0x1eaf00||!_0x9f3488||_0x9f3488['type']!==_0x45d9a7(0x1eb)&&_0x9f3488[_0x45d9a7(0x20b)]!==_0x45d9a7(0x26b))return!0x1;let _0x382c66=Ia(_0x1eaf00,_0x9f3488,_0x50693b===!0x0);if(!_0x382c66[_0x45d9a7(0x1e4)])return!0x1;let _0x36760a=_0x509c66[_0x45d9a7(0x43e)](_0x5daeb6),_0x446a5d=_0x509c66[_0x45d9a7(0x43e)](_0x5b9522),_0x1690e5=new W(),_0x59f306=[..._0x382c66[_0x45d9a7(0x398)][_0x45d9a7(0x141)](_0x4e8ee8=>_0x1690e5[_0x45d9a7(0x250)](_0x4a1010,_0x5815a1[_0x45d9a7(0x210)],{'field':_0x4e8ee8})),$a([...eo(_0x5815a1[_0x45d9a7(0x210)],_0x5815a1[_0x45d9a7(0x288)]),'config'],_0x9f3488[_0x45d9a7(0x2ba)],_0x382c66[_0x45d9a7(0x2ba)])];_0x382c66[_0x45d9a7(0x3b5)]&&_0x59f306[_0x45d9a7(0x174)]($a([...eo(_0x5815a1[_0x45d9a7(0x210)],_0x5815a1[_0x45d9a7(0x288)]),'fieldOrder'],_0x9f3488[_0x45d9a7(0x3b5)],_0x382c66[_0x45d9a7(0x3b5)]));let _0x1b5a67=R(_0x59f306),_0x5a6179=new z()['invertOp'](_0x4a1010,_0x1b5a67),_0x320276={'unitId':_0x1bfe58,'op':_0x1b5a67},_0x1b5cdb={'unitId':_0x1bfe58,'op':_0x5a6179};return _0x36760a[_0x45d9a7(0x163)](Q['id'],_0x320276)?(_0x56db3a[_0x45d9a7(0x243)](_0x1bfe58),_0x446a5d[_0x45d9a7(0x47c)]({'unitID':_0x1bfe58,'undoMutations':[{'id':Q['id'],'params':_0x1b5cdb}],'redoMutations':[{'id':Q['id'],'params':_0x320276}]}),!0x0):!0x1;}};function $a(_0x5dbc59,_0x52ebea,_0xf49f25){const _0x306426=_0x6c183;return _0x52ebea===void 0x0?_0x53fdae[_0x306426(0x13f)](_0x5dbc59,_0xf49f25):_0x53fdae[_0x306426(0x180)](_0x5dbc59,_0x52ebea,_0xf49f25);}function eo(_0x20a60c,_0x36c2d0){const _0x30ff7f=_0x6c183;return[_0x30ff7f(0x298),_0x20a60c,_0x30ff7f(0x362),_0x36c2d0];}const to={'id':'base.command.move-base-field','type':_0x22977e['COMMAND'],'handler':(_0x16c391,_0x3b800e)=>{const _0x34e677=_0x6c183;if(!_0x3b800e)return!0x1;let _0x255867=_0x16c391[_0x34e677(0x43e)](_0x24efe9),{unitId:_0x588c3a,tableId:_0x588d53,fieldId:_0xaf49e,target:_0x41f4fb}=_0x3b800e,_0x159f7d=_0x255867[_0x34e677(0x228)](_0x588c3a,_0x5c5c99['UNIVER_BASE']),_0x5dc3f0=_0x41f4fb[_0x34e677(0x33d)]??_0x41f4fb[_0x34e677(0x473)];if(!_0x159f7d||!!_0x41f4fb[_0x34e677(0x33d)]==!!_0x41f4fb[_0x34e677(0x473)]||!_0x5dc3f0||_0x5dc3f0===_0xaf49e||_0xaf49e===_0x5a35e2||_0x41f4fb[_0x34e677(0x33d)]===_0x5a35e2||!$(_0x159f7d,_0x588d53,{'fieldIds':[_0xaf49e,_0x5dc3f0]}))return!0x1;let _0x1a8763=_0x16c391[_0x34e677(0x43e)](_0x5daeb6),_0x39f543=_0x16c391[_0x34e677(0x43e)](_0x5b9522),_0x561e63=_0x159f7d[_0x34e677(0x32f)](),_0x56c040=new W()['moveField'](_0x561e63,_0x588d53,_0xaf49e,_0x41f4fb),_0xc5b4f4=new z()[_0x34e677(0x2d8)](_0x561e63,_0x56c040),_0x2803d8={'unitId':_0x588c3a,'op':_0x56c040},_0x521d4d={'unitId':_0x588c3a,'op':_0xc5b4f4};return _0x1a8763[_0x34e677(0x163)](Q['id'],_0x2803d8)?(_0x255867[_0x34e677(0x243)](_0x588c3a),_0x39f543[_0x34e677(0x47c)]({'unitID':_0x588c3a,'undoMutations':[{'id':Q['id'],'params':_0x521d4d}],'redoMutations':[{'id':Q['id'],'params':_0x2803d8}]}),!0x0):!0x1;}},no={'id':_0x6c183(0x2af),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x427956,_0xebfa42)=>{const _0x42c0e3=_0x6c183;var _0x59d24f;if(!_0xebfa42)return!0x1;let {unitId:_0xb380b1,tableId:_0x493c16,recordId:_0x59cbe8,parentRecordId:_0x2a7989,orderKey:_0xaf908c}=_0xebfa42,_0x3ff605=_0x427956['get'](_0x24efe9),_0xec512d=_0x3ff605[_0x42c0e3(0x228)](_0xb380b1,_0x5c5c99[_0x42c0e3(0x36b)]);if(!_0xec512d||!$(_0xec512d,_0x493c16,{'recordIds':[_0x59cbe8,..._0x2a7989?[_0x2a7989]:[]]}))throw new P(_0x42c0e3(0x281));let _0x4c428d=_0xec512d[_0x42c0e3(0x32f)](),_0x1b3f18=_0x4c428d[_0x42c0e3(0x298)][_0x493c16],_0x4c3b00=qe(_0x1b3f18),_0x42088a=_0x4c3b00??_0xebfa42['fieldId']??Je(_0x1b3f18);if(_0x4c3b00&&_0xebfa42['fieldId']&&_0xebfa42['fieldId']!==_0x4c3b00||_0x1b3f18[_0x42c0e3(0x398)][_0x42088a]&&!F(_0x1b3f18,_0x42088a))throw new P(_0x42c0e3(0x48d));let _0x30139d=tt(_0x1b3f18,_0x42088a),_0x401726=it(_0x30139d,_0x59cbe8,_0x2a7989);if(!_0x401726[_0x42c0e3(0x26e)])throw new P(_0x401726['reason']===_0x5b4879[_0x42c0e3(0x40a)]?'selfParent':_0x401726['reason']===_0x5b4879[_0x42c0e3(0x478)]?'cycle':_0x42c0e3(0x138));let _0x594747=_0x30139d[_0x42c0e3(0x3b7)][_0x42c0e3(0x43e)](_0x59cbe8)??null,_0x4ee275=_0x1b3f18[_0x42c0e3(0x258)][_0x59cbe8][_0x42c0e3(0x4a1)];if(_0x594747===_0x2a7989&&(_0xaf908c===void 0x0||_0xaf908c===_0x4ee275))return!0x0;let _0x5de515=_0x594747!==_0x2a7989,_0x309e52=_0xaf908c!==void 0x0&&_0xaf908c!==_0x4ee275,_0x365fd4=new W(),_0x19291c=[],_0x21e200=_0x1b3f18['fields'][_0x42088a],_0x1d68d7=_0x5de515&&(!_0x21e200||((_0x59d24f=N(_0x21e200))==null?void 0x0:_0x59d24f[_0x42c0e3(0x1d4)])!==_0x4c2417[_0x42c0e3(0x2e7)])?_0x21e200?_0x365fd4[_0x42c0e3(0x13b)](_0x4c428d,_0x493c16,_0x42088a,{'config':{..._0x21e200[_0x42c0e3(0x2ba)],'relationRole':_0x4c2417[_0x42c0e3(0x2e7)]}}):_0x427956['get'](Kr)[_0x42c0e3(0x4b7)](_0xec512d,_0x493c16,Ye(_0x1b3f18,_0x42088a,_0xebfa42[_0x42c0e3(0x1c6)]),_0x1b3f18[_0x42c0e3(0x3b5)][_0x42c0e3(0x13c)]):null;_0x1d68d7&&_0x19291c[_0x42c0e3(0x174)](_0x1d68d7),_0x5de515&&_0x19291c[_0x42c0e3(0x174)](_0x365fd4['updateCell'](_0x4c428d,_0x493c16,_0x59cbe8,_0x42088a,_0x2a7989?Re([_0x2a7989]):'')),_0x309e52&&_0x19291c['push'](_0x365fd4['updateRecordOrder'](_0x4c428d,_0x493c16,_0x59cbe8,_0xaf908c));let _0x298e10=R(_0x19291c),_0x4c1a73={'tableId':_0x493c16,'fieldId':_0x42088a,'recordId':_0x59cbe8,'oldParentRecordId':_0x594747,'parentRecordId':_0x2a7989},_0x143259={'unitId':_0xb380b1,'op':_0x298e10,'trigger':no['id'],'hierarchyChanges':[_0x4c1a73],'source':_0xebfa42[_0x42c0e3(0x495)]??'ui'},_0x4a210e={..._0x143259,'source':'redo'};if(!_0x427956['get'](_0x5daeb6)[_0x42c0e3(0x163)](Q['id'],_0x143259))return!0x1;let _0x37eed0=_0xec512d[_0x42c0e3(0x32f)](),_0x32eee4=[];_0x5de515&&_0x32eee4[_0x42c0e3(0x174)](ro(_0x37eed0,_0x4c428d,_0x493c16,_0x59cbe8,_0x42088a)),_0x309e52&&_0x32eee4[_0x42c0e3(0x174)](io(_0x37eed0,_0x4c428d,_0x493c16,_0x59cbe8)),_0x1d68d7&&_0x32eee4[_0x42c0e3(0x174)](new z()[_0x42c0e3(0x2d8)](_0x4c428d,_0x1d68d7));let _0x42ea62={'unitId':_0xb380b1,'op':R(_0x32eee4),'trigger':no['id'],'hierarchyChanges':[{..._0x4c1a73,'oldParentRecordId':_0x2a7989,'parentRecordId':_0x594747}],'source':'undo'};return _0x3ff605[_0x42c0e3(0x243)](_0xb380b1),_0x427956[_0x42c0e3(0x43e)](_0x5b9522)[_0x42c0e3(0x47c)]({'unitID':_0xb380b1,'undoMutations':[{'id':Q['id'],'params':_0x42ea62}],'redoMutations':[{'id':Q['id'],'params':_0x4a210e}]}),!0x0;}};function ro(_0x417ee7,_0x44fef9,_0x42b989,_0x1f7f38,_0x128e22){const _0x286cbf=_0x6c183;var _0x496e3a,_0x7654ae,_0x250594,_0x49610d,_0x14e160,_0x1c8c8c,_0x2073c3,_0x1a439d;let _0x3ed69a=_0x417ee7[_0x286cbf(0x298)][_0x42b989],_0x16ea4c=_0x44fef9[_0x286cbf(0x298)][_0x42b989],_0x188501=(_0x496e3a=_0x3ed69a[_0x286cbf(0x375)])==null?void 0x0:_0x496e3a[_0x1f7f38],_0x28531b=(_0x7654ae=_0x3ed69a['colIndex'])==null?void 0x0:_0x7654ae[_0x128e22],_0x480f67=(_0x250594=_0x16ea4c[_0x286cbf(0x375)])==null?void 0x0:_0x250594[_0x1f7f38],_0x32fd6b=(_0x49610d=_0x16ea4c[_0x286cbf(0x390)])==null?void 0x0:_0x49610d[_0x128e22],_0xdb9805=_0x188501==null||_0x28531b==null||(_0x14e160=_0x3ed69a[_0x286cbf(0x389)])==null||(_0x14e160=_0x14e160[_0x188501])==null?void 0x0:_0x14e160[_0x28531b],_0xbb36e8=_0x480f67==null||_0x32fd6b==null||(_0x1c8c8c=_0x16ea4c[_0x286cbf(0x389)])==null||(_0x1c8c8c=_0x1c8c8c[_0x480f67])==null?void 0x0:_0x1c8c8c[_0x32fd6b],_0x49f79d=(_0x2073c3=_0x3ed69a[_0x286cbf(0x258)][_0x1f7f38])==null?void 0x0:_0x2073c3[_0x286cbf(0x227)][_0x128e22],_0x389ae0=(_0x1a439d=_0x16ea4c[_0x286cbf(0x258)][_0x1f7f38])==null?void 0x0:_0x1a439d[_0x286cbf(0x227)][_0x128e22],_0x485f33=[],_0x40d91f=ao(_0x188501==null||_0x28531b==null?null:U['cellData'](_0x42b989,_0x188501,_0x28531b),_0xdb9805,_0xbb36e8);_0x40d91f&&_0x485f33['push'](_0x40d91f);let _0x2131b2=ao(U[_0x286cbf(0x1de)](_0x42b989,_0x1f7f38,_0x128e22),_0x49f79d,_0x389ae0);return _0x2131b2&&_0x485f33[_0x286cbf(0x174)](_0x2131b2),R(_0x485f33);}function io(_0x404e59,_0x203e55,_0x11ca6d,_0x1f02cd){const _0x3ba420=_0x6c183;var _0x4be4b7,_0x2eca94;let _0x1f605a=_0x404e59[_0x3ba420(0x298)][_0x11ca6d],_0x41a5ae=_0x203e55[_0x3ba420(0x298)][_0x11ca6d];return R([ao([...U[_0x3ba420(0x493)](_0x11ca6d,_0x1f02cd),'orderKey'],(_0x4be4b7=_0x1f605a[_0x3ba420(0x258)][_0x1f02cd])==null?void 0x0:_0x4be4b7[_0x3ba420(0x4a1)],(_0x2eca94=_0x41a5ae[_0x3ba420(0x258)][_0x1f02cd])==null?void 0x0:_0x2eca94[_0x3ba420(0x4a1)]),ao([...U[_0x3ba420(0x4c7)](_0x11ca6d),_0x3ba420(0x1e7)],_0x1f605a[_0x3ba420(0x1e7)],_0x41a5ae[_0x3ba420(0x1e7)])][_0x3ba420(0x2be)](_0x844ab4=>!!_0x844ab4));}function ao(_0x5c024d,_0x5568e3,_0x11c614){const _0x5e4291=_0x6c183;if(!_0x5c024d||_0x5568e3===void 0x0&&_0x11c614===void 0x0)return null;let _0x4581b2=_0x39141f[_0x5e4291(0x47f)]();return _0x11c614===void 0x0?_0x4581b2[_0x5e4291(0x37b)](_0x5c024d,_0x5568e3):_0x5568e3===void 0x0?_0x4581b2['insertOp'](_0x5c024d,_0x11c614):_0x4581b2[_0x5e4291(0x180)](_0x5c024d,_0x5568e3,_0x11c614);}const oo={'id':_0x6c183(0x429),'type':_0x22977e['COMMAND'],'handler':(_0x4786c4,_0x1f084c)=>{const _0x2f3fbf=_0x6c183;if(!_0x1f084c)return!0x1;let _0x33d727=_0x4786c4['get'](_0x24efe9),{unitId:_0x2d2a49,tableId:_0x493706,viewId:_0x5c1a56,target:_0x727ce8}=_0x1f084c,_0x3cad72=_0x33d727['getUnit'](_0x2d2a49,_0x5c5c99[_0x2f3fbf(0x36b)]),_0xbd9c3=_0x727ce8[_0x2f3fbf(0x1af)]??_0x727ce8[_0x2f3fbf(0x2d4)];if(!_0x3cad72||!_0xbd9c3||_0xbd9c3===_0x5c1a56||!$(_0x3cad72,_0x493706,{'viewIds':[_0x5c1a56,_0xbd9c3]}))return!0x1;let _0x517092=_0x4786c4[_0x2f3fbf(0x43e)](_0x5daeb6),_0x4d693b=_0x4786c4[_0x2f3fbf(0x43e)](_0x5b9522),_0x4743d3=_0x3cad72[_0x2f3fbf(0x32f)](),_0x5cd167=new W()[_0x2f3fbf(0x308)](_0x4743d3,_0x493706,_0x5c1a56,_0x727ce8),_0x548a45=new z()['invertOp'](_0x4743d3,_0x5cd167),_0x359e6f={'unitId':_0x2d2a49,'op':_0x5cd167},_0x6e6d4={'unitId':_0x2d2a49,'op':_0x548a45};return _0x517092['syncExecuteCommand'](Q['id'],_0x359e6f)?(_0x33d727['focusUnit'](_0x2d2a49),_0x4d693b[_0x2f3fbf(0x47c)]({'unitID':_0x2d2a49,'undoMutations':[{'id':Q['id'],'params':_0x6e6d4}],'redoMutations':[{'id':Q['id'],'params':_0x359e6f}]}),!0x0):!0x1;}},so={'id':_0x6c183(0x204),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x26394f,_0x2c22c9)=>{const _0x3751a0=_0x6c183;if(!_0x2c22c9)return!0x1;let _0x5221a0=_0x26394f[_0x3751a0(0x43e)](_0x24efe9),{unitId:_0x100dee,tableId:_0x98b186,name:_0x54f9c6}=_0x2c22c9,_0x449f77=_0x5221a0[_0x3751a0(0x228)](_0x100dee,_0x5c5c99['UNIVER_BASE']);if(!_0x449f77||!$(_0x449f77,_0x98b186)||!Oa(_0x449f77[_0x3751a0(0x32f)](),_0x54f9c6,_0x98b186)['valid'])return!0x1;let _0x58ffad=_0x26394f[_0x3751a0(0x43e)](_0x5daeb6),_0x34897c=_0x26394f[_0x3751a0(0x43e)](_0x5b9522),_0x5ed005=_0x449f77[_0x3751a0(0x32f)](),_0x3d6cd1=new W()[_0x3751a0(0x17d)](_0x5ed005,_0x98b186,_0x54f9c6),_0x478230=new z()['invertOp'](_0x5ed005,_0x3d6cd1),_0x15406e={'unitId':_0x100dee,'op':_0x3d6cd1},_0x4f4e3a={'unitId':_0x100dee,'op':_0x478230};return _0x58ffad[_0x3751a0(0x163)](Q['id'],_0x15406e)?(_0x5221a0[_0x3751a0(0x243)](_0x100dee),_0x34897c[_0x3751a0(0x47c)]({'unitID':_0x100dee,'undoMutations':[{'id':Q['id'],'params':_0x4f4e3a}],'redoMutations':[{'id':Q['id'],'params':_0x15406e}]}),!0x0):!0x1;}},co={'id':_0x6c183(0x2cb),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x1842dd,_0x4feb4d)=>{const _0x479d4a=_0x6c183;if(!_0x4feb4d)return!0x1;let _0x4453d6=_0x1842dd[_0x479d4a(0x43e)](_0x24efe9),{unitId:_0x32579f,tableId:_0x182d83,viewId:_0x2847c5,name:_0x38d5d1}=_0x4feb4d,_0x15292f=_0x4453d6[_0x479d4a(0x228)](_0x32579f,_0x5c5c99[_0x479d4a(0x36b)]);if(!_0x15292f||!$(_0x15292f,_0x182d83,{'viewIds':[_0x2847c5]}))return!0x1;let _0x380a48=_0x1842dd[_0x479d4a(0x43e)](_0x5daeb6),_0x448785=_0x1842dd[_0x479d4a(0x43e)](_0x5b9522),_0x30ac96=_0x15292f[_0x479d4a(0x32f)](),_0x45b9f5=new W()[_0x479d4a(0x15f)](_0x30ac96,_0x182d83,_0x2847c5,_0x38d5d1),_0x58b435=new z()[_0x479d4a(0x2d8)](_0x30ac96,_0x45b9f5),_0x31ebc9={'unitId':_0x32579f,'op':_0x45b9f5},_0x29f605={'unitId':_0x32579f,'op':_0x58b435};return _0x380a48['syncExecuteCommand'](Q['id'],_0x31ebc9)?(_0x4453d6['focusUnit'](_0x32579f),_0x448785[_0x479d4a(0x47c)]({'unitID':_0x32579f,'undoMutations':[{'id':Q['id'],'params':_0x29f605}],'redoMutations':[{'id':Q['id'],'params':_0x31ebc9}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x5c1e7d,_0x4d2484)=>{const _0x2afb21=_0x6c183;if(!_0x4d2484)return!0x1;let _0x114521=_0x5c1e7d['get'](_0x24efe9),{unitId:_0x425d09,tableId:_0x388c08,viewId:_0x19aa04,fieldId:_0x36e11c}=_0x4d2484,_0x2c6b67=_0x114521[_0x2afb21(0x228)](_0x425d09,_0x5c5c99[_0x2afb21(0x36b)]);if(!_0x2c6b67||!$(_0x2c6b67,_0x388c08,{'viewIds':[_0x19aa04],'fieldIds':[_0x36e11c]}))return!0x1;let _0x50615a=_0x5c1e7d[_0x2afb21(0x43e)](_0x5daeb6),_0x441d4c=_0x5c1e7d[_0x2afb21(0x43e)](_0x5b9522),_0x3290f8=_0x2c6b67[_0x2afb21(0x32f)](),_0x2647fe=new W()[_0x2afb21(0x2cf)](_0x3290f8,_0x388c08,_0x19aa04,{'groupFieldId':_0x36e11c}),_0x23dd02=new z()['invertOp'](_0x3290f8,_0x2647fe),_0x55fb7a={'unitId':_0x425d09,'op':_0x2647fe},_0x1eafc9={'unitId':_0x425d09,'op':_0x23dd02};return _0x50615a[_0x2afb21(0x163)](Q['id'],_0x55fb7a)?(_0x114521['focusUnit'](_0x425d09),_0x441d4c[_0x2afb21(0x47c)]({'unitID':_0x425d09,'undoMutations':[{'id':Q['id'],'params':_0x1eafc9}],'redoMutations':[{'id':Q['id'],'params':_0x55fb7a}]}),!0x0):!0x1;}},uo={'id':_0x6c183(0x2dc),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3793c6,_0x55a58a)=>{const _0x1f402b=_0x6c183;if(!_0x55a58a)return!0x1;let _0x2ab599=_0x3793c6[_0x1f402b(0x43e)](_0x24efe9),_0x5cae4a=_0x2ab599[_0x1f402b(0x228)](_0x55a58a[_0x1f402b(0x393)],_0x5c5c99[_0x1f402b(0x36b)]);if(!_0x5cae4a)return!0x1;let _0x4b1816=_0x5cae4a[_0x1f402b(0x32f)]()[_0x1f402b(0x2a3)];if(_0x4b1816===_0x55a58a[_0x1f402b(0x2a3)])return!0x0;let _0x20cd09=new W(),_0x4ee92c=new z(),_0x2f822e=[],_0x86b02=[],_0x3280e5=[_0x5cae4a,..._0x2ab599[_0x1f402b(0x3db)](_0x5c5c99[_0x1f402b(0x36b)])['filter'](_0x5f30fd=>_0x5f30fd[_0x1f402b(0x2ff)]()!==_0x55a58a['unitId'])];for(let _0x3d3b66 of _0x3280e5){let _0x391160=_0x3d3b66[_0x1f402b(0x32f)](),_0x1487fa=_0x3d3b66===_0x5cae4a?_0x20cd09[_0x1f402b(0x3f7)](_0x391160,_0x55a58a[_0x1f402b(0x2a3)]):_0x20cd09[_0x1f402b(0x3e9)](_0x391160,_0x4b1816,_0x55a58a['name']);_0x1487fa&&(_0x2f822e[_0x1f402b(0x174)]({'id':Q['id'],'params':{'unitId':_0x3d3b66[_0x1f402b(0x2ff)](),'op':_0x1487fa,'trigger':uo['id']}}),_0x86b02['unshift']({'id':Q['id'],'params':{'unitId':_0x3d3b66[_0x1f402b(0x2ff)](),'op':_0x4ee92c[_0x1f402b(0x2d8)](_0x391160,_0x1487fa),'trigger':uo['id']}}));}let _0x3c4b80=_0x3793c6[_0x1f402b(0x43e)](_0x5daeb6),_0x127ddd=_0x3793c6[_0x1f402b(0x43e)](_0x5b9522),_0x31479b=_0x127ddd[_0x1f402b(0x11f)](_0x55a58a[_0x1f402b(0x393)]);try{return _0x170e9a(_0x2f822e,_0x3c4b80)[_0x1f402b(0x366)]?(_0x2ab599['focusUnit'](_0x55a58a[_0x1f402b(0x393)]),_0x127ddd[_0x1f402b(0x47c)]({'unitID':_0x55a58a[_0x1f402b(0x393)],'undoMutations':_0x86b02,'redoMutations':_0x2f822e}),!0x0):!0x1;}finally{_0x31479b[_0x1f402b(0x1bb)]();}}},fo={'type':_0x22977e[_0x6c183(0x1b6)],'id':_0x6c183(0x2f7),async 'handler'(_0x416abf,_0xbb01bc){const _0x2ee991=_0x6c183;if(!_0xbb01bc||!Tr[_0x2ee991(0x16a)](_0xbb01bc[_0x2ee991(0x3e8)])||_0xbb01bc[_0x2ee991(0x365)]!==_0xbb01bc['unitId']&&_0xbb01bc[_0x2ee991(0x3e8)]!==_0x1aafeb[_0x2ee991(0x200)]||_0xbb01bc[_0x2ee991(0x2eb)]&&(![_0x2ee991(0x3a4),'owner',_0x2ee991(0x45c)][_0x2ee991(0x16a)](_0xbb01bc[_0x2ee991(0x2eb)]['edit'])||_0xbb01bc[_0x2ee991(0x2eb)]['strategies'][_0x2ee991(0x185)](_0x46427a=>!Tr[_0x2ee991(0x16a)](_0x46427a['action'])||_0xbb01bc['objectId']!==_0xbb01bc[_0x2ee991(0x393)]&&_0x46427a['action']!==_0x1aafeb[_0x2ee991(0x200)])))return!0x1;let _0x5c3e77=Pr(_0xbb01bc['unitId'],_0xbb01bc['objectId'],_0xbb01bc[_0x2ee991(0x3e8)]),_0x633332={'unitId':_0xbb01bc[_0x2ee991(0x393)],'objectId':_0xbb01bc[_0x2ee991(0x365)],'objectType':_0x5c3e77['type']},_0x2ca5a6=_0x416abf['get'](_0x14b422);return _0xbb01bc['remove']?await _0x2ca5a6[_0x2ee991(0x2b2)](_0x633332):_0xbb01bc[_0x2ee991(0x2eb)]?await _0x2ca5a6[_0x2ee991(0x460)](_0x633332,_0xbb01bc[_0x2ee991(0x2eb)]):await _0x2ca5a6[_0x2ee991(0x162)](_0x633332,_0x5c3e77,_0xbb01bc['value']),!0x0;}},po={'type':_0x22977e[_0x6c183(0x1b6)],'id':'base.command.set-permissions',async 'handler'(_0x3da2de,_0x1ab828){const _0x5c9fe8=_0x6c183;if(!(_0x1ab828!=null&&_0x1ab828[_0x5c9fe8(0x393)])||!Array[_0x5c9fe8(0x431)](_0x1ab828[_0x5c9fe8(0x34d)])||!_0x1ab828[_0x5c9fe8(0x34d)][_0x5c9fe8(0x13c)]||_0x1ab828[_0x5c9fe8(0x34d)]['some'](_0x231129=>!(_0x231129!=null&&_0x231129['objectId'])||_0x231129[_0x5c9fe8(0x365)]===_0x1ab828[_0x5c9fe8(0x393)]||_0x231129[_0x5c9fe8(0x2eb)]!==null&&(!_0x231129['policy']||![_0x5c9fe8(0x3a4),_0x5c9fe8(0x45b),_0x5c9fe8(0x45c)]['includes'](_0x231129['policy']['edit'])||!Array[_0x5c9fe8(0x431)](_0x231129[_0x5c9fe8(0x2eb)][_0x5c9fe8(0x2b8)])||!Array[_0x5c9fe8(0x431)](_0x231129['policy'][_0x5c9fe8(0x267)])||_0x231129[_0x5c9fe8(0x2eb)][_0x5c9fe8(0x267)][_0x5c9fe8(0x185)](_0x3fa54b=>_0x3fa54b[_0x5c9fe8(0x3e8)]!==_0x1aafeb['Edit']))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x3da2de[_0x5c9fe8(0x43e)](_0x14b422)[_0x5c9fe8(0x388)](_0x1ab828[_0x5c9fe8(0x34d)]['map'](_0x243c50=>{const _0x2c36ff=_0x5c9fe8;let _0x47fe52=Pr(_0x1ab828['unitId'],_0x243c50[_0x2c36ff(0x365)],_0x1aafeb[_0x2c36ff(0x200)]);return{'unitId':_0x1ab828[_0x2c36ff(0x393)],'objectId':_0x243c50[_0x2c36ff(0x365)],'objectType':_0x47fe52[_0x2c36ff(0x20b)],'policy':_0x243c50[_0x2c36ff(0x2eb)]};}));}};function mo(_0x5e6ca0,_0x40b743){const _0x16d492=_0x6c183;let _0x51b1f9=L(_0x4e3c3d[_0x16d492(0x29d)](_0x5e6ca0)),_0x553717=new Map();return _0x40b743[_0x16d492(0x2e0)](_0x5be5b0=>{const _0x14f7b9=_0x16d492;var _0x175058,_0x311932;let _0x5cd784='recordId'in _0x5be5b0?_0x5be5b0['recordId']:(_0x175058=_0x51b1f9[_0x14f7b9(0x3d0)])==null?void 0x0:_0x175058[_0x5be5b0[_0x14f7b9(0x4b3)]],_0x1b790b=_0x14f7b9(0x2b0)in _0x5be5b0?_0x5be5b0['fieldId']:(_0x311932=_0x51b1f9['colId'])==null?void 0x0:_0x311932[_0x5be5b0[_0x14f7b9(0x295)]],_0x48e95e=_0x1b790b?_0x51b1f9['fields'][_0x1b790b]:void 0x0;if(!_0x5cd784||!_0x1b790b||!_0x48e95e||!_0x51b1f9[_0x14f7b9(0x258)][_0x5cd784])return;let _0x17aedb=xt(_0x5be5b0[_0x14f7b9(0x350)],_0x48e95e),_0x3d8ec1=wt(_0x5be5b0[_0x14f7b9(0x350)],_0x17aedb,_0x48e95e,_0x51b1f9,_0x5cd784),_0x139223=_0x553717[_0x14f7b9(0x43e)](_0x5cd784)??{};_0x139223[_0x1b790b]=_0x3d8ec1,_0x553717['set'](_0x5cd784,_0x139223);}),[..._0x553717][_0x16d492(0x141)](([_0x415c16,_0x25f1a0])=>({'recordId':_0x415c16,'values':_0x25f1a0}));}const ho={'id':'base.command.set-base-range-values','type':_0x22977e['COMMAND'],'handler'(_0x14c060,_0x1c9c97){const _0x327fed=_0x6c183;if(!_0x1c9c97)return!0x1;let _0x1351e8=_0x14c060[_0x327fed(0x43e)](_0x24efe9),{unitId:_0x16e74d,tableId:_0x18cb8d,patches:_0x4f04ca}=_0x1c9c97,_0x49a797=_0x1351e8['getUnit'](_0x16e74d,_0x5c5c99[_0x327fed(0x36b)]);if(!_0x49a797||!$(_0x49a797,_0x18cb8d))return!0x1;let _0x4056bf=_0x14c060[_0x327fed(0x43e)](_0x5daeb6),_0x45fcd0=_0x14c060[_0x327fed(0x43e)](_0x5b9522),_0x477c76=_0x49a797[_0x327fed(0x32f)](),_0x41a9dd=L(_0x477c76[_0x327fed(0x298)][_0x18cb8d]),_0x41389c=_0x4f04ca[_0x327fed(0x141)](_0x352850=>{const _0xfcb518=_0x327fed;var _0x33cb8f;return _0xfcb518(0x347)in _0x352850?_0x352850[_0xfcb518(0x347)]:(_0x33cb8f=_0x41a9dd['rowId'])==null?void 0x0:_0x33cb8f[_0x352850[_0xfcb518(0x4b3)]];})[_0x327fed(0x2be)](_0x44bfc5=>_0x44bfc5!=null),_0x7fc3a7=_0x4f04ca['map'](_0x519f52=>{const _0x29a50d=_0x327fed;var _0x2b96f2;return _0x29a50d(0x2b0)in _0x519f52?_0x519f52['fieldId']:(_0x2b96f2=_0x41a9dd[_0x29a50d(0x1fe)])==null?void 0x0:_0x2b96f2[_0x519f52['col']];})[_0x327fed(0x2be)](_0xaad905=>_0xaad905!=null);if(_0x41389c['length']!==_0x4f04ca[_0x327fed(0x13c)]||_0x7fc3a7[_0x327fed(0x13c)]!==_0x4f04ca[_0x327fed(0x13c)]||!$(_0x49a797,_0x18cb8d,{'recordIds':_0x41389c,'fieldIds':_0x7fc3a7})||_0x4f04ca['some']((_0x1bbdfd,_0x1d838a)=>!ga(_0x49a797,_0x18cb8d,_0x7fc3a7[_0x1d838a],_0x1bbdfd[_0x327fed(0x350)])))return!0x1;let _0x12fb23=Ze(_0x41a9dd,mo(_0x41a9dd,_0x4f04ca)),_0x528df7=_0x4f04ca['flatMap'](_0x199e34=>{const _0x5f4fe5=_0x327fed;var _0x150eb2,_0x1ac3ef;if(_0x5f4fe5(0x4b3)in _0x199e34)return[_0x199e34];let _0x3f5525=(_0x150eb2=_0x41a9dd[_0x5f4fe5(0x375)])==null?void 0x0:_0x150eb2[_0x199e34['recordId']],_0x4d1393=(_0x1ac3ef=_0x41a9dd[_0x5f4fe5(0x390)])==null?void 0x0:_0x1ac3ef[_0x199e34[_0x5f4fe5(0x2b0)]];return _0x3f5525==null||_0x4d1393==null?[]:[{'row':_0x3f5525,'col':_0x4d1393,'value':_0x199e34['value']}];}),_0x4aebe2=new W()[_0x327fed(0x11d)](_0x477c76,_0x18cb8d,_0x528df7),_0x2693e8=new z()[_0x327fed(0x2d8)](_0x477c76,_0x4aebe2),_0x50f342={'unitId':_0x16e74d,'op':_0x4aebe2,'trigger':_0x12fb23[_0x327fed(0x13c)]?ho['id']:void 0x0,'hierarchyChanges':_0x12fb23[_0x327fed(0x13c)]?_0x12fb23:void 0x0,'source':_0x12fb23[_0x327fed(0x13c)]?_0x327fed(0x32a):void 0x0},_0x2be506={'unitId':_0x16e74d,'op':_0x2693e8,'trigger':_0x12fb23[_0x327fed(0x13c)]?ho['id']:void 0x0,'hierarchyChanges':_0x12fb23['length']?_0x12fb23[_0x327fed(0x141)](_0x5f9093=>({..._0x5f9093,'oldParentRecordId':_0x5f9093[_0x327fed(0x474)],'parentRecordId':_0x5f9093[_0x327fed(0x2d1)]})):void 0x0,'source':_0x12fb23[_0x327fed(0x13c)]?_0x327fed(0x23c):void 0x0},_0x565a68={..._0x50f342,'source':_0x12fb23[_0x327fed(0x13c)]?_0x1c9c97['source']??'ui':void 0x0};return _0x4056bf[_0x327fed(0x163)](Q['id'],_0x565a68)?(_0x1351e8[_0x327fed(0x243)](_0x16e74d),_0x45fcd0['pushUndoRedo']({'unitID':_0x16e74d,'undoMutations':[{'id':Q['id'],'params':_0x2be506}],'redoMutations':[{'id':Q['id'],'params':_0x50f342}]}),!0x0):!0x1;}},go={'id':'base.command.set-base-record-values','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x1e0778,_0x2564d0){const _0x414b46=_0x6c183;if(!_0x2564d0)return!0x1;let _0x5af8d5=_0x1e0778[_0x414b46(0x43e)](_0x24efe9),{unitId:_0x15b6f8,tableId:_0x351723,patches:_0x28921d}=_0x2564d0,_0x137ff0=_0x5af8d5[_0x414b46(0x228)](_0x15b6f8,_0x5c5c99[_0x414b46(0x36b)]),_0x502739=_0x28921d[_0x414b46(0x141)](_0x18f7f3=>_0x18f7f3['recordId']),_0x314d33=_0x28921d['flatMap'](_0x57ffe9=>Object[_0x414b46(0x24c)](_0x57ffe9['values']));if(!_0x137ff0||!$(_0x137ff0,_0x351723,{'recordIds':_0x502739,'fieldIds':_0x314d33})||_0x28921d[_0x414b46(0x185)](_0x49a4dc=>Object[_0x414b46(0x279)](_0x49a4dc[_0x414b46(0x227)])[_0x414b46(0x185)](([_0x4f6eab,_0x2e5f94])=>!ga(_0x137ff0,_0x351723,_0x4f6eab,_0x2e5f94))))return!0x1;let _0x56dae6=Ze(_0x137ff0[_0x414b46(0x32f)]()['tables'][_0x351723],_0x28921d),_0x278ff4=_0x1e0778[_0x414b46(0x43e)](_0x5daeb6),_0xba7e20=_0x1e0778[_0x414b46(0x43e)](_0x5b9522),_0x19c97d=_0x1e0778[_0x414b46(0x43e)](Kr)[_0x414b46(0x483)](_0x137ff0,_0x351723,_0x28921d),_0x2d13ea=new z()['invertOp'](_0x137ff0[_0x414b46(0x32f)](),_0x19c97d),_0x28a9e8={'unitId':_0x15b6f8,'op':_0x19c97d,'trigger':_0x56dae6[_0x414b46(0x13c)]?go['id']:void 0x0,'hierarchyChanges':_0x56dae6['length']?_0x56dae6:void 0x0,'source':_0x56dae6[_0x414b46(0x13c)]?_0x2564d0['source']??'ui':void 0x0},_0x8ece9a={..._0x28a9e8,'source':_0x56dae6[_0x414b46(0x13c)]?_0x414b46(0x32a):void 0x0},_0x9b37e5={'unitId':_0x15b6f8,'op':_0x2d13ea,'trigger':_0x56dae6[_0x414b46(0x13c)]?go['id']:void 0x0,'hierarchyChanges':_0x56dae6[_0x414b46(0x13c)]?_0x56dae6[_0x414b46(0x141)](_0x147ec1=>({..._0x147ec1,'oldParentRecordId':_0x147ec1[_0x414b46(0x474)],'parentRecordId':_0x147ec1[_0x414b46(0x2d1)]})):void 0x0,'source':_0x56dae6['length']?_0x414b46(0x23c):void 0x0};return _0x278ff4[_0x414b46(0x163)](Q['id'],_0x28a9e8)?(_0x5af8d5[_0x414b46(0x243)](_0x15b6f8),_0xba7e20[_0x414b46(0x47c)]({'unitID':_0x15b6f8,'undoMutations':[{'id':Q['id'],'params':_0x9b37e5}],'redoMutations':[{'id':Q['id'],'params':_0x8ece9a}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x22977e['COMMAND'],'handler':(_0x48d4bf,_0x243235)=>{const _0x591b74=_0x6c183;if(!_0x243235)return!0x1;let {unitId:_0x5b86d9,tableId:_0x19268c,fieldId:_0x28b94a}=_0x243235,_0x36bcea=_0x48d4bf['get'](_0x24efe9),_0x21b7ae=_0x36bcea[_0x591b74(0x228)](_0x5b86d9,_0x5c5c99[_0x591b74(0x36b)]);if(!_0x21b7ae||!$(_0x21b7ae,_0x19268c))return!0x1;let _0x17aed2=_0x21b7ae[_0x591b74(0x32f)](),_0x2d2c9=_0x17aed2[_0x591b74(0x298)][_0x19268c];if(_0x28b94a!==null&&!F(_0x2d2c9,_0x28b94a))throw new P(_0x591b74(0x48d));if(qe(_0x2d2c9)===_0x28b94a)return!0x0;let _0x380ab6=new W(),_0x5f09b8=R(Object[_0x591b74(0x227)](_0x2d2c9[_0x591b74(0x398)])[_0x591b74(0x17a)](_0x3fe598=>{const _0x471370=_0x591b74;if(!F(_0x2d2c9,_0x3fe598['id']))return[];let _0x2f7fe7=N(_0x3fe598);if(!_0x2f7fe7)return[];let _0xc20bb7=_0x3fe598['id']===_0x28b94a;if(_0x2f7fe7[_0x471370(0x1d4)]===_0x4c2417[_0x471370(0x2e7)]===_0xc20bb7)return[];let _0xa0ff34={..._0x3fe598[_0x471370(0x2ba)],'targetTableId':_0x2f7fe7[_0x471370(0x334)],'multiple':_0x2f7fe7[_0x471370(0x376)]};return _0xc20bb7?_0xa0ff34[_0x471370(0x1d4)]=_0x4c2417['Parent']:delete _0xa0ff34[_0x471370(0x1d4)],[_0x380ab6[_0x471370(0x13b)](_0x17aed2,_0x19268c,_0x3fe598['id'],{'config':_0xa0ff34})];})),_0x279c33=new z()['invertOp'](_0x17aed2,_0x5f09b8),_0x3e5969={'unitId':_0x5b86d9,'op':_0x5f09b8},_0x1402b7={'unitId':_0x5b86d9,'op':_0x279c33};return _0x48d4bf[_0x591b74(0x43e)](_0x5daeb6)[_0x591b74(0x163)](Q['id'],_0x3e5969)?(_0x36bcea['focusUnit'](_0x5b86d9),_0x48d4bf[_0x591b74(0x43e)](_0x5b9522)[_0x591b74(0x47c)]({'unitID':_0x5b86d9,'undoMutations':[{'id':Q['id'],'params':_0x1402b7}],'redoMutations':[{'id':Q['id'],'params':_0x3e5969}]}),!0x0):!0x1;}},vo={'id':'base.command.set-base-view-field-order','type':_0x22977e['COMMAND'],'handler':(_0x4d030e,_0x5c4b33)=>{const _0x2a0d26=_0x6c183;if(!_0x5c4b33)return!0x1;let _0x41977a=_0x4d030e[_0x2a0d26(0x43e)](_0x24efe9),{unitId:_0x1fcea3,tableId:_0x238994,viewId:_0x48db3c,fieldId:_0x15c513,target:_0x324800}=_0x5c4b33,_0x3cbfcf=_0x41977a[_0x2a0d26(0x228)](_0x1fcea3,_0x5c5c99[_0x2a0d26(0x36b)]),_0x2d073b=_0x324800['beforeFieldId']??_0x324800['afterFieldId'];if(!_0x3cbfcf||!_0x2d073b||_0x2d073b===_0x15c513||!$(_0x3cbfcf,_0x238994,{'viewIds':[_0x48db3c],'fieldIds':[_0x15c513,_0x2d073b]}))return!0x1;let _0x218363=_0x3cbfcf[_0x2a0d26(0x32f)]()[_0x2a0d26(0x298)][_0x238994],_0x50bf22=_0x218363['fields'][_0x15c513],_0x82f31c=_0x218363[_0x2a0d26(0x398)][_0x2d073b];if(_0x50bf22['system']===!0x0||_0x50bf22[_0x2a0d26(0x20b)]===_0x3a044b['RecordId']||_0x82f31c[_0x2a0d26(0x3cf)]===!0x0||_0x82f31c[_0x2a0d26(0x20b)]===_0x3a044b['RecordId'])return!0x1;let _0x336186=_0x4d030e[_0x2a0d26(0x43e)](_0x5daeb6),_0x334595=_0x4d030e['get'](_0x5b9522),_0x606034=_0x3cbfcf[_0x2a0d26(0x32f)](),_0x17c3ae=new W()[_0x2a0d26(0x22a)](_0x606034,_0x238994,_0x48db3c,_0x15c513,_0x324800),_0x3010e4=new z()[_0x2a0d26(0x2d8)](_0x606034,_0x17c3ae),_0x58226c={'unitId':_0x1fcea3,'op':_0x17c3ae},_0x2b5f1={'unitId':_0x1fcea3,'op':_0x3010e4};return _0x336186[_0x2a0d26(0x163)](Q['id'],_0x58226c)?(_0x41977a[_0x2a0d26(0x243)](_0x1fcea3),_0x334595[_0x2a0d26(0x47c)]({'unitID':_0x1fcea3,'undoMutations':[{'id':Q['id'],'params':_0x2b5f1}],'redoMutations':[{'id':Q['id'],'params':_0x58226c}]}),!0x0):!0x1;}},yo={'id':_0x6c183(0x2db),'type':_0x22977e['COMMAND'],'handler'(_0x427c1c,_0x2b7aa1){const _0x17de56=_0x6c183;if(!_0x2b7aa1)return!0x1;let _0x463bfa=_0x427c1c[_0x17de56(0x43e)](_0x24efe9),{unitId:_0x29ab68,tableId:_0x1efa5c,viewId:_0x3d1324,fieldId:_0x136ced,visible:_0x3d367a}=_0x2b7aa1,_0x4b4edd=_0x463bfa[_0x17de56(0x228)](_0x29ab68,_0x5c5c99[_0x17de56(0x36b)]);if(!_0x4b4edd||!$(_0x4b4edd,_0x1efa5c,{'viewIds':[_0x3d1324],'fieldIds':[_0x136ced]}))return!0x1;let _0x496ac4=_0x4b4edd[_0x17de56(0x32f)]()[_0x17de56(0x298)][_0x1efa5c][_0x17de56(0x398)][_0x136ced];if(_0x496ac4['system']===!0x0||_0x496ac4[_0x17de56(0x20b)]===_0x3a044b[_0x17de56(0x22f)])return!0x1;let _0x5bde30=_0x427c1c[_0x17de56(0x43e)](_0x5daeb6),_0x12acc5=_0x427c1c[_0x17de56(0x43e)](_0x5b9522),_0x42f645=_0x4b4edd[_0x17de56(0x32f)](),_0x10ffa9=new W()[_0x17de56(0x18c)](_0x42f645,_0x1efa5c,_0x3d1324,_0x136ced,_0x3d367a),_0x3170bb=new z()[_0x17de56(0x2d8)](_0x42f645,_0x10ffa9),_0x3dbc24={'unitId':_0x29ab68,'op':_0x10ffa9},_0x56910c={'unitId':_0x29ab68,'op':_0x3170bb};return _0x5bde30[_0x17de56(0x163)](Q['id'],_0x3dbc24)?(_0x463bfa[_0x17de56(0x243)](_0x29ab68),_0x12acc5['pushUndoRedo']({'unitID':_0x29ab68,'undoMutations':[{'id':Q['id'],'params':_0x56910c}],'redoMutations':[{'id':Q['id'],'params':_0x3dbc24}]}),!0x0):!0x1;}},bo={'id':_0x6c183(0x19e),'type':_0x22977e['COMMAND'],'handler':(_0x975b21,_0x5b9957)=>{const _0x3e44c5=_0x6c183;if(!_0x5b9957)return!0x1;let _0x4f9bcd=_0x975b21['get'](_0x24efe9),{unitId:_0x344f97,tableId:_0x57fc6d,viewId:_0x2c61b7,fieldId:_0x49d1f1,width:_0x4db95d}=_0x5b9957,_0x5f500e=_0x4f9bcd[_0x3e44c5(0x228)](_0x344f97,_0x5c5c99[_0x3e44c5(0x36b)]);if(!_0x5f500e||!$(_0x5f500e,_0x57fc6d,{'viewIds':[_0x2c61b7],'fieldIds':[_0x49d1f1]}))return!0x1;let _0x377a7b=_0x5f500e[_0x3e44c5(0x32f)]()[_0x3e44c5(0x298)][_0x57fc6d]['fields'][_0x49d1f1];if(_0x377a7b['system']===!0x0||_0x377a7b[_0x3e44c5(0x20b)]===_0x3a044b['RecordId'])return!0x1;let _0x307b98=_0x975b21[_0x3e44c5(0x43e)](_0x5daeb6),_0x162e09=_0x975b21[_0x3e44c5(0x43e)](_0x5b9522),_0x5b5c05=_0x5f500e[_0x3e44c5(0x32f)](),_0x5193ef=new W()[_0x3e44c5(0x15e)](_0x5b5c05,_0x57fc6d,_0x2c61b7,_0x49d1f1,_0x4db95d),_0x2c86a2=new z()[_0x3e44c5(0x2d8)](_0x5b5c05,_0x5193ef),_0xbda717={'unitId':_0x344f97,'op':_0x5193ef},_0x22cca0={'unitId':_0x344f97,'op':_0x2c86a2};return _0x307b98[_0x3e44c5(0x163)](Q['id'],_0xbda717)?(_0x4f9bcd['focusUnit'](_0x344f97),_0x162e09[_0x3e44c5(0x47c)]({'unitID':_0x344f97,'undoMutations':[{'id':Q['id'],'params':_0x22cca0}],'redoMutations':[{'id':Q['id'],'params':_0xbda717}]}),!0x0):!0x1;}},xo={'id':'base.command.set-base-view-filter','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x2dd2f8,_0x5bec2d)=>{const _0x37997a=_0x6c183;if(!_0x5bec2d)return!0x1;let _0x53d0a7=_0x2dd2f8[_0x37997a(0x43e)](_0x24efe9),{unitId:_0x5ea0ba,tableId:_0x3f4418,viewId:_0xba101,filter:_0x11a6b5}=_0x5bec2d,_0x17022f=_0x53d0a7[_0x37997a(0x228)](_0x5ea0ba,_0x5c5c99['UNIVER_BASE']),_0x45ce59=(_0x11a6b5==null?void 0x0:_0x11a6b5[_0x37997a(0x396)][_0x37997a(0x141)](_0x29e65c=>_0x29e65c[_0x37997a(0x2b0)]))??[];if(!_0x17022f||!$(_0x17022f,_0x3f4418,{'viewIds':[_0xba101],'fieldIds':_0x45ce59}))return!0x1;let _0x432326=_0x2dd2f8[_0x37997a(0x43e)](_0x5daeb6),_0x278a1a=_0x2dd2f8['get'](_0x5b9522),_0x348ad9=_0x17022f[_0x37997a(0x32f)](),_0x549203=new W()[_0x37997a(0x16e)](_0x348ad9,_0x3f4418,_0xba101,_0x11a6b5),_0x28d399=new z()[_0x37997a(0x2d8)](_0x348ad9,_0x549203),_0x2bebc5={'unitId':_0x5ea0ba,'op':_0x549203},_0x1704d0={'unitId':_0x5ea0ba,'op':_0x28d399};return _0x432326['syncExecuteCommand'](Q['id'],_0x2bebc5)?(_0x53d0a7[_0x37997a(0x243)](_0x5ea0ba),_0x278a1a[_0x37997a(0x47c)]({'unitID':_0x5ea0ba,'undoMutations':[{'id':Q['id'],'params':_0x1704d0}],'redoMutations':[{'id':Q['id'],'params':_0x2bebc5}]}),!0x0):!0x1;}},So={'id':_0x6c183(0x155),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x37ab26,_0x433ae5)=>{const _0x953448=_0x6c183;if(!_0x433ae5)return!0x1;let _0x29f93b=_0x37ab26['get'](_0x24efe9),{unitId:_0x30e5bf,tableId:_0xeabb3e,viewId:_0x1ba7bd,group:_0x144b31}=_0x433ae5,_0x4bc384=_0x29f93b['getUnit'](_0x30e5bf,_0x5c5c99[_0x953448(0x36b)]);if(!_0x4bc384||!$(_0x4bc384,_0xeabb3e,{'viewIds':[_0x1ba7bd],'fieldIds':_0x144b31[_0x953448(0x141)](_0x1b26ae=>_0x1b26ae[_0x953448(0x2b0)])}))return!0x1;let _0x5c0388=_0x37ab26[_0x953448(0x43e)](_0x5daeb6),_0x5483d5=_0x37ab26[_0x953448(0x43e)](_0x5b9522),_0x2957c9=_0x4bc384[_0x953448(0x32f)](),_0xea3211=new W()[_0x953448(0x417)](_0x2957c9,_0xeabb3e,_0x1ba7bd,_0x144b31),_0x101852=new z()[_0x953448(0x2d8)](_0x2957c9,_0xea3211),_0x26a28f={'unitId':_0x30e5bf,'op':_0xea3211},_0x22c3eb={'unitId':_0x30e5bf,'op':_0x101852};return _0x5c0388[_0x953448(0x163)](Q['id'],_0x26a28f)?(_0x29f93b[_0x953448(0x243)](_0x30e5bf),_0x5483d5['pushUndoRedo']({'unitID':_0x30e5bf,'undoMutations':[{'id':Q['id'],'params':_0x22c3eb}],'redoMutations':[{'id':Q['id'],'params':_0x26a28f}]}),!0x0):!0x1;}},Co={'id':_0x6c183(0x36a),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3e8ae3,_0x38caea)=>{const _0x3b80f0=_0x6c183;if(!_0x38caea)return!0x1;let _0x3b62a7=_0x3e8ae3['get'](_0x24efe9),{unitId:_0x49861d,tableId:_0x5afd84,viewId:_0x4f924f,sort:_0x273395}=_0x38caea,_0x182398=_0x3b62a7[_0x3b80f0(0x228)](_0x49861d,_0x5c5c99[_0x3b80f0(0x36b)]);if(!_0x182398||!$(_0x182398,_0x5afd84,{'viewIds':[_0x4f924f],'fieldIds':_0x273395[_0x3b80f0(0x141)](_0x1fd7fa=>_0x1fd7fa['fieldId'])}))return!0x1;let _0x583bd6=_0x3e8ae3[_0x3b80f0(0x43e)](_0x5daeb6),_0x339a0a=_0x3e8ae3[_0x3b80f0(0x43e)](_0x5b9522),_0x102267=_0x182398[_0x3b80f0(0x32f)](),_0x2d6072=new W()[_0x3b80f0(0x23d)](_0x102267,_0x5afd84,_0x4f924f,_0x273395),_0x59c44e=new z()[_0x3b80f0(0x2d8)](_0x102267,_0x2d6072),_0x33acaf={'unitId':_0x49861d,'op':_0x2d6072},_0x3bd8fe={'unitId':_0x49861d,'op':_0x59c44e};return _0x583bd6[_0x3b80f0(0x163)](Q['id'],_0x33acaf)?(_0x3b62a7[_0x3b80f0(0x243)](_0x49861d),_0x339a0a[_0x3b80f0(0x47c)]({'unitID':_0x49861d,'undoMutations':[{'id':Q['id'],'params':_0x3bd8fe}],'redoMutations':[{'id':Q['id'],'params':_0x33acaf}]}),!0x0):!0x1;}},wo={'id':'base.command.update-base-cell','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x5658ff,_0x3c384a){const _0x25e65a=_0x6c183;if(!_0x3c384a)return!0x1;let _0x486f77=_0x5658ff[_0x25e65a(0x43e)](_0x24efe9),{unitId:_0x2d9910,tableId:_0x3a8977,recordId:_0x463d14,fieldId:_0x612a7d,value:_0x191949}=_0x3c384a,_0x6e4dd9=_0x486f77[_0x25e65a(0x228)](_0x2d9910,_0x5c5c99[_0x25e65a(0x36b)]);if(!_0x6e4dd9||!$(_0x6e4dd9,_0x3a8977,{'recordIds':[_0x463d14],'fieldIds':[_0x612a7d]})||!ga(_0x6e4dd9,_0x3a8977,_0x612a7d,_0x191949))return!0x1;let _0x2ce80d=_0x6e4dd9[_0x25e65a(0x32f)]()['tables'][_0x3a8977],_0x2cb1ba=F(_0x2ce80d,_0x612a7d)&&Xe(_0x2ce80d)[_0x25e65a(0x16a)](_0x612a7d),_0x13565e=_0x2cb1ba?tt(_0x2ce80d,_0x612a7d):null,_0x1eb857=(_0x13565e==null?void 0x0:_0x13565e[_0x25e65a(0x3b7)][_0x25e65a(0x43e)](_0x463d14))??null,_0x1e61ac=_0x2cb1ba?Le(_0x191949)[0x0]??null:null;if(_0x13565e){if(_0x1e61ac&&!_0x2ce80d['records'][_0x1e61ac])throw new P(_0x25e65a(0x281));let _0x20b89d=it(_0x13565e,_0x463d14,_0x1e61ac);if(!_0x20b89d[_0x25e65a(0x26e)])throw new P(_0x20b89d[_0x25e65a(0x28a)]===_0x5b4879[_0x25e65a(0x40a)]?'selfParent':_0x20b89d[_0x25e65a(0x28a)]===_0x5b4879[_0x25e65a(0x478)]?'cycle':_0x25e65a(0x138));}let _0x534f93=_0x5658ff['get'](_0x5daeb6),_0x3fa84f=_0x5658ff['get'](_0x5b9522),_0x288659=_0x5658ff['get'](Kr),_0x1ec4c0;try{_0x1ec4c0=_0x288659['createUpdateCellOp'](_0x6e4dd9,_0x3a8977,_0x463d14,_0x612a7d,_0x191949);}catch(_0x132ed6){return console[_0x25e65a(0x45f)](_0x25e65a(0x405),_0x132ed6),!0x1;}let _0x3ddbb3=new z()[_0x25e65a(0x2d8)](_0x6e4dd9[_0x25e65a(0x32f)](),_0x1ec4c0),_0x4df7ba=_0x2cb1ba&&_0x1eb857!==_0x1e61ac?[{'tableId':_0x3a8977,'fieldId':_0x612a7d,'recordId':_0x463d14,'oldParentRecordId':_0x1eb857,'parentRecordId':_0x1e61ac}]:void 0x0,_0x1ebb29={'unitId':_0x2d9910,'op':_0x1ec4c0,'trigger':_0x4df7ba?wo['id']:void 0x0,'hierarchyChanges':_0x4df7ba,'source':_0x4df7ba?_0x3c384a[_0x25e65a(0x495)]??'ui':void 0x0},_0x50ce69={..._0x1ebb29,'source':_0x4df7ba?_0x25e65a(0x32a):void 0x0},_0x5bda4c={'unitId':_0x2d9910,'op':_0x3ddbb3,'trigger':_0x4df7ba?wo['id']:void 0x0,'hierarchyChanges':_0x4df7ba==null?void 0x0:_0x4df7ba[_0x25e65a(0x141)](_0x5710be=>({..._0x5710be,'oldParentRecordId':_0x5710be['parentRecordId'],'parentRecordId':_0x5710be['oldParentRecordId']})),'source':_0x4df7ba?'undo':void 0x0};return _0x534f93[_0x25e65a(0x163)](Q['id'],_0x1ebb29)?(_0x486f77[_0x25e65a(0x243)](_0x2d9910),_0x3fa84f[_0x25e65a(0x47c)]({'unitID':_0x2d9910,'undoMutations':[{'id':Q['id'],'params':_0x5bda4c}],'redoMutations':[{'id':Q['id'],'params':_0x50ce69}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x481555,_0x20ee82){const _0x319f85=_0x6c183;if(!_0x20ee82)return!0x1;let _0x5eda3a=_0x481555['get'](_0x24efe9),{unitId:_0x481841,tableId:_0x2eaa8a,fieldId:_0x3225f9}=_0x20ee82,_0x155340=_0x5eda3a[_0x319f85(0x228)](_0x481841,_0x5c5c99[_0x319f85(0x36b)]);if(!_0x155340||!$(_0x155340,_0x2eaa8a,{'fieldIds':[_0x3225f9]}))return!0x1;let _0x3a63f5=_0x481555[_0x319f85(0x43e)](_0x5daeb6),_0x226745=_0x481555['get'](_0x5b9522),_0x372146=_0x155340[_0x319f85(0x32f)](),_0x1df328=_0x20ee82[_0x319f85(0x1ce)][_0x319f85(0x226)](),_0x4d6763=new W()[_0x319f85(0x13b)](_0x372146,_0x2eaa8a,_0x3225f9,{'description':_0x1df328}),_0x3b7f41=new z()[_0x319f85(0x2d8)](_0x155340[_0x319f85(0x32f)](),_0x4d6763),_0x40a7f3={'unitId':_0x481841,'op':_0x4d6763},_0x2b8887={'unitId':_0x481841,'op':_0x3b7f41};return _0x3a63f5[_0x319f85(0x163)](Q['id'],_0x40a7f3)?(_0x5eda3a[_0x319f85(0x243)](_0x481841),_0x226745[_0x319f85(0x47c)]({'unitID':_0x481841,'undoMutations':[{'id':Q['id'],'params':_0x2b8887}],'redoMutations':[{'id':Q['id'],'params':_0x40a7f3}]}),!0x0):!0x1;}},Eo={'id':'base.command.update-base-field','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x559bed,_0x1a2738)=>{const _0x25473a=_0x6c183;if(!_0x1a2738)return!0x1;let _0x14923b=_0x559bed['get'](_0x24efe9),{unitId:_0x52d70f,tableId:_0x2f2899,fieldId:_0x6b29ff,patch:_0x4eafee}=_0x1a2738,_0x597e4c=_0x14923b[_0x25473a(0x228)](_0x52d70f,_0x5c5c99['UNIVER_BASE']);if(!_0x597e4c||_0x6b29ff===_0x5a35e2||!$(_0x597e4c,_0x2f2899,{'fieldIds':[_0x6b29ff]}))return!0x1;let _0x56fc18=_0x559bed['get'](_0x5daeb6),_0xd68f3e=_0x559bed[_0x25473a(0x43e)](_0x5b9522),_0x17db99=_0x597e4c['getSnapshot']();if(!ha(_0x597e4c,_0x2f2899,{..._0x17db99[_0x25473a(0x298)][_0x2f2899]['fields'][_0x6b29ff],..._0x4eafee}))return!0x1;let _0x497622=new W()[_0x25473a(0x13b)](_0x17db99,_0x2f2899,_0x6b29ff,_0x4eafee),_0x5b0c1b=new z()[_0x25473a(0x2d8)](_0x17db99,_0x497622),_0x56e7e4={'unitId':_0x52d70f,'op':_0x497622},_0x5bc676={'unitId':_0x52d70f,'op':_0x5b0c1b};return _0x56fc18[_0x25473a(0x163)](Q['id'],_0x56e7e4)?(_0x14923b[_0x25473a(0x243)](_0x52d70f),_0xd68f3e[_0x25473a(0x47c)]({'unitID':_0x52d70f,'undoMutations':[{'id':Q['id'],'params':_0x5bc676}],'redoMutations':[{'id':Q['id'],'params':_0x56e7e4}]}),!0x0):!0x1;}},Do={'id':_0x6c183(0x22d),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x300004,_0x3729ed)=>{const _0x54ff90=_0x6c183;if(!_0x3729ed)return!0x1;let _0x57a8f0=_0x300004[_0x54ff90(0x43e)](_0x24efe9),{unitId:_0x39cbb8,tableId:_0x54ee49,viewId:_0x21eb18,patch:_0xb76e39}=_0x3729ed,_0x43f253=_0x57a8f0['getUnit'](_0x39cbb8,_0x5c5c99['UNIVER_BASE']);if(!_0x43f253||!$(_0x43f253,_0x54ee49,{'viewIds':[_0x21eb18]}))return!0x1;let _0xeaa984=_0x300004[_0x54ff90(0x43e)](_0x5daeb6),_0x396d5d=_0x300004[_0x54ff90(0x43e)](_0x5b9522),_0x4affd6=_0x43f253[_0x54ff90(0x32f)](),_0x1b0c06=new W()[_0x54ff90(0x2cf)](_0x4affd6,_0x54ee49,_0x21eb18,_0xb76e39),_0x332bf1=new z()[_0x54ff90(0x2d8)](_0x4affd6,_0x1b0c06),_0x200f50={'unitId':_0x39cbb8,'op':_0x1b0c06},_0x14d4b6={'unitId':_0x39cbb8,'op':_0x332bf1};return _0xeaa984['syncExecuteCommand'](Q['id'],_0x200f50)?(_0x57a8f0[_0x54ff90(0x243)](_0x39cbb8),_0x396d5d[_0x54ff90(0x47c)]({'unitID':_0x39cbb8,'undoMutations':[{'id':Q['id'],'params':_0x14d4b6}],'redoMutations':[{'id':Q['id'],'params':_0x200f50}]}),!0x0):!0x1;}},Oo={'id':_0x6c183(0x3f0),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x4d6d2c,_0x1b710f)=>{const _0x75f4ca=_0x6c183;if(!_0x1b710f)return!0x1;let _0x34eebb=_0x4d6d2c[_0x75f4ca(0x43e)](_0x24efe9),{unitId:_0x1ae3b3,tableId:_0x368843,recordId:_0x45adba,orderKey:_0x5a1a65}=_0x1b710f,_0x3c58d0=_0x34eebb['getUnit'](_0x1ae3b3,_0x5c5c99['UNIVER_BASE']);if(!_0x3c58d0||!$(_0x3c58d0,_0x368843,{'recordIds':[_0x45adba]}))return!0x1;let _0x2823d0=_0x4d6d2c[_0x75f4ca(0x43e)](_0x5daeb6),_0x20be46=_0x4d6d2c['get'](_0x5b9522),_0x26c10b=_0x3c58d0[_0x75f4ca(0x32f)](),_0x3efc54=new W()['updateRecordOrder'](_0x26c10b,_0x368843,_0x45adba,_0x5a1a65),_0x384320=new z()[_0x75f4ca(0x2d8)](_0x26c10b,_0x3efc54),_0x56a3ac={'unitId':_0x1ae3b3,'op':_0x3efc54},_0xfa72ba={'unitId':_0x1ae3b3,'op':_0x384320};return _0x2823d0['syncExecuteCommand'](Q['id'],_0x56a3ac)?(_0x34eebb[_0x75f4ca(0x243)](_0x1ae3b3),_0x20be46[_0x75f4ca(0x47c)]({'unitID':_0x1ae3b3,'undoMutations':[{'id':Q['id'],'params':_0xfa72ba}],'redoMutations':[{'id':Q['id'],'params':_0x56a3ac}]}),!0x0):!0x1;}};let ko=function(_0xe40efb){const _0x2db8d2=_0x6c183;return _0xe40efb[_0x2db8d2(0x477)]=_0x2db8d2(0x49e),_0xe40efb[_0x2db8d2(0x440)]=_0x2db8d2(0x2ee),_0xe40efb['Delete']=_0x2db8d2(0x2fc),_0xe40efb[_0x2db8d2(0x471)]=_0x2db8d2(0x328),_0xe40efb;}({});const Ao={'id':_0x6c183(0x319),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x15f221,_0x234869)=>{const _0x56fc69=_0x6c183;var _0x973f7e;if(!_0x234869)return!0x1;let _0x537a0b=_0x15f221[_0x56fc69(0x43e)](_0x24efe9),_0x20487b=_0x537a0b[_0x56fc69(0x228)](_0x234869[_0x56fc69(0x393)],_0x5c5c99[_0x56fc69(0x36b)]);if(!_0x20487b||!$(_0x20487b,_0x234869[_0x56fc69(0x210)],{'viewIds':[_0x234869[_0x56fc69(0x288)]]}))return!0x1;let _0x3ac0ed=_0x20487b[_0x56fc69(0x32f)](),_0x32858e=_0x3ac0ed[_0x56fc69(0x298)][_0x234869[_0x56fc69(0x210)]],_0x4ab373=jo(((_0x973f7e=_0x32858e['views'][_0x234869[_0x56fc69(0x288)]][_0x56fc69(0x2ba)][_0x56fc69(0x409)])==null?void 0x0:_0x973f7e[_0x56fc69(0x4c4)])??[],_0x234869);if(!_0x4ab373)return!0x1;Mo(_0x32858e,_0x4ab373);let _0x134dc0=new W()[_0x56fc69(0x2cf)](_0x3ac0ed,_0x234869[_0x56fc69(0x210)],_0x234869[_0x56fc69(0x288)],{'conditionalColoring':_0x4ab373[_0x56fc69(0x13c)]?{'rules':_0x4ab373}:null}),_0x2c7f60=new z()[_0x56fc69(0x2d8)](_0x3ac0ed,_0x134dc0),_0x526909={'unitId':_0x234869['unitId'],'op':_0x134dc0},_0x1db934={'unitId':_0x234869[_0x56fc69(0x393)],'op':_0x2c7f60};return _0x15f221[_0x56fc69(0x43e)](_0x5daeb6)[_0x56fc69(0x163)](Q['id'],_0x526909)?(_0x537a0b[_0x56fc69(0x243)](_0x234869['unitId']),_0x15f221[_0x56fc69(0x43e)](_0x5b9522)[_0x56fc69(0x47c)]({'unitID':_0x234869[_0x56fc69(0x393)],'undoMutations':[{'id':Q['id'],'params':_0x1db934}],'redoMutations':[{'id':Q['id'],'params':_0x526909}]}),!0x0):!0x1;}};function jo(_0x12dcf1,_0x26869f){const _0x2a7da3=_0x6c183;switch(_0x26869f[_0x2a7da3(0x20b)]){case _0x2a7da3(0x49e):return _0x4e3c3d[_0x2a7da3(0x29d)](_0x26869f[_0x2a7da3(0x4c4)]);case _0x2a7da3(0x2ee):return[..._0x4e3c3d[_0x2a7da3(0x29d)](_0x12dcf1),_0x4e3c3d[_0x2a7da3(0x29d)](_0x26869f[_0x2a7da3(0x4bb)])];case'delete':{let _0x5645d6=_0x12dcf1['filter'](_0x1e0a3a=>_0x1e0a3a['id']!==_0x26869f['ruleId']);return _0x5645d6[_0x2a7da3(0x13c)]===_0x12dcf1[_0x2a7da3(0x13c)]?null:_0x4e3c3d[_0x2a7da3(0x29d)](_0x5645d6);}case _0x2a7da3(0x328):return _0x12dcf1[_0x2a7da3(0x13c)]?[]:null;}}function Mo(_0x37aed7,_0x5ee2e0){const _0x17b624=_0x6c183;if(!Array[_0x17b624(0x431)](_0x5ee2e0))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.');let _0x389574=new Set();for(let [_0x128c86,_0x1f42c4]of _0x5ee2e0[_0x17b624(0x279)]())Po(_0x37aed7,_0x1f42c4,No(_0x1f42c4,_0x128c86,_0x389574));}function No(_0x43b043,_0x4ad330,_0x25e85f){const _0x5ce289=_0x6c183;if(!_0x43b043||typeof _0x43b043!=_0x5ce289(0x3d7))throw TypeError(_0x5ce289(0x254)+_0x4ad330+'\x20must\x20be\x20an\x20object.');let _0x52465d=typeof _0x43b043['id']==_0x5ce289(0x425)&&_0x43b043['id'][_0x5ce289(0x226)]()?'\x22'+_0x43b043['id']+'\x22':_0x5ce289(0x299)+_0x4ad330;if(typeof _0x43b043['id']!=_0x5ce289(0x425)||!_0x43b043['id'][_0x5ce289(0x226)]())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x52465d+_0x5ce289(0x3b1));if(_0x25e85f[_0x5ce289(0x34b)](_0x43b043['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x43b043['id']+'\x22.');_0x25e85f[_0x5ce289(0x2ee)](_0x43b043['id']);let _0x326eb3=typeof _0x43b043[_0x5ce289(0x276)]==_0x5ce289(0x425)&&_0x43b043[_0x5ce289(0x276)]['trim']()?new _0x4014bd(_0x43b043['color']):null;if(!(_0x326eb3!=null&&_0x326eb3['isValid']))throw Error(_0x5ce289(0x25d)+_0x52465d+_0x5ce289(0x463));return _0x52465d;}function Po(_0x3f1574,_0xeddad7,_0x5a7223){const _0x3c1521=_0x6c183;let _0x268724=new Set(Object[_0x3c1521(0x227)](_0x4b6a96)),_0x5dc321=new Set(Object['values'](_0x50d725)),_0xa2bf88=new Set(Object[_0x3c1521(0x227)](_0x2b5b2b));if(!_0x268724[_0x3c1521(0x34b)](_0xeddad7[_0x3c1521(0x3dc)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x342)+String(_0xeddad7[_0x3c1521(0x3dc)])+'\x22.');let _0x4bb136=typeof _0xeddad7[_0x3c1521(0x2b0)]==_0x3c1521(0x425)?_0x3f1574['fields'][_0xeddad7[_0x3c1521(0x2b0)]]:void 0x0;if(!_0x4bb136||_0x4bb136['system']===!0x0||_0x4bb136[_0x3c1521(0x20b)]===_0x3a044b['RecordId'])throw Error(_0x3c1521(0x25d)+_0x5a7223+'\x20references\x20missing\x20or\x20non-public\x20field\x20\x22'+String(_0xeddad7['fieldId'])+'\x22.');if(!_0x5dc321['has'](_0xeddad7[_0x3c1521(0x220)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x5a7223+_0x3c1521(0x4c0)+String(_0xeddad7[_0x3c1521(0x220)])+'\x22.');if(_0xeddad7[_0x3c1521(0x3ea)]!==void 0x0&&!_0xa2bf88[_0x3c1521(0x34b)](_0xeddad7[_0x3c1521(0x3ea)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x48e)+String(_0xeddad7[_0x3c1521(0x3ea)])+'\x22.');if(_0xeddad7[_0x3c1521(0x3dc)]===_0x4b6a96[_0x3c1521(0x286)])return;let _0x3a49fb=vn(_0x4bb136[_0x3c1521(0x20b)]);if(!_0x3a49fb[_0x3c1521(0x16a)](_0xeddad7[_0x3c1521(0x220)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x34c)+_0xeddad7[_0x3c1521(0x220)]+_0x3c1521(0x349)+_0x4bb136[_0x3c1521(0x20b)]+'\x22.\x20Allowed\x20operators:\x20'+_0x3a49fb['join'](',\x20')+'.');if(_0xeddad7[_0x3c1521(0x3ea)]!==void 0x0&&!yn(_0x4bb136[_0x3c1521(0x20b)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x29b));}const Fo={'id':'base.command.update-base-view-config','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x579a7d,_0x4293fa)=>{const _0x241a63=_0x6c183;if(!_0x4293fa)return!0x1;let _0x197e91=_0x579a7d[_0x241a63(0x43e)](_0x24efe9),{unitId:_0x4e32bc,tableId:_0x112f0e,viewId:_0xf25c69,patch:_0x5ef700}=_0x4293fa,_0x17b217=_0x197e91['getUnit'](_0x4e32bc,_0x5c5c99[_0x241a63(0x36b)]);if(!_0x17b217||!$(_0x17b217,_0x112f0e,{'viewIds':[_0xf25c69]}))return!0x1;let _0x379a9d=_0x579a7d[_0x241a63(0x43e)](_0x5daeb6),_0x284cb1=_0x579a7d[_0x241a63(0x43e)](_0x5b9522),_0x5cd893=_0x17b217[_0x241a63(0x32f)](),_0x3bef41=new W()['updateViewConfig'](_0x5cd893,_0x112f0e,_0xf25c69,_0x5ef700),_0x5779a4=new z()[_0x241a63(0x2d8)](_0x5cd893,_0x3bef41),_0xd8fa34={'unitId':_0x4e32bc,'op':_0x3bef41},_0x17044d={'unitId':_0x4e32bc,'op':_0x5779a4};return _0x379a9d[_0x241a63(0x163)](Q['id'],_0xd8fa34)?(_0x197e91['focusUnit'](_0x4e32bc),_0x284cb1['pushUndoRedo']({'unitID':_0x4e32bc,'undoMutations':[{'id':Q['id'],'params':_0x17044d}],'redoMutations':[{'id':Q['id'],'params':_0xd8fa34}]}),!0x0):!0x1;}},Io={'id':_0x6c183(0x192),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x55db61,_0x357769){const _0x27e76e=_0x6c183;if(!_0x357769)return{'valid':!0x1,'reason':_0x27e76e(0x33e)};let _0x265563=_0x55db61[_0x27e76e(0x43e)](_0x24efe9)['getUnit'](_0x357769[_0x27e76e(0x393)],_0x5c5c99['UNIVER_BASE']),_0x187ec4=_0x265563==null?void 0x0:_0x265563[_0x27e76e(0x32f)](),_0x172ae5=_0x187ec4==null?void 0x0:_0x187ec4[_0x27e76e(0x298)][_0x357769[_0x27e76e(0x210)]];return!_0x187ec4||!_0x172ae5?{'valid':!0x1,'reason':_0x27e76e(0x14c)}:new Xi()['validateFormula'](_0x357769[_0x27e76e(0x3bc)],_0x172ae5,{'snapshot':_0x187ec4});}};let Lo=class extends _0x65b7b4{constructor(_0x16874b){const _0x3faeb0=_0x6c183;super(_0x16874b,_0x3faeb0(0x166),_0x5c5c99[_0x3faeb0(0x36b)],[_0x3cf49a[_0x3faeb0(0x475)],_0x3cf49a[_0x3faeb0(0x1f6)],_0x3cf49a[_0x3faeb0(0x3c8)],_0x3cf49a[_0x3faeb0(0x33a)],_0x3cf49a[_0x3faeb0(0x382)]]);}};Lo=X([Y(0x0,_0x3ca90e)],Lo);const Ro={'id':_0x6c183(0x47a),'type':_0x22977e[_0x6c183(0x3b0)],'handler':(_0x3862a5,_0x2dc3a1)=>!_0x2dc3a1||!_0x3862a5[_0x6c183(0x43e)](_0x24efe9)[_0x6c183(0x228)](_0x2dc3a1[_0x6c183(0x393)],_0x5c5c99['UNIVER_BASE'])?!0x1:_0x3862a5['get'](Lo)[_0x6c183(0x122)](_0x2dc3a1[_0x6c183(0x393)],_0x2dc3a1[_0x6c183(0x374)],_0x2dc3a1[_0x6c183(0x365)],_0x2dc3a1[_0x6c183(0x4bb)])},zo={'id':_0x6c183(0x3d6),'type':_0x22977e[_0x6c183(0x3b0)],'handler':(_0x3ffd83,_0x41a327)=>!_0x41a327||!_0x3ffd83['get'](_0x24efe9)[_0x6c183(0x228)](_0x41a327[_0x6c183(0x393)],_0x5c5c99[_0x6c183(0x36b)])?!0x1:_0x3ffd83[_0x6c183(0x43e)](Lo)['setRules'](_0x41a327['unitId'],_0x41a327[_0x6c183(0x4c4)])};function Bo(_0x5bc001){const _0x3eaec9=_0x6c183;let _0x4e7052=_0x5bc001[_0x3eaec9(0x2a4)]??Date[_0x3eaec9(0x2a4)](),_0x3e714e=_0x5bc001[_0x3eaec9(0x3b2)]??_0x5bc001['id']+_0x3eaec9(0x3a5),_0x278a88=_0x5bc001[_0x3eaec9(0x3ce)]??_0x5bc001['id']+_0x3eaec9(0x1a2),_0x2507aa=_0x5bc001['recordCount']??0x0,_0x2137cc=_0x96204b(),_0x4ad020={'id':_0x3e714e,'name':_0x5bc001[_0x3eaec9(0x194)]??_0x3eaec9(0x20c),'type':_0x3a044b[_0x3eaec9(0x315)],'config':{'placeholder':_0x3eaec9(0x21e)}},_0x35c599={},_0x18beaa=[],_0x8d0ee7={},_0x500c2f={},_0x2a55b2={};for(let _0x5a3401=0x0;_0x5a3401<_0x2507aa;_0x5a3401++){let _0x9419b8=_0x5bc001['id']+'-record-'+(_0x5a3401+0x1);_0x35c599[_0x9419b8]={'id':_0x9419b8,'values':{[_0x5a35e2]:_0x9419b8,..._0x5bc001[_0x3eaec9(0x355)]?{[_0x3e714e]:_0x5bc001[_0x3eaec9(0x355)]+'\x20'+(_0x5a3401+0x1)}:{}},'orderKey':String(_0x5a3401+0x1)[_0x3eaec9(0x20a)](0x4,'0'),'createdAt':_0x4e7052,'updatedAt':_0x4e7052},_0x18beaa[_0x3eaec9(0x174)](_0x9419b8),_0x8d0ee7[_0x9419b8]=_0x5a3401,_0x500c2f[_0x5a3401]=_0x9419b8,_0x2a55b2[_0x5a3401]={0x0:{'v':_0x9419b8,'t':_0x4dac72[_0x3eaec9(0x18a)]}},_0x5bc001[_0x3eaec9(0x355)]&&(_0x2a55b2[_0x5a3401][0x1]={'v':_0x5bc001[_0x3eaec9(0x355)]+'\x20'+(_0x5a3401+0x1),'t':_0x4dac72['STRING']});}let _0x5615ee={'id':_0x278a88,'tableId':_0x5bc001['id'],'name':_0x3eaec9(0x161),'type':_0x3ece31[_0x3eaec9(0x161)],'fieldOrder':[_0x5a35e2,_0x3e714e],'fieldSettings':{[_0x5a35e2]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x5bc001['id'],'name':_0x5bc001['name'],'primaryFieldId':_0x3e714e,'fieldOrder':[_0x5a35e2,_0x3e714e],'fields':{[_0x5a35e2]:_0x2137cc,[_0x3e714e]:_0x4ad020},'records':_0x35c599,'recordOrder':_0x18beaa,'rowIndex':_0x8d0ee7,'rowId':_0x500c2f,'colIndex':{[_0x5a35e2]:0x0,[_0x3e714e]:0x1},'colId':{0x0:_0x5a35e2,0x1:_0x3e714e},'cellData':_0x2a55b2,'views':{[_0x278a88]:_0x5615ee},'viewOrder':[_0x278a88]};}const Vo=_0x6c183(0x120);function Ho(_0x5c3cb2){const _0x544d32=_0x6c183;let _0x559fdd=Bo({'id':_0x5c3cb2[_0x544d32(0x42d)],'name':_0x5c3cb2[_0x544d32(0x2a3)]??_0x5c3cb2[_0x544d32(0x2d2)],'recordCount':0x0});return{..._0x559fdd,'resources':{..._0x559fdd[_0x544d32(0x421)]??{},[Vo]:Go(_0x5c3cb2)}};}function Uo(_0x8be919){const _0x58efbc=_0x6c183;return{'id':Q['id'],'params':{'unitId':_0x8be919[_0x58efbc(0x393)],'op':_0x53fdae['type']['compose'](_0x53fdae['insertOp']([_0x58efbc(0x298),_0x8be919[_0x58efbc(0x4c7)]['id']],_0x8be919['table']),_0x53fdae[_0x58efbc(0x13f)]([_0x58efbc(0x338),_0x8be919[_0x58efbc(0x159)]??_0x8be919[_0x58efbc(0x17c)][_0x58efbc(0x338)][_0x58efbc(0x13c)]],_0x8be919[_0x58efbc(0x4c7)]['id'])),'trigger':_0x58efbc(0x1b4)}};}function Wo(_0x3e5f16){const _0x2658ea=_0x6c183;let _0x4e1ae5=_0x3e5f16[_0x2658ea(0x17c)][_0x2658ea(0x338)][_0x2658ea(0x44e)](_0x3e5f16[_0x2658ea(0x210)]);if(!(!_0x3e5f16[_0x2658ea(0x17c)][_0x2658ea(0x298)][_0x3e5f16[_0x2658ea(0x210)]]||_0x4e1ae5<0x0))return{'id':Q['id'],'params':{'unitId':_0x3e5f16[_0x2658ea(0x393)],'op':_0x53fdae['type'][_0x2658ea(0x2a2)](_0x53fdae[_0x2658ea(0x37b)]([_0x2658ea(0x298),_0x3e5f16[_0x2658ea(0x210)]],_0x3e5f16[_0x2658ea(0x17c)]['tables'][_0x3e5f16[_0x2658ea(0x210)]]),_0x53fdae['removeOp']([_0x2658ea(0x338),_0x4e1ae5],_0x3e5f16[_0x2658ea(0x210)])),'trigger':_0x2658ea(0x1b4)}};}function Go(_0x3c96d2){const _0x568f1b=_0x6c183;return{'version':0x1,'embedId':_0x3c96d2['embedId'],'hostAnchorId':_0x3c96d2[_0x568f1b(0x42d)],'childUnitId':_0x3c96d2[_0x568f1b(0x3ca)],'childType':_0x3c96d2[_0x568f1b(0x45e)]};}function Ko(_0x5cb814){const _0x4c5bb6=_0x6c183;let _0x5ee77f=Math[_0x4c5bb6(0x482)](0x0,Number(_0x5cb814['decimalPlaces']??0x0)),_0x580d2f=_0x5cb814[_0x4c5bb6(0x1bd)]===!0x1?'0':'#,##0',_0x1ae7c1=_0x5ee77f?'.'+'0'['repeat'](_0x5ee77f):'',_0x2f7fd2=Jo(_0x5cb814[_0x4c5bb6(0x1da)]);return''+(_0x5cb814[_0x4c5bb6(0x4ba)]?Yo(_0x5cb814[_0x4c5bb6(0x4ba)]):'')+_0x580d2f+_0x1ae7c1+_0x2f7fd2;}function qo(_0x4d2f2e,_0x5505a0){const _0x19e8f8=_0x6c183;let _0x3ec068=Ko(_0x5505a0),_0x5e6a54=_0x3bb8d4[_0x19e8f8(0x3cd)](_0x3ec068,_0x4d2f2e,{'throws':!0x1});return Xo(String(_0x5e6a54),_0x5505a0['separatorStyle'],_0x5505a0[_0x19e8f8(0x30b)]);}function Jo(_0x293905){const _0x53007b=_0x6c183;return _0x293905==='K'?_0x53007b(0x331):_0x293905==='M'?_0x53007b(0x22c):_0x293905==='B'?_0x53007b(0x490):'';}function Yo(_0x315b37){const _0x4b7704=_0x6c183;return/^[A-Z]+$/i[_0x4b7704(0x215)](_0x315b37)?'\x22'+_0x315b37+'\x22':_0x315b37;}function Xo(_0x8995cf,_0x5d7db8,_0xcd32a1){const _0x1fe3fd=_0x6c183;let _0x3f30e3=_0x5d7db8===_0x1fe3fd(0x231)?Zo(_0xcd32a1):_0x5d7db8;return _0x3f30e3===_0x1fe3fd(0x2cc)?_0x8995cf['replace'](/,/g,'\x00')['replace'](/\./g,',')['replace'](/\0/g,'.'):_0x3f30e3===_0x1fe3fd(0x186)?_0x8995cf[_0x1fe3fd(0x14e)](/,/g,'\x20')[_0x1fe3fd(0x14e)](/\./g,','):_0x3f30e3===_0x1fe3fd(0x394)?_0x8995cf[_0x1fe3fd(0x14e)](/,/g,'\x20'):_0x8995cf;}function Zo(_0x31f993){const _0x1afae5=_0x6c183;var _0x11e194,_0x4c7826;let _0x3f0f8a=_0x31f993||new Intl[(_0x1afae5(0x420))]()[_0x1afae5(0x38b)]()[_0x1afae5(0x30b)],_0x586638;try{_0x586638=new Intl[(_0x1afae5(0x420))](_0x3f0f8a,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x1afae5(0x125)](0xf4240);}catch{return _0x1afae5(0x492);}let _0x4e73a5=(_0x11e194=_0x586638[_0x1afae5(0x392)](_0x5d375=>_0x5d375[_0x1afae5(0x20b)]===_0x1afae5(0x1f2)))==null?void 0x0:_0x11e194[_0x1afae5(0x350)],_0x1addf9=(_0x4c7826=_0x586638[_0x1afae5(0x392)](_0x5d3152=>_0x5d3152[_0x1afae5(0x20b)]==='decimal'))==null?void 0x0:_0x4c7826[_0x1afae5(0x350)],_0x5845a4=_0x4e73a5==='\u00a0'||_0x4e73a5==='\u202f'?'\x20':_0x4e73a5;return _0x5845a4==='.'&&_0x1addf9===','?_0x1afae5(0x2cc):_0x5845a4==='\x20'&&_0x1addf9===','?_0x1afae5(0x186):_0x5845a4==='\x20'&&_0x1addf9==='.'?_0x1afae5(0x394):_0x1afae5(0x492);}function Qo(_0x499d78,_0x39c9b2){const _0xa03c55=_0x6c183;let _0x434e28=_0x39c9b2&&typeof _0x39c9b2=='object'&&!Array[_0xa03c55(0x431)](_0x39c9b2)?_0x39c9b2:{},_0x54ed90=$o(_0x434e28[_0xa03c55(0x27f)],0x0,0x2,0x0),_0x48ec03=_0x499d78['toFixed'](_0x54ed90);return _0x434e28[_0xa03c55(0x3cd)]===_0xa03c55(0x24b)?_0x48ec03:_0x48ec03+'%';}function $o(_0x45cd36,_0x402642,_0x454093,_0x14d794){const _0x35ec78=_0x6c183;if(_0x45cd36==null||_0x45cd36==='')return _0x14d794;let _0x41c840=typeof _0x45cd36==_0x35ec78(0x24b)?_0x45cd36:Number(_0x45cd36);return Number[_0x35ec78(0x143)](_0x41c840)?Math[_0x35ec78(0x482)](_0x402642,Math['min'](_0x454093,Math[_0x35ec78(0x343)](_0x41c840))):_0x14d794;}const es=[_0x6c183(0x115),_0x6c183(0x152),'empty',_0x6c183(0x118),'sum','average','min','max'],ts=[_0x6c183(0x115),_0x6c183(0x152),_0x6c183(0x1b1),_0x6c183(0x118)],ns=[_0x6c183(0x129),_0x6c183(0x23b),'min',_0x6c183(0x482)],rs=[_0x6c183(0x27a),'max'],is=new Set([_0x3a044b['Number'],_0x3a044b['Currency'],_0x3a044b[_0x6c183(0x140)],_0x3a044b[_0x6c183(0x2c3)]]),as=new Set([_0x3a044b[_0x6c183(0x386)],_0x3a044b['Person'],_0x3a044b[_0x6c183(0x1ad)]]),os=_0x6c183(0x453);function ss(_0x58502c){const _0x33f011=_0x6c183;return typeof _0x58502c==_0x33f011(0x425)&&es[_0x33f011(0x16a)](_0x58502c);}function cs(_0x97406){const _0x40c758=_0x6c183;return!_0x97406||typeof _0x97406!=_0x40c758(0x3d7)?{}:Object[_0x40c758(0x176)](Object[_0x40c758(0x279)](_0x97406)[_0x40c758(0x2be)](_0x398e07=>ss(_0x398e07[0x1])));}function ls(_0x2441b1){const _0x344693=_0x6c183;return is[_0x344693(0x34b)](_0x2441b1[_0x344693(0x20b)])?[...ts,...ns]:_0x2441b1[_0x344693(0x20b)]===_0x3a044b['Formula']?[...ts,...ws(_0x2441b1)==='date'?rs:ns]:ts;}function us(_0x362999,_0x40e319){return ls(_0x362999)['includes'](_0x40e319);}function ds(_0x13571e,_0x3eb58d,_0x28a45f){const _0x2a59c3=_0x6c183;if(!us(_0x13571e,_0x28a45f))return null;let _0x15b724=_0x3eb58d['filter'](_0x13c76c=>!ps(_0x13571e,_0x13c76c));switch(_0x28a45f){case _0x2a59c3(0x115):return _0x3eb58d[_0x2a59c3(0x13c)];case _0x2a59c3(0x152):return _0x15b724[_0x2a59c3(0x13c)];case _0x2a59c3(0x1b1):return _0x3eb58d[_0x2a59c3(0x13c)]-_0x15b724[_0x2a59c3(0x13c)];case _0x2a59c3(0x118):return new Set(_0x15b724[_0x2a59c3(0x141)](_0x22a2b0=>_s(_0x13571e,_0x22a2b0)))[_0x2a59c3(0x15b)];case'sum':{let _0xda07d0=ms(_0x13571e,_0x15b724);return _0xda07d0[_0x2a59c3(0x13c)]?gs(_0xda07d0):null;}case _0x2a59c3(0x23b):{let _0x4c3a0f=ms(_0x13571e,_0x15b724);return _0x4c3a0f[_0x2a59c3(0x13c)]?gs(_0x4c3a0f)/_0x4c3a0f[_0x2a59c3(0x13c)]:null;}case _0x2a59c3(0x27a):{let _0x5b190d=ms(_0x13571e,_0x15b724);return _0x5b190d['length']?Math['min'](..._0x5b190d):null;}case'max':{let _0x47afef=ms(_0x13571e,_0x15b724);return _0x47afef['length']?Math[_0x2a59c3(0x482)](..._0x47afef):null;}}}function fs(_0x3bba8c,_0x5cde9f,_0x15a317){const _0xec8b54=_0x6c183;if(_0x15a317==null||!Number['isFinite'](_0x15a317))return'-';if(ts[_0xec8b54(0x16a)](_0x5cde9f))return String(_0x15a317);switch(_0x3bba8c[_0xec8b54(0x20b)]){case _0x3a044b[_0xec8b54(0x2f5)]:return qo(_0x15a317,xs(_0x3bba8c));case _0x3a044b[_0xec8b54(0x14d)]:return qo(_0x15a317,Ss(_0x3bba8c));case _0x3a044b[_0xec8b54(0x140)]:return Qo(_0x15a317,_0x3bba8c[_0xec8b54(0x2ba)]);case _0x3a044b['Formula']:return Cs(_0x15a317,_0x3bba8c);default:return Es(_0x15a317);}}function ps(_0x4a5a21,_0x3fe90a){const _0x54df41=_0x6c183;if(_0x3fe90a==null)return!0x0;if(typeof _0x3fe90a==_0x54df41(0x425))return _0x3fe90a[_0x54df41(0x226)]()==='';if(Array[_0x54df41(0x431)](_0x3fe90a))return _0x4a5a21[_0x54df41(0x20b)]===_0x3a044b[_0x54df41(0x1ab)]?!_0x3fe90a['some'](bs):_0x3fe90a[_0x54df41(0x13c)]===0x0;if(_0x4a5a21[_0x54df41(0x20b)]===_0x3a044b[_0x54df41(0x41f)]&&typeof _0x3fe90a=='object'){let _0x5719c8=_0x3fe90a;return[_0x5719c8[_0x54df41(0x3ae)],_0x5719c8[_0x54df41(0x32d)]][_0x54df41(0x387)](_0x1edcd4=>_0x1edcd4==null||String(_0x1edcd4)[_0x54df41(0x226)]()==='');}return!0x1;}function ms(_0x16215c,_0x36713c){const _0x444650=_0x6c183;let _0x4832e1=[];for(let _0x23a722 of _0x36713c){let _0x1c2d6e=hs(_0x16215c,_0x23a722);_0x1c2d6e!=null&&_0x4832e1[_0x444650(0x174)](_0x1c2d6e);}return _0x4832e1;}function hs(_0x386775,_0x134d5d){const _0x48f395=_0x6c183;if(typeof _0x134d5d==_0x48f395(0x24b))return Number[_0x48f395(0x143)](_0x134d5d)?_0x134d5d:null;if(_0x386775[_0x48f395(0x20b)]!==_0x3a044b['Formula']&&typeof _0x134d5d=='string'&&_0x134d5d[_0x48f395(0x226)]()!==''){let _0x323e68=Number(_0x134d5d);return Number[_0x48f395(0x143)](_0x323e68)?_0x323e68:null;}return null;}function gs(_0xad7f49){const _0x3f94c3=_0x6c183;let _0x291066=0x0,_0x5644e8=0x0;for(let _0x3e73e0 of _0xad7f49){let _0x352f26=_0x291066+_0x3e73e0;_0x5644e8+=Math[_0x3f94c3(0x4be)](_0x291066)>=Math['abs'](_0x3e73e0)?_0x291066-_0x352f26+_0x3e73e0:_0x3e73e0-_0x352f26+_0x291066,_0x291066=_0x352f26;}return _0x291066+_0x5644e8;}function _s(_0x5a262d,_0x520547){const _0x1bccd6=_0x6c183;return as[_0x1bccd6(0x34b)](_0x5a262d[_0x1bccd6(0x20b)])&&Array[_0x1bccd6(0x431)](_0x520547)?ys([...new Set(_0x520547[_0x1bccd6(0x141)](_0x4dd9ad=>ys(vs(_0x4dd9ad))))][_0x1bccd6(0x277)]()):ys(vs(_0x520547));}function vs(_0x3dcc6e){const _0x50ea03=_0x6c183;return Array[_0x50ea03(0x431)](_0x3dcc6e)?_0x3dcc6e[_0x50ea03(0x141)](vs):_0x3dcc6e&&typeof _0x3dcc6e==_0x50ea03(0x3d7)?Object[_0x50ea03(0x176)](Object[_0x50ea03(0x279)](_0x3dcc6e)[_0x50ea03(0x277)](([_0x2e94ac],[_0x5192fe])=>_0x2e94ac['localeCompare'](_0x5192fe))[_0x50ea03(0x141)](([_0x4ba7e7,_0x13eb12])=>[_0x4ba7e7,vs(_0x13eb12)])):_0x3dcc6e;}function ys(_0x29125c){const _0x694f48=_0x6c183;return JSON['stringify'](_0x29125c)??_0x694f48(0x31f);}function bs(_0x30ffb2){const _0x20c794=_0x6c183;if(typeof _0x30ffb2=='string')return _0x30ffb2[_0x20c794(0x226)]()!=='';if(!_0x30ffb2||typeof _0x30ffb2!=_0x20c794(0x3d7))return!0x1;let _0x5415de=_0x30ffb2;return[_0x5415de['id'],_0x5415de[_0x20c794(0x2a3)],_0x5415de[_0x20c794(0x495)],_0x5415de[_0x20c794(0x32d)],_0x5415de[_0x20c794(0x2aa)]][_0x20c794(0x185)](_0xb6dd8=>_0xb6dd8!=null&&String(_0xb6dd8)[_0x20c794(0x226)]()!=='');}function xs(_0x506595){const _0x54153f=_0x6c183;let _0x5975cc=Ds(_0x506595[_0x54153f(0x2ba)]);return{'decimalPlaces':ks(_0x5975cc[_0x54153f(0x27f)],0x0,0x14,0x2),'separatorStyle':typeof _0x5975cc[_0x54153f(0x370)]=='string'?_0x5975cc[_0x54153f(0x370)]:_0x54153f(0x231),'locale':typeof _0x5975cc[_0x54153f(0x30b)]==_0x54153f(0x425)?_0x5975cc[_0x54153f(0x30b)]:void 0x0,'useThousands':_0x5975cc[_0x54153f(0x1bd)]!==!0x1,'abbreviation':typeof _0x5975cc['abbreviation']==_0x54153f(0x425)?_0x5975cc[_0x54153f(0x1da)]:_0x54153f(0x42f)};}function Ss(_0x509be7){const _0x1e194a=_0x6c183;let _0x274ce7=Ds(_0x509be7[_0x1e194a(0x2ba)]);return{...xs(_0x509be7),'currencySymbol':String(_0x274ce7[_0x1e194a(0x4ba)]??'$')};}function Cs(_0x516cf4,_0xa22bfc){let _0x8c0020=Ts(_0xa22bfc);if(_0x8c0020===os)return Es(_0x516cf4);try{return String(_0x3bb8d4['format'](_0x8c0020,_0x516cf4,{'throws':!0x1}));}catch{return Es(_0x516cf4);}}function ws(_0x345290){const _0x1650f9=_0x6c183;let _0xd63928=Ds(Ds(_0x345290[_0x1650f9(0x2ba)])[_0x1650f9(0x1ef)]);return typeof _0xd63928[_0x1650f9(0x20b)]=='string'?_0xd63928['type']:'general';}function Ts(_0x1d68df){const _0x1c9cff=_0x6c183;let _0x2e9d88=Ds(Ds(_0x1d68df[_0x1c9cff(0x2ba)])[_0x1c9cff(0x1ef)]);return String(_0x2e9d88[_0x1c9cff(0x235)]??os)['trim']()||os;}function Es(_0x16cdd8){return String(Number['isInteger'](_0x16cdd8)?_0x16cdd8:Math['round']((_0x16cdd8+0x2**-0x34)*0x64)/0x64);}function Ds(_0x34b8db){const _0x38d02f=_0x6c183;return _0x34b8db&&typeof _0x34b8db=='object'&&!Array[_0x38d02f(0x431)](_0x34b8db)?_0x34b8db:{};}function Os(_0x445f99){const _0x5e4c9b=_0x6c183;if(_0x445f99==null||_0x445f99==='')return null;let _0x2d5599=typeof _0x445f99==_0x5e4c9b(0x24b)?_0x445f99:Number(_0x445f99);return Number[_0x5e4c9b(0x143)](_0x2d5599)?_0x2d5599:null;}function ks(_0x154a04,_0x51c63b,_0x23938d,_0xa4fcff){const _0x52e1eb=_0x6c183;let _0x19b309=Os(_0x154a04);return _0x19b309==null?_0xa4fcff:Math[_0x52e1eb(0x482)](_0x51c63b,Math[_0x52e1eb(0x27a)](_0x23938d,Math[_0x52e1eb(0x343)](_0x19b309)));}function As(_0x12caea,_0xe99a48){const _0xc7de8c=_0x6c183;let _0x152789=_0x4e3c3d['deepClone'](_0x12caea),_0x3fa7e7=_0xe99a48['includeRecords']===!0x0,_0x522e2b=new Map(),_0x51f3a1=_0xe99a48[_0xc7de8c(0x259)]??(()=>_0xc7de8c(0x25a)+_0x456020(0x8)),_0x42a0d2=_0x152789[_0xc7de8c(0x1cd)];return _0xe99a48[_0xc7de8c(0x3a0)]&&(_0x42a0d2=_0x152789['viewOrder'][_0xc7de8c(0x141)](_0x3b943c=>{const _0x29e8b8=_0xc7de8c;let _0x5e8592=_0x51f3a1();return _0x522e2b[_0x29e8b8(0x49e)](_0x3b943c,_0x5e8592),_0x5e8592;})),{..._0x152789,'id':_0xe99a48['id'],'name':_0xe99a48[_0xc7de8c(0x2a3)],'records':_0x3fa7e7?_0x152789[_0xc7de8c(0x258)]:{},'recordOrder':_0x3fa7e7?_0x152789[_0xc7de8c(0x1e7)]:[],'rowIndex':_0x3fa7e7?_0x152789['rowIndex']:{},'rowId':_0x3fa7e7?_0x152789[_0xc7de8c(0x3d0)]:{},'cellData':_0x3fa7e7?_0x152789[_0xc7de8c(0x389)]:{},'resources':_0x3fa7e7?_0x152789[_0xc7de8c(0x421)]:{},'viewOrder':_0x42a0d2,'views':Object['fromEntries'](Object[_0xc7de8c(0x279)](_0x152789[_0xc7de8c(0x362)]??{})[_0xc7de8c(0x141)](([_0x576877,_0xf0a9a6])=>{const _0x5a0c02=_0xc7de8c;let _0x2e9537=_0x522e2b[_0x5a0c02(0x43e)](_0x576877)??(_0xe99a48[_0x5a0c02(0x3a0)]?_0x51f3a1():_0x576877);return[_0x2e9537,{..._0xf0a9a6,'id':_0x2e9537,'tableId':_0xe99a48['id']}];}))};}var js=_0x6c183(0x1d1),Ms=_0x6c183(0x2c4);const Ns={},Ps={};function Fs(_0x3ace7d){return new z()['getAffectedRanges'](_0x3ace7d);}function Is(_0x4b806d){const _0x3181b0=_0x6c183;return _0x4b806d[_0x3181b0(0x2e6)]['map'](_0x176a01=>({'unitId':_0x4b806d[_0x3181b0(0x393)],'sheetId':_0x4b806d[_0x3181b0(0x210)],'range':{'startRow':_0x176a01['row'],'endRow':_0x176a01[_0x3181b0(0x4b3)],'startColumn':_0x176a01[_0x3181b0(0x295)],'endColumn':_0x176a01[_0x3181b0(0x295)]}}));}function Ls(_0x3a8d0c,_0x227b7e){const _0x4adc2e=_0x6c183;return{[_0x3a8d0c]:Object[_0x4adc2e(0x176)](_0x227b7e[_0x4adc2e(0x141)](_0x5adbc4=>[_0x5adbc4,'1']))};}let Rs=class extends _0x3b0b2d{constructor(_0x46f761,_0x3221e3){const _0x572423=_0x6c183;super(),this[_0x572423(0x28c)]=_0x46f761,this['_univerInstanceService']=_0x3221e3,this[_0x572423(0x24a)]();}['_initialize'](){const _0x1921c2=_0x6c183;this[_0x1921c2(0x28c)][_0x1921c2(0x2d9)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x231922=>this[_0x1921c2(0x3e7)](_0x231922['params'])}),this[_0x1921c2(0x135)](_0x1827e4(()=>{const _0x5b45b7=_0x1921c2;this[_0x5b45b7(0x28c)][_0x5b45b7(0x2b2)](Q['id']);}));}[_0x6c183(0x4a3)](_0x4ead58,_0x1cddb0){const _0x350a62=_0x6c183;let _0x3f4de3=this[_0x350a62(0x1be)]['getUnit'](_0x4ead58,_0x5c5c99[_0x350a62(0x36b)]);return(_0x3f4de3==null?void 0x0:_0x3f4de3[_0x350a62(0x32f)]()[_0x350a62(0x298)][_0x1cddb0])??null;}[_0x6c183(0x3e7)](_0xfc0160){const _0x5f26c2=_0x6c183;if(_0xfc0160[_0x5f26c2(0x172)]===_0x5f26c2(0x2f2))return{};if(!_0xfc0160[_0x5f26c2(0x393)]||!_0xfc0160['op'])return{'clearDependencyTreeCache':this[_0x5f26c2(0x153)](),'forceCalculation':!0x0};let _0xa6262c=Fs(_0xfc0160['op']),_0x1f84db=this['_getStructureDirtyTableIds'](_0xfc0160[_0x5f26c2(0x393)],_0xa6262c);if(_0x1f84db['length'])return{'clearDependencyTreeCache':Ls(_0xfc0160[_0x5f26c2(0x393)],_0x1f84db),'forceCalculation':!0x0};let _0x2124d2=Object['entries'](this[_0x5f26c2(0x452)](_0xfc0160['unitId'],_0xa6262c))[_0x5f26c2(0x17a)](([_0x53ac4a,_0x14ae45])=>Is({'unitId':_0xfc0160[_0x5f26c2(0x393)],'tableId':_0x53ac4a,'patches':_0x14ae45}));return _0x2124d2[_0x5f26c2(0x13c)]?{'dirtyRanges':_0x2124d2}:{};}[_0x6c183(0x167)](_0x3df5f1,_0x14f721){const _0x5bb0ed=_0x6c183;let _0xb222f4=_0x14f721[_0x5bb0ed(0x2be)](_0x4fb3ad=>_0x4fb3ad[_0x5bb0ed(0x28a)]!=='cell')[_0x5bb0ed(0x17a)](_0x2c82e4=>_0x2c82e4[_0x5bb0ed(0x210)]?[_0x2c82e4[_0x5bb0ed(0x210)]]:this[_0x5bb0ed(0x1ff)](_0x3df5f1));return Array[_0x5bb0ed(0x1d5)](new Set(_0xb222f4));}['_groupCellInvalidations'](_0x400a0a,_0x5614c2){let _0x14f6ba=new Set();return _0x5614c2['reduce']((_0x434bef,_0xc1a520)=>{const _0x371dac=_0x2b5a;let _0x581999=this['_toDirtyRangePatch'](_0x400a0a,_0xc1a520);if(!_0x581999)return _0x434bef;let _0x913e72=_0xc1a520[_0x371dac(0x210)]+':'+_0x581999[_0x371dac(0x4b3)]+':'+_0x581999[_0x371dac(0x295)];return _0x14f6ba[_0x371dac(0x34b)](_0x913e72)?_0x434bef:(_0x14f6ba[_0x371dac(0x2ee)](_0x913e72),_0x434bef[_0xc1a520[_0x371dac(0x210)]]=_0x434bef[_0xc1a520[_0x371dac(0x210)]]??[],_0x434bef[_0xc1a520[_0x371dac(0x210)]][_0x371dac(0x174)](_0x581999),_0x434bef);},{});}[_0x6c183(0x2ce)](_0x3521c5,_0x35a3db){const _0x28d48f=_0x6c183;if(_0x35a3db[_0x28d48f(0x28a)]!==_0x28d48f(0x1de))return null;if(_0x35a3db[_0x28d48f(0x4b3)]!=null&&_0x35a3db[_0x28d48f(0x229)]!=null)return{'row':_0x35a3db['row'],'col':_0x35a3db['column'],'value':null};if(!_0x35a3db[_0x28d48f(0x347)]||!_0x35a3db[_0x28d48f(0x2b0)])return null;let _0x4ef7da=this['_getTable'](_0x3521c5,_0x35a3db[_0x28d48f(0x210)]);if(!_0x4ef7da)return null;let _0x586a14=_t(_0x4ef7da,_0x35a3db[_0x28d48f(0x347)],_0x35a3db['fieldId']);return _0x586a14?{'row':_0x586a14[_0x28d48f(0x4b3)],'col':_0x586a14[_0x28d48f(0x295)],'value':null}:null;}[_0x6c183(0x1ff)](_0x5ba1dd){const _0x42092c=_0x6c183;let _0x271ad8=this[_0x42092c(0x1be)][_0x42092c(0x228)](_0x5ba1dd,_0x5c5c99['UNIVER_BASE']);return Object[_0x42092c(0x227)]((_0x271ad8==null?void 0x0:_0x271ad8['getSnapshot']()[_0x42092c(0x298)])??{})[_0x42092c(0x141)](_0x47e77d=>_0x47e77d['id']);}['_getAllBaseDependencyTreeCacheMap'](){const _0x9e6e23=_0x6c183;let _0x1d62c6=this[_0x9e6e23(0x1be)][_0x9e6e23(0x3db)](_0x5c5c99[_0x9e6e23(0x36b)])[_0x9e6e23(0x141)](_0x986a5f=>Ls(_0x986a5f[_0x9e6e23(0x2ff)](),Object['keys'](_0x986a5f[_0x9e6e23(0x32f)]()[_0x9e6e23(0x298)])));return Object[_0x9e6e23(0x1ec)]({},..._0x1d62c6);}};Rs=X([Y(0x0,_0x403c63),Y(0x1,_0x24efe9)],Rs);let zs=class extends _0x3b0b2d{constructor(_0x1bda70,_0x16b012,_0x1f19c4,_0x9a4d64){const _0x4b1aac=_0x6c183;super(),this[_0x4b1aac(0x3cc)]=_0x1bda70,this[_0x4b1aac(0x1be)]=_0x16b012,this['_formulaCalculationTriggerService']=_0x1f19c4,this['_formulaCalculationSessionService']=_0x9a4d64,G(this,'_formulaService',new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,_0x4b1aac(0x39c),new Set()),G(this,_0x4b1aac(0x3ff),Promise[_0x4b1aac(0x4a9)]()),G(this,_0x4b1aac(0x46d),!0x1),this[_0x4b1aac(0x24a)]();}['_initialize'](){const _0x4352d5=_0x6c183;this[_0x4352d5(0x1be)]['getAllUnitsForType'](_0x5c5c99[_0x4352d5(0x36b)])['forEach'](_0x443195=>{const _0x161b70=_0x4352d5;this[_0x161b70(0x1f0)](_0x443195);}),this[_0x4352d5(0x135)](this[_0x4352d5(0x1be)]['getTypeOfUnitAdded$'](_0x5c5c99[_0x4352d5(0x36b)])[_0x4352d5(0x265)](({unit:_0x3e3e99})=>{const _0x47f1e8=_0x4352d5;this[_0x47f1e8(0x1f0)](_0x3e3e99);})),this['disposeWithMe'](this[_0x4352d5(0x1be)][_0x4352d5(0x1b5)](_0x5c5c99['UNIVER_BASE'])['subscribe'](_0x182177=>{const _0x401673=_0x4352d5;this['_enqueueFormulaSync'](()=>this[_0x401673(0x29e)](_0x182177['getUnitId']()));})),this[_0x4352d5(0x135)](this['_commandService'][_0x4352d5(0x2ec)](_0x106bb9=>this[_0x4352d5(0x13d)](_0x106bb9)));}[_0x6c183(0x13d)](_0x44e5c1){const _0x5212fb=_0x6c183;if(_0x44e5c1['id']===_0x3da161['id']){Vs(_0x44e5c1['params'])&&this[_0x5212fb(0x455)](_0x44e5c1['params']);return;}if(this[_0x5212fb(0x46d)]||_0x44e5c1['id']!==Q['id'])return;let _0x1fc937=Bs(_0x44e5c1['params'])?_0x44e5c1['params']:void 0x0,_0x1254a0=_0x1fc937!=null&&_0x1fc937[_0x5212fb(0x393)]?[this['_univerInstanceService'][_0x5212fb(0x228)](_0x1fc937[_0x5212fb(0x393)],_0x5c5c99[_0x5212fb(0x36b)])][_0x5212fb(0x2be)](_0xa9e253=>!!_0xa9e253):this[_0x5212fb(0x1be)][_0x5212fb(0x3db)](_0x5c5c99[_0x5212fb(0x36b)]),_0x2f8cdd=_0x1fc937==null?void 0x0:_0x1fc937['op'];_0x1254a0['forEach'](_0x92a692=>{const _0x5b7635=_0x5212fb;let _0x46ba9f=_0x2f8cdd?Fs(_0x2f8cdd):[];(!_0x2f8cdd||_0x46ba9f['some'](_0x4e87b9=>_0x4e87b9['reason']!==_0x5b7635(0x1de)))&&this['_scheduleSuperTableSync'](_0x92a692);});}[_0x6c183(0x1f0)](_0x9f835a){const _0x3128b6=_0x6c183;let _0xa704ec=_0x9f835a[_0x3128b6(0x2ff)]();this[_0x3128b6(0x39c)][_0x3128b6(0x34b)](_0xa704ec)||(this[_0x3128b6(0x39c)]['add'](_0xa704ec),this[_0x3128b6(0x41d)](async()=>{const _0x5e8643=_0x3128b6;this[_0x5e8643(0x39c)][_0x5e8643(0x2fc)](_0xa704ec),await this['_syncSuperTables'](_0x9f835a);}));}async[_0x6c183(0x438)](_0x5af771){const _0x4ff14e=_0x6c183;let _0x55e3a8=_0x5af771[_0x4ff14e(0x2ff)](),_0x5461cd=this['_formulaService']['getSuperTableRegistrations'](_0x5af771[_0x4ff14e(0x32f)]()),_0x4ab9cb=new Set(_0x5461cd[_0x4ff14e(0x141)](({tableName:_0x12baf4})=>_0x12baf4)),_0x5ca400=this[_0x4ff14e(0x3e0)][_0x4ff14e(0x43e)](_0x55e3a8)??new Set();for(let _0x411501 of _0x5ca400)if(!_0x4ab9cb[_0x4ff14e(0x34b)](_0x411501)&&!await this[_0x4ff14e(0x245)](_0x371cf0['id'],{'unitId':_0x55e3a8,'tableName':_0x411501}))return;for(let {tableName:_0x36a504,reference:_0x430913}of _0x5461cd)if(!await this[_0x4ff14e(0x245)](_0x2af977['id'],{'unitId':_0x55e3a8,'tableName':_0x36a504,'reference':_0x430913}))return;this[_0x4ff14e(0x3e0)]['set'](_0x55e3a8,_0x4ab9cb);}async[_0x6c183(0x29e)](_0x249be5){const _0x293526=_0x6c183;let _0x8723a4=this['_registeredSuperTableNames'][_0x293526(0x43e)](_0x249be5)??new Set();for(let _0x199fbb of _0x8723a4)if(!await this['_executeSuperTableMutationWhileActive'](_0x371cf0['id'],{'unitId':_0x249be5,'tableName':_0x199fbb}))return;this[_0x293526(0x3e0)][_0x293526(0x2fc)](_0x249be5);}async[_0x6c183(0x245)](_0x6961f1,_0x263546){const _0x9b3648=_0x6c183;return!this[_0x9b3648(0x18e)]&&await this[_0x9b3648(0x3cc)][_0x9b3648(0x486)](_0x6961f1,_0x263546,{'onlyLocal':!0x0})&&!this[_0x9b3648(0x18e)];}[_0x6c183(0x41d)](_0x2073f5){const _0x390e71=_0x6c183;this[_0x390e71(0x3ff)]=this[_0x390e71(0x3ff)]['then'](_0x2073f5,_0x2073f5)['catch'](()=>void 0x0);}[_0x6c183(0x455)](_0x33bf98){const _0xdb0e53=_0x6c183;let _0x4134b9=this['_univerInstanceService'][_0xdb0e53(0x3db)](_0x5c5c99[_0xdb0e53(0x36b)]);if(!_0x4134b9['some'](_0x14d19d=>{const _0x2c4aa0=_0xdb0e53;var _0x2600b1;return((_0x2600b1=_0x33bf98[_0x2c4aa0(0x42e)])==null?void 0x0:_0x2600b1[_0x14d19d[_0x2c4aa0(0x2ff)]()])!=null;}))return;let _0x4bf57d=_0x4134b9['flatMap'](_0x439930=>Zi(_0x439930[_0xdb0e53(0x32f)](),_0x33bf98));if(!_0x4bf57d['length']){this[_0xdb0e53(0x178)][_0xdb0e53(0x480)](_0x1e8264[_0xdb0e53(0x4b4)],_0x33bf98);return;}let _0x45e61a=new W(),_0x1eba16=_0x4bf57d[_0xdb0e53(0x17a)](_0x16865f=>Is({'unitId':_0x16865f[_0xdb0e53(0x393)],'tableId':_0x16865f[_0xdb0e53(0x210)],'patches':_0x16865f[_0xdb0e53(0x2e6)]}));this[_0xdb0e53(0x46d)]=!0x0,(async()=>{const _0x4d1a31=_0xdb0e53;for(let _0x333d04 of _0x4bf57d){let _0x8614da=this[_0x4d1a31(0x1be)][_0x4d1a31(0x228)](_0x333d04[_0x4d1a31(0x393)],_0x5c5c99[_0x4d1a31(0x36b)]);_0x8614da&&await this[_0x4d1a31(0x3cc)]['executeCommand'](Q['id'],{'unitId':_0x333d04['unitId'],'op':_0x45e61a[_0x4d1a31(0x11d)](_0x8614da[_0x4d1a31(0x32f)](),_0x333d04[_0x4d1a31(0x210)],_0x333d04['patches']),'trigger':_0x3da161['id']},{'onlyLocal':!0x0});}await this[_0x4d1a31(0x3cc)][_0x4d1a31(0x486)](_0x174b70['id'],{'dirtyRanges':_0x1eba16},{'onlyLocal':!0x0});})()['finally'](()=>{const _0x338c8b=_0xdb0e53;this['_applyingFormulaResults']=!0x1,this[_0x338c8b(0x178)][_0x338c8b(0x480)](_0x1e8264[_0x338c8b(0x4b4)],_0x33bf98);});}};zs=X([Y(0x0,_0x5daeb6),Y(0x1,_0x24efe9),Y(0x2,_0x490adb(_0x2612d7)),Y(0x3,_0x490adb(_0xdc8395))],zs);function Bs(_0xb97de6){const _0xf80dd0=_0x6c183;return typeof _0xb97de6==_0xf80dd0(0x3d7)&&!!_0xb97de6&&'unitId'in _0xb97de6&&typeof _0xb97de6['unitId']==_0xf80dd0(0x425)&&'op'in _0xb97de6&&Array['isArray'](_0xb97de6['op']);}function Vs(_0x371730){const _0x3730d2=_0x6c183;return typeof _0x371730==_0x3730d2(0x3d7)&&!!_0x371730&&_0x3730d2(0x42e)in _0x371730&&_0x3730d2(0x4af)in _0x371730;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x3b0b2d{constructor(_0x1f8a12,_0xe21c1,_0x1865ea,_0x279e5a){const _0x143489=_0x6c183;super(),this['_injector']=_0x1f8a12,this[_0x143489(0x3cc)]=_0xe21c1,this[_0x143489(0x3ad)]=_0x1865ea,this[_0x143489(0x470)]=_0x279e5a,this[_0x143489(0x470)][_0x143489(0x3db)](_0x5c5c99[_0x143489(0x36b)])[_0x143489(0x2e0)](_0x3b813d=>this['_registerUnitPermissionPoints'](_0x3b813d[_0x143489(0x2ff)]())),this['disposeWithMe'](this[_0x143489(0x470)]['getTypeOfUnitAdded$'](_0x5c5c99['UNIVER_BASE'])[_0x143489(0x265)](({unit:_0xddddc9})=>this[_0x143489(0x1c4)](_0xddddc9[_0x143489(0x2ff)]()))),this[_0x143489(0x135)](this[_0x143489(0x3cc)][_0x143489(0x16b)]((_0x2a0394,_0x15fd46)=>this[_0x143489(0x197)](_0x2a0394,_0x15fd46))),this[_0x143489(0x135)](this['_instanceService']['getTypeOfUnitDisposed$'](_0x5c5c99[_0x143489(0x36b)])[_0x143489(0x265)](_0x7566bd=>{const _0x3f43d9=_0x143489;this[_0x3f43d9(0x224)]['get'](_0x14b422)[_0x3f43d9(0x3b8)](_0x7566bd['getUnitId']()),Rr(this[_0x3f43d9(0x3ad)],_0x7566bd[_0x3f43d9(0x2ff)]());}));}['_registerUnitPermissionPoints'](_0x20f408){const _0x191e6a=_0x6c183;Tr[_0x191e6a(0x2e0)](_0x68b61=>{const _0xf32621=_0x191e6a;let _0x319018=Pr(_0x20f408,_0x20f408,_0x68b61);this['_permissionService']['getPermissionPoint'](_0x319018['id'])||this['_permissionService'][_0xf32621(0x2e2)](_0x319018);}),this['_injector']['get'](_0x14b422)[_0x191e6a(0x43f)]({'unitId':_0x20f408,'objectId':_0x20f408,'objectType':_0x3cf49a['Base']});}['_check'](_0x295aa6,_0x46578c){const _0x2b840a=_0x6c183;var _0x58dd7d;if(_0x46578c!=null&&_0x46578c[_0x2b840a(0x36f)]||_0x46578c!=null&&_0x46578c[_0x2b840a(0x3b9)])return;let _0x2a4196=tc(_0x295aa6[_0x2b840a(0x282)])?_0x295aa6[_0x2b840a(0x282)]:void 0x0;if(_0x46578c!=null&&_0x46578c[_0x2b840a(0x2fe)]&&_0x295aa6['id']===_0x2b840a(0x340)&&(_0x2a4196==null?void 0x0:_0x2a4196[_0x2b840a(0x172)])===_0x3da161['id'])return;let _0x53178a=Gs(_0x295aa6['id']),_0x69b5cd=Ws(_0x2a4196==null?void 0x0:_0x2a4196['unitId'],_0x46578c)??(_0x53178a?(_0x58dd7d=this['_instanceService'][_0x2b840a(0x2a7)](_0x5c5c99[_0x2b840a(0x36b)]))==null?void 0x0:_0x58dd7d['getUnitId']():void 0x0);if(!_0x69b5cd||this['_instanceService'][_0x2b840a(0x17b)](_0x69b5cd)!==_0x5c5c99[_0x2b840a(0x36b)])return;if(_0x53178a){if(!Fr(this[_0x2b840a(0x3ad)],_0x69b5cd,_0x69b5cd,_0x53178a))throw this[_0x2b840a(0x224)]['get'](_0x35b5ff)['emitPermissionDenied'](_0x69b5cd),new _0x5ea448(_0x2b840a(0x119)+_0x1aafeb[_0x53178a]+_0x2b840a(0x27e));return;}if(Hs[_0x2b840a(0x34b)](_0x295aa6['id'])||!_0x295aa6['id']['startsWith'](_0x2b840a(0x2ef))&&!_0x295aa6['id'][_0x2b840a(0x1fb)](_0x2b840a(0x35b)))return;let _0x126d2b=this[_0x2b840a(0x470)][_0x2b840a(0x228)](_0x69b5cd,_0x5c5c99[_0x2b840a(0x36b)]),_0x23b0f7=_0x126d2b?Ks(_0x126d2b,_0x2a4196??{},_0x295aa6['id']):[];if(!_0x126d2b||!zr(this[_0x2b840a(0x3ad)],_0x69b5cd,_0x23b0f7))throw this[_0x2b840a(0x224)]['get'](_0x35b5ff)['emitPermissionDenied'](_0x69b5cd,_0x23b0f7),new _0x5ea448(_0x2b840a(0x1b7));}};Us=X([Y(0x0,_0x490adb(_0x4f0ad3)),Y(0x1,_0x5daeb6),Y(0x2,_0x41b15f),Y(0x3,_0x24efe9)],Us);function Ws(_0x147d71,_0xb57dea){const _0x51cbd6=_0x6c183;return typeof _0x147d71==_0x51cbd6(0x425)?_0x147d71:typeof(_0xb57dea==null?void 0x0:_0xb57dea[_0x51cbd6(0x393)])==_0x51cbd6(0x425)?_0xb57dea[_0x51cbd6(0x393)]:void 0x0;}function Gs(_0x1ba0fb){const _0xed273b=_0x6c183;if(_0x1ba0fb===_0xed273b(0x133)||_0x1ba0fb===_0xed273b(0x2a6))return _0x1aafeb[_0xed273b(0x1c9)];if(_0x1ba0fb[_0xed273b(0x1fb)](_0xed273b(0x3c9))||_0x1ba0fb[_0xed273b(0x1fb)](_0xed273b(0x12d)))return _0x1aafeb[_0xed273b(0x117)];}function Ks(_0x4ef018,_0x37c6f9,_0x309d6c){const _0xf18cff=_0x6c183;if(_0x309d6c===_0xf18cff(0x340)&&ec(_0x37c6f9['op']))return qs(_0x4ef018,_0x37c6f9['op']);let _0x3d4b89=new Set(),_0xbbf81b=Zs(_0x37c6f9,'table'),_0x3c4819=typeof _0x37c6f9[_0xf18cff(0x210)]==_0xf18cff(0x425)?_0x37c6f9['tableId']:_0xbbf81b[0x0];if(_0xbbf81b[_0xf18cff(0x2e0)](_0x519099=>_0x3d4b89[_0xf18cff(0x2ee)](K(_0x519099))),!_0x3c4819)return[..._0x3d4b89];let _0x54e83b=_0x4ef018[_0xf18cff(0x32f)]()[_0xf18cff(0x298)][_0x3c4819],_0x22ca4c=new Set(Zs(_0x37c6f9,'field')),_0x242ca0=new Set(Zs(_0x37c6f9,'record')),_0x224ecf=new Set(Zs(_0x37c6f9,_0xf18cff(0x37d)));return Qs(_0x54e83b,_0x37c6f9[_0xf18cff(0x2e6)],_0x242ca0,_0x22ca4c),$s(_0x37c6f9,_0x22ca4c),_0x22ca4c[_0xf18cff(0x2e0)](_0x127154=>_0x3d4b89[_0xf18cff(0x2ee)](q(_0x3c4819,_0x127154))),_0x242ca0[_0xf18cff(0x2e0)](_0x479033=>_0x3d4b89[_0xf18cff(0x2ee)](J(_0x3c4819,_0x479033))),_0x224ecf[_0xf18cff(0x2e0)](_0x3343e1=>_0x3d4b89[_0xf18cff(0x2ee)](Mr(_0x3c4819,_0x3343e1))),[..._0x3d4b89];}function qs(_0x4657e0,_0x431c84){const _0x39f5ea=_0x6c183;let _0xb42767=_0x4657e0[_0x39f5ea(0x32f)](),_0x496c47=new z()['getAffectedRanges'](_0x431c84),_0x40c676=Js(_0x431c84),_0x1dbd17=new Set();return _0x496c47[_0x39f5ea(0x2e0)](_0x443e96=>{const _0x48f4f3=_0x39f5ea;var _0x4bb237,_0x4f395a;let {tableId:_0x1cdd3d}=_0x443e96;if(!_0x1cdd3d)return;_0x1dbd17[_0x48f4f3(0x2ee)](K(_0x1cdd3d));let _0x5bb9c8=_0xb42767['tables'][_0x1cdd3d],_0x15d54b=_0x443e96[_0x48f4f3(0x347)]??(_0x443e96[_0x48f4f3(0x4b3)]==null||_0x5bb9c8==null||(_0x4bb237=_0x5bb9c8[_0x48f4f3(0x3d0)])==null?void 0x0:_0x4bb237[_0x443e96[_0x48f4f3(0x4b3)]]),_0x20db45=_0x443e96[_0x48f4f3(0x2b0)]??(_0x443e96[_0x48f4f3(0x229)]==null||_0x5bb9c8==null||(_0x4f395a=_0x5bb9c8[_0x48f4f3(0x1fe)])==null?void 0x0:_0x4f395a[_0x443e96['column']]);_0x15d54b&&_0x1dbd17[_0x48f4f3(0x2ee)](J(_0x1cdd3d,_0x15d54b)),_0x20db45&&_0x1dbd17['add'](q(_0x1cdd3d,_0x20db45)),_0x443e96[_0x48f4f3(0x288)]&&_0x1dbd17[_0x48f4f3(0x2ee)](Mr(_0x1cdd3d,_0x443e96[_0x48f4f3(0x288)])),(_0x443e96[_0x48f4f3(0x28a)]===_0x48f4f3(0x4c7)||_0x40c676[_0x48f4f3(0x34b)](_0x1cdd3d))&&_0x5bb9c8&&(Object[_0x48f4f3(0x24c)](_0x5bb9c8['fields'])[_0x48f4f3(0x2e0)](_0x445bd2=>_0x1dbd17[_0x48f4f3(0x2ee)](q(_0x1cdd3d,_0x445bd2))),Object['keys'](_0x5bb9c8[_0x48f4f3(0x258)])[_0x48f4f3(0x2e0)](_0x5c0715=>_0x1dbd17[_0x48f4f3(0x2ee)](J(_0x1cdd3d,_0x5c0715))),Object[_0x48f4f3(0x24c)](_0x5bb9c8['views'])[_0x48f4f3(0x2e0)](_0x2ec179=>_0x1dbd17[_0x48f4f3(0x2ee)](Mr(_0x1cdd3d,_0x2ec179)))),_0x443e96[_0x48f4f3(0x28a)]===_0x48f4f3(0x493)&&_0x5bb9c8&&Object['keys'](_0x5bb9c8['fields'])[_0x48f4f3(0x2e0)](_0x438ae1=>_0x1dbd17[_0x48f4f3(0x2ee)](q(_0x1cdd3d,_0x438ae1)));}),_0x496c47[_0x39f5ea(0x13c)]===0x0&&Xs(_0x431c84,_0x39f5ea(0x338))&&Object[_0x39f5ea(0x24c)](_0xb42767[_0x39f5ea(0x298)])[_0x39f5ea(0x2e0)](_0x41b768=>_0x1dbd17[_0x39f5ea(0x2ee)](K(_0x41b768))),[..._0x1dbd17];}function Js(_0x4d769c){let _0x4bd9e8=new Set(),_0x2fe7ef=_0x13d2f6=>{const _0x5a2ac9=_0x2b5a;Array[_0x5a2ac9(0x431)](_0x13d2f6)&&_0x13d2f6[_0x5a2ac9(0x2e0)]((_0xb336b2,_0x367f9b)=>{const _0x1285e4=_0x5a2ac9;_0xb336b2===_0x1285e4(0x298)&&typeof _0x13d2f6[_0x367f9b+0x1]=='string'&&Ys(_0x13d2f6[_0x367f9b+0x2])&&_0x4bd9e8['add'](_0x13d2f6[_0x367f9b+0x1]),_0x2fe7ef(_0xb336b2);});};return _0x2fe7ef(_0x4d769c),_0x4bd9e8;}function Ys(_0x2ccb2a){const _0x2517f0=_0x6c183;return!!_0x2ccb2a&&typeof _0x2ccb2a==_0x2517f0(0x3d7)&&!Array[_0x2517f0(0x431)](_0x2ccb2a)&&('i'in _0x2ccb2a||'r'in _0x2ccb2a||'p'in _0x2ccb2a||'d'in _0x2ccb2a||'es'in _0x2ccb2a||_0x2517f0(0x41c)in _0x2ccb2a||'et'in _0x2ccb2a);}function Xs(_0x29eb89,_0x58cbc9){const _0x10c03c=_0x6c183;return Array[_0x10c03c(0x431)](_0x29eb89)&&_0x29eb89[_0x10c03c(0x185)](_0x314019=>_0x314019===_0x58cbc9||Xs(_0x314019,_0x58cbc9));}function Zs(_0x4d3141,_0x4d3372){const _0x141022=_0x6c183;let _0x3951ce=new Set(),_0x54ff00=_0x4d3372+'Id',_0x2dd418=_0x4d3372+_0x141022(0x1f3),_0x1c7444=(_0x14579d,_0x169911='')=>{const _0x318da7=_0x141022;if(typeof _0x14579d==_0x318da7(0x425)){_0x169911===_0x54ff00&&_0x3951ce[_0x318da7(0x2ee)](_0x14579d);return;}if(Array[_0x318da7(0x431)](_0x14579d)){_0x169911===_0x2dd418?_0x14579d['forEach'](_0xc0e3bc=>{const _0x3d2bf1=_0x318da7;typeof _0xc0e3bc==_0x3d2bf1(0x425)&&_0x3951ce[_0x3d2bf1(0x2ee)](_0xc0e3bc);}):_0x14579d['forEach'](_0x1714cd=>_0x1c7444(_0x1714cd,_0x169911));return;}tc(_0x14579d)&&Object[_0x318da7(0x279)](_0x14579d)[_0x318da7(0x2e0)](([_0x3d18e4,_0x1057ee])=>{const _0x5c537a=_0x318da7;_0x3d18e4==='id'&&_0x169911===_0x4d3372&&typeof _0x1057ee==_0x5c537a(0x425)?_0x3951ce[_0x5c537a(0x2ee)](_0x1057ee):_0x1c7444(_0x1057ee,_0x3d18e4);});};return _0x1c7444(_0x4d3141),[..._0x3951ce];}function Qs(_0x4c3084,_0x14ea26,_0x245548,_0x2a4175){const _0x199bc7=_0x6c183;_0x4c3084&&Array[_0x199bc7(0x431)](_0x14ea26)&&_0x14ea26[_0x199bc7(0x2e0)](_0x247f84=>{const _0x5bc144=_0x199bc7;if(!tc(_0x247f84))return;let _0x31fe47=_0x247f84;if(typeof _0x31fe47[_0x5bc144(0x4b3)]==_0x5bc144(0x24b)){var _0x23cc90;let _0x3ee5a1=(_0x23cc90=_0x4c3084[_0x5bc144(0x3d0)])==null?void 0x0:_0x23cc90[_0x31fe47['row']];_0x3ee5a1&&_0x245548[_0x5bc144(0x2ee)](_0x3ee5a1);}if(typeof _0x31fe47[_0x5bc144(0x295)]=='number'){var _0x207be8;let _0x5ae4f8=(_0x207be8=_0x4c3084['colId'])==null?void 0x0:_0x207be8[_0x31fe47['col']];_0x5ae4f8&&_0x2a4175['add'](_0x5ae4f8);}});}function $s(_0x513746,_0x5e6f71,_0x31c2c7=''){const _0x473269=_0x6c183;if(_0x513746&&typeof _0x513746==_0x473269(0x3d7)){if(Array['isArray'](_0x513746)){_0x513746[_0x473269(0x2e0)](_0xd30d90=>$s(_0xd30d90,_0x5e6f71,_0x31c2c7));return;}tc(_0x513746)&&Object[_0x473269(0x279)](_0x513746)[_0x473269(0x2e0)](([_0x2609d9,_0x48a46f])=>{const _0x35a9cd=_0x473269;_0x31c2c7==='values'&&_0x5e6f71[_0x35a9cd(0x2ee)](_0x2609d9),$s(_0x48a46f,_0x5e6f71,_0x2609d9);});}}function ec(_0x2971b9){const _0x38f85a=_0x6c183;return Array[_0x38f85a(0x431)](_0x2971b9);}function tc(_0x106c1b){const _0x290e6b=_0x6c183;return typeof _0x106c1b==_0x290e6b(0x3d7)&&!!_0x106c1b&&!Array['isArray'](_0x106c1b);}const nc=_0x2e8f64(_0x6c183(0x290));let rc=class{constructor(_0x2780a8){const _0x2bc9e1=_0x6c183;this[_0x2bc9e1(0x1be)]=_0x2780a8;}[_0x6c183(0x261)](_0x38317f){const _0x1a7051=_0x6c183;return this['_univerInstanceService'][_0x1a7051(0x228)](_0x38317f,_0x5c5c99['UNIVER_BASE'])??null;}['getAllBases'](){const _0x59def9=_0x6c183;return this[_0x59def9(0x1be)]['getAllUnitsForType'](_0x5c5c99[_0x59def9(0x36b)]);}[_0x6c183(0x494)](_0x4a7325){const _0xed7968=_0x6c183;return this[_0xed7968(0x1be)][_0xed7968(0x1e8)](_0x5c5c99[_0xed7968(0x36b)],_0x4a7325);}};rc=X([Y(0x0,_0x24efe9)],rc);const ic=_0x2e8f64('base.view-registry.service');var ac=class extends _0x3b0b2d{constructor(..._0x34e201){const _0x295221=_0x6c183;super(..._0x34e201),G(this,_0x295221(0x1dd),new Map());}[_0x6c183(0x2d9)](_0xba95cc){const _0x3b619b=_0x6c183;return this[_0x3b619b(0x1dd)][_0x3b619b(0x49e)](_0xba95cc[_0x3b619b(0x20b)],_0xba95cc),_0x1827e4(()=>this[_0x3b619b(0x1dd)]['delete'](_0xba95cc['type']));}[_0x6c183(0x43e)](_0x2cc82a){const _0x584c3e=_0x6c183;let _0x55b54f=this['_plugins'][_0x584c3e(0x43e)](_0x2cc82a);if(!_0x55b54f)throw Error(_0x584c3e(0x2b9)+_0x2cc82a+_0x584c3e(0x25c));return _0x55b54f;}[_0x6c183(0x1db)](){const _0x39d232=_0x6c183;return Array[_0x39d232(0x1d5)](this[_0x39d232(0x1dd)][_0x39d232(0x227)]());}};const oc=[Q];let sc=class extends _0x5e5cdb{constructor(_0x301c9f=Ns,_0x38fdbb,_0x63e45c,_0x43b1a7,_0x124786,_0x4f5c9a){const _0x2d3a7b=_0x6c183;super(),this[_0x2d3a7b(0x16c)]=_0x301c9f,this[_0x2d3a7b(0x224)]=_0x38fdbb,this[_0x2d3a7b(0x3cc)]=_0x63e45c,this[_0x2d3a7b(0x1be)]=_0x43b1a7,this[_0x2d3a7b(0x2f0)]=_0x124786,this['_dataSyncPrimaryController']=_0x4f5c9a,G(this,'_baseSyncDisposables',new Map());let {..._0x2eb950}=_0x1bd132({},Ns,this['_config']);this[_0x2d3a7b(0x2f0)][_0x2d3a7b(0x11b)](_0x2d3a7b(0x16f),_0x2eb950),this['_univerInstanceService']['registerCtorForType'](_0x5c5c99[_0x2d3a7b(0x36b)],_0x351ad4),this[_0x2d3a7b(0x4cb)](),this[_0x2d3a7b(0x182)](),this[_0x2d3a7b(0x168)](),this[_0x2d3a7b(0x451)]();}[_0x6c183(0x234)](){const _0x47d505=_0x6c183;this[_0x47d505(0x224)][_0x47d505(0x2ee)]([Lo]),this[_0x47d505(0x135)](this[_0x47d505(0x224)][_0x47d505(0x43e)](_0x5daeb6)[_0x47d505(0x4a5)](Ro)),this[_0x47d505(0x135)](this['_injector'][_0x47d505(0x43e)](_0x5daeb6)['registerCommand'](zo)),this['disposeWithMe'](this[_0x47d505(0x224)][_0x47d505(0x43e)](_0x14b422)[_0x47d505(0x183)](_0x3cf49a[_0x47d505(0x1cc)],this[_0x47d505(0x224)][_0x47d505(0x43e)](Lo),Ro['id'],zo['id']));}[_0x6c183(0x4ab)](){const _0x19cf96=_0x6c183;_0x55f221(this[_0x19cf96(0x224)],[[rc],[qr],[Rs]]),this[_0x19cf96(0x1be)][_0x19cf96(0x3db)](_0x5c5c99[_0x19cf96(0x36b)])[_0x19cf96(0x2e0)](_0xd33f69=>this[_0x19cf96(0x1ed)](_0xd33f69[_0x19cf96(0x2ff)]())),_0x55f221(this['_injector'],[[zs],[Us]]);}[_0x6c183(0x4cb)](){const _0x50274f=_0x6c183;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x50274f(0x2e0)](_0x4f29a1=>this[_0x50274f(0x224)]['add'](_0x4f29a1));}[_0x6c183(0x182)](){const _0x14039b=_0x6c183;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc]['forEach'](_0x3cb011=>this['disposeWithMe'](this[_0x14039b(0x3cc)][_0x14039b(0x4a5)](_0x3cb011))),oc[_0x14039b(0x2e0)](_0x69d735=>{const _0x28b12b=_0x14039b;var _0xc2386b;return(_0xc2386b=this['_dataSyncPrimaryController'])==null?void 0x0:_0xc2386b[_0x28b12b(0x3bb)](_0x69d735);});}[_0x6c183(0x451)](){const _0x2419ac=_0x6c183;this[_0x2419ac(0x11e)]&&(this[_0x2419ac(0x135)](this[_0x2419ac(0x1be)][_0x2419ac(0x12b)](_0x5c5c99[_0x2419ac(0x36b)])[_0x2419ac(0x265)](({unit:_0xb47eac})=>{const _0x1ddeb1=_0x2419ac;this['_syncBaseUnit'](_0xb47eac[_0x1ddeb1(0x2ff)]());})),this['disposeWithMe'](this[_0x2419ac(0x1be)][_0x2419ac(0x1b5)](_0x5c5c99[_0x2419ac(0x36b)])[_0x2419ac(0x265)](_0x3bc5e7=>{const _0x2cf18c=_0x2419ac;var _0x10917a;(_0x10917a=this[_0x2cf18c(0x195)][_0x2cf18c(0x43e)](_0x3bc5e7['getUnitId']()))==null||_0x10917a[_0x2cf18c(0x1bb)](),this['_baseSyncDisposables'][_0x2cf18c(0x2fc)](_0x3bc5e7['getUnitId']());})));}[_0x6c183(0x1ed)](_0xb98a14){const _0x182eaf=_0x6c183;this[_0x182eaf(0x11e)]&&!this[_0x182eaf(0x195)][_0x182eaf(0x34b)](_0xb98a14)&&this[_0x182eaf(0x195)]['set'](_0xb98a14,this[_0x182eaf(0x11e)][_0x182eaf(0x31b)](_0xb98a14));}['_initRegistries'](){const _0x127091=_0x6c183;let _0x59cb14=this[_0x127091(0x224)][_0x127091(0x43e)](mr);zn()[_0x127091(0x2e0)](_0xbab98e=>_0x59cb14[_0x127091(0x2d9)](_0xbab98e));let _0x2d18d9=this[_0x127091(0x224)][_0x127091(0x43e)](ic),_0x1e0c0a=this[_0x127091(0x224)][_0x127091(0x43e)](ii);$r()['forEach'](_0x28db48=>{_0x2d18d9['register'](_0x28db48),_0x1e0c0a['registerView'](_0x28db48);});}};G(sc,'pluginName',_0x6c183(0x223)),G(sc,_0x6c183(0x3fa),js),G(sc,'version',Ms),G(sc,_0x6c183(0x20b),_0x5c5c99[_0x6c183(0x36b)]),sc=X([_0x2beafb(_0xa2587c,_0x16e087),Y(0x1,_0x490adb(_0x4f0ad3)),Y(0x2,_0x5daeb6),Y(0x3,_0x24efe9),Y(0x4,_0x2a3cb6),Y(0x5,_0x2f9a87(_0xd3ae6f))],sc);let cc=class extends _0x5e5cdb{constructor(_0xffe1f5=Ps,_0x2b6d1f,_0x2552c2,_0x557563,_0x3c9568){const _0xf81416=_0x6c183;super(),this[_0xf81416(0x16c)]=_0xffe1f5,this[_0xf81416(0x224)]=_0x2b6d1f,this[_0xf81416(0x3cc)]=_0x2552c2,this[_0xf81416(0x2f0)]=_0x557563,this[_0xf81416(0x1be)]=_0x3c9568;let {..._0x73202b}=_0x1bd132({},Ps,this[_0xf81416(0x16c)]);this[_0xf81416(0x2f0)][_0xf81416(0x11b)](_0xf81416(0x407),_0x73202b),this[_0xf81416(0x1be)][_0xf81416(0x322)](_0x5c5c99['UNIVER_BASE'],_0x351ad4),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0xf81416(0x2e0)](_0xeeb03a=>this['_injector'][_0xf81416(0x2ee)](_0xeeb03a)),oc['forEach'](_0x569241=>this[_0xf81416(0x135)](this[_0xf81416(0x3cc)]['registerCommand'](_0x569241)));}};G(cc,_0x6c183(0x297),_0x6c183(0x2bc)),G(cc,_0x6c183(0x3fa),js),G(cc,'version',Ms),G(cc,'type',_0x5c5c99[_0x6c183(0x36b)]),cc=X([_0x2beafb(_0xa2587c,_0x16e087),Y(0x1,_0x490adb(_0x4f0ad3)),Y(0x2,_0x5daeb6),Y(0x3,_0x2a3cb6),Y(0x4,_0x24efe9)],cc);function lc(_0x4199b9){const _0x5cbbe1=_0x6c183;let _0xa07181=Cc(_0x4199b9[_0x5cbbe1(0x2f3)]);if(!_0xa07181)return{'query':'','total':0x0,'matches':[]};let _0x1a9a30=[],_0x32277f=[];for(let _0x3ba49c=0x0;_0x3ba49c<_0x4199b9[_0x5cbbe1(0x31c)][_0x5cbbe1(0x13c)];_0x3ba49c++){if(!(_0x3ba49c in _0x4199b9[_0x5cbbe1(0x31c)]))continue;let _0xc448c9=_0x4199b9[_0x5cbbe1(0x4c7)][_0x5cbbe1(0x398)][_0x4199b9[_0x5cbbe1(0x31c)][_0x3ba49c]];_0xc448c9&&_0x32277f[_0x5cbbe1(0x174)]({'field':_0xc448c9,'fieldIndex':_0x3ba49c});}_0x4199b9['rows'][_0x5cbbe1(0x2e0)]((_0x465835,_0x2e008a)=>{const _0x47f05f=_0x5cbbe1;_0x32277f[_0x47f05f(0x2e0)](({field:_0x1b8bcc,fieldIndex:_0x28ac97})=>{const _0x539839=_0x47f05f;let _0x7e1c3c=uc(_0x465835[_0x539839(0x227)][_0x1b8bcc['id']],_0x1b8bcc);if(!_0x7e1c3c)return;let _0x422b9c=Sc(_0xa07181,_0x7e1c3c[_0x539839(0x1e9)]);_0x422b9c<=0x0||_0x1a9a30[_0x539839(0x174)]({'recordId':_0x465835[_0x539839(0x347)],'fieldId':_0x1b8bcc['id'],'fieldType':_0x1b8bcc[_0x539839(0x20b)],'text':_0x7e1c3c['displayText'],'score':_0x422b9c,'rowIndex':_0x2e008a,'fieldIndex':_0x28ac97});});}),_0x1a9a30[_0x5cbbe1(0x277)]((_0x24981f,_0x366b10)=>_0x366b10[_0x5cbbe1(0x212)]-_0x24981f[_0x5cbbe1(0x212)]||_0x24981f['rowIndex']-_0x366b10['rowIndex']||_0x24981f[_0x5cbbe1(0x29c)]-_0x366b10[_0x5cbbe1(0x29c)]);let _0x1e3e0f=_0x4199b9[_0x5cbbe1(0x31e)]==null?_0x1a9a30:_0x1a9a30['slice'](0x0,Math['max'](0x0,_0x4199b9['limit']));return{'query':_0xa07181,'total':_0x1a9a30[_0x5cbbe1(0x13c)],'matches':Tc(_0x1e3e0f)};}function uc(_0x22ca00,_0x1fdfcf){const _0x54535a=_0x6c183;let _0x53b92e=[];for(let _0x423fe5 of fc(_0x22ca00,_0x1fdfcf)){let _0x421570=Cc(_0x423fe5);_0x421570&&_0x53b92e[_0x54535a(0x174)](_0x421570);}return _0x53b92e[_0x54535a(0x13c)]?{'displayText':dc(_0x22ca00,_0x1fdfcf),'searchTexts':wc(_0x53b92e)}:null;}function dc(_0x526435,_0x38a66e){const _0x4324df=_0x6c183;switch(_0x38a66e['type']){case _0x3a044b[_0x4324df(0x20e)]:case _0x3a044b[_0x4324df(0x386)]:case _0x3a044b['Group']:return pc(_0x526435,_0x38a66e)[_0x4324df(0x11a)](',\x20');case _0x3a044b[_0x4324df(0x41f)]:return gc(_0x526435);case _0x3a044b['Date']:case _0x3a044b[_0x4324df(0x332)]:case _0x3a044b['UpdatedAt']:return _c(_0x526435,_0x38a66e);case _0x3a044b[_0x4324df(0x2f5)]:case _0x3a044b[_0x4324df(0x14d)]:return vc(_0x526435,_0x38a66e);case _0x3a044b['Progress']:return yc(_0x526435,_0x38a66e);case _0x3a044b[_0x4324df(0x233)]:return _0x526435?_0x4324df(0x35e):_0x4324df(0x4c2);case _0x3a044b[_0x4324df(0x1ab)]:return bc(_0x526435)[_0x4324df(0x11a)](',\x20');default:return xc(_0x526435);}}function fc(_0x3c38bb,_0x612bf8){const _0x2e6bf6=_0x6c183;switch(_0x612bf8['type']){case _0x3a044b[_0x2e6bf6(0x20e)]:case _0x3a044b[_0x2e6bf6(0x386)]:case _0x3a044b[_0x2e6bf6(0x1ad)]:{let _0x125453=pc(_0x3c38bb,_0x612bf8);if(Array[_0x2e6bf6(0x431)](_0x3c38bb)){let _0x384bbc=[..._0x125453];for(let _0x5e30ce=0x0;_0x5e30ce<_0x3c38bb[_0x2e6bf6(0x13c)];_0x5e30ce++)_0x5e30ce in _0x3c38bb&&_0x384bbc[_0x2e6bf6(0x174)](String(_0x3c38bb[_0x5e30ce]));return _0x384bbc;}return _0x3c38bb==null?_0x125453:[..._0x125453,String(_0x3c38bb)];}case _0x3a044b[_0x2e6bf6(0x41f)]:{let _0x198549=hc(_0x3c38bb);return[_0x198549['text'],_0x198549[_0x2e6bf6(0x32d)]];}case _0x3a044b['Date']:case _0x3a044b[_0x2e6bf6(0x332)]:case _0x3a044b[_0x2e6bf6(0x1fa)]:return[_c(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b[_0x2e6bf6(0x2f5)]:case _0x3a044b[_0x2e6bf6(0x14d)]:return[vc(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b[_0x2e6bf6(0x140)]:return[yc(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b['Checkbox']:return _0x3c38bb?[_0x2e6bf6(0x35e),_0x2e6bf6(0x4c1),_0x2e6bf6(0x3c6)]:['Unchecked','No',_0x2e6bf6(0x179)];case _0x3a044b[_0x2e6bf6(0x1ab)]:return bc(_0x3c38bb);default:return[xc(_0x3c38bb)];}}function pc(_0x2aed3e,_0x57a7bc){const _0xd6e1f0=_0x6c183;var _0x32b0e1;let _0x142a2e=Array[_0xd6e1f0(0x431)]((_0x32b0e1=_0x57a7bc['config'])==null?void 0x0:_0x32b0e1[_0xd6e1f0(0x2b3)])?_0x57a7bc[_0xd6e1f0(0x2ba)]['options']:[],_0x731d3b=[];if(Array[_0xd6e1f0(0x431)](_0x2aed3e)){for(let _0x12847d=0x0;_0x12847d<_0x2aed3e[_0xd6e1f0(0x13c)];_0x12847d++){if(!(_0x12847d in _0x2aed3e))continue;let _0x2e77da=String(_0x2aed3e[_0x12847d]);_0x2e77da&&_0x731d3b[_0xd6e1f0(0x174)](mc(_0x142a2e,_0x2e77da));}return _0x731d3b;}if(_0x2aed3e!=null){let _0x3e6aa0=String(_0x2aed3e);_0x3e6aa0&&_0x731d3b[_0xd6e1f0(0x174)](mc(_0x142a2e,_0x3e6aa0));}return _0x731d3b;}function mc(_0x3f9f74,_0x690df8){const _0x3d426c=_0x6c183;for(let _0x42fba5 of _0x3f9f74){if(typeof _0x42fba5==_0x3d426c(0x425)&&_0x42fba5===_0x690df8)return _0x42fba5;if(_0x42fba5&&typeof _0x42fba5=='object'){let _0x480559=_0x42fba5;if(String(_0x480559['id']??_0x480559[_0x3d426c(0x2a3)]??'')===_0x690df8||String(_0x480559[_0x3d426c(0x2a3)]??'')===_0x690df8)return String(_0x480559[_0x3d426c(0x2a3)]??_0x480559['id']??_0x690df8);}}return _0x690df8;}function hc(_0x36a54a){const _0xc0433=_0x6c183;if(_0x36a54a&&typeof _0x36a54a=='object'&&!Array['isArray'](_0x36a54a)){let _0x39b3fe=_0x36a54a;return{'text':String(_0x39b3fe[_0xc0433(0x3ae)]??_0x39b3fe[_0xc0433(0x32d)]??''),'url':String(_0x39b3fe[_0xc0433(0x32d)]??'')};}return{'text':xc(_0x36a54a),'url':xc(_0x36a54a)};}function gc(_0x4e8961){const _0x2aeebd=_0x6c183;let _0x730bd2=hc(_0x4e8961);return _0x730bd2[_0x2aeebd(0x3ae)]||_0x730bd2[_0x2aeebd(0x32d)];}function _c(_0x18bb6c,_0x2a04ab){const _0x5000c4=_0x6c183;return typeof _0x18bb6c!=_0x5000c4(0x24b)||!Number['isFinite'](_0x18bb6c)?'':mn(_0x18bb6c,_0x2a04ab[_0x5000c4(0x2ba)]);}function vc(_0x49dc02,_0x32c317){const _0x45dbf2=_0x6c183;let _0x159edb=typeof _0x49dc02==_0x45dbf2(0x24b)?_0x49dc02:Number(_0x49dc02);return Number[_0x45dbf2(0x143)](_0x159edb)?qo(_0x159edb,_0x32c317[_0x45dbf2(0x2ba)]):'';}function yc(_0x5b5c98,_0x55dfa5){const _0x516881=_0x6c183;let _0xd47556=typeof _0x5b5c98==_0x516881(0x24b)?_0x5b5c98:Number(_0x5b5c98);return Number['isFinite'](_0xd47556)?Qo(_0xd47556,_0x55dfa5['config']):'';}function bc(_0x37783e){const _0x20c0f7=_0x6c183;return Array[_0x20c0f7(0x431)](_0x37783e)?_0x37783e['flatMap'](_0x5163bb=>{const _0x4ceb8f=_0x20c0f7;if(!_0x5163bb||typeof _0x5163bb!=_0x4ceb8f(0x3d7))return[];let _0x3dca94=_0x5163bb,_0x3dc009=String(_0x3dca94[_0x4ceb8f(0x2a3)]??_0x3dca94[_0x4ceb8f(0x32d)]??'')[_0x4ceb8f(0x226)]();return _0x3dc009?[_0x3dc009]:[];}):[];}function xc(_0x566999){const _0x418739=_0x6c183;if(_0x566999==null)return'';if(typeof _0x566999==_0x418739(0x1cb))return _0x566999?'true':_0x418739(0x497);if(typeof _0x566999=='number')return String(_0x566999);if(Array['isArray'](_0x566999)){let _0x38b947=[];for(let _0xc15adb=0x0;_0xc15adb<_0x566999[_0x418739(0x13c)];_0xc15adb++){if(!(_0xc15adb in _0x566999))continue;let _0x4b84eb=xc(_0x566999[_0xc15adb]);_0x4b84eb&&_0x38b947[_0x418739(0x174)](_0x4b84eb);}return _0x38b947[_0x418739(0x11a)](',\x20');}if(typeof _0x566999==_0x418739(0x3d7)){let _0x48a65a=_0x566999;return String(_0x48a65a['title']??_0x48a65a[_0x418739(0x2a3)]??_0x48a65a[_0x418739(0x3ae)]??_0x48a65a[_0x418739(0x32d)]??'')[_0x418739(0x226)]();}return String(_0x566999);}function Sc(_0x5cc1a8,_0x8a3a00){const _0x3943d4=_0x6c183;let _0x5afc00=0x0;for(let _0x3eeea9 of _0x8a3a00)if(_0x3eeea9){if(_0x3eeea9===_0x5cc1a8){_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0x12c);continue;}if(_0x3eeea9[_0x3943d4(0x1fb)](_0x5cc1a8)){_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0xfa);continue;}_0x3eeea9[_0x3943d4(0x16a)](_0x5cc1a8)&&(_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0xc8));}return _0x5afc00;}function Cc(_0x2be9ee){const _0x1a4ee3=_0x6c183;return _0x2be9ee[_0x1a4ee3(0x226)]()[_0x1a4ee3(0x14e)](/\s+/g,'\x20')[_0x1a4ee3(0x432)]();}function wc(_0x42f0bf){const _0x7a2ec8=_0x6c183;return Array[_0x7a2ec8(0x1d5)](new Set(_0x42f0bf));}function Tc(_0x1b06d2){const _0x52fa43=_0x6c183;let _0x1512a9=[];for(let {rowIndex:_0x131d68,fieldIndex:_0x359fbc,..._0x2e80c8}of _0x1b06d2)_0x1512a9[_0x52fa43(0x174)](_0x2e80c8);return _0x1512a9;}function Ec(_0xf5c431){const _0x22c9ce=_0x6c183;return{'compress':!0x0,'kind':'base-range-values-v1','u':_0xf5c431[_0x22c9ce(0x393)],'t':_0xf5c431[_0x22c9ce(0x210)],'p':_0xf5c431[_0x22c9ce(0x2e6)]['map'](_0x180650=>[_0x180650[_0x22c9ce(0x4b3)],_0x180650[_0x22c9ce(0x295)],Ac(_0x180650[_0x22c9ce(0x350)])]),..._0xf5c431[_0x22c9ce(0x172)]===void 0x0?{}:{'g':_0xf5c431[_0x22c9ce(0x172)]}};}function Dc(_0xb3e175){const _0x33f9e9=_0x6c183;if(Lc(_0xb3e175,_0x33f9e9(0x472)),!Oc(_0xb3e175)){if(!Ic(_0xb3e175))throw Error(_0x33f9e9(0x2c9));return _0xb3e175;}return{'unitId':_0xb3e175['u'],'tableId':_0xb3e175['t'],'patches':_0xb3e175['p']['map'](([_0x32e72a,_0x4976e2,_0x37df08])=>({'row':_0x32e72a,'col':_0x4976e2,'value':jc(_0x37df08)})),..._0xb3e175['g']===void 0x0?{}:{'trigger':_0xb3e175['g']}};}function Oc(_0x45fa33){const _0x2eb33f=_0x6c183;return!Rc(_0x45fa33)||_0x45fa33['compress']!==!0x0||_0x45fa33[_0x2eb33f(0x275)]!==_0x2eb33f(0x472)?!0x1:typeof _0x45fa33['u']==_0x2eb33f(0x425)&&typeof _0x45fa33['t']==_0x2eb33f(0x425)&&(_0x45fa33['g']===void 0x0||typeof _0x45fa33['g']==_0x2eb33f(0x425))&&Array[_0x2eb33f(0x431)](_0x45fa33['p'])&&_0x45fa33['p'][_0x2eb33f(0x387)](_0x1cfa9e=>Array[_0x2eb33f(0x431)](_0x1cfa9e)&&_0x1cfa9e['length']===0x3&&Number[_0x2eb33f(0x406)](_0x1cfa9e[0x0])&&Number[_0x2eb33f(0x406)](_0x1cfa9e[0x1]));}function kc(_0x39d630){const _0x50d06b=_0x6c183;return!Rc(_0x39d630)||_0x39d630[_0x50d06b(0x13e)]!==!0x0||_0x39d630['kind']!=='base-snapshot-v1'||!Rc(_0x39d630['tables'])?!0x1:Object['values'](_0x39d630[_0x50d06b(0x298)])[_0x50d06b(0x387)](_0x24143c=>Rc(_0x24143c)&&(_0x24143c['cd']===void 0x0||Array[_0x50d06b(0x431)](_0x24143c['cd'])&&_0x24143c['cd']['every'](_0x13a4d2=>Array['isArray'](_0x13a4d2)&&_0x13a4d2['length']===0x3&&Number[_0x50d06b(0x406)](_0x13a4d2[0x0])&&Number[_0x50d06b(0x406)](_0x13a4d2[0x1])&&Fc(_0x13a4d2[0x2]))));}function Ac(_0x4ca9ab){return Pc(_0x4ca9ab)?Mc(_0x4ca9ab):_0x4ca9ab;}function jc(_0x27524d){return Fc(_0x27524d)?Nc(_0x27524d):_0x27524d;}function Mc(_0x11ba71){return{'c':0x1,..._0x11ba71['v']===void 0x0?{}:{'v':_0x11ba71['v']},..._0x11ba71['t']!==void 0x0&&_0x11ba71['t']!==null?{'t':_0x11ba71['t']}:_0x11ba71['t']===null?{'t':null}:{},..._0x11ba71['f']!==void 0x0&&_0x11ba71['f']!==null?{'f':_0x11ba71['f']}:_0x11ba71['f']===null?{'f':null}:{},..._0x11ba71['si']!==void 0x0&&_0x11ba71['si']!==null?{'si':_0x11ba71['si']}:_0x11ba71['si']===null?{'si':null}:{},..._0x11ba71['p']!==void 0x0&&_0x11ba71['p']!==null?{'p':_0x11ba71['p']}:_0x11ba71['p']===null?{'p':null}:{}};}function Nc(_0x8e94f5){return{..._0x8e94f5['v']===void 0x0?{}:{'v':_0x8e94f5['v']},..._0x8e94f5['t']===void 0x0?{}:{'t':_0x8e94f5['t']},..._0x8e94f5['f']===void 0x0?{}:{'f':_0x8e94f5['f']},..._0x8e94f5['si']===void 0x0?{}:{'si':_0x8e94f5['si']},..._0x8e94f5['p']===void 0x0?{}:{'p':_0x8e94f5['p']}};}function Pc(_0x575d0){const _0x51cd57=_0x6c183;return!!_0x575d0&&typeof _0x575d0==_0x51cd57(0x3d7)&&!Array[_0x51cd57(0x431)](_0x575d0)&&(Object[_0x51cd57(0x246)][_0x51cd57(0x48a)][_0x51cd57(0x43b)](_0x575d0,'v')||Object[_0x51cd57(0x246)]['hasOwnProperty']['call'](_0x575d0,'t')||Object[_0x51cd57(0x246)][_0x51cd57(0x48a)][_0x51cd57(0x43b)](_0x575d0,'p')||Object[_0x51cd57(0x246)]['hasOwnProperty'][_0x51cd57(0x43b)](_0x575d0,'f')||Object[_0x51cd57(0x246)]['hasOwnProperty'][_0x51cd57(0x43b)](_0x575d0,'si'));}function Fc(_0x3bbf1f){return Rc(_0x3bbf1f)&&_0x3bbf1f['c']===0x1;}function Ic(_0x4f851f){const _0x2e6aae=_0x6c183;return Rc(_0x4f851f)&&typeof _0x4f851f['unitId']==_0x2e6aae(0x425)&&typeof _0x4f851f['tableId']=='string'&&(_0x4f851f[_0x2e6aae(0x172)]===void 0x0||typeof _0x4f851f[_0x2e6aae(0x172)]==_0x2e6aae(0x425))&&Array['isArray'](_0x4f851f[_0x2e6aae(0x2e6)])&&_0x4f851f[_0x2e6aae(0x2e6)][_0x2e6aae(0x387)](_0x15843c=>Rc(_0x15843c)&&Number[_0x2e6aae(0x406)](_0x15843c[_0x2e6aae(0x4b3)])&&Number[_0x2e6aae(0x406)](_0x15843c['col'])&&_0x2e6aae(0x350)in _0x15843c);}function Lc(_0x5ef01c,_0x565746){const _0x243904=_0x6c183;if(Rc(_0x5ef01c)&&_0x5ef01c['compress']===!0x0){if(_0x5ef01c['kind']!==_0x565746)throw Error(_0x243904(0x2a8)+String(_0x5ef01c['kind'])+'\x22.');if(!(_0x565746==='base-range-values-v1'?Oc(_0x5ef01c):kc(_0x5ef01c)))throw Error(_0x243904(0x1d7)+_0x565746+'\x22.');}}function Rc(_0x3bf43e){const _0x3a1871=_0x6c183;return!!_0x3bf43e&&typeof _0x3bf43e==_0x3a1871(0x3d7)&&!Array[_0x3a1871(0x431)](_0x3bf43e);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x16f020 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|