@univerjs-pro/bases 1.0.0-rc.0 → 1.0.0
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/es/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 _0x4e7c38=_0x16bf;(function(_0x80b698,_0x5f3551){const _0x51e661=_0x16bf,_0x27418e=_0x80b698();while(!![]){try{const _0xc0df6a=-parseInt(_0x51e661(0x2f6))/0x1*(parseInt(_0x51e661(0x278))/0x2)+-parseInt(_0x51e661(0x49d))/0x3*(-parseInt(_0x51e661(0x4db))/0x4)+-parseInt(_0x51e661(0x1ef))/0x5+-parseInt(_0x51e661(0x367))/0x6+-parseInt(_0x51e661(0x3d7))/0x7*(-parseInt(_0x51e661(0x238))/0x8)+parseInt(_0x51e661(0x1cc))/0x9+parseInt(_0x51e661(0x47f))/0xa*(parseInt(_0x51e661(0x22e))/0xb);if(_0xc0df6a===_0x5f3551)break;else _0x27418e['push'](_0x27418e['shift']());}catch(_0x360353){_0x27418e['push'](_0x27418e['shift']());}}}(_0x7f2c,0x7396c));import{BASE_RECORD_ID_FIELD_ID as _0x5802d7,BaseConditionalColorOperator as _0x4baac8,BaseConditionalColorTarget as _0x451bc0,BaseConditionalDateMode as _0x140f15,BaseDataModel as _0x1a83d0,BaseFieldType as _0x377615,BaseFilterConjunction as _0x56a03e,BaseHierarchyInvalidReason as _0x3ada7a,BaseRecordLinkRole as _0x4cb80e,BaseSortDirection as _0x122af4,BaseViewType as _0xa6488a,CellValueType as _0xbba171,ColorKit as _0x20c54c,CommandType as _0x32350d,CustomCommandExecutionError as _0x1a12bd,DateSystem as _0x3bdfd0,DependentOn as _0x5a051b,Disposable as _0x3aec08,ErrorService as _0x100489,ICommandService as _0x5342d9,IConfigService as _0x3caf08,IPermissionService as _0x1b4267,IResourceManagerService as _0x3897dd,IUndoRedoService as _0x1eb28c,IUniverInstanceService as _0x26755d,Inject as _0x4562a7,Injector as _0x53b1f5,JSON1 as _0x10aaca,JSONX as _0x52b262,ObjectMatrix as _0x5e8551,ObjectPermissionRuleModel as _0x5d02dd,ObjectPermissionService as _0x3cfcfc,Optional as _0x5ab67b,PermissionStatus as _0xa1e632,Plugin as _0x331aac,Tools as _0x42dbe9,UniverInstanceType as _0x2eb623,allocateBaseFormulaTableName as _0x58263d,assertBaseTableRecordIdentity as _0x2a8300,createBaseFormulaTableNameMap as _0x4669bc,createBaseRecordIdField as _0x560c8e,createIdentifier as _0x3c907b,dateKit as _0x2b0714,excelDateTimeSerial as _0x5292e2,excelSerialToDateTime as _0x4d9b98,generateRandomId as _0x53e5f1,getBaseFormulaTableName as _0x5b0b09,isBaseRecordIdFieldName as _0x56e40f,isValidBaseRecordId as _0x5a7c96,merge as _0xad5a6c,nameCharacterCheck as _0x2aad5d,numfmt as _0x807b25,regexp as _0x41e4dc,sequenceExecute as _0x457d09,toDisposable as _0x3e2bb5,touchDependencies as _0x18d3d5}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x311f7f,IActiveDirtyManagerService as _0x41320a,RemoveSuperTableMutation as _0x45b52e,SetFormulaCalculationResultMutation as _0x792ef3,SetSuperTableMutation as _0xffecb3,SetTriggerFormulaCalculationStartMutation as _0x42598a,UniverProFormulaEnginePlugin as _0x3179a2,refactorFormulaUnitQualifier as _0x1f96dc}from'@univerjs-pro/engine-formula';import{UnitAction as _0x3ccddd,UnitObject as _0x3b454d}from'@univerjs/protocol';import{UniverLicensePlugin as _0xe1f7da}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x2caca0}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x16c3a6,FormulaResultApplicationType as _0x239f3c}from'@univerjs/engine-formula';function N(_0x2f5720){const _0x311b2c=_0x16bf;let _0x3b10e5=_0x2f5720[_0x311b2c(0x554)][_0x311b2c(0x3b9)],_0x1bffd4=_0x2f5720['config'][_0x311b2c(0x413)],_0x250bae=_0x2f5720['config'][_0x311b2c(0x29a)],_0x5b190b=_0x2f5720[_0x311b2c(0x554)][_0x311b2c(0x516)],_0x48387d=_0x2f5720[_0x311b2c(0x554)][_0x311b2c(0x4ab)];return typeof _0x3b10e5!=_0x311b2c(0x457)||!_0x3b10e5||typeof _0x1bffd4!='boolean'||_0x250bae!==void 0x0&&(typeof _0x250bae!=_0x311b2c(0x457)||!_0x250bae)||_0x48387d!==void 0x0&&_0x48387d!==_0x4cb80e['Parent']||_0x5b190b!==void 0x0&&(!Array[_0x311b2c(0x56b)](_0x5b190b)||_0x5b190b['some'](_0x455440=>typeof _0x455440!=_0x311b2c(0x457)||!_0x455440)||new Set(_0x5b190b)[_0x311b2c(0x231)]!==_0x5b190b['length'])?null:{'targetTableId':_0x3b10e5,'multiple':_0x1bffd4,..._0x250bae?{'displayFieldId':_0x250bae}:{},..._0x5b190b?{'pickerFieldIds':[..._0x5b190b]}:{},..._0x48387d?{'relationRole':_0x48387d}:{}};}function Le(_0x41ce58){const _0x405aab=_0x16bf;return typeof _0x41ce58!=_0x405aab(0x457)||_0x41ce58===''?[]:_0x41ce58['split'](',');}function Re(_0x3671b8){const _0x1bc718=_0x16bf;return Array[_0x1bc718(0x501)](new Set(_0x3671b8))[_0x1bc718(0x50e)](',');}function ze(_0x464713,_0x203fd5){const _0x139b28=_0x16bf;if(typeof _0x464713!=_0x139b28(0x457))return{'valid':!0x1,'reason':'[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.'};if(_0x464713==='')return{'valid':!0x0};let _0x4a2cef=_0x464713[_0x139b28(0x47a)](',');return!_0x203fd5&&_0x4a2cef[_0x139b28(0x2b6)]>0x1?{'valid':!0x1,'reason':_0x139b28(0x468)}:_0x4a2cef['some'](_0x5e86f5=>!_0x5a7c96(_0x5e86f5))||new Set(_0x4a2cef)[_0x139b28(0x231)]!==_0x4a2cef[_0x139b28(0x2b6)]||Re(_0x4a2cef)!==_0x464713?{'valid':!0x1,'reason':_0x139b28(0x33c)}:{'valid':!0x0};}function Be(_0x38343a,_0x46180c){const _0x30f032=_0x16bf;if(_0x46180c[_0x30f032(0x30b)]!==_0x377615[_0x30f032(0x23d)])return{'valid':!0x0};let _0x21ba58=N(_0x46180c),_0xd4553=_0x21ba58?_0x38343a[_0x30f032(0x29e)][_0x21ba58[_0x30f032(0x3b9)]]:void 0x0;if(!_0x21ba58||!_0xd4553)return{'valid':!0x1,'reason':_0x30f032(0x442)};let _0x339fa3=[..._0x21ba58[_0x30f032(0x29a)]?[_0x21ba58[_0x30f032(0x29a)]]:[],..._0x21ba58[_0x30f032(0x516)]??[]][_0x30f032(0x1c5)](_0x58f6de=>{const _0x381322=_0x30f032;let _0x6dd029=_0xd4553[_0x381322(0x531)][_0x58f6de];return!_0x6dd029||_0x6dd029[_0x381322(0x26d)]===!0x0||_0x6dd029[_0x381322(0x30b)]===_0x377615[_0x381322(0x4c5)];});return _0x339fa3?{'valid':!0x1,'reason':_0x30f032(0x432)+_0x339fa3+_0x30f032(0x3c8)}:{'valid':!0x0};}function Ve(_0x4f3136,_0x15618c,_0x539c2b,_0x1da0c7={}){const _0x1f1ac1=_0x16bf;let _0x56a8f4=N(_0x15618c);if(_0x15618c[_0x1f1ac1(0x30b)]!==_0x377615[_0x1f1ac1(0x23d)]||!_0x56a8f4)return{'valid':!0x1,'reason':_0x1f1ac1(0x355)};let _0x1b41c5=ze(_0x539c2b,_0x56a8f4[_0x1f1ac1(0x413)]);if(!_0x1b41c5[_0x1f1ac1(0x29f)]||_0x1da0c7[_0x1f1ac1(0x39f)])return _0x1b41c5;let _0x3f0d0e=_0x4f3136[_0x1f1ac1(0x29e)][_0x56a8f4['targetTableId']];if(!_0x3f0d0e)return{'valid':!0x1,'reason':_0x1f1ac1(0x442)};let _0x266b15=Le(_0x539c2b)['find'](_0x4605e7=>!_0x3f0d0e[_0x1f1ac1(0x2d1)][_0x4605e7]);return _0x266b15?{'valid':!0x1,'reason':_0x1f1ac1(0x427)+_0x266b15+_0x1f1ac1(0x4a8)}:{'valid':!0x0};}function He(_0x240f17,_0x43343c){const _0x421879=_0x16bf;return Object[_0x421879(0x4c0)](_0x240f17[_0x421879(0x29e)])[_0x421879(0x470)](_0x4b3a54=>Object[_0x421879(0x4c0)](_0x4b3a54[_0x421879(0x531)])[_0x421879(0x470)](_0x5863ed=>{const _0x3f87e7=_0x421879;let _0x248326=_0x5863ed[_0x3f87e7(0x30b)]===_0x377615['RecordLink']?N(_0x5863ed):null;return(_0x248326==null?void 0x0:_0x248326[_0x3f87e7(0x3b9)])===_0x43343c?[{'tableId':_0x4b3a54['id'],'fieldId':_0x5863ed['id']}]:[];}));}const Ue=0x5,We=_0x4e7c38(0x288);let Ge=function(_0x5f04df){const _0x455e20=_0x4e7c38;return _0x5f04df[_0x455e20(0x36e)]=_0x455e20(0x401),_0x5f04df[_0x455e20(0x428)]='missingRecord',_0x5f04df['SelfParent']='selfParent',_0x5f04df[_0x455e20(0x529)]='cycle',_0x5f04df[_0x455e20(0x3fe)]=_0x455e20(0x382),_0x5f04df['SortedView']=_0x455e20(0x53e),_0x5f04df;}({});var P=class extends Error{constructor(_0x2e8fb6,_0x2073f5=_0x4e7c38(0x363)+_0x2e8fb6){const _0x388b67=_0x4e7c38;super(_0x2073f5),this['code']=_0x2e8fb6,this[_0x388b67(0x39a)]=_0x388b67(0x46a);}};let Ke=function(_0x1195aa){const _0x157178=_0x4e7c38;return _0x1195aa['UI']='ui',_0x1195aa['Facade']=_0x157178(0x4a6),_0x1195aa[_0x157178(0x28e)]='remote',_0x1195aa[_0x157178(0x40c)]='undo',_0x1195aa[_0x157178(0x482)]='redo',_0x1195aa[_0x157178(0x41d)]=_0x157178(0x1cf),_0x1195aa;}({});function F(_0x4b7952,_0x4ffba9){const _0x3e0bef=_0x4e7c38;if(!_0x4ffba9)return!0x1;let _0x1d9b74=_0x4b7952[_0x3e0bef(0x531)][_0x4ffba9];if(!_0x1d9b74||_0x1d9b74['type']!==_0x377615[_0x3e0bef(0x23d)])return!0x1;let _0x27529a=N(_0x1d9b74);return _0x27529a?_0x27529a[_0x3e0bef(0x3b9)]===_0x4b7952['id']&&_0x27529a[_0x3e0bef(0x413)]===!0x1:!0x1;}function qe(_0x368208){const _0x5d172d=_0x4e7c38;return[..._0x368208[_0x5d172d(0x4dc)],...Object[_0x5d172d(0x3ca)](_0x368208['fields'])['filter'](_0x4be428=>!_0x368208[_0x5d172d(0x4dc)]['includes'](_0x4be428))[_0x5d172d(0x266)]()]['find'](_0xcdcf98=>{const _0x227f29=_0x5d172d;var _0x2da88f;return F(_0x368208,_0xcdcf98)?((_0x2da88f=N(_0x368208[_0x227f29(0x531)][_0xcdcf98]))==null?void 0x0:_0x2da88f[_0x227f29(0x4ab)])===_0x4cb80e[_0x227f29(0x3c7)]:!0x1;})??null;}function Je(_0x3ee00c){const _0x45b859=_0x4e7c38;let _0xa0391c=qe(_0x3ee00c);if(_0xa0391c)return _0xa0391c;let _0x3a9633=We,_0xd46ab1=0x2;for(;_0x3ee00c[_0x45b859(0x531)][_0x3a9633];)_0x3a9633=We+'_'+_0xd46ab1++;return _0x3a9633;}function Ye(_0x341f01,_0x188a18=Je(_0x341f01),_0x490ca3='Parent\x20Items'){const _0x3a6c12=_0x4e7c38;return{'id':_0x188a18,'name':_0x490ca3,'type':_0x377615[_0x3a6c12(0x23d)],'config':{'targetTableId':_0x341f01['id'],'multiple':!0x1,'displayFieldId':_0x341f01[_0x3a6c12(0x48d)],'pickerFieldIds':[_0x341f01[_0x3a6c12(0x48d)]],'relationRole':_0x4cb80e[_0x3a6c12(0x3c7)]}};}function Xe(_0x51c092){let _0x26e3bd=qe(_0x51c092);return _0x26e3bd?[_0x26e3bd]:[];}function Ze(_0x49dbdf,_0x5f549b){const _0x3ffe4d=_0x4e7c38;let _0x10dafc=[...Xe(_0x49dbdf)]['filter'](_0x449c6f=>_0x5f549b[_0x3ffe4d(0x48e)](_0x3b201a=>Object[_0x3ffe4d(0x2f7)]['hasOwnProperty']['call'](_0x3b201a[_0x3ffe4d(0x4c0)],_0x449c6f)));if(!_0x10dafc[_0x3ffe4d(0x2b6)])return[];let _0x4588c8={..._0x49dbdf[_0x3ffe4d(0x2d1)]};_0x5f549b['forEach'](_0x34cbac=>{const _0xe5ef39=_0x3ffe4d;let _0x4f2e70=_0x4588c8[_0x34cbac[_0xe5ef39(0x394)]];_0x4f2e70&&(_0x4588c8[_0x34cbac[_0xe5ef39(0x394)]]={..._0x4f2e70,'values':{..._0x4f2e70[_0xe5ef39(0x4c0)],..._0x34cbac[_0xe5ef39(0x4c0)]}});});let _0x266360={..._0x49dbdf,'records':_0x4588c8},_0x38b6cb=[];return _0x10dafc['forEach'](_0x9cf23a=>{const _0x53e7aa=_0x3ffe4d;let _0x56067c=tt(_0x49dbdf,_0x9cf23a),_0x3d224b=tt(_0x266360,_0x9cf23a);for(let [_0x560600,_0x3a4249]of _0x3d224b[_0x53e7aa(0x2fa)]){let _0x3eb1ab=_0x5f549b[_0x53e7aa(0x48e)](_0x3c7b45=>_0x3c7b45[_0x53e7aa(0x394)]===_0x560600&&Object['prototype']['hasOwnProperty'][_0x53e7aa(0x386)](_0x3c7b45[_0x53e7aa(0x4c0)],_0x9cf23a));if(_0x56067c[_0x53e7aa(0x2fa)][_0x53e7aa(0x4d5)](_0x560600)!==_0x3a4249||_0x3eb1ab)throw new P($e(_0x3a4249));}_0x5f549b[_0x53e7aa(0x397)](_0xf58bd3=>{const _0x2b015e=_0x53e7aa;if(!Object[_0x2b015e(0x2f7)][_0x2b015e(0x396)][_0x2b015e(0x386)](_0xf58bd3[_0x2b015e(0x4c0)],_0x9cf23a))return;let _0x9a0f89=_0x56067c['parentByRecordId'][_0x2b015e(0x4d5)](_0xf58bd3[_0x2b015e(0x394)])??null,_0x4847eb=_0x3d224b['parentByRecordId'][_0x2b015e(0x4d5)](_0xf58bd3[_0x2b015e(0x394)])??null;_0x9a0f89!==_0x4847eb&&_0x38b6cb['push']({'tableId':_0x49dbdf['id'],'fieldId':_0x9cf23a,'recordId':_0xf58bd3[_0x2b015e(0x394)],'oldParentRecordId':_0x9a0f89,'parentRecordId':_0x4847eb});});}),_0x38b6cb;}function Qe(_0x3e15d6,_0x3a236b){const _0x5b7d3b=_0x4e7c38;let _0x147c47=_0x3a236b[_0x5b7d3b(0x3e8)](_0x2e2b4e=>_0x2e2b4e['id']);if(new Set(_0x147c47)[_0x5b7d3b(0x231)]!==_0x147c47[_0x5b7d3b(0x2b6)]||_0x147c47[_0x5b7d3b(0x48e)](_0x13caa8=>_0x3e15d6[_0x5b7d3b(0x2d1)][_0x13caa8]))return[];let _0x17ca69=Xe(_0x3e15d6),_0x1a0098=_0x17ca69[_0x5b7d3b(0x2b6)]?null:Je(_0x3e15d6),_0x375618=[..._0x17ca69,..._0x1a0098&&_0x3a236b[_0x5b7d3b(0x48e)](_0x432f1d=>Object['prototype'][_0x5b7d3b(0x396)][_0x5b7d3b(0x386)](_0x432f1d[_0x5b7d3b(0x4c0)],_0x1a0098))?[_0x1a0098]:[]][_0x5b7d3b(0x20f)](_0x272644=>_0x3a236b[_0x5b7d3b(0x48e)](_0x304d92=>Object['prototype'][_0x5b7d3b(0x396)][_0x5b7d3b(0x386)](_0x304d92[_0x5b7d3b(0x4c0)],_0x272644)));if(!_0x375618['length'])return[];let _0x54723b={..._0x3e15d6,'records':{..._0x3e15d6[_0x5b7d3b(0x2d1)],...Object[_0x5b7d3b(0x2c2)](_0x3a236b[_0x5b7d3b(0x3e8)](_0x283198=>[_0x283198['id'],_0x283198]))},'recordOrder':[..._0x3e15d6[_0x5b7d3b(0x52d)]??[],..._0x3a236b[_0x5b7d3b(0x3e8)](_0x439875=>_0x439875['id'])]},_0x489243=[];return _0x375618[_0x5b7d3b(0x397)](_0x466a5f=>{const _0x29469f=_0x5b7d3b;let _0xe2ba3f=tt(_0x54723b,_0x466a5f);_0x3a236b[_0x29469f(0x397)](_0x229db9=>{const _0x52be30=_0x29469f;let _0x30b97d=_0xe2ba3f[_0x52be30(0x2fa)][_0x52be30(0x4d5)](_0x229db9['id']);if(_0x30b97d)throw new P($e(_0x30b97d));let _0x3847c8=_0xe2ba3f['parentByRecordId'][_0x52be30(0x4d5)](_0x229db9['id'])??null;_0x3847c8&&_0x489243[_0x52be30(0x3e2)]({'tableId':_0x3e15d6['id'],'fieldId':_0x466a5f,'recordId':_0x229db9['id'],'oldParentRecordId':null,'parentRecordId':_0x3847c8});});}),_0x489243;}function $e(_0x3ba0e0){const _0x535aae=_0x4e7c38;switch(_0x3ba0e0){case _0x3ada7a[_0x535aae(0x499)]:return _0x535aae(0x310);case _0x3ada7a[_0x535aae(0x31a)]:return _0x535aae(0x4f9);case _0x3ada7a[_0x535aae(0x529)]:return _0x535aae(0x38c);case _0x3ada7a[_0x535aae(0x3fe)]:return _0x535aae(0x382);}}function et(_0x40300e,_0x20ba78){const _0x1051ed=_0x4e7c38;let _0x467009=new Set(_0x20ba78),_0x4783b1=Xe(_0x40300e);return Object[_0x1051ed(0x4c0)](_0x40300e[_0x1051ed(0x2d1)])[_0x1051ed(0x470)](_0x547c01=>_0x467009[_0x1051ed(0x4d6)](_0x547c01['id'])?[]:Array[_0x1051ed(0x501)](_0x4783b1)[_0x1051ed(0x470)](_0x164dbe=>{const _0x217cba=_0x1051ed;let _0x313d77=Le(_0x547c01[_0x217cba(0x4c0)][_0x164dbe])[0x0]??null;return _0x313d77&&_0x467009[_0x217cba(0x4d6)](_0x313d77)?[{'tableId':_0x40300e['id'],'fieldId':_0x164dbe,'recordId':_0x547c01['id'],'oldParentRecordId':_0x313d77,'parentRecordId':null}]:[];}));}function tt(_0x1f65c7,_0x24fed2,_0x74e25a=_0x1f65c7[_0x4e7c38(0x52d)]??Object[_0x4e7c38(0x3ca)](_0x1f65c7['records'])){const _0x4a9f7c=_0x4e7c38;if((_0x1f65c7[_0x4a9f7c(0x531)][_0x24fed2]||_0x24fed2!==Je(_0x1f65c7))&&!F(_0x1f65c7,_0x24fed2))throw Error(_0x4a9f7c(0x3ea)+_0x24fed2+_0x4a9f7c(0x3aa));let _0x36c9a8=at(_0x1f65c7,_0x74e25a),_0x34901a=new Map(),_0x539a08=new Map();for(let _0x185a87 of _0x36c9a8){var _0x462931;let _0x131614=Le((_0x462931=_0x1f65c7['records'][_0x185a87])==null?void 0x0:_0x462931[_0x4a9f7c(0x4c0)][_0x24fed2])[0x0]??null;_0x131614?_0x131614===_0x185a87?(_0x34901a[_0x4a9f7c(0x205)](_0x185a87,null),_0x539a08[_0x4a9f7c(0x205)](_0x185a87,_0x3ada7a['SelfParent'])):_0x1f65c7[_0x4a9f7c(0x2d1)][_0x131614]?_0x34901a[_0x4a9f7c(0x205)](_0x185a87,_0x131614):(_0x34901a['set'](_0x185a87,null),_0x539a08['set'](_0x185a87,_0x3ada7a[_0x4a9f7c(0x499)])):_0x34901a[_0x4a9f7c(0x205)](_0x185a87,null);}ot(_0x34901a,_0x539a08,_0x36c9a8),st(_0x34901a,_0x539a08,_0x36c9a8);let _0x4c0f71=new Map(_0x36c9a8['map']((_0x1f93cd,_0x42a93)=>[_0x1f93cd,_0x42a93])),_0x34e698=new Map();for(let _0x8a66e0 of _0x36c9a8){let _0x262be7=_0x34901a[_0x4a9f7c(0x4d5)](_0x8a66e0)??null,_0x36b043=_0x34e698[_0x4a9f7c(0x4d5)](_0x262be7)??[];_0x36b043[_0x4a9f7c(0x3e2)](_0x8a66e0),_0x34e698[_0x4a9f7c(0x205)](_0x262be7,_0x36b043);}_0x34e698[_0x4a9f7c(0x397)](_0x4afe13=>_0x4afe13['sort']((_0x3ca289,_0x34e703)=>(_0x4c0f71[_0x4a9f7c(0x4d5)](_0x3ca289)??0x0)-(_0x4c0f71['get'](_0x34e703)??0x0)));let _0x333334=_0x34e698[_0x4a9f7c(0x4d5)](null)??[],_0x2e0db2=new Map(),_0xdeeea9=new Map(),_0x16e519=[],_0x47c438=(_0xd15644,_0x406b84)=>{const _0x4bb0c4=_0x4a9f7c;_0x2e0db2[_0x4bb0c4(0x205)](_0xd15644,_0x406b84),_0x16e519[_0x4bb0c4(0x3e2)](_0xd15644);let _0x561191=0x0;for(let _0x58a1ff of _0x34e698[_0x4bb0c4(0x4d5)](_0xd15644)??[])_0x561191=Math[_0x4bb0c4(0x265)](_0x561191,0x1+_0x47c438(_0x58a1ff,_0x406b84+0x1));return _0xdeeea9[_0x4bb0c4(0x205)](_0xd15644,_0x561191),_0x561191;};return _0x333334[_0x4a9f7c(0x397)](_0x34db03=>_0x47c438(_0x34db03,0x0)),{'fieldId':_0x24fed2,'parentByRecordId':_0x34901a,'childrenByParentId':_0x34e698,'depthByRecordId':_0x2e0db2,'subtreeHeightByRecordId':_0xdeeea9,'invalidReasonByRecordId':_0x539a08,'rootRecordIds':_0x333334,'orderedRecordIds':_0x16e519};}function nt(_0x5ffa1a,_0x238ea5,_0x57e29c=new Set(_0x238ea5[_0x4e7c38(0x3e8)](_0x487891=>_0x487891['recordId']))){const _0x78462f=_0x4e7c38;let _0x203d43=new Set(_0x57e29c);for(let _0x18bc94 of _0x57e29c){let _0x57fc93=_0x5ffa1a['parentByRecordId'][_0x78462f(0x4d5)](_0x18bc94)??null;for(;_0x57fc93;)_0x203d43[_0x78462f(0x290)](_0x57fc93),_0x57fc93=_0x5ffa1a[_0x78462f(0x3ed)][_0x78462f(0x4d5)](_0x57fc93)??null;}let _0x3beab8=new Map(_0x238ea5[_0x78462f(0x3e8)](_0x327123=>[_0x327123[_0x78462f(0x394)],_0x327123])),_0x3c9e03=_0x5ffa1a[_0x78462f(0x286)]['filter'](_0x3aa369=>_0x203d43[_0x78462f(0x4d6)](_0x3aa369)),_0xabb2cc=_0x3c9e03[_0x78462f(0x470)](_0x3853f7=>{const _0x58deef=_0x78462f;let _0x1cdafe=_0x3beab8[_0x58deef(0x4d5)](_0x3853f7);return _0x1cdafe?[_0x1cdafe]:[];}),_0x1a5dd3={};for(let _0x232552=0x0;_0x232552<_0x3c9e03[_0x78462f(0x2b6)];_0x232552++){let _0xb5bf18=_0x3c9e03[_0x232552];_0x1a5dd3[_0xb5bf18]={'recordId':_0xb5bf18,'parentRecordId':_0x5ffa1a[_0x78462f(0x3ed)][_0x78462f(0x4d5)](_0xb5bf18)??null,'depth':_0x5ffa1a[_0x78462f(0x375)][_0x78462f(0x4d5)](_0xb5bf18)??0x0,'directChildCount':(_0x5ffa1a[_0x78462f(0x1e4)]['get'](_0xb5bf18)??[])['length'],'subtreeHeight':_0x5ffa1a['subtreeHeightByRecordId']['get'](_0xb5bf18)??0x0,'subtreeEndIndex':_0x232552,'invalidReason':_0x5ffa1a[_0x78462f(0x2fa)][_0x78462f(0x4d5)](_0xb5bf18)};}let _0x110298=[];for(let _0xb1e0da=0x0;_0xb1e0da<_0x3c9e03['length'];_0xb1e0da++){let _0x2e6ca1=_0x3c9e03[_0xb1e0da],_0x4f3f12=_0x1a5dd3[_0x2e6ca1][_0x78462f(0x1d8)];for(;_0x110298[_0x78462f(0x2b6)]&&_0x110298[_0x110298[_0x78462f(0x2b6)]-0x1]['depth']>=_0x4f3f12;){let _0x5aacfb=_0x110298[_0x78462f(0x2b5)]();_0x1a5dd3[_0x5aacfb[_0x78462f(0x394)]][_0x78462f(0x210)]=_0xb1e0da-0x1;}_0x110298[_0x78462f(0x3e2)]({'recordId':_0x2e6ca1,'depth':_0x4f3f12});}return _0x110298[_0x78462f(0x397)](({recordId:_0x1ac309})=>{const _0x3d066e=_0x78462f;_0x1a5dd3[_0x1ac309][_0x3d066e(0x210)]=_0x3c9e03[_0x3d066e(0x2b6)]-0x1;}),{'rows':_0xabb2cc,'hierarchy':{'fieldId':_0x5ffa1a['fieldId'],'rootRecordIds':_0x5ffa1a[_0x78462f(0x23f)][_0x78462f(0x20f)](_0x3db128=>_0x203d43[_0x78462f(0x4d6)](_0x3db128)),'orderedRecordIds':_0x3c9e03,'nodes':_0x1a5dd3}};}function rt(_0x497536,_0x4158a8){const _0x3afde3=_0x4e7c38;if(!_0x497536[_0x3afde3(0x3c2)]||!(_0x4158a8!=null&&_0x4158a8[_0x3afde3(0x231)]))return _0x497536[_0x3afde3(0x2ff)];let _0x2172a5=[],_0x58533b=0x0;for(;_0x58533b<_0x497536[_0x3afde3(0x2ff)][_0x3afde3(0x2b6)];){let _0x3370b5=_0x497536[_0x3afde3(0x2ff)][_0x58533b];_0x2172a5[_0x3afde3(0x3e2)](_0x3370b5);let _0x392e83=_0x497536['hierarchy'][_0x3afde3(0x2ab)][_0x3370b5[_0x3afde3(0x394)]];_0x58533b=_0x4158a8[_0x3afde3(0x4d6)](_0x3370b5[_0x3afde3(0x394)])&&_0x392e83?_0x392e83[_0x3afde3(0x210)]+0x1:_0x58533b+0x1;}return _0x2172a5;}function it(_0x151d19,_0x13145f,_0x2bf188){const _0x47f63e=_0x4e7c38;if(!_0x2bf188)return{'valid':!0x0};if(_0x13145f===_0x2bf188)return{'valid':!0x1,'reason':_0x3ada7a[_0x47f63e(0x31a)]};let _0x12c048=_0x2bf188;for(;_0x12c048;){if(_0x12c048===_0x13145f)return{'valid':!0x1,'reason':_0x3ada7a[_0x47f63e(0x529)]};_0x12c048=_0x151d19[_0x47f63e(0x3ed)][_0x47f63e(0x4d5)](_0x12c048)??null;}return(_0x151d19[_0x47f63e(0x375)][_0x47f63e(0x4d5)](_0x2bf188)??0x0)+0x1+(_0x151d19[_0x47f63e(0x201)][_0x47f63e(0x4d5)](_0x13145f)??0x0)>=0x5?{'valid':!0x1,'reason':_0x3ada7a['MaxDepth']}:{'valid':!0x0};}function at(_0x5a2311,_0x2ed526){const _0x5a42f0=_0x4e7c38;let _0x229148=new Set(),_0x225c6a=[];for(let _0x3307b1 of _0x2ed526)_0x5a2311['records'][_0x3307b1]&&!_0x229148[_0x5a42f0(0x4d6)](_0x3307b1)&&(_0x229148[_0x5a42f0(0x290)](_0x3307b1),_0x225c6a[_0x5a42f0(0x3e2)](_0x3307b1));return Object[_0x5a42f0(0x3ca)](_0x5a2311[_0x5a42f0(0x2d1)])['sort']()[_0x5a42f0(0x397)](_0x42dee0=>{const _0x1999b3=_0x5a42f0;_0x229148[_0x1999b3(0x4d6)](_0x42dee0)||_0x225c6a['push'](_0x42dee0);}),_0x225c6a;}function ot(_0x4894b2,_0xf48ae0,_0x413222){const _0x57f857=_0x4e7c38;let _0x3e99df=new Set();for(let _0x22d588 of _0x413222){if(_0x3e99df[_0x57f857(0x4d6)](_0x22d588))continue;let _0x2cfce3=[],_0x248fe2=new Map(),_0x540eef=_0x22d588;for(;_0x540eef&&!_0x3e99df[_0x57f857(0x4d6)](_0x540eef);){let _0x4de20e=_0x248fe2['get'](_0x540eef);if(_0x4de20e!=null){let _0x122615=[..._0x2cfce3[_0x57f857(0x479)](_0x4de20e)][_0x57f857(0x266)]()[_0x57f857(0x2b5)]();_0x4894b2[_0x57f857(0x205)](_0x122615,null),_0xf48ae0[_0x57f857(0x205)](_0x122615,_0x3ada7a['Cycle']);break;}_0x248fe2[_0x57f857(0x205)](_0x540eef,_0x2cfce3[_0x57f857(0x2b6)]),_0x2cfce3['push'](_0x540eef),_0x540eef=_0x4894b2[_0x57f857(0x4d5)](_0x540eef)??null;}_0x2cfce3[_0x57f857(0x397)](_0x594e17=>_0x3e99df[_0x57f857(0x290)](_0x594e17));}}function st(_0x1267a8,_0x18c8e7,_0x1a35a6){const _0xd09afb=_0x4e7c38;let _0x58fb10=new Map(),_0x598a79=_0x19822d=>{const _0x15795f=_0x16bf;let _0x5a0f1b=_0x58fb10[_0x15795f(0x4d5)](_0x19822d);if(_0x5a0f1b!=null)return _0x5a0f1b;let _0x6ed622=_0x1267a8[_0x15795f(0x4d5)](_0x19822d)??null;if(!_0x6ed622)return _0x58fb10[_0x15795f(0x205)](_0x19822d,0x0),0x0;let _0x1e527c=_0x598a79(_0x6ed622)+0x1;return _0x1e527c>=0x5?(_0x1267a8['set'](_0x19822d,null),_0x18c8e7[_0x15795f(0x205)](_0x19822d,_0x3ada7a[_0x15795f(0x3fe)]),_0x58fb10[_0x15795f(0x205)](_0x19822d,0x0),0x0):(_0x58fb10['set'](_0x19822d,_0x1e527c),_0x1e527c);};_0x1a35a6[_0xd09afb(0x397)](_0x598a79);}let ct=0x0;function lt(){const _0x2af090=_0x4e7c38;if(globalThis['__UNIVER_BASE_PERF__']===!0x0)return!0x0;try{let _0x4bc80f=typeof location>'u'?'':location[_0x2af090(0x326)],_0x5709eb=new URLSearchParams(_0x4bc80f);if(_0x5709eb['get']('basePerf')==='1'||_0x5709eb['get']('basePerf')==='true'||_0x5709eb['get'](_0x2af090(0x474))==='1')return!0x0;}catch{}try{let _0x310832=typeof localStorage>'u'?null:localStorage[_0x2af090(0x4a5)]('univer.basePerf');return _0x310832==='1'||_0x310832===_0x2af090(0x3a0);}catch{return!0x1;}}function I(_0x4cc4c0,_0x45c3e1,_0x4c6568){const _0x78dc52=_0x4e7c38;if(!lt())return _0x45c3e1();let _0x1ae116=dt(),_0x112dbb=_0x78dc52(0x399)+ct++;ft(_0x112dbb+':start');try{return _0x45c3e1();}finally{let _0xef9e18=dt()-_0x1ae116;ft(_0x112dbb+_0x78dc52(0x456)),pt(_0x4cc4c0,_0x112dbb+_0x78dc52(0x1fd),_0x112dbb+_0x78dc52(0x456)),ut(_0x4cc4c0,_0xef9e18,_0x4c6568);}}function ut(_0x3e1feb,_0x59ff95,_0x36bb77){const _0x180c9b=_0x4e7c38;if(!lt())return;let _0x4c3b41=Math[_0x180c9b(0x544)](_0x59ff95*0x64)/0x64,_0x1795e3=_0x36bb77&&Object[_0x180c9b(0x3ca)](_0x36bb77)[_0x180c9b(0x2b6)]?'\x20'+JSON['stringify'](_0x36bb77):'';console[_0x180c9b(0x570)](_0x180c9b(0x1dd)+_0x3e1feb+':\x20'+_0x4c3b41+'ms'+_0x1795e3);}function dt(){const _0x491287=_0x4e7c38;return typeof performance<'u'&&typeof performance['now']==_0x491287(0x20b)?performance[_0x491287(0x32e)]():Date[_0x491287(0x32e)]();}function ft(_0xd00ebf){const _0x363640=_0x4e7c38;try{if(typeof performance<'u'){var _0x425299,_0x320c3a;(_0x425299=(_0x320c3a=performance)[_0x363640(0x1da)])==null||_0x425299[_0x363640(0x386)](_0x320c3a,_0xd00ebf);}}catch{}}function pt(_0x5d0286,_0x19871c,_0x1b77aa){const _0x379953=_0x4e7c38;try{if(typeof performance<'u'){var _0x23373a,_0x4fd977;(_0x23373a=(_0x4fd977=performance)[_0x379953(0x1c0)])==null||_0x23373a[_0x379953(0x386)](_0x4fd977,_0x379953(0x1dd)+_0x5d0286,_0x19871c,_0x1b77aa);}}catch{}}function L(_0x48d9e7){const _0x52fedc=_0x4e7c38;var _0x8c5ebe;return lt()?I(_0x52fedc(0x30a),()=>mt(_0x48d9e7),{'tableId':_0x48d9e7['id'],'records':Object[_0x52fedc(0x3ca)](_0x48d9e7[_0x52fedc(0x2d1)]??{})[_0x52fedc(0x2b6)],'fields':_0x48d9e7[_0x52fedc(0x4dc)]['length'],'hasRecordOrder':!!((_0x8c5ebe=_0x48d9e7[_0x52fedc(0x52d)])!=null&&_0x8c5ebe['length'])}):mt(_0x48d9e7);}function mt(_0x58a7d6){const _0x298295=_0x4e7c38;var _0x31e278;let _0x4e5ea8=_0x58a7d6[_0x298295(0x2d1)]??{},_0x1a89ff=_0x58a7d6[_0x298295(0x531)]??{},_0x417c8c=((_0x31e278=_0x58a7d6[_0x298295(0x52d)])==null?void 0x0:_0x31e278['filter'](_0x481fdd=>_0x4e5ea8[_0x481fdd]))??[],_0x4cd907=new Set(_0x417c8c),_0x315416=[];for(let _0x563d5c of Object['values'](_0x4e5ea8))_0x4cd907[_0x298295(0x4d6)](_0x563d5c['id'])||_0x315416[_0x298295(0x3e2)](_0x563d5c);let _0x34172e=_0x315416[_0x298295(0x2b6)]?[..._0x417c8c,...Rt(_0x315416)]:_0x417c8c,_0x295dc5=_0x58a7d6[_0x298295(0x4dc)][_0x298295(0x20f)](_0x499b00=>_0x1a89ff[_0x499b00]),_0x121b5f={..._0x58a7d6[_0x298295(0x565)]??{}},_0x3179c8={..._0x58a7d6['colId']??{}},_0x7c51ab={..._0x58a7d6[_0x298295(0x2b7)]??{}};_0x58a7d6['recordOrder']=_0x34172e,_0x58a7d6[_0x298295(0x2cd)]={},_0x58a7d6['rowId']={},_0x58a7d6['colIndex']={},_0x58a7d6[_0x298295(0x512)]={},_0x58a7d6[_0x298295(0x2b7)]={},_0x58a7d6[_0x298295(0x358)]={..._0x58a7d6['resources']??{}},_0x58a7d6[_0x298295(0x358)][_0x298295(0x572)]={..._0x58a7d6[_0x298295(0x358)]['attachmentSets']??{}},_0x58a7d6['resources'][_0x298295(0x3fa)]={..._0x58a7d6[_0x298295(0x358)][_0x298295(0x3fa)]??{}};let _0x14dd4a=_0x58a7d6['rowIndex'],_0x35610a=_0x58a7d6[_0x298295(0x565)],_0x5e49fa=_0x58a7d6[_0x298295(0x50b)],_0x2e55df=_0x58a7d6[_0x298295(0x512)],_0x42f80b=_0x58a7d6['cellData'];return _0x34172e[_0x298295(0x397)]((_0x24b1db,_0x1353d6)=>{_0x14dd4a[_0x24b1db]=_0x1353d6,_0x35610a[_0x1353d6]=_0x24b1db;}),_0x295dc5[_0x298295(0x397)]((_0x173e63,_0x207b73)=>{_0x5e49fa[_0x173e63]=_0x207b73,_0x2e55df[_0x207b73]=_0x173e63;}),Object['entries'](_0x7c51ab)[_0x298295(0x397)](([_0x446a4d,_0x43a18c])=>{const _0x517ab9=_0x298295;let _0x51c125=Number(_0x446a4d),_0x14ca08=_0x121b5f[_0x51c125]??_0x34172e[_0x51c125],_0x5da1ec=_0x14ca08?_0x14dd4a[_0x14ca08]:void 0x0;_0x5da1ec!=null&&(_0x42f80b[_0x5da1ec]={..._0x42f80b[_0x5da1ec]??{}},Object[_0x517ab9(0x502)](_0x43a18c??{})[_0x517ab9(0x397)](([_0x4357b0,_0x4712b0])=>{let _0x1b1a47=Number(_0x4357b0),_0x35d53a=_0x3179c8[_0x1b1a47]??_0x295dc5[_0x1b1a47],_0x2a37a2=_0x35d53a?_0x5e49fa[_0x35d53a]:void 0x0;_0x2a37a2!=null&&(_0x42f80b[_0x5da1ec][_0x2a37a2]=St(_0x4712b0));}));}),Object[_0x298295(0x4c0)](_0x4e5ea8)[_0x298295(0x397)](_0x196bb6=>{const _0x459ca0=_0x298295;let _0x431696=_0x14dd4a[_0x196bb6['id']];_0x431696!=null&&(_0x196bb6[_0x459ca0(0x4c0)]={..._0x196bb6[_0x459ca0(0x4c0)]??{},[_0x5802d7]:_0x196bb6['id']},_0x42f80b[_0x431696]={..._0x42f80b[_0x431696]??{},0x0:{'v':_0x196bb6['id'],'t':_0xbba171['STRING']}},Object[_0x459ca0(0x502)](_0x196bb6[_0x459ca0(0x4c0)]??{})[_0x459ca0(0x397)](([_0x14956e,_0x53f645])=>{const _0x20685e=_0x459ca0;let _0x5df94b=_0x1a89ff[_0x14956e];(_0x5df94b==null?void 0x0:_0x5df94b[_0x20685e(0x30b)])===_0x377615[_0x20685e(0x389)]&&Dt(_0x58a7d6,_0x196bb6['id'],_0x14956e,_0x53f645);let _0x2fca4a=_0x5e49fa[_0x14956e];if(_0x2fca4a==null)return;let _0x53438a=_0x42f80b[_0x431696][_0x2fca4a];if(_0x53438a!=null){jt(_0x53438a,_0x5df94b,_0x53f645)&&(_0x42f80b[_0x431696][_0x2fca4a]=xt(_0x53f645,_0x5df94b));return;}_0x42f80b[_0x431696][_0x2fca4a]=xt(_0x53f645,_0x5df94b);}));}),_0x58a7d6;}function _0x16bf(_0x296411,_0x4ac11d){_0x296411=_0x296411-0x1b9;const _0x7f2c03=_0x7f2c();let _0x16bf6c=_0x7f2c03[_0x296411];return _0x16bf6c;}function ht(_0x58f0eb,_0x3b425d){const _0x1e1f6c=_0x4e7c38;return _0x58f0eb['records']=Object[_0x1e1f6c(0x2c2)](Object[_0x1e1f6c(0x502)](_0x58f0eb[_0x1e1f6c(0x2d1)])[_0x1e1f6c(0x3e8)](([_0x58834d,_0x33ae4a])=>[_0x58834d,{..._0x33ae4a}])),L(_0x58f0eb),Object['entries'](_0x58f0eb[_0x1e1f6c(0x565)]??{})[_0x1e1f6c(0x397)](([_0x215d63,_0x51fe50])=>{const _0xc4ae00=_0x1e1f6c;var _0x547786;let _0x5f136f=Number(_0x215d63),_0x251cdc=_0x58f0eb[_0xc4ae00(0x2d1)][_0x51fe50];_0x251cdc&&(_0x251cdc[_0xc4ae00(0x4c0)]={..._0x251cdc[_0xc4ae00(0x4c0)]??{}},Object['entries'](((_0x547786=_0x58f0eb[_0xc4ae00(0x2b7)])==null?void 0x0:_0x547786[_0x5f136f])??{})['forEach'](([_0x34559d,_0x3f7917])=>{const _0x41ee32=_0xc4ae00;var _0x6f387f;let _0x306b7a=(_0x6f387f=_0x58f0eb[_0x41ee32(0x512)])==null?void 0x0:_0x6f387f[Number(_0x34559d)];_0x306b7a&&_0x3b425d&&!_0x3b425d(_0x51fe50,_0x306b7a)||(_0x306b7a===_0x5802d7?_0x251cdc[_0x41ee32(0x4c0)][_0x5802d7]=_0x251cdc['id']:_0x306b7a&&(_0x251cdc[_0x41ee32(0x4c0)][_0x306b7a]=Ct(_0x3f7917,_0x58f0eb[_0x41ee32(0x531)][_0x306b7a],_0x58f0eb,_0x51fe50)));}));}),_0x58f0eb;}function gt(_0x533af1,_0x237709){const _0x3bc55a=_0x4e7c38;for(let {row:_0x2c7b17,col:_0x350002}of _0x237709){var _0x574a3a,_0x53fd59,_0x22e5b4;let _0x55d7f4=(_0x574a3a=_0x533af1[_0x3bc55a(0x565)])==null?void 0x0:_0x574a3a[_0x2c7b17],_0x127ab2=(_0x53fd59=_0x533af1[_0x3bc55a(0x512)])==null?void 0x0:_0x53fd59[_0x350002],_0x9b8e79=_0x55d7f4?_0x533af1['records'][_0x55d7f4]:void 0x0;if(!_0x9b8e79||!_0x127ab2)continue;if(_0x127ab2===_0x5802d7){_0x9b8e79['values'][_0x5802d7]=_0x9b8e79['id'];continue;}let _0x2c64e9=(_0x22e5b4=_0x533af1[_0x3bc55a(0x2b7)])==null||(_0x22e5b4=_0x22e5b4[_0x2c7b17])==null?void 0x0:_0x22e5b4[_0x350002];(_0x2c64e9!=null||Object['prototype']['hasOwnProperty'][_0x3bc55a(0x386)](_0x9b8e79[_0x3bc55a(0x4c0)]??{},_0x127ab2))&&(_0x9b8e79[_0x3bc55a(0x4c0)]={..._0x9b8e79['values']??{}},_0x9b8e79['values'][_0x127ab2]=Ct(_0x2c64e9,_0x533af1['fields'][_0x127ab2],_0x533af1,_0x55d7f4));}return _0x533af1;}function _t(_0x28ebbc,_0x356353,_0x205594){const _0x1b7f17=_0x4e7c38;var _0x3ffffd,_0x417314,_0x561ddf,_0x28e91d,_0x2a947a,_0x5542a8;let _0x37a1b1=(_0x3ffffd=_0x28ebbc[_0x1b7f17(0x2cd)])==null?void 0x0:_0x3ffffd[_0x356353],_0xd99f79=(_0x417314=_0x28ebbc[_0x1b7f17(0x50b)])==null?void 0x0:_0x417314[_0x205594];if(_0x37a1b1!=null&&_0xd99f79!=null&&((_0x561ddf=_0x28ebbc[_0x1b7f17(0x565)])==null?void 0x0:_0x561ddf[_0x37a1b1])===_0x356353&&((_0x28e91d=_0x28ebbc[_0x1b7f17(0x512)])==null?void 0x0:_0x28e91d[_0xd99f79])===_0x205594)return{'row':_0x37a1b1,'col':_0xd99f79};let _0x255465=L(_0x28ebbc),_0x3d62ec=(_0x2a947a=_0x255465[_0x1b7f17(0x2cd)])==null?void 0x0:_0x2a947a[_0x356353],_0x588fa3=(_0x5542a8=_0x255465[_0x1b7f17(0x50b)])==null?void 0x0:_0x5542a8[_0x205594];return _0x3d62ec==null||_0x588fa3==null?null:{'row':_0x3d62ec,'col':_0x588fa3};}function vt(_0x4e0ae5,_0x49c8d2,_0x2bcfac){const _0x4485e0=_0x4e7c38;var _0x1cf029;let _0x40c6d1=_t(_0x4e0ae5,_0x49c8d2,_0x2bcfac);if(_0x40c6d1)return(_0x1cf029=_0x4e0ae5['cellData'])==null||(_0x1cf029=_0x1cf029[_0x40c6d1[_0x4485e0(0x505)]])==null?void 0x0:_0x1cf029[_0x40c6d1[_0x4485e0(0x444)]];}function yt(_0x4b4f0d,_0x5f3e31,_0x2a4b7b){const _0x1b8d76=_0x4e7c38;var _0x13ae5d;let _0x3aba8c=vt(_0x4b4f0d,_0x5f3e31,_0x2a4b7b),_0x2e9975=_0x4b4f0d[_0x1b8d76(0x531)][_0x2a4b7b];if((_0x2e9975==null?void 0x0:_0x2e9975[_0x1b8d76(0x30b)])===_0x377615[_0x1b8d76(0x389)]){var _0xc7ded;return Ot(_0x4b4f0d,_0x5f3e31,_0x2a4b7b)??kt((_0xc7ded=_0x4b4f0d['records'][_0x5f3e31])==null||(_0xc7ded=_0xc7ded['values'])==null?void 0x0:_0xc7ded[_0x2a4b7b]);}if(Mt(_0x2e9975)||Nt(_0x2e9975)||(_0x2e9975==null?void 0x0:_0x2e9975['type'])===_0x377615[_0x1b8d76(0x1c3)]){var _0x5b239c;let _0x4beeb9=(_0x5b239c=_0x4b4f0d[_0x1b8d76(0x2d1)][_0x5f3e31])==null||(_0x5b239c=_0x5b239c[_0x1b8d76(0x4c0)])==null?void 0x0:_0x5b239c[_0x2a4b7b];return _0x4beeb9!=null&&_0x4beeb9!==''?At(_0x4beeb9,_0x2e9975):Ct(_0x3aba8c,_0x2e9975,_0x4b4f0d,_0x5f3e31);}return _0x3aba8c&&Object[_0x1b8d76(0x2f7)][_0x1b8d76(0x396)]['call'](_0x3aba8c,'v')?_0x3aba8c['v']??null:((_0x13ae5d=_0x4b4f0d[_0x1b8d76(0x2d1)][_0x5f3e31])==null||(_0x13ae5d=_0x13ae5d[_0x1b8d76(0x4c0)])==null?void 0x0:_0x13ae5d[_0x2a4b7b])??null;}function bt(_0x32c3de,_0x547c54,_0x3f609e){const _0x558129=_0x4e7c38;var _0x1a3362;let _0x5245da=vt(_0x32c3de,_0x547c54,_0x3f609e);if(_0x5245da&&Object['prototype'][_0x558129(0x396)][_0x558129(0x386)](_0x5245da,'v'))return _0x5245da['v']??null;let _0x4fcbbc=_0x32c3de[_0x558129(0x531)][_0x3f609e];return xt(((_0x1a3362=_0x32c3de['records'][_0x547c54])==null||(_0x1a3362=_0x1a3362[_0x558129(0x4c0)])==null?void 0x0:_0x1a3362[_0x3f609e])??null,_0x4fcbbc)['v']??null;}function xt(_0x447a72,_0x3344c4){const _0x4fdfc8=_0x4e7c38;if(Tt(_0x447a72))return(_0x3344c4==null?void 0x0:_0x3344c4[_0x4fdfc8(0x30b)])===_0x377615[_0x4fdfc8(0x389)]?{..._0x447a72,'v':'','t':_0xbba171[_0x4fdfc8(0x329)]}:St(_0x447a72);if((_0x3344c4==null?void 0x0:_0x3344c4[_0x4fdfc8(0x30b)])===_0x377615[_0x4fdfc8(0x389)])return{'v':'','t':_0xbba171['STRING']};if(Nt(_0x3344c4)){let _0x419996=Pt(_0x447a72);return{'v':_0x419996,'t':Lt(_0x419996)};}if(Mt(_0x3344c4))return{'v':Ft(_0x447a72)['join'](',\x20'),'t':_0xbba171[_0x4fdfc8(0x329)]};if((_0x3344c4==null?void 0x0:_0x3344c4[_0x4fdfc8(0x30b)])===_0x377615['Link']&&_0x447a72&&typeof _0x447a72==_0x4fdfc8(0x3d3)&&!Array[_0x4fdfc8(0x56b)](_0x447a72)){let _0x58ea32=_0x447a72;return{'v':String(_0x58ea32[_0x4fdfc8(0x2bb)]??_0x58ea32[_0x4fdfc8(0x2d3)]??''),'t':_0xbba171[_0x4fdfc8(0x329)]};}return _0x447a72===null||typeof _0x447a72==_0x4fdfc8(0x457)||typeof _0x447a72==_0x4fdfc8(0x43a)||typeof _0x447a72==_0x4fdfc8(0x361)?{'v':_0x447a72,'t':Lt(_0x447a72)}:{'v':null,'t':null};}function St(_0x41e7e0){let _0x77564d=zt(_0x41e7e0['t'],_0x41e7e0['v']);if(_0x77564d===void 0x0){let {t:_0x8e3c16,..._0x547143}=_0x41e7e0;return _0x547143;}return{..._0x41e7e0,'t':_0x77564d};}function Ct(_0x190df5,_0x12796a,_0x17d7fe,_0x106233){const _0x571bf4=_0x4e7c38;if(!_0x190df5)return null;if((_0x12796a==null?void 0x0:_0x12796a[_0x571bf4(0x30b)])===_0x377615[_0x571bf4(0x389)])return _0x17d7fe&&_0x106233?Ot(_0x17d7fe,_0x106233,_0x12796a['id'])??[]:[];if(Mt(_0x12796a))return Ft(_0x190df5['v']);if((_0x12796a==null?void 0x0:_0x12796a['type'])===_0x377615[_0x571bf4(0x1c3)]&&_0x17d7fe&&_0x106233){var _0x33b7cd;let _0x7c4445=(_0x33b7cd=_0x17d7fe[_0x571bf4(0x2d1)][_0x106233])==null||(_0x33b7cd=_0x33b7cd[_0x571bf4(0x4c0)])==null?void 0x0:_0x33b7cd[_0x12796a['id']];if(_0x7c4445&&typeof _0x7c4445==_0x571bf4(0x3d3)&&!Array[_0x571bf4(0x56b)](_0x7c4445))return _0x7c4445;}return Object[_0x571bf4(0x2f7)]['hasOwnProperty'][_0x571bf4(0x386)](_0x190df5,'v')?_0x190df5['v']??null:null;}function wt(_0x9a894b,_0x2dd44a,_0x388115,_0x1616f8,_0x3594c3){const _0x5c1a2c=_0x4e7c38;return(_0x388115==null?void 0x0:_0x388115[_0x5c1a2c(0x30b)])===_0x377615['Attachment']?kt(_0x9a894b):Nt(_0x388115)?Pt(_0x9a894b):Mt(_0x388115)?Ft(_0x9a894b):(_0x388115==null?void 0x0:_0x388115[_0x5c1a2c(0x30b)])===_0x377615['Link']&&(_0x9a894b==null||_0x9a894b==='')?null:(_0x388115==null?void 0x0:_0x388115['type'])===_0x377615['Link']&&_0x9a894b&&typeof _0x9a894b=='object'&&!Array[_0x5c1a2c(0x56b)](_0x9a894b)&&!Tt(_0x9a894b)?_0x9a894b:Ct(_0x2dd44a,_0x388115,_0x1616f8,_0x3594c3);}function Tt(_0x3a66e0){const _0x16f1e5=_0x4e7c38;return!!_0x3a66e0&&typeof _0x3a66e0==_0x16f1e5(0x3d3)&&(Object[_0x16f1e5(0x2f7)]['hasOwnProperty'][_0x16f1e5(0x386)](_0x3a66e0,'v')||Object['prototype'][_0x16f1e5(0x396)][_0x16f1e5(0x386)](_0x3a66e0,'t')||Object['prototype'][_0x16f1e5(0x396)][_0x16f1e5(0x386)](_0x3a66e0,'p')||Object['prototype'][_0x16f1e5(0x396)][_0x16f1e5(0x386)](_0x3a66e0,'f')||Object['prototype']['hasOwnProperty'][_0x16f1e5(0x386)](_0x3a66e0,'si'));}function Et(_0x8af545,_0x59543f){return _0x8af545+'\x1f'+_0x59543f;}function Dt(_0xa09888,_0x4e8894,_0x5478e,_0x367606){const _0x1c6d09=_0x4e7c38;let _0x855b58=kt(_0x367606);_0xa09888[_0x1c6d09(0x358)]={..._0xa09888[_0x1c6d09(0x358)]??{}},_0xa09888[_0x1c6d09(0x358)]['attachmentSets']={..._0xa09888[_0x1c6d09(0x358)][_0x1c6d09(0x572)]??{}},_0xa09888[_0x1c6d09(0x358)][_0x1c6d09(0x3fa)]={..._0xa09888[_0x1c6d09(0x358)][_0x1c6d09(0x3fa)]??{}};let _0x541ad9=Et(_0x5478e,_0x4e8894),_0x1da706=[];for(let _0x561f71=0x0;_0x561f71<_0x855b58['length'];_0x561f71++){if(!(_0x561f71 in _0x855b58))continue;let _0x4e5875=_0x855b58[_0x561f71],_0x5b9589=String(_0x4e5875['id']??_0x541ad9+'\x1f'+_0x561f71),_0x187e2e={..._0x4e5875,'id':_0x5b9589};_0xa09888['resources'][_0x1c6d09(0x3fa)][_0x5b9589]=_0x187e2e,_0x1da706['push'](_0x5b9589);}_0xa09888[_0x1c6d09(0x358)][_0x1c6d09(0x572)][_0x541ad9]=_0x1da706;}function Ot(_0x18b4f8,_0x5e6e3e,_0x55ef77){const _0x35bd8b=_0x4e7c38;var _0xd18706;let _0x596b35=Et(_0x55ef77,_0x5e6e3e),_0x1f1b86=(_0xd18706=_0x18b4f8[_0x35bd8b(0x358)])==null||(_0xd18706=_0xd18706['attachmentSets'])==null?void 0x0:_0xd18706[_0x596b35];if(!_0x1f1b86)return null;let _0x134605=[];for(let _0x18989e=0x0;_0x18989e<_0x1f1b86[_0x35bd8b(0x2b6)];_0x18989e++){var _0x594d62;if(!(_0x18989e in _0x1f1b86))continue;let _0x598ea8=(_0x594d62=_0x18b4f8['resources'])==null||(_0x594d62=_0x594d62[_0x35bd8b(0x3fa)])==null?void 0x0:_0x594d62[_0x1f1b86[_0x18989e]];_0x598ea8&&_0x134605[_0x35bd8b(0x3e2)]({..._0x598ea8});}return _0x134605;}function kt(_0x1ae321){const _0x3c85a5=_0x4e7c38;if(_0x1ae321==null||_0x1ae321===''||Tt(_0x1ae321)&&!('id'in _0x1ae321)&&!('name'in _0x1ae321))return[];let _0x165098=Array[_0x3c85a5(0x56b)](_0x1ae321)?_0x1ae321:[_0x1ae321],_0x33447d=[];for(let _0x450c3a=0x0;_0x450c3a<_0x165098[_0x3c85a5(0x2b6)];_0x450c3a++){if(!(_0x450c3a in _0x165098))continue;let _0x231807=_0x165098[_0x450c3a],_0x108ebb=_0x231807&&typeof _0x231807==_0x3c85a5(0x3d3)?{..._0x231807}:{'id':_0x3c85a5(0x279)+_0x450c3a,'name':String(_0x231807)};Object['keys'](_0x108ebb)['length']>0x0&&_0x33447d[_0x3c85a5(0x3e2)](_0x108ebb);}return _0x33447d;}function At(_0x4cf0a2,_0x3c0d6d){const _0x3fa80f=_0x4e7c38;return(_0x3c0d6d==null?void 0x0:_0x3c0d6d[_0x3fa80f(0x30b)])===_0x377615[_0x3fa80f(0x389)]?kt(_0x4cf0a2):Nt(_0x3c0d6d)?Pt(_0x4cf0a2):Mt(_0x3c0d6d)?Ft(_0x4cf0a2):_0x4cf0a2;}function jt(_0x9ac087,_0x110f3d,_0x357d72){const _0x3b163c=_0x4e7c38;return(_0x110f3d==null?void 0x0:_0x110f3d[_0x3b163c(0x30b)])===_0x377615[_0x3b163c(0x389)]?_0x9ac087['v']!=='':Nt(_0x110f3d)?_0x9ac087['v']!==Pt(_0x357d72):Mt(_0x110f3d)?Array[_0x3b163c(0x56b)](_0x357d72)&&(_0x9ac087['v']==null||_0x9ac087['v']===''):!0x1;}function Mt(_0x37ea97){const _0x179520=_0x4e7c38;return(_0x37ea97==null?void 0x0:_0x37ea97[_0x179520(0x30b)])===_0x377615[_0x179520(0x1eb)]||(_0x37ea97==null?void 0x0:_0x37ea97[_0x179520(0x30b)])===_0x377615[_0x179520(0x1c4)]||(_0x37ea97==null?void 0x0:_0x37ea97[_0x179520(0x30b)])===_0x377615[_0x179520(0x4f8)]&&_0x37ea97[_0x179520(0x554)][_0x179520(0x305)]===!0x0;}function Nt(_0x53a130){const _0x58cace=_0x4e7c38;return(_0x53a130==null?void 0x0:_0x53a130[_0x58cace(0x30b)])===_0x377615[_0x58cace(0x4f8)]&&_0x53a130[_0x58cace(0x554)][_0x58cace(0x305)]!==!0x0;}function Pt(_0x8cc997){const _0x59c153=_0x4e7c38;let _0x4a162d=Tt(_0x8cc997)?_0x8cc997['v']:_0x8cc997,_0x10e37e=Array[_0x59c153(0x56b)](_0x4a162d)?_0x4a162d[0x0]:_0x4a162d;return _0x10e37e==null||_0x10e37e===''?null:String(_0x10e37e);}function Ft(_0xc7d1f3){const _0x4f27c5=_0x4e7c38;if(_0xc7d1f3==null||_0xc7d1f3==='')return[];let _0x2fe1fd=[];if(Array['isArray'](_0xc7d1f3)){for(let _0xf0f1f7=0x0;_0xf0f1f7<_0xc7d1f3[_0x4f27c5(0x2b6)];_0xf0f1f7++){if(!(_0xf0f1f7 in _0xc7d1f3))continue;let _0x88865f=It(_0xc7d1f3[_0xf0f1f7]);_0x88865f&&_0x2fe1fd['push'](_0x88865f);}return _0x2fe1fd;}for(let _0x5290a2 of String(_0xc7d1f3)['split'](',')){let _0x739a5a=_0x5290a2['trim']();_0x739a5a&&_0x2fe1fd[_0x4f27c5(0x3e2)](_0x739a5a);}return _0x2fe1fd;}function It(_0x59b458){const _0x2bd20a=_0x4e7c38;if(_0x59b458==null)return'';if(typeof _0x59b458=='string'||typeof _0x59b458==_0x2bd20a(0x43a)||typeof _0x59b458==_0x2bd20a(0x361))return String(_0x59b458);if(typeof _0x59b458=='object'){let _0x252f1f=_0x59b458;return String(_0x252f1f['id']??_0x252f1f[_0x2bd20a(0x39a)]??_0x252f1f[_0x2bd20a(0x2bb)]??'');}return String(_0x59b458);}function Lt(_0x3ed84a){const _0x3caeb6=_0x4e7c38;return _0x3ed84a==null?null:typeof _0x3ed84a==_0x3caeb6(0x43a)?_0xbba171[_0x3caeb6(0x256)]:typeof _0x3ed84a==_0x3caeb6(0x361)?_0xbba171[_0x3caeb6(0x2ec)]:_0xbba171[_0x3caeb6(0x329)];}function Rt(_0x40e0bd){const _0x150cb9=_0x4e7c38;_0x40e0bd['sort']((_0x22a119,_0x5318d3)=>_0x22a119[_0x150cb9(0x24c)][_0x150cb9(0x582)](_0x5318d3['orderKey']));let _0x137574=[];for(let _0x32a281 of _0x40e0bd)_0x137574[_0x150cb9(0x3e2)](_0x32a281['id']);return _0x137574;}function zt(_0x3b8b5d,_0x42227e){const _0x13c1ae=_0x4e7c38;return _0x3b8b5d===_0xbba171[_0x13c1ae(0x329)]||_0x3b8b5d===_0xbba171['NUMBER']||_0x3b8b5d===_0xbba171[_0x13c1ae(0x2ec)]||_0x3b8b5d===_0xbba171[_0x13c1ae(0x56c)]||_0x3b8b5d==null?_0x3b8b5d:Lt(_0x42227e??null);}function R(_0x25c9c2){const _0x994d9f=_0x4e7c38;let _0xb96d60=null;for(let _0x571d09 of _0x25c9c2)_0xb96d60=_0xb96d60===null?_0x571d09:_0x10aaca['type'][_0x994d9f(0x356)](_0xb96d60,_0x571d09);return _0xb96d60;}var z=class e{static['tryMaterializeSnapshot'](_0x5a6f1a,_0x220c3d){const _0x15c5bb=_0x4e7c38;let _0x503ce6=[];for(let _0x2dd505 of _0x220c3d){let _0x2ddf43=Bt(_0x2dd505);if(!_0x2ddf43||_0x2ddf43[_0x15c5bb(0x423)]!==_0x5a6f1a['id'])return null;_0x503ce6[_0x15c5bb(0x3e2)](_0x2ddf43['op']);}try{let _0x53bb16=R(_0x503ce6);return _0x53bb16===null?_0x5a6f1a:new e()['applyOp'](_0x5a6f1a,_0x53bb16);}catch{return null;}}[_0x4e7c38(0x348)](_0x230cf0,_0x43492e){const _0x3d27ed=_0x4e7c38;let _0x68e6ff=this[_0x3d27ed(0x4c7)](_0x43492e),_0x51f0be=I('BaseJson1.cloneForOp',()=>Xt(_0x230cf0,_0x43492e),{'invalidations':_0x68e6ff[_0x3d27ed(0x2b6)]}),_0x477062=I(_0x3d27ed(0x535),()=>_0x10aaca[_0x3d27ed(0x30b)]['apply'](_0x51f0be,_0x43492e),{'invalidations':_0x68e6ff[_0x3d27ed(0x2b6)]}),_0x33eb8a=Ht(_0x477062,_0x68e6ff);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x477062,_0x68e6ff),{'invalidations':_0x68e6ff['length']})?(Ut(_0x477062,_0x33eb8a),_0x477062):(I(_0x3d27ed(0x520),()=>{const _0x158316=_0x3d27ed;this[_0x158316(0x3ec)](_0x477062,_0x68e6ff)[_0x158316(0x397)](_0x4f0e05=>{const _0x159142=_0x158316;let _0x1bcb84=_0x68e6ff[_0x159142(0x20f)](_0x4e4444=>_0x4e4444[_0x159142(0x2cc)]===_0x4f0e05['id']),_0x30b0f=_0x1bcb84['length']>0x0&&_0x1bcb84['every'](_0x500a14=>_0x500a14['reason']===_0x159142(0x380)||_0x500a14['reason']===_0x159142(0x2aa)||_0x500a14['reason']===_0x159142(0x2c9)||_0x500a14[_0x159142(0x3be)]==='record')?new Set(_0x1bcb84[_0x159142(0x470)](_0x1ff55a=>{const _0x2b7ffe=_0x159142;var _0x18ac90;if(_0x1ff55a[_0x2b7ffe(0x3be)]!=='field'||!_0x1ff55a[_0x2b7ffe(0x446)])return[];let _0x4942c9=(_0x18ac90=_0x230cf0['tables'][_0x4f0e05['id']])==null?void 0x0:_0x18ac90[_0x2b7ffe(0x531)][_0x1ff55a['fieldId']],_0x593345=_0x4f0e05[_0x2b7ffe(0x531)][_0x1ff55a[_0x2b7ffe(0x446)]];return(_0x4942c9==null?void 0x0:_0x4942c9['type'])!==(_0x593345==null?void 0x0:_0x593345['type'])||(_0x4942c9==null?void 0x0:_0x4942c9[_0x2b7ffe(0x554)][_0x2b7ffe(0x305)])!==(_0x593345==null?void 0x0:_0x593345['config'][_0x2b7ffe(0x305)])?[_0x1ff55a['fieldId']]:[];})):void 0x0,_0x3907cf=new Set(_0x1bcb84[_0x159142(0x470)](_0x32a50e=>{const _0x522a7e=_0x159142;var _0x284037,_0x64eb8e;return _0x32a50e[_0x522a7e(0x3be)]!==_0x522a7e(0x2c9)||_0x32a50e[_0x522a7e(0x505)]==null||_0x32a50e['column']==null?[]:[JSON[_0x522a7e(0x2af)]([(_0x284037=_0x4f0e05[_0x522a7e(0x565)])==null?void 0x0:_0x284037[_0x32a50e['row']],(_0x64eb8e=_0x4f0e05[_0x522a7e(0x512)])==null?void 0x0:_0x64eb8e[_0x32a50e[_0x522a7e(0x50c)]]])];}));ht(_0x4f0e05,_0x30b0f?(_0x2c91dd,_0x81391e)=>_0x30b0f[_0x159142(0x4d6)](_0x81391e)||_0x3907cf[_0x159142(0x4d6)](JSON[_0x159142(0x2af)]([_0x2c91dd,_0x81391e])):void 0x0);});},{'invalidations':_0x68e6ff[_0x3d27ed(0x2b6)]}),Ut(_0x477062,_0x33eb8a),_0x477062);}[_0x4e7c38(0x27f)](_0x1256f3,_0xb9e6f){return _0x10aaca['type']['invertWithDoc'](_0xb9e6f,_0x1256f3);}['getAffectedRanges'](_0x234f22){const _0x5c4daf=_0x4e7c38;let _0x1065b8=qt(_0x234f22);return _0x1065b8[_0x5c4daf(0x2b6)]?Jt(_0x1065b8['flatMap'](_0x33b323=>this[_0x5c4daf(0x4c7)](_0x33b323))):Wt(_0x234f22);}[_0x4e7c38(0x3ec)](_0x21b724,_0x23ea49){const _0x4136fc=_0x4e7c38;let _0x466ce3=_0x23ea49[_0x4136fc(0x20f)](_0x57bc89=>_0x57bc89[_0x4136fc(0x3be)]!==_0x4136fc(0x2aa));return _0x466ce3['length']?_0x466ce3[_0x4136fc(0x48e)](_0x8f9282=>!_0x8f9282[_0x4136fc(0x2cc)])?Object['values'](_0x21b724[_0x4136fc(0x29e)]??{}):Array[_0x4136fc(0x501)](new Set(_0x466ce3[_0x4136fc(0x3e8)](_0x2dabb5=>_0x2dabb5['tableId'])))[_0x4136fc(0x470)](_0x8d7e58=>{var _0x4361bd;let _0x2c50db=(_0x4361bd=_0x21b724['tables'])==null?void 0x0:_0x4361bd[_0x8d7e58];return _0x2c50db?[_0x2c50db]:[];}):[];}};function Bt(_0x270426){const _0xf9576=_0x4e7c38;let _0x1fbf3b=_0x270426[_0xf9576(0x3eb)];return _0x270426['id']!=='base.mutation.apply-base-json1'||typeof _0x1fbf3b!='object'||!_0x1fbf3b||!(_0xf9576(0x423)in _0x1fbf3b)||typeof _0x1fbf3b[_0xf9576(0x423)]!=_0xf9576(0x457)||!('op'in _0x1fbf3b)||!Array[_0xf9576(0x56b)](_0x1fbf3b['op'])?null:{'unitId':_0x1fbf3b[_0xf9576(0x423)],'op':_0x1fbf3b['op']};}function Vt(_0x465e69,_0x4b7446){const _0x1610e7=_0x4e7c38;if(!_0x4b7446[_0x1610e7(0x2b6)]||_0x4b7446[_0x1610e7(0x48e)](_0x4cda1a=>_0x4cda1a[_0x1610e7(0x3be)]!==_0x1610e7(0x2c9)))return!0x1;let _0x622bca=new Map();for(let _0x1cb5b9 of _0x4b7446){if(!_0x1cb5b9['tableId']||_0x1cb5b9[_0x1610e7(0x505)]==null||_0x1cb5b9[_0x1610e7(0x50c)]==null)continue;let _0x200b43=_0x622bca[_0x1610e7(0x4d5)](_0x1cb5b9[_0x1610e7(0x2cc)])??[];_0x200b43[_0x1610e7(0x3e2)]({'row':_0x1cb5b9['row'],'col':_0x1cb5b9[_0x1610e7(0x50c)]}),_0x622bca[_0x1610e7(0x205)](_0x1cb5b9[_0x1610e7(0x2cc)],_0x200b43);}return _0x622bca[_0x1610e7(0x397)]((_0x47da6e,_0x332ae0)=>{var _0x2a776b;let _0x5b79a0=(_0x2a776b=_0x465e69['tables'])==null?void 0x0:_0x2a776b[_0x332ae0];_0x5b79a0&>(_0x5b79a0,_0x47da6e);}),!0x0;}function Ht(_0x3f5784,_0x5e7e7c){const _0x1c89d6=_0x4e7c38;let _0x148308=new Set();return _0x5e7e7c[_0x1c89d6(0x470)](_0x24acdf=>{const _0x51121b=_0x1c89d6;var _0x2be7c0;if(!_0x24acdf[_0x51121b(0x2cc)]||!_0x24acdf[_0x51121b(0x394)]||!_0x24acdf[_0x51121b(0x446)])return[];let _0x21520d=_0x24acdf[_0x51121b(0x2cc)]+'\x1f'+_0x24acdf[_0x51121b(0x394)]+'\x1f'+_0x24acdf['fieldId'];if(_0x148308['has'](_0x21520d))return[];_0x148308[_0x51121b(0x290)](_0x21520d);let _0x309b85=(_0x2be7c0=_0x3f5784[_0x51121b(0x29e)][_0x24acdf[_0x51121b(0x2cc)]])==null||(_0x2be7c0=_0x2be7c0[_0x51121b(0x2d1)][_0x24acdf[_0x51121b(0x394)]])==null?void 0x0:_0x2be7c0[_0x51121b(0x4c0)];return _0x309b85?[{'tableId':_0x24acdf['tableId'],'recordId':_0x24acdf[_0x51121b(0x394)],'fieldId':_0x24acdf['fieldId'],'exists':Object['prototype']['hasOwnProperty'][_0x51121b(0x386)](_0x309b85,_0x24acdf['fieldId']),'value':_0x309b85[_0x24acdf['fieldId']]}]:[];});}function Ut(_0x398fd2,_0x3c0f5f){const _0x41460f=_0x4e7c38;_0x3c0f5f[_0x41460f(0x397)](_0x40a8d7=>{const _0x21b704=_0x41460f;var _0x2130fe;let _0x248f92=(_0x2130fe=_0x398fd2['tables'][_0x40a8d7[_0x21b704(0x2cc)]])==null||(_0x2130fe=_0x2130fe[_0x21b704(0x2d1)][_0x40a8d7['recordId']])==null?void 0x0:_0x2130fe[_0x21b704(0x4c0)];_0x248f92&&(_0x40a8d7['exists']?_0x248f92[_0x40a8d7[_0x21b704(0x446)]]=_0x40a8d7['value']:delete _0x248f92[_0x40a8d7[_0x21b704(0x446)]]);});}function Wt(_0x4ea043){const _0x55b1e3=_0x4e7c38;if(!Array[_0x55b1e3(0x56b)](_0x4ea043)||_0x4ea043[_0x55b1e3(0x2b6)]<0x2)return[{'tableId':'','reason':_0x55b1e3(0x392)}];let _0x37c96d=_0x4ea043,_0xb8f78b=_0x37c96d[_0x55b1e3(0x20c)](_0x55b1e3(0x29e));return _0xb8f78b===-0x1||typeof _0x37c96d[_0xb8f78b+0x1]!='string'?_0x37c96d[0x0]===_0x55b1e3(0x38f)?[]:[{'tableId':'','reason':'unknown'}]:Gt(_0x37c96d,_0xb8f78b,String(_0x37c96d[_0xb8f78b+0x1]));}function Gt(_0x40a9aa,_0x3cfe4b,_0x1d50f1){const _0x1e909c=_0x4e7c38;let _0x35154a=_0x40a9aa[_0x3cfe4b+0x2];return _0x35154a===_0x1e909c(0x2d1)&&typeof _0x40a9aa[_0x3cfe4b+0x3]==_0x1e909c(0x457)?Kt(_0x40a9aa,_0x3cfe4b,_0x1d50f1,String(_0x40a9aa[_0x3cfe4b+0x3])):_0x35154a===_0x1e909c(0x2b7)&&_0x40a9aa[_0x3cfe4b+0x3]!=null&&_0x40a9aa[_0x3cfe4b+0x4]!=null?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x2c9),'row':Number(_0x40a9aa[_0x3cfe4b+0x3]),'column':Number(_0x40a9aa[_0x3cfe4b+0x4])}]:_0x35154a===_0x1e909c(0x531)&&typeof _0x40a9aa[_0x3cfe4b+0x3]=='string'?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x380),'fieldId':String(_0x40a9aa[_0x3cfe4b+0x3])}]:_0x35154a===_0x1e909c(0x4dc)?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x380)}]:_0x35154a===_0x1e909c(0x52d)?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x51b)}]:_0x35154a===_0x1e909c(0x460)&&typeof _0x40a9aa[_0x3cfe4b+0x3]==_0x1e909c(0x457)?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x2aa),'viewId':String(_0x40a9aa[_0x3cfe4b+0x3])}]:_0x35154a===_0x1e909c(0x43e)?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x2aa)}]:_0x35154a===_0x1e909c(0x358)?[{'tableId':_0x1d50f1,'reason':_0x1e909c(0x2c9)}]:[{'tableId':_0x1d50f1,'reason':_0x35154a===void 0x0?_0x1e909c(0x438):_0x1e909c(0x392)}];}function Kt(_0x1ac1ef,_0x51add4,_0x371e02,_0xb5b733){const _0x35a7c4=_0x4e7c38;return _0x1ac1ef[_0x51add4+0x4]===_0x35a7c4(0x4c0)&&typeof _0x1ac1ef[_0x51add4+0x5]=='string'?[{'tableId':_0x371e02,'reason':'cell','recordId':_0xb5b733,'fieldId':String(_0x1ac1ef[_0x51add4+0x5])}]:_0x1ac1ef[_0x51add4+0x4]===_0x35a7c4(0x3d8)||_0x1ac1ef[_0x51add4+0x4]===_0x35a7c4(0x4af)?[]:[{'tableId':_0x371e02,'reason':_0x35a7c4(0x51b),'recordId':_0xb5b733}];}function qt(_0x3081b4){const _0x2e000a=_0x4e7c38;if(!Array['isArray'](_0x3081b4))return[];let _0x272109=_0x3081b4[_0x2e000a(0x20f)](Array[_0x2e000a(0x56b)]);if(_0x272109['length']>0x1&&_0x272109[_0x2e000a(0x2b6)]===_0x3081b4[_0x2e000a(0x2b6)])return _0x272109;let _0x1be598=_0x3081b4['findIndex'](Array['isArray']);if(_0x1be598>0x0&&_0x3081b4[_0x2e000a(0x479)](_0x1be598)[_0x2e000a(0x1f6)](Array[_0x2e000a(0x56b)])){let _0x170d37=_0x3081b4[_0x2e000a(0x479)](0x0,_0x1be598);return _0x3081b4['slice'](_0x1be598)[_0x2e000a(0x3e8)](_0x4f3b1c=>[..._0x170d37,..._0x4f3b1c]);}let _0x39d594=_0x3081b4[_0x2e000a(0x20c)](_0x2e000a(0x29e));if(_0x39d594===-0x1||typeof _0x3081b4[_0x39d594+0x1]!=_0x2e000a(0x457))return[];let _0xf14811=String(_0x3081b4[_0x39d594+0x1]),_0x40e154=_0x3081b4[_0x2e000a(0x479)](_0x39d594+0x2)[_0x2e000a(0x20f)](Array[_0x2e000a(0x56b)]);return _0x40e154['length']<=0x1?[]:_0x40e154[_0x2e000a(0x3e8)](_0x25584a=>[_0x2e000a(0x29e),_0xf14811,..._0x25584a]);}function Jt(_0x27ce28){let _0x22401f=new Set();return _0x27ce28['filter'](_0x3fea15=>{const _0x35994e=_0x16bf;let _0x1cba81=JSON[_0x35994e(0x2af)](_0x3fea15);return!_0x22401f[_0x35994e(0x4d6)](_0x1cba81)&&(_0x22401f[_0x35994e(0x290)](_0x1cba81),!0x0);});}function Yt(_0x4d47fc){return _0x42dbe9['deepClone'](_0x4d47fc);}function Xt(_0x4427d0,_0x1052a3){const _0x443d65=_0x4e7c38;let _0xadc6c1=Zt(_0x1052a3);if(!_0xadc6c1[_0x443d65(0x2b6)])return Yt(_0x4427d0);let _0x593828=an(_0x4427d0),_0x563fa4=new Set();for(let _0x21b825 of _0xadc6c1)en(_0x593828,_0x21b825,_0x563fa4);return _0x593828;}function Zt(_0x3d2295){let _0x562dd6=[];return Qt(_0x3d2295,[],_0x562dd6),_0x562dd6;}function Qt(_0x1ed50a,_0x285fd0,_0x4a946b){const _0x47e7de=_0x4e7c38;if(!Array[_0x47e7de(0x56b)](_0x1ed50a))return;let _0x1a544b=[];for(let _0x21a0c9 of _0x1ed50a){if(Array['isArray'](_0x21a0c9)){Qt(_0x21a0c9,[..._0x285fd0,..._0x1a544b],_0x4a946b);continue;}if($t(_0x21a0c9)){_0x4a946b[_0x47e7de(0x3e2)]([..._0x285fd0,..._0x1a544b]);continue;}(typeof _0x21a0c9==_0x47e7de(0x457)||typeof _0x21a0c9=='number')&&_0x1a544b[_0x47e7de(0x3e2)](_0x21a0c9);}}function $t(_0x517b59){const _0x2df293=_0x4e7c38;if(!_0x517b59||typeof _0x517b59!=_0x2df293(0x3d3)||Array[_0x2df293(0x56b)](_0x517b59))return!0x1;let _0x1798ad=_0x517b59;return'i'in _0x1798ad||'r'in _0x1798ad||'p'in _0x1798ad||'d'in _0x1798ad||'es'in _0x1798ad||_0x2df293(0x3f4)in _0x1798ad||'et'in _0x1798ad;}function en(_0x4e8b1e,_0x3a9fe9,_0x2f489d){const _0x12b0dd=_0x4e7c38;let _0x5a8f09=_0x4e8b1e,_0xfb3db1=[];for(let _0x353a3f=0x0;_0x353a3f<_0x3a9fe9[_0x12b0dd(0x2b6)]-0x1;_0x353a3f++){let _0x101615=_0x3a9fe9[_0x353a3f];_0xfb3db1[_0x12b0dd(0x3e2)](_0x101615);let _0x432ea3=tn(_0x5a8f09,_0x101615);if(!rn(_0x432ea3))return;let _0x2653ec=JSON[_0x12b0dd(0x2af)](_0xfb3db1);_0x2f489d['has'](_0x2653ec)||(nn(_0x5a8f09,_0x101615,an(_0x432ea3)),_0x2f489d['add'](_0x2653ec));let _0x17b22b=tn(_0x5a8f09,_0x101615);if(!rn(_0x17b22b))return;_0x5a8f09=_0x17b22b;}}function tn(_0x14e517,_0x5544d0){const _0x5e7cd3=_0x4e7c38;return Array[_0x5e7cd3(0x56b)](_0x14e517)?typeof _0x5544d0==_0x5e7cd3(0x43a)?_0x14e517[_0x5544d0]:void 0x0:Reflect[_0x5e7cd3(0x4d5)](_0x14e517,_0x5544d0);}function nn(_0x54f0bc,_0x1b86d4,_0xfea059){const _0x5a9a31=_0x4e7c38;if(Array[_0x5a9a31(0x56b)](_0x54f0bc)){typeof _0x1b86d4==_0x5a9a31(0x43a)&&(_0x54f0bc[_0x1b86d4]=_0xfea059);return;}Reflect[_0x5a9a31(0x205)](_0x54f0bc,_0x1b86d4,_0xfea059);}function rn(_0x4bc75a){return!!_0x4bc75a&&typeof _0x4bc75a=='object';}function an(_0x1eceb2){const _0x1d354c=_0x4e7c38;return Array['isArray'](_0x1eceb2)?_0x1eceb2[_0x1d354c(0x479)]():{..._0x1eceb2};}const on=_0x4e7c38(0x4ff),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x4e7c38(0x26e),'yyyy-mm-dd':_0x4e7c38(0x24a),'mm-dd':_0x4e7c38(0x2d6),'mm/dd/yyyy':'MM/DD/YYYY','dd/mm/yyyy':_0x4e7c38(0x2b8),'mmm\x20d,\x20yyyy':_0x4e7c38(0x53b)};function B(_0x73ec82,_0x2bacab=_0x3bdfd0[_0x4e7c38(0x1bb)]){let _0xda583a=_0x2b0714(_0x73ec82)['valueOf']();return _0x5292e2(new Date(_0xda583a),_0x2bacab);}function ln(_0x102ddc,_0x4362c5=_0x3bdfd0['Date1900']){const _0x3ccf9b=_0x4e7c38;return _0x4d9b98(_0x102ddc,_0x4362c5)[_0x3ccf9b(0x32b)]();}function un(_0x40ada7,_0x921577=_0x3bdfd0[_0x4e7c38(0x1bb)]){const _0x43608b=_0x4e7c38;if(_0x40ada7==null||_0x40ada7==='')return null;if(_0x40ada7 instanceof Date)return B(_0x40ada7,_0x921577);if(typeof _0x40ada7=='number')return Number[_0x43608b(0x338)](_0x40ada7)?_0x40ada7>0xf4240?B(_0x40ada7,_0x921577):_0x40ada7:null;let _0x4d1efb=Date[_0x43608b(0x220)](String(_0x40ada7));return Number['isNaN'](_0x4d1efb)?null:B(_0x4d1efb,_0x921577);}function dn(_0x152512,_0x3c4bab=_0x3bdfd0[_0x4e7c38(0x1bb)]){let _0x20d751=un(_0x152512,_0x3c4bab);return _0x20d751==null?null:ln(_0x20d751,_0x3c4bab);}function fn(_0x5aea7={}){const _0x150bda=_0x4e7c38;let _0x2d6406=String(_0x5aea7['pattern']??_0x5aea7[_0x150bda(0x455)]??_0x5aea7[_0x150bda(0x317)]??on)['trim']()||on,_0x44097d=sn['test'](_0x2d6406);return{'pattern':_0x2d6406[_0x150bda(0x212)](sn,'')||on,'includeTime':typeof _0x5aea7[_0x150bda(0x4a1)]==_0x150bda(0x361)?_0x5aea7[_0x150bda(0x4a1)]:_0x44097d,'hourCycle':_0x5aea7[_0x150bda(0x465)]===_0x150bda(0x25e)?_0x150bda(0x25e):_0x150bda(0x4a2)};}function pn(_0x14e60f={}){let {format:_0x3832af,dateFormat:_0x31e043,..._0x23ced7}=_0x14e60f;return{..._0x23ced7,...fn(_0x14e60f)};}function mn(_0x774880,_0x189cca={}){const _0x38eaf7=_0x4e7c38;let _0x5c895a=dn(_0x774880);if(_0x5c895a==null||!Number['isFinite'](_0x5c895a))return'';let _0x40cf20=fn(_0x189cca);return _0x2b0714(_0x5c895a)[_0x38eaf7(0x455)](hn(_0x40cf20));}function hn(_0x9dfcca){const _0x2be21c=_0x4e7c38;let {pattern:_0x5e2bd8,includeTime:_0x21ea82,hourCycle:_0x61cda7}=_0x9dfcca,_0x3bd2c2=cn[_0x5e2bd8]??cn[on];return _0x21ea82?_0x3bd2c2+'\x20'+(_0x61cda7===_0x2be21c(0x25e)?_0x2be21c(0x44f):_0x2be21c(0x35f)):_0x3bd2c2;}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([_0x377615[_0x4e7c38(0x4c5)]]),V=0x5265c00;function vn(_0x5cca0e){const _0x3335f5=_0x4e7c38;switch(_0x5cca0e){case _0x377615[_0x3335f5(0x242)]:case _0x377615['Currency']:case _0x377615['Progress']:case _0x377615[_0x3335f5(0x33a)]:return[_0x4baac8['IS'],_0x4baac8[_0x3335f5(0x2a9)],_0x4baac8[_0x3335f5(0x481)],_0x4baac8[_0x3335f5(0x4f6)],_0x4baac8['IS_EMPTY'],_0x4baac8[_0x3335f5(0x2c4)]];case _0x377615[_0x3335f5(0x55e)]:case _0x377615[_0x3335f5(0x3d5)]:case _0x377615[_0x3335f5(0x4ec)]:return[_0x4baac8['IS'],_0x4baac8[_0x3335f5(0x2a9)],_0x4baac8[_0x3335f5(0x483)],_0x4baac8[_0x3335f5(0x2e4)],_0x4baac8[_0x3335f5(0x2e0)],_0x4baac8[_0x3335f5(0x2c4)]];case _0x377615['Checkbox']:return[_0x4baac8['IS'],_0x4baac8[_0x3335f5(0x2a9)]];default:return[_0x4baac8['IS'],_0x4baac8['IS_NOT'],_0x4baac8[_0x3335f5(0x273)],_0x4baac8[_0x3335f5(0x46b)],_0x4baac8[_0x3335f5(0x2e0)],_0x4baac8[_0x3335f5(0x2c4)]];}}function yn(_0x2e854e){const _0x17a052=_0x4e7c38;return _0x2e854e===_0x377615[_0x17a052(0x55e)]||_0x2e854e===_0x377615['CreatedAt']||_0x2e854e===_0x377615[_0x17a052(0x4ec)];}function bn(_0x15d54b,_0x4745f){const _0x5df53e=_0x4e7c38;return _0x15d54b==null&&_0x4745f==null?0x0:_0x15d54b==null?-0x1:_0x4745f==null?0x1:typeof _0x15d54b==_0x5df53e(0x43a)&&typeof _0x4745f==_0x5df53e(0x43a)?_0x15d54b-_0x4745f:String(_0x15d54b)['localeCompare'](String(_0x4745f));}function xn(_0x3fb130,_0x43c42f,_0x205db3,_0x1d7536,_0x332e91={}){const _0x2d3437=_0x4e7c38;if(_0x43c42f===_0x2d3437(0x4d3))return Sn(_0x3fb130);if(_0x43c42f==='isNotEmpty')return!Sn(_0x3fb130);switch(_0x1d7536[_0x2d3437(0x30b)]){case _0x377615[_0x2d3437(0x242)]:case _0x377615[_0x2d3437(0x40e)]:case _0x377615[_0x2d3437(0x3a3)]:case _0x377615['Rating']:return Cn(_0x3fb130,_0x43c42f,_0x205db3);case _0x377615[_0x2d3437(0x55e)]:case _0x377615[_0x2d3437(0x3d5)]:case _0x377615[_0x2d3437(0x4ec)]:return Tn(_0x3fb130,_0x43c42f,_0x205db3,_0x332e91);case _0x377615[_0x2d3437(0x1e2)]:return jn(_0x3fb130,_0x43c42f,_0x205db3);case _0x377615[_0x2d3437(0x38d)]:case _0x377615[_0x2d3437(0x1eb)]:case _0x377615['Person']:case _0x377615[_0x2d3437(0x1c4)]:return Nn(_0x3fb130,_0x43c42f,_0x205db3,_0x1d7536);default:return Pn(_0x3fb130,_0x43c42f,_0x205db3);}}function Sn(_0x41b0a){const _0x4418ff=_0x4e7c38;return _0x41b0a==null?!0x0:Array[_0x4418ff(0x56b)](_0x41b0a)?_0x41b0a[_0x4418ff(0x2b6)]===0x0:typeof _0x41b0a==_0x4418ff(0x457)&&_0x41b0a['trim']()==='';}function Cn(_0x5981a4,_0x12ec88,_0x550ad){const _0x31fa7f=_0x4e7c38;let _0x5a5c73=wn(_0x5981a4),_0x28dd22=wn(_0x550ad);if(_0x5a5c73==null||_0x28dd22==null)return!0x1;switch(_0x12ec88){case'is':return _0x5a5c73===_0x28dd22;case _0x31fa7f(0x4a3):return _0x5a5c73!==_0x28dd22;case'greaterThan':return _0x5a5c73>_0x28dd22;case'greaterThanOrEqual':return _0x5a5c73>=_0x28dd22;case _0x31fa7f(0x2ea):return _0x5a5c73<_0x28dd22;case _0x31fa7f(0x313):return _0x5a5c73<=_0x28dd22;default:return!0x1;}}function wn(_0x3cafe5){if(_0x3cafe5==null||_0x3cafe5==='')return null;let _0x4b296e=Number(_0x3cafe5);return Number['isFinite'](_0x4b296e)?_0x4b296e:null;}function Tn(_0x314524,_0x5aff24,_0x56a206,_0x5001a9){const _0xf674fb=_0x4e7c38;let _0x347707=Dn(_0x314524);if(_0x347707==null)return!0x1;let _0x4788a5=En(_0x5001a9['dateMode']??_0xf674fb(0x517),_0x56a206,_0x5001a9[_0xf674fb(0x32e)]);if(!_0x4788a5)return!0x1;switch(_0x5aff24){case'is':return _0x347707>=_0x4788a5[_0xf674fb(0x2b1)]&&_0x347707<=_0x4788a5[_0xf674fb(0x41a)];case'isNot':return _0x347707<_0x4788a5['start']||_0x347707>_0x4788a5[_0xf674fb(0x41a)];case _0xf674fb(0x3b6):return _0x347707<_0x4788a5[_0xf674fb(0x2b1)];case _0xf674fb(0x425):return _0x347707>_0x4788a5[_0xf674fb(0x41a)];default:return!0x1;}}function En(_0x993f91,_0x580d1b,_0x3c62c6=Date[_0x4e7c38(0x32e)]()){const _0x1d1386=_0x4e7c38;let _0x1ce988=On(_0x3c62c6);switch(_0x993f91){case'exact':{let _0x46c0b6=Dn(_0x580d1b);return _0x46c0b6==null?null:{'start':_0x46c0b6,'end':_0x46c0b6+V-0x1};}case _0x1d1386(0x258):return{'start':_0x1ce988,'end':_0x1ce988+V-0x1};case _0x1d1386(0x4bd):return{'start':_0x1ce988+V,'end':_0x1ce988+V*0x2-0x1};case'yesterday':return{'start':_0x1ce988-V,'end':_0x1ce988-0x1};case _0x1d1386(0x3d1):return kn(_0x1ce988,0x0);case _0x1d1386(0x2ae):return kn(_0x1ce988,-0x1);case _0x1d1386(0x2d8):return An(_0x1ce988,0x0);case'lastMonth':return An(_0x1ce988,-0x1);case _0x1d1386(0x35e):return{'start':_0x1ce988-V*0x6,'end':_0x1ce988+V-0x1};case'next7':return{'start':_0x1ce988,'end':_0x1ce988+V*0x7-0x1};case _0x1d1386(0x559):return{'start':_0x1ce988-V*0x1d,'end':_0x1ce988+V-0x1};case _0x1d1386(0x4df):return{'start':_0x1ce988,'end':_0x1ce988+V*0x1e-0x1};}}function Dn(_0x3811b8){let _0x748cc8=un(_0x3811b8);return _0x748cc8==null?null:On(ln(_0x748cc8));}function On(_0x257041){const _0x28182c=_0x4e7c38;let _0xec903d=new Date(_0x257041);return _0xec903d[_0x28182c(0x407)](0x0,0x0,0x0,0x0),_0xec903d['getTime']();}function kn(_0x428769,_0x54726a){const _0x2996b8=_0x4e7c38;let _0x2c0cd9=_0x428769-(new Date(_0x428769)[_0x2996b8(0x418)]()+0x6)%0x7*V+_0x54726a*V*0x7;return{'start':_0x2c0cd9,'end':_0x2c0cd9+V*0x7-0x1};}function An(_0x1b4799,_0x427402){const _0x1d70b3=_0x4e7c38;let _0x3c47b3=new Date(_0x1b4799),_0x1f8c43=new Date(_0x3c47b3[_0x1d70b3(0x579)](),_0x3c47b3[_0x1d70b3(0x200)]()+_0x427402,0x1),_0x30b7cf=new Date(_0x3c47b3[_0x1d70b3(0x579)](),_0x3c47b3[_0x1d70b3(0x200)]()+_0x427402+0x1,0x1);return{'start':_0x1f8c43[_0x1d70b3(0x32b)](),'end':_0x30b7cf['getTime']()-0x1};}function jn(_0x337dff,_0x5a8939,_0x521251){const _0x3d9e12=_0x4e7c38;let _0x41aa09=Mn(_0x337dff),_0x1276eb=Mn(_0x521251);switch(_0x5a8939){case'is':return _0x41aa09===_0x1276eb;case _0x3d9e12(0x4a3):return _0x41aa09!==_0x1276eb;default:return!0x1;}}function Mn(_0x46f9a0){const _0x492522=_0x4e7c38;return _0x46f9a0===!0x0||_0x46f9a0===_0x492522(0x3a0)||_0x46f9a0===0x1||_0x46f9a0==='1';}function Nn(_0x41dd8a,_0x2f95f1,_0x26e0a3,_0x45b076){const _0x1e7a35=_0x4e7c38;let _0x56dec8=In(_0x41dd8a,_0x45b076),_0x23f2bb=In(_0x26e0a3,_0x45b076),_0x305546=_0x23f2bb[_0x1e7a35(0x2b6)]>0x0&&_0x23f2bb['some'](_0x35e462=>_0x56dec8[_0x1e7a35(0x37a)](_0x35e462));switch(_0x2f95f1){case'is':case _0x1e7a35(0x525):return _0x305546;case _0x1e7a35(0x4a3):case _0x1e7a35(0x37b):return!_0x305546;default:return!0x1;}}function Pn(_0x3adbbe,_0x29aaa7,_0x1c5ed1){const _0x2b5a89=_0x4e7c38;let _0x27fff1=Fn(_0x3adbbe),_0x2e74da=Fn(_0x1c5ed1);switch(_0x29aaa7){case'is':return _0x27fff1===_0x2e74da;case _0x2b5a89(0x4a3):return _0x27fff1!==_0x2e74da;case _0x2b5a89(0x525):return _0x2e74da?_0x27fff1[_0x2b5a89(0x37a)](_0x2e74da):!0x1;case _0x2b5a89(0x37b):return!_0x2e74da||!_0x27fff1[_0x2b5a89(0x37a)](_0x2e74da);default:return!0x1;}}function Fn(_0x16a1f6){const _0x3adc24=_0x4e7c38;if(Array[_0x3adc24(0x56b)](_0x16a1f6))return _0x16a1f6[_0x3adc24(0x3e8)](_0xd287e2=>Fn(_0xd287e2))['join']('\x0a');if(_0x16a1f6&&typeof _0x16a1f6==_0x3adc24(0x3d3)){let _0x2b7aba=_0x16a1f6;return String(_0x2b7aba['name']??_0x2b7aba[_0x3adc24(0x55b)]??_0x2b7aba['text']??_0x2b7aba[_0x3adc24(0x4de)]??_0x2b7aba['id']??'')[_0x3adc24(0x42c)]()['toLowerCase']();}return String(_0x16a1f6??'')[_0x3adc24(0x42c)]()['toLowerCase']();}function In(_0x3f9349,_0x1c9c87){const _0xd524a7=_0x4e7c38;let _0x58c766=Ln(_0x3f9349),_0x3c253d=Rn(_0x1c9c87['config']??{});return _0x58c766[_0xd524a7(0x470)](_0x21bb80=>_0x3c253d[_0xd524a7(0x4d5)](_0x21bb80)??[_0x21bb80])['filter']((_0x177c7b,_0x491b52,_0x265bf2)=>_0x177c7b!==''&&_0x265bf2[_0xd524a7(0x20c)](_0x177c7b)===_0x491b52);}function Ln(_0x50430a){const _0xc052ad=_0x4e7c38;if(_0x50430a==null||_0x50430a==='')return[];if(Array[_0xc052ad(0x56b)](_0x50430a))return _0x50430a[_0xc052ad(0x470)](_0xd8e0d1=>Ln(_0xd8e0d1));if(_0x50430a&&typeof _0x50430a==_0xc052ad(0x3d3)){let _0x8d144a=_0x50430a;return['id',_0xc052ad(0x39a),'label',_0xc052ad(0x4de),_0xc052ad(0x2bb)][_0xc052ad(0x470)](_0x5de049=>Ln(_0x8d144a[_0x5de049]))[_0xc052ad(0x20f)]((_0x5b6b1d,_0x4c86a4,_0x39e6c4)=>_0x39e6c4['indexOf'](_0x5b6b1d)===_0x4c86a4);}return[Fn(_0x50430a)];}function Rn(_0x383e21){const _0x1f3a18=_0x4e7c38;let _0x2936e9=new Map();return(Array[_0x1f3a18(0x56b)](_0x383e21[_0x1f3a18(0x246)])?_0x383e21[_0x1f3a18(0x246)]:[])[_0x1f3a18(0x397)](_0x211b13=>{const _0x417a4d=_0x1f3a18;if(!_0x211b13||typeof _0x211b13!=_0x417a4d(0x3d3))return;let _0x1209da=Ln(_0x211b13),_0x566192=_0x1209da[_0x417a4d(0x20f)]((_0x4af45f,_0x1057cc)=>_0x4af45f!==''&&_0x1209da['indexOf'](_0x4af45f)===_0x1057cc);_0x566192[_0x417a4d(0x397)](_0x320b6c=>_0x2936e9[_0x417a4d(0x205)](_0x320b6c,_0x566192));}),_0x2936e9;}function H(_0xf8cbb5,_0x4c841c={},_0x429c90=_0x37632f=>_0x37632f,_0x4b0936={}){const _0x431aa5=_0x4e7c38;let _0x5500a3=!_n[_0x431aa5(0x4d6)](_0xf8cbb5),_0x5ab070=_0x429c90??(_0x3484a1=>_0x3484a1);return{'type':_0xf8cbb5,'i18nKey':_0x431aa5(0x2fe)+_0xf8cbb5,'enabled':_0x5500a3,'visibleInCreateMenu':_0x5500a3,'createDefaultConfig':_0x4b0936[_0x431aa5(0x540)]??(()=>({})),'createDefaultValue':_0x4b0936[_0x431aa5(0x2e2)]??(_0x5701e2=>_0x5701e2['defaultValue']??null),'normalize':(_0x5cacc9,_0x1655b2)=>_0x5ab070(_0x5cacc9,_0x1655b2),'validate':(_0x3ad85b,_0x50cecf)=>{const _0x4f29b7=_0x431aa5;var _0x2590bb;return _0x5500a3?((_0x2590bb=_0x4b0936[_0x4f29b7(0x1bc)])==null?void 0x0:_0x2590bb['call'](_0x4b0936,_0x3ad85b,_0x50cecf))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x1912a6,_0x430c79)=>bn(_0x1912a6,_0x430c79),'filter':(_0x574dbc,_0x215077,_0x13ea36,_0x25449f)=>xn(_0x574dbc,_0x215077,_0x13ea36,_0x25449f),'toPlainText':_0x4b0936[_0x431aa5(0x365)]??(_0x51f944=>_0x51f944==null?'':String(_0x51f944)),'fromPlainText':_0x4b0936[_0x431aa5(0x248)]??(_0x181ef2=>_0x5ab070(_0x181ef2,{'id':'','name':'','type':_0xf8cbb5,'config':{}})),'getCapabilities':()=>({...gn,..._0x4c841c,'editable':_0x5500a3&&(_0x4c841c[_0x431aa5(0x1d7)]??gn[_0x431aa5(0x1d7)])})};}function zn(){const _0x1893bc=_0x4e7c38;return[H(_0x377615['Text'],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1893bc(0x28d)}),'createDefaultValue':_0x3d2ead=>_0x3d2ead[_0x1893bc(0x2a8)]??''}),H(_0x377615[_0x1893bc(0x38d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x3a5418=>_0x3a5418==null||_0x3a5418===''?null:String(_0x3a5418),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':'manual'}})}),H(_0x377615[_0x1893bc(0x1eb)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x5da64f=>Array['isArray'](_0x5da64f)?_0x5da64f[_0x1893bc(0x3e8)](String):_0x5da64f==null?[]:[String(_0x5da64f)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1893bc(0x22a)}}),'createDefaultValue':_0x4ed9f0=>_0x4ed9f0['defaultValue']??[]}),H(_0x377615[_0x1893bc(0x4f8)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':'person'}),'validate':Gn}),H(_0x377615[_0x1893bc(0x1c4)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':'group'}),'createDefaultValue':_0x44ca8b=>_0x44ca8b[_0x1893bc(0x2a8)]??[],'validate':Kn}),H(_0x377615[_0x1893bc(0x55e)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x57d3dd=>un(_0x57d3dd),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x377615['Attachment'],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x33df25=>_0x33df25==null?[]:Array['isArray'](_0x33df25)?_0x33df25:[_0x33df25],{'createDefaultValue':_0x28fc84=>_0x28fc84[_0x1893bc(0x2a8)]??[]}),H(_0x377615[_0x1893bc(0x242)],{},_0x13c32f=>_0x13c32f==null||_0x13c32f===''?null:Number(_0x13c32f),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x377615[_0x1893bc(0x1e2)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x1df0bf=>_0x1df0bf===!0x0||_0x1df0bf===_0x1893bc(0x3a0)||_0x1df0bf===0x1||_0x1df0bf==='1',{'createDefaultConfig':()=>({'icon':_0x1893bc(0x4ad),'color':_0x1893bc(0x48c)}),'createDefaultValue':_0x440a58=>_0x440a58[_0x1893bc(0x2a8)]??!0x1,'validate':_0x3d6953=>typeof _0x3d6953==_0x1893bc(0x361)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1893bc(0x2b4)}}),H(_0x377615[_0x1893bc(0x1c3)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.linkPlaceholder'}),'toPlainText':_0x3ae899=>Zn(_0x3ae899),'fromPlainText':_0x4f3fee=>Xn(_0x4f3fee)}),H(_0x377615[_0x1893bc(0x26c)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x1893bc(0x573),'pattern':_0x1893bc(0x52c)}}),'createDefaultValue':()=>null}),H(_0x377615[_0x1893bc(0x34c)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':'autoIncrement'}),'createDefaultValue':()=>null}),H(_0x377615[_0x1893bc(0x445)],{'usableAsTitle':!0x0},_0xe76c97=>_0xe76c97==null?null:String(_0xe76c97)[_0x1893bc(0x42c)](),{'validate':_0x1e2999=>_0x1e2999==null||_0x1e2999===''||/^\+?[0-9 ()-]{6,20}$/[_0x1893bc(0x463)](String(_0x1e2999))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1893bc(0x412)}}),H(_0x377615[_0x1893bc(0x252)],{'usableAsTitle':!0x0},_0x202a02=>_0x202a02==null?null:String(_0x202a02)[_0x1893bc(0x42c)](),{'validate':_0x16c0b9=>_0x16c0b9==null||_0x16c0b9===''||$n(String(_0x16c0b9))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1893bc(0x32a)}}),H(_0x377615[_0x1893bc(0x3a3)],{'usableAsGanttProgress':!0x0},_0x42c9fa=>_0x42c9fa==null||_0x42c9fa===''?null:Number(_0x42c9fa),{'createDefaultConfig':()=>({'format':_0x1893bc(0x1c6),'decimalPlaces':0x0,'color':_0x1893bc(0x557),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x13718f,_0x213095)=>Yn(_0x13718f,_0x213095,_0x1893bc(0x293))}),H(_0x377615['Currency'],{},_0x196294=>_0x196294==null||_0x196294===''?null:Number(_0x196294),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x377615[_0x1893bc(0x33a)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x19513d=>_0x19513d==null||_0x19513d===''?null:Number(_0x19513d),{'createDefaultConfig':()=>({'icon':'star','min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0xab4f21,_0x4bb6f2)=>Yn(_0xab4f21,_0x4bb6f2,_0x1893bc(0x410))}),H(_0x377615[_0x1893bc(0x23d)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x42ad02,_0x1a9399)=>ze(_0x42ad02,_0x1a9399[_0x1893bc(0x554)][_0x1893bc(0x413)]===!0x0)}),H(_0x377615[_0x1893bc(0x4c5)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x377615[_0x1893bc(0x1cd)],{'editable':!0x1,'groupable':!0x0},_0x36cfc1=>_0x36cfc1==null?null:String(_0x36cfc1),{'createDefaultConfig':()=>({'provider':_0x1893bc(0x2b3)}),'createDefaultValue':()=>null}),H(_0x377615[_0x1893bc(0x3c0)],{'editable':!0x1,'groupable':!0x0},_0x16ddd8=>_0x16ddd8==null?null:String(_0x16ddd8),{'createDefaultConfig':()=>({'provider':_0x1893bc(0x2b3)}),'createDefaultValue':()=>null}),H(_0x377615[_0x1893bc(0x3d5)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x306f40=>un(_0x306f40),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x377615['UpdatedAt'],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0xce67cc=>un(_0xce67cc),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x28a36=_0x4e7c38;return{'pattern':_0x28a36(0x203),'decimalPlaces':0x2,'separatorStyle':_0x28a36(0x31c),'useThousands':!0x0,'abbreviation':_0x28a36(0x4e8),'allowNegative':!0x0};}function Vn(){const _0x3aa72d=_0x4e7c38;return{'locale':_0x3aa72d(0x1c9),'pattern':_0x3aa72d(0x4ff),'includeTime':!0x1,'hourCycle':'h24','defaultMode':_0x3aa72d(0x4e8)};}function Hn(_0x33f604){const _0x3d89fa=_0x4e7c38;return _0x33f604==null||_0x33f604===''?[]:Array[_0x3d89fa(0x56b)](_0x33f604)?_0x33f604[_0x3d89fa(0x3e8)](String):[String(_0x33f604)];}function Un(_0x12c883){const _0x1d3baf=_0x4e7c38;return typeof _0x12c883==_0x1d3baf(0x457)?_0x12c883:'';}function Wn(_0x48fafe,_0x4d8dce){const _0x496aac=_0x4e7c38;return _0x48fafe==null||_0x48fafe===''?_0x4d8dce[_0x496aac(0x554)][_0x496aac(0x305)]===!0x0?[]:null:_0x4d8dce[_0x496aac(0x554)][_0x496aac(0x305)]===!0x0?Array[_0x496aac(0x56b)](_0x48fafe)?_0x48fafe['map'](String):[String(_0x48fafe)]:Array[_0x496aac(0x56b)](_0x48fafe)?String(_0x48fafe[0x0]??'')||null:String(_0x48fafe);}function Gn(_0x3af0c0,_0x422e74){const _0x47526c=_0x4e7c38;return _0x422e74[_0x47526c(0x554)][_0x47526c(0x305)]===!0x0?Kn(_0x3af0c0):_0x3af0c0==null||_0x3af0c0===''||typeof _0x3af0c0==_0x47526c(0x457)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x47526c(0x1fc)};}function Kn(_0x5bc84a){const _0x189749=_0x4e7c38;return _0x5bc84a==null||Array['isArray'](_0x5bc84a)&&_0x5bc84a['every'](_0x31ef31=>typeof _0x31ef31=='string')?{'valid':!0x0}:{'valid':!0x1,'reason':_0x189749(0x33b)};}function qn(_0x41b74a){const _0x508b5f=_0x4e7c38;return _0x41b74a==null||typeof _0x41b74a==_0x508b5f(0x43a)&&Number[_0x508b5f(0x338)](_0x41b74a)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x508b5f(0x25b)};}function Jn(_0x543456,_0x39afba){const _0x30e7e2=_0x4e7c38;return _0x543456==null||_0x543456===''?{'valid':!0x0}:typeof _0x543456!=_0x30e7e2(0x43a)||!Number['isFinite'](_0x543456)?{'valid':!0x1,'reason':_0x30e7e2(0x3db)}:_0x39afba['config'][_0x30e7e2(0x20e)]===!0x1&&_0x543456<0x0?{'valid':!0x1,'reason':_0x30e7e2(0x209)}:{'valid':!0x0};}function Yn(_0x4cb242,_0x53eeff,_0x3f3c4c){const _0x39928e=_0x4e7c38;let _0x13aff9=Jn(_0x4cb242,_0x53eeff);if(!_0x13aff9[_0x39928e(0x29f)]||_0x4cb242==null||_0x4cb242==='')return _0x13aff9;let _0x281475=Number(_0x53eeff[_0x39928e(0x554)][_0x39928e(0x218)]??_0x53eeff[_0x39928e(0x554)][_0x39928e(0x2b1)]??0x0),_0x37a5d3=Number(_0x53eeff[_0x39928e(0x554)][_0x39928e(0x265)]??_0x53eeff[_0x39928e(0x554)][_0x39928e(0x41a)]??0x64),_0x4b2fa=Number(_0x4cb242);return _0x4b2fa>=_0x281475&&_0x4b2fa<=_0x37a5d3?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3f3c4c};}function Xn(_0xdb3a2){const _0x17bbdd=_0x4e7c38;if(_0xdb3a2==null||_0xdb3a2==='')return null;if(typeof _0xdb3a2==_0x17bbdd(0x3d3)&&!Array['isArray'](_0xdb3a2)){let _0x3c0393=_0xdb3a2,_0xabe081=typeof _0x3c0393['text']==_0x17bbdd(0x457)?_0x3c0393[_0x17bbdd(0x2bb)]['trim']():'',_0xa4ed8d=typeof _0x3c0393['url']==_0x17bbdd(0x457)?_0x3c0393[_0x17bbdd(0x2d3)]['trim']():'',_0x4a9d73=Qn(_0xa4ed8d||_0xabe081);return _0x4a9d73?{'text':_0xabe081||_0xa4ed8d||_0x4a9d73,'url':_0x4a9d73}:null;}let _0x10bb76=String(_0xdb3a2)[_0x17bbdd(0x42c)](),_0x161667=Qn(_0x10bb76);return _0x161667?{'text':_0x10bb76,'url':_0x161667}:null;}function Zn(_0x27a487){const _0x5bdd28=_0x4e7c38;if(_0x27a487==null)return'';if(typeof _0x27a487==_0x5bdd28(0x3d3)&&!Array['isArray'](_0x27a487)){let _0x554d61=_0x27a487;return String(_0x554d61['text']||_0x554d61['url']||'');}return String(_0x27a487);}function Qn(_0x1e51eb){const _0x47b12c=_0x4e7c38;let _0x2a147d=_0x1e51eb[_0x47b12c(0x42c)]();if(!_0x2a147d)return'';let _0x4f959e=/^[a-z][a-z\d+.-]*:/i[_0x47b12c(0x463)](_0x2a147d)?_0x2a147d:_0x2a147d[_0x47b12c(0x3c5)]('//')?_0x47b12c(0x3e1)+_0x2a147d:_0x47b12c(0x25c)+_0x2a147d;try{let _0x4267ea=new URL(_0x4f959e);return _0x4267ea[_0x47b12c(0x379)]==='http:'||_0x4267ea['protocol']==='https:'?_0x4267ea[_0x47b12c(0x31d)]:'';}catch{return'';}}function $n(_0x293707){const _0x16107d=_0x4e7c38;let _0x264b1f=_0x293707['indexOf']('@');if(_0x264b1f<=0x0||_0x264b1f!==_0x293707['lastIndexOf']('@'))return!0x1;let _0x22face=_0x293707[_0x16107d(0x479)](_0x264b1f+0x1);return _0x22face[_0x16107d(0x37a)]('.')&&!_0x293707[_0x16107d(0x37a)]('\x20')&&!_0x22face['startsWith']('.')&&!_0x22face[_0x16107d(0x56d)]('.');}const U={'table':_0x2b3615=>['tables',_0x2b3615],'field':(_0x54659f,_0x1d10c4)=>['tables',_0x54659f,_0x4e7c38(0x531),_0x1d10c4],'fieldOrder':(_0x32fcc6,_0x4fa826)=>['tables',_0x32fcc6,_0x4e7c38(0x4dc),_0x4fa826],'record':(_0x1e8fcd,_0x80714d)=>[_0x4e7c38(0x29e),_0x1e8fcd,'records',_0x80714d],'cell':(_0x2f3e1b,_0x1a07c5,_0x2e565a)=>[_0x4e7c38(0x29e),_0x2f3e1b,_0x4e7c38(0x2d1),_0x1a07c5,'values',_0x2e565a],'cellData':(_0x27ead2,_0x421856,_0xc2effb)=>['tables',_0x27ead2,'cellData',String(_0x421856),String(_0xc2effb)],'attachmentSet':(_0x5b2f98,_0x22c67f)=>[_0x4e7c38(0x29e),_0x5b2f98,_0x4e7c38(0x358),_0x4e7c38(0x572),_0x22c67f],'attachment':(_0x13dfed,_0x180744)=>['tables',_0x13dfed,_0x4e7c38(0x358),'attachments',_0x180744],'view':(_0x20d87c,_0x1664a1)=>[_0x4e7c38(0x29e),_0x20d87c,_0x4e7c38(0x460),_0x1664a1],'viewFieldHidden':(_0x4fe977,_0x42fd43,_0xe7ae02)=>['tables',_0x4fe977,_0x4e7c38(0x460),_0x42fd43,_0x4e7c38(0x568),_0xe7ae02,_0x4e7c38(0x332)]};var W=class{[_0x4e7c38(0x1ec)](_0x444f89,_0x58da32){const _0x522b0d=_0x4e7c38;let _0x21d1c0=this[_0x522b0d(0x555)](_0x444f89,_0x444f89[_0x522b0d(0x39a)],_0x58da32);return R([this[_0x522b0d(0x45a)]([_0x522b0d(0x39a)],_0x444f89['name'],_0x58da32),..._0x21d1c0?[_0x21d1c0]:[]]);}['renameFormulaUnitReferences'](_0x1a72a5,_0x5331e5,_0x5dc4d8){const _0x5b7a51=_0x4e7c38;let _0x3f4d94=Object[_0x5b7a51(0x4c0)](_0x1a72a5[_0x5b7a51(0x29e)])[_0x5b7a51(0x470)](_0x56a84a=>Object['values'](_0x56a84a[_0x5b7a51(0x531)])[_0x5b7a51(0x470)](_0x53ebf0=>{const _0x2118c8=_0x5b7a51;var _0x5bc65d,_0x2292ef;if(_0x53ebf0['type']!==_0x377615['Formula'])return[];let _0x5051ff=String(((_0x5bc65d=_0x53ebf0[_0x2118c8(0x554)])==null?void 0x0:_0x5bc65d[_0x2118c8(0x44e)])??''),_0x39ef6b=_0x1f96dc(_0x5051ff,_0x5331e5,_0x5dc4d8);return _0x39ef6b===_0x5051ff?[]:[this['_replaceOptional']([...U[_0x2118c8(0x380)](_0x56a84a['id'],_0x53ebf0['id']),'config',_0x2118c8(0x44e)],(_0x2292ef=_0x53ebf0[_0x2118c8(0x554)])==null?void 0x0:_0x2292ef[_0x2118c8(0x44e)],_0x39ef6b)];}));return _0x3f4d94[_0x5b7a51(0x2b6)]>0x0?R(_0x3f4d94):void 0x0;}['createTable'](_0x2c9a24,_0x119041,_0x230cf1=_0x2c9a24[_0x4e7c38(0x38f)][_0x4e7c38(0x2b6)]){const _0x86c65e=_0x4e7c38;let _0x4c43f7=_0x58263d(_0x119041[_0x86c65e(0x39a)],_0x4669bc(_0x2c9a24)[_0x86c65e(0x4c0)](),_0x119041[_0x86c65e(0x2cf)]),_0x2c26e3=_0x119041[_0x86c65e(0x2cf)]===_0x4c43f7?_0x119041:{..._0x119041,'formulaName':_0x4c43f7};return R([...this[_0x86c65e(0x1d2)](_0x2c9a24),_0x10aaca[_0x86c65e(0x45d)](U['table'](_0x119041['id']),_0x2c26e3),_0x10aaca[_0x86c65e(0x45d)]([_0x86c65e(0x38f),_0x230cf1],_0x119041['id'])]);}[_0x4e7c38(0x204)](_0x1049d4,_0x32e2e3,_0x1e9a1a){const _0x2dcda9=_0x4e7c38;let _0x548060=_0x1049d4['tables'][_0x32e2e3];return R([...this[_0x2dcda9(0x1d2)](_0x1049d4),_0x10aaca['replaceOp']([...U[_0x2dcda9(0x438)](_0x32e2e3),'name'],_0x548060['name'],_0x1e9a1a)]);}[_0x4e7c38(0x36b)](_0x21cef3,_0xc3cf99){const _0x57c735=_0x4e7c38;let _0x57d7d4=_0x21cef3[_0x57c735(0x29e)][_0xc3cf99],_0x548407=_0x21cef3[_0x57c735(0x38f)]['indexOf'](_0xc3cf99);return R([...this[_0x57c735(0x1d2)](_0x21cef3,new Set([_0xc3cf99])),_0x10aaca[_0x57c735(0x3c4)](U[_0x57c735(0x438)](_0xc3cf99),_0x57d7d4),_0x10aaca[_0x57c735(0x3c4)]([_0x57c735(0x38f),_0x548407],_0xc3cf99)]);}[_0x4e7c38(0x4c2)](_0x5df96c,_0x3fdb17,_0x53393e){return this['createRecords'](_0x5df96c,_0x3fdb17,[_0x53393e]);}[_0x4e7c38(0x536)](_0x2286cb,_0x4f3428,_0x23c56c){const _0x2842bd=_0x4e7c38;let _0x351226=_0x2286cb[_0x2842bd(0x29e)][_0x4f3428],_0x570564=_0x23c56c[_0x2842bd(0x20f)](_0x5b5412=>_0x5b5412&&!_0x351226[_0x2842bd(0x2d1)][_0x5b5412['id']])[_0x2842bd(0x3e8)](_0x758ea4=>({..._0x758ea4,'values':{..._0x758ea4[_0x2842bd(0x4c0)],[_0x5802d7]:_0x758ea4['id']}}));if(!_0x570564[_0x2842bd(0x2b6)])return _0x10aaca[_0x2842bd(0x53d)]([...U[_0x2842bd(0x438)](_0x4f3428),_0x2842bd(0x2d1)],_0x351226[_0x2842bd(0x2d1)],_0x351226[_0x2842bd(0x2d1)]);let _0x4ee497=new _0x10aaca['WriteCursor'](),_0x3edf12=[..._0x570564]['sort']((_0x1dc980,_0x524248)=>_0x1dc980['id']<_0x524248['id']?-0x1:+(_0x1dc980['id']>_0x524248['id'])),_0x41b53b=[...U[_0x2842bd(0x438)](_0x4f3428),_0x2842bd(0x2d1)];_0x4ee497[_0x2842bd(0x259)](_0x41b53b);for(let _0x599006 of _0x3edf12)_0x4ee497[_0x2842bd(0x567)](_0x599006['id']),_0x4ee497[_0x2842bd(0x223)]('i',_0x599006),_0x4ee497[_0x2842bd(0x31b)]();for(let _0x426772=0x0;_0x426772<_0x41b53b['length'];_0x426772+=0x1)_0x4ee497[_0x2842bd(0x31b)]();return R([_0x4ee497[_0x2842bd(0x4d5)](),this[_0x2842bd(0x458)](_0x2286cb,_0x4f3428,_0x570564)]);}[_0x4e7c38(0x577)](_0x361d26,_0x36101e,_0x2f29eb){const _0x3d20a4=_0x4e7c38;return this[_0x3d20a4(0x48f)](_0x361d26,_0x36101e,[_0x2f29eb]);}[_0x4e7c38(0x48f)](_0x97f394,_0x15b12b,_0x113feb){const _0x4a996d=_0x4e7c38;let _0x28e162=_0x97f394[_0x4a996d(0x29e)][_0x15b12b],_0x2f65ff=Array['from'](new Set(_0x113feb))['filter'](_0x220aae=>_0x28e162['records'][_0x220aae]);if(!_0x2f65ff[_0x4a996d(0x2b6)])return _0x10aaca[_0x4a996d(0x53d)]([...U[_0x4a996d(0x438)](_0x15b12b),_0x4a996d(0x2d1)],_0x28e162['records'],_0x28e162[_0x4a996d(0x2d1)]);let _0x164ae8=new Set(_0x2f65ff),_0x372154=et(_0x28e162,_0x2f65ff)[_0x4a996d(0x3e8)](_0x413d35=>this[_0x4a996d(0x344)](_0x97f394,_0x15b12b,_0x413d35['recordId'],_0x413d35[_0x4a996d(0x446)],''));return R([this['_deleteRecordsBaseOp'](_0x97f394,_0x15b12b,_0x2f65ff,_0x164ae8),..._0x372154]);}[_0x4e7c38(0x24f)](_0x1e05b3,_0x2ca27c,_0x1aa9dc,_0x5601f9){const _0x43a1b8=_0x4e7c38;let _0x37c9d3=_0x1e05b3['tables'][_0x1aa9dc],_0xb6a6f2=Array['from'](new Set(_0x5601f9))[_0x43a1b8(0x20f)](_0xa798e8=>_0x37c9d3[_0x43a1b8(0x2d1)][_0xa798e8]),_0xbca92=new Set(_0xb6a6f2);return R([new z()[_0x43a1b8(0x27f)](_0x1e05b3,this[_0x43a1b8(0x54b)](_0x1e05b3,_0x1aa9dc,_0xb6a6f2,_0xbca92)),...et(_0x37c9d3,_0xb6a6f2)[_0x43a1b8(0x3e8)](_0x2bd3ae=>this['updateCell'](_0x2ca27c,_0x1aa9dc,_0x2bd3ae[_0x43a1b8(0x394)],_0x2bd3ae[_0x43a1b8(0x446)],_0x2bd3ae[_0x43a1b8(0x272)]??''))]);}[_0x4e7c38(0x54b)](_0x1de68b,_0x736117,_0x264822,_0x1d94bd){const _0x2722ce=_0x4e7c38;let _0x5b7123=_0x1de68b['tables'][_0x736117],_0x42f4b3=_0x264822[_0x2722ce(0x3e8)](_0xfe0cc4=>{const _0x1e1ecb=_0x2722ce;var _0x555893;return{'recordId':_0xfe0cc4,'index':((_0x555893=_0x5b7123[_0x1e1ecb(0x52d)])==null?void 0x0:_0x555893['indexOf'](_0xfe0cc4))??-0x1};})[_0x2722ce(0x20f)](_0x34149a=>_0x34149a[_0x2722ce(0x230)]>=0x0)[_0x2722ce(0x266)]((_0xfb35ae,_0x49badc)=>_0x49badc[_0x2722ce(0x230)]-_0xfb35ae[_0x2722ce(0x230)]);return R([..._0x264822[_0x2722ce(0x3e8)](_0x497b3b=>_0x10aaca[_0x2722ce(0x3c4)](U['record'](_0x736117,_0x497b3b),_0x5b7123[_0x2722ce(0x2d1)][_0x497b3b])),..._0x42f4b3['map'](({recordId:_0xda4b14,index:_0x2edf35})=>_0x10aaca[_0x2722ce(0x3c4)]([_0x2722ce(0x29e),_0x736117,_0x2722ce(0x52d),_0x2edf35],_0xda4b14)),...this[_0x2722ce(0x1fa)](_0x5b7123,_0x736117,_0x122152=>{const _0x100a2d=_0x2722ce;let _0x39403a=_0x122152['slice'](_0x122152[_0x100a2d(0x1e3)]('\x1f')+0x1);return _0x1d94bd[_0x100a2d(0x4d6)](_0x39403a);})]);}['duplicateRecord'](_0x27f30f,_0x9f3a79,_0x87c43b,_0x4b02d2){const _0x1b7ec2=_0x4e7c38;return this['createRecord'](_0x27f30f,_0x9f3a79,{..._0x4b02d2,'values':{..._0x27f30f[_0x1b7ec2(0x29e)][_0x9f3a79][_0x1b7ec2(0x2d1)][_0x87c43b][_0x1b7ec2(0x4c0)],..._0x4b02d2[_0x1b7ec2(0x4c0)],[_0x5802d7]:_0x4b02d2['id']}});}[_0x4e7c38(0x2c1)](_0x436cb5,_0x416fe5,_0x1d9fd9,_0x168634){const _0x360eab=_0x4e7c38;let _0x2cd87f=_0x436cb5[_0x360eab(0x29e)][_0x416fe5],_0xc0a504=[...U[_0x360eab(0x51b)](_0x416fe5,_0x1d9fd9),_0x360eab(0x24c)],_0x574502=Object[_0x360eab(0x4c0)](_0x2cd87f[_0x360eab(0x2d1)])['map'](_0xdcb5a8=>_0xdcb5a8['id']===_0x1d9fd9?{..._0xdcb5a8,'orderKey':_0x168634}:_0xdcb5a8)['sort']((_0x37ebee,_0x3f5670)=>String(_0x37ebee[_0x360eab(0x24c)]??_0x37ebee['id'])[_0x360eab(0x582)](String(_0x3f5670[_0x360eab(0x24c)]??_0x3f5670['id'])))['map'](_0x29a479=>_0x29a479['id']),_0x56789a=[...U['table'](_0x416fe5),_0x360eab(0x52d)];return R([this[_0x360eab(0x45a)](_0xc0a504,_0x2cd87f['records'][_0x1d9fd9][_0x360eab(0x24c)],_0x168634),_0x2cd87f['recordOrder']?_0x10aaca[_0x360eab(0x53d)](_0x56789a,_0x2cd87f[_0x360eab(0x52d)],_0x574502):_0x10aaca[_0x360eab(0x45d)](_0x56789a,_0x574502)]);}['updateCell'](_0x282b89,_0x2160a7,_0x3343ca,_0x4bca3a,_0x3b7680){const _0x584ab6=_0x4e7c38;var _0x23a6be,_0x5a6f5b;let _0x38dde2=_0x282b89[_0x584ab6(0x29e)][_0x2160a7],_0x1837e2=ar(_0x38dde2,_0x3343ca,_0x4bca3a)?_0x38dde2:L(_0x38dde2),_0x416f1c=(_0x23a6be=_0x1837e2[_0x584ab6(0x2cd)])==null?void 0x0:_0x23a6be[_0x3343ca],_0x1c3435=(_0x5a6f5b=_0x1837e2[_0x584ab6(0x50b)])==null?void 0x0:_0x5a6f5b[_0x4bca3a];if(_0x416f1c==null||_0x1c3435==null){var _0x2cd69b;return this[_0x584ab6(0x45a)](U[_0x584ab6(0x2c9)](_0x2160a7,_0x3343ca,_0x4bca3a),(_0x2cd69b=_0x282b89[_0x584ab6(0x29e)][_0x2160a7])==null||(_0x2cd69b=_0x2cd69b['records'][_0x3343ca])==null?void 0x0:_0x2cd69b[_0x584ab6(0x4c0)][_0x4bca3a],_0x3b7680);}return this[_0x584ab6(0x4e5)](_0x282b89,_0x2160a7,[{'row':_0x416f1c,'col':_0x1c3435,'value':_0x3b7680}]);}[_0x4e7c38(0x1ba)](_0x45446d,_0x31db6d,_0x2eed57){const _0x54ae4a=_0x4e7c38;let _0x2ede5f=_0x45446d[_0x54ae4a(0x29e)][_0x31db6d],_0xd8b532=_0x2eed57[_0x54ae4a(0x1f6)](_0x1ae26f=>Object[_0x54ae4a(0x3ca)](_0x1ae26f[_0x54ae4a(0x4c0)])[_0x54ae4a(0x1f6)](_0x146045=>ar(_0x2ede5f,_0x1ae26f[_0x54ae4a(0x394)],_0x146045)))?_0x2ede5f:L(_0x2ede5f),_0xf16ca7=_0x2eed57[_0x54ae4a(0x470)](_0xc7be77=>Object[_0x54ae4a(0x502)](_0xc7be77['values'])[_0x54ae4a(0x470)](([_0x4e6325,_0xb2d3df])=>{const _0x20716c=_0x54ae4a;var _0x210e36,_0x348bf0;let _0x5d9a42=(_0x210e36=_0xd8b532[_0x20716c(0x2cd)])==null?void 0x0:_0x210e36[_0xc7be77[_0x20716c(0x394)]],_0x8de481=(_0x348bf0=_0xd8b532[_0x20716c(0x50b)])==null?void 0x0:_0x348bf0[_0x4e6325];return _0x5d9a42==null||_0x8de481==null?[]:[{'row':_0x5d9a42,'col':_0x8de481,'value':_0xb2d3df}];})),_0x94c0d0=_0x2eed57[_0x54ae4a(0x470)](_0x5b0ed0=>Object[_0x54ae4a(0x502)](_0x5b0ed0['recordPatch']??{})[_0x54ae4a(0x3e8)](([_0x30cc3a,_0x51585b])=>{const _0x38d3b9=_0x54ae4a;var _0x3d2c14;let _0x215d18=[...U[_0x38d3b9(0x51b)](_0x31db6d,_0x5b0ed0[_0x38d3b9(0x394)]),_0x30cc3a],_0x15ae81=(_0x3d2c14=_0x45446d[_0x38d3b9(0x29e)][_0x31db6d])==null||(_0x3d2c14=_0x3d2c14[_0x38d3b9(0x2d1)][_0x5b0ed0['recordId']])==null?void 0x0:_0x3d2c14[_0x30cc3a];return this[_0x38d3b9(0x45a)](_0x215d18,_0x15ae81,_0x51585b);}));return R([this['setRangeValues'](_0x45446d,_0x31db6d,_0xf16ca7),..._0x94c0d0]);}[_0x4e7c38(0x4e5)](_0x179aef,_0x141dff,_0x20262f){const _0x53fa4e=_0x4e7c38;let _0x3384d1=_0x179aef[_0x53fa4e(0x29e)][_0x141dff],_0x104916=_0x20262f[_0x53fa4e(0x1f6)](_0x1f10c5=>or(_0x3384d1,_0x1f10c5[_0x53fa4e(0x505)],_0x1f10c5[_0x53fa4e(0x444)]))?_0x3384d1:L(_0x3384d1),_0x4e910e=new Map(),_0xe3e691=_0x20262f[_0x53fa4e(0x470)](_0x4f1904=>{const _0x3a88d1=_0x53fa4e;var _0x7535b9,_0x411516,_0x4faa51,_0x4ca210;let _0x1ea640=(_0x7535b9=_0x104916[_0x3a88d1(0x512)])==null?void 0x0:_0x7535b9[_0x4f1904['col']],_0x2bbbc4=(_0x411516=_0x104916[_0x3a88d1(0x565)])==null?void 0x0:_0x411516[_0x4f1904[_0x3a88d1(0x505)]],_0x1449f3=_0x1ea640?_0x104916[_0x3a88d1(0x531)][_0x1ea640]:void 0x0;if(_0x1ea640===_0x5802d7||(_0x1449f3==null?void 0x0:_0x1449f3[_0x3a88d1(0x30b)])===_0x377615['RecordId'])throw Error(_0x3a88d1(0x1d0));let _0x44ee3d=xt(_0x4f1904[_0x3a88d1(0x4de)],_0x1449f3),_0x4e5dde=(_0x4faa51=_0x104916[_0x3a88d1(0x2b7)])==null||(_0x4faa51=_0x4faa51[_0x4f1904[_0x3a88d1(0x505)]])==null?void 0x0:_0x4faa51[_0x4f1904[_0x3a88d1(0x444)]],_0x1b3d03=this[_0x3a88d1(0x45a)](U[_0x3a88d1(0x2b7)](_0x141dff,_0x4f1904['row'],_0x4f1904['col']),_0x4e5dde,_0x44ee3d);if(!_0x1ea640||!_0x2bbbc4)return[_0x1b3d03];let _0x4e89d1=(_0x4ca210=_0x104916[_0x3a88d1(0x2d1)][_0x2bbbc4])==null?void 0x0:_0x4ca210[_0x3a88d1(0x4c0)][_0x1ea640],_0x470cca=(_0x1449f3==null?void 0x0:_0x1449f3['type'])===_0x377615[_0x3a88d1(0x389)]?kt(_0x4f1904[_0x3a88d1(0x4de)]):wt(_0x4f1904[_0x3a88d1(0x4de)],_0x44ee3d,_0x1449f3,_0x104916,_0x2bbbc4),_0x40f8a5=[_0x1b3d03,this[_0x3a88d1(0x45a)](U[_0x3a88d1(0x2c9)](_0x141dff,_0x2bbbc4,_0x1ea640),_0x4e89d1,_0x470cca)];return(_0x1449f3==null?void 0x0:_0x1449f3['type'])===_0x377615[_0x3a88d1(0x389)]&&_0x4e910e[_0x3a88d1(0x205)](Et(_0x1ea640,_0x2bbbc4),{'recordId':_0x2bbbc4,'fieldId':_0x1ea640,'attachments':_0x470cca}),_0x40f8a5;});return _0xe3e691[_0x53fa4e(0x2b6)]?R([..._0xe3e691,...this[_0x53fa4e(0x2ed)](_0x104916,_0x141dff,Array['from'](_0x4e910e['values']()))]):_0x10aaca[_0x53fa4e(0x53d)]([_0x53fa4e(0x29e),_0x141dff,_0x53fa4e(0x2b7)],_0x104916[_0x53fa4e(0x2b7)],_0x104916['cellData']);}[_0x4e7c38(0x4fd)](_0x54f404,_0x202cc1,_0x3e7bcc){const _0x569db3=_0x4e7c38;let _0x16f47e=_0x54f404[_0x569db3(0x29e)][_0x202cc1];if(_0x16f47e['fields'][_0x3e7bcc['field']['id']]||_0x16f47e['fieldOrder']['includes'](_0x3e7bcc[_0x569db3(0x380)]['id']))return _0x10aaca['replaceOp']([_0x569db3(0x29e),_0x202cc1,_0x569db3(0x4dc)],_0x16f47e[_0x569db3(0x4dc)],_0x16f47e['fieldOrder']);let _0x18381c=Math['max'](0x1,_0x3e7bcc[_0x569db3(0x230)]??_0x16f47e[_0x569db3(0x4dc)][_0x569db3(0x2b6)]),_0x471b35=Object[_0x569db3(0x4c0)](_0x16f47e[_0x569db3(0x460)]??{})[_0x569db3(0x470)](_0x1a243c=>{const _0x42c293=_0x569db3;var _0x195907;if(!_0x1a243c[_0x42c293(0x4dc)]||_0x1a243c[_0x42c293(0x4dc)][_0x42c293(0x37a)](_0x3e7bcc[_0x42c293(0x380)]['id']))return[];let _0x50e5c2=ur(((_0x195907=_0x3e7bcc[_0x42c293(0x262)])==null?void 0x0:_0x195907[_0x1a243c['id']])??_0x18381c,_0x1a243c[_0x42c293(0x4dc)][_0x42c293(0x2b6)]);return[_0x10aaca['insertOp']([...U[_0x42c293(0x2aa)](_0x202cc1,_0x1a243c['id']),'fieldOrder',_0x50e5c2],_0x3e7bcc[_0x42c293(0x380)]['id'])];});return R([..._0x3e7bcc['field'][_0x569db3(0x30b)]===_0x377615[_0x569db3(0x26c)]?this['_materializeFormulaTableNames'](_0x54f404):[],_0x10aaca['insertOp'](U[_0x569db3(0x380)](_0x202cc1,_0x3e7bcc[_0x569db3(0x380)]['id']),_0x3e7bcc['field']),_0x10aaca[_0x569db3(0x45d)](U[_0x569db3(0x4dc)](_0x202cc1,_0x18381c),_0x3e7bcc[_0x569db3(0x380)]['id']),..._0x471b35]);}['duplicateField'](_0x1944b4,_0x46ed65,_0x27af32,_0x19fd65){const _0x5ecddf=_0x4e7c38;let _0x2d4839=_0x1944b4[_0x5ecddf(0x29e)][_0x46ed65];if(!_0x2d4839[_0x5ecddf(0x531)][_0x27af32]||_0x2d4839[_0x5ecddf(0x531)][_0x19fd65['field']['id']]||_0x2d4839['fieldOrder']['includes'](_0x19fd65[_0x5ecddf(0x380)]['id']))return _0x10aaca[_0x5ecddf(0x53d)](['tables',_0x46ed65,_0x5ecddf(0x4dc)],_0x2d4839['fieldOrder'],_0x2d4839[_0x5ecddf(0x4dc)]);let _0x177544=_0x19fd65[_0x5ecddf(0x230)]??_0x2d4839[_0x5ecddf(0x4dc)][_0x5ecddf(0x20c)](_0x27af32)+0x1,_0x16a679=_0x2d4839['fieldOrder']['filter'](_0x355902=>_0x355902!==_0x19fd65['field']['id']),_0x497193=cr(_0x16a679,_0x19fd65[_0x5ecddf(0x380)]['id'],_0x177544),_0x2ffc5a=Object[_0x5ecddf(0x4c0)](_0x2d4839[_0x5ecddf(0x460)]??{})[_0x5ecddf(0x470)](_0x1e7ac0=>{const _0x305b3a=_0x5ecddf;var _0x106844,_0x3797e6,_0x3b3abb,_0x4ed057;let _0x49213c=(_0x106844=_0x1e7ac0[_0x305b3a(0x4dc)])!=null&&_0x106844[_0x305b3a(0x2b6)]?_0x1e7ac0[_0x305b3a(0x4dc)]:_0x16a679;if(_0x49213c[_0x305b3a(0x37a)](_0x19fd65[_0x305b3a(0x380)]['id']))return[];let _0x14c5d0=cr(_0x49213c,_0x19fd65[_0x305b3a(0x380)]['id'],((_0x3797e6=_0x19fd65[_0x305b3a(0x262)])==null?void 0x0:_0x3797e6[_0x1e7ac0['id']])??_0x177544),_0x5389f9=(_0x3b3abb=_0x1e7ac0['fieldSettings'])==null?void 0x0:_0x3b3abb[_0x27af32];return[this[_0x305b3a(0x45a)]([...U['view'](_0x46ed65,_0x1e7ac0['id']),_0x305b3a(0x4dc)],_0x1e7ac0['fieldOrder'],_0x14c5d0),..._0x5389f9?[this['_replaceOptional']([...U['view'](_0x46ed65,_0x1e7ac0['id']),_0x305b3a(0x568),_0x19fd65[_0x305b3a(0x380)]['id']],(_0x4ed057=_0x1e7ac0[_0x305b3a(0x568)])==null?void 0x0:_0x4ed057[_0x19fd65[_0x305b3a(0x380)]['id']],_0x5389f9)]:[]];}),_0x2ad0f0=Object[_0x5ecddf(0x4c0)](_0x2d4839[_0x5ecddf(0x2d1)])[_0x5ecddf(0x20f)](_0x93db6c=>Object[_0x5ecddf(0x2f7)][_0x5ecddf(0x396)][_0x5ecddf(0x386)](_0x93db6c[_0x5ecddf(0x4c0)],_0x27af32))['map'](_0x56f53f=>this[_0x5ecddf(0x45a)](U[_0x5ecddf(0x2c9)](_0x46ed65,_0x56f53f['id'],_0x19fd65[_0x5ecddf(0x380)]['id']),_0x56f53f[_0x5ecddf(0x4c0)][_0x19fd65[_0x5ecddf(0x380)]['id']],_0x56f53f[_0x5ecddf(0x4c0)][_0x27af32]));return R([..._0x19fd65['field'][_0x5ecddf(0x30b)]===_0x377615['Formula']?this[_0x5ecddf(0x1d2)](_0x1944b4):[],_0x10aaca['insertOp'](U[_0x5ecddf(0x380)](_0x46ed65,_0x19fd65[_0x5ecddf(0x380)]['id']),_0x19fd65[_0x5ecddf(0x380)]),_0x10aaca[_0x5ecddf(0x53d)]([_0x5ecddf(0x29e),_0x46ed65,'fieldOrder'],_0x2d4839[_0x5ecddf(0x4dc)],_0x497193),..._0x2ffc5a,..._0x2ad0f0]);}[_0x4e7c38(0x309)](_0x50e559,_0x2cd6ab,_0x96377c,_0x259073){const _0x9d951d=_0x4e7c38;let _0x37e915=_0x50e559[_0x9d951d(0x29e)][_0x2cd6ab][_0x9d951d(0x531)][_0x96377c],_0xbce648={..._0x37e915,..._0x259073};Object[_0x9d951d(0x3ca)](_0x259073)[_0x9d951d(0x397)](_0x5460b8=>{_0x259073[_0x5460b8]===void 0x0&&delete _0xbce648[_0x5460b8];});let _0x280d6a=er(_0x50e559[_0x9d951d(0x29e)][_0x2cd6ab],_0x96377c,_0x37e915,_0xbce648);_0xbce648=_0x280d6a[_0x9d951d(0x380)];let _0x43a582=_0x10aaca[_0x9d951d(0x53d)](U[_0x9d951d(0x380)](_0x2cd6ab,_0x96377c),_0x37e915,_0xbce648);return _0xbce648[_0x9d951d(0x30b)]===_0x377615[_0x9d951d(0x26c)]?R([...this[_0x9d951d(0x1d2)](_0x50e559),_0x43a582,...this[_0x9d951d(0x40f)](_0x50e559,_0x2cd6ab,_0x96377c,_0xbce648)]):R([_0x43a582,..._0x280d6a[_0x9d951d(0x3a6)][_0x9d951d(0x2b6)]?[this[_0x9d951d(0x4e5)](_0x50e559,_0x2cd6ab,_0x280d6a[_0x9d951d(0x3a6)])]:[]]);}[_0x4e7c38(0x36f)](_0x5a0f9f,_0x305048,_0x3596fa,_0x2acf6a){const _0x28fdf3=_0x4e7c38;return this[_0x28fdf3(0x309)](_0x5a0f9f,_0x305048,_0x3596fa,_0x2acf6a);}[_0x4e7c38(0x3c1)](_0x809d2b,_0x19bba0,_0x4450c9){const _0x9e98c8=_0x4e7c38;let _0x3ff33c=_0x809d2b[_0x9e98c8(0x29e)][_0x19bba0];if(!(_0x3ff33c!=null&&_0x3ff33c[_0x9e98c8(0x531)][_0x4450c9])||_0x3ff33c[_0x9e98c8(0x48d)]===_0x4450c9||_0x4450c9===_0x5802d7)return _0x10aaca[_0x9e98c8(0x53d)]([_0x9e98c8(0x29e),_0x19bba0,_0x9e98c8(0x4dc)],_0x3ff33c==null?void 0x0:_0x3ff33c[_0x9e98c8(0x4dc)],_0x3ff33c==null?void 0x0:_0x3ff33c['fieldOrder']);let _0xe544e5=_0x3ff33c[_0x9e98c8(0x4dc)][_0x9e98c8(0x20c)](_0x4450c9),_0x4ff47b=Object[_0x9e98c8(0x4c0)](_0x3ff33c[_0x9e98c8(0x460)])[_0x9e98c8(0x470)](_0x4cd03d=>{const _0x4d152a=_0x9e98c8;var _0x3ea712,_0x193a2d,_0x30853a,_0x3bbea5,_0x128987,_0x404d06,_0xf80a8e;let _0x3c92b0=[],_0x17ed7c=((_0x3ea712=_0x4cd03d[_0x4d152a(0x4dc)])==null?void 0x0:_0x3ea712[_0x4d152a(0x20c)](_0x4450c9))??-0x1;_0x17ed7c>=0x0&&_0x3c92b0['push'](_0x10aaca['removeOp']([...U[_0x4d152a(0x2aa)](_0x19bba0,_0x4cd03d['id']),_0x4d152a(0x4dc),_0x17ed7c],_0x4450c9));let _0x26ea55=(_0x193a2d=_0x4cd03d[_0x4d152a(0x568)])==null?void 0x0:_0x193a2d[_0x4450c9];_0x26ea55!==void 0x0&&_0x3c92b0['push'](_0x10aaca['removeOp']([...U[_0x4d152a(0x2aa)](_0x19bba0,_0x4cd03d['id']),'fieldSettings',_0x4450c9],_0x26ea55));let _0xd27265=_0x4cd03d[_0x4d152a(0x20f)]?{..._0x4cd03d[_0x4d152a(0x20f)],'conditions':_0x4cd03d[_0x4d152a(0x20f)][_0x4d152a(0x477)][_0x4d152a(0x20f)](_0x5b9b6c=>_0x5b9b6c[_0x4d152a(0x446)]!==_0x4450c9)}:_0x4cd03d[_0x4d152a(0x20f)];_0xd27265&&_0xd27265[_0x4d152a(0x477)][_0x4d152a(0x2b6)]!==((_0x30853a=_0x4cd03d[_0x4d152a(0x20f)])==null?void 0x0:_0x30853a['conditions'][_0x4d152a(0x2b6)])&&_0x3c92b0[_0x4d152a(0x3e2)](this[_0x4d152a(0x45a)]([...U[_0x4d152a(0x2aa)](_0x19bba0,_0x4cd03d['id']),_0x4d152a(0x20f)],_0x4cd03d[_0x4d152a(0x20f)],_0xd27265));let _0xa00bec=(_0x3bbea5=_0x4cd03d[_0x4d152a(0x266)])==null?void 0x0:_0x3bbea5['filter'](_0x1dd301=>_0x1dd301['fieldId']!==_0x4450c9);_0xa00bec&&_0xa00bec[_0x4d152a(0x2b6)]!==((_0x128987=_0x4cd03d[_0x4d152a(0x266)])==null?void 0x0:_0x128987[_0x4d152a(0x2b6)])&&_0x3c92b0[_0x4d152a(0x3e2)](this[_0x4d152a(0x45a)]([...U[_0x4d152a(0x2aa)](_0x19bba0,_0x4cd03d['id']),'sort'],_0x4cd03d[_0x4d152a(0x266)],_0xa00bec));let _0x4c7e99=(_0x404d06=_0x4cd03d[_0x4d152a(0x3b2)])==null?void 0x0:_0x404d06[_0x4d152a(0x20f)](_0x59f251=>_0x59f251[_0x4d152a(0x446)]!==_0x4450c9);_0x4c7e99&&_0x4c7e99[_0x4d152a(0x2b6)]!==((_0xf80a8e=_0x4cd03d['group'])==null?void 0x0:_0xf80a8e[_0x4d152a(0x2b6)])&&_0x3c92b0[_0x4d152a(0x3e2)](this[_0x4d152a(0x45a)]([...U[_0x4d152a(0x2aa)](_0x19bba0,_0x4cd03d['id']),_0x4d152a(0x3b2)],_0x4cd03d['group'],_0x4c7e99));let _0x8329fb=lr(_0x4cd03d[_0x4d152a(0x554)],_0x4450c9);return JSON[_0x4d152a(0x2af)](_0x8329fb)!==JSON[_0x4d152a(0x2af)](_0x4cd03d[_0x4d152a(0x554)])&&_0x3c92b0['push'](_0x10aaca[_0x4d152a(0x53d)]([...U[_0x4d152a(0x2aa)](_0x19bba0,_0x4cd03d['id']),_0x4d152a(0x554)],_0x4cd03d[_0x4d152a(0x554)],_0x8329fb)),_0x3c92b0;}),_0x26104e=Object[_0x9e98c8(0x4c0)](_0x3ff33c[_0x9e98c8(0x2d1)])[_0x9e98c8(0x470)](_0x2e9ecb=>Object[_0x9e98c8(0x2f7)]['hasOwnProperty']['call'](_0x2e9ecb[_0x9e98c8(0x4c0)],_0x4450c9)?[_0x10aaca[_0x9e98c8(0x3c4)](U[_0x9e98c8(0x2c9)](_0x19bba0,_0x2e9ecb['id'],_0x4450c9),_0x2e9ecb[_0x9e98c8(0x4c0)][_0x4450c9])]:[]);return R([_0x10aaca[_0x9e98c8(0x3c4)](U[_0x9e98c8(0x380)](_0x19bba0,_0x4450c9),_0x3ff33c['fields'][_0x4450c9]),_0x10aaca[_0x9e98c8(0x3c4)](U[_0x9e98c8(0x4dc)](_0x19bba0,_0xe544e5),_0x4450c9),..._0x4ff47b,..._0x26104e,...this[_0x9e98c8(0x1fa)](_0x3ff33c,_0x19bba0,_0x3241b8=>_0x3241b8[_0x9e98c8(0x3c5)](_0x4450c9+'\x1f'))]);}[_0x4e7c38(0x37d)](_0x3d0ea7,_0x50458d,_0x18b7b3,_0x2f29ea){const _0x14cf2b=_0x4e7c38;let _0x3c489a=_0x3d0ea7[_0x14cf2b(0x29e)][_0x50458d]['fieldOrder'];if(_0x18b7b3===_0x5802d7||_0x2f29ea[_0x14cf2b(0x409)]===_0x5802d7)throw Error('[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');let _0x1fa2dc=sr(_0x3c489a,_0x18b7b3,_0x2f29ea);return _0x10aaca[_0x14cf2b(0x53d)]([_0x14cf2b(0x29e),_0x50458d,_0x14cf2b(0x4dc)],_0x3c489a,_0x1fa2dc);}[_0x4e7c38(0x562)](_0x528b98,_0x14ae3a,_0x5c1fbd,_0x47b4c6=_0x528b98[_0x4e7c38(0x29e)][_0x14ae3a]['viewOrder']['length']){const _0x3d359f=_0x4e7c38;return R([_0x10aaca[_0x3d359f(0x45d)](U[_0x3d359f(0x2aa)](_0x14ae3a,_0x5c1fbd['id']),_0x5c1fbd),_0x10aaca[_0x3d359f(0x45d)](['tables',_0x14ae3a,'viewOrder',_0x47b4c6],_0x5c1fbd['id'])]);}[_0x4e7c38(0x2f2)](_0x32ebdb,_0x3c4344,_0x100820,_0xd86aca){const _0x458cac=_0x4e7c38;return _0x10aaca[_0x458cac(0x53d)]([...U[_0x458cac(0x2aa)](_0x3c4344,_0x100820),_0x458cac(0x39a)],_0x32ebdb['tables'][_0x3c4344][_0x458cac(0x460)][_0x100820]['name'],_0xd86aca);}[_0x4e7c38(0x3f1)](_0xacf08e,_0x3be054,_0x216b10){const _0x5e11ae=_0x4e7c38;let _0xed7630=_0xacf08e[_0x5e11ae(0x29e)][_0x3be054],_0x147d5b=_0xed7630['views'][_0x216b10],_0x21c3f9=_0xed7630['viewOrder'][_0x5e11ae(0x20c)](_0x216b10);return R([_0x10aaca[_0x5e11ae(0x3c4)](U[_0x5e11ae(0x2aa)](_0x3be054,_0x216b10),_0x147d5b),_0x10aaca[_0x5e11ae(0x3c4)](['tables',_0x3be054,_0x5e11ae(0x43e),_0x21c3f9],_0x216b10)]);}['moveView'](_0x58981d,_0x42725d,_0x59b146,_0x1e64f8){const _0x5f3d2b=_0x4e7c38;let _0x188024=_0x58981d[_0x5f3d2b(0x29e)][_0x42725d][_0x5f3d2b(0x43e)],_0x3f1861=sr(_0x188024,_0x59b146,{'beforeFieldId':_0x1e64f8[_0x5f3d2b(0x473)],'afterFieldId':_0x1e64f8[_0x5f3d2b(0x4ca)]});return _0x10aaca['replaceOp']([_0x5f3d2b(0x29e),_0x42725d,_0x5f3d2b(0x43e)],_0x188024,_0x3f1861);}[_0x4e7c38(0x3e4)](_0x4e8f56,_0x124ada,_0x2fb8cb,_0x57fb4f){const _0x263f32=_0x4e7c38;let _0x3cb735=_0x4e8f56['tables'][_0x124ada][_0x263f32(0x460)][_0x2fb8cb][_0x263f32(0x554)]??{},_0x3f4e42={..._0x3cb735,..._0x57fb4f};return Object[_0x263f32(0x3ca)](_0x57fb4f)[_0x263f32(0x397)](_0x368587=>{_0x57fb4f[_0x368587]===void 0x0&&delete _0x3f4e42[_0x368587];}),_0x10aaca['replaceOp']([...U[_0x263f32(0x2aa)](_0x124ada,_0x2fb8cb),_0x263f32(0x554)],_0x3cb735,_0x3f4e42);}[_0x4e7c38(0x276)](_0x40b588,_0x598a54,_0x505d2b,_0x123f2d){const _0x5837c7=_0x4e7c38;return this['_replaceOptional']([...U[_0x5837c7(0x2aa)](_0x598a54,_0x505d2b),_0x5837c7(0x20f)],_0x40b588[_0x5837c7(0x29e)][_0x598a54][_0x5837c7(0x460)][_0x505d2b][_0x5837c7(0x20f)],_0x123f2d);}['setViewSort'](_0xe1661e,_0x50e94e,_0x40a15c,_0x24687b){const _0x30d8eb=_0x4e7c38;return this[_0x30d8eb(0x45a)]([...U['view'](_0x50e94e,_0x40a15c),'sort'],_0xe1661e[_0x30d8eb(0x29e)][_0x50e94e][_0x30d8eb(0x460)][_0x40a15c]['sort'],_0x24687b);}['setViewGroup'](_0x1ab8b3,_0x495512,_0x4e9757,_0x800fed){const _0x832f35=_0x4e7c38;return this[_0x832f35(0x45a)]([...U[_0x832f35(0x2aa)](_0x495512,_0x4e9757),'group'],_0x1ab8b3[_0x832f35(0x29e)][_0x495512][_0x832f35(0x460)][_0x4e9757][_0x832f35(0x3b2)],_0x800fed);}[_0x4e7c38(0x2e7)](_0x2bde11,_0x23670d,_0x152a25,_0x4aecef,_0x478013){return this['_setViewFieldSetting'](_0x2bde11,_0x23670d,_0x152a25,_0x4aecef,{'hidden':!_0x478013});}[_0x4e7c38(0x4dd)](_0x2408fe,_0xd50096,_0x4b671e,_0x464f97,_0x32829c){const _0x5aaf4a=_0x4e7c38;return this[_0x5aaf4a(0x303)](_0x2408fe,_0xd50096,_0x4b671e,_0x464f97,{'width':_0x32829c});}[_0x4e7c38(0x4c9)](_0x481f74,_0x1100e2,_0x32176f,_0x442b14,_0x157266){const _0x5857ac=_0x4e7c38;let _0x4037d2=_0x481f74['tables'][_0x1100e2]['views'][_0x32176f],_0x1f95dd=sr(_0x4037d2[_0x5857ac(0x4dc)]??_0x481f74['tables'][_0x1100e2]['fieldOrder'],_0x442b14,_0x157266);return this[_0x5857ac(0x45a)]([...U[_0x5857ac(0x2aa)](_0x1100e2,_0x32176f),_0x5857ac(0x4dc)],_0x4037d2[_0x5857ac(0x4dc)],_0x1f95dd);}['_setViewFieldSetting'](_0x1fe9a2,_0x2e0855,_0x12c3d8,_0x5790a6,_0x198e0e){const _0x4d083f=_0x4e7c38;let _0x5c1609=_0x1fe9a2[_0x4d083f(0x29e)][_0x2e0855][_0x4d083f(0x460)][_0x12c3d8][_0x4d083f(0x568)]??{},_0x3d080f={..._0x5c1609,[_0x5790a6]:{..._0x5c1609[_0x5790a6],..._0x198e0e}};return this[_0x4d083f(0x45a)]([...U['view'](_0x2e0855,_0x12c3d8),_0x4d083f(0x568)],_0x1fe9a2['tables'][_0x2e0855][_0x4d083f(0x460)][_0x12c3d8]['fieldSettings'],_0x3d080f);}[_0x4e7c38(0x458)](_0x52974c,_0x5d08ca,_0x4c9906){const _0x4857ad=_0x4e7c38;let _0x7156c2=_0x52974c[_0x4857ad(0x29e)][_0x5d08ca],_0x13fafa=new Set(_0x4c9906[_0x4857ad(0x3e8)](_0x901c90=>_0x901c90['id'])),_0x733c95=[...Object['values'](_0x7156c2[_0x4857ad(0x2d1)])[_0x4857ad(0x20f)](_0x2d9a6d=>!_0x13fafa[_0x4857ad(0x4d6)](_0x2d9a6d['id'])),..._0x4c9906][_0x4857ad(0x266)]((_0x3edf22,_0x1c0357)=>String(_0x3edf22[_0x4857ad(0x24c)]??_0x3edf22['id'])['localeCompare'](String(_0x1c0357[_0x4857ad(0x24c)]??_0x1c0357['id'])))[_0x4857ad(0x3e8)](_0x28254c=>_0x28254c['id']),_0x1fd39f=[...U['table'](_0x5d08ca),_0x4857ad(0x52d)];return _0x7156c2[_0x4857ad(0x52d)]?_0x10aaca['replaceOp'](_0x1fd39f,_0x7156c2[_0x4857ad(0x52d)],_0x733c95):_0x10aaca[_0x4857ad(0x45d)](_0x1fd39f,_0x733c95);}[_0x4e7c38(0x1d2)](_0x5e9b63,_0x5a402b=new Set()){const _0x451a96=_0x4e7c38;let _0xe2fd8e=_0x4669bc(_0x5e9b63);return Object[_0x451a96(0x4c0)](_0x5e9b63[_0x451a96(0x29e)])[_0x451a96(0x20f)](_0x5bf25f=>!_0x5a402b[_0x451a96(0x4d6)](_0x5bf25f['id']))[_0x451a96(0x266)]((_0x1935e5,_0x30a796)=>_0x1935e5['id'][_0x451a96(0x582)](_0x30a796['id']))[_0x451a96(0x470)](_0x350e63=>{const _0xb46d56=_0x451a96;let _0x33aec6=_0xe2fd8e[_0xb46d56(0x4d5)](_0x350e63['id']);return!_0x33aec6||_0x350e63[_0xb46d56(0x2cf)]===_0x33aec6?[]:[this['_replaceOptional']([...U['table'](_0x350e63['id']),_0xb46d56(0x2cf)],_0x350e63['formulaName'],_0x33aec6)];});}['_setFormulaFieldCells'](_0x970dd,_0x3cd289,_0x526334,_0x3a7657){const _0x30c2fb=_0x4e7c38;var _0x3b9573,_0x1dc182;let _0x2b6c70=L(_0x970dd[_0x30c2fb(0x29e)][_0x3cd289]),_0x511ed8=String(((_0x3b9573=_0x3a7657['config'])==null?void 0x0:_0x3b9573[_0x30c2fb(0x44e)])??'')['trim'](),_0x1a88d1=(_0x1dc182=_0x2b6c70[_0x30c2fb(0x50b)])==null?void 0x0:_0x1dc182[_0x526334];if(_0x1a88d1==null)return[];let _0x4cf678=_0x2b6c70[_0x30c2fb(0x52d)]??Object[_0x30c2fb(0x3ca)](_0x2b6c70['records']),_0x435b77=_0x4cf678[_0x30c2fb(0x3e8)](_0x426ea3=>{const _0x1ef00e=_0x30c2fb;var _0x1268f7;return(_0x1268f7=_0x2b6c70[_0x1ef00e(0x2cd)])==null?void 0x0:_0x1268f7[_0x426ea3];})[_0x30c2fb(0x1c5)](_0x4562ba=>_0x4562ba!=null);return _0x4cf678[_0x30c2fb(0x470)](_0x18ae68=>{const _0x217b61=_0x30c2fb;var _0x37a89b,_0x55ac11;let _0x936282=(_0x37a89b=_0x2b6c70['rowIndex'])==null?void 0x0:_0x37a89b[_0x18ae68];if(_0x936282==null)return[];let _0x2e6281=(_0x55ac11=_0x2b6c70[_0x217b61(0x2b7)])==null||(_0x55ac11=_0x55ac11[_0x936282])==null?void 0x0:_0x55ac11[_0x1a88d1],_0x4c1463=_0x511ed8?_0x936282===_0x435b77?{'f':_0x511ed8,'si':_0x526334}:{'si':_0x526334}:{'v':null,'t':null};return[this[_0x217b61(0x45a)](U[_0x217b61(0x2b7)](_0x3cd289,_0x936282,_0x1a88d1),_0x2e6281,_0x4c1463)];});}['_setAttachmentResources'](_0x1c67d0,_0x156e00,_0x35cb98){const _0x479361=_0x4e7c38;var _0x2770a4;let _0x32bbb8=new Map(Object['entries'](((_0x2770a4=_0x1c67d0['resources'])==null?void 0x0:_0x2770a4[_0x479361(0x572)])??{})),_0xdb35cd=new Map(),_0x515cbd=new Set(),_0x4ac19e=_0x35cb98[_0x479361(0x3e8)](({recordId:_0x7de640,fieldId:_0x14bb0,attachments:_0x1738e0})=>{const _0x5cd0fe=_0x479361;var _0x4aca7a;let _0x1c7312=Et(_0x14bb0,_0x7de640),_0x1abc09=_0x1738e0[_0x5cd0fe(0x3e8)]((_0x187db5,_0x217f34)=>String(_0x187db5['id']??_0x1c7312+'\x1f'+_0x217f34));return _0x515cbd[_0x5cd0fe(0x290)](_0x1c7312),_0x32bbb8[_0x5cd0fe(0x205)](_0x1c7312,_0x1abc09),_0x1738e0['forEach']((_0x34de28,_0xb29d81)=>{let _0x424d1e=_0x1abc09[_0xb29d81];_0xdb35cd['set'](_0x424d1e,{..._0x34de28,'id':_0x424d1e});}),this[_0x5cd0fe(0x45a)](U[_0x5cd0fe(0x3bc)](_0x156e00,_0x1c7312),(_0x4aca7a=_0x1c67d0[_0x5cd0fe(0x358)])==null||(_0x4aca7a=_0x4aca7a['attachmentSets'])==null?void 0x0:_0x4aca7a[_0x1c7312],_0x1abc09);}),_0x1d7122=Array[_0x479361(0x501)](_0xdb35cd)['map'](([_0xfd4cec,_0x50114c])=>{const _0x3e680c=_0x479361;var _0x447c60;return this['_replaceOptional'](U[_0x3e680c(0x46f)](_0x156e00,_0xfd4cec),(_0x447c60=_0x1c67d0[_0x3e680c(0x358)])==null||(_0x447c60=_0x447c60[_0x3e680c(0x3fa)])==null?void 0x0:_0x447c60[_0xfd4cec],_0x50114c);}),_0x1028d7=new Set(Array[_0x479361(0x501)](_0x32bbb8[_0x479361(0x4c0)]())[_0x479361(0x3d4)]()),_0x1903cb=new Set(Array[_0x479361(0x501)](_0x515cbd)[_0x479361(0x470)](_0x3288d1=>{const _0x1e1926=_0x479361;var _0x33a023;return((_0x33a023=_0x1c67d0[_0x1e1926(0x358)])==null||(_0x33a023=_0x33a023[_0x1e1926(0x572)])==null?void 0x0:_0x33a023[_0x3288d1])??[];})),_0x15f887=Array[_0x479361(0x501)](_0x1903cb)[_0x479361(0x470)](_0x283266=>{const _0xcca229=_0x479361;var _0x4dc84f;let _0x45729b=(_0x4dc84f=_0x1c67d0[_0xcca229(0x358)])==null||(_0x4dc84f=_0x4dc84f[_0xcca229(0x3fa)])==null?void 0x0:_0x4dc84f[_0x283266];return _0x45729b!==void 0x0&&!_0x1028d7[_0xcca229(0x4d6)](_0x283266)?[_0x10aaca['removeOp'](U['attachment'](_0x156e00,_0x283266),_0x45729b)]:[];});return[..._0x4ac19e,..._0x1d7122,..._0x15f887];}[_0x4e7c38(0x1fa)](_0x1b50b0,_0x19a559,_0xad07c5){const _0x3e66b6=_0x4e7c38;var _0x1136b2;let _0x261351=((_0x1136b2=_0x1b50b0[_0x3e66b6(0x358)])==null?void 0x0:_0x1136b2[_0x3e66b6(0x572)])??{},_0x4afbff=Object[_0x3e66b6(0x502)](_0x261351)['filter'](([_0x485dbf])=>_0xad07c5(_0x485dbf));if(!_0x4afbff['length'])return[];let _0x50e965=new Set(Object[_0x3e66b6(0x502)](_0x261351)[_0x3e66b6(0x20f)](([_0x2cd9ea])=>!_0xad07c5(_0x2cd9ea))['flatMap'](([,_0xb29cf5])=>_0xb29cf5)),_0x2d7fc1=new Set(_0x4afbff[_0x3e66b6(0x470)](([,_0x1b5a90])=>_0x1b5a90));return[..._0x4afbff[_0x3e66b6(0x3e8)](([_0x519dc1,_0x5dbd73])=>_0x10aaca[_0x3e66b6(0x3c4)](U[_0x3e66b6(0x3bc)](_0x19a559,_0x519dc1),_0x5dbd73)),...Array[_0x3e66b6(0x501)](_0x2d7fc1)[_0x3e66b6(0x470)](_0x17c4f0=>{const _0x4ed165=_0x3e66b6;var _0x2c9444;let _0xd38226=(_0x2c9444=_0x1b50b0['resources'])==null||(_0x2c9444=_0x2c9444['attachments'])==null?void 0x0:_0x2c9444[_0x17c4f0];return _0xd38226!==void 0x0&&!_0x50e965[_0x4ed165(0x4d6)](_0x17c4f0)?[_0x10aaca['removeOp'](U[_0x4ed165(0x46f)](_0x19a559,_0x17c4f0),_0xd38226)]:[];})];}[_0x4e7c38(0x45a)](_0x301976,_0x56d3c0,_0x148845){const _0x5a67a4=_0x4e7c38;return _0x56d3c0===void 0x0?_0x10aaca[_0x5a67a4(0x45d)](_0x301976,_0x148845):_0x10aaca[_0x5a67a4(0x53d)](_0x301976,_0x56d3c0,_0x148845);}};function er(_0xae0b1a,_0x1ad59e,_0xe45d28,_0x5992d1){const _0x37b71c=_0x4e7c38;var _0x956039;let _0x1342ee=_0x5992d1[_0x37b71c(0x30b)];if(_0xe45d28[_0x37b71c(0x30b)]!==_0x1342ee||_0x1342ee!==_0x377615[_0x37b71c(0x38d)]&&_0x1342ee!==_0x377615[_0x37b71c(0x1eb)]||tr(_0x5992d1[_0x37b71c(0x554)][_0x37b71c(0x518)]))return{'field':_0x5992d1,'patches':[]};let _0x5865ff=nr(_0xe45d28),_0x167ab0=nr(_0x5992d1);if(![..._0x5865ff]['some'](_0x5a64a2=>!_0x167ab0[_0x37b71c(0x4d6)](_0x5a64a2)))return{'field':_0x5992d1,'patches':[]};let _0x5df3bc=rr(_0x5992d1[_0x37b71c(0x2a8)],_0x167ab0,_0x1342ee),_0x1e3abb=ir(_0x5df3bc,_0x5992d1[_0x37b71c(0x2a8)])?_0x5992d1:{..._0x5992d1,'defaultValue':_0x5df3bc},_0x2dfc75=L(_0xae0b1a),_0x26904e=(_0x956039=_0x2dfc75[_0x37b71c(0x50b)])==null?void 0x0:_0x956039[_0x1ad59e];return _0x26904e==null?{'field':_0x1e3abb,'patches':[]}:{'field':_0x1e3abb,'patches':(_0x2dfc75[_0x37b71c(0x52d)]??[])[_0x37b71c(0x470)](_0x4e608=>{var _0x1769a1,_0x50457a;let _0x19b407=(_0x1769a1=_0x2dfc75['rowIndex'])==null?void 0x0:_0x1769a1[_0x4e608],_0x2cb51d=(_0x50457a=_0x2dfc75['records'][_0x4e608])==null?void 0x0:_0x50457a['values'][_0x1ad59e],_0xa4a237=rr(_0x2cb51d,_0x167ab0,_0x1342ee);return _0x19b407==null||ir(_0xa4a237,_0x2cb51d)?[]:[{'row':_0x19b407,'col':_0x26904e,'value':_0xa4a237??null}];})};}function tr(_0xb95ba){return typeof _0xb95ba=='object'&&!!_0xb95ba&&'type'in _0xb95ba&&_0xb95ba['type']==='field';}function nr(_0x13ce60){const _0x2de5e8=_0x4e7c38;var _0x4168fc;let _0x914260=Array[_0x2de5e8(0x56b)]((_0x4168fc=_0x13ce60[_0x2de5e8(0x554)])==null?void 0x0:_0x4168fc[_0x2de5e8(0x246)])?_0x13ce60[_0x2de5e8(0x554)][_0x2de5e8(0x246)]:[];return new Set(_0x914260[_0x2de5e8(0x470)](_0x1fe51f=>{const _0x2d5792=_0x2de5e8;if(!_0x1fe51f||typeof _0x1fe51f!=_0x2d5792(0x3d3)||!('id'in _0x1fe51f))return[];let _0x550549=String(_0x1fe51f['id']);return _0x550549?[_0x550549]:[];}));}function rr(_0x535a96,_0xf46a28,_0x429d5f){const _0xe6af2b=_0x4e7c38;if(_0x535a96==null||_0x535a96==='')return _0x535a96;if(_0x429d5f===_0x377615[_0xe6af2b(0x38d)])return _0xf46a28[_0xe6af2b(0x4d6)](String(_0x535a96))?_0x535a96:null;let _0xe3da84=Array[_0xe6af2b(0x56b)](_0x535a96)?_0x535a96['map'](String):String(_0x535a96)['split'](',')['map'](_0x215b97=>_0x215b97[_0xe6af2b(0x42c)]())[_0xe6af2b(0x20f)](Boolean),_0x1dd9a2=_0xe3da84[_0xe6af2b(0x20f)](_0x56d32f=>_0xf46a28[_0xe6af2b(0x4d6)](_0x56d32f));return _0x1dd9a2[_0xe6af2b(0x2b6)]===_0xe3da84[_0xe6af2b(0x2b6)]?_0x535a96:Array[_0xe6af2b(0x56b)](_0x535a96)?_0x1dd9a2:String(_0x535a96)['includes'](',')?_0x1dd9a2[_0xe6af2b(0x50e)](','):_0x1dd9a2[0x0]??[];}function ir(_0x1ac786,_0x449d49){const _0x8352e3=_0x4e7c38;return JSON[_0x8352e3(0x2af)](_0x1ac786)===JSON[_0x8352e3(0x2af)](_0x449d49);}function ar(_0x4171e1,_0x1bb4f0,_0x17ef22){const _0x32e5a9=_0x4e7c38;var _0x289109,_0x2f9f6f,_0x2fedc5,_0x1d4669;let _0x4e7210=(_0x289109=_0x4171e1[_0x32e5a9(0x2cd)])==null?void 0x0:_0x289109[_0x1bb4f0],_0x2cff1d=(_0x2f9f6f=_0x4171e1[_0x32e5a9(0x50b)])==null?void 0x0:_0x2f9f6f[_0x17ef22];return _0x4e7210!=null&&_0x2cff1d!=null&&((_0x2fedc5=_0x4171e1[_0x32e5a9(0x565)])==null?void 0x0:_0x2fedc5[_0x4e7210])===_0x1bb4f0&&((_0x1d4669=_0x4171e1[_0x32e5a9(0x512)])==null?void 0x0:_0x1d4669[_0x2cff1d])===_0x17ef22&&_0x4171e1[_0x32e5a9(0x2b7)]!=null;}function or(_0xe4eed2,_0x2c68d2,_0x551796){const _0x2412e8=_0x4e7c38;var _0x4aace0,_0x297fc2;return((_0x4aace0=_0xe4eed2[_0x2412e8(0x565)])==null?void 0x0:_0x4aace0[_0x2c68d2])!=null&&((_0x297fc2=_0xe4eed2['colId'])==null?void 0x0:_0x297fc2[_0x551796])!=null&&_0xe4eed2['cellData']!=null;}function sr(_0x563cf3,_0x55c51b,_0x235a45){const _0x373295=_0x4e7c38;let _0x8f174b=_0x563cf3[_0x373295(0x20f)](_0x44b3df=>_0x44b3df!==_0x55c51b),_0x120a92=_0x235a45[_0x373295(0x409)]?_0x8f174b[_0x373295(0x20c)](_0x235a45[_0x373295(0x409)]):_0x235a45[_0x373295(0x1db)]?_0x8f174b[_0x373295(0x20c)](_0x235a45['afterFieldId'])+0x1:_0x8f174b[_0x373295(0x2b6)];return _0x8f174b[_0x373295(0x269)](_0x120a92<0x0?_0x8f174b[_0x373295(0x2b6)]:_0x120a92,0x0,_0x55c51b),_0x8f174b;}function cr(_0x15f279,_0x23590c,_0xe5ae7f){const _0x3f885e=_0x4e7c38;let _0x32d174=_0x15f279[_0x3f885e(0x20f)](_0x292158=>_0x292158!==_0x23590c);return _0x32d174[_0x3f885e(0x269)](ur(_0xe5ae7f,_0x32d174['length']),0x0,_0x23590c),_0x32d174;}function lr(_0x4031a6,_0x61488f,_0x3ba30b){const _0x443904=_0x4e7c38;if(Array[_0x443904(0x56b)](_0x4031a6))return _0x3ba30b===_0x443904(0x1c7)?_0x4031a6[_0x443904(0x20f)](_0x28732f=>_0x28732f!==_0x61488f):_0x4031a6[_0x443904(0x470)](_0x5d762f=>{const _0x40ab61=_0x443904;if(_0x5d762f&&typeof _0x5d762f==_0x40ab61(0x3d3)&&!Array[_0x40ab61(0x56b)](_0x5d762f)&&_0x5d762f['fieldId']===_0x61488f)return[];let _0x2b94bd=lr(_0x5d762f,_0x61488f);return _0x2b94bd===void 0x0?[]:[_0x2b94bd];});if(!_0x4031a6||typeof _0x4031a6!=_0x443904(0x3d3))return _0x3ba30b!=null&&_0x3ba30b['endsWith'](_0x443904(0x2f9))&&_0x4031a6===_0x61488f?void 0x0:_0x4031a6;let _0x587ffa=_0x4031a6;if(_0x587ffa['fieldId']!==_0x61488f)return Object[_0x443904(0x2c2)](Object[_0x443904(0x502)](_0x587ffa)[_0x443904(0x470)](([_0x48111c,_0x5f4417])=>{if(_0x48111c===_0x61488f&&_0x3ba30b==='fieldSettings')return[];let _0x31e0ed=lr(_0x5f4417,_0x61488f,_0x48111c);return _0x31e0ed===void 0x0?[]:[[_0x48111c,_0x31e0ed]];}));}function ur(_0x450cb4,_0x4bb02d){const _0x520620=_0x4e7c38;return Math['max'](0x0,Math[_0x520620(0x218)](_0x450cb4,_0x4bb02d));}function dr(_0x169c64){'@babel/helpers - typeof';const _0x5962dc=_0x4e7c38;return dr=typeof Symbol==_0x5962dc(0x20b)&&typeof Symbol[_0x5962dc(0x494)]=='symbol'?function(_0x20a174){return typeof _0x20a174;}:function(_0x5a94c2){const _0x3ce3ac=_0x5962dc;return _0x5a94c2&&typeof Symbol==_0x3ce3ac(0x20b)&&_0x5a94c2['constructor']===Symbol&&_0x5a94c2!==Symbol[_0x3ce3ac(0x2f7)]?_0x3ce3ac(0x4bc):typeof _0x5a94c2;},dr(_0x169c64);}function fr(_0x166765,_0xb45224){const _0x42fe1a=_0x4e7c38;if(dr(_0x166765)!=_0x42fe1a(0x3d3)||!_0x166765)return _0x166765;var _0x10a3c1=_0x166765[Symbol[_0x42fe1a(0x22c)]];if(_0x10a3c1!==void 0x0){var _0x240dad=_0x10a3c1[_0x42fe1a(0x386)](_0x166765,_0xb45224||_0x42fe1a(0x55d));if(dr(_0x240dad)!=_0x42fe1a(0x3d3))return _0x240dad;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb45224===_0x42fe1a(0x457)?String:Number)(_0x166765);}function pr(_0x43da47){const _0x42950c=_0x4e7c38;var _0x5f62b2=fr(_0x43da47,'string');return dr(_0x5f62b2)==_0x42950c(0x4bc)?_0x5f62b2:_0x5f62b2+'';}function G(_0x459069,_0x2de2ca,_0x15a71e){const _0x4378c5=_0x4e7c38;return(_0x2de2ca=pr(_0x2de2ca))in _0x459069?Object[_0x4378c5(0x50f)](_0x459069,_0x2de2ca,{'value':_0x15a71e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x459069[_0x2de2ca]=_0x15a71e,_0x459069;}const mr=_0x3c907b(_0x4e7c38(0x566));var hr=class extends _0x3aec08{constructor(..._0x1fa028){const _0x41ac96=_0x4e7c38;super(..._0x1fa028),G(this,_0x41ac96(0x298),new Map());}['register'](_0x18ca74){const _0x5a4957=_0x4e7c38;return this[_0x5a4957(0x298)][_0x5a4957(0x205)](_0x18ca74['type'],_0x18ca74),_0x3e2bb5(()=>this['_plugins']['delete'](_0x18ca74[_0x5a4957(0x30b)]));}[_0x4e7c38(0x4d5)](_0x4b4a4c){const _0x54f64d=_0x4e7c38;let _0x110cdb=this[_0x54f64d(0x298)]['get'](_0x4b4a4c);if(!_0x110cdb)throw Error(_0x54f64d(0x3e7)+_0x4b4a4c+_0x54f64d(0x37e));return _0x110cdb;}[_0x4e7c38(0x4ac)](_0x5df227){const _0x2f70a2=_0x4e7c38;return this[_0x2f70a2(0x298)]['get'](_0x5df227);}['getAll'](){const _0x4c88c0=_0x4e7c38;return Array[_0x4c88c0(0x501)](this[_0x4c88c0(0x298)]['values']());}},gr=class{constructor(_0x598642){const _0xb4b75e=_0x4e7c38;this['unitId']=_0x598642,G(this,'type',_0x3b454d[_0xb4b75e(0x1de)]),G(this,_0xb4b75e(0x475),_0x3ccddd[_0xb4b75e(0x4eb)]),G(this,_0xb4b75e(0x431),_0xa1e632[_0xb4b75e(0x1ed)]),G(this,'id',void 0x0),G(this,_0xb4b75e(0x4de),!0x0),this['id']=this[_0xb4b75e(0x30b)]+'.'+this[_0xb4b75e(0x475)]+'_'+_0x598642;}},_r=class{constructor(_0x52ccc4){const _0x5e1d76=_0x4e7c38;this['unitId']=_0x52ccc4,G(this,_0x5e1d76(0x30b),_0x3b454d[_0x5e1d76(0x1de)]),G(this,_0x5e1d76(0x475),_0x3ccddd[_0x5e1d76(0x3b5)]),G(this,_0x5e1d76(0x431),_0xa1e632['INIT']),G(this,'id',void 0x0),G(this,_0x5e1d76(0x4de),!0x0),this['id']=this[_0x5e1d76(0x30b)]+'.'+this['subType']+'_'+_0x52ccc4;}},vr=class{constructor(_0x3ef3f3){const _0x54bc40=_0x4e7c38;this[_0x54bc40(0x423)]=_0x3ef3f3,G(this,'type',_0x3b454d[_0x54bc40(0x1de)]),G(this,_0x54bc40(0x475),_0x3ccddd[_0x54bc40(0x319)]),G(this,_0x54bc40(0x431),_0xa1e632[_0x54bc40(0x1ed)]),G(this,'id',void 0x0),G(this,_0x54bc40(0x4de),!0x0),this['id']=this[_0x54bc40(0x30b)]+'.'+this[_0x54bc40(0x475)]+'_'+_0x3ef3f3;}},yr=class{constructor(_0x23325f){const _0x10aefa=_0x4e7c38;this['unitId']=_0x23325f,G(this,_0x10aefa(0x30b),_0x3b454d[_0x10aefa(0x1de)]),G(this,_0x10aefa(0x475),_0x3ccddd[_0x10aefa(0x29d)]),G(this,'status',_0xa1e632[_0x10aefa(0x1ed)]),G(this,'id',void 0x0),G(this,_0x10aefa(0x4de),!0x0),this['id']=this[_0x10aefa(0x30b)]+'.'+this['subType']+'_'+_0x23325f;}},br=class{constructor(_0x2f37f2,_0x3a7cdf){const _0x2f4f0a=_0x4e7c38;this[_0x2f4f0a(0x423)]=_0x2f37f2,this[_0x2f4f0a(0x48b)]=_0x3a7cdf,G(this,'type',_0x3b454d['BaseDashboard']),G(this,'subType',_0x3ccddd['Edit']),G(this,_0x2f4f0a(0x431),_0xa1e632[_0x2f4f0a(0x1ed)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x2f4f0a(0x30b)]+'.'+this['subType']+'_'+_0x2f37f2+'_'+_0x3a7cdf;}},xr=class{constructor(_0xecfbc8,_0x221380){const _0x4b4d7b=_0x4e7c38;this[_0x4b4d7b(0x423)]=_0xecfbc8,this['objectId']=_0x221380,G(this,_0x4b4d7b(0x30b),_0x3b454d['BaseField']),G(this,_0x4b4d7b(0x475),_0x3ccddd[_0x4b4d7b(0x319)]),G(this,_0x4b4d7b(0x431),_0xa1e632[_0x4b4d7b(0x1ed)]),G(this,'id',void 0x0),G(this,_0x4b4d7b(0x4de),!0x0),this['id']=this[_0x4b4d7b(0x30b)]+'.'+this[_0x4b4d7b(0x475)]+'_'+_0xecfbc8+'_'+_0x221380;}},Sr=class{constructor(_0x3fbd67,_0x2f7ff4){const _0x41aa2e=_0x4e7c38;this[_0x41aa2e(0x423)]=_0x3fbd67,this['objectId']=_0x2f7ff4,G(this,_0x41aa2e(0x30b),_0x3b454d[_0x41aa2e(0x40d)]),G(this,'subType',_0x3ccddd[_0x41aa2e(0x319)]),G(this,_0x41aa2e(0x431),_0xa1e632[_0x41aa2e(0x1ed)]),G(this,'id',void 0x0),G(this,_0x41aa2e(0x4de),!0x0),this['id']=this[_0x41aa2e(0x30b)]+'.'+this['subType']+'_'+_0x3fbd67+'_'+_0x2f7ff4;}},Cr=class{constructor(_0x12161d,_0x5bbd0e){const _0x32bc78=_0x4e7c38;this[_0x32bc78(0x423)]=_0x12161d,this[_0x32bc78(0x48b)]=_0x5bbd0e,G(this,_0x32bc78(0x30b),_0x3b454d['BaseTable']),G(this,_0x32bc78(0x475),_0x3ccddd[_0x32bc78(0x319)]),G(this,_0x32bc78(0x431),_0xa1e632['INIT']),G(this,'id',void 0x0),G(this,_0x32bc78(0x4de),!0x0),this['id']=this[_0x32bc78(0x30b)]+'.'+this[_0x32bc78(0x475)]+'_'+_0x12161d+'_'+_0x5bbd0e;}},wr=class{constructor(_0x118f3e,_0x532cea){const _0x4acd2f=_0x4e7c38;this[_0x4acd2f(0x423)]=_0x118f3e,this[_0x4acd2f(0x48b)]=_0x532cea,G(this,'type',_0x3b454d[_0x4acd2f(0x3a4)]),G(this,_0x4acd2f(0x475),_0x3ccddd[_0x4acd2f(0x319)]),G(this,_0x4acd2f(0x431),_0xa1e632[_0x4acd2f(0x1ed)]),G(this,'id',void 0x0),G(this,_0x4acd2f(0x4de),!0x0),this['id']=this[_0x4acd2f(0x30b)]+'.'+this[_0x4acd2f(0x475)]+'_'+_0x118f3e+'_'+_0x532cea;}};const Tr=[_0x3ccddd[_0x4e7c38(0x319)],_0x3ccddd[_0x4e7c38(0x3b5)],_0x3ccddd[_0x4e7c38(0x29d)],_0x3ccddd[_0x4e7c38(0x4eb)]],Er=new Set([_0x3b454d[_0x4e7c38(0x1de)],_0x3b454d[_0x4e7c38(0x439)],_0x3b454d[_0x4e7c38(0x29b)],_0x3b454d[_0x4e7c38(0x40d)],_0x3b454d[_0x4e7c38(0x3a4)],_0x3b454d['BaseDashboard']]),Dr=_0x4e7c38(0x25d),Or='field/',kr=_0x4e7c38(0x484),Ar=_0x4e7c38(0x318),jr=_0x4e7c38(0x2b0);function K(_0x51457e){return''+Dr+encodeURIComponent(_0x51457e);}function q(_0xb3308e,_0x1a5c2f){return''+Or+encodeURIComponent(_0xb3308e)+'/'+encodeURIComponent(_0x1a5c2f);}function J(_0xc44fc4,_0x52db4c){return''+kr+encodeURIComponent(_0xc44fc4)+'/'+encodeURIComponent(_0x52db4c);}function Mr(_0x5a4716,_0x4b75c8){return''+Ar+encodeURIComponent(_0x5a4716)+'/'+encodeURIComponent(_0x4b75c8);}function Nr(_0xdaccae){return''+jr+encodeURIComponent(_0xdaccae);}function Pr(_0x14603a,_0x1dc8f9,_0x20d341){const _0x41fa9f=_0x4e7c38;if(_0x1dc8f9===_0x14603a)switch(_0x20d341){case _0x3ccddd['Edit']:return new vr(_0x14603a);case _0x3ccddd['Copy']:return new _r(_0x14603a);case _0x3ccddd[_0x41fa9f(0x29d)]:return new yr(_0x14603a);case _0x3ccddd['Comment']:return new gr(_0x14603a);default:throw Error(_0x41fa9f(0x207)+_0x20d341);}if(_0x20d341!==_0x3ccddd['Edit'])throw Error(_0x41fa9f(0x528)+_0x1dc8f9);if(_0x1dc8f9[_0x41fa9f(0x3c5)](Dr))return new Cr(_0x14603a,_0x1dc8f9);if(_0x1dc8f9[_0x41fa9f(0x3c5)](Or))return new xr(_0x14603a,_0x1dc8f9);if(_0x1dc8f9[_0x41fa9f(0x3c5)](kr))return new Sr(_0x14603a,_0x1dc8f9);if(_0x1dc8f9[_0x41fa9f(0x3c5)](Ar))return new wr(_0x14603a,_0x1dc8f9);if(_0x1dc8f9['startsWith'](jr))return new br(_0x14603a,_0x1dc8f9);throw Error(_0x41fa9f(0x342)+_0x1dc8f9);}function Fr(_0x6a49b2,_0x35d46e,_0x29925c,_0x22a22e){const _0x5080f7=_0x4e7c38;var _0x460487;return((_0x460487=_0x6a49b2[_0x5080f7(0x1e6)](Pr(_0x35d46e,_0x29925c,_0x22a22e)['id']))==null?void 0x0:_0x460487[_0x5080f7(0x4de)])??!0x0;}function Ir(_0x151a16,_0x35c6d5,_0x1d5021,_0x2a7979,_0x5acad8){const _0x259f17=_0x4e7c38;let _0x31aa9=Pr(_0x35c6d5,_0x1d5021,_0x2a7979);_0x151a16[_0x259f17(0x1e6)](_0x31aa9['id'])||_0x151a16[_0x259f17(0x441)](_0x31aa9),_0x151a16['updatePermissionPoint'](_0x31aa9['id'],_0x5acad8);}function Lr(_0x1f98a3,_0x12f121,_0x21d25a,_0x282a42){_0x1f98a3['deletePermissionPoint'](Pr(_0x12f121,_0x21d25a,_0x282a42)['id']);}function Rr(_0x1db094,_0xacde90){const _0xdc73b9=_0x4e7c38;_0x1db094['getAllPermissionPoint']()[_0xdc73b9(0x397)]((_0x2a18ae,_0x122310)=>{const _0x5580a0=_0xdc73b9;_0x2a18ae[_0x5580a0(0x4ce)](_0x39b31e=>{const _0x11a96b=_0x5580a0;Er[_0x11a96b(0x4d6)](_0x39b31e[_0x11a96b(0x30b)])&&_0x11a96b(0x423)in _0x39b31e&&_0x39b31e[_0x11a96b(0x423)]===_0xacde90&&_0x1db094['deletePermissionPoint'](_0x122310);})['unsubscribe']();});}function zr(_0x3c54c7,_0x102ecb,_0x2b7e12){const _0x35007e=_0x4e7c38;return Fr(_0x3c54c7,_0x102ecb,_0x102ecb,_0x3ccddd[_0x35007e(0x319)])&&Array['from'](_0x2b7e12)[_0x35007e(0x1f6)](_0x159ea5=>Fr(_0x3c54c7,_0x102ecb,_0x159ea5,_0x3ccddd[_0x35007e(0x319)]));}function Y(_0x3b5b97,_0x5f33ab){return function(_0x3069b7,_0x17f16f){_0x5f33ab(_0x3069b7,_0x17f16f,_0x3b5b97);};}function X(_0xde0294,_0x37f703,_0x399bdc,_0x2ad528){const _0x33f271=_0x4e7c38;var _0x528d90=arguments[_0x33f271(0x2b6)],_0x4a196e=_0x528d90<0x3?_0x37f703:_0x2ad528===null?_0x2ad528=Object[_0x33f271(0x302)](_0x37f703,_0x399bdc):_0x2ad528,_0x5b9736;if(typeof Reflect==_0x33f271(0x3d3)&&typeof Reflect[_0x33f271(0x36c)]==_0x33f271(0x20b))_0x4a196e=Reflect[_0x33f271(0x36c)](_0xde0294,_0x37f703,_0x399bdc,_0x2ad528);else{for(var _0x138159=_0xde0294[_0x33f271(0x2b6)]-0x1;_0x138159>=0x0;_0x138159--)(_0x5b9736=_0xde0294[_0x138159])&&(_0x4a196e=(_0x528d90<0x3?_0x5b9736(_0x4a196e):_0x528d90>0x3?_0x5b9736(_0x37f703,_0x399bdc,_0x4a196e):_0x5b9736(_0x37f703,_0x399bdc))||_0x4a196e);}return _0x528d90>0x3&&_0x4a196e&&Object['defineProperty'](_0x37f703,_0x399bdc,_0x4a196e),_0x4a196e;}const Br=_0x3c907b(_0x4e7c38(0x2e8));let Vr=class extends _0x3aec08{constructor(_0x521fc0,_0x17876f){const _0x279463=_0x4e7c38;super(),this['_permissionService']=_0x521fc0,this[_0x279463(0x56e)]=_0x17876f,G(this,'_basePermissions',new Map()),G(this,_0x279463(0x224),new Map()),G(this,_0x279463(0x1f3),new Map()),G(this,_0x279463(0x39e),new Map()),G(this,'_viewPermissions',new Map()),G(this,_0x279463(0x4d9),new Map()),this[_0x279463(0x533)](this['_instanceService'][_0x279463(0x1f8)](_0x2eb623[_0x279463(0x583)])[_0x279463(0x4ce)](_0x3b9479=>this['_clearUnit'](_0x3b9479[_0x279463(0x49c)]())));}[_0x4e7c38(0x30c)](_0x9a8149){const _0x3c797b=_0x4e7c38;var _0x3265d9;return this[_0x3c797b(0x25f)](_0x9a8149,[])&&(((_0x3265d9=this[_0x3c797b(0x291)][_0x3c797b(0x4d5)](_0x9a8149))==null?void 0x0:_0x3265d9[_0x3c797b(0x1c2)])??!0x0);}[_0x4e7c38(0x52b)](_0x1eeb29){return this['_canEditTable'](_0x1eeb29);}[_0x4e7c38(0x57b)](_0x6bd123){const _0xb84833=_0x4e7c38;var _0x52bc0e;return this[_0xb84833(0x48a)](_0x6bd123)&&(((_0x52bc0e=this[_0xb84833(0x224)]['get'](_0x6bd123))==null?void 0x0:_0x52bc0e[_0xb84833(0x57a)])??!0x0);}[_0x4e7c38(0x2fc)](_0x347900){const _0x2473eb=_0x4e7c38;var _0x22bc83;return this[_0x2473eb(0x48a)](_0x347900)&&(((_0x22bc83=this[_0x2473eb(0x224)]['get'](_0x347900))==null?void 0x0:_0x22bc83[_0x2473eb(0x4fd)])??!0x0);}['canEditField'](_0x1a7578,_0x28e99d){const _0x702c61=_0x4e7c38;var _0x140e66;return this[_0x702c61(0x48a)](_0x1a7578)&&this[_0x702c61(0x25f)](_0x1a7578,[q(_0x1a7578,_0x28e99d)])&&(((_0x140e66=this[_0x702c61(0x1f3)][_0x702c61(0x4d5)](Ur(_0x1a7578,_0x28e99d)))==null?void 0x0:_0x140e66['edit'])??!0x0);}[_0x4e7c38(0x450)](_0x21cbf8,_0x2c8233){const _0x4cd3cb=_0x4e7c38;var _0x493842;return this[_0x4cd3cb(0x51a)](_0x21cbf8,_0x2c8233)&&(((_0x493842=this[_0x4cd3cb(0x1f3)]['get'](Ur(_0x21cbf8,_0x2c8233)))==null?void 0x0:_0x493842[_0x4cd3cb(0x57a)])??!0x0);}['canCreateRecord'](_0x4ecf32){const _0x112cd4=_0x4e7c38;var _0x493bad;return this['_canEditTable'](_0x4ecf32)&&(((_0x493bad=this[_0x112cd4(0x224)]['get'](_0x4ecf32))==null?void 0x0:_0x493bad['createRecord'])??!0x0);}[_0x4e7c38(0x2bc)](_0xbf7bbc,_0x4d64ee){const _0x2aa16a=_0x4e7c38;var _0x431884;let _0x200e57=this[_0x2aa16a(0x39e)][_0x2aa16a(0x4d5)](Wr(_0xbf7bbc,_0x4d64ee));return this[_0x2aa16a(0x25f)](_0xbf7bbc,[K(_0xbf7bbc),J(_0xbf7bbc,_0x4d64ee)])&&(((_0x431884=this[_0x2aa16a(0x224)][_0x2aa16a(0x4d5)](_0xbf7bbc))==null?void 0x0:_0x431884[_0x2aa16a(0x35a)])??!0x0)&&((_0x200e57==null?void 0x0:_0x200e57[_0x2aa16a(0x35a)])??!0x0)&&((_0x200e57==null?void 0x0:_0x200e57[_0x2aa16a(0x4a7)])??!0x0);}['canDeleteRecord'](_0x567527,_0x366334){const _0x20226e=_0x4e7c38;var _0x5404bd,_0x28b6f3,_0x477be8;return this[_0x20226e(0x25f)](_0x567527,[K(_0x567527),J(_0x567527,_0x366334)])&&(((_0x5404bd=this[_0x20226e(0x224)][_0x20226e(0x4d5)](_0x567527))==null?void 0x0:_0x5404bd['edit'])??!0x0)&&(((_0x28b6f3=this[_0x20226e(0x39e)][_0x20226e(0x4d5)](Wr(_0x567527,_0x366334)))==null?void 0x0:_0x28b6f3[_0x20226e(0x35a)])??!0x0)&&(((_0x477be8=this[_0x20226e(0x39e)][_0x20226e(0x4d5)](Wr(_0x567527,_0x366334)))==null?void 0x0:_0x477be8[_0x20226e(0x57a)])??!0x0);}['canEditCell'](_0x49a6bf,_0x5eaa62,_0x45bda6){const _0x5a566d=_0x4e7c38;var _0x2b3af0,_0x2ac852,_0x221b4c;let _0xc7a705=this['_fieldPermissions'][_0x5a566d(0x4d5)](Ur(_0x49a6bf,_0x45bda6));return this['_canEdit'](_0x49a6bf,[K(_0x49a6bf),q(_0x49a6bf,_0x45bda6),J(_0x49a6bf,_0x5eaa62)])&&(((_0x2b3af0=this[_0x5a566d(0x224)][_0x5a566d(0x4d5)](_0x49a6bf))==null?void 0x0:_0x2b3af0[_0x5a566d(0x35a)])??!0x0)&&(((_0x2ac852=this[_0x5a566d(0x39e)][_0x5a566d(0x4d5)](Wr(_0x49a6bf,_0x5eaa62)))==null?void 0x0:_0x2ac852[_0x5a566d(0x35a)])??!0x0)&&(((_0x221b4c=this['_recordPermissions'][_0x5a566d(0x4d5)](Wr(_0x49a6bf,_0x5eaa62)))==null?void 0x0:_0x221b4c['editCell'])??!0x0)&&((_0xc7a705==null?void 0x0:_0xc7a705[_0x5a566d(0x35a)])??!0x0)&&((_0xc7a705==null?void 0x0:_0xc7a705[_0x5a566d(0x4a7)])??!0x0);}['canManageView'](_0x4ed4fa,_0x29faa0){const _0x5bdbe8=_0x4e7c38;var _0x7c623b,_0x9dd255,_0x2c32d2;return this[_0x5bdbe8(0x25f)](_0x4ed4fa,[K(_0x4ed4fa),Mr(_0x4ed4fa,_0x29faa0)])&&(((_0x7c623b=this[_0x5bdbe8(0x224)][_0x5bdbe8(0x4d5)](_0x4ed4fa))==null?void 0x0:_0x7c623b['edit'])??!0x0)&&(((_0x9dd255=this[_0x5bdbe8(0x255)]['get'](Gr(_0x4ed4fa,_0x29faa0)))==null?void 0x0:_0x9dd255[_0x5bdbe8(0x35a)])??!0x0)&&(((_0x2c32d2=this[_0x5bdbe8(0x224)][_0x5bdbe8(0x4d5)](_0x4ed4fa))==null?void 0x0:_0x2c32d2[_0x5bdbe8(0x45f)])??!0x0);}[_0x4e7c38(0x404)](_0x14a685,_0x5af6b2){const _0x3b1be6=_0x4e7c38;this[_0x3b1be6(0x291)][_0x3b1be6(0x205)](_0x14a685,{...this[_0x3b1be6(0x291)][_0x3b1be6(0x4d5)](_0x14a685),..._0x5af6b2}),_0x5af6b2[_0x3b1be6(0x35a)]!==void 0x0&&Ir(this['_permissionService'],_0x14a685,_0x14a685,_0x3ccddd[_0x3b1be6(0x319)],_0x5af6b2[_0x3b1be6(0x35a)]);}['setTablePermission'](_0x7e441f,_0x5f50dd){const _0x560a57=_0x4e7c38;this[_0x560a57(0x2f4)](_0x7e441f),this[_0x560a57(0x224)]['set'](_0x7e441f,{...this[_0x560a57(0x224)][_0x560a57(0x4d5)](_0x7e441f),..._0x5f50dd}),this['_setObjectEdit'](_0x7e441f,K(_0x7e441f),_0x5f50dd[_0x560a57(0x35a)]);}[_0x4e7c38(0x372)](_0x2e2344,_0x221a3e,_0x14236f){const _0x48ab9f=_0x4e7c38;this[_0x48ab9f(0x2f4)](_0x2e2344);let _0x1ccb25=Ur(_0x2e2344,_0x221a3e);this[_0x48ab9f(0x1f3)][_0x48ab9f(0x205)](_0x1ccb25,{...this[_0x48ab9f(0x1f3)][_0x48ab9f(0x4d5)](_0x1ccb25),..._0x14236f}),this[_0x48ab9f(0x24d)](_0x2e2344,q(_0x2e2344,_0x221a3e),_0x14236f[_0x48ab9f(0x35a)]);}['setRecordPermission'](_0x499075,_0x499a35,_0x25710d){const _0x443231=_0x4e7c38;this[_0x443231(0x2f4)](_0x499075);let _0x2adbec=Wr(_0x499075,_0x499a35);this[_0x443231(0x39e)][_0x443231(0x205)](_0x2adbec,{...this[_0x443231(0x39e)][_0x443231(0x4d5)](_0x2adbec),..._0x25710d}),this[_0x443231(0x24d)](_0x499075,J(_0x499075,_0x499a35),_0x25710d[_0x443231(0x35a)]);}[_0x4e7c38(0x3b4)](_0x3f4fe9,_0x25c368,_0x3b0bab){const _0x3d869f=_0x4e7c38;this[_0x3d869f(0x2f4)](_0x3f4fe9);let _0x43eb52=Gr(_0x3f4fe9,_0x25c368);this[_0x3d869f(0x255)][_0x3d869f(0x205)](_0x43eb52,{...this[_0x3d869f(0x255)][_0x3d869f(0x4d5)](_0x43eb52),..._0x3b0bab}),this[_0x3d869f(0x24d)](_0x3f4fe9,Mr(_0x3f4fe9,_0x25c368),_0x3b0bab['edit']);}[_0x4e7c38(0x24b)](_0x288d91){const _0x5c76b5=_0x4e7c38;this[_0x5c76b5(0x291)][_0x5c76b5(0x57a)](_0x288d91),Lr(this[_0x5c76b5(0x377)],_0x288d91,_0x288d91,_0x3ccddd[_0x5c76b5(0x319)]);}[_0x4e7c38(0x28c)](_0x5cc128){const _0x2ae9d3=_0x4e7c38;this['_tablePermissions'][_0x2ae9d3(0x57a)](_0x5cc128),this[_0x2ae9d3(0x2a0)](_0x5cc128,K(_0x5cc128));}['clearFieldPermission'](_0x2495c7,_0x59ed6d){const _0x4739c8=_0x4e7c38;this[_0x4739c8(0x1f3)][_0x4739c8(0x57a)](Ur(_0x2495c7,_0x59ed6d)),this[_0x4739c8(0x2a0)](_0x2495c7,q(_0x2495c7,_0x59ed6d));}[_0x4e7c38(0x2dd)](_0x381a93,_0x38cc25){const _0x1d404c=_0x4e7c38;this['_recordPermissions'][_0x1d404c(0x57a)](Wr(_0x381a93,_0x38cc25)),this[_0x1d404c(0x2a0)](_0x381a93,J(_0x381a93,_0x38cc25));}[_0x4e7c38(0x270)](_0x54ef2a,_0x35d67e){const _0x3bc73a=_0x4e7c38;this[_0x3bc73a(0x255)]['delete'](Gr(_0x54ef2a,_0x35d67e)),this[_0x3bc73a(0x2a0)](_0x54ef2a,Mr(_0x54ef2a,_0x35d67e));}[_0x4e7c38(0x2a7)](){const _0x49a262=_0x4e7c38;return{'bases':Object[_0x49a262(0x2c2)](this[_0x49a262(0x291)]),'tables':Object[_0x49a262(0x2c2)](this[_0x49a262(0x224)]),'fields':Object[_0x49a262(0x2c2)](this[_0x49a262(0x1f3)]),'records':Object[_0x49a262(0x2c2)](this['_recordPermissions']),'views':Object[_0x49a262(0x2c2)](this[_0x49a262(0x255)])};}[_0x4e7c38(0x48a)](_0x524cba){const _0x3a8259=_0x4e7c38;var _0x19aa42;return this[_0x3a8259(0x25f)](_0x524cba,[K(_0x524cba)])&&(((_0x19aa42=this[_0x3a8259(0x224)][_0x3a8259(0x4d5)](_0x524cba))==null?void 0x0:_0x19aa42[_0x3a8259(0x35a)])??!0x0);}[_0x4e7c38(0x25f)](_0x555b8a,_0x2afde6){const _0x3c3e3f=_0x4e7c38;var _0x23212;let _0x458de9=this['_resolveBaseId'](_0x555b8a);return!_0x458de9||zr(this['_permissionService'],_0x458de9,_0x2afde6)&&(((_0x23212=this[_0x3c3e3f(0x291)]['get'](_0x458de9))==null?void 0x0:_0x23212[_0x3c3e3f(0x35a)])??!0x0);}[_0x4e7c38(0x24d)](_0x2fe044,_0x1af343,_0x176b11){const _0x3a8d91=_0x4e7c38;if(_0x176b11===void 0x0)return;let _0x2ca60f=this[_0x3a8d91(0x443)](_0x2fe044);_0x2ca60f&&Ir(this[_0x3a8d91(0x377)],_0x2ca60f,_0x1af343,_0x3ccddd[_0x3a8d91(0x319)],_0x176b11);}['_clearObjectEdit'](_0x122dcf,_0x32b34e){const _0x3c7086=_0x4e7c38;let _0x189c1=this['_resolveBaseId'](_0x122dcf);_0x189c1&&Lr(this[_0x3c7086(0x377)],_0x189c1,_0x32b34e,_0x3ccddd[_0x3c7086(0x319)]);}[_0x4e7c38(0x443)](_0xe79dea){const _0xb24e03=_0x4e7c38;var _0x11bae1;let _0x4abda9=this[_0xb24e03(0x56e)]['getUnit'](_0xe79dea,_0x2eb623[_0xb24e03(0x583)]);return _0x4abda9?_0x4abda9[_0xb24e03(0x49c)]():(_0x11bae1=this['_instanceService'][_0xb24e03(0x281)](_0x2eb623[_0xb24e03(0x583)])[_0xb24e03(0x1c5)](_0x3f2d61=>!!_0x3f2d61['getSnapshot']()['tables'][_0xe79dea]))==null?void 0x0:_0x11bae1[_0xb24e03(0x49c)]();}['_rememberTable'](_0x2eac0c){const _0x29f506=_0x4e7c38;let _0x5331f4=this[_0x29f506(0x443)](_0x2eac0c);_0x5331f4&&this[_0x29f506(0x4d9)][_0x29f506(0x205)](_0x2eac0c,_0x5331f4);}['_clearUnit'](_0x243085){const _0x1e2668=_0x4e7c38;this[_0x1e2668(0x291)][_0x1e2668(0x57a)](_0x243085),this[_0x1e2668(0x4d9)]['forEach']((_0x4a2fb8,_0x39f8f8)=>{const _0x13dbfc=_0x1e2668;_0x4a2fb8===_0x243085&&(this[_0x13dbfc(0x224)][_0x13dbfc(0x57a)](_0x39f8f8),Hr(this[_0x13dbfc(0x1f3)],_0x39f8f8+'\x1f'),Hr(this['_recordPermissions'],_0x39f8f8+'\x1f'),Hr(this['_viewPermissions'],_0x39f8f8+'\x1f'),this[_0x13dbfc(0x4d9)]['delete'](_0x39f8f8));});}};Vr=X([Y(0x0,_0x1b4267),Y(0x1,_0x26755d)],Vr);function Hr(_0x317628,_0x26c00c){const _0x2edc46=_0x4e7c38;_0x317628[_0x2edc46(0x397)]((_0x559a20,_0x2b3afd)=>{const _0x167022=_0x2edc46;_0x2b3afd[_0x167022(0x3c5)](_0x26c00c)&&_0x317628[_0x167022(0x57a)](_0x2b3afd);});}function Ur(_0x5db0cd,_0x3886b2){return _0x5db0cd+'\x1f'+_0x3886b2;}function Wr(_0x18b3f8,_0x4023c4){return _0x18b3f8+'\x1f'+_0x4023c4;}function Gr(_0xa2a657,_0x2a904e){return _0xa2a657+'\x1f'+_0x2a904e;}const Kr=_0x3c907b(_0x4e7c38(0x54e));let qr=class{constructor(_0x28a645,_0x30228d=Jr(),_0x37d720={}){const _0x489889=_0x4e7c38;this[_0x489889(0x377)]=_0x28a645,this[_0x489889(0x21f)]=_0x30228d,this[_0x489889(0x2d9)]=_0x37d720,G(this,_0x489889(0x20d),new W()),G(this,'_applier',new z());}[_0x4e7c38(0x1c2)](_0x310bbf,_0x9f259,_0x506425){const _0x3823d2=_0x4e7c38;if(!this['_permissionService']['canCreateTable'](_0x310bbf['getUnitId']()))throw Error(_0x3823d2(0x527));_0x2a8300(_0x9f259),this['_apply'](_0x310bbf,this[_0x3823d2(0x20d)][_0x3823d2(0x1c2)](_0x310bbf['getSnapshot'](),_0x9f259,_0x506425));}[_0x4e7c38(0x204)](_0x17dec2,_0x5daa0f,_0x5d308f){const _0x4ffbe2=_0x4e7c38;if(!this[_0x4ffbe2(0x377)][_0x4ffbe2(0x52b)](_0x5daa0f))throw Error(_0x4ffbe2(0x347));this[_0x4ffbe2(0x360)](_0x17dec2,this[_0x4ffbe2(0x20d)][_0x4ffbe2(0x204)](_0x17dec2[_0x4ffbe2(0x2a7)](),_0x5daa0f,_0x5d308f));}['deleteTable'](_0x590311,_0x232cab){const _0x5698b5=_0x4e7c38;if(!this[_0x5698b5(0x377)][_0x5698b5(0x57b)](_0x232cab))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20table.');let _0x5a60f4=He(_0x590311[_0x5698b5(0x2a7)](),_0x232cab);if(_0x5a60f4[_0x5698b5(0x2b6)]>0x0)throw Error(_0x5698b5(0x1f9)+_0x5a60f4['map'](_0x2971de=>_0x2971de[_0x5698b5(0x2cc)]+'.'+_0x2971de['fieldId'])[_0x5698b5(0x50e)](',\x20')+').');this[_0x5698b5(0x360)](_0x590311,this[_0x5698b5(0x20d)][_0x5698b5(0x36b)](_0x590311['getSnapshot'](),_0x232cab));}[_0x4e7c38(0x344)](_0x4fd117,_0xf6b790,_0x2ae40b,_0x27b815,_0x342de2){const _0x51a865=_0x4e7c38;this[_0x51a865(0x360)](_0x4fd117,this[_0x51a865(0x1be)](_0x4fd117,_0xf6b790,_0x2ae40b,_0x27b815,_0x342de2));}['setRecordValues'](_0x45408a,_0xaa671b,_0x28fdaa){const _0x54b79a=_0x4e7c38;this['_apply'](_0x45408a,this[_0x54b79a(0x3f3)](_0x45408a,_0xaa671b,_0x28fdaa));}[_0x4e7c38(0x4c2)](_0x2c6a0d,_0x30c3cd,_0x3cbb5d){const _0x555c43=_0x4e7c38;this[_0x555c43(0x360)](_0x2c6a0d,this['createCreateRecordOp'](_0x2c6a0d,_0x30c3cd,_0x3cbb5d));}[_0x4e7c38(0x1be)](_0x5bb033,_0x1a9b9b,_0x170ffa,_0x334c55,_0xb4c83f){const _0x63fc11=_0x4e7c38;let _0x16e885=_0x5bb033['getSnapshot'](),_0x27e860=this[_0x63fc11(0x57f)](_0x16e885,_0x1a9b9b,_0x170ffa,_0x334c55,_0xb4c83f),_0x43c7b3=this['_withModifiedSystemValues'](_0x16e885,_0x1a9b9b,_0x170ffa,{[_0x334c55]:_0x27e860});return this['_factory']['setRecordValues'](_0x16e885,_0x1a9b9b,[_0x43c7b3]);}[_0x4e7c38(0x3f3)](_0x2bac76,_0x927fb7,_0x5386a4){const _0x3b9a01=_0x4e7c38;let _0x4c4105=_0x2bac76[_0x3b9a01(0x2a7)](),_0x2bb75a=_0x5386a4[_0x3b9a01(0x3e8)](_0x3712a7=>this[_0x3b9a01(0x57c)](_0x4c4105,_0x927fb7,_0x3712a7[_0x3b9a01(0x394)],{...Object[_0x3b9a01(0x2c2)](Object['entries'](_0x3712a7[_0x3b9a01(0x4c0)])[_0x3b9a01(0x3e8)](([_0x38651f,_0x29a0c4])=>[_0x38651f,this[_0x3b9a01(0x57f)](_0x4c4105,_0x927fb7,_0x3712a7[_0x3b9a01(0x394)],_0x38651f,_0x29a0c4)]))}));return this['_factory'][_0x3b9a01(0x1ba)](_0x4c4105,_0x927fb7,_0x2bb75a);}[_0x4e7c38(0x28a)](_0x3fca6a,_0x34bdd6,_0x719ede){const _0x4df118=_0x4e7c38;if(!this['_permissionService'][_0x4df118(0x39c)](_0x34bdd6))throw Error(_0x4df118(0x522));let _0x226274=_0x3fca6a[_0x4df118(0x2a7)](),_0x28353d=this[_0x4df118(0x4da)](_0x226274[_0x4df118(0x29e)][_0x34bdd6]);return this['_factory'][_0x4df118(0x4c2)](_0x226274,_0x34bdd6,this[_0x4df118(0x373)](_0x226274,_0x34bdd6,_0x719ede,_0x28353d));}[_0x4e7c38(0x325)](_0x4ce81e,_0x5c0adf,_0x375904){const _0xe35f03=_0x4e7c38;if(!this['_permissionService'][_0xe35f03(0x39c)](_0x5c0adf))throw Error(_0xe35f03(0x522));let _0x39c0e9=_0x4ce81e[_0xe35f03(0x2a7)]();return I(_0xe35f03(0x2ac),()=>{const _0x2ae5e5=_0xe35f03;let _0x1fe46f=this[_0x2ae5e5(0x4da)](_0x39c0e9[_0x2ae5e5(0x29e)][_0x5c0adf]);return this['_factory'][_0x2ae5e5(0x536)](_0x39c0e9,_0x5c0adf,_0x375904[_0x2ae5e5(0x3e8)](_0x50c49d=>this[_0x2ae5e5(0x373)](_0x39c0e9,_0x5c0adf,_0x50c49d,_0x1fe46f)));},{'existingRecords':Object[_0xe35f03(0x3ca)](_0x39c0e9['tables'][_0x5c0adf][_0xe35f03(0x2d1)])[_0xe35f03(0x2b6)],'records':_0x375904[_0xe35f03(0x2b6)]});}[_0x4e7c38(0x42d)](_0x36ea0b,_0x4f64f4,_0x45fc24,_0x4c62ba,_0x677048){const _0x820bbe=_0x4e7c38;if(!this[_0x820bbe(0x377)][_0x820bbe(0x2fc)](_0x4f64f4))throw Error(_0x820bbe(0x54a));let _0x362c50=_0x36ea0b['getSnapshot']();if(this[_0x820bbe(0x41e)](_0x362c50,_0x45fc24),_0x4c62ba===0x0)throw Error(_0x820bbe(0x3cc));let _0x4ac524=this[_0x820bbe(0x20d)][_0x820bbe(0x4fd)](_0x362c50,_0x4f64f4,{'field':_0x45fc24,'index':_0x4c62ba,'viewIndexes':_0x677048}),_0x266840=this['_createSystemFieldValuePatches'](_0x362c50,_0x4f64f4,_0x45fc24);if(!_0x266840['length'])return _0x4ac524;let _0xe39487=this[_0x820bbe(0x275)]['applyOp'](_0x362c50,_0x4ac524);return R([_0x4ac524,this[_0x820bbe(0x20d)][_0x820bbe(0x1ba)](_0xe39487,_0x4f64f4,_0x266840)]);}[_0x4e7c38(0x577)](_0x576cf9,_0x1e3829,_0x451a57){const _0x461786=_0x4e7c38;if(!this[_0x461786(0x377)][_0x461786(0x3ab)](_0x1e3829,_0x451a57))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20record.');this[_0x461786(0x360)](_0x576cf9,this[_0x461786(0x20d)][_0x461786(0x577)](_0x576cf9[_0x461786(0x2a7)](),_0x1e3829,_0x451a57));}['duplicateRecord'](_0x5ef693,_0x1c2d87,_0x21b2ee,_0x2d4542){const _0x18cab6=_0x4e7c38;if(!this['_permissionService'][_0x18cab6(0x39c)](_0x1c2d87))throw Error(_0x18cab6(0x522));this[_0x18cab6(0x360)](_0x5ef693,this['_factory'][_0x18cab6(0x4b9)](_0x5ef693[_0x18cab6(0x2a7)](),_0x1c2d87,_0x21b2ee,{..._0x2d4542,'values':{..._0x2d4542[_0x18cab6(0x4c0)],[_0x5802d7]:_0x2d4542['id']}}));}[_0x4e7c38(0x2c1)](_0x29edd7,_0x52f3c9,_0x3f2479,_0xb9d772){const _0x1d338e=_0x4e7c38;if(!this[_0x1d338e(0x377)][_0x1d338e(0x2bc)](_0x52f3c9,_0x3f2479))throw Error(_0x1d338e(0x435));this['_apply'](_0x29edd7,this[_0x1d338e(0x20d)][_0x1d338e(0x2c1)](_0x29edd7[_0x1d338e(0x2a7)](),_0x52f3c9,_0x3f2479,_0xb9d772));}['createField'](_0x264ae7,_0x22d247,_0x265a03,_0x18e6c0,_0x38bfae){const _0x15bbed=_0x4e7c38;this[_0x15bbed(0x360)](_0x264ae7,this[_0x15bbed(0x42d)](_0x264ae7,_0x22d247,_0x265a03,_0x18e6c0,_0x38bfae));}[_0x4e7c38(0x309)](_0x1b21c3,_0x2a66df,_0x542e1f,_0x5a180b){const _0x5af904=_0x4e7c38;var _0x2ff85f;if(!this['_permissionService']['canEditField'](_0x2a66df,_0x542e1f))throw Error(_0x5af904(0x46d));let _0x2ca017=_0x1b21c3[_0x5af904(0x2a7)](),_0x3a6f75=(_0x2ff85f=_0x2ca017['tables'][_0x2a66df])==null?void 0x0:_0x2ff85f[_0x5af904(0x531)][_0x542e1f];if(!_0x3a6f75||_0x542e1f===_0x5802d7)throw Error(_0x5af904(0x1fe));this[_0x5af904(0x41e)](_0x2ca017,{..._0x3a6f75,..._0x5a180b}),this['_apply'](_0x1b21c3,this[_0x5af904(0x20d)]['updateField'](_0x2ca017,_0x2a66df,_0x542e1f,_0x5a180b));}[_0x4e7c38(0x36f)](_0x133a61,_0x5466eb,_0x51904a,_0x44482e){const _0x23201f=_0x4e7c38;var _0x5680bf;if(!this['_permissionService']['canEditField'](_0x5466eb,_0x51904a))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x364578=_0x133a61[_0x23201f(0x2a7)](),_0x3cb573=(_0x5680bf=_0x364578[_0x23201f(0x29e)][_0x5466eb])==null?void 0x0:_0x5680bf[_0x23201f(0x531)][_0x51904a];if(!_0x3cb573||_0x51904a===_0x5802d7)throw Error(_0x23201f(0x3f7));this['_assertFieldDefinition'](_0x364578,{..._0x3cb573,..._0x44482e}),this[_0x23201f(0x360)](_0x133a61,this[_0x23201f(0x20d)]['changeFieldType'](_0x364578,_0x5466eb,_0x51904a,_0x44482e));}[_0x4e7c38(0x3c1)](_0x543dd5,_0x19c61a,_0x4d74b2){const _0x9ed4fc=_0x4e7c38;var _0xd791c8;if(((_0xd791c8=_0x543dd5[_0x9ed4fc(0x2a7)]()[_0x9ed4fc(0x29e)][_0x19c61a])==null?void 0x0:_0xd791c8[_0x9ed4fc(0x48d)])===_0x4d74b2||_0x4d74b2===_0x5802d7)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this[_0x9ed4fc(0x377)][_0x9ed4fc(0x450)](_0x19c61a,_0x4d74b2))throw Error(_0x9ed4fc(0x53c));this[_0x9ed4fc(0x360)](_0x543dd5,this[_0x9ed4fc(0x20d)][_0x9ed4fc(0x3c1)](_0x543dd5[_0x9ed4fc(0x2a7)](),_0x19c61a,_0x4d74b2));}[_0x4e7c38(0x37d)](_0x103187,_0x1d8d3d,_0x32197c,_0x2bf69b){const _0x4842e2=_0x4e7c38;if(!this[_0x4842e2(0x377)][_0x4842e2(0x51a)](_0x1d8d3d,_0x32197c))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x32197c===_0x5802d7||_0x2bf69b[_0x4842e2(0x409)]===_0x5802d7)throw Error(_0x4842e2(0x3e0));this[_0x4842e2(0x360)](_0x103187,this[_0x4842e2(0x20d)][_0x4842e2(0x37d)](_0x103187[_0x4842e2(0x2a7)](),_0x1d8d3d,_0x32197c,_0x2bf69b));}[_0x4e7c38(0x562)](_0x50a657,_0x3b4224,_0x3ea27c,_0x4b8a0f){const _0x232a81=_0x4e7c38;if(!this[_0x232a81(0x377)][_0x232a81(0x1f7)](_0x3b4224,_0x3ea27c['id']))throw Error(_0x232a81(0x46c));this[_0x232a81(0x360)](_0x50a657,this[_0x232a81(0x20d)]['createView'](_0x50a657[_0x232a81(0x2a7)](),_0x3b4224,_0x3ea27c,_0x4b8a0f));}[_0x4e7c38(0x2f2)](_0x43f900,_0x2ed944,_0x4b0294,_0x1a4f32){const _0x20196b=_0x4e7c38;if(!this['_permissionService'][_0x20196b(0x1f7)](_0x2ed944,_0x4b0294))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x20196b(0x360)](_0x43f900,this[_0x20196b(0x20d)][_0x20196b(0x2f2)](_0x43f900[_0x20196b(0x2a7)](),_0x2ed944,_0x4b0294,_0x1a4f32));}[_0x4e7c38(0x3f1)](_0x258371,_0x14e0c0,_0x19e706){const _0x48dc14=_0x4e7c38;if(!this[_0x48dc14(0x377)][_0x48dc14(0x1f7)](_0x14e0c0,_0x19e706))throw Error(_0x48dc14(0x46c));this['_apply'](_0x258371,this['_factory'][_0x48dc14(0x3f1)](_0x258371[_0x48dc14(0x2a7)](),_0x14e0c0,_0x19e706));}[_0x4e7c38(0x493)](_0x9f7d32,_0x45f847,_0x5bf87d,_0x48691c){const _0x343e5f=_0x4e7c38;if(!this[_0x343e5f(0x377)]['canManageView'](_0x45f847,_0x5bf87d))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x343e5f(0x360)](_0x9f7d32,this[_0x343e5f(0x20d)][_0x343e5f(0x493)](_0x9f7d32[_0x343e5f(0x2a7)](),_0x45f847,_0x5bf87d,_0x48691c));}['updateViewConfig'](_0x359fbd,_0x19eb69,_0x33444c,_0x11e07d){const _0x539337=_0x4e7c38;if(!this[_0x539337(0x377)][_0x539337(0x1f7)](_0x19eb69,_0x33444c))throw Error(_0x539337(0x46c));this[_0x539337(0x360)](_0x359fbd,this[_0x539337(0x20d)][_0x539337(0x3e4)](_0x359fbd['getSnapshot'](),_0x19eb69,_0x33444c,_0x11e07d));}[_0x4e7c38(0x276)](_0x12414e,_0x3e4429,_0x25a20b,_0x234381){const _0x20b3a3=_0x4e7c38;if(!this['_permissionService'][_0x20b3a3(0x1f7)](_0x3e4429,_0x25a20b))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x20b3a3(0x360)](_0x12414e,this[_0x20b3a3(0x20d)]['setViewFilter'](_0x12414e['getSnapshot'](),_0x3e4429,_0x25a20b,_0x234381));}['setViewSort'](_0xc558c3,_0x10d0fb,_0x19856b,_0x3c2781){const _0x1d07aa=_0x4e7c38;if(!this[_0x1d07aa(0x377)]['canManageView'](_0x10d0fb,_0x19856b))throw Error(_0x1d07aa(0x46c));this[_0x1d07aa(0x360)](_0xc558c3,this[_0x1d07aa(0x20d)][_0x1d07aa(0x374)](_0xc558c3[_0x1d07aa(0x2a7)](),_0x10d0fb,_0x19856b,_0x3c2781));}[_0x4e7c38(0x2ca)](_0x4a8d1c,_0xcb6204,_0x538c9f,_0x3fa4fe){const _0x36168a=_0x4e7c38;if(!this[_0x36168a(0x377)]['canManageView'](_0xcb6204,_0x538c9f))throw Error(_0x36168a(0x46c));this[_0x36168a(0x360)](_0x4a8d1c,this['_factory']['setViewGroup'](_0x4a8d1c[_0x36168a(0x2a7)](),_0xcb6204,_0x538c9f,_0x3fa4fe));}['setViewFieldVisible'](_0x197f5a,_0x4c154d,_0x434e27,_0x4c8479,_0x12c4ef){const _0x12d73b=_0x4e7c38;if(!this[_0x12d73b(0x377)][_0x12d73b(0x1f7)](_0x4c154d,_0x434e27))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x12d73b(0x360)](_0x197f5a,this['_factory'][_0x12d73b(0x2e7)](_0x197f5a['getSnapshot'](),_0x4c154d,_0x434e27,_0x4c8479,_0x12c4ef));}[_0x4e7c38(0x4dd)](_0x3d2264,_0x38c399,_0x1d9c45,_0x23ec9d,_0x4bd471){const _0x25c312=_0x4e7c38;if(!this[_0x25c312(0x377)]['canManageView'](_0x38c399,_0x1d9c45))throw Error(_0x25c312(0x46c));this['_apply'](_0x3d2264,this['_factory'][_0x25c312(0x4dd)](_0x3d2264[_0x25c312(0x2a7)](),_0x38c399,_0x1d9c45,_0x23ec9d,_0x4bd471));}[_0x4e7c38(0x4c9)](_0x582432,_0x1730d7,_0x54f37a,_0x356f4f,_0x59796e){const _0xed2174=_0x4e7c38;if(!this[_0xed2174(0x377)][_0xed2174(0x1f7)](_0x1730d7,_0x54f37a))throw Error(_0xed2174(0x46c));this[_0xed2174(0x360)](_0x582432,this[_0xed2174(0x20d)][_0xed2174(0x4c9)](_0x582432[_0xed2174(0x2a7)](),_0x1730d7,_0x54f37a,_0x356f4f,_0x59796e));}[_0x4e7c38(0x360)](_0x3e60db,_0x4f4263){const _0x38fe92=_0x4e7c38;let _0x594714=_0x3e60db[_0x38fe92(0x2a7)]();_0x3e60db[_0x38fe92(0x411)](this[_0x38fe92(0x275)]['applyOp'](_0x594714,_0x4f4263));}[_0x4e7c38(0x373)](_0x21af76,_0x2b5391,_0x2dcc2f,_0x1c9d64=this['_createNumberingAllocators'](_0x21af76[_0x4e7c38(0x29e)][_0x2b5391])){const _0x147cb3=_0x4e7c38;let _0x20358c=_0x21af76[_0x147cb3(0x29e)][_0x2b5391],_0x172efa=_0x2dcc2f[_0x147cb3(0x4f0)]??_0x2dcc2f[_0x147cb3(0x4af)]??this[_0x147cb3(0x2ad)](),_0x4390da={..._0x2dcc2f,'createdBy':_0x2dcc2f[_0x147cb3(0x4f0)]??_0x172efa,'updatedBy':_0x2dcc2f[_0x147cb3(0x4af)]??_0x172efa,'values':{..._0x2dcc2f[_0x147cb3(0x4c0)]}};return _0x4390da[_0x147cb3(0x4c0)][_0x5802d7]=_0x4390da['id'],_0x20358c[_0x147cb3(0x4dc)][_0x147cb3(0x397)](_0x51cbd0=>{const _0x5ce131=_0x147cb3;let _0x39c456=_0x20358c['fields'][_0x51cbd0];if(_0x39c456&&_0x4390da[_0x5ce131(0x4c0)][_0x51cbd0]===void 0x0)switch(_0x39c456[_0x5ce131(0x30b)]){case _0x377615[_0x5ce131(0x34c)]:var _0x11f765;_0x4390da[_0x5ce131(0x4c0)][_0x51cbd0]=((_0x11f765=_0x1c9d64['get'](_0x51cbd0))==null?void 0x0:_0x11f765())??this['_createNumberingAllocator'](_0x20358c,_0x51cbd0)();break;case _0x377615[_0x5ce131(0x1cd)]:_0x4390da[_0x5ce131(0x4f0)]&&(_0x4390da['values'][_0x51cbd0]=_0x4390da[_0x5ce131(0x4f0)]);break;case _0x377615[_0x5ce131(0x3c0)]:_0x4390da[_0x5ce131(0x4af)]&&(_0x4390da[_0x5ce131(0x4c0)][_0x51cbd0]=_0x4390da[_0x5ce131(0x4af)]);break;case _0x377615['CreatedAt']:_0x4390da['values'][_0x51cbd0]=B(_0x4390da[_0x5ce131(0x42f)]);break;case _0x377615[_0x5ce131(0x4ec)]:_0x4390da[_0x5ce131(0x4c0)][_0x51cbd0]=B(_0x4390da[_0x5ce131(0x3d8)]);break;default:{let _0x2fad65=_0x39c456['defaultValue'];_0x2fad65!=null&&_0x2fad65!==''&&!(Array[_0x5ce131(0x56b)](_0x2fad65)&&_0x2fad65[_0x5ce131(0x2b6)]===0x0)&&(_0x4390da[_0x5ce131(0x4c0)][_0x51cbd0]=_0x2fad65);}}}),_0x4390da;}[_0x4e7c38(0x57c)](_0x2dc1ff,_0xa59d7b,_0x5c4a69,_0x3af5ab){const _0x3e1482=_0x4e7c38;var _0x14d03f,_0x4b556d;let _0x1faa98=_0x2dc1ff[_0x3e1482(0x29e)][_0xa59d7b],_0x2cad52=((_0x14d03f=(_0x4b556d=this[_0x3e1482(0x2d9)])[_0x3e1482(0x32e)])==null?void 0x0:_0x14d03f[_0x3e1482(0x386)](_0x4b556d))??Date[_0x3e1482(0x32e)](),_0x1dbba4=this[_0x3e1482(0x2ad)](),_0x3bdf9f={..._0x3af5ab};return _0x1faa98[_0x3e1482(0x4dc)]['forEach'](_0x58fd98=>{const _0x30baf2=_0x3e1482;let _0x3721cb=_0x1faa98[_0x30baf2(0x531)][_0x58fd98];_0x3721cb&&(_0x3721cb[_0x30baf2(0x30b)]===_0x377615[_0x30baf2(0x4ec)]&&(_0x3bdf9f[_0x58fd98]=B(_0x2cad52)),_0x3721cb[_0x30baf2(0x30b)]===_0x377615[_0x30baf2(0x3c0)]&&_0x1dbba4&&(_0x3bdf9f[_0x58fd98]=_0x1dbba4));}),{'recordId':_0x5c4a69,'values':_0x3bdf9f,'recordPatch':{'updatedAt':_0x2cad52,..._0x1dbba4?{'updatedBy':_0x1dbba4}:{}}};}[_0x4e7c38(0x316)](_0x198349,_0x7fa742,_0x50121b){const _0x14daf1=_0x4e7c38;let _0x259318=_0x198349[_0x14daf1(0x29e)][_0x7fa742];return!_0x259318||!Yr(_0x50121b)?[]:_0x50121b[_0x14daf1(0x30b)]===_0x377615[_0x14daf1(0x34c)]?this[_0x14daf1(0x4c4)](_0x259318,_0x50121b['id']):Object[_0x14daf1(0x4c0)](_0x259318[_0x14daf1(0x2d1)])[_0x14daf1(0x470)](_0x47bfeb=>{const _0x17b4c4=_0x14daf1;let _0x279927=this[_0x17b4c4(0x27b)](_0x50121b,_0x47bfeb);return _0x279927===void 0x0?[]:[{'recordId':_0x47bfeb['id'],'values':{[_0x50121b['id']]:_0x279927}}];});}[_0x4e7c38(0x27b)](_0x1177a5,_0x288398){const _0x3c5b73=_0x4e7c38;switch(_0x1177a5['type']){case _0x377615[_0x3c5b73(0x1cd)]:return _0x288398[_0x3c5b73(0x4f0)]??this[_0x3c5b73(0x2ad)]();case _0x377615['UpdatedBy']:return _0x288398[_0x3c5b73(0x4af)]??this[_0x3c5b73(0x2ad)]();case _0x377615[_0x3c5b73(0x3d5)]:return B(_0x288398[_0x3c5b73(0x42f)]??Date[_0x3c5b73(0x32e)]());case _0x377615[_0x3c5b73(0x4ec)]:return B(_0x288398['updatedAt']??Date[_0x3c5b73(0x32e)]());default:return;}}[_0x4e7c38(0x4da)](_0xf99775){const _0x2986de=_0x4e7c38;let _0xe562ca=new Map();return _0xf99775&&_0xf99775[_0x2986de(0x4dc)][_0x2986de(0x397)](_0x1d5fcf=>{const _0x1bc4fb=_0x2986de;let _0x5b0df6=_0xf99775['fields'][_0x1d5fcf];(_0x5b0df6==null?void 0x0:_0x5b0df6['type'])===_0x377615[_0x1bc4fb(0x34c)]&&_0xe562ca['set'](_0x1d5fcf,this[_0x1bc4fb(0x330)](_0xf99775,_0x1d5fcf));}),_0xe562ca;}['_createNumberingAllocator'](_0x32651e,_0x2d221a){const _0x13a3b6=_0x4e7c38;let _0x5e203d=Object['values'](_0x32651e[_0x13a3b6(0x2d1)])[_0x13a3b6(0x54c)]((_0x58f60a,_0x248524)=>{const _0x41dfa8=_0x13a3b6;let _0x11991d=Number(_0x248524['values'][_0x2d221a]);return Number[_0x41dfa8(0x338)](_0x11991d)?Math['max'](_0x58f60a,_0x11991d):_0x58f60a;},0x0);return()=>String(++_0x5e203d);}[_0x4e7c38(0x4c4)](_0x136161,_0x28dd59){const _0x1502c9=_0x4e7c38;let _0x52b60f=this[_0x1502c9(0x421)](_0x136161),_0x45453e=this[_0x1502c9(0x330)](_0x136161,_0x28dd59);return _0x52b60f[_0x1502c9(0x470)](_0xeefd2=>this['_isNonEmptyCellValue'](_0xeefd2[_0x1502c9(0x4c0)][_0x28dd59])?[]:[{'recordId':_0xeefd2['id'],'values':{[_0x28dd59]:_0x45453e()}}]);}[_0x4e7c38(0x421)](_0x466ce0){const _0x23e716=_0x4e7c38;var _0x4a7b45;let _0x452f10=Object[_0x23e716(0x4c0)](_0x466ce0[_0x23e716(0x2d1)]),_0x1215dc=new Map(_0x452f10[_0x23e716(0x3e8)](_0x2cd45b=>[_0x2cd45b['id'],_0x2cd45b])),_0x3ae35a=[],_0x594167=new Set();(_0x4a7b45=_0x466ce0[_0x23e716(0x52d)])==null||_0x4a7b45[_0x23e716(0x397)](_0xf3b32a=>{const _0x2e1fc0=_0x23e716;let _0x31de78=_0x1215dc[_0x2e1fc0(0x4d5)](_0xf3b32a);_0x31de78&&(_0x3ae35a[_0x2e1fc0(0x3e2)](_0x31de78),_0x594167['add'](_0xf3b32a));});let _0x23d625=_0x452f10[_0x23e716(0x20f)](_0x10ec80=>!_0x594167['has'](_0x10ec80['id']))[_0x23e716(0x266)]((_0x476888,_0x38f3a7)=>String(_0x476888[_0x23e716(0x24c)]??_0x476888['id'])[_0x23e716(0x582)](String(_0x38f3a7[_0x23e716(0x24c)]??_0x38f3a7['id']))||_0x476888['id'][_0x23e716(0x582)](_0x38f3a7['id']));return[..._0x3ae35a,..._0x23d625];}['_isNonEmptyCellValue'](_0x54a1f4){const _0x3e664e=_0x4e7c38;return _0x54a1f4!=null&&_0x54a1f4!==''&&!(Array[_0x3e664e(0x56b)](_0x54a1f4)&&_0x54a1f4[_0x3e664e(0x2b6)]===0x0);}['_getCurrentUserId'](){const _0x27ab97=_0x4e7c38;var _0x4d0b46,_0x283227,_0x5c7915,_0x1fdc96;return((_0x4d0b46=(_0x283227=this['_runtimeContext'])[_0x27ab97(0x4ef)])==null?void 0x0:_0x4d0b46[_0x27ab97(0x386)](_0x283227))??((_0x5c7915=(_0x1fdc96=this[_0x27ab97(0x2d9)])[_0x27ab97(0x4aa)])==null||(_0x5c7915=_0x5c7915['call'](_0x1fdc96))==null?void 0x0:_0x5c7915[_0x27ab97(0x55a)])??void 0x0;}[_0x4e7c38(0x57f)](_0x3a73a7,_0xe4f52b,_0x44d552,_0x8d14c7,_0x4723e3){const _0xf6d8b9=_0x4e7c38;var _0x489c1d;if(!this['_permissionService'][_0xf6d8b9(0x228)](_0xe4f52b,_0x44d552,_0x8d14c7))throw Error(_0xf6d8b9(0x2f5));let _0x382c70=(_0x489c1d=_0x3a73a7[_0xf6d8b9(0x29e)][_0xe4f52b])==null?void 0x0:_0x489c1d[_0xf6d8b9(0x531)][_0x8d14c7];if(!_0x382c70)throw Error(_0xf6d8b9(0x322)+_0x8d14c7+_0xf6d8b9(0x4a8));let _0x567826=this['_fieldRegistry'][_0xf6d8b9(0x4d5)](_0x382c70[_0xf6d8b9(0x30b)]);if(_0x382c70[_0xf6d8b9(0x339)]||_0x382c70[_0xf6d8b9(0x26d)]||!_0x567826['getCapabilities'](_0x382c70)[_0xf6d8b9(0x1d7)])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0x55a119=_0x567826['normalize'](_0x4723e3,_0x382c70),_0x8fb446=_0x567826[_0xf6d8b9(0x1bc)](_0x55a119,_0x382c70);if(!_0x8fb446[_0xf6d8b9(0x29f)])throw Error(_0x8fb446['reason']??_0xf6d8b9(0x408));let _0x28a784=_0x382c70[_0xf6d8b9(0x30b)]===_0x377615[_0xf6d8b9(0x23d)]?Ve(_0x3a73a7,_0x382c70,_0x55a119):{'valid':!0x0};if(!_0x28a784[_0xf6d8b9(0x29f)])throw Error(_0x28a784[_0xf6d8b9(0x3be)]??_0xf6d8b9(0x575));return _0x55a119;}[_0x4e7c38(0x41e)](_0x1df3f9,_0x4ca1d6){const _0x2d7cbb=_0x4e7c38;if(_0x4ca1d6['id']===_0x5802d7||_0x4ca1d6[_0x2d7cbb(0x30b)]===_0x377615['RecordId']||_0x56e40f(_0x4ca1d6['name']))throw Error(_0x2d7cbb(0x30e));let _0x217a61=Be(_0x1df3f9,_0x4ca1d6);if(!_0x217a61[_0x2d7cbb(0x29f)])throw Error(_0x217a61[_0x2d7cbb(0x3be)]??'[BaseCommandService]:\x20invalid\x20field\x20definition.');}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x4fb580=_0x4e7c38;let _0x24fa03=new hr();return zn()[_0x4fb580(0x397)](_0x1c96fc=>_0x24fa03[_0x4fb580(0x27e)](_0x1c96fc)),_0x24fa03;}function Yr(_0x4d082a){const _0x2ae2e3=_0x4e7c38;return _0x4d082a['type']===_0x377615[_0x2ae2e3(0x34c)]||_0x4d082a[_0x2ae2e3(0x30b)]===_0x377615['CreatedBy']||_0x4d082a['type']===_0x377615[_0x2ae2e3(0x3c0)]||_0x4d082a[_0x2ae2e3(0x30b)]===_0x377615[_0x2ae2e3(0x3d5)]||_0x4d082a[_0x2ae2e3(0x30b)]===_0x377615['UpdatedAt'];}const Xr=new Set([_0x377615[_0x4e7c38(0x3a3)],_0x377615['Rating'],_0x377615[_0x4e7c38(0x1e2)]]);function Zr(_0xb28b69){const _0x3e2a6c=_0x4e7c38;let _0x27d160=_0xb28b69['fields'][_0xb28b69[_0x3e2a6c(0x48d)]];if((!_0x27d160||_0x27d160[_0x3e2a6c(0x26d)]!==!0x0&&_0x27d160['id'][_0x3e2a6c(0x1e9)]()!=='id'&&_0x27d160['name'][_0x3e2a6c(0x42c)]()[_0x3e2a6c(0x1e9)]()!=='id')&&_0x27d160)return _0x27d160['id'];for(let _0x17651f of _0xb28b69[_0x3e2a6c(0x4dc)]){let _0x4bc355=_0xb28b69[_0x3e2a6c(0x531)][_0x17651f];if(_0x4bc355&&_0x4bc355['id']!==_0xb28b69[_0x3e2a6c(0x48d)]&&_0x4bc355['system']!==!0x0&&_0x4bc355[_0x3e2a6c(0x30b)]!==_0x377615[_0x3e2a6c(0x4c5)])return _0x4bc355['id'];}return _0xb28b69[_0x3e2a6c(0x48d)];}function Qr(_0x1f35b6,_0x9ecf76=[],_0x52391e=0x5){const _0x171816=_0x4e7c38;let _0x37d27b=new Set(_0x9ecf76['filter'](_0x439708=>!!_0x439708)),_0x49f9cf=[],_0xe2ecc6=[];for(let _0x299321 of _0x1f35b6[_0x171816(0x4dc)]){let _0x290d2d=_0x1f35b6['fields'][_0x299321];_0x290d2d&&_0x290d2d['system']!==!0x0&&_0x290d2d[_0x171816(0x30b)]!==_0x377615[_0x171816(0x4c5)]&&!_0x37d27b[_0x171816(0x4d6)](_0x290d2d['id'])&&(Xr[_0x171816(0x4d6)](_0x290d2d[_0x171816(0x30b)])?_0x49f9cf:_0xe2ecc6)[_0x171816(0x3e2)](_0x290d2d['id']);}return[..._0x49f9cf,..._0xe2ecc6][_0x171816(0x479)](0x0,_0x52391e);}function $r(){const _0x143b01=_0x4e7c38;return[{'type':_0xa6488a[_0x143b01(0x571)],'i18nKey':_0x143b01(0x1bf),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x1b34db=_0x143b01;throw Error(_0x1b34db(0x4be));}},{'type':_0xa6488a[_0x143b01(0x466)],'i18nKey':'base.viewType.kanban','createDefaultConfig':_0x502c66=>{const _0x5abd74=_0x143b01;let _0x149638=ei(_0x502c66);return{'groupFieldId':_0x149638,'coverFieldId':null,'cardLayout':_0x5abd74(0x556),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x502c66[_0x5abd74(0x48d)],'fieldIds':Qr(_0x502c66,[_0x502c66[_0x5abd74(0x48d)],_0x149638])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x5c29be=_0x143b01;throw Error(_0x5c29be(0x331));}},{'type':_0xa6488a['Calendar'],'i18nKey':_0x143b01(0x1d1),'createDefaultConfig':_0xe4f93f=>{const _0x24db85=_0x143b01;let _0x4729a3=ti(_0xe4f93f);return{'startDateFieldId':_0x4729a3,'endDateFieldId':ni(_0xe4f93f,_0x4729a3),'titleFieldId':_0xe4f93f['primaryFieldId'],'mode':_0x24db85(0x564),'timeslotSize':_0x24db85(0x576),'timeZone':_0x24db85(0x31c),'displayColor':{'type':_0x24db85(0x333),'color':_0x24db85(0x297)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x270e2d=_0x143b01;throw Error(_0x270e2d(0x587));}},{'type':_0xa6488a[_0x143b01(0x451)],'i18nKey':_0x143b01(0x4d2),'createDefaultConfig':_0x23698a=>{const _0x42fe66=_0x143b01;let _0x3f4ab2=ti(_0x23698a);return{'startDateFieldId':_0x3f4ab2,'endDateFieldId':ni(_0x23698a,_0x3f4ab2)??_0x3f4ab2,'titleFieldId':_0x23698a[_0x42fe66(0x48d)],'scale':'month','showTodayLine':!0x0,'displayColor':{'type':_0x42fe66(0x333),'color':'#14b8a6'},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x26f4bc=_0x143b01;throw Error(_0x26f4bc(0x476));}},{'type':_0xa6488a[_0x143b01(0x226)],'i18nKey':_0x143b01(0x4d4),'createDefaultConfig':_0x19a07f=>{const _0x1db7e8=_0x143b01;let _0xc159c0=Zr(_0x19a07f);return{'coverFieldId':null,'cardLayout':_0x1db7e8(0x556),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0xc159c0,'coverFieldId':null,'fieldIds':Qr(_0x19a07f,[_0xc159c0,_0x19a07f[_0x1db7e8(0x48d)]])},'cardSize':_0x1db7e8(0x576)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x41cd36=_0x143b01;throw Error(_0x41cd36(0x47e));}}];}function ei(_0xf7d6bd){const _0x635eb=_0x4e7c38;var _0x583a12,_0x260f9e,_0x1ea509;let _0x5dbc80=_0xf7d6bd['fieldOrder'][_0x635eb(0x3e8)](_0x35cd60=>_0xf7d6bd['fields'][_0x35cd60])[_0x635eb(0x20f)](_0x3ab736=>!!_0x3ab736);return((_0x583a12=_0x5dbc80['find'](_0x18e248=>_0x18e248[_0x635eb(0x30b)]===_0x377615['SingleSelect']||_0x18e248[_0x635eb(0x30b)]===_0x377615[_0x635eb(0x1eb)]||_0x18e248['type']===_0x377615[_0x635eb(0x1c4)]))==null?void 0x0:_0x583a12['id'])??((_0x260f9e=_0x5dbc80[_0x635eb(0x1c5)](_0x45e8d5=>_0x45e8d5[_0x635eb(0x30b)]===_0x377615[_0x635eb(0x46e)]))==null?void 0x0:_0x260f9e['id'])??((_0x1ea509=_0x5dbc80['find'](_0x2fc0aa=>_0x2fc0aa[_0x635eb(0x30b)]===_0x377615['Date']||_0x2fc0aa[_0x635eb(0x30b)]===_0x377615[_0x635eb(0x3d5)]||_0x2fc0aa[_0x635eb(0x30b)]===_0x377615['UpdatedAt']))==null?void 0x0:_0x1ea509['id'])??_0xf7d6bd[_0x635eb(0x48d)];}function ti(_0xd68f0c){const _0x1025df=_0x4e7c38;var _0x51298f;return((_0x51298f=_0xd68f0c[_0x1025df(0x4dc)]['map'](_0x4acc43=>_0xd68f0c[_0x1025df(0x531)][_0x4acc43])['find'](ri))==null?void 0x0:_0x51298f['id'])??'';}function ni(_0x50f93e,_0x4d08f4){const _0x42593a=_0x4e7c38;var _0x47ebed;return(_0x47ebed=_0x50f93e['fieldOrder'][_0x42593a(0x3e8)](_0x48bf9e=>_0x50f93e[_0x42593a(0x531)][_0x48bf9e])[_0x42593a(0x1c5)](_0x52796c=>ri(_0x52796c)&&_0x52796c['id']!==_0x4d08f4))==null?void 0x0:_0x47ebed['id'];}function ri(_0x3ac8d4){const _0xc9b116=_0x4e7c38;return!!_0x3ac8d4&&_0x3ac8d4[_0xc9b116(0x30b)]===_0x377615[_0xc9b116(0x55e)]&&_0x3ac8d4['readonly']!==!0x0&&_0x3ac8d4['system']!==!0x0;}const ii=_0x3c907b('base.projection.service'),ai=new Set([_0x377615[_0x4e7c38(0x242)],_0x377615[_0x4e7c38(0x40e)],_0x377615[_0x4e7c38(0x3a3)],_0x377615[_0x4e7c38(0x33a)],_0x377615[_0x4e7c38(0x55e)],_0x377615[_0x4e7c38(0x3d5)],_0x377615['UpdatedAt'],_0x377615['Checkbox']]),oi=0x5265c00;let si=class extends _0x3aec08{constructor(_0x3a7318){const _0x2bc9e1=_0x4e7c38;super(),this[_0x2bc9e1(0x21f)]=_0x3a7318,G(this,_0x2bc9e1(0x492),new Map()),G(this,_0x2bc9e1(0x44c),new WeakMap()),G(this,_0x2bc9e1(0x436),new Map()),G(this,'_projectedViewRowsCache',new Map()),G(this,_0x2bc9e1(0x4bf),new Map()),G(this,_0x2bc9e1(0x497),new Map()),G(this,_0x2bc9e1(0x549),0x0),G(this,'_tableRevisions',new Map()),G(this,_0x2bc9e1(0x586),new Map()),G(this,_0x2bc9e1(0x4d8),new Map()),G(this,'_viewRevisions',new Map());}[_0x4e7c38(0x343)](_0x366781){const _0x5e7c7c=_0x4e7c38;return this[_0x5e7c7c(0x492)][_0x5e7c7c(0x205)](_0x366781[_0x5e7c7c(0x30b)],_0x366781),_0x3e2bb5(()=>this[_0x5e7c7c(0x492)][_0x5e7c7c(0x57a)](_0x366781[_0x5e7c7c(0x30b)]));}[_0x4e7c38(0x447)](_0x5d306b,_0x368355,_0xfee454){const _0x53ffb2=_0x4e7c38;var _0x509dc5,_0x3e08a7,_0x1ef48b;return I(_0x53ffb2(0x33f),()=>{const _0x2f93ce=_0x53ffb2;let _0x34a600=this[_0x2f93ce(0x1ca)](_0x5d306b,_0x368355,_0xfee454);if(_0x34a600)return _0x34a600;let _0x29ce2c=_0x5d306b[_0x2f93ce(0x29e)][_0x368355],_0x564a8a=_0x29ce2c==null?void 0x0:_0x29ce2c[_0x2f93ce(0x460)][_0xfee454];if(!_0x29ce2c||!_0x564a8a)return this[_0x2f93ce(0x206)](_0x5d306b,_0x368355,_0xfee454,{'type':_0x2f93ce(0x574),'viewType':(_0x564a8a==null?void 0x0:_0x564a8a[_0x2f93ce(0x30b)])??_0xa6488a[_0x2f93ce(0x571)],'reason':_0x2f93ce(0x403)});let _0x1e5410;switch(_0x564a8a[_0x2f93ce(0x30b)]){case _0xa6488a[_0x2f93ce(0x571)]:_0x1e5410=this[_0x2f93ce(0x491)](_0x29ce2c,_0x564a8a);break;case _0xa6488a[_0x2f93ce(0x451)]:_0x1e5410=this[_0x2f93ce(0x585)](_0x29ce2c,_0x564a8a);break;case _0xa6488a[_0x2f93ce(0x466)]:_0x1e5410=this[_0x2f93ce(0x214)](_0x29ce2c,_0x564a8a);break;case _0xa6488a[_0x2f93ce(0x3a9)]:_0x1e5410=this[_0x2f93ce(0x4e4)](_0x29ce2c,_0x564a8a);break;case _0xa6488a[_0x2f93ce(0x226)]:_0x1e5410=this[_0x2f93ce(0x56a)](_0x29ce2c,_0x564a8a);break;default:_0x1e5410={'type':_0x2f93ce(0x574),'viewType':_0x564a8a['type'],'reason':_0x2f93ce(0x403)};}return this[_0x2f93ce(0x206)](_0x5d306b,_0x368355,_0xfee454,_0x1e5410);},{'tableId':_0x368355,'viewId':_0xfee454,'viewType':(_0x509dc5=_0x5d306b['tables'][_0x368355])==null||(_0x509dc5=_0x509dc5[_0x53ffb2(0x460)][_0xfee454])==null?void 0x0:_0x509dc5[_0x53ffb2(0x30b)],'records':((_0x3e08a7=_0x5d306b[_0x53ffb2(0x29e)][_0x368355])==null||(_0x3e08a7=_0x3e08a7['recordOrder'])==null?void 0x0:_0x3e08a7[_0x53ffb2(0x2b6)])??Object['keys'](((_0x1ef48b=_0x5d306b[_0x53ffb2(0x29e)][_0x368355])==null?void 0x0:_0x1ef48b[_0x53ffb2(0x2d1)])??{})[_0x53ffb2(0x2b6)]});}[_0x4e7c38(0x4f2)](_0x237b87,_0x301c7f,_0x9dcef3){const _0xbbd0b3=_0x4e7c38;var _0x1d9ed2,_0xb33e70,_0x301e40;let _0x577769=_0x237b87[_0xbbd0b3(0x29e)][_0x301c7f],_0x3a618c=_0x577769==null?void 0x0:_0x577769['views'][_0x9dcef3];if(!_0x577769||!_0x3a618c)throw Error(_0xbbd0b3(0x3fb)+_0x9dcef3+'\x22.');let _0x4aac6c=_0x2c9d0a=>!!_0x577769['fields'][_0x2c9d0a],_0x31fa13={..._0x3a618c,'filter':_0x3a618c[_0xbbd0b3(0x20f)]?{..._0x3a618c[_0xbbd0b3(0x20f)],'conditions':_0x3a618c['filter'][_0xbbd0b3(0x477)][_0xbbd0b3(0x20f)](_0x4d23b5=>_0x4aac6c(_0x4d23b5[_0xbbd0b3(0x446)]))}:_0x3a618c[_0xbbd0b3(0x20f)],'sort':(_0x1d9ed2=_0x3a618c['sort'])==null?void 0x0:_0x1d9ed2['filter'](_0x43cd91=>_0x4aac6c(_0x43cd91[_0xbbd0b3(0x446)])),'group':(_0xb33e70=_0x3a618c[_0xbbd0b3(0x3b2)])==null?void 0x0:_0xb33e70[_0xbbd0b3(0x20f)](_0x232450=>_0x4aac6c(_0x232450[_0xbbd0b3(0x446)])),'fieldOrder':(_0x301e40=_0x3a618c['fieldOrder'])==null?void 0x0:_0x301e40[_0xbbd0b3(0x20f)](_0x4aac6c),'fieldSettings':Object['fromEntries'](Object[_0xbbd0b3(0x502)](_0x3a618c[_0xbbd0b3(0x568)]??{})[_0xbbd0b3(0x20f)](([_0x4e3cdb])=>_0x4aac6c(_0x4e3cdb)))};if(_0x31fa13[_0xbbd0b3(0x30b)]==='kanban'){var _0x551635;let _0x404e63=_0x31fa13[_0xbbd0b3(0x554)]??{},_0x577fb0=this[_0xbbd0b3(0x4fb)](_0x577769,_0x31fa13),_0x399ac4=this[_0xbbd0b3(0x523)](_0x577769,(_0x551635=_0x404e63[_0xbbd0b3(0x349)])==null?void 0x0:_0x551635[_0xbbd0b3(0x1e8)]);_0x31fa13[_0xbbd0b3(0x554)]={..._0x404e63,'groupFieldId':_0x577fb0??_0x404e63[_0xbbd0b3(0x2bf)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x577769,_0x404e63),'cardLayout':_0x404e63[_0xbbd0b3(0x21c)]===_0xbbd0b3(0x356)?_0xbbd0b3(0x356):_0xbbd0b3(0x556),'showFieldNames':_0x404e63['showFieldNames']!==!0x1,'fieldSettings':Object['fromEntries'](Object['entries'](_0x404e63[_0xbbd0b3(0x568)]??{})['filter'](([_0x4d1536])=>_0x4aac6c(_0x4d1536))),'columnSettings':_0x404e63['columnSettings']??{},'card':{..._0x404e63[_0xbbd0b3(0x349)]??{},'titleFieldId':_0x399ac4,'fieldIds':this[_0xbbd0b3(0x26b)](_0x577769,_0x31fa13,_0x577fb0??'',_0x399ac4)}};}return{'repaired':JSON[_0xbbd0b3(0x2af)](_0x31fa13)!==JSON[_0xbbd0b3(0x2af)](_0x3a618c),'view':_0x31fa13};}[_0x4e7c38(0x208)](){const _0x16b179=_0x4e7c38;this[_0x16b179(0x549)]++;}[_0x4e7c38(0x27c)](_0x3fe4d9,_0x15d779,_0x28f441){const _0x597eac=_0x4e7c38;let _0x2fee0a=this['_getCellRevision'](_0x3fe4d9)+0x1;this['_cellRevisions']['set'](_0x3fe4d9,_0x2fee0a);let _0x492b9f=this[_0x597eac(0x4d8)][_0x597eac(0x4d5)](_0x3fe4d9)??[];_0x492b9f['push']({'revision':_0x2fee0a,'recordId':_0x15d779,'fieldId':_0x28f441}),this[_0x597eac(0x4d8)][_0x597eac(0x205)](_0x3fe4d9,_0x492b9f);}[_0x4e7c38(0x2eb)](_0x1b9c83,_0x4d0f4b){const _0x393a10=_0x4e7c38;this[_0x393a10(0x3cf)](_0x1b9c83);}['invalidateByView'](_0x5468ee,_0x52a6c6){const _0x1dcca6=_0x4e7c38;this[_0x1dcca6(0x312)][_0x1dcca6(0x205)](this[_0x1dcca6(0x35d)](_0x5468ee,_0x52a6c6),this[_0x1dcca6(0x235)](_0x5468ee,_0x52a6c6)+0x1);}[_0x4e7c38(0x1ca)](_0x580231,_0x41d715,_0x1ccbd3){const _0x1cf4d4=_0x4e7c38;var _0x40e63b;let _0x55a9fe=(_0x40e63b=this[_0x1cf4d4(0x44c)][_0x1cf4d4(0x4d5)](_0x580231))==null?void 0x0:_0x40e63b[_0x1cf4d4(0x4d5)](this['_cacheKey'](_0x41d715,_0x1ccbd3));return _0x55a9fe&&_0x55a9fe[_0x1cf4d4(0x47d)]===this['_globalRevision']&&_0x55a9fe[_0x1cf4d4(0x287)]===this[_0x1cf4d4(0x229)](_0x41d715)&&_0x55a9fe['cellRevision']===this[_0x1cf4d4(0x371)](_0x41d715)&&_0x55a9fe[_0x1cf4d4(0x33d)]===this[_0x1cf4d4(0x235)](_0x41d715,_0x1ccbd3)?_0x55a9fe[_0x1cf4d4(0x56f)]:null;}[_0x4e7c38(0x206)](_0x354f8c,_0x851649,_0x34e2a1,_0x1451d4){const _0x4f704f=_0x4e7c38;let _0x579d8b=this[_0x4f704f(0x44c)]['get'](_0x354f8c);return _0x579d8b||(_0x579d8b=new Map(),this['_projectionCache'][_0x4f704f(0x205)](_0x354f8c,_0x579d8b)),_0x579d8b[_0x4f704f(0x205)](this[_0x4f704f(0x370)](_0x851649,_0x34e2a1),{'projection':_0x1451d4,'globalRevision':this[_0x4f704f(0x549)],'tableRevision':this[_0x4f704f(0x229)](_0x851649),'cellRevision':this[_0x4f704f(0x371)](_0x851649),'viewRevision':this[_0x4f704f(0x235)](_0x851649,_0x34e2a1)}),_0x1451d4;}['_bumpTableRevision'](_0x35e2a3){const _0x3a8445=_0x4e7c38;this[_0x3a8445(0x241)][_0x3a8445(0x205)](_0x35e2a3,this[_0x3a8445(0x229)](_0x35e2a3)+0x1);}[_0x4e7c38(0x229)](_0x333e29){const _0x554a63=_0x4e7c38;return this[_0x554a63(0x241)][_0x554a63(0x4d5)](_0x333e29)??0x0;}['_getCellRevision'](_0x2ef57d){const _0x1c741b=_0x4e7c38;return this['_cellRevisions'][_0x1c741b(0x4d5)](_0x2ef57d)??0x0;}['_getViewRevision'](_0xf1efee,_0xa0f28f){const _0x3a98bb=_0x4e7c38;return this[_0x3a98bb(0x312)][_0x3a98bb(0x4d5)](this[_0x3a98bb(0x35d)](_0xf1efee,_0xa0f28f))??0x0;}[_0x4e7c38(0x370)](_0x48b7b2,_0x41bae3){return _0x48b7b2+'\x00'+_0x41bae3;}[_0x4e7c38(0x4b3)](_0x46b932,_0x3869ad){const _0x391538=_0x4e7c38;return _0x46b932+'\x00'+this[_0x391538(0x1f1)](_0x3869ad);}['_groupsCacheKey'](_0x10b49d,_0x14223c,_0x222c25){const _0x1e1d6c=_0x4e7c38;return _0x10b49d+'\x00'+this[_0x1e1d6c(0x1f1)](_0x14223c)+'\x00'+this[_0x1e1d6c(0x2be)](_0x222c25);}[_0x4e7c38(0x1f1)](_0x3ad906){const _0xdf97f=_0x4e7c38;return _0x3ad906?mi({'filter':di(_0x3ad906['filter']),'sort':pi(_0x3ad906[_0xdf97f(0x266)])}):_0xdf97f(0x36a);}[_0x4e7c38(0x2be)](_0x51e50d){const _0x258999=_0x4e7c38;return mi(_0x51e50d[_0x258999(0x3e8)](_0x407d7c=>({'fieldId':_0x407d7c['fieldId'],'direction':_0x407d7c[_0x258999(0x1e7)]??null})));}[_0x4e7c38(0x35d)](_0x74d7f2,_0x5e1d9e){return _0x74d7f2+'\x00'+_0x5e1d9e;}[_0x4e7c38(0x491)](_0xb04d2,_0x1f3ae9){const _0x3fa43b=_0x4e7c38;var _0x2c0550;let _0xb49b00=Je(_0xb04d2),_0x7e836c=this['_projectRows'](_0xb04d2,_0x1f3ae9),_0x331734=(_0x2c0550=_0x1f3ae9[_0x3fa43b(0x20f)])!=null&&_0x2c0550['conditions'][_0x3fa43b(0x2b6)]?this[_0x3fa43b(0x243)](_0xb04d2,{..._0x1f3ae9,'filter':null}):_0x7e836c,_0x29cec8=nt(this[_0x3fa43b(0x2dc)](_0xb04d2,_0xb49b00,_0x1f3ae9['id'],_0x331734[_0x3fa43b(0x3e8)](_0x4b207b=>_0x4b207b[_0x3fa43b(0x394)])),_0x331734,new Set(_0x7e836c[_0x3fa43b(0x3e8)](_0x1491fb=>_0x1491fb[_0x3fa43b(0x394)])));return{'type':_0xa6488a[_0x3fa43b(0x571)],'fields':this['_projectFields'](_0xb04d2,_0x1f3ae9),'rows':_0x29cec8[_0x3fa43b(0x2ff)],'groups':this['_projectHierarchyGroups'](_0xb04d2,_0x1f3ae9,_0x29cec8[_0x3fa43b(0x2ff)],_0x29cec8[_0x3fa43b(0x3c2)]),'hierarchy':_0x29cec8['hierarchy'],'frozenFieldCount':typeof _0x1f3ae9['config']['frozenFieldCount']==_0x3fa43b(0x43a)?_0x1f3ae9[_0x3fa43b(0x554)][_0x3fa43b(0x4cd)]:0x0};}[_0x4e7c38(0x2dc)](_0x307da5,_0x4c032f,_0x495a9a,_0x7345fc){const _0x1789e9=_0x4e7c38;let _0x576cc1=_0x307da5['id']+'\x00'+_0x4c032f+'\x00'+_0x495a9a,_0x2e263c=this[_0x1789e9(0x371)](_0x307da5['id']),_0x53501e=this[_0x1789e9(0x497)]['get'](_0x576cc1);if(_0x53501e&&_0x53501e[_0x1789e9(0x47d)]===this[_0x1789e9(0x549)]&&_0x53501e[_0x1789e9(0x287)]===this[_0x1789e9(0x229)](_0x307da5['id'])&&_0x53501e[_0x1789e9(0x286)][_0x1789e9(0x2b6)]===_0x7345fc[_0x1789e9(0x2b6)]&&_0x53501e[_0x1789e9(0x286)]['every']((_0x4ce308,_0x5d7003)=>_0x4ce308===_0x7345fc[_0x5d7003])){if(_0x53501e['cellRevision']===_0x2e263c&&_0x53501e['table']===_0x307da5)return _0x53501e['index'];if(!this[_0x1789e9(0x4d0)](_0x307da5['id'],_0x53501e[_0x1789e9(0x43f)],_0x2e263c,new Set([_0x4c032f])))return this[_0x1789e9(0x497)][_0x1789e9(0x205)](_0x576cc1,{..._0x53501e,'table':_0x307da5,'cellRevision':_0x2e263c}),_0x53501e['index'];}let _0x380f91=tt(_0x307da5,_0x4c032f,_0x7345fc);return this[_0x1789e9(0x497)][_0x1789e9(0x205)](_0x576cc1,{'table':_0x307da5,'index':_0x380f91,'orderedRecordIds':_0x7345fc,'globalRevision':this[_0x1789e9(0x549)],'tableRevision':this[_0x1789e9(0x229)](_0x307da5['id']),'cellRevision':_0x2e263c}),_0x380f91;}[_0x4e7c38(0x53a)](_0x56a747,_0x50f7ea,_0x38953a,_0x1087a2){const _0x148a3d=_0x4e7c38;var _0x3d43dd;if(!((_0x3d43dd=_0x50f7ea[_0x148a3d(0x3b2)])!=null&&_0x3d43dd['length']))return[];let _0x231270=new Map(_0x38953a[_0x148a3d(0x3e8)](_0x1cadf7=>[_0x1cadf7[_0x148a3d(0x394)],_0x1cadf7])),_0x15fa68=_0x1087a2[_0x148a3d(0x23f)]['flatMap'](_0x44fd1f=>{const _0x313eec=_0x148a3d;let _0x21958c=_0x231270[_0x313eec(0x4d5)](_0x44fd1f);return _0x21958c?[_0x21958c]:[];}),_0x5ba8c0=this[_0x148a3d(0x55f)](_0x56a747,_0x50f7ea,_0x15fa68),_0x48c985=new Map(_0x1087a2['orderedRecordIds'][_0x148a3d(0x3e8)]((_0x37fe3f,_0x15d43d)=>[_0x37fe3f,_0x15d43d])),_0xc0aaa2=_0x31bf16=>{const _0x5778e5=_0x148a3d;let _0x5af29d=_0x1087a2['nodes'][_0x31bf16],_0x2778fe=_0x48c985[_0x5778e5(0x4d5)](_0x31bf16)??-0x1;return _0x2778fe<0x0||!_0x5af29d?[]:_0x1087a2[_0x5778e5(0x286)]['slice'](_0x2778fe,_0x5af29d['subtreeEndIndex']+0x1);},_0x20fd55=_0x2f6c47=>{const _0x4a9f1b=_0x148a3d;var _0x4101d3,_0x2daeb4;return{..._0x2f6c47,'recordIds':(_0x4101d3=_0x2f6c47[_0x4a9f1b(0x2d2)])!=null&&_0x4101d3[_0x4a9f1b(0x2b6)]?_0x2f6c47[_0x4a9f1b(0x3ad)]:_0x2f6c47[_0x4a9f1b(0x3ad)][_0x4a9f1b(0x470)](_0xc0aaa2),'children':(_0x2daeb4=_0x2f6c47['children'])==null?void 0x0:_0x2daeb4[_0x4a9f1b(0x3e8)](_0x20fd55)};};return _0x5ba8c0[_0x148a3d(0x3e8)](_0x20fd55);}[_0x4e7c38(0x214)](_0x63bc18,_0x53557b){const _0x5b39ae=_0x4e7c38;var _0x9847aa;let _0x9449e5=this[_0x5b39ae(0x4fb)](_0x63bc18,_0x53557b),_0x43323c=_0x9449e5?_0x63bc18[_0x5b39ae(0x531)][_0x9449e5]:void 0x0;if(!_0x43323c)return{'type':'invalid','viewType':_0xa6488a[_0x5b39ae(0x466)],'reason':_0x5b39ae(0x353),'fieldId':_0x53557b['config']['groupFieldId']};let _0x284919=this['_projectRows'](_0x63bc18,_0x53557b),_0x62d4cb=this[_0x5b39ae(0x4cb)](_0x63bc18,_0x53557b),_0x35671b=_0x53557b[_0x5b39ae(0x554)]??{},_0x435c16=this['_resolveCardTitleFieldId'](_0x63bc18,(_0x9847aa=_0x35671b[_0x5b39ae(0x349)])==null?void 0x0:_0x9847aa[_0x5b39ae(0x1e8)]),_0x972e17=this[_0x5b39ae(0x26b)](_0x63bc18,_0x53557b,_0x43323c['id'],_0x435c16),_0x5d387d=new Map();if(F(_0x63bc18,_0x43323c['id'])){let _0x2b05cd=this['_getHierarchyIndex'](_0x63bc18,_0x43323c['id'],_0x53557b['id'],_0x284919[_0x5b39ae(0x3e8)](_0x6b9ed8=>_0x6b9ed8[_0x5b39ae(0x394)])),_0x49da2f=new Map();return _0x284919['forEach'](_0x1f2a56=>{const _0x37aec1=_0x5b39ae;let _0x4a8d1a=_0x2b05cd[_0x37aec1(0x3ed)][_0x37aec1(0x4d5)](_0x1f2a56['recordId'])??null,_0x6ec0f2=_0x4a8d1a??'',_0x531568=_0x4a8d1a?_0x63bc18[_0x37aec1(0x2d1)][_0x4a8d1a]:void 0x0,_0x2c8022=_0x49da2f['get'](_0x6ec0f2)??{'key':_0x6ec0f2,'title':_0x531568?String(yt(_0x63bc18,_0x531568['id'],_0x63bc18[_0x37aec1(0x48d)])??_0x4a8d1a):this[_0x37aec1(0x539)](_0x43323c,_0x6ec0f2,_0x35671b),'recordIds':[]};_0x2c8022[_0x37aec1(0x3ad)][_0x37aec1(0x3e2)](_0x1f2a56[_0x37aec1(0x394)]),_0x49da2f['set'](_0x6ec0f2,_0x2c8022);}),{'type':_0xa6488a['Kanban'],'fields':_0x62d4cb,'rows':_0x284919,'groups':[],'groupFieldId':_0x43323c['id'],'titleFieldId':_0x435c16,'coverFieldId':this[_0x5b39ae(0x588)](_0x63bc18,_0x35671b),'cardLayout':_0x35671b['cardLayout']===_0x5b39ae(0x356)?_0x5b39ae(0x356):_0x5b39ae(0x556),'showFieldNames':_0x35671b['showFieldNames']!==!0x1,'visibleCardFieldIds':_0x972e17,'lanes':['',..._0x2b05cd[_0x5b39ae(0x286)]][_0x5b39ae(0x470)](_0x42927c=>{const _0x4d5297=_0x5b39ae;let _0x2fc953=_0x49da2f[_0x4d5297(0x4d5)](_0x42927c);return _0x2fc953!=null&&_0x2fc953[_0x4d5297(0x3ad)][_0x4d5297(0x2b6)]?[_0x2fc953]:[];})};}return this[_0x5b39ae(0x21b)](_0x43323c,_0x35671b)[_0x5b39ae(0x397)](_0x3422da=>_0x5d387d[_0x5b39ae(0x205)](_0x3422da[_0x5b39ae(0x340)],{..._0x3422da,'recordIds':[]})),_0x284919['forEach'](_0x30e8a3=>{const _0x1ba603=_0x5b39ae;this['_kanbanGroupKeys'](_0x43323c,_0x30e8a3[_0x1ba603(0x4c0)][_0x43323c['id']])[_0x1ba603(0x397)](_0x15b74d=>{const _0x181e7e=_0x1ba603;let _0xdc5cef=_0x5d387d[_0x181e7e(0x4d5)](_0x15b74d)??{'key':_0x15b74d,'title':this['_kanbanLaneTitle'](_0x43323c,_0x15b74d,_0x35671b),'color':this[_0x181e7e(0x391)](_0x43323c,_0x15b74d,_0x35671b),'recordIds':[]};_0xdc5cef['recordIds'][_0x181e7e(0x3e2)](_0x30e8a3['recordId']),_0x5d387d[_0x181e7e(0x205)](_0x15b74d,_0xdc5cef);});}),{'type':_0xa6488a[_0x5b39ae(0x466)],'fields':_0x62d4cb,'rows':_0x284919,'groups':this[_0x5b39ae(0x55f)](_0x63bc18,_0x53557b,_0x284919),'groupFieldId':_0x43323c['id'],'titleFieldId':_0x435c16,'coverFieldId':this[_0x5b39ae(0x588)](_0x63bc18,_0x35671b),'cardLayout':_0x35671b[_0x5b39ae(0x21c)]===_0x5b39ae(0x356)?'compose':_0x5b39ae(0x556),'showFieldNames':_0x35671b[_0x5b39ae(0x42e)]!==!0x1,'visibleCardFieldIds':_0x972e17,'lanes':Array[_0x5b39ae(0x501)](_0x5d387d['values']())};}[_0x4e7c38(0x4fb)](_0x3ddcc2,_0x13cdaa){const _0x371f84=_0x4e7c38;var _0x27eeaa;let _0x465215=(_0x27eeaa=_0x13cdaa[_0x371f84(0x554)])==null?void 0x0:_0x27eeaa[_0x371f84(0x2bf)];return _0x465215&&this[_0x371f84(0x26a)](_0x3ddcc2,_0x465215)?_0x465215:this['_findKanbanGroupField'](_0x3ddcc2,_0x402f54=>this['_isAllowedKanbanGroupField'](_0x402f54));}[_0x4e7c38(0x52e)](_0x1319de,_0x2ea73c){const _0x39d934=_0x4e7c38;for(let _0x433806 of _0x1319de[_0x39d934(0x4dc)]){let _0x1392ff=_0x1319de['fields'][_0x433806];if(_0x1392ff&&_0x2ea73c(_0x1392ff))return _0x1392ff['id'];}return null;}[_0x4e7c38(0x26a)](_0x241a31,_0xe1db02){const _0x191e97=_0x4e7c38;let _0x5ac107=_0x241a31[_0x191e97(0x531)][_0xe1db02];return this[_0x191e97(0x24e)](_0x5ac107)||F(_0x241a31,_0xe1db02);}[_0x4e7c38(0x24e)](_0x156053){const _0x5d6651=_0x4e7c38;return!!_0x156053&&(_0x156053[_0x5d6651(0x30b)]===_0x377615['SingleSelect']||_0x156053[_0x5d6651(0x30b)]===_0x377615[_0x5d6651(0x1eb)]||_0x156053['type']===_0x377615[_0x5d6651(0x33a)]||_0x156053[_0x5d6651(0x30b)]===_0x377615[_0x5d6651(0x4f8)]||_0x156053['type']===_0x377615[_0x5d6651(0x1c4)]||_0x156053[_0x5d6651(0x30b)]===_0x377615[_0x5d6651(0x1e2)]);}['_isColorfulKanbanGroupField'](_0x2e53f9){const _0x525107=_0x4e7c38;return _0x2e53f9['type']===_0x377615[_0x525107(0x38d)]||_0x2e53f9[_0x525107(0x30b)]===_0x377615['MultiSelect'];}[_0x4e7c38(0x588)](_0x41d06d,_0x4a3b2d){const _0x48858e=_0x4e7c38;var _0x2f541a;let _0x2144d3=_0x4a3b2d[_0x48858e(0x500)]??((_0x2f541a=_0x4a3b2d[_0x48858e(0x349)])==null?void 0x0:_0x2f541a[_0x48858e(0x500)])??null;if(!_0x2144d3)return null;let _0x1fe0ca=_0x41d06d[_0x48858e(0x531)][_0x2144d3];return _0x1fe0ca&&this[_0x48858e(0x3b0)](_0x1fe0ca)[_0x48858e(0x51c)]?_0x1fe0ca['id']:null;}['_resolveKanbanCardFieldIds'](_0x46bdb9,_0x5ae9ab,_0x2dc4d4,_0x5da4dd=this['_resolveCardTitleFieldId'](_0x46bdb9,((()=>{const _0x1731d9=_0x4e7c38;var _0x28e16d;return(_0x28e16d=_0x5ae9ab['config'])==null||(_0x28e16d=_0x28e16d[_0x1731d9(0x349)])==null?void 0x0:_0x28e16d[_0x1731d9(0x1e8)];})()))){const _0x10ab6d=_0x4e7c38;var _0x59240e;let _0x8687c9=_0x5ae9ab[_0x10ab6d(0x554)]??{},_0x3df962=(_0x59240e=_0x8687c9[_0x10ab6d(0x349)])!=null&&(_0x59240e=_0x59240e[_0x10ab6d(0x1c7)])!=null&&_0x59240e['length']?_0x8687c9[_0x10ab6d(0x349)]['fieldIds']:Qr(_0x46bdb9,[_0x5da4dd,_0x46bdb9[_0x10ab6d(0x48d)],_0x2dc4d4]),_0x2be65f=_0x8687c9['fieldSettings']??{};return _0x3df962[_0x10ab6d(0x20f)](_0x46834d=>{const _0x57b40f=_0x10ab6d;var _0x218720,_0x533198;let _0x3af255=_0x46bdb9['fields'][_0x46834d];return!(!_0x3af255||_0x3af255['system']===!0x0||_0x3af255['type']===_0x377615['RecordId']||_0x3af255['id']===_0x2dc4d4||_0x3af255['id']===_0x5da4dd||(_0x218720=_0x5ae9ab['fieldSettings'])!=null&&(_0x218720=_0x218720[_0x46834d])!=null&&_0x218720[_0x57b40f(0x332)]||(_0x533198=_0x2be65f[_0x46834d])!=null&&_0x533198[_0x57b40f(0x332)]);})['sort']((_0x2d7683,_0x225431)=>{const _0x2e44b8=_0x10ab6d;var _0x17558,_0x4e7125;return(((_0x17558=_0x2be65f[_0x2d7683])==null?void 0x0:_0x17558[_0x2e44b8(0x1df)])??_0x3df962[_0x2e44b8(0x20c)](_0x2d7683))-(((_0x4e7125=_0x2be65f[_0x225431])==null?void 0x0:_0x4e7125[_0x2e44b8(0x1df)])??_0x3df962[_0x2e44b8(0x20c)](_0x225431));});}[_0x4e7c38(0x21b)](_0x2c85ec,_0x4b5554){const _0x161caa=_0x4e7c38;var _0xe025ec;let _0x654d13=(Array[_0x161caa(0x56b)]((_0xe025ec=_0x2c85ec[_0x161caa(0x554)])==null?void 0x0:_0xe025ec['options'])?_0x2c85ec[_0x161caa(0x554)][_0x161caa(0x246)]:[])[_0x161caa(0x470)]((_0xe07a31,_0x3bfd8a)=>{const _0x8b6054=_0x161caa;if(_0xe07a31==null)return[];let _0x4d48b6=typeof _0xe07a31=='string'?{'id':_0xe07a31,'name':_0xe07a31,'color':void 0x0}:_0xe07a31,_0x3a7c37=String(_0x4d48b6['id']??_0x4d48b6['name']??_0x8b6054(0x4a0)+(_0x3bfd8a+0x1));return[{'key':_0x3a7c37,'title':String(_0x4d48b6[_0x8b6054(0x39a)]??_0x4d48b6['id']??_0x3a7c37),'color':this[_0x8b6054(0x391)](_0x2c85ec,_0x3a7c37,_0x4b5554)}];});return Object[_0x161caa(0x502)](_0x4b5554[_0x161caa(0x543)]??{})[_0x161caa(0x397)](([_0x3c5c8a,_0x44fdb2])=>{const _0x177d76=_0x161caa;_0x654d13['some'](_0x18e32a=>_0x18e32a[_0x177d76(0x340)]===_0x3c5c8a)||_0x654d13[_0x177d76(0x3e2)]({'key':_0x3c5c8a,'title':this['_isColorfulKanbanGroupField'](_0x2c85ec)?_0x44fdb2['title']??this[_0x177d76(0x539)](_0x2c85ec,_0x3c5c8a,_0x4b5554):this[_0x177d76(0x539)](_0x2c85ec,_0x3c5c8a,_0x4b5554),'color':this[_0x177d76(0x391)](_0x2c85ec,_0x3c5c8a,_0x4b5554)});}),_0x654d13;}[_0x4e7c38(0x1fb)](_0x5ec7c7,_0x41664b){const _0xa406f2=_0x4e7c38;let _0x3d86d8=_0x188b52=>{const _0x280026=_0x16bf;var _0x2f20ed;let _0x3010a8=_0x188b52==null?'':String(_0x188b52);return!_0x3010a8||!this[_0x280026(0x43c)](_0x5ec7c7)?_0x3010a8:((_0x2f20ed=Li(_0x5ec7c7,_0x3010a8))==null?void 0x0:_0x2f20ed['id'])??_0x3010a8;};if(Array[_0xa406f2(0x56b)](_0x41664b)){let _0x2a82d6=_0x41664b[_0xa406f2(0x3e8)](_0x3d86d8)[_0xa406f2(0x20f)](_0x377355=>_0x377355!=='');return _0x2a82d6[_0xa406f2(0x2b6)]?_0x2a82d6:[''];}return[_0x3d86d8(_0x41664b)];}[_0x4e7c38(0x539)](_0x53d8f4,_0x8f1b44,_0x3d52e2){const _0x3c6db7=_0x4e7c38;if(!_0x8f1b44)return _0x3c6db7(0x537);let _0x4a66a9=Li(_0x53d8f4,_0x8f1b44);return(_0x4a66a9==null?void 0x0:_0x4a66a9[_0x3c6db7(0x39a)])??_0x8f1b44;}[_0x4e7c38(0x391)](_0x281c3e,_0x48fd46,_0x431639){const _0x50934a=_0x4e7c38;var _0x71257e;if(this[_0x50934a(0x43c)](_0x281c3e))return(_0x71257e=Li(_0x281c3e,_0x48fd46))==null?void 0x0:_0x71257e[_0x50934a(0x480)];}[_0x4e7c38(0x4e4)](_0x2021b8,_0x3c6b16){const _0x6d1817=_0x4e7c38;let _0x3e2816=this[_0x6d1817(0x45c)](_0x2021b8,_0x3c6b16[_0x6d1817(0x554)]??{}),_0x5f0a02=_0x2021b8['fields'][_0x3e2816['startDateFieldId']];if(!_0x5f0a02||_0x5f0a02['type']!==_0x377615[_0x6d1817(0x55e)]||_0x5f0a02['readonly']===!0x0||_0x5f0a02[_0x6d1817(0x26d)]===!0x0||!this[_0x6d1817(0x3b0)](_0x5f0a02)[_0x6d1817(0x55c)])return{'type':_0x6d1817(0x574),'viewType':_0xa6488a[_0x6d1817(0x3a9)],'reason':_0x6d1817(0x26f),'fieldId':_0x3e2816[_0x6d1817(0x2fd)]};let _0x5ac76e=_0x3e2816[_0x6d1817(0x369)]?_0x2021b8['fields'][_0x3e2816['endDateFieldId']]:void 0x0,_0x5615ad=this[_0x6d1817(0x243)](_0x2021b8,_0x3c6b16);return{'type':_0xa6488a[_0x6d1817(0x3a9)],'config':_0x3e2816,'fields':this[_0x6d1817(0x4cb)](_0x2021b8,_0x3c6b16),'rows':_0x5615ad,'groups':this[_0x6d1817(0x55f)](_0x2021b8,_0x3c6b16,_0x5615ad),'events':_0x5615ad[_0x6d1817(0x470)](_0x2bbb24=>{const _0x40a7a3=_0x6d1817;let _0x31c03e=dn(_0x2bbb24[_0x40a7a3(0x4c0)][_0x3e2816[_0x40a7a3(0x2fd)]]);if(!Number[_0x40a7a3(0x338)](_0x31c03e))return[];let _0x84a2ca=_0x2bbb24[_0x40a7a3(0x4c0)][_0x3e2816['startDateFieldId']],_0x3f3792=_0x3e2816[_0x40a7a3(0x369)]==null?void 0x0:_0x2bbb24[_0x40a7a3(0x4c0)][_0x3e2816[_0x40a7a3(0x369)]],_0x5d0655=_0x3e2816['endDateFieldId']==null?void 0x0:dn(_0x3f3792),_0x11ce2b=Number['isFinite'](_0x5d0655)?_0x5d0655:void 0x0;return[{'recordId':_0x2bbb24[_0x40a7a3(0x394)],'title':this[_0x40a7a3(0x2bd)](_0x2021b8,_0x2bbb24,_0x3e2816[_0x40a7a3(0x1e8)]),'start':_0x31c03e,'end':_0x11ce2b,'color':this[_0x40a7a3(0x449)](_0x2021b8,_0x2bbb24,_0x3e2816),'startMs':_0x31c03e,'endMs':_0x11ce2b,'allDay':this['_isAllDayCalendarEvent'](_0x5f0a02,_0x5ac76e,_0x84a2ca,_0x3f3792),'fieldValues':_0x2bbb24[_0x40a7a3(0x4c0)]}];})};}['_normalizeCalendarConfig'](_0x4b3a9f,_0x340954){const _0x4453e7=_0x4e7c38;let _0x49e965=this[_0x4453e7(0x584)](_0x4b3a9f,_0x340954[_0x4453e7(0x2fd)]),_0x2a183a=_0x340954[_0x4453e7(0x369)]&&this[_0x4453e7(0x301)](_0x4b3a9f,_0x340954['endDateFieldId'])?_0x340954[_0x4453e7(0x369)]:this['_findCalendarDateFieldId'](_0x4b3a9f,_0x49e965)??void 0x0,_0x29dc65=_0x340954['titleFieldId']?_0x4b3a9f[_0x4453e7(0x531)][_0x340954['titleFieldId']]:void 0x0,_0x49486f=_0x29dc65&&_0x29dc65[_0x4453e7(0x26d)]!==!0x0&&_0x29dc65[_0x4453e7(0x30b)]!==_0x377615[_0x4453e7(0x4c5)]?_0x340954[_0x4453e7(0x1e8)]:_0x4b3a9f[_0x4453e7(0x48d)],_0x57c009=_0x340954[_0x4453e7(0x4d7)]==='day'||_0x340954[_0x4453e7(0x4d7)]==='week'?_0x340954[_0x4453e7(0x4d7)]:'month',_0x441bf4=_0x340954[_0x4453e7(0x327)]===_0x4453e7(0x33e)||_0x340954[_0x4453e7(0x327)]===_0x4453e7(0x304)?_0x340954[_0x4453e7(0x327)]:_0x4453e7(0x576),_0x3ce01d=typeof _0x340954[_0x4453e7(0x469)]==_0x4453e7(0x457)&&_0x340954['timeZone'][_0x4453e7(0x42c)]()?_0x340954[_0x4453e7(0x469)]:_0x4453e7(0x31c),_0x346ddf=this[_0x4453e7(0x4f3)](_0x4b3a9f,_0x340954);return{..._0x340954,'startDateFieldId':_0x49e965,'endDateFieldId':_0x2a183a,'titleFieldId':_0x49486f,'mode':_0x57c009,'timeslotSize':_0x441bf4,'timeZone':_0x3ce01d,'displayColor':_0x346ddf,'fieldSettings':Object[_0x4453e7(0x2c2)](Object['entries'](_0x340954[_0x4453e7(0x568)]??{})[_0x4453e7(0x20f)](([_0x4739c6])=>{const _0x984c71=_0x4453e7;let _0x3875e3=_0x4b3a9f[_0x984c71(0x531)][_0x4739c6];return!!(_0x3875e3&&_0x3875e3[_0x984c71(0x26d)]!==!0x0&&_0x3875e3[_0x984c71(0x30b)]!==_0x377615['RecordId']);}))};}[_0x4e7c38(0x584)](_0x25e31d,_0x46a339){const _0x2bba46=_0x4e7c38;return _0x46a339&&this[_0x2bba46(0x301)](_0x25e31d,_0x46a339)?_0x46a339:this['_findCalendarDateFieldId'](_0x25e31d)??_0x46a339??'';}[_0x4e7c38(0x2c5)](_0x3b9f71,_0x202e50){const _0x34e699=_0x4e7c38;for(let _0x416311 of _0x3b9f71[_0x34e699(0x4dc)])if(_0x416311!==_0x202e50&&this[_0x34e699(0x301)](_0x3b9f71,_0x416311))return _0x416311;return null;}[_0x4e7c38(0x301)](_0x28c94d,_0x2eb769){const _0x2a9fec=_0x4e7c38;let _0x384fe9=_0x28c94d[_0x2a9fec(0x531)][_0x2eb769];return!!_0x384fe9&&_0x384fe9[_0x2a9fec(0x30b)]===_0x377615[_0x2a9fec(0x55e)]&&_0x384fe9[_0x2a9fec(0x339)]!==!0x0&&_0x384fe9[_0x2a9fec(0x26d)]!==!0x0&&this[_0x2a9fec(0x3b0)](_0x384fe9)[_0x2a9fec(0x55c)];}['_normalizeCalendarDisplayColor'](_0x40d202,_0x217d79){const _0x44fafb=_0x4e7c38;let _0x22e261=_0x217d79[_0x44fafb(0x299)];if((_0x22e261==null?void 0x0:_0x22e261[_0x44fafb(0x30b)])===_0x44fafb(0x221)){let _0x4c44f0=_0x40d202[_0x44fafb(0x531)][_0x22e261[_0x44fafb(0x446)]];if(_0x4c44f0&&_0x4c44f0['type']===_0x377615['SingleSelect'])return _0x22e261;}if((_0x22e261==null?void 0x0:_0x22e261[_0x44fafb(0x30b)])===_0x44fafb(0x333)&&typeof _0x22e261[_0x44fafb(0x480)]=='string'&&_0x22e261['color']['trim']())return{'type':_0x44fafb(0x333),'color':_0x22e261['color']};if(_0x217d79[_0x44fafb(0x471)]){let _0xf7f7c4=_0x40d202[_0x44fafb(0x531)][_0x217d79[_0x44fafb(0x471)]];if(_0xf7f7c4&&_0xf7f7c4['type']===_0x377615[_0x44fafb(0x38d)])return{'type':_0x44fafb(0x221),'fieldId':_0x217d79['colorFieldId']};}return{'type':_0x44fafb(0x333),'color':'#3b82f6'};}[_0x4e7c38(0x449)](_0x287bf7,_0x50735a,_0x19a14b){const _0x35aac7=_0x4e7c38;let _0x1bf1e7=_0x19a14b[_0x35aac7(0x299)];if((_0x1bf1e7==null?void 0x0:_0x1bf1e7['type'])===_0x35aac7(0x221)){var _0x1cc540;let _0x5d559e=_0x287bf7['fields'][_0x1bf1e7[_0x35aac7(0x446)]];if(!_0x5d559e)return;let _0x3527b0=_0x50735a[_0x35aac7(0x4c0)][_0x1bf1e7[_0x35aac7(0x446)]],_0xf5ccd1=Array[_0x35aac7(0x56b)](_0x3527b0)?_0x3527b0[0x0]:_0x3527b0;return _0xf5ccd1==null||(_0x1cc540=Li(_0x5d559e,String(_0xf5ccd1)))==null?void 0x0:_0x1cc540['color'];}if((_0x1bf1e7==null?void 0x0:_0x1bf1e7[_0x35aac7(0x30b)])===_0x35aac7(0x333))return _0x1bf1e7[_0x35aac7(0x480)];}[_0x4e7c38(0x307)](_0x54f28a,_0x1cd89e,_0x738b35,_0x48112c){const _0x29bb2b=_0x4e7c38;var _0x2cff6b,_0x1ce8f0;let _0x26e844=((_0x2cff6b=_0x54f28a[_0x29bb2b(0x554)])==null?void 0x0:_0x2cff6b[_0x29bb2b(0x4a1)])===!0x0,_0x377141=(_0x1cd89e==null||(_0x1ce8f0=_0x1cd89e[_0x29bb2b(0x554)])==null?void 0x0:_0x1ce8f0[_0x29bb2b(0x4a1)])===!0x0;return!_0x26e844&&!_0x377141;}[_0x4e7c38(0x462)](_0x59fc2e,_0x19a91c){const _0x445aec=_0x4e7c38;var _0x3e0aab,_0x29a59b;let _0x38f637=((_0x3e0aab=_0x59fc2e[_0x445aec(0x554)])==null?void 0x0:_0x3e0aab['includeTime'])===!0x0,_0x406555=((_0x29a59b=_0x19a91c[_0x445aec(0x554)])==null?void 0x0:_0x29a59b['includeTime'])===!0x0;return!_0x38f637&&!_0x406555;}['_buildGantt'](_0xa8f3f1,_0x190718){const _0x2d2820=_0x4e7c38;let _0x296c86=this[_0x2d2820(0x296)](_0xa8f3f1,_0x190718[_0x2d2820(0x554)]),_0xbb3ccd=_0xa8f3f1[_0x2d2820(0x531)][_0x296c86[_0x2d2820(0x2fd)]];if(!_0xbb3ccd||_0xbb3ccd[_0x2d2820(0x30b)]!==_0x377615['Date']||_0xbb3ccd['readonly']===!0x0||_0xbb3ccd['system']===!0x0||!this['_capabilities'](_0xbb3ccd)['usableAsGanttStart'])return{'type':_0x2d2820(0x574),'viewType':_0xa6488a[_0x2d2820(0x451)],'reason':_0x2d2820(0x4bb),'fieldId':_0x296c86[_0x2d2820(0x2fd)]};let _0x5c3336=_0xa8f3f1[_0x2d2820(0x531)][_0x296c86[_0x2d2820(0x369)]];if(!_0x5c3336||_0x5c3336[_0x2d2820(0x30b)]!==_0x377615[_0x2d2820(0x55e)]||_0x5c3336[_0x2d2820(0x339)]===!0x0||_0x5c3336[_0x2d2820(0x26d)]===!0x0||!this[_0x2d2820(0x3b0)](_0x5c3336)[_0x2d2820(0x357)])return{'type':_0x2d2820(0x574),'viewType':_0xa6488a['Gantt'],'reason':_0x2d2820(0x268),'fieldId':_0x296c86['endDateFieldId']};let _0x53d14f=this[_0x2d2820(0x462)](_0xbb3ccd,_0x5c3336),_0x567184=this[_0x2d2820(0x243)](_0xa8f3f1,_0x190718),_0x2e17a3=_0x567184[_0x2d2820(0x470)](_0x3c7875=>{const _0x48d958=_0x2d2820;let _0x56e9ce=dn(_0x3c7875[_0x48d958(0x4c0)][_0x296c86[_0x48d958(0x2fd)]]),_0x320513=dn(_0x3c7875[_0x48d958(0x4c0)][_0x296c86[_0x48d958(0x369)]]);if(!Number['isFinite'](_0x56e9ce)||!Number[_0x48d958(0x338)](_0x320513))return[];let _0x555708=Math[_0x48d958(0x218)](_0x56e9ce,_0x320513),_0xbc514d=Math[_0x48d958(0x265)](_0x56e9ce,_0x320513),_0x124015=_0x296c86['progressFieldId']==null?void 0x0:Number(_0x3c7875[_0x48d958(0x4c0)][_0x296c86[_0x48d958(0x51f)]]);return[{'recordId':_0x3c7875[_0x48d958(0x394)],'title':this[_0x48d958(0x2bd)](_0xa8f3f1,_0x3c7875,_0x296c86[_0x48d958(0x1e8)]),'start':_0x555708,'end':_0xbc514d,'color':this[_0x48d958(0x513)](_0xa8f3f1,_0x3c7875,_0x296c86),'progress':Number[_0x48d958(0x338)](_0x124015)?_0x124015:void 0x0,'workingDayCount':_0x296c86[_0x48d958(0x1ee)]?Ti(_0x555708,_0xbc514d,_0x296c86[_0x48d958(0x2e1)]):void 0x0,'dependencyRecordIds':this[_0x48d958(0x3c6)](_0x3c7875[_0x48d958(0x4c0)][_0x296c86[_0x48d958(0x219)]??''])}];}),_0x2a444e=_0x2e17a3[_0x2d2820(0x2b6)]?Z(Math[_0x2d2820(0x218)](..._0x2e17a3[_0x2d2820(0x3e8)](_0x4528d2=>_0x4528d2[_0x2d2820(0x2b1)]))-0x5a*oi):Z(Date[_0x2d2820(0x32e)]()-0x5a*oi),_0x2689e7=_0x2e17a3[_0x2d2820(0x2b6)]?Z(Math[_0x2d2820(0x265)](..._0x2e17a3['map'](_0x3fca6e=>_0x3fca6e['end']))+0x5b*oi):Z(Date[_0x2d2820(0x32e)]()+0x5b*oi),_0x722dd8=_i(_0x296c86['scale'],_0x2a444e,_0x2689e7,_0x296c86[_0x2d2820(0x1ee)]?_0x296c86[_0x2d2820(0x2e1)]:void 0x0);return{'type':_0xa6488a['Gantt'],'fields':this[_0x2d2820(0x4cb)](_0xa8f3f1,{..._0x190718,'config':_0x296c86}),'rows':_0x567184,'groups':this['_projectGroups'](_0xa8f3f1,_0x190718,_0x567184),'config':_0x296c86,'dateRangeAllDay':_0x53d14f,'timeline':{'scale':_0x296c86['scale'],'start':_0x2a444e,'end':_0x2689e7,'unitWidth':_0x722dd8[_0x2d2820(0x4c8)],'majorHeaders':_0x722dd8[_0x2d2820(0x54d)],'columns':_0x722dd8[_0x2d2820(0x430)]},'bars':_0x2e17a3};}['_normalizeGanttConfig'](_0x32efbe,_0x5ae17e){const _0x12d38d=_0x4e7c38;let _0x316b09=this[_0x12d38d(0x2db)](_0x32efbe,_0x5ae17e[_0x12d38d(0x2fd)],_0x12d38d(0x2b1)),_0x1fc223=this[_0x12d38d(0x2db)](_0x32efbe,_0x5ae17e[_0x12d38d(0x369)],_0x12d38d(0x41a))||_0x316b09,_0x56ac38=_0x5ae17e[_0x12d38d(0x1e8)]?_0x32efbe[_0x12d38d(0x531)][_0x5ae17e[_0x12d38d(0x1e8)]]:void 0x0,_0x2b11e5=_0x56ac38&&_0x56ac38[_0x12d38d(0x26d)]!==!0x0&&_0x56ac38['type']!==_0x377615[_0x12d38d(0x4c5)]?_0x5ae17e[_0x12d38d(0x1e8)]:_0x32efbe['primaryFieldId'],_0x26fd7e=_0x5ae17e[_0x12d38d(0x563)]===_0x12d38d(0x38a)||_0x5ae17e[_0x12d38d(0x563)]===_0x12d38d(0x548)||_0x5ae17e[_0x12d38d(0x563)]==='year'?_0x5ae17e['scale']:_0x12d38d(0x564),_0x4fd162=gi(_0x5ae17e['workingDays']);return{..._0x5ae17e,'startDateFieldId':_0x316b09,'endDateFieldId':_0x1fc223,'titleFieldId':_0x2b11e5,'scale':_0x26fd7e,'leftPaneWidth':typeof _0x5ae17e[_0x12d38d(0x323)]==_0x12d38d(0x43a)?_0x5ae17e[_0x12d38d(0x323)]:void 0x0,'leftPaneCollapsed':_0x5ae17e['leftPaneCollapsed']===!0x0,'showTodayLine':_0x5ae17e[_0x12d38d(0x295)]!==!0x1,'displayColor':this[_0x12d38d(0x47c)](_0x32efbe,_0x5ae17e),'fieldSettings':Object[_0x12d38d(0x2c2)](Object[_0x12d38d(0x502)](_0x5ae17e[_0x12d38d(0x568)]??{})[_0x12d38d(0x20f)](([_0x58320b])=>{const _0x34b037=_0x12d38d;let _0x734bfa=_0x32efbe[_0x34b037(0x531)][_0x58320b];return!!(_0x734bfa&&_0x734bfa[_0x34b037(0x26d)]!==!0x0&&_0x734bfa[_0x34b037(0x30b)]!==_0x377615['RecordId']);})),'workingDaysOnly':_0x5ae17e[_0x12d38d(0x1ee)]===!0x0,'workingDays':_0x4fd162};}['_resolveGanttDateFieldId'](_0xc29163,_0x2271bb,_0xcf271a){const _0x3662b5=_0x4e7c38;if(_0x2271bb&&this[_0x3662b5(0x254)](_0xc29163,_0x2271bb,_0xcf271a)||_0x2271bb)return _0x2271bb;for(let _0x25712c of _0xc29163[_0x3662b5(0x4dc)])if(this['_isGanttDateField'](_0xc29163,_0x25712c,_0xcf271a))return _0x25712c;return _0x2271bb??'';}[_0x4e7c38(0x254)](_0x1a75c8,_0x9284c6,_0x6a6087){const _0x2df994=_0x4e7c38;let _0x277961=_0x1a75c8[_0x2df994(0x531)][_0x9284c6];if(!_0x277961||_0x277961[_0x2df994(0x30b)]!==_0x377615['Date']||_0x277961[_0x2df994(0x339)]===!0x0||_0x277961[_0x2df994(0x26d)]===!0x0)return!0x1;let _0x9f0189=this[_0x2df994(0x3b0)](_0x277961);return _0x6a6087===_0x2df994(0x2b1)?_0x9f0189[_0x2df994(0x2d0)]:_0x9f0189[_0x2df994(0x357)];}[_0x4e7c38(0x47c)](_0x29a972,_0x3c7d10){const _0x149a91=_0x4e7c38;let _0x29597e=_0x3c7d10['displayColor'];if((_0x29597e==null?void 0x0:_0x29597e[_0x149a91(0x30b)])===_0x149a91(0x221)){let _0x414101=_0x29a972[_0x149a91(0x531)][_0x29597e[_0x149a91(0x446)]];if(_0x414101&&_0x414101[_0x149a91(0x30b)]===_0x377615['SingleSelect'])return _0x29597e;}return(_0x29597e==null?void 0x0:_0x29597e['type'])===_0x149a91(0x2cb)&&Array[_0x149a91(0x56b)](_0x29597e[_0x149a91(0x532)])?{'type':_0x149a91(0x2cb),'rules':_0x29597e[_0x149a91(0x532)][_0x149a91(0x20f)](_0x4b15a3=>!!_0x29a972[_0x149a91(0x531)][_0x4b15a3[_0x149a91(0x446)]])}:(_0x29597e==null?void 0x0:_0x29597e['type'])===_0x149a91(0x333)&&typeof _0x29597e[_0x149a91(0x480)]==_0x149a91(0x457)&&_0x29597e[_0x149a91(0x480)][_0x149a91(0x42c)]()?{'type':_0x149a91(0x333),'color':_0x29597e['color']}:{'type':_0x149a91(0x333),'color':_0x149a91(0x40b)};}[_0x4e7c38(0x513)](_0x12f1ae,_0x2e2ce5,_0x5f54aa){const _0x589cdd=_0x4e7c38;let _0x38206c=_0x5f54aa[_0x589cdd(0x299)];if((_0x38206c==null?void 0x0:_0x38206c[_0x589cdd(0x30b)])===_0x589cdd(0x2cb)){let _0x2df08a=_0x38206c[_0x589cdd(0x532)]['find'](_0x3adda4=>this['_matchesGanttColorRule'](_0x12f1ae,_0x2e2ce5,_0x3adda4));if(_0x2df08a)return _0x2df08a[_0x589cdd(0x480)];}if((_0x38206c==null?void 0x0:_0x38206c[_0x589cdd(0x30b)])==='selectField'){let _0xe6f51e=_0x12f1ae[_0x589cdd(0x531)][_0x38206c[_0x589cdd(0x446)]];if(_0xe6f51e){var _0x2e72b1;let _0x204240=_0x2e2ce5['values'][_0x38206c['fieldId']],_0xd8d8c0=Array[_0x589cdd(0x56b)](_0x204240)?_0x204240[0x0]:_0x204240,_0x64e76=_0xd8d8c0==null||(_0x2e72b1=Li(_0xe6f51e,String(_0xd8d8c0)))==null?void 0x0:_0x2e72b1[_0x589cdd(0x480)];if(_0x64e76)return _0x64e76;}}return(_0x38206c==null?void 0x0:_0x38206c['type'])===_0x589cdd(0x333)?_0x38206c[_0x589cdd(0x480)]:'#14b8a6';}['_matchesGanttColorRule'](_0x21cae4,_0x5d00ef,_0x59d315){const _0x5a9a0b=_0x4e7c38;let _0x13dcf9=_0x21cae4['fields'][_0x59d315[_0x5a9a0b(0x446)]];return _0x13dcf9?xn(_0x5d00ef[_0x5a9a0b(0x4c0)][_0x13dcf9['id']],_0x59d315[_0x5a9a0b(0x4c6)],_0x59d315[_0x5a9a0b(0x300)],_0x13dcf9,{'dateMode':_0x59d315['dateMode']}):!0x1;}[_0x4e7c38(0x56a)](_0x1b835b,_0x1d7331){const _0x214a3e=_0x4e7c38;let _0x4d766d=this[_0x214a3e(0x243)](_0x1b835b,_0x1d7331),_0x210821=this[_0x214a3e(0x22d)](_0x1b835b,_0x1d7331[_0x214a3e(0x554)]??{}),_0x5551f3=this[_0x214a3e(0x4cb)](_0x1b835b,_0x1d7331);return{'type':_0xa6488a[_0x214a3e(0x226)],'fields':_0x5551f3,'rows':_0x4d766d,'groups':this[_0x214a3e(0x55f)](_0x1b835b,_0x1d7331,_0x4d766d),'titleFieldId':_0x210821['card'][_0x214a3e(0x1e8)],'coverFieldId':_0x210821[_0x214a3e(0x500)],'cardLayout':_0x210821[_0x214a3e(0x21c)]??_0x214a3e(0x556),'showFieldNames':_0x210821[_0x214a3e(0x42e)]!==!0x1,'visibleCardFieldIds':this[_0x214a3e(0x4c3)](_0x1b835b,_0x1d7331,_0x210821),'cardSize':_0x210821[_0x214a3e(0x538)]??_0x214a3e(0x576),'cards':_0x4d766d['map'](_0x42fda1=>({'recordId':_0x42fda1[_0x214a3e(0x394)],'title':this[_0x214a3e(0x2bd)](_0x1b835b,_0x42fda1,_0x210821[_0x214a3e(0x349)][_0x214a3e(0x1e8)]),'values':_0x42fda1['values']}))};}['_normalizeGalleryConfig'](_0x58053f,_0x380c3d){const _0x20ebd=_0x4e7c38;let _0x42d363=_0x380c3d[_0x20ebd(0x349)]??{'fieldIds':[]},_0x2f38a5=this[_0x20ebd(0x523)](_0x58053f,_0x42d363[_0x20ebd(0x1e8)]),_0x2d4193=this[_0x20ebd(0x406)](_0x58053f,_0x380c3d),_0xcbb58d=_0x380c3d['cardSize']===_0x20ebd(0x2e5)||_0x380c3d['cardSize']===_0x20ebd(0x569)?_0x380c3d[_0x20ebd(0x538)]:'medium';return{..._0x380c3d,'coverFieldId':_0x2d4193,'cardLayout':_0x380c3d[_0x20ebd(0x21c)]===_0x20ebd(0x356)?'compose':_0x20ebd(0x556),'showFieldNames':_0x380c3d['showFieldNames']!==!0x1,'fieldSettings':Object[_0x20ebd(0x2c2)](Object[_0x20ebd(0x502)](_0x380c3d['fieldSettings']??{})[_0x20ebd(0x20f)](([_0x3d5d2c])=>{const _0x4f2333=_0x20ebd;let _0x4c83fe=_0x58053f['fields'][_0x3d5d2c];return!!(_0x4c83fe&&_0x4c83fe[_0x4f2333(0x26d)]!==!0x0&&_0x4c83fe[_0x4f2333(0x30b)]!==_0x377615[_0x4f2333(0x4c5)]);})),'card':{..._0x42d363,'titleFieldId':_0x2f38a5,'coverFieldId':_0x2d4193,'fieldIds':Array[_0x20ebd(0x56b)](_0x42d363[_0x20ebd(0x1c7)])?_0x42d363['fieldIds']:[]},'cardSize':_0xcbb58d};}[_0x4e7c38(0x523)](_0x3ef2ee,_0x312334){const _0x1ed54a=_0x4e7c38;let _0x53e905=_0x312334?_0x3ef2ee['fields'][_0x312334]:void 0x0;return _0x53e905&&_0x53e905[_0x1ed54a(0x26d)]!==!0x0&&_0x53e905[_0x1ed54a(0x30b)]!==_0x377615['RecordId']?_0x53e905['id']:Zr(_0x3ef2ee);}['_resolveGalleryCoverFieldId'](_0x2b620d,_0x5ae248){const _0x29b7f2=_0x4e7c38;var _0x5ae38b;let _0x9abf5d=_0x5ae248[_0x29b7f2(0x500)]??((_0x5ae38b=_0x5ae248[_0x29b7f2(0x349)])==null?void 0x0:_0x5ae38b['coverFieldId'])??null;if(!_0x9abf5d)return null;let _0x287e5c=_0x2b620d[_0x29b7f2(0x531)][_0x9abf5d];return _0x287e5c&&this['_capabilities'](_0x287e5c)[_0x29b7f2(0x51c)]?_0x287e5c['id']:null;}[_0x4e7c38(0x4c3)](_0x1de532,_0xdb73b3,_0x24e753){const _0x60edfd=_0x4e7c38;var _0x3e8182,_0x573146,_0x117f0b;let _0x4a642a=_0x24e753['fieldSettings']??{},_0x8e3801=((_0x3e8182=_0x24e753[_0x60edfd(0x349)])==null?void 0x0:_0x3e8182['titleFieldId'])??Zr(_0x1de532),_0x4e00ea=_0x24e753['coverFieldId']??((_0x573146=_0x24e753[_0x60edfd(0x349)])==null?void 0x0:_0x573146[_0x60edfd(0x500)])??null,_0x5a93c2=(_0x117f0b=_0x24e753[_0x60edfd(0x349)])!=null&&(_0x117f0b=_0x117f0b['fieldIds'])!=null&&_0x117f0b[_0x60edfd(0x2b6)]?_0x24e753[_0x60edfd(0x349)][_0x60edfd(0x1c7)]:Qr(_0x1de532,[_0x8e3801,_0x4e00ea,_0x1de532['primaryFieldId']]);return _0x5a93c2[_0x60edfd(0x20f)](_0x20528e=>{const _0x2db10f=_0x60edfd;var _0x5d5f7c,_0x32a447;let _0x20632f=_0x1de532[_0x2db10f(0x531)][_0x20528e];return!(!_0x20632f||_0x20632f[_0x2db10f(0x26d)]===!0x0||_0x20632f[_0x2db10f(0x30b)]===_0x377615['RecordId']||_0x20632f['id']===_0x8e3801||_0x20632f['id']===_0x4e00ea||(_0x5d5f7c=_0xdb73b3[_0x2db10f(0x568)])!=null&&(_0x5d5f7c=_0x5d5f7c[_0x20528e])!=null&&_0x5d5f7c['hidden']||(_0x32a447=_0x4a642a[_0x20528e])!=null&&_0x32a447['hidden']);})[_0x60edfd(0x266)]((_0x5c14e8,_0x5113ca)=>{const _0xc34a44=_0x60edfd;var _0x5acbbd,_0x4a3190;return(((_0x5acbbd=_0x4a642a[_0x5c14e8])==null?void 0x0:_0x5acbbd[_0xc34a44(0x1df)])??_0x5a93c2[_0xc34a44(0x20c)](_0x5c14e8))-(((_0x4a3190=_0x4a642a[_0x5113ca])==null?void 0x0:_0x4a3190[_0xc34a44(0x1df)])??_0x5a93c2[_0xc34a44(0x20c)](_0x5113ca));});}['_projectFields'](_0x3e715f,_0xfdaf8d){const _0x41402f=_0x4e7c38;var _0xeaa593;return((_0xeaa593=_0xfdaf8d[_0x41402f(0x4dc)])!=null&&_0xeaa593[_0x41402f(0x2b6)]?_0xfdaf8d['fieldOrder']:_0x3e715f[_0x41402f(0x4dc)])[_0x41402f(0x470)](_0x54df93=>{const _0x3ed348=_0x41402f;var _0x8505da;let _0x5c6c0f=_0x3e715f[_0x3ed348(0x531)][_0x54df93],_0x224f20=((_0x8505da=_0xfdaf8d['fieldSettings'])==null?void 0x0:_0x8505da[_0x54df93])??{};return!_0x5c6c0f||_0x5c6c0f['system']===!0x0||_0x5c6c0f['type']===_0x377615[_0x3ed348(0x4c5)]||_0x224f20['hidden']?[]:[{'id':_0x5c6c0f['id'],'name':_0x5c6c0f['name'],'description':_0x5c6c0f[_0x3ed348(0x4a4)],'type':_0x5c6c0f['type'],'config':_0x5c6c0f[_0x3ed348(0x554)],'width':_0x224f20[_0x3ed348(0x3f5)],'setting':_0x224f20}];});}['_projectRows'](_0x251f81,_0x595ba4){const _0x3a5de1=_0x4e7c38;var _0x2d04f9;return I(_0x3a5de1(0x34b),()=>{const _0x4273c6=_0x3a5de1;var _0x5d63e0,_0xae0a37;let _0x599d9a=this[_0x4273c6(0x31f)](_0x251f81),_0x2305a0=this[_0x4273c6(0x4b3)](_0x251f81['id'],_0x595ba4),_0x4f97a7=this[_0x4273c6(0x371)](_0x251f81['id']),_0x3c443d=this[_0x4273c6(0x28f)][_0x4273c6(0x4d5)](_0x2305a0);if(_0x3c443d&&_0x3c443d[_0x4273c6(0x47d)]===this[_0x4273c6(0x549)]&&_0x3c443d[_0x4273c6(0x287)]===this['_getTableRevision'](_0x251f81['id'])){if(_0x3c443d['cellRevision']===_0x4f97a7&&_0x3c443d[_0x4273c6(0x28b)]===_0x599d9a)return _0x3c443d[_0x4273c6(0x2ff)];if(_0x3c443d[_0x4273c6(0x43f)]!==_0x4f97a7&&!this[_0x4273c6(0x4d0)](_0x251f81['id'],_0x3c443d[_0x4273c6(0x43f)],_0x4f97a7,this[_0x4273c6(0x37c)](_0x595ba4))){let _0x5d8252=_0x3c443d[_0x4273c6(0x2ff)]===_0x3c443d['baseRows']?_0x599d9a:this[_0x4273c6(0x311)](_0x3c443d[_0x4273c6(0x2ff)],_0x599d9a);if(_0x5d8252)return this[_0x4273c6(0x28f)][_0x4273c6(0x205)](_0x2305a0,{..._0x3c443d,'rows':_0x5d8252,'baseRows':_0x599d9a,'cellRevision':_0x4f97a7}),_0x5d8252;}}let _0x55394f=I(_0x4273c6(0x4b5),()=>this[_0x4273c6(0x578)](_0x251f81,_0x595ba4,this[_0x4273c6(0x3ce)](_0x251f81,_0x595ba4,_0x599d9a)),{'tableId':_0x251f81['id'],'viewId':_0x595ba4==null?void 0x0:_0x595ba4['id'],'viewType':_0x595ba4==null?void 0x0:_0x595ba4[_0x4273c6(0x30b)],'rows':_0x599d9a['length'],'filters':(_0x595ba4==null||(_0x5d63e0=_0x595ba4[_0x4273c6(0x20f)])==null?void 0x0:_0x5d63e0[_0x4273c6(0x477)][_0x4273c6(0x2b6)])??0x0,'sorts':(_0x595ba4==null||(_0xae0a37=_0x595ba4['sort'])==null?void 0x0:_0xae0a37[_0x4273c6(0x2b6)])??0x0});return this[_0x4273c6(0x28f)]['set'](_0x2305a0,{'table':_0x251f81,'rows':_0x55394f,'baseRows':_0x599d9a,'globalRevision':this[_0x4273c6(0x549)],'tableRevision':this['_getTableRevision'](_0x251f81['id']),'cellRevision':_0x4f97a7}),_0x55394f;},{'tableId':_0x251f81['id'],'viewId':_0x595ba4==null?void 0x0:_0x595ba4['id'],'viewType':_0x595ba4==null?void 0x0:_0x595ba4[_0x3a5de1(0x30b)],'records':((_0x2d04f9=_0x251f81['recordOrder'])==null?void 0x0:_0x2d04f9[_0x3a5de1(0x2b6)])??Object[_0x3a5de1(0x3ca)](_0x251f81['records']??{})['length']});}[_0x4e7c38(0x31f)](_0x5f15e8){const _0x3c0bce=_0x4e7c38;var _0x3e4164;return I(_0x3c0bce(0x4fc),()=>{const _0x360f80=_0x3c0bce;var _0x472f05;let _0x237aa9=this['_getCellRevision'](_0x5f15e8['id']),_0x33743b=this[_0x360f80(0x436)][_0x360f80(0x4d5)](_0x5f15e8['id']);if(_0x33743b&&_0x33743b['globalRevision']===this[_0x360f80(0x549)]&&_0x33743b[_0x360f80(0x287)]===this[_0x360f80(0x229)](_0x5f15e8['id'])){if(_0x33743b['cellRevision']===_0x237aa9&&fi(_0x33743b[_0x360f80(0x438)],_0x5f15e8))return _0x33743b[_0x360f80(0x438)]=_0x5f15e8,_0x33743b['rows'];let _0x2bf919=this['_patchProjectedRowsForCellInvalidations'](_0x5f15e8,_0x33743b,_0x237aa9);if(_0x2bf919)return _0x2bf919;}ui(_0x5f15e8)||L(_0x5f15e8);let _0x445932=(_0x472f05=_0x5f15e8[_0x360f80(0x52d)])!=null&&_0x472f05[_0x360f80(0x2b6)]?_0x5f15e8[_0x360f80(0x52d)]:hi(_0x5f15e8[_0x360f80(0x2d1)]),_0xda8aa2=I(_0x360f80(0x486),()=>{const _0x5c173e=_0x360f80;let _0x3a1055=[];for(let _0x5a08a9 of _0x445932){let _0x425136=_0x5f15e8[_0x5c173e(0x2d1)][_0x5a08a9];if(!_0x425136)continue;let _0x42c427={};for(let _0x2935ec of _0x5f15e8['fieldOrder'])_0x42c427[_0x2935ec]=yt(_0x5f15e8,_0x425136['id'],_0x2935ec);_0x3a1055[_0x5c173e(0x3e2)]({'recordId':_0x425136['id'],'values':_0x42c427});}return _0x3a1055;},{'tableId':_0x5f15e8['id'],'records':_0x445932[_0x360f80(0x2b6)],'fields':_0x5f15e8[_0x360f80(0x4dc)][_0x360f80(0x2b6)]});return this[_0x360f80(0x436)][_0x360f80(0x205)](_0x5f15e8['id'],{'table':_0x5f15e8,'rows':_0xda8aa2,'rowIndexById':li(_0xda8aa2),'globalRevision':this['_globalRevision'],'tableRevision':this[_0x360f80(0x229)](_0x5f15e8['id']),'cellRevision':_0x237aa9}),_0xda8aa2;},{'tableId':_0x5f15e8['id'],'records':((_0x3e4164=_0x5f15e8[_0x3c0bce(0x52d)])==null?void 0x0:_0x3e4164[_0x3c0bce(0x2b6)])??Object[_0x3c0bce(0x3ca)](_0x5f15e8['records']??{})['length'],'fields':_0x5f15e8['fieldOrder'][_0x3c0bce(0x2b6)]});}[_0x4e7c38(0x45e)](_0x2088d3,_0x57e79f,_0x45d3bc){const _0xb6b0b9=_0x4e7c38;let _0xb52b6f=(this[_0xb6b0b9(0x4d8)][_0xb6b0b9(0x4d5)](_0x2088d3['id'])??[])[_0xb6b0b9(0x20f)](_0x23de58=>_0x23de58[_0xb6b0b9(0x2de)]>_0x57e79f[_0xb6b0b9(0x43f)]&&_0x23de58[_0xb6b0b9(0x2de)]<=_0x45d3bc);if(!_0xb52b6f[_0xb6b0b9(0x2b6)])return _0x57e79f[_0xb6b0b9(0x438)]===_0x2088d3?_0x57e79f[_0xb6b0b9(0x2ff)]:null;let _0x476264=_0x57e79f[_0xb6b0b9(0x2ff)],_0x830699=new Map();for(let _0x21fc75 of _0xb52b6f){let _0x140da=_0x830699[_0xb6b0b9(0x4d5)](_0x21fc75[_0xb6b0b9(0x394)]);_0x140da||(_0x140da=new Set(),_0x830699[_0xb6b0b9(0x205)](_0x21fc75[_0xb6b0b9(0x394)],_0x140da)),_0x140da[_0xb6b0b9(0x290)](_0x21fc75[_0xb6b0b9(0x446)]);}for(let [_0x70f6dc,_0x2a916b]of _0x830699){if(!_0x2088d3['records'][_0x70f6dc])return null;let _0x360062=_0x57e79f[_0xb6b0b9(0x545)][_0xb6b0b9(0x4d5)](_0x70f6dc);if(_0x360062==null)return null;_0x476264===_0x57e79f[_0xb6b0b9(0x2ff)]&&(_0x476264=[..._0x57e79f['rows']]);let _0x32edc1=_0x476264[_0x360062],_0x419ed2={..._0x32edc1[_0xb6b0b9(0x4c0)]};_0x2a916b[_0xb6b0b9(0x397)](_0x1b3814=>{_0x419ed2[_0x1b3814]=yt(_0x2088d3,_0x70f6dc,_0x1b3814);}),_0x476264[_0x360062]={..._0x32edc1,'values':_0x419ed2};}let _0x33af58={'table':_0x2088d3,'rows':_0x476264,'rowIndexById':_0x57e79f[_0xb6b0b9(0x545)],'globalRevision':this[_0xb6b0b9(0x549)],'tableRevision':this[_0xb6b0b9(0x229)](_0x2088d3['id']),'cellRevision':_0x45d3bc};return this[_0xb6b0b9(0x436)][_0xb6b0b9(0x205)](_0x2088d3['id'],_0x33af58),this[_0xb6b0b9(0x4d8)][_0xb6b0b9(0x205)](_0x2088d3['id'],(this['_cellInvalidations'][_0xb6b0b9(0x4d5)](_0x2088d3['id'])??[])[_0xb6b0b9(0x20f)](_0x226071=>_0x226071[_0xb6b0b9(0x2de)]>Math[_0xb6b0b9(0x265)](0x0,_0x45d3bc-0x100))),_0x476264;}[_0x4e7c38(0x311)](_0x3a1681,_0x1b45cb){const _0x2c7597=_0x4e7c38;let _0x249283=new Map(_0x1b45cb['map'](_0x1a55da=>[_0x1a55da[_0x2c7597(0x394)],_0x1a55da])),_0x44a26f=!0x1,_0x77478f=_0x3a1681[_0x2c7597(0x3e8)](_0x41a678=>{let _0x3754bb=_0x249283['get'](_0x41a678['recordId']);return _0x3754bb?_0x3754bb===_0x41a678?_0x41a678:(_0x44a26f=!0x0,_0x3754bb):_0x41a678;});return _0x44a26f?_0x77478f:_0x3a1681;}[_0x4e7c38(0x4d0)](_0x38df3c,_0x268ed9,_0x23c9c9,_0x159706){const _0x4e8cc4=_0x4e7c38;return!_0x159706[_0x4e8cc4(0x231)]||_0x268ed9===_0x23c9c9?!0x1:_0x23c9c9-_0x268ed9>0x100||(this[_0x4e8cc4(0x4d8)]['get'](_0x38df3c)??[])[_0x4e8cc4(0x48e)](_0x6cc17f=>_0x6cc17f['revision']>_0x268ed9&&_0x6cc17f['revision']<=_0x23c9c9&&_0x159706['has'](_0x6cc17f['fieldId']));}[_0x4e7c38(0x37c)](_0x257b53){const _0x209f0e=_0x4e7c38;var _0x5961a3,_0x308953;let _0xeb7599=new Set();return _0x257b53==null||(_0x5961a3=_0x257b53[_0x209f0e(0x20f)])==null||_0x5961a3[_0x209f0e(0x477)][_0x209f0e(0x397)](_0x598f45=>_0xeb7599[_0x209f0e(0x290)](_0x598f45[_0x209f0e(0x446)])),_0x257b53==null||(_0x308953=_0x257b53[_0x209f0e(0x266)])==null||_0x308953[_0x209f0e(0x397)](_0x59153e=>_0xeb7599[_0x209f0e(0x290)](_0x59153e[_0x209f0e(0x446)])),_0xeb7599;}[_0x4e7c38(0x2f1)](_0x4cdfad){const _0x3c1c96=_0x4e7c38;var _0x4ac795;let _0xac95e6=this[_0x3c1c96(0x37c)](_0x4cdfad);return(_0x4ac795=_0x4cdfad['group'])==null||_0x4ac795[_0x3c1c96(0x397)](_0x3eb9e1=>_0xac95e6[_0x3c1c96(0x290)](_0x3eb9e1['fieldId'])),_0xac95e6;}[_0x4e7c38(0x3ce)](_0xc6ee81,_0x56f536,_0x3d38b8){const _0x2c234d=_0x4e7c38;let _0x10e897=_0x56f536==null?void 0x0:_0x56f536[_0x2c234d(0x20f)];if(!(_0x10e897!=null&&_0x10e897[_0x2c234d(0x477)][_0x2c234d(0x2b6)]))return _0x3d38b8;let _0x19559f=_0x10e897[_0x2c234d(0x477)]['filter'](_0xe0836e=>!Ii(_0xe0836e));return _0x19559f[_0x2c234d(0x2b6)]?_0x3d38b8[_0x2c234d(0x20f)](_0x3cf405=>{const _0x5c0b10=_0x2c234d;if(_0x10e897['conjunction']===_0x56a03e['OR']){for(let _0x24c2fc of _0x19559f){let _0x4a8aa7=_0xc6ee81[_0x5c0b10(0x531)][_0x24c2fc[_0x5c0b10(0x446)]];if(!_0x4a8aa7||this['_fieldRegistry']['get'](_0x4a8aa7[_0x5c0b10(0x30b)])['filter'](_0x3cf405[_0x5c0b10(0x4c0)][_0x4a8aa7['id']],_0x24c2fc[_0x5c0b10(0x4c6)],_0x24c2fc['operand'],_0x4a8aa7))return!0x0;}return!0x1;}for(let _0x4605d0 of _0x19559f){let _0x3347dc=_0xc6ee81[_0x5c0b10(0x531)][_0x4605d0[_0x5c0b10(0x446)]];if(_0x3347dc&&!this[_0x5c0b10(0x21f)][_0x5c0b10(0x4d5)](_0x3347dc['type'])[_0x5c0b10(0x20f)](_0x3cf405[_0x5c0b10(0x4c0)][_0x3347dc['id']],_0x4605d0[_0x5c0b10(0x4c6)],_0x4605d0['operand'],_0x3347dc))return!0x1;}return!0x0;}):_0x3d38b8;}[_0x4e7c38(0x578)](_0x552b9f,_0x12041f,_0x344e89){const _0x3c36fc=_0x4e7c38;let _0x797405=(_0x12041f==null?void 0x0:_0x12041f[_0x3c36fc(0x266)])??[];if(!_0x797405[_0x3c36fc(0x2b6)])return _0x344e89;let _0x44ec10=_0x797405[_0x3c36fc(0x470)](_0x49621c=>{const _0x3c2697=_0x3c36fc;let _0x244391=_0x552b9f[_0x3c2697(0x531)][_0x49621c[_0x3c2697(0x446)]];return _0x244391?[{..._0x49621c,'field':_0x244391}]:[];});return _0x44ec10[_0x3c36fc(0x2b6)]?this[_0x3c36fc(0x1d6)](_0x44ec10)?this['_fastSortRows'](_0x44ec10,_0x344e89):[..._0x344e89][_0x3c36fc(0x266)]((_0x5da16e,_0x47090f)=>{const _0x25cd68=_0x3c36fc;for(let _0x32312c of _0x44ec10){let _0x456ffe=_0x32312c[_0x25cd68(0x380)],_0xfd39fe=this[_0x25cd68(0x21f)]['get'](_0x456ffe['type'])[_0x25cd68(0x390)](_0x5da16e[_0x25cd68(0x4c0)][_0x456ffe['id']],_0x47090f[_0x25cd68(0x4c0)][_0x456ffe['id']],_0x456ffe);if(_0xfd39fe!==0x0)return _0x32312c[_0x25cd68(0x1e7)]===_0x122af4[_0x25cd68(0x414)]?-_0xfd39fe:_0xfd39fe;}return 0x0;}):_0x344e89;}[_0x4e7c38(0x1d6)](_0x466962){const _0x84febb=_0x4e7c38;return _0x466962[_0x84febb(0x1f6)](_0x4dfd04=>ai[_0x84febb(0x4d6)](_0x4dfd04[_0x84febb(0x380)][_0x84febb(0x30b)]));}[_0x4e7c38(0x487)](_0x48edf1,_0x2e1343){const _0x22773f=_0x4e7c38;return _0x2e1343[_0x22773f(0x3e8)]((_0x1563b9,_0x3aec27)=>({'row':_0x1563b9,'index':_0x3aec27,'keys':_0x48edf1['map'](_0x226782=>_0x1563b9[_0x22773f(0x4c0)][_0x226782['fieldId']])}))[_0x22773f(0x266)]((_0x33eceb,_0x48a769)=>{const _0x3d950b=_0x22773f;for(let _0x107dc5=0x0;_0x107dc5<_0x48edf1['length'];_0x107dc5++){let _0x1a76f6=Fi(_0x33eceb['keys'][_0x107dc5],_0x48a769[_0x3d950b(0x3ca)][_0x107dc5]);if(_0x1a76f6!==0x0)return _0x48edf1[_0x107dc5][_0x3d950b(0x1e7)]===_0x122af4[_0x3d950b(0x414)]?-_0x1a76f6:_0x1a76f6;}return _0x33eceb[_0x3d950b(0x230)]-_0x48a769[_0x3d950b(0x230)];})[_0x22773f(0x3e8)](_0x25d4e2=>_0x25d4e2[_0x22773f(0x505)]);}[_0x4e7c38(0x55f)](_0x49100c,_0x5ed065,_0x50b45b){const _0x5d2bd6=_0x4e7c38;var _0x3eb706;return I(_0x5d2bd6(0x3dd),()=>{const _0x5944ce=_0x5d2bd6;var _0x229236;if(!((_0x229236=_0x5ed065[_0x5944ce(0x3b2)])!=null&&_0x229236[_0x5944ce(0x2b6)]))return[];let _0x359409=_0x5ed065[_0x5944ce(0x3b2)][_0x5944ce(0x20f)](_0x200cd8=>_0x49100c[_0x5944ce(0x531)][_0x200cd8['fieldId']]);if(!_0x359409[_0x5944ce(0x2b6)])return[];let _0x5f540f=this[_0x5944ce(0x4ee)](_0x49100c['id'],_0x5ed065,_0x359409),_0x433fad=this[_0x5944ce(0x371)](_0x49100c['id']),_0x345cfd=this[_0x5944ce(0x4bf)][_0x5944ce(0x4d5)](_0x5f540f);if(_0x345cfd&&_0x345cfd['globalRevision']===this[_0x5944ce(0x549)]&&_0x345cfd['tableRevision']===this[_0x5944ce(0x229)](_0x49100c['id'])){if(_0x345cfd['cellRevision']===_0x433fad&&_0x345cfd['rows']===_0x50b45b)return _0x345cfd[_0x5944ce(0x40a)];if(_0x345cfd[_0x5944ce(0x43f)]!==_0x433fad&&!this[_0x5944ce(0x4d0)](_0x49100c['id'],_0x345cfd['cellRevision'],_0x433fad,this[_0x5944ce(0x2f1)](_0x5ed065)))return this[_0x5944ce(0x4bf)][_0x5944ce(0x205)](_0x5f540f,{..._0x345cfd,'rows':_0x50b45b,'cellRevision':_0x433fad}),_0x345cfd['groups'];}let _0xf9e273=new Map();for(let _0x2f163a of _0x50b45b){let _0x4c8b3a=_0xf9e273,_0x32042a='';for(let _0x31bd76=0x0;_0x31bd76<_0x359409[_0x5944ce(0x2b6)];_0x31bd76++){let _0x44202a=_0x359409[_0x31bd76],_0x566935=_0x2f163a[_0x5944ce(0x4c0)][_0x44202a['fieldId']],_0x445316=ci(_0x566935),_0x386425=_0x44202a[_0x5944ce(0x446)]+'\x00'+_0x445316,_0x15fb36=_0x32042a+'/'+_0x44202a[_0x5944ce(0x446)]+':'+_0x445316,_0x3b7d27=_0x4c8b3a['get'](_0x386425);_0x3b7d27||(_0x3b7d27={'key':_0x445316,'value':_0x566935,'path':_0x15fb36,'label':_0x445316||_0x5944ce(0x1f0),'fieldId':_0x44202a[_0x5944ce(0x446)],'level':_0x31bd76,'recordIds':[],'children':new Map()},_0x4c8b3a['set'](_0x386425,_0x3b7d27)),_0x3b7d27[_0x5944ce(0x3ad)][_0x5944ce(0x3e2)](_0x2f163a[_0x5944ce(0x394)]),_0x4c8b3a=_0x3b7d27['children'],_0x32042a=_0x15fb36;}}let _0x55c3d2=this['_materializeGroups'](_0x359409,_0xf9e273,0x0);return this[_0x5944ce(0x4bf)]['set'](_0x5f540f,{'table':_0x49100c,'rows':_0x50b45b,'groups':_0x55c3d2,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x5944ce(0x229)](_0x49100c['id']),'cellRevision':_0x433fad}),_0x55c3d2;},{'tableId':_0x49100c['id'],'viewId':_0x5ed065['id'],'viewType':_0x5ed065['type'],'rows':_0x50b45b['length'],'groupFields':((_0x3eb706=_0x5ed065[_0x5d2bd6(0x3b2)])==null?void 0x0:_0x3eb706[_0x5d2bd6(0x2b6)])??0x0});}['_materializeGroups'](_0x4c02cf,_0x17b38c,_0x13b823){const _0x439e08=_0x4e7c38;var _0x52ce82;let _0x3d3e93=Array[_0x439e08(0x501)](_0x17b38c[_0x439e08(0x4c0)]()),_0x27041a=(_0x52ce82=_0x4c02cf[_0x13b823])==null?void 0x0:_0x52ce82[_0x439e08(0x1e7)];return _0x27041a&&_0x3d3e93[_0x439e08(0x266)]((_0x3dfef4,_0xf3b241)=>{const _0x31e320=_0x439e08;let _0x4d263b=_0x3dfef4[_0x31e320(0x340)][_0x31e320(0x582)](_0xf3b241[_0x31e320(0x340)]);return _0x27041a===_0x122af4['DESC']?-_0x4d263b:_0x4d263b;}),_0x3d3e93[_0x439e08(0x3e8)](_0xe38010=>({'key':_0xe38010['key'],'value':_0xe38010['value'],'path':_0xe38010[_0x439e08(0x534)],'label':_0xe38010[_0x439e08(0x55b)],'fieldId':_0xe38010[_0x439e08(0x446)],'level':_0xe38010[_0x439e08(0x345)],'recordIds':_0xe38010['recordIds'],'children':this[_0x439e08(0x472)](_0x4c02cf,_0xe38010['children'],_0x13b823+0x1)}));}[_0x4e7c38(0x2bd)](_0x22c454,_0x447b09,_0x1e0d36){const _0x4a57c4=_0x4e7c38;let _0x4a539f=_0x1e0d36??_0x22c454[_0x4a57c4(0x48d)],_0x2c5a7a=_0x447b09['values'][_0x4a539f];return _0x2c5a7a==null?'':String(_0x2c5a7a);}['_recordIds'](_0x4fb1d9){const _0x27c5dd=_0x4e7c38;if(Array['isArray'](_0x4fb1d9))return _0x4fb1d9[_0x27c5dd(0x3e8)](String);if(typeof _0x4fb1d9=='string'&&_0x4fb1d9)return[_0x4fb1d9];}[_0x4e7c38(0x3b0)](_0x5ef598){const _0x553304=_0x4e7c38;return this[_0x553304(0x21f)][_0x553304(0x4d5)](_0x5ef598[_0x553304(0x30b)])[_0x553304(0x3bf)](_0x5ef598);}};si=X([Y(0x0,_0x4562a7(mr))],si);function ci(_0x4b3923){return _0x4b3923==null?'':String(_0x4b3923);}function li(_0x56ec4e){const _0x2b3e0d=_0x4e7c38;return new Map(_0x56ec4e[_0x2b3e0d(0x3e8)]((_0x4c2b6c,_0x11b189)=>[_0x4c2b6c[_0x2b3e0d(0x394)],_0x11b189]));}function ui(_0x52b720){const _0x19e8ad=_0x4e7c38;return!!(Array[_0x19e8ad(0x56b)](_0x52b720[_0x19e8ad(0x52d)])&&_0x52b720['rowIndex']&&_0x52b720[_0x19e8ad(0x565)]&&_0x52b720['colIndex']&&_0x52b720[_0x19e8ad(0x512)]&&_0x52b720[_0x19e8ad(0x2b7)]);}function di(_0x3bb638){const _0x280da7=_0x4e7c38;let _0x30c5cb=(_0x3bb638==null?void 0x0:_0x3bb638[_0x280da7(0x477)]['filter'](_0x28c469=>!Ii(_0x28c469)))??[];return!_0x3bb638||!_0x30c5cb[_0x280da7(0x2b6)]?null:{'conjunction':_0x3bb638[_0x280da7(0x2c8)],'conditions':_0x30c5cb[_0x280da7(0x3e8)](_0x5e4926=>({'fieldId':_0x5e4926['fieldId'],'operator':_0x5e4926[_0x280da7(0x4c6)],'operand':_0x5e4926['operand']}))};}function fi(_0xda6f24,_0x2b0349){const _0x35abea=_0x4e7c38;return _0xda6f24[_0x35abea(0x2d1)]===_0x2b0349[_0x35abea(0x2d1)]&&_0xda6f24[_0x35abea(0x52d)]===_0x2b0349[_0x35abea(0x52d)]&&_0xda6f24[_0x35abea(0x531)]===_0x2b0349[_0x35abea(0x531)]&&_0xda6f24[_0x35abea(0x4dc)]===_0x2b0349[_0x35abea(0x4dc)]&&_0xda6f24[_0x35abea(0x2b7)]===_0x2b0349['cellData']&&_0xda6f24[_0x35abea(0x2cd)]===_0x2b0349['rowIndex']&&_0xda6f24[_0x35abea(0x565)]===_0x2b0349[_0x35abea(0x565)]&&_0xda6f24[_0x35abea(0x50b)]===_0x2b0349[_0x35abea(0x50b)]&&_0xda6f24[_0x35abea(0x512)]===_0x2b0349['colId'];}function pi(_0x5a6bde){const _0x140dfb=_0x4e7c38;return _0x5a6bde!=null&&_0x5a6bde[_0x140dfb(0x2b6)]?_0x5a6bde[_0x140dfb(0x3e8)](_0x31f09d=>({'fieldId':_0x31f09d[_0x140dfb(0x446)],'direction':_0x31f09d[_0x140dfb(0x1e7)]})):null;}function mi(_0x15319b){const _0x5c518c=_0x4e7c38;if(typeof _0x15319b!=_0x5c518c(0x3d3)||!_0x15319b)return JSON[_0x5c518c(0x2af)](_0x15319b)??_0x5c518c(0x526);if(Array[_0x5c518c(0x56b)](_0x15319b))return'['+_0x15319b[_0x5c518c(0x3e8)](mi)['join'](',')+']';let _0x5f9c1b=_0x15319b;return'{'+Object[_0x5c518c(0x3ca)](_0x5f9c1b)[_0x5c518c(0x266)]()['map'](_0x49911a=>JSON[_0x5c518c(0x2af)](_0x49911a)+':'+mi(_0x5f9c1b[_0x49911a]))['join'](',')+'}';}function hi(_0x46d952){const _0x4a84cf=_0x4e7c38;let _0x4201a5=Object[_0x4a84cf(0x4c0)](_0x46d952)[_0x4a84cf(0x266)]((_0xdad152,_0x530ce1)=>_0xdad152[_0x4a84cf(0x24c)][_0x4a84cf(0x582)](_0x530ce1[_0x4a84cf(0x24c)])),_0x33002d=[];for(let _0x63de32 of _0x4201a5)_0x33002d[_0x4a84cf(0x3e2)](_0x63de32['id']);return _0x33002d;}function gi(_0x89b3b5){const _0x557467=_0x4e7c38;return{'weekdays':Array[_0x557467(0x56b)](_0x89b3b5==null?void 0x0:_0x89b3b5[_0x557467(0x4e1)])&&_0x89b3b5[_0x557467(0x4e1)][_0x557467(0x2b6)]?[...new Set(_0x89b3b5[_0x557467(0x4e1)]['filter'](_0x2063ad=>Number[_0x557467(0x314)](_0x2063ad)&&_0x2063ad>=0x1&&_0x2063ad<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x557467(0x56b)](_0x89b3b5==null?void 0x0:_0x89b3b5[_0x557467(0x2d4)])?_0x89b3b5[_0x557467(0x2d4)]['flatMap'](_0x314e53=>!_0x314e53||!Number[_0x557467(0x338)](_0x314e53[_0x557467(0x3ee)])?[]:[{'id':String(_0x314e53['id']||'exception-'+_0x314e53['date']),'date':Z(Number(_0x314e53[_0x557467(0x3ee)])),'name':String(_0x314e53[_0x557467(0x39a)]||_0x557467(0x422)),'type':_0x314e53[_0x557467(0x30b)]===_0x557467(0x22f)?_0x557467(0x22f):_0x557467(0x283)}]):[]};}function _i(_0x514c49,_0x5a3fa0,_0x4b2148,_0x597c8f){let _0x4ec7fa=xi(_0x514c49,_0x5a3fa0),_0x4f55db=Si(_0x514c49,_0x4b2148),_0x4bb35c=vi(_0x514c49,_0x4ec7fa,_0x4f55db,_0x597c8f);return{'scale':_0x514c49,'start':_0x4ec7fa,'end':_0x4f55db,'unitWidth':bi(_0x514c49),'majorHeaders':yi(_0x514c49,_0x4ec7fa,_0x4f55db),'columns':_0x4bb35c};}function vi(_0x591999,_0xcc0876,_0x5c711d,_0xa2c2e9){const _0x3c4e82=_0x4e7c38;let _0x49d48d=[],_0x3ff677=_0xcc0876;for(;_0x3ff677<_0x5c711d;){let _0x4eaae5=_0x591999==='quarter'?ji(_0x3ff677,0x7):_0x591999===_0x3c4e82(0x1dc)?Mi(_0x3ff677,0x1):ji(_0x3ff677,0x1);_0x49d48d[_0x3c4e82(0x3e2)]({'id':_0x591999+'-'+_0x3ff677,'label':Ci(_0x591999,_0x3ff677,_0x4eaae5),'majorLabel':wi(_0x591999,_0x3ff677),'start':_0x3ff677,'end':_0x4eaae5,'nonWorking':Ei(_0x3ff677,_0x4eaae5,_0xa2c2e9)}),_0x3ff677=_0x4eaae5;}return _0x49d48d;}function yi(_0x3f4ee2,_0x2588d8,_0xd4e445){const _0x68c05e=_0x4e7c38;let _0x4e717c=[],_0x236aeb=_0x3f4ee2===_0x68c05e(0x1dc)?Ai(_0x2588d8):ki(_0x2588d8);for(;_0x236aeb<_0xd4e445;){let _0x5c65d5=_0x3f4ee2===_0x68c05e(0x1dc)?Ni(_0x236aeb,0x1):Mi(_0x236aeb,0x1);_0x4e717c[_0x68c05e(0x3e2)]({'id':_0x68c05e(0x426)+_0x236aeb,'label':_0x3f4ee2===_0x68c05e(0x1dc)?String(new Date(_0x236aeb)[_0x68c05e(0x2f0)]()):Pi(_0x236aeb),'start':_0x236aeb,'end':_0x5c65d5}),_0x236aeb=_0x5c65d5;}return _0x4e717c;}function bi(_0xe8010d){const _0x489d2f=_0x4e7c38;switch(_0xe8010d){case _0x489d2f(0x38a):return 0xac;case _0x489d2f(0x548):return 0xac;case _0x489d2f(0x1dc):return 0x88;default:return 0x56;}}function xi(_0x43a668,_0x4fb1fb){const _0x223d36=_0x4e7c38;return _0x43a668==='year'?Ai(_0x4fb1fb):_0x43a668===_0x223d36(0x548)?Oi(_0x4fb1fb):Z(_0x4fb1fb);}function Si(_0x2d6fad,_0x3f0846){const _0x38a48e=_0x4e7c38;return _0x2d6fad==='year'?Ni(Ai(_0x3f0846),0x1):_0x2d6fad===_0x38a48e(0x548)?ji(Oi(_0x3f0846),0x7):ji(Z(_0x3f0846),0x1);}function Ci(_0xd1f749,_0x51337,_0x337550){const _0x34fcab=_0x4e7c38;let _0x5a2031=new Date(_0x51337);return _0xd1f749==='quarter'?_0x5a2031[_0x34fcab(0x337)]()+'-'+new Date(_0x337550-oi)[_0x34fcab(0x337)]():_0xd1f749==='year'?_0x5a2031[_0x34fcab(0x384)](_0x34fcab(0x1c9),{'month':_0x34fcab(0x33e),'timeZone':_0x34fcab(0x1d4)}):String(_0x5a2031[_0x34fcab(0x337)]());}function wi(_0x42d633,_0x51bb90){const _0x37c47f=_0x4e7c38;return _0x42d633===_0x37c47f(0x1dc)?String(new Date(_0x51bb90)[_0x37c47f(0x2f0)]()):Pi(_0x51bb90);}function Ti(_0x8137e,_0x988ddb,_0x2da1c7){let _0x36c0a6=gi(_0x2da1c7),_0x1faa38=0x0;for(let _0x13442f=Z(_0x8137e);_0x13442f<=Z(_0x988ddb);_0x13442f=ji(_0x13442f,0x1))Di(_0x13442f,_0x36c0a6)||_0x1faa38++;return _0x1faa38;}function Ei(_0x42701c,_0x36cf1d,_0x33cca7){if(!_0x33cca7)return!0x1;let _0x3cc255=gi(_0x33cca7);for(let _0x7be46e=Z(_0x42701c);_0x7be46e<_0x36cf1d;_0x7be46e=ji(_0x7be46e,0x1))if(!Di(_0x7be46e,_0x3cc255))return!0x1;return!0x0;}function Di(_0xbe9469,_0x3862fa){const _0x2c2e64=_0x4e7c38;let _0x45c251=Z(_0xbe9469),_0x554629=_0x3862fa[_0x2c2e64(0x2d4)][_0x2c2e64(0x1c5)](_0x648c33=>Z(_0x648c33[_0x2c2e64(0x3ee)])===_0x45c251);if(_0x554629)return _0x554629[_0x2c2e64(0x30b)]===_0x2c2e64(0x283);let _0x562b2f=new Date(_0x45c251)['getUTCDay'](),_0x28da27=_0x562b2f===0x0?0x7:_0x562b2f;return!_0x3862fa[_0x2c2e64(0x4e1)][_0x2c2e64(0x37a)](_0x28da27);}function Z(_0x5645b8){const _0x5b0510=_0x4e7c38;let _0x270f12=new Date(_0x5645b8);return Date[_0x5b0510(0x1d4)](_0x270f12['getUTCFullYear'](),_0x270f12[_0x5b0510(0x2a1)](),_0x270f12[_0x5b0510(0x337)]());}function Oi(_0x3c4e4a){const _0x5a7051=_0x4e7c38;let _0x46daa9=Z(_0x3c4e4a),_0x58d962=new Date(_0x46daa9)[_0x5a7051(0x4ea)]();return ji(_0x46daa9,-(_0x58d962===0x0?0x6:_0x58d962-0x1));}function ki(_0x39a07f){const _0x5cfd8b=_0x4e7c38;let _0x565606=new Date(_0x39a07f);return Date[_0x5cfd8b(0x1d4)](_0x565606[_0x5cfd8b(0x2f0)](),_0x565606['getUTCMonth'](),0x1);}function Ai(_0x59ff13){const _0x45fe0c=_0x4e7c38;let _0x16ad11=new Date(_0x59ff13);return Date[_0x45fe0c(0x1d4)](_0x16ad11[_0x45fe0c(0x2f0)](),0x0,0x1);}function ji(_0x250c51,_0x1539a4){return _0x250c51+_0x1539a4*oi;}function Mi(_0x48efbc,_0x592d9d){const _0xb70caf=_0x4e7c38;let _0x56b227=new Date(_0x48efbc);return Date[_0xb70caf(0x1d4)](_0x56b227[_0xb70caf(0x2f0)](),_0x56b227[_0xb70caf(0x2a1)]()+_0x592d9d,0x1);}function Ni(_0x1e93be,_0x367dfd){const _0x3b86c4=_0x4e7c38;let _0x488084=new Date(_0x1e93be);return Date[_0x3b86c4(0x1d4)](_0x488084[_0x3b86c4(0x2f0)]()+_0x367dfd,0x0,0x1);}function Pi(_0x2e0716){const _0x270dfd=_0x4e7c38;let _0x1e6cde=new Date(_0x2e0716);return _0x1e6cde[_0x270dfd(0x384)](_0x270dfd(0x1c9),{'month':'short','timeZone':'UTC'})+'\x20'+_0x1e6cde[_0x270dfd(0x2f0)]();}function Fi(_0x491397,_0x57bac4){const _0x5ad0ba=_0x4e7c38;if(_0x491397==null&&_0x57bac4==null)return 0x0;if(_0x491397==null)return-0x1;if(_0x57bac4==null)return 0x1;if(typeof _0x491397==_0x5ad0ba(0x361)||typeof _0x57bac4=='boolean')return Number(_0x491397===!0x0)-Number(_0x57bac4===!0x0);let _0x426637=Number(_0x491397),_0x29e917=Number(_0x57bac4),_0x14fa06=Number[_0x5ad0ba(0x338)](_0x426637),_0x260227=Number[_0x5ad0ba(0x338)](_0x29e917);return _0x14fa06&&_0x260227?_0x426637-_0x29e917:_0x14fa06?0x1:_0x260227?-0x1:String(_0x491397)[_0x5ad0ba(0x582)](String(_0x57bac4));}function Ii(_0x4b1e97){const _0x3631c2=_0x4e7c38;if(_0x4b1e97[_0x3631c2(0x4c6)]!=='is'&&_0x4b1e97[_0x3631c2(0x4c6)]!==_0x3631c2(0x4a3))return!0x1;let _0x11752d=_0x4b1e97[_0x3631c2(0x300)];return _0x11752d==null?!0x0:typeof _0x11752d==_0x3631c2(0x457)?_0x11752d['trim']()==='':Array[_0x3631c2(0x56b)](_0x11752d)?_0x11752d['length']===0x0:!0x1;}function Li(_0x22d483,_0x514f09){const _0x4becba=_0x4e7c38;var _0x23dca8;let _0x205120=Array[_0x4becba(0x56b)]((_0x23dca8=_0x22d483[_0x4becba(0x554)])==null?void 0x0:_0x23dca8[_0x4becba(0x246)])?_0x22d483[_0x4becba(0x554)][_0x4becba(0x246)]:[];for(let _0x5d0536 of _0x205120){if(_0x5d0536==null)continue;if(typeof _0x5d0536==_0x4becba(0x457)){if(_0x5d0536===_0x514f09)return{'id':_0x5d0536,'name':_0x5d0536};continue;}let _0x19b5b6=_0x5d0536,_0x17517b=String(_0x19b5b6['id']??_0x19b5b6['name']??''),_0x5a97bd=String(_0x19b5b6[_0x4becba(0x39a)]??_0x19b5b6['id']??_0x17517b);if(_0x17517b===_0x514f09||_0x5a97bd===_0x514f09)return{'id':_0x17517b,'name':_0x5a97bd,'color':_0x19b5b6[_0x4becba(0x480)]==null?void 0x0:String(_0x19b5b6[_0x4becba(0x480)])};}return null;}let Ri=function(_0xc795c){const _0x5abbe8=_0x4e7c38;return _0xc795c[_0x5abbe8(0x4e3)]='create-view',_0xc795c['DeleteView']='delete-view',_0xc795c;}({});const Q={'id':_0x4e7c38(0x216),'type':_0x32350d['MUTATION'],'handler'(_0x58a981,_0x12c0e2){const _0x32fc2a=_0x4e7c38;let {unitId:_0x172e4d,op:_0x228eae}=_0x12c0e2,_0x1332e4=_0x58a981[_0x32fc2a(0x4d5)](_0x26755d)[_0x32fc2a(0x34e)](_0x172e4d,_0x2eb623[_0x32fc2a(0x583)]);if(!_0x1332e4)return!0x1;let _0x303364=_0x1332e4[_0x32fc2a(0x2a7)](),_0x2fc0a7=new z(),_0x312848=_0x2fc0a7['getAffectedRanges'](_0x228eae),_0x5ad27d=_0x2fc0a7['applyOp'](_0x303364,_0x228eae);return _0x1332e4[_0x32fc2a(0x411)](_0x5ad27d),zi(_0x5ad27d,_0x312848,_0x58a981[_0x32fc2a(0x4d5)](ii)),!0x0;}};function zi(_0x2ea902,_0x269b33,_0x223b9a){const _0x16495b=_0x4e7c38;let _0x3f4798=new Set(),_0x5a7957=new Set(),_0xc4af3b=new Set();for(let _0x92eefb of _0x269b33){if(_0x92eefb[_0x16495b(0x3be)]==='view'&&_0x92eefb[_0x16495b(0x2cc)]&&_0x92eefb[_0x16495b(0x34a)]){let _0x3c1402=_0x92eefb[_0x16495b(0x2cc)]+'\x00'+_0x92eefb['viewId'];_0xc4af3b[_0x16495b(0x4d6)](_0x3c1402)||(_0xc4af3b[_0x16495b(0x290)](_0x3c1402),_0x223b9a[_0x16495b(0x277)](_0x92eefb[_0x16495b(0x2cc)],_0x92eefb[_0x16495b(0x34a)]));continue;}if(_0x92eefb['reason']===_0x16495b(0x380)&&_0x92eefb['tableId']&&_0x92eefb[_0x16495b(0x446)]){let _0x5b8cc6=_0x92eefb['tableId']+'\x00'+_0x92eefb[_0x16495b(0x446)];_0x5a7957['has'](_0x5b8cc6)||(_0x5a7957['add'](_0x5b8cc6),_0x223b9a[_0x16495b(0x2eb)](_0x92eefb[_0x16495b(0x2cc)],_0x92eefb[_0x16495b(0x446)]));continue;}if(_0x92eefb['reason']!==_0x16495b(0x2c9)){_0x223b9a[_0x16495b(0x208)]();return;}let _0x562ec1=Bi(_0x2ea902,_0x92eefb);if(!_0x562ec1){_0x223b9a[_0x16495b(0x208)]();return;}let _0x5f0c97=_0x562ec1['tableId']+'\x00'+_0x562ec1[_0x16495b(0x394)]+'\x00'+_0x562ec1[_0x16495b(0x446)];_0x3f4798[_0x16495b(0x4d6)](_0x5f0c97)||(_0x3f4798[_0x16495b(0x290)](_0x5f0c97),_0x223b9a['invalidateByCell'](_0x562ec1[_0x16495b(0x2cc)],_0x562ec1[_0x16495b(0x394)],_0x562ec1[_0x16495b(0x446)]));}}function Bi(_0x5c3282,_0x429555){const _0x38e122=_0x4e7c38;var _0x4d25b6,_0x455774;if(!_0x429555[_0x38e122(0x2cc)])return null;if(_0x429555[_0x38e122(0x394)]&&_0x429555[_0x38e122(0x446)])return{'tableId':_0x429555[_0x38e122(0x2cc)],'recordId':_0x429555[_0x38e122(0x394)],'fieldId':_0x429555['fieldId']};if(_0x429555[_0x38e122(0x505)]==null||_0x429555[_0x38e122(0x50c)]==null)return null;let _0xf4ad3a=_0x5c3282[_0x38e122(0x29e)][_0x429555[_0x38e122(0x2cc)]],_0x4c96e0=_0xf4ad3a==null||(_0x4d25b6=_0xf4ad3a[_0x38e122(0x565)])==null?void 0x0:_0x4d25b6[_0x429555[_0x38e122(0x505)]],_0xa2a5f2=_0xf4ad3a==null||(_0x455774=_0xf4ad3a['colId'])==null?void 0x0:_0x455774[_0x429555['column']];return!_0x4c96e0||!_0xa2a5f2?null:{'tableId':_0x429555[_0x38e122(0x2cc)],'recordId':_0x4c96e0,'fieldId':_0xa2a5f2};}const Vi=_0x41e4dc['createRegExpFromSafeFragment'](String['raw']`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x41e4dc[_0x4e7c38(0x315)](String['raw']`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x41e4dc[_0x4e7c38(0x315)](String[_0x4e7c38(0x489)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x41e4dc[_0x4e7c38(0x315)](String[_0x4e7c38(0x489)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x41e4dc[_0x4e7c38(0x315)](String[_0x4e7c38(0x489)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x41e4dc[_0x4e7c38(0x315)](String[_0x4e7c38(0x489)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x41e4dc[_0x4e7c38(0x315)](String[_0x4e7c38(0x489)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x41e4dc[_0x4e7c38(0x315)](String[_0x4e7c38(0x489)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x4e7c38(0x1ce)](_0x2f4ab9,_0x510d76=_0x2f4ab9['id']){const _0x1b5449=_0x4e7c38;var _0x4ec2bf;let _0x19cc9b=((_0x4ec2bf=_0x2f4ab9[_0x1b5449(0x52d)])==null?void 0x0:_0x4ec2bf['length'])??Object['values'](_0x2f4ab9[_0x1b5449(0x2d1)])[_0x1b5449(0x2b6)];return{'sheetId':_0x510d76,'titleMap':new Map(_0x2f4ab9['fieldOrder']['map']((_0x57d7fc,_0x20a6e0)=>{const _0x16a8d3=_0x1b5449;var _0x5eeeb4;return[((_0x5eeeb4=_0x2f4ab9[_0x16a8d3(0x531)][_0x57d7fc])==null?void 0x0:_0x5eeeb4[_0x16a8d3(0x39a)])??_0x57d7fc,_0x20a6e0];})),'range':{'startRow':0x0,'endRow':Math[_0x1b5449(0x265)](0x0,_0x19cc9b-0x1),'startColumn':0x0,'endColumn':Math[_0x1b5449(0x265)](0x0,_0x2f4ab9[_0x1b5449(0x4dc)][_0x1b5449(0x2b6)]-0x1)},'showHeader':!0x1};}[_0x4e7c38(0x1e0)](_0x24ca8d,_0x2c0f95){const _0x325767=_0x4e7c38;let _0x4fa9de=[],_0x4cd954=_0x2c0f95?new Set(_0x2c0f95):null,_0x331e4e=_0x4669bc(_0x24ca8d);return Object[_0x325767(0x4c0)](_0x24ca8d[_0x325767(0x29e)])[_0x325767(0x20f)](_0x16ab9a=>!_0x4cd954||_0x4cd954['has'](_0x16ab9a['id']))[_0x325767(0x397)](_0x88247a=>{const _0x48918b=_0x325767;let _0x47d6d1=this['createSuperTableReference'](_0x88247a,_0x88247a['id']);_0x4fa9de[_0x48918b(0x3e2)]({'tableId':_0x88247a['id'],'tableName':_0x331e4e[_0x48918b(0x4d5)](_0x88247a['id']),'reference':_0x47d6d1});}),_0x4fa9de;}[_0x4e7c38(0x398)](_0x4c3541,_0x13a631,_0x13fb58={}){const _0x363314=_0x4e7c38;let _0x218e4b=_0x4c3541['trim']();if(!_0x218e4b)return{'valid':!0x0};if(na(_0x218e4b))return{'valid':!0x1,'reason':_0x363314(0x383)};let _0x5c5318=_0x13fb58['snapshot']?_0x4669bc(_0x13fb58[_0x363314(0x400)]):void 0x0;for(let _0x1d6d12 of ta(_0x218e4b)){let _0x59004f=ua(_0x1d6d12,_0x13a631,_0x13fb58[_0x363314(0x400)],_0x5c5318);if(!_0x59004f[_0x363314(0x438)])return{'valid':!0x1,'reason':_0x363314(0x4b0)+_0x1d6d12['tableName']+_0x363314(0x236)};if(!_0x59004f[_0x363314(0x380)])return{'valid':!0x1,'reason':_0x363314(0x2b9)+_0x1d6d12[_0x363314(0x21a)]+_0x363314(0x4a8)};}return{'valid':!0x0};}[_0x4e7c38(0x362)](_0x5c6133,_0x1d047a,_0x5ac7c6={}){const _0x5e7db4=_0x4e7c38;let _0x196496=new Set();for(let _0x4723cf of this[_0x5e7db4(0x289)](_0x5c6133,_0x1d047a,_0x5ac7c6))_0x4723cf[_0x5e7db4(0x2cc)]===_0x1d047a['id']&&_0x196496['add'](_0x4723cf[_0x5e7db4(0x446)]);return Array[_0x5e7db4(0x501)](_0x196496);}[_0x4e7c38(0x289)](_0x4f0fcd,_0x4bab25,_0x1f2a7a={}){const _0x4ea00d=_0x4e7c38;let _0x5cced4=new Map(),_0x1925cb=_0x1f2a7a[_0x4ea00d(0x400)]?_0x4669bc(_0x1f2a7a[_0x4ea00d(0x400)]):void 0x0;for(let _0x294867 of ta(_0x4f0fcd)){let _0x56afc7=ua(_0x294867,_0x4bab25,_0x1f2a7a['snapshot'],_0x1925cb);if(!_0x56afc7[_0x4ea00d(0x438)]||!_0x56afc7[_0x4ea00d(0x380)])continue;let _0x572d36=_0x56afc7[_0x4ea00d(0x438)]['id']+'\x1f'+_0x56afc7[_0x4ea00d(0x380)]['id'];_0x5cced4[_0x4ea00d(0x205)](_0x572d36,{'tableId':_0x56afc7[_0x4ea00d(0x438)]['id'],'fieldId':_0x56afc7['field']['id']});}return Array[_0x4ea00d(0x501)](_0x5cced4['values']());}};function Zi(_0x4fcab7,_0x40d4a9){const _0x4783d8=_0x4e7c38;var _0x1fb33c;let _0x3a0832=[],_0x402294=(_0x1fb33c=_0x40d4a9[_0x4783d8(0x3fd)])==null?void 0x0:_0x1fb33c[_0x4fcab7['id']];return _0x402294&&Object[_0x4783d8(0x502)](_0x402294)[_0x4783d8(0x397)](([_0x58351b,_0x1e0c1b])=>{const _0x5b52d4=_0x4783d8;let _0x4e073d=_0x4fcab7[_0x5b52d4(0x29e)][_0x58351b];if(!_0x4e073d||!_0x1e0c1b)return;let _0x38d083=L(_0x4e073d),_0x36e935=[];new _0x5e8551(_0x1e0c1b)[_0x5b52d4(0x546)]((_0x16ab53,_0x4b83a9,_0x1be09c)=>{const _0x11aed8=_0x5b52d4;let _0x19f778=Qi(_0x38d083,_0x16ab53,_0x4b83a9,_0x1be09c);_0x19f778&&_0x36e935[_0x11aed8(0x3e2)](_0x19f778);}),_0x36e935[_0x5b52d4(0x2b6)]&&_0x3a0832[_0x5b52d4(0x3e2)]({'unitId':_0x4fcab7['id'],'tableId':_0x58351b,'patches':_0x36e935});}),_0x3a0832;}function Qi(_0x80cd5e,_0x56bacb,_0x4e0e22,_0x1aea19){const _0xe0e65a=_0x4e7c38;var _0x4a4cf9,_0x1a98c7,_0x18a5e1;let _0x4b7c83=(_0x4a4cf9=_0x80cd5e[_0xe0e65a(0x565)])==null?void 0x0:_0x4a4cf9[_0x56bacb],_0x305d33=(_0x1a98c7=_0x80cd5e[_0xe0e65a(0x512)])==null?void 0x0:_0x1a98c7[_0x4e0e22];if(!_0x4b7c83||!_0x80cd5e[_0xe0e65a(0x2d1)][_0x4b7c83]||!_0x305d33)return null;let _0x5bf9d7=_0x80cd5e[_0xe0e65a(0x531)][_0x305d33];if(!_0x5bf9d7||_0x5bf9d7[_0xe0e65a(0x30b)]!==_0xe0e65a(0x44e))return null;let _0x350671=String(((_0x18a5e1=_0x5bf9d7[_0xe0e65a(0x554)])==null?void 0x0:_0x18a5e1[_0xe0e65a(0x44e)])??'')[_0xe0e65a(0x42c)](),_0x483eb0=(_0x1aea19==null?void 0x0:_0x1aea19['v'])??null,_0x8a1d78={'v':_0x483eb0,'t':ea(_0x483eb0),..._0x56bacb===0x0&&_0x350671?{'f':_0x350671}:{},'si':_0x5bf9d7['id']};return $i(vt(_0x80cd5e,_0x4b7c83,_0x305d33),_0x8a1d78)?null:{'row':_0x56bacb,'col':_0x4e0e22,'value':_0x8a1d78};}function $i(_0xe53eb9,_0x275ff8){return _0xe53eb9!=null&&Object['is'](_0xe53eb9['v']??null,_0x275ff8['v']??null)&&_0xe53eb9['t']===_0x275ff8['t']&&_0xe53eb9['f']===_0x275ff8['f']&&_0xe53eb9['si']===_0x275ff8['si'];}function ea(_0x532c9d){const _0x557a4e=_0x4e7c38;return typeof _0x532c9d=='number'?_0xbba171[_0x557a4e(0x256)]:typeof _0x532c9d=='boolean'?_0xbba171[_0x557a4e(0x2ec)]:typeof _0x532c9d==_0x557a4e(0x457)?_0xbba171[_0x557a4e(0x329)]:null;}function ta(_0x47039e){const _0x126263=_0x4e7c38;let _0x2cc490=ia(_0x47039e,()=>''),_0x2b7f4a=new Map(),_0x629cbc=_0x416cb4=>{const _0x250138=_0x16bf;_0x2b7f4a['set']((_0x416cb4[_0x250138(0x1d9)]??'')+'\x1f'+_0x416cb4[_0x250138(0x21a)],_0x416cb4);};for(let _0x5bdf5c of _0x2cc490['matchAll'](Ui))_0x629cbc({'fieldName':_0x5bdf5c[0x1],'scope':_0x126263(0x42a)});_0x2cc490=_0x2cc490[_0x126263(0x212)](Wi,(_0x29da44,_0x37ca6d,_0x40dc5d,_0x3fd650)=>(_0x629cbc({'tableName':_0x37ca6d,'fieldName':_0x3fd650,'scope':_0x40dc5d[_0x126263(0x1e9)]()===_0x126263(0x3ba)?_0x126263(0x3ba):_0x126263(0x42a)}),'\x20')),_0x2cc490=_0x2cc490[_0x126263(0x212)](Gi,(_0x4dcb3f,_0x3d5e8f,_0x489d4b)=>(_0x629cbc({'tableName':_0x3d5e8f,'fieldName':_0x489d4b,'scope':_0x126263(0x42a)}),'\x20')),_0x2cc490=_0x2cc490[_0x126263(0x212)](qi,(_0x210949,_0x3a1f23,_0x25cd37,_0x4413e6)=>(_0x629cbc({'fieldName':_0x4413e6,'scope':_0x25cd37[_0x126263(0x1e9)]()==='data'?_0x126263(0x3ba):_0x126263(0x42a)}),_0x3a1f23+'\x20')),_0x2cc490=_0x2cc490[_0x126263(0x212)](Ji,(_0x2449d5,_0x348624,_0x167284)=>(_0x629cbc({'fieldName':_0x167284,'scope':_0x126263(0x42a)}),_0x348624+'\x20'));for(let _0x18f047 of _0x2cc490['matchAll'](Ki))_0x629cbc({'tableName':_0x18f047[0x1],'fieldName':_0x18f047[0x2]});for(let _0x84671b of _0x2cc490['matchAll'](Yi))_0x629cbc({'fieldName':_0x84671b[0x2],'scope':'this-row'});return Array['from'](_0x2b7f4a[_0x126263(0x4c0)]());}function na(_0x171e81){const _0x9dd8f6=_0x4e7c38;let _0x13df1f=ia(_0x171e81,()=>'\x20')[_0x9dd8f6(0x212)](Ui,'\x20')[_0x9dd8f6(0x212)](Wi,'\x20')[_0x9dd8f6(0x212)](Gi,'\x20')[_0x9dd8f6(0x212)](qi,'$1\x20')[_0x9dd8f6(0x212)](Ji,_0x9dd8f6(0x30f))['replace'](Ki,'\x20')[_0x9dd8f6(0x212)](Yi,_0x9dd8f6(0x30f));return Vi[_0x9dd8f6(0x463)](_0x13df1f);}function ra(_0x371a5d,_0x4acf5a){return ca(oa(_0x371a5d,_0x4acf5a),_0x4acf5a);}function ia(_0xfa4d2,_0xdadec0){return aa(ra(_0xfa4d2,_0xdadec0),_0xdadec0);}function aa(_0x5c48d5,_0x4ac7ed){const _0x1f8e73=_0x4e7c38;return _0x5c48d5[_0x1f8e73(0x212)](/"(?:""|[^"])*"/g,_0x4ac7ed);}function oa(_0x41ffad,_0x43e9fe){const _0x201e3d=_0x4e7c38;return Hi['lastIndex']=0x0,_0x41ffad[_0x201e3d(0x212)](Hi,(_0x2f20a3,_0x42ffa5)=>la(_0x41ffad,_0x42ffa5)?_0x2f20a3:_0x43e9fe(_0x2f20a3));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x2eab5c,_0xf9ca44){const _0x24e0f6=_0x4e7c38;let _0x4d5ada=[];for(sa[_0x24e0f6(0x485)]=0x0;;){let _0x74f98d=sa[_0x24e0f6(0x1c8)](_0x2eab5c);if(_0x74f98d==null)break;if(la(_0x2eab5c,_0x74f98d[_0x24e0f6(0x230)]))continue;let _0x4a98a1=sa['lastIndex']-0x1,_0x40b71d=0x0;for(let _0x43118c=_0x4a98a1;_0x43118c<_0x2eab5c[_0x24e0f6(0x2b6)];_0x43118c++)if(_0x2eab5c[_0x43118c]==='['&&_0x40b71d++,_0x2eab5c[_0x43118c]===']'&&(_0x40b71d--,_0x40b71d===0x0)){_0x4d5ada[_0x24e0f6(0x3e2)]({'start':_0x74f98d[_0x24e0f6(0x230)],'end':_0x43118c+0x1}),sa['lastIndex']=_0x43118c+0x1;break;}}if(_0x4d5ada[_0x24e0f6(0x2b6)]===0x0)return _0x2eab5c;let _0x4b5e09='',_0x597683=0x0;for(let _0x51598b of _0x4d5ada)_0x4b5e09+=_0x2eab5c[_0x24e0f6(0x479)](_0x597683,_0x51598b[_0x24e0f6(0x2b1)]),_0x4b5e09+=_0xf9ca44(_0x2eab5c[_0x24e0f6(0x479)](_0x51598b[_0x24e0f6(0x2b1)],_0x51598b[_0x24e0f6(0x41a)])),_0x597683=_0x51598b[_0x24e0f6(0x41a)];return _0x4b5e09+_0x2eab5c[_0x24e0f6(0x479)](_0x597683);}function la(_0x2b2474,_0x57d5d8){let _0x57740b=!0x1;for(let _0x58871a=0x0;_0x58871a<_0x57d5d8;_0x58871a++)if(_0x2b2474[_0x58871a]==='\x22'){if(_0x57740b&&_0x2b2474[_0x58871a+0x1]==='\x22'){_0x58871a++;continue;}_0x57740b=!_0x57740b;}return _0x57740b;}function ua(_0x2cd9ca,_0x2e5e3e,_0x54101b,_0x45c69f){const _0x4aece5=_0x4e7c38;let _0x5bdc6d=da(_0x2cd9ca[_0x4aece5(0x1d9)],_0x2e5e3e,_0x54101b,_0x45c69f);return{'table':_0x5bdc6d,'field':_0x5bdc6d?Object[_0x4aece5(0x4c0)](_0x5bdc6d[_0x4aece5(0x531)])[_0x4aece5(0x1c5)](_0x4c9109=>_0x4c9109[_0x4aece5(0x39a)]===_0x2cd9ca[_0x4aece5(0x21a)]):void 0x0};}function da(_0x11228d,_0x3a2350,_0x2b1bd9,_0x29b8e1){const _0x29fcd6=_0x4e7c38;if(!_0x11228d)return _0x3a2350;if(!_0x2b1bd9){var _0x3a434a;let _0x27e472=_0x11228d[_0x29fcd6(0x1e9)]();return _0x27e472===_0x3a2350['id'][_0x29fcd6(0x1e9)]()||_0x27e472===_0x3a2350[_0x29fcd6(0x39a)][_0x29fcd6(0x1e9)]()||_0x27e472===((_0x3a434a=_0x3a2350[_0x29fcd6(0x2cf)])==null?void 0x0:_0x3a434a['toLowerCase']())?_0x3a2350:void 0x0;}let _0x5d8bff=_0x11228d[_0x29fcd6(0x1e9)](),_0x84c97c=_0x29b8e1??_0x4669bc(_0x2b1bd9),_0x4a99ad=Object[_0x29fcd6(0x4c0)](_0x2b1bd9[_0x29fcd6(0x29e)])[_0x29fcd6(0x20f)](_0x4ceb4c=>{const _0x6ff3f2=_0x29fcd6;var _0x461e2e;return _0x4ceb4c['id'][_0x6ff3f2(0x1e9)]()===_0x5d8bff||_0x4ceb4c['name'][_0x6ff3f2(0x1e9)]()===_0x5d8bff||((_0x461e2e=_0x84c97c[_0x6ff3f2(0x4d5)](_0x4ceb4c['id']))==null?void 0x0:_0x461e2e['toLowerCase']())===_0x5d8bff||fa(_0x4ceb4c['id'])[_0x6ff3f2(0x1e9)]()===_0x5d8bff;});return _0x4a99ad[_0x29fcd6(0x2b6)]===0x1?_0x4a99ad[0x0]:void 0x0;}function fa(_0x45371c){const _0x3acd87=_0x4e7c38;return _0x3acd87(0x29c)+Array['from'](_0x45371c,_0x92ee90=>{const _0x20bd2a=_0x3acd87;var _0x26e735;return/[A-Za-z0-9]/['test'](_0x92ee90)?_0x92ee90:'_x'+(((_0x26e735=_0x92ee90[_0x20bd2a(0x3e5)](0x0))==null?void 0x0:_0x26e735['toString'](0x10))??'0')+'_';})['join']('');}const pa=new Xi();function ma(_0x34420e,_0x227b2a,_0x2f4d50){const _0x53e366=_0x4e7c38;var _0x1887dd;if(_0x2f4d50['type']!==_0x377615['Formula'])return!0x0;let _0x45f5f2=String(((_0x1887dd=_0x2f4d50[_0x53e366(0x554)])==null?void 0x0:_0x1887dd[_0x53e366(0x44e)])??''),_0x29b1fb=_0x34420e['getSnapshot']();return pa[_0x53e366(0x398)](_0x45f5f2,_0x29b1fb[_0x53e366(0x29e)][_0x227b2a],{'snapshot':_0x29b1fb})[_0x53e366(0x29f)];}function $(_0x1db8b2,_0x3bf601,_0x2f218d){const _0x5e48c8=_0x4e7c38;let _0x4075d4=_0x1db8b2[_0x5e48c8(0x2a7)]()[_0x5e48c8(0x29e)][_0x3bf601];if(!_0x4075d4)return!0x1;let {viewIds:_0x5b8a79,fieldIds:_0x2e290e,recordIds:_0x27c448}=_0x2f218d||{};if(_0x5b8a79){for(let _0x1dfa9e of _0x5b8a79)if(!_0x4075d4[_0x5e48c8(0x460)][_0x1dfa9e])return!0x1;}if(_0x2e290e){for(let _0x330c5c of _0x2e290e)if(!_0x4075d4[_0x5e48c8(0x531)][_0x330c5c])return!0x1;}if(_0x27c448){for(let _0x3b272c of _0x27c448)if(!_0x4075d4[_0x5e48c8(0x2d1)][_0x3b272c])return!0x1;}return!0x0;}function ha(_0xb9030a,_0x42c7a6,_0x15819b){const _0x21d602=_0x4e7c38;if(_0x15819b['id']===_0x5802d7||_0x15819b['type']===_0x377615['RecordId']||_0x56e40f(_0x15819b[_0x21d602(0x39a)])||!ma(_0xb9030a,_0x42c7a6,_0x15819b))return!0x1;let _0x576c9b=_0xb9030a[_0x21d602(0x2a7)]();if(!Be(_0x576c9b,_0x15819b)['valid'])return!0x1;if(_0x15819b['type']!==_0x377615[_0x21d602(0x23d)])return!0x0;let _0x43610d=N(_0x15819b);if(!_0x43610d)return!0x1;if(_0x43610d['relationRole']===void 0x0)return!0x0;if(_0x43610d[_0x21d602(0x4ab)]!==_0x4cb80e['Parent']||_0x43610d[_0x21d602(0x3b9)]!==_0x42c7a6||_0x43610d[_0x21d602(0x413)]!==!0x1)return!0x1;let _0x528e4b=_0x576c9b[_0x21d602(0x29e)][_0x42c7a6];return!Object[_0x21d602(0x4c0)](_0x528e4b[_0x21d602(0x531)])[_0x21d602(0x48e)](_0x47dc75=>{const _0x42a9b3=_0x21d602;var _0x34b64d;return _0x47dc75['id']!==_0x15819b['id']&&_0x47dc75[_0x42a9b3(0x30b)]===_0x377615[_0x42a9b3(0x23d)]&&((_0x34b64d=N(_0x47dc75))==null?void 0x0:_0x34b64d[_0x42a9b3(0x4ab)])===_0x4cb80e[_0x42a9b3(0x3c7)];});}function ga(_0x561164,_0x23babe,_0x12d906,_0x43b013){const _0x53f1be=_0x4e7c38;var _0x421962;let _0x8cdf95=_0x561164[_0x53f1be(0x2a7)](),_0x3f5a85=(_0x421962=_0x8cdf95[_0x53f1be(0x29e)][_0x23babe])==null?void 0x0:_0x421962[_0x53f1be(0x531)][_0x12d906];return!_0x3f5a85||_0x3f5a85['id']===_0x5802d7||_0x3f5a85[_0x53f1be(0x30b)]===_0x377615[_0x53f1be(0x4c5)]?!0x1:_0x3f5a85[_0x53f1be(0x30b)]!==_0x377615[_0x53f1be(0x23d)]||Ve(_0x8cdf95,_0x3f5a85,ya(_0x43b013))['valid'];}function _a(_0x487304,_0x84e746,_0x53d3a1){const _0x379406=_0x4e7c38;let _0x1426f9=_0x487304[_0x379406(0x2a7)]()[_0x379406(0x29e)][_0x84e746];return!_0x1426f9||!_0x5a7c96(_0x53d3a1['id'])||_0x1426f9['records'][_0x53d3a1['id']]||Object[_0x379406(0x2f7)]['hasOwnProperty'][_0x379406(0x386)](_0x53d3a1[_0x379406(0x4c0)],_0x5802d7)&&_0x53d3a1['values'][_0x5802d7]!==_0x53d3a1['id']?!0x1:Object[_0x379406(0x502)](_0x53d3a1[_0x379406(0x4c0)])[_0x379406(0x1f6)](([_0xdfca5f,_0x173dad])=>_0xdfca5f===_0x5802d7||ga(_0x487304,_0x84e746,_0xdfca5f,_0x173dad));}function va(_0x4ee0a0){const _0x5d177c=_0x4e7c38;return{..._0x4ee0a0,'values':{..._0x4ee0a0[_0x5d177c(0x4c0)],[_0x5802d7]:_0x4ee0a0['id']}};}function ya(_0x51d57f){const _0x4b8161=_0x4e7c38;if(_0x51d57f&&typeof _0x51d57f==_0x4b8161(0x3d3)&&!Array[_0x4b8161(0x56b)](_0x51d57f)&&'v'in _0x51d57f){let _0x20f4f3=_0x51d57f['v'];return _0x20f4f3===void 0x0?null:_0x20f4f3;}return _0x51d57f;}function ba(_0x36cae0,_0x45e328,_0x5e61f1,_0x15d145){const _0x13df11=_0x4e7c38;let _0x368dbf=_0x36cae0[_0x13df11(0x2a7)]()['tables'][_0x45e328];if(!_0x368dbf)return null;let _0x3b5608=qe(_0x368dbf),_0x27d350=_0x3b5608??Je(_0x368dbf),_0x51433e=_0x5e61f1['some'](_0x36b5f6=>Object[_0x13df11(0x2f7)][_0x13df11(0x396)][_0x13df11(0x386)](_0x36b5f6[_0x13df11(0x4c0)],_0x27d350)),_0x32f9f7=_0x3b5608?_0x368dbf[_0x13df11(0x531)][_0x3b5608]:_0x51433e?Ye(_0x368dbf,_0x27d350,_0x15d145):null,_0x3bc44f=[];for(let _0x5c7313 of _0x5e61f1){let _0x23b98c=_0x5c7313[_0x13df11(0x4c0)][_0x27d350],_0x329ab4=_0x32f9f7!==null&&Object['prototype'][_0x13df11(0x396)][_0x13df11(0x386)](_0x5c7313[_0x13df11(0x4c0)],_0x27d350),_0x1b0edf=ya(_0x23b98c),_0x104955=null;if(_0x329ab4){if(typeof _0x1b0edf!='string'||!ze(_0x1b0edf,!0x1)[_0x13df11(0x29f)])return null;_0x104955=_0x1b0edf;}let _0x3d3067={};if(Object[_0x13df11(0x502)](_0x5c7313['values'])[_0x13df11(0x397)](([_0x45dc5f,_0x38dbbd])=>{(!_0x329ab4||_0x45dc5f!==_0x27d350)&&(_0x3d3067[_0x45dc5f]=_0x38dbbd);}),!_a(_0x36cae0,_0x45e328,{..._0x5c7313,'values':_0x3d3067}))return null;let _0x1e721={..._0x5c7313[_0x13df11(0x4c0)]};_0x104955!==null&&(_0x1e721[_0x27d350]=_0x104955),_0x3bc44f[_0x13df11(0x3e2)](va({..._0x5c7313,'values':_0x1e721}));}return{'records':_0x3bc44f,'hierarchyFieldToMaterialize':_0x3b5608?null:_0x32f9f7,'hierarchyChanges':Qe(_0x368dbf,_0x3bc44f)};}const xa={'id':_0x4e7c38(0x1ff),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x3fe102,_0x428216){const _0x3a3251=_0x4e7c38;if(!_0x428216)return!0x1;let _0x4746cf=_0x3fe102[_0x3a3251(0x4d5)](_0x26755d),{unitId:_0x853870,tableId:_0x9a9cae,records:_0x193ab4}=_0x428216,_0x4cac9d=_0x4746cf[_0x3a3251(0x34e)](_0x853870,_0x2eb623[_0x3a3251(0x583)]),_0x111431=_0x193ab4['map'](_0x2a0033=>_0x2a0033['id']);if(!_0x4cac9d||!$(_0x4cac9d,_0x9a9cae)||new Set(_0x111431)['size']!==_0x111431['length'])return!0x1;let _0x405143=_0x3fe102[_0x3a3251(0x4d5)](_0x5342d9),_0x59b3e2=_0x3fe102['get'](_0x1eb28c),_0x3b76ce=_0x3fe102['get'](Kr),_0x4748e0=_0x4cac9d[_0x3a3251(0x2a7)](),_0x2a2a9d=ba(_0x4cac9d,_0x9a9cae,_0x193ab4);if(!_0x2a2a9d)return!0x1;let {records:_0x1d531a,hierarchyChanges:_0x4fd94e,hierarchyFieldToMaterialize:_0x4fc4d}=_0x2a2a9d,_0x4f82e4=_0x4fc4d?_0x3b76ce[_0x3a3251(0x42d)](_0x4cac9d,_0x9a9cae,_0x4fc4d,_0x4748e0['tables'][_0x9a9cae][_0x3a3251(0x4dc)][_0x3a3251(0x2b6)]):null,_0xfd1f78=_0x3b76ce['createBatchCreateRecordsOp'](_0x4cac9d,_0x9a9cae,_0x1d531a),_0x3d64e1=R([..._0x4f82e4?[_0x4f82e4]:[],_0xfd1f78]),_0x27560b=new z()['invertOp'](_0x4748e0,_0x3d64e1),_0x1e9652={'unitId':_0x853870,'op':_0x3d64e1,'hierarchyChanges':_0x4fd94e[_0x3a3251(0x2b6)]?_0x4fd94e:void 0x0,'source':_0x4fd94e['length']?_0x428216['source']??'ui':void 0x0},_0x2d1e5a={..._0x1e9652,'source':_0x4fd94e[_0x3a3251(0x2b6)]?_0x3a3251(0x237):void 0x0},_0x538e50={'unitId':_0x853870,'op':_0x27560b,'hierarchyChanges':_0x4fd94e[_0x3a3251(0x2b6)]?_0x4fd94e[_0x3a3251(0x3e8)](_0x6ad68f=>({..._0x6ad68f,'oldParentRecordId':_0x6ad68f[_0x3a3251(0x44b)],'parentRecordId':null})):void 0x0,'source':_0x4fd94e[_0x3a3251(0x2b6)]?'undo':void 0x0};return _0x405143[_0x3a3251(0x490)](Q['id'],_0x1e9652)?(_0x4746cf['focusUnit'](_0x853870),_0x59b3e2[_0x3a3251(0x260)]({'unitID':_0x853870,'undoMutations':[{'id':Q['id'],'params':_0x538e50}],'redoMutations':[{'id':Q['id'],'params':_0x2d1e5a}]}),!0x0):!0x1;}},Sa={'id':_0x4e7c38(0x393),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x493e50,_0x5664da)=>{const _0x4f8ba6=_0x4e7c38;if(!_0x5664da)return!0x1;let _0x261e11=_0x493e50[_0x4f8ba6(0x4d5)](_0x26755d),{unitId:_0x3f773b,tableId:_0x1c0788,recordIds:_0x16ed0e}=_0x5664da,_0x108eb5=_0x261e11['getUnit'](_0x3f773b,_0x2eb623[_0x4f8ba6(0x583)]);if(!_0x108eb5||!$(_0x108eb5,_0x1c0788,{'recordIds':_0x16ed0e}))return!0x1;let _0x36143f=_0x493e50[_0x4f8ba6(0x4d5)](_0x5342d9),_0x2b4268=_0x493e50['get'](_0x1eb28c),_0x30dcc8=_0x108eb5['getSnapshot'](),_0x4db238=et(_0x30dcc8['tables'][_0x1c0788],_0x16ed0e),_0x28c935=new W(),_0x2ee34e=new z(),_0x1a8d01=_0x28c935[_0x4f8ba6(0x48f)](_0x30dcc8,_0x1c0788,_0x16ed0e),_0x437e44=_0x2ee34e[_0x4f8ba6(0x348)](_0x30dcc8,_0x1a8d01),_0x3c6c03=_0x28c935[_0x4f8ba6(0x24f)](_0x30dcc8,_0x437e44,_0x1c0788,_0x16ed0e),_0x43429c={'unitId':_0x3f773b,'op':_0x1a8d01,'hierarchyChanges':_0x4db238,'source':_0x5664da['source']??'ui'},_0x5927f4={..._0x43429c,'source':_0x4f8ba6(0x237)},_0x35d912={'unitId':_0x3f773b,'op':_0x3c6c03,'hierarchyChanges':_0x4db238[_0x4f8ba6(0x3e8)](_0x2cca49=>({..._0x2cca49,'oldParentRecordId':_0x2cca49[_0x4f8ba6(0x44b)],'parentRecordId':_0x2cca49['oldParentRecordId']})),'source':_0x4f8ba6(0x3ef)};return _0x36143f[_0x4f8ba6(0x490)](Q['id'],_0x43429c)?(_0x261e11[_0x4f8ba6(0x366)](_0x3f773b),_0x2b4268[_0x4f8ba6(0x260)]({'unitID':_0x3f773b,'undoMutations':[{'id':Q['id'],'params':_0x35d912}],'redoMutations':[{'id':Q['id'],'params':_0x5927f4}]}),!0x0):!0x1;}},Ca={'id':_0x4e7c38(0x424),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x26523b,_0x6d8506)=>{const _0x65efd8=_0x4e7c38;if(!_0x6d8506)return!0x1;let _0x3783aa=_0x26523b[_0x65efd8(0x4d5)](_0x26755d),{unitId:_0x3662ff,tableId:_0x20085a,fieldId:_0x587ad4,input:_0x5b137b}=_0x6d8506,_0x3658fa=_0x3783aa[_0x65efd8(0x34e)](_0x3662ff,_0x2eb623[_0x65efd8(0x583)]);if(!_0x3658fa||_0x587ad4===_0x5802d7||!$(_0x3658fa,_0x20085a,{'fieldIds':[_0x587ad4]}))return!0x1;let _0x37fba6=_0x26523b['get'](_0x5342d9),_0x419aad=_0x26523b[_0x65efd8(0x4d5)](_0x1eb28c),_0x21f7e9=_0x3658fa[_0x65efd8(0x2a7)]();if(!ha(_0x3658fa,_0x20085a,{..._0x21f7e9[_0x65efd8(0x29e)][_0x20085a][_0x65efd8(0x531)][_0x587ad4],..._0x5b137b}))return!0x1;let _0x4b7392=new W()[_0x65efd8(0x36f)](_0x21f7e9,_0x20085a,_0x587ad4,_0x5b137b),_0x37c023=new z()[_0x65efd8(0x27f)](_0x21f7e9,_0x4b7392),_0x424881={'unitId':_0x3662ff,'op':_0x4b7392},_0x5c1fb8={'unitId':_0x3662ff,'op':_0x37c023};return _0x37fba6[_0x65efd8(0x490)](Q['id'],_0x424881)?(_0x3783aa[_0x65efd8(0x366)](_0x3662ff),_0x419aad[_0x65efd8(0x260)]({'unitID':_0x3662ff,'undoMutations':[{'id':Q['id'],'params':_0x5c1fb8}],'redoMutations':[{'id':Q['id'],'params':_0x424881}]}),!0x0):!0x1;}},wa={'id':'base.command.create-base-child-record','type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x171cb9,_0x37adf7){const _0x4d3d8f=_0x4e7c38;var _0x319809;if(!_0x37adf7)return!0x1;let {unitId:_0xb6d677,tableId:_0x36a92c,parentRecordId:_0x1bb67a}=_0x37adf7,_0x67c362=_0x171cb9[_0x4d3d8f(0x4d5)](_0x26755d),_0x85f45d=_0x67c362[_0x4d3d8f(0x34e)](_0xb6d677,_0x2eb623[_0x4d3d8f(0x583)]);if(!_0x85f45d||!$(_0x85f45d,_0x36a92c,{'recordIds':[_0x1bb67a]}))throw new P(_0x4d3d8f(0x310));let _0x100b3d=_0x85f45d[_0x4d3d8f(0x2a7)](),_0x44b311=_0x100b3d[_0x4d3d8f(0x29e)][_0x36a92c],_0x1dc3ba=qe(_0x44b311),_0x4573f3=_0x1dc3ba??_0x37adf7[_0x4d3d8f(0x446)]??Je(_0x44b311);if(_0x1dc3ba&&_0x37adf7[_0x4d3d8f(0x446)]&&_0x37adf7[_0x4d3d8f(0x446)]!==_0x1dc3ba||_0x44b311[_0x4d3d8f(0x531)][_0x4573f3]&&!F(_0x44b311,_0x4573f3))throw new P(_0x4d3d8f(0x401));if((tt(_0x44b311,_0x4573f3)['depthByRecordId'][_0x4d3d8f(0x4d5)](_0x1bb67a)??0x0)+0x1>=0x5)throw new P(_0x4d3d8f(0x382));if(!_a(_0x85f45d,_0x36a92c,_0x37adf7[_0x4d3d8f(0x51b)]))return!0x1;let _0x25e461=va({..._0x37adf7[_0x4d3d8f(0x51b)],'values':{..._0x37adf7[_0x4d3d8f(0x51b)][_0x4d3d8f(0x4c0)],[_0x4573f3]:Re([_0x1bb67a])}}),_0x2afafa=_0x171cb9[_0x4d3d8f(0x4d5)](Kr),_0x141920=new W(),_0x4da51a=_0x44b311[_0x4d3d8f(0x531)][_0x4573f3],_0x589caf=_0x4da51a?((_0x319809=N(_0x4da51a))==null?void 0x0:_0x319809['relationRole'])===_0x4cb80e[_0x4d3d8f(0x3c7)]?null:_0x141920[_0x4d3d8f(0x309)](_0x100b3d,_0x36a92c,_0x4573f3,{'config':{..._0x4da51a['config'],'relationRole':_0x4cb80e['Parent']}}):_0x2afafa['createCreateFieldOp'](_0x85f45d,_0x36a92c,Ye(_0x44b311,_0x4573f3,_0x37adf7[_0x4d3d8f(0x3df)]),_0x44b311[_0x4d3d8f(0x4dc)][_0x4d3d8f(0x2b6)]),_0x542d73=_0x2afafa[_0x4d3d8f(0x28a)](_0x85f45d,_0x36a92c,_0x25e461),_0x3abe74=R([..._0x589caf?[_0x589caf]:[],_0x542d73]),_0x3f1323=new z()[_0x4d3d8f(0x27f)](_0x100b3d,_0x3abe74),_0x38a1c8={'tableId':_0x36a92c,'fieldId':_0x4573f3,'recordId':_0x25e461['id'],'oldParentRecordId':null,'parentRecordId':_0x1bb67a},_0x20dc3d={'unitId':_0xb6d677,'op':_0x3abe74,'trigger':wa['id'],'hierarchyChanges':[_0x38a1c8],'source':_0x37adf7[_0x4d3d8f(0x211)]??'ui'},_0x60f595={..._0x20dc3d,'source':_0x4d3d8f(0x237)},_0x3604a7={'unitId':_0xb6d677,'op':_0x3f1323,'trigger':wa['id'],'hierarchyChanges':[{..._0x38a1c8,'oldParentRecordId':_0x1bb67a,'parentRecordId':null}],'source':_0x4d3d8f(0x3ef)};return _0x171cb9[_0x4d3d8f(0x4d5)](_0x5342d9)[_0x4d3d8f(0x490)](Q['id'],_0x20dc3d)?(_0x67c362['focusUnit'](_0xb6d677),_0x171cb9['get'](_0x1eb28c)[_0x4d3d8f(0x260)]({'unitID':_0xb6d677,'undoMutations':[{'id':Q['id'],'params':_0x3604a7}],'redoMutations':[{'id':Q['id'],'params':_0x60f595}]}),!0x0):!0x1;}},Ta={'id':_0x4e7c38(0x4f1),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x2ddfce,_0x31924a){const _0x1fb7c8=_0x4e7c38;if(!_0x31924a)return!0x1;let _0x3abb99=_0x2ddfce['get'](_0x26755d),{unitId:_0x454c19,tableId:_0x2a418d,field:_0xc2be19,index:_0xc82f6b,viewIndexes:_0x107ab4}=_0x31924a,_0x5e98f7=_0x3abb99[_0x1fb7c8(0x34e)](_0x454c19,_0x2eb623[_0x1fb7c8(0x583)]);if(!_0x5e98f7||!$(_0x5e98f7,_0x2a418d)||_0x5e98f7['getSnapshot']()[_0x1fb7c8(0x29e)][_0x2a418d][_0x1fb7c8(0x531)][_0xc2be19['id']]||_0xc82f6b===0x0||!ha(_0x5e98f7,_0x2a418d,_0xc2be19))return!0x1;let _0xa34812=_0x2ddfce[_0x1fb7c8(0x4d5)](_0x5342d9),_0x319778=_0x2ddfce[_0x1fb7c8(0x4d5)](_0x1eb28c),_0x46226b=_0x2ddfce[_0x1fb7c8(0x4d5)](Kr)[_0x1fb7c8(0x42d)](_0x5e98f7,_0x2a418d,_0xc2be19,_0xc82f6b,_0x107ab4),_0x14868c=new z()['invertOp'](_0x5e98f7[_0x1fb7c8(0x2a7)](),_0x46226b),_0x8883c7={'unitId':_0x454c19,'op':_0x46226b},_0x302c07={'unitId':_0x454c19,'op':_0x14868c};return _0xa34812[_0x1fb7c8(0x490)](Q['id'],_0x8883c7)?(_0x3abb99[_0x1fb7c8(0x366)](_0x454c19),_0x319778[_0x1fb7c8(0x260)]({'unitID':_0x454c19,'undoMutations':[{'id':Q['id'],'params':_0x302c07}],'redoMutations':[{'id':Q['id'],'params':_0x8883c7}]}),!0x0):!0x1;}},Ea={'id':_0x4e7c38(0x22b),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x5a73d6,_0x4e9b60){const _0x77fcfb=_0x4e7c38;if(!_0x4e9b60)return!0x1;let _0x39d87b=_0x5a73d6[_0x77fcfb(0x4d5)](_0x26755d),{unitId:_0x5f3290,tableId:_0x3a6aaa,record:_0x10aa91}=_0x4e9b60,_0x1c2794=_0x39d87b[_0x77fcfb(0x34e)](_0x5f3290,_0x2eb623[_0x77fcfb(0x583)]);if(!_0x1c2794||!$(_0x1c2794,_0x3a6aaa))return!0x1;let _0x163763=_0x5a73d6['get'](_0x5342d9),_0x250dcc=_0x5a73d6[_0x77fcfb(0x4d5)](_0x1eb28c),_0x3f6d81=_0x5a73d6[_0x77fcfb(0x4d5)](Kr),_0x33ac5f=_0x1c2794[_0x77fcfb(0x2a7)](),_0x547e9d=ba(_0x1c2794,_0x3a6aaa,[_0x10aa91]);if(!_0x547e9d)return!0x1;let [_0x269914]=_0x547e9d[_0x77fcfb(0x2d1)],{hierarchyChanges:_0x253c6e,hierarchyFieldToMaterialize:_0x3564d0}=_0x547e9d,_0x423912=_0x3564d0?_0x3f6d81[_0x77fcfb(0x42d)](_0x1c2794,_0x3a6aaa,_0x3564d0,_0x33ac5f[_0x77fcfb(0x29e)][_0x3a6aaa]['fieldOrder'][_0x77fcfb(0x2b6)]):null,_0x2f09b1=_0x3f6d81[_0x77fcfb(0x28a)](_0x1c2794,_0x3a6aaa,_0x269914),_0x488739=R([..._0x423912?[_0x423912]:[],_0x2f09b1]),_0x54d68f=new z()[_0x77fcfb(0x27f)](_0x33ac5f,_0x488739),_0x290d6b={'unitId':_0x5f3290,'op':_0x488739,'hierarchyChanges':_0x253c6e[_0x77fcfb(0x2b6)]?_0x253c6e:void 0x0,'source':_0x253c6e[_0x77fcfb(0x2b6)]?_0x4e9b60['source']??'ui':void 0x0},_0x1d93e7={..._0x290d6b,'source':_0x253c6e['length']?_0x77fcfb(0x237):void 0x0},_0x366387={'unitId':_0x5f3290,'op':_0x54d68f,'hierarchyChanges':_0x253c6e[_0x77fcfb(0x2b6)]?_0x253c6e[_0x77fcfb(0x3e8)](_0x46c77b=>({..._0x46c77b,'oldParentRecordId':_0x46c77b[_0x77fcfb(0x44b)],'parentRecordId':null})):void 0x0,'source':_0x253c6e['length']?'undo':void 0x0};return _0x163763[_0x77fcfb(0x490)](Q['id'],_0x290d6b)?(_0x39d87b['focusUnit'](_0x5f3290),_0x250dcc[_0x77fcfb(0x260)]({'unitID':_0x5f3290,'undoMutations':[{'id':Q['id'],'params':_0x366387}],'redoMutations':[{'id':Q['id'],'params':_0x1d93e7}]}),!0x0):!0x1;}},Da=_0x4e7c38(0x368);function Oa(_0x4fd9e8,_0x1d36aa,_0x124eb3){const _0x96915=_0x4e7c38;if(!_0x1d36aa[_0x96915(0x42c)]())return{'valid':!0x1,'reason':'Table\x20name\x20is\x20required.','error':_0x96915(0x41f)};if(_0x1d36aa[_0x96915(0x2b6)]>0x1f)return{'valid':!0x1,'reason':'Use\x2031\x20characters\x20or\x20fewer.','error':'too-long'};if(_0x1d36aa[_0x96915(0x3c5)]('\x27')||_0x1d36aa['endsWith']('\x27'))return{'valid':!0x1,'reason':_0x96915(0x49f),'error':_0x96915(0x352)};if(/[:\\/?*\[\]]/[_0x96915(0x463)](_0x1d36aa))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':'invalid-characters'};if(!_0x2aad5d(_0x1d36aa))return{'valid':!0x1,'reason':_0x96915(0x3f0),'error':'invalid'};let _0x9252f5=_0x1d36aa[_0x96915(0x1e9)]();return Object[_0x96915(0x4c0)](_0x4fd9e8[_0x96915(0x29e)])[_0x96915(0x48e)](_0x2953a8=>_0x2953a8['id']!==_0x124eb3&&_0x2953a8[_0x96915(0x39a)]['toLowerCase']()===_0x9252f5)?{'valid':!0x1,'reason':_0x96915(0x49a),'error':_0x96915(0x250)}:{'valid':!0x0};}function ka(_0x1e9a55,_0x3934ba){const _0x509596=_0x4e7c38;let _0x392cd4=_0x3934ba[_0x509596(0x212)](/[:\\/?*\[\]]/g,'\x20')[_0x509596(0x212)](/^'+|'+$/g,'')['trim']()||_0x509596(0x232),_0x5dfabc=0x1;for(;;){let _0x1de0bd=_0x5dfabc===0x1?'':'\x20'+_0x5dfabc,_0x33964a=''+_0x392cd4[_0x509596(0x479)](0x0,0x1f-_0x1de0bd[_0x509596(0x2b6)])+_0x1de0bd;if(Oa(_0x1e9a55,_0x33964a)[_0x509596(0x29f)])return _0x33964a;_0x5dfabc++;}}const Aa={'id':'base.command.create-base-table','type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x340222,_0x584895)=>{const _0x15059f=_0x4e7c38;if(!_0x584895)return!0x1;let _0x54c7e3=_0x340222['get'](_0x26755d),{unitId:_0x381ccd,table:_0x3f4876,index:_0x7b4c96}=_0x584895,_0xfc030c=_0x54c7e3[_0x15059f(0x34e)](_0x381ccd,_0x2eb623[_0x15059f(0x583)]);if(!_0xfc030c||_0xfc030c[_0x15059f(0x2a7)]()['tables'][_0x3f4876['id']]||!Oa(_0xfc030c[_0x15059f(0x2a7)](),_0x3f4876[_0x15059f(0x39a)])[_0x15059f(0x29f)])return!0x1;try{_0x2a8300(_0x3f4876);}catch{return!0x1;}let _0x122b7c=_0x340222['get'](_0x5342d9),_0x2a14cc=_0x340222[_0x15059f(0x4d5)](_0x1eb28c),_0x1d5e8c=_0xfc030c[_0x15059f(0x2a7)](),_0x43f28f=new W()[_0x15059f(0x1c2)](_0x1d5e8c,_0x3f4876,_0x7b4c96),_0x53c390=new z()[_0x15059f(0x27f)](_0x1d5e8c,_0x43f28f),_0x554372={'unitId':_0x381ccd,'op':_0x43f28f},_0x1d2761={'unitId':_0x381ccd,'op':_0x53c390};return _0x122b7c[_0x15059f(0x490)](Q['id'],_0x554372)?(_0x54c7e3[_0x15059f(0x366)](_0x381ccd),_0x2a14cc['pushUndoRedo']({'unitID':_0x381ccd,'undoMutations':[{'id':Q['id'],'params':_0x1d2761}],'redoMutations':[{'id':Q['id'],'params':_0x554372}]}),!0x0):!0x1;}};function ja(_0x4746df,_0x62cac2,_0xb474a1=[]){const _0x1b35ba=_0x4e7c38;let _0x168b05=new Set([...Object['values'](_0x4746df['fields'])[_0x1b35ba(0x20f)](_0x2c5f00=>_0x2c5f00)[_0x1b35ba(0x3e8)](_0x4bbc30=>_0x4bbc30[_0x1b35ba(0x39a)]),..._0xb474a1[_0x1b35ba(0x3e8)](_0x1f3342=>_0x1f3342[_0x1b35ba(0x39a)])]);if(!_0x168b05[_0x1b35ba(0x4d6)](_0x62cac2))return _0x62cac2;let _0xd7daaa=0x2;for(;_0x168b05['has'](_0x62cac2+'\x20'+_0xd7daaa);)_0xd7daaa++;return _0x62cac2+'\x20'+_0xd7daaa;}function Ma(_0x59791a,_0x4812d0){const _0x4a37b5=_0x4e7c38;if(!_0x59791a||!_0x4812d0[_0x4a37b5(0x2b6)])return;let _0x52c90b=[..._0x59791a];return _0x4812d0[_0x4a37b5(0x397)](_0xfa4bf7=>{const _0x3a5ee4=_0x4a37b5;_0x52c90b[_0x3a5ee4(0x37a)](_0xfa4bf7)||_0x52c90b['push'](_0xfa4bf7);}),_0x52c90b;}const Na={'options':[{'id':_0x4e7c38(0x2f8),'name':'Todo','color':_0x4e7c38(0x3da)},{'id':_0x4e7c38(0x346),'name':_0x4e7c38(0x1bd),'color':_0x4e7c38(0x35b)},{'id':_0x4e7c38(0x454),'name':_0x4e7c38(0x2c0),'color':_0x4e7c38(0x52f)}]},Pa={'locale':'en-US','pattern':_0x4e7c38(0x4ff),'includeTime':!0x1,'hourCycle':_0x4e7c38(0x4a2),'defaultMode':_0x4e7c38(0x4e8)};function Fa(_0x4ec63b,_0x520d55,_0x45211e,_0x4114e3){const _0x543ebf=_0x4e7c38;var _0x24a8a7;let _0xf3a6c0=new W(),_0xec5ee5=_0x4ec63b['tables'][_0x520d55],_0xd48bd=_0xec5ee5?{..._0x45211e,'fieldOrder':[_0x5802d7,...(_0x45211e[_0x543ebf(0x4dc)]??_0xec5ee5['fieldOrder'])[_0x543ebf(0x20f)](_0x1e42ef=>_0x1e42ef!==_0x5802d7)],'fieldSettings':{..._0x45211e[_0x543ebf(0x568)],[_0x5802d7]:{...(_0x24a8a7=_0x45211e[_0x543ebf(0x568)])==null?void 0x0:_0x24a8a7[_0x5802d7],'hidden':!0x0}}}:_0x45211e;if(_0xec5ee5&&_0xd48bd[_0x543ebf(0x30b)]===_0x543ebf(0x488)){let _0xf08cec=La(_0xec5ee5,_0xd48bd),_0x1a8927=_0xf08cec[_0x543ebf(0x21e)]?{..._0xd48bd,'config':_0xf08cec[_0x543ebf(0x554)],'fieldOrder':_0xf08cec[_0x543ebf(0x4dc)]??_0xd48bd['fieldOrder']}:_0xd48bd;return R([..._0xf08cec[_0x543ebf(0x531)][_0x543ebf(0x3e8)](_0x3833c3=>_0xf3a6c0[_0x543ebf(0x4fd)](_0x4ec63b,_0x520d55,{'field':_0x3833c3})),_0xf3a6c0['createView'](_0x4ec63b,_0x520d55,_0x1a8927,_0x4114e3)]);}if(!_0xec5ee5||_0xd48bd['type']!==_0x543ebf(0x381)&&_0xd48bd[_0x543ebf(0x30b)]!==_0x543ebf(0x38b))return _0xf3a6c0[_0x543ebf(0x562)](_0x4ec63b,_0x520d55,_0xd48bd,_0x4114e3);let _0xc58b4=Ia(_0xec5ee5,_0xd48bd),_0x416fe0=_0xc58b4[_0x543ebf(0x21e)]?{..._0xd48bd,'config':_0xc58b4[_0x543ebf(0x554)],'fieldOrder':_0xc58b4[_0x543ebf(0x4dc)]??_0xd48bd[_0x543ebf(0x4dc)]}:_0xd48bd;return _0xd48bd[_0x543ebf(0x30b)]===_0x543ebf(0x38b)&&Ba(_0xd48bd)&&(_0x416fe0=Va(_0xec5ee5,_0x416fe0,_0xc58b4[_0x543ebf(0x531)])),R([..._0xc58b4['fields'][_0x543ebf(0x3e8)](_0x14b6b3=>_0xf3a6c0[_0x543ebf(0x4fd)](_0x4ec63b,_0x520d55,{'field':_0x14b6b3})),_0xf3a6c0[_0x543ebf(0x562)](_0x4ec63b,_0x520d55,_0x416fe0,_0x4114e3)]);}function Ia(_0x579c36,_0x260161,_0x3a4ced=!0x1){const _0x1af4b4=_0x4e7c38;var _0x2caf49,_0x3ba457;let _0x4f7250=_0x579c36[_0x1af4b4(0x4dc)][_0x1af4b4(0x20f)](_0x9b91ab=>Ua(_0x579c36,_0x9b91ab)),_0x20c3ce=[],_0x992e09={..._0x260161['config']??{}},_0x29e1f2=typeof _0x992e09[_0x1af4b4(0x2fd)]==_0x1af4b4(0x457)&&Ua(_0x579c36,_0x992e09[_0x1af4b4(0x2fd)])?_0x992e09[_0x1af4b4(0x2fd)]:_0x4f7250[0x0],_0x3f9c4a=typeof _0x992e09[_0x1af4b4(0x369)]==_0x1af4b4(0x457)&&Ua(_0x579c36,_0x992e09['endDateFieldId'])&&_0x992e09[_0x1af4b4(0x369)]!==_0x29e1f2?_0x992e09['endDateFieldId']:_0x4f7250[_0x1af4b4(0x1c5)](_0x16e2e7=>_0x16e2e7!==_0x29e1f2);if(!_0x29e1f2){let _0xa46bd1=Wa(_0x579c36,_0x20c3ce,_0x260161[_0x1af4b4(0x30b)]==='gantt'?_0x1af4b4(0x321):_0x1af4b4(0x55e));_0x20c3ce['push'](_0xa46bd1),_0x29e1f2=_0xa46bd1['id'];}if((_0x260161[_0x1af4b4(0x30b)]===_0x1af4b4(0x38b)||_0x3a4ced)&&!_0x3f9c4a){let _0x599b89=Wa(_0x579c36,_0x20c3ce,'End\x20date');_0x20c3ce[_0x1af4b4(0x3e2)](_0x599b89),_0x3f9c4a=_0x599b89['id'];}_0x260161[_0x1af4b4(0x30b)]===_0x1af4b4(0x381)&&!_0x3f9c4a&&delete _0x992e09['endDateFieldId'],_0x992e09[_0x1af4b4(0x2fd)]=_0x29e1f2,_0x260161[_0x1af4b4(0x30b)]==='calendar'&&_0x3f9c4a&&(_0x992e09[_0x1af4b4(0x369)]=_0x3f9c4a),_0x260161[_0x1af4b4(0x30b)]===_0x1af4b4(0x38b)&&(_0x992e09[_0x1af4b4(0x369)]=_0x3f9c4a??_0x29e1f2);let _0x5d7a9f=Ma(_0x260161[_0x1af4b4(0x4dc)],_0x20c3ce['map'](_0x214c89=>_0x214c89['id']));return{'changed':_0x20c3ce[_0x1af4b4(0x2b6)]>0x0||_0x992e09[_0x1af4b4(0x2fd)]!==((_0x2caf49=_0x260161[_0x1af4b4(0x554)])==null?void 0x0:_0x2caf49['startDateFieldId'])||_0x992e09[_0x1af4b4(0x369)]!==((_0x3ba457=_0x260161[_0x1af4b4(0x554)])==null?void 0x0:_0x3ba457[_0x1af4b4(0x369)])||!(!_0x5d7a9f||_0x42dbe9['diffValue'](_0x5d7a9f,_0x260161[_0x1af4b4(0x4dc)]??[])),'fields':_0x20c3ce,'config':_0x992e09,'fieldOrder':_0x5d7a9f};}function La(_0x10892c,_0x29c7a4){const _0x5db5d1=_0x4e7c38;var _0x14ebf7;let _0x183932=[],_0x59012a={..._0x29c7a4['config']??{}},_0x463b57=typeof _0x59012a[_0x5db5d1(0x2bf)]=='string'&&Ra(_0x10892c,_0x59012a['groupFieldId'])?_0x59012a[_0x5db5d1(0x2bf)]:_0x10892c['fieldOrder']['find'](_0x24b128=>Ra(_0x10892c,_0x24b128));if(!_0x463b57){let _0x4796fa=za(_0x10892c,_0x183932);_0x183932['push'](_0x4796fa),_0x463b57=_0x4796fa['id'];}_0x59012a[_0x5db5d1(0x2bf)]=_0x463b57;let _0x3c7c4b=Ma(_0x29c7a4['fieldOrder'],_0x183932[_0x5db5d1(0x3e8)](_0x211c84=>_0x211c84['id']));return{'changed':_0x183932[_0x5db5d1(0x2b6)]>0x0||_0x59012a[_0x5db5d1(0x2bf)]!==((_0x14ebf7=_0x29c7a4[_0x5db5d1(0x554)])==null?void 0x0:_0x14ebf7[_0x5db5d1(0x2bf)])||!(!_0x3c7c4b||_0x42dbe9[_0x5db5d1(0x4ba)](_0x3c7c4b,_0x29c7a4['fieldOrder']??[])),'fields':_0x183932,'config':_0x59012a,'fieldOrder':_0x3c7c4b};}function Ra(_0x4ab64e,_0x1fae1e){const _0x2b7368=_0x4e7c38;let _0x11fd36=_0x1fae1e?_0x4ab64e[_0x2b7368(0x531)][_0x1fae1e]:null;return _0x11fd36?[_0x377615[_0x2b7368(0x38d)],_0x377615[_0x2b7368(0x1eb)],_0x377615[_0x2b7368(0x33a)],_0x377615[_0x2b7368(0x4f8)],_0x377615[_0x2b7368(0x1c4)],_0x377615['Checkbox']][_0x2b7368(0x37a)](_0x11fd36[_0x2b7368(0x30b)]):!0x1;}function za(_0x139063,_0x20c0c0){const _0x129e0e=_0x4e7c38;return{'id':'fld-'+_0x53e5f1(0x8),'name':ja(_0x139063,_0x129e0e(0x44a),_0x20c0c0),'type':_0x377615[_0x129e0e(0x38d)],'config':_0x42dbe9['deepClone'](Na)};}function Ba(_0x498608){const _0x448ebc=_0x4e7c38;return Object[_0x448ebc(0x3ca)](_0x498608[_0x448ebc(0x554)]??{})[_0x448ebc(0x2b6)]===0x0&&Object[_0x448ebc(0x3ca)](_0x498608[_0x448ebc(0x568)]??{})[_0x448ebc(0x2b6)]===0x0;}function Va(_0x21d627,_0x29a847,_0x1f8647){const _0x11998b=_0x4e7c38;let _0x65f8a8={..._0x29a847[_0x11998b(0x554)]??{}},_0x2a21c2=_0x1f8647[_0x11998b(0x3e8)](_0xd88cb7=>_0xd88cb7['id']),_0x34d2ec=[..._0x21d627['fieldOrder'],..._0x2a21c2],_0x198de5=typeof _0x65f8a8[_0x11998b(0x1e8)]==_0x11998b(0x457)&&Ha(_0x21d627,_0x1f8647,_0x65f8a8[_0x11998b(0x1e8)])?_0x65f8a8[_0x11998b(0x1e8)]:_0x21d627[_0x11998b(0x48d)],_0x5e18f5=typeof _0x65f8a8[_0x11998b(0x2fd)]==_0x11998b(0x457)?_0x65f8a8[_0x11998b(0x2fd)]:'',_0x27fab0=typeof _0x65f8a8[_0x11998b(0x369)]==_0x11998b(0x457)?_0x65f8a8['endDateFieldId']:_0x5e18f5,_0x43d439=new Set([_0x198de5,_0x5e18f5,_0x27fab0][_0x11998b(0x20f)](_0x26c386=>_0x26c386&&Ha(_0x21d627,_0x1f8647,_0x26c386))),_0x5cbbe8=Object[_0x11998b(0x2c2)](_0x34d2ec[_0x11998b(0x470)](_0x4b08f6=>_0x43d439[_0x11998b(0x4d6)](_0x4b08f6)||!Ha(_0x21d627,_0x1f8647,_0x4b08f6)?[]:[[_0x4b08f6,{'hidden':!0x0}]]));return{..._0x29a847,'config':{..._0x65f8a8,'titleFieldId':_0x198de5},'fieldSettings':_0x5cbbe8};}function Ha(_0x5e4f9c,_0x12558a,_0x1edd01){return!!(_0x5e4f9c['fields'][_0x1edd01]??_0x12558a['find'](_0x50e6f6=>_0x50e6f6['id']===_0x1edd01))&&!0x0;}function Ua(_0x5a72a7,_0x224d7a){const _0x29624e=_0x4e7c38;let _0x5d94d7=_0x224d7a?_0x5a72a7[_0x29624e(0x531)][_0x224d7a]:null;return!!_0x5d94d7&&_0x5d94d7[_0x29624e(0x30b)]===_0x377615[_0x29624e(0x55e)]&&_0x5d94d7[_0x29624e(0x339)]!==!0x0&&_0x5d94d7[_0x29624e(0x26d)]!==!0x0;}function Wa(_0x3354ab,_0x574ae6,_0x748b12){const _0x2cd2bb=_0x4e7c38;let _0x50e056=new Set([...Object[_0x2cd2bb(0x3ca)](_0x3354ab[_0x2cd2bb(0x531)]),..._0x574ae6[_0x2cd2bb(0x3e8)](_0xcb570c=>_0xcb570c['id'])]),_0x3aefb3=_0x2cd2bb(0x405)+_0x53e5f1(0x8);for(;_0x50e056[_0x2cd2bb(0x4d6)](_0x3aefb3);)_0x3aefb3=_0x2cd2bb(0x405)+_0x53e5f1(0x8);return{'id':_0x3aefb3,'name':ja(_0x3354ab,_0x748b12,_0x574ae6),'type':_0x377615[_0x2cd2bb(0x55e)],'config':{...Pa}};}const Ga={'id':'base.command.create-base-view','type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x3b5eec,_0x5d63e9)=>{const _0x59d185=_0x4e7c38;if(!_0x5d63e9)return!0x1;let _0x12978e=_0x3b5eec['get'](_0x26755d),{unitId:_0x7b7b13,tableId:_0x441748,view:_0x3e664c,index:_0x1e8a8d}=_0x5d63e9,_0x3e092a=_0x12978e[_0x59d185(0x34e)](_0x7b7b13,_0x2eb623[_0x59d185(0x583)]);if(!_0x3e092a||!$(_0x3e092a,_0x441748)||_0x3e092a[_0x59d185(0x2a7)]()[_0x59d185(0x29e)][_0x441748][_0x59d185(0x460)][_0x3e664c['id']])return!0x1;let _0x5d5714=_0x3b5eec[_0x59d185(0x4d5)](_0x5342d9),_0x133d81=_0x3b5eec[_0x59d185(0x4d5)](_0x1eb28c),_0x4389f4=_0x3e092a[_0x59d185(0x2a7)](),_0x17b5b5=Fa(_0x4389f4,_0x441748,_0x3e664c,_0x1e8a8d),_0x114a3c=new z()[_0x59d185(0x27f)](_0x4389f4,_0x17b5b5),_0x405352={'historyAction':_0x59d185(0x2a6),'unitId':_0x7b7b13,'op':_0x17b5b5,'viewType':_0x3e664c[_0x59d185(0x30b)]},_0x53a19b={'historyAction':_0x59d185(0x215),'unitId':_0x7b7b13,'op':_0x114a3c,'viewType':_0x3e664c[_0x59d185(0x30b)]};return _0x5d5714['syncExecuteCommand'](Q['id'],_0x405352)?(_0x12978e[_0x59d185(0x366)](_0x7b7b13),_0x133d81[_0x59d185(0x260)]({'unitID':_0x7b7b13,'undoMutations':[{'id':Q['id'],'params':_0x53a19b}],'redoMutations':[{'id':Q['id'],'params':_0x405352}]}),!0x0):!0x1;}},Ka={'id':_0x4e7c38(0x227),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x217e93,_0x41524c){const _0x4e787a=_0x4e7c38;if(!_0x41524c)return!0x1;let _0x49aa74=_0x217e93[_0x4e787a(0x4d5)](_0x26755d),{unitId:_0xf5069c,tableId:_0x38bb6c,fieldId:_0x21280e}=_0x41524c,_0x40052a=_0x49aa74[_0x4e787a(0x34e)](_0xf5069c,_0x2eb623[_0x4e787a(0x583)]);if(!_0x40052a)return!0x1;let _0x4c9a75=_0x40052a[_0x4e787a(0x2a7)](),_0x4b74f4=_0x4c9a75[_0x4e787a(0x29e)][_0x38bb6c];if(!$(_0x40052a,_0x38bb6c,{'fieldIds':[_0x21280e]})||_0x4b74f4['primaryFieldId']===_0x21280e||_0x21280e===_0x5802d7)return!0x1;let _0x3526ed=_0x217e93[_0x4e787a(0x4d5)](_0x5342d9),_0x2bda7e=_0x217e93[_0x4e787a(0x4d5)](_0x1eb28c),_0x3931c3=new W()[_0x4e787a(0x3c1)](_0x4c9a75,_0x38bb6c,_0x21280e),_0x308a7b=new z()[_0x4e787a(0x27f)](_0x4c9a75,_0x3931c3),_0x30cdbd={'unitId':_0xf5069c,'op':_0x3931c3},_0x1ab2cf={'unitId':_0xf5069c,'op':_0x308a7b};return _0x3526ed[_0x4e787a(0x490)](Q['id'],_0x30cdbd)?(_0x49aa74[_0x4e787a(0x366)](_0xf5069c),_0x2bda7e[_0x4e787a(0x260)]({'unitID':_0xf5069c,'undoMutations':[{'id':Q['id'],'params':_0x1ab2cf}],'redoMutations':[{'id':Q['id'],'params':_0x30cdbd}]}),!0x0):!0x1;}},qa={'id':_0x4e7c38(0x3bb),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x53d4b3,_0x5ee734)=>{const _0x31401a=_0x4e7c38;if(!_0x5ee734)return!0x1;let _0x356d9b=_0x53d4b3[_0x31401a(0x4d5)](_0x26755d),{unitId:_0x4d88ca,tableId:_0x5638ed,recordId:_0x46ac5c}=_0x5ee734,_0x3398ca=_0x356d9b[_0x31401a(0x34e)](_0x4d88ca,_0x2eb623[_0x31401a(0x583)]);if(!_0x3398ca||!$(_0x3398ca,_0x5638ed,{'recordIds':[_0x46ac5c]}))return!0x1;let _0x4337de=_0x53d4b3[_0x31401a(0x4d5)](_0x5342d9),_0x3463de=_0x53d4b3[_0x31401a(0x4d5)](_0x1eb28c),_0x2c4f29=_0x3398ca[_0x31401a(0x2a7)](),_0x205a46=et(_0x2c4f29['tables'][_0x5638ed],[_0x46ac5c]),_0x5cc830=new W(),_0x4ec199=new z(),_0x265cbd=_0x5cc830[_0x31401a(0x577)](_0x2c4f29,_0x5638ed,_0x46ac5c),_0x4108ba=_0x4ec199[_0x31401a(0x348)](_0x2c4f29,_0x265cbd),_0x2afb47=_0x5cc830[_0x31401a(0x24f)](_0x2c4f29,_0x4108ba,_0x5638ed,[_0x46ac5c]),_0x1d5b8d={'unitId':_0x4d88ca,'op':_0x265cbd,'hierarchyChanges':_0x205a46,'source':_0x5ee734[_0x31401a(0x211)]??'ui'},_0x5d1cc1={..._0x1d5b8d,'source':_0x31401a(0x237)},_0x37ce6b={'unitId':_0x4d88ca,'op':_0x2afb47,'hierarchyChanges':_0x205a46[_0x31401a(0x3e8)](_0x3ec13b=>({..._0x3ec13b,'oldParentRecordId':_0x3ec13b['parentRecordId'],'parentRecordId':_0x3ec13b['oldParentRecordId']})),'source':_0x31401a(0x3ef)};return _0x4337de['syncExecuteCommand'](Q['id'],_0x1d5b8d)?(_0x356d9b[_0x31401a(0x366)](_0x4d88ca),_0x3463de[_0x31401a(0x260)]({'unitID':_0x4d88ca,'undoMutations':[{'id':Q['id'],'params':_0x37ce6b}],'redoMutations':[{'id':Q['id'],'params':_0x5d1cc1}]}),!0x0):!0x1;}},Ja={'id':_0x4e7c38(0x41c),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x3f97c7,_0x52dba0)=>{const _0x44d638=_0x4e7c38;if(!_0x52dba0)return!0x1;let _0x5a1fe7=_0x3f97c7[_0x44d638(0x4d5)](_0x26755d),{unitId:_0x3e7c57,tableId:_0x245e1b}=_0x52dba0,_0x5d0748=_0x5a1fe7[_0x44d638(0x34e)](_0x3e7c57,_0x2eb623[_0x44d638(0x583)]);if(!_0x5d0748||!$(_0x5d0748,_0x245e1b))return!0x1;let _0x59726f=_0x3f97c7[_0x44d638(0x4d5)](_0x5342d9),_0x435e64=_0x3f97c7[_0x44d638(0x4d5)](_0x1eb28c),_0x46bf93=_0x5d0748['getSnapshot'](),_0x11bbfa=He(_0x46bf93,_0x245e1b);if(_0x11bbfa[_0x44d638(0x2b6)]>0x0)return console[_0x44d638(0x509)](_0x44d638(0x1d3)+_0x245e1b+'\x22\x20is\x20referenced\x20by\x20'+_0x11bbfa[_0x44d638(0x3e8)](_0x2475af=>_0x2475af[_0x44d638(0x2cc)]+'.'+_0x2475af[_0x44d638(0x446)])[_0x44d638(0x50e)](',\x20')+'.'),!0x1;let _0x3fa3f0=new W()[_0x44d638(0x36b)](_0x46bf93,_0x245e1b),_0x16039a=new z()[_0x44d638(0x27f)](_0x46bf93,_0x3fa3f0),_0x16b646={'unitId':_0x3e7c57,'op':_0x3fa3f0},_0x57da34={'unitId':_0x3e7c57,'op':_0x16039a};return _0x59726f[_0x44d638(0x490)](Q['id'],_0x16b646)?(_0x5a1fe7[_0x44d638(0x366)](_0x3e7c57),_0x435e64[_0x44d638(0x260)]({'unitID':_0x3e7c57,'undoMutations':[{'id':Q['id'],'params':_0x57da34}],'redoMutations':[{'id':Q['id'],'params':_0x16b646}]}),!0x0):!0x1;}},Ya={'id':_0x4e7c38(0x3a5),'type':_0x32350d['COMMAND'],'handler':(_0x50a635,_0x58a2e4)=>{const _0x290a0e=_0x4e7c38;if(!_0x58a2e4)return!0x1;let _0x3957d7=_0x50a635['get'](_0x26755d),{unitId:_0x45e2d0,tableId:_0x447001,viewId:_0x2a3bc1}=_0x58a2e4,_0x49ff2e=_0x3957d7['getUnit'](_0x45e2d0,_0x2eb623[_0x290a0e(0x583)]);if(!_0x49ff2e||!$(_0x49ff2e,_0x447001,{'viewIds':[_0x2a3bc1]}))return!0x1;let _0x54e31d=_0x50a635[_0x290a0e(0x4d5)](_0x5342d9),_0x35039d=_0x50a635['get'](_0x1eb28c),_0x200971=_0x49ff2e['getSnapshot'](),_0x3c6667=_0x200971[_0x290a0e(0x29e)][_0x447001]['views'][_0x2a3bc1][_0x290a0e(0x30b)],_0x590edb=new W()['deleteView'](_0x200971,_0x447001,_0x2a3bc1),_0xa3a44e=new z()['invertOp'](_0x200971,_0x590edb),_0x1ea79b={'historyAction':'delete-view','unitId':_0x45e2d0,'op':_0x590edb,'viewType':_0x3c6667},_0x2f6576={'historyAction':_0x290a0e(0x2a6),'unitId':_0x45e2d0,'op':_0xa3a44e,'viewType':_0x3c6667};return _0x54e31d[_0x290a0e(0x490)](Q['id'],_0x1ea79b)?(_0x3957d7['focusUnit'](_0x45e2d0),_0x35039d[_0x290a0e(0x260)]({'unitID':_0x45e2d0,'undoMutations':[{'id':Q['id'],'params':_0x2f6576}],'redoMutations':[{'id':Q['id'],'params':_0x1ea79b}]}),!0x0):!0x1;}},Xa={'id':'base.command.duplicate-base-field','type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x28a6f8,_0x5d3710)=>{const _0x389fb6=_0x4e7c38;if(!_0x5d3710)return!0x1;let _0x425e48=_0x28a6f8[_0x389fb6(0x4d5)](_0x26755d),{unitId:_0x2f2f98,tableId:_0x3de9bb,sourceFieldId:_0xd8006a,field:_0x3ba083,index:_0x47c73a,viewIndexes:_0x175fe8}=_0x5d3710,_0x346499=_0x425e48['getUnit'](_0x2f2f98,_0x2eb623['UNIVER_BASE']);if(!_0x346499||!$(_0x346499,_0x3de9bb,{'fieldIds':[_0xd8006a]})||_0xd8006a===_0x5802d7||_0x346499[_0x389fb6(0x2a7)]()['tables'][_0x3de9bb][_0x389fb6(0x531)][_0x3ba083['id']]||_0x47c73a===0x0||!ha(_0x346499,_0x3de9bb,_0x3ba083))return!0x1;let _0x21eb14=_0x28a6f8[_0x389fb6(0x4d5)](_0x5342d9),_0x42263f=_0x28a6f8[_0x389fb6(0x4d5)](_0x1eb28c),_0x5ddb6f=_0x346499[_0x389fb6(0x2a7)](),_0x221b05=new W()[_0x389fb6(0x3e3)](_0x5ddb6f,_0x3de9bb,_0xd8006a,{'field':_0x3ba083,'index':_0x47c73a,'viewIndexes':_0x175fe8}),_0x4f180d=new z()[_0x389fb6(0x27f)](_0x5ddb6f,_0x221b05),_0x2fade0={'unitId':_0x2f2f98,'op':_0x221b05},_0x2d04b6={'unitId':_0x2f2f98,'op':_0x4f180d};return _0x21eb14[_0x389fb6(0x490)](Q['id'],_0x2fade0)?(_0x425e48[_0x389fb6(0x366)](_0x2f2f98),_0x42263f[_0x389fb6(0x260)]({'unitID':_0x2f2f98,'undoMutations':[{'id':Q['id'],'params':_0x2d04b6}],'redoMutations':[{'id':Q['id'],'params':_0x2fade0}]}),!0x0):!0x1;}},Za={'id':_0x4e7c38(0x4f4),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0xe7bd2a,_0x1cb6c3)=>{const _0x59238a=_0x4e7c38;if(!_0x1cb6c3)return!0x1;let _0x25a19a=_0xe7bd2a[_0x59238a(0x4d5)](_0x26755d),{unitId:_0x4dac0a,tableId:_0x372169,sourceRecordId:_0x50984e,record:_0x47ad01}=_0x1cb6c3,_0x5e6338=_0x25a19a[_0x59238a(0x34e)](_0x4dac0a,_0x2eb623[_0x59238a(0x583)]);if(!_0x5e6338||!$(_0x5e6338,_0x372169,{'recordIds':[_0x50984e]})||!_a(_0x5e6338,_0x372169,_0x47ad01))return!0x1;let _0x9aebc8=_0xe7bd2a[_0x59238a(0x4d5)](_0x5342d9),_0x1f3357=_0xe7bd2a[_0x59238a(0x4d5)](_0x1eb28c),_0x5e756f=_0x5e6338[_0x59238a(0x2a7)](),_0xfc149b=va(_0x47ad01),_0x3202fd=Qe(_0x5e756f[_0x59238a(0x29e)][_0x372169],[_0xfc149b]),_0x2cbf77=new W()[_0x59238a(0x4b9)](_0x5e756f,_0x372169,_0x50984e,_0xfc149b),_0x23be6b=new z()[_0x59238a(0x27f)](_0x5e756f,_0x2cbf77),_0x59dc16={'unitId':_0x4dac0a,'op':_0x2cbf77,'hierarchyChanges':_0x3202fd[_0x59238a(0x2b6)]?_0x3202fd:void 0x0,'source':_0x3202fd['length']?_0x1cb6c3[_0x59238a(0x211)]??'ui':void 0x0},_0x56eb8d={..._0x59dc16,'source':_0x3202fd[_0x59238a(0x2b6)]?'redo':void 0x0},_0xa4a251={'unitId':_0x4dac0a,'op':_0x23be6b,'hierarchyChanges':_0x3202fd[_0x59238a(0x2b6)]?_0x3202fd[_0x59238a(0x3e8)](_0xd7caaf=>({..._0xd7caaf,'oldParentRecordId':_0xd7caaf[_0x59238a(0x44b)],'parentRecordId':null})):void 0x0,'source':_0x3202fd[_0x59238a(0x2b6)]?_0x59238a(0x3ef):void 0x0};return _0x9aebc8[_0x59238a(0x490)](Q['id'],_0x59dc16)?(_0x25a19a[_0x59238a(0x366)](_0x4dac0a),_0x1f3357[_0x59238a(0x260)]({'unitID':_0x4dac0a,'undoMutations':[{'id':Q['id'],'params':_0xa4a251}],'redoMutations':[{'id':Q['id'],'params':_0x56eb8d}]}),!0x0):!0x1;}},Qa={'id':_0x4e7c38(0x57d),'type':_0x32350d['COMMAND'],'handler'(_0x73aa7,_0x24c6fb){const _0xf8cefa=_0x4e7c38;if(!_0x24c6fb)return!0x1;let _0xee8205=_0x73aa7[_0xf8cefa(0x4d5)](_0x26755d),{unitId:_0x4000a8,tableId:_0xd0d3cc,viewId:_0x283fe4,ensureEndDateField:_0x4a9114}=_0x24c6fb,_0x51ac0c=_0xee8205['getUnit'](_0x4000a8,_0x2eb623[_0xf8cefa(0x583)]);if(!_0x51ac0c||!$(_0x51ac0c,_0xd0d3cc,{'viewIds':[_0x283fe4]}))return!0x1;let _0x38a33c=_0x51ac0c[_0xf8cefa(0x2a7)](),_0xfd7cdc=_0x38a33c[_0xf8cefa(0x29e)][_0xd0d3cc],_0x24069a=_0xfd7cdc==null?void 0x0:_0xfd7cdc[_0xf8cefa(0x460)][_0x283fe4];if(!_0xfd7cdc||!_0x24069a||_0x24069a[_0xf8cefa(0x30b)]!==_0xf8cefa(0x381)&&_0x24069a[_0xf8cefa(0x30b)]!==_0xf8cefa(0x38b))return!0x1;let _0x57212d=Ia(_0xfd7cdc,_0x24069a,_0x4a9114===!0x0);if(!_0x57212d['changed'])return!0x1;let _0x125f8b=_0x73aa7['get'](_0x5342d9),_0x34a757=_0x73aa7[_0xf8cefa(0x4d5)](_0x1eb28c),_0x3ee409=new W(),_0x4c61cf=[..._0x57212d[_0xf8cefa(0x531)][_0xf8cefa(0x3e8)](_0x70c47a=>_0x3ee409[_0xf8cefa(0x4fd)](_0x38a33c,_0x24c6fb[_0xf8cefa(0x2cc)],{'field':_0x70c47a})),$a([...eo(_0x24c6fb[_0xf8cefa(0x2cc)],_0x24c6fb[_0xf8cefa(0x34a)]),_0xf8cefa(0x554)],_0x24069a[_0xf8cefa(0x554)],_0x57212d[_0xf8cefa(0x554)])];_0x57212d['fieldOrder']&&_0x4c61cf[_0xf8cefa(0x3e2)]($a([...eo(_0x24c6fb[_0xf8cefa(0x2cc)],_0x24c6fb[_0xf8cefa(0x34a)]),_0xf8cefa(0x4dc)],_0x24069a['fieldOrder'],_0x57212d[_0xf8cefa(0x4dc)]));let _0xfc26d0=R(_0x4c61cf),_0x9733cb=new z()[_0xf8cefa(0x27f)](_0x38a33c,_0xfc26d0),_0x5a8f1a={'unitId':_0x4000a8,'op':_0xfc26d0},_0x1213eb={'unitId':_0x4000a8,'op':_0x9733cb};return _0x125f8b['syncExecuteCommand'](Q['id'],_0x5a8f1a)?(_0xee8205[_0xf8cefa(0x366)](_0x4000a8),_0x34a757[_0xf8cefa(0x260)]({'unitID':_0x4000a8,'undoMutations':[{'id':Q['id'],'params':_0x1213eb}],'redoMutations':[{'id':Q['id'],'params':_0x5a8f1a}]}),!0x0):!0x1;}};function $a(_0x1c5e6e,_0x3de345,_0x18ad8d){return _0x3de345===void 0x0?_0x10aaca['insertOp'](_0x1c5e6e,_0x18ad8d):_0x10aaca['replaceOp'](_0x1c5e6e,_0x3de345,_0x18ad8d);}function eo(_0x460c4f,_0x46dd3b){const _0x50897b=_0x4e7c38;return['tables',_0x460c4f,_0x50897b(0x460),_0x46dd3b];}const to={'id':_0x4e7c38(0x202),'type':_0x32350d['COMMAND'],'handler':(_0x3cc724,_0x5634ee)=>{const _0x4dea32=_0x4e7c38;if(!_0x5634ee)return!0x1;let _0x4fcc8c=_0x3cc724[_0x4dea32(0x4d5)](_0x26755d),{unitId:_0x4ec2a6,tableId:_0x24aac1,fieldId:_0x4091b5,target:_0x13978f}=_0x5634ee,_0xeaf02=_0x4fcc8c['getUnit'](_0x4ec2a6,_0x2eb623[_0x4dea32(0x583)]),_0x21a70b=_0x13978f['beforeFieldId']??_0x13978f[_0x4dea32(0x1db)];if(!_0xeaf02||!!_0x13978f[_0x4dea32(0x409)]==!!_0x13978f[_0x4dea32(0x1db)]||!_0x21a70b||_0x21a70b===_0x4091b5||_0x4091b5===_0x5802d7||_0x13978f['beforeFieldId']===_0x5802d7||!$(_0xeaf02,_0x24aac1,{'fieldIds':[_0x4091b5,_0x21a70b]}))return!0x1;let _0x3d7e1f=_0x3cc724['get'](_0x5342d9),_0x3704f7=_0x3cc724[_0x4dea32(0x4d5)](_0x1eb28c),_0x31086d=_0xeaf02[_0x4dea32(0x2a7)](),_0x1d1289=new W()[_0x4dea32(0x37d)](_0x31086d,_0x24aac1,_0x4091b5,_0x13978f),_0x447155=new z()[_0x4dea32(0x27f)](_0x31086d,_0x1d1289),_0x1ae477={'unitId':_0x4ec2a6,'op':_0x1d1289},_0xa8849c={'unitId':_0x4ec2a6,'op':_0x447155};return _0x3d7e1f[_0x4dea32(0x490)](Q['id'],_0x1ae477)?(_0x4fcc8c[_0x4dea32(0x366)](_0x4ec2a6),_0x3704f7[_0x4dea32(0x260)]({'unitID':_0x4ec2a6,'undoMutations':[{'id':Q['id'],'params':_0xa8849c}],'redoMutations':[{'id':Q['id'],'params':_0x1ae477}]}),!0x0):!0x1;}},no={'id':_0x4e7c38(0x32f),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x4b8fc4,_0x49064f)=>{const _0x149bb=_0x4e7c38;var _0x5b81d3;if(!_0x49064f)return!0x1;let {unitId:_0x56c632,tableId:_0x1bee9c,recordId:_0x828b38,parentRecordId:_0x5cb3db,orderKey:_0x1d7984}=_0x49064f,_0x173b35=_0x4b8fc4[_0x149bb(0x4d5)](_0x26755d),_0x2e9c7b=_0x173b35[_0x149bb(0x34e)](_0x56c632,_0x2eb623[_0x149bb(0x583)]);if(!_0x2e9c7b||!$(_0x2e9c7b,_0x1bee9c,{'recordIds':[_0x828b38,..._0x5cb3db?[_0x5cb3db]:[]]}))throw new P('missingRecord');let _0x39b746=_0x2e9c7b[_0x149bb(0x2a7)](),_0x41097c=_0x39b746[_0x149bb(0x29e)][_0x1bee9c],_0x35f4b0=qe(_0x41097c),_0x410324=_0x35f4b0??_0x49064f[_0x149bb(0x446)]??Je(_0x41097c);if(_0x35f4b0&&_0x49064f[_0x149bb(0x446)]&&_0x49064f['fieldId']!==_0x35f4b0||_0x41097c['fields'][_0x410324]&&!F(_0x41097c,_0x410324))throw new P(_0x149bb(0x401));let _0x45063f=tt(_0x41097c,_0x410324),_0x33efbb=it(_0x45063f,_0x828b38,_0x5cb3db);if(!_0x33efbb[_0x149bb(0x29f)])throw new P(_0x33efbb['reason']===_0x3ada7a['SelfParent']?_0x149bb(0x4f9):_0x33efbb['reason']===_0x3ada7a[_0x149bb(0x529)]?_0x149bb(0x38c):'maxDepth');let _0xe9e36e=_0x45063f[_0x149bb(0x3ed)][_0x149bb(0x4d5)](_0x828b38)??null,_0x3791c2=_0x41097c[_0x149bb(0x2d1)][_0x828b38]['orderKey'];if(_0xe9e36e===_0x5cb3db&&(_0x1d7984===void 0x0||_0x1d7984===_0x3791c2))return!0x0;let _0x28f597=_0xe9e36e!==_0x5cb3db,_0x1961ba=_0x1d7984!==void 0x0&&_0x1d7984!==_0x3791c2,_0x289a28=new W(),_0x32ca4a=[],_0x5e59b8=_0x41097c['fields'][_0x410324],_0x3a68d7=_0x28f597&&(!_0x5e59b8||((_0x5b81d3=N(_0x5e59b8))==null?void 0x0:_0x5b81d3[_0x149bb(0x4ab)])!==_0x4cb80e[_0x149bb(0x3c7)])?_0x5e59b8?_0x289a28['updateField'](_0x39b746,_0x1bee9c,_0x410324,{'config':{..._0x5e59b8[_0x149bb(0x554)],'relationRole':_0x4cb80e[_0x149bb(0x3c7)]}}):_0x4b8fc4[_0x149bb(0x4d5)](Kr)[_0x149bb(0x42d)](_0x2e9c7b,_0x1bee9c,Ye(_0x41097c,_0x410324,_0x49064f['parentFieldName']),_0x41097c[_0x149bb(0x4dc)][_0x149bb(0x2b6)]):null;_0x3a68d7&&_0x32ca4a['push'](_0x3a68d7),_0x28f597&&_0x32ca4a[_0x149bb(0x3e2)](_0x289a28['updateCell'](_0x39b746,_0x1bee9c,_0x828b38,_0x410324,_0x5cb3db?Re([_0x5cb3db]):'')),_0x1961ba&&_0x32ca4a[_0x149bb(0x3e2)](_0x289a28[_0x149bb(0x2c1)](_0x39b746,_0x1bee9c,_0x828b38,_0x1d7984));let _0x28f9e7=R(_0x32ca4a),_0x43f695={'tableId':_0x1bee9c,'fieldId':_0x410324,'recordId':_0x828b38,'oldParentRecordId':_0xe9e36e,'parentRecordId':_0x5cb3db},_0xf3b53f={'unitId':_0x56c632,'op':_0x28f9e7,'trigger':no['id'],'hierarchyChanges':[_0x43f695],'source':_0x49064f['source']??'ui'},_0x420278={..._0xf3b53f,'source':'redo'};if(!_0x4b8fc4[_0x149bb(0x4d5)](_0x5342d9)['syncExecuteCommand'](Q['id'],_0xf3b53f))return!0x1;let _0x406cbc=_0x2e9c7b[_0x149bb(0x2a7)](),_0x3c316e=[];_0x28f597&&_0x3c316e[_0x149bb(0x3e2)](ro(_0x406cbc,_0x39b746,_0x1bee9c,_0x828b38,_0x410324)),_0x1961ba&&_0x3c316e[_0x149bb(0x3e2)](io(_0x406cbc,_0x39b746,_0x1bee9c,_0x828b38)),_0x3a68d7&&_0x3c316e[_0x149bb(0x3e2)](new z()[_0x149bb(0x27f)](_0x39b746,_0x3a68d7));let _0x4469bf={'unitId':_0x56c632,'op':R(_0x3c316e),'trigger':no['id'],'hierarchyChanges':[{..._0x43f695,'oldParentRecordId':_0x5cb3db,'parentRecordId':_0xe9e36e}],'source':_0x149bb(0x3ef)};return _0x173b35['focusUnit'](_0x56c632),_0x4b8fc4[_0x149bb(0x4d5)](_0x1eb28c)['pushUndoRedo']({'unitID':_0x56c632,'undoMutations':[{'id':Q['id'],'params':_0x4469bf}],'redoMutations':[{'id':Q['id'],'params':_0x420278}]}),!0x0;}};function ro(_0x2aec0b,_0x5b187a,_0x33798e,_0x492bed,_0x53cdac){const _0x5099ef=_0x4e7c38;var _0x4ccfd6,_0x2915a1,_0x1903cc,_0x3d3f9c,_0x47ce5c,_0x2e0638,_0x15d4e7,_0x390575;let _0xe78044=_0x2aec0b[_0x5099ef(0x29e)][_0x33798e],_0x126c67=_0x5b187a[_0x5099ef(0x29e)][_0x33798e],_0x31f36d=(_0x4ccfd6=_0xe78044[_0x5099ef(0x2cd)])==null?void 0x0:_0x4ccfd6[_0x492bed],_0x494ea6=(_0x2915a1=_0xe78044[_0x5099ef(0x50b)])==null?void 0x0:_0x2915a1[_0x53cdac],_0x4e27e8=(_0x1903cc=_0x126c67[_0x5099ef(0x2cd)])==null?void 0x0:_0x1903cc[_0x492bed],_0x29eda0=(_0x3d3f9c=_0x126c67[_0x5099ef(0x50b)])==null?void 0x0:_0x3d3f9c[_0x53cdac],_0x5c9f42=_0x31f36d==null||_0x494ea6==null||(_0x47ce5c=_0xe78044[_0x5099ef(0x2b7)])==null||(_0x47ce5c=_0x47ce5c[_0x31f36d])==null?void 0x0:_0x47ce5c[_0x494ea6],_0x337eb5=_0x4e27e8==null||_0x29eda0==null||(_0x2e0638=_0x126c67['cellData'])==null||(_0x2e0638=_0x2e0638[_0x4e27e8])==null?void 0x0:_0x2e0638[_0x29eda0],_0x1b79f4=(_0x15d4e7=_0xe78044[_0x5099ef(0x2d1)][_0x492bed])==null?void 0x0:_0x15d4e7[_0x5099ef(0x4c0)][_0x53cdac],_0x632c5f=(_0x390575=_0x126c67[_0x5099ef(0x2d1)][_0x492bed])==null?void 0x0:_0x390575[_0x5099ef(0x4c0)][_0x53cdac],_0x452f53=[],_0x5d05ca=ao(_0x31f36d==null||_0x494ea6==null?null:U['cellData'](_0x33798e,_0x31f36d,_0x494ea6),_0x5c9f42,_0x337eb5);_0x5d05ca&&_0x452f53[_0x5099ef(0x3e2)](_0x5d05ca);let _0x949e6d=ao(U['cell'](_0x33798e,_0x492bed,_0x53cdac),_0x1b79f4,_0x632c5f);return _0x949e6d&&_0x452f53[_0x5099ef(0x3e2)](_0x949e6d),R(_0x452f53);}function io(_0x58398e,_0x118493,_0x31ed09,_0x451174){const _0x1e2de4=_0x4e7c38;var _0x9b59e3,_0x519ab6;let _0x481860=_0x58398e[_0x1e2de4(0x29e)][_0x31ed09],_0x3a8cde=_0x118493['tables'][_0x31ed09];return R([ao([...U['record'](_0x31ed09,_0x451174),_0x1e2de4(0x24c)],(_0x9b59e3=_0x481860['records'][_0x451174])==null?void 0x0:_0x9b59e3[_0x1e2de4(0x24c)],(_0x519ab6=_0x3a8cde[_0x1e2de4(0x2d1)][_0x451174])==null?void 0x0:_0x519ab6['orderKey']),ao([...U[_0x1e2de4(0x438)](_0x31ed09),_0x1e2de4(0x52d)],_0x481860[_0x1e2de4(0x52d)],_0x3a8cde[_0x1e2de4(0x52d)])][_0x1e2de4(0x20f)](_0x3d2e38=>!!_0x3d2e38));}function ao(_0x2e1b85,_0x1f12cd,_0x538d25){const _0x2e5372=_0x4e7c38;if(!_0x2e1b85||_0x1f12cd===void 0x0&&_0x538d25===void 0x0)return null;let _0x1aa718=_0x52b262[_0x2e5372(0x552)]();return _0x538d25===void 0x0?_0x1aa718[_0x2e5372(0x3c4)](_0x2e1b85,_0x1f12cd):_0x1f12cd===void 0x0?_0x1aa718['insertOp'](_0x2e1b85,_0x538d25):_0x1aa718[_0x2e5372(0x53d)](_0x2e1b85,_0x1f12cd,_0x538d25);}const oo={'id':_0x4e7c38(0x4c1),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x5621fb,_0x4dd643)=>{const _0x2a86f0=_0x4e7c38;if(!_0x4dd643)return!0x1;let _0x34fcf1=_0x5621fb[_0x2a86f0(0x4d5)](_0x26755d),{unitId:_0x35d73b,tableId:_0x204b33,viewId:_0x434577,target:_0x350c84}=_0x4dd643,_0x229071=_0x34fcf1[_0x2a86f0(0x34e)](_0x35d73b,_0x2eb623['UNIVER_BASE']),_0x119ae2=_0x350c84['beforeViewId']??_0x350c84[_0x2a86f0(0x4ca)];if(!_0x229071||!_0x119ae2||_0x119ae2===_0x434577||!$(_0x229071,_0x204b33,{'viewIds':[_0x434577,_0x119ae2]}))return!0x1;let _0x4a5911=_0x5621fb[_0x2a86f0(0x4d5)](_0x5342d9),_0x11b032=_0x5621fb[_0x2a86f0(0x4d5)](_0x1eb28c),_0x5628e9=_0x229071[_0x2a86f0(0x2a7)](),_0x507161=new W()[_0x2a86f0(0x493)](_0x5628e9,_0x204b33,_0x434577,_0x350c84),_0x500c7e=new z()[_0x2a86f0(0x27f)](_0x5628e9,_0x507161),_0x47d16={'unitId':_0x35d73b,'op':_0x507161},_0x237b65={'unitId':_0x35d73b,'op':_0x500c7e};return _0x4a5911[_0x2a86f0(0x490)](Q['id'],_0x47d16)?(_0x34fcf1['focusUnit'](_0x35d73b),_0x11b032[_0x2a86f0(0x260)]({'unitID':_0x35d73b,'undoMutations':[{'id':Q['id'],'params':_0x237b65}],'redoMutations':[{'id':Q['id'],'params':_0x47d16}]}),!0x0):!0x1;}},so={'id':'base.command.rename-base-table','type':_0x32350d['COMMAND'],'handler':(_0x33ba04,_0x35c418)=>{const _0x363be4=_0x4e7c38;if(!_0x35c418)return!0x1;let _0x3a1e60=_0x33ba04[_0x363be4(0x4d5)](_0x26755d),{unitId:_0x22bc02,tableId:_0x35ef82,name:_0x13b363}=_0x35c418,_0x50de75=_0x3a1e60[_0x363be4(0x34e)](_0x22bc02,_0x2eb623['UNIVER_BASE']);if(!_0x50de75||!$(_0x50de75,_0x35ef82)||!Oa(_0x50de75[_0x363be4(0x2a7)](),_0x13b363,_0x35ef82)[_0x363be4(0x29f)])return!0x1;let _0x34ab28=_0x33ba04[_0x363be4(0x4d5)](_0x5342d9),_0x541fa9=_0x33ba04[_0x363be4(0x4d5)](_0x1eb28c),_0x493c95=_0x50de75['getSnapshot'](),_0x222211=new W()[_0x363be4(0x204)](_0x493c95,_0x35ef82,_0x13b363),_0x22e055=new z()['invertOp'](_0x493c95,_0x222211),_0x2f077c={'unitId':_0x22bc02,'op':_0x222211},_0x19ba7f={'unitId':_0x22bc02,'op':_0x22e055};return _0x34ab28['syncExecuteCommand'](Q['id'],_0x2f077c)?(_0x3a1e60[_0x363be4(0x366)](_0x22bc02),_0x541fa9[_0x363be4(0x260)]({'unitID':_0x22bc02,'undoMutations':[{'id':Q['id'],'params':_0x19ba7f}],'redoMutations':[{'id':Q['id'],'params':_0x2f077c}]}),!0x0):!0x1;}},co={'id':_0x4e7c38(0x429),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x32c3bf,_0x958ee0)=>{const _0x2285da=_0x4e7c38;if(!_0x958ee0)return!0x1;let _0x4ef82a=_0x32c3bf['get'](_0x26755d),{unitId:_0x17f688,tableId:_0x59831b,viewId:_0x23d4f8,name:_0x12bfe8}=_0x958ee0,_0x5dda28=_0x4ef82a[_0x2285da(0x34e)](_0x17f688,_0x2eb623[_0x2285da(0x583)]);if(!_0x5dda28||!$(_0x5dda28,_0x59831b,{'viewIds':[_0x23d4f8]}))return!0x1;let _0x1e4acf=_0x32c3bf[_0x2285da(0x4d5)](_0x5342d9),_0x3c1ca2=_0x32c3bf[_0x2285da(0x4d5)](_0x1eb28c),_0x14a3f9=_0x5dda28[_0x2285da(0x2a7)](),_0x4ae5e2=new W()[_0x2285da(0x2f2)](_0x14a3f9,_0x59831b,_0x23d4f8,_0x12bfe8),_0x40042d=new z()['invertOp'](_0x14a3f9,_0x4ae5e2),_0x1f8a72={'unitId':_0x17f688,'op':_0x4ae5e2},_0x265007={'unitId':_0x17f688,'op':_0x40042d};return _0x1e4acf['syncExecuteCommand'](Q['id'],_0x1f8a72)?(_0x4ef82a['focusUnit'](_0x17f688),_0x3c1ca2[_0x2285da(0x260)]({'unitID':_0x17f688,'undoMutations':[{'id':Q['id'],'params':_0x265007}],'redoMutations':[{'id':Q['id'],'params':_0x1f8a72}]}),!0x0):!0x1;}},lo={'id':_0x4e7c38(0x328),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x5dac02,_0x329b6f)=>{const _0x11ee18=_0x4e7c38;if(!_0x329b6f)return!0x1;let _0x50d5f1=_0x5dac02['get'](_0x26755d),{unitId:_0x2d78a0,tableId:_0x21f9eb,viewId:_0xba7147,fieldId:_0x5357c8}=_0x329b6f,_0x2d3a71=_0x50d5f1[_0x11ee18(0x34e)](_0x2d78a0,_0x2eb623[_0x11ee18(0x583)]);if(!_0x2d3a71||!$(_0x2d3a71,_0x21f9eb,{'viewIds':[_0xba7147],'fieldIds':[_0x5357c8]}))return!0x1;let _0xf40609=_0x5dac02['get'](_0x5342d9),_0x2709aa=_0x5dac02[_0x11ee18(0x4d5)](_0x1eb28c),_0x40dda8=_0x2d3a71[_0x11ee18(0x2a7)](),_0x4b88a8=new W()[_0x11ee18(0x3e4)](_0x40dda8,_0x21f9eb,_0xba7147,{'groupFieldId':_0x5357c8}),_0x81ac8a=new z()[_0x11ee18(0x27f)](_0x40dda8,_0x4b88a8),_0x41beda={'unitId':_0x2d78a0,'op':_0x4b88a8},_0x4b1bfc={'unitId':_0x2d78a0,'op':_0x81ac8a};return _0xf40609[_0x11ee18(0x490)](Q['id'],_0x41beda)?(_0x50d5f1[_0x11ee18(0x366)](_0x2d78a0),_0x2709aa[_0x11ee18(0x260)]({'unitID':_0x2d78a0,'undoMutations':[{'id':Q['id'],'params':_0x4b1bfc}],'redoMutations':[{'id':Q['id'],'params':_0x41beda}]}),!0x0):!0x1;}},uo={'id':'base.command.set-base-name','type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x5771d8,_0x456a3c)=>{const _0x27393b=_0x4e7c38;if(!_0x456a3c)return!0x1;let _0x11603e=_0x5771d8[_0x27393b(0x4d5)](_0x26755d),_0x579f16=_0x11603e[_0x27393b(0x34e)](_0x456a3c[_0x27393b(0x423)],_0x2eb623[_0x27393b(0x583)]);if(!_0x579f16)return!0x1;let _0x35994c=_0x579f16[_0x27393b(0x2a7)]()[_0x27393b(0x39a)];if(_0x35994c===_0x456a3c['name'])return!0x0;let _0x176632=new W(),_0x29b3c9=new z(),_0x4c4dc6=[],_0x446aa9=[],_0x223305=[_0x579f16,..._0x11603e[_0x27393b(0x281)](_0x2eb623['UNIVER_BASE'])[_0x27393b(0x20f)](_0x5da247=>_0x5da247[_0x27393b(0x49c)]()!==_0x456a3c[_0x27393b(0x423)])];for(let _0x393627 of _0x223305){let _0x363707=_0x393627[_0x27393b(0x2a7)](),_0x9d4347=_0x393627===_0x579f16?_0x176632['setBaseName'](_0x363707,_0x456a3c[_0x27393b(0x39a)]):_0x176632[_0x27393b(0x555)](_0x363707,_0x35994c,_0x456a3c[_0x27393b(0x39a)]);_0x9d4347&&(_0x4c4dc6[_0x27393b(0x3e2)]({'id':Q['id'],'params':{'unitId':_0x393627['getUnitId'](),'op':_0x9d4347,'trigger':uo['id']}}),_0x446aa9[_0x27393b(0x2c3)]({'id':Q['id'],'params':{'unitId':_0x393627[_0x27393b(0x49c)](),'op':_0x29b3c9[_0x27393b(0x27f)](_0x363707,_0x9d4347),'trigger':uo['id']}}));}let _0x5f2c5d=_0x5771d8['get'](_0x5342d9),_0x1a07e6=_0x5771d8['get'](_0x1eb28c),_0x374d7f=_0x1a07e6[_0x27393b(0x244)](_0x456a3c['unitId']);try{return _0x457d09(_0x4c4dc6,_0x5f2c5d)[_0x27393b(0x561)]?(_0x11603e['focusUnit'](_0x456a3c['unitId']),_0x1a07e6[_0x27393b(0x260)]({'unitID':_0x456a3c['unitId'],'undoMutations':_0x446aa9,'redoMutations':_0x4c4dc6}),!0x0):!0x1;}finally{_0x374d7f['dispose']();}}},fo={'type':_0x32350d[_0x4e7c38(0x47b)],'id':'base.command.set-permission',async 'handler'(_0x2de1fb,_0x31cf68){const _0x47a430=_0x4e7c38;if(!_0x31cf68||!Tr[_0x47a430(0x37a)](_0x31cf68[_0x47a430(0x1f2)])||_0x31cf68['objectId']!==_0x31cf68[_0x47a430(0x423)]&&_0x31cf68[_0x47a430(0x1f2)]!==_0x3ccddd[_0x47a430(0x319)]||_0x31cf68['policy']&&(![_0x47a430(0x249),'owner',_0x47a430(0x3bd)][_0x47a430(0x37a)](_0x31cf68[_0x47a430(0x267)]['edit'])||_0x31cf68[_0x47a430(0x267)][_0x47a430(0x2f3)]['some'](_0x4f1403=>!Tr[_0x47a430(0x37a)](_0x4f1403[_0x47a430(0x1f2)])||_0x31cf68['objectId']!==_0x31cf68['unitId']&&_0x4f1403[_0x47a430(0x1f2)]!==_0x3ccddd[_0x47a430(0x319)])))return!0x1;let _0x18447e=Pr(_0x31cf68[_0x47a430(0x423)],_0x31cf68[_0x47a430(0x48b)],_0x31cf68[_0x47a430(0x1f2)]),_0x3e77ec={'unitId':_0x31cf68[_0x47a430(0x423)],'objectId':_0x31cf68[_0x47a430(0x48b)],'objectType':_0x18447e[_0x47a430(0x30b)]},_0x5d9872=_0x2de1fb['get'](_0x3cfcfc);return _0x31cf68[_0x47a430(0x4ae)]?await _0x5d9872['remove'](_0x3e77ec):_0x31cf68[_0x47a430(0x267)]?await _0x5d9872[_0x47a430(0x2c6)](_0x3e77ec,_0x31cf68[_0x47a430(0x267)]):await _0x5d9872[_0x47a430(0x2e9)](_0x3e77ec,_0x18447e,_0x31cf68[_0x47a430(0x4de)]),!0x0;}},po={'type':_0x32350d[_0x4e7c38(0x47b)],'id':_0x4e7c38(0x467),async 'handler'(_0x38e746,_0x4675ff){const _0x25519c=_0x4e7c38;if(!(_0x4675ff!=null&&_0x4675ff[_0x25519c(0x423)])||!Array[_0x25519c(0x56b)](_0x4675ff[_0x25519c(0x387)])||!_0x4675ff[_0x25519c(0x387)][_0x25519c(0x2b6)]||_0x4675ff[_0x25519c(0x387)][_0x25519c(0x48e)](_0x5719cb=>!(_0x5719cb!=null&&_0x5719cb[_0x25519c(0x48b)])||_0x5719cb[_0x25519c(0x48b)]===_0x4675ff['unitId']||_0x5719cb[_0x25519c(0x267)]!==null&&(!_0x5719cb[_0x25519c(0x267)]||![_0x25519c(0x249),_0x25519c(0x1f4),'members'][_0x25519c(0x37a)](_0x5719cb[_0x25519c(0x267)][_0x25519c(0x35a)])||!Array[_0x25519c(0x56b)](_0x5719cb[_0x25519c(0x267)][_0x25519c(0x4fa)])||!Array[_0x25519c(0x56b)](_0x5719cb['policy'][_0x25519c(0x2f3)])||_0x5719cb['policy'][_0x25519c(0x2f3)]['some'](_0x538e97=>_0x538e97[_0x25519c(0x1f2)]!==_0x3ccddd[_0x25519c(0x319)]))))throw Error(_0x25519c(0x3ff));return _0x38e746['get'](_0x3cfcfc)[_0x25519c(0x459)](_0x4675ff[_0x25519c(0x387)][_0x25519c(0x3e8)](_0x356c44=>{const _0x45cedd=_0x25519c;let _0x24e315=Pr(_0x4675ff[_0x45cedd(0x423)],_0x356c44[_0x45cedd(0x48b)],_0x3ccddd[_0x45cedd(0x319)]);return{'unitId':_0x4675ff[_0x45cedd(0x423)],'objectId':_0x356c44[_0x45cedd(0x48b)],'objectType':_0x24e315[_0x45cedd(0x30b)],'policy':_0x356c44[_0x45cedd(0x267)]};}));}};function mo(_0x14f3ee,_0x2d7bd3){const _0x39ce92=_0x4e7c38;let _0x2470c8=L(_0x42dbe9[_0x39ce92(0x560)](_0x14f3ee)),_0x10422a=new Map();return _0x2d7bd3['forEach'](_0x4f58e2=>{const _0x3527bf=_0x39ce92;var _0x1d8662,_0x183c7a;let _0x15cf17=_0x3527bf(0x394)in _0x4f58e2?_0x4f58e2[_0x3527bf(0x394)]:(_0x1d8662=_0x2470c8[_0x3527bf(0x565)])==null?void 0x0:_0x1d8662[_0x4f58e2[_0x3527bf(0x505)]],_0x1ca884='fieldId'in _0x4f58e2?_0x4f58e2[_0x3527bf(0x446)]:(_0x183c7a=_0x2470c8[_0x3527bf(0x512)])==null?void 0x0:_0x183c7a[_0x4f58e2[_0x3527bf(0x444)]],_0x6c2cf5=_0x1ca884?_0x2470c8[_0x3527bf(0x531)][_0x1ca884]:void 0x0;if(!_0x15cf17||!_0x1ca884||!_0x6c2cf5||!_0x2470c8[_0x3527bf(0x2d1)][_0x15cf17])return;let _0xf09c94=xt(_0x4f58e2[_0x3527bf(0x4de)],_0x6c2cf5),_0x593328=wt(_0x4f58e2[_0x3527bf(0x4de)],_0xf09c94,_0x6c2cf5,_0x2470c8,_0x15cf17),_0x3931f8=_0x10422a['get'](_0x15cf17)??{};_0x3931f8[_0x1ca884]=_0x593328,_0x10422a[_0x3527bf(0x205)](_0x15cf17,_0x3931f8);}),[..._0x10422a][_0x39ce92(0x3e8)](([_0x40cdfd,_0x4009bb])=>({'recordId':_0x40cdfd,'values':_0x4009bb}));}const ho={'id':_0x4e7c38(0x49b),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x45853e,_0x23086a){const _0x31e239=_0x4e7c38;if(!_0x23086a)return!0x1;let _0x4b5c5f=_0x45853e[_0x31e239(0x4d5)](_0x26755d),{unitId:_0x53ef14,tableId:_0x5088f9,patches:_0x3eefab}=_0x23086a,_0x37d863=_0x4b5c5f['getUnit'](_0x53ef14,_0x2eb623[_0x31e239(0x583)]);if(!_0x37d863||!$(_0x37d863,_0x5088f9))return!0x1;let _0x555076=_0x45853e[_0x31e239(0x4d5)](_0x5342d9),_0x185f30=_0x45853e['get'](_0x1eb28c),_0x124da2=_0x37d863['getSnapshot'](),_0x33086b=L(_0x124da2[_0x31e239(0x29e)][_0x5088f9]),_0x5d3feb=_0x3eefab[_0x31e239(0x3e8)](_0x49ac4e=>{const _0x58ec41=_0x31e239;var _0x34f190;return _0x58ec41(0x394)in _0x49ac4e?_0x49ac4e[_0x58ec41(0x394)]:(_0x34f190=_0x33086b[_0x58ec41(0x565)])==null?void 0x0:_0x34f190[_0x49ac4e[_0x58ec41(0x505)]];})[_0x31e239(0x20f)](_0x4fcf09=>_0x4fcf09!=null),_0x56795b=_0x3eefab[_0x31e239(0x3e8)](_0x188e63=>{const _0xe5646c=_0x31e239;var _0x229776;return _0xe5646c(0x446)in _0x188e63?_0x188e63['fieldId']:(_0x229776=_0x33086b[_0xe5646c(0x512)])==null?void 0x0:_0x229776[_0x188e63[_0xe5646c(0x444)]];})['filter'](_0x4bd16d=>_0x4bd16d!=null);if(_0x5d3feb[_0x31e239(0x2b6)]!==_0x3eefab[_0x31e239(0x2b6)]||_0x56795b[_0x31e239(0x2b6)]!==_0x3eefab['length']||!$(_0x37d863,_0x5088f9,{'recordIds':_0x5d3feb,'fieldIds':_0x56795b})||_0x3eefab['some']((_0x47924a,_0x227b44)=>!ga(_0x37d863,_0x5088f9,_0x56795b[_0x227b44],_0x47924a[_0x31e239(0x4de)])))return!0x1;let _0x2b3a29=Ze(_0x33086b,mo(_0x33086b,_0x3eefab)),_0x417fbd=_0x3eefab[_0x31e239(0x470)](_0x12e948=>{const _0x28dc93=_0x31e239;var _0x17747d,_0xeb95;if(_0x28dc93(0x505)in _0x12e948)return[_0x12e948];let _0x152898=(_0x17747d=_0x33086b['rowIndex'])==null?void 0x0:_0x17747d[_0x12e948[_0x28dc93(0x394)]],_0x331276=(_0xeb95=_0x33086b[_0x28dc93(0x50b)])==null?void 0x0:_0xeb95[_0x12e948[_0x28dc93(0x446)]];return _0x152898==null||_0x331276==null?[]:[{'row':_0x152898,'col':_0x331276,'value':_0x12e948[_0x28dc93(0x4de)]}];}),_0x439be0=new W()['setRangeValues'](_0x124da2,_0x5088f9,_0x417fbd),_0x24c41c=new z()[_0x31e239(0x27f)](_0x124da2,_0x439be0),_0x31ec4f={'unitId':_0x53ef14,'op':_0x439be0,'trigger':_0x2b3a29[_0x31e239(0x2b6)]?ho['id']:void 0x0,'hierarchyChanges':_0x2b3a29['length']?_0x2b3a29:void 0x0,'source':_0x2b3a29[_0x31e239(0x2b6)]?_0x31e239(0x237):void 0x0},_0x3290c9={'unitId':_0x53ef14,'op':_0x24c41c,'trigger':_0x2b3a29[_0x31e239(0x2b6)]?ho['id']:void 0x0,'hierarchyChanges':_0x2b3a29[_0x31e239(0x2b6)]?_0x2b3a29[_0x31e239(0x3e8)](_0x2b2c73=>({..._0x2b2c73,'oldParentRecordId':_0x2b2c73['parentRecordId'],'parentRecordId':_0x2b2c73['oldParentRecordId']})):void 0x0,'source':_0x2b3a29[_0x31e239(0x2b6)]?_0x31e239(0x3ef):void 0x0},_0x90993={..._0x31ec4f,'source':_0x2b3a29['length']?_0x23086a[_0x31e239(0x211)]??'ui':void 0x0};return _0x555076[_0x31e239(0x490)](Q['id'],_0x90993)?(_0x4b5c5f[_0x31e239(0x366)](_0x53ef14),_0x185f30[_0x31e239(0x260)]({'unitID':_0x53ef14,'undoMutations':[{'id':Q['id'],'params':_0x3290c9}],'redoMutations':[{'id':Q['id'],'params':_0x31ec4f}]}),!0x0):!0x1;}},go={'id':'base.command.set-base-record-values','type':_0x32350d['COMMAND'],'handler'(_0x38aaf4,_0x3a9592){const _0x561f29=_0x4e7c38;if(!_0x3a9592)return!0x1;let _0xb05857=_0x38aaf4[_0x561f29(0x4d5)](_0x26755d),{unitId:_0x458996,tableId:_0x23a0f3,patches:_0x3d546f}=_0x3a9592,_0x8c603=_0xb05857[_0x561f29(0x34e)](_0x458996,_0x2eb623[_0x561f29(0x583)]),_0x453060=_0x3d546f[_0x561f29(0x3e8)](_0x56a0be=>_0x56a0be[_0x561f29(0x394)]),_0x1e98c8=_0x3d546f['flatMap'](_0x4e37c4=>Object[_0x561f29(0x3ca)](_0x4e37c4['values']));if(!_0x8c603||!$(_0x8c603,_0x23a0f3,{'recordIds':_0x453060,'fieldIds':_0x1e98c8})||_0x3d546f[_0x561f29(0x48e)](_0x4beb1d=>Object[_0x561f29(0x502)](_0x4beb1d[_0x561f29(0x4c0)])[_0x561f29(0x48e)](([_0x3c8863,_0xcc78a0])=>!ga(_0x8c603,_0x23a0f3,_0x3c8863,_0xcc78a0))))return!0x1;let _0x46c7e8=Ze(_0x8c603['getSnapshot']()['tables'][_0x23a0f3],_0x3d546f),_0x4e6fbc=_0x38aaf4[_0x561f29(0x4d5)](_0x5342d9),_0x1343e1=_0x38aaf4[_0x561f29(0x4d5)](_0x1eb28c),_0x2c4324=_0x38aaf4['get'](Kr)[_0x561f29(0x3f3)](_0x8c603,_0x23a0f3,_0x3d546f),_0x5b1409=new z()['invertOp'](_0x8c603[_0x561f29(0x2a7)](),_0x2c4324),_0x55ac8f={'unitId':_0x458996,'op':_0x2c4324,'trigger':_0x46c7e8[_0x561f29(0x2b6)]?go['id']:void 0x0,'hierarchyChanges':_0x46c7e8[_0x561f29(0x2b6)]?_0x46c7e8:void 0x0,'source':_0x46c7e8['length']?_0x3a9592['source']??'ui':void 0x0},_0x25ce01={..._0x55ac8f,'source':_0x46c7e8[_0x561f29(0x2b6)]?'redo':void 0x0},_0x4bd53a={'unitId':_0x458996,'op':_0x5b1409,'trigger':_0x46c7e8[_0x561f29(0x2b6)]?go['id']:void 0x0,'hierarchyChanges':_0x46c7e8[_0x561f29(0x2b6)]?_0x46c7e8[_0x561f29(0x3e8)](_0x200266=>({..._0x200266,'oldParentRecordId':_0x200266[_0x561f29(0x44b)],'parentRecordId':_0x200266[_0x561f29(0x272)]})):void 0x0,'source':_0x46c7e8[_0x561f29(0x2b6)]?_0x561f29(0x3ef):void 0x0};return _0x4e6fbc[_0x561f29(0x490)](Q['id'],_0x55ac8f)?(_0xb05857['focusUnit'](_0x458996),_0x1343e1[_0x561f29(0x260)]({'unitID':_0x458996,'undoMutations':[{'id':Q['id'],'params':_0x4bd53a}],'redoMutations':[{'id':Q['id'],'params':_0x25ce01}]}),!0x0):!0x1;}},_o={'id':_0x4e7c38(0x4b7),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x579b33,_0x1db521)=>{const _0x2e6716=_0x4e7c38;if(!_0x1db521)return!0x1;let {unitId:_0x3692fa,tableId:_0xb1b2e5,fieldId:_0x21b0b0}=_0x1db521,_0x2c2e53=_0x579b33[_0x2e6716(0x4d5)](_0x26755d),_0x491b1e=_0x2c2e53[_0x2e6716(0x34e)](_0x3692fa,_0x2eb623[_0x2e6716(0x583)]);if(!_0x491b1e||!$(_0x491b1e,_0xb1b2e5))return!0x1;let _0x238e2a=_0x491b1e['getSnapshot'](),_0x2a7804=_0x238e2a['tables'][_0xb1b2e5];if(_0x21b0b0!==null&&!F(_0x2a7804,_0x21b0b0))throw new P('invalidField');if(qe(_0x2a7804)===_0x21b0b0)return!0x0;let _0x5c5a53=new W(),_0x33b8d3=R(Object['values'](_0x2a7804['fields'])[_0x2e6716(0x470)](_0x3c89fa=>{const _0x4f627e=_0x2e6716;if(!F(_0x2a7804,_0x3c89fa['id']))return[];let _0x361369=N(_0x3c89fa);if(!_0x361369)return[];let _0x1bf0c8=_0x3c89fa['id']===_0x21b0b0;if(_0x361369[_0x4f627e(0x4ab)]===_0x4cb80e[_0x4f627e(0x3c7)]===_0x1bf0c8)return[];let _0x165ed0={..._0x3c89fa[_0x4f627e(0x554)],'targetTableId':_0x361369[_0x4f627e(0x3b9)],'multiple':_0x361369[_0x4f627e(0x413)]};return _0x1bf0c8?_0x165ed0[_0x4f627e(0x4ab)]=_0x4cb80e['Parent']:delete _0x165ed0['relationRole'],[_0x5c5a53[_0x4f627e(0x309)](_0x238e2a,_0xb1b2e5,_0x3c89fa['id'],{'config':_0x165ed0})];})),_0x426380=new z()[_0x2e6716(0x27f)](_0x238e2a,_0x33b8d3),_0x36ac25={'unitId':_0x3692fa,'op':_0x33b8d3},_0x2700a1={'unitId':_0x3692fa,'op':_0x426380};return _0x579b33['get'](_0x5342d9)[_0x2e6716(0x490)](Q['id'],_0x36ac25)?(_0x2c2e53[_0x2e6716(0x366)](_0x3692fa),_0x579b33['get'](_0x1eb28c)[_0x2e6716(0x260)]({'unitID':_0x3692fa,'undoMutations':[{'id':Q['id'],'params':_0x2700a1}],'redoMutations':[{'id':Q['id'],'params':_0x36ac25}]}),!0x0):!0x1;}},vo={'id':_0x4e7c38(0x2fb),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x5e9a8c,_0x293139)=>{const _0x2c6cfd=_0x4e7c38;if(!_0x293139)return!0x1;let _0x764851=_0x5e9a8c[_0x2c6cfd(0x4d5)](_0x26755d),{unitId:_0x96aed1,tableId:_0x2d1640,viewId:_0x23844c,fieldId:_0x5d1029,target:_0x239e08}=_0x293139,_0x1cb28a=_0x764851['getUnit'](_0x96aed1,_0x2eb623['UNIVER_BASE']),_0x2c010e=_0x239e08[_0x2c6cfd(0x409)]??_0x239e08[_0x2c6cfd(0x1db)];if(!_0x1cb28a||!_0x2c010e||_0x2c010e===_0x5d1029||!$(_0x1cb28a,_0x2d1640,{'viewIds':[_0x23844c],'fieldIds':[_0x5d1029,_0x2c010e]}))return!0x1;let _0x3fd348=_0x1cb28a[_0x2c6cfd(0x2a7)]()[_0x2c6cfd(0x29e)][_0x2d1640],_0x486ee0=_0x3fd348[_0x2c6cfd(0x531)][_0x5d1029],_0x5b3daa=_0x3fd348[_0x2c6cfd(0x531)][_0x2c010e];if(_0x486ee0[_0x2c6cfd(0x26d)]===!0x0||_0x486ee0[_0x2c6cfd(0x30b)]===_0x377615[_0x2c6cfd(0x4c5)]||_0x5b3daa['system']===!0x0||_0x5b3daa[_0x2c6cfd(0x30b)]===_0x377615[_0x2c6cfd(0x4c5)])return!0x1;let _0x7ef057=_0x5e9a8c[_0x2c6cfd(0x4d5)](_0x5342d9),_0x217464=_0x5e9a8c[_0x2c6cfd(0x4d5)](_0x1eb28c),_0x57c48=_0x1cb28a[_0x2c6cfd(0x2a7)](),_0x4ac0f7=new W()[_0x2c6cfd(0x4c9)](_0x57c48,_0x2d1640,_0x23844c,_0x5d1029,_0x239e08),_0x491c2d=new z()[_0x2c6cfd(0x27f)](_0x57c48,_0x4ac0f7),_0x5de14c={'unitId':_0x96aed1,'op':_0x4ac0f7},_0x1f9811={'unitId':_0x96aed1,'op':_0x491c2d};return _0x7ef057[_0x2c6cfd(0x490)](Q['id'],_0x5de14c)?(_0x764851[_0x2c6cfd(0x366)](_0x96aed1),_0x217464[_0x2c6cfd(0x260)]({'unitID':_0x96aed1,'undoMutations':[{'id':Q['id'],'params':_0x1f9811}],'redoMutations':[{'id':Q['id'],'params':_0x5de14c}]}),!0x0):!0x1;}},yo={'id':_0x4e7c38(0x510),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x3fd401,_0x16ec3b){const _0x509f51=_0x4e7c38;if(!_0x16ec3b)return!0x1;let _0x435dbe=_0x3fd401[_0x509f51(0x4d5)](_0x26755d),{unitId:_0x2f8a26,tableId:_0x586413,viewId:_0x44c339,fieldId:_0x78a1b4,visible:_0x2a74f0}=_0x16ec3b,_0x2b3e6f=_0x435dbe[_0x509f51(0x34e)](_0x2f8a26,_0x2eb623[_0x509f51(0x583)]);if(!_0x2b3e6f||!$(_0x2b3e6f,_0x586413,{'viewIds':[_0x44c339],'fieldIds':[_0x78a1b4]}))return!0x1;let _0x2deace=_0x2b3e6f[_0x509f51(0x2a7)]()['tables'][_0x586413][_0x509f51(0x531)][_0x78a1b4];if(_0x2deace[_0x509f51(0x26d)]===!0x0||_0x2deace[_0x509f51(0x30b)]===_0x377615[_0x509f51(0x4c5)])return!0x1;let _0x29ab7f=_0x3fd401['get'](_0x5342d9),_0x305c4e=_0x3fd401['get'](_0x1eb28c),_0x7ce33e=_0x2b3e6f['getSnapshot'](),_0x2c3dd4=new W()[_0x509f51(0x2e7)](_0x7ce33e,_0x586413,_0x44c339,_0x78a1b4,_0x2a74f0),_0x3e4c51=new z()[_0x509f51(0x27f)](_0x7ce33e,_0x2c3dd4),_0x23f76f={'unitId':_0x2f8a26,'op':_0x2c3dd4},_0x3c0de7={'unitId':_0x2f8a26,'op':_0x3e4c51};return _0x29ab7f[_0x509f51(0x490)](Q['id'],_0x23f76f)?(_0x435dbe[_0x509f51(0x366)](_0x2f8a26),_0x305c4e['pushUndoRedo']({'unitID':_0x2f8a26,'undoMutations':[{'id':Q['id'],'params':_0x3c0de7}],'redoMutations':[{'id':Q['id'],'params':_0x23f76f}]}),!0x0):!0x1;}},bo={'id':'base.command.set-base-view-field-width','type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0xc95332,_0x251129)=>{const _0x5daafa=_0x4e7c38;if(!_0x251129)return!0x1;let _0xb024b9=_0xc95332[_0x5daafa(0x4d5)](_0x26755d),{unitId:_0x5e28ed,tableId:_0x3f8de8,viewId:_0x250f19,fieldId:_0x1ca24c,width:_0x37bc92}=_0x251129,_0x15620c=_0xb024b9[_0x5daafa(0x34e)](_0x5e28ed,_0x2eb623[_0x5daafa(0x583)]);if(!_0x15620c||!$(_0x15620c,_0x3f8de8,{'viewIds':[_0x250f19],'fieldIds':[_0x1ca24c]}))return!0x1;let _0x28e9d1=_0x15620c[_0x5daafa(0x2a7)]()[_0x5daafa(0x29e)][_0x3f8de8][_0x5daafa(0x531)][_0x1ca24c];if(_0x28e9d1[_0x5daafa(0x26d)]===!0x0||_0x28e9d1[_0x5daafa(0x30b)]===_0x377615[_0x5daafa(0x4c5)])return!0x1;let _0x535d33=_0xc95332['get'](_0x5342d9),_0x525aa6=_0xc95332[_0x5daafa(0x4d5)](_0x1eb28c),_0x16cc6d=_0x15620c[_0x5daafa(0x2a7)](),_0x53801d=new W()['setViewFieldWidth'](_0x16cc6d,_0x3f8de8,_0x250f19,_0x1ca24c,_0x37bc92),_0x23824a=new z()[_0x5daafa(0x27f)](_0x16cc6d,_0x53801d),_0x564ff3={'unitId':_0x5e28ed,'op':_0x53801d},_0x4f80e5={'unitId':_0x5e28ed,'op':_0x23824a};return _0x535d33[_0x5daafa(0x490)](Q['id'],_0x564ff3)?(_0xb024b9[_0x5daafa(0x366)](_0x5e28ed),_0x525aa6[_0x5daafa(0x260)]({'unitID':_0x5e28ed,'undoMutations':[{'id':Q['id'],'params':_0x4f80e5}],'redoMutations':[{'id':Q['id'],'params':_0x564ff3}]}),!0x0):!0x1;}},xo={'id':_0x4e7c38(0x213),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x343110,_0x3a8be9)=>{const _0x41dff4=_0x4e7c38;if(!_0x3a8be9)return!0x1;let _0x4131fe=_0x343110[_0x41dff4(0x4d5)](_0x26755d),{unitId:_0x254dc6,tableId:_0x5881dd,viewId:_0x560174,filter:_0x24398f}=_0x3a8be9,_0x49b6a8=_0x4131fe['getUnit'](_0x254dc6,_0x2eb623[_0x41dff4(0x583)]),_0xb65520=(_0x24398f==null?void 0x0:_0x24398f[_0x41dff4(0x477)][_0x41dff4(0x3e8)](_0x33b6a0=>_0x33b6a0[_0x41dff4(0x446)]))??[];if(!_0x49b6a8||!$(_0x49b6a8,_0x5881dd,{'viewIds':[_0x560174],'fieldIds':_0xb65520}))return!0x1;let _0x35d8e3=_0x343110['get'](_0x5342d9),_0x2c4fb0=_0x343110[_0x41dff4(0x4d5)](_0x1eb28c),_0x54ef2e=_0x49b6a8['getSnapshot'](),_0x207f03=new W()[_0x41dff4(0x276)](_0x54ef2e,_0x5881dd,_0x560174,_0x24398f),_0x44ba7c=new z()[_0x41dff4(0x27f)](_0x54ef2e,_0x207f03),_0x2bc02c={'unitId':_0x254dc6,'op':_0x207f03},_0x212ac3={'unitId':_0x254dc6,'op':_0x44ba7c};return _0x35d8e3[_0x41dff4(0x490)](Q['id'],_0x2bc02c)?(_0x4131fe[_0x41dff4(0x366)](_0x254dc6),_0x2c4fb0[_0x41dff4(0x260)]({'unitID':_0x254dc6,'undoMutations':[{'id':Q['id'],'params':_0x212ac3}],'redoMutations':[{'id':Q['id'],'params':_0x2bc02c}]}),!0x0):!0x1;}},So={'id':_0x4e7c38(0x50a),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0xd281cc,_0x398a60)=>{const _0x2fc492=_0x4e7c38;if(!_0x398a60)return!0x1;let _0x4f59db=_0xd281cc[_0x2fc492(0x4d5)](_0x26755d),{unitId:_0x127260,tableId:_0x4d2f1b,viewId:_0x547693,group:_0x4b45af}=_0x398a60,_0x25517a=_0x4f59db[_0x2fc492(0x34e)](_0x127260,_0x2eb623[_0x2fc492(0x583)]);if(!_0x25517a||!$(_0x25517a,_0x4d2f1b,{'viewIds':[_0x547693],'fieldIds':_0x4b45af[_0x2fc492(0x3e8)](_0xfbbe1f=>_0xfbbe1f[_0x2fc492(0x446)])}))return!0x1;let _0x341f98=_0xd281cc[_0x2fc492(0x4d5)](_0x5342d9),_0x297eae=_0xd281cc['get'](_0x1eb28c),_0x343237=_0x25517a[_0x2fc492(0x2a7)](),_0xe5b063=new W()[_0x2fc492(0x2ca)](_0x343237,_0x4d2f1b,_0x547693,_0x4b45af),_0x3bc858=new z()[_0x2fc492(0x27f)](_0x343237,_0xe5b063),_0x998e2d={'unitId':_0x127260,'op':_0xe5b063},_0x17addd={'unitId':_0x127260,'op':_0x3bc858};return _0x341f98[_0x2fc492(0x490)](Q['id'],_0x998e2d)?(_0x4f59db[_0x2fc492(0x366)](_0x127260),_0x297eae[_0x2fc492(0x260)]({'unitID':_0x127260,'undoMutations':[{'id':Q['id'],'params':_0x17addd}],'redoMutations':[{'id':Q['id'],'params':_0x998e2d}]}),!0x0):!0x1;}},Co={'id':_0x4e7c38(0x542),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x204f96,_0x5627d8)=>{const _0x29f609=_0x4e7c38;if(!_0x5627d8)return!0x1;let _0x1184af=_0x204f96[_0x29f609(0x4d5)](_0x26755d),{unitId:_0x1d51f1,tableId:_0x5376b9,viewId:_0x34a9e7,sort:_0x8b754c}=_0x5627d8,_0x31a9ee=_0x1184af[_0x29f609(0x34e)](_0x1d51f1,_0x2eb623[_0x29f609(0x583)]);if(!_0x31a9ee||!$(_0x31a9ee,_0x5376b9,{'viewIds':[_0x34a9e7],'fieldIds':_0x8b754c[_0x29f609(0x3e8)](_0x708a8f=>_0x708a8f[_0x29f609(0x446)])}))return!0x1;let _0x3bc9b0=_0x204f96[_0x29f609(0x4d5)](_0x5342d9),_0x52d82d=_0x204f96[_0x29f609(0x4d5)](_0x1eb28c),_0x4b8e16=_0x31a9ee[_0x29f609(0x2a7)](),_0x15e5de=new W()[_0x29f609(0x374)](_0x4b8e16,_0x5376b9,_0x34a9e7,_0x8b754c),_0x1ef803=new z()['invertOp'](_0x4b8e16,_0x15e5de),_0x5cf967={'unitId':_0x1d51f1,'op':_0x15e5de},_0x3b7f7a={'unitId':_0x1d51f1,'op':_0x1ef803};return _0x3bc9b0['syncExecuteCommand'](Q['id'],_0x5cf967)?(_0x1184af['focusUnit'](_0x1d51f1),_0x52d82d['pushUndoRedo']({'unitID':_0x1d51f1,'undoMutations':[{'id':Q['id'],'params':_0x3b7f7a}],'redoMutations':[{'id':Q['id'],'params':_0x5cf967}]}),!0x0):!0x1;}},wo={'id':_0x4e7c38(0x478),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x5a637b,_0x43019b){const _0x1d92b2=_0x4e7c38;if(!_0x43019b)return!0x1;let _0x5d155c=_0x5a637b[_0x1d92b2(0x4d5)](_0x26755d),{unitId:_0x147f4b,tableId:_0x42f1a4,recordId:_0x5b97dc,fieldId:_0xd99191,value:_0x29d042}=_0x43019b,_0x2a9022=_0x5d155c[_0x1d92b2(0x34e)](_0x147f4b,_0x2eb623[_0x1d92b2(0x583)]);if(!_0x2a9022||!$(_0x2a9022,_0x42f1a4,{'recordIds':[_0x5b97dc],'fieldIds':[_0xd99191]})||!ga(_0x2a9022,_0x42f1a4,_0xd99191,_0x29d042))return!0x1;let _0x309d0f=_0x2a9022[_0x1d92b2(0x2a7)]()[_0x1d92b2(0x29e)][_0x42f1a4],_0x15c4df=F(_0x309d0f,_0xd99191)&&Xe(_0x309d0f)[_0x1d92b2(0x37a)](_0xd99191),_0x469fb6=_0x15c4df?tt(_0x309d0f,_0xd99191):null,_0x18c74f=(_0x469fb6==null?void 0x0:_0x469fb6[_0x1d92b2(0x3ed)][_0x1d92b2(0x4d5)](_0x5b97dc))??null,_0x3f6000=_0x15c4df?Le(_0x29d042)[0x0]??null:null;if(_0x469fb6){if(_0x3f6000&&!_0x309d0f[_0x1d92b2(0x2d1)][_0x3f6000])throw new P(_0x1d92b2(0x310));let _0x2c94ac=it(_0x469fb6,_0x5b97dc,_0x3f6000);if(!_0x2c94ac['valid'])throw new P(_0x2c94ac[_0x1d92b2(0x3be)]===_0x3ada7a[_0x1d92b2(0x31a)]?_0x1d92b2(0x4f9):_0x2c94ac[_0x1d92b2(0x3be)]===_0x3ada7a[_0x1d92b2(0x529)]?'cycle':_0x1d92b2(0x382));}let _0x38a8e7=_0x5a637b[_0x1d92b2(0x4d5)](_0x5342d9),_0x221c03=_0x5a637b[_0x1d92b2(0x4d5)](_0x1eb28c),_0x1893b5=_0x5a637b[_0x1d92b2(0x4d5)](Kr),_0x31b996;try{_0x31b996=_0x1893b5['createUpdateCellOp'](_0x2a9022,_0x42f1a4,_0x5b97dc,_0xd99191,_0x29d042);}catch(_0x3eb351){return console[_0x1d92b2(0x509)](_0x1d92b2(0x508),_0x3eb351),!0x1;}let _0x28dd8d=new z()[_0x1d92b2(0x27f)](_0x2a9022[_0x1d92b2(0x2a7)](),_0x31b996),_0x2bb85a=_0x15c4df&&_0x18c74f!==_0x3f6000?[{'tableId':_0x42f1a4,'fieldId':_0xd99191,'recordId':_0x5b97dc,'oldParentRecordId':_0x18c74f,'parentRecordId':_0x3f6000}]:void 0x0,_0x153209={'unitId':_0x147f4b,'op':_0x31b996,'trigger':_0x2bb85a?wo['id']:void 0x0,'hierarchyChanges':_0x2bb85a,'source':_0x2bb85a?_0x43019b[_0x1d92b2(0x211)]??'ui':void 0x0},_0x25f89a={..._0x153209,'source':_0x2bb85a?_0x1d92b2(0x237):void 0x0},_0x5f4d3f={'unitId':_0x147f4b,'op':_0x28dd8d,'trigger':_0x2bb85a?wo['id']:void 0x0,'hierarchyChanges':_0x2bb85a==null?void 0x0:_0x2bb85a[_0x1d92b2(0x3e8)](_0x355d9d=>({..._0x355d9d,'oldParentRecordId':_0x355d9d['parentRecordId'],'parentRecordId':_0x355d9d['oldParentRecordId']})),'source':_0x2bb85a?'undo':void 0x0};return _0x38a8e7[_0x1d92b2(0x490)](Q['id'],_0x153209)?(_0x5d155c[_0x1d92b2(0x366)](_0x147f4b),_0x221c03[_0x1d92b2(0x260)]({'unitID':_0x147f4b,'undoMutations':[{'id':Q['id'],'params':_0x5f4d3f}],'redoMutations':[{'id':Q['id'],'params':_0x25f89a}]}),!0x0):!0x1;}},To={'id':_0x4e7c38(0x419),'type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x3eb25e,_0x2ccec3){const _0x504c5b=_0x4e7c38;if(!_0x2ccec3)return!0x1;let _0x3b31b0=_0x3eb25e[_0x504c5b(0x4d5)](_0x26755d),{unitId:_0x24c925,tableId:_0x3ef9ec,fieldId:_0x216d35}=_0x2ccec3,_0x591b16=_0x3b31b0[_0x504c5b(0x34e)](_0x24c925,_0x2eb623[_0x504c5b(0x583)]);if(!_0x591b16||!$(_0x591b16,_0x3ef9ec,{'fieldIds':[_0x216d35]}))return!0x1;let _0x5d5954=_0x3eb25e[_0x504c5b(0x4d5)](_0x5342d9),_0x1808a9=_0x3eb25e[_0x504c5b(0x4d5)](_0x1eb28c),_0x1e82bf=_0x591b16[_0x504c5b(0x2a7)](),_0x213a57=_0x2ccec3[_0x504c5b(0x4a4)][_0x504c5b(0x42c)](),_0x1a0d39=new W()[_0x504c5b(0x309)](_0x1e82bf,_0x3ef9ec,_0x216d35,{'description':_0x213a57}),_0x2bc33e=new z()[_0x504c5b(0x27f)](_0x591b16[_0x504c5b(0x2a7)](),_0x1a0d39),_0x23e0e9={'unitId':_0x24c925,'op':_0x1a0d39},_0x30b5f0={'unitId':_0x24c925,'op':_0x2bc33e};return _0x5d5954[_0x504c5b(0x490)](Q['id'],_0x23e0e9)?(_0x3b31b0[_0x504c5b(0x366)](_0x24c925),_0x1808a9[_0x504c5b(0x260)]({'unitID':_0x24c925,'undoMutations':[{'id':Q['id'],'params':_0x30b5f0}],'redoMutations':[{'id':Q['id'],'params':_0x23e0e9}]}),!0x0):!0x1;}},Eo={'id':_0x4e7c38(0x51e),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x17c6c7,_0x3a451b)=>{const _0x43ce5d=_0x4e7c38;if(!_0x3a451b)return!0x1;let _0x3d7efb=_0x17c6c7[_0x43ce5d(0x4d5)](_0x26755d),{unitId:_0x46776e,tableId:_0x1019f7,fieldId:_0x37349d,patch:_0x1c3cee}=_0x3a451b,_0x1b391f=_0x3d7efb[_0x43ce5d(0x34e)](_0x46776e,_0x2eb623[_0x43ce5d(0x583)]);if(!_0x1b391f||_0x37349d===_0x5802d7||!$(_0x1b391f,_0x1019f7,{'fieldIds':[_0x37349d]}))return!0x1;let _0x35a353=_0x17c6c7[_0x43ce5d(0x4d5)](_0x5342d9),_0x3143fc=_0x17c6c7[_0x43ce5d(0x4d5)](_0x1eb28c),_0x2bf4f6=_0x1b391f[_0x43ce5d(0x2a7)]();if(!ha(_0x1b391f,_0x1019f7,{..._0x2bf4f6[_0x43ce5d(0x29e)][_0x1019f7]['fields'][_0x37349d],..._0x1c3cee}))return!0x1;let _0x4eb3ac=new W()[_0x43ce5d(0x309)](_0x2bf4f6,_0x1019f7,_0x37349d,_0x1c3cee),_0x48683b=new z()[_0x43ce5d(0x27f)](_0x2bf4f6,_0x4eb3ac),_0x5192c2={'unitId':_0x46776e,'op':_0x4eb3ac},_0x4e6353={'unitId':_0x46776e,'op':_0x48683b};return _0x35a353[_0x43ce5d(0x490)](Q['id'],_0x5192c2)?(_0x3d7efb['focusUnit'](_0x46776e),_0x3143fc[_0x43ce5d(0x260)]({'unitID':_0x46776e,'undoMutations':[{'id':Q['id'],'params':_0x4e6353}],'redoMutations':[{'id':Q['id'],'params':_0x5192c2}]}),!0x0):!0x1;}},Do={'id':_0x4e7c38(0x4cf),'type':_0x32350d['COMMAND'],'handler':(_0x28c005,_0xac4bed)=>{const _0x2b1317=_0x4e7c38;if(!_0xac4bed)return!0x1;let _0x1630e0=_0x28c005[_0x2b1317(0x4d5)](_0x26755d),{unitId:_0x19b833,tableId:_0x56ce5a,viewId:_0x37cad2,patch:_0x2d9a91}=_0xac4bed,_0x462355=_0x1630e0[_0x2b1317(0x34e)](_0x19b833,_0x2eb623[_0x2b1317(0x583)]);if(!_0x462355||!$(_0x462355,_0x56ce5a,{'viewIds':[_0x37cad2]}))return!0x1;let _0x1fb8b7=_0x28c005['get'](_0x5342d9),_0x322759=_0x28c005[_0x2b1317(0x4d5)](_0x1eb28c),_0x1b3d6c=_0x462355[_0x2b1317(0x2a7)](),_0x296554=new W()[_0x2b1317(0x3e4)](_0x1b3d6c,_0x56ce5a,_0x37cad2,_0x2d9a91),_0x156d71=new z()[_0x2b1317(0x27f)](_0x1b3d6c,_0x296554),_0x65fcbd={'unitId':_0x19b833,'op':_0x296554},_0x328a11={'unitId':_0x19b833,'op':_0x156d71};return _0x1fb8b7[_0x2b1317(0x490)](Q['id'],_0x65fcbd)?(_0x1630e0[_0x2b1317(0x366)](_0x19b833),_0x322759['pushUndoRedo']({'unitID':_0x19b833,'undoMutations':[{'id':Q['id'],'params':_0x328a11}],'redoMutations':[{'id':Q['id'],'params':_0x65fcbd}]}),!0x0):!0x1;}},Oo={'id':_0x4e7c38(0x3f9),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x47f0af,_0x5a8b3e)=>{const _0x440135=_0x4e7c38;if(!_0x5a8b3e)return!0x1;let _0x1b397c=_0x47f0af['get'](_0x26755d),{unitId:_0x31bac2,tableId:_0x44a5a7,recordId:_0x24c61a,orderKey:_0x27fa04}=_0x5a8b3e,_0x27616=_0x1b397c[_0x440135(0x34e)](_0x31bac2,_0x2eb623['UNIVER_BASE']);if(!_0x27616||!$(_0x27616,_0x44a5a7,{'recordIds':[_0x24c61a]}))return!0x1;let _0x17d39e=_0x47f0af['get'](_0x5342d9),_0x5c4360=_0x47f0af[_0x440135(0x4d5)](_0x1eb28c),_0x57a85e=_0x27616[_0x440135(0x2a7)](),_0x4a5444=new W()[_0x440135(0x2c1)](_0x57a85e,_0x44a5a7,_0x24c61a,_0x27fa04),_0x2debd4=new z()['invertOp'](_0x57a85e,_0x4a5444),_0x3e430b={'unitId':_0x31bac2,'op':_0x4a5444},_0x193f23={'unitId':_0x31bac2,'op':_0x2debd4};return _0x17d39e['syncExecuteCommand'](Q['id'],_0x3e430b)?(_0x1b397c['focusUnit'](_0x31bac2),_0x5c4360['pushUndoRedo']({'unitID':_0x31bac2,'undoMutations':[{'id':Q['id'],'params':_0x193f23}],'redoMutations':[{'id':Q['id'],'params':_0x3e430b}]}),!0x0):!0x1;}};let ko=function(_0x36c121){const _0x446ceb=_0x4e7c38;return _0x36c121[_0x446ceb(0x21d)]=_0x446ceb(0x205),_0x36c121[_0x446ceb(0x39d)]=_0x446ceb(0x290),_0x36c121[_0x446ceb(0x1d5)]='delete',_0x36c121[_0x446ceb(0x3e6)]=_0x446ceb(0x2b2),_0x36c121;}({});const Ao={'id':_0x4e7c38(0x420),'type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0x329e88,_0x237379)=>{const _0x5ebb9d=_0x4e7c38;var _0x3e0746;if(!_0x237379)return!0x1;let _0x4c6c46=_0x329e88[_0x5ebb9d(0x4d5)](_0x26755d),_0x3a2888=_0x4c6c46[_0x5ebb9d(0x34e)](_0x237379['unitId'],_0x2eb623['UNIVER_BASE']);if(!_0x3a2888||!$(_0x3a2888,_0x237379[_0x5ebb9d(0x2cc)],{'viewIds':[_0x237379['viewId']]}))return!0x1;let _0x1db5a8=_0x3a2888[_0x5ebb9d(0x2a7)](),_0x242620=_0x1db5a8['tables'][_0x237379[_0x5ebb9d(0x2cc)]],_0x53008d=jo(((_0x3e0746=_0x242620[_0x5ebb9d(0x460)][_0x237379[_0x5ebb9d(0x34a)]]['config']['conditionalColoring'])==null?void 0x0:_0x3e0746[_0x5ebb9d(0x532)])??[],_0x237379);if(!_0x53008d)return!0x1;Mo(_0x242620,_0x53008d);let _0x3ebc3a=new W()[_0x5ebb9d(0x3e4)](_0x1db5a8,_0x237379[_0x5ebb9d(0x2cc)],_0x237379['viewId'],{'conditionalColoring':_0x53008d[_0x5ebb9d(0x2b6)]?{'rules':_0x53008d}:null}),_0x183025=new z()['invertOp'](_0x1db5a8,_0x3ebc3a),_0x50c1fa={'unitId':_0x237379[_0x5ebb9d(0x423)],'op':_0x3ebc3a},_0x18f92e={'unitId':_0x237379[_0x5ebb9d(0x423)],'op':_0x183025};return _0x329e88[_0x5ebb9d(0x4d5)](_0x5342d9)[_0x5ebb9d(0x490)](Q['id'],_0x50c1fa)?(_0x4c6c46['focusUnit'](_0x237379['unitId']),_0x329e88[_0x5ebb9d(0x4d5)](_0x1eb28c)[_0x5ebb9d(0x260)]({'unitID':_0x237379['unitId'],'undoMutations':[{'id':Q['id'],'params':_0x18f92e}],'redoMutations':[{'id':Q['id'],'params':_0x50c1fa}]}),!0x0):!0x1;}};function jo(_0x4ffa74,_0x17d87b){const _0x250f0d=_0x4e7c38;switch(_0x17d87b[_0x250f0d(0x30b)]){case _0x250f0d(0x205):return _0x42dbe9['deepClone'](_0x17d87b[_0x250f0d(0x532)]);case _0x250f0d(0x290):return[..._0x42dbe9[_0x250f0d(0x560)](_0x4ffa74),_0x42dbe9[_0x250f0d(0x560)](_0x17d87b[_0x250f0d(0x4f5)])];case _0x250f0d(0x57a):{let _0x2e3812=_0x4ffa74[_0x250f0d(0x20f)](_0x2b5fae=>_0x2b5fae['id']!==_0x17d87b[_0x250f0d(0x503)]);return _0x2e3812[_0x250f0d(0x2b6)]===_0x4ffa74[_0x250f0d(0x2b6)]?null:_0x42dbe9[_0x250f0d(0x560)](_0x2e3812);}case _0x250f0d(0x2b2):return _0x4ffa74[_0x250f0d(0x2b6)]?[]:null;}}function Mo(_0x4da173,_0xc7b3b){const _0x74bc8d=_0x4e7c38;if(!Array['isArray'](_0xc7b3b))throw TypeError(_0x74bc8d(0x553));let _0x38b88c=new Set();for(let [_0x34eae9,_0x406fdd]of _0xc7b3b['entries']())Po(_0x4da173,_0x406fdd,No(_0x406fdd,_0x34eae9,_0x38b88c));}function No(_0x30e570,_0x4b91e4,_0x57f830){const _0x407606=_0x4e7c38;if(!_0x30e570||typeof _0x30e570!=_0x407606(0x3d3))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20'+_0x4b91e4+_0x407606(0x27d));let _0x38833b=typeof _0x30e570['id']==_0x407606(0x457)&&_0x30e570['id']['trim']()?'\x22'+_0x30e570['id']+'\x22':_0x407606(0x2a5)+_0x4b91e4;if(typeof _0x30e570['id']!='string'||!_0x30e570['id']['trim']())throw Error(_0x407606(0x3b1)+_0x38833b+_0x407606(0x253));if(_0x57f830[_0x407606(0x4d6)](_0x30e570['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x30e570['id']+'\x22.');_0x57f830[_0x407606(0x290)](_0x30e570['id']);let _0x275b56=typeof _0x30e570['color']=='string'&&_0x30e570[_0x407606(0x480)][_0x407606(0x42c)]()?new _0x20c54c(_0x30e570[_0x407606(0x480)]):null;if(!(_0x275b56!=null&&_0x275b56[_0x407606(0x31e)]))throw Error(_0x407606(0x3b1)+_0x38833b+_0x407606(0x4e6));return _0x38833b;}function Po(_0x42b2c8,_0xce8c0f,_0x40c702){const _0x3e4b8e=_0x4e7c38;let _0x2440f4=new Set(Object[_0x3e4b8e(0x4c0)](_0x451bc0)),_0x56fb16=new Set(Object[_0x3e4b8e(0x4c0)](_0x4baac8)),_0x35e4df=new Set(Object[_0x3e4b8e(0x4c0)](_0x140f15));if(!_0x2440f4[_0x3e4b8e(0x4d6)](_0xce8c0f[_0x3e4b8e(0x44d)]))throw Error(_0x3e4b8e(0x3b1)+_0x40c702+_0x3e4b8e(0x3cd)+String(_0xce8c0f[_0x3e4b8e(0x44d)])+'\x22.');let _0x30355b=typeof _0xce8c0f[_0x3e4b8e(0x446)]==_0x3e4b8e(0x457)?_0x42b2c8['fields'][_0xce8c0f[_0x3e4b8e(0x446)]]:void 0x0;if(!_0x30355b||_0x30355b[_0x3e4b8e(0x26d)]===!0x0||_0x30355b[_0x3e4b8e(0x30b)]===_0x377615[_0x3e4b8e(0x4c5)])throw Error(_0x3e4b8e(0x3b1)+_0x40c702+'\x20references\x20missing\x20or\x20non-public\x20field\x20\x22'+String(_0xce8c0f[_0x3e4b8e(0x446)])+'\x22.');if(!_0x56fb16['has'](_0xce8c0f[_0x3e4b8e(0x4c6)]))throw Error(_0x3e4b8e(0x3b1)+_0x40c702+_0x3e4b8e(0x1f5)+String(_0xce8c0f[_0x3e4b8e(0x4c6)])+'\x22.');if(_0xce8c0f[_0x3e4b8e(0x3a8)]!==void 0x0&&!_0x35e4df[_0x3e4b8e(0x4d6)](_0xce8c0f['dateMode']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x40c702+_0x3e4b8e(0x378)+String(_0xce8c0f['dateMode'])+'\x22.');if(_0xce8c0f['target']===_0x451bc0[_0x3e4b8e(0x263)])return;let _0x4b570b=vn(_0x30355b[_0x3e4b8e(0x30b)]);if(!_0x4b570b[_0x3e4b8e(0x37a)](_0xce8c0f[_0x3e4b8e(0x4c6)]))throw Error(_0x3e4b8e(0x3b1)+_0x40c702+_0x3e4b8e(0x530)+_0xce8c0f['operator']+_0x3e4b8e(0x2c7)+_0x30355b[_0x3e4b8e(0x30b)]+_0x3e4b8e(0x4b2)+_0x4b570b[_0x3e4b8e(0x50e)](',\x20')+'.');if(_0xce8c0f[_0x3e4b8e(0x3a8)]!==void 0x0&&!yn(_0x30355b[_0x3e4b8e(0x30b)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x40c702+_0x3e4b8e(0x541));}const Fo={'id':'base.command.update-base-view-config','type':_0x32350d[_0x4e7c38(0x47b)],'handler':(_0xbfcd65,_0x5bb9a3)=>{const _0x544d06=_0x4e7c38;if(!_0x5bb9a3)return!0x1;let _0x5880cc=_0xbfcd65[_0x544d06(0x4d5)](_0x26755d),{unitId:_0x22b448,tableId:_0x47df87,viewId:_0x310809,patch:_0x3641e1}=_0x5bb9a3,_0x58afce=_0x5880cc[_0x544d06(0x34e)](_0x22b448,_0x2eb623[_0x544d06(0x583)]);if(!_0x58afce||!$(_0x58afce,_0x47df87,{'viewIds':[_0x310809]}))return!0x1;let _0x335b4f=_0xbfcd65[_0x544d06(0x4d5)](_0x5342d9),_0x590dae=_0xbfcd65[_0x544d06(0x4d5)](_0x1eb28c),_0x422f71=_0x58afce['getSnapshot'](),_0x1c340e=new W()[_0x544d06(0x3e4)](_0x422f71,_0x47df87,_0x310809,_0x3641e1),_0x5e09e4=new z()[_0x544d06(0x27f)](_0x422f71,_0x1c340e),_0x4de859={'unitId':_0x22b448,'op':_0x1c340e},_0x467f15={'unitId':_0x22b448,'op':_0x5e09e4};return _0x335b4f[_0x544d06(0x490)](Q['id'],_0x4de859)?(_0x5880cc[_0x544d06(0x366)](_0x22b448),_0x590dae[_0x544d06(0x260)]({'unitID':_0x22b448,'undoMutations':[{'id':Q['id'],'params':_0x467f15}],'redoMutations':[{'id':Q['id'],'params':_0x4de859}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x32350d[_0x4e7c38(0x47b)],'handler'(_0x1c2717,_0x532714){const _0x527cea=_0x4e7c38;if(!_0x532714)return{'valid':!0x1,'reason':_0x527cea(0x2ba)};let _0x290a36=_0x1c2717['get'](_0x26755d)['getUnit'](_0x532714[_0x527cea(0x423)],_0x2eb623['UNIVER_BASE']),_0xff3a06=_0x290a36==null?void 0x0:_0x290a36[_0x527cea(0x2a7)](),_0x346adf=_0xff3a06==null?void 0x0:_0xff3a06[_0x527cea(0x29e)][_0x532714[_0x527cea(0x2cc)]];return!_0xff3a06||!_0x346adf?{'valid':!0x1,'reason':_0x527cea(0x23a)}:new Xi()[_0x527cea(0x398)](_0x532714['formula'],_0x346adf,{'snapshot':_0xff3a06});}};let Lo=class extends _0x5d02dd{constructor(_0x204fd4){const _0x1a5d12=_0x4e7c38;super(_0x204fd4,_0x1a5d12(0x550),_0x2eb623['UNIVER_BASE'],[_0x3b454d[_0x1a5d12(0x439)],_0x3b454d[_0x1a5d12(0x29b)],_0x3b454d['BaseRecord'],_0x3b454d['BaseView'],_0x3b454d[_0x1a5d12(0x416)]]);}};Lo=X([Y(0x0,_0x3897dd)],Lo);const Ro={'id':_0x4e7c38(0x558),'type':_0x32350d[_0x4e7c38(0x324)],'handler':(_0x117b69,_0x431c92)=>!_0x431c92||!_0x117b69[_0x4e7c38(0x4d5)](_0x26755d)['getUnit'](_0x431c92[_0x4e7c38(0x423)],_0x2eb623[_0x4e7c38(0x583)])?!0x1:_0x117b69[_0x4e7c38(0x4d5)](Lo)[_0x4e7c38(0x234)](_0x431c92['unitId'],_0x431c92[_0x4e7c38(0x417)],_0x431c92[_0x4e7c38(0x48b)],_0x431c92['rule'])},zo={'id':'base.mutation.set-permission-rules','type':_0x32350d['MUTATION'],'handler':(_0x36c222,_0x432598)=>!_0x432598||!_0x36c222[_0x4e7c38(0x4d5)](_0x26755d)[_0x4e7c38(0x34e)](_0x432598[_0x4e7c38(0x423)],_0x2eb623['UNIVER_BASE'])?!0x1:_0x36c222[_0x4e7c38(0x4d5)](Lo)[_0x4e7c38(0x515)](_0x432598[_0x4e7c38(0x423)],_0x432598[_0x4e7c38(0x532)])};function Bo(_0x38c3dd){const _0x5d3a30=_0x4e7c38;let _0x37d983=_0x38c3dd[_0x5d3a30(0x32e)]??Date['now'](),_0x3c120d=_0x38c3dd[_0x5d3a30(0x48d)]??_0x38c3dd['id']+_0x5d3a30(0x2da),_0xb8ce71=_0x38c3dd[_0x5d3a30(0x3ac)]??_0x38c3dd['id']+'-view-grid',_0x2196b6=_0x38c3dd[_0x5d3a30(0x274)]??0x0,_0x278fcd=_0x560c8e(),_0x5352a3={'id':_0x3c120d,'name':_0x38c3dd[_0x5d3a30(0x495)]??_0x5d3a30(0x233),'type':_0x377615[_0x5d3a30(0x46e)],'config':{'placeholder':_0x5d3a30(0x28d)}},_0x407c3a={},_0xca8af7=[],_0x185970={},_0x3eb6f0={},_0x215dcd={};for(let _0x28d298=0x0;_0x28d298<_0x2196b6;_0x28d298++){let _0x5c118d=_0x38c3dd['id']+_0x5d3a30(0x280)+(_0x28d298+0x1);_0x407c3a[_0x5c118d]={'id':_0x5c118d,'values':{[_0x5802d7]:_0x5c118d,..._0x38c3dd[_0x5d3a30(0x32c)]?{[_0x3c120d]:_0x38c3dd[_0x5d3a30(0x32c)]+'\x20'+(_0x28d298+0x1)}:{}},'orderKey':String(_0x28d298+0x1)['padStart'](0x4,'0'),'createdAt':_0x37d983,'updatedAt':_0x37d983},_0xca8af7[_0x5d3a30(0x3e2)](_0x5c118d),_0x185970[_0x5c118d]=_0x28d298,_0x3eb6f0[_0x28d298]=_0x5c118d,_0x215dcd[_0x28d298]={0x0:{'v':_0x5c118d,'t':_0xbba171[_0x5d3a30(0x329)]}},_0x38c3dd[_0x5d3a30(0x32c)]&&(_0x215dcd[_0x28d298][0x1]={'v':_0x38c3dd[_0x5d3a30(0x32c)]+'\x20'+(_0x28d298+0x1),'t':_0xbba171[_0x5d3a30(0x329)]});}let _0x4eb307={'id':_0xb8ce71,'tableId':_0x38c3dd['id'],'name':_0x5d3a30(0x571),'type':_0xa6488a[_0x5d3a30(0x571)],'fieldOrder':[_0x5802d7,_0x3c120d],'fieldSettings':{[_0x5802d7]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x38c3dd['id'],'name':_0x38c3dd[_0x5d3a30(0x39a)],'primaryFieldId':_0x3c120d,'fieldOrder':[_0x5802d7,_0x3c120d],'fields':{[_0x5802d7]:_0x278fcd,[_0x3c120d]:_0x5352a3},'records':_0x407c3a,'recordOrder':_0xca8af7,'rowIndex':_0x185970,'rowId':_0x3eb6f0,'colIndex':{[_0x5802d7]:0x0,[_0x3c120d]:0x1},'colId':{0x0:_0x5802d7,0x1:_0x3c120d},'cellData':_0x215dcd,'views':{[_0xb8ce71]:_0x4eb307},'viewOrder':[_0xb8ce71]};}const Vo=_0x4e7c38(0x3d9);function Ho(_0x4acc76){const _0x506937=_0x4e7c38;let _0x453dfc=Bo({'id':_0x4acc76[_0x506937(0x271)],'name':_0x4acc76[_0x506937(0x39a)]??_0x4acc76[_0x506937(0x4e0)],'recordCount':0x0});return{..._0x453dfc,'resources':{..._0x453dfc[_0x506937(0x358)]??{},[Vo]:Go(_0x4acc76)}};}function Uo(_0x184852){const _0x17c8f2=_0x4e7c38;return{'id':Q['id'],'params':{'unitId':_0x184852[_0x17c8f2(0x423)],'op':_0x10aaca[_0x17c8f2(0x30b)][_0x17c8f2(0x356)](_0x10aaca[_0x17c8f2(0x45d)]([_0x17c8f2(0x29e),_0x184852[_0x17c8f2(0x438)]['id']],_0x184852[_0x17c8f2(0x438)]),_0x10aaca[_0x17c8f2(0x45d)](['tableOrder',_0x184852[_0x17c8f2(0x230)]??_0x184852[_0x17c8f2(0x400)][_0x17c8f2(0x38f)][_0x17c8f2(0x2b6)]],_0x184852[_0x17c8f2(0x438)]['id'])),'trigger':'embed-ui'}};}function Wo(_0x1294c3){const _0x12a9da=_0x4e7c38;let _0x56f15b=_0x1294c3[_0x12a9da(0x400)][_0x12a9da(0x38f)][_0x12a9da(0x20c)](_0x1294c3[_0x12a9da(0x2cc)]);if(!(!_0x1294c3[_0x12a9da(0x400)][_0x12a9da(0x29e)][_0x1294c3[_0x12a9da(0x2cc)]]||_0x56f15b<0x0))return{'id':Q['id'],'params':{'unitId':_0x1294c3['unitId'],'op':_0x10aaca[_0x12a9da(0x30b)][_0x12a9da(0x356)](_0x10aaca['removeOp']([_0x12a9da(0x29e),_0x1294c3[_0x12a9da(0x2cc)]],_0x1294c3[_0x12a9da(0x400)][_0x12a9da(0x29e)][_0x1294c3['tableId']]),_0x10aaca[_0x12a9da(0x3c4)]([_0x12a9da(0x38f),_0x56f15b],_0x1294c3[_0x12a9da(0x2cc)])),'trigger':'embed-ui'}};}function Go(_0x390f5f){const _0xc32149=_0x4e7c38;return{'version':0x1,'embedId':_0x390f5f['embedId'],'hostAnchorId':_0x390f5f[_0xc32149(0x271)],'childUnitId':_0x390f5f[_0xc32149(0x336)],'childType':_0x390f5f[_0xc32149(0x4a9)]};}function Ko(_0x44ac07){const _0xd185b7=_0x4e7c38;let _0x542207=Math['max'](0x0,Number(_0x44ac07[_0xd185b7(0x350)]??0x0)),_0x2ae5be=_0x44ac07[_0xd185b7(0x4b1)]===!0x1?'0':_0xd185b7(0x25a),_0x43d65f=_0x542207?'.'+'0'[_0xd185b7(0x1b9)](_0x542207):'',_0x293fb9=Jo(_0x44ac07[_0xd185b7(0x43b)]);return''+(_0x44ac07[_0xd185b7(0x34f)]?Yo(_0x44ac07[_0xd185b7(0x34f)]):'')+_0x2ae5be+_0x43d65f+_0x293fb9;}function qo(_0x419ea0,_0x5728af){const _0x40ee86=_0x4e7c38;let _0x1f6062=Ko(_0x5728af),_0x1569bf=_0x807b25[_0x40ee86(0x455)](_0x1f6062,_0x419ea0,{'throws':!0x1});return Xo(String(_0x1569bf),_0x5728af[_0x40ee86(0x2e6)],_0x5728af[_0x40ee86(0x3e9)]);}function Jo(_0x49e872){const _0x49d448=_0x4e7c38;return _0x49e872==='K'?_0x49d448(0x3d6):_0x49e872==='M'?_0x49d448(0x519):_0x49e872==='B'?_0x49d448(0x222):'';}function Yo(_0x43ef90){const _0x119ba9=_0x4e7c38;return/^[A-Z]+$/i[_0x119ba9(0x463)](_0x43ef90)?'\x22'+_0x43ef90+'\x22':_0x43ef90;}function Xo(_0x49d0a2,_0x107e7e,_0x366b99){const _0x5bb6d7=_0x4e7c38;let _0x57d2f4=_0x107e7e===_0x5bb6d7(0x31c)?Zo(_0x366b99):_0x107e7e;return _0x57d2f4===_0x5bb6d7(0x434)?_0x49d0a2[_0x5bb6d7(0x212)](/,/g,'\x00')[_0x5bb6d7(0x212)](/\./g,',')[_0x5bb6d7(0x212)](/\0/g,'.'):_0x57d2f4==='spaceComma'?_0x49d0a2[_0x5bb6d7(0x212)](/,/g,'\x20')['replace'](/\./g,','):_0x57d2f4===_0x5bb6d7(0x3ae)?_0x49d0a2[_0x5bb6d7(0x212)](/,/g,'\x20'):_0x49d0a2;}function Zo(_0x479551){const _0xb6abe9=_0x4e7c38;var _0x19b17a,_0x45de57;let _0x455e95=_0x479551||new Intl[(_0xb6abe9(0x395))]()[_0xb6abe9(0x4e2)]()['locale'],_0x5e772f;try{_0x5e772f=new Intl[(_0xb6abe9(0x395))](_0x455e95,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0xb6abe9(0x437)](0xf4240);}catch{return _0xb6abe9(0x4d1);}let _0xb591a=(_0x19b17a=_0x5e772f['find'](_0x1c1f3d=>_0x1c1f3d['type']===_0xb6abe9(0x3b2)))==null?void 0x0:_0x19b17a['value'],_0x56cc60=(_0x45de57=_0x5e772f[_0xb6abe9(0x1c5)](_0x107b09=>_0x107b09[_0xb6abe9(0x30b)]===_0xb6abe9(0x282)))==null?void 0x0:_0x45de57[_0xb6abe9(0x4de)],_0x5c6a79=_0xb591a==='\u00a0'||_0xb591a==='\u202f'?'\x20':_0xb591a;return _0x5c6a79==='.'&&_0x56cc60===','?_0xb6abe9(0x434):_0x5c6a79==='\x20'&&_0x56cc60===','?_0xb6abe9(0x3d2):_0x5c6a79==='\x20'&&_0x56cc60==='.'?_0xb6abe9(0x3ae):_0xb6abe9(0x4d1);}function Qo(_0x437987,_0x5e3640){const _0x4cea8c=_0x4e7c38;let _0x346f06=_0x5e3640&&typeof _0x5e3640==_0x4cea8c(0x3d3)&&!Array[_0x4cea8c(0x56b)](_0x5e3640)?_0x5e3640:{},_0x5da4d2=$o(_0x346f06[_0x4cea8c(0x350)],0x0,0x2,0x0),_0x2803d1=_0x437987[_0x4cea8c(0x34d)](_0x5da4d2);return _0x346f06[_0x4cea8c(0x455)]===_0x4cea8c(0x43a)?_0x2803d1:_0x2803d1+'%';}function $o(_0x569164,_0x402777,_0x43a53f,_0x36f82d){const _0x268d1f=_0x4e7c38;if(_0x569164==null||_0x569164==='')return _0x36f82d;let _0x587fa7=typeof _0x569164==_0x268d1f(0x43a)?_0x569164:Number(_0x569164);return Number['isFinite'](_0x587fa7)?Math[_0x268d1f(0x265)](_0x402777,Math[_0x268d1f(0x218)](_0x43a53f,Math[_0x268d1f(0x544)](_0x587fa7))):_0x36f82d;}const es=[_0x4e7c38(0x3c9),'filled',_0x4e7c38(0x2e3),_0x4e7c38(0x341),'sum',_0x4e7c38(0x504),'min',_0x4e7c38(0x265)],ts=['count',_0x4e7c38(0x3af),_0x4e7c38(0x2e3),'unique'],ns=[_0x4e7c38(0x1e5),_0x4e7c38(0x504),_0x4e7c38(0x218),_0x4e7c38(0x265)],rs=[_0x4e7c38(0x218),_0x4e7c38(0x265)],is=new Set([_0x377615[_0x4e7c38(0x242)],_0x377615[_0x4e7c38(0x40e)],_0x377615[_0x4e7c38(0x3a3)],_0x377615[_0x4e7c38(0x33a)]]),as=new Set([_0x377615[_0x4e7c38(0x1eb)],_0x377615[_0x4e7c38(0x4f8)],_0x377615[_0x4e7c38(0x1c4)]]),os=_0x4e7c38(0x52c);function ss(_0x439096){const _0x3e2577=_0x4e7c38;return typeof _0x439096==_0x3e2577(0x457)&&es[_0x3e2577(0x37a)](_0x439096);}function cs(_0x462ace){const _0x23df5e=_0x4e7c38;return!_0x462ace||typeof _0x462ace!=_0x23df5e(0x3d3)?{}:Object['fromEntries'](Object['entries'](_0x462ace)['filter'](_0x3429fb=>ss(_0x3429fb[0x1])));}function ls(_0x41f711){const _0x7ae124=_0x4e7c38;return is[_0x7ae124(0x4d6)](_0x41f711[_0x7ae124(0x30b)])?[...ts,...ns]:_0x41f711[_0x7ae124(0x30b)]===_0x377615['Formula']?[...ts,...ws(_0x41f711)===_0x7ae124(0x3ee)?rs:ns]:ts;}function us(_0x3655f5,_0x4bada1){return ls(_0x3655f5)['includes'](_0x4bada1);}function ds(_0x4da4ba,_0x4d849a,_0x4b45f2){const _0x360c69=_0x4e7c38;if(!us(_0x4da4ba,_0x4b45f2))return null;let _0x1f8657=_0x4d849a[_0x360c69(0x20f)](_0x555679=>!ps(_0x4da4ba,_0x555679));switch(_0x4b45f2){case _0x360c69(0x3c9):return _0x4d849a['length'];case _0x360c69(0x3af):return _0x1f8657[_0x360c69(0x2b6)];case _0x360c69(0x2e3):return _0x4d849a[_0x360c69(0x2b6)]-_0x1f8657[_0x360c69(0x2b6)];case _0x360c69(0x341):return new Set(_0x1f8657['map'](_0x3951ea=>_s(_0x4da4ba,_0x3951ea)))['size'];case _0x360c69(0x1e5):{let _0x4a4ddc=ms(_0x4da4ba,_0x1f8657);return _0x4a4ddc[_0x360c69(0x2b6)]?gs(_0x4a4ddc):null;}case _0x360c69(0x504):{let _0x1bf8ad=ms(_0x4da4ba,_0x1f8657);return _0x1bf8ad['length']?gs(_0x1bf8ad)/_0x1bf8ad['length']:null;}case _0x360c69(0x218):{let _0x12b672=ms(_0x4da4ba,_0x1f8657);return _0x12b672[_0x360c69(0x2b6)]?Math[_0x360c69(0x218)](..._0x12b672):null;}case _0x360c69(0x265):{let _0x1ff24d=ms(_0x4da4ba,_0x1f8657);return _0x1ff24d['length']?Math[_0x360c69(0x265)](..._0x1ff24d):null;}}}function fs(_0x37b7fb,_0x352563,_0x33a663){const _0x57953a=_0x4e7c38;if(_0x33a663==null||!Number[_0x57953a(0x338)](_0x33a663))return'-';if(ts[_0x57953a(0x37a)](_0x352563))return String(_0x33a663);switch(_0x37b7fb[_0x57953a(0x30b)]){case _0x377615['Number']:return qo(_0x33a663,xs(_0x37b7fb));case _0x377615[_0x57953a(0x40e)]:return qo(_0x33a663,Ss(_0x37b7fb));case _0x377615[_0x57953a(0x3a3)]:return Qo(_0x33a663,_0x37b7fb[_0x57953a(0x554)]);case _0x377615[_0x57953a(0x26c)]:return Cs(_0x33a663,_0x37b7fb);default:return Es(_0x33a663);}}function ps(_0x2cf591,_0x347998){const _0x4531f9=_0x4e7c38;if(_0x347998==null)return!0x0;if(typeof _0x347998==_0x4531f9(0x457))return _0x347998[_0x4531f9(0x42c)]()==='';if(Array['isArray'](_0x347998))return _0x2cf591[_0x4531f9(0x30b)]===_0x377615[_0x4531f9(0x389)]?!_0x347998[_0x4531f9(0x48e)](bs):_0x347998['length']===0x0;if(_0x2cf591[_0x4531f9(0x30b)]===_0x377615[_0x4531f9(0x1c3)]&&typeof _0x347998==_0x4531f9(0x3d3)){let _0x2c171a=_0x347998;return[_0x2c171a[_0x4531f9(0x2bb)],_0x2c171a[_0x4531f9(0x2d3)]]['every'](_0x59ce21=>_0x59ce21==null||String(_0x59ce21)[_0x4531f9(0x42c)]()==='');}return!0x1;}function ms(_0x2f8dbe,_0x45fa5b){let _0x275e0c=[];for(let _0x3ee1a8 of _0x45fa5b){let _0x11f947=hs(_0x2f8dbe,_0x3ee1a8);_0x11f947!=null&&_0x275e0c['push'](_0x11f947);}return _0x275e0c;}function hs(_0x5bf6b,_0x40fb66){const _0x4403b7=_0x4e7c38;if(typeof _0x40fb66==_0x4403b7(0x43a))return Number[_0x4403b7(0x338)](_0x40fb66)?_0x40fb66:null;if(_0x5bf6b['type']!==_0x377615['Formula']&&typeof _0x40fb66=='string'&&_0x40fb66[_0x4403b7(0x42c)]()!==''){let _0x46db1a=Number(_0x40fb66);return Number[_0x4403b7(0x338)](_0x46db1a)?_0x46db1a:null;}return null;}function gs(_0xe50822){const _0x449c06=_0x4e7c38;let _0x5951e9=0x0,_0x2f0bab=0x0;for(let _0x45bc5d of _0xe50822){let _0x22d770=_0x5951e9+_0x45bc5d;_0x2f0bab+=Math['abs'](_0x5951e9)>=Math[_0x449c06(0x402)](_0x45bc5d)?_0x5951e9-_0x22d770+_0x45bc5d:_0x45bc5d-_0x22d770+_0x5951e9,_0x5951e9=_0x22d770;}return _0x5951e9+_0x2f0bab;}function _s(_0x293190,_0x36a53b){const _0x5395eb=_0x4e7c38;return as['has'](_0x293190[_0x5395eb(0x30b)])&&Array[_0x5395eb(0x56b)](_0x36a53b)?ys([...new Set(_0x36a53b[_0x5395eb(0x3e8)](_0xcc92f6=>ys(vs(_0xcc92f6))))][_0x5395eb(0x266)]()):ys(vs(_0x36a53b));}function vs(_0x406bbe){const _0x5390b8=_0x4e7c38;return Array[_0x5390b8(0x56b)](_0x406bbe)?_0x406bbe['map'](vs):_0x406bbe&&typeof _0x406bbe==_0x5390b8(0x3d3)?Object['fromEntries'](Object[_0x5390b8(0x502)](_0x406bbe)[_0x5390b8(0x266)](([_0x16301d],[_0x20983c])=>_0x16301d['localeCompare'](_0x20983c))['map'](([_0xedd6bd,_0xb7b041])=>[_0xedd6bd,vs(_0xb7b041)])):_0x406bbe;}function ys(_0x3b1588){const _0x1c745f=_0x4e7c38;return JSON[_0x1c745f(0x2af)](_0x3b1588)??_0x1c745f(0x526);}function bs(_0x2bee53){const _0x3e4b20=_0x4e7c38;if(typeof _0x2bee53==_0x3e4b20(0x457))return _0x2bee53['trim']()!=='';if(!_0x2bee53||typeof _0x2bee53!=_0x3e4b20(0x3d3))return!0x1;let _0x1d4ef8=_0x2bee53;return[_0x1d4ef8['id'],_0x1d4ef8[_0x3e4b20(0x39a)],_0x1d4ef8['source'],_0x1d4ef8['url'],_0x1d4ef8[_0x3e4b20(0x448)]][_0x3e4b20(0x48e)](_0x8e7889=>_0x8e7889!=null&&String(_0x8e7889)[_0x3e4b20(0x42c)]()!=='');}function xs(_0x1cc1cd){const _0x4ae7c7=_0x4e7c38;let _0x4f762f=Ds(_0x1cc1cd[_0x4ae7c7(0x554)]);return{'decimalPlaces':ks(_0x4f762f['decimalPlaces'],0x0,0x14,0x2),'separatorStyle':typeof _0x4f762f[_0x4ae7c7(0x2e6)]==_0x4ae7c7(0x457)?_0x4f762f[_0x4ae7c7(0x2e6)]:_0x4ae7c7(0x31c),'locale':typeof _0x4f762f[_0x4ae7c7(0x3e9)]=='string'?_0x4f762f['locale']:void 0x0,'useThousands':_0x4f762f[_0x4ae7c7(0x4b1)]!==!0x1,'abbreviation':typeof _0x4f762f['abbreviation']=='string'?_0x4f762f[_0x4ae7c7(0x43b)]:_0x4ae7c7(0x4e8)};}function Ss(_0x259723){const _0x3ea1f6=_0x4e7c38;let _0x116608=Ds(_0x259723[_0x3ea1f6(0x554)]);return{...xs(_0x259723),'currencySymbol':String(_0x116608[_0x3ea1f6(0x34f)]??'$')};}function Cs(_0x4de655,_0x6a599f){const _0x26cde0=_0x4e7c38;let _0x4ad093=Ts(_0x6a599f);if(_0x4ad093===os)return Es(_0x4de655);try{return String(_0x807b25[_0x26cde0(0x455)](_0x4ad093,_0x4de655,{'throws':!0x1}));}catch{return Es(_0x4de655);}}function ws(_0x3e8181){const _0x20f845=_0x4e7c38;let _0x13e8ea=Ds(Ds(_0x3e8181[_0x20f845(0x554)])['numfmt']);return typeof _0x13e8ea['type']==_0x20f845(0x457)?_0x13e8ea[_0x20f845(0x30b)]:_0x20f845(0x573);}function Ts(_0x2a92b6){const _0x563bc7=_0x4e7c38;let _0x1e3478=Ds(Ds(_0x2a92b6[_0x563bc7(0x554)])[_0x563bc7(0x1e1)]);return String(_0x1e3478[_0x563bc7(0x4ed)]??os)[_0x563bc7(0x42c)]()||os;}function Es(_0x32b683){const _0x4b988d=_0x4e7c38;return String(Number[_0x4b988d(0x314)](_0x32b683)?_0x32b683:Math[_0x4b988d(0x544)]((_0x32b683+0x2**-0x34)*0x64)/0x64);}function Ds(_0x48c0e2){const _0x38a365=_0x4e7c38;return _0x48c0e2&&typeof _0x48c0e2==_0x38a365(0x3d3)&&!Array[_0x38a365(0x56b)](_0x48c0e2)?_0x48c0e2:{};}function Os(_0x4aac3f){const _0x25789a=_0x4e7c38;if(_0x4aac3f==null||_0x4aac3f==='')return null;let _0x34b292=typeof _0x4aac3f==_0x25789a(0x43a)?_0x4aac3f:Number(_0x4aac3f);return Number['isFinite'](_0x34b292)?_0x34b292:null;}function ks(_0x75959d,_0x429a54,_0x59dec3,_0x2c651a){const _0x39bc66=_0x4e7c38;let _0x5d139e=Os(_0x75959d);return _0x5d139e==null?_0x2c651a:Math[_0x39bc66(0x265)](_0x429a54,Math['min'](_0x59dec3,Math[_0x39bc66(0x544)](_0x5d139e)));}function As(_0x1d172c,_0x455ccf){const _0x148e5d=_0x4e7c38;let _0x180a95=_0x42dbe9['deepClone'](_0x1d172c),_0x4fc93c=_0x455ccf['includeRecords']===!0x0,_0x2e903a=new Map(),_0x5f02e6=_0x455ccf['createViewId']??(()=>_0x148e5d(0x351)+_0x53e5f1(0x8)),_0xb270fe=_0x180a95[_0x148e5d(0x43e)];return _0x455ccf[_0x148e5d(0x415)]&&(_0xb270fe=_0x180a95[_0x148e5d(0x43e)][_0x148e5d(0x3e8)](_0x5915db=>{const _0x2b626c=_0x148e5d;let _0x326445=_0x5f02e6();return _0x2e903a[_0x2b626c(0x205)](_0x5915db,_0x326445),_0x326445;})),{..._0x180a95,'id':_0x455ccf['id'],'name':_0x455ccf[_0x148e5d(0x39a)],'records':_0x4fc93c?_0x180a95['records']:{},'recordOrder':_0x4fc93c?_0x180a95['recordOrder']:[],'rowIndex':_0x4fc93c?_0x180a95[_0x148e5d(0x2cd)]:{},'rowId':_0x4fc93c?_0x180a95[_0x148e5d(0x565)]:{},'cellData':_0x4fc93c?_0x180a95[_0x148e5d(0x2b7)]:{},'resources':_0x4fc93c?_0x180a95[_0x148e5d(0x358)]:{},'viewOrder':_0xb270fe,'views':Object[_0x148e5d(0x2c2)](Object['entries'](_0x180a95[_0x148e5d(0x460)]??{})[_0x148e5d(0x3e8)](([_0x21b28a,_0x9c6cf3])=>{const _0x59d504=_0x148e5d;let _0x5cbf0d=_0x2e903a[_0x59d504(0x4d5)](_0x21b28a)??(_0x455ccf[_0x59d504(0x415)]?_0x5f02e6():_0x21b28a);return[_0x5cbf0d,{..._0x9c6cf3,'id':_0x5cbf0d,'tableId':_0x455ccf['id']}];}))};}var js='@univerjs-pro/bases',Ms=_0x4e7c38(0x50d);const Ns={},Ps={};function Fs(_0x54adaa){const _0x108e70=_0x4e7c38;return new z()[_0x108e70(0x4c7)](_0x54adaa);}function Is(_0x41c46b){const _0x144a43=_0x4e7c38;return _0x41c46b[_0x144a43(0x3a6)][_0x144a43(0x3e8)](_0x5a6e11=>({'unitId':_0x41c46b[_0x144a43(0x423)],'sheetId':_0x41c46b['tableId'],'range':{'startRow':_0x5a6e11['row'],'endRow':_0x5a6e11['row'],'startColumn':_0x5a6e11[_0x144a43(0x444)],'endColumn':_0x5a6e11[_0x144a43(0x444)]}}));}function Ls(_0x5a6064,_0x540496){const _0x15e1eb=_0x4e7c38;return{[_0x5a6064]:Object['fromEntries'](_0x540496[_0x15e1eb(0x3e8)](_0x4259c6=>[_0x4259c6,'1']))};}let Rs=class extends _0x3aec08{constructor(_0x82a2bf,_0xb6a346){const _0x591447=_0x4e7c38;super(),this['_activeDirtyManagerService']=_0x82a2bf,this[_0x591447(0x3b8)]=_0xb6a346,this[_0x591447(0x3a1)]();}[_0x4e7c38(0x3a1)](){const _0x26e351=_0x4e7c38;this[_0x26e351(0x3a2)]['register'](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x86dc0=>this[_0x26e351(0x3f8)](_0x86dc0[_0x26e351(0x3eb)])}),this[_0x26e351(0x533)](_0x3e2bb5(()=>{const _0x3889b3=_0x26e351;this[_0x3889b3(0x3a2)][_0x3889b3(0x4ae)](Q['id']);}));}[_0x4e7c38(0x23c)](_0xd34286,_0x45a18b){const _0x452632=_0x4e7c38;let _0x584735=this[_0x452632(0x3b8)]['getUnit'](_0xd34286,_0x2eb623[_0x452632(0x583)]);return(_0x584735==null?void 0x0:_0x584735[_0x452632(0x2a7)]()[_0x452632(0x29e)][_0x45a18b])??null;}[_0x4e7c38(0x3f8)](_0x1b70e2){const _0x42edef=_0x4e7c38;if(_0x1b70e2['trigger']===_0x42edef(0x3fc))return{};if(!_0x1b70e2['unitId']||!_0x1b70e2['op'])return{'clearDependencyTreeCache':this[_0x42edef(0x308)](),'forceCalculation':!0x0};let _0x419dc1=Fs(_0x1b70e2['op']),_0x3c88b5=this[_0x42edef(0x38e)](_0x1b70e2[_0x42edef(0x423)],_0x419dc1);if(_0x3c88b5[_0x42edef(0x2b6)])return{'clearDependencyTreeCache':Ls(_0x1b70e2['unitId'],_0x3c88b5),'forceCalculation':!0x0};let _0x2d1a52=Object['entries'](this[_0x42edef(0x23e)](_0x1b70e2[_0x42edef(0x423)],_0x419dc1))[_0x42edef(0x470)](([_0x19010a,_0xaaeeef])=>Is({'unitId':_0x1b70e2['unitId'],'tableId':_0x19010a,'patches':_0xaaeeef}));return _0x2d1a52[_0x42edef(0x2b6)]?{'dirtyRanges':_0x2d1a52}:{};}['_getStructureDirtyTableIds'](_0x5261d2,_0x3dc10d){const _0x321f78=_0x4e7c38;let _0x483d4d=_0x3dc10d['filter'](_0xbe4348=>_0xbe4348[_0x321f78(0x3be)]!==_0x321f78(0x2c9))[_0x321f78(0x470)](_0xdfb9a5=>_0xdfb9a5[_0x321f78(0x2cc)]?[_0xdfb9a5['tableId']]:this['_getAllTableIds'](_0x5261d2));return Array[_0x321f78(0x501)](new Set(_0x483d4d));}['_groupCellInvalidations'](_0x187605,_0x28919d){const _0x245ff4=_0x4e7c38;let _0x7cb816=new Set();return _0x28919d[_0x245ff4(0x54c)]((_0x1d57ae,_0x1387b0)=>{const _0x2fe6c5=_0x245ff4;let _0x12b62f=this[_0x2fe6c5(0x506)](_0x187605,_0x1387b0);if(!_0x12b62f)return _0x1d57ae;let _0x3114af=_0x1387b0[_0x2fe6c5(0x2cc)]+':'+_0x12b62f[_0x2fe6c5(0x505)]+':'+_0x12b62f[_0x2fe6c5(0x444)];return _0x7cb816[_0x2fe6c5(0x4d6)](_0x3114af)?_0x1d57ae:(_0x7cb816['add'](_0x3114af),_0x1d57ae[_0x1387b0[_0x2fe6c5(0x2cc)]]=_0x1d57ae[_0x1387b0[_0x2fe6c5(0x2cc)]]??[],_0x1d57ae[_0x1387b0[_0x2fe6c5(0x2cc)]]['push'](_0x12b62f),_0x1d57ae);},{});}['_toDirtyRangePatch'](_0x195c50,_0x48bbad){const _0x1b6e2b=_0x4e7c38;if(_0x48bbad[_0x1b6e2b(0x3be)]!==_0x1b6e2b(0x2c9))return null;if(_0x48bbad[_0x1b6e2b(0x505)]!=null&&_0x48bbad[_0x1b6e2b(0x50c)]!=null)return{'row':_0x48bbad[_0x1b6e2b(0x505)],'col':_0x48bbad[_0x1b6e2b(0x50c)],'value':null};if(!_0x48bbad[_0x1b6e2b(0x394)]||!_0x48bbad[_0x1b6e2b(0x446)])return null;let _0x464630=this['_getTable'](_0x195c50,_0x48bbad[_0x1b6e2b(0x2cc)]);if(!_0x464630)return null;let _0x5ad433=_t(_0x464630,_0x48bbad[_0x1b6e2b(0x394)],_0x48bbad[_0x1b6e2b(0x446)]);return _0x5ad433?{'row':_0x5ad433[_0x1b6e2b(0x505)],'col':_0x5ad433[_0x1b6e2b(0x444)],'value':null}:null;}['_getAllTableIds'](_0x495cf0){const _0x2ca108=_0x4e7c38;let _0x23ae2f=this[_0x2ca108(0x3b8)][_0x2ca108(0x34e)](_0x495cf0,_0x2eb623[_0x2ca108(0x583)]);return Object[_0x2ca108(0x4c0)]((_0x23ae2f==null?void 0x0:_0x23ae2f[_0x2ca108(0x2a7)]()[_0x2ca108(0x29e)])??{})[_0x2ca108(0x3e8)](_0x406f8b=>_0x406f8b['id']);}[_0x4e7c38(0x308)](){const _0x5bcf87=_0x4e7c38;let _0x7a7954=this[_0x5bcf87(0x3b8)][_0x5bcf87(0x281)](_0x2eb623[_0x5bcf87(0x583)])[_0x5bcf87(0x3e8)](_0x14c05c=>Ls(_0x14c05c[_0x5bcf87(0x49c)](),Object['keys'](_0x14c05c[_0x5bcf87(0x2a7)]()['tables'])));return Object[_0x5bcf87(0x294)]({},..._0x7a7954);}};Rs=X([Y(0x0,_0x41320a),Y(0x1,_0x26755d)],Rs);let zs=class extends _0x3aec08{constructor(_0x4956ea,_0x492ca1,_0x40c00d,_0x141e80){const _0x2768ef=_0x4e7c38;super(),this['_commandService']=_0x4956ea,this[_0x2768ef(0x3b8)]=_0x492ca1,this[_0x2768ef(0x3cb)]=_0x40c00d,this[_0x2768ef(0x36d)]=_0x141e80,G(this,_0x2768ef(0x385),new Xi()),G(this,_0x2768ef(0x57e),new Map()),G(this,'_scheduledSuperTableSyncs',new Set()),G(this,_0x2768ef(0x581),Promise[_0x2768ef(0x514)]()),G(this,_0x2768ef(0x32d),!0x1),this[_0x2768ef(0x3a1)]();}[_0x4e7c38(0x3a1)](){const _0x4228e7=_0x4e7c38;this[_0x4228e7(0x3b8)][_0x4228e7(0x281)](_0x2eb623['UNIVER_BASE'])[_0x4228e7(0x397)](_0x14c5fa=>{const _0x13994b=_0x4228e7;this[_0x13994b(0x284)](_0x14c5fa);}),this[_0x4228e7(0x533)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2eb623[_0x4228e7(0x583)])['subscribe'](({unit:_0x4d1e30})=>{const _0x123271=_0x4228e7;this[_0x123271(0x284)](_0x4d1e30);})),this[_0x4228e7(0x533)](this['_univerInstanceService'][_0x4228e7(0x1f8)](_0x2eb623[_0x4228e7(0x583)])[_0x4228e7(0x4ce)](_0x4ad126=>{const _0x559551=_0x4228e7;this['_enqueueFormulaSync'](()=>this[_0x559551(0x292)](_0x4ad126['getUnitId']()));})),this[_0x4228e7(0x533)](this[_0x4228e7(0x320)][_0x4228e7(0x257)](_0xb862bd=>this[_0x4228e7(0x2a2)](_0xb862bd)));}[_0x4e7c38(0x2a2)](_0xec8554){const _0x5cf573=_0x4e7c38;if(_0xec8554['id']===_0x792ef3['id']){Vs(_0xec8554['params'])&&this[_0x5cf573(0x1c1)](_0xec8554['params']);return;}if(this[_0x5cf573(0x32d)]||_0xec8554['id']!==Q['id'])return;let _0x44c964=Bs(_0xec8554[_0x5cf573(0x3eb)])?_0xec8554[_0x5cf573(0x3eb)]:void 0x0,_0x2d1574=_0x44c964!=null&&_0x44c964['unitId']?[this['_univerInstanceService'][_0x5cf573(0x34e)](_0x44c964[_0x5cf573(0x423)],_0x2eb623[_0x5cf573(0x583)])]['filter'](_0x1d4251=>!!_0x1d4251):this[_0x5cf573(0x3b8)][_0x5cf573(0x281)](_0x2eb623[_0x5cf573(0x583)]),_0x4b2262=_0x44c964==null?void 0x0:_0x44c964['op'];_0x2d1574[_0x5cf573(0x397)](_0x1441b2=>{const _0x5a101a=_0x5cf573;let _0x1ffbe9=_0x4b2262?Fs(_0x4b2262):[];(!_0x4b2262||_0x1ffbe9[_0x5a101a(0x48e)](_0x34acd8=>_0x34acd8[_0x5a101a(0x3be)]!==_0x5a101a(0x2c9)))&&this[_0x5a101a(0x284)](_0x1441b2);});}[_0x4e7c38(0x284)](_0x46779a){const _0x409243=_0x4e7c38;let _0x3d2345=_0x46779a[_0x409243(0x49c)]();this['_scheduledSuperTableSyncs'][_0x409243(0x4d6)](_0x3d2345)||(this[_0x409243(0x35c)][_0x409243(0x290)](_0x3d2345),this[_0x409243(0x225)](async()=>{const _0x32ae46=_0x409243;this[_0x32ae46(0x35c)]['delete'](_0x3d2345),await this['_syncSuperTables'](_0x46779a);}));}async[_0x4e7c38(0x54f)](_0x560bb9){const _0x191749=_0x4e7c38;let _0x40ac7b=_0x560bb9['getUnitId'](),_0x501ea2=this[_0x191749(0x385)][_0x191749(0x1e0)](_0x560bb9[_0x191749(0x2a7)]()),_0x23f24d=new Set(_0x501ea2['map'](({tableName:_0x4928d5})=>_0x4928d5)),_0x5bae73=this[_0x191749(0x57e)]['get'](_0x40ac7b)??new Set();for(let _0x5e8b6f of _0x5bae73)if(!_0x23f24d[_0x191749(0x4d6)](_0x5e8b6f)&&!await this[_0x191749(0x52a)](_0x45b52e['id'],{'unitId':_0x40ac7b,'tableName':_0x5e8b6f}))return;for(let {tableName:_0x578435,reference:_0x4de403}of _0x501ea2)if(!await this[_0x191749(0x52a)](_0xffecb3['id'],{'unitId':_0x40ac7b,'tableName':_0x578435,'reference':_0x4de403}))return;this[_0x191749(0x57e)][_0x191749(0x205)](_0x40ac7b,_0x23f24d);}async[_0x4e7c38(0x292)](_0x207781){const _0x5b4f74=_0x4e7c38;let _0x9f1ca8=this[_0x5b4f74(0x57e)][_0x5b4f74(0x4d5)](_0x207781)??new Set();for(let _0x5d853f of _0x9f1ca8)if(!await this['_executeSuperTableMutationWhileActive'](_0x45b52e['id'],{'unitId':_0x207781,'tableName':_0x5d853f}))return;this[_0x5b4f74(0x57e)][_0x5b4f74(0x57a)](_0x207781);}async[_0x4e7c38(0x52a)](_0x594f0f,_0x396470){const _0x94d4fd=_0x4e7c38;return!this[_0x94d4fd(0x247)]&&await this[_0x94d4fd(0x320)][_0x94d4fd(0x3c3)](_0x594f0f,_0x396470,{'onlyLocal':!0x0})&&!this['_disposed'];}['_enqueueFormulaSync'](_0x298f88){const _0x2faf02=_0x4e7c38;this[_0x2faf02(0x581)]=this[_0x2faf02(0x581)][_0x2faf02(0x4b4)](_0x298f88,_0x298f88)['catch'](()=>void 0x0);}[_0x4e7c38(0x1c1)](_0x395fa9){const _0x158127=_0x4e7c38;let _0x5dbba5=this['_univerInstanceService']['getAllUnitsForType'](_0x2eb623[_0x158127(0x583)]);if(!_0x5dbba5[_0x158127(0x48e)](_0x19c877=>{const _0x584c05=_0x158127;var _0x58d6f6;return((_0x58d6f6=_0x395fa9[_0x584c05(0x3fd)])==null?void 0x0:_0x58d6f6[_0x19c877[_0x584c05(0x49c)]()])!=null;}))return;let _0x232958=_0x5dbba5[_0x158127(0x470)](_0x4a0c92=>Zi(_0x4a0c92[_0x158127(0x2a7)](),_0x395fa9));if(!_0x232958[_0x158127(0x2b6)]){this[_0x158127(0x36d)][_0x158127(0x440)](_0x239f3c[_0x158127(0x27a)],_0x395fa9);return;}let _0x1912e8=new W(),_0x19d5fd=_0x232958[_0x158127(0x470)](_0x47afbb=>Is({'unitId':_0x47afbb[_0x158127(0x423)],'tableId':_0x47afbb['tableId'],'patches':_0x47afbb['patches']}));this[_0x158127(0x32d)]=!0x0,(async()=>{const _0x514459=_0x158127;for(let _0x1d6e09 of _0x232958){let _0x561f43=this['_univerInstanceService'][_0x514459(0x34e)](_0x1d6e09[_0x514459(0x423)],_0x2eb623[_0x514459(0x583)]);_0x561f43&&await this[_0x514459(0x320)][_0x514459(0x3c3)](Q['id'],{'unitId':_0x1d6e09[_0x514459(0x423)],'op':_0x1912e8[_0x514459(0x4e5)](_0x561f43['getSnapshot'](),_0x1d6e09[_0x514459(0x2cc)],_0x1d6e09[_0x514459(0x3a6)]),'trigger':_0x792ef3['id']},{'onlyLocal':!0x0});}await this[_0x514459(0x320)]['executeCommand'](_0x42598a['id'],{'dirtyRanges':_0x19d5fd},{'onlyLocal':!0x0});})()[_0x158127(0x4f7)](()=>{const _0x4f3110=_0x158127;this[_0x4f3110(0x32d)]=!0x1,this['_formulaCalculationSessionService'][_0x4f3110(0x440)](_0x239f3c[_0x4f3110(0x27a)],_0x395fa9);});}};zs=X([Y(0x0,_0x5342d9),Y(0x1,_0x26755d),Y(0x2,_0x4562a7(_0x311f7f)),Y(0x3,_0x4562a7(_0x16c3a6))],zs);function Bs(_0x113de3){const _0x330974=_0x4e7c38;return typeof _0x113de3==_0x330974(0x3d3)&&!!_0x113de3&&'unitId'in _0x113de3&&typeof _0x113de3[_0x330974(0x423)]==_0x330974(0x457)&&'op'in _0x113de3&&Array[_0x330974(0x56b)](_0x113de3['op']);}function Vs(_0x490769){const _0x113273=_0x4e7c38;return typeof _0x490769==_0x113273(0x3d3)&&!!_0x490769&&_0x113273(0x3fd)in _0x490769&&_0x113273(0x3de)in _0x490769;}function _0x7f2c(){const _0x24a704=['fromChangeset','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','option-','includeTime','h24','isNot','description','getItem','facade','editCell','\x22\x20does\x20not\x20exist.','childType','getCurrentUser','relationRole','getTypePlugin','check','remove','updatedBy','[BaseFormula]:\x20table\x20\x22','useThousands','\x22.\x20Allowed\x20operators:\x20','_viewRowsCacheKey','then','BaseProjection.filterAndSortRows','getAll','base.command.set-base-table-hierarchy-field','_registerUnitPermissionPoints','duplicateRecord','diffValue','invalidGanttStartField','symbol','tomorrow','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_projectedGroupsCache','values','base.command.move-base-view','createRecord','_resolveGalleryCardFieldIds','_createNumberingFieldValuePatches','RecordId','operator','getAffectedRanges','unitWidth','setViewFieldOrder','afterViewId','_projectFields','True','frozenFieldCount','subscribe','base.command.update-base-kanban-config','_cellInvalidationsTouchFields','commaPeriod','base.viewType.gantt','isEmpty','base.viewType.gallery','get','has','mode','_cellInvalidations','_tableBaseIds','_createNumberingAllocators','2907036LsGktP','fieldOrder','setViewFieldWidth','value','next30','embedId','weekdays','resolvedOptions','CreateView','_buildCalendar','setRangeValues','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','none','bases.remote.config','getUTCDay','Comment','UpdatedAt','pattern','_groupsCacheKey','getCurrentUserId','createdBy','base.command.create-base-field','repairViewConfig','_normalizeCalendarDisplayColor','base.command.duplicate-base-record','rule','LESS_THAN','finally','Person','selfParent','collaborators','_resolveKanbanGroupFieldId','BaseProjection.projectTableRows','createField','version','yyyy/mm/dd','coverFieldId','from','entries','ruleId','average','row','_toDirtyRangePatch','_initCommands','Failed\x20to\x20create\x20update\x20cell\x20operation:','error','base.command.set-base-view-group','colIndex','column','1.0.0','join','defineProperty','base.command.set-base-view-field-visible','base-range-values-v1','colId','_ganttBarColor','resolve','setRules','pickerFieldIds','exact','optionSource',',,\x22M\x22','canEditField','record','usableAsCardCover','_check','base.command.update-base-field','progressFieldId','BaseJson1.normalizeTables','createBase','[BaseCommandService]:\x20cannot\x20create\x20record.','_resolveCardTitleFieldId','onlyLocal','contains','undefined','[BaseCommandService]:\x20cannot\x20create\x20table.','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','Cycle','_executeSuperTableMutationWhileActive','canEditTable','General','recordOrder','_findKanbanGroupField','#BBF7D0','\x20cannot\x20use\x20operator\x20\x22','fields','rules','disposeWithMe','path','BaseJson1.json1Apply','createRecords','Uncategorized','cardSize','_kanbanLaneTitle','_projectHierarchyGroups','MMM\x20D,\x20YYYY','[BaseCommandService]:\x20cannot\x20delete\x20field.','replaceOp','sortedView','compress','createDefaultConfig','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','base.command.set-base-view-sort','columnSettings','round','rowIndexById','forValue','base.resource.service','quarter','_globalRevision','[BaseCommandService]:\x20cannot\x20create\x20field.','_deleteRecordsBaseOp','reduce','majorHeaders','base.command.service','_syncSuperTables','BASE_OBJECT_PERMISSION_PLUGIN','_configService','getInstance','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','config','renameFormulaUnitReferences','normal','blue','base.mutation.set-permission-rule','past30','userID','label','usableAsCalendarDate','default','Date','_projectGroups','deepClone','result','createView','scale','month','rowId','base.field-registry.service','descend','fieldSettings','large','_buildGallery','isArray','FORCE_STRING','endsWith','_instanceService','projection','info','Grid','attachmentSets','general','invalid','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','medium','deleteRecord','_sortRows','getFullYear','delete','canDeleteTable','_withModifiedSystemValues','base.command.ensure-base-temporal-view-date-fields','_registeredSuperTableNames','_normalizeCellValue','kind','_formulaSyncQueue','localeCompare','UNIVER_BASE','_resolveCalendarDateFieldId','_buildGantt','_cellRevisions','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_resolveKanbanCoverFieldId','repeat','setRecordValues','Date1900','validate','Doing','createUpdateCellOp','base.viewType.grid','measure','_applyFormulaResult','createTable','Link','Group','find','percent','fieldIds','exec','en-US','_getCachedProjection','score','7448049wupgne','CreatedBy','createSuperTableReference','import','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','base.viewType.calendar','_materializeFormulaTableNames','[DeleteBaseTableCommand]:\x20table\x20\x22','UTC','Delete','_canUseFastSort','editable','depth','tableName','mark','afterFieldId','year','[BasePerf]\x20','Base','order','getSuperTableRegistrations','numfmt','Checkbox','lastIndexOf','childrenByParentId','sum','getPermissionPoint','direction','titleFieldId','toLowerCase','\x20permission\x20denied.','MultiSelect','setBaseName','INIT','workingDaysOnly','4227410vAaHhy','Empty','_rowTransformCacheSegment','action','_fieldPermissions','owner','\x20has\x20unsupported\x20operator\x20\x22','every','canManageView','getTypeOfUnitDisposed$','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','_deleteAttachmentResources','_kanbanGroupKeys','[BaseField]:\x20invalid\x20person\x20value.',':start','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','base.command.batch-create-base-records','getMonth','subtreeHeightByRecordId','base.command.move-base-field','#,##0.00','renameTable','set','_setCachedProjection','Unsupported\x20Base\x20permission\x20action:\x20','invalidateByOp','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','getBase','function','indexOf','_factory','allowNegative','filter','subtreeEndIndex','source','replace','base.command.set-base-view-filter','_buildKanban','delete-view','base.mutation.apply-base-json1','base.mutation.','min','dependencyFieldId','fieldName','_getKanbanConfiguredLanes','cardLayout','Set','changed','_fieldRegistry','parse','selectField',',,,\x22B\x22','write','_tablePermissions','_enqueueFormulaSync','Gallery','base.command.delete-base-field','canEditCell','_getTableRevision','manual','base.command.create-base-record','toPrimitive','_normalizeGalleryConfig','33iiizyi','working','index','size','Table','Name','setRule','_getViewRevision','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','redo','161200oTmEOp','_injector','[BaseFormula]:\x20table\x20does\x20not\x20exist.','Base\x20','_getTable','RecordLink','_groupCellInvalidations','rootRecordIds','thread-comment.command.','_tableRevisions','Number','_projectRows','__tempBatchingUndoRedo','Ids','options','_disposed','fromPlainText','all','YYYY-MM-DD','clearBasePermission','orderKey','_setObjectEdit','_isAllowedKanbanGroupField','createDeleteRecordsUndoOp','duplicate','dispose','Email','\x20must\x20have\x20a\x20non-empty\x20id.','_isGanttDateField','_viewPermissions','NUMBER','onCommandExecuted','today','descendPath','#,##0','[BaseField]:\x20invalid\x20date\x20value.','https://','table/','h12','_canEdit','pushUndoRedo','base.view-registry.service','viewIndexes','COLUMN','_syncBaseUnit','max','sort','policy','invalidGanttEndField','splice','_isKanbanGroupField','_resolveKanbanCardFieldIds','Formula','system','YYYY/MM/DD','invalidDateField','clearViewPermission','hostAnchorId','oldParentRecordId','CONTAINS','recordCount','_applier','setViewFilter','invalidateByView','307294RUfvsl','attachment-','BASE','_getSystemFieldValue','invalidateByCell','\x20must\x20be\x20an\x20object.','register','invertOp','-record-','getAllUnitsForType','decimal','off','_scheduleSuperTableSync','clearUnit','orderedRecordIds','tableRevision','__base_hierarchy_parent__','getStructuredDependencies','createCreateRecordOp','baseRows','clearTablePermission','bases.fieldConfig.textPlaceholder','Remote','_projectedViewRowsCache','add','_basePermissions','_removeSuperTables','[BaseField]:\x20invalid\x20progress\x20value.','assign','showTodayLine','_normalizeGanttConfig','#3b82f6','_plugins','displayColor','displayFieldId','BaseField','_T_','Export','tables','valid','_clearObjectEdit','getUTCMonth','_onCommandExecuted','syncUnit','title','at\x20index\x20','create-view','getSnapshot','defaultValue','IS_NOT','view','nodes','BaseCommand.createBatchCreateRecordsOp','_getCurrentUserId','lastWeek','stringify','dashboard/','start','clear','user','[BaseField]:\x20invalid\x20checkbox\x20value.','pop','length','cellData','DD/MM/YYYY','[BaseFormula]:\x20field\x20\x22','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','text','canEditRecord','_title','_groupConfigCacheSegment','groupFieldId','Done','updateRecordOrder','fromEntries','unshift','IS_NOT_EMPTY','_findCalendarDateFieldId','save','\x22\x20with\x20field\x20type\x20\x22','conjunction','cell','setViewGroup','conditional','tableId','rowIndex','getCurrentUnitOfType','formulaName','usableAsGanttStart','records','children','url','exceptions','registerCommand','MM-DD','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','thisMonth','_runtimeContext','-field-name','_resolveGanttDateFieldId','_getHierarchyIndex','clearRecordPermission','revision','registerSyncingMutations','IS_EMPTY','workingDays','createDefaultValue','empty','AFTER','small','separatorStyle','setViewFieldVisible','base.permission.service','setPoint','lessThan','invalidateByField','BOOLEAN','_setAttachmentResources','_initRegistries','_initDependencies','getUTCFullYear','_groupProjectionFieldIds','renameView','strategies','_rememberTable','[BaseCommandService]:\x20cannot\x20edit\x20cell.','1zmxURg','prototype','todo','FieldId','invalidReasonByRecordId','base.command.set-base-view-field-order','canCreateField','startDateFieldId','base.fieldType.','rows','operand','_isCalendarDateField','getOwnPropertyDescriptor','_setViewFieldSetting','long','allowMultiple','_baseSyncDisposables','_isAllDayCalendarEvent','_getAllBaseDependencyTreeCacheMap','updateField','IBaseCellData.ensureTableCellLayout','type','canCreateTable','createUnit','[BaseCommandService]:\x20record-id\x20is\x20reserved.','$1\x20','missingRecord','_patchCachedProjectedRows','_viewRevisions','lessThanOrEqual','isInteger','createRegExpFromSafeFragment','_createSystemFieldValuePatches','dateFormat','view/','Edit','SelfParent','ascend','local','href','isValid','_projectTableRows','_commandService','Start\x20date','[BaseCommandService]:\x20field\x20\x22','leftPaneWidth','MUTATION','createBatchCreateRecordsOp','search','timeslotSize','base.command.set-base-kanban-group-field','STRING','[BaseField]:\x20invalid\x20email\x20value.','getTime','recordNamePrefix','_applyingFormulaResults','now','base.command.move-base-hierarchy-record','_createNumberingAllocator','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','hidden','custom','Base\x20edit\x20permission\x20denied.','onReady','childUnitId','getUTCDate','isFinite','readonly','Rating','[BaseField]:\x20invalid\x20multi-value\x20reference.','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','viewRevision','short','BaseProjection.getProjection','key','unique','Unsupported\x20Base\x20permission\x20object:\x20','registerView','updateCell','level','doing','[BaseCommandService]:\x20cannot\x20edit\x20table.','applyOp','card','viewId','BaseProjection.projectRows','Numbering','toFixed','getUnit','currencySymbol','decimalPlaces','view-','apostrophe','invalidGroupField','_dataSyncPrimaryController','[RecordLink]:\x20field\x20config\x20is\x20invalid.','compose','usableAsGanttEnd','resources','bases.config','edit','#FDE68A','_scheduledSuperTableSyncs','_viewRevisionKey','past7','HH:mm','_apply','boolean','getDependencies','[BaseHierarchy]:\x20','BASES_PLUGIN','toPlainText','focusUnit','4294200RxlzCl','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).','endDateFieldId','__all__','deleteTable','decorate','_formulaCalculationSessionService','InvalidField','changeFieldType','_cacheKey','_getCellRevision','setFieldPermission','_createRecordWithDefaults','setViewSort','depthByRecordId','searchTexts','_permissionService','\x20has\x20unsupported\x20date\x20mode\x20\x22','protocol','includes','notContains','_filterSortFieldIds','moveField','\x22\x20is\x20not\x20registered.','registerCtorForType','field','calendar','maxDepth','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','toLocaleString','_formulaService','call','changes','Checked','Attachment','week','gantt','cycle','SingleSelect','_getStructureDirtyTableIds','tableOrder','compare','_kanbanLaneColor','unknown','base.command.batch-delete-base-records','recordId','NumberFormat','hasOwnProperty','forEach','validateFormula','base-perf-','name','[BaseViewRegistryService]:\x20view\x20type\x20\x22','canCreateRecord','Add','_recordPermissions','allowDangling','true','_initialize','_activeDirtyManagerService','Progress','BaseView','base.command.delete-base-view','patches','False','dateMode','Calendar','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','canDeleteRecord','gridViewId','recordIds','spacePeriod','filled','_capabilities','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','group','false','setViewPermission','Copy','before','bases-exchange-client.operation.export-base-by-format','_univerInstanceService','targetTableId','data','base.command.delete-base-record','attachmentSet','members','reason','getCapabilities','UpdatedBy','deleteField','hierarchy','executeCommand','removeOp','startsWith','_recordIds','Parent','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','count','keys','_formulaCalculationTriggerService','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','\x20has\x20unsupported\x20target\x20\x22','_filterRows','_bumpTableRevision','_initDataSync','thisWeek','spaceComma','object','flat','CreatedAt',',\x22K\x22','56gJGwXG','updatedAt','UNIVER_EMBED_BASES_TABLE','#BFDBFE','[BaseField]:\x20invalid\x20number\x20value.','limit','BaseProjection.projectGroups','unitOtherData','parentFieldName','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','https:','push','duplicateField','updateViewConfig','codePointAt','Clear','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','map','locale','[BaseHierarchy]:\x20field\x20\x22','params','_getTablesToNormalize','parentByRecordId','date','undo','Choose\x20another\x20name.','deleteView','getAllBases','createSetRecordValuesOp','ena','width','pluginName','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','_getJson1DirtyData','base.command.update-base-record-order','attachments','[BaseProjectionService]:\x20missing\x20view\x20\x22','formula.mutation.set-formula-calculation-result','unitData','MaxDepth','Invalid\x20object\x20permission\x20batch.','snapshot','invalidField','abs','missingField','setBasePermission','fld-','_resolveGalleryCoverFieldId','setHours','[BaseCommandService]:\x20invalid\x20cell\x20value.','beforeFieldId','groups','#14b8a6','Undo','BaseRecord','Currency','_setFormulaFieldCells','[BaseField]:\x20invalid\x20rating\x20value.','setSnapshot','[BaseField]:\x20invalid\x20phone\x20value.','multiple','DESC','regenerateViewIds','BaseDashboard','objectType','getDay','base.command.update-base-field-description','end','getTypeOfUnitAdded$','base.command.delete-base-table','Import','_assertFieldDefinition','required','base.command.update-base-view-conditional-color-rules','_getOrderedRecords','Working\x20day','unitId','base.command.change-base-field-type','after','major-','[RecordLink]:\x20target\x20record\x20\x22','MissingRecord','base.command.rename-base-view','this-row','displayText','trim','createCreateFieldOp','showFieldNames','createdAt','columns','status','[RecordLink]:\x20display\x20field\x20\x22','beforeCommandExecuted','periodComma','[BaseCommandService]:\x20cannot\x20edit\x20record.','_projectedRowsCache','formatToParts','table','BaseTable','number','abbreviation','_isColorfulKanbanGroupField','trigger','viewOrder','cellRevision','markResultApplied','addPermissionPoint','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','_resolveBaseId','col','Phone','fieldId','getProjection','thumbnail','_calendarEventColor','Status','parentRecordId','_projectionCache','target','formula','h:mm\x20a','canDeleteField','Gantt','base-snapshot-v1','setConfig','done','format',':end','string','_createRecordOrderOp','saveMany','_replaceOptional','_config','_normalizeCalendarConfig','insertOp','_patchProjectedRowsForCellInvalidations','manageView','views','query','_isAllDayGanttDateRange','test','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','hourCycle','Kanban','base.command.set-permissions','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','timeZone','BaseHierarchyError','NOT_CONTAINS','[BaseCommandService]:\x20cannot\x20manage\x20view.','[BaseCommandService]:\x20cannot\x20edit\x20field.','Text','attachment','flatMap','colorFieldId','_materializeGroups','beforeViewId','base-perf','subType','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','conditions','base.command.update-base-cell','slice','split','COMMAND','_normalizeGanttDisplayColor','globalRevision','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','1575870dzBGAJ','color','GREATER_THAN','Redo','BEFORE','record/','lastIndex','BaseProjection.materializeTableRows','_fastSortRows','kanban','raw','_canEditTable','objectId','#16a34a','primaryFieldId','some','deleteRecords','syncExecuteCommand','_buildGrid','_views','moveView','iterator','primaryFieldName','emitPermissionDenied','_hierarchyIndexCache','base.command.','MissingParent','A\x20table\x20with\x20this\x20name\x20already\x20exists.','base.command.set-base-range-values','getUnitId','3MDejXt'];_0x7f2c=function(){return _0x24a704;};return _0x7f2c();}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x3aec08{constructor(_0xc11035,_0x3c14b3,_0x4cc2ce,_0xce9f4){const _0xd70aae=_0x4e7c38;super(),this[_0xd70aae(0x239)]=_0xc11035,this[_0xd70aae(0x320)]=_0x3c14b3,this[_0xd70aae(0x377)]=_0x4cc2ce,this['_instanceService']=_0xce9f4,this[_0xd70aae(0x56e)][_0xd70aae(0x281)](_0x2eb623[_0xd70aae(0x583)])['forEach'](_0x782f1d=>this['_registerUnitPermissionPoints'](_0x782f1d[_0xd70aae(0x49c)]())),this['disposeWithMe'](this[_0xd70aae(0x56e)]['getTypeOfUnitAdded$'](_0x2eb623[_0xd70aae(0x583)])[_0xd70aae(0x4ce)](({unit:_0x538aee})=>this[_0xd70aae(0x4b8)](_0x538aee[_0xd70aae(0x49c)]()))),this[_0xd70aae(0x533)](this['_commandService'][_0xd70aae(0x433)]((_0x2c11f3,_0x1dbfe3)=>this[_0xd70aae(0x51d)](_0x2c11f3,_0x1dbfe3))),this[_0xd70aae(0x533)](this[_0xd70aae(0x56e)][_0xd70aae(0x1f8)](_0x2eb623[_0xd70aae(0x583)])[_0xd70aae(0x4ce)](_0x2435df=>{const _0x44b8b3=_0xd70aae;this[_0x44b8b3(0x239)][_0x44b8b3(0x4d5)](_0x3cfcfc)[_0x44b8b3(0x285)](_0x2435df[_0x44b8b3(0x49c)]()),Rr(this[_0x44b8b3(0x377)],_0x2435df[_0x44b8b3(0x49c)]());}));}[_0x4e7c38(0x4b8)](_0x3d3c27){const _0x4529bc=_0x4e7c38;Tr[_0x4529bc(0x397)](_0x34e2d5=>{const _0x26d2eb=_0x4529bc;let _0xd44c43=Pr(_0x3d3c27,_0x3d3c27,_0x34e2d5);this[_0x26d2eb(0x377)]['getPermissionPoint'](_0xd44c43['id'])||this[_0x26d2eb(0x377)][_0x26d2eb(0x441)](_0xd44c43);}),this['_injector'][_0x4529bc(0x4d5)](_0x3cfcfc)['initializeUnit']({'unitId':_0x3d3c27,'objectId':_0x3d3c27,'objectType':_0x3b454d['Base']});}[_0x4e7c38(0x51d)](_0x300e19,_0x115991){const _0x50a38b=_0x4e7c38;var _0x3458ba;if(_0x115991!=null&&_0x115991['fromCollab']||_0x115991!=null&&_0x115991[_0x50a38b(0x49e)])return;let _0x710242=tc(_0x300e19['params'])?_0x300e19[_0x50a38b(0x3eb)]:void 0x0;if(_0x115991!=null&&_0x115991[_0x50a38b(0x524)]&&_0x300e19['id']==='base.mutation.apply-base-json1'&&(_0x710242==null?void 0x0:_0x710242[_0x50a38b(0x43d)])===_0x792ef3['id'])return;let _0x5bac1e=Gs(_0x300e19['id']),_0x2103ae=Ws(_0x710242==null?void 0x0:_0x710242[_0x50a38b(0x423)],_0x115991)??(_0x5bac1e?(_0x3458ba=this[_0x50a38b(0x56e)][_0x50a38b(0x2ce)](_0x2eb623[_0x50a38b(0x583)]))==null?void 0x0:_0x3458ba[_0x50a38b(0x49c)]():void 0x0);if(!_0x2103ae||this[_0x50a38b(0x56e)]['getUnitType'](_0x2103ae)!==_0x2eb623['UNIVER_BASE'])return;if(_0x5bac1e){if(!Fr(this[_0x50a38b(0x377)],_0x2103ae,_0x2103ae,_0x5bac1e))throw this[_0x50a38b(0x239)][_0x50a38b(0x4d5)](_0x100489)[_0x50a38b(0x496)](_0x2103ae),new _0x1a12bd(_0x50a38b(0x23b)+_0x3ccddd[_0x5bac1e]+_0x50a38b(0x1ea));return;}if(Hs[_0x50a38b(0x4d6)](_0x300e19['id'])||!_0x300e19['id'][_0x50a38b(0x3c5)](_0x50a38b(0x498))&&!_0x300e19['id'][_0x50a38b(0x3c5)](_0x50a38b(0x217)))return;let _0x356feb=this[_0x50a38b(0x56e)][_0x50a38b(0x34e)](_0x2103ae,_0x2eb623[_0x50a38b(0x583)]),_0x3cac7b=_0x356feb?Ks(_0x356feb,_0x710242??{},_0x300e19['id']):[];if(!_0x356feb||!zr(this[_0x50a38b(0x377)],_0x2103ae,_0x3cac7b))throw this['_injector']['get'](_0x100489)['emitPermissionDenied'](_0x2103ae,_0x3cac7b),new _0x1a12bd(_0x50a38b(0x334));}};Us=X([Y(0x0,_0x4562a7(_0x53b1f5)),Y(0x1,_0x5342d9),Y(0x2,_0x1b4267),Y(0x3,_0x26755d)],Us);function Ws(_0x2474a8,_0x4533c9){const _0x170d61=_0x4e7c38;return typeof _0x2474a8==_0x170d61(0x457)?_0x2474a8:typeof(_0x4533c9==null?void 0x0:_0x4533c9[_0x170d61(0x423)])==_0x170d61(0x457)?_0x4533c9[_0x170d61(0x423)]:void 0x0;}function Gs(_0x46bd10){const _0x4e0879=_0x4e7c38;if(_0x46bd10==='bases-exchange-client.operation.export-base'||_0x46bd10===_0x4e0879(0x3b7))return _0x3ccddd['Export'];if(_0x46bd10['startsWith'](_0x4e0879(0x240))||_0x46bd10[_0x4e0879(0x3c5)]('thread-comment.mutation.'))return _0x3ccddd['Comment'];}function Ks(_0x168860,_0x4a9990,_0x1a2a53){const _0x2b0958=_0x4e7c38;if(_0x1a2a53===_0x2b0958(0x216)&&ec(_0x4a9990['op']))return qs(_0x168860,_0x4a9990['op']);let _0x3690f9=new Set(),_0x5b413e=Zs(_0x4a9990,'table'),_0x59d892=typeof _0x4a9990[_0x2b0958(0x2cc)]=='string'?_0x4a9990[_0x2b0958(0x2cc)]:_0x5b413e[0x0];if(_0x5b413e['forEach'](_0x3348e0=>_0x3690f9[_0x2b0958(0x290)](K(_0x3348e0))),!_0x59d892)return[..._0x3690f9];let _0x527ca6=_0x168860['getSnapshot']()[_0x2b0958(0x29e)][_0x59d892],_0x55fb69=new Set(Zs(_0x4a9990,_0x2b0958(0x380))),_0x5d7cb8=new Set(Zs(_0x4a9990,_0x2b0958(0x51b))),_0x43ea1c=new Set(Zs(_0x4a9990,_0x2b0958(0x2aa)));return Qs(_0x527ca6,_0x4a9990['patches'],_0x5d7cb8,_0x55fb69),$s(_0x4a9990,_0x55fb69),_0x55fb69[_0x2b0958(0x397)](_0x46077a=>_0x3690f9[_0x2b0958(0x290)](q(_0x59d892,_0x46077a))),_0x5d7cb8[_0x2b0958(0x397)](_0x4d8df9=>_0x3690f9[_0x2b0958(0x290)](J(_0x59d892,_0x4d8df9))),_0x43ea1c[_0x2b0958(0x397)](_0x569132=>_0x3690f9['add'](Mr(_0x59d892,_0x569132))),[..._0x3690f9];}function qs(_0x365109,_0x3aed3d){const _0x547bf9=_0x4e7c38;let _0x560723=_0x365109['getSnapshot'](),_0x2d69d4=new z()[_0x547bf9(0x4c7)](_0x3aed3d),_0x594c2a=Js(_0x3aed3d),_0x457c10=new Set();return _0x2d69d4[_0x547bf9(0x397)](_0x2fc8bd=>{const _0x3da2a5=_0x547bf9;var _0x2d4293,_0x532e3d;let {tableId:_0x13d474}=_0x2fc8bd;if(!_0x13d474)return;_0x457c10[_0x3da2a5(0x290)](K(_0x13d474));let _0x17bc57=_0x560723['tables'][_0x13d474],_0x52b3b3=_0x2fc8bd[_0x3da2a5(0x394)]??(_0x2fc8bd[_0x3da2a5(0x505)]==null||_0x17bc57==null||(_0x2d4293=_0x17bc57['rowId'])==null?void 0x0:_0x2d4293[_0x2fc8bd['row']]),_0x4abd03=_0x2fc8bd[_0x3da2a5(0x446)]??(_0x2fc8bd[_0x3da2a5(0x50c)]==null||_0x17bc57==null||(_0x532e3d=_0x17bc57['colId'])==null?void 0x0:_0x532e3d[_0x2fc8bd['column']]);_0x52b3b3&&_0x457c10[_0x3da2a5(0x290)](J(_0x13d474,_0x52b3b3)),_0x4abd03&&_0x457c10[_0x3da2a5(0x290)](q(_0x13d474,_0x4abd03)),_0x2fc8bd[_0x3da2a5(0x34a)]&&_0x457c10[_0x3da2a5(0x290)](Mr(_0x13d474,_0x2fc8bd[_0x3da2a5(0x34a)])),(_0x2fc8bd['reason']===_0x3da2a5(0x438)||_0x594c2a[_0x3da2a5(0x4d6)](_0x13d474))&&_0x17bc57&&(Object[_0x3da2a5(0x3ca)](_0x17bc57['fields'])[_0x3da2a5(0x397)](_0x2f1ab4=>_0x457c10[_0x3da2a5(0x290)](q(_0x13d474,_0x2f1ab4))),Object[_0x3da2a5(0x3ca)](_0x17bc57[_0x3da2a5(0x2d1)])[_0x3da2a5(0x397)](_0x3ffb86=>_0x457c10[_0x3da2a5(0x290)](J(_0x13d474,_0x3ffb86))),Object[_0x3da2a5(0x3ca)](_0x17bc57[_0x3da2a5(0x460)])[_0x3da2a5(0x397)](_0x4aa88d=>_0x457c10[_0x3da2a5(0x290)](Mr(_0x13d474,_0x4aa88d)))),_0x2fc8bd[_0x3da2a5(0x3be)]==='record'&&_0x17bc57&&Object[_0x3da2a5(0x3ca)](_0x17bc57[_0x3da2a5(0x531)])['forEach'](_0x42e00f=>_0x457c10['add'](q(_0x13d474,_0x42e00f)));}),_0x2d69d4[_0x547bf9(0x2b6)]===0x0&&Xs(_0x3aed3d,_0x547bf9(0x38f))&&Object[_0x547bf9(0x3ca)](_0x560723[_0x547bf9(0x29e)])[_0x547bf9(0x397)](_0x395dd5=>_0x457c10[_0x547bf9(0x290)](K(_0x395dd5))),[..._0x457c10];}function Js(_0x226b3c){let _0x3bee3a=new Set(),_0xda1830=_0x41e8d6=>{const _0x22aa12=_0x16bf;Array[_0x22aa12(0x56b)](_0x41e8d6)&&_0x41e8d6[_0x22aa12(0x397)]((_0x12eef7,_0x1768c7)=>{const _0x452a7e=_0x22aa12;_0x12eef7===_0x452a7e(0x29e)&&typeof _0x41e8d6[_0x1768c7+0x1]==_0x452a7e(0x457)&&Ys(_0x41e8d6[_0x1768c7+0x2])&&_0x3bee3a['add'](_0x41e8d6[_0x1768c7+0x1]),_0xda1830(_0x12eef7);});};return _0xda1830(_0x226b3c),_0x3bee3a;}function Ys(_0x398808){const _0x139bf7=_0x4e7c38;return!!_0x398808&&typeof _0x398808==_0x139bf7(0x3d3)&&!Array[_0x139bf7(0x56b)](_0x398808)&&('i'in _0x398808||'r'in _0x398808||'p'in _0x398808||'d'in _0x398808||'es'in _0x398808||'ena'in _0x398808||'et'in _0x398808);}function Xs(_0xd99b79,_0x14c14c){const _0xe739de=_0x4e7c38;return Array[_0xe739de(0x56b)](_0xd99b79)&&_0xd99b79['some'](_0x3322fa=>_0x3322fa===_0x14c14c||Xs(_0x3322fa,_0x14c14c));}function Zs(_0x19f7bf,_0x3e608d){const _0x4ba563=_0x4e7c38;let _0x3f23f7=new Set(),_0x2d73ef=_0x3e608d+'Id',_0x505f49=_0x3e608d+_0x4ba563(0x245),_0x22c010=(_0x4d5c5c,_0x28fe5c='')=>{const _0x488207=_0x4ba563;if(typeof _0x4d5c5c==_0x488207(0x457)){_0x28fe5c===_0x2d73ef&&_0x3f23f7[_0x488207(0x290)](_0x4d5c5c);return;}if(Array[_0x488207(0x56b)](_0x4d5c5c)){_0x28fe5c===_0x505f49?_0x4d5c5c['forEach'](_0x5201bb=>{typeof _0x5201bb=='string'&&_0x3f23f7['add'](_0x5201bb);}):_0x4d5c5c['forEach'](_0x236344=>_0x22c010(_0x236344,_0x28fe5c));return;}tc(_0x4d5c5c)&&Object[_0x488207(0x502)](_0x4d5c5c)['forEach'](([_0x3751fb,_0x4f294c])=>{_0x3751fb==='id'&&_0x28fe5c===_0x3e608d&&typeof _0x4f294c=='string'?_0x3f23f7['add'](_0x4f294c):_0x22c010(_0x4f294c,_0x3751fb);});};return _0x22c010(_0x19f7bf),[..._0x3f23f7];}function Qs(_0x132b8e,_0x3f9238,_0x70a010,_0x1b6ad8){_0x132b8e&&Array['isArray'](_0x3f9238)&&_0x3f9238['forEach'](_0x45785b=>{const _0x27e353=_0x16bf;if(!tc(_0x45785b))return;let _0x566d1d=_0x45785b;if(typeof _0x566d1d['row']==_0x27e353(0x43a)){var _0x537eed;let _0x3dd440=(_0x537eed=_0x132b8e[_0x27e353(0x565)])==null?void 0x0:_0x537eed[_0x566d1d[_0x27e353(0x505)]];_0x3dd440&&_0x70a010[_0x27e353(0x290)](_0x3dd440);}if(typeof _0x566d1d[_0x27e353(0x444)]==_0x27e353(0x43a)){var _0x19d6b8;let _0x200135=(_0x19d6b8=_0x132b8e[_0x27e353(0x512)])==null?void 0x0:_0x19d6b8[_0x566d1d['col']];_0x200135&&_0x1b6ad8[_0x27e353(0x290)](_0x200135);}});}function $s(_0x3fa013,_0x2e77be,_0x54f0d5=''){const _0x27f062=_0x4e7c38;if(_0x3fa013&&typeof _0x3fa013=='object'){if(Array[_0x27f062(0x56b)](_0x3fa013)){_0x3fa013['forEach'](_0x232542=>$s(_0x232542,_0x2e77be,_0x54f0d5));return;}tc(_0x3fa013)&&Object[_0x27f062(0x502)](_0x3fa013)['forEach'](([_0x427ad5,_0x1aaf0a])=>{const _0x3be1db=_0x27f062;_0x54f0d5===_0x3be1db(0x4c0)&&_0x2e77be[_0x3be1db(0x290)](_0x427ad5),$s(_0x1aaf0a,_0x2e77be,_0x427ad5);});}}function ec(_0xf13f97){const _0x4b6a4c=_0x4e7c38;return Array[_0x4b6a4c(0x56b)](_0xf13f97);}function tc(_0x18c1c5){const _0xab8c2=_0x4e7c38;return typeof _0x18c1c5==_0xab8c2(0x3d3)&&!!_0x18c1c5&&!Array['isArray'](_0x18c1c5);}const nc=_0x3c907b(_0x4e7c38(0x547));let rc=class{constructor(_0x5efb81){const _0x21dfd1=_0x4e7c38;this[_0x21dfd1(0x3b8)]=_0x5efb81;}[_0x4e7c38(0x20a)](_0x40f1c2){const _0x1ada46=_0x4e7c38;return this[_0x1ada46(0x3b8)][_0x1ada46(0x34e)](_0x40f1c2,_0x2eb623['UNIVER_BASE'])??null;}[_0x4e7c38(0x3f2)](){const _0x58bd0e=_0x4e7c38;return this[_0x58bd0e(0x3b8)]['getAllUnitsForType'](_0x2eb623[_0x58bd0e(0x583)]);}[_0x4e7c38(0x521)](_0x211263){const _0x3e4c18=_0x4e7c38;return this[_0x3e4c18(0x3b8)][_0x3e4c18(0x30d)](_0x2eb623[_0x3e4c18(0x583)],_0x211263);}};rc=X([Y(0x0,_0x26755d)],rc);const ic=_0x3c907b(_0x4e7c38(0x261));var ac=class extends _0x3aec08{constructor(..._0x5d1376){const _0xcc44a=_0x4e7c38;super(..._0x5d1376),G(this,_0xcc44a(0x298),new Map());}[_0x4e7c38(0x27e)](_0x509029){const _0x1e25bd=_0x4e7c38;return this['_plugins'][_0x1e25bd(0x205)](_0x509029[_0x1e25bd(0x30b)],_0x509029),_0x3e2bb5(()=>this[_0x1e25bd(0x298)]['delete'](_0x509029['type']));}[_0x4e7c38(0x4d5)](_0x6026a3){const _0x5f29aa=_0x4e7c38;let _0x56ef9f=this[_0x5f29aa(0x298)][_0x5f29aa(0x4d5)](_0x6026a3);if(!_0x56ef9f)throw Error(_0x5f29aa(0x39b)+_0x6026a3+_0x5f29aa(0x37e));return _0x56ef9f;}[_0x4e7c38(0x4b6)](){const _0x5da85a=_0x4e7c38;return Array[_0x5da85a(0x501)](this[_0x5da85a(0x298)][_0x5da85a(0x4c0)]());}};const oc=[Q];let sc=class extends _0x331aac{constructor(_0x3adcc0=Ns,_0x3cb109,_0x2dfd64,_0x5c1854,_0x48cd07,_0x226f2b){const _0xcd8ef5=_0x4e7c38;super(),this['_config']=_0x3adcc0,this[_0xcd8ef5(0x239)]=_0x3cb109,this[_0xcd8ef5(0x320)]=_0x2dfd64,this['_univerInstanceService']=_0x5c1854,this[_0xcd8ef5(0x551)]=_0x48cd07,this['_dataSyncPrimaryController']=_0x226f2b,G(this,_0xcd8ef5(0x306),new Map());let {..._0x2ced4b}=_0xad5a6c({},Ns,this[_0xcd8ef5(0x45b)]);this[_0xcd8ef5(0x551)][_0xcd8ef5(0x453)](_0xcd8ef5(0x359),_0x2ced4b),this['_univerInstanceService'][_0xcd8ef5(0x37f)](_0x2eb623[_0xcd8ef5(0x583)],_0x1a83d0),this[_0xcd8ef5(0x2ef)](),this[_0xcd8ef5(0x507)](),this['_initRegistries'](),this[_0xcd8ef5(0x3d0)]();}['onStarting'](){const _0x196975=_0x4e7c38;this['_injector'][_0x196975(0x290)]([Lo]),this[_0x196975(0x533)](this[_0x196975(0x239)]['get'](_0x5342d9)['registerCommand'](Ro)),this['disposeWithMe'](this[_0x196975(0x239)][_0x196975(0x4d5)](_0x5342d9)[_0x196975(0x2d5)](zo)),this[_0x196975(0x533)](this[_0x196975(0x239)][_0x196975(0x4d5)](_0x3cfcfc)['registerRuleModel'](_0x3b454d[_0x196975(0x1de)],this['_injector'][_0x196975(0x4d5)](Lo),Ro['id'],zo['id']));}[_0x4e7c38(0x335)](){const _0x2b55f7=_0x4e7c38;_0x18d3d5(this[_0x2b55f7(0x239)],[[rc],[qr],[Rs]]),this[_0x2b55f7(0x3b8)][_0x2b55f7(0x281)](_0x2eb623['UNIVER_BASE'])[_0x2b55f7(0x397)](_0x483508=>this[_0x2b55f7(0x264)](_0x483508[_0x2b55f7(0x49c)]())),_0x18d3d5(this[_0x2b55f7(0x239)],[[zs],[Us]]);}['_initDependencies'](){const _0x811e27=_0x4e7c38;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]]['forEach'](_0x25f202=>this[_0x811e27(0x239)]['add'](_0x25f202));}[_0x4e7c38(0x507)](){const _0x2ff95f=_0x4e7c38;[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][_0x2ff95f(0x397)](_0x206045=>this['disposeWithMe'](this['_commandService']['registerCommand'](_0x206045))),oc['forEach'](_0x23a1a0=>{const _0x1696ba=_0x2ff95f;var _0x1d144c;return(_0x1d144c=this[_0x1696ba(0x354)])==null?void 0x0:_0x1d144c[_0x1696ba(0x2df)](_0x23a1a0);});}[_0x4e7c38(0x3d0)](){const _0x45f4b0=_0x4e7c38;this[_0x45f4b0(0x354)]&&(this['disposeWithMe'](this[_0x45f4b0(0x3b8)][_0x45f4b0(0x41b)](_0x2eb623[_0x45f4b0(0x583)])[_0x45f4b0(0x4ce)](({unit:_0xb58c76})=>{const _0x26be05=_0x45f4b0;this['_syncBaseUnit'](_0xb58c76[_0x26be05(0x49c)]());})),this['disposeWithMe'](this['_univerInstanceService'][_0x45f4b0(0x1f8)](_0x2eb623[_0x45f4b0(0x583)])[_0x45f4b0(0x4ce)](_0x25549b=>{const _0x24004f=_0x45f4b0;var _0x493579;(_0x493579=this[_0x24004f(0x306)][_0x24004f(0x4d5)](_0x25549b[_0x24004f(0x49c)]()))==null||_0x493579[_0x24004f(0x251)](),this['_baseSyncDisposables'][_0x24004f(0x57a)](_0x25549b[_0x24004f(0x49c)]());})));}[_0x4e7c38(0x264)](_0x69c180){const _0x37073f=_0x4e7c38;this[_0x37073f(0x354)]&&!this[_0x37073f(0x306)][_0x37073f(0x4d6)](_0x69c180)&&this[_0x37073f(0x306)][_0x37073f(0x205)](_0x69c180,this[_0x37073f(0x354)][_0x37073f(0x2a3)](_0x69c180));}[_0x4e7c38(0x2ee)](){const _0x510944=_0x4e7c38;let _0x36dff9=this['_injector'][_0x510944(0x4d5)](mr);zn()['forEach'](_0x520287=>_0x36dff9[_0x510944(0x27e)](_0x520287));let _0x3300f6=this['_injector'][_0x510944(0x4d5)](ic),_0x52cb94=this['_injector'][_0x510944(0x4d5)](ii);$r()[_0x510944(0x397)](_0x3d04a2=>{const _0x184e97=_0x510944;_0x3300f6[_0x184e97(0x27e)](_0x3d04a2),_0x52cb94['registerView'](_0x3d04a2);});}};G(sc,'pluginName',_0x4e7c38(0x364)),G(sc,'packageName',js),G(sc,_0x4e7c38(0x4fe),Ms),G(sc,_0x4e7c38(0x30b),_0x2eb623['UNIVER_BASE']),sc=X([_0x5a051b(_0xe1f7da,_0x3179a2),Y(0x1,_0x4562a7(_0x53b1f5)),Y(0x2,_0x5342d9),Y(0x3,_0x26755d),Y(0x4,_0x3caf08),Y(0x5,_0x5ab67b(_0x2caca0))],sc);let cc=class extends _0x331aac{constructor(_0x50e6cf=Ps,_0x1666ca,_0x296aaf,_0xdfb436,_0x5e84c4){const _0xef4cdd=_0x4e7c38;super(),this[_0xef4cdd(0x45b)]=_0x50e6cf,this['_injector']=_0x1666ca,this[_0xef4cdd(0x320)]=_0x296aaf,this[_0xef4cdd(0x551)]=_0xdfb436,this[_0xef4cdd(0x3b8)]=_0x5e84c4;let {..._0x57d61b}=_0xad5a6c({},Ps,this[_0xef4cdd(0x45b)]);this[_0xef4cdd(0x551)][_0xef4cdd(0x453)](_0xef4cdd(0x4e9),_0x57d61b),this[_0xef4cdd(0x3b8)][_0xef4cdd(0x37f)](_0x2eb623['UNIVER_BASE'],_0x1a83d0),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0xef4cdd(0x397)](_0x51c66d=>this[_0xef4cdd(0x239)][_0xef4cdd(0x290)](_0x51c66d)),oc[_0xef4cdd(0x397)](_0x491b7a=>this[_0xef4cdd(0x533)](this[_0xef4cdd(0x320)][_0xef4cdd(0x2d5)](_0x491b7a)));}};G(cc,_0x4e7c38(0x3f6),'REMOTE_BASES_PLUGIN'),G(cc,'packageName',js),G(cc,_0x4e7c38(0x4fe),Ms),G(cc,'type',_0x2eb623[_0x4e7c38(0x583)]),cc=X([_0x5a051b(_0xe1f7da,_0x3179a2),Y(0x1,_0x4562a7(_0x53b1f5)),Y(0x2,_0x5342d9),Y(0x3,_0x3caf08),Y(0x4,_0x26755d)],cc);function lc(_0x49c405){const _0xe18aa1=_0x4e7c38;let _0x8558b4=Cc(_0x49c405[_0xe18aa1(0x461)]);if(!_0x8558b4)return{'query':'','total':0x0,'matches':[]};let _0x23c7c0=[],_0x5522b7=[];for(let _0x22161d=0x0;_0x22161d<_0x49c405[_0xe18aa1(0x1c7)][_0xe18aa1(0x2b6)];_0x22161d++){if(!(_0x22161d in _0x49c405[_0xe18aa1(0x1c7)]))continue;let _0x4fa811=_0x49c405[_0xe18aa1(0x438)][_0xe18aa1(0x531)][_0x49c405[_0xe18aa1(0x1c7)][_0x22161d]];_0x4fa811&&_0x5522b7['push']({'field':_0x4fa811,'fieldIndex':_0x22161d});}_0x49c405[_0xe18aa1(0x2ff)]['forEach']((_0x5ba634,_0x23b736)=>{const _0xc774cd=_0xe18aa1;_0x5522b7[_0xc774cd(0x397)](({field:_0xa80482,fieldIndex:_0x2a3dbd})=>{const _0x4e2673=_0xc774cd;let _0x38da55=uc(_0x5ba634['values'][_0xa80482['id']],_0xa80482);if(!_0x38da55)return;let _0x2cb52a=Sc(_0x8558b4,_0x38da55[_0x4e2673(0x376)]);_0x2cb52a<=0x0||_0x23c7c0[_0x4e2673(0x3e2)]({'recordId':_0x5ba634[_0x4e2673(0x394)],'fieldId':_0xa80482['id'],'fieldType':_0xa80482[_0x4e2673(0x30b)],'text':_0x38da55[_0x4e2673(0x42b)],'score':_0x2cb52a,'rowIndex':_0x23b736,'fieldIndex':_0x2a3dbd});});}),_0x23c7c0[_0xe18aa1(0x266)]((_0x359904,_0x433744)=>_0x433744[_0xe18aa1(0x1cb)]-_0x359904[_0xe18aa1(0x1cb)]||_0x359904[_0xe18aa1(0x2cd)]-_0x433744[_0xe18aa1(0x2cd)]||_0x359904['fieldIndex']-_0x433744['fieldIndex']);let _0x44b4f9=_0x49c405[_0xe18aa1(0x3dc)]==null?_0x23c7c0:_0x23c7c0['slice'](0x0,Math['max'](0x0,_0x49c405['limit']));return{'query':_0x8558b4,'total':_0x23c7c0[_0xe18aa1(0x2b6)],'matches':Tc(_0x44b4f9)};}function uc(_0x56bbe6,_0x538d47){const _0x5777a2=_0x4e7c38;let _0x57916c=[];for(let _0x12640e of fc(_0x56bbe6,_0x538d47)){let _0x3431f1=Cc(_0x12640e);_0x3431f1&&_0x57916c[_0x5777a2(0x3e2)](_0x3431f1);}return _0x57916c[_0x5777a2(0x2b6)]?{'displayText':dc(_0x56bbe6,_0x538d47),'searchTexts':wc(_0x57916c)}:null;}function dc(_0x271bd0,_0x362914){const _0x101b84=_0x4e7c38;switch(_0x362914['type']){case _0x377615[_0x101b84(0x38d)]:case _0x377615[_0x101b84(0x1eb)]:case _0x377615['Group']:return pc(_0x271bd0,_0x362914)[_0x101b84(0x50e)](',\x20');case _0x377615[_0x101b84(0x1c3)]:return gc(_0x271bd0);case _0x377615[_0x101b84(0x55e)]:case _0x377615[_0x101b84(0x3d5)]:case _0x377615[_0x101b84(0x4ec)]:return _c(_0x271bd0,_0x362914);case _0x377615['Number']:case _0x377615['Currency']:return vc(_0x271bd0,_0x362914);case _0x377615[_0x101b84(0x3a3)]:return yc(_0x271bd0,_0x362914);case _0x377615[_0x101b84(0x1e2)]:return _0x271bd0?_0x101b84(0x388):'Unchecked';case _0x377615[_0x101b84(0x389)]:return bc(_0x271bd0)[_0x101b84(0x50e)](',\x20');default:return xc(_0x271bd0);}}function fc(_0x14277d,_0x581397){const _0x2a1840=_0x4e7c38;switch(_0x581397['type']){case _0x377615[_0x2a1840(0x38d)]:case _0x377615[_0x2a1840(0x1eb)]:case _0x377615[_0x2a1840(0x1c4)]:{let _0x1fbb27=pc(_0x14277d,_0x581397);if(Array[_0x2a1840(0x56b)](_0x14277d)){let _0x18b802=[..._0x1fbb27];for(let _0x159662=0x0;_0x159662<_0x14277d['length'];_0x159662++)_0x159662 in _0x14277d&&_0x18b802[_0x2a1840(0x3e2)](String(_0x14277d[_0x159662]));return _0x18b802;}return _0x14277d==null?_0x1fbb27:[..._0x1fbb27,String(_0x14277d)];}case _0x377615['Link']:{let _0x53666f=hc(_0x14277d);return[_0x53666f['text'],_0x53666f[_0x2a1840(0x2d3)]];}case _0x377615[_0x2a1840(0x55e)]:case _0x377615[_0x2a1840(0x3d5)]:case _0x377615[_0x2a1840(0x4ec)]:return[_c(_0x14277d,_0x581397),xc(_0x14277d)];case _0x377615[_0x2a1840(0x242)]:case _0x377615['Currency']:return[vc(_0x14277d,_0x581397),xc(_0x14277d)];case _0x377615['Progress']:return[yc(_0x14277d,_0x581397),xc(_0x14277d)];case _0x377615[_0x2a1840(0x1e2)]:return _0x14277d?[_0x2a1840(0x388),'Yes',_0x2a1840(0x4cc)]:['Unchecked','No',_0x2a1840(0x3a7)];case _0x377615[_0x2a1840(0x389)]:return bc(_0x14277d);default:return[xc(_0x14277d)];}}function pc(_0x361a91,_0x58c6da){const _0x59ef08=_0x4e7c38;var _0x301054;let _0x7e69a6=Array['isArray']((_0x301054=_0x58c6da[_0x59ef08(0x554)])==null?void 0x0:_0x301054[_0x59ef08(0x246)])?_0x58c6da[_0x59ef08(0x554)][_0x59ef08(0x246)]:[],_0x3f5b01=[];if(Array[_0x59ef08(0x56b)](_0x361a91)){for(let _0x46fc18=0x0;_0x46fc18<_0x361a91[_0x59ef08(0x2b6)];_0x46fc18++){if(!(_0x46fc18 in _0x361a91))continue;let _0x46b796=String(_0x361a91[_0x46fc18]);_0x46b796&&_0x3f5b01[_0x59ef08(0x3e2)](mc(_0x7e69a6,_0x46b796));}return _0x3f5b01;}if(_0x361a91!=null){let _0x20ed73=String(_0x361a91);_0x20ed73&&_0x3f5b01[_0x59ef08(0x3e2)](mc(_0x7e69a6,_0x20ed73));}return _0x3f5b01;}function mc(_0x5e1ed3,_0x78a417){const _0x11c163=_0x4e7c38;for(let _0x26ba75 of _0x5e1ed3){if(typeof _0x26ba75==_0x11c163(0x457)&&_0x26ba75===_0x78a417)return _0x26ba75;if(_0x26ba75&&typeof _0x26ba75==_0x11c163(0x3d3)){let _0x729b90=_0x26ba75;if(String(_0x729b90['id']??_0x729b90[_0x11c163(0x39a)]??'')===_0x78a417||String(_0x729b90[_0x11c163(0x39a)]??'')===_0x78a417)return String(_0x729b90[_0x11c163(0x39a)]??_0x729b90['id']??_0x78a417);}}return _0x78a417;}function hc(_0x4c9373){const _0x525342=_0x4e7c38;if(_0x4c9373&&typeof _0x4c9373==_0x525342(0x3d3)&&!Array['isArray'](_0x4c9373)){let _0x4f60e9=_0x4c9373;return{'text':String(_0x4f60e9[_0x525342(0x2bb)]??_0x4f60e9[_0x525342(0x2d3)]??''),'url':String(_0x4f60e9[_0x525342(0x2d3)]??'')};}return{'text':xc(_0x4c9373),'url':xc(_0x4c9373)};}function gc(_0x288c23){const _0x314f46=_0x4e7c38;let _0x4d689e=hc(_0x288c23);return _0x4d689e[_0x314f46(0x2bb)]||_0x4d689e[_0x314f46(0x2d3)];}function _c(_0x50638b,_0x20ea9e){const _0x597c20=_0x4e7c38;return typeof _0x50638b!=_0x597c20(0x43a)||!Number[_0x597c20(0x338)](_0x50638b)?'':mn(_0x50638b,_0x20ea9e[_0x597c20(0x554)]);}function vc(_0x5bfaa7,_0x2f2e94){const _0x12b9d8=_0x4e7c38;let _0x48b586=typeof _0x5bfaa7==_0x12b9d8(0x43a)?_0x5bfaa7:Number(_0x5bfaa7);return Number[_0x12b9d8(0x338)](_0x48b586)?qo(_0x48b586,_0x2f2e94[_0x12b9d8(0x554)]):'';}function yc(_0xbb369b,_0x56bee0){const _0x1c8d5f=_0x4e7c38;let _0xcd8398=typeof _0xbb369b==_0x1c8d5f(0x43a)?_0xbb369b:Number(_0xbb369b);return Number[_0x1c8d5f(0x338)](_0xcd8398)?Qo(_0xcd8398,_0x56bee0[_0x1c8d5f(0x554)]):'';}function bc(_0xaf2a6e){const _0x14dff4=_0x4e7c38;return Array[_0x14dff4(0x56b)](_0xaf2a6e)?_0xaf2a6e[_0x14dff4(0x470)](_0x127dd4=>{const _0x45a5ff=_0x14dff4;if(!_0x127dd4||typeof _0x127dd4!=_0x45a5ff(0x3d3))return[];let _0x3b5c09=_0x127dd4,_0x443f8c=String(_0x3b5c09[_0x45a5ff(0x39a)]??_0x3b5c09[_0x45a5ff(0x2d3)]??'')[_0x45a5ff(0x42c)]();return _0x443f8c?[_0x443f8c]:[];}):[];}function xc(_0x4f22fe){const _0x13b40f=_0x4e7c38;if(_0x4f22fe==null)return'';if(typeof _0x4f22fe==_0x13b40f(0x361))return _0x4f22fe?_0x13b40f(0x3a0):_0x13b40f(0x3b3);if(typeof _0x4f22fe=='number')return String(_0x4f22fe);if(Array[_0x13b40f(0x56b)](_0x4f22fe)){let _0x498ecb=[];for(let _0xca2089=0x0;_0xca2089<_0x4f22fe[_0x13b40f(0x2b6)];_0xca2089++){if(!(_0xca2089 in _0x4f22fe))continue;let _0x3a985e=xc(_0x4f22fe[_0xca2089]);_0x3a985e&&_0x498ecb[_0x13b40f(0x3e2)](_0x3a985e);}return _0x498ecb[_0x13b40f(0x50e)](',\x20');}if(typeof _0x4f22fe==_0x13b40f(0x3d3)){let _0x3a8a6f=_0x4f22fe;return String(_0x3a8a6f[_0x13b40f(0x2a4)]??_0x3a8a6f[_0x13b40f(0x39a)]??_0x3a8a6f['text']??_0x3a8a6f[_0x13b40f(0x2d3)]??'')['trim']();}return String(_0x4f22fe);}function Sc(_0x3d42be,_0x582072){const _0x546edc=_0x4e7c38;let _0xb7ab89=0x0;for(let _0x3f540a of _0x582072)if(_0x3f540a){if(_0x3f540a===_0x3d42be){_0xb7ab89=Math['max'](_0xb7ab89,0x12c);continue;}if(_0x3f540a[_0x546edc(0x3c5)](_0x3d42be)){_0xb7ab89=Math[_0x546edc(0x265)](_0xb7ab89,0xfa);continue;}_0x3f540a[_0x546edc(0x37a)](_0x3d42be)&&(_0xb7ab89=Math[_0x546edc(0x265)](_0xb7ab89,0xc8));}return _0xb7ab89;}function Cc(_0x102341){const _0x2cae65=_0x4e7c38;return _0x102341[_0x2cae65(0x42c)]()[_0x2cae65(0x212)](/\s+/g,'\x20')[_0x2cae65(0x1e9)]();}function wc(_0x539084){const _0x3daca7=_0x4e7c38;return Array[_0x3daca7(0x501)](new Set(_0x539084));}function Tc(_0x3300c5){const _0xd9d412=_0x4e7c38;let _0x1999fd=[];for(let {rowIndex:_0x209b62,fieldIndex:_0x33bba2,..._0x3762c8}of _0x3300c5)_0x1999fd[_0xd9d412(0x3e2)](_0x3762c8);return _0x1999fd;}function Ec(_0x16b841){const _0x4dad3b=_0x4e7c38;return{'compress':!0x0,'kind':_0x4dad3b(0x511),'u':_0x16b841[_0x4dad3b(0x423)],'t':_0x16b841[_0x4dad3b(0x2cc)],'p':_0x16b841[_0x4dad3b(0x3a6)]['map'](_0x4d0700=>[_0x4d0700[_0x4dad3b(0x505)],_0x4d0700[_0x4dad3b(0x444)],Ac(_0x4d0700[_0x4dad3b(0x4de)])]),..._0x16b841[_0x4dad3b(0x43d)]===void 0x0?{}:{'g':_0x16b841[_0x4dad3b(0x43d)]}};}function Dc(_0x4dff8f){const _0x113af3=_0x4e7c38;if(Lc(_0x4dff8f,_0x113af3(0x511)),!Oc(_0x4dff8f)){if(!Ic(_0x4dff8f))throw Error(_0x113af3(0x4e7));return _0x4dff8f;}return{'unitId':_0x4dff8f['u'],'tableId':_0x4dff8f['t'],'patches':_0x4dff8f['p'][_0x113af3(0x3e8)](([_0x1eb5ef,_0x2bcece,_0x5e89b8])=>({'row':_0x1eb5ef,'col':_0x2bcece,'value':jc(_0x5e89b8)})),..._0x4dff8f['g']===void 0x0?{}:{'trigger':_0x4dff8f['g']}};}function Oc(_0x2e99cf){const _0x1c4e3c=_0x4e7c38;return!Rc(_0x2e99cf)||_0x2e99cf[_0x1c4e3c(0x53f)]!==!0x0||_0x2e99cf[_0x1c4e3c(0x580)]!==_0x1c4e3c(0x511)?!0x1:typeof _0x2e99cf['u']==_0x1c4e3c(0x457)&&typeof _0x2e99cf['t']=='string'&&(_0x2e99cf['g']===void 0x0||typeof _0x2e99cf['g']==_0x1c4e3c(0x457))&&Array['isArray'](_0x2e99cf['p'])&&_0x2e99cf['p'][_0x1c4e3c(0x1f6)](_0x2b5987=>Array['isArray'](_0x2b5987)&&_0x2b5987[_0x1c4e3c(0x2b6)]===0x3&&Number[_0x1c4e3c(0x314)](_0x2b5987[0x0])&&Number['isInteger'](_0x2b5987[0x1]));}function kc(_0x5a8d18){const _0x1a2457=_0x4e7c38;return!Rc(_0x5a8d18)||_0x5a8d18[_0x1a2457(0x53f)]!==!0x0||_0x5a8d18[_0x1a2457(0x580)]!==_0x1a2457(0x452)||!Rc(_0x5a8d18[_0x1a2457(0x29e)])?!0x1:Object[_0x1a2457(0x4c0)](_0x5a8d18[_0x1a2457(0x29e)])['every'](_0x2cce2d=>Rc(_0x2cce2d)&&(_0x2cce2d['cd']===void 0x0||Array[_0x1a2457(0x56b)](_0x2cce2d['cd'])&&_0x2cce2d['cd']['every'](_0x1cf3d8=>Array[_0x1a2457(0x56b)](_0x1cf3d8)&&_0x1cf3d8[_0x1a2457(0x2b6)]===0x3&&Number[_0x1a2457(0x314)](_0x1cf3d8[0x0])&&Number[_0x1a2457(0x314)](_0x1cf3d8[0x1])&&Fc(_0x1cf3d8[0x2]))));}function Ac(_0x1f68de){return Pc(_0x1f68de)?Mc(_0x1f68de):_0x1f68de;}function jc(_0x1ef552){return Fc(_0x1ef552)?Nc(_0x1ef552):_0x1ef552;}function Mc(_0x497f7a){return{'c':0x1,..._0x497f7a['v']===void 0x0?{}:{'v':_0x497f7a['v']},..._0x497f7a['t']!==void 0x0&&_0x497f7a['t']!==null?{'t':_0x497f7a['t']}:_0x497f7a['t']===null?{'t':null}:{},..._0x497f7a['f']!==void 0x0&&_0x497f7a['f']!==null?{'f':_0x497f7a['f']}:_0x497f7a['f']===null?{'f':null}:{},..._0x497f7a['si']!==void 0x0&&_0x497f7a['si']!==null?{'si':_0x497f7a['si']}:_0x497f7a['si']===null?{'si':null}:{},..._0x497f7a['p']!==void 0x0&&_0x497f7a['p']!==null?{'p':_0x497f7a['p']}:_0x497f7a['p']===null?{'p':null}:{}};}function Nc(_0x386cce){return{..._0x386cce['v']===void 0x0?{}:{'v':_0x386cce['v']},..._0x386cce['t']===void 0x0?{}:{'t':_0x386cce['t']},..._0x386cce['f']===void 0x0?{}:{'f':_0x386cce['f']},..._0x386cce['si']===void 0x0?{}:{'si':_0x386cce['si']},..._0x386cce['p']===void 0x0?{}:{'p':_0x386cce['p']}};}function Pc(_0x11b112){const _0x5ee239=_0x4e7c38;return!!_0x11b112&&typeof _0x11b112==_0x5ee239(0x3d3)&&!Array['isArray'](_0x11b112)&&(Object[_0x5ee239(0x2f7)][_0x5ee239(0x396)][_0x5ee239(0x386)](_0x11b112,'v')||Object['prototype']['hasOwnProperty'][_0x5ee239(0x386)](_0x11b112,'t')||Object[_0x5ee239(0x2f7)][_0x5ee239(0x396)][_0x5ee239(0x386)](_0x11b112,'p')||Object[_0x5ee239(0x2f7)]['hasOwnProperty']['call'](_0x11b112,'f')||Object[_0x5ee239(0x2f7)]['hasOwnProperty'][_0x5ee239(0x386)](_0x11b112,'si'));}function Fc(_0x25d546){return Rc(_0x25d546)&&_0x25d546['c']===0x1;}function Ic(_0x2b25c6){const _0x297da4=_0x4e7c38;return Rc(_0x2b25c6)&&typeof _0x2b25c6['unitId']==_0x297da4(0x457)&&typeof _0x2b25c6[_0x297da4(0x2cc)]==_0x297da4(0x457)&&(_0x2b25c6[_0x297da4(0x43d)]===void 0x0||typeof _0x2b25c6[_0x297da4(0x43d)]==_0x297da4(0x457))&&Array[_0x297da4(0x56b)](_0x2b25c6['patches'])&&_0x2b25c6['patches'][_0x297da4(0x1f6)](_0x1590e1=>Rc(_0x1590e1)&&Number['isInteger'](_0x1590e1[_0x297da4(0x505)])&&Number[_0x297da4(0x314)](_0x1590e1[_0x297da4(0x444)])&&_0x297da4(0x4de)in _0x1590e1);}function Lc(_0x4bcd45,_0x12869e){const _0x2b5199=_0x4e7c38;if(Rc(_0x4bcd45)&&_0x4bcd45[_0x2b5199(0x53f)]===!0x0){if(_0x4bcd45['kind']!==_0x12869e)throw Error(_0x2b5199(0x464)+String(_0x4bcd45[_0x2b5199(0x580)])+'\x22.');if(!(_0x12869e===_0x2b5199(0x511)?Oc(_0x4bcd45):kc(_0x4bcd45)))throw Error(_0x2b5199(0x2d7)+_0x12869e+'\x22.');}}function Rc(_0x24f7a8){const _0x1013c9=_0x4e7c38;return!!_0x24f7a8&&typeof _0x24f7a8==_0x1013c9(0x3d3)&&!Array['isArray'](_0x24f7a8);}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,_0x5b0b09 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};
|