@bryntum/engine-thin-trial 7.2.4 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chrono/ChronoModelMixin.js +1 -1
- package/lib/chrono/Replica.js +1 -1
- package/lib/quark/model/gantt/ConstrainedLateEventMixin.js +1 -1
- package/lib/quark/model/mixin/AbstractPartOfProjectModelMixin.js +1 -1
- package/lib/quark/model/mixin/ChronoPartOfProjectModelMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/BaseCalendarMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/HasCalendarMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/SchedulerBasicProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_core/SchedulerCoreProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
- package/lib/quark/store/mixin/AbstractPartOfProjectStoreMixin.js +1 -1
- package/lib/quark/store/mixin/ChronoPartOfProjectStoreMixin.js +1 -1
- package/lib/quark/store/mixin/CorePartOfProjectStoreMixin.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function n(a,b){return _enb(a-0x15b,b);}const c=a();while(!![]){try{const d=parseInt(n(0x22e,0x216))/0x1*(-parseInt(n(0x21f,0x227))/0x2)+-parseInt(n(0x21c,0x202))/0x3*(parseInt(n(0x1fe,0x215))/0x4)+parseInt(n(0x22c,0x21c))/0x5*(-parseInt(n(0x21b,0x220))/0x6)+-parseInt(n(0x1fd,0x213))/0x7*(-parseInt(n(0x221,0x237))/0x8)+-parseInt(n(0x20b,0x211))/0x9*(-parseInt(n(0x206,0x214))/0xa)+-parseInt(n(0x226,0x232))/0xb*(-parseInt(n(0x20e,0x200))/0xc)+parseInt(n(0x201,0x1f4))/0xd;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb7834));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xa2;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Entity}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/data/Model.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _ena(){const z=['addIdentifier','651800LytTAd','set','lazy','removeIdentifier','prototype','27TLxzKa','getLatestEntryFor','store','4764leZgrS','enterGraph','internalId','length','get','name','isObject','getFieldDefinition','trackFieldChanges','field','isInActiveTransaction','fieldChangeTrackers','unlink','12zPqJCz','3500343nfHayF','proposedValue','$entity','326982uHsKFD','activeTransaction','244232gEujuq','copy','call','userProvidedValue','constructor','6985fZxWPa','graph','untrackFieldChanges','values','getField','getValue','2933345VBZprL','type','6pKNljI','leaveGraph','getLatestStableOrProposedEntryFor','245NvxGZR','4bVYqxX','delete','DATA','33235579zsYFrB','isEntity','clear','applyValue'];_ena=function(){return z;};return _ena();}import{ChronoModelReferenceBucketFieldIdentifier,ChronoModelReferenceFieldIdentifier,ModelReferenceField}from'./ModelFieldAtom.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';class ChronoModelMixin extends Mixin([Entity,_enc],a=>{function o(a,b){return _enb(b-0x22f,a);}const b=a[o(0x2d1,0x2de)];class c extends a{get[o(0x2d5,0x2d6)](){return!![];}*[o(0x303,0x2f8)](){return yield ProposedOrPrevious;}[o(0x2e5,0x2f6)](d=null,e=null){const f=b[p(-0xdf,-0xe2)][p(-0xf1,-0xe1)](this,d,e);const {creatingOccurrence:g}=e??{};if(_end[p(-0x103,-0xf0)](e)&&!e['skipFieldIdentifiers']||!_end[p(-0x106,-0xf0)](e)){this['forEachFieldIdentifier']((h,i,j)=>{function q(a,b){return p(a,b-0x565);}if(!j[q(0x472,0x469)]&&this[q(0x485,0x476)](i)?.[q(0x49a,0x48e)]!==q(0x487,0x46e)&&(!g&&!(h instanceof ChronoModelReferenceBucketFieldIdentifier)||g&&(h instanceof ChronoModelReferenceBucketFieldIdentifier||h instanceof ChronoModelReferenceFieldIdentifier))){f[i]=this[i];}});}function p(a,b){return o(a,b- -0x3d8);}return f;}[o(0x2d7,0x2d8)](d,e,f,g,h){const i=this[r(0x6f,0x6d)][r(0x7b,0x7d)](h?.[r(0x64,0x4a)]||e);if(i)d=!![];function r(a,b){return o(b,a- -0x283);}if(g)d=![];b[r(0x55,0x54)][r(0x74,0x67)](this,d,d?h?.[r(0x64,0x72)]??e:e,f,g,h);}get[o(0x2f0,0x2ec)](){function s(a,b){return o(a,b- -0x1d1);}const d=this[s(0x137,0x12a)]?.[s(0x10b,0x123)];return Boolean(d?.[s(0x112,0x10f)](this['$$']));}get['$entityName'](){const d=this[t(-0x14e,-0x142)][t(-0x160,-0x149)]||this['$entity'][t(-0x160,-0x173)];const e=this[t(-0x163,-0x151)];function t(a,b){return o(b,a- -0x447);}return''+d+(e!=null?'-'+String(e):'');}[o(0x2f6,0x2ea)](d){if(!this['fieldChangeTrackers']){this[u(0x17d,0x189)]=new Map();}const e=this[u(0x17d,0x16d)];let f=e[u(0x176,0x167)](d);function u(a,b){return o(b,a- -0x170);}if(!f){f=this['graph'][u(0x169,0x15b)](CalculatedValueGen['new']({'context':this,*'calculation'(){return this[d];}}));e[u(0x16b,0x15a)](d,f);}return f;}[o(0x30a,0x2fc)](d){const e=this['graph'];function v(a,b){return o(b,a- -0x4e6);}const f=this['fieldChangeTrackers'];if(f){if(d){const g=f[v(-0x200,-0x1f1)](d);if(g&&e){e['removeIdentifier'](g);}f[v(-0x213,-0x214)](d);}else{if(e){for(const [,h]of f){e[v(-0x209,-0x1f2)](h);}}f[v(-0x20f,-0x220)]();}if(!f['size']){this[v(-0x1f9,-0x1ee)]=void 0x0;}}}[o(0x2d2,0x2e3)](d){super[w(-0x85,-0x71)](d);function w(a,b){return o(a,b- -0x354);}if(this[w(-0x81,-0x67)]){for(const e of this['fieldChangeTrackers'][w(-0x4e,-0x57)]()){d['addIdentifier'](e);}}}[o(0x2e9,0x303)](d){super['leaveGraph'](d);function x(a,b){return o(a,b- -0x617);}if(this['fieldChangeTrackers']){for(const e of this[x(-0x340,-0x32a)][x(-0x302,-0x31a)]()){d['removeIdentifier'](e);}}}[o(0x2fb,0x2ee)](d){d=d||this['graph'];function y(a,b){return o(b,a- -0x4f);}if(d){const {activeTransaction:e}=d;const {$:f}=this;const g=Object['keys'](f);for(let h=0x0;h<g[y(0x296,0x297)];h++){const j=g[h];const k=f[j];const l=e[y(0x2b5,0x29e)](k);if(l){let m=l[y(0x2b0,0x2af)]();if(m===void 0x0)m=l[y(0x2a2,0x2b1)];if(m!==void 0x0){k[y(0x285,0x272)]=k[y(0x29c,0x2a4)]instanceof ModelReferenceField?m?.['id']??m:m;}}}this['graph']=null;}}}return c;}){}export{ChronoModelMixin};
|
package/lib/chrono/Replica.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function B(a,b){return _enb(a-0x2f8,b);}const c=a();while(!![]){try{const d=-parseInt(B(0x463,0x48b))/0x1+parseInt(B(0x4ba,0x4a9))/0x2*(parseInt(B(0x4d9,0x4cb))/0x3)+-parseInt(B(0x4c6,0x4c2))/0x4*(-parseInt(B(0x4d6,0x4e5))/0x5)+parseInt(B(0x4bf,0x4ba))/0x6*(-parseInt(B(0x471,0x435))/0x7)+-parseInt(B(0x4cd,0x4ab))/0x8+-parseInt(B(0x47d,0x45f))/0x9+parseInt(B(0x494,0x49f))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3ba6d));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function C(a,b){return _enb(a- -0xcc,b);}if(typeof Reflect===C(0x113,0xdc)&&typeof Reflect[C(0xc4,0x9d)]===C(0xab,0xa0))h=Reflect[C(0xc4,0xc8)](a,b,e,f);else for(var k=a[C(0xf1,0xb4)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[C(0x9b,0xb5)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';function _ena(){const aa=['isWritingData','hasProposedValue','beforeChronoFieldSet','hasLoadedDataToCommit','hasResolvedSchedulingIssue','rejectedWith','defineProperty','getEvents','isCommitting','failedResolutionReferences','350346LSoAus','endBatch','Time\x20to\x20visible','dataReady','silenceInitialCommit','preventSilencingOnIssueResolve','call','clearCycles','effect','onComputationCycle','suspendChangeTracking','addCycle','function','ignoreInitialCommitComputationCycles','77SpwwUH','identifier','cycleEffectClass','getValue','dirty','map','commitAsync','has','getDescription','Resume','firstStore','resumeAutoCommit','1914786ewBbDP','fromEvent','beforeCommit','isInitialCommit','_dependencies','cycle','entries','reject','transactionChainEntries','isDestroyed','getDependencyForSourceAndTargetEvents','decorate','trigger','batchChanges','matchDependencyBySourceAndTargetEvent','RemoveDependencyCycleEffectResolution','refresh','startNewEpoch','size','get','startProgressNotificationsAfterMs','_onComputationCycle','initialize','3227690VlkPid','Cancel','ignoreRecordChanges','onComputationCycleHandler','afterChronoFieldSet','enableProgressNotifications','getDependencyStore','candidate','\x22\x20->\x20\x22','name','baseRevision','onEmptyCalendarSchedulingIssue','onPropagationProgressNotification','async','graph','$name','removeDependencyCycleEffectResolutionClass','time','ignoreBag','prototype','ignore','field','Finalize\x20propagation','DEBUG','resumeChangeTracking','isInitialCommitPerformed','selfDependedMarked','assignmentStore','writeFailedResolutionInfo','event','transaction','transactionClass','yieldSync','length','onComputationCycleHandlerSync','clear','write','toEvent','1268EXqMxl','values','calendarManagerStore','acceptChanges','remove','2118vxAOpV','isWritingPreviousData','commitRejected','autoCommit','handler','getShortDescription','_events','964jteEbb','markSelfDependent','join','onConflictSchedulingIssue','hasVariableEntry','finalizing','walkContext','1485824pbndET','hasChangesInStores','forEach','onCycleSchedulingIssue','getDependencies','_resolutions','isShadow','proposedTimePhasedWrites','new','5755zUwuyW','object','progress','1878FwQvAN','eventStore','meta','CycleEffectDescription','triggerBeforeUpdate','add','L{descriptionTpl}','commitFinalized','ongoing','project','finalizeCommitAsync','beforeCommitAsync','getResolutions','resolve','activeTransaction','candidateClass'];_ena=function(){return aa;};return _ena();}import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x165;let f=c[d];return f;};return _enb(a,b);}import{format}from'../util/Functions.js';import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol('CycleSymbol');class EngineRevision extends Revision{constructor(){super(...arguments);this[D(0x489,0x4c0)]=new Map();function D(a,b){return _enb(b-0x356,a);}this[D(0x53c,0x532)]=[];}}class EngineTransaction extends Transaction{constructor(){function E(a,b){return _enb(a- -0x8f,b);}super(...arguments);this[E(0x161,0x185)]=EngineRevision;this[E(0xd6,0xfa)]=![];}['initialize'](a){if(a[F(0xf6,0x104)][F(0x136,0x13e)]?.['delayCalculation']){a[F(0xe5,0x9f)]=0x0;a['emitProgressNotificationsEveryMs']=0x64;}function F(a,b){return _enb(a- -0xb4,b);}super[F(0xe7,0xa7)](a);this[F(0xef,0xfe)][F(0xb6,0xb1)]=new Map(this['baseRevision']['failedResolutionReferences']);}['markSelfDependent'](){if(this[G(0x187,0x14a)])return;function G(a,b){return _enb(a- -0x2f,b);}super[G(0x1a0,0x18c)]();this[G(0x17b,0x138)]['isWritingPreviousData']++;this[G(0x177,0x14e)][G(0x1ad,0x1ce)][G(0x1a8,0x17a)](([a,b])=>{function H(a,b){return G(a-0x1b,b);}const c=this[H(0x177,0x189)][H(0x184,0x15b)](a);if(!c||!c[H(0x1de,0x20b)]()){this[H(0x1ac,0x17f)](a,b);}});this[G(0x17b,0x19c)][G(0x199,0x1a6)]--;}['writeFailedResolutionInfo'](a){function I(a,b){return _enb(b- -0x1fe,a);}a[I(-0x3a,-0x27)]((b,c)=>{function J(a,b){return I(a,b-0x577);}if(c['context'][J(0x518,0x523)]){this[J(0x56c,0x539)](c,b);}});}['addIdentifier'](a,b,...c){const d=this[K(0x35a,0x334)][K(0x321,0x353)];if(d['size']>0x0){this[K(0x36f,0x3b7)](d);d[K(0x376,0x3a6)]();}function K(a,b){return _enb(a-0x1b7,b);}return super['addIdentifier'](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{const b=a[L(-0x13c,-0x149)];function L(a,b){return _enb(a- -0x2eb,b);}class c extends a{constructor(){function M(a,b){return L(a- -0x64,b);}super(...arguments);this[M(-0x1a9,-0x1dc)]=EngineRevision['new']();this[M(-0x194,-0x1be)]=EngineTransaction;this['autoCommitMode']=M(-0x1a6,-0x1c7);this[M(-0x1db,-0x1b4)]=M(-0x1dc,-0x1b1);this['cycleEffectClass']=CycleEffect;this[M(-0x1e0,-0x1b0)]=!![];this[M(-0x1df,-0x202)]=!![];this['ignoreInitialCommitComputationCycles']=![];this[M(-0x1c2,-0x193)]=new Set();}get[L(-0x16e,-0x195)](){const d=this[N(0x519,0x539)];function N(a,b){return L(b-0x635,a);}return d[N(0x513,0x4d5)][N(0x4c5,0x4e1)]>0x0&&(d[N(0x4fc,0x51c)]||d['hasEntryWithProposedValue']);}[L(-0x143,-0x106)](d){function O(a,b){return L(b- -0x9c,a);}if(this[O(-0x1f6,-0x1e6)]&&this[O(-0x1d0,-0x19d)])this['project']['trigger']?.(O(-0x197,-0x1a7),d);}async[L(-0x16c,-0x156)](d){if(!this[P(0x376,0x38e)]||this[P(0x376,0x354)][P(0x31a,0x329)])return;if(this[P(0x37b,0x39f)]['entries'][P(0x323,0x342)]===0x0&&!this['project'][P(0x362,0x329)]&&!this[P(0x314,0x2d9)]){if(this[P(0x2f5,0x329)]){return this[P(0x375,0x340)];}else{this[P(0x376,0x3ae)][P(0x341,0x354)]=!![];this[P(0x314,0x331)]=![];return{'rejectedWith':null};}}this[P(0x376,0x360)]['trigger'](P(0x313,0x343));if(this[P(0x314,0x317)]&&this[P(0x304,0x2fd)]){this[P(0x326,0x328)]=this[P(0x326,0x34a)]||this[P(0x300,0x2ec)];this['onComputationCycle']=P(0x33c,0x36e);}const e=this[P(0x376,0x35a)][P(0x378,0x388)]();function P(a,b){return L(a-0x477,b);}if(e)return e;return b[P(0x30b,0x2d2)][P(0x2fd,0x2bf)](this,d);}get[L(-0x163,-0x182)](){function Q(a,b){return L(b-0x137,a);}return this[Q(0x33,0x36)][Q(-0x11,-0x2c)]||super['isInitialCommit']&&!this['project'][Q(0x11,0x1)];}set['isInitialCommit'](d){function R(a,b){return L(a- -0x67,b);}super[R(-0x1ca,-0x185)]=d;}[L(-0x12b,-0x15d)](d,e,...f){const g=d[S(0x1b2,0x1c9)]?.[S(0x1d5,0x1bd)];function S(a,b){return L(b-0x303,a);}const h=d['self'];if(g&&h&&this===h['graph']){const i=h[S(0x1d6,0x20b)]?.(g,e);b['write'][S(0x191,0x189)](this,d,e,...f);h[S(0x1d3,0x1b8)]?.(g,e,i);}else{b[S(0x1d2,0x1d8)][S(0x1ac,0x189)](this,d,e,...f);}}async[L(-0x100,-0x13d)](d){const {project:e}=this;if(!e||e['isDestroyed'])return;e[T(0x3cd,0x3c9)]('finalizeCommit');const {entries:f}=d,g=d['transaction'],h=new Set();if(globalThis['DEBUG'])console['timeEnd'](T(0x3e6,0x3a5));const {isInitialCommit:i,silenceInitialCommit:j,preventSilencingOnIssueResolve:k}=this;if(!f[T(0x3b5,0x3cf)]&&!e[T(0x42c,0x42c)]){e['trigger']('commitFinalized',{'isInitialCommit':i,'transactionResult':d});return;}const l=e['finalizeCommitHook'](i)===!![];if(l){for(const n of f[T(0x417,0x3fb)]()){this[T(0x3ff,0x3c5)][T(0x411,0x41e)](n);}return;}const m=i&&j&&!(k&&g[T(0x3cf,0x39d)]);if(i){e[T(0x3b9,0x3ed)]=!![];if(this[T(0x3a6,0x3b0)])this[T(0x3eb,0x3ac)]=this[T(0x3db,0x3d2)];}e['isWritingData']=!![];function T(a,b){return L(b-0x523,a);}e[T(0x43f,0x42c)]=![];if(this['enableProgressNotifications']){e[T(0x39d,0x3c9)](T(0x3d7,0x418),{'total':f[T(0x406,0x3cf)],'remaining':0x0,'phase':T(0x428,0x40b)});}if(g[T(0x384,0x39e)]){e['trigger'](T(0x40f,0x401),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});}e[T(0x40e,0x3c9)](T(0x3e1,0x3cd),{'isInitialCommit':i,'isCalculated':!![]});await delay(0x0);if(!e[T(0x399,0x3c6)]){if(!d[T(0x3fb,0x3f2)]['rejectedWith']){e[T(0x3d1,0x3ad)]?.();if(globalThis[T(0x41c,0x3eb)])console[T(0x3e6,0x3e5)](T(0x40d,0x3ea));const o=new Set();const p=this[T(0x389,0x3c5)][T(0x38e,0x3cf)]?this['transactionChainEntries']:f[T(0x3db,0x3fb)]();for(const r of p){const s=r[T(0x3d6,0x3b2)];const t=r[T(0x3b3,0x3b4)]();const {field:u}=s;if(r[T(0x3f9,0x413)]()||!s[IsChronoModelSymbol]||t===TombStone||u instanceof ModelBucketField||u[T(0x3e9,0x3e8)])continue;const v=s['self'];const w=v[T(0x3aa,0x3bb)];if(!o[T(0x389,0x3b8)](v)){v['beginBatch'](!![]);o['add'](v);}if(w?.[T(0x40c,0x402)]&&!h[T(0x3ea,0x3b8)](w)){w['suspendAutoCommit']();h[T(0x3f4,0x41e)](w);}v[T(0x3e5,0x41b)][T(0x3ec,0x3ca)][u[T(0x3f6,0x3dd)]]=t;}let q=![];for(const x of o){if(!x[T(0x45f,0x41d)]({...x[T(0x41a,0x41b)][T(0x3ad,0x3ca)]})){q=!![];break;}}if(q){for(const y of o){y['cancelBatch']();}d[T(0x3fb,0x3f2)][T(0x3ce,0x3c4)]();e[T(0x3a3,0x3c9)](T(0x403,0x401),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});e[T(0x39b,0x3c9)](T(0x38c,0x3cd),{'isInitialCommit':i,'isCalculated':!![]});}else{for(const z of o){z['ignoreBag']=m||e[T(0x413,0x3d6)];z['generation']++;z[T(0x392,0x3a4)](m,!![],!![]);z[T(0x3bc,0x3e6)]=![];}}e[T(0x3e4,0x3d6)]=![];if(globalThis[T(0x3dd,0x3eb)])console['timeEnd'](T(0x3c6,0x3ea));e[T(0x45d,0x429)]=![];if(!q){e[T(0x3b1,0x3c9)](T(0x3b8,0x3a6),{'records':o,'isInitialCommit':i});}e[T(0x3de,0x3ec)]?.(m);h[T(0x428,0x40f)](A=>A[T(0x3e3,0x3bc)]());if(m){e[T(0x41b,0x41a)][T(0x432,0x3fd)]();e['dependencyStore'][T(0x3d6,0x3fd)]();e['resourceStore'][T(0x3bb,0x3fd)]();e[T(0x3b8,0x3ef)][T(0x438,0x3fd)]();e[T(0x430,0x3fc)][T(0x441,0x3fd)]();e[T(0x3eb,0x3fd)]();}}else{e[T(0x420,0x429)]=![];}this[T(0x3a1,0x3c5)][T(0x402,0x3f7)]();e[T(0x3b7,0x3c9)](T(0x400,0x420),{'isInitialCommit':i,'transactionResult':d});}}*[L(-0x14c,-0x172)](d,e){function U(a,b){return L(a-0x84,b);}if(this['onComputationCycle']==='effect'){e[U(-0xf1,-0xd2)](d);const f=this[U(-0x7d,-0x4f)]['cycleEffectClass'][U(-0x8a,-0x62)]({'cycle':d});const g=yield f;switch(g){case EffectResolutionResult[U(-0xca,-0xce)]:yield Reject(f);break;case EffectResolutionResult[U(-0xe5,-0xd7)]:e?.[U(-0xf5,-0x100)]?.();}}else{return yield*super[U(-0xc8,-0xaa)](d,e);}}[L(-0x12d,-0x11b)](d,e){function V(a,b){return L(a-0x18a,b);}if(this[V(0x13,0x44)]==='effect'){e[V(0x15,0x4a)](d);const f=this[V(0x89,0x8c)][V(0x1a,-0x11)][V(0x7c,0x7e)]({'cycle':d});const g=e[V(0x5b,0x53)](f);if(g===EffectResolutionResult[V(0x3c,0x73)]){e[V(0x5b,0x4b)](Reject(f));}else if(g===EffectResolutionResult['Resume']){e?.[V(0x11,-0xd)]?.();}}else{return super[V(0x5d,0x81)](d,e);}}[CycleSymbol](d,e){function W(a,b){return L(b-0x302,a);}return this[W(0x219,0x201)][W(0x200,0x1ef)](d,e);}[EmptyCalendarSymbol](d,e){e[X(-0x201,-0x238)]['startNewEpoch']();function X(a,b){return L(a- -0xea,b);}return this[X(-0x1eb,-0x1d8)][X(-0x22e,-0x231)](d,e);}[ConflictSymbol](d,e){function Y(a,b){return L(b- -0xb3,a);}e[Y(-0x183,-0x1ca)][Y(-0x244,-0x208)]();return this[Y(-0x19b,-0x1b4)][Y(-0x1bf,-0x1cd)](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}return c;}){}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){[_enZ(0x48c,0x4c6)](){function a0(a,b){return _enZ(a,b- -0x35b);}return this['L'](a0(0x19d,0x1d1));}[_enZ(0x4fd,0x533)](a){function a1(a,b){return _enZ(b,a- -0xea);}a[a1(0x421,0x42b)]();}}RemoveDependencyCycleEffectResolution[_enZ(0x4f8,0x4f0)]=_enZ(0x4d7,0x4d9);class CycleEffectDescription extends _end(_enc){static[_enZ(0x491,0x4c6)](a){function a2(a,b){return _enZ(b,a- -0x5cd);}return format(this['L'](a2(-0xa1,-0x6c)),this[a2(-0xbc,-0x9a)](a));}static[_enZ(0x555,0x511)](a){const b=a['getEvents']()['slice']();b['push'](b[0x0]);function a3(a,b){return _enZ(a,b- -0x355);}return'\x22'+b[a3(0x15a,0x16e)](c=>c[a3(0x193,0x195)]||'#'+c['id'])[a3(0x1d5,0x1c0)](a3(0x15b,0x194))+'\x22';}}CycleEffectDescription[_enZ(0x4ec,0x4f0)]=_enZ(0x56a,0x529);function _enZ(a,b){return _enb(b-0x345,a);}class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);function a4(a,b){return _enZ(a,b- -0x42c);}this[a4(0xac,0xe4)]=CycleSymbol;}get['isCycleEffect'](){return!![];}[_enZ(0x496,0x4ad)](){if(!this[a5(0x593,0x577)]){const a=new Set();this[a5(0x543,0x534)][a5(0x4f0,0x534)][a5(0x589,0x581)](({context:b})=>a['add'](b[a5(0x5a6,0x563)]??b));this[a5(0x532,0x577)]=[...a];}function a5(a,b){return _enZ(a,b-0x65);}return this[a5(0x58b,0x577)];}[_enZ(0x496,0x4d8)](a,b,c){function a6(a,b){return _enZ(b,a- -0x3af);}return a[a6(0x11c,0x113)]===b&&a[a6(0x157,0x11b)]===c;}['getDependencyForSourceAndTargetEvents'](a,b){const c=this[a7(-0x230,-0x206)]();function a7(a,b){return _enZ(a,b- -0x6b3);}const d=c[0x0][a7(-0x154,-0x184)];const e=d[a7(-0x19a,-0x1cc)]();return e['find'](f=>this[a7(-0x221,-0x1db)](f,a,b));}[_enZ(0x549,0x51e)](){if(!this['_dependencies']){const a=new Set();const b=this[a8(-0x25c,-0x264)]();const c=b[a8(-0x1ff,-0x20f)];let d=b[0x0],e;if(c===0x1){if(e=this[a8(-0x223,-0x23d)](d,d)){a[a8(-0x21d,-0x1e6)](e);}}else{for(const f of b){for(const g of b){if(e=this[a8(-0x232,-0x23d)](f,g)){a[a8(-0x21f,-0x1e6)](e);}if(e=this[a8(-0x212,-0x23d)](g,f)){a[a8(-0x1ba,-0x1e6)](e);}}}}this[a8(-0x236,-0x243)]=[...a];}function a8(a,b){return _enZ(a,b- -0x711);}return this['_dependencies'];}[_enZ(0x53e,0x532)](){function a9(a,b){return _enZ(b,a- -0x165);}if(!this[a9(0x3ba,0x396)]){this[a9(0x3ba,0x381)]=[this[a9(0x38c,0x38c)][a9(0x3bd,0x391)]()];}return this[a9(0x3ba,0x388)];}}__decorate([prototypeValue(_enZ(0x4c4,0x4cf))],CycleEffect[_enZ(0x4e6,0x4f4)],'type',void 0x0);__decorate([prototypeValue(CycleEffectDescription)],CycleEffect[_enZ(0x4cd,0x4f4)],'_descriptionBuilderClass',void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect['prototype'],_enZ(0x507,0x4f1),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x154;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function B(a,b){return _enb(b- -0x3c7,a);}while(!![]){try{const d=parseInt(B(-0x26b,-0x257))/0x1+-parseInt(B(-0x1fa,-0x204))/0x2+parseInt(B(-0x221,-0x1f3))/0x3*(-parseInt(B(-0x220,-0x24a))/0x4)+-parseInt(B(-0x20a,-0x244))/0x5*(parseInt(B(-0x243,-0x24d))/0x6)+-parseInt(B(-0x279,-0x25f))/0x7+-parseInt(B(-0x1f5,-0x235))/0x8+parseInt(B(-0x267,-0x250))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe52de));var __decorate=function(a,b,e,f){var g=arguments[C(0x541,0x501)],h=g<0x3?b:f===null?f=Object[C(0x4a7,0x4c1)](b,e):f,j;function C(a,b){return _enb(b-0x33a,a);}if(typeof Reflect===C(0x4b3,0x4a5)&&typeof Reflect['decorate']==='function')h=Reflect[C(0x55a,0x516)](a,b,e,f);else for(var k=a[C(0x4bc,0x501)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[C(0x4eb,0x4de)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';import{format}from'../util/Functions.js';import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol(_enD(-0x78,-0xbb));class EngineRevision extends Revision{constructor(){super(...arguments);this['failedResolutionReferences']=new Map();this['proposedTimePhasedWrites']=[];}}class EngineTransaction extends Transaction{constructor(){super(...arguments);this[E(-0xff,-0x11a)]=EngineRevision;function E(a,b){return _enD(a- -0xa6,b);}this[E(-0x159,-0x16f)]=![];}['initialize'](a){if(a['graph'][F(-0x180,-0x193)]?.[F(-0x144,-0x126)]){a['startProgressNotificationsAfterMs']=0x0;a[F(-0x134,-0x16b)]=0x64;}function F(a,b){return _enD(a- -0xbf,b);}super[F(-0x175,-0x155)](a);this[F(-0x15f,-0x1a7)][F(-0x127,-0x10a)]=new Map(this[F(-0x179,-0x198)][F(-0x127,-0xff)]);}[_enD(-0xbb,-0x9c)](){function G(a,b){return _enD(a-0x31d,b);}if(this['selfDependedMarked'])return;super[G(0x262,0x227)]();this['graph'][G(0x2bb,0x2cf)]++;this[G(0x263,0x297)][G(0x2b4,0x2fb)][G(0x26d,0x26a)](([a,b])=>{const c=this[H(0x208,0x219)][H(0x20e,0x1d7)](a);function H(a,b){return G(a- -0x8d,b);}if(!c||!c[H(0x200,0x1e1)]()){this['write'](a,b);}});this[G(0x258,0x24b)][G(0x2bb,0x2e3)]--;}['writeFailedResolutionInfo'](a){function I(a,b){return _enD(a-0x3ef,b);}a[I(0x33f,0x340)]((b,c)=>{function J(a,b){return I(b- -0x5a,a);}if(c[J(0x391,0x358)][J(0x2c3,0x2d0)]){this['write'](c,b);}});}['addIdentifier'](a,b,...c){const d=this[K(0x303,0x30e)][K(0x33b,0x30d)];if(d[K(0x30a,0x2f6)]>0x0){this[K(0x2ea,0x2b9)](d);d[K(0x349,0x340)]();}function K(a,b){return _enD(a-0x3a3,b);}return super[K(0x33c,0x33a)](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{function L(a,b){return _enD(b-0xfe,a);}const b=a[L(0x3b,0x37)];class c extends a{constructor(){super(...arguments);this[M(0x446,0x446)]=EngineRevision[M(0x48f,0x46d)]();this[M(0x448,0x42a)]=EngineTransaction;this[M(0x436,0x468)]='async';this[M(0x489,0x4b7)]=M(0x4a3,0x48b);this[M(0x4ac,0x498)]=CycleEffect;this['silenceInitialCommit']=!![];this[M(0x481,0x46e)]=!![];function M(a,b){return L(b,a-0x402);}this['ignoreInitialCommitComputationCycles']=![];this[M(0x48d,0x4b7)]=new Set();}get[L(0x74,0x57)](){function N(a,b){return L(a,b-0x3a9);}const d=this['activeTransaction'];return d[N(0x445,0x41f)][N(0x408,0x40e)]>0x0&&(d[N(0x473,0x456)]||d[N(0x450,0x45e)]);}[L(0x69,0xa0)](d){function O(a,b){return L(a,b-0x3b7);}if(this[O(0x41d,0x449)]&&this[O(0x3bc,0x3f4)])this[O(0x3e0,0x3f4)]['trigger']?.(O(0x3e1,0x40a),d);}async[L(0x52,0x68)](d){const {project:e}=this;function P(a,b){return L(a,b-0x14a);}if(!e||e[P(0x19b,0x184)])return;if(this['activeTransaction'][P(0x1f2,0x1c0)]['size']===0x0&&!e[P(0x209,0x1f8)]&&!this['isInitialCommit']){if(this[P(0x180,0x19b)]){return this[P(0x183,0x17f)];}else{e[P(0x1ca,0x1f3)]=!![];this[P(0x202,0x202)]=![];return{'rejectedWith':null};}}e['trigger'](P(0x198,0x18a));if(this[P(0x1c0,0x202)]&&this['ignoreInitialCommitComputationCycles']){this[P(0x1bf,0x193)]=this[P(0x1b9,0x193)]||this[P(0x1d8,0x1d1)];this['onComputationCycle']=P(0x197,0x1cf);}const f=e[P(0x1f0,0x200)]();if(f)return f;return b['commitAsync'][P(0x1a4,0x1a2)](this,d);}get[L(0xa0,0xb8)](){function Q(a,b){return L(b,a- -0xa5);}return this[Q(-0x68,-0x57)][Q(0x13,-0x35)]||super[Q(0x13,-0x19)]&&!this[Q(-0x68,-0x29)][Q(0x4,-0x11)];}set['isInitialCommit'](d){super['isInitialCommit']=d;}[L(0xbd,0x7a)](d,e,...f){const g=d['field']?.[R(-0x1e8,-0x21e)];function R(a,b){return L(b,a- -0x2a4);}const h=d['self'];if(g&&h&&this===h[R(-0x26b,-0x255)]){const i=h[R(-0x258,-0x232)]?.(g,e);b[R(-0x22a,-0x257)]['call'](this,d,e,...f);h[R(-0x205,-0x201)]?.(g,e,i);}else{b[R(-0x22a,-0x249)][R(-0x24c,-0x213)](this,d,e,...f);}}async[L(0x93,0x81)](d){const {project:e}=this;if(!e||e[S(0x6e,0x7e)])return;e[S(0xe3,0x12b)](S(0x89,0x9b));const {entries:f}=d,g=d[S(0xa9,0xe7)],h=new Set();if(globalThis[S(0xcd,0xdd)])console[S(0x6a,0x24)]('Time\x20to\x20visible');const {isInitialCommit:i,silenceInitialCommit:j,preventSilencingOnIssueResolve:k}=this;if(!f[S(0x99,0x8f)]&&!e['hasLoadedDataToCommit']){e[S(0xe3,0xeb)](S(0x73,0xa1),{'isInitialCommit':i,'transactionResult':d});return;}const l=e[S(0xc8,0x101)](i)===!![];if(l){for(const n of f[S(0xd7,0x111)]()){this[S(0xbf,0x84)]['add'](n);}return;}const m=i&&j&&!(k&&g['hasResolvedSchedulingIssue']);if(i){e[S(0xdd,0xfc)]=!![];if(this['ignoreInitialCommitComputationCycles'])this['onComputationCycle']=this['_onComputationCycle'];}e[S(0x86,0xac)]=!![];e[S(0xa1,0x76)]=![];if(this[S(0xc6,0xb0)]){e[S(0xe3,0xb4)](S(0x87,0x6b),{'total':f['size'],'remaining':0x0,'phase':'finalizing'});}if(g[S(0xee,0xc0)]){e[S(0xe3,0x118)]('commitRejected',{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});}function S(a,b){return L(b,a-0x34);}e[S(0xe3,0xef)](S(0xcc,0x113),{'isInitialCommit':i,'isCalculated':!![]});await delay(0x0);if(!e[S(0x6e,0x55)]){if(!d[S(0xa9,0x84)][S(0xee,0xe0)]){e['suspendChangeTracking']?.();if(globalThis[S(0xcd,0xf5)])console[S(0x93,0xb8)](S(0xc2,0x81));const o=new Set();const p=this[S(0xbf,0xfb)]['size']?this[S(0xbf,0x7f)]:f[S(0xd7,0xe4)]();for(const r of p){const s=r[S(0xb2,0xc7)];const t=r[S(0xa6,0x8d)]();const {field:u}=s;if(r[S(0xdc,0xc6)]()||!s[IsChronoModelSymbol]||t===TombStone||u instanceof ModelBucketField||u['ignore'])continue;const v=s[S(0xa4,0x90)];const w=v[S(0x72,0xa5)];if(!o[S(0xbc,0x100)](v)){v[S(0xa7,0xb0)](!![]);o[S(0xbe,0xcb)](v);}if(w?.[S(0x9e,0xcc)]&&!h[S(0xbc,0xf9)](w)){w['suspendAutoCommit']();h[S(0xbe,0xab)](w);}v[S(0xab,0xf2)][S(0xc7,0xc9)][u['name']]=t;}let q=![];for(const x of o){if(!x[S(0xdb,0xa5)]({...x[S(0xab,0xf3)]['batchChanges']})){q=!![];break;}}if(q){for(const y of o){y[S(0xd1,0x99)]();}d['transaction'][S(0xb6,0x7b)]();e['trigger'](S(0xe6,0xb3),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});e[S(0xe3,0x127)](S(0xcc,0x8b),{'isInitialCommit':i,'isCalculated':!![]});}else{for(const z of o){z[S(0xa3,0x70)]=m||e[S(0xa0,0xbe)];z[S(0xcf,0xf9)]++;z['endBatch'](m,!![],!![]);z['ignoreBag']=![];}}e[S(0xa0,0x66)]=![];if(globalThis[S(0xcd,0xcc)])console[S(0x6a,0x99)]('Finalize\x20propagation');e[S(0x86,0x54)]=![];if(!q){e['trigger']('dataReady',{'records':o,'isInitialCommit':i});}e[S(0x81,0xbf)]?.(m);h[S(0x82,0xa9)](A=>A[S(0xf3,0xde)]());if(m){e['eventStore']['acceptChanges']();e[S(0xed,0x105)]['acceptChanges']();e[S(0x88,0xb6)]['acceptChanges']();e['assignmentStore'][S(0xac,0xb7)]();e[S(0xc3,0xf2)]['acceptChanges']();e['acceptChanges']();}}else{e[S(0x86,0x48)]=![];}this['transactionChainEntries'][S(0xd8,0xe5)]();e[S(0xe3,0x101)](S(0x73,0x43),{'isInitialCommit':i,'transactionResult':d});}}*['onComputationCycleHandler'](d,e){function T(a,b){return L(b,a- -0x1be);}if(this[T(-0x137,-0x107)]===T(-0x11d,-0x122)){e[T(-0x164,-0x14b)](d);const f=this[T(-0x181,-0x158)][T(-0x114,-0xff)]['new']({'cycle':d});const g=yield f;switch(g){case EffectResolutionResult[T(-0x157,-0x174)]:yield Reject(f);break;case EffectResolutionResult[T(-0x13e,-0x110)]:e?.[T(-0x153,-0x154)]?.();}}else{return yield*super[T(-0x186,-0x185)](d,e);}}[L(0x49,0x41)](d,e){function U(a,b){return L(a,b- -0x223);}if(this[U(-0x1b4,-0x19c)]===U(-0x1c9,-0x182)){e['addCycle'](d);const f=this[U(-0x20e,-0x1e6)][U(-0x17a,-0x179)][U(-0x1c8,-0x196)]({'cycle':d});const g=e[U(-0x1d0,-0x1bf)](f);if(g===EffectResolutionResult['Cancel']){e[U(-0x1b7,-0x1bf)](Reject(f));}else if(g===EffectResolutionResult[U(-0x1c5,-0x1a3)]){e?.['clearCycles']?.();}}else{return super['onComputationCycleHandlerSync'](d,e);}}[CycleSymbol](d,e){function V(a,b){return L(b,a-0x4de);}return this[V(0x51b,0x521)][V(0x53e,0x506)](d,e);}[EmptyCalendarSymbol](d,e){function W(a,b){return L(a,b- -0x1a2);}e[W(-0xc7,-0xee)][W(-0x136,-0x139)]();return this['project'][W(-0x144,-0x160)](d,e);}[ConflictSymbol](d,e){e[X(0x4a3,0x489)]['startNewEpoch']();function X(a,b){return L(a,b-0x3d5);}return this[X(0x3cc,0x412)][X(0x43e,0x425)](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}return c;}){}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){[_enD(-0x52,-0x31)](){return this['L']('L{descriptionTpl}');}[_enD(-0x40,-0x70)](a){a['remove']();}}RemoveDependencyCycleEffectResolution[_enD(-0x6d,-0x77)]=_enD(-0x4d,-0x93);class CycleEffectDescription extends _end(_enc){static['getDescription'](a){function Y(a,b){return _enD(a-0x5b,b);}return format(this['L'](Y(0x14,0x2f)),this[Y(-0x2f,-0x4e)](a));}static[_enD(-0x8a,-0x59)](a){const b=a[Z(0x140,0x13a)]()[Z(0x110,0xe0)]();b['push'](b[0x0]);function Z(a,b){return _enD(a-0x17e,b);}return'\x22'+b[Z(0xb3,0xb0)](c=>c[Z(0x13c,0x138)]||'#'+c['id'])[Z(0xbb,0xd7)](Z(0x10c,0x100))+'\x22';}}CycleEffectDescription['$name']=_enD(-0x3c,0x2);function _ena(){const a5=['\x22\x20->\x20\x22','new','Finalize\x20propagation','calendarManagerStore','slice','$name','enableProgressNotifications','batchChanges','finalizeCommitHook','proposedTimePhasedWrites','failedResolutionReferences','addIdentifier','refresh','DEBUG','getDependencyStore','generation','isWritingPreviousData','cancelBatch','fromEvent','afterChronoFieldSet','onPropagationProgressNotification','effect','421614SSQoSg','values','clear','candidateClass','length','triggerBeforeUpdate','isShadow','isInitialCommitPerformed','cycleEffectClass','cycle','getDescription','hasVariableEntry','hasChangesInStores','trigger','matchDependencyBySourceAndTargetEvent','RemoveDependencyCycleEffectResolution','commitRejected','4850535eBRtZj','walkContext','hasEntryWithProposedValue','beforeCommitAsync','L{descriptionTpl}','isInitialCommit','dependencyStore','rejectedWith','decorate','name','_dependencies','resolve','resumeAutoCommit','getEvents','context','CycleEffectDescription','map','autoCommitMode','ongoing','timeEnd','prototype','onComputationCycleHandler','graph','isDestroyed','join','_resolutions','project','firstStore','commitFinalized','beforeCommit','onComputationCycleHandlerSync','onEmptyCalendarSchedulingIssue','markSelfDependent','baseRevision','writeFailedResolutionInfo','transactionClass','10569839TUtAjv','initialize','_onComputationCycle','object','hasResolvedSchedulingIssue','beforeChronoFieldSet','resumeChangeTracking','forEach','1179497UWPWix','onConflictSchedulingIssue','isCommitting','isWritingData','progress','resourceStore','finalizeCommit','40531365AaroLF','dirty','call','12Xxonxt','addCycle','_events','4AbuTwP','find','candidate','time','onCycleSchedulingIssue','type','2908835GOOFIy','getDependencyForSourceAndTargetEvents','yieldSync','size','getOwnPropertyDescriptor','Cancel','commitAsync','startNewEpoch','autoCommit','clearCycles','ignoreRecordChanges','hasLoadedDataToCommit','hasProposedValue','ignoreBag','self','1944808QqcxuD','getValue','beginBatch','getShortDescription','transaction','entries','meta','acceptChanges','delayCalculation','write','getResolutions','get','toEvent','identifier','preventSilencingOnIssueResolve','Resume','finalizeCommitAsync','reject','defineProperty','removeDependencyCycleEffectResolutionClass','ignore','CycleSymbol','onComputationCycle','has','emitProgressNotificationsEveryMs','add','transactionChainEntries'];_ena=function(){return a5;};return _ena();}class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);this['handler']=CycleSymbol;}get['isCycleEffect'](){return!![];}['getEvents'](){if(!this[a0(-0x12b,-0x105)]){const a=new Set();this[a0(-0xdb,-0xbd)][a0(-0xdb,-0xf6)][a0(-0x138,-0x13c)](({context:b})=>a[a0(-0xfc,-0xd9)](b['event']??b));this[a0(-0x12b,-0xeb)]=[...a];}function a0(a,b){return _enD(a- -0x88,b);}return this[a0(-0x12b,-0xef)];}[_enD(-0x4e,-0x8b)](a,b,c){function a1(a,b){return _enD(b-0x5ff,a);}return a[a1(0x57a,0x59f)]===b&&a[a1(0x5bb,0x57e)]===c;}[_enD(-0x9b,-0x92)](a,b){function a2(a,b){return _enD(a-0x2d8,b);}const c=this[a2(0x29a,0x299)]();const d=c[0x0][a2(0x217,0x25c)];const e=d[a2(0x274,0x2bc)]();return e[a2(0x237,0x251)](f=>this[a2(0x28a,0x29b)](f,a,b));}['getDependencies'](){function a3(a,b){return _enD(b-0x33a,a);}if(!this[a3(0x30f,0x2f9)]){const a=new Set();const b=this[a3(0x327,0x2fc)]();const c=b[a3(0x2bf,0x2e2)];let d=b[0x0],e;if(c===0x1){if(e=this['getDependencyForSourceAndTargetEvents'](d,d)){a[a3(0x2dc,0x2c6)](e);}}else{for(const f of b){for(const g of b){if(e=this['getDependencyForSourceAndTargetEvents'](f,g)){a[a3(0x2c3,0x2c6)](e);}if(e=this[a3(0x268,0x29f)](g,f)){a[a3(0x309,0x2c6)](e);}}}}this[a3(0x2b2,0x2f9)]=[...a];}return this[a3(0x33b,0x2f9)];}[_enD(-0x83,-0x6e)](){function a4(a,b){return _enD(a-0x93,b);}if(!this[a4(-0x2f,0x19)]){this[a4(-0x2f,-0x3c)]=[this[a4(0x19,0x3e)][a4(0x22,-0x1a)]()];}return this[a4(-0x2f,-0x10)];}}__decorate([prototypeValue(_enD(-0x53,-0x72))],CycleEffect[_enD(-0xc7,-0xcf)],_enD(-0x9d,-0xd8),void 0x0);function _enD(a,b){return _enb(a- -0x21f,b);}__decorate([prototypeValue(CycleEffectDescription)],CycleEffect[_enD(-0xc7,-0xcc)],'_descriptionBuilderClass',void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect['prototype'],_enD(-0x7a,-0x4a),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(a-0x120,b);}const c=a();while(!![]){try{const d=parseInt(l(0x300,0x2f5))/0x1+-parseInt(l(0x314,0x313))/0x2+parseInt(l(0x2f3,0x309))/0x3+parseInt(l(0x30c,0x2fd))/0x4*(parseInt(l(0x2dc,0x2be))/0x5)+-parseInt(l(0x2eb,0x2e9))/0x6+-parseInt(l(0x2ec,0x2dc))/0x7+parseInt(l(0x308,0x31e))/0x8*(-parseInt(l(0x2e3,0x2f1))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x980ed));var __decorate=function(a,b,e,f){function m(a,b){return _enb(a-0x1f5,b);}var g=arguments[m(0x3c6,0x3bf)],h=g<0x3?b:f===null?f=Object[m(0x3b3,0x3a1)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0x3b2,0x3a5)]==='function')h=Reflect[m(0x3b2,0x3a2)](a,b,e,f);else for(var k=a[m(0x3c6,0x3af)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};function _ena(){const C=['_lateSchedule','213236nARIMz','calculateProjectedDuration','latePreSchedule','isConstrained','calculateLateEndDate','totalSlack','prototype','onEmptyEffectiveInterval','410028RRxQJj','Backward','boolean','doCalculateEffectiveEndDateInterval','85hJKlKv','decorate','getOwnPropertyDescriptor','lateStartDate','endDate','constructor','event','34551fshwwf','earlySchedule','direction','resolved','slackUnit','_earlySchedule','unlink','pickDirectionSchedule','2637156DQEiqm','6198759AjNvKS','earlyPreSchedule','leaveGraph','normalizeUnit','phase','length','phase2','2359392uudfOP','enterGraph','bwcConflictPostpone','startDate','return','pickOpposite','Day','date','scheduleMixinClass','lateSchedule','Forward','calculateCritical','_earlyPreSchedule','479384SiUvPv','_latePreSchedule','calculateTotalSlack','phase1','calculateLateStartDate','isConstrainedAlongDirection','`true`\x20if\x20this\x20task\x20is\x20critical\x20and\x20if\x20the\x20task\x20is\x20delayed,\x20the\x20whole\x20project\x20will\x20be\x20delayed.\x20It\x20is\x20a\x20calculated\x20field\x20and\x20can\x20NEVER\x20be\x20set/modified','number','40MPCytq','getProject','lateEndDate'];_ena=function(){return C;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1bc;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedByDependenciesEventMixin}from'../scheduler_pro/ConstrainedByDependenciesEventMixin.js';import{ConstrainedLateScheduleMixin}from'./ConstrainedLateScheduleMixin.js';class ConstrainedLateEventMixin extends Mixin([ConstrainedByDependenciesEventMixin,HasChildrenMixin],a=>{const b=a[n(0x1c4,0x1dd)];class c extends a{get[n(0x1a8,0x1b8)](){function o(a,b){return n(a,b-0x174);}if(this[o(0x351,0x33e)]!==void 0x0)return this[o(0x320,0x33e)];const d=this[o(0x339,0x320)]['scheduleMixinClass'];const e=new d({'id':o(0x310,0x32c)},null,null,![],!![]);e[o(0x321,0x321)]=this;e['phase']=o(0x340,0x342);return this[o(0x32d,0x33e)]=e;}get[n(0x19f,0x1af)](){function p(a,b){return n(b,a-0xf3);}if(this[p(0x2a6,0x2a8)]!==void 0x0)return this[p(0x2a6,0x28d)];const d=super[p(0x2a2,0x29c)];d[p(0x2ae,0x2a6)]='phase2';return this[p(0x2a6,0x2a1)]=d;}get[n(0x1ce,0x1d9)](){if(this[q(0xc2,0xce)]!==void 0x0)return this[q(0xba,0xce)];const d=this[q(0xbd,0xae)][q(0xbd,0xc8)];const e=new d({'id':q(0xda,0xdb)},null,null,![],!![]);e[q(0xb7,0xaf)]=this;function q(a,b){return n(a,b- -0xfe);}e[q(0xac,0xb2)]=Direction[q(0xfa,0xe2)];e['phase']=q(0xd4,0xd0);return this[q(0xd7,0xce)]=e;}get[n(0x1d4,0x1c7)](){if(this['_lateSchedule']!==void 0x0)return this[r(0x4b0,0x4c6)];const d=this[r(0x480,0x49c)]['scheduleMixinClass'];const e=new d({'id':r(0x4bb,0x4b7)},null,null,![],!![]);e[r(0x49c,0x49d)]=this;function r(a,b){return n(a,b-0x2f0);}e[r(0x496,0x4a0)]=Direction[r(0x4bc,0x4d0)];e[r(0x49a,0x4ab)]=r(0x4ab,0x4ad);return this[r(0x4c2,0x4c6)]=e;}[n(0x1aa,0x1bf)](d){super['enterGraph'](d);this[s(0x3ae,0x39f)][s(0x3b3,0x3a6)](d);function s(a,b){return n(a,b-0x1e7);}this[s(0x3c4,0x3c0)][s(0x39c,0x3a6)](d);this[s(0x3b5,0x3ae)][s(0x3aa,0x3a6)](d);}[n(0x19e,0x1b9)](d){this[t(0x3bd,0x3bb)][t(0x3af,0x3c5)](d);function t(a,b){return n(b,a-0x1f6);}this[t(0x3cf,0x3bb)]['leaveGraph'](d);this[t(0x3ae,0x3a8)]['leaveGraph'](d);super['leaveGraph'](d);}[n(0x1bb,0x1b4)](...d){this['lateSchedule']['unlink'](...d);this[u(0x2fc,0x30c)][u(0x2fa,0x2e7)](...d);this['earlyPreSchedule'][u(0x2d6,0x2e7)](...d);function u(a,b){return n(a,b-0x133);}super['unlink'](...d);}*[n(0x1cd,0x1cf)](){function v(a,b){return n(b,a-0x27e);}return yield this[v(0x445,0x450)]['$'][v(0x43f,0x453)];}*[n(0x1d9,0x1db)](){function w(a,b){return n(b,a-0xe0);}return yield this[w(0x2a7,0x292)]['$'][w(0x28b,0x285)];}*[n(0x1b7,0x1cd)](){function x(a,b){return n(b,a-0x30f);}const d=yield this[x(0x4be,0x4c1)]['$'][x(0x4d0,0x4b3)];const e=yield this[x(0x4d6,0x4c8)]['$']['startDate'];const f=yield this[x(0x4be,0x4ae)]['$']['endDate'];const g=yield this['lateSchedule']['$'][x(0x4ba,0x4a7)];const h=yield this['$'][x(0x4c1,0x4c7)];let i;if(d&&e){i=yield*this[x(0x4e7,0x4e4)](d,e,h,void 0x0,!![]);}if(f&&g){const j=yield*this[x(0x4e7,0x504)](f,g,h,void 0x0,!![]);if(j<i)i=j;}return i;}*[n(0x1e4,0x1c9)](){function y(a,b){return n(a,b- -0x108);}const d=yield this['$'][y(0xda,0xd4)];return typeof d===y(0xd9,0xca)&&d<=0x0;}*[n(0x1db,0x1d0)](d){function z(a,b){return n(b,a-0x36b);}return yield*this['pickDirectionSchedule'](d)[z(0x545,0x543)]();}[n(0x1b2,0x1b5)](d){function A(a,b){return n(a,b- -0x20c);}return d===Direction[A(-0x61,-0x44)]?this['earlySchedule']:this[A(-0x36,-0x45)];}*[n(0x1f9,0x1de)](d,e){function B(a,b){return n(b,a- -0xdd);}if(!(yield*e['isFirstPass']())){const f=this[B(0xf7,0xfd)]();if(!f[B(0xe3,0xe5)]||f['ignoreConstraintsOnConflictDuringSecondPass']){const g=d==='start'?yield*e['doCalculateEffectiveStartDateInterval'](!![],!![]):yield*e[B(0x105,0x11f)](!![],!![]);if(!g['isIntervalEmpty']()){return{'kind':B(0xd4,0xee),'value':g};}}return{'kind':B(0xe5,0x103),'value':yield e[B(0xe6,0xf8)](this)['$'][d==='start'?'startDate':B(0xce,0xd0)]};}return yield*super[B(0x101,0x10f)](d,e);}}c['scheduleMixinClass']=Mixin([a['scheduleMixinClass'],ConstrainedLateScheduleMixin],d=>d);function n(a,b){return _enb(b- -0x15,a);}__decorate([model_field({'type':n(0x1d1,0x1c5),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c['prototype'],n(0x1a4,0x1aa),void 0x0);__decorate([model_field({'type':n(0x1ae,0x1c5),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c[n(0x1da,0x1dd)],n(0x1d1,0x1d5),void 0x0);__decorate([model_field({'type':n(0x1b6,0x1d2),'persist':![],'calculated':!![]},{'lazy':!![],'persistent':![]})],c[n(0x1f8,0x1dd)],n(0x1f1,0x1dc),void 0x0);__decorate([model_field({'type':'string','defaultValue':TimeUnit[n(0x1d4,0x1c4)],'persist':![]},{'lazy':!![],'converter':_enc[n(0x1be,0x1ba)],'persistent':![]})],c[n(0x1c8,0x1dd)],n(0x1a1,0x1b2),void 0x0);__decorate([model_field({'type':n(0x1de,0x1e1),'defaultValue':![],'persist':![],'calculated':!![],'description':n(0x1d0,0x1d1)},{'persistent':![],'lazy':!![]})],c['prototype'],'critical',void 0x0);__decorate([calculate(n(0x1b1,0x1aa))],c['prototype'],n(0x1d6,0x1cf),null);__decorate([calculate(n(0x1c0,0x1d5))],c[n(0x1da,0x1dd)],n(0x1f1,0x1db),null);__decorate([calculate('totalSlack')],c['prototype'],'calculateTotalSlack',null);__decorate([calculate('critical')],c[n(0x1f3,0x1dd)],'calculateCritical',null);return c;}){}export{ConstrainedLateEventMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function h(a,b){return _enb(b-
|
|
1
|
+
(function(a,b){function h(a,b){return _enb(b-0x331,a);}const c=a();while(!![]){try{const d=-parseInt(h(0x3e8,0x3dc))/0x1+parseInt(h(0x3e9,0x3e6))/0x2*(parseInt(h(0x3dc,0x3df))/0x3)+parseInt(h(0x3d6,0x3ce))/0x4*(parseInt(h(0x3d4,0x3e0))/0x5)+parseInt(h(0x3e0,0x3d6))/0x6+-parseInt(h(0x3df,0x3d3))/0x7*(parseInt(h(0x3cd,0x3d4))/0x8)+-parseInt(h(0x3ed,0x3ee))/0x9*(-parseInt(h(0x3e1,0x3e1))/0xa)+-parseInt(h(0x3d5,0x3d9))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3c78c));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{AbstractPartOfProjectStoreMixin}from'../../store/mixin/AbstractPartOfProjectStoreMixin.js';import{AbstractPartOfProjectGenericMixin}from'../../AbstractPartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Model.js';import{isInstanceOf}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x9d;let f=c[d];return f;};return _enb(a,b);}class AbstractPartOfProjectModelMixin extends Mixin([AbstractPartOfProjectGenericMixin,_enc],a=>{function i(a,b){return _enb(a-0x5,b);}const b=a[i(0xac,0xbd)];class c extends a{[i(0xc5,0xd7)](d){let e=null;function j(a,b){return i(b- -0x2fe,a);}if(isInstanceOf(d,AbstractPartOfProjectStoreMixin)){const f=d[j(-0x231,-0x243)]();if(f&&!this[j(-0x24c,-0x243)]()){this[j(-0x22e,-0x23a)](f);e=f;}}b[j(-0x243,-0x239)][j(-0x25f,-0x250)](this,d);if(e&&!e[j(-0x254,-0x248)])this[j(-0x243,-0x253)]();}[i(0xa9,0xb4)](d,e=![]){b[k(0x46f,0x46f)][k(0x472,0x474)](this,d,e);const {project:f}=this;function k(a,b){return i(b-0x3c6,a);}const g=isInstanceOf(d,AbstractPartOfProjectStoreMixin)&&!d[k(0x46d,0x478)]&&f===(d[k(0x477,0x46a)]&&d[k(0x47f,0x489)]?d['masterStore'][k(0x49c,0x489)]:d[k(0x479,0x489)]);if(f&&!f[k(0x47c,0x487)]&&!f[k(0x48b,0x47c)]&&g){d[k(0x497,0x48d)]?.();this[k(0x475,0x46c)](e);this['setProject'](null);}if(g)this[k(0x48e,0x482)]=null;}[i(0xab,0x9e)](){}[i(0xa6,0xa4)](d=![]){}[i(0xbf,0xb2)](){function l(a,b){return i(b-0x2d5,a);}const d=this[l(0x3a0,0x395)]?.['find'](e=>isInstanceOf(e,AbstractPartOfProjectStoreMixin)&&!e[l(0x37d,0x37a)]&&!!e['getProject']());return d?.[l(0x38e,0x390)]();}async[i(0xc6,0xcb)](d,e,f){const g=this[m(0x1f8,0x1f2)](d,e,f);function m(a,b){return i(b-0x14f,a);}await this[m(0x225,0x212)]?.[m(0x205,0x208)]();return g;}async[i(0xb8,0xa5)](d){await this[n(0x381,0x38f)]?.['commitAsync']();function n(a,b){return i(b-0x2cc,a);}return this[n(0x395,0x389)](d);}get[i(0xb1,0xb7)](){const d=this[o(0x444,0x437)]();function o(a,b){return i(a-0x389,b);}return d?.[o(0x438,0x437)]||d?.[o(0x447,0x441)][o(0x440,0x44b)]||![];}}return c;}){}export{AbstractPartOfProjectModelMixin};function _ena(){const p=['getAsync','commitAsync','22zWlWXb','getProject','graph','get','stm','calculateProject','stores','isDestroying','27wZHWUm','project','setProject','joinStore','setAsync','untrackRecordFieldChanges','1000968xjTsVK','set','isChained','isChainedFromProject','leaveProject','7vqLUeW','2048120JlJijw','unjoinStore','1872828ZBaGGh','joinProject','prototype','7909968ZurbCJ','call','isRestoringData','230811SmAjGh','isStmRestoring','isFillingFromMaster','127635OLfyem','5wOvgvx','1410770jfCvve','isRepopulatingStores','isRestoring'];_ena=function(){return p;};return _ena();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(a,b){const c=a();function f(a,b){return _enb(a-0x2c3,b);}while(!![]){try{const d=-parseInt(f(0x468,0x45e))/0x1+parseInt(f(0x45d,0x460))/0x2+-parseInt(f(0x461,0x459))/0x3*(parseInt(f(0x471,0x465))/0x4)+-parseInt(f(0x470,0x46a))/0x5*(parseInt(f(0x469,0x473))/0x6)+-parseInt(f(0x463,0x45d))/0x7*(parseInt(f(0x465,0x45a))/0x8)+parseInt(f(0x45e,0x45c))/0x9*(-parseInt(f(0x46c,0x466))/0xa)+parseInt(f(0x46d,0x472))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc3093));function _ena(){const n=['isChainedFromProject','1730RdBAYq','30343324qiBexo','call','project','1285880olYdYi','4yNeZjP','removeEntity','getProject','_graph','2693754GaXbOu','7479ZTHebF','joinProject','graph','175578hWFOyk','leaveProject','7mClsVR','prototype','5812528vhphhR','getGraph','addEntity','1348935qlMSyp','24xUMfMW','delayEnteringReplica'];_ena=function(){return n;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x199;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ChronoModelMixin}from'../../../chrono/ChronoModelMixin.js';import{ChronoPartOfProjectGenericMixin}from'../../ChronoPartOfProjectGenericMixin.js';import{ChronoPartOfProjectStoreMixin}from'../../store/mixin/ChronoPartOfProjectStoreMixin.js';import{AbstractPartOfProjectModelMixin}from'./AbstractPartOfProjectModelMixin.js';import{isInstanceOf}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';class ChronoPartOfProjectModelMixin extends Mixin([AbstractPartOfProjectModelMixin,ChronoPartOfProjectGenericMixin,ChronoModelMixin],a=>{const b=a[g(0x48,0x52)];function g(a,b){return _enb(b- -0x14f,a);}class c extends a{[g(0x50,0x4d)](){function h(a,b){return g(a,b-0x49c);}if(!this['project']?.[h(0x4f1,0x4f4)]){if(this[h(0x4eb,0x4ea)]&&this[h(0x4e0,0x4ea)]!=this[h(0x4ec,0x4f0)]()){this['graph']=null;}this[h(0x4f3,0x4f0)]()[h(0x4ea,0x4f1)](this);}}[g(0x56,0x50)](d=![]){b['leaveProject'][i(0x4a1,0x4a8)](this,d);const e=this[i(0x49a,0x4a0)]();e?.[i(0x4aa,0x4ac)](this);function i(a,b){return g(a,b-0x44c);}this[i(0x48f,0x49a)]=null;}[g(0x6a,0x61)](){function j(a,b){return g(b,a-0x23b);}return b['getProject'][j(0x297,0x2a0)](this);}['calculateProject'](){function k(a,b){return g(a,b-0x42f);}const d=this['stores']?.['find'](e=>isInstanceOf(e,ChronoPartOfProjectStoreMixin)&&!e[k(0x493,0x488)]&&!!e[k(0x489,0x490)]());return d?.[k(0x48d,0x490)]();}get[g(0x53,0x4e)](){function l(a,b){return g(b,a- -0x1dc);}return this[l(-0x17f,-0x183)]?.[l(-0x184,-0x183)]?null:this['_graph'];}set[g(0x4a,0x4e)](d){function m(a,b){return g(a,b-0x3e);}this[m(0x8a,0x88)]=d;}}return c;}){}export{ChronoPartOfProjectModelMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function l(a,b){return _enb(
|
|
1
|
+
(function(a,b){const c=a();function l(a,b){return _enb(b- -0xb8,a);}while(!![]){try{const d=-parseInt(l(0x141,0x13f))/0x1+parseInt(l(0x128,0x12a))/0x2+-parseInt(l(0x126,0x139))/0x3*(parseInt(l(0x122,0x13d))/0x4)+-parseInt(l(0x142,0x148))/0x5+parseInt(l(0x130,0x125))/0x6*(-parseInt(l(0x141,0x132))/0x7)+parseInt(l(0x154,0x152))/0x8+parseInt(l(0x107,0x119))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xcf386));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(-0x7,0x7)](b,e):f,j;function m(a,b){return _enb(b- -0x200,a);}if(typeof Reflect==='object'&&typeof Reflect[m(-0x3b,-0x2b)]===m(0x2,-0x11))h=Reflect[m(-0x1b,-0x2b)](a,b,e,f);else for(var k=a[m(-0x25,-0x17)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(-0x2,-0x1d)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{generic_field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ModelBucketField,model_field}from'../../../chrono/ModelFieldAtom.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';import{AbstractCalendarMixin}from'../AbstractCalendarMixin.js';import{SchedulingIssueEffect,SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';function _ena(){const D=['2089950nIQUnm','defineProperty','every\x20weekday\x20at\x2013:00','on\x20Mon','getCalendar','addIntervals','calendarData','length','203ZDrgZI','every\x20weekday\x20at\x2017:00','BaseEmptyCalendarEffectResolution','dateFormat','usedBy','function','Empty','3572307ecOLBx','L{backwardDescriptionTpl}','on\x20Sat','NoForward','4PYvCso','L{forwardDescriptionTpl}','387215vTodBg','Use24hrsEmptyCalendarEffectResolution','_resolutions','$name','L{noIntersectionDescriptionTpl}','fixCalendarData','getDescription','format','EmptyCalendarEffectDescription','3810540TCXsQq','project','skipNonWorkingTime','name','getInvalidCalendar','new','Use8hrsEmptyCalendarEffectResolution','getOwnPropertyDescriptor','LLL','boolean','3400976oicxac','EmptyCalendarSymbol','16126902pGYPEj','resolve','configurable','prototype','decorate','touch','intervals','calendars','NoBackward','emptyCalendar','_descriptionBuilderClass','getResolutions','15126OKTdvR','type','version','L{descriptionTpl}','handler'];_ena=function(){return D;};return _ena();}import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import _end from'@bryntum/core-thin/lib/Base.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import{format}from'../../../util/Functions.js';import _ene from'@bryntum/core-thin/lib/helper/DateHelper.js';function _enn(a,b){return _enb(b-0x1ad,a);}const EmptyCalendarSymbol=Symbol(_enn(0x387,0x37d));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d0;let f=c[d];return f;};return _enb(a,b);}var CalendarAvailabilityIssue;(function(a){a['Empty']=o(0x2ed,0x2e1);function o(a,b){return _enn(a,b- -0xbc);}a[o(0x2e8,0x2e5)]='NoForward';a[o(0x2ac,0x2ca)]=o(0x2b3,0x2ca);}(CalendarAvailabilityIssue||(CalendarAvailabilityIssue={})));class BaseCalendarMixin extends Mixin([AbstractCalendarMixin,ChronoPartOfProjectModelMixin],a=>{class b extends a{constructor(){function p(a,b){return _enb(b- -0x43,a);}super(...arguments);this[p(0x19c,0x19c)]=0x1;}['leaveProject'](){this[q(-0x17a,-0x177)]?.['clearCombinationsWith'](this);const {graph:c}=this;function q(a,b){return _enb(b- -0x378,a);}if(c?.['hasIdentifier'](this['$'][q(-0x189,-0x18a)])){const {usedBy:d}=this;if(d){const {activeTransaction:e}=c;for(const f of d){e[q(-0x190,-0x1a2)](f['$']['calendar']);}}}super['leaveProject']();}}function r(a,b){return _enn(b,a- -0x32e);}__decorate([model_field({},{'persistent':![]})],b[r(0x53,0x59)],r(0x5e,0x47),void 0x0);__decorate([model_field({'type':r(0x88,0x83),'defaultValue':!![]})],b['prototype'],'unspecifiedTimeIsWorking',void 0x0);__decorate([model_field()],b[r(0x53,0x6a)],r(0x56,0x72),void 0x0);__decorate([generic_field({},ModelBucketField)],b['prototype'],r(0x6d,0x74),void 0x0);return b;}){}class EmptyCalendarEffectDescription extends _enc(_end){static get[_enn(0x398,0x39a)](){function s(a,b){return _enn(b,a-0x64);}return s(0x419,0x40d);}static[_enn(0x392,0x3aa)](a){function t(a,b){return _enn(a,b- -0xc);}let b=t(0x36a,0x381);let c;const d=a[t(0x3ab,0x3a5)]();if(d){c=d[0x0];if(d[0x1]!==CalendarAvailabilityIssue[t(0x39f,0x391)]){b=a['isForward']?t(0x39a,0x397):t(0x395,0x393);}}else{b=t(0x39d,0x39c);c=a[t(0x37e,0x379)][0x0];}return format(this['L'](b),c['name']||c['id'],_ene[t(0x3b3,0x39f)](a['date'],this[t(0x3a8,0x38e)]),a['event'][t(0x3b4,0x3a4)]);}}EmptyCalendarEffectDescription[_enn(0x3b7,0x3a7)]=_enn(0x3ab,0x3ac);class EmptyCalendarEffect extends SchedulingIssueEffect{constructor(){function u(a,b){return _enn(b,a-0x9d);}super(...arguments);this[u(0x42b,0x42f)]=EmptyCalendarSymbol;}[_enn(0x38e,0x389)](){const a=this[v(0x404,0x3ea)]();function v(a,b){return _enn(a,b-0x57);}return this['_resolutions']||(this[v(0x3e0,0x3fd)]=[Use24hrsEmptyCalendarEffectResolution[v(0x3ff,0x409)]({'calendar':a}),Use8hrsEmptyCalendarEffectResolution['new']({'calendar':a})]);}[_enn(0x3af,0x393)](){function w(a,b){return _enn(b,a- -0x4cd);}const a=this[w(-0x11c,-0x10e)]();return a?a[0x0]:this[w(-0x148,-0x143)][0x0];}[_enn(0x3ce,0x3b1)](){function x(a,b){return _enn(a,b- -0x290);}const {calendars:a,date:b,isForward:c}=this;for(const d of a){const e=d[x(0x126,0x11f)](b,![]);const f=d[x(0x101,0x11f)](b,!![]);if(c){if(!(f instanceof Date)){return[d,e instanceof Date?CalendarAvailabilityIssue[x(0x12d,0x111)]:CalendarAvailabilityIssue[x(0x129,0x10d)]];}}else{if(!(e instanceof Date)){return[d,f instanceof Date?CalendarAvailabilityIssue[x(0xef,0xf6)]:CalendarAvailabilityIssue[x(0x104,0x10d)]];}}}}}__decorate([prototypeValue(_enn(0x39a,0x387))],EmptyCalendarEffect['prototype'],_enn(0x398,0x38b),void 0x0);__decorate([prototypeValue(EmptyCalendarEffectDescription)],EmptyCalendarEffect[_enn(0x39a,0x381)],_enn(0x38f,0x388),void 0x0);class BaseEmptyCalendarEffectResolution extends _enc(SchedulingIssueEffectResolution){static get[_enn(0x37c,0x380)](){return{'calendarData':{'intervals':[{'isWorking':!![]}]}};}[_enn(0x3a6,0x3aa)](){const {calendar:a}=this;function y(a,b){return _enn(a,b- -0x545);}return format(this['L'](y(-0x1a8,-0x1b8)),a[y(-0x185,-0x195)]||a['id']);}[_enn(0x3b4,0x3a9)](a){a['clearIntervals'](!![]);function z(a,b){return _enn(a,b- -0x552);}Object['assign'](a,this[z(-0x1cc,-0x1bd)]);if(a[z(-0x1e1,-0x1ce)]?.[z(-0x1b3,-0x1bc)]){a[z(-0x1cf,-0x1be)](a[z(-0x1ba,-0x1ce)]);}}[_enn(0x36f,0x37f)](){function A(a,b){return _enn(b,a- -0x3c9);}const {calendar:a}=this;this[A(-0x20,-0x3)](a);}}BaseEmptyCalendarEffectResolution['$name']=_enn(0x397,0x399);class Use24hrsEmptyCalendarEffectResolution extends BaseEmptyCalendarEffectResolution{static get[_enn(0x38a,0x380)](){function B(a,b){return _enn(a,b- -0x111);}return{'calendarData':{'unspecifiedTimeIsWorking':![],'intervals':[{'recurrentStartDate':B(0x283,0x281),'recurrentEndDate':B(0x275,0x28f),'isWorking':!![]}]}};}}Use24hrsEmptyCalendarEffectResolution[_enn(0x3b3,0x3a7)]=_enn(0x3bb,0x3a5);class Use8hrsEmptyCalendarEffectResolution extends BaseEmptyCalendarEffectResolution{static get[_enn(0x36b,0x380)](){function C(a,b){return _enn(a,b- -0x3e0);}return{'calendarData':{'unspecifiedTimeIsWorking':![],'intervals':[{'recurrentStartDate':'every\x20weekday\x20at\x2008:00','recurrentEndDate':'every\x20weekday\x20at\x2012:00','isWorking':!![]},{'recurrentStartDate':C(-0x4a,-0x4f),'recurrentEndDate':C(-0x63,-0x48),'isWorking':!![]}]}};}}Use8hrsEmptyCalendarEffectResolution[_enn(0x3bd,0x3a7)]=_enn(0x395,0x3b3);export{BaseCalendarMixin,BaseEmptyCalendarEffectResolution,CalendarAvailabilityIssue,EmptyCalendarEffect,EmptyCalendarEffectDescription,EmptyCalendarSymbol,Use24hrsEmptyCalendarEffectResolution,Use8hrsEmptyCalendarEffectResolution};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(b-0x28,a);}const c=a();while(!![]){try{const d=parseInt(l(0x136,0x123))/0x1+parseInt(l(0x159,0x141))/0x2*(parseInt(l(0x119,0x128))/0x3)+-parseInt(l(0x13d,0x125))/0x4+parseInt(l(0x137,0x129))/0x5+parseInt(l(0x141,0x143))/0x6+parseInt(l(0x135,0x140))/0x7*(-parseInt(l(0x140,0x14d))/0x8)+parseInt(l(0x13e,0x12f))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x33c2b));var __decorate=function(a,b,e,f){var g=arguments[m(-0x16b,-0x169)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function m(a,b){return _enb(a- -0x277,b);}if(typeof Reflect==='object'&&typeof Reflect['decorate']===m(-0x14d,-0x136))h=Reflect[m(-0x16e,-0x16e)](a,b,e,f);else for(var k=a[m(-0x16b,-0x158)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(-0x14f,-0x13f)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field,generic_field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xfb;let f=c[d];return f;};return _enb(a,b);}function _ena(){const A=['map','writeCalendar','versionsHash','292662bOmPoE','shouldRecordFieldChange','decorate','includes','internalId','length','No\x20calendars\x20to\x20combine','add','effectiveCalendar','cache','calculateEffectiveDataOrVisualCalendar','get','combinedCalendarsCache','visual','calendar','getProject','forEach','1967PTtFvm','2tBBajb','constructor','1687194PNEEHh','calendarCache','delete','set','version','getById','call','prototype','write','usedBy','10072emiHLc','join','sort','defineProperty','effectiveVisualCalendar','function','335278uXkgGS','combinationsByCalendar','1684968cnYpAt','calendarCaches','resolveCalendar','777066QcBswy','395075uZRxhh','calculateEffectiveCalendar','clearCombinationsWith'];_ena=function(){return A;};return _ena();}import{CalendarCacheMultiple}from'../../../calendar/CalendarCacheMultiple.js';import{injectStaticFieldsProperty,isSerializableEqual,ModelReferenceField}from'../../../chrono/ModelFieldAtom.js';import{stripDuplicates}from'../../../util/StripDuplicates.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';import{BaseCalendarMixin}from'./BaseCalendarMixin.js';class HasCalendarMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{class b extends a{[n(0x3f1,0x3ed)](c,d,e,f){const g=this['getCalendarManagerStore']();const h=f;if(f&&g&&f instanceof BaseCalendarMixin&&!g[o(0xa7,0xbd)](h)){g[o(0xb8,0xc1)](h);}function o(a,b){return n(a,b- -0x335);}c[o(0xb7,0xcd)][o(0xeb,0xd5)][o(0xde,0xd6)][o(0xcb,0xd4)](this,c,d,e,f);}[n(0x3d4,0x3e7)](c){function p(a,b){return n(a,b- -0x234);}return this['getCalendarManagerStore']()?.[p(0x1e2,0x1d4)](c);}*['calculateEffectiveDataOrVisualCalendar'](c){let d=yield this['$'][q(-0x22e,-0x221)];function q(a,b){return n(a,b- -0x61e);}if(!d){const e=this[q(-0x20e,-0x220)]();d=yield e['$'][q(-0x216,-0x227)];}yield d['$'][q(-0x22a,-0x217)];return d;}*[n(0x3de,0x3ea)](){function r(a,b){return n(b,a- -0x57a);}return yield*this[r(-0x181,-0x17e)]('data');}*['calculateEffectiveVisualCalendar'](){function s(a,b){return n(a,b- -0x30);}return yield*this['calculateEffectiveDataOrVisualCalendar'](s(0x3b5,0x3cc));}[n(0x3fb,0x3f0)](c,d,e){function t(a,b){return n(b,a- -0x323);}if(!super[t(0xcd,0xcb)](c,d,e)){return![];}const {project:f}=this;if(c===t(0xda,0xce)&&f){const {calendarManagerStore:g}=f;return g['oldIdMap'][d]!==g['getById'](e);}return!![];}}__decorate([field({'equality':()=>![]})],b[n(0x3fa,0x40a)],'effectiveCalendar',void 0x0);__decorate([field({'equality':()=>![]})],b[n(0x410,0x40a)],n(0x403,0x411),void 0x0);__decorate([generic_field({'bucket':n(0x40c,0x40c),'modelFieldConfig':{'persist':!![],'serialize':c=>c==null?null:c?.['id']??null,'isEqual':isSerializableEqual,'defaultValue':null},'resolver':function(c){return this['resolveCalendar'](c);},'sync':!![]},ModelReferenceField)],b[n(0x415,0x40a)],n(0x3ec,0x3fd),void 0x0);__decorate([write(n(0x3e6,0x3fd))],b[n(0x403,0x40a)],'writeCalendar',null);__decorate([calculate(n(0x3ff,0x3f7))],b[n(0x3f4,0x40a)],n(0x3fc,0x3ea),null);function n(a,b){return _enb(b-0x2e8,a);}__decorate([calculate(n(0x404,0x411))],b[n(0x414,0x40a)],'calculateEffectiveVisualCalendar',null);injectStaticFieldsProperty(b);return b;}){}class CanCombineCalendarsMixin extends Mixin([],a=>{function y(a,b){return _enb(a- -0x13a,b);}class b extends a{constructor(){super(...arguments);function u(a,b){return _enb(b- -0x3d,a);}this[u(0xeb,0xd6)]=new Map();this[u(0xae,0xbf)]=new Map();}['combineCalendars'](c){const d=stripDuplicates(c);if(d[v(0x4de,0x4c7)]===0x0)throw new Error(v(0x4cf,0x4c8));d[v(0x4f9,0x4e2)]((i,j)=>{function w(a,b){return v(a,b- -0x40f);}if(i[w(0xa4,0xb7)]<j[w(0xa5,0xb7)])return-0x1;else return 0x1;});function v(a,b){return _enb(b-0x3bb,a);}const e=d['map'](i=>i[v(0x4bd,0x4c6)]+'/')[v(0x4ea,0x4e1)]('');const f=d[v(0x4bb,0x4bf)](i=>i[v(0x4e0,0x4da)]+'/')[v(0x4f9,0x4e1)]('');const g=this[v(0x4d7,0x4ce)]['get'](e);let h;if(g&&g[v(0x4be,0x4c1)]===f)h=g[v(0x4d0,0x4cb)];else{h=new CalendarCacheMultiple({'calendarCaches':d[v(0x4a9,0x4bf)](i=>i[v(0x4d5,0x4d7)])});this[v(0x4c2,0x4ce)][v(0x4ec,0x4d9)](e,{'versionsHash':f,'cache':h});d[v(0x4c4,0x4d2)](i=>{function x(a,b){return v(b,a- -0x3c0);}let j=this['combinationsByCalendar'][x(0x10d,0x103)](i);if(!j){j=new Set();this[x(0xf7,0xe2)]['set'](i,j);}j[x(0x109,0x121)](e);});}return h;}[y(-0x37,-0x4c)](c){const d=this[z(0x4c,0x3b)][z(0x62,0x78)](c);function z(a,b){return y(a-0x8a,b);}if(d){for(const e of d){for(const f of this[z(0x63,0x74)][z(0x62,0x70)](e)[z(0x60,0x69)][z(0x4e,0x44)]){const g=this[z(0x4c,0x58)][z(0x62,0x6f)](f['calendar']);g['delete'](e);}this[z(0x63,0x5a)][z(0x6d,0x71)](e);}this[z(0x4c,0x3f)][z(0x6d,0x7d)](c);}}}return b;}){}export{CanCombineCalendarsMixin,HasCalendarMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function o(a,b){return _enb(b-0x167,a);}while(!![]){try{const d=parseInt(o(0x421,0x39f))/0x1+-parseInt(o(0x350,0x3b6))/0x2+parseInt(o(0x342,0x370))/0x3*(parseInt(o(0x2f8,0x340))/0x4)+parseInt(o(0x3b5,0x353))/0x5+parseInt(o(0x2fe,0x316))/0x6+-parseInt(o(0x357,0x3bb))/0x7*(-parseInt(o(0x2e5,0x2e9))/0x8)+-parseInt(o(0x390,0x37c))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2a92c));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[p(0x4c0,0x450)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[p(0x4e1,0x48e)]===p(0x4f5,0x4ce))h=Reflect['decorate'](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function p(a,b){return _enb(b-0x273,a);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{MixinAny}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _ena(){const ax=['33135nRzjuA','addEvent','applyConfigs','setupTemporaryIndices','scheduleDelayedCalculation','isShadow','trigger','addStore','onSTMRestoringStart','queue','skipNonWorkingTimeWhenSchedulingManually','unjoinRecordsFromProject','4105503TqopNU','add','removeStore','getDefaultCycleEffectClass','_stmDisabled','rejectedWith','decorate','getDefaultCalendarModelClass','identifier','isRepopulatingStores','rootNode','hasDataInStores','setCalendarManagerStore','undo','isInitialCommitPerformed','repopulateStores','usingSyncDataOnLoad','isCommitting','unlink','resourceStoreChange','calendarsData','resources','hasChangesInStores','silenceInitialCommit','totalCount','resetQueue','enableProgressNotifications','font-weight:bold;color:darkgreen;text-transform:uppercase;margin-top:\x202em','string','onCommitInitialization','joinProject','count','initializeStm','stateRestoringDone','getGraph','144730kenUst','time','resourceStore','getReplicaConfig','suspendFilterOnUpdate','refresh','resumeChangeTracking','getDefaultDependencyStoreClass','revisionsEnabled','removeIndex','detachStore','getLatestStableEntryFor','endBatch','afterResourceRemoval','internalDelayCalculation','self','destroy','dependencies','excludeEvent','storeClass','beginBatch','construct','set','32614zqornz','expanded','eventsData','version','acceptChanges','9989MDJvQQ','delayCalculationEnd','delayedCalculationPromise','getDefaultDependencyModelClass','dependencyStoreChange','previous','storage','function','deferUntilRepopulationIfNeeded','handleSTMRestoringStop','onSTMRestoringStop','stop','disable','startTransaction','addIndex','prototype','tryPropagateWithChanges','warn','ignoreInitialCommitComputationCycles','includeEvent','subEventsIterable','getById','activeTransaction','_queue','push','doDestroy','SchedulerBasic','data','getDefaultEventModelClass','calendarManagerStoreChange','addEntity','calendarManagerStore','applyProjectResponse','getRange','boolean','values','log','enable','size','hasChanges','now','_isCommittingAfterStmRestore','dependencyModelClass','CurrentOrProposedOrPrevious','graphReady','getDefaultResourceModelClass','clear','generateId','unScheduleAutoCommit','setDependencyStore','88BSMyvK','calendarModelClass','length','createReplica','calculateProject','attachStore','dependenciesData','_stmRestoringInProgress','replica','resourcesData','resource','dataPropertyDeprecation','hasStore','setEventStore','unlinkStoreRecords','setResourceStore','traverse','repopulateReplica','Time\x20to\x20visible','assignmentsForRemoval','cycleEffectClass','getDefaultAssignmentModelClass','events','redo','_stmAutoRecord','beforeCommitAsync','disabled','isDelayingCalculation','addEvents','commitAsync','isRecording','eventStore','reject','Populating\x20project','suspendChangeTracking','syncDataOnLoad','commitLoad','delete','Forward','defaultCalendar','some','stmClass','has','appendChild','stm','791652TtgMLv','delayCalculation','sort','DEBUG','ion','resourceModelClass','unspecifiedTimeIsWorking','setAssignmentStore','calendars','recordsUnlinked','rejectStmTransaction','removeRejectedRecordsAdd','resourceStoreClass','tryPropagateWithChangesQueued','getEventStore','query','ignore','isEngineReady','eventStoreClass','dependencyStore','test','isLoadingInlineData','assignmentsData','setProject','forEachStore','delayCalculationStart','timeEnd','delayable','loadInlineData','resetStmQueue','_enableProgressNotifications','Project\x20\x22ignoreInitialCommitComputationCycles\x22\x20option\x20is\x20deprecated\x20and\x20will\x20be\x20dropped\x20in\x20the\x20next\x20major\x20release','writeFailedResolutionInfo','stopTransaction','get','unlinkCalendarConsumers','dataStores','storePopulation','calendarManagerStoreClass','detachListeners','removalOrder','joinRecordsToProject','20uuwbNC','call','assign','children','getOwnPropertyDescriptor','autoRecord','tree','tasksData','getDefaultCalendarManagerStoreClass','eventStoreChange','tasks','isRestoringData','getDefaultResourceStoreClass','event','dependencyStoreClass','onCommitRejection','entries','invalidateTemporaryIndices','onPropagationProgressNotification','1496300VNuSQO','new','calendar','remove','getCalendarConsumers','transaction','isWritingPreviousData','forEach','enterReplica','%cInitializing\x20project','eventModelClass','hasPendingAutoCommit','isDestroyed','unlinkRecord','getDefaultEventStoreClass','assignmentStore','delayEnteringReplica','setStm','isValidDependency','assignmentModelClass','afterEventRemoval','then','repopulateStore','assignmentStoreClass','graph','removeTemporaryIndices','getDefaultAssignmentStoreClass','await','firstStore'];_ena=function(){return ax;};return _ena();}import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Schema}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Schema.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x165;let f=c[d];return f;};return _enb(a,b);}import{delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/data/stm/StateTrackingManager.js';import _end from'@bryntum/core-thin/lib/data/Store.js';import _ene from'@bryntum/core-thin/lib/helper/IdHelper.js';import _enf from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{IsChronoModelSymbol,model_field,ModelBucketField}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect,EngineReplica}from'../../../chrono/Replica.js';import{DurationConverterMixin}from'../../../scheduling/DurationConverterMixin.js';import{Direction,ProjectType}from'../../../scheduling/Types.js';import _eng from'../../../util/Queue.js';import{ChronoAssignmentStoreMixin}from'../../store/ChronoAssignmentStoreMixin.js';import{ChronoCalendarManagerStoreMixin}from'../../store/ChronoCalendarManagerStoreMixin.js';import{ChronoDependencyStoreMixin}from'../../store/ChronoDependencyStoreMixin.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{ChronoResourceStoreMixin}from'../../store/ChronoResourceStoreMixin.js';import{BaseAssignmentMixin}from'./BaseAssignmentMixin.js';import{BaseCalendarMixin}from'./BaseCalendarMixin.js';import{BaseDependencyMixin}from'./BaseDependencyMixin.js';import{BaseEventMixin}from'./BaseEventMixin.js';import{BaseResourceMixin}from'./BaseResourceMixin.js';import{ChronoAbstractProjectMixin}from'./ChronoAbstractProjectMixin.js';import{CanCombineCalendarsMixin,HasCalendarMixin}from'./HasCalendarMixin.js';import{SchedulerBasicEvent}from'./SchedulerBasicEvent.js';import{HasChildrenMixin}from'./HasChildrenMixin.js';class SchedulerBasicProjectMixin extends MixinAny([ChronoAbstractProjectMixin,BaseEventMixin,HasChildrenMixin,HasCalendarMixin,DurationConverterMixin,CanCombineCalendarsMixin],a=>{const b=a[q(0x240,0x2bf)];class c extends a{[q(0x22a,0x1aa)](d={}){d[r(0x10e,0x96)]=d['delayCalculation']!==![];d['enableProgressNotifications']=d[r(0x18d,0x141)]||d[r(0x10e,0x12a)]!==![];function r(a,b){return q(a- -0x7f,b);}this[r(0xc5,0x108)]=new _eng(_ene[r(0xdd,0xf0)]('ProjectModelQueue'));if(!(r(0x1ae,0x20c)in d)){d['expanded']=!![];}if(d[r(0x10e,0xf8)]){this[r(0x15a,0x13d)]=!![];}if(!(r(0x171,0x156)in d)){d[r(0x171,0x107)]=![];}const {events:e,dependencies:f,resources:g,assignments:h,calendars:i}=d;delete d[r(0xf6,0xec)];delete d['dependencies'];delete d['resources'];delete d['assignments'];delete d[r(0x115,0x17d)];b[r(0x1ab,0x14d)][r(0x138,0xe2)](this,d);this[r(0x182,0x1cd)]=new Set();this['ignoreInitialCommitComputationCycles']='ignoreInitialCommitComputationCycles'in d?d[r(0x1c4,0x1c3)]:![];if(this[r(0x1c4,0x148)]){console[r(0x1c3,0x21d)](r(0x12c,0x1a5));}if(!this[r(0x154,0xd8)])this['eventModelClass']=this[r(0xca,0xef)]();if(!this[r(0x11f,0x12a)])this[r(0x11f,0xb6)]=this[r(0x158,0x16f)]();if(!this[r(0xd8,0x13a)])this[r(0xd8,0x121)]=this[r(0x1b5,0x1af)]();if(!this[r(0x145,0xc4)])this[r(0x145,0x1a3)]=this[r(0x19d,0x182)]();if(!this[r(0x112,0x11c)])this['resourceModelClass']=this[r(0xdb,0xa6)]();if(!this[r(0x119,0x154)])this[r(0x119,0xe6)]=this[r(0x143,0x1a8)]();if(!this[r(0x15d,0x1d4)])this[r(0x15d,0x112)]=this[r(0xf5,0x113)]();if(!this[r(0x161,0x139)])this['assignmentStoreClass']=this[r(0x164,0x15d)]();if(!this[r(0xe1,0x15a)])this[r(0xe1,0x130)]=this[r(0x17a,0x174)]();if(!this[r(0x133,0x142)])this[r(0x133,0x151)]=this[r(0x13f,0x10c)]();if(!this[r(0xf4,0x159)])this[r(0xf4,0x164)]=this[r(0x176,0x14a)]();this[r(0x193,0x1ac)]();this['defaultCalendar']=new this['calendarModelClass']({'name':'Default','unspecifiedTimeIsWorking':this['unspecifiedTimeIsWorking']});this[r(0x107,0x8d)]['project']=this;if(!this[r(0x15a,0xff)])this[r(0x152,0x149)](![]);this[r(0x17f,0x106)](this[r(0xcd,0x66)]);this[r(0xed,0xcd)](this['eventStore']);this[r(0xdf,0xc9)](this[r(0x120,0x19a)]);this['setResourceStore'](this['resourceStore']);this[r(0x114,0xb3)](this[r(0x159,0x123)]);const j=Boolean(this[r(0x187,0x19a)]||this[r(0x1af,0x1ee)]||this['dependenciesData']||this[r(0xe9,0xa5)]||this[r(0x123,0xc8)]||i||e||f||g||h);if(j){this['loadInlineData']({'calendarsData':this['calendarsData'],'eventsData':this[r(0x1af,0x175)],'dependenciesData':this['dependenciesData'],'resourcesData':this[r(0xe9,0xaa)],'assignmentsData':this[r(0x123,0xfa)],'calendars':i,'events':e,'dependencies':f,'resources':g,'assignments':h});delete this[r(0x187,0x168)];delete this['eventsData'];delete this[r(0xe6,0xfc)];delete this[r(0xe9,0x110)];delete this[r(0x123,0xd2)];}else{if(this[r(0x10e,0x11e)]&&this[r(0x17e,0x119)])this[r(0x16b,0x1d5)]();}}get[q(0x1b0,0x206)](){function s(a,b){return q(b- -0x25d,a);}return[this[s(-0xe1,-0x111)],this[s(-0x5f,-0x46)],this[s(-0x14a,-0xdf)],this['dependencyStore'],this[s(-0x69,-0x85)]];}get[q(0x1fd,0x22f)](){function t(a,b){return q(b-0x2bd,a);}return this['dataStores'][t(0x41e,0x444)](d=>d[t(0x4de,0x4c7)]>0x0);}get[q(0x208,0x1da)](){function u(a,b){return q(a-0xfb,b);}return this[u(0x2ab,0x285)]['some'](d=>d[u(0x24f,0x277)]);}[q(0x1d1,0x1a4)](d){const e=this;if(!e[v(0x24a,0x2bf)]){e[v(0x2b7,0x2bf)]=e[v(0x300,0x2ba)]();e[v(0x317,0x2bf)][v(0x27e,0x2a3)](e);e[v(0x2b0,0x2bf)][v(0x27a,0x2a3)](e[v(0x2b0,0x2de)]);e[v(0x2f3,0x344)](v(0x28f,0x2b1));}function v(a,b){return q(b-0x158,a);}if(d&&!e[v(0x2eb,0x353)]){e[v(0x2ee,0x308)][v(0x348,0x328)](f=>{function w(a,b){return v(a,b-0x6d);}f[w(0x36f,0x395)](g=>{function x(a,b){return w(b,a- -0x34f);}!g[x(0x57,-0x1e)]&&g[x(0x86,0x36)]();},void 0x0,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});});}}[q(0x1a9,0x181)](){const d=this[y(0xe2,0x13b)]['disabled'];function y(a,b){return q(a- -0xa9,b);}this[y(0xe2,0x84)][y(0x194,0x1e5)]();this[y(0xe2,0x149)][y(0x162,0x10d)]();if(!d){this['stm'][y(0xa9,0xe1)]();}}[q(0x146,0xf3)](){const d=this;function z(a,b){return q(b-0x388,a);}d['dataStores'][z(0x507,0x558)](e=>e?.[z(0x578,0x5ad)]());d[z(0x4a5,0x50e)]?.['destroy']();d[z(0x53e,0x4ef)]?.[z(0x53b,0x4e3)]();d['stm']?.['destroy']();b[z(0x4f2,0x4ce)][z(0x5af,0x53f)](this);}[q(0x218,0x26f)](){function A(a,b){return q(a- -0x2d1,b);}return{'project':this,'schema':Schema[A(-0x107,-0xa6)](),'enableProgressNotifications':this[A(-0xc5,-0x5b)],'silenceInitialCommit':this[A(-0xc8,-0x74)],'preventSilencingOnIssueResolve':this['preventSilencingOnIssueResolve'],'ignoreInitialCommitComputationCycles':this[A(-0x8e,-0x87)],'cycleEffectClass':this[A(-0x15e,-0x1ca)],'onWriteDuringCommit':A(-0x135,-0xcc),'readMode':ReadMode[A(-0x179,-0xf9)]};}[q(0x162,0x133)](){function B(a,b){return q(a- -0x304,b);}return EngineReplica[B(-0x13a,-0x1b0)](this['getReplicaConfig']());}*['hasSubEvents'](){function C(a,b){return q(a-0x77,b);}return this[C(0x211,0x1b9)]()[C(0x288,0x2b5)]>0x0;}*[q(0x245,0x28d)](){function D(a,b){return q(a- -0xed,b);}return this[D(0xad,0x7d)]()[D(0x61,0x56)]();}['getType'](){function E(a,b){return q(b- -0x340,a);}return ProjectType[E(-0x258,-0x1f9)];}get['enableProgressNotifications'](){return this['_enableProgressNotifications'];}set['enableProgressNotifications'](d){function F(a,b){return q(a- -0x2d0,b);}this[F(-0x126,-0xbc)]=d;if(this[F(-0x169,-0x1c6)])this[F(-0x169,-0x1c9)][F(-0xc4,-0x125)]=d;}[q(0x1f5,0x1e2)](){return CycleEffect;}[q(0x149,0x1bb)](){return SchedulerBasicEvent;}[q(0x1d7,0x1be)](){return ChronoEventStoreMixin;}[q(0x234,0x222)](){return BaseDependencyMixin;}[q(0x21c,0x1cc)](){return ChronoDependencyStoreMixin;}[q(0x15a,0x184)](){return BaseResourceMixin;}[q(0x1c2,0x1b8)](){return ChronoResourceStoreMixin;}['getDefaultAssignmentModelClass'](){return BaseAssignmentMixin;}[q(0x1e3,0x24f)](){return ChronoAssignmentStoreMixin;}[q(0x1f9,0x256)](){return BaseCalendarMixin;}[q(0x1be,0x212)](){return ChronoCalendarManagerStoreMixin;}['usingSyncDataOnLoad'](){function G(a,b){return q(a- -0x18d,b);}return[this[G(-0xf,0x50)],this[G(0x8a,0x4f)],this[G(0x12,0x2d)],this['assignmentStore']]['some'](d=>d[G(-0xb,-0x7)]);}async[q(0x1a8,0x1bb)](d){function H(a,b){return q(a- -0x349,b);}const {calendarManagerStore:e,eventStore:f,dependencyStore:g,assignmentStore:h,resourceStore:i,replica:j}=this;this[H(-0x1df,-0x1fe)]?.(d||{});if(!this['isInitialCommitPerformed']){j?.[H(-0x1ec,-0x1f1)]();}else{while(j?.['isCommitting']){await this[H(-0x1cd,-0x15e)]();}}if(j?.[H(-0x13d,-0x150)]&&!this['delayCalculation']){await delay(0x0);await this[H(-0x1cd,-0x1f2)]();j[H(-0x181,-0x156)]({'total':0x0,'remaining':0x0,'phase':H(-0x198,-0x181)});await delay(0x32);}this[H(-0x149,-0x161)]=![];this[H(-0x1a8,-0x216)]=!![];if(globalThis[H(-0x1ba,-0x1bc)]){console[H(-0x1f8,-0x1e9)](H(-0x177,-0x1a6),H(-0x13c,-0xc5));console[H(-0x133,-0x143)](H(-0x1d8,-0x1ad));console[H(-0x133,-0x17a)]('Populating\x20project');}if(this['delayCalculation']&&!this['delayedCalculationPromise']&&!this[H(-0x147,-0x173)]()){this['scheduleDelayedCalculation']();}if(d[H(-0x1b5,-0x1d6)]||d[H(-0x143,-0x163)]){this[H(-0x16a,-0x18e)](e);e[H(-0x201,-0x23a)]=d[H(-0x1b5,-0x1e0)]||d['calendarsData'];}if(d[H(-0x1d4,-0x223)]||d[H(-0x189,-0x1be)]||d[H(-0x11b,-0x11a)]||d[H(-0x18c,-0x1d3)]){this[H(-0x16a,-0x177)](f);f[H(-0x201,-0x19a)]=d[H(-0x1d4,-0x1f3)]||d[H(-0x189,-0x108)]||d[H(-0x11b,-0x105)]||d[H(-0x18c,-0x1eb)];}if(d['dependencies']||d[H(-0x1e4,-0x255)]){this[H(-0x16a,-0x1a6)](g);g[H(-0x201,-0x267)]=d[H(-0x123,-0xb3)]||d[H(-0x1e4,-0x22f)];}if(d[H(-0x142,-0x18b)]||d[H(-0x1e1,-0x25a)]){this[H(-0x16a,-0x1c5)](i);i[H(-0x201,-0x23b)]=d[H(-0x142,-0x109)]||d[H(-0x1e1,-0x224)];}if(d['assignments']||d[H(-0x1a7,-0x129)]){this[H(-0x16a,-0x1e8)](h);h[H(-0x201,-0x248)]=d['assignments']||d[H(-0x1a7,-0x1ad)];}if(d['project']){if(this[H(-0x170,-0x1d2)]&&this[H(-0x14c,-0x177)]){this[H(-0x1b9,-0x20f)]({'recordsUnlinked':()=>{this[I(0x52d,0x526)]();this[I(0x4f9,0x4c9)](d['project']);function I(a,b){return H(a-0x6f5,b);}this[I(0x5c7,0x5fb)]();},'once':!![]});}else{this[H(-0x1fc,-0x1d7)](d['project']);}}if(globalThis[H(-0x1ba,-0x210)])console[H(-0x1a3,-0x1c6)](H(-0x1c9,-0x19a));const k=await this[H(-0x1c6,-0x1f9)]();this[H(-0x1a8,-0x1ea)]=![];return k;}[q(0x1e9,0x223)](){function J(a,b){return q(b-0x38e,a);}const {storage:d}=this['assignmentStore']||{};if(d){d[J(0x5f3,0x5cd)]({'property':J(0x540,0x551),'unique':![]});d[J(0x59b,0x5cd)]({'property':J(0x4e1,0x4f7),'unique':![]});}}[q(0x1c7,0x1ed)](){function K(a,b){return q(b-0x3fd,a);}this[K(0x625,0x5d5)]?.[K(0x5dc,0x634)]?.['invalidateIndices']();}['removeTemporaryIndices'](){const {storage:d}=this[L(0x372,0x3da)];d[L(0x3e5,0x420)](L(0x3af,0x3c5));function L(a,b){return q(b-0x202,a);}d[L(0x484,0x420)](L(0x362,0x36b));}async[q(0x223,0x1b7)](d){const e=this;e[M(-0xc8,-0xef)]=!![];e[M(-0xb8,-0x111)]();function M(a,b){return q(a- -0x2a1,b);}await delay(0x0);if(e[M(-0xcc,-0x13b)]){d();return;}e[M(-0xb5,-0x66)](M(-0xfc,-0x138));e['trigger'](M(-0x87,-0x92),{'isCalculated':![]});await delay(0x0);if(e[M(-0xcc,-0x56)]){d();return;}e[M(-0xc8,-0x13e)]=![];e[M(-0xf1,-0x125)]['forEach'](g=>g[M(-0x88,-0x9c)]());if(e['isRepopulatingStores']){e[M(-0x131,-0xde)][M(-0x14c,-0xeb)]();}else{e['trigger'](M(-0x10c,-0x94));e[M(-0xd0,-0xa3)](!![]);}const f=await e['replica']['commitAsync']();if(e[M(-0xcc,-0x14b)]){d();return;}e[M(-0xf1,-0x105)][M(-0xd1,-0x77)](g=>g['resumeFilterOnUpdate']());d(f);e[M(-0x6e,-0xdd)]=null;e[M(-0xb5,-0xc4)](M(-0x6f,-0xbe));e[M(-0xbf,-0x115)]();}[q(0x1ea,0x1ec)](){function N(a,b){return q(b- -0x18e,a);}if(this['delayedCalculationPromise']){return this[N(0x46,0xa5)];}if(this['delayCalculation']!==![]){return this[N(0x2e,0xa5)]=new Promise(d=>this['internalDelayCalculation'](d)[N(-0x26,0x50)]());}}async[q(0x183,0x120)](){const d=await this[O(0x1ed,0x238)]();function O(a,b){return q(a-0x71,b);}if(!this[O(0x246,0x257)])this[O(0x25d,0x216)]('load');return d;}['initializeStm'](){const d=this[P(0xf5,0x15a)]||_enc;if(!(this[P(0x146,0x15d)]instanceof _enc))this[P(0x152,0x15d)]=d['new']({'disabled':!![]},this[P(0x194,0x15d)]);this[P(0x1c4,0x1ac)](this[P(0xf6,0x15d)]);function P(a,b){return q(b- -0x2e,a);}if(this['resetUndoRedoQueuesAfterLoad']){this['ion']({'load':this['resetStmQueue'],'thisObj':this});}this[P(0x166,0x162)]({'beforeCommit':this[P(0x21a,0x1e1)],'commitFinalized':this['onCommitFinalization'],'commitRejected':this[P(0x1c5,0x197)],'thisObj':this});}[q(0x197,0x1a6)]({transactionResult:d,silenceCommit:e}){const f=new Map();for(const h of d[Q(0x54,0xd3)][Q(-0x22,-0x7b)]()){const i=h[Q(0x88,0xcd)];const {field:j}=i;if(h[Q(0x79,0xe3)]()||!i[IsChronoModelSymbol]||j instanceof ModelBucketField)continue;const k=i[Q(0xb2,0xca)];const l=k[Q(0x73,0xed)];if(l&&!h['previous']&&!d[Q(0x5c,-0x24)][Q(0xae,0xaf)](k['$$'])?.[Q(0xc4,0x136)]){if(!f[Q(0x17,-0x26)](l)){f[Q(0xb9,0xfc)](l,new Set([k]));}else if(!f[Q(0x3c,-0x42)](l)[Q(0x17,-0x4a)](k)){f[Q(0x3c,0x97)](l)[Q(0x81,0xe9)](k);}}}this[Q(0xf,-0x41)]?.();function Q(a,b){return q(a- -0x172,b);}const g=Array['from'](f['keys']())[Q(0x1c,-0x1e)]((m,n)=>m[Q(0x42,0x5e)]-n[Q(0x42,0xaa)]);g[Q(0x5e,0x78)](m=>m['remove'](f['get'](m)));this[Q(0xa9,0xcf)]?.(e);if(e){this['dataStores'][Q(0x5e,0xd2)](m=>m[Q(0xbe,0xf6)]());}}['onCommitRejection'](d){function R(a,b){return q(b- -0x18e,a);}if(this[R(0x56,0x68)]){this[R(-0x5c,-0x27)][R(-0x22,0x41)]++;this['isRestoringData']=!![];this[R(0x1c,0x9)](d);this[R(0x81,0x33)]=![];this['replica']['isWritingPreviousData']--;}else{this[R(0x6d,0x8)]();}}[q(0x20f,0x270)](){const {stm:d}=this;function S(a,b){return q(b- -0x4b,a);}this[S(0x1f3,0x1ab)]=d[S(0x163,0x12e)];if(d[S(0x192,0x132)]&&d[S(0x110,0x170)]){this[S(0xcd,0x12c)]=!![];d[S(0x188,0x170)]=![];}}['onCommitFinalization'](){function T(a,b){return q(b-0x346,a);}if(this[T(0x43d,0x4bd)]){this[T(0x513,0x4d1)][T(0x4b4,0x501)]=!![];this['_stmAutoRecord']=![];}}async['undo'](){function U(a,b){return q(a-0x3d9,b);}await this[U(0x564,0x558)][U(0x5d8,0x644)]();if(this[U(0x52f,0x4ad)]){await this[U(0x5bd,0x59c)](U(0x5ec,0x582),![]);}}async[q(0x176,0x120)](){function V(a,b){return q(b-0x93,a);}await this[V(0x1d3,0x21e)]['redo']();if(this[V(0x1a8,0x1e9)]){await this[V(0x22d,0x277)](V(0x31f,0x2a6),![]);}}['onSTMRestoringStart']({source:d}){function W(a,b){return q(b- -0x2b4,a);}if(this[W(-0x15b,-0x14d)])this[W(-0x17d,-0x14d)][W(-0x6b,-0xe5)]++;}async[q(0x23a,0x1df)](d){if(this[X(-0xe,-0x32)])this[X(-0xe,-0x2b)]['isWritingPreviousData']--;this[X(-0xf,-0x1e)]=!![];d[X(0xc8,0xf5)]();this[X(-0x1f,0x26)]=!![];function X(a,b){return q(a- -0x175,b);}await this[X(0x7,0xa)]();this[X(-0x1f,0xc)]=![];this[X(-0xf,-0x5b)]=![];if(!this[X(0x60,0x6f)]){d[X(-0x23,-0x44)]();this[X(0x77,0xf2)](X(0x9e,0x106));}}async[q(0x23b,0x225)]({source:d}){function Y(a,b){return q(a-0x17a,b);}if(d[Y(0x397,0x36f)]){await this['queue'](()=>this[Y(0x3b4,0x3a4)](d));}else{await this['handleSTMRestoringStop'](d);}}[q(0x239,0x260)](d,e,f){function Z(a,b){return q(a-0x2dd,b);}if(this[Z(0x4d8,0x4bf)]){this[Z(0x490,0x44c)](d);this[Z(0x46d,0x4de)]({'name':d,'repopulateReplica':{'fn':async()=>{function a0(a,b){return Z(a-0xe9,b);}await this['commitAsync']();if(!this[a0(0x59b,0x593)]){e(...f);}},'once':!![]}});}else{e(...f);}}get[q(0x1fb,0x17c)](){function a1(a,b){return q(a-0x142,b);}return Boolean(this[a1(0x343,0x333)]?.[a1(0x295,0x295)]);}[q(0x1df,0x1e5)](d){function a2(a,b){return q(b-0x329,a);}const e=this;if(e['repopulateOnDataset']&&d[a2(0x578,0x533)]&&!d[a2(0x458,0x4ab)]){e[a2(0x439,0x490)]?.[a2(0x48b,0x46c)][a2(0x575,0x565)]();if(!e['repopulateStores'])e['repopulateStores']=new Set();e['repopulateStores'][a2(0x561,0x51c)](d);e[a2(0x512,0x499)]();}}[q(0x170,0x1f0)](){const d=this;function a3(a,b){return q(a-0x376,b);}if(d[a3(0x54f,0x4e3)]){return;}const {dataStores:e,replica:f,calendarManagerStore:g}=d;if(f){d['unlinkStoreRecords'](...e);d[a3(0x54c,0x581)](d);d['unlinkRecord'](d[a3(0x4fc,0x546)]);d[a3(0x562,0x5e2)](a3(0x50b,0x4b1));f[a3(0x4d1,0x478)]();}else{d[a3(0x562,0x50f)]('recordsUnlinked');}const h=d[a3(0x4dd,0x4d0)]=d[a3(0x4d8,0x549)]();h['addEntities']([d,d[a3(0x4fc,0x576)]]);const i=new Map();for(const j of e){i[a3(0x5a1,0x5d6)](j,j[a3(0x52b,0x570)](d,!![]));}if(i[a3(0x524,0x52c)](g)<g[a3(0x580,0x5de)]){d[a3(0x4c2,0x44b)][a3(0x52b,0x5a3)](d,!![]);}if(f){h[a3(0x4b9,0x43e)][a3(0x522,0x4e4)](f['baseRevision']['failedResolutionReferences']);}d['repopulateStores']['clear']();d['trigger'](a3(0x4e6,0x4dd));}[q(0x178,0x198)](){function a4(a,b){return q(a-0x312,b);}if(this[a4(0x482,0x4df)]['isPending']&&!this['isDelayingCalculation']){this[a4(0x482,0x400)]['now']();return this[a4(0x479,0x40e)][a4(0x48e,0x509)]();}return null;}['unlinkRecord'](d){function a5(a,b){return q(b- -0x3a8,a);}d[a5(-0x142,-0x1a4)]();}[q(0x16d,0x121)](...d){function a6(a,b){return q(a-0x17,b);}d[a6(0x1e7,0x1fc)](e=>{function a7(a,b){return a6(a-0xc2,b);}if(!this['repopulateStores'][a7(0x262,0x2e3)](e)||e['syncDataOnLoad']){e[a7(0x248,0x2b6)](f=>{function a8(a,b){return a7(a- -0x369,b);}this[a8(-0xba,-0xbf)](f);},![],![],{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}});}[q(0x214,0x1f9)](){function a9(a,b){return q(a-0x190,b);}return this[a9(0x2f7,0x284)];}async[q(0x17b,0x1cd)](d){this[aa(0xa,-0x20)][aa(0x7f,0x9)](d);function aa(a,b){return q(a- -0x174,b);}return this['commitAsync']();}async[q(0x1e7,0x1d1)](d){this[ab(0x0,-0x6e)][ab(0x75,0x90)](d);function ab(a,b){return q(a- -0x17e,b);}return this[ab(-0x2,0x46)]();}[q(0x244,0x230)](d){function ac(a,b){return q(b-0xda,a);}this[ac(0x1f6,0x258)]['add'](d);}async['removeEvents'](d){this[ad(0xc9,0x63)][ad(0xa6,0xb1)](d);function ad(a,b){return q(b- -0x11b,a);}return this[ad(0x31,0x61)]();}[q(0x227,0x20c)](d){function ae(a,b){return q(b- -0x82,a);}this['eventStore'][ae(0x12e,0x14a)](d);}async['removeEvent'](d){this[af(0x218,0x1ad)][af(0x266,0x231)](d);function af(a,b){return q(a-0x9a,b);}return this[af(0x216,0x1d9)]();}['getStm'](){function ag(a,b){return q(a- -0x1bb,b);}return this[ag(-0x30,0x38)];}[q(0x1da,0x1ff)](d){function ah(a,b){return q(b- -0x81,a);}this[ah(0x114,0x10a)]=d;this[ah(0x111,0x10a)][ah(0xac,0x10f)]({'restoringStart':this[ah(0x18b,0x16d)],'restoringStop':this[ah(0x177,0x1ba)],'thisObj':this});}[q(0x163,0xe1)](){return this;}*['calculateEffectiveDataOrVisualCalendar'](d){let e=yield this['$'][ai(0x269,0x2b8)];if(e){yield e['$'][ai(0x2cd,0x296)];}else{e=this[ai(0x224,0x1ef)];}function ai(a,b){return q(a-0x9e,b);}return e;}[q(0x16c,0x1b8)](d){const e=this[aj(0x148,0x1be)];if(e&&this[aj(0x15c,0x1cb)][aj(0x214,0x1ab)](e)){this[aj(0x220,0x1cb)]['removeStore'](e);e[aj(0x23d,0x231)](this);this[aj(0x250,0x25f)](e);const f=e[aj(0x190,0x1b2)];f[aj(0x194,0x210)](g=>{const h=g[ak(0xbc,0x107)];function ak(a,b){return aj(b,a- -0x147);}if(h){const i=d[ak(0x3b,0x74)](h['id']);if(i){g[ak(0xbc,0x99)]=i;f[ak(0x7d,0xe5)](g);}}});e[aj(0x29d,0x21d)]();}function aj(a,b){return q(b-0x40,a);}if(!d||!(d instanceof _end)){const g=d?.[aj(0x25f,0x268)]||this[aj(0x220,0x1de)];this[aj(0x1cb,0x1be)]=new g(_enf[aj(0x265,0x1f8)]({'modelClass':this['eventModelClass'],'project':this,'stm':this[aj(0x1d3,0x1cb)]},d||{}));}else{this[aj(0x171,0x1be)]=d;d[aj(0x238,0x1e3)](this);this[aj(0x1ba,0x1cb)][aj(0x278,0x22d)](d);if(d[aj(0x1fa,0x1fc)]&&d['rootNode']!==this){this[aj(0x235,0x1ca)](d[aj(0x255,0x23c)][aj(0x1f2,0x1f9)]||[]);d[aj(0x1ea,0x23c)]=this;}else{d[aj(0x179,0x1f5)](this);}}this[aj(0x218,0x1a4)](this[aj(0x1ae,0x1be)]);this[aj(0x1c6,0x22c)](aj(0x202,0x1ff),{'store':this[aj(0x194,0x1be)]});}[q(0x15e,0x148)](d){const e=this[al(0x579,0x55e)];if(e&&this[al(0x4d2,0x54a)]['hasStore'](e)){this[al(0x4df,0x54a)][al(0x626,0x5b3)](e);this['detachStore'](e);}function al(a,b){return q(b-0x3bf,a);}if(!d||!(d instanceof _end)){const f=d?.[al(0x62c,0x5e7)]||this[al(0x52d,0x583)];this[al(0x4fb,0x55e)]=new f(_enf[al(0x5a2,0x577)]({'modelClass':this[al(0x55e,0x516)],'project':this,'stm':this[al(0x515,0x54a)]},d||{}));}else{this[al(0x512,0x55e)]=d;d[al(0x518,0x562)](this);this[al(0x549,0x54a)][al(0x530,0x5ac)](d);d[al(0x52a,0x574)](this);}this[al(0x517,0x523)](this[al(0x4e8,0x55e)]);this[al(0x5b5,0x5ab)](al(0x585,0x5f4),{'store':this['dependencyStore']});}[q(0x16e,0xff)](d){const e=this[am(0xbc,0x80)];function am(a,b){return q(a- -0x15b,b);}if(e&&this['stm'][am(0x10,0x55)](e)){this[am(0x30,0x25)]['removeStore'](e);e[am(0x96,0x8a)](this);this[am(0xc4,0xae)](e);const f=e[am(0x17,0x36)];f[am(0x75,0x8a)](g=>{const h=g[an(0x5c,0x2)];function an(a,b){return am(a-0x4e,b);}if(h){const i=d[an(0x35,0x23)](h['id']);if(i){g[an(0x5c,-0x17)]=i;f[an(0x77,0x5)](g);}}});e[am(0xc7,0xa1)]();}if(!d||!(d instanceof _end)){const g=d?.[am(0xcd,0x97)]||this[am(0x3d,0x71)];this[am(0xbc,0xdd)]=new g(_enf[am(0x5d,0x86)]({'modelClass':this[am(0x36,0x1f)],'project':this,'stm':this['stm']},d||{}));}else{this['resourceStore']=d;d['setProject'](this);this[am(0x30,0x99)][am(0x92,0xf6)](d);d[am(0x5a,0x65)](this);}this['attachStore'](this[am(0xbc,0x94)]);this[am(0x91,0xfb)](am(0xaa,0x97),{'store':this[am(0xbc,0x12c)]});}['setAssignmentStore'](d){const e=this[ao(0x0,-0x19)];if(e&&this['stm'][ao(-0x29,-0x86)](e)){this['stm'][ao(0x7d,0x3)](e);e[ao(-0x6c,0x0)](this);this[ao(0x19,0x2e)](e);}if(!d||!(d instanceof _end)){const f=d?.[ao(-0x2a,0x37)]||this[ao(-0x77,-0x11)];this[ao(0x66,-0x19)]=new f(_enf[ao(0x44,-0x39)]({'modelClass':this['assignmentModelClass'],'project':this,'stm':this[ao(-0xd,-0x66)]},d||{}));}else{this[ao(0x52,-0x19)]=d;d['setProject'](this);this[ao(-0x77,-0x66)]['addStore'](d);d[ao(0x3c,-0x3c)](this);}this[ao(-0xf6,-0x77)]&&this[ao(-0x6a,-0x8)]();this[ao(-0xc6,-0x8d)](this[ao(-0x24,-0x19)]);function ao(a,b){return q(b- -0x1f1,a);}this[ao(-0x2a,-0x5)]('assignmentStoreChange',{'store':this['assignmentStore']});}[q(0x1fe,0x181)](d){const e=this[ap(0x4e8,0x4e9)];if(e&&this[ap(0x527,0x530)][ap(0x507,0x513)](e)){this['stm']['removeStore'](e);this[ap(0x5bb,0x564)](e);}if(!d||!(d instanceof _end)){const f=d?.[ap(0x5c4,0x5a2)]||this[ap(0x54e,0x5bb)];this['calendarManagerStore']=new f(_enf[ap(0x554,0x527)]({'modelClass':this[ap(0x4fc,0x4fc)],'project':this,'stm':this[ap(0x527,0x589)]},d||{}));}else{this[ap(0x4e8,0x55e)]=d;if(d){d[ap(0x53f,0x4c0)](this);this[ap(0x527,0x4a5)][ap(0x589,0x5d1)](d);d[ap(0x551,0x56e)](this);}}this['attachStore'](this[ap(0x4e8,0x48e)]);function ap(a,b){return q(a-0x39c,b);}this[ap(0x588,0x5c8)](ap(0x4e6,0x515),{'store':this[ap(0x4e8,0x4d0)]});}async[q(0x1db,0x180)](...d){return!![];}['rejectStmTransaction'](d){function aq(a,b){return q(b- -0x1fc,a);}d=d||this[aq(-0xb,-0x71)];if(d[aq(-0x7b,-0x2e)]){if(d[aq(-0x25,-0x2e)][aq(-0xcd,-0x9b)]){d[aq(0x1c,-0x58)](e=>e[aq(0x52,0x2d)]());d['rejectTransaction']();d['forEachStore'](e=>e[aq(0x9c,0x25)]());}else{d['stopTransaction']();}}}async[q(0x241,0x2b7)](d){const f=this[ar(-0x172,-0x13c)],g=f[ar(-0x132,-0x14e)],h=f[ar(-0x156,-0x10c)];if(g){f['enable']();}else{if(h){f[ar(-0xd2,-0x10c)]=![];}if(f[ar(-0xd7,-0x14a)]){f[ar(-0xde,-0x11a)]();}}f[ar(-0x33,-0x89)]();function ar(a,b){return q(b- -0x2c7,a);}d();let i=!![];try{const j=await this['commitAsync']();i=!j[ar(-0xa2,-0xd0)];}catch(k){if(!/cycle/i[ar(-0x13b,-0x127)](k))throw k;i=![];}if(i){f[ar(-0x15a,-0x11a)]();if(g){f[ar(-0x138,-0xbc)]();}}else{this[ar(-0x158,-0x160)][ar(-0xd3,-0x148)]();this['rejectStmTransaction'](f);}f[ar(-0x19e,-0x14e)]=g;f[ar(-0xf4,-0x10c)]=h;return i;}async[q(0x199,0x1d7)](d){function as(a,b){return q(a-0x175,b);}return this[as(0x364,0x37e)](()=>this[as(0x3b6,0x3fe)](d));}[q(0x1ef,0x1c4)](d,e){function at(a,b){return q(a- -0x2d6,b);}const f=this;return f[at(-0x192,-0x214)][at(-0xe7,-0x6c)](async function g(){return d();},e);}[q(0x19d,0x149)](){const {replica:d}=this;function au(a,b){return q(b- -0x257,a);}return this['delayEnteringReplica']||!this[au(0x16,-0x5c)]&&(d?!(d['dirty']&&(d[au(-0x78,-0x83)]()||d[au(-0x4e,-0x54)])):!![]);}[q(0x1cd,0x24a)](d){function av(a,b){return q(a-0x253,b);}const e=[];if(this['calendar']===d)e[av(0x398,0x34f)](this);e[av(0x398,0x40e)](...this[av(0x3d1,0x3c7)][av(0x3ee,0x3bf)](f=>f[av(0x41e,0x43c)]===d,!![]));e['push'](...this[av(0x46a,0x427)][av(0x3ee,0x394)](f=>f[av(0x41e,0x449)]===d,!![]));if(d[av(0x40c,0x456)]?.['length']){for(const f of d[av(0x40c,0x423)]){e[av(0x398,0x337)](...this[av(0x420,0x461)](f));}}return e;}[q(0x1af,0x186)](d){function aw(a,b){return q(b- -0x222,a);}const e=this['getCalendarConsumers'](d);for(const f of e){f[aw(-0x82,-0x57)]=null;}}static get['defaultConfig'](){return{'assignmentsData':null,'calendarsData':null,'dependenciesData':null,'eventsData':null,'resourcesData':null,'eventStore':null,'resourceStore':null,'assignmentStore':null,'dependencyStore':null,'calendarManagerStore':null,'eventModelClass':null,'resourceModelClass':null,'assignmentModelClass':null,'dependencyModelClass':null,'calendarModelClass':null,'repopulateOnDataset':!![]};}static get[q(0x1a7,0x1be)](){return{'repopulateReplica':0xa};}}c[q(0x1e8,0x203)]=!![];__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[q(0x240,0x287)],q(0x192,0x1cf),void 0x0);__decorate([model_field({'type':q(0x14f,0x1be),'defaultValue':![]})],c['prototype'],q(0x1f0,0x1f3),void 0x0);__decorate([model_field({'type':q(0x14f,0x1a6),'defaultValue':![]})],c[q(0x240,0x1d4)],'skipNonWorkingTimeInDurationWhenSchedulingManually',void 0x0);function q(a,b){return _enb(a- -0x23,b);}__decorate([model_field({'type':q(0x20e,0x24f),'defaultValue':Direction[q(0x185,0x140)]},{'sync':!![]})],c[q(0x240,0x1e5)],'direction',void 0x0);return c;}){}export{SchedulerBasicProjectMixin};
|
|
1
|
+
(function(a,b){const c=a();function o(a,b){return _enb(b- -0x84,a);}while(!![]){try{const d=-parseInt(o(-0x23,0x1d))/0x1*(parseInt(o(0x144,0x104))/0x2)+-parseInt(o(0x91,0x53))/0x3+-parseInt(o(0x186,0x109))/0x4*(-parseInt(o(0xa4,0x56))/0x5)+-parseInt(o(0x127,0x10a))/0x6+parseInt(o(0x4a,0x68))/0x7*(parseInt(o(-0x35,0x41))/0x8)+parseInt(o(0x60,0x38))/0x9+parseInt(o(0xc5,0xdc))/0xa*(parseInt(o(-0x49,0x2d))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2cd92));var __decorate=function(a,b,e,f){var g=arguments[p(0x34e,0x348)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===p(0x34b,0x30d)&&typeof Reflect[p(0x2e9,0x2a3)]==='function')h=Reflect[p(0x2e9,0x2d2)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function p(a,b){return _enb(a-0x1f7,b);}return g>0x3&&h&&Object[p(0x2e5,0x285)](b,e,h),h;};import{MixinAny}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Schema}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Schema.js';import{delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/data/stm/StateTrackingManager.js';import _end from'@bryntum/core-thin/lib/data/Store.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x9f;let f=c[d];return f;};return _enb(a,b);}import _ene from'@bryntum/core-thin/lib/helper/IdHelper.js';function _ena(){const av=['delayedCalculationPromise','acceptChanges','loadInlineData','calendarsData','removeRejectedRecordsAdd','construct','direction','repopulateOnDataset','unlinkStoreRecords','enable','defaultCalendar','onSTMRestoringStop','disable','startTransaction','prototype','unScheduleAutoCommit','children','redo','joinRecordsToProject','repopulateReplica','subEventsIterable','push','keys','replica','addEntities','setProject','project','hasStore','getDefaultResourceModelClass','isDestroyed','storePopulation','usingSyncDataOnLoad','setDependencyStore','skipNonWorkingTimeWhenSchedulingManually','getDefaultDependencyModelClass','commitAsync','autoRecord','trigger','isPending','totalCount','%cInitializing\x20project','repopulateStore','appendChild','assignmentStoreClass','dirty','calendar','includeEvent','delayable','await','addIndex','log','has','stopTransaction','rootNode','rejectedWith','dataStores','addEntity','from','isChainedFromProject','resources','resetStmQueue','hasDataInStores','addStore','_stmRestoringInProgress','undo','getGraph','resourceModelClass','_stmAutoRecord','onCommitInitialization','removeIndex','_enableProgressNotifications','remove','eventModelClass','dependencies','hasPendingAutoCommit','queue','destroy','writeFailedResolutionInfo','getDefaultCalendarManagerStoreClass','resumeChangeTracking','tasks','onPropagationProgressNotification','dependencyStoreChange','object','disabled','deferUntilRepopulationIfNeeded','length','Forward','suspendChangeTracking','storage','_stmDisabled','enableProgressNotifications','resourceStoreClass','stateRestoringDone','Populating\x20project','191970mOztZL','reject','excludeEvent','query','syncDataOnLoad','event','delayEnteringReplica','applyConfigs','suspendFilterOnUpdate','calendarManagerStore','forEachStore','getDefaultCalendarModelClass','setCalendarManagerStore','dependencyStore','calculateProject','removeStore','setStm','eventStoreChange','now','setAssignmentStore','addEvent','delete','removeEvent','hasSubEvents','Default','getEventStore','detachListeners','generateId','getReplicaConfig','eventStoreClass','stmClass','isCommitting','events','boolean','assign','clear','timeEnd','isRepopulatingStores','then','get','482rdJsVm','commitLoad','version','data','entries','4380wHSfic','998178ElaFhB','baseRevision','delayCalculation','onCommitRejection','call','assignments','activeTransaction','resumeFilterOnUpdate','isLoadingInlineData','revisionsEnabled','_isCommittingAfterStmRestore','dependencyModelClass','forEach','handleSTMRestoringStop','repopulateStores','ion','stm','beginBatch','time','isDelayingCalculation','previous','tasksData','getDefaultAssignmentModelClass','847ZohXom','values','unspecifiedTimeIsWorking','calendarManagerStoreChange','string','isRestoringData','cycleEffectClass','transaction','graph','hasChangesInStores','resourceStore','isWritingPreviousData','eventsData','removeEvents','set','resetUndoRedoQueuesAfterLoad','77SZRDLu','doDestroy','load','failedResolutionReferences','getDefaultEventModelClass','unjoinRecordsFromProject','dependencyStoreClass','new','scheduleDelayedCalculation','getDefaultAssignmentStoreClass','getType','2249775BTdGVQ','recordsUnlinked','defaultConfig','invalidateIndices','assignmentStore','warn','ProjectModelQueue','invalidateTemporaryIndices','hasChanges','47912msDqzL','isRepopulating','getById','setEventStore','unlink','eventStore','getCalendarConsumers','refresh','onSTMRestoringStart','sort','assignmentModelClass','removeTemporaryIndices','isRecording','assignmentStoreChange','ignoreInitialCommitComputationCycles','getDefaultCycleEffectClass','applyProjectResponse','ignore','698643hDijun','DEBUG','storeClass','745INBDjy','rejectTransaction','isEngineReady','resource','calendarModelClass','traverse','onCommitFinalization','enterReplica','initializeStm','getDefaultResourceStoreClass','Project\x20\x22ignoreInitialCommitComputationCycles\x22\x20option\x20is\x20deprecated\x20and\x20will\x20be\x20dropped\x20in\x20the\x20next\x20major\x20release','some','assignmentsData','detachStore','tree','setupTemporaryIndices','internalDelayCalculation','createReplica','280iCqwLx','removalOrder','defineProperty','CurrentOrProposedOrPrevious','calendars','add','decorate','calendarManagerStoreClass','resourcesData','getDefaultDependencyStoreClass','_queue','setResourceStore','unlinkCalendarConsumers','attachStore','rejectStmTransaction','isShadow','tryPropagateWithChangesQueued','getStm','dependenciesData','assignmentsForRemoval','isInitialCommitPerformed'];_ena=function(){return av;};return _ena();}import _enf from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{IsChronoModelSymbol,model_field,ModelBucketField}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect,EngineReplica}from'../../../chrono/Replica.js';import{DurationConverterMixin}from'../../../scheduling/DurationConverterMixin.js';import{Direction,ProjectType}from'../../../scheduling/Types.js';import _eng from'../../../util/Queue.js';import{ChronoAssignmentStoreMixin}from'../../store/ChronoAssignmentStoreMixin.js';import{ChronoCalendarManagerStoreMixin}from'../../store/ChronoCalendarManagerStoreMixin.js';import{ChronoDependencyStoreMixin}from'../../store/ChronoDependencyStoreMixin.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{ChronoResourceStoreMixin}from'../../store/ChronoResourceStoreMixin.js';import{BaseAssignmentMixin}from'./BaseAssignmentMixin.js';import{BaseCalendarMixin}from'./BaseCalendarMixin.js';import{BaseDependencyMixin}from'./BaseDependencyMixin.js';import{BaseEventMixin}from'./BaseEventMixin.js';import{BaseResourceMixin}from'./BaseResourceMixin.js';import{ChronoAbstractProjectMixin}from'./ChronoAbstractProjectMixin.js';import{CanCombineCalendarsMixin,HasCalendarMixin}from'./HasCalendarMixin.js';import{SchedulerBasicEvent}from'./SchedulerBasicEvent.js';import{HasChildrenMixin}from'./HasChildrenMixin.js';class SchedulerBasicProjectMixin extends MixinAny([ChronoAbstractProjectMixin,BaseEventMixin,HasChildrenMixin,HasCalendarMixin,DurationConverterMixin,CanCombineCalendarsMixin],a=>{const b=a[q(-0xce,-0x6a)];class c extends a{[q(-0xd7,-0xf6)](d={}){d[r(-0x1ee,-0x183)]=d[r(-0x1ee,-0x214)]!==![];d[r(-0x222,-0x1d8)]=d[r(-0x222,-0x284)]||d[r(-0x1ee,-0x1c1)]!==![];this['_queue']=new _eng(_ene[r(-0x203,-0x194)](r(-0x2bc,-0x32e)));if(!('expanded'in d)){d['expanded']=!![];}if(d['delayCalculation']){this[r(-0x218,-0x243)]=!![];}if(!(r(-0x25c,-0x1de)in d)){d[r(-0x25c,-0x284)]=![];}const {events:e,dependencies:f,resources:g,assignments:h,calendars:i}=d;delete d['events'];delete d['dependencies'];delete d['resources'];delete d[r(-0x1eb,-0x20b)];delete d[r(-0x28e,-0x2b6)];b[r(-0x278,-0x29c)][r(-0x1ec,-0x231)](this,d);this[r(-0x1e2,-0x23b)]=new Set();this[r(-0x2ab,-0x2bb)]=r(-0x2ab,-0x317)in d?d[r(-0x2ab,-0x27c)]:![];if(this[r(-0x2ab,-0x263)]){console[r(-0x2bd,-0x319)](r(-0x29a,-0x29c));}if(!this[r(-0x235,-0x284)])this[r(-0x235,-0x1b8)]=this[r(-0x2c9,-0x28b)]();if(!this[r(-0x201,-0x22b)])this[r(-0x201,-0x1dd)]=this['getDefaultEventStoreClass']();if(!this[r(-0x1e5,-0x215)])this[r(-0x1e5,-0x1ba)]=this[r(-0x25b,-0x1e5)]();if(!this[r(-0x2c7,-0x2ea)])this[r(-0x2c7,-0x28d)]=this[r(-0x289,-0x2d1)]();if(!this[r(-0x23b,-0x25c)])this['resourceModelClass']=this[r(-0x261,-0x209)]();function r(a,b){return q(a- -0x1a1,b);}if(!this[r(-0x221,-0x25a)])this['resourceStoreClass']=this[r(-0x29b,-0x257)]();if(!this[r(-0x2af,-0x2fa)])this[r(-0x2af,-0x32c)]=this[r(-0x2de,-0x360)]();if(!this['assignmentStoreClass'])this[r(-0x252,-0x214)]=this[r(-0x2c4,-0x274)]();if(!this[r(-0x2a0,-0x2e1)])this[r(-0x2a0,-0x321)]=this['getDefaultCalendarModelClass']();if(!this[r(-0x28b,-0x2ee)])this['calendarManagerStoreClass']=this[r(-0x22f,-0x26b)]();if(!this[r(-0x2d7,-0x2e1)])this[r(-0x2d7,-0x33d)]=this[r(-0x2aa,-0x258)]();this['initializeStm']();this[r(-0x273,-0x256)]=new this['calendarModelClass']({'name':r(-0x206,-0x1ed),'unspecifiedTimeIsWorking':this[r(-0x2db,-0x32d)]});this[r(-0x273,-0x29f)][r(-0x263,-0x1fe)]=this;if(!this['delayEnteringReplica'])this[r(-0x29d,-0x299)](![]);this[r(-0x212,-0x273)](this[r(-0x215,-0x25c)]);this[r(-0x2b6,-0x32b)](this[r(-0x2b4,-0x240)]);this[r(-0x25d,-0x1eb)](this['dependencyStore']);this['setResourceStore'](this['resourceStore']);this[r(-0x20b,-0x26e)](this[r(-0x2be,-0x302)]);const j=Boolean(this[r(-0x27a,-0x29a)]||this[r(-0x2d1,-0x2b4)]||this[r(-0x280,-0x299)]||this[r(-0x28a,-0x226)]||this[r(-0x298,-0x224)]||i||e||f||g||h);if(j){this[r(-0x27b,-0x2de)]({'calendarsData':this[r(-0x27a,-0x23b)],'eventsData':this[r(-0x2d1,-0x31d)],'dependenciesData':this[r(-0x280,-0x2ad)],'resourcesData':this[r(-0x28a,-0x2fa)],'assignmentsData':this[r(-0x298,-0x21a)],'calendars':i,'events':e,'dependencies':f,'resources':g,'assignments':h});delete this[r(-0x27a,-0x2ea)];delete this[r(-0x2d1,-0x309)];delete this[r(-0x280,-0x241)];delete this[r(-0x28a,-0x2ea)];delete this[r(-0x298,-0x218)];}else{if(this[r(-0x1ee,-0x1f1)]&&this[r(-0x240,-0x26c)])this['scheduleDelayedCalculation']();}}get[q(-0xa5,-0x46)](){function s(a,b){return q(b-0x49,a);}return[this[s(-0x51,-0x2b)],this[s(-0xbc,-0xe9)],this['eventStore'],this[s(0x28,-0x27)],this['assignmentStore']];}get[q(-0x9f,-0x3a)](){function t(a,b){return q(a- -0x7d,b);}return this[t(-0x122,-0xfe)][t(-0x175,-0x1c3)](d=>d[t(-0x132,-0x19d)]>0x0);}get[q(-0x133,-0xda)](){function u(a,b){return q(a-0xdc,b);}return this[u(0x37,-0x3b)]['some'](d=>d[u(-0x3d,-0x87)]);}['enterReplica'](d){const e=this;if(!e[v(-0x1fe,-0x22b)]){e['replica']=e[v(-0x25e,-0x258)]();e[v(-0x25d,-0x22b)]['addEntity'](e);e[v(-0x1e1,-0x22b)][v(-0x277,-0x20a)](e[v(-0x25f,-0x238)]);e[v(-0x23b,-0x21d)]('graphReady');}function v(a,b){return q(b- -0x166,a);}if(d&&!e[v(-0x1d1,-0x1be)]){e[v(-0x1fd,-0x20b)]['forEach'](f=>{if(f[w(0xbe,0xdc)]){return;}function w(a,b){return v(a,b-0x2e4);}f[w(0x111,0x13b)](g=>{function x(a,b){return w(a,b-0x90);}!g[x(0x14f,0xda)]&&g['joinProject']();},void 0x0,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});});}}[q(-0xa0,-0x61)](){function y(a,b){return q(a-0x65,b);}const d=this['stm'][y(-0x23,-0x7c)];this[y(0x26,0x31)][y(-0x6b,-0x4d)]();this[y(0x26,0x16)]['resetQueue']();if(!d){this[y(0x26,0x91)]['enable']();}}[q(-0x12b,-0xe3)](){function z(a,b){return q(b-0xbf,a);}const d=this;d[z(0x8d,0x1a)][z(0x76,0x7c)](e=>e?.[z(0xa5,0x2f)]());d[z(-0x46,-0x13)]?.[z(-0x19,0x2f)]();d[z(-0x50,-0x6)]?.['clear']();d[z(0xa,0x80)]?.['destroy']();b[z(-0x91,-0x6c)][z(0x96,0x74)](this);}[q(-0x61,-0xde)](){function A(a,b){return q(b-0x1a5,a);}return{'project':this,'schema':Schema[A(0x2a,0x80)](),'enableProgressNotifications':this[A(0x147,0x124)],'silenceInitialCommit':this['silenceInitialCommit'],'preventSilencingOnIssueResolve':this['preventSilencingOnIssueResolve'],'ignoreInitialCommitComputationCycles':this['ignoreInitialCommitComputationCycles'],'cycleEffectClass':this[A(0xeb,0x6f)],'onWriteDuringCommit':A(0xfd,0x9e),'readMode':ReadMode[A(0xe5,0xb7)]};}['createReplica'](){function B(a,b){return q(b-0x48e,a);}return EngineReplica['new'](this[B(0x42b,0x42d)]());}*[q(-0x66,-0x8)](){const d=this[C(0x46,0x97)]();if(d['isChainedFromProject']){return![];}function C(a,b){return q(a-0xaa,b);}return d['count']>0x0;}*[q(-0xc8,-0x14a)](){const d=this[D(0xf2,0x140)]();if(d[D(0xb4,0x61)]){return[];}function D(a,b){return q(a-0x156,b);}return d['getRange']();}[q(-0x122,-0x17d)](){return ProjectType['SchedulerBasic'];}get[q(-0x81,-0x83)](){function E(a,b){return q(b-0xe3,a);}return this[E(0x85,0x4d)];}set['enableProgressNotifications'](d){this['_enableProgressNotifications']=d;function F(a,b){return q(b-0x355,a);}if(this[F(0x2d0,0x290)])this['replica'][F(0x2f6,0x2d4)]=d;}[q(-0x109,-0x125)](){return CycleEffect;}[q(-0x128,-0x117)](){return SchedulerBasicEvent;}['getDefaultEventStoreClass'](){return ChronoEventStoreMixin;}[q(-0xba,-0xef)](){return BaseDependencyMixin;}['getDefaultDependencyStoreClass'](){return ChronoDependencyStoreMixin;}[q(-0xc0,-0x10b)](){return BaseResourceMixin;}[q(-0xfa,-0x16e)](){return ChronoResourceStoreMixin;}['getDefaultAssignmentModelClass'](){return BaseAssignmentMixin;}['getDefaultAssignmentStoreClass'](){return ChronoAssignmentStoreMixin;}[q(-0x72,-0xc5)](){return BaseCalendarMixin;}[q(-0x8e,-0xf4)](){return ChronoCalendarManagerStoreMixin;}[q(-0xbd,-0x107)](){function G(a,b){return q(a-0x3dc,b);}return[this[G(0x2c9,0x315)],this[G(0x2aa,0x2b3)],this[G(0x36c,0x373)],this['assignmentStore']][G(0x2e4,0x298)](d=>d['syncDataOnLoad']);}async[q(-0xda,-0x12a)](d){const {calendarManagerStore:e,eventStore:f,dependencyStore:g,assignmentStore:h,resourceStore:i,replica:j}=this;this['dataPropertyDeprecation']?.(d||{});if(!this[H(0x1e3,0x166)]){j?.[H(0x12d,0x176)]();}else{while(j?.[H(0x20f,0x1e5)]){await this[H(0x1a6,0x18a)]();}}if(j?.['enableProgressNotifications']&&!this[H(0x25e,0x1f6)]){await delay(0x0);await this['commitAsync']();j[H(0x1f1,0x1b8)]({'total':0x0,'remaining':0x0,'phase':H(0x184,0x185)});await delay(0x32);}this[H(0x199,0x166)]=![];this['isLoadingInlineData']=!![];if(globalThis[H(0xc7,0x13e)]){console[H(0x1d1,0x199)](H(0x116,0x18f),'font-weight:bold;color:darkgreen;text-transform:uppercase;margin-top:\x202em');console[H(0x18e,0x206)]('Time\x20to\x20visible');console['time'](H(0x20f,0x1c5));}if(this[H(0x273,0x1f6)]&&!this[H(0x177,0x167)]&&!this['usingSyncDataOnLoad']()){this[H(0x18e,0x11f)]();}if(d[H(0x1d2,0x156)]||d[H(0x118,0x16a)]){this[H(0x129,0x190)](e);e[H(0x205,0x1f1)]=d[H(0x1d1,0x156)]||d['calendarsData'];}if(d[H(0x1d3,0x1e6)]||d[H(0x212,0x1b7)]||d[H(0xb1,0x113)]||d[H(0xc4,0x105)]){this[H(0x157,0x190)](f);f[H(0x20c,0x1f1)]=d['events']||d[H(0x173,0x1b7)]||d[H(0x138,0x113)]||d[H(0xae,0x105)];}if(d[H(0x1b0,0x1b0)]||d[H(0xef,0x164)]){this[H(0x1ab,0x190)](g);g['data']=d[H(0x218,0x1b0)]||d[H(0x120,0x164)];}if(d[H(0x1c0,0x1a2)]||d[H(0x134,0x15a)]){this[H(0x123,0x190)](i);i['data']=d['resources']||d['resourcesData'];}if(d[H(0x1ac,0x1f9)]||d[H(0x193,0x14c)]){this[H(0x13c,0x190)](h);h[H(0x195,0x1f1)]=d[H(0x1e2,0x1f9)]||d[H(0x15b,0x14c)];}if(d[H(0x115,0x181)]){if(this[H(0x21b,0x1cc)]&&this[H(0x168,0x1a4)]){this[H(0x281,0x203)]({'recordsUnlinked':()=>{function I(a,b){return H(a,b- -0x1ae);}this[I(-0x70,0x11)]();this['applyProjectResponse'](d[I(0x3c,-0x2d)]);this[I(0x36,0x8)]();},'once':!![]});}else{this[H(0xfa,0x13b)](d[H(0x14f,0x181)]);}}if(globalThis['DEBUG'])console[H(0x253,0x1ea)](H(0x1b8,0x1c5));const k=await this[H(0x222,0x1ef)]();function H(a,b){return q(b-0x243,a);}this[H(0x195,0x1fc)]=![];return k;}[q(-0xf4,-0x135)](){const {storage:d}=this['assignmentStore']||{};function J(a,b){return q(b-0x300,a);}if(d){d[J(0x206,0x255)]({'property':J(0x275,0x288),'unique':![]});d['addIndex']({'property':J(0x235,0x200),'unique':![]});}}[q(-0x11a,-0xb2)](){function K(a,b){return q(b-0x135,a);}this[K(0x5d,0x18)]?.[K(0x113,0xb2)]?.[K(-0x4b,0x17)]();}[q(-0x10d,-0x179)](){const {storage:d}=this[L(-0x4f,-0xb4)];function L(a,b){return q(b-0x69,a);}d[L(-0x53,-0x2e)](L(0x4a,-0xf));d['removeIndex'](L(-0x5d,-0x97));}async[q(-0xf3,-0xd9)](d){function M(a,b){return q(a-0x3f5,b);}const e=this;e[M(0x37e,0x3a2)]=!![];e[M(0x301,0x2b8)]();await delay(0x0);if(e[M(0x336,0x3b8)]){d();return;}e[M(0x33e,0x2e8)]('delayCalculationStart');e[M(0x33e,0x390)](M(0x2e4,0x28a),{'isCalculated':![]});await delay(0x0);if(e[M(0x336,0x362)]){d();return;}e[M(0x37e,0x394)]=![];e[M(0x350,0x388)][M(0x3b2,0x370)](g=>g[M(0x380,0x3ba)]());if(e['isRepopulatingStores']){e[M(0x32c,0x324)][M(0x38a,0x3d8)]();}else{e[M(0x33e,0x30b)](M(0x2d5,0x32e));e[M(0x2f9,0x341)](!![]);}const f=await e[M(0x330,0x2e6)][M(0x33c,0x308)]();if(e[M(0x336,0x2f1)]){d();return;}e[M(0x350,0x377)][M(0x3b2,0x417)](g=>g[M(0x3ad,0x3e4)]());d(f);e[M(0x319,0x33d)]=null;e[M(0x33e,0x2c1)]('delayCalculationEnd');e[M(0x2e8,0x352)]();}[q(-0x124,-0x151)](){if(this[N(-0x119,-0x14c)]){return this[N(-0x119,-0xb8)];}function N(a,b){return q(a- -0x3d,b);}if(this[N(-0x8a,-0x101)]!==![]){return this[N(-0x119,-0x13a)]=new Promise(d=>this['internalDelayCalculation'](d)[N(-0x94,-0x5b)]());}}async[q(-0x54,0x2b)](){function O(a,b){return q(a-0x257,b);}const d=await this[O(0x19e,0x1df)]();if(!this[O(0x198,0x1d4)])this['trigger'](O(0x12d,0x121));return d;}[q(-0xfb,-0x115)](){const d=this[P(0x34a,0x33a)]||_enc;if(!(this['stm']instanceof _enc))this[P(0x3a6,0x35a)]=d[P(0x274,0x274)]({'disabled':!![]},this['stm']);function P(a,b){return q(b-0x399,a);}this['setStm'](this[P(0x37f,0x35a)]);if(this[P(0x1f0,0x26c)]){this[P(0x2e5,0x359)]({'load':this[P(0x2d3,0x2f9)],'thisObj':this});}this[P(0x3a8,0x359)]({'beforeCommit':this['onCommitInitialization'],'commitFinalized':this['onCommitFinalization'],'commitRejected':this['onCommitRejection'],'thisObj':this});}['removeRejectedRecordsAdd']({transactionResult:d,silenceCommit:e}){const f=new Map();for(const h of d[Q(0x4eb,0x4c2)][Q(0x401,0x3f8)]()){const i=h['identifier'];const {field:j}=i;if(h[Q(0x45a,0x45e)]()||!i[IsChronoModelSymbol]||j instanceof ModelBucketField)continue;const k=i['self'];const l=k['firstStore'];if(l&&!h[Q(0x501,0x579)]&&!d[Q(0x407,0x3b5)]['getLatestStableEntryFor'](k['$$'])?.[Q(0x501,0x522)]){if(!f['has'](l)){f[Q(0x40e,0x3be)](l,new Set([k]));}else if(!f[Q(0x4e6,0x55f)](l)[Q(0x493,0x422)](k)){f[Q(0x4e6,0x564)](l)[Q(0x450,0x400)](k);}}}this[Q(0x4b8,0x4b5)]?.();function Q(a,b){return q(a-0x53c,b);}const g=Array[Q(0x499,0x4d2)](f[Q(0x476,0x4e7)]())[Q(0x42d,0x402)]((m,n)=>m[Q(0x44c,0x464)]-n[Q(0x44c,0x438)]);g[Q(0x4f9,0x4f9)](m=>m[Q(0x4a7,0x4e9)](f['get'](m)));this[Q(0x4af,0x48f)]?.(e);if(e){this[Q(0x497,0x4c1)][Q(0x4f9,0x4db)](m=>m[Q(0x461,0x41e)]());}}[q(-0x4c,0x2c)](d){function R(a,b){return q(a-0x431,b);}if(this[R(0x3af,0x412)]){this[R(0x36c,0x3d6)][R(0x300,0x348)]++;this[R(0x2fa,0x31c)]=!![];this[R(0x359,0x338)](d);this['isRestoringData']=![];this['replica']['isWritingPreviousData']--;}else{this[R(0x34e,0x39d)]();}}[q(-0x98,-0x59)](){function S(a,b){return q(b-0x296,a);}const {stm:d}=this;this['_stmDisabled']=d[S(0x1ef,0x20e)];if(d[S(0x15b,0x18a)]&&d['autoRecord']){this[S(0x191,0x1fd)]=!![];d[S(0x213,0x1de)]=![];}}[q(-0xfd,-0xe6)](){function T(a,b){return q(a- -0x84,b);}if(this[T(-0x11d,-0xa5)]){this[T(-0xc3,-0xe8)][T(-0x13c,-0x141)]=!![];this[T(-0x11d,-0x13d)]=![];}}async['undo'](){function U(a,b){return q(b-0x174,a);}await this[U(0x1a6,0x135)][U(0x89,0xd8)]();if(this[U(0xc1,0x12f)]){await this['await'](U(0x100,0xf5),![]);}}async[q(-0xcb,-0xe7)](){function V(a,b){return q(a-0x1ea,b);}await this['stm']['redo']();if(this[V(0x1a5,0x1c9)]){await this[V(0x13e,0xd4)](V(0x16b,0x184),![]);}}[q(-0x110,-0x117)]({source:d}){function W(a,b){return q(a-0x22c,b);}if(this[W(0x167,0x121)])this[W(0x167,0x14b)][W(0xfb,0xdc)]++;}async['handleSTMRestoringStop'](d){if(this[X(0x11c,0x9f)])this[X(0x5d,0x9f)][X(0x28,0x33)]--;this[X(0x80,0xc7)]=!![];d[X(0x114,0x94)]();this[X(0x1a0,0x11f)]=!![];await this[X(0x65,0xab)]();function X(a,b){return q(b-0x164,a);}this[X(0xb8,0x11f)]=![];this[X(0x133,0xc7)]=![];if(!this[X(0xe8,0xa5)]){d[X(0x37,0x91)]();this['trigger'](X(0x154,0xe5));}}async[q(-0xd1,-0x9e)]({source:d}){function Y(a,b){return q(b-0x221,a);}if(d[Y(0x17b,0x1db)]){await this[Y(0x1fb,0x190)](()=>this[Y(0x250,0x1df)](d));}else{await this['handleSTMRestoringStop'](d);}}[q(-0x87,-0x4f)](d,e,f){function Z(a,b){return q(a- -0x7e,b);}if(this[Z(-0xd6,-0xec)]){this[Z(-0xe1,-0xe2)](d);this[Z(-0xbe,-0x116)]({'name':d,'repopulateReplica':{'fn':async()=>{function a0(a,b){return Z(b- -0x123,a);}await this[a0(-0x1e8,-0x25a)]();if(!this['isDestroyed']){e(...f);}},'once':!![]}});}else{e(...f);}}get[q(-0x58,-0xb2)](){function a1(a,b){return q(a- -0xa1,b);}return this[a1(-0x1b8,-0x194)]||Boolean(this[a1(-0xe2,-0x7d)]?.['size']);}[q(-0xb3,-0x52)](d){const e=this;function a2(a,b){return q(a-0xd0,b);}if(e[a2(-0x5,-0x1a)]&&d[a2(0x1b,-0x1b)]&&!d[a2(0x57,0xe)]){e[a2(0xb,-0x65)]?.[a2(0x87,0x77)]['stop']();if(!e[a2(0x8f,0xee)])e[a2(0x8f,0xfd)]=new Set();e[a2(0x8f,0xb1)][a2(-0x1c,0x1b)](d);e['repopulateReplica']();}}['repopulateReplica'](){const d=this;if(d[a3(0xbd,0x109)]){return;}const {replica:e,calendarManagerStore:f}=d;if(e){d[a3(0x24,0x6c)](e,!![]);}d[a3(0xf6,0xc9)](a3(-0x4,0x60));e?.[a3(0xfa,0x126)]();const g=d['replica']=d[a3(0x2c,0x8e)]();g[a3(0x76,0xbc)]([d,d[a3(0x78,0xae)]]);const h=new Map();for(const i of d['dataStores']){h['set'](i,i[a3(0xde,0xb6)](d,!![]));}if(h[a3(0x10c,0x12a)](f)<f['totalCount']){d[a3(0x110,0x10c)][a3(0x80,0xb6)](d,!![]);}if(e){g['activeTransaction'][a3(0x150,0xf1)](e[a3(0x14a,0x132)][a3(0xb7,0x57)]);}d['repopulateStores'][a3(0x171,0x126)]();function a3(a,b){return q(b-0x180,a);}d['trigger']('repopulateReplica');}['beforeCommitAsync'](){function a4(a,b){return q(b-0x4af,a);}if(this[a4(0x3e0,0x3e6)][a4(0x471,0x3f9)]&&!this[a4(0x463,0x473)]){this[a4(0x425,0x3e6)][a4(0x4c4,0x444)]();return this[a4(0x3d6,0x3ea)][a4(0x3e7,0x3f6)]();}return null;}[q(-0x114,-0xd4)](d,e=![]){if(e){this[a5(-0xad,-0x97)](d);}function a5(a,b){return q(b-0x3d,a);}this['defaultCalendar'][a5(-0x78,-0xd7)](d);super[a5(-0x60,-0xd7)](d);this['replica']=null;}[q(-0xd4,-0x138)](d,e){d=d||this[a6(0xc1,0xdc)];function a6(a,b){return q(b-0x210,a);}e=e||this[a6(0x13a,0x16b)];e[a6(0x246,0x1cd)](f=>{if(f[a7(0xbe,0x66)]){return;}function a7(a,b){return a6(b,a- -0xb0);}if(!this[a7(0x11f,0xdf)][a7(0xb7,0xd9)](f)||f[a7(0xe7,0x159)]){f[a7(0x62,0xf)](g=>{g['unlink'](d);},![],![],{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}});}[q(-0x9b,-0xac)](){function a8(a,b){return q(a-0x3bb,b);}return this[a8(0x2f6,0x353)];}async['addEvents'](d){this['eventStore']['add'](d);function a9(a,b){return q(a-0x5b,b);}return this[a9(-0x5e,-0x36)]();}async[q(-0x69,-0xa0)](d){this[aa(0xd,0x2e)]['add'](d);function aa(a,b){return q(b-0x141,a);}return this[aa(0xcd,0x88)]();}[q(-0xae,-0x43)](d){function ab(a,b){return q(a-0x365,b);}this['eventStore'][ab(0x279,0x2b1)](d);}async[q(-0x12f,-0xc0)](d){this[ac(-0x5d,-0xc0)]['remove'](d);function ac(a,b){return q(a-0xb6,b);}return this[ac(-0x3,-0x48)]();}[q(-0x7b,-0x5f)](d){function ad(a,b){return q(b-0x134,a);}this['eventStore'][ad(0xbb,0x9f)](d);}async[q(-0x67,-0x10)](d){function ae(a,b){return q(b- -0x8b,a);}this[ae(-0x1ec,-0x19e)][ae(-0x13d,-0x120)](d);return this[ae(-0x115,-0x144)]();}[q(-0xe0,-0x139)](){function af(a,b){return q(b-0x1a1,a);}return this[af(0x1b7,0x162)];}[q(-0x6d,-0xd8)](d){function ag(a,b){return q(a- -0x40,b);}this[ag(-0x7f,-0x2a)]=d;this[ag(-0x7f,-0x4)][ag(-0x80,-0x2a)]({'restoringStart':this['onSTMRestoringStart'],'restoringStop':this[ag(-0x111,-0x13c)],'thisObj':this});}[q(-0x6f,-0x2b)](){return this;}*['calculateEffectiveDataOrVisualCalendar'](d){function ah(a,b){return q(b-0xf9,a);}let e=yield this['$'][ah(-0xd,0x4a)];if(e){yield e['$'][ah(0x7b,0xa6)];}else{e=this['defaultCalendar'];}return e;}[q(-0x115,-0xeb)](d){function ai(a,b){return q(b-0x539,a);}const e=this['eventStore'];if(e&&this['stm'][ai(0x4cf,0x478)](e)){this[ai(0x47a,0x4fa)][ai(0x4c9,0x4cb)](e);e['unjoinRecordsFromProject'](this);this[ai(0x458,0x443)](e);const f=e['assignmentsForRemoval'];f[ai(0x539,0x4f6)](g=>{function aj(a,b){return ai(b,a- -0x382);}const h=g[aj(0x13f,0x116)];if(h){const i=d[aj(0xa1,0xf4)](h['id']);if(i){g[aj(0x13f,0x157)]=i;f[aj(0x14f,0x1c1)](g);}}});e['afterEventRemoval']();}if(!d||!(d instanceof _end)){const g=d?.['storeClass']||this[ai(0x4e8,0x4d9)];this[ai(0x469,0x426)]=new g(_enf[ai(0x47a,0x4de)]({'modelClass':this[ai(0x49d,0x4a5)],'project':this,'stm':this[ai(0x559,0x4fa)]},d||{}));}else{this['eventStore']=d;if(d[ai(0x480,0x497)]){d['project']=this;}else{d['setProject'](this);this['stm'][ai(0x4c2,0x49b)](d);if(d[ai(0x3e4,0x444)]&&d[ai(0x4f8,0x492)]!==this){this[ai(0x4e6,0x487)](d['rootNode'][ai(0x491,0x46d)]||[]);d[ai(0x43e,0x492)]=this;}else{d[ai(0x4cf,0x46f)](this);}}}this[ai(0x46e,0x455)](this[ai(0x3f4,0x426)]);this[ai(0x4ff,0x482)](ai(0x4c1,0x4cd),{'store':this[ai(0x3b2,0x426)]});}[q(-0xbc,-0xce)](d){const e=this['dependencyStore'];function ak(a,b){return q(b-0xda,a);}if(e&&this['stm'][ak(-0xa,0x19)](e)){this[ak(0x94,0x9b)]['removeStore'](e);this[ak(0x12,-0x1c)](e);}if(!d||!(d instanceof _end)){const f=d?.[ak(-0x4e,-0x2a)]||this[ak(0x3,-0x4c)];this[ak(0xcd,0x6a)]=new f(_enf['assign']({'modelClass':this[ak(0x2a,0x96)],'project':this,'stm':this[ak(0xf2,0x9b)]},d||{}));}else{this['dependencyStore']=d;if(d[ak(-0x1a,0x38)]){d[ak(0x59,0x18)]=this;}else{d[ak(-0x38,0x17)](this);this['stm'][ak(-0x30,0x3c)](d);d[ak(0x4d,0x10)](this);}}this[ak(0x6f,-0xa)](this[ak(0xc,0x6a)]);this[ak(0x55,0x23)](ak(0xcf,0x50),{'store':this[ak(0x67,0x6a)]});}[q(-0xe6,-0x85)](d){const e=this[al(0x2cd,0x303)];if(e&&this[al(0x3c0,0x3d7)][al(0x33e,0x2c4)](e)){this[al(0x3c0,0x37d)][al(0x391,0x30f)](e);e[al(0x2d8,0x34b)](this);this[al(0x309,0x345)](e);const f=e[al(0x321,0x2ed)];f[al(0x3bc,0x40c)](g=>{function am(a,b){return al(a- -0x3df,b);}const h=g[am(-0xe0,-0x115)];if(h){const i=d[am(-0xf6,-0x171)](h['id']);if(i){g[am(-0xe0,-0x8d)]=i;f[am(-0x48,-0xb4)](g);}}});e['afterResourceRemoval']();}function al(a,b){return q(a-0x3ff,b);}if(!d||!(d instanceof _end)){const g=d?.[al(0x2fb,0x379)]||this['resourceStoreClass'];this['resourceStore']=new g(_enf[al(0x3a4,0x3d9)]({'modelClass':this[al(0x365,0x373)],'project':this,'stm':this[al(0x3c0,0x3c2)]},d||{}));}else{this[al(0x2cd,0x259)]=d;if(d[al(0x35d,0x36c)]){d[al(0x33d,0x35f)]=this;}else{d[al(0x33c,0x3aa)](this);this[al(0x3c0,0x425)][al(0x361,0x33c)](d);d['joinRecordsToProject'](this);}}this['attachStore'](this['resourceStore']);this[al(0x348,0x36e)]('resourceStoreChange',{'store':this[al(0x2cd,0x2d9)]});}['setAssignmentStore'](d){const e=this['assignmentStore'];if(e&&this['stm']['hasStore'](e)){this['stm'][an(-0xd,0x1a)](e);e[an(-0xc6,-0x104)](this);this[an(-0x95,-0xa2)](e);}function an(a,b){return q(a-0x61,b);}if(!d||!(d instanceof _end)){const f=d?.['storeClass']||this[an(-0x50,-0x82)];this[an(-0xbc,-0x123)]=new f(_enf[an(0x6,0x80)]({'modelClass':this['assignmentModelClass'],'project':this,'stm':this['stm']},d||{}));}else{this[an(-0xbc,-0x11c)]=d;if(d[an(-0x41,-0x61)]){d['project']=this;}else{d['setProject'](this);this[an(0x22,-0x13)]['addStore'](d);d['joinRecordsToProject'](this);}}this[an(0x25,-0x22)]&&this[an(-0x93,-0x88)]();this[an(-0x83,-0xb8)](this[an(-0xbc,-0xf3)]);this[an(-0x56,-0x54)](an(-0xaa,-0x72),{'store':this[an(-0xbc,-0x63)]});}['setCalendarManagerStore'](d){const e=this[ao(-0x299,-0x27d)];function ao(a,b){return q(b- -0x209,a);}if(e&&this[ao(-0x2b7,-0x248)][ao(-0x2ee,-0x2ca)](e)){this[ao(-0x292,-0x248)][ao(-0x276,-0x277)](e);this[ao(-0x371,-0x2ff)](e);}if(!d||!(d instanceof _end)){const f=d?.[ao(-0x351,-0x30d)]||this['calendarManagerStoreClass'];this[ao(-0x2f5,-0x27d)]=new f(_enf[ao(-0x2e5,-0x264)]({'modelClass':this[ao(-0x314,-0x308)],'project':this,'stm':this['stm']},d||{}));}else{this['calendarManagerStore']=d;if(d){if(d[ao(-0x2b6,-0x2ab)]){d['project']=this;}else{d['setProject'](this);this[ao(-0x248,-0x248)][ao(-0x318,-0x2a7)](d);d['joinRecordsToProject'](this);}}}this[ao(-0x31e,-0x2ed)](this[ao(-0x2a6,-0x27d)]);this[ao(-0x2c1,-0x2c0)](ao(-0x2ce,-0x342),{'store':this[ao(-0x278,-0x27d)]});}async['isValidDependency'](...d){return!![];}['rejectStmTransaction'](d){d=d||this['stm'];function ap(a,b){return q(b-0x40e,a);}if(d['transaction']){if(d[ap(0x2e8,0x2d9)][ap(0x30d,0x388)]){d[ap(0x41b,0x39b)](e=>e[ap(0x3b5,0x3d0)]());d[ap(0x329,0x30c)]();d[ap(0x39c,0x39b)](e=>e['endBatch']());}else{d['stopTransaction']();}}}async['tryPropagateWithChanges'](d){const f=this[aq(0x3bf,0x35d)],g=f[aq(0x2b3,0x314)],h=f[aq(0x2f1,0x2e4)];if(g){f[aq(0x271,0x2c9)]();}else{if(h){f['autoRecord']=![];}if(f[aq(0x2a8,0x290)]){f[aq(0x320,0x2f4)]();}}f[aq(0x2f5,0x2cd)]();d();let i=!![];try{const j=await this[aq(0x309,0x2e3)]();i=!j[aq(0x295,0x2f6)];}catch(k){if(!/cycle/i['test'](k))throw k;i=![];}if(i){f[aq(0x31d,0x2f4)]();if(g){f['resetQueue']();}}else{this[aq(0x29e,0x2d7)][aq(0x2db,0x320)]();this['rejectStmTransaction'](f);}f['disabled']=g;function aq(a,b){return q(b-0x39c,a);}f[aq(0x278,0x2e4)]=h;return i;}async[q(-0xe1,-0xab)](d){return this['queue'](()=>this['tryPropagateWithChanges'](d));}[q(-0x91,-0x95)](d,e){const f=this;function ar(a,b){return q(b-0x68,a);}return f[ar(-0x1f,-0x7f)][ar(-0x93,-0x29)](async function g(){return d();},e);}[q(-0x101,-0x104)](){const {replica:d}=this;function as(a,b){return q(b-0x4ad,a);}return this[as(0x3dc,0x436)]||!this['isRepopulatingStores']&&(d?!(d[as(0x3c5,0x3fd)]&&(d[as(0x426,0x41b)]()||d[as(0x4c6,0x44f)])):!![]);}[q(-0x112,-0x153)](d){const e=[];function at(a,b){return q(a-0x582,b);}if(this[at(0x4d3,0x4d0)]===d)e[at(0x4bb,0x44c)](this);e[at(0x4bb,0x49f)](...this[at(0x46f,0x47a)][at(0x508,0x54e)](f=>f['calendar']===d,!![]));e[at(0x4bb,0x43a)](...this[at(0x450,0x442)]['query'](f=>f['calendar']===d,!![]));if(d['children']?.['length']){for(const f of d['children']){e['push'](...this[at(0x470,0x453)](f));}}return e;}[q(-0xe5,-0x63)](d){function au(a,b){return q(b-0x13d,a);}const e=this[au(0x5a,0x2b)](d);for(const f of e){f[au(0xf,0x8e)]=null;}}static get[q(-0x11f,-0x13e)](){return{'assignmentsData':null,'calendarsData':null,'dependenciesData':null,'eventsData':null,'resourcesData':null,'eventStore':null,'resourceStore':null,'assignmentStore':null,'dependencyStore':null,'calendarManagerStore':null,'eventModelClass':null,'resourceModelClass':null,'assignmentModelClass':null,'dependencyModelClass':null,'calendarModelClass':null,'repopulateOnDataset':!![]};}static get[q(-0xad,-0xbb)](){return{'repopulateReplica':0xa};}}function q(a,b){return _enb(a- -0x1dd,b);}c[q(-0x76,-0xcf)]=!![];__decorate([model_field({'type':q(-0x5c,-0xb7),'defaultValue':!![]})],c[q(-0xce,-0x5f)],q(-0x13a,-0x141),void 0x0);__decorate([model_field({'type':q(-0x5c,-0x3e),'defaultValue':![]})],c['prototype'],'skipNonWorkingTimeWhenSchedulingManually',void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[q(-0xce,-0x5a)],'skipNonWorkingTimeInDurationWhenSchedulingManually',void 0x0);__decorate([model_field({'type':q(-0x138,-0x13a),'defaultValue':Direction[q(-0x85,-0xb4)]},{'sync':!![]})],c[q(-0xce,-0xc2)],q(-0xd6,-0x99),void 0x0);return c;}){}export{SchedulerBasicProjectMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function s(a,b){return _enb(a- -0x4b,b);}const c=a();while(!![]){try{const d=-parseInt(s(0x1a7,0x1c7))/0x1+-parseInt(s(0x178,0x192))/0x2*(parseInt(s(0x176,0x1ac))/0x3)+parseInt(s(0x18d,0x1c9))/0x4*(-parseInt(s(0x16e,0x19b))/0x5)+parseInt(s(0x1db,0x207))/0x6*(parseInt(s(0x18b,0x155))/0x7)+-parseInt(s(0x1ca,0x1e4))/0x8*(-parseInt(s(0x16d,0x186))/0x9)+parseInt(s(0x1e3,0x1a8))/0xa+parseInt(s(0x1d3,0x1b1))/0xb*(parseInt(s(0x1c4,0x193))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2c751));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{SchedulerCoreEvent}from'./SchedulerCoreEvent.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';import _end from'@bryntum/core-thin/lib/data/Model.js';import _ene from'@bryntum/core-thin/lib/mixin/Delayable.js';import{CoreEventStoreMixin}from'../../store/CoreEventStoreMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b7;let f=c[d];return f;};return _enb(a,b);}import{CoreAssignmentMixin}from'./CoreAssignmentMixin.js';import{CoreAssignmentStoreMixin}from'../../store/CoreAssignmentStoreMixin.js';import{CoreResourceMixin}from'./CoreResourceMixin.js';import{CoreResourceStoreMixin}from'../../store/CoreResourceStoreMixin.js';import{CorePartOfProjectGenericMixin}from'../../CorePartOfProjectGenericMixin.js';import{CoreDependencyStoreMixin}from'../../store/CoreDependencyStoreMixin.js';function _ena(){const ac=['resolve','dependenciesData','changeResourceStore','defaultCalendar','isAssignmentStore','event','assignmentsData','isDestroyed','assignmentStore','trigger','isPerformingCommit','calendarManagerStore','addResource','addStore','104366tOlerb','getDefaultConfiguration','unspecifiedTimeIsWorking','assignment','doDestroy','endBatch','beginBatch','forEach','destroy','clear','SchedulerCoreProjectMixin','effectiveCalendar','getById','silenceInitialCommit','afterEventRemoval','calendarModelClass','hasPendingAutoCommit','detachStore','dependency','calendar','hasLoadedDataToCommit','date','prototype','assign','hasStore','unScheduleAutoCommit','events','isWritingData','assignmentStoreChange','2496oACtVu','getStm','resourceStore','removeStore','resolveStoreAndModelClass','stateRestoringDone','40AmNykY','size','stm','onCommitAsync','startDate','configurable','updateDependencyStore','updateAssignmentStore','modelClass','20031NIWvEw','setDependencyStore','doCommitAsync','resourcesData','setResourceStore','$invalidated','add','suspendSortOnUpdate','308058adDzgj','joinRecordsToProject','commitAsync','attachStore','endDate','$leaving','setProject','finalizeInvalidated','151020Eokkwa','unjoinRecordsFromProject','setEventStore','load','ModelClass','tasksData','suspendAutoCommit','changeDependencyStore','tasks','data','eventStoreChange','setAssignmentStore','bufferedCommitAsync','crudManager','isInitialCommitPerformed','setTimeout','commitFinalized','delete','beforeCommit','340839ZBParM','1070hSgCtW','loadInlineData','addAssignment','dependencyStore','isEngineReady','updateCalendarManagerStore','propagateAsync','setCalendarManagerStore','3kqRQan','updateResourceStore','451686YRnJzg','$stm','applyConfigs','addEvent','resource','resumeSortOnUpdate','construct','dependencies','masterStore','dataPropertyDeprecation','commitLoad','project','StoreClass','resources','fields','afterResourceRemoval','disable','eventsData','dataReady','35sCqTha','$calendar','6124NMUywn','eventStore','ongoing','calendarsData','isLoadingInlineData','calendars','dependencyStoreChange','assignments','$name','resourceStoreChange','clearTimeout','refresh'];_ena=function(){return ac;};return _ena();}import{CoreDependencyMixin}from'./CoreDependencyMixin.js';import{CoreCalendarMixin}from'./CoreCalendarMixin.js';import{CoreCalendarManagerStoreMixin}from'../../store/CoreCalendarManagerStoreMixin.js';import{delay}from'../../../util/Functions.js';import _enf from'@bryntum/core-thin/lib/data/stm/StateTrackingManager.js';import{AbstractProjectMixin}from'../AbstractProjectMixin.js';import _eng from'@bryntum/core-thin/lib/helper/ObjectHelper.js';class DelayableWrapper extends Mixin([],_ene){}class SchedulerCoreProjectMixin extends Mixin([AbstractProjectMixin,CorePartOfProjectGenericMixin,DelayableWrapper,_end],a=>{const b=a[t(0x15c,0x14a)];class c extends a{static get[t(0x125,0x101)](){function u(a,b){return t(b- -0x2bf,a);}return[{'name':u(-0x129,-0x152),'type':u(-0x132,-0x164)},{'name':u(-0x158,-0x141),'type':u(-0x1a0,-0x164)}];}static get[t(0x16e,0x1ad)](){return{'stm':{},'eventStore':{},'assignmentStore':{},'resourceStore':{},'dependencyStore':{},'calendarManagerStore':{},'eventModelClass':SchedulerCoreEvent,'assignmentModelClass':CoreAssignmentMixin,'resourceModelClass':CoreResourceMixin,'dependencyModelClass':CoreDependencyMixin,'calendarModelClass':CoreCalendarMixin,'eventStoreClass':CoreEventStoreMixin,'assignmentStoreClass':CoreAssignmentStoreMixin,'resourceStoreClass':CoreResourceStoreMixin,'dependencyStoreClass':CoreDependencyStoreMixin,'calendarManagerStoreClass':CoreCalendarManagerStoreMixin};}[t(0x11d,0x15c)](d={}){const e=this;const {resources:f,events:g,dependencies:h,assignments:i,calendars:j}=d;delete d[v(-0xe,-0x38)];delete d['events'];function v(a,b){return t(b- -0x15c,a);}delete d[v(-0x69,-0x3e)];delete d[v(-0x2a,-0x29)];delete d['calendars'];delete d[v(0x5e,0x2e)];e[v(-0x5,0x1b)]=new Set();e[v(0x48,0x23)]=new Set();e['isPerformingCommit']=![];e[v(0xb,-0x9)]=!![];e[v(0x3,-0x2e)]=Promise[v(0x7,-0x24)]();if(d[v(-0x64,-0x2f)]&&!d[v(0x15,-0x1c)]){const q=d[v(-0x22,-0x2f)][v(0x7,-0x3d)]||d[v(-0x53,-0x2f)];const r=q[v(-0x55,-0x1c)]||q[v(0x4b,0x33)]?.['assignmentStore'];if(r?.[v(-0x40,-0x20)]){d[v(-0x55,-0x1c)]=r;e['isSharingAssignmentStore']=!![];}}b['construct']['call'](e,d);e[v(0x10,-0x21)]=new e[(v(-0x2a,-0x19))][(v(-0x1d,0x15))]({'unspecifiedTimeIsWorking':e[v(-0x25,-0x14)]});e[v(-0x25,-0x21)][v(-0x42,-0x3a)]=e;const {calendarsData:k,eventsData:l,dependenciesData:m,resourcesData:n,assignmentsData:o}=e;const p=Boolean(k||l||m||n||o||j||g||h||f||i);if(p){e[v(-0x41,-0x4e)]({'calendarsData':k,'eventsData':l,'dependenciesData':m,'resourcesData':n,'assignmentsData':o,'calendars':j,'events':g,'dependencies':h,'resources':f,'assignments':i});delete e[v(-0x6d,-0x2d)];delete e['eventsData'];delete e[v(-0x55,-0x23)];delete e[v(-0x21,0x19)];delete e[v(-0x2d,-0x1e)];}else{e[v(-0x5,0x32)]();}}[t(0x14a,0x187)](){function w(a,b){return t(b- -0x2be,a);}const d=this;d[w(-0x1ce,-0x191)]?.[w(-0x19f,-0x170)]();d[w(-0x1eb,-0x1ae)]?.[w(-0x197,-0x170)]();d[w(-0x16f,-0x17e)]?.[w(-0x12b,-0x170)]();d[w(-0x16f,-0x159)]?.[w(-0x1ab,-0x170)]();d['calendarManagerStore']?.['destroy']();d['defaultCalendar'][w(-0x169,-0x170)]();d['stm']?.['destroy']();b[w(-0x199,-0x174)]['call'](this);}async[t(0x10e,0xe8)](d){const e=this;e[x(0x44d,0x450)]=!![];e[x(0x43d,0x3f9)]?.(d||{});if(d['calendars']||d[x(0x44c,0x468)]){e[x(0x460,0x474)][x(0x4a8,0x4e3)]=d[x(0x44e,0x47d)]||d[x(0x44c,0x45b)];}function x(a,b){return t(a-0x31d,b);}if(d[x(0x441,0x457)]||d[x(0x492,0x486)]){e[x(0x482,0x4a4)][x(0x4a8,0x48f)]=d['resources']||d['resourcesData'];}if(d['assignments']||d['assignmentsData']){e[x(0x45d,0x467)]['data']=d['assignments']||d[x(0x45b,0x448)];}if(d[x(0x47d,0x47b)]||d[x(0x445,0x434)]){e[x(0x44a,0x441)][x(0x4a8,0x4a8)]=d[x(0x47d,0x492)]||d[x(0x445,0x43d)];}if(d['tasks']||d['tasksData']){e[x(0x44a,0x48c)]['data']=d[x(0x4a7,0x4d5)]||d[x(0x4a4,0x4a3)];}if(d[x(0x43b,0x456)]||d[x(0x456,0x477)]){e['dependencyStore']['data']=d[x(0x43b,0x471)]||d[x(0x456,0x455)];}await e[x(0x43e,0x459)]();e[x(0x44d,0x457)]=![];return;}async['commitLoad'](){function y(a,b){return t(a- -0x2a7,b);}await this[y(-0x12b,-0x133)]();if(!this['isDestroyed'])this['trigger'](y(-0x122,-0xea));}[t(0x167,0x1a3)](d,e){const f=e?.['storeClass']||this[d+z(0x544,0x587)];let g=e?.[z(0x5bb,0x5d5)];function z(a,b){return t(b-0x464,a);}if(!g){if(this[z(0x5ce,0x5ab)]()[d+z(0x61a,0x5ea)]!==f[z(0x59e,0x5ab)]()[z(0x5f0,0x5d5)]){g=f[z(0x5bc,0x5ab)]()[z(0x5a8,0x5d5)];}else{g=this[d+'ModelClass'];}}return{'storeClass':f,'modelClass':g};}[t(0x184,0x152)](d){function A(a,b){return t(b- -0x1c3,a);}this[A(-0x83,-0x96)]=d;}['changeEventStore'](d,e){const f=this,{stm:g}=f;f[B(-0xed,-0x104)](e);if(!(d instanceof _enc)){const {storeClass:h,modelClass:i}=f['resolveStoreAndModelClass'](B(-0x107,-0x141),d);d=new h(_eng[B(-0xe7,-0xed)]({'modelClass':i,'project':f,'stm':g},d));}else{d[B(-0x122,-0x102)]=f;g[B(-0xff,-0x13b)](d);d[B(-0xc9,-0xde)](f);}if(e&&g[B(-0xe6,-0xaf)](e)){g[B(-0xde,-0xe6)](e);e[B(-0xc1,-0xff)](f);const {assignmentsForRemoval:j}=e;j[B(-0xf7,-0xf4)](k=>{function C(a,b){return B(a-0x638,b);}const l=k[C(0x531,0x538)];if(l){const m=d['getById'](l['id']);if(m){k['event']=m;j[C(0x587,0x565)](k);}}});e[B(-0xf0,-0x10a)]();}d['setProject'](f);function B(a,b){return t(a- -0x244,b);}return d;}['updateEventStore'](d,e){function D(a,b){return t(a- -0x2e5,b);}this['attachStore'](d);this[D(-0x1a4,-0x1b0)](D(-0x159,-0x119),{'store':d});}[t(0x18d,0x1ca)](d){function E(a,b){return t(a- -0x24b,b);}this[E(-0x10b,-0x13e)]=d;}['changeAssignmentStore'](d,e){const f=this,{stm:g}=f;f[F(0x42c,0x44b)](e);if(e&&g[F(0x433,0x420)](e)){g['removeStore'](e);e[F(0x458,0x423)](f);}function F(a,b){return t(a-0x2d5,b);}if(!(d instanceof _enc)){const {storeClass:h,modelClass:i}=f['resolveStoreAndModelClass'](F(0x41e,0x452),d);d=new h(_eng[F(0x432,0x406)]({'modelClass':i,'project':f,'stm':g},d));}else{d['project']=f;g[F(0x41a,0x42c)](d);d[F(0x450,0x41b)](f);}d[F(0x455,0x48c)](f);return d;}[t(0x170,0x181)](d,e){function G(a,b){return t(b- -0x51,a);}this[G(0xee,0x12c)](d);this['trigger'](G(0x152,0x111),{'store':d});}[t(0x176,0x192)](d){function H(a,b){return t(b- -0x2d4,a);}this[H(-0x142,-0x16f)]=d;}[t(0x13a,0x12b)](d,e){const f=this,{stm:g}=f;function I(a,b){return t(a- -0xfe,b);}f['detachStore'](e);if(!(d instanceof _enc)){const {storeClass:h,modelClass:i}=f[I(0x69,0x63)](I(0x1d,-0x12),d);d=new h(_eng[I(0x5f,0x61)]({'modelClass':i,'project':f,'stm':g},d));}else{d[I(0x24,0x61)]=f;g[I(0x47,0x8b)](d);d[I(0x7d,0x77)](f);}if(e&&g[I(0x60,0x8b)](e)){g[I(0x68,0x6a)](e);e[I(0x85,0x8b)](f);const {assignmentsForRemoval:j}=e;j[I(0x4f,0x5f)](k=>{function J(a,b){return I(b-0x46f,a);}const l=k['resource'];if(l){const m=d[J(0x4ae,0x4c3)](l['id']);if(m){k[J(0x477,0x48c)]=m;j[J(0x518,0x504)](k);}}});e[I(0x28,0x38)]();}d['setProject'](f);return d;}[t(0x116,0x11e)](d,e){this['attachStore'](d);function K(a,b){return t(a-0x2da,b);}this['trigger'](K(0x40f,0x3da),{'store':d});}[t(0x173,0x170)](d){function L(a,b){return t(a-0x265,b);}this[L(0x375,0x38b)]=d;}[t(0x189,0x170)](d,e){const f=this;f[M(0x3fb,0x3d4)](e);function M(a,b){return t(a-0x2a4,b);}if(!(d instanceof _enc)){const {storeClass:g,modelClass:h}=f[M(0x40b,0x407)](M(0x3fc,0x42a),d);d=new g(_eng[M(0x401,0x43f)]({'modelClass':h,'project':f,'stm':f[M(0x40f,0x3d1)]},d));}else{d[M(0x3c6,0x384)]=f;f[M(0x40f,0x427)][M(0x3e9,0x3fb)](d);d[M(0x41f,0x453)](f);}return d;}[t(0x16f,0x1b0)](d,e){function N(a,b){return t(b-0x366,a);}this[N(0x519,0x4e3)](d);this[N(0x4b3,0x4a7)](N(0x488,0x498),{'store':d});}[t(0x114,0xd7)](d){function O(a,b){return t(a- -0x137,b);}this[O(0xc,0x4b)]=d;}['changeCalendarManagerStore'](d,e){function P(a,b){return t(b- -0x2a1,a);}const f=this;f['detachStore'](e);if(!(d instanceof _enc)){const g=d?.['storeClass']||f['calendarManagerStoreClass'];const h=d?.[P(-0x145,-0x130)]||g[P(-0x14e,-0x15a)]()[P(-0x15b,-0x130)]||f[P(-0x125,-0x14c)];d=new g(_eng[P(-0x180,-0x144)]({'modelClass':h,'project':f,'stm':f['stm']},d));}else{f[P(-0x118,-0x136)][P(-0x183,-0x15c)](d);}d['setProject'](f);return d;}[t(0x112,0x147)](d,e){function Q(a,b){return t(a- -0x280,b);}this[Q(-0x103,-0xc4)](d);this[Q(-0x13f,-0x16a)]('calendarManagerStoreChange',{'store':d});}get['calendar'](){function R(a,b){return t(a- -0xc1,b);}return this[R(0x6a,0x4d)]||this['defaultCalendar'];}set[t(0x159,0x175)](d){function S(a,b){return t(b- -0x10b,a);}this[S(0x5f,0x20)]=d;}get[t(0x151,0x177)](){function T(a,b){return t(a- -0x1f9,b);}return this[T(-0xa0,-0xb8)];}async[t(0x11a,0x158)](d){function U(a,b){return t(b- -0x320,a);}this[U(-0x215,-0x1f3)]['add'](d);return this[U(-0x18c,-0x1a4)]();}async[t(0x10f,0x122)](d){function V(a,b){return t(a- -0x27c,b);}this[V(-0x13c,-0x152)]['add'](d);return this[V(-0x100,-0xcb)]();}async[t(0x144,0x134)](d){this[W(-0x77,-0xab)][W(-0xa8,-0x98)](d);function W(a,b){return t(b- -0x210,a);}return this['commitAsync']();}async['addDependency'](d){this[X(0x40e,0x3ff)][X(0x428,0x467)](d);function X(a,b){return t(b-0x2ef,a);}return this[X(0x440,0x46b)]();}[t(0x18e,0x1bc)](){function Y(a,b){return t(a-0xd6,b);}if(!this[Y(0x22c,0x25a)]){this[Y(0x267,0x239)]({'fn':()=>this[Y(0x252,0x263)]?.(),'name':Y(0x252,0x244),'delay':0xa});}}get[t(0x156,0x186)](){function Z(a,b){return t(b- -0x2f5,a);}return this['hasTimeout'](Z(-0x137,-0x179));}[t(0x15f,0x19a)](){function a0(a,b){return t(b- -0x2f8,a);}this[a0(-0x1c6,-0x1c2)](a0(-0x15b,-0x17c));}async[t(0x17c,0x156)](){function a1(a,b){return t(a-0x30f,b);}if(this[a1(0x451,0x456)])return this[a1(0x43d,0x479)];this[a1(0x450,0x419)](a1(0x41a,0x454));return this['ongoing']=this[a1(0x483,0x480)]();}async[t(0x174,0x147)](){const d=this;function a2(a,b){return t(a- -0x217,b);}if(!d[a2(-0xa0,-0x6c)][a2(-0xad,-0x7a)]&&!d['$leaving'][a2(-0xad,-0x8e)]&&!d[a2(-0xbd,-0x93)]&&!d['isInitialCommit']){d['trigger'](a2(-0x85,-0xc8));return;}d[a2(-0x98,-0x62)][a2(-0xc8,-0xc9)]();d[a2(-0xd5,-0xf5)]=!![];await delay(0x0);if(!d[a2(-0xd8,-0xde)]){d[a2(-0xb8,-0xfc)]();for(const i of d[a2(-0xa0,-0xb6)]){i['calculateInvalidated']();}const {isInitialCommit:e,silenceInitialCommit:f}=d;const g=e&&f;d[a2(-0xd7,-0x103)]['onCommitAsync']();d[a2(-0x107,-0xec)][a2(-0xab,-0xed)]();d['isInitialCommitPerformed']=!![];d[a2(-0xbd,-0xdd)]=![];d[a2(-0xd5,-0xfc)]=![];const h=[d[a2(-0xd7,-0x114)],d['dependencyStore'],d[a2(-0xea,-0xb7)],d[a2(-0xb2,-0x81)],d[a2(-0xd4,-0x118)]];h[a2(-0xca,-0x8f)](j=>{j[a3(0x40d,0x3d2)]?.();function a3(a,b){return a2(a-0x49c,b);}j[a3(0x3fe,0x421)]?.();});d['isWritingData']=!![];d[a2(-0xd6,-0xe4)](a2(-0xe0,-0x111),{'isInitialCommit':e,'isCalculated':!![]});if(g){for(const j of d[a2(-0xa0,-0xa7)]){j[a2(-0x96,-0xa1)](!![]);}}else{for(const k of d['$invalidated']){k[a2(-0xcb,-0xc0)](!![]);k[a2(-0x96,-0x5a)]();}for(const l of d[a2(-0xa0,-0x6c)]){l[a2(-0xcc,-0x8f)](![],!![]);}}d[a2(-0xb6,-0xb8)]=![];d[a2(-0xa0,-0x99)][a2(-0xc8,-0x95)]();d[a2(-0xd6,-0xd7)](a2(-0xee,-0xdd));h[a2(-0xca,-0xb4)](m=>{function a4(a,b){return a2(b-0x1ac,a);}m['resumeAutoCommit']?.();m[a4(0xa3,0xb1)]?.();});d[a2(-0xd6,-0xaa)](a2(-0x85,-0x9c));return!![];}}async[t(0x113,0xe2)](){function a5(a,b){return t(b-0xf2,a);}return this[a5(0x236,0x26e)]();}['invalidate'](d){this[a6(0x1c5,0x1d4)][a6(0x1c6,0x1a5)](d);function a6(a,b){return t(a-0x4e,b);}this[a6(0x1dc,0x204)]();}async['isValidDependency'](){return!![];}[t(0x164,0x16f)](){function a7(a,b){return t(a-0x342,b);}return this[a7(0x4ad,0x48e)];}set[t(0x16b,0x175)](d){function a8(a,b){return t(b-0x444,a);}d=this['$stm']=new _enf(_eng[a8(0x5ba,0x5a1)]({'disabled':!![]},d));d['ion']({'restoringStop':async()=>{d[a9(0x4ec,0x4d7)]();await this[a9(0x519,0x52c)]();function a9(a,b){return a8(a,b- -0x94);}if(!this[a9(0x4e9,0x4ef)]){d['enable']();this[a9(0x4fc,0x4f1)](a9(0x516,0x518));}}});}get['stm'](){function aa(a,b){return t(b-0x82,a);}return this[aa(0x1bd,0x19a)];}[t(0x111,0x12f)](){function ab(a,b){return t(a-0x391,b);}return!this[ab(0x4e7,0x50e)]&&!this[ab(0x4d3,0x4e6)]&&this[ab(0x521,0x4e4)];}}c[t(0x134,0x105)]=t(0x150,0x11d);c[t(0x119,0x14f)]=!![];function t(a,b){return _enb(a- -0xac,b);}return c;}){}export{DelayableWrapper,SchedulerCoreProjectMixin};
|
|
1
|
+
(function(a,b){function s(a,b){return _enb(a- -0xb9,b);}const c=a();while(!![]){try{const d=parseInt(s(-0x16,-0x45))/0x1+parseInt(s(-0x35,-0x56))/0x2+-parseInt(s(0x1c,0x4))/0x3+parseInt(s(0x4a,0x58))/0x4*(-parseInt(s(-0x31,-0x53))/0x5)+-parseInt(s(-0x5,-0x26))/0x6*(-parseInt(s(0x47,0x7d))/0x7)+-parseInt(s(0x26,0xf))/0x8*(-parseInt(s(-0x3b,-0x63))/0x9)+parseInt(s(0x32,-0x2))/0xa*(parseInt(s(0x27,-0x14))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x96673));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{SchedulerCoreEvent}from'./SchedulerCoreEvent.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';import _end from'@bryntum/core-thin/lib/data/Model.js';import _ene from'@bryntum/core-thin/lib/mixin/Delayable.js';import{CoreEventStoreMixin}from'../../store/CoreEventStoreMixin.js';import{CoreAssignmentMixin}from'./CoreAssignmentMixin.js';import{CoreAssignmentStoreMixin}from'../../store/CoreAssignmentStoreMixin.js';import{CoreResourceMixin}from'./CoreResourceMixin.js';import{CoreResourceStoreMixin}from'../../store/CoreResourceStoreMixin.js';import{CorePartOfProjectGenericMixin}from'../../CorePartOfProjectGenericMixin.js';import{CoreDependencyStoreMixin}from'../../store/CoreDependencyStoreMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x77;let f=c[d];return f;};return _enb(a,b);}import{CoreDependencyMixin}from'./CoreDependencyMixin.js';import{CoreCalendarMixin}from'./CoreCalendarMixin.js';import{CoreCalendarManagerStoreMixin}from'../../store/CoreCalendarManagerStoreMixin.js';import{delay}from'../../../util/Functions.js';import _enf from'@bryntum/core-thin/lib/data/stm/StateTrackingManager.js';function _ena(){const a7=['1696342twPNUu','startDate','trigger','refresh','1215QmhBYf','destroy','dataReady','endBatch','assignment','calendarsData','$stm','finalizeInvalidated','isLoadingInlineData','project','suspendSortOnUpdate','addDependency','crudManager','calendarManagerStoreChange','getDefaultConfiguration','configurable','dependenciesData','isDestroyed','assignments','propagateAsync','tasksData','resourceStoreChange','changeAssignmentStore','clear','call','loadInlineData','setAssignmentStore','455528ZKPFZA','ion','eventsData','isWritingData','event','commitLoad','changeDependencyStore','detachStore','addStore','calendar','ongoing','updateAssignmentStore','assignmentStoreChange','data','masterStore','isInitialCommitPerformed','stm','2658RAHldg','addResource','hasStore','getById','applyConfigs','updateCalendarManagerStore','eventStore','construct','forEach','StoreClass','calendarModelClass','$name','calendars','hasTimeout','onCommitAsync','fields','assignmentsData','ModelClass','assign','isAssignmentStore','dataPropertyDeprecation','prototype','delete','resolve','doDestroy','beginBatch','afterResourceRemoval','bufferedCommitAsync','isInitialCommit','add','commitFinalized','assignmentStore','resourcesData','3321879yBDETV','unjoinRecordsFromProject','calendarManagerStoreClass','resource','isPerformingCommit','addAssignment','dependency','afterEventRemoval','events','resumeAutoCommit','39272TdqBin','55RBVJxp','SchedulerCoreProjectMixin','joinRecordsToProject','setCalendarManagerStore','tasks','changeEventStore','storeClass','defaultCalendar','commitAsync','$leaving','isChainedFromProject','789190GIfgIa','removeStore','hasPendingAutoCommit','unScheduleAutoCommit','setEventStore','resumeSortOnUpdate','setDependencyStore','endDate','silenceInitialCommit','isEngineReady','$calendar','dependencyStore','hasLoadedDataToCommit','calculateInvalidated','unspecifiedTimeIsWorking','setProject','changeCalendarManagerStore','modelClass','load','setTimeout','addEvent','9289gVPpKK','doCommitAsync','stateRestoringDone','14436oAspzt','dependencies','resolveStoreAndModelClass','updateResourceStore','resources','attachStore','calendarManagerStore','effectiveCalendar','suspendAutoCommit','576zDrfOX','isValidDependency','setResourceStore','size','$invalidated','resourceStore'];_ena=function(){return a7;};return _ena();}import{AbstractProjectMixin}from'../AbstractProjectMixin.js';import _eng from'@bryntum/core-thin/lib/helper/ObjectHelper.js';class DelayableWrapper extends Mixin([],_ene){}class SchedulerCoreProjectMixin extends Mixin([AbstractProjectMixin,CorePartOfProjectGenericMixin,DelayableWrapper,_end],a=>{const b=a[t(-0x32a,-0x311)];function t(a,b){return _enb(b- -0x3da,a);}class c extends a{static get[t(-0x33c,-0x317)](){function u(a,b){return t(a,b-0x606);}return[{'name':u(0x2bb,0x2b1),'type':'date'},{'name':u(0x330,0x31e),'type':'date'}];}static get[t(-0x342,-0x343)](){return{'stm':{},'eventStore':{},'assignmentStore':{},'resourceStore':{},'dependencyStore':{},'calendarManagerStore':{},'eventModelClass':SchedulerCoreEvent,'assignmentModelClass':CoreAssignmentMixin,'resourceModelClass':CoreResourceMixin,'dependencyModelClass':CoreDependencyMixin,'calendarModelClass':CoreCalendarMixin,'eventStoreClass':CoreEventStoreMixin,'assignmentStoreClass':CoreAssignmentStoreMixin,'resourceStoreClass':CoreResourceStoreMixin,'dependencyStoreClass':CoreDependencyStoreMixin,'calendarManagerStoreClass':CoreCalendarManagerStoreMixin};}[t(-0x2e3,-0x31f)](d={}){const e=this;const {resources:f,events:g,dependencies:h,assignments:i,calendars:j}=d;delete d['resources'];delete d[v(0x214,0x23d)];delete d[v(0x23b,0x209)];delete d['assignments'];delete d['calendars'];delete d[v(0x21b,0x221)];function v(a,b){return t(b,a-0x511);}e[v(0x1b9,0x1ac)]=new Set();e[v(0x220,0x20d)]=new Set();e[v(0x210,0x1ff)]=![];e[v(0x22a,0x261)]=!![];e[v(0x1e4,0x1ac)]=Promise[v(0x202,0x1cf)]();if(d[v(0x1f1,0x1db)]&&!d['assignmentStore']){const q=d[v(0x1f1,0x1ec)][v(0x1e8,0x21b)]||d[v(0x1f1,0x205)];const r=q['assignmentStore']||q[v(0x1cb,0x1bb)]?.[v(0x20a,0x1de)];if(r?.[v(0x1fe,0x245)]){d[v(0x20a,0x1cb)]=r;e['isSharingAssignmentStore']=!![];}}b[v(0x1f2,0x1ad)]['call'](e,d);e['defaultCalendar']=new e[(v(0x1b2,0x1dc))][(v(0x233,0x22c))]({'unspecifiedTimeIsWorking':e[v(0x230,0x276)]});e['defaultCalendar']['project']=e;const {calendarsData:k,eventsData:l,dependenciesData:m,resourcesData:n,assignmentsData:o}=e;const p=Boolean(k||l||m||n||o||j||g||h||f||i);if(p){e[v(0x1d8,0x1db)]({'calendarsData':k,'eventsData':l,'dependenciesData':m,'resourcesData':n,'assignmentsData':o,'calendars':j,'events':g,'dependencies':h,'resources':f,'assignments':i});delete e[v(0x1c4,0x1d9)];delete e['eventsData'];delete e[v(0x1cf,0x1ac)];delete e[v(0x20b,0x1f6)];delete e['assignmentsData'];}else{e[v(0x206,0x228)]();}}['doDestroy'](){const d=this;d[w(0x136,0x105)]?.[w(0x10b,0xd4)]();d[w(0x15a,0x141)]?.['destroy']();d[w(0x15d,0x11e)]?.[w(0xd0,0xd4)]();d['resourceStore']?.['destroy']();d['calendarManagerStore']?.[w(0x9b,0xd4)]();d[w(0x150,0x132)][w(0x9c,0xd4)]();d[w(0xc2,0xfe)]?.[w(0xe0,0xd4)]();function w(a,b){return t(a,b-0x425);}b[w(0x13a,0x117)][w(0xbe,0xeb)](this);}async[t(-0x342,-0x339)](d){const e=this;e[x(0x469,0x493)]=!![];function x(a,b){return t(b,a-0x7b3);}e[x(0x4a1,0x4e4)]?.(d||{});if(d['calendars']||d[x(0x466,0x491)]){e[x(0x454,0x47e)][x(0x489,0x49b)]=d[x(0x499,0x4ce)]||d[x(0x466,0x47c)];}if(d[x(0x452,0x478)]||d['resourcesData']){e[x(0x45c,0x422)]['data']=d[x(0x452,0x46c)]||d[x(0x4ad,0x49b)];}if(d[x(0x473,0x4a6)]||d[x(0x49d,0x476)]){e['assignmentStore']['data']=d[x(0x473,0x42d)]||d[x(0x49d,0x484)];}if(d['events']||d[x(0x47e,0x498)]){e[x(0x493,0x47c)][x(0x489,0x444)]=d['events']||d['eventsData'];}if(d['tasks']||d[x(0x475,0x47f)]){e[x(0x493,0x4b6)][x(0x489,0x4cf)]=d[x(0x4bd,0x4e8)]||d[x(0x475,0x4a7)];}if(d[x(0x4dd,0x514)]||d[x(0x471,0x476)]){e['dependencyStore'][x(0x489,0x4a4)]=d[x(0x4dd,0x4c4)]||d[x(0x471,0x436)];}await e[x(0x481,0x488)]();e['isLoadingInlineData']=![];return;}async[t(-0x306,-0x332)](){await this['commitAsync']();function y(a,b){return t(b,a-0x38c);}if(!this[y(0x4b,0x59)])this['trigger'](y(0xaf,0xc7));}[t(-0x388,-0x363)](d,e){const f=e?.[z(0x495,0x4ca)]||this[d+z(0x46c,0x44c)];function z(a,b){return t(b,a-0x789);}let g=e?.[z(0x4ab,0x4d7)];if(!g){if(this[z(0x445,0x401)]()[d+'ModelClass']!==f[z(0x445,0x428)]()[z(0x4ab,0x4b1)]){g=f[z(0x445,0x469)]()[z(0x4ab,0x464)];}else{g=this[d+z(0x474,0x484)];}}return{'storeClass':f,'modelClass':g};}[t(-0x2fd,-0x2eb)](d){this['eventStore']=d;}[t(-0x2c0,-0x2f5)](d,e){const f=this,{stm:g}=f;f[A(0x1c9,0x193)](e);if(!(d instanceof _enc)){const {storeClass:h,modelClass:i}=f[A(0x16e,0x160)](A(0x1a0,0x190),d);d=new h(_eng[A(0x1bb,0x1af)]({'modelClass':i,'project':f,'stm':g},d));}else{d['project']=f;if(!d[A(0x1f1,0x1d3)]){g[A(0x18c,0x194)](d);d['joinRecordsToProject'](f);}}if(e&&g[A(0x1c4,0x19f)](e)){g[A(0x1b9,0x1d5)](e);e[A(0x188,0x1bf)](f);const {assignmentsForRemoval:j}=e;j['forEach'](k=>{function B(a,b){return A(b,a- -0x4a4);}const l=k[B(-0x314,-0x311)];if(l){const m=d[B(-0x304,-0x2e0)](l['id']);if(m){k[B(-0x314,-0x2de)]=m;j[B(-0x2f1,-0x2f7)](k);}}});e[A(0x1f0,0x1c5)]();}function A(a,b){return t(a,b-0x4c3);}if(!d[A(0x1a4,0x1d3)]){d[A(0x1c7,0x1e3)](f);}return d;}['updateEventStore'](d,e){this[C(0x18a,0x189)](d);function C(a,b){return t(a,b-0x4e9);}this['trigger']('eventStoreChange',{'store':d});}[t(-0x33d,-0x338)](d){function D(a,b){return t(b,a-0x2ee);}this[D(-0x19,0x24)]=d;}[t(-0x376,-0x33c)](d,e){const f=this,{stm:g}=f;f['detachStore'](e);if(e&&g[E(-0x2ed,-0x307)](e)){g['removeStore'](e);e[E(-0x2cd,-0x2da)](f);}if(!(d instanceof _enc)){const {storeClass:h,modelClass:i}=f[E(-0x32c,-0x2f4)](E(-0x317,-0x30d),d);d=new h(_eng[E(-0x2dd,-0x2a1)]({'modelClass':i,'project':f,'stm':g},d));}else{d[E(-0x312,-0x33f)]=f;if(!d[E(-0x2b9,-0x2fc)]){g[E(-0x2f8,-0x2d9)](d);d[E(-0x2c1,-0x296)](f);}}function E(a,b){return t(b,a-0x37);}if(!d[E(-0x2b9,-0x2f0)]){d[E(-0x2a9,-0x262)](f);}return d;}[t(-0x2f2,-0x32c)](d,e){this[F(0x1e7,0x1f6)](d);function F(a,b){return t(a,b-0x556);}this[F(0x23d,0x202)](F(0x226,0x22b),{'store':d});}[t(-0x35b,-0x35a)](d){this['resourceStore']=d;}['changeResourceStore'](d,e){const f=this,{stm:g}=f;f[G(-0x4e,-0x41)](e);if(!(d instanceof _enc)){const {storeClass:h,modelClass:i}=f['resolveStoreAndModelClass'](G(-0x53,-0x13),d);d=new h(_eng[G(-0x46,-0x25)]({'modelClass':i,'project':f,'stm':g},d));}else{d[G(-0x1c,-0x5a)]=f;if(!d['isChainedFromProject']){g[G(-0x4e,-0x40)](d);d[G(-0x15,-0x9)](f);}}if(e&&g[G(-0x4,-0x35)](e)){g[G(0x47,0x1)](e);e[G(-0x39,-0x15)](f);const {assignmentsForRemoval:j}=e;j[G(-0x73,-0x2f)](k=>{const l=k[H(0x170,0x164)];function H(a,b){return G(b,a-0x183);}if(l){const m=d[H(0x14f,0x157)](l['id']);if(m){k[H(0x170,0x133)]=m;j['delete'](k);}}});e[G(-0x16,-0x1d)]();}function G(a,b){return t(a,b-0x2ef);}if(!d[G(-0x2c,-0x1)]){d['setProject'](f);}return d;}[t(-0x38c,-0x362)](d,e){function I(a,b){return t(b,a-0x5f7);}this['attachStore'](d);this[I(0x2a3,0x2d5)](I(0x2ba,0x2d4),{'store':d});}[t(-0x2f0,-0x2e9)](d){function J(a,b){return t(b,a-0x67);}this[J(-0x27d,-0x29f)]=d;}[t(-0x374,-0x331)](d,e){const f=this;f[K(0xe7,0x127)](e);function K(a,b){return t(b,a-0x417);}if(!(d instanceof _enc)){const {storeClass:g,modelClass:h}=f['resolveStoreAndModelClass'](K(0x118,0xea),d);d=new g(_eng[K(0x103,0x13f)]({'modelClass':h,'project':f,'stm':f['stm']},d));}else{d[K(0xce,0x106)]=f;if(!d[K(0x127,0x13e)]){f[K(0xf0,0xe1)]['addStore'](d);d['joinRecordsToProject'](f);}}return d;}['updateDependencyStore'](d,e){this[L(0x67,0x80)](d);function L(a,b){return t(a,b-0x3e0);}this[L(0xce,0x8c)]('dependencyStoreChange',{'store':d});}[t(-0x33a,-0x2f7)](d){this['calendarManagerStore']=d;}[t(-0x309,-0x2df)](d,e){const f=this;f[M(0xca,0x83)](e);if(!(d instanceof _enc)){const g=d?.[M(0xde,0xbf)]||f[M(0x75,0xb0)];const h=d?.['modelClass']||g['getDefaultConfiguration']()[M(0xbe,0xd5)]||f[M(0xcf,0x97)];d=new g(_eng[M(0xa6,0x9f)]({'modelClass':h,'project':f,'stm':f[M(0xbf,0x8c)]},d));}else{d[M(0x27,0x6a)]=f;if(!d[M(0xc0,0xc3)]){f['stm'][M(0x88,0x84)](d);}}if(!d[M(0xa6,0xc3)]){d['setProject'](f);}function M(a,b){return t(a,b-0x3b3);}return d;}[t(-0x31e,-0x321)](d,e){this[N(0x1b,0x60)](d);function N(a,b){return t(a,b-0x3c0);}this[N(0x61,0x6c)](N(0x65,0x7b),{'store':d});}get[t(-0x32b,-0x32e)](){function O(a,b){return t(b,a-0x6dc);}return this[O(0x3f7,0x42b)]||this[O(0x3e9,0x410)];}set[t(-0x32f,-0x32e)](d){function P(a,b){return t(a,b-0x5b9);}this[P(0x2f4,0x2d4)]=d;}get[t(-0x388,-0x35e)](){function Q(a,b){return t(b,a-0x81);}return this[Q(-0x2ad,-0x2ef)];}async[t(-0x2a6,-0x2db)](d){function R(a,b){return t(b,a-0x526);}this['eventStore'][R(0x21d,0x1f8)](d);return this[R(0x234,0x26d)]();}async[t(-0x2e2,-0x300)](d){function S(a,b){return t(a,b-0x8d);}this[S(-0x2a1,-0x27a)]['add'](d);return this[S(-0x23c,-0x265)]();}async[t(-0x2ea,-0x325)](d){function T(a,b){return t(a,b-0x65a);}this['resourceStore'][T(0x37e,0x351)](d);return this[T(0x36f,0x368)]();}async[t(-0x31d,-0x347)](d){this[U(0x2f9,0x325)][U(0x2d4,0x2f9)](d);function U(a,b){return t(b,a-0x5dd);}return this['commitAsync']();}[t(-0x2d6,-0x30b)](){function V(a,b){return t(b,a-0xde);}if(!this['hasPendingAutoCommit']){this[V(-0x1fe,-0x1d4)]({'fn':()=>this[V(-0x214,-0x233)]?.(),'name':V(-0x214,-0x1e6),'delay':0xa});}}get['hasPendingAutoCommit'](){function W(a,b){return t(b,a-0x5cc);}return this[W(0x2b3,0x2b3)]('commitAsync');}['unScheduleAutoCommit'](){this['clearTimeout']('commitAsync');}async[t(-0x321,-0x2f2)](){function X(a,b){return t(b,a-0xfc);}if(this['isPerformingCommit'])return this[X(-0x231,-0x204)];this[X(-0x258,-0x212)]('beforeCommit');return this[X(-0x231,-0x263)]=this[X(-0x1dd,-0x1c7)]();}async['doCommitAsync'](){const d=this;function Y(a,b){return t(a,b-0x5c1);}if(!d['$invalidated'][Y(0x256,0x268)]&&!d['$leaving'][Y(0x221,0x268)]&&!d['hasLoadedDataToCommit']&&!d[Y(0x27c,0x2b7)]){d[Y(0x22d,0x26d)](Y(0x2ed,0x2b9));return;}d[Y(0x2a3,0x2d0)][Y(0x2ac,0x286)]();d[Y(0x2f0,0x2c0)]=!![];await delay(0x0);if(!d['isDestroyed']){d[Y(0x2c3,0x2d5)]();for(const i of d[Y(0x243,0x269)]){i[Y(0x2dc,0x2df)]();}const {isInitialCommit:e,silenceInitialCommit:f}=d;const g=e&&f;d[Y(0x2fa,0x2ba)][Y(0x2a0,0x2a9)]();d[Y(0x2a3,0x2dd)][Y(0x29a,0x2a9)]();d[Y(0x2c0,0x299)]=!![];d[Y(0x2a3,0x2de)]=![];d[Y(0x302,0x2c0)]=![];const h=[d[Y(0x301,0x2ba)],d[Y(0x2f4,0x2dd)],d[Y(0x2bc,0x2a1)],d['resourceStore'],d[Y(0x28d,0x262)]];h[Y(0x2e2,0x2a3)](j=>{j[Z(-0x372,-0x36a)]?.();function Z(a,b){return Y(a,b- -0x5ce);}j[Z(-0x334,-0x355)]?.();});d[Y(0x290,0x28d)]=!![];d[Y(0x22a,0x26d)](Y(0x245,0x26e),{'isInitialCommit':e,'isCalculated':!![]});if(g){for(const j of d[Y(0x245,0x269)]){j[Y(0x2ac,0x276)](!![]);}}else{for(const k of d[Y(0x2ac,0x269)]){k[Y(0x2c6,0x2b4)](!![]);k[Y(0x2b2,0x276)]();}for(const l of d['$invalidated']){l[Y(0x274,0x272)](![],!![]);}}d[Y(0x2b8,0x28d)]=![];d['$invalidated'][Y(0x26d,0x286)]();d[Y(0x25b,0x26d)](Y(0x2ac,0x271));h['forEach'](m=>{function a0(a,b){return Y(b,a- -0x30f);}m[a0(-0x4a,-0x53)]?.();m[a0(-0x38,-0x23)]?.();});d['trigger'](Y(0x2d6,0x2b9));return!![];}}async[t(-0x36c,-0x33f)](){return this['commitAsync']();}['invalidate'](d){function a1(a,b){return t(a,b-0x197);}this[a1(-0x207,-0x1c1)]['add'](d);this[a1(-0x14a,-0x174)]();}async[t(-0x389,-0x35b)](){return!![];}['getStm'](){function a2(a,b){return t(b,a-0x3c2);}return this[a2(0x9b,0x90)];}set['stm'](d){d=this[a3(0x2a7,0x264)]=new _enf(_eng[a3(0x2df,0x2d3)]({'disabled':!![]},d));function a3(a,b){return t(b,a-0x5f3);}d[a3(0x2bd,0x2a4)]({'restoringStop':async()=>{function a4(a,b){return a3(b-0x21,a);}d['disable']();await this['commitAsync']();if(!this[a4(0x2d8,0x2d3)]){d['enable']();this[a4(0x2eb,0x2c0)](a4(0x373,0x33c));}}});}get[t(-0x316,-0x327)](){function a5(a,b){return t(a,b-0x3f);}return this[a5(-0x2fd,-0x30d)];}[t(-0x2d5,-0x2e6)](){function a6(a,b){return t(a,b-0x68);}return!this[a6(-0x285,-0x285)]&&!this['isPerformingCommit']&&this['isInitialCommitPerformed'];}}c[t(-0x2fd,-0x31b)]=t(-0x32e,-0x2f9);c[t(-0x333,-0x322)]=!![];return c;}){}export{DelayableWrapper,SchedulerCoreProjectMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function l(a,b){return _enb(b-
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(b-0x329,a);}const c=a();while(!![]){try{const d=-parseInt(l(0x4c5,0x4d1))/0x1*(parseInt(l(0x4fe,0x4fe))/0x2)+-parseInt(l(0x4fe,0x4f1))/0x3*(-parseInt(l(0x4cd,0x4c4))/0x4)+parseInt(l(0x4e2,0x4d8))/0x5*(-parseInt(l(0x4fd,0x4f8))/0x6)+-parseInt(l(0x4b8,0x4d4))/0x7+-parseInt(l(0x4c9,0x4e8))/0x8*(-parseInt(l(0x4c9,0x4c0))/0x9)+-parseInt(l(0x4ed,0x4fc))/0xa+parseInt(l(0x4f4,0x4d2))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd7e80));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x194;let f=c[d];return f;};return _enb(a,b);}var __decorate=function(a,b,e,f){function m(a,b){return _enb(a-0x3ae,b);}var g=arguments[m(0x55c,0x57b)],h=g<0x3?b:f===null?f=Object[m(0x56c,0x586)](b,e):f,j;if(typeof Reflect===m(0x555,0x55a)&&typeof Reflect[m(0x577,0x564)]===m(0x562,0x54f))h=Reflect['decorate'](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x563,0x581)](b,e,h),h;};import{Reject}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConflictEffect}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{EffectResolutionResult}from'../../../chrono/SchedulingIssueEffect.js';import{HasSubEventsMixin}from'../scheduler_basic/HasSubEventsMixin.js';import{ConstrainedScheduleMixin}from'./ConstrainedScheduleMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';class ConstrainedEarlyEventMixin extends Mixin([HasSubEventsMixin,HasPercentDoneMixin],a=>{const b=a['prototype'];class c extends a{get[n(0x290,0x27d)](){function o(a,b){return n(b,a-0x4e);}return this[o(0x2b4,0x2b7)];}get['earlySchedule'](){if(this[p(0x1fc,0x20f)]!==void 0x0)return this[p(0x216,0x20f)];const d=new this[(p(0x227,0x233))]['scheduleMixinClass']({'id':p(0x1fd,0x210)},null,null,![],!![]);d[p(0x21c,0x226)]=this;function p(a,b){return n(a,b- -0x56);}return this[p(0x1f6,0x20f)]=d;}[n(0x25f,0x27a)](d){function q(a,b){return n(b,a- -0x440);}super['enterGraph'](d);this[q(-0x1da,-0x1de)][q(-0x1c6,-0x1ab)](d);}[n(0x29a,0x286)](d){this[r(0x395,0x395)][r(0x3b5,0x3d0)](d);function r(a,b){return n(b,a-0x12f);}super[r(0x3b5,0x3a6)](d);}['unlink'](...d){function s(a,b){return n(b,a- -0x311);}this[s(-0xab,-0x8a)][s(-0xb6,-0xae)](...d);super[s(-0xb6,-0xc6)](...d);}*[n(0x279,0x25f)](){function t(a,b){return n(a,b- -0xec);}return yield this[t(0x18d,0x17a)]['$'][t(0x1a9,0x1a3)];}*['calculateEarlyEndDate'](){function u(a,b){return n(b,a- -0x443);}return yield this[u(-0x1dd,-0x1f9)]['$'][u(-0x1bc,-0x1b5)];}*[n(0x27a,0x298)](){return[];}*[n(0x295,0x293)](){return[];}*['calculateEarlyStartDateConstraintIntervals'](){return[];}*[n(0x24d,0x268)](){return[];}*[n(0x26e,0x25a)](){return[];}*[n(0x292,0x282)](){return[];}*['shouldRollupChildEarlyStartDate'](d){return!![];}*['shouldRollupChildEarlyEndDate'](d){return!![];}*['shouldRollupChildLateStartDate'](d){return!![];}*[n(0x283,0x264)](d){return!![];}*[n(0x288,0x274)](){function v(a,b){return n(a,b- -0x384);}const d=yield this['$'][v(-0x135,-0x12d)];let e;const f=yield*this[v(-0x10c,-0x123)]();if(!f&&!(yield this['$'][v(-0xf6,-0x100)])&&(yield*this[v(-0xe2,-0xf2)](d[v(-0xff,-0xf4)]))){if(yield*this[v(-0x10f,-0xf7)]()){return yield*this[v(-0x11f,-0x116)]();}e=yield this[v(-0x13d,-0x124)](d[v(-0xd6,-0xf4)])['$']['startDate'];}return e||(yield*b[v(-0x10f,-0x110)][v(-0x11a,-0x109)](this));}*[n(0x29d,0x299)](){const d=yield this['$'][w(-0x113,-0x114)];let e;const f=yield*this[w(-0x109,-0x115)]();if(!f&&!(yield this['$'][w(-0xe6,-0xd0)])&&(yield*this['isConstrainedAlongDirection'](d[w(-0xda,-0xf3)]))){if(yield*this[w(-0xdd,-0xf2)]()){return yield*this[w(-0xfc,-0xea)]();}e=yield this[w(-0x10a,-0xf0)](d[w(-0xda,-0xf4)])['$'][w(-0xdb,-0xee)];}function w(a,b){return n(b,a- -0x36a);}return e||(yield*b['calculateStartDateProposed']['call'](this));}*[n(0x288,0x288)](){const d=yield this['$'][x(-0x16a,-0x186)];let e;function x(a,b){return n(a,b- -0x3dd);}const f=yield*this[x(-0x192,-0x17c)]();if(!f&&!(yield this['$'][x(-0x17a,-0x159)])&&(yield*this['isConstrainedAlongDirection'](d[x(-0x16f,-0x14d)]))){if(yield*this[x(-0x143,-0x150)]()){return yield*this[x(-0x171,-0x15f)]();}e=yield this[x(-0x19a,-0x17d)](d['direction'])['$'][x(-0x168,-0x156)];}return e||(yield*b['calculateEndDatePure'][x(-0x169,-0x162)](this));}*[n(0x279,0x283)](){const d=yield this['$'][y(0x516,0x523)];let e;const f=yield*this[y(0x520,0x51d)]();function y(a,b){return n(b,a-0x2bf);}if(!f&&!(yield this['$'][y(0x543,0x53c)])&&(yield*this[y(0x551,0x54d)](d[y(0x54f,0x56f)]))){if(yield*this[y(0x54c,0x54e)]()){return yield*this[y(0x53d,0x541)]();}e=yield this[y(0x51f,0x50f)](d[y(0x54f,0x56c)])['$'][y(0x546,0x551)];}return e||(yield*b[y(0x542,0x54b)][y(0x53a,0x521)](this));}*[n(0x290,0x292)](d){function z(a,b){return n(b,a- -0x4a6);}return yield*this[z(-0x240,-0x25a)][z(-0x210,-0x200)]();}[n(0x279,0x260)](d){function A(a,b){return n(a,b- -0x210);}return this[A(0x35,0x56)];}*[n(0x286,0x285)](d,e){function B(a,b){return n(b,a- -0x1d5);}const f=d==='start'?yield*e[B(0x92,0xab)](!![]):yield*e[B(0xb7,0xbe)](!![]);return ConflictEffect[B(0x83,0x6a)]({'intervals':[...f[B(0x89,0x71)]],'sourceSchedule':e});}*['onEmptyEffectiveInterval'](d,e){const f=yield*this[C(0xdb,0xfa)](d,e);function C(a,b){return n(b,a- -0x1aa);}if((yield f)===EffectResolutionResult[C(0xc9,0xc7)]){yield Reject(f);return{'kind':C(0xc2,0xd9)};}else{return{'kind':C(0xb2,0xbb),'value':null};}}*['onNonEmptyEffectiveInterval'](d,e){}*[n(0x2a8,0x28e)](d){function D(a,b){return n(b,a- -0x3ba);}const e=this;const f=yield*this[D(-0x14b,-0x161)]();if(f==null){return null;}return function*(g){function E(a,b){return D(a-0x2de,b);}return yield*e[E(0x1b8,0x1ce)](g,d,f);};}*['shouldSkipNonWorkingTime'](){let d=yield*super['shouldSkipNonWorkingTime']();if(d){const e=yield*this['calculateEffectiveDuration']();d=e>0x0;}return d;}}c[n(0x293,0x275)]=ConstrainedScheduleMixin;__decorate([model_field({'type':n(0x240,0x262),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c['prototype'],n(0x249,0x263),void 0x0);__decorate([model_field({'type':n(0x249,0x262),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c['prototype'],n(0x28c,0x279),void 0x0);function n(a,b){return _enb(b-0xc2,a);}__decorate([field()],c[n(0x254,0x272)],n(0x271,0x256),void 0x0);__decorate([field()],c[n(0x255,0x272)],n(0x29a,0x27f),void 0x0);__decorate([calculate(n(0x25c,0x263))],c['prototype'],n(0x269,0x25f),null);__decorate([calculate(n(0x277,0x279))],c['prototype'],n(0x25f,0x278),null);__decorate([calculate('startDateConstraintIntervals')],c[n(0x25c,0x272)],'calculateStartDateConstraintIntervals',null);__decorate([calculate(n(0x294,0x27f))],c['prototype'],n(0x2af,0x293),null);return c;}){}export{ConstrainedEarlyEventMixin};function _ena(){const F=['enterGraph','call','event','earlyPreSchedule','calculateMaxChildrenEndDate','endDateConstraintIntervals','getOwnPropertyDescriptor','768qdKYMU','calculateLateEndDateConstraintIntervals','calculateEndDateProposed','unscheduled','createConflictEffect','leaveGraph','endDate','calculateEndDatePure','constructor','6MDvmWG','decorate','doCalculateEffectiveEndDateInterval','hasSubEvents','getDateShifter','startDate','direction','23526VcmFiB','isConstrainedAlongDirection','calculateEndDateConstraintIntervals','calculateProjectedXDateWithDuration','280420sqefoR','isConstrained','2gAjtcg','calculateStartDateConstraintIntervals','calculateStartDateProposed','startDateConstraintIntervals','effectiveDirection','new','10296prUIpa','calculateLateStartDateConstraintIntervals','unlink','return','1187144tPaFLh','intersectionOf','calculateEarlyStartDate','pickDirectionSchedule','isManuallyScheduled','date','earlyStartDate','shouldRollupChildLateEndDate','_earlySchedule','earlySchedule','doCalculateEffectiveStartDateInterval','calculateEarlyEndDateConstraintIntervals','object','1574791fCSqvG','33204875lfZUBo','resume','5542341mgzZYa','calculateMinChildrenStartDate','calculateEffectiveDuration','length','565ClbDOd','prototype','Cancel','calculateStartDatePure','scheduleMixinClass','function','defineProperty','calculateEarlyEndDate','earlyEndDate'];_ena=function(){return F;};return _ena();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function V(a,b){return _enb(b-0x234,a);}while(!![]){try{const d=parseInt(V(0x408,0x3a6))/0x1*(-parseInt(V(0x314,0x311))/0x2)+parseInt(V(0x306,0x30c))/0x3*(-parseInt(V(0x3a3,0x354))/0x4)+-parseInt(V(0x352,0x38b))/0x5*(parseInt(V(0x363,0x32d))/0x6)+-parseInt(V(0x39a,0x378))/0x7*(parseInt(V(0x364,0x34d))/0x8)+-parseInt(V(0x331,0x344))/0x9*(parseInt(V(0x368,0x397))/0xa)+parseInt(V(0x31d,0x309))/0xb+parseInt(V(0x34f,0x2f5))/0xc*(parseInt(V(0x360,0x3a4))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb3afd));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[W(-0x33,0x2)](b,e):f,j;function W(a,b){return _enb(b- -0x113,a);}if(typeof Reflect===W(0x9c,0x5e)&&typeof Reflect[W(-0x23,-0x32)]==='function')h=Reflect[W(0x16,-0x32)](a,b,e,f);else for(var k=a[W(-0x9,-0x16)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[W(0x4c,0x20)](b,e,h),h;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc1;let f=c[d];return f;};return _enb(a,b);}import{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MissingValue}from'../../../util/Constants.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{effortFormula,EffortVar,UnitsVar}from'./HasEffortDispatcher.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';class TimePhasedAssignmentMirror extends Mixin([FixedDurationMixin],a=>{class b extends a{*[X(-0x28c,-0x295)](){function Y(a,b){return X(b-0x604,a);}return yield this[Y(0x399,0x3ab)]['$']['durationUnit'];}*[X(-0x29f,-0x26c)](){function Z(a,b){return X(a-0x451,b);}return yield this[Z(0x1f8,0x196)]['$']['effortUnit'];}*[X(-0x27b,-0x294)](){function a0(a,b){return X(b-0x3db,a);}return yield this[a0(0x170,0x182)]['$'][a0(0x176,0x126)];}*[X(-0x2d3,-0x2b6)](){function a1(a,b){return X(a-0x53c,b);}return yield this[a1(0x2e3,0x2a8)]['$'][a1(0x268,0x220)];}*[X(-0x2dc,-0x2b1)](){function a2(a,b){return X(b-0x52b,a);}return yield*this[a2(0x2fc,0x2d2)][a2(0x227,0x24f)]();}*[X(-0x251,-0x26d)](){function a3(a,b){return X(a-0x510,b);}return yield*this[a3(0x2b7,0x298)]['hasPreviousValueForUnits']();}*['calculateEffectiveDirection'](){function a4(a,b){return X(b-0x2c5,a);}return yield*this[a4(0x5b,0x6c)][a4(0x54,0x14)]();}*['calculateEffectiveDataOrVisualCalendar'](c){function a5(a,b){return X(a-0x5fa,b);}return yield*this[a5(0x3a1,0x37a)][a5(0x367,0x35b)](c);}*[X(-0x301,-0x335)](){function a6(a,b){return X(a-0x342,b);}const c=new Map();const d=yield this[a6(0xe9,0xfc)]['$']['resource'];if(d){const e=yield d['$'][a6(0x59,0x91)];c[a6(0xbc,0xc9)](e,[this[a6(0xe9,0x13a)]]);}return c;}*[X(-0x2ea,-0x2c0)](){function a7(a,b){return X(a-0x534,b);}return yield this[a7(0x2db,0x296)]['$'][a7(0x24f,0x27f)];}*[X(-0x2cc,-0x314)](){function a8(a,b){return X(b-0x215,a);}return yield*this[a8(0x2,-0x44)][a8(-0xbd,-0xb7)]();}}__decorate([calculate('durationUnit')],b['prototype'],'calculateDurationUnit',null);__decorate([calculate(X(-0x2e3,-0x2c4))],b[X(-0x2cf,-0x30e)],X(-0x29f,-0x2a6),null);__decorate([calculate('effortDriven')],b['prototype'],X(-0x27b,-0x2c1),null);__decorate([calculate(X(-0x2d4,-0x2f1))],b[X(-0x2cf,-0x29f)],'calculateSchedulingMode',null);__decorate([calculate(X(-0x2e5,-0x305))],b[X(-0x2cf,-0x28d)],X(-0x2ea,-0x2aa),null);function X(a,b){return _enb(a- -0x3d3,b);}return b;}){}function _ena(){const bn=['isRemovingAssignmentByPutEffort','isUserTimePhased','getBaseOptionsForDurationCalculations','prepareDispatcher','hasInputOnlyOnEffort','hasProposedValueForAssignmentsField','call','FixedDuration','writeUnits','leaveGraph','direction','9fsOyJH','SchedulerProTimePhasedAssignmentMixin','effort','commitAsync','skipNonWorkingTime','getOwnPropertyDescriptor','addProposedValueFlag','proposedStartDate','calculateStartByDelay','24qqAQZl','Backward','calculateSelector','calculateEffortPure','calculateProposedEndOffsetRaw','effortDriven','proposedStartDateMin','4gCgMuQ','setTimePhasedEffortBatch','calculateEffectiveDirection','hasIdentifier','isTimePhased','version','date','string','writeStartDate','writeEndDate','unlink','phantomEndOffset','phantomEndDate','ownIgnoreResourceCalendar','proposedEndDate','endDate','skipNonWorkingTimeInDurationWhenSchedulingManually','writeIgnoreResourceCalendar','calculateHasOnlyRegularAssignmentsRaw','defineProperty','calculateEffortUnit','has','eventSelector','isSegmented','FixedUnits','calculateUnitsByStartEndAndEffort','defaultConfig','event','calculateStartDate','manuallyScheduled','eventIsSegmented','hasProposedAssignments','calculateEffectiveDataOrVisualCalendar','sort','slice','effectiveSchedulingMode','2443847kOCwAV','proposedTotalUnits','hasInputOnStartDate','calculateDurationUnit','_calculateEffortData','baseRevision','putTimePhasedEffortBatch','hasEffortInput','calculateEndOffset','set','assign','calculateStartOffset','hasEndDateValue','selector','duration','fields','calculateProjectedXDateByEffort','putTimePhasedEffort','proposedStartOffset','4161545NxJWhn','calculateEffortDriven','dispatcher','ion','calculateEffort','$name','Unknown\x20formula\x20for\x20`effort`','useEventAvailabilityIterator','endOffset','calculatePhantomEndDate','PROPOSED_','startOffset','9904340anLiZR','get','setTimePhasedEffort','isPhantomTimePhased','calculateEndDate','resource','collectInfo','_changeAssignmentData','Forward','calculateProposedStartOffsetRaw','proposedStartOffsets','formulaId','assigned','2015CWKrxv','object','53zGKxMd','calculatePhantomStartDate','enterGraph','calculateSchedulingModeForUnitsCalculation','eventEffortDriven','hasInputOnUnits','number','getTime','assignment','isDurationDefinedByEffort','proposedEndDateMax','getBaseOptionsForEffortCalculations','run','calculateEffortProposed','Normal','calculateProportionalEffortByUnits','hasPreviousValueForUnits','intervalStoreClass','maxAssignmentProposedEndDate','304068ZKnlWS','graph','eventEffectiveSchedulingMode','filter','proposedMirror','writeEffort','timePhasedDispatcher','_proposedMirror','calculateProportionalEffort','forEachAvailabilityInterval','durationUnit','project','Millisecond','proposedEndOffset','hasInputOnEffort','minOffset','hasInputOnDuration','calculateAssignmentsByCalendar','prepareDispatcherForAssignmentsFixedDuration','constructor','12928388HnoSTs','addKeepIfPossibleFlag','splice','3506835EVnsUw','push','write','doCalculateAssignmentEffort','calculateEndByDelay','12370WCAacj','calculateProjectedDuration','isTimePhasedStructurally','calculateUnitsForNewAssignment','decorate','$convertDuration','writeDuration','hasInputOnTimePhasedData','assignmentsByCalendar','effectiveDirection','isPhantomTimePhasedStructurally','getProject','calculateIgnoreResourceCalendar','effectiveCalendar','isChangingOnlyDuration','minAssignmentProposedStartDate','proposedMirrorClass','ignoreResourceCalendar','calculateProjectedXDateWithDuration','effortUnit','size','hasInputOnEndDate','phantomStartOffset','calculatePhantomStartOffset','hasElapsedDuration','hasSomeInput','hasProposedValueForUnits','calculateProportionalEffortByEffort','6czVbAE','calculatePhantomEndOffset','isDurationDefinedByEffortStructurally','units','length','startDate','schedulingMode','calculateSchedulingMode','phantomStartDate','getCalendarsWorking','hasStartDateValue','prototype'];_ena=function(){return bn;};return _ena();}class TimePhasedAssignmentSelector{constructor(){this[a9(0x377,0x394)]=null;function a9(a,b){return _enb(a-0x1fd,b);}this[a9(0x338,0x306)]=null;this[a9(0x333,0x325)]=null;this[a9(0x2c0,0x29f)]=null;this[a9(0x373,0x362)]=![];this[a9(0x33b,0x37c)]=![];this[a9(0x300,0x2b5)]=![];this[a9(0x34d,0x336)]=![];this['hasDurationValue']=![];this[a9(0x343,0x330)]=![];this[a9(0x2ef,0x2a6)]=![];this['hasInputOnDuration']=![];this['hasInputOnEffort']=![];this[a9(0x374,0x322)]=![];this[a9(0x37f,0x3b9)]=![];}get[_enaa(-0x139,-0x188)](){function ab(a,b){return _enaa(b-0x97,a);}return!this[ab(-0xe,-0x65)]&&!this[ab(-0xa1,-0xb9)]&&!this[ab(-0x109,-0xda)]&&this[ab(-0xa2,-0xdc)]&&!this[ab(0xa,-0x34)];}get[_enaa(-0x14c,-0x16e)](){function ac(a,b){return _enaa(b- -0xb4,a);}return this['hasInputOnStartDate']||this[ac(-0x1f3,-0x204)]||this['hasInputOnDuration']||this[ac(-0x207,-0x227)]||this[ac(-0x189,-0x17f)];}get[_enaa(-0x15e,-0x1a3)](){function ad(a,b){return _enaa(b-0x2fe,a);}return this[ad(0x22f,0x202)]||this[ad(0x1a4,0x1ae)]||this[ad(0x149,0x18d)];}get[_enaa(-0x13c,-0x149)](){function ae(a,b){return _enaa(b-0x63,a);}return(this[ae(-0xc5,-0xdc)]?0x1:0x0)+(this[ae(-0x6c,-0x8f)]?0x1:0x0)+(this['hasDurationValue']?0x1:0x0)>=0x2;}get[_enaa(-0x11e,-0x132)](){function af(a,b){return _enaa(a- -0x16c,b);}return this[af(-0x2a8,-0x294)]||this[af(-0x233,-0x205)];}get[_enaa(-0x163,-0x143)](){function ag(a,b){return _enaa(a-0x12,b);}return this[ag(-0x12a,-0x141)]||this['isDurationDefinedByEffortStructurally'];}get[_enaa(-0xdc,-0xb2)](){function ah(a,b){return _enaa(a-0x20f,b);}return this['isTimePhased']&&!this[ah(0xd3,0xec)];}get[_enaa(-0x15b,-0x140)](){return this['isTimePhasedStructurally']&&!this['isUserTimePhased'];}get[_enaa(-0x147,-0x110)](){const a=this['event'];function ai(a,b){return _enaa(a-0x2bc,b);}if(a){const b=this[ai(0x13d,0xf6)];const c=this[ai(0x1f0,0x1eb)];return b!==SchedulingMode[ai(0x186,0x147)]&&b!==SchedulingMode[ai(0x1fa,0x1b3)]&&(c||b===SchedulingMode['FixedEffort']);}else{return![];}}get[_enaa(-0xc7,-0x11b)](){const a=this['event'];function aj(a,b){return _enaa(b-0x1cc,a);}if(a){const b=this['eventEffectiveSchedulingMode'];return this[aj(0xc0,0x85)]&&!this[aj(0xee,0xc0)][aj(0xb0,0x75)]&&!this[aj(0x10d,0xc0)]['isChangingOnlyEndDate']||b===SchedulingMode[aj(0x115,0xc2)]&&this[aj(0xa,0x59)]&&!this[aj(0xfb,0x101)]&&this[aj(0xbd,0x10c)];}else{return![];}}*[_enaa(-0xd9,-0x93)](){const a=this['assignment'];this[ak(-0x10b,-0xe5)]=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xe3,-0xea)]))!=null;this['hasEndDateValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xf0,-0xb9)]))!=null;this['hasDurationValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xf3,-0x96)]))!=null;this[ak(-0x64,-0xa2)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x11b,-0xea)]);this[ak(-0xc8,-0xf6)]=yield HasProposedNotPreviousValue(a['$'][ak(-0xad,-0xb9)]);this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$'][ak(-0x5c,-0x96)]);this[ak(-0xde,-0x119)]=yield HasProposedNotPreviousValue(a['$'][ak(-0xe8,-0xd6)]);this[ak(-0x90,-0x71)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x90,-0xec)]);this[ak(-0x72,-0x66)]=yield*a[ak(-0x67,-0x66)]();function ak(a,b){return _enaa(b-0x5a,a);}const b=this[ak(-0x4c,-0xad)]=yield a['$']['event'];if(b){this[ak(-0xa0,-0xb2)]=yield b['$'][ak(-0x88,-0x97)];this[ak(-0x153,-0x125)]=yield*b[ak(-0xc4,-0xa5)]();this[ak(-0x94,-0x72)]=yield b['$']['effortDriven'];this[ak(-0x5b,-0xaa)]=yield b['$'][ak(-0xd4,-0xb1)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0xa1,0x7c)];class c extends a{constructor(){super(...arguments);function am(a,b){return al(a- -0x58,b);}this[am(0x32,0x88)]=TimePhasedAssignmentMirror;this[am(0xd,-0x45)]=void 0x0;}[al(0xe5,0xd0)](d,e,f){let g,h;if(d[an(0x597,0x53d)]){g=d[an(0x594,0x53d)](an(0x483,0x49a),e,f);h=d[an(0x4ff,0x4af)];}else{g=this[an(0x4ee,0x53d)](an(0x4d1,0x49a),e,f);h=this[an(0x47a,0x4af)];}function an(a,b){return al(b-0x422,a);}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0x107,0x102)](d,e,f){let g;if(d[ao(0xb8,0x119)]){g=f[ao(0x12c,0xff)](d);if(!g){g={};f[ao(0xd6,0xe8)](d,g);}}else{g=d;}function ao(a,b){return al(b- -0x2,a);}Object['assign'](g,e);return g;}[al(0xe7,0x126)](d){if(!d[ap(-0xe8,-0x10b)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g['assigned'];const n=g['startDate'];const o=g[ap(-0xb6,-0x85)];const p=new Map();function ap(a,b){return al(a- -0x182,b);}const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d[ap(-0xa3,-0x95)]()[ap(-0xa4,-0xc5)]((w,x)=>(w[ap(-0xe7,-0x11f)]||n)[ap(-0x6c,-0xc1)]()-(x[ap(-0xe7,-0xbc)]||n)[ap(-0x6c,-0x64)]());const t=[...m][ap(-0x121,-0x137)](w=>w[ap(-0x7d,-0x1f)]===f)[ap(-0xa4,-0xa0)]((w,x)=>(w[ap(-0xe7,-0x126)]||n)['getTime']()-(x[ap(-0xe7,-0x110)]||n)[ap(-0x6c,-0x44)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ap(-0xd3,-0x12d)]);const A=t[ap(-0xa3,-0xbf)]();let B=![];for(let C=u,D=A[ap(-0xe8,-0x142)];C<D;C++){const E=A[C];const F=p[ap(-0x81,-0x36)](E);const G=F?.[ap(-0xe7,-0x130)]||E[ap(-0xe7,-0x13b)]||n;const H=F?.[ap(-0xb6,-0xca)]||E[ap(-0xb6,-0xb1)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ap(-0x11a,-0x112)]||E[ap(-0x11a,-0x10b)];if(G>=x&&H<=y){if(z){p['set'](E,w);z=![];}else{r[ap(-0x10c,-0xc3)](E);t[ap(-0x10e,-0x141)](C);}}else{let K;if(z){K={...s,...w};q[ap(-0x10c,-0x166)](K);z=![];}let L=![];if(G<x){const M=this[ap(-0x9d,-0xc2)](E,G,x);if(M[ap(-0xd3,-0x101)]){L=!![];this[ap(-0x7b,-0xa0)](E,M,p);if(K){I++;t[ap(-0x10e,-0xcf)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ap(-0x9d,-0xcb)](E,y,H)};if(N['effort']){q['push'](N);t[ap(-0x10e,-0xfd)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[ap(-0x10e,-0xdc)](I,0x0,K);I++;}const O=this[ap(-0x7b,-0xd6)](E,this[ap(-0x9d,-0x69)](E,y,H),p);if(!O[ap(-0xd3,-0xc6)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q[ap(-0x10c,-0xb4)](P);t[ap(-0x10c,-0xaf)](P);if(!p[ap(-0xf4,-0x9a)]&&t[ap(-0xe8,-0xf9)]===0x1&&!t[0x0][ap(-0xe7,-0xf8)]&&!t[0x0][ap(-0xb6,-0xfc)]){this[ap(-0x7b,-0x23)](t[0x0],{'startDate':n,'endDate':o,'effort':this[ap(-0xd3,-0x119)]},p);}}}let v=[];for(let [Q,R]of p){Object[ap(-0x97,-0xac)](Q,R);}if(q[ap(-0xe8,-0x130)]){q['sort']((S,T)=>S[ap(-0xe7,-0x112)][ap(-0x6c,-0x4e)]()-T[ap(-0xe7,-0xf5)][ap(-0x6c,-0xad)]());if(this[ap(-0xaa,-0x48)][ap(-0xe6,-0x111)]===SchedulingMode['FixedDuration']){for(const S of q){const T=this['run'](ap(-0x105,-0x132),S[ap(-0xe7,-0x126)],S['endDate'],S[ap(-0xd3,-0x128)],S[ap(-0xf5,-0xd3)],S['resource']);delete S[ap(-0xd3,-0xf1)];S[ap(-0xe9,-0xd7)]=T;}}v=k['add'](q);}if(r[ap(-0xe8,-0xbd)]){r['forEach'](U=>{U['effort']=0x0;U[aq(-0x4c,-0x2e)]=0x0;function aq(a,b){return ap(b-0x65,a);}U['$removed']=!![];});e[ap(-0x8b,-0xa4)]({'commitFinalized':{'fn':()=>{function ar(a,b){return ap(b-0x117,a);}e['isRemovingAssignmentByPutEffort']=!![];k['remove'](r);e[ar(0x3e,0x8c)]({'commitFinalized':{'fn':()=>{function as(a,b){return ar(b,a-0x42);}e[as(0x79,0x29)]=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}[al(0xbe,0x8f)](d){this[at(0x8a,0x39)](d);function at(a,b){return al(b- -0xae,a);}return this[at(-0x27,0x2)]();}['putTimePhasedEffort'](d,e,f,g=this[al(0x8d,0x7f)]){function au(a,b){return al(b-0x52,a);}return this[au(0xfe,0x139)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0x102,0xe1)](d,e,f,g){function av(a,b){return al(b- -0x130,a);}this[av(-0x5b,-0x3e)](d,e,f,g);return this['commitAsync']();}*[al(0xb8,0xe2)](){function aw(a,b){return al(a- -0x361,b);}const d=new TimePhasedAssignmentSelector();d[aw(-0x24a,-0x228)]=this;yield*d[aw(-0x25b,-0x261)]();return d;}*[al(0xf5,0xe9)](){function ax(a,b){return al(a-0x19b,b);}const d=yield this['$'][ax(0x273,0x25b)];if(d&&(yield this['$']['resource'])){const e=yield d['$'][ax(0x237,0x248)];return e===SchedulingMode[ax(0x2b8,0x2d0)]?!![]:yield d['$']['effortDriven'];}else{return![];}}*[al(0x9d,0x88)](){const d=yield this['$'][ay(0x6,-0x54)];function ay(a,b){return al(a- -0xd2,b);}if(d&&(yield this['$'][ay(0x33,0x33)])){const e=yield d['$'][ay(-0x36,-0x3c)];return e===SchedulingMode[ay(0x4b,0x2a)]?SchedulingMode[ay(-0x29,0x31)]:e;}else{return SchedulingMode[ay(0x4b,0x6d)];}}*[al(0x112,0xbb)](d){function az(a,b){return al(a-0x11a,b);}const e=yield this['$'][az(0x1f2,0x241)];if(e&&(yield this['$'][az(0x21f,0x248)])){const f=yield e['$'][az(0x1b6,0x1cd)];return f===SchedulingMode[az(0x237,0x263)]?!(yield*e[az(0x1e9,0x23b)]())?SchedulingMode[az(0x1c3,0x162)]:SchedulingMode['Normal']:f;}else{return SchedulingMode['Normal'];}}get[al(0x62,0x3)](){if(this[aA(-0xdf,-0x102)]!==void 0x0)return this[aA(-0xca,-0x102)];const d=new this[(aA(-0x13f,-0xdd))]();d['assignment']=this;d[aA(-0xa5,-0xfe)]=this[aA(-0xf2,-0xfe)];function aA(a,b){return al(b- -0x167,a);}d['id']=aA(-0xb5,-0x69)+this['id'];if(this[aA(-0x168,-0x108)]){d[aA(-0x8c,-0x56)](this[aA(-0xef,-0x108)]);}return this[aA(-0xc7,-0x102)]=d;}[al(0x111,0x11e)](d){function aB(a,b){return al(a-0x195,b);}super[aB(0x2a6,0x28c)](d);const e=this[aB(0x1fa,0x1af)];if(e&&!e[aB(0x1f4,0x1c4)]){e['enterGraph'](d);}}[al(0xab,0xe1)](d){function aC(a,b){return al(b-0x21e,a);}this['_proposedMirror']?.['leaveGraph'](d);super[aC(0x2ce,0x2c9)](d);}['unlink'](){function aD(a,b){return al(b-0x351,a);}this[aD(0x37f,0x3b6)]?.[aD(0x421,0x418)]();super[aD(0x44e,0x418)]();}[al(0xce,0xaf)](d,e,f,g){function aE(a,b){return al(b- -0x94,a);}e[aE(-0x5b,-0x1d)](this['$'][aE(-0x25,0x36)],g);d['constructor'][aE(0x3c,0xd)][aE(-0x36,-0x1d)][aE(0x1e,0x14)](this,d,e,f,g);}['writeStartDate'](d,e,f,g,h=!![]){if(!(!e['baseRevision'][aF(-0x183,-0x181)](d)&&g==null)){e[aF(-0x19a,-0x1ca)](this[aF(-0x1c8,-0x1df)]['$']['startDate'],g,h);}function aF(a,b){return al(b- -0x241,a);}super[aF(-0x186,-0x17c)](d,e,f,g,h);}['writeEndDate'](d,e,f,g,h=![]){if(!(!e[aG(0x391,0x3c4)]['hasIdentifier'](d)&&g==null)){e[aG(0x322,0x354)](this[aG(0x30d,0x339)]['$'][aG(0x377,0x36e)],g,h);}function aG(a,b){return al(a-0x2ab,b);}super[aG(0x371,0x393)](d,e,f,g,h);}['writeDuration'](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e['baseRevision']['hasIdentifier'](d)&&g==null)){e[aH(0x55,0x5d)](this[aH(-0x2,0x48)]['$'][aH(0x11c,0xd5)],g,h,i);}function aH(a,b){return al(b- -0x1a,a);}super[aH(0x2f,0x66)](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){if(g<0x0)g=0x0;if(!(!e['baseRevision'][aI(0x3bc,0x401)](d)&&g==null)){e[aI(0x37c,0x3b8)](this[aI(0x3c1,0x3a3)]['$'][aI(0x3c2,0x3f0)],g,h);}function aI(a,b){return al(b-0x341,a);}super[aI(0x391,0x3a4)](d,e,f,g,h);}['writeUnits'](d,e,f,g){if(g===MissingValue)return;function aJ(a,b){return al(a-0x105,b);}d[aJ(0x176,0x173)][aJ(0x1a6,0x1f0)][aJ(0x17c,0x13b)][aJ(0x1ad,0x1ea)](this,d,e,f,g);}*[al(0xb9,0xae)](){return yield*this['doCalculateAssignmentEffort']();}*['doCalculateAssignmentEffort'](d=null,e=null){function aK(a,b){return al(a-0x1aa,b);}const f=yield this['$']['selector'];if(f['event']&&f[aK(0x26b,0x21f)]){if(!d){d=yield this['$']['startDate'];}if(!e){e=yield this['$'][aK(0x276,0x296)];}return yield*this['calculateProjectedEffort'](d,e);}return yield*super['doCalculateAssignmentProjectedEffort'](d,e);}*[al(0xbf,0xa6)](){const d=yield this['$'][aL(-0xad,-0x98)];function aL(a,b){return al(a- -0x185,b);}if(d){return yield d['$'][aL(-0x102,-0xc6)];}else{return yield*super[aL(-0xc6,-0x96)]();}}*[al(0x86,0x9d)](){const d=yield this['$']['event'];function aM(a,b){return al(a-0x2db,b);}return Boolean(d&&(yield d['$'][aM(0x366,0x310)])||(yield this['$'][aM(0x3a5,0x390)]));}*[al(0xec,0x134)](){const d=yield this['$'][aN(0x48e,0x4d7)];function aN(a,b){return al(b-0x3ff,a);}if(d){const e=yield d['$']['startDate'];const f=yield this['$']['startDate'];return(yield*this[aN(0x46f,0x47a)](e,f,TimeUnit['Millisecond']))??0x0;}else return null;}*[al(0x109,0x119)](){const d=yield this['$'][aO(0x1d6,0x223)];const e=d['event'];function aO(a,b){return al(a-0xe8,b);}if(e){if(d[aO(0x169,0x1bd)]||(yield PreviousValueOf(this['$'][aO(0x1e7,0x227)]))==null){const f=(yield e['$'][aO(0x19c,0x1f5)])??(yield e['$'][aO(0x171,0x1bb)]);const g=yield this['proposedMirror']['$'][aO(0x183,0x150)];return(yield*this['calculateProjectedDuration'](f,g,TimeUnit[aO(0x152,0x19d)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$']['startOffset']);}}else{return null;}}*['calculateProposedStartOffset'](){function aP(a,b){return al(a- -0x114,b);}const d=yield this['$'][aP(-0x26,-0x4a)];const e=d[aP(-0x3c,-0x3b)];if(e){const f=(yield e['$'][aP(-0xa,-0x16)])[aP(-0xa7,-0xbf)]<0x0;if(f||d[aP(-0x93,-0xc1)]||(yield PreviousValueOf(this['$'][aP(-0x15,-0x21)]))==null){const g=yield this['$'][aP(-0x91,-0x8a)];const h=g[aP(-0x68,-0x9b)]===Direction[aP(-0xc,0x1d)]?yield e['$'][aP(-0x58,-0x64)]:yield e['$']['minAssignmentProposedStartDate'];const i=yield this[aP(-0xb2,-0x100)]['$'][aP(-0x79,-0x60)];return(yield*this['calculateProjectedDuration'](h,i,TimeUnit[aP(-0xaa,-0xae)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aP(-0x15,-0x50)]);}}else{return null;}}*[al(0x110,0x13d)](){const d=yield this['$'][aQ(0x44b,0x488)];if(d[aQ(0x4c2,0x472)]&&!d[aQ(0x49a,0x475)]&&(d[aQ(0x4af,0x49d)]||(yield*d[aQ(0x4ab,0x472)][aQ(0x4cb,0x4b2)]()))){return yield*this[aQ(0x478,0x44f)]();}function aQ(a,b){return al(b-0x39a,a);}return null;}*[al(0xfd,0x14c)](){function aR(a,b){return al(a-0xb5,b);}const d=yield this['$'][aR(0x1a3,0x179)];if(d[aR(0x18d,0x1b5)]&&!d['eventIsSegmented']&&(d[aR(0x1b8,0x1a3)]||(yield*d['event'][aR(0x1cd,0x16b)]()))){const e=yield this['$'][aR(0x153,0x162)];if(e){return yield*this[aR(0x1a6,0x19d)](e,!![],yield this['$'][aR(0x164,0x1b1)],yield this['$'][aR(0x142,0x111)]);}}return null;}*[al(0x91,0x99)](){const d=yield this['$'][aS(0x2ed,0x34a)];function aS(a,b){return al(a-0x1ff,b);}if(d[aS(0x2d7,0x275)]&&!d[aS(0x2da,0x296)]&&(d[aS(0x302,0x34d)]||(yield*d[aS(0x2d7,0x2e0)][aS(0x317,0x2c2)]()))){return 0x0;}else return null;}*[al(0x97,0xcc)](){const d=yield this['$']['selector'];if(d['event']&&!d[aT(0x312,0x2c9)]&&(d[aT(0x33a,0x2f6)]||(yield*d[aT(0x30f,0x2c8)]['isDurationDefinedByEffort']()))){if(d[aT(0x2b8,0x300)]||(yield PreviousValueOf(this['$'][aT(0x2ff,0x2f7)]))==null){const e=yield d[aT(0x30f,0x321)]['$'][aT(0x303,0x329)];const f=yield*this['calculateProjectedXDateByEffort'](yield this['$'][aT(0x2d5,0x330)],!![],yield this['$'][aT(0x2e6,0x330)],yield this['$'][aT(0x2c4,0x26e)]);return yield*this[aT(0x2b2,0x2de)](f,e,TimeUnit[aT(0x2a1,0x2a2)]);}else{return yield ProposedOrPreviousValueOf(this['$']['phantomEndOffset']);}}function aT(a,b){return al(a-0x237,b);}return null;}*[al(0xe9,0x13b)](){function aU(a,b){return al(a- -0x1ea,b);}const d=yield this['$'][aU(-0x112,-0xfd)];if(d){const e=yield d['$']['endDate'];const f=yield this['$'][aU(-0x11e,-0xc6)];return yield*this[aU(-0x16f,-0x1a8)](f,e,TimeUnit[aU(-0x180,-0x130)]);}else return null;}*[al(0xba,0x109)](){const d=yield this['$'][aV(-0x209,-0x1e3)];const e=d[aV(-0x1bf,-0x1f9)];function aV(a,b){return al(b- -0x2d1,a);}if(e){if(d[aV(-0x228,-0x250)]||(yield PreviousValueOf(this['$'][aV(-0x1b5,-0x1d5)]))==null){const f=(yield e['$'][aV(-0x264,-0x206)])??(yield e['$'][aV(-0x201,-0x1b0)]);const g=yield this[aV(-0x24d,-0x26f)]['$']['endDate'];return yield*this[aV(-0x273,-0x256)](g,f,TimeUnit[aV(-0x288,-0x267)]);}else{return yield ProposedOrPreviousValueOf(this['$']['endOffset']);}}else{return null;}}*['calculateProposedEndOffset'](){const d=yield this['$'][aW(0x89,0x36)];function aW(a,b){return al(b- -0xb8,a);}const e=d[aW(0x16,0x20)];if(e){const f=(yield e['$']['proposedEndOffsets'])['minOffset']<0x0;if(f||d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$']['endOffset']))==null){const g=yield this['$'][aW(-0x94,-0x35)];const h=g[aW(0x54,-0xc)]===Direction[aW(0x9,-0x1)]?yield e['$'][aW(0x22,0x61)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this[aW(-0x26,-0x56)]['$']['endDate'];return yield*this[aW(-0x49,-0x3d)](i,h,TimeUnit[aW(-0x23,-0x4e)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aW(0x3c,0x44)]);}}else{return null;}}*['isDurationDefinedByEffortStructurally'](){function aX(a,b){return al(a- -0x118,b);}const d=yield this['$']['selector'];return d[aX(-0x80,-0x56)];}*[al(0x118,0x152)](){const d=yield this['$'][aY(-0x1e4,-0x1c3)];function aY(a,b){return al(b- -0x2b1,a);}return d['isDurationDefinedByEffort'];}*['calculateProjectedXDate'](d,e){function aZ(a,b){return al(a-0xa6,b);}const {event:f}=this;if(f&&((yield*this['isDurationDefinedByEffort']())||(yield*f[aZ(0x1be,0x1c6)]()))){return yield*this['calculateProjectedXDateByEffort'](d,e,yield this['$']['effort'],yield this['$'][aZ(0x133,0xfe)]);}else{return yield*this[aZ(0x132,0xdc)](d,e,yield this['proposedMirror']['$'][aZ(0x195,0x149)],yield this['$'][aZ(0x10e,0x163)]);}}*[al(0xd9,0x86)](){function b0(a,b){return al(b- -0x78,a);}const d=yield this['$'][b0(0x5c,0x76)];const e=d[b0(0x1b,0x60)];if(e&&d[b0(0x17,0x2b)]){const f=yield this['$']['effectiveDirection'];if(f[b0(-0x1d,0x34)]===Direction[b0(0x91,0x90)]){const g=yield*this[b0(0x8a,0x3d)]();const h=yield e['$']['endDate'];if(g>h){return h;}else return g;}else{const i=yield this['$'][b0(0xb4,0x54)];const j=yield e['$'][b0(0xb,0x23)];const k=yield this[b0(-0x6f,-0x16)]['$'][b0(0x92,0x77)];const l=yield*this[b0(0x31,0x14)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(0x104,0xb5)](){const d=yield this['$'][b1(-0x24,-0x2a)];function b1(a,b){return al(b- -0x118,a);}const e=d[b1(0x1b,-0x40)];if(e&&d[b1(-0x2b,-0x75)]){const f=yield this['$'][b1(-0xf0,-0x95)];if(f[b1(-0x56,-0x6c)]===Direction[b1(0x4b,-0x10)]){const g=yield this['$'][b1(-0xcb,-0x7d)];const h=yield e['$'][b1(-0x48,-0x4c)];const i=yield this[b1(-0x64,-0xb6)]['$'][b1(0x39,-0x29)];const j=yield*this[b1(-0xeb,-0x8c)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[b1(-0x3d,-0x9f)]();const l=yield e['$'][b1(-0x9a,-0x7d)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*['calculateDuration'](){function b2(a,b){return al(b- -0xe1,a);}const d=yield this['$'][b2(-0x97,-0x46)];const e=yield this['$'][b2(-0x57,-0x15)];return yield*this[b2(-0x44,-0x66)](d,e);}*[al(0xb5,0xa1)](){const d=yield this['$'][b3(-0x1a7,-0x155)];function b3(a,b){return al(a- -0x27f,b);}if(d){const e=yield d['$'][b3(-0x1e4,-0x186)];const f=yield this['$'][b3(-0x18c,-0x18e)];const g=yield*this['calculateProjectedXDateWithDuration'](e,!![],f,TimeUnit[b3(-0x215,-0x1c5)]);const h=yield*this[b3(-0x1ce,-0x1dd)](g,!![]);return h;}else{return null;}}*['calculateEndByDelay'](){const d=yield this['$'][b4(-0x245,-0x236)];function b4(a,b){return al(a- -0x31d,b);}if(d){const e=yield d['$']['endDate'];const f=yield this['$'][b4(-0x2b2,-0x30f)];const g=yield*this[b4(-0x291,-0x281)](e,![],f,TimeUnit[b4(-0x2b3,-0x2e0)]);const h=yield*this[b4(-0x26c,-0x281)](g,![]);return h;}else{return null;}}*['calculateEffectiveDataOrVisualCalendar'](d){const e=yield this['$'][b5(0x131,0x103)];const f=e?yield e['$'][b5(0xe0,0xaf)]:yield this[b5(0xde,0x10d)]()['$']['effectiveCalendar'];yield f['$'][b5(0x11b,0xd9)];function b5(a,b){return al(a-0x59,b);}return f;}*[al(0xfb,0xfd)](){return!![];}*[al(0x6f,0x77)](){function b6(a,b){return al(a-0x335,b);}const d=new Map();const e=yield this['$']['resource'];if(e){const f=yield e['$']['effectiveCalendar'];d[b6(0x41f,0x3d3)](f,[this]);}return d;}*[al(0x7c,0xd9)](){const d=yield this['$']['selector'];return d['isTimePhasedStructurally'];}*[al(0xc1,0xf8)](){const d=yield this['$'][b7(0x1d2,0x22f)];const {event:e}=d;function b7(a,b){return al(b-0x141,a);}return e&&(d[b7(0x1ed,0x202)]||(yield*e[b7(0x293,0x259)]()));}*[al(0xa3,0x51)](){function b8(a,b){return al(b-0x2d9,a);}const d=yield this['$'][b8(0x415,0x3c7)];return d[b8(0x31b,0x37c)];}*[al(0x103,0xd3)](){function b9(a,b){return al(a-0x2b2,b);}const d=yield this['$'][b9(0x3a0,0x385)];return d[b9(0x3b5,0x3ba)];}*['getBaseOptionsForDurationCalculations'](){const d=yield*super[ba(-0x40,-0x56)]();const e=yield this['$'][ba(0x2,-0x22)];function ba(a,b){return al(b- -0xfa,a);}if(e){const f=yield*e['effectiveSchedulingMode']();if(f===SchedulingMode[ba(0x22,0x23)]){d['ignoreResourceCalendar']=![];}}return d;}*[al(0x70,0x8c)](d,e){function bb(a,b){return al(a- -0x289,b);}if(yield*this[bb(-0x1ad,-0x196)]()){const f=yield this['$']['event'];if(yield this['$'][bb(-0x1ce,-0x209)]){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bb(-0x1da,-0x1ac)]))!=null)e[bb(-0x1d6,-0x1f8)](EffortVar);}else{if(yield*this[bb(-0x16a,-0x165)]()){e[bb(-0x1d6,-0x17b)](UnitsVar);}}}}*[al(0xa5,0xfe)](d){function bc(a,b){return al(b- -0xc5,a);}const e=yield*this[bc(0xf,0x1b)]();const f=yield this['$'][bc(0x3d,0x13)];if(e!==SchedulingMode[bc(0x1,0x58)]&&f){let g;const h=yield this['$'][bc(0x45,0x29)];const i=yield*f[bc(0x2b,0x53)]();if(h[bc(-0x52,-0x4)]||i){g=yield*super[bc(-0x80,-0x20)](d);}else{g=yield*super[bc(0x35,-0x20)](d);g['collectInfo'](d,f['$'][bc(0x1f,-0x2a)],StartDateVar);g[bc(0x53,0x41)](d,f['$']['endDate'],EndDateVar);g[bc(0xa3,0x41)](d,f['$'][bc(-0x4,0x2a)],DurationVar);g[bc(0x57,0x41)](d,f['$']['effort'],EffortVar);}if(i){g['addProposedValueFlag'](EffortVar);g[bc(0x1,-0x52)](EffortVar);}if(yield*f[bc(-0x7,-0x31)]()){g[bc(0x13,-0x12)](UnitsVar);}return g;}else{return yield*super[bc(-0x1c,-0x20)](d);}}*['hasProposedAssignments'](){function bd(a,b){return al(b- -0x2ae,a);}const d=yield this['$'][bd(-0x21a,-0x1d6)];return d?yield HasProposedValue(d['$'][bd(-0x1cd,-0x1a2)]):![];}*[al(0x94,0xa2)](){return yield HasProposedValue(this['$']['units']);}*[al(0x11f,0xe0)](){function be(a,b){return al(b-0x333,a);}return(yield PreviousValueOf(this['$'][be(0x38b,0x3cc)]))!==void 0x0;}*['calculateEffort'](){function bf(a,b){return al(b- -0x197,a);}const d=yield*this[bf(-0xd9,-0xb7)]();const e=yield this['$'][bf(-0xc3,-0xbf)];if(e&&d!==SchedulingMode[bf(-0x2f,-0x7a)]){const f=yield this['$'][bf(-0xef,-0xa1)];const g=f['resolution'][bf(-0xbb,-0x96)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$']['effort']);const i=yield*e[bf(-0x111,-0xf0)](bf(-0x110,-0xe8));if(h&&!i||(yield*this[bf(-0x88,-0xbb)]())&&(yield HasPreviousValue(e['$']['effort']))&&!(yield e['$'][bf(-0x13b,-0x133)])[bf(-0xd3,-0xaf)]&&!this[bf(-0x106,-0x12e)][bf(-0xea,-0xf5)]){return yield*this[bf(-0x161,-0x131)]();}return yield*this[bf(-0x44,-0x7b)]();}else if(g===effortFormula[bf(-0xd1,-0x8c)]){return yield*this[bf(-0x7c,-0xde)]();}else{throw new Error(bf(-0x99,-0x9d));}}else{return yield*b[bf(-0xa3,-0x9f)][bf(-0xb8,-0xef)](this);}}*[al(0x11e,0xe0)](){const d=yield this[bg(-0xc2,-0x119)]['$'][bg(-0xd7,-0x10f)];const e=yield ProposedOrPreviousValueOf(this[bg(-0x10d,-0x119)]['$'][bg(-0x14a,-0x142)]);function bg(a,b){return al(b- -0x1f1,a);}const f=yield this[bg(-0xea,-0x119)]['$'][bg(-0x1a9,-0x164)];const g=(yield*this[bg(-0x131,-0x16c)]()[bg(-0x1c9,-0x172)](e,f,TimeUnit['Millisecond']))*((yield ProposedOrPreviousValueOf(this['$'][bg(-0x14a,-0x158)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bg(-0x116,-0x16c)]()['$convertDuration'](h,TimeUnit[bg(-0x182,-0x187)],yield this['$'][bg(-0x18a,-0x164)]);}*['calculateProportionalEffortByEffort'](){const d=yield PreviousValueOf(this['event']['$'][bh(0xab,0xe2)]);const e=yield this[bh(0xd4,0x132)]['$'][bh(0x89,0x43)];const f=yield*this[bh(0x81,0x24)]()['$convertDuration'](d,e,TimeUnit['Millisecond']);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$']['effort']);function bh(a,b){return al(a- -0x4,b);}const h=yield this['$'][bh(0x89,0x8d)];const i=yield*this['getProject']()['$convertDuration'](g,h,TimeUnit[bh(0x66,0x70)]);const j=yield ProposedOrPreviousValueOf(this[bh(0xd4,0x101)]['$'][bh(0xab,0xca)]);const k=yield*this['getProject']()['$convertDuration'](j,e,TimeUnit['Millisecond']);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bh(0x81,0x69)]()[bh(0x7b,0x74)](l,TimeUnit['Millisecond'],h);}else{return 0x0;}}*[al(0x66,0x7d)](){function bi(a,b){return al(b-0x1d5,a);}const d=yield HasProposedNotPreviousValue(this[bi(0x2ff,0x2ad)]['$'][bi(0x24c,0x284)]);const e=yield*this[bi(0x25d,0x2ad)][bi(0x268,0x2b1)]();if(d&&!e){return yield*this[bi(0x21f,0x26a)]();}else{return yield*this[bi(0x330,0x2f3)]();}}*[al(0xd6,0xbe)](d){function bj(a,b){return al(a-0x3f8,b);}const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$'][bj(0x4a7,0x4b8)]);const g=yield*e['hasProposedValueForAssignmentsField']('effort');const h=f&&!g?yield*this[bj(0x45e,0x416)]():yield this['$'][bj(0x4a7,0x459)],i=yield this['$'][bj(0x485,0x476)],j=yield*this[bj(0x47d,0x47e)]()['$convertDuration'](h,i,TimeUnit[bj(0x462,0x443)]);let k,l;if(yield*this['isTimePhased']()){k=yield this['$'][bj(0x493,0x470)];l=yield this['$'][bj(0x4c4,0x4fe)];}else{k=yield e['$'][bj(0x493,0x47e)];l=yield e['$'][bj(0x4c4,0x50d)];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object['assign'](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':k,'endDate':l});const o=yield this['$'][bj(0x47a,0x41e)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{const s=r[bk(0xa2,0xd3)]();const t=p[bk(0x119,0x148)](),u=q[bk(0x119,0xd1)](),v=u-t;function bk(a,b){return bj(a- -0x3f5,b);}for(const w of s){m+=(o[bk(0xd5,0x7e)](w)?o['get'](w)[bk(0x9d,0x5b)]:0x0)*v;}});return m?0x64*j/m:0x64;}*['calculateUnitsForNewAssignment'](d,e,f,g,h){const i=this[bl(-0x73,-0x99)]();const j=this[bl(-0x3e,-0x46)];const k=yield*i[bl(-0xc5,-0x9f)](f,g,TimeUnit[bl(-0x70,-0xb4)]);let l=0x0;const m=Object[bl(0x13,-0x33)](yield*this[bl(-0x3d,-0x4)](),{'startDate':d,'endDate':e});const n=yield j['$'][bl(-0x8c,-0x44)];const o=(yield j['$'][bl(-0xaa,-0x93)])||(yield this['$'][bl(-0x31,-0x93)])||(yield*j[bl(-0xd3,-0x8c)]())||n&&!i[bl(-0xac,-0x51)];const p=o?yield j['$']['effectiveCalendar']:yield h['$']['effectiveCalendar'];function bl(a,b){return al(b- -0x11e,a);}yield*this[bl(-0x6a,-0xb7)](m,(q,r,s)=>{const t=s[bm(-0x33c,-0x2dc)]();function bm(a,b){return bl(a,b- -0x25d);}const u=q['getTime'](),v=r[bm(-0x2b1,-0x265)](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[al(0xf9,0x144)]=al(0xae,0xea);__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[al(0xa1,0xad)],al(0xbb,0x77),void 0x0);__decorate([model_field({'type':al(0xc4,0x9c),'defaultValue':SchedulingMode['FixedDuration']},{'sync':!![]})],c['prototype'],'schedulingMode',void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[al(0xa1,0x77)],al(0x8b,0x93),void 0x0);__decorate([model_field({'type':al(0xc3,0x99),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0xa1,0x44)],'startDate',void 0x0);__decorate([model_field({'type':al(0xc3,0xe1),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0xa1,0x100)],'endDate',void 0x0);__decorate([model_field({'type':al(0x115,0xbc),'bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[al(0xa1,0xa7)],al(0xef,0x128),void 0x0);__decorate([model_field({'type':'number','defaultValue':null})],c[al(0xa1,0xad)],al(0xaf,0x103),void 0x0);__decorate([field()],c[al(0xa1,0xe7)],'selector',void 0x0);__decorate([calculate('selector')],c[al(0xa1,0x61)],al(0xb8,0x59),null);__decorate([calculate(al(0xbb,0x65))],c[al(0xa1,0xc7)],al(0xf5,0x113),null);__decorate([calculate(al(0x9c,0x6a))],c[al(0xa1,0x48)],al(0x9d,0x48),null);__decorate([field()],c['prototype'],'startOffset',void 0x0);__decorate([field()],c['prototype'],al(0x90,0x6d),void 0x0);__decorate([field()],c[al(0xa1,0x80)],al(0x9e,0x9c),void 0x0);__decorate([field()],c['prototype'],al(0xf3,0x106),void 0x0);__decorate([field()],c[al(0xa1,0x47)],al(0xfc,0x9b),void 0x0);__decorate([field()],c[al(0xa1,0x55)],al(0xc8,0x9f),void 0x0);__decorate([field()],c[al(0xa1,0x6d)],al(0xc9,0xf5),void 0x0);__decorate([field()],c[al(0xa1,0xce)],'proposedEndOffset',void 0x0);__decorate([field({'sync':!![]})],c[al(0xa1,0xe6)],al(0xca,0xc7),void 0x0);__decorate([write(al(0x8b,0x75))],c[al(0xa1,0xc1)],'writeIgnoreResourceCalendar',null);__decorate([write('startDate')],c[al(0xa1,0x63)],al(0xc5,0xc0),null);__decorate([write(al(0xcc,0xc4))],c[al(0xa1,0x40)],al(0xc6,0x111),null);__decorate([write(al(0xef,0x110))],c[al(0xa1,0xf7)],al(0x80,0x1e),null);__decorate([write('effort')],c[al(0xa1,0x88)],'writeEffort',null);__decorate([write('units')],c['prototype'],al(0xaa,0xad),null);__decorate([calculate('ignoreResourceCalendar')],c['prototype'],al(0x86,0x25),null);__decorate([calculate(al(0xff,0xe7))],c['prototype'],'calculateStartOffset',null);__decorate([calculate(al(0xf3,0xfe))],c['prototype'],'calculateProposedStartOffset',null);__decorate([calculate('phantomStartDate')],c[al(0xa1,0xbc)],al(0x110,0xeb),null);__decorate([calculate(al(0xc9,0xd6))],c[al(0xa1,0xe5)],al(0xfd,0x149),null);__decorate([calculate(al(0x90,0xd2))],c['prototype'],'calculatePhantomStartOffset',null);__decorate([calculate(al(0xc8,0x7f))],c['prototype'],al(0x97,0x35),null);__decorate([calculate('endOffset')],c['prototype'],'calculateEndOffset',null);function al(a,b){return _enaa(a-0x1df,b);}__decorate([calculate(al(0x6b,0x12))],c[al(0xa1,0xd1)],'calculateProposedEndOffset',null);__decorate([calculate(al(0xaf,0xd3))],c[al(0xa1,0x91)],'calculateEffort',null);return c;}){}function _enaa(a,b){return _enb(a- -0x242,b);}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0xef,-0xfe)](){return['assignment'];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(-0x108,-0x118)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);this['isTimePhasedCalendar']=!![];}get[_enaa(-0xbf,-0x80)](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
|
|
1
|
+
(function(a,b){const c=a();function V(a,b){return _enb(b- -0xe3,a);}while(!![]){try{const d=-parseInt(V(0x50,0x58))/0x1*(-parseInt(V(0xec,0xa8))/0x2)+parseInt(V(0x52,0x30))/0x3+-parseInt(V(0xc7,0x7e))/0x4+parseInt(V(-0x3d,0xb))/0x5+-parseInt(V(0x39,0x3b))/0x6*(-parseInt(V(0x114,0xc0))/0x7)+parseInt(V(0xbb,0x91))/0x8*(-parseInt(V(0xc0,0x66))/0x9)+parseInt(V(0x13,0x60))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x55487));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[W(0x18c,0x1e5)](b,e):f,j;if(typeof Reflect===W(0x1e8,0x1be)&&typeof Reflect[W(0x1c4,0x189)]===W(0x240,0x205))h=Reflect[W(0x181,0x189)](a,b,e,f);else for(var k=a[W(0x1c7,0x200)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function W(a,b){return _enb(b-0x94,a);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _ena(){const br=['$name','proposedStartDateMin','calculatePhantomStartDate','minOffset','Backward','calculateEffectiveDirection','calculateEffortUnit','splice','isChangingOnlyDuration','prototype','phantomStartOffset','skipNonWorkingTime','375221QnEbUj','forEach','selector','hasIdentifier','calculateProjectedEffort','direction','startDate','addProposedValueFlag','calculateProportionalEffortByUnits','FixedDuration','writeEffort','calculateSchedulingModeForUnitsCalculation','effectiveCalendar','dispatcher','1222255hprTNU','calculateSchedulingMode','unlink','call','setTimePhasedEffortBatch','writeDuration','add','decorate','hasProposedAssignments','putTimePhasedEffortBatch','calculateStartDate','fields','phantomStartDate','eventIsSegmented','isTimePhasedCalendar','calculateEffortPure','isChangingOnlyEndDate','proposedEndDate','getTime','startOffset','getCalendarsWorking','doCalculateAssignmentEffort','hasInputOnEndDate','isTimePhased','hasDurationValue','calculateAssignmentsByCalendar','ownIgnoreResourceCalendar','calculateIgnoreResourceCalendar','_changeAssignmentData','calculatePhantomEndDate','isUserTimePhased','proposedStartDate','phantomEndOffset','calculateProportionalEffortByEffort','calculatePhantomEndOffset','proposedEndOffset','run','331212DvBGBe','isDurationDefinedByEffort','prepareDispatcher','filter','isRemovingAssignmentByPutEffort','writeStartDate','getBaseOptionsForEffortCalculations','boolean','_calculateEffortData','forEachAvailabilityInterval','endDate','18DRcugD','proposedEndDateMax','calculateProjectedDuration','getBaseOptionsForDurationCalculations','has','calculateEndDate','manuallyScheduled','hasElapsedDuration','getProject','_proposedMirror','write','calculateProposedEndOffsetRaw','object','proposedEndOffsets','Unknown\x20formula\x20for\x20`effort`','effectiveDirection','units','effortUnit','calculateSelector','FixedEffort','calculateEffortProposed','enterGraph','isSegmented','project','proposedMirror','durationUnit','eventSelector','doCalculateAssignmentProjectedEffort','timePhasedDispatcher','13258RcXYwC','calculateProposedStartOffsetRaw','addKeepIfPossibleFlag','proposedStartOffset','defaultConfig','assign','assignmentsByCalendar','$convertDuration','2481630IgfQZY','FixedUnits','endOffset','calculateUnitsByStartEndAndEffort','calculatePhantomStartOffset','minAssignmentProposedStartDate','2799zktpbn','hasEndDateValue','hasInputOnEffort','writeIgnoreResourceCalendar','useEventAvailabilityIterator','assignment','calculateEffort','remove','getOwnPropertyDescriptor','hasInputOnlyOnEffort','Forward','isDurationDefinedByEffortStructurally','calculateDuration','assigned','leaveGraph','calculateStartByDelay','isPhantomTimePhasedStructurally','calculateProjectedXDateByEffort','setTimePhasedEffort','sort','duration','Normal','calculateProposedStartOffset','commitAsync','234404mYDqre','formulaId','eventEffectiveSchedulingMode','version','collectInfo','hasInputOnStartDate','effortDriven','resource','hasInputOnDuration','effort','hasSomeInput','length','calculateEffortDriven','graph','calculateProposedEndOffset','SchedulerProTimePhasedAssignmentMixin','function','hasStartDateValue','writeUnits','15976IdveYz','calculateProjectedXDateWithDuration','Millisecond','ignoreResourceCalendar','calculateStartOffset','push','set','writeEndDate','phantomEndDate','calculateDurationUnit','hasInputOnUnits','hasProposedValueForAssignmentsField','effectiveSchedulingMode','intervalStoreClass','calculateProportionalEffort','putTimePhasedEffort','skipNonWorkingTimeInDurationWhenSchedulingManually','event','isPhantomTimePhased','date','isTimePhasedStructurally','ion','hasProposedValueForUnits','40fWaqTQ','number','hasInputOnTimePhasedData','eventEffortDriven','hasPreviousValueForUnits','calculateEffectiveDataOrVisualCalendar','baseRevision','calculateEndOffset','get','proposedMirrorClass','hasEffortInput','schedulingMode'];_ena=function(){return br;};return _ena();}import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MissingValue}from'../../../util/Constants.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';function _enaa(a,b){return _enb(a- -0x2dc,b);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xe1;let f=c[d];return f;};return _enb(a,b);}import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{effortFormula,EffortVar,UnitsVar}from'./HasEffortDispatcher.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';class TimePhasedAssignmentMirror extends Mixin([FixedDurationMixin],a=>{class b extends a{*[X(0x4aa,0x4fb)](){function Y(a,b){return X(b,a- -0x4d4);}return yield this[Y(-0x8,0x15)]['$'][Y(-0x1f,-0x16)];}*[X(0x512,0x51b)](){function Z(a,b){return X(a,b- -0x4bc);}return yield this[Z(0x29,0x10)]['$'][Z(-0x57,-0xf)];}*['calculateEffortDriven'](){function a0(a,b){return X(a,b- -0x343);}return yield this[a0(0x189,0x189)]['$'][a0(0x1a2,0x1a2)];}*[X(0x45b,0x46d)](){function a1(a,b){return X(a,b- -0x3cf);}return yield this[a1(0xd1,0xfd)]['$'][a1(0xe9,0x145)];}*[X(0x4e3,0x508)](){function a2(a,b){return X(b,a- -0x6df);}return yield*this['assignment'][a2(-0x1d7,-0x1b0)]();}*[X(0x53d,0x50d)](){function a3(a,b){return X(a,b- -0x132);}return yield*this[a3(0x3da,0x39a)][a3(0x40a,0x3db)]();}*[X(0x4c6,0x51a)](){function a4(a,b){return X(a,b- -0x6b0);}return yield*this[a4(-0x1c1,-0x1e4)]['calculateEffectiveDirection']();}*[X(0x4af,0x50e)](c){function a5(a,b){return X(b,a- -0x303);}return yield*this['assignment'][a5(0x20b,0x227)](c);}*['calculateAssignmentsByCalendar'](){const c=new Map();const d=yield this[a6(0x4a2,0x482)]['$'][a6(0x488,0x49c)];if(d){const e=yield d['$'][a6(0x42b,0x420)];c['set'](e,[this[a6(0x496,0x482)]]);}function a6(a,b){return X(a,b- -0x4a);}return c;}*[X(0x43c,0x487)](){function a7(a,b){return X(a,b- -0x45);}return yield this['assignment']['$'][a7(0x4a0,0x4b0)];}*[X(0x4e9,0x49f)](){function a8(a,b){return X(b,a- -0x389);}return yield*this[a8(0x143,0xf2)]['getBaseOptionsForDurationCalculations']();}}__decorate([calculate(X(0x4a6,0x4b5))],b[X(0x4ee,0x51e)],X(0x4b7,0x4fb),null);__decorate([calculate(X(0x46b,0x4ad))],b[X(0x552,0x51e)],X(0x576,0x51b),null);__decorate([calculate('effortDriven')],b['prototype'],'calculateEffortDriven',null);__decorate([calculate(X(0x4ca,0x514))],b[X(0x520,0x51e)],X(0x4b4,0x46d),null);__decorate([calculate(X(0x4dd,0x4f5))],b[X(0x4c9,0x51e)],'calculateIgnoreResourceCalendar',null);function X(a,b){return _enb(b-0x37e,a);}return b;}){}class TimePhasedAssignmentSelector{constructor(){this[a9(0xf5,0x10e)]=null;this[a9(0x12c,0x18d)]=null;this[a9(0xdf,0xf1)]=null;this[a9(0x10a,0x14c)]=null;this[a9(0x135,0x124)]=![];this[a9(0xa2,0x4e)]=![];this[a9(0x119,0x14a)]=![];this[a9(0xf1,0x98)]=![];this[a9(0xad,0xa8)]=![];this[a9(0x10d,0x116)]=![];this[a9(0xab,0x102)]=![];this[a9(0x110,0xf7)]=![];this[a9(0xf2,0x11c)]=![];function a9(a,b){return _enb(a- -0x59,b);}this[a9(0x125,0x169)]=![];this['hasPreviousValueForUnits']=![];}get[_enaa(-0x18a,-0x133)](){function ab(a,b){return _enaa(b-0x255,a);}return!this[ab(0xd4,0xdf)]&&!this[ab(0x9e,0x7d)]&&!this[ab(0x138,0xe2)]&&this['hasInputOnEffort']&&!this[ab(0xc3,0xf7)];}get[_enaa(-0x171,-0x153)](){function ac(a,b){return _enaa(a-0x19d,b);}return this[ac(0x27,-0x10)]||this[ac(-0x3b,-0x5a)]||this[ac(0x2a,0x3b)]||this[ac(0xc,-0xb)]||this[ac(0x3f,-0x11)];}get[_enaa(-0x14f,-0x113)](){function ad(a,b){return _enaa(a-0x274,b);}return this['hasInputOnStartDate']||this[ad(0x9c,0xe1)]||this['hasInputOnDuration'];}get[_enaa(-0x1d0,-0x19c)](){function ae(a,b){return _enaa(a-0x1a1,b);}return(this[ae(0x37,0x53)]?0x1:0x0)+(this['hasEndDateValue']?0x1:0x0)+(this['hasDurationValue']?0x1:0x0)>=0x2;}get[_enaa(-0x1d7,-0x1a5)](){function af(a,b){return _enaa(a-0x10e,b);}return this[af(-0xc2,-0xdd)]||this[af(-0xba,-0xc3)];}get[_enaa(-0x154,-0x1b4)](){function ag(a,b){return _enaa(b- -0x40,a);}return this[ag(-0x270,-0x210)]||this['isDurationDefinedByEffortStructurally'];}get[_enaa(-0x156,-0x189)](){function ah(a,b){return _enaa(a-0x417,b);}return this[ah(0x240,0x248)]&&!this[ah(0x247,0x22c)];}get[_enaa(-0x183,-0x18f)](){function ai(a,b){return _enaa(a- -0x6d,b);}return this['isTimePhasedStructurally']&&!this[ai(-0x23d,-0x23e)];}get['isDurationDefinedByEffortStructurally'](){function aj(a,b){return _enaa(b-0x305,a);}const a=this[aj(0x190,0x1ae)];if(a){const b=this[aj(0x1df,0x18c)];const c=this[aj(0x19d,0x1b7)];return b!==SchedulingMode[aj(0x140,0x112)]&&b!==SchedulingMode['Normal']&&(c||b===SchedulingMode[aj(0x1b0,0x15a)]);}else{return![];}}get[_enaa(-0x1c8,-0x195)](){const a=this[ak(-0x263,-0x25b)];function ak(a,b){return _enaa(a- -0x10c,b);}if(a){const b=this[ak(-0x285,-0x230)];return this[ak(-0x294,-0x242)]&&!this[ak(-0x2b0,-0x2ad)][ak(-0x249,-0x22a)]&&!this[ak(-0x2b0,-0x2b6)][ak(-0x2ea,-0x339)]||b===SchedulingMode[ak(-0x2a4,-0x24b)]&&this[ak(-0x29d,-0x29d)]&&!this[ak(-0x26a,-0x248)]&&this[ak(-0x259,-0x248)];}else{return![];}}*[_enaa(-0x177,-0x1a2)](){const a=this[al(0x1a6,0x187)];this['hasStartDateValue']=(yield ProposedOrPreviousValueOf(a['$']['startDate']))!=null;function al(a,b){return _enaa(b-0x315,a);}this[al(0x184,0x183)]=(yield ProposedOrPreviousValueOf(a['$'][al(0x184,0x156)]))!=null;this[al(0x19b,0x13f)]=(yield ProposedOrPreviousValueOf(a['$']['duration']))!=null;this[al(0x187,0x19f)]=yield HasProposedNotPreviousValue(a['$'][al(0x180,0x11f)]);this[al(0x199,0x13d)]=yield HasProposedNotPreviousValue(a['$'][al(0x16f,0x156)]);this[al(0x17e,0x1a2)]=yield HasProposedNotPreviousValue(a['$'][al(0x15d,0x196)]);this[al(0x144,0x184)]=yield HasProposedNotPreviousValue(a['$']['effort']);this[al(0x1cf,0x1b7)]=yield HasProposedNotPreviousValue(a['$'][al(0x150,0x167)]);this['hasPreviousValueForUnits']=yield*a[al(0x21d,0x1c8)]();const b=this['event']=yield a['$'][al(0x171,0x1be)];if(b){this['eventSelector']=yield b['$'][al(0x13f,0x11b)];this[al(0x1a8,0x19c)]=yield*b[al(0x1f7,0x1b9)]();this[al(0x1de,0x1c7)]=yield b['$']['effortDriven'];this[al(0x168,0x134)]=yield b['$'][al(0x159,0x16d)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[am(0x336,0x2e5)];class c extends a{constructor(){super(...arguments);function an(a,b){return am(b-0x6e,a);}this[an(0x35a,0x398)]=TimePhasedAssignmentMirror;this[an(0x339,0x32b)]=void 0x0;}['_calculateEffortData'](d,e,f){let g,h;if(d['run']){g=d[ao(0x1c2,0x194)](ao(0x167,0x185),e,f);h=d[ao(0x1ba,0x1b1)];}else{g=this['run'](ao(0x13d,0x185),e,f);h=this[ao(0x18b,0x1b1)];}function ao(a,b){return am(b- -0x114,a);}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[am(0x2a0,0x27b)](d,e,f){let g;if(d[ap(0x2e9,0x2c7)]){g=f[ap(0x36c,0x348)](d);if(!g){g={};f[ap(0x347,0x32f)](d,g);}}else{g=d;}function ap(a,b){return am(b-0x1f,a);}Object['assign'](g,e);return g;}[am(0x28d,0x239)](d){if(!d[aq(0x226,0x276)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g['assigned'];const n=g[aq(0x1a0,0x1b5)];const o=g[aq(0x1d7,0x1c9)];const p=new Map();const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d['slice']()[aq(0x216,0x271)]((w,x)=>(w[aq(0x1a0,0x186)]||n)[aq(0x1ba,0x19e)]()-(x[aq(0x1a0,0x1b9)]||n)['getTime']());const t=[...m][aq(0x1d0,0x1d5)](w=>w[aq(0x222,0x27f)]===f)[aq(0x216,0x22f)]((w,x)=>(w[aq(0x1a0,0x1f2)]||n)['getTime']()-(x['startDate']||n)[aq(0x1ba,0x168)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w['effort']);const A=t['slice']();let B=![];for(let C=u,D=A[aq(0x226,0x23f)];C<D;C++){const E=A[C];const F=p[aq(0x24d,0x29f)](E);const G=F?.[aq(0x1a0,0x192)]||E[aq(0x1a0,0x153)]||n;const H=F?.[aq(0x1d7,0x198)]||E[aq(0x1d7,0x17c)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[aq(0x1f1,0x221)]||E['durationUnit'];if(G>=x&&H<=y){if(z){p[aq(0x234,0x27f)](E,w);z=![];}else{r['push'](E);t[aq(0x258,0x223)](C);}}else{let K;if(z){K={...s,...w};q[aq(0x233,0x264)](K);z=![];}let L=![];if(G<x){const M=this[aq(0x1d5,0x203)](E,G,x);if(M[aq(0x224,0x1e9)]){L=!![];this['_changeAssignmentData'](E,M,p);if(K){I++;t[aq(0x258,0x24f)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this['_calculateEffortData'](E,y,H)};if(N[aq(0x224,0x1c9)]){q['push'](N);t[aq(0x258,0x23d)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[aq(0x258,0x278)](I,0x0,K);I++;}const O=this[aq(0x1c4,0x1f0)](E,this[aq(0x1d5,0x174)](E,y,H),p);if(!O[aq(0x224,0x245)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q['push'](P);t[aq(0x233,0x254)](P);if(!p['size']&&t['length']===0x1&&!t[0x0][aq(0x1a0,0x167)]&&!t[0x0][aq(0x1d7,0x1f1)]){this['_changeAssignmentData'](t[0x0],{'startDate':n,'endDate':o,'effort':this[aq(0x224,0x1d5)]},p);}}}function aq(a,b){return am(a- -0xdc,b);}let v=[];for(let [Q,R]of p){Object[aq(0x1fa,0x232)](Q,R);}if(q[aq(0x226,0x262)]){q[aq(0x216,0x265)]((S,T)=>S['startDate']['getTime']()-T[aq(0x1a0,0x1d3)]['getTime']());if(this['event'][aq(0x250,0x213)]===SchedulingMode[aq(0x1a3,0x16b)]){for(const S of q){const T=this[aq(0x1cc,0x1a7)]('calculateUnitsForNewAssignment',S[aq(0x1a0,0x174)],S[aq(0x1d7,0x215)],S['effort'],S[aq(0x1e9,0x230)],S[aq(0x222,0x1ce)]);delete S[aq(0x224,0x285)];S[aq(0x1e8,0x1cc)]=T;}}v=k[aq(0x1ae,0x204)](q);}if(r[aq(0x226,0x277)]){r[aq(0x19b,0x1d7)](U=>{U[ar(-0x1de,-0x1c4)]=0x0;U[ar(-0x1d7,-0x1d1)]=0x0;function ar(a,b){return aq(b- -0x3e8,a);}U['$removed']=!![];});e[aq(0x243,0x204)]({'commitFinalized':{'fn':()=>{e[as(0x355,0x380)]=!![];k[as(0x38e,0x3c7)](r);function as(a,b){return aq(a-0x184,b);}e[as(0x3c7,0x3b2)]({'commitFinalized':{'fn':()=>{e['isRemovingAssignmentByPutEffort']=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}[am(0x288,0x22d)](d){this[at(0x341,0x360)](d);function at(a,b){return am(a-0xb4,b);}return this[at(0x3aa,0x3bf)]();}[am(0x319,0x349)](d,e,f,g=this['effortUnit']){function au(a,b){return am(a- -0x4e2,b);}return this[au(-0x255,-0x20b)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[am(0x2f1,0x2ad)](d,e,f,g){function av(a,b){return am(a- -0x351,b);}this[av(-0x38,-0x43)](d,e,f,g);return this[av(-0x5b,-0xb1)]();}*['calculateSelector'](){function aw(a,b){return am(b- -0x1a0,a);}const d=new TimePhasedAssignmentSelector();d[aw(0xff,0x144)]=this;yield*d['collectInfo']();return d;}*[am(0x303,0x34b)](){const d=yield this['$'][ax(0x474,0x4c1)];function ax(a,b){return am(b-0x1a6,a);}if(d&&(yield this['$'][ax(0x476,0x4a4)])){const e=yield d['$'][ax(0x4c2,0x4d2)];return e===SchedulingMode['Normal']?!![]:yield d['$']['effortDriven'];}else{return![];}}*[am(0x285,0x289)](){function ay(a,b){return am(a- -0x2fe,b);}const d=yield this['$'][ay(0x1d,-0x35)];if(d&&(yield this['$'][ay(0x0,-0xc)])){const e=yield d['$'][ay(0x2e,-0x2e)];return e===SchedulingMode['Normal']?SchedulingMode[ay(-0x7f,-0xbd)]:e;}else{return SchedulingMode['Normal'];}}*[am(0x281,0x248)](d){const e=yield this['$']['event'];function az(a,b){return am(b- -0x1e1,a);}if(e&&(yield this['$'][az(0x150,0x11d)])){const f=yield e['$'][az(0x11b,0x14b)];return f===SchedulingMode[az(0xbc,0x113)]?!(yield*e['calculateHasOnlyRegularAssignmentsRaw']())?SchedulingMode[az(0xdc,0x9e)]:SchedulingMode[az(0x14f,0x113)]:f;}else{return SchedulingMode['Normal'];}}get[am(0x2cc,0x2e3)](){if(this[aA(0x2cc,0x280)]!==void 0x0)return this[aA(0x282,0x280)];const d=new this['proposedMirrorClass']();d['assignment']=this;d[aA(0x259,0x28e)]=this[aA(0x2cc,0x28e)];function aA(a,b){return am(b- -0x3d,a);}d['id']='PROPOSED_'+this['id'];if(this[aA(0x270,0x2c7)]){d['enterGraph'](this[aA(0x2fb,0x2c7)]);}return this[aA(0x26d,0x280)]=d;}[am(0x2c9,0x2c8)](d){super[aB(0xa,0x27)](d);function aB(a,b){return am(a- -0x2bf,b);}const e=this[aB(-0x2,-0x2b)];if(e&&!e[aB(0x45,0x83)]){e[aB(0xa,0x40)](d);}}[am(0x2ed,0x2a2)](d){function aC(a,b){return am(b- -0x31,a);}this[aC(0x2b2,0x28c)]?.['leaveGraph'](d);super['leaveGraph'](d);}[am(0x286,0x28b)](...d){this['_proposedMirror']?.[aD(-0x2c6,-0x2ec)](...d);function aD(a,b){return am(b- -0x572,a);}super[aD(-0x2d5,-0x2ec)](...d);}[am(0x2e2,0x337)](d,e,f,g){e[aE(-0x200,-0x1d2)](this['$'][aE(-0x195,-0x1f2)],g);function aE(a,b){return am(b- -0x490,a);}d['constructor'][aE(-0x19b,-0x15a)][aE(-0x175,-0x1d2)][aE(-0x1d5,-0x209)](this,d,e,f,g);}[am(0x2ae,0x288)](d,e,f,g,h=!![]){if(!(!e[aF(0x2df,0x29c)][aF(0x231,0x1de)](d)&&g==null)){e[aF(0x276,0x274)](this[aF(0x284,0x239)]['$'][aF(0x234,0x219)],g,h);}function aF(a,b){return am(a- -0x48,b);}super[aF(0x266,0x28c)](d,e,f,g,h);}[am(0x311,0x2cb)](d,e,f,g,h=![]){if(!(!e[aG(-0x216,-0x229)][aG(-0x2c4,-0x311)](d)&&g==null)){e['write'](this['proposedMirror']['$'][aG(-0x28a,-0x2a5)],g,h);}function aG(a,b){return am(a- -0x53d,b);}super[aG(-0x22c,-0x274)](d,e,f,g,h);}[am(0x289,0x265)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e[aH(0x88,0xcb)][aH(-0x3f,0x1d)](d)&&g==null)){e[aH(0x65,0x62)](this[aH(0x4e,0x70)]['$']['duration'],g,h,i);}function aH(a,b){return am(b- -0x25c,a);}super['writeDuration'](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){if(g<0x0)g=0x0;function aI(a,b){return am(b- -0x151,a);}if(!(!e[aI(0x1ff,0x1d6)][aI(0x183,0x128)](d)&&g==null)){e[aI(0x17f,0x16d)](this[aI(0x194,0x17b)]['$'][aI(0x1d1,0x1af)],g,h);}super[aI(0x168,0x12f)](d,e,f,g,h);}[am(0x309,0x353)](d,e,f,g){if(g===MissingValue)return;function aJ(a,b){return am(b- -0x55c,a);}d['constructor'][aJ(-0x245,-0x226)][aJ(-0x274,-0x29e)][aJ(-0x304,-0x2d5)](this,d,e,f,g);}*[am(0x293,0x2d4)](){function aK(a,b){return am(b- -0x2d1,a);}return yield*this[aK(-0x3,-0x38)]();}*['doCalculateAssignmentEffort'](d=null,e=null){function aL(a,b){return am(a- -0xb4,b);}const f=yield this['$'][aL(0x1c4,0x166)];if(f[aL(0x267,0x275)]&&f[aL(0x1e7,0x20f)]){if(!d){d=yield this['$']['startDate'];}if(!e){e=yield this['$']['endDate'];}return yield*this[aL(0x1c6,0x1b4)](d,e);}return yield*super[aL(0x21b,0x220)](d,e);}*['calculateEffectiveDirection'](){const d=yield this['$'][aM(-0x20c,-0x212)];function aM(a,b){return am(b- -0x52d,a);}if(d){return yield d['$']['effectiveDirection'];}else{return yield*super[aM(-0x1e9,-0x1fb)]();}}*[am(0x29f,0x267)](){const d=yield this['$'][aN(-0x1b7,-0x1db)];function aN(a,b){return am(b- -0x4f6,a);}return Boolean(d&&(yield d['$'][aN(-0x22a,-0x1e9)])||(yield this['$']['ownIgnoreResourceCalendar']));}*[am(0x30e,0x2da)](){function aO(a,b){return am(a- -0x54d,b);}const d=yield this['$'][aO(-0x232,-0x28b)];if(d){const e=yield d['$']['startDate'];const f=yield this['$'][aO(-0x2d1,-0x2f3)];return(yield*this[aO(-0x297,-0x2ad)](e,f,TimeUnit[aO(-0x241,-0x26d)]))??0x0;}else return null;}*[am(0x2d2,0x32d)](){const d=yield this['$'][aP(0x66,0x61)];function aP(a,b){return am(a- -0x212,b);}const e=d[aP(0x109,0x15f)];if(e){if(d[aP(0x111,0x12d)]||(yield PreviousValueOf(this['$'][aP(0x85,0xa4)]))==null){const f=(yield e['$'][aP(0x91,0xbc)])??(yield e['$']['minAssignmentProposedStartDate']);const g=yield this[aP(0xba,0x6a)]['$'][aP(0x6a,0x8c)];return(yield*this['calculateProjectedDuration'](f,g,TimeUnit[aP(0xfa,0x117)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aP(0x85,0x57)]);}}else{return null;}}*[am(0x2f5,0x2f1)](){const d=yield this['$']['selector'];function aQ(a,b){return am(b-0x22e,a);}const e=d['event'];if(e){const f=(yield e['$']['proposedStartOffsets'])[aQ(0x586,0x55e)]<0x0;if(f||d[aQ(0x576,0x551)]||(yield PreviousValueOf(this['$'][aQ(0x50f,0x4c5)]))==null){const g=yield this['$'][aQ(0x4ca,0x4f1)];const h=g[aQ(0x47f,0x4a9)]===Direction[aQ(0x4c5,0x517)]?yield e['$'][aQ(0x55b,0x55c)]:yield e['$'][aQ(0x501,0x50c)];const i=yield this[aQ(0x54a,0x4fa)]['$'][aQ(0x45e,0x4aa)];return(yield*this[aQ(0x498,0x4e4)](h,i,TimeUnit['Millisecond']))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aQ(0x46a,0x4c5)]);}}else{return null;}}*[am(0x32f,0x323)](){const d=yield this['$'][aR(0x1c,-0x3c)];if(d[aR(0xaf,0x67)]&&!d['eventIsSegmented']&&(d[aR(0x8a,0x68)]||(yield*d[aR(0x7d,0x67)][aR(0x12,-0xa)]()))){return yield*this[aR(0x47,0x3a)]();}function aR(a,b){return am(b- -0x2b4,a);}return null;}*['calculatePhantomEndDate'](){const d=yield this['$'][aS(0x3db,0x40c)];function aS(a,b){return am(b-0x194,a);}if(d['event']&&!d[aS(0x3d8,0x425)]&&(d[aS(0x483,0x4b0)]||(yield*d[aS(0x4c7,0x4af)][aS(0x487,0x43e)]()))){const e=yield this['$'][aS(0x3cc,0x424)];if(e){return yield*this[aS(0x4c7,0x484)](e,!![],yield this['$'][aS(0x4c4,0x494)],yield this['$']['effortUnit']);}}return null;}*[am(0x2dd,0x27b)](){const d=yield this['$']['selector'];function aT(a,b){return am(a- -0x57e,b);}if(d['event']&&!d['eventIsSegmented']&&(d[aT(-0x262,-0x20c)]||(yield*d[aT(-0x263,-0x27b)][aT(-0x2d4,-0x2ea)]()))){return 0x0;}else return null;}*[am(0x2a6,0x28f)](){function aU(a,b){return am(a-0x208,b);}const d=yield this['$'][aU(0x480,0x469)];if(d[aU(0x523,0x523)]&&!d[aU(0x499,0x46c)]&&(d[aU(0x524,0x4c5)]||(yield*d[aU(0x523,0x4e4)][aU(0x4b2,0x47a)]()))){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aU(0x4ac,0x4ac)]))==null){const e=yield d[aU(0x523,0x528)]['$'][aU(0x4bb,0x460)];const f=yield*this[aU(0x4f8,0x518)](yield this['$'][aU(0x498,0x488)],!![],yield this['$'][aU(0x508,0x4b2)],yield this['$'][aU(0x4cd,0x4d0)]);return yield*this[aU(0x4be,0x4a4)](f,e,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$'][aU(0x4ac,0x49c)]);}}return null;}*[am(0x328,0x2e6)](){function aV(a,b){return am(b-0xd5,a);}const d=yield this['$'][aV(0x42f,0x3f0)];if(d){const e=yield d['$'][aV(0x327,0x388)];const f=yield this['$']['endDate'];return yield*this[aV(0x3b1,0x38b)](f,e,TimeUnit[aV(0x3d3,0x3e1)]);}else return null;}*[am(0x2bf,0x282)](){const d=yield this['$'][aW(0x204,0x1fd)];const e=d[aW(0x2db,0x2a0)];function aW(a,b){return am(b- -0x7b,a);}if(e){if(d[aW(0x2b4,0x2a8)]||(yield PreviousValueOf(this['$'][aW(0x25a,0x260)]))==null){const f=(yield e['$'][aW(0x253,0x21a)])??(yield e['$']['maxAssignmentProposedEndDate']);const g=yield this[aW(0x23b,0x251)]['$'][aW(0x1fd,0x238)];return yield*this[aW(0x29b,0x23b)](g,f,TimeUnit[aW(0x2c4,0x291)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aW(0x2ab,0x260)]);}}else{return null;}}*[am(0x305,0x2db)](){const d=yield this['$'][aX(-0x32e,-0x2fa)];const e=d['event'];function aX(a,b){return am(b- -0x572,a);}if(e){const f=(yield e['$'][aX(-0x2d8,-0x2b1)])[aX(-0x219,-0x242)]<0x0;if(f||d[aX(-0x1f8,-0x24f)]||(yield PreviousValueOf(this['$'][aX(-0x2eb,-0x297)]))==null){const g=yield this['$'][aX(-0x2f2,-0x2af)];const h=g[aX(-0x304,-0x2f7)]===Direction[aX(-0x224,-0x241)]?yield e['$'][aX(-0x2eb,-0x2bd)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this[aX(-0x266,-0x2a6)]['$']['endDate'];return yield*this[aX(-0x2d0,-0x2bc)](i,h,TimeUnit[aX(-0x235,-0x266)]);}else{return yield ProposedOrPreviousValueOf(this['$']['endOffset']);}}else{return null;}}*[am(0x2ea,0x295)](){function aY(a,b){return am(a-0x1ec,b);}const d=yield this['$'][aY(0x464,0x478)];return d['isDurationDefinedByEffortStructurally'];}*['isDurationDefinedByEffort'](){const d=yield this['$']['selector'];function aZ(a,b){return am(b- -0x370,a);}return d[aZ(-0xaf,-0xc6)];}*['calculateProjectedXDate'](d,e){const {event:f}=this;function b0(a,b){return am(a- -0x5d,b);}if(f&&((yield*this[b0(0x24d,0x1ed)]())||(yield*f[b0(0x24d,0x2a1)]()))){return yield*this[b0(0x293,0x235)](d,e,yield this['$'][b0(0x2a3,0x25d)],yield this['$'][b0(0x268,0x244)]);}else{return yield*this[b0(0x2ae,0x2e2)](d,e,yield this['proposedMirror']['$'][b0(0x296,0x23b)],yield this['$'][b0(0x270,0x245)]);}}*[am(0x28e,0x297)](){function b1(a,b){return am(b- -0x155,a);}const d=yield this['$'][b1(0x139,0x123)];const e=d['event'];if(e&&d['isUserTimePhased']){const f=yield this['$'][b1(0x1b9,0x16e)];if(f[b1(0x140,0x126)]===Direction['Forward']){const g=yield*this[b1(0x1c3,0x199)]();const h=yield e['$'][b1(0x149,0x15e)];if(g>h){return h;}else return g;}else{const i=yield this['$'][b1(0x1a4,0x15e)];const j=yield e['$'][b1(0x14e,0x127)];const k=yield this['proposedMirror']['$'][b1(0x18a,0x19e)];const l=yield*this[b1(0x162,0x1b6)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[am(0x2b9,0x289)](){const d=yield this['$'][b2(0x49,0x65)];const e=d['event'];function b2(a,b){return am(b- -0x213,a);}if(e&&d['isUserTimePhased']){const f=yield this['$']['effectiveDirection'];if(f[b2(0xb4,0x68)]===Direction[b2(0x116,0xd6)]){const g=yield this['$'][b2(0x4b,0x69)];const h=yield e['$'][b2(0x7d,0xa0)];const i=yield this[b2(0x5c,0xb9)]['$'][b2(0xd6,0xe0)];const j=yield*this[b2(0x158,0xf8)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this['calculateEndByDelay']();const l=yield e['$'][b2(0x78,0x69)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*[am(0x2eb,0x2aa)](){const d=yield this['$'][b3(-0xb1,-0xe6)];function b3(a,b){return am(b- -0x362,a);}const e=yield this['$'][b3(-0xcc,-0xaf)];return yield*this[b3(-0x6a,-0xac)](d,e);}*[am(0x2ee,0x2ca)](){const d=yield this['$']['event'];function b4(a,b){return am(a-0x1d0,b);}if(d){const e=yield d['$'][b4(0x44c,0x40e)];const f=yield this['$']['proposedStartOffset'];const g=yield*this[b4(0x4db,0x49a)](e,!![],f,TimeUnit[b4(0x4dc,0x493)]);const h=yield*this[b4(0x508,0x4b9)](g,!![]);return h;}else{return null;}}*['calculateEndByDelay'](){function b5(a,b){return am(a- -0x2de,b);}const d=yield this['$'][b5(0x3d,0x43)];if(d){const e=yield d['$'][b5(-0x2b,-0x2e)];const f=yield this['$'][b5(-0x37,-0x22)];const g=yield*this['calculateProjectedXDateWithDuration'](e,![],f,TimeUnit[b5(0x2e,0x3f)]);const h=yield*this['skipNonWorkingTime'](g,![]);return h;}else{return null;}}*['calculateEffectiveDataOrVisualCalendar'](d){const e=yield this['$']['event'];function b6(a,b){return am(a-0x1b7,b);}const f=e?yield e['$']['effectiveCalendar']:yield this[b6(0x473,0x47b)]()['$'][b6(0x439,0x46c)];yield f['$'][b6(0x4b1,0x50c)];return f;}*[am(0x2e3,0x2dd)](){return!![];}*[am(0x29d,0x2bc)](){const d=new Map();const e=yield this['$'][b7(0x2af,0x26a)];if(e){const f=yield e['$']['effectiveCalendar'];d[b7(0x2c1,0x27d)](f,[this]);}function b7(a,b){return am(a- -0x4f,b);}return d;}*['isTimePhasedStructurally'](){const d=yield this['$'][b8(0x446,0x450)];function b8(a,b){return am(a-0x1ce,b);}return d[b8(0x4ec,0x4a7)];}*[am(0x29b,0x2bc)](){const d=yield this['$'][b9(0x313,0x323)];function b9(a,b){return am(a-0x9b,b);}const {event:e}=d;return e&&(d[b9(0x336,0x340)]||(yield*e[b9(0x345,0x36c)]()));}*[am(0x2a2,0x2de)](){const d=yield this['$'][ba(0x329,0x339)];function ba(a,b){return am(b-0xc1,a);}return d[ba(0x363,0x363)];}*[am(0x31c,0x332)](){function bb(a,b){return am(b-0xb3,a);}const d=yield this['$']['selector'];return d[bb(0x3ad,0x3cf)];}*['getBaseOptionsForDurationCalculations'](){const d=yield*super[bc(-0x16d,-0x1bd)]();function bc(a,b){return am(b- -0x474,a);}const e=yield this['$'][bc(-0x127,-0x159)];if(e){const f=yield*e[bc(-0x16f,-0x15e)]();if(f===SchedulingMode[bc(-0x190,-0x180)]){d['ignoreResourceCalendar']=![];}}return d;}*['prepareDispatcherForAssignmentsFixedDuration'](d,e){function bd(a,b){return am(a-0x1d8,b);}if(yield*this['hasProposedAssignments']()){const f=yield this['$']['event'];if(yield this['$'][bd(0x4d5,0x4c6)]){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bd(0x4d8,0x484)]))!=null)e['addProposedValueFlag'](EffortVar);}else{if(yield*this['hasPreviousValueForUnits']()){e['addProposedValueFlag'](UnitsVar);}}}}*[am(0x2ab,0x2b5)](d){const e=yield*this[be(0x4bb,0x46a)]();function be(a,b){return am(a-0x1a5,b);}const f=yield this['$'][be(0x4c0,0x4ca)];if(e!==SchedulingMode[be(0x499,0x473)]&&f){let g;const h=yield this['$']['selector'];const i=yield*f['isDurationDefinedByEffort']();if(h[be(0x440,0x40b)]||i){g=yield*super[be(0x450,0x46b)](d);}else{g=yield*super[be(0x450,0x46a)](d);g[be(0x4a0,0x4ca)](d,f['$'][be(0x421,0x476)],StartDateVar);g[be(0x4a0,0x470)](d,f['$'][be(0x458,0x48d)],EndDateVar);g['collectInfo'](d,f['$'][be(0x498,0x4e1)],DurationVar);g[be(0x4a0,0x49d)](d,f['$']['effort'],EffortVar);}if(i){g[be(0x422,0x449)](EffortVar);g[be(0x478,0x48a)](EffortVar);}if(yield*f[be(0x4c5,0x4a9)]()){g[be(0x422,0x476)](UnitsVar);}return g;}else{return yield*super[be(0x450,0x4ab)](d);}}*['hasProposedAssignments'](){function bf(a,b){return am(b- -0xd,a);}const d=yield this['$'][bf(0x354,0x30e)];return d?yield HasProposedValue(d['$'][bf(0x2a1,0x2df)]):![];}*['hasProposedValueForUnits'](){function bg(a,b){return am(a-0x1df,b);}return yield HasProposedValue(this['$'][bg(0x4a3,0x479)]);}*[am(0x325,0x31a)](){return(yield PreviousValueOf(this['$']['units']))!==void 0x0;}*[am(0x2e5,0x32f)](){const d=yield*this['effectiveSchedulingMode']();function bh(a,b){return am(b- -0x565,a);}const e=yield this['$'][bh(-0x237,-0x24a)];if(e&&d!==SchedulingMode['Normal']){const f=yield this['$'][bh(-0x2d8,-0x2e2)];const g=f['resolution'][bh(-0x238,-0x23c)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$'][bh(-0x228,-0x265)]);const i=yield*e[bh(-0x29e,-0x250)](bh(-0x22a,-0x265));if(h&&!i||(yield*this['hasProposedAssignments']())&&(yield HasPreviousValue(e['$'][bh(-0x232,-0x265)]))&&!(yield e['$'][bh(-0x2a3,-0x295)])[bh(-0x206,-0x23a)]&&!this[bh(-0x29a,-0x29a)][bh(-0x30f,-0x2b8)]){return yield*this[bh(-0x280,-0x24d)]();}return yield*this[bh(-0x241,-0x29d)]();}else if(g===effortFormula[bh(-0x2b9,-0x26d)]){return yield*this['calculateEffortPure']();}else{throw new Error(bh(-0x27a,-0x2a3));}}else{return yield*b['calculateEffort']['call'](this);}}*['calculateProportionalEffortByUnits'](){const d=yield this['event']['$']['proposedTotalUnits'];const e=yield ProposedOrPreviousValueOf(this[bi(0x13d,0x129)]['$'][bi(0x122,0xee)]);const f=yield this[bi(0x13d,0x14f)]['$'][bi(0xe7,0xda)];const g=(yield*this[bi(0xde,0xab)]()['$convertDuration'](e,f,TimeUnit[bi(0x12e,0x188)]))*((yield ProposedOrPreviousValueOf(this['$'][bi(0xe6,0xc2)]))??0x64);function bi(a,b){return am(a- -0x1de,b);}const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bi(0xde,0x125)]()[bi(0xfa,0xf5)](h,TimeUnit[bi(0x12e,0x182)],yield this['$']['effortUnit']);}*[am(0x2a5,0x27b)](){const d=yield PreviousValueOf(this[bj(0x2e7,0x2e2)]['$'][bj(0x30b,0x2c7)]);const e=yield this[bj(0x28e,0x2e2)]['$'][bj(0x24c,0x28c)];const f=yield*this[bj(0x236,0x283)]()[bj(0x2d3,0x29f)](d,e,TimeUnit[bj(0x2fd,0x2d3)]);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$']['effort']);const h=yield this['$'][bj(0x2d8,0x28c)];function bj(a,b){return am(b- -0x39,a);}const i=yield*this['getProject']()[bj(0x290,0x29f)](g,h,TimeUnit[bj(0x2a1,0x2d3)]);const j=yield ProposedOrPreviousValueOf(this[bj(0x33d,0x2e2)]['$']['effort']);const k=yield*this['getProject']()[bj(0x2b6,0x29f)](j,e,TimeUnit[bj(0x2a7,0x2d3)]);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bj(0x2c8,0x283)]()[bj(0x298,0x29f)](l,TimeUnit[bj(0x294,0x2d3)],h);}else{return 0x0;}}*[am(0x318,0x2f8)](){const d=yield HasProposedNotPreviousValue(this[bk(0x1d0,0x217)]['$']['effort']);const e=yield*this[bk(0x264,0x217)][bk(0x1ba,0x188)]();function bk(a,b){return am(b- -0x104,a);}if(d&&!e){return yield*this['calculateProportionalEffortByEffort']();}else{return yield*this[bk(0x1bb,0x17a)]();}}*[am(0x2dc,0x2f6)](d){const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$']['effort']);const g=yield*e[bl(-0x1de,-0x229)](bl(-0x1f3,-0x1e9));const h=f&&!g?yield*this[bl(-0x1db,-0x1d7)]():yield this['$']['effort'],i=yield this['$'][bl(-0x22e,-0x1d2)],j=yield*this[bl(-0x237,-0x23f)]()[bl(-0x21b,-0x238)](h,i,TimeUnit['Millisecond']);let k,l;if(yield*this['isTimePhased']()){k=yield this['$'][bl(-0x277,-0x240)];l=yield this['$']['endDate'];}else{k=yield e['$'][bl(-0x277,-0x28d)];l=yield e['$']['endDate'];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;function bl(a,b){return am(a- -0x4f3,b);}const n=Object[bl(-0x21d,-0x1c1)](yield*this[bl(-0x244,-0x219)](),{'startDate':k,'endDate':l});const o=yield this['$'][bl(-0x21c,-0x1ce)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{const s=r[bm(0x9a,0x86)]();const t=p[bm(0x98,0x96)](),u=q['getTime'](),v=u-t;function bm(a,b){return bl(a-0x2f5,b);}for(const w of s){m+=(o[bm(0xba,0xec)](w)?o[bm(0x12b,0xec)](w)[bm(0x104,0x137)]:0x0)*v;}});return m?0x64*j/m:0x64;}*['calculateUnitsForNewAssignment'](d,e,f,g,h){const i=this[bn(0x200,0x206)]();const j=this[bn(0x228,0x265)];const k=yield*i[bn(0x23c,0x222)](f,g,TimeUnit[bn(0x29d,0x256)]);let l=0x0;const m=Object[bn(0x1f6,0x220)](yield*this[bn(0x21c,0x1f9)](),{'startDate':d,'endDate':e});function bn(a,b){return am(b- -0xb6,a);}const n=yield j['$'][bn(0x1be,0x204)];const o=(yield j['$'][bn(0x2b6,0x257)])||(yield this['$'][bn(0x28d,0x257)])||(yield*j[bn(0x22b,0x205)]())||n&&!i[bn(0x279,0x264)];const p=o?yield j['$'][bn(0x227,0x1cc)]:yield h['$'][bn(0x1ed,0x1cc)];yield*this[bn(0x1df,0x1fc)](m,(q,r,s)=>{const t=s[bo(-0x15d,-0x101)]();const u=q[bo(-0xf8,-0x103)](),v=r[bo(-0x143,-0x103)](),w=v-u;function bo(a,b){return bn(a,b- -0x2e3);}for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[am(0x32d,0x38a)]=am(0x306,0x364);__decorate([model_field({'type':am(0x2b0,0x2da),'defaultValue':!![]})],c[am(0x336,0x30d)],am(0x2fd,0x2bd),void 0x0);__decorate([model_field({'type':'string','defaultValue':SchedulingMode['FixedDuration']},{'sync':!![]})],c[am(0x336,0x2ef)],am(0x32c,0x334),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c['prototype'],am(0x30d,0x315),void 0x0);__decorate([model_field({'type':am(0x31d,0x35d),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[am(0x336,0x364)],am(0x27c,0x2cc),void 0x0);__decorate([model_field({'type':am(0x31d,0x30b),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[am(0x336,0x37f)],am(0x2b3,0x271),void 0x0);__decorate([model_field({'type':'number','bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[am(0x336,0x37e)],am(0x2f3,0x2fc),void 0x0);__decorate([model_field({'type':am(0x322,0x358),'defaultValue':null})],c[am(0x336,0x2f8)],'effort',void 0x0);__decorate([field()],c[am(0x336,0x382)],'selector',void 0x0);__decorate([calculate(am(0x278,0x23d))],c['prototype'],am(0x2c6,0x2d2),null);__decorate([calculate('effortDriven')],c[am(0x336,0x312)],am(0x303,0x2e3),null);__decorate([calculate(am(0x32c,0x2d8))],c[am(0x336,0x33c)],am(0x285,0x2db),null);__decorate([field()],c[am(0x336,0x348)],'startOffset',void 0x0);__decorate([field()],c['prototype'],am(0x337,0x32e),void 0x0);__decorate([field()],c[am(0x336,0x2ff)],am(0x290,0x29a),void 0x0);__decorate([field()],c[am(0x336,0x2da)],am(0x2d4,0x2e7),void 0x0);__decorate([field()],c[am(0x336,0x349)],'endOffset',void 0x0);__decorate([field()],c[am(0x336,0x2fa)],am(0x2a4,0x303),void 0x0);__decorate([field()],c['prototype'],am(0x312,0x330),void 0x0);__decorate([field()],c['prototype'],'proposedEndOffset',void 0x0);__decorate([field({'sync':!![]})],c[am(0x336,0x38d)],am(0x29e,0x2c1),void 0x0);__decorate([write(am(0x30d,0x2ac))],c['prototype'],am(0x2e2,0x2af),null);__decorate([write(am(0x27c,0x237))],c[am(0x336,0x30c)],am(0x2ae,0x306),null);__decorate([write(am(0x2b3,0x279))],c[am(0x336,0x309)],am(0x311,0x2d6),null);__decorate([write(am(0x2f3,0x339))],c[am(0x336,0x378)],am(0x289,0x268),null);__decorate([write(am(0x300,0x2b2))],c[am(0x336,0x33f)],am(0x280,0x245),null);__decorate([write(am(0x2c4,0x2ae))],c[am(0x336,0x2d6)],am(0x309,0x2d8),null);__decorate([calculate(am(0x30d,0x312))],c['prototype'],am(0x29f,0x2b0),null);__decorate([calculate(am(0x297,0x2df))],c['prototype'],am(0x30e,0x322),null);__decorate([calculate(am(0x2d4,0x318))],c[am(0x336,0x36b)],am(0x2f5,0x2ff),null);__decorate([calculate(am(0x290,0x2e8))],c['prototype'],am(0x32f,0x343),null);__decorate([calculate('phantomEndDate')],c['prototype'],am(0x2a1,0x2c9),null);__decorate([calculate(am(0x337,0x2e7))],c['prototype'],am(0x2dd,0x321),null);__decorate([calculate(am(0x2a4,0x26b))],c[am(0x336,0x2e3)],am(0x2a6,0x2a8),null);function am(a,b){return _enaa(a-0x472,b);}__decorate([calculate(am(0x2db,0x2a6))],c[am(0x336,0x2ff)],am(0x328,0x34f),null);__decorate([calculate(am(0x2a7,0x2a3))],c[am(0x336,0x308)],am(0x305,0x2ad),null);__decorate([calculate(am(0x300,0x2a9))],c[am(0x336,0x333)],am(0x2e5,0x324),null);return c;}){}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0x1e3,-0x1bd)](){function bp(a,b){return _enaa(b- -0xb0,a);}return[bp(-0x231,-0x23e)];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(-0x19d,-0x148)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);function bq(a,b){return _enaa(b- -0xe7,a);}this[bq(-0x325,-0x2c7)]=!![];}get[_enaa(-0x15b,-0x143)](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _enN(a,b){return _enb(a- -0x1e7,b);}(function(a,b){const c=a();function L(a,b){return _enb(b-0x231,a);}while(!![]){try{const d=-parseInt(L(0x359,0x39a))/0x1*(parseInt(L(0x2df,0x327))/0x2)+parseInt(L(0x3c3,0x394))/0x3*(parseInt(L(0x38a,0x386))/0x4)+-parseInt(L(0x39e,0x393))/0x5+-parseInt(L(0x36c,0x333))/0x6+parseInt(L(0x3ba,0x391))/0x7*(-parseInt(L(0x372,0x345))/0x8)+-parseInt(L(0x393,0x34b))/0x9*(parseInt(L(0x358,0x362))/0xa)+parseInt(L(0x345,0x385))/0xb*(parseInt(L(0x353,0x348))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe82b4));var __decorate=function(a,b,e,f){function M(a,b){return _enb(b-0x375,a);}var g=arguments[M(0x4cc,0x4a1)],h=g<0x3?b:f===null?f=Object[M(0x503,0x4f3)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x48e,0x47d)]===M(0x4a5,0x495))h=Reflect[M(0x47a,0x47d)](a,b,e,f);else for(var k=a[M(0x45e,0x4a1)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[M(0x4dd,0x4b7)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _ena(){const av=['dispatcher','name','reduce','isHasSubEventsMixin','nextSegment','getTime','SegmentsVar','startDate','call','SplitEventMixin','rawModifications','8YzOjwv','getPath','normalizeUnit','Millisecond','hasIdentifier','isForward','cls','modified','getLatestStableEntryFor','lastSegment','map','adjustDurationToDST','3516288cjjXoR','isModel','$name','assign','duration','removeEntities','decorate','durationUnit','calculateDurationProposed','forEach','getSegmentIndexByDate','endDate','calculateProjectedXDateWithDuration','getSegment','fieldMap','processData','copy','push','141992ipHMvL','ignoreSegments','direction','12iEIcyP','skipNonWorkingTimeInDurationWhenSchedulingManually','$activeTransaction','62073qrgzRU','run','hasElapsedDuration','convertDurationGen','hasSegmentChangesProposed','autoMergeAdjacentSegments','function','getProject','splice','assignmentsByCalendar','some','doWriteSegments','_segmentGeneration','from','getSegmentsSnapshot','setPath','getSegments','has','length','every','array','skipNonWorkingTimeWhenSchedulingManually','graph','820AaXFnj','maxCalendarRange','_lastSegmentsSnapshot','isManuallyScheduled','getTimezoneOffset','forceSegmentsMerging','unlink','commitAsync','effectiveCalendarsCombination','prepareDispatcher','segmentModelClass','None','resolution','size','calculateStartDate','storeFieldChange','internalClearChanges','defineProperty','calculateAdjustedSegments','firstSegment','_processingDataForProject','_skipSegmentsIsEqual','skipNonWorkingTime','min','startOffset','internalId','event','prototype','getFieldPersistentValue','getCalendarsWorking','isSegmented','setProject','leaveProject','processSegmentValue','toJSON','50420535TonnPg','376636JHdeZP','childEvents','calculateEndDateBySegments','processSegmentsValue','forEachAvailabilityInterval','max','getCalendarsWorkStatus','cycleResolutionContext','calculateSegments','skipWorkingTime','writeSegments','665IcpYqN','ignoreResourceCalendar','2357695MvdUlS','3EEfEJU','findIndex','calculateProjectedDuration','adjustedSegments','previousSegment','slice','104396YrzXcg','write','add','generation','meta','endOffset','new','calculateStartDateBySegments','effectiveDirection','convert','segmentsToCleanup','endBatch','segments','get','zeroDurationMsThreshold','calculateDurationBySegments','pop','splitToSegments','calculateEndDate','project','data','getOwnPropertyDescriptor'];_ena=function(){return av;};return _ena();}import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE}from'../../../util/Constants.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xed;let f=c[d];return f;};return _enb(a,b);}import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(-0xf6,-0x138));const segmentsConverter=(a,b,c)=>c[_enN(-0x8f,-0x8b)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(-0x78,-0x58)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(-0x78,-0x6a)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(-0x78,-0x8e)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(-0x78,-0xb1)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(-0x78,-0xb5)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{['equality'](a,b){const c=a[O(0x7c,0x8e)];function O(a,b){return _enN(b-0x138,a);}const d=b[O(0x86,0x8e)];return super['equality'](a,b)&&c[O(0x81,0xc7)](SegmentsVar)===d[O(0x94,0xc7)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b-0x14c,a);}if(!c&&!d)return!![];if(this[P(0x82,0xab)])return![];if(!c&&d||c&&!d)return![];if(c[P(0x65,0x91)]!==d[P(0xa5,0x91)])return![];return c[P(0x88,0x92)]((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x13e,0x15e)]?c:d;const f=e['fieldMap'];const g=c[Q(0x12d,0x151)]instanceof Date?c[Q(0x12d,0x134)]['getTime']():f[Q(0x12d,0xfc)]['convert'](c[Q(0x12d,0x150)])?.[Q(0x12b,0x159)]();function Q(a,b){return _enN(a-0x222,b);}const h=d[Q(0x12d,0x158)]instanceof Date?d['startDate'][Q(0x12b,0xfe)]():f[Q(0x12d,0x126)][Q(0x1ad,0x1eb)](d[Q(0x12d,0x14c)])?.['getTime']();const i=c[Q(0x148,0x162)]instanceof Date?c[Q(0x148,0x12f)][Q(0x12b,0x153)]():f[Q(0x148,0x16f)][Q(0x1ad,0x1b0)](c[Q(0x148,0x185)])?.[Q(0x12b,0xfa)]();const j=d['endDate']instanceof Date?d['endDate']['getTime']():f[Q(0x148,0x14a)][Q(0x1ad,0x1a9)](d['endDate'])?.['getTime']();return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0x4ee,0x4d5)]((b,c,d)=>{if(b){b[S(-0x2ee,-0x2f5)]=c;}function S(a,b){return R(b,a- -0x7c5);}c[S(-0x276,-0x254)]=b;c['segmentIndex']=d;return c;},null);function R(a,b){return _enN(b-0x5cf,a);}if(a[R(0x52b,0x514)]){a[a[R(0x506,0x514)]-0x1]['nextSegment']=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{function U(a,b){return _enN(b-0x5b3,a);}class b extends a{constructor(){function T(a,b){return _enb(b-0x4d,a);}super(...arguments);this[T(0x1b5,0x173)]={};}get[U(0x47e,0x4c1)](){function V(a,b){return U(b,a- -0x83);}let c=super['rawModifications'];if(this[V(0x4be,0x4a8)]&&(!c||!(V(0x4be,0x4f5)in c))){for(const d of this['segments']){if(d['rawModifications']){c=c||{};c['segments']=this[V(0x496,0x458)](V(0x4be,0x4b9));break;}}}return c;}[U(0x556,0x50d)](c,d,e,...f){for(const g of this[W(-0x25f,-0x236)]||[]){if(g[W(-0x2d1,-0x2c0)]){g[W(-0x293,-0x2da)][W(-0x2e1,-0x2a8)](g,c,d,null,...f);}}function W(a,b){return U(b,a- -0x7a0);}super['internalClearChanges'][W(-0x2e1,-0x2dc)](this,c,d,e,...f);}*[U(0x53e,0x506)](c){const d=yield*super[X(-0x11c,-0x118)](c);if(yield*this[X(-0xfd,-0x134)]()){d['addProposedValueFlag'](SegmentsVar);}function X(a,b){return U(a,b- -0x61e);}return d;}[U(0x567,0x528)](c){const d=c(this['$'][Y(0x33b,0x2f1)]);function Y(a,b){return U(b,a- -0x202);}return d[Y(0x2e0,0x301)]===Direction['Forward']||d['direction']===Direction[Y(0x306,0x340)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*[U(0x4a1,0x4ea)](){const c=yield ProposedValueOf(this['$'][Z(-0xb,0x23)]);let d=![];if(yield HasProposedValue(this['$'][Z(-0x25,0x23)])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$'][Z(-0x4f,-0x60)]);const h=yield HasProposedValue(f['$'][Z(-0x1b,-0x45)]);const i=yield HasProposedValue(f['$'][Z(-0x8e,-0x4c)]);if(g||h||i)d=!![];}function Z(a,b){return U(a,b- -0x51e);}return d;}[U(0x52d,0x52b)](c,d,e,f){const g=d[a0(0x2cb,0x28d)](c)?.['getValue']();const h=g!==TombStone?g??[]:[];const i=new Set(h);function a0(a,b){return U(b,a- -0x1ff);}const j=(f??[])[a0(0x2cd,0x2ba)](n=>n['isModel']?n:this['processSegmentValue'](n));const k=new Set(j);const l=this[a0(0x349,0x350)];const m=l['replica'];for(const n of h){if(!k[a0(0x2f8,0x2fa)](n)){l[a0(0x340,0x329)][a0(0x338,0x348)](n);n['event']=null;}}fillNextPrevious(j);c['constructor'][a0(0x319,0x310)][a0(0x337,0x36f)][a0(0x2c0,0x2e1)](this,c,d,e,j[a0(0x2f9,0x2e1)]>0x0?j:null);d[a0(0x337,0x35d)](this['$'][a0(0x31c,0x2e3)],Boolean(f?.['length']));for(const o of j){if(!i[a0(0x2f8,0x33f)](o)&&o[a0(0x2fd,0x324)]!==m){o[a0(0x31d,0x335)](l);o[a0(0x318,0x2e9)]=this;m['addEntity'](o);}}}*[U(0x4ae,0x4f1)](c,d){d=d||[];if(c[a1(-0x8,-0x23)]<=0x1){const e=c[a1(-0x21,-0x23)]?yield*this[a1(0xf,-0x32)](c[0x0][a1(0x2f,0x1f)]-c[0x0][a1(-0x20,-0x6)],TimeUnit['Millisecond'],yield this['$']['durationUnit']):0x0;d[a1(-0x19,-0x3c)]({'identifier':this['$'][a1(-0x2a,-0x49)],'proposedArgs':[e,null]});c=null;}d['push']({'identifier':this['$']['segments'],'proposedArgs':[c]});function a1(a,b){return U(a,b- -0x51b);}yield WriteSeveral(d);}*[U(0x559,0x529)](){const c=yield this['$']['dispatcher'];const {graph:d,project:e}=this;const f=e[a2(0x145,0xfe)];const g=yield e['$'][a2(0xc2,0xe2)]||this['forceSegmentsMerging'];const h=yield PreviousValueOf(this['$'][a2(0x132,0x138)]);let i=yield ProposedOrPrevious;const j=[];let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d[a2(0x93,0xdc)];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$']['endOffset'];const t=yield q['$']['duration'];const u=p[a2(0xeb,0xbd)](q['$']['startDate'])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(0x7f,0xbd)](q['$'][a2(0x10d,0xd0)])&&(yield ProposedArgumentsOf(q['$'][a2(0xa3,0xd0)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(0x8c,0xd6)](q);}else if(g&&m&&r+o<=m[a2(0xf9,0x131)]){const w=m['endOffset'];j[a2(0x8e,0xd6)](q);if(m[a2(0xcf,0xf3)]){j[a2(0x118,0xd6)](m);const x=m[a2(0xc4,0x10c)];const y=n?s+w-r:Math[a2(0x12f,0x11d)](s,w);const z=m[a2(0xd6,0xbf)];m=f['new']({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m[a2(0x15f,0x131)]=n?s+m[a2(0xe8,0x131)]-r:Math[a2(0xdb,0x11d)](s,m[a2(0x147,0x131)]);}}else if(!g&&m&&(o||r<m['endOffset'])){l['add'](m);j[a2(0xd1,0xd6)](q);if(r+o<m[a2(0xe9,0x131)]){o+=m[a2(0x115,0x131)]-r-o;}m=f[a2(0x116,0x132)]({'id':q['id'],'event':this,'cls':m[a2(0xf9,0xbf)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l[a2(0x106,0x12e)](m);}m=q;}}if(m){l[a2(0xe8,0x12e)](m);}if(l[a2(0xf5,0x101)]===0x1){j[a2(0xf4,0xd6)](...l);}k=j[a2(0xc1,0xef)]>0x0;if(k){i=Array[a2(0x132,0xea)](l);}fillNextPrevious(i);}else if(h){j[a2(0xd3,0xd6)](...h);}function a2(a,b){return U(a,b- -0x409);}if(j[a2(0xeb,0xef)]){for(const A of j){A[a2(0xf9,0x10e)]=null;e[a2(0x164,0x136)][a2(0xe6,0x12e)](A);}}if(k){yield*this[a2(0xd9,0xe8)](i);}i=i?.[a2(0x104,0xef)]>0x1?i:null;return i;}*['calculateAdjustedSegments'](){const c=yield this['$'][a3(0x92,0x50)];let d=yield this['$']['segments'];function a3(a,b){return U(a,b- -0x4fb);}const e=yield this['$'][a3(-0x8,-0x3d)];const f=yield this['$'][a3(-0x3c,-0x22)];const g=yield this['$'][a3(-0x73,-0x29)];let h=yield ProposedOrPrevious;if(d){const j=this[a3(0x15,0x4d)];const k=this[a3(-0x3f,0x1)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(-0x35,-0x3)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(-0x1,-0x3d)];const t=yield r['$'][a3(0x1d,-0x22)];if(s>f){l[a3(-0x37,-0x1c)](r);n=q;}else{if(t[a3(-0x6,-0x3f)]()!==f[a3(-0x10,-0x3f)]()){const u=r[a3(0x55,0x3f)]+(f[a3(-0x4b,-0x3f)]()-t[a3(-0xc,-0x3f)]())-r['startOffset'];const v=yield*this['convertDurationGen'](u,TimeUnit[a3(-0x65,-0x36)],yield r['$']['durationUnit']);m['push']({'identifier':r['$'][a3(-0x1b,-0x29)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(-0x29,-0x22)],'proposedArgs':[f,![]]},{'identifier':r['$']['endOffset'],'proposedArgs':[r[a3(0x1a,0x3f)]+(f[a3(-0x3f,-0x3f)]()-t[a3(0x4,-0x3f)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d['splice'](n);if(d['length']){d[d[a3(0x34,-0x3)]-0x1][a3(-0x40,-0x40)]=null;}for(const w of l){j[a3(0x87,0x44)][a3(0x2a,0x3c)](w);}}let p='';if(d){p=this[a3(-0xb,-0x7)](d);}if(p!==this[a3(-0x32,0x4)]){o=!![];d=d?d[a3(-0x11,0x39)]():d;this[a3(0xf,0x4)]=p;}if(o){yield*this[a3(-0x54,-0xa)](d,m);}}return h;}[U(0x513,0x4f4)](c){function a4(a,b){return U(a,b- -0x649);}c=c||this['segments'];return c?.[a4(-0x193,-0x17d)](d=>''+d[a4(-0x17c,-0x134)]+'-'+d[a4(-0x185,-0x18b)]?.[a4(-0x1be,-0x18d)]()+'-'+d[a4(-0x14d,-0x10f)]+'-'+d[a4(-0x129,-0x170)]?.[a4(-0x1bf,-0x18d)]())['join'](';');}static[U(0x4da,0x4dd)](c,d,e,f,g){function a5(a,b){return U(a,b- -0x337);}if(e){f[a5(0x1ef,0x1da)]=e[a5(0x1c9,0x211)];}return super[a5(0x176,0x1a6)](c,d,e,f,g);}[U(0x525,0x51e)](c){const d=this[a6(0x8d,0xa0)]?.[a6(0x9b,0x5f)]||this[a6(0x2a,0x69)]?.['segmentModelClass'];if(!d)return c;function a6(a,b){return U(a,b- -0x4a8);}const e=c[a6(0x1c,0x27)]?c:d['new'](c);if(!e['event'])e[a6(0x60,0x6f)]=this;return e;}[U(0x4e9,0x524)](c){function a7(a,b){return U(a,b- -0x389);}if(c===void 0x0)return void 0x0;if(c==null)return null;return c['map'](d=>this[a7(0x1cd,0x195)](d));}*[U(0x525,0x50b)](){function a8(a,b){return U(b,a- -0x20d);}const c=yield this['$'][a8(0x33e,0x2ff)];const d=c[a8(0x2fc,0x2dd)][a8(0x335,0x355)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula['formulaId']){e=yield*this[a8(0x32f,0x326)]();}else{e=yield*super[a8(0x2fe,0x2fb)]();}return e;}*[U(0x583,0x53c)](){const c=yield this['$']['dispatcher'];const d=yield this['$'][a9(0x260,0x27c)];function a9(a,b){return U(b,a- -0x2e1);}const e=yield this['$']['endDate'];let f;if(d){const g=d[d[a9(0x217,0x1ee)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(0x1f9,0x1b0)](e,![],h,TimeUnit[a9(0x1e4,0x1e6)],{'ignoreSegments':!![]});const j=yield*this[a9(0x21f,0x209)]();f=j&&!this['getProject']()[a9(0x21a,0x1ed)]?i:yield*this[a9(0x232,0x209)](i,!![]);}return f;}*[U(0x4df,0x523)](){const c=yield this['$'][aa(0x46b,0x464)];const d=yield this['$'][aa(0x444,0x45a)];const e=yield this['$']['startDate'];function aa(a,b){return U(a,b- -0xe7);}let f;if(d){const g=d[d[aa(0x41c,0x411)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this['calculateProjectedXDateWithDuration'](e,!![],h,TimeUnit[aa(0x3b1,0x3de)],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this[aa(0x3dd,0x406)]()[aa(0x426,0x414)]?i:yield*this[aa(0x3fc,0x42c)](i,![]);}return f;}*[U(0x507,0x547)](){const c=yield this['$'][ab(0x1cb,0x1c2)];const d=c[ab(0x159,0x180)][ab(0x1e7,0x1b9)](EndDateVar);let e;function ab(a,b){return U(a,b- -0x389);}if(d===endDateByStartDateAndSegmentsFormula['formulaId']){e=yield*this[ab(0x175,0x19a)]();}else{e=yield*super[ab(0x1f6,0x1be)]();}return e;}*[U(0x4cb,0x4d6)](){let c;function ac(a,b){return U(b,a- -0x507);}if(yield*this[ac(-0x1d,-0x38)]()){c=yield*this[ac(0x3d,0xe)]();}else{c=yield*super[ac(-0x31,-0x3f)]();}return c;}*['skipNonWorkingTime'](c,d=!![],e){if(!c)return null;e=Object['assign']({'ignoreSegments':!![]},e);return yield*super['skipNonWorkingTime'](c,d,e);}*[U(0x537,0x52a)](c,d=!![],e,f,g){function ad(a,b){return U(a,b- -0x397);}if(!c)return null;g={'ignoreSegments':!![],...g};return yield*super[ad(0x1ca,0x193)](c,d,e,f,g);}*[U(0x577,0x544)](){let c;function ae(a,b){return U(b,a- -0x3db);}const d=yield this['$'][ae(0x170,0x161)];const e=yield this['$'][ae(0xfa,0x112)];const f=yield this['$'][ae(0x166,0x126)];if(f){let g=0x0;for(const h of f){g+=h[ae(0x15f,0x1a8)]-h[ae(0x13a,0xfe)];}c=yield*this['convertDurationGen'](g,TimeUnit[ae(0xea,0xdd)],e);}return c;}*[U(0x4ee,0x525)](c,d){const e=yield this['$'][af(-0xa5,-0xc6)];let f=c[af(-0xdf,-0xd4)];if(!e||f){return yield*super['forEachAvailabilityInterval'](c,d);}const g=this[af(-0xd3,-0x113)]();const h=yield this['$']['effectiveCalendar'];const i=yield this['$'][af(-0xd1,-0xa7)];const j=yield this['$'][af(-0xbb,-0xf2)];const k=c[af(-0xf9,-0x12a)]!==![];const l=(yield this['$'][af(-0x93,-0x6a)])||(yield*this[af(-0xd8,-0xf3)]())||c[af(-0x93,-0x73)]||!i[af(-0xb6,-0xbc)];const m=g[af(-0xc2,-0xc9)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$'][af(-0x7f,-0x77)];f=f||!r;if(!f){r=r[af(-0x8c,-0xd6)]();if(k){o=r['shift']();p=0x0;n=0x1;s=o[af(-0x105,-0xfc)]?o[af(-0x86,-0x92)]:MAX_DATE['getTime']();}else{o=r[af(-0x7b,-0x95)]();p=o[af(-0x86,-0x5a)];n=-0x1;s=o[af(-0x86,-0x8e)];}q=s-o[af(-0xab,-0x66)];}}const t=yield*this['isManuallyScheduled']();const u=g[af(-0xf3,-0x119)];function af(a,b){return U(b,a- -0x5c0);}const v=this[af(-0x7d,-0x9c)];return j['forEachAvailabilityInterval'](Object[af(-0xef,-0xb5)]({'maxRange':m},c),(w,x,y)=>{const z=y[ag(0x23,0x2e)]();function ag(a,b){return af(a-0xbc,b);}const A=y[ag(0x16,0xc)]();if(z['get'](h)&&(l||A[ag(-0x14,0x7)](B=>i[ag(-0xd,0x37)](B))||t&&!g[ag(-0x20,0x18)])){if(f){return d(w,x,y);}else{const B=w['getTime']();let C=x[ag(-0x48,-0x4d)]()-w['getTime']();if(u){const F=w[ag(-0x3,-0x4a)]()-x[ag(-0x3,0x2d)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(0x11,0x7)]){const G=Math[ag(0x22,0x38)](D,o[ag(0x11,-0x16)]);const H=Math[ag(0x10,-0x2c)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J[ag(-0x48,-0x63)]()-I[ag(-0x48,-0x8c)]();if(q<v){o=k?r['shift']():r[ag(0x41,0x3a)]();if(o){s=!k||o[ag(-0x49,-0x8d)]?o[ag(0x36,0x26)]:MAX_DATE[ag(-0x48,-0x59)]();q=s-o[ag(0x11,-0x9)];}}else{break;}}p+=n*C;}}});}*['useEventAvailabilityIterator'](){function ah(a,b){return U(a,b- -0x3);}const c=yield this['$'][ah(0x4f9,0x518)];return c||(yield*super['useEventAvailabilityIterator']());}['getSegmentByDate'](c,d){d=d||this[ai(0x43b,0x46d)]();function ai(a,b){return U(b,a- -0xbb);}if(d){const e=this['getSegmentIndexByDate'](c,d);return d[e];}}[U(0x49e,0x4d8)](c,d){d=d||this[aj(0x2b2,0x285)]();function aj(a,b){return U(b,a- -0x244);}return d?d[aj(0x2ec,0x2a3)](e=>c>=e[aj(0x27a,0x24f)]&&c<e[aj(0x295,0x26a)]):-0x1;}get[U(0x519,0x510)](){const c=this[ak(-0xc5,-0x9c)]();function ak(a,b){return U(a,b- -0x592);}return c?c[0x0]:null;}get['lastSegment'](){function al(a,b){return U(a,b- -0x52b);}const c=this['getSegments']();return c?c[c[al(-0x58,-0x33)]-0x1]:null;}[U(0x4a3,0x4db)](c){const d=this[am(-0x106,-0x111)]();function am(a,b){return U(b,a- -0x5fc);}return d?.[c];}async[U(0x56d,0x546)](c,d=0x1,e){const f=this[an(0x2b2,0x2be)]();const g=f[an(0x2db,0x2d8)];await f[an(0x2d9,0x2d5)]();const h=this;if(!c||h[an(0x270,0x28b)]&&h[an(0x2be,0x2f3)]?.['size'])return;const j=h[an(0x25c,0x2a3)];const k=h[an(0x26f,0x2a6)];const m=h['startDate'];const n=h[an(0x2a0,0x2aa)];e=e?_enc[an(0x2c9,0x295)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(0x333,0x2ec)];let p=h[an(0x323,0x312)]||[];let q,r;function an(a,b){return U(a,b- -0x22f);}if(o){r=h[an(0x2d6,0x2a9)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[an(0x2d1,0x28f)]:m;const u=s[an(0x29c,0x2a3)];const v=s[an(0x28b,0x2a6)];const w=s[an(0x32f,0x31d)];const x=h[an(0x27d,0x2b8)](an(0x327,0x302),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h['run']('convertDurationGen',d,e,TimeUnit[an(0x24e,0x296)]);const A=z+h[an(0x2d2,0x2b8)](an(0x318,0x302),m,c,TimeUnit[an(0x2ce,0x296)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x31e,0x30c)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x2e9,0x305)](0x0);p[an(0x2cb,0x2bf)](r+0x1,0x0,B);h[an(0x34b,0x312)]=p;h['duration']=j;for(let C=r+0x2,D=p[an(0x311,0x2c9)];C<D;C++){const E=p[C];if(E){E[an(0x2f0,0x2e6)]+=z;E[an(0x2c1,0x30b)]+=z;}}}else{const F=g[an(0x34e,0x30c)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x307,0x30c)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x2cf,0x2a3)]=j;h[an(0x320,0x312)]=[F,G];}return f[an(0x300,0x2d5)]();}async['mergeSegments'](c,d){if(!this[ao(-0x9,-0x30)])return;function ao(a,b){return U(b,a- -0x524);}this[ao(-0x22,-0x21)]=!![];c=c||this[ao(-0x14,-0x3f)];d=d||this[ao(-0x59,-0x58)];if(c[ao(-0xf,-0x1a)]>d[ao(-0xf,0x2b)]){let f=d;d=c;c=f;}c[ao(-0x4b,-0x33)]=d['startDate'];const e=await this[ao(-0x37,0xf)]()[ao(-0x20,-0x4)]();this[ao(-0x22,0xc)]=![];return e;}[U(0x538,0x50c)](c,d){function ap(a,b){return U(b,a- -0x7d);}if(c===ap(0x4c4,0x4bf)&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f['toJSON']();if(!this[ap(0x475,0x4bd)][f[ap(0x499,0x4d3)]]||f[ap(0x4bb,0x4b6)]>this[ap(0x475,0x449)][f[ap(0x499,0x495)]]){Object[ap(0x454,0x42c)](g,f[ap(0x4bc,0x4be)][ap(0x44c,0x44a)]);}e['push'](g);this[ap(0x475,0x4ba)][f[ap(0x499,0x470)]]=f[ap(0x4bb,0x4e7)];}else{e[ap(0x462,0x4a2)](f);}}d=e;}super['storeFieldChange'](c,d);}[U(0x558,0x51d)](){const c=this['segments'];function aq(a,b){return U(a,b- -0x5f4);}if(c){this['graph']?.[aq(-0xdb,-0x121)](c);}super[aq(-0xd0,-0xd7)]();}[U(0x4f6,0x540)](...c){this[ar(0x217,0x254)][ar(0x2ee,0x2b9)][ar(0x258,0x28a)]++;function ar(a,b){return U(a,b- -0x288);}super['endBatch'](...c);this[ar(0x28b,0x254)][ar(0x2c8,0x2b9)][ar(0x24e,0x28a)]--;}[U(0x512,0x4de)](c=null,d=null){const e=super[as(0x250,0x210)](c,d);function as(a,b){return U(a,b- -0x2ce);}e[as(0x243,0x27b)][as(0x22f,0x273)]=void 0x0;if(e[as(0x247,0x273)]){e[as(0x234,0x273)]=e['segments']['map'](f=>Object['assign'](f['copy'](),{'event':e}));}return e;}[U(0x568,0x51f)](){const c=super[at(0xea,0xe5)](),d=this['getFieldDefinition'](at(0xd1,0x107)),{persist:e,dataSource:f,complexMapping:g}=d;function at(a,b){return U(a,b- -0x43a);}if(e){let h=_end[at(0xa8,0x89)](c,f);if(h){h=h[at(0x8f,0x92)](i=>i['toJSON']());_end[at(0xfa,0xbb)](c,f,h);}}return c;}[U(0x4d3,0x503)](){const {segments:c}=this;c?.[au(0x4fe,0x4e6)](d=>d[au(0x514,0x512)]());function au(a,b){return U(a,b-0xf);}super[au(0x513,0x512)]();}}b[U(0x507,0x4d0)]=U(0x497,0x4c0);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x514,0x518)],U(0x558,0x54b),void 0x0);__decorate([model_field({'type':U(0x4eb,0x4fa),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b['prototype'],'segments',void 0x0);__decorate([field()],b[U(0x4eb,0x518)],U(0x528,0x532),void 0x0);__decorate([field()],b['prototype'],U(0x517,0x51b),void 0x0);__decorate([write('segments')],b[U(0x500,0x518)],U(0x538,0x52b),null);__decorate([calculate(U(0x570,0x541))],b['prototype'],U(0x513,0x529),null);__decorate([calculate(U(0x50b,0x532))],b[U(0x54f,0x518)],U(0x558,0x50f),null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|
|
1
|
+
(function(a,b){const c=a();function L(a,b){return _enb(b-0x2e8,a);}while(!![]){try{const d=parseInt(L(0x477,0x44b))/0x1*(-parseInt(L(0x444,0x431))/0x2)+parseInt(L(0x3ff,0x3d7))/0x3*(-parseInt(L(0x474,0x447))/0x4)+parseInt(L(0x3b9,0x3ef))/0x5+parseInt(L(0x3f5,0x40e))/0x6*(parseInt(L(0x474,0x448))/0x7)+parseInt(L(0x3f6,0x41d))/0x8+parseInt(L(0x440,0x424))/0x9*(-parseInt(L(0x430,0x428))/0xa)+parseInt(L(0x3ec,0x3f3))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5e5b4));var __decorate=function(a,b,e,f){var g=arguments[M(0x384,0x39c)],h=g<0x3?b:f===null?f=Object[M(0x3e2,0x414)](b,e):f,j;if(typeof Reflect===M(0x3dd,0x3ab)&&typeof Reflect[M(0x401,0x3c8)]===M(0x3f9,0x3d7))h=Reflect[M(0x3c2,0x3c8)](a,b,e,f);else for(var k=a[M(0x368,0x39c)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function M(a,b){return _enb(b-0x2a9,a);}return g>0x3&&h&&Object[M(0x41e,0x40b)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xef;let f=c[d];return f;};return _enb(a,b);}import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';function _enN(a,b){return _enb(b-0x344,a);}import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(0x47f,0x44c));const segmentsConverter=(a,b,c)=>c['processSegmentsValue'](a);function _ena(){const av=['segmentIndex','_lastSegmentsSnapshot','4246488dBEwCm','copy','findIndex','lastSegment','10YLKxXN','fieldMap','getTimezoneOffset','add','unlink','cls','None','firstSegment','forEach','2KpCZnS','segmentModelClass','ignoreSegments','isModel','segments','skipNonWorkingTime','processSegmentValue','join','reduce','addProposedValueFlag','meta','splice','processSegmentsValue','endOffset','endBatch','graph','calculateAdjustedSegments','_segmentGeneration','mergeSegments','adjustDurationToDST','convertDurationGen','calculateStartDate','4PfHIrx','70VpRAyz','processData','defineProperty','709691tnhyXn','splitToSegments','prepareDispatcher','prototype','pop','getValue','calculateEndDateBySegments','equality','getOwnPropertyDescriptor','event','run','effectiveCalendarsCombination','isSegmented','generation','commitAsync','isHasSubEventsMixin','getSegmentIndexByDate','calculateStartDateBySegments','calculateDurationProposed','isForward','getTime','startOffset','data','Millisecond','from','has','useEventAvailabilityIterator','1991736wMXwTb','writeSegments','calculateDurationBySegments','resolution','length','ignoreResourceCalendar','endDate','new','map','$name','calculateEndDate','childEvents','calculateProjectedDuration','convert','calculateProjectedXDateWithDuration','skipWorkingTime','shift','normalizeUnit','get','object','setProject','min','forEachAvailabilityInterval','getLatestStableEntryFor','350305zlsdyE','SegmentsVar','_skipSegmentsIsEqual','size','22233893OyJpMS','skipNonWorkingTimeWhenSchedulingManually','previousSegment','write','getFieldDefinition','slice','getSegmentByDate','getCalendarsWorking','doWriteSegments','getProject','segmentsToCleanup','hasIdentifier','modified','formulaId','removeEntities','some','hasSegmentChangesProposed','internalClearChanges','push','duration','decorate','getCalendarsWorkStatus','max','startDate','forceSegmentsMerging','assign','leaveProject','29166SpSalF','isManuallyScheduled','getSegments','Forward','calculateSegments','durationUnit','toJSON','call','function','getSegmentsSnapshot','storeFieldChange','adjustedSegments','dispatcher','skipNonWorkingTimeInDurationWhenSchedulingManually','_processingDataForProject','735880mFVBbe','SplitEventMixin','nextSegment','internalId','rawModifications'];_ena=function(){return av;};return _ena();}const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(0x459,0x43a)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(0x457,0x43a)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(0x476,0x43a)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(0x471,0x43a)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(0x4c3,0x4ae)](a,b){const c=a[O(0x51,0x1a)];function O(a,b){return _enN(a,b- -0x41c);}const d=b['resolution'];return super['equality'](a,b)&&c[O(0x9,0x29)](SegmentsVar)===d[O(-0x14,0x29)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b,a- -0xc7);}if(!c&&!d)return!![];if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c[P(0x370,0x396)]!==d['length'])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x453,0x453)]?c:d;const f=e[Q(0x448,0x42c)];const g=c[Q(0x429,0x466)]instanceof Date?c[Q(0x429,0x42f)][Q(0x47e,0x476)]():f[Q(0x429,0x45f)][Q(0x403,0x3c6)](c[Q(0x429,0x401)])?.[Q(0x47e,0x43b)]();const h=d['startDate']instanceof Date?d[Q(0x429,0x41c)]['getTime']():f['startDate'][Q(0x403,0x3fc)](d[Q(0x429,0x40f)])?.['getTime']();const i=c[Q(0x3fc,0x3ff)]instanceof Date?c[Q(0x3fc,0x443)]['getTime']():f[Q(0x3fc,0x3bb)][Q(0x403,0x3f4)](c['endDate'])?.[Q(0x47e,0x49a)]();const j=d[Q(0x3fc,0x3c6)]instanceof Date?d['endDate'][Q(0x47e,0x479)]():f[Q(0x3fc,0x3cc)][Q(0x403,0x406)](d[Q(0x3fc,0x3e5)])?.['getTime']();function Q(a,b){return _enN(b,a- -0x3d);}return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0xcb,0xd0)]((b,c,d)=>{if(b){b[S(0x365,0x341)]=c;}function S(a,b){return R(b-0x290,a);}c[S(0x32f,0x317)]=b;c[S(0x36c,0x344)]=d;return c;},null);function R(a,b){return _enN(b,a- -0x3ca);}if(a[R(0x6d,0x7c)]){a[a['length']-0x1]['nextSegment']=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(b- -0x63,a);}this[T(0x13e,0xf7)]={};}get[U(0x2d,-0x10)](){let c=super[V(0x4,-0xf)];function V(a,b){return U(b,a-0x14);}if(this[V(0x18,-0x7)]&&(!c||!('segments'in c))){for(const d of this[V(0x18,-0x2a)]){if(d[V(0x4,0x22)]){c=c||{};c[V(0x18,0x37)]=this['getFieldPersistentValue']('segments');break;}}}return c;}['internalClearChanges'](c,d,e,...f){function W(a,b){return U(a,b-0x36b);}for(const g of this[W(0x3a0,0x36f)]||[]){if(g[W(0x390,0x36e)]){g[W(0x365,0x33e)][W(0x32a,0x34f)](g,c,d,null,...f);}}super[W(0x304,0x33e)][W(0x312,0x34f)](this,c,d,e,...f);}*[U(0x2a,0x1c)](c){const d=yield*super['prepareDispatcher'](c);function X(a,b){return U(b,a-0x23f);}if(yield*this[X(0x211,0x210)]()){d[X(0x248,0x211)](SegmentsVar);}return d;}['cycleResolutionContext'](c){function Y(a,b){return U(b,a-0x3a8);}const d=c(this['$']['effectiveDirection']);return d['direction']===Direction[Y(0x388,0x378)]||d['direction']===Direction[Y(0x3a5,0x3be)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*[U(-0x39,-0x2e)](){const c=yield ProposedValueOf(this['$'][Z(0x1ad,0x1eb)]);function Z(a,b){return U(b,a-0x1a9);}let d=![];if(yield HasProposedValue(this['$'][Z(0x1ad,0x1ed)])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$'][Z(0x1ad,0x1cb)]);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$'][Z(0x182,0x193)]);const h=yield HasProposedValue(f['$']['endDate']);const i=yield HasProposedValue(f['$'][Z(0x17e,0x138)]);if(g||h||i)d=!![];}return d;}[U(-0x9f,-0x59)](c,d,e,f){const g=d[a0(0x43e,0x462)](c)?.[a0(0x4a0,0x491)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x42f,0x459)](n=>n[a0(0x484,0x441)]?n:this['processSegmentValue'](n));function a0(a,b){return U(b,a-0x481);}const k=new Set(j);const l=this['project'];const m=l['replica'];for(const n of h){if(!k['has'](n)){l['segmentsToCleanup']['add'](n);n['event']=null;}}fillNextPrevious(j);c['constructor'][a0(0x49e,0x479)][a0(0x446,0x408)][a0(0x465,0x44a)](this,c,d,e,j[a0(0x42b,0x440)]>0x0?j:null);d[a0(0x446,0x455)](this['$'][a0(0x4a7,0x47c)],Boolean(f?.[a0(0x42b,0x431)]));for(const o of j){if(!i[a0(0x4b4,0x48d)](o)&&o[a0(0x490,0x48b)]!==m){o[a0(0x43b,0x42c)](l);o[a0(0x4a4,0x4c6)]=this;m['addEntity'](o);}}}*[U(-0x30,-0x36)](c,d){d=d||[];if(c[a1(0x34a,0x323)]<=0x1){const e=c[a1(0x322,0x323)]?yield*this['convertDurationGen'](c[0x0][a1(0x3c8,0x386)]-c[0x0]['startOffset'],TimeUnit[a1(0x369,0x3aa)],yield this['$'][a1(0x36e,0x35b)]):0x0;d[a1(0x34e,0x34d)]({'identifier':this['$'][a1(0x30e,0x34e)],'proposedArgs':[e,null]});c=null;}d['push']({'identifier':this['$'][a1(0x3ae,0x37d)],'proposedArgs':[c]});function a1(a,b){return U(a,b-0x379);}yield WriteSeveral(d);}*[U(-0x66,-0x1f)](){const c=yield this['$'][a2(0x4b,0xf)];const {graph:d,project:e}=this;const f=e[a2(0x63,0x68)];const g=yield e['$']['autoMergeAdjacentSegments']||this[a2(0x3c,0x37)];const h=yield PreviousValueOf(this['$'][a2(0x66,0xa9)]);let i=yield ProposedOrPrevious;const j=[];let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d['$activeTransaction'];for(const q of i){const r=yield q['$'][a2(0x91,0x67)];const s=yield q['$'][a2(0x6f,0x8b)];const t=yield q['$'][a2(0x37,0x64)];const u=p[a2(0x2f,-0x17)](q['$']['startDate'])&&(yield ProposedArgumentsOf(q['$'][a2(0x3b,0x16)]));const v=p[a2(0x2f,-0x16)](q['$'][a2(0xe,0x3d)])&&(yield ProposedArgumentsOf(q['$'][a2(0xe,0x4e)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(0x36,0xb)](q);}else if(g&&m&&r+o<=m['endOffset']){const w=m[a2(0x6f,0xb6)];j[a2(0x36,0x17)](q);if(m[a2(0x71,0x37)]){j[a2(0x36,0x3b)](m);const x=m['startOffset'];const y=n?s+w-r:Math[a2(0x3a,0x42)](s,w);const z=m['cls'];m=f['new']({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m['endOffset']=n?s+m[a2(0x6f,0x6e)]-r:Math['max'](s,m['endOffset']);}}else if(!g&&m&&(o||r<m[a2(0x6f,0x2b)])){l['add'](m);j[a2(0x36,0x74)](q);if(r+o<m['endOffset']){o+=m[a2(0x6f,0x50)]-r-o;}m=f['new']({'id':q['id'],'event':this,'cls':m[a2(0x5e,0xa4)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l[a2(0x5c,0x62)](m);}m=q;}}if(m){l[a2(0x5c,0x3f)](m);}if(l['size']===0x1){j[a2(0x36,-0x7)](...l);}k=j['length']>0x0;if(k){i=Array[a2(0x94,0xc7)](l);}fillNextPrevious(i);}else if(h){j[a2(0x36,0x8)](...h);}if(j[a2(0xc,0x2f)]){for(const A of j){A[a2(0x85,0x8a)]=null;e[a2(0x2e,-0x1)][a2(0x5c,0x39)](A);}}if(k){yield*this[a2(0x2c,0x4c)](i);}i=i?.[a2(0xc,-0x1)]>0x1?i:null;function a2(a,b){return U(b,a-0x62);}return i;}*[U(0x36,0x10)](){const c=yield this['$'][a3(0x379,0x37f)];let d=yield this['$']['segments'];const e=yield this['$'][a3(0x369,0x375)];const f=yield this['$'][a3(0x33c,0x35d)];const g=yield this['$'][a3(0x365,0x398)];let h=yield ProposedOrPrevious;function a3(a,b){return U(b,a-0x390);}if(d){const j=this['project'];const k=this[a3(0x39f,0x3c8)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x33a,0x309)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x369,0x35e)];const t=yield r['$'][a3(0x33c,0x2f8)];if(s>f){l[a3(0x364,0x3a0)](r);n=q;}else{if(t[a3(0x3be,0x3da)]()!==f[a3(0x3be,0x398)]()){const u=r[a3(0x39d,0x3c2)]+(f[a3(0x3be,0x3c6)]()-t[a3(0x3be,0x38b)]())-r[a3(0x3bf,0x39f)];const v=yield*this[a3(0x3a4,0x3c3)](u,TimeUnit[a3(0x3c1,0x3dc)],yield r['$'][a3(0x372,0x3a6)]);m[a3(0x364,0x338)]({'identifier':r['$'][a3(0x365,0x35e)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x33c,0x37e)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x39d,0x3a7)],'proposedArgs':[r[a3(0x39d,0x35d)]+(f[a3(0x3be,0x38c)]()-t[a3(0x3be,0x3da)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x39b,0x382)](n);if(d[a3(0x33a,0x36a)]){d[d[a3(0x33a,0x321)]-0x1][a3(0x37e,0x345)]=null;}for(const w of l){j[a3(0x35c,0x388)][a3(0x38a,0x387)](w);}}let p='';if(d){p=this[a3(0x376,0x37b)](d);}if(p!==this['_lastSegmentsSnapshot']){o=!![];d=d?d[a3(0x357,0x337)]():d;this[a3(0x382,0x33b)]=p;}if(o){yield*this[a3(0x35a,0x373)](d,m);}}return h;}[U(0x2a,-0x1a)](c){c=c||this[a4(0x32a,0x340)];function a4(a,b){return U(a,b-0x33c);}return c?.[a4(0x30b,0x2ea)](d=>''+d[a4(0x361,0x36b)]+'-'+d[a4(0x2f6,0x315)]?.['getTime']()+'-'+d[a4(0x379,0x349)]+'-'+d[a4(0x2e3,0x2e8)]?.[a4(0x33b,0x36a)]())[a4(0x324,0x343)](';');}static[U(-0x2e,0x18)](c,d,e,f,g){if(e){f[a5(0x439,0x40e)]=e['project'];}function a5(a,b){return U(a,b-0x423);}return super['processData'](c,d,e,f,g);}[U(0x1c,0x6)](c){const d=this['project']?.[a6(0x51f,0x554)]||this[a6(0x509,0x510)]?.[a6(0x51f,0x507)];if(!d)return c;const e=c['isModel']?c:d['new'](c);if(!e['event'])e[a6(0x541,0x578)]=this;function a6(a,b){return U(b,a-0x51e);}return e;}[U(0x3b,0xc)](c){if(c===void 0x0)return void 0x0;if(c==null)return null;return c['map'](d=>this['processSegmentValue'](d));}*['calculateStartDate'](){const c=yield this['$'][a7(0x222,0x24f)];const d=c[a7(0x1e2,0x1d7)][a7(0x1f1,0x1fe)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a7(0x208,0x24d)]){e=yield*this['calculateStartDateBySegments']();}else{e=yield*super[a7(0x24e,0x288)]();}function a7(a,b){return U(b,a-0x239);}return e;}*[U(0x42,0x2b)](){const c=yield this['$']['dispatcher'];const d=yield this['$'][a8(0x56,0x85)];const e=yield this['$'][a8(0x34,0x2d)];let f;function a8(a,b){return U(a,b-0x81);}if(d){const g=d[d[a8(-0x14,0x2b)]-0x1];const h=yield g['$'][a8(0x56,0x8e)];const i=yield*this['calculateProjectedXDateWithDuration'](e,![],h,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this[a8(0x7f,0x4c)]()[a8(0x6b,0x44)]?i:yield*this[a8(0xb9,0x86)](i,!![]);}return f;}*[U(-0xa,0x20)](){const c=yield this['$'][a9(0x34,0x2c)];const d=yield this['$'][a9(0x4f,0x1c)];const e=yield this['$'][a9(0x24,0x67)];let f;if(d){const g=d[d[a9(-0xb,-0x40)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(-0x1,-0x2)](e,!![],h,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const j=yield*this[a9(0x29,0x4f)]();f=j&&!this['getProject']()[a9(0xe,0xa)]?i:yield*this[a9(0x50,0x59)](i,![]);}function a9(a,b){return U(b,a-0x4b);}return f;}*[U(-0x75,-0x50)](){const c=yield this['$'][aa(0x364,0x351)];function aa(a,b){return U(a,b-0x368);}const d=c[aa(0x34a,0x311)][aa(0x2fb,0x320)](EndDateVar);let e;if(d===endDateByStartDateAndSegmentsFormula[aa(0x31a,0x337)]){e=yield*this[aa(0x39e,0x388)]();}else{e=yield*super['calculateEndDate']();}return e;}*[U(0x24,0x2c)](){let c;if(yield*this[ab(0x293,0x293)]()){c=yield*this[ab(0x28d,0x269)]();}else{c=yield*super['calculateDurationProposed']();}function ab(a,b){return U(a,b-0x2c1);}return c;}*['skipNonWorkingTime'](c,d=!![],e){if(!c)return null;e=Object[ac(0x1ab,0x1cb)]({'ignoreSegments':!![]},e);function ac(a,b){return U(a,b-0x1f0);}return yield*super[ac(0x1f7,0x1f5)](c,d,e);}*['skipWorkingTime'](c,d=!![],e,f,g){function ad(a,b){return U(b,a- -0x1f);}if(!c)return null;g={'ignoreSegments':!![],...g};return yield*super[ad(-0x6a,-0x45)](c,d,e,f,g);}*['calculateDurationBySegments'](){function ae(a,b){return U(a,b-0xe1);}let c;const d=yield this['$'][ae(0xd5,0xca)];const e=yield this['$'][ae(0x7f,0xc3)];const f=yield this['$'][ae(0xb6,0xe5)];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h['startOffset'];}c=yield*this[ae(0xb4,0xf5)](g,TimeUnit[ae(0x143,0x112)],e);}return c;}*[U(-0x31,-0x44)](c,d){const e=yield this['$'][af(-0x1a,-0x26)];let f=c[af(-0x8,-0x4a)];if(!e||f){return yield*super[af(-0xbc,-0x90)](c,d);}const g=this[af(-0x76,-0x81)]();const h=yield this['$']['effectiveCalendar'];const i=yield this['$']['assignmentsByCalendar'];const j=yield this['$'][af(-0x51,-0x27)];const k=c[af(-0x25,-0x1f)]!==![];const l=(yield this['$'][af(-0x88,-0xa1)])||(yield*this['hasElapsedDuration']())||c[af(-0xb6,-0xa1)]||!i[af(-0x63,-0x8b)];const m=g['maxCalendarRange'];let n=0x1;let o,p,q,r,s;function af(a,b){return U(a,b- -0x4c);}if(!f){r=yield this['$'][af(-0x8a,-0x48)];f=f||!r;if(!f){r=r['slice']();if(k){o=r[af(-0x51,-0x96)]();p=0x0;n=0x1;s=o['nextSegment']?o['endOffset']:MAX_DATE['getTime']();}else{o=r[af(-0xc,-0x2e)]();p=o[af(-0x7f,-0x3f)];n=-0x1;s=o[af(0x7,-0x3f)];}q=s-o[af(0x0,-0x1d)];}}const t=yield*this[af(-0x5d,-0x6e)]();const u=g[af(-0x7d,-0x39)];const v=this['zeroDurationMsThreshold'];return j[af(-0x90,-0x90)](Object['assign']({'maxRange':m},c),(w,x,y)=>{function ag(a,b){return af(b,a- -0x74);}const z=y[ag(-0xe9,-0xca)]();const A=y[ag(-0xf7,-0xc6)]();if(z['get'](h)&&(l||A[ag(-0xef,-0xc2)](B=>i['has'](B))||t&&!g[ag(-0xd6,-0xa0)])){if(f){return d(w,x,y);}else{const B=w[ag(-0x92,-0xda)]();let C=x[ag(-0x92,-0xaf)]()-w[ag(-0x92,-0xb6)]();if(u){const F=w[ag(-0xc7,-0x10b)]()-x[ag(-0xc7,-0xf6)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(-0x91,-0x8f)]){const G=Math[ag(-0xe8,-0xef)](D,o[ag(-0x91,-0xd6)]);const H=Math[ag(-0x105,-0xdf)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J[ag(-0x92,-0x81)]()-I[ag(-0x92,-0x8e)]();if(q<v){o=k?r['shift']():r['pop']();if(o){s=!k||o[ag(-0xd2,-0xea)]?o[ag(-0xb3,-0xb5)]:MAX_DATE['getTime']();q=s-o['startOffset'];}}else{break;}}p+=n*C;}}});}*['useEventAvailabilityIterator'](){function ah(a,b){return U(b,a- -0x1f2);}const c=yield this['$'][ah(-0x1cc,-0x1bb)];return c||(yield*super[ah(-0x1be,-0x18b)]());}[U(-0x5d,-0x38)](c,d){d=d||this[ai(-0x159,-0x14a)]();function ai(a,b){return U(a,b- -0x129);}if(d){const e=this[ai(-0x119,-0xff)](c,d);return d[e];}}['getSegmentIndexByDate'](c,d){function aj(a,b){return U(a,b-0x179);}d=d||this['getSegments']();return d?d[aj(0x169,0x16e)](e=>c>=e[aj(0x194,0x152)]&&c<e['endDate']):-0x1;}get[U(0x2d,-0x2)](){function ak(a,b){return U(a,b-0x272);}const c=this[ak(0x21a,0x251)]();return c?c[0x0]:null;}get[U(-0x32,-0xa)](){const c=this[al(0x1c9,0x1f4)]();function al(a,b){return U(b,a-0x1ea);}return c?c[c[al(0x194,0x1c0)]-0x1]:null;}['getSegment'](c){function am(a,b){return U(b,a- -0x1ba);}const d=this[am(-0x1db,-0x1af)]();return d?.[c];}async[U(0x53,0x1b)](c,d=0x1,e){const f=this[an(0x238,0x220)]();const g=f['segmentModelClass'];await f[an(0x295,0x286)]();const h=this;if(!c||h[an(0x296,0x255)]&&h[an(0x21e,0x263)]?.[an(0x22e,0x23c)])return;const j=h[an(0x242,0x278)];const k=h[an(0x24f,0x20e)];const m=h['startDate'];const n=h[an(0x219,0x21e)];e=e?_enc[an(0x224,0x20b)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h['isSegmented'];let p=h[an(0x271,0x2a0)]||[];let q,r;if(o){r=h[an(0x297,0x251)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[an(0x246,0x268)]:m;const u=s['duration'];const v=s[an(0x24f,0x283)];function an(a,b){return U(b,a-0x26d);}const w=s['name'];const x=h['run'](an(0x21f,0x1e9),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(0x291,0x2ad)](an(0x281,0x263),d,e,TimeUnit[an(0x29e,0x2b7)]);const A=z+h[an(0x291,0x283)]('calculateProjectedDuration',m,c,TimeUnit['Millisecond'],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x21a,0x201)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x234,0x211)](0x0);p['splice'](r+0x1,0x0,B);h[an(0x271,0x2b4)]=p;h[an(0x242,0x21d)]=j;for(let C=r+0x2,D=p[an(0x217,0x211)];C<D;C++){const E=p[C];if(E){E[an(0x29c,0x28f)]+=z;E[an(0x27a,0x25b)]+=z;}}}else{const F=g[an(0x21a,0x261)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x21a,0x223)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x242,0x255)]=j;h[an(0x271,0x28b)]=[F,G];}return f[an(0x295,0x270)]();}async[U(-0x14,0x12)](c,d){if(!this[ao(-0x251,-0x280)])return;this['forceSegmentsMerging']=!![];c=c||this['firstSegment'];d=d||this[ao(-0x281,-0x242)];if(c['startOffset']>d['startOffset']){let f=d;d=c;c=f;}c[ao(-0x2cb,-0x2e1)]=d[ao(-0x29e,-0x294)];function ao(a,b){return U(b,a- -0x277);}const e=await this['getProject']()[ao(-0x24f,-0x26b)]();this[ao(-0x29d,-0x278)]=![];return e;}[U(-0x61,-0x19)](c,d){function ap(a,b){return U(b,a-0xb9);}if(c==='segments'&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x9c,0x66)]();if(!this[ap(0xca,0xdf)][f[ap(0xa8,0x66)]]||f[ap(0xe0,0x10a)]>this[ap(0xca,0xdc)][f[ap(0xa8,0xe7)]]){Object[ap(0x94,0xc0)](g,f[ap(0xc3,0xc7)][ap(0x87,0x91)]);}e[ap(0x8d,0xc3)](g);this['_segmentGeneration'][f[ap(0xa8,0xc1)]]=f[ap(0xe0,0xf7)];}else{e['push'](f);}}d=e;}super[ap(0xa0,0x98)](c,d);}[U(-0x1a,-0x24)](){const c=this['segments'];if(c){this[aq(0x12e,0x167)]?.[aq(0xe4,0x128)](c);}function aq(a,b){return U(a,b-0x158);}super[aq(0x130,0x134)]();}[U(0x19,0xe)](...c){this['fieldMap'][ar(-0x62,-0x3f)]['_skipSegmentsIsEqual']++;super['endBatch'](...c);function ar(a,b){return U(a,b- -0x43);}this[ar(-0x45,-0x4b)]['segments'][ar(-0x7e,-0x83)]--;}['copy'](c=null,d=null){function as(a,b){return U(b,a- -0x18a);}const e=super[as(-0x196,-0x14e)](c,d);e[as(-0x15a,-0x167)][as(-0x186,-0x15b)]=void 0x0;if(e[as(-0x186,-0x1c2)]){e[as(-0x186,-0x180)]=e[as(-0x186,-0x184)]['map'](f=>Object['assign'](f[as(-0x196,-0x1d5)](),{'event':e}));}return e;}[U(0x15,-0x1d)](){function at(a,b){return U(a,b-0xd3);}const c=super[at(0xb2,0xb6)](),d=this[at(0x62,0x99)](at(0x9e,0xd7)),{persist:e,dataSource:f,complexMapping:g}=d;if(e){let h=_end['getPath'](c,f);if(h){h=h['map'](i=>i[at(0xe2,0xb6)]());_end['setPath'](c,f,h);}}return c;}[U(0x21,-0x5)](...c){function au(a,b){return U(b,a-0x3f6);}const {segments:d}=this;d?.[au(0x3f5,0x415)](e=>e[au(0x3f1,0x40e)](...c));super['unlink'](...c);}}function U(a,b){return _enN(a,b- -0x48d);}b[U(-0x5a,-0x51)]=U(-0x31,-0x13);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x49,0x1d)],U(-0x30,-0x17),void 0x0);__decorate([model_field({'type':'array','isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(-0x1,0x1d)],'segments',void 0x0);__decorate([field()],b[U(-0x20,0x1d)],U(-0x25,-0x18),void 0x0);__decorate([field()],b[U(0x2d,0x1d)],'isSegmented',void 0x0);__decorate([write(U(0x30,0x4))],b[U(0xb,0x1d)],'writeSegments',null);__decorate([calculate(U(0x44,0x4))],b[U(0x28,0x1d)],U(0x27,-0x1f),null);__decorate([calculate(U(-0x9,-0x18))],b[U(0x46,0x1d)],U(0x27,0x10),null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _ena(){const D=['doAutoCommit','$name','syncDataOnLoad','5OEcatd','9683559ttjBcs','129000QeJQcQ','action','call','isEngineReady','queuedDataReadyEvents','isChainedFromProject','calculateProject','18993HHJPHf','commitAsync','project','33ZBwQLO','masterStore','construct','16458PgNSVo','push','setStoreData','insertAsync','suspendCount','ion','trigger','isChained','add','1013170BbHCrK','dataReadyDetacher','storeRefresh','data','372qVbEEK','hasLoadedDataToCommit','AbstractPartOfProjectStoreMixin','isLoadingData','addAsync','2072JfnZwm','2853328kuDimY','prototype','7856rmArfY'];_ena=function(){return D;};return _ena();}(function(a,b){function p(a,b){return _enb(a-0x22e,b);}const c=a();while(!![]){try{const d=parseInt(p(0x414,0x428))/0x1+parseInt(p(0x41a,0x41e))/0x2*(parseInt(p(0x3ff,0x3ee))/0x3)+-parseInt(p(0x405,0x3f3))/0x4*(-parseInt(p(0x40b,0x410))/0x5)+-parseInt(p(0x40d,0x40c))/0x6+parseInt(p(0x404,0x40d))/0x7*(parseInt(p(0x407,0x414))/0x8)+-parseInt(p(0x40c,0x412))/0x9+parseInt(p(0x3fb,0x3fc))/0xa*(-parseInt(p(0x417,0x422))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x9cbc7));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1c9;let f=c[d];return f;};return _enb(a,b);}import{AbstractPartOfProjectGenericMixin}from'../../AbstractPartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';class AbstractPartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectGenericMixin,_enc],a=>{function q(a,b){return _enb(b- -0x5b,a);}const b=a[q(0x174,0x17d)];class c extends a{constructor(){super(...arguments);this[r(0x34b,0x353)]=![];function r(a,b){return q(b,a-0x1d2);}this['disableHasLoadedDataToCommitFlag']=![];}[q(0x17f,0x190)](d={}){d['asyncEvents']={'add':!![],'remove':!![],'removeAll':!![],'change':!![],'refresh':!![],'replace':!![],'move':!![],'update':!![]};function s(a,b){return q(b,a- -0x357);}return b[s(-0x1c7,-0x1cc)]['call'](this,d);}[q(0x16a,0x16f)](d,e){function t(a,b){return q(b,a-0x277);}const f=this,{asyncEvents:g,project:h}=f,i=g?.[d],j=i&&(i===!![]||i[e[t(0x3fc,0x3e8)]]);if(!j){return b[t(0x3e6,0x3e0)][t(0x3fd,0x3fb)](f,d,e);}b[t(0x3e6,0x3d9)]['call'](f,d+'PreCommit',{...e});if(!h||h[t(0x3fe,0x3f8)]()&&!h['isWritingData']){b[t(0x3e6,0x3eb)]['call'](f,d,e);}else if(!f['eventsSuspended']&&h){if(!h[t(0x3ea,0x3d7)]){h[t(0x3ff,0x3f6)]=[];h[t(0x3ea,0x3f7)]=h[t(0x3e5,0x3eb)]({'dataReady'(){function u(a,b){return t(a- -0x258,b);}const k=h['queuedDataReadyEvents'];h[u(0x1a7,0x1b0)]=null;h[u(0x192,0x186)]();h[u(0x192,0x18d)]=null;k['forEach'](([l,m,n,o])=>{function v(a,b){return u(b-0x17e,a);}l[v(0x302,0x30c)][v(0x320,0x323)](m,n,o);});},'once':!![]});}h[t(0x3ff,0x3ee)][t(0x409,0x416)]([b,f,d,e]);}return!![];}get[q(0x18d,0x189)](){function w(a,b){return q(a,b-0x32b);}return Boolean(this[w(0x498,0x49b)]&&this[w(0x4cb,0x4ba)][w(0x4ae,0x4b8)]);}[q(0x181,0x18a)](){function x(a,b){return q(a,b- -0xe7);}return this[x(0xb4,0xa6)];}[q(0x188,0x193)](d){if(this[y(0x2c,0x40)]&&!(this[y(0x20,0x2e)]||this['disableHasLoadedDataToCommitFlag'])){this[y(0x2c,0x37)][y(0x16,0x5)]=!![];}this[y(0x18,0x5)]=!![];b[y(0x32,0x30)]['call'](this,d);this['isLoadingData']=![];function y(a,b){return q(b,a- -0x161);}this[y(0x2c,0x3b)]?.[y(0xe,-0x4)](y(0x13,0x24),{'store':this});}async[q(0x17a,0x17f)](){if(this[z(0x44b,0x45f)]<=0x0&&this[z(0x46b,0x457)]&&!this[z(0x45e,0x457)][z(0x447,0x451)]()){await this['project'][z(0x463,0x456)]();}function z(a,b){return q(a,b-0x2ca);}b[z(0x439,0x449)]['call'](this);}async[q(0x177,0x17a)](d,e){const f=this[A(0x59d,0x596)](d,e);await this['project'][A(0x5b8,0x5b8)]();function A(a,b){return q(b,a-0x42c);}return f;}async[q(0x192,0x194)](d,e,f){const g=this['insert'](d,e,f);await this['project'][B(0x91,0x9b)]();function B(a,b){return q(a,b- -0xf1);}return g;}async['loadDataAsync'](d){this[C(0x246,0x23f)]=d;function C(a,b){return q(b,a-0xd1);}await this[C(0x25e,0x267)][C(0x25d,0x271)]();}}c[q(0x18b,0x180)]=q(0x16e,0x178);return c;}){}export{AbstractPartOfProjectStoreMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(a- -0x271,b);}const c=a();while(!![]){try{const d=parseInt(l(-0x5f,-0x4c))/0x1+-parseInt(l(-0x69,-0x6e))/0x2+-parseInt(l(-0x5d,-0x42))/0x3*(-parseInt(l(-0x94,-0x75))/0x4)+-parseInt(l(-0x79,-0x59))/0x5*(parseInt(l(-0x93,-0x84))/0x6)+parseInt(l(-0x8f,-0x93))/0x7*(parseInt(l(-0x64,-0x67))/0x8)+-parseInt(l(-0x86,-0x8f))/0x9*(parseInt(l(-0x7c,-0x86))/0xa)+parseInt(l(-0x5e,-0x49))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x711a6));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ChronoPartOfProjectGenericMixin}from'../../ChronoPartOfProjectGenericMixin.js';import{ChronoStoreMixin}from'./ChronoStoreMixin.js';import{AbstractPartOfProjectStoreMixin}from'./AbstractPartOfProjectStoreMixin.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _enm(a,b){return _enb(b-0x180,a);}function _ena(){const G=['addIdentifier','unjoinRecordsFromProject','setProject','scheduleDelayedCalculation','isCommitting','writeToGraph','isRoot','isLinked','fieldChangeTrackers','new','isChainedFromProject','some','195956xLsQPg','trackStoreFilter','graph','untrackRecordFieldChanges','$filtered','2360aKzPWj','detachRecordChangeTracker','rootNode','storeFilteredIdentifier','replica','831624XqoFdZ','2408285YAOFNe','1745400HROKbZ','setupRecordChangeTrackerListener','forEach','getField','removalOrder','applyingSyncResponse','project','$entity','trackRecordFieldChanges','4RjQyOo','24TBJJRD','getGraph','loadDataAsync','prototype','7189Egbeat','setStoreData','onModelChange','register','getFieldDefinition','uniqueValue','repopulateStore','keys','isLoadingData','522oHTTcN','setupStoreFilterListener','isStoreDataField','ion','commitAsync','recordsToTrackChanges','untrackFieldChanges','leaveProject','get','syncDataOnLoad','118860ovoAfD','call','removeIdentifier','855860GYvXsn','detachListeners','traverse','delayedCalculationPromise'];_ena=function(){return G;};return _ena();}import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d5;let f=c[d];return f;};return _enb(a,b);}const uniqueValue=Symbol(_enm(0x34f,0x367));class ChronoPartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectStoreMixin,ChronoPartOfProjectGenericMixin,ChronoStoreMixin],a=>{const b=a[n(0x381,0x366)];class c extends a{constructor(){function o(a,b){return n(b-0x1c1,a);}super(...arguments);this[o(0x536,0x539)]=0x0;}[n(0x383,0x385)](d){function p(a,b){return n(b-0x1f2,a);}this['project']?.[p(0x58c,0x57a)](this);b[p(0x57e,0x575)]['call'](this,d);if(this[p(0x552,0x56c)]?.[p(0x572,0x58d)]){this[p(0x57b,0x56c)]['invalidateTemporaryIndices']();}}['register'](d){b[q(0x264,0x281)][q(0x275,0x281)](this,d);function q(a,b){return n(a- -0x121,b);}!d[q(0x281,0x276)]&&!this[q(0x259,0x277)]?.[q(0x289,0x27a)]&&this[q(0x259,0x242)]?.[q(0x27e,0x29d)]();}[n(0x384,0x37f)](d,e,f,g,h,i){function r(a,b){return n(a-0xac,b);}if(!i&&!(this[r(0x440,0x460)]&&this[r(0x436,0x435)])&&Object[r(0x435,0x443)](f)[r(0x453,0x46e)](j=>{const k=d[s(-0x80,-0x7f)](j);function s(a,b){return r(b- -0x4b1,a);}return!k?.[s(-0x93,-0x78)]&&d[s(-0xa3,-0x8a)][s(-0x9e,-0x8e)](j);})&&!this[r(0x426,0x412)]?.[r(0x425,0x407)]){g=!![];}super[r(0x430,0x43d)](d,e,f,g,h,i);}async[n(0x380,0x380)](d){while(this['project'][t(0x430,0x430)]?.[t(0x41f,0x42d)]){await this['project'][t(0x40e,0x40d)]();}function t(a,b){return n(a-0x7f,b);}return super[t(0x3ff,0x3e4)](d);}['joinRecordsToProject'](d,e=![]){if(this[u(0x453,0x469)]){return 0x0;}let f=0x0;const g=d[u(0x459,0x442)]();function u(a,b){return n(b-0xc3,a);}const h=j=>{function v(a,b){return u(a,b- -0x610);}if(!j[v(-0x1a6,-0x1aa)]&&(!g||g!==j[v(-0x1bf,-0x1a3)])){j[v(-0x1cc,-0x1af)](d);j['joinProject']();f++;}};const i=this['rootNode'];if(i){i[u(0x43e,0x45d)](h,e,!![]);}else{this[u(0x434,0x439)](h,null,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}if(this[u(0x475,0x46f)]&&!g['hasIdentifier'](this[u(0x48f,0x46f)])){g[u(0x450,0x45f)](this['$filtered']);}return f;}[n(0x39d,0x399)](d){if(this[w(0x321,0x33b)]){return;}function w(a,b){return n(b- -0x6b,a);}const e=g=>{function x(a,b){return w(b,a-0x24);}g[x(0x34b,0x338)]();g[x(0x357,0x340)](d);};const f=this[w(0x342,0x344)];if(f){f[w(0x313,0x32f)](g=>{if(g!==f)e(g);},![],!![]);}else{this[w(0x2f6,0x30b)](e,null,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}if(this[w(0x32a,0x341)]){this[w(0x322,0x314)]()?.['removeIdentifier'](this[w(0x339,0x341)]);}}[n(0x375,0x37d)](){function y(a,b){return n(b- -0x578,a);}const d=this;d['detachRecordChangeTracker']?.();d[y(-0x1bb,-0x1ca)]=d[y(-0x1e9,-0x1ea)]({'detachable':!![],'update'({record:e,changes:f}){function z(a,b){return y(b,a-0x516);}if(d[z(0x32e,0x347)][z(0x331,0x34f)](e)){const g=d[z(0x31d,0x30c)]();const h=e[z(0x342,0x33b)];if(g&&h){for(let [i,j]of h){if(i in f){j[z(0x33f,0x333)](g,uniqueValue);}}}}}});}[n(0x37c,0x394)](d,e){if(!this['detachRecordChangeTracker']){this['setupRecordChangeTrackerListener']();this[A(0x34f,0x330)]=new Map();}this[A(0x34f,0x35c)]['set'](d,!![]);function A(a,b){return n(a- -0x41,b);}return d['trackFieldChanges'](e);}[n(0x3ab,0x393)](d,e=void 0x0){function B(a,b){return n(a- -0x46c,b);}const f=this[B(-0xdc,-0xf7)];if(f){const g=d?[d]:f['keys']();for(const h of g){h[B(-0xdb,-0xc9)](e);}if(!d[B(-0xc8,-0xc1)]){f['delete'](d);}}}[n(0x38c,0x36f)](){function C(a,b){return n(a- -0x3e8,b);}this['detachListeners'](C(-0x38,-0x55));this['ion']({'name':C(-0x38,-0x26),'filter'(){function D(a,b){return C(a-0x1cc,b);}const d=this['getGraph']();this[D(0x190,0x17f)]['writeToGraph'](d,!![]);}});}*[n(0x3a9,0x3b7)](){if(!this[E(0x11b,0xfc)]){this[E(0xf3,0xdc)]();const d=this[E(0xc9,0xcf)]();this[E(0xf9,0xfc)]=d[E(0xef,0xec)](CalculatedValueGen[E(0x106,0xf5)]({*'calculation'(e){return!(yield ProposedOrPrevious);}}));}function E(a,b){return n(b- -0x2b0,a);}yield this[E(0x106,0xfc)];}['setProject'](d){function F(a,b){return n(a-0xcc,b);}if(d!==this['project']){const e=this['getGraph']();if(this[F(0x478,0x481)]&&e){e[F(0x463,0x44f)](this[F(0x478,0x463)]);this[F(0x478,0x495)]=null;this[F(0x465,0x45d)](F(0x47c,0x45f));}}return super[F(0x46a,0x478)](d);}}function n(a,b){return _enm(b,a-0x20);}return c;}){}export{ChronoPartOfProjectStoreMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _ena(){const o=['call','traverse','isChainedFromProject','joinProject','303450wCsOXr','onCommitAsync','460896mkoEmC','leaveProject','rootNode','1152474dyldmD','prototype','61033mRPPDu','forEach','2152032FsCJJw','416zMRnZn','2003125ESXWrA','1931380psxLon'];_ena=function(){return o;};return _ena();}(function(a,b){const c=a();function h(a,b){return _enb(b-0x344,a);}while(!![]){try{const d=-parseInt(h(0x456,0x44f))/0x1+parseInt(h(0x44a,0x44d))/0x2+-parseInt(h(0x450,0x452))/0x3+parseInt(h(0x453,0x459))/0x4+parseInt(h(0x45d,0x458))/0x5+-parseInt(h(0x458,0x456))/0x6+parseInt(h(0x44f,0x454))/0x7*(parseInt(h(0x451,0x457))/0x8);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x458b9));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CorePartOfProjectGenericMixin}from'../../CorePartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';import{AbstractPartOfProjectStoreMixin}from'./AbstractPartOfProjectStoreMixin.js';class CorePartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectStoreMixin,CorePartOfProjectGenericMixin,_enc],a=>{const b=a[i(0x36,0x39)];function i(a,b){return _enb(a- -0xd9,b);}class c extends a{['setProject'](d){const e=b['setProject'][j(0x351,0x34d)](this,d);if(d)this[j(0x354,0x35c)](d);function j(a,b){return i(a-0x314,b);}return e;}[i(0x40,0x47)](d){}[i(0x31,0x39)](){}['joinRecordsToProject'](d){if(this[k(-0x1f8,-0x1f2)]){return;}const e=f=>{f['setProject'](d);function l(a,b){return k(a,b-0x252);}f[l(0x69,0x61)]();};function k(a,b){return i(b- -0x231,a);}if(this[k(-0x1f6,-0x1fd)]){this[k(-0x200,-0x1fd)]['traverse'](e);}else{this[k(-0x1f2,-0x1f9)](e);}}['unjoinRecordsFromProject'](d){function m(a,b){return i(b- -0x77,a);}if(this[m(-0x38,-0x38)]){return;}const e=g=>{function n(a,b){return m(a,b-0x402);}g[n(0x3b8,0x3be)]();g['setProject'](d);};const f=this[m(-0x44,-0x43)];if(f){f[m(-0x34,-0x39)](g=>{if(g!==f)e(g);});}else{this[m(-0x47,-0x3f)](e);}}}return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x109;let f=c[d];return f;};return _enb(a,b);}export{CorePartOfProjectStoreMixin};
|