@univerjs-pro/bases 1.3.1 → 1.5.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/README.md +21 -9
- package/lib/cjs/config-CTOS-Fzg.js +1 -0
- 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/cjs/worker.js +1 -0
- package/lib/config-DDy_jw9I.js +1 -0
- package/lib/es/config-DDy_jw9I.js +1 -0
- 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/es/worker.js +1 -0
- 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/types/config/config.d.ts +1 -1
- package/lib/types/controllers/base-formula-optional-identifier.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +16 -2
- package/lib/types/facade/f-record.d.ts +14 -0
- package/lib/types/facade/f-table.d.ts +3 -0
- package/lib/types/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -13
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-field-registry.service.d.ts +2 -2
- package/lib/types/services/base-permission-point.d.ts +1 -1
- package/lib/types/services/base-permission.service.d.ts +1 -1
- package/lib/types/services/base-projection.service.d.ts +2 -2
- package/lib/types/services/base-resource.service.d.ts +1 -1
- package/lib/types/services/base-view-registry.service.d.ts +2 -2
- package/lib/types/worker.d.ts +14 -0
- 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/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5daf81=_0x188f;(function(_0x412257,_0x1df069){const _0x9dd229=_0x188f,_0xf2998=_0x412257();while(!![]){try{const _0x270664=-parseInt(_0x9dd229(0x45a))/0x1*(-parseInt(_0x9dd229(0x426))/0x2)+parseInt(_0x9dd229(0x4e6))/0x3*(parseInt(_0x9dd229(0x519))/0x4)+-parseInt(_0x9dd229(0x227))/0x5+parseInt(_0x9dd229(0x3cf))/0x6*(parseInt(_0x9dd229(0x428))/0x7)+parseInt(_0x9dd229(0x402))/0x8+parseInt(_0x9dd229(0x3a0))/0x9+-parseInt(_0x9dd229(0x4f6))/0xa;if(_0x270664===_0x1df069)break;else _0xf2998['push'](_0xf2998['shift']());}catch(_0x36f165){_0xf2998['push'](_0xf2998['shift']());}}}(_0x38bd,0x8f6a3));import{BASE_RECORD_ID_FIELD_ID as _0x4a6fc3,BaseConditionalColorOperator as _0xb7a4f0,BaseConditionalColorTarget as _0x20be76,BaseConditionalDateMode as _0x1a2fb9,BaseDataModel as _0x3bc5ac,BaseFieldType as _0x618ba,BaseFilterConjunction as _0x4967ae,BaseHierarchyInvalidReason as _0x335882,BaseRecordLinkRole as _0x1d1c88,BaseSortDirection as _0x43615e,BaseViewType as _0x168289,CellValueType as _0x20fde0,ColorKit as _0x480202,CommandType as _0x3d059d,CustomCommandExecutionError as _0x55df23,DateSystem as _0x7c5fe2,DependentOn as _0x2061bd,Disposable as _0x183939,ErrorService as _0x1bc7ec,ICommandService as _0x2ca718,IConfigService as _0x14abe6,IPermissionService as _0x2f962f,IResourceManagerService as _0x3e7637,IUndoRedoService as _0x51376c,IUniverInstanceService as _0x364596,Inject as _0x477fb0,Injector as _0x46096e,JSON1 as _0x1605a0,JSONX as _0x43324a,ObjectMatrix as _0x22a4fc,ObjectPermissionRuleModel as _0x3436af,ObjectPermissionService as _0x2cff1c,Optional as _0x1c6aef,PermissionStatus as _0x2150fa,Plugin as _0x29b1cf,Tools as _0x9abbbc,UniverInstanceType as _0x2ddca0,allocateBaseFormulaTableName as _0x7582ef,assertBaseTableRecordIdentity as _0x3db867,createBaseFormulaTableNameMap as _0x4b2d20,createBaseRecordIdField as _0x44aad8,createIdentifier as _0x3262c5,dateKit as _0x35a742,excelDateTimeSerial as _0x3f8456,excelSerialToDateTime as _0x4cb662,generateRandomId as _0x1d3e80,getBaseFormulaTableName as _0x36105f,isBaseRecordIdFieldName as _0x4dba8d,isValidBaseRecordId as _0x3c7887,merge as _0x5a5f56,nameCharacterCheck as _0x89c043,numfmt as _0x51878f,regexp as _0x5ac771,sequenceExecute as _0x557e96,toDisposable as _0x1a388a,touchDependencies as _0x32cf62}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x319ec4,IActiveDirtyManagerService as _0x2d4d6c,RemoveSuperTableMutation as _0x5c6c2d,SetFormulaCalculationResultMutation as _0x245562,SetSuperTableMutation as _0x2c56be,SetTriggerFormulaCalculationStartMutation as _0x5cddaf,UniverProFormulaEnginePlugin as _0x446c43,refactorFormulaUnitQualifier as _0x58f593}from'@univerjs-pro/engine-formula';import{UnitAction as _0x44dc45,UnitObject as _0x2ea692}from'@univerjs/protocol';import{UniverLicensePlugin as _0x4380c0}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x51b863}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x34ef91,FormulaResultApplicationType as _0x310a16}from'@univerjs/engine-formula';function N(_0x238173){const _0x1ba318=_0x188f;let _0x2abdb2=_0x238173[_0x1ba318(0x396)]['targetTableId'],_0x42afd4=_0x238173[_0x1ba318(0x396)][_0x1ba318(0x3bd)],_0x475b02=_0x238173[_0x1ba318(0x396)][_0x1ba318(0x36e)],_0x2ab739=_0x238173['config'][_0x1ba318(0x54c)],_0x82b4dd=_0x238173[_0x1ba318(0x396)][_0x1ba318(0x33e)];return typeof _0x2abdb2!=_0x1ba318(0x2ed)||!_0x2abdb2||typeof _0x42afd4!=_0x1ba318(0x26c)||_0x475b02!==void 0x0&&(typeof _0x475b02!=_0x1ba318(0x2ed)||!_0x475b02)||_0x82b4dd!==void 0x0&&_0x82b4dd!==_0x1d1c88['Parent']||_0x2ab739!==void 0x0&&(!Array[_0x1ba318(0x31e)](_0x2ab739)||_0x2ab739[_0x1ba318(0x387)](_0x5940ad=>typeof _0x5940ad!=_0x1ba318(0x2ed)||!_0x5940ad)||new Set(_0x2ab739)[_0x1ba318(0x323)]!==_0x2ab739['length'])?null:{'targetTableId':_0x2abdb2,'multiple':_0x42afd4,..._0x475b02?{'displayFieldId':_0x475b02}:{},..._0x2ab739?{'pickerFieldIds':[..._0x2ab739]}:{},..._0x82b4dd?{'relationRole':_0x82b4dd}:{}};}function Le(_0x3b346d){const _0x2c2668=_0x188f;return typeof _0x3b346d!=_0x2c2668(0x2ed)||_0x3b346d===''?[]:_0x3b346d[_0x2c2668(0x4d9)](',');}function Re(_0x5d2c51){const _0x5b6e0c=_0x188f;return Array[_0x5b6e0c(0x404)](new Set(_0x5d2c51))[_0x5b6e0c(0x30a)](',');}function ze(_0x26e3db,_0x2d3744){const _0x5e4e27=_0x188f;if(typeof _0x26e3db!=_0x5e4e27(0x2ed))return{'valid':!0x1,'reason':'[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.'};if(_0x26e3db==='')return{'valid':!0x0};let _0x51a9d7=_0x26e3db[_0x5e4e27(0x4d9)](',');return!_0x2d3744&&_0x51a9d7[_0x5e4e27(0x21d)]>0x1?{'valid':!0x1,'reason':_0x5e4e27(0x291)}:_0x51a9d7[_0x5e4e27(0x387)](_0x33182e=>!_0x3c7887(_0x33182e))||new Set(_0x51a9d7)[_0x5e4e27(0x323)]!==_0x51a9d7[_0x5e4e27(0x21d)]||Re(_0x51a9d7)!==_0x26e3db?{'valid':!0x1,'reason':_0x5e4e27(0x4ca)}:{'valid':!0x0};}function Be(_0xf93c10,_0x44e5f4){const _0x36412f=_0x188f;if(_0x44e5f4[_0x36412f(0x305)]!==_0x618ba[_0x36412f(0x2e6)])return{'valid':!0x0};let _0x49baa0=N(_0x44e5f4),_0x1652bc=_0x49baa0?_0xf93c10[_0x36412f(0x2f7)][_0x49baa0[_0x36412f(0x337)]]:void 0x0;if(!_0x49baa0||!_0x1652bc)return{'valid':!0x1,'reason':'[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.'};let _0x4a97ac=[..._0x49baa0[_0x36412f(0x36e)]?[_0x49baa0['displayFieldId']]:[],..._0x49baa0['pickerFieldIds']??[]]['find'](_0x489ede=>{const _0x58803d=_0x36412f;let _0x119aad=_0x1652bc[_0x58803d(0x503)][_0x489ede];return!_0x119aad||_0x119aad[_0x58803d(0x3db)]===!0x0||_0x119aad[_0x58803d(0x305)]===_0x618ba['RecordId'];});return _0x4a97ac?{'valid':!0x1,'reason':'[RecordLink]:\x20display\x20field\x20\x22'+_0x4a97ac+_0x36412f(0x3aa)}:{'valid':!0x0};}function Ve(_0x470ee9,_0x5e9c84,_0x56f72d,_0x5b779d={}){const _0x34c849=_0x188f;let _0x3b5a5a=N(_0x5e9c84);if(_0x5e9c84[_0x34c849(0x305)]!==_0x618ba[_0x34c849(0x2e6)]||!_0x3b5a5a)return{'valid':!0x1,'reason':_0x34c849(0x200)};let _0x956c7d=ze(_0x56f72d,_0x3b5a5a[_0x34c849(0x3bd)]);if(!_0x956c7d['valid']||_0x5b779d['allowDangling'])return _0x956c7d;let _0x11dfed=_0x470ee9[_0x34c849(0x2f7)][_0x3b5a5a[_0x34c849(0x337)]];if(!_0x11dfed)return{'valid':!0x1,'reason':'[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.'};let _0x25697e=Le(_0x56f72d)[_0x34c849(0x2d8)](_0x5f1ed2=>!_0x11dfed[_0x34c849(0x43a)][_0x5f1ed2]);return _0x25697e?{'valid':!0x1,'reason':_0x34c849(0x3fe)+_0x25697e+_0x34c849(0x362)}:{'valid':!0x0};}function He(_0x3e5462,_0x1ffd62){const _0x4ef235=_0x188f;return Object['values'](_0x3e5462[_0x4ef235(0x2f7)])[_0x4ef235(0x36c)](_0x8f94a3=>Object[_0x4ef235(0x45b)](_0x8f94a3['fields'])[_0x4ef235(0x36c)](_0x443877=>{const _0x47d01d=_0x4ef235;let _0x5a1089=_0x443877[_0x47d01d(0x305)]===_0x618ba[_0x47d01d(0x2e6)]?N(_0x443877):null;return(_0x5a1089==null?void 0x0:_0x5a1089[_0x47d01d(0x337)])===_0x1ffd62?[{'tableId':_0x8f94a3['id'],'fieldId':_0x443877['id']}]:[];}));}const Ue=0x5,We=_0x5daf81(0x304);let Ge=function(_0x5ebbb3){const _0xda282f=_0x5daf81;return _0x5ebbb3[_0xda282f(0x4e1)]=_0xda282f(0x48a),_0x5ebbb3['MissingRecord']='missingRecord',_0x5ebbb3['SelfParent']=_0xda282f(0x343),_0x5ebbb3[_0xda282f(0x39e)]=_0xda282f(0x2a5),_0x5ebbb3[_0xda282f(0x37e)]=_0xda282f(0x25b),_0x5ebbb3['SortedView']=_0xda282f(0x3e5),_0x5ebbb3;}({});var P=class extends Error{constructor(_0x2a017b,_0x47caf3=_0x5daf81(0x460)+_0x2a017b){const _0x1e0b66=_0x5daf81;super(_0x47caf3),this[_0x1e0b66(0x340)]=_0x2a017b,this[_0x1e0b66(0x322)]=_0x1e0b66(0x214);}};let Ke=function(_0x49f493){const _0x5a45f0=_0x5daf81;return _0x49f493['UI']='ui',_0x49f493['Facade']=_0x5a45f0(0x328),_0x49f493[_0x5a45f0(0x285)]=_0x5a45f0(0x329),_0x49f493['Undo']=_0x5a45f0(0x3a8),_0x49f493[_0x5a45f0(0x50d)]=_0x5a45f0(0x424),_0x49f493[_0x5a45f0(0x3b4)]='import',_0x49f493;}({});function F(_0x5a5672,_0x2160cc){const _0x1eb0cd=_0x5daf81;if(!_0x2160cc)return!0x1;let _0x5d1336=_0x5a5672[_0x1eb0cd(0x503)][_0x2160cc];if(!_0x5d1336||_0x5d1336['type']!==_0x618ba[_0x1eb0cd(0x2e6)])return!0x1;let _0x4c2255=N(_0x5d1336);return _0x4c2255?_0x4c2255[_0x1eb0cd(0x337)]===_0x5a5672['id']&&_0x4c2255[_0x1eb0cd(0x3bd)]===!0x1:!0x1;}function qe(_0x61eb58){const _0x534b09=_0x5daf81;return[..._0x61eb58['fieldOrder'],...Object[_0x534b09(0x46f)](_0x61eb58['fields'])[_0x534b09(0x32f)](_0x1bf840=>!_0x61eb58[_0x534b09(0x1d6)][_0x534b09(0x4f9)](_0x1bf840))[_0x534b09(0x3c5)]()][_0x534b09(0x2d8)](_0x10b362=>{const _0x456e4d=_0x534b09;var _0xf01e6d;return F(_0x61eb58,_0x10b362)?((_0xf01e6d=N(_0x61eb58[_0x456e4d(0x503)][_0x10b362]))==null?void 0x0:_0xf01e6d[_0x456e4d(0x33e)])===_0x1d1c88[_0x456e4d(0x3fa)]:!0x1;})??null;}function Je(_0x5d5725){const _0x2efdfb=_0x5daf81;let _0x2244dd=qe(_0x5d5725);if(_0x2244dd)return _0x2244dd;let _0x1cf43d=We,_0x3a29e0=0x2;for(;_0x5d5725[_0x2efdfb(0x503)][_0x1cf43d];)_0x1cf43d=We+'_'+_0x3a29e0++;return _0x1cf43d;}function Ye(_0x1460fb,_0x53eff9=Je(_0x1460fb),_0x3c346f='Parent\x20Items'){const _0x3c33bb=_0x5daf81;return{'id':_0x53eff9,'name':_0x3c346f,'type':_0x618ba[_0x3c33bb(0x2e6)],'config':{'targetTableId':_0x1460fb['id'],'multiple':!0x1,'displayFieldId':_0x1460fb[_0x3c33bb(0x51f)],'pickerFieldIds':[_0x1460fb['primaryFieldId']],'relationRole':_0x1d1c88[_0x3c33bb(0x3fa)]}};}function Xe(_0x2b8d5){let _0x1b9e0a=qe(_0x2b8d5);return _0x1b9e0a?[_0x1b9e0a]:[];}function Ze(_0x10ac77,_0x1a0ace){const _0x53b75d=_0x5daf81;let _0x508d15=[...Xe(_0x10ac77)][_0x53b75d(0x32f)](_0x3080ce=>_0x1a0ace[_0x53b75d(0x387)](_0x2b5106=>Object[_0x53b75d(0x4e2)][_0x53b75d(0x4d7)]['call'](_0x2b5106[_0x53b75d(0x45b)],_0x3080ce)));if(!_0x508d15['length'])return[];let _0x1445fc={..._0x10ac77[_0x53b75d(0x43a)]};_0x1a0ace[_0x53b75d(0x429)](_0x128206=>{const _0x1b826f=_0x53b75d;let _0x1aadad=_0x1445fc[_0x128206[_0x1b826f(0x1c6)]];_0x1aadad&&(_0x1445fc[_0x128206[_0x1b826f(0x1c6)]]={..._0x1aadad,'values':{..._0x1aadad['values'],..._0x128206[_0x1b826f(0x45b)]}});});let _0x2756e9={..._0x10ac77,'records':_0x1445fc},_0x365422=[];return _0x508d15['forEach'](_0x21af0f=>{const _0x14b3d8=_0x53b75d;let _0x44b8cc=tt(_0x10ac77,_0x21af0f),_0x228cdd=tt(_0x2756e9,_0x21af0f);for(let [_0x2a5d28,_0x56307b]of _0x228cdd['invalidReasonByRecordId']){let _0x4f361b=_0x1a0ace[_0x14b3d8(0x387)](_0x31d144=>_0x31d144[_0x14b3d8(0x1c6)]===_0x2a5d28&&Object[_0x14b3d8(0x4e2)][_0x14b3d8(0x4d7)][_0x14b3d8(0x35d)](_0x31d144[_0x14b3d8(0x45b)],_0x21af0f));if(_0x44b8cc['invalidReasonByRecordId']['get'](_0x2a5d28)!==_0x56307b||_0x4f361b)throw new P($e(_0x56307b));}_0x1a0ace['forEach'](_0x494eda=>{const _0x421ac4=_0x14b3d8;if(!Object['prototype'][_0x421ac4(0x4d7)]['call'](_0x494eda['values'],_0x21af0f))return;let _0xe068f6=_0x44b8cc[_0x421ac4(0x4f3)][_0x421ac4(0x315)](_0x494eda[_0x421ac4(0x1c6)])??null,_0x189ae3=_0x228cdd[_0x421ac4(0x4f3)][_0x421ac4(0x315)](_0x494eda[_0x421ac4(0x1c6)])??null;_0xe068f6!==_0x189ae3&&_0x365422[_0x421ac4(0x482)]({'tableId':_0x10ac77['id'],'fieldId':_0x21af0f,'recordId':_0x494eda[_0x421ac4(0x1c6)],'oldParentRecordId':_0xe068f6,'parentRecordId':_0x189ae3});});}),_0x365422;}function Qe(_0x5be83f,_0x480734){const _0x3354c4=_0x5daf81;let _0x1822da=_0x480734[_0x3354c4(0x2b0)](_0x4f2549=>_0x4f2549['id']);if(new Set(_0x1822da)[_0x3354c4(0x323)]!==_0x1822da[_0x3354c4(0x21d)]||_0x1822da['some'](_0x3c0456=>_0x5be83f[_0x3354c4(0x43a)][_0x3c0456]))return[];let _0x44904c=Xe(_0x5be83f),_0x5bed29=_0x44904c['length']?null:Je(_0x5be83f),_0x70a02f=[..._0x44904c,..._0x5bed29&&_0x480734[_0x3354c4(0x387)](_0xfda14c=>Object[_0x3354c4(0x4e2)][_0x3354c4(0x4d7)][_0x3354c4(0x35d)](_0xfda14c[_0x3354c4(0x45b)],_0x5bed29))?[_0x5bed29]:[]]['filter'](_0x2c8e03=>_0x480734['some'](_0x23dab2=>Object[_0x3354c4(0x4e2)][_0x3354c4(0x4d7)][_0x3354c4(0x35d)](_0x23dab2[_0x3354c4(0x45b)],_0x2c8e03)));if(!_0x70a02f[_0x3354c4(0x21d)])return[];let _0x507a19={..._0x5be83f,'records':{..._0x5be83f[_0x3354c4(0x43a)],...Object['fromEntries'](_0x480734[_0x3354c4(0x2b0)](_0x47265f=>[_0x47265f['id'],_0x47265f]))},'recordOrder':[..._0x5be83f[_0x3354c4(0x3da)]??[],..._0x480734[_0x3354c4(0x2b0)](_0x5c5249=>_0x5c5249['id'])]},_0x58b673=[];return _0x70a02f['forEach'](_0x1edb98=>{let _0x1b158f=tt(_0x507a19,_0x1edb98);_0x480734['forEach'](_0xb1ca91=>{const _0x12feb4=_0x188f;let _0x222799=_0x1b158f['invalidReasonByRecordId']['get'](_0xb1ca91['id']);if(_0x222799)throw new P($e(_0x222799));let _0x99c655=_0x1b158f[_0x12feb4(0x4f3)][_0x12feb4(0x315)](_0xb1ca91['id'])??null;_0x99c655&&_0x58b673[_0x12feb4(0x482)]({'tableId':_0x5be83f['id'],'fieldId':_0x1edb98,'recordId':_0xb1ca91['id'],'oldParentRecordId':null,'parentRecordId':_0x99c655});});}),_0x58b673;}function $e(_0x1a3fa9){const _0x244163=_0x5daf81;switch(_0x1a3fa9){case _0x335882[_0x244163(0x515)]:return'missingRecord';case _0x335882[_0x244163(0x1fe)]:return _0x244163(0x343);case _0x335882['Cycle']:return'cycle';case _0x335882[_0x244163(0x37e)]:return _0x244163(0x25b);}}function et(_0x35a09,_0x592b9b){const _0x16cd44=_0x5daf81;let _0x209d6e=new Set(_0x592b9b),_0x5f2919=Xe(_0x35a09);return Object[_0x16cd44(0x45b)](_0x35a09[_0x16cd44(0x43a)])[_0x16cd44(0x36c)](_0x5f8e05=>_0x209d6e['has'](_0x5f8e05['id'])?[]:Array[_0x16cd44(0x404)](_0x5f2919)['flatMap'](_0x494dfb=>{const _0x954ad2=_0x16cd44;let _0x3018d8=Le(_0x5f8e05[_0x954ad2(0x45b)][_0x494dfb])[0x0]??null;return _0x3018d8&&_0x209d6e[_0x954ad2(0x253)](_0x3018d8)?[{'tableId':_0x35a09['id'],'fieldId':_0x494dfb,'recordId':_0x5f8e05['id'],'oldParentRecordId':_0x3018d8,'parentRecordId':null}]:[];}));}function tt(_0x394144,_0x5b1971,_0x1b88f8=_0x394144[_0x5daf81(0x3da)]??Object[_0x5daf81(0x46f)](_0x394144['records'])){const _0x4d308e=_0x5daf81;if((_0x394144[_0x4d308e(0x503)][_0x5b1971]||_0x5b1971!==Je(_0x394144))&&!F(_0x394144,_0x5b1971))throw Error(_0x4d308e(0x2e2)+_0x5b1971+_0x4d308e(0x1ca));let _0x2291c7=at(_0x394144,_0x1b88f8),_0x12e8fd=new Map(),_0x3ce67a=new Map();for(let _0x2a4256 of _0x2291c7){var _0x131851;let _0x536b4e=Le((_0x131851=_0x394144[_0x4d308e(0x43a)][_0x2a4256])==null?void 0x0:_0x131851[_0x4d308e(0x45b)][_0x5b1971])[0x0]??null;_0x536b4e?_0x536b4e===_0x2a4256?(_0x12e8fd['set'](_0x2a4256,null),_0x3ce67a[_0x4d308e(0x1ba)](_0x2a4256,_0x335882[_0x4d308e(0x1fe)])):_0x394144[_0x4d308e(0x43a)][_0x536b4e]?_0x12e8fd[_0x4d308e(0x1ba)](_0x2a4256,_0x536b4e):(_0x12e8fd[_0x4d308e(0x1ba)](_0x2a4256,null),_0x3ce67a[_0x4d308e(0x1ba)](_0x2a4256,_0x335882[_0x4d308e(0x515)])):_0x12e8fd['set'](_0x2a4256,null);}ot(_0x12e8fd,_0x3ce67a,_0x2291c7),st(_0x12e8fd,_0x3ce67a,_0x2291c7);let _0x55673c=new Map(_0x2291c7[_0x4d308e(0x2b0)]((_0x4f3e1c,_0x4171a3)=>[_0x4f3e1c,_0x4171a3])),_0x340088=new Map();for(let _0x564e13 of _0x2291c7){let _0x45a67b=_0x12e8fd['get'](_0x564e13)??null,_0x46921c=_0x340088['get'](_0x45a67b)??[];_0x46921c[_0x4d308e(0x482)](_0x564e13),_0x340088[_0x4d308e(0x1ba)](_0x45a67b,_0x46921c);}_0x340088['forEach'](_0x10575c=>_0x10575c[_0x4d308e(0x3c5)]((_0x26709f,_0x5a10e5)=>(_0x55673c[_0x4d308e(0x315)](_0x26709f)??0x0)-(_0x55673c[_0x4d308e(0x315)](_0x5a10e5)??0x0)));let _0x15d868=_0x340088['get'](null)??[],_0x3b02df=new Map(),_0xb83e4e=new Map(),_0x2ed102=[],_0x5a0452=(_0x2fa72b,_0x27e81f)=>{const _0x5ae5bb=_0x4d308e;_0x3b02df[_0x5ae5bb(0x1ba)](_0x2fa72b,_0x27e81f),_0x2ed102[_0x5ae5bb(0x482)](_0x2fa72b);let _0x2b0248=0x0;for(let _0x1826d8 of _0x340088[_0x5ae5bb(0x315)](_0x2fa72b)??[])_0x2b0248=Math[_0x5ae5bb(0x29c)](_0x2b0248,0x1+_0x5a0452(_0x1826d8,_0x27e81f+0x1));return _0xb83e4e[_0x5ae5bb(0x1ba)](_0x2fa72b,_0x2b0248),_0x2b0248;};return _0x15d868['forEach'](_0x523135=>_0x5a0452(_0x523135,0x0)),{'fieldId':_0x5b1971,'parentByRecordId':_0x12e8fd,'childrenByParentId':_0x340088,'depthByRecordId':_0x3b02df,'subtreeHeightByRecordId':_0xb83e4e,'invalidReasonByRecordId':_0x3ce67a,'rootRecordIds':_0x15d868,'orderedRecordIds':_0x2ed102};}function nt(_0xa7020e,_0x531883,_0x50b4e6=new Set(_0x531883[_0x5daf81(0x2b0)](_0x10e867=>_0x10e867['recordId']))){const _0xa22cdb=_0x5daf81;let _0x3bd46f=new Set(_0x50b4e6);for(let _0x4c6b4c of _0x50b4e6){let _0x3f5609=_0xa7020e[_0xa22cdb(0x4f3)]['get'](_0x4c6b4c)??null;for(;_0x3f5609;)_0x3bd46f[_0xa22cdb(0x4ee)](_0x3f5609),_0x3f5609=_0xa7020e['parentByRecordId']['get'](_0x3f5609)??null;}let _0x1de387=new Map(_0x531883[_0xa22cdb(0x2b0)](_0xb97c93=>[_0xb97c93[_0xa22cdb(0x1c6)],_0xb97c93])),_0xce7292=_0xa7020e[_0xa22cdb(0x4c4)]['filter'](_0x586bb0=>_0x3bd46f[_0xa22cdb(0x253)](_0x586bb0)),_0x44187f=_0xce7292[_0xa22cdb(0x36c)](_0x5adf8b=>{let _0x5834ae=_0x1de387['get'](_0x5adf8b);return _0x5834ae?[_0x5834ae]:[];}),_0x55a3d1={};for(let _0x2c30f1=0x0;_0x2c30f1<_0xce7292['length'];_0x2c30f1++){let _0x19e87e=_0xce7292[_0x2c30f1];_0x55a3d1[_0x19e87e]={'recordId':_0x19e87e,'parentRecordId':_0xa7020e[_0xa22cdb(0x4f3)][_0xa22cdb(0x315)](_0x19e87e)??null,'depth':_0xa7020e[_0xa22cdb(0x2f5)][_0xa22cdb(0x315)](_0x19e87e)??0x0,'directChildCount':(_0xa7020e[_0xa22cdb(0x3de)][_0xa22cdb(0x315)](_0x19e87e)??[])[_0xa22cdb(0x21d)],'subtreeHeight':_0xa7020e[_0xa22cdb(0x4a3)][_0xa22cdb(0x315)](_0x19e87e)??0x0,'subtreeEndIndex':_0x2c30f1,'invalidReason':_0xa7020e[_0xa22cdb(0x3d1)][_0xa22cdb(0x315)](_0x19e87e)};}let _0x3cb31a=[];for(let _0x481fd8=0x0;_0x481fd8<_0xce7292[_0xa22cdb(0x21d)];_0x481fd8++){let _0x43e5c7=_0xce7292[_0x481fd8],_0x505837=_0x55a3d1[_0x43e5c7][_0xa22cdb(0x398)];for(;_0x3cb31a[_0xa22cdb(0x21d)]&&_0x3cb31a[_0x3cb31a[_0xa22cdb(0x21d)]-0x1]['depth']>=_0x505837;){let _0x2f1301=_0x3cb31a[_0xa22cdb(0x401)]();_0x55a3d1[_0x2f1301['recordId']][_0xa22cdb(0x29a)]=_0x481fd8-0x1;}_0x3cb31a[_0xa22cdb(0x482)]({'recordId':_0x43e5c7,'depth':_0x505837});}return _0x3cb31a[_0xa22cdb(0x429)](({recordId:_0x29c9f0})=>{_0x55a3d1[_0x29c9f0]['subtreeEndIndex']=_0xce7292['length']-0x1;}),{'rows':_0x44187f,'hierarchy':{'fieldId':_0xa7020e[_0xa22cdb(0x4a1)],'rootRecordIds':_0xa7020e[_0xa22cdb(0x32b)]['filter'](_0x3e9bef=>_0x3bd46f['has'](_0x3e9bef)),'orderedRecordIds':_0xce7292,'nodes':_0x55a3d1}};}function rt(_0x58d5c2,_0x3b63e3){const _0x3af323=_0x5daf81;if(!_0x58d5c2['hierarchy']||!(_0x3b63e3!=null&&_0x3b63e3['size']))return _0x58d5c2[_0x3af323(0x372)];let _0x2579dd=[],_0x2ae289=0x0;for(;_0x2ae289<_0x58d5c2['rows'][_0x3af323(0x21d)];){let _0x37a4bf=_0x58d5c2['rows'][_0x2ae289];_0x2579dd['push'](_0x37a4bf);let _0x4f21f0=_0x58d5c2[_0x3af323(0x23c)][_0x3af323(0x42b)][_0x37a4bf[_0x3af323(0x1c6)]];_0x2ae289=_0x3b63e3['has'](_0x37a4bf['recordId'])&&_0x4f21f0?_0x4f21f0[_0x3af323(0x29a)]+0x1:_0x2ae289+0x1;}return _0x2579dd;}function it(_0x338ab9,_0x38c3f6,_0x19ba4a){const _0x277f4b=_0x5daf81;if(!_0x19ba4a)return{'valid':!0x0};if(_0x38c3f6===_0x19ba4a)return{'valid':!0x1,'reason':_0x335882['SelfParent']};let _0x3ba71f=_0x19ba4a;for(;_0x3ba71f;){if(_0x3ba71f===_0x38c3f6)return{'valid':!0x1,'reason':_0x335882['Cycle']};_0x3ba71f=_0x338ab9[_0x277f4b(0x4f3)]['get'](_0x3ba71f)??null;}return(_0x338ab9[_0x277f4b(0x2f5)]['get'](_0x19ba4a)??0x0)+0x1+(_0x338ab9['subtreeHeightByRecordId'][_0x277f4b(0x315)](_0x38c3f6)??0x0)>=0x5?{'valid':!0x1,'reason':_0x335882[_0x277f4b(0x37e)]}:{'valid':!0x0};}function at(_0x1fe0a6,_0x23f3b1){const _0x2a1da6=_0x5daf81;let _0x2b307f=new Set(),_0x2d0de4=[];for(let _0x13813b of _0x23f3b1)_0x1fe0a6[_0x2a1da6(0x43a)][_0x13813b]&&!_0x2b307f[_0x2a1da6(0x253)](_0x13813b)&&(_0x2b307f['add'](_0x13813b),_0x2d0de4[_0x2a1da6(0x482)](_0x13813b));return Object[_0x2a1da6(0x46f)](_0x1fe0a6[_0x2a1da6(0x43a)])[_0x2a1da6(0x3c5)]()[_0x2a1da6(0x429)](_0x4df542=>{const _0x1e74d5=_0x2a1da6;_0x2b307f['has'](_0x4df542)||_0x2d0de4[_0x1e74d5(0x482)](_0x4df542);}),_0x2d0de4;}function ot(_0x4ffaac,_0x5b53ac,_0x26644c){const _0x42f86a=_0x5daf81;let _0x18da7a=new Set();for(let _0x62e2b5 of _0x26644c){if(_0x18da7a['has'](_0x62e2b5))continue;let _0x35ab7b=[],_0x3ce983=new Map(),_0x1c4538=_0x62e2b5;for(;_0x1c4538&&!_0x18da7a['has'](_0x1c4538);){let _0x310778=_0x3ce983[_0x42f86a(0x315)](_0x1c4538);if(_0x310778!=null){let _0x235d26=[..._0x35ab7b[_0x42f86a(0x1cb)](_0x310778)][_0x42f86a(0x3c5)]()[_0x42f86a(0x401)]();_0x4ffaac[_0x42f86a(0x1ba)](_0x235d26,null),_0x5b53ac[_0x42f86a(0x1ba)](_0x235d26,_0x335882[_0x42f86a(0x39e)]);break;}_0x3ce983['set'](_0x1c4538,_0x35ab7b['length']),_0x35ab7b['push'](_0x1c4538),_0x1c4538=_0x4ffaac[_0x42f86a(0x315)](_0x1c4538)??null;}_0x35ab7b[_0x42f86a(0x429)](_0x526b0c=>_0x18da7a[_0x42f86a(0x4ee)](_0x526b0c));}}function st(_0x3b2601,_0x469725,_0x266f9e){const _0x22a719=_0x5daf81;let _0x1b945b=new Map(),_0x47361e=_0x40b234=>{const _0x4a0dd4=_0x188f;let _0x258f40=_0x1b945b['get'](_0x40b234);if(_0x258f40!=null)return _0x258f40;let _0x1833e4=_0x3b2601[_0x4a0dd4(0x315)](_0x40b234)??null;if(!_0x1833e4)return _0x1b945b[_0x4a0dd4(0x1ba)](_0x40b234,0x0),0x0;let _0x1f5148=_0x47361e(_0x1833e4)+0x1;return _0x1f5148>=0x5?(_0x3b2601['set'](_0x40b234,null),_0x469725['set'](_0x40b234,_0x335882['MaxDepth']),_0x1b945b[_0x4a0dd4(0x1ba)](_0x40b234,0x0),0x0):(_0x1b945b[_0x4a0dd4(0x1ba)](_0x40b234,_0x1f5148),_0x1f5148);};_0x266f9e[_0x22a719(0x429)](_0x47361e);}let ct=0x0;function lt(){const _0x4e36ad=_0x5daf81;if(globalThis[_0x4e36ad(0x42f)]===!0x0)return!0x0;try{let _0xfb20b9=typeof location>'u'?'':location[_0x4e36ad(0x318)],_0x51a0d1=new URLSearchParams(_0xfb20b9);if(_0x51a0d1['get'](_0x4e36ad(0x228))==='1'||_0x51a0d1['get']('basePerf')===_0x4e36ad(0x40e)||_0x51a0d1['get']('base-perf')==='1')return!0x0;}catch{}try{let _0x23cc0d=typeof localStorage>'u'?null:localStorage[_0x4e36ad(0x504)](_0x4e36ad(0x413));return _0x23cc0d==='1'||_0x23cc0d===_0x4e36ad(0x40e);}catch{return!0x1;}}function I(_0x1852da,_0x471984,_0x5132ae){const _0x294507=_0x5daf81;if(!lt())return _0x471984();let _0x9d33cf=dt(),_0x4b36f1=_0x294507(0x37c)+ct++;ft(_0x4b36f1+_0x294507(0x2e8));try{return _0x471984();}finally{let _0x4836ae=dt()-_0x9d33cf;ft(_0x4b36f1+':end'),pt(_0x1852da,_0x4b36f1+_0x294507(0x2e8),_0x4b36f1+_0x294507(0x379)),ut(_0x1852da,_0x4836ae,_0x5132ae);}}function ut(_0x3a69ae,_0x26ef4a,_0x5a0b23){const _0x2b22b9=_0x5daf81;if(!lt())return;let _0x3e4eff=Math[_0x2b22b9(0x447)](_0x26ef4a*0x64)/0x64,_0x4e918a=_0x5a0b23&&Object[_0x2b22b9(0x46f)](_0x5a0b23)[_0x2b22b9(0x21d)]?'\x20'+JSON[_0x2b22b9(0x439)](_0x5a0b23):'';console[_0x2b22b9(0x3b8)]('[BasePerf]\x20'+_0x3a69ae+':\x20'+_0x3e4eff+'ms'+_0x4e918a);}function dt(){const _0x508b0a=_0x5daf81;return typeof performance<'u'&&typeof performance[_0x508b0a(0x1d5)]==_0x508b0a(0x55e)?performance[_0x508b0a(0x1d5)]():Date[_0x508b0a(0x1d5)]();}function ft(_0x107346){const _0x40194b=_0x5daf81;try{if(typeof performance<'u'){var _0x21c011,_0xfe0258;(_0x21c011=(_0xfe0258=performance)[_0x40194b(0x2ad)])==null||_0x21c011[_0x40194b(0x35d)](_0xfe0258,_0x107346);}}catch{}}function pt(_0x265118,_0x201686,_0x499932){const _0x97b0e4=_0x5daf81;try{if(typeof performance<'u'){var _0x6733e9,_0x2b7c3b;(_0x6733e9=(_0x2b7c3b=performance)[_0x97b0e4(0x530)])==null||_0x6733e9[_0x97b0e4(0x35d)](_0x2b7c3b,_0x97b0e4(0x463)+_0x265118,_0x201686,_0x499932);}}catch{}}function L(_0x1115ce){const _0x484718=_0x5daf81;var _0x3335fa;return lt()?I(_0x484718(0x25a),()=>mt(_0x1115ce),{'tableId':_0x1115ce['id'],'records':Object[_0x484718(0x46f)](_0x1115ce[_0x484718(0x43a)]??{})[_0x484718(0x21d)],'fields':_0x1115ce[_0x484718(0x1d6)][_0x484718(0x21d)],'hasRecordOrder':!!((_0x3335fa=_0x1115ce[_0x484718(0x3da)])!=null&&_0x3335fa['length'])}):mt(_0x1115ce);}function mt(_0xaeb30b){const _0x2186c4=_0x5daf81;var _0x414198;let _0x361780=_0xaeb30b[_0x2186c4(0x43a)]??{},_0x15b6c0=_0xaeb30b['fields']??{},_0x576f42=((_0x414198=_0xaeb30b[_0x2186c4(0x3da)])==null?void 0x0:_0x414198[_0x2186c4(0x32f)](_0x297d85=>_0x361780[_0x297d85]))??[],_0xd46801=new Set(_0x576f42),_0xe2bc56=[];for(let _0x4c951a of Object['values'](_0x361780))_0xd46801['has'](_0x4c951a['id'])||_0xe2bc56[_0x2186c4(0x482)](_0x4c951a);let _0x4c2150=_0xe2bc56[_0x2186c4(0x21d)]?[..._0x576f42,...Rt(_0xe2bc56)]:_0x576f42,_0x435a3a=_0xaeb30b[_0x2186c4(0x1d6)][_0x2186c4(0x32f)](_0x1aab7=>_0x15b6c0[_0x1aab7]),_0x24d0ba={..._0xaeb30b['rowId']??{}},_0x22e3ba={..._0xaeb30b[_0x2186c4(0x33c)]??{}},_0x268e89={..._0xaeb30b['cellData']??{}};_0xaeb30b['recordOrder']=_0x4c2150,_0xaeb30b[_0x2186c4(0x2c4)]={},_0xaeb30b[_0x2186c4(0x1ec)]={},_0xaeb30b[_0x2186c4(0x3b9)]={},_0xaeb30b['colId']={},_0xaeb30b[_0x2186c4(0x1d3)]={},_0xaeb30b[_0x2186c4(0x48d)]={..._0xaeb30b['resources']??{}},_0xaeb30b['resources'][_0x2186c4(0x313)]={..._0xaeb30b[_0x2186c4(0x48d)][_0x2186c4(0x313)]??{}},_0xaeb30b[_0x2186c4(0x48d)][_0x2186c4(0x36f)]={..._0xaeb30b[_0x2186c4(0x48d)][_0x2186c4(0x36f)]??{}};let _0x21858c=_0xaeb30b['rowIndex'],_0xcea394=_0xaeb30b[_0x2186c4(0x1ec)],_0x1f1934=_0xaeb30b[_0x2186c4(0x3b9)],_0x3e12ab=_0xaeb30b[_0x2186c4(0x33c)],_0x2c2a55=_0xaeb30b[_0x2186c4(0x1d3)];return _0x4c2150[_0x2186c4(0x429)]((_0xc9a05,_0x10c0cb)=>{_0x21858c[_0xc9a05]=_0x10c0cb,_0xcea394[_0x10c0cb]=_0xc9a05;}),_0x435a3a[_0x2186c4(0x429)]((_0x158fc9,_0x235f3c)=>{_0x1f1934[_0x158fc9]=_0x235f3c,_0x3e12ab[_0x235f3c]=_0x158fc9;}),Object[_0x2186c4(0x2e4)](_0x268e89)[_0x2186c4(0x429)](([_0x597cf7,_0x19fddd])=>{const _0x3c73b7=_0x2186c4;let _0x323638=Number(_0x597cf7),_0x121af1=_0x24d0ba[_0x323638]??_0x4c2150[_0x323638],_0x5c6c23=_0x121af1?_0x21858c[_0x121af1]:void 0x0;_0x5c6c23!=null&&(_0x2c2a55[_0x5c6c23]={..._0x2c2a55[_0x5c6c23]??{}},Object[_0x3c73b7(0x2e4)](_0x19fddd??{})[_0x3c73b7(0x429)](([_0x968698,_0x40303f])=>{let _0x4d9462=Number(_0x968698),_0x5b3095=_0x22e3ba[_0x4d9462]??_0x435a3a[_0x4d9462],_0x154c6c=_0x5b3095?_0x1f1934[_0x5b3095]:void 0x0;_0x154c6c!=null&&(_0x2c2a55[_0x5c6c23][_0x154c6c]=St(_0x40303f));}));}),Object[_0x2186c4(0x45b)](_0x361780)[_0x2186c4(0x429)](_0x3b6b05=>{const _0x316d9a=_0x2186c4;let _0x474053=_0x21858c[_0x3b6b05['id']];_0x474053!=null&&(_0x3b6b05['values']={..._0x3b6b05['values']??{},[_0x4a6fc3]:_0x3b6b05['id']},_0x2c2a55[_0x474053]={..._0x2c2a55[_0x474053]??{},0x0:{'v':_0x3b6b05['id'],'t':_0x20fde0['STRING']}},Object[_0x316d9a(0x2e4)](_0x3b6b05[_0x316d9a(0x45b)]??{})[_0x316d9a(0x429)](([_0x2c5e3c,_0x1c06a5])=>{const _0x607ce6=_0x316d9a;let _0x5084bd=_0x15b6c0[_0x2c5e3c];(_0x5084bd==null?void 0x0:_0x5084bd[_0x607ce6(0x305)])===_0x618ba[_0x607ce6(0x1f8)]&&Dt(_0xaeb30b,_0x3b6b05['id'],_0x2c5e3c,_0x1c06a5);let _0x258a96=_0x1f1934[_0x2c5e3c];if(_0x258a96==null)return;let _0x80bb27=_0x2c2a55[_0x474053][_0x258a96];(_0x80bb27==null||jt(_0x80bb27,_0x5084bd,_0x1c06a5))&&(_0x2c2a55[_0x474053][_0x258a96]=xt(_0x1c06a5,_0x5084bd));}));}),_0xaeb30b;}function ht(_0x44b885,_0x41c07e){const _0x481e91=_0x5daf81;return _0x44b885[_0x481e91(0x43a)]=Object['fromEntries'](Object[_0x481e91(0x2e4)](_0x44b885[_0x481e91(0x43a)])[_0x481e91(0x2b0)](([_0x5ee859,_0x410dbb])=>[_0x5ee859,{..._0x410dbb}])),L(_0x44b885),Object[_0x481e91(0x2e4)](_0x44b885[_0x481e91(0x1ec)]??{})[_0x481e91(0x429)](([_0x4e8a26,_0x24419b])=>{const _0x245a26=_0x481e91;var _0x34f9da;let _0x39189e=Number(_0x4e8a26),_0x177182=_0x44b885[_0x245a26(0x43a)][_0x24419b];_0x177182&&(_0x177182[_0x245a26(0x45b)]={..._0x177182['values']??{}},Object[_0x245a26(0x2e4)](((_0x34f9da=_0x44b885[_0x245a26(0x1d3)])==null?void 0x0:_0x34f9da[_0x39189e])??{})[_0x245a26(0x429)](([_0x44ee64,_0x4f741f])=>{const _0x1d45a3=_0x245a26;var _0x34645f;let _0x438d1f=(_0x34645f=_0x44b885[_0x1d45a3(0x33c)])==null?void 0x0:_0x34645f[Number(_0x44ee64)];_0x438d1f&&_0x41c07e&&!_0x41c07e(_0x24419b,_0x438d1f)||(_0x438d1f===_0x4a6fc3?_0x177182['values'][_0x4a6fc3]=_0x177182['id']:_0x438d1f&&(_0x177182[_0x1d45a3(0x45b)][_0x438d1f]=Ct(_0x4f741f,_0x44b885[_0x1d45a3(0x503)][_0x438d1f],_0x44b885,_0x24419b)));}));}),_0x44b885;}function gt(_0x1aca0d,_0x196078){const _0x30016a=_0x5daf81;for(let {row:_0x57ba06,col:_0xb729e1}of _0x196078){var _0x48e0cb,_0x24c025,_0x1f5b70;let _0x11804f=(_0x48e0cb=_0x1aca0d[_0x30016a(0x1ec)])==null?void 0x0:_0x48e0cb[_0x57ba06],_0x985fa6=(_0x24c025=_0x1aca0d[_0x30016a(0x33c)])==null?void 0x0:_0x24c025[_0xb729e1],_0x14704c=_0x11804f?_0x1aca0d[_0x30016a(0x43a)][_0x11804f]:void 0x0;if(!_0x14704c||!_0x985fa6)continue;if(_0x985fa6===_0x4a6fc3){_0x14704c[_0x30016a(0x45b)][_0x4a6fc3]=_0x14704c['id'];continue;}let _0x358e9c=(_0x1f5b70=_0x1aca0d[_0x30016a(0x1d3)])==null||(_0x1f5b70=_0x1f5b70[_0x57ba06])==null?void 0x0:_0x1f5b70[_0xb729e1];(_0x358e9c!=null||Object[_0x30016a(0x4e2)][_0x30016a(0x4d7)][_0x30016a(0x35d)](_0x14704c['values']??{},_0x985fa6))&&(_0x14704c['values']={..._0x14704c['values']??{}},_0x14704c[_0x30016a(0x45b)][_0x985fa6]=Ct(_0x358e9c,_0x1aca0d[_0x30016a(0x503)][_0x985fa6],_0x1aca0d,_0x11804f));}return _0x1aca0d;}function _t(_0x365eb6,_0x19b129,_0xc952dc){const _0x3b7492=_0x5daf81;var _0x5771bd,_0x5efce9,_0x49b814,_0x1ad0ab,_0x57e87d,_0x57accb;let _0x52f51e=(_0x5771bd=_0x365eb6['rowIndex'])==null?void 0x0:_0x5771bd[_0x19b129],_0x5ae521=(_0x5efce9=_0x365eb6[_0x3b7492(0x3b9)])==null?void 0x0:_0x5efce9[_0xc952dc];if(_0x52f51e!=null&&_0x5ae521!=null&&((_0x49b814=_0x365eb6[_0x3b7492(0x1ec)])==null?void 0x0:_0x49b814[_0x52f51e])===_0x19b129&&((_0x1ad0ab=_0x365eb6[_0x3b7492(0x33c)])==null?void 0x0:_0x1ad0ab[_0x5ae521])===_0xc952dc)return{'row':_0x52f51e,'col':_0x5ae521};let _0x20443c=L(_0x365eb6),_0x5818c4=(_0x57e87d=_0x20443c['rowIndex'])==null?void 0x0:_0x57e87d[_0x19b129],_0x56b2ff=(_0x57accb=_0x20443c['colIndex'])==null?void 0x0:_0x57accb[_0xc952dc];return _0x5818c4==null||_0x56b2ff==null?null:{'row':_0x5818c4,'col':_0x56b2ff};}function vt(_0x5d5a92,_0xff6e29,_0x113026){const _0x1297a5=_0x5daf81;var _0x2cb9b1;let _0x2f95b4=_t(_0x5d5a92,_0xff6e29,_0x113026);if(_0x2f95b4)return(_0x2cb9b1=_0x5d5a92[_0x1297a5(0x1d3)])==null||(_0x2cb9b1=_0x2cb9b1[_0x2f95b4[_0x1297a5(0x406)]])==null?void 0x0:_0x2cb9b1[_0x2f95b4[_0x1297a5(0x2f0)]];}function yt(_0x46b0c6,_0x16fbb0,_0x5a86b3){const _0x44f9dd=_0x5daf81;var _0x41b392;let _0x2c8bad=vt(_0x46b0c6,_0x16fbb0,_0x5a86b3),_0x17bd52=_0x46b0c6[_0x44f9dd(0x503)][_0x5a86b3];if((_0x17bd52==null?void 0x0:_0x17bd52[_0x44f9dd(0x305)])===_0x618ba[_0x44f9dd(0x1f8)]){var _0x48315c;return Ot(_0x46b0c6,_0x16fbb0,_0x5a86b3)??kt((_0x48315c=_0x46b0c6[_0x44f9dd(0x43a)][_0x16fbb0])==null||(_0x48315c=_0x48315c[_0x44f9dd(0x45b)])==null?void 0x0:_0x48315c[_0x5a86b3]);}if(Mt(_0x17bd52)||Nt(_0x17bd52)||(_0x17bd52==null?void 0x0:_0x17bd52['type'])===_0x618ba[_0x44f9dd(0x42d)]){var _0xc8c3d6;let _0x5b6c1b=(_0xc8c3d6=_0x46b0c6['records'][_0x16fbb0])==null||(_0xc8c3d6=_0xc8c3d6['values'])==null?void 0x0:_0xc8c3d6[_0x5a86b3];return _0x5b6c1b!=null&&_0x5b6c1b!==''?At(_0x5b6c1b,_0x17bd52):Ct(_0x2c8bad,_0x17bd52,_0x46b0c6,_0x16fbb0);}return _0x2c8bad&&Object[_0x44f9dd(0x4e2)][_0x44f9dd(0x4d7)]['call'](_0x2c8bad,'v')?_0x2c8bad['v']??null:((_0x41b392=_0x46b0c6[_0x44f9dd(0x43a)][_0x16fbb0])==null||(_0x41b392=_0x41b392[_0x44f9dd(0x45b)])==null?void 0x0:_0x41b392[_0x5a86b3])??null;}function bt(_0x341e71,_0x537d4d,_0x1e00e5){const _0x6ef1b0=_0x5daf81;var _0x4e6190;let _0x3f878a=vt(_0x341e71,_0x537d4d,_0x1e00e5);if(_0x3f878a&&Object[_0x6ef1b0(0x4e2)][_0x6ef1b0(0x4d7)][_0x6ef1b0(0x35d)](_0x3f878a,'v'))return _0x3f878a['v']??null;let _0x431a6a=_0x341e71[_0x6ef1b0(0x503)][_0x1e00e5];return xt(((_0x4e6190=_0x341e71[_0x6ef1b0(0x43a)][_0x537d4d])==null||(_0x4e6190=_0x4e6190[_0x6ef1b0(0x45b)])==null?void 0x0:_0x4e6190[_0x1e00e5])??null,_0x431a6a)['v']??null;}function xt(_0x56b7b2,_0xacc67a){const _0x2d8187=_0x5daf81;if(Tt(_0x56b7b2))return(_0xacc67a==null?void 0x0:_0xacc67a[_0x2d8187(0x305)])===_0x618ba[_0x2d8187(0x1f8)]?{..._0x56b7b2,'v':'','t':_0x20fde0[_0x2d8187(0x376)]}:St(_0x56b7b2);if((_0xacc67a==null?void 0x0:_0xacc67a[_0x2d8187(0x305)])===_0x618ba[_0x2d8187(0x1f8)])return{'v':'','t':_0x20fde0[_0x2d8187(0x376)]};if(Nt(_0xacc67a)){let _0x17873a=Pt(_0x56b7b2);return{'v':_0x17873a,'t':Lt(_0x17873a)};}if(Mt(_0xacc67a))return{'v':Ft(_0x56b7b2)[_0x2d8187(0x30a)](',\x20'),'t':_0x20fde0['STRING']};if((_0xacc67a==null?void 0x0:_0xacc67a[_0x2d8187(0x305)])===_0x618ba[_0x2d8187(0x42d)]&&_0x56b7b2&&typeof _0x56b7b2==_0x2d8187(0x1fb)&&!Array[_0x2d8187(0x31e)](_0x56b7b2)){let _0x36ab42=_0x56b7b2;return{'v':String(_0x36ab42[_0x2d8187(0x38e)]??_0x36ab42[_0x2d8187(0x4fe)]??''),'t':_0x20fde0[_0x2d8187(0x376)]};}return _0x56b7b2===null||typeof _0x56b7b2=='string'||typeof _0x56b7b2=='number'||typeof _0x56b7b2==_0x2d8187(0x26c)?{'v':_0x56b7b2,'t':Lt(_0x56b7b2)}:{'v':null,'t':null};}function St(_0x4de46f){let _0x2a1a5b=zt(_0x4de46f['t'],_0x4de46f['v']);if(_0x2a1a5b===void 0x0){let {t:_0x46f7fa,..._0x4cb658}=_0x4de46f;return _0x4cb658;}return{..._0x4de46f,'t':_0x2a1a5b};}function Ct(_0x5ee744,_0x20e97e,_0x220775,_0x2c80ce){const _0x49f1d6=_0x5daf81;if(!_0x5ee744)return null;if((_0x20e97e==null?void 0x0:_0x20e97e[_0x49f1d6(0x305)])===_0x618ba[_0x49f1d6(0x1f8)])return _0x220775&&_0x2c80ce?Ot(_0x220775,_0x2c80ce,_0x20e97e['id'])??[]:[];if(Mt(_0x20e97e))return Ft(_0x5ee744['v']);if((_0x20e97e==null?void 0x0:_0x20e97e['type'])===_0x618ba[_0x49f1d6(0x42d)]&&_0x220775&&_0x2c80ce){var _0x5b10fa;let _0x1fa701=(_0x5b10fa=_0x220775[_0x49f1d6(0x43a)][_0x2c80ce])==null||(_0x5b10fa=_0x5b10fa['values'])==null?void 0x0:_0x5b10fa[_0x20e97e['id']];if(_0x1fa701&&typeof _0x1fa701=='object'&&!Array[_0x49f1d6(0x31e)](_0x1fa701))return _0x1fa701;}return Object[_0x49f1d6(0x4e2)][_0x49f1d6(0x4d7)][_0x49f1d6(0x35d)](_0x5ee744,'v')?_0x5ee744['v']??null:null;}function wt(_0x444026,_0x2e80ef,_0x408a4c,_0x41676c,_0x4f9a68){const _0xe745ba=_0x5daf81;return(_0x408a4c==null?void 0x0:_0x408a4c[_0xe745ba(0x305)])===_0x618ba['Attachment']?kt(_0x444026):Nt(_0x408a4c)?Pt(_0x444026):Mt(_0x408a4c)?Ft(_0x444026):(_0x408a4c==null?void 0x0:_0x408a4c['type'])===_0x618ba[_0xe745ba(0x42d)]&&(_0x444026==null||_0x444026==='')?null:(_0x408a4c==null?void 0x0:_0x408a4c[_0xe745ba(0x305)])===_0x618ba['Link']&&_0x444026&&typeof _0x444026==_0xe745ba(0x1fb)&&!Array[_0xe745ba(0x31e)](_0x444026)&&!Tt(_0x444026)?_0x444026:Ct(_0x2e80ef,_0x408a4c,_0x41676c,_0x4f9a68);}function Tt(_0x30fe28){const _0x31355c=_0x5daf81;return!!_0x30fe28&&typeof _0x30fe28=='object'&&(Object['prototype'][_0x31355c(0x4d7)][_0x31355c(0x35d)](_0x30fe28,'v')||Object[_0x31355c(0x4e2)][_0x31355c(0x4d7)]['call'](_0x30fe28,'t')||Object['prototype']['hasOwnProperty']['call'](_0x30fe28,'p')||Object[_0x31355c(0x4e2)]['hasOwnProperty'][_0x31355c(0x35d)](_0x30fe28,'f')||Object[_0x31355c(0x4e2)]['hasOwnProperty'][_0x31355c(0x35d)](_0x30fe28,'si'));}function Et(_0x22234c,_0x3a876b){return _0x22234c+'\x1f'+_0x3a876b;}function Dt(_0x2f8f0f,_0x4b5f62,_0xafcb17,_0x52d014){const _0x2a9ff3=_0x5daf81;let _0x29d606=kt(_0x52d014);_0x2f8f0f[_0x2a9ff3(0x48d)]={..._0x2f8f0f[_0x2a9ff3(0x48d)]??{}},_0x2f8f0f[_0x2a9ff3(0x48d)][_0x2a9ff3(0x313)]={..._0x2f8f0f[_0x2a9ff3(0x48d)]['attachmentSets']??{}},_0x2f8f0f[_0x2a9ff3(0x48d)][_0x2a9ff3(0x36f)]={..._0x2f8f0f[_0x2a9ff3(0x48d)]['attachments']??{}};let _0x310283=Et(_0xafcb17,_0x4b5f62),_0x3f65a4=[];for(let _0x22b32a=0x0;_0x22b32a<_0x29d606[_0x2a9ff3(0x21d)];_0x22b32a++){if(!(_0x22b32a in _0x29d606))continue;let _0x549220=_0x29d606[_0x22b32a],_0x4d391d=String(_0x549220['id']??_0x310283+'\x1f'+_0x22b32a),_0x4985d7={..._0x549220,'id':_0x4d391d};_0x2f8f0f[_0x2a9ff3(0x48d)][_0x2a9ff3(0x36f)][_0x4d391d]=_0x4985d7,_0x3f65a4[_0x2a9ff3(0x482)](_0x4d391d);}_0x2f8f0f['resources'][_0x2a9ff3(0x313)][_0x310283]=_0x3f65a4;}function Ot(_0x120cc3,_0x387afa,_0x380ebb){const _0x256dae=_0x5daf81;var _0xe424;let _0x992852=Et(_0x380ebb,_0x387afa),_0x33e24c=(_0xe424=_0x120cc3[_0x256dae(0x48d)])==null||(_0xe424=_0xe424['attachmentSets'])==null?void 0x0:_0xe424[_0x992852];if(!_0x33e24c)return null;let _0x5403c7=[];for(let _0x4da1d6=0x0;_0x4da1d6<_0x33e24c[_0x256dae(0x21d)];_0x4da1d6++){var _0x2767c6;if(!(_0x4da1d6 in _0x33e24c))continue;let _0x261343=(_0x2767c6=_0x120cc3[_0x256dae(0x48d)])==null||(_0x2767c6=_0x2767c6[_0x256dae(0x36f)])==null?void 0x0:_0x2767c6[_0x33e24c[_0x4da1d6]];_0x261343&&_0x5403c7['push']({..._0x261343});}return _0x5403c7;}function kt(_0x469489){const _0x450b77=_0x5daf81;if(_0x469489==null||_0x469489===''||Tt(_0x469489)&&!('id'in _0x469489)&&!(_0x450b77(0x322)in _0x469489))return[];let _0x2d2051=Array[_0x450b77(0x31e)](_0x469489)?_0x469489:[_0x469489],_0x4c53ab=[];for(let _0x5cf790=0x0;_0x5cf790<_0x2d2051[_0x450b77(0x21d)];_0x5cf790++){if(!(_0x5cf790 in _0x2d2051))continue;let _0x5e3045=_0x2d2051[_0x5cf790],_0x208339=_0x5e3045&&typeof _0x5e3045==_0x450b77(0x1fb)?{..._0x5e3045}:{'id':_0x450b77(0x44c)+_0x5cf790,'name':String(_0x5e3045)};Object[_0x450b77(0x46f)](_0x208339)[_0x450b77(0x21d)]>0x0&&_0x4c53ab[_0x450b77(0x482)](_0x208339);}return _0x4c53ab;}function At(_0x2c0e36,_0x852d76){const _0x286ed7=_0x5daf81;return(_0x852d76==null?void 0x0:_0x852d76[_0x286ed7(0x305)])===_0x618ba[_0x286ed7(0x1f8)]?kt(_0x2c0e36):Nt(_0x852d76)?Pt(_0x2c0e36):Mt(_0x852d76)?Ft(_0x2c0e36):_0x2c0e36;}function jt(_0x4d58ea,_0x5d3ec9,_0x1f70dc){const _0x22502f=_0x5daf81;return(_0x5d3ec9==null?void 0x0:_0x5d3ec9[_0x22502f(0x305)])===_0x618ba[_0x22502f(0x1f8)]?_0x4d58ea['v']!=='':Nt(_0x5d3ec9)?_0x4d58ea['v']!==Pt(_0x1f70dc):Mt(_0x5d3ec9)?Array[_0x22502f(0x31e)](_0x1f70dc)&&(_0x4d58ea['v']==null||_0x4d58ea['v']===''):!0x1;}function Mt(_0x3fe976){const _0x2fe5b6=_0x5daf81;return(_0x3fe976==null?void 0x0:_0x3fe976[_0x2fe5b6(0x305)])===_0x618ba[_0x2fe5b6(0x3a1)]||(_0x3fe976==null?void 0x0:_0x3fe976['type'])===_0x618ba[_0x2fe5b6(0x377)]||(_0x3fe976==null?void 0x0:_0x3fe976[_0x2fe5b6(0x305)])===_0x618ba['Person']&&_0x3fe976[_0x2fe5b6(0x396)][_0x2fe5b6(0x551)]===!0x0;}function Nt(_0x14e0bb){const _0x510eb6=_0x5daf81;return(_0x14e0bb==null?void 0x0:_0x14e0bb[_0x510eb6(0x305)])===_0x618ba[_0x510eb6(0x1e9)]&&_0x14e0bb['config'][_0x510eb6(0x551)]!==!0x0;}function Pt(_0x50dd17){const _0x16b9c8=_0x5daf81;let _0x45ca8f=Tt(_0x50dd17)?_0x50dd17['v']:_0x50dd17,_0x209a56=Array[_0x16b9c8(0x31e)](_0x45ca8f)?_0x45ca8f[0x0]:_0x45ca8f;return _0x209a56==null||_0x209a56===''?null:String(_0x209a56);}function Ft(_0x1213f9){const _0x47c2bb=_0x5daf81;if(_0x1213f9==null||_0x1213f9==='')return[];let _0x3a6846=[];if(Array[_0x47c2bb(0x31e)](_0x1213f9)){for(let _0x5880f9=0x0;_0x5880f9<_0x1213f9[_0x47c2bb(0x21d)];_0x5880f9++){if(!(_0x5880f9 in _0x1213f9))continue;let _0x49c070=It(_0x1213f9[_0x5880f9]);_0x49c070&&_0x3a6846['push'](_0x49c070);}return _0x3a6846;}for(let _0x438dcc of String(_0x1213f9)[_0x47c2bb(0x4d9)](',')){let _0xb6d5a1=_0x438dcc[_0x47c2bb(0x3a5)]();_0xb6d5a1&&_0x3a6846[_0x47c2bb(0x482)](_0xb6d5a1);}return _0x3a6846;}function It(_0x5822bd){const _0x4f854e=_0x5daf81;if(_0x5822bd==null)return'';if(typeof _0x5822bd==_0x4f854e(0x2ed)||typeof _0x5822bd==_0x4f854e(0x53d)||typeof _0x5822bd==_0x4f854e(0x26c))return String(_0x5822bd);if(typeof _0x5822bd==_0x4f854e(0x1fb)){let _0x5212a6=_0x5822bd;return String(_0x5212a6['id']??_0x5212a6[_0x4f854e(0x322)]??_0x5212a6[_0x4f854e(0x38e)]??'');}return String(_0x5822bd);}function Lt(_0x5f39f7){const _0x22505c=_0x5daf81;return _0x5f39f7==null?null:typeof _0x5f39f7==_0x22505c(0x53d)?_0x20fde0[_0x22505c(0x288)]:typeof _0x5f39f7==_0x22505c(0x26c)?_0x20fde0[_0x22505c(0x1b3)]:_0x20fde0['STRING'];}function Rt(_0x137abb){const _0x10f10a=_0x5daf81;_0x137abb[_0x10f10a(0x3c5)]((_0x43552d,_0x4b6e31)=>_0x43552d[_0x10f10a(0x2a2)][_0x10f10a(0x202)](_0x4b6e31[_0x10f10a(0x2a2)]));let _0x489c50=[];for(let _0x90eedb of _0x137abb)_0x489c50[_0x10f10a(0x482)](_0x90eedb['id']);return _0x489c50;}function zt(_0x204fcd,_0x1348df){const _0x50d8c3=_0x5daf81;return _0x204fcd===_0x20fde0['STRING']||_0x204fcd===_0x20fde0['NUMBER']||_0x204fcd===_0x20fde0['BOOLEAN']||_0x204fcd===_0x20fde0[_0x50d8c3(0x23e)]||_0x204fcd==null?_0x204fcd:Lt(_0x1348df??null);}function R(_0x575b44){const _0x1a7162=_0x5daf81;let _0xd0b0f3=null;for(let _0x96d5a5 of _0x575b44)_0xd0b0f3=_0xd0b0f3===null?_0x96d5a5:_0x1605a0[_0x1a7162(0x305)][_0x1a7162(0x363)](_0xd0b0f3,_0x96d5a5);return _0xd0b0f3;}var z=class e{static[_0x5daf81(0x547)](_0x55abb0,_0x47d471){const _0xd68165=_0x5daf81;let _0x4238e9=[];for(let _0x53092f of _0x47d471){let _0x3bad90=Bt(_0x53092f);if(!_0x3bad90||_0x3bad90[_0xd68165(0x3cb)]!==_0x55abb0['id'])return null;_0x4238e9[_0xd68165(0x482)](_0x3bad90['op']);}try{let _0x3d0ba0=R(_0x4238e9);return _0x3d0ba0===null?_0x55abb0:new e()[_0xd68165(0x525)](_0x55abb0,_0x3d0ba0);}catch{return null;}}[_0x5daf81(0x525)](_0x1deffa,_0x3d4c25){const _0x35e8e2=_0x5daf81;let _0x3d76e4=this['getAffectedRanges'](_0x3d4c25),_0xa9a7ef=I(_0x35e8e2(0x296),()=>Xt(_0x1deffa,_0x3d4c25),{'invalidations':_0x3d76e4['length']}),_0x329e7e=I(_0x35e8e2(0x30e),()=>_0x1605a0['type']['apply'](_0xa9a7ef,_0x3d4c25),{'invalidations':_0x3d76e4['length']}),_0x20fa1f=Ht(_0x329e7e,_0x3d76e4);return I(_0x35e8e2(0x38c),()=>Vt(_0x329e7e,_0x3d76e4),{'invalidations':_0x3d76e4[_0x35e8e2(0x21d)]})?(Ut(_0x329e7e,_0x20fa1f),_0x329e7e):(I(_0x35e8e2(0x21c),()=>{const _0x49a0f8=_0x35e8e2;this[_0x49a0f8(0x241)](_0x329e7e,_0x3d76e4)[_0x49a0f8(0x429)](_0x1c645e=>{const _0x63936=_0x49a0f8;let _0x51a54c=_0x3d76e4[_0x63936(0x32f)](_0x20eeb3=>_0x20eeb3[_0x63936(0x221)]===_0x1c645e['id']),_0x2e4769=_0x51a54c[_0x63936(0x21d)]>0x0&&_0x51a54c[_0x63936(0x2ab)](_0x2c45ec=>_0x2c45ec[_0x63936(0x483)]===_0x63936(0x50a)||_0x2c45ec[_0x63936(0x483)]==='view'||_0x2c45ec[_0x63936(0x483)]===_0x63936(0x203)||_0x2c45ec[_0x63936(0x483)]==='record')?new Set(_0x51a54c[_0x63936(0x36c)](_0x3107c4=>{const _0xe91cb0=_0x63936;var _0x51341e;if(_0x3107c4[_0xe91cb0(0x483)]!==_0xe91cb0(0x50a)||!_0x3107c4[_0xe91cb0(0x4a1)])return[];let _0x57faa4=(_0x51341e=_0x1deffa[_0xe91cb0(0x2f7)][_0x1c645e['id']])==null?void 0x0:_0x51341e['fields'][_0x3107c4[_0xe91cb0(0x4a1)]],_0x46bcc4=_0x1c645e[_0xe91cb0(0x503)][_0x3107c4['fieldId']];return(_0x57faa4==null?void 0x0:_0x57faa4[_0xe91cb0(0x305)])!==(_0x46bcc4==null?void 0x0:_0x46bcc4[_0xe91cb0(0x305)])||(_0x57faa4==null?void 0x0:_0x57faa4[_0xe91cb0(0x396)][_0xe91cb0(0x551)])!==(_0x46bcc4==null?void 0x0:_0x46bcc4[_0xe91cb0(0x396)][_0xe91cb0(0x551)])?[_0x3107c4[_0xe91cb0(0x4a1)]]:[];})):void 0x0,_0x272291=new Set(_0x51a54c['flatMap'](_0x1da0df=>{const _0x5727f8=_0x63936;var _0x224c1c,_0x68b238;return _0x1da0df[_0x5727f8(0x483)]!==_0x5727f8(0x203)||_0x1da0df[_0x5727f8(0x406)]==null||_0x1da0df['column']==null?[]:[JSON[_0x5727f8(0x439)]([(_0x224c1c=_0x1c645e[_0x5727f8(0x1ec)])==null?void 0x0:_0x224c1c[_0x1da0df['row']],(_0x68b238=_0x1c645e[_0x5727f8(0x33c)])==null?void 0x0:_0x68b238[_0x1da0df[_0x5727f8(0x1cc)]]])];}));ht(_0x1c645e,_0x2e4769?(_0x54c678,_0xd417fb)=>_0x2e4769[_0x63936(0x253)](_0xd417fb)||_0x272291[_0x63936(0x253)](JSON['stringify']([_0x54c678,_0xd417fb])):void 0x0);});},{'invalidations':_0x3d76e4['length']}),Ut(_0x329e7e,_0x20fa1f),_0x329e7e);}['invertOp'](_0x27554d,_0x235dee){const _0xdadd78=_0x5daf81;return _0x1605a0['type'][_0xdadd78(0x475)](_0x235dee,_0x27554d);}[_0x5daf81(0x26e)](_0x86bbb0){const _0x14dde7=_0x5daf81;let _0x3d28e8=qt(_0x86bbb0);return _0x3d28e8[_0x14dde7(0x21d)]?Jt(_0x3d28e8[_0x14dde7(0x36c)](_0x5c0beb=>this[_0x14dde7(0x26e)](_0x5c0beb))):Wt(_0x86bbb0);}[_0x5daf81(0x241)](_0x3a345d,_0x2aeff7){const _0x542747=_0x5daf81;let _0x11e2e4=_0x2aeff7[_0x542747(0x32f)](_0x5b729f=>_0x5b729f['reason']!==_0x542747(0x3a6));return _0x11e2e4[_0x542747(0x21d)]?_0x11e2e4[_0x542747(0x387)](_0x1e76f2=>!_0x1e76f2[_0x542747(0x221)])?Object[_0x542747(0x45b)](_0x3a345d[_0x542747(0x2f7)]??{}):Array[_0x542747(0x404)](new Set(_0x11e2e4['map'](_0x2b6457=>_0x2b6457['tableId'])))[_0x542747(0x36c)](_0x267a2a=>{const _0x27acb0=_0x542747;var _0x8af99a;let _0x4aa386=(_0x8af99a=_0x3a345d[_0x27acb0(0x2f7)])==null?void 0x0:_0x8af99a[_0x267a2a];return _0x4aa386?[_0x4aa386]:[];}):[];}};function Bt(_0x1a28bd){const _0x2c1858=_0x5daf81;let _0x669026=_0x1a28bd[_0x2c1858(0x422)];return _0x1a28bd['id']!=='base.mutation.apply-base-json1'||typeof _0x669026!=_0x2c1858(0x1fb)||!_0x669026||!(_0x2c1858(0x3cb)in _0x669026)||typeof _0x669026['unitId']!='string'||!('op'in _0x669026)||!Array[_0x2c1858(0x31e)](_0x669026['op'])?null:{'unitId':_0x669026[_0x2c1858(0x3cb)],'op':_0x669026['op']};}function Vt(_0x568cf2,_0x2304f1){const _0x3861dd=_0x5daf81;if(!_0x2304f1[_0x3861dd(0x21d)]||_0x2304f1['some'](_0x51bd43=>_0x51bd43[_0x3861dd(0x483)]!==_0x3861dd(0x203)))return!0x1;let _0x28759a=new Map();for(let _0x5a5e15 of _0x2304f1){if(!_0x5a5e15['tableId']||_0x5a5e15[_0x3861dd(0x406)]==null||_0x5a5e15[_0x3861dd(0x1cc)]==null)continue;let _0x599abd=_0x28759a[_0x3861dd(0x315)](_0x5a5e15[_0x3861dd(0x221)])??[];_0x599abd[_0x3861dd(0x482)]({'row':_0x5a5e15['row'],'col':_0x5a5e15[_0x3861dd(0x1cc)]}),_0x28759a[_0x3861dd(0x1ba)](_0x5a5e15[_0x3861dd(0x221)],_0x599abd);}return _0x28759a[_0x3861dd(0x429)]((_0x56f606,_0x1ca5d6)=>{const _0xfb5ea2=_0x3861dd;var _0x29386f;let _0x4d3282=(_0x29386f=_0x568cf2[_0xfb5ea2(0x2f7)])==null?void 0x0:_0x29386f[_0x1ca5d6];_0x4d3282&>(_0x4d3282,_0x56f606);}),!0x0;}function Ht(_0x460f49,_0x2a62fc){const _0x2fbab6=_0x5daf81;let _0xb4f688=new Set();return _0x2a62fc[_0x2fbab6(0x36c)](_0x3f385c=>{const _0x14a3ac=_0x2fbab6;var _0x3c903a;if(!_0x3f385c[_0x14a3ac(0x221)]||!_0x3f385c[_0x14a3ac(0x1c6)]||!_0x3f385c[_0x14a3ac(0x4a1)])return[];let _0x1a013d=_0x3f385c['tableId']+'\x1f'+_0x3f385c[_0x14a3ac(0x1c6)]+'\x1f'+_0x3f385c[_0x14a3ac(0x4a1)];if(_0xb4f688[_0x14a3ac(0x253)](_0x1a013d))return[];_0xb4f688[_0x14a3ac(0x4ee)](_0x1a013d);let _0x141a68=(_0x3c903a=_0x460f49[_0x14a3ac(0x2f7)][_0x3f385c[_0x14a3ac(0x221)]])==null||(_0x3c903a=_0x3c903a[_0x14a3ac(0x43a)][_0x3f385c[_0x14a3ac(0x1c6)]])==null?void 0x0:_0x3c903a[_0x14a3ac(0x45b)];return _0x141a68?[{'tableId':_0x3f385c[_0x14a3ac(0x221)],'recordId':_0x3f385c['recordId'],'fieldId':_0x3f385c[_0x14a3ac(0x4a1)],'exists':Object['prototype'][_0x14a3ac(0x4d7)][_0x14a3ac(0x35d)](_0x141a68,_0x3f385c[_0x14a3ac(0x4a1)]),'value':_0x141a68[_0x3f385c[_0x14a3ac(0x4a1)]]}]:[];});}function Ut(_0xf108f6,_0x53d945){_0x53d945['forEach'](_0x4b49c1=>{const _0x244b6d=_0x188f;var _0x3f54ea;let _0x46fcc1=(_0x3f54ea=_0xf108f6[_0x244b6d(0x2f7)][_0x4b49c1[_0x244b6d(0x221)]])==null||(_0x3f54ea=_0x3f54ea['records'][_0x4b49c1[_0x244b6d(0x1c6)]])==null?void 0x0:_0x3f54ea[_0x244b6d(0x45b)];_0x46fcc1&&(_0x4b49c1[_0x244b6d(0x4ac)]?_0x46fcc1[_0x4b49c1['fieldId']]=_0x4b49c1[_0x244b6d(0x3fd)]:delete _0x46fcc1[_0x4b49c1[_0x244b6d(0x4a1)]]);});}function Wt(_0x3f604b){const _0xe8bbd4=_0x5daf81;if(!Array[_0xe8bbd4(0x31e)](_0x3f604b)||_0x3f604b[_0xe8bbd4(0x21d)]<0x2)return[{'tableId':'','reason':_0xe8bbd4(0x275)}];let _0x409c31=_0x3f604b,_0x530959=_0x409c31['indexOf'](_0xe8bbd4(0x2f7));return _0x530959===-0x1||typeof _0x409c31[_0x530959+0x1]!=_0xe8bbd4(0x2ed)?_0x409c31[0x0]===_0xe8bbd4(0x3ee)?[]:[{'tableId':'','reason':_0xe8bbd4(0x275)}]:Gt(_0x409c31,_0x530959,String(_0x409c31[_0x530959+0x1]));}function Gt(_0x366d24,_0x8e4c6a,_0x44ec03){const _0x57dac5=_0x5daf81;let _0x452e9b=_0x366d24[_0x8e4c6a+0x2];return _0x452e9b===_0x57dac5(0x43a)&&typeof _0x366d24[_0x8e4c6a+0x3]==_0x57dac5(0x2ed)?Kt(_0x366d24,_0x8e4c6a,_0x44ec03,String(_0x366d24[_0x8e4c6a+0x3])):_0x452e9b===_0x57dac5(0x1d3)&&_0x366d24[_0x8e4c6a+0x3]!=null&&_0x366d24[_0x8e4c6a+0x4]!=null?[{'tableId':_0x44ec03,'reason':_0x57dac5(0x203),'row':Number(_0x366d24[_0x8e4c6a+0x3]),'column':Number(_0x366d24[_0x8e4c6a+0x4])}]:_0x452e9b==='fields'&&typeof _0x366d24[_0x8e4c6a+0x3]==_0x57dac5(0x2ed)?[{'tableId':_0x44ec03,'reason':_0x57dac5(0x50a),'fieldId':String(_0x366d24[_0x8e4c6a+0x3])}]:_0x452e9b===_0x57dac5(0x1d6)?[{'tableId':_0x44ec03,'reason':_0x57dac5(0x50a)}]:_0x452e9b===_0x57dac5(0x3da)?[{'tableId':_0x44ec03,'reason':_0x57dac5(0x1b5)}]:_0x452e9b==='views'&&typeof _0x366d24[_0x8e4c6a+0x3]==_0x57dac5(0x2ed)?[{'tableId':_0x44ec03,'reason':_0x57dac5(0x3a6),'viewId':String(_0x366d24[_0x8e4c6a+0x3])}]:_0x452e9b===_0x57dac5(0x410)?[{'tableId':_0x44ec03,'reason':_0x57dac5(0x3a6)}]:_0x452e9b==='resources'?[{'tableId':_0x44ec03,'reason':'cell'}]:[{'tableId':_0x44ec03,'reason':_0x452e9b===void 0x0?_0x57dac5(0x524):_0x57dac5(0x275)}];}function Kt(_0x17c3d4,_0x224643,_0x260351,_0x409fb8){const _0x90df2c=_0x5daf81;return _0x17c3d4[_0x224643+0x4]==='values'&&typeof _0x17c3d4[_0x224643+0x5]==_0x90df2c(0x2ed)?[{'tableId':_0x260351,'reason':_0x90df2c(0x203),'recordId':_0x409fb8,'fieldId':String(_0x17c3d4[_0x224643+0x5])}]:_0x17c3d4[_0x224643+0x4]===_0x90df2c(0x35b)||_0x17c3d4[_0x224643+0x4]==='updatedBy'?[]:[{'tableId':_0x260351,'reason':_0x90df2c(0x1b5),'recordId':_0x409fb8}];}function qt(_0x153582){const _0x465df8=_0x5daf81;if(!Array[_0x465df8(0x31e)](_0x153582))return[];let _0x422daa=_0x153582[_0x465df8(0x32f)](Array[_0x465df8(0x31e)]);if(_0x422daa[_0x465df8(0x21d)]>0x1&&_0x422daa[_0x465df8(0x21d)]===_0x153582['length'])return _0x422daa;let _0x41aed2=_0x153582[_0x465df8(0x564)](Array[_0x465df8(0x31e)]);if(_0x41aed2>0x0&&_0x153582[_0x465df8(0x1cb)](_0x41aed2)[_0x465df8(0x2ab)](Array['isArray'])){let _0x48b17e=_0x153582[_0x465df8(0x1cb)](0x0,_0x41aed2);return _0x153582[_0x465df8(0x1cb)](_0x41aed2)[_0x465df8(0x2b0)](_0x31bb9e=>[..._0x48b17e,..._0x31bb9e]);}let _0xb7b2c8=_0x153582['indexOf'](_0x465df8(0x2f7));if(_0xb7b2c8===-0x1||typeof _0x153582[_0xb7b2c8+0x1]!=_0x465df8(0x2ed))return[];let _0x95802f=String(_0x153582[_0xb7b2c8+0x1]),_0x2273ab=_0x153582[_0x465df8(0x1cb)](_0xb7b2c8+0x2)[_0x465df8(0x32f)](Array['isArray']);return _0x2273ab[_0x465df8(0x21d)]<=0x1?[]:_0x2273ab[_0x465df8(0x2b0)](_0x346b90=>['tables',_0x95802f,..._0x346b90]);}function Jt(_0x1b30b8){let _0x4c4abe=new Set();return _0x1b30b8['filter'](_0x1a0dd8=>{const _0x44a048=_0x188f;let _0x4a63c7=JSON['stringify'](_0x1a0dd8);return!_0x4c4abe[_0x44a048(0x253)](_0x4a63c7)&&(_0x4c4abe[_0x44a048(0x4ee)](_0x4a63c7),!0x0);});}function Yt(_0x221093){const _0x4db03c=_0x5daf81;return _0x9abbbc[_0x4db03c(0x28e)](_0x221093);}function Xt(_0x302971,_0x573626){const _0x52949d=_0x5daf81;let _0x127887=Zt(_0x573626);if(!_0x127887[_0x52949d(0x21d)])return Yt(_0x302971);let _0x5e9935=an(_0x302971),_0x352e11=new Set();for(let _0x733dcc of _0x127887)en(_0x5e9935,_0x733dcc,_0x352e11);return _0x5e9935;}function Zt(_0x486b05){let _0x5d073d=[];return Qt(_0x486b05,[],_0x5d073d),_0x5d073d;}function Qt(_0x1be515,_0x3baead,_0x2206f2){const _0x2e6384=_0x5daf81;if(!Array[_0x2e6384(0x31e)](_0x1be515))return;let _0x2e221a=[];for(let _0x59d30f of _0x1be515)Array[_0x2e6384(0x31e)](_0x59d30f)?Qt(_0x59d30f,[..._0x3baead,..._0x2e221a],_0x2206f2):$t(_0x59d30f)?_0x2206f2[_0x2e6384(0x482)]([..._0x3baead,..._0x2e221a]):(typeof _0x59d30f=='string'||typeof _0x59d30f=='number')&&_0x2e221a[_0x2e6384(0x482)](_0x59d30f);}function $t(_0x1a5ac2){const _0x437ffe=_0x5daf81;if(!_0x1a5ac2||typeof _0x1a5ac2!=_0x437ffe(0x1fb)||Array[_0x437ffe(0x31e)](_0x1a5ac2))return!0x1;let _0x306ab9=_0x1a5ac2;return'i'in _0x306ab9||'r'in _0x306ab9||'p'in _0x306ab9||'d'in _0x306ab9||'es'in _0x306ab9||'ena'in _0x306ab9||'et'in _0x306ab9;}function en(_0x1c7122,_0x55f87a,_0xab95e){const _0x1946ba=_0x5daf81;let _0x4f69ef=_0x1c7122,_0x3abaeb=[];for(let _0x388a34=0x0;_0x388a34<_0x55f87a['length']-0x1;_0x388a34++){let _0x474f0e=_0x55f87a[_0x388a34];_0x3abaeb['push'](_0x474f0e);let _0x330945=tn(_0x4f69ef,_0x474f0e);if(!rn(_0x330945))return;let _0x1cdf03=JSON[_0x1946ba(0x439)](_0x3abaeb);_0xab95e[_0x1946ba(0x253)](_0x1cdf03)||(nn(_0x4f69ef,_0x474f0e,an(_0x330945)),_0xab95e['add'](_0x1cdf03));let _0x1cdab7=tn(_0x4f69ef,_0x474f0e);if(!rn(_0x1cdab7))return;_0x4f69ef=_0x1cdab7;}}function tn(_0x8514ca,_0x2f19aa){const _0x4e03a8=_0x5daf81;return Array['isArray'](_0x8514ca)?typeof _0x2f19aa==_0x4e03a8(0x53d)?_0x8514ca[_0x2f19aa]:void 0x0:Reflect['get'](_0x8514ca,_0x2f19aa);}function nn(_0x46c8b7,_0xa6ad96,_0x3ecf29){const _0x423842=_0x5daf81;Array[_0x423842(0x31e)](_0x46c8b7)?typeof _0xa6ad96==_0x423842(0x53d)&&(_0x46c8b7[_0xa6ad96]=_0x3ecf29):Reflect[_0x423842(0x1ba)](_0x46c8b7,_0xa6ad96,_0x3ecf29);}function rn(_0x255b0f){const _0xb9d219=_0x5daf81;return!!_0x255b0f&&typeof _0x255b0f==_0xb9d219(0x1fb);}function an(_0x3e5f75){const _0x2417a2=_0x5daf81;return Array['isArray'](_0x3e5f75)?_0x3e5f75[_0x2417a2(0x1cb)]():{..._0x3e5f75};}const on=_0x5daf81(0x286),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x5daf81(0x2bb),'yyyy-mm-dd':_0x5daf81(0x42a),'mm-dd':_0x5daf81(0x311),'mm/dd/yyyy':'MM/DD/YYYY','dd/mm/yyyy':'DD/MM/YYYY','mmm\x20d,\x20yyyy':'MMM\x20D,\x20YYYY'};function B(_0x2e8546,_0x163416=_0x7c5fe2[_0x5daf81(0x486)]){const _0x49314b=_0x5daf81;let _0x15c5e5=_0x35a742(_0x2e8546)[_0x49314b(0x2fd)]();return _0x3f8456(new Date(_0x15c5e5),_0x163416);}function ln(_0x560953,_0x25520f=_0x7c5fe2[_0x5daf81(0x486)]){const _0x50589e=_0x5daf81;return _0x4cb662(_0x560953,_0x25520f)[_0x50589e(0x489)]();}function un(_0x4d5ee8,_0x449fb6=_0x7c5fe2[_0x5daf81(0x486)]){const _0x2e7622=_0x5daf81;if(_0x4d5ee8==null||_0x4d5ee8==='')return null;if(_0x4d5ee8 instanceof Date)return B(_0x4d5ee8,_0x449fb6);if(typeof _0x4d5ee8=='number')return Number[_0x2e7622(0x2fc)](_0x4d5ee8)?_0x4d5ee8>0xf4240?B(_0x4d5ee8,_0x449fb6):_0x4d5ee8:null;let _0x1b1b8b=Date['parse'](String(_0x4d5ee8));return Number[_0x2e7622(0x24e)](_0x1b1b8b)?null:B(_0x1b1b8b,_0x449fb6);}function dn(_0x2212c8,_0x3d9301=_0x7c5fe2[_0x5daf81(0x486)]){let _0x21a292=un(_0x2212c8,_0x3d9301);return _0x21a292==null?null:ln(_0x21a292,_0x3d9301);}function fn(_0x41b844={}){const _0x4e9643=_0x5daf81;let _0x8ca812=String(_0x41b844['pattern']??_0x41b844[_0x4e9643(0x444)]??_0x41b844['dateFormat']??on)[_0x4e9643(0x3a5)]()||on,_0x3fb2a0=sn['test'](_0x8ca812);return{'pattern':_0x8ca812[_0x4e9643(0x39b)](sn,'')||on,'includeTime':typeof _0x41b844[_0x4e9643(0x427)]=='boolean'?_0x41b844[_0x4e9643(0x427)]:_0x3fb2a0,'hourCycle':_0x41b844[_0x4e9643(0x484)]===_0x4e9643(0x4fc)?_0x4e9643(0x4fc):_0x4e9643(0x34c)};}function pn(_0x17015c={}){let {format:_0x203ce8,dateFormat:_0x646578,..._0x27f281}=_0x17015c;return{..._0x27f281,...fn(_0x17015c)};}function mn(_0xda8232,_0xf4de4c={}){const _0x2f5d59=_0x5daf81;let _0x1739aa=dn(_0xda8232);if(_0x1739aa==null||!Number[_0x2f5d59(0x2fc)](_0x1739aa))return'';let _0x58f050=fn(_0xf4de4c);return _0x35a742(_0x1739aa)['format'](hn(_0x58f050));}function hn(_0x362156){const _0x4bf2aa=_0x5daf81;let {pattern:_0x11f1c8,includeTime:_0x2788f1,hourCycle:_0x193a72}=_0x362156,_0x1f01be=cn[_0x11f1c8]??cn[on];return _0x2788f1?_0x1f01be+'\x20'+(_0x193a72===_0x4bf2aa(0x4fc)?_0x4bf2aa(0x3d9):_0x4bf2aa(0x28a)):_0x1f01be;}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([_0x618ba[_0x5daf81(0x28f)]]);function vn(_0x4ecb23){const _0x4fd232=_0x5daf81;switch(_0x4ecb23){case _0x618ba[_0x4fd232(0x480)]:case _0x618ba[_0x4fd232(0x20a)]:case _0x618ba['Progress']:case _0x618ba['Rating']:return[_0xb7a4f0['IS'],_0xb7a4f0[_0x4fd232(0x46b)],_0xb7a4f0[_0x4fd232(0x533)],_0xb7a4f0[_0x4fd232(0x49f)],_0xb7a4f0['IS_EMPTY'],_0xb7a4f0[_0x4fd232(0x53f)]];case _0x618ba[_0x4fd232(0x47c)]:case _0x618ba[_0x4fd232(0x3fb)]:case _0x618ba[_0x4fd232(0x29f)]:return[_0xb7a4f0['IS'],_0xb7a4f0[_0x4fd232(0x46b)],_0xb7a4f0['BEFORE'],_0xb7a4f0[_0x4fd232(0x35f)],_0xb7a4f0['IS_EMPTY'],_0xb7a4f0[_0x4fd232(0x53f)]];case _0x618ba[_0x4fd232(0x4bb)]:return[_0xb7a4f0['IS'],_0xb7a4f0['IS_NOT']];default:return[_0xb7a4f0['IS'],_0xb7a4f0[_0x4fd232(0x46b)],_0xb7a4f0[_0x4fd232(0x421)],_0xb7a4f0['NOT_CONTAINS'],_0xb7a4f0['IS_EMPTY'],_0xb7a4f0[_0x4fd232(0x53f)]];}}function yn(_0x504923){const _0x1b38b5=_0x5daf81;return _0x504923===_0x618ba[_0x1b38b5(0x47c)]||_0x504923===_0x618ba[_0x1b38b5(0x3fb)]||_0x504923===_0x618ba[_0x1b38b5(0x29f)];}function bn(_0xa5fc1,_0x464b11){const _0xeb66c0=_0x5daf81;return _0xa5fc1==null&&_0x464b11==null?0x0:_0xa5fc1==null?-0x1:_0x464b11==null?0x1:typeof _0xa5fc1==_0xeb66c0(0x53d)&&typeof _0x464b11==_0xeb66c0(0x53d)?_0xa5fc1-_0x464b11:String(_0xa5fc1)['localeCompare'](String(_0x464b11));}function xn(_0x1489db,_0x1bf09a,_0x3e9d37,_0x41065d,_0x5cf307={}){const _0x53db1=_0x5daf81;if(_0x1bf09a===_0x53db1(0x32a))return Sn(_0x1489db);if(_0x1bf09a===_0x53db1(0x558))return!Sn(_0x1489db);switch(_0x41065d[_0x53db1(0x305)]){case _0x618ba[_0x53db1(0x480)]:case _0x618ba[_0x53db1(0x20a)]:case _0x618ba['Progress']:case _0x618ba[_0x53db1(0x238)]:return Cn(_0x1489db,_0x1bf09a,_0x3e9d37);case _0x618ba[_0x53db1(0x47c)]:case _0x618ba[_0x53db1(0x3fb)]:case _0x618ba[_0x53db1(0x29f)]:return Tn(_0x1489db,_0x1bf09a,_0x3e9d37,_0x5cf307);case _0x618ba['Checkbox']:return jn(_0x1489db,_0x1bf09a,_0x3e9d37);case _0x618ba['SingleSelect']:case _0x618ba[_0x53db1(0x3a1)]:case _0x618ba[_0x53db1(0x1e9)]:case _0x618ba[_0x53db1(0x377)]:return Nn(_0x1489db,_0x1bf09a,_0x3e9d37,_0x41065d);default:return Pn(_0x1489db,_0x1bf09a,_0x3e9d37);}}function Sn(_0x3925fe){const _0x5a0fa2=_0x5daf81;return _0x3925fe==null?!0x0:Array['isArray'](_0x3925fe)?_0x3925fe[_0x5a0fa2(0x21d)]===0x0:typeof _0x3925fe==_0x5a0fa2(0x2ed)&&_0x3925fe[_0x5a0fa2(0x3a5)]()==='';}function Cn(_0x39cc48,_0x59c951,_0x3c8af5){const _0x31677e=_0x5daf81;let _0x1bd7b9=wn(_0x39cc48),_0x23764b=wn(_0x3c8af5);if(_0x1bd7b9==null||_0x23764b==null)return!0x1;switch(_0x59c951){case'is':return _0x1bd7b9===_0x23764b;case _0x31677e(0x4b5):return _0x1bd7b9!==_0x23764b;case _0x31677e(0x4fd):return _0x1bd7b9>_0x23764b;case _0x31677e(0x514):return _0x1bd7b9>=_0x23764b;case _0x31677e(0x1f1):return _0x1bd7b9<_0x23764b;case _0x31677e(0x4b7):return _0x1bd7b9<=_0x23764b;default:return!0x1;}}function wn(_0x53b4dd){const _0x3179e8=_0x5daf81;if(_0x53b4dd==null||_0x53b4dd==='')return null;let _0x3a1399=Number(_0x53b4dd);return Number[_0x3179e8(0x2fc)](_0x3a1399)?_0x3a1399:null;}function Tn(_0x366662,_0x28fca4,_0x1d8cb0,_0x480817){const _0x165c17=_0x5daf81;let _0x40b1e1=Dn(_0x366662);if(_0x40b1e1==null)return!0x1;let _0x484a0c=En(_0x480817[_0x165c17(0x431)]??_0x1a2fb9[_0x165c17(0x4b8)],_0x1d8cb0,_0x480817[_0x165c17(0x1d5)]);if(!_0x484a0c)return!0x1;switch(_0x28fca4){case _0xb7a4f0['IS']:return _0x40b1e1>=_0x484a0c['start']&&_0x40b1e1<=_0x484a0c['end'];case _0xb7a4f0[_0x165c17(0x46b)]:return _0x40b1e1<_0x484a0c[_0x165c17(0x455)]||_0x40b1e1>_0x484a0c[_0x165c17(0x2fe)];case _0xb7a4f0['BEFORE']:return _0x40b1e1<_0x484a0c[_0x165c17(0x455)];case _0xb7a4f0['AFTER']:return _0x40b1e1>_0x484a0c[_0x165c17(0x2fe)];default:return!0x1;}}function En(_0x489766,_0x2702cf,_0x440320=Date[_0x5daf81(0x1d5)]()){const _0x14e9aa=_0x5daf81;let _0x7e5b5f=On(_0x440320);switch(_0x489766){case _0x1a2fb9['EXACT']:{let _0x23d427=Dn(_0x2702cf);return _0x23d427==null?null:V(_0x23d427,0x0,0x1);}case _0x1a2fb9['TODAY']:return V(_0x7e5b5f,0x0,0x1);case _0x1a2fb9['TOMORROW']:return V(_0x7e5b5f,0x1,0x1);case _0x1a2fb9['YESTERDAY']:return V(_0x7e5b5f,-0x1,0x1);case _0x1a2fb9[_0x14e9aa(0x445)]:return kn(_0x7e5b5f,0x0);case _0x1a2fb9[_0x14e9aa(0x2a9)]:return kn(_0x7e5b5f,-0x1);case _0x1a2fb9[_0x14e9aa(0x307)]:return An(_0x7e5b5f,0x0);case _0x1a2fb9['LAST_MONTH']:return An(_0x7e5b5f,-0x1);case _0x1a2fb9[_0x14e9aa(0x30f)]:return V(_0x7e5b5f,-0x6,0x7);case _0x1a2fb9['NEXT_7_DAYS']:return V(_0x7e5b5f,0x0,0x7);case _0x1a2fb9[_0x14e9aa(0x269)]:return V(_0x7e5b5f,-0x1d,0x1e);case _0x1a2fb9[_0x14e9aa(0x505)]:return V(_0x7e5b5f,0x0,0x1e);}}function Dn(_0xc1b2dd){let _0x4bbc47=un(_0xc1b2dd);return _0x4bbc47==null?null:On(ln(_0x4bbc47));}function On(_0x3060d4){const _0x3bc371=_0x5daf81;let _0x49627f=new Date(_0x3060d4);return _0x49627f[_0x3bc371(0x1d2)](0x0,0x0,0x0,0x0),_0x49627f[_0x3bc371(0x489)]();}function kn(_0x5f092f,_0x418934){const _0xc83191=_0x5daf81;return V(_0x5f092f,-((new Date(_0x5f092f)[_0xc83191(0x2d5)]()+0x6)%0x7)+_0x418934*0x7,0x7);}function V(_0x12d9ac,_0x32c4fa,_0x4f5820){const _0xaec165=_0x5daf81;let _0x164ac4=_0x35a742(_0x12d9ac)['add'](_0x32c4fa,_0xaec165(0x2d1));return{'start':_0x164ac4[_0xaec165(0x2fd)](),'end':_0x164ac4['add'](_0x4f5820,_0xaec165(0x2d1))[_0xaec165(0x2fd)]()-0x1};}function An(_0x83c0e0,_0x4bf0ea){const _0x2d570a=_0x5daf81;let _0x8f20f8=new Date(_0x83c0e0),_0xe22398=new Date(_0x8f20f8['getFullYear'](),_0x8f20f8[_0x2d570a(0x40d)]()+_0x4bf0ea,0x1),_0x289800=new Date(_0x8f20f8[_0x2d570a(0x52b)](),_0x8f20f8[_0x2d570a(0x40d)]()+_0x4bf0ea+0x1,0x1);return{'start':_0xe22398[_0x2d570a(0x489)](),'end':_0x289800[_0x2d570a(0x489)]()-0x1};}function jn(_0x5d2dad,_0x41cf9c,_0x1deaa8){const _0x5c99c0=_0x5daf81;let _0x4f2e6e=Mn(_0x5d2dad),_0x32744f=Mn(_0x1deaa8);switch(_0x41cf9c){case'is':return _0x4f2e6e===_0x32744f;case _0x5c99c0(0x4b5):return _0x4f2e6e!==_0x32744f;default:return!0x1;}}function Mn(_0x42fe02){return _0x42fe02===!0x0||_0x42fe02==='true'||_0x42fe02===0x1||_0x42fe02==='1';}function Nn(_0xb6606f,_0x2998fa,_0x350bdc,_0x1f15a3){const _0x4b8fa7=_0x5daf81;let _0x5dee61=In(_0xb6606f,_0x1f15a3),_0x2f7850=In(_0x350bdc,_0x1f15a3),_0x2d708c=_0x2f7850[_0x4b8fa7(0x21d)]>0x0&&_0x2f7850['some'](_0x3005c4=>_0x5dee61[_0x4b8fa7(0x4f9)](_0x3005c4));switch(_0x2998fa){case'is':case _0x4b8fa7(0x293):return _0x2d708c;case _0x4b8fa7(0x4b5):case _0x4b8fa7(0x1d9):return!_0x2d708c;default:return!0x1;}}function Pn(_0x5ac89a,_0x1c9c5e,_0x5bb060){const _0x326705=_0x5daf81;let _0x5eafcd=Fn(_0x5ac89a),_0x2d80e5=Fn(_0x5bb060);switch(_0x1c9c5e){case'is':return _0x5eafcd===_0x2d80e5;case _0x326705(0x4b5):return _0x5eafcd!==_0x2d80e5;case _0x326705(0x293):return _0x2d80e5?_0x5eafcd[_0x326705(0x4f9)](_0x2d80e5):!0x1;case _0x326705(0x1d9):return!_0x2d80e5||!_0x5eafcd[_0x326705(0x4f9)](_0x2d80e5);default:return!0x1;}}function Fn(_0x49367d){const _0x20a812=_0x5daf81;if(Array[_0x20a812(0x31e)](_0x49367d))return _0x49367d[_0x20a812(0x2b0)](_0x4f7814=>Fn(_0x4f7814))[_0x20a812(0x30a)]('\x0a');if(_0x49367d&&typeof _0x49367d==_0x20a812(0x1fb)){let _0x3117af=_0x49367d;return String(_0x3117af['name']??_0x3117af[_0x20a812(0x20b)]??_0x3117af[_0x20a812(0x38e)]??_0x3117af['value']??_0x3117af['id']??'')[_0x20a812(0x3a5)]()[_0x20a812(0x40c)]();}return String(_0x49367d??'')['trim']()['toLowerCase']();}function In(_0x45ba9b,_0x58c1cf){const _0x3e3dea=_0x5daf81;let _0x42e6c4=Ln(_0x45ba9b),_0x1f063c=Rn(_0x58c1cf['config']??{});return _0x42e6c4['flatMap'](_0x1420b5=>_0x1f063c[_0x3e3dea(0x315)](_0x1420b5)??[_0x1420b5])[_0x3e3dea(0x32f)]((_0x347447,_0x5a28a2,_0x59d2e4)=>_0x347447!==''&&_0x59d2e4[_0x3e3dea(0x25c)](_0x347447)===_0x5a28a2);}function Ln(_0x1a37f8){const _0x117a4a=_0x5daf81;if(_0x1a37f8==null||_0x1a37f8==='')return[];if(Array[_0x117a4a(0x31e)](_0x1a37f8))return _0x1a37f8[_0x117a4a(0x36c)](_0xaca02f=>Ln(_0xaca02f));if(_0x1a37f8&&typeof _0x1a37f8=='object'){let _0x1109bb=_0x1a37f8;return['id',_0x117a4a(0x322),'label',_0x117a4a(0x3fd),_0x117a4a(0x38e)]['flatMap'](_0x96f97c=>Ln(_0x1109bb[_0x96f97c]))[_0x117a4a(0x32f)]((_0x426979,_0x5c2602,_0x47f7d0)=>_0x47f7d0[_0x117a4a(0x25c)](_0x426979)===_0x5c2602);}return[Fn(_0x1a37f8)];}function Rn(_0x55f23c){const _0x2113e7=_0x5daf81;let _0x49177b=new Map();return(Array['isArray'](_0x55f23c[_0x2113e7(0x49e)])?_0x55f23c['options']:[])[_0x2113e7(0x429)](_0x9aa635=>{const _0x5b450a=_0x2113e7;if(!_0x9aa635||typeof _0x9aa635!='object')return;let _0x2b740b=Ln(_0x9aa635),_0x927843=_0x2b740b[_0x5b450a(0x32f)]((_0xfc87bc,_0x50a212)=>_0xfc87bc!==''&&_0x2b740b[_0x5b450a(0x25c)](_0xfc87bc)===_0x50a212);_0x927843['forEach'](_0x24d07b=>_0x49177b[_0x5b450a(0x1ba)](_0x24d07b,_0x927843));}),_0x49177b;}function H(_0x5f4023,_0x1d3ea4={},_0x5dcf44=_0x389b1d=>_0x389b1d,_0xc40e4f={}){const _0x151f1d=_0x5daf81;let _0x522f22=!_n['has'](_0x5f4023),_0x1d9a3a=_0x5dcf44??(_0x481beb=>_0x481beb);return{'type':_0x5f4023,'i18nKey':_0x151f1d(0x542)+_0x5f4023,'enabled':_0x522f22,'visibleInCreateMenu':_0x522f22,'createDefaultConfig':_0xc40e4f['createDefaultConfig']??(()=>({})),'createDefaultValue':_0xc40e4f['createDefaultValue']??(_0x22ad83=>_0x22ad83[_0x151f1d(0x224)]??null),'normalize':(_0x44cc2c,_0x222343)=>_0x1d9a3a(_0x44cc2c,_0x222343),'validate':(_0x25a87f,_0x192e49)=>{const _0x11466b=_0x151f1d;var _0x569254;return _0x522f22?((_0x569254=_0xc40e4f[_0x11466b(0x240)])==null?void 0x0:_0x569254[_0x11466b(0x35d)](_0xc40e4f,_0x25a87f,_0x192e49))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x206de7,_0x40ddcf)=>bn(_0x206de7,_0x40ddcf),'filter':(_0x494e1b,_0x1226c8,_0x2fe4d4,_0x4dc5b0)=>xn(_0x494e1b,_0x1226c8,_0x2fe4d4,_0x4dc5b0),'toPlainText':_0xc40e4f[_0x151f1d(0x4ff)]??(_0x237f15=>_0x237f15==null?'':String(_0x237f15)),'fromPlainText':_0xc40e4f['fromPlainText']??(_0x451ed9=>_0x1d9a3a(_0x451ed9,{'id':'','name':'','type':_0x5f4023,'config':{}})),'getCapabilities':()=>({...gn,..._0x1d3ea4,'editable':_0x522f22&&(_0x1d3ea4[_0x151f1d(0x2cf)]??gn[_0x151f1d(0x2cf)])})};}function zn(){const _0x40ec81=_0x5daf81;return[H(_0x618ba[_0x40ec81(0x1da)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x40ec81(0x2e3)}),'createDefaultValue':_0x483eb8=>_0x483eb8[_0x40ec81(0x224)]??''}),H(_0x618ba[_0x40ec81(0x3af)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x18efbd=>_0x18efbd==null||_0x18efbd===''?null:String(_0x18efbd),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x40ec81(0x2af)}})}),H(_0x618ba['MultiSelect'],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x2f6559=>Array['isArray'](_0x2f6559)?_0x2f6559['map'](String):_0x2f6559==null?[]:[String(_0x2f6559)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x40ec81(0x2af)}}),'createDefaultValue':_0x2e39a3=>_0x2e39a3[_0x40ec81(0x224)]??[]}),H(_0x618ba[_0x40ec81(0x1e9)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x40ec81(0x389)}),'validate':Gn}),H(_0x618ba[_0x40ec81(0x377)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x40ec81(0x3e9)}),'createDefaultValue':_0x5dfa11=>_0x5dfa11[_0x40ec81(0x224)]??[],'validate':Kn}),H(_0x618ba[_0x40ec81(0x47c)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x4fbc76=>un(_0x4fbc76),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x618ba[_0x40ec81(0x1f8)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x235c3b=>_0x235c3b==null?[]:Array[_0x40ec81(0x31e)](_0x235c3b)?_0x235c3b:[_0x235c3b],{'createDefaultValue':_0x4eae03=>_0x4eae03[_0x40ec81(0x224)]??[]}),H(_0x618ba[_0x40ec81(0x480)],{},_0x4eeed2=>_0x4eeed2==null||_0x4eeed2===''?null:Number(_0x4eeed2),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x618ba['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x45b444=>_0x45b444===!0x0||_0x45b444===_0x40ec81(0x40e)||_0x45b444===0x1||_0x45b444==='1',{'createDefaultConfig':()=>({'icon':_0x40ec81(0x4b2),'color':_0x40ec81(0x1c8)}),'createDefaultValue':_0x56b4d5=>_0x56b4d5[_0x40ec81(0x224)]??!0x1,'validate':_0x3520b3=>typeof _0x3520b3==_0x40ec81(0x26c)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x40ec81(0x51a)}}),H(_0x618ba[_0x40ec81(0x42d)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.linkPlaceholder'}),'toPlainText':_0x47e6d5=>Zn(_0x47e6d5),'fromPlainText':_0x4f410a=>Xn(_0x4f410a)}),H(_0x618ba['Formula'],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x40ec81(0x271),'pattern':_0x40ec81(0x309)}}),'createDefaultValue':()=>null}),H(_0x618ba[_0x40ec81(0x1e7)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x40ec81(0x43f)}),'createDefaultValue':()=>null}),H(_0x618ba[_0x40ec81(0x3a4)],{'usableAsTitle':!0x0},_0x442efd=>_0x442efd==null?null:String(_0x442efd)[_0x40ec81(0x3a5)](),{'validate':_0x460b25=>_0x460b25==null||_0x460b25===''||/^\+?[0-9 ()-]{6,20}$/[_0x40ec81(0x27c)](String(_0x460b25))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x618ba['Email'],{'usableAsTitle':!0x0},_0x36a190=>_0x36a190==null?null:String(_0x36a190)[_0x40ec81(0x3a5)](),{'validate':_0x52715f=>_0x52715f==null||_0x52715f===''||$n(String(_0x52715f))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x40ec81(0x378)}}),H(_0x618ba['Progress'],{'usableAsGanttProgress':!0x0},_0x17fd08=>_0x17fd08==null||_0x17fd08===''?null:Number(_0x17fd08),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x40ec81(0x2d0),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x35d052,_0xac2651)=>Yn(_0x35d052,_0xac2651,_0x40ec81(0x52e))}),H(_0x618ba[_0x40ec81(0x20a)],{},_0x376020=>_0x376020==null||_0x376020===''?null:Number(_0x376020),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x618ba['Rating'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0xacb2c3=>_0xacb2c3==null||_0xacb2c3===''?null:Number(_0xacb2c3),{'createDefaultConfig':()=>({'icon':'star','min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x3e99d8,_0x4fe56e)=>Yn(_0x3e99d8,_0x4fe56e,_0x40ec81(0x213))}),H(_0x618ba[_0x40ec81(0x2e6)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x24aab9,_0x8d6b2d)=>ze(_0x24aab9,_0x8d6b2d['config']['multiple']===!0x0)}),H(_0x618ba['RecordId'],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x618ba[_0x40ec81(0x366)],{'editable':!0x1,'groupable':!0x0},_0x2a89a5=>_0x2a89a5==null?null:String(_0x2a89a5),{'createDefaultConfig':()=>({'provider':_0x40ec81(0x2e5)}),'createDefaultValue':()=>null}),H(_0x618ba[_0x40ec81(0x4d3)],{'editable':!0x1,'groupable':!0x0},_0x5dd135=>_0x5dd135==null?null:String(_0x5dd135),{'createDefaultConfig':()=>({'provider':_0x40ec81(0x2e5)}),'createDefaultValue':()=>null}),H(_0x618ba[_0x40ec81(0x3fb)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x51dafd=>un(_0x51dafd),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x618ba['UpdatedAt'],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x577ce0=>un(_0x577ce0),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x389128=_0x5daf81;return{'pattern':_0x389128(0x45d),'decimalPlaces':0x2,'separatorStyle':_0x389128(0x35a),'useThousands':!0x0,'abbreviation':_0x389128(0x3e4),'allowNegative':!0x0};}function Vn(){const _0xec2076=_0x5daf81;return{'locale':_0xec2076(0x231),'pattern':_0xec2076(0x286),'includeTime':!0x1,'hourCycle':_0xec2076(0x34c),'defaultMode':_0xec2076(0x3e4)};}function Hn(_0x30e5d8){const _0x56c7ba=_0x5daf81;return _0x30e5d8==null||_0x30e5d8===''?[]:Array[_0x56c7ba(0x31e)](_0x30e5d8)?_0x30e5d8[_0x56c7ba(0x2b0)](String):[String(_0x30e5d8)];}function Un(_0x15c951){return typeof _0x15c951=='string'?_0x15c951:'';}function Wn(_0x1c44ad,_0x9df2f3){const _0x35845d=_0x5daf81;return _0x1c44ad==null||_0x1c44ad===''?_0x9df2f3[_0x35845d(0x396)][_0x35845d(0x551)]===!0x0?[]:null:_0x9df2f3['config'][_0x35845d(0x551)]===!0x0?Array[_0x35845d(0x31e)](_0x1c44ad)?_0x1c44ad[_0x35845d(0x2b0)](String):[String(_0x1c44ad)]:Array[_0x35845d(0x31e)](_0x1c44ad)?String(_0x1c44ad[0x0]??'')||null:String(_0x1c44ad);}function Gn(_0x49f2bb,_0x9d8d17){const _0x506320=_0x5daf81;return _0x9d8d17[_0x506320(0x396)][_0x506320(0x551)]===!0x0?Kn(_0x49f2bb):_0x49f2bb==null||_0x49f2bb===''||typeof _0x49f2bb=='string'?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20person\x20value.'};}function Kn(_0x5ef4fe){const _0x48643b=_0x5daf81;return _0x5ef4fe==null||Array[_0x48643b(0x31e)](_0x5ef4fe)&&_0x5ef4fe[_0x48643b(0x2ab)](_0xeeabe=>typeof _0xeeabe=='string')?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20multi-value\x20reference.'};}function qn(_0x3bf04c){const _0xc38a77=_0x5daf81;return _0x3bf04c==null||typeof _0x3bf04c==_0xc38a77(0x53d)&&Number['isFinite'](_0x3bf04c)?{'valid':!0x0}:{'valid':!0x1,'reason':_0xc38a77(0x4d5)};}function Jn(_0x40e8de,_0x4537c7){const _0x45aa34=_0x5daf81;return _0x40e8de==null||_0x40e8de===''?{'valid':!0x0}:typeof _0x40e8de!=_0x45aa34(0x53d)||!Number[_0x45aa34(0x2fc)](_0x40e8de)?{'valid':!0x1,'reason':_0x45aa34(0x3cd)}:_0x4537c7[_0x45aa34(0x396)][_0x45aa34(0x1d8)]===!0x1&&_0x40e8de<0x0?{'valid':!0x1,'reason':'[BaseField]:\x20negative\x20numbers\x20are\x20disabled.'}:{'valid':!0x0};}function Yn(_0x4397dd,_0xc5cae3,_0x1e1ece){const _0x382fbb=_0x5daf81;let _0x37dbce=Jn(_0x4397dd,_0xc5cae3);if(!_0x37dbce[_0x382fbb(0x36d)]||_0x4397dd==null||_0x4397dd==='')return _0x37dbce;let _0x58426d=Number(_0xc5cae3[_0x382fbb(0x396)][_0x382fbb(0x469)]??_0xc5cae3['config']['start']??0x0),_0x50c225=Number(_0xc5cae3[_0x382fbb(0x396)][_0x382fbb(0x29c)]??_0xc5cae3[_0x382fbb(0x396)]['end']??0x64),_0x3383e4=Number(_0x4397dd);return _0x3383e4>=_0x58426d&&_0x3383e4<=_0x50c225?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1e1ece};}function Xn(_0x32888c){const _0x2dc988=_0x5daf81;if(_0x32888c==null||_0x32888c==='')return null;if(typeof _0x32888c==_0x2dc988(0x1fb)&&!Array[_0x2dc988(0x31e)](_0x32888c)){let _0x1b704b=_0x32888c,_0x45c795=typeof _0x1b704b[_0x2dc988(0x38e)]==_0x2dc988(0x2ed)?_0x1b704b['text'][_0x2dc988(0x3a5)]():'',_0x22c3c4=typeof _0x1b704b[_0x2dc988(0x4fe)]==_0x2dc988(0x2ed)?_0x1b704b[_0x2dc988(0x4fe)][_0x2dc988(0x3a5)]():'',_0x41a0ce=Qn(_0x22c3c4||_0x45c795);return _0x41a0ce?{'text':_0x45c795||_0x22c3c4||_0x41a0ce,'url':_0x41a0ce}:null;}let _0x2497ee=String(_0x32888c)[_0x2dc988(0x3a5)](),_0x267ef3=Qn(_0x2497ee);return _0x267ef3?{'text':_0x2497ee,'url':_0x267ef3}:null;}function Zn(_0x2e2952){const _0x357a5b=_0x5daf81;if(_0x2e2952==null)return'';if(typeof _0x2e2952==_0x357a5b(0x1fb)&&!Array['isArray'](_0x2e2952)){let _0x47120=_0x2e2952;return String(_0x47120[_0x357a5b(0x38e)]||_0x47120[_0x357a5b(0x4fe)]||'');}return String(_0x2e2952);}function Qn(_0x4abfa9){const _0x107b8e=_0x5daf81;let _0x1909a9=_0x4abfa9[_0x107b8e(0x3a5)]();if(!_0x1909a9)return'';let _0x418f7e=/^[a-z][a-z\d+.-]*:/i['test'](_0x1909a9)?_0x1909a9:_0x1909a9[_0x107b8e(0x265)]('//')?_0x107b8e(0x33b)+_0x1909a9:_0x107b8e(0x342)+_0x1909a9;try{let _0x22fe3c=new URL(_0x418f7e);return _0x22fe3c[_0x107b8e(0x3ec)]===_0x107b8e(0x48e)||_0x22fe3c[_0x107b8e(0x3ec)]===_0x107b8e(0x33b)?_0x22fe3c[_0x107b8e(0x395)]:'';}catch{return'';}}function $n(_0x5959fa){const _0x4722fe=_0x5daf81;let _0x30f1f0=_0x5959fa[_0x4722fe(0x25c)]('@');if(_0x30f1f0<=0x0||_0x30f1f0!==_0x5959fa[_0x4722fe(0x3d6)]('@'))return!0x1;let _0x16f2eb=_0x5959fa['slice'](_0x30f1f0+0x1);return _0x16f2eb[_0x4722fe(0x4f9)]('.')&&!_0x5959fa[_0x4722fe(0x4f9)]('\x20')&&!_0x16f2eb[_0x4722fe(0x265)]('.')&&!_0x16f2eb[_0x4722fe(0x528)]('.');}const U={'table':_0x22f91a=>[_0x5daf81(0x2f7),_0x22f91a],'field':(_0x20b0c3,_0x193bd6)=>['tables',_0x20b0c3,_0x5daf81(0x503),_0x193bd6],'fieldOrder':(_0x38706f,_0x33e849)=>['tables',_0x38706f,_0x5daf81(0x1d6),_0x33e849],'record':(_0x1d317a,_0x3bd5f8)=>[_0x5daf81(0x2f7),_0x1d317a,_0x5daf81(0x43a),_0x3bd5f8],'cell':(_0xe82b86,_0x5885e7,_0x2488c3)=>[_0x5daf81(0x2f7),_0xe82b86,_0x5daf81(0x43a),_0x5885e7,_0x5daf81(0x45b),_0x2488c3],'cellData':(_0x3aa416,_0x476be3,_0x3132e8)=>['tables',_0x3aa416,_0x5daf81(0x1d3),String(_0x476be3),String(_0x3132e8)],'attachmentSet':(_0x53062b,_0x348f8f)=>[_0x5daf81(0x2f7),_0x53062b,_0x5daf81(0x48d),_0x5daf81(0x313),_0x348f8f],'attachment':(_0x2f9110,_0x536513)=>[_0x5daf81(0x2f7),_0x2f9110,_0x5daf81(0x48d),'attachments',_0x536513],'view':(_0xf7b1d7,_0x26a81f)=>[_0x5daf81(0x2f7),_0xf7b1d7,'views',_0x26a81f],'viewFieldHidden':(_0x2283f3,_0x39036c,_0x3f3732)=>[_0x5daf81(0x2f7),_0x2283f3,_0x5daf81(0x1e8),_0x39036c,_0x5daf81(0x508),_0x3f3732,'hidden']};var W=class{[_0x5daf81(0x490)](_0x4336d0,_0x42efd3){const _0x466a53=_0x5daf81;let _0x33599a=this[_0x466a53(0x1e5)](_0x4336d0,_0x4336d0['name'],_0x42efd3);return R([this['_replaceOptional']([_0x466a53(0x322)],_0x4336d0['name'],_0x42efd3),..._0x33599a?[_0x33599a]:[]]);}[_0x5daf81(0x1e5)](_0x26ed0c,_0x5814f5,_0x51dd6e){const _0x4b6457=_0x5daf81;let _0x521dcb=Object[_0x4b6457(0x45b)](_0x26ed0c[_0x4b6457(0x2f7)])['flatMap'](_0x11da13=>Object['values'](_0x11da13[_0x4b6457(0x503)])[_0x4b6457(0x36c)](_0x3c96e7=>{const _0x417b88=_0x4b6457;var _0x466f3b,_0x3e6209;if(_0x3c96e7[_0x417b88(0x305)]!==_0x618ba['Formula'])return[];let _0xbca10b=String(((_0x466f3b=_0x3c96e7[_0x417b88(0x396)])==null?void 0x0:_0x466f3b[_0x417b88(0x494)])??''),_0x12fb6b=_0x58f593(_0xbca10b,_0x5814f5,_0x51dd6e);return _0x12fb6b===_0xbca10b?[]:[this[_0x417b88(0x1e2)]([...U['field'](_0x11da13['id'],_0x3c96e7['id']),_0x417b88(0x396),_0x417b88(0x494)],(_0x3e6209=_0x3c96e7['config'])==null?void 0x0:_0x3e6209[_0x417b88(0x494)],_0x12fb6b)];}));return _0x521dcb[_0x4b6457(0x21d)]>0x0?R(_0x521dcb):void 0x0;}[_0x5daf81(0x3e6)](_0x2d2726,_0x1cc9bc,_0x202f7c=_0x2d2726[_0x5daf81(0x3ee)]['length']){const _0x379723=_0x5daf81;let _0xec7b0b=_0x7582ef(_0x1cc9bc[_0x379723(0x322)],_0x4b2d20(_0x2d2726)[_0x379723(0x45b)](),_0x1cc9bc[_0x379723(0x516)]),_0x4614e3=_0x1cc9bc['formulaName']===_0xec7b0b?_0x1cc9bc:{..._0x1cc9bc,'formulaName':_0xec7b0b};return R([...this[_0x379723(0x2eb)](_0x2d2726),_0x1605a0['insertOp'](U['table'](_0x1cc9bc['id']),_0x4614e3),_0x1605a0[_0x379723(0x2b6)]([_0x379723(0x3ee),_0x202f7c],_0x1cc9bc['id'])]);}[_0x5daf81(0x3c3)](_0x3cf584,_0x59b069,_0x580636){const _0x529582=_0x5daf81;let _0x2048e9=_0x3cf584[_0x529582(0x2f7)][_0x59b069];return R([...this['_materializeFormulaTableNames'](_0x3cf584),_0x1605a0[_0x529582(0x562)]([...U[_0x529582(0x524)](_0x59b069),_0x529582(0x322)],_0x2048e9[_0x529582(0x322)],_0x580636)]);}[_0x5daf81(0x4ed)](_0x1d1fba,_0xc5e205){const _0x3b7e1a=_0x5daf81;let _0x567595=_0x1d1fba[_0x3b7e1a(0x2f7)][_0xc5e205],_0x5310ec=_0x1d1fba[_0x3b7e1a(0x3ee)][_0x3b7e1a(0x25c)](_0xc5e205);return R([...this[_0x3b7e1a(0x2eb)](_0x1d1fba,new Set([_0xc5e205])),_0x1605a0[_0x3b7e1a(0x26d)](U[_0x3b7e1a(0x524)](_0xc5e205),_0x567595),_0x1605a0[_0x3b7e1a(0x26d)]([_0x3b7e1a(0x3ee),_0x5310ec],_0xc5e205)]);}[_0x5daf81(0x283)](_0x152ecc,_0x48fe44,_0x47db19){const _0x16ccb0=_0x5daf81;return this[_0x16ccb0(0x4da)](_0x152ecc,_0x48fe44,[_0x47db19]);}[_0x5daf81(0x4da)](_0x93133e,_0x67c95,_0x5aafb9){const _0x2e429f=_0x5daf81;let _0x262258=_0x93133e[_0x2e429f(0x2f7)][_0x67c95],_0x3e0b26=_0x5aafb9['filter'](_0x2bc9a2=>_0x2bc9a2&&!_0x262258['records'][_0x2bc9a2['id']])[_0x2e429f(0x2b0)](_0x54245e=>({..._0x54245e,'values':{..._0x54245e['values'],[_0x4a6fc3]:_0x54245e['id']}}));if(!_0x3e0b26[_0x2e429f(0x21d)])return _0x1605a0[_0x2e429f(0x562)]([...U[_0x2e429f(0x524)](_0x67c95),_0x2e429f(0x43a)],_0x262258[_0x2e429f(0x43a)],_0x262258['records']);let _0x463422=new _0x1605a0[(_0x2e429f(0x356))](),_0x124709=[..._0x3e0b26][_0x2e429f(0x3c5)]((_0x541e0a,_0x2afc01)=>_0x541e0a['id']<_0x2afc01['id']?-0x1:+(_0x541e0a['id']>_0x2afc01['id'])),_0x4c2770=[...U['table'](_0x67c95),_0x2e429f(0x43a)];_0x463422[_0x2e429f(0x276)](_0x4c2770);for(let _0x460a40 of _0x124709)_0x463422[_0x2e429f(0x4e5)](_0x460a40['id']),_0x463422[_0x2e429f(0x42e)]('i',_0x460a40),_0x463422['ascend']();for(let _0x3b7fc0=0x0;_0x3b7fc0<_0x4c2770[_0x2e429f(0x21d)];_0x3b7fc0+=0x1)_0x463422['ascend']();return R([_0x463422['get'](),this[_0x2e429f(0x4a0)](_0x93133e,_0x67c95,_0x3e0b26)]);}[_0x5daf81(0x45e)](_0x1b195f,_0x50a7d8,_0x128d29){const _0x432fc9=_0x5daf81;return this[_0x432fc9(0x20e)](_0x1b195f,_0x50a7d8,[_0x128d29]);}[_0x5daf81(0x20e)](_0x504685,_0x18e5bb,_0x4b587b){const _0x15252d=_0x5daf81;let _0x474b5c=_0x504685[_0x15252d(0x2f7)][_0x18e5bb],_0x463100=Array[_0x15252d(0x404)](new Set(_0x4b587b))[_0x15252d(0x32f)](_0x1c1e98=>_0x474b5c[_0x15252d(0x43a)][_0x1c1e98]);if(!_0x463100[_0x15252d(0x21d)])return _0x1605a0[_0x15252d(0x562)]([...U['table'](_0x18e5bb),'records'],_0x474b5c[_0x15252d(0x43a)],_0x474b5c[_0x15252d(0x43a)]);let _0x52f1cb=new Set(_0x463100),_0x2af152=et(_0x474b5c,_0x463100)['map'](_0x1617e7=>this[_0x15252d(0x2ef)](_0x504685,_0x18e5bb,_0x1617e7['recordId'],_0x1617e7['fieldId'],''));return R([this[_0x15252d(0x1ef)](_0x504685,_0x18e5bb,_0x463100,_0x52f1cb),..._0x2af152]);}[_0x5daf81(0x43b)](_0x1068ff,_0x35d60a,_0x4b0892,_0x1030be){const _0x4a0dff=_0x5daf81;let _0x46de71=_0x1068ff[_0x4a0dff(0x2f7)][_0x4b0892],_0x2f4b06=Array['from'](new Set(_0x1030be))[_0x4a0dff(0x32f)](_0x15ba19=>_0x46de71['records'][_0x15ba19]),_0x365a95=new Set(_0x2f4b06);return R([new z()[_0x4a0dff(0x388)](_0x1068ff,this[_0x4a0dff(0x1ef)](_0x1068ff,_0x4b0892,_0x2f4b06,_0x365a95)),...et(_0x46de71,_0x2f4b06)[_0x4a0dff(0x2b0)](_0xc279e2=>this[_0x4a0dff(0x2ef)](_0x35d60a,_0x4b0892,_0xc279e2[_0x4a0dff(0x1c6)],_0xc279e2[_0x4a0dff(0x4a1)],_0xc279e2[_0x4a0dff(0x266)]??''))]);}['_deleteRecordsBaseOp'](_0x57376c,_0x6b2ed7,_0x71ccdf,_0x1329a5){const _0xf1c6a6=_0x5daf81;let _0x2af867=_0x57376c[_0xf1c6a6(0x2f7)][_0x6b2ed7],_0x4af05d=_0x71ccdf[_0xf1c6a6(0x2b0)](_0x31ee38=>{const _0x4d17a5=_0xf1c6a6;var _0x2a581a;return{'recordId':_0x31ee38,'index':((_0x2a581a=_0x2af867[_0x4d17a5(0x3da)])==null?void 0x0:_0x2a581a[_0x4d17a5(0x25c)](_0x31ee38))??-0x1};})[_0xf1c6a6(0x32f)](_0x143935=>_0x143935[_0xf1c6a6(0x391)]>=0x0)[_0xf1c6a6(0x3c5)]((_0x1c7771,_0x177ad6)=>_0x177ad6[_0xf1c6a6(0x391)]-_0x1c7771[_0xf1c6a6(0x391)]);return R([..._0x71ccdf[_0xf1c6a6(0x2b0)](_0x167bbf=>_0x1605a0[_0xf1c6a6(0x26d)](U[_0xf1c6a6(0x1b5)](_0x6b2ed7,_0x167bbf),_0x2af867[_0xf1c6a6(0x43a)][_0x167bbf])),..._0x4af05d[_0xf1c6a6(0x2b0)](({recordId:_0x2ac214,index:_0x538658})=>_0x1605a0['removeOp']([_0xf1c6a6(0x2f7),_0x6b2ed7,_0xf1c6a6(0x3da),_0x538658],_0x2ac214)),...this[_0xf1c6a6(0x4bc)](_0x2af867,_0x6b2ed7,_0xf70037=>{const _0x16aad2=_0xf1c6a6;let _0x74adb2=_0xf70037[_0x16aad2(0x1cb)](_0xf70037[_0x16aad2(0x3d6)]('\x1f')+0x1);return _0x1329a5['has'](_0x74adb2);})]);}[_0x5daf81(0x339)](_0x48a5f9,_0x495c11,_0x80f6fd,_0x528bb3){const _0x1df51f=_0x5daf81;return this[_0x1df51f(0x283)](_0x48a5f9,_0x495c11,{..._0x528bb3,'values':{..._0x48a5f9['tables'][_0x495c11][_0x1df51f(0x43a)][_0x80f6fd][_0x1df51f(0x45b)],..._0x528bb3[_0x1df51f(0x45b)],[_0x4a6fc3]:_0x528bb3['id']}});}['updateRecordOrder'](_0x233d84,_0xd5e928,_0x3b51f3,_0x186459){const _0x3eec9e=_0x5daf81;let _0x4018b5=_0x233d84['tables'][_0xd5e928],_0x129d16=[...U[_0x3eec9e(0x1b5)](_0xd5e928,_0x3b51f3),_0x3eec9e(0x2a2)],_0x3eec79=Object[_0x3eec9e(0x45b)](_0x4018b5[_0x3eec9e(0x43a)])[_0x3eec9e(0x2b0)](_0x2b6e9a=>_0x2b6e9a['id']===_0x3b51f3?{..._0x2b6e9a,'orderKey':_0x186459}:_0x2b6e9a)['sort']((_0x13fd33,_0x3fdbc0)=>String(_0x13fd33[_0x3eec9e(0x2a2)]??_0x13fd33['id'])[_0x3eec9e(0x202)](String(_0x3fdbc0[_0x3eec9e(0x2a2)]??_0x3fdbc0['id'])))['map'](_0x9200b3=>_0x9200b3['id']),_0x14ad44=[...U[_0x3eec9e(0x524)](_0xd5e928),'recordOrder'];return R([this[_0x3eec9e(0x1e2)](_0x129d16,_0x4018b5[_0x3eec9e(0x43a)][_0x3b51f3][_0x3eec9e(0x2a2)],_0x186459),_0x4018b5[_0x3eec9e(0x3da)]?_0x1605a0[_0x3eec9e(0x562)](_0x14ad44,_0x4018b5[_0x3eec9e(0x3da)],_0x3eec79):_0x1605a0['insertOp'](_0x14ad44,_0x3eec79)]);}['updateCell'](_0x3b2376,_0x1cf5b0,_0x3ca854,_0xfa9181,_0x3fc840){const _0x85471=_0x5daf81;var _0x337112,_0x459ae0;let _0x3e7638=_0x3b2376[_0x85471(0x2f7)][_0x1cf5b0],_0x3fc749=ar(_0x3e7638,_0x3ca854,_0xfa9181)?_0x3e7638:L(_0x3e7638),_0x47713b=(_0x337112=_0x3fc749['rowIndex'])==null?void 0x0:_0x337112[_0x3ca854],_0x50bb64=(_0x459ae0=_0x3fc749[_0x85471(0x3b9)])==null?void 0x0:_0x459ae0[_0xfa9181];if(_0x47713b==null||_0x50bb64==null){var _0x13bbaf;return this['_replaceOptional'](U[_0x85471(0x203)](_0x1cf5b0,_0x3ca854,_0xfa9181),(_0x13bbaf=_0x3b2376[_0x85471(0x2f7)][_0x1cf5b0])==null||(_0x13bbaf=_0x13bbaf[_0x85471(0x43a)][_0x3ca854])==null?void 0x0:_0x13bbaf[_0x85471(0x45b)][_0xfa9181],_0x3fc840);}return this['setRangeValues'](_0x3b2376,_0x1cf5b0,[{'row':_0x47713b,'col':_0x50bb64,'value':_0x3fc840}]);}[_0x5daf81(0x529)](_0x38910c,_0x3e7501,_0x17a5f9){const _0x30158f=_0x5daf81;let _0x129e7c=_0x38910c[_0x30158f(0x2f7)][_0x3e7501],_0x1acedf=_0x17a5f9[_0x30158f(0x2ab)](_0x58d3db=>Object['keys'](_0x58d3db[_0x30158f(0x45b)])[_0x30158f(0x2ab)](_0x3cc6d0=>ar(_0x129e7c,_0x58d3db[_0x30158f(0x1c6)],_0x3cc6d0)))?_0x129e7c:L(_0x129e7c),_0x5be5fa=_0x17a5f9['flatMap'](_0x12e49b=>Object[_0x30158f(0x2e4)](_0x12e49b[_0x30158f(0x45b)])['flatMap'](([_0x4575e3,_0x357e3f])=>{const _0x57fb7a=_0x30158f;var _0x5a34df,_0x2f59a2;let _0x5119e0=(_0x5a34df=_0x1acedf[_0x57fb7a(0x2c4)])==null?void 0x0:_0x5a34df[_0x12e49b[_0x57fb7a(0x1c6)]],_0x121fdc=(_0x2f59a2=_0x1acedf['colIndex'])==null?void 0x0:_0x2f59a2[_0x4575e3];return _0x5119e0==null||_0x121fdc==null?[]:[{'row':_0x5119e0,'col':_0x121fdc,'value':_0x357e3f}];})),_0x5e1fea=_0x17a5f9['flatMap'](_0x4f6797=>Object[_0x30158f(0x2e4)](_0x4f6797[_0x30158f(0x268)]??{})[_0x30158f(0x2b0)](([_0x6d59ac,_0x12b8ff])=>{const _0x1376bc=_0x30158f;var _0x4b43f;let _0x5ce817=[...U[_0x1376bc(0x1b5)](_0x3e7501,_0x4f6797[_0x1376bc(0x1c6)]),_0x6d59ac],_0x5269de=(_0x4b43f=_0x38910c[_0x1376bc(0x2f7)][_0x3e7501])==null||(_0x4b43f=_0x4b43f[_0x1376bc(0x43a)][_0x4f6797[_0x1376bc(0x1c6)]])==null?void 0x0:_0x4b43f[_0x6d59ac];return this[_0x1376bc(0x1e2)](_0x5ce817,_0x5269de,_0x12b8ff);}));return R([this[_0x30158f(0x1d7)](_0x38910c,_0x3e7501,_0x5be5fa),..._0x5e1fea]);}[_0x5daf81(0x1d7)](_0x37da64,_0x246a98,_0x38d5e8){const _0x25247c=_0x5daf81;let _0x2d58de=_0x37da64[_0x25247c(0x2f7)][_0x246a98],_0x2929f5=_0x38d5e8['every'](_0x13c0fd=>or(_0x2d58de,_0x13c0fd[_0x25247c(0x406)],_0x13c0fd[_0x25247c(0x2f0)]))?_0x2d58de:L(_0x2d58de),_0x699fea=new Map(),_0x3634a4=_0x38d5e8['flatMap'](_0x7fce96=>{const _0x203b35=_0x25247c;var _0x58be20,_0x60cb39,_0x211e5e,_0x7143c1;let _0x3e88c6=(_0x58be20=_0x2929f5[_0x203b35(0x33c)])==null?void 0x0:_0x58be20[_0x7fce96[_0x203b35(0x2f0)]],_0x997911=(_0x60cb39=_0x2929f5[_0x203b35(0x1ec)])==null?void 0x0:_0x60cb39[_0x7fce96[_0x203b35(0x406)]],_0x39cf21=_0x3e88c6?_0x2929f5[_0x203b35(0x503)][_0x3e88c6]:void 0x0;if(_0x3e88c6===_0x4a6fc3||(_0x39cf21==null?void 0x0:_0x39cf21[_0x203b35(0x305)])===_0x618ba[_0x203b35(0x28f)])throw Error(_0x203b35(0x27a));let _0x3fc05e=xt(_0x7fce96[_0x203b35(0x3fd)],_0x39cf21),_0x3fb7de=(_0x211e5e=_0x2929f5[_0x203b35(0x1d3)])==null||(_0x211e5e=_0x211e5e[_0x7fce96[_0x203b35(0x406)]])==null?void 0x0:_0x211e5e[_0x7fce96[_0x203b35(0x2f0)]],_0x54c3c2=this['_replaceOptional'](U['cellData'](_0x246a98,_0x7fce96[_0x203b35(0x406)],_0x7fce96['col']),_0x3fb7de,_0x3fc05e);if(!_0x3e88c6||!_0x997911)return[_0x54c3c2];let _0xb22197=(_0x7143c1=_0x2929f5[_0x203b35(0x43a)][_0x997911])==null?void 0x0:_0x7143c1[_0x203b35(0x45b)][_0x3e88c6],_0x57e383=(_0x39cf21==null?void 0x0:_0x39cf21[_0x203b35(0x305)])===_0x618ba[_0x203b35(0x1f8)]?kt(_0x7fce96[_0x203b35(0x3fd)]):wt(_0x7fce96[_0x203b35(0x3fd)],_0x3fc05e,_0x39cf21,_0x2929f5,_0x997911),_0x2a0c3=[_0x54c3c2,this[_0x203b35(0x1e2)](U[_0x203b35(0x203)](_0x246a98,_0x997911,_0x3e88c6),_0xb22197,_0x57e383)];return(_0x39cf21==null?void 0x0:_0x39cf21[_0x203b35(0x305)])===_0x618ba[_0x203b35(0x1f8)]&&_0x699fea['set'](Et(_0x3e88c6,_0x997911),{'recordId':_0x997911,'fieldId':_0x3e88c6,'attachments':_0x57e383}),_0x2a0c3;});return _0x3634a4[_0x25247c(0x21d)]?R([..._0x3634a4,...this[_0x25247c(0x21b)](_0x2929f5,_0x246a98,Array[_0x25247c(0x404)](_0x699fea[_0x25247c(0x45b)]()))]):_0x1605a0[_0x25247c(0x562)]([_0x25247c(0x2f7),_0x246a98,_0x25247c(0x1d3)],_0x2929f5[_0x25247c(0x1d3)],_0x2929f5[_0x25247c(0x1d3)]);}['createField'](_0x425492,_0x27dde9,_0x4c5109){const _0x3a2650=_0x5daf81;let _0x83b38e=_0x425492['tables'][_0x27dde9];if(_0x83b38e['fields'][_0x4c5109[_0x3a2650(0x50a)]['id']]||_0x83b38e[_0x3a2650(0x1d6)][_0x3a2650(0x4f9)](_0x4c5109['field']['id']))return _0x1605a0[_0x3a2650(0x562)](['tables',_0x27dde9,_0x3a2650(0x1d6)],_0x83b38e[_0x3a2650(0x1d6)],_0x83b38e[_0x3a2650(0x1d6)]);let _0x2a584e=Math['max'](0x1,_0x4c5109[_0x3a2650(0x391)]??_0x83b38e[_0x3a2650(0x1d6)][_0x3a2650(0x21d)]),_0x470fac=Object[_0x3a2650(0x45b)](_0x83b38e['views']??{})[_0x3a2650(0x36c)](_0x3c7359=>{const _0x544d7c=_0x3a2650;var _0x465962;if(!_0x3c7359['fieldOrder']||_0x3c7359[_0x544d7c(0x1d6)][_0x544d7c(0x4f9)](_0x4c5109[_0x544d7c(0x50a)]['id']))return[];let _0x5a75b6=ur(((_0x465962=_0x4c5109['viewIndexes'])==null?void 0x0:_0x465962[_0x3c7359['id']])??_0x2a584e,_0x3c7359[_0x544d7c(0x1d6)][_0x544d7c(0x21d)]);return[_0x1605a0[_0x544d7c(0x2b6)]([...U['view'](_0x27dde9,_0x3c7359['id']),_0x544d7c(0x1d6),_0x5a75b6],_0x4c5109[_0x544d7c(0x50a)]['id'])];});return R([..._0x4c5109[_0x3a2650(0x50a)][_0x3a2650(0x305)]===_0x618ba[_0x3a2650(0x4a8)]?this[_0x3a2650(0x2eb)](_0x425492):[],_0x1605a0[_0x3a2650(0x2b6)](U[_0x3a2650(0x50a)](_0x27dde9,_0x4c5109['field']['id']),_0x4c5109[_0x3a2650(0x50a)]),_0x1605a0[_0x3a2650(0x2b6)](U['fieldOrder'](_0x27dde9,_0x2a584e),_0x4c5109[_0x3a2650(0x50a)]['id']),..._0x470fac]);}['duplicateField'](_0x24b8b8,_0x332c05,_0x453f41,_0xa4992e){const _0x3f2ed7=_0x5daf81;let _0x2b5b30=_0x24b8b8[_0x3f2ed7(0x2f7)][_0x332c05];if(!_0x2b5b30[_0x3f2ed7(0x503)][_0x453f41]||_0x2b5b30[_0x3f2ed7(0x503)][_0xa4992e[_0x3f2ed7(0x50a)]['id']]||_0x2b5b30[_0x3f2ed7(0x1d6)][_0x3f2ed7(0x4f9)](_0xa4992e['field']['id']))return _0x1605a0[_0x3f2ed7(0x562)]([_0x3f2ed7(0x2f7),_0x332c05,_0x3f2ed7(0x1d6)],_0x2b5b30[_0x3f2ed7(0x1d6)],_0x2b5b30[_0x3f2ed7(0x1d6)]);let _0x1580f1=_0xa4992e[_0x3f2ed7(0x391)]??_0x2b5b30['fieldOrder'][_0x3f2ed7(0x25c)](_0x453f41)+0x1,_0x2429aa=_0x2b5b30[_0x3f2ed7(0x1d6)][_0x3f2ed7(0x32f)](_0x350ac7=>_0x350ac7!==_0xa4992e[_0x3f2ed7(0x50a)]['id']),_0x313e03=cr(_0x2429aa,_0xa4992e[_0x3f2ed7(0x50a)]['id'],_0x1580f1),_0x3ca57b=Object['values'](_0x2b5b30[_0x3f2ed7(0x1e8)]??{})[_0x3f2ed7(0x36c)](_0x184d80=>{const _0x59953b=_0x3f2ed7;var _0x30d443,_0x120700,_0x2fbf8f,_0x8b77e3;let _0xedb950=(_0x30d443=_0x184d80[_0x59953b(0x1d6)])!=null&&_0x30d443['length']?_0x184d80[_0x59953b(0x1d6)]:_0x2429aa;if(_0xedb950['includes'](_0xa4992e[_0x59953b(0x50a)]['id']))return[];let _0x5904ad=cr(_0xedb950,_0xa4992e[_0x59953b(0x50a)]['id'],((_0x120700=_0xa4992e[_0x59953b(0x2f8)])==null?void 0x0:_0x120700[_0x184d80['id']])??_0x1580f1),_0x35a696=(_0x2fbf8f=_0x184d80[_0x59953b(0x508)])==null?void 0x0:_0x2fbf8f[_0x453f41];return[this[_0x59953b(0x1e2)]([...U[_0x59953b(0x3a6)](_0x332c05,_0x184d80['id']),'fieldOrder'],_0x184d80[_0x59953b(0x1d6)],_0x5904ad),..._0x35a696?[this['_replaceOptional']([...U[_0x59953b(0x3a6)](_0x332c05,_0x184d80['id']),_0x59953b(0x508),_0xa4992e[_0x59953b(0x50a)]['id']],(_0x8b77e3=_0x184d80[_0x59953b(0x508)])==null?void 0x0:_0x8b77e3[_0xa4992e[_0x59953b(0x50a)]['id']],_0x35a696)]:[]];}),_0x524356=Object['values'](_0x2b5b30[_0x3f2ed7(0x43a)])['filter'](_0x380fce=>Object['prototype']['hasOwnProperty'][_0x3f2ed7(0x35d)](_0x380fce['values'],_0x453f41))[_0x3f2ed7(0x2b0)](_0x39f345=>this['_replaceOptional'](U['cell'](_0x332c05,_0x39f345['id'],_0xa4992e[_0x3f2ed7(0x50a)]['id']),_0x39f345[_0x3f2ed7(0x45b)][_0xa4992e[_0x3f2ed7(0x50a)]['id']],_0x39f345[_0x3f2ed7(0x45b)][_0x453f41]));return R([..._0xa4992e['field'][_0x3f2ed7(0x305)]===_0x618ba['Formula']?this[_0x3f2ed7(0x2eb)](_0x24b8b8):[],_0x1605a0[_0x3f2ed7(0x2b6)](U[_0x3f2ed7(0x50a)](_0x332c05,_0xa4992e[_0x3f2ed7(0x50a)]['id']),_0xa4992e['field']),_0x1605a0[_0x3f2ed7(0x562)]([_0x3f2ed7(0x2f7),_0x332c05,'fieldOrder'],_0x2b5b30['fieldOrder'],_0x313e03),..._0x3ca57b,..._0x524356]);}['updateField'](_0x4bc777,_0xb59d46,_0x49ebf3,_0x88a5c3){const _0x21a467=_0x5daf81;let _0x3a1430=_0x4bc777[_0x21a467(0x2f7)][_0xb59d46][_0x21a467(0x503)][_0x49ebf3],_0x3519da={..._0x3a1430,..._0x88a5c3};Object[_0x21a467(0x46f)](_0x88a5c3)['forEach'](_0x5c310c=>{_0x88a5c3[_0x5c310c]===void 0x0&&delete _0x3519da[_0x5c310c];});let _0x86cd5f=er(_0x4bc777[_0x21a467(0x2f7)][_0xb59d46],_0x49ebf3,_0x3a1430,_0x3519da);_0x3519da=_0x86cd5f['field'];let _0x2b76ef=_0x1605a0[_0x21a467(0x562)](U[_0x21a467(0x50a)](_0xb59d46,_0x49ebf3),_0x3a1430,_0x3519da);return _0x3519da[_0x21a467(0x305)]===_0x618ba[_0x21a467(0x4a8)]?R([...this[_0x21a467(0x2eb)](_0x4bc777),_0x2b76ef,...this[_0x21a467(0x411)](_0x4bc777,_0xb59d46,_0x49ebf3,_0x3519da)]):R([_0x2b76ef,..._0x86cd5f[_0x21a467(0x4b0)][_0x21a467(0x21d)]?[this['setRangeValues'](_0x4bc777,_0xb59d46,_0x86cd5f['patches'])]:[]]);}['changeFieldType'](_0x37d024,_0x1309a6,_0x4b8030,_0x3e5291){const _0x1e1a8b=_0x5daf81;return this[_0x1e1a8b(0x23d)](_0x37d024,_0x1309a6,_0x4b8030,_0x3e5291);}[_0x5daf81(0x513)](_0x768a57,_0x10b33b,_0x5324f1){const _0x2691a0=_0x5daf81;let _0x1fbff4=_0x768a57[_0x2691a0(0x2f7)][_0x10b33b];if(!(_0x1fbff4!=null&&_0x1fbff4['fields'][_0x5324f1])||_0x1fbff4['primaryFieldId']===_0x5324f1||_0x5324f1===_0x4a6fc3)return _0x1605a0[_0x2691a0(0x562)](['tables',_0x10b33b,_0x2691a0(0x1d6)],_0x1fbff4==null?void 0x0:_0x1fbff4[_0x2691a0(0x1d6)],_0x1fbff4==null?void 0x0:_0x1fbff4[_0x2691a0(0x1d6)]);let _0x271396=_0x1fbff4[_0x2691a0(0x1d6)]['indexOf'](_0x5324f1),_0x575e2b=Object['values'](_0x1fbff4[_0x2691a0(0x1e8)])['flatMap'](_0x1c0dba=>{const _0x5bd620=_0x2691a0;var _0x57dbbb,_0x2450bf,_0x50bb4a,_0x22a3f7,_0xe05377,_0x5d65af,_0x59fb36;let _0x4104a8=[],_0x18d0d0=((_0x57dbbb=_0x1c0dba['fieldOrder'])==null?void 0x0:_0x57dbbb[_0x5bd620(0x25c)](_0x5324f1))??-0x1;_0x18d0d0>=0x0&&_0x4104a8[_0x5bd620(0x482)](_0x1605a0['removeOp']([...U[_0x5bd620(0x3a6)](_0x10b33b,_0x1c0dba['id']),_0x5bd620(0x1d6),_0x18d0d0],_0x5324f1));let _0x16fcf8=(_0x2450bf=_0x1c0dba[_0x5bd620(0x508)])==null?void 0x0:_0x2450bf[_0x5324f1];_0x16fcf8!==void 0x0&&_0x4104a8[_0x5bd620(0x482)](_0x1605a0['removeOp']([...U[_0x5bd620(0x3a6)](_0x10b33b,_0x1c0dba['id']),'fieldSettings',_0x5324f1],_0x16fcf8));let _0x3f8075=_0x1c0dba['filter']?{..._0x1c0dba[_0x5bd620(0x32f)],'conditions':_0x1c0dba['filter'][_0x5bd620(0x245)]['filter'](_0x1a5096=>_0x1a5096[_0x5bd620(0x4a1)]!==_0x5324f1)}:_0x1c0dba[_0x5bd620(0x32f)];_0x3f8075&&_0x3f8075[_0x5bd620(0x245)][_0x5bd620(0x21d)]!==((_0x50bb4a=_0x1c0dba['filter'])==null?void 0x0:_0x50bb4a[_0x5bd620(0x245)][_0x5bd620(0x21d)])&&_0x4104a8[_0x5bd620(0x482)](this[_0x5bd620(0x1e2)]([...U[_0x5bd620(0x3a6)](_0x10b33b,_0x1c0dba['id']),'filter'],_0x1c0dba[_0x5bd620(0x32f)],_0x3f8075));let _0xae07e3=(_0x22a3f7=_0x1c0dba[_0x5bd620(0x3c5)])==null?void 0x0:_0x22a3f7[_0x5bd620(0x32f)](_0x143294=>_0x143294[_0x5bd620(0x4a1)]!==_0x5324f1);_0xae07e3&&_0xae07e3[_0x5bd620(0x21d)]!==((_0xe05377=_0x1c0dba['sort'])==null?void 0x0:_0xe05377[_0x5bd620(0x21d)])&&_0x4104a8['push'](this[_0x5bd620(0x1e2)]([...U[_0x5bd620(0x3a6)](_0x10b33b,_0x1c0dba['id']),_0x5bd620(0x3c5)],_0x1c0dba[_0x5bd620(0x3c5)],_0xae07e3));let _0xf58eac=(_0x5d65af=_0x1c0dba[_0x5bd620(0x3e9)])==null?void 0x0:_0x5d65af[_0x5bd620(0x32f)](_0x590907=>_0x590907[_0x5bd620(0x4a1)]!==_0x5324f1);_0xf58eac&&_0xf58eac[_0x5bd620(0x21d)]!==((_0x59fb36=_0x1c0dba[_0x5bd620(0x3e9)])==null?void 0x0:_0x59fb36[_0x5bd620(0x21d)])&&_0x4104a8['push'](this[_0x5bd620(0x1e2)]([...U[_0x5bd620(0x3a6)](_0x10b33b,_0x1c0dba['id']),_0x5bd620(0x3e9)],_0x1c0dba[_0x5bd620(0x3e9)],_0xf58eac));let _0x323e54=lr(_0x1c0dba[_0x5bd620(0x396)],_0x5324f1);return JSON[_0x5bd620(0x439)](_0x323e54)!==JSON['stringify'](_0x1c0dba[_0x5bd620(0x396)])&&_0x4104a8[_0x5bd620(0x482)](_0x1605a0[_0x5bd620(0x562)]([...U[_0x5bd620(0x3a6)](_0x10b33b,_0x1c0dba['id']),'config'],_0x1c0dba[_0x5bd620(0x396)],_0x323e54)),_0x4104a8;}),_0x9404a2=Object[_0x2691a0(0x45b)](_0x1fbff4[_0x2691a0(0x43a)])[_0x2691a0(0x36c)](_0x234044=>Object[_0x2691a0(0x4e2)][_0x2691a0(0x4d7)][_0x2691a0(0x35d)](_0x234044['values'],_0x5324f1)?[_0x1605a0[_0x2691a0(0x26d)](U[_0x2691a0(0x203)](_0x10b33b,_0x234044['id'],_0x5324f1),_0x234044[_0x2691a0(0x45b)][_0x5324f1])]:[]);return R([_0x1605a0['removeOp'](U[_0x2691a0(0x50a)](_0x10b33b,_0x5324f1),_0x1fbff4[_0x2691a0(0x503)][_0x5324f1]),_0x1605a0[_0x2691a0(0x26d)](U[_0x2691a0(0x1d6)](_0x10b33b,_0x271396),_0x5324f1),..._0x575e2b,..._0x9404a2,...this[_0x2691a0(0x4bc)](_0x1fbff4,_0x10b33b,_0x1cbcca=>_0x1cbcca[_0x2691a0(0x265)](_0x5324f1+'\x1f'))]);}[_0x5daf81(0x3c8)](_0xce431d,_0x3b9b5b,_0x377cb1,_0x2aaf18){const _0x50cc04=_0x5daf81;let _0x18045d=_0xce431d[_0x50cc04(0x2f7)][_0x3b9b5b][_0x50cc04(0x1d6)];if(_0x377cb1===_0x4a6fc3||_0x2aaf18[_0x50cc04(0x1c5)]===_0x4a6fc3)throw Error('[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');let _0x475b7b=sr(_0x18045d,_0x377cb1,_0x2aaf18);return _0x1605a0[_0x50cc04(0x562)]([_0x50cc04(0x2f7),_0x3b9b5b,'fieldOrder'],_0x18045d,_0x475b7b);}[_0x5daf81(0x1b6)](_0x11fd82,_0x11ca9f,_0x4a4b8f,_0x229a7f=_0x11fd82[_0x5daf81(0x2f7)][_0x11ca9f][_0x5daf81(0x410)]['length']){const _0x2badb5=_0x5daf81;return R([_0x1605a0[_0x2badb5(0x2b6)](U[_0x2badb5(0x3a6)](_0x11ca9f,_0x4a4b8f['id']),_0x4a4b8f),_0x1605a0[_0x2badb5(0x2b6)]([_0x2badb5(0x2f7),_0x11ca9f,'viewOrder',_0x229a7f],_0x4a4b8f['id'])]);}[_0x5daf81(0x461)](_0x235a78,_0x2a3598,_0x32e38a,_0x1005c2){const _0x33ed6d=_0x5daf81;return _0x1605a0[_0x33ed6d(0x562)]([...U['view'](_0x2a3598,_0x32e38a),_0x33ed6d(0x322)],_0x235a78[_0x33ed6d(0x2f7)][_0x2a3598]['views'][_0x32e38a][_0x33ed6d(0x322)],_0x1005c2);}[_0x5daf81(0x302)](_0x4035ed,_0x488453,_0x3fc992){const _0x642dfc=_0x5daf81;let _0x5579fb=_0x4035ed[_0x642dfc(0x2f7)][_0x488453],_0x1d2680=_0x5579fb['views'][_0x3fc992],_0x38831b=_0x5579fb[_0x642dfc(0x410)][_0x642dfc(0x25c)](_0x3fc992);return R([_0x1605a0['removeOp'](U[_0x642dfc(0x3a6)](_0x488453,_0x3fc992),_0x1d2680),_0x1605a0['removeOp'](['tables',_0x488453,'viewOrder',_0x38831b],_0x3fc992)]);}['moveView'](_0x5e487f,_0x2041ce,_0x3370b7,_0x58ebf5){const _0x3edabc=_0x5daf81;let _0x1a8117=_0x5e487f[_0x3edabc(0x2f7)][_0x2041ce][_0x3edabc(0x410)],_0x2d9d84=sr(_0x1a8117,_0x3370b7,{'beforeFieldId':_0x58ebf5[_0x3edabc(0x2f2)],'afterFieldId':_0x58ebf5[_0x3edabc(0x4b1)]});return _0x1605a0['replaceOp']([_0x3edabc(0x2f7),_0x2041ce,_0x3edabc(0x410)],_0x1a8117,_0x2d9d84);}[_0x5daf81(0x4c9)](_0x1abf42,_0x5a2072,_0x1de507,_0x54b1ee){const _0x509889=_0x5daf81;let _0x5dcb10=_0x1abf42[_0x509889(0x2f7)][_0x5a2072][_0x509889(0x1e8)][_0x1de507][_0x509889(0x396)]??{},_0x1e9ea2={..._0x5dcb10,..._0x54b1ee};return Object[_0x509889(0x46f)](_0x54b1ee)[_0x509889(0x429)](_0x4bb96e=>{_0x54b1ee[_0x4bb96e]===void 0x0&&delete _0x1e9ea2[_0x4bb96e];}),_0x1605a0[_0x509889(0x562)]([...U[_0x509889(0x3a6)](_0x5a2072,_0x1de507),_0x509889(0x396)],_0x5dcb10,_0x1e9ea2);}[_0x5daf81(0x4ea)](_0x211eb8,_0x3c68a4,_0x51b4a6,_0x2bef3a){const _0x16fb22=_0x5daf81;return this[_0x16fb22(0x1e2)]([...U['view'](_0x3c68a4,_0x51b4a6),_0x16fb22(0x32f)],_0x211eb8[_0x16fb22(0x2f7)][_0x3c68a4][_0x16fb22(0x1e8)][_0x51b4a6][_0x16fb22(0x32f)],_0x2bef3a);}[_0x5daf81(0x367)](_0xc6c48d,_0x3ae961,_0x193a67,_0x2593a3){const _0x2d94d2=_0x5daf81;return this['_replaceOptional']([...U[_0x2d94d2(0x3a6)](_0x3ae961,_0x193a67),_0x2d94d2(0x3c5)],_0xc6c48d[_0x2d94d2(0x2f7)][_0x3ae961][_0x2d94d2(0x1e8)][_0x193a67]['sort'],_0x2593a3);}[_0x5daf81(0x40b)](_0x38d921,_0x4dbe6b,_0x336500,_0x3c5f06){const _0x26ae1d=_0x5daf81;return this[_0x26ae1d(0x1e2)]([...U[_0x26ae1d(0x3a6)](_0x4dbe6b,_0x336500),_0x26ae1d(0x3e9)],_0x38d921[_0x26ae1d(0x2f7)][_0x4dbe6b][_0x26ae1d(0x1e8)][_0x336500][_0x26ae1d(0x3e9)],_0x3c5f06);}[_0x5daf81(0x44d)](_0x368c8f,_0x3d4883,_0x50fd21,_0x42ed04,_0x4624fb){const _0x4a35de=_0x5daf81;return this[_0x4a35de(0x336)](_0x368c8f,_0x3d4883,_0x50fd21,_0x42ed04,{'hidden':!_0x4624fb});}[_0x5daf81(0x41a)](_0x1dae53,_0x27350b,_0x2d2bbc,_0x3da41d,_0x9b1601){const _0x2b7060=_0x5daf81;return this[_0x2b7060(0x336)](_0x1dae53,_0x27350b,_0x2d2bbc,_0x3da41d,{'width':_0x9b1601});}[_0x5daf81(0x511)](_0x114de0,_0x310777,_0x129472,_0x4af4b8,_0x54229e){const _0x17b6cf=_0x5daf81;let _0x3711cb=_0x114de0['tables'][_0x310777][_0x17b6cf(0x1e8)][_0x129472],_0x3553fc=sr(_0x3711cb[_0x17b6cf(0x1d6)]??_0x114de0['tables'][_0x310777][_0x17b6cf(0x1d6)],_0x4af4b8,_0x54229e);return this[_0x17b6cf(0x1e2)]([...U[_0x17b6cf(0x3a6)](_0x310777,_0x129472),_0x17b6cf(0x1d6)],_0x3711cb[_0x17b6cf(0x1d6)],_0x3553fc);}[_0x5daf81(0x336)](_0x54327e,_0x49099e,_0x418c83,_0x29dc40,_0x31880e){const _0xa8b75=_0x5daf81;let _0x1da11e=_0x54327e[_0xa8b75(0x2f7)][_0x49099e][_0xa8b75(0x1e8)][_0x418c83][_0xa8b75(0x508)]??{},_0x45b37b={..._0x1da11e,[_0x29dc40]:{..._0x1da11e[_0x29dc40],..._0x31880e}};return this[_0xa8b75(0x1e2)]([...U[_0xa8b75(0x3a6)](_0x49099e,_0x418c83),_0xa8b75(0x508)],_0x54327e[_0xa8b75(0x2f7)][_0x49099e][_0xa8b75(0x1e8)][_0x418c83][_0xa8b75(0x508)],_0x45b37b);}[_0x5daf81(0x4a0)](_0x1ae50c,_0x5caf92,_0x3adc18){const _0x21169a=_0x5daf81;let _0x403e8e=_0x1ae50c[_0x21169a(0x2f7)][_0x5caf92],_0x296d99=new Set(_0x3adc18[_0x21169a(0x2b0)](_0x220db0=>_0x220db0['id'])),_0x3af5a6=[...Object[_0x21169a(0x45b)](_0x403e8e['records'])[_0x21169a(0x32f)](_0x1c1f39=>!_0x296d99['has'](_0x1c1f39['id'])),..._0x3adc18][_0x21169a(0x3c5)]((_0x324ba9,_0x453d7c)=>String(_0x324ba9[_0x21169a(0x2a2)]??_0x324ba9['id'])[_0x21169a(0x202)](String(_0x453d7c[_0x21169a(0x2a2)]??_0x453d7c['id'])))[_0x21169a(0x2b0)](_0xf2ffbb=>_0xf2ffbb['id']),_0x6e461d=[...U[_0x21169a(0x524)](_0x5caf92),_0x21169a(0x3da)];return _0x403e8e['recordOrder']?_0x1605a0['replaceOp'](_0x6e461d,_0x403e8e[_0x21169a(0x3da)],_0x3af5a6):_0x1605a0[_0x21169a(0x2b6)](_0x6e461d,_0x3af5a6);}['_materializeFormulaTableNames'](_0x1adf39,_0x1d327e=new Set()){const _0x410eac=_0x5daf81;let _0xf44985=_0x4b2d20(_0x1adf39);return Object[_0x410eac(0x45b)](_0x1adf39[_0x410eac(0x2f7)])[_0x410eac(0x32f)](_0x3b8c72=>!_0x1d327e[_0x410eac(0x253)](_0x3b8c72['id']))['sort']((_0x388695,_0x351cdd)=>_0x388695['id']['localeCompare'](_0x351cdd['id']))[_0x410eac(0x36c)](_0x33631a=>{const _0x21b91d=_0x410eac;let _0x50c007=_0xf44985[_0x21b91d(0x315)](_0x33631a['id']);return!_0x50c007||_0x33631a['formulaName']===_0x50c007?[]:[this['_replaceOptional']([...U[_0x21b91d(0x524)](_0x33631a['id']),_0x21b91d(0x516)],_0x33631a['formulaName'],_0x50c007)];});}[_0x5daf81(0x411)](_0x5d0512,_0x4f446a,_0x5dfe87,_0xa8b070){const _0x1315a5=_0x5daf81;var _0x292349,_0xe7461a;let _0x1c6ba0=L(_0x5d0512[_0x1315a5(0x2f7)][_0x4f446a]),_0x1b8e8a=String(((_0x292349=_0xa8b070['config'])==null?void 0x0:_0x292349[_0x1315a5(0x494)])??'')[_0x1315a5(0x3a5)](),_0x405a5d=(_0xe7461a=_0x1c6ba0[_0x1315a5(0x3b9)])==null?void 0x0:_0xe7461a[_0x5dfe87];if(_0x405a5d==null)return[];let _0x3a9851=_0x1c6ba0[_0x1315a5(0x3da)]??Object[_0x1315a5(0x46f)](_0x1c6ba0['records']),_0x5d9115=_0x3a9851[_0x1315a5(0x2b0)](_0x48d509=>{const _0x385c0f=_0x1315a5;var _0x21d5d6;return(_0x21d5d6=_0x1c6ba0[_0x385c0f(0x2c4)])==null?void 0x0:_0x21d5d6[_0x48d509];})[_0x1315a5(0x2d8)](_0x8a8e26=>_0x8a8e26!=null);return _0x3a9851[_0x1315a5(0x36c)](_0x1cf837=>{const _0x5559c6=_0x1315a5;var _0xbe0da,_0x5ced93;let _0x1bef40=(_0xbe0da=_0x1c6ba0[_0x5559c6(0x2c4)])==null?void 0x0:_0xbe0da[_0x1cf837];if(_0x1bef40==null)return[];let _0xf4437b=(_0x5ced93=_0x1c6ba0[_0x5559c6(0x1d3)])==null||(_0x5ced93=_0x5ced93[_0x1bef40])==null?void 0x0:_0x5ced93[_0x405a5d],_0x250190=_0x1b8e8a?_0x1bef40===_0x5d9115?{'f':_0x1b8e8a,'si':_0x5dfe87}:{'si':_0x5dfe87}:{'v':null,'t':null};return[this['_replaceOptional'](U[_0x5559c6(0x1d3)](_0x4f446a,_0x1bef40,_0x405a5d),_0xf4437b,_0x250190)];});}['_setAttachmentResources'](_0x429a6a,_0x2dc23f,_0x4dfb2a){const _0x3f93d4=_0x5daf81;var _0x31a2d6;let _0xb9eef2=new Map(Object[_0x3f93d4(0x2e4)](((_0x31a2d6=_0x429a6a[_0x3f93d4(0x48d)])==null?void 0x0:_0x31a2d6['attachmentSets'])??{})),_0x593d03=new Map(),_0x437dc7=new Set(),_0x51dc53=_0x4dfb2a[_0x3f93d4(0x2b0)](({recordId:_0x7c361a,fieldId:_0x2045cc,attachments:_0x241975})=>{const _0x26de03=_0x3f93d4;var _0x452dba;let _0xef1a92=Et(_0x2045cc,_0x7c361a),_0x5ac217=_0x241975[_0x26de03(0x2b0)]((_0x30c5ee,_0x4338b0)=>String(_0x30c5ee['id']??_0xef1a92+'\x1f'+_0x4338b0));return _0x437dc7['add'](_0xef1a92),_0xb9eef2[_0x26de03(0x1ba)](_0xef1a92,_0x5ac217),_0x241975[_0x26de03(0x429)]((_0x511b53,_0xbc6927)=>{const _0x16d9bd=_0x26de03;let _0x2e9f38=_0x5ac217[_0xbc6927];_0x593d03[_0x16d9bd(0x1ba)](_0x2e9f38,{..._0x511b53,'id':_0x2e9f38});}),this['_replaceOptional'](U[_0x26de03(0x488)](_0x2dc23f,_0xef1a92),(_0x452dba=_0x429a6a[_0x26de03(0x48d)])==null||(_0x452dba=_0x452dba[_0x26de03(0x313)])==null?void 0x0:_0x452dba[_0xef1a92],_0x5ac217);}),_0x4fe6a0=Array[_0x3f93d4(0x404)](_0x593d03)['map'](([_0x36206b,_0x21af85])=>{const _0x50d79b=_0x3f93d4;var _0x40af26;return this[_0x50d79b(0x1e2)](U[_0x50d79b(0x457)](_0x2dc23f,_0x36206b),(_0x40af26=_0x429a6a['resources'])==null||(_0x40af26=_0x40af26['attachments'])==null?void 0x0:_0x40af26[_0x36206b],_0x21af85);}),_0x4a08fd=new Set(Array['from'](_0xb9eef2[_0x3f93d4(0x45b)]())['flat']()),_0x1d1d1b=new Set(Array['from'](_0x437dc7)['flatMap'](_0x53fed5=>{const _0x39295a=_0x3f93d4;var _0x419a6a;return((_0x419a6a=_0x429a6a['resources'])==null||(_0x419a6a=_0x419a6a[_0x39295a(0x313)])==null?void 0x0:_0x419a6a[_0x53fed5])??[];})),_0x499904=Array[_0x3f93d4(0x404)](_0x1d1d1b)['flatMap'](_0xe610b9=>{const _0x1748fc=_0x3f93d4;var _0x578056;let _0x10445e=(_0x578056=_0x429a6a['resources'])==null||(_0x578056=_0x578056[_0x1748fc(0x36f)])==null?void 0x0:_0x578056[_0xe610b9];return _0x10445e!==void 0x0&&!_0x4a08fd['has'](_0xe610b9)?[_0x1605a0[_0x1748fc(0x26d)](U[_0x1748fc(0x457)](_0x2dc23f,_0xe610b9),_0x10445e)]:[];});return[..._0x51dc53,..._0x4fe6a0,..._0x499904];}[_0x5daf81(0x4bc)](_0x2fbd6c,_0x315e55,_0x3e52e2){const _0x1fdb5d=_0x5daf81;var _0x2a406e;let _0x5e5163=((_0x2a406e=_0x2fbd6c[_0x1fdb5d(0x48d)])==null?void 0x0:_0x2a406e['attachmentSets'])??{},_0x296027=Object[_0x1fdb5d(0x2e4)](_0x5e5163)[_0x1fdb5d(0x32f)](([_0x5a9d67])=>_0x3e52e2(_0x5a9d67));if(!_0x296027[_0x1fdb5d(0x21d)])return[];let _0x53c816=new Set(Object[_0x1fdb5d(0x2e4)](_0x5e5163)[_0x1fdb5d(0x32f)](([_0x4d364d])=>!_0x3e52e2(_0x4d364d))[_0x1fdb5d(0x36c)](([,_0x3520f0])=>_0x3520f0)),_0x25e748=new Set(_0x296027['flatMap'](([,_0x4bf83c])=>_0x4bf83c));return[..._0x296027[_0x1fdb5d(0x2b0)](([_0x368f27,_0x4ae91d])=>_0x1605a0['removeOp'](U['attachmentSet'](_0x315e55,_0x368f27),_0x4ae91d)),...Array[_0x1fdb5d(0x404)](_0x25e748)[_0x1fdb5d(0x36c)](_0x4b468c=>{const _0x192c97=_0x1fdb5d;var _0x4757b3;let _0x338899=(_0x4757b3=_0x2fbd6c[_0x192c97(0x48d)])==null||(_0x4757b3=_0x4757b3[_0x192c97(0x36f)])==null?void 0x0:_0x4757b3[_0x4b468c];return _0x338899!==void 0x0&&!_0x53c816[_0x192c97(0x253)](_0x4b468c)?[_0x1605a0[_0x192c97(0x26d)](U['attachment'](_0x315e55,_0x4b468c),_0x338899)]:[];})];}[_0x5daf81(0x1e2)](_0x45b419,_0x45dae2,_0x3de7df){const _0x13b5b0=_0x5daf81;return _0x45dae2===void 0x0?_0x1605a0[_0x13b5b0(0x2b6)](_0x45b419,_0x3de7df):_0x1605a0[_0x13b5b0(0x562)](_0x45b419,_0x45dae2,_0x3de7df);}};function er(_0xb67dfd,_0x1c45d3,_0x33902d,_0x3db16d){const _0x38f80c=_0x5daf81;var _0x929eda;let _0x53dd8b=_0x3db16d[_0x38f80c(0x305)];if(_0x33902d[_0x38f80c(0x305)]!==_0x53dd8b||_0x53dd8b!==_0x618ba['SingleSelect']&&_0x53dd8b!==_0x618ba['MultiSelect']||tr(_0x3db16d['config'][_0x38f80c(0x4ad)]))return{'field':_0x3db16d,'patches':[]};let _0x4845e3=nr(_0x33902d),_0x22dbeb=nr(_0x3db16d);if(![..._0x4845e3]['some'](_0x54ae02=>!_0x22dbeb[_0x38f80c(0x253)](_0x54ae02)))return{'field':_0x3db16d,'patches':[]};let _0x49607d=rr(_0x3db16d['defaultValue'],_0x22dbeb,_0x53dd8b),_0xb8078d=ir(_0x49607d,_0x3db16d[_0x38f80c(0x224)])?_0x3db16d:{..._0x3db16d,'defaultValue':_0x49607d},_0x2a3777=L(_0xb67dfd),_0x3d8032=(_0x929eda=_0x2a3777['colIndex'])==null?void 0x0:_0x929eda[_0x1c45d3];return _0x3d8032==null?{'field':_0xb8078d,'patches':[]}:{'field':_0xb8078d,'patches':(_0x2a3777['recordOrder']??[])[_0x38f80c(0x36c)](_0xb00168=>{const _0x269da9=_0x38f80c;var _0x14e5a8,_0x19c3d5;let _0x4dcf61=(_0x14e5a8=_0x2a3777[_0x269da9(0x2c4)])==null?void 0x0:_0x14e5a8[_0xb00168],_0x1da839=(_0x19c3d5=_0x2a3777['records'][_0xb00168])==null?void 0x0:_0x19c3d5[_0x269da9(0x45b)][_0x1c45d3],_0x4778e3=rr(_0x1da839,_0x22dbeb,_0x53dd8b);return _0x4dcf61==null||ir(_0x4778e3,_0x1da839)?[]:[{'row':_0x4dcf61,'col':_0x3d8032,'value':_0x4778e3??null}];})};}function tr(_0x5bfe92){const _0x10ce3c=_0x5daf81;return typeof _0x5bfe92==_0x10ce3c(0x1fb)&&!!_0x5bfe92&&'type'in _0x5bfe92&&_0x5bfe92[_0x10ce3c(0x305)]===_0x10ce3c(0x50a);}function nr(_0x251c7b){const _0x471ce0=_0x5daf81;var _0x2fe7b6;let _0x52e4cd=Array['isArray']((_0x2fe7b6=_0x251c7b[_0x471ce0(0x396)])==null?void 0x0:_0x2fe7b6[_0x471ce0(0x49e)])?_0x251c7b[_0x471ce0(0x396)]['options']:[];return new Set(_0x52e4cd[_0x471ce0(0x36c)](_0x2993f2=>{const _0x397d81=_0x471ce0;if(!_0x2993f2||typeof _0x2993f2!=_0x397d81(0x1fb)||!('id'in _0x2993f2))return[];let _0x2699ca=String(_0x2993f2['id']);return _0x2699ca?[_0x2699ca]:[];}));}function rr(_0x2a6608,_0xa0f41e,_0x3bc094){const _0x446f06=_0x5daf81;if(_0x2a6608==null||_0x2a6608==='')return _0x2a6608;if(_0x3bc094===_0x618ba[_0x446f06(0x3af)])return _0xa0f41e[_0x446f06(0x253)](String(_0x2a6608))?_0x2a6608:null;let _0x386e5f=Array[_0x446f06(0x31e)](_0x2a6608)?_0x2a6608[_0x446f06(0x2b0)](String):String(_0x2a6608)[_0x446f06(0x4d9)](',')[_0x446f06(0x2b0)](_0x118d8c=>_0x118d8c[_0x446f06(0x3a5)]())['filter'](Boolean),_0x5c1483=_0x386e5f['filter'](_0x21ebb3=>_0xa0f41e['has'](_0x21ebb3));return _0x5c1483['length']===_0x386e5f[_0x446f06(0x21d)]?_0x2a6608:Array['isArray'](_0x2a6608)?_0x5c1483:String(_0x2a6608)[_0x446f06(0x4f9)](',')?_0x5c1483[_0x446f06(0x30a)](','):_0x5c1483[0x0]??[];}function ir(_0x2296bd,_0x93c87f){const _0x487dcc=_0x5daf81;return JSON[_0x487dcc(0x439)](_0x2296bd)===JSON[_0x487dcc(0x439)](_0x93c87f);}function ar(_0x4e0baa,_0x565b89,_0x2390f4){const _0x543791=_0x5daf81;var _0x1e17fa,_0x4159aa,_0x8db428,_0x526af1;let _0x38bf8c=(_0x1e17fa=_0x4e0baa['rowIndex'])==null?void 0x0:_0x1e17fa[_0x565b89],_0x1d6689=(_0x4159aa=_0x4e0baa[_0x543791(0x3b9)])==null?void 0x0:_0x4159aa[_0x2390f4];return _0x38bf8c!=null&&_0x1d6689!=null&&((_0x8db428=_0x4e0baa['rowId'])==null?void 0x0:_0x8db428[_0x38bf8c])===_0x565b89&&((_0x526af1=_0x4e0baa[_0x543791(0x33c)])==null?void 0x0:_0x526af1[_0x1d6689])===_0x2390f4&&_0x4e0baa[_0x543791(0x1d3)]!=null;}function or(_0x21097c,_0x19adb6,_0x311553){const _0x4fa235=_0x5daf81;var _0x5c95c0,_0x4eb2fd;return((_0x5c95c0=_0x21097c[_0x4fa235(0x1ec)])==null?void 0x0:_0x5c95c0[_0x19adb6])!=null&&((_0x4eb2fd=_0x21097c['colId'])==null?void 0x0:_0x4eb2fd[_0x311553])!=null&&_0x21097c[_0x4fa235(0x1d3)]!=null;}function sr(_0x270b8d,_0x4c4ff6,_0x2d826d){const _0x2706da=_0x5daf81;let _0x2e601a=_0x270b8d[_0x2706da(0x32f)](_0x270034=>_0x270034!==_0x4c4ff6),_0x4357ae=_0x2d826d[_0x2706da(0x1c5)]?_0x2e601a[_0x2706da(0x25c)](_0x2d826d['beforeFieldId']):_0x2d826d[_0x2706da(0x51b)]?_0x2e601a['indexOf'](_0x2d826d[_0x2706da(0x51b)])+0x1:_0x2e601a[_0x2706da(0x21d)];return _0x2e601a[_0x2706da(0x3f5)](_0x4357ae<0x0?_0x2e601a[_0x2706da(0x21d)]:_0x4357ae,0x0,_0x4c4ff6),_0x2e601a;}function cr(_0x1f7f1b,_0x475681,_0x451cb8){const _0x8a6228=_0x5daf81;let _0x48a921=_0x1f7f1b['filter'](_0x291d26=>_0x291d26!==_0x475681);return _0x48a921[_0x8a6228(0x3f5)](ur(_0x451cb8,_0x48a921[_0x8a6228(0x21d)]),0x0,_0x475681),_0x48a921;}function lr(_0x487f26,_0x17c659,_0x67cc73){const _0x35bd48=_0x5daf81;if(Array[_0x35bd48(0x31e)](_0x487f26))return _0x67cc73===_0x35bd48(0x209)?_0x487f26[_0x35bd48(0x32f)](_0x4f3b41=>_0x4f3b41!==_0x17c659):_0x487f26['flatMap'](_0x320f0b=>{const _0x86789d=_0x35bd48;if(_0x320f0b&&typeof _0x320f0b==_0x86789d(0x1fb)&&!Array[_0x86789d(0x31e)](_0x320f0b)&&_0x320f0b[_0x86789d(0x4a1)]===_0x17c659)return[];let _0x415f29=lr(_0x320f0b,_0x17c659);return _0x415f29===void 0x0?[]:[_0x415f29];});if(!_0x487f26||typeof _0x487f26!=_0x35bd48(0x1fb))return _0x67cc73!=null&&_0x67cc73[_0x35bd48(0x528)]('FieldId')&&_0x487f26===_0x17c659?void 0x0:_0x487f26;let _0x385c3f=_0x487f26;if(_0x385c3f[_0x35bd48(0x4a1)]!==_0x17c659)return Object[_0x35bd48(0x407)](Object[_0x35bd48(0x2e4)](_0x385c3f)[_0x35bd48(0x36c)](([_0x25f83b,_0x1baeff])=>{const _0x4b1f3c=_0x35bd48;if(_0x25f83b===_0x17c659&&_0x67cc73===_0x4b1f3c(0x508))return[];let _0x46a577=lr(_0x1baeff,_0x17c659,_0x25f83b);return _0x46a577===void 0x0?[]:[[_0x25f83b,_0x46a577]];}));}function ur(_0x49d37f,_0x33eeaf){const _0x80dd81=_0x5daf81;return Math[_0x80dd81(0x29c)](0x0,Math[_0x80dd81(0x469)](_0x49d37f,_0x33eeaf));}function dr(_0x2a5f34){'@babel/helpers - typeof';const _0xaac5df=_0x5daf81;return dr=typeof Symbol==_0xaac5df(0x55e)&&typeof Symbol[_0xaac5df(0x369)]==_0xaac5df(0x374)?function(_0x231dcc){return typeof _0x231dcc;}:function(_0x30ac83){const _0x5538cd=_0xaac5df;return _0x30ac83&&typeof Symbol=='function'&&_0x30ac83[_0x5538cd(0x25f)]===Symbol&&_0x30ac83!==Symbol['prototype']?_0x5538cd(0x374):typeof _0x30ac83;},dr(_0x2a5f34);}function fr(_0x196196,_0x43b22f){const _0x44d492=_0x5daf81;if(dr(_0x196196)!=_0x44d492(0x1fb)||!_0x196196)return _0x196196;var _0xb2ab2=_0x196196[Symbol[_0x44d492(0x3e3)]];if(_0xb2ab2!==void 0x0){var _0x2e54b7=_0xb2ab2['call'](_0x196196,_0x43b22f||_0x44d492(0x261));if(dr(_0x2e54b7)!='object')return _0x2e54b7;throw TypeError(_0x44d492(0x2d6));}return(_0x43b22f===_0x44d492(0x2ed)?String:Number)(_0x196196);}function pr(_0x159598){const _0x5701b3=_0x5daf81;var _0x38d192=fr(_0x159598,_0x5701b3(0x2ed));return dr(_0x38d192)==_0x5701b3(0x374)?_0x38d192:_0x38d192+'';}function G(_0x3e6245,_0xadcec4,_0x2dfe4d){const _0x5af728=_0x5daf81;return(_0xadcec4=pr(_0xadcec4))in _0x3e6245?Object[_0x5af728(0x37a)](_0x3e6245,_0xadcec4,{'value':_0x2dfe4d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e6245[_0xadcec4]=_0x2dfe4d,_0x3e6245;}const mr=_0x3262c5('base.field-registry.service');var hr=class extends _0x183939{constructor(..._0x4cd834){super(..._0x4cd834),G(this,'_plugins',new Map());}[_0x5daf81(0x549)](_0x43c554){const _0x56ce3d=_0x5daf81;return this[_0x56ce3d(0x450)]['set'](_0x43c554[_0x56ce3d(0x305)],_0x43c554),_0x1a388a(()=>this['_plugins'][_0x56ce3d(0x3ae)](_0x43c554[_0x56ce3d(0x305)]));}[_0x5daf81(0x315)](_0xe6849e){const _0x15f3b0=_0x5daf81;let _0x5d38df=this[_0x15f3b0(0x450)][_0x15f3b0(0x315)](_0xe6849e);if(!_0x5d38df)throw Error(_0x15f3b0(0x44e)+_0xe6849e+_0x15f3b0(0x2ec));return _0x5d38df;}[_0x5daf81(0x4fa)](_0x5b54b6){const _0x435e7d=_0x5daf81;return this[_0x435e7d(0x450)][_0x435e7d(0x315)](_0x5b54b6);}['getAll'](){const _0x1fd0b3=_0x5daf81;return Array[_0x1fd0b3(0x404)](this['_plugins']['values']());}},gr=class{constructor(_0x2ab736){const _0x3e16bf=_0x5daf81;this[_0x3e16bf(0x3cb)]=_0x2ab736,G(this,_0x3e16bf(0x305),_0x2ea692[_0x3e16bf(0x348)]),G(this,_0x3e16bf(0x208),_0x44dc45[_0x3e16bf(0x332)]),G(this,_0x3e16bf(0x3f0),_0x2150fa[_0x3e16bf(0x3d0)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x3e16bf(0x305)]+'.'+this['subType']+'_'+_0x2ab736;}},_r=class{constructor(_0x43eded){const _0x490427=_0x5daf81;this[_0x490427(0x3cb)]=_0x43eded,G(this,_0x490427(0x305),_0x2ea692[_0x490427(0x348)]),G(this,_0x490427(0x208),_0x44dc45[_0x490427(0x331)]),G(this,_0x490427(0x3f0),_0x2150fa['INIT']),G(this,'id',void 0x0),G(this,_0x490427(0x3fd),!0x0),this['id']=this['type']+'.'+this[_0x490427(0x208)]+'_'+_0x43eded;}},vr=class{constructor(_0x5e497d){const _0x35a505=_0x5daf81;this['unitId']=_0x5e497d,G(this,'type',_0x2ea692[_0x35a505(0x348)]),G(this,'subType',_0x44dc45['Edit']),G(this,_0x35a505(0x3f0),_0x2150fa[_0x35a505(0x3d0)]),G(this,'id',void 0x0),G(this,_0x35a505(0x3fd),!0x0),this['id']=this[_0x35a505(0x305)]+'.'+this[_0x35a505(0x208)]+'_'+_0x5e497d;}},yr=class{constructor(_0x48650f){const _0x480c03=_0x5daf81;this[_0x480c03(0x3cb)]=_0x48650f,G(this,_0x480c03(0x305),_0x2ea692[_0x480c03(0x348)]),G(this,'subType',_0x44dc45[_0x480c03(0x29b)]),G(this,_0x480c03(0x3f0),_0x2150fa[_0x480c03(0x3d0)]),G(this,'id',void 0x0),G(this,_0x480c03(0x3fd),!0x0),this['id']=this['type']+'.'+this[_0x480c03(0x208)]+'_'+_0x48650f;}},br=class{constructor(_0x3767cc,_0x31ae4c){const _0x2a0ae5=_0x5daf81;this[_0x2a0ae5(0x3cb)]=_0x3767cc,this['objectId']=_0x31ae4c,G(this,'type',_0x2ea692['BaseDashboard']),G(this,_0x2a0ae5(0x208),_0x44dc45['Edit']),G(this,'status',_0x2150fa[_0x2a0ae5(0x3d0)]),G(this,'id',void 0x0),G(this,_0x2a0ae5(0x3fd),!0x0),this['id']=this[_0x2a0ae5(0x305)]+'.'+this['subType']+'_'+_0x3767cc+'_'+_0x31ae4c;}},xr=class{constructor(_0x377ebd,_0x2ecf00){const _0x58bb6f=_0x5daf81;this['unitId']=_0x377ebd,this['objectId']=_0x2ecf00,G(this,_0x58bb6f(0x305),_0x2ea692[_0x58bb6f(0x3c1)]),G(this,'subType',_0x44dc45[_0x58bb6f(0x555)]),G(this,'status',_0x2150fa[_0x58bb6f(0x3d0)]),G(this,'id',void 0x0),G(this,_0x58bb6f(0x3fd),!0x0),this['id']=this[_0x58bb6f(0x305)]+'.'+this[_0x58bb6f(0x208)]+'_'+_0x377ebd+'_'+_0x2ecf00;}},Sr=class{constructor(_0x5d5870,_0x304175){const _0x4b9b8a=_0x5daf81;this['unitId']=_0x5d5870,this[_0x4b9b8a(0x3d2)]=_0x304175,G(this,_0x4b9b8a(0x305),_0x2ea692[_0x4b9b8a(0x52a)]),G(this,'subType',_0x44dc45[_0x4b9b8a(0x555)]),G(this,_0x4b9b8a(0x3f0),_0x2150fa['INIT']),G(this,'id',void 0x0),G(this,_0x4b9b8a(0x3fd),!0x0),this['id']=this[_0x4b9b8a(0x305)]+'.'+this[_0x4b9b8a(0x208)]+'_'+_0x5d5870+'_'+_0x304175;}},Cr=class{constructor(_0x16a8ee,_0x1333e2){const _0x58be22=_0x5daf81;this[_0x58be22(0x3cb)]=_0x16a8ee,this[_0x58be22(0x3d2)]=_0x1333e2,G(this,'type',_0x2ea692['BaseTable']),G(this,_0x58be22(0x208),_0x44dc45[_0x58be22(0x555)]),G(this,_0x58be22(0x3f0),_0x2150fa[_0x58be22(0x3d0)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x58be22(0x305)]+'.'+this[_0x58be22(0x208)]+'_'+_0x16a8ee+'_'+_0x1333e2;}},wr=class{constructor(_0x59d678,_0x28fc96){const _0x535722=_0x5daf81;this[_0x535722(0x3cb)]=_0x59d678,this[_0x535722(0x3d2)]=_0x28fc96,G(this,_0x535722(0x305),_0x2ea692[_0x535722(0x2cd)]),G(this,_0x535722(0x208),_0x44dc45[_0x535722(0x555)]),G(this,_0x535722(0x3f0),_0x2150fa[_0x535722(0x3d0)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x535722(0x305)]+'.'+this['subType']+'_'+_0x59d678+'_'+_0x28fc96;}};const Tr=[_0x44dc45[_0x5daf81(0x555)],_0x44dc45[_0x5daf81(0x331)],_0x44dc45[_0x5daf81(0x29b)],_0x44dc45['Comment']],Er=new Set([_0x2ea692['Base'],_0x2ea692[_0x5daf81(0x1de)],_0x2ea692['BaseField'],_0x2ea692[_0x5daf81(0x52a)],_0x2ea692['BaseView'],_0x2ea692[_0x5daf81(0x357)]]),Dr=_0x5daf81(0x338),Or='field/',kr=_0x5daf81(0x3ef),Ar=_0x5daf81(0x2b1),jr=_0x5daf81(0x321);function K(_0x207fce){return''+Dr+encodeURIComponent(_0x207fce);}function q(_0x5b0782,_0x19a25d){return''+Or+encodeURIComponent(_0x5b0782)+'/'+encodeURIComponent(_0x19a25d);}function J(_0x468a36,_0x2488f4){return''+kr+encodeURIComponent(_0x468a36)+'/'+encodeURIComponent(_0x2488f4);}function Mr(_0x3b784c,_0xf21376){return''+Ar+encodeURIComponent(_0x3b784c)+'/'+encodeURIComponent(_0xf21376);}function Nr(_0x52f826){return''+jr+encodeURIComponent(_0x52f826);}function Pr(_0x569d55,_0x9bc6fb,_0x33f698){const _0x40295f=_0x5daf81;if(_0x9bc6fb===_0x569d55)switch(_0x33f698){case _0x44dc45['Edit']:return new vr(_0x569d55);case _0x44dc45[_0x40295f(0x331)]:return new _r(_0x569d55);case _0x44dc45[_0x40295f(0x29b)]:return new yr(_0x569d55);case _0x44dc45[_0x40295f(0x332)]:return new gr(_0x569d55);default:throw Error(_0x40295f(0x233)+_0x33f698);}if(_0x33f698!==_0x44dc45[_0x40295f(0x555)])throw Error('Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20'+_0x9bc6fb);if(_0x9bc6fb['startsWith'](Dr))return new Cr(_0x569d55,_0x9bc6fb);if(_0x9bc6fb[_0x40295f(0x265)](Or))return new xr(_0x569d55,_0x9bc6fb);if(_0x9bc6fb[_0x40295f(0x265)](kr))return new Sr(_0x569d55,_0x9bc6fb);if(_0x9bc6fb[_0x40295f(0x265)](Ar))return new wr(_0x569d55,_0x9bc6fb);if(_0x9bc6fb[_0x40295f(0x265)](jr))return new br(_0x569d55,_0x9bc6fb);throw Error(_0x40295f(0x544)+_0x9bc6fb);}function Fr(_0x2a23b1,_0x53e4d5,_0x1bdbfa,_0x1147bb){const _0x6c8c91=_0x5daf81;var _0x3c8f09;return((_0x3c8f09=_0x2a23b1['getPermissionPoint'](Pr(_0x53e4d5,_0x1bdbfa,_0x1147bb)['id']))==null?void 0x0:_0x3c8f09[_0x6c8c91(0x3fd)])??!0x0;}function Ir(_0x597694,_0x48577b,_0x443ff4,_0x22e79c,_0x11c081){const _0x1fdbf2=_0x5daf81;let _0x740288=Pr(_0x48577b,_0x443ff4,_0x22e79c);_0x597694['getPermissionPoint'](_0x740288['id'])||_0x597694[_0x1fdbf2(0x292)](_0x740288),_0x597694[_0x1fdbf2(0x1c9)](_0x740288['id'],_0x11c081);}function Lr(_0x313f18,_0x18a8fd,_0x504bf5,_0xd836ae){const _0x3034e6=_0x5daf81;_0x313f18[_0x3034e6(0x258)](Pr(_0x18a8fd,_0x504bf5,_0xd836ae)['id']);}function Rr(_0x438fa6,_0x418dad){const _0x232ddf=_0x5daf81;_0x438fa6[_0x232ddf(0x1bd)]()[_0x232ddf(0x429)]((_0x2729b2,_0x35c5a2)=>{const _0x36883b=_0x232ddf;_0x2729b2[_0x36883b(0x341)](_0x307ce8=>{const _0x46f891=_0x36883b;Er[_0x46f891(0x253)](_0x307ce8['type'])&&_0x46f891(0x3cb)in _0x307ce8&&_0x307ce8[_0x46f891(0x3cb)]===_0x418dad&&_0x438fa6[_0x46f891(0x258)](_0x35c5a2);})[_0x36883b(0x2e9)]();});}function zr(_0x36de95,_0x5209d7,_0x5a2811){const _0x22322b=_0x5daf81;return Fr(_0x36de95,_0x5209d7,_0x5209d7,_0x44dc45[_0x22322b(0x555)])&&Array[_0x22322b(0x404)](_0x5a2811)[_0x22322b(0x2ab)](_0x3658f6=>Fr(_0x36de95,_0x5209d7,_0x3658f6,_0x44dc45[_0x22322b(0x555)]));}function Y(_0x1588d9,_0x3ca502){return function(_0x26570a,_0x540a1a){_0x3ca502(_0x26570a,_0x540a1a,_0x1588d9);};}function X(_0x4a3c0e,_0x5ef101,_0xcab42c,_0x2b72aa){const _0x206daf=_0x5daf81;var _0x4b5f1f=arguments[_0x206daf(0x21d)],_0x155c36=_0x4b5f1f<0x3?_0x5ef101:_0x2b72aa===null?_0x2b72aa=Object[_0x206daf(0x1f0)](_0x5ef101,_0xcab42c):_0x2b72aa,_0x28e73d;if(typeof Reflect=='object'&&typeof Reflect[_0x206daf(0x1d1)]==_0x206daf(0x55e))_0x155c36=Reflect[_0x206daf(0x1d1)](_0x4a3c0e,_0x5ef101,_0xcab42c,_0x2b72aa);else{for(var _0x466af2=_0x4a3c0e[_0x206daf(0x21d)]-0x1;_0x466af2>=0x0;_0x466af2--)(_0x28e73d=_0x4a3c0e[_0x466af2])&&(_0x155c36=(_0x4b5f1f<0x3?_0x28e73d(_0x155c36):_0x4b5f1f>0x3?_0x28e73d(_0x5ef101,_0xcab42c,_0x155c36):_0x28e73d(_0x5ef101,_0xcab42c))||_0x155c36);}return _0x4b5f1f>0x3&&_0x155c36&&Object[_0x206daf(0x37a)](_0x5ef101,_0xcab42c,_0x155c36),_0x155c36;}const Br=_0x3262c5('base.permission.service');let Vr=class extends _0x183939{constructor(_0xc323cf,_0x31958a){const _0x113128=_0x5daf81;super(),this[_0x113128(0x43e)]=_0xc323cf,this[_0x113128(0x443)]=_0x31958a,G(this,_0x113128(0x22b),new Map()),G(this,_0x113128(0x2c8),new Map()),G(this,_0x113128(0x1f7),new Map()),G(this,'_recordPermissions',new Map()),G(this,_0x113128(0x28b),new Map()),G(this,_0x113128(0x319),new Map()),this[_0x113128(0x314)](this[_0x113128(0x443)]['getTypeOfUnitDisposed$'](_0x2ddca0[_0x113128(0x33d)])[_0x113128(0x341)](_0x164beb=>this['_clearUnit'](_0x164beb[_0x113128(0x506)]())));}[_0x5daf81(0x477)](_0x2021db){const _0x150bb7=_0x5daf81;var _0x5c96ce;return this['_canEdit'](_0x2021db,[])&&(((_0x5c96ce=this[_0x150bb7(0x22b)][_0x150bb7(0x315)](_0x2021db))==null?void 0x0:_0x5c96ce[_0x150bb7(0x3e6)])??!0x0);}['canEditTable'](_0x5a28c2){const _0x535da2=_0x5daf81;return this[_0x535da2(0x2b7)](_0x5a28c2);}[_0x5daf81(0x1e4)](_0x32f035){const _0x421e2c=_0x5daf81;var _0x5678a6;return this['_canEditTable'](_0x32f035)&&(((_0x5678a6=this[_0x421e2c(0x2c8)][_0x421e2c(0x315)](_0x32f035))==null?void 0x0:_0x5678a6['delete'])??!0x0);}[_0x5daf81(0x4bd)](_0x21309e){const _0x2f0408=_0x5daf81;var _0x43ee80;return this[_0x2f0408(0x2b7)](_0x21309e)&&(((_0x43ee80=this['_tablePermissions'][_0x2f0408(0x315)](_0x21309e))==null?void 0x0:_0x43ee80[_0x2f0408(0x543)])??!0x0);}['canEditField'](_0x2ace54,_0x355ab8){const _0xb9fa9b=_0x5daf81;var _0x5351d7;return this[_0xb9fa9b(0x2b7)](_0x2ace54)&&this[_0xb9fa9b(0x2c6)](_0x2ace54,[q(_0x2ace54,_0x355ab8)])&&(((_0x5351d7=this[_0xb9fa9b(0x1f7)][_0xb9fa9b(0x315)](Ur(_0x2ace54,_0x355ab8)))==null?void 0x0:_0x5351d7[_0xb9fa9b(0x218)])??!0x0);}[_0x5daf81(0x435)](_0x17d090,_0x1395f4){const _0x2dd804=_0x5daf81;var _0x56248f;return this[_0x2dd804(0x2bd)](_0x17d090,_0x1395f4)&&(((_0x56248f=this['_fieldPermissions'][_0x2dd804(0x315)](Ur(_0x17d090,_0x1395f4)))==null?void 0x0:_0x56248f[_0x2dd804(0x3ae)])??!0x0);}['canCreateRecord'](_0x4774df){const _0x53ba98=_0x5daf81;var _0x3e41fb;return this['_canEditTable'](_0x4774df)&&(((_0x3e41fb=this[_0x53ba98(0x2c8)]['get'](_0x4774df))==null?void 0x0:_0x3e41fb[_0x53ba98(0x283)])??!0x0);}[_0x5daf81(0x3b5)](_0x3398e8,_0x2b69f7){const _0x5c30b8=_0x5daf81;var _0x863112;let _0x267a5d=this[_0x5c30b8(0x2c0)][_0x5c30b8(0x315)](Wr(_0x3398e8,_0x2b69f7));return this[_0x5c30b8(0x2c6)](_0x3398e8,[K(_0x3398e8),J(_0x3398e8,_0x2b69f7)])&&(((_0x863112=this[_0x5c30b8(0x2c8)][_0x5c30b8(0x315)](_0x3398e8))==null?void 0x0:_0x863112[_0x5c30b8(0x218)])??!0x0)&&((_0x267a5d==null?void 0x0:_0x267a5d[_0x5c30b8(0x218)])??!0x0)&&((_0x267a5d==null?void 0x0:_0x267a5d[_0x5c30b8(0x364)])??!0x0);}[_0x5daf81(0x408)](_0xca3ef0,_0x716a82){const _0x4b2e7d=_0x5daf81;var _0x408857,_0x3ea89f,_0xa8a31c;return this[_0x4b2e7d(0x2c6)](_0xca3ef0,[K(_0xca3ef0),J(_0xca3ef0,_0x716a82)])&&(((_0x408857=this[_0x4b2e7d(0x2c8)][_0x4b2e7d(0x315)](_0xca3ef0))==null?void 0x0:_0x408857['edit'])??!0x0)&&(((_0x3ea89f=this[_0x4b2e7d(0x2c0)]['get'](Wr(_0xca3ef0,_0x716a82)))==null?void 0x0:_0x3ea89f[_0x4b2e7d(0x218)])??!0x0)&&(((_0xa8a31c=this[_0x4b2e7d(0x2c0)][_0x4b2e7d(0x315)](Wr(_0xca3ef0,_0x716a82)))==null?void 0x0:_0xa8a31c['delete'])??!0x0);}[_0x5daf81(0x1be)](_0x33a770,_0x5b494f,_0xf0a5b4){const _0x784c02=_0x5daf81;var _0x5b8981,_0xb7918,_0x5357de;let _0x3aa8b8=this['_fieldPermissions'][_0x784c02(0x315)](Ur(_0x33a770,_0xf0a5b4));return this[_0x784c02(0x2c6)](_0x33a770,[K(_0x33a770),q(_0x33a770,_0xf0a5b4),J(_0x33a770,_0x5b494f)])&&(((_0x5b8981=this['_tablePermissions']['get'](_0x33a770))==null?void 0x0:_0x5b8981[_0x784c02(0x218)])??!0x0)&&(((_0xb7918=this[_0x784c02(0x2c0)][_0x784c02(0x315)](Wr(_0x33a770,_0x5b494f)))==null?void 0x0:_0xb7918[_0x784c02(0x218)])??!0x0)&&(((_0x5357de=this[_0x784c02(0x2c0)][_0x784c02(0x315)](Wr(_0x33a770,_0x5b494f)))==null?void 0x0:_0x5357de['editCell'])??!0x0)&&((_0x3aa8b8==null?void 0x0:_0x3aa8b8[_0x784c02(0x218)])??!0x0)&&((_0x3aa8b8==null?void 0x0:_0x3aa8b8[_0x784c02(0x364)])??!0x0);}[_0x5daf81(0x373)](_0x323534,_0x63155){const _0x5ce455=_0x5daf81;var _0x55c960,_0x5c7ca6,_0x1f3b6a;return this[_0x5ce455(0x2c6)](_0x323534,[K(_0x323534),Mr(_0x323534,_0x63155)])&&(((_0x55c960=this['_tablePermissions'][_0x5ce455(0x315)](_0x323534))==null?void 0x0:_0x55c960[_0x5ce455(0x218)])??!0x0)&&(((_0x5c7ca6=this[_0x5ce455(0x28b)][_0x5ce455(0x315)](Gr(_0x323534,_0x63155)))==null?void 0x0:_0x5c7ca6[_0x5ce455(0x218)])??!0x0)&&(((_0x1f3b6a=this['_tablePermissions']['get'](_0x323534))==null?void 0x0:_0x1f3b6a[_0x5ce455(0x27e)])??!0x0);}[_0x5daf81(0x52f)](_0x4aa06e,_0x521e6b){const _0x33df45=_0x5daf81;this[_0x33df45(0x22b)][_0x33df45(0x1ba)](_0x4aa06e,{...this['_basePermissions'][_0x33df45(0x315)](_0x4aa06e),..._0x521e6b}),_0x521e6b[_0x33df45(0x218)]!==void 0x0&&Ir(this['_permissionService'],_0x4aa06e,_0x4aa06e,_0x44dc45[_0x33df45(0x555)],_0x521e6b['edit']);}[_0x5daf81(0x2b9)](_0x221689,_0x1d10ca){const _0x1870ed=_0x5daf81;this[_0x1870ed(0x4d0)](_0x221689),this[_0x1870ed(0x2c8)]['set'](_0x221689,{...this[_0x1870ed(0x2c8)][_0x1870ed(0x315)](_0x221689),..._0x1d10ca}),this[_0x1870ed(0x2ae)](_0x221689,K(_0x221689),_0x1d10ca[_0x1870ed(0x218)]);}['setFieldPermission'](_0x287546,_0x110fb6,_0x2d77b8){const _0x118c9d=_0x5daf81;this['_rememberTable'](_0x287546);let _0x541e78=Ur(_0x287546,_0x110fb6);this['_fieldPermissions']['set'](_0x541e78,{...this[_0x118c9d(0x1f7)][_0x118c9d(0x315)](_0x541e78),..._0x2d77b8}),this['_setObjectEdit'](_0x287546,q(_0x287546,_0x110fb6),_0x2d77b8[_0x118c9d(0x218)]);}['setRecordPermission'](_0x4d8e7f,_0x383d84,_0x54ff38){const _0x59ed73=_0x5daf81;this[_0x59ed73(0x4d0)](_0x4d8e7f);let _0x52b23c=Wr(_0x4d8e7f,_0x383d84);this[_0x59ed73(0x2c0)][_0x59ed73(0x1ba)](_0x52b23c,{...this[_0x59ed73(0x2c0)]['get'](_0x52b23c),..._0x54ff38}),this[_0x59ed73(0x2ae)](_0x4d8e7f,J(_0x4d8e7f,_0x383d84),_0x54ff38[_0x59ed73(0x218)]);}[_0x5daf81(0x35e)](_0x52a40a,_0x1ab361,_0x220bb1){const _0x11c95d=_0x5daf81;this[_0x11c95d(0x4d0)](_0x52a40a);let _0x260fe6=Gr(_0x52a40a,_0x1ab361);this['_viewPermissions'][_0x11c95d(0x1ba)](_0x260fe6,{...this[_0x11c95d(0x28b)]['get'](_0x260fe6),..._0x220bb1}),this['_setObjectEdit'](_0x52a40a,Mr(_0x52a40a,_0x1ab361),_0x220bb1[_0x11c95d(0x218)]);}[_0x5daf81(0x40a)](_0x5521ab){const _0x52b9cb=_0x5daf81;this['_basePermissions'][_0x52b9cb(0x3ae)](_0x5521ab),Lr(this[_0x52b9cb(0x43e)],_0x5521ab,_0x5521ab,_0x44dc45[_0x52b9cb(0x555)]);}[_0x5daf81(0x3f4)](_0x395396){const _0x3b98e8=_0x5daf81;this[_0x3b98e8(0x2c8)]['delete'](_0x395396),this[_0x3b98e8(0x502)](_0x395396,K(_0x395396));}['clearFieldPermission'](_0x55c835,_0x155077){const _0x60b42=_0x5daf81;this[_0x60b42(0x1f7)]['delete'](Ur(_0x55c835,_0x155077)),this[_0x60b42(0x502)](_0x55c835,q(_0x55c835,_0x155077));}[_0x5daf81(0x1fd)](_0x40b011,_0x380c10){const _0x16a009=_0x5daf81;this['_recordPermissions'][_0x16a009(0x3ae)](Wr(_0x40b011,_0x380c10)),this[_0x16a009(0x502)](_0x40b011,J(_0x40b011,_0x380c10));}[_0x5daf81(0x471)](_0x3e5866,_0x46ecc3){const _0x183613=_0x5daf81;this[_0x183613(0x28b)][_0x183613(0x3ae)](Gr(_0x3e5866,_0x46ecc3)),this[_0x183613(0x502)](_0x3e5866,Mr(_0x3e5866,_0x46ecc3));}[_0x5daf81(0x2f3)](){const _0x3755a0=_0x5daf81;return{'bases':Object[_0x3755a0(0x407)](this[_0x3755a0(0x22b)]),'tables':Object['fromEntries'](this[_0x3755a0(0x2c8)]),'fields':Object[_0x3755a0(0x407)](this['_fieldPermissions']),'records':Object[_0x3755a0(0x407)](this[_0x3755a0(0x2c0)]),'views':Object[_0x3755a0(0x407)](this[_0x3755a0(0x28b)])};}[_0x5daf81(0x2b7)](_0x1da631){const _0x190e1e=_0x5daf81;var _0x5e3d4c;return this[_0x190e1e(0x2c6)](_0x1da631,[K(_0x1da631)])&&(((_0x5e3d4c=this[_0x190e1e(0x2c8)][_0x190e1e(0x315)](_0x1da631))==null?void 0x0:_0x5e3d4c[_0x190e1e(0x218)])??!0x0);}[_0x5daf81(0x2c6)](_0x26591e,_0xd7c73){const _0x1343af=_0x5daf81;var _0x2f40aa;let _0x14cd80=this[_0x1343af(0x45c)](_0x26591e);return!_0x14cd80||zr(this['_permissionService'],_0x14cd80,_0xd7c73)&&(((_0x2f40aa=this[_0x1343af(0x22b)]['get'](_0x14cd80))==null?void 0x0:_0x2f40aa[_0x1343af(0x218)])??!0x0);}[_0x5daf81(0x2ae)](_0x2caaef,_0x557a2b,_0x6e6d6e){const _0x39dc4e=_0x5daf81;if(_0x6e6d6e===void 0x0)return;let _0x3880a7=this[_0x39dc4e(0x45c)](_0x2caaef);_0x3880a7&&Ir(this[_0x39dc4e(0x43e)],_0x3880a7,_0x557a2b,_0x44dc45[_0x39dc4e(0x555)],_0x6e6d6e);}[_0x5daf81(0x502)](_0x5362e6,_0x487afa){const _0x3c979d=_0x5daf81;let _0x34ba84=this['_resolveBaseId'](_0x5362e6);_0x34ba84&&Lr(this[_0x3c979d(0x43e)],_0x34ba84,_0x487afa,_0x44dc45[_0x3c979d(0x555)]);}[_0x5daf81(0x45c)](_0x417292){const _0x1a7bcb=_0x5daf81;var _0x40c19a;let _0x1b0409=this[_0x1a7bcb(0x443)]['getUnit'](_0x417292,_0x2ddca0[_0x1a7bcb(0x33d)]);return _0x1b0409?_0x1b0409[_0x1a7bcb(0x506)]():(_0x40c19a=this[_0x1a7bcb(0x443)][_0x1a7bcb(0x34d)](_0x2ddca0['UNIVER_BASE'])['find'](_0x1e03da=>!!_0x1e03da[_0x1a7bcb(0x2f3)]()['tables'][_0x417292]))==null?void 0x0:_0x40c19a[_0x1a7bcb(0x506)]();}[_0x5daf81(0x4d0)](_0x1479cf){const _0x1b2c73=_0x5daf81;let _0x422fbd=this[_0x1b2c73(0x45c)](_0x1479cf);_0x422fbd&&this[_0x1b2c73(0x319)][_0x1b2c73(0x1ba)](_0x1479cf,_0x422fbd);}[_0x5daf81(0x3c9)](_0x1656e8){const _0x4ed80a=_0x5daf81;this[_0x4ed80a(0x22b)][_0x4ed80a(0x3ae)](_0x1656e8),this[_0x4ed80a(0x319)][_0x4ed80a(0x429)]((_0x29064f,_0x1c1917)=>{const _0x15e8ac=_0x4ed80a;_0x29064f===_0x1656e8&&(this['_tablePermissions'][_0x15e8ac(0x3ae)](_0x1c1917),Hr(this['_fieldPermissions'],_0x1c1917+'\x1f'),Hr(this[_0x15e8ac(0x2c0)],_0x1c1917+'\x1f'),Hr(this[_0x15e8ac(0x28b)],_0x1c1917+'\x1f'),this[_0x15e8ac(0x319)]['delete'](_0x1c1917));});}};Vr=X([Y(0x0,_0x2f962f),Y(0x1,_0x364596)],Vr);function Hr(_0x2fc79a,_0x331ec6){const _0x16b86b=_0x5daf81;_0x2fc79a[_0x16b86b(0x429)]((_0x5b1905,_0x3d4cad)=>{_0x3d4cad['startsWith'](_0x331ec6)&&_0x2fc79a['delete'](_0x3d4cad);});}function Ur(_0x5606eb,_0x5ca9a6){return _0x5606eb+'\x1f'+_0x5ca9a6;}function Wr(_0x56462a,_0x3c0549){return _0x56462a+'\x1f'+_0x3c0549;}function Gr(_0x3171b6,_0xb88c2b){return _0x3171b6+'\x1f'+_0xb88c2b;}const Kr=_0x3262c5(_0x5daf81(0x3ab));let qr=class{constructor(_0x1d8826,_0x3453b4=Jr(),_0x170c1c={}){const _0x5732db=_0x5daf81;this['_permissionService']=_0x1d8826,this[_0x5732db(0x47d)]=_0x3453b4,this[_0x5732db(0x2e7)]=_0x170c1c,G(this,_0x5732db(0x545),new W()),G(this,_0x5732db(0x4cb),new z());}[_0x5daf81(0x3e6)](_0x45af33,_0x3cf17a,_0x17983b){const _0x14441b=_0x5daf81;if(!this['_permissionService'][_0x14441b(0x477)](_0x45af33[_0x14441b(0x506)]()))throw Error(_0x14441b(0x412));_0x3db867(_0x3cf17a),this[_0x14441b(0x2f6)](_0x45af33,this[_0x14441b(0x545)][_0x14441b(0x3e6)](_0x45af33['getSnapshot'](),_0x3cf17a,_0x17983b));}[_0x5daf81(0x3c3)](_0x1ceed4,_0x178807,_0x26df02){const _0x4e2682=_0x5daf81;if(!this[_0x4e2682(0x43e)][_0x4e2682(0x28d)](_0x178807))throw Error(_0x4e2682(0x44f));this['_apply'](_0x1ceed4,this[_0x4e2682(0x545)][_0x4e2682(0x3c3)](_0x1ceed4[_0x4e2682(0x2f3)](),_0x178807,_0x26df02));}['deleteTable'](_0x5a405b,_0x3f17ac){const _0x12e94e=_0x5daf81;if(!this[_0x12e94e(0x43e)]['canDeleteTable'](_0x3f17ac))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20table.');let _0x1deb51=He(_0x5a405b[_0x12e94e(0x2f3)](),_0x3f17ac);if(_0x1deb51[_0x12e94e(0x21d)]>0x0)throw Error(_0x12e94e(0x4af)+_0x1deb51['map'](_0x8db854=>_0x8db854['tableId']+'.'+_0x8db854['fieldId'])[_0x12e94e(0x30a)](',\x20')+').');this[_0x12e94e(0x2f6)](_0x5a405b,this[_0x12e94e(0x545)][_0x12e94e(0x4ed)](_0x5a405b[_0x12e94e(0x2f3)](),_0x3f17ac));}[_0x5daf81(0x2ef)](_0x3210f1,_0x556ff7,_0x51e9d9,_0x1a7500,_0x5c34c3){const _0x5f0891=_0x5daf81;this[_0x5f0891(0x2f6)](_0x3210f1,this[_0x5f0891(0x46c)](_0x3210f1,_0x556ff7,_0x51e9d9,_0x1a7500,_0x5c34c3));}[_0x5daf81(0x529)](_0x191160,_0x41ef47,_0x49b145){const _0x4ca632=_0x5daf81;this['_apply'](_0x191160,this[_0x4ca632(0x2be)](_0x191160,_0x41ef47,_0x49b145));}[_0x5daf81(0x283)](_0x665f23,_0x229994,_0x39778a){const _0x40b4d0=_0x5daf81;this[_0x40b4d0(0x2f6)](_0x665f23,this[_0x40b4d0(0x52d)](_0x665f23,_0x229994,_0x39778a));}[_0x5daf81(0x46c)](_0x517d49,_0x46630a,_0x21fb4a,_0xc9917d,_0x201d0c){const _0x2fffca=_0x5daf81;let _0x401343=_0x517d49[_0x2fffca(0x2f3)](),_0x134562=this[_0x2fffca(0x2b4)](_0x401343,_0x46630a,_0x21fb4a,_0xc9917d,_0x201d0c),_0x45179a=this[_0x2fffca(0x1fc)](_0x401343,_0x46630a,_0x21fb4a,{[_0xc9917d]:_0x134562});return this[_0x2fffca(0x545)][_0x2fffca(0x529)](_0x401343,_0x46630a,[_0x45179a]);}[_0x5daf81(0x2be)](_0x50b148,_0x13871f,_0x331966){const _0x8e637b=_0x5daf81;let _0x10ba0e=_0x50b148['getSnapshot'](),_0x2c7648=_0x331966['map'](_0x51d946=>this[_0x8e637b(0x1fc)](_0x10ba0e,_0x13871f,_0x51d946[_0x8e637b(0x1c6)],{...Object[_0x8e637b(0x407)](Object[_0x8e637b(0x2e4)](_0x51d946[_0x8e637b(0x45b)])[_0x8e637b(0x2b0)](([_0x4ae60d,_0x23f8ad])=>[_0x4ae60d,this[_0x8e637b(0x2b4)](_0x10ba0e,_0x13871f,_0x51d946[_0x8e637b(0x1c6)],_0x4ae60d,_0x23f8ad)]))}));return this['_factory']['setRecordValues'](_0x10ba0e,_0x13871f,_0x2c7648);}[_0x5daf81(0x52d)](_0x4dd31b,_0x27e3d0,_0x1960c7){const _0x489897=_0x5daf81;if(!this[_0x489897(0x43e)][_0x489897(0x31b)](_0x27e3d0))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x2cc1b3=_0x4dd31b[_0x489897(0x2f3)](),_0x18e860=this[_0x489897(0x244)](_0x2cc1b3[_0x489897(0x2f7)][_0x27e3d0]);return this[_0x489897(0x545)][_0x489897(0x283)](_0x2cc1b3,_0x27e3d0,this[_0x489897(0x39d)](_0x2cc1b3,_0x27e3d0,_0x1960c7,_0x18e860));}[_0x5daf81(0x556)](_0x5d9cb2,_0x17847b,_0x80e081){const _0x5bde61=_0x5daf81;if(!this[_0x5bde61(0x43e)][_0x5bde61(0x31b)](_0x17847b))throw Error(_0x5bde61(0x34e));let _0x3d164d=_0x5d9cb2[_0x5bde61(0x2f3)]();return I('BaseCommand.createBatchCreateRecordsOp',()=>{const _0x6be912=_0x5bde61;let _0x2290f8=this[_0x6be912(0x244)](_0x3d164d[_0x6be912(0x2f7)][_0x17847b]);return this[_0x6be912(0x545)][_0x6be912(0x4da)](_0x3d164d,_0x17847b,_0x80e081[_0x6be912(0x2b0)](_0xa874ce=>this[_0x6be912(0x39d)](_0x3d164d,_0x17847b,_0xa874ce,_0x2290f8)));},{'existingRecords':Object[_0x5bde61(0x46f)](_0x3d164d[_0x5bde61(0x2f7)][_0x17847b]['records'])['length'],'records':_0x80e081['length']});}[_0x5daf81(0x539)](_0x390ea5,_0x41393,_0xe77d10,_0x3caf13,_0x1e6ac4){const _0x488316=_0x5daf81;if(!this[_0x488316(0x43e)][_0x488316(0x4bd)](_0x41393))throw Error(_0x488316(0x2de));let _0x4f23e3=_0x390ea5[_0x488316(0x2f3)]();if(this[_0x488316(0x405)](_0x4f23e3,_0xe77d10),_0x3caf13===0x0)throw Error(_0x488316(0x446));let _0x511a1d=this['_factory']['createField'](_0x4f23e3,_0x41393,{'field':_0xe77d10,'index':_0x3caf13,'viewIndexes':_0x1e6ac4}),_0x1d6d67=this[_0x488316(0x522)](_0x4f23e3,_0x41393,_0xe77d10);if(!_0x1d6d67['length'])return _0x511a1d;let _0x5c60de=this[_0x488316(0x4cb)][_0x488316(0x525)](_0x4f23e3,_0x511a1d);return R([_0x511a1d,this[_0x488316(0x545)]['setRecordValues'](_0x5c60de,_0x41393,_0x1d6d67)]);}[_0x5daf81(0x45e)](_0x3c2aa9,_0x5466b6,_0x15b21d){const _0x71f55d=_0x5daf81;if(!this[_0x71f55d(0x43e)][_0x71f55d(0x408)](_0x5466b6,_0x15b21d))throw Error(_0x71f55d(0x498));this[_0x71f55d(0x2f6)](_0x3c2aa9,this[_0x71f55d(0x545)]['deleteRecord'](_0x3c2aa9[_0x71f55d(0x2f3)](),_0x5466b6,_0x15b21d));}['duplicateRecord'](_0x54642b,_0x3228be,_0x169a73,_0x43f8cb){const _0x551ec7=_0x5daf81;if(!this[_0x551ec7(0x43e)][_0x551ec7(0x31b)](_0x3228be))throw Error(_0x551ec7(0x34e));this['_apply'](_0x54642b,this[_0x551ec7(0x545)][_0x551ec7(0x339)](_0x54642b[_0x551ec7(0x2f3)](),_0x3228be,_0x169a73,{..._0x43f8cb,'values':{..._0x43f8cb['values'],[_0x4a6fc3]:_0x43f8cb['id']}}));}[_0x5daf81(0x3f6)](_0x4470ff,_0x1bd4fd,_0x3acfaf,_0x4276f1){const _0x40033a=_0x5daf81;if(!this[_0x40033a(0x43e)][_0x40033a(0x3b5)](_0x1bd4fd,_0x3acfaf))throw Error(_0x40033a(0x277));this[_0x40033a(0x2f6)](_0x4470ff,this[_0x40033a(0x545)][_0x40033a(0x3f6)](_0x4470ff['getSnapshot'](),_0x1bd4fd,_0x3acfaf,_0x4276f1));}[_0x5daf81(0x543)](_0x403e6d,_0x3d060c,_0x10c807,_0x23837e,_0x31ea3d){const _0x347999=_0x5daf81;this['_apply'](_0x403e6d,this[_0x347999(0x539)](_0x403e6d,_0x3d060c,_0x10c807,_0x23837e,_0x31ea3d));}[_0x5daf81(0x23d)](_0x18d630,_0x309121,_0x2d22b0,_0xe56654){const _0x8006e0=_0x5daf81;var _0x34c575;if(!this[_0x8006e0(0x43e)][_0x8006e0(0x2bd)](_0x309121,_0x2d22b0))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x588dfb=_0x18d630['getSnapshot'](),_0x246ae3=(_0x34c575=_0x588dfb[_0x8006e0(0x2f7)][_0x309121])==null?void 0x0:_0x34c575[_0x8006e0(0x503)][_0x2d22b0];if(!_0x246ae3||_0x2d22b0===_0x4a6fc3)throw Error(_0x8006e0(0x47b));this[_0x8006e0(0x405)](_0x588dfb,{..._0x246ae3,..._0xe56654}),this[_0x8006e0(0x2f6)](_0x18d630,this[_0x8006e0(0x545)][_0x8006e0(0x23d)](_0x588dfb,_0x309121,_0x2d22b0,_0xe56654));}[_0x5daf81(0x4f5)](_0x288031,_0x507623,_0x57efb8,_0x7ccdae){const _0x1d5d70=_0x5daf81;var _0x598f68;if(!this[_0x1d5d70(0x43e)][_0x1d5d70(0x2bd)](_0x507623,_0x57efb8))throw Error(_0x1d5d70(0x3fc));let _0x1c31f8=_0x288031[_0x1d5d70(0x2f3)](),_0x5c4e02=(_0x598f68=_0x1c31f8[_0x1d5d70(0x2f7)][_0x507623])==null?void 0x0:_0x598f68[_0x1d5d70(0x503)][_0x57efb8];if(!_0x5c4e02||_0x57efb8===_0x4a6fc3)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this['_assertFieldDefinition'](_0x1c31f8,{..._0x5c4e02,..._0x7ccdae}),this[_0x1d5d70(0x2f6)](_0x288031,this['_factory'][_0x1d5d70(0x4f5)](_0x1c31f8,_0x507623,_0x57efb8,_0x7ccdae));}[_0x5daf81(0x513)](_0x48c0c3,_0x3e66fc,_0x4fbcb2){const _0x2e7ef2=_0x5daf81;var _0x1799d1;if(((_0x1799d1=_0x48c0c3[_0x2e7ef2(0x2f3)]()[_0x2e7ef2(0x2f7)][_0x3e66fc])==null?void 0x0:_0x1799d1[_0x2e7ef2(0x51f)])===_0x4fbcb2||_0x4fbcb2===_0x4a6fc3)throw Error(_0x2e7ef2(0x211));if(!this[_0x2e7ef2(0x43e)][_0x2e7ef2(0x435)](_0x3e66fc,_0x4fbcb2))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this['_apply'](_0x48c0c3,this[_0x2e7ef2(0x545)][_0x2e7ef2(0x513)](_0x48c0c3[_0x2e7ef2(0x2f3)](),_0x3e66fc,_0x4fbcb2));}['moveField'](_0x4a4617,_0x1bf2d4,_0x36daf9,_0x38f8dd){const _0x5471b9=_0x5daf81;if(!this[_0x5471b9(0x43e)][_0x5471b9(0x2bd)](_0x1bf2d4,_0x36daf9))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x36daf9===_0x4a6fc3||_0x38f8dd[_0x5471b9(0x1c5)]===_0x4a6fc3)throw Error(_0x5471b9(0x3ed));this[_0x5471b9(0x2f6)](_0x4a4617,this[_0x5471b9(0x545)][_0x5471b9(0x3c8)](_0x4a4617['getSnapshot'](),_0x1bf2d4,_0x36daf9,_0x38f8dd));}[_0x5daf81(0x1b6)](_0xb6dcf0,_0x487f40,_0x58fc70,_0x46d3b1){const _0x5bd3e7=_0x5daf81;if(!this[_0x5bd3e7(0x43e)][_0x5bd3e7(0x373)](_0x487f40,_0x58fc70['id']))throw Error(_0x5bd3e7(0x3a2));this[_0x5bd3e7(0x2f6)](_0xb6dcf0,this[_0x5bd3e7(0x545)][_0x5bd3e7(0x1b6)](_0xb6dcf0[_0x5bd3e7(0x2f3)](),_0x487f40,_0x58fc70,_0x46d3b1));}[_0x5daf81(0x461)](_0x39b46b,_0x402b57,_0xa8359e,_0x47a37c){const _0x2359b7=_0x5daf81;if(!this[_0x2359b7(0x43e)][_0x2359b7(0x373)](_0x402b57,_0xa8359e))throw Error(_0x2359b7(0x3a2));this[_0x2359b7(0x2f6)](_0x39b46b,this[_0x2359b7(0x545)][_0x2359b7(0x461)](_0x39b46b[_0x2359b7(0x2f3)](),_0x402b57,_0xa8359e,_0x47a37c));}[_0x5daf81(0x302)](_0x4359cb,_0x35d28c,_0xf26df3){const _0x4fdd3c=_0x5daf81;if(!this[_0x4fdd3c(0x43e)][_0x4fdd3c(0x373)](_0x35d28c,_0xf26df3))throw Error(_0x4fdd3c(0x3a2));this[_0x4fdd3c(0x2f6)](_0x4359cb,this[_0x4fdd3c(0x545)][_0x4fdd3c(0x302)](_0x4359cb[_0x4fdd3c(0x2f3)](),_0x35d28c,_0xf26df3));}[_0x5daf81(0x2d3)](_0x5bd055,_0x55d227,_0x3527f0,_0x5bf492){const _0x2c87fd=_0x5daf81;if(!this[_0x2c87fd(0x43e)]['canManageView'](_0x55d227,_0x3527f0))throw Error(_0x2c87fd(0x3a2));this[_0x2c87fd(0x2f6)](_0x5bd055,this['_factory'][_0x2c87fd(0x2d3)](_0x5bd055['getSnapshot'](),_0x55d227,_0x3527f0,_0x5bf492));}['updateViewConfig'](_0x1c3db9,_0x86173f,_0x2286ae,_0x30a549){const _0x1c241f=_0x5daf81;if(!this[_0x1c241f(0x43e)][_0x1c241f(0x373)](_0x86173f,_0x2286ae))throw Error(_0x1c241f(0x3a2));this[_0x1c241f(0x2f6)](_0x1c3db9,this['_factory'][_0x1c241f(0x4c9)](_0x1c3db9[_0x1c241f(0x2f3)](),_0x86173f,_0x2286ae,_0x30a549));}[_0x5daf81(0x4ea)](_0x1660b1,_0x90d1e6,_0x247c11,_0x23cb90){const _0x1db476=_0x5daf81;if(!this[_0x1db476(0x43e)]['canManageView'](_0x90d1e6,_0x247c11))throw Error(_0x1db476(0x3a2));this['_apply'](_0x1660b1,this[_0x1db476(0x545)][_0x1db476(0x4ea)](_0x1660b1['getSnapshot'](),_0x90d1e6,_0x247c11,_0x23cb90));}[_0x5daf81(0x367)](_0x2abc16,_0x398af2,_0x20768f,_0x1a2126){const _0xb955b1=_0x5daf81;if(!this['_permissionService'][_0xb955b1(0x373)](_0x398af2,_0x20768f))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0xb955b1(0x2f6)](_0x2abc16,this['_factory'][_0xb955b1(0x367)](_0x2abc16[_0xb955b1(0x2f3)](),_0x398af2,_0x20768f,_0x1a2126));}[_0x5daf81(0x40b)](_0x52ecd9,_0x3e1f07,_0x45f729,_0x52c385){const _0x274377=_0x5daf81;if(!this[_0x274377(0x43e)][_0x274377(0x373)](_0x3e1f07,_0x45f729))throw Error(_0x274377(0x3a2));this['_apply'](_0x52ecd9,this[_0x274377(0x545)][_0x274377(0x40b)](_0x52ecd9[_0x274377(0x2f3)](),_0x3e1f07,_0x45f729,_0x52c385));}[_0x5daf81(0x44d)](_0xf36205,_0x4790db,_0x268896,_0x30a8c2,_0x557147){const _0x8683a6=_0x5daf81;if(!this[_0x8683a6(0x43e)][_0x8683a6(0x373)](_0x4790db,_0x268896))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0xf36205,this[_0x8683a6(0x545)][_0x8683a6(0x44d)](_0xf36205[_0x8683a6(0x2f3)](),_0x4790db,_0x268896,_0x30a8c2,_0x557147));}['setViewFieldWidth'](_0x1545f1,_0x1f4d03,_0x516d16,_0x5a78a4,_0xe2ad34){const _0x1aab3e=_0x5daf81;if(!this[_0x1aab3e(0x43e)]['canManageView'](_0x1f4d03,_0x516d16))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0x1545f1,this[_0x1aab3e(0x545)][_0x1aab3e(0x41a)](_0x1545f1['getSnapshot'](),_0x1f4d03,_0x516d16,_0x5a78a4,_0xe2ad34));}[_0x5daf81(0x511)](_0x2d4499,_0x2b0354,_0x27ec59,_0x64ad44,_0x2b99a1){const _0x40a481=_0x5daf81;if(!this[_0x40a481(0x43e)][_0x40a481(0x373)](_0x2b0354,_0x27ec59))throw Error(_0x40a481(0x3a2));this[_0x40a481(0x2f6)](_0x2d4499,this[_0x40a481(0x545)][_0x40a481(0x511)](_0x2d4499[_0x40a481(0x2f3)](),_0x2b0354,_0x27ec59,_0x64ad44,_0x2b99a1));}['_apply'](_0x122284,_0x230670){const _0x310021=_0x5daf81;let _0x1b1d1d=_0x122284[_0x310021(0x2f3)]();_0x122284[_0x310021(0x49d)](this['_applier']['applyOp'](_0x1b1d1d,_0x230670));}['_createRecordWithDefaults'](_0x3c92bf,_0x3134a6,_0x472063,_0x16c8f8=this['_createNumberingAllocators'](_0x3c92bf[_0x5daf81(0x2f7)][_0x3134a6])){const _0x5230e3=_0x5daf81;let _0x3dc908=_0x3c92bf[_0x5230e3(0x2f7)][_0x3134a6],_0x359b18=_0x472063[_0x5230e3(0x416)]??_0x472063['updatedBy']??this[_0x5230e3(0x2d2)](),_0x73a65e={..._0x472063,'createdBy':_0x472063[_0x5230e3(0x416)]??_0x359b18,'updatedBy':_0x472063[_0x5230e3(0x382)]??_0x359b18,'values':{..._0x472063[_0x5230e3(0x45b)]}};return _0x73a65e[_0x5230e3(0x45b)][_0x4a6fc3]=_0x73a65e['id'],_0x3dc908['fieldOrder'][_0x5230e3(0x429)](_0x159060=>{const _0x113a0f=_0x5230e3;let _0x5a672e=_0x3dc908['fields'][_0x159060];if(_0x5a672e&&_0x73a65e[_0x113a0f(0x45b)][_0x159060]===void 0x0)switch(_0x5a672e[_0x113a0f(0x305)]){case _0x618ba['Numbering']:var _0x5bd104;_0x73a65e[_0x113a0f(0x45b)][_0x159060]=((_0x5bd104=_0x16c8f8[_0x113a0f(0x315)](_0x159060))==null?void 0x0:_0x5bd104())??this[_0x113a0f(0x38f)](_0x3dc908,_0x159060)();break;case _0x618ba[_0x113a0f(0x366)]:_0x73a65e['createdBy']&&(_0x73a65e[_0x113a0f(0x45b)][_0x159060]=_0x73a65e[_0x113a0f(0x416)]);break;case _0x618ba['UpdatedBy']:_0x73a65e[_0x113a0f(0x382)]&&(_0x73a65e[_0x113a0f(0x45b)][_0x159060]=_0x73a65e[_0x113a0f(0x382)]);break;case _0x618ba[_0x113a0f(0x3fb)]:_0x73a65e[_0x113a0f(0x45b)][_0x159060]=B(_0x73a65e[_0x113a0f(0x1b8)]);break;case _0x618ba['UpdatedAt']:_0x73a65e[_0x113a0f(0x45b)][_0x159060]=B(_0x73a65e[_0x113a0f(0x35b)]);break;default:{let _0x1f0aab=_0x5a672e[_0x113a0f(0x224)];_0x1f0aab!=null&&_0x1f0aab!==''&&!(Array[_0x113a0f(0x31e)](_0x1f0aab)&&_0x1f0aab[_0x113a0f(0x21d)]===0x0)&&(_0x73a65e[_0x113a0f(0x45b)][_0x159060]=_0x1f0aab);}}}),_0x73a65e;}['_withModifiedSystemValues'](_0x2ae33d,_0x5cef25,_0x3a4796,_0x3f89e6){const _0x38e066=_0x5daf81;var _0x246738,_0x5b18a1;let _0x36e811=_0x2ae33d[_0x38e066(0x2f7)][_0x5cef25],_0x503981=((_0x246738=(_0x5b18a1=this[_0x38e066(0x2e7)])[_0x38e066(0x1d5)])==null?void 0x0:_0x246738[_0x38e066(0x35d)](_0x5b18a1))??Date['now'](),_0x296803=this['_getCurrentUserId'](),_0x238f20={..._0x3f89e6};return _0x36e811[_0x38e066(0x1d6)][_0x38e066(0x429)](_0x54ee1d=>{const _0x3a410e=_0x38e066;let _0x137cf0=_0x36e811[_0x3a410e(0x503)][_0x54ee1d];_0x137cf0&&(_0x137cf0['type']===_0x618ba[_0x3a410e(0x29f)]&&(_0x238f20[_0x54ee1d]=B(_0x503981)),_0x137cf0['type']===_0x618ba[_0x3a410e(0x4d3)]&&_0x296803&&(_0x238f20[_0x54ee1d]=_0x296803));}),{'recordId':_0x3a4796,'values':_0x238f20,'recordPatch':{'updatedAt':_0x503981,..._0x296803?{'updatedBy':_0x296803}:{}}};}[_0x5daf81(0x522)](_0x1af03f,_0x363f6e,_0xf0a600){const _0x18e742=_0x5daf81;let _0x5bbcbe=_0x1af03f[_0x18e742(0x2f7)][_0x363f6e];return!_0x5bbcbe||!Yr(_0xf0a600)?[]:_0xf0a600[_0x18e742(0x305)]===_0x618ba[_0x18e742(0x1e7)]?this[_0x18e742(0x41d)](_0x5bbcbe,_0xf0a600['id']):Object['values'](_0x5bbcbe[_0x18e742(0x43a)])['flatMap'](_0x56f66d=>{const _0x2d1a72=_0x18e742;let _0xd4aa2=this[_0x2d1a72(0x48b)](_0xf0a600,_0x56f66d);return _0xd4aa2===void 0x0?[]:[{'recordId':_0x56f66d['id'],'values':{[_0xf0a600['id']]:_0xd4aa2}}];});}[_0x5daf81(0x48b)](_0x463c5b,_0x339b45){const _0x5c09ad=_0x5daf81;switch(_0x463c5b[_0x5c09ad(0x305)]){case _0x618ba[_0x5c09ad(0x366)]:return _0x339b45[_0x5c09ad(0x416)]??this[_0x5c09ad(0x2d2)]();case _0x618ba[_0x5c09ad(0x4d3)]:return _0x339b45['updatedBy']??this[_0x5c09ad(0x2d2)]();case _0x618ba[_0x5c09ad(0x3fb)]:return B(_0x339b45['createdAt']??Date['now']());case _0x618ba['UpdatedAt']:return B(_0x339b45[_0x5c09ad(0x35b)]??Date[_0x5c09ad(0x1d5)]());default:return;}}['_createNumberingAllocators'](_0x38bec2){const _0x5c6700=_0x5daf81;let _0x3fb7a1=new Map();return _0x38bec2&&_0x38bec2[_0x5c6700(0x1d6)][_0x5c6700(0x429)](_0x25b515=>{const _0x5afe4a=_0x5c6700;let _0x1d4a68=_0x38bec2[_0x5afe4a(0x503)][_0x25b515];(_0x1d4a68==null?void 0x0:_0x1d4a68[_0x5afe4a(0x305)])===_0x618ba[_0x5afe4a(0x1e7)]&&_0x3fb7a1[_0x5afe4a(0x1ba)](_0x25b515,this[_0x5afe4a(0x38f)](_0x38bec2,_0x25b515));}),_0x3fb7a1;}[_0x5daf81(0x38f)](_0x54eb96,_0xc62a28){const _0x102054=_0x5daf81;let _0x4cf9a1=Object[_0x102054(0x45b)](_0x54eb96[_0x102054(0x43a)])[_0x102054(0x251)]((_0x196463,_0x195999)=>{const _0x48c1f5=_0x102054;let _0x3ba383=Number(_0x195999[_0x48c1f5(0x45b)][_0xc62a28]);return Number[_0x48c1f5(0x2fc)](_0x3ba383)?Math[_0x48c1f5(0x29c)](_0x196463,_0x3ba383):_0x196463;},0x0);return()=>String(++_0x4cf9a1);}[_0x5daf81(0x41d)](_0x38c05e,_0x50d524){const _0x4a4153=_0x5daf81;let _0x4cfb2d=this[_0x4a4153(0x1d0)](_0x38c05e),_0x9b1382=this[_0x4a4153(0x38f)](_0x38c05e,_0x50d524);return _0x4cfb2d['flatMap'](_0x226979=>this[_0x4a4153(0x53a)](_0x226979[_0x4a4153(0x45b)][_0x50d524])?[]:[{'recordId':_0x226979['id'],'values':{[_0x50d524]:_0x9b1382()}}]);}['_getOrderedRecords'](_0xca130e){const _0x22f043=_0x5daf81;var _0x46ead5;let _0xa2827d=Object['values'](_0xca130e[_0x22f043(0x43a)]),_0x547ed5=new Map(_0xa2827d[_0x22f043(0x2b0)](_0x5b627=>[_0x5b627['id'],_0x5b627])),_0x11b66f=[],_0x22ab12=new Set();(_0x46ead5=_0xca130e[_0x22f043(0x3da)])==null||_0x46ead5[_0x22f043(0x429)](_0x29705a=>{const _0x58af64=_0x22f043;let _0x459de4=_0x547ed5[_0x58af64(0x315)](_0x29705a);_0x459de4&&(_0x11b66f[_0x58af64(0x482)](_0x459de4),_0x22ab12[_0x58af64(0x4ee)](_0x29705a));});let _0x18d9a9=_0xa2827d['filter'](_0x2566e8=>!_0x22ab12[_0x22f043(0x253)](_0x2566e8['id']))[_0x22f043(0x3c5)]((_0x2758bf,_0x4504e2)=>String(_0x2758bf[_0x22f043(0x2a2)]??_0x2758bf['id'])[_0x22f043(0x202)](String(_0x4504e2[_0x22f043(0x2a2)]??_0x4504e2['id']))||_0x2758bf['id'][_0x22f043(0x202)](_0x4504e2['id']));return[..._0x11b66f,..._0x18d9a9];}[_0x5daf81(0x53a)](_0xb51f6e){const _0x528fbb=_0x5daf81;return _0xb51f6e!=null&&_0xb51f6e!==''&&!(Array[_0x528fbb(0x31e)](_0xb51f6e)&&_0xb51f6e[_0x528fbb(0x21d)]===0x0);}[_0x5daf81(0x2d2)](){const _0x6d9864=_0x5daf81;var _0x3ac2bf,_0x539b7e,_0xbc99ca,_0x542359;return((_0x3ac2bf=(_0x539b7e=this[_0x6d9864(0x2e7)])[_0x6d9864(0x2a6)])==null?void 0x0:_0x3ac2bf['call'](_0x539b7e))??((_0xbc99ca=(_0x542359=this['_runtimeContext'])[_0x6d9864(0x279)])==null||(_0xbc99ca=_0xbc99ca[_0x6d9864(0x35d)](_0x542359))==null?void 0x0:_0xbc99ca[_0x6d9864(0x287)])??void 0x0;}[_0x5daf81(0x2b4)](_0x38390c,_0x479862,_0x5a6f83,_0x1d3d60,_0x43ef04){const _0xc5a47c=_0x5daf81;var _0x18b290;if(!this[_0xc5a47c(0x43e)][_0xc5a47c(0x1be)](_0x479862,_0x5a6f83,_0x1d3d60))throw Error(_0xc5a47c(0x4de));let _0x25cee2=(_0x18b290=_0x38390c[_0xc5a47c(0x2f7)][_0x479862])==null?void 0x0:_0x18b290['fields'][_0x1d3d60];if(!_0x25cee2)throw Error('[BaseCommandService]:\x20field\x20\x22'+_0x1d3d60+_0xc5a47c(0x362));let _0x4ff304=this[_0xc5a47c(0x47d)][_0xc5a47c(0x315)](_0x25cee2[_0xc5a47c(0x305)]);if(_0x25cee2['readonly']||_0x25cee2[_0xc5a47c(0x3db)]||!_0x4ff304[_0xc5a47c(0x4a4)](_0x25cee2)[_0xc5a47c(0x2cf)])throw Error(_0xc5a47c(0x360));let _0x37c3b1=_0x4ff304['normalize'](_0x43ef04,_0x25cee2),_0xe90fe=_0x4ff304[_0xc5a47c(0x240)](_0x37c3b1,_0x25cee2);if(!_0xe90fe[_0xc5a47c(0x36d)])throw Error(_0xe90fe['reason']??'[BaseCommandService]:\x20invalid\x20cell\x20value.');let _0x556975=_0x25cee2[_0xc5a47c(0x305)]===_0x618ba[_0xc5a47c(0x2e6)]?Ve(_0x38390c,_0x25cee2,_0x37c3b1):{'valid':!0x0};if(!_0x556975[_0xc5a47c(0x36d)])throw Error(_0x556975['reason']??_0xc5a47c(0x1fa));return _0x37c3b1;}['_assertFieldDefinition'](_0x2e8716,_0x26ae8d){const _0x2a4d80=_0x5daf81;if(_0x26ae8d['id']===_0x4a6fc3||_0x26ae8d['type']===_0x618ba[_0x2a4d80(0x28f)]||_0x4dba8d(_0x26ae8d[_0x2a4d80(0x322)]))throw Error(_0x2a4d80(0x2e1));let _0x2101c7=Be(_0x2e8716,_0x26ae8d);if(!_0x2101c7[_0x2a4d80(0x36d)])throw Error(_0x2101c7['reason']??_0x2a4d80(0x3dc));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x568f24=_0x5daf81;let _0x116b66=new hr();return zn()['forEach'](_0x262959=>_0x116b66[_0x568f24(0x549)](_0x262959)),_0x116b66;}function Yr(_0xe73380){const _0x356073=_0x5daf81;return _0xe73380['type']===_0x618ba['Numbering']||_0xe73380[_0x356073(0x305)]===_0x618ba['CreatedBy']||_0xe73380[_0x356073(0x305)]===_0x618ba[_0x356073(0x4d3)]||_0xe73380[_0x356073(0x305)]===_0x618ba[_0x356073(0x3fb)]||_0xe73380[_0x356073(0x305)]===_0x618ba[_0x356073(0x29f)];}const Xr=new Set([_0x618ba[_0x5daf81(0x257)],_0x618ba[_0x5daf81(0x238)],_0x618ba[_0x5daf81(0x4bb)]]);function Zr(_0x258a7b){const _0x147b1b=_0x5daf81;let _0x3d0f47=_0x258a7b['fields'][_0x258a7b[_0x147b1b(0x51f)]];if((!_0x3d0f47||_0x3d0f47[_0x147b1b(0x3db)]!==!0x0&&_0x3d0f47['id'][_0x147b1b(0x40c)]()!=='id'&&_0x3d0f47[_0x147b1b(0x322)][_0x147b1b(0x3a5)]()[_0x147b1b(0x40c)]()!=='id')&&_0x3d0f47)return _0x3d0f47['id'];for(let _0x12a9ad of _0x258a7b[_0x147b1b(0x1d6)]){let _0x4ebdb7=_0x258a7b['fields'][_0x12a9ad];if(_0x4ebdb7&&_0x4ebdb7['id']!==_0x258a7b[_0x147b1b(0x51f)]&&_0x4ebdb7[_0x147b1b(0x3db)]!==!0x0&&_0x4ebdb7[_0x147b1b(0x305)]!==_0x618ba[_0x147b1b(0x28f)])return _0x4ebdb7['id'];}return _0x258a7b[_0x147b1b(0x51f)];}function Qr(_0x4f299c,_0x43dda3=[],_0x174a58=0x5){const _0x2bb3c9=_0x5daf81;let _0x70710b=new Set(_0x43dda3[_0x2bb3c9(0x32f)](_0x19af03=>!!_0x19af03)),_0x5e42c4=[],_0x4718b2=[];for(let _0x1b86f3 of _0x4f299c[_0x2bb3c9(0x1d6)]){let _0x453f30=_0x4f299c[_0x2bb3c9(0x503)][_0x1b86f3];_0x453f30&&_0x453f30['system']!==!0x0&&_0x453f30[_0x2bb3c9(0x305)]!==_0x618ba['RecordId']&&!_0x70710b['has'](_0x453f30['id'])&&(Xr[_0x2bb3c9(0x253)](_0x453f30[_0x2bb3c9(0x305)])?_0x5e42c4:_0x4718b2)['push'](_0x453f30['id']);}return[..._0x5e42c4,..._0x4718b2][_0x2bb3c9(0x1cb)](0x0,_0x174a58);}function $r(){const _0xcc0440=_0x5daf81;return[{'type':_0x168289[_0xcc0440(0x47f)],'i18nKey':_0xcc0440(0x274),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3c4a52=_0xcc0440;throw Error(_0x3c4a52(0x22d));}},{'type':_0x168289[_0xcc0440(0x3c6)],'i18nKey':_0xcc0440(0x1b7),'createDefaultConfig':_0x14aeca=>{const _0x2ab729=_0xcc0440;let _0x5e45d7=ei(_0x14aeca);return{'groupFieldId':_0x5e45d7,'coverFieldId':null,'cardLayout':_0x2ab729(0x441),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x14aeca[_0x2ab729(0x51f)],'fieldIds':Qr(_0x14aeca,[_0x14aeca[_0x2ab729(0x51f)],_0x5e45d7])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3d2807=_0xcc0440;throw Error(_0x3d2807(0x39c));}},{'type':_0x168289[_0xcc0440(0x3bf)],'i18nKey':_0xcc0440(0x3f3),'createDefaultConfig':_0x5d0d50=>{const _0x48095d=_0xcc0440;let _0x3c8488=ti(_0x5d0d50);return{'startDateFieldId':_0x3c8488,'endDateFieldId':ni(_0x5d0d50,_0x3c8488),'titleFieldId':_0x5d0d50['primaryFieldId'],'mode':'month','timeslotSize':'medium','timeZone':_0x48095d(0x35a),'displayColor':{'type':_0x48095d(0x3f1),'color':'#3b82f6'},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x42937a=_0xcc0440;throw Error(_0x42937a(0x39f));}},{'type':_0x168289[_0xcc0440(0x386)],'i18nKey':_0xcc0440(0x4e3),'createDefaultConfig':_0x59268b=>{const _0x1444f9=_0xcc0440;let _0x17bf8a=ti(_0x59268b);return{'startDateFieldId':_0x17bf8a,'endDateFieldId':ni(_0x59268b,_0x17bf8a)??_0x17bf8a,'titleFieldId':_0x59268b[_0x1444f9(0x51f)],'scale':_0x1444f9(0x53e),'showTodayLine':!0x0,'displayColor':{'type':'custom','color':_0x1444f9(0x3ad)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x168289[_0xcc0440(0x493)],'i18nKey':_0xcc0440(0x383),'createDefaultConfig':_0x1ff6ca=>{const _0x176d45=_0xcc0440;let _0x3ada29=Zr(_0x1ff6ca);return{'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x3ada29,'coverFieldId':null,'fieldIds':Qr(_0x1ff6ca,[_0x3ada29,_0x1ff6ca[_0x176d45(0x51f)]])},'cardSize':'medium'};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3cb9ab=_0xcc0440;throw Error(_0x3cb9ab(0x497));}}];}function ei(_0x5ac7dc){const _0x1658da=_0x5daf81;var _0x4624d9,_0x52e622,_0x27b988;let _0x35ef50=_0x5ac7dc[_0x1658da(0x1d6)][_0x1658da(0x2b0)](_0x301bff=>_0x5ac7dc[_0x1658da(0x503)][_0x301bff])[_0x1658da(0x32f)](_0x114634=>!!_0x114634);return((_0x4624d9=_0x35ef50[_0x1658da(0x2d8)](_0x4a659e=>_0x4a659e['type']===_0x618ba['SingleSelect']||_0x4a659e[_0x1658da(0x305)]===_0x618ba[_0x1658da(0x3a1)]||_0x4a659e[_0x1658da(0x305)]===_0x618ba[_0x1658da(0x377)]))==null?void 0x0:_0x4624d9['id'])??((_0x52e622=_0x35ef50[_0x1658da(0x2d8)](_0x181e04=>_0x181e04[_0x1658da(0x305)]===_0x618ba[_0x1658da(0x1da)]))==null?void 0x0:_0x52e622['id'])??((_0x27b988=_0x35ef50[_0x1658da(0x2d8)](_0x4f0f95=>_0x4f0f95[_0x1658da(0x305)]===_0x618ba[_0x1658da(0x47c)]||_0x4f0f95['type']===_0x618ba['CreatedAt']||_0x4f0f95[_0x1658da(0x305)]===_0x618ba[_0x1658da(0x29f)]))==null?void 0x0:_0x27b988['id'])??_0x5ac7dc[_0x1658da(0x51f)];}function ti(_0x5318f9){const _0x327033=_0x5daf81;var _0xe651ab;return((_0xe651ab=_0x5318f9[_0x327033(0x1d6)][_0x327033(0x2b0)](_0x45d192=>_0x5318f9[_0x327033(0x503)][_0x45d192])[_0x327033(0x2d8)](ri))==null?void 0x0:_0xe651ab['id'])??'';}function ni(_0x475313,_0x5754fc){const _0x30bf7c=_0x5daf81;var _0x1a5cb7;return(_0x1a5cb7=_0x475313[_0x30bf7c(0x1d6)][_0x30bf7c(0x2b0)](_0x2ebece=>_0x475313[_0x30bf7c(0x503)][_0x2ebece])['find'](_0x2bd7d9=>ri(_0x2bd7d9)&&_0x2bd7d9['id']!==_0x5754fc))==null?void 0x0:_0x1a5cb7['id'];}function ri(_0xd3f08a){const _0x5549b9=_0x5daf81;return!!_0xd3f08a&&_0xd3f08a['type']===_0x618ba[_0x5549b9(0x47c)]&&_0xd3f08a[_0x5549b9(0x546)]!==!0x0&&_0xd3f08a[_0x5549b9(0x3db)]!==!0x0;}const ii=_0x3262c5(_0x5daf81(0x415)),ai=new Set([_0x618ba['Number'],_0x618ba[_0x5daf81(0x20a)],_0x618ba[_0x5daf81(0x257)],_0x618ba[_0x5daf81(0x238)],_0x618ba[_0x5daf81(0x47c)],_0x618ba['CreatedAt'],_0x618ba[_0x5daf81(0x29f)],_0x618ba[_0x5daf81(0x4bb)]]),oi=0x5265c00;let si=class extends _0x183939{constructor(_0x30356b){const _0xbba730=_0x5daf81;super(),this[_0xbba730(0x47d)]=_0x30356b,G(this,_0xbba730(0x2c5),new Map()),G(this,_0xbba730(0x3b1),new WeakMap()),G(this,_0xbba730(0x38b),new Map()),G(this,'_projectedViewRowsCache',new Map()),G(this,_0xbba730(0x31f),new Map()),G(this,_0xbba730(0x1ee),new Map()),G(this,_0xbba730(0x531),0x0),G(this,'_tableRevisions',new Map()),G(this,_0xbba730(0x216),new Map()),G(this,'_cellInvalidations',new Map()),G(this,_0xbba730(0x53c),new Map());}[_0x5daf81(0x3d3)](_0x4fdee6){const _0x1b7790=_0x5daf81;return this['_views'][_0x1b7790(0x1ba)](_0x4fdee6[_0x1b7790(0x305)],_0x4fdee6),_0x1a388a(()=>this[_0x1b7790(0x2c5)][_0x1b7790(0x3ae)](_0x4fdee6[_0x1b7790(0x305)]));}[_0x5daf81(0x2da)](_0x58bc34,_0x47373a,_0x2dcb4d){const _0x1a94fb=_0x5daf81;var _0x4d6e17,_0xbfbb56,_0x1a7879;return I('BaseProjection.getProjection',()=>{const _0xaf6eec=_0x188f;let _0x2371e4=this['_getCachedProjection'](_0x58bc34,_0x47373a,_0x2dcb4d);if(_0x2371e4)return _0x2371e4;let _0x5166a6=_0x58bc34[_0xaf6eec(0x2f7)][_0x47373a],_0x368249=_0x5166a6==null?void 0x0:_0x5166a6[_0xaf6eec(0x1e8)][_0x2dcb4d];if(!_0x5166a6||!_0x368249)return this['_setCachedProjection'](_0x58bc34,_0x47373a,_0x2dcb4d,{'type':_0xaf6eec(0x30c),'viewType':(_0x368249==null?void 0x0:_0x368249[_0xaf6eec(0x305)])??_0x168289['Grid'],'reason':_0xaf6eec(0x1b4)});let _0x31386d;switch(_0x368249[_0xaf6eec(0x305)]){case _0x168289[_0xaf6eec(0x47f)]:_0x31386d=this[_0xaf6eec(0x312)](_0x5166a6,_0x368249);break;case _0x168289[_0xaf6eec(0x386)]:_0x31386d=this[_0xaf6eec(0x4aa)](_0x5166a6,_0x368249);break;case _0x168289[_0xaf6eec(0x3c6)]:_0x31386d=this['_buildKanban'](_0x5166a6,_0x368249);break;case _0x168289[_0xaf6eec(0x3bf)]:_0x31386d=this[_0xaf6eec(0x2f9)](_0x5166a6,_0x368249);break;case _0x168289[_0xaf6eec(0x493)]:_0x31386d=this['_buildGallery'](_0x5166a6,_0x368249);break;default:_0x31386d={'type':_0xaf6eec(0x30c),'viewType':_0x368249[_0xaf6eec(0x305)],'reason':_0xaf6eec(0x1b4)};}return this[_0xaf6eec(0x41e)](_0x58bc34,_0x47373a,_0x2dcb4d,_0x31386d);},{'tableId':_0x47373a,'viewId':_0x2dcb4d,'viewType':(_0x4d6e17=_0x58bc34[_0x1a94fb(0x2f7)][_0x47373a])==null||(_0x4d6e17=_0x4d6e17[_0x1a94fb(0x1e8)][_0x2dcb4d])==null?void 0x0:_0x4d6e17[_0x1a94fb(0x305)],'records':((_0xbfbb56=_0x58bc34[_0x1a94fb(0x2f7)][_0x47373a])==null||(_0xbfbb56=_0xbfbb56[_0x1a94fb(0x3da)])==null?void 0x0:_0xbfbb56[_0x1a94fb(0x21d)])??Object[_0x1a94fb(0x46f)](((_0x1a7879=_0x58bc34['tables'][_0x47373a])==null?void 0x0:_0x1a7879[_0x1a94fb(0x43a)])??{})[_0x1a94fb(0x21d)]});}[_0x5daf81(0x496)](_0x598a23,_0x11084e,_0x57a520){const _0x455766=_0x5daf81;var _0x446931,_0x353cb4,_0x28f304;let _0x431a46=_0x598a23[_0x455766(0x2f7)][_0x11084e],_0x4a230a=_0x431a46==null?void 0x0:_0x431a46['views'][_0x57a520];if(!_0x431a46||!_0x4a230a)throw Error('[BaseProjectionService]:\x20missing\x20view\x20\x22'+_0x57a520+'\x22.');let _0x5de8e2=_0x3d3e86=>!!_0x431a46['fields'][_0x3d3e86],_0x4a4a6c={..._0x4a230a,'filter':_0x4a230a['filter']?{..._0x4a230a[_0x455766(0x32f)],'conditions':_0x4a230a[_0x455766(0x32f)][_0x455766(0x245)]['filter'](_0x53d2c2=>_0x5de8e2(_0x53d2c2['fieldId']))}:_0x4a230a[_0x455766(0x32f)],'sort':(_0x446931=_0x4a230a[_0x455766(0x3c5)])==null?void 0x0:_0x446931[_0x455766(0x32f)](_0xe0f632=>_0x5de8e2(_0xe0f632[_0x455766(0x4a1)])),'group':(_0x353cb4=_0x4a230a[_0x455766(0x3e9)])==null?void 0x0:_0x353cb4['filter'](_0x18bb72=>_0x5de8e2(_0x18bb72[_0x455766(0x4a1)])),'fieldOrder':(_0x28f304=_0x4a230a['fieldOrder'])==null?void 0x0:_0x28f304[_0x455766(0x32f)](_0x5de8e2),'fieldSettings':Object[_0x455766(0x407)](Object['entries'](_0x4a230a[_0x455766(0x508)]??{})[_0x455766(0x32f)](([_0x2cae5f])=>_0x5de8e2(_0x2cae5f)))};if(_0x4a4a6c[_0x455766(0x305)]===_0x455766(0x37b)){var _0x4d9ce3;let _0xf4386e=_0x4a4a6c[_0x455766(0x396)]??{},_0x1c4174=this['_resolveKanbanGroupFieldId'](_0x431a46,_0x4a4a6c),_0x1c2d1a=this[_0x455766(0x4c7)](_0x431a46,(_0x4d9ce3=_0xf4386e[_0x455766(0x24b)])==null?void 0x0:_0x4d9ce3[_0x455766(0x478)]);_0x4a4a6c[_0x455766(0x396)]={..._0xf4386e,'groupFieldId':_0x1c4174??_0xf4386e[_0x455766(0x49b)],'coverFieldId':this[_0x455766(0x537)](_0x431a46,_0xf4386e),'cardLayout':_0xf4386e[_0x455766(0x3e7)]===_0x455766(0x363)?_0x455766(0x363):_0x455766(0x441),'showFieldNames':_0xf4386e['showFieldNames']!==!0x1,'fieldSettings':Object[_0x455766(0x407)](Object[_0x455766(0x2e4)](_0xf4386e[_0x455766(0x508)]??{})['filter'](([_0x53a832])=>_0x5de8e2(_0x53a832))),'columnSettings':_0xf4386e['columnSettings']??{},'card':{..._0xf4386e['card']??{},'titleFieldId':_0x1c2d1a,'fieldIds':this[_0x455766(0x397)](_0x431a46,_0x4a4a6c,_0x1c4174??'',_0x1c2d1a)}};}return{'repaired':JSON[_0x455766(0x439)](_0x4a4a6c)!==JSON[_0x455766(0x439)](_0x4a230a),'view':_0x4a4a6c};}['invalidateByOp'](){const _0x5e2da5=_0x5daf81;this[_0x5e2da5(0x531)]++;}[_0x5daf81(0x334)](_0x5d1a5c,_0x438a71,_0x24740f){const _0x239ed4=_0x5daf81;let _0x41350f=this[_0x239ed4(0x215)](_0x5d1a5c)+0x1;this[_0x239ed4(0x216)][_0x239ed4(0x1ba)](_0x5d1a5c,_0x41350f);let _0xca54b2=this[_0x239ed4(0x235)][_0x239ed4(0x315)](_0x5d1a5c)??[];_0xca54b2[_0x239ed4(0x482)]({'revision':_0x41350f,'recordId':_0x438a71,'fieldId':_0x24740f}),this[_0x239ed4(0x235)][_0x239ed4(0x1ba)](_0x5d1a5c,_0xca54b2);}['invalidateByField'](_0x3f0c4f,_0x265689){const _0x273763=_0x5daf81;this[_0x273763(0x2b5)](_0x3f0c4f);}[_0x5daf81(0x2a1)](_0xf6e1d6,_0x3ab443){const _0x540765=_0x5daf81;this[_0x540765(0x53c)][_0x540765(0x1ba)](this[_0x540765(0x2db)](_0xf6e1d6,_0x3ab443),this[_0x540765(0x4f7)](_0xf6e1d6,_0x3ab443)+0x1);}['_getCachedProjection'](_0x1ce651,_0x243c52,_0x525d8b){const _0x474370=_0x5daf81;var _0x453020;let _0x2f827a=(_0x453020=this[_0x474370(0x3b1)][_0x474370(0x315)](_0x1ce651))==null?void 0x0:_0x453020[_0x474370(0x315)](this[_0x474370(0x32c)](_0x243c52,_0x525d8b));return _0x2f827a&&_0x2f827a[_0x474370(0x4c1)]===this[_0x474370(0x531)]&&_0x2f827a['tableRevision']===this[_0x474370(0x541)](_0x243c52)&&_0x2f827a[_0x474370(0x474)]===this[_0x474370(0x215)](_0x243c52)&&_0x2f827a[_0x474370(0x54b)]===this['_getViewRevision'](_0x243c52,_0x525d8b)?_0x2f827a[_0x474370(0x256)]:null;}[_0x5daf81(0x41e)](_0x7e5017,_0x1b496f,_0x344838,_0x3b20ae){const _0x237bd0=_0x5daf81;let _0xff61ec=this[_0x237bd0(0x3b1)][_0x237bd0(0x315)](_0x7e5017);return _0xff61ec||(_0xff61ec=new Map(),this['_projectionCache'][_0x237bd0(0x1ba)](_0x7e5017,_0xff61ec)),_0xff61ec[_0x237bd0(0x1ba)](this[_0x237bd0(0x32c)](_0x1b496f,_0x344838),{'projection':_0x3b20ae,'globalRevision':this[_0x237bd0(0x531)],'tableRevision':this['_getTableRevision'](_0x1b496f),'cellRevision':this[_0x237bd0(0x215)](_0x1b496f),'viewRevision':this[_0x237bd0(0x4f7)](_0x1b496f,_0x344838)}),_0x3b20ae;}[_0x5daf81(0x2b5)](_0x89d696){const _0xb59c45=_0x5daf81;this['_tableRevisions'][_0xb59c45(0x1ba)](_0x89d696,this[_0xb59c45(0x541)](_0x89d696)+0x1);}['_getTableRevision'](_0x29778d){const _0x207460=_0x5daf81;return this[_0x207460(0x298)][_0x207460(0x315)](_0x29778d)??0x0;}['_getCellRevision'](_0x6b1c9b){const _0x153c4e=_0x5daf81;return this[_0x153c4e(0x216)][_0x153c4e(0x315)](_0x6b1c9b)??0x0;}['_getViewRevision'](_0x554c92,_0x3a233d){const _0xabe56d=_0x5daf81;return this['_viewRevisions'][_0xabe56d(0x315)](this['_viewRevisionKey'](_0x554c92,_0x3a233d))??0x0;}[_0x5daf81(0x32c)](_0x202d27,_0x2e2209){return _0x202d27+'\x00'+_0x2e2209;}[_0x5daf81(0x206)](_0x34531a,_0x41e7ec){const _0x43269f=_0x5daf81;return _0x34531a+'\x00'+this[_0x43269f(0x201)](_0x41e7ec);}['_groupsCacheKey'](_0x5d8d48,_0x4d0460,_0x20243f){const _0x60b2f6=_0x5daf81;return _0x5d8d48+'\x00'+this['_rowTransformCacheSegment'](_0x4d0460)+'\x00'+this[_0x60b2f6(0x467)](_0x20243f);}['_rowTransformCacheSegment'](_0x25097f){const _0x46b3e7=_0x5daf81;return _0x25097f?mi({'filter':di(_0x25097f[_0x46b3e7(0x32f)]),'sort':pi(_0x25097f[_0x46b3e7(0x3c5)])}):'__all__';}[_0x5daf81(0x467)](_0x2a2320){const _0x2953b6=_0x5daf81;return mi(_0x2a2320[_0x2953b6(0x2b0)](_0x110b77=>({'fieldId':_0x110b77['fieldId'],'direction':_0x110b77['direction']??null})));}['_viewRevisionKey'](_0x2e5a93,_0x2fd0cf){return _0x2e5a93+'\x00'+_0x2fd0cf;}[_0x5daf81(0x312)](_0x20f6ad,_0x4c0d17){const _0x42840f=_0x5daf81;var _0x378849;let _0x14c614=Je(_0x20f6ad),_0x2d6c81=this[_0x42840f(0x353)](_0x20f6ad,_0x4c0d17),_0xb4ce71=(_0x378849=_0x4c0d17['filter'])!=null&&_0x378849[_0x42840f(0x245)]['length']?this[_0x42840f(0x353)](_0x20f6ad,{..._0x4c0d17,'filter':null}):_0x2d6c81,_0x48838a=nt(this['_getHierarchyIndex'](_0x20f6ad,_0x14c614,_0x4c0d17['id'],_0xb4ce71[_0x42840f(0x2b0)](_0xfc4994=>_0xfc4994[_0x42840f(0x1c6)])),_0xb4ce71,new Set(_0x2d6c81['map'](_0x26e7c5=>_0x26e7c5[_0x42840f(0x1c6)])));return{'type':_0x168289['Grid'],'fields':this[_0x42840f(0x2b3)](_0x20f6ad,_0x4c0d17),'rows':_0x48838a[_0x42840f(0x372)],'groups':this['_projectHierarchyGroups'](_0x20f6ad,_0x4c0d17,_0x48838a[_0x42840f(0x372)],_0x48838a['hierarchy']),'hierarchy':_0x48838a[_0x42840f(0x23c)],'frozenFieldCount':typeof _0x4c0d17[_0x42840f(0x396)][_0x42840f(0x1ce)]==_0x42840f(0x53d)?_0x4c0d17[_0x42840f(0x396)][_0x42840f(0x1ce)]:0x0};}[_0x5daf81(0x352)](_0x7dcbeb,_0x419d01,_0x584015,_0x444d3a){const _0x16913b=_0x5daf81;let _0xda6701=_0x7dcbeb['id']+'\x00'+_0x419d01+'\x00'+_0x584015,_0x26a847=this[_0x16913b(0x215)](_0x7dcbeb['id']),_0x33e444=this[_0x16913b(0x1ee)][_0x16913b(0x315)](_0xda6701);if(_0x33e444&&_0x33e444[_0x16913b(0x4c1)]===this[_0x16913b(0x531)]&&_0x33e444[_0x16913b(0x234)]===this[_0x16913b(0x541)](_0x7dcbeb['id'])&&_0x33e444['orderedRecordIds'][_0x16913b(0x21d)]===_0x444d3a['length']&&_0x33e444['orderedRecordIds']['every']((_0x370810,_0x38f271)=>_0x370810===_0x444d3a[_0x38f271])){if(_0x33e444[_0x16913b(0x474)]===_0x26a847&&_0x33e444[_0x16913b(0x524)]===_0x7dcbeb)return _0x33e444[_0x16913b(0x391)];if(!this[_0x16913b(0x220)](_0x7dcbeb['id'],_0x33e444[_0x16913b(0x474)],_0x26a847,new Set([_0x419d01])))return this[_0x16913b(0x1ee)][_0x16913b(0x1ba)](_0xda6701,{..._0x33e444,'table':_0x7dcbeb,'cellRevision':_0x26a847}),_0x33e444[_0x16913b(0x391)];}let _0x59c2c5=tt(_0x7dcbeb,_0x419d01,_0x444d3a);return this[_0x16913b(0x1ee)][_0x16913b(0x1ba)](_0xda6701,{'table':_0x7dcbeb,'index':_0x59c2c5,'orderedRecordIds':_0x444d3a,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x16913b(0x541)](_0x7dcbeb['id']),'cellRevision':_0x26a847}),_0x59c2c5;}[_0x5daf81(0x466)](_0x2fbce4,_0x47a322,_0x2f498f,_0x35787f){const _0x51afda=_0x5daf81;var _0x11f902;if(!((_0x11f902=_0x47a322[_0x51afda(0x3e9)])!=null&&_0x11f902[_0x51afda(0x21d)]))return[];let _0x174c71=new Map(_0x2f498f[_0x51afda(0x2b0)](_0x2b2333=>[_0x2b2333['recordId'],_0x2b2333])),_0x59366a=_0x35787f[_0x51afda(0x32b)][_0x51afda(0x36c)](_0x57ef56=>{const _0x33f667=_0x51afda;let _0x597f7f=_0x174c71[_0x33f667(0x315)](_0x57ef56);return _0x597f7f?[_0x597f7f]:[];}),_0x3bd357=this[_0x51afda(0x495)](_0x2fbce4,_0x47a322,_0x59366a),_0x72a021=new Map(_0x35787f[_0x51afda(0x4c4)][_0x51afda(0x2b0)]((_0x14991d,_0x2bb08d)=>[_0x14991d,_0x2bb08d])),_0x456cd0=_0x5e14e9=>{const _0x14126a=_0x51afda;let _0x42e7a2=_0x35787f[_0x14126a(0x42b)][_0x5e14e9],_0x30c184=_0x72a021[_0x14126a(0x315)](_0x5e14e9)??-0x1;return _0x30c184<0x0||!_0x42e7a2?[]:_0x35787f[_0x14126a(0x4c4)][_0x14126a(0x1cb)](_0x30c184,_0x42e7a2['subtreeEndIndex']+0x1);},_0x18f241=_0x3bf740=>{const _0x51b72a=_0x51afda;var _0x3ffb4b,_0x1140aa;return{..._0x3bf740,'recordIds':(_0x3ffb4b=_0x3bf740[_0x51b72a(0x2c9)])!=null&&_0x3ffb4b[_0x51b72a(0x21d)]?_0x3bf740[_0x51b72a(0x3d8)]:_0x3bf740[_0x51b72a(0x3d8)][_0x51b72a(0x36c)](_0x456cd0),'children':(_0x1140aa=_0x3bf740[_0x51b72a(0x2c9)])==null?void 0x0:_0x1140aa[_0x51b72a(0x2b0)](_0x18f241)};};return _0x3bd357[_0x51afda(0x2b0)](_0x18f241);}[_0x5daf81(0x290)](_0x7bd2bf,_0x5096f7){const _0x3b792b=_0x5daf81;var _0xbda264;let _0x4ed53a=this[_0x3b792b(0x51d)](_0x7bd2bf,_0x5096f7),_0x4e3310=_0x4ed53a?_0x7bd2bf['fields'][_0x4ed53a]:void 0x0;if(!_0x4e3310)return{'type':_0x3b792b(0x30c),'viewType':_0x168289[_0x3b792b(0x3c6)],'reason':_0x3b792b(0x31a),'fieldId':_0x5096f7[_0x3b792b(0x396)]['groupFieldId']};let _0x220640=this['_projectRows'](_0x7bd2bf,_0x5096f7),_0x194f17=this[_0x3b792b(0x2b3)](_0x7bd2bf,_0x5096f7),_0x56cbe2=_0x5096f7['config']??{},_0x39085f=this['_resolveCardTitleFieldId'](_0x7bd2bf,(_0xbda264=_0x56cbe2[_0x3b792b(0x24b)])==null?void 0x0:_0xbda264['titleFieldId']),_0x145872=this[_0x3b792b(0x397)](_0x7bd2bf,_0x5096f7,_0x4e3310['id'],_0x39085f),_0x38cf22=new Map();if(F(_0x7bd2bf,_0x4e3310['id'])){let _0x2c9fbc=this[_0x3b792b(0x352)](_0x7bd2bf,_0x4e3310['id'],_0x5096f7['id'],_0x220640[_0x3b792b(0x2b0)](_0xa67f5c=>_0xa67f5c['recordId'])),_0x20ba83=new Map();return _0x220640[_0x3b792b(0x429)](_0x84a2e9=>{const _0x31e297=_0x3b792b;let _0xadba22=_0x2c9fbc[_0x31e297(0x4f3)][_0x31e297(0x315)](_0x84a2e9['recordId'])??null,_0x47b2ed=_0xadba22??'',_0x22fbf2=_0xadba22?_0x7bd2bf[_0x31e297(0x43a)][_0xadba22]:void 0x0,_0x1bc7f2=_0x20ba83['get'](_0x47b2ed)??{'key':_0x47b2ed,'title':_0x22fbf2?String(yt(_0x7bd2bf,_0x22fbf2['id'],_0x7bd2bf[_0x31e297(0x51f)])??_0xadba22):this['_kanbanLaneTitle'](_0x4e3310,_0x47b2ed,_0x56cbe2),'recordIds':[]};_0x1bc7f2[_0x31e297(0x3d8)][_0x31e297(0x482)](_0x84a2e9[_0x31e297(0x1c6)]),_0x20ba83[_0x31e297(0x1ba)](_0x47b2ed,_0x1bc7f2);}),{'type':_0x168289['Kanban'],'fields':_0x194f17,'rows':_0x220640,'groups':[],'groupFieldId':_0x4e3310['id'],'titleFieldId':_0x39085f,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x7bd2bf,_0x56cbe2),'cardLayout':_0x56cbe2[_0x3b792b(0x3e7)]===_0x3b792b(0x363)?_0x3b792b(0x363):_0x3b792b(0x441),'showFieldNames':_0x56cbe2[_0x3b792b(0x507)]!==!0x1,'visibleCardFieldIds':_0x145872,'lanes':['',..._0x2c9fbc[_0x3b792b(0x4c4)]]['flatMap'](_0x3caeeb=>{const _0x2cea22=_0x3b792b;let _0x525f50=_0x20ba83[_0x2cea22(0x315)](_0x3caeeb);return _0x525f50!=null&&_0x525f50['recordIds'][_0x2cea22(0x21d)]?[_0x525f50]:[];})};}return this[_0x3b792b(0x390)](_0x4e3310,_0x56cbe2)['forEach'](_0x4709b3=>_0x38cf22[_0x3b792b(0x1ba)](_0x4709b3[_0x3b792b(0x2d4)],{..._0x4709b3,'recordIds':[]})),_0x220640[_0x3b792b(0x429)](_0x5d970d=>{const _0x552a37=_0x3b792b;this[_0x552a37(0x229)](_0x4e3310,_0x5d970d['values'][_0x4e3310['id']])[_0x552a37(0x429)](_0x2d0f79=>{const _0x51a123=_0x552a37;let _0x33fa67=_0x38cf22[_0x51a123(0x315)](_0x2d0f79)??{'key':_0x2d0f79,'title':this[_0x51a123(0x434)](_0x4e3310,_0x2d0f79,_0x56cbe2),'color':this['_kanbanLaneColor'](_0x4e3310,_0x2d0f79,_0x56cbe2),'recordIds':[]};_0x33fa67[_0x51a123(0x3d8)][_0x51a123(0x482)](_0x5d970d[_0x51a123(0x1c6)]),_0x38cf22['set'](_0x2d0f79,_0x33fa67);});}),{'type':_0x168289[_0x3b792b(0x3c6)],'fields':_0x194f17,'rows':_0x220640,'groups':this['_projectGroups'](_0x7bd2bf,_0x5096f7,_0x220640),'groupFieldId':_0x4e3310['id'],'titleFieldId':_0x39085f,'coverFieldId':this[_0x3b792b(0x537)](_0x7bd2bf,_0x56cbe2),'cardLayout':_0x56cbe2[_0x3b792b(0x3e7)]==='compose'?'compose':_0x3b792b(0x441),'showFieldNames':_0x56cbe2['showFieldNames']!==!0x1,'visibleCardFieldIds':_0x145872,'lanes':Array[_0x3b792b(0x404)](_0x38cf22[_0x3b792b(0x45b)]())};}['_resolveKanbanGroupFieldId'](_0x4ae73d,_0xfad1ed){const _0x2a5abe=_0x5daf81;var _0x4d3676;let _0x1620b0=(_0x4d3676=_0xfad1ed[_0x2a5abe(0x396)])==null?void 0x0:_0x4d3676[_0x2a5abe(0x49b)];return _0x1620b0&&this[_0x2a5abe(0x559)](_0x4ae73d,_0x1620b0)?_0x1620b0:this[_0x2a5abe(0x41c)](_0x4ae73d,_0x4ac6f6=>this[_0x2a5abe(0x3eb)](_0x4ac6f6));}[_0x5daf81(0x41c)](_0x17d66d,_0x1b4a8c){for(let _0x3b6029 of _0x17d66d['fieldOrder']){let _0x5a5563=_0x17d66d['fields'][_0x3b6029];if(_0x5a5563&&_0x1b4a8c(_0x5a5563))return _0x5a5563['id'];}return null;}['_isKanbanGroupField'](_0x2bf7a0,_0x2be408){const _0x3fecf5=_0x5daf81;let _0x5036b5=_0x2bf7a0[_0x3fecf5(0x503)][_0x2be408];return this[_0x3fecf5(0x3eb)](_0x5036b5)||F(_0x2bf7a0,_0x2be408);}[_0x5daf81(0x3eb)](_0x35aea0){const _0x29555c=_0x5daf81;return!!_0x35aea0&&(_0x35aea0[_0x29555c(0x305)]===_0x618ba[_0x29555c(0x3af)]||_0x35aea0[_0x29555c(0x305)]===_0x618ba[_0x29555c(0x3a1)]||_0x35aea0['type']===_0x618ba[_0x29555c(0x238)]||_0x35aea0[_0x29555c(0x305)]===_0x618ba[_0x29555c(0x1e9)]||_0x35aea0[_0x29555c(0x305)]===_0x618ba['Group']||_0x35aea0[_0x29555c(0x305)]===_0x618ba[_0x29555c(0x4bb)]);}['_isColorfulKanbanGroupField'](_0x4d27d9){const _0x567e16=_0x5daf81;return _0x4d27d9[_0x567e16(0x305)]===_0x618ba[_0x567e16(0x3af)]||_0x4d27d9[_0x567e16(0x305)]===_0x618ba[_0x567e16(0x3a1)];}[_0x5daf81(0x537)](_0x47d8f5,_0x26ca7a){const _0x1e4b5=_0x5daf81;var _0x4e50b6;let _0x43dbc6=_0x26ca7a[_0x1e4b5(0x225)]??((_0x4e50b6=_0x26ca7a[_0x1e4b5(0x24b)])==null?void 0x0:_0x4e50b6[_0x1e4b5(0x225)])??null;if(!_0x43dbc6)return null;let _0x1e7b6f=_0x47d8f5[_0x1e4b5(0x503)][_0x43dbc6];return _0x1e7b6f&&this[_0x1e4b5(0x308)](_0x1e7b6f)[_0x1e4b5(0x294)]?_0x1e7b6f['id']:null;}[_0x5daf81(0x397)](_0x2fdbf9,_0x522dc3,_0xf2c27e,_0x3e805c=this[_0x5daf81(0x4c7)](_0x2fdbf9,((()=>{const _0x53d1b4=_0x5daf81;var _0x36415e;return(_0x36415e=_0x522dc3[_0x53d1b4(0x396)])==null||(_0x36415e=_0x36415e['card'])==null?void 0x0:_0x36415e['titleFieldId'];})()))){const _0x3c3ef7=_0x5daf81;var _0x492591;let _0x58acba=_0x522dc3[_0x3c3ef7(0x396)]??{},_0x3f8fa7=(_0x492591=_0x58acba[_0x3c3ef7(0x24b)])!=null&&(_0x492591=_0x492591[_0x3c3ef7(0x209)])!=null&&_0x492591[_0x3c3ef7(0x21d)]?_0x58acba[_0x3c3ef7(0x24b)][_0x3c3ef7(0x209)]:Qr(_0x2fdbf9,[_0x3e805c,_0x2fdbf9['primaryFieldId'],_0xf2c27e]),_0x6f93f=_0x58acba[_0x3c3ef7(0x508)]??{};return _0x3f8fa7[_0x3c3ef7(0x32f)](_0x1d2f96=>{const _0x19c941=_0x3c3ef7;var _0x5bd26f,_0x592ca5;let _0x1b3ed6=_0x2fdbf9[_0x19c941(0x503)][_0x1d2f96];return!(!_0x1b3ed6||_0x1b3ed6[_0x19c941(0x3db)]===!0x0||_0x1b3ed6[_0x19c941(0x305)]===_0x618ba[_0x19c941(0x28f)]||_0x1b3ed6['id']===_0xf2c27e||_0x1b3ed6['id']===_0x3e805c||(_0x5bd26f=_0x522dc3[_0x19c941(0x508)])!=null&&(_0x5bd26f=_0x5bd26f[_0x1d2f96])!=null&&_0x5bd26f[_0x19c941(0x219)]||(_0x592ca5=_0x6f93f[_0x1d2f96])!=null&&_0x592ca5[_0x19c941(0x219)]);})[_0x3c3ef7(0x3c5)]((_0x1cf379,_0x5adf57)=>{const _0x429c2f=_0x3c3ef7;var _0x105663,_0x143e76;return(((_0x105663=_0x6f93f[_0x1cf379])==null?void 0x0:_0x105663['order'])??_0x3f8fa7[_0x429c2f(0x25c)](_0x1cf379))-(((_0x143e76=_0x6f93f[_0x5adf57])==null?void 0x0:_0x143e76['order'])??_0x3f8fa7[_0x429c2f(0x25c)](_0x5adf57));});}['_getKanbanConfiguredLanes'](_0x12a10e,_0x2cf259){const _0x54398a=_0x5daf81;var _0x37798f;let _0x302061=(Array[_0x54398a(0x31e)]((_0x37798f=_0x12a10e['config'])==null?void 0x0:_0x37798f['options'])?_0x12a10e[_0x54398a(0x396)][_0x54398a(0x49e)]:[])['flatMap']((_0x23c165,_0x5bb88f)=>{const _0x15399a=_0x54398a;if(_0x23c165==null)return[];let _0x1d4624=typeof _0x23c165==_0x15399a(0x2ed)?{'id':_0x23c165,'name':_0x23c165,'color':void 0x0}:_0x23c165,_0x4ccaff=String(_0x1d4624['id']??_0x1d4624['name']??'option-'+(_0x5bb88f+0x1));return[{'key':_0x4ccaff,'title':String(_0x1d4624[_0x15399a(0x322)]??_0x1d4624['id']??_0x4ccaff),'color':this['_kanbanLaneColor'](_0x12a10e,_0x4ccaff,_0x2cf259)}];});return Object[_0x54398a(0x2e4)](_0x2cf259[_0x54398a(0x418)]??{})['forEach'](([_0x4b55d9,_0x36f067])=>{const _0x1bf287=_0x54398a;_0x302061[_0x1bf287(0x387)](_0x1ad1f8=>_0x1ad1f8['key']===_0x4b55d9)||_0x302061[_0x1bf287(0x482)]({'key':_0x4b55d9,'title':this[_0x1bf287(0x2cb)](_0x12a10e)?_0x36f067['title']??this[_0x1bf287(0x434)](_0x12a10e,_0x4b55d9,_0x2cf259):this[_0x1bf287(0x434)](_0x12a10e,_0x4b55d9,_0x2cf259),'color':this[_0x1bf287(0x468)](_0x12a10e,_0x4b55d9,_0x2cf259)});}),_0x302061;}[_0x5daf81(0x229)](_0x5ce13c,_0x5346bd){const _0x444098=_0x5daf81;let _0x2236f6=_0x2b2ae0=>{const _0xae9c2=_0x188f;var _0x3da1a8;let _0x3ccd1c=_0x2b2ae0==null?'':String(_0x2b2ae0);return!_0x3ccd1c||!this[_0xae9c2(0x2cb)](_0x5ce13c)?_0x3ccd1c:((_0x3da1a8=Li(_0x5ce13c,_0x3ccd1c))==null?void 0x0:_0x3da1a8['id'])??_0x3ccd1c;};if(Array['isArray'](_0x5346bd)){let _0x3fb9fe=_0x5346bd[_0x444098(0x2b0)](_0x2236f6)[_0x444098(0x32f)](_0x2eba33=>_0x2eba33!=='');return _0x3fb9fe['length']?_0x3fb9fe:[''];}return[_0x2236f6(_0x5346bd)];}[_0x5daf81(0x434)](_0x498c38,_0x2d9d71,_0x578948){const _0x563891=_0x5daf81;if(!_0x2d9d71)return _0x563891(0x300);let _0x19cfc8=Li(_0x498c38,_0x2d9d71);return(_0x19cfc8==null?void 0x0:_0x19cfc8[_0x563891(0x322)])??_0x2d9d71;}[_0x5daf81(0x468)](_0x19f12e,_0x289b8a,_0x9d2592){const _0x409d60=_0x5daf81;var _0x29384d;if(this[_0x409d60(0x2cb)](_0x19f12e))return(_0x29384d=Li(_0x19f12e,_0x289b8a))==null?void 0x0:_0x29384d[_0x409d60(0x3be)];}['_buildCalendar'](_0x4c3e8f,_0x45ad6e){const _0x5ed2ab=_0x5daf81;let _0x128db6=this[_0x5ed2ab(0x24a)](_0x4c3e8f,_0x45ad6e[_0x5ed2ab(0x396)]??{}),_0x4806b9=_0x4c3e8f[_0x5ed2ab(0x503)][_0x128db6['startDateFieldId']];if(!_0x4806b9||_0x4806b9['type']!==_0x618ba[_0x5ed2ab(0x47c)]||_0x4806b9['readonly']===!0x0||_0x4806b9[_0x5ed2ab(0x3db)]===!0x0||!this[_0x5ed2ab(0x308)](_0x4806b9)[_0x5ed2ab(0x34f)])return{'type':_0x5ed2ab(0x30c),'viewType':_0x168289[_0x5ed2ab(0x3bf)],'reason':'invalidDateField','fieldId':_0x128db6[_0x5ed2ab(0x3d5)]};let _0x1eb0f9=_0x128db6[_0x5ed2ab(0x39a)]?_0x4c3e8f['fields'][_0x128db6[_0x5ed2ab(0x39a)]]:void 0x0,_0x589d07=this[_0x5ed2ab(0x353)](_0x4c3e8f,_0x45ad6e);return{'type':_0x168289['Calendar'],'config':_0x128db6,'fields':this[_0x5ed2ab(0x2b3)](_0x4c3e8f,_0x45ad6e),'rows':_0x589d07,'groups':this[_0x5ed2ab(0x495)](_0x4c3e8f,_0x45ad6e,_0x589d07),'events':_0x589d07[_0x5ed2ab(0x36c)](_0x7b7bf5=>{const _0x2f9f82=_0x5ed2ab;let _0x4093e1=dn(_0x7b7bf5[_0x2f9f82(0x45b)][_0x128db6['startDateFieldId']]);if(!Number[_0x2f9f82(0x2fc)](_0x4093e1))return[];let _0xf74ad8=_0x7b7bf5[_0x2f9f82(0x45b)][_0x128db6['startDateFieldId']],_0x3c96a2=_0x128db6['endDateFieldId']==null?void 0x0:_0x7b7bf5['values'][_0x128db6[_0x2f9f82(0x39a)]],_0x56774d=_0x128db6[_0x2f9f82(0x39a)]==null?void 0x0:dn(_0x3c96a2),_0x3eb5fd=Number[_0x2f9f82(0x2fc)](_0x56774d)?_0x56774d:void 0x0;return[{'recordId':_0x7b7bf5[_0x2f9f82(0x1c6)],'title':this[_0x2f9f82(0x1c7)](_0x4c3e8f,_0x7b7bf5,_0x128db6[_0x2f9f82(0x478)]),'start':_0x4093e1,'end':_0x3eb5fd,'color':this[_0x2f9f82(0x51e)](_0x4c3e8f,_0x7b7bf5,_0x128db6),'startMs':_0x4093e1,'endMs':_0x3eb5fd,'allDay':this[_0x2f9f82(0x24f)](_0x4806b9,_0x1eb0f9,_0xf74ad8,_0x3c96a2),'fieldValues':_0x7b7bf5['values']}];})};}['_normalizeCalendarConfig'](_0x1d3c7a,_0x16a3bb){const _0x4cc776=_0x5daf81;let _0x3413bf=this[_0x4cc776(0x49a)](_0x1d3c7a,_0x16a3bb[_0x4cc776(0x3d5)]),_0xc0ea14=_0x16a3bb[_0x4cc776(0x39a)]&&this[_0x4cc776(0x2b2)](_0x1d3c7a,_0x16a3bb[_0x4cc776(0x39a)])?_0x16a3bb[_0x4cc776(0x39a)]:this['_findCalendarDateFieldId'](_0x1d3c7a,_0x3413bf)??void 0x0,_0x453b61=_0x16a3bb[_0x4cc776(0x478)]?_0x1d3c7a[_0x4cc776(0x503)][_0x16a3bb['titleFieldId']]:void 0x0,_0x388846=_0x453b61&&_0x453b61[_0x4cc776(0x3db)]!==!0x0&&_0x453b61['type']!==_0x618ba[_0x4cc776(0x28f)]?_0x16a3bb[_0x4cc776(0x478)]:_0x1d3c7a[_0x4cc776(0x51f)],_0xa4f142=_0x16a3bb[_0x4cc776(0x54f)]===_0x4cc776(0x2d1)||_0x16a3bb['mode']===_0x4cc776(0x2ba)?_0x16a3bb[_0x4cc776(0x54f)]:_0x4cc776(0x53e),_0x4216e6=_0x16a3bb['timeslotSize']===_0x4cc776(0x532)||_0x16a3bb['timeslotSize']===_0x4cc776(0x267)?_0x16a3bb[_0x4cc776(0x2bf)]:_0x4cc776(0x4be),_0x170119=typeof _0x16a3bb['timeZone']==_0x4cc776(0x2ed)&&_0x16a3bb[_0x4cc776(0x4dd)][_0x4cc776(0x3a5)]()?_0x16a3bb[_0x4cc776(0x4dd)]:_0x4cc776(0x35a),_0x5b6b0e=this[_0x4cc776(0x53b)](_0x1d3c7a,_0x16a3bb);return{..._0x16a3bb,'startDateFieldId':_0x3413bf,'endDateFieldId':_0xc0ea14,'titleFieldId':_0x388846,'mode':_0xa4f142,'timeslotSize':_0x4216e6,'timeZone':_0x170119,'displayColor':_0x5b6b0e,'fieldSettings':Object['fromEntries'](Object[_0x4cc776(0x2e4)](_0x16a3bb[_0x4cc776(0x508)]??{})['filter'](([_0x322d13])=>{const _0x5c84a4=_0x4cc776;let _0x2ffb17=_0x1d3c7a[_0x5c84a4(0x503)][_0x322d13];return!!(_0x2ffb17&&_0x2ffb17[_0x5c84a4(0x3db)]!==!0x0&&_0x2ffb17[_0x5c84a4(0x305)]!==_0x618ba['RecordId']);}))};}['_resolveCalendarDateFieldId'](_0x4a611a,_0x36f5af){const _0x15a0c4=_0x5daf81;return _0x36f5af&&this[_0x15a0c4(0x2b2)](_0x4a611a,_0x36f5af)?_0x36f5af:this[_0x15a0c4(0x239)](_0x4a611a)??_0x36f5af??'';}[_0x5daf81(0x239)](_0x55771d,_0x432998){const _0x5e0e79=_0x5daf81;for(let _0x373ce4 of _0x55771d[_0x5e0e79(0x1d6)])if(_0x373ce4!==_0x432998&&this[_0x5e0e79(0x2b2)](_0x55771d,_0x373ce4))return _0x373ce4;return null;}[_0x5daf81(0x2b2)](_0x458b3c,_0x477d76){const _0x13bbc6=_0x5daf81;let _0x4ccf38=_0x458b3c[_0x13bbc6(0x503)][_0x477d76];return!!_0x4ccf38&&_0x4ccf38[_0x13bbc6(0x305)]===_0x618ba[_0x13bbc6(0x47c)]&&_0x4ccf38[_0x13bbc6(0x546)]!==!0x0&&_0x4ccf38[_0x13bbc6(0x3db)]!==!0x0&&this[_0x13bbc6(0x308)](_0x4ccf38)['usableAsCalendarDate'];}[_0x5daf81(0x53b)](_0x1c9bb5,_0x379239){const _0x49d831=_0x5daf81;let _0x3e41a5=_0x379239[_0x49d831(0x4c6)];if((_0x3e41a5==null?void 0x0:_0x3e41a5[_0x49d831(0x305)])===_0x49d831(0x54d)){let _0xc22f7c=_0x1c9bb5['fields'][_0x3e41a5[_0x49d831(0x4a1)]];if(_0xc22f7c&&_0xc22f7c['type']===_0x618ba[_0x49d831(0x3af)])return _0x3e41a5;}if((_0x3e41a5==null?void 0x0:_0x3e41a5[_0x49d831(0x305)])===_0x49d831(0x3f1)&&typeof _0x3e41a5['color']==_0x49d831(0x2ed)&&_0x3e41a5[_0x49d831(0x3be)]['trim']())return{'type':_0x49d831(0x3f1),'color':_0x3e41a5[_0x49d831(0x3be)]};if(_0x379239[_0x49d831(0x392)]){let _0x1834cd=_0x1c9bb5[_0x49d831(0x503)][_0x379239[_0x49d831(0x392)]];if(_0x1834cd&&_0x1834cd[_0x49d831(0x305)]===_0x618ba[_0x49d831(0x3af)])return{'type':_0x49d831(0x54d),'fieldId':_0x379239[_0x49d831(0x392)]};}return{'type':_0x49d831(0x3f1),'color':_0x49d831(0x370)};}[_0x5daf81(0x51e)](_0x47150c,_0x5b2f52,_0x1e92af){const _0x5cd813=_0x5daf81;let _0x120e3a=_0x1e92af[_0x5cd813(0x4c6)];if((_0x120e3a==null?void 0x0:_0x120e3a[_0x5cd813(0x305)])===_0x5cd813(0x54d)){var _0x213869;let _0x359301=_0x47150c['fields'][_0x120e3a[_0x5cd813(0x4a1)]];if(!_0x359301)return;let _0x4103ab=_0x5b2f52[_0x5cd813(0x45b)][_0x120e3a[_0x5cd813(0x4a1)]],_0x263d0d=Array[_0x5cd813(0x31e)](_0x4103ab)?_0x4103ab[0x0]:_0x4103ab;return _0x263d0d==null||(_0x213869=Li(_0x359301,String(_0x263d0d)))==null?void 0x0:_0x213869[_0x5cd813(0x3be)];}if((_0x120e3a==null?void 0x0:_0x120e3a[_0x5cd813(0x305)])===_0x5cd813(0x3f1))return _0x120e3a[_0x5cd813(0x3be)];}[_0x5daf81(0x24f)](_0x41adb9,_0x32039e,_0x533208,_0x4a6b5a){const _0x5d3543=_0x5daf81;var _0x36825d,_0x1d99a6;let _0x17f1cb=((_0x36825d=_0x41adb9['config'])==null?void 0x0:_0x36825d[_0x5d3543(0x427)])===!0x0,_0x3b9c4d=(_0x32039e==null||(_0x1d99a6=_0x32039e['config'])==null?void 0x0:_0x1d99a6[_0x5d3543(0x427)])===!0x0;return!_0x17f1cb&&!_0x3b9c4d;}[_0x5daf81(0x1bc)](_0x225136,_0x3ba56b){const _0x1c6789=_0x5daf81;var _0x4783af,_0x57a44e;let _0x16830b=((_0x4783af=_0x225136['config'])==null?void 0x0:_0x4783af[_0x1c6789(0x427)])===!0x0,_0x945246=((_0x57a44e=_0x3ba56b[_0x1c6789(0x396)])==null?void 0x0:_0x57a44e['includeTime'])===!0x0;return!_0x16830b&&!_0x945246;}['_buildGantt'](_0x2b67cd,_0x7a7c67){const _0x3ef991=_0x5daf81;let _0xc036cd=this[_0x3ef991(0x442)](_0x2b67cd,_0x7a7c67[_0x3ef991(0x396)]),_0x5bab37=_0x2b67cd[_0x3ef991(0x503)][_0xc036cd[_0x3ef991(0x3d5)]];if(!_0x5bab37||_0x5bab37[_0x3ef991(0x305)]!==_0x618ba[_0x3ef991(0x47c)]||_0x5bab37[_0x3ef991(0x546)]===!0x0||_0x5bab37[_0x3ef991(0x3db)]===!0x0||!this[_0x3ef991(0x308)](_0x5bab37)[_0x3ef991(0x4e8)])return{'type':_0x3ef991(0x30c),'viewType':_0x168289[_0x3ef991(0x386)],'reason':'invalidGanttStartField','fieldId':_0xc036cd['startDateFieldId']};let _0x4a9fa2=_0x2b67cd[_0x3ef991(0x503)][_0xc036cd[_0x3ef991(0x39a)]];if(!_0x4a9fa2||_0x4a9fa2['type']!==_0x618ba['Date']||_0x4a9fa2['readonly']===!0x0||_0x4a9fa2[_0x3ef991(0x3db)]===!0x0||!this['_capabilities'](_0x4a9fa2)[_0x3ef991(0x248)])return{'type':_0x3ef991(0x30c),'viewType':_0x168289[_0x3ef991(0x386)],'reason':_0x3ef991(0x20c),'fieldId':_0xc036cd[_0x3ef991(0x39a)]};let _0x2cce17=this[_0x3ef991(0x1bc)](_0x5bab37,_0x4a9fa2),_0x36768f=this[_0x3ef991(0x353)](_0x2b67cd,_0x7a7c67),_0x336030=_0x36768f[_0x3ef991(0x36c)](_0x2f98d3=>{const _0x55d198=_0x3ef991;let _0x273dbc=dn(_0x2f98d3[_0x55d198(0x45b)][_0xc036cd[_0x55d198(0x3d5)]]),_0x2e8548=dn(_0x2f98d3[_0x55d198(0x45b)][_0xc036cd[_0x55d198(0x39a)]]);if(!Number[_0x55d198(0x2fc)](_0x273dbc)||!Number['isFinite'](_0x2e8548))return[];let _0x45ae88=Math[_0x55d198(0x469)](_0x273dbc,_0x2e8548),_0x17e26c=Math[_0x55d198(0x29c)](_0x273dbc,_0x2e8548),_0x11d750=_0xc036cd[_0x55d198(0x333)]==null?void 0x0:Number(_0x2f98d3[_0x55d198(0x45b)][_0xc036cd[_0x55d198(0x333)]]);return[{'recordId':_0x2f98d3[_0x55d198(0x1c6)],'title':this['_title'](_0x2b67cd,_0x2f98d3,_0xc036cd[_0x55d198(0x478)]),'start':_0x45ae88,'end':_0x17e26c,'color':this[_0x55d198(0x43c)](_0x2b67cd,_0x2f98d3,_0xc036cd),'progress':Number[_0x55d198(0x2fc)](_0x11d750)?_0x11d750:void 0x0,'workingDayCount':_0xc036cd[_0x55d198(0x2f1)]?Ti(_0x45ae88,_0x17e26c,_0xc036cd[_0x55d198(0x2c1)]):void 0x0,'dependencyRecordIds':this[_0x55d198(0x4ef)](_0x2f98d3[_0x55d198(0x45b)][_0xc036cd['dependencyFieldId']??''])}];}),_0xb0a769=_0x336030[_0x3ef991(0x21d)]?Z(Math['min'](..._0x336030[_0x3ef991(0x2b0)](_0x3ad7db=>_0x3ad7db['start']))-0x5a*oi):Z(Date[_0x3ef991(0x1d5)]()-0x5a*oi),_0x14ccf2=_0x336030['length']?Z(Math['max'](..._0x336030[_0x3ef991(0x2b0)](_0x18e386=>_0x18e386['end']))+0x5b*oi):Z(Date[_0x3ef991(0x1d5)]()+0x5b*oi),_0x23e7a1=_i(_0xc036cd[_0x3ef991(0x1eb)],_0xb0a769,_0x14ccf2,_0xc036cd[_0x3ef991(0x2f1)]?_0xc036cd[_0x3ef991(0x2c1)]:void 0x0);return{'type':_0x168289[_0x3ef991(0x386)],'fields':this['_projectFields'](_0x2b67cd,{..._0x7a7c67,'config':_0xc036cd}),'rows':_0x36768f,'groups':this[_0x3ef991(0x495)](_0x2b67cd,_0x7a7c67,_0x36768f),'config':_0xc036cd,'dateRangeAllDay':_0x2cce17,'timeline':{'scale':_0xc036cd[_0x3ef991(0x1eb)],'start':_0xb0a769,'end':_0x14ccf2,'unitWidth':_0x23e7a1[_0x3ef991(0x384)],'majorHeaders':_0x23e7a1[_0x3ef991(0x561)],'columns':_0x23e7a1[_0x3ef991(0x548)]},'bars':_0x336030};}['_normalizeGanttConfig'](_0x40709b,_0x5e7b7a){const _0x551241=_0x5daf81;let _0x3daaf3=this[_0x551241(0x394)](_0x40709b,_0x5e7b7a[_0x551241(0x3d5)],'start'),_0x737e9=this[_0x551241(0x394)](_0x40709b,_0x5e7b7a[_0x551241(0x39a)],'end')||_0x3daaf3,_0x1ee329=_0x5e7b7a[_0x551241(0x478)]?_0x40709b['fields'][_0x5e7b7a[_0x551241(0x478)]]:void 0x0,_0x21ff1f=_0x1ee329&&_0x1ee329[_0x551241(0x3db)]!==!0x0&&_0x1ee329[_0x551241(0x305)]!==_0x618ba[_0x551241(0x28f)]?_0x5e7b7a[_0x551241(0x478)]:_0x40709b[_0x551241(0x51f)],_0x22b4c5=_0x5e7b7a[_0x551241(0x1eb)]==='week'||_0x5e7b7a[_0x551241(0x1eb)]===_0x551241(0x459)||_0x5e7b7a[_0x551241(0x1eb)]===_0x551241(0x27d)?_0x5e7b7a[_0x551241(0x1eb)]:'month',_0x5b20c2=gi(_0x5e7b7a[_0x551241(0x2c1)]);return{..._0x5e7b7a,'startDateFieldId':_0x3daaf3,'endDateFieldId':_0x737e9,'titleFieldId':_0x21ff1f,'scale':_0x22b4c5,'leftPaneWidth':typeof _0x5e7b7a[_0x551241(0x46d)]==_0x551241(0x53d)?_0x5e7b7a[_0x551241(0x46d)]:void 0x0,'leftPaneCollapsed':_0x5e7b7a[_0x551241(0x2df)]===!0x0,'showTodayLine':_0x5e7b7a[_0x551241(0x1f6)]!==!0x1,'displayColor':this[_0x551241(0x485)](_0x40709b,_0x5e7b7a),'fieldSettings':Object['fromEntries'](Object['entries'](_0x5e7b7a[_0x551241(0x508)]??{})[_0x551241(0x32f)](([_0x4d380d])=>{const _0x243ec0=_0x551241;let _0x2dcd41=_0x40709b[_0x243ec0(0x503)][_0x4d380d];return!!(_0x2dcd41&&_0x2dcd41['system']!==!0x0&&_0x2dcd41[_0x243ec0(0x305)]!==_0x618ba[_0x243ec0(0x28f)]);})),'workingDaysOnly':_0x5e7b7a[_0x551241(0x2f1)]===!0x0,'workingDays':_0x5b20c2};}[_0x5daf81(0x394)](_0x67691d,_0x3b1f9b,_0x30210e){const _0x47e4df=_0x5daf81;if(_0x3b1f9b&&this[_0x47e4df(0x436)](_0x67691d,_0x3b1f9b,_0x30210e)||_0x3b1f9b)return _0x3b1f9b;for(let _0x5d1fa6 of _0x67691d[_0x47e4df(0x1d6)])if(this[_0x47e4df(0x436)](_0x67691d,_0x5d1fa6,_0x30210e))return _0x5d1fa6;return _0x3b1f9b??'';}['_isGanttDateField'](_0x4df813,_0x1d589c,_0x47eae3){const _0x375999=_0x5daf81;let _0x3c7f9a=_0x4df813['fields'][_0x1d589c];if(!_0x3c7f9a||_0x3c7f9a['type']!==_0x618ba[_0x375999(0x47c)]||_0x3c7f9a['readonly']===!0x0||_0x3c7f9a[_0x375999(0x3db)]===!0x0)return!0x1;let _0x4555ee=this[_0x375999(0x308)](_0x3c7f9a);return _0x47eae3==='start'?_0x4555ee[_0x375999(0x4e8)]:_0x4555ee[_0x375999(0x248)];}[_0x5daf81(0x485)](_0x18b904,_0x70f87){const _0x2092e2=_0x5daf81;let _0x516c44=_0x70f87[_0x2092e2(0x4c6)];if((_0x516c44==null?void 0x0:_0x516c44[_0x2092e2(0x305)])===_0x2092e2(0x54d)){let _0x5aaa27=_0x18b904['fields'][_0x516c44[_0x2092e2(0x4a1)]];if(_0x5aaa27&&_0x5aaa27[_0x2092e2(0x305)]===_0x618ba[_0x2092e2(0x3af)])return _0x516c44;}return(_0x516c44==null?void 0x0:_0x516c44[_0x2092e2(0x305)])==='conditional'&&Array[_0x2092e2(0x31e)](_0x516c44['rules'])?{'type':'conditional','rules':_0x516c44[_0x2092e2(0x2e0)][_0x2092e2(0x32f)](_0x1464ba=>!!_0x18b904[_0x2092e2(0x503)][_0x1464ba[_0x2092e2(0x4a1)]])}:(_0x516c44==null?void 0x0:_0x516c44[_0x2092e2(0x305)])===_0x2092e2(0x3f1)&&typeof _0x516c44[_0x2092e2(0x3be)]=='string'&&_0x516c44['color'][_0x2092e2(0x3a5)]()?{'type':_0x2092e2(0x3f1),'color':_0x516c44['color']}:{'type':'custom','color':_0x2092e2(0x3ad)};}[_0x5daf81(0x43c)](_0x1a5c68,_0x3a5d29,_0x5c7bbe){const _0x1e6554=_0x5daf81;let _0x56d49c=_0x5c7bbe[_0x1e6554(0x4c6)];if((_0x56d49c==null?void 0x0:_0x56d49c[_0x1e6554(0x305)])===_0x1e6554(0x454)){let _0x125d75=_0x56d49c[_0x1e6554(0x2e0)][_0x1e6554(0x2d8)](_0x57b285=>this[_0x1e6554(0x237)](_0x1a5c68,_0x3a5d29,_0x57b285));if(_0x125d75)return _0x125d75[_0x1e6554(0x3be)];}if((_0x56d49c==null?void 0x0:_0x56d49c[_0x1e6554(0x305)])===_0x1e6554(0x54d)){let _0x5680f4=_0x1a5c68[_0x1e6554(0x503)][_0x56d49c[_0x1e6554(0x4a1)]];if(_0x5680f4){var _0xba9d9e;let _0x10b930=_0x3a5d29[_0x1e6554(0x45b)][_0x56d49c[_0x1e6554(0x4a1)]],_0x5b93cd=Array[_0x1e6554(0x31e)](_0x10b930)?_0x10b930[0x0]:_0x10b930,_0x47a891=_0x5b93cd==null||(_0xba9d9e=Li(_0x5680f4,String(_0x5b93cd)))==null?void 0x0:_0xba9d9e['color'];if(_0x47a891)return _0x47a891;}}return(_0x56d49c==null?void 0x0:_0x56d49c['type'])===_0x1e6554(0x3f1)?_0x56d49c[_0x1e6554(0x3be)]:_0x1e6554(0x3ad);}['_matchesGanttColorRule'](_0x136cb8,_0x59e8e3,_0x56f56e){const _0x2a288b=_0x5daf81;let _0x546955=_0x136cb8[_0x2a288b(0x503)][_0x56f56e['fieldId']];return _0x546955?xn(_0x59e8e3[_0x2a288b(0x45b)][_0x546955['id']],_0x56f56e['operator'],_0x56f56e[_0x2a288b(0x30b)],_0x546955,{'dateMode':_0x56f56e['dateMode']}):!0x1;}['_buildGallery'](_0x338efe,_0x20002c){const _0x3c0ab4=_0x5daf81;let _0x56bb82=this['_projectRows'](_0x338efe,_0x20002c),_0x40c120=this[_0x3c0ab4(0x38a)](_0x338efe,_0x20002c[_0x3c0ab4(0x396)]??{}),_0x341070=this[_0x3c0ab4(0x2b3)](_0x338efe,_0x20002c);return{'type':_0x168289[_0x3c0ab4(0x493)],'fields':_0x341070,'rows':_0x56bb82,'groups':this['_projectGroups'](_0x338efe,_0x20002c,_0x56bb82),'titleFieldId':_0x40c120[_0x3c0ab4(0x24b)]['titleFieldId'],'coverFieldId':_0x40c120[_0x3c0ab4(0x225)],'cardLayout':_0x40c120[_0x3c0ab4(0x3e7)]??_0x3c0ab4(0x441),'showFieldNames':_0x40c120[_0x3c0ab4(0x507)]!==!0x1,'visibleCardFieldIds':this[_0x3c0ab4(0x2d7)](_0x338efe,_0x20002c,_0x40c120),'cardSize':_0x40c120[_0x3c0ab4(0x534)]??_0x3c0ab4(0x4be),'cards':_0x56bb82[_0x3c0ab4(0x2b0)](_0x4c6bdc=>({'recordId':_0x4c6bdc[_0x3c0ab4(0x1c6)],'title':this[_0x3c0ab4(0x1c7)](_0x338efe,_0x4c6bdc,_0x40c120[_0x3c0ab4(0x24b)][_0x3c0ab4(0x478)]),'values':_0x4c6bdc[_0x3c0ab4(0x45b)]}))};}[_0x5daf81(0x38a)](_0x12da9a,_0x155954){const _0x4eee78=_0x5daf81;let _0x4e64f2=_0x155954[_0x4eee78(0x24b)]??{'fieldIds':[]},_0x5344ed=this[_0x4eee78(0x4c7)](_0x12da9a,_0x4e64f2[_0x4eee78(0x478)]),_0x10d888=this[_0x4eee78(0x365)](_0x12da9a,_0x155954),_0x510d60=_0x155954[_0x4eee78(0x534)]==='small'||_0x155954[_0x4eee78(0x534)]==='large'?_0x155954[_0x4eee78(0x534)]:_0x4eee78(0x4be);return{..._0x155954,'coverFieldId':_0x10d888,'cardLayout':_0x155954[_0x4eee78(0x3e7)]==='compose'?'compose':_0x4eee78(0x441),'showFieldNames':_0x155954[_0x4eee78(0x507)]!==!0x1,'fieldSettings':Object['fromEntries'](Object['entries'](_0x155954['fieldSettings']??{})['filter'](([_0x22fc21])=>{const _0x2f0444=_0x4eee78;let _0x127e2a=_0x12da9a['fields'][_0x22fc21];return!!(_0x127e2a&&_0x127e2a[_0x2f0444(0x3db)]!==!0x0&&_0x127e2a[_0x2f0444(0x305)]!==_0x618ba['RecordId']);})),'card':{..._0x4e64f2,'titleFieldId':_0x5344ed,'coverFieldId':_0x10d888,'fieldIds':Array[_0x4eee78(0x31e)](_0x4e64f2[_0x4eee78(0x209)])?_0x4e64f2[_0x4eee78(0x209)]:[]},'cardSize':_0x510d60};}[_0x5daf81(0x4c7)](_0xb93927,_0x1f016a){const _0x178c09=_0x5daf81;let _0x443038=_0x1f016a?_0xb93927[_0x178c09(0x503)][_0x1f016a]:void 0x0;return _0x443038&&_0x443038['system']!==!0x0&&_0x443038[_0x178c09(0x305)]!==_0x618ba[_0x178c09(0x28f)]?_0x443038['id']:Zr(_0xb93927);}[_0x5daf81(0x365)](_0xf8ffe7,_0x5352ea){const _0x348477=_0x5daf81;var _0x37c612;let _0x439a70=_0x5352ea[_0x348477(0x225)]??((_0x37c612=_0x5352ea['card'])==null?void 0x0:_0x37c612[_0x348477(0x225)])??null;if(!_0x439a70)return null;let _0x2d2366=_0xf8ffe7[_0x348477(0x503)][_0x439a70];return _0x2d2366&&this[_0x348477(0x308)](_0x2d2366)[_0x348477(0x294)]?_0x2d2366['id']:null;}[_0x5daf81(0x2d7)](_0x23e70d,_0x4d64da,_0x44280e){const _0x3eb132=_0x5daf81;var _0x2d9198,_0x25ee27,_0x472661;let _0x52e931=_0x44280e[_0x3eb132(0x508)]??{},_0x3da9b5=((_0x2d9198=_0x44280e[_0x3eb132(0x24b)])==null?void 0x0:_0x2d9198[_0x3eb132(0x478)])??Zr(_0x23e70d),_0x6df08f=_0x44280e['coverFieldId']??((_0x25ee27=_0x44280e['card'])==null?void 0x0:_0x25ee27[_0x3eb132(0x225)])??null,_0x4d5e37=(_0x472661=_0x44280e['card'])!=null&&(_0x472661=_0x472661[_0x3eb132(0x209)])!=null&&_0x472661[_0x3eb132(0x21d)]?_0x44280e[_0x3eb132(0x24b)]['fieldIds']:Qr(_0x23e70d,[_0x3da9b5,_0x6df08f,_0x23e70d[_0x3eb132(0x51f)]]);return _0x4d5e37['filter'](_0x5ea334=>{const _0x48e512=_0x3eb132;var _0x5049fd,_0x4973cf;let _0x10b1e8=_0x23e70d[_0x48e512(0x503)][_0x5ea334];return!(!_0x10b1e8||_0x10b1e8[_0x48e512(0x3db)]===!0x0||_0x10b1e8['type']===_0x618ba[_0x48e512(0x28f)]||_0x10b1e8['id']===_0x3da9b5||_0x10b1e8['id']===_0x6df08f||(_0x5049fd=_0x4d64da['fieldSettings'])!=null&&(_0x5049fd=_0x5049fd[_0x5ea334])!=null&&_0x5049fd[_0x48e512(0x219)]||(_0x4973cf=_0x52e931[_0x5ea334])!=null&&_0x4973cf[_0x48e512(0x219)]);})[_0x3eb132(0x3c5)]((_0x5e00b9,_0x327336)=>{const _0x5be562=_0x3eb132;var _0x1d85c5,_0x3ae8cf;return(((_0x1d85c5=_0x52e931[_0x5e00b9])==null?void 0x0:_0x1d85c5['order'])??_0x4d5e37[_0x5be562(0x25c)](_0x5e00b9))-(((_0x3ae8cf=_0x52e931[_0x327336])==null?void 0x0:_0x3ae8cf[_0x5be562(0x33a)])??_0x4d5e37[_0x5be562(0x25c)](_0x327336));});}['_projectFields'](_0x11656b,_0x113fdf){const _0x4fa838=_0x5daf81;var _0x348614;return((_0x348614=_0x113fdf[_0x4fa838(0x1d6)])!=null&&_0x348614['length']?_0x113fdf['fieldOrder']:_0x11656b[_0x4fa838(0x1d6)])[_0x4fa838(0x36c)](_0x2deb85=>{const _0x2dd935=_0x4fa838;var _0x302b83;let _0xd2c0a7=_0x11656b[_0x2dd935(0x503)][_0x2deb85],_0x244ad8=((_0x302b83=_0x113fdf[_0x2dd935(0x508)])==null?void 0x0:_0x302b83[_0x2deb85])??{};return!_0xd2c0a7||_0xd2c0a7[_0x2dd935(0x3db)]===!0x0||_0xd2c0a7[_0x2dd935(0x305)]===_0x618ba[_0x2dd935(0x28f)]||_0x244ad8['hidden']?[]:[{'id':_0xd2c0a7['id'],'name':_0xd2c0a7['name'],'description':_0xd2c0a7[_0x2dd935(0x4e0)],'type':_0xd2c0a7[_0x2dd935(0x305)],'config':_0xd2c0a7[_0x2dd935(0x396)],'width':_0x244ad8[_0x2dd935(0x346)],'setting':_0x244ad8}];});}[_0x5daf81(0x353)](_0x2d7c46,_0x6b8cde){const _0x26f073=_0x5daf81;var _0x10b254;return I('BaseProjection.projectRows',()=>{const _0x1e4575=_0x188f;var _0x3128c2,_0x497eb1;let _0x121e7c=this['_projectTableRows'](_0x2d7c46),_0x342f6c=this[_0x1e4575(0x206)](_0x2d7c46['id'],_0x6b8cde),_0x224f76=this[_0x1e4575(0x215)](_0x2d7c46['id']),_0x2d89eb=this[_0x1e4575(0x3f9)][_0x1e4575(0x315)](_0x342f6c);if(_0x2d89eb&&_0x2d89eb[_0x1e4575(0x4c1)]===this[_0x1e4575(0x531)]&&_0x2d89eb['tableRevision']===this['_getTableRevision'](_0x2d7c46['id'])){if(_0x2d89eb[_0x1e4575(0x474)]===_0x224f76&&_0x2d89eb[_0x1e4575(0x487)]===_0x121e7c)return _0x2d89eb['rows'];if(_0x2d89eb['cellRevision']!==_0x224f76&&!this[_0x1e4575(0x220)](_0x2d7c46['id'],_0x2d89eb[_0x1e4575(0x474)],_0x224f76,this[_0x1e4575(0x4a2)](_0x6b8cde))){let _0x4e2d93=_0x2d89eb[_0x1e4575(0x372)]===_0x2d89eb['baseRows']?_0x121e7c:this['_patchCachedProjectedRows'](_0x2d89eb[_0x1e4575(0x372)],_0x121e7c);if(_0x4e2d93)return this['_projectedViewRowsCache']['set'](_0x342f6c,{..._0x2d89eb,'rows':_0x4e2d93,'baseRows':_0x121e7c,'cellRevision':_0x224f76}),_0x4e2d93;}}let _0x4d431e=I(_0x1e4575(0x1c0),()=>this[_0x1e4575(0x207)](_0x2d7c46,_0x6b8cde,this[_0x1e4575(0x4eb)](_0x2d7c46,_0x6b8cde,_0x121e7c)),{'tableId':_0x2d7c46['id'],'viewId':_0x6b8cde==null?void 0x0:_0x6b8cde['id'],'viewType':_0x6b8cde==null?void 0x0:_0x6b8cde[_0x1e4575(0x305)],'rows':_0x121e7c[_0x1e4575(0x21d)],'filters':(_0x6b8cde==null||(_0x3128c2=_0x6b8cde[_0x1e4575(0x32f)])==null?void 0x0:_0x3128c2[_0x1e4575(0x245)]['length'])??0x0,'sorts':(_0x6b8cde==null||(_0x497eb1=_0x6b8cde['sort'])==null?void 0x0:_0x497eb1[_0x1e4575(0x21d)])??0x0});return this[_0x1e4575(0x3f9)][_0x1e4575(0x1ba)](_0x342f6c,{'table':_0x2d7c46,'rows':_0x4d431e,'baseRows':_0x121e7c,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x1e4575(0x541)](_0x2d7c46['id']),'cellRevision':_0x224f76}),_0x4d431e;},{'tableId':_0x2d7c46['id'],'viewId':_0x6b8cde==null?void 0x0:_0x6b8cde['id'],'viewType':_0x6b8cde==null?void 0x0:_0x6b8cde[_0x26f073(0x305)],'records':((_0x10b254=_0x2d7c46['recordOrder'])==null?void 0x0:_0x10b254[_0x26f073(0x21d)])??Object[_0x26f073(0x46f)](_0x2d7c46['records']??{})[_0x26f073(0x21d)]});}['_projectTableRows'](_0x3e4ea4){const _0x4a87f2=_0x5daf81;var _0x443367;return I('BaseProjection.projectTableRows',()=>{const _0x2fe73f=_0x188f;var _0x1876d5;let _0x2da8bd=this['_getCellRevision'](_0x3e4ea4['id']),_0x59cd11=this['_projectedRowsCache'][_0x2fe73f(0x315)](_0x3e4ea4['id']);if(_0x59cd11&&_0x59cd11[_0x2fe73f(0x4c1)]===this['_globalRevision']&&_0x59cd11[_0x2fe73f(0x234)]===this['_getTableRevision'](_0x3e4ea4['id'])){if(_0x59cd11[_0x2fe73f(0x474)]===_0x2da8bd&&fi(_0x59cd11[_0x2fe73f(0x524)],_0x3e4ea4))return _0x59cd11[_0x2fe73f(0x524)]=_0x3e4ea4,_0x59cd11['rows'];let _0x4b184e=this[_0x2fe73f(0x4e9)](_0x3e4ea4,_0x59cd11,_0x2da8bd);if(_0x4b184e)return _0x4b184e;}ui(_0x3e4ea4)||L(_0x3e4ea4);let _0x35bec3=(_0x1876d5=_0x3e4ea4[_0x2fe73f(0x3da)])!=null&&_0x1876d5[_0x2fe73f(0x21d)]?_0x3e4ea4[_0x2fe73f(0x3da)]:hi(_0x3e4ea4['records']),_0x3b5986=I(_0x2fe73f(0x212),()=>{const _0x2792b8=_0x2fe73f;let _0x183e70=[];for(let _0x5b7461 of _0x35bec3){let _0x5d6b5b=_0x3e4ea4[_0x2792b8(0x43a)][_0x5b7461];if(!_0x5d6b5b)continue;let _0x5ec9c9={};for(let _0xd57b75 of _0x3e4ea4[_0x2792b8(0x1d6)])_0x5ec9c9[_0xd57b75]=yt(_0x3e4ea4,_0x5d6b5b['id'],_0xd57b75);_0x183e70['push']({'recordId':_0x5d6b5b['id'],'values':_0x5ec9c9});}return _0x183e70;},{'tableId':_0x3e4ea4['id'],'records':_0x35bec3[_0x2fe73f(0x21d)],'fields':_0x3e4ea4['fieldOrder'][_0x2fe73f(0x21d)]});return this[_0x2fe73f(0x38b)][_0x2fe73f(0x1ba)](_0x3e4ea4['id'],{'table':_0x3e4ea4,'rows':_0x3b5986,'rowIndexById':li(_0x3b5986),'globalRevision':this[_0x2fe73f(0x531)],'tableRevision':this[_0x2fe73f(0x541)](_0x3e4ea4['id']),'cellRevision':_0x2da8bd}),_0x3b5986;},{'tableId':_0x3e4ea4['id'],'records':((_0x443367=_0x3e4ea4[_0x4a87f2(0x3da)])==null?void 0x0:_0x443367['length'])??Object['keys'](_0x3e4ea4[_0x4a87f2(0x43a)]??{})[_0x4a87f2(0x21d)],'fields':_0x3e4ea4['fieldOrder'][_0x4a87f2(0x21d)]});}[_0x5daf81(0x4e9)](_0x400494,_0x4c4ba7,_0x551c7c){const _0x526d7d=_0x5daf81;let _0x3478d6=(this[_0x526d7d(0x235)][_0x526d7d(0x315)](_0x400494['id'])??[])[_0x526d7d(0x32f)](_0x154396=>_0x154396[_0x526d7d(0x1c3)]>_0x4c4ba7[_0x526d7d(0x474)]&&_0x154396['revision']<=_0x551c7c);if(!_0x3478d6['length'])return _0x4c4ba7['table']===_0x400494?_0x4c4ba7[_0x526d7d(0x372)]:null;let _0x28f517=_0x4c4ba7['rows'],_0x13bf10=new Map();for(let _0x5ed11e of _0x3478d6){let _0x30d03c=_0x13bf10[_0x526d7d(0x315)](_0x5ed11e[_0x526d7d(0x1c6)]);_0x30d03c||(_0x30d03c=new Set(),_0x13bf10[_0x526d7d(0x1ba)](_0x5ed11e[_0x526d7d(0x1c6)],_0x30d03c)),_0x30d03c[_0x526d7d(0x4ee)](_0x5ed11e[_0x526d7d(0x4a1)]);}for(let [_0x11b298,_0x2aebd2]of _0x13bf10){if(!_0x400494['records'][_0x11b298])return null;let _0x300d21=_0x4c4ba7[_0x526d7d(0x281)][_0x526d7d(0x315)](_0x11b298);if(_0x300d21==null)return null;_0x28f517===_0x4c4ba7[_0x526d7d(0x372)]&&(_0x28f517=[..._0x4c4ba7[_0x526d7d(0x372)]]);let _0x5cef9e=_0x28f517[_0x300d21],_0x4937cc={..._0x5cef9e[_0x526d7d(0x45b)]};_0x2aebd2[_0x526d7d(0x429)](_0x2860a9=>{_0x4937cc[_0x2860a9]=yt(_0x400494,_0x11b298,_0x2860a9);}),_0x28f517[_0x300d21]={..._0x5cef9e,'values':_0x4937cc};}let _0x4026de={'table':_0x400494,'rows':_0x28f517,'rowIndexById':_0x4c4ba7[_0x526d7d(0x281)],'globalRevision':this[_0x526d7d(0x531)],'tableRevision':this[_0x526d7d(0x541)](_0x400494['id']),'cellRevision':_0x551c7c};return this[_0x526d7d(0x38b)]['set'](_0x400494['id'],_0x4026de),this[_0x526d7d(0x235)][_0x526d7d(0x1ba)](_0x400494['id'],(this['_cellInvalidations']['get'](_0x400494['id'])??[])[_0x526d7d(0x32f)](_0x3343a9=>_0x3343a9['revision']>Math['max'](0x0,_0x551c7c-0x100))),_0x28f517;}[_0x5daf81(0x1bf)](_0x15940e,_0x2c0c50){const _0x3e941b=_0x5daf81;let _0x528ee4=new Map(_0x2c0c50[_0x3e941b(0x2b0)](_0x5e8719=>[_0x5e8719[_0x3e941b(0x1c6)],_0x5e8719])),_0x1c2bc=!0x1,_0x38b21d=_0x15940e[_0x3e941b(0x2b0)](_0x25c1b0=>{const _0x862381=_0x3e941b;let _0x116f25=_0x528ee4[_0x862381(0x315)](_0x25c1b0[_0x862381(0x1c6)]);return _0x116f25?_0x116f25===_0x25c1b0?_0x25c1b0:(_0x1c2bc=!0x0,_0x116f25):_0x25c1b0;});return _0x1c2bc?_0x38b21d:_0x15940e;}['_cellInvalidationsTouchFields'](_0x40bc42,_0x5c9456,_0x44e16b,_0x4004b5){const _0x5aaf16=_0x5daf81;return!_0x4004b5['size']||_0x5c9456===_0x44e16b?!0x1:_0x44e16b-_0x5c9456>0x100||(this[_0x5aaf16(0x235)]['get'](_0x40bc42)??[])[_0x5aaf16(0x387)](_0x11cfce=>_0x11cfce[_0x5aaf16(0x1c3)]>_0x5c9456&&_0x11cfce['revision']<=_0x44e16b&&_0x4004b5[_0x5aaf16(0x253)](_0x11cfce['fieldId']));}['_filterSortFieldIds'](_0x54def7){const _0x5bb7c6=_0x5daf81;var _0x1a55eb,_0xb11178;let _0x524057=new Set();return _0x54def7==null||(_0x1a55eb=_0x54def7[_0x5bb7c6(0x32f)])==null||_0x1a55eb[_0x5bb7c6(0x245)][_0x5bb7c6(0x429)](_0x7dc302=>_0x524057[_0x5bb7c6(0x4ee)](_0x7dc302['fieldId'])),_0x54def7==null||(_0xb11178=_0x54def7[_0x5bb7c6(0x3c5)])==null||_0xb11178[_0x5bb7c6(0x429)](_0x4df97b=>_0x524057[_0x5bb7c6(0x4ee)](_0x4df97b[_0x5bb7c6(0x4a1)])),_0x524057;}[_0x5daf81(0x50c)](_0x32bb50){const _0x379cad=_0x5daf81;var _0x36cb6b;let _0x1740df=this[_0x379cad(0x4a2)](_0x32bb50);return(_0x36cb6b=_0x32bb50[_0x379cad(0x3e9)])==null||_0x36cb6b[_0x379cad(0x429)](_0x19be1c=>_0x1740df[_0x379cad(0x4ee)](_0x19be1c['fieldId'])),_0x1740df;}['_filterRows'](_0x21ce68,_0x5633b0,_0x13aaf3){const _0x2a5576=_0x5daf81;let _0x2897c4=_0x5633b0==null?void 0x0:_0x5633b0[_0x2a5576(0x32f)];if(!(_0x2897c4!=null&&_0x2897c4[_0x2a5576(0x245)][_0x2a5576(0x21d)]))return _0x13aaf3;let _0x268a0f=_0x2897c4[_0x2a5576(0x245)][_0x2a5576(0x32f)](_0x1b266a=>!Ii(_0x1b266a));return _0x268a0f['length']?_0x13aaf3['filter'](_0x4cab92=>{const _0x26cade=_0x2a5576;if(_0x2897c4[_0x26cade(0x437)]===_0x4967ae['OR']){for(let _0x59bfa9 of _0x268a0f){let _0x287cf8=_0x21ce68[_0x26cade(0x503)][_0x59bfa9[_0x26cade(0x4a1)]];if(!_0x287cf8||this[_0x26cade(0x47d)][_0x26cade(0x315)](_0x287cf8[_0x26cade(0x305)])[_0x26cade(0x32f)](_0x4cab92[_0x26cade(0x45b)][_0x287cf8['id']],_0x59bfa9[_0x26cade(0x246)],_0x59bfa9['operand'],_0x287cf8))return!0x0;}return!0x1;}for(let _0x2fcb73 of _0x268a0f){let _0x2dd0c4=_0x21ce68[_0x26cade(0x503)][_0x2fcb73[_0x26cade(0x4a1)]];if(_0x2dd0c4&&!this['_fieldRegistry'][_0x26cade(0x315)](_0x2dd0c4[_0x26cade(0x305)])[_0x26cade(0x32f)](_0x4cab92[_0x26cade(0x45b)][_0x2dd0c4['id']],_0x2fcb73['operator'],_0x2fcb73['operand'],_0x2dd0c4))return!0x1;}return!0x0;}):_0x13aaf3;}[_0x5daf81(0x207)](_0x192f37,_0x51ccce,_0x3ba131){const _0x8ba35b=_0x5daf81;let _0x2b8c6c=(_0x51ccce==null?void 0x0:_0x51ccce['sort'])??[];if(!_0x2b8c6c[_0x8ba35b(0x21d)])return _0x3ba131;let _0xfd8a85=_0x2b8c6c[_0x8ba35b(0x36c)](_0x576a63=>{const _0x450e6f=_0x8ba35b;let _0x2dca26=_0x192f37[_0x450e6f(0x503)][_0x576a63[_0x450e6f(0x4a1)]];return _0x2dca26?[{..._0x576a63,'field':_0x2dca26}]:[];});return _0xfd8a85[_0x8ba35b(0x21d)]?this['_canUseFastSort'](_0xfd8a85)?this[_0x8ba35b(0x36a)](_0xfd8a85,_0x3ba131):[..._0x3ba131][_0x8ba35b(0x3c5)]((_0x2f1cec,_0xa47e69)=>{const _0x3c153d=_0x8ba35b;for(let _0x513f9b of _0xfd8a85){let _0xc2111e=_0x513f9b['field'],_0x31bb37=this[_0x3c153d(0x47d)][_0x3c153d(0x315)](_0xc2111e[_0x3c153d(0x305)])[_0x3c153d(0x236)](_0x2f1cec[_0x3c153d(0x45b)][_0xc2111e['id']],_0xa47e69[_0x3c153d(0x45b)][_0xc2111e['id']],_0xc2111e);if(_0x31bb37!==0x0)return _0x513f9b[_0x3c153d(0x320)]===_0x43615e['DESC']?-_0x31bb37:_0x31bb37;}return 0x0;}):_0x3ba131;}['_canUseFastSort'](_0x470c36){const _0x27d4ef=_0x5daf81;return _0x470c36[_0x27d4ef(0x2ab)](_0x2d217f=>ai['has'](_0x2d217f[_0x27d4ef(0x50a)][_0x27d4ef(0x305)]));}[_0x5daf81(0x36a)](_0x3d300e,_0x2fda6a){const _0x2d5d29=_0x5daf81;return _0x2fda6a[_0x2d5d29(0x2b0)]((_0x34c494,_0x15e23d)=>({'row':_0x34c494,'index':_0x15e23d,'keys':_0x3d300e[_0x2d5d29(0x2b0)](_0x20230a=>_0x34c494[_0x2d5d29(0x45b)][_0x20230a[_0x2d5d29(0x4a1)]])}))[_0x2d5d29(0x3c5)]((_0x401fae,_0x7d3f1b)=>{const _0x5e81f3=_0x2d5d29;for(let _0x5f5bcd=0x0;_0x5f5bcd<_0x3d300e[_0x5e81f3(0x21d)];_0x5f5bcd++){let _0x4c8f3e=Fi(_0x401fae[_0x5e81f3(0x46f)][_0x5f5bcd],_0x7d3f1b['keys'][_0x5f5bcd]);if(_0x4c8f3e!==0x0)return _0x3d300e[_0x5f5bcd][_0x5e81f3(0x320)]===_0x43615e['DESC']?-_0x4c8f3e:_0x4c8f3e;}return _0x401fae[_0x5e81f3(0x391)]-_0x7d3f1b[_0x5e81f3(0x391)];})[_0x2d5d29(0x2b0)](_0x59e822=>_0x59e822[_0x2d5d29(0x406)]);}['_projectGroups'](_0x106e73,_0x479a26,_0x6c8611){const _0x5103de=_0x5daf81;var _0x3138fd;return I(_0x5103de(0x3ac),()=>{const _0x41d796=_0x5103de;var _0x15eb91;if(!((_0x15eb91=_0x479a26[_0x41d796(0x3e9)])!=null&&_0x15eb91[_0x41d796(0x21d)]))return[];let _0x161bae=_0x479a26[_0x41d796(0x3e9)]['filter'](_0x5930db=>_0x106e73['fields'][_0x5930db[_0x41d796(0x4a1)]]);if(!_0x161bae[_0x41d796(0x21d)])return[];let _0x3a1069=this[_0x41d796(0x4f0)](_0x106e73['id'],_0x479a26,_0x161bae),_0x56a97d=this['_getCellRevision'](_0x106e73['id']),_0x20157f=this['_projectedGroupsCache'][_0x41d796(0x315)](_0x3a1069);if(_0x20157f&&_0x20157f[_0x41d796(0x4c1)]===this['_globalRevision']&&_0x20157f[_0x41d796(0x234)]===this[_0x41d796(0x541)](_0x106e73['id'])){if(_0x20157f[_0x41d796(0x474)]===_0x56a97d&&_0x20157f['rows']===_0x6c8611)return _0x20157f[_0x41d796(0x21e)];if(_0x20157f[_0x41d796(0x474)]!==_0x56a97d&&!this['_cellInvalidationsTouchFields'](_0x106e73['id'],_0x20157f[_0x41d796(0x474)],_0x56a97d,this[_0x41d796(0x50c)](_0x479a26)))return this['_projectedGroupsCache']['set'](_0x3a1069,{..._0x20157f,'rows':_0x6c8611,'cellRevision':_0x56a97d}),_0x20157f['groups'];}let _0x538922=new Map();for(let _0x19ab75 of _0x6c8611){let _0x53388a=_0x538922,_0x311b0e='';for(let _0x275cbe=0x0;_0x275cbe<_0x161bae['length'];_0x275cbe++){let _0x132026=_0x161bae[_0x275cbe],_0x28484d=_0x19ab75['values'][_0x132026['fieldId']],_0xc6391d=ci(_0x28484d),_0x4a4d8d=_0x132026[_0x41d796(0x4a1)]+'\x00'+_0xc6391d,_0x338c61=_0x311b0e+'/'+_0x132026[_0x41d796(0x4a1)]+':'+_0xc6391d,_0x2539e8=_0x53388a['get'](_0x4a4d8d);_0x2539e8||(_0x2539e8={'key':_0xc6391d,'value':_0x28484d,'path':_0x338c61,'label':_0xc6391d||_0x41d796(0x289),'fieldId':_0x132026['fieldId'],'level':_0x275cbe,'recordIds':[],'children':new Map()},_0x53388a[_0x41d796(0x1ba)](_0x4a4d8d,_0x2539e8)),_0x2539e8['recordIds'][_0x41d796(0x482)](_0x19ab75[_0x41d796(0x1c6)]),_0x53388a=_0x2539e8[_0x41d796(0x2c9)],_0x311b0e=_0x338c61;}}let _0xed624b=this['_materializeGroups'](_0x161bae,_0x538922,0x0);return this['_projectedGroupsCache']['set'](_0x3a1069,{'table':_0x106e73,'rows':_0x6c8611,'groups':_0xed624b,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x41d796(0x541)](_0x106e73['id']),'cellRevision':_0x56a97d}),_0xed624b;},{'tableId':_0x106e73['id'],'viewId':_0x479a26['id'],'viewType':_0x479a26[_0x5103de(0x305)],'rows':_0x6c8611[_0x5103de(0x21d)],'groupFields':((_0x3138fd=_0x479a26[_0x5103de(0x3e9)])==null?void 0x0:_0x3138fd['length'])??0x0});}[_0x5daf81(0x262)](_0x55d317,_0x26feed,_0x1a8389){const _0x4f3a9c=_0x5daf81;var _0x3b0269;let _0x2a59be=Array['from'](_0x26feed[_0x4f3a9c(0x45b)]()),_0xda060c=(_0x3b0269=_0x55d317[_0x1a8389])==null?void 0x0:_0x3b0269[_0x4f3a9c(0x320)];return _0xda060c&&_0x2a59be[_0x4f3a9c(0x3c5)]((_0x1259de,_0x183dd2)=>{const _0x74c529=_0x4f3a9c;let _0x12bb55=_0x1259de[_0x74c529(0x2d4)][_0x74c529(0x202)](_0x183dd2[_0x74c529(0x2d4)]);return _0xda060c===_0x43615e['DESC']?-_0x12bb55:_0x12bb55;}),_0x2a59be['map'](_0x18779e=>({'key':_0x18779e['key'],'value':_0x18779e[_0x4f3a9c(0x3fd)],'path':_0x18779e[_0x4f3a9c(0x25e)],'label':_0x18779e[_0x4f3a9c(0x20b)],'fieldId':_0x18779e['fieldId'],'level':_0x18779e[_0x4f3a9c(0x22e)],'recordIds':_0x18779e[_0x4f3a9c(0x3d8)],'children':this[_0x4f3a9c(0x262)](_0x55d317,_0x18779e[_0x4f3a9c(0x2c9)],_0x1a8389+0x1)}));}[_0x5daf81(0x1c7)](_0x53d3e5,_0x3d8414,_0x4c740f){const _0x5cf960=_0x5daf81;let _0x387520=_0x4c740f??_0x53d3e5[_0x5cf960(0x51f)],_0x125f4a=_0x3d8414[_0x5cf960(0x45b)][_0x387520];return _0x125f4a==null?'':String(_0x125f4a);}[_0x5daf81(0x4ef)](_0x2d7e81){const _0x1f012f=_0x5daf81;if(Array[_0x1f012f(0x31e)](_0x2d7e81))return _0x2d7e81[_0x1f012f(0x2b0)](String);if(typeof _0x2d7e81=='string'&&_0x2d7e81)return[_0x2d7e81];}['_capabilities'](_0x26cd3e){const _0x2ff821=_0x5daf81;return this[_0x2ff821(0x47d)]['get'](_0x26cd3e['type'])[_0x2ff821(0x4a4)](_0x26cd3e);}};si=X([Y(0x0,_0x477fb0(mr))],si);function ci(_0x161bd6){return _0x161bd6==null?'':String(_0x161bd6);}function li(_0x2922dc){const _0x5118c9=_0x5daf81;return new Map(_0x2922dc[_0x5118c9(0x2b0)]((_0x2fc111,_0x49b246)=>[_0x2fc111[_0x5118c9(0x1c6)],_0x49b246]));}function ui(_0x34f2af){const _0x466adc=_0x5daf81;return!!(Array[_0x466adc(0x31e)](_0x34f2af[_0x466adc(0x3da)])&&_0x34f2af[_0x466adc(0x2c4)]&&_0x34f2af[_0x466adc(0x1ec)]&&_0x34f2af[_0x466adc(0x3b9)]&&_0x34f2af[_0x466adc(0x33c)]&&_0x34f2af[_0x466adc(0x1d3)]);}function di(_0x28fe53){const _0x577068=_0x5daf81;let _0x155f0f=(_0x28fe53==null?void 0x0:_0x28fe53[_0x577068(0x245)][_0x577068(0x32f)](_0x55f89d=>!Ii(_0x55f89d)))??[];return!_0x28fe53||!_0x155f0f[_0x577068(0x21d)]?null:{'conjunction':_0x28fe53['conjunction'],'conditions':_0x155f0f[_0x577068(0x2b0)](_0x10472c=>({'fieldId':_0x10472c[_0x577068(0x4a1)],'operator':_0x10472c[_0x577068(0x246)],'operand':_0x10472c[_0x577068(0x30b)]}))};}function fi(_0x2ab391,_0x5ce1b0){const _0x2764e6=_0x5daf81;return _0x2ab391['records']===_0x5ce1b0['records']&&_0x2ab391[_0x2764e6(0x3da)]===_0x5ce1b0[_0x2764e6(0x3da)]&&_0x2ab391[_0x2764e6(0x503)]===_0x5ce1b0['fields']&&_0x2ab391[_0x2764e6(0x1d6)]===_0x5ce1b0['fieldOrder']&&_0x2ab391[_0x2764e6(0x1d3)]===_0x5ce1b0[_0x2764e6(0x1d3)]&&_0x2ab391[_0x2764e6(0x2c4)]===_0x5ce1b0[_0x2764e6(0x2c4)]&&_0x2ab391[_0x2764e6(0x1ec)]===_0x5ce1b0[_0x2764e6(0x1ec)]&&_0x2ab391[_0x2764e6(0x3b9)]===_0x5ce1b0[_0x2764e6(0x3b9)]&&_0x2ab391[_0x2764e6(0x33c)]===_0x5ce1b0[_0x2764e6(0x33c)];}function pi(_0x5dc423){const _0x6d7420=_0x5daf81;return _0x5dc423!=null&&_0x5dc423[_0x6d7420(0x21d)]?_0x5dc423[_0x6d7420(0x2b0)](_0x45dcd6=>({'fieldId':_0x45dcd6['fieldId'],'direction':_0x45dcd6['direction']})):null;}function mi(_0x3dbc61){const _0x2a5ea7=_0x5daf81;if(typeof _0x3dbc61!=_0x2a5ea7(0x1fb)||!_0x3dbc61)return JSON[_0x2a5ea7(0x439)](_0x3dbc61)??_0x2a5ea7(0x26a);if(Array[_0x2a5ea7(0x31e)](_0x3dbc61))return'['+_0x3dbc61[_0x2a5ea7(0x2b0)](mi)[_0x2a5ea7(0x30a)](',')+']';let _0x28934d=_0x3dbc61;return'{'+Object[_0x2a5ea7(0x46f)](_0x28934d)[_0x2a5ea7(0x3c5)]()[_0x2a5ea7(0x2b0)](_0x2594c6=>JSON['stringify'](_0x2594c6)+':'+mi(_0x28934d[_0x2594c6]))[_0x2a5ea7(0x30a)](',')+'}';}function hi(_0xd51ab0){const _0x5a4f94=_0x5daf81;let _0x6731a7=Object['values'](_0xd51ab0)[_0x5a4f94(0x3c5)]((_0x315568,_0x4c648f)=>_0x315568[_0x5a4f94(0x2a2)][_0x5a4f94(0x202)](_0x4c648f[_0x5a4f94(0x2a2)])),_0x540abc=[];for(let _0x5e1497 of _0x6731a7)_0x540abc[_0x5a4f94(0x482)](_0x5e1497['id']);return _0x540abc;}function gi(_0x3a3b58){const _0x4c9944=_0x5daf81;return{'weekdays':Array[_0x4c9944(0x31e)](_0x3a3b58==null?void 0x0:_0x3a3b58[_0x4c9944(0x479)])&&_0x3a3b58[_0x4c9944(0x479)][_0x4c9944(0x21d)]?[...new Set(_0x3a3b58['weekdays'][_0x4c9944(0x32f)](_0x547bc6=>Number[_0x4c9944(0x317)](_0x547bc6)&&_0x547bc6>=0x1&&_0x547bc6<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x4c9944(0x31e)](_0x3a3b58==null?void 0x0:_0x3a3b58[_0x4c9944(0x476)])?_0x3a3b58[_0x4c9944(0x476)]['flatMap'](_0xc9d0c0=>!_0xc9d0c0||!Number['isFinite'](_0xc9d0c0[_0x4c9944(0x4ae)])?[]:[{'id':String(_0xc9d0c0['id']||_0x4c9944(0x37f)+_0xc9d0c0[_0x4c9944(0x4ae)]),'date':Z(Number(_0xc9d0c0[_0x4c9944(0x4ae)])),'name':String(_0xc9d0c0[_0x4c9944(0x322)]||_0x4c9944(0x472)),'type':_0xc9d0c0[_0x4c9944(0x305)]==='working'?_0x4c9944(0x22f):_0x4c9944(0x31d)}]):[]};}function _i(_0x58973e,_0x3d504,_0x4da28b,_0xe1da4){let _0x4f2f22=xi(_0x58973e,_0x3d504),_0xbc466d=Si(_0x58973e,_0x4da28b),_0x170d1c=vi(_0x58973e,_0x4f2f22,_0xbc466d,_0xe1da4);return{'scale':_0x58973e,'start':_0x4f2f22,'end':_0xbc466d,'unitWidth':bi(_0x58973e),'majorHeaders':yi(_0x58973e,_0x4f2f22,_0xbc466d),'columns':_0x170d1c};}function vi(_0x72be32,_0x306bad,_0x144b23,_0x2142de){const _0x4a3cd1=_0x5daf81;let _0x409c7f=[],_0x3fca19=_0x306bad;for(;_0x3fca19<_0x144b23;){let _0xec399c=_0x72be32===_0x4a3cd1(0x459)?ji(_0x3fca19,0x7):_0x72be32==='year'?Mi(_0x3fca19,0x1):ji(_0x3fca19,0x1);_0x409c7f[_0x4a3cd1(0x482)]({'id':_0x72be32+'-'+_0x3fca19,'label':Ci(_0x72be32,_0x3fca19,_0xec399c),'majorLabel':wi(_0x72be32,_0x3fca19),'start':_0x3fca19,'end':_0xec399c,'nonWorking':Ei(_0x3fca19,_0xec399c,_0x2142de)}),_0x3fca19=_0xec399c;}return _0x409c7f;}function yi(_0x5e4d72,_0x5d5fed,_0x23e64e){const _0x400bdc=_0x5daf81;let _0x238ba4=[],_0x33835f=_0x5e4d72===_0x400bdc(0x27d)?Ai(_0x5d5fed):ki(_0x5d5fed);for(;_0x33835f<_0x23e64e;){let _0x521dcd=_0x5e4d72==='year'?Ni(_0x33835f,0x1):Mi(_0x33835f,0x1);_0x238ba4[_0x400bdc(0x482)]({'id':_0x400bdc(0x462)+_0x33835f,'label':_0x5e4d72===_0x400bdc(0x27d)?String(new Date(_0x33835f)['getUTCFullYear']()):Pi(_0x33835f),'start':_0x33835f,'end':_0x521dcd}),_0x33835f=_0x521dcd;}return _0x238ba4;}function bi(_0x30b9e6){const _0xb17dab=_0x5daf81;switch(_0x30b9e6){case _0xb17dab(0x2ba):return 0xac;case _0xb17dab(0x459):return 0xac;case'year':return 0x88;default:return 0x56;}}function xi(_0x274ef7,_0x388bef){const _0xfa236d=_0x5daf81;return _0x274ef7===_0xfa236d(0x27d)?Ai(_0x388bef):_0x274ef7===_0xfa236d(0x459)?Oi(_0x388bef):Z(_0x388bef);}function Si(_0x3b0709,_0x294257){const _0x21d3ba=_0x5daf81;return _0x3b0709===_0x21d3ba(0x27d)?Ni(Ai(_0x294257),0x1):_0x3b0709===_0x21d3ba(0x459)?ji(Oi(_0x294257),0x7):ji(Z(_0x294257),0x1);}function Ci(_0x3ca0e8,_0x37fb52,_0x2f6f03){const _0x1d5587=_0x5daf81;let _0x537661=new Date(_0x37fb52);return _0x3ca0e8===_0x1d5587(0x459)?_0x537661[_0x1d5587(0x560)]()+'-'+new Date(_0x2f6f03-oi)[_0x1d5587(0x560)]():_0x3ca0e8==='year'?_0x537661[_0x1d5587(0x492)]('en-US',{'month':'short','timeZone':_0x1d5587(0x50e)}):String(_0x537661[_0x1d5587(0x560)]());}function wi(_0x3df915,_0xcccb57){const _0x414226=_0x5daf81;return _0x3df915===_0x414226(0x27d)?String(new Date(_0xcccb57)[_0x414226(0x3ce)]()):Pi(_0xcccb57);}function Ti(_0x5bdff4,_0x7690ef,_0x1db07b){let _0x40aefd=gi(_0x1db07b),_0x1d6b35=0x0;for(let _0x244ac0=Z(_0x5bdff4);_0x244ac0<=Z(_0x7690ef);_0x244ac0=ji(_0x244ac0,0x1))Di(_0x244ac0,_0x40aefd)||_0x1d6b35++;return _0x1d6b35;}function Ei(_0x3de9cb,_0x49b7a2,_0x34d898){if(!_0x34d898)return!0x1;let _0x36c920=gi(_0x34d898);for(let _0x4bf37d=Z(_0x3de9cb);_0x4bf37d<_0x49b7a2;_0x4bf37d=ji(_0x4bf37d,0x1))if(!Di(_0x4bf37d,_0x36c920))return!0x1;return!0x0;}function Di(_0x41e24e,_0x1d97d6){const _0x10493c=_0x5daf81;let _0x14c976=Z(_0x41e24e),_0x26793c=_0x1d97d6[_0x10493c(0x476)][_0x10493c(0x2d8)](_0x33331c=>Z(_0x33331c[_0x10493c(0x4ae)])===_0x14c976);if(_0x26793c)return _0x26793c[_0x10493c(0x305)]===_0x10493c(0x31d);let _0x1de108=new Date(_0x14c976)[_0x10493c(0x512)](),_0x243a74=_0x1de108===0x0?0x7:_0x1de108;return!_0x1d97d6[_0x10493c(0x479)]['includes'](_0x243a74);}function Z(_0x2eeed9){const _0x3003b0=_0x5daf81;let _0x5b2c55=new Date(_0x2eeed9);return Date[_0x3003b0(0x50e)](_0x5b2c55[_0x3003b0(0x3ce)](),_0x5b2c55[_0x3003b0(0x222)](),_0x5b2c55[_0x3003b0(0x560)]());}function Oi(_0x11db8a){const _0x16899a=_0x5daf81;let _0x4bbc1f=Z(_0x11db8a),_0x11b2c0=new Date(_0x4bbc1f)[_0x16899a(0x512)]();return ji(_0x4bbc1f,-(_0x11b2c0===0x0?0x6:_0x11b2c0-0x1));}function ki(_0x1f7e1e){const _0x5498e4=_0x5daf81;let _0x5e850c=new Date(_0x1f7e1e);return Date[_0x5498e4(0x50e)](_0x5e850c[_0x5498e4(0x3ce)](),_0x5e850c[_0x5498e4(0x222)](),0x1);}function Ai(_0x47f63b){const _0x8da597=_0x5daf81;let _0x3c156c=new Date(_0x47f63b);return Date[_0x8da597(0x50e)](_0x3c156c[_0x8da597(0x3ce)](),0x0,0x1);}function ji(_0x1d9207,_0x5252de){return _0x1d9207+_0x5252de*oi;}function Mi(_0x5c0cbd,_0x5cb166){const _0x9cf43b=_0x5daf81;let _0x439584=new Date(_0x5c0cbd);return Date[_0x9cf43b(0x50e)](_0x439584[_0x9cf43b(0x3ce)](),_0x439584[_0x9cf43b(0x222)]()+_0x5cb166,0x1);}function Ni(_0x2b3c00,_0x28341a){const _0x46dadc=_0x5daf81;let _0x442485=new Date(_0x2b3c00);return Date['UTC'](_0x442485[_0x46dadc(0x3ce)]()+_0x28341a,0x0,0x1);}function Pi(_0x3ea57b){const _0x44714d=_0x5daf81;let _0x1b60fc=new Date(_0x3ea57b);return _0x1b60fc[_0x44714d(0x492)](_0x44714d(0x231),{'month':_0x44714d(0x532),'timeZone':_0x44714d(0x50e)})+'\x20'+_0x1b60fc[_0x44714d(0x3ce)]();}function Fi(_0x47ffc8,_0x9870b5){const _0x31c228=_0x5daf81;if(_0x47ffc8==null&&_0x9870b5==null)return 0x0;if(_0x47ffc8==null)return-0x1;if(_0x9870b5==null)return 0x1;if(typeof _0x47ffc8==_0x31c228(0x26c)||typeof _0x9870b5==_0x31c228(0x26c))return Number(_0x47ffc8===!0x0)-Number(_0x9870b5===!0x0);let _0x53ba1c=Number(_0x47ffc8),_0x1e2a8d=Number(_0x9870b5),_0x87750e=Number[_0x31c228(0x2fc)](_0x53ba1c),_0x133dab=Number['isFinite'](_0x1e2a8d);return _0x87750e&&_0x133dab?_0x53ba1c-_0x1e2a8d:_0x87750e?0x1:_0x133dab?-0x1:String(_0x47ffc8)[_0x31c228(0x202)](String(_0x9870b5));}function Ii(_0x2c0e53){const _0x64c1fe=_0x5daf81;if(_0x2c0e53['operator']!=='is'&&_0x2c0e53['operator']!==_0x64c1fe(0x4b5))return!0x1;let _0x503915=_0x2c0e53[_0x64c1fe(0x30b)];return _0x503915==null?!0x0:typeof _0x503915==_0x64c1fe(0x2ed)?_0x503915[_0x64c1fe(0x3a5)]()==='':Array[_0x64c1fe(0x31e)](_0x503915)?_0x503915[_0x64c1fe(0x21d)]===0x0:!0x1;}function Li(_0x401101,_0x27a495){const _0x21982=_0x5daf81;var _0x5dfb69;let _0x5fd6a8=Array[_0x21982(0x31e)]((_0x5dfb69=_0x401101[_0x21982(0x396)])==null?void 0x0:_0x5dfb69[_0x21982(0x49e)])?_0x401101[_0x21982(0x396)][_0x21982(0x49e)]:[];for(let _0x2162ed of _0x5fd6a8){if(_0x2162ed==null)continue;if(typeof _0x2162ed==_0x21982(0x2ed)){if(_0x2162ed===_0x27a495)return{'id':_0x2162ed,'name':_0x2162ed};continue;}let _0x420010=_0x2162ed,_0x19b0a9=String(_0x420010['id']??_0x420010[_0x21982(0x322)]??''),_0xea839a=String(_0x420010[_0x21982(0x322)]??_0x420010['id']??_0x19b0a9);if(_0x19b0a9===_0x27a495||_0xea839a===_0x27a495)return{'id':_0x19b0a9,'name':_0xea839a,'color':_0x420010[_0x21982(0x3be)]==null?void 0x0:String(_0x420010[_0x21982(0x3be)])};}return null;}let Ri=function(_0x4a180a){const _0x4c1707=_0x5daf81;return _0x4a180a[_0x4c1707(0x1cf)]=_0x4c1707(0x349),_0x4a180a[_0x4c1707(0x3e0)]=_0x4c1707(0x24c),_0x4a180a;}({});const Q={'id':_0x5daf81(0x554),'type':_0x3d059d['MUTATION'],'handler'(_0xf2623f,_0x3dc2ee){const _0x3209d3=_0x5daf81;let {unitId:_0x3a6600,op:_0x125c8c}=_0x3dc2ee,_0x18f36d=_0xf2623f['get'](_0x364596)[_0x3209d3(0x1ed)](_0x3a6600,_0x2ddca0[_0x3209d3(0x33d)]);if(!_0x18f36d)return!0x1;let _0x3f3a27=_0x18f36d[_0x3209d3(0x2f3)](),_0x4b113e=new z(),_0x20c792=_0x4b113e[_0x3209d3(0x26e)](_0x125c8c),_0x1d130b=_0x4b113e[_0x3209d3(0x525)](_0x3f3a27,_0x125c8c);return _0x18f36d[_0x3209d3(0x49d)](_0x1d130b),zi(_0x1d130b,_0x20c792,_0xf2623f['get'](ii)),!0x0;}};function zi(_0x20dd0f,_0x141a99,_0x4643b4){const _0x2240ec=_0x5daf81;let _0xb6eb07=new Set(),_0x2e0c9d=new Set(),_0x4975f8=new Set();for(let _0x82a83c of _0x141a99){if(_0x82a83c[_0x2240ec(0x483)]===_0x2240ec(0x3a6)&&_0x82a83c[_0x2240ec(0x221)]&&_0x82a83c[_0x2240ec(0x3c2)]){let _0x7d96dc=_0x82a83c[_0x2240ec(0x221)]+'\x00'+_0x82a83c[_0x2240ec(0x3c2)];_0x4975f8[_0x2240ec(0x253)](_0x7d96dc)||(_0x4975f8[_0x2240ec(0x4ee)](_0x7d96dc),_0x4643b4['invalidateByView'](_0x82a83c[_0x2240ec(0x221)],_0x82a83c[_0x2240ec(0x3c2)]));continue;}if(_0x82a83c[_0x2240ec(0x483)]===_0x2240ec(0x50a)&&_0x82a83c[_0x2240ec(0x221)]&&_0x82a83c[_0x2240ec(0x4a1)]){let _0x4ea74a=_0x82a83c[_0x2240ec(0x221)]+'\x00'+_0x82a83c[_0x2240ec(0x4a1)];_0x2e0c9d[_0x2240ec(0x253)](_0x4ea74a)||(_0x2e0c9d[_0x2240ec(0x4ee)](_0x4ea74a),_0x4643b4[_0x2240ec(0x4b4)](_0x82a83c[_0x2240ec(0x221)],_0x82a83c[_0x2240ec(0x4a1)]));continue;}if(_0x82a83c[_0x2240ec(0x483)]!==_0x2240ec(0x203)){_0x4643b4[_0x2240ec(0x4ce)]();return;}let _0xaa5779=Bi(_0x20dd0f,_0x82a83c);if(!_0xaa5779){_0x4643b4['invalidateByOp']();return;}let _0x44bc5f=_0xaa5779[_0x2240ec(0x221)]+'\x00'+_0xaa5779['recordId']+'\x00'+_0xaa5779[_0x2240ec(0x4a1)];_0xb6eb07['has'](_0x44bc5f)||(_0xb6eb07[_0x2240ec(0x4ee)](_0x44bc5f),_0x4643b4[_0x2240ec(0x334)](_0xaa5779[_0x2240ec(0x221)],_0xaa5779['recordId'],_0xaa5779['fieldId']));}}function Bi(_0x246362,_0x56ae22){const _0x476952=_0x5daf81;var _0x1e8681,_0x4fe226;if(!_0x56ae22['tableId'])return null;if(_0x56ae22[_0x476952(0x1c6)]&&_0x56ae22['fieldId'])return{'tableId':_0x56ae22[_0x476952(0x221)],'recordId':_0x56ae22[_0x476952(0x1c6)],'fieldId':_0x56ae22[_0x476952(0x4a1)]};if(_0x56ae22[_0x476952(0x406)]==null||_0x56ae22[_0x476952(0x1cc)]==null)return null;let _0x513938=_0x246362['tables'][_0x56ae22[_0x476952(0x221)]],_0x2aba16=_0x513938==null||(_0x1e8681=_0x513938['rowId'])==null?void 0x0:_0x1e8681[_0x56ae22['row']],_0x5e783a=_0x513938==null||(_0x4fe226=_0x513938['colId'])==null?void 0x0:_0x4fe226[_0x56ae22[_0x476952(0x1cc)]];return!_0x2aba16||!_0x5e783a?null:{'tableId':_0x56ae22['tableId'],'recordId':_0x2aba16,'fieldId':_0x5e783a};}const Vi=_0x5ac771[_0x5daf81(0x2c2)](String['raw']`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x5ac771['createRegExpFromSafeFragment'](String['raw']`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x5ac771[_0x5daf81(0x2c2)](String['raw']`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x5ac771[_0x5daf81(0x2c2)](String[_0x5daf81(0x230)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x5ac771['createRegExpFromSafeFragment'](String[_0x5daf81(0x230)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x5ac771[_0x5daf81(0x2c2)](String[_0x5daf81(0x230)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x5ac771[_0x5daf81(0x2c2)](String[_0x5daf81(0x230)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x5ac771[_0x5daf81(0x2c2)](String[_0x5daf81(0x230)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x5daf81(0x217)](_0x1bd84f,_0x4ca49b=_0x1bd84f['id']){const _0x2fbe8d=_0x5daf81;var _0xd2cfa0;let _0x20354d=((_0xd2cfa0=_0x1bd84f[_0x2fbe8d(0x3da)])==null?void 0x0:_0xd2cfa0['length'])??Object[_0x2fbe8d(0x45b)](_0x1bd84f[_0x2fbe8d(0x43a)])['length'];return{'sheetId':_0x4ca49b,'titleMap':new Map(_0x1bd84f[_0x2fbe8d(0x1d6)][_0x2fbe8d(0x2b0)]((_0x20a0b8,_0x5cfbaf)=>{const _0x50d57e=_0x2fbe8d;var _0x201cf9;return[((_0x201cf9=_0x1bd84f[_0x50d57e(0x503)][_0x20a0b8])==null?void 0x0:_0x201cf9[_0x50d57e(0x322)])??_0x20a0b8,_0x5cfbaf];})),'range':{'startRow':0x0,'endRow':Math[_0x2fbe8d(0x29c)](0x0,_0x20354d-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x1bd84f[_0x2fbe8d(0x1d6)]['length']-0x1)},'showHeader':!0x1};}['getSuperTableRegistrations'](_0x4bfaff,_0x28bb40){const _0x49cc3f=_0x5daf81;let _0xeb8b98=[],_0x239c66=_0x28bb40?new Set(_0x28bb40):null,_0xa4b565=_0x4b2d20(_0x4bfaff);return Object[_0x49cc3f(0x45b)](_0x4bfaff[_0x49cc3f(0x2f7)])[_0x49cc3f(0x32f)](_0x30677c=>!_0x239c66||_0x239c66[_0x49cc3f(0x253)](_0x30677c['id']))[_0x49cc3f(0x429)](_0x154f4d=>{const _0x3196e0=_0x49cc3f;let _0x3c7086=this[_0x3196e0(0x217)](_0x154f4d,_0x154f4d['id']);_0xeb8b98[_0x3196e0(0x482)]({'tableId':_0x154f4d['id'],'tableName':_0xa4b565[_0x3196e0(0x315)](_0x154f4d['id']),'reference':_0x3c7086});}),_0xeb8b98;}[_0x5daf81(0x4dc)](_0xce57c0,_0xadfaee,_0x26c766={}){const _0x1ffaaf=_0x5daf81;let _0x2f9922=_0xce57c0[_0x1ffaaf(0x3a5)]();if(!_0x2f9922)return{'valid':!0x0};if(na(_0x2f9922))return{'valid':!0x1,'reason':_0x1ffaaf(0x1b9)};let _0x5b5390=_0x26c766['snapshot']?_0x4b2d20(_0x26c766[_0x1ffaaf(0x21a)]):void 0x0;for(let _0x2d56a9 of ta(_0x2f9922)){let _0x32813f=ua(_0x2d56a9,_0xadfaee,_0x26c766[_0x1ffaaf(0x21a)],_0x5b5390);if(!_0x32813f[_0x1ffaaf(0x524)])return{'valid':!0x1,'reason':_0x1ffaaf(0x41b)+_0x2d56a9[_0x1ffaaf(0x417)]+'\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.'};if(!_0x32813f['field'])return{'valid':!0x1,'reason':'[BaseFormula]:\x20field\x20\x22'+_0x2d56a9[_0x1ffaaf(0x3bb)]+_0x1ffaaf(0x362)};}return{'valid':!0x0};}[_0x5daf81(0x1c4)](_0x1006cc,_0x3dfd6a,_0xed6489={}){const _0x336f63=_0x5daf81;let _0x431d7e=new Set();for(let _0x4afe21 of this[_0x336f63(0x3f7)](_0x1006cc,_0x3dfd6a,_0xed6489))_0x4afe21['tableId']===_0x3dfd6a['id']&&_0x431d7e[_0x336f63(0x4ee)](_0x4afe21[_0x336f63(0x4a1)]);return Array[_0x336f63(0x404)](_0x431d7e);}[_0x5daf81(0x3f7)](_0x4a7da7,_0x5f2aba,_0x2badee={}){const _0x348c5e=_0x5daf81;let _0x5c3eae=new Map(),_0x25baf4=_0x2badee['snapshot']?_0x4b2d20(_0x2badee['snapshot']):void 0x0;for(let _0x377617 of ta(_0x4a7da7)){let _0x319bf9=ua(_0x377617,_0x5f2aba,_0x2badee[_0x348c5e(0x21a)],_0x25baf4);if(!_0x319bf9['table']||!_0x319bf9[_0x348c5e(0x50a)])continue;let _0x5b93b4=_0x319bf9[_0x348c5e(0x524)]['id']+'\x1f'+_0x319bf9[_0x348c5e(0x50a)]['id'];_0x5c3eae[_0x348c5e(0x1ba)](_0x5b93b4,{'tableId':_0x319bf9[_0x348c5e(0x524)]['id'],'fieldId':_0x319bf9['field']['id']});}return Array[_0x348c5e(0x404)](_0x5c3eae[_0x348c5e(0x45b)]());}};function Zi(_0x348f80,_0x40a80e){const _0x3851f4=_0x5daf81;var _0x3982ef;let _0x3aff9b=[],_0x2d7cbd=(_0x3982ef=_0x40a80e[_0x3851f4(0x24d)])==null?void 0x0:_0x3982ef[_0x348f80['id']];return _0x2d7cbd&&Object[_0x3851f4(0x2e4)](_0x2d7cbd)[_0x3851f4(0x429)](([_0x2684b4,_0x14a86f])=>{const _0x5ee2ee=_0x3851f4;let _0x4742cc=_0x348f80[_0x5ee2ee(0x2f7)][_0x2684b4];if(!_0x4742cc||!_0x14a86f)return;let _0x3e9b62=L(_0x4742cc),_0x3e900e=[];new _0x22a4fc(_0x14a86f)['forValue']((_0x2af271,_0x8ab8a1,_0x574525)=>{let _0x1063da=Qi(_0x3e9b62,_0x2af271,_0x8ab8a1,_0x574525);_0x1063da&&_0x3e900e['push'](_0x1063da);}),_0x3e900e[_0x5ee2ee(0x21d)]&&_0x3aff9b[_0x5ee2ee(0x482)]({'unitId':_0x348f80['id'],'tableId':_0x2684b4,'patches':_0x3e900e});}),_0x3aff9b;}function Qi(_0x422ded,_0x56198d,_0x113873,_0x2204d6){const _0x928441=_0x5daf81;var _0xc8297d,_0x33498d,_0x2b2a91;let _0x2d83e8=(_0xc8297d=_0x422ded[_0x928441(0x1ec)])==null?void 0x0:_0xc8297d[_0x56198d],_0x10bbe7=(_0x33498d=_0x422ded['colId'])==null?void 0x0:_0x33498d[_0x113873];if(!_0x2d83e8||!_0x422ded['records'][_0x2d83e8]||!_0x10bbe7)return null;let _0x2985d0=_0x422ded[_0x928441(0x503)][_0x10bbe7];if(!_0x2985d0||_0x2985d0[_0x928441(0x305)]!==_0x928441(0x494))return null;let _0x59ef9b=String(((_0x2b2a91=_0x2985d0[_0x928441(0x396)])==null?void 0x0:_0x2b2a91[_0x928441(0x494)])??'')[_0x928441(0x3a5)](),_0x2a4a90=(_0x2204d6==null?void 0x0:_0x2204d6['v'])??null,_0xf0e9b0={'v':_0x2a4a90,'t':ea(_0x2a4a90),..._0x56198d===0x0&&_0x59ef9b?{'f':_0x59ef9b}:{},'si':_0x2985d0['id']};return $i(vt(_0x422ded,_0x2d83e8,_0x10bbe7),_0xf0e9b0)?null:{'row':_0x56198d,'col':_0x113873,'value':_0xf0e9b0};}function $i(_0xfb5e78,_0x218e26){return _0xfb5e78!=null&&Object['is'](_0xfb5e78['v']??null,_0x218e26['v']??null)&&_0xfb5e78['t']===_0x218e26['t']&&_0xfb5e78['f']===_0x218e26['f']&&_0xfb5e78['si']===_0x218e26['si'];}function ea(_0x3a60f2){const _0x2a124f=_0x5daf81;return typeof _0x3a60f2==_0x2a124f(0x53d)?_0x20fde0[_0x2a124f(0x288)]:typeof _0x3a60f2==_0x2a124f(0x26c)?_0x20fde0[_0x2a124f(0x1b3)]:typeof _0x3a60f2==_0x2a124f(0x2ed)?_0x20fde0[_0x2a124f(0x376)]:null;}function ta(_0x4a9bd9){const _0x3ef43f=_0x5daf81;let _0x1e7814=ia(_0x4a9bd9,()=>''),_0xc972bd=new Map(),_0x3cc940=_0x44859d=>{const _0x4f228d=_0x188f;_0xc972bd[_0x4f228d(0x1ba)]((_0x44859d[_0x4f228d(0x417)]??'')+'\x1f'+_0x44859d[_0x4f228d(0x3bb)],_0x44859d);};for(let _0x2bae26 of _0x1e7814[_0x3ef43f(0x347)](Ui))_0x3cc940({'fieldName':_0x2bae26[0x1],'scope':_0x3ef43f(0x23b)});_0x1e7814=_0x1e7814[_0x3ef43f(0x39b)](Wi,(_0x5ddc17,_0x8e702a,_0x496d8b,_0x5201ec)=>(_0x3cc940({'tableName':_0x8e702a,'fieldName':_0x5201ec,'scope':_0x496d8b[_0x3ef43f(0x40c)]()===_0x3ef43f(0x41f)?_0x3ef43f(0x41f):'this-row'}),'\x20')),_0x1e7814=_0x1e7814[_0x3ef43f(0x39b)](Gi,(_0x5b5124,_0x4f07a9,_0x460bb3)=>(_0x3cc940({'tableName':_0x4f07a9,'fieldName':_0x460bb3,'scope':_0x3ef43f(0x23b)}),'\x20')),_0x1e7814=_0x1e7814[_0x3ef43f(0x39b)](qi,(_0x1375ca,_0x445c35,_0x2310e2,_0x1ae33b)=>(_0x3cc940({'fieldName':_0x1ae33b,'scope':_0x2310e2[_0x3ef43f(0x40c)]()===_0x3ef43f(0x41f)?_0x3ef43f(0x41f):'this-row'}),_0x445c35+'\x20')),_0x1e7814=_0x1e7814['replace'](Ji,(_0x46bac8,_0x11739c,_0x5bd5a2)=>(_0x3cc940({'fieldName':_0x5bd5a2,'scope':'this-row'}),_0x11739c+'\x20'));for(let _0x13e5c1 of _0x1e7814[_0x3ef43f(0x347)](Ki))_0x3cc940({'tableName':_0x13e5c1[0x1],'fieldName':_0x13e5c1[0x2]});for(let _0x159818 of _0x1e7814[_0x3ef43f(0x347)](Yi))_0x3cc940({'fieldName':_0x159818[0x2],'scope':_0x3ef43f(0x23b)});return Array['from'](_0xc972bd['values']());}function na(_0x2d197b){const _0x1d0a18=_0x5daf81;let _0x55286c=ia(_0x2d197b,()=>'\x20')[_0x1d0a18(0x39b)](Ui,'\x20')['replace'](Wi,'\x20')[_0x1d0a18(0x39b)](Gi,'\x20')[_0x1d0a18(0x39b)](qi,_0x1d0a18(0x1bb))[_0x1d0a18(0x39b)](Ji,'$1\x20')[_0x1d0a18(0x39b)](Ki,'\x20')['replace'](Yi,_0x1d0a18(0x1bb));return Vi[_0x1d0a18(0x27c)](_0x55286c);}function ra(_0x4f7532,_0xfbe1a1){return ca(oa(_0x4f7532,_0xfbe1a1),_0xfbe1a1);}function ia(_0x429bc8,_0x45de06){return aa(ra(_0x429bc8,_0x45de06),_0x45de06);}function aa(_0x3c7f26,_0x282573){return _0x3c7f26['replace'](/"(?:""|[^"])*"/g,_0x282573);}function oa(_0xf0e6c4,_0x1bd168){const _0x1d0b6b=_0x5daf81;return Hi[_0x1d0b6b(0x501)]=0x0,_0xf0e6c4['replace'](Hi,(_0x3ab8b7,_0x5ca49d)=>la(_0xf0e6c4,_0x5ca49d)?_0x3ab8b7:_0x1bd168(_0x3ab8b7));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x26a438,_0x2b8447){const _0x42230c=_0x5daf81;let _0x2df089=[];for(sa['lastIndex']=0x0;;){let _0x344017=sa[_0x42230c(0x4a7)](_0x26a438);if(_0x344017==null)break;if(la(_0x26a438,_0x344017[_0x42230c(0x391)]))continue;let _0x3215ac=sa[_0x42230c(0x501)]-0x1,_0x82a7c3=0x0;for(let _0x1612e5=_0x3215ac;_0x1612e5<_0x26a438['length'];_0x1612e5++)if(_0x26a438[_0x1612e5]==='['&&_0x82a7c3++,_0x26a438[_0x1612e5]===']'&&(_0x82a7c3--,_0x82a7c3===0x0)){_0x2df089[_0x42230c(0x482)]({'start':_0x344017[_0x42230c(0x391)],'end':_0x1612e5+0x1}),sa['lastIndex']=_0x1612e5+0x1;break;}}if(_0x2df089['length']===0x0)return _0x26a438;let _0x1b16cc='',_0x397a96=0x0;for(let _0x254dbb of _0x2df089)_0x1b16cc+=_0x26a438[_0x42230c(0x1cb)](_0x397a96,_0x254dbb['start']),_0x1b16cc+=_0x2b8447(_0x26a438[_0x42230c(0x1cb)](_0x254dbb[_0x42230c(0x455)],_0x254dbb[_0x42230c(0x2fe)])),_0x397a96=_0x254dbb[_0x42230c(0x2fe)];return _0x1b16cc+_0x26a438[_0x42230c(0x1cb)](_0x397a96);}function la(_0x130a92,_0x198b3a){let _0x2b59d7=!0x1;for(let _0xe2cf4a=0x0;_0xe2cf4a<_0x198b3a;_0xe2cf4a++)_0x130a92[_0xe2cf4a]==='\x22'&&(_0x2b59d7&&_0x130a92[_0xe2cf4a+0x1]==='\x22'?_0xe2cf4a++:_0x2b59d7=!_0x2b59d7);return _0x2b59d7;}function ua(_0x4efc3a,_0x44cc74,_0x3e7c6f,_0x30acb4){const _0x496394=_0x5daf81;let _0x28fad0=da(_0x4efc3a[_0x496394(0x417)],_0x44cc74,_0x3e7c6f,_0x30acb4);return{'table':_0x28fad0,'field':_0x28fad0?Object[_0x496394(0x45b)](_0x28fad0[_0x496394(0x503)])[_0x496394(0x2d8)](_0x7cf837=>_0x7cf837[_0x496394(0x322)]===_0x4efc3a[_0x496394(0x3bb)]):void 0x0};}function da(_0x38c2a0,_0xe17cd4,_0x13515b,_0x4b2537){const _0x4239d0=_0x5daf81;if(!_0x38c2a0)return _0xe17cd4;if(!_0x13515b){var _0x43ba1e;let _0x29b8e8=_0x38c2a0[_0x4239d0(0x40c)]();return _0x29b8e8===_0xe17cd4['id']['toLowerCase']()||_0x29b8e8===_0xe17cd4[_0x4239d0(0x322)][_0x4239d0(0x40c)]()||_0x29b8e8===((_0x43ba1e=_0xe17cd4[_0x4239d0(0x516)])==null?void 0x0:_0x43ba1e[_0x4239d0(0x40c)]())?_0xe17cd4:void 0x0;}let _0xc04aae=_0x38c2a0[_0x4239d0(0x40c)](),_0x4cf198=_0x4b2537??_0x4b2d20(_0x13515b),_0x249122=Object[_0x4239d0(0x45b)](_0x13515b[_0x4239d0(0x2f7)])[_0x4239d0(0x32f)](_0x164995=>{const _0x86d040=_0x4239d0;var _0x5ccfbc;return _0x164995['id'][_0x86d040(0x40c)]()===_0xc04aae||_0x164995[_0x86d040(0x322)][_0x86d040(0x40c)]()===_0xc04aae||((_0x5ccfbc=_0x4cf198[_0x86d040(0x315)](_0x164995['id']))==null?void 0x0:_0x5ccfbc[_0x86d040(0x40c)]())===_0xc04aae||fa(_0x164995['id'])[_0x86d040(0x40c)]()===_0xc04aae;});return _0x249122['length']===0x1?_0x249122[0x0]:void 0x0;}function fa(_0x50a0f3){const _0x57362b=_0x5daf81;return _0x57362b(0x55d)+Array[_0x57362b(0x404)](_0x50a0f3,_0x295066=>{const _0x115e51=_0x57362b;var _0x5f5302;return/[A-Za-z0-9]/['test'](_0x295066)?_0x295066:'_x'+(((_0x5f5302=_0x295066[_0x115e51(0x27b)](0x0))==null?void 0x0:_0x5f5302[_0x115e51(0x25d)](0x10))??'0')+'_';})[_0x57362b(0x30a)]('');}const pa=new Xi();function ma(_0x24da7f,_0x12edcc,_0x57a59b){const _0x1ea56d=_0x5daf81;var _0x96ffcb;if(_0x57a59b[_0x1ea56d(0x305)]!==_0x618ba[_0x1ea56d(0x4a8)])return!0x0;let _0x2f847c=String(((_0x96ffcb=_0x57a59b['config'])==null?void 0x0:_0x96ffcb[_0x1ea56d(0x494)])??''),_0x1226c5=_0x24da7f[_0x1ea56d(0x2f3)]();return pa[_0x1ea56d(0x4dc)](_0x2f847c,_0x1226c5[_0x1ea56d(0x2f7)][_0x12edcc],{'snapshot':_0x1226c5})[_0x1ea56d(0x36d)];}function $(_0x335136,_0x50acba,_0x39478f){const _0xa7cf5d=_0x5daf81;let _0x222bfa=_0x335136[_0xa7cf5d(0x2f3)]()['tables'][_0x50acba];if(!_0x222bfa)return!0x1;let {viewIds:_0x3400fb,fieldIds:_0x5b9593,recordIds:_0x35d999}=_0x39478f||{};if(_0x3400fb){for(let _0x1b0901 of _0x3400fb)if(!_0x222bfa['views'][_0x1b0901])return!0x1;}if(_0x5b9593){for(let _0xfef3ac of _0x5b9593)if(!_0x222bfa[_0xa7cf5d(0x503)][_0xfef3ac])return!0x1;}if(_0x35d999){for(let _0x1221d7 of _0x35d999)if(!_0x222bfa[_0xa7cf5d(0x43a)][_0x1221d7])return!0x1;}return!0x0;}function ha(_0x12375d,_0x266714,_0x4a8441){const _0x2129c2=_0x5daf81;if(_0x4a8441['id']===_0x4a6fc3||_0x4a8441[_0x2129c2(0x305)]===_0x618ba[_0x2129c2(0x28f)]||_0x4dba8d(_0x4a8441[_0x2129c2(0x322)])||!ma(_0x12375d,_0x266714,_0x4a8441))return!0x1;let _0x14208b=_0x12375d[_0x2129c2(0x2f3)]();if(!Be(_0x14208b,_0x4a8441)['valid'])return!0x1;if(_0x4a8441[_0x2129c2(0x305)]!==_0x618ba[_0x2129c2(0x2e6)])return!0x0;let _0x10b633=N(_0x4a8441);if(!_0x10b633)return!0x1;if(_0x10b633[_0x2129c2(0x33e)]===void 0x0)return!0x0;if(_0x10b633[_0x2129c2(0x33e)]!==_0x1d1c88[_0x2129c2(0x3fa)]||_0x10b633['targetTableId']!==_0x266714||_0x10b633['multiple']!==!0x1)return!0x1;let _0x3d56a6=_0x14208b[_0x2129c2(0x2f7)][_0x266714];return!Object[_0x2129c2(0x45b)](_0x3d56a6['fields'])['some'](_0x1b2f43=>{const _0x31a0e4=_0x2129c2;var _0x46810f;return _0x1b2f43['id']!==_0x4a8441['id']&&_0x1b2f43[_0x31a0e4(0x305)]===_0x618ba['RecordLink']&&((_0x46810f=N(_0x1b2f43))==null?void 0x0:_0x46810f[_0x31a0e4(0x33e)])===_0x1d1c88[_0x31a0e4(0x3fa)];});}function ga(_0x4f2924,_0x40913d,_0x18acc1,_0x289af2){const _0x1de7b1=_0x5daf81;var _0x4e6382;let _0x45bcb4=_0x4f2924[_0x1de7b1(0x2f3)](),_0x2a1a02=(_0x4e6382=_0x45bcb4[_0x1de7b1(0x2f7)][_0x40913d])==null?void 0x0:_0x4e6382['fields'][_0x18acc1];return!_0x2a1a02||_0x2a1a02['id']===_0x4a6fc3||_0x2a1a02[_0x1de7b1(0x305)]===_0x618ba[_0x1de7b1(0x28f)]?!0x1:_0x2a1a02[_0x1de7b1(0x305)]!==_0x618ba[_0x1de7b1(0x2e6)]||Ve(_0x45bcb4,_0x2a1a02,ya(_0x289af2))[_0x1de7b1(0x36d)];}function _a(_0x1d78da,_0x5f46e8,_0xa135c1){const _0x1d604b=_0x5daf81;let _0x2936bb=_0x1d78da[_0x1d604b(0x2f3)]()[_0x1d604b(0x2f7)][_0x5f46e8];return!_0x2936bb||!_0x3c7887(_0xa135c1['id'])||_0x2936bb[_0x1d604b(0x43a)][_0xa135c1['id']]||Object['prototype']['hasOwnProperty'][_0x1d604b(0x35d)](_0xa135c1[_0x1d604b(0x45b)],_0x4a6fc3)&&_0xa135c1[_0x1d604b(0x45b)][_0x4a6fc3]!==_0xa135c1['id']?!0x1:Object[_0x1d604b(0x2e4)](_0xa135c1[_0x1d604b(0x45b)])[_0x1d604b(0x2ab)](([_0x5bdaec,_0x936a45])=>_0x5bdaec===_0x4a6fc3||ga(_0x1d78da,_0x5f46e8,_0x5bdaec,_0x936a45));}function va(_0x5217b7){const _0xba4f83=_0x5daf81;return{..._0x5217b7,'values':{..._0x5217b7[_0xba4f83(0x45b)],[_0x4a6fc3]:_0x5217b7['id']}};}function ya(_0x2a90f9){const _0x352f38=_0x5daf81;if(_0x2a90f9&&typeof _0x2a90f9==_0x352f38(0x1fb)&&!Array[_0x352f38(0x31e)](_0x2a90f9)&&'v'in _0x2a90f9){let _0x38360e=_0x2a90f9['v'];return _0x38360e===void 0x0?null:_0x38360e;}return _0x2a90f9;}function ba(_0x492afd,_0x20548c,_0x2f7519,_0x475974){const _0x1e17f8=_0x5daf81;let _0x1f4935=_0x492afd['getSnapshot']()[_0x1e17f8(0x2f7)][_0x20548c];if(!_0x1f4935)return null;let _0x399687=qe(_0x1f4935),_0x356ffb=_0x399687??Je(_0x1f4935),_0x11ad00=_0x2f7519[_0x1e17f8(0x387)](_0x52d4ac=>Object[_0x1e17f8(0x4e2)][_0x1e17f8(0x4d7)][_0x1e17f8(0x35d)](_0x52d4ac['values'],_0x356ffb)),_0x18bf2e=_0x399687?_0x1f4935[_0x1e17f8(0x503)][_0x399687]:_0x11ad00?Ye(_0x1f4935,_0x356ffb,_0x475974):null,_0x51cae6=[];for(let _0x588b4b of _0x2f7519){let _0x3e12c0=_0x588b4b[_0x1e17f8(0x45b)][_0x356ffb],_0x164631=_0x18bf2e!==null&&Object[_0x1e17f8(0x4e2)][_0x1e17f8(0x4d7)][_0x1e17f8(0x35d)](_0x588b4b['values'],_0x356ffb),_0x558228=ya(_0x3e12c0),_0x359a22=null;if(_0x164631){if(typeof _0x558228!='string'||!ze(_0x558228,!0x1)[_0x1e17f8(0x36d)])return null;_0x359a22=_0x558228;}let _0x5c6722={};if(Object['entries'](_0x588b4b[_0x1e17f8(0x45b)])[_0x1e17f8(0x429)](([_0x54e553,_0x565a12])=>{(!_0x164631||_0x54e553!==_0x356ffb)&&(_0x5c6722[_0x54e553]=_0x565a12);}),!_a(_0x492afd,_0x20548c,{..._0x588b4b,'values':_0x5c6722}))return null;let _0x303aef={..._0x588b4b[_0x1e17f8(0x45b)]};_0x359a22!==null&&(_0x303aef[_0x356ffb]=_0x359a22),_0x51cae6[_0x1e17f8(0x482)](va({..._0x588b4b,'values':_0x303aef}));}return{'records':_0x51cae6,'hierarchyFieldToMaterialize':_0x399687?null:_0x18bf2e,'hierarchyChanges':Qe(_0x1f4935,_0x51cae6)};}const xa={'id':'base.command.batch-create-base-records','type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x3ff559,_0x4f1412){const _0x23851a=_0x5daf81;if(!_0x4f1412)return!0x1;let _0x645685=_0x3ff559['get'](_0x364596),{unitId:_0x16785e,tableId:_0x256e32,records:_0x336a93}=_0x4f1412,_0x26b12f=_0x645685[_0x23851a(0x1ed)](_0x16785e,_0x2ddca0[_0x23851a(0x33d)]),_0x1c2ffa=_0x336a93[_0x23851a(0x2b0)](_0xba23a7=>_0xba23a7['id']);if(!_0x26b12f||!$(_0x26b12f,_0x256e32)||new Set(_0x1c2ffa)['size']!==_0x1c2ffa[_0x23851a(0x21d)])return!0x1;let _0x2fb45a=_0x3ff559[_0x23851a(0x315)](_0x2ca718),_0x576d00=_0x3ff559['get'](_0x51376c),_0x28ee9f=_0x3ff559[_0x23851a(0x315)](Kr),_0x193eb0=_0x26b12f[_0x23851a(0x2f3)](),_0x2f324b=ba(_0x26b12f,_0x256e32,_0x336a93);if(!_0x2f324b)return!0x1;let {records:_0x196daf,hierarchyChanges:_0x121735,hierarchyFieldToMaterialize:_0x2f5881}=_0x2f324b,_0x37bd9c=_0x2f5881?_0x28ee9f[_0x23851a(0x539)](_0x26b12f,_0x256e32,_0x2f5881,_0x193eb0[_0x23851a(0x2f7)][_0x256e32][_0x23851a(0x1d6)]['length']):null,_0x86a0e8=_0x28ee9f[_0x23851a(0x556)](_0x26b12f,_0x256e32,_0x196daf),_0x8abfed=R([..._0x37bd9c?[_0x37bd9c]:[],_0x86a0e8]),_0x121f8d=new z()[_0x23851a(0x388)](_0x193eb0,_0x8abfed),_0x304b60={'unitId':_0x16785e,'op':_0x8abfed,'hierarchyChanges':_0x121735[_0x23851a(0x21d)]?_0x121735:void 0x0,'source':_0x121735[_0x23851a(0x21d)]?_0x4f1412[_0x23851a(0x1e1)]??'ui':void 0x0},_0x1ff0e0={..._0x304b60,'source':_0x121735['length']?_0x23851a(0x424):void 0x0},_0x84b40f={'unitId':_0x16785e,'op':_0x121f8d,'hierarchyChanges':_0x121735[_0x23851a(0x21d)]?_0x121735[_0x23851a(0x2b0)](_0x5535ed=>({..._0x5535ed,'oldParentRecordId':_0x5535ed['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x121735[_0x23851a(0x21d)]?'undo':void 0x0};return _0x2fb45a[_0x23851a(0x1e6)](Q['id'],_0x304b60)?(_0x645685[_0x23851a(0x2ac)](_0x16785e),_0x576d00[_0x23851a(0x34a)]({'unitID':_0x16785e,'undoMutations':[{'id':Q['id'],'params':_0x84b40f}],'redoMutations':[{'id':Q['id'],'params':_0x1ff0e0}]}),!0x0):!0x1;}},Sa={'id':'base.command.batch-delete-base-records','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x29b6f1,_0x1dd363)=>{const _0x311f0f=_0x5daf81;if(!_0x1dd363)return!0x1;let _0x2bc60a=_0x29b6f1[_0x311f0f(0x315)](_0x364596),{unitId:_0x3c96dd,tableId:_0x792509,recordIds:_0x298ae7}=_0x1dd363,_0x47fd85=_0x2bc60a[_0x311f0f(0x1ed)](_0x3c96dd,_0x2ddca0[_0x311f0f(0x33d)]);if(!_0x47fd85||!$(_0x47fd85,_0x792509,{'recordIds':_0x298ae7}))return!0x1;let _0x3df10c=_0x29b6f1[_0x311f0f(0x315)](_0x2ca718),_0x1d9eed=_0x29b6f1['get'](_0x51376c),_0x1ec8e8=_0x47fd85[_0x311f0f(0x2f3)](),_0x2313c1=et(_0x1ec8e8[_0x311f0f(0x2f7)][_0x792509],_0x298ae7),_0x381da8=new W(),_0x4912b2=new z(),_0x178a23=_0x381da8[_0x311f0f(0x20e)](_0x1ec8e8,_0x792509,_0x298ae7),_0x1509f3=_0x4912b2[_0x311f0f(0x525)](_0x1ec8e8,_0x178a23),_0xd64f14=_0x381da8[_0x311f0f(0x43b)](_0x1ec8e8,_0x1509f3,_0x792509,_0x298ae7),_0x5380e7={'unitId':_0x3c96dd,'op':_0x178a23,'hierarchyChanges':_0x2313c1,'source':_0x1dd363['source']??'ui'},_0x4cde9d={..._0x5380e7,'source':_0x311f0f(0x424)},_0x531ea7={'unitId':_0x3c96dd,'op':_0xd64f14,'hierarchyChanges':_0x2313c1[_0x311f0f(0x2b0)](_0x1b3550=>({..._0x1b3550,'oldParentRecordId':_0x1b3550[_0x311f0f(0x419)],'parentRecordId':_0x1b3550[_0x311f0f(0x266)]})),'source':_0x311f0f(0x3a8)};return _0x3df10c['syncExecuteCommand'](Q['id'],_0x5380e7)?(_0x2bc60a[_0x311f0f(0x2ac)](_0x3c96dd),_0x1d9eed[_0x311f0f(0x34a)]({'unitID':_0x3c96dd,'undoMutations':[{'id':Q['id'],'params':_0x531ea7}],'redoMutations':[{'id':Q['id'],'params':_0x4cde9d}]}),!0x0):!0x1;}},Ca={'id':'base.command.change-base-field-type','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x49e453,_0xb15a52)=>{const _0x354bbc=_0x5daf81;if(!_0xb15a52)return!0x1;let _0x466d58=_0x49e453[_0x354bbc(0x315)](_0x364596),{unitId:_0xa0092d,tableId:_0x334588,fieldId:_0x5e8824,input:_0xe06195}=_0xb15a52,_0x1e7c76=_0x466d58['getUnit'](_0xa0092d,_0x2ddca0['UNIVER_BASE']);if(!_0x1e7c76||_0x5e8824===_0x4a6fc3||!$(_0x1e7c76,_0x334588,{'fieldIds':[_0x5e8824]}))return!0x1;let _0x50c846=_0x49e453[_0x354bbc(0x315)](_0x2ca718),_0x3c5b6a=_0x49e453[_0x354bbc(0x315)](_0x51376c),_0x1f96fa=_0x1e7c76[_0x354bbc(0x2f3)]();if(!ha(_0x1e7c76,_0x334588,{..._0x1f96fa[_0x354bbc(0x2f7)][_0x334588][_0x354bbc(0x503)][_0x5e8824],..._0xe06195}))return!0x1;let _0x56e17=new W()[_0x354bbc(0x4f5)](_0x1f96fa,_0x334588,_0x5e8824,_0xe06195),_0x5e7baf=new z()[_0x354bbc(0x388)](_0x1f96fa,_0x56e17),_0x5117e8={'unitId':_0xa0092d,'op':_0x56e17},_0x310a5d={'unitId':_0xa0092d,'op':_0x5e7baf};return _0x50c846[_0x354bbc(0x1e6)](Q['id'],_0x5117e8)?(_0x466d58[_0x354bbc(0x2ac)](_0xa0092d),_0x3c5b6a['pushUndoRedo']({'unitID':_0xa0092d,'undoMutations':[{'id':Q['id'],'params':_0x310a5d}],'redoMutations':[{'id':Q['id'],'params':_0x5117e8}]}),!0x0):!0x1;}},wa={'id':_0x5daf81(0x31c),'type':_0x3d059d['COMMAND'],'handler'(_0x559998,_0x2641dd){const _0x114573=_0x5daf81;var _0x3a06e5;if(!_0x2641dd)return!0x1;let {unitId:_0x3e1001,tableId:_0x77f0f6,parentRecordId:_0x500071}=_0x2641dd,_0x1571d9=_0x559998[_0x114573(0x315)](_0x364596),_0x432dba=_0x1571d9[_0x114573(0x1ed)](_0x3e1001,_0x2ddca0[_0x114573(0x33d)]);if(!_0x432dba||!$(_0x432dba,_0x77f0f6,{'recordIds':[_0x500071]}))throw new P(_0x114573(0x3e8));let _0x436da3=_0x432dba[_0x114573(0x2f3)](),_0x15e8d8=_0x436da3[_0x114573(0x2f7)][_0x77f0f6],_0x1e0cc1=qe(_0x15e8d8),_0x154d3b=_0x1e0cc1??_0x2641dd[_0x114573(0x4a1)]??Je(_0x15e8d8);if(_0x1e0cc1&&_0x2641dd['fieldId']&&_0x2641dd[_0x114573(0x4a1)]!==_0x1e0cc1||_0x15e8d8['fields'][_0x154d3b]&&!F(_0x15e8d8,_0x154d3b))throw new P(_0x114573(0x48a));if((tt(_0x15e8d8,_0x154d3b)[_0x114573(0x2f5)][_0x114573(0x315)](_0x500071)??0x0)+0x1>=0x5)throw new P('maxDepth');if(!_a(_0x432dba,_0x77f0f6,_0x2641dd[_0x114573(0x1b5)]))return!0x1;let _0x188b3b=va({..._0x2641dd[_0x114573(0x1b5)],'values':{..._0x2641dd[_0x114573(0x1b5)][_0x114573(0x45b)],[_0x154d3b]:Re([_0x500071])}}),_0x5bae4e=_0x559998[_0x114573(0x315)](Kr),_0x4f021a=new W(),_0x103452=_0x15e8d8[_0x114573(0x503)][_0x154d3b],_0x55fc4e=_0x103452?((_0x3a06e5=N(_0x103452))==null?void 0x0:_0x3a06e5['relationRole'])===_0x1d1c88[_0x114573(0x3fa)]?null:_0x4f021a[_0x114573(0x23d)](_0x436da3,_0x77f0f6,_0x154d3b,{'config':{..._0x103452[_0x114573(0x396)],'relationRole':_0x1d1c88['Parent']}}):_0x5bae4e['createCreateFieldOp'](_0x432dba,_0x77f0f6,Ye(_0x15e8d8,_0x154d3b,_0x2641dd[_0x114573(0x1e3)]),_0x15e8d8[_0x114573(0x1d6)][_0x114573(0x21d)]),_0x33d98f=_0x5bae4e['createCreateRecordOp'](_0x432dba,_0x77f0f6,_0x188b3b),_0x4e92dd=R([..._0x55fc4e?[_0x55fc4e]:[],_0x33d98f]),_0xa4c801=new z()[_0x114573(0x388)](_0x436da3,_0x4e92dd),_0x2768a1={'tableId':_0x77f0f6,'fieldId':_0x154d3b,'recordId':_0x188b3b['id'],'oldParentRecordId':null,'parentRecordId':_0x500071},_0x309166={'unitId':_0x3e1001,'op':_0x4e92dd,'trigger':wa['id'],'hierarchyChanges':[_0x2768a1],'source':_0x2641dd['source']??'ui'},_0x58f83c={..._0x309166,'source':'redo'},_0x3b4459={'unitId':_0x3e1001,'op':_0xa4c801,'trigger':wa['id'],'hierarchyChanges':[{..._0x2768a1,'oldParentRecordId':_0x500071,'parentRecordId':null}],'source':'undo'};return _0x559998[_0x114573(0x315)](_0x2ca718)[_0x114573(0x1e6)](Q['id'],_0x309166)?(_0x1571d9[_0x114573(0x2ac)](_0x3e1001),_0x559998[_0x114573(0x315)](_0x51376c)[_0x114573(0x34a)]({'unitID':_0x3e1001,'undoMutations':[{'id':Q['id'],'params':_0x3b4459}],'redoMutations':[{'id':Q['id'],'params':_0x58f83c}]}),!0x0):!0x1;}},Ta={'id':'base.command.create-base-field','type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x4fb987,_0x4f594a){const _0xc0c197=_0x5daf81;if(!_0x4f594a)return!0x1;let _0x49f3e3=_0x4fb987[_0xc0c197(0x315)](_0x364596),{unitId:_0x380923,tableId:_0xdaa3fc,field:_0x1616f4,index:_0x4820a2,viewIndexes:_0x3b7a17}=_0x4f594a,_0x245238=_0x49f3e3[_0xc0c197(0x1ed)](_0x380923,_0x2ddca0[_0xc0c197(0x33d)]);if(!_0x245238||!$(_0x245238,_0xdaa3fc)||_0x245238['getSnapshot']()[_0xc0c197(0x2f7)][_0xdaa3fc]['fields'][_0x1616f4['id']]||_0x4820a2===0x0||!ha(_0x245238,_0xdaa3fc,_0x1616f4))return!0x1;let _0x4afbd6=_0x4fb987[_0xc0c197(0x315)](_0x2ca718),_0x2d1d36=_0x4fb987[_0xc0c197(0x315)](_0x51376c),_0x569554=_0x4fb987['get'](Kr)[_0xc0c197(0x539)](_0x245238,_0xdaa3fc,_0x1616f4,_0x4820a2,_0x3b7a17),_0x1cf9d2=new z()[_0xc0c197(0x388)](_0x245238[_0xc0c197(0x2f3)](),_0x569554),_0xc2e04a={'unitId':_0x380923,'op':_0x569554},_0x5cf7d6={'unitId':_0x380923,'op':_0x1cf9d2};return _0x4afbd6[_0xc0c197(0x1e6)](Q['id'],_0xc2e04a)?(_0x49f3e3[_0xc0c197(0x2ac)](_0x380923),_0x2d1d36['pushUndoRedo']({'unitID':_0x380923,'undoMutations':[{'id':Q['id'],'params':_0x5cf7d6}],'redoMutations':[{'id':Q['id'],'params':_0xc2e04a}]}),!0x0):!0x1;}},Ea={'id':_0x5daf81(0x43d),'type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x2a02c0,_0x4325d5){const _0x3d2126=_0x5daf81;if(!_0x4325d5)return!0x1;let _0x47a04b=_0x2a02c0['get'](_0x364596),{unitId:_0x346ad8,tableId:_0x174260,record:_0x20940d}=_0x4325d5,_0x434b59=_0x47a04b[_0x3d2126(0x1ed)](_0x346ad8,_0x2ddca0[_0x3d2126(0x33d)]);if(!_0x434b59||!$(_0x434b59,_0x174260))return!0x1;let _0x420d5e=_0x2a02c0[_0x3d2126(0x315)](_0x2ca718),_0x7be5ad=_0x2a02c0[_0x3d2126(0x315)](_0x51376c),_0x18eabc=_0x2a02c0[_0x3d2126(0x315)](Kr),_0x3988ba=_0x434b59[_0x3d2126(0x2f3)](),_0x111e91=ba(_0x434b59,_0x174260,[_0x20940d]);if(!_0x111e91)return!0x1;let [_0x3dc6ca]=_0x111e91[_0x3d2126(0x43a)],{hierarchyChanges:_0xa3cb62,hierarchyFieldToMaterialize:_0x5cfbb6}=_0x111e91,_0x5c2d17=_0x5cfbb6?_0x18eabc['createCreateFieldOp'](_0x434b59,_0x174260,_0x5cfbb6,_0x3988ba[_0x3d2126(0x2f7)][_0x174260][_0x3d2126(0x1d6)][_0x3d2126(0x21d)]):null,_0x1db1c8=_0x18eabc[_0x3d2126(0x52d)](_0x434b59,_0x174260,_0x3dc6ca),_0x473e66=R([..._0x5c2d17?[_0x5c2d17]:[],_0x1db1c8]),_0x368c44=new z()['invertOp'](_0x3988ba,_0x473e66),_0xa261c8={'unitId':_0x346ad8,'op':_0x473e66,'hierarchyChanges':_0xa3cb62[_0x3d2126(0x21d)]?_0xa3cb62:void 0x0,'source':_0xa3cb62[_0x3d2126(0x21d)]?_0x4325d5[_0x3d2126(0x1e1)]??'ui':void 0x0},_0x5b35ee={..._0xa261c8,'source':_0xa3cb62['length']?_0x3d2126(0x424):void 0x0},_0x282802={'unitId':_0x346ad8,'op':_0x368c44,'hierarchyChanges':_0xa3cb62['length']?_0xa3cb62['map'](_0x35b719=>({..._0x35b719,'oldParentRecordId':_0x35b719[_0x3d2126(0x419)],'parentRecordId':null})):void 0x0,'source':_0xa3cb62['length']?_0x3d2126(0x3a8):void 0x0};return _0x420d5e[_0x3d2126(0x1e6)](Q['id'],_0xa261c8)?(_0x47a04b[_0x3d2126(0x2ac)](_0x346ad8),_0x7be5ad[_0x3d2126(0x34a)]({'unitID':_0x346ad8,'undoMutations':[{'id':Q['id'],'params':_0x282802}],'redoMutations':[{'id':Q['id'],'params':_0x5b35ee}]}),!0x0):!0x1;}},Da=_0x5daf81(0x325);function Oa(_0x3abf13,_0x5e57ef,_0x358a24){const _0xb5c856=_0x5daf81;if(!_0x5e57ef[_0xb5c856(0x3a5)]())return{'valid':!0x1,'reason':_0xb5c856(0x359),'error':_0xb5c856(0x4db)};if(_0x5e57ef[_0xb5c856(0x21d)]>0x1f)return{'valid':!0x1,'reason':'Use\x2031\x20characters\x20or\x20fewer.','error':'too-long'};if(_0x5e57ef[_0xb5c856(0x265)]('\x27')||_0x5e57ef[_0xb5c856(0x528)]('\x27'))return{'valid':!0x1,'reason':_0xb5c856(0x518),'error':_0xb5c856(0x520)};if(/[:\\/?*\[\]]/[_0xb5c856(0x27c)](_0x5e57ef))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':_0xb5c856(0x2aa)};if(!_0x89c043(_0x5e57ef))return{'valid':!0x1,'reason':_0xb5c856(0x23a),'error':_0xb5c856(0x30c)};let _0x1af12f=_0x5e57ef[_0xb5c856(0x40c)]();return Object[_0xb5c856(0x45b)](_0x3abf13[_0xb5c856(0x2f7)])[_0xb5c856(0x387)](_0x5ce164=>_0x5ce164['id']!==_0x358a24&&_0x5ce164[_0xb5c856(0x322)][_0xb5c856(0x40c)]()===_0x1af12f)?{'valid':!0x1,'reason':_0xb5c856(0x45f),'error':_0xb5c856(0x3ba)}:{'valid':!0x0};}function ka(_0x32e277,_0x1f47a6){const _0x2750bd=_0x5daf81;let _0x33a052=_0x1f47a6[_0x2750bd(0x39b)](/[:\\/?*\[\]]/g,'\x20')[_0x2750bd(0x39b)](/^'+|'+$/g,'')[_0x2750bd(0x3a5)]()||_0x2750bd(0x4e7),_0x53da00=0x1;for(;;){let _0x1dd095=_0x53da00===0x1?'':'\x20'+_0x53da00,_0xb27612=''+_0x33a052['slice'](0x0,0x1f-_0x1dd095['length'])+_0x1dd095;if(Oa(_0x32e277,_0xb27612)[_0x2750bd(0x36d)])return _0xb27612;_0x53da00++;}}const Aa={'id':_0x5daf81(0x1dd),'type':_0x3d059d['COMMAND'],'handler':(_0x2b50eb,_0x85c3f6)=>{const _0x48bff9=_0x5daf81;if(!_0x85c3f6)return!0x1;let _0x17c8ab=_0x2b50eb[_0x48bff9(0x315)](_0x364596),{unitId:_0x2c480f,table:_0x8483c5,index:_0x18b947}=_0x85c3f6,_0x3031fb=_0x17c8ab[_0x48bff9(0x1ed)](_0x2c480f,_0x2ddca0[_0x48bff9(0x33d)]);if(!_0x3031fb||_0x3031fb[_0x48bff9(0x2f3)]()[_0x48bff9(0x2f7)][_0x8483c5['id']]||!Oa(_0x3031fb['getSnapshot'](),_0x8483c5['name'])[_0x48bff9(0x36d)])return!0x1;try{_0x3db867(_0x8483c5);}catch{return!0x1;}let _0x2b7824=_0x2b50eb[_0x48bff9(0x315)](_0x2ca718),_0x462419=_0x2b50eb[_0x48bff9(0x315)](_0x51376c),_0x4fd3a5=_0x3031fb[_0x48bff9(0x2f3)](),_0x35f115=new W()[_0x48bff9(0x3e6)](_0x4fd3a5,_0x8483c5,_0x18b947),_0x22c272=new z()[_0x48bff9(0x388)](_0x4fd3a5,_0x35f115),_0x237c74={'unitId':_0x2c480f,'op':_0x35f115},_0x26c4dc={'unitId':_0x2c480f,'op':_0x22c272};return _0x2b7824[_0x48bff9(0x1e6)](Q['id'],_0x237c74)?(_0x17c8ab[_0x48bff9(0x2ac)](_0x2c480f),_0x462419[_0x48bff9(0x34a)]({'unitID':_0x2c480f,'undoMutations':[{'id':Q['id'],'params':_0x26c4dc}],'redoMutations':[{'id':Q['id'],'params':_0x237c74}]}),!0x0):!0x1;}};function ja(_0xad7e13,_0xfcda0c,_0x223d60=[]){const _0x2d7d27=_0x5daf81;let _0x54cd08=new Set([...Object[_0x2d7d27(0x45b)](_0xad7e13[_0x2d7d27(0x503)])['filter'](_0x58aba2=>_0x58aba2)[_0x2d7d27(0x2b0)](_0x6e97ce=>_0x6e97ce[_0x2d7d27(0x322)]),..._0x223d60['map'](_0x554813=>_0x554813[_0x2d7d27(0x322)])]);if(!_0x54cd08[_0x2d7d27(0x253)](_0xfcda0c))return _0xfcda0c;let _0x5345af=0x2;for(;_0x54cd08[_0x2d7d27(0x253)](_0xfcda0c+'\x20'+_0x5345af);)_0x5345af++;return _0xfcda0c+'\x20'+_0x5345af;}function Ma(_0x271e00,_0x14547a){const _0x337edc=_0x5daf81;if(!_0x271e00||!_0x14547a[_0x337edc(0x21d)])return;let _0x1fac2e=[..._0x271e00];return _0x14547a['forEach'](_0x1cd64c=>{const _0x478460=_0x337edc;_0x1fac2e[_0x478460(0x4f9)](_0x1cd64c)||_0x1fac2e['push'](_0x1cd64c);}),_0x1fac2e;}const Na={'options':[{'id':'todo','name':'Todo','color':_0x5daf81(0x330)},{'id':_0x5daf81(0x1e0),'name':_0x5daf81(0x47e),'color':_0x5daf81(0x3c0)},{'id':_0x5daf81(0x2a4),'name':_0x5daf81(0x29d),'color':_0x5daf81(0x440)}]},Pa={'locale':_0x5daf81(0x231),'pattern':_0x5daf81(0x286),'includeTime':!0x1,'hourCycle':_0x5daf81(0x34c),'defaultMode':_0x5daf81(0x3e4)};function Fa(_0x3b44b6,_0xbab8d2,_0x1358f5,_0x512ea6){const _0xce6ca2=_0x5daf81;var _0x53c2b9;let _0x2086c1=new W(),_0x3854b7=_0x3b44b6['tables'][_0xbab8d2],_0x1d5596=_0x3854b7?{..._0x1358f5,'fieldOrder':[_0x4a6fc3,...(_0x1358f5['fieldOrder']??_0x3854b7[_0xce6ca2(0x1d6)])[_0xce6ca2(0x32f)](_0x444642=>_0x444642!==_0x4a6fc3)],'fieldSettings':{..._0x1358f5['fieldSettings'],[_0x4a6fc3]:{...(_0x53c2b9=_0x1358f5[_0xce6ca2(0x508)])==null?void 0x0:_0x53c2b9[_0x4a6fc3],'hidden':!0x0}}}:_0x1358f5;if(_0x3854b7&&_0x1d5596[_0xce6ca2(0x305)]===_0xce6ca2(0x37b)){let _0x2ff99e=La(_0x3854b7,_0x1d5596),_0x4f207d=_0x2ff99e['changed']?{..._0x1d5596,'config':_0x2ff99e[_0xce6ca2(0x396)],'fieldOrder':_0x2ff99e['fieldOrder']??_0x1d5596['fieldOrder']}:_0x1d5596;return R([..._0x2ff99e['fields'][_0xce6ca2(0x2b0)](_0x2bd72b=>_0x2086c1[_0xce6ca2(0x543)](_0x3b44b6,_0xbab8d2,{'field':_0x2bd72b})),_0x2086c1['createView'](_0x3b44b6,_0xbab8d2,_0x4f207d,_0x512ea6)]);}if(!_0x3854b7||_0x1d5596['type']!==_0xce6ca2(0x3b7)&&_0x1d5596[_0xce6ca2(0x305)]!==_0xce6ca2(0x4c3))return _0x2086c1[_0xce6ca2(0x1b6)](_0x3b44b6,_0xbab8d2,_0x1d5596,_0x512ea6);let _0x21f001=Ia(_0x3854b7,_0x1d5596),_0x363ff6=_0x21f001[_0xce6ca2(0x52c)]?{..._0x1d5596,'config':_0x21f001['config'],'fieldOrder':_0x21f001['fieldOrder']??_0x1d5596[_0xce6ca2(0x1d6)]}:_0x1d5596;return _0x1d5596[_0xce6ca2(0x305)]==='gantt'&&Ba(_0x1d5596)&&(_0x363ff6=Va(_0x3854b7,_0x363ff6,_0x21f001['fields'])),R([..._0x21f001[_0xce6ca2(0x503)][_0xce6ca2(0x2b0)](_0x2f5899=>_0x2086c1[_0xce6ca2(0x543)](_0x3b44b6,_0xbab8d2,{'field':_0x2f5899})),_0x2086c1[_0xce6ca2(0x1b6)](_0x3b44b6,_0xbab8d2,_0x363ff6,_0x512ea6)]);}function Ia(_0x4110fa,_0x57abf6,_0x51b637=!0x1){const _0x5b9074=_0x5daf81;var _0x555038,_0x167af9;let _0x2253c9=_0x4110fa[_0x5b9074(0x1d6)][_0x5b9074(0x32f)](_0x5c5c85=>Ua(_0x4110fa,_0x5c5c85)),_0x555fe5=[],_0x44a57b={..._0x57abf6[_0x5b9074(0x396)]??{}},_0x9edfd2=typeof _0x44a57b[_0x5b9074(0x3d5)]==_0x5b9074(0x2ed)&&Ua(_0x4110fa,_0x44a57b[_0x5b9074(0x3d5)])?_0x44a57b[_0x5b9074(0x3d5)]:_0x2253c9[0x0],_0x9c101d=typeof _0x44a57b[_0x5b9074(0x39a)]==_0x5b9074(0x2ed)&&Ua(_0x4110fa,_0x44a57b[_0x5b9074(0x39a)])&&_0x44a57b[_0x5b9074(0x39a)]!==_0x9edfd2?_0x44a57b[_0x5b9074(0x39a)]:_0x2253c9[_0x5b9074(0x2d8)](_0x2c2f3f=>_0x2c2f3f!==_0x9edfd2);if(!_0x9edfd2){let _0x365b58=Wa(_0x4110fa,_0x555fe5,_0x57abf6[_0x5b9074(0x305)]==='gantt'?_0x5b9074(0x470):'Date');_0x555fe5[_0x5b9074(0x482)](_0x365b58),_0x9edfd2=_0x365b58['id'];}if((_0x57abf6[_0x5b9074(0x305)]===_0x5b9074(0x4c3)||_0x51b637)&&!_0x9c101d){let _0x39e812=Wa(_0x4110fa,_0x555fe5,'End\x20date');_0x555fe5['push'](_0x39e812),_0x9c101d=_0x39e812['id'];}_0x57abf6[_0x5b9074(0x305)]===_0x5b9074(0x3b7)&&!_0x9c101d&&delete _0x44a57b['endDateFieldId'],_0x44a57b[_0x5b9074(0x3d5)]=_0x9edfd2,_0x57abf6[_0x5b9074(0x305)]===_0x5b9074(0x3b7)&&_0x9c101d&&(_0x44a57b[_0x5b9074(0x39a)]=_0x9c101d),_0x57abf6[_0x5b9074(0x305)]==='gantt'&&(_0x44a57b[_0x5b9074(0x39a)]=_0x9c101d??_0x9edfd2);let _0x426265=Ma(_0x57abf6[_0x5b9074(0x1d6)],_0x555fe5['map'](_0x1185b0=>_0x1185b0['id']));return{'changed':_0x555fe5[_0x5b9074(0x21d)]>0x0||_0x44a57b[_0x5b9074(0x3d5)]!==((_0x555038=_0x57abf6[_0x5b9074(0x396)])==null?void 0x0:_0x555038[_0x5b9074(0x3d5)])||_0x44a57b['endDateFieldId']!==((_0x167af9=_0x57abf6[_0x5b9074(0x396)])==null?void 0x0:_0x167af9[_0x5b9074(0x39a)])||!(!_0x426265||_0x9abbbc[_0x5b9074(0x21f)](_0x426265,_0x57abf6[_0x5b9074(0x1d6)]??[])),'fields':_0x555fe5,'config':_0x44a57b,'fieldOrder':_0x426265};}function _0x38bd(){const _0x43892c=['_onCommandExecuted','1666394NKZfNU','includeTime','188293OEpTQQ','forEach','YYYY-MM-DD','nodes','count','Link','write','__UNIVER_BASE_PERF__','fld-','dateMode','_formulaService','base.command.update-base-view-config','_kanbanLaneTitle','canDeleteField','_isGanttDateField','conjunction','setConfig','stringify','records','createDeleteRecordsUndoOp','_ganttBarColor','base.command.create-base-record','_permissionService','autoIncrement','#BBF7D0','normal','_normalizeGanttConfig','_instanceService','format','THIS_WEEK','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','round','onCommandExecuted','bases-exchange-client.operation.export-base-by-format',',,\x22M\x22','COMMAND','attachment-','setViewFieldVisible','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','[BaseCommandService]:\x20cannot\x20edit\x20table.','_plugins','\x22.\x20Allowed\x20operators:\x20','_syncBaseUnit','Base\x20','conditional','start','_activeDirtyManagerService','attachment','fromCollab','quarter','1PswhJs','values','_resolveBaseId','#,##0.00','deleteRecord','A\x20table\x20with\x20this\x20name\x20already\x20exists.','[BaseHierarchy]:\x20','renameView','major-','[BasePerf]\x20','_formulaCalculationSessionService','changes','_projectHierarchyGroups','_groupConfigCacheSegment','_kanbanLaneColor','min','finally','IS_NOT','createUpdateCellOp','leftPaneWidth','bases-exchange-client.operation.export-base','keys','Start\x20date','clearViewPermission','Working\x20day','getPermissionPoint','cellRevision','invertWithDoc','exceptions','canCreateTable','titleFieldId','weekdays','bases.remote.config','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','Date','_fieldRegistry','Doing','Grid','Number','getInstance','push','reason','hourCycle','_normalizeGanttDisplayColor','Date1900','baseRows','attachmentSet','getTime','invalidField','_getSystemFieldValue','_registeredSuperTableNames','resources','http:','\x22\x20is\x20referenced\x20by\x20','setBaseName','remove','toLocaleString','Gallery','formula','_projectGroups','repairViewConfig','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20cannot\x20delete\x20record.','_groupCellInvalidations','_resolveCalendarDateFieldId','groupFieldId','getFocusedUnit','setSnapshot','options','LESS_THAN','_createRecordOrderOp','fieldId','_filterSortFieldIds','subtreeHeightByRecordId','getCapabilities','getAll','_applyFormulaResult','exec','Formula','save','_buildGantt','repeat','exists','optionSource','date','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','patches','afterViewId','check','useThousands','invalidateByField','isNot','decimalPlaces','lessThanOrEqual','EXACT','base.command.set-base-view-sort','empty','Checkbox','_deleteAttachmentResources','canCreateField','medium','base.mutation.','initializeUnit','globalRevision','_getTable','gantt','orderedRecordIds','strategies','displayColor','_resolveCardTitleFieldId','getCurrentUnitOfType','updateViewConfig','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','_applier','base.command.update-base-view-conditional-color-rules','MUTATION','invalidateByOp','@univerjs-pro/bases','_rememberTable','_initialize','_baseSyncDisposables','UpdatedBy','formula.mutation.set-formula-calculation-result','[BaseField]:\x20invalid\x20date\x20value.','Clear','hasOwnProperty','_enqueueFormulaSync','split','createRecords','required','validateFormula','timeZone','[BaseCommandService]:\x20cannot\x20edit\x20cell.','Checked','description','InvalidField','prototype','base.viewType.gantt','recordNamePrefix','descend','497928jsdXpG','Table','usableAsGanttStart','_patchProjectedRowsForCellInvalidations','setViewFilter','_filterRows','_commandService','deleteTable','add','_recordIds','_groupsCacheKey','packageName','base-range-values-v1','parentByRecordId','_scheduledSuperTableSyncs','changeFieldType','33457080ujRLum','_getViewRevision','emitPermissionDenied','includes','getTypePlugin','_scheduleSuperTableSync','h12','greaterThan','url','toPlainText','base.command.set-base-name','lastIndex','_clearObjectEdit','fields','getItem','NEXT_30_DAYS','getUnitId','showFieldNames','fieldSettings','ruleId','field','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','_groupProjectionFieldIds','Redo','UTC','BASE','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','setViewFieldOrder','getUTCDay','deleteField','greaterThanOrEqual','MissingParent','formulaName','currencySymbol','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','28uBwiMa','[BaseField]:\x20invalid\x20checkbox\x20value.','afterFieldId','error','_resolveKanbanGroupFieldId','_calendarEventColor','primaryFieldId','apostrophe','_initDependencies','_createSystemFieldValuePatches','base.command.set-base-view-group','table','applyOp','pattern','BASE_OBJECT_PERMISSION_PLUGIN','endsWith','setRecordValues','BaseRecord','getFullYear','changed','createCreateRecordOp','[BaseField]:\x20invalid\x20progress\x20value.','setBasePermission','measure','_globalRevision','short','GREATER_THAN','cardSize','registerCommand','_removeSuperTables','_resolveKanbanCoverFieldId','commaPeriod','createCreateFieldOp','_isNonEmptyCellValue','_normalizeCalendarDisplayColor','_viewRevisions','number','month','IS_NOT_EMPTY','bases.config','_getTableRevision','base.fieldType.','createField','Unsupported\x20Base\x20permission\x20object:\x20','_factory','readonly','tryMaterializeSnapshot','columns','register','base.resource.service','viewRevision','pickerFieldIds','selectField','base.command.delete-base-field','mode','sum','allowMultiple','_univerInstanceService','includeRecords','base.mutation.apply-base-json1','Edit','createBatchCreateRecordsOp','_configService','isNotEmpty','_isKanbanGroupField','_registerUnitPermissionPoints','base.command.move-base-field','createUnit','_T_','function','owner','getUTCDate','majorHeaders','replaceOp','getTypeOfUnitAdded$','findIndex','-field-name','BOOLEAN','missingField','record','createView','base.viewType.kanban','createdAt','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','set','$1\x20','_isAllDayGanttDateRange','getAllPermissionPoint','canEditCell','_patchCachedProjectedRows','BaseProjection.filterAndSortRows','score','isValid','revision','getDependencies','beforeFieldId','recordId','_title','#16a34a','updatePermissionPoint','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','slice','column','registerSyncingMutations','frozenFieldCount','CreateView','_getOrderedRecords','decorate','setHours','cellData','onlyLocal','now','fieldOrder','setRangeValues','allowNegative','notContains','Text','base.command.set-base-range-values','base.mutation.set-permission-rules','base.command.create-base-table','BaseTable','objectType','doing','source','_replaceOptional','parentFieldName','canDeleteTable','renameFormulaUnitReferences','syncExecuteCommand','Numbering','views','Person','at\x20index\x20','scale','rowId','getUnit','_hierarchyIndexCache','_deleteRecordsBaseOp','getOwnPropertyDescriptor','lessThan','target','-record-','abbreviation','base.command.update-base-record-order','showTodayLine','_fieldPermissions','Attachment','COLUMN','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','object','_withModifiedSystemValues','clearRecordPermission','SelfParent','_syncSuperTables','[RecordLink]:\x20field\x20config\x20is\x20invalid.','_rowTransformCacheSegment','localeCompare','cell','\x20must\x20have\x20a\x20non-empty\x20id.','registerRuleModel','_viewRowsCacheKey','_sortRows','subType','fieldIds','Currency','label','invalidGanttEndField','base.command.set-base-view-filter','deleteRecords','recordCount','base.command.set-base-view-field-order','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','BaseProjection.materializeTableRows','[BaseField]:\x20invalid\x20rating\x20value.','BaseHierarchyError','_getCellRevision','_cellRevisions','createSuperTableReference','edit','hidden','snapshot','_setAttachmentResources','BaseJson1.normalizeTables','length','groups','diffValue','_cellInvalidationsTouchFields','tableId','getUTCMonth','_formulaSyncQueue','defaultValue','coverFieldId','primaryFieldName','292485HpfRNY','basePerf','_kanbanGroupKeys','numfmt','_basePermissions','trigger','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','level','working','raw','en-US','base.command.delete-base-record','Unsupported\x20Base\x20permission\x20action:\x20','tableRevision','_cellInvalidations','compare','_matchesGanttColorRule','Rating','_findCalendarDateFieldId','Choose\x20another\x20name.','this-row','hierarchy','updateField','FORCE_STRING','base.command.update-base-field-description','validate','_getTablesToNormalize','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','compress','_createNumberingAllocators','conditions','operator','_getAllBaseDependencyTreeCacheMap','usableAsGanttEnd','base.command.delete-base-view','_normalizeCalendarConfig','card','delete-view','unitData','isNaN','_isAllDayCalendarEvent','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','reduce','embed-ui','has','result','_initRegistries','projection','Progress','deletePermissionPoint','members','IBaseCellData.ensureTableCellLayout','maxDepth','indexOf','toString','path','constructor','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','default','_materializeGroups','_initCommands','searchTexts','startsWith','oldParentRecordId','long','recordPatch','PAST_30_DAYS','undefined','base.command.rename-base-table','boolean','removeOp','getAffectedRanges','\x20permission\x20denied.','_getStructureDirtyTableIds','general',',,,\x22B\x22','all','base.viewType.grid','unknown','descendPath','[BaseCommandService]:\x20cannot\x20edit\x20record.','setRule','getCurrentUser','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','codePointAt','test','year','manageView','base.command.move-base-hierarchy-record','fromChangeset','rowIndexById','Set','createRecord',',\x22K\x22','Remote','yyyy/mm/dd','userID','NUMBER','Empty','HH:mm','_viewPermissions','onStarting','canEditTable','deepClone','RecordId','_buildKanban','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','addPermissionPoint','contains','usableAsCardCover','policy','BaseJson1.cloneForOp','base.command.set-base-view-field-width','_tableRevisions','false','subtreeEndIndex','Export','max','Done','kind','UpdatedAt','base.command.set-base-view-field-visible','invalidateByView','orderKey','embedId','done','cycle','getCurrentUserId','_initDataSync','[DeleteBaseTableCommand]:\x20table\x20\x22','LAST_WEEK','invalid-characters','every','focusUnit','mark','_setObjectEdit','manual','map','view/','_isCalendarDateField','_projectFields','_normalizeCellValue','_bumpTableRevision','insertOp','_canEditTable','average','setTablePermission','week','YYYY/MM/DD','thread-comment.command.','canEditField','createSetRecordValuesOp','timeslotSize','_recordPermissions','workingDays','createRegExpFromSafeFragment','version','rowIndex','_views','_canEdit','#,##0','_tablePermissions','children','Yes','_isColorfulKanbanGroupField','setRules','BaseView','[BaseViewRegistryService]:\x20view\x20type\x20\x22','editable','blue','day','_getCurrentUserId','moveView','key','getDay','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_resolveGalleryCardFieldIds','find','unshift','getProjection','_viewRevisionKey','locale','displayText','[BaseCommandService]:\x20cannot\x20create\x20field.','leftPaneCollapsed','rules','[BaseCommandService]:\x20record-id\x20is\x20reserved.','[BaseHierarchy]:\x20field\x20\x22','bases.fieldConfig.textPlaceholder','entries','user','RecordLink','_runtimeContext',':start','unsubscribe','base.command.delete-base-table','_materializeFormulaTableNames','\x22\x20is\x20not\x20registered.','string','rule','updateCell','col','workingDaysOnly','beforeViewId','getSnapshot','pluginName','depthByRecordId','_apply','tables','viewIndexes','_buildCalendar','getUnitType','_getJson1DirtyData','isFinite','valueOf','end','title','Uncategorized','fieldIndex','deleteView','gridViewId','__base_hierarchy_parent__','type','periodComma','THIS_MONTH','_capabilities','General','join','operand','invalid','toFixed','BaseJson1.json1Apply','PAST_7_DAYS','catch','MM-DD','_buildGrid','attachmentSets','disposeWithMe','get','base.command.set-base-table-hierarchy-field','isInteger','search','_tableBaseIds','invalidGroupField','canCreateRecord','base.command.create-base-child-record','off','isArray','_projectedGroupsCache','direction','dashboard/','name','size','base.command.set-permissions','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).','clearUnit','executeCommand','facade','remote','isEmpty','rootRecordIds','_cacheKey','spacePeriod','unitOtherData','filter','#BFDBFE','Copy','Comment','progressFieldId','invalidateByCell','collaborators','_setViewFieldSetting','targetTableId','table/','duplicateRecord','order','https:','colId','UNIVER_BASE','relationRole','filled','code','subscribe','https://','selfParent','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','width','matchAll','Base','create-view','pushUndoRedo','view-','h24','getAllUnitsForType','[BaseCommandService]:\x20cannot\x20create\x20record.','usableAsCalendarDate','regenerateViewIds','action','_getHierarchyIndex','_projectRows','limit','Invalid\x20object\x20permission\x20batch.','WriteCursor','BaseDashboard','syncUnit','Table\x20name\x20is\x20required.','local','updatedAt','1.3.1','call','setViewPermission','AFTER','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','createViewId','\x22\x20does\x20not\x20exist.','compose','editCell','_resolveGalleryCoverFieldId','CreatedBy','setViewSort','base-snapshot-v1','iterator','_fastSortRows','_getAllTableIds','flatMap','valid','displayFieldId','attachments','#3b82f6','markResultApplied','rows','canManageView','symbol','base.command.create-base-view','STRING','Group','[BaseField]:\x20invalid\x20email\x20value.',':end','defineProperty','kanban','base-perf-','_formulaCalculationTriggerService','MaxDepth','exception-','Unchecked','-view-grid','updatedBy','base.viewType.gallery','unitWidth','_injector','Gantt','some','invertOp','person','_normalizeGalleryConfig','_projectedRowsCache','BaseJson1.syncCellInvalidations','abs','text','_createNumberingAllocator','_getKanbanConfiguredLanes','index','colorFieldId','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','_resolveGanttDateFieldId','href','config','_resolveKanbanCardFieldIds','depth','dispose','endDateFieldId','replace','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_createRecordWithDefaults','Cycle','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','3794094RsqETd','MultiSelect','[BaseCommandService]:\x20cannot\x20manage\x20view.','childUnitId','Phone','trim','view','\x20has\x20unsupported\x20date\x20mode\x20\x22','undo','spaceComma','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','base.command.service','BaseProjection.projectGroups','#14b8a6','delete','SingleSelect','_dataSyncPrimaryController','_projectionCache','NumberFormat','hostAnchorId','Import','canEditRecord','separatorStyle','calendar','info','colIndex','duplicate','fieldName','_check','multiple','color','Calendar','#FDE68A','BaseField','viewId','renameTable','base.command.duplicate-base-field','sort','Kanban','getTypeOfUnitDisposed$','moveField','_clearUnit','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','unitId','base.mutation.set-permission-rule','[BaseField]:\x20invalid\x20number\x20value.','getUTCFullYear','246BErXhC','INIT','invalidReasonByRecordId','objectId','registerView','registerCtorForType','startDateFieldId','lastIndexOf','_config','recordIds','h:mm\x20a','recordOrder','system','[BaseCommandService]:\x20invalid\x20field\x20definition.','False','childrenByParentId','\x20has\x20unsupported\x20target\x20\x22','DeleteView','_disposed','_executeSuperTableMutationWhileActive','toPrimitive','none','sortedView','createTable','cardLayout','missingRecord','group','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','_isAllowedKanbanGroupField','protocol','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','tableOrder','record/','status','custom','unique','base.viewType.calendar','clearTablePermission','splice','updateRecordOrder','getStructuredDependencies','Failed\x20to\x20create\x20update\x20cell\x20operation:','_projectedViewRowsCache','Parent','CreatedAt','[BaseCommandService]:\x20cannot\x20edit\x20field.','value','[RecordLink]:\x20target\x20record\x20\x22','UNIVER_EMBED_BASES_TABLE','clear','pop','3777424vfssng','base.command.update-base-field','from','_assertFieldDefinition','row','fromEntries','canDeleteRecord','base.command.ensure-base-temporal-view-date-fields','clearBasePermission','setViewGroup','toLowerCase','getMonth','true','[BaseFormula]:\x20table\x20does\x20not\x20exist.','viewOrder','_setFormulaFieldCells','[BaseCommandService]:\x20cannot\x20create\x20table.','univer.basePerf','duplicateField','base.projection.service','createdBy','tableName','columnSettings','parentRecordId','setViewFieldWidth','[BaseFormula]:\x20table\x20\x22','_findKanbanGroupField','_createNumberingFieldValuePatches','_setCachedProjection','data','base.command.update-base-cell','CONTAINS','params','_applyingFormulaResults','redo'];_0x38bd=function(){return _0x43892c;};return _0x38bd();}function La(_0x2ba77a,_0x4724f4){const _0x5c9c25=_0x5daf81;var _0x55f4d8;let _0x25e25f=[],_0x5720ca={..._0x4724f4['config']??{}},_0x5af494=typeof _0x5720ca[_0x5c9c25(0x49b)]==_0x5c9c25(0x2ed)&&Ra(_0x2ba77a,_0x5720ca[_0x5c9c25(0x49b)])?_0x5720ca[_0x5c9c25(0x49b)]:_0x2ba77a['fieldOrder'][_0x5c9c25(0x2d8)](_0x453562=>Ra(_0x2ba77a,_0x453562));if(!_0x5af494){let _0x4f83fa=za(_0x2ba77a,_0x25e25f);_0x25e25f[_0x5c9c25(0x482)](_0x4f83fa),_0x5af494=_0x4f83fa['id'];}_0x5720ca[_0x5c9c25(0x49b)]=_0x5af494;let _0x347901=Ma(_0x4724f4[_0x5c9c25(0x1d6)],_0x25e25f[_0x5c9c25(0x2b0)](_0x36fa43=>_0x36fa43['id']));return{'changed':_0x25e25f[_0x5c9c25(0x21d)]>0x0||_0x5720ca['groupFieldId']!==((_0x55f4d8=_0x4724f4[_0x5c9c25(0x396)])==null?void 0x0:_0x55f4d8['groupFieldId'])||!(!_0x347901||_0x9abbbc[_0x5c9c25(0x21f)](_0x347901,_0x4724f4[_0x5c9c25(0x1d6)]??[])),'fields':_0x25e25f,'config':_0x5720ca,'fieldOrder':_0x347901};}function Ra(_0x4f7c8f,_0x2cb397){const _0x423196=_0x5daf81;let _0x4d4aeb=_0x2cb397?_0x4f7c8f[_0x423196(0x503)][_0x2cb397]:null;return _0x4d4aeb?[_0x618ba['SingleSelect'],_0x618ba['MultiSelect'],_0x618ba['Rating'],_0x618ba[_0x423196(0x1e9)],_0x618ba['Group'],_0x618ba[_0x423196(0x4bb)]][_0x423196(0x4f9)](_0x4d4aeb[_0x423196(0x305)]):!0x1;}function _0x188f(_0x1e70ec,_0x4dab61){_0x1e70ec=_0x1e70ec-0x1b3;const _0x38bd2f=_0x38bd();let _0x188fa0=_0x38bd2f[_0x1e70ec];return _0x188fa0;}function za(_0x12fac5,_0xec580a){const _0x4824b4=_0x5daf81;return{'id':_0x4824b4(0x430)+_0x1d3e80(0x8),'name':ja(_0x12fac5,'Status',_0xec580a),'type':_0x618ba[_0x4824b4(0x3af)],'config':_0x9abbbc[_0x4824b4(0x28e)](Na)};}function Ba(_0x5d37d7){const _0xae4925=_0x5daf81;return Object[_0xae4925(0x46f)](_0x5d37d7['config']??{})[_0xae4925(0x21d)]===0x0&&Object[_0xae4925(0x46f)](_0x5d37d7['fieldSettings']??{})[_0xae4925(0x21d)]===0x0;}function Va(_0x17ace0,_0x22af4b,_0x597987){const _0x4890a9=_0x5daf81;let _0x1daedc={..._0x22af4b[_0x4890a9(0x396)]??{}},_0x411afa=_0x597987[_0x4890a9(0x2b0)](_0xade051=>_0xade051['id']),_0x292874=[..._0x17ace0[_0x4890a9(0x1d6)],..._0x411afa],_0x406dfd=typeof _0x1daedc[_0x4890a9(0x478)]==_0x4890a9(0x2ed)&&Ha(_0x17ace0,_0x597987,_0x1daedc['titleFieldId'])?_0x1daedc[_0x4890a9(0x478)]:_0x17ace0['primaryFieldId'],_0x5dc5c7=typeof _0x1daedc[_0x4890a9(0x3d5)]==_0x4890a9(0x2ed)?_0x1daedc[_0x4890a9(0x3d5)]:'',_0x5a2f17=typeof _0x1daedc['endDateFieldId']=='string'?_0x1daedc[_0x4890a9(0x39a)]:_0x5dc5c7,_0x41750a=new Set([_0x406dfd,_0x5dc5c7,_0x5a2f17][_0x4890a9(0x32f)](_0x14203a=>_0x14203a&&Ha(_0x17ace0,_0x597987,_0x14203a))),_0x5ca66f=Object[_0x4890a9(0x407)](_0x292874[_0x4890a9(0x36c)](_0x5358aa=>_0x41750a[_0x4890a9(0x253)](_0x5358aa)||!Ha(_0x17ace0,_0x597987,_0x5358aa)?[]:[[_0x5358aa,{'hidden':!0x0}]]));return{..._0x22af4b,'config':{..._0x1daedc,'titleFieldId':_0x406dfd},'fieldSettings':_0x5ca66f};}function Ha(_0x32cb12,_0x267cb2,_0x5abcd0){const _0x40edd5=_0x5daf81;return!!(_0x32cb12['fields'][_0x5abcd0]??_0x267cb2[_0x40edd5(0x2d8)](_0x3557cf=>_0x3557cf['id']===_0x5abcd0))&&!0x0;}function Ua(_0x5d0313,_0xf6b833){const _0x26320b=_0x5daf81;let _0x348ef6=_0xf6b833?_0x5d0313[_0x26320b(0x503)][_0xf6b833]:null;return!!_0x348ef6&&_0x348ef6['type']===_0x618ba[_0x26320b(0x47c)]&&_0x348ef6['readonly']!==!0x0&&_0x348ef6['system']!==!0x0;}function Wa(_0x644b97,_0x278cc3,_0x201e73){const _0x4846ef=_0x5daf81;let _0x3a6c31=new Set([...Object['keys'](_0x644b97[_0x4846ef(0x503)]),..._0x278cc3[_0x4846ef(0x2b0)](_0x123662=>_0x123662['id'])]),_0x1be7d5=_0x4846ef(0x430)+_0x1d3e80(0x8);for(;_0x3a6c31[_0x4846ef(0x253)](_0x1be7d5);)_0x1be7d5=_0x4846ef(0x430)+_0x1d3e80(0x8);return{'id':_0x1be7d5,'name':ja(_0x644b97,_0x201e73,_0x278cc3),'type':_0x618ba[_0x4846ef(0x47c)],'config':{...Pa}};}const Ga={'id':_0x5daf81(0x375),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x902e3a,_0x2bc276)=>{const _0xda2133=_0x5daf81;if(!_0x2bc276)return!0x1;let _0x133cbd=_0x902e3a['get'](_0x364596),{unitId:_0x204c35,tableId:_0x1c99b2,view:_0x2180dc,index:_0x4cabf7}=_0x2bc276,_0x15dfc6=_0x133cbd[_0xda2133(0x1ed)](_0x204c35,_0x2ddca0[_0xda2133(0x33d)]);if(!_0x15dfc6||!$(_0x15dfc6,_0x1c99b2)||_0x15dfc6['getSnapshot']()[_0xda2133(0x2f7)][_0x1c99b2]['views'][_0x2180dc['id']])return!0x1;let _0x39cf67=_0x902e3a[_0xda2133(0x315)](_0x2ca718),_0xe0016b=_0x902e3a[_0xda2133(0x315)](_0x51376c),_0x25c029=_0x15dfc6['getSnapshot'](),_0x2ababd=Fa(_0x25c029,_0x1c99b2,_0x2180dc,_0x4cabf7),_0x3f40f1=new z()['invertOp'](_0x25c029,_0x2ababd),_0x3c6bbd={'historyAction':_0xda2133(0x349),'unitId':_0x204c35,'op':_0x2ababd,'viewType':_0x2180dc[_0xda2133(0x305)]},_0x1e5e36={'historyAction':'delete-view','unitId':_0x204c35,'op':_0x3f40f1,'viewType':_0x2180dc[_0xda2133(0x305)]};return _0x39cf67[_0xda2133(0x1e6)](Q['id'],_0x3c6bbd)?(_0x133cbd['focusUnit'](_0x204c35),_0xe0016b[_0xda2133(0x34a)]({'unitID':_0x204c35,'undoMutations':[{'id':Q['id'],'params':_0x1e5e36}],'redoMutations':[{'id':Q['id'],'params':_0x3c6bbd}]}),!0x0):!0x1;}},Ka={'id':_0x5daf81(0x54e),'type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x5dc1a0,_0x3a2e34){const _0x3564d8=_0x5daf81;if(!_0x3a2e34)return!0x1;let _0x155331=_0x5dc1a0[_0x3564d8(0x315)](_0x364596),{unitId:_0x4c4e5d,tableId:_0x53979a,fieldId:_0x353197}=_0x3a2e34,_0x378024=_0x155331[_0x3564d8(0x1ed)](_0x4c4e5d,_0x2ddca0[_0x3564d8(0x33d)]);if(!_0x378024)return!0x1;let _0x2798da=_0x378024['getSnapshot'](),_0x54ed9f=_0x2798da[_0x3564d8(0x2f7)][_0x53979a];if(!$(_0x378024,_0x53979a,{'fieldIds':[_0x353197]})||_0x54ed9f[_0x3564d8(0x51f)]===_0x353197||_0x353197===_0x4a6fc3)return!0x1;let _0x2947c5=_0x5dc1a0[_0x3564d8(0x315)](_0x2ca718),_0x528353=_0x5dc1a0[_0x3564d8(0x315)](_0x51376c),_0x21139f=new W()['deleteField'](_0x2798da,_0x53979a,_0x353197),_0x4091ff=new z()[_0x3564d8(0x388)](_0x2798da,_0x21139f),_0x16aefb={'unitId':_0x4c4e5d,'op':_0x21139f},_0xb1de4={'unitId':_0x4c4e5d,'op':_0x4091ff};return _0x2947c5[_0x3564d8(0x1e6)](Q['id'],_0x16aefb)?(_0x155331[_0x3564d8(0x2ac)](_0x4c4e5d),_0x528353['pushUndoRedo']({'unitID':_0x4c4e5d,'undoMutations':[{'id':Q['id'],'params':_0xb1de4}],'redoMutations':[{'id':Q['id'],'params':_0x16aefb}]}),!0x0):!0x1;}},qa={'id':_0x5daf81(0x232),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x15d262,_0x1b3b2b)=>{const _0x101d63=_0x5daf81;if(!_0x1b3b2b)return!0x1;let _0xed61d6=_0x15d262[_0x101d63(0x315)](_0x364596),{unitId:_0x485bf5,tableId:_0x5e065d,recordId:_0x156566}=_0x1b3b2b,_0x5bc790=_0xed61d6[_0x101d63(0x1ed)](_0x485bf5,_0x2ddca0['UNIVER_BASE']);if(!_0x5bc790||!$(_0x5bc790,_0x5e065d,{'recordIds':[_0x156566]}))return!0x1;let _0x24d99a=_0x15d262[_0x101d63(0x315)](_0x2ca718),_0x4d58aa=_0x15d262[_0x101d63(0x315)](_0x51376c),_0x57ea44=_0x5bc790[_0x101d63(0x2f3)](),_0x54d053=et(_0x57ea44['tables'][_0x5e065d],[_0x156566]),_0x33af23=new W(),_0x123553=new z(),_0x404336=_0x33af23['deleteRecord'](_0x57ea44,_0x5e065d,_0x156566),_0x2a023b=_0x123553[_0x101d63(0x525)](_0x57ea44,_0x404336),_0xca34c2=_0x33af23['createDeleteRecordsUndoOp'](_0x57ea44,_0x2a023b,_0x5e065d,[_0x156566]),_0x37fc9b={'unitId':_0x485bf5,'op':_0x404336,'hierarchyChanges':_0x54d053,'source':_0x1b3b2b[_0x101d63(0x1e1)]??'ui'},_0xf988a={..._0x37fc9b,'source':_0x101d63(0x424)},_0x2bc649={'unitId':_0x485bf5,'op':_0xca34c2,'hierarchyChanges':_0x54d053[_0x101d63(0x2b0)](_0x227ebe=>({..._0x227ebe,'oldParentRecordId':_0x227ebe[_0x101d63(0x419)],'parentRecordId':_0x227ebe[_0x101d63(0x266)]})),'source':_0x101d63(0x3a8)};return _0x24d99a[_0x101d63(0x1e6)](Q['id'],_0x37fc9b)?(_0xed61d6[_0x101d63(0x2ac)](_0x485bf5),_0x4d58aa[_0x101d63(0x34a)]({'unitID':_0x485bf5,'undoMutations':[{'id':Q['id'],'params':_0x2bc649}],'redoMutations':[{'id':Q['id'],'params':_0xf988a}]}),!0x0):!0x1;}},Ja={'id':_0x5daf81(0x2ea),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x1ddf4e,_0x2ed17f)=>{const _0x28a0cb=_0x5daf81;if(!_0x2ed17f)return!0x1;let _0x4e794d=_0x1ddf4e['get'](_0x364596),{unitId:_0x1198dd,tableId:_0x5b8604}=_0x2ed17f,_0x45ce46=_0x4e794d[_0x28a0cb(0x1ed)](_0x1198dd,_0x2ddca0[_0x28a0cb(0x33d)]);if(!_0x45ce46||!$(_0x45ce46,_0x5b8604))return!0x1;let _0x4588bf=_0x1ddf4e['get'](_0x2ca718),_0x565a16=_0x1ddf4e['get'](_0x51376c),_0x2f3fc9=_0x45ce46['getSnapshot'](),_0x35916c=He(_0x2f3fc9,_0x5b8604);if(_0x35916c[_0x28a0cb(0x21d)]>0x0)return console[_0x28a0cb(0x51c)](_0x28a0cb(0x2a8)+_0x5b8604+_0x28a0cb(0x48f)+_0x35916c[_0x28a0cb(0x2b0)](_0x240b8c=>_0x240b8c['tableId']+'.'+_0x240b8c['fieldId'])[_0x28a0cb(0x30a)](',\x20')+'.'),!0x1;let _0x287159=new W()[_0x28a0cb(0x4ed)](_0x2f3fc9,_0x5b8604),_0x47e79d=new z()['invertOp'](_0x2f3fc9,_0x287159),_0x227659={'unitId':_0x1198dd,'op':_0x287159},_0x268462={'unitId':_0x1198dd,'op':_0x47e79d};return _0x4588bf[_0x28a0cb(0x1e6)](Q['id'],_0x227659)?(_0x4e794d[_0x28a0cb(0x2ac)](_0x1198dd),_0x565a16[_0x28a0cb(0x34a)]({'unitID':_0x1198dd,'undoMutations':[{'id':Q['id'],'params':_0x268462}],'redoMutations':[{'id':Q['id'],'params':_0x227659}]}),!0x0):!0x1;}},Ya={'id':_0x5daf81(0x249),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x232a6d,_0x2be235)=>{const _0x53afd8=_0x5daf81;if(!_0x2be235)return!0x1;let _0x866df7=_0x232a6d[_0x53afd8(0x315)](_0x364596),{unitId:_0x8ee4b4,tableId:_0x33f310,viewId:_0x44f618}=_0x2be235,_0x4181cc=_0x866df7[_0x53afd8(0x1ed)](_0x8ee4b4,_0x2ddca0['UNIVER_BASE']);if(!_0x4181cc||!$(_0x4181cc,_0x33f310,{'viewIds':[_0x44f618]}))return!0x1;let _0x3d636a=_0x232a6d[_0x53afd8(0x315)](_0x2ca718),_0x141f78=_0x232a6d[_0x53afd8(0x315)](_0x51376c),_0x232016=_0x4181cc[_0x53afd8(0x2f3)](),_0x5118cb=_0x232016[_0x53afd8(0x2f7)][_0x33f310][_0x53afd8(0x1e8)][_0x44f618][_0x53afd8(0x305)],_0x1bf632=new W()[_0x53afd8(0x302)](_0x232016,_0x33f310,_0x44f618),_0x4c2f30=new z()[_0x53afd8(0x388)](_0x232016,_0x1bf632),_0x1b9d2c={'historyAction':_0x53afd8(0x24c),'unitId':_0x8ee4b4,'op':_0x1bf632,'viewType':_0x5118cb},_0x553640={'historyAction':_0x53afd8(0x349),'unitId':_0x8ee4b4,'op':_0x4c2f30,'viewType':_0x5118cb};return _0x3d636a['syncExecuteCommand'](Q['id'],_0x1b9d2c)?(_0x866df7[_0x53afd8(0x2ac)](_0x8ee4b4),_0x141f78['pushUndoRedo']({'unitID':_0x8ee4b4,'undoMutations':[{'id':Q['id'],'params':_0x553640}],'redoMutations':[{'id':Q['id'],'params':_0x1b9d2c}]}),!0x0):!0x1;}},Xa={'id':_0x5daf81(0x3c4),'type':_0x3d059d['COMMAND'],'handler':(_0x2744e8,_0xb638b4)=>{const _0x3fed12=_0x5daf81;if(!_0xb638b4)return!0x1;let _0x5f1438=_0x2744e8[_0x3fed12(0x315)](_0x364596),{unitId:_0x176d27,tableId:_0x1a1c1f,sourceFieldId:_0x4f52df,field:_0x101387,index:_0x30e2e9,viewIndexes:_0x230d0f}=_0xb638b4,_0x1c830e=_0x5f1438[_0x3fed12(0x1ed)](_0x176d27,_0x2ddca0[_0x3fed12(0x33d)]);if(!_0x1c830e||!$(_0x1c830e,_0x1a1c1f,{'fieldIds':[_0x4f52df]})||_0x4f52df===_0x4a6fc3||_0x1c830e[_0x3fed12(0x2f3)]()[_0x3fed12(0x2f7)][_0x1a1c1f]['fields'][_0x101387['id']]||_0x30e2e9===0x0||!ha(_0x1c830e,_0x1a1c1f,_0x101387))return!0x1;let _0x4ac7=_0x2744e8['get'](_0x2ca718),_0x58a972=_0x2744e8[_0x3fed12(0x315)](_0x51376c),_0x1083c8=_0x1c830e[_0x3fed12(0x2f3)](),_0x41a596=new W()[_0x3fed12(0x414)](_0x1083c8,_0x1a1c1f,_0x4f52df,{'field':_0x101387,'index':_0x30e2e9,'viewIndexes':_0x230d0f}),_0x469274=new z()['invertOp'](_0x1083c8,_0x41a596),_0x196791={'unitId':_0x176d27,'op':_0x41a596},_0x277432={'unitId':_0x176d27,'op':_0x469274};return _0x4ac7[_0x3fed12(0x1e6)](Q['id'],_0x196791)?(_0x5f1438[_0x3fed12(0x2ac)](_0x176d27),_0x58a972[_0x3fed12(0x34a)]({'unitID':_0x176d27,'undoMutations':[{'id':Q['id'],'params':_0x277432}],'redoMutations':[{'id':Q['id'],'params':_0x196791}]}),!0x0):!0x1;}},Za={'id':'base.command.duplicate-base-record','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0xd0dc67,_0x4478d2)=>{const _0x105461=_0x5daf81;if(!_0x4478d2)return!0x1;let _0x305363=_0xd0dc67[_0x105461(0x315)](_0x364596),{unitId:_0x4a5996,tableId:_0x207811,sourceRecordId:_0x31312f,record:_0x3cd42f}=_0x4478d2,_0xb77b9f=_0x305363['getUnit'](_0x4a5996,_0x2ddca0[_0x105461(0x33d)]);if(!_0xb77b9f||!$(_0xb77b9f,_0x207811,{'recordIds':[_0x31312f]})||!_a(_0xb77b9f,_0x207811,_0x3cd42f))return!0x1;let _0x459530=_0xd0dc67[_0x105461(0x315)](_0x2ca718),_0x4a84ec=_0xd0dc67[_0x105461(0x315)](_0x51376c),_0x676f9f=_0xb77b9f[_0x105461(0x2f3)](),_0x52d6ad=va(_0x3cd42f),_0x4827c6=Qe(_0x676f9f[_0x105461(0x2f7)][_0x207811],[_0x52d6ad]),_0x5163be=new W()[_0x105461(0x339)](_0x676f9f,_0x207811,_0x31312f,_0x52d6ad),_0x4227f2=new z()[_0x105461(0x388)](_0x676f9f,_0x5163be),_0x3a2a1d={'unitId':_0x4a5996,'op':_0x5163be,'hierarchyChanges':_0x4827c6[_0x105461(0x21d)]?_0x4827c6:void 0x0,'source':_0x4827c6['length']?_0x4478d2[_0x105461(0x1e1)]??'ui':void 0x0},_0xb7c43={..._0x3a2a1d,'source':_0x4827c6[_0x105461(0x21d)]?_0x105461(0x424):void 0x0},_0x5d557c={'unitId':_0x4a5996,'op':_0x4227f2,'hierarchyChanges':_0x4827c6[_0x105461(0x21d)]?_0x4827c6[_0x105461(0x2b0)](_0xcd4ab8=>({..._0xcd4ab8,'oldParentRecordId':_0xcd4ab8[_0x105461(0x419)],'parentRecordId':null})):void 0x0,'source':_0x4827c6[_0x105461(0x21d)]?_0x105461(0x3a8):void 0x0};return _0x459530[_0x105461(0x1e6)](Q['id'],_0x3a2a1d)?(_0x305363[_0x105461(0x2ac)](_0x4a5996),_0x4a84ec[_0x105461(0x34a)]({'unitID':_0x4a5996,'undoMutations':[{'id':Q['id'],'params':_0x5d557c}],'redoMutations':[{'id':Q['id'],'params':_0xb7c43}]}),!0x0):!0x1;}},Qa={'id':_0x5daf81(0x409),'type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x348c69,_0x481dab){const _0x291f25=_0x5daf81;if(!_0x481dab)return!0x1;let _0x36e474=_0x348c69[_0x291f25(0x315)](_0x364596),{unitId:_0x5e4e85,tableId:_0x267db6,viewId:_0x2a16d3,ensureEndDateField:_0x2e9bd6}=_0x481dab,_0x4955df=_0x36e474['getUnit'](_0x5e4e85,_0x2ddca0[_0x291f25(0x33d)]);if(!_0x4955df||!$(_0x4955df,_0x267db6,{'viewIds':[_0x2a16d3]}))return!0x1;let _0x49a5dc=_0x4955df[_0x291f25(0x2f3)](),_0x1a92ec=_0x49a5dc['tables'][_0x267db6],_0x51a4c6=_0x1a92ec==null?void 0x0:_0x1a92ec[_0x291f25(0x1e8)][_0x2a16d3];if(!_0x1a92ec||!_0x51a4c6||_0x51a4c6[_0x291f25(0x305)]!==_0x291f25(0x3b7)&&_0x51a4c6['type']!=='gantt')return!0x1;let _0x1e97c5=Ia(_0x1a92ec,_0x51a4c6,_0x2e9bd6===!0x0);if(!_0x1e97c5[_0x291f25(0x52c)])return!0x1;let _0x38a611=_0x348c69[_0x291f25(0x315)](_0x2ca718),_0x4b2238=_0x348c69[_0x291f25(0x315)](_0x51376c),_0x1b475b=new W(),_0x235eb9=[..._0x1e97c5[_0x291f25(0x503)][_0x291f25(0x2b0)](_0x293604=>_0x1b475b['createField'](_0x49a5dc,_0x481dab[_0x291f25(0x221)],{'field':_0x293604})),$a([...eo(_0x481dab[_0x291f25(0x221)],_0x481dab[_0x291f25(0x3c2)]),'config'],_0x51a4c6['config'],_0x1e97c5[_0x291f25(0x396)])];_0x1e97c5[_0x291f25(0x1d6)]&&_0x235eb9[_0x291f25(0x482)]($a([...eo(_0x481dab['tableId'],_0x481dab[_0x291f25(0x3c2)]),_0x291f25(0x1d6)],_0x51a4c6[_0x291f25(0x1d6)],_0x1e97c5[_0x291f25(0x1d6)]));let _0xc09bdf=R(_0x235eb9),_0x48e678=new z()['invertOp'](_0x49a5dc,_0xc09bdf),_0x1e0be0={'unitId':_0x5e4e85,'op':_0xc09bdf},_0x48ba49={'unitId':_0x5e4e85,'op':_0x48e678};return _0x38a611['syncExecuteCommand'](Q['id'],_0x1e0be0)?(_0x36e474['focusUnit'](_0x5e4e85),_0x4b2238['pushUndoRedo']({'unitID':_0x5e4e85,'undoMutations':[{'id':Q['id'],'params':_0x48ba49}],'redoMutations':[{'id':Q['id'],'params':_0x1e0be0}]}),!0x0):!0x1;}};function $a(_0x5e28f7,_0x1a3589,_0x5863ed){const _0x4becb2=_0x5daf81;return _0x1a3589===void 0x0?_0x1605a0[_0x4becb2(0x2b6)](_0x5e28f7,_0x5863ed):_0x1605a0[_0x4becb2(0x562)](_0x5e28f7,_0x1a3589,_0x5863ed);}function eo(_0x2fdd4f,_0x116894){const _0x1d5ab2=_0x5daf81;return[_0x1d5ab2(0x2f7),_0x2fdd4f,_0x1d5ab2(0x1e8),_0x116894];}const to={'id':_0x5daf81(0x55b),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x30a47b,_0x1d51b0)=>{const _0x484987=_0x5daf81;if(!_0x1d51b0)return!0x1;let _0x4709d7=_0x30a47b[_0x484987(0x315)](_0x364596),{unitId:_0x286565,tableId:_0x2749a6,fieldId:_0x1a5ba3,target:_0xb505fb}=_0x1d51b0,_0x489e07=_0x4709d7[_0x484987(0x1ed)](_0x286565,_0x2ddca0[_0x484987(0x33d)]),_0x1ec9bf=_0xb505fb[_0x484987(0x1c5)]??_0xb505fb[_0x484987(0x51b)];if(!_0x489e07||!!_0xb505fb[_0x484987(0x1c5)]==!!_0xb505fb['afterFieldId']||!_0x1ec9bf||_0x1ec9bf===_0x1a5ba3||_0x1a5ba3===_0x4a6fc3||_0xb505fb[_0x484987(0x1c5)]===_0x4a6fc3||!$(_0x489e07,_0x2749a6,{'fieldIds':[_0x1a5ba3,_0x1ec9bf]}))return!0x1;let _0x240318=_0x30a47b[_0x484987(0x315)](_0x2ca718),_0x159700=_0x30a47b['get'](_0x51376c),_0x5ea9d1=_0x489e07[_0x484987(0x2f3)](),_0x20af45=new W()['moveField'](_0x5ea9d1,_0x2749a6,_0x1a5ba3,_0xb505fb),_0x441746=new z()[_0x484987(0x388)](_0x5ea9d1,_0x20af45),_0x219e3c={'unitId':_0x286565,'op':_0x20af45},_0x5a223a={'unitId':_0x286565,'op':_0x441746};return _0x240318['syncExecuteCommand'](Q['id'],_0x219e3c)?(_0x4709d7['focusUnit'](_0x286565),_0x159700['pushUndoRedo']({'unitID':_0x286565,'undoMutations':[{'id':Q['id'],'params':_0x5a223a}],'redoMutations':[{'id':Q['id'],'params':_0x219e3c}]}),!0x0):!0x1;}},no={'id':_0x5daf81(0x27f),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x6d39,_0x3b150f)=>{const _0x24464d=_0x5daf81;var _0x42ab2c;if(!_0x3b150f)return!0x1;let {unitId:_0x319004,tableId:_0x418b2a,recordId:_0x3e7681,parentRecordId:_0x5e1a8f,orderKey:_0x16efa9}=_0x3b150f,_0x2376c1=_0x6d39[_0x24464d(0x315)](_0x364596),_0x21d39b=_0x2376c1['getUnit'](_0x319004,_0x2ddca0[_0x24464d(0x33d)]);if(!_0x21d39b||!$(_0x21d39b,_0x418b2a,{'recordIds':[_0x3e7681,..._0x5e1a8f?[_0x5e1a8f]:[]]}))throw new P('missingRecord');let _0x4333af=_0x21d39b['getSnapshot'](),_0x18e986=_0x4333af[_0x24464d(0x2f7)][_0x418b2a],_0x188c56=qe(_0x18e986),_0x20c8a1=_0x188c56??_0x3b150f['fieldId']??Je(_0x18e986);if(_0x188c56&&_0x3b150f['fieldId']&&_0x3b150f[_0x24464d(0x4a1)]!==_0x188c56||_0x18e986['fields'][_0x20c8a1]&&!F(_0x18e986,_0x20c8a1))throw new P(_0x24464d(0x48a));let _0x288153=tt(_0x18e986,_0x20c8a1),_0x350d16=it(_0x288153,_0x3e7681,_0x5e1a8f);if(!_0x350d16[_0x24464d(0x36d)])throw new P(_0x350d16[_0x24464d(0x483)]===_0x335882['SelfParent']?_0x24464d(0x343):_0x350d16[_0x24464d(0x483)]===_0x335882['Cycle']?'cycle':'maxDepth');let _0x39b010=_0x288153['parentByRecordId'][_0x24464d(0x315)](_0x3e7681)??null,_0x1ae03a=_0x18e986[_0x24464d(0x43a)][_0x3e7681][_0x24464d(0x2a2)];if(_0x39b010===_0x5e1a8f&&(_0x16efa9===void 0x0||_0x16efa9===_0x1ae03a))return!0x0;let _0x38ba98=_0x39b010!==_0x5e1a8f,_0x5a2945=_0x16efa9!==void 0x0&&_0x16efa9!==_0x1ae03a,_0x74c66b=new W(),_0x29f1b6=[],_0x5d844f=_0x18e986['fields'][_0x20c8a1],_0x5a45ee=_0x38ba98&&(!_0x5d844f||((_0x42ab2c=N(_0x5d844f))==null?void 0x0:_0x42ab2c['relationRole'])!==_0x1d1c88[_0x24464d(0x3fa)])?_0x5d844f?_0x74c66b[_0x24464d(0x23d)](_0x4333af,_0x418b2a,_0x20c8a1,{'config':{..._0x5d844f[_0x24464d(0x396)],'relationRole':_0x1d1c88[_0x24464d(0x3fa)]}}):_0x6d39['get'](Kr)[_0x24464d(0x539)](_0x21d39b,_0x418b2a,Ye(_0x18e986,_0x20c8a1,_0x3b150f[_0x24464d(0x1e3)]),_0x18e986['fieldOrder']['length']):null;_0x5a45ee&&_0x29f1b6[_0x24464d(0x482)](_0x5a45ee),_0x38ba98&&_0x29f1b6[_0x24464d(0x482)](_0x74c66b['updateCell'](_0x4333af,_0x418b2a,_0x3e7681,_0x20c8a1,_0x5e1a8f?Re([_0x5e1a8f]):'')),_0x5a2945&&_0x29f1b6[_0x24464d(0x482)](_0x74c66b[_0x24464d(0x3f6)](_0x4333af,_0x418b2a,_0x3e7681,_0x16efa9));let _0x225059=R(_0x29f1b6),_0x21d619={'tableId':_0x418b2a,'fieldId':_0x20c8a1,'recordId':_0x3e7681,'oldParentRecordId':_0x39b010,'parentRecordId':_0x5e1a8f},_0x3d1bc0={'unitId':_0x319004,'op':_0x225059,'trigger':no['id'],'hierarchyChanges':[_0x21d619],'source':_0x3b150f['source']??'ui'},_0x442813={..._0x3d1bc0,'source':_0x24464d(0x424)};if(!_0x6d39[_0x24464d(0x315)](_0x2ca718)['syncExecuteCommand'](Q['id'],_0x3d1bc0))return!0x1;let _0x55bb1f=_0x21d39b[_0x24464d(0x2f3)](),_0x2689a5=[];_0x38ba98&&_0x2689a5[_0x24464d(0x482)](ro(_0x55bb1f,_0x4333af,_0x418b2a,_0x3e7681,_0x20c8a1)),_0x5a2945&&_0x2689a5[_0x24464d(0x482)](io(_0x55bb1f,_0x4333af,_0x418b2a,_0x3e7681)),_0x5a45ee&&_0x2689a5[_0x24464d(0x482)](new z()['invertOp'](_0x4333af,_0x5a45ee));let _0x51eaed={'unitId':_0x319004,'op':R(_0x2689a5),'trigger':no['id'],'hierarchyChanges':[{..._0x21d619,'oldParentRecordId':_0x5e1a8f,'parentRecordId':_0x39b010}],'source':'undo'};return _0x2376c1[_0x24464d(0x2ac)](_0x319004),_0x6d39[_0x24464d(0x315)](_0x51376c)[_0x24464d(0x34a)]({'unitID':_0x319004,'undoMutations':[{'id':Q['id'],'params':_0x51eaed}],'redoMutations':[{'id':Q['id'],'params':_0x442813}]}),!0x0;}};function ro(_0x529b5a,_0x49150a,_0x3b6727,_0x412a74,_0x5c30eb){const _0x3df910=_0x5daf81;var _0x1c2eee,_0x1fdea5,_0x249647,_0x189c55,_0x25102a,_0x4f9196,_0x57ec34,_0x4a3f20;let _0x203f5e=_0x529b5a[_0x3df910(0x2f7)][_0x3b6727],_0x56233e=_0x49150a['tables'][_0x3b6727],_0x40a600=(_0x1c2eee=_0x203f5e[_0x3df910(0x2c4)])==null?void 0x0:_0x1c2eee[_0x412a74],_0x41a4ee=(_0x1fdea5=_0x203f5e[_0x3df910(0x3b9)])==null?void 0x0:_0x1fdea5[_0x5c30eb],_0x4fd59e=(_0x249647=_0x56233e[_0x3df910(0x2c4)])==null?void 0x0:_0x249647[_0x412a74],_0x24cf3b=(_0x189c55=_0x56233e[_0x3df910(0x3b9)])==null?void 0x0:_0x189c55[_0x5c30eb],_0x400745=_0x40a600==null||_0x41a4ee==null||(_0x25102a=_0x203f5e[_0x3df910(0x1d3)])==null||(_0x25102a=_0x25102a[_0x40a600])==null?void 0x0:_0x25102a[_0x41a4ee],_0x5a4034=_0x4fd59e==null||_0x24cf3b==null||(_0x4f9196=_0x56233e[_0x3df910(0x1d3)])==null||(_0x4f9196=_0x4f9196[_0x4fd59e])==null?void 0x0:_0x4f9196[_0x24cf3b],_0x111995=(_0x57ec34=_0x203f5e[_0x3df910(0x43a)][_0x412a74])==null?void 0x0:_0x57ec34[_0x3df910(0x45b)][_0x5c30eb],_0x271fc7=(_0x4a3f20=_0x56233e[_0x3df910(0x43a)][_0x412a74])==null?void 0x0:_0x4a3f20[_0x3df910(0x45b)][_0x5c30eb],_0x646f32=[],_0x516560=ao(_0x40a600==null||_0x41a4ee==null?null:U[_0x3df910(0x1d3)](_0x3b6727,_0x40a600,_0x41a4ee),_0x400745,_0x5a4034);_0x516560&&_0x646f32[_0x3df910(0x482)](_0x516560);let _0x4b96f0=ao(U['cell'](_0x3b6727,_0x412a74,_0x5c30eb),_0x111995,_0x271fc7);return _0x4b96f0&&_0x646f32[_0x3df910(0x482)](_0x4b96f0),R(_0x646f32);}function io(_0x3ae48c,_0x253c1c,_0x248eed,_0x4d66e6){const _0x608443=_0x5daf81;var _0x1ae325,_0x7fa2ec;let _0x7f4a8b=_0x3ae48c[_0x608443(0x2f7)][_0x248eed],_0x8a1b6e=_0x253c1c['tables'][_0x248eed];return R([ao([...U[_0x608443(0x1b5)](_0x248eed,_0x4d66e6),_0x608443(0x2a2)],(_0x1ae325=_0x7f4a8b[_0x608443(0x43a)][_0x4d66e6])==null?void 0x0:_0x1ae325['orderKey'],(_0x7fa2ec=_0x8a1b6e[_0x608443(0x43a)][_0x4d66e6])==null?void 0x0:_0x7fa2ec[_0x608443(0x2a2)]),ao([...U[_0x608443(0x524)](_0x248eed),_0x608443(0x3da)],_0x7f4a8b[_0x608443(0x3da)],_0x8a1b6e['recordOrder'])][_0x608443(0x32f)](_0x2f86ce=>!!_0x2f86ce));}function ao(_0x43d064,_0x4bc7ea,_0xea1725){const _0x4ab350=_0x5daf81;if(!_0x43d064||_0x4bc7ea===void 0x0&&_0xea1725===void 0x0)return null;let _0x5e302d=_0x43324a[_0x4ab350(0x481)]();return _0xea1725===void 0x0?_0x5e302d['removeOp'](_0x43d064,_0x4bc7ea):_0x4bc7ea===void 0x0?_0x5e302d[_0x4ab350(0x2b6)](_0x43d064,_0xea1725):_0x5e302d['replaceOp'](_0x43d064,_0x4bc7ea,_0xea1725);}const oo={'id':'base.command.move-base-view','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x4ca16d,_0x1533dd)=>{const _0x11b214=_0x5daf81;if(!_0x1533dd)return!0x1;let _0x92d40d=_0x4ca16d['get'](_0x364596),{unitId:_0x69aecc,tableId:_0x110ccd,viewId:_0x13d49d,target:_0x49fc7f}=_0x1533dd,_0x2ff025=_0x92d40d[_0x11b214(0x1ed)](_0x69aecc,_0x2ddca0['UNIVER_BASE']),_0x47c32d=_0x49fc7f['beforeViewId']??_0x49fc7f[_0x11b214(0x4b1)];if(!_0x2ff025||!_0x47c32d||_0x47c32d===_0x13d49d||!$(_0x2ff025,_0x110ccd,{'viewIds':[_0x13d49d,_0x47c32d]}))return!0x1;let _0x25f137=_0x4ca16d[_0x11b214(0x315)](_0x2ca718),_0x503d85=_0x4ca16d[_0x11b214(0x315)](_0x51376c),_0x8a7bac=_0x2ff025[_0x11b214(0x2f3)](),_0x58f73e=new W()[_0x11b214(0x2d3)](_0x8a7bac,_0x110ccd,_0x13d49d,_0x49fc7f),_0x1b0c19=new z()[_0x11b214(0x388)](_0x8a7bac,_0x58f73e),_0x354e4f={'unitId':_0x69aecc,'op':_0x58f73e},_0x443ed0={'unitId':_0x69aecc,'op':_0x1b0c19};return _0x25f137['syncExecuteCommand'](Q['id'],_0x354e4f)?(_0x92d40d['focusUnit'](_0x69aecc),_0x503d85[_0x11b214(0x34a)]({'unitID':_0x69aecc,'undoMutations':[{'id':Q['id'],'params':_0x443ed0}],'redoMutations':[{'id':Q['id'],'params':_0x354e4f}]}),!0x0):!0x1;}},so={'id':_0x5daf81(0x26b),'type':_0x3d059d['COMMAND'],'handler':(_0xeb3d51,_0x4a4efb)=>{const _0x57e6a3=_0x5daf81;if(!_0x4a4efb)return!0x1;let _0x430990=_0xeb3d51[_0x57e6a3(0x315)](_0x364596),{unitId:_0x204763,tableId:_0x380417,name:_0x57d91b}=_0x4a4efb,_0x12f42b=_0x430990[_0x57e6a3(0x1ed)](_0x204763,_0x2ddca0[_0x57e6a3(0x33d)]);if(!_0x12f42b||!$(_0x12f42b,_0x380417)||!Oa(_0x12f42b[_0x57e6a3(0x2f3)](),_0x57d91b,_0x380417)[_0x57e6a3(0x36d)])return!0x1;let _0x4dfc3b=_0xeb3d51['get'](_0x2ca718),_0x343fc6=_0xeb3d51[_0x57e6a3(0x315)](_0x51376c),_0x114236=_0x12f42b[_0x57e6a3(0x2f3)](),_0x4ecc74=new W()[_0x57e6a3(0x3c3)](_0x114236,_0x380417,_0x57d91b),_0x4d654a=new z()['invertOp'](_0x114236,_0x4ecc74),_0x5f3f03={'unitId':_0x204763,'op':_0x4ecc74},_0x2d827b={'unitId':_0x204763,'op':_0x4d654a};return _0x4dfc3b[_0x57e6a3(0x1e6)](Q['id'],_0x5f3f03)?(_0x430990[_0x57e6a3(0x2ac)](_0x204763),_0x343fc6[_0x57e6a3(0x34a)]({'unitID':_0x204763,'undoMutations':[{'id':Q['id'],'params':_0x2d827b}],'redoMutations':[{'id':Q['id'],'params':_0x5f3f03}]}),!0x0):!0x1;}},co={'id':'base.command.rename-base-view','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x1942c0,_0x45bed5)=>{const _0x2c46bf=_0x5daf81;if(!_0x45bed5)return!0x1;let _0x578d02=_0x1942c0[_0x2c46bf(0x315)](_0x364596),{unitId:_0x3577f7,tableId:_0x5bd51d,viewId:_0xb0c14b,name:_0x15c835}=_0x45bed5,_0x26e558=_0x578d02['getUnit'](_0x3577f7,_0x2ddca0[_0x2c46bf(0x33d)]);if(!_0x26e558||!$(_0x26e558,_0x5bd51d,{'viewIds':[_0xb0c14b]}))return!0x1;let _0x20890a=_0x1942c0[_0x2c46bf(0x315)](_0x2ca718),_0x2b35e1=_0x1942c0['get'](_0x51376c),_0x1580c5=_0x26e558[_0x2c46bf(0x2f3)](),_0x31016e=new W()['renameView'](_0x1580c5,_0x5bd51d,_0xb0c14b,_0x15c835),_0x133bfd=new z()[_0x2c46bf(0x388)](_0x1580c5,_0x31016e),_0x291212={'unitId':_0x3577f7,'op':_0x31016e},_0x57395e={'unitId':_0x3577f7,'op':_0x133bfd};return _0x20890a[_0x2c46bf(0x1e6)](Q['id'],_0x291212)?(_0x578d02[_0x2c46bf(0x2ac)](_0x3577f7),_0x2b35e1[_0x2c46bf(0x34a)]({'unitID':_0x3577f7,'undoMutations':[{'id':Q['id'],'params':_0x57395e}],'redoMutations':[{'id':Q['id'],'params':_0x291212}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x3ccddd,_0xa44f79)=>{const _0x29db45=_0x5daf81;if(!_0xa44f79)return!0x1;let _0x4e983b=_0x3ccddd[_0x29db45(0x315)](_0x364596),{unitId:_0x2bd0a4,tableId:_0x4625e2,viewId:_0x40870c,fieldId:_0x37337a}=_0xa44f79,_0x2e184b=_0x4e983b[_0x29db45(0x1ed)](_0x2bd0a4,_0x2ddca0['UNIVER_BASE']);if(!_0x2e184b||!$(_0x2e184b,_0x4625e2,{'viewIds':[_0x40870c],'fieldIds':[_0x37337a]}))return!0x1;let _0x35d8fc=_0x3ccddd[_0x29db45(0x315)](_0x2ca718),_0x3aac46=_0x3ccddd[_0x29db45(0x315)](_0x51376c),_0x166f86=_0x2e184b['getSnapshot'](),_0x4523cc=new W()['updateViewConfig'](_0x166f86,_0x4625e2,_0x40870c,{'groupFieldId':_0x37337a}),_0x4493a3=new z()['invertOp'](_0x166f86,_0x4523cc),_0x4725e2={'unitId':_0x2bd0a4,'op':_0x4523cc},_0x36bfd2={'unitId':_0x2bd0a4,'op':_0x4493a3};return _0x35d8fc['syncExecuteCommand'](Q['id'],_0x4725e2)?(_0x4e983b[_0x29db45(0x2ac)](_0x2bd0a4),_0x3aac46['pushUndoRedo']({'unitID':_0x2bd0a4,'undoMutations':[{'id':Q['id'],'params':_0x36bfd2}],'redoMutations':[{'id':Q['id'],'params':_0x4725e2}]}),!0x0):!0x1;}},uo={'id':_0x5daf81(0x500),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x53104b,_0x4c131c)=>{const _0x1e01e7=_0x5daf81;if(!_0x4c131c)return!0x1;let _0x213842=_0x53104b[_0x1e01e7(0x315)](_0x364596),_0xc883da=_0x213842[_0x1e01e7(0x1ed)](_0x4c131c[_0x1e01e7(0x3cb)],_0x2ddca0[_0x1e01e7(0x33d)]);if(!_0xc883da)return!0x1;let _0x986f5f=_0xc883da['getSnapshot']()['name'];if(_0x986f5f===_0x4c131c['name'])return!0x0;let _0x15b861=new W(),_0x4e9782=new z(),_0x4eb304=[],_0x17c454=[],_0x40d878=[_0xc883da,..._0x213842[_0x1e01e7(0x34d)](_0x2ddca0[_0x1e01e7(0x33d)])[_0x1e01e7(0x32f)](_0xa7efe2=>_0xa7efe2[_0x1e01e7(0x506)]()!==_0x4c131c['unitId'])];for(let _0x94a987 of _0x40d878){let _0x83539b=_0x94a987[_0x1e01e7(0x2f3)](),_0x5bf8fb=_0x94a987===_0xc883da?_0x15b861['setBaseName'](_0x83539b,_0x4c131c['name']):_0x15b861[_0x1e01e7(0x1e5)](_0x83539b,_0x986f5f,_0x4c131c[_0x1e01e7(0x322)]);_0x5bf8fb&&(_0x4eb304['push']({'id':Q['id'],'params':{'unitId':_0x94a987[_0x1e01e7(0x506)](),'op':_0x5bf8fb,'trigger':uo['id']}}),_0x17c454[_0x1e01e7(0x2d9)]({'id':Q['id'],'params':{'unitId':_0x94a987['getUnitId'](),'op':_0x4e9782['invertOp'](_0x83539b,_0x5bf8fb),'trigger':uo['id']}}));}let _0x24216d=_0x53104b[_0x1e01e7(0x315)](_0x2ca718),_0x1d7b77=_0x53104b[_0x1e01e7(0x315)](_0x51376c),_0x4df8fe=_0x1d7b77['__tempBatchingUndoRedo'](_0x4c131c[_0x1e01e7(0x3cb)]);try{return _0x557e96(_0x4eb304,_0x24216d)[_0x1e01e7(0x254)]?(_0x213842['focusUnit'](_0x4c131c[_0x1e01e7(0x3cb)]),_0x1d7b77[_0x1e01e7(0x34a)]({'unitID':_0x4c131c['unitId'],'undoMutations':_0x17c454,'redoMutations':_0x4eb304}),!0x0):!0x1;}finally{_0x4df8fe['dispose']();}}},fo={'type':_0x3d059d[_0x5daf81(0x44b)],'id':'base.command.set-permission',async 'handler'(_0x3db335,_0x2a4adb){const _0x56367e=_0x5daf81;if(!_0x2a4adb||!Tr[_0x56367e(0x4f9)](_0x2a4adb[_0x56367e(0x351)])||_0x2a4adb[_0x56367e(0x3d2)]!==_0x2a4adb[_0x56367e(0x3cb)]&&_0x2a4adb['action']!==_0x44dc45['Edit']||_0x2a4adb[_0x56367e(0x295)]&&(![_0x56367e(0x273),_0x56367e(0x55f),_0x56367e(0x259)][_0x56367e(0x4f9)](_0x2a4adb[_0x56367e(0x295)][_0x56367e(0x218)])||_0x2a4adb[_0x56367e(0x295)]['strategies'][_0x56367e(0x387)](_0x42e14b=>!Tr[_0x56367e(0x4f9)](_0x42e14b['action'])||_0x2a4adb[_0x56367e(0x3d2)]!==_0x2a4adb[_0x56367e(0x3cb)]&&_0x42e14b[_0x56367e(0x351)]!==_0x44dc45[_0x56367e(0x555)])))return!0x1;let _0xc9503a=Pr(_0x2a4adb[_0x56367e(0x3cb)],_0x2a4adb['objectId'],_0x2a4adb[_0x56367e(0x351)]),_0x126b98={'unitId':_0x2a4adb['unitId'],'objectId':_0x2a4adb['objectId'],'objectType':_0xc9503a[_0x56367e(0x305)]},_0xe6c342=_0x3db335['get'](_0x2cff1c);return _0x2a4adb[_0x56367e(0x491)]?await _0xe6c342[_0x56367e(0x491)](_0x126b98):_0x2a4adb[_0x56367e(0x295)]?await _0xe6c342[_0x56367e(0x4a9)](_0x126b98,_0x2a4adb[_0x56367e(0x295)]):await _0xe6c342['setPoint'](_0x126b98,_0xc9503a,_0x2a4adb['value']),!0x0;}},po={'type':_0x3d059d[_0x5daf81(0x44b)],'id':_0x5daf81(0x324),async 'handler'(_0x1de4e1,_0x49badb){const _0xa70696=_0x5daf81;if(!(_0x49badb!=null&&_0x49badb[_0xa70696(0x3cb)])||!Array[_0xa70696(0x31e)](_0x49badb[_0xa70696(0x465)])||!_0x49badb[_0xa70696(0x465)]['length']||_0x49badb[_0xa70696(0x465)][_0xa70696(0x387)](_0x3698a8=>!(_0x3698a8!=null&&_0x3698a8['objectId'])||_0x3698a8['objectId']===_0x49badb[_0xa70696(0x3cb)]||_0x3698a8['policy']!==null&&(!_0x3698a8[_0xa70696(0x295)]||![_0xa70696(0x273),_0xa70696(0x55f),_0xa70696(0x259)][_0xa70696(0x4f9)](_0x3698a8['policy'][_0xa70696(0x218)])||!Array[_0xa70696(0x31e)](_0x3698a8[_0xa70696(0x295)][_0xa70696(0x335)])||!Array[_0xa70696(0x31e)](_0x3698a8['policy']['strategies'])||_0x3698a8[_0xa70696(0x295)][_0xa70696(0x4c5)][_0xa70696(0x387)](_0x1d4c72=>_0x1d4c72['action']!==_0x44dc45[_0xa70696(0x555)]))))throw Error(_0xa70696(0x355));return _0x1de4e1[_0xa70696(0x315)](_0x2cff1c)['saveMany'](_0x49badb[_0xa70696(0x465)][_0xa70696(0x2b0)](_0x218c29=>{const _0x53d387=_0xa70696;let _0x5c3c41=Pr(_0x49badb[_0x53d387(0x3cb)],_0x218c29['objectId'],_0x44dc45[_0x53d387(0x555)]);return{'unitId':_0x49badb['unitId'],'objectId':_0x218c29['objectId'],'objectType':_0x5c3c41['type'],'policy':_0x218c29['policy']};}));}};function mo(_0xf4018f,_0x5df24c){const _0x45ec4e=_0x5daf81;let _0x448bf4=L(_0x9abbbc[_0x45ec4e(0x28e)](_0xf4018f)),_0x2ca971=new Map();return _0x5df24c[_0x45ec4e(0x429)](_0x3b3f95=>{const _0x3c411f=_0x45ec4e;var _0x479679,_0x21b254;let _0x21a5fd='recordId'in _0x3b3f95?_0x3b3f95[_0x3c411f(0x1c6)]:(_0x479679=_0x448bf4['rowId'])==null?void 0x0:_0x479679[_0x3b3f95['row']],_0x314f68=_0x3c411f(0x4a1)in _0x3b3f95?_0x3b3f95[_0x3c411f(0x4a1)]:(_0x21b254=_0x448bf4[_0x3c411f(0x33c)])==null?void 0x0:_0x21b254[_0x3b3f95['col']],_0x5cb051=_0x314f68?_0x448bf4[_0x3c411f(0x503)][_0x314f68]:void 0x0;if(!_0x21a5fd||!_0x314f68||!_0x5cb051||!_0x448bf4[_0x3c411f(0x43a)][_0x21a5fd])return;let _0x3e00ca=xt(_0x3b3f95[_0x3c411f(0x3fd)],_0x5cb051),_0x2ede70=wt(_0x3b3f95[_0x3c411f(0x3fd)],_0x3e00ca,_0x5cb051,_0x448bf4,_0x21a5fd),_0xc6d7a6=_0x2ca971[_0x3c411f(0x315)](_0x21a5fd)??{};_0xc6d7a6[_0x314f68]=_0x2ede70,_0x2ca971[_0x3c411f(0x1ba)](_0x21a5fd,_0xc6d7a6);}),[..._0x2ca971][_0x45ec4e(0x2b0)](([_0x437767,_0x528c63])=>({'recordId':_0x437767,'values':_0x528c63}));}const ho={'id':_0x5daf81(0x1db),'type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x598153,_0x1ea2ee){const _0x1ed67e=_0x5daf81;if(!_0x1ea2ee)return!0x1;let _0x290c49=_0x598153[_0x1ed67e(0x315)](_0x364596),{unitId:_0x483f12,tableId:_0x2eb0cb,patches:_0x5d9b5a}=_0x1ea2ee,_0x12e7b8=_0x290c49[_0x1ed67e(0x1ed)](_0x483f12,_0x2ddca0[_0x1ed67e(0x33d)]);if(!_0x12e7b8||!$(_0x12e7b8,_0x2eb0cb))return!0x1;let _0x2d8b26=_0x598153['get'](_0x2ca718),_0x6373fc=_0x598153['get'](_0x51376c),_0x677fd=_0x12e7b8[_0x1ed67e(0x2f3)](),_0x5209c3=L(_0x677fd[_0x1ed67e(0x2f7)][_0x2eb0cb]),_0x21bb9b=_0x5d9b5a[_0x1ed67e(0x2b0)](_0x5aca1d=>{const _0x344c04=_0x1ed67e;var _0x598136;return _0x344c04(0x1c6)in _0x5aca1d?_0x5aca1d['recordId']:(_0x598136=_0x5209c3[_0x344c04(0x1ec)])==null?void 0x0:_0x598136[_0x5aca1d['row']];})[_0x1ed67e(0x32f)](_0x4c8795=>_0x4c8795!=null),_0x2d79ad=_0x5d9b5a[_0x1ed67e(0x2b0)](_0x315178=>{const _0x19ceb2=_0x1ed67e;var _0x43f20f;return'fieldId'in _0x315178?_0x315178[_0x19ceb2(0x4a1)]:(_0x43f20f=_0x5209c3[_0x19ceb2(0x33c)])==null?void 0x0:_0x43f20f[_0x315178[_0x19ceb2(0x2f0)]];})[_0x1ed67e(0x32f)](_0x4bfd32=>_0x4bfd32!=null);if(_0x21bb9b[_0x1ed67e(0x21d)]!==_0x5d9b5a[_0x1ed67e(0x21d)]||_0x2d79ad['length']!==_0x5d9b5a[_0x1ed67e(0x21d)]||!$(_0x12e7b8,_0x2eb0cb,{'recordIds':_0x21bb9b,'fieldIds':_0x2d79ad})||_0x5d9b5a[_0x1ed67e(0x387)]((_0x425620,_0x1bba94)=>!ga(_0x12e7b8,_0x2eb0cb,_0x2d79ad[_0x1bba94],_0x425620[_0x1ed67e(0x3fd)])))return!0x1;let _0x302f76=Ze(_0x5209c3,mo(_0x5209c3,_0x5d9b5a)),_0x5e7a9e=_0x5d9b5a[_0x1ed67e(0x36c)](_0x80eec1=>{const _0x3e3e07=_0x1ed67e;var _0x5d2d16,_0x250f9c;if('row'in _0x80eec1)return[_0x80eec1];let _0x3c71f2=(_0x5d2d16=_0x5209c3['rowIndex'])==null?void 0x0:_0x5d2d16[_0x80eec1['recordId']],_0x4cb990=(_0x250f9c=_0x5209c3[_0x3e3e07(0x3b9)])==null?void 0x0:_0x250f9c[_0x80eec1[_0x3e3e07(0x4a1)]];return _0x3c71f2==null||_0x4cb990==null?[]:[{'row':_0x3c71f2,'col':_0x4cb990,'value':_0x80eec1[_0x3e3e07(0x3fd)]}];}),_0x186a3a=new W()[_0x1ed67e(0x1d7)](_0x677fd,_0x2eb0cb,_0x5e7a9e),_0x28064e=new z()['invertOp'](_0x677fd,_0x186a3a),_0x5e47df={'unitId':_0x483f12,'op':_0x186a3a,'trigger':_0x302f76[_0x1ed67e(0x21d)]?ho['id']:void 0x0,'hierarchyChanges':_0x302f76['length']?_0x302f76:void 0x0,'source':_0x302f76['length']?_0x1ed67e(0x424):void 0x0},_0x427b80={'unitId':_0x483f12,'op':_0x28064e,'trigger':_0x302f76['length']?ho['id']:void 0x0,'hierarchyChanges':_0x302f76[_0x1ed67e(0x21d)]?_0x302f76[_0x1ed67e(0x2b0)](_0x9b6e54=>({..._0x9b6e54,'oldParentRecordId':_0x9b6e54[_0x1ed67e(0x419)],'parentRecordId':_0x9b6e54[_0x1ed67e(0x266)]})):void 0x0,'source':_0x302f76[_0x1ed67e(0x21d)]?_0x1ed67e(0x3a8):void 0x0},_0x426817={..._0x5e47df,'source':_0x302f76[_0x1ed67e(0x21d)]?_0x1ea2ee[_0x1ed67e(0x1e1)]??'ui':void 0x0};return _0x2d8b26[_0x1ed67e(0x1e6)](Q['id'],_0x426817)?(_0x290c49[_0x1ed67e(0x2ac)](_0x483f12),_0x6373fc[_0x1ed67e(0x34a)]({'unitID':_0x483f12,'undoMutations':[{'id':Q['id'],'params':_0x427b80}],'redoMutations':[{'id':Q['id'],'params':_0x5e47df}]}),!0x0):!0x1;}},go={'id':'base.command.set-base-record-values','type':_0x3d059d['COMMAND'],'handler'(_0x3a1675,_0x40de88){const _0x59bf18=_0x5daf81;if(!_0x40de88)return!0x1;let _0x30da42=_0x3a1675[_0x59bf18(0x315)](_0x364596),{unitId:_0x411959,tableId:_0x1c71a8,patches:_0x52d514}=_0x40de88,_0x3913b1=_0x30da42[_0x59bf18(0x1ed)](_0x411959,_0x2ddca0[_0x59bf18(0x33d)]),_0x3f472c=_0x52d514[_0x59bf18(0x2b0)](_0x557ca1=>_0x557ca1[_0x59bf18(0x1c6)]),_0xbc8561=_0x52d514[_0x59bf18(0x36c)](_0x3ef086=>Object['keys'](_0x3ef086['values']));if(!_0x3913b1||!$(_0x3913b1,_0x1c71a8,{'recordIds':_0x3f472c,'fieldIds':_0xbc8561})||_0x52d514[_0x59bf18(0x387)](_0x3abfd7=>Object[_0x59bf18(0x2e4)](_0x3abfd7[_0x59bf18(0x45b)])[_0x59bf18(0x387)](([_0x2aaa21,_0x3d9714])=>!ga(_0x3913b1,_0x1c71a8,_0x2aaa21,_0x3d9714))))return!0x1;let _0x5fcd35=Ze(_0x3913b1[_0x59bf18(0x2f3)]()[_0x59bf18(0x2f7)][_0x1c71a8],_0x52d514),_0x54e2ee=_0x3a1675[_0x59bf18(0x315)](_0x2ca718),_0x185ef4=_0x3a1675['get'](_0x51376c),_0x4505fb=_0x3a1675['get'](Kr)['createSetRecordValuesOp'](_0x3913b1,_0x1c71a8,_0x52d514),_0x540b57=new z()[_0x59bf18(0x388)](_0x3913b1['getSnapshot'](),_0x4505fb),_0x3debaa={'unitId':_0x411959,'op':_0x4505fb,'trigger':_0x5fcd35[_0x59bf18(0x21d)]?go['id']:void 0x0,'hierarchyChanges':_0x5fcd35[_0x59bf18(0x21d)]?_0x5fcd35:void 0x0,'source':_0x5fcd35[_0x59bf18(0x21d)]?_0x40de88[_0x59bf18(0x1e1)]??'ui':void 0x0},_0x5e3c28={..._0x3debaa,'source':_0x5fcd35['length']?_0x59bf18(0x424):void 0x0},_0x752e1b={'unitId':_0x411959,'op':_0x540b57,'trigger':_0x5fcd35['length']?go['id']:void 0x0,'hierarchyChanges':_0x5fcd35[_0x59bf18(0x21d)]?_0x5fcd35[_0x59bf18(0x2b0)](_0x2e4ec9=>({..._0x2e4ec9,'oldParentRecordId':_0x2e4ec9[_0x59bf18(0x419)],'parentRecordId':_0x2e4ec9[_0x59bf18(0x266)]})):void 0x0,'source':_0x5fcd35[_0x59bf18(0x21d)]?_0x59bf18(0x3a8):void 0x0};return _0x54e2ee['syncExecuteCommand'](Q['id'],_0x3debaa)?(_0x30da42['focusUnit'](_0x411959),_0x185ef4[_0x59bf18(0x34a)]({'unitID':_0x411959,'undoMutations':[{'id':Q['id'],'params':_0x752e1b}],'redoMutations':[{'id':Q['id'],'params':_0x5e3c28}]}),!0x0):!0x1;}},_o={'id':_0x5daf81(0x316),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0xfbb829,_0x1e6fee)=>{const _0x5d2fad=_0x5daf81;if(!_0x1e6fee)return!0x1;let {unitId:_0x5af755,tableId:_0xbf7a2a,fieldId:_0x1490a1}=_0x1e6fee,_0x3323f6=_0xfbb829['get'](_0x364596),_0x11f4fc=_0x3323f6[_0x5d2fad(0x1ed)](_0x5af755,_0x2ddca0[_0x5d2fad(0x33d)]);if(!_0x11f4fc||!$(_0x11f4fc,_0xbf7a2a))return!0x1;let _0x5c1ecc=_0x11f4fc[_0x5d2fad(0x2f3)](),_0x1422df=_0x5c1ecc[_0x5d2fad(0x2f7)][_0xbf7a2a];if(_0x1490a1!==null&&!F(_0x1422df,_0x1490a1))throw new P(_0x5d2fad(0x48a));if(qe(_0x1422df)===_0x1490a1)return!0x0;let _0x1de124=new W(),_0x27b265=R(Object[_0x5d2fad(0x45b)](_0x1422df[_0x5d2fad(0x503)])[_0x5d2fad(0x36c)](_0x1e4147=>{const _0x39561b=_0x5d2fad;if(!F(_0x1422df,_0x1e4147['id']))return[];let _0x41cb04=N(_0x1e4147);if(!_0x41cb04)return[];let _0xe12c23=_0x1e4147['id']===_0x1490a1;if(_0x41cb04['relationRole']===_0x1d1c88[_0x39561b(0x3fa)]===_0xe12c23)return[];let _0x2b3c50={..._0x1e4147[_0x39561b(0x396)],'targetTableId':_0x41cb04[_0x39561b(0x337)],'multiple':_0x41cb04[_0x39561b(0x3bd)]};return _0xe12c23?_0x2b3c50[_0x39561b(0x33e)]=_0x1d1c88[_0x39561b(0x3fa)]:delete _0x2b3c50[_0x39561b(0x33e)],[_0x1de124[_0x39561b(0x23d)](_0x5c1ecc,_0xbf7a2a,_0x1e4147['id'],{'config':_0x2b3c50})];})),_0x26b577=new z()[_0x5d2fad(0x388)](_0x5c1ecc,_0x27b265),_0x3f0af6={'unitId':_0x5af755,'op':_0x27b265},_0x37f5be={'unitId':_0x5af755,'op':_0x26b577};return _0xfbb829[_0x5d2fad(0x315)](_0x2ca718)['syncExecuteCommand'](Q['id'],_0x3f0af6)?(_0x3323f6[_0x5d2fad(0x2ac)](_0x5af755),_0xfbb829['get'](_0x51376c)[_0x5d2fad(0x34a)]({'unitID':_0x5af755,'undoMutations':[{'id':Q['id'],'params':_0x37f5be}],'redoMutations':[{'id':Q['id'],'params':_0x3f0af6}]}),!0x0):!0x1;}},vo={'id':_0x5daf81(0x210),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x2b1b85,_0x21ae90)=>{const _0x2c1160=_0x5daf81;if(!_0x21ae90)return!0x1;let _0x33b7ae=_0x2b1b85['get'](_0x364596),{unitId:_0x31acbf,tableId:_0x458ef3,viewId:_0x3694d7,fieldId:_0x1181e2,target:_0x5d5f03}=_0x21ae90,_0x57d848=_0x33b7ae[_0x2c1160(0x1ed)](_0x31acbf,_0x2ddca0[_0x2c1160(0x33d)]),_0x5d234e=_0x5d5f03['beforeFieldId']??_0x5d5f03['afterFieldId'];if(!_0x57d848||!_0x5d234e||_0x5d234e===_0x1181e2||!$(_0x57d848,_0x458ef3,{'viewIds':[_0x3694d7],'fieldIds':[_0x1181e2,_0x5d234e]}))return!0x1;let _0x373581=_0x57d848[_0x2c1160(0x2f3)]()['tables'][_0x458ef3],_0x174d21=_0x373581[_0x2c1160(0x503)][_0x1181e2],_0x5e30d6=_0x373581[_0x2c1160(0x503)][_0x5d234e];if(_0x174d21['system']===!0x0||_0x174d21[_0x2c1160(0x305)]===_0x618ba[_0x2c1160(0x28f)]||_0x5e30d6['system']===!0x0||_0x5e30d6['type']===_0x618ba[_0x2c1160(0x28f)])return!0x1;let _0x378141=_0x2b1b85[_0x2c1160(0x315)](_0x2ca718),_0x56b7e8=_0x2b1b85[_0x2c1160(0x315)](_0x51376c),_0x30f971=_0x57d848[_0x2c1160(0x2f3)](),_0xc9cbb9=new W()[_0x2c1160(0x511)](_0x30f971,_0x458ef3,_0x3694d7,_0x1181e2,_0x5d5f03),_0x49fe7c=new z()[_0x2c1160(0x388)](_0x30f971,_0xc9cbb9),_0x2a07f0={'unitId':_0x31acbf,'op':_0xc9cbb9},_0x50b219={'unitId':_0x31acbf,'op':_0x49fe7c};return _0x378141[_0x2c1160(0x1e6)](Q['id'],_0x2a07f0)?(_0x33b7ae['focusUnit'](_0x31acbf),_0x56b7e8['pushUndoRedo']({'unitID':_0x31acbf,'undoMutations':[{'id':Q['id'],'params':_0x50b219}],'redoMutations':[{'id':Q['id'],'params':_0x2a07f0}]}),!0x0):!0x1;}},yo={'id':_0x5daf81(0x2a0),'type':_0x3d059d['COMMAND'],'handler'(_0x50c2ae,_0x58a98c){const _0x4ca3a0=_0x5daf81;if(!_0x58a98c)return!0x1;let _0x452d87=_0x50c2ae[_0x4ca3a0(0x315)](_0x364596),{unitId:_0x5ac077,tableId:_0x4e0f97,viewId:_0x31f9dc,fieldId:_0x3def5b,visible:_0x6a9311}=_0x58a98c,_0x788dcf=_0x452d87[_0x4ca3a0(0x1ed)](_0x5ac077,_0x2ddca0[_0x4ca3a0(0x33d)]);if(!_0x788dcf||!$(_0x788dcf,_0x4e0f97,{'viewIds':[_0x31f9dc],'fieldIds':[_0x3def5b]}))return!0x1;let _0x38f430=_0x788dcf[_0x4ca3a0(0x2f3)]()['tables'][_0x4e0f97]['fields'][_0x3def5b];if(_0x38f430[_0x4ca3a0(0x3db)]===!0x0||_0x38f430[_0x4ca3a0(0x305)]===_0x618ba[_0x4ca3a0(0x28f)])return!0x1;let _0x48242d=_0x50c2ae[_0x4ca3a0(0x315)](_0x2ca718),_0x3580fe=_0x50c2ae[_0x4ca3a0(0x315)](_0x51376c),_0x450999=_0x788dcf[_0x4ca3a0(0x2f3)](),_0xaba682=new W()[_0x4ca3a0(0x44d)](_0x450999,_0x4e0f97,_0x31f9dc,_0x3def5b,_0x6a9311),_0x4a4581=new z()[_0x4ca3a0(0x388)](_0x450999,_0xaba682),_0x3d9cc6={'unitId':_0x5ac077,'op':_0xaba682},_0x1fe966={'unitId':_0x5ac077,'op':_0x4a4581};return _0x48242d[_0x4ca3a0(0x1e6)](Q['id'],_0x3d9cc6)?(_0x452d87['focusUnit'](_0x5ac077),_0x3580fe[_0x4ca3a0(0x34a)]({'unitID':_0x5ac077,'undoMutations':[{'id':Q['id'],'params':_0x1fe966}],'redoMutations':[{'id':Q['id'],'params':_0x3d9cc6}]}),!0x0):!0x1;}},bo={'id':_0x5daf81(0x297),'type':_0x3d059d['COMMAND'],'handler':(_0xce2abe,_0x1e8e65)=>{const _0x55868d=_0x5daf81;if(!_0x1e8e65)return!0x1;let _0x38da5e=_0xce2abe[_0x55868d(0x315)](_0x364596),{unitId:_0x263763,tableId:_0x265bcb,viewId:_0x3b76b5,fieldId:_0x4dd3be,width:_0x4c6169}=_0x1e8e65,_0x266610=_0x38da5e[_0x55868d(0x1ed)](_0x263763,_0x2ddca0[_0x55868d(0x33d)]);if(!_0x266610||!$(_0x266610,_0x265bcb,{'viewIds':[_0x3b76b5],'fieldIds':[_0x4dd3be]}))return!0x1;let _0x202aa7=_0x266610[_0x55868d(0x2f3)]()[_0x55868d(0x2f7)][_0x265bcb][_0x55868d(0x503)][_0x4dd3be];if(_0x202aa7[_0x55868d(0x3db)]===!0x0||_0x202aa7[_0x55868d(0x305)]===_0x618ba[_0x55868d(0x28f)])return!0x1;let _0x11f0bf=_0xce2abe[_0x55868d(0x315)](_0x2ca718),_0x4381ea=_0xce2abe[_0x55868d(0x315)](_0x51376c),_0x4c0fde=_0x266610[_0x55868d(0x2f3)](),_0x5a6340=new W()[_0x55868d(0x41a)](_0x4c0fde,_0x265bcb,_0x3b76b5,_0x4dd3be,_0x4c6169),_0xf962db=new z()['invertOp'](_0x4c0fde,_0x5a6340),_0xa77f01={'unitId':_0x263763,'op':_0x5a6340},_0x34d138={'unitId':_0x263763,'op':_0xf962db};return _0x11f0bf[_0x55868d(0x1e6)](Q['id'],_0xa77f01)?(_0x38da5e[_0x55868d(0x2ac)](_0x263763),_0x4381ea[_0x55868d(0x34a)]({'unitID':_0x263763,'undoMutations':[{'id':Q['id'],'params':_0x34d138}],'redoMutations':[{'id':Q['id'],'params':_0xa77f01}]}),!0x0):!0x1;}},xo={'id':_0x5daf81(0x20d),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x21ab5e,_0x39c28d)=>{const _0x4da41a=_0x5daf81;if(!_0x39c28d)return!0x1;let _0x2c636e=_0x21ab5e[_0x4da41a(0x315)](_0x364596),{unitId:_0x1f9970,tableId:_0x3d9e03,viewId:_0xa4aa8d,filter:_0x4e3295}=_0x39c28d,_0x381503=_0x2c636e['getUnit'](_0x1f9970,_0x2ddca0[_0x4da41a(0x33d)]),_0x212b02=(_0x4e3295==null?void 0x0:_0x4e3295['conditions'][_0x4da41a(0x2b0)](_0x1d14ce=>_0x1d14ce[_0x4da41a(0x4a1)]))??[];if(!_0x381503||!$(_0x381503,_0x3d9e03,{'viewIds':[_0xa4aa8d],'fieldIds':_0x212b02}))return!0x1;let _0x54408e=_0x21ab5e[_0x4da41a(0x315)](_0x2ca718),_0x321132=_0x21ab5e['get'](_0x51376c),_0x3feb72=_0x381503[_0x4da41a(0x2f3)](),_0x703608=new W()[_0x4da41a(0x4ea)](_0x3feb72,_0x3d9e03,_0xa4aa8d,_0x4e3295),_0x5b330e=new z()['invertOp'](_0x3feb72,_0x703608),_0x4c3a13={'unitId':_0x1f9970,'op':_0x703608},_0x3b10da={'unitId':_0x1f9970,'op':_0x5b330e};return _0x54408e[_0x4da41a(0x1e6)](Q['id'],_0x4c3a13)?(_0x2c636e[_0x4da41a(0x2ac)](_0x1f9970),_0x321132['pushUndoRedo']({'unitID':_0x1f9970,'undoMutations':[{'id':Q['id'],'params':_0x3b10da}],'redoMutations':[{'id':Q['id'],'params':_0x4c3a13}]}),!0x0):!0x1;}},So={'id':_0x5daf81(0x523),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x59b5f0,_0x2a653f)=>{const _0x6574a9=_0x5daf81;if(!_0x2a653f)return!0x1;let _0x4ff693=_0x59b5f0[_0x6574a9(0x315)](_0x364596),{unitId:_0x809a9f,tableId:_0x4389fc,viewId:_0x3e223c,group:_0x5f29da}=_0x2a653f,_0x484f87=_0x4ff693['getUnit'](_0x809a9f,_0x2ddca0['UNIVER_BASE']);if(!_0x484f87||!$(_0x484f87,_0x4389fc,{'viewIds':[_0x3e223c],'fieldIds':_0x5f29da[_0x6574a9(0x2b0)](_0x23ce49=>_0x23ce49[_0x6574a9(0x4a1)])}))return!0x1;let _0x40e902=_0x59b5f0[_0x6574a9(0x315)](_0x2ca718),_0xd08be=_0x59b5f0[_0x6574a9(0x315)](_0x51376c),_0x283884=_0x484f87['getSnapshot'](),_0x162753=new W()[_0x6574a9(0x40b)](_0x283884,_0x4389fc,_0x3e223c,_0x5f29da),_0x3ee8d8=new z()[_0x6574a9(0x388)](_0x283884,_0x162753),_0x5c5106={'unitId':_0x809a9f,'op':_0x162753},_0x1a974f={'unitId':_0x809a9f,'op':_0x3ee8d8};return _0x40e902[_0x6574a9(0x1e6)](Q['id'],_0x5c5106)?(_0x4ff693[_0x6574a9(0x2ac)](_0x809a9f),_0xd08be['pushUndoRedo']({'unitID':_0x809a9f,'undoMutations':[{'id':Q['id'],'params':_0x1a974f}],'redoMutations':[{'id':Q['id'],'params':_0x5c5106}]}),!0x0):!0x1;}},Co={'id':_0x5daf81(0x4b9),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x9e5bfa,_0x2f39f0)=>{const _0x17bcf1=_0x5daf81;if(!_0x2f39f0)return!0x1;let _0x58107d=_0x9e5bfa[_0x17bcf1(0x315)](_0x364596),{unitId:_0x5d4ed0,tableId:_0x532fad,viewId:_0x1fd615,sort:_0x591362}=_0x2f39f0,_0x11aa2d=_0x58107d[_0x17bcf1(0x1ed)](_0x5d4ed0,_0x2ddca0[_0x17bcf1(0x33d)]);if(!_0x11aa2d||!$(_0x11aa2d,_0x532fad,{'viewIds':[_0x1fd615],'fieldIds':_0x591362[_0x17bcf1(0x2b0)](_0x1c13fb=>_0x1c13fb[_0x17bcf1(0x4a1)])}))return!0x1;let _0x225d13=_0x9e5bfa[_0x17bcf1(0x315)](_0x2ca718),_0xae8e14=_0x9e5bfa['get'](_0x51376c),_0x2c37e8=_0x11aa2d['getSnapshot'](),_0x524975=new W()[_0x17bcf1(0x367)](_0x2c37e8,_0x532fad,_0x1fd615,_0x591362),_0x222a0f=new z()[_0x17bcf1(0x388)](_0x2c37e8,_0x524975),_0x482695={'unitId':_0x5d4ed0,'op':_0x524975},_0x253778={'unitId':_0x5d4ed0,'op':_0x222a0f};return _0x225d13[_0x17bcf1(0x1e6)](Q['id'],_0x482695)?(_0x58107d[_0x17bcf1(0x2ac)](_0x5d4ed0),_0xae8e14[_0x17bcf1(0x34a)]({'unitID':_0x5d4ed0,'undoMutations':[{'id':Q['id'],'params':_0x253778}],'redoMutations':[{'id':Q['id'],'params':_0x482695}]}),!0x0):!0x1;}},wo={'id':_0x5daf81(0x420),'type':_0x3d059d['COMMAND'],'handler'(_0x399208,_0x1cb84c){const _0x80c7d2=_0x5daf81;if(!_0x1cb84c)return!0x1;let _0x5e73b5=_0x399208[_0x80c7d2(0x315)](_0x364596),{unitId:_0x4d04bb,tableId:_0x101b7d,recordId:_0x2af820,fieldId:_0x48e80c,value:_0x155b66}=_0x1cb84c,_0x323932=_0x5e73b5[_0x80c7d2(0x1ed)](_0x4d04bb,_0x2ddca0[_0x80c7d2(0x33d)]);if(!_0x323932||!$(_0x323932,_0x101b7d,{'recordIds':[_0x2af820],'fieldIds':[_0x48e80c]})||!ga(_0x323932,_0x101b7d,_0x48e80c,_0x155b66))return!0x1;let _0x5d0f4a=_0x323932[_0x80c7d2(0x2f3)]()[_0x80c7d2(0x2f7)][_0x101b7d],_0xcb3a7a=F(_0x5d0f4a,_0x48e80c)&&Xe(_0x5d0f4a)[_0x80c7d2(0x4f9)](_0x48e80c),_0x1f4e76=_0xcb3a7a?tt(_0x5d0f4a,_0x48e80c):null,_0x70fcce=(_0x1f4e76==null?void 0x0:_0x1f4e76['parentByRecordId'][_0x80c7d2(0x315)](_0x2af820))??null,_0x51bb96=_0xcb3a7a?Le(_0x155b66)[0x0]??null:null;if(_0x1f4e76){if(_0x51bb96&&!_0x5d0f4a['records'][_0x51bb96])throw new P(_0x80c7d2(0x3e8));let _0x384aef=it(_0x1f4e76,_0x2af820,_0x51bb96);if(!_0x384aef[_0x80c7d2(0x36d)])throw new P(_0x384aef[_0x80c7d2(0x483)]===_0x335882[_0x80c7d2(0x1fe)]?_0x80c7d2(0x343):_0x384aef[_0x80c7d2(0x483)]===_0x335882['Cycle']?_0x80c7d2(0x2a5):_0x80c7d2(0x25b));}let _0x288fa0=_0x399208[_0x80c7d2(0x315)](_0x2ca718),_0xb4b17c=_0x399208[_0x80c7d2(0x315)](_0x51376c),_0x2266d6=_0x399208[_0x80c7d2(0x315)](Kr),_0x3d8222;try{_0x3d8222=_0x2266d6[_0x80c7d2(0x46c)](_0x323932,_0x101b7d,_0x2af820,_0x48e80c,_0x155b66);}catch(_0x1a7c59){return console[_0x80c7d2(0x51c)](_0x80c7d2(0x3f8),_0x1a7c59),!0x1;}let _0x4ea736=new z()[_0x80c7d2(0x388)](_0x323932[_0x80c7d2(0x2f3)](),_0x3d8222),_0x53a82e=_0xcb3a7a&&_0x70fcce!==_0x51bb96?[{'tableId':_0x101b7d,'fieldId':_0x48e80c,'recordId':_0x2af820,'oldParentRecordId':_0x70fcce,'parentRecordId':_0x51bb96}]:void 0x0,_0x320084={'unitId':_0x4d04bb,'op':_0x3d8222,'trigger':_0x53a82e?wo['id']:void 0x0,'hierarchyChanges':_0x53a82e,'source':_0x53a82e?_0x1cb84c['source']??'ui':void 0x0},_0xf5119={..._0x320084,'source':_0x53a82e?'redo':void 0x0},_0xd42434={'unitId':_0x4d04bb,'op':_0x4ea736,'trigger':_0x53a82e?wo['id']:void 0x0,'hierarchyChanges':_0x53a82e==null?void 0x0:_0x53a82e['map'](_0x339de8=>({..._0x339de8,'oldParentRecordId':_0x339de8[_0x80c7d2(0x419)],'parentRecordId':_0x339de8[_0x80c7d2(0x266)]})),'source':_0x53a82e?_0x80c7d2(0x3a8):void 0x0};return _0x288fa0[_0x80c7d2(0x1e6)](Q['id'],_0x320084)?(_0x5e73b5[_0x80c7d2(0x49c)]()||_0x5e73b5[_0x80c7d2(0x2ac)](_0x4d04bb),_0xb4b17c[_0x80c7d2(0x34a)]({'unitID':_0x4d04bb,'undoMutations':[{'id':Q['id'],'params':_0xd42434}],'redoMutations':[{'id':Q['id'],'params':_0xf5119}]}),!0x0):!0x1;}},To={'id':_0x5daf81(0x23f),'type':_0x3d059d['COMMAND'],'handler'(_0x13cbdb,_0x5c7483){const _0x5a3efd=_0x5daf81;if(!_0x5c7483)return!0x1;let _0x335417=_0x13cbdb['get'](_0x364596),{unitId:_0x5a31c7,tableId:_0x4af180,fieldId:_0x2361f3}=_0x5c7483,_0x47fcc3=_0x335417[_0x5a3efd(0x1ed)](_0x5a31c7,_0x2ddca0[_0x5a3efd(0x33d)]);if(!_0x47fcc3||!$(_0x47fcc3,_0x4af180,{'fieldIds':[_0x2361f3]}))return!0x1;let _0x28516e=_0x13cbdb[_0x5a3efd(0x315)](_0x2ca718),_0x43f18b=_0x13cbdb[_0x5a3efd(0x315)](_0x51376c),_0x22b715=_0x47fcc3[_0x5a3efd(0x2f3)](),_0x2eced1=_0x5c7483[_0x5a3efd(0x4e0)][_0x5a3efd(0x3a5)](),_0x1f8452=new W()[_0x5a3efd(0x23d)](_0x22b715,_0x4af180,_0x2361f3,{'description':_0x2eced1}),_0x2be4b0=new z()[_0x5a3efd(0x388)](_0x47fcc3[_0x5a3efd(0x2f3)](),_0x1f8452),_0x28a81e={'unitId':_0x5a31c7,'op':_0x1f8452},_0x4686db={'unitId':_0x5a31c7,'op':_0x2be4b0};return _0x28516e[_0x5a3efd(0x1e6)](Q['id'],_0x28a81e)?(_0x335417[_0x5a3efd(0x2ac)](_0x5a31c7),_0x43f18b[_0x5a3efd(0x34a)]({'unitID':_0x5a31c7,'undoMutations':[{'id':Q['id'],'params':_0x4686db}],'redoMutations':[{'id':Q['id'],'params':_0x28a81e}]}),!0x0):!0x1;}},Eo={'id':_0x5daf81(0x403),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x5797ae,_0x50b22b)=>{const _0x1f9835=_0x5daf81;if(!_0x50b22b)return!0x1;let _0x21b854=_0x5797ae[_0x1f9835(0x315)](_0x364596),{unitId:_0x597538,tableId:_0x146474,fieldId:_0x5485bd,patch:_0x3c9a27}=_0x50b22b,_0x36f5f1=_0x21b854[_0x1f9835(0x1ed)](_0x597538,_0x2ddca0[_0x1f9835(0x33d)]);if(!_0x36f5f1||_0x5485bd===_0x4a6fc3||!$(_0x36f5f1,_0x146474,{'fieldIds':[_0x5485bd]}))return!0x1;let _0x97bfb1=_0x5797ae[_0x1f9835(0x315)](_0x2ca718),_0x484462=_0x5797ae[_0x1f9835(0x315)](_0x51376c),_0x2f51fa=_0x36f5f1['getSnapshot']();if(!ha(_0x36f5f1,_0x146474,{..._0x2f51fa[_0x1f9835(0x2f7)][_0x146474][_0x1f9835(0x503)][_0x5485bd],..._0x3c9a27}))return!0x1;let _0x1ddc08=new W()[_0x1f9835(0x23d)](_0x2f51fa,_0x146474,_0x5485bd,_0x3c9a27),_0x85cdf1=new z()[_0x1f9835(0x388)](_0x2f51fa,_0x1ddc08),_0x5d54c6={'unitId':_0x597538,'op':_0x1ddc08},_0x289a6c={'unitId':_0x597538,'op':_0x85cdf1};return _0x97bfb1[_0x1f9835(0x1e6)](Q['id'],_0x5d54c6)?(_0x21b854[_0x1f9835(0x2ac)](_0x597538),_0x484462[_0x1f9835(0x34a)]({'unitID':_0x597538,'undoMutations':[{'id':Q['id'],'params':_0x289a6c}],'redoMutations':[{'id':Q['id'],'params':_0x5d54c6}]}),!0x0):!0x1;}},Do={'id':'base.command.update-base-kanban-config','type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x590ac3,_0x41e43d)=>{const _0x52528c=_0x5daf81;if(!_0x41e43d)return!0x1;let _0x4dd6f2=_0x590ac3[_0x52528c(0x315)](_0x364596),{unitId:_0x471fbf,tableId:_0x3f2a9f,viewId:_0x1d6f14,patch:_0x213497}=_0x41e43d,_0x339e47=_0x4dd6f2['getUnit'](_0x471fbf,_0x2ddca0[_0x52528c(0x33d)]);if(!_0x339e47||!$(_0x339e47,_0x3f2a9f,{'viewIds':[_0x1d6f14]}))return!0x1;let _0x100b16=_0x590ac3[_0x52528c(0x315)](_0x2ca718),_0x1bb115=_0x590ac3['get'](_0x51376c),_0x56e158=_0x339e47[_0x52528c(0x2f3)](),_0x368c5a=new W()[_0x52528c(0x4c9)](_0x56e158,_0x3f2a9f,_0x1d6f14,_0x213497),_0x32a08a=new z()['invertOp'](_0x56e158,_0x368c5a),_0x5b1c2b={'unitId':_0x471fbf,'op':_0x368c5a},_0x593430={'unitId':_0x471fbf,'op':_0x32a08a};return _0x100b16['syncExecuteCommand'](Q['id'],_0x5b1c2b)?(_0x4dd6f2[_0x52528c(0x2ac)](_0x471fbf),_0x1bb115['pushUndoRedo']({'unitID':_0x471fbf,'undoMutations':[{'id':Q['id'],'params':_0x593430}],'redoMutations':[{'id':Q['id'],'params':_0x5b1c2b}]}),!0x0):!0x1;}},Oo={'id':_0x5daf81(0x1f5),'type':_0x3d059d['COMMAND'],'handler':(_0x23d717,_0x5eca3a)=>{const _0xa40227=_0x5daf81;if(!_0x5eca3a)return!0x1;let _0x287e16=_0x23d717[_0xa40227(0x315)](_0x364596),{unitId:_0x8b2a8f,tableId:_0x22a165,recordId:_0x5ca6d4,orderKey:_0xd04b55}=_0x5eca3a,_0x416839=_0x287e16[_0xa40227(0x1ed)](_0x8b2a8f,_0x2ddca0[_0xa40227(0x33d)]);if(!_0x416839||!$(_0x416839,_0x22a165,{'recordIds':[_0x5ca6d4]}))return!0x1;let _0x3e4528=_0x23d717[_0xa40227(0x315)](_0x2ca718),_0xa436d8=_0x23d717[_0xa40227(0x315)](_0x51376c),_0x2ddd00=_0x416839[_0xa40227(0x2f3)](),_0x35d97f=new W()[_0xa40227(0x3f6)](_0x2ddd00,_0x22a165,_0x5ca6d4,_0xd04b55),_0x3343b2=new z()[_0xa40227(0x388)](_0x2ddd00,_0x35d97f),_0x1d0139={'unitId':_0x8b2a8f,'op':_0x35d97f},_0x337abf={'unitId':_0x8b2a8f,'op':_0x3343b2};return _0x3e4528[_0xa40227(0x1e6)](Q['id'],_0x1d0139)?(_0x287e16[_0xa40227(0x2ac)](_0x8b2a8f),_0xa436d8[_0xa40227(0x34a)]({'unitID':_0x8b2a8f,'undoMutations':[{'id':Q['id'],'params':_0x337abf}],'redoMutations':[{'id':Q['id'],'params':_0x1d0139}]}),!0x0):!0x1;}};let ko=function(_0x1ef3b6){const _0x4f0f10=_0x5daf81;return _0x1ef3b6[_0x4f0f10(0x282)]=_0x4f0f10(0x1ba),_0x1ef3b6['Add']='add',_0x1ef3b6['Delete']=_0x4f0f10(0x3ae),_0x1ef3b6[_0x4f0f10(0x4d6)]=_0x4f0f10(0x400),_0x1ef3b6;}({});const Ao={'id':_0x5daf81(0x4cc),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x46db8e,_0x4b0872)=>{const _0x741fd0=_0x5daf81;var _0x982cca;if(!_0x4b0872)return!0x1;let _0x2d9fcb=_0x46db8e[_0x741fd0(0x315)](_0x364596),_0x4c588d=_0x2d9fcb[_0x741fd0(0x1ed)](_0x4b0872['unitId'],_0x2ddca0['UNIVER_BASE']);if(!_0x4c588d||!$(_0x4c588d,_0x4b0872['tableId'],{'viewIds':[_0x4b0872[_0x741fd0(0x3c2)]]}))return!0x1;let _0x230ec0=_0x4c588d[_0x741fd0(0x2f3)](),_0x22399b=_0x230ec0[_0x741fd0(0x2f7)][_0x4b0872[_0x741fd0(0x221)]],_0x415e2d=jo(((_0x982cca=_0x22399b[_0x741fd0(0x1e8)][_0x4b0872['viewId']]['config']['conditionalColoring'])==null?void 0x0:_0x982cca['rules'])??[],_0x4b0872);if(!_0x415e2d)return!0x1;Mo(_0x22399b,_0x415e2d);let _0x201039=new W()['updateViewConfig'](_0x230ec0,_0x4b0872[_0x741fd0(0x221)],_0x4b0872[_0x741fd0(0x3c2)],{'conditionalColoring':_0x415e2d[_0x741fd0(0x21d)]?{'rules':_0x415e2d}:null}),_0x54c784=new z()[_0x741fd0(0x388)](_0x230ec0,_0x201039),_0x519dbd={'unitId':_0x4b0872['unitId'],'op':_0x201039},_0x5e75b1={'unitId':_0x4b0872[_0x741fd0(0x3cb)],'op':_0x54c784};return _0x46db8e[_0x741fd0(0x315)](_0x2ca718)[_0x741fd0(0x1e6)](Q['id'],_0x519dbd)?(_0x2d9fcb['focusUnit'](_0x4b0872['unitId']),_0x46db8e[_0x741fd0(0x315)](_0x51376c)['pushUndoRedo']({'unitID':_0x4b0872[_0x741fd0(0x3cb)],'undoMutations':[{'id':Q['id'],'params':_0x5e75b1}],'redoMutations':[{'id':Q['id'],'params':_0x519dbd}]}),!0x0):!0x1;}};function jo(_0x1a1c40,_0x403ccb){const _0x4166ef=_0x5daf81;switch(_0x403ccb[_0x4166ef(0x305)]){case _0x4166ef(0x1ba):return _0x9abbbc[_0x4166ef(0x28e)](_0x403ccb[_0x4166ef(0x2e0)]);case'add':return[..._0x9abbbc[_0x4166ef(0x28e)](_0x1a1c40),_0x9abbbc[_0x4166ef(0x28e)](_0x403ccb[_0x4166ef(0x2ee)])];case _0x4166ef(0x3ae):{let _0x48e54d=_0x1a1c40[_0x4166ef(0x32f)](_0x16f4a0=>_0x16f4a0['id']!==_0x403ccb[_0x4166ef(0x509)]);return _0x48e54d[_0x4166ef(0x21d)]===_0x1a1c40[_0x4166ef(0x21d)]?null:_0x9abbbc['deepClone'](_0x48e54d);}case _0x4166ef(0x400):return _0x1a1c40[_0x4166ef(0x21d)]?[]:null;}}function Mo(_0x580cbb,_0x260620){const _0x448237=_0x5daf81;if(!Array['isArray'](_0x260620))throw TypeError(_0x448237(0x345));let _0xec811d=new Set();for(let [_0x2d52ff,_0x30e878]of _0x260620[_0x448237(0x2e4)]())Po(_0x580cbb,_0x30e878,No(_0x30e878,_0x2d52ff,_0xec811d));}function No(_0x1bca30,_0x369f27,_0x8e09be){const _0x4ca5c2=_0x5daf81;if(!_0x1bca30||typeof _0x1bca30!=_0x4ca5c2(0x1fb))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20'+_0x369f27+'\x20must\x20be\x20an\x20object.');let _0x3abee5=typeof _0x1bca30['id']==_0x4ca5c2(0x2ed)&&_0x1bca30['id'][_0x4ca5c2(0x3a5)]()?'\x22'+_0x1bca30['id']+'\x22':_0x4ca5c2(0x1ea)+_0x369f27;if(typeof _0x1bca30['id']!=_0x4ca5c2(0x2ed)||!_0x1bca30['id']['trim']())throw Error(_0x4ca5c2(0x344)+_0x3abee5+_0x4ca5c2(0x204));if(_0x8e09be[_0x4ca5c2(0x253)](_0x1bca30['id']))throw Error(_0x4ca5c2(0x260)+_0x1bca30['id']+'\x22.');_0x8e09be['add'](_0x1bca30['id']);let _0x590900=typeof _0x1bca30['color']=='string'&&_0x1bca30[_0x4ca5c2(0x3be)][_0x4ca5c2(0x3a5)]()?new _0x480202(_0x1bca30[_0x4ca5c2(0x3be)]):null;if(!(_0x590900!=null&&_0x590900[_0x4ca5c2(0x1c2)]))throw Error(_0x4ca5c2(0x344)+_0x3abee5+_0x4ca5c2(0x3ca));return _0x3abee5;}function Po(_0x531aaf,_0xec98fb,_0x1ec152){const _0xca7aee=_0x5daf81;let _0x46e747=new Set(Object[_0xca7aee(0x45b)](_0x20be76)),_0x3af7ad=new Set(Object[_0xca7aee(0x45b)](_0xb7a4f0)),_0x147d49=new Set(Object[_0xca7aee(0x45b)](_0x1a2fb9));if(!_0x46e747[_0xca7aee(0x253)](_0xec98fb[_0xca7aee(0x1f2)]))throw Error(_0xca7aee(0x344)+_0x1ec152+_0xca7aee(0x3df)+String(_0xec98fb[_0xca7aee(0x1f2)])+'\x22.');let _0x4b5c69=typeof _0xec98fb['fieldId']==_0xca7aee(0x2ed)?_0x531aaf[_0xca7aee(0x503)][_0xec98fb[_0xca7aee(0x4a1)]]:void 0x0;if(!_0x4b5c69||_0x4b5c69[_0xca7aee(0x3db)]===!0x0||_0x4b5c69[_0xca7aee(0x305)]===_0x618ba[_0xca7aee(0x28f)])throw Error(_0xca7aee(0x344)+_0x1ec152+_0xca7aee(0x510)+String(_0xec98fb[_0xca7aee(0x4a1)])+'\x22.');if(!_0x3af7ad['has'](_0xec98fb[_0xca7aee(0x246)]))throw Error(_0xca7aee(0x344)+_0x1ec152+'\x20has\x20unsupported\x20operator\x20\x22'+String(_0xec98fb[_0xca7aee(0x246)])+'\x22.');if(_0xec98fb[_0xca7aee(0x431)]!==void 0x0&&!_0x147d49[_0xca7aee(0x253)](_0xec98fb['dateMode']))throw Error(_0xca7aee(0x344)+_0x1ec152+_0xca7aee(0x3a7)+String(_0xec98fb[_0xca7aee(0x431)])+'\x22.');if(_0xec98fb[_0xca7aee(0x1f2)]===_0x20be76[_0xca7aee(0x1f9)])return;let _0x2a3348=vn(_0x4b5c69[_0xca7aee(0x305)]);if(!_0x2a3348['includes'](_0xec98fb[_0xca7aee(0x246)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x1ec152+'\x20cannot\x20use\x20operator\x20\x22'+_0xec98fb[_0xca7aee(0x246)]+'\x22\x20with\x20field\x20type\x20\x22'+_0x4b5c69['type']+_0xca7aee(0x451)+_0x2a3348['join'](',\x20')+'.');if(_0xec98fb['dateMode']!==void 0x0&&!yn(_0x4b5c69['type']))throw Error(_0xca7aee(0x344)+_0x1ec152+_0xca7aee(0x50b));}const Fo={'id':_0x5daf81(0x433),'type':_0x3d059d[_0x5daf81(0x44b)],'handler':(_0x539407,_0x53acac)=>{const _0x4f827e=_0x5daf81;if(!_0x53acac)return!0x1;let _0x47e585=_0x539407[_0x4f827e(0x315)](_0x364596),{unitId:_0x16d86a,tableId:_0x3a85d2,viewId:_0xf8c88a,patch:_0x4d8eb5}=_0x53acac,_0x8885bf=_0x47e585[_0x4f827e(0x1ed)](_0x16d86a,_0x2ddca0[_0x4f827e(0x33d)]);if(!_0x8885bf||!$(_0x8885bf,_0x3a85d2,{'viewIds':[_0xf8c88a]}))return!0x1;let _0x5640b2=_0x539407['get'](_0x2ca718),_0x3da06e=_0x539407[_0x4f827e(0x315)](_0x51376c),_0x1e1e97=_0x8885bf[_0x4f827e(0x2f3)](),_0x3bb3df=new W()[_0x4f827e(0x4c9)](_0x1e1e97,_0x3a85d2,_0xf8c88a,_0x4d8eb5),_0xce0810=new z()[_0x4f827e(0x388)](_0x1e1e97,_0x3bb3df),_0x30d07b={'unitId':_0x16d86a,'op':_0x3bb3df},_0x24d7b2={'unitId':_0x16d86a,'op':_0xce0810};return _0x5640b2[_0x4f827e(0x1e6)](Q['id'],_0x30d07b)?(_0x47e585[_0x4f827e(0x2ac)](_0x16d86a),_0x3da06e['pushUndoRedo']({'unitID':_0x16d86a,'undoMutations':[{'id':Q['id'],'params':_0x24d7b2}],'redoMutations':[{'id':Q['id'],'params':_0x30d07b}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x3d059d[_0x5daf81(0x44b)],'handler'(_0x4efa82,_0x54c2b9){const _0x90ff51=_0x5daf81;if(!_0x54c2b9)return{'valid':!0x1,'reason':_0x90ff51(0x3ea)};let _0x53ffe8=_0x4efa82[_0x90ff51(0x315)](_0x364596)[_0x90ff51(0x1ed)](_0x54c2b9[_0x90ff51(0x3cb)],_0x2ddca0[_0x90ff51(0x33d)]),_0x4309ed=_0x53ffe8==null?void 0x0:_0x53ffe8[_0x90ff51(0x2f3)](),_0x333df6=_0x4309ed==null?void 0x0:_0x4309ed['tables'][_0x54c2b9[_0x90ff51(0x221)]];return!_0x4309ed||!_0x333df6?{'valid':!0x1,'reason':_0x90ff51(0x40f)}:new Xi()[_0x90ff51(0x4dc)](_0x54c2b9[_0x90ff51(0x494)],_0x333df6,{'snapshot':_0x4309ed});}};let Lo=class extends _0x3436af{constructor(_0xc9af91){const _0x3064cd=_0x5daf81;super(_0xc9af91,_0x3064cd(0x527),_0x2ddca0[_0x3064cd(0x33d)],[_0x2ea692[_0x3064cd(0x1de)],_0x2ea692[_0x3064cd(0x3c1)],_0x2ea692[_0x3064cd(0x52a)],_0x2ea692[_0x3064cd(0x2cd)],_0x2ea692[_0x3064cd(0x357)]]);}};Lo=X([Y(0x0,_0x3e7637)],Lo);const Ro={'id':_0x5daf81(0x3cc),'type':_0x3d059d['MUTATION'],'handler':(_0x195aaa,_0x42c0da)=>!_0x42c0da||!_0x195aaa[_0x5daf81(0x315)](_0x364596)['getUnit'](_0x42c0da[_0x5daf81(0x3cb)],_0x2ddca0['UNIVER_BASE'])?!0x1:_0x195aaa[_0x5daf81(0x315)](Lo)[_0x5daf81(0x278)](_0x42c0da[_0x5daf81(0x3cb)],_0x42c0da[_0x5daf81(0x1df)],_0x42c0da[_0x5daf81(0x3d2)],_0x42c0da[_0x5daf81(0x2ee)])},zo={'id':_0x5daf81(0x1dc),'type':_0x3d059d[_0x5daf81(0x4cd)],'handler':(_0x350123,_0x144920)=>!_0x144920||!_0x350123[_0x5daf81(0x315)](_0x364596)['getUnit'](_0x144920[_0x5daf81(0x3cb)],_0x2ddca0[_0x5daf81(0x33d)])?!0x1:_0x350123['get'](Lo)[_0x5daf81(0x2cc)](_0x144920['unitId'],_0x144920['rules'])};function Bo(_0x29facf){const _0x22da53=_0x5daf81;let _0x4220e1=_0x29facf['now']??Date['now'](),_0x26fb29=_0x29facf[_0x22da53(0x51f)]??_0x29facf['id']+_0x22da53(0x565),_0x2e782d=_0x29facf[_0x22da53(0x303)]??_0x29facf['id']+_0x22da53(0x381),_0x4053f0=_0x29facf[_0x22da53(0x20f)]??0x0,_0x26a955=_0x44aad8(),_0xec5c6a={'id':_0x26fb29,'name':_0x29facf[_0x22da53(0x226)]??'Name','type':_0x618ba[_0x22da53(0x1da)],'config':{'placeholder':_0x22da53(0x2e3)}},_0x17a0c4={},_0x113a77=[],_0x45fdbb={},_0x12c5f2={},_0x3e16c7={};for(let _0x3aa284=0x0;_0x3aa284<_0x4053f0;_0x3aa284++){let _0x395651=_0x29facf['id']+_0x22da53(0x1f3)+(_0x3aa284+0x1);_0x17a0c4[_0x395651]={'id':_0x395651,'values':{[_0x4a6fc3]:_0x395651,..._0x29facf[_0x22da53(0x4e4)]?{[_0x26fb29]:_0x29facf['recordNamePrefix']+'\x20'+(_0x3aa284+0x1)}:{}},'orderKey':String(_0x3aa284+0x1)['padStart'](0x4,'0'),'createdAt':_0x4220e1,'updatedAt':_0x4220e1},_0x113a77['push'](_0x395651),_0x45fdbb[_0x395651]=_0x3aa284,_0x12c5f2[_0x3aa284]=_0x395651,_0x3e16c7[_0x3aa284]={0x0:{'v':_0x395651,'t':_0x20fde0[_0x22da53(0x376)]}},_0x29facf[_0x22da53(0x4e4)]&&(_0x3e16c7[_0x3aa284][0x1]={'v':_0x29facf[_0x22da53(0x4e4)]+'\x20'+(_0x3aa284+0x1),'t':_0x20fde0[_0x22da53(0x376)]});}let _0x4f525e={'id':_0x2e782d,'tableId':_0x29facf['id'],'name':'Grid','type':_0x168289[_0x22da53(0x47f)],'fieldOrder':[_0x4a6fc3,_0x26fb29],'fieldSettings':{[_0x4a6fc3]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x29facf['id'],'name':_0x29facf[_0x22da53(0x322)],'primaryFieldId':_0x26fb29,'fieldOrder':[_0x4a6fc3,_0x26fb29],'fields':{[_0x4a6fc3]:_0x26a955,[_0x26fb29]:_0xec5c6a},'records':_0x17a0c4,'recordOrder':_0x113a77,'rowIndex':_0x45fdbb,'rowId':_0x12c5f2,'colIndex':{[_0x4a6fc3]:0x0,[_0x26fb29]:0x1},'colId':{0x0:_0x4a6fc3,0x1:_0x26fb29},'cellData':_0x3e16c7,'views':{[_0x2e782d]:_0x4f525e},'viewOrder':[_0x2e782d]};}const Vo=_0x5daf81(0x3ff);function Ho(_0x32917d){const _0x67968a=_0x5daf81;let _0x2d9f9b=Bo({'id':_0x32917d['hostAnchorId'],'name':_0x32917d[_0x67968a(0x322)]??_0x32917d['embedId'],'recordCount':0x0});return{..._0x2d9f9b,'resources':{..._0x2d9f9b[_0x67968a(0x48d)]??{},[Vo]:Go(_0x32917d)}};}function Uo(_0x57a463){const _0x32aab7=_0x5daf81;return{'id':Q['id'],'params':{'unitId':_0x57a463['unitId'],'op':_0x1605a0[_0x32aab7(0x305)][_0x32aab7(0x363)](_0x1605a0[_0x32aab7(0x2b6)](['tables',_0x57a463[_0x32aab7(0x524)]['id']],_0x57a463[_0x32aab7(0x524)]),_0x1605a0[_0x32aab7(0x2b6)]([_0x32aab7(0x3ee),_0x57a463[_0x32aab7(0x391)]??_0x57a463[_0x32aab7(0x21a)]['tableOrder']['length']],_0x57a463[_0x32aab7(0x524)]['id'])),'trigger':'embed-ui'}};}function Wo(_0x3e1258){const _0x1feef8=_0x5daf81;let _0x4dd47b=_0x3e1258[_0x1feef8(0x21a)]['tableOrder'][_0x1feef8(0x25c)](_0x3e1258[_0x1feef8(0x221)]);if(!(!_0x3e1258[_0x1feef8(0x21a)][_0x1feef8(0x2f7)][_0x3e1258[_0x1feef8(0x221)]]||_0x4dd47b<0x0))return{'id':Q['id'],'params':{'unitId':_0x3e1258[_0x1feef8(0x3cb)],'op':_0x1605a0[_0x1feef8(0x305)][_0x1feef8(0x363)](_0x1605a0['removeOp']([_0x1feef8(0x2f7),_0x3e1258[_0x1feef8(0x221)]],_0x3e1258[_0x1feef8(0x21a)]['tables'][_0x3e1258[_0x1feef8(0x221)]]),_0x1605a0['removeOp']([_0x1feef8(0x3ee),_0x4dd47b],_0x3e1258[_0x1feef8(0x221)])),'trigger':_0x1feef8(0x252)}};}function Go(_0xbc6d62){const _0x5a1060=_0x5daf81;return{'version':0x1,'embedId':_0xbc6d62[_0x5a1060(0x2a3)],'hostAnchorId':_0xbc6d62[_0x5a1060(0x3b3)],'childUnitId':_0xbc6d62[_0x5a1060(0x3a3)],'childType':_0xbc6d62['childType']};}function Ko(_0x295f1f){const _0x143e2c=_0x5daf81;let _0x16f724=Math[_0x143e2c(0x29c)](0x0,Number(_0x295f1f['decimalPlaces']??0x0)),_0x520abb=_0x295f1f[_0x143e2c(0x4b3)]===!0x1?'0':_0x143e2c(0x2c7),_0x1ccb62=_0x16f724?'.'+'0'[_0x143e2c(0x4ab)](_0x16f724):'',_0x11a1fe=Jo(_0x295f1f[_0x143e2c(0x1f4)]);return''+(_0x295f1f['currencySymbol']?Yo(_0x295f1f[_0x143e2c(0x517)]):'')+_0x520abb+_0x1ccb62+_0x11a1fe;}function qo(_0x2a77fa,_0x395776){let _0x4663c3=Ko(_0x395776),_0x435fdf=_0x51878f['format'](_0x4663c3,_0x2a77fa,{'throws':!0x1});return Xo(String(_0x435fdf),_0x395776['separatorStyle'],_0x395776['locale']);}function Jo(_0x4d4711){const _0x3118a4=_0x5daf81;return _0x4d4711==='K'?_0x3118a4(0x284):_0x4d4711==='M'?_0x3118a4(0x44a):_0x4d4711==='B'?_0x3118a4(0x272):'';}function Yo(_0x24fc77){const _0x383113=_0x5daf81;return/^[A-Z]+$/i[_0x383113(0x27c)](_0x24fc77)?'\x22'+_0x24fc77+'\x22':_0x24fc77;}function Xo(_0x381885,_0x4a58c1,_0x10cf1a){const _0x5b692b=_0x5daf81;let _0x2a7077=_0x4a58c1===_0x5b692b(0x35a)?Zo(_0x10cf1a):_0x4a58c1;return _0x2a7077===_0x5b692b(0x306)?_0x381885[_0x5b692b(0x39b)](/,/g,'\x00')['replace'](/\./g,',')[_0x5b692b(0x39b)](/\0/g,'.'):_0x2a7077===_0x5b692b(0x3a9)?_0x381885[_0x5b692b(0x39b)](/,/g,'\x20')['replace'](/\./g,','):_0x2a7077===_0x5b692b(0x32d)?_0x381885['replace'](/,/g,'\x20'):_0x381885;}function Zo(_0x45e864){const _0x2030bb=_0x5daf81;var _0x1b9dee,_0x381b1a;let _0x38fe51=_0x45e864||new Intl[(_0x2030bb(0x3b2))]()['resolvedOptions']()[_0x2030bb(0x2dc)],_0x187fbe;try{_0x187fbe=new Intl['NumberFormat'](_0x38fe51,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})['formatToParts'](0xf4240);}catch{return _0x2030bb(0x538);}let _0x57f938=(_0x1b9dee=_0x187fbe['find'](_0x416e2f=>_0x416e2f[_0x2030bb(0x305)]===_0x2030bb(0x3e9)))==null?void 0x0:_0x1b9dee['value'],_0x317bc0=(_0x381b1a=_0x187fbe[_0x2030bb(0x2d8)](_0x43b635=>_0x43b635[_0x2030bb(0x305)]==='decimal'))==null?void 0x0:_0x381b1a[_0x2030bb(0x3fd)],_0x534b5a=_0x57f938==='\u00a0'||_0x57f938==='\u202f'?'\x20':_0x57f938;return _0x534b5a==='.'&&_0x317bc0===','?_0x2030bb(0x306):_0x534b5a==='\x20'&&_0x317bc0===','?_0x2030bb(0x3a9):_0x534b5a==='\x20'&&_0x317bc0==='.'?_0x2030bb(0x32d):_0x2030bb(0x538);}function Qo(_0x238844,_0x40c271){const _0x598121=_0x5daf81;let _0xbdfae8=_0x40c271&&typeof _0x40c271=='object'&&!Array[_0x598121(0x31e)](_0x40c271)?_0x40c271:{},_0x24da66=$o(_0xbdfae8[_0x598121(0x4b6)],0x0,0x2,0x0),_0x49bd4f=_0x238844[_0x598121(0x30d)](_0x24da66);return _0xbdfae8[_0x598121(0x444)]==='number'?_0x49bd4f:_0x49bd4f+'%';}function $o(_0x350c89,_0x107db0,_0x50ab40,_0x283143){const _0x43974b=_0x5daf81;if(_0x350c89==null||_0x350c89==='')return _0x283143;let _0xb9cc8a=typeof _0x350c89=='number'?_0x350c89:Number(_0x350c89);return Number[_0x43974b(0x2fc)](_0xb9cc8a)?Math['max'](_0x107db0,Math[_0x43974b(0x469)](_0x50ab40,Math['round'](_0xb9cc8a))):_0x283143;}const es=[_0x5daf81(0x42c),_0x5daf81(0x33f),_0x5daf81(0x4ba),_0x5daf81(0x3f2),'sum','average','min','max'],ts=[_0x5daf81(0x42c),_0x5daf81(0x33f),_0x5daf81(0x4ba),_0x5daf81(0x3f2)],ns=[_0x5daf81(0x550),_0x5daf81(0x2b8),_0x5daf81(0x469),_0x5daf81(0x29c)],rs=[_0x5daf81(0x469),'max'],is=new Set([_0x618ba[_0x5daf81(0x480)],_0x618ba[_0x5daf81(0x20a)],_0x618ba['Progress'],_0x618ba['Rating']]),as=new Set([_0x618ba[_0x5daf81(0x3a1)],_0x618ba[_0x5daf81(0x1e9)],_0x618ba[_0x5daf81(0x377)]]),os='General';function ss(_0x44a4f6){const _0x465624=_0x5daf81;return typeof _0x44a4f6==_0x465624(0x2ed)&&es[_0x465624(0x4f9)](_0x44a4f6);}function cs(_0x3f5531){const _0x555853=_0x5daf81;return!_0x3f5531||typeof _0x3f5531!=_0x555853(0x1fb)?{}:Object[_0x555853(0x407)](Object['entries'](_0x3f5531)[_0x555853(0x32f)](_0x4be945=>ss(_0x4be945[0x1])));}function ls(_0x437382){const _0x9bf3b0=_0x5daf81;return is['has'](_0x437382[_0x9bf3b0(0x305)])?[...ts,...ns]:_0x437382[_0x9bf3b0(0x305)]===_0x618ba[_0x9bf3b0(0x4a8)]?[...ts,...ws(_0x437382)===_0x9bf3b0(0x4ae)?rs:ns]:ts;}function us(_0xe6a6cb,_0x435867){const _0x31be21=_0x5daf81;return ls(_0xe6a6cb)[_0x31be21(0x4f9)](_0x435867);}function ds(_0x29f3d6,_0x394c80,_0x12305b){const _0x59f8e1=_0x5daf81;if(!us(_0x29f3d6,_0x12305b))return null;let _0x4178da=_0x394c80['filter'](_0x2e4e36=>!ps(_0x29f3d6,_0x2e4e36));switch(_0x12305b){case _0x59f8e1(0x42c):return _0x394c80[_0x59f8e1(0x21d)];case _0x59f8e1(0x33f):return _0x4178da['length'];case _0x59f8e1(0x4ba):return _0x394c80['length']-_0x4178da[_0x59f8e1(0x21d)];case'unique':return new Set(_0x4178da[_0x59f8e1(0x2b0)](_0x50a667=>_s(_0x29f3d6,_0x50a667)))[_0x59f8e1(0x323)];case _0x59f8e1(0x550):{let _0x105269=ms(_0x29f3d6,_0x4178da);return _0x105269[_0x59f8e1(0x21d)]?gs(_0x105269):null;}case _0x59f8e1(0x2b8):{let _0xbbb84b=ms(_0x29f3d6,_0x4178da);return _0xbbb84b['length']?gs(_0xbbb84b)/_0xbbb84b[_0x59f8e1(0x21d)]:null;}case'min':{let _0x3abbb8=ms(_0x29f3d6,_0x4178da);return _0x3abbb8[_0x59f8e1(0x21d)]?Math[_0x59f8e1(0x469)](..._0x3abbb8):null;}case _0x59f8e1(0x29c):{let _0xbb0f40=ms(_0x29f3d6,_0x4178da);return _0xbb0f40[_0x59f8e1(0x21d)]?Math[_0x59f8e1(0x29c)](..._0xbb0f40):null;}}}function fs(_0x23598a,_0x1f6d72,_0x1da99d){const _0x3bccef=_0x5daf81;if(_0x1da99d==null||!Number[_0x3bccef(0x2fc)](_0x1da99d))return'-';if(ts[_0x3bccef(0x4f9)](_0x1f6d72))return String(_0x1da99d);switch(_0x23598a[_0x3bccef(0x305)]){case _0x618ba['Number']:return qo(_0x1da99d,xs(_0x23598a));case _0x618ba['Currency']:return qo(_0x1da99d,Ss(_0x23598a));case _0x618ba[_0x3bccef(0x257)]:return Qo(_0x1da99d,_0x23598a[_0x3bccef(0x396)]);case _0x618ba['Formula']:return Cs(_0x1da99d,_0x23598a);default:return Es(_0x1da99d);}}function ps(_0x304b67,_0x2f5813){const _0x599289=_0x5daf81;if(_0x2f5813==null)return!0x0;if(typeof _0x2f5813==_0x599289(0x2ed))return _0x2f5813[_0x599289(0x3a5)]()==='';if(Array['isArray'](_0x2f5813))return _0x304b67[_0x599289(0x305)]===_0x618ba[_0x599289(0x1f8)]?!_0x2f5813['some'](bs):_0x2f5813[_0x599289(0x21d)]===0x0;if(_0x304b67[_0x599289(0x305)]===_0x618ba[_0x599289(0x42d)]&&typeof _0x2f5813==_0x599289(0x1fb)){let _0x110ab6=_0x2f5813;return[_0x110ab6[_0x599289(0x38e)],_0x110ab6[_0x599289(0x4fe)]][_0x599289(0x2ab)](_0x13d6de=>_0x13d6de==null||String(_0x13d6de)[_0x599289(0x3a5)]()==='');}return!0x1;}function ms(_0x43644a,_0x31972e){const _0x4adc6f=_0x5daf81;let _0x417f44=[];for(let _0x51b752 of _0x31972e){let _0x5ee403=hs(_0x43644a,_0x51b752);_0x5ee403!=null&&_0x417f44[_0x4adc6f(0x482)](_0x5ee403);}return _0x417f44;}function hs(_0x63b7e2,_0x38fab2){const _0x545b37=_0x5daf81;if(typeof _0x38fab2==_0x545b37(0x53d))return Number['isFinite'](_0x38fab2)?_0x38fab2:null;if(_0x63b7e2[_0x545b37(0x305)]!==_0x618ba[_0x545b37(0x4a8)]&&typeof _0x38fab2==_0x545b37(0x2ed)&&_0x38fab2['trim']()!==''){let _0x32ac35=Number(_0x38fab2);return Number[_0x545b37(0x2fc)](_0x32ac35)?_0x32ac35:null;}return null;}function gs(_0x38e044){const _0x166270=_0x5daf81;let _0xed7329=0x0,_0x360dc2=0x0;for(let _0x13c010 of _0x38e044){let _0x47d784=_0xed7329+_0x13c010;_0x360dc2+=Math[_0x166270(0x38d)](_0xed7329)>=Math['abs'](_0x13c010)?_0xed7329-_0x47d784+_0x13c010:_0x13c010-_0x47d784+_0xed7329,_0xed7329=_0x47d784;}return _0xed7329+_0x360dc2;}function _s(_0x1ee68b,_0x46b9a1){const _0x4dd606=_0x5daf81;return as[_0x4dd606(0x253)](_0x1ee68b['type'])&&Array[_0x4dd606(0x31e)](_0x46b9a1)?ys([...new Set(_0x46b9a1[_0x4dd606(0x2b0)](_0x2c599e=>ys(vs(_0x2c599e))))][_0x4dd606(0x3c5)]()):ys(vs(_0x46b9a1));}function vs(_0x405909){const _0xace5e7=_0x5daf81;return Array[_0xace5e7(0x31e)](_0x405909)?_0x405909[_0xace5e7(0x2b0)](vs):_0x405909&&typeof _0x405909=='object'?Object[_0xace5e7(0x407)](Object[_0xace5e7(0x2e4)](_0x405909)[_0xace5e7(0x3c5)](([_0x5561f5],[_0x281bee])=>_0x5561f5[_0xace5e7(0x202)](_0x281bee))['map'](([_0x2882b1,_0x50b156])=>[_0x2882b1,vs(_0x50b156)])):_0x405909;}function ys(_0x9bbc0e){const _0x463081=_0x5daf81;return JSON[_0x463081(0x439)](_0x9bbc0e)??'undefined';}function bs(_0x4a2af5){const _0xdbdd54=_0x5daf81;if(typeof _0x4a2af5==_0xdbdd54(0x2ed))return _0x4a2af5[_0xdbdd54(0x3a5)]()!=='';if(!_0x4a2af5||typeof _0x4a2af5!=_0xdbdd54(0x1fb))return!0x1;let _0x4ee2c3=_0x4a2af5;return[_0x4ee2c3['id'],_0x4ee2c3[_0xdbdd54(0x322)],_0x4ee2c3[_0xdbdd54(0x1e1)],_0x4ee2c3[_0xdbdd54(0x4fe)],_0x4ee2c3['thumbnail']][_0xdbdd54(0x387)](_0x163eb8=>_0x163eb8!=null&&String(_0x163eb8)[_0xdbdd54(0x3a5)]()!=='');}function xs(_0x4d0de5){const _0x4f97cf=_0x5daf81;let _0x1076d3=Ds(_0x4d0de5[_0x4f97cf(0x396)]);return{'decimalPlaces':ks(_0x1076d3[_0x4f97cf(0x4b6)],0x0,0x14,0x2),'separatorStyle':typeof _0x1076d3['separatorStyle']=='string'?_0x1076d3[_0x4f97cf(0x3b6)]:_0x4f97cf(0x35a),'locale':typeof _0x1076d3[_0x4f97cf(0x2dc)]=='string'?_0x1076d3['locale']:void 0x0,'useThousands':_0x1076d3['useThousands']!==!0x1,'abbreviation':typeof _0x1076d3[_0x4f97cf(0x1f4)]=='string'?_0x1076d3[_0x4f97cf(0x1f4)]:'none'};}function Ss(_0x1095b3){const _0x2fea61=_0x5daf81;let _0x3783be=Ds(_0x1095b3[_0x2fea61(0x396)]);return{...xs(_0x1095b3),'currencySymbol':String(_0x3783be[_0x2fea61(0x517)]??'$')};}function Cs(_0x1026b2,_0x3bc6f3){const _0xdf2aca=_0x5daf81;let _0x37a25d=Ts(_0x3bc6f3);if(_0x37a25d===os)return Es(_0x1026b2);try{return String(_0x51878f[_0xdf2aca(0x444)](_0x37a25d,_0x1026b2,{'throws':!0x1}));}catch{return Es(_0x1026b2);}}function ws(_0x233836){const _0x1d866c=_0x5daf81;let _0x3cb0a9=Ds(Ds(_0x233836['config'])[_0x1d866c(0x22a)]);return typeof _0x3cb0a9[_0x1d866c(0x305)]==_0x1d866c(0x2ed)?_0x3cb0a9['type']:'general';}function Ts(_0x4bb59c){const _0x2d62d6=_0x5daf81;let _0x5f2d36=Ds(Ds(_0x4bb59c[_0x2d62d6(0x396)])[_0x2d62d6(0x22a)]);return String(_0x5f2d36[_0x2d62d6(0x526)]??os)[_0x2d62d6(0x3a5)]()||os;}function Es(_0xee0075){const _0x1e5523=_0x5daf81;return String(Number['isInteger'](_0xee0075)?_0xee0075:Math[_0x1e5523(0x447)]((_0xee0075+0x2**-0x34)*0x64)/0x64);}function Ds(_0x3fa634){const _0x102dd9=_0x5daf81;return _0x3fa634&&typeof _0x3fa634==_0x102dd9(0x1fb)&&!Array[_0x102dd9(0x31e)](_0x3fa634)?_0x3fa634:{};}function Os(_0x5939b6){const _0x4a108a=_0x5daf81;if(_0x5939b6==null||_0x5939b6==='')return null;let _0x3ac8b7=typeof _0x5939b6==_0x4a108a(0x53d)?_0x5939b6:Number(_0x5939b6);return Number[_0x4a108a(0x2fc)](_0x3ac8b7)?_0x3ac8b7:null;}function ks(_0x252957,_0x28ec6b,_0x3f66ec,_0xade6b9){const _0x535aad=_0x5daf81;let _0x2be533=Os(_0x252957);return _0x2be533==null?_0xade6b9:Math[_0x535aad(0x29c)](_0x28ec6b,Math[_0x535aad(0x469)](_0x3f66ec,Math[_0x535aad(0x447)](_0x2be533)));}function As(_0x3ceb88,_0x69e4e1){const _0x4bcad7=_0x5daf81;let _0x3dc7bd=_0x9abbbc[_0x4bcad7(0x28e)](_0x3ceb88),_0x27d985=_0x69e4e1[_0x4bcad7(0x553)]===!0x0,_0x387fa0=new Map(),_0x5ca463=_0x69e4e1[_0x4bcad7(0x361)]??(()=>_0x4bcad7(0x34b)+_0x1d3e80(0x8)),_0x4a3f43=_0x3dc7bd['viewOrder'];return _0x69e4e1[_0x4bcad7(0x350)]&&(_0x4a3f43=_0x3dc7bd[_0x4bcad7(0x410)][_0x4bcad7(0x2b0)](_0x3f8811=>{const _0x211024=_0x4bcad7;let _0x5f28d2=_0x5ca463();return _0x387fa0[_0x211024(0x1ba)](_0x3f8811,_0x5f28d2),_0x5f28d2;})),{..._0x3dc7bd,'id':_0x69e4e1['id'],'name':_0x69e4e1['name'],'records':_0x27d985?_0x3dc7bd[_0x4bcad7(0x43a)]:{},'recordOrder':_0x27d985?_0x3dc7bd[_0x4bcad7(0x3da)]:[],'rowIndex':_0x27d985?_0x3dc7bd[_0x4bcad7(0x2c4)]:{},'rowId':_0x27d985?_0x3dc7bd[_0x4bcad7(0x1ec)]:{},'cellData':_0x27d985?_0x3dc7bd['cellData']:{},'resources':_0x27d985?_0x3dc7bd[_0x4bcad7(0x48d)]:{},'viewOrder':_0x4a3f43,'views':Object[_0x4bcad7(0x407)](Object[_0x4bcad7(0x2e4)](_0x3dc7bd['views']??{})[_0x4bcad7(0x2b0)](([_0x1cc430,_0x57e432])=>{const _0x55d3b0=_0x4bcad7;let _0x18583d=_0x387fa0['get'](_0x1cc430)??(_0x69e4e1[_0x55d3b0(0x350)]?_0x5ca463():_0x1cc430);return[_0x18583d,{..._0x57e432,'id':_0x18583d,'tableId':_0x69e4e1['id']}];}))};}var js=_0x5daf81(0x4cf),Ms=_0x5daf81(0x35c);const Ns={},Ps={};function Fs(_0x4e010e){const _0x5c480e=_0x5daf81;return new z()[_0x5c480e(0x26e)](_0x4e010e);}function Is(_0x521a10){const _0x482925=_0x5daf81;return _0x521a10['patches'][_0x482925(0x2b0)](_0x34041a=>({'unitId':_0x521a10[_0x482925(0x3cb)],'sheetId':_0x521a10[_0x482925(0x221)],'range':{'startRow':_0x34041a['row'],'endRow':_0x34041a['row'],'startColumn':_0x34041a[_0x482925(0x2f0)],'endColumn':_0x34041a[_0x482925(0x2f0)]}}));}function Ls(_0x226065,_0x5911f4){const _0x4d017c=_0x5daf81;return{[_0x226065]:Object[_0x4d017c(0x407)](_0x5911f4['map'](_0x1c1cf6=>[_0x1c1cf6,'1']))};}let Rs=class extends _0x183939{constructor(_0xe3db0f,_0x92fe0f){const _0x4371e2=_0x5daf81;super(),this['_activeDirtyManagerService']=_0xe3db0f,this['_univerInstanceService']=_0x92fe0f,this[_0x4371e2(0x4d1)]();}[_0x5daf81(0x4d1)](){const _0x5a03cc=_0x5daf81;this[_0x5a03cc(0x456)][_0x5a03cc(0x549)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x540f77=>this[_0x5a03cc(0x2fb)](_0x540f77[_0x5a03cc(0x422)])}),this[_0x5a03cc(0x314)](_0x1a388a(()=>{this['_activeDirtyManagerService']['remove'](Q['id']);}));}['_getTable'](_0x5102b1,_0xe5c1a0){const _0x5e896d=_0x5daf81;let _0x44a532=this[_0x5e896d(0x552)][_0x5e896d(0x1ed)](_0x5102b1,_0x2ddca0[_0x5e896d(0x33d)]);return(_0x44a532==null?void 0x0:_0x44a532[_0x5e896d(0x2f3)]()[_0x5e896d(0x2f7)][_0xe5c1a0])??null;}['_getJson1DirtyData'](_0x23bc56){const _0x3bcd82=_0x5daf81;if(_0x23bc56[_0x3bcd82(0x22c)]===_0x3bcd82(0x4d4))return{};if(!_0x23bc56[_0x3bcd82(0x3cb)]||!_0x23bc56['op'])return{'clearDependencyTreeCache':this[_0x3bcd82(0x247)](),'forceCalculation':!0x0};let _0x36794a=Fs(_0x23bc56['op']),_0x223bf9=this[_0x3bcd82(0x270)](_0x23bc56['unitId'],_0x36794a);if(_0x223bf9[_0x3bcd82(0x21d)])return{'clearDependencyTreeCache':Ls(_0x23bc56[_0x3bcd82(0x3cb)],_0x223bf9),'forceCalculation':!0x0};let _0x180c50=Object[_0x3bcd82(0x2e4)](this[_0x3bcd82(0x499)](_0x23bc56[_0x3bcd82(0x3cb)],_0x36794a))[_0x3bcd82(0x36c)](([_0x59e633,_0x4f9ef5])=>Is({'unitId':_0x23bc56['unitId'],'tableId':_0x59e633,'patches':_0x4f9ef5}));return _0x180c50['length']?{'dirtyRanges':_0x180c50}:{};}[_0x5daf81(0x270)](_0x26eee7,_0xff61b2){const _0xf43f3c=_0x5daf81;let _0x31001d=_0xff61b2['filter'](_0xff53e4=>_0xff53e4[_0xf43f3c(0x483)]!=='cell')[_0xf43f3c(0x36c)](_0x390f87=>_0x390f87[_0xf43f3c(0x221)]?[_0x390f87['tableId']]:this[_0xf43f3c(0x36b)](_0x26eee7));return Array[_0xf43f3c(0x404)](new Set(_0x31001d));}[_0x5daf81(0x499)](_0x4cc652,_0x3d0cb8){const _0x2679aa=_0x5daf81;let _0x2c1ac1=new Set();return _0x3d0cb8[_0x2679aa(0x251)]((_0x58f2ed,_0x37dd88)=>{const _0x57b208=_0x2679aa;let _0x44cc35=this['_toDirtyRangePatch'](_0x4cc652,_0x37dd88);if(!_0x44cc35)return _0x58f2ed;let _0x386ccb=_0x37dd88[_0x57b208(0x221)]+':'+_0x44cc35[_0x57b208(0x406)]+':'+_0x44cc35[_0x57b208(0x2f0)];return _0x2c1ac1[_0x57b208(0x253)](_0x386ccb)||(_0x2c1ac1[_0x57b208(0x4ee)](_0x386ccb),_0x58f2ed[_0x37dd88['tableId']]=_0x58f2ed[_0x37dd88[_0x57b208(0x221)]]??[],_0x58f2ed[_0x37dd88[_0x57b208(0x221)]][_0x57b208(0x482)](_0x44cc35)),_0x58f2ed;},{});}['_toDirtyRangePatch'](_0x49185f,_0x24e55b){const _0x581e7f=_0x5daf81;if(_0x24e55b['reason']!==_0x581e7f(0x203))return null;if(_0x24e55b[_0x581e7f(0x406)]!=null&&_0x24e55b[_0x581e7f(0x1cc)]!=null)return{'row':_0x24e55b[_0x581e7f(0x406)],'col':_0x24e55b[_0x581e7f(0x1cc)],'value':null};if(!_0x24e55b[_0x581e7f(0x1c6)]||!_0x24e55b[_0x581e7f(0x4a1)])return null;let _0x220c78=this[_0x581e7f(0x4c2)](_0x49185f,_0x24e55b[_0x581e7f(0x221)]);if(!_0x220c78)return null;let _0x3db9c5=_t(_0x220c78,_0x24e55b[_0x581e7f(0x1c6)],_0x24e55b[_0x581e7f(0x4a1)]);return _0x3db9c5?{'row':_0x3db9c5[_0x581e7f(0x406)],'col':_0x3db9c5[_0x581e7f(0x2f0)],'value':null}:null;}[_0x5daf81(0x36b)](_0x525e24){const _0x293681=_0x5daf81;let _0x539e76=this[_0x293681(0x552)][_0x293681(0x1ed)](_0x525e24,_0x2ddca0[_0x293681(0x33d)]);return Object[_0x293681(0x45b)]((_0x539e76==null?void 0x0:_0x539e76['getSnapshot']()[_0x293681(0x2f7)])??{})['map'](_0x458ebf=>_0x458ebf['id']);}[_0x5daf81(0x247)](){const _0xa30581=_0x5daf81;let _0xfe2f11=this['_univerInstanceService'][_0xa30581(0x34d)](_0x2ddca0[_0xa30581(0x33d)])[_0xa30581(0x2b0)](_0x428088=>Ls(_0x428088[_0xa30581(0x506)](),Object['keys'](_0x428088[_0xa30581(0x2f3)]()['tables'])));return Object['assign']({},..._0xfe2f11);}};Rs=X([Y(0x0,_0x2d4d6c),Y(0x1,_0x364596)],Rs);let zs=class extends _0x183939{constructor(_0x543f29,_0x4a5faf,_0x5daf61,_0x2e47d7){const _0x25acb2=_0x5daf81;super(),this['_commandService']=_0x543f29,this['_univerInstanceService']=_0x4a5faf,this[_0x25acb2(0x37d)]=_0x5daf61,this['_formulaCalculationSessionService']=_0x2e47d7,G(this,_0x25acb2(0x432),new Xi()),G(this,_0x25acb2(0x48c),new Map()),G(this,'_scheduledSuperTableSyncs',new Set()),G(this,'_formulaSyncQueue',Promise['resolve']()),G(this,_0x25acb2(0x423),!0x1),this[_0x25acb2(0x4d1)]();}[_0x5daf81(0x4d1)](){const _0x9bf684=_0x5daf81;this[_0x9bf684(0x552)][_0x9bf684(0x34d)](_0x2ddca0[_0x9bf684(0x33d)])[_0x9bf684(0x429)](_0x2486d2=>{this['_scheduleSuperTableSync'](_0x2486d2);}),this[_0x9bf684(0x314)](this[_0x9bf684(0x552)][_0x9bf684(0x563)](_0x2ddca0[_0x9bf684(0x33d)])[_0x9bf684(0x341)](({unit:_0x4a9ee5})=>{this['_scheduleSuperTableSync'](_0x4a9ee5);})),this['disposeWithMe'](this[_0x9bf684(0x552)][_0x9bf684(0x3c7)](_0x2ddca0[_0x9bf684(0x33d)])['subscribe'](_0x4efd20=>{const _0xc84107=_0x9bf684;this[_0xc84107(0x4d8)](()=>this[_0xc84107(0x536)](_0x4efd20[_0xc84107(0x506)]()));})),this[_0x9bf684(0x314)](this[_0x9bf684(0x4ec)][_0x9bf684(0x448)](_0x331bdf=>this[_0x9bf684(0x425)](_0x331bdf)));}['_onCommandExecuted'](_0x455ce2){const _0x3bc4d2=_0x5daf81;if(_0x455ce2['id']===_0x245562['id']){Vs(_0x455ce2['params'])&&this[_0x3bc4d2(0x4a6)](_0x455ce2[_0x3bc4d2(0x422)]);return;}if(this[_0x3bc4d2(0x423)]||_0x455ce2['id']!==Q['id'])return;let _0xcd3e5c=Bs(_0x455ce2['params'])?_0x455ce2['params']:void 0x0,_0x58fc4d=_0xcd3e5c!=null&&_0xcd3e5c[_0x3bc4d2(0x3cb)]?[this[_0x3bc4d2(0x552)][_0x3bc4d2(0x1ed)](_0xcd3e5c['unitId'],_0x2ddca0['UNIVER_BASE'])][_0x3bc4d2(0x32f)](_0x52b4b5=>!!_0x52b4b5):this['_univerInstanceService']['getAllUnitsForType'](_0x2ddca0[_0x3bc4d2(0x33d)]),_0x5af6d4=_0xcd3e5c==null?void 0x0:_0xcd3e5c['op'];_0x58fc4d['forEach'](_0x5a361b=>{const _0x51d0ea=_0x3bc4d2;let _0x44315e=_0x5af6d4?Fs(_0x5af6d4):[];(!_0x5af6d4||_0x44315e[_0x51d0ea(0x387)](_0x1cb6aa=>_0x1cb6aa[_0x51d0ea(0x483)]!==_0x51d0ea(0x203)))&&this[_0x51d0ea(0x4fb)](_0x5a361b);});}[_0x5daf81(0x4fb)](_0x45febe){const _0xabc593=_0x5daf81;let _0xbeadef=_0x45febe[_0xabc593(0x506)]();this[_0xabc593(0x4f4)][_0xabc593(0x253)](_0xbeadef)||(this[_0xabc593(0x4f4)][_0xabc593(0x4ee)](_0xbeadef),this[_0xabc593(0x4d8)](async()=>{const _0xeaa39c=_0xabc593;this[_0xeaa39c(0x4f4)]['delete'](_0xbeadef),await this[_0xeaa39c(0x1ff)](_0x45febe);}));}async[_0x5daf81(0x1ff)](_0x445040){const _0x1503a2=_0x5daf81;let _0x50f264=_0x445040[_0x1503a2(0x506)](),_0x32444f=this[_0x1503a2(0x432)]['getSuperTableRegistrations'](_0x445040[_0x1503a2(0x2f3)]()),_0x441203=new Set(_0x32444f['map'](({tableName:_0x24783f})=>_0x24783f)),_0x536249=this[_0x1503a2(0x48c)][_0x1503a2(0x315)](_0x50f264)??new Set();for(let _0x2c1714 of _0x536249)if(!_0x441203[_0x1503a2(0x253)](_0x2c1714)&&!await this[_0x1503a2(0x3e2)](_0x5c6c2d['id'],{'unitId':_0x50f264,'tableName':_0x2c1714}))return;for(let {tableName:_0x8b6803,reference:_0x140fd4}of _0x32444f)if(!await this[_0x1503a2(0x3e2)](_0x2c56be['id'],{'unitId':_0x50f264,'tableName':_0x8b6803,'reference':_0x140fd4}))return;this[_0x1503a2(0x48c)]['set'](_0x50f264,_0x441203);}async[_0x5daf81(0x536)](_0xea5ac1){const _0x57ebf2=_0x5daf81;let _0x9934cc=this[_0x57ebf2(0x48c)][_0x57ebf2(0x315)](_0xea5ac1)??new Set();for(let _0x4e1550 of _0x9934cc)if(!await this[_0x57ebf2(0x3e2)](_0x5c6c2d['id'],{'unitId':_0xea5ac1,'tableName':_0x4e1550}))return;this[_0x57ebf2(0x48c)]['delete'](_0xea5ac1);}async['_executeSuperTableMutationWhileActive'](_0x31ec86,_0x17f22d){const _0x1ea906=_0x5daf81;return!this[_0x1ea906(0x3e1)]&&await this[_0x1ea906(0x4ec)][_0x1ea906(0x327)](_0x31ec86,_0x17f22d,{'onlyLocal':!0x0})&&!this[_0x1ea906(0x3e1)];}[_0x5daf81(0x4d8)](_0x34c3be){const _0x57fc7e=_0x5daf81;this[_0x57fc7e(0x223)]=this['_formulaSyncQueue']['then'](_0x34c3be,_0x34c3be)[_0x57fc7e(0x310)](()=>void 0x0);}[_0x5daf81(0x4a6)](_0x20d46e){const _0x4e98e9=_0x5daf81;let _0x252dc6=this['_univerInstanceService'][_0x4e98e9(0x34d)](_0x2ddca0[_0x4e98e9(0x33d)]);if(!_0x252dc6[_0x4e98e9(0x387)](_0x8a2e0a=>{const _0x36264d=_0x4e98e9;var _0x1957f0;return((_0x1957f0=_0x20d46e['unitData'])==null?void 0x0:_0x1957f0[_0x8a2e0a[_0x36264d(0x506)]()])!=null;}))return;let _0x5e6630=_0x252dc6['flatMap'](_0x23a255=>Zi(_0x23a255[_0x4e98e9(0x2f3)](),_0x20d46e));if(!_0x5e6630[_0x4e98e9(0x21d)]){this[_0x4e98e9(0x464)][_0x4e98e9(0x371)](_0x310a16[_0x4e98e9(0x50f)],_0x20d46e);return;}let _0x52b36c=new W(),_0x413dd5=_0x5e6630['flatMap'](_0x106c5d=>Is({'unitId':_0x106c5d[_0x4e98e9(0x3cb)],'tableId':_0x106c5d['tableId'],'patches':_0x106c5d[_0x4e98e9(0x4b0)]}));this[_0x4e98e9(0x423)]=!0x0,(async()=>{const _0x13e357=_0x4e98e9;for(let _0x8c4a17 of _0x5e6630){let _0x2f27c1=this['_univerInstanceService']['getUnit'](_0x8c4a17[_0x13e357(0x3cb)],_0x2ddca0[_0x13e357(0x33d)]);_0x2f27c1&&await this[_0x13e357(0x4ec)][_0x13e357(0x327)](Q['id'],{'unitId':_0x8c4a17['unitId'],'op':_0x52b36c[_0x13e357(0x1d7)](_0x2f27c1[_0x13e357(0x2f3)](),_0x8c4a17[_0x13e357(0x221)],_0x8c4a17[_0x13e357(0x4b0)]),'trigger':_0x245562['id']},{'onlyLocal':!0x0});}await this[_0x13e357(0x4ec)]['executeCommand'](_0x5cddaf['id'],{'dirtyRanges':_0x413dd5},{'onlyLocal':!0x0});})()[_0x4e98e9(0x46a)](()=>{const _0x2c8150=_0x4e98e9;this[_0x2c8150(0x423)]=!0x1,this[_0x2c8150(0x464)]['markResultApplied'](_0x310a16['BASE'],_0x20d46e);});}};zs=X([Y(0x0,_0x2ca718),Y(0x1,_0x364596),Y(0x2,_0x477fb0(_0x319ec4)),Y(0x3,_0x477fb0(_0x34ef91))],zs);function Bs(_0x42eeed){const _0x254ea0=_0x5daf81;return typeof _0x42eeed=='object'&&!!_0x42eeed&&_0x254ea0(0x3cb)in _0x42eeed&&typeof _0x42eeed[_0x254ea0(0x3cb)]==_0x254ea0(0x2ed)&&'op'in _0x42eeed&&Array[_0x254ea0(0x31e)](_0x42eeed['op']);}function Vs(_0x5a34c2){const _0x2a08df=_0x5daf81;return typeof _0x5a34c2=='object'&&!!_0x5a34c2&&_0x2a08df(0x24d)in _0x5a34c2&&_0x2a08df(0x32e)in _0x5a34c2;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x183939{constructor(_0x10cf00,_0x234c94,_0x26d0b3,_0x2abceb){const _0x3974a0=_0x5daf81;super(),this[_0x3974a0(0x385)]=_0x10cf00,this[_0x3974a0(0x4ec)]=_0x234c94,this[_0x3974a0(0x43e)]=_0x26d0b3,this[_0x3974a0(0x443)]=_0x2abceb,this[_0x3974a0(0x443)][_0x3974a0(0x34d)](_0x2ddca0[_0x3974a0(0x33d)])[_0x3974a0(0x429)](_0x4fa640=>this[_0x3974a0(0x55a)](_0x4fa640[_0x3974a0(0x506)]())),this[_0x3974a0(0x314)](this[_0x3974a0(0x443)][_0x3974a0(0x563)](_0x2ddca0[_0x3974a0(0x33d)])[_0x3974a0(0x341)](({unit:_0x455657})=>this[_0x3974a0(0x55a)](_0x455657[_0x3974a0(0x506)]()))),this[_0x3974a0(0x314)](this[_0x3974a0(0x4ec)]['beforeCommandExecuted']((_0x16733a,_0x2d3a76)=>this[_0x3974a0(0x3bc)](_0x16733a,_0x2d3a76))),this[_0x3974a0(0x314)](this[_0x3974a0(0x443)]['getTypeOfUnitDisposed$'](_0x2ddca0[_0x3974a0(0x33d)])['subscribe'](_0x4bfb7f=>{const _0x1b4315=_0x3974a0;this[_0x1b4315(0x385)]['get'](_0x2cff1c)[_0x1b4315(0x326)](_0x4bfb7f[_0x1b4315(0x506)]()),Rr(this[_0x1b4315(0x43e)],_0x4bfb7f[_0x1b4315(0x506)]());}));}[_0x5daf81(0x55a)](_0x1f017a){const _0x3acd93=_0x5daf81;Tr[_0x3acd93(0x429)](_0x14bf06=>{const _0x220689=_0x3acd93;let _0x12d618=Pr(_0x1f017a,_0x1f017a,_0x14bf06);this[_0x220689(0x43e)][_0x220689(0x473)](_0x12d618['id'])||this[_0x220689(0x43e)]['addPermissionPoint'](_0x12d618);}),this[_0x3acd93(0x385)][_0x3acd93(0x315)](_0x2cff1c)[_0x3acd93(0x4c0)]({'unitId':_0x1f017a,'objectId':_0x1f017a,'objectType':_0x2ea692[_0x3acd93(0x348)]});}[_0x5daf81(0x3bc)](_0xeb984b,_0x3f5354){const _0x4d95b6=_0x5daf81;var _0x4994b8;if(_0x3f5354!=null&&_0x3f5354[_0x4d95b6(0x458)]||_0x3f5354!=null&&_0x3f5354[_0x4d95b6(0x280)])return;let _0x298aa8=tc(_0xeb984b[_0x4d95b6(0x422)])?_0xeb984b['params']:void 0x0;if(_0x3f5354!=null&&_0x3f5354[_0x4d95b6(0x1d4)]&&_0xeb984b['id']===_0x4d95b6(0x554)&&(_0x298aa8==null?void 0x0:_0x298aa8[_0x4d95b6(0x22c)])===_0x245562['id'])return;let _0x2a9d80=Gs(_0xeb984b['id']),_0x22d5ad=Ws(_0x298aa8==null?void 0x0:_0x298aa8[_0x4d95b6(0x3cb)],_0x3f5354)??(_0x2a9d80?(_0x4994b8=this[_0x4d95b6(0x443)][_0x4d95b6(0x4c8)](_0x2ddca0[_0x4d95b6(0x33d)]))==null?void 0x0:_0x4994b8['getUnitId']():void 0x0);if(!_0x22d5ad||this[_0x4d95b6(0x443)][_0x4d95b6(0x2fa)](_0x22d5ad)!==_0x2ddca0[_0x4d95b6(0x33d)])return;if(_0x2a9d80){if(!Fr(this[_0x4d95b6(0x43e)],_0x22d5ad,_0x22d5ad,_0x2a9d80))throw this[_0x4d95b6(0x385)][_0x4d95b6(0x315)](_0x1bc7ec)['emitPermissionDenied'](_0x22d5ad),new _0x55df23(_0x4d95b6(0x453)+_0x44dc45[_0x2a9d80]+_0x4d95b6(0x26f));return;}if(Hs[_0x4d95b6(0x253)](_0xeb984b['id'])||!_0xeb984b['id']['startsWith']('base.command.')&&!_0xeb984b['id']['startsWith'](_0x4d95b6(0x4bf)))return;let _0x47ef52=this['_instanceService'][_0x4d95b6(0x1ed)](_0x22d5ad,_0x2ddca0[_0x4d95b6(0x33d)]),_0x4ad62e=_0x47ef52?Ks(_0x47ef52,_0x298aa8??{},_0xeb984b['id']):[];if(!_0x47ef52||!zr(this[_0x4d95b6(0x43e)],_0x22d5ad,_0x4ad62e))throw this[_0x4d95b6(0x385)][_0x4d95b6(0x315)](_0x1bc7ec)[_0x4d95b6(0x4f8)](_0x22d5ad,_0x4ad62e),new _0x55df23('Base\x20edit\x20permission\x20denied.');}};Us=X([Y(0x0,_0x477fb0(_0x46096e)),Y(0x1,_0x2ca718),Y(0x2,_0x2f962f),Y(0x3,_0x364596)],Us);function Ws(_0x502280,_0x5a1ccd){const _0x4b1824=_0x5daf81;return typeof _0x502280==_0x4b1824(0x2ed)?_0x502280:typeof(_0x5a1ccd==null?void 0x0:_0x5a1ccd[_0x4b1824(0x3cb)])==_0x4b1824(0x2ed)?_0x5a1ccd['unitId']:void 0x0;}function Gs(_0x5f51ef){const _0x265763=_0x5daf81;if(_0x5f51ef===_0x265763(0x46e)||_0x5f51ef===_0x265763(0x449))return _0x44dc45[_0x265763(0x29b)];if(_0x5f51ef['startsWith'](_0x265763(0x2bc))||_0x5f51ef[_0x265763(0x265)]('thread-comment.mutation.'))return _0x44dc45[_0x265763(0x332)];}function Ks(_0x5e4828,_0x11baa4,_0x1bd901){const _0x24b664=_0x5daf81;if(_0x1bd901===_0x24b664(0x554)&&ec(_0x11baa4['op']))return qs(_0x5e4828,_0x11baa4['op']);let _0x4841a1=new Set(),_0x159d68=Zs(_0x11baa4,_0x24b664(0x524)),_0x2f2cfb=typeof _0x11baa4[_0x24b664(0x221)]=='string'?_0x11baa4[_0x24b664(0x221)]:_0x159d68[0x0];if(_0x159d68[_0x24b664(0x429)](_0x6c8a00=>_0x4841a1[_0x24b664(0x4ee)](K(_0x6c8a00))),!_0x2f2cfb)return[..._0x4841a1];let _0x43246f=_0x5e4828['getSnapshot']()[_0x24b664(0x2f7)][_0x2f2cfb],_0x1a51e8=new Set(Zs(_0x11baa4,_0x24b664(0x50a))),_0xf006e3=new Set(Zs(_0x11baa4,_0x24b664(0x1b5))),_0x49f895=new Set(Zs(_0x11baa4,'view'));return Qs(_0x43246f,_0x11baa4[_0x24b664(0x4b0)],_0xf006e3,_0x1a51e8),$s(_0x11baa4,_0x1a51e8),_0x1a51e8[_0x24b664(0x429)](_0x3e2077=>_0x4841a1[_0x24b664(0x4ee)](q(_0x2f2cfb,_0x3e2077))),_0xf006e3[_0x24b664(0x429)](_0x38913d=>_0x4841a1['add'](J(_0x2f2cfb,_0x38913d))),_0x49f895[_0x24b664(0x429)](_0x21b052=>_0x4841a1[_0x24b664(0x4ee)](Mr(_0x2f2cfb,_0x21b052))),[..._0x4841a1];}function qs(_0x45d7b7,_0x5e9aab){const _0x1b7995=_0x5daf81;let _0x4a67bb=_0x45d7b7['getSnapshot'](),_0x1aece5=new z()[_0x1b7995(0x26e)](_0x5e9aab),_0x5aa757=Js(_0x5e9aab),_0x32deec=new Set();return _0x1aece5['forEach'](_0x639bc4=>{const _0x32496c=_0x1b7995;var _0xb5cb86,_0x9a1c9c;let {tableId:_0x18aad3}=_0x639bc4;if(!_0x18aad3)return;_0x32deec['add'](K(_0x18aad3));let _0x5df837=_0x4a67bb[_0x32496c(0x2f7)][_0x18aad3],_0xbb9c51=_0x639bc4[_0x32496c(0x1c6)]??(_0x639bc4[_0x32496c(0x406)]==null||_0x5df837==null||(_0xb5cb86=_0x5df837[_0x32496c(0x1ec)])==null?void 0x0:_0xb5cb86[_0x639bc4[_0x32496c(0x406)]]),_0x232b1a=_0x639bc4[_0x32496c(0x4a1)]??(_0x639bc4['column']==null||_0x5df837==null||(_0x9a1c9c=_0x5df837[_0x32496c(0x33c)])==null?void 0x0:_0x9a1c9c[_0x639bc4[_0x32496c(0x1cc)]]);_0xbb9c51&&_0x32deec[_0x32496c(0x4ee)](J(_0x18aad3,_0xbb9c51)),_0x232b1a&&_0x32deec[_0x32496c(0x4ee)](q(_0x18aad3,_0x232b1a)),_0x639bc4[_0x32496c(0x3c2)]&&_0x32deec[_0x32496c(0x4ee)](Mr(_0x18aad3,_0x639bc4['viewId'])),(_0x639bc4['reason']===_0x32496c(0x524)||_0x5aa757[_0x32496c(0x253)](_0x18aad3))&&_0x5df837&&(Object['keys'](_0x5df837[_0x32496c(0x503)])[_0x32496c(0x429)](_0x4e8ee3=>_0x32deec[_0x32496c(0x4ee)](q(_0x18aad3,_0x4e8ee3))),Object['keys'](_0x5df837[_0x32496c(0x43a)])[_0x32496c(0x429)](_0x2d1797=>_0x32deec[_0x32496c(0x4ee)](J(_0x18aad3,_0x2d1797))),Object[_0x32496c(0x46f)](_0x5df837[_0x32496c(0x1e8)])[_0x32496c(0x429)](_0x385b4d=>_0x32deec['add'](Mr(_0x18aad3,_0x385b4d)))),_0x639bc4['reason']===_0x32496c(0x1b5)&&_0x5df837&&Object[_0x32496c(0x46f)](_0x5df837[_0x32496c(0x503)])[_0x32496c(0x429)](_0xa4033d=>_0x32deec[_0x32496c(0x4ee)](q(_0x18aad3,_0xa4033d)));}),_0x1aece5[_0x1b7995(0x21d)]===0x0&&Xs(_0x5e9aab,'tableOrder')&&Object[_0x1b7995(0x46f)](_0x4a67bb[_0x1b7995(0x2f7)])[_0x1b7995(0x429)](_0x28a7b4=>_0x32deec['add'](K(_0x28a7b4))),[..._0x32deec];}function Js(_0x556f74){let _0x24c04b=new Set(),_0x3ea79c=_0x32200d=>{const _0x2ef9ee=_0x188f;Array['isArray'](_0x32200d)&&_0x32200d[_0x2ef9ee(0x429)]((_0x3fcf02,_0xdb7fe1)=>{const _0x2ce2f4=_0x2ef9ee;_0x3fcf02===_0x2ce2f4(0x2f7)&&typeof _0x32200d[_0xdb7fe1+0x1]==_0x2ce2f4(0x2ed)&&Ys(_0x32200d[_0xdb7fe1+0x2])&&_0x24c04b['add'](_0x32200d[_0xdb7fe1+0x1]),_0x3ea79c(_0x3fcf02);});};return _0x3ea79c(_0x556f74),_0x24c04b;}function Ys(_0x5be3dd){const _0x47de31=_0x5daf81;return!!_0x5be3dd&&typeof _0x5be3dd==_0x47de31(0x1fb)&&!Array[_0x47de31(0x31e)](_0x5be3dd)&&('i'in _0x5be3dd||'r'in _0x5be3dd||'p'in _0x5be3dd||'d'in _0x5be3dd||'es'in _0x5be3dd||'ena'in _0x5be3dd||'et'in _0x5be3dd);}function Xs(_0x2f2f29,_0x1187d6){const _0x221253=_0x5daf81;return Array[_0x221253(0x31e)](_0x2f2f29)&&_0x2f2f29['some'](_0x11679f=>_0x11679f===_0x1187d6||Xs(_0x11679f,_0x1187d6));}function Zs(_0x44432a,_0x52c0eb){let _0x207996=new Set(),_0xd09c84=_0x52c0eb+'Id',_0x3cd397=_0x52c0eb+'Ids',_0x36dded=(_0x33addd,_0x5036d0='')=>{const _0x542170=_0x188f;typeof _0x33addd==_0x542170(0x2ed)?_0x5036d0===_0xd09c84&&_0x207996[_0x542170(0x4ee)](_0x33addd):Array[_0x542170(0x31e)](_0x33addd)?_0x5036d0===_0x3cd397?_0x33addd[_0x542170(0x429)](_0x1fa1d8=>{typeof _0x1fa1d8=='string'&&_0x207996['add'](_0x1fa1d8);}):_0x33addd[_0x542170(0x429)](_0x14b60b=>_0x36dded(_0x14b60b,_0x5036d0)):tc(_0x33addd)&&Object['entries'](_0x33addd)[_0x542170(0x429)](([_0x27e6fe,_0x6cc7c7])=>{const _0x2a50b0=_0x542170;_0x27e6fe==='id'&&_0x5036d0===_0x52c0eb&&typeof _0x6cc7c7==_0x2a50b0(0x2ed)?_0x207996['add'](_0x6cc7c7):_0x36dded(_0x6cc7c7,_0x27e6fe);});};return _0x36dded(_0x44432a),[..._0x207996];}function Qs(_0x401703,_0x212d52,_0x5c4835,_0x25bf56){_0x401703&&Array['isArray'](_0x212d52)&&_0x212d52['forEach'](_0x3f5248=>{const _0x53802a=_0x188f;if(!tc(_0x3f5248))return;let _0x12d8fd=_0x3f5248;if(typeof _0x12d8fd[_0x53802a(0x406)]==_0x53802a(0x53d)){var _0x340380;let _0x266259=(_0x340380=_0x401703[_0x53802a(0x1ec)])==null?void 0x0:_0x340380[_0x12d8fd[_0x53802a(0x406)]];_0x266259&&_0x5c4835['add'](_0x266259);}if(typeof _0x12d8fd[_0x53802a(0x2f0)]==_0x53802a(0x53d)){var _0x2647d5;let _0x2744f0=(_0x2647d5=_0x401703[_0x53802a(0x33c)])==null?void 0x0:_0x2647d5[_0x12d8fd[_0x53802a(0x2f0)]];_0x2744f0&&_0x25bf56['add'](_0x2744f0);}});}function $s(_0xabae87,_0x40a9e1,_0x4b5635=''){const _0x430620=_0x5daf81;_0xabae87&&typeof _0xabae87==_0x430620(0x1fb)&&(Array[_0x430620(0x31e)](_0xabae87)?_0xabae87[_0x430620(0x429)](_0x32274d=>$s(_0x32274d,_0x40a9e1,_0x4b5635)):tc(_0xabae87)&&Object[_0x430620(0x2e4)](_0xabae87)[_0x430620(0x429)](([_0x3626f1,_0x303d74])=>{const _0x2b7e35=_0x430620;_0x4b5635===_0x2b7e35(0x45b)&&_0x40a9e1[_0x2b7e35(0x4ee)](_0x3626f1),$s(_0x303d74,_0x40a9e1,_0x3626f1);}));}function ec(_0x66e604){return Array['isArray'](_0x66e604);}function tc(_0x2b3dd8){const _0x523abb=_0x5daf81;return typeof _0x2b3dd8==_0x523abb(0x1fb)&&!!_0x2b3dd8&&!Array[_0x523abb(0x31e)](_0x2b3dd8);}const nc=_0x3262c5(_0x5daf81(0x54a));let rc=class{constructor(_0x442a58){const _0x51d8cf=_0x5daf81;this[_0x51d8cf(0x552)]=_0x442a58;}['getBase'](_0x40a1ce){const _0x4d89bd=_0x5daf81;return this[_0x4d89bd(0x552)][_0x4d89bd(0x1ed)](_0x40a1ce,_0x2ddca0['UNIVER_BASE'])??null;}['getAllBases'](){const _0x189b48=_0x5daf81;return this['_univerInstanceService'][_0x189b48(0x34d)](_0x2ddca0[_0x189b48(0x33d)]);}['createBase'](_0x5d5f54){const _0x49c072=_0x5daf81;return this['_univerInstanceService'][_0x49c072(0x55c)](_0x2ddca0[_0x49c072(0x33d)],_0x5d5f54);}};rc=X([Y(0x0,_0x364596)],rc);const ic=_0x3262c5('base.view-registry.service');var ac=class extends _0x183939{constructor(..._0x54478f){const _0x2d43b0=_0x5daf81;super(..._0x54478f),G(this,_0x2d43b0(0x450),new Map());}['register'](_0x1bb256){const _0x2ecae1=_0x5daf81;return this[_0x2ecae1(0x450)][_0x2ecae1(0x1ba)](_0x1bb256[_0x2ecae1(0x305)],_0x1bb256),_0x1a388a(()=>this[_0x2ecae1(0x450)][_0x2ecae1(0x3ae)](_0x1bb256['type']));}[_0x5daf81(0x315)](_0x3fe08f){const _0xc51a9e=_0x5daf81;let _0x3b8b66=this[_0xc51a9e(0x450)]['get'](_0x3fe08f);if(!_0x3b8b66)throw Error(_0xc51a9e(0x2ce)+_0x3fe08f+_0xc51a9e(0x2ec));return _0x3b8b66;}[_0x5daf81(0x4a5)](){const _0x33ef1d=_0x5daf81;return Array[_0x33ef1d(0x404)](this[_0x33ef1d(0x450)][_0x33ef1d(0x45b)]());}};const oc=[Q];let sc=class extends _0x29b1cf{constructor(_0x3550d7=Ns,_0x2cd8f0,_0x5706df,_0x335e12,_0x3dcee9,_0xe50f9e){const _0x46f9c7=_0x5daf81;super(),this[_0x46f9c7(0x3d7)]=_0x3550d7,this[_0x46f9c7(0x385)]=_0x2cd8f0,this[_0x46f9c7(0x4ec)]=_0x5706df,this[_0x46f9c7(0x552)]=_0x335e12,this[_0x46f9c7(0x557)]=_0x3dcee9,this[_0x46f9c7(0x3b0)]=_0xe50f9e,G(this,_0x46f9c7(0x4d2),new Map());let {..._0x4f6931}=_0x5a5f56({},Ns,this[_0x46f9c7(0x3d7)]);this[_0x46f9c7(0x557)][_0x46f9c7(0x438)](_0x46f9c7(0x540),_0x4f6931),this[_0x46f9c7(0x552)][_0x46f9c7(0x3d4)](_0x2ddca0[_0x46f9c7(0x33d)],_0x3bc5ac),this[_0x46f9c7(0x521)](),this[_0x46f9c7(0x263)](),this[_0x46f9c7(0x255)](),this[_0x46f9c7(0x2a7)]();}[_0x5daf81(0x28c)](){const _0x521c53=_0x5daf81;this[_0x521c53(0x385)][_0x521c53(0x4ee)]([Lo]),this[_0x521c53(0x314)](this[_0x521c53(0x385)][_0x521c53(0x315)](_0x2ca718)[_0x521c53(0x535)](Ro)),this['disposeWithMe'](this[_0x521c53(0x385)][_0x521c53(0x315)](_0x2ca718)['registerCommand'](zo)),this[_0x521c53(0x314)](this[_0x521c53(0x385)][_0x521c53(0x315)](_0x2cff1c)[_0x521c53(0x205)](_0x2ea692[_0x521c53(0x348)],this[_0x521c53(0x385)][_0x521c53(0x315)](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x18b40d=_0x5daf81;_0x32cf62(this[_0x18b40d(0x385)],[[rc],[qr],[Rs]]),this[_0x18b40d(0x552)][_0x18b40d(0x34d)](_0x2ddca0[_0x18b40d(0x33d)])[_0x18b40d(0x429)](_0x208347=>this[_0x18b40d(0x452)](_0x208347[_0x18b40d(0x506)]())),_0x32cf62(this[_0x18b40d(0x385)],[[zs],[Us]]);}[_0x5daf81(0x521)](){const _0xd4bbbf=_0x5daf81;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0xd4bbbf(0x429)](_0xb5dd20=>this[_0xd4bbbf(0x385)][_0xd4bbbf(0x4ee)](_0xb5dd20));}['_initCommands'](){const _0x31323d=_0x5daf81;[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][_0x31323d(0x429)](_0x421159=>this[_0x31323d(0x314)](this[_0x31323d(0x4ec)][_0x31323d(0x535)](_0x421159))),oc[_0x31323d(0x429)](_0x306242=>{const _0x4bd16f=_0x31323d;var _0x5b6d3a;return(_0x5b6d3a=this[_0x4bd16f(0x3b0)])==null?void 0x0:_0x5b6d3a[_0x4bd16f(0x1cd)](_0x306242);});}[_0x5daf81(0x2a7)](){const _0x3831c4=_0x5daf81;this['_dataSyncPrimaryController']&&(this[_0x3831c4(0x314)](this[_0x3831c4(0x552)]['getTypeOfUnitAdded$'](_0x2ddca0[_0x3831c4(0x33d)])['subscribe'](({unit:_0x345bff})=>{const _0x486c3f=_0x3831c4;this[_0x486c3f(0x452)](_0x345bff[_0x486c3f(0x506)]());})),this[_0x3831c4(0x314)](this[_0x3831c4(0x552)][_0x3831c4(0x3c7)](_0x2ddca0[_0x3831c4(0x33d)])['subscribe'](_0xb847b0=>{const _0x392789=_0x3831c4;var _0x310454;(_0x310454=this[_0x392789(0x4d2)][_0x392789(0x315)](_0xb847b0[_0x392789(0x506)]()))==null||_0x310454[_0x392789(0x399)](),this[_0x392789(0x4d2)][_0x392789(0x3ae)](_0xb847b0['getUnitId']());})));}['_syncBaseUnit'](_0x53efa0){const _0x10c13a=_0x5daf81;this[_0x10c13a(0x3b0)]&&!this[_0x10c13a(0x4d2)][_0x10c13a(0x253)](_0x53efa0)&&this['_baseSyncDisposables'][_0x10c13a(0x1ba)](_0x53efa0,this['_dataSyncPrimaryController'][_0x10c13a(0x358)](_0x53efa0));}[_0x5daf81(0x255)](){const _0x3bc870=_0x5daf81;let _0x162d0b=this[_0x3bc870(0x385)][_0x3bc870(0x315)](mr);zn()['forEach'](_0x13da42=>_0x162d0b['register'](_0x13da42));let _0x3bb1ea=this[_0x3bc870(0x385)][_0x3bc870(0x315)](ic),_0x32a25d=this['_injector'][_0x3bc870(0x315)](ii);$r()['forEach'](_0x2faa8b=>{const _0x43bd16=_0x3bc870;_0x3bb1ea[_0x43bd16(0x549)](_0x2faa8b),_0x32a25d[_0x43bd16(0x3d3)](_0x2faa8b);});}};G(sc,_0x5daf81(0x2f4),'BASES_PLUGIN'),G(sc,_0x5daf81(0x4f1),js),G(sc,'version',Ms),G(sc,_0x5daf81(0x305),_0x2ddca0[_0x5daf81(0x33d)]),sc=X([_0x2061bd(_0x4380c0,_0x446c43),Y(0x1,_0x477fb0(_0x46096e)),Y(0x2,_0x2ca718),Y(0x3,_0x364596),Y(0x4,_0x14abe6),Y(0x5,_0x1c6aef(_0x51b863))],sc);let cc=class extends _0x29b1cf{constructor(_0xf85dc7=Ps,_0x190083,_0x50b954,_0x128aa1,_0x1666ec){const _0x3075b7=_0x5daf81;super(),this[_0x3075b7(0x3d7)]=_0xf85dc7,this[_0x3075b7(0x385)]=_0x190083,this['_commandService']=_0x50b954,this[_0x3075b7(0x557)]=_0x128aa1,this[_0x3075b7(0x552)]=_0x1666ec;let {..._0x399ac2}=_0x5a5f56({},Ps,this[_0x3075b7(0x3d7)]);this[_0x3075b7(0x557)][_0x3075b7(0x438)](_0x3075b7(0x47a),_0x399ac2),this[_0x3075b7(0x552)][_0x3075b7(0x3d4)](_0x2ddca0[_0x3075b7(0x33d)],_0x3bc5ac),[[mr,{'useClass':hr}],[ii,{'useClass':si}]]['forEach'](_0x5309f3=>this[_0x3075b7(0x385)][_0x3075b7(0x4ee)](_0x5309f3)),oc[_0x3075b7(0x429)](_0x250e5f=>this['disposeWithMe'](this[_0x3075b7(0x4ec)]['registerCommand'](_0x250e5f)));}};G(cc,_0x5daf81(0x2f4),'REMOTE_BASES_PLUGIN'),G(cc,'packageName',js),G(cc,_0x5daf81(0x2c3),Ms),G(cc,_0x5daf81(0x305),_0x2ddca0[_0x5daf81(0x33d)]),cc=X([_0x2061bd(_0x4380c0,_0x446c43),Y(0x1,_0x477fb0(_0x46096e)),Y(0x2,_0x2ca718),Y(0x3,_0x14abe6),Y(0x4,_0x364596)],cc);function lc(_0x4e1501){const _0x3a2d62=_0x5daf81;let _0x2a503e=Cc(_0x4e1501['query']);if(!_0x2a503e)return{'query':'','total':0x0,'matches':[]};let _0x5cc4d3=[],_0x3c2247=[];for(let _0x103bb2=0x0;_0x103bb2<_0x4e1501[_0x3a2d62(0x209)]['length'];_0x103bb2++){if(!(_0x103bb2 in _0x4e1501[_0x3a2d62(0x209)]))continue;let _0x4a4dc8=_0x4e1501['table'][_0x3a2d62(0x503)][_0x4e1501[_0x3a2d62(0x209)][_0x103bb2]];_0x4a4dc8&&_0x3c2247[_0x3a2d62(0x482)]({'field':_0x4a4dc8,'fieldIndex':_0x103bb2});}_0x4e1501[_0x3a2d62(0x372)][_0x3a2d62(0x429)]((_0x4904df,_0x2467f9)=>{const _0x35b53e=_0x3a2d62;_0x3c2247[_0x35b53e(0x429)](({field:_0x98aa86,fieldIndex:_0x129769})=>{const _0x322e3c=_0x35b53e;let _0x1460ef=uc(_0x4904df[_0x322e3c(0x45b)][_0x98aa86['id']],_0x98aa86);if(!_0x1460ef)return;let _0x34288f=Sc(_0x2a503e,_0x1460ef[_0x322e3c(0x264)]);_0x34288f<=0x0||_0x5cc4d3[_0x322e3c(0x482)]({'recordId':_0x4904df[_0x322e3c(0x1c6)],'fieldId':_0x98aa86['id'],'fieldType':_0x98aa86[_0x322e3c(0x305)],'text':_0x1460ef[_0x322e3c(0x2dd)],'score':_0x34288f,'rowIndex':_0x2467f9,'fieldIndex':_0x129769});});}),_0x5cc4d3[_0x3a2d62(0x3c5)]((_0x3c7ebb,_0x40b83d)=>_0x40b83d[_0x3a2d62(0x1c1)]-_0x3c7ebb[_0x3a2d62(0x1c1)]||_0x3c7ebb['rowIndex']-_0x40b83d[_0x3a2d62(0x2c4)]||_0x3c7ebb['fieldIndex']-_0x40b83d[_0x3a2d62(0x301)]);let _0x4cd9bf=_0x4e1501['limit']==null?_0x5cc4d3:_0x5cc4d3[_0x3a2d62(0x1cb)](0x0,Math[_0x3a2d62(0x29c)](0x0,_0x4e1501[_0x3a2d62(0x354)]));return{'query':_0x2a503e,'total':_0x5cc4d3[_0x3a2d62(0x21d)],'matches':Tc(_0x4cd9bf)};}function uc(_0x3332aa,_0x3ab791){const _0x3989aa=_0x5daf81;let _0x537500=[];for(let _0x97ba47 of fc(_0x3332aa,_0x3ab791)){let _0x24af4b=Cc(_0x97ba47);_0x24af4b&&_0x537500[_0x3989aa(0x482)](_0x24af4b);}return _0x537500[_0x3989aa(0x21d)]?{'displayText':dc(_0x3332aa,_0x3ab791),'searchTexts':wc(_0x537500)}:null;}function dc(_0x31bc09,_0x4ac8d6){const _0x389358=_0x5daf81;switch(_0x4ac8d6[_0x389358(0x305)]){case _0x618ba['SingleSelect']:case _0x618ba[_0x389358(0x3a1)]:case _0x618ba[_0x389358(0x377)]:return pc(_0x31bc09,_0x4ac8d6)[_0x389358(0x30a)](',\x20');case _0x618ba['Link']:return gc(_0x31bc09);case _0x618ba[_0x389358(0x47c)]:case _0x618ba['CreatedAt']:case _0x618ba[_0x389358(0x29f)]:return _c(_0x31bc09,_0x4ac8d6);case _0x618ba['Number']:case _0x618ba[_0x389358(0x20a)]:return vc(_0x31bc09,_0x4ac8d6);case _0x618ba[_0x389358(0x257)]:return yc(_0x31bc09,_0x4ac8d6);case _0x618ba[_0x389358(0x4bb)]:return _0x31bc09?_0x389358(0x4df):_0x389358(0x380);case _0x618ba[_0x389358(0x1f8)]:return bc(_0x31bc09)[_0x389358(0x30a)](',\x20');default:return xc(_0x31bc09);}}function fc(_0xb394b5,_0x57c997){const _0x484b6c=_0x5daf81;switch(_0x57c997[_0x484b6c(0x305)]){case _0x618ba[_0x484b6c(0x3af)]:case _0x618ba[_0x484b6c(0x3a1)]:case _0x618ba['Group']:{let _0x2ca277=pc(_0xb394b5,_0x57c997);if(Array[_0x484b6c(0x31e)](_0xb394b5)){let _0x16846a=[..._0x2ca277];for(let _0x3313be=0x0;_0x3313be<_0xb394b5['length'];_0x3313be++)_0x3313be in _0xb394b5&&_0x16846a[_0x484b6c(0x482)](String(_0xb394b5[_0x3313be]));return _0x16846a;}return _0xb394b5==null?_0x2ca277:[..._0x2ca277,String(_0xb394b5)];}case _0x618ba[_0x484b6c(0x42d)]:{let _0x59a637=hc(_0xb394b5);return[_0x59a637[_0x484b6c(0x38e)],_0x59a637[_0x484b6c(0x4fe)]];}case _0x618ba['Date']:case _0x618ba[_0x484b6c(0x3fb)]:case _0x618ba[_0x484b6c(0x29f)]:return[_c(_0xb394b5,_0x57c997),xc(_0xb394b5)];case _0x618ba[_0x484b6c(0x480)]:case _0x618ba['Currency']:return[vc(_0xb394b5,_0x57c997),xc(_0xb394b5)];case _0x618ba[_0x484b6c(0x257)]:return[yc(_0xb394b5,_0x57c997),xc(_0xb394b5)];case _0x618ba['Checkbox']:return _0xb394b5?[_0x484b6c(0x4df),_0x484b6c(0x2ca),'True']:['Unchecked','No',_0x484b6c(0x3dd)];case _0x618ba[_0x484b6c(0x1f8)]:return bc(_0xb394b5);default:return[xc(_0xb394b5)];}}function pc(_0x548148,_0x4753fa){const _0x596ce5=_0x5daf81;var _0x1a7426;let _0x2b74fc=Array[_0x596ce5(0x31e)]((_0x1a7426=_0x4753fa[_0x596ce5(0x396)])==null?void 0x0:_0x1a7426[_0x596ce5(0x49e)])?_0x4753fa[_0x596ce5(0x396)]['options']:[],_0x41f474=[];if(Array['isArray'](_0x548148)){for(let _0x10197f=0x0;_0x10197f<_0x548148['length'];_0x10197f++){if(!(_0x10197f in _0x548148))continue;let _0x1cfd6e=String(_0x548148[_0x10197f]);_0x1cfd6e&&_0x41f474['push'](mc(_0x2b74fc,_0x1cfd6e));}return _0x41f474;}if(_0x548148!=null){let _0x36accd=String(_0x548148);_0x36accd&&_0x41f474[_0x596ce5(0x482)](mc(_0x2b74fc,_0x36accd));}return _0x41f474;}function mc(_0x46b88f,_0x51dc51){const _0x3b48d3=_0x5daf81;for(let _0x146796 of _0x46b88f){if(typeof _0x146796==_0x3b48d3(0x2ed)&&_0x146796===_0x51dc51)return _0x146796;if(_0x146796&&typeof _0x146796==_0x3b48d3(0x1fb)){let _0x3aa935=_0x146796;if(String(_0x3aa935['id']??_0x3aa935[_0x3b48d3(0x322)]??'')===_0x51dc51||String(_0x3aa935['name']??'')===_0x51dc51)return String(_0x3aa935[_0x3b48d3(0x322)]??_0x3aa935['id']??_0x51dc51);}}return _0x51dc51;}function hc(_0x495d35){const _0x474d34=_0x5daf81;if(_0x495d35&&typeof _0x495d35=='object'&&!Array[_0x474d34(0x31e)](_0x495d35)){let _0x728f2f=_0x495d35;return{'text':String(_0x728f2f['text']??_0x728f2f[_0x474d34(0x4fe)]??''),'url':String(_0x728f2f[_0x474d34(0x4fe)]??'')};}return{'text':xc(_0x495d35),'url':xc(_0x495d35)};}function gc(_0x13b670){const _0x4a8a66=_0x5daf81;let _0xcfa46c=hc(_0x13b670);return _0xcfa46c[_0x4a8a66(0x38e)]||_0xcfa46c[_0x4a8a66(0x4fe)];}function _c(_0x5b0edf,_0x31274d){const _0x455490=_0x5daf81;return typeof _0x5b0edf!=_0x455490(0x53d)||!Number[_0x455490(0x2fc)](_0x5b0edf)?'':mn(_0x5b0edf,_0x31274d[_0x455490(0x396)]);}function vc(_0x2354cd,_0x3bdf98){const _0x17469a=_0x5daf81;let _0x5ba65d=typeof _0x2354cd==_0x17469a(0x53d)?_0x2354cd:Number(_0x2354cd);return Number[_0x17469a(0x2fc)](_0x5ba65d)?qo(_0x5ba65d,_0x3bdf98[_0x17469a(0x396)]):'';}function yc(_0x7ef953,_0x56a849){const _0x3ddf06=_0x5daf81;let _0x48c3fc=typeof _0x7ef953==_0x3ddf06(0x53d)?_0x7ef953:Number(_0x7ef953);return Number['isFinite'](_0x48c3fc)?Qo(_0x48c3fc,_0x56a849[_0x3ddf06(0x396)]):'';}function bc(_0x1f631d){const _0x26821e=_0x5daf81;return Array[_0x26821e(0x31e)](_0x1f631d)?_0x1f631d[_0x26821e(0x36c)](_0x586d26=>{const _0x34428a=_0x26821e;if(!_0x586d26||typeof _0x586d26!=_0x34428a(0x1fb))return[];let _0x60127e=_0x586d26,_0xaa900f=String(_0x60127e[_0x34428a(0x322)]??_0x60127e['url']??'')[_0x34428a(0x3a5)]();return _0xaa900f?[_0xaa900f]:[];}):[];}function xc(_0x4ad12e){const _0x5dd3ce=_0x5daf81;if(_0x4ad12e==null)return'';if(typeof _0x4ad12e==_0x5dd3ce(0x26c))return _0x4ad12e?'true':_0x5dd3ce(0x299);if(typeof _0x4ad12e==_0x5dd3ce(0x53d))return String(_0x4ad12e);if(Array['isArray'](_0x4ad12e)){let _0x2a648f=[];for(let _0x2b1ea3=0x0;_0x2b1ea3<_0x4ad12e[_0x5dd3ce(0x21d)];_0x2b1ea3++){if(!(_0x2b1ea3 in _0x4ad12e))continue;let _0x46dbc7=xc(_0x4ad12e[_0x2b1ea3]);_0x46dbc7&&_0x2a648f[_0x5dd3ce(0x482)](_0x46dbc7);}return _0x2a648f[_0x5dd3ce(0x30a)](',\x20');}if(typeof _0x4ad12e=='object'){let _0x1061da=_0x4ad12e;return String(_0x1061da[_0x5dd3ce(0x2ff)]??_0x1061da[_0x5dd3ce(0x322)]??_0x1061da['text']??_0x1061da[_0x5dd3ce(0x4fe)]??'')[_0x5dd3ce(0x3a5)]();}return String(_0x4ad12e);}function Sc(_0x374de4,_0x113413){const _0x38417c=_0x5daf81;let _0x2f99e3=0x0;for(let _0x527284 of _0x113413)_0x527284&&(_0x527284===_0x374de4?_0x2f99e3=Math[_0x38417c(0x29c)](_0x2f99e3,0x12c):_0x527284[_0x38417c(0x265)](_0x374de4)?_0x2f99e3=Math['max'](_0x2f99e3,0xfa):_0x527284[_0x38417c(0x4f9)](_0x374de4)&&(_0x2f99e3=Math[_0x38417c(0x29c)](_0x2f99e3,0xc8)));return _0x2f99e3;}function Cc(_0xd841b8){const _0x37b2ad=_0x5daf81;return _0xd841b8[_0x37b2ad(0x3a5)]()[_0x37b2ad(0x39b)](/\s+/g,'\x20')[_0x37b2ad(0x40c)]();}function wc(_0x31b2d3){const _0x1101a4=_0x5daf81;return Array[_0x1101a4(0x404)](new Set(_0x31b2d3));}function Tc(_0x3e70b4){const _0x1bd8b7=_0x5daf81;let _0x49ce06=[];for(let {rowIndex:_0x2cfa33,fieldIndex:_0x3c1dbf,..._0x33ee13}of _0x3e70b4)_0x49ce06[_0x1bd8b7(0x482)](_0x33ee13);return _0x49ce06;}function Ec(_0x56d10d){const _0x114f94=_0x5daf81;return{'compress':!0x0,'kind':_0x114f94(0x4f2),'u':_0x56d10d[_0x114f94(0x3cb)],'t':_0x56d10d[_0x114f94(0x221)],'p':_0x56d10d[_0x114f94(0x4b0)][_0x114f94(0x2b0)](_0x4e7a74=>[_0x4e7a74[_0x114f94(0x406)],_0x4e7a74[_0x114f94(0x2f0)],Ac(_0x4e7a74['value'])]),..._0x56d10d[_0x114f94(0x22c)]===void 0x0?{}:{'g':_0x56d10d[_0x114f94(0x22c)]}};}function Dc(_0x38298e){const _0x441aca=_0x5daf81;if(Lc(_0x38298e,_0x441aca(0x4f2)),!Oc(_0x38298e)){if(!Ic(_0x38298e))throw Error(_0x441aca(0x393));return _0x38298e;}return{'unitId':_0x38298e['u'],'tableId':_0x38298e['t'],'patches':_0x38298e['p']['map'](([_0x45269b,_0x21c227,_0x44e97b])=>({'row':_0x45269b,'col':_0x21c227,'value':jc(_0x44e97b)})),..._0x38298e['g']===void 0x0?{}:{'trigger':_0x38298e['g']}};}function Oc(_0x5f342b){const _0x5b052f=_0x5daf81;return!Rc(_0x5f342b)||_0x5f342b['compress']!==!0x0||_0x5f342b[_0x5b052f(0x29e)]!=='base-range-values-v1'?!0x1:typeof _0x5f342b['u']==_0x5b052f(0x2ed)&&typeof _0x5f342b['t']==_0x5b052f(0x2ed)&&(_0x5f342b['g']===void 0x0||typeof _0x5f342b['g']==_0x5b052f(0x2ed))&&Array[_0x5b052f(0x31e)](_0x5f342b['p'])&&_0x5f342b['p'][_0x5b052f(0x2ab)](_0x4be59b=>Array['isArray'](_0x4be59b)&&_0x4be59b[_0x5b052f(0x21d)]===0x3&&Number[_0x5b052f(0x317)](_0x4be59b[0x0])&&Number[_0x5b052f(0x317)](_0x4be59b[0x1]));}function kc(_0x3320d4){const _0x3a82e0=_0x5daf81;return!Rc(_0x3320d4)||_0x3320d4['compress']!==!0x0||_0x3320d4['kind']!==_0x3a82e0(0x368)||!Rc(_0x3320d4[_0x3a82e0(0x2f7)])?!0x1:Object[_0x3a82e0(0x45b)](_0x3320d4['tables'])['every'](_0xc5ea2a=>Rc(_0xc5ea2a)&&(_0xc5ea2a['cd']===void 0x0||Array[_0x3a82e0(0x31e)](_0xc5ea2a['cd'])&&_0xc5ea2a['cd'][_0x3a82e0(0x2ab)](_0x81c881=>Array[_0x3a82e0(0x31e)](_0x81c881)&&_0x81c881[_0x3a82e0(0x21d)]===0x3&&Number[_0x3a82e0(0x317)](_0x81c881[0x0])&&Number['isInteger'](_0x81c881[0x1])&&Fc(_0x81c881[0x2]))));}function Ac(_0x3d6e4a){return Pc(_0x3d6e4a)?Mc(_0x3d6e4a):_0x3d6e4a;}function jc(_0xda36a3){return Fc(_0xda36a3)?Nc(_0xda36a3):_0xda36a3;}function Mc(_0xbafab2){return{'c':0x1,..._0xbafab2['v']===void 0x0?{}:{'v':_0xbafab2['v']},..._0xbafab2['t']!==void 0x0&&_0xbafab2['t']!==null?{'t':_0xbafab2['t']}:_0xbafab2['t']===null?{'t':null}:{},..._0xbafab2['f']!==void 0x0&&_0xbafab2['f']!==null?{'f':_0xbafab2['f']}:_0xbafab2['f']===null?{'f':null}:{},..._0xbafab2['si']!==void 0x0&&_0xbafab2['si']!==null?{'si':_0xbafab2['si']}:_0xbafab2['si']===null?{'si':null}:{},..._0xbafab2['p']!==void 0x0&&_0xbafab2['p']!==null?{'p':_0xbafab2['p']}:_0xbafab2['p']===null?{'p':null}:{}};}function Nc(_0x3233ba){return{..._0x3233ba['v']===void 0x0?{}:{'v':_0x3233ba['v']},..._0x3233ba['t']===void 0x0?{}:{'t':_0x3233ba['t']},..._0x3233ba['f']===void 0x0?{}:{'f':_0x3233ba['f']},..._0x3233ba['si']===void 0x0?{}:{'si':_0x3233ba['si']},..._0x3233ba['p']===void 0x0?{}:{'p':_0x3233ba['p']}};}function Pc(_0x56b8e7){const _0x59063f=_0x5daf81;return!!_0x56b8e7&&typeof _0x56b8e7==_0x59063f(0x1fb)&&!Array[_0x59063f(0x31e)](_0x56b8e7)&&(Object[_0x59063f(0x4e2)][_0x59063f(0x4d7)]['call'](_0x56b8e7,'v')||Object['prototype'][_0x59063f(0x4d7)][_0x59063f(0x35d)](_0x56b8e7,'t')||Object[_0x59063f(0x4e2)][_0x59063f(0x4d7)][_0x59063f(0x35d)](_0x56b8e7,'p')||Object['prototype'][_0x59063f(0x4d7)]['call'](_0x56b8e7,'f')||Object[_0x59063f(0x4e2)][_0x59063f(0x4d7)][_0x59063f(0x35d)](_0x56b8e7,'si'));}function Fc(_0x94ef95){return Rc(_0x94ef95)&&_0x94ef95['c']===0x1;}function Ic(_0x3d8532){const _0x397524=_0x5daf81;return Rc(_0x3d8532)&&typeof _0x3d8532['unitId']==_0x397524(0x2ed)&&typeof _0x3d8532[_0x397524(0x221)]=='string'&&(_0x3d8532['trigger']===void 0x0||typeof _0x3d8532[_0x397524(0x22c)]==_0x397524(0x2ed))&&Array['isArray'](_0x3d8532[_0x397524(0x4b0)])&&_0x3d8532['patches']['every'](_0xf524ff=>Rc(_0xf524ff)&&Number[_0x397524(0x317)](_0xf524ff[_0x397524(0x406)])&&Number[_0x397524(0x317)](_0xf524ff[_0x397524(0x2f0)])&&'value'in _0xf524ff);}function Lc(_0x4d8031,_0x235363){const _0x21def2=_0x5daf81;if(Rc(_0x4d8031)&&_0x4d8031[_0x21def2(0x243)]===!0x0){if(_0x4d8031['kind']!==_0x235363)throw Error(_0x21def2(0x242)+String(_0x4d8031[_0x21def2(0x29e)])+'\x22.');if(!(_0x235363===_0x21def2(0x4f2)?Oc(_0x4d8031):kc(_0x4d8031)))throw Error(_0x21def2(0x250)+_0x235363+'\x22.');}}function Rc(_0x215a5c){const _0x319309=_0x5daf81;return!!_0x215a5c&&typeof _0x215a5c=='object'&&!Array[_0x319309(0x31e)](_0x215a5c);}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,_0x36105f 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 _0x504a7e=_0x1173;(function(_0x58c768,_0x2dc8b6){const _0x5dca41=_0x1173,_0x1fc515=_0x58c768();while(!![]){try{const _0x48bb11=-parseInt(_0x5dca41(0x2c9))/0x1+-parseInt(_0x5dca41(0x2aa))/0x2+parseInt(_0x5dca41(0x346))/0x3*(parseInt(_0x5dca41(0x256))/0x4)+-parseInt(_0x5dca41(0x2df))/0x5*(-parseInt(_0x5dca41(0x194))/0x6)+parseInt(_0x5dca41(0x127))/0x7+parseInt(_0x5dca41(0x228))/0x8+-parseInt(_0x5dca41(0x351))/0x9;if(_0x48bb11===_0x2dc8b6)break;else _0x1fc515['push'](_0x1fc515['shift']());}catch(_0x28a3ea){_0x1fc515['push'](_0x1fc515['shift']());}}}(_0x62ad,0x86eb9));import{$ as _0x5765d0,A as _0xe70f3f,B as _0x307982,C as _0x1fdd23,D as _0x2be14e,E as _0x5cf8f0,F as _0x4405ea,G as _0x4e974f,H as _0x3798c4,I as _0x3dcc85,J as _0xed19c9,K as _0x293ef7,L as _0x4824da,M as _0x1c0108,N as _0x3a87b5,O as _0x19c406,P as _0x131473,Q as _0x30e703,R as _0x5bc2d6,S as _0x368e47,T as _0x2b1acd,U as _0xfd180,V as _0x5d4c51,W as _0x3ac0ab,X as _0x2b5e99,Y as _0x2ec0bc,Z as _0x7263fd,_ as _0x34226d,a as _0x45b029,at as _0x18699a,b as _0xa24b24,c as _0x2f29d3,ct as _0x245cec,d as _0x1cd476,et as _0x52fa6c,f as _0x33f97a,g as _0x454659,h as _0x3ba2f1,it as _0x1004bc,j as _0x4f5c96,k,l as _0x4e4bb7,m as _0x5840f6,nt as _0x14abc2,o as _0x24778c,ot as _0x1b5ce2,p as _0x5242b9,q as _0x120f28,r as _0x72235c,rt as _0x4f3842,s as _0x1a9379,st as _0xc6290e,t as _0x522492,tt as _0x41ad89,u as _0x26150d,v as _0x5b6408,w as _0x5830e6,x as _0x986d8d,y as _0x461d57,z as _0xe966a5}from'./config-DDy_jw9I.js';import{BASE_RECORD_ID_FIELD_ID as _0x3fdab9,BaseConditionalColorOperator as _0x420109,BaseConditionalColorTarget as _0x10a700,BaseConditionalDateMode as _0x575a0e,BaseDataModel as _0x343d3d,BaseFieldType as _0x27fbfa,BaseHierarchyInvalidReason as _0x27eb99,BaseRecordLinkRole as _0x3b09d0,BaseViewType as _0x4e1338,CellValueType as _0x2e0acd,ColorKit as _0x46b46b,CommandType as _0x833d37,CustomCommandExecutionError as _0x5f78c1,DependentOn as _0x261f4a,Disposable as _0x4bee66,ErrorService as _0x1ff4bf,ICommandService as _0x27da3e,IConfigService as _0x4a576d,IPermissionService as _0x3ac310,IResourceManagerService as _0x321aad,IUndoRedoService as _0xe641a2,IUniverInstanceService as _0x2f75e2,Inject as _0x1763a9,Injector as _0x3a9221,JSON1 as _0x14cbd0,JSONX as _0x524299,ObjectMatrix as _0x5e4ffa,ObjectPermissionRuleModel as _0x1b19fe,ObjectPermissionService as _0x155ba9,Optional as _0x5e71aa,PermissionStatus as _0x23807d,Plugin as _0xdce100,Tools as _0x1e2b57,UniverInstanceType as _0x17555f,allocateBaseFormulaTableName as _0xd4234,assertBaseTableRecordIdentity as _0x514998,createBaseFormulaTableNameMap as _0x18fea7,createBaseRecordIdField as _0x171d11,createIdentifier as _0x2540dc,generateRandomId as _0x238c0d,getBaseFormulaTableName as _0x49b767,isBaseRecordIdFieldName as _0x2b4e6c,isValidBaseRecordId as _0x7e94f6,merge as _0x183f79,nameCharacterCheck as _0x225269,numfmt as _0x159275,regexp as _0x1e8880,sequenceExecute as _0x42f958,toDisposable as _0x169f5c,touchDependencies as _0x5e0da1}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x2be5e0,IActiveDirtyManagerService as _0x97e1a,RemoveSuperTableMutation as _0x400733,SetFormulaCalculationResultMutation as _0x7fa304,SetSuperTableMutation as _0x5db841,SetTriggerFormulaCalculationStartMutation as _0x5e9611,UniverProFormulaEnginePlugin as _0x547dc3,refactorFormulaUnitQualifier as _0x43cd21}from'@univerjs-pro/engine-formula';import{UnitAction as _0x52f72d,UnitObject as _0x38f610}from'@univerjs/protocol';import{UniverLicensePlugin as _0x5d8f49}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x5dfe8a}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x2090b0,FormulaResultApplicationType as _0x4add98}from'@univerjs/engine-formula';const K={'table':_0x3ae8e1=>[_0x504a7e(0x2c0),_0x3ae8e1],'field':(_0x3f375e,_0x1f08e6)=>[_0x504a7e(0x2c0),_0x3f375e,_0x504a7e(0x1d2),_0x1f08e6],'fieldOrder':(_0x1e8fed,_0x25beaa)=>[_0x504a7e(0x2c0),_0x1e8fed,'fieldOrder',_0x25beaa],'record':(_0x2d86ac,_0x36e183)=>[_0x504a7e(0x2c0),_0x2d86ac,_0x504a7e(0x1dd),_0x36e183],'cell':(_0x41e740,_0x2220fa,_0x11e717)=>[_0x504a7e(0x2c0),_0x41e740,_0x504a7e(0x1dd),_0x2220fa,_0x504a7e(0x196),_0x11e717],'cellData':(_0x2b137,_0x308090,_0x42cb1f)=>[_0x504a7e(0x2c0),_0x2b137,_0x504a7e(0x36c),String(_0x308090),String(_0x42cb1f)],'attachmentSet':(_0x138e7f,_0x2f68fa)=>[_0x504a7e(0x2c0),_0x138e7f,_0x504a7e(0x18a),_0x504a7e(0x219),_0x2f68fa],'attachment':(_0x4c4bd4,_0x10ae2e)=>[_0x504a7e(0x2c0),_0x4c4bd4,'resources','attachments',_0x10ae2e],'view':(_0x2de774,_0x47636e)=>[_0x504a7e(0x2c0),_0x2de774,_0x504a7e(0x2b5),_0x47636e],'viewFieldHidden':(_0x46dc0a,_0x32c28c,_0x5d581f)=>[_0x504a7e(0x2c0),_0x46dc0a,_0x504a7e(0x2b5),_0x32c28c,_0x504a7e(0x321),_0x5d581f,_0x504a7e(0x345)]};var q=class{[_0x504a7e(0x1f3)](_0x44dc04,_0x38ac78){const _0x4a1c5e=_0x504a7e;let _0x194687=this[_0x4a1c5e(0x1e5)](_0x44dc04,_0x44dc04[_0x4a1c5e(0x121)],_0x38ac78);return _0x19c406([this['_replaceOptional']([_0x4a1c5e(0x121)],_0x44dc04['name'],_0x38ac78),..._0x194687?[_0x194687]:[]]);}[_0x504a7e(0x1e5)](_0x7d0be6,_0x1ba02d,_0x16b3e6){const _0x2f218d=_0x504a7e;let _0x1f140d=Object['values'](_0x7d0be6['tables'])['flatMap'](_0x1be4b1=>Object['values'](_0x1be4b1[_0x2f218d(0x1d2)])[_0x2f218d(0x322)](_0x3e70c9=>{const _0xbea76=_0x2f218d;var _0x474ddf,_0x1f1be4;if(_0x3e70c9[_0xbea76(0x337)]!==_0x27fbfa[_0xbea76(0x1ad)])return[];let _0x1e0397=String(((_0x474ddf=_0x3e70c9['config'])==null?void 0x0:_0x474ddf['formula'])??''),_0x3c28bc=_0x43cd21(_0x1e0397,_0x1ba02d,_0x16b3e6);return _0x3c28bc===_0x1e0397?[]:[this[_0xbea76(0x275)]([...K[_0xbea76(0x2c3)](_0x1be4b1['id'],_0x3e70c9['id']),_0xbea76(0x1df),_0xbea76(0x247)],(_0x1f1be4=_0x3e70c9['config'])==null?void 0x0:_0x1f1be4['formula'],_0x3c28bc)];}));return _0x1f140d[_0x2f218d(0x328)]>0x0?_0x19c406(_0x1f140d):void 0x0;}[_0x504a7e(0x20e)](_0x2caa4e,_0x54ba99,_0x284264=_0x2caa4e[_0x504a7e(0x165)][_0x504a7e(0x328)]){const _0x10eeb7=_0x504a7e;let _0x5473e5=_0xd4234(_0x54ba99[_0x10eeb7(0x121)],_0x18fea7(_0x2caa4e)[_0x10eeb7(0x196)](),_0x54ba99[_0x10eeb7(0x2e6)]),_0x40a741=_0x54ba99[_0x10eeb7(0x2e6)]===_0x5473e5?_0x54ba99:{..._0x54ba99,'formulaName':_0x5473e5};return _0x19c406([...this[_0x10eeb7(0x2ff)](_0x2caa4e),_0x14cbd0[_0x10eeb7(0x10b)](K[_0x10eeb7(0x30a)](_0x54ba99['id']),_0x40a741),_0x14cbd0[_0x10eeb7(0x10b)]([_0x10eeb7(0x165),_0x284264],_0x54ba99['id'])]);}[_0x504a7e(0x1ee)](_0x395352,_0x17a4bd,_0x29c8ea){const _0x4d1883=_0x504a7e;let _0x19a958=_0x395352[_0x4d1883(0x2c0)][_0x17a4bd];return _0x19c406([...this['_materializeFormulaTableNames'](_0x395352),_0x14cbd0[_0x4d1883(0x1bc)]([...K[_0x4d1883(0x30a)](_0x17a4bd),_0x4d1883(0x121)],_0x19a958[_0x4d1883(0x121)],_0x29c8ea)]);}[_0x504a7e(0x132)](_0x5f0fba,_0x523973){const _0x46a17c=_0x504a7e;let _0x3cd745=_0x5f0fba['tables'][_0x523973],_0x4ce400=_0x5f0fba[_0x46a17c(0x165)]['indexOf'](_0x523973);return _0x19c406([...this[_0x46a17c(0x2ff)](_0x5f0fba,new Set([_0x523973])),_0x14cbd0[_0x46a17c(0x312)](K[_0x46a17c(0x30a)](_0x523973),_0x3cd745),_0x14cbd0[_0x46a17c(0x312)]([_0x46a17c(0x165),_0x4ce400],_0x523973)]);}[_0x504a7e(0x2a7)](_0x4a5e06,_0x5b6927,_0x4cadae){const _0x12313b=_0x504a7e;return this[_0x12313b(0x285)](_0x4a5e06,_0x5b6927,[_0x4cadae]);}[_0x504a7e(0x285)](_0x3bf935,_0x124236,_0x382ef4){const _0x3db6e5=_0x504a7e;let _0x438cc6=_0x3bf935['tables'][_0x124236],_0x3a0d1a=_0x382ef4['filter'](_0x367f11=>_0x367f11&&!_0x438cc6[_0x3db6e5(0x1dd)][_0x367f11['id']])[_0x3db6e5(0x19b)](_0x4a8cff=>({..._0x4a8cff,'values':{..._0x4a8cff[_0x3db6e5(0x196)],[_0x3fdab9]:_0x4a8cff['id']}}));if(!_0x3a0d1a[_0x3db6e5(0x328)])return _0x14cbd0[_0x3db6e5(0x1bc)]([...K[_0x3db6e5(0x30a)](_0x124236),_0x3db6e5(0x1dd)],_0x438cc6[_0x3db6e5(0x1dd)],_0x438cc6[_0x3db6e5(0x1dd)]);let _0x35c689=new _0x14cbd0[(_0x3db6e5(0x354))](),_0x1b844d=[..._0x3a0d1a][_0x3db6e5(0x115)]((_0x333322,_0x2c72cd)=>_0x333322['id']<_0x2c72cd['id']?-0x1:+(_0x333322['id']>_0x2c72cd['id'])),_0x1192c1=[...K[_0x3db6e5(0x30a)](_0x124236),_0x3db6e5(0x1dd)];_0x35c689[_0x3db6e5(0x20b)](_0x1192c1);for(let _0x378a5 of _0x1b844d)_0x35c689[_0x3db6e5(0x1d6)](_0x378a5['id']),_0x35c689[_0x3db6e5(0x2fa)]('i',_0x378a5),_0x35c689[_0x3db6e5(0x261)]();for(let _0x18109e=0x0;_0x18109e<_0x1192c1['length'];_0x18109e+=0x1)_0x35c689[_0x3db6e5(0x261)]();return _0x19c406([_0x35c689['get'](),this[_0x3db6e5(0x28c)](_0x3bf935,_0x124236,_0x3a0d1a)]);}[_0x504a7e(0x206)](_0x22c35c,_0x4a338f,_0x2622de){const _0x21479a=_0x504a7e;return this[_0x21479a(0x2af)](_0x22c35c,_0x4a338f,[_0x2622de]);}[_0x504a7e(0x2af)](_0x23950d,_0xf0c5ff,_0xff2110){const _0xad601a=_0x504a7e;let _0x1866cc=_0x23950d['tables'][_0xf0c5ff],_0x1b704f=Array['from'](new Set(_0xff2110))[_0xad601a(0x231)](_0x1f65e4=>_0x1866cc[_0xad601a(0x1dd)][_0x1f65e4]);if(!_0x1b704f[_0xad601a(0x328)])return _0x14cbd0['replaceOp']([...K['table'](_0xf0c5ff),_0xad601a(0x1dd)],_0x1866cc[_0xad601a(0x1dd)],_0x1866cc['records']);let _0x4e1bc1=new Set(_0x1b704f),_0x46b1c2=_0x120f28(_0x1866cc,_0x1b704f)[_0xad601a(0x19b)](_0x3005ba=>this[_0xad601a(0x27b)](_0x23950d,_0xf0c5ff,_0x3005ba[_0xad601a(0x360)],_0x3005ba[_0xad601a(0x12c)],''));return _0x19c406([this['_deleteRecordsBaseOp'](_0x23950d,_0xf0c5ff,_0x1b704f,_0x4e1bc1),..._0x46b1c2]);}[_0x504a7e(0x343)](_0x46ee3f,_0x4e000e,_0xd918cf,_0xcabdf6){const _0x2a207f=_0x504a7e;let _0x3c0462=_0x46ee3f[_0x2a207f(0x2c0)][_0xd918cf],_0x4d4738=Array[_0x2a207f(0x146)](new Set(_0xcabdf6))[_0x2a207f(0x231)](_0x52f716=>_0x3c0462[_0x2a207f(0x1dd)][_0x52f716]),_0x1a1076=new Set(_0x4d4738),_0x4d98b1=new _0x2be14e()[_0x2a207f(0x34d)](_0x46ee3f,this['_deleteRecordsBaseOp'](_0x46ee3f,_0xd918cf,_0x4d4738,_0x1a1076)),_0x1c6bb6=_0x120f28(_0x3c0462,_0x4d4738)[_0x2a207f(0x19b)](_0x5bf746=>this[_0x2a207f(0x27b)](_0x4e000e,_0xd918cf,_0x5bf746[_0x2a207f(0x360)],_0x5bf746[_0x2a207f(0x12c)],_0x5bf746[_0x2a207f(0x17a)]??''));return _0x19c406([_0x4d98b1,..._0x1c6bb6]);}[_0x504a7e(0x32c)](_0xdf8061,_0x498007,_0x1c0194,_0x4bbe55){const _0x46ac09=_0x504a7e;let _0xbf91f9=_0xdf8061[_0x46ac09(0x2c0)][_0x498007],_0xbdbf67=_0x1c0194[_0x46ac09(0x19b)](_0x2ac5c4=>{const _0x4267d5=_0x46ac09;var _0x2d46d4;return{'recordId':_0x2ac5c4,'index':((_0x2d46d4=_0xbf91f9[_0x4267d5(0x1ca)])==null?void 0x0:_0x2d46d4[_0x4267d5(0x24b)](_0x2ac5c4))??-0x1};})['filter'](_0x435303=>_0x435303[_0x46ac09(0x273)]>=0x0)['sort']((_0x2acafd,_0x56bd57)=>_0x56bd57['index']-_0x2acafd[_0x46ac09(0x273)]);return _0x19c406([..._0x1c0194['map'](_0x49aeeb=>_0x14cbd0[_0x46ac09(0x312)](K[_0x46ac09(0x30f)](_0x498007,_0x49aeeb),_0xbf91f9['records'][_0x49aeeb])),..._0xbdbf67['map'](({recordId:_0x556412,index:_0x123de8})=>_0x14cbd0['removeOp']([_0x46ac09(0x2c0),_0x498007,_0x46ac09(0x1ca),_0x123de8],_0x556412)),...this['_deleteAttachmentResources'](_0xbf91f9,_0x498007,_0x225659=>{const _0x2119cb=_0x46ac09;let _0x5e43ab=_0x225659[_0x2119cb(0x27d)](_0x225659[_0x2119cb(0x25b)]('\x1f')+0x1);return _0x4bbe55[_0x2119cb(0x34c)](_0x5e43ab);})]);}['duplicateRecord'](_0x4155bf,_0x290419,_0x530053,_0x703a55){const _0x4d6b5d=_0x504a7e;return this[_0x4d6b5d(0x2a7)](_0x4155bf,_0x290419,{..._0x703a55,'values':{..._0x4155bf[_0x4d6b5d(0x2c0)][_0x290419][_0x4d6b5d(0x1dd)][_0x530053][_0x4d6b5d(0x196)],..._0x703a55[_0x4d6b5d(0x196)],[_0x3fdab9]:_0x703a55['id']}});}[_0x504a7e(0x17b)](_0x2505c3,_0x4f745e,_0x5f28b1,_0x523b8d){const _0x32751a=_0x504a7e;let _0x69f037=_0x2505c3['tables'][_0x4f745e],_0x394e31=[...K[_0x32751a(0x30f)](_0x4f745e,_0x5f28b1),_0x32751a(0x258)],_0x2837b9=Object['values'](_0x69f037[_0x32751a(0x1dd)])[_0x32751a(0x19b)](_0x2446da=>_0x2446da['id']===_0x5f28b1?{..._0x2446da,'orderKey':_0x523b8d}:_0x2446da)[_0x32751a(0x115)]((_0x241422,_0x3e807f)=>String(_0x241422[_0x32751a(0x258)]??_0x241422['id'])[_0x32751a(0x27a)](String(_0x3e807f[_0x32751a(0x258)]??_0x3e807f['id'])))[_0x32751a(0x19b)](_0x384fa8=>_0x384fa8['id']),_0x1d8b03=[...K[_0x32751a(0x30a)](_0x4f745e),_0x32751a(0x1ca)];return _0x19c406([this[_0x32751a(0x275)](_0x394e31,_0x69f037['records'][_0x5f28b1][_0x32751a(0x258)],_0x523b8d),_0x69f037[_0x32751a(0x1ca)]?_0x14cbd0[_0x32751a(0x1bc)](_0x1d8b03,_0x69f037[_0x32751a(0x1ca)],_0x2837b9):_0x14cbd0['insertOp'](_0x1d8b03,_0x2837b9)]);}['updateCell'](_0x3cffeb,_0x2dee62,_0x31f128,_0x40c438,_0x224109){const _0x471dfe=_0x504a7e;var _0x2389de,_0x27be4c;let _0x24ff86=_0x3cffeb[_0x471dfe(0x2c0)][_0x2dee62],_0x117029=kt(_0x24ff86,_0x31f128,_0x40c438)?_0x24ff86:k(_0x24ff86),_0xb9b68d=(_0x2389de=_0x117029[_0x471dfe(0x13d)])==null?void 0x0:_0x2389de[_0x31f128],_0x3666f2=(_0x27be4c=_0x117029[_0x471dfe(0x29d)])==null?void 0x0:_0x27be4c[_0x40c438];if(_0xb9b68d==null||_0x3666f2==null){var _0x4dca0d;return this[_0x471dfe(0x275)](K[_0x471dfe(0x1ef)](_0x2dee62,_0x31f128,_0x40c438),(_0x4dca0d=_0x3cffeb['tables'][_0x2dee62])==null||(_0x4dca0d=_0x4dca0d[_0x471dfe(0x1dd)][_0x31f128])==null?void 0x0:_0x4dca0d[_0x471dfe(0x196)][_0x40c438],_0x224109);}return this[_0x471dfe(0x2ec)](_0x3cffeb,_0x2dee62,[{'row':_0xb9b68d,'col':_0x3666f2,'value':_0x224109}]);}['setRecordValues'](_0x10c4be,_0x4fb45b,_0x36b9cb){const _0xd24250=_0x504a7e;let _0x54ce5f=_0x10c4be[_0xd24250(0x2c0)][_0x4fb45b],_0x48d1b8=_0x36b9cb[_0xd24250(0x364)](_0x3551a2=>Object[_0xd24250(0x1b9)](_0x3551a2[_0xd24250(0x196)])[_0xd24250(0x364)](_0x3b293a=>kt(_0x54ce5f,_0x3551a2[_0xd24250(0x360)],_0x3b293a)))?_0x54ce5f:k(_0x54ce5f),_0x115031=_0x36b9cb[_0xd24250(0x322)](_0x3a0715=>Object['entries'](_0x3a0715[_0xd24250(0x196)])['flatMap'](([_0x959e9f,_0x3a4b0d])=>{const _0x55a2dc=_0xd24250;var _0x5e3f6c,_0x4bd9cb;let _0x1019f7=(_0x5e3f6c=_0x48d1b8[_0x55a2dc(0x13d)])==null?void 0x0:_0x5e3f6c[_0x3a0715[_0x55a2dc(0x360)]],_0x4c8f35=(_0x4bd9cb=_0x48d1b8['colIndex'])==null?void 0x0:_0x4bd9cb[_0x959e9f];return _0x1019f7==null||_0x4c8f35==null?[]:[{'row':_0x1019f7,'col':_0x4c8f35,'value':_0x3a4b0d}];})),_0x14e776=_0x36b9cb['flatMap'](_0x1bec34=>Object['entries'](_0x1bec34[_0xd24250(0x362)]??{})[_0xd24250(0x19b)](([_0x45f219,_0x16697f])=>{const _0x28a940=_0xd24250;var _0x3d4397;let _0x39557b=[...K['record'](_0x4fb45b,_0x1bec34['recordId']),_0x45f219],_0x2b9dbf=(_0x3d4397=_0x10c4be[_0x28a940(0x2c0)][_0x4fb45b])==null||(_0x3d4397=_0x3d4397['records'][_0x1bec34[_0x28a940(0x360)]])==null?void 0x0:_0x3d4397[_0x45f219];return this[_0x28a940(0x275)](_0x39557b,_0x2b9dbf,_0x16697f);}));return _0x19c406([this[_0xd24250(0x2ec)](_0x10c4be,_0x4fb45b,_0x115031),..._0x14e776]);}[_0x504a7e(0x2ec)](_0x21554d,_0x5d534c,_0x1aae8a){const _0x404394=_0x504a7e;let _0x5580a5=_0x21554d[_0x404394(0x2c0)][_0x5d534c],_0x41c612=_0x1aae8a['every'](_0xe1f6b3=>At(_0x5580a5,_0xe1f6b3[_0x404394(0x33e)],_0xe1f6b3[_0x404394(0xfe)]))?_0x5580a5:k(_0x5580a5),_0x343174=new Map(),_0x305902=_0x1aae8a['flatMap'](_0x146285=>{const _0x44a938=_0x404394;var _0x30bca5,_0x2e08d6,_0x251e72,_0x3f2ca5;let _0x684f3=(_0x30bca5=_0x41c612[_0x44a938(0x1d4)])==null?void 0x0:_0x30bca5[_0x146285[_0x44a938(0xfe)]],_0x251b54=(_0x2e08d6=_0x41c612[_0x44a938(0x1b5)])==null?void 0x0:_0x2e08d6[_0x146285[_0x44a938(0x33e)]],_0x2e9c67=_0x684f3?_0x41c612[_0x44a938(0x1d2)][_0x684f3]:void 0x0;if(_0x684f3===_0x3fdab9||(_0x2e9c67==null?void 0x0:_0x2e9c67['type'])===_0x27fbfa[_0x44a938(0x30c)])throw Error(_0x44a938(0x35b));let _0x48d542=_0x3dcc85(_0x146285[_0x44a938(0x207)],_0x2e9c67),_0x3bdf75=(_0x251e72=_0x41c612[_0x44a938(0x36c)])==null||(_0x251e72=_0x251e72[_0x146285[_0x44a938(0x33e)]])==null?void 0x0:_0x251e72[_0x146285[_0x44a938(0xfe)]],_0x46b504=this['_replaceOptional'](K[_0x44a938(0x36c)](_0x5d534c,_0x146285[_0x44a938(0x33e)],_0x146285['col']),_0x3bdf75,_0x48d542);if(!_0x684f3||!_0x251b54)return[_0x46b504];let _0x5efa61=(_0x3f2ca5=_0x41c612[_0x44a938(0x1dd)][_0x251b54])==null?void 0x0:_0x3f2ca5['values'][_0x684f3],_0x463578=(_0x2e9c67==null?void 0x0:_0x2e9c67[_0x44a938(0x337)])===_0x27fbfa[_0x44a938(0x177)]?_0x4405ea(_0x146285['value']):_0x4824da(_0x146285[_0x44a938(0x207)],_0x48d542,_0x2e9c67,_0x41c612,_0x251b54),_0x3f78d1=[_0x46b504,this['_replaceOptional'](K[_0x44a938(0x1ef)](_0x5d534c,_0x251b54,_0x684f3),_0x5efa61,_0x463578)];return(_0x2e9c67==null?void 0x0:_0x2e9c67[_0x44a938(0x337)])===_0x27fbfa[_0x44a938(0x177)]&&_0x343174[_0x44a938(0x26b)](_0xe70f3f(_0x684f3,_0x251b54),{'recordId':_0x251b54,'fieldId':_0x684f3,'attachments':_0x463578}),_0x3f78d1;});return _0x305902[_0x404394(0x328)]?_0x19c406([..._0x305902,...this[_0x404394(0x199)](_0x41c612,_0x5d534c,Array[_0x404394(0x146)](_0x343174['values']()))]):_0x14cbd0['replaceOp']([_0x404394(0x2c0),_0x5d534c,_0x404394(0x36c)],_0x41c612[_0x404394(0x36c)],_0x41c612[_0x404394(0x36c)]);}[_0x504a7e(0x19a)](_0x54050f,_0x32bae9,_0x1fd923){const _0xd49165=_0x504a7e;let _0x3779cf=_0x54050f[_0xd49165(0x2c0)][_0x32bae9];if(_0x3779cf[_0xd49165(0x1d2)][_0x1fd923[_0xd49165(0x2c3)]['id']]||_0x3779cf[_0xd49165(0x260)][_0xd49165(0x1bb)](_0x1fd923['field']['id']))return _0x14cbd0[_0xd49165(0x1bc)]([_0xd49165(0x2c0),_0x32bae9,_0xd49165(0x260)],_0x3779cf[_0xd49165(0x260)],_0x3779cf[_0xd49165(0x260)]);let _0xc8ddf9=Math[_0xd49165(0x1a5)](0x1,_0x1fd923[_0xd49165(0x273)]??_0x3779cf['fieldOrder'][_0xd49165(0x328)]),_0x2ecd3c=Object[_0xd49165(0x196)](_0x3779cf[_0xd49165(0x2b5)]??{})[_0xd49165(0x322)](_0x3742f1=>{const _0x13bcd9=_0xd49165;var _0x3449c5;if(!_0x3742f1[_0x13bcd9(0x260)]||_0x3742f1[_0x13bcd9(0x260)]['includes'](_0x1fd923[_0x13bcd9(0x2c3)]['id']))return[];let _0x54194c=Pt(((_0x3449c5=_0x1fd923[_0x13bcd9(0x1b7)])==null?void 0x0:_0x3449c5[_0x3742f1['id']])??_0xc8ddf9,_0x3742f1['fieldOrder'][_0x13bcd9(0x328)]);return[_0x14cbd0[_0x13bcd9(0x10b)]([...K[_0x13bcd9(0x2e2)](_0x32bae9,_0x3742f1['id']),'fieldOrder',_0x54194c],_0x1fd923[_0x13bcd9(0x2c3)]['id'])];});return _0x19c406([..._0x1fd923[_0xd49165(0x2c3)][_0xd49165(0x337)]===_0x27fbfa[_0xd49165(0x1ad)]?this[_0xd49165(0x2ff)](_0x54050f):[],_0x14cbd0[_0xd49165(0x10b)](K[_0xd49165(0x2c3)](_0x32bae9,_0x1fd923[_0xd49165(0x2c3)]['id']),_0x1fd923['field']),_0x14cbd0[_0xd49165(0x10b)](K[_0xd49165(0x260)](_0x32bae9,_0xc8ddf9),_0x1fd923[_0xd49165(0x2c3)]['id']),..._0x2ecd3c]);}['duplicateField'](_0x51ee6b,_0xfd4446,_0x13550b,_0x44203f){const _0x282ba7=_0x504a7e;let _0x14e05e=_0x51ee6b[_0x282ba7(0x2c0)][_0xfd4446];if(!_0x14e05e['fields'][_0x13550b]||_0x14e05e[_0x282ba7(0x1d2)][_0x44203f[_0x282ba7(0x2c3)]['id']]||_0x14e05e[_0x282ba7(0x260)][_0x282ba7(0x1bb)](_0x44203f[_0x282ba7(0x2c3)]['id']))return _0x14cbd0[_0x282ba7(0x1bc)]([_0x282ba7(0x2c0),_0xfd4446,_0x282ba7(0x260)],_0x14e05e[_0x282ba7(0x260)],_0x14e05e[_0x282ba7(0x260)]);let _0x3baf89=_0x44203f[_0x282ba7(0x273)]??_0x14e05e[_0x282ba7(0x260)][_0x282ba7(0x24b)](_0x13550b)+0x1,_0x5b6237=_0x14e05e[_0x282ba7(0x260)][_0x282ba7(0x231)](_0x1d66da=>_0x1d66da!==_0x44203f[_0x282ba7(0x2c3)]['id']),_0x3e5b85=Mt(_0x5b6237,_0x44203f['field']['id'],_0x3baf89),_0x1c8aa7=Object[_0x282ba7(0x196)](_0x14e05e[_0x282ba7(0x2b5)]??{})['flatMap'](_0x2c6073=>{const _0x32520d=_0x282ba7;var _0x23faee,_0x57d896,_0x8e5bdb,_0x503a85;let _0x5d9205=(_0x23faee=_0x2c6073[_0x32520d(0x260)])!=null&&_0x23faee['length']?_0x2c6073[_0x32520d(0x260)]:_0x5b6237;if(_0x5d9205[_0x32520d(0x1bb)](_0x44203f[_0x32520d(0x2c3)]['id']))return[];let _0x1e6eee=Mt(_0x5d9205,_0x44203f['field']['id'],((_0x57d896=_0x44203f['viewIndexes'])==null?void 0x0:_0x57d896[_0x2c6073['id']])??_0x3baf89),_0x3705e0=(_0x8e5bdb=_0x2c6073[_0x32520d(0x321)])==null?void 0x0:_0x8e5bdb[_0x13550b];return[this[_0x32520d(0x275)]([...K[_0x32520d(0x2e2)](_0xfd4446,_0x2c6073['id']),_0x32520d(0x260)],_0x2c6073[_0x32520d(0x260)],_0x1e6eee),..._0x3705e0?[this['_replaceOptional']([...K[_0x32520d(0x2e2)](_0xfd4446,_0x2c6073['id']),_0x32520d(0x321),_0x44203f[_0x32520d(0x2c3)]['id']],(_0x503a85=_0x2c6073['fieldSettings'])==null?void 0x0:_0x503a85[_0x44203f[_0x32520d(0x2c3)]['id']],_0x3705e0)]:[]];}),_0x4a2b51=Object[_0x282ba7(0x196)](_0x14e05e['records'])[_0x282ba7(0x231)](_0xfbd613=>Object[_0x282ba7(0x120)][_0x282ba7(0x142)]['call'](_0xfbd613[_0x282ba7(0x196)],_0x13550b))['map'](_0x25947e=>this[_0x282ba7(0x275)](K[_0x282ba7(0x1ef)](_0xfd4446,_0x25947e['id'],_0x44203f[_0x282ba7(0x2c3)]['id']),_0x25947e['values'][_0x44203f[_0x282ba7(0x2c3)]['id']],_0x25947e['values'][_0x13550b]));return _0x19c406([..._0x44203f[_0x282ba7(0x2c3)][_0x282ba7(0x337)]===_0x27fbfa[_0x282ba7(0x1ad)]?this[_0x282ba7(0x2ff)](_0x51ee6b):[],_0x14cbd0[_0x282ba7(0x10b)](K['field'](_0xfd4446,_0x44203f[_0x282ba7(0x2c3)]['id']),_0x44203f['field']),_0x14cbd0[_0x282ba7(0x1bc)](['tables',_0xfd4446,_0x282ba7(0x260)],_0x14e05e[_0x282ba7(0x260)],_0x3e5b85),..._0x1c8aa7,..._0x4a2b51]);}[_0x504a7e(0x1ec)](_0xbb9d20,_0xb29af0,_0xb24e24,_0x52d9f6){const _0x32e316=_0x504a7e;let _0x580f64=_0xbb9d20[_0x32e316(0x2c0)][_0xb29af0][_0x32e316(0x1d2)][_0xb24e24],_0x4f9590={..._0x580f64,..._0x52d9f6};Object[_0x32e316(0x1b9)](_0x52d9f6)[_0x32e316(0x17e)](_0x52fe9f=>{_0x52d9f6[_0x52fe9f]===void 0x0&&delete _0x4f9590[_0x52fe9f];});let _0x5dcb85=wt(_0xbb9d20['tables'][_0xb29af0],_0xb24e24,_0x580f64,_0x4f9590);_0x4f9590=_0x5dcb85[_0x32e316(0x2c3)];let _0x5b9cb2=_0x14cbd0[_0x32e316(0x1bc)](K[_0x32e316(0x2c3)](_0xb29af0,_0xb24e24),_0x580f64,_0x4f9590);return _0x4f9590[_0x32e316(0x337)]===_0x27fbfa['Formula']?_0x19c406([...this[_0x32e316(0x2ff)](_0xbb9d20),_0x5b9cb2,...this[_0x32e316(0x1f1)](_0xbb9d20,_0xb29af0,_0xb24e24,_0x4f9590)]):_0x19c406([_0x5b9cb2,..._0x5dcb85['patches']['length']?[this['setRangeValues'](_0xbb9d20,_0xb29af0,_0x5dcb85[_0x32e316(0x10f)])]:[]]);}[_0x504a7e(0x16b)](_0x2cf2a8,_0x37cbb3,_0x1e6cad,_0x3e7c0a){return this['updateField'](_0x2cf2a8,_0x37cbb3,_0x1e6cad,_0x3e7c0a);}[_0x504a7e(0x2ef)](_0x91040a,_0x228a08,_0xc01ac3){const _0x20d867=_0x504a7e;let _0x2929b1=_0x91040a[_0x20d867(0x2c0)][_0x228a08];if(!(_0x2929b1!=null&&_0x2929b1[_0x20d867(0x1d2)][_0xc01ac3])||_0x2929b1[_0x20d867(0x2f7)]===_0xc01ac3||_0xc01ac3===_0x3fdab9)return _0x14cbd0[_0x20d867(0x1bc)](['tables',_0x228a08,_0x20d867(0x260)],_0x2929b1==null?void 0x0:_0x2929b1[_0x20d867(0x260)],_0x2929b1==null?void 0x0:_0x2929b1[_0x20d867(0x260)]);let _0x2fe7e3=_0x2929b1[_0x20d867(0x260)][_0x20d867(0x24b)](_0xc01ac3),_0xdcf574=Object[_0x20d867(0x196)](_0x2929b1['views'])[_0x20d867(0x322)](_0x582ec9=>{const _0x20b07d=_0x20d867;var _0x5a0774,_0x224a96,_0x2bf15f,_0x55d8ee,_0x4e5d1d,_0x14a556,_0x4460a;let _0x2de2c2=[],_0x33cf33=((_0x5a0774=_0x582ec9[_0x20b07d(0x260)])==null?void 0x0:_0x5a0774['indexOf'](_0xc01ac3))??-0x1;_0x33cf33>=0x0&&_0x2de2c2[_0x20b07d(0x2b9)](_0x14cbd0[_0x20b07d(0x312)]([...K['view'](_0x228a08,_0x582ec9['id']),_0x20b07d(0x260),_0x33cf33],_0xc01ac3));let _0x215577=(_0x224a96=_0x582ec9[_0x20b07d(0x321)])==null?void 0x0:_0x224a96[_0xc01ac3];_0x215577!==void 0x0&&_0x2de2c2[_0x20b07d(0x2b9)](_0x14cbd0[_0x20b07d(0x312)]([...K[_0x20b07d(0x2e2)](_0x228a08,_0x582ec9['id']),_0x20b07d(0x321),_0xc01ac3],_0x215577));let _0x2bd046=_0x582ec9[_0x20b07d(0x231)]?{..._0x582ec9[_0x20b07d(0x231)],'conditions':_0x582ec9['filter'][_0x20b07d(0x287)][_0x20b07d(0x231)](_0x1cbddc=>_0x1cbddc[_0x20b07d(0x12c)]!==_0xc01ac3)}:_0x582ec9[_0x20b07d(0x231)];_0x2bd046&&_0x2bd046['conditions'][_0x20b07d(0x328)]!==((_0x2bf15f=_0x582ec9['filter'])==null?void 0x0:_0x2bf15f[_0x20b07d(0x287)]['length'])&&_0x2de2c2[_0x20b07d(0x2b9)](this[_0x20b07d(0x275)]([...K[_0x20b07d(0x2e2)](_0x228a08,_0x582ec9['id']),_0x20b07d(0x231)],_0x582ec9['filter'],_0x2bd046));let _0x1e68e0=(_0x55d8ee=_0x582ec9[_0x20b07d(0x115)])==null?void 0x0:_0x55d8ee[_0x20b07d(0x231)](_0x45f8dc=>_0x45f8dc[_0x20b07d(0x12c)]!==_0xc01ac3);_0x1e68e0&&_0x1e68e0[_0x20b07d(0x328)]!==((_0x4e5d1d=_0x582ec9['sort'])==null?void 0x0:_0x4e5d1d[_0x20b07d(0x328)])&&_0x2de2c2[_0x20b07d(0x2b9)](this[_0x20b07d(0x275)]([...K['view'](_0x228a08,_0x582ec9['id']),_0x20b07d(0x115)],_0x582ec9[_0x20b07d(0x115)],_0x1e68e0));let _0x18f6e6=(_0x14a556=_0x582ec9['group'])==null?void 0x0:_0x14a556['filter'](_0x24c602=>_0x24c602[_0x20b07d(0x12c)]!==_0xc01ac3);_0x18f6e6&&_0x18f6e6[_0x20b07d(0x328)]!==((_0x4460a=_0x582ec9[_0x20b07d(0x163)])==null?void 0x0:_0x4460a[_0x20b07d(0x328)])&&_0x2de2c2[_0x20b07d(0x2b9)](this[_0x20b07d(0x275)]([...K['view'](_0x228a08,_0x582ec9['id']),_0x20b07d(0x163)],_0x582ec9[_0x20b07d(0x163)],_0x18f6e6));let _0x727520=Nt(_0x582ec9[_0x20b07d(0x1df)],_0xc01ac3);return JSON['stringify'](_0x727520)!==JSON[_0x20b07d(0x20d)](_0x582ec9[_0x20b07d(0x1df)])&&_0x2de2c2[_0x20b07d(0x2b9)](_0x14cbd0[_0x20b07d(0x1bc)]([...K[_0x20b07d(0x2e2)](_0x228a08,_0x582ec9['id']),_0x20b07d(0x1df)],_0x582ec9['config'],_0x727520)),_0x2de2c2;}),_0x26e97a=Object[_0x20d867(0x196)](_0x2929b1['records'])['flatMap'](_0x1bb34c=>Object[_0x20d867(0x120)][_0x20d867(0x142)][_0x20d867(0x2f2)](_0x1bb34c[_0x20d867(0x196)],_0xc01ac3)?[_0x14cbd0['removeOp'](K[_0x20d867(0x1ef)](_0x228a08,_0x1bb34c['id'],_0xc01ac3),_0x1bb34c['values'][_0xc01ac3])]:[]);return _0x19c406([_0x14cbd0['removeOp'](K[_0x20d867(0x2c3)](_0x228a08,_0xc01ac3),_0x2929b1[_0x20d867(0x1d2)][_0xc01ac3]),_0x14cbd0[_0x20d867(0x312)](K[_0x20d867(0x260)](_0x228a08,_0x2fe7e3),_0xc01ac3),..._0xdcf574,..._0x26e97a,...this['_deleteAttachmentResources'](_0x2929b1,_0x228a08,_0x32cbb7=>_0x32cbb7[_0x20d867(0x280)](_0xc01ac3+'\x1f'))]);}[_0x504a7e(0x245)](_0x436359,_0x4519c9,_0x3415a,_0x482240){const _0x1bc50e=_0x504a7e;let _0x51ac32=_0x436359[_0x1bc50e(0x2c0)][_0x4519c9][_0x1bc50e(0x260)];if(_0x3415a===_0x3fdab9||_0x482240[_0x1bc50e(0x2eb)]===_0x3fdab9)throw Error('[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');let _0x57daf7=jt(_0x51ac32,_0x3415a,_0x482240);return _0x14cbd0[_0x1bc50e(0x1bc)]([_0x1bc50e(0x2c0),_0x4519c9,'fieldOrder'],_0x51ac32,_0x57daf7);}[_0x504a7e(0x183)](_0x3612b8,_0x27145f,_0x1521ea,_0x4d6bd9=_0x3612b8[_0x504a7e(0x2c0)][_0x27145f][_0x504a7e(0x2db)][_0x504a7e(0x328)]){const _0x1434d7=_0x504a7e;return _0x19c406([_0x14cbd0[_0x1434d7(0x10b)](K['view'](_0x27145f,_0x1521ea['id']),_0x1521ea),_0x14cbd0[_0x1434d7(0x10b)](['tables',_0x27145f,_0x1434d7(0x2db),_0x4d6bd9],_0x1521ea['id'])]);}[_0x504a7e(0x332)](_0x20fb01,_0xd3bbae,_0x11cd27,_0xdb64d7){const _0x2ccc91=_0x504a7e;return _0x14cbd0[_0x2ccc91(0x1bc)]([...K['view'](_0xd3bbae,_0x11cd27),_0x2ccc91(0x121)],_0x20fb01[_0x2ccc91(0x2c0)][_0xd3bbae][_0x2ccc91(0x2b5)][_0x11cd27][_0x2ccc91(0x121)],_0xdb64d7);}['deleteView'](_0x1c7983,_0x2298a7,_0x20e109){const _0x3a984c=_0x504a7e;let _0x4da2da=_0x1c7983['tables'][_0x2298a7],_0x297dd5=_0x4da2da['views'][_0x20e109],_0x55273c=_0x4da2da[_0x3a984c(0x2db)][_0x3a984c(0x24b)](_0x20e109);return _0x19c406([_0x14cbd0[_0x3a984c(0x312)](K[_0x3a984c(0x2e2)](_0x2298a7,_0x20e109),_0x297dd5),_0x14cbd0[_0x3a984c(0x312)]([_0x3a984c(0x2c0),_0x2298a7,_0x3a984c(0x2db),_0x55273c],_0x20e109)]);}['moveView'](_0x2d9d3b,_0x4f4da8,_0x2447e7,_0x3ecccd){const _0x2e2b80=_0x504a7e;let _0x122b5d=_0x2d9d3b[_0x2e2b80(0x2c0)][_0x4f4da8][_0x2e2b80(0x2db)],_0x56b8d1=jt(_0x122b5d,_0x2447e7,{'beforeFieldId':_0x3ecccd[_0x2e2b80(0x2e0)],'afterFieldId':_0x3ecccd[_0x2e2b80(0x1e3)]});return _0x14cbd0[_0x2e2b80(0x1bc)]([_0x2e2b80(0x2c0),_0x4f4da8,_0x2e2b80(0x2db)],_0x122b5d,_0x56b8d1);}[_0x504a7e(0x22e)](_0x53181b,_0x72175a,_0x4457f4,_0x2751db){const _0x2913f1=_0x504a7e;let _0x36c8fa=_0x53181b[_0x2913f1(0x2c0)][_0x72175a][_0x2913f1(0x2b5)][_0x4457f4][_0x2913f1(0x1df)]??{},_0x4dc981={..._0x36c8fa,..._0x2751db};return Object[_0x2913f1(0x1b9)](_0x2751db)[_0x2913f1(0x17e)](_0x1a3b5a=>{_0x2751db[_0x1a3b5a]===void 0x0&&delete _0x4dc981[_0x1a3b5a];}),_0x14cbd0['replaceOp']([...K[_0x2913f1(0x2e2)](_0x72175a,_0x4457f4),'config'],_0x36c8fa,_0x4dc981);}[_0x504a7e(0x236)](_0xefd06c,_0x4af51c,_0x469d73,_0x4b7e7e){const _0x261647=_0x504a7e;return this[_0x261647(0x275)]([...K[_0x261647(0x2e2)](_0x4af51c,_0x469d73),'filter'],_0xefd06c[_0x261647(0x2c0)][_0x4af51c][_0x261647(0x2b5)][_0x469d73]['filter'],_0x4b7e7e);}[_0x504a7e(0x13c)](_0x3ca066,_0x3606f7,_0x5eb088,_0x5784d9){const _0x38f71e=_0x504a7e;return this[_0x38f71e(0x275)]([...K[_0x38f71e(0x2e2)](_0x3606f7,_0x5eb088),_0x38f71e(0x115)],_0x3ca066[_0x38f71e(0x2c0)][_0x3606f7][_0x38f71e(0x2b5)][_0x5eb088][_0x38f71e(0x115)],_0x5784d9);}[_0x504a7e(0x35d)](_0x489e5b,_0x32333e,_0x1dac7b,_0x224f75){const _0x44a349=_0x504a7e;return this[_0x44a349(0x275)]([...K[_0x44a349(0x2e2)](_0x32333e,_0x1dac7b),_0x44a349(0x163)],_0x489e5b['tables'][_0x32333e][_0x44a349(0x2b5)][_0x1dac7b][_0x44a349(0x163)],_0x224f75);}[_0x504a7e(0x215)](_0x5979a4,_0x93610a,_0x2c4cd8,_0x636411,_0x5f0826){const _0x4aebc2=_0x504a7e;return this[_0x4aebc2(0x2c6)](_0x5979a4,_0x93610a,_0x2c4cd8,_0x636411,{'hidden':!_0x5f0826});}['setViewFieldWidth'](_0x25929d,_0x1171ff,_0x228d15,_0x21945f,_0x287a8c){const _0xd5afab=_0x504a7e;return this[_0xd5afab(0x2c6)](_0x25929d,_0x1171ff,_0x228d15,_0x21945f,{'width':_0x287a8c});}['setViewFieldOrder'](_0x27f78f,_0x4a80ff,_0x5e4bbf,_0x4af6b8,_0x5ac6cb){const _0x530e95=_0x504a7e;let _0x630216=_0x27f78f[_0x530e95(0x2c0)][_0x4a80ff]['views'][_0x5e4bbf],_0x3efb69=jt(_0x630216[_0x530e95(0x260)]??_0x27f78f[_0x530e95(0x2c0)][_0x4a80ff][_0x530e95(0x260)],_0x4af6b8,_0x5ac6cb);return this['_replaceOptional']([...K[_0x530e95(0x2e2)](_0x4a80ff,_0x5e4bbf),'fieldOrder'],_0x630216['fieldOrder'],_0x3efb69);}['_setViewFieldSetting'](_0x59bc61,_0x5bbf1c,_0x3d4f4b,_0x4f8697,_0x4ed07e){const _0x3244a9=_0x504a7e;let _0x4d0cf8=_0x59bc61[_0x3244a9(0x2c0)][_0x5bbf1c]['views'][_0x3d4f4b][_0x3244a9(0x321)]??{},_0x42633f={..._0x4d0cf8,[_0x4f8697]:{..._0x4d0cf8[_0x4f8697],..._0x4ed07e}};return this[_0x3244a9(0x275)]([...K[_0x3244a9(0x2e2)](_0x5bbf1c,_0x3d4f4b),_0x3244a9(0x321)],_0x59bc61[_0x3244a9(0x2c0)][_0x5bbf1c][_0x3244a9(0x2b5)][_0x3d4f4b]['fieldSettings'],_0x42633f);}[_0x504a7e(0x28c)](_0x1bfa60,_0x4d3aab,_0x29c369){const _0x19b9a8=_0x504a7e;let _0x59a5f3=_0x1bfa60[_0x19b9a8(0x2c0)][_0x4d3aab],_0x5d2cf0=new Set(_0x29c369[_0x19b9a8(0x19b)](_0x2ebcf1=>_0x2ebcf1['id'])),_0x527296=[...Object[_0x19b9a8(0x196)](_0x59a5f3[_0x19b9a8(0x1dd)])[_0x19b9a8(0x231)](_0x46b4b2=>!_0x5d2cf0['has'](_0x46b4b2['id'])),..._0x29c369]['sort']((_0x3a73c5,_0x3b0c1d)=>String(_0x3a73c5[_0x19b9a8(0x258)]??_0x3a73c5['id'])[_0x19b9a8(0x27a)](String(_0x3b0c1d['orderKey']??_0x3b0c1d['id'])))[_0x19b9a8(0x19b)](_0x2c45c3=>_0x2c45c3['id']),_0x557b68=[...K[_0x19b9a8(0x30a)](_0x4d3aab),_0x19b9a8(0x1ca)];return _0x59a5f3['recordOrder']?_0x14cbd0['replaceOp'](_0x557b68,_0x59a5f3[_0x19b9a8(0x1ca)],_0x527296):_0x14cbd0[_0x19b9a8(0x10b)](_0x557b68,_0x527296);}[_0x504a7e(0x2ff)](_0x278c4d,_0x2e307b=new Set()){const _0x10b1d2=_0x504a7e;let _0x1edc73=_0x18fea7(_0x278c4d);return Object[_0x10b1d2(0x196)](_0x278c4d[_0x10b1d2(0x2c0)])[_0x10b1d2(0x231)](_0x160ab0=>!_0x2e307b[_0x10b1d2(0x34c)](_0x160ab0['id']))[_0x10b1d2(0x115)]((_0x5547c6,_0x1e459a)=>_0x5547c6['id'][_0x10b1d2(0x27a)](_0x1e459a['id']))[_0x10b1d2(0x322)](_0x1caec5=>{const _0x12df0a=_0x10b1d2;let _0x47e038=_0x1edc73[_0x12df0a(0x264)](_0x1caec5['id']);return!_0x47e038||_0x1caec5[_0x12df0a(0x2e6)]===_0x47e038?[]:[this['_replaceOptional']([...K['table'](_0x1caec5['id']),_0x12df0a(0x2e6)],_0x1caec5[_0x12df0a(0x2e6)],_0x47e038)];});}[_0x504a7e(0x1f1)](_0x557791,_0x167ae2,_0x55dfc3,_0x504be0){const _0x3417fa=_0x504a7e;var _0x1033df,_0x30cdaf;let _0x1b85f9=k(_0x557791['tables'][_0x167ae2]),_0x213ae5=String(((_0x1033df=_0x504be0[_0x3417fa(0x1df)])==null?void 0x0:_0x1033df[_0x3417fa(0x247)])??'')['trim'](),_0x14eddf=(_0x30cdaf=_0x1b85f9[_0x3417fa(0x29d)])==null?void 0x0:_0x30cdaf[_0x55dfc3];if(_0x14eddf==null)return[];let _0x26428e=_0x1b85f9[_0x3417fa(0x1ca)]??Object['keys'](_0x1b85f9['records']),_0x4f73e7=_0x26428e[_0x3417fa(0x19b)](_0x676f7e=>{const _0x9c8f8d=_0x3417fa;var _0x49db6d;return(_0x49db6d=_0x1b85f9[_0x9c8f8d(0x13d)])==null?void 0x0:_0x49db6d[_0x676f7e];})['find'](_0x1272be=>_0x1272be!=null);return _0x26428e[_0x3417fa(0x322)](_0x26c5a2=>{const _0x46b392=_0x3417fa;var _0x5cddbd,_0x3ba010;let _0x27cdf2=(_0x5cddbd=_0x1b85f9[_0x46b392(0x13d)])==null?void 0x0:_0x5cddbd[_0x26c5a2];if(_0x27cdf2==null)return[];let _0x473011=(_0x3ba010=_0x1b85f9[_0x46b392(0x36c)])==null||(_0x3ba010=_0x3ba010[_0x27cdf2])==null?void 0x0:_0x3ba010[_0x14eddf],_0x3162e7=_0x213ae5?_0x27cdf2===_0x4f73e7?{'f':_0x213ae5,'si':_0x55dfc3}:{'si':_0x55dfc3}:{'v':null,'t':null};return[this[_0x46b392(0x275)](K[_0x46b392(0x36c)](_0x167ae2,_0x27cdf2,_0x14eddf),_0x473011,_0x3162e7)];});}[_0x504a7e(0x199)](_0x842d35,_0xfd6d5f,_0x3864be){const _0x5b933c=_0x504a7e;var _0x14716e;let _0x4739fc=new Map(Object[_0x5b933c(0x2a2)](((_0x14716e=_0x842d35[_0x5b933c(0x18a)])==null?void 0x0:_0x14716e[_0x5b933c(0x219)])??{})),_0x47b001=new Map(),_0x609f0d=new Set(),_0x4c3dc9=_0x3864be[_0x5b933c(0x19b)](({recordId:_0x161cfa,fieldId:_0x5be0f2,attachments:_0x3cc68c})=>{const _0x20efca=_0x5b933c;var _0x17ec4f;let _0x45030b=_0xe70f3f(_0x5be0f2,_0x161cfa),_0x5a0063=_0x3cc68c[_0x20efca(0x19b)]((_0x579308,_0x24c8d2)=>String(_0x579308['id']??_0x45030b+'\x1f'+_0x24c8d2));return _0x609f0d['add'](_0x45030b),_0x4739fc[_0x20efca(0x26b)](_0x45030b,_0x5a0063),_0x3cc68c[_0x20efca(0x17e)]((_0x447525,_0x1e8bd2)=>{const _0x3d06fd=_0x20efca;let _0x4430bc=_0x5a0063[_0x1e8bd2];_0x47b001[_0x3d06fd(0x26b)](_0x4430bc,{..._0x447525,'id':_0x4430bc});}),this[_0x20efca(0x275)](K['attachmentSet'](_0xfd6d5f,_0x45030b),(_0x17ec4f=_0x842d35[_0x20efca(0x18a)])==null||(_0x17ec4f=_0x17ec4f[_0x20efca(0x219)])==null?void 0x0:_0x17ec4f[_0x45030b],_0x5a0063);}),_0x34ebb7=Array['from'](_0x47b001)['map'](([_0x4e66b2,_0x5a144f])=>{const _0x15c706=_0x5b933c;var _0x30c8eb;return this[_0x15c706(0x275)](K[_0x15c706(0x316)](_0xfd6d5f,_0x4e66b2),(_0x30c8eb=_0x842d35['resources'])==null||(_0x30c8eb=_0x30c8eb[_0x15c706(0x302)])==null?void 0x0:_0x30c8eb[_0x4e66b2],_0x5a144f);}),_0x2fc80a=new Set(Array[_0x5b933c(0x146)](_0x4739fc[_0x5b933c(0x196)]())[_0x5b933c(0x353)]()),_0xb00a44=new Set(Array[_0x5b933c(0x146)](_0x609f0d)[_0x5b933c(0x322)](_0x1fb99d=>{const _0x2e35a9=_0x5b933c;var _0x50df3a;return((_0x50df3a=_0x842d35[_0x2e35a9(0x18a)])==null||(_0x50df3a=_0x50df3a[_0x2e35a9(0x219)])==null?void 0x0:_0x50df3a[_0x1fb99d])??[];})),_0x45d749=Array[_0x5b933c(0x146)](_0xb00a44)[_0x5b933c(0x322)](_0x1f2640=>{const _0x2425de=_0x5b933c;var _0xca545f;let _0x234824=(_0xca545f=_0x842d35[_0x2425de(0x18a)])==null||(_0xca545f=_0xca545f[_0x2425de(0x302)])==null?void 0x0:_0xca545f[_0x1f2640];return _0x234824!==void 0x0&&!_0x2fc80a[_0x2425de(0x34c)](_0x1f2640)?[_0x14cbd0['removeOp'](K[_0x2425de(0x316)](_0xfd6d5f,_0x1f2640),_0x234824)]:[];});return[..._0x4c3dc9,..._0x34ebb7,..._0x45d749];}[_0x504a7e(0x1f7)](_0x4043d5,_0x3553f7,_0x2dafba){const _0x5ed861=_0x504a7e;var _0x2e21ac;let _0xc35c8f=((_0x2e21ac=_0x4043d5['resources'])==null?void 0x0:_0x2e21ac[_0x5ed861(0x219)])??{},_0x1c84bd=Object['entries'](_0xc35c8f)[_0x5ed861(0x231)](([_0x109eb2])=>_0x2dafba(_0x109eb2));if(!_0x1c84bd[_0x5ed861(0x328)])return[];let _0x75b246=new Set(Object[_0x5ed861(0x2a2)](_0xc35c8f)['filter'](([_0x58ca27])=>!_0x2dafba(_0x58ca27))['flatMap'](([,_0x370b92])=>_0x370b92)),_0x10396c=new Set(_0x1c84bd[_0x5ed861(0x322)](([,_0x15e445])=>_0x15e445));return[..._0x1c84bd['map'](([_0xa54a92,_0x468876])=>_0x14cbd0[_0x5ed861(0x312)](K[_0x5ed861(0x33b)](_0x3553f7,_0xa54a92),_0x468876)),...Array[_0x5ed861(0x146)](_0x10396c)[_0x5ed861(0x322)](_0x6a4422=>{const _0x3c8f8c=_0x5ed861;var _0xf9bbcd;let _0x22ed05=(_0xf9bbcd=_0x4043d5[_0x3c8f8c(0x18a)])==null||(_0xf9bbcd=_0xf9bbcd[_0x3c8f8c(0x302)])==null?void 0x0:_0xf9bbcd[_0x6a4422];return _0x22ed05!==void 0x0&&!_0x75b246[_0x3c8f8c(0x34c)](_0x6a4422)?[_0x14cbd0[_0x3c8f8c(0x312)](K[_0x3c8f8c(0x316)](_0x3553f7,_0x6a4422),_0x22ed05)]:[];})];}[_0x504a7e(0x275)](_0x91bb5d,_0x5b1307,_0x194489){const _0x3cd075=_0x504a7e;return _0x5b1307===void 0x0?_0x14cbd0[_0x3cd075(0x10b)](_0x91bb5d,_0x194489):_0x14cbd0[_0x3cd075(0x1bc)](_0x91bb5d,_0x5b1307,_0x194489);}};function wt(_0x569271,_0x5e95ce,_0x4283ab,_0x16243a){const _0x53f29a=_0x504a7e;var _0xb7cc6e;let _0x393822=_0x16243a[_0x53f29a(0x337)];if(_0x4283ab[_0x53f29a(0x337)]!==_0x393822||_0x393822!==_0x27fbfa['SingleSelect']&&_0x393822!==_0x27fbfa[_0x53f29a(0x14f)]||Tt(_0x16243a[_0x53f29a(0x1df)][_0x53f29a(0x1ae)]))return{'field':_0x16243a,'patches':[]};let _0x56d563=Et(_0x4283ab),_0x424275=Et(_0x16243a);if(![..._0x56d563][_0x53f29a(0x16f)](_0x50d5e8=>!_0x424275['has'](_0x50d5e8)))return{'field':_0x16243a,'patches':[]};let _0x5d1705=Dt(_0x16243a[_0x53f29a(0x166)],_0x424275,_0x393822),_0x3a3c6c=Ot(_0x5d1705,_0x16243a[_0x53f29a(0x166)])?_0x16243a:{..._0x16243a,'defaultValue':_0x5d1705},_0x1b979f=k(_0x569271),_0x2485b4=(_0xb7cc6e=_0x1b979f[_0x53f29a(0x29d)])==null?void 0x0:_0xb7cc6e[_0x5e95ce];return _0x2485b4==null?{'field':_0x3a3c6c,'patches':[]}:{'field':_0x3a3c6c,'patches':(_0x1b979f['recordOrder']??[])[_0x53f29a(0x322)](_0x16b905=>{const _0x51740e=_0x53f29a;var _0x169cb6,_0x21807b;let _0x34280e=(_0x169cb6=_0x1b979f[_0x51740e(0x13d)])==null?void 0x0:_0x169cb6[_0x16b905],_0x3418d5=(_0x21807b=_0x1b979f[_0x51740e(0x1dd)][_0x16b905])==null?void 0x0:_0x21807b['values'][_0x5e95ce],_0x2f92f6=Dt(_0x3418d5,_0x424275,_0x393822);return _0x34280e==null||Ot(_0x2f92f6,_0x3418d5)?[]:[{'row':_0x34280e,'col':_0x2485b4,'value':_0x2f92f6??null}];})};}function Tt(_0x379da9){const _0x43fddf=_0x504a7e;return typeof _0x379da9==_0x43fddf(0x349)&&!!_0x379da9&&_0x43fddf(0x337)in _0x379da9&&_0x379da9[_0x43fddf(0x337)]===_0x43fddf(0x2c3);}function Et(_0x4c44a2){const _0x4e9937=_0x504a7e;var _0x86d763;let _0x4bc900=Array[_0x4e9937(0x216)]((_0x86d763=_0x4c44a2['config'])==null?void 0x0:_0x86d763[_0x4e9937(0x2ac)])?_0x4c44a2[_0x4e9937(0x1df)][_0x4e9937(0x2ac)]:[];return new Set(_0x4bc900[_0x4e9937(0x322)](_0x414a57=>{if(!_0x414a57||typeof _0x414a57!='object'||!('id'in _0x414a57))return[];let _0xaf940a=String(_0x414a57['id']);return _0xaf940a?[_0xaf940a]:[];}));}function Dt(_0x509da5,_0x44ef11,_0x21f7f0){const _0x15da69=_0x504a7e;if(_0x509da5==null||_0x509da5==='')return _0x509da5;if(_0x21f7f0===_0x27fbfa[_0x15da69(0x178)])return _0x44ef11[_0x15da69(0x34c)](String(_0x509da5))?_0x509da5:null;let _0x391e72=Array[_0x15da69(0x216)](_0x509da5)?_0x509da5[_0x15da69(0x19b)](String):String(_0x509da5)[_0x15da69(0x1a8)](',')[_0x15da69(0x19b)](_0x43180e=>_0x43180e[_0x15da69(0x14b)]())['filter'](Boolean),_0x14384a=_0x391e72[_0x15da69(0x231)](_0x52a90a=>_0x44ef11[_0x15da69(0x34c)](_0x52a90a));return _0x14384a[_0x15da69(0x328)]===_0x391e72[_0x15da69(0x328)]?_0x509da5:Array['isArray'](_0x509da5)?_0x14384a:String(_0x509da5)[_0x15da69(0x1bb)](',')?_0x14384a[_0x15da69(0x300)](','):_0x14384a[0x0]??[];}function Ot(_0x5d7438,_0x36f723){const _0x2248ff=_0x504a7e;return JSON[_0x2248ff(0x20d)](_0x5d7438)===JSON['stringify'](_0x36f723);}function kt(_0x38a9e6,_0x401fce,_0x18b7cb){const _0x1b71d4=_0x504a7e;var _0x2382ee,_0x1d9d3d,_0x4a755b,_0x375814;let _0x494a21=(_0x2382ee=_0x38a9e6[_0x1b71d4(0x13d)])==null?void 0x0:_0x2382ee[_0x401fce],_0x1b16dd=(_0x1d9d3d=_0x38a9e6[_0x1b71d4(0x29d)])==null?void 0x0:_0x1d9d3d[_0x18b7cb];return _0x494a21!=null&&_0x1b16dd!=null&&((_0x4a755b=_0x38a9e6['rowId'])==null?void 0x0:_0x4a755b[_0x494a21])===_0x401fce&&((_0x375814=_0x38a9e6[_0x1b71d4(0x1d4)])==null?void 0x0:_0x375814[_0x1b16dd])===_0x18b7cb&&_0x38a9e6[_0x1b71d4(0x36c)]!=null;}function At(_0x350c84,_0xaeb956,_0x2554a3){const _0x2a00de=_0x504a7e;var _0x2a2c31,_0x21a2be;return((_0x2a2c31=_0x350c84[_0x2a00de(0x1b5)])==null?void 0x0:_0x2a2c31[_0xaeb956])!=null&&((_0x21a2be=_0x350c84[_0x2a00de(0x1d4)])==null?void 0x0:_0x21a2be[_0x2554a3])!=null&&_0x350c84[_0x2a00de(0x36c)]!=null;}function jt(_0x3407d1,_0x297886,_0x29e152){const _0x4fa77c=_0x504a7e;let _0x5add7a=_0x3407d1[_0x4fa77c(0x231)](_0x1da3ae=>_0x1da3ae!==_0x297886),_0x1dd865=_0x29e152[_0x4fa77c(0x2eb)]?_0x5add7a['indexOf'](_0x29e152['beforeFieldId']):_0x29e152[_0x4fa77c(0x14d)]?_0x5add7a[_0x4fa77c(0x24b)](_0x29e152['afterFieldId'])+0x1:_0x5add7a[_0x4fa77c(0x328)];return _0x5add7a[_0x4fa77c(0x192)](_0x1dd865<0x0?_0x5add7a[_0x4fa77c(0x328)]:_0x1dd865,0x0,_0x297886),_0x5add7a;}function Mt(_0x36fb7d,_0x3e7892,_0x53146a){const _0x27ac00=_0x504a7e;let _0x55abdb=_0x36fb7d[_0x27ac00(0x231)](_0x5901d1=>_0x5901d1!==_0x3e7892);return _0x55abdb[_0x27ac00(0x192)](Pt(_0x53146a,_0x55abdb[_0x27ac00(0x328)]),0x0,_0x3e7892),_0x55abdb;}function Nt(_0x2e3ab5,_0xe732af,_0x4c5b11){const _0x1b0fdf=_0x504a7e;if(Array[_0x1b0fdf(0x216)](_0x2e3ab5))return _0x4c5b11===_0x1b0fdf(0x110)?_0x2e3ab5[_0x1b0fdf(0x231)](_0x1f29c2=>_0x1f29c2!==_0xe732af):_0x2e3ab5[_0x1b0fdf(0x322)](_0x2d5dca=>{const _0x3acb40=_0x1b0fdf;if(_0x2d5dca&&typeof _0x2d5dca==_0x3acb40(0x349)&&!Array[_0x3acb40(0x216)](_0x2d5dca)&&_0x2d5dca['fieldId']===_0xe732af)return[];let _0x3f35ad=Nt(_0x2d5dca,_0xe732af);return _0x3f35ad===void 0x0?[]:[_0x3f35ad];});if(!_0x2e3ab5||typeof _0x2e3ab5!=_0x1b0fdf(0x349))return _0x4c5b11!=null&&_0x4c5b11[_0x1b0fdf(0x34e)]('FieldId')&&_0x2e3ab5===_0xe732af?void 0x0:_0x2e3ab5;let _0x599ba3=_0x2e3ab5;if(_0x599ba3[_0x1b0fdf(0x12c)]!==_0xe732af)return Object['fromEntries'](Object['entries'](_0x599ba3)[_0x1b0fdf(0x322)](([_0x59787c,_0xdec54])=>{const _0xe45d07=_0x1b0fdf;if(_0x59787c===_0xe732af&&_0x4c5b11===_0xe45d07(0x321))return[];let _0x3de7c0=Nt(_0xdec54,_0xe732af,_0x59787c);return _0x3de7c0===void 0x0?[]:[[_0x59787c,_0x3de7c0]];}));}function Pt(_0x358b49,_0x3ef5ee){return Math['max'](0x0,Math['min'](_0x358b49,_0x3ef5ee));}var Ft=class{constructor(_0x4b0b1d){const _0x2b5204=_0x504a7e;this['unitId']=_0x4b0b1d,_0x454659(this,_0x2b5204(0x337),_0x38f610[_0x2b5204(0x2d0)]),_0x454659(this,'subType',_0x52f72d[_0x2b5204(0x324)]),_0x454659(this,_0x2b5204(0x335),_0x23807d[_0x2b5204(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,_0x2b5204(0x207),!0x0),this['id']=this['type']+'.'+this[_0x2b5204(0x28d)]+'_'+_0x4b0b1d;}},It=class{constructor(_0x4a342c){const _0x5a908f=_0x504a7e;this[_0x5a908f(0x1fb)]=_0x4a342c,_0x454659(this,_0x5a908f(0x337),_0x38f610[_0x5a908f(0x2d0)]),_0x454659(this,'subType',_0x52f72d[_0x5a908f(0x295)]),_0x454659(this,'status',_0x23807d[_0x5a908f(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,'value',!0x0),this['id']=this[_0x5a908f(0x337)]+'.'+this[_0x5a908f(0x28d)]+'_'+_0x4a342c;}},Lt=class{constructor(_0x5b7185){const _0x1a022b=_0x504a7e;this['unitId']=_0x5b7185,_0x454659(this,_0x1a022b(0x337),_0x38f610[_0x1a022b(0x2d0)]),_0x454659(this,'subType',_0x52f72d['Edit']),_0x454659(this,_0x1a022b(0x335),_0x23807d[_0x1a022b(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,_0x1a022b(0x207),!0x0),this['id']=this['type']+'.'+this[_0x1a022b(0x28d)]+'_'+_0x5b7185;}},Rt=class{constructor(_0x503b13){const _0xa0ef69=_0x504a7e;this['unitId']=_0x503b13,_0x454659(this,_0xa0ef69(0x337),_0x38f610[_0xa0ef69(0x2d0)]),_0x454659(this,_0xa0ef69(0x28d),_0x52f72d[_0xa0ef69(0x31f)]),_0x454659(this,_0xa0ef69(0x335),_0x23807d['INIT']),_0x454659(this,'id',void 0x0),_0x454659(this,_0xa0ef69(0x207),!0x0),this['id']=this[_0xa0ef69(0x337)]+'.'+this['subType']+'_'+_0x503b13;}},zt=class{constructor(_0x224e98,_0x3c8302){const _0x200a2f=_0x504a7e;this[_0x200a2f(0x1fb)]=_0x224e98,this[_0x200a2f(0x16d)]=_0x3c8302,_0x454659(this,_0x200a2f(0x337),_0x38f610['BaseDashboard']),_0x454659(this,_0x200a2f(0x28d),_0x52f72d[_0x200a2f(0x1c0)]),_0x454659(this,_0x200a2f(0x335),_0x23807d[_0x200a2f(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,_0x200a2f(0x207),!0x0),this['id']=this[_0x200a2f(0x337)]+'.'+this['subType']+'_'+_0x224e98+'_'+_0x3c8302;}},Bt=class{constructor(_0x16943e,_0x4d9149){const _0x31a24a=_0x504a7e;this[_0x31a24a(0x1fb)]=_0x16943e,this[_0x31a24a(0x16d)]=_0x4d9149,_0x454659(this,_0x31a24a(0x337),_0x38f610[_0x31a24a(0x268)]),_0x454659(this,'subType',_0x52f72d[_0x31a24a(0x1c0)]),_0x454659(this,_0x31a24a(0x335),_0x23807d[_0x31a24a(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,'value',!0x0),this['id']=this[_0x31a24a(0x337)]+'.'+this['subType']+'_'+_0x16943e+'_'+_0x4d9149;}},Vt=class{constructor(_0x41bb34,_0x20f37d){const _0x212b69=_0x504a7e;this[_0x212b69(0x1fb)]=_0x41bb34,this[_0x212b69(0x16d)]=_0x20f37d,_0x454659(this,_0x212b69(0x337),_0x38f610['BaseRecord']),_0x454659(this,_0x212b69(0x28d),_0x52f72d[_0x212b69(0x1c0)]),_0x454659(this,_0x212b69(0x335),_0x23807d[_0x212b69(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,_0x212b69(0x207),!0x0),this['id']=this[_0x212b69(0x337)]+'.'+this[_0x212b69(0x28d)]+'_'+_0x41bb34+'_'+_0x20f37d;}},Ht=class{constructor(_0x51db85,_0x5a6361){const _0x46ade6=_0x504a7e;this[_0x46ade6(0x1fb)]=_0x51db85,this[_0x46ade6(0x16d)]=_0x5a6361,_0x454659(this,_0x46ade6(0x337),_0x38f610[_0x46ade6(0x24a)]),_0x454659(this,_0x46ade6(0x28d),_0x52f72d[_0x46ade6(0x1c0)]),_0x454659(this,_0x46ade6(0x335),_0x23807d['INIT']),_0x454659(this,'id',void 0x0),_0x454659(this,'value',!0x0),this['id']=this[_0x46ade6(0x337)]+'.'+this[_0x46ade6(0x28d)]+'_'+_0x51db85+'_'+_0x5a6361;}},Ut=class{constructor(_0x5d7448,_0x21556a){const _0xf3209c=_0x504a7e;this[_0xf3209c(0x1fb)]=_0x5d7448,this[_0xf3209c(0x16d)]=_0x21556a,_0x454659(this,_0xf3209c(0x337),_0x38f610[_0xf3209c(0x367)]),_0x454659(this,'subType',_0x52f72d[_0xf3209c(0x1c0)]),_0x454659(this,'status',_0x23807d[_0xf3209c(0x23a)]),_0x454659(this,'id',void 0x0),_0x454659(this,_0xf3209c(0x207),!0x0),this['id']=this[_0xf3209c(0x337)]+'.'+this[_0xf3209c(0x28d)]+'_'+_0x5d7448+'_'+_0x21556a;}};const Wt=[_0x52f72d[_0x504a7e(0x1c0)],_0x52f72d[_0x504a7e(0x295)],_0x52f72d['Export'],_0x52f72d[_0x504a7e(0x324)]],Gt=new Set([_0x38f610[_0x504a7e(0x2d0)],_0x38f610[_0x504a7e(0x24a)],_0x38f610[_0x504a7e(0x268)],_0x38f610[_0x504a7e(0x1de)],_0x38f610[_0x504a7e(0x367)],_0x38f610[_0x504a7e(0x2d3)]]),Kt='table/',qt='field/',Jt=_0x504a7e(0x31c),Yt=_0x504a7e(0x2f5),Xt=_0x504a7e(0x26d);function J(_0x1f2d1c){return''+Kt+encodeURIComponent(_0x1f2d1c);}function Y(_0x316191,_0x1201fb){return''+qt+encodeURIComponent(_0x316191)+'/'+encodeURIComponent(_0x1201fb);}function X(_0x16f8d8,_0x4774c4){return''+Jt+encodeURIComponent(_0x16f8d8)+'/'+encodeURIComponent(_0x4774c4);}function Zt(_0x59b949,_0x458e60){return''+Yt+encodeURIComponent(_0x59b949)+'/'+encodeURIComponent(_0x458e60);}function Qt(_0xc5f1aa){return''+Xt+encodeURIComponent(_0xc5f1aa);}function $t(_0x82d248,_0x59468e,_0x546bea){const _0x59e5d7=_0x504a7e;if(_0x59468e===_0x82d248)switch(_0x546bea){case _0x52f72d[_0x59e5d7(0x1c0)]:return new Lt(_0x82d248);case _0x52f72d[_0x59e5d7(0x295)]:return new It(_0x82d248);case _0x52f72d[_0x59e5d7(0x31f)]:return new Rt(_0x82d248);case _0x52f72d[_0x59e5d7(0x324)]:return new Ft(_0x82d248);default:throw Error(_0x59e5d7(0x118)+_0x546bea);}if(_0x546bea!==_0x52f72d[_0x59e5d7(0x1c0)])throw Error(_0x59e5d7(0x2e8)+_0x59468e);if(_0x59468e[_0x59e5d7(0x280)](Kt))return new Ht(_0x82d248,_0x59468e);if(_0x59468e[_0x59e5d7(0x280)](qt))return new Bt(_0x82d248,_0x59468e);if(_0x59468e['startsWith'](Jt))return new Vt(_0x82d248,_0x59468e);if(_0x59468e[_0x59e5d7(0x280)](Yt))return new Ut(_0x82d248,_0x59468e);if(_0x59468e['startsWith'](Xt))return new zt(_0x82d248,_0x59468e);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x59468e);}function en(_0x543560,_0x4c931c,_0x30c30e,_0x506b03){const _0xcc7c72=_0x504a7e;var _0x3eb5aa;return((_0x3eb5aa=_0x543560[_0xcc7c72(0x202)]($t(_0x4c931c,_0x30c30e,_0x506b03)['id']))==null?void 0x0:_0x3eb5aa[_0xcc7c72(0x207)])??!0x0;}function tn(_0x32b304,_0x3923fc,_0x228c77,_0x3f3995,_0x4ea091){const _0x31ca75=_0x504a7e;let _0x2a80a4=$t(_0x3923fc,_0x228c77,_0x3f3995);_0x32b304[_0x31ca75(0x202)](_0x2a80a4['id'])||_0x32b304['addPermissionPoint'](_0x2a80a4),_0x32b304[_0x31ca75(0x21c)](_0x2a80a4['id'],_0x4ea091);}function nn(_0x36e0d9,_0x2d1220,_0x589dba,_0x2be308){const _0x204dba=_0x504a7e;_0x36e0d9[_0x204dba(0x10d)]($t(_0x2d1220,_0x589dba,_0x2be308)['id']);}function rn(_0x471072,_0x538bce){const _0x265671=_0x504a7e;_0x471072[_0x265671(0x313)]()[_0x265671(0x17e)]((_0x14e48d,_0x4bab8a)=>{const _0x554032=_0x265671;_0x14e48d[_0x554032(0x33c)](_0x27adb4=>{const _0x4aaf62=_0x554032;Gt[_0x4aaf62(0x34c)](_0x27adb4[_0x4aaf62(0x337)])&&_0x4aaf62(0x1fb)in _0x27adb4&&_0x27adb4[_0x4aaf62(0x1fb)]===_0x538bce&&_0x471072[_0x4aaf62(0x10d)](_0x4bab8a);})[_0x554032(0x2b2)]();});}function an(_0x1612d9,_0x211fe6,_0x356bb7){const _0x10cae8=_0x504a7e;return en(_0x1612d9,_0x211fe6,_0x211fe6,_0x52f72d[_0x10cae8(0x1c0)])&&Array[_0x10cae8(0x146)](_0x356bb7)['every'](_0x587b0c=>en(_0x1612d9,_0x211fe6,_0x587b0c,_0x52f72d[_0x10cae8(0x1c0)]));}const on=_0x2540dc(_0x504a7e(0x211));let sn=class extends _0x4bee66{constructor(_0x4796d3,_0x18fba9){const _0x75a2fe=_0x504a7e;super(),this[_0x75a2fe(0x24c)]=_0x4796d3,this[_0x75a2fe(0x1cf)]=_0x18fba9,_0x454659(this,'_basePermissions',new Map()),_0x454659(this,'_tablePermissions',new Map()),_0x454659(this,_0x75a2fe(0x2c2),new Map()),_0x454659(this,_0x75a2fe(0x147),new Map()),_0x454659(this,_0x75a2fe(0x10e),new Map()),_0x454659(this,_0x75a2fe(0x1d7),new Map()),this['disposeWithMe'](this['_instanceService'][_0x75a2fe(0x24e)](_0x17555f[_0x75a2fe(0x32a)])['subscribe'](_0x1d70be=>this[_0x75a2fe(0x1af)](_0x1d70be[_0x75a2fe(0x210)]())));}[_0x504a7e(0x308)](_0x40bfac){const _0x3ec2fc=_0x504a7e;var _0x48cb12;return this[_0x3ec2fc(0x28b)](_0x40bfac,[])&&(((_0x48cb12=this['_basePermissions']['get'](_0x40bfac))==null?void 0x0:_0x48cb12[_0x3ec2fc(0x20e)])??!0x0);}[_0x504a7e(0x29b)](_0x3604d2){const _0x296ce8=_0x504a7e;return this[_0x296ce8(0x2be)](_0x3604d2);}[_0x504a7e(0x272)](_0x308cef){const _0x2f4976=_0x504a7e;var _0x14b203;return this[_0x2f4976(0x2be)](_0x308cef)&&(((_0x14b203=this[_0x2f4976(0x238)][_0x2f4976(0x264)](_0x308cef))==null?void 0x0:_0x14b203[_0x2f4976(0x149)])??!0x0);}['canCreateField'](_0x1f6761){const _0x1c32be=_0x504a7e;var _0xb4a600;return this['_canEditTable'](_0x1f6761)&&(((_0xb4a600=this['_tablePermissions'][_0x1c32be(0x264)](_0x1f6761))==null?void 0x0:_0xb4a600['createField'])??!0x0);}[_0x504a7e(0x14e)](_0x53a23e,_0x26589e){const _0x2f68da=_0x504a7e;var _0x532be5;return this['_canEditTable'](_0x53a23e)&&this[_0x2f68da(0x28b)](_0x53a23e,[Y(_0x53a23e,_0x26589e)])&&(((_0x532be5=this[_0x2f68da(0x2c2)][_0x2f68da(0x264)](ln(_0x53a23e,_0x26589e)))==null?void 0x0:_0x532be5['edit'])??!0x0);}[_0x504a7e(0x205)](_0x22f8c2,_0x2bf156){const _0x254e30=_0x504a7e;var _0x36b75b;return this[_0x254e30(0x14e)](_0x22f8c2,_0x2bf156)&&(((_0x36b75b=this[_0x254e30(0x2c2)][_0x254e30(0x264)](ln(_0x22f8c2,_0x2bf156)))==null?void 0x0:_0x36b75b[_0x254e30(0x149)])??!0x0);}[_0x504a7e(0x242)](_0x37e08c){const _0x22c02a=_0x504a7e;var _0x51536b;return this[_0x22c02a(0x2be)](_0x37e08c)&&(((_0x51536b=this['_tablePermissions']['get'](_0x37e08c))==null?void 0x0:_0x51536b[_0x22c02a(0x2a7)])??!0x0);}[_0x504a7e(0x217)](_0x56e439,_0x35c2f5){const _0x2c9a0f=_0x504a7e;var _0x447b46;let _0x423d24=this[_0x2c9a0f(0x147)][_0x2c9a0f(0x264)](un(_0x56e439,_0x35c2f5));return this[_0x2c9a0f(0x28b)](_0x56e439,[J(_0x56e439),X(_0x56e439,_0x35c2f5)])&&(((_0x447b46=this[_0x2c9a0f(0x238)]['get'](_0x56e439))==null?void 0x0:_0x447b46['edit'])??!0x0)&&((_0x423d24==null?void 0x0:_0x423d24['edit'])??!0x0)&&((_0x423d24==null?void 0x0:_0x423d24[_0x2c9a0f(0x193)])??!0x0);}[_0x504a7e(0x11c)](_0x1de2c6,_0xf853f3){const _0x16d685=_0x504a7e;var _0xaa9b70,_0x4131f9,_0x188220;return this[_0x16d685(0x28b)](_0x1de2c6,[J(_0x1de2c6),X(_0x1de2c6,_0xf853f3)])&&(((_0xaa9b70=this['_tablePermissions'][_0x16d685(0x264)](_0x1de2c6))==null?void 0x0:_0xaa9b70[_0x16d685(0x331)])??!0x0)&&(((_0x4131f9=this[_0x16d685(0x147)]['get'](un(_0x1de2c6,_0xf853f3)))==null?void 0x0:_0x4131f9[_0x16d685(0x331)])??!0x0)&&(((_0x188220=this['_recordPermissions'][_0x16d685(0x264)](un(_0x1de2c6,_0xf853f3)))==null?void 0x0:_0x188220[_0x16d685(0x149)])??!0x0);}['canEditCell'](_0x83da64,_0x821eb4,_0x1f4957){const _0x470884=_0x504a7e;var _0x47557b,_0x5164fc,_0x515696;let _0x5e82f1=this[_0x470884(0x2c2)][_0x470884(0x264)](ln(_0x83da64,_0x1f4957));return this[_0x470884(0x28b)](_0x83da64,[J(_0x83da64),Y(_0x83da64,_0x1f4957),X(_0x83da64,_0x821eb4)])&&(((_0x47557b=this[_0x470884(0x238)][_0x470884(0x264)](_0x83da64))==null?void 0x0:_0x47557b[_0x470884(0x331)])??!0x0)&&(((_0x5164fc=this['_recordPermissions'][_0x470884(0x264)](un(_0x83da64,_0x821eb4)))==null?void 0x0:_0x5164fc[_0x470884(0x331)])??!0x0)&&(((_0x515696=this['_recordPermissions'][_0x470884(0x264)](un(_0x83da64,_0x821eb4)))==null?void 0x0:_0x515696[_0x470884(0x193)])??!0x0)&&((_0x5e82f1==null?void 0x0:_0x5e82f1[_0x470884(0x331)])??!0x0)&&((_0x5e82f1==null?void 0x0:_0x5e82f1[_0x470884(0x193)])??!0x0);}['canManageView'](_0x1d32ba,_0x45e7b6){const _0xc63ab5=_0x504a7e;var _0x40069d,_0xfc392,_0x50b8d0;return this[_0xc63ab5(0x28b)](_0x1d32ba,[J(_0x1d32ba),Zt(_0x1d32ba,_0x45e7b6)])&&(((_0x40069d=this[_0xc63ab5(0x238)][_0xc63ab5(0x264)](_0x1d32ba))==null?void 0x0:_0x40069d['edit'])??!0x0)&&(((_0xfc392=this[_0xc63ab5(0x10e)][_0xc63ab5(0x264)](dn(_0x1d32ba,_0x45e7b6)))==null?void 0x0:_0xfc392['edit'])??!0x0)&&(((_0x50b8d0=this[_0xc63ab5(0x238)][_0xc63ab5(0x264)](_0x1d32ba))==null?void 0x0:_0x50b8d0['manageView'])??!0x0);}[_0x504a7e(0x124)](_0x38ef8f,_0x32bb7b){const _0x1d1a32=_0x504a7e;this[_0x1d1a32(0x1fe)][_0x1d1a32(0x26b)](_0x38ef8f,{...this[_0x1d1a32(0x1fe)][_0x1d1a32(0x264)](_0x38ef8f),..._0x32bb7b}),_0x32bb7b['edit']!==void 0x0&&tn(this[_0x1d1a32(0x24c)],_0x38ef8f,_0x38ef8f,_0x52f72d[_0x1d1a32(0x1c0)],_0x32bb7b['edit']);}[_0x504a7e(0x20a)](_0x3dfcc2,_0x178ae1){const _0x380ede=_0x504a7e;this[_0x380ede(0x14c)](_0x3dfcc2),this[_0x380ede(0x238)][_0x380ede(0x26b)](_0x3dfcc2,{...this[_0x380ede(0x238)][_0x380ede(0x264)](_0x3dfcc2),..._0x178ae1}),this[_0x380ede(0x370)](_0x3dfcc2,J(_0x3dfcc2),_0x178ae1[_0x380ede(0x331)]);}[_0x504a7e(0x104)](_0x3773db,_0x46886d,_0x417f2f){const _0x586ca4=_0x504a7e;this['_rememberTable'](_0x3773db);let _0x58d522=ln(_0x3773db,_0x46886d);this[_0x586ca4(0x2c2)][_0x586ca4(0x26b)](_0x58d522,{...this[_0x586ca4(0x2c2)]['get'](_0x58d522),..._0x417f2f}),this['_setObjectEdit'](_0x3773db,Y(_0x3773db,_0x46886d),_0x417f2f[_0x586ca4(0x331)]);}[_0x504a7e(0x1fd)](_0x18c2fc,_0x4b8a72,_0x109d26){const _0x470fcb=_0x504a7e;this['_rememberTable'](_0x18c2fc);let _0x20bd94=un(_0x18c2fc,_0x4b8a72);this[_0x470fcb(0x147)]['set'](_0x20bd94,{...this['_recordPermissions']['get'](_0x20bd94),..._0x109d26}),this[_0x470fcb(0x370)](_0x18c2fc,X(_0x18c2fc,_0x4b8a72),_0x109d26[_0x470fcb(0x331)]);}[_0x504a7e(0x2ee)](_0x175136,_0x1b30c1,_0x44c8f7){const _0x42f06d=_0x504a7e;this['_rememberTable'](_0x175136);let _0x36a0b4=dn(_0x175136,_0x1b30c1);this['_viewPermissions']['set'](_0x36a0b4,{...this[_0x42f06d(0x10e)][_0x42f06d(0x264)](_0x36a0b4),..._0x44c8f7}),this[_0x42f06d(0x370)](_0x175136,Zt(_0x175136,_0x1b30c1),_0x44c8f7[_0x42f06d(0x331)]);}[_0x504a7e(0x251)](_0x3c4f84){const _0x2ea7bf=_0x504a7e;this[_0x2ea7bf(0x1fe)][_0x2ea7bf(0x149)](_0x3c4f84),nn(this[_0x2ea7bf(0x24c)],_0x3c4f84,_0x3c4f84,_0x52f72d[_0x2ea7bf(0x1c0)]);}[_0x504a7e(0x306)](_0x324fa0){const _0x509e66=_0x504a7e;this[_0x509e66(0x238)][_0x509e66(0x149)](_0x324fa0),this[_0x509e66(0x357)](_0x324fa0,J(_0x324fa0));}[_0x504a7e(0x1b1)](_0x3c0717,_0x2e67e1){const _0x3d5b61=_0x504a7e;this[_0x3d5b61(0x2c2)][_0x3d5b61(0x149)](ln(_0x3c0717,_0x2e67e1)),this[_0x3d5b61(0x357)](_0x3c0717,Y(_0x3c0717,_0x2e67e1));}[_0x504a7e(0x138)](_0x1ca2f1,_0x4b038e){const _0x5b0d12=_0x504a7e;this[_0x5b0d12(0x147)][_0x5b0d12(0x149)](un(_0x1ca2f1,_0x4b038e)),this['_clearObjectEdit'](_0x1ca2f1,X(_0x1ca2f1,_0x4b038e));}['clearViewPermission'](_0x9f68ee,_0x3e06fc){const _0x3ba678=_0x504a7e;this[_0x3ba678(0x10e)][_0x3ba678(0x149)](dn(_0x9f68ee,_0x3e06fc)),this[_0x3ba678(0x357)](_0x9f68ee,Zt(_0x9f68ee,_0x3e06fc));}[_0x504a7e(0x181)](){const _0x54f754=_0x504a7e;return{'bases':Object[_0x54f754(0x1c5)](this[_0x54f754(0x1fe)]),'tables':Object[_0x54f754(0x1c5)](this[_0x54f754(0x238)]),'fields':Object['fromEntries'](this['_fieldPermissions']),'records':Object[_0x54f754(0x1c5)](this[_0x54f754(0x147)]),'views':Object[_0x54f754(0x1c5)](this['_viewPermissions'])};}[_0x504a7e(0x2be)](_0xaf71bd){const _0x58f2e6=_0x504a7e;var _0x30f091;return this[_0x58f2e6(0x28b)](_0xaf71bd,[J(_0xaf71bd)])&&(((_0x30f091=this[_0x58f2e6(0x238)]['get'](_0xaf71bd))==null?void 0x0:_0x30f091['edit'])??!0x0);}[_0x504a7e(0x28b)](_0x6188ad,_0x1adda8){const _0x1e14f1=_0x504a7e;var _0x2209f4;let _0x18c7f8=this['_resolveBaseId'](_0x6188ad);return!_0x18c7f8||an(this[_0x1e14f1(0x24c)],_0x18c7f8,_0x1adda8)&&(((_0x2209f4=this[_0x1e14f1(0x1fe)][_0x1e14f1(0x264)](_0x18c7f8))==null?void 0x0:_0x2209f4['edit'])??!0x0);}[_0x504a7e(0x370)](_0x4e05c3,_0x14311f,_0x3fd586){const _0x2f153a=_0x504a7e;if(_0x3fd586===void 0x0)return;let _0x3bd43c=this[_0x2f153a(0x182)](_0x4e05c3);_0x3bd43c&&tn(this[_0x2f153a(0x24c)],_0x3bd43c,_0x14311f,_0x52f72d[_0x2f153a(0x1c0)],_0x3fd586);}['_clearObjectEdit'](_0x13a175,_0x31ef01){const _0x530a8c=_0x504a7e;let _0x1cd79d=this[_0x530a8c(0x182)](_0x13a175);_0x1cd79d&&nn(this[_0x530a8c(0x24c)],_0x1cd79d,_0x31ef01,_0x52f72d[_0x530a8c(0x1c0)]);}[_0x504a7e(0x182)](_0x57ac5d){const _0x4342f9=_0x504a7e;var _0x2b8710;let _0x2b5cba=this[_0x4342f9(0x1cf)][_0x4342f9(0x102)](_0x57ac5d,_0x17555f['UNIVER_BASE']);return _0x2b5cba?_0x2b5cba[_0x4342f9(0x210)]():(_0x2b8710=this['_instanceService'][_0x4342f9(0x1c6)](_0x17555f[_0x4342f9(0x32a)])[_0x4342f9(0x156)](_0x2d7c9c=>!!_0x2d7c9c[_0x4342f9(0x181)]()[_0x4342f9(0x2c0)][_0x57ac5d]))==null?void 0x0:_0x2b8710[_0x4342f9(0x210)]();}[_0x504a7e(0x14c)](_0x1a8bac){const _0x24f328=_0x504a7e;let _0x1d27ef=this['_resolveBaseId'](_0x1a8bac);_0x1d27ef&&this[_0x24f328(0x1d7)][_0x24f328(0x26b)](_0x1a8bac,_0x1d27ef);}[_0x504a7e(0x1af)](_0x1d46d6){const _0xbb180e=_0x504a7e;this[_0xbb180e(0x1fe)][_0xbb180e(0x149)](_0x1d46d6),this[_0xbb180e(0x1d7)]['forEach']((_0x4a7cf4,_0x1c04da)=>{const _0x44243a=_0xbb180e;_0x4a7cf4===_0x1d46d6&&(this['_tablePermissions']['delete'](_0x1c04da),cn(this[_0x44243a(0x2c2)],_0x1c04da+'\x1f'),cn(this['_recordPermissions'],_0x1c04da+'\x1f'),cn(this[_0x44243a(0x10e)],_0x1c04da+'\x1f'),this['_tableBaseIds'][_0x44243a(0x149)](_0x1c04da));});}};sn=_0x33f97a([_0x5242b9(0x0,_0x3ac310),_0x5242b9(0x1,_0x2f75e2)],sn);function cn(_0x4de170,_0x179738){const _0x24f432=_0x504a7e;_0x4de170[_0x24f432(0x17e)]((_0x47f630,_0x1c3251)=>{const _0x110520=_0x24f432;_0x1c3251[_0x110520(0x280)](_0x179738)&&_0x4de170[_0x110520(0x149)](_0x1c3251);});}function ln(_0xee9a9e,_0xf7d46c){return _0xee9a9e+'\x1f'+_0xf7d46c;}function un(_0x1979c4,_0x5a74f7){return _0x1979c4+'\x1f'+_0x5a74f7;}function dn(_0x2ce814,_0x53a522){return _0x2ce814+'\x1f'+_0x53a522;}const Z=_0x2540dc(_0x504a7e(0x229));let fn=class{constructor(_0x24bfd3,_0x3b32a6=pn(),_0xe17720={}){const _0x2fca06=_0x504a7e;this['_permissionService']=_0x24bfd3,this[_0x2fca06(0x112)]=_0x3b32a6,this[_0x2fca06(0x368)]=_0xe17720,_0x454659(this,_0x2fca06(0x19e),new q()),_0x454659(this,'_applier',new _0x2be14e());}[_0x504a7e(0x20e)](_0x449756,_0x3d7116,_0x36d522){const _0x52e745=_0x504a7e;if(!this['_permissionService'][_0x52e745(0x308)](_0x449756['getUnitId']()))throw Error(_0x52e745(0x1f2));_0x514998(_0x3d7116),this[_0x52e745(0x283)](_0x449756,this['_factory'][_0x52e745(0x20e)](_0x449756['getSnapshot'](),_0x3d7116,_0x36d522));}[_0x504a7e(0x1ee)](_0x54090d,_0x30d00b,_0x532fc3){const _0x54f328=_0x504a7e;if(!this[_0x54f328(0x24c)][_0x54f328(0x29b)](_0x30d00b))throw Error(_0x54f328(0x342));this[_0x54f328(0x283)](_0x54090d,this[_0x54f328(0x19e)][_0x54f328(0x1ee)](_0x54090d[_0x54f328(0x181)](),_0x30d00b,_0x532fc3));}[_0x504a7e(0x132)](_0x1fead5,_0x1cbf4d){const _0x3a5f10=_0x504a7e;if(!this['_permissionService'][_0x3a5f10(0x272)](_0x1cbf4d))throw Error(_0x3a5f10(0x168));let _0x527681=_0x14abc2(_0x1fead5[_0x3a5f10(0x181)](),_0x1cbf4d);if(_0x527681[_0x3a5f10(0x328)]>0x0)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20('+_0x527681['map'](_0x108a91=>_0x108a91[_0x3a5f10(0x25a)]+'.'+_0x108a91[_0x3a5f10(0x12c)])['join'](',\x20')+').');this[_0x3a5f10(0x283)](_0x1fead5,this[_0x3a5f10(0x19e)][_0x3a5f10(0x132)](_0x1fead5[_0x3a5f10(0x181)](),_0x1cbf4d));}[_0x504a7e(0x27b)](_0x17a232,_0x367de6,_0x54cde1,_0x51994d,_0x3d1430){const _0x1f1fee=_0x504a7e;this[_0x1f1fee(0x283)](_0x17a232,this[_0x1f1fee(0x155)](_0x17a232,_0x367de6,_0x54cde1,_0x51994d,_0x3d1430));}['setRecordValues'](_0x50c0a5,_0x2980a0,_0x2825a4){const _0x3f252f=_0x504a7e;this[_0x3f252f(0x283)](_0x50c0a5,this[_0x3f252f(0x11f)](_0x50c0a5,_0x2980a0,_0x2825a4));}[_0x504a7e(0x2a7)](_0x499878,_0x5b07ac,_0x33225a){const _0x42a0f9=_0x504a7e;this[_0x42a0f9(0x283)](_0x499878,this[_0x42a0f9(0x310)](_0x499878,_0x5b07ac,_0x33225a));}['createUpdateCellOp'](_0x3c6b1b,_0x592459,_0x5a2b5d,_0x5029e4,_0x392525){const _0x2efab9=_0x504a7e;let _0x417d6d=_0x3c6b1b[_0x2efab9(0x181)](),_0x214498=this[_0x2efab9(0x1da)](_0x417d6d,_0x592459,_0x5a2b5d,_0x5029e4,_0x392525),_0x588038=this[_0x2efab9(0x1fc)](_0x417d6d,_0x592459,_0x5a2b5d,{[_0x5029e4]:_0x214498});return this['_factory'][_0x2efab9(0x35c)](_0x417d6d,_0x592459,[_0x588038]);}[_0x504a7e(0x11f)](_0x510c51,_0x563638,_0x3410cb){const _0x199df2=_0x504a7e;let _0x2931dc=_0x510c51['getSnapshot'](),_0x3ec654=_0x3410cb[_0x199df2(0x19b)](_0x46b28c=>this['_withModifiedSystemValues'](_0x2931dc,_0x563638,_0x46b28c[_0x199df2(0x360)],{...Object[_0x199df2(0x1c5)](Object[_0x199df2(0x2a2)](_0x46b28c[_0x199df2(0x196)])[_0x199df2(0x19b)](([_0x21b2bd,_0x13abe5])=>[_0x21b2bd,this['_normalizeCellValue'](_0x2931dc,_0x563638,_0x46b28c[_0x199df2(0x360)],_0x21b2bd,_0x13abe5)]))}));return this[_0x199df2(0x19e)]['setRecordValues'](_0x2931dc,_0x563638,_0x3ec654);}[_0x504a7e(0x310)](_0x39e6a0,_0x4acd1d,_0x22e300){const _0x3d422b=_0x504a7e;if(!this[_0x3d422b(0x24c)][_0x3d422b(0x242)](_0x4acd1d))throw Error(_0x3d422b(0xfa));let _0x5e4d21=_0x39e6a0[_0x3d422b(0x181)](),_0x202c43=this['_createNumberingAllocators'](_0x5e4d21[_0x3d422b(0x2c0)][_0x4acd1d]);return this[_0x3d422b(0x19e)][_0x3d422b(0x2a7)](_0x5e4d21,_0x4acd1d,this[_0x3d422b(0x1c7)](_0x5e4d21,_0x4acd1d,_0x22e300,_0x202c43));}['createBatchCreateRecordsOp'](_0xe59fff,_0x49a639,_0x20d7f9){const _0x2a39ad=_0x504a7e;if(!this[_0x2a39ad(0x24c)][_0x2a39ad(0x242)](_0x49a639))throw Error(_0x2a39ad(0xfa));let _0x5ef5dd=_0xe59fff['getSnapshot']();return _0x5bc2d6(_0x2a39ad(0x1a7),()=>{const _0x380558=_0x2a39ad;let _0x1f58a4=this['_createNumberingAllocators'](_0x5ef5dd[_0x380558(0x2c0)][_0x49a639]);return this[_0x380558(0x19e)][_0x380558(0x285)](_0x5ef5dd,_0x49a639,_0x20d7f9[_0x380558(0x19b)](_0x13b308=>this[_0x380558(0x1c7)](_0x5ef5dd,_0x49a639,_0x13b308,_0x1f58a4)));},{'existingRecords':Object['keys'](_0x5ef5dd[_0x2a39ad(0x2c0)][_0x49a639]['records'])['length'],'records':_0x20d7f9[_0x2a39ad(0x328)]});}[_0x504a7e(0x15c)](_0x9d3be5,_0x1c1678,_0xbda0e4,_0x15a562,_0x29a6f2){const _0x132aea=_0x504a7e;if(!this[_0x132aea(0x24c)]['canCreateField'](_0x1c1678))throw Error(_0x132aea(0x267));let _0x3ff474=_0x9d3be5[_0x132aea(0x181)]();if(this['_assertFieldDefinition'](_0x3ff474,_0xbda0e4),_0x15a562===0x0)throw Error(_0x132aea(0x32e));let _0x3fd523=this['_factory']['createField'](_0x3ff474,_0x1c1678,{'field':_0xbda0e4,'index':_0x15a562,'viewIndexes':_0x29a6f2}),_0x40fc53=this[_0x132aea(0x209)](_0x3ff474,_0x1c1678,_0xbda0e4);if(!_0x40fc53['length'])return _0x3fd523;let _0x2d10fa=this[_0x132aea(0x36f)][_0x132aea(0x1d1)](_0x3ff474,_0x3fd523);return _0x19c406([_0x3fd523,this['_factory'][_0x132aea(0x35c)](_0x2d10fa,_0x1c1678,_0x40fc53)]);}['deleteRecord'](_0x14271a,_0x395c23,_0x30b929){const _0x2a3946=_0x504a7e;if(!this[_0x2a3946(0x24c)][_0x2a3946(0x11c)](_0x395c23,_0x30b929))throw Error(_0x2a3946(0x1cc));this['_apply'](_0x14271a,this[_0x2a3946(0x19e)][_0x2a3946(0x206)](_0x14271a[_0x2a3946(0x181)](),_0x395c23,_0x30b929));}['duplicateRecord'](_0x470403,_0x2b257e,_0x25205a,_0x410674){const _0x51f60b=_0x504a7e;if(!this[_0x51f60b(0x24c)][_0x51f60b(0x242)](_0x2b257e))throw Error(_0x51f60b(0xfa));this[_0x51f60b(0x283)](_0x470403,this[_0x51f60b(0x19e)][_0x51f60b(0x1fa)](_0x470403[_0x51f60b(0x181)](),_0x2b257e,_0x25205a,{..._0x410674,'values':{..._0x410674[_0x51f60b(0x196)],[_0x3fdab9]:_0x410674['id']}}));}[_0x504a7e(0x17b)](_0x470c39,_0x442852,_0x561a06,_0x49cdf8){const _0x58f3e7=_0x504a7e;if(!this[_0x58f3e7(0x24c)][_0x58f3e7(0x217)](_0x442852,_0x561a06))throw Error(_0x58f3e7(0x139));this[_0x58f3e7(0x283)](_0x470c39,this['_factory'][_0x58f3e7(0x17b)](_0x470c39[_0x58f3e7(0x181)](),_0x442852,_0x561a06,_0x49cdf8));}[_0x504a7e(0x19a)](_0x281a60,_0x341a67,_0x2cb165,_0x76537e,_0x16f25f){const _0x3e2976=_0x504a7e;this[_0x3e2976(0x283)](_0x281a60,this[_0x3e2976(0x15c)](_0x281a60,_0x341a67,_0x2cb165,_0x76537e,_0x16f25f));}[_0x504a7e(0x1ec)](_0x147cc2,_0x17aae8,_0x563d22,_0x59654a){const _0x138d67=_0x504a7e;var _0x226b89;if(!this[_0x138d67(0x24c)][_0x138d67(0x14e)](_0x17aae8,_0x563d22))throw Error(_0x138d67(0x212));let _0x2efb50=_0x147cc2[_0x138d67(0x181)](),_0x1b489a=(_0x226b89=_0x2efb50[_0x138d67(0x2c0)][_0x17aae8])==null?void 0x0:_0x226b89[_0x138d67(0x1d2)][_0x563d22];if(!_0x1b489a||_0x563d22===_0x3fdab9)throw Error(_0x138d67(0x326));this[_0x138d67(0x23d)](_0x2efb50,{..._0x1b489a,..._0x59654a}),this[_0x138d67(0x283)](_0x147cc2,this[_0x138d67(0x19e)][_0x138d67(0x1ec)](_0x2efb50,_0x17aae8,_0x563d22,_0x59654a));}[_0x504a7e(0x16b)](_0x42cc49,_0x55bf86,_0x267d3a,_0x1560c8){const _0x2c637b=_0x504a7e;var _0x419746;if(!this[_0x2c637b(0x24c)]['canEditField'](_0x55bf86,_0x267d3a))throw Error(_0x2c637b(0x212));let _0xd6ca1a=_0x42cc49[_0x2c637b(0x181)](),_0x20cf8f=(_0x419746=_0xd6ca1a[_0x2c637b(0x2c0)][_0x55bf86])==null?void 0x0:_0x419746[_0x2c637b(0x1d2)][_0x267d3a];if(!_0x20cf8f||_0x267d3a===_0x3fdab9)throw Error(_0x2c637b(0x22a));this['_assertFieldDefinition'](_0xd6ca1a,{..._0x20cf8f,..._0x1560c8}),this[_0x2c637b(0x283)](_0x42cc49,this['_factory'][_0x2c637b(0x16b)](_0xd6ca1a,_0x55bf86,_0x267d3a,_0x1560c8));}[_0x504a7e(0x2ef)](_0x2190bc,_0x5155fd,_0x2ef418){const _0xa6f707=_0x504a7e;var _0x5e91a6;if(((_0x5e91a6=_0x2190bc[_0xa6f707(0x181)]()[_0xa6f707(0x2c0)][_0x5155fd])==null?void 0x0:_0x5e91a6[_0xa6f707(0x2f7)])===_0x2ef418||_0x2ef418===_0x3fdab9)throw Error(_0xa6f707(0x36d));if(!this[_0xa6f707(0x24c)][_0xa6f707(0x205)](_0x5155fd,_0x2ef418))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this[_0xa6f707(0x283)](_0x2190bc,this[_0xa6f707(0x19e)]['deleteField'](_0x2190bc['getSnapshot'](),_0x5155fd,_0x2ef418));}['moveField'](_0xbaff73,_0x25a759,_0x3c1459,_0x3bcc58){const _0x3fd735=_0x504a7e;if(!this[_0x3fd735(0x24c)][_0x3fd735(0x14e)](_0x25a759,_0x3c1459))throw Error(_0x3fd735(0x212));if(_0x3c1459===_0x3fdab9||_0x3bcc58[_0x3fd735(0x2eb)]===_0x3fdab9)throw Error(_0x3fd735(0x122));this['_apply'](_0xbaff73,this[_0x3fd735(0x19e)][_0x3fd735(0x245)](_0xbaff73[_0x3fd735(0x181)](),_0x25a759,_0x3c1459,_0x3bcc58));}[_0x504a7e(0x183)](_0x293656,_0x57a420,_0xecb291,_0xd01e77){const _0x562b58=_0x504a7e;if(!this[_0x562b58(0x24c)][_0x562b58(0x31d)](_0x57a420,_0xecb291['id']))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x562b58(0x283)](_0x293656,this['_factory'][_0x562b58(0x183)](_0x293656['getSnapshot'](),_0x57a420,_0xecb291,_0xd01e77));}[_0x504a7e(0x332)](_0xca972b,_0x27d7f1,_0x3a29bf,_0x3f638e){const _0x516b16=_0x504a7e;if(!this[_0x516b16(0x24c)][_0x516b16(0x31d)](_0x27d7f1,_0x3a29bf))throw Error(_0x516b16(0x111));this[_0x516b16(0x283)](_0xca972b,this[_0x516b16(0x19e)][_0x516b16(0x332)](_0xca972b[_0x516b16(0x181)](),_0x27d7f1,_0x3a29bf,_0x3f638e));}[_0x504a7e(0x28a)](_0x5763c5,_0x21fee9,_0x167f47){const _0x44cd0f=_0x504a7e;if(!this[_0x44cd0f(0x24c)][_0x44cd0f(0x31d)](_0x21fee9,_0x167f47))throw Error(_0x44cd0f(0x111));this[_0x44cd0f(0x283)](_0x5763c5,this['_factory'][_0x44cd0f(0x28a)](_0x5763c5[_0x44cd0f(0x181)](),_0x21fee9,_0x167f47));}[_0x504a7e(0x2d5)](_0x2f2a5f,_0x3a3fce,_0x704940,_0x7aded0){const _0x1fc82b=_0x504a7e;if(!this['_permissionService']['canManageView'](_0x3a3fce,_0x704940))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x1fc82b(0x283)](_0x2f2a5f,this['_factory'][_0x1fc82b(0x2d5)](_0x2f2a5f[_0x1fc82b(0x181)](),_0x3a3fce,_0x704940,_0x7aded0));}['updateViewConfig'](_0x2bcb0c,_0xa47982,_0x45b258,_0x5514fb){const _0x29bdae=_0x504a7e;if(!this[_0x29bdae(0x24c)]['canManageView'](_0xa47982,_0x45b258))throw Error(_0x29bdae(0x111));this[_0x29bdae(0x283)](_0x2bcb0c,this[_0x29bdae(0x19e)][_0x29bdae(0x22e)](_0x2bcb0c[_0x29bdae(0x181)](),_0xa47982,_0x45b258,_0x5514fb));}[_0x504a7e(0x236)](_0x36e72b,_0x52b231,_0x27d37e,_0x4bd220){const _0x8c4d5b=_0x504a7e;if(!this[_0x8c4d5b(0x24c)]['canManageView'](_0x52b231,_0x27d37e))throw Error(_0x8c4d5b(0x111));this[_0x8c4d5b(0x283)](_0x36e72b,this[_0x8c4d5b(0x19e)][_0x8c4d5b(0x236)](_0x36e72b[_0x8c4d5b(0x181)](),_0x52b231,_0x27d37e,_0x4bd220));}[_0x504a7e(0x13c)](_0x353d91,_0x3e1b48,_0x464d3d,_0x56906c){const _0x1f92fb=_0x504a7e;if(!this[_0x1f92fb(0x24c)]['canManageView'](_0x3e1b48,_0x464d3d))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0x353d91,this['_factory'][_0x1f92fb(0x13c)](_0x353d91[_0x1f92fb(0x181)](),_0x3e1b48,_0x464d3d,_0x56906c));}[_0x504a7e(0x35d)](_0x28e455,_0x803a9c,_0x5db048,_0x726e7){const _0x4aa267=_0x504a7e;if(!this[_0x4aa267(0x24c)][_0x4aa267(0x31d)](_0x803a9c,_0x5db048))throw Error(_0x4aa267(0x111));this['_apply'](_0x28e455,this[_0x4aa267(0x19e)][_0x4aa267(0x35d)](_0x28e455['getSnapshot'](),_0x803a9c,_0x5db048,_0x726e7));}['setViewFieldVisible'](_0x31b390,_0x51fb25,_0x599ad8,_0x3138b4,_0xcbb9de){const _0x2afc48=_0x504a7e;if(!this[_0x2afc48(0x24c)][_0x2afc48(0x31d)](_0x51fb25,_0x599ad8))throw Error(_0x2afc48(0x111));this[_0x2afc48(0x283)](_0x31b390,this[_0x2afc48(0x19e)][_0x2afc48(0x215)](_0x31b390[_0x2afc48(0x181)](),_0x51fb25,_0x599ad8,_0x3138b4,_0xcbb9de));}[_0x504a7e(0x246)](_0xbebeea,_0x1cd15d,_0x2857b4,_0x5f4bcf,_0x4eb720){const _0x53013d=_0x504a7e;if(!this[_0x53013d(0x24c)][_0x53013d(0x31d)](_0x1cd15d,_0x2857b4))throw Error(_0x53013d(0x111));this[_0x53013d(0x283)](_0xbebeea,this[_0x53013d(0x19e)][_0x53013d(0x246)](_0xbebeea[_0x53013d(0x181)](),_0x1cd15d,_0x2857b4,_0x5f4bcf,_0x4eb720));}[_0x504a7e(0x107)](_0x3418db,_0x21bca1,_0x379f94,_0x1b3f66,_0x960149){const _0x48c825=_0x504a7e;if(!this['_permissionService'][_0x48c825(0x31d)](_0x21bca1,_0x379f94))throw Error(_0x48c825(0x111));this[_0x48c825(0x283)](_0x3418db,this[_0x48c825(0x19e)][_0x48c825(0x107)](_0x3418db['getSnapshot'](),_0x21bca1,_0x379f94,_0x1b3f66,_0x960149));}[_0x504a7e(0x283)](_0x50271c,_0x647246){const _0x47fd70=_0x504a7e;let _0x4395fc=_0x50271c[_0x47fd70(0x181)]();_0x50271c[_0x47fd70(0x284)](this[_0x47fd70(0x36f)]['applyOp'](_0x4395fc,_0x647246));}[_0x504a7e(0x1c7)](_0x3aa2af,_0x105513,_0x390f4b,_0x5c5b23=this[_0x504a7e(0x2cc)](_0x3aa2af[_0x504a7e(0x2c0)][_0x105513])){const _0x2db0e9=_0x504a7e;let _0x42e09d=_0x3aa2af[_0x2db0e9(0x2c0)][_0x105513],_0x4ed7ef=_0x390f4b[_0x2db0e9(0x143)]??_0x390f4b[_0x2db0e9(0x25d)]??this['_getCurrentUserId'](),_0x588473={..._0x390f4b,'createdBy':_0x390f4b[_0x2db0e9(0x143)]??_0x4ed7ef,'updatedBy':_0x390f4b[_0x2db0e9(0x25d)]??_0x4ed7ef,'values':{..._0x390f4b[_0x2db0e9(0x196)]}};return _0x588473[_0x2db0e9(0x196)][_0x3fdab9]=_0x588473['id'],_0x42e09d['fieldOrder'][_0x2db0e9(0x17e)](_0x37c425=>{const _0x4b2ff3=_0x2db0e9;let _0x364450=_0x42e09d['fields'][_0x37c425];if(_0x364450&&_0x588473[_0x4b2ff3(0x196)][_0x37c425]===void 0x0)switch(_0x364450[_0x4b2ff3(0x337)]){case _0x27fbfa[_0x4b2ff3(0x208)]:var _0x213eb1;_0x588473[_0x4b2ff3(0x196)][_0x37c425]=((_0x213eb1=_0x5c5b23[_0x4b2ff3(0x264)](_0x37c425))==null?void 0x0:_0x213eb1())??this[_0x4b2ff3(0x23c)](_0x42e09d,_0x37c425)();break;case _0x27fbfa['CreatedBy']:_0x588473['createdBy']&&(_0x588473[_0x4b2ff3(0x196)][_0x37c425]=_0x588473[_0x4b2ff3(0x143)]);break;case _0x27fbfa[_0x4b2ff3(0x1ac)]:_0x588473[_0x4b2ff3(0x25d)]&&(_0x588473[_0x4b2ff3(0x196)][_0x37c425]=_0x588473['updatedBy']);break;case _0x27fbfa[_0x4b2ff3(0x338)]:_0x588473[_0x4b2ff3(0x196)][_0x37c425]=_0x368e47(_0x588473[_0x4b2ff3(0x290)]);break;case _0x27fbfa[_0x4b2ff3(0x26c)]:_0x588473[_0x4b2ff3(0x196)][_0x37c425]=_0x368e47(_0x588473[_0x4b2ff3(0x26a)]);break;default:{let _0x117952=_0x364450[_0x4b2ff3(0x166)];_0x117952!=null&&_0x117952!==''&&!(Array[_0x4b2ff3(0x216)](_0x117952)&&_0x117952[_0x4b2ff3(0x328)]===0x0)&&(_0x588473[_0x4b2ff3(0x196)][_0x37c425]=_0x117952);}}}),_0x588473;}[_0x504a7e(0x1fc)](_0x22e7eb,_0xb24eba,_0xc8d101,_0x4cb87b){const _0x42d569=_0x504a7e;var _0x15bb3c,_0x2e20cf;let _0x4e9894=_0x22e7eb[_0x42d569(0x2c0)][_0xb24eba],_0x21c379=((_0x15bb3c=(_0x2e20cf=this['_runtimeContext'])[_0x42d569(0x12f)])==null?void 0x0:_0x15bb3c[_0x42d569(0x2f2)](_0x2e20cf))??Date['now'](),_0x2a3eba=this['_getCurrentUserId'](),_0x4a7fe8={..._0x4cb87b};return _0x4e9894['fieldOrder'][_0x42d569(0x17e)](_0x35bcef=>{const _0x454f97=_0x42d569;let _0x416a9e=_0x4e9894[_0x454f97(0x1d2)][_0x35bcef];_0x416a9e&&(_0x416a9e[_0x454f97(0x337)]===_0x27fbfa[_0x454f97(0x26c)]&&(_0x4a7fe8[_0x35bcef]=_0x368e47(_0x21c379)),_0x416a9e['type']===_0x27fbfa[_0x454f97(0x1ac)]&&_0x2a3eba&&(_0x4a7fe8[_0x35bcef]=_0x2a3eba));}),{'recordId':_0xc8d101,'values':_0x4a7fe8,'recordPatch':{'updatedAt':_0x21c379,..._0x2a3eba?{'updatedBy':_0x2a3eba}:{}}};}['_createSystemFieldValuePatches'](_0x2c3aa4,_0x490fd0,_0x4f6eaf){const _0x3df206=_0x504a7e;let _0x1b9ebc=_0x2c3aa4['tables'][_0x490fd0];return!_0x1b9ebc||!mn(_0x4f6eaf)?[]:_0x4f6eaf[_0x3df206(0x337)]===_0x27fbfa[_0x3df206(0x208)]?this['_createNumberingFieldValuePatches'](_0x1b9ebc,_0x4f6eaf['id']):Object[_0x3df206(0x196)](_0x1b9ebc['records'])['flatMap'](_0x569659=>{const _0x2621eb=_0x3df206;let _0x500bf3=this[_0x2621eb(0x2cb)](_0x4f6eaf,_0x569659);return _0x500bf3===void 0x0?[]:[{'recordId':_0x569659['id'],'values':{[_0x4f6eaf['id']]:_0x500bf3}}];});}[_0x504a7e(0x2cb)](_0x491f31,_0x2e6079){const _0x253f05=_0x504a7e;switch(_0x491f31[_0x253f05(0x337)]){case _0x27fbfa[_0x253f05(0x19c)]:return _0x2e6079['createdBy']??this[_0x253f05(0x2dc)]();case _0x27fbfa[_0x253f05(0x1ac)]:return _0x2e6079[_0x253f05(0x25d)]??this[_0x253f05(0x2dc)]();case _0x27fbfa[_0x253f05(0x338)]:return _0x368e47(_0x2e6079[_0x253f05(0x290)]??Date[_0x253f05(0x12f)]());case _0x27fbfa['UpdatedAt']:return _0x368e47(_0x2e6079[_0x253f05(0x26a)]??Date[_0x253f05(0x12f)]());default:return;}}[_0x504a7e(0x2cc)](_0x1407e8){const _0x4c4939=_0x504a7e;let _0x23cca7=new Map();return _0x1407e8&&_0x1407e8['fieldOrder'][_0x4c4939(0x17e)](_0x5c6bdc=>{const _0x29e13b=_0x4c4939;let _0x598f9d=_0x1407e8['fields'][_0x5c6bdc];(_0x598f9d==null?void 0x0:_0x598f9d['type'])===_0x27fbfa[_0x29e13b(0x208)]&&_0x23cca7['set'](_0x5c6bdc,this[_0x29e13b(0x23c)](_0x1407e8,_0x5c6bdc));}),_0x23cca7;}[_0x504a7e(0x23c)](_0x7bcac4,_0x17dab5){const _0x132ffa=_0x504a7e;let _0x53184c=Object[_0x132ffa(0x196)](_0x7bcac4[_0x132ffa(0x1dd)])[_0x132ffa(0x240)]((_0xd23033,_0x282711)=>{let _0x507898=Number(_0x282711['values'][_0x17dab5]);return Number['isFinite'](_0x507898)?Math['max'](_0xd23033,_0x507898):_0xd23033;},0x0);return()=>String(++_0x53184c);}[_0x504a7e(0x114)](_0x7c1251,_0x4a42a8){const _0x1b12c1=_0x504a7e;let _0x1c3efc=this['_getOrderedRecords'](_0x7c1251),_0x42faf6=this[_0x1b12c1(0x23c)](_0x7c1251,_0x4a42a8);return _0x1c3efc['flatMap'](_0x43d090=>this[_0x1b12c1(0xf1)](_0x43d090[_0x1b12c1(0x196)][_0x4a42a8])?[]:[{'recordId':_0x43d090['id'],'values':{[_0x4a42a8]:_0x42faf6()}}]);}[_0x504a7e(0x24d)](_0x2cfe3e){const _0x27acbd=_0x504a7e;var _0xaba632;let _0x2de7e1=Object[_0x27acbd(0x196)](_0x2cfe3e[_0x27acbd(0x1dd)]),_0x3e7500=new Map(_0x2de7e1['map'](_0xabf3d4=>[_0xabf3d4['id'],_0xabf3d4])),_0x3022dc=[],_0xc38076=new Set();(_0xaba632=_0x2cfe3e['recordOrder'])==null||_0xaba632[_0x27acbd(0x17e)](_0xffaee6=>{const _0x4778dd=_0x27acbd;let _0x24d42f=_0x3e7500['get'](_0xffaee6);_0x24d42f&&(_0x3022dc['push'](_0x24d42f),_0xc38076[_0x4778dd(0xf6)](_0xffaee6));});let _0x26a83b=_0x2de7e1[_0x27acbd(0x231)](_0x550c54=>!_0xc38076[_0x27acbd(0x34c)](_0x550c54['id']))[_0x27acbd(0x115)]((_0x3e35f1,_0x5ca596)=>String(_0x3e35f1[_0x27acbd(0x258)]??_0x3e35f1['id'])['localeCompare'](String(_0x5ca596[_0x27acbd(0x258)]??_0x5ca596['id']))||_0x3e35f1['id'][_0x27acbd(0x27a)](_0x5ca596['id']));return[..._0x3022dc,..._0x26a83b];}['_isNonEmptyCellValue'](_0x209332){const _0x4783ce=_0x504a7e;return _0x209332!=null&&_0x209332!==''&&!(Array['isArray'](_0x209332)&&_0x209332[_0x4783ce(0x328)]===0x0);}[_0x504a7e(0x2dc)](){const _0x7466de=_0x504a7e;var _0x2d9b90,_0x5b9f5b,_0x2e578a,_0x1c0a4a;return((_0x2d9b90=(_0x5b9f5b=this['_runtimeContext'])['getCurrentUserId'])==null?void 0x0:_0x2d9b90[_0x7466de(0x2f2)](_0x5b9f5b))??((_0x2e578a=(_0x1c0a4a=this[_0x7466de(0x368)])[_0x7466de(0x29f)])==null||(_0x2e578a=_0x2e578a['call'](_0x1c0a4a))==null?void 0x0:_0x2e578a[_0x7466de(0x222)])??void 0x0;}['_normalizeCellValue'](_0x5e0b87,_0x3b73a3,_0x1f7c49,_0x2a34cc,_0x147a3e){const _0x3a86ad=_0x504a7e;var _0x265d69;if(!this[_0x3a86ad(0x24c)]['canEditCell'](_0x3b73a3,_0x1f7c49,_0x2a34cc))throw Error(_0x3a86ad(0x1a3));let _0x444638=(_0x265d69=_0x5e0b87['tables'][_0x3b73a3])==null?void 0x0:_0x265d69[_0x3a86ad(0x1d2)][_0x2a34cc];if(!_0x444638)throw Error(_0x3a86ad(0x134)+_0x2a34cc+_0x3a86ad(0x2a9));let _0x42d08d=this[_0x3a86ad(0x112)]['get'](_0x444638[_0x3a86ad(0x337)]);if(_0x444638['readonly']||_0x444638[_0x3a86ad(0x1ba)]||!_0x42d08d[_0x3a86ad(0x151)](_0x444638)[_0x3a86ad(0x2ca)])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0x1a0125=_0x42d08d[_0x3a86ad(0x153)](_0x147a3e,_0x444638),_0x4be412=_0x42d08d[_0x3a86ad(0x1c4)](_0x1a0125,_0x444638);if(!_0x4be412['valid'])throw Error(_0x4be412[_0x3a86ad(0x320)]??_0x3a86ad(0x366));let _0x29e42d=_0x444638[_0x3a86ad(0x337)]===_0x27fbfa['RecordLink']?_0x245cec(_0x5e0b87,_0x444638,_0x1a0125):{'valid':!0x0};if(!_0x29e42d['valid'])throw Error(_0x29e42d[_0x3a86ad(0x320)]??_0x3a86ad(0x333));return _0x1a0125;}[_0x504a7e(0x23d)](_0x2e699a,_0x29bd2e){const _0x39546b=_0x504a7e;if(_0x29bd2e['id']===_0x3fdab9||_0x29bd2e[_0x39546b(0x337)]===_0x27fbfa[_0x39546b(0x30c)]||_0x2b4e6c(_0x29bd2e[_0x39546b(0x121)]))throw Error(_0x39546b(0x35e));let _0x50d827=_0xc6290e(_0x2e699a,_0x29bd2e);if(!_0x50d827['valid'])throw Error(_0x50d827['reason']??_0x39546b(0x1d5));}};fn=_0x33f97a([_0x5242b9(0x0,on),_0x5242b9(0x1,_0x3ba2f1)],fn);function pn(){const _0x3ff7e1=_0x504a7e;let _0x3702fb=new _0x5840f6();return _0x34226d()[_0x3ff7e1(0x17e)](_0x4a4640=>_0x3702fb[_0x3ff7e1(0x2bf)](_0x4a4640)),_0x3702fb;}function mn(_0x1f7540){const _0x51a27c=_0x504a7e;return _0x1f7540['type']===_0x27fbfa[_0x51a27c(0x208)]||_0x1f7540[_0x51a27c(0x337)]===_0x27fbfa['CreatedBy']||_0x1f7540[_0x51a27c(0x337)]===_0x27fbfa[_0x51a27c(0x1ac)]||_0x1f7540[_0x51a27c(0x337)]===_0x27fbfa[_0x51a27c(0x338)]||_0x1f7540['type']===_0x27fbfa['UpdatedAt'];}const hn=_0x1e8880['createRegExpFromSafeFragment'](String['raw']`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),gn=_0x1e8880[_0x504a7e(0x10a)](String[_0x504a7e(0x2a6)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),_n=/\{([^}]+)\}/g,vn=_0x1e8880[_0x504a7e(0x10a)](String['raw']`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),yn=_0x1e8880[_0x504a7e(0x10a)](String[_0x504a7e(0x2a6)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),bn=_0x1e8880[_0x504a7e(0x10a)](String['raw']`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),xn=_0x1e8880[_0x504a7e(0x10a)](String['raw']`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Sn=_0x1e8880['createRegExpFromSafeFragment'](String[_0x504a7e(0x2a6)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Cn=_0x1e8880[_0x504a7e(0x10a)](String[_0x504a7e(0x2a6)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var wn=class{[_0x504a7e(0x2e1)](_0x192574,_0x3ef172=_0x192574['id']){const _0x466463=_0x504a7e;var _0x5dcf83;let _0x304e4a=((_0x5dcf83=_0x192574['recordOrder'])==null?void 0x0:_0x5dcf83['length'])??Object[_0x466463(0x196)](_0x192574[_0x466463(0x1dd)])[_0x466463(0x328)];return{'sheetId':_0x3ef172,'titleMap':new Map(_0x192574[_0x466463(0x260)][_0x466463(0x19b)]((_0x1a054d,_0x28cc45)=>{const _0x2368ec=_0x466463;var _0x3f6c68;return[((_0x3f6c68=_0x192574['fields'][_0x1a054d])==null?void 0x0:_0x3f6c68[_0x2368ec(0x121)])??_0x1a054d,_0x28cc45];})),'range':{'startRow':0x0,'endRow':Math[_0x466463(0x1a5)](0x0,_0x304e4a-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x192574[_0x466463(0x260)][_0x466463(0x328)]-0x1)},'showHeader':!0x1};}[_0x504a7e(0x336)](_0x4dc3ea,_0x4cf642){const _0x5377d3=_0x504a7e;let _0x38d1c6=[],_0x53f4ba=_0x4cf642?new Set(_0x4cf642):null,_0x4c35cf=_0x18fea7(_0x4dc3ea);return Object['values'](_0x4dc3ea[_0x5377d3(0x2c0)])[_0x5377d3(0x231)](_0x325fe6=>!_0x53f4ba||_0x53f4ba[_0x5377d3(0x34c)](_0x325fe6['id']))[_0x5377d3(0x17e)](_0x5698c6=>{const _0x41f329=_0x5377d3;let _0x3ecd08=this['createSuperTableReference'](_0x5698c6,_0x5698c6['id']);_0x38d1c6[_0x41f329(0x2b9)]({'tableId':_0x5698c6['id'],'tableName':_0x4c35cf[_0x41f329(0x264)](_0x5698c6['id']),'reference':_0x3ecd08});}),_0x38d1c6;}['validateFormula'](_0x281b16,_0x5c2ac4,_0x486cd1={}){const _0x4e5b95=_0x504a7e;let _0x25fba2=_0x281b16[_0x4e5b95(0x14b)]();if(!_0x25fba2)return{'valid':!0x0};if(An(_0x25fba2))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x795dec=_0x486cd1[_0x4e5b95(0x201)]?_0x18fea7(_0x486cd1[_0x4e5b95(0x201)]):void 0x0;for(let _0x170f5c of kn(_0x25fba2)){let _0x16fc03=Rn(_0x170f5c,_0x5c2ac4,_0x486cd1[_0x4e5b95(0x201)],_0x795dec);if(!_0x16fc03['table'])return{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20\x22'+_0x170f5c['tableName']+_0x4e5b95(0x2d6)};if(!_0x16fc03[_0x4e5b95(0x2c3)])return{'valid':!0x1,'reason':_0x4e5b95(0x293)+_0x170f5c[_0x4e5b95(0x244)]+_0x4e5b95(0x2a9)};}return{'valid':!0x0};}[_0x504a7e(0xf5)](_0x3d4748,_0x25cb03,_0x508a29={}){const _0x5e37e3=_0x504a7e;let _0x1e9277=new Set();for(let _0x5dae28 of this[_0x5e37e3(0x241)](_0x3d4748,_0x25cb03,_0x508a29))_0x5dae28[_0x5e37e3(0x25a)]===_0x25cb03['id']&&_0x1e9277['add'](_0x5dae28[_0x5e37e3(0x12c)]);return Array[_0x5e37e3(0x146)](_0x1e9277);}[_0x504a7e(0x241)](_0x59ce08,_0x9d8efc,_0x42d548={}){const _0xbd9e72=_0x504a7e;let _0x4e7945=new Map(),_0x1d66e8=_0x42d548['snapshot']?_0x18fea7(_0x42d548['snapshot']):void 0x0;for(let _0x3f69e2 of kn(_0x59ce08)){let _0x96e6a3=Rn(_0x3f69e2,_0x9d8efc,_0x42d548[_0xbd9e72(0x201)],_0x1d66e8);if(!_0x96e6a3['table']||!_0x96e6a3[_0xbd9e72(0x2c3)])continue;let _0x577c9a=_0x96e6a3[_0xbd9e72(0x30a)]['id']+'\x1f'+_0x96e6a3[_0xbd9e72(0x2c3)]['id'];_0x4e7945[_0xbd9e72(0x26b)](_0x577c9a,{'tableId':_0x96e6a3[_0xbd9e72(0x30a)]['id'],'fieldId':_0x96e6a3[_0xbd9e72(0x2c3)]['id']});}return Array[_0xbd9e72(0x146)](_0x4e7945[_0xbd9e72(0x196)]());}};function Tn(_0x3a0d12,_0x397e85){const _0x380c82=_0x504a7e;var _0x30c9c8;let _0x14edd5=[],_0x4c4b3a=(_0x30c9c8=_0x397e85[_0x380c82(0x175)])==null?void 0x0:_0x30c9c8[_0x3a0d12['id']];return _0x4c4b3a&&Object[_0x380c82(0x2a2)](_0x4c4b3a)[_0x380c82(0x17e)](([_0x4a7f96,_0x350e2c])=>{const _0x26f7ad=_0x380c82;let _0x319986=_0x3a0d12[_0x26f7ad(0x2c0)][_0x4a7f96];if(!_0x319986||!_0x350e2c)return;let _0x3eaa5b=k(_0x319986),_0x357613=[];new _0x5e4ffa(_0x350e2c)[_0x26f7ad(0x101)]((_0x4e55e1,_0x9d3fd2,_0x591c47)=>{const _0x405024=_0x26f7ad;let _0xb7f82f=En(_0x3eaa5b,_0x4e55e1,_0x9d3fd2,_0x591c47);_0xb7f82f&&_0x357613[_0x405024(0x2b9)](_0xb7f82f);}),_0x357613[_0x26f7ad(0x328)]&&_0x14edd5[_0x26f7ad(0x2b9)]({'unitId':_0x3a0d12['id'],'tableId':_0x4a7f96,'patches':_0x357613});}),_0x14edd5;}function En(_0x143ac2,_0x1d28aa,_0x2586ea,_0x24f4bd){const _0x4cef2f=_0x504a7e;var _0x197801,_0x2f2c4c,_0xc64649;let _0x3c7818=(_0x197801=_0x143ac2['rowId'])==null?void 0x0:_0x197801[_0x1d28aa],_0xdcc55d=(_0x2f2c4c=_0x143ac2['colId'])==null?void 0x0:_0x2f2c4c[_0x2586ea];if(!_0x3c7818||!_0x143ac2[_0x4cef2f(0x1dd)][_0x3c7818]||!_0xdcc55d)return null;let _0x4fec99=_0x143ac2[_0x4cef2f(0x1d2)][_0xdcc55d];if(!_0x4fec99||_0x4fec99[_0x4cef2f(0x337)]!=='formula')return null;let _0x24ba39=String(((_0xc64649=_0x4fec99[_0x4cef2f(0x1df)])==null?void 0x0:_0xc64649[_0x4cef2f(0x247)])??'')['trim'](),_0x286548=(_0x24f4bd==null?void 0x0:_0x24f4bd['v'])??null,_0x3de163={'v':_0x286548,'t':On(_0x286548),..._0x1d28aa===0x0&&_0x24ba39?{'f':_0x24ba39}:{},'si':_0x4fec99['id']};return Dn(_0x4f5c96(_0x143ac2,_0x3c7818,_0xdcc55d),_0x3de163)?null:{'row':_0x1d28aa,'col':_0x2586ea,'value':_0x3de163};}function Dn(_0x1cd55b,_0x3aef02){return _0x1cd55b!=null&&Object['is'](_0x1cd55b['v']??null,_0x3aef02['v']??null)&&_0x1cd55b['t']===_0x3aef02['t']&&_0x1cd55b['f']===_0x3aef02['f']&&_0x1cd55b['si']===_0x3aef02['si'];}function On(_0x3d250e){const _0x853b61=_0x504a7e;return typeof _0x3d250e=='number'?_0x2e0acd[_0x853b61(0x2b3)]:typeof _0x3d250e==_0x853b61(0x2c8)?_0x2e0acd[_0x853b61(0x27f)]:typeof _0x3d250e==_0x853b61(0x1e9)?_0x2e0acd[_0x853b61(0x11a)]:null;}function kn(_0x3cfcd6){const _0x2a71fd=_0x504a7e;let _0x88754b=Mn(_0x3cfcd6,()=>''),_0x427ac0=new Map(),_0x9e879b=_0x12bf94=>{const _0x58e9a6=_0x1173;_0x427ac0['set']((_0x12bf94[_0x58e9a6(0x358)]??'')+'\x1f'+_0x12bf94[_0x58e9a6(0x244)],_0x12bf94);};for(let _0x4771de of _0x88754b['matchAll'](_n))_0x9e879b({'fieldName':_0x4771de[0x1],'scope':_0x2a71fd(0x259)});_0x88754b=_0x88754b[_0x2a71fd(0x1f8)](vn,(_0x52b3e3,_0x1d2f3a,_0x21aec1,_0x2f7176)=>(_0x9e879b({'tableName':_0x1d2f3a,'fieldName':_0x2f7176,'scope':_0x21aec1[_0x2a71fd(0x1f0)]()==='data'?'data':_0x2a71fd(0x259)}),'\x20')),_0x88754b=_0x88754b[_0x2a71fd(0x1f8)](yn,(_0x495dd6,_0x4b2725,_0xebd2c7)=>(_0x9e879b({'tableName':_0x4b2725,'fieldName':_0xebd2c7,'scope':_0x2a71fd(0x259)}),'\x20')),_0x88754b=_0x88754b[_0x2a71fd(0x1f8)](xn,(_0x5c887d,_0x463e3f,_0x522780,_0x1607e1)=>(_0x9e879b({'fieldName':_0x1607e1,'scope':_0x522780['toLowerCase']()===_0x2a71fd(0x307)?_0x2a71fd(0x307):_0x2a71fd(0x259)}),_0x463e3f+'\x20')),_0x88754b=_0x88754b[_0x2a71fd(0x1f8)](Sn,(_0x2f3695,_0x5e15cf,_0x3b26b4)=>(_0x9e879b({'fieldName':_0x3b26b4,'scope':_0x2a71fd(0x259)}),_0x5e15cf+'\x20'));for(let _0x113805 of _0x88754b[_0x2a71fd(0x21a)](bn))_0x9e879b({'tableName':_0x113805[0x1],'fieldName':_0x113805[0x2]});for(let _0x21408f of _0x88754b[_0x2a71fd(0x21a)](Cn))_0x9e879b({'fieldName':_0x21408f[0x2],'scope':_0x2a71fd(0x259)});return Array[_0x2a71fd(0x146)](_0x427ac0[_0x2a71fd(0x196)]());}function An(_0x3bfd7c){const _0x209467=_0x504a7e;let _0x50a591=Mn(_0x3bfd7c,()=>'\x20')[_0x209467(0x1f8)](_n,'\x20')['replace'](vn,'\x20')[_0x209467(0x1f8)](yn,'\x20')[_0x209467(0x1f8)](xn,_0x209467(0x334))[_0x209467(0x1f8)](Sn,_0x209467(0x334))[_0x209467(0x1f8)](bn,'\x20')[_0x209467(0x1f8)](Cn,_0x209467(0x334));return hn[_0x209467(0x12b)](_0x50a591);}function jn(_0x5441a0,_0x5a235e){return In(Pn(_0x5441a0,_0x5a235e),_0x5a235e);}function Mn(_0x5be261,_0x8532d){return Nn(jn(_0x5be261,_0x8532d),_0x8532d);}function Nn(_0x5d1a6b,_0x195b10){const _0x327280=_0x504a7e;return _0x5d1a6b[_0x327280(0x1f8)](/"(?:""|[^"])*"/g,_0x195b10);}function Pn(_0x51f0cf,_0xc0f113){const _0x2b12af=_0x504a7e;return gn['lastIndex']=0x0,_0x51f0cf[_0x2b12af(0x1f8)](gn,(_0x37bcea,_0x168555)=>Ln(_0x51f0cf,_0x168555)?_0x37bcea:_0xc0f113(_0x37bcea));}const Fn=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function In(_0x2619f,_0x4755a8){const _0xebc292=_0x504a7e;let _0x4d1ec2=[];for(Fn['lastIndex']=0x0;;){let _0x2da61f=Fn[_0xebc292(0x31b)](_0x2619f);if(_0x2da61f==null)break;if(Ln(_0x2619f,_0x2da61f['index']))continue;let _0x100d08=Fn[_0xebc292(0x148)]-0x1,_0x5a5a12=0x0;for(let _0x43cb21=_0x100d08;_0x43cb21<_0x2619f[_0xebc292(0x328)];_0x43cb21++)if(_0x2619f[_0x43cb21]==='['&&_0x5a5a12++,_0x2619f[_0x43cb21]===']'&&(_0x5a5a12--,_0x5a5a12===0x0)){_0x4d1ec2[_0xebc292(0x2b9)]({'start':_0x2da61f[_0xebc292(0x273)],'end':_0x43cb21+0x1}),Fn[_0xebc292(0x148)]=_0x43cb21+0x1;break;}}if(_0x4d1ec2[_0xebc292(0x328)]===0x0)return _0x2619f;let _0x46c3ba='',_0x2c3b77=0x0;for(let _0x403b43 of _0x4d1ec2)_0x46c3ba+=_0x2619f[_0xebc292(0x27d)](_0x2c3b77,_0x403b43[_0xebc292(0x2e7)]),_0x46c3ba+=_0x4755a8(_0x2619f['slice'](_0x403b43[_0xebc292(0x2e7)],_0x403b43['end'])),_0x2c3b77=_0x403b43[_0xebc292(0x2d4)];return _0x46c3ba+_0x2619f[_0xebc292(0x27d)](_0x2c3b77);}function Ln(_0x5417b8,_0xfa655d){let _0x1c22c9=!0x1;for(let _0x5b1c0c=0x0;_0x5b1c0c<_0xfa655d;_0x5b1c0c++)_0x5417b8[_0x5b1c0c]==='\x22'&&(_0x1c22c9&&_0x5417b8[_0x5b1c0c+0x1]==='\x22'?_0x5b1c0c++:_0x1c22c9=!_0x1c22c9);return _0x1c22c9;}function Rn(_0x3ca232,_0x21de5a,_0x3b4a21,_0x3af0fb){const _0x411e7e=_0x504a7e;let _0x32db21=zn(_0x3ca232[_0x411e7e(0x358)],_0x21de5a,_0x3b4a21,_0x3af0fb);return{'table':_0x32db21,'field':_0x32db21?Object['values'](_0x32db21['fields'])[_0x411e7e(0x156)](_0xff370c=>_0xff370c[_0x411e7e(0x121)]===_0x3ca232[_0x411e7e(0x244)]):void 0x0};}function zn(_0x50ae91,_0x131880,_0x49371f,_0x5b070e){const _0x1d4320=_0x504a7e;if(!_0x50ae91)return _0x131880;if(!_0x49371f){var _0xc7555f;let _0x566a3a=_0x50ae91[_0x1d4320(0x1f0)]();return _0x566a3a===_0x131880['id'][_0x1d4320(0x1f0)]()||_0x566a3a===_0x131880[_0x1d4320(0x121)][_0x1d4320(0x1f0)]()||_0x566a3a===((_0xc7555f=_0x131880[_0x1d4320(0x2e6)])==null?void 0x0:_0xc7555f[_0x1d4320(0x1f0)]())?_0x131880:void 0x0;}let _0x5a422d=_0x50ae91[_0x1d4320(0x1f0)](),_0x1e4834=_0x5b070e??_0x18fea7(_0x49371f),_0x1d072a=Object[_0x1d4320(0x196)](_0x49371f[_0x1d4320(0x2c0)])['filter'](_0x15eadb=>{const _0x1c2669=_0x1d4320;var _0x3508b2;return _0x15eadb['id'][_0x1c2669(0x1f0)]()===_0x5a422d||_0x15eadb[_0x1c2669(0x121)]['toLowerCase']()===_0x5a422d||((_0x3508b2=_0x1e4834[_0x1c2669(0x264)](_0x15eadb['id']))==null?void 0x0:_0x3508b2['toLowerCase']())===_0x5a422d||Bn(_0x15eadb['id'])[_0x1c2669(0x1f0)]()===_0x5a422d;});return _0x1d072a[_0x1d4320(0x328)]===0x1?_0x1d072a[0x0]:void 0x0;}function Bn(_0x1dcd20){const _0x383785=_0x504a7e;return _0x383785(0x318)+Array[_0x383785(0x146)](_0x1dcd20,_0x5b6382=>{const _0x469081=_0x383785;var _0x5a8d41;return/[A-Za-z0-9]/[_0x469081(0x12b)](_0x5b6382)?_0x5b6382:'_x'+(((_0x5a8d41=_0x5b6382[_0x469081(0x11e)](0x0))==null?void 0x0:_0x5a8d41['toString'](0x10))??'0')+'_';})[_0x383785(0x300)]('');}const Vn=new wn();function Hn(_0x44a4b3,_0x24ac8f,_0x46b843){const _0x37cd6d=_0x504a7e;var _0x39526e;if(_0x46b843[_0x37cd6d(0x337)]!==_0x27fbfa[_0x37cd6d(0x1ad)])return!0x0;let _0x429ec6=String(((_0x39526e=_0x46b843[_0x37cd6d(0x1df)])==null?void 0x0:_0x39526e[_0x37cd6d(0x247)])??''),_0x53485d=_0x44a4b3[_0x37cd6d(0x181)]();return Vn[_0x37cd6d(0x2a1)](_0x429ec6,_0x53485d['tables'][_0x24ac8f],{'snapshot':_0x53485d})[_0x37cd6d(0x14a)];}function Q(_0x3b0f57,_0x516b09,_0x2bb115){const _0x5a7609=_0x504a7e;let _0x2bf63d=_0x3b0f57['getSnapshot']()[_0x5a7609(0x2c0)][_0x516b09];if(!_0x2bf63d)return!0x1;let {viewIds:_0x4b9b56,fieldIds:_0xfcf16d,recordIds:_0x157f17}=_0x2bb115||{};if(_0x4b9b56){for(let _0x8a803f of _0x4b9b56)if(!_0x2bf63d['views'][_0x8a803f])return!0x1;}if(_0xfcf16d){for(let _0x12dd30 of _0xfcf16d)if(!_0x2bf63d[_0x5a7609(0x1d2)][_0x12dd30])return!0x1;}if(_0x157f17){for(let _0x3dfaf3 of _0x157f17)if(!_0x2bf63d[_0x5a7609(0x1dd)][_0x3dfaf3])return!0x1;}return!0x0;}function Un(_0x5dd943,_0x19458a,_0x2607c0){const _0x5364f5=_0x504a7e;if(_0x2607c0['id']===_0x3fdab9||_0x2607c0[_0x5364f5(0x337)]===_0x27fbfa['RecordId']||_0x2b4e6c(_0x2607c0[_0x5364f5(0x121)])||!Hn(_0x5dd943,_0x19458a,_0x2607c0))return!0x1;let _0x5036e1=_0x5dd943[_0x5364f5(0x181)]();if(!_0xc6290e(_0x5036e1,_0x2607c0)['valid'])return!0x1;if(_0x2607c0['type']!==_0x27fbfa[_0x5364f5(0x23f)])return!0x0;let _0x408c0a=_0x4f3842(_0x2607c0);if(!_0x408c0a)return!0x1;if(_0x408c0a[_0x5364f5(0x2fc)]===void 0x0)return!0x0;if(_0x408c0a[_0x5364f5(0x2fc)]!==_0x3b09d0[_0x5364f5(0x2a4)]||_0x408c0a[_0x5364f5(0x372)]!==_0x19458a||_0x408c0a[_0x5364f5(0x185)]!==!0x1)return!0x1;let _0x2f259f=_0x5036e1[_0x5364f5(0x2c0)][_0x19458a];return!Object[_0x5364f5(0x196)](_0x2f259f['fields'])[_0x5364f5(0x16f)](_0xaae16f=>{const _0x32d438=_0x5364f5;var _0x146a75;return _0xaae16f['id']!==_0x2607c0['id']&&_0xaae16f['type']===_0x27fbfa['RecordLink']&&((_0x146a75=_0x4f3842(_0xaae16f))==null?void 0x0:_0x146a75['relationRole'])===_0x3b09d0[_0x32d438(0x2a4)];});}function Wn(_0x1ef1ea,_0x494683,_0x207947,_0x11c32d){const _0x22b14d=_0x504a7e;var _0x55c246;let _0x596c29=_0x1ef1ea[_0x22b14d(0x181)](),_0x5deb8d=(_0x55c246=_0x596c29[_0x22b14d(0x2c0)][_0x494683])==null?void 0x0:_0x55c246['fields'][_0x207947];if(!_0x5deb8d||_0x5deb8d['id']===_0x3fdab9||_0x5deb8d[_0x22b14d(0x337)]===_0x27fbfa[_0x22b14d(0x30c)])return!0x1;if(_0x5deb8d['type']!==_0x27fbfa[_0x22b14d(0x23f)])return!0x0;let _0xdf6777=qn(_0x11c32d);return _0x245cec(_0x596c29,_0x5deb8d,_0xdf6777)['valid'];}function Gn(_0x7a2cd1,_0x1f67c2,_0x1579a9){const _0x3d8a9f=_0x504a7e;let _0x462fc9=_0x7a2cd1[_0x3d8a9f(0x181)]()[_0x3d8a9f(0x2c0)][_0x1f67c2];return!_0x462fc9||!_0x7e94f6(_0x1579a9['id'])||_0x462fc9[_0x3d8a9f(0x1dd)][_0x1579a9['id']]||Object['prototype'][_0x3d8a9f(0x142)]['call'](_0x1579a9['values'],_0x3fdab9)&&_0x1579a9[_0x3d8a9f(0x196)][_0x3fdab9]!==_0x1579a9['id']?!0x1:Object['entries'](_0x1579a9[_0x3d8a9f(0x196)])[_0x3d8a9f(0x364)](([_0x1173a3,_0x1601b6])=>_0x1173a3===_0x3fdab9||Wn(_0x7a2cd1,_0x1f67c2,_0x1173a3,_0x1601b6));}function Kn(_0x3b13c7){const _0xc7e64d=_0x504a7e;return{..._0x3b13c7,'values':{..._0x3b13c7[_0xc7e64d(0x196)],[_0x3fdab9]:_0x3b13c7['id']}};}function qn(_0x4f447c){const _0x35002b=_0x504a7e;if(_0x4f447c&&typeof _0x4f447c==_0x35002b(0x349)&&!Array[_0x35002b(0x216)](_0x4f447c)&&'v'in _0x4f447c){let _0x37df12=_0x4f447c['v'];return _0x37df12===void 0x0?null:_0x37df12;}return _0x4f447c;}function Jn(_0x2805a3,_0x44aa4c,_0x30acc3,_0x1d4662){const _0x541572=_0x504a7e;let _0x3808db=_0x2805a3[_0x541572(0x181)]()[_0x541572(0x2c0)][_0x44aa4c];if(!_0x3808db)return null;let _0x4d0861=_0xed19c9(_0x3808db),_0x22cbb6=_0x4d0861??_0x30e703(_0x3808db),_0x1ed351=_0x30acc3[_0x541572(0x16f)](_0x1979a3=>Object['prototype'][_0x541572(0x142)][_0x541572(0x2f2)](_0x1979a3[_0x541572(0x196)],_0x22cbb6)),_0x36459b=_0x4d0861?_0x3808db[_0x541572(0x1d2)][_0x4d0861]:_0x1ed351?_0x4e974f(_0x3808db,_0x22cbb6,_0x1d4662):null,_0x3c4a3c=[];for(let _0x397e2f of _0x30acc3){let _0x172cea=_0x397e2f[_0x541572(0x196)][_0x22cbb6],_0x26ae98=_0x36459b!==null&&Object[_0x541572(0x120)][_0x541572(0x142)][_0x541572(0x2f2)](_0x397e2f['values'],_0x22cbb6),_0x1cddaa=qn(_0x172cea),_0x598172=null;if(_0x26ae98){if(typeof _0x1cddaa!=_0x541572(0x1e9)||!_0x1b5ce2(_0x1cddaa,!0x1)[_0x541572(0x14a)])return null;_0x598172=_0x1cddaa;}let _0x472dc4={};if(Object[_0x541572(0x2a2)](_0x397e2f[_0x541572(0x196)])[_0x541572(0x17e)](([_0xeeb16f,_0x20e297])=>{_0x26ae98&&_0xeeb16f===_0x22cbb6||(_0x472dc4[_0xeeb16f]=_0x20e297);}),!Gn(_0x2805a3,_0x44aa4c,{..._0x397e2f,'values':_0x472dc4}))return null;let _0x4e022f={..._0x397e2f['values']};_0x598172!==null&&(_0x4e022f[_0x22cbb6]=_0x598172),_0x3c4a3c[_0x541572(0x2b9)](Kn({..._0x397e2f,'values':_0x4e022f}));}return{'records':_0x3c4a3c,'hierarchyFieldToMaterialize':_0x4d0861?null:_0x36459b,'hierarchyChanges':_0x52fa6c(_0x3808db,_0x3c4a3c)};}const Yn={'id':_0x504a7e(0x34a),'type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x41e6f5,_0x1762e5){const _0x2b0344=_0x504a7e;if(!_0x1762e5)return!0x1;let _0x1d66ec=_0x41e6f5[_0x2b0344(0x264)](_0x2f75e2),{unitId:_0x5924bc,tableId:_0x215701,records:_0x561c55}=_0x1762e5,_0x7b3cd7=_0x1d66ec[_0x2b0344(0x102)](_0x5924bc,_0x17555f[_0x2b0344(0x32a)]),_0x3b74be=_0x561c55['map'](_0x4c998b=>_0x4c998b['id']);if(!_0x7b3cd7||!Q(_0x7b3cd7,_0x215701)||new Set(_0x3b74be)[_0x2b0344(0x1ea)]!==_0x3b74be[_0x2b0344(0x328)])return!0x1;let _0x34fd15=_0x41e6f5[_0x2b0344(0x264)](_0x27da3e),_0x58b05c=_0x41e6f5[_0x2b0344(0x264)](_0xe641a2),_0x523537=_0x41e6f5[_0x2b0344(0x264)](Z),_0x13a6da=_0x7b3cd7[_0x2b0344(0x181)](),_0x4fec11=Jn(_0x7b3cd7,_0x215701,_0x561c55);if(!_0x4fec11)return!0x1;let {records:_0x25ccfc,hierarchyChanges:_0x47c987,hierarchyFieldToMaterialize:_0x254c58}=_0x4fec11,_0x33d050=_0x254c58?_0x523537['createCreateFieldOp'](_0x7b3cd7,_0x215701,_0x254c58,_0x13a6da[_0x2b0344(0x2c0)][_0x215701][_0x2b0344(0x260)][_0x2b0344(0x328)]):null,_0x17f954=_0x523537[_0x2b0344(0x1e0)](_0x7b3cd7,_0x215701,_0x25ccfc),_0x1e4da8=_0x19c406([..._0x33d050?[_0x33d050]:[],_0x17f954]),_0x48c0d2=new _0x2be14e()[_0x2b0344(0x34d)](_0x13a6da,_0x1e4da8),_0x469b54={'unitId':_0x5924bc,'op':_0x1e4da8,'hierarchyChanges':_0x47c987[_0x2b0344(0x328)]?_0x47c987:void 0x0,'source':_0x47c987[_0x2b0344(0x328)]?_0x1762e5[_0x2b0344(0x2cf)]??'ui':void 0x0},_0xd778a2={..._0x469b54,'source':_0x47c987['length']?'redo':void 0x0},_0xc3e41b={'unitId':_0x5924bc,'op':_0x48c0d2,'hierarchyChanges':_0x47c987[_0x2b0344(0x328)]?_0x47c987[_0x2b0344(0x19b)](_0x5bfc8a=>({..._0x5bfc8a,'oldParentRecordId':_0x5bfc8a[_0x2b0344(0x195)],'parentRecordId':null})):void 0x0,'source':_0x47c987[_0x2b0344(0x328)]?_0x2b0344(0x27e):void 0x0};return _0x34fd15[_0x2b0344(0x352)](_0x1a9379['id'],_0x469b54)?(_0x1d66ec['focusUnit'](_0x5924bc),_0x58b05c[_0x2b0344(0x286)]({'unitID':_0x5924bc,'undoMutations':[{'id':_0x1a9379['id'],'params':_0xc3e41b}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0xd778a2}]}),!0x0):!0x1;}},Xn={'id':_0x504a7e(0x305),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x548837,_0x5c6fd5)=>{const _0x1d781c=_0x504a7e;if(!_0x5c6fd5)return!0x1;let _0x8e062c=_0x548837[_0x1d781c(0x264)](_0x2f75e2),{unitId:_0x3f6d4f,tableId:_0x15d8f3,recordIds:_0x12eddd}=_0x5c6fd5,_0x43e523=_0x8e062c[_0x1d781c(0x102)](_0x3f6d4f,_0x17555f['UNIVER_BASE']);if(!_0x43e523||!Q(_0x43e523,_0x15d8f3,{'recordIds':_0x12eddd}))return!0x1;let _0x47a084=_0x548837[_0x1d781c(0x264)](_0x27da3e),_0x5c8e72=_0x548837['get'](_0xe641a2),_0x559887=_0x43e523[_0x1d781c(0x181)](),_0x1483d8=_0x120f28(_0x559887[_0x1d781c(0x2c0)][_0x15d8f3],_0x12eddd),_0x559772=new q(),_0x274e18=new _0x2be14e(),_0x57f9c3=_0x559772[_0x1d781c(0x2af)](_0x559887,_0x15d8f3,_0x12eddd),_0x133044=_0x274e18['applyOp'](_0x559887,_0x57f9c3),_0x32aec3=_0x559772[_0x1d781c(0x343)](_0x559887,_0x133044,_0x15d8f3,_0x12eddd),_0x1b0b5d={'unitId':_0x3f6d4f,'op':_0x57f9c3,'hierarchyChanges':_0x1483d8,'source':_0x5c6fd5[_0x1d781c(0x2cf)]??'ui'},_0x381984={..._0x1b0b5d,'source':_0x1d781c(0x2d9)},_0x302ac6={'unitId':_0x3f6d4f,'op':_0x32aec3,'hierarchyChanges':_0x1483d8[_0x1d781c(0x19b)](_0x5afa56=>({..._0x5afa56,'oldParentRecordId':_0x5afa56[_0x1d781c(0x195)],'parentRecordId':_0x5afa56[_0x1d781c(0x17a)]})),'source':_0x1d781c(0x27e)};return _0x47a084[_0x1d781c(0x352)](_0x1a9379['id'],_0x1b0b5d)?(_0x8e062c['focusUnit'](_0x3f6d4f),_0x5c8e72[_0x1d781c(0x286)]({'unitID':_0x3f6d4f,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x302ac6}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x381984}]}),!0x0):!0x1;}},Zn={'id':_0x504a7e(0x277),'type':_0x833d37['COMMAND'],'handler':(_0x29ab47,_0x387e65)=>{const _0x19464c=_0x504a7e;if(!_0x387e65)return!0x1;let _0x1e0c77=_0x29ab47[_0x19464c(0x264)](_0x2f75e2),{unitId:_0x5c3805,tableId:_0x4422dc,fieldId:_0x271111,input:_0x28b308}=_0x387e65,_0x4f6d54=_0x1e0c77[_0x19464c(0x102)](_0x5c3805,_0x17555f[_0x19464c(0x32a)]);if(!_0x4f6d54||_0x271111===_0x3fdab9||!Q(_0x4f6d54,_0x4422dc,{'fieldIds':[_0x271111]}))return!0x1;let _0xfa06c=_0x29ab47['get'](_0x27da3e),_0x34ca4e=_0x29ab47[_0x19464c(0x264)](_0xe641a2),_0x1bbfa2=_0x4f6d54[_0x19464c(0x181)]();if(!Un(_0x4f6d54,_0x4422dc,{..._0x1bbfa2['tables'][_0x4422dc]['fields'][_0x271111],..._0x28b308}))return!0x1;let _0x577e32=new q()['changeFieldType'](_0x1bbfa2,_0x4422dc,_0x271111,_0x28b308),_0x287a24=new _0x2be14e()['invertOp'](_0x1bbfa2,_0x577e32),_0x41080f={'unitId':_0x5c3805,'op':_0x577e32},_0x477353={'unitId':_0x5c3805,'op':_0x287a24};return _0xfa06c['syncExecuteCommand'](_0x1a9379['id'],_0x41080f)?(_0x1e0c77[_0x19464c(0x227)](_0x5c3805),_0x34ca4e[_0x19464c(0x286)]({'unitID':_0x5c3805,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x477353}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x41080f}]}),!0x0):!0x1;}},Qn={'id':_0x504a7e(0x1b8),'type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x387077,_0x3c63ac){const _0x3f936e=_0x504a7e;var _0x3dfc5b;if(!_0x3c63ac)return!0x1;let {unitId:_0xd3dd29,tableId:_0x385d1f,parentRecordId:_0x31261d}=_0x3c63ac,_0x377dc8=_0x387077[_0x3f936e(0x264)](_0x2f75e2),_0x1c7e46=_0x377dc8[_0x3f936e(0x102)](_0xd3dd29,_0x17555f['UNIVER_BASE']);if(!_0x1c7e46||!Q(_0x1c7e46,_0x385d1f,{'recordIds':[_0x31261d]}))throw new _0x3798c4(_0x3f936e(0x2a0));let _0x5dd580=_0x1c7e46[_0x3f936e(0x181)](),_0x491fb9=_0x5dd580[_0x3f936e(0x2c0)][_0x385d1f],_0x474208=_0xed19c9(_0x491fb9),_0x4f5972=_0x474208??_0x3c63ac['fieldId']??_0x30e703(_0x491fb9);if(_0x474208&&_0x3c63ac[_0x3f936e(0x12c)]&&_0x3c63ac[_0x3f936e(0x12c)]!==_0x474208||_0x491fb9[_0x3f936e(0x1d2)][_0x4f5972]&&!_0x2b5e99(_0x491fb9,_0x4f5972))throw new _0x3798c4(_0x3f936e(0x1bd));if((_0x3ac0ab(_0x491fb9,_0x4f5972)['depthByRecordId'][_0x3f936e(0x264)](_0x31261d)??0x0)+0x1>=0x5)throw new _0x3798c4(_0x3f936e(0x2e4));if(!Gn(_0x1c7e46,_0x385d1f,_0x3c63ac[_0x3f936e(0x30f)]))return!0x1;let _0x2f9043=Kn({..._0x3c63ac[_0x3f936e(0x30f)],'values':{..._0x3c63ac['record'][_0x3f936e(0x196)],[_0x4f5972]:_0x18699a([_0x31261d])}}),_0x2f2d11=_0x387077[_0x3f936e(0x264)](Z),_0x18567c=new q(),_0x4d52f9=_0x491fb9[_0x3f936e(0x1d2)][_0x4f5972],_0x2105ff=_0x4d52f9?((_0x3dfc5b=_0x4f3842(_0x4d52f9))==null?void 0x0:_0x3dfc5b[_0x3f936e(0x2fc)])===_0x3b09d0[_0x3f936e(0x2a4)]?null:_0x18567c['updateField'](_0x5dd580,_0x385d1f,_0x4f5972,{'config':{..._0x4d52f9[_0x3f936e(0x1df)],'relationRole':_0x3b09d0[_0x3f936e(0x2a4)]}}):_0x2f2d11['createCreateFieldOp'](_0x1c7e46,_0x385d1f,_0x4e974f(_0x491fb9,_0x4f5972,_0x3c63ac['parentFieldName']),_0x491fb9[_0x3f936e(0x260)][_0x3f936e(0x328)]),_0x514b57=_0x2f2d11[_0x3f936e(0x310)](_0x1c7e46,_0x385d1f,_0x2f9043),_0x32fff6=_0x19c406([..._0x2105ff?[_0x2105ff]:[],_0x514b57]),_0x1c1965=new _0x2be14e()[_0x3f936e(0x34d)](_0x5dd580,_0x32fff6),_0xe8e748={'tableId':_0x385d1f,'fieldId':_0x4f5972,'recordId':_0x2f9043['id'],'oldParentRecordId':null,'parentRecordId':_0x31261d},_0x3934de={'unitId':_0xd3dd29,'op':_0x32fff6,'trigger':Qn['id'],'hierarchyChanges':[_0xe8e748],'source':_0x3c63ac[_0x3f936e(0x2cf)]??'ui'},_0x5e5ca5={..._0x3934de,'source':_0x3f936e(0x2d9)},_0x4fa144={'unitId':_0xd3dd29,'op':_0x1c1965,'trigger':Qn['id'],'hierarchyChanges':[{..._0xe8e748,'oldParentRecordId':_0x31261d,'parentRecordId':null}],'source':'undo'};return _0x387077[_0x3f936e(0x264)](_0x27da3e)[_0x3f936e(0x352)](_0x1a9379['id'],_0x3934de)?(_0x377dc8[_0x3f936e(0x227)](_0xd3dd29),_0x387077[_0x3f936e(0x264)](_0xe641a2)[_0x3f936e(0x286)]({'unitID':_0xd3dd29,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x4fa144}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x5e5ca5}]}),!0x0):!0x1;}},$n={'id':'base.command.create-base-field','type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x48b32a,_0x3ffaf0){const _0xf27d33=_0x504a7e;if(!_0x3ffaf0)return!0x1;let _0x3c29b9=_0x48b32a[_0xf27d33(0x264)](_0x2f75e2),{unitId:_0x163140,tableId:_0x36ef99,field:_0x187385,index:_0xbfd981,viewIndexes:_0x39fbf2}=_0x3ffaf0,_0x1c0261=_0x3c29b9['getUnit'](_0x163140,_0x17555f[_0xf27d33(0x32a)]);if(!_0x1c0261||!Q(_0x1c0261,_0x36ef99)||_0x1c0261[_0xf27d33(0x181)]()['tables'][_0x36ef99]['fields'][_0x187385['id']]||_0xbfd981===0x0||!Un(_0x1c0261,_0x36ef99,_0x187385))return!0x1;let _0x4bf340=_0x48b32a[_0xf27d33(0x264)](_0x27da3e),_0x38acbd=_0x48b32a['get'](_0xe641a2),_0x2dd1d0=_0x48b32a[_0xf27d33(0x264)](Z)['createCreateFieldOp'](_0x1c0261,_0x36ef99,_0x187385,_0xbfd981,_0x39fbf2),_0x532494=new _0x2be14e()[_0xf27d33(0x34d)](_0x1c0261[_0xf27d33(0x181)](),_0x2dd1d0),_0x55f8f2={'unitId':_0x163140,'op':_0x2dd1d0},_0x347811={'unitId':_0x163140,'op':_0x532494};return _0x4bf340[_0xf27d33(0x352)](_0x1a9379['id'],_0x55f8f2)?(_0x3c29b9[_0xf27d33(0x227)](_0x163140),_0x38acbd[_0xf27d33(0x286)]({'unitID':_0x163140,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x347811}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x55f8f2}]}),!0x0):!0x1;}},er={'id':'base.command.create-base-record','type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x2371cf,_0x70d814){const _0x4caf56=_0x504a7e;if(!_0x70d814)return!0x1;let _0x1ffa51=_0x2371cf[_0x4caf56(0x264)](_0x2f75e2),{unitId:_0x195a91,tableId:_0x387a79,record:_0x40d274}=_0x70d814,_0x1e8505=_0x1ffa51[_0x4caf56(0x102)](_0x195a91,_0x17555f[_0x4caf56(0x32a)]);if(!_0x1e8505||!Q(_0x1e8505,_0x387a79))return!0x1;let _0x43ec0a=_0x2371cf[_0x4caf56(0x264)](_0x27da3e),_0x1a8f38=_0x2371cf[_0x4caf56(0x264)](_0xe641a2),_0x1d6b11=_0x2371cf[_0x4caf56(0x264)](Z),_0x35eef2=_0x1e8505['getSnapshot'](),_0x5da3b9=Jn(_0x1e8505,_0x387a79,[_0x40d274]);if(!_0x5da3b9)return!0x1;let [_0x2c90af]=_0x5da3b9['records'],{hierarchyChanges:_0x18e599,hierarchyFieldToMaterialize:_0x5a1ce6}=_0x5da3b9,_0x381fde=_0x5a1ce6?_0x1d6b11[_0x4caf56(0x15c)](_0x1e8505,_0x387a79,_0x5a1ce6,_0x35eef2['tables'][_0x387a79][_0x4caf56(0x260)][_0x4caf56(0x328)]):null,_0x3020ce=_0x1d6b11['createCreateRecordOp'](_0x1e8505,_0x387a79,_0x2c90af),_0x40693b=_0x19c406([..._0x381fde?[_0x381fde]:[],_0x3020ce]),_0x2bf645=new _0x2be14e()[_0x4caf56(0x34d)](_0x35eef2,_0x40693b),_0x3c88af={'unitId':_0x195a91,'op':_0x40693b,'hierarchyChanges':_0x18e599['length']?_0x18e599:void 0x0,'source':_0x18e599[_0x4caf56(0x328)]?_0x70d814[_0x4caf56(0x2cf)]??'ui':void 0x0},_0x10fdf5={..._0x3c88af,'source':_0x18e599[_0x4caf56(0x328)]?_0x4caf56(0x2d9):void 0x0},_0x2b19cb={'unitId':_0x195a91,'op':_0x2bf645,'hierarchyChanges':_0x18e599[_0x4caf56(0x328)]?_0x18e599[_0x4caf56(0x19b)](_0x25462a=>({..._0x25462a,'oldParentRecordId':_0x25462a[_0x4caf56(0x195)],'parentRecordId':null})):void 0x0,'source':_0x18e599[_0x4caf56(0x328)]?_0x4caf56(0x27e):void 0x0};return _0x43ec0a[_0x4caf56(0x352)](_0x1a9379['id'],_0x3c88af)?(_0x1ffa51[_0x4caf56(0x227)](_0x195a91),_0x1a8f38[_0x4caf56(0x286)]({'unitID':_0x195a91,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x2b19cb}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x10fdf5}]}),!0x0):!0x1;}},tr=_0x504a7e(0x2d2);function nr(_0x4f576e,_0x17dfe8,_0x1179e5){const _0x55e9b1=_0x504a7e;if(!_0x17dfe8['trim']())return{'valid':!0x1,'reason':_0x55e9b1(0x123),'error':_0x55e9b1(0x28e)};if(_0x17dfe8[_0x55e9b1(0x328)]>0x1f)return{'valid':!0x1,'reason':_0x55e9b1(0x341),'error':_0x55e9b1(0x1ce)};if(_0x17dfe8[_0x55e9b1(0x280)]('\x27')||_0x17dfe8[_0x55e9b1(0x34e)]('\x27'))return{'valid':!0x1,'reason':_0x55e9b1(0x22b),'error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x55e9b1(0x12b)](_0x17dfe8))return{'valid':!0x1,'reason':_0x55e9b1(0x136),'error':_0x55e9b1(0x350)};if(!_0x225269(_0x17dfe8))return{'valid':!0x1,'reason':_0x55e9b1(0x263),'error':_0x55e9b1(0x12d)};let _0x47df38=_0x17dfe8[_0x55e9b1(0x1f0)]();return Object[_0x55e9b1(0x196)](_0x4f576e[_0x55e9b1(0x2c0)])[_0x55e9b1(0x16f)](_0x14e1f6=>_0x14e1f6['id']!==_0x1179e5&&_0x14e1f6[_0x55e9b1(0x121)][_0x55e9b1(0x1f0)]()===_0x47df38)?{'valid':!0x1,'reason':_0x55e9b1(0x1d0),'error':'duplicate'}:{'valid':!0x0};}function rr(_0x6214da,_0x50bbb9){const _0x254c9d=_0x504a7e;let _0x2aa03c=_0x50bbb9[_0x254c9d(0x1f8)](/[:\\/?*\[\]]/g,'\x20')['replace'](/^'+|'+$/g,'')['trim']()||_0x254c9d(0x10c),_0x499d42=0x1;for(;;){let _0x4009ed=_0x499d42===0x1?'':'\x20'+_0x499d42,_0x5c8441=''+_0x2aa03c[_0x254c9d(0x27d)](0x0,0x1f-_0x4009ed['length'])+_0x4009ed;if(nr(_0x6214da,_0x5c8441)['valid'])return _0x5c8441;_0x499d42++;}}const ir={'id':_0x504a7e(0xf3),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0xfac85f,_0x256ab7)=>{const _0x470db8=_0x504a7e;if(!_0x256ab7)return!0x1;let _0x539dcd=_0xfac85f[_0x470db8(0x264)](_0x2f75e2),{unitId:_0x4e4083,table:_0x57cd49,index:_0x2abb87}=_0x256ab7,_0x4f03d3=_0x539dcd['getUnit'](_0x4e4083,_0x17555f['UNIVER_BASE']);if(!_0x4f03d3||_0x4f03d3[_0x470db8(0x181)]()[_0x470db8(0x2c0)][_0x57cd49['id']]||!nr(_0x4f03d3[_0x470db8(0x181)](),_0x57cd49[_0x470db8(0x121)])[_0x470db8(0x14a)])return!0x1;try{_0x514998(_0x57cd49);}catch{return!0x1;}let _0x2bc14b=_0xfac85f['get'](_0x27da3e),_0x3eea6c=_0xfac85f[_0x470db8(0x264)](_0xe641a2),_0x3075b2=_0x4f03d3[_0x470db8(0x181)](),_0xe555=new q()[_0x470db8(0x20e)](_0x3075b2,_0x57cd49,_0x2abb87),_0x4e186e=new _0x2be14e()[_0x470db8(0x34d)](_0x3075b2,_0xe555),_0x422bdc={'unitId':_0x4e4083,'op':_0xe555},_0x1d7675={'unitId':_0x4e4083,'op':_0x4e186e};return _0x2bc14b[_0x470db8(0x352)](_0x1a9379['id'],_0x422bdc)?(_0x539dcd[_0x470db8(0x227)](_0x4e4083),_0x3eea6c['pushUndoRedo']({'unitID':_0x4e4083,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x1d7675}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x422bdc}]}),!0x0):!0x1;}};function ar(_0x4b7a80,_0x166092,_0x4230dc=[]){const _0x2c3a4d=_0x504a7e;let _0x1cba3a=new Set([...Object[_0x2c3a4d(0x196)](_0x4b7a80[_0x2c3a4d(0x1d2)])['filter'](_0x5238fd=>_0x5238fd)['map'](_0x11acf9=>_0x11acf9['name']),..._0x4230dc['map'](_0x4c4225=>_0x4c4225[_0x2c3a4d(0x121)])]);if(!_0x1cba3a[_0x2c3a4d(0x34c)](_0x166092))return _0x166092;let _0x4c7a3f=0x2;for(;_0x1cba3a[_0x2c3a4d(0x34c)](_0x166092+'\x20'+_0x4c7a3f);)_0x4c7a3f++;return _0x166092+'\x20'+_0x4c7a3f;}function or(_0x2aa597,_0x7d5a19){const _0x3d191f=_0x504a7e;if(!_0x2aa597||!_0x7d5a19[_0x3d191f(0x328)])return;let _0x29a6bf=[..._0x2aa597];return _0x7d5a19[_0x3d191f(0x17e)](_0x55585f=>{_0x29a6bf['includes'](_0x55585f)||_0x29a6bf['push'](_0x55585f);}),_0x29a6bf;}const sr={'options':[{'id':_0x504a7e(0x1a6),'name':_0x504a7e(0x299),'color':_0x504a7e(0x294)},{'id':'doing','name':'Doing','color':_0x504a7e(0xf8)},{'id':'done','name':_0x504a7e(0x160),'color':_0x504a7e(0x103)}]},cr={'locale':_0x504a7e(0x22f),'pattern':'yyyy/mm/dd','includeTime':!0x1,'hourCycle':_0x504a7e(0x17d),'defaultMode':_0x504a7e(0x18e)};function lr(_0x258665,_0x12aa1a,_0x566c6d,_0x1fa5b0){const _0x5100eb=_0x504a7e;var _0x5ea6a0;let _0x186fb6=new q(),_0x196a7b=_0x258665[_0x5100eb(0x2c0)][_0x12aa1a],_0x55bb11=_0x196a7b?{..._0x566c6d,'fieldOrder':[_0x3fdab9,...(_0x566c6d[_0x5100eb(0x260)]??_0x196a7b['fieldOrder'])[_0x5100eb(0x231)](_0xdad21b=>_0xdad21b!==_0x3fdab9)],'fieldSettings':{..._0x566c6d[_0x5100eb(0x321)],[_0x3fdab9]:{...(_0x5ea6a0=_0x566c6d['fieldSettings'])==null?void 0x0:_0x5ea6a0[_0x3fdab9],'hidden':!0x0}}}:_0x566c6d;if(_0x196a7b&&_0x55bb11['type']===_0x5100eb(0x262)){let _0x57cad9=dr(_0x196a7b,_0x55bb11),_0xb118cd=_0x57cad9['changed']?{..._0x55bb11,'config':_0x57cad9['config'],'fieldOrder':_0x57cad9[_0x5100eb(0x260)]??_0x55bb11['fieldOrder']}:_0x55bb11;return _0x19c406([..._0x57cad9[_0x5100eb(0x1d2)]['map'](_0x1dd057=>_0x186fb6['createField'](_0x258665,_0x12aa1a,{'field':_0x1dd057})),_0x186fb6[_0x5100eb(0x183)](_0x258665,_0x12aa1a,_0xb118cd,_0x1fa5b0)]);}if(!_0x196a7b||_0x55bb11[_0x5100eb(0x337)]!=='calendar'&&_0x55bb11[_0x5100eb(0x337)]!==_0x5100eb(0x35f))return _0x186fb6[_0x5100eb(0x183)](_0x258665,_0x12aa1a,_0x55bb11,_0x1fa5b0);let _0x4596eb=ur(_0x196a7b,_0x55bb11),_0x571ac8=_0x4596eb[_0x5100eb(0x2a8)]?{..._0x55bb11,'config':_0x4596eb[_0x5100eb(0x1df)],'fieldOrder':_0x4596eb['fieldOrder']??_0x55bb11['fieldOrder']}:_0x55bb11;return _0x55bb11['type']===_0x5100eb(0x35f)&&mr(_0x55bb11)&&(_0x571ac8=hr(_0x196a7b,_0x571ac8,_0x4596eb[_0x5100eb(0x1d2)])),_0x19c406([..._0x4596eb[_0x5100eb(0x1d2)][_0x5100eb(0x19b)](_0x214085=>_0x186fb6[_0x5100eb(0x19a)](_0x258665,_0x12aa1a,{'field':_0x214085})),_0x186fb6[_0x5100eb(0x183)](_0x258665,_0x12aa1a,_0x571ac8,_0x1fa5b0)]);}function ur(_0x227552,_0x2fb692,_0x37c7a6=!0x1){const _0x63cbc2=_0x504a7e;var _0x269ea0,_0x12fabd;let _0x4285dc=_0x227552[_0x63cbc2(0x260)][_0x63cbc2(0x231)](_0xfdf396=>_r(_0x227552,_0xfdf396)),_0x1a29a3=[],_0x212f2f={..._0x2fb692['config']??{}},_0x161c01=typeof _0x212f2f['startDateFieldId']==_0x63cbc2(0x1e9)&&_r(_0x227552,_0x212f2f[_0x63cbc2(0x36a)])?_0x212f2f[_0x63cbc2(0x36a)]:_0x4285dc[0x0],_0x204a14=typeof _0x212f2f[_0x63cbc2(0x1bf)]=='string'&&_r(_0x227552,_0x212f2f[_0x63cbc2(0x1bf)])&&_0x212f2f['endDateFieldId']!==_0x161c01?_0x212f2f[_0x63cbc2(0x1bf)]:_0x4285dc[_0x63cbc2(0x156)](_0x39e388=>_0x39e388!==_0x161c01);if(!_0x161c01){let _0x3e7dd4=vr(_0x227552,_0x1a29a3,_0x2fb692[_0x63cbc2(0x337)]===_0x63cbc2(0x35f)?_0x63cbc2(0x109):'Date');_0x1a29a3['push'](_0x3e7dd4),_0x161c01=_0x3e7dd4['id'];}if((_0x2fb692[_0x63cbc2(0x337)]===_0x63cbc2(0x35f)||_0x37c7a6)&&!_0x204a14){let _0x431855=vr(_0x227552,_0x1a29a3,_0x63cbc2(0x276));_0x1a29a3[_0x63cbc2(0x2b9)](_0x431855),_0x204a14=_0x431855['id'];}_0x2fb692[_0x63cbc2(0x337)]===_0x63cbc2(0x20c)&&!_0x204a14&&delete _0x212f2f[_0x63cbc2(0x1bf)],_0x212f2f[_0x63cbc2(0x36a)]=_0x161c01,_0x2fb692[_0x63cbc2(0x337)]===_0x63cbc2(0x20c)&&_0x204a14&&(_0x212f2f['endDateFieldId']=_0x204a14),_0x2fb692[_0x63cbc2(0x337)]===_0x63cbc2(0x35f)&&(_0x212f2f['endDateFieldId']=_0x204a14??_0x161c01);let _0x48137d=or(_0x2fb692[_0x63cbc2(0x260)],_0x1a29a3[_0x63cbc2(0x19b)](_0x1d6e6d=>_0x1d6e6d['id']));return{'changed':_0x1a29a3['length']>0x0||_0x212f2f['startDateFieldId']!==((_0x269ea0=_0x2fb692['config'])==null?void 0x0:_0x269ea0[_0x63cbc2(0x36a)])||_0x212f2f[_0x63cbc2(0x1bf)]!==((_0x12fabd=_0x2fb692['config'])==null?void 0x0:_0x12fabd[_0x63cbc2(0x1bf)])||!(!_0x48137d||_0x1e2b57[_0x63cbc2(0x220)](_0x48137d,_0x2fb692[_0x63cbc2(0x260)]??[])),'fields':_0x1a29a3,'config':_0x212f2f,'fieldOrder':_0x48137d};}function dr(_0x2fa164,_0x5539aa){const _0x14db30=_0x504a7e;var _0x5a03e4;let _0xa891f=[],_0x433a1a={..._0x5539aa[_0x14db30(0x1df)]??{}},_0x3b0746=typeof _0x433a1a[_0x14db30(0x2b6)]==_0x14db30(0x1e9)&&fr(_0x2fa164,_0x433a1a[_0x14db30(0x2b6)])?_0x433a1a[_0x14db30(0x2b6)]:_0x2fa164['fieldOrder'][_0x14db30(0x156)](_0x5be2f7=>fr(_0x2fa164,_0x5be2f7));if(!_0x3b0746){let _0x49c4d9=pr(_0x2fa164,_0xa891f);_0xa891f[_0x14db30(0x2b9)](_0x49c4d9),_0x3b0746=_0x49c4d9['id'];}_0x433a1a[_0x14db30(0x2b6)]=_0x3b0746;let _0x1fc727=or(_0x5539aa[_0x14db30(0x260)],_0xa891f[_0x14db30(0x19b)](_0x54d574=>_0x54d574['id']));return{'changed':_0xa891f[_0x14db30(0x328)]>0x0||_0x433a1a[_0x14db30(0x2b6)]!==((_0x5a03e4=_0x5539aa['config'])==null?void 0x0:_0x5a03e4[_0x14db30(0x2b6)])||!(!_0x1fc727||_0x1e2b57['diffValue'](_0x1fc727,_0x5539aa[_0x14db30(0x260)]??[])),'fields':_0xa891f,'config':_0x433a1a,'fieldOrder':_0x1fc727};}function fr(_0x1233c0,_0xd33bab){const _0x1f8bae=_0x504a7e;let _0x345d68=_0xd33bab?_0x1233c0[_0x1f8bae(0x1d2)][_0xd33bab]:null;return _0x345d68?[_0x27fbfa['SingleSelect'],_0x27fbfa[_0x1f8bae(0x14f)],_0x27fbfa[_0x1f8bae(0x145)],_0x27fbfa[_0x1f8bae(0x361)],_0x27fbfa['Group'],_0x27fbfa[_0x1f8bae(0x12e)]][_0x1f8bae(0x1bb)](_0x345d68['type']):!0x1;}function pr(_0x510c04,_0x78626e){const _0x6a9d0e=_0x504a7e;return{'id':_0x6a9d0e(0x2f1)+_0x238c0d(0x8),'name':ar(_0x510c04,_0x6a9d0e(0x133),_0x78626e),'type':_0x27fbfa[_0x6a9d0e(0x178)],'config':_0x1e2b57['deepClone'](sr)};}function mr(_0x25130d){const _0x371db4=_0x504a7e;return Object[_0x371db4(0x1b9)](_0x25130d[_0x371db4(0x1df)]??{})[_0x371db4(0x328)]===0x0&&Object['keys'](_0x25130d['fieldSettings']??{})['length']===0x0;}function hr(_0xeee1cb,_0x68b7bb,_0x412b33){const _0x36019f=_0x504a7e;let _0xc4d767={..._0x68b7bb['config']??{}},_0x57f4ce=_0x412b33[_0x36019f(0x19b)](_0x5733db=>_0x5733db['id']),_0x3ea444=[..._0xeee1cb['fieldOrder'],..._0x57f4ce],_0x337be5=typeof _0xc4d767[_0x36019f(0x130)]==_0x36019f(0x1e9)&&gr(_0xeee1cb,_0x412b33,_0xc4d767[_0x36019f(0x130)])?_0xc4d767[_0x36019f(0x130)]:_0xeee1cb[_0x36019f(0x2f7)],_0x2a6363=typeof _0xc4d767['startDateFieldId']==_0x36019f(0x1e9)?_0xc4d767['startDateFieldId']:'',_0x5b352d=typeof _0xc4d767['endDateFieldId']==_0x36019f(0x1e9)?_0xc4d767[_0x36019f(0x1bf)]:_0x2a6363,_0x4e8c74=new Set([_0x337be5,_0x2a6363,_0x5b352d][_0x36019f(0x231)](_0x25916a=>_0x25916a&&gr(_0xeee1cb,_0x412b33,_0x25916a))),_0x27c371=Object['fromEntries'](_0x3ea444[_0x36019f(0x322)](_0x30c2b8=>_0x4e8c74['has'](_0x30c2b8)||!gr(_0xeee1cb,_0x412b33,_0x30c2b8)?[]:[[_0x30c2b8,{'hidden':!0x0}]]));return{..._0x68b7bb,'config':{..._0xc4d767,'titleFieldId':_0x337be5},'fieldSettings':_0x27c371};}function gr(_0x2ca8f9,_0x50f27d,_0x5b756b){const _0x535c9f=_0x504a7e;return!!(_0x2ca8f9[_0x535c9f(0x1d2)][_0x5b756b]??_0x50f27d[_0x535c9f(0x156)](_0x5ae111=>_0x5ae111['id']===_0x5b756b))&&!0x0;}function _r(_0x2eaa68,_0x4a5548){const _0x5baa23=_0x504a7e;let _0x4d7203=_0x4a5548?_0x2eaa68[_0x5baa23(0x1d2)][_0x4a5548]:null;return!!_0x4d7203&&_0x4d7203[_0x5baa23(0x337)]===_0x27fbfa['Date']&&_0x4d7203['readonly']!==!0x0&&_0x4d7203[_0x5baa23(0x1ba)]!==!0x0;}function vr(_0x15c92e,_0x16f5a4,_0x53cd4f){const _0xb056d5=_0x504a7e;let _0xb0476b=new Set([...Object[_0xb056d5(0x1b9)](_0x15c92e[_0xb056d5(0x1d2)]),..._0x16f5a4[_0xb056d5(0x19b)](_0x51b5da=>_0x51b5da['id'])]),_0x473927=_0xb056d5(0x2f1)+_0x238c0d(0x8);for(;_0xb0476b[_0xb056d5(0x34c)](_0x473927);)_0x473927=_0xb056d5(0x2f1)+_0x238c0d(0x8);return{'id':_0x473927,'name':ar(_0x15c92e,_0x53cd4f,_0x16f5a4),'type':_0x27fbfa[_0xb056d5(0x2d8)],'config':{...cr}};}const yr={'id':_0x504a7e(0x369),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x49ae04,_0x45bdcd)=>{const _0x5d88e2=_0x504a7e;if(!_0x45bdcd)return!0x1;let _0x574dde=_0x49ae04[_0x5d88e2(0x264)](_0x2f75e2),{unitId:_0x4a5cd1,tableId:_0x73ea11,view:_0x5c66eb,index:_0x47dfe3}=_0x45bdcd,_0x2f9a59=_0x574dde[_0x5d88e2(0x102)](_0x4a5cd1,_0x17555f['UNIVER_BASE']);if(!_0x2f9a59||!Q(_0x2f9a59,_0x73ea11)||_0x2f9a59[_0x5d88e2(0x181)]()['tables'][_0x73ea11]['views'][_0x5c66eb['id']])return!0x1;let _0x52588e=_0x49ae04[_0x5d88e2(0x264)](_0x27da3e),_0x4d647d=_0x49ae04[_0x5d88e2(0x264)](_0xe641a2),_0x45cb51=_0x2f9a59[_0x5d88e2(0x181)](),_0x4d90a1=lr(_0x45cb51,_0x73ea11,_0x5c66eb,_0x47dfe3),_0x590bcc=new _0x2be14e()[_0x5d88e2(0x34d)](_0x45cb51,_0x4d90a1),_0x2a1cf3={'historyAction':'create-view','unitId':_0x4a5cd1,'op':_0x4d90a1,'viewType':_0x5c66eb[_0x5d88e2(0x337)]},_0x1b00f3={'historyAction':_0x5d88e2(0x31a),'unitId':_0x4a5cd1,'op':_0x590bcc,'viewType':_0x5c66eb[_0x5d88e2(0x337)]};return _0x52588e[_0x5d88e2(0x352)](_0x1a9379['id'],_0x2a1cf3)?(_0x574dde[_0x5d88e2(0x227)](_0x4a5cd1),_0x4d647d[_0x5d88e2(0x286)]({'unitID':_0x4a5cd1,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x1b00f3}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x2a1cf3}]}),!0x0):!0x1;}},br={'id':'base.command.delete-base-field','type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x3c54c6,_0x42d181){const _0x399399=_0x504a7e;if(!_0x42d181)return!0x1;let _0x2f8684=_0x3c54c6[_0x399399(0x264)](_0x2f75e2),{unitId:_0x18436b,tableId:_0x23c9ff,fieldId:_0x33e737}=_0x42d181,_0x5d8641=_0x2f8684['getUnit'](_0x18436b,_0x17555f[_0x399399(0x32a)]);if(!_0x5d8641)return!0x1;let _0x2ec95=_0x5d8641['getSnapshot'](),_0x5eb862=_0x2ec95['tables'][_0x23c9ff];if(!Q(_0x5d8641,_0x23c9ff,{'fieldIds':[_0x33e737]})||_0x5eb862[_0x399399(0x2f7)]===_0x33e737||_0x33e737===_0x3fdab9)return!0x1;let _0x29f3a6=_0x3c54c6[_0x399399(0x264)](_0x27da3e),_0x4ab2fd=_0x3c54c6[_0x399399(0x264)](_0xe641a2),_0x906efc=new q()['deleteField'](_0x2ec95,_0x23c9ff,_0x33e737),_0x1e988b=new _0x2be14e()[_0x399399(0x34d)](_0x2ec95,_0x906efc),_0x5c5451={'unitId':_0x18436b,'op':_0x906efc},_0x17d6d7={'unitId':_0x18436b,'op':_0x1e988b};return _0x29f3a6[_0x399399(0x352)](_0x1a9379['id'],_0x5c5451)?(_0x2f8684[_0x399399(0x227)](_0x18436b),_0x4ab2fd[_0x399399(0x286)]({'unitID':_0x18436b,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x17d6d7}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x5c5451}]}),!0x0):!0x1;}},xr={'id':_0x504a7e(0x243),'type':_0x833d37['COMMAND'],'handler':(_0x2742c3,_0x39fad8)=>{const _0x452705=_0x504a7e;if(!_0x39fad8)return!0x1;let _0x382194=_0x2742c3[_0x452705(0x264)](_0x2f75e2),{unitId:_0x3211fb,tableId:_0x1cb288,recordId:_0x47dc74}=_0x39fad8,_0x539e3a=_0x382194['getUnit'](_0x3211fb,_0x17555f[_0x452705(0x32a)]);if(!_0x539e3a||!Q(_0x539e3a,_0x1cb288,{'recordIds':[_0x47dc74]}))return!0x1;let _0x5200d5=_0x2742c3[_0x452705(0x264)](_0x27da3e),_0x2d149e=_0x2742c3[_0x452705(0x264)](_0xe641a2),_0x39e06d=_0x539e3a['getSnapshot'](),_0x18c35a=_0x120f28(_0x39e06d[_0x452705(0x2c0)][_0x1cb288],[_0x47dc74]),_0x2ec82f=new q(),_0x2c3cf1=new _0x2be14e(),_0x211970=_0x2ec82f[_0x452705(0x206)](_0x39e06d,_0x1cb288,_0x47dc74),_0x4ce5de=_0x2c3cf1[_0x452705(0x1d1)](_0x39e06d,_0x211970),_0x3684dc=_0x2ec82f[_0x452705(0x343)](_0x39e06d,_0x4ce5de,_0x1cb288,[_0x47dc74]),_0x27a7e7={'unitId':_0x3211fb,'op':_0x211970,'hierarchyChanges':_0x18c35a,'source':_0x39fad8[_0x452705(0x2cf)]??'ui'},_0x457a40={..._0x27a7e7,'source':_0x452705(0x2d9)},_0xadf807={'unitId':_0x3211fb,'op':_0x3684dc,'hierarchyChanges':_0x18c35a[_0x452705(0x19b)](_0x1b54b6=>({..._0x1b54b6,'oldParentRecordId':_0x1b54b6['parentRecordId'],'parentRecordId':_0x1b54b6['oldParentRecordId']})),'source':'undo'};return _0x5200d5[_0x452705(0x352)](_0x1a9379['id'],_0x27a7e7)?(_0x382194[_0x452705(0x227)](_0x3211fb),_0x2d149e[_0x452705(0x286)]({'unitID':_0x3211fb,'undoMutations':[{'id':_0x1a9379['id'],'params':_0xadf807}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x457a40}]}),!0x0):!0x1;}},Sr={'id':_0x504a7e(0x32f),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x38de29,_0x833152)=>{const _0x1cf4ea=_0x504a7e;if(!_0x833152)return!0x1;let _0x30aff9=_0x38de29['get'](_0x2f75e2),{unitId:_0x88b512,tableId:_0x6eeb1e}=_0x833152,_0x1def86=_0x30aff9['getUnit'](_0x88b512,_0x17555f[_0x1cf4ea(0x32a)]);if(!_0x1def86||!Q(_0x1def86,_0x6eeb1e))return!0x1;let _0x5ed84e=_0x38de29['get'](_0x27da3e),_0x31f455=_0x38de29[_0x1cf4ea(0x264)](_0xe641a2),_0x3bb5a0=_0x1def86['getSnapshot'](),_0x3f46af=_0x14abc2(_0x3bb5a0,_0x6eeb1e);if(_0x3f46af[_0x1cf4ea(0x328)]>0x0)return console['error'](_0x1cf4ea(0x363)+_0x6eeb1e+_0x1cf4ea(0x26e)+_0x3f46af['map'](_0x20df86=>_0x20df86['tableId']+'.'+_0x20df86[_0x1cf4ea(0x12c)])['join'](',\x20')+'.'),!0x1;let _0x4f43c3=new q()[_0x1cf4ea(0x132)](_0x3bb5a0,_0x6eeb1e),_0x488399=new _0x2be14e()['invertOp'](_0x3bb5a0,_0x4f43c3),_0x1afcb1={'unitId':_0x88b512,'op':_0x4f43c3},_0x2daa71={'unitId':_0x88b512,'op':_0x488399};return _0x5ed84e[_0x1cf4ea(0x352)](_0x1a9379['id'],_0x1afcb1)?(_0x30aff9['focusUnit'](_0x88b512),_0x31f455[_0x1cf4ea(0x286)]({'unitID':_0x88b512,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x2daa71}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x1afcb1}]}),!0x0):!0x1;}},Cr={'id':_0x504a7e(0x213),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x184cbd,_0x36406e)=>{const _0x2abd6f=_0x504a7e;if(!_0x36406e)return!0x1;let _0x3eb6c2=_0x184cbd[_0x2abd6f(0x264)](_0x2f75e2),{unitId:_0x5d9f98,tableId:_0x1cd4a7,viewId:_0x123f28}=_0x36406e,_0xd89e3e=_0x3eb6c2[_0x2abd6f(0x102)](_0x5d9f98,_0x17555f[_0x2abd6f(0x32a)]);if(!_0xd89e3e||!Q(_0xd89e3e,_0x1cd4a7,{'viewIds':[_0x123f28]}))return!0x1;let _0x6b95b2=_0x184cbd[_0x2abd6f(0x264)](_0x27da3e),_0x488c5c=_0x184cbd[_0x2abd6f(0x264)](_0xe641a2),_0x523c36=_0xd89e3e[_0x2abd6f(0x181)](),_0x1411c1=_0x523c36[_0x2abd6f(0x2c0)][_0x1cd4a7][_0x2abd6f(0x2b5)][_0x123f28][_0x2abd6f(0x337)],_0x4b1b6a=new q()[_0x2abd6f(0x28a)](_0x523c36,_0x1cd4a7,_0x123f28),_0x47a88d=new _0x2be14e()[_0x2abd6f(0x34d)](_0x523c36,_0x4b1b6a),_0x5f1371={'historyAction':'delete-view','unitId':_0x5d9f98,'op':_0x4b1b6a,'viewType':_0x1411c1},_0x325d56={'historyAction':_0x2abd6f(0x1cd),'unitId':_0x5d9f98,'op':_0x47a88d,'viewType':_0x1411c1};return _0x6b95b2[_0x2abd6f(0x352)](_0x1a9379['id'],_0x5f1371)?(_0x3eb6c2[_0x2abd6f(0x227)](_0x5d9f98),_0x488c5c[_0x2abd6f(0x286)]({'unitID':_0x5d9f98,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x325d56}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x5f1371}]}),!0x0):!0x1;}},wr={'id':'base.command.duplicate-base-field','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0xae62db,_0x371a21)=>{const _0x7bab9d=_0x504a7e;if(!_0x371a21)return!0x1;let _0x2c537c=_0xae62db[_0x7bab9d(0x264)](_0x2f75e2),{unitId:_0x379170,tableId:_0x518fba,sourceFieldId:_0x306bf9,field:_0x126bc6,index:_0xf675a,viewIndexes:_0x6424be}=_0x371a21,_0x44bd57=_0x2c537c['getUnit'](_0x379170,_0x17555f['UNIVER_BASE']);if(!_0x44bd57||!Q(_0x44bd57,_0x518fba,{'fieldIds':[_0x306bf9]})||_0x306bf9===_0x3fdab9||_0x44bd57[_0x7bab9d(0x181)]()[_0x7bab9d(0x2c0)][_0x518fba][_0x7bab9d(0x1d2)][_0x126bc6['id']]||_0xf675a===0x0||!Un(_0x44bd57,_0x518fba,_0x126bc6))return!0x1;let _0x4a2053=_0xae62db[_0x7bab9d(0x264)](_0x27da3e),_0x16dc7e=_0xae62db[_0x7bab9d(0x264)](_0xe641a2),_0xb3c5a6=_0x44bd57[_0x7bab9d(0x181)](),_0x229255=new q()[_0x7bab9d(0x214)](_0xb3c5a6,_0x518fba,_0x306bf9,{'field':_0x126bc6,'index':_0xf675a,'viewIndexes':_0x6424be}),_0x36e726=new _0x2be14e()[_0x7bab9d(0x34d)](_0xb3c5a6,_0x229255),_0x2b9ab3={'unitId':_0x379170,'op':_0x229255},_0x375da3={'unitId':_0x379170,'op':_0x36e726};return _0x4a2053['syncExecuteCommand'](_0x1a9379['id'],_0x2b9ab3)?(_0x2c537c[_0x7bab9d(0x227)](_0x379170),_0x16dc7e[_0x7bab9d(0x286)]({'unitID':_0x379170,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x375da3}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x2b9ab3}]}),!0x0):!0x1;}},Tr={'id':_0x504a7e(0x29c),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x5d20c0,_0x47f02e)=>{const _0x2420d9=_0x504a7e;if(!_0x47f02e)return!0x1;let _0x57cf06=_0x5d20c0['get'](_0x2f75e2),{unitId:_0x391125,tableId:_0x26054a,sourceRecordId:_0x38f796,record:_0x495dd3}=_0x47f02e,_0x59b486=_0x57cf06[_0x2420d9(0x102)](_0x391125,_0x17555f[_0x2420d9(0x32a)]);if(!_0x59b486||!Q(_0x59b486,_0x26054a,{'recordIds':[_0x38f796]})||!Gn(_0x59b486,_0x26054a,_0x495dd3))return!0x1;let _0xfbe1eb=_0x5d20c0[_0x2420d9(0x264)](_0x27da3e),_0x254d7a=_0x5d20c0[_0x2420d9(0x264)](_0xe641a2),_0xc4624b=_0x59b486[_0x2420d9(0x181)](),_0x4a15e9=Kn(_0x495dd3),_0x4b31ac=_0x52fa6c(_0xc4624b['tables'][_0x26054a],[_0x4a15e9]),_0x29f2e4=new q()['duplicateRecord'](_0xc4624b,_0x26054a,_0x38f796,_0x4a15e9),_0x248040=new _0x2be14e()[_0x2420d9(0x34d)](_0xc4624b,_0x29f2e4),_0x20778f={'unitId':_0x391125,'op':_0x29f2e4,'hierarchyChanges':_0x4b31ac[_0x2420d9(0x328)]?_0x4b31ac:void 0x0,'source':_0x4b31ac[_0x2420d9(0x328)]?_0x47f02e['source']??'ui':void 0x0},_0x4a33fc={..._0x20778f,'source':_0x4b31ac['length']?_0x2420d9(0x2d9):void 0x0},_0x2ede50={'unitId':_0x391125,'op':_0x248040,'hierarchyChanges':_0x4b31ac['length']?_0x4b31ac[_0x2420d9(0x19b)](_0x875cb3=>({..._0x875cb3,'oldParentRecordId':_0x875cb3[_0x2420d9(0x195)],'parentRecordId':null})):void 0x0,'source':_0x4b31ac[_0x2420d9(0x328)]?_0x2420d9(0x27e):void 0x0};return _0xfbe1eb['syncExecuteCommand'](_0x1a9379['id'],_0x20778f)?(_0x57cf06['focusUnit'](_0x391125),_0x254d7a[_0x2420d9(0x286)]({'unitID':_0x391125,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x2ede50}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x4a33fc}]}),!0x0):!0x1;}},Er={'id':_0x504a7e(0x1c1),'type':_0x833d37['COMMAND'],'handler'(_0x5bbadd,_0x529c7e){const _0x3980da=_0x504a7e;if(!_0x529c7e)return!0x1;let _0x169219=_0x5bbadd[_0x3980da(0x264)](_0x2f75e2),{unitId:_0x366989,tableId:_0x2992d5,viewId:_0x72bb50,ensureEndDateField:_0x140d10}=_0x529c7e,_0x4cebf9=_0x169219[_0x3980da(0x102)](_0x366989,_0x17555f[_0x3980da(0x32a)]);if(!_0x4cebf9||!Q(_0x4cebf9,_0x2992d5,{'viewIds':[_0x72bb50]}))return!0x1;let _0x14de76=_0x4cebf9['getSnapshot'](),_0x3d5226=_0x14de76['tables'][_0x2992d5],_0x2e3702=_0x3d5226==null?void 0x0:_0x3d5226[_0x3980da(0x2b5)][_0x72bb50];if(!_0x3d5226||!_0x2e3702||_0x2e3702['type']!==_0x3980da(0x20c)&&_0x2e3702[_0x3980da(0x337)]!==_0x3980da(0x35f))return!0x1;let _0x127199=ur(_0x3d5226,_0x2e3702,_0x140d10===!0x0);if(!_0x127199[_0x3980da(0x2a8)])return!0x1;let _0x12a735=_0x5bbadd['get'](_0x27da3e),_0x25729a=_0x5bbadd[_0x3980da(0x264)](_0xe641a2),_0x5d7a0d=new q(),_0x1c358a=[..._0x127199['fields'][_0x3980da(0x19b)](_0x20aa05=>_0x5d7a0d[_0x3980da(0x19a)](_0x14de76,_0x529c7e['tableId'],{'field':_0x20aa05})),Dr([...Or(_0x529c7e[_0x3980da(0x25a)],_0x529c7e[_0x3980da(0x330)]),_0x3980da(0x1df)],_0x2e3702['config'],_0x127199[_0x3980da(0x1df)])];_0x127199[_0x3980da(0x260)]&&_0x1c358a['push'](Dr([...Or(_0x529c7e[_0x3980da(0x25a)],_0x529c7e['viewId']),'fieldOrder'],_0x2e3702[_0x3980da(0x260)],_0x127199[_0x3980da(0x260)]));let _0x46b1d5=_0x19c406(_0x1c358a),_0x39c845=new _0x2be14e()[_0x3980da(0x34d)](_0x14de76,_0x46b1d5),_0x7560e2={'unitId':_0x366989,'op':_0x46b1d5},_0x9f7dbc={'unitId':_0x366989,'op':_0x39c845};return _0x12a735['syncExecuteCommand'](_0x1a9379['id'],_0x7560e2)?(_0x169219[_0x3980da(0x227)](_0x366989),_0x25729a[_0x3980da(0x286)]({'unitID':_0x366989,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x9f7dbc}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x7560e2}]}),!0x0):!0x1;}};function Dr(_0x2000b1,_0x25001e,_0x34bfd5){return _0x25001e===void 0x0?_0x14cbd0['insertOp'](_0x2000b1,_0x34bfd5):_0x14cbd0['replaceOp'](_0x2000b1,_0x25001e,_0x34bfd5);}function Or(_0x47a486,_0x51b436){const _0x5e7671=_0x504a7e;return[_0x5e7671(0x2c0),_0x47a486,'views',_0x51b436];}const kr={'id':'base.command.move-base-field','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x54b768,_0x3ad583)=>{const _0x1c14c6=_0x504a7e;if(!_0x3ad583)return!0x1;let _0x3baea9=_0x54b768[_0x1c14c6(0x264)](_0x2f75e2),{unitId:_0x54bc47,tableId:_0x24fabb,fieldId:_0x36fc76,target:_0x4366c7}=_0x3ad583,_0x4e2c61=_0x3baea9[_0x1c14c6(0x102)](_0x54bc47,_0x17555f[_0x1c14c6(0x32a)]),_0xdad936=_0x4366c7[_0x1c14c6(0x2eb)]??_0x4366c7[_0x1c14c6(0x14d)];if(!_0x4e2c61||!!_0x4366c7[_0x1c14c6(0x2eb)]==!!_0x4366c7[_0x1c14c6(0x14d)]||!_0xdad936||_0xdad936===_0x36fc76||_0x36fc76===_0x3fdab9||_0x4366c7['beforeFieldId']===_0x3fdab9||!Q(_0x4e2c61,_0x24fabb,{'fieldIds':[_0x36fc76,_0xdad936]}))return!0x1;let _0x339b42=_0x54b768[_0x1c14c6(0x264)](_0x27da3e),_0x1f2078=_0x54b768[_0x1c14c6(0x264)](_0xe641a2),_0x2491fc=_0x4e2c61[_0x1c14c6(0x181)](),_0x5280bc=new q()['moveField'](_0x2491fc,_0x24fabb,_0x36fc76,_0x4366c7),_0x5c3970=new _0x2be14e()['invertOp'](_0x2491fc,_0x5280bc),_0x447cef={'unitId':_0x54bc47,'op':_0x5280bc},_0x5b9303={'unitId':_0x54bc47,'op':_0x5c3970};return _0x339b42[_0x1c14c6(0x352)](_0x1a9379['id'],_0x447cef)?(_0x3baea9[_0x1c14c6(0x227)](_0x54bc47),_0x1f2078[_0x1c14c6(0x286)]({'unitID':_0x54bc47,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x5b9303}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x447cef}]}),!0x0):!0x1;}},Ar={'id':'base.command.move-base-hierarchy-record','type':_0x833d37['COMMAND'],'handler':(_0x3cc63d,_0x28d28f)=>{const _0x36a0d3=_0x504a7e;var _0xaab4fc;if(!_0x28d28f)return!0x1;let {unitId:_0x58139e,tableId:_0x2a8311,recordId:_0x5080cf,parentRecordId:_0x264380,orderKey:_0x55126d}=_0x28d28f,_0x1f4329=_0x3cc63d[_0x36a0d3(0x264)](_0x2f75e2),_0x51d248=_0x1f4329[_0x36a0d3(0x102)](_0x58139e,_0x17555f[_0x36a0d3(0x32a)]);if(!_0x51d248||!Q(_0x51d248,_0x2a8311,{'recordIds':[_0x5080cf,..._0x264380?[_0x264380]:[]]}))throw new _0x3798c4(_0x36a0d3(0x2a0));let _0x4e4b6b=_0x51d248[_0x36a0d3(0x181)](),_0x501353=_0x4e4b6b[_0x36a0d3(0x2c0)][_0x2a8311],_0x4c72a7=_0xed19c9(_0x501353),_0xf6b1c1=_0x4c72a7??_0x28d28f[_0x36a0d3(0x12c)]??_0x30e703(_0x501353);if(_0x4c72a7&&_0x28d28f['fieldId']&&_0x28d28f['fieldId']!==_0x4c72a7||_0x501353['fields'][_0xf6b1c1]&&!_0x2b5e99(_0x501353,_0xf6b1c1))throw new _0x3798c4('invalidField');let _0x576180=_0x3ac0ab(_0x501353,_0xf6b1c1),_0x12c22f=_0x5765d0(_0x576180,_0x5080cf,_0x264380);if(!_0x12c22f[_0x36a0d3(0x14a)]){let _0x1d3104=_0x12c22f[_0x36a0d3(0x320)]===_0x27eb99['SelfParent']?_0x36a0d3(0x167):_0x12c22f[_0x36a0d3(0x320)]===_0x27eb99[_0x36a0d3(0x11d)]?_0x36a0d3(0x225):'maxDepth';throw new _0x3798c4(_0x1d3104);}let _0x53ee4a=_0x576180[_0x36a0d3(0xfd)][_0x36a0d3(0x264)](_0x5080cf)??null,_0x5f2908=_0x501353['records'][_0x5080cf]['orderKey'];if(_0x53ee4a===_0x264380&&(_0x55126d===void 0x0||_0x55126d===_0x5f2908))return!0x0;let _0x5a3ae0=_0x53ee4a!==_0x264380,_0x5a9bd4=_0x55126d!==void 0x0&&_0x55126d!==_0x5f2908,_0x54decf=new q(),_0x134456=[],_0x3c5b0b=_0x501353[_0x36a0d3(0x1d2)][_0xf6b1c1],_0x5d279c=_0x5a3ae0&&(!_0x3c5b0b||((_0xaab4fc=_0x4f3842(_0x3c5b0b))==null?void 0x0:_0xaab4fc[_0x36a0d3(0x2fc)])!==_0x3b09d0[_0x36a0d3(0x2a4)])?_0x3c5b0b?_0x54decf[_0x36a0d3(0x1ec)](_0x4e4b6b,_0x2a8311,_0xf6b1c1,{'config':{..._0x3c5b0b['config'],'relationRole':_0x3b09d0['Parent']}}):_0x3cc63d[_0x36a0d3(0x264)](Z)['createCreateFieldOp'](_0x51d248,_0x2a8311,_0x4e974f(_0x501353,_0xf6b1c1,_0x28d28f[_0x36a0d3(0x356)]),_0x501353['fieldOrder'][_0x36a0d3(0x328)]):null;_0x5d279c&&_0x134456['push'](_0x5d279c),_0x5a3ae0&&_0x134456[_0x36a0d3(0x2b9)](_0x54decf[_0x36a0d3(0x27b)](_0x4e4b6b,_0x2a8311,_0x5080cf,_0xf6b1c1,_0x264380?_0x18699a([_0x264380]):'')),_0x5a9bd4&&_0x134456[_0x36a0d3(0x2b9)](_0x54decf[_0x36a0d3(0x17b)](_0x4e4b6b,_0x2a8311,_0x5080cf,_0x55126d));let _0x3e2d92=_0x19c406(_0x134456),_0x42051d={'tableId':_0x2a8311,'fieldId':_0xf6b1c1,'recordId':_0x5080cf,'oldParentRecordId':_0x53ee4a,'parentRecordId':_0x264380},_0x454abd={'unitId':_0x58139e,'op':_0x3e2d92,'trigger':Ar['id'],'hierarchyChanges':[_0x42051d],'source':_0x28d28f[_0x36a0d3(0x2cf)]??'ui'},_0x2bc77e={..._0x454abd,'source':_0x36a0d3(0x2d9)};if(!_0x3cc63d['get'](_0x27da3e)[_0x36a0d3(0x352)](_0x1a9379['id'],_0x454abd))return!0x1;let _0x520ed4=_0x51d248[_0x36a0d3(0x181)](),_0x24e95d=[];_0x5a3ae0&&_0x24e95d[_0x36a0d3(0x2b9)](jr(_0x520ed4,_0x4e4b6b,_0x2a8311,_0x5080cf,_0xf6b1c1)),_0x5a9bd4&&_0x24e95d['push'](Mr(_0x520ed4,_0x4e4b6b,_0x2a8311,_0x5080cf)),_0x5d279c&&_0x24e95d['push'](new _0x2be14e()[_0x36a0d3(0x34d)](_0x4e4b6b,_0x5d279c));let _0x137aea={'unitId':_0x58139e,'op':_0x19c406(_0x24e95d),'trigger':Ar['id'],'hierarchyChanges':[{..._0x42051d,'oldParentRecordId':_0x264380,'parentRecordId':_0x53ee4a}],'source':_0x36a0d3(0x27e)};return _0x1f4329[_0x36a0d3(0x227)](_0x58139e),_0x3cc63d[_0x36a0d3(0x264)](_0xe641a2)[_0x36a0d3(0x286)]({'unitID':_0x58139e,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x137aea}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x2bc77e}]}),!0x0;}};function jr(_0xb517d7,_0x2e2f09,_0x67ccdd,_0x5d7f2d,_0x146cc0){const _0xdf024=_0x504a7e;var _0x1c4f9a,_0x3441d4,_0x594a98,_0x3fde8a,_0x26f1de,_0x3c9745,_0x54748b,_0x461940;let _0xf2ea11=_0xb517d7['tables'][_0x67ccdd],_0x966fdc=_0x2e2f09[_0xdf024(0x2c0)][_0x67ccdd],_0x498c71=(_0x1c4f9a=_0xf2ea11['rowIndex'])==null?void 0x0:_0x1c4f9a[_0x5d7f2d],_0x3ab202=(_0x3441d4=_0xf2ea11[_0xdf024(0x29d)])==null?void 0x0:_0x3441d4[_0x146cc0],_0x560e9e=(_0x594a98=_0x966fdc[_0xdf024(0x13d)])==null?void 0x0:_0x594a98[_0x5d7f2d],_0x38d645=(_0x3fde8a=_0x966fdc[_0xdf024(0x29d)])==null?void 0x0:_0x3fde8a[_0x146cc0],_0x385e9e=_0x498c71==null||_0x3ab202==null||(_0x26f1de=_0xf2ea11[_0xdf024(0x36c)])==null||(_0x26f1de=_0x26f1de[_0x498c71])==null?void 0x0:_0x26f1de[_0x3ab202],_0x187b9b=_0x560e9e==null||_0x38d645==null||(_0x3c9745=_0x966fdc[_0xdf024(0x36c)])==null||(_0x3c9745=_0x3c9745[_0x560e9e])==null?void 0x0:_0x3c9745[_0x38d645],_0x5a4a13=(_0x54748b=_0xf2ea11[_0xdf024(0x1dd)][_0x5d7f2d])==null?void 0x0:_0x54748b[_0xdf024(0x196)][_0x146cc0],_0x576ba4=(_0x461940=_0x966fdc[_0xdf024(0x1dd)][_0x5d7f2d])==null?void 0x0:_0x461940[_0xdf024(0x196)][_0x146cc0],_0x3601ee=[],_0x5502b9=Nr(_0x498c71==null||_0x3ab202==null?null:K[_0xdf024(0x36c)](_0x67ccdd,_0x498c71,_0x3ab202),_0x385e9e,_0x187b9b);_0x5502b9&&_0x3601ee[_0xdf024(0x2b9)](_0x5502b9);let _0x2f346f=Nr(K['cell'](_0x67ccdd,_0x5d7f2d,_0x146cc0),_0x5a4a13,_0x576ba4);return _0x2f346f&&_0x3601ee[_0xdf024(0x2b9)](_0x2f346f),_0x19c406(_0x3601ee);}function Mr(_0x2cd05d,_0x5d42c3,_0x4a552d,_0x86e153){const _0x4ed49f=_0x504a7e;var _0x4f184e,_0x2b3772;let _0x376154=_0x2cd05d[_0x4ed49f(0x2c0)][_0x4a552d],_0xe7e91b=_0x5d42c3['tables'][_0x4a552d],_0x3c3bb9=[Nr([...K[_0x4ed49f(0x30f)](_0x4a552d,_0x86e153),_0x4ed49f(0x258)],(_0x4f184e=_0x376154[_0x4ed49f(0x1dd)][_0x86e153])==null?void 0x0:_0x4f184e[_0x4ed49f(0x258)],(_0x2b3772=_0xe7e91b[_0x4ed49f(0x1dd)][_0x86e153])==null?void 0x0:_0x2b3772[_0x4ed49f(0x258)]),Nr([...K[_0x4ed49f(0x30a)](_0x4a552d),_0x4ed49f(0x1ca)],_0x376154[_0x4ed49f(0x1ca)],_0xe7e91b[_0x4ed49f(0x1ca)])][_0x4ed49f(0x231)](_0x2990e0=>!!_0x2990e0);return _0x19c406(_0x3c3bb9);}function Nr(_0xdc0806,_0x10240d,_0x3d0cb1){const _0x8ded41=_0x504a7e;if(!_0xdc0806||_0x10240d===void 0x0&&_0x3d0cb1===void 0x0)return null;let _0x266014=_0x524299['getInstance']();return _0x3d0cb1===void 0x0?_0x266014['removeOp'](_0xdc0806,_0x10240d):_0x10240d===void 0x0?_0x266014[_0x8ded41(0x10b)](_0xdc0806,_0x3d0cb1):_0x266014[_0x8ded41(0x1bc)](_0xdc0806,_0x10240d,_0x3d0cb1);}const Pr={'id':'base.command.move-base-view','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x480c57,_0x2e948c)=>{const _0xfef39a=_0x504a7e;if(!_0x2e948c)return!0x1;let _0xc31172=_0x480c57[_0xfef39a(0x264)](_0x2f75e2),{unitId:_0x199f8c,tableId:_0xbec9a3,viewId:_0x5e99e9,target:_0x4e0f45}=_0x2e948c,_0x306874=_0xc31172[_0xfef39a(0x102)](_0x199f8c,_0x17555f[_0xfef39a(0x32a)]),_0x4a6069=_0x4e0f45['beforeViewId']??_0x4e0f45[_0xfef39a(0x1e3)];if(!_0x306874||!_0x4a6069||_0x4a6069===_0x5e99e9||!Q(_0x306874,_0xbec9a3,{'viewIds':[_0x5e99e9,_0x4a6069]}))return!0x1;let _0x48d268=_0x480c57[_0xfef39a(0x264)](_0x27da3e),_0x4db60e=_0x480c57[_0xfef39a(0x264)](_0xe641a2),_0x5e9ac7=_0x306874['getSnapshot'](),_0xd56b32=new q()[_0xfef39a(0x2d5)](_0x5e9ac7,_0xbec9a3,_0x5e99e9,_0x4e0f45),_0x375268=new _0x2be14e()[_0xfef39a(0x34d)](_0x5e9ac7,_0xd56b32),_0xb543d2={'unitId':_0x199f8c,'op':_0xd56b32},_0x4e4e16={'unitId':_0x199f8c,'op':_0x375268};return _0x48d268[_0xfef39a(0x352)](_0x1a9379['id'],_0xb543d2)?(_0xc31172['focusUnit'](_0x199f8c),_0x4db60e['pushUndoRedo']({'unitID':_0x199f8c,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x4e4e16}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0xb543d2}]}),!0x0):!0x1;}},Fr={'id':_0x504a7e(0x34f),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x501bdd,_0x27aa78)=>{const _0x4ae72a=_0x504a7e;if(!_0x27aa78)return!0x1;let _0x213fd5=_0x501bdd[_0x4ae72a(0x264)](_0x2f75e2),{unitId:_0x25097f,tableId:_0x3f0f23,name:_0x57b178}=_0x27aa78,_0x55b4ff=_0x213fd5[_0x4ae72a(0x102)](_0x25097f,_0x17555f[_0x4ae72a(0x32a)]);if(!_0x55b4ff||!Q(_0x55b4ff,_0x3f0f23)||!nr(_0x55b4ff[_0x4ae72a(0x181)](),_0x57b178,_0x3f0f23)[_0x4ae72a(0x14a)])return!0x1;let _0x235d5c=_0x501bdd[_0x4ae72a(0x264)](_0x27da3e),_0x4091d9=_0x501bdd['get'](_0xe641a2),_0x104841=_0x55b4ff[_0x4ae72a(0x181)](),_0x2ca8c8=new q()[_0x4ae72a(0x1ee)](_0x104841,_0x3f0f23,_0x57b178),_0x2da1a1=new _0x2be14e()['invertOp'](_0x104841,_0x2ca8c8),_0x21288b={'unitId':_0x25097f,'op':_0x2ca8c8},_0x4d268e={'unitId':_0x25097f,'op':_0x2da1a1};return _0x235d5c[_0x4ae72a(0x352)](_0x1a9379['id'],_0x21288b)?(_0x213fd5['focusUnit'](_0x25097f),_0x4091d9[_0x4ae72a(0x286)]({'unitID':_0x25097f,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x4d268e}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x21288b}]}),!0x0):!0x1;}},Ir={'id':'base.command.rename-base-view','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x5f138e,_0x2ccafd)=>{const _0x29af7b=_0x504a7e;if(!_0x2ccafd)return!0x1;let _0x4c2b40=_0x5f138e[_0x29af7b(0x264)](_0x2f75e2),{unitId:_0x418ca5,tableId:_0x2ceb93,viewId:_0x2e80cc,name:_0x211a78}=_0x2ccafd,_0x5a49ab=_0x4c2b40[_0x29af7b(0x102)](_0x418ca5,_0x17555f[_0x29af7b(0x32a)]);if(!_0x5a49ab||!Q(_0x5a49ab,_0x2ceb93,{'viewIds':[_0x2e80cc]}))return!0x1;let _0x2eecd1=_0x5f138e[_0x29af7b(0x264)](_0x27da3e),_0x45cbe2=_0x5f138e[_0x29af7b(0x264)](_0xe641a2),_0x457119=_0x5a49ab[_0x29af7b(0x181)](),_0x325dea=new q()['renameView'](_0x457119,_0x2ceb93,_0x2e80cc,_0x211a78),_0x8bc2b9=new _0x2be14e()[_0x29af7b(0x34d)](_0x457119,_0x325dea),_0x4aecb8={'unitId':_0x418ca5,'op':_0x325dea},_0x15a6a9={'unitId':_0x418ca5,'op':_0x8bc2b9};return _0x2eecd1[_0x29af7b(0x352)](_0x1a9379['id'],_0x4aecb8)?(_0x4c2b40[_0x29af7b(0x227)](_0x418ca5),_0x45cbe2[_0x29af7b(0x286)]({'unitID':_0x418ca5,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x15a6a9}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x4aecb8}]}),!0x0):!0x1;}},Lr={'id':_0x504a7e(0x1e8),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x3aeff9,_0x2c969b)=>{const _0x1d20b6=_0x504a7e;if(!_0x2c969b)return!0x1;let _0x47092f=_0x3aeff9[_0x1d20b6(0x264)](_0x2f75e2),{unitId:_0x416c44,tableId:_0x1e7657,viewId:_0x1a6f1e,fieldId:_0x351a94}=_0x2c969b,_0x163381=_0x47092f[_0x1d20b6(0x102)](_0x416c44,_0x17555f['UNIVER_BASE']);if(!_0x163381||!Q(_0x163381,_0x1e7657,{'viewIds':[_0x1a6f1e],'fieldIds':[_0x351a94]}))return!0x1;let _0x312e95=_0x3aeff9[_0x1d20b6(0x264)](_0x27da3e),_0x2b7a2b=_0x3aeff9[_0x1d20b6(0x264)](_0xe641a2),_0x3dde71=_0x163381['getSnapshot'](),_0x588cd2=new q()[_0x1d20b6(0x22e)](_0x3dde71,_0x1e7657,_0x1a6f1e,{'groupFieldId':_0x351a94}),_0x297ce5=new _0x2be14e()[_0x1d20b6(0x34d)](_0x3dde71,_0x588cd2),_0x4bf3f7={'unitId':_0x416c44,'op':_0x588cd2},_0x5cb523={'unitId':_0x416c44,'op':_0x297ce5};return _0x312e95[_0x1d20b6(0x352)](_0x1a9379['id'],_0x4bf3f7)?(_0x47092f[_0x1d20b6(0x227)](_0x416c44),_0x2b7a2b['pushUndoRedo']({'unitID':_0x416c44,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x5cb523}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x4bf3f7}]}),!0x0):!0x1;}},Rr={'id':'base.command.set-base-name','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x4641f5,_0x1a8cba)=>{const _0x37b0b0=_0x504a7e;if(!_0x1a8cba)return!0x1;let _0x4007ce=_0x4641f5['get'](_0x2f75e2),_0x133d69=_0x4007ce[_0x37b0b0(0x102)](_0x1a8cba[_0x37b0b0(0x1fb)],_0x17555f['UNIVER_BASE']);if(!_0x133d69)return!0x1;let _0x43c1af=_0x133d69['getSnapshot']()['name'];if(_0x43c1af===_0x1a8cba[_0x37b0b0(0x121)])return!0x0;let _0x9f69bc=new q(),_0x5f2240=new _0x2be14e(),_0x46b753=[],_0x1009a0=[],_0x4918e5=[_0x133d69,..._0x4007ce['getAllUnitsForType'](_0x17555f[_0x37b0b0(0x32a)])[_0x37b0b0(0x231)](_0x3eef1d=>_0x3eef1d[_0x37b0b0(0x210)]()!==_0x1a8cba[_0x37b0b0(0x1fb)])];for(let _0x367111 of _0x4918e5){let _0x3b705a=_0x367111[_0x37b0b0(0x181)](),_0x2968cc=_0x367111===_0x133d69?_0x9f69bc[_0x37b0b0(0x1f3)](_0x3b705a,_0x1a8cba[_0x37b0b0(0x121)]):_0x9f69bc[_0x37b0b0(0x1e5)](_0x3b705a,_0x43c1af,_0x1a8cba[_0x37b0b0(0x121)]);_0x2968cc&&(_0x46b753[_0x37b0b0(0x2b9)]({'id':_0x1a9379['id'],'params':{'unitId':_0x367111[_0x37b0b0(0x210)](),'op':_0x2968cc,'trigger':Rr['id']}}),_0x1009a0[_0x37b0b0(0x159)]({'id':_0x1a9379['id'],'params':{'unitId':_0x367111[_0x37b0b0(0x210)](),'op':_0x5f2240[_0x37b0b0(0x34d)](_0x3b705a,_0x2968cc),'trigger':Rr['id']}}));}let _0x366f4d=_0x4641f5[_0x37b0b0(0x264)](_0x27da3e),_0x1681c9=_0x4641f5[_0x37b0b0(0x264)](_0xe641a2),_0x10f793=_0x1681c9[_0x37b0b0(0x329)](_0x1a8cba['unitId']);try{return _0x42f958(_0x46b753,_0x366f4d)['result']?(_0x4007ce['focusUnit'](_0x1a8cba['unitId']),_0x1681c9['pushUndoRedo']({'unitID':_0x1a8cba[_0x37b0b0(0x1fb)],'undoMutations':_0x1009a0,'redoMutations':_0x46b753}),!0x0):!0x1;}finally{_0x10f793[_0x37b0b0(0x162)]();}}},zr={'type':_0x833d37[_0x504a7e(0x1d9)],'id':_0x504a7e(0x2fd),async 'handler'(_0x363562,_0x103978){const _0x231c15=_0x504a7e;if(!_0x103978||!Wt[_0x231c15(0x1bb)](_0x103978[_0x231c15(0x13b)])||_0x103978[_0x231c15(0x16d)]!==_0x103978[_0x231c15(0x1fb)]&&_0x103978['action']!==_0x52f72d[_0x231c15(0x1c0)]||_0x103978[_0x231c15(0x250)]&&(![_0x231c15(0x2d1),_0x231c15(0x18f),'members'][_0x231c15(0x1bb)](_0x103978[_0x231c15(0x250)][_0x231c15(0x331)])||_0x103978[_0x231c15(0x250)][_0x231c15(0xf2)][_0x231c15(0x16f)](_0x41d3d5=>!Wt[_0x231c15(0x1bb)](_0x41d3d5['action'])||_0x103978[_0x231c15(0x16d)]!==_0x103978['unitId']&&_0x41d3d5[_0x231c15(0x13b)]!==_0x52f72d[_0x231c15(0x1c0)])))return!0x1;let _0x7f770d=$t(_0x103978[_0x231c15(0x1fb)],_0x103978[_0x231c15(0x16d)],_0x103978[_0x231c15(0x13b)]),_0x3530aa={'unitId':_0x103978['unitId'],'objectId':_0x103978[_0x231c15(0x16d)],'objectType':_0x7f770d[_0x231c15(0x337)]},_0x578b7a=_0x363562[_0x231c15(0x264)](_0x155ba9);return _0x103978[_0x231c15(0x2cd)]?await _0x578b7a[_0x231c15(0x2cd)](_0x3530aa):_0x103978[_0x231c15(0x250)]?await _0x578b7a[_0x231c15(0x125)](_0x3530aa,_0x103978[_0x231c15(0x250)]):await _0x578b7a[_0x231c15(0x13a)](_0x3530aa,_0x7f770d,_0x103978['value']),!0x0;}},Br={'type':_0x833d37[_0x504a7e(0x1d9)],'id':_0x504a7e(0x2f0),async 'handler'(_0x1ed73e,_0x48dc22){const _0x223c0b=_0x504a7e;if(!(_0x48dc22!=null&&_0x48dc22['unitId'])||!Array[_0x223c0b(0x216)](_0x48dc22[_0x223c0b(0x33f)])||!_0x48dc22['changes'][_0x223c0b(0x328)]||_0x48dc22['changes'][_0x223c0b(0x16f)](_0x5e277f=>!(_0x5e277f!=null&&_0x5e277f[_0x223c0b(0x16d)])||_0x5e277f[_0x223c0b(0x16d)]===_0x48dc22[_0x223c0b(0x1fb)]||_0x5e277f[_0x223c0b(0x250)]!==null&&(!_0x5e277f[_0x223c0b(0x250)]||![_0x223c0b(0x2d1),'owner',_0x223c0b(0x297)][_0x223c0b(0x1bb)](_0x5e277f[_0x223c0b(0x250)][_0x223c0b(0x331)])||!Array['isArray'](_0x5e277f[_0x223c0b(0x250)][_0x223c0b(0x135)])||!Array[_0x223c0b(0x216)](_0x5e277f[_0x223c0b(0x250)]['strategies'])||_0x5e277f[_0x223c0b(0x250)][_0x223c0b(0xf2)][_0x223c0b(0x16f)](_0x37d916=>_0x37d916[_0x223c0b(0x13b)]!==_0x52f72d[_0x223c0b(0x1c0)]))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x1ed73e[_0x223c0b(0x264)](_0x155ba9)[_0x223c0b(0x126)](_0x48dc22['changes'][_0x223c0b(0x19b)](_0x21bc3e=>{const _0x3b7e1d=_0x223c0b;let _0x75bf11=$t(_0x48dc22[_0x3b7e1d(0x1fb)],_0x21bc3e[_0x3b7e1d(0x16d)],_0x52f72d[_0x3b7e1d(0x1c0)]);return{'unitId':_0x48dc22[_0x3b7e1d(0x1fb)],'objectId':_0x21bc3e[_0x3b7e1d(0x16d)],'objectType':_0x75bf11[_0x3b7e1d(0x337)],'policy':_0x21bc3e[_0x3b7e1d(0x250)]};}));}};function Vr(_0x111a97,_0x425958){const _0x33dc07=_0x504a7e;let _0x45f577=k(_0x1e2b57['deepClone'](_0x111a97)),_0x11901e=new Map();return _0x425958[_0x33dc07(0x17e)](_0x28d928=>{const _0x5b5c98=_0x33dc07;var _0x30be33,_0x455d10;let _0x29179d=_0x5b5c98(0x360)in _0x28d928?_0x28d928['recordId']:(_0x30be33=_0x45f577[_0x5b5c98(0x1b5)])==null?void 0x0:_0x30be33[_0x28d928['row']],_0x990dfd='fieldId'in _0x28d928?_0x28d928['fieldId']:(_0x455d10=_0x45f577[_0x5b5c98(0x1d4)])==null?void 0x0:_0x455d10[_0x28d928[_0x5b5c98(0xfe)]],_0x45f44b=_0x990dfd?_0x45f577[_0x5b5c98(0x1d2)][_0x990dfd]:void 0x0;if(!_0x29179d||!_0x990dfd||!_0x45f44b||!_0x45f577[_0x5b5c98(0x1dd)][_0x29179d])return;let _0x3a972f=_0x3dcc85(_0x28d928[_0x5b5c98(0x207)],_0x45f44b),_0x5bbbcc=_0x4824da(_0x28d928[_0x5b5c98(0x207)],_0x3a972f,_0x45f44b,_0x45f577,_0x29179d),_0x3c6700=_0x11901e[_0x5b5c98(0x264)](_0x29179d)??{};_0x3c6700[_0x990dfd]=_0x5bbbcc,_0x11901e[_0x5b5c98(0x26b)](_0x29179d,_0x3c6700);}),[..._0x11901e]['map'](([_0x478ebc,_0x5770f0])=>({'recordId':_0x478ebc,'values':_0x5770f0}));}const Hr={'id':_0x504a7e(0x18c),'type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x53a64f,_0x259b86){const _0x131a2c=_0x504a7e;if(!_0x259b86)return!0x1;let _0x3600f6=_0x53a64f['get'](_0x2f75e2),{unitId:_0x11f02d,tableId:_0x2e52bd,patches:_0x17bc0b}=_0x259b86,_0x58b19f=_0x3600f6[_0x131a2c(0x102)](_0x11f02d,_0x17555f['UNIVER_BASE']);if(!_0x58b19f||!Q(_0x58b19f,_0x2e52bd))return!0x1;let _0x370695=_0x53a64f[_0x131a2c(0x264)](_0x27da3e),_0x4cbea1=_0x53a64f[_0x131a2c(0x264)](_0xe641a2),_0x28f4c5=_0x58b19f['getSnapshot'](),_0x3fd64a=k(_0x28f4c5['tables'][_0x2e52bd]),_0x514c3b=_0x17bc0b[_0x131a2c(0x19b)](_0x115443=>{const _0x5d4c40=_0x131a2c;var _0xfbcf12;return'recordId'in _0x115443?_0x115443[_0x5d4c40(0x360)]:(_0xfbcf12=_0x3fd64a['rowId'])==null?void 0x0:_0xfbcf12[_0x115443[_0x5d4c40(0x33e)]];})[_0x131a2c(0x231)](_0x11b3c7=>_0x11b3c7!=null),_0x24584d=_0x17bc0b[_0x131a2c(0x19b)](_0x15f8c9=>{const _0x35d83d=_0x131a2c;var _0x3d4735;return'fieldId'in _0x15f8c9?_0x15f8c9[_0x35d83d(0x12c)]:(_0x3d4735=_0x3fd64a[_0x35d83d(0x1d4)])==null?void 0x0:_0x3d4735[_0x15f8c9[_0x35d83d(0xfe)]];})['filter'](_0x2a4286=>_0x2a4286!=null);if(_0x514c3b[_0x131a2c(0x328)]!==_0x17bc0b[_0x131a2c(0x328)]||_0x24584d['length']!==_0x17bc0b['length']||!Q(_0x58b19f,_0x2e52bd,{'recordIds':_0x514c3b,'fieldIds':_0x24584d})||_0x17bc0b[_0x131a2c(0x16f)]((_0x9c846b,_0x39b991)=>!Wn(_0x58b19f,_0x2e52bd,_0x24584d[_0x39b991],_0x9c846b[_0x131a2c(0x207)])))return!0x1;let _0x523ad0=_0x41ad89(_0x3fd64a,Vr(_0x3fd64a,_0x17bc0b)),_0x25d694=_0x17bc0b[_0x131a2c(0x322)](_0x43908f=>{const _0x30b315=_0x131a2c;var _0x4509fd,_0x208478;if('row'in _0x43908f)return[_0x43908f];let _0x2624f1=(_0x4509fd=_0x3fd64a['rowIndex'])==null?void 0x0:_0x4509fd[_0x43908f[_0x30b315(0x360)]],_0x31c329=(_0x208478=_0x3fd64a[_0x30b315(0x29d)])==null?void 0x0:_0x208478[_0x43908f[_0x30b315(0x12c)]];return _0x2624f1==null||_0x31c329==null?[]:[{'row':_0x2624f1,'col':_0x31c329,'value':_0x43908f[_0x30b315(0x207)]}];}),_0xdaf72c=new q()[_0x131a2c(0x2ec)](_0x28f4c5,_0x2e52bd,_0x25d694),_0x2cd42c=new _0x2be14e()[_0x131a2c(0x34d)](_0x28f4c5,_0xdaf72c),_0x3129a4={'unitId':_0x11f02d,'op':_0xdaf72c,'trigger':_0x523ad0[_0x131a2c(0x328)]?Hr['id']:void 0x0,'hierarchyChanges':_0x523ad0['length']?_0x523ad0:void 0x0,'source':_0x523ad0[_0x131a2c(0x328)]?'redo':void 0x0},_0x5225b2={'unitId':_0x11f02d,'op':_0x2cd42c,'trigger':_0x523ad0[_0x131a2c(0x328)]?Hr['id']:void 0x0,'hierarchyChanges':_0x523ad0[_0x131a2c(0x328)]?_0x523ad0[_0x131a2c(0x19b)](_0x38f6fe=>({..._0x38f6fe,'oldParentRecordId':_0x38f6fe[_0x131a2c(0x195)],'parentRecordId':_0x38f6fe[_0x131a2c(0x17a)]})):void 0x0,'source':_0x523ad0[_0x131a2c(0x328)]?_0x131a2c(0x27e):void 0x0},_0x3e8eee={..._0x3129a4,'source':_0x523ad0['length']?_0x259b86[_0x131a2c(0x2cf)]??'ui':void 0x0};return _0x370695[_0x131a2c(0x352)](_0x1a9379['id'],_0x3e8eee)?(_0x3600f6['focusUnit'](_0x11f02d),_0x4cbea1[_0x131a2c(0x286)]({'unitID':_0x11f02d,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x5225b2}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x3129a4}]}),!0x0):!0x1;}},Ur={'id':_0x504a7e(0x129),'type':_0x833d37['COMMAND'],'handler'(_0x2f4092,_0x3c22f6){const _0x33f9a0=_0x504a7e;if(!_0x3c22f6)return!0x1;let _0x53d726=_0x2f4092[_0x33f9a0(0x264)](_0x2f75e2),{unitId:_0x2200f4,tableId:_0x1e2bf9,patches:_0x14f46f}=_0x3c22f6,_0x2df3d5=_0x53d726[_0x33f9a0(0x102)](_0x2200f4,_0x17555f[_0x33f9a0(0x32a)]),_0xb02218=_0x14f46f[_0x33f9a0(0x19b)](_0x14ed16=>_0x14ed16[_0x33f9a0(0x360)]),_0xa8f803=_0x14f46f['flatMap'](_0x1039c6=>Object['keys'](_0x1039c6[_0x33f9a0(0x196)]));if(!_0x2df3d5||!Q(_0x2df3d5,_0x1e2bf9,{'recordIds':_0xb02218,'fieldIds':_0xa8f803})||_0x14f46f[_0x33f9a0(0x16f)](_0x3627c8=>Object[_0x33f9a0(0x2a2)](_0x3627c8[_0x33f9a0(0x196)])[_0x33f9a0(0x16f)](([_0x438a7c,_0x5caffd])=>!Wn(_0x2df3d5,_0x1e2bf9,_0x438a7c,_0x5caffd))))return!0x1;let _0x592186=_0x41ad89(_0x2df3d5['getSnapshot']()[_0x33f9a0(0x2c0)][_0x1e2bf9],_0x14f46f),_0x184850=_0x2f4092[_0x33f9a0(0x264)](_0x27da3e),_0x245b62=_0x2f4092[_0x33f9a0(0x264)](_0xe641a2),_0x4aee52=_0x2f4092[_0x33f9a0(0x264)](Z)[_0x33f9a0(0x11f)](_0x2df3d5,_0x1e2bf9,_0x14f46f),_0x857c77=new _0x2be14e()[_0x33f9a0(0x34d)](_0x2df3d5[_0x33f9a0(0x181)](),_0x4aee52),_0x37d7b5={'unitId':_0x2200f4,'op':_0x4aee52,'trigger':_0x592186[_0x33f9a0(0x328)]?Ur['id']:void 0x0,'hierarchyChanges':_0x592186[_0x33f9a0(0x328)]?_0x592186:void 0x0,'source':_0x592186[_0x33f9a0(0x328)]?_0x3c22f6['source']??'ui':void 0x0},_0x5d8440={..._0x37d7b5,'source':_0x592186[_0x33f9a0(0x328)]?_0x33f9a0(0x2d9):void 0x0},_0x5b36dd={'unitId':_0x2200f4,'op':_0x857c77,'trigger':_0x592186[_0x33f9a0(0x328)]?Ur['id']:void 0x0,'hierarchyChanges':_0x592186[_0x33f9a0(0x328)]?_0x592186[_0x33f9a0(0x19b)](_0x286838=>({..._0x286838,'oldParentRecordId':_0x286838[_0x33f9a0(0x195)],'parentRecordId':_0x286838[_0x33f9a0(0x17a)]})):void 0x0,'source':_0x592186[_0x33f9a0(0x328)]?_0x33f9a0(0x27e):void 0x0};return _0x184850['syncExecuteCommand'](_0x1a9379['id'],_0x37d7b5)?(_0x53d726[_0x33f9a0(0x227)](_0x2200f4),_0x245b62[_0x33f9a0(0x286)]({'unitID':_0x2200f4,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x5b36dd}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x5d8440}]}),!0x0):!0x1;}},Wr={'id':_0x504a7e(0x117),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x4fdc1b,_0x257638)=>{const _0x134820=_0x504a7e;if(!_0x257638)return!0x1;let {unitId:_0x18808c,tableId:_0x437721,fieldId:_0x45ca33}=_0x257638,_0x39348f=_0x4fdc1b[_0x134820(0x264)](_0x2f75e2),_0x2c4963=_0x39348f[_0x134820(0x102)](_0x18808c,_0x17555f[_0x134820(0x32a)]);if(!_0x2c4963||!Q(_0x2c4963,_0x437721))return!0x1;let _0x62b8bf=_0x2c4963['getSnapshot'](),_0xfd94e1=_0x62b8bf[_0x134820(0x2c0)][_0x437721];if(_0x45ca33!==null&&!_0x2b5e99(_0xfd94e1,_0x45ca33))throw new _0x3798c4(_0x134820(0x1bd));if(_0xed19c9(_0xfd94e1)===_0x45ca33)return!0x0;let _0x2139b1=new q(),_0x2d8082=Object[_0x134820(0x196)](_0xfd94e1[_0x134820(0x1d2)])['flatMap'](_0x3d2cd9=>{const _0x2b45cf=_0x134820;if(!_0x2b5e99(_0xfd94e1,_0x3d2cd9['id']))return[];let _0x47e4a5=_0x4f3842(_0x3d2cd9);if(!_0x47e4a5)return[];let _0x1474d4=_0x3d2cd9['id']===_0x45ca33;if(_0x47e4a5[_0x2b45cf(0x2fc)]===_0x3b09d0[_0x2b45cf(0x2a4)]===_0x1474d4)return[];let _0x55ab8c={..._0x3d2cd9[_0x2b45cf(0x1df)],'targetTableId':_0x47e4a5[_0x2b45cf(0x372)],'multiple':_0x47e4a5[_0x2b45cf(0x185)]};return _0x1474d4?_0x55ab8c[_0x2b45cf(0x2fc)]=_0x3b09d0[_0x2b45cf(0x2a4)]:delete _0x55ab8c['relationRole'],[_0x2139b1[_0x2b45cf(0x1ec)](_0x62b8bf,_0x437721,_0x3d2cd9['id'],{'config':_0x55ab8c})];}),_0x338a7b=_0x19c406(_0x2d8082),_0x14007b=new _0x2be14e()[_0x134820(0x34d)](_0x62b8bf,_0x338a7b),_0x412143={'unitId':_0x18808c,'op':_0x338a7b},_0x2cbdbb={'unitId':_0x18808c,'op':_0x14007b};return _0x4fdc1b[_0x134820(0x264)](_0x27da3e)[_0x134820(0x352)](_0x1a9379['id'],_0x412143)?(_0x39348f[_0x134820(0x227)](_0x18808c),_0x4fdc1b[_0x134820(0x264)](_0xe641a2)['pushUndoRedo']({'unitID':_0x18808c,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x2cbdbb}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x412143}]}),!0x0):!0x1;}},Gr={'id':'base.command.set-base-view-field-order','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x52501f,_0x273d15)=>{const _0x938e7f=_0x504a7e;if(!_0x273d15)return!0x1;let _0x34d5ec=_0x52501f[_0x938e7f(0x264)](_0x2f75e2),{unitId:_0x5c3683,tableId:_0x2647fe,viewId:_0x522200,fieldId:_0x4d2403,target:_0x52de1f}=_0x273d15,_0x1d9b16=_0x34d5ec[_0x938e7f(0x102)](_0x5c3683,_0x17555f['UNIVER_BASE']),_0x48e3b5=_0x52de1f[_0x938e7f(0x2eb)]??_0x52de1f[_0x938e7f(0x14d)];if(!_0x1d9b16||!_0x48e3b5||_0x48e3b5===_0x4d2403||!Q(_0x1d9b16,_0x2647fe,{'viewIds':[_0x522200],'fieldIds':[_0x4d2403,_0x48e3b5]}))return!0x1;let _0x39d9e7=_0x1d9b16[_0x938e7f(0x181)]()[_0x938e7f(0x2c0)][_0x2647fe],_0x37699b=_0x39d9e7[_0x938e7f(0x1d2)][_0x4d2403],_0x359bdc=_0x39d9e7[_0x938e7f(0x1d2)][_0x48e3b5];if(_0x37699b['system']===!0x0||_0x37699b['type']===_0x27fbfa[_0x938e7f(0x30c)]||_0x359bdc[_0x938e7f(0x1ba)]===!0x0||_0x359bdc['type']===_0x27fbfa['RecordId'])return!0x1;let _0x359074=_0x52501f['get'](_0x27da3e),_0x3f0674=_0x52501f[_0x938e7f(0x264)](_0xe641a2),_0x5ad4ae=_0x1d9b16[_0x938e7f(0x181)](),_0x31781d=new q()[_0x938e7f(0x107)](_0x5ad4ae,_0x2647fe,_0x522200,_0x4d2403,_0x52de1f),_0x423b00=new _0x2be14e()['invertOp'](_0x5ad4ae,_0x31781d),_0x2949a6={'unitId':_0x5c3683,'op':_0x31781d},_0x455742={'unitId':_0x5c3683,'op':_0x423b00};return _0x359074[_0x938e7f(0x352)](_0x1a9379['id'],_0x2949a6)?(_0x34d5ec[_0x938e7f(0x227)](_0x5c3683),_0x3f0674[_0x938e7f(0x286)]({'unitID':_0x5c3683,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x455742}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x2949a6}]}),!0x0):!0x1;}},Kr={'id':'base.command.set-base-view-field-visible','type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x508f09,_0x1f9cd7){const _0x2c3ffb=_0x504a7e;if(!_0x1f9cd7)return!0x1;let _0x576834=_0x508f09[_0x2c3ffb(0x264)](_0x2f75e2),{unitId:_0x59d205,tableId:_0x456fe3,viewId:_0x8c6706,fieldId:_0x5965bf,visible:_0x46de94}=_0x1f9cd7,_0x393e7e=_0x576834[_0x2c3ffb(0x102)](_0x59d205,_0x17555f['UNIVER_BASE']);if(!_0x393e7e||!Q(_0x393e7e,_0x456fe3,{'viewIds':[_0x8c6706],'fieldIds':[_0x5965bf]}))return!0x1;let _0x5e4506=_0x393e7e[_0x2c3ffb(0x181)]()['tables'][_0x456fe3][_0x2c3ffb(0x1d2)][_0x5965bf];if(_0x5e4506[_0x2c3ffb(0x1ba)]===!0x0||_0x5e4506[_0x2c3ffb(0x337)]===_0x27fbfa[_0x2c3ffb(0x30c)])return!0x1;let _0x3b1021=_0x508f09[_0x2c3ffb(0x264)](_0x27da3e),_0x170b69=_0x508f09[_0x2c3ffb(0x264)](_0xe641a2),_0x10879d=_0x393e7e[_0x2c3ffb(0x181)](),_0x3b2f9d=new q()[_0x2c3ffb(0x215)](_0x10879d,_0x456fe3,_0x8c6706,_0x5965bf,_0x46de94),_0x49257b=new _0x2be14e()['invertOp'](_0x10879d,_0x3b2f9d),_0x36e2be={'unitId':_0x59d205,'op':_0x3b2f9d},_0x39c4d9={'unitId':_0x59d205,'op':_0x49257b};return _0x3b1021[_0x2c3ffb(0x352)](_0x1a9379['id'],_0x36e2be)?(_0x576834[_0x2c3ffb(0x227)](_0x59d205),_0x170b69[_0x2c3ffb(0x286)]({'unitID':_0x59d205,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x39c4d9}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x36e2be}]}),!0x0):!0x1;}},qr={'id':_0x504a7e(0x266),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x15f65d,_0x53a5d7)=>{const _0x5e157d=_0x504a7e;if(!_0x53a5d7)return!0x1;let _0x354249=_0x15f65d[_0x5e157d(0x264)](_0x2f75e2),{unitId:_0x33e228,tableId:_0xb5f835,viewId:_0x2dcc9a,fieldId:_0x578292,width:_0x551636}=_0x53a5d7,_0x2782c8=_0x354249[_0x5e157d(0x102)](_0x33e228,_0x17555f[_0x5e157d(0x32a)]);if(!_0x2782c8||!Q(_0x2782c8,_0xb5f835,{'viewIds':[_0x2dcc9a],'fieldIds':[_0x578292]}))return!0x1;let _0x325052=_0x2782c8[_0x5e157d(0x181)]()['tables'][_0xb5f835][_0x5e157d(0x1d2)][_0x578292];if(_0x325052['system']===!0x0||_0x325052[_0x5e157d(0x337)]===_0x27fbfa[_0x5e157d(0x30c)])return!0x1;let _0x2fd02d=_0x15f65d[_0x5e157d(0x264)](_0x27da3e),_0x10477b=_0x15f65d['get'](_0xe641a2),_0xca4826=_0x2782c8[_0x5e157d(0x181)](),_0x5c5935=new q()[_0x5e157d(0x246)](_0xca4826,_0xb5f835,_0x2dcc9a,_0x578292,_0x551636),_0x27ea68=new _0x2be14e()['invertOp'](_0xca4826,_0x5c5935),_0x25fbc9={'unitId':_0x33e228,'op':_0x5c5935},_0x51440a={'unitId':_0x33e228,'op':_0x27ea68};return _0x2fd02d[_0x5e157d(0x352)](_0x1a9379['id'],_0x25fbc9)?(_0x354249[_0x5e157d(0x227)](_0x33e228),_0x10477b[_0x5e157d(0x286)]({'unitID':_0x33e228,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x51440a}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x25fbc9}]}),!0x0):!0x1;}},Jr={'id':_0x504a7e(0x257),'type':_0x833d37['COMMAND'],'handler':(_0x4f2272,_0x2bb32a)=>{const _0x50cda1=_0x504a7e;if(!_0x2bb32a)return!0x1;let _0x2995cc=_0x4f2272[_0x50cda1(0x264)](_0x2f75e2),{unitId:_0x4f2744,tableId:_0xd8a79b,viewId:_0x41d448,filter:_0x5aec80}=_0x2bb32a,_0x514ab4=_0x2995cc[_0x50cda1(0x102)](_0x4f2744,_0x17555f['UNIVER_BASE']),_0x2d8437=(_0x5aec80==null?void 0x0:_0x5aec80[_0x50cda1(0x287)]['map'](_0x45fed0=>_0x45fed0[_0x50cda1(0x12c)]))??[];if(!_0x514ab4||!Q(_0x514ab4,_0xd8a79b,{'viewIds':[_0x41d448],'fieldIds':_0x2d8437}))return!0x1;let _0x32b3e4=_0x4f2272[_0x50cda1(0x264)](_0x27da3e),_0x167296=_0x4f2272[_0x50cda1(0x264)](_0xe641a2),_0x48a31a=_0x514ab4[_0x50cda1(0x181)](),_0x4c5544=new q()['setViewFilter'](_0x48a31a,_0xd8a79b,_0x41d448,_0x5aec80),_0x45a3b5=new _0x2be14e()[_0x50cda1(0x34d)](_0x48a31a,_0x4c5544),_0x347cb0={'unitId':_0x4f2744,'op':_0x4c5544},_0x23065a={'unitId':_0x4f2744,'op':_0x45a3b5};return _0x32b3e4['syncExecuteCommand'](_0x1a9379['id'],_0x347cb0)?(_0x2995cc[_0x50cda1(0x227)](_0x4f2744),_0x167296[_0x50cda1(0x286)]({'unitID':_0x4f2744,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x23065a}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x347cb0}]}),!0x0):!0x1;}},Yr={'id':_0x504a7e(0x347),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x451d6e,_0x52682b)=>{const _0x415a43=_0x504a7e;if(!_0x52682b)return!0x1;let _0x5d08da=_0x451d6e[_0x415a43(0x264)](_0x2f75e2),{unitId:_0x2d6a57,tableId:_0x7c2428,viewId:_0x1fcf37,group:_0x494639}=_0x52682b,_0x1e8753=_0x5d08da['getUnit'](_0x2d6a57,_0x17555f['UNIVER_BASE']);if(!_0x1e8753||!Q(_0x1e8753,_0x7c2428,{'viewIds':[_0x1fcf37],'fieldIds':_0x494639[_0x415a43(0x19b)](_0xc4cc56=>_0xc4cc56['fieldId'])}))return!0x1;let _0x243ba2=_0x451d6e['get'](_0x27da3e),_0x511324=_0x451d6e[_0x415a43(0x264)](_0xe641a2),_0x5f0317=_0x1e8753[_0x415a43(0x181)](),_0x931e59=new q()[_0x415a43(0x35d)](_0x5f0317,_0x7c2428,_0x1fcf37,_0x494639),_0x1be5a2=new _0x2be14e()[_0x415a43(0x34d)](_0x5f0317,_0x931e59),_0x33190e={'unitId':_0x2d6a57,'op':_0x931e59},_0x90c1e4={'unitId':_0x2d6a57,'op':_0x1be5a2};return _0x243ba2[_0x415a43(0x352)](_0x1a9379['id'],_0x33190e)?(_0x5d08da['focusUnit'](_0x2d6a57),_0x511324[_0x415a43(0x286)]({'unitID':_0x2d6a57,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x90c1e4}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x33190e}]}),!0x0):!0x1;}},Xr={'id':_0x504a7e(0x1aa),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x277bc4,_0x2b43cd)=>{const _0x404364=_0x504a7e;if(!_0x2b43cd)return!0x1;let _0x2d3ec5=_0x277bc4[_0x404364(0x264)](_0x2f75e2),{unitId:_0x2fdcc5,tableId:_0x3ab6b4,viewId:_0x33274d,sort:_0x3b8598}=_0x2b43cd,_0x5754fa=_0x2d3ec5['getUnit'](_0x2fdcc5,_0x17555f[_0x404364(0x32a)]);if(!_0x5754fa||!Q(_0x5754fa,_0x3ab6b4,{'viewIds':[_0x33274d],'fieldIds':_0x3b8598['map'](_0x4025fb=>_0x4025fb[_0x404364(0x12c)])}))return!0x1;let _0x876667=_0x277bc4[_0x404364(0x264)](_0x27da3e),_0x1cc2d2=_0x277bc4[_0x404364(0x264)](_0xe641a2),_0x30b52e=_0x5754fa['getSnapshot'](),_0x35bd3c=new q()[_0x404364(0x13c)](_0x30b52e,_0x3ab6b4,_0x33274d,_0x3b8598),_0x5608f7=new _0x2be14e()['invertOp'](_0x30b52e,_0x35bd3c),_0x4baeda={'unitId':_0x2fdcc5,'op':_0x35bd3c},_0x1e59d6={'unitId':_0x2fdcc5,'op':_0x5608f7};return _0x876667['syncExecuteCommand'](_0x1a9379['id'],_0x4baeda)?(_0x2d3ec5[_0x404364(0x227)](_0x2fdcc5),_0x1cc2d2[_0x404364(0x286)]({'unitID':_0x2fdcc5,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x1e59d6}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x4baeda}]}),!0x0):!0x1;}},Zr={'id':_0x504a7e(0x172),'type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x25393d,_0x44d1ab){const _0x50f068=_0x504a7e;if(!_0x44d1ab)return!0x1;let _0x3117cf=_0x25393d[_0x50f068(0x264)](_0x2f75e2),{unitId:_0x413976,tableId:_0x547605,recordId:_0x5c9dc2,fieldId:_0x38dcd9,value:_0x3a65cd}=_0x44d1ab,_0x2faa45=_0x3117cf[_0x50f068(0x102)](_0x413976,_0x17555f[_0x50f068(0x32a)]);if(!_0x2faa45||!Q(_0x2faa45,_0x547605,{'recordIds':[_0x5c9dc2],'fieldIds':[_0x38dcd9]})||!Wn(_0x2faa45,_0x547605,_0x38dcd9,_0x3a65cd))return!0x1;let _0x41ad73=_0x2faa45[_0x50f068(0x181)]()[_0x50f068(0x2c0)][_0x547605],_0x212439=_0x2b5e99(_0x41ad73,_0x38dcd9)&&_0x293ef7(_0x41ad73)[_0x50f068(0x1bb)](_0x38dcd9),_0x48e8cd=_0x212439?_0x3ac0ab(_0x41ad73,_0x38dcd9):null,_0x3a2cc1=(_0x48e8cd==null?void 0x0:_0x48e8cd[_0x50f068(0xfd)][_0x50f068(0x264)](_0x5c9dc2))??null,_0x1288d3=_0x212439?_0x1004bc(_0x3a65cd)[0x0]??null:null;if(_0x48e8cd){if(_0x1288d3&&!_0x41ad73['records'][_0x1288d3])throw new _0x3798c4(_0x50f068(0x2a0));let _0x454221=_0x5765d0(_0x48e8cd,_0x5c9dc2,_0x1288d3);if(!_0x454221['valid']){let _0x17c53f=_0x454221[_0x50f068(0x320)]===_0x27eb99[_0x50f068(0x2ba)]?_0x50f068(0x167):_0x454221[_0x50f068(0x320)]===_0x27eb99[_0x50f068(0x11d)]?'cycle':_0x50f068(0x2e4);throw new _0x3798c4(_0x17c53f);}}let _0x369f36=_0x25393d[_0x50f068(0x264)](_0x27da3e),_0x4d0f53=_0x25393d[_0x50f068(0x264)](_0xe641a2),_0x4f44b7=_0x25393d[_0x50f068(0x264)](Z),_0x23022a;try{_0x23022a=_0x4f44b7[_0x50f068(0x155)](_0x2faa45,_0x547605,_0x5c9dc2,_0x38dcd9,_0x3a65cd);}catch(_0x3e2ef8){return console['error']('Failed\x20to\x20create\x20update\x20cell\x20operation:',_0x3e2ef8),!0x1;}let _0x3c69a1=new _0x2be14e()['invertOp'](_0x2faa45[_0x50f068(0x181)](),_0x23022a),_0x9edc31=_0x212439&&_0x3a2cc1!==_0x1288d3?[{'tableId':_0x547605,'fieldId':_0x38dcd9,'recordId':_0x5c9dc2,'oldParentRecordId':_0x3a2cc1,'parentRecordId':_0x1288d3}]:void 0x0,_0x1f7498={'unitId':_0x413976,'op':_0x23022a,'trigger':_0x9edc31?Zr['id']:void 0x0,'hierarchyChanges':_0x9edc31,'source':_0x9edc31?_0x44d1ab[_0x50f068(0x2cf)]??'ui':void 0x0},_0x1bef46={..._0x1f7498,'source':_0x9edc31?_0x50f068(0x2d9):void 0x0},_0x4a987d={'unitId':_0x413976,'op':_0x3c69a1,'trigger':_0x9edc31?Zr['id']:void 0x0,'hierarchyChanges':_0x9edc31==null?void 0x0:_0x9edc31[_0x50f068(0x19b)](_0x552950=>({..._0x552950,'oldParentRecordId':_0x552950[_0x50f068(0x195)],'parentRecordId':_0x552950[_0x50f068(0x17a)]})),'source':_0x9edc31?_0x50f068(0x27e):void 0x0};return _0x369f36[_0x50f068(0x352)](_0x1a9379['id'],_0x1f7498)?(_0x3117cf[_0x50f068(0x203)]()||_0x3117cf[_0x50f068(0x227)](_0x413976),_0x4d0f53[_0x50f068(0x286)]({'unitID':_0x413976,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x4a987d}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x1bef46}]}),!0x0):!0x1;}},Qr={'id':_0x504a7e(0x315),'type':_0x833d37[_0x504a7e(0x1d9)],'handler'(_0x2895db,_0x3e0234){const _0x19be05=_0x504a7e;if(!_0x3e0234)return!0x1;let _0x201e4e=_0x2895db[_0x19be05(0x264)](_0x2f75e2),{unitId:_0x56d890,tableId:_0xf02719,fieldId:_0x2df119}=_0x3e0234,_0x1c9c51=_0x201e4e['getUnit'](_0x56d890,_0x17555f[_0x19be05(0x32a)]);if(!_0x1c9c51||!Q(_0x1c9c51,_0xf02719,{'fieldIds':[_0x2df119]}))return!0x1;let _0x522508=_0x2895db[_0x19be05(0x264)](_0x27da3e),_0x42c6f0=_0x2895db[_0x19be05(0x264)](_0xe641a2),_0x42fda3=_0x1c9c51['getSnapshot'](),_0x8ab666=_0x3e0234['description'][_0x19be05(0x14b)](),_0x40919f=new q()[_0x19be05(0x1ec)](_0x42fda3,_0xf02719,_0x2df119,{'description':_0x8ab666}),_0x320e1b=new _0x2be14e()[_0x19be05(0x34d)](_0x1c9c51[_0x19be05(0x181)](),_0x40919f),_0x2dd3af={'unitId':_0x56d890,'op':_0x40919f},_0x30d299={'unitId':_0x56d890,'op':_0x320e1b};return _0x522508['syncExecuteCommand'](_0x1a9379['id'],_0x2dd3af)?(_0x201e4e[_0x19be05(0x227)](_0x56d890),_0x42c6f0[_0x19be05(0x286)]({'unitID':_0x56d890,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x30d299}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x2dd3af}]}),!0x0):!0x1;}},$r={'id':_0x504a7e(0x179),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x19f34f,_0x8a7917)=>{const _0xdb4293=_0x504a7e;if(!_0x8a7917)return!0x1;let _0x573283=_0x19f34f['get'](_0x2f75e2),{unitId:_0x5ac158,tableId:_0x49bcdb,fieldId:_0x589fd3,patch:_0xd341ef}=_0x8a7917,_0x4c17b2=_0x573283['getUnit'](_0x5ac158,_0x17555f['UNIVER_BASE']);if(!_0x4c17b2||_0x589fd3===_0x3fdab9||!Q(_0x4c17b2,_0x49bcdb,{'fieldIds':[_0x589fd3]}))return!0x1;let _0x1f988a=_0x19f34f[_0xdb4293(0x264)](_0x27da3e),_0x5d9075=_0x19f34f[_0xdb4293(0x264)](_0xe641a2),_0x587fa7=_0x4c17b2['getSnapshot']();if(!Un(_0x4c17b2,_0x49bcdb,{..._0x587fa7['tables'][_0x49bcdb][_0xdb4293(0x1d2)][_0x589fd3],..._0xd341ef}))return!0x1;let _0x3f4b0e=new q()[_0xdb4293(0x1ec)](_0x587fa7,_0x49bcdb,_0x589fd3,_0xd341ef),_0x5946d5=new _0x2be14e()[_0xdb4293(0x34d)](_0x587fa7,_0x3f4b0e),_0x282f08={'unitId':_0x5ac158,'op':_0x3f4b0e},_0x5ac117={'unitId':_0x5ac158,'op':_0x5946d5};return _0x1f988a['syncExecuteCommand'](_0x1a9379['id'],_0x282f08)?(_0x573283[_0xdb4293(0x227)](_0x5ac158),_0x5d9075[_0xdb4293(0x286)]({'unitID':_0x5ac158,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x5ac117}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x282f08}]}),!0x0):!0x1;}},ei={'id':_0x504a7e(0x2da),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x502282,_0x4c5703)=>{const _0x331891=_0x504a7e;if(!_0x4c5703)return!0x1;let _0x56392e=_0x502282['get'](_0x2f75e2),{unitId:_0xbab46e,tableId:_0x185fbb,viewId:_0x1ecb87,patch:_0x17bc34}=_0x4c5703,_0x28f9af=_0x56392e[_0x331891(0x102)](_0xbab46e,_0x17555f['UNIVER_BASE']);if(!_0x28f9af||!Q(_0x28f9af,_0x185fbb,{'viewIds':[_0x1ecb87]}))return!0x1;let _0x22314b=_0x502282[_0x331891(0x264)](_0x27da3e),_0x2edd06=_0x502282[_0x331891(0x264)](_0xe641a2),_0x1b0961=_0x28f9af[_0x331891(0x181)](),_0x557071=new q()[_0x331891(0x22e)](_0x1b0961,_0x185fbb,_0x1ecb87,_0x17bc34),_0x16ca03=new _0x2be14e()['invertOp'](_0x1b0961,_0x557071),_0x5b16ba={'unitId':_0xbab46e,'op':_0x557071},_0x119ed6={'unitId':_0xbab46e,'op':_0x16ca03};return _0x22314b[_0x331891(0x352)](_0x1a9379['id'],_0x5b16ba)?(_0x56392e[_0x331891(0x227)](_0xbab46e),_0x2edd06['pushUndoRedo']({'unitID':_0xbab46e,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x119ed6}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x5b16ba}]}),!0x0):!0x1;}},ti={'id':_0x504a7e(0x15e),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x4ee8b5,_0x1277cf)=>{const _0x1ed6b8=_0x504a7e;if(!_0x1277cf)return!0x1;let _0x7d9edb=_0x4ee8b5[_0x1ed6b8(0x264)](_0x2f75e2),{unitId:_0xa15fd,tableId:_0x4c7aaf,recordId:_0x6ed532,orderKey:_0x411f83}=_0x1277cf,_0x145db7=_0x7d9edb[_0x1ed6b8(0x102)](_0xa15fd,_0x17555f['UNIVER_BASE']);if(!_0x145db7||!Q(_0x145db7,_0x4c7aaf,{'recordIds':[_0x6ed532]}))return!0x1;let _0x103819=_0x4ee8b5[_0x1ed6b8(0x264)](_0x27da3e),_0x26fba5=_0x4ee8b5[_0x1ed6b8(0x264)](_0xe641a2),_0x28875c=_0x145db7['getSnapshot'](),_0x3cb37b=new q()['updateRecordOrder'](_0x28875c,_0x4c7aaf,_0x6ed532,_0x411f83),_0x8d27d2=new _0x2be14e()['invertOp'](_0x28875c,_0x3cb37b),_0x3e1454={'unitId':_0xa15fd,'op':_0x3cb37b},_0x36d249={'unitId':_0xa15fd,'op':_0x8d27d2};return _0x103819['syncExecuteCommand'](_0x1a9379['id'],_0x3e1454)?(_0x7d9edb[_0x1ed6b8(0x227)](_0xa15fd),_0x26fba5[_0x1ed6b8(0x286)]({'unitID':_0xa15fd,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x36d249}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x3e1454}]}),!0x0):!0x1;}};let ni=function(_0x3e8211){const _0x4566a5=_0x504a7e;return _0x3e8211[_0x4566a5(0x339)]='set',_0x3e8211[_0x4566a5(0x106)]='add',_0x3e8211[_0x4566a5(0x25e)]='delete',_0x3e8211[_0x4566a5(0x221)]='clear',_0x3e8211;}({});const ri={'id':'base.command.update-base-view-conditional-color-rules','type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x3993e2,_0x274eab)=>{const _0x36477d=_0x504a7e;var _0x1ff4bd;if(!_0x274eab)return!0x1;let _0x1fe8ec=_0x3993e2['get'](_0x2f75e2),_0x5bce98=_0x1fe8ec[_0x36477d(0x102)](_0x274eab['unitId'],_0x17555f['UNIVER_BASE']);if(!_0x5bce98||!Q(_0x5bce98,_0x274eab[_0x36477d(0x25a)],{'viewIds':[_0x274eab['viewId']]}))return!0x1;let _0x37e904=_0x5bce98['getSnapshot'](),_0x302410=_0x37e904[_0x36477d(0x2c0)][_0x274eab[_0x36477d(0x25a)]],_0x2556e0=ii(((_0x1ff4bd=_0x302410[_0x36477d(0x2b5)][_0x274eab[_0x36477d(0x330)]]['config'][_0x36477d(0x348)])==null?void 0x0:_0x1ff4bd[_0x36477d(0x19f)])??[],_0x274eab);if(!_0x2556e0)return!0x1;ai(_0x302410,_0x2556e0);let _0x72e6b5=new q()[_0x36477d(0x22e)](_0x37e904,_0x274eab[_0x36477d(0x25a)],_0x274eab[_0x36477d(0x330)],{'conditionalColoring':_0x2556e0[_0x36477d(0x328)]?{'rules':_0x2556e0}:null}),_0x4bb63c=new _0x2be14e()['invertOp'](_0x37e904,_0x72e6b5),_0x12b32c={'unitId':_0x274eab[_0x36477d(0x1fb)],'op':_0x72e6b5},_0x111812={'unitId':_0x274eab[_0x36477d(0x1fb)],'op':_0x4bb63c};return _0x3993e2[_0x36477d(0x264)](_0x27da3e)[_0x36477d(0x352)](_0x1a9379['id'],_0x12b32c)?(_0x1fe8ec[_0x36477d(0x227)](_0x274eab[_0x36477d(0x1fb)]),_0x3993e2['get'](_0xe641a2)['pushUndoRedo']({'unitID':_0x274eab[_0x36477d(0x1fb)],'undoMutations':[{'id':_0x1a9379['id'],'params':_0x111812}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x12b32c}]}),!0x0):!0x1;}};function ii(_0x2a4413,_0x5c5913){const _0x3ae7b8=_0x504a7e;switch(_0x5c5913[_0x3ae7b8(0x337)]){case _0x3ae7b8(0x26b):return _0x1e2b57[_0x3ae7b8(0x2f3)](_0x5c5913[_0x3ae7b8(0x19f)]);case _0x3ae7b8(0xf6):return[..._0x1e2b57['deepClone'](_0x2a4413),_0x1e2b57[_0x3ae7b8(0x2f3)](_0x5c5913[_0x3ae7b8(0x1cb)])];case _0x3ae7b8(0x149):{let _0x2ecbd6=_0x2a4413[_0x3ae7b8(0x231)](_0x4b60b1=>_0x4b60b1['id']!==_0x5c5913[_0x3ae7b8(0x311)]);return _0x2ecbd6[_0x3ae7b8(0x328)]===_0x2a4413[_0x3ae7b8(0x328)]?null:_0x1e2b57[_0x3ae7b8(0x2f3)](_0x2ecbd6);}case _0x3ae7b8(0x30e):return _0x2a4413[_0x3ae7b8(0x328)]?[]:null;}}function ai(_0x3f435b,_0x520469){const _0x2fc41f=_0x504a7e;if(!Array[_0x2fc41f(0x216)](_0x520469))throw TypeError(_0x2fc41f(0x15b));let _0x42a00e=new Set();for(let [_0x2ad4c4,_0x674280]of _0x520469[_0x2fc41f(0x2a2)]())si(_0x3f435b,_0x674280,oi(_0x674280,_0x2ad4c4,_0x42a00e));}function oi(_0x2219d2,_0x66d8ca,_0x4ba33b){const _0x575238=_0x504a7e;if(!_0x2219d2||typeof _0x2219d2!='object')throw TypeError(_0x575238(0xfc)+_0x66d8ca+_0x575238(0x359));let _0x5c0488=typeof _0x2219d2['id']==_0x575238(0x1e9)&&_0x2219d2['id'][_0x575238(0x14b)]()?'\x22'+_0x2219d2['id']+'\x22':_0x575238(0x2a5)+_0x66d8ca;if(typeof _0x2219d2['id']!='string'||!_0x2219d2['id'][_0x575238(0x14b)]())throw Error(_0x575238(0x1e7)+_0x5c0488+_0x575238(0x158));if(_0x4ba33b[_0x575238(0x34c)](_0x2219d2['id']))throw Error(_0x575238(0x232)+_0x2219d2['id']+'\x22.');_0x4ba33b[_0x575238(0xf6)](_0x2219d2['id']);let _0x284286=typeof _0x2219d2['color']=='string'&&_0x2219d2['color'][_0x575238(0x14b)]()?new _0x46b46b(_0x2219d2['color']):null;if(!(_0x284286!=null&&_0x284286[_0x575238(0x150)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x5c0488+_0x575238(0x1a0));return _0x5c0488;}function si(_0x3e746a,_0x1c525c,_0x231045){const _0x414f1=_0x504a7e;let _0x402737=new Set(Object[_0x414f1(0x196)](_0x10a700)),_0x7d22ec=new Set(Object[_0x414f1(0x196)](_0x420109)),_0x2d25aa=new Set(Object['values'](_0x575a0e));if(!_0x402737['has'](_0x1c525c['target']))throw Error(_0x414f1(0x1e7)+_0x231045+_0x414f1(0x1d8)+String(_0x1c525c[_0x414f1(0x2dd)])+'\x22.');let _0x4498ba=typeof _0x1c525c[_0x414f1(0x12c)]=='string'?_0x3e746a[_0x414f1(0x1d2)][_0x1c525c['fieldId']]:void 0x0;if(!_0x4498ba||_0x4498ba[_0x414f1(0x1ba)]===!0x0||_0x4498ba[_0x414f1(0x337)]===_0x27fbfa['RecordId'])throw Error(_0x414f1(0x1e7)+_0x231045+_0x414f1(0x2e5)+String(_0x1c525c[_0x414f1(0x12c)])+'\x22.');if(!_0x7d22ec[_0x414f1(0x34c)](_0x1c525c[_0x414f1(0x152)]))throw Error(_0x414f1(0x1e7)+_0x231045+_0x414f1(0x18d)+String(_0x1c525c[_0x414f1(0x152)])+'\x22.');if(_0x1c525c[_0x414f1(0x2ae)]!==void 0x0&&!_0x2d25aa[_0x414f1(0x34c)](_0x1c525c[_0x414f1(0x2ae)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x231045+'\x20has\x20unsupported\x20date\x20mode\x20\x22'+String(_0x1c525c['dateMode'])+'\x22.');if(_0x1c525c[_0x414f1(0x2dd)]===_0x10a700[_0x414f1(0x2bd)])return;let _0xa5a215=_0x5b6408(_0x4498ba[_0x414f1(0x337)]);if(!_0xa5a215[_0x414f1(0x1bb)](_0x1c525c['operator']))throw Error(_0x414f1(0x1e7)+_0x231045+_0x414f1(0x2b1)+_0x1c525c[_0x414f1(0x152)]+_0x414f1(0x11b)+_0x4498ba[_0x414f1(0x337)]+'\x22.\x20Allowed\x20operators:\x20'+_0xa5a215['join'](',\x20')+'.');if(_0x1c525c[_0x414f1(0x2ae)]!==void 0x0&&!_0x461d57(_0x4498ba[_0x414f1(0x337)]))throw Error(_0x414f1(0x1e7)+_0x231045+_0x414f1(0x140));}const ci={'id':_0x504a7e(0x24f),'type':_0x833d37[_0x504a7e(0x1d9)],'handler':(_0x59d185,_0x14ab77)=>{const _0x2ef43a=_0x504a7e;if(!_0x14ab77)return!0x1;let _0x52abdb=_0x59d185['get'](_0x2f75e2),{unitId:_0x36ea81,tableId:_0x396131,viewId:_0x5560fa,patch:_0x279eef}=_0x14ab77,_0x30c613=_0x52abdb[_0x2ef43a(0x102)](_0x36ea81,_0x17555f[_0x2ef43a(0x32a)]);if(!_0x30c613||!Q(_0x30c613,_0x396131,{'viewIds':[_0x5560fa]}))return!0x1;let _0x4cdf26=_0x59d185[_0x2ef43a(0x264)](_0x27da3e),_0x351d7e=_0x59d185['get'](_0xe641a2),_0x33e179=_0x30c613[_0x2ef43a(0x181)](),_0x374f85=new q()['updateViewConfig'](_0x33e179,_0x396131,_0x5560fa,_0x279eef),_0x53ff53=new _0x2be14e()[_0x2ef43a(0x34d)](_0x33e179,_0x374f85),_0x5231f9={'unitId':_0x36ea81,'op':_0x374f85},_0x1304f0={'unitId':_0x36ea81,'op':_0x53ff53};return _0x4cdf26[_0x2ef43a(0x352)](_0x1a9379['id'],_0x5231f9)?(_0x52abdb['focusUnit'](_0x36ea81),_0x351d7e[_0x2ef43a(0x286)]({'unitID':_0x36ea81,'undoMutations':[{'id':_0x1a9379['id'],'params':_0x1304f0}],'redoMutations':[{'id':_0x1a9379['id'],'params':_0x5231f9}]}),!0x0):!0x1;}},li={'id':_0x504a7e(0x282),'type':_0x833d37['COMMAND'],'handler'(_0x432bd9,_0x36cb71){const _0x485d90=_0x504a7e;if(!_0x36cb71)return{'valid':!0x1,'reason':'[BaseFormula]:\x20validation\x20parameters\x20are\x20required.'};let _0x3afb76=_0x432bd9['get'](_0x2f75e2)['getUnit'](_0x36cb71[_0x485d90(0x1fb)],_0x17555f[_0x485d90(0x32a)]),_0x54cadf=_0x3afb76==null?void 0x0:_0x3afb76['getSnapshot'](),_0x1b654d=_0x54cadf==null?void 0x0:_0x54cadf[_0x485d90(0x2c0)][_0x36cb71['tableId']];return!_0x54cadf||!_0x1b654d?{'valid':!0x1,'reason':_0x485d90(0x1ed)}:new wn()['validateFormula'](_0x36cb71[_0x485d90(0x247)],_0x1b654d,{'snapshot':_0x54cadf});}};let ui=class extends _0x1b19fe{constructor(_0x4fbbd9){const _0x18a450=_0x504a7e;super(_0x4fbbd9,_0x18a450(0x2e3),_0x17555f[_0x18a450(0x32a)],[_0x38f610[_0x18a450(0x24a)],_0x38f610[_0x18a450(0x268)],_0x38f610[_0x18a450(0x1de)],_0x38f610[_0x18a450(0x367)],_0x38f610[_0x18a450(0x2d3)]]);}};ui=_0x33f97a([_0x5242b9(0x0,_0x321aad)],ui);const di={'id':_0x504a7e(0x108),'type':_0x833d37[_0x504a7e(0x1a4)],'handler':(_0x2966ec,_0xba808b)=>!_0xba808b||!_0x2966ec[_0x504a7e(0x264)](_0x2f75e2)['getUnit'](_0xba808b[_0x504a7e(0x1fb)],_0x17555f[_0x504a7e(0x32a)])?!0x1:_0x2966ec[_0x504a7e(0x264)](ui)[_0x504a7e(0x314)](_0xba808b['unitId'],_0xba808b['objectType'],_0xba808b[_0x504a7e(0x16d)],_0xba808b[_0x504a7e(0x1cb)])},fi={'id':_0x504a7e(0x113),'type':_0x833d37['MUTATION'],'handler':(_0x1de281,_0x3add5d)=>!_0x3add5d||!_0x1de281[_0x504a7e(0x264)](_0x2f75e2)[_0x504a7e(0x102)](_0x3add5d['unitId'],_0x17555f[_0x504a7e(0x32a)])?!0x1:_0x1de281[_0x504a7e(0x264)](ui)[_0x504a7e(0x309)](_0x3add5d[_0x504a7e(0x1fb)],_0x3add5d['rules'])};function pi(_0x4cf91b){const _0x47fc1e=_0x504a7e;let _0x42eb57=_0x4cf91b[_0x47fc1e(0x12f)]??Date['now'](),_0x565974=_0x4cf91b['primaryFieldId']??_0x4cf91b['id']+_0x47fc1e(0x1d3),_0x14a44d=_0x4cf91b[_0x47fc1e(0x141)]??_0x4cf91b['id']+_0x47fc1e(0xff),_0x73badf=_0x4cf91b['recordCount']??0x0,_0x151cd9=_0x171d11(),_0x33125c={'id':_0x565974,'name':_0x4cf91b[_0x47fc1e(0xf9)]??_0x47fc1e(0x13f),'type':_0x27fbfa[_0x47fc1e(0x2f8)],'config':{'placeholder':_0x47fc1e(0x116)}},_0x550b48={},_0x326779=[],_0x76dd7c={},_0x3f5d73={},_0x332c8a={};for(let _0x23aff3=0x0;_0x23aff3<_0x73badf;_0x23aff3++){let _0xe77051=_0x4cf91b['id']+_0x47fc1e(0x1b4)+(_0x23aff3+0x1);_0x550b48[_0xe77051]={'id':_0xe77051,'values':{[_0x3fdab9]:_0xe77051,..._0x4cf91b[_0x47fc1e(0x2b4)]?{[_0x565974]:_0x4cf91b[_0x47fc1e(0x2b4)]+'\x20'+(_0x23aff3+0x1)}:{}},'orderKey':String(_0x23aff3+0x1)[_0x47fc1e(0x237)](0x4,'0'),'createdAt':_0x42eb57,'updatedAt':_0x42eb57},_0x326779[_0x47fc1e(0x2b9)](_0xe77051),_0x76dd7c[_0xe77051]=_0x23aff3,_0x3f5d73[_0x23aff3]=_0xe77051,_0x332c8a[_0x23aff3]={0x0:{'v':_0xe77051,'t':_0x2e0acd['STRING']}},_0x4cf91b[_0x47fc1e(0x2b4)]&&(_0x332c8a[_0x23aff3][0x1]={'v':_0x4cf91b['recordNamePrefix']+'\x20'+(_0x23aff3+0x1),'t':_0x2e0acd[_0x47fc1e(0x11a)]});}let _0x275f87={'id':_0x14a44d,'tableId':_0x4cf91b['id'],'name':_0x47fc1e(0x1b6),'type':_0x4e1338[_0x47fc1e(0x1b6)],'fieldOrder':[_0x3fdab9,_0x565974],'fieldSettings':{[_0x3fdab9]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x4cf91b['id'],'name':_0x4cf91b[_0x47fc1e(0x121)],'primaryFieldId':_0x565974,'fieldOrder':[_0x3fdab9,_0x565974],'fields':{[_0x3fdab9]:_0x151cd9,[_0x565974]:_0x33125c},'records':_0x550b48,'recordOrder':_0x326779,'rowIndex':_0x76dd7c,'rowId':_0x3f5d73,'colIndex':{[_0x3fdab9]:0x0,[_0x565974]:0x1},'colId':{0x0:_0x3fdab9,0x1:_0x565974},'cellData':_0x332c8a,'views':{[_0x14a44d]:_0x275f87},'viewOrder':[_0x14a44d]};}const mi=_0x504a7e(0x1c3);function hi(_0xad9be5){const _0x30e4c6=_0x504a7e;let _0x43d467=pi({'id':_0xad9be5[_0x30e4c6(0x1ab)],'name':_0xad9be5[_0x30e4c6(0x121)]??_0xad9be5[_0x30e4c6(0x2f4)],'recordCount':0x0});return{..._0x43d467,'resources':{..._0x43d467[_0x30e4c6(0x18a)]??{},[mi]:vi(_0xad9be5)}};}function gi(_0x53f304){const _0x24d313=_0x504a7e;return{'id':_0x1a9379['id'],'params':{'unitId':_0x53f304[_0x24d313(0x1fb)],'op':_0x14cbd0[_0x24d313(0x337)][_0x24d313(0x35a)](_0x14cbd0[_0x24d313(0x10b)]([_0x24d313(0x2c0),_0x53f304[_0x24d313(0x30a)]['id']],_0x53f304[_0x24d313(0x30a)]),_0x14cbd0[_0x24d313(0x10b)]([_0x24d313(0x165),_0x53f304['index']??_0x53f304[_0x24d313(0x201)][_0x24d313(0x165)]['length']],_0x53f304['table']['id'])),'trigger':_0x24d313(0x1c2)}};}function _i(_0x2dd867){const _0x592f68=_0x504a7e;let _0x4265cd=_0x2dd867['snapshot']['tableOrder']['indexOf'](_0x2dd867['tableId']);if(!(!_0x2dd867[_0x592f68(0x201)]['tables'][_0x2dd867[_0x592f68(0x25a)]]||_0x4265cd<0x0))return{'id':_0x1a9379['id'],'params':{'unitId':_0x2dd867[_0x592f68(0x1fb)],'op':_0x14cbd0[_0x592f68(0x337)]['compose'](_0x14cbd0[_0x592f68(0x312)](['tables',_0x2dd867[_0x592f68(0x25a)]],_0x2dd867[_0x592f68(0x201)][_0x592f68(0x2c0)][_0x2dd867[_0x592f68(0x25a)]]),_0x14cbd0[_0x592f68(0x312)](['tableOrder',_0x4265cd],_0x2dd867[_0x592f68(0x25a)])),'trigger':'embed-ui'}};}function _0x62ad(){const _0x452e6d=['BOOLEAN','startsWith','BASES_PLUGIN','base.command.validate-formula','_apply','setSnapshot','createRecords','pushUndoRedo','conditions','undefined','emitPermissionDenied','deleteView','_canEdit','_createRecordOrderOp','subType','required','_initCommands','createdAt','_initDataSync','_getJson1DirtyData','[BaseFormula]:\x20field\x20\x22','#BFDBFE','Copy','_enqueueFormulaSync','members','catch','Todo','count','canEditTable','base.command.duplicate-base-record','colIndex','getAllBases','getCurrentUser','missingRecord','validateFormula','entries','min','Parent','at\x20index\x20','raw','createRecord','changed','\x22\x20does\x20not\x20exist.','72064UMCoLC','_registerUnitPermissionPoints','options','pattern','dateMode','deleteRecords','numfmt','\x20cannot\x20use\x20operator\x20\x22','unsubscribe','NUMBER','recordNamePrefix','views','groupFieldId','base-snapshot-v1','base.mutation.','push','SelfParent','childUnitId','score','COLUMN','_canEditTable','register','tables','base-range-values-v1','_fieldPermissions','field','_applyFormulaResult','\x22\x20is\x20not\x20registered.','_setViewFieldSetting','packageName','boolean','939780CfTLfj','editable','_getSystemFieldValue','_createNumberingAllocators','remove','kind','source','Base','all','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).','BaseDashboard','end','moveView','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','_formulaService','Date','redo','base.command.update-base-kanban-config','viewOrder','_getCurrentUserId','target','createViewId','5670XDWLMZ','beforeViewId','createSuperTableReference','view','BASE_OBJECT_PERMISSION_PLUGIN','maxDepth','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','formulaName','start','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','Checked','base.view-registry.service','beforeFieldId','setRangeValues','base.mutation.apply-base-json1','setViewPermission','deleteField','base.command.set-permissions','fld-','call','deepClone','embedId','view/','bases-exchange-client.operation.export-base','primaryFieldId','Text','empty','write','_univerInstanceService','relationRole','base.command.set-permission','limit','_materializeFormulaTableNames','join','commaPeriod','attachments','displayText','_executeSuperTableMutationWhileActive','base.command.batch-delete-base-records','clearTablePermission','data','canCreateTable','setRules','table','_config','RecordId','_plugins','clear','record','createCreateRecordOp','ruleId','removeOp','getAllPermissionPoint','setRule','base.command.update-base-field-description','attachment','average','_T_','_initDependencies','delete-view','exec','record/','canManageView','getAffectedRanges','Export','reason','fieldSettings','flatMap','Group','Comment','childType','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','_formulaSyncQueue','length','__tempBatchingUndoRedo','UNIVER_BASE','getBase','_deleteRecordsBaseOp','spaceComma','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','base.command.delete-base-table','viewId','edit','renameView','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','$1\x20','status','getSuperTableRegistrations','type','CreatedAt','Set','isInteger','attachmentSet','subscribe','_formulaCalculationTriggerService','row','changes','filled','Use\x2031\x20characters\x20or\x20fewer.','[BaseCommandService]:\x20cannot\x20edit\x20table.','createDeleteRecordsUndoOp','#,##0','hidden','51zalsgY','base.command.set-base-view-group','conditionalColoring','object','base.command.batch-create-base-records','_activeDirtyManagerService','has','invertOp','endsWith','base.command.rename-base-table','invalid-characters','10132425jvnnKl','syncExecuteCommand','flat','WriteCursor','base.resource.service','parentFieldName','_clearObjectEdit','tableName','\x20must\x20be\x20an\x20object.','compose','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','setRecordValues','setViewGroup','[BaseCommandService]:\x20record-id\x20is\x20reserved.','gantt','recordId','Person','recordPatch','[DeleteBaseTableCommand]:\x20table\x20\x22','every','registerRuleModel','[BaseCommandService]:\x20invalid\x20cell\x20value.','BaseView','_runtimeContext','base.command.create-base-view','startDateFieldId',',\x22K\x22','cellData','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','rows','_applier','_setObjectEdit','unitOtherData','targetTableId','_initialize','True','_isNonEmptyCellValue','strategies','base.command.create-base-table','ena','getDependencies','add','separatorStyle','#FDE68A','primaryFieldName','[BaseCommandService]:\x20cannot\x20create\x20record.','base.command.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','parentByRecordId','col','-view-grid','setConfig','forValue','getUnit','#BBF7D0','setFieldPermission','params','Add','setViewFieldOrder','base.mutation.set-permission-rule','Start\x20date','createRegExpFromSafeFragment','insertOp','Table','deletePermissionPoint','_viewPermissions','patches','fieldIds','[BaseCommandService]:\x20cannot\x20manage\x20view.','_fieldRegistry','base.mutation.set-permission-rules','_createNumberingFieldValuePatches','sort','bases.fieldConfig.textPlaceholder','base.command.set-base-table-hierarchy-field','Unsupported\x20Base\x20permission\x20action:\x20','Currency','STRING','\x22\x20with\x20field\x20type\x20\x22','canDeleteRecord','Cycle','codePointAt','createSetRecordValuesOp','prototype','name','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','Table\x20name\x20is\x20required.','setBasePermission','save','saveMany','2189943qCEWDZ','NumberFormat','base.command.set-base-record-values','_dataSyncPrimaryController','test','fieldId','invalid','Checkbox','now','titleFieldId','Number','deleteTable','Status','[BaseCommandService]:\x20field\x20\x22','collaborators','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','regenerateViewIds','clearRecordPermission','[BaseCommandService]:\x20cannot\x20edit\x20record.','setPoint','action','setViewSort','rowIndex','url','Name','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','gridViewId','hasOwnProperty','createdBy','addPermissionPoint','Rating','from','_recordPermissions','lastIndex','delete','valid','trim','_rememberTable','afterFieldId','canEditField','MultiSelect','isValid','getCapabilities','operator','normalize','abbreviation','createUpdateCellOp','find','compress','\x20must\x20have\x20a\x20non-empty\x20id.','unshift','thread-comment.mutation.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','createCreateFieldOp','repeat','base.command.update-base-record-order','thread-comment.command.','Done','getCurrentUnitOfType','dispose','group','Base\x20edit\x20permission\x20denied.','tableOrder','defaultValue','selfParent','[BaseCommandService]:\x20cannot\x20delete\x20table.','getAll','false','changeFieldType','toFixed','objectId','onStarting','some','_getTable','locale','base.command.update-base-cell','sum','_injector','unitData','then','Attachment','SingleSelect','base.command.update-base-field','oldParentRecordId','updateRecordOrder','createUnit','h24','forEach','registerSyncingMutations','clearUnit','getSnapshot','_resolveBaseId','createView','searchTexts','multiple','_removeSuperTables','BASE','_disposed','onReady','resources','initializeUnit','base.command.set-base-range-values','\x20has\x20unsupported\x20operator\x20\x22','none','owner','isFinite','decimal','splice','editCell','5298VlYiWg','parentRecordId','values','Yes','trigger','_setAttachmentResources','createField','map','CreatedBy','thumbnail','_factory','rules','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','fieldIndex','_check','[BaseCommandService]:\x20cannot\x20edit\x20cell.','MUTATION','max','todo','BaseCommand.createBatchCreateRecordsOp','split','local','base.command.set-base-view-sort','hostAnchorId','UpdatedBy','Formula','optionSource','_clearUnit','_baseSyncDisposables','clearFieldPermission','[BaseViewRegistryService]:\x20view\x20type\x20\x22','Link','-record-','rowId','Grid','viewIndexes','base.command.create-base-child-record','keys','system','includes','replaceOp','invalidField','format','endDateFieldId','Edit','base.command.ensure-base-temporal-view-date-fields','embed-ui','UNIVER_EMBED_BASES_TABLE','validate','fromEntries','getAllUnitsForType','_createRecordWithDefaults','registerCommand','_commandService','recordOrder','rule','[BaseCommandService]:\x20cannot\x20delete\x20record.','create-view','too-long','_instanceService','A\x20table\x20with\x20this\x20name\x20already\x20exists.','applyOp','fields','-field-name','colId','[BaseCommandService]:\x20invalid\x20field\x20definition.','descend','_tableBaseIds','\x20has\x20unsupported\x20target\x20\x22','COMMAND','_normalizeCellValue','currencySymbol','executeCommand','records','BaseRecord','config','createBatchCreateRecordsOp','_getAllBaseDependencyTreeCacheMap','_scheduledSuperTableSyncs','afterViewId','General','renameFormulaUnitReferences','_registeredSuperTableNames','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','base.command.set-base-kanban-group-field','string','size','periodComma','updateField','[BaseFormula]:\x20table\x20does\x20not\x20exist.','renameTable','cell','toLowerCase','_setFormulaFieldCells','[BaseCommandService]:\x20cannot\x20create\x20table.','setBaseName','fromCollab','text','number','_deleteAttachmentResources','replace','assign','duplicateRecord','unitId','_withModifiedSystemValues','setRecordPermission','_basePermissions','useThousands','_onCommandExecuted','snapshot','getPermissionPoint','getFocusedUnit','includeRecords','canDeleteField','deleteRecord','value','Numbering','_createSystemFieldValuePatches','setTablePermission','descendPath','calendar','stringify','createTable','_applyingFormulaResults','getUnitId','base.permission.service','[BaseCommandService]:\x20cannot\x20edit\x20field.','base.command.delete-base-view','duplicateField','setViewFieldVisible','isArray','canEditRecord','_formulaCalculationSessionService','attachmentSets','matchAll','unique','updatePermissionPoint','Base\x20','\x20permission\x20denied.','syncUnit','diffValue','Clear','userID','_groupCellInvalidations','markResultApplied','cycle','Unchecked','focusUnit','7399536Egyqvv','base.command.service','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','getTypeOfUnitAdded$','updateViewConfig','en-US','_scheduleSuperTableSync','filter','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','_toDirtyRangePatch','_syncBaseUnit','resolvedOptions','setViewFilter','padStart','_tablePermissions','_initRegistries','INIT','abs','_createNumberingAllocator','_assertFieldDefinition','createBase','RecordLink','reduce','getStructuredDependencies','canCreateRecord','base.command.delete-base-record','fieldName','moveField','setViewFieldWidth','formula','finally','true','BaseTable','indexOf','_permissionService','_getOrderedRecords','getTypeOfUnitDisposed$','base.command.update-base-view-config','policy','clearBasePermission','registerView','column','Progress','_getStructureDirtyTableIds','97684veCjWE','base.command.set-base-view-filter','orderKey','this-row','tableId','lastIndexOf','decimalPlaces','updatedBy','Delete','query','fieldOrder','ascend','kanban','Choose\x20another\x20name.','get','False','base.command.set-base-view-field-width','[BaseCommandService]:\x20cannot\x20create\x20field.','BaseField','disposeWithMe','updatedAt','set','UpdatedAt','dashboard/','\x22\x20is\x20referenced\x20by\x20','registerCtorForType','round','getUnitType','canDeleteTable','index','formatToParts','_replaceOptional','End\x20date','base.command.change-base-field-type','Ids','resolve','localeCompare','updateCell','_configService','slice','undo'];_0x62ad=function(){return _0x452e6d;};return _0x62ad();}function vi(_0x36ddf3){const _0x43cc59=_0x504a7e;return{'version':0x1,'embedId':_0x36ddf3[_0x43cc59(0x2f4)],'hostAnchorId':_0x36ddf3['hostAnchorId'],'childUnitId':_0x36ddf3[_0x43cc59(0x2bb)],'childType':_0x36ddf3[_0x43cc59(0x325)]};}function yi(_0x1c0235){const _0x142adc=_0x504a7e;let _0x986151=Math[_0x142adc(0x1a5)](0x0,Number(_0x1c0235[_0x142adc(0x25c)]??0x0)),_0x1cb59e=_0x1c0235['useThousands']===!0x1?'0':_0x142adc(0x344),_0x3910d0=_0x986151?'.'+'0'[_0x142adc(0x15d)](_0x986151):'',_0x120531=xi(_0x1c0235[_0x142adc(0x154)]);return''+(_0x1c0235[_0x142adc(0x1db)]?Si(_0x1c0235[_0x142adc(0x1db)]):'')+_0x1cb59e+_0x3910d0+_0x120531;}function bi(_0x6b9362,_0x1b7fe7){const _0x55cfdf=_0x504a7e;let _0x1cfe41=yi(_0x1b7fe7),_0x3218f9=_0x159275['format'](_0x1cfe41,_0x6b9362,{'throws':!0x1});return Ci(String(_0x3218f9),_0x1b7fe7[_0x55cfdf(0xf7)],_0x1b7fe7[_0x55cfdf(0x171)]);}function xi(_0x22ab8e){const _0x3a233d=_0x504a7e;return _0x22ab8e==='K'?_0x3a233d(0x36b):_0x22ab8e==='M'?',,\x22M\x22':_0x22ab8e==='B'?',,,\x22B\x22':'';}function Si(_0x3cce26){const _0x267af4=_0x504a7e;return/^[A-Z]+$/i[_0x267af4(0x12b)](_0x3cce26)?'\x22'+_0x3cce26+'\x22':_0x3cce26;}function Ci(_0x14b7b2,_0x31dba0,_0x2b44bc){const _0x163b22=_0x504a7e;let _0x2340d5=_0x31dba0===_0x163b22(0x1a9)?wi(_0x2b44bc):_0x31dba0;return _0x2340d5===_0x163b22(0x1eb)?_0x14b7b2[_0x163b22(0x1f8)](/,/g,'\x00')[_0x163b22(0x1f8)](/\./g,',')[_0x163b22(0x1f8)](/\0/g,'.'):_0x2340d5===_0x163b22(0x32d)?_0x14b7b2[_0x163b22(0x1f8)](/,/g,'\x20')['replace'](/\./g,','):_0x2340d5==='spacePeriod'?_0x14b7b2[_0x163b22(0x1f8)](/,/g,'\x20'):_0x14b7b2;}function wi(_0x492ef8){const _0x416785=_0x504a7e;var _0xeb9b82,_0x45955a;let _0x3075df=_0x492ef8||new Intl[(_0x416785(0x128))]()[_0x416785(0x235)]()[_0x416785(0x171)],_0x1ac346;try{_0x1ac346=new Intl['NumberFormat'](_0x3075df,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x416785(0x274)](0xf4240);}catch{return _0x416785(0x301);}let _0x189d48=(_0xeb9b82=_0x1ac346['find'](_0x5b85ca=>_0x5b85ca['type']===_0x416785(0x163)))==null?void 0x0:_0xeb9b82[_0x416785(0x207)],_0x34b48e=(_0x45955a=_0x1ac346[_0x416785(0x156)](_0x176fba=>_0x176fba['type']===_0x416785(0x191)))==null?void 0x0:_0x45955a[_0x416785(0x207)],_0xfe1726=_0x189d48==='\u00a0'||_0x189d48==='\u202f'?'\x20':_0x189d48;return _0xfe1726==='.'&&_0x34b48e===','?_0x416785(0x1eb):_0xfe1726==='\x20'&&_0x34b48e===','?_0x416785(0x32d):_0xfe1726==='\x20'&&_0x34b48e==='.'?'spacePeriod':'commaPeriod';}function Ti(_0xe82a69,_0x26f565){const _0x34984b=_0x504a7e;let _0x59f955=_0x26f565&&typeof _0x26f565==_0x34984b(0x349)&&!Array[_0x34984b(0x216)](_0x26f565)?_0x26f565:{},_0x114b87=Ei(_0x59f955[_0x34984b(0x25c)],0x0,0x2,0x0),_0x31e4f1=_0xe82a69[_0x34984b(0x16c)](_0x114b87);return _0x59f955['format']==='number'?_0x31e4f1:_0x31e4f1+'%';}function Ei(_0x225e88,_0xed55f6,_0x5db372,_0x16e900){const _0x2ec9f7=_0x504a7e;if(_0x225e88==null||_0x225e88==='')return _0x16e900;let _0x35e885=typeof _0x225e88==_0x2ec9f7(0x1f6)?_0x225e88:Number(_0x225e88);return Number[_0x2ec9f7(0x190)](_0x35e885)?Math['max'](_0xed55f6,Math[_0x2ec9f7(0x2a3)](_0x5db372,Math['round'](_0x35e885))):_0x16e900;}const Di=[_0x504a7e(0x29a),_0x504a7e(0x340),'empty','unique',_0x504a7e(0x173),_0x504a7e(0x317),_0x504a7e(0x2a3),'max'],Oi=[_0x504a7e(0x29a),_0x504a7e(0x340),_0x504a7e(0x2f9),_0x504a7e(0x21b)],ki=[_0x504a7e(0x173),_0x504a7e(0x317),_0x504a7e(0x2a3),_0x504a7e(0x1a5)],Ai=['min','max'],ji=new Set([_0x27fbfa[_0x504a7e(0x131)],_0x27fbfa[_0x504a7e(0x119)],_0x27fbfa[_0x504a7e(0x254)],_0x27fbfa[_0x504a7e(0x145)]]),Mi=new Set([_0x27fbfa[_0x504a7e(0x14f)],_0x27fbfa[_0x504a7e(0x361)],_0x27fbfa[_0x504a7e(0x323)]]),Ni=_0x504a7e(0x1e4);function Pi(_0x3857b1){const _0x3cf4d4=_0x504a7e;return typeof _0x3857b1==_0x3cf4d4(0x1e9)&&Di['includes'](_0x3857b1);}function Fi(_0x18090a){const _0x3767ba=_0x504a7e;return!_0x18090a||typeof _0x18090a!=_0x3767ba(0x349)?{}:Object[_0x3767ba(0x1c5)](Object[_0x3767ba(0x2a2)](_0x18090a)[_0x3767ba(0x231)](_0x57befa=>Pi(_0x57befa[0x1])));}function Ii(_0x516d21){const _0x373663=_0x504a7e;return ji[_0x373663(0x34c)](_0x516d21['type'])?[...Oi,...ki]:_0x516d21[_0x373663(0x337)]===_0x27fbfa[_0x373663(0x1ad)]?[...Oi,...Zi(_0x516d21)==='date'?Ai:ki]:Oi;}function Li(_0x232512,_0xd8db9b){return Ii(_0x232512)['includes'](_0xd8db9b);}function Ri(_0x13dbb3,_0x4861f0,_0x16655f){const _0x211407=_0x504a7e;if(!Li(_0x13dbb3,_0x16655f))return null;let _0x593c06=_0x4861f0['filter'](_0x344b71=>!Bi(_0x13dbb3,_0x344b71));switch(_0x16655f){case _0x211407(0x29a):return _0x4861f0[_0x211407(0x328)];case _0x211407(0x340):return _0x593c06[_0x211407(0x328)];case _0x211407(0x2f9):return _0x4861f0[_0x211407(0x328)]-_0x593c06[_0x211407(0x328)];case _0x211407(0x21b):return new Set(_0x593c06[_0x211407(0x19b)](_0x5de0fa=>Wi(_0x13dbb3,_0x5de0fa)))[_0x211407(0x1ea)];case _0x211407(0x173):{let _0x2e9ccd=Vi(_0x13dbb3,_0x593c06);return _0x2e9ccd['length']?Ui(_0x2e9ccd):null;}case _0x211407(0x317):{let _0x1b1758=Vi(_0x13dbb3,_0x593c06);return _0x1b1758[_0x211407(0x328)]?Ui(_0x1b1758)/_0x1b1758['length']:null;}case'min':{let _0x5935b3=Vi(_0x13dbb3,_0x593c06);return _0x5935b3[_0x211407(0x328)]?Math[_0x211407(0x2a3)](..._0x5935b3):null;}case _0x211407(0x1a5):{let _0x587c0b=Vi(_0x13dbb3,_0x593c06);return _0x587c0b[_0x211407(0x328)]?Math[_0x211407(0x1a5)](..._0x587c0b):null;}}}function zi(_0x3cf65c,_0x3bb5b2,_0x4b6c68){const _0x55ebcb=_0x504a7e;if(_0x4b6c68==null||!Number[_0x55ebcb(0x190)](_0x4b6c68))return'-';if(Oi[_0x55ebcb(0x1bb)](_0x3bb5b2))return String(_0x4b6c68);switch(_0x3cf65c[_0x55ebcb(0x337)]){case _0x27fbfa[_0x55ebcb(0x131)]:return bi(_0x4b6c68,Ji(_0x3cf65c));case _0x27fbfa[_0x55ebcb(0x119)]:return bi(_0x4b6c68,Yi(_0x3cf65c));case _0x27fbfa[_0x55ebcb(0x254)]:return Ti(_0x4b6c68,_0x3cf65c[_0x55ebcb(0x1df)]);case _0x27fbfa[_0x55ebcb(0x1ad)]:return Xi(_0x4b6c68,_0x3cf65c);default:return $i(_0x4b6c68);}}function Bi(_0x3a46af,_0x25e91f){const _0x3fd1c0=_0x504a7e;if(_0x25e91f==null)return!0x0;if(typeof _0x25e91f==_0x3fd1c0(0x1e9))return _0x25e91f[_0x3fd1c0(0x14b)]()==='';if(Array[_0x3fd1c0(0x216)](_0x25e91f))return _0x3a46af[_0x3fd1c0(0x337)]===_0x27fbfa[_0x3fd1c0(0x177)]?!_0x25e91f['some'](qi):_0x25e91f[_0x3fd1c0(0x328)]===0x0;if(_0x3a46af[_0x3fd1c0(0x337)]===_0x27fbfa[_0x3fd1c0(0x1b3)]&&typeof _0x25e91f==_0x3fd1c0(0x349)){let _0x55b69e=_0x25e91f;return[_0x55b69e['text'],_0x55b69e[_0x3fd1c0(0x13e)]][_0x3fd1c0(0x364)](_0x9f0733=>_0x9f0733==null||String(_0x9f0733)[_0x3fd1c0(0x14b)]()==='');}return!0x1;}function Vi(_0xa1ca7c,_0x37618e){const _0x4a713d=_0x504a7e;let _0x317e82=[];for(let _0x3718ec of _0x37618e){let _0x14e826=Hi(_0xa1ca7c,_0x3718ec);_0x14e826!=null&&_0x317e82[_0x4a713d(0x2b9)](_0x14e826);}return _0x317e82;}function Hi(_0x296033,_0x34e2d2){const _0x9bfd22=_0x504a7e;if(typeof _0x34e2d2==_0x9bfd22(0x1f6))return Number['isFinite'](_0x34e2d2)?_0x34e2d2:null;if(_0x296033['type']!==_0x27fbfa[_0x9bfd22(0x1ad)]&&typeof _0x34e2d2==_0x9bfd22(0x1e9)&&_0x34e2d2[_0x9bfd22(0x14b)]()!==''){let _0x25800b=Number(_0x34e2d2);return Number[_0x9bfd22(0x190)](_0x25800b)?_0x25800b:null;}return null;}function Ui(_0x3c444e){const _0x116f6a=_0x504a7e;let _0x35473f=0x0,_0x2c2b81=0x0;for(let _0x337d87 of _0x3c444e){let _0x3edfcd=_0x35473f+_0x337d87;_0x2c2b81+=Math[_0x116f6a(0x23b)](_0x35473f)>=Math[_0x116f6a(0x23b)](_0x337d87)?_0x35473f-_0x3edfcd+_0x337d87:_0x337d87-_0x3edfcd+_0x35473f,_0x35473f=_0x3edfcd;}return _0x35473f+_0x2c2b81;}function Wi(_0x2b5b04,_0xa9099d){const _0x5cc4d5=_0x504a7e;return Mi[_0x5cc4d5(0x34c)](_0x2b5b04[_0x5cc4d5(0x337)])&&Array[_0x5cc4d5(0x216)](_0xa9099d)?Ki([...new Set(_0xa9099d['map'](_0xa00353=>Ki(Gi(_0xa00353))))][_0x5cc4d5(0x115)]()):Ki(Gi(_0xa9099d));}function Gi(_0x24761d){const _0x2627ee=_0x504a7e;return Array[_0x2627ee(0x216)](_0x24761d)?_0x24761d['map'](Gi):_0x24761d&&typeof _0x24761d==_0x2627ee(0x349)?Object[_0x2627ee(0x1c5)](Object['entries'](_0x24761d)[_0x2627ee(0x115)](([_0x3d2c9f],[_0x5c8dad])=>_0x3d2c9f['localeCompare'](_0x5c8dad))[_0x2627ee(0x19b)](([_0x360592,_0x14ed37])=>[_0x360592,Gi(_0x14ed37)])):_0x24761d;}function Ki(_0x4b0f93){const _0x4fc9bd=_0x504a7e;return JSON[_0x4fc9bd(0x20d)](_0x4b0f93)??_0x4fc9bd(0x288);}function qi(_0x8bddd4){const _0x41aa5=_0x504a7e;if(typeof _0x8bddd4==_0x41aa5(0x1e9))return _0x8bddd4['trim']()!=='';if(!_0x8bddd4||typeof _0x8bddd4!=_0x41aa5(0x349))return!0x1;let _0x50210f=_0x8bddd4;return[_0x50210f['id'],_0x50210f[_0x41aa5(0x121)],_0x50210f[_0x41aa5(0x2cf)],_0x50210f[_0x41aa5(0x13e)],_0x50210f[_0x41aa5(0x19d)]][_0x41aa5(0x16f)](_0x449dd9=>_0x449dd9!=null&&String(_0x449dd9)[_0x41aa5(0x14b)]()!=='');}function Ji(_0x20bb87){const _0xfebf09=_0x504a7e;let _0x4d2ad0=ea(_0x20bb87[_0xfebf09(0x1df)]);return{'decimalPlaces':na(_0x4d2ad0['decimalPlaces'],0x0,0x14,0x2),'separatorStyle':typeof _0x4d2ad0['separatorStyle']==_0xfebf09(0x1e9)?_0x4d2ad0[_0xfebf09(0xf7)]:'local','locale':typeof _0x4d2ad0[_0xfebf09(0x171)]==_0xfebf09(0x1e9)?_0x4d2ad0[_0xfebf09(0x171)]:void 0x0,'useThousands':_0x4d2ad0[_0xfebf09(0x1ff)]!==!0x1,'abbreviation':typeof _0x4d2ad0['abbreviation']=='string'?_0x4d2ad0[_0xfebf09(0x154)]:_0xfebf09(0x18e)};}function Yi(_0x31dd4a){const _0xdbd821=_0x504a7e;let _0x594ed6=ea(_0x31dd4a[_0xdbd821(0x1df)]);return{...Ji(_0x31dd4a),'currencySymbol':String(_0x594ed6[_0xdbd821(0x1db)]??'$')};}function Xi(_0x2972b6,_0x1ccc84){const _0x2ee7c7=_0x504a7e;let _0x421b84=Qi(_0x1ccc84);if(_0x421b84===Ni)return $i(_0x2972b6);try{return String(_0x159275[_0x2ee7c7(0x1be)](_0x421b84,_0x2972b6,{'throws':!0x1}));}catch{return $i(_0x2972b6);}}function Zi(_0x51928c){const _0x2b7cff=_0x504a7e;let _0x4b44b7=ea(ea(_0x51928c[_0x2b7cff(0x1df)])[_0x2b7cff(0x2b0)]);return typeof _0x4b44b7[_0x2b7cff(0x337)]==_0x2b7cff(0x1e9)?_0x4b44b7[_0x2b7cff(0x337)]:'general';}function Qi(_0x5f23b4){const _0x446b64=_0x504a7e;let _0x5a971a=ea(ea(_0x5f23b4['config'])[_0x446b64(0x2b0)]);return String(_0x5a971a[_0x446b64(0x2ad)]??Ni)[_0x446b64(0x14b)]()||Ni;}function $i(_0x37ddbd){const _0x4adabc=_0x504a7e;return String(Number[_0x4adabc(0x33a)](_0x37ddbd)?_0x37ddbd:Math['round']((_0x37ddbd+0x2**-0x34)*0x64)/0x64);}function ea(_0x317b5e){const _0x3b86c8=_0x504a7e;return _0x317b5e&&typeof _0x317b5e==_0x3b86c8(0x349)&&!Array[_0x3b86c8(0x216)](_0x317b5e)?_0x317b5e:{};}function ta(_0x145cf4){const _0x3481b9=_0x504a7e;if(_0x145cf4==null||_0x145cf4==='')return null;let _0x2e5a23=typeof _0x145cf4=='number'?_0x145cf4:Number(_0x145cf4);return Number[_0x3481b9(0x190)](_0x2e5a23)?_0x2e5a23:null;}function na(_0x492c7c,_0x360dc9,_0x539d78,_0x444a8d){const _0x9bd99b=_0x504a7e;let _0x5c91b1=ta(_0x492c7c);return _0x5c91b1==null?_0x444a8d:Math[_0x9bd99b(0x1a5)](_0x360dc9,Math['min'](_0x539d78,Math[_0x9bd99b(0x270)](_0x5c91b1)));}function ra(_0x5491db,_0x11d4b1){const _0x13c5df=_0x504a7e;let _0x52179d=_0x1e2b57[_0x13c5df(0x2f3)](_0x5491db),_0xc63d4c=_0x11d4b1[_0x13c5df(0x204)]===!0x0,_0x277159=new Map(),_0x416f1c=_0x11d4b1[_0x13c5df(0x2de)]??(()=>'view-'+_0x238c0d(0x8)),_0x483794=_0x52179d[_0x13c5df(0x2db)];return _0x11d4b1[_0x13c5df(0x137)]&&(_0x483794=_0x52179d[_0x13c5df(0x2db)][_0x13c5df(0x19b)](_0x283b7d=>{const _0x2effcd=_0x13c5df;let _0x459fca=_0x416f1c();return _0x277159[_0x2effcd(0x26b)](_0x283b7d,_0x459fca),_0x459fca;})),{..._0x52179d,'id':_0x11d4b1['id'],'name':_0x11d4b1['name'],'records':_0xc63d4c?_0x52179d[_0x13c5df(0x1dd)]:{},'recordOrder':_0xc63d4c?_0x52179d['recordOrder']:[],'rowIndex':_0xc63d4c?_0x52179d[_0x13c5df(0x13d)]:{},'rowId':_0xc63d4c?_0x52179d[_0x13c5df(0x1b5)]:{},'cellData':_0xc63d4c?_0x52179d[_0x13c5df(0x36c)]:{},'resources':_0xc63d4c?_0x52179d[_0x13c5df(0x18a)]:{},'viewOrder':_0x483794,'views':Object[_0x13c5df(0x1c5)](Object[_0x13c5df(0x2a2)](_0x52179d[_0x13c5df(0x2b5)]??{})[_0x13c5df(0x19b)](([_0x3f4d03,_0x6eff2a])=>{const _0x2d36b2=_0x13c5df;let _0x4672ab=_0x277159[_0x2d36b2(0x264)](_0x3f4d03)??(_0x11d4b1[_0x2d36b2(0x137)]?_0x416f1c():_0x3f4d03);return[_0x4672ab,{..._0x6eff2a,'id':_0x4672ab,'tableId':_0x11d4b1['id']}];}))};}function ia(_0x162b57){const _0xab9762=_0x504a7e;return new _0x2be14e()[_0xab9762(0x31e)](_0x162b57);}function aa(_0x519a49){const _0x537de2=_0x504a7e;return _0x519a49[_0x537de2(0x10f)]['map'](_0xe03835=>({'unitId':_0x519a49['unitId'],'sheetId':_0x519a49[_0x537de2(0x25a)],'range':{'startRow':_0xe03835['row'],'endRow':_0xe03835[_0x537de2(0x33e)],'startColumn':_0xe03835[_0x537de2(0xfe)],'endColumn':_0xe03835[_0x537de2(0xfe)]}}));}function oa(_0x4442b9,_0x7569){const _0x3150a0=_0x504a7e;return{[_0x4442b9]:Object[_0x3150a0(0x1c5)](_0x7569[_0x3150a0(0x19b)](_0x225ec9=>[_0x225ec9,'1']))};}let sa=class extends _0x4bee66{constructor(_0x2975ba,_0x54a7fb){const _0x9bd14f=_0x504a7e;super(),this['_activeDirtyManagerService']=_0x2975ba,this[_0x9bd14f(0x2fb)]=_0x54a7fb,this['_initialize']();}[_0x504a7e(0x373)](){const _0x490ace=_0x504a7e;this[_0x490ace(0x34b)][_0x490ace(0x2bf)](_0x1a9379['id'],{'commandId':_0x1a9379['id'],'getDirtyData':_0x125e11=>this[_0x490ace(0x292)](_0x125e11[_0x490ace(0x105)])}),this[_0x490ace(0x269)](_0x169f5c(()=>{const _0xfcdc5d=_0x490ace;this['_activeDirtyManagerService'][_0xfcdc5d(0x2cd)](_0x1a9379['id']);}));}[_0x504a7e(0x170)](_0x30ec03,_0x4d5878){const _0x2e3773=_0x504a7e;let _0x3a675e=this[_0x2e3773(0x2fb)][_0x2e3773(0x102)](_0x30ec03,_0x17555f[_0x2e3773(0x32a)]);return(_0x3a675e==null?void 0x0:_0x3a675e['getSnapshot']()[_0x2e3773(0x2c0)][_0x4d5878])??null;}[_0x504a7e(0x292)](_0x286cf4){const _0x389e1e=_0x504a7e;if(_0x286cf4['trigger']==='formula.mutation.set-formula-calculation-result')return{};if(!_0x286cf4[_0x389e1e(0x1fb)]||!_0x286cf4['op'])return{'clearDependencyTreeCache':this[_0x389e1e(0x1e1)](),'forceCalculation':!0x0};let _0x2e675b=ia(_0x286cf4['op']),_0x152193=this['_getStructureDirtyTableIds'](_0x286cf4[_0x389e1e(0x1fb)],_0x2e675b);if(_0x152193[_0x389e1e(0x328)])return{'clearDependencyTreeCache':oa(_0x286cf4[_0x389e1e(0x1fb)],_0x152193),'forceCalculation':!0x0};let _0x3a4c4c=Object[_0x389e1e(0x2a2)](this[_0x389e1e(0x223)](_0x286cf4[_0x389e1e(0x1fb)],_0x2e675b))[_0x389e1e(0x322)](([_0x3306f5,_0x5cf2ef])=>aa({'unitId':_0x286cf4[_0x389e1e(0x1fb)],'tableId':_0x3306f5,'patches':_0x5cf2ef}));return _0x3a4c4c[_0x389e1e(0x328)]?{'dirtyRanges':_0x3a4c4c}:{};}[_0x504a7e(0x255)](_0x49d550,_0xf9205e){const _0x8645c2=_0x504a7e;let _0x204f46=_0xf9205e[_0x8645c2(0x231)](_0x5b9185=>_0x5b9185[_0x8645c2(0x320)]!==_0x8645c2(0x1ef))[_0x8645c2(0x322)](_0x33675f=>_0x33675f['tableId']?[_0x33675f['tableId']]:this['_getAllTableIds'](_0x49d550));return Array[_0x8645c2(0x146)](new Set(_0x204f46));}[_0x504a7e(0x223)](_0x4fc7b4,_0x440b50){const _0x100b5f=_0x504a7e;let _0x104078=new Set();return _0x440b50[_0x100b5f(0x240)]((_0x39be63,_0x2c49e1)=>{const _0x25f96f=_0x100b5f;let _0x503970=this[_0x25f96f(0x233)](_0x4fc7b4,_0x2c49e1);if(!_0x503970)return _0x39be63;let _0xf99637=_0x2c49e1[_0x25f96f(0x25a)]+':'+_0x503970['row']+':'+_0x503970[_0x25f96f(0xfe)];return _0x104078[_0x25f96f(0x34c)](_0xf99637)||(_0x104078[_0x25f96f(0xf6)](_0xf99637),_0x39be63[_0x2c49e1[_0x25f96f(0x25a)]]=_0x39be63[_0x2c49e1[_0x25f96f(0x25a)]]??[],_0x39be63[_0x2c49e1[_0x25f96f(0x25a)]]['push'](_0x503970)),_0x39be63;},{});}[_0x504a7e(0x233)](_0x56d9f6,_0x2299b2){const _0x6c3563=_0x504a7e;if(_0x2299b2['reason']!==_0x6c3563(0x1ef))return null;if(_0x2299b2['row']!=null&&_0x2299b2['column']!=null)return{'row':_0x2299b2['row'],'col':_0x2299b2['column'],'value':null};if(!_0x2299b2['recordId']||!_0x2299b2['fieldId'])return null;let _0x40d22f=this[_0x6c3563(0x170)](_0x56d9f6,_0x2299b2[_0x6c3563(0x25a)]);if(!_0x40d22f)return null;let _0xaf389=_0x3a87b5(_0x40d22f,_0x2299b2['recordId'],_0x2299b2[_0x6c3563(0x12c)]);return _0xaf389?{'row':_0xaf389['row'],'col':_0xaf389[_0x6c3563(0xfe)],'value':null}:null;}['_getAllTableIds'](_0x5d7d63){const _0x5cd693=_0x504a7e;let _0x48584c=this[_0x5cd693(0x2fb)][_0x5cd693(0x102)](_0x5d7d63,_0x17555f[_0x5cd693(0x32a)]);return Object[_0x5cd693(0x196)]((_0x48584c==null?void 0x0:_0x48584c[_0x5cd693(0x181)]()['tables'])??{})['map'](_0x5dc8fb=>_0x5dc8fb['id']);}[_0x504a7e(0x1e1)](){const _0x7ad697=_0x504a7e;let _0x5cf905=this[_0x7ad697(0x2fb)][_0x7ad697(0x1c6)](_0x17555f[_0x7ad697(0x32a)])[_0x7ad697(0x19b)](_0x16587d=>oa(_0x16587d[_0x7ad697(0x210)](),Object['keys'](_0x16587d[_0x7ad697(0x181)]()[_0x7ad697(0x2c0)])));return Object[_0x7ad697(0x1f9)]({},..._0x5cf905);}};sa=_0x33f97a([_0x5242b9(0x0,_0x97e1a),_0x5242b9(0x1,_0x2f75e2)],sa);let ca=class extends _0x4bee66{constructor(_0x967970,_0x42f8e0,_0x33f561,_0x5c61f0){const _0x540ca7=_0x504a7e;super(),this[_0x540ca7(0x1c9)]=_0x967970,this[_0x540ca7(0x2fb)]=_0x42f8e0,this[_0x540ca7(0x33d)]=_0x33f561,this[_0x540ca7(0x218)]=_0x5c61f0,_0x454659(this,'_formulaService',new wn()),_0x454659(this,_0x540ca7(0x1e6),new Map()),_0x454659(this,_0x540ca7(0x1e2),new Set()),_0x454659(this,'_formulaSyncQueue',Promise[_0x540ca7(0x279)]()),_0x454659(this,'_applyingFormulaResults',!0x1),this[_0x540ca7(0x373)]();}[_0x504a7e(0x373)](){const _0x35ad46=_0x504a7e;this[_0x35ad46(0x2fb)]['getAllUnitsForType'](_0x17555f['UNIVER_BASE'])[_0x35ad46(0x17e)](_0x51da98=>{this['_scheduleSuperTableSync'](_0x51da98);}),this[_0x35ad46(0x269)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17555f[_0x35ad46(0x32a)])['subscribe'](({unit:_0x163ec4})=>{const _0x732c3=_0x35ad46;this[_0x732c3(0x230)](_0x163ec4);})),this['disposeWithMe'](this[_0x35ad46(0x2fb)]['getTypeOfUnitDisposed$'](_0x17555f[_0x35ad46(0x32a)])[_0x35ad46(0x33c)](_0x320f6f=>{const _0x30d44a=_0x35ad46;this[_0x30d44a(0x296)](()=>this[_0x30d44a(0x186)](_0x320f6f[_0x30d44a(0x210)]()));})),this[_0x35ad46(0x269)](this[_0x35ad46(0x1c9)]['onCommandExecuted'](_0x5c6b92=>this['_onCommandExecuted'](_0x5c6b92)));}[_0x504a7e(0x200)](_0x1c829b){const _0x437da1=_0x504a7e;if(_0x1c829b['id']===_0x7fa304['id']){ua(_0x1c829b[_0x437da1(0x105)])&&this[_0x437da1(0x2c4)](_0x1c829b[_0x437da1(0x105)]);return;}if(this[_0x437da1(0x20f)]||_0x1c829b['id']!==_0x1a9379['id'])return;let _0x474617=la(_0x1c829b[_0x437da1(0x105)])?_0x1c829b[_0x437da1(0x105)]:void 0x0,_0x3845be=_0x474617!=null&&_0x474617[_0x437da1(0x1fb)]?[this[_0x437da1(0x2fb)][_0x437da1(0x102)](_0x474617[_0x437da1(0x1fb)],_0x17555f[_0x437da1(0x32a)])][_0x437da1(0x231)](_0x479fc8=>!!_0x479fc8):this[_0x437da1(0x2fb)]['getAllUnitsForType'](_0x17555f[_0x437da1(0x32a)]),_0x5d51bc=_0x474617==null?void 0x0:_0x474617['op'];_0x3845be[_0x437da1(0x17e)](_0x292903=>{const _0x183dd1=_0x437da1;let _0x1e4411=_0x5d51bc?ia(_0x5d51bc):[];(!_0x5d51bc||_0x1e4411[_0x183dd1(0x16f)](_0x299a15=>_0x299a15[_0x183dd1(0x320)]!==_0x183dd1(0x1ef)))&&this['_scheduleSuperTableSync'](_0x292903);});}[_0x504a7e(0x230)](_0x271dd1){const _0x2d2786=_0x504a7e;let _0x373537=_0x271dd1[_0x2d2786(0x210)]();this[_0x2d2786(0x1e2)]['has'](_0x373537)||(this[_0x2d2786(0x1e2)]['add'](_0x373537),this[_0x2d2786(0x296)](async()=>{const _0x3b9861=_0x2d2786;this['_scheduledSuperTableSyncs'][_0x3b9861(0x149)](_0x373537),await this['_syncSuperTables'](_0x271dd1);}));}async['_syncSuperTables'](_0x20f8dc){const _0x242faa=_0x504a7e;let _0x2c0eab=_0x20f8dc[_0x242faa(0x210)](),_0x59941c=this[_0x242faa(0x2d7)]['getSuperTableRegistrations'](_0x20f8dc[_0x242faa(0x181)]()),_0x1536e6=new Set(_0x59941c[_0x242faa(0x19b)](({tableName:_0x49063d})=>_0x49063d)),_0x2d78b5=this[_0x242faa(0x1e6)][_0x242faa(0x264)](_0x2c0eab)??new Set();for(let _0x4ef220 of _0x2d78b5)if(!_0x1536e6[_0x242faa(0x34c)](_0x4ef220)&&!await this['_executeSuperTableMutationWhileActive'](_0x400733['id'],{'unitId':_0x2c0eab,'tableName':_0x4ef220}))return;for(let {tableName:_0x1c23c5,reference:_0x44f00c}of _0x59941c)if(!await this[_0x242faa(0x304)](_0x5db841['id'],{'unitId':_0x2c0eab,'tableName':_0x1c23c5,'reference':_0x44f00c}))return;this['_registeredSuperTableNames'][_0x242faa(0x26b)](_0x2c0eab,_0x1536e6);}async[_0x504a7e(0x186)](_0x2ebab7){const _0x4b3f10=_0x504a7e;let _0x3da58e=this[_0x4b3f10(0x1e6)][_0x4b3f10(0x264)](_0x2ebab7)??new Set();for(let _0x5678d7 of _0x3da58e)if(!await this[_0x4b3f10(0x304)](_0x400733['id'],{'unitId':_0x2ebab7,'tableName':_0x5678d7}))return;this[_0x4b3f10(0x1e6)][_0x4b3f10(0x149)](_0x2ebab7);}async[_0x504a7e(0x304)](_0x889c03,_0x1c5f24){const _0x9b5198=_0x504a7e;return!this[_0x9b5198(0x188)]&&await this[_0x9b5198(0x1c9)]['executeCommand'](_0x889c03,_0x1c5f24,{'onlyLocal':!0x0})&&!this[_0x9b5198(0x188)];}[_0x504a7e(0x296)](_0x561f4e){const _0x50ad3a=_0x504a7e;this['_formulaSyncQueue']=this[_0x50ad3a(0x327)][_0x50ad3a(0x176)](_0x561f4e,_0x561f4e)[_0x50ad3a(0x298)](()=>void 0x0);}[_0x504a7e(0x2c4)](_0x2612ca){const _0x47675d=_0x504a7e;let _0x542dea=this[_0x47675d(0x2fb)]['getAllUnitsForType'](_0x17555f[_0x47675d(0x32a)]);if(!_0x542dea['some'](_0x393162=>{const _0x2d1b21=_0x47675d;var _0x5c060a;return((_0x5c060a=_0x2612ca[_0x2d1b21(0x175)])==null?void 0x0:_0x5c060a[_0x393162['getUnitId']()])!=null;}))return;let _0x2c786d=_0x542dea[_0x47675d(0x322)](_0x67cab5=>Tn(_0x67cab5['getSnapshot'](),_0x2612ca));if(!_0x2c786d[_0x47675d(0x328)]){this[_0x47675d(0x218)][_0x47675d(0x224)](_0x4add98['BASE'],_0x2612ca);return;}let _0x3a4906=new q(),_0x512695=_0x2c786d['flatMap'](_0x54b60e=>aa({'unitId':_0x54b60e[_0x47675d(0x1fb)],'tableId':_0x54b60e[_0x47675d(0x25a)],'patches':_0x54b60e[_0x47675d(0x10f)]}));this[_0x47675d(0x20f)]=!0x0,(async()=>{const _0x1f4eeb=_0x47675d;for(let _0x3a156e of _0x2c786d){let _0x3457e9=this[_0x1f4eeb(0x2fb)]['getUnit'](_0x3a156e['unitId'],_0x17555f[_0x1f4eeb(0x32a)]);_0x3457e9&&await this[_0x1f4eeb(0x1c9)][_0x1f4eeb(0x1dc)](_0x1a9379['id'],{'unitId':_0x3a156e[_0x1f4eeb(0x1fb)],'op':_0x3a4906[_0x1f4eeb(0x2ec)](_0x3457e9[_0x1f4eeb(0x181)](),_0x3a156e[_0x1f4eeb(0x25a)],_0x3a156e[_0x1f4eeb(0x10f)]),'trigger':_0x7fa304['id']},{'onlyLocal':!0x0});}await this[_0x1f4eeb(0x1c9)]['executeCommand'](_0x5e9611['id'],{'dirtyRanges':_0x512695},{'onlyLocal':!0x0});})()[_0x47675d(0x248)](()=>{const _0x3f1b2a=_0x47675d;this[_0x3f1b2a(0x20f)]=!0x1,this[_0x3f1b2a(0x218)][_0x3f1b2a(0x224)](_0x4add98[_0x3f1b2a(0x187)],_0x2612ca);});}};ca=_0x33f97a([_0x5242b9(0x0,_0x27da3e),_0x5242b9(0x1,_0x2f75e2),_0x5242b9(0x2,_0x1763a9(_0x2be5e0)),_0x5242b9(0x3,_0x1763a9(_0x2090b0))],ca);function la(_0x61bfb4){const _0x407bf2=_0x504a7e;return typeof _0x61bfb4==_0x407bf2(0x349)&&!!_0x61bfb4&&'unitId'in _0x61bfb4&&typeof _0x61bfb4[_0x407bf2(0x1fb)]==_0x407bf2(0x1e9)&&'op'in _0x61bfb4&&Array['isArray'](_0x61bfb4['op']);}function ua(_0x36ef66){const _0x55e3a7=_0x504a7e;return typeof _0x36ef66==_0x55e3a7(0x349)&&!!_0x36ef66&&_0x55e3a7(0x175)in _0x36ef66&&_0x55e3a7(0x371)in _0x36ef66;}const da=new Set([zr['id'],Br['id'],li['id']]);let fa=class extends _0x4bee66{constructor(_0x31d794,_0x3607c3,_0x451a74,_0x57ccc5){const _0xbdbe18=_0x504a7e;super(),this[_0xbdbe18(0x174)]=_0x31d794,this['_commandService']=_0x3607c3,this['_permissionService']=_0x451a74,this[_0xbdbe18(0x1cf)]=_0x57ccc5,this[_0xbdbe18(0x1cf)][_0xbdbe18(0x1c6)](_0x17555f[_0xbdbe18(0x32a)])[_0xbdbe18(0x17e)](_0xc042cf=>this[_0xbdbe18(0x2ab)](_0xc042cf[_0xbdbe18(0x210)]())),this[_0xbdbe18(0x269)](this[_0xbdbe18(0x1cf)]['getTypeOfUnitAdded$'](_0x17555f['UNIVER_BASE'])['subscribe'](({unit:_0x19f5e2})=>this[_0xbdbe18(0x2ab)](_0x19f5e2[_0xbdbe18(0x210)]()))),this[_0xbdbe18(0x269)](this['_commandService']['beforeCommandExecuted']((_0x26f34e,_0x4aad7d)=>this[_0xbdbe18(0x1a2)](_0x26f34e,_0x4aad7d))),this['disposeWithMe'](this[_0xbdbe18(0x1cf)][_0xbdbe18(0x24e)](_0x17555f[_0xbdbe18(0x32a)])[_0xbdbe18(0x33c)](_0x16859=>{const _0x435509=_0xbdbe18;this['_injector'][_0x435509(0x264)](_0x155ba9)[_0x435509(0x180)](_0x16859['getUnitId']()),rn(this[_0x435509(0x24c)],_0x16859['getUnitId']());}));}[_0x504a7e(0x2ab)](_0x2434d7){const _0x325da4=_0x504a7e;Wt[_0x325da4(0x17e)](_0xde7d21=>{const _0x247047=_0x325da4;let _0x1c9943=$t(_0x2434d7,_0x2434d7,_0xde7d21);this[_0x247047(0x24c)][_0x247047(0x202)](_0x1c9943['id'])||this[_0x247047(0x24c)][_0x247047(0x144)](_0x1c9943);}),this['_injector'][_0x325da4(0x264)](_0x155ba9)[_0x325da4(0x18b)]({'unitId':_0x2434d7,'objectId':_0x2434d7,'objectType':_0x38f610[_0x325da4(0x2d0)]});}[_0x504a7e(0x1a2)](_0x465040,_0x14ef29){const _0x47e3ba=_0x504a7e;var _0x9c43cc;if(_0x14ef29!=null&&_0x14ef29[_0x47e3ba(0x1f4)]||_0x14ef29!=null&&_0x14ef29['fromChangeset'])return;let _0x1e2187=wa(_0x465040[_0x47e3ba(0x105)])?_0x465040[_0x47e3ba(0x105)]:void 0x0;if(_0x14ef29!=null&&_0x14ef29['onlyLocal']&&_0x465040['id']===_0x47e3ba(0x2ed)&&(_0x1e2187==null?void 0x0:_0x1e2187[_0x47e3ba(0x198)])===_0x7fa304['id'])return;let _0x22a72b=ma(_0x465040['id']),_0x16c2cd=pa(_0x1e2187==null?void 0x0:_0x1e2187['unitId'],_0x14ef29)??(_0x22a72b?(_0x9c43cc=this[_0x47e3ba(0x1cf)][_0x47e3ba(0x161)](_0x17555f[_0x47e3ba(0x32a)]))==null?void 0x0:_0x9c43cc['getUnitId']():void 0x0);if(!_0x16c2cd||this[_0x47e3ba(0x1cf)][_0x47e3ba(0x271)](_0x16c2cd)!==_0x17555f[_0x47e3ba(0x32a)])return;if(_0x22a72b){if(!en(this[_0x47e3ba(0x24c)],_0x16c2cd,_0x16c2cd,_0x22a72b))throw this[_0x47e3ba(0x174)][_0x47e3ba(0x264)](_0x1ff4bf)[_0x47e3ba(0x289)](_0x16c2cd),new _0x5f78c1(_0x47e3ba(0x21d)+_0x52f72d[_0x22a72b]+_0x47e3ba(0x21e));return;}if(da['has'](_0x465040['id'])||!_0x465040['id'][_0x47e3ba(0x280)](_0x47e3ba(0xfb))&&!_0x465040['id'][_0x47e3ba(0x280)](_0x47e3ba(0x2b8)))return;let _0x16c0c7=this['_instanceService'][_0x47e3ba(0x102)](_0x16c2cd,_0x17555f[_0x47e3ba(0x32a)]),_0x5441c6=_0x16c0c7?ha(_0x16c0c7,_0x1e2187??{},_0x465040['id']):[];if(!_0x16c0c7||!an(this[_0x47e3ba(0x24c)],_0x16c2cd,_0x5441c6))throw this['_injector'][_0x47e3ba(0x264)](_0x1ff4bf)[_0x47e3ba(0x289)](_0x16c2cd,_0x5441c6),new _0x5f78c1(_0x47e3ba(0x164));}};fa=_0x33f97a([_0x5242b9(0x0,_0x1763a9(_0x3a9221)),_0x5242b9(0x1,_0x27da3e),_0x5242b9(0x2,_0x3ac310),_0x5242b9(0x3,_0x2f75e2)],fa);function pa(_0x23e930,_0x19d7f7){const _0x24ef84=_0x504a7e;return typeof _0x23e930==_0x24ef84(0x1e9)?_0x23e930:typeof(_0x19d7f7==null?void 0x0:_0x19d7f7['unitId'])==_0x24ef84(0x1e9)?_0x19d7f7[_0x24ef84(0x1fb)]:void 0x0;}function ma(_0x1400b3){const _0x7b7bfa=_0x504a7e;if(_0x1400b3===_0x7b7bfa(0x2f6)||_0x1400b3==='bases-exchange-client.operation.export-base-by-format')return _0x52f72d[_0x7b7bfa(0x31f)];if(_0x1400b3[_0x7b7bfa(0x280)](_0x7b7bfa(0x15f))||_0x1400b3[_0x7b7bfa(0x280)](_0x7b7bfa(0x15a)))return _0x52f72d[_0x7b7bfa(0x324)];}function ha(_0x5c281a,_0xdba54e,_0x337258){const _0x20f90d=_0x504a7e;if(_0x337258===_0x20f90d(0x2ed)&&Ca(_0xdba54e['op']))return ga(_0x5c281a,_0xdba54e['op']);let _0x146df0=new Set(),_0x47b3e2=ba(_0xdba54e,_0x20f90d(0x30a)),_0x16af2d=typeof _0xdba54e[_0x20f90d(0x25a)]==_0x20f90d(0x1e9)?_0xdba54e[_0x20f90d(0x25a)]:_0x47b3e2[0x0];if(_0x47b3e2[_0x20f90d(0x17e)](_0xe20176=>_0x146df0[_0x20f90d(0xf6)](J(_0xe20176))),!_0x16af2d)return[..._0x146df0];let _0x19faab=_0x5c281a['getSnapshot']()[_0x20f90d(0x2c0)][_0x16af2d],_0x55f38c=new Set(ba(_0xdba54e,_0x20f90d(0x2c3))),_0xbd30aa=new Set(ba(_0xdba54e,_0x20f90d(0x30f))),_0x48e17d=new Set(ba(_0xdba54e,'view'));return xa(_0x19faab,_0xdba54e['patches'],_0xbd30aa,_0x55f38c),Sa(_0xdba54e,_0x55f38c),_0x55f38c[_0x20f90d(0x17e)](_0x5d67d3=>_0x146df0[_0x20f90d(0xf6)](Y(_0x16af2d,_0x5d67d3))),_0xbd30aa[_0x20f90d(0x17e)](_0x397115=>_0x146df0['add'](X(_0x16af2d,_0x397115))),_0x48e17d[_0x20f90d(0x17e)](_0x188c1e=>_0x146df0[_0x20f90d(0xf6)](Zt(_0x16af2d,_0x188c1e))),[..._0x146df0];}function ga(_0x7559d4,_0x13375a){const _0x384a14=_0x504a7e;let _0x1d4c1d=_0x7559d4['getSnapshot'](),_0x271c74=new _0x2be14e()[_0x384a14(0x31e)](_0x13375a),_0x1e19f4=_a(_0x13375a),_0x31189e=new Set();return _0x271c74[_0x384a14(0x17e)](_0x1c278f=>{const _0x26cff4=_0x384a14;var _0x3bdd83,_0x1ccf45;let {tableId:_0x1226d1}=_0x1c278f;if(!_0x1226d1)return;_0x31189e[_0x26cff4(0xf6)](J(_0x1226d1));let _0x4f561f=_0x1d4c1d[_0x26cff4(0x2c0)][_0x1226d1],_0x2aea21=_0x1c278f[_0x26cff4(0x360)]??(_0x1c278f[_0x26cff4(0x33e)]==null||_0x4f561f==null||(_0x3bdd83=_0x4f561f[_0x26cff4(0x1b5)])==null?void 0x0:_0x3bdd83[_0x1c278f[_0x26cff4(0x33e)]]),_0x329294=_0x1c278f[_0x26cff4(0x12c)]??(_0x1c278f[_0x26cff4(0x253)]==null||_0x4f561f==null||(_0x1ccf45=_0x4f561f[_0x26cff4(0x1d4)])==null?void 0x0:_0x1ccf45[_0x1c278f['column']]);_0x2aea21&&_0x31189e[_0x26cff4(0xf6)](X(_0x1226d1,_0x2aea21)),_0x329294&&_0x31189e[_0x26cff4(0xf6)](Y(_0x1226d1,_0x329294)),_0x1c278f[_0x26cff4(0x330)]&&_0x31189e['add'](Zt(_0x1226d1,_0x1c278f[_0x26cff4(0x330)])),(_0x1c278f[_0x26cff4(0x320)]===_0x26cff4(0x30a)||_0x1e19f4['has'](_0x1226d1))&&_0x4f561f&&(Object['keys'](_0x4f561f[_0x26cff4(0x1d2)])[_0x26cff4(0x17e)](_0x542588=>_0x31189e['add'](Y(_0x1226d1,_0x542588))),Object[_0x26cff4(0x1b9)](_0x4f561f[_0x26cff4(0x1dd)])[_0x26cff4(0x17e)](_0xa535fe=>_0x31189e[_0x26cff4(0xf6)](X(_0x1226d1,_0xa535fe))),Object['keys'](_0x4f561f[_0x26cff4(0x2b5)])[_0x26cff4(0x17e)](_0x21b8c4=>_0x31189e[_0x26cff4(0xf6)](Zt(_0x1226d1,_0x21b8c4)))),_0x1c278f[_0x26cff4(0x320)]==='record'&&_0x4f561f&&Object['keys'](_0x4f561f[_0x26cff4(0x1d2)])[_0x26cff4(0x17e)](_0x38e141=>_0x31189e['add'](Y(_0x1226d1,_0x38e141)));}),_0x271c74['length']===0x0&&ya(_0x13375a,_0x384a14(0x165))&&Object[_0x384a14(0x1b9)](_0x1d4c1d['tables'])[_0x384a14(0x17e)](_0x42114a=>_0x31189e[_0x384a14(0xf6)](J(_0x42114a))),[..._0x31189e];}function _a(_0x535745){let _0x2bdb42=new Set(),_0x3b4cba=_0x34159a=>{const _0x3fa9cd=_0x1173;Array[_0x3fa9cd(0x216)](_0x34159a)&&_0x34159a['forEach']((_0x5d31ce,_0x523046)=>{const _0x3e9b18=_0x3fa9cd;_0x5d31ce==='tables'&&typeof _0x34159a[_0x523046+0x1]==_0x3e9b18(0x1e9)&&va(_0x34159a[_0x523046+0x2])&&_0x2bdb42['add'](_0x34159a[_0x523046+0x1]),_0x3b4cba(_0x5d31ce);});};return _0x3b4cba(_0x535745),_0x2bdb42;}function va(_0x49c069){const _0x122453=_0x504a7e;return!!_0x49c069&&typeof _0x49c069==_0x122453(0x349)&&!Array[_0x122453(0x216)](_0x49c069)&&('i'in _0x49c069||'r'in _0x49c069||'p'in _0x49c069||'d'in _0x49c069||'es'in _0x49c069||_0x122453(0xf4)in _0x49c069||'et'in _0x49c069);}function ya(_0x5b0a16,_0x428993){const _0x2420e2=_0x504a7e;return Array[_0x2420e2(0x216)](_0x5b0a16)&&_0x5b0a16[_0x2420e2(0x16f)](_0x58a0a2=>_0x58a0a2===_0x428993||ya(_0x58a0a2,_0x428993));}function ba(_0x3b377f,_0x574719){const _0x3f56f6=_0x504a7e;let _0x132d0d=new Set(),_0x4afc62=_0x574719+'Id',_0x502608=_0x574719+_0x3f56f6(0x278),_0x270b3d=(_0x555b6e,_0x23d96b='')=>{const _0x5cafc2=_0x3f56f6;typeof _0x555b6e==_0x5cafc2(0x1e9)?_0x23d96b===_0x4afc62&&_0x132d0d[_0x5cafc2(0xf6)](_0x555b6e):Array['isArray'](_0x555b6e)?_0x23d96b===_0x502608?_0x555b6e['forEach'](_0x26de9b=>{const _0x11dc53=_0x5cafc2;typeof _0x26de9b==_0x11dc53(0x1e9)&&_0x132d0d[_0x11dc53(0xf6)](_0x26de9b);}):_0x555b6e[_0x5cafc2(0x17e)](_0x16ad4d=>_0x270b3d(_0x16ad4d,_0x23d96b)):wa(_0x555b6e)&&Object[_0x5cafc2(0x2a2)](_0x555b6e)[_0x5cafc2(0x17e)](([_0x530234,_0xa7369e])=>{const _0x595f8e=_0x5cafc2;_0x530234==='id'&&_0x23d96b===_0x574719&&typeof _0xa7369e==_0x595f8e(0x1e9)?_0x132d0d[_0x595f8e(0xf6)](_0xa7369e):_0x270b3d(_0xa7369e,_0x530234);});};return _0x270b3d(_0x3b377f),[..._0x132d0d];}function xa(_0x4371dc,_0x1f0ed3,_0x132ab6,_0x4663ff){const _0x1af175=_0x504a7e;_0x4371dc&&Array[_0x1af175(0x216)](_0x1f0ed3)&&_0x1f0ed3[_0x1af175(0x17e)](_0x436e1f=>{const _0xcbc91f=_0x1af175;if(!wa(_0x436e1f))return;let _0x21f27a=_0x436e1f;if(typeof _0x21f27a[_0xcbc91f(0x33e)]==_0xcbc91f(0x1f6)){var _0x528301;let _0x36240e=(_0x528301=_0x4371dc[_0xcbc91f(0x1b5)])==null?void 0x0:_0x528301[_0x21f27a[_0xcbc91f(0x33e)]];_0x36240e&&_0x132ab6[_0xcbc91f(0xf6)](_0x36240e);}if(typeof _0x21f27a[_0xcbc91f(0xfe)]=='number'){var _0x20b19d;let _0x1aab26=(_0x20b19d=_0x4371dc[_0xcbc91f(0x1d4)])==null?void 0x0:_0x20b19d[_0x21f27a[_0xcbc91f(0xfe)]];_0x1aab26&&_0x4663ff[_0xcbc91f(0xf6)](_0x1aab26);}});}function Sa(_0x3c3318,_0x169429,_0x4f2529=''){const _0x430670=_0x504a7e;_0x3c3318&&typeof _0x3c3318==_0x430670(0x349)&&(Array['isArray'](_0x3c3318)?_0x3c3318[_0x430670(0x17e)](_0x9e2409=>Sa(_0x9e2409,_0x169429,_0x4f2529)):wa(_0x3c3318)&&Object[_0x430670(0x2a2)](_0x3c3318)[_0x430670(0x17e)](([_0x3b7198,_0x871cd8])=>{const _0x52ef87=_0x430670;_0x4f2529===_0x52ef87(0x196)&&_0x169429[_0x52ef87(0xf6)](_0x3b7198),Sa(_0x871cd8,_0x169429,_0x3b7198);}));}function Ca(_0x51bbea){const _0x22debf=_0x504a7e;return Array[_0x22debf(0x216)](_0x51bbea);}function wa(_0x1ffb8f){const _0x1a262e=_0x504a7e;return typeof _0x1ffb8f=='object'&&!!_0x1ffb8f&&!Array[_0x1a262e(0x216)](_0x1ffb8f);}const Ta=_0x2540dc(_0x504a7e(0x355));let Ea=class{constructor(_0x5d98a9){const _0x796d2f=_0x504a7e;this[_0x796d2f(0x2fb)]=_0x5d98a9;}[_0x504a7e(0x32b)](_0x4cd42e){const _0x187f8f=_0x504a7e;return this['_univerInstanceService'][_0x187f8f(0x102)](_0x4cd42e,_0x17555f[_0x187f8f(0x32a)])??null;}[_0x504a7e(0x29e)](){const _0x4be329=_0x504a7e;return this[_0x4be329(0x2fb)][_0x4be329(0x1c6)](_0x17555f[_0x4be329(0x32a)]);}[_0x504a7e(0x23e)](_0x176ef2){const _0x3b0c7d=_0x504a7e;return this[_0x3b0c7d(0x2fb)][_0x3b0c7d(0x17c)](_0x17555f[_0x3b0c7d(0x32a)],_0x176ef2);}};Ea=_0x33f97a([_0x5242b9(0x0,_0x2f75e2)],Ea);const Da=_0x2540dc(_0x504a7e(0x2ea));var Oa=class extends _0x4bee66{constructor(..._0x5c1e32){const _0x43a778=_0x504a7e;super(..._0x5c1e32),_0x454659(this,_0x43a778(0x30d),new Map());}[_0x504a7e(0x2bf)](_0x21d7a2){const _0x20f59a=_0x504a7e;return this[_0x20f59a(0x30d)]['set'](_0x21d7a2[_0x20f59a(0x337)],_0x21d7a2),_0x169f5c(()=>this[_0x20f59a(0x30d)][_0x20f59a(0x149)](_0x21d7a2['type']));}[_0x504a7e(0x264)](_0x432a17){const _0x3ca880=_0x504a7e;let _0xc9e31f=this[_0x3ca880(0x30d)][_0x3ca880(0x264)](_0x432a17);if(!_0xc9e31f)throw Error(_0x3ca880(0x1b2)+_0x432a17+_0x3ca880(0x2c5));return _0xc9e31f;}[_0x504a7e(0x169)](){const _0x2d78cb=_0x504a7e;return Array[_0x2d78cb(0x146)](this[_0x2d78cb(0x30d)][_0x2d78cb(0x196)]());}};const ka=[_0x1a9379];let Aa=class extends _0xdce100{constructor(_0x21ae53=_0x72235c,_0x5f0553,_0x5ae9f6,_0x1a4fc8,_0x569457,_0x27d38e){const _0x4f04aa=_0x504a7e;super(),this[_0x4f04aa(0x30b)]=_0x21ae53,this[_0x4f04aa(0x174)]=_0x5f0553,this['_commandService']=_0x5ae9f6,this[_0x4f04aa(0x2fb)]=_0x1a4fc8,this[_0x4f04aa(0x27c)]=_0x569457,this['_dataSyncPrimaryController']=_0x27d38e,_0x454659(this,_0x4f04aa(0x1b0),new Map());let {..._0x372aab}=_0x183f79({},_0x72235c,this[_0x4f04aa(0x30b)]);this[_0x4f04aa(0x27c)][_0x4f04aa(0x100)](_0x522492,_0x372aab),this[_0x4f04aa(0x2fb)][_0x4f04aa(0x26f)](_0x17555f[_0x4f04aa(0x32a)],_0x343d3d),this[_0x4f04aa(0x319)](),this['_initCommands'](),this['_initRegistries'](),this[_0x4f04aa(0x291)]();}[_0x504a7e(0x16e)](){const _0x41b8a7=_0x504a7e;this['_injector'][_0x41b8a7(0xf6)]([ui]),this[_0x41b8a7(0x269)](this[_0x41b8a7(0x174)]['get'](_0x27da3e)[_0x41b8a7(0x1c8)](di)),this[_0x41b8a7(0x269)](this[_0x41b8a7(0x174)][_0x41b8a7(0x264)](_0x27da3e)['registerCommand'](fi)),this[_0x41b8a7(0x269)](this[_0x41b8a7(0x174)][_0x41b8a7(0x264)](_0x155ba9)[_0x41b8a7(0x365)](_0x38f610[_0x41b8a7(0x2d0)],this[_0x41b8a7(0x174)][_0x41b8a7(0x264)](ui),di['id'],fi['id']));}[_0x504a7e(0x189)](){const _0x129855=_0x504a7e;_0x5e0da1(this[_0x129855(0x174)],[[Ea],[fn],[sa]]),this['_univerInstanceService'][_0x129855(0x1c6)](_0x17555f[_0x129855(0x32a)])['forEach'](_0x5d2de2=>this['_syncBaseUnit'](_0x5d2de2[_0x129855(0x210)]())),_0x5e0da1(this[_0x129855(0x174)],[[ca],[fa]]);}['_initDependencies'](){const _0x1959fe=_0x504a7e;[[_0x3ba2f1,{'useClass':_0x5840f6}],[Da,{'useClass':Oa}],[_0x26150d,{'useClass':_0x4e4bb7}],[Ta,{'useClass':Ea}],[on,{'useClass':sn}],[Z,{'useClass':fn}],[sa],[ca],[fa]][_0x1959fe(0x17e)](_0x5316df=>this['_injector'][_0x1959fe(0xf6)](_0x5316df));}[_0x504a7e(0x28f)](){const _0x34cc2a=_0x504a7e;[ir,Fr,Sr,Zr,Ur,Hr,er,Qn,Yn,xr,Xn,Tr,ti,Ar,$n,wr,$r,Qr,Zn,br,kr,li,yr,Er,Ir,Rr,Cr,Pr,ci,ri,Lr,zr,Br,ei,Jr,Xr,Yr,Wr,Kr,qr,Gr,...ka][_0x34cc2a(0x17e)](_0x4e49c7=>this['disposeWithMe'](this[_0x34cc2a(0x1c9)][_0x34cc2a(0x1c8)](_0x4e49c7))),ka[_0x34cc2a(0x17e)](_0x55d49a=>{const _0x28acb2=_0x34cc2a;var _0x5eef45;return(_0x5eef45=this['_dataSyncPrimaryController'])==null?void 0x0:_0x5eef45[_0x28acb2(0x17f)](_0x55d49a);});}['_initDataSync'](){const _0x25cd0a=_0x504a7e;this[_0x25cd0a(0x12a)]&&(this[_0x25cd0a(0x269)](this['_univerInstanceService'][_0x25cd0a(0x22d)](_0x17555f[_0x25cd0a(0x32a)])[_0x25cd0a(0x33c)](({unit:_0x1742da})=>{const _0x322cd9=_0x25cd0a;this[_0x322cd9(0x234)](_0x1742da[_0x322cd9(0x210)]());})),this[_0x25cd0a(0x269)](this[_0x25cd0a(0x2fb)][_0x25cd0a(0x24e)](_0x17555f[_0x25cd0a(0x32a)])[_0x25cd0a(0x33c)](_0x41f8ad=>{const _0x571e5e=_0x25cd0a;var _0x4683c2;(_0x4683c2=this['_baseSyncDisposables'][_0x571e5e(0x264)](_0x41f8ad[_0x571e5e(0x210)]()))==null||_0x4683c2[_0x571e5e(0x162)](),this[_0x571e5e(0x1b0)]['delete'](_0x41f8ad[_0x571e5e(0x210)]());})));}[_0x504a7e(0x234)](_0x1ef5c8){const _0xd04f12=_0x504a7e;this[_0xd04f12(0x12a)]&&!this[_0xd04f12(0x1b0)][_0xd04f12(0x34c)](_0x1ef5c8)&&this[_0xd04f12(0x1b0)]['set'](_0x1ef5c8,this[_0xd04f12(0x12a)][_0xd04f12(0x21f)](_0x1ef5c8));}[_0x504a7e(0x239)](){const _0x3b9296=_0x504a7e;let _0x5023a6=this[_0x3b9296(0x174)]['get'](_0x3ba2f1);_0x34226d()[_0x3b9296(0x17e)](_0x3f9c41=>_0x5023a6[_0x3b9296(0x2bf)](_0x3f9c41));let _0x4fac3b=this['_injector']['get'](Da),_0xa8234d=this[_0x3b9296(0x174)][_0x3b9296(0x264)](_0x26150d);_0x1cd476()[_0x3b9296(0x17e)](_0x5540db=>{const _0x442e03=_0x3b9296;_0x4fac3b[_0x442e03(0x2bf)](_0x5540db),_0xa8234d[_0x442e03(0x252)](_0x5540db);});}};_0x454659(Aa,'pluginName',_0x504a7e(0x281)),_0x454659(Aa,_0x504a7e(0x2c7),_0x45b029),_0x454659(Aa,'version',_0x24778c),_0x454659(Aa,_0x504a7e(0x337),_0x17555f['UNIVER_BASE']),Aa=_0x33f97a([_0x261f4a(_0x5d8f49,_0x547dc3),_0x5242b9(0x1,_0x1763a9(_0x3a9221)),_0x5242b9(0x2,_0x27da3e),_0x5242b9(0x3,_0x2f75e2),_0x5242b9(0x4,_0x4a576d),_0x5242b9(0x5,_0x5e71aa(_0x5dfe8a))],Aa);function ja(_0x13f011){const _0x36080f=_0x504a7e;let _0x39ca93=Wa(_0x13f011[_0x36080f(0x25f)]);if(!_0x39ca93)return{'query':'','total':0x0,'matches':[]};let _0xf21616=[],_0x11183d=[];for(let _0x2cf44d=0x0;_0x2cf44d<_0x13f011[_0x36080f(0x110)][_0x36080f(0x328)];_0x2cf44d++){if(!(_0x2cf44d in _0x13f011[_0x36080f(0x110)]))continue;let _0x10443d=_0x13f011['table'][_0x36080f(0x1d2)][_0x13f011['fieldIds'][_0x2cf44d]];_0x10443d&&_0x11183d[_0x36080f(0x2b9)]({'field':_0x10443d,'fieldIndex':_0x2cf44d});}_0x13f011[_0x36080f(0x36e)][_0x36080f(0x17e)]((_0x32d12b,_0x4351f5)=>{const _0x3abd42=_0x36080f;_0x11183d[_0x3abd42(0x17e)](({field:_0x466b52,fieldIndex:_0x3de383})=>{const _0x5d5d8b=_0x3abd42;let _0x19945d=Ma(_0x32d12b[_0x5d5d8b(0x196)][_0x466b52['id']],_0x466b52);if(!_0x19945d)return;let _0x8d240d=Ua(_0x39ca93,_0x19945d[_0x5d5d8b(0x184)]);_0x8d240d<=0x0||_0xf21616[_0x5d5d8b(0x2b9)]({'recordId':_0x32d12b[_0x5d5d8b(0x360)],'fieldId':_0x466b52['id'],'fieldType':_0x466b52[_0x5d5d8b(0x337)],'text':_0x19945d[_0x5d5d8b(0x303)],'score':_0x8d240d,'rowIndex':_0x4351f5,'fieldIndex':_0x3de383});});}),_0xf21616[_0x36080f(0x115)]((_0x1f938a,_0x364613)=>_0x364613[_0x36080f(0x2bc)]-_0x1f938a['score']||_0x1f938a['rowIndex']-_0x364613[_0x36080f(0x13d)]||_0x1f938a[_0x36080f(0x1a1)]-_0x364613[_0x36080f(0x1a1)]);let _0x23fe63=_0x13f011[_0x36080f(0x2fe)]==null?_0xf21616:_0xf21616[_0x36080f(0x27d)](0x0,Math[_0x36080f(0x1a5)](0x0,_0x13f011[_0x36080f(0x2fe)]));return{'query':_0x39ca93,'total':_0xf21616[_0x36080f(0x328)],'matches':Ka(_0x23fe63)};}function Ma(_0x22e37b,_0x64926e){const _0x4c97c3=_0x504a7e;let _0x3ddde1=[];for(let _0x2037f6 of Pa(_0x22e37b,_0x64926e)){let _0x417da6=Wa(_0x2037f6);_0x417da6&&_0x3ddde1[_0x4c97c3(0x2b9)](_0x417da6);}return _0x3ddde1[_0x4c97c3(0x328)]?{'displayText':Na(_0x22e37b,_0x64926e),'searchTexts':Ga(_0x3ddde1)}:null;}function Na(_0x2655a8,_0x5d8581){const _0x3fd7a8=_0x504a7e;switch(_0x5d8581[_0x3fd7a8(0x337)]){case _0x27fbfa[_0x3fd7a8(0x178)]:case _0x27fbfa['MultiSelect']:case _0x27fbfa[_0x3fd7a8(0x323)]:return Fa(_0x2655a8,_0x5d8581)[_0x3fd7a8(0x300)](',\x20');case _0x27fbfa['Link']:return Ra(_0x2655a8);case _0x27fbfa[_0x3fd7a8(0x2d8)]:case _0x27fbfa[_0x3fd7a8(0x338)]:case _0x27fbfa[_0x3fd7a8(0x26c)]:return za(_0x2655a8,_0x5d8581);case _0x27fbfa[_0x3fd7a8(0x131)]:case _0x27fbfa[_0x3fd7a8(0x119)]:return Ba(_0x2655a8,_0x5d8581);case _0x27fbfa[_0x3fd7a8(0x254)]:return Va(_0x2655a8,_0x5d8581);case _0x27fbfa['Checkbox']:return _0x2655a8?'Checked':_0x3fd7a8(0x226);case _0x27fbfa[_0x3fd7a8(0x177)]:return Ha(_0x2655a8)[_0x3fd7a8(0x300)](',\x20');default:return $(_0x2655a8);}}function Pa(_0x40f2bf,_0x19bdf2){const _0x542105=_0x504a7e;switch(_0x19bdf2[_0x542105(0x337)]){case _0x27fbfa[_0x542105(0x178)]:case _0x27fbfa['MultiSelect']:case _0x27fbfa[_0x542105(0x323)]:{let _0x9b9454=Fa(_0x40f2bf,_0x19bdf2);if(Array[_0x542105(0x216)](_0x40f2bf)){let _0x48ef5a=[..._0x9b9454];for(let _0x3f1777=0x0;_0x3f1777<_0x40f2bf[_0x542105(0x328)];_0x3f1777++)_0x3f1777 in _0x40f2bf&&_0x48ef5a['push'](String(_0x40f2bf[_0x3f1777]));return _0x48ef5a;}return _0x40f2bf==null?_0x9b9454:[..._0x9b9454,String(_0x40f2bf)];}case _0x27fbfa[_0x542105(0x1b3)]:{let _0x59357e=La(_0x40f2bf);return[_0x59357e['text'],_0x59357e['url']];}case _0x27fbfa[_0x542105(0x2d8)]:case _0x27fbfa[_0x542105(0x338)]:case _0x27fbfa[_0x542105(0x26c)]:return[za(_0x40f2bf,_0x19bdf2),$(_0x40f2bf)];case _0x27fbfa['Number']:case _0x27fbfa[_0x542105(0x119)]:return[Ba(_0x40f2bf,_0x19bdf2),$(_0x40f2bf)];case _0x27fbfa[_0x542105(0x254)]:return[Va(_0x40f2bf,_0x19bdf2),$(_0x40f2bf)];case _0x27fbfa['Checkbox']:return _0x40f2bf?[_0x542105(0x2e9),_0x542105(0x197),_0x542105(0x374)]:['Unchecked','No',_0x542105(0x265)];case _0x27fbfa[_0x542105(0x177)]:return Ha(_0x40f2bf);default:return[$(_0x40f2bf)];}}function Fa(_0x21b04e,_0x230eee){const _0x4fcc07=_0x504a7e;var _0x255d8f;let _0x2c3d67=Array[_0x4fcc07(0x216)]((_0x255d8f=_0x230eee[_0x4fcc07(0x1df)])==null?void 0x0:_0x255d8f['options'])?_0x230eee[_0x4fcc07(0x1df)][_0x4fcc07(0x2ac)]:[],_0x5289a8=[];if(Array['isArray'](_0x21b04e)){for(let _0x435f2c=0x0;_0x435f2c<_0x21b04e[_0x4fcc07(0x328)];_0x435f2c++){if(!(_0x435f2c in _0x21b04e))continue;let _0x3328e1=String(_0x21b04e[_0x435f2c]);_0x3328e1&&_0x5289a8['push'](Ia(_0x2c3d67,_0x3328e1));}return _0x5289a8;}if(_0x21b04e!=null){let _0x5af810=String(_0x21b04e);_0x5af810&&_0x5289a8['push'](Ia(_0x2c3d67,_0x5af810));}return _0x5289a8;}function Ia(_0x180ec6,_0x2d6913){const _0x397fbd=_0x504a7e;for(let _0x414e7c of _0x180ec6){if(typeof _0x414e7c=='string'&&_0x414e7c===_0x2d6913)return _0x414e7c;if(_0x414e7c&&typeof _0x414e7c==_0x397fbd(0x349)){let _0x1be24a=_0x414e7c;if(String(_0x1be24a['id']??_0x1be24a[_0x397fbd(0x121)]??'')===_0x2d6913||String(_0x1be24a['name']??'')===_0x2d6913)return String(_0x1be24a[_0x397fbd(0x121)]??_0x1be24a['id']??_0x2d6913);}}return _0x2d6913;}function La(_0x544249){const _0x3bf50e=_0x504a7e;if(_0x544249&&typeof _0x544249=='object'&&!Array[_0x3bf50e(0x216)](_0x544249)){let _0x4445d8=_0x544249;return{'text':String(_0x4445d8[_0x3bf50e(0x1f5)]??_0x4445d8[_0x3bf50e(0x13e)]??''),'url':String(_0x4445d8[_0x3bf50e(0x13e)]??'')};}return{'text':$(_0x544249),'url':$(_0x544249)};}function Ra(_0x31371f){let _0x5ad276=La(_0x31371f);return _0x5ad276['text']||_0x5ad276['url'];}function za(_0x354138,_0x25d34c){const _0x784f88=_0x504a7e;return typeof _0x354138!='number'||!Number['isFinite'](_0x354138)?'':_0x1fdd23(_0x354138,_0x25d34c[_0x784f88(0x1df)]);}function Ba(_0xe300eb,_0x3cd84c){const _0x10a5cb=_0x504a7e;let _0x4595fd=typeof _0xe300eb==_0x10a5cb(0x1f6)?_0xe300eb:Number(_0xe300eb);return Number[_0x10a5cb(0x190)](_0x4595fd)?bi(_0x4595fd,_0x3cd84c[_0x10a5cb(0x1df)]):'';}function Va(_0x333899,_0x4bbe2a){const _0xb5803a=_0x504a7e;let _0x4d07ee=typeof _0x333899==_0xb5803a(0x1f6)?_0x333899:Number(_0x333899);return Number[_0xb5803a(0x190)](_0x4d07ee)?Ti(_0x4d07ee,_0x4bbe2a[_0xb5803a(0x1df)]):'';}function Ha(_0x55981e){const _0x2464d2=_0x504a7e;return Array[_0x2464d2(0x216)](_0x55981e)?_0x55981e[_0x2464d2(0x322)](_0xa8c343=>{const _0x494e85=_0x2464d2;if(!_0xa8c343||typeof _0xa8c343!=_0x494e85(0x349))return[];let _0x409da8=_0xa8c343,_0x3441f4=String(_0x409da8[_0x494e85(0x121)]??_0x409da8[_0x494e85(0x13e)]??'')[_0x494e85(0x14b)]();return _0x3441f4?[_0x3441f4]:[];}):[];}function $(_0x2fc507){const _0x9e53dc=_0x504a7e;if(_0x2fc507==null)return'';if(typeof _0x2fc507=='boolean')return _0x2fc507?_0x9e53dc(0x249):_0x9e53dc(0x16a);if(typeof _0x2fc507==_0x9e53dc(0x1f6))return String(_0x2fc507);if(Array[_0x9e53dc(0x216)](_0x2fc507)){let _0x5d8c6a=[];for(let _0x55f9b4=0x0;_0x55f9b4<_0x2fc507[_0x9e53dc(0x328)];_0x55f9b4++){if(!(_0x55f9b4 in _0x2fc507))continue;let _0x11b82b=$(_0x2fc507[_0x55f9b4]);_0x11b82b&&_0x5d8c6a['push'](_0x11b82b);}return _0x5d8c6a['join'](',\x20');}if(typeof _0x2fc507==_0x9e53dc(0x349)){let _0x5a6177=_0x2fc507;return String(_0x5a6177['title']??_0x5a6177[_0x9e53dc(0x121)]??_0x5a6177['text']??_0x5a6177[_0x9e53dc(0x13e)]??'')[_0x9e53dc(0x14b)]();}return String(_0x2fc507);}function Ua(_0x30590b,_0x3a86dc){const _0x5e951e=_0x504a7e;let _0x2939f0=0x0;for(let _0x5cccee of _0x3a86dc)_0x5cccee&&(_0x5cccee===_0x30590b?_0x2939f0=Math[_0x5e951e(0x1a5)](_0x2939f0,0x12c):_0x5cccee[_0x5e951e(0x280)](_0x30590b)?_0x2939f0=Math['max'](_0x2939f0,0xfa):_0x5cccee[_0x5e951e(0x1bb)](_0x30590b)&&(_0x2939f0=Math[_0x5e951e(0x1a5)](_0x2939f0,0xc8)));return _0x2939f0;}function Wa(_0x41f81b){const _0x562530=_0x504a7e;return _0x41f81b[_0x562530(0x14b)]()['replace'](/\s+/g,'\x20')[_0x562530(0x1f0)]();}function Ga(_0x34e9d9){const _0x2cf602=_0x504a7e;return Array[_0x2cf602(0x146)](new Set(_0x34e9d9));}function Ka(_0x27b958){const _0x2ab5e7=_0x504a7e;let _0x255c5c=[];for(let {rowIndex:_0x5e07db,fieldIndex:_0x19b52d,..._0x2f55a6}of _0x27b958)_0x255c5c[_0x2ab5e7(0x2b9)](_0x2f55a6);return _0x255c5c;}function qa(_0x363859){const _0x4ef74e=_0x504a7e;return{'compress':!0x0,'kind':'base-range-values-v1','u':_0x363859[_0x4ef74e(0x1fb)],'t':_0x363859['tableId'],'p':_0x363859[_0x4ef74e(0x10f)][_0x4ef74e(0x19b)](_0x3d4725=>[_0x3d4725[_0x4ef74e(0x33e)],_0x3d4725[_0x4ef74e(0xfe)],Za(_0x3d4725['value'])]),..._0x363859['trigger']===void 0x0?{}:{'g':_0x363859[_0x4ef74e(0x198)]}};}function Ja(_0x42e74c){const _0x430488=_0x504a7e;if(io(_0x42e74c,_0x430488(0x2c1)),!Ya(_0x42e74c)){if(!ro(_0x42e74c))throw Error('[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.');return _0x42e74c;}return{'unitId':_0x42e74c['u'],'tableId':_0x42e74c['t'],'patches':_0x42e74c['p'][_0x430488(0x19b)](([_0xb7ed6b,_0x28cc7f,_0x7628d])=>({'row':_0xb7ed6b,'col':_0x28cc7f,'value':Qa(_0x7628d)})),..._0x42e74c['g']===void 0x0?{}:{'trigger':_0x42e74c['g']}};}function Ya(_0x13d7b8){const _0x11bd97=_0x504a7e;return!ao(_0x13d7b8)||_0x13d7b8[_0x11bd97(0x157)]!==!0x0||_0x13d7b8[_0x11bd97(0x2ce)]!==_0x11bd97(0x2c1)?!0x1:typeof _0x13d7b8['u']==_0x11bd97(0x1e9)&&typeof _0x13d7b8['t']==_0x11bd97(0x1e9)&&(_0x13d7b8['g']===void 0x0||typeof _0x13d7b8['g']==_0x11bd97(0x1e9))&&Array[_0x11bd97(0x216)](_0x13d7b8['p'])&&_0x13d7b8['p'][_0x11bd97(0x364)](_0x26e905=>Array[_0x11bd97(0x216)](_0x26e905)&&_0x26e905[_0x11bd97(0x328)]===0x3&&Number[_0x11bd97(0x33a)](_0x26e905[0x0])&&Number[_0x11bd97(0x33a)](_0x26e905[0x1]));}function Xa(_0x1fbd26){const _0x441301=_0x504a7e;return!ao(_0x1fbd26)||_0x1fbd26['compress']!==!0x0||_0x1fbd26['kind']!==_0x441301(0x2b7)||!ao(_0x1fbd26[_0x441301(0x2c0)])?!0x1:Object[_0x441301(0x196)](_0x1fbd26['tables'])['every'](_0x58d4a4=>ao(_0x58d4a4)&&(_0x58d4a4['cd']===void 0x0||Array[_0x441301(0x216)](_0x58d4a4['cd'])&&_0x58d4a4['cd']['every'](_0x1f8125=>Array[_0x441301(0x216)](_0x1f8125)&&_0x1f8125[_0x441301(0x328)]===0x3&&Number[_0x441301(0x33a)](_0x1f8125[0x0])&&Number[_0x441301(0x33a)](_0x1f8125[0x1])&&no(_0x1f8125[0x2]))));}function Za(_0x4f3e0e){return to(_0x4f3e0e)?$a(_0x4f3e0e):_0x4f3e0e;}function Qa(_0x1a2568){return no(_0x1a2568)?eo(_0x1a2568):_0x1a2568;}function $a(_0x11590f){return{'c':0x1,..._0x11590f['v']===void 0x0?{}:{'v':_0x11590f['v']},..._0x11590f['t']!==void 0x0&&_0x11590f['t']!==null?{'t':_0x11590f['t']}:_0x11590f['t']===null?{'t':null}:{},..._0x11590f['f']!==void 0x0&&_0x11590f['f']!==null?{'f':_0x11590f['f']}:_0x11590f['f']===null?{'f':null}:{},..._0x11590f['si']!==void 0x0&&_0x11590f['si']!==null?{'si':_0x11590f['si']}:_0x11590f['si']===null?{'si':null}:{},..._0x11590f['p']!==void 0x0&&_0x11590f['p']!==null?{'p':_0x11590f['p']}:_0x11590f['p']===null?{'p':null}:{}};}function eo(_0x3bd59e){return{..._0x3bd59e['v']===void 0x0?{}:{'v':_0x3bd59e['v']},..._0x3bd59e['t']===void 0x0?{}:{'t':_0x3bd59e['t']},..._0x3bd59e['f']===void 0x0?{}:{'f':_0x3bd59e['f']},..._0x3bd59e['si']===void 0x0?{}:{'si':_0x3bd59e['si']},..._0x3bd59e['p']===void 0x0?{}:{'p':_0x3bd59e['p']}};}function to(_0x2eed5a){const _0x1507a3=_0x504a7e;return!!_0x2eed5a&&typeof _0x2eed5a==_0x1507a3(0x349)&&!Array[_0x1507a3(0x216)](_0x2eed5a)&&(Object[_0x1507a3(0x120)]['hasOwnProperty'][_0x1507a3(0x2f2)](_0x2eed5a,'v')||Object[_0x1507a3(0x120)][_0x1507a3(0x142)][_0x1507a3(0x2f2)](_0x2eed5a,'t')||Object[_0x1507a3(0x120)][_0x1507a3(0x142)][_0x1507a3(0x2f2)](_0x2eed5a,'p')||Object['prototype'][_0x1507a3(0x142)][_0x1507a3(0x2f2)](_0x2eed5a,'f')||Object[_0x1507a3(0x120)]['hasOwnProperty'][_0x1507a3(0x2f2)](_0x2eed5a,'si'));}function no(_0x185490){return ao(_0x185490)&&_0x185490['c']===0x1;}function ro(_0x4026ff){const _0x582925=_0x504a7e;return ao(_0x4026ff)&&typeof _0x4026ff[_0x582925(0x1fb)]==_0x582925(0x1e9)&&typeof _0x4026ff['tableId']==_0x582925(0x1e9)&&(_0x4026ff[_0x582925(0x198)]===void 0x0||typeof _0x4026ff[_0x582925(0x198)]=='string')&&Array[_0x582925(0x216)](_0x4026ff[_0x582925(0x10f)])&&_0x4026ff[_0x582925(0x10f)][_0x582925(0x364)](_0x266d48=>ao(_0x266d48)&&Number[_0x582925(0x33a)](_0x266d48[_0x582925(0x33e)])&&Number['isInteger'](_0x266d48[_0x582925(0xfe)])&&'value'in _0x266d48);}function _0x1173(_0x593ff3,_0x44d9ad){_0x593ff3=_0x593ff3-0xf1;const _0x62ad7d=_0x62ad();let _0x11730a=_0x62ad7d[_0x593ff3];return _0x11730a;}function io(_0x260b39,_0x546d85){const _0x5bea29=_0x504a7e;if(ao(_0x260b39)&&_0x260b39[_0x5bea29(0x157)]===!0x0){if(_0x260b39[_0x5bea29(0x2ce)]!==_0x546d85)throw Error(_0x5bea29(0x22c)+String(_0x260b39[_0x5bea29(0x2ce)])+'\x22.');if(!(_0x546d85==='base-range-values-v1'?Ya(_0x260b39):Xa(_0x260b39)))throw Error('[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22'+_0x546d85+'\x22.');}}function ao(_0x5daf1e){const _0x13bcab=_0x504a7e;return!!_0x5daf1e&&typeof _0x5daf1e==_0x13bcab(0x349)&&!Array[_0x13bcab(0x216)](_0x5daf1e);}export{_0x1a9379 as ApplyBaseJson1Mutation,Di as BASE_FIELD_STAT_TYPES,_0xe966a5 as BASE_HIERARCHY_MAX_LEVELS,_0x307982 as BASE_HIERARCHY_PARENT_FIELD_ID,tr as BASE_TABLE_NAME_REQUIREMENTS,Wt as BASE_UNIT_PERMISSION_ACTIONS,ni as BaseConditionalColorRuleUpdateType,_0x5d4c51 as BaseEventSource,wn as BaseFormulaService,_0x3798c4 as BaseHierarchyError,_0xfd180 as BaseHierarchyErrorCode,_0x2f29d3 as BaseHistoryAction,_0x2be14e as BaseJson1OpApplier,q as BaseJson1OpFactory,Yn as BatchCreateBaseRecordsCommand,Xn as BatchDeleteBaseRecordsCommand,Zn as ChangeBaseFieldTypeCommand,Qn as CreateBaseChildRecordCommand,$n as CreateBaseFieldCommand,er as CreateBaseRecordCommand,ir as CreateBaseTableCommand,yr as CreateBaseViewCommand,br as DeleteBaseFieldCommand,xr as DeleteBaseRecordCommand,Sr as DeleteBaseTableCommand,Cr as DeleteBaseViewCommand,wr as DuplicateBaseFieldCommand,Tr as DuplicateBaseRecordCommand,mi as EMBED_BASES_TABLE_RESOURCE_KEY,Er as EnsureBaseTemporalViewDateFieldsCommand,Z as IBaseCommandService,on as IBasePermissionService,_0x26150d as IBaseProjectionService,Da as IBaseViewRegistryService,kr as MoveBaseFieldCommand,Ar as MoveBaseHierarchyRecordCommand,Pr as MoveBaseViewCommand,Fr as RenameBaseTableCommand,Ir as RenameBaseViewCommand,Lr as SetBaseKanbanGroupFieldCommand,Rr as SetBaseNameCommand,zr as SetBasePermissionCommand,di as SetBasePermissionRuleMutation,fi as SetBasePermissionRulesMutation,Br as SetBasePermissionsCommand,Hr as SetBaseRangeValuesCommand,Ur as SetBaseRecordValuesCommand,Wr as SetBaseTableHierarchyFieldCommand,Gr as SetBaseViewFieldOrderCommand,Kr as SetBaseViewFieldVisibleCommand,qr as SetBaseViewFieldWidthCommand,Jr as SetBaseViewFilterCommand,Yr as SetBaseViewGroupCommand,Xr as SetBaseViewSortCommand,Aa as UniverBasesPlugin,Zr as UpdateBaseCellCommand,$r as UpdateBaseFieldCommand,Qr as UpdateBaseFieldDescriptionCommand,ei as UpdateBaseKanbanConfigCommand,ti as UpdateBaseRecordOrderCommand,ri as UpdateBaseViewConditionalColorRulesCommand,ci as UpdateBaseViewConfigCommand,li as ValidateBaseFormulaCommand,_0x986d8d as baseDateSerialToDateMs,_0x3ac0ab as buildBaseHierarchyIndex,Ri as calculateBaseFieldStat,an as canEditBaseTargets,qa as compressBaseRangeValuesPayload,ra as copyBaseTableSnapshot,_0x4e974f as createBaseHierarchyParentField,pi as createDefaultBaseTableSnapshot,hi as createEmbedBasesTable,gi as createEmbedBasesTableAddMutation,_i as createEmbedBasesTableRemoveMutation,rr as createUniqueBaseTableName,_0x368e47 as dateToExcelSerial,Ja as decompressBaseRangeValuesPayload,k as ensureBaseTableCellLayout,_0x14abc2 as findRecordLinkReferences,_0x1fdd23 as formatBaseDateValue,zi as formatBaseFieldStatValue,bi as formatBaseNumberValue,Ti as formatBaseProgressValue,_0x293ef7 as getActiveBaseHierarchyFieldIds,_0x1c0108 as getBaseCellFormulaValue,_0x131473 as getBaseCellValue,_0x5b6408 as getBaseConditionalColorOperators,Qt as getBaseDashboardPermissionObjectId,Y as getBaseFieldPermissionObjectId,_0x49b767 as getBaseFormulaTableName,_0x120f28 as getBaseHierarchyDeletePromotions,_0xed19c9 as getBaseHierarchyFieldId,en as getBasePermissionValue,X as getBaseRecordPermissionObjectId,J as getBaseTablePermissionObjectId,Zt as getBaseViewPermissionObjectId,_0x4f3842 as getRecordLinkFieldConfig,Ii as getSupportedBaseFieldStatTypes,_0x2ec0bc as getVisibleBaseHierarchyRows,wi as inferBaseSeparatorStyle,_0x461d57 as isBaseConditionalColorDateField,Bi as isBaseFieldStatEmptyValue,Li as isBaseFieldStatSupported,Pi as isBaseFieldStatType,_0x2b5e99 as isBaseHierarchyField,Ya as isCompressedBaseRangeValuesPayload,_0xa24b24 as matchesBaseCondition,_0x5830e6 as normalizeBaseDateFieldConfig,_0x2b1acd as normalizeBaseDateSerial,Fi as normalizeBaseFieldStatsConfig,_0x1004bc as parseRecordLinkIds,_0x7263fd as projectBaseHierarchy,_0x5cf8f0 as resolveBaseDateFieldConfig,_0x30e703 as resolveBaseHierarchyFieldId,Vr as resolveBaseRangeHierarchyPatches,ja as searchBaseTable,_0x18699a as serializeRecordLinkIds,tn as setBasePermissionValue,_0x5bc2d6 as traceBasePerformance,ar as uniqueFieldName,_0x5765d0 as validateBaseHierarchyMove,_0x52fa6c as validateBaseHierarchyRecordCreations,_0x41ad89 as validateBaseHierarchyRecordPatches,nr as validateBaseTableName,_0x1b5ce2 as validateCanonicalRecordLinkValue,_0xc6290e as validateRecordLinkField,_0x245cec as validateRecordLinkValue};
|