@bryntum/engine-thin-trial 7.2.3 → 7.2.4
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/ChronoGraph/chrono/Effect.js +1 -1
- package/lib/ChronoGraph/chrono/Graph.js +1 -1
- package/lib/ChronoGraph/chrono/Identifier.js +1 -1
- package/lib/ChronoGraph/chrono/Quark.js +1 -1
- package/lib/calendar/CalendarCacheSingle.js +1 -1
- package/lib/quark/model/gantt/ConstrainedLateScheduleMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/ConstrainedScheduleMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
- package/package.json +1 -1
|
@@ -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(a-0x2e2,b);}while(!![]){try{const d=parseInt(l(0x40b,0x3fd))/0x1+parseInt(l(0x414,0x420))/0x2+parseInt(l(0x422,0x42e))/0x3*(parseInt(l(0x415,0x408))/0x4)+-parseInt(l(0x417,0x422))/0x5*(parseInt(l(0x40a,0x3fd))/0x6)+-parseInt(l(0x425,0x420))/0x7+-parseInt(l(0x41c,0x412))/0x8+-parseInt(l(0x40e,0x41b))/0x9*(-parseInt(l(0x41e,0x422))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x96a65));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x47b,0x46e)](b,e):f,j;function m(a,b){return _enb(b-0x338,a);}if(typeof Reflect===m(0x479,0x477)&&typeof Reflect[m(0x473,0x468)]===m(0x47d,0x47d))h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(0x473,0x467)]-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(0x468,0x465)](b,e,h),h;};import{Base}from'../class/Base.js';import{prototypeValue}from'../util/Helpers.js';const BreakCurrentStackExecution=Symbol(_enn(0x431,0x422));class Effect extends Base{}__decorate([prototypeValue(!![])],Effect['prototype'],'sync',void 0x0);__decorate([prototypeValue(!![])],Effect[_enn(0x42f,0x42b)],_enn(0x43d,0x438),void 0x0);const ProposedOrPreviousSymbol=Symbol(_enn(0x42e,0x43a));const ProposedOrPrevious=Effect[_enn(0x433,0x42c)]({'handler':ProposedOrPreviousSymbol});const RejectSymbol=Symbol('RejectSymbol');class RejectEffect extends Effect{constructor(){super(...arguments);this['handler']=RejectSymbol;}}__decorate([prototypeValue(![])],RejectEffect[_enn(0x427,0x42b)],_enn(0x444,0x438),void 0x0);const Reject=a=>RejectEffect[_enn(0x430,0x42c)]({'reason':a});const TransactionSymbol=Symbol(_enn(0x427,0x432));const GetTransaction=Effect[_enn(0x424,0x42c)]({'handler':TransactionSymbol});function _enn(a,b){return _enb(b-0x2f4,a);}const OwnQuarkSymbol=Symbol(_enn(0x41c,0x41f));const OwnQuark=Effect[_enn(0x437,0x42c)]({'handler':OwnQuarkSymbol});const OwnIdentifierSymbol=Symbol(_enn(0x438,0x435));const OwnIdentifier=Effect['new']({'handler':OwnIdentifierSymbol});const WriteSymbol=Symbol(_enn(0x421,0x41e));class WriteEffect extends Effect{constructor(){function o(a,b){return _enn(b,a- -0x27f);}super(...arguments);this[o(0x1b7,0x1af)]=WriteSymbol;}}__decorate([prototypeValue(![])],WriteEffect[_enn(0x437,0x42b)],_enn(0x43e,0x438),void 0x0);const Write=(a,b,...c)=>WriteEffect[_enn(0x422,0x42c)]({'identifier':a,'proposedArgs':[b,...c]});const WriteSeveralSymbol=Symbol('WriteSeveralSymbol');class WriteSeveralEffect extends Effect{constructor(){super(...arguments);this['handler']=WriteSeveralSymbol;}}__decorate([prototypeValue(![])],WriteSeveralEffect[_enn(0x435,0x42b)],_enn(0x435,0x438),void 0x0);const WriteSeveral=a=>WriteSeveralEffect[_enn(0x420,0x42c)]({'writes':a});const HasPreviousValueSymbol=Symbol('HasPreviousValueSymbol');class HasPreviousValueEffect extends Effect{constructor(){super(...arguments);this['handler']=HasPreviousValueSymbol;}}const HasPreviousValue=a=>HasPreviousValueEffect['new']({'identifier':a});const PreviousValueOfSymbol=Symbol(_enn(0x416,0x425));class PreviousValueOfEffect extends Effect{constructor(){super(...arguments);this['handler']=PreviousValueOfSymbol;}}function _ena(){const x=['ProposedArgumentsOfSymbol','27310unuNMo','ProposedOrPreviousValueOfSymbol','TransactionSymbol','object','573NJRzxo','OwnIdentifierSymbol','handler','7019397kMGCAi','pure','function','ProposedOrPreviousSymbol','HasProposedNotPreviousValueSymbol','4185546VbMzWF','250849OeIslw','WriteSymbol','OwnQuarkSymbol','4248WMUPYj','defineProperty','BreakCurrentStackExecution','length','decorate','PreviousValueOfSymbol','964680zDqksf','15668HRnRxy','UnsafePreviousValueOfSymbol','5Brhtmz','getOwnPropertyDescriptor','prototype','new','UnsafeProposedOrPreviousValueOfSymbol','3623560eizzcD'];_ena=function(){return x;};return _ena();}const PreviousValueOf=a=>PreviousValueOfEffect[_enn(0x420,0x42c)]({'identifier':a});const ProposedValueOfSymbol=Symbol('ProposedValueOfSymbol');class ProposedValueOfEffect extends Effect{constructor(){super(...arguments);function p(a,b){return _enn(a,b- -0xb6);}this[p(0x37c,0x380)]=ProposedValueOfSymbol;}}const ProposedValueOf=a=>ProposedValueOfEffect[_enn(0x425,0x42c)]({'identifier':a});const HasProposedValueSymbol=Symbol('HasProposedValueSymbol');class HasProposedValueEffect extends Effect{constructor(){super(...arguments);function q(a,b){return _enn(a,b- -0x1b0);}this[q(0x283,0x286)]=HasProposedValueSymbol;}}const HasProposedValue=a=>HasProposedValueEffect[_enn(0x420,0x42c)]({'identifier':a});const HasProposedNotPreviousValueSymbol=Symbol(_enn(0x417,0x41b));class HasProposedNotPreviousValueEffect extends Effect{constructor(){function r(a,b){return _enn(a,b- -0x4ba);}super(...arguments);this[r(-0x87,-0x84)]=HasProposedNotPreviousValueSymbol;}}const HasProposedNotPreviousValue=a=>HasProposedNotPreviousValueEffect['new']({'identifier':a});const ProposedOrPreviousValueOfSymbol=Symbol(_enn(0x43e,0x431));class ProposedOrPreviousValueOfEffect extends Effect{constructor(){function s(a,b){return _enn(b,a- -0x40d);}super(...arguments);this[s(0x29,0x2b)]=ProposedOrPreviousValueOfSymbol;}}const ProposedOrPreviousValueOf=a=>ProposedOrPreviousValueOfEffect[_enn(0x43b,0x42c)]({'identifier':a});const ProposedArgumentsOfSymbol=Symbol(_enn(0x43e,0x42f));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x127;let f=c[d];return f;};return _enb(a,b);}class ProposedArgumentsOfEffect extends Effect{constructor(){function t(a,b){return _enn(a,b- -0x3e1);}super(...arguments);this[t(0x55,0x55)]=ProposedArgumentsOfSymbol;}}const ProposedArgumentsOf=a=>ProposedArgumentsOfEffect['new']({'identifier':a});const ProposeCountOfSymbol=Symbol('ProposeCountOfSymbol');class ProposeCountOfEffect extends Effect{constructor(){function u(a,b){return _enn(b,a- -0x441);}super(...arguments);this[u(-0xb,-0x19)]=ProposeCountOfSymbol;}}const ProposeCountOf=a=>ProposeCountOfEffect['new']({'identifier':a});const UnsafeProposedOrPreviousValueOfSymbol=Symbol(_enn(0x433,0x42d));class UnsafeProposedOrPreviousValueOfEffect extends Effect{constructor(){function v(a,b){return _enn(b,a- -0x312);}super(...arguments);this[v(0x124,0x117)]=UnsafeProposedOrPreviousValueOfSymbol;}}const UnsafeProposedOrPreviousValueOf=a=>UnsafeProposedOrPreviousValueOfEffect[_enn(0x42a,0x42c)]({'identifier':a});const UnsafePreviousValueOfSymbol=Symbol(_enn(0x427,0x428));class UnsafePreviousValueOfEffect extends Effect{constructor(){super(...arguments);function w(a,b){return _enn(a,b- -0x4f7);}this[w(-0xc5,-0xc1)]=UnsafePreviousValueOfSymbol;}}const UnsafePreviousValueOf=a=>UnsafePreviousValueOfEffect[_enn(0x434,0x42c)]({'identifier':a});export{BreakCurrentStackExecution,Effect,GetTransaction,HasPreviousValue,HasPreviousValueEffect,HasPreviousValueSymbol,HasProposedNotPreviousValue,HasProposedNotPreviousValueEffect,HasProposedNotPreviousValueSymbol,HasProposedValue,HasProposedValueEffect,HasProposedValueSymbol,OwnIdentifier,OwnIdentifierSymbol,OwnQuark,OwnQuarkSymbol,PreviousValueOf,PreviousValueOfEffect,PreviousValueOfSymbol,ProposeCountOf,ProposeCountOfEffect,ProposeCountOfSymbol,ProposedArgumentsOf,ProposedArgumentsOfEffect,ProposedArgumentsOfSymbol,ProposedOrPrevious,ProposedOrPreviousSymbol,ProposedOrPreviousValueOf,ProposedOrPreviousValueOfEffect,ProposedOrPreviousValueOfSymbol,ProposedValueOf,ProposedValueOfEffect,ProposedValueOfSymbol,Reject,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOf,UnsafePreviousValueOfEffect,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOf,UnsafeProposedOrPreviousValueOfEffect,UnsafeProposedOrPreviousValueOfSymbol,Write,WriteEffect,WriteSeveral,WriteSeveralEffect,WriteSeveralSymbol,WriteSymbol};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function j(a,b){return _enb(b-0x4b,a);}while(!![]){try{const d=-parseInt(j(0x218,0x218))/0x1+parseInt(j(0x25c,0x220))/0x2*(parseInt(j(0x1f9,0x206))/0x3)+-parseInt(j(0x1d3,0x1f7))/0x4*(-parseInt(j(0x240,0x256))/0x5)+parseInt(j(0x238,0x1f5))/0x6+-parseInt(j(0x229,0x20f))/0x7*(-parseInt(j(0x209,0x231))/0x8)+parseInt(j(0x230,0x232))/0x9*(parseInt(j(0x252,0x225))/0xa)+-parseInt(j(0x241,0x22e))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x7efd3));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';function _ena(){const aj=['reason','autoCommitMode','cycle','autoCommitTimeoutId','clearRejected','push','propagate','warn','startNewEpoch','addEdge','topRevision','readAsync','78JYqepp','$activeTransaction','onComputationCycle','variable','forEach','hasPendingAutoCommit','baseRevisionTentative','initialize','compactRevisions','2245817dmSEKq','baseRevisionStable','onComputationCycleHandler','observe','isCommitting','delete','finalizeCommit','message','baseRevision','730081ojtvZA','addListener','onWriteDuringCommit','write','eachReachableRevision','isWritingPreviousData','$followingRevision','throw','23792BjPBIQ','previous','level','finally','origin','10tyBBAJ','isJustCleared','length','isInitialCommit','clearBranch','followingRevision','clearProperties','walkContext','dirty','8526793drAxHL','reject','autoCommitHandler','16zOpCIV','1941633VeVwbd','ongoing','startOrigin','getValue','proposedValue','identifier','lazy','autoCommit','trigger','identifierNamed','candidate','scheduleAutoCommit','proposedArguments','activeTransaction','ignore','new','variableNamed','then','constructor','value','referenceCount','cleanup','read','commit','getActiveEntry','from','scope','previousAxis','selfDependent','resolve','listeners','transactionClass','enableProgressNotifications','Adding\x20identifier\x20during\x20commit','sync','addIdentifier','5lNSEJu','log','writtenValue','getProposedValue','continueCalculation','undo','rejectedWith','addCycle','proposedIsPrevious','set','unshift','clear','redo','hasIdentifier','writes','Computation\x20cycle:\x0a','handlers','observeContext','onPropagationProgressNotification','get','reachableCount','unScheduleAutoCommit','_isInitialCommit','readProposedOrPrevious','doCommitAsync','hasValue','Invalid\x20compact\x20operation','historyLimit','markAndSweep','Removing\x20identifier\x20during\x20commit','entries','proposedArgs','Graph\x20cleared','commitAsync','hasProposedValue','readPrevious','1446972dCASFY','name','2470136mhnRid','readPreviousAsync','isShadow'];_ena=function(){return aj;};return _ena();}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x188;let f=c[d];return f;};return _enb(a,b);}function _enl(a,b){return _enb(b- -0x109,a);}class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b-0x1e3,a);}this[k(0x3b6,0x379)]=[];}[_enl(0x119,0xe6)](a){function m(a,b){return _enl(b,a- -0x181);}for(let b=0x0;b<this['handlers'][m(-0xae,-0xbc)];b++)this[m(-0xf4,-0xd9)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[n(0x236,0x23a)]=void 0x0;this[n(0x244,0x245)]=Revision[n(0x2b1,0x26f)]();this[n(0x1fe,0x232)]=void 0x0;this['historyLimit']=0x0;this[n(0x256,0x27e)]=new Map();this[n(0x270,0x24b)]=0x0;this[n(0x200,0x235)]=void 0x0;this[n(0x223,0x241)]=![];this[n(0x296,0x280)]=![];this[n(0x25c,0x261)]=Promise[n(0x254,0x27d)]();this[n(0x21b,0x215)]=!![];this[n(0x20f,0x22b)]=null;this['autoCommit']=![];function n(a,b){return _enl(a,b-0x182);}this[n(0x263,0x229)]=n(0x2a0,0x282);this[n(0x294,0x25e)]=null;this[n(0x263,0x248)]=n(0x28a,0x24d);this[n(0x25e,0x236)]=n(0x276,0x24d);this[n(0x2a8,0x27f)]=Transaction;this[n(0x239,0x254)]=![];this['$followingRevision']=void 0x0;}[_enl(0xde,0xb9)](...a){super[o(0x41c,0x431)](...a);if(!this['topRevision'])this[o(0x46a,0x428)]=this[o(0x420,0x43b)];if(this[o(0x421,0x45d)]){this[o(0x45a,0x454)]=this['autoCommitMode']===o(0x492,0x478)?b=>this['commit'](b):async b=>this[o(0x418,0x416)](b);}function o(a,b){return _enl(a,b-0x378);}this[o(0x443,0x411)]();}[_enl(0xad,0xb7)](){function p(a,b){return _enl(b,a-0x39a);}return this[p(0x443,0x42c)]!==null;}get['dirty'](){return this['activeTransaction']['dirty'];}[_enl(0x82,0x88)](){function q(a,b){return _enl(b,a- -0x218);}this[q(-0x13d,-0x15d)]();this[q(-0x186,-0x168)]();this[q(-0x155,-0x112)][q(-0x120,-0x137)]&&this[q(-0x155,-0x187)][q(-0x120,-0x14c)][q(-0x190,-0x1b1)]();this[q(-0x155,-0x173)][q(-0x14b,-0x16f)]=null;this[q(-0x11c,-0x10e)][q(-0x190,-0x157)]();this[q(-0x168,-0x17e)]=this['baseRevision'];this[q(-0x14e,-0x124)]=void 0x0;this[q(-0x165,-0x152)]=void 0x0;this[q(-0x17f,-0x13c)]();this['isJustCleared']=!![];}[_enl(0xfb,0xd5)](){this[r(0x427,0x3e5)]();this[r(0x3de,0x3de)]();function r(a,b){return _enl(b,a-0x34c);}for(const [a,b]of this[r(0x414,0x3ea)]()){if(b)a['reachableCount']--;a[r(0x43e,0x446)]--;}this[r(0x448,0x430)]['clear']();this['topRevision']=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x3ff,0x3c2)]=void 0x0;}*['eachReachableRevision'](){let a=!![];let b=0x0;function s(a,b){return _enl(a,b- -0x28d);}for(const c of this[s(-0x1ef,-0x1dd)][s(-0x176,-0x194)]()){yield[c,a||b<this[s(-0x22b,-0x1f5)]];if(c===this[s(-0x20c,-0x1ca)]){a=![];}else{if(!a)b++;}}}get[_enl(0x9a,0xd4)](){function t(a,b){return _enl(b,a-0x34e);}return this[t(0x3e1,0x3a2)];}set['isInitialCommit'](a){this['_isInitialCommit']=a;}[_enl(0x5a,0x99)](){let a;const b=[];for(const [c,d]of this['eachReachableRevision']()){if(d){c[u(0x2,0x2e)]++;a=c;}else b[u(0x1c,0xe)](c);c[u(0x63,0x5d)]++;}b[u(-0x8,0x1b)](a);function u(a,b){return _enl(b,a- -0x8f);}for(let e=b[u(0x44,0x21)]-0x1;e>=0x1&&b[e][u(0x2,-0x10)]===0x0;e--){this[u(0x2b,-0x2)](b[e-0x1],b[e]);}}[_enl(0xe6,0xba)](a,b){if(b['reachableCount']>0x0||a[v(0xfe,0x11f)]!==b)throw new Error(v(0xc8,0xae));if(b[v(0x123,0x105)]<=0x1){for(const [c,d]of a[v(0x129,0x160)]){if(d[v(0x112,0x137)]()===TombStone){b['scope'][v(0xf1,0x12b)](c);}else{const e=b[v(0x129,0x155)]['get'](c);if(d[v(0x101,0xc9)]===d){if(e){e[v(0xb9,0xf4)]();e[v(0x108,0xf3)]();}}else if(e&&d[v(0x101,0xcd)]===e){d['mergePreviousOrigin'](a[v(0x129,0x13c)]);}else if(c[v(0x115,0x12b)]&&!d[v(0x101,0xc2)]&&e&&e[v(0x101,0xc6)]){d[v(0x111,0xdf)]()[v(0x113,0xd7)]=e[v(0x101,0x101)][v(0x122,0x119)]!==void 0x0?e['origin'][v(0x122,0x11e)]:e[v(0x101,0x13a)][v(0x113,0x105)];}d['previous']=void 0x0;b[v(0x129,0x137)][v(0xb7,0x9e)](c,d);}}copySetInto(a['selfDependent'],b[v(0x12b,0x137)]);a[v(0x129,0x158)]=b['scope'];b[v(0x129,0x117)]=null;}else{a[v(0x129,0xf1)]=new Map(concat(b['scope'],a[v(0x129,0x162)]));a[v(0x12b,0x120)]=new Set(concat(b[v(0x12b,0x165)],a[v(0x12b,0x159)]));b['referenceCount']--;}function v(a,b){return _enl(b,a-0x31);}a[v(0xfe,0xff)]=null;}get[_enl(0xef,0xd6)](){if(this[w(0x494,0x4af)]!==void 0x0)return this[w(0x494,0x469)];const a=Array[w(0x4c1,0x4d4)](this[w(0x47a,0x4ad)][w(0x4c3,0x4ae)]());const b=[];for(let c=a[w(0x49d,0x47e)]-0x1;c>0x0;c--)b[w(0x475,0x488)]([a[c],a[c-0x1]]);function w(a,b){return _enl(b,a-0x3ca);}return this[w(0x494,0x4b1)]=new Map(b);}get[_enl(0xd1,0xeb)](){if(this[x(0x241,0x21b)])return this['$activeTransaction'];function x(a,b){return _enl(b,a-0x18e);}return this[x(0x241,0x26e)]=this[x(0x28b,0x2cb)]['new']({'baseRevision':this[x(0x246,0x27e)]||this[x(0x251,0x215)],'graph':this});}['branch'](a){const b=this[y(0x243,0x22a)];function y(a,b){return _enl(a,b-0x13a);}return b[y(0x1f4,0x227)](Object['assign']({},a,{'baseRevision':this[y(0x1fd,0x1fd)]}));}[_enl(0xe8,0xac)](a){function z(a,b){return _enl(a,b-0x482);}return this[z(0x5a0,0x577)](a);}[_enl(0xba,0xdb)](a){this[A(0x236,0x1fe)]['reject'](RejectEffect['new']({'reason':a}));function A(a,b){return _enl(b,a-0x14b);}this[A(0x22a,0x264)]=Promise[A(0x246,0x213)]();this[A(0x1fe,0x232)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[A(0x207,0x234)]){this[A(0x20e,0x1dc)]=this[A(0x207,0x245)];this[A(0x207,0x1d2)]=void 0x0;}}[_enl(0xcb,0xf5)](a){this[B(0x2d2,0x308)]=![];this[B(0x28f,0x2c8)]();this[B(0x2f7,0x2f2)]=this[B(0x30f,0x2f9)];const b=this[B(0x2e3,0x321)];function B(a,b){return _enl(a,b-0x236);}const c=b[B(0x321,0x32b)](a);this['$activeTransaction']=void 0x0;const d=this[B(0x32a,0x2f7)](c);this[B(0x2e0,0x2f2)]=void 0x0;this[B(0x2cb,0x30a)]=![];return d;}async['propagateAsync'](a){function C(a,b){return _enl(b,a-0x3bf);}return this[C(0x45d,0x432)](a);}async['commitAsync'](a){if(this[D(-0x64,-0x65)])return this[D(-0x8,-0x45)];this['isJustCleared']=![];function D(a,b){return _enl(a,b- -0x124);}this[D(-0xa0,-0x65)]=!![];this['baseRevisionStable']=this[D(-0x58,-0x61)];let b;return this['ongoing']=this[D(-0x21,-0x45)][D(-0x69,-0x35)](()=>{function E(a,b){return D(b,a-0xa3);}return this[E(0x14,0xe)](a);})[D(-0x1c,-0x35)](c=>{b=c;return c;})[D(-0x8b,-0x55)](()=>{this['baseRevisionStable']=void 0x0;this[F(-0x19e,-0x1d7)]=void 0x0;this['isInitialCommit']=![];function F(a,b){return D(a,b- -0x16b);}this[F(-0x1a8,-0x1d0)]=![];});}async[_enl(0xb4,0x95)](a){this['unScheduleAutoCommit']();const b=this[G(0x4b6,0x4c7)];const c=await b[G(0x4b6,0x47a)](a);const d=Boolean(b[G(0x443,0x45f)]);const e=this[G(0x4b1,0x494)];if(!d)this[G(0x4a3,0x494)]=b[G(0x4b5,0x4c4)];this[G(0x4b8,0x48f)]=void 0x0;await this['finalizeCommitAsync'](c);if(this[G(0x4d4,0x4ae)])return{'rejectedWith':RejectEffect[G(0x4b3,0x4c9)]({'reason':G(0x449,0x479)})};if(b['rejectedWith']&&!d){this[G(0x49e,0x494)]=e;this['$activeTransaction']=void 0x0;}const f=this[G(0x490,0x49d)](c);function G(a,b){return _enl(a,b-0x3dc);}if(b[G(0x439,0x45f)])b[G(0x49b,0x486)]();if(this[G(0x4df,0x4b5)]&&!b[G(0x46c,0x45f)]){await this[G(0x471,0x471)](a);}return f;}[_enl(0xb0,0xc1)](a){function H(a,b){return _enl(b,a-0x42e);}const {revision:b,entries:c,transaction:d}=a;if(!d['rejectedWith']){if(b['previous']!==this[H(0x4f1,0x4dd)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[H(0x4f6,0x4fc)]()){if(f)e['reachableCount']--;e[H(0x520,0x4ec)]--;}this[H(0x4f1,0x4b7)]=this['topRevision']=b;for(const [g,h]of c){h[H(0x521,0x503)]();if(h[H(0x4d3,0x4e6)]()||!h[H(0x4c4,0x4a7)]())continue;const i=this[H(0x52a,0x4fa)][H(0x4be,0x4f3)](g);if(i)i[H(0x514,0x4dd)](h[H(0x50f,0x523)]());}this[H(0x4f8,0x4cd)]=void 0x0;this['markAndSweep']();}else{if(this['baseRevisionStable'])this[H(0x4f1,0x532)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;this[H(0x4e6,0x508)]=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async['finalizeCommitAsync'](a){}*[_enl(0xce,0xbd)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);function I(a,b){return _enl(b,a- -0x20c);}c[I(-0x164,-0x136)]=a;b[I(-0x188,-0x18a)](a);switch(this[I(-0x158,-0x158)]){case I(-0x120,-0x15a):console[I(-0x109,-0x10e)](c[I(-0x14a,-0x11e)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0x18b,-0x15d)](d[I(-0x12a,-0xee)]!==void 0x0?d['proposedValue']:d[I(-0x11b,-0x12e)]);case I(-0x141,-0x183):throw c;case I(-0x131,-0x12d):this['reject'](c);break;case I(-0x15f,-0x16b):warn(c);break;}}['onComputationCycleHandlerSync'](a,b){const c=new ComputationCycleError(J(0x470,0x4af)+a);function J(a,b){return _enl(b,a-0x3e4);}c['cycle']=a;b['addCycle'](a);switch(this[J(0x498,0x4c8)]){case J(0x4d0,0x4c3):console[J(0x4e7,0x4f1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x465,0x43f)](d[J(0x4c6,0x4ca)]!==void 0x0?d[J(0x4c6,0x4d7)]:d[J(0x4d5,0x4d9)]);case J(0x4af,0x49f):throw c;case J(0x4bf,0x4bd):this[J(0x4bf,0x4d4)](c);break;case J(0x491,0x4c1):warn(c);break;}}[_enl(0xfa,0xe9)](){function K(a,b){return _enl(b,a-0x196);}if(this[K(0x23f,0x261)]===null&&!this[K(0x255,0x244)]){this[K(0x23f,0x206)]=setTimeout(this['autoCommitHandler'],0xa);}}[_enl(0x69,0x92)](){function L(a,b){return _enl(b,a-0x213);}if(this[L(0x2bc,0x2c6)]!==null){clearTimeout(this[L(0x2bc,0x2b3)]);this['autoCommitTimeoutId']=null;}}[_enl(0x8a,0xb5)](a){function M(a,b){return _enl(a,b- -0xe4);}const b=VariableC();return this[M(0x55,0x1d)](b,a===void 0x0?null:a);}[_enl(0xcd,0xee)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}[_enl(0xe7,0xe3)](a,b){function N(a,b){return _enl(b,a-0x2b0);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[N(0x3b1,0x387)](c);}[_enl(0xed,0xe7)](a,b,c){const d=b[O(-0x197,-0x171)][O(-0x17f,-0x1bf)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enl(a,b- -0x261);}return this['addIdentifier'](d);}[_enl(0x11e,0x101)](a,b,...c){if(this[P(-0x171,-0x185)]){if(this['onWriteDuringCommit']===P(-0x165,-0x151))throw new Error(P(-0x131,-0x167));else if(this['onWriteDuringCommit']==='warn')warn(new Error(P(-0x131,-0x10b)));}this[P(-0x145,-0x182)][P(-0x12f,-0x12f)](a,b,...c);if(this[P(-0x14b,-0x128)])this[P(-0x147,-0x112)]();function P(a,b){return _enl(b,a- -0x230);}return a;}['removeIdentifier'](a){if(this[Q(0x45d,0x496)]){if(this['onWriteDuringCommit']===Q(0x483,0x4a2))throw new Error(Q(0x493,0x471));else if(this['onWriteDuringCommit']===Q(0x459,0x484))warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function Q(a,b){return _enl(a,b-0x3d7);}this['activeTransaction']['removeIdentifier'](a);this['listeners'][Q(0x46d,0x497)](a);if(this[Q(0x4b6,0x4bc)])this['scheduleAutoCommit']();}[_enl(0xc1,0x8a)](a){function R(a,b){return _enl(a,b- -0x18a);}return this[R(-0xb9,-0x9f)][R(-0x124,-0x100)](a);}[_enl(0xfb,0xc7)](a,b,...c){function S(a,b){return _enl(b,a- -0x1df);}if(this[S(-0x120,-0x157)]){if(this[S(-0x119,-0x158)]===S(-0x114,-0x127))throw new Error('Write\x20during\x20commit');else if(this['onWriteDuringCommit']===S(-0x132,-0x13c))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][S(-0x118,-0xd7)](a,b,...c);if(this['autoCommit'])this['scheduleAutoCommit']();}[_enl(0x80,0xa0)](a){function T(a,b){return _enl(a,b-0xeb);}return this[T(0x1ba,0x1d6)][T(0x158,0x18b)](a);}[_enl(0xa9,0xa4)](a){function U(a,b){return _enl(a,b- -0xba);}return this[U(0x4b,0x31)][U(-0x4a,-0x16)](a);}[_enl(0x12e,0xf4)](a){function V(a,b){return _enl(b,a-0xad);}return this[V(0x198,0x17d)][V(0x1a1,0x18c)](a);}[_enl(0xa9,0xb1)](a){function W(a,b){return _enl(b,a- -0xe3);}return this['activeTransaction'][W(-0x32,-0x4e)](a);}[_enl(0x79,0x90)](a){function X(a,b){return _enl(b,a-0x2e1);}return this['activeTransaction'][X(0x371,0x371)](a);}[_enl(0xfa,0xbe)](a,b){const c=this[Y(0x50b,0x4f9)](CalculatedValueGen[Y(0x4f7,0x4d7)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(b,a-0x40a);}this[Y(0x4cf,0x4e8)](c,b);return c;}[_enl(0x7f,0x8e)](a,b,c){const d=this[Z(0x55e,0x528)](CalculatedValueGen[Z(0x54a,0x50b)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x522,0x53e)](d,c);function Z(a,b){return _enl(b,a-0x45d);}return d;}['addListener'](a,b){let c=this[a0(-0x63,-0x4c)]['get'](a);function a0(a,b){return _enl(a,b- -0x148);}if(!c){c=Listener[a0(-0x1c,-0x5b)]();this[a0(-0x39,-0x4c)]['set'](a,c);}c[a0(-0xd3,-0xbb)][a0(-0x75,-0x9d)](b);}[_enl(0xb7,0x82)](){const a=this[a1(-0x11,-0x18)];function a1(a,b){return _enl(b,a- -0xd4);}const b=a[a1(-0x7,0x13)];if(!b)return![];this[a1(-0x11,-0x1d)]=b;this[a1(-0x21,0x18)]=void 0x0;return!![];}[_enl(0xa0,0x89)](){function a2(a,b){return _enl(a,b-0x5e);}const a=this['baseRevision'];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x120,0xee)](a);this[a2(0x12c,0x121)]=b;this[a2(0xe5,0x111)]=void 0x0;return!![];}[_enl(0x81,0x8f)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x5e,0x90)]();c['usedProposedOrPrevious']=!![];const d=c['getProposedValue'](b);if(d!==void 0x0)return d;if(!c[a3(0x3c,0x67)])return void 0x0;function a3(a,b){return _enl(a,b- -0x66);}const e=c[a3(0x75,0x7d)];if(e[a3(0x8c,0x7e)]){if(c[a3(0x87,0x67)][a3(0x3b,0x30)]())return c[a3(0x75,0x67)][a3(0x49,0x7b)]();if(c[a3(0x69,0x67)][a3(0x49,0x39)]())return c[a3(0x98,0x67)][a3(0x4c,0x1a)](b);return null;}return b['readPrevious'](c[a3(0x69,0x7d)]);}[RejectSymbol](a,b){function a4(a,b){return _enl(b,a-0x171);}this[a4(0x24c,0x278)](a[a4(0x217,0x246)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a5(a,b){return _enl(a,b-0x38a);}return b[a5(0x4b2,0x480)]();}[OwnIdentifierSymbol](a,b){function a6(a,b){return _enl(a,b-0x141);}const c=b[a6(0x26f,0x237)]();return c[a6(0x262,0x224)];}[WriteSymbol](a,b){function a7(a,b){return _enl(b,a- -0x197);}const c=b['getActiveEntry']();const d=a[a7(-0xb4,-0xd7)][a7(-0xc9,-0xd9)]>c[a7(-0xb4,-0x7e)][a7(-0xc9,-0xc0)];if(!d)b[a7(-0xbf,-0xe5)][a7(-0xe9,-0xd5)]();b[a7(-0xd0,-0x104)](a[a7(-0xb4,-0xf1)],...a[a7(-0xfb,-0x117)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a8(0x57,0x60)]();let d=!![];function a8(a,b){return _enl(b,a- -0x9f);}a[a8(-0x14,-0x19)][a8(0x17,0xa)](e=>{function a9(a,b){return a8(b-0x211,a);}if(e['identifier'][a9(0x1ff,0x240)]<=c[a9(0x284,0x255)]['level']&&d){b[a9(0x272,0x24a)][a9(0x21a,0x220)]();d=![];}b[a9(0x266,0x239)](e[a9(0x250,0x255)],...e[a9(0x22c,0x20e)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x27c,0x2be)];function aa(a,b){return _enl(b,a-0x199);}b[aa(0x248,0x257)](d,c,EdgeTypePast);const e=b[aa(0x234,0x1f1)][aa(0x229,0x21b)](d);return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[ab(0xf6,0x108)];b[ab(0xfe,0xd4)](d,c,EdgeTypePast);function ab(a,b){return _enl(a,b-0x25);}return b[ab(0xa3,0xc5)](d);}[ProposedValueOfSymbol](a,b){function ac(a,b){return _enl(a,b-0x31);}const c=b['getActiveEntry']();const d=a[ac(0xed,0x114)];b[ac(0xfe,0xe0)](d,c,EdgeTypePast);const e=b[ac(0x8c,0xcc)][ac(0xac,0xc1)](d);const f=e&&!e[ac(0xb0,0xd6)]()?e[ac(0xf1,0xb1)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ad(a,b){return _enl(a,b- -0x1de);}const c=b[ad(-0xfd,-0xe8)]();const d=a[ad(-0xcb,-0xfb)];b[ad(-0x159,-0x12f)](d,c,EdgeTypePast);const e=b[ad(-0x126,-0x143)]['get'](d);return e?e[ad(-0xfd,-0x13f)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ae(-0x15b,-0x18c)];b[ae(-0x1e4,-0x1c0)](d,c,EdgeTypePast);const e=b['entries']['get'](d);function ae(a,b){return _enl(a,b- -0x26f);}return e?e[ae(-0x1a2,-0x1d0)]()&&e[ae(-0x229,-0x1f0)]!==void 0x0&&!e[ae(-0x210,-0x1ea)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();function af(a,b){return _enl(b,a-0x24f);}const d=a['identifier'];b[af(0x2fe,0x311)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ag(a,b){return _enl(a,b-0x2e0);}return b[ag(0x384,0x374)](a['identifier']);}[UnsafePreviousValueOfSymbol](a,b){function ah(a,b){return _enl(b,a-0x98);}return b[ah(0x138,0x162)](a[ah(0x17b,0x1ac)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(0x107,0x131)]();const d=a[ai(0x132,0x11e)];function ai(a,b){return _enl(a,b-0x3b);}b[ai(0xf4,0xea)](d,c,EdgeTypePast);const e=b[ai(0xcc,0xd6)]['get'](d);return e&&!e[ai(0xca,0xe0)]()?e[ai(0x14e,0x125)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
|
|
1
|
+
(function(a,b){const c=a();function j(a,b){return _enb(b-0x2cc,a);}while(!![]){try{const d=-parseInt(j(0x541,0x50b))/0x1+-parseInt(j(0x52a,0x519))/0x2+parseInt(j(0x510,0x510))/0x3+parseInt(j(0x500,0x4ff))/0x4+parseInt(j(0x4cf,0x50c))/0x5*(-parseInt(j(0x4ec,0x4f7))/0x6)+parseInt(j(0x4cc,0x4d7))/0x7+-parseInt(j(0x50b,0x517))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x37409));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposeCountOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';function _enl(a,b){return _enb(b-0x1c4,a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e7;let f=c[d];return f;};return _enb(a,b);}import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';function _ena(){const ah=['warn','onComputationCycleHandler','topRevision','finalizeCommit','getValue','readPreviousAsync','identifierNamed','then','clearRejected','readProposedOrPrevious','entries','observeContext','reject','doCommitAsync','get','autoCommitTimeoutId','Invalid\x20revisions\x20chain','isCommitting','variableNamed','hasValue','delete','value','origin','throw','write','scope','getProposedValue','usedProposedOrPrevious','clear','markAndSweep','lazy','unScheduleAutoCommit','handlers','transactionClass','onWriteDuringCommit','proposedIsPrevious','Write\x20during\x20commit','dirty','isInitialCommit','hasProposedValue','branch','candidate','Removing\x20identifier\x20during\x20commit','2127377AdjLZO','addCycle','addIdentifier','unshift','_isInitialCommit','proposedArgs','proposedArguments','assign','from','variable','clearProperties','$activeTransaction','walkContext','commitAsync','sync','$followingRevision','proposeCount','mergePreviousOrigin','isJustCleared','baseRevisionStable','selfDependent','isShadow','observe','cycle','initialize','read','scheduleAutoCommit','baseRevisionTentative','removeIdentifier','previous','ongoing','cleanup','102402njFbMw','constructor','commit','ignore','rejectedWith','previousAxis','Invalid\x20compact\x20operation','length','1694256aTnnds','finalizeCommitAsync','eachReachableRevision','baseRevision','readAsync','undo','reachableCount','autoCommit','new','readPrevious','activeTransaction','hasIdentifier','214937pYNnTH','90dxPhmp','autoCommitHandler','referenceCount','writtenValue','627033qCOrcj','Computation\x20cycle:\x0a','startOrigin','historyLimit','onPropagationProgressNotification','hasPendingAutoCommit','redo','1439936eHXmJI','push','16076NxhvTF','trigger','getActiveEntry','level','addEdge','addListener','listeners','resolve','proposedValue','autoCommitMode','onComputationCycleHandlerSync','propagate','writes','identifier','set','Adding\x20identifier\x20during\x20commit','clearBranch','onComputationCycle','name','continueCalculation','log'];_ena=function(){return ah;};return _ena();}const CommitZero={'rejectedWith':null};class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(a-0xd2,b);}this[k(0x2d2,0x2a8)]=[];}[_enl(0x441,0x412)](a){function m(a,b){return _enl(b,a- -0x273);}for(let b=0x0;b<this[m(0x151,0x183)][m(0x183,0x1b8)];b++)this[m(0x151,0x161)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this[n(-0x16e,-0x185)]=void 0x0;this[n(-0x1bc,-0x17d)]=void 0x0;this['baseRevision']=Revision[n(-0x19f,-0x168)]();this['topRevision']=void 0x0;this[n(-0x120,-0x15c)]=0x0;this[n(-0x18b,-0x150)]=new Map();this['isWritingPreviousData']=0x0;this['$activeTransaction']=void 0x0;this['isCommitting']=![];this['enableProgressNotifications']=![];this['ongoing']=Promise[n(-0x12d,-0x14f)]();this['_isInitialCommit']=!![];this[n(-0x1ce,-0x1b4)]=null;this['autoCommit']=![];this['autoCommitMode']=n(-0x157,-0x18a);function n(a,b){return _enl(a,b- -0x567);}this[n(-0x185,-0x162)]=null;this[n(-0x178,-0x1a1)]='throw';this[n(-0x13c,-0x145)]=n(-0x1a1,-0x1ac);this['transactionClass']=Transaction;this[n(-0x182,-0x186)]=![];this[n(-0x15c,-0x189)]=void 0x0;}[_enl(0x3b9,0x3e7)](...a){super[o(0x2,0xf)](...a);if(!this[o(0x43,0x84)])this[o(0x43,0x3b)]=this[o(0x15,0x1a)];if(this[o(0x19,0x7)]){this[o(0x20,0x22)]=this[o(0x35,0x4c)]===o(-0x8,-0x2e)?b=>this[o(0xc,0x25)](b):async b=>this[o(-0x9,-0x2f)](b);}function o(a,b){return _enl(b,a- -0x3e5);}this['markAndSweep']();}[_enl(0x3e0,0x40d)](){return this['autoCommitTimeoutId']!==null;}get['dirty'](){function p(a,b){return _enl(b,a-0x1f2);}return this[p(0x5f3,0x5cf)]['dirty'];}[_enl(0x3a1,0x3c0)](){this[q(0x547,0x582)]();this[q(0x55a,0x571)]();this[q(0x591,0x5c7)]['scope']&&this[q(0x591,0x590)][q(0x554,0x572)][q(0x557,0x589)]();function q(a,b){return _enl(b,a-0x197);}this[q(0x591,0x57b)][q(0x583,0x5c2)]=null;this[q(0x5ae,0x5e9)][q(0x557,0x550)]();this['topRevision']=this[q(0x591,0x576)];this['$followingRevision']=void 0x0;this[q(0x571,0x598)]=void 0x0;this['markAndSweep']();this['isJustCleared']=!![];}[_enl(0x43f,0x421)](){this[r(-0x96,-0xd5)]();this[r(-0xed,-0xc2)]();for(const [a,b]of this[r(-0xbc,-0x8c)]()){if(b)a[r(-0x79,-0x88)]--;a['referenceCount']--;}this[r(-0x67,-0x6e)][r(-0xc4,-0xc5)]();function r(a,b){return _enl(a,b- -0x485);}this[r(-0x9a,-0x5d)]=this[r(-0x5b,-0x8b)];this[r(-0x92,-0xa7)]=void 0x0;this['$activeTransaction']=void 0x0;}*[_enl(0x3d7,0x3f9)](){let a=!![];function s(a,b){return _enl(a,b-0x17a);}let b=0x0;for(const c of this[s(0x5cc,0x5a2)]['previousAxis']()){yield[c,a||b<this[s(0x5b6,0x585)]];if(c===this['baseRevision']){a=![];}else{if(!a)b++;}}}get[_enl(0x3c8,0x3ca)](){function t(a,b){return _enl(a,b-0x6c);}return this[t(0x441,0x43f)];}set[_enl(0x3ae,0x3ca)](a){function u(a,b){return _enl(b,a- -0x115);}this[u(0x2be,0x2bc)]=a;}['markAndSweep'](){let a;const b=[];function v(a,b){return _enl(a,b-0xb3);}for(const [c,d]of this[v(0x4d4,0x4ac)]()){if(d){c[v(0x4a3,0x4b0)]++;a=c;}else b['push'](c);c[v(0x4b2,0x4b9)]++;}b[v(0x49e,0x485)](a);for(let e=b[v(0x475,0x4a9)]-0x1;e>=0x1&&b[e][v(0x4c6,0x4b0)]===0x0;e--){this['compactRevisions'](b[e-0x1],b[e]);}}['compactRevisions'](a,b){if(b[w(0xd6,0xee)]>0x0||a[w(0xc5,0xfe)]!==b)throw new Error(w(0xce,0xf5));if(b[w(0xdf,0xed)]<=0x1){for(const [c,d]of a[w(0x96,0xa3)]){if(d[w(0x103,0x13a)]()===TombStone){b[w(0x96,0xad)]['delete'](c);}else{const e=b['scope']['get'](c);if(d['origin']===d){if(e){e[w(0x99,0x97)]();e[w(0xb2,0xe1)]();}}else if(e&&d[w(0x93,0xc6)]===e){d[w(0xb9,0xec)](a[w(0x96,0x80)]);}else if(c['lazy']&&!d[w(0x93,0x73)]&&e&&e[w(0x93,0xc4)]){d[w(0xe3,0xe3)]()[w(0xf2,0xc3)]=e[w(0x93,0x8c)][w(0x92,0x7c)]!==void 0x0?e[w(0x93,0x76)][w(0x92,0xca)]:e[w(0x93,0x63)][w(0xf2,0xf4)];}d[w(0xc5,0x8b)]=void 0x0;b['scope']['set'](c,d);}}copySetInto(a[w(0xbc,0xf9)],b[w(0xbc,0xb1)]);a[w(0x96,0xbc)]=b[w(0x96,0xb3)];b[w(0x96,0x84)]=null;}else{a['scope']=new Map(concat(b[w(0x96,0xa8)],a[w(0x96,0x60)]));a[w(0xbc,0x98)]=new Set(concat(b['selfDependent'],a[w(0xbc,0xe4)]));b['referenceCount']--;}function w(a,b){return _enl(b,a- -0x327);}a[w(0xc5,0x99)]=null;}get['followingRevision'](){if(this[x(0x72,0x5f)]!==void 0x0)return this[x(0x3e,0x5f)];const a=Array[x(0x40,0x58)](this[x(0xa1,0xa9)][x(0x89,0x75)]());const b=[];function x(a,b){return _enl(a,b- -0x37f);}for(let c=a[x(0x8c,0x77)]-0x1;c>0x0;c--)b[x(0x67,0x91)]([a[c],a[c-0x1]]);return this[x(0x82,0x5f)]=new Map(b);}get[_enl(0x43d,0x401)](){if(this[y(0x15f,0x148)])return this[y(0x15f,0x19f)];function y(a,b){return _enl(b,a- -0x27b);}return this['$activeTransaction']=this[y(0x14a,0x127)][y(0x184,0x1a5)]({'baseRevision':this[y(0x16f,0x153)]||this[y(0x17f,0x1bb)],'graph':this});}[_enl(0x3a7,0x3cc)](a){const b=this[z(0x174,0x1a5)];function z(a,b){return _enl(b,a- -0x27c);}return b[z(0x183,0x1bf)](Object[z(0x15a,0x12f)]({},a,{'baseRevision':this[z(0x17e,0x16a)]}));}[_enl(0x3ec,0x41c)](a){function A(a,b){return _enl(b,a-0x32);}return this[A(0x423,0x441)](a);}[_enl(0x3d6,0x3b0)](a){this['activeTransaction'][B(-0x39,-0x2d)](RejectEffect[B(0x16,-0x2b)]({'reason':a}));this['ongoing']=Promise[B(0x2f,0x28)]();this[B(-0xf,-0x8)]=void 0x0;function B(a,b){return _enl(b,a- -0x3e9);}this[B(0x1,0x1a)]=void 0x0;if(this['baseRevisionStable']){this[B(0x11,0x1f)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;}}[_enl(0x3d2,0x3f1)](a){this[C(0xe4,0xf5)]=![];function C(a,b){return _enl(b,a- -0x2fd);}this['unScheduleAutoCommit']();this[C(0xe5,0xe9)]=this[C(0xfd,0x12f)];const b=this[C(0x104,0x136)];const c=b[C(0xf4,0xc8)](a);this[C(0xdd,0xf8)]=void 0x0;const d=this['finalizeCommit'](c);this[C(0xe5,0x10a)]=void 0x0;this[C(0xcd,0xc8)]=![];return d;}async['propagateAsync'](a){function D(a,b){return _enl(b,a- -0x4db);}return this[D(-0xff,-0xfb)](a);}async[_enl(0x3ec,0x3dc)](a){if(this['isCommitting'])return this[E(0x3c4,0x3be)];this['isJustCleared']=![];this[E(0x3bd,0x386)]=!![];function E(a,b){return _enl(a,b- -0x2f);}this[E(0x3d1,0x3b3)]=this[E(0x394,0x3cb)];let b;return this[E(0x391,0x3be)]=this[E(0x3f4,0x3be)][E(0x3b3,0x37c)](()=>{function F(a,b){return E(b,a- -0x3ad);}return this[F(-0x2b,-0x2f)](a);})['then'](c=>{b=c;return c;})['finally'](()=>{this['baseRevisionStable']=void 0x0;this[G(0x4fe,0x4ce)]=void 0x0;function G(a,b){return E(a,b-0x113);}this[G(0x4b2,0x4ae)]=![];this['isCommitting']=![];});}async['doCommitAsync'](a){this['unScheduleAutoCommit']();const b=this[H(0x2c8,0x2dd)];function H(a,b){return _enl(a,b- -0x124);}const c=await b['commitAsync'](a);const d=Boolean(b[H(0x2e0,0x2cf)]);const e=this[H(0x2b8,0x2c6)];if(!d)this[H(0x2a7,0x2c6)]=b[H(0x277,0x2a9)];this[H(0x27b,0x2b6)]=void 0x0;await this[H(0x2c4,0x2d4)](c);if(this[H(0x2f2,0x2bd)])return{'rejectedWith':RejectEffect[H(0x2d5,0x2db)]({'reason':'Graph\x20cleared'})};if(b[H(0x2da,0x2cf)]&&!d){this[H(0x2cd,0x2c6)]=e;this[H(0x2c8,0x2b6)]=void 0x0;}const f=this['finalizeCommit'](c);if(b[H(0x2ae,0x2cf)])b[H(0x2c3,0x288)]();if(this[H(0x2e3,0x2a5)]&&!b['rejectedWith']){await this[H(0x2cc,0x28d)](a);}return f;}[_enl(0x43d,0x429)](a){const {revision:b,entries:c,transaction:d}=a;function I(a,b){return _enl(a,b- -0x3b0);}if(!d[I(0x5b,0x43)]){if(b[I(0x33,0x3c)]!==this[I(0x46,0x4a)])throw new Error(I(-0x13,0x4));for(const [e,f]of this[I(0x48,0x49)]()){if(f)e[I(0x88,0x4d)]--;e[I(0x29,0x56)]--;}this[I(0x70,0x4a)]=this[I(0x3e,0x78)]=b;for(const [g,h]of c){h[I(0x3e,0x3e)]();if(h['isShadow']()||!h[I(0x32,0x7)]())continue;const i=this[I(0x4b,0x67)][I(0x13,0x2)](g);if(i)i[I(0x71,0x62)](h['getValue']());}this[I(0x4b,0x2e)]=void 0x0;this[I(0xd,0x11)]();}else{if(this[I(0x34,0x32)])this[I(0x35,0x4a)]=this[I(0x31,0x32)];this[I(-0x9,0x32)]=void 0x0;this['baseRevisionTentative']=void 0x0;}return{'rejectedWith':d[I(0x55,0x43)]};}async['finalizeCommitAsync'](a){}*[_enl(0x3ef,0x427)](a,b){const c=new ComputationCycleError(J(0x594,0x568)+a);c[J(0x571,0x55d)]=a;function J(a,b){return _enl(b,a-0x18b);}b[J(0x55b,0x592)](a);switch(this[J(0x5ad,0x5d6)]){case J(0x57d,0x5a1):console['log'](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x5af,0x59a)](d[J(0x5a4,0x5be)]!==void 0x0?d['proposedValue']:d[J(0x544,0x565)]);case J(0x546,0x572):throw c;case'reject':this['reject'](c);break;case'warn':warn(c);break;}}[_enl(0x3ea,0x41b)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);c[K(0x23a,0x272)]=a;function K(a,b){return _enl(a,b- -0x174);}b[K(0x252,0x25c)](a);switch(this[K(0x29a,0x2ae)]){case K(0x2a2,0x27e):console[K(0x2b4,0x2b1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[K(0x2ab,0x2b0)](d[K(0x2c5,0x2a5)]!==void 0x0?d[K(0x2d8,0x2a5)]:d[K(0x27e,0x245)]);case K(0x213,0x247):throw c;case K(0x216,0x23c):this[K(0x27b,0x23c)](c);break;case K(0x2c5,0x2b2):warn(c);break;}}['scheduleAutoCommit'](){function L(a,b){return _enl(b,a- -0x16b);}if(this[L(0x248,0x241)]===null&&!this[L(0x24a,0x231)]){this[L(0x248,0x20f)]=setTimeout(this[L(0x29a,0x2b2)],0xa);}}[_enl(0x3dc,0x3c3)](){function M(a,b){return _enl(a,b-0x1e3);}if(this['autoCommitTimeoutId']!==null){clearTimeout(this[M(0x581,0x596)]);this[M(0x58e,0x596)]=null;}}[_enl(0x3d2,0x3d8)](a){function N(a,b){return _enl(a,b- -0x1e2);}const b=VariableC();return this[N(0x1f7,0x1ef)](b,a===void 0x0?null:a);}[_enl(0x3d3,0x3b6)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}['identifier'](a,b){const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});function O(a,b){return _enl(a,b-0x76);}return this[O(0x43f,0x447)](c);}[_enl(0x454,0x42c)](a,b,c){const d=b[P(0x34b,0x35a)][P(0x38c,0x38d)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function P(a,b){return _enl(a,b- -0x96);}return this['addIdentifier'](d);}[_enl(0x39f,0x3d1)](a,b,...c){if(this[Q(0x1f1,0x1ff)]){if(this[Q(0x202,0x23a)]===Q(0x1f7,0x214))throw new Error(Q(0x25c,0x28f));else if(this[Q(0x202,0x235)]===Q(0x262,0x28d))warn(new Error(Q(0x25c,0x26d)));}this['activeTransaction'][Q(0x20d,0x1d6)](a,b,...c);function Q(a,b){return _enl(b,a- -0x1c4);}if(this[Q(0x23a,0x218)])this['scheduleAutoCommit']();return a;}[_enl(0x3f2,0x3eb)](a){if(this[R(0x327,0x311)]){if(this[R(0x338,0x34c)]==='throw')throw new Error(R(0x340,0x364));else if(this[R(0x338,0x33c)]==='warn')warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function R(a,b){return _enl(b,a- -0x8e);}this['activeTransaction'][R(0x35d,0x36b)](a);this[R(0x389,0x37b)][R(0x32a,0x34d)](a);if(this[R(0x370,0x337)])this['scheduleAutoCommit']();}[_enl(0x3ff,0x402)](a){function S(a,b){return _enl(a,b- -0x102);}return this[S(0x322,0x2ff)][S(0x2ee,0x300)](a);}[_enl(0x3d3,0x3bc)](a,b,...c){function T(a,b){return _enl(b,a- -0x88);}if(this[T(0x32d,0x350)]){if(this['onWriteDuringCommit']===T(0x333,0x369))throw new Error(T(0x340,0x336));else if(this['onWriteDuringCommit']===T(0x39e,0x3db))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][T(0x334,0x36a)](a,b,...c);if(this[T(0x376,0x391)])this[T(0x361,0x342)]();}['readPrevious'](a){function U(a,b){return _enl(a,b- -0x133);}return this[U(0x2fc,0x2ce)][U(0x2ca,0x2cd)](a);}[_enl(0x3f2,0x42b)](a){function V(a,b){return _enl(b,a-0xf2);}return this[V(0x4f3,0x4d6)]['readPreviousAsync'](a);}[_enl(0x420,0x3e8)](a){return this['activeTransaction']['read'](a);}[_enl(0x3db,0x3fb)](a){function W(a,b){return _enl(b,a- -0x52);}return this[W(0x3af,0x3cd)][W(0x3a9,0x3bc)](a);}[_enl(0x3b6,0x3b2)](a){function X(a,b){return _enl(a,b- -0xcc);}return this['activeTransaction'][X(0x2f1,0x2e6)](a);}[_enl(0x41c,0x3e5)](a,b){const c=this[Y(0x33f,0x331)](CalculatedValueGen[Y(0x32d,0x35f)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(a,b- -0xa0);}this['addListener'](c,b);return c;}[_enl(0x37e,0x3af)](a,b,c){const d=this[Z(0x149,0x180)](CalculatedValueGen['new']({'lazy':![],'calculation':a,'context':b}));this[Z(0x1a9,0x1c5)](d,c);function Z(a,b){return _enl(a,b- -0x251);}return d;}[_enl(0x41e,0x416)](a,b){let c=this[a0(0x51a,0x4fe)][a0(0x4a4,0x499)](a);if(!c){c=Listener['new']();this[a0(0x503,0x4fe)][a0(0x502,0x506)](a,c);}function a0(a,b){return _enl(a,b-0xe7);}c[a0(0x471,0x4ab)]['push'](b);}[_enl(0x404,0x3fc)](){const a=this['baseRevision'];const b=a[a1(0x4a9,0x4b6)];if(!b)return![];this[a1(0x4b7,0x4c2)]=b;this[a1(0x497,0x497)]=void 0x0;function a1(a,b){return _enl(b,a-0xbd);}return!![];}[_enl(0x418,0x40e)](){const a=this[a2(0x5e,0x81)];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x16,0x2e)](a);function a2(a,b){return _enl(b,a- -0x39c);}this[a2(0x5e,0x1e)]=b;this[a2(0x3e,0x3)]=void 0x0;return!![];}[_enl(0x3ec,0x40c)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x4a0,0x470)]();function a3(a,b){return _enl(a,b-0x5d);}c[a3(0x425,0x41c)]=!![];const d=c[a3(0x410,0x41b)](b);if(d!==void 0x0)return d;if(!c[a3(0x47c,0x449)])return void 0x0;const e=c['identifier'];if(e[a3(0x3fd,0x41f)]){if(c[a3(0x475,0x449)]['hasValue']())return c[a3(0x40e,0x449)][a3(0x481,0x487)]();if(c[a3(0x408,0x449)]['hasProposedValue']())return c[a3(0x41f,0x449)][a3(0x3fa,0x41b)](b);return null;}return b[a3(0x425,0x45d)](c[a3(0x4ad,0x47b)]);}[RejectSymbol](a,b){this['reject'](a['reason']);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){return b['getActiveEntry']();}[OwnIdentifierSymbol](a,b){const c=b['getActiveEntry']();return c['identifier'];}[WriteSymbol](a,b){const c=b['getActiveEntry']();const d=a[a4(0x60d,0x604)][a4(0x603,0x636)]>c[a4(0x60d,0x61e)][a4(0x603,0x617)];if(!d)b[a4(0x5ca,0x5a3)]['startNewEpoch']();b[a4(0x5ab,0x57a)](a[a4(0x60d,0x627)],...a[a4(0x5c3,0x5df)]);function a4(a,b){return _enl(b,a-0x1ef);}return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a5(0x363,0x39d)]();let d=!![];a[a5(0x3d9,0x3a7)]['forEach'](e=>{function a6(a,b){return a5(b,a-0xb1);}if(e[a6(0x459,0x479)][a6(0x44f,0x43a)]<=c['identifier'][a6(0x44f,0x48b)]&&d){b[a6(0x416,0x3e4)]['startNewEpoch']();d=![];}b[a6(0x3f7,0x3e2)](e[a6(0x459,0x490)],...e[a6(0x40f,0x442)]);});function a5(a,b){return _enl(a,b- -0x76);}return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[a7(0x22b,0x22e)]();function a7(a,b){return _enl(a,b- -0x1e5);}const d=a[a7(0x21c,0x239)];b[a7(0x22a,0x230)](d,c,EdgeTypePast);const e=b[a7(0x1d4,0x1c9)][a7(0x19a,0x1cd)](d);return e?b[a7(0x23f,0x21b)](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b[a8(0x3d3,0x39c)]();function a8(a,b){return _enl(a,b- -0x77);}const d=a['identifier'];b[a8(0x370,0x39e)](d,c,EdgeTypePast);return b[a8(0x39b,0x389)](d);}[ProposedValueOfSymbol](a,b){const c=b[a9(0x16f,0x180)]();const d=a['identifier'];b[a9(0x171,0x16b)](d,c,EdgeTypePast);const e=b['entries'][a9(0x10e,0xf9)](d);const f=e&&!e['isShadow']()?e[a9(0x11a,0xdb)](b):void 0x0;function a9(a,b){return _enl(b,a- -0x2a4);}return f;}[HasProposedValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x61c,0x613)];b[aa(0x613,0x633)](d,c,EdgeTypePast);const e=b[aa(0x5ac,0x5e5)][aa(0x5b0,0x58c)](d);function aa(a,b){return _enl(b,a-0x1fe);}return e?e['hasProposedValue']():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a['identifier'];b['addEdge'](d,c,EdgeTypePast);const e=b['entries'][ab(0x209,0x238)](d);function ab(a,b){return _enl(b,a- -0x1a9);}return e?e[ab(0x222,0x230)]()&&e[ab(0x25e,0x240)]!==void 0x0&&!e[ab(0x21e,0x219)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ac(0x24e,0x21c)]();const d=a[ac(0x21f,0x227)];function ac(a,b){return _enl(a,b- -0x1f7);}b[ac(0x231,0x21e)](d,c,EdgeTypePast);return b[ac(0x1cb,0x1b6)](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ad(a,b){return _enl(b,a- -0x2b7);}return b[ad(0xf6,0xe0)](a[ad(0x167,0x146)]);}[UnsafePreviousValueOfSymbol](a,b){function ae(a,b){return _enl(a,b-0x20d);}return b[ae(0x5f8,0x60d)](a[ae(0x64e,0x62b)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[af(0x2cf,0x2d7)]();function af(a,b){return _enl(a,b- -0x13c);}const d=a[af(0x2ae,0x2e2)];b[af(0x302,0x2d9)](d,c,EdgeTypePast);const e=b['entries'][af(0x26b,0x276)](d);return e&&!e[af(0x2d6,0x2a8)]()?e[af(0x2b9,0x299)]:void 0x0;}[ProposeCountOfSymbol](a,b){const c=b[ag(0x209,0x22c)]();const d=a['identifier'];function ag(a,b){return _enl(b,a- -0x20a);}b[ag(0x20b,0x20a)](d,c,EdgeTypePast);const e=b[ag(0x1a4,0x1e0)][ag(0x1a8,0x17a)](d);return e&&!e[ag(0x1da,0x1f2)]()?e[ag(0x1d5,0x1a6)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function l(a,b){return _enb(b-
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(b-0x2a5,a);}const c=a();while(!![]){try{const d=-parseInt(l(0x30f,0x31a))/0x1+-parseInt(l(0x329,0x311))/0x2+parseInt(l(0x30f,0x319))/0x3*(parseInt(l(0x32d,0x339))/0x4)+parseInt(l(0x334,0x31e))/0x5+parseInt(l(0x33e,0x335))/0x6*(parseInt(l(0x31c,0x337))/0x7)+-parseInt(l(0x2fd,0x312))/0x8+parseInt(l(0x311,0x314))/0x9*(parseInt(l(0x349,0x32e))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa6365));var __decorate=function(a,b,e,f){function m(a,b){return _enb(a- -0x85,b);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x16,0x25)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(-0x15,-0x23)]===m(-0x17,-0x18))h=Reflect[m(-0x15,-0x2a)](a,b,e,f);else for(var k=a[m(0x13,0x26)]-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{Base}from'../class/Base.js';import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';function _enp(a,b){return _enb(b-0x66,a);}import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){a[a[n(-0xd6,-0xc1)]=0x0]=n(-0xd6,-0xbc);function n(a,b){return _enb(a- -0x174,b);}a[a[n(-0xea,-0xf7)]=0x1]='DependsOnlyOnUserInput';a[a['DependsOnlyOnDependsOnlyOnUserInput']=0x2]='DependsOnlyOnDependsOnlyOnUserInput';a[a['DependsOnSelfKind']=0x3]='DependsOnSelfKind';}(Levels||(Levels={})));class Meta extends Base{constructor(){super(...arguments);this[o(0x171,0x166)]=void 0x0;this[o(0x17a,0x181)]=![];this[o(0x183,0x17c)]=!![];function o(a,b){return _enb(b-0xfb,a);}this[o(0x171,0x17a)]=!![];this[o(0x17f,0x18e)]=![];}[_enp(0xee,0xff)](a){function q(a,b){return _enp(a,b- -0x1e5);}throw new Error(q(-0xdf,-0xfa));}['equality'](a,b){return a===b;}}__decorate([prototypeValue(Levels[_enp(0xd8,0xee)])],Meta[_enp(0xeb,0xfb)],_enp(0x118,0x100),void 0x0);__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0xdf,0xe2),void 0x0);class Identifier extends Meta{constructor(){super(...arguments);this[r(0x46e,0x46c)]=![];this['context']=void 0x0;function r(a,b){return _enp(b,a-0x37d);}this['isWritingUndefined']=![];}[_enp(0xdf,0xed)](a){function s(a,b){return _enp(b,a- -0x3fe);}const b=this[s(-0x30a,-0x317)]['new']();b[s(-0x325,-0x339)]=this;b['needToBuildProposedValue']=this['proposedValueIsBuilt'];return b;}[_enp(0x102,0xf7)](a,b,c,d,...e){c=c||b[t(0x245,0x22d)](a);c[t(0x26b,0x26c)]=d;function t(a,b){return _enp(b,a-0x165);}c[t(0x261,0x254)]=e[t(0x263,0x273)]>0x0?e:void 0x0;c[t(0x241,0x237)]=b[t(0x267,0x253)][t(0x248,0x23f)]>0x0;c[t(0x246,0x22b)]=d;c[t(0x24b,0x243)]++;}[_enp(0xf2,0xf2)](a,b,...c){a['write'](this,b,...c);}[_enp(0xe6,0xe4)](a,b,...c){function u(a,b){return _enp(a,b- -0x1a);}a[u(0xf0,0xdd)](this,b,...c);}['readFromGraphAsync'](a){function v(a,b){return _enp(b,a-0x273);}return a[v(0x351,0x34c)](this);}[_enp(0x10c,0x105)](a){function w(a,b){return _enp(a,b-0x35a);}return a[w(0x42d,0x444)](this);}[_enp(0x104,0xfd)](a){function x(a,b){return _enp(a,b-0x1aa);}return a[x(0x2a8,0x294)](this);}['readFromTransactionAsync'](a){return a['readAsync'](this);}[_enp(0xef,0xe8)](a,b,c){return void 0x0;}[_enp(0xdc,0xf3)](a){}[_enp(0xfc,0x103)](a){}}const IdentifierC=a=>Identifier['new'](a);const QuarkSync=Quark[_enp(0xf8,0xf5)](CalculationSync[_enp(0x10a,0xf5)](Map));const QuarkGen=Quark[_enp(0x102,0xf5)](CalculationGen[_enp(0xdd,0xf5)](Map));class Variable extends Identifier{[_enp(0x119,0xff)](a){function y(a,b){return _enp(b,a-0x372);}throw new Error(y(0x44f,0x454));}[_enp(0xe8,0xf7)](a,b,c,d,...e){function z(a,b){return _enp(b,a-0xc);}c=c||b[z(0xec,0x106)](a);c[z(0xdc,0xf5)]=d;c[z(0x108,0x10a)]=e['length']>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(0xfc,0x104)])],Variable[_enp(0x10c,0xfb)],_enp(0x10f,0x100),void 0x0);__decorate([prototypeValue(QuarkSync)],Variable[_enp(0x112,0xfb)],_enp(0x10b,0xf4),void 0x0);function VariableC(...a){function A(a,b){return _enp(a,b- -0x40e);}return Variable[A(-0x342,-0x337)](...a);}class CalculatedValueSync extends Identifier{['calculation'](a){return a(ProposedOrPrevious);}}function _ena(){const C=['enterGraph','quarkClass','mix','6dRMQiJ','write','1201711UxYZEp','proposedValueIsBuilt','247564wuNODC','prototype','proposedArguments','readFromTransaction','length','calculation','level','getOwnPropertyDescriptor','graph','leaveGraph','UserInput','readFromGraph','proposedValue','value','name','84742QLruTM','3881160hSuiJW','function','2381301YxinXD','decorate','new','Unknown\x20identifier\x20','identifier','45imUNaa','1202335DhRYpu','proposedIsPrevious','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','readAsync','1261310CRThzI','getWriteTarget','writtenValue','sync','isWritingPreviousData','writeToGraph','pure','proposeCount','total','buildProposedValue','defineProperty','read','Abstract\x20method\x20`calculation`\x20called','lazy','newQuark','DependsOnSelfKind','40ApjxQy','DependsOnlyOnUserInput','ignoreEdgesFlow','writeToTransaction'];_ena=function(){return C;};return _ena();}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync[_enp(0xf3,0xfb)],_enp(0x100,0xf4),void 0x0);function CalculatedValueSyncC(...a){return CalculatedValueSync['new'](...a);}class CalculatedValueGen extends Identifier{*[_enp(0x100,0xff)](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen[_enp(0xe4,0xfb)],_enp(0xdb,0xf4),void 0x0);function CalculatedValueGenC(...a){return CalculatedValueGen['new'](...a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x6a;let f=c[d];return f;};return _enb(a,b);}const throwUnknownIdentifier=a=>{function B(a,b){return _enp(a,b-0x302);}throw new Error(B(0x3ef,0x3da)+a);};export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function o(a,b){return _enb(a-0x2a6,b);}const c=a();while(!![]){try{const d=parseInt(o(0x450,0x46c))/0x1+-parseInt(o(0x429,0x41d))/0x2+parseInt(o(0x432,0x423))/0x3+-parseInt(o(0x423,0x43a))/0x4*(parseInt(o(0x453,0x446))/0x5)+parseInt(o(0x438,0x44b))/0x6*(parseInt(o(0x451,0x441))/0x7)+-parseInt(o(0x41c,0x402))/0x8+parseInt(o(0x431,0x441))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x78a12));import{MixinAny}from'../class/Mixin.js';function _ena(){const S=['new','hasValue','outgoingInTheFutureAndPastTransactionCb','set','3140tDyplB','clearOutgoing','values','origin','outgoingInTheFutureAndPastCb','getOutgoing','436840kBuRke','calculation','getOutgoingPast','proposedIsPrevious','getProposedValue','addOutgoingTo','resetToEpoch','startOrigin','6073263gLbPtk','174294nMNYxd','$outgoingPast','usedProposedOrPrevious','previous','proposedValue','cleanup','1611348URSRSY','cleanupCalculation','context','hasProposedValueInner','clear','value','outgoingInTheFutureHelper','visitedAt','isShadow','needToBuildProposedValue','Invalid\x20state','getLatestEntryFor','Past','proposedArguments','getValue','Normal','identifier','clearProperties','level','edgesFlow','getOrigin','buildProposedValue','originId','getLatestStableEntryFor','501899KolCuR','7PyKWtk','copyFrom','4990uPNYSb','visitEpoch','Tombstone','writtenValue','59312VghEAM','get','proposedValueIsBuilt'];_ena=function(){return S;};return _ena();}import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';var EdgeType;(function(a){a[a[p(0x252,0x23f)]=0x1]=p(0x23e,0x23f);function p(a,b){return _enb(b-0x9e,a);}a[a[p(0x238,0x23c)]=0x2]=p(0x240,0x23c);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;function _enr(a,b){return _enb(a-0x362,b);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x174;let f=c[d];return f;};return _enb(a,b);}class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x13e,0x131)]=void 0x0;this[q(0x133,0x14c)]=void 0x0;this['proposedValue']=void 0x0;this[q(0x122,0x117)]=![];this[q(0x13b,0x133)]=void 0x0;this['proposeCount']=0x0;this[q(0x12a,0x142)]=![];this[q(0x111,0x10f)]=void 0x0;this['previous']=void 0x0;function q(a,b){return _enb(a- -0x64,b);}this[q(0x11c,0x120)]=void 0x0;this[q(0x144,0x14e)]=MIN_SMI;this['needToBuildProposedValue']=![];this[q(0x141,0x153)]=0x0;this[q(0x135,0x14a)]=NOT_VISITED;this[q(0x14a,0x150)]=0x0;this['promise']=void 0x0;this[q(0x129,0x135)]=void 0x0;}static[_enr(0x4db,0x4f4)](c){const d=new this();c&&Object['assign'](d,c);return d;}get[_enr(0x506,0x520)](){function s(a,b){return _enr(b-0x29,a);}return this[s(0x548,0x52d)][s(0x531,0x52f)];}get[_enr(0x4e6,0x4f0)](){function t(a,b){return _enr(b- -0x532,a);}return this[t(-0x12,-0x2e)][t(-0x5a,-0x4c)];}get[_enr(0x4f6,0x4f9)](){function u(a,b){return _enr(a- -0x348,b);}return this['identifier'][u(0x1ae,0x1be)]||this[u(0x1bc,0x1a5)];}['forceCalculation'](){function v(a,b){return _enr(a- -0x1f5,b);}this[v(0x312,0x321)]=MAX_SMI;}[_enr(0x4f3,0x508)](){this['cleanupCalculation']();}[_enr(0x4fc,0x4e3)](){function w(a,b){return _enr(a- -0x6a1,b);}return Boolean(this[w(-0x1bf,-0x1a1)]&&this[w(-0x1bf,-0x1a2)]!==this);}[_enr(0x4eb,0x4f3)](c){this[x(0x458,0x449)]=c;this['visitedAt']=NOT_VISITED;if(this['edgesFlow']<0x0)this[x(0x44f,0x43f)]=0x0;this[x(0x438,0x443)]=![];this[x(0x43d,0x45b)]();function x(a,b){return _enr(a- -0xb8,b);}this[x(0x428,0x43d)]();this['promise']=void 0x0;if(this['origin']&&this['origin']===this){this[x(0x449,0x446)]=void 0x0;if(this[x(0x441,0x42a)]!==void 0x0){this['proposedValue']=this[x(0x441,0x451)];}this[x(0x441,0x426)]=void 0x0;}else{this[x(0x42a,0x420)]=void 0x0;this[x(0x441,0x440)]=void 0x0;}if(this[x(0x44c,0x467)][x(0x422,0x420)]&&this['proposedValue']!==TombStone){this['needToBuildProposedValue']=!![];this['proposedValue']=void 0x0;}}['copyFrom'](c){this[y(0x249,0x22e)]=c[y(0x249,0x256)];function y(a,b){return _enr(a- -0x2b0,b);}this[y(0x242,0x235)]=c['proposedValue'];this[y(0x251,0x25c)]=c[y(0x251,0x23e)];this['usedProposedOrPrevious']=c['usedProposedOrPrevious'];}[_enr(0x505,0x4ed)](){this[z(-0x235,-0x236)]=void 0x0;this['proposedValue']=void 0x0;this[z(-0x22d,-0x235)]=void 0x0;this[z(-0x257,-0x266)]=void 0x0;function z(a,b){return _enr(a- -0x72e,b);}this['proposeCount']=0x0;}['mergePreviousOrigin'](c){const d=this['origin'];if(d!==this['previous'])throw new Error(A(0x54d,0x531));this[A(0x524,0x541)](d);const e=this[A(0x523,0x517)]();for(const [f,g]of d[A(0x51a,0x517)]()){const h=e[A(0x515,0x50c)](f);if(!h){const i=c[A(0x508,0x50c)](f);if(!i||i['originId']===g[A(0x54f,0x53d)])e[A(0x4ff,0x511)](f,i||g);}}if(d[A(0x534,0x522)]!==void 0x0){const j=this[A(0x502,0x51a)]();for(const [k,l]of d[A(0x51a,0x51a)]()){const m=j[A(0x4fb,0x50c)](k);if(!m){const n=c[A(0x503,0x50c)](k);if(!n||n[A(0x54f,0x53d)]===l['originId'])j[A(0x522,0x511)](k,n||l);}}}this['origin']=this;function A(a,b){return _enr(b-0x33,a);}d[A(0x555,0x538)]();d['clear']();}['setOrigin'](c){this[B(0x265,0x24e)]=c;function B(a,b){return _enr(b- -0x294,a);}this[B(0x273,0x276)]=c[B(0x270,0x276)];}[_enr(0x508,0x4ef)](){if(this['origin'])return this[C(0x2b1,0x294)];function C(a,b){return _enr(a- -0x231,b);}return this['startOrigin']();}[_enr(0x4ec,0x4f3)](){function D(a,b){return _enr(a- -0x605,b);}this[D(-0xfb,-0xfe)]=ORIGIN_ID++;return this[D(-0x123,-0x124)]=this;}[_enr(0x4e4,0x4ff)](){return this;}[_enr(0x4e7,0x4de)](){function E(a,b){return _enr(a- -0x56f,b);}if(this[E(-0x80,-0x7a)]!==void 0x0)return this[E(-0x80,-0x82)];return this[E(-0x80,-0x67)]=new Map();}[_enr(0x4ea,0x4f0)](c,d){function F(a,b){return _enr(b- -0x255,a);}const e=d===EdgeType['Normal']?this:this[F(0x294,0x292)]();e[F(0x288,0x289)](c[F(0x2a2,0x2af)],c);}[_enr(0x4e0,0x4e1)](){this[G(-0x13d,-0x158)]();function G(a,b){return _enr(a- -0x635,b);}if(this[G(-0x146,-0x149)]!==void 0x0)this[G(-0x146,-0x163)]['clear']();}[_enr(0x502,0x509)](){function H(a,b){return _enr(b- -0x201,a);}const c=this[H(0x2d2,0x2e1)];return c===this?this[H(0x2fc,0x2f8)]:c?c['getValue']():void 0x0;}['setValue'](c){function I(a,b){return _enr(b- -0x41d,a);}if(this[I(0xa8,0xc5)]&&this['origin']!==this)throw new Error('Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry');this['getOrigin']()['value']=c;}[_enr(0x4dc,0x4ee)](){function J(a,b){return _enr(b- -0x13f,a);}return this[J(0x3c1,0x3c3)]()!==void 0x0;}['hasProposedValue'](){function K(a,b){return _enr(a-0x7d,b);}if(this[K(0x579,0x56b)]())return![];return this['hasProposedValueInner']();}[_enr(0x4f7,0x4ea)](){function L(a,b){return _enr(b- -0x667,a);}return this[L(-0x189,-0x175)]!==void 0x0;}[_enr(0x4e9,0x4e3)](c){function M(a,b){return _enr(a- -0x748,b);}if(this[M(-0x24b,-0x25e)]){this[M(-0x256,-0x254)]=this['identifier'][M(-0x23f,-0x22f)]['call'](this[M(-0x244,-0x22f)]['context']||this[M(-0x244,-0x25b)],this[M(-0x244,-0x24b)],this,c);this[M(-0x24b,-0x234)]=![];}return this[M(-0x256,-0x268)];}['outgoingInTheFutureHelper'](c,d,e){let f=this;function N(a,b){return _enr(b- -0x695,a);}while(f){for(const g of f[N(-0x1c6,-0x1b1)]()['values']()){const h=c(g[N(-0x196,-0x191)]);if(h&&g[N(-0x175,-0x18b)]===h[N(-0x1a3,-0x18b)])d(g);}if(e&&f[N(-0x1a5,-0x1a6)]!==void 0x0){for(const i of f[N(-0x1b2,-0x1a6)][N(-0x1a7,-0x1b4)]()){const j=c(i[N(-0x1a2,-0x191)]);if(j&&i[N(-0x18e,-0x18b)]===j[N(-0x178,-0x18b)])d(i);}}if(f[N(-0x197,-0x199)]())f=f[N(-0x1a4,-0x1a4)];else f=null;}}['outgoingInTheFutureCb'](c,d){function O(a,b){return _enr(a- -0x106,b);}this['outgoingInTheFutureHelper'](e=>c[O(0x3f9,0x3f4)](e),d,![]);}[_enr(0x4e3,0x4c7)](c,d){function P(a,b){return _enr(a- -0x624,b);}this[P(-0x12a,-0x13f)](e=>c[P(-0x125,-0x138)](e),d,!![]);}[_enr(0x4dd,0x4da)](c,d){function Q(a,b){return _enr(a- -0x255,b);}this['outgoingInTheFutureHelper'](e=>c[Q(0x2b6,0x2c7)](e),d,!![]);}['outgoingInTheFutureTransactionCb'](c,d){function R(a,b){return _enr(a- -0x5e2,b);}this['outgoingInTheFutureHelper'](e=>c[R(-0xe3,-0xe3)](e),d,![]);}}){}const TombStone=Symbol(_enr(0x4d6,0x4ca));export{EdgeType,Quark,TombStone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(a,b){function M(a,b){return _enb(b- -0x4,a);}const c=a();while(!![]){try{const d=-parseInt(M(0x126,0x11f))/0x1*(-parseInt(M(0x103,0x117))/0x2)+parseInt(M(0x10a,0x120))/0x3*(parseInt(M(0x107,0xfa))/0x4)+parseInt(M(0xbc,0xde))/0x5*(parseInt(M(0xcc,0xe7))/0x6)+parseInt(M(0xd0,0xdf))/0x7*(parseInt(M(0xc9,0xee))/0x8)+parseInt(M(0x10e,0xec))/0x9+parseInt(M(0xf2,0xe3))/0xa+parseInt(M(0x102,0xdc))/0xb*(-parseInt(M(0xea,0xf0))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x343ea));function _enN(a,b){return _enb(a- -0x32b,b);}import{CalendarCache}from'./CalendarCache.js';import{CalendarCacheInterval}from'./CalendarCacheInterval.js';import{IntervalCache}from'./IntervalCache.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/TimeZoneHelper.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xdc;let f=c[d];return f;};return _enb(a,b);}import{CalendarIntervalType,TreatInconsistentIntervals}from'../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../util/Constants.js';function _ena(){const W=['isRecurrent','includeWrappingRangeFrom','cacheStaticIntervals',',\x20recurrentEndDate:\x20','intervalCache','push','Recurrent\x20interval\x20inconsistency:\x20','unshift','Required\x20attribute\x20`unspecifiedTimeInterval`\x20is\x20missing','intervalUnspecifiedTimeIntervals','shift','recurrentEndDate','isStatic','get','13850zYGeOS','getAvailabilityStartSchedule','includeInterval','name','assign',',\x20recurrentStartDate:\x20','Throw','set','1rmSOtz','63OguCKD','startDate',',\x20caching\x20endDate:\x20','recurrentDatesTimeZone','compositeIntervalCode','cacheRecurrentInterval','endDate','map','721303RoWZPy','Week','2195RPXGiN','196wCYWDM','Skip','next','splice','1213930UpJdzw','project','toTimeZone','parentCache','2742sPjyAU','clear','addInterval','treatInconsistentIntervals','fromTimeZone','3763287QFywLO','pop','109192dDNkvo','format','204WCvidG','combineWith','Invalid\x20cache\x20fill\x20interval','every\x201\x20day','prev','calendar','copy','cls','intervalStore','getUnspecifiedTimeIntervalForException','37996puEcec','getTime','weekUnspecifiedTimeIntervalsByKey','timeZone','unspecifiedTimeInterval','getEndDateSchedule','text','parse','staticIntervalsCached','getStartDateSchedule','getPrioritySortValue','getStartOfNextDay','getAvailabilityEndSchedule','length','getUnspecifiedTimeIntervalForWeek'];_ena=function(){return W;};return _ena();}import _ene from'../vendor/later/later.js';const everySingleDaySchedule=_ene['schedule'](_ene[_enN(-0x226,-0x241)][_enN(-0x227,-0x249)](_enN(-0x234,-0x21d)));class CalendarCacheSingle extends CalendarCache{constructor(a){super(a);this[O(0x1bd,0x1a5)]=![];if(!this[O(0x197,0x1a1)])throw new Error(O(0x1a6,0x1b4));this['intervalUnspecifiedTimeIntervals']=new Map();function O(a,b){return _enN(b-0x3ca,a);}this[O(0x1ac,0x19f)]=new Map();this[O(0x184,0x18d)]=a?.[O(0x19b,0x18d)]||TreatInconsistentIntervals[O(0x176,0x183)];this[O(0x1c4,0x1b0)]=new IntervalCache({'emptyInterval':new CalendarCacheInterval({'intervals':[this[O(0x194,0x1a1)]],'calendar':this['calendar']}),'combineIntervalsFn':(b,c)=>{function P(a,b){return O(b,a-0x271);}return b[P(0x405,0x408)](c);}});}['fillCache'](a,b){if(!this[Q(0x339,0x35c)]){this['cacheStaticIntervals']();this[Q(0x339,0x31f)]=!![];}if(this[Q(0x31d,0x30b)])this[Q(0x341,0x334)](this[Q(0x31d,0x30f)],a,b);const c=this[Q(0x32c,0x329)]['ignoreTimeZone']?null:this[Q(0x32c,0x333)][Q(0x31b,0x301)]?.[Q(0x334,0x34b)];function Q(a,b){return _enN(a-0x55e,b);}if(a>b)throw new Error(Q(0x329,0x33c));for(const d of this[Q(0x32f,0x339)]){if(d[Q(0x340,0x323)]()){this[Q(0x310,0x323)](a,b,c,d);}}}[_enN(-0x24e,-0x241)](a,b,c,d){const e=d[R(-0x2f,-0x4c)];const f=d['endDate'];const g=d[R(-0x5f,-0x4a)];if(e&&e>=b||f&&f<=a)return;const h=d[R(-0x56,-0x55)]();const i=d[R(-0x79,-0x67)]();const j=d[R(-0x6c,-0x6a)]()||h&&everySingleDaySchedule;const k=d[R(-0x5c,-0x6e)]();function R(a,b){return _enN(b-0x1ba,a);}const l=!k||k==='EOD';let m=a;let n=b;let o=j[R(-0x67,-0x79)](0x2,a);let p;if(o){m=o[0x0];if(m[R(-0x85,-0x72)]()===a[R(-0x89,-0x72)]()&&o[0x1]){m=o[0x1];}}if(l){const t=j[R(-0xb2,-0x8c)](0x1,b);if(t){n=_enc[R(-0x61,-0x68)](t,!![]);}}else{p=k[R(-0x98,-0x8c)](0x2,b);if(p){n=p[0x0];if(n[R(-0x5f,-0x72)]()===b[R(-0x66,-0x72)]()&&p[0x1]){n=p[0x1];}}}let q=j[R(-0x91,-0x8c)](Infinity,m,new Date(n['getTime']()-0x3e8));if(!q?.[R(-0x63,-0x66)])return;let r=l?q[R(-0x87,-0x92)](u=>_enc[R(-0x7e,-0x68)](u,!![])):k[R(-0x77,-0x8c)](Infinity,m,n);if(!r?.[R(-0x7c,-0x66)])return;if(q[0x0][R(-0x98,-0x72)]()===r[0x0]['getTime']()){r[R(-0x76,-0x8b)](0x0,0x1);}while(e&&q[0x0]<e){if(r[0x0]>e){q[0x0]=e;}else{q['shift']();r[R(-0x56,-0x5a)]();}}while(f&&r[r[R(-0x75,-0x66)]-0x1]>f){if(q[r[R(-0x7c,-0x66)]-0x1]<f){r[r[R(-0x7f,-0x66)]-0x1]=f;}else{q[R(-0x78,-0x80)]();r[R(-0x9c,-0x80)]();}}const s=this[R(-0x96,-0x83)];for(let u=0x0,v=q[R(-0x55,-0x66)];u<v;u++){const w=q[u],x=r[u];if(!w||!x){break;}if(w>x){if(s===TreatInconsistentIntervals[R(-0x88,-0x8d)]){r[R(-0x7a,-0x8b)](u,0x1);}else if(s===TreatInconsistentIntervals[R(-0x30,-0x50)]){throw new Error(R(-0x84,-0x5e)+(d[R(-0x78,-0x53)]||d['id'])+',\x20caching\x20startDate:\x20'+_enc[R(-0x6a,-0x7e)](w)+R(-0x53,-0x4b)+_enc[R(-0x7e,-0x7e)](x)+R(-0x5a,-0x51)+d['recurrentStartDate']+R(-0x68,-0x61)+d[R(-0x59,-0x59)]);}}}if(r['length']>q[R(-0x43,-0x66)]){r[R(-0x46,-0x66)]=q['length'];}else if(r[R(-0x68,-0x66)]<q['length']){q[R(-0x53,-0x66)]=r['length'];}if(h){const y=[],z=[],A=this[R(-0x62,-0x74)](d,{'isWorking':![]});for(let B=0x0,C=q[R(-0x58,-0x66)];B<C;B++){const D=q[B],E=r[B];this[R(-0x42,-0x60)][R(-0x5f,-0x84)](D,E,H=>H[R(-0x67,-0x54)](A));let F=h[R(-0x77,-0x8c)](Infinity,D,E);if(!F)return;let G=i[R(-0x9f,-0x8c)](Infinity,new Date(D[R(-0x7a,-0x72)]()+0x3e8),E);if(!G)return;if(G[R(-0x75,-0x66)]>F[R(-0x6f,-0x66)]){G[R(-0x48,-0x66)]=F[R(-0x5d,-0x66)];}else if(G[R(-0x57,-0x66)]<F[R(-0x48,-0x66)]){F[R(-0x87,-0x66)]=G[R(-0x4a,-0x66)];}if(G[0x0]<F[0x0]){F[R(-0x56,-0x5d)](D);G[R(-0x7f,-0x5f)](E);}y[R(-0x4e,-0x5f)](...F);z[R(-0x4c,-0x5f)](...G);}q=y;r=z;}for(let H=0x0,I=q[R(-0x58,-0x66)];H<I;H++){let J=q[H];let K=r[H];if(g!=null){J=_end[R(-0xa0,-0x82)](J,g);K=_end[R(-0x65,-0x82)](K,g);}if(c!=null){J=_end[R(-0xa9,-0x88)](J,c);K=_end[R(-0xa5,-0x88)](K,c);}this['intervalCache']['addInterval'](J,K,L=>L[R(-0x36,-0x54)](d));}}[_enN(-0x22e,-0x20a)](a,b={}){function S(a,b){return _enN(a- -0x3b,b);}let c=this[S(-0x250,-0x231)]['get'](a);if(!c){c=this[S(-0x264,-0x269)][S(-0x26c,-0x28a)]();this['intervalUnspecifiedTimeIntervals'][S(-0x244,-0x21f)](a,c);Object[S(-0x247,-0x242)](c,{'mainInterval':a,'calendar':this[S(-0x264,-0x282)][S(-0x26d,-0x285)],'name':a[S(-0x248,-0x22e)],'cls':a[S(-0x26b,-0x27d)],'startDate':a['startDate'],'endDate':a[S(-0x288,-0x264)],'prioritySortValue':a[S(-0x25e,-0x257)]()-0x1,...b});}return c;}[_enN(-0x21f,-0x21b)](a){let b=this['intervalUnspecifiedTimeIntervals'][T(-0x144,-0x138)](a);function T(a,b){return _enN(b-0xd9,a);}if(!b){const c=a[T(-0x15b,-0x176)];b=this[T(-0x175,-0x152)][T(-0x152,-0x138)](c);if(!b){b=this['unspecifiedTimeInterval'][T(-0x17d,-0x158)]();this['intervalUnspecifiedTimeIntervals']['set'](a,b);this[T(-0x141,-0x152)][T(-0x127,-0x130)](c,b);Object[T(-0x116,-0x133)](b,{'mainInterval':a,'calendar':this['unspecifiedTimeInterval']['calendar'],'name':a[T(-0x13b,-0x134)],'cls':a[T(-0x133,-0x157)],'startDate':a[T(-0x10f,-0x12d)],'endDate':a[T(-0x192,-0x174)],'prioritySortValue':a[T(-0x143,-0x14a)]()-0x1});}}return b;}[_enN(-0x23f,-0x219)](){this[U(-0x1df,-0x1f2)]=![];function U(a,b){return _enN(b-0x33,a);}super[U(-0x223,-0x20c)]();}[_enN(-0x21c,-0x23e)](){function V(a,b){return _enN(b-0x663,a);}const a=this[V(0x44f,0x431)][V(0x401,0x420)]?.[V(0x447,0x439)];const b=this[V(0x45f,0x449)];for(let c of this['intervalStore']){const d=c[V(0x43e,0x451)]();const e=c['type']===CalendarIntervalType[V(0x429,0x419)];if(d||e){if(e){c=this[V(0x444,0x444)](c);}let {startDate:f,endDate:g}=c;if(a!=null){if(f){f=_end[V(0x414,0x421)](f,a);}if(g){g=_end['toTimeZone'](g,a);}}b[V(0x42d,0x425)](f||MIN_DATE,g||MAX_DATE,h=>h['includeInterval'](c));}}}}export{CalendarCacheSingle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){function f(a,b){return _enb(b- -0x213,a);}const c=a();while(!![]){try{const d=parseInt(f(-0x63,-0x53))/0x1+-parseInt(f(-0x57,-0x48))/0x2+parseInt(f(-0x46,-0x56))/0x3*(parseInt(f(-0x67,-0x5b))/0x4)+parseInt(f(-0x62,-0x60))/0x5*(parseInt(f(-0x65,-0x58))/0x6)+parseInt(f(-0x4b,-0x4f))/0x7+-parseInt(f(-0x5e,-0x57))/0x8*(-parseInt(f(-0x65,-0x55))/0x9)+parseInt(f(-0x67,-0x5e))/0xa*(-parseInt(f(-0x50,-0x52))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3071e));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Direction}from'../../../scheduling/Types.js';import{ConstrainedByDependenciesEventScheduleMixin}from'../scheduler_pro/ConstrainedByDependenciesEventScheduleMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b3;let f=c[d];return f;};return _enb(a,b);}class ConstrainedLateScheduleMixin extends Mixin([ConstrainedByDependenciesEventScheduleMixin],a=>{function g(a,b){return _enb(a- -0x29,b);}class b extends a{[g(0x191,0x193)](c){function h(a,b){return g(a-0x2f9,b);}if(this[h(0x489,0x498)]===h(0x49a,0x49f)){return this[h(0x493,0x48d)]===Direction[h(0x498,0x488)]?c[h(0x49d,0x494)]:c['latePreSchedule'];}else{return this[h(0x493,0x48b)]===Direction[h(0x498,0x499)]?c[h(0x49f,0x4a6)]:c[h(0x499,0x48d)];}}['pickOpposite'](c){function i(a,b){return g(b-0x235,a);}if(this[i(0x3d4,0x3c5)]===i(0x3cc,0x3d6)){return this[i(0x3d1,0x3cf)]===Direction[i(0x3e4,0x3d4)]?c['latePreSchedule']:c[i(0x3d0,0x3d9)];}else{return this['direction']===Direction[i(0x3df,0x3d4)]?c[i(0x3da,0x3d5)]:c[i(0x3e8,0x3db)];}}*[g(0x1a8,0x1a4)](c,d){function j(a,b){return g(a-0x9c,b);}if(this['phase']==='phase1'){return this['pick'](c);}else{const e=yield this[j(0x241,0x248)]['$'][j(0x23f,0x24a)];if(this[j(0x236,0x23d)]===Direction[j(0x23b,0x22c)]){if(d[j(0x236,0x231)]===Direction[j(0x22a,0x234)]&&e[j(0x227,0x21a)]===j(0x243,0x23d)&&e[j(0x236,0x238)]===Direction[j(0x23b,0x237)]){return c[j(0x239,0x245)];}return c[j(0x242,0x23e)];}else{if(d[j(0x236,0x245)]===Direction[j(0x23b,0x23a)]&&e[j(0x227,0x237)]===j(0x243,0x23f)&&e[j(0x236,0x240)]===Direction[j(0x22a,0x235)]){return c[j(0x240,0x237)];}return c[j(0x23c,0x230)];}}}*[g(0x199,0x19d)](c){function k(a,b){return g(b-0x3da,a);}return(yield*this[k(0x577,0x582)](c,yield c['$'][k(0x563,0x567)]))['$']['startDate'];}*[g(0x19e,0x1a4)](c){function l(a,b){return g(b-0xd9,a);}return(yield*this[l(0x27b,0x281)](c,yield c['$'][l(0x26e,0x275)]))['$'][l(0x260,0x26f)];}}return b;}){}function _ena(){const m=['1285rPEzIv','kind','6961810rIspdF','startDateDirection','Backward','636YjWbRm','phase','pick','9138DZMxuY','403384ISSZes','7401lyGEMO','9MdUuPS','endDate','9428PezteC','11gjUNXj','pickPushingStartDateIdentifier','direction','1729441Asbwcx','endDateDirection','latePreSchedule','pickPushingEndDateIdentifier','Forward','lateSchedule','phase1','391934pzzniP','effectiveDirection','earlyPreSchedule','event','earlySchedule','inherited','pickPushingSchedule'];_ena=function(){return m;};return _ena();}export{ConstrainedLateScheduleMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _ena(){const S=['shouldRollupChildEarlyStartDate','maybeSkipNonWorkingTime','calculateMinChildrenStartDate','onNonEmptyEffectiveInterval','Start','getTime','End','startDateConstraintIntervals','20crKBPm','1141657UcJxlX','autoScheduleManualTasksOnSecondPass','resolved','endDate','constraintType','pick','concat','calculateLateStartDateConstraintIntervals','shouldRollupChildLateStartDate','calculateEndDate','minChildrenStartDate','removeField','decorate','end','defineProperty','value','isDateConstraintInterval','project','direction','changeDateConstraintIntervalOnConflict','add','84wwrzfn','event','shouldRollupChildEarlyEndDate','return','function','startDateIsFinite','doCalculateEffectiveEndDateInterval','isIntervalEmpty','kind','phase1','40HAltge','doCalculateEffectiveStartDateInterval','onEmptyEffectiveInterval','effectiveDirection','object','1688wyWWqX','start','isInfinite','endDateIsFinite','calculateStartDate','endDateConstraintIntervals','isManuallyScheduled','setupFields','shouldRollupChildEndDate','14670PfsUNN','3BNkBOU','FinishNoLaterThan','map','copyWith','side','isConstrained','33266PSgSqA','maxChildrenEndDate','783965PGYRql','skipNonWorkingTime','3679962kgnoWK','calculateEndDateConstraintIntervals','shouldSkipNonWorkingTime','calculateMaxChildrenEndDate','prototype','intersectionOf','409056tuzBDX','hasSubEvents','StartNoLaterThan','length','Forward','calculateStartDateConstraintIntervals','shouldRollupChildStartDate','Implement\x20me','containsDate','getOwnPropertyDescriptor','startDate','7076404yZFmZm','1NYtxyc','filter','new','calculateEffectiveConstraintInterval','date','getProject','orderedParentIndex','isDependencyConstraintInterval','FinishNoEarlierThan','StartNoEarlierThan','calculateProjectedXDateWithDuration','calculateLateEndDateConstraintIntervals','earlyPreSchedule','subEventsIterable'];_ena=function(){return S;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x118;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function p(a,b){return _enb(a-0x2ab,b);}const c=a();while(!![]){try{const d=parseInt(p(0x3fd,0x3fe))/0x1*(-parseInt(p(0x3e7,0x409))/0x2)+-parseInt(p(0x3e1,0x3e6))/0x3*(-parseInt(p(0x3fc,0x3e3))/0x4)+parseInt(p(0x3d2,0x3ad))/0x5*(parseInt(p(0x3f1,0x3d6))/0x6)+parseInt(p(0x3e9,0x3df))/0x7+-parseInt(p(0x3d7,0x3be))/0x8*(-parseInt(p(0x3e0,0x401))/0x9)+parseInt(p(0x413,0x3e9))/0xa*(parseInt(p(0x414,0x43c))/0xb)+-parseInt(p(0x3c8,0x3a3))/0xc*(parseInt(p(0x3eb,0x400))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xef391));var __decorate=function(a,b,e,f){function q(a,b){return _enb(a-0x2a,b);}var g=arguments[q(0x173,0x170)],h=g<0x3?b:f===null?f=Object[q(0x179,0x154)](b,e):f,j;if(typeof Reflect===q(0x155,0x14c)&&typeof Reflect[q(0x19f,0x1c7)]===q(0x14b,0x13f))h=Reflect[q(0x19f,0x1ad)](a,b,e,f);else for(var k=a[q(0x173,0x198)]-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[q(0x1a1,0x1a4)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';function _enr(a,b){return _enb(b- -0x2dc,a);}import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{EdgeInclusion}from'../../../util/Types.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';const isForwardInterval=a=>a['startDateIsFinite'](),isBackwardInterval=a=>a[_enr(-0x1a8,-0x1ad)](),isInflexibleInterval=a=>{function s(a,b){return _enr(a,b-0x246);}return a[s(0xb8,0x8c)]()&&a[s(0x8a,0x99)]()&&a['startDate'][s(0xf2,0xcf)]()===a[s(0xf1,0xd6)]['getTime']();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){if(c[t(-0x88,-0x90)]())return c;function t(a,b){return _enr(b,a-0x130);}if(e&&c[t(-0x67,-0x3a)]){const i=new Set();for(const j of c[t(-0x67,-0x76)]){if(j['isInfinite']()){i[t(-0x90,-0x81)](j);}else{const k=j[t(-0x8a,-0xba)]()?yield*a['calculateProjectedXDateWithDuration'](j['startDate'],![],d):j[t(-0x5c,-0x6b)];const l=j[t(-0x7d,-0x50)]()?yield*a[t(-0x50,-0x5f)](j[t(-0x40,-0x60)],![],d):j[t(-0x40,-0x30)];const m=j;i[t(-0x90,-0x86)](m[t(-0x73,-0x72)]({'reflectionOf':m,'side':m[t(-0x72,-0x54)]===ConstraintIntervalSide[t(-0x48,-0x42)]?ConstraintIntervalSide[t(-0x46,-0x3b)]:ConstraintIntervalSide[t(-0x48,-0x34)],'startDate':k,'endDate':l}));}}c[t(-0x67,-0x41)]=i;}const g=c[t(-0x8a,-0xaa)]()?yield*f(c[t(-0x5c,-0x39)]):null;const h=c['endDateIsFinite']()?yield*f(c['endDate']):null;return intersectIntervals([b,ConstraintInterval[t(-0x58,-0x5c)]({'intersectionOf':c[t(-0x67,-0x81)],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){if(b['isIntervalEmpty']())return b;if(e&&b[u(0x3a9,0x3a0)]){const i=new Set();for(const j of b[u(0x3a9,0x37e)]){if(j[u(0x392,0x3b3)]()){i['add'](j);}else{const k=j['startDateIsFinite']()?yield*a[u(0x3c0,0x395)](j[u(0x3b4,0x3bc)],!![],d):j['startDate'];const l=j[u(0x393,0x3b8)]()?yield*a[u(0x3c0,0x3db)](j[u(0x3d0,0x3be)],!![],d):j[u(0x3d0,0x3d5)];const m=j;i[u(0x380,0x38e)](m[u(0x39d,0x38a)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide['Start']?ConstraintIntervalSide['End']:ConstraintIntervalSide[u(0x3c8,0x3b0)],'startDate':k,'endDate':l}));}}b[u(0x3a9,0x3d8)]=i;}const g=b[u(0x386,0x3af)]()?yield*f(b[u(0x3b4,0x3b7)]):null;function u(a,b){return _enr(b,a-0x540);}const h=b[u(0x393,0x378)]()?yield*f(b[u(0x3d0,0x3fc)]):null;return intersectIntervals([c,ConstraintInterval[u(0x3b8,0x3e8)]({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b[u(0x3a9,0x3b5)]:void 0x0,'startDate':g,'endDate':h})],e);};class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{function w(a,b){return _enr(a,b-0x46f);}class b extends a{constructor(){super(...arguments);this[v(0x4c,0x22)]=void 0x0;function v(a,b){return _enb(a- -0xce,b);}this['phase']=v(0x58,0x57);this[v(0x50,0x67)]=void 0x0;}get[w(0x297,0x2ac)](){function x(a,b){return w(a,b-0x106);}return this['event']?.[x(0x3b6,0x3b2)];}[w(0x306,0x301)](c){throw new Error('Implement\x20me');}*['calculateStartDate'](){function y(a,b){return w(b,a- -0x54d);}throw new Error(y(-0x26d,-0x28f));}*['calculateEndDate'](){throw new Error('Implement\x20me');}static[w(0x2c0,0x2c6)](c,d){function z(a,b){return w(a,b- -0x43e);}super[z(-0x162,-0x178)](c,d);this[z(-0x108,-0x137)]('parentIndex');this[z(-0x12c,-0x137)](z(-0x165,-0x153));this[z(-0x109,-0x137)]('parentId');this[z(-0x127,-0x137)]('expanded');this[z(-0x129,-0x137)]('readOnly');}}__decorate([model_field({'type':w(0x2e4,0x2e9),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[w(0x2f2,0x2d7)],w(0x2bb,0x2e3),void 0x0);__decorate([model_field({'type':w(0x2dc,0x2e9),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[w(0x2a6,0x2d7)],w(0x2d3,0x2ff),void 0x0);__decorate([calculate(w(0x307,0x2e3))],b[w(0x2b1,0x2d7)],'calculateStartDate',null);__decorate([calculate(w(0x302,0x2ff))],b[w(0x2d5,0x2d7)],w(0x321,0x305),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){super(...arguments);this[A(0x496,0x4bf)]=Direction[A(0x4c6,0x4d8)];function A(a,b){return _enb(a-0x37c,b);}this[A(0x49a,0x472)]=void 0x0;}[B(-0x47,-0x64)](c){function C(a,b){return B(a,b-0x3ef);}return c[C(0x37a,0x37b)];}*['maybeSkipNonWorkingTime'](c,d=!![],e=null){if(yield*this[D(0x1db,0x1c1)]['hasSubEvents']())return c;let f=c;if(c&&(yield*this[D(0x1aa,0x1c1)][D(0x1f9,0x1e5)]())){f=yield*this[D(0x1e6,0x1c1)][D(0x20f,0x1e2)](c,d);if(f&&e&&!e[D(0x219,0x1f1)](f,EdgeInclusion['LeftAndRight'])){f=c;}}function D(a,b){return B(a,b-0x275);}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function E(a,b){return B(b,a-0x4ed);}if(f&&g===e){if(this[E(0x435,0x45d)]===Direction[E(0x465,0x445)]){if(d==='start'&&g['constraintType']===ConstraintType[E(0x463,0x48c)]){return c['copyWith']({'startDate':c[E(0x487,0x4a8)],'endDate':null});}if(d===E(0x491,0x4a7)&&g['constraintType']===ConstraintType[E(0x452,0x450)]){return c[E(0x454,0x47a)]({'startDate':c[E(0x487,0x46d)],'endDate':null});}}else{if(d===E(0x448,0x465)&&g[E(0x488,0x4ae)]===ConstraintType[E(0x476,0x44c)]){return c[E(0x454,0x432)]({'startDate':null,'endDate':c[E(0x46b,0x458)]});}if(d===E(0x491,0x4a1)&&g['constraintType']===ConstraintType[E(0x475,0x446)]){return c[E(0x454,0x42e)]({'startDate':null,'endDate':c['startDate']});}}}return c;}*['calculateEffectiveConstraintInterval'](c,d,e,f=![],g=![]){function F(a,b){return B(a,b-0x212);}const {event:h}=this;const i=yield*h['getDateShifter'](c?![]:!![]);if(i==null){return null;}const j=f?yield*h['calculateEffectiveDuration']():0x0;if(j==null){return null;}if(g){if(this[F(0x15b,0x159)]['bwcConflictPostpone']){if(yield*this['isFirstPass']()){d=d[F(0x163,0x193)](m=>!m[F(0x16e,0x199)])[F(0x18d,0x178)](m=>this[F(0x151,0x15b)](m,F(0x194,0x16d),h));e=e[F(0x18a,0x193)](m=>!m[F(0x18b,0x199)])['map'](m=>this[F(0x160,0x15b)](m,F(0x1b9,0x1b6),h));}else{d=d[F(0x19a,0x193)](m=>!m['isDateConstraintInterval']);e=e[F(0x1a5,0x193)](m=>!m[F(0x138,0x158)]);}}else{const m=this['direction']===Direction[F(0x1a6,0x18a)]?isForwardInterval:isBackwardInterval,n=d[F(0x1b4,0x193)](isInflexibleInterval);d=n[F(0x15c,0x189)]?n:d[F(0x190,0x193)](m);const o=e['filter'](isInflexibleInterval);e=o[F(0x16b,0x189)]?o:e['filter'](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*['calculateStartDateConstraintIntervals'](){function G(a,b){return B(b,a-0x79);}return this[G(-0x3f,-0x30)]===Direction['Forward']?yield*this['event']['calculateEarlyStartDateConstraintIntervals']():yield*this['event'][G(0x17,0x13)]();}*[B(-0x7f,-0x91)](){function H(a,b){return B(b,a- -0x1d7);}return this[H(-0x28f,-0x288)]===Direction[H(-0x25f,-0x281)]?yield*this[H(-0x28b,-0x28d)]['calculateEarlyEndDateConstraintIntervals']():yield*this[H(-0x28b,-0x264)][H(-0x24c,-0x24b)]();}*[B(-0xb7,-0xaa)](c=![],d=![]){const e=yield this['$'][I(-0xe9,-0xe7)];const f=yield this['$']['endDateConstraintIntervals'];function I(a,b){return B(b,a- -0x7e);}return yield*this['calculateEffectiveConstraintInterval'](!![],e[I(-0xe1,-0xb2)](yield this[I(-0x132,-0x105)]['$'][I(-0xe9,-0xcd)]),f['concat'](yield this['event']['$'][I(-0x11f,-0x120)]),c,d);}*[B(-0xdb,-0xaf)](c=![],d=![]){function J(a,b){return B(b,a-0x199);}const e=yield this['$'][J(0x12e,0x104)];const f=yield this['$'][J(0xf8,0xf2)];return yield*this[J(0x11c,0x104)](![],e[J(0x136,0x11c)](yield this[J(0xe5,0xd1)]['$'][J(0x12e,0x151)]),f[J(0x136,0x148)](yield this[J(0xe5,0xd3)]['$'][J(0xf8,0xe0)]),c,d);}*[B(-0x56,-0x86)](c){function K(a,b){return B(b,a-0x575);}return this['direction']===Direction[K(0x4ed,0x4ea)]?yield*this[K(0x4c1,0x4bd)][K(0x503,0x4fb)](c):yield*this[K(0x4c1,0x4f2)][K(0x514,0x4f5)](c);}*[B(-0x51,-0x70)](){let c=MAX_DATE;const d=yield*this[L(0x21c,0x22f)]['subEventsIterable']();function L(a,b){return B(a,b-0x2e3);}for(const e of d){if(!(yield*this[L(0x278,0x25d)](e)))continue;let f;if((yield*e[L(0x26b,0x243)]())&&(yield*e[L(0x26a,0x258)]())){f=yield this[L(0x257,0x27f)](e)['$'][L(0x29a,0x284)];}f=f||(yield this[L(0x277,0x27f)](e)['$'][L(0x254,0x261)]);if(f&&f<c)c=f;}return c[L(0x2a1,0x276)]()-MAX_DATE[L(0x265,0x276)]()?c:null;}*[B(-0xc0,-0x9e)](c){function M(a,b){return B(a,b-0x3ca);}return this[M(0x33f,0x312)]===Direction[M(0x328,0x342)]?yield*this[M(0x32b,0x316)][M(0x331,0x317)](c):yield*this['event']['shouldRollupChildLateEndDate'](c);}*[B(-0xab,-0x8f)](){let c=MIN_DATE;const d=yield*this[N(0x4ce,0x4db)][N(0x50f,0x52a)]();for(const e of d){if(!(yield*this[N(0x4e4,0x4bc)](e)))continue;let f;if((yield*e[N(0x4e2,0x4b5)]())&&(yield*e[N(0x4f7,0x4f6)]())){f=yield this['pick'](e)['$'][N(0x4ed,0x4c7)];}f=f||(yield this[N(0x51e,0x52c)](e)['$']['endDate']);if(f&&f>c)c=f;}function N(a,b){return B(b,a-0x582);}return c[N(0x515,0x509)]()-MIN_DATE[N(0x515,0x4f7)]()?c:null;}*['calculateStartDate'](){function O(a,b){return B(a,b-0x177);}let c;let d;if((yield*this['event']['isManuallyScheduled']())&&(!(yield this[O(0xd2,0xbe)]['$']['autoScheduleManualTasksOnSecondPass'])||(yield this[O(0xb1,0xc3)]['$'][O(0xc3,0xcf)])[O(0xe0,0xbf)]===this[O(0xb5,0xbf)])){c=yield this[O(0xb6,0xc3)]['$'][O(0xd3,0xf5)];}else if(yield*this[O(0xae,0xc3)][O(0x11b,0xec)]()){c=yield this['$'][O(0xf2,0x118)];}else if(!(yield*this[O(0xf0,0xe0)]())){c=yield this[O(0xea,0xc3)]['$'][O(0x124,0xf5)];}else{d=yield*this[O(0xe0,0xcd)]();if(d===null){return null;}else if(d[O(0xd5,0xc9)]()){const e=yield*this[O(0xaf,0xc3)][O(0xf4,0xce)](O(0xbb,0xd2),this);if(e['kind']===O(0xde,0xc5)){return e[O(0xf7,0x11d)];}else if(e[O(0xb0,0xca)]===O(0x138,0x110)){d=e[O(0x13c,0x11d)];}}else{yield*this['event'][O(0x100,0x108)]('start',this);}c=this[O(0xef,0xbf)]===Direction['Forward']?isDateFinite(d['startDate'])?d[O(0xe9,0xf5)]:null:isDateFinite(d['endDate'])?d['endDate']:null;}return yield*this[O(0x132,0x106)](c,!![],d);}*['calculateEndDate'](){let c;let d;function P(a,b){return B(a,b-0x3d);}if((yield*this[P(-0x9f,-0x77)]['isManuallyScheduled']())&&(!(yield this[P(-0x5e,-0x7c)]['$'][P(-0x45,-0x2b)])||(yield this[P(-0x6a,-0x77)]['$']['effectiveDirection'])[P(-0x75,-0x7b)]===this[P(-0x83,-0x7b)])){c=yield this[P(-0xa6,-0x77)]['$'][P(-0x4c,-0x29)];}else if(yield*this[P(-0x8f,-0x77)][P(-0x39,-0x4e)]()){c=yield this['$'][P(-0x2a,-0x58)];}else if(!(yield*this[P(-0x35,-0x5a)]())){c=yield this[P(-0x50,-0x77)]['$'][P(-0x45,-0x29)];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[P(-0x94,-0x71)]()){const e=yield*this['event']['onEmptyEffectiveInterval'](P(0x1,-0x1f),this);if(e[P(-0x41,-0x70)]==='return'){return e[P(-0x3b,-0x1d)];}else if(e['kind']===P(-0x14,-0x2a)){d=e[P(-0x49,-0x1d)];}}else{yield*this[P(-0x96,-0x77)][P(-0x13,-0x32)](P(-0x48,-0x1f),this);}c=this['direction']===Direction['Forward']?isDateFinite(d['startDate'])?d[P(-0x46,-0x45)]:null:isDateFinite(d[P(0x7,-0x29)])?d[P(-0xb,-0x29)]:null;}return yield*this[P(-0x50,-0x34)](c,![],d);}*[B(-0x69,-0x97)](){const c=yield this[Q(0x9a,0x98)]['$'][Q(0x102,0xe1)];const d=yield this[Q(0xb3,0x98)]['$'][Q(0x9c,0xab)];function Q(a,b){return B(a,b-0x14c);}const e=yield this['$'][Q(0xf7,0xe1)];const f=yield this['$'][Q(0xd9,0xab)];return e?.[Q(0xc4,0xc3)]>0x0||f?.[Q(0xaa,0xc3)]>0x0||c?.[Q(0xce,0xc3)]>0x0||d?.[Q(0xd5,0xc3)]>0x0;}*['isFirstPass'](){const c=yield this[R(0x3a7,0x389)]()['$'][R(0x337,0x35c)];function R(a,b){return B(a,b-0x404);}return c['direction']===this[R(0x35a,0x34c)];}}__decorate([field({'lazy':!![]})],b[B(-0xbb,-0x8e)],B(-0x31,-0x5f),void 0x0);__decorate([field({'lazy':!![]})],b[B(-0x7c,-0x8e)],B(-0xa7,-0x95),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[B(-0x8c,-0x8e)],B(-0x74,-0x6b),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[B(-0x6e,-0x8e)],'endDateConstraintIntervals',void 0x0);__decorate([calculate(B(-0x77,-0x6b))],b[B(-0x81,-0x8e)],B(-0x76,-0x87),null);function B(a,b){return _enr(a,b-0x10a);}__decorate([calculate(B(-0xcb,-0xa1))],b[B(-0xb8,-0x8e)],B(-0x89,-0x91),null);__decorate([calculate(B(-0x3c,-0x5f))],b[B(-0x82,-0x8e)],B(-0x4a,-0x70),null);__decorate([calculate(B(-0xaf,-0x95))],b[B(-0x87,-0x8e)],B(-0x91,-0x8f),null);__decorate([calculate('startDate')],b[B(-0x7a,-0x8e)],B(-0xa1,-0xa2),null);__decorate([calculate(B(-0x62,-0x66))],b[B(-0xb4,-0x8e)],B(-0x80,-0x60),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};
|
|
1
|
+
(function(a,b){const c=a();function p(a,b){return _enb(b-0xb9,a);}while(!![]){try{const d=parseInt(p(0x21f,0x230))/0x1*(parseInt(p(0x1de,0x1fa))/0x2)+-parseInt(p(0x22b,0x22f))/0x3+-parseInt(p(0x201,0x1fe))/0x4*(-parseInt(p(0x1c9,0x1da))/0x5)+parseInt(p(0x240,0x216))/0x6+-parseInt(p(0x1c9,0x1d9))/0x7*(parseInt(p(0x240,0x219))/0x8)+-parseInt(p(0x203,0x1ed))/0x9+parseInt(p(0x1b9,0x1de))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6f3f0));var __decorate=function(a,b,e,f){function q(a,b){return _enb(b-0x282,a);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[q(0x3cb,0x3ad)](b,e):f,j;if(typeof Reflect===q(0x3d8,0x3eb)&&typeof Reflect[q(0x3dd,0x3c1)]==='function')h=Reflect[q(0x3d8,0x3c1)](a,b,e,f);else for(var k=a[q(0x3c7,0x3c2)]-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;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{intersectIntervals}from'../../../scheduling/DateInterval.js';function _ena(){const T=['getTime','startDateIsFinite','shouldRollupChildStartDate','add','shouldRollupChildEarlyStartDate','isIntervalEmpty','calculateLateEndDateConstraintIntervals','2060082rdnuhr','isInfinite','calculateStartDateConstraintIntervals','StartNoEarlierThan','calculateLateStartDateConstraintIntervals','shouldRollupChildEndDate','endDateIsFinite','parentId','FinishNoLaterThan','kind','orderedParentIndex','decorate','length','27786VUoRvT','onEmptyEffectiveInterval','side','return','12nKUPMX','maxChildrenEndDate','containsDate','FinishNoEarlierThan','prototype','onNonEmptyEffectiveInterval','copyWith','bwcConflictPostpone','hasSubEvents','intersectionOf','phase','calculateMaxChildrenEndDate','calculateEndDateConstraintIntervals','resolved','pick','concat','doCalculateEffectiveStartDateInterval','calculateEffectiveDuration','isManuallyScheduled','skipNonWorkingTime','calculateEndDate','value','project','filter','4630662JBxljr','subEventsIterable','earlyPreSchedule','2648niMQKz','isConstrained','start','minChildrenStartDate','isDependencyConstraintInterval','StartNoLaterThan','startDate','getProject','changeDateConstraintIntervalOnConflict','object','end','maybeSkipNonWorkingTime','startDateConstraintIntervals','Forward','direction','event','removeField','shouldRollupChildEarlyEndDate','constraintType','Implement\x20me','calculateStartDate','endDateConstraintIntervals','1812672KsnmEf','16DmuQkb','isFirstPass','End','phase1','doCalculateEffectiveEndDateInterval','autoScheduleManualTasksOnSecondPass','calculateMinChildrenStartDate','parentIndex','setupFields','15022ZxFZKq','321260lnzWKx','calculateProjectedXDateWithDuration','shouldRollupChildLateEndDate','isDateConstraintInterval','8122910fwnMox','Start','calculateEarlyEndDateConstraintIntervals','effectiveDirection','calculateEffectiveConstraintInterval','endDate','getOwnPropertyDescriptor','map'];_ena=function(){return T;};return _ena();}import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{EdgeInclusion}from'../../../util/Types.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x11d;let f=c[d];return f;};return _enb(a,b);}const isForwardInterval=a=>a['startDateIsFinite'](),isBackwardInterval=a=>a['endDateIsFinite'](),isInflexibleInterval=a=>{function r(a,b){return _enb(b- -0x199,a);}return a[r(-0x3c,-0x6b)]()&&a[r(-0x3c,-0x5f)]()&&a[r(-0x46,-0x33)][r(-0x4e,-0x6c)]()===a['endDate']['getTime']();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){function s(a,b){return _enb(a-0x43,b);}if(c[s(0x175,0x15a)]())return c;if(e&&c[s(0x191,0x1bc)]){const i=new Set();for(const j of c['intersectionOf']){if(j['isInfinite']()){i[s(0x173,0x162)](j);}else{const k=j[s(0x171,0x18c)]()?yield*a[s(0x165,0x146)](j[s(0x1a9,0x1bb)],![],d):j['startDate'];const l=j['endDateIsFinite']()?yield*a[s(0x165,0x13f)](j['endDate'],![],d):j['endDate'];const m=j;i[s(0x173,0x147)](m[s(0x18e,0x19e)]({'reflectionOf':m,'side':m[s(0x186,0x17a)]===ConstraintIntervalSide[s(0x169,0x144)]?ConstraintIntervalSide[s(0x1bc,0x1aa)]:ConstraintIntervalSide['Start'],'startDate':k,'endDate':l}));}}c[s(0x191,0x18f)]=i;}const g=c[s(0x171,0x16a)]()?yield*f(c['startDate']):null;const h=c[s(0x17d,0x168)]()?yield*f(c[s(0x16d,0x187)]):null;return intersectIntervals([b,ConstraintInterval['new']({'intersectionOf':c['intersectionOf'],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){if(b[t(0x26,0x18)]())return b;if(e&&b[t(0x42,0x6a)]){const i=new Set();for(const j of b[t(0x42,0x17)]){if(j[t(0x29,0x11)]()){i[t(0x24,0x16)](j);}else{const k=j['startDateIsFinite']()?yield*a['calculateProjectedXDateWithDuration'](j[t(0x5a,0x7b)],!![],d):j[t(0x5a,0x45)];const l=j[t(0x2e,0x5a)]()?yield*a[t(0x16,0x11)](j[t(0x1e,-0x2)],!![],d):j['endDate'];const m=j;i['add'](m[t(0x3f,0x40)]({'reflectionOf':m,'side':m[t(0x37,0x30)]===ConstraintIntervalSide[t(0x1a,0x31)]?ConstraintIntervalSide[t(0x6d,0x75)]:ConstraintIntervalSide[t(0x1a,-0xe)],'startDate':k,'endDate':l}));}}b[t(0x42,0x37)]=i;}const g=b[t(0x22,0x18)]()?yield*f(b[t(0x5a,0x6b)]):null;const h=b[t(0x2e,0x51)]()?yield*f(b['endDate']):null;function t(a,b){return _enb(a- -0x10c,b);}return intersectIntervals([c,ConstraintInterval['new']({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b['intersectionOf']:void 0x0,'startDate':g,'endDate':h})],e);};class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{class b extends a{constructor(){function u(a,b){return _enb(a-0xf8,b);}super(...arguments);this['direction']=void 0x0;this[u(0x247,0x251)]=u(0x272,0x26a);this[u(0x267,0x261)]=void 0x0;}get[v(0xbc,0xde)](){function w(a,b){return v(b,a- -0x8f);}return this[w(0x63,0x49)]?.[w(0x4f,0x26)];}[v(0xc3,0xd6)](c){function x(a,b){return v(b,a-0x1f8);}throw new Error(x(0x2ee,0x2c9));}*['calculateStartDate'](){function y(a,b){return v(b,a- -0x263);}throw new Error(y(-0x16d,-0x15d));}*['calculateEndDate'](){function z(a,b){return v(a,b- -0x288);}throw new Error(z(-0x16c,-0x192));}static[v(0x99,0xa2)](c,d){super[A(0xdd,0xd7)](c,d);this[A(0x13a,0x128)](A(0xe4,0xd6));this['removeField'](A(0xcb,0xf6));function A(a,b){return v(a,b-0x35);}this[A(0x120,0x128)](A(0x11b,0xf3));this['removeField']('expanded');this[A(0x11d,0x128)]('readOnly');}}function v(a,b){return _enb(b- -0x7d,a);}__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[v(0xbc,0xcc)],v(0x112,0xe9),void 0x0);__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b['prototype'],v(0x86,0xad),void 0x0);__decorate([calculate(v(0x103,0xe9))],b[v(0xd9,0xcc)],v(0xd6,0xf7),null);__decorate([calculate(v(0xaa,0xad))],b[v(0x9c,0xcc)],v(0xf7,0xdc),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){function B(a,b){return _enb(b- -0x29a,a);}super(...arguments);this[B(-0x159,-0x12c)]=Direction[B(-0x106,-0x12d)];this[B(-0x125,-0x12b)]=void 0x0;}[C(0x358,0x36c)](c){function D(a,b){return C(b- -0x126,a);}return c[D(0x218,0x23e)];}*[C(0x370,0x378)](c,d=!![],e=null){if(yield*this[E(0x446,0x46f)][E(0x461,0x44d)]())return c;let f=c;function E(a,b){return C(b-0xfb,a);}if(c&&(yield*this[E(0x474,0x46f)]['shouldSkipNonWorkingTime']())){f=yield*this['event'][E(0x437,0x458)](c,d);if(f&&e&&!e[E(0x470,0x447)](f,EdgeInclusion['LeftAndRight'])){f=c;}}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function F(a,b){return C(a-0x89,b);}if(f&&g===e){if(this['direction']===Direction[F(0x3fb,0x3f0)]){if(d===F(0x3f0,0x3f9)&&g[F(0x400,0x3d1)]===ConstraintType[F(0x3f3,0x41b)]){return c[F(0x3d9,0x3c8)]({'startDate':c[F(0x3b8,0x393)],'endDate':null});}if(d===F(0x3f8,0x3f3)&&g[F(0x400,0x428)]===ConstraintType[F(0x3ca,0x3dd)]){return c[F(0x3d9,0x3c4)]({'startDate':c[F(0x3b8,0x388)],'endDate':null});}}else{if(d===F(0x3f0,0x3f2)&&g[F(0x400,0x3e7)]===ConstraintType[F(0x3c5,0x39f)]){return c['copyWith']({'startDate':null,'endDate':c['startDate']});}if(d==='end'&&g['constraintType']===ConstraintType[F(0x3d6,0x3c2)]){return c[F(0x3d9,0x3e7)]({'startDate':null,'endDate':c[F(0x3f4,0x3d4)]});}}}return c;}*['calculateEffectiveConstraintInterval'](c,d,e,f=![],g=![]){const {event:h}=this;function G(a,b){return C(a-0x9d,b);}const i=yield*h['getDateShifter'](c?![]:!![]);if(i==null){return null;}const j=f?yield*h[G(0x3f8,0x3de)]():0x0;if(j==null){return null;}if(g){if(this[G(0x3fd,0x41e)][G(0x3ee,0x3e8)]){if(yield*this['isFirstPass']()){d=d[G(0x3fe,0x3f7)](m=>!m[G(0x406,0x407)])[G(0x3ce,0x3cf)](m=>this[G(0x40a,0x416)](m,G(0x404,0x3e6),h));e=e[G(0x3fe,0x3dc)](m=>!m[G(0x406,0x416)])[G(0x3ce,0x3b8)](m=>this[G(0x40a,0x426)](m,'end',h));}else{d=d[G(0x3fe,0x3e4)](m=>!m[G(0x3c6,0x3d0)]);e=e[G(0x3fe,0x416)](m=>!m[G(0x3c6,0x3b9)]);}}else{const m=this[G(0x410,0x3f7)]===Direction[G(0x40f,0x41f)]?isForwardInterval:isBackwardInterval,n=d['filter'](isInflexibleInterval);d=n[G(0x3e2,0x3c5)]?n:d['filter'](m);const o=e[G(0x3fe,0x3e3)](isInflexibleInterval);e=o[G(0x3e2,0x408)]?o:e['filter'](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*[C(0x33b,0x353)](){function H(a,b){return C(b- -0x528,a);}return this[H(-0x1d5,-0x1b5)]===Direction[H(-0x1ae,-0x1b6)]?yield*this[H(-0x19e,-0x1b4)]['calculateEarlyStartDateConstraintIntervals']():yield*this[H(-0x1d4,-0x1b4)][H(-0x1f0,-0x1eb)]();}*[C(0x356,0x32e)](){function I(a,b){return C(b-0xa9,a);}return this['direction']===Direction[I(0x3ef,0x41b)]?yield*this['event'][I(0x3f3,0x3d5)]():yield*this[I(0x426,0x41d)][I(0x3be,0x3e1)]();}*[C(0x35a,0x348)](c=![],d=![]){const e=yield this['$'][J(0x91,0x61)];function J(a,b){return C(b- -0x310,a);}const f=yield this['$'][J(0x72,0x6a)];return yield*this['calculateEffectiveConstraintInterval'](!![],e[J(0x3a,0x49)](yield this[J(0x6f,0x64)]['$'][J(0x8e,0x61)]),f[J(0x4a,0x49)](yield this[J(0x38,0x64)]['$']['endDateConstraintIntervals']),c,d);}*[C(0x380,0x359)](c=![],d=![]){const e=yield this['$']['startDateConstraintIntervals'];function K(a,b){return C(b- -0x57c,a);}const f=yield this['$'][K(-0x1f1,-0x202)];return yield*this[K(-0x25f,-0x24e)](![],e[K(-0x24b,-0x223)](yield this[K(-0x1f3,-0x208)]['$'][K(-0x231,-0x20b)]),f[K(-0x205,-0x223)](yield this[K(-0x22e,-0x208)]['$'][K(-0x22a,-0x202)]),c,d);}*[C(0x334,0x323)](c){function L(a,b){return C(a- -0x4c2,b);}return this[L(-0x14f,-0x121)]===Direction['Forward']?yield*this[L(-0x14e,-0x171)][L(-0x18c,-0x163)](c):yield*this['event']['shouldRollupChildLateStartDate'](c);}*[C(0x322,0x30d)](){let c=MAX_DATE;const d=yield*this[M(0x3e3,0x412)][M(0x3d1,0x401)]();function M(a,b){return C(b-0x9e,a);}for(const e of d){if(!(yield*this[M(0x3d0,0x3d2)](e)))continue;let f=this['pick'](e),g=yield f['$'][M(0x437,0x409)];if((yield*e[M(0x41e,0x3fa)]())&&(yield*e['hasSubEvents']())){const h=yield f['$'][M(0x42c,0x406)];if(h&&(!g||g>h)){g=h;}}if(g&&g<c)c=g;}return c[M(0x3fe,0x3d0)]()-MAX_DATE[M(0x3a2,0x3d0)]()?c:null;}*['shouldRollupChildEndDate'](c){function N(a,b){return C(a- -0x3bc,b);}return this[N(-0x49,-0x3d)]===Direction[N(-0x4a,-0x53)]?yield*this[N(-0x48,-0x5d)][N(-0x46,-0x27)](c):yield*this[N(-0x48,-0x5f)][N(-0x94,-0xbe)](c);}*[C(0x355,0x33f)](){let c=MIN_DATE;function O(a,b){return C(a- -0x14a,b);}const d=yield*this[O(0x22a,0x250)]['subEventsIterable']();for(const e of d){if(!(yield*this[O(0x1f4,0x1e8)](e)))continue;let f=this['pick'](e),g=yield f['$']['endDate'];if((yield*e[O(0x212,0x214)]())&&(yield*e[O(0x208,0x202)]())){const h=yield f['$'][O(0x201,0x1e2)];if(h&&(!g||g<h)){g=h;}}if(g&&g>c)c=g;}return c['getTime']()-MIN_DATE[O(0x1e8,0x20f)]()?c:null;}*[C(0x379,0x353)](){let c;let d;if((yield*this['event'][P(-0x14,-0x9)]())&&(!(yield this[P(0x7,-0x5)]['$']['autoScheduleManualTasksOnSecondPass'])||(yield this['event']['$'][P(-0x31,-0x38)])[P(0x3c,0xe)]===this[P(0x3,0xe)])){c=yield this[P(0x3d,0xf)]['$']['startDate'];}else if(yield*this[P(-0x1c,0xf)][P(-0x43,-0x13)]()){c=yield this['$'][P(0x11,0x3)];}else if(!(yield*this[P(-0x7,0x1)]())){c=yield this[P(-0x5,0xf)]['$'][P(0xb,0x6)];}else{d=yield*this[P(-0xd,-0xb)]();if(d===null){return null;}else if(d[P(-0x1d,-0x2e)]()){const e=yield*this[P(0x2b,0xf)][P(-0x1c,-0x1e)](P(0x17,0x2),this);if(e[P(-0x1b,-0x23)]==='return'){return e['value'];}else if(e['kind']===P(0x0,-0xe)){d=e[P(0xe,-0x6)];}}else{yield*this[P(0x15,0xf)]['onNonEmptyEffectiveInterval'](P(0x2d,0x2),this);}c=this[P(0x2b,0xe)]===Direction[P(0x11,0xd)]?isDateFinite(d[P(-0x8,0x6)])?d[P(-0x13,0x6)]:null:isDateFinite(d[P(-0x2d,-0x36)])?d[P(-0x3f,-0x36)]:null;}function P(a,b){return C(b- -0x365,a);}return yield*this[P(0x1f,0xb)](c,!![],d);}*[C(0x35e,0x38a)](){let c;let d;function Q(a,b){return C(a- -0x30d,b);}if((yield*this['event'][Q(0x4f,0x41)]())&&(!(yield this['project']['$'][Q(0x74,0x53)])||(yield this['event']['$'][Q(0x20,0x11)])[Q(0x66,0x71)]===this[Q(0x66,0x50)])){c=yield this[Q(0x67,0x4f)]['$']['endDate'];}else if(yield*this[Q(0x67,0x57)][Q(0x45,0x56)]()){c=yield this['$'][Q(0x3e,0x18)];}else if(!(yield*this['isConstrained']())){c=yield this[Q(0x67,0x7e)]['$'][Q(0x22,0x3c)];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[Q(0x2a,0x4f)]()){const e=yield*this['event'][Q(0x3a,0x3d)]('end',this);if(e['kind']===Q(0x3c,0x3f)){return e['value'];}else if(e[Q(0x35,0x5d)]===Q(0x4a,0x27)){d=e[Q(0x52,0x5c)];}}else{yield*this[Q(0x67,0x87)][Q(0x42,0x15)](Q(0x62,0x40),this);}c=this[Q(0x66,0x84)]===Direction[Q(0x65,0x77)]?isDateFinite(d['startDate'])?d['startDate']:null:isDateFinite(d['endDate'])?d['endDate']:null;}return yield*this[Q(0x63,0x82)](c,![],d);}*[C(0x366,0x385)](){const c=yield this[R(-0xf8,-0xca)]['$'][R(-0xd4,-0xcd)];const d=yield this[R(-0xf6,-0xca)]['$'][R(-0xb0,-0xc4)];const e=yield this['$'][R(-0xac,-0xcd)];const f=yield this['$'][R(-0x95,-0xc4)];function R(a,b){return C(b- -0x43e,a);}return e?.[R(-0x109,-0xf9)]>0x0||f?.[R(-0xe0,-0xf9)]>0x0||c?.[R(-0x11e,-0xf9)]>0x0||d?.['length']>0x0;}*[C(0x37d,0x367)](){const c=yield this[S(-0x21d,-0x226)]()['$'][S(-0x25d,-0x265)];function S(a,b){return C(b- -0x592,a);}return c[S(-0x206,-0x21f)]===this[S(-0x22f,-0x21f)];}}__decorate([field({'lazy':!![]})],b[C(0x34e,0x355)],'minChildrenStartDate',void 0x0);__decorate([field({'lazy':!![]})],b[C(0x34e,0x327)],C(0x34b,0x332),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x34e,0x337)],'startDateConstraintIntervals',void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x34e,0x365)],'endDateConstraintIntervals',void 0x0);__decorate([calculate(C(0x371,0x360))],b[C(0x34e,0x34f)],C(0x33b,0x311),null);function C(a,b){return _enb(a-0x205,b);}__decorate([calculate(C(0x37a,0x37b))],b[C(0x34e,0x356)],C(0x356,0x35f),null);__decorate([calculate('minChildrenStartDate')],b[C(0x34e,0x37d)],C(0x322,0x328),null);__decorate([calculate('maxChildrenEndDate')],b[C(0x34e,0x323)],C(0x355,0x380),null);__decorate([calculate(C(0x36b,0x38a))],b[C(0x34e,0x36f)],'calculateStartDate',null);__decorate([calculate(C(0x32f,0x354))],b[C(0x34e,0x322)],C(0x35e,0x344),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function q(a,b){return _enb(b-0x33,a);}const c=a();while(!![]){try{const d=parseInt(q(0x23a,0x23d))/0x1+-parseInt(q(0x235,0x234))/0x2*(-parseInt(q(0x1ed,0x20e))/0x3)+-parseInt(q(0x278,0x253))/0x4*(-parseInt(q(0x251,0x256))/0x5)+parseInt(q(0x1fa,0x21c))/0x6+-parseInt(q(0x212,0x200))/0x7+parseInt(q(0x223,0x24c))/0x8*(parseInt(q(0x253,0x22e))/0x9)+-parseInt(q(0x228,0x23a))/0xa*(parseInt(q(0x22b,0x23c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3fd8e));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===r(0x3f,0x17)&&typeof Reflect[r(-0x1c,0x4)]===r(-0x9,-0x1f))h=Reflect[r(-0x1,0x4)](a,b,e,f);else for(var k=a[r(0x4f,0x25)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function r(a,b){return _enb(b- -0x1fc,a);}return g>0x3&&h&&Object[r(-0x24,-0x18)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _ens(a,b){return _enb(b-0x3b7,a);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,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{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['35giqZhJ','StartOffsetVar','calculateStartDate','isEventSegment','equality','1484924JstxcQ','map','shouldRecordFieldChange','Millisecond','prepareDispatcher','calculateDurationByOffsets','calculateManuallyScheduled','calculateProjectedXDateWithDuration','calculateEndOffsetByMasterDurationAndStartOffset','afterChange','MasterDurationVar','calculateMaxPercent','buildProposedDispatcher','prototype','74388XImHKG','calculateEndOffsetByStartOffsetAndDuration','function','collectInfo','toJSON','percentDone','duration','calculateEndOffsetByMasterTotalDurationAndStartOffset','startDate','defineProperty','getProject','addProposedValueFlag','new','durationUnit','124704Szhcva','constructor','skipNonWorkingTimeWhenSchedulingManually','manuallyScheduled','convertDurationGen','calculateStartDateByMasterStartAndStartOffset','assign','calculatePercentDone','previousSegment','EndOffsetVar','calculateProjectedDuration','endOffset','write','MasterTotalDurationVar','dispatcher','addPreviousValueFlag','resolution','calculateEndDate','846657qqgFDg','baseRevision','startOffset','segments','calculateDuration','decorate','22KmzwFv','nextSegment','MasterEndDateVar','endDate','isManuallyScheduled','startPercentDone','2011190Mqabxf','storeFieldChange','22TqyldN','233258gCWlam','push','getStm','meta','call','formulaId','event','calculateEndOffset','durationInMS','object','min','cycleResolutionContext','applyingSyncResponse','stm','modified','8rbLkdt','isRestoring','calculateStartOffset','calculateEndDateByMasterStartAndEndOffset','calculateStartOffsetByEndOffsetAndDuration','get','writeStartDate','145724lzGFOz','length','calculateMinPercent'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol('MasterStartDateVar');function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ca;let f=c[d];return f;};return _enb(a,b);}const MasterEndDateVar=Symbol(_ens(0x59e,0x5ba));const MasterDurationVar=Symbol(_ens(0x5a1,0x58e));const MasterTotalDurationVar=Symbol(_ens(0x5bc,0x5ad));const StartOffsetVar=Symbol(_ens(0x5e7,0x5db));const EndOffsetVar=Symbol(_ens(0x588,0x5a9));const durationByOffsetsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x573,0x59e)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x5ca,0x59e)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x5b5,0x59e)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula['new']({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x574,0x59e)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x570,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x5c8,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x5b6,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});const durationByMasterEndDateFormula=Formula[_ens(0x59b,0x59e)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x59c,0x59e)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x58d,0x59e)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier['mix'](CalculatedValueGen){[_ens(0x5a2,0x583)](a,b){const c=a[t(0x224,0x226)];const d=b[t(0x224,0x22e)];function t(a,b){return _ens(b,a- -0x38c);}return c['get'](StartDateVar)===d[t(0x249,0x25b)](StartDateVar)&&c[t(0x249,0x227)](EndDateVar)===d[t(0x249,0x26a)](EndDateVar)&&c[t(0x249,0x256)](DurationVar)===d['get'](DurationVar)&&c[t(0x249,0x250)](MasterStartDateVar)===d[t(0x249,0x25e)](MasterStartDateVar)&&c[t(0x249,0x26d)](MasterEndDateVar)===d['get'](MasterEndDateVar)&&c[t(0x249,0x26f)](MasterDurationVar)===d[t(0x249,0x25c)](MasterDurationVar)&&c[t(0x249,0x26f)](MasterTotalDurationVar)===d['get'](MasterTotalDurationVar)&&c[t(0x249,0x232)](StartOffsetVar)===d[t(0x249,0x21b)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x249,0x21e)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0x28f,0x27a)](){return!![];}get[u(0x2e1,0x2c6)](){function v(a,b){return u(a,b- -0x1af);}return this[v(0xef,0x110)]?.[v(0xec,0x117)];}set[u(0x29a,0x2c6)](c){}['writeStartDate'](c,d,e,f,g=!![]){const h=this[w(0x21,0x2a)];const i=this[w(-0xa,-0x24)]();function w(a,b){return u(b,a- -0x29e);}if(h&&!this['previousSegment']&&d[w(0xd,0x14)]['hasIdentifier'](c)&&!(i&&i[w(0x1d,0x45)]()[w(0x2b,0x9)])){d[w(0x6,0x12)](h['$'][w(-0xc,-0xe)],f,g);}else{c[w(-0x5,0xf)][w(-0x15,0x12)][w(0x6,0x30)][w(0x1f,0x37)](this,c,d,e,f,g);if(g&&this[w(0x13,0x11)]){const j=this[w(0x5,-0x19)]-this[w(0x13,-0x18)][w(0xe,0x26)];if(j>0x0){let k=this;while(k=k['nextSegment']){d['write'](k['$'][w(0xe,0xa)],k[w(0xe,-0x13)]+j);d[w(0x6,-0x13)](k['$']['endOffset'],k[w(0x5,-0x7)]+j);}}}}}[u(0x281,0x27e)](c,d,e){function x(a,b){return u(b,a- -0x33f);}return c===x(-0x93,-0x99)||c==='endOffset'||super['shouldRecordFieldChange'](c,d,e);}*[u(0x2f7,0x2ca)](){const c=yield this['$'][y(0x152,0x136)];const d=c[y(0x10a,0x138)][y(0x148,0x15d)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function y(a,b){return u(a,b- -0x170);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula[y(0x177,0x14e)]){e=yield*this[y(0x187,0x15c)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x16b,0x14e)]){const f=yield ProposedOrPreviousValueOf(this[y(0x128,0x14f)]['$'][y(0x129,0x122)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x102,0x122)]);e=yield*this[y(0x179,0x14f)]['calculateProjectedDuration'](f,g,TimeUnit[y(0xfd,0x10f)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){function z(a,b){return u(a,b- -0xaf);}const c=yield this['$'][z(0x1d4,0x1f7)];const d=c[z(0x204,0x1f9)][z(0x204,0x21e)](EndOffsetVar);if(!this[z(0x200,0x210)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(0x1fa,0x20f)]){e=yield*this[z(0x1bc,0x1dc)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x236,0x20f)]){const f=yield ProposedOrPreviousValueOf(this[z(0x220,0x210)]['$'][z(0x1e1,0x1e3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x22b,0x204)]);e=yield*this[z(0x1fd,0x210)][z(0x1dd,0x1f3)](f,g,TimeUnit[z(0x1e0,0x1d0)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(0x1f7,0x20f)]){e=yield*this[z(0x1ca,0x1d5)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(0x213,0x20f)]){e=yield*this[z(0x1c6,0x1e2)]();}return e;}*[u(0x25c,0x279)](){const c=yield this['$'][A(-0x15,-0x36)];const d=c['resolution'][A(-0xe,-0xf)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}function A(a,b){return u(a,b- -0x2dc);}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x33,-0x1e)]){e=yield*this[A(-0x4a,-0x3f)]();}else{e=yield*super['calculateStartDate']();}return e;}*[u(0x2c5,0x2a9)](){const c=yield this['$'][B(0x3a4,0x394)];const d=c[B(0x3a6,0x396)][B(0x3b2,0x3bb)](EndDateVar);if(!this[B(0x39f,0x3ad)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula[B(0x3cf,0x3ac)]){e=yield*this[B(0x3e7,0x3b9)]();}else{e=yield*super[B(0x39c,0x397)]();}function B(a,b){return u(a,b-0xee);}return e;}*[u(0x29c,0x2ae)](){const c=yield this['$'][C(-0xa6,-0xb4)];const d=c['resolution'][C(-0x77,-0x8d)](DurationVar);if(!this[C(-0x95,-0x9b)]){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(-0x85,-0x9c)]){e=yield*this[C(-0xcb,-0xd9)]();}else if(d===durationByMasterEndDateFormula[C(-0xbd,-0x9c)]){e=yield*this['calculateDurationByOffsets']();}else{e=yield*super[C(-0xb0,-0xac)]();}function C(a,b){return u(a,b- -0x35a);}return e;}[u(0x277,0x288)](c,d,e){const f=super[D(0x4d8,0x4e4)](c,d,e);f[D(0x4f7,0x4cd)](MasterStartDateVar);function D(a,b){return u(b,a-0x250);}f['addPreviousValueFlag'](StartOffsetVar);f[D(0x4f7,0x4ca)](EndOffsetVar);return f;}*[u(0x270,0x280)](c){const d=yield*super['prepareDispatcher'](c);if(!this[E(0x4d4,0x4b7)]){return d;}function E(a,b){return u(b,a-0x215);}const e=this['event']['$'];if(c(PreviousValueOf(e[E(0x4a7,0x47e)]))!=null)d[E(0x4bc,0x4e4)](MasterStartDateVar);if(c(HasProposedValue(e[E(0x4a7,0x47b)])))d[E(0x4aa,0x4c7)](MasterStartDateVar);if(!c(HasProposedValue(e[E(0x4c2,0x498)]))){d[E(0x4a2,0x47d)](c,e[E(0x4a5,0x4a5)],MasterDurationVar);if(c(HasProposedValue(e['endDate']))){const g=c(ProposedArgumentsOf(e[E(0x4c8,0x4c8)]));if(!g?.[0x0]){d[E(0x4aa,0x485)](MasterEndDateVar);}}const f=c(e[E(0x4bb,0x499)]);if(f['resolution'][E(0x4e2,0x4fa)](StartDateVar)===CalculateProposed&&f[E(0x4bd,0x4bf)][E(0x4e2,0x4bd)](EndDateVar)===CalculateProposed){d['addProposedValueFlag'](MasterTotalDurationVar);}}d['collectInfo'](c,this['$'][E(0x4c1,0x4d1)],StartOffsetVar);d['collectInfo'](c,this['$'][E(0x4b8,0x4c4)],EndOffsetVar);return d;}[u(0x2a3,0x2c4)](c){return segmentCycleResolution;}*[u(0x291,0x284)](){const c=yield ProposedOrPreviousValueOf(this[F(-0x17,-0x16)]['$']['duration']);const d=yield this[F(-0x17,-0x22)]['$'][F(-0x3f,-0x35)];function F(a,b){return u(b,a- -0x2d6);}const e=yield this['$']['startOffset'];const f=this[F(-0x25,-0x11)];let g;let h=yield*this[F(-0x3a,-0x10)](c,d,TimeUnit['Millisecond']);const j=[];let k=this;while(k=k[F(-0x36,-0x22)]){j[F(-0x1c,-0x34)](k);}for(let l=j[F(-0x6,-0x26)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(-0x2a,-0x7)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(-0x33,-0x2b)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(-0x13,-0x29)](h,(yield ProposedOrPreviousValueOf(this['$'][F(-0x33,-0x2a)]))-e);}}else{g=e;}return g;}*[u(0x277,0x291)](){const c=yield ProposedOrPreviousValueOf(this['event']['$'][G(0xc0,0xa8)]);const d=yield ProposedOrPreviousValueOf(this[G(0xc6,0xd5)]['$'][G(0xf6,0xc9)]);const e=yield*this['event'][G(0xd6,0xb8)](c,d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});function G(a,b){return u(a,b- -0x1ea);}const f=yield ProposedOrPreviousValueOf(this['$'][G(0xb1,0xc2)]);let g=yield ProposedOrPreviousValueOf(this['$'][G(0xd8,0xb9)]);let h=this[G(0xa7,0xc7)];if(f<e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(0xc3,0xc2)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(0xdf,0xc2)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$']['durationInMS'];function H(a,b){return u(b,a- -0x2c2);}const d=yield this['$'][H(-0x1f,-0x7)];return d-c;}*[u(0x292,0x28b)](){function I(a,b){return u(b,a-0x219);}const c=yield this['$'][I(0x4da,0x4e1)];const d=yield this['$'][I(0x4c5,0x4d6)];return d+c;}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0x288);}const c=yield this[J(0xc,0x37)]['$'][J(0x11,0xa)];const d=yield this['$'][J(0x16,0x1b)];const e=yield*this[J(0x23,0x37)][J(0x4,-0x5)](c,!![],d,TimeUnit[J(-0x25,-0x9)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()['skipNonWorkingTimeWhenSchedulingManually']?e:yield*this[J(0x20,0x37)]['skipNonWorkingTime'](e,![]);}*['calculateStartDateByMasterStartAndStartOffset'](){function K(a,b){return u(a,b-0xf0);}const c=yield this['event']['$'][K(0x39d,0x382)];const d=yield this['$']['startOffset'];const e=yield*this['event'][K(0x388,0x373)](c,!![],d,TimeUnit[K(0x35e,0x36f)],{'ignoreSegments':!![]});const f=yield*this[K(0x3be,0x3a4)]();return f&&!this['getProject']()[K(0x384,0x38a)]?e:yield*this['event']['skipNonWorkingTime'](e);}*['calculateDurationInMS'](){const c=yield ProposedOrPrevious;if(!this['event']){return c;}const d=yield this['$'][L(0x3ef,0x3e3)],e=d[L(0x3f1,0x3dc)][L(0x416,0x424)](DurationVar);if(e===CalculateProposed){if((yield HasProposedValue(this['$'][L(0x3d9,0x3b1)]))||(yield HasProposedValue(this['$'][L(0x3e0,0x3f1)]))||c===void 0x0){const f=yield this['$'][L(0x3e0,0x3dd)],g=yield this['$'][L(0x3d9,0x3d6)];return yield*this[L(0x408,0x3f2)][L(0x3e5,0x3f5)](g,f,TimeUnit['Millisecond']);}else{return c;}}function L(a,b){return u(b,a-0x149);}return(yield this['$']['endOffset'])-(yield this['$'][L(0x3f5,0x3fe)]);}*[u(0x282,0x281)](){const c=yield this['$'][M(0x33,0x4f)];function M(a,b){return u(a,b- -0x248);}const d=yield this['$']['durationInMS'];return yield*this[M(0x63,0x54)](d,TimeUnit['Millisecond'],c);}*[u(0x2b1,0x29f)](){let c=0x0;function N(a,b){return u(b,a-0x83);}if(!this[N(0x342,0x31f)]){return yield ProposedOrPrevious;}const d=yield this[N(0x342,0x33d)]['$']['segments'];if(d){const e=yield this[N(0x342,0x36a)]['$'][N(0x312,0x306)];const f=yield this[N(0x342,0x326)]['$']['duration'];const g=yield this[N(0x342,0x367)]['$']['durationUnit'];let h=yield*this[N(0x31f,0x2f5)](f,g,TimeUnit[N(0x302,0x318)]);let i=e*0.01*h;for(const j of d){const k=j[N(0x32f,0x351)];const l=j[N(0x326,0x2fc)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}return c;}*[u(0x2ea,0x2d1)](){const c=this[O(0x7f,0x94)];function O(a,b){return u(a,b- -0x20c);}if(!this[O(0xca,0xb3)]){return yield ProposedOrPrevious;}if(c){return yield c['$']['endPercentDone'];}return 0x0;}*[u(0x28f,0x287)](){if(!this['event']){return yield ProposedOrPrevious;}const c=yield this[P(0x4fd,0x4d7)]['$'][P(0x4ce,0x4c6)];function P(a,b){return u(b,a-0x23e);}const d=yield this[P(0x4fd,0x500)]['$'][P(0x4d5,0x4a9)];let e=yield*this['convertDurationGen'](c,d,TimeUnit[P(0x4bd,0x4e7)]);const f=yield this['$'][P(0x4ea,0x4cd)];const g=yield this['$'][P(0x4e1,0x4c8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x280,0x283)](c,d,e,f){function Q(a,b){return u(a,b- -0x370);}if(!f)f=yield this['$'][Q(-0xdd,-0xd9)];return yield*this[Q(-0xcb,-0xb1)][Q(-0xf6,-0xed)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x2b0,0x2a2)](c,d,e,...f){function R(a,b){return u(b,a- -0x1e1);}if(!e)e=yield this['$'][R(0xb6,0xbc)];return yield*this['event'][R(0xc1,0xb4)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0x294,0x282)](){if(this['event']){return yield*this['event']['isManuallyScheduled']();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super['afterChange'](c,d,e,f,g);const h=this['event'];function S(a,b){return u(b,a- -0x230);}if(d&&h){if(!(S(0x7d,0x54)in h[S(0x8c,0x5f)][S(0x97,0x9e)])&&h[S(0x7d,0x7b)]){const l=h[S(0x7d,0xa0)][S(0x4d,0x3b)](m=>Object[S(0x6e,0x43)](m[S(0x5e,0x62)](),m[S(0x8c,0x92)][S(0x97,0x9a)]));h[S(0x87,0x61)](S(0x7d,0x86),l);}const i=h[S(0x64,0x79)]();const j=i?.[S(0x95,0x80)];if(i)i[S(0x95,0xc3)]=!![];const k=h[S(0x7d,0x7b)]?.[S(0x4d,0x5a)](m=>m[S(0x5e,0x64)]());h[S(0x55,0x2e)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(0x95,0xc2)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0x263,0x289)],u(0x2bd,0x2a6),void 0x0);__decorate([model_field({'persist':![]})],b[u(0x280,0x289)],'startOffset',void 0x0);__decorate([model_field({'persist':![]})],b[u(0x2b1,0x289)],'endOffset',void 0x0);__decorate([field()],b[u(0x2a8,0x289)],u(0x27b,0x28f),void 0x0);__decorate([field()],b[u(0x264,0x289)],u(0x28f,0x2b5),void 0x0);__decorate([field()],b[u(0x2b0,0x289)],'endPercentDone',void 0x0);__decorate([field()],b['prototype'],u(0x2c2,0x2c1),void 0x0);__decorate([write(u(0x28e,0x292))],b[u(0x267,0x289)],u(0x2ab,0x2ce),null);__decorate([calculate(u(0x298,0x2ac))],b[u(0x295,0x289)],'calculateStartOffset',null);__decorate([calculate('endOffset')],b[u(0x29e,0x289)],u(0x2d7,0x2c0),null);__decorate([calculate(u(0x2e9,0x2c1))],b[u(0x26e,0x289)],'calculateDurationInMS',null);__decorate([calculate('percentDone')],b['prototype'],u(0x2a7,0x29f),null);function u(a,b){return _ens(a,b- -0x308);}__decorate([calculate(u(0x2a9,0x2b5))],b[u(0x2af,0x289)],u(0x2de,0x2d1),null);__decorate([calculate('endPercentDone')],b[u(0x2b3,0x289)],u(0x27d,0x287),null);__decorate([calculate(u(0x2b0,0x29b))],b[u(0x294,0x289)],u(0x296,0x282),null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
1
|
+
(function(a,b){function q(a,b){return _enb(a-0x26f,b);}const c=a();while(!![]){try{const d=parseInt(q(0x409,0x43b))/0x1*(-parseInt(q(0x3f8,0x400))/0x2)+parseInt(q(0x3f3,0x3e7))/0x3+-parseInt(q(0x40e,0x410))/0x4*(-parseInt(q(0x408,0x3f5))/0x5)+parseInt(q(0x3d0,0x3aa))/0x6*(parseInt(q(0x42e,0x438))/0x7)+parseInt(q(0x42b,0x430))/0x8*(parseInt(q(0x3d2,0x3d9))/0x9)+parseInt(q(0x3fa,0x3dc))/0xa*(parseInt(q(0x42a,0x454))/0xb)+-parseInt(q(0x3d6,0x3f2))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x198d4));var __decorate=function(a,b,e,f){var g=arguments[r(0x247,0x248)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function r(a,b){return _enb(a-0xd4,b);}if(typeof Reflect===r(0x288,0x256)&&typeof Reflect[r(0x259,0x258)]==='function')h=Reflect['decorate'](a,b,e,f);else for(var k=a[r(0x247,0x267)]-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[r(0x26a,0x257)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposeCountOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _ens(a,b){return _enb(a-0x3ba,b);}import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,Instruction,SEDDispatcher,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol(_ens(0x529,0x4f9));const MasterEndDateVar=Symbol(_ens(0x548,0x542));const MasterDurationVar=Symbol(_ens(0x530,0x50d));const MasterTotalDurationVar=Symbol(_ens(0x564,0x58a));const StartOffsetVar=Symbol(_ens(0x540,0x542));const EndOffsetVar=Symbol(_ens(0x54d,0x54d));const durationByOffsetsFormula=Formula[_ens(0x51c,0x4f6)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});function _ena(){const Y=['Millisecond','storeFieldChange','startOffset','afterChange','MasterStartDateVar','constructor','push','isEventSegment','length','prepareDispatcher','mix','MasterDurationVar','resolution','segments','hasFlag','get','calculateEndOffsetByStartOffsetAndDuration','previousSegment','percentDone','calculateMaxPercent','stm','write','endPercentDone','skipNonWorkingTimeWhenSchedulingManually','calculateEndOffset','237663eDEFXk','decorate','StartOffsetVar','calculateStartOffset','dispatcherClass','32420LUNqSA','nextSegment','1173310ozsuDu','endDate','KeepEndDate','MasterEndDateVar','min','endOffset','calculateManuallyScheduled','shouldRecordFieldChange','EndOffsetVar','collectInfo','equality','defineProperty','isManuallyScheduled','writeStartDate','6800cXWBBW','10SkTlIL','calculateDuration','HasProposedValue','buildProposedDispatcher','meta','148PzybSB','dispatcher','cycleResolutionContext','addProposedValueFlag','formulaId','input','durationUnit','assign','toJSON','event','calculateProjectedDuration','MasterTotalDurationVar','calculateDispatcher','addInstruction','calculateProjectedXDateWithDuration','calculateStartOffsetByEndOffsetAndDuration','calculateDurationInMS','startPercentDone','calculateEndDate','calculateStartDateByMasterStartAndStartOffset','calculateEndOffsetByMasterTotalDurationAndStartOffset','object','calculateStartDate','calculateDurationByOffsets','KeepDuration','getProject','isRestoring','duration','11nNrIBS','18504fnqeVU','prototype','startDate','497esoaku','addPreviousValueFlag','durationInMS','calculateEndDateByMasterStartAndEndOffset','applyingSyncResponse','calculateMinPercent','16122oMbHOx','new','531VoIBce','map','calculatePercentDone','getStm','3688272mJnbNI','convertDurationGen','modified','KeepStartDate'];_ena=function(){return Y;};return _ena();}const durationByMasterEndDateFormula=Formula[_ens(0x51c,0x53f)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x51c,0x524)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x51c,0x508)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x51c,0x542)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x51c,0x504)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByMasterStartAndEndDateFormula=Formula[_ens(0x51c,0x535)]({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x15c;let f=c[d];return f;};return _enb(a,b);}const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x51c,0x542)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula['new']({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x51c,0x52f)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});const segmentCycleDescription=CycleDescription[_ens(0x51c,0x523)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x51c,0x504)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcher extends SEDDispatcher{[_ens(0x54e,0x573)](a,b,c){function t(a,b){return _ens(b- -0x49f,a);}if(a(PreviousValueOf(b))!=null)this[t(0x80,0x77)](c);if(a(ProposedValueOf(b))!=null)this['addProposedValueFlag'](c);}[_ens(0x533,0x535)](a,b){function u(a,b){return _ens(b- -0x4e6,a);}return Boolean(this[u(0x91,0x78)][u(0x23,0x4e)](a)&b);}['removeFlag'](a,b){const c=this[v(0xf8,0xc7)][v(0xce,0xb0)](a);function v(a,b){return _ens(a- -0x466,b);}this[v(0xf8,0x121)]['set'](a,(0xff^b)&c);}}class SegmentSEDDispatcherIdentifier extends FieldIdentifier[_ens(0x52f,0x500)](CalculatedValueGen){[_ens(0x54f,0x563)](a,b){const c=a[w(0x3e3,0x3be)];const d=b[w(0x3bd,0x3be)];function w(a,b){return _ens(b- -0x173,a);}return c[w(0x3d2,0x3c1)](StartDateVar)===d[w(0x3a5,0x3c1)](StartDateVar)&&c[w(0x3c7,0x3c1)](EndDateVar)===d[w(0x3f0,0x3c1)](EndDateVar)&&c[w(0x391,0x3c1)](DurationVar)===d['get'](DurationVar)&&c['get'](MasterStartDateVar)===d[w(0x3cb,0x3c1)](MasterStartDateVar)&&c[w(0x3d3,0x3c1)](MasterEndDateVar)===d[w(0x3d5,0x3c1)](MasterEndDateVar)&&c[w(0x3ba,0x3c1)](MasterDurationVar)===d['get'](MasterDurationVar)&&c[w(0x3dd,0x3c1)](MasterTotalDurationVar)===d[w(0x3b7,0x3c1)](MasterTotalDurationVar)&&c['get'](StartOffsetVar)===d[w(0x3ea,0x3c1)](StartOffsetVar)&&c[w(0x3a3,0x3c1)](EndOffsetVar)===d['get'](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[x(0x300,0x309)](){return!![];}get[x(0x30d,0x32f)](){function y(a,b){return x(b-0x231,a);}return this['event']?.[y(0x529,0x53e)];}set[x(0x30d,0x30d)](c){}[x(0x316,0x2e9)](c){return SegmentSEDDispatcher;}[x(0x32b,0x339)](c,d,e){function z(a,b){return x(b-0x113,a);}const f=super[z(0x432,0x43e)](c,d,e);f[z(0x3d1,0x3fd)](MasterStartDateVar);f[z(0x3e3,0x3fd)](StartOffsetVar);f[z(0x3ea,0x3fd)](EndOffsetVar);return f;}*[x(0x302,0x32a)](c){const d=yield*super[A(0x428,0x3fd)](c);if(!this[A(0x40e,0x431)]){return d;}const e=this[A(0x45e,0x431)]['$'];if(c(PreviousValueOf(e[A(0x428,0x447)]))!=null)d[A(0x3e4,0x3e5)](MasterStartDateVar);function A(a,b){return x(b-0xfb,a);}if(c(HasProposedValue(e['startDate'])))d[A(0x45d,0x42b)](MasterStartDateVar);if(!c(HasProposedValue(e['segments']))){d[A(0x3f6,0x41d)](c,e[A(0x456,0x443)],MasterDurationVar);if(c(HasProposedValue(e[A(0x3e9,0x415)]))){const g=c(ProposedArgumentsOf(e['endDate']));if(!g?.[0x0]){d[A(0x422,0x42b)](MasterEndDateVar);}}const f=c(e['dispatcher'])[A(0x411,0x400)];if(f['get'](StartDateVar)===CalculateProposed&&f['get'](EndDateVar)===CalculateProposed){d[A(0x44a,0x42b)](MasterTotalDurationVar);}}d['collectInfo'](c,this['$']['startOffset'],StartOffsetVar);d['collectInfo'](c,this['$'][A(0x445,0x419)],EndOffsetVar);return d;}*[x(0x339,0x315)](c){const d=yield ProposedOrPrevious;const e=yield*this['prepareDispatcher'](c);const f=yield ProposedArgumentsOf(this['$'][B(0x565,0x584)]);function B(a,b){return x(a-0x219,b);}const g=yield ProposedArgumentsOf(this['$'][B(0x533,0x50b)]);const h=yield ProposedArgumentsOf(this['$']['duration']);const i=c(ProposeCountOf(this['$'][B(0x565,0x565)]));const j=c(ProposeCountOf(this['$'][B(0x533,0x55d)]));const k=f?f[0x0]?Instruction[B(0x55e,0x576)]:Instruction[B(0x534,0x55e)]:void 0x0;const l=g?g[0x0]?Instruction[B(0x55e,0x561)]:Instruction[B(0x511,0x513)]:void 0x0;let m;if(h){switch(h[0x0]){case!![]:m=Instruction[B(0x511,0x53f)];break;case![]:m=Instruction[B(0x534,0x503)];break;}}if(e[B(0x520,0x53e)](StartDateVar,VariableInputState[B(0x543,0x518)])&&e[B(0x520,0x51a)](EndDateVar,VariableInputState[B(0x543,0x56b)])&&e[B(0x520,0x552)](DurationVar,VariableInputState[B(0x543,0x549)])){if(k===Instruction[B(0x55e,0x533)]&&l===Instruction['KeepStartDate']){if(i<j){yield*e[B(0x553,0x537)](l,this);e['removeFlag'](DurationVar,VariableInputState[B(0x543,0x54b)]);}else{yield*e[B(0x553,0x550)](k,this);}}}else{if(k)yield*e['addInstruction'](k,this);if(l)yield*e[B(0x553,0x57b)](l,this);if(m)yield*e[B(0x553,0x52a)](m,this);}return e;}[x(0x32f,0x343)](c){return segmentCycleResolution;}['writeStartDate'](c,d,e,f,g=!![]){const h=this[C(0x480,0x4b1)];const i=this['getProject']();function C(a,b){return x(b-0x17b,a);}if(h&&!this[C(0x4a3,0x485)]&&d['baseRevision']['hasIdentifier'](c)&&!(i&&i[C(0x49b,0x46f)]()[C(0x4aa,0x4c2)])){d['write'](h['$'][C(0x4f5,0x4c7)],f,g);}else{c[C(0x447,0x479)][C(0x4a4,0x4c6)][C(0x491,0x489)]['call'](this,c,d,e,f,g);if(g&&this['nextSegment']){const j=this[C(0x4a5,0x499)]-this['nextSegment']['startOffset'];if(j>0x0){let k=this;while(k=k[C(0x497,0x493)]){d[C(0x492,0x489)](k['$'][C(0x49d,0x476)],k['startOffset']+j);d['write'](k['$'][C(0x4c7,0x499)],k[C(0x4a0,0x499)]+j);}}}}}[x(0x320,0x34b)](c,d,e){function D(a,b){return x(b-0x1b9,a);}return c===D(0x4cd,0x4b4)||c===D(0x4b2,0x4d7)||super[D(0x4e6,0x4d9)](c,d,e);}*['calculateStartOffset'](){function E(a,b){return x(b- -0x336,a);}const c=yield this['$'][E(0x29,-0x8)];const d=c['resolution'][E(-0x44,-0x2e)](StartOffsetVar);if(!this[E(0x16,0x0)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula[E(-0x31,-0x5)]){e=yield*this[E(0x2f,0x6)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[E(0xc,-0x5)]){const f=yield ProposedOrPreviousValueOf(this['event']['$'][E(0x31,0x16)]);const g=yield ProposedOrPreviousValueOf(this['$'][E(-0x4,0x16)]);e=yield*this[E(-0xc,0x0)][E(0x1d,0x1)](f,g,TimeUnit[E(-0x23,-0x3d)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){const c=yield this['$'][F(0x548,0x551)];const d=c[F(0x51f,0x4ee)][F(0x522,0x528)](EndOffsetVar);if(!this[F(0x550,0x52e)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[F(0x54b,0x558)]){e=yield*this[F(0x523,0x50b)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[F(0x54b,0x541)]){const f=yield ProposedOrPreviousValueOf(this[F(0x550,0x54f)]['$'][F(0x566,0x595)]);const g=yield ProposedOrPreviousValueOf(this['$'][F(0x534,0x53e)]);e=yield*this[F(0x550,0x572)][F(0x551,0x54d)](f,g,TimeUnit['Millisecond'],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[F(0x54b,0x56d)]){e=yield*this['calculateEndOffsetByMasterDurationAndStartOffset']();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[F(0x54b,0x56e)]){e=yield*this[F(0x55b,0x550)]();}function F(a,b){return x(a-0x21a,b);}return e;}*[x(0x343,0x332)](){function G(a,b){return x(a- -0x65,b);}const c=yield this['$'][G(0x2c9,0x2ec)];const d=c[G(0x2a0,0x2a7)][G(0x2a3,0x2ad)](StartDateVar);if(!this[G(0x2d1,0x2b8)]){return yield ProposedOrPrevious;}let e;if(d===startDateByMasterStartAndStartOffsetFormula['formulaId']){e=yield*this[G(0x2db,0x2b0)]();}else{e=yield*super[G(0x2de,0x2ff)]();}return e;}*[x(0x33f,0x366)](){const c=yield this['$'][H(-0x1bc,-0x1bd)];const d=c[H(-0x208,-0x1e6)][H(-0x1e3,-0x1e3)](EndDateVar);function H(a,b){return x(b- -0x4eb,a);}if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula[H(-0x197,-0x1ba)]){e=yield*this[H(-0x1f3,-0x1ff)]();}else{e=yield*super['calculateEndDate']();}return e;}*[x(0x329,0x319)](){function I(a,b){return x(b- -0x125,a);}const c=yield this['$']['dispatcher'];const d=c[I(0x1c4,0x1e0)][I(0x20f,0x1e3)](DurationVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[I(0x220,0x20c)]){e=yield*this[I(0x1f6,0x21f)]();}else if(d===durationByMasterEndDateFormula[I(0x1de,0x20c)]){e=yield*this['calculateDurationByOffsets']();}else{e=yield*super[I(0x22e,0x204)]();}return e;}*['calculateEndOffsetByMasterDurationAndStartOffset'](){const c=yield ProposedOrPreviousValueOf(this['event']['$']['duration']);const d=yield this['event']['$'][J(0x277,0x263)];const e=yield this['$'][J(0x249,0x22b)];const f=this[J(0x25a,0x248)];let g;let h=yield*this[J(0x205,0x226)](c,d,TimeUnit[J(0x1fa,0x229)]);function J(a,b){return x(b- -0xd0,a);}const j=[];let k=this;while(k=k[J(0x25a,0x23a)]){j[J(0x214,0x22f)](k);}for(let l=j[J(0x21b,0x231)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$']['startOffset']);const o=yield ProposedOrPreviousValueOf(m['$'][J(0x226,0x24e)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[J(0x243,0x24d)](h,(yield ProposedOrPreviousValueOf(this['$'][J(0x242,0x24e)]))-e);}}else{g=e;}return g;}*['calculateEndOffsetByMasterTotalDurationAndStartOffset'](){function K(a,b){return x(b- -0x56b,a);}const c=yield ProposedOrPreviousValueOf(this[K(-0x230,-0x235)]['$'][K(-0x1f7,-0x21f)]);const d=yield ProposedOrPreviousValueOf(this[K(-0x216,-0x235)]['$'][K(-0x251,-0x251)]);const e=yield*this['event'][K(-0x213,-0x234)](c,d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const f=yield ProposedOrPreviousValueOf(this['$'][K(-0x288,-0x270)]);let g=yield ProposedOrPreviousValueOf(this['$'][K(-0x252,-0x24d)]);let h=this[K(-0x241,-0x253)];if(f<e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][K(-0x290,-0x270)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][K(-0x27b,-0x270)];}*[x(0x33c,0x30e)](){const c=yield this['$'][L(-0x133,-0x131)];const d=yield this['$'][L(-0x12c,-0xfe)];function L(a,b){return x(b- -0x41c,a);}return d-c;}*['calculateEndOffsetByStartOffsetAndDuration'](){const c=yield this['$']['durationInMS'];const d=yield this['$'][M(0x464,0x486)];function M(a,b){return x(b-0x18b,a);}return d+c;}*[x(0x2ec,0x2dd)](){const c=yield this[N(-0xba,-0xa3)]['$']['startDate'];const d=yield this['$'][N(-0xd2,-0xde)];function N(a,b){return x(a- -0x3f0,b);}const e=yield*this[N(-0xba,-0xdf)][N(-0xb5,-0xba)](c,!![],d,TimeUnit[N(-0xf7,-0xea)],{'ignoreSegments':!![]});const f=yield*this[N(-0xcb,-0xcc)]();return f&&!this[N(-0xaa,-0xc0)]()[N(-0xe0,-0x109)]?e:yield*this[N(-0xba,-0xaf)]['skipNonWorkingTime'](e,![]);}*[x(0x340,0x372)](){const c=yield this['event']['$'][O(0x2bb,0x2d7)];const d=yield this['$'][O(0x292,0x286)];const e=yield*this[O(0x2d0,0x2c1)][O(0x2a9,0x2c6)](c,!![],d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});function O(a,b){return x(b- -0x75,a);}const f=yield*this['isManuallyScheduled']();return f&&!this[O(0x2cf,0x2d1)]()[O(0x2a6,0x29b)]?e:yield*this[O(0x2b5,0x2c1)]['skipNonWorkingTime'](e);}*[x(0x33d,0x30b)](){const c=yield ProposedOrPrevious;if(!this[P(-0x1e9,-0x1e3)]){return c;}function P(a,b){return x(b- -0x519,a);}const d=yield this['$'][P(-0x20b,-0x1eb)],e=d[P(-0x1f5,-0x214)][P(-0x221,-0x211)](DurationVar);if(e===CalculateProposed){if((yield HasProposedValue(this['$']['duration']))||(yield HasProposedValue(this['$'][P(-0x1f4,-0x1e6)]))||c===void 0x0){const f=yield this['$'][P(-0x1d0,-0x1e6)],g=yield this['$']['duration'];return yield*this[P(-0x1e2,-0x1e3)][P(-0x23b,-0x223)](g,f,TimeUnit[P(-0x24d,-0x220)]);}else{return c;}}return(yield this['$'][P(-0x1e3,-0x1fb)])-(yield this['$'][P(-0x22a,-0x21e)]);}*[x(0x344,0x339)](){const c=yield this['$']['durationUnit'];const d=yield this['$']['durationInMS'];function Q(a,b){return x(a- -0x2e1,b);}return yield*this[Q(0x15,-0x19)](d,TimeUnit[Q(0x18,-0x14)],c);}*[x(0x2f3,0x2e9)](){let c=0x0;if(!this[R(0x1e7,0x211)]){return yield ProposedOrPrevious;}const d=yield this['event']['$'][R(0x1b7,0x1e4)];function R(a,b){return x(a- -0x14f,b);}if(d){const e=yield this[R(0x1e7,0x203)]['$'][R(0x1bc,0x1c5)];const f=yield this[R(0x1e7,0x1ce)]['$'][R(0x1f9,0x223)];const g=yield this[R(0x1e7,0x20c)]['$'][R(0x1e4,0x1c2)];let h=yield*this[R(0x1a7,0x194)](f,g,TimeUnit['Millisecond']);let i=e*0.01*h;for(const j of d){const k=j[R(0x1ac,0x1d3)];const l=j[R(0x1cf,0x1b0)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}return c;}*['calculateMinPercent'](){const c=this[S(0x2a5,0x2b9)];function S(a,b){return x(a- -0x65,b);}if(!this[S(0x2d1,0x2ba)]){return yield ProposedOrPrevious;}if(c){return yield c['$'][S(0x2aa,0x2c6)];}return 0x0;}*[x(0x30c,0x332)](){if(!this[T(0x65,0x77)]){return yield ProposedOrPrevious;}const c=yield this[T(0x65,0x57)]['$'][T(0x77,0x96)];function T(a,b){return x(a- -0x2d1,b);}const d=yield this['event']['$'][T(0x62,0x5f)];let e=yield*this[T(0x25,0x21)](c,d,TimeUnit[T(0x28,0x3d)]);const f=yield this['$']['startOffset'];const g=yield this['$']['endOffset'];const h=yield this['$'][T(0x6d,0x7b)];return h+0x64*(g-f)/e;}*['calculateProjectedXDateWithDuration'](c,d,e,f){if(!f)f=yield this['$'][U(0x367,0x33a)];function U(a,b){return x(b-0x7,a);}return yield*this['event'][U(0x342,0x342)](c,d,e,f,{'ignoreSegments':!![]});}*[x(0x337,0x321)](c,d,e,...f){if(!e)e=yield this['$'][V(0x30c,0x2e1)];function V(a,b){return x(b- -0x52,a);}return yield*this[V(0x2ea,0x2e4)][V(0x2bb,0x2e5)](c,d,e,{'ignoreSegments':!![]},...f);}*[x(0x31f,0x311)](){function W(a,b){return x(a-0x24b,b);}if(this[W(0x581,0x555)]){return yield*this[W(0x581,0x594)][W(0x570,0x576)]();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super[X(-0x27e,-0x273)](c,d,e,f,g);const h=this['event'];function X(a,b){return x(b- -0x56f,a);}if(d&&h){if(!(X(-0x23c,-0x269)in h['meta'][X(-0x29d,-0x278)])&&h['segments']){const l=h['segments']['map'](m=>Object[X(-0x224,-0x23b)](m[X(-0x24c,-0x23a)](),m[X(-0x21c,-0x243)][X(-0x28c,-0x278)]));h[X(-0x299,-0x275)](X(-0x261,-0x269),l);}const i=h[X(-0x24a,-0x229)]();const j=i?.[X(-0x293,-0x282)];if(i)i[X(-0x257,-0x282)]=!![];const k=h[X(-0x289,-0x269)]?.[X(-0x277,-0x27d)](m=>m[X(-0x20d,-0x23a)]());h[X(-0x274,-0x273)]({'segments':k},{'segments':k},e,f,g);if(i)i[X(-0x258,-0x282)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[x(0x34b,0x319)],x(0x32e,0x317),void 0x0);__decorate([model_field({'persist':![]})],b[x(0x34b,0x358)],'startOffset',void 0x0);__decorate([model_field({'persist':![]})],b[x(0x34b,0x342)],'endOffset',void 0x0);__decorate([field()],b['prototype'],x(0x30b,0x2f9),void 0x0);__decorate([field()],b[x(0x34b,0x336)],x(0x33e,0x352),void 0x0);__decorate([field()],b[x(0x34b,0x343)],x(0x30f,0x321),void 0x0);__decorate([field()],b[x(0x34b,0x342)],x(0x2eb,0x2eb),void 0x0);__decorate([write('startDate')],b['prototype'],x(0x326,0x34b),null);__decorate([calculate(x(0x2fb,0x322))],b[x(0x34b,0x362)],x(0x315,0x327),null);__decorate([calculate(x(0x31e,0x2f5))],b[x(0x34b,0x339)],x(0x311,0x2e3),null);function x(a,b){return _ens(a- -0x22c,b);}__decorate([calculate(x(0x2eb,0x2d5))],b[x(0x34b,0x329)],x(0x33d,0x36e),null);__decorate([calculate(x(0x30b,0x326))],b['prototype'],'calculatePercentDone',null);__decorate([calculate(x(0x33e,0x35c))],b[x(0x34b,0x36f)],x(0x2ee,0x319),null);__decorate([calculate(x(0x30f,0x328))],b['prototype'],x(0x30c,0x2f7),null);__decorate([calculate('manuallyScheduled')],b[x(0x34b,0x346)],x(0x31f,0x308),null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcher,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function z(a,b){return _enb(a- -0x3bc,b);}const c=a();while(!![]){try{const d=parseInt(z(-0x2cb,-0x2ce))/0x1*(parseInt(z(-0x2bd,-0x2af))/0x2)+parseInt(z(-0x2c8,-0x2e0))/0x3*(parseInt(z(-0x2ea,-0x306))/0x4)+-parseInt(z(-0x2a4,-0x2a2))/0x5+parseInt(z(-0x2cd,-0x2ea))/0x6*(parseInt(z(-0x2cc,-0x2c8))/0x7)+parseInt(z(-0x29d,-0x295))/0x8*(-parseInt(z(-0x2c1,-0x2e5))/0x9)+-parseInt(z(-0x2b2,-0x2b2))/0xa*(-parseInt(z(-0x2b9,-0x2ac))/0xb)+parseInt(z(-0x2cf,-0x2c2))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc3a4b));var __decorate=function(a,b,e,f){var g=arguments[A(0x1ef,0x1e9)],h=g<0x3?b:f===null?f=Object[A(0x21e,0x1f8)](b,e):f,j;function A(a,b){return _enb(b-0xf2,a);}if(typeof Reflect===A(0x213,0x210)&&typeof Reflect[A(0x214,0x1ee)]==='function')h=Reflect['decorate'](a,b,e,f);else for(var k=a[A(0x1fe,0x1e9)]-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[A(0x1fe,0x20c)](b,e,h),h;};import{HasProposedValue}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';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{CalendarIteratorResult}from'../../../calendar/CalendarCache.js';import{ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{EmptyCalendarEffect}from'../scheduler_basic/BaseCalendarMixin.js';import{BaseHasAssignmentsMixin}from'../scheduler_basic/BaseHasAssignmentsMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xcf;let f=c[d];return f;};return _enb(a,b);}import{EffectResolutionResult,SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{format}from'../../../util/Functions.js';class SchedulerProHasAssignmentsMixin extends Mixin([BaseHasAssignmentsMixin],a=>{const b=a[B(0x265,0x262)];class c extends a{['afterConstruct'](){function C(a,b){return B(b,a- -0xbc);}super[C(0x1a9,0x1b6)]();this['zeroDurationMsThreshold']=0x1;}*[B(0x20f,0x230)](){return yield HasProposedValue(this['$']['assigned']);}*['hasProposedValueForAssignmentsField'](d){const e=yield this['$'][D(0x87,0x6b)];for(const f of e){const g=yield f['$'][D(0x6f,0x54)];if(g&&(yield HasProposedValue(f['$'][d])))return!![];}function D(a,b){return B(a,b- -0x1e3);}return![];}*[B(0x23f,0x241)](){function E(a,b){return B(b,a-0x191);}return yield*this[E(0x3cd,0x3cf)]('units');}*['hasPreviousValueForUnits'](){return!![];}async[B(0x238,0x238)](d,e=void 0x0,f=void 0x0,g=void 0x0){const h=this[F(0x310,0x2f1)]()[F(0x327,0x335)][F(0x32c,0x327)];const i={'event':this,'resource':d,...e!==void 0x0?{'units':e}:{}};if(d[F(0x318,0x33f)]===ResourceType[F(0x323,0x331)]&&g!==void 0x0){i['cost']=g;}else if(d[F(0x318,0x2fc)]!==ResourceType[F(0x323,0x30d)]&&f!==void 0x0){i['rateTable']=f;}function F(a,b){return B(b,a-0xcc);}this['addAssignment'](new h(i));return this[F(0x322,0x321)]();}*['forEachAvailabilityInterval'](d,e){const f=yield this['$'][G(-0x202,-0x22a)];const g=yield this['$'][G(-0x1f6,-0x1db)];const h=yield this['$'][G(-0x1f8,-0x1fc)];const i=(yield this['$'][G(-0x1ec,-0x1de)])||(yield*this['hasElapsedDuration']())||d[G(-0x1ec,-0x1eb)]||!g[G(-0x1e7,-0x1ce)];const j=this[G(-0x1e6,-0x1d0)]()['maxCalendarRange'];if(j){d=Object['assign']({'maxRange':j},d);}function G(a,b){return B(b,a- -0x42a);}const k=this[G(-0x1e6,-0x1fd)]();const l=yield this['$']['manuallyScheduled'];return h['forEachAvailabilityInterval'](d,(m,n,o)=>{const p=o[H(0x2b8,0x29e)]();function H(a,b){return G(b-0x456,a);}const q=o[H(0x284,0x296)]();if(p[H(0x281,0x265)](f)&&(i||q[H(0x293,0x299)](r=>g[H(0x2b4,0x297)](r))||l&&!k[H(0x288,0x267)])){return e(m,n,o);}});}*[B(0x20f,0x233)](){const d=yield*this['isManuallyScheduled']();function I(a,b){return B(a,b- -0xe8);}const e=this['getProject']();const f=[yield this['$'][I(0x162,0x140)]];if(!d||e[I(0x13f,0x153)]){const g=yield this['$']['assignmentsByCalendar'];f[I(0x198,0x18d)](...g[I(0x19c,0x188)]());}return e[I(0x133,0x152)](f);}*[B(0x251,0x266)](){const d=yield this['$']['assigned'];const e=this['getProject']();function J(a,b){return B(b,a- -0x2b0);}const f=yield this['$'][J(-0x7a,-0x52)];const g=(yield this['$'][J(-0x72,-0x52)])||(yield*this['hasElapsedDuration']())||f&&!e[J(-0x75,-0x76)];const h=new Map();for(const i of d){const j=yield i['$'][J(-0x79,-0x5d)];if(j&&(yield j['$'][J(-0x64,-0x42)])===ResourceType[J(-0x49,-0x6a)]){const k=yield g?this['$']['effectiveCalendar']:j['$'][J(-0x88,-0x90)];let l=h[J(-0x77,-0x82)](k);if(!l){l=[];h['set'](k,l);}l[J(-0x3b,-0x42)](i);}}return h;}*[B(0x251,0x24b)](){return{'ignoreResourceCalendar':![]};}*[B(0x257,0x261)](){function K(a,b){return B(a,b-0x1a);}const d=yield this['$'][K(0x245,0x24e)];return d[K(0x264,0x25d)]>0x0;}*[B(0x23c,0x25d)](d,e=!![],f){if(!d)return null;function L(a,b){return B(b,a- -0xfd);}const g=yield this['$'][L(0x137,0x141)];const h=yield this['$'][L(0x141,0x140)]||(yield*this['hasElapsedDuration']());if(yield*this[L(0x164,0x18c)]()){const i=Object[L(0x13b,0x13b)](yield*this[L(0x14e,0x157)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':L(0x161,0x176)},f);let j;const k=yield*this[L(0x130,0x119)](i,(l,m,n)=>{j=e?l:m;return![];});if(k===CalendarIteratorResult[L(0x148,0x168)]||k===CalendarIteratorResult[L(0x167,0x15a)]){const l=[yield this['$'][L(0x12b,0x136)]];if(!i[L(0x141,0x158)]&&!h){l[L(0x178,0x162)](...g['keys']());}const m=SchedulerProEmptyCalendarEffect[L(0x131,0x131)]({'event':this,'calendars':l,'date':d,'isForward':e});if((yield m)===EffectResolutionResult[L(0x140,0x11e)]){yield Reject(m);}else{return null;}}return new Date(j);}else{return yield*b['skipNonWorkingTime']['call'](this,d,e);}}*['calculateProjectedDuration'](d,e,f,g,h=![]){if(!d||!e){return null;}function M(a,b){return B(a,b- -0xd0);}if(yield*this['useEventAvailabilityIterator']()){const i=d[M(0x191,0x172)]()<=e[M(0x18b,0x172)]()||!h?0x1:-0x1;if(i<0x0){[d,e]=[e,d];}const j=Object[M(0x18c,0x168)](yield*this['getBaseOptionsForDurationCalculations'](),{'startDate':d,'endDate':e,'isForward':!![]},g,{'purpose':'progressing'});const k=this[M(0x194,0x174)]()[M(0x14d,0x165)];let l=0x0;yield*this[M(0x164,0x15d)](j,(m,n)=>{function N(a,b){return M(b,a-0xc2);}l+=n[N(0x234,0x254)]()-m[N(0x234,0x211)]();if(k){const o=m[N(0x24c,0x244)]()-n[N(0x24c,0x260)]();l+=o*0x3c*0x3e8;}});if(!f)f=yield this['$'][M(0x170,0x170)];l=yield*this[M(0x17a,0x161)](l,TimeUnit['Millisecond'],f);return i*l;}else{return yield*b[M(0x1b4,0x198)][M(0x1bf,0x19e)](this,d,e,f,g,h);}}*[B(0x26a,0x252)](d,e=!![],f,g,h){function O(a,b){return B(a,b- -0x17e);}if(f==null||isNaN(f)||d==null)return null;if(f==0x0)return d;g=g||(yield this['$'][O(0xd4,0xc2)]);const i=yield*this[O(0x8b,0xb3)](f,g,TimeUnit[O(0xa4,0xc9)]);let j=d['getTime']();let k=i;const l=yield this['$']['effectiveCalendar'];const m=this[O(0xfd,0xf1)];if(yield*this['useEventAvailabilityIterator']()){const n=Object[O(0xa8,0xba)](yield*this[O(0xc5,0xcd)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':O(0xa0,0xae)},h);const o=this[O(0xef,0xc6)]()['adjustDurationToDST'];const p=yield*this[O(0x92,0xaf)](n,(q,r,s)=>{function P(a,b){return O(b,a-0x393);}const t=q['getTime'](),u=r[P(0x457,0x46e)](),v=u-t,w=k-v;if(w<m){if(o){const x=e?q['getTimezoneOffset']()-new Date(t+k)['getTimezoneOffset']():new Date(u-k)['getTimezoneOffset']()-r[P(0x46f,0x47c)]();k-=x*0x3c*0x3e8;}j=e?t+k:u-k;return![];}else{k-=v;if(o){const y=q['getTimezoneOffset']()-r[P(0x46f,0x453)]();k-=y*0x3c*0x3e8;}}});return p===CalendarIteratorResult[O(0xf9,0xd5)]?new Date(j):null;}else{return l[O(0xbe,0xd1)](d,i,e)[O(0xcf,0xd3)];}}}__decorate([field()],c[B(0x272,0x262)],B(0x22c,0x232),void 0x0);__decorate([field()],c[B(0x254,0x262)],B(0x25a,0x234),void 0x0);__decorate([model_field({'type':B(0x257,0x23f)})],c[B(0x283,0x262)],B(0x249,0x23e),void 0x0);__decorate([calculate(B(0x224,0x232))],c[B(0x23b,0x262)],B(0x225,0x233),null);__decorate([calculate('assignmentsByCalendar')],c[B(0x23f,0x262)],B(0x265,0x266),null);function B(a,b){return _enb(b-0x159,a);}return c;}){}class SchedulerProEmptyCalendarEffect extends EmptyCalendarEffect{[_enQ(-0x2a4,-0x287)](){function R(a,b){return _enQ(a-0x12c,b);}if(!this['getInvalidCalendar']()){return[IgnoreResourceCalendarEmptyCalendarEffectResolution['new']({'event':this['event']})];}return super[R(-0x178,-0x194)]();}}function _ena(){const U=['IgnoreResourceCalendarEmptyCalendarEffectResolution','hasProposedAssignments','convertDurationGen','effectiveCalendarsCombination','calculateEffectiveCalendarsCombination','assignmentsByCalendar','adjustDurationToDST','manuallyScheduled','resource','assign','get','combineCalendars','skipNonWorkingTimeInDurationWhenSchedulingManually','hasProposedValueForAssignmentsField','Cancel','ignoreResourceCalendar','boolean','durationUnit','hasProposedValueForUnits','getTime','size','getProject','MaxRangeReached','5126400WLvyRw','Millisecond','22374GDHdwF','483znoYqo','2947tYUZBw','getBaseOptionsForDurationCalculations','type','15YtHfHj','assigned','accumulateWorkingTime','length','finalDate','calculateProjectedXDateWithDuration','StoppedByIterator','10680867rEWcAx','decorate','commitAsync','Cost','902UJrCGe','event','getTimezoneOffset','assignmentStore','8973679PxxGtT','skipNonWorkingTime','positioning','getOwnPropertyDescriptor','modelClass','useEventAvailabilityIterator','prototype','10NwZUsA','FullRangeIterated','afterConstruct','calculateAssignmentsByCalendar','Work','calculateProjectedDuration','getResolutions','getCalendarsWorking','has','resolve','some','call','zeroDurationMsThreshold','keys','7050620kHVMgb','getCalendarsWorkStatus','defineProperty','name','push','L{descriptionTpl}','object','8zquQlv','effectiveCalendar','getDescription','$name','455084vhyscD','progressing','forEachAvailabilityInterval','new'];_ena=function(){return U;};return _ena();}function _enQ(a,b){return _enb(a- -0x3b4,b);}class IgnoreResourceCalendarEmptyCalendarEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enQ(-0x2e4,-0x2d1)](){function S(a,b){return _enQ(a-0x3de,b);}const {event:a}=this;return format(this['L'](S(0x147,0x163)),a[S(0x145,0x14b)]);}[_enQ(-0x2a1,-0x2bc)](){function T(a,b){return _enQ(b-0x2a1,a);}this[T(0x7,-0x13)]['ignoreResourceCalendar']=!![];}}IgnoreResourceCalendarEmptyCalendarEffectResolution[_enQ(-0x2e3,-0x2fc)]=_enQ(-0x2de,-0x2d4);export{IgnoreResourceCalendarEmptyCalendarEffectResolution,SchedulerProEmptyCalendarEffect,SchedulerProHasAssignmentsMixin};
|
|
1
|
+
(function(a,b){const c=a();function z(a,b){return _enb(a-0x363,b);}while(!![]){try{const d=-parseInt(z(0x54e,0x572))/0x1+parseInt(z(0x555,0x54e))/0x2*(-parseInt(z(0x546,0x51f))/0x3)+-parseInt(z(0x562,0x569))/0x4+-parseInt(z(0x583,0x586))/0x5*(parseInt(z(0x577,0x596))/0x6)+-parseInt(z(0x54a,0x55c))/0x7*(-parseInt(z(0x54d,0x548))/0x8)+-parseInt(z(0x542,0x541))/0x9+parseInt(z(0x538,0x54a))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3c283));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[A(-0x1e,-0x5)](b,e):f,j;if(typeof Reflect===A(-0xc,-0x1)&&typeof Reflect['decorate']==='function')h=Reflect[A(0x7,-0xe)](a,b,e,f);else for(var k=a[A(0xd,-0x9)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function A(a,b){return _enb(b- -0x1fd,a);}return g>0x3&&h&&Object[A(0x22,0x13)](b,e,h),h;};import{HasProposedValue}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _ena(){const W=['units','useEventAvailabilityIterator','has','getOwnPropertyDescriptor','type','calculateProjectedXDateWithDuration','getTime','object','Cancel','hasProposedValueForUnits','1280124QoieSR','hasProposedValueForAssignmentsField','convertDurationGen','new','Millisecond','getBaseOptionsForDurationCalculations','effectiveCalendar','manuallyScheduled','IgnoreResourceCalendarEmptyCalendarEffectResolution','effectiveCalendarsCombination','Cost','commitAsync','keys','assign','getTimezoneOffset','resolve','ignoreResourceCalendar','defineProperty','getProject','adjustDurationToDST','progressing','18pnxdum','skipNonWorkingTimeInDurationWhenSchedulingManually','rateTable','push','cost','forEachAvailabilityInterval','$name','assignmentStore','getResolutions','zeroDurationMsThreshold','positioning','assigned','472855XzHFRd','getCalendarsWorking','7250940uNrTZU','size','finalDate','hasProposedAssignments','resource','getInvalidCalendar','durationUnit','calculateProjectedDuration','skipNonWorkingTime','assignmentsByCalendar','2092644valjwk','call','name','accumulateWorkingTime','45654dqsPdJ','L{descriptionTpl}','calculateAssignmentsByCalendar','hasElapsedDuration','1060612ZoPwgX','StoppedByIterator','getDescription','24SQCTYM','51325yIJUUc','calculateEffectiveCalendarsCombination','combineCalendars','event','decorate','isManuallyScheduled','prototype','6xYtVxl','boolean','length'];_ena=function(){return W;};return _ena();}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{CalendarIteratorResult}from'../../../calendar/CalendarCache.js';function _enT(a,b){return _enb(a-0xfe,b);}import{ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{EmptyCalendarEffect}from'../scheduler_basic/BaseCalendarMixin.js';import{BaseHasAssignmentsMixin}from'../scheduler_basic/BaseHasAssignmentsMixin.js';import{EffectResolutionResult,SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{format}from'../../../util/Functions.js';class SchedulerProHasAssignmentsMixin extends Mixin([BaseHasAssignmentsMixin],a=>{const b=a[B(0x58e,0x590)];class c extends a{['afterConstruct'](){super['afterConstruct']();function C(a,b){return B(b- -0x1fd,a);}this[C(0x3bd,0x3bd)]=0x1;}*[B(0x575,0x583)](){function D(a,b){return B(b- -0x30d,a);}return yield HasProposedValue(this['$'][D(0x28b,0x2af)]);}*[B(0x59d,0x582)](d){function E(a,b){return B(a- -0x1ca,b);}const e=yield this['$'][E(0x3f2,0x3e5)];for(const f of e){const g=yield f['$'][E(0x3ac,0x3d0)];if(g&&(yield HasProposedValue(f['$'][d])))return!![];}return![];}*[B(0x59b,0x5b9)](){function F(a,b){return B(a- -0x27b,b);}return yield*this[F(0x322,0x318)](F(0x317,0x31f));}*['hasPreviousValueForUnits'](){return!![];}async[B(0x5a9,0x585)](d,e=void 0x0,f=void 0x0,g=void 0x0){function G(a,b){return B(b- -0x548,a);}const h=this[G(0x5e,0x66)]()[G(0x4c,0x70)]['modelClass'];const i={'event':this,'resource':d,...e!==void 0x0?{'units':e}:{}};if(d[G(0x73,0x4e)]===ResourceType[G(0x54,0x5e)]&&g!==void 0x0){i[G(0x8d,0x6d)]=g;}else if(d[G(0x55,0x4e)]!==ResourceType[G(0x71,0x5e)]&&f!==void 0x0){i[G(0x8b,0x6b)]=f;}this['addAssignment'](new h(i));return this[G(0x47,0x5f)]();}*[B(0x5b6,0x5d6)](d,e){const f=yield this['$'][H(0x5c4,0x5d4)];const g=yield this['$']['assignmentsByCalendar'];const h=yield this['$'][H(0x5b2,0x5d7)];function H(a,b){return B(b-0x32,a);}const i=(yield this['$'][H(0x5d4,0x5de)])||(yield*this[H(0x5aa,0x5b5)]())||d[H(0x5fd,0x5de)]||!g['size'];const j=this['getProject']()['maxCalendarRange'];if(j){d=Object['assign']({'maxRange':j},d);}const k=this[H(0x5f6,0x5e0)]();const l=yield this['$'][H(0x5f7,0x5d5)];return h[H(0x60c,0x5e8)](d,(m,n,o)=>{function I(a,b){return H(a,b- -0x18f);}const p=o['getCalendarsWorkStatus']();const q=o[I(0x483,0x461)]();if(p['get'](f)&&(i||q['some'](r=>g[I(0x42f,0x437)](r))||l&&!k['skipNonWorkingTimeInDurationWhenSchedulingManually'])){return e(m,n,o);}});}*[B(0x589,0x57f)](){function J(a,b){return B(b- -0x5c3,a);}const d=yield*this[J(-0x52,-0x36)]();const e=this[J(-0x16,-0x15)]();const f=[yield this['$'][J(-0x19,-0x21)]];if(!d||e[J(-0x35,-0x11)]){const g=yield this['$']['assignmentsByCalendar'];f[J(0x9,-0xf)](...g[J(-0x27,-0x1b)]());}return e[J(-0x4f,-0x39)](f);}*[B(0x582,0x569)](){const d=yield this['$'][K(0x37e,0x35e)];const e=this['getProject']();const f=yield this['$'][K(0x367,0x345)];function K(a,b){return B(b- -0x25e,a);}const g=(yield this['$'][K(0x342,0x34e)])||(yield*this[K(0x31f,0x325)]())||f&&!e[K(0x364,0x354)];const h=new Map();for(const i of d){const j=yield i['$'][K(0x33c,0x318)];if(j&&(yield j['$'][K(0x321,0x338)])===ResourceType['Work']){const k=yield g?this['$'][K(0x353,0x344)]:j['$'][K(0x357,0x344)];let l=h['get'](k);if(!l){l=[];h['set'](k,l);}l[K(0x343,0x356)](i);}}return h;}*[B(0x5a1,0x58c)](){return{'ignoreResourceCalendar':![]};}*['useEventAvailabilityIterator'](){const d=yield this['$']['assignmentsByCalendar'];function L(a,b){return B(b- -0x309,a);}return d[L(0x268,0x26a)]>0x0;}*[B(0x57a,0x58a)](d,e=!![],f){if(!d)return null;function M(a,b){return B(a- -0xe1,b);}const g=yield this['$'][M(0x49a,0x4bf)];const h=yield this['$'][M(0x4cb,0x4bb)]||(yield*this['hasElapsedDuration']());if(yield*this[M(0x4b2,0x4d1)]()){const i=Object[M(0x4c8,0x4aa)](yield*this[M(0x4c0,0x4dc)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':M(0x4da,0x500)},f);let j;const k=yield*this[M(0x4d5,0x4eb)](i,(l,m,n)=>{j=e?l:m;return![];});if(k===CalendarIteratorResult['MaxRangeReached']||k===CalendarIteratorResult['FullRangeIterated']){const l=[yield this['$']['effectiveCalendar']];if(!i[M(0x4cb,0x4e5)]&&!h){l[M(0x4d3,0x4c7)](...g[M(0x4c7,0x4d1)]());}const m=SchedulerProEmptyCalendarEffect[M(0x4be,0x4c7)]({'event':this,'calendars':l,'date':d,'isForward':e});if((yield m)===EffectResolutionResult[M(0x4b9,0x4b6)]){yield Reject(m);}else{return null;}}return new Date(j);}else{return yield*b[M(0x499,0x4a6)][M(0x49c,0x495)](this,d,e);}}*['skipWorkingTime'](d,e,f,g,h){function N(a,b){return B(b- -0x2e2,a);}return yield*this[N(0x29a,0x2b5)](d,e,f,g,h);}*[B(0x579,0x590)](d,e,f,g,h=![]){function O(a,b){return B(a- -0x2b6,b);}if(!d||!e){return null;}if(yield*this[O(0x2dd,0x2c6)]()){const i=d[O(0x2e2,0x2cc)]()<=e[O(0x2e2,0x2df)]()||!h?0x1:-0x1;if(i<0x0){[d,e]=[e,d];}const j=Object[O(0x2f3,0x2ce)](yield*this[O(0x2eb,0x311)](),{'startDate':d,'endDate':e,'isForward':!![]},g,{'purpose':O(0x2fa,0x2e7)});const k=this[O(0x2f8,0x2d5)]()[O(0x2f9,0x2da)];let l=0x0;yield*this[O(0x300,0x2e1)](j,(m,n)=>{function P(a,b){return O(b- -0x41d,a);}l+=n[P(-0x148,-0x13b)]()-m['getTime']();if(k){const o=m['getTimezoneOffset']()-n['getTimezoneOffset']();l+=o*0x3c*0x3e8;}});if(!f)f=yield this['$'][O(0x2c2,0x2ae)];l=yield*this[O(0x2e8,0x2f3)](l,TimeUnit[O(0x2ea,0x2cd)],f);return i*l;}else{return yield*b[O(0x2c3,0x2ab)]['call'](this,d,e,f,g,h);}}*[B(0x597,0x594)](d,e=!![],f,g,h){if(f==null||isNaN(f)||d==null)return null;if(f===0x0)return d;g=g||(yield this['$'][Q(0x561,0x56a)]);const i=yield*this['convertDurationGen'](f,g,TimeUnit[Q(0x589,0x5a9)]);let j=d[Q(0x581,0x56b)]();function Q(a,b){return B(a- -0x17,b);}let k=i;const l=yield this['$'][Q(0x58b,0x56e)];const m=this[Q(0x5a3,0x598)];if(yield*this['useEventAvailabilityIterator']()){const n=Object[Q(0x592,0x5b6)](yield*this[Q(0x58a,0x597)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=this['getProject']()[Q(0x598,0x57d)];const p=yield*this[Q(0x59f,0x5c1)](n,(q,r,s)=>{const t=q[R(0x5cf,0x5d6)](),u=r[R(0x5d3,0x5d6)](),v=u-t,w=k-v;function R(a,b){return Q(b-0x55,a);}if(w<m){if(o){const x=e?q[R(0x5dc,0x5e8)]()-new Date(t+k)[R(0x5cf,0x5e8)]():new Date(u-k)['getTimezoneOffset']()-r['getTimezoneOffset']();k-=x*0x3c*0x3e8;}j=e?t+k:u-k;return![];}else{k-=v;if(o){const y=q[R(0x609,0x5e8)]()-r['getTimezoneOffset']();k-=y*0x3c*0x3e8;}}});return p===CalendarIteratorResult[Q(0x56e,0x580)]?new Date(j):null;}else{return l[Q(0x568,0x549)](d,i,e)[Q(0x55d,0x579)];}}}__decorate([field()],c[B(0x58e,0x5a0)],B(0x5a5,0x5cc),void 0x0);__decorate([field()],c[B(0x58e,0x593)],B(0x57b,0x588),void 0x0);__decorate([model_field({'type':B(0x590,0x56c)})],c[B(0x58e,0x5b2)],B(0x5ac,0x5ba),void 0x0);__decorate([calculate(B(0x5a5,0x5ad))],c[B(0x58e,0x5b0)],B(0x589,0x59d),null);function B(a,b){return _enb(a-0x39d,b);}__decorate([calculate(B(0x57b,0x55d))],c['prototype'],B(0x582,0x597),null);return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d5;let f=c[d];return f;};return _enb(a,b);}class SchedulerProEmptyCalendarEffect extends EmptyCalendarEffect{['getResolutions'](){function S(a,b){return _enb(a-0x1d,b);}if(!this[S(0x1f7,0x1f8)]()){return[IgnoreResourceCalendarEmptyCalendarEffectResolution[S(0x21f,0x227)]({'event':this[S(0x20b,0x1f0)]})];}return super[S(0x239,0x219)]();}}class IgnoreResourceCalendarEmptyCalendarEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enT(0x2e7,0x2fd)](){const {event:a}=this;function U(a,b){return _enT(a- -0x170,b);}return format(this['L'](U(0x172,0x16c)),a[U(0x16f,0x14b)]);}[_enT(0x30c,0x329)](){function V(a,b){return _enT(b- -0x3a7,a);}this[V(-0xa9,-0xbb)]['ignoreResourceCalendar']=!![];}}IgnoreResourceCalendarEmptyCalendarEffectResolution[_enT(0x318,0x32c)]=_enT(0x305,0x328);export{IgnoreResourceCalendarEmptyCalendarEffectResolution,SchedulerProEmptyCalendarEffect,SchedulerProHasAssignmentsMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function W(a,b){return _enb(a-0x33b,b);}while(!![]){try{const d=-parseInt(W(0x590,0x556))/0x1+parseInt(W(0x565,0x5b3))/0x2+parseInt(W(0x5ab,0x5cd))/0x3+parseInt(W(0x533,0x505))/0x4*(parseInt(W(0x585,0x5ce))/0x5)+-parseInt(W(0x51a,0x4e4))/0x6+-parseInt(W(0x56b,0x5b8))/0x7+parseInt(W(0x571,0x58d))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3ca72));var __decorate=function(a,b,e,f){var g=arguments[X(-0x2f,-0x11)],h=g<0x3?b:f===null?f=Object[X(-0xb1,-0x6d)](b,e):f,j;function X(a,b){return _enb(b- -0x25e,a);}if(typeof Reflect===X(-0x75,-0x36)&&typeof Reflect['decorate']===X(-0xb8,-0x83))h=Reflect[X(0x37,-0xc)](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['defineProperty'](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1db;let f=c[d];return f;};return _enb(a,b);}import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';function _ena(){const b9=['proposedStartDateMin','FixedDuration','195786zBvmYS','calculateProjectedDuration','type','calculateProposedStartOffsetRaw','Backward','positioning','set','effortDriven','proposedStartOffset','proposedAssignmentDuration','FixedUnits','effortUnit','forEach','phantomEndOffset','addProposedValueFlag','proposedStartOffsets','hasInputOnlyOnEffort','expandTrailingAssignmentsByDuration','calculateStartDate','end','calculateProjectedXDateWithDuration','proposedEndOffset','calculateMaxAssignmentProposedEndDate','calculateProjectedXDate','selector','MAX_VALUE','timePhasedData','982650uPHumH','hasOnlyTimePhasedAssignments','timePhasedIntervalsCache','calculateProposedAssignmentDuration','endDate','calculateEffortPure','isChangingOnlyEffortOnAssignment','hasSomeInput','ion','project','proposedEndDateArgs','prepare','calculateProposedStartDate','calculateProposedEndOffsets','calculateProposedEndOffsetRaw','push','event','isManuallyScheduled','minAssignmentProposedStartDate','calculateProposedStartDateMin','function','has','Forward','proposedTotalUnits','1774092OkjfQV','hasPreviousEffortValue','resolution','isSegmented','timePhasedDispatcher','Normal','calculateAssignmentsTypeSelector','HasProposedValue','maxAssignmentProposedEndDate','startDate','calculateDuration','calculateProposedStartOffsets','isChangingOnlyDuration','prototype','shouldSkipNonWorkingTime','calculateAssignmentUnits','units','getProject','getOwnPropertyDescriptor','calculateMaxAssignmentProposedEndDateIncludingPhantom','progressing','call','minOffset','getCalendarsWorking','effectiveSchedulingMode','8CdfXmD','effectiveDirection','isTimePhased','forEachAvailabilityInterval','some','maxCalendarRange','$convertDuration','isForward','dispatcher','calculateTotalAssignmentsEffort','direction','calculateProposedEndDateMax','minAssignment','hasTimePhasedInput','hasInputOnAssignments','purpose','expandTrailingAssigmentsByEffort','skipNonWorkingTimeInDurationWhenSchedulingManually','calculateHasOnlyRegularAssignmentsRaw','ignoreSegments','collectInfo','calculateProposedTotalUnits','ignoreResourceCalendar','isDurationDefinedByEffort','hasProposedAssignments','isChangingOnlyEffort','calculateMinAssignmentProposedStartDate','getDateShifter','assignmentsByCalendar','calculateProjectedXDateByEffort','hasUnitsOnAllAssignments','calculateTimePhasedIntervalsCache','graph','useEventAvailabilityIterator','assignmentsTypeSelector','isChangingOnlyEndDate','getBaseOptionsForDurationCalculations','expandTrailingAssigmentsByDates','new','getBaseOptionsForEffortCalculations','add','calculateEffort','Millisecond','calculateSelector','assign','skipNonWorkingTime','proposedMirror','delete','object','assigned','419650hKxYqT','proposedEndDateMax','move','calculateTimePhasedDispatcher','resource','regularAssignmentsByCalendar','1685467NpTbOq','proposedEndDate','input','time','Unknown\x20duration\x20scenario','size','460736dffvCa','calculateRegularAssignmentsByCalendar','hasInputOnEndDate','proposedStartDate','write','start','effort','duration','proposedEndOffsets','collectAssignmentsByCalendar','hasPreviousValueForUnits','get','isConstrainedAlongDirection','hasInputOnDuration','assignment','hasInputOnEffort','calculateProposedEndDate','hasPhantomTimePhasedAssignments','getTime','unscheduled','964290XaPYud','calculateEndDate','calculateProjectedEffort','length','effectiveCalendarsCombination','hasOnlyRegularAssignments','effectiveCalendar','getCalendarsWorkStatus','decorate'];_ena=function(){return b9;};return _ena();}import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){this['timePhasedData']=[];}[_enY(0x555,0x59b)](a){function Z(a,b){return _enY(a,b- -0x21c);}this['timePhasedData'][Z(0x357,0x37f)]({'time':a[Z(0x297,0x2e8)],'type':Z(0x34f,0x33b),'assignment':a['assignment']},{'time':a[Z(0x393,0x374)],'type':Z(0x3b2,0x368),'assignment':a[Z(0x33e,0x344)]});}[_enY(0x558,0x597)](){function a0(a,b){return _enY(b,a- -0x3d);}this[a0(0x54e,0x590)]['sort']((a,b)=>{return a['time']-b['time'];});}[_enY(0x533,0x548)](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a1(0x52f,0x517)][a1(0x506,0x4f5)]-0x1){if(g[a1(0x4ee,0x4db)]<=c){e[a1(0x4f2,0x4cf)](g[a1(0x4de,0x4ec)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a1(0x4b0,0x4db)]){e[a1(0x516,0x4cf)](g[a1(0x526,0x4ec)]);if(f(d,c,e)===![])return-0x1;return b;}}function a1(a,b){return _enY(a,b- -0x74);}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a1(0x4cb,0x517)][a1(0x514,0x4f5)];k+=h){const n=this[a1(0x4cc,0x517)][k];const o=a?n[a1(0x4e6,0x4db)]>=d:n[a1(0x4ed,0x4db)]<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a1(0x4a0,0x4db)]<c:n['time']>c;if(!p){if(j[a1(0x4de,0x4f0)]()!==n['time'][a1(0x4d3,0x4f0)]()){if(a){if(f(j,n[a1(0x507,0x4db)],e)===![])return-0x1;}else{if(f(n[a1(0x4d8,0x4db)],j,e)===![])return-0x1;}}const q=a?n[a1(0x4d6,0x4ff)]==='start':n[a1(0x4d8,0x4ff)]==='end';if(q)e[a1(0x48a,0x4c8)](n[a1(0x517,0x4ec)]);else e[a1(0x4e4,0x4cf)](n['assignment']);}l=k;j=n['time'];}if(l===void 0x0){return k;}const m=this[a1(0x4f2,0x517)][l];if(a){e['delete'](m[a1(0x502,0x4ec)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a1(0x4d0,0x4cf)](m[a1(0x520,0x4ec)]);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){function a2(a,b){return _enY(a,b- -0x69f);}this[a2(-0xea,-0x103)]=null;this[a2(-0x18a,-0x183)]=null;this[a2(-0x11a,-0x13e)]=![];this[a2(-0x14a,-0x140)]=![];this[a2(-0x12a,-0x14b)]=![];this[a2(-0x150,-0x109)]=null;this[a2(-0x1c4,-0x17d)]=![];this[a2(-0x150,-0x1a3)]=![];}get[_enY(0x519,0x52d)](){function a3(a,b){return _enY(a,b-0x8a);}const a=this[a3(0x593,0x5a6)];return this[a3(0x5cc,0x5eb)]&&!Boolean(a['input'][a3(0x5fc,0x5e7)](StartVar)&VariableInputState[a3(0x59b,0x58c)])&&!Boolean(a[a3(0x603,0x5d8)][a3(0x5d0,0x5e7)](EndVar)&VariableInputState[a3(0x5cb,0x58c)])&&!Boolean(a['input'][a3(0x5c9,0x5e7)](DurationVar)&VariableInputState['HasProposedValue'])&&!a['hasTimePhasedInput'];}get[_enY(0x52f,0x507)](){const a=this[a4(0x5d6,0x59e)];function a4(a,b){return _enY(b,a-0xba);}return this[a4(0x619,0x65a)]&&!Boolean(a[a4(0x608,0x5f5)][a4(0x617,0x613)](StartVar)&VariableInputState[a4(0x5bc,0x5d0)])&&!Boolean(a[a4(0x608,0x634)][a4(0x617,0x655)](EndVar)&VariableInputState[a4(0x5bc,0x5eb)])&&!Boolean(a[a4(0x608,0x648)]['get'](EffortVar)&VariableInputState[a4(0x5bc,0x587)])&&!a[a4(0x5db,0x5c7)];}get[_enY(0x4e3,0x537)](){const a=this[a5(-0x1e2,-0x1a8)];const b=this[a5(-0x119,-0x12e)];function a5(a,b){return _enY(a,b- -0x6c4);}return this[a5(-0x14e,-0x170)]&&(!b||!b[0x0])&&!Boolean(a['input'][a5(-0x16e,-0x167)](StartVar)&VariableInputState[a5(-0x1e3,-0x1c2)])&&!Boolean(a['input'][a5(-0x14d,-0x167)](DurationVar)&VariableInputState[a5(-0x200,-0x1c2)])&&!Boolean(a[a5(-0x1b1,-0x176)][a5(-0x1b4,-0x167)](EffortVar)&VariableInputState['HasProposedValue'])&&!a[a5(-0x1c1,-0x1a3)];}*[_enY(0x55f,0x528)](){const a=this[a6(0x2b3,0x2c7)];this['hasInputOnEffort']=yield HasProposedNotPreviousValue(a['$'][a6(0x26f,0x258)]);this[a6(0x276,0x236)]=yield HasProposedNotPreviousValue(a['$'][a6(0x270,0x232)]);this[a6(0x26b,0x256)]=yield HasProposedNotPreviousValue(a['$'][a6(0x2a7,0x2a5)]);this[a6(0x233,0x22c)]=yield a['$'][a6(0x216,0x1f4)];function a6(a,b){return _enY(b,a- -0x2e9);}this[a6(0x2ad,0x279)]=yield ProposedArgumentsOf(a['$']['endDate']);this[a6(0x239,0x255)]=yield*a[a6(0x243,0x256)]();this[a6(0x213,0x253)]=yield HasPreviousValue(a['$'][a6(0x26f,0x28e)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a7(0x278,0x279)]=null;this['assigned']=null;this[a7(0x247,0x266)]=null;this[a7(0x269,0x218)]=null;function a7(a,b){return _enY(b,a- -0x324);}this[a7(0x20e,0x241)]=null;this[a7(0x23f,0x23a)]=null;}*['collectInfo'](){function a8(a,b){return _enY(a,b- -0xb);}const a=this['event'];const b=this['assigned']=yield a['$'][a8(0x534,0x53a)];if(b['size']===0x0){this[a8(0x53a,0x560)]=!![];this[a8(0x549,0x582)]=![];this[a8(0x511,0x558)]=![];this[a8(0x523,0x527)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a8(0x52c,0x560)]===null&&e[a8(0x52f,0x50b)]){this['hasOnlyRegularAssignments']=![];c++;}if(this[a8(0x5cf,0x582)]===null&&!e[a8(0x55e,0x50b)]){this[a8(0x5b5,0x582)]=![];c++;}if(this[a8(0x582,0x558)]===null&&e['isPhantomTimePhased']){this[a8(0x55f,0x558)]=!![];c++;}if(this[a8(0x51b,0x527)]===null&&!e[a8(0x579,0x551)]){this['hasUnitsOnAllAssignments']=![];c++;}if(c===0x4)break;}if(this[a8(0x553,0x560)]===null)this[a8(0x580,0x560)]=!![];if(this[a8(0x531,0x582)]===null)this['hasOnlyTimePhasedAssignments']=!![];if(this[a8(0x515,0x558)]===null)this[a8(0x594,0x558)]=![];if(this[a8(0x4e9,0x527)]===null)this[a8(0x573,0x527)]=!![];}}}function _enY(a,b){return _enb(b-0x31c,a);}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a['prototype'];class c extends a{*[a9(0x18c,0x156)](){const d=yield this['$'][aa(0x65,0x68)];let e=0x0;function aa(a,b){return a9(a- -0x143,b);}for(const f of d){const g=yield f['$']['resource'];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$'][aa(0x2b,0x14)]);e+=h;}return e;}*[a9(0x1fb,0x1dd)](){function ab(a,b){return a9(b- -0x35b,a);}return yield ProposedOrPreviousValueOf(this['$'][ab(-0x1e0,-0x1f4)]);}*[a9(0x1c5,0x1a8)](){function ac(a,b){return a9(a-0xc5,b);}return yield ProposedOrPreviousValueOf(this['$'][ac(0x2b8,0x265)]);}*[a9(0x202,0x21d)](){function ad(a,b){return a9(a- -0xe9,b);}const d=yield this['$'][ad(0xcf,0xdc)];const e=yield this['$'][ad(0x118,0x131)];return d<e?d:e??d;}*[a9(0x182,0x1ac)](){const d=yield this['$'][ae(0x405,0x3f1)];const e=yield this['$'][ae(0x3bb,0x3be)];function ae(a,b){return a9(a-0x255,b);}return d>e?d:e??d;}*[a9(0x169,0x132)](){function af(a,b){return a9(a-0x45a,b);}const d=yield this['$'][af(0x602,0x64a)];const e=new Map();let f;let g=Number[af(0x647,0x673)];for(const h of d){if(yield*h[af(0x5d3,0x5fa)]()){const i=yield*h[af(0x631,0x5e4)]();e[af(0x634,0x5ed)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a9(0x1fc,0x22f)](){const d=yield this['$'][ag(0x445,0x44d)];function ag(a,b){return a9(a-0x29d,b);}const e=new Map();let f;let g=Number[ag(0x48a,0x45d)];for(const h of d){if(yield*h[ag(0x416,0x3f7)]()){const i=yield*h[ag(0x49a,0x48e)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a9(0x164,0x18d)](){const d=new TimePhasedEventAssignmentTypeSelector();d[ah(0x20e,0x237)]=this;function ah(a,b){return a9(a-0xf,b);}yield*d[ah(0x19a,0x1bb)]();return d;}*['calculateSelector'](){function ai(a,b){return a9(b-0x227,a);}const d=new TimePhasedEventSelector();d[ai(0x479,0x426)]=this;yield*d[ai(0x3d2,0x3b2)]();return d;}*[a9(0x1ac,0x1d9)](d){const e=TimePhasedEventAssignmentDispatcher[aj(-0xd5,-0x86)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e[aj(-0xe7,-0x12a)](d,this['$'][aj(-0x10b,-0xe5)],StartVar);e[aj(-0xe7,-0x10f)](d,this['$'][aj(-0x7f,-0x55)],EndVar);e[aj(-0xe7,-0x10e)](d,this['$'][aj(-0xb6,-0xc2)],DurationVar);e[aj(-0xe7,-0xe9)](d,this['$'][aj(-0xb7,-0xec)],EffortVar);const f=yield this['$']['assigned'];const g=[];const h=[];const i=[];function aj(a,b){return a9(a- -0x272,b);}const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$'][aj(-0x10b,-0xc2)])]);h[aj(-0x74,-0xb7)]([null,yield HasProposedNotPreviousValue(k['$'][aj(-0x7f,-0xa7)])]);i[aj(-0x74,-0x99)]([null,yield HasProposedNotPreviousValue(k['$'][aj(-0xb6,-0xad)])]);j[aj(-0x74,-0x75)]([null,yield HasProposedNotPreviousValue(k['$']['effort'])]);}if(g['some'](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[aj(-0xf7,-0x128)](([l,m])=>m)){e[aj(-0x90,-0xb9)](TimePhasedEndDate);}if(i[aj(-0xf7,-0xd8)](([l,m])=>m)){e[aj(-0x90,-0x5b)](TimePhasedDuration);}if(j[aj(-0xf7,-0x104)](([l,m])=>m)){e[aj(-0x90,-0x63)](TimePhasedEffort);e[aj(-0x90,-0xd9)](EffortVar);}return e;}*[a9(0x196,0x1ac)](){const d=new Map();function ak(a,b){return a9(b- -0x18b,a);}const e=new Map();const f=yield this['$'][ak(0x44,0x1d)];for(const g of f){if(yield*g['isTimePhased']()){e[ak(0x57,0x4f)](g,{'proposedStartOffset':yield g['$'][ak(0x61,0x51)],'proposedEndOffset':yield g['$'][ak(0x8a,0x5e)]});}}return function*(h,i){const j=String(i[al(0x1da,0x21a)]())+'/'+(h?'1':'0');let k=d[al(0x262,0x213)](j);if(k){return k;}function al(a,b){return ak(a,b-0x1de);}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l['calculateProjectedXDateWithDuration'](i,!![],m[al(0x252,0x22f)],TimeUnit['Millisecond']);n=yield*l[al(0x1da,0x1f7)](n,!![]);o=yield*l[al(0x25a,0x23e)](n,!![]);}else{const p=yield l['$'][al(0x27e,0x23f)];o=yield*l['calculateProjectedXDateWithDuration'](i,![],p['isUserTimePhased']?m[al(0x20c,0x23c)]:yield l['$'][al(0x21a,0x234)],TimeUnit[al(0x23e,0x1f4)]);n=yield*l[al(0x20e,0x23e)](o,![]);}if(n&&o)k[al(0x24d,0x251)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[al(0x24e,0x24d)]();d[al(0x21e,0x22d)](j,k);return k;};}*['calculateStartDate'](){const d=yield*this[am(0x359,0x354)]();function am(a,b){return a9(b-0x186,a);}if(d||(yield this['$'][am(0x30c,0x2e7)])){return yield*super[am(0x323,0x36c)]();}else{const e=yield this['$'][am(0x2d3,0x2fe)];const f=yield*this[am(0x386,0x347)](e[am(0x2d7,0x307)]);const g=yield this['$'][am(0x326,0x305)];const h=yield this['$'][am(0x29f,0x2e8)];const i=yield PreviousValueOf(this['$']['startDate']);if(!(yield*this[am(0x3d9,0x386)]())&&!(yield this['$'][am(0x393,0x34e)])&&f){if(g[am(0x32f,0x2e6)][am(0x31c,0x346)](_ene)===CalculateProposed&&i!=null&&!h[am(0x2e2,0x30a)]){const j=yield ProposedOrPrevious;if(e['direction']===Direction['Forward']){yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}else{if(j<i){yield*this['expandTrailingAssigmentsByDates'](i,j,![]);}}}return yield*super['calculateStartDate']();}else{if(e[am(0x2b9,0x307)]===Direction[am(0x2b2,0x2e2)]){const k=yield*super[am(0x3c0,0x36c)]();const l=yield this['$'][am(0x39e,0x387)];return l?l<k?l:k:k;}else{if(g[am(0x2a0,0x2e6)][am(0x337,0x346)](_ene)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[am(0x330,0x36e)](yield this['$'][am(0x352,0x379)],![],yield this['$']['duration']);}if(g['resolution'][am(0x351,0x346)](_ene)===CalculateProposed&&!h[am(0x35c,0x30a)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[am(0x335,0x322)](i,m,![]);}return yield*super['calculateStartDate']();}}}}*[a9(0x1ca,0x1fa)](){function an(a,b){return a9(a-0x2fc,b);}const d=yield*this[an(0x4ca,0x4ac)]();if(d||(yield this['$'][an(0x45d,0x451)])){return yield*super[an(0x4c6,0x4b7)]();}else{const e=yield this['$']['effectiveDirection'];const f=yield*this[an(0x4bd,0x4c6)](e['direction']);if(!(yield*this[an(0x4fc,0x511)]())&&!(yield this['$'][an(0x4c4,0x510)])&&f){return yield*super['calculateEndDate']();}else{if(e[an(0x47d,0x488)]===Direction[an(0x458,0x489)]){const g=yield this['$'][an(0x47b,0x4b1)];const h=yield this['$'][an(0x45e,0x415)];if(g[an(0x45c,0x4a6)][an(0x4bc,0x4d9)](_end)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[an(0x4e4,0x4e5)](yield this['$']['startDate'],!![],yield this['$']['duration']);}const i=yield PreviousValueOf(this['$'][an(0x4ef,0x539)]);if(g[an(0x45c,0x47b)]['get'](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[an(0x498,0x448)](i,j,!![]);}return yield*super[an(0x4c6,0x47d)]();}else{const k=yield*super['calculateEndDate']();const l=yield this['$'][an(0x462,0x498)];return l>k?l:k;}}}}*[a9(0x1f5,0x1c3)](){const d=yield this['$'][ao(0x80,0x37)];function ao(a,b){return a9(b- -0x171,a);}let e=![];for(const f of d){const g=yield f['$'][ao(0xb9,0x7b)];if(g[ao(0x35,0x53)])e=!![];if(g[ao(0x8f,0x85)]&&!g[ao(0x78,0x73)])return![];}return e;}*['hasUnitsOnAllAssignments'](){const d=yield this['$'][ap(0x559,0x584)];function ap(a,b){return a9(a-0x3c0,b);}return d[ap(0x555,0x55f)];}*[a9(0x190,0x164)](){const d=yield this['$'][aq(0x162,0x19e)];function aq(a,b){return a9(a- -0x8a,b);}return d[aq(0x106,0xc1)];}*[a9(0x16a,0x172)](){function ar(a,b){return a9(a-0x17e,b);}const d=yield this['$'][ar(0x36a,0x39b)];return d['isChangingOnlyDuration'];}*['isChangingOnlyEndDate'](){const d=yield this['$'][as(0x2ed,0x2bc)];function as(a,b){return a9(a-0x101,b);}return d[as(0x29b,0x278)];}*[a9(0x168,0x123)](){const d=yield*this[at(0x22a,0x227)]();function at(a,b){return a9(a-0x5c,b);}if(d||(yield this['$'][at(0x1bd,0x1d9)])){return yield*super['calculateDuration']();}else{const e=yield this['$'][at(0x1d4,0x1ff)];const f=e['direction']===Direction['Forward'];const g=yield this['$'][at(0x1db,0x20e)];const h=yield this['$']['timePhasedDispatcher'];if(g[at(0x1bc,0x1ca)][at(0x21c,0x1cb)](_enc)===durationFormula['formulaId']&&!h[at(0x1e0,0x203)]){const i=yield*super['calculateDuration']();yield*this[at(0x241,0x253)](i,f);return i;}if(g['resolution'][at(0x21c,0x24e)](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&!(h[at(0x20d,0x20c)][at(0x21c,0x1f1)](DurationVar)&VariableInputState[at(0x1c1,0x1d3)])){const j=yield ProposedOrPrevious;return j;}if(g[at(0x1bc,0x1a9)][at(0x21c,0x243)](_enc)===CalculateProposed&&!h[at(0x1e0,0x1dc)]&&h['input']['get'](DurationVar)&VariableInputState[at(0x1c1,0x1f5)]){const k=yield ProposedOrPrevious;yield*this['expandTrailingAssignmentsByDuration'](k,f);const l=yield*this['hasOnlyTimePhasedAssignments']();const m=yield this['$']['proposedAssignmentDuration'];return l?k>m?m:k:k;}if(!h[at(0x1e0,0x1bb)]){const n=yield ProposedOrPrevious;yield*this[at(0x241,0x264)](n,f);return n;}else if(h['hasTimePhasedInput']){const o=yield*this[at(0x24c,0x22b)]();const p=yield this['$']['proposedAssignmentDuration'];if(o){return p;}else{return Math['max'](p,yield ProposedOrPrevious);}}else{throw new Error(at(0x20f,0x239));}}}*[a9(0x1a0,0x178)](){function au(a,b){return a9(a-0x1b0,b);}const d=yield this['$']['childEvents'];if(d[au(0x364,0x3b5)]>0x0||(yield this['$']['isSegmented']))return yield*super['calculateEffort']();else{const e=yield*this[au(0x326,0x346)]();const f=yield this['$'][au(0x343,0x385)];if(e===SchedulingMode['Normal']){if(f[au(0x364,0x321)]>0x0){if(yield*this['isChangingOnlyEffort']()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][au(0x36b,0x351)]);if(g<=h){return g;}else{const i=yield this['$']['effectiveDirection'];yield*this[au(0x337,0x2fb)](g,h,i[au(0x331,0x2ee)]===Direction[au(0x30c,0x31b)]);return g;}}else{return yield*this[au(0x3a4,0x371)]();}}else{return yield*super[au(0x350,0x390)]();}}else{return yield*this[au(0x3a4,0x35a)]();}}}*[a9(0x1f4,0x1c6)](){if(yield this['$'][av(0x23f,0x1f9)]){return yield*super[av(0x2ac,0x28c)]();}const d=yield this['$'][av(0x244,0x240)];function av(a,b){return a9(b-0x98,a);}if(d[av(0x256,0x24c)]>0x0){return yield*this[av(0x1f4,0x218)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][av(0x216,0x253)]);if(e===void 0x0){return yield*this[av(0x261,0x263)](yield this['$']['startDate'],yield this['$'][av(0x2cb,0x28b)]);}else{return e;}}}*[a9(0x180,0x186)](){let d=0x0;function aw(a,b){return a9(a- -0x2a3,b);}const e=yield this['$'][aw(-0xfb,-0x140)];for(const f of e){d+=yield*this[aw(-0x134,-0x175)]()[aw(-0x126,-0x13a)](yield f['$'][aw(-0xe8,-0xb0)],yield f['$'][aw(-0xc4,-0xf5)],TimeUnit['Millisecond']);}return yield*this[aw(-0x134,-0x16f)]()[aw(-0x126,-0x106)](d,TimeUnit['Millisecond'],yield this['$']['effortUnit']);}*['calculateAssignmentUnits'](d){function ax(a,b){return a9(a- -0x2bc,b);}return yield*d[ax(-0x14f,-0x1a3)](null);}*[a9(0x192,0x1aa)](d){function ay(a,b){return a9(a- -0x206,b);}if(yield*this[ay(-0x78,-0x58)]()){const e=this;const f=yield this['$']['effort'];return function*(g){function az(a,b){return ay(a-0x4be,b);}return yield*e[az(0x44c,0x438)](g,d,f);};}else{return yield*super[ay(-0x74,-0x4b)](d);}}*[a9(0x18e,0x1e3)](){const d=yield*this['effectiveSchedulingMode']();const e=yield this['$'][aA(0x4b8,0x4a3)];function aA(a,b){return a9(a-0x2dd,b);}return d!==SchedulingMode[aA(0x4b0,0x45d)]&&d!==SchedulingMode[aA(0x440,0x42c)]&&(e||d===SchedulingMode['FixedEffort'])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this[aA(0x477,0x498)]())||d===SchedulingMode[aA(0x4bb,0x4e5)]&&(yield*this[aA(0x4d2,0x4dc)]())&&(yield*this[aA(0x472,0x497)]());}*[a9(0x16c,0x16f)](){function aB(a,b){return a9(a-0x1c7,b);}if(yield*this[aB(0x355,0x39a)]()){return(yield this['$'][aB(0x382,0x36f)])>0x0;}else{return yield*super['shouldSkipNonWorkingTime']();}}*[a9(0x1e5,0x231)](d,e=!![]){const f=yield this['$'][aC(0x57c,0x528)];function aC(a,b){return a9(b-0x34b,a);}if(f==null)return;if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$']['endDate']);const h=yield*this['calculateProjectedXDateWithDuration'](g,!![],d-f,void 0x0,{'purpose':aC(0x539,0x524)});yield*this['expandTrailingAssigmentsByDates'](g,h,e);}else{const i=yield PreviousValueOf(this['$'][aC(0x46a,0x4b2)]);const j=yield*this[aC(0x530,0x533)](i,![],d-f,void 0x0,{'purpose':aC(0x546,0x524)});yield*this[aC(0x52c,0x4e7)](i,j,e);}}}*[a9(0x19c,0x188)](d,e,f=!![]){if(d[aD(-0xad,-0x79)]()===e[aD(-0xcc,-0x79)]()){return;}const g=yield this['$'][aD(-0xd9,-0x98)];const h=[];for(const i of g){if(yield*i['isTimePhased']()){if(f){const j=yield PreviousValueOf(i['$'][aD(0x7,-0x4d)]);if(j&&j[aD(-0xb4,-0x79)]()===d[aD(-0x4c,-0x79)]())h['push'](i);}else{const k=yield PreviousValueOf(i['$']['startDate']);if(k&&k['getTime']()===d[aD(-0x60,-0x79)]())h['push'](i);}}}function aD(a,b){return a9(b- -0x240,a);}this[aD(-0x11,-0x48)][aD(-0x97,-0x49)]({'commitFinalized':{'fn':()=>{function aE(a,b){return aD(b,a-0x406);}h[aE(0x3a6,0x35a)](l=>{function aF(a,b){return aE(a- -0x33f,b);}this[aF(0x1e,0x29)][aF(0x40,0x5d)](f?l['$'][aF(0x7a,0x77)]:l['$'][aF(-0x12,-0x57)],e,![]);});},'once':!![]}});}*[a9(0x187,0x147)](d,e,f=!![]){function aG(a,b){return a9(a-0x1ef,b);}const g=f?yield PreviousValueOf(this['$'][aG(0x3e2,0x395)]):yield PreviousValueOf(this['$'][aG(0x356,0x318)]);const h=yield this['$']['assigned'];const i=new Set();for(const l of h){if(yield*l[aG(0x368,0x36d)]()){if(f){const m=yield PreviousValueOf(l['$'][aG(0x3e2,0x396)]);if(m&&m[aG(0x3b6,0x401)]()===g[aG(0x3b6,0x3fe)]())i[aG(0x38e,0x36b)](l);}else{const n=yield PreviousValueOf(l['$'][aG(0x356,0x363)]);if(n&&n['getTime']()===g[aG(0x3b6,0x3b6)]())i[aG(0x38e,0x342)](l);}}}const j=yield*this[aG(0x3ad,0x3ed)](function*(o){function aH(a,b){return aG(b- -0x47b,a);}return i[aH(-0x172,-0x131)](o)||!(yield*o[aH(-0x118,-0x113)]());});const k=yield*this[aG(0x383,0x3c7)](g,f,d-e,void 0x0,void 0x0,j);this[aG(0x3e7,0x3cc)][aG(0x3e6,0x40f)]({'commitFinalized':{'fn':()=>{function aI(a,b){return aG(a- -0x52a,b);}i[aI(-0x15b,-0x197)](o=>{function aJ(a,b){return aI(b-0x2df,a);}this[aJ(0x131,0x13b)]['write'](f?o['$']['endDate']:o['$'][aJ(0x13f,0x10b)],k,![]);});},'once':!![]}});}*[a9(0x198,0x17f)](){return!![];}*[a9(0x1f2,0x226)](){const d=yield this['$'][aK(0x187,0x156)];function aK(a,b){return a9(b- -0x22,a);}return d[aK(0x1b3,0x15f)]===Direction['Forward']?yield*this['calculateProjectedDuration'](yield this['$'][aK(0x1f0,0x1b0)],(yield*this[aK(0x1f1,0x1a4)]())?yield*this[aK(0x17b,0x14f)]():yield this['$']['maxAssignmentProposedEndDate'],void 0x0,{'isForward':!![]}):yield*this[aK(0x19f,0x1b3)](yield this['$'][aK(0x1ce,0x1df)],yield this['$'][aK(0x187,0x188)],void 0x0,{'isForward':![]});}*[a9(0x1d5,0x210)](d,e,f,g,...h){function aL(a,b){return a9(a-0x211,b);}const i=yield this['$'][aL(0x389,0x38b)];const j=g?.[aL(0x38f,0x360)]!==void 0x0?g:i['direction']===Direction[aL(0x36d,0x392)]?Object[aL(0x3b4,0x37b)]({},g,{'isForward':!![]}):Object['assign']({},g,{'isForward':![]});return yield*super[aL(0x3e6,0x3dc)](d,e,f,j,...h);}*[a9(0x1b6,0x1ef)](){return yield*this['collectAssignmentsByCalendar'](function*(d){function aM(a,b){return _enb(b-0x2b5,a);}return!(yield*d[aM(0x49d,0x4af)]());});}*['calculateAssignmentsByCalendar'](){function aN(a,b){return a9(a- -0x37,b);}return yield*this[aN(0x187,0x17c)]();}*[a9(0x1be,0x19b)](d){const e=yield this['$'][aO(0x55e,0x50b)];const f=yield this['$'][aO(0x4ad,0x4e4)];const g=this[aO(0x494,0x4ab)]();const h=yield*this[aO(0x51f,0x53c)]();function aO(a,b){return a9(b-0x33c,a);}const i=(yield this['$'][aO(0x477,0x4c9)])||h&&!g[aO(0x4a6,0x4c4)];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aO(0x4e7,0x4e9)];const m=i||(yield k['$'][aO(0x47b,0x4c9)]);if(l){const n=m?e:yield l['$'][aO(0x51f,0x50b)];let o=j[aO(0x543,0x4fc)](n);if(!o){o=[];j[aO(0x4e8,0x516)](n,o);}o[aO(0x525,0x53a)](k);}}}return j;}*[a9(0x17a,0x1b3)](d,e){const f=d[aP(-0x16d,-0x17f)]??aP(-0x12b,-0x12c);if(f==='positioning'||(yield*this['hasOnlyRegularAssignments']())||d[aP(-0x14f,-0x17b)]||(yield this['$']['isSegmented'])){return yield*super[aP(-0x195,-0x18b)](d,e);}const g=d['isForward']!==![];function aP(a,b){return a9(b- -0x305,a);}const h=yield this['$'][aP(-0x16f,-0x136)];const i=this[aP(-0x1b9,-0x196)]();const j=yield*this[aP(-0x126,-0x105)]();const k=yield this['$'][aP(-0x139,-0x157)];const l=yield this['$'][aP(-0x18a,-0x138)];const m=(yield this['$'][aP(-0x18d,-0x178)])||d[aP(-0x160,-0x178)];const n=d['ignoreTimePhasedData']??![];const o=i[aP(-0x14b,-0x189)];if(o){d=Object[aP(-0x172,-0x162)]({'maxRange':o},d);}const p=yield this['$'][aP(-0x131,-0x114)];const q=yield*p(g,g?d[aP(-0x194,-0x19e)]:d['endDate']);let r=g?0x0:q[aP(-0x15d,-0x117)][aP(-0xef,-0x139)]-0x1;let s=g?d[aP(-0x175,-0x19e)]:d[aP(-0x146,-0x112)];const t=new Set();const u=l['forEachAvailabilityInterval'](d,(v,w,x)=>{const y=x[aQ(0x16b,0x119)]();const z=x[aQ(0x7a,0xbe)]();function aQ(a,b){return aP(a,b-0x24e);}r=q[aQ(0xb1,0xf4)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aQ(0xe4,0xf4)](g,r,s,g?w:v,t,(A,B,C)=>{function aR(a,b){return aQ(b,a-0x418);}if(y[aR(0x521,0x568)](h)&&(n||someInSet(C,D=>{function aS(a,b){return aR(b- -0x32a,a);}return m||D[aS(0x187,0x1c4)]||y['get'](D[aS(0x1cf,0x1e4)][aS(0x236,0x206)])||j&&!i[aS(0x1e1,0x1bf)];})||z[aR(0x4dc,0x4c5)](D=>k[aR(0x4bc,0x495)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*[a9(0x189,0x134)](){const d=yield this['$'][aT(-0x5d,-0x59)];function aT(a,b){return a9(b- -0x201,a);}for(const e of d){if(yield*e['isUserTimePhased']())return![];}return!![];}*[a9(0x1ce,0x21f)](){function aU(a,b){return a9(b-0x2c4,a);}const d=yield this['$'][aU(0x421,0x45d)];return d[aU(0x4a8,0x492)];}*[a9(0x1f0,0x19d)](){const d=yield this['$'][aV(-0x15c,-0x197)];function aV(a,b){return a9(a- -0x2f5,b);}return d[aV(-0x105,-0x146)];}*[a9(0x1c6,0x204)](){function aW(a,b){return a9(b- -0x2fe,a);}const d=yield this['$'][aW(-0x176,-0x165)];return d[aW(-0x113,-0x138)];}*['calculateMinAssignmentProposedStartDate'](){let d=MAX_DATE;const e=yield this['$'][aX(0x276,0x240)];function aX(a,b){return a9(a-0xce,b);}for(const f of e){const g=yield f[aX(0x273,0x2c4)]['$']['startDate'];if(g&&g<d)d=g;}return d[aX(0x295,0x252)]()-MAX_DATE[aX(0x295,0x274)]()?d:null;}*[a9(0x1ea,0x230)](){let d=MIN_DATE;const e=yield this['$'][aY(0x416,0x3fa)];for(const f of e){const g=yield f[aY(0x413,0x420)]['$'][aY(0x461,0x472)];if(g&&g>d)d=g;}function aY(a,b){return a9(a-0x26e,b);}return d['getTime']()-MIN_DATE[aY(0x435,0x41a)]()?d:null;}*['calculateMaxAssignmentProposedEndDateIncludingPhantom'](){let d=MIN_DATE;const e=yield this['$'][aZ(0x136,0x13e)];function aZ(a,b){return a9(a- -0x72,b);}for(const f of e){const g=(yield*f[aZ(0x107,0xe1)]())?(yield*f['isUserTimePhased']())?yield f['proposedMirror']['$'][aZ(0x181,0x149)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d['getTime']()-MIN_DATE[aZ(0x155,0x181)]()?d:null;}*[a9(0x1cb,0x1a1)](d,e,f){const g=yield*this[b0(0x3e3,0x436)]();if(g||(yield this['$'][b0(0x413,0x3c9)])){return yield*super['calculateProjectedEffort'](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][b0(0x413,0x416)];const i=new Map();function b0(a,b){return a9(b-0x268,a);}for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][b0(0x3c2,0x3d6)];}i[b0(0x40c,0x442)](l,n);}let j=0x0;const k=Object[b0(0x43c,0x40b)](yield*this[b0(0x458,0x406)](),{'startDate':d,'endDate':e},{'purpose':b0(0x403,0x3da)});yield*this['forEachAvailabilityInterval'](k,(p,q,r,s)=>{function b1(a,b){return b0(a,b- -0x3bb);}const t=r[b1(0x64,0x22)]();const u=p[b1(0x53,0x74)](),v=q[b1(0x66,0x74)](),w=v-u;let x=0x0;for(const y of t){x+=i[b1(0xa9,0x6d)](y)||0x0;}if(!f){s[b1(0x7a,0x8d)](z=>{x+=z['units'];});}j+=x*w*0.01;});return yield*this[b0(0x3f5,0x3d7)]()[b0(0x3ea,0x3e5)](j,TimeUnit[b0(0x3c3,0x409)],yield this['$'][b0(0x42b,0x447)]);}*[a9(0x1e8,0x237)](d,e=!![],f,g,h){const i=yield*super[b2(0x20e,0x1dd)](d,e,f,g,h);function b2(a,b){return a9(b- -0xb,a);}if(yield this['$'][b2(0x196,0x156)])return i;const j=yield*this[b2(0x194,0x1e5)]();if(j){const k=yield this['$'][b2(0x161,0x16d)];if(k[b2(0x178,0x176)]===Direction[b2(0x167,0x151)]&&e===![]){const l=yield this['$'][b2(0x1e8,0x1d8)];const m=l[b2(0x1bd,0x169)];if(m>0x0){return yield*l[b2(0x159,0x178)]['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit[b2(0x1b1,0x196)]);}}else if(k['direction']===Direction[b2(0x1c6,0x1cd)]&&e===!![]){const n=yield this['$']['proposedEndOffsets'];const o=n['minOffset'];if(o>0x0){return yield*n[b2(0x138,0x178)][b2(0x1a1,0x1dd)](i,!![],o,TimeUnit[b2(0x1c8,0x196)]);}}}return i;}*['getBaseOptionsForDurationCalculations'](){function b3(a,b){return a9(a- -0x3c,b);}const d=yield*this[b3(0x13a,0x183)]();if(d===SchedulingMode[b3(0x197,0x1a3)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b['getBaseOptionsForDurationCalculations'][b3(0x137,0x151)](this);}}*['calculateProjectedXDateByEffort'](d,e=!![],f,g,h,i){if(yield this['$'][b4(0x2b8,0x2d6)]){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b4(0x33f,0x330)];g=g!==void 0x0?g:yield this['$'][b4(0x35f,0x354)];const j=yield*this[b4(0x32a,0x2e4)]()[b4(0x2c4,0x2f2)](f,g,TimeUnit[b4(0x316,0x316)]);if(d==null||f==null)return null;let k=d[b4(0x2fd,0x33c)]();let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object['assign'](yield*this[b4(0x2be,0x310)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this[b4(0x312,0x343)]();if(h?.[b4(0x340,0x2fb)]==='positioning'||o){const s=new Map();const t=yield this['$'][b4(0x324,0x31d)];let u=0x0;const v=new Map();for(const y of t){const z=yield y['$'][b4(0x2f6,0x2e3)];u+=z;v[b4(0x393,0x34f)](y,z);}if(u===0x0){return yield*super[b4(0x2cb,0x309)](d,e,f,g,h,i);}for(const A of t){s['set'](A,j*v[b4(0x33f,0x335)](A)/u);}const w=yield this['$'][b4(0x314,0x308)];const x=new Map();for(const [B,C]of w){for(const D of C){x['set'](D,B);}}yield*this[b4(0x32d,0x2ef)](n,(E,F,G)=>{const H=E[b5(0x53b,0x505)](),I=F[b5(0x513,0x505)](),J=I-H;for(const K of t){const L=x[b5(0x4b6,0x4fe)](K);if(G[b5(0x546,0x50e)]()['get'](L)){const M=s[b5(0x4c3,0x4fe)](K);let N=v[b5(0x528,0x4fe)](K);const O=N*J*0.01;const P=M-O;if(!P||P<m){const Q=e?H+M/(0.01*N):I-M/(0.01*N);if(e&&Q>k||!e&&Q<k){k=Q;}s[b5(0x4a3,0x4e4)](K);}else{s[b5(0x55c,0x518)](K,M-O);}}}function b5(a,b){return b4(a,b-0x1c9);}if(s['size']===0x0)return![];});return new Date(k);}const p=i?i:yield this['$']['regularAssignmentsByCalendar'];const q=new Map();(yield this['$'][b4(0x2b5,0x308)])[b4(0x394,0x355)]((E,F)=>{function b6(a,b){return b4(b,a- -0x36a);}E[b6(-0x15,0x1c)](G=>q['set'](G,F));});function b4(a,b){return a9(b-0x175,a);}const r=new Map();for(const [E,F]of p){let G=0x0;for(const H of F){G+=yield H['$'][b4(0x311,0x2e3)];}r[b4(0x30b,0x34f)](E,G);}yield*this[b4(0x2b3,0x2ef)](n,(I,J,K,L)=>{const M=K[b7(0x41c,0x459)]();const N=K[b7(0x493,0x4b4)]();const O=I['getTime'](),P=J[b7(0x4c8,0x4ab)](),Q=P-O;function b7(a,b){return b4(a,b-0x16f);}let R=0x0;for(const U of M){R+=r[b7(0x472,0x4a4)](U)||0x0;}if(!i){L[b7(0x49a,0x4c4)](V=>{function b8(a,b){return b7(b,a-0x16e);}if(N[b8(0x612,0x65b)](q[b8(0x612,0x64b)](V)))R+=V[b8(0x5c0,0x5ea)];});}const S=R*Q*0.01;const T=l-S;if(!T||T<m){k=e?O+l/(0.01*R):P-l/(0.01*R);return![];}else{l-=S;}});return new Date(k);}}function a9(a,b){return _enY(b,a- -0x39d);}__decorate([field({'lazy':!![]})],c[a9(0x16b,0x163)],a9(0x1b8,0x1b3),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x1a7)],'proposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x131)],a9(0x1d2,0x224),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x18d)],'proposedEndDateMax',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x1a0)],a9(0x201,0x231),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x186)],a9(0x166,0x14e),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x165)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x15b)],a9(0x199,0x19a),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a9(0x15d,0x14c),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[a9(0x16b,0x183)],a9(0x162,0x198),void 0x0);__decorate([field()],c[a9(0x16b,0x19c)],'selector',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x1bc)],a9(0x1e3,0x1f0),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x15d)],a9(0x1bd,0x1d3),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x16c)],a9(0x1ae,0x1a8),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x19e)],a9(0x1f1,0x1d0),void 0x0);__decorate([calculate(a9(0x15d,0x11e))],c['prototype'],a9(0x18c,0x1c8),null);__decorate([calculate(a9(0x1b8,0x1fc))],c[a9(0x16b,0x1a2)],'calculateProposedStartDate',null);__decorate([calculate(a9(0x1b0,0x1df))],c['prototype'],a9(0x1c5,0x17c),null);__decorate([calculate(a9(0x1d2,0x193))],c['prototype'],a9(0x202,0x1f2),null);__decorate([calculate('proposedEndDateMax')],c['prototype'],a9(0x182,0x197),null);__decorate([calculate(a9(0x1e3,0x219))],c['prototype'],a9(0x169,0x1b9),null);__decorate([calculate(a9(0x1bd,0x1bf))],c[a9(0x16b,0x14d)],a9(0x1fc,0x1c0),null);__decorate([calculate('assignmentsTypeSelector')],c[a9(0x16b,0x124)],'calculateAssignmentsTypeSelector',null);__decorate([calculate(a9(0x1ec,0x23c))],c[a9(0x16b,0x14b)],a9(0x1a2,0x1cd),null);__decorate([calculate('timePhasedDispatcher')],c[a9(0x16b,0x15a)],'calculateTimePhasedDispatcher',null);__decorate([calculate(a9(0x1f1,0x244))],c[a9(0x16b,0x11f)],a9(0x196,0x166),null);__decorate([calculate(a9(0x1dd,0x19c))],c[a9(0x16b,0x14f)],'calculateProposedAssignmentDuration',null);__decorate([calculate('regularAssignmentsByCalendar')],c['prototype'],a9(0x1b6,0x169),null);__decorate([calculate(a9(0x201,0x1ce))],c['prototype'],a9(0x191,0x140),null);__decorate([calculate(a9(0x166,0x145))],c[a9(0x16b,0x173)],a9(0x1ea,0x1c9),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|
|
1
|
+
(function(a,b){function W(a,b){return _enb(b- -0x382,a);}const c=a();while(!![]){try{const d=-parseInt(W(-0x20b,-0x1df))/0x1+-parseInt(W(-0x1e0,-0x192))/0x2+-parseInt(W(-0x160,-0x17d))/0x3*(-parseInt(W(-0x1be,-0x1e9))/0x4)+-parseInt(W(-0x1f7,-0x1d9))/0x5+parseInt(W(-0x1cc,-0x207))/0x6*(-parseInt(W(-0x1ae,-0x1c3))/0x7)+parseInt(W(-0x21a,-0x1e2))/0x8*(parseInt(W(-0x1a3,-0x1d3))/0x9)+-parseInt(W(-0x233,-0x1fc))/0xa*(-parseInt(W(-0x1ff,-0x1ce))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa4397));var __decorate=function(a,b,e,f){function X(a,b){return _enb(b- -0x31c,a);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[X(-0x13a,-0x164)](b,e):f,j;if(typeof Reflect===X(-0x16c,-0x12d)&&typeof Reflect[X(-0x105,-0x107)]===X(-0x13a,-0x15b))h=Reflect[X(-0xbd,-0x107)](a,b,e,f);else for(var k=a[X(-0x178,-0x134)]-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;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enY(a,b){return _enb(b-0xac,a);}function _ena(){const b7=['move','isChangingOnlyEffort','effortDriven','MAX_VALUE','isManuallyScheduled','push','hasInputOnEndDate','calculateProposedAssignmentDuration','hasInputOnDuration','units','assignmentsByCalendar','type','effectiveCalendar','expandTrailingAssigmentsByDates','isPhantomTimePhased','minAssignment','8KbbWHw','collectAssignmentsByCalendar','calculateTimePhasedDispatcher','timePhasedDispatcher','Millisecond','Forward','has','4112GGvGOM','progressing','hasOnlyRegularAssignments','961534Jiezvd','isDurationDefinedByEffort','calculateProposedEndOffsetRaw','graph','proposedEndDate','proposedEndOffsets','3540880BLwrFt','getBaseOptionsForDurationCalculations','duration','maxCalendarRange','direction','calculateDuration','18846Irsjkm','calculateAssignmentsTypeSelector','FixedUnits','call','minAssignmentProposedStartDate','11epJtep','calculateStartDate','assignmentsTypeSelector','assignment','getOwnPropertyDescriptor','isChangingOnlyEndDate','addProposedValueFlag','hasUnitsOnAllAssignments','resource','input','start','7168uFxhRi','regularAssignmentsByCalendar','function','calculateProposedStartDateMin','calculateRegularAssignmentsByCalendar','calculateProjectedEffort','ignoreResourceCalendar','delete','maxAssignmentProposedEndDate','hasInputOnAssignments','timePhasedIntervalsCache','assigned','expandTrailingAssignmentsByDuration','positioning','shouldSkipNonWorkingTime','isChangingOnlyDuration','timePhasedData','hasPhantomTimePhasedAssignments','forEach','effectiveDirection','skipNonWorkingTimeInDurationWhenSchedulingManually','isConstrainedAlongDirection','calculateAssignmentsByCalendar','proposedStartOffsets','project','collectInfo','getCalendarsWorkStatus','hasTimePhasedInput','proposedTotalUnits','getCalendarsWorking','hasProposedAssignments','effort','getProject','proposedEndOffset','write','calculateProposedStartOffsets','hasPreviousEffortValue','proposedEndDateMax','get','effortUnit','isSegmented','length','sort','calculateMaxAssignmentProposedEndDate','calculateProjectedXDate','calculateEndDate','proposedStartDate','getBaseOptionsForEffortCalculations','object','1468544JaUnIX','unscheduled','HasProposedValue','selector','hasOnlyTimePhasedAssignments','useEventAvailabilityIterator','ignoreTimePhasedData','event','calculateAssignmentUnits','calculateMinAssignmentProposedStartDate','some','proposedAssignmentDuration','endDate','proposedStartDateMin','proposedMirror','max','prototype','prepare','isTimePhased','calculateProposedStartOffsetRaw','startDate','1523391ZMpngB','resolution','effectiveSchedulingMode','set','calculateEffortPure','forEachAvailabilityInterval','hasSomeInput','time','calculateTimePhasedIntervalsCache','assign','dispatcher','calculateProjectedXDateWithDuration','ion','isForward','calculateProposedEndOffsets','getTime','decorate','add','calculateProposedStartDate','Normal','calculateProjectedDuration','isChangingOnlyEffortOnAssignment','calculateEffort','new','proposedEndDateArgs','childEvents','calculateProposedEndDate','size','1014SvKqji','minOffset','hasInputOnEffort','expandTrailingAssigmentsByEffort','formulaId','isUserTimePhased','$convertDuration','FixedEffort','end','calculateProjectedXDateByEffort','calculateSelector','11577910vBBTaD','getDateShifter','proposedStartOffset'];_ena=function(){return b7;};return _ena();}import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){this['timePhasedData']=[];}[_enY(0x24f,0x23a)](a){function Z(a,b){return _enY(a,b-0x1e);}this[Z(0x2a9,0x299)][Z(0x234,0x258)]({'time':a[Z(0x2b4,0x2ce)],'type':Z(0x283,0x288),'assignment':a['assignment']},{'time':a['endDate'],'type':Z(0x289,0x24d),'assignment':a['assignment']});}[_enY(0x2db,0x2ad)](){function a0(a,b){return _enY(a,b-0x2e8);}this[a0(0x569,0x563)][a0(0x5ae,0x57d)]((a,b)=>{function a1(a,b){return a0(a,b- -0x396);}return a[a1(0x21d,0x20a)]-b['time'];});}[_enY(0x283,0x235)](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a2(0x520,0x554)][a2(0x5a2,0x56d)]-0x1){if(g[a2(0x591,0x591)]<=c){e[a2(0x587,0x54b)](g['assignment']);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a2(0x597,0x591)]){e['delete'](g[a2(0x53c,0x53c)]);if(f(d,c,e)===![])return-0x1;return b;}}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a2(0x594,0x554)][a2(0x52d,0x56d)];k+=h){const n=this['timePhasedData'][k];const o=a?n[a2(0x564,0x591)]>=d:n[a2(0x595,0x591)]<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a2(0x57c,0x591)]<c:n[a2(0x550,0x591)]>c;if(!p){if(j['getTime']()!==n[a2(0x57f,0x591)][a2(0x54d,0x599)]()){if(a){if(f(j,n[a2(0x57a,0x591)],e)===![])return-0x1;}else{if(f(n[a2(0x54e,0x591)],j,e)===![])return-0x1;}}const q=a?n[a2(0x56b,0x519)]===a2(0x562,0x543):n[a2(0x53f,0x519)]===a2(0x51e,0x508);if(q)e['add'](n[a2(0x509,0x53c)]);else e[a2(0x57d,0x54b)](n['assignment']);}l=k;j=n['time'];}if(l===void 0x0){return k;}const m=this[a2(0x5a1,0x554)][l];if(a){e[a2(0x526,0x54b)](m['assignment']);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a2(0x4fe,0x54b)](m['assignment']);if(f(d,j,e)===![])return-0x1;}function a2(a,b){return _enY(a,b-0x2d9);}return l;}}class TimePhasedEventSelector{constructor(){this[a3(0xb2,0xed)]=null;function a3(a,b){return _enY(a,b- -0x1b6);}this[a3(0x133,0x105)]=null;this[a3(0x98,0x73)]=![];this[a3(0x55,0x87)]=![];this[a3(0xa1,0x85)]=![];this['proposedEndDateArgs']=null;this[a3(0xd8,0xbe)]=![];this[a3(0xd7,0xd9)]=![];}get[_enY(0x22f,0x236)](){function a4(a,b){return _enY(a,b- -0x166);}const a=this[a4(0x129,0x155)];return this['hasInputOnEffort']&&!Boolean(a[a4(0xbc,0x103)][a4(0x10e,0x12b)](StartVar)&VariableInputState[a4(0x151,0x138)])&&!Boolean(a[a4(0x13f,0x103)]['get'](EndVar)&VariableInputState[a4(0x170,0x138)])&&!Boolean(a[a4(0xe0,0x103)]['get'](DurationVar)&VariableInputState[a4(0x101,0x138)])&&!a[a4(0x149,0x120)];}get[_enY(0x287,0x27a)](){function a5(a,b){return _enY(a,b- -0x340);}const a=this[a5(-0x33,-0x85)];return this[a5(-0xb1,-0x103)]&&!Boolean(a['input']['get'](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a5(-0xb6,-0xd7)]['get'](EndVar)&VariableInputState[a5(-0x67,-0xa2)])&&!Boolean(a['input'][a5(-0x77,-0xaf)](EffortVar)&VariableInputState[a5(-0xcf,-0xa2)])&&!a[a5(-0x7b,-0xba)];}get['isChangingOnlyEndDate'](){const a=this[a6(-0x10d,-0xcd)];const b=this[a6(-0xcc,-0xbf)];function a6(a,b){return _enY(a,b- -0x388);}return this[a6(-0x133,-0x14d)]&&(!b||!b[0x0])&&!Boolean(a[a6(-0xdb,-0x11f)]['get'](StartVar)&VariableInputState[a6(-0xd1,-0xea)])&&!Boolean(a[a6(-0x10b,-0x11f)][a6(-0xfe,-0xf7)](DurationVar)&VariableInputState[a6(-0x106,-0xea)])&&!Boolean(a['input'][a6(-0x124,-0xf7)](EffortVar)&VariableInputState[a6(-0xa6,-0xea)])&&!a['hasTimePhasedInput'];}*[_enY(0x2d4,0x284)](){const a=this['event'];this[a7(0x154,0x12b)]=yield HasProposedNotPreviousValue(a['$'][a7(0x1b5,0x17c)]);function a7(a,b){return _enY(b,a- -0xd5);}this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$']['duration']);this[a7(0x166,0x1a1)]=yield HasProposedNotPreviousValue(a['$'][a7(0x1d3,0x196)]);this['dispatcher']=yield a['$']['timePhasedDispatcher'];this[a7(0x1f4,0x1f8)]=yield ProposedArgumentsOf(a['$'][a7(0x1d3,0x209)]);this[a7(0x19f,0x1dd)]=yield*a[a7(0x1b4,0x1f8)]();this[a7(0x1ba,0x1d4)]=yield HasPreviousValue(a['$']['effort']);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a8(0x43b,0x422)]=null;this[a8(0x40e,0x420)]=null;this[a8(0x3e6,0x422)]=null;function a8(a,b){return _enY(b,a-0x198);}this['hasOnlyTimePhasedAssignments']=null;this[a8(0x3ff,0x409)]=null;this[a8(0x414,0x3fc)]=null;}*[_enY(0x270,0x284)](){function a9(a,b){return _enY(a,b- -0x315);}const a=this['event'];const b=this[a9(-0xd6,-0x9f)]=yield a['$'][a9(-0xb0,-0x9f)];if(b[a9(-0x64,-0x49)]===0x0){this[a9(-0x81,-0xc7)]=!![];this[a9(-0xc1,-0x75)]=![];this['hasPhantomTimePhasedAssignments']=![];this[a9(-0xc7,-0xae)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a9(-0xb2,-0xc7)]===null&&e[a9(-0xb1,-0x67)]){this[a9(-0xf3,-0xc7)]=![];c++;}if(this[a9(-0x94,-0x75)]===null&&!e[a9(-0x15,-0x67)]){this['hasOnlyTimePhasedAssignments']=![];c++;}if(this[a9(-0x5d,-0x99)]===null&&e[a9(-0x99,-0xd2)]){this[a9(-0x99,-0x99)]=!![];c++;}if(this['hasUnitsOnAllAssignments']===null&&!e['hasPreviousValueForUnits']){this[a9(-0x5b,-0xae)]=![];c++;}if(c===0x4)break;}if(this['hasOnlyRegularAssignments']===null)this[a9(-0x7a,-0xc7)]=!![];if(this[a9(-0x6a,-0x75)]===null)this[a9(-0x3f,-0x75)]=!![];if(this[a9(-0xaf,-0x99)]===null)this[a9(-0xd0,-0x99)]=![];if(this['hasUnitsOnAllAssignments']===null)this[a9(-0x88,-0xae)]=!![];}}}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x17b;let f=c[d];return f;};return _enb(a,b);}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a['prototype'];class c extends a{*['calculateProposedTotalUnits'](){const d=yield this['$'][aa(0x163,0x11f)];function aa(a,b){return _enb(a- -0x67,b);}let e=0x0;for(const f of d){const g=yield f['$'][aa(0x155,0x196)];if(!g)continue;const h=(yield ProposedOrPreviousValueOf(f['$'][aa(0x12b,0x17c)]))??0x64;e+=h;}return e;}*[ab(0xd0,0xf7)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*[ab(0x10b,0xff)](){return yield ProposedOrPreviousValueOf(this['$']['endDate']);}*[ab(0x5b,0xa2)](){const d=yield this['$']['proposedStartDate'];function ac(a,b){return ab(a,b-0x45b);}const e=yield this['$'][ac(0x4c4,0x4ee)];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$'][ad(-0x8,-0x1f)];const e=yield this['$'][ad(0x18,0x4f)];function ad(a,b){return ab(b,a- -0x8f);}return d>e?d:e??d;}*[ab(0x77,0xc2)](){function ae(a,b){return ab(b,a-0x331);}const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[ae(0x39d,0x380)];for(const h of d){if(yield*h[ae(0x413,0x455)]()){const i=yield*h[ae(0x414,0x3d9)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x100,0xf3)](){const d=yield this['$'][af(0x58c,0x576)];const e=new Map();function af(a,b){return ab(b,a-0x4e2);}let f;let g=Number['MAX_VALUE'];for(const h of d){if(yield*h[af(0x5c4,0x5e4)]()){const i=yield*h[af(0x567,0x525)]();e[af(0x5ca,0x5cb)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x7a,0x90)](){const d=new TimePhasedEventAssignmentTypeSelector();d[ag(-0x1b1,-0x174)]=this;yield*d['collectInfo']();function ag(a,b){return ab(a,b- -0x24b);}return d;}*[ab(0x17,0x65)](){const d=new TimePhasedEventSelector();d[ah(-0x12b,-0xf7)]=this;function ah(a,b){return ab(a,b- -0x1ce);}yield*d[ah(-0xe7,-0x116)]();return d;}*[ab(0x5a,0x7b)](d){const e=TimePhasedEventAssignmentDispatcher[ai(0x8a,0xa7)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e['collectInfo'](d,this['$'][ai(0xcc,0x8f)],StartVar);e['collectInfo'](d,this['$']['endDate'],EndVar);e['collectInfo'](d,this['$'][ai(0x23,0x36)],DurationVar);e[ai(0x6e,0x63)](d,this['$']['effort'],EffortVar);const f=yield this['$'][ai(0x9b,0x55)];const g=[];function ai(a,b){return ab(a,b- -0x55);}const h=[];const i=[];const j=[];for(const k of f){g[ai(0x52,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x8d,0x8f)])]);h[ai(0x64,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x8f,0x87)])]);i['push']([null,yield HasProposedNotPreviousValue(k['$'][ai(0x36,0x36)])]);j[ai(-0x2,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x1e,0x69)])]);}if(g[ai(0x66,0x85)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[ai(0x75,0x85)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i['some'](([l,m])=>m)){e[ai(0x58,0x45)](TimePhasedDuration);}if(j[ai(0xcd,0x85)](([l,m])=>m)){e[ai(-0xd,0x45)](TimePhasedEffort);e[ai(0x82,0x45)](EffortVar);}return e;}*[ab(0x110,0xed)](){const d=new Map();function aj(a,b){return ab(a,b-0x49b);}const e=new Map();const f=yield this['$'][aj(0x54b,0x545)];for(const g of f){if(yield*g[aj(0x543,0x57d)]()){e[aj(0x531,0x583)](g,{'proposedStartOffset':yield g['$'][aj(0x547,0x503)],'proposedEndOffset':yield g['$']['proposedEndOffset']});}}return function*(h,i){function ak(a,b){return aj(b,a- -0x523);}const j=String(i['getTime']())+'/'+(h?'1':'0');let k=d[ak(0x3d,0xb)](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x68,0x4e)](i,!![],m[ak(-0x20,-0x5b)],TimeUnit[ak(-0xb,-0x2a)]);n=yield*l['skipNonWorkingTime'](n,!![]);o=yield*l[ak(0x43,0x56)](n,!![]);}else{const p=yield l['$']['selector'];o=yield*l[ak(0x68,0x8c)](i,![],p[ak(-0x28,-0xc)]?m[ak(0x38,0x89)]:yield l['$']['phantomEndOffset'],TimeUnit[ak(-0xb,0xe)]);n=yield*l[ak(0x43,0x8b)](o,![]);}if(n&&o)k[ak(-0x1a,-0x3a)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k['prepare']();d[ak(0x60,0x61)](j,k);return k;};}*[ab(0xcf,0x95)](){function al(a,b){return ab(b,a- -0x136);}const d=yield*this['hasOnlyRegularAssignments']();if(d||(yield this['$'][al(-0x6f,-0x70)])){return yield*super['calculateStartDate']();}else{const e=yield this['$'][al(-0x84,-0x5d)];const f=yield*this[al(-0x82,-0x3d)](e['direction']);const g=yield this['$'][al(-0x47,-0x7f)];const h=yield this['$']['timePhasedDispatcher'];const i=yield PreviousValueOf(this['$'][al(-0x52,-0xf)]);if(!(yield*this[al(-0xc9,-0xd5)]())&&!(yield this['$'][al(-0x65,-0x63)])&&f){if(g[al(-0x50,-0x67)]['get'](_ene)===CalculateProposed&&i!=null&&!h[al(-0x7c,-0xb8)]){const j=yield ProposedOrPrevious;if(e[al(-0xa9,-0x60)]===Direction[al(-0xb8,-0xff)]){yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}else{if(j<i){yield*this[al(-0xc0,-0xae)](i,j,![]);}}}return yield*super[al(-0xa1,-0xaa)]();}else{if(e['direction']===Direction[al(-0xb8,-0x78)]){const k=yield*super[al(-0xa1,-0x6b)]();const l=yield this['$']['minAssignmentProposedStartDate'];return l?l<k?l:k:k;}else{if(g[al(-0x50,-0x3)]['get'](_ene)===CalculateProposed&&h[al(-0x7c,-0xb5)]){return yield*this['calculateProjectedXDateWithDuration'](yield this['$'][al(-0x5a,-0x50)],![],yield this['$']['duration']);}if(g[al(-0x50,-0x79)][al(-0x71,-0xbf)](_ene)===CalculateProposed&&!h[al(-0x7c,-0x5e)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(-0xc0,-0xb7)](i,m,![]);}return yield*super[al(-0xa1,-0x6a)]();}}}}*[ab(0xde,0xcc)](){const d=yield*this['hasOnlyRegularAssignments']();function am(a,b){return ab(b,a- -0x286);}if(d||(yield this['$'][am(-0x1bf,-0x173)])){return yield*super['calculateEndDate']();}else{const e=yield this['$'][am(-0x1d4,-0x1c8)];const f=yield*this[am(-0x1d2,-0x1f5)](e[am(-0x1f9,-0x1d2)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$'][am(-0x1b5,-0x1b8)])&&f){return yield*super[am(-0x1ba,-0x1c0)]();}else{if(e['direction']===Direction[am(-0x208,-0x217)]){const g=yield this['$'][am(-0x197,-0x198)];const h=yield this['$'][am(-0x20a,-0x25d)];if(g['resolution']['get'](_end)===CalculateProposed&&h[am(-0x1cc,-0x1f3)]){return yield*this[am(-0x196,-0x18e)](yield this['$']['startDate'],!![],yield this['$'][am(-0x1fb,-0x233)]);}const i=yield PreviousValueOf(this['$'][am(-0x1aa,-0x1e4)]);if(g[am(-0x1a0,-0x172)][am(-0x1c1,-0x1b1)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[am(-0x210,-0x1e6)](i,j,!![]);}return yield*super[am(-0x1ba,-0x185)]();}else{const k=yield*super['calculateEndDate']();const l=yield this['$']['maxAssignmentProposedEndDate'];return l>k?l:k;}}}}*[ab(0xc0,0xfa)](){const d=yield this['$'][an(0x4a2,0x459)];let e=![];for(const f of d){const g=yield f['$'][an(0x4cb,0x4aa)];if(g[an(0x455,0x481)])e=!![];if(g[an(0x4e3,0x515)]&&!g['hasInputOnlyOnEffort'])return![];}function an(a,b){return ab(b,a-0x3f8);}return e;}*[ab(0xde,0x9b)](){const d=yield this['$'][ao(0x2b5,0x295)];function ao(a,b){return ab(a,b-0x1ff);}return d[ao(0x2df,0x29a)];}*[ab(0x8f,0x6a)](){const d=yield this['$'][ap(0x41e,0x439)];function ap(a,b){return ab(a,b-0x366);}return d[ap(0x388,0x3d0)];}*[ab(0xa8,0xae)](){const d=yield this['$'][aq(0x1d,-0x2)];function aq(a,b){return ab(b,a- -0xb6);}return d[aq(-0x8,-0x16)];}*[ab(0x99,0x99)](){const d=yield this['$'][ar(-0x164,-0x121)];function ar(a,b){return ab(b,a- -0x237);}return d['isChangingOnlyEndDate'];}*[ab(0xdb,0x8e)](){const d=yield*this[as(-0x241,-0x23d)]();function as(a,b){return ab(a,b- -0x2bf);}if(d||(yield this['$'][as(-0x1f7,-0x1f8)])){return yield*super[as(-0x1e7,-0x231)]();}else{const e=yield this['$']['effectiveDirection'];const f=e[as(-0x1ec,-0x232)]===Direction[as(-0x25e,-0x241)];const g=yield this['$'][as(-0x1bc,-0x1d0)];const h=yield this['$'][as(-0x267,-0x243)];if(g[as(-0x218,-0x1d9)][as(-0x1bc,-0x1fa)](_enc)===durationFormula[as(-0x224,-0x260)]&&!h[as(-0x1b9,-0x205)]){const i=yield*super[as(-0x22f,-0x231)]();yield*this[as(-0x1fb,-0x214)](i,f);return i;}if(g[as(-0x1d0,-0x1d9)]['get'](_enc)===CalculateProposed&&!h[as(-0x1ff,-0x205)]&&!(h['input']['get'](DurationVar)&VariableInputState[as(-0x240,-0x1ed)])){const j=yield ProposedOrPrevious;return j;}if(g[as(-0x212,-0x1d9)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[as(-0x1d8,-0x222)][as(-0x1e6,-0x1fa)](DurationVar)&VariableInputState[as(-0x19a,-0x1ed)]){const k=yield ProposedOrPrevious;yield*this[as(-0x206,-0x214)](k,f);const l=yield*this[as(-0x20a,-0x1eb)]();const m=yield this['$'][as(-0x1e6,-0x1e4)];return l?k>m?m:k:k;}if(!h[as(-0x1e6,-0x205)]){const n=yield ProposedOrPrevious;yield*this[as(-0x1ee,-0x214)](n,f);return n;}else if(h[as(-0x1c5,-0x205)]){const o=yield*this[as(-0x1c7,-0x1eb)]();const p=yield this['$'][as(-0x1ef,-0x1e4)];if(o){return p;}else{return Math[as(-0x211,-0x1e0)](p,yield ProposedOrPrevious);}}else{throw new Error('Unknown\x20duration\x20scenario');}}}*[ab(0xe3,0xfb)](){function at(a,b){return ab(a,b-0xd7);}const d=yield this['$'][at(0x1ab,0x1d5)];if(d['size']>0x0||(yield this['$'][at(0x1dd,0x19e)]))return yield*super[at(0x199,0x1d2)]();else{const e=yield*this['effectiveSchedulingMode']();const f=yield this['$'][at(0x166,0x14a)];if(e===SchedulingMode[at(0x18e,0x1cf)]){if(f[at(0x1b1,0x1d7)]>0x0){if(yield*this[at(0x187,0x141)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$']['effort']);if(g<=h){return g;}else{const i=yield this['$'][at(0x1b8,0x189)];yield*this[at(0x15e,0x135)](g,h,i[at(0x177,0x164)]===Direction[at(0x12f,0x155)]);return g;}}else{return yield*this[at(0x1d9,0x1c0)]();}}else{return yield*super[at(0x1da,0x1d2)]();}}else{return yield*this[at(0x19e,0x1c0)]();}}}*['calculateEffortPure'](){if(yield this['$'][au(0x2ac,0x2ec)]){return yield*super['calculateEffortPure']();}function au(a,b){return ab(b,a-0x1e5);}const d=yield this['$'][au(0x28f,0x28a)];if(d['size']>0x0){return yield*this['calculateTotalAssignmentsEffort']();}else{const e=yield ProposedOrPreviousValueOf(this['$'][au(0x2a3,0x2ec)]);if(e===void 0x0){return yield*this[au(0x289,0x24d)](yield this['$'][au(0x2c9,0x312)],yield this['$'][au(0x2c1,0x272)]);}else{return e;}}}*['calculateTotalAssignmentsEffort'](){let d=0x0;function av(a,b){return ab(b,a- -0xb7);}const e=yield this['$'][av(-0xd,-0x31)];for(const f of e){d+=yield*this[av(0x8,-0x18)]()[av(-0x56,-0x75)](yield f['$'][av(0x7,0x2f)],yield f['$'][av(0xf,-0x3e)],TimeUnit[av(-0x3a,-0x67)]);}return yield*this['getProject']()['$convertDuration'](d,TimeUnit[av(-0x3a,-0x48)],yield this['$'][av(0xf,0x47)]);}*[ab(0x10b,0xd8)](d){function aw(a,b){return ab(b,a-0x264);}return yield*d[aw(0x33c,0x384)](null);}*[ab(0x7c,0x67)](d){function ax(a,b){return ab(a,b-0x2ac);}if(yield*this[ax(0x320,0x330)]()){const e=this;const f=yield this['$']['effort'];return function*(g){function ay(a,b){return ax(a,b- -0x193);}return yield*e[ay(0x190,0x17d)](g,d,f);};}else{return yield*super[ax(0x33f,0x313)](d);}}*[ab(0xbc,0x84)](){function az(a,b){return ab(b,a- -0xc);}const d=yield*this[az(0xdb,0x101)]();const e=yield this['$'][az(0x5f,0x16)];return d!==SchedulingMode['FixedDuration']&&d!==SchedulingMode[az(0xec,0xf7)]&&(e||d===SchedulingMode[az(0x56,0x63)])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this[az(0x8d,0x96)]())||d===SchedulingMode[az(0x85,0x9f)]&&(yield*this[az(0xee,0x115)]())&&(yield*this['hasUnitsOnAllAssignments']());}*[ab(0xf7,0xad)](){function aA(a,b){return ab(a,b- -0xb6);}if(yield*this[aA(-0x69,-0x32)]()){return(yield this['$'][aA(0x44,0x8)])>0x0;}else{return yield*super[aA(-0xa,-0x9)]();}}*[ab(0xe2,0xab)](d,e=!![]){const f=yield this['$'][aB(0x46,0x7a)];if(f==null)return;function aB(a,b){return ab(a,b- -0x61);}if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aB(0xa3,0x7b)]);const h=yield*this[aB(0xb2,0x8f)](g,!![],d-f,void 0x0,{'purpose':aB(0x2f,0x4b)});yield*this[aB(0x1b,0x15)](g,h,e);}else{const i=yield PreviousValueOf(this['$']['startDate']);const j=yield*this[aB(0x8b,0x8f)](i,![],d-f,void 0x0,{'purpose':aB(0x9d,0x4b)});yield*this['expandTrailingAssigmentsByDates'](i,j,e);}}}*['expandTrailingAssigmentsByDates'](d,e,f=!![]){function aC(a,b){return ab(b,a-0x3cb);}if(d[aC(0x4bf,0x4cd)]()===e[aC(0x4bf,0x4ac)]()){return;}const g=yield this['$'][aC(0x475,0x49e)];const h=[];for(const i of g){if(yield*i[aC(0x4ad,0x47e)]()){if(f){const j=yield PreviousValueOf(i['$'][aC(0x4a7,0x45c)]);if(j&&j[aC(0x4bf,0x4eb)]()===d[aC(0x4bf,0x49a)]())h[aC(0x439,0x437)](i);}else{const k=yield PreviousValueOf(i['$'][aC(0x4af,0x4ae)]);if(k&&k[aC(0x4bf,0x4f1)]()===d[aC(0x4bf,0x48c)]())h[aC(0x439,0x41e)](i);}}}this['project'][aC(0x4bc,0x4eb)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aC(a- -0x252,b);}h[aD(0x22a,0x259)](l=>{function aE(a,b){return aD(a-0x132,b);}this['graph'][aE(0x36c,0x37d)](f?l['$'][aE(0x387,0x37e)]:l['$']['startDate'],e,![]);});},'once':!![]}});}*[ab(0x96,0x5e)](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aF(0x52b,0x4da)]):yield PreviousValueOf(this['$'][aF(0x533,0x4eb)]);const h=yield this['$'][aF(0x4f9,0x4ae)];const i=new Set();for(const l of h){if(yield*l[aF(0x531,0x509)]()){if(f){const m=yield PreviousValueOf(l['$'][aF(0x52b,0x570)]);if(m&&m[aF(0x543,0x53a)]()===g['getTime']())i[aF(0x545,0x516)](l);}else{const n=yield PreviousValueOf(l['$']['startDate']);if(n&&n[aF(0x543,0x4f5)]()===g[aF(0x543,0x504)]())i[aF(0x545,0x4f2)](l);}}}const j=yield*this[aF(0x4c9,0x511)](function*(o){function aG(a,b){return aF(a-0x93,b);}return i[aG(0x561,0x536)](o)||!(yield*o[aG(0x5c4,0x574)]());});const k=yield*this['calculateProjectedXDateByEffort'](g,f,d-e,void 0x0,void 0x0,j);function aF(a,b){return ab(b,a-0x44f);}this[aF(0x506,0x541)][aF(0x540,0x500)]({'commitFinalized':{'fn':()=>{function aH(a,b){return aF(a- -0x174,b);}i[aH(0x38c,0x38b)](o=>{function aI(a,b){return aH(b-0x1c4,a);}this[aI(0x4d3,0x525)][aI(0x533,0x560)](f?o['$'][aI(0x583,0x57b)]:o['$'][aI(0x597,0x583)],k,![]);});},'once':!![]}});}*[ab(0xcb,0xd5)](){return!![];}*[ab(0xa3,0x70)](){function aJ(a,b){return ab(a,b- -0xee);}const d=yield this['$'][aJ(-0x1d,-0x3c)];return d['direction']===Direction[aJ(-0x2f,-0x70)]?yield*this[aJ(-0x12,0xb)](yield this['$'][aJ(0xf,-0x11)],(yield*this[aJ(-0x4,-0x3e)]())?yield*this['calculateMaxAssignmentProposedEndDateIncludingPhantom']():yield this['$'][aJ(-0x9a,-0x47)],void 0x0,{'isForward':!![]}):yield*this[aJ(0x19,0xb)](yield this['$'][aJ(-0x7e,-0x5b)],yield this['$']['proposedEndDateMax'],void 0x0,{'isForward':![]});}*[ab(0xd5,0xf9)](d,e,f,g,...h){function aK(a,b){return ab(b,a- -0x9);}const i=yield this['$']['effectiveDirection'];const j=g?.[aK(0xe9,0x10b)]!==void 0x0?g:i['direction']===Direction[aK(0x75,0x3e)]?Object[aK(0xe5,0x10b)]({},g,{'isForward':!![]}):Object[aK(0xe5,0xd9)]({},g,{'isForward':![]});return yield*super[aK(0xf0,0xf4)](d,e,f,j,...h);}*['calculateRegularAssignmentsByCalendar'](){return yield*this['collectAssignmentsByCalendar'](function*(d){return!(yield*d['isTimePhased']());});}*[ab(0xbd,0xb5)](){return yield*this['collectAssignmentsByCalendar']();}*[ab(0x79,0x7a)](d){const e=yield this['$'][aL(0x21b,0x236)];const f=yield this['$']['assigned'];const g=this[aL(0x265,0x242)]();const h=yield*this[aL(0x213,0x201)]();const i=(yield this['$'][aL(0x24b,0x26b)])||h&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aL(0x242,0x20b)];const m=i||(yield k['$'][aL(0x24b,0x204)]);if(l){const n=m?e:yield l['$']['effectiveCalendar'];let o=j[aL(0x26b,0x237)](n);if(!o){o=[];j[aL(0x28e,0x245)](n,o);}o[aL(0x214,0x21d)](k);}}}function aL(a,b){return ab(b,a-0x1a6);}return j;}*[ab(0x134,0xea)](d,e){function aM(a,b){return ab(a,b-0x4d9);}const f=d['purpose']??'positioning';if(f==='positioning'||(yield*this[aM(0x531,0x55b)]())||d['ignoreSegments']||(yield this['$']['isSegmented'])){return yield*super[aM(0x5db,0x5c3)](d,e);}const g=d[aM(0x5a0,0x5cb)]!==![];const h=yield this['$'][aM(0x593,0x54e)];const i=this['getProject']();const j=yield*this[aM(0x526,0x546)]();const k=yield this['$'][aM(0x56f,0x579)];const l=yield this['$']['effectiveCalendarsCombination'];const m=(yield this['$'][aM(0x590,0x57e)])||d[aM(0x530,0x57e)];const n=d[aM(0x5a9,0x5af)]??![];const o=i[aM(0x531,0x565)];if(o){d=Object[aM(0x5af,0x5c7)]({'maxRange':o},d);}const p=yield this['$'][aM(0x5bb,0x582)];const q=yield*p(g,g?d[aM(0x59e,0x5bd)]:d[aM(0x5cc,0x5b5)]);let r=g?0x0:q[aM(0x5c8,0x588)][aM(0x5da,0x5a1)]-0x1;let s=g?d[aM(0x60f,0x5bd)]:d['endDate'];const t=new Set();const u=l['forEachAvailabilityInterval'](d,(v,w,x)=>{const y=x[aN(0x50c,0x54a)]();const z=x[aN(0x50f,0x4dc)]();function aN(a,b){return aM(b,a- -0x86);}r=q[aN(0x4bc,0x4f2)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aN(0x4bc,0x4ff)](g,r,s,g?w:v,t,(A,B,C)=>{function aO(a,b){return aN(a- -0x64e,b);}if(y[aO(-0x136,-0x150)](h)&&(n||someInSet(C,D=>{function aP(a,b){return aO(a-0x352,b);}return m||D['ignoreResourceCalendar']||y[aP(0x21c,0x218)](D[aP(0x1f3,0x1ff)]['effectiveCalendar'])||j&&!i[aP(0x20a,0x1e5)];})||z[aO(-0x121,-0xee)](D=>k[aO(-0x17c,-0x1c1)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*['calculateHasOnlyRegularAssignmentsRaw'](){const d=yield this['$'][aQ(0x173,0x187)];for(const e of d){if(yield*e[aQ(0x131,0x13d)]())return![];}function aQ(a,b){return ab(a,b-0xdd);}return!![];}*['hasOnlyRegularAssignments'](){const d=yield this['$'][aR(0xa8,0xb4)];function aR(a,b){return ab(a,b-0x1e);}return d['hasOnlyRegularAssignments'];}*[ab(0xe9,0xd4)](){function aS(a,b){return ab(a,b- -0x43);}const d=yield this['$']['assignmentsTypeSelector'];return d[aS(0xa1,0x91)];}*[ab(0xda,0xb0)](){const d=yield this['$'][aT(0x335,0x350)];function aT(a,b){return ab(b,a-0x29f);}return d[aT(0x34f,0x357)];}*[ab(0xac,0xd9)](){let d=MAX_DATE;function aU(a,b){return ab(b,a- -0x94);}const e=yield this['$'][aU(0x16,0x4d)];for(const f of e){const g=yield f[aU(0x4a,0x53)]['$'][aU(0x50,0x8c)];if(g&&g<d)d=g;}return d[aU(0x60,0x70)]()-MAX_DATE[aU(0x60,0x31)]()?d:null;}*[ab(0x93,0xca)](){let d=MIN_DATE;const e=yield this['$'][aV(-0x4a,-0x4a)];for(const f of e){const g=yield f[aV(-0x69,-0x16)]['$'][aV(-0x2c,-0x18)];if(g&&g>d)d=g;}function aV(a,b){return ab(a,b- -0xf4);}return d[aV(-0x15,0x0)]()-MIN_DATE[aV(-0x17,0x0)]()?d:null;}*['calculateMaxAssignmentProposedEndDateIncludingPhantom'](){let d=MIN_DATE;const e=yield this['$'][aW(0x3b8,0x39f)];function aW(a,b){return ab(a,b-0x2f5);}for(const f of e){const g=(yield*f['isTimePhased']())?(yield*f['isUserTimePhased']())?yield f['proposedMirror']['$'][aW(0x3b3,0x3d1)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aW(0x3bd,0x3e9)]()-MIN_DATE[aW(0x402,0x3e9)]()?d:null;}*[ab(0xde,0xa4)](d,e,f){const g=yield*this[aX(0x35b,0x34e)]();if(g||(yield this['$'][aX(0x3a0,0x3a6)])){return yield*super[aX(0x37d,0x354)](d,e,f);}function aX(a,b){return ab(b,a-0x2d9);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aX(0x379,0x3a4)];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=(yield o['$'][aX(0x34b,0x314)])??0x64;}i[aX(0x3c1,0x38b)](l,n);}let j=0x0;const k=Object[aX(0x3c7,0x3dd)](yield*this[aX(0x3a7,0x363)](),{'startDate':d,'endDate':e},{'purpose':aX(0x35a,0x3ad)});yield*this[aX(0x3c3,0x394)](k,(p,q,r,s)=>{const t=r['getCalendarsWorking']();const u=p[aY(-0x112,-0x161)](),v=q['getTime'](),w=v-u;function aY(a,b){return aX(b- -0x52e,a);}let x=0x0;for(const y of t){x+=i[aY(-0x1b2,-0x190)](y)||0x0;}if(!f){s[aY(-0x185,-0x1a4)](z=>{function aZ(a,b){return aY(a,b-0x5cc);}x+=z[aZ(0x3d0,0x3e9)];});}j+=x*w*0.01;});return yield*this['getProject']()['$convertDuration'](j,TimeUnit['Millisecond'],yield this['$'][aX(0x39f,0x3e9)]);}*[ab(0x9e,0xf0)](d,e=!![],f,g,h){const i=yield*super[b0(0x3e9,0x401)](d,e,f,g,h);function b0(a,b){return ab(b,a-0x2f9);}if(yield this['$']['isSegmented'])return i;const j=yield*this['hasOnlyTimePhasedAssignments']();if(j){const k=yield this['$'][b0(0x3ab,0x3c7)];if(k[b0(0x386,0x3cf)]===Direction[b0(0x377,0x3be)]&&e===![]){const l=yield this['$'][b0(0x3af,0x3e8)];const m=l[b0(0x355,0x38c)];if(m>0x0){return yield*l['minAssignment']['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit[b0(0x376,0x3a8)]);}}else if(k['direction']===Direction['Backward']&&e===!![]){const n=yield this['$'][b0(0x381,0x3c1)];const o=n['minOffset'];if(o>0x0){return yield*n[b0(0x371,0x384)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit['Millisecond']);}}}return i;}*['getBaseOptionsForDurationCalculations'](){const d=yield*this[b1(0x170,0x13c)]();function b1(a,b){return ab(b,a-0x89);}if(d===SchedulingMode['FixedDuration']){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b['getBaseOptionsForDurationCalculations'][b1(0x11b,0xd6)](this);}}*[ab(0x5b,0x64)](d,e=!![],f,g,h,i){if(yield this['$'][b2(0x2ca,0x2fe)]){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b2(0x2f2,0x2f5)];g=g!==void 0x0?g:yield this['$'][b2(0x2d6,0x2fd)];const j=yield*this['getProject']()[b2(0x247,0x298)](f,g,TimeUnit[b2(0x28f,0x2b4)]);if(d==null||f==null)return null;let k=d[b2(0x35b,0x32b)]();function b2(a,b){return ab(a,b-0x237);}let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object['assign'](yield*this[b2(0x2c1,0x2c1)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this['hasOnlyRegularAssignments']();if(h?.['purpose']===b2(0x2dc,0x2e3)||o){const s=new Map();const t=yield this['$'][b2(0x2a5,0x2e1)];let u=0x0;const v=new Map();for(const y of t){const z=(yield y['$']['units'])??0x64;u+=z;v['set'](y,z);}if(u===0x0){return yield*super[b2(0x262,0x29b)](d,e,f,g,h,i);}for(const A of t){s['set'](A,j*v[b2(0x329,0x2fc)](A)/u);}const w=yield this['$'][b2(0x2ca,0x2aa)];const x=new Map();for(const [B,C]of w){for(const D of C){x['set'](D,B);}}yield*this['forEachAvailabilityInterval'](n,(E,F,G)=>{const H=E[b3(0x195,0x144)](),I=F[b3(0x184,0x144)](),J=I-H;for(const K of t){const L=x[b3(0xf8,0x115)](K);if(G[b3(0x15a,0x109)]()[b3(0xe5,0x115)](L)){const M=s[b3(0x160,0x115)](K);let N=v[b3(0xcd,0x115)](K);const O=N*J*0.01;const P=M-O;if(!P||P<m){const Q=e?H+M/(0.01*N):I-M/(0.01*N);if(e&&Q>k||!e&&Q<k){k=Q;}s[b3(0xe3,0xf6)](K);}else{s['set'](K,M-O);}}}function b3(a,b){return b2(a,b- -0x1e7);}if(s['size']===0x0)return![];});return new Date(k);}const p=i?i:yield this['$'][b2(0x306,0x2d7)];const q=new Map();(yield this['$']['assignmentsByCalendar'])[b2(0x2d2,0x2e8)]((E,F)=>{function b4(a,b){return b2(a,b- -0x3ed);}E[b4(-0x147,-0x105)](G=>q['set'](G,F));});const r=new Map();for(const [E,F]of p){let G=0x0;for(const H of F){G+=(yield H['$'][b2(0x295,0x2a9)])??0x64;}r[b2(0x2ef,0x31f)](E,G);}yield*this['forEachAvailabilityInterval'](n,(I,J,K,L)=>{const M=K[b5(0x230,0x22e)]();const N=K['getCalendarsWorkStatus']();const O=I[b5(0x268,0x2a0)](),P=J[b5(0x268,0x293)](),Q=P-O;let R=0x0;for(const U of M){R+=r[b5(0x239,0x1f7)](U)||0x0;}if(!i){L[b5(0x225,0x22a)](V=>{function b6(a,b){return b5(a-0x12,b);}if(N[b6(0x24b,0x20d)](q[b6(0x24b,0x28a)](V)))R+=V[b6(0x1f8,0x24b)];});}const S=R*Q*0.01;const T=l-S;function b5(a,b){return b2(b,a- -0xc3);}if(!T||T<m){k=e?O+l/(0.01*R):P-l/(0.01*R);return![];}else{l-=S;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c['prototype'],'proposedStartDate',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc3,0xe0)],ab(0x54,0x87),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xad,0xe0)],ab(0xe7,0xdd),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x105,0xe0)],ab(0xc1,0xc4),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc9,0xe0)],ab(0xd4,0x93),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb6,0xe0)],'maxAssignmentProposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb2,0xe0)],ab(0xf5,0xdb),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb9,0xe0)],ab(0x7a,0x96),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb8,0xe0)],ab(0xd7,0xbb),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c['prototype'],ab(0xa1,0x7c),void 0x0);__decorate([field()],c['prototype'],ab(0xde,0xd3),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],ab(0xff,0xb6),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xcf,0xe0)],ab(0x6e,0x88),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc3,0xe0)],ab(0x9b,0xa0),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],'timePhasedIntervalsCache',void 0x0);__decorate([calculate(ab(0x75,0xbb))],c[ab(0xd5,0xe0)],'calculateProposedTotalUnits',null);__decorate([calculate(ab(0x9f,0xcd))],c[ab(0xdc,0xe0)],'calculateProposedStartDate',null);__decorate([calculate('proposedEndDate')],c[ab(0xbe,0xe0)],ab(0x127,0xff),null);__decorate([calculate('proposedStartDateMin')],c[ab(0xcd,0xe0)],ab(0x91,0xa2),null);__decorate([calculate(ab(0x84,0xc4))],c[ab(0x9a,0xe0)],'calculateProposedEndDateMax',null);__decorate([calculate(ab(0xe0,0xb6))],c[ab(0xab,0xe0)],ab(0xaa,0xc2),null);__decorate([calculate(ab(0x92,0x88))],c[ab(0x122,0xe0)],ab(0xa1,0xf3),null);__decorate([calculate('assignmentsTypeSelector')],c[ab(0xf5,0xe0)],ab(0x48,0x90),null);function ab(a,b){return _enY(a,b- -0x1cc);}__decorate([calculate(ab(0x108,0xd3))],c[ab(0xac,0xe0)],ab(0x66,0x65),null);__decorate([calculate(ab(0x2b,0x7c))],c['prototype'],ab(0xc5,0x7b),null);__decorate([calculate(ab(0x77,0xa9))],c[ab(0x8d,0xe0)],ab(0x11d,0xed),null);__decorate([calculate(ab(0xd7,0xdb))],c['prototype'],'calculateProposedAssignmentDuration',null);__decorate([calculate(ab(0xbe,0xa0))],c[ab(0x9b,0xe0)],ab(0xe9,0xa3),null);__decorate([calculate(ab(0x98,0x93))],c['prototype'],'calculateMinAssignmentProposedStartDate',null);__decorate([calculate(ab(0x89,0xa7))],c[ab(0x114,0xe0)],ab(0xba,0xca),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function m(a,b){return _enb(b- -0x2b2,a);}while(!![]){try{const d=-parseInt(m(-0x140,-0x154))/0x1*(-parseInt(m(-0x117,-0x146))/0x2)+-parseInt(m(-0x130,-0x10a))/0x3+-parseInt(m(-0x113,-0x134))/0x4+parseInt(m(-0x153,-0x16b))/0x5+parseInt(m(-0x101,-0x123))/0x6+-parseInt(m(-0xdf,-0x106))/0x7+-parseInt(m(-0x11b,-0x141))/0x8*(parseInt(m(-0x14f,-0x15f))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa1116));var __decorate=function(a,b,e,f){var g=arguments[n(0x1d8,0x1cd)],h=g<0x3?b:f===null?f=Object[n(0x1e7,0x1cd)](b,e):f,j;function n(a,b){return _enb(a-0x64,b);}if(typeof Reflect===n(0x20b,0x20d)&&typeof Reflect[n(0x1aa,0x1c4)]==='function')h=Reflect[n(0x1aa,0x1da)](a,b,e,f);else for(var k=a[n(0x1d8,0x1d5)]-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 _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x142;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CI}from'@bryntum/engine-thin/lib/ChronoGraph/collection/Iterator.js';function _enH(a,b){return _enb(a- -0xe8,b);}import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect}from'../../../chrono/Replica.js';import{SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{DependenciesCalendar,DependencyValidationResult,ProjectType,StartedTaskScheduling}from'../../../scheduling/Types.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';function _ena(){const N=['segmentsToCleanup','contains','autoPostponeConflicts','clearBranch','startDateConstraintIntervals','forEach','NoError','2971964cTUGka','removeEntity','isValidDependencyModel','fromEvent','finalizeCommitHook','getOwnPropertyDescriptor','CyclicDependency','dependenciesCalendar','getDependencyCycleDetectionIdentifiers','7.0.0','bwcConflictPostpone','toEvent','resourceAllocationInfoClass','removeEntities','earlySchedule','deprecate','startDate','7117758CmKyUq','SchedulerProProjectMixin','construct','isValidDependency','internalOnCommitFinalized','DuplicatingDependency','dependencyConstraintIntervalClass','getDependencies','isDependencyCyclic','getType','durationUnit','getDefaultEventModelClass','_resolutions','selector','deactivateDependencyCycleEffectResolutionClass','graph','Auto','all','validateDependency','dateConstraintIntervalClass','throw','candidate','autoPostponedConflicts','proposedTimePhasedWrites','object','3768237HBczbZ','call','getDefaultResourceAllocationInfoClass','buildInvalidDependencyResolutions','1050707iepqHV','assignmentStore','endDate','effort','duration','readAsync','event','new','isArray','decorate','5258480mYqxgs','autoScheduleManualTasksOnSecondPass','getDefaultResourceModelClass','getResolutions','getInvalidDependencies','getDefaultEventStoreClass','push','addConstraintOnDateSet','includeAsapAlapAsConstraints','modelClass','getTime','transaction','10593FtnGKO','autoSetConstraints','addEntity','active','calculateDurationPure','DeactivateDependencyCycleEffectResolution','autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts','resolve','deactivateDependencyConflictResolutionClass','getDefaultDependencyModelClass','getDefaultAssignmentModelClass','146qJuFMM','autoCalculatePercentDoneForParentTasks','SchedulerProTimePhasedProjectMixin','clear','effortUnit','removeDependencyConflictResolutionClass','filter','outgoingDeps','isInitialTransaction','defaultConfig','SchedulerPro','boolean','allowPostponedConflicts','afterConfigure','15044NIUPFI','$name','prototype','getDescription','project','3584MJNdun','hasInputOnEffort','branch','length','string','_invalidDependencies'];_ena=function(){return N;};return _ena();}import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{SchedulerBasicProjectMixin}from'../scheduler_basic/SchedulerBasicProjectMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{DateConstraintInterval}from'./HasDateConstraintMixin.js';import{DeactivateDependencyResolution,DependencyConstraintInterval,RemoveDependencyResolution}from'./ConstrainedByDependenciesEventMixin.js';import{SchedulerProDependencyMixin}from'./SchedulerProDependencyMixin.js';import{SchedulerProEvent,SchedulerProTimePhasedEvent}from'./SchedulerProEvent.js';import{ResourceAllocationInfo,SchedulerProResourceMixin}from'./SchedulerProResourceMixin.js';import{SchedulerProTimePhasedAssignmentMixin}from'./SchedulerProTimePhasedAssignmentMixin.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{HasCostSubEventsMixin}from'./HasCostSubEventsMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';class SchedulerProProjectMixin extends Mixin([SchedulerBasicProjectMixin,ConstrainedEarlyEventMixin,HasChildrenMixin,HasCostSubEventsMixin],a=>{const b=a['prototype'];class c extends a{constructor(){function o(a,b){return _enb(a- -0x25b,b);}super(...arguments);this[o(-0xf5,-0x129)]=!![];}static get[p(0x3c0,0x397)](){return{'segmentModelClass':SchedulerProEventSegment};}[p(0x3e8,0x3c1)](d={}){this[q(-0x5a,-0x81)]=new Set();this[q(-0x7d,-0xa8)]=d[q(-0x7d,-0x9c)]??![];this[q(-0x49,-0x1d)]=d['bwcConflictPostpone']??![];b[q(-0x40,-0x2b)][q(-0x28,-0x19)](this,d);function q(a,b){return p(b,a- -0x401);}this[q(-0x82,-0x8a)]=d[q(-0x82,-0x5f)]??!![];if(!this[q(-0x47,-0x6f)])this['resourceAllocationInfoClass']=this[q(-0x27,-0x6)]();this['ion']({'commitFinalized':this[q(-0x3e,-0x54)]});}set[p(0x3a2,0x3d5)](d){function r(a,b){return p(a,b- -0x5ea);}_end[r(-0x251,-0x22d)](r(-0x26b,-0x233),'autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts');this[r(-0x25a,-0x241)]=d;}get[p(0x3d9,0x3d5)](){_end[s(0x301,0x2f4)]('7.0.0',s(0x2cd,0x2dc));function s(a,b){return p(b,a- -0xbc);}return this['autoPostponeConflicts'];}[p(0x38c,0x3b2)](d){this[t(0x27b,0x274)]=![];function t(a,b){return p(b,a- -0x11b);}return![];}['internalOnCommitFinalized']({transactionResult:d}){function u(a,b){return p(a,b- -0x99);}this['graph']?.[u(0x358,0x322)]([...this['segmentsToCleanup']]);this['segmentsToCleanup'][u(0x316,0x2f8)]();}[p(0x388,0x37c)](){return ChronoEventStoreMixin;}[p(0x3a8,0x3da)](){return ResourceAllocationInfo;}[p(0x37c,0x39b)](){b[v(-0x119,-0x14f)]['apply'](this,arguments);this[v(-0xe2,-0xf1)]=this[v(-0xe2,-0xf7)]||DateConstraintInterval;function v(a,b){return p(b,a- -0x4b4);}this[v(-0xef,-0xfb)]=this['dependencyConstraintIntervalClass']||DependencyConstraintInterval;}[p(0x3c2,0x3c8)](){function w(a,b){return p(a,b- -0xc);}return ProjectType[w(0x36c,0x38c)];}['getDefaultCycleEffectClass'](){return SchedulerProCycleEffect;}[p(0x3d3,0x3ca)](){return SchedulerProEvent;}[p(0x366,0x38c)](){return SchedulerProDependencyMixin;}[p(0x3bd,0x38d)](){return SchedulerProAssignmentMixin;}[p(0x3ab,0x379)](){return SchedulerProResourceMixin;}async['validateDependency'](d,e,f,g){let h;if(g){h=Array[x(-0x25b,-0x269)](g)?g:[g];}const i=CI(d[x(-0x23b,-0x266)])['some'](j=>j[x(-0x217,-0x236)]===e&&!h?.['includes'](j));if(i){return DependencyValidationResult[x(-0x20c,-0x221)];}if(d['contains'](e)||e['contains'](d)){return DependencyValidationResult['CyclicDependency'];}if(await this[x(-0x209,-0x213)](d,e,f,h)){return DependencyValidationResult[x(-0x21c,-0x20b)];}function x(a,b){return p(b,a- -0x5d0);}return DependencyValidationResult[x(-0x223,-0x211)];}*[p(0x395,0x387)](){const d=yield this['$'][y(0x452,0x428)];const e=yield this['$'][y(0x472,0x441)];if(!d||!e)return null;if(d>e)return 0x0;function y(a,b){return p(b,a-0x94);}return yield*super[y(0x41b,0x3f4)]();}async[p(0x3c6,0x3c2)](d,e,f,g){const h=await this[z(0x73,0x6f)](d,e,f,g);function z(a,b){return p(a,b- -0x362);}return h===DependencyValidationResult[z(0x7f,0x4b)];}[p(0x3a9,0x3b6)](d,e){function A(a,b){return p(b,a-0x8f);}return[e[A(0x44b,0x41f)]['$'][A(0x43a,0x405)],e[A(0x44b,0x47d)]['$']['endDateConstraintIntervals']];}async[p(0x396,0x3c7)](d,f,g,h){const i=this['getDependencyStore']()[B(-0x114,-0xee)];const j=new i({'fromEvent':d,'toEvent':f,'type':g});const k=this['replica'][B(-0xfb,-0xcb)]({'autoCommit':![],'onComputationCycle':B(-0x71,-0x9b)});if(h){if(!Array[B(-0xd8,-0xf9)](h)){h=[h];}h[B(-0xc4,-0xc2)](l=>k[B(-0xac,-0xbf)](l));}k[B(-0xde,-0xe9)](j);j[B(-0xf5,-0xce)]=this;function B(a,b){return p(a,b- -0x46e);}try{await Promise[B(-0x7b,-0x9e)](this[B(-0x81,-0xb8)](d,f)['map'](l=>k[B(-0xf2,-0xfc)](l)));return![];}catch(l){if(/cycle/i['test'](l))return!![];if(!/conflict/i['test'](l)){throw l;}}finally{k[B(-0x9e,-0xc4)]();}}async[p(0x382,0x3b0)](d,e){function C(a,b){return p(a,b-0xde);}return this['isValidDependency'](d[C(0x48e,0x48f)],d[C(0x49d,0x497)],d['type'],e);}}c[p(0x387,0x39d)]=p(0x3a8,0x3c0);function p(a,b){return _enb(b-0x230,a);}__decorate([model_field({'type':p(0x3c7,0x3a5),'defaultValue':DependenciesCalendar['ToEvent']})],c[p(0x3c2,0x39e)],p(0x3d3,0x3b5),void 0x0);__decorate([model_field({'type':p(0x366,0x399),'defaultValue':!![]})],c[p(0x3c5,0x39e)],p(0x375,0x38f),void 0x0);__decorate([model_field({'type':p(0x398,0x3a5),'defaultValue':StartedTaskScheduling[p(0x3fc,0x3cf)]})],c['prototype'],'startedTaskScheduling',void 0x0);__decorate([model_field({'type':p(0x3c4,0x399),'defaultValue':!![]})],c[p(0x388,0x39e)],p(0x38c,0x37e),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[p(0x375,0x39e)],p(0x3a1,0x378),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[p(0x3ad,0x39e)],p(0x3a5,0x39a),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[p(0x372,0x39e)],'autoPostponeConflicts',void 0x0);__decorate([model_field({'type':p(0x3b8,0x399),'defaultValue':!![]})],c[p(0x36a,0x39e)],'autoMergeAdjacentSegments',void 0x0);__decorate([model_field({'persist':![]})],c[p(0x3d1,0x39e)],'currency',void 0x0);return c;}){}class SchedulerProTimePhasedProjectMixin extends Mixin([SchedulerProProjectMixin],a=>{function D(a,b){return _enb(a- -0x21c,b);}class b extends a{[D(-0x84,-0xb0)](){function E(a,b){return D(a- -0x182,b);}return ProjectType[E(-0x236,-0x25f)];}['getDefaultEventModelClass'](){return SchedulerProTimePhasedEvent;}[D(-0xbf,-0xb0)](){return SchedulerProTimePhasedAssignmentMixin;}[D(-0x89,-0x9c)]({transactionResult:c}){super[F(-0x19d,-0x1c5)]({'transactionResult':c});function F(a,b){return D(b- -0x13c,a);}this[F(-0x1d8,-0x1ab)]['forEach'](d=>{if(!d[G(0xa2,0x72)]){return;}function G(a,b){return F(a,b-0x22c);}const e=c[G(0x1b,0x26)][G(0x71,0x78)][G(0x5a,0x7a)];const f=d['proposedMirror'];const g=d[G(0x9,0x17)]?.[G(0x5a,0x70)];const h=g?g[G(0x42,0x46)]||g['hasInputOnAssignments']&&g['hasPreviousEffortValue']:![];if(f[G(0x2f,0x62)]!=null&&f['startDate'][G(0x5c,0x25)]()!==d[G(0x62,0x62)]?.[G(0x3a,0x25)]()){e[G(0x40,0x21)]([f['$'][G(0x7e,0x62)],d['startDate']]);}if(f[G(0xa0,0x82)]!=null&&f['endDate'][G(0x1,0x25)]()!==d[G(0x8d,0x82)]?.[G(0x6,0x25)]()){e[G(0x16,0x21)]([f['$'][G(0x67,0x82)],d[G(0x90,0x82)]]);}if(f[G(0xb5,0x84)]!=null&&f[G(0xb5,0x84)]!==d['duration']){e['push']([f['$'][G(0x56,0x84)],d[G(0xb3,0x84)]]);}if(f[G(0xa1,0x6d)]!=null&&f[G(0x5d,0x6d)]!==d['durationUnit']){e[G(0x11,0x21)]([f['$'][G(0x8f,0x6d)],d[G(0x97,0x6d)]]);}if(f[G(0x78,0x83)]!=null&&f[G(0x84,0x83)]!==d[G(0xa7,0x83)]){if(!h)e[G(0x40,0x21)]([f['$'][G(0x8c,0x83)],d[G(0x54,0x83)]]);else f[G(0x93,0x83)]=d[G(0x57,0x83)];}if(f[G(0x2b,0x36)]!=null&&f[G(0xc,0x36)]!==d[G(0x6a,0x36)]){if(!h)e[G(0x1e,0x21)]([f['$']['effortUnit'],d[G(0x1e,0x36)]]);else f[G(0x60,0x36)]=d['effortUnit'];}},this,{'includeFilteredOutRecords':!![]});}}b[D(-0xaf,-0xde)]=D(-0xbc,-0x92);return b;}){}class DeactivateDependencyCycleEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enH(0x87,0x91)](){return this['L']('L{descriptionTpl}');}[_enH(0x72,0x48)](a){function I(a,b){return _enH(b-0x2dd,a);}a[I(0x31d,0x34b)]=![];}}DeactivateDependencyCycleEffectResolution[_enH(0x85,0xaa)]=_enH(0x70,0x76);class SchedulerProCycleEffect extends CycleEffect{[_enH(0x63,0x4e)](){if(!this['_invalidDependencies']){const a=this[J(0x35a,0x340)]();this[J(0x2fd,0x320)]=a[J(0x2e7,0x30e)](b=>b[J(0x33b,0x32b)]===b[J(0x315,0x333)]||(b[J(0x342,0x32b)]['contains'](b['toEvent'])||b[J(0x313,0x333)][J(0x32d,0x322)](b[J(0x34a,0x32b)])));}function J(a,b){return _enH(b-0x292,a);}return this[J(0x330,0x320)];}['buildInvalidDependencyResolutions'](a){function K(a,b){return _enH(b-0x248,a);}return[this[K(0x2d2,0x2c3)][K(0x2c6,0x2a4)](a),this[K(0x283,0x2bb)]['new'](a)];}['matchDependencyBySourceAndTargetEvent'](a,b,c){function L(a,b){return _enH(a- -0x28e,b);}return a[L(-0x220,-0x249)]&&super['matchDependencyBySourceAndTargetEvent'](a,b,c);}[_enH(0x62,0x83)](){function M(a,b){return _enH(b- -0x242,a);}if(!this['_resolutions']){const a=this[M(-0x1c0,-0x1df)]();const b=[];for(const c of a){b[M(-0x1c6,-0x1dd)](...this[M(-0x176,-0x17f)]({'dependency':c}));}if(!a[M(-0x1d6,-0x1b6)]){b[M(-0x203,-0x1dd)](this[M(-0x189,-0x18d)][M(-0x1d4,-0x1e6)](),...super[M(-0x1f2,-0x1e0)]());}this[M(-0x1b3,-0x18f)]=b;}return this['_resolutions'];}}__decorate([prototypeValue(DeactivateDependencyCycleEffectResolution)],SchedulerProCycleEffect[_enH(0x86,0x7c)],_enH(0xb5,0x9a),void 0x0);__decorate([prototypeValue(RemoveDependencyResolution)],SchedulerProCycleEffect[_enH(0x86,0x4e)],'removeDependencyConflictResolutionClass',void 0x0);__decorate([prototypeValue(DeactivateDependencyResolution)],SchedulerProCycleEffect[_enH(0x86,0xb5)],'deactivateDependencyConflictResolutionClass',void 0x0);export{DeactivateDependencyCycleEffectResolution,SchedulerProCycleEffect,SchedulerProProjectMixin,SchedulerProTimePhasedProjectMixin};
|
|
1
|
+
(function(a,b){const c=a();function m(a,b){return _enb(b- -0x2df,a);}while(!![]){try{const d=-parseInt(m(-0x158,-0x142))/0x1+parseInt(m(-0x12a,-0xf0))/0x2*(parseInt(m(-0xe4,-0x119))/0x3)+-parseInt(m(-0xea,-0x10d))/0x4*(-parseInt(m(-0x15c,-0x121))/0x5)+-parseInt(m(-0x113,-0xe5))/0x6+-parseInt(m(-0xba,-0xe4))/0x7*(parseInt(m(-0x125,-0x113))/0x8)+parseInt(m(-0x14a,-0x143))/0x9*(-parseInt(m(-0x137,-0x10a))/0xa)+parseInt(m(-0x125,-0x14d))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6e51b));var __decorate=function(a,b,e,f){function n(a,b){return _enb(b-0x185,a);}var g=arguments[n(0x312,0x331)],h=g<0x3?b:f===null?f=Object[n(0x38d,0x358)](b,e):f,j;if(typeof Reflect===n(0x35a,0x338)&&typeof Reflect['decorate']===n(0x374,0x36e))h=Reflect[n(0x30f,0x319)](a,b,e,f);else for(var k=a[n(0x36b,0x331)]-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 _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x186;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CI}from'@bryntum/engine-thin/lib/ChronoGraph/collection/Iterator.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect}from'../../../chrono/Replica.js';import{SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{DependenciesCalendar,DependencyValidationResult,ProjectType,StartedTaskScheduling}from'../../../scheduling/Types.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{SchedulerBasicProjectMixin}from'../scheduler_basic/SchedulerBasicProjectMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{DateConstraintInterval}from'./HasDateConstraintMixin.js';import{DeactivateDependencyResolution,DependencyConstraintInterval,RemoveDependencyResolution}from'./ConstrainedByDependenciesEventMixin.js';import{SchedulerProDependencyMixin}from'./SchedulerProDependencyMixin.js';import{SchedulerProEvent,SchedulerProTimePhasedEvent}from'./SchedulerProEvent.js';import{ResourceAllocationInfo,SchedulerProResourceMixin}from'./SchedulerProResourceMixin.js';function _enH(a,b){return _enb(b-0x360,a);}import{SchedulerProTimePhasedAssignmentMixin}from'./SchedulerProTimePhasedAssignmentMixin.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{HasCostSubEventsMixin}from'./HasCostSubEventsMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';class SchedulerProProjectMixin extends Mixin([SchedulerBasicProjectMixin,ConstrainedEarlyEventMixin,HasChildrenMixin,HasCostSubEventsMixin],a=>{const b=a[o(-0xba,-0xb4)];function o(a,b){return _enb(b- -0x27e,a);}class c extends a{constructor(){super(...arguments);function p(a,b){return o(b,a-0x600);}this[p(0x53d,0x52d)]=!![];}static get[o(-0xb3,-0x8a)](){return{'segmentModelClass':SchedulerProEventSegment};}[o(-0xdc,-0xc7)](d={}){this['segmentsToCleanup']=new Set();this['autoSetConstraints']=d[q(0x503,0x53e)]??![];this[q(0x4f9,0x4ed)]=d[q(0x4f9,0x533)]??![];let e=d;if(d[q(0x4ea,0x4ef)]||d[q(0x4e4,0x516)]){e=a[q(0x54b,0x520)]({},d,{'events':d[q(0x4ea,0x4ec)]||d[q(0x4e4,0x4fe)]});}b[q(0x506,0x51e)][q(0x528,0x512)](this,e);this[q(0x51a,0x547)]=d[q(0x51a,0x503)]??!![];if(!this['resourceAllocationInfoClass'])this['resourceAllocationInfoClass']=this[q(0x501,0x518)]();function q(a,b){return o(b,a-0x5cd);}this[q(0x4fe,0x4fd)]({'commitFinalized':this['internalOnCommitFinalized']});}set[o(-0xb4,-0xcd)](d){function r(a,b){return o(b,a-0x3fe);}_end[r(0x358,0x395)](r(0x35e,0x369),r(0x32d,0x30f));this[r(0x322,0x327)]=d;}get[o(-0xb4,-0xcd)](){_end[s(0x20f,0x1fe)]('7.0.0',s(0x1e4,0x1c2));function s(a,b){return o(b,a-0x2b5);}return this[s(0x1d9,0x1ea)];}['finalizeCommitHook'](d){function t(a,b){return o(a,b-0x29f);}this[t(0x1fb,0x1dc)]=![];return![];}[o(-0x94,-0xa1)]({transactionResult:d}){function u(a,b){return o(a,b-0x1ed);}this['graph']?.[u(0xef,0x114)]([...this['segmentsToCleanup']]);this['segmentsToCleanup'][u(0xe8,0x11d)]();}[o(-0x9d,-0xc2)](){return ChronoEventStoreMixin;}['getDefaultResourceAllocationInfoClass'](){return ResourceAllocationInfo;}[o(-0xf8,-0xed)](){b['afterConfigure'][v(0x2f3,0x2fd)](this,arguments);function v(a,b){return o(a,b-0x398);}this[v(0x31b,0x2eb)]=this['dateConstraintIntervalClass']||DateConstraintInterval;this['dependencyConstraintIntervalClass']=this[v(0x2f2,0x2e3)]||DependencyConstraintInterval;}[o(-0x11a,-0xdd)](){function w(a,b){return o(b,a-0x5b0);}return ProjectType[w(0x4c9,0x49b)];}[o(-0xd5,-0xbb)](){return SchedulerProCycleEffect;}[o(-0x82,-0x94)](){return SchedulerProEvent;}['getDefaultDependencyModelClass'](){return SchedulerProDependencyMixin;}['getDefaultAssignmentModelClass'](){return SchedulerProAssignmentMixin;}[o(-0xc8,-0xc1)](){return SchedulerProResourceMixin;}async[o(-0x5f,-0x91)](d,e,f,g){let h;if(g){h=Array['isArray'](g)?g:[g];}const i=CI(d[x(-0xe4,-0xfc)])[x(-0xfb,-0x10b)](j=>j['toEvent']===e&&!h?.[x(-0x142,-0x14f)](j));if(i){return DependencyValidationResult[x(-0x116,-0x115)];}function x(a,b){return o(a,b- -0x71);}if(d[x(-0x192,-0x157)](e)||e['contains'](d)){return DependencyValidationResult['CyclicDependency'];}if(await this[x(-0x176,-0x149)](d,e,f,h)){return DependencyValidationResult[x(-0x126,-0xff)];}return DependencyValidationResult[x(-0x189,-0x151)];}*[o(-0x8d,-0xaa)](){const d=yield this['$']['startDate'];const e=yield this['$'][y(-0x115,-0x125)];if(!d||!e)return null;if(d>e)return 0x0;function y(a,b){return o(a,b- -0x83);}return yield*super[y(-0x168,-0x12d)]();}async[o(-0xb0,-0xa3)](d,e,f,g){const h=await this[z(0x23d,0x24f)](d,e,f,g);function z(a,b){return o(b,a-0x2ce);}return h===DependencyValidationResult[z(0x1ee,0x1e0)];}['getDependencyCycleDetectionIdentifiers'](d,e){function A(a,b){return o(b,a-0x3bb);}return[e[A(0x32b,0x341)]['$'][A(0x31f,0x30b)],e[A(0x32b,0x340)]['$'][A(0x2c7,0x2b5)]];}async[o(-0xfb,-0xd8)](d,f,g,h){const i=this[B(0x1ee,0x221)]()['modelClass'];const j=new i({'fromEvent':d,'toEvent':f,'type':g});function B(a,b){return o(a,b-0x2ae);}const k=this[B(0x1dc,0x1ef)]['branch']({'autoCommit':![],'onComputationCycle':'throw'});if(h){if(!Array[B(0x1bb,0x1b8)](h)){h=[h];}h[B(0x1c6,0x1d4)](l=>k[B(0x250,0x226)](l));}k[B(0x20f,0x20f)](j);j[B(0x24a,0x217)]=this;try{await Promise[B(0x1ca,0x1e8)](this[B(0x222,0x1f8)](d,f)[B(0x1f9,0x1e9)](l=>k[B(0x1c2,0x1ea)](l)));return![];}catch(l){if(/cycle/i[B(0x207,0x22d)](l))return!![];if(!/conflict/i[B(0x216,0x22d)](l)){throw l;}}finally{k[B(0x19e,0x1bd)]();}}async[o(-0x61,-0x96)](d,e){function C(a,b){return o(a,b-0x94);}return this[C(0xd,-0xf)](d[C(-0x5c,-0x2a)],d[C(0x9,-0x25)],d['type'],e);}}c[o(-0xd5,-0xae)]=o(-0xb2,-0xbc);__decorate([model_field({'type':'string','defaultValue':DependenciesCalendar[o(-0x73,-0xa8)]})],c[o(-0xe3,-0xb4)],o(-0x72,-0x8c),void 0x0);__decorate([model_field({'type':o(-0xc6,-0xf5),'defaultValue':!![]})],c['prototype'],o(-0x8b,-0xb0),void 0x0);__decorate([model_field({'type':'string','defaultValue':StartedTaskScheduling['Auto']})],c[o(-0xa3,-0xb4)],o(-0x7f,-0xa7),void 0x0);__decorate([model_field({'type':o(-0x10f,-0xf5),'defaultValue':!![]})],c[o(-0xa2,-0xb4)],o(-0xe6,-0xd7),void 0x0);__decorate([model_field({'type':o(-0xca,-0xf5),'defaultValue':!![]})],c[o(-0xed,-0xb4)],o(-0xf4,-0xd5),void 0x0);__decorate([model_field({'type':o(-0x118,-0xf5),'defaultValue':![]})],c['prototype'],'allowPostponedConflicts',void 0x0);__decorate([model_field({'type':o(-0xb9,-0xf5),'defaultValue':![]})],c[o(-0x93,-0xb4)],o(-0x111,-0xdc),void 0x0);__decorate([model_field({'type':o(-0x10e,-0xf5),'defaultValue':!![]})],c[o(-0xac,-0xb4)],o(-0x9c,-0x85),void 0x0);__decorate([model_field({'persist':![]})],c['prototype'],o(-0xaf,-0xe8),void 0x0);return c;}){}function _ena(){const O=['isArray','boolean','endDateConstraintIntervals','deactivateDependencyConflictResolutionClass','new','clearBranch','push','getResolutions','proposedMirror','afterConfigure','5279373pqEKga','durationUnit','decorate','tasksData','currency','SchedulerPro','contains','SchedulerProTimePhasedProjectMixin','candidate','tasks','9qCRkLl','640379iMJvLI','NoError','resolve','includes','getType','autoPostponeConflicts','_resolutions','forEach','removeEntities','isDependencyCyclic','addConstraintOnDateSet','DeactivateDependencyCycleEffectResolution','autoScheduleManualTasksOnSecondPass','bwcConflictPostpone','effort','length','autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts','clear','ion','matchDependencyBySourceAndTargetEvent','autoPostponedConflicts','getDefaultResourceAllocationInfoClass','object','autoSetConstraints','deactivateDependencyCycleEffectResolutionClass','transaction','construct','all','map','readAsync','isInitialTransaction','getDefaultEventStoreClass','getDefaultResourceModelClass','12640bkSbuB','replica','fromEvent','L{descriptionTpl}','SchedulerProProjectMixin','getDefaultCycleEffectClass','getDefaultAssignmentModelClass','toEvent','196527rawkTR','active','getDependencyCycleDetectionIdentifiers','dependencyConstraintIntervalClass','prototype','includeAsapAlapAsConstraints','206744wxhOQv','duration','autoCalculatePercentDoneForParentTasks','buildInvalidDependencyResolutions','$name','dateConstraintIntervalClass','1312cvzfFf','getOwnPropertyDescriptor','calculateDurationPure','7407650AskSjP','ToEvent','startedTaskScheduling','deprecate','call','DuplicatingDependency','isValidDependency','endDate','internalOnCommitFinalized','7.0.0','addEntity','startDate','effortUnit','startDateConstraintIntervals','apply','some','assignmentStore','selector','project','isValidDependencyModel','function','getDefaultEventModelClass','getInvalidDependencies','proposedTimePhasedWrites','validateDependency','earlySchedule','26xeZFat','CyclicDependency','getDependencyStore','dependenciesCalendar','outgoingDeps','defaultConfig','getTime','removeEntity','getDescription','removeDependencyConflictResolutionClass','autoMergeAdjacentSegments','1656282RAedYI','14clojng','mergeConfigs','test','hasInputOnEffort','graph','getDependencies'];_ena=function(){return O;};return _ena();}class SchedulerProTimePhasedProjectMixin extends Mixin([SchedulerProProjectMixin],a=>{function D(a,b){return _enb(b-0x18a,a);}class b extends a{[D(0x31e,0x32b)](){function E(a,b){return D(a,b- -0x454);}return ProjectType[E(-0x15e,-0x133)];}[D(0x384,0x374)](){return SchedulerProTimePhasedEvent;}[D(0x365,0x34e)](){return SchedulerProTimePhasedAssignmentMixin;}['internalOnCommitFinalized']({transactionResult:c}){function F(a,b){return D(b,a- -0x533);}super[F(-0x1cc,-0x1d2)]({'transactionResult':c});this[F(-0x1c4,-0x19d)][F(-0x205,-0x1e4)](d=>{if(!d[G(0x84,0xaf)]){return;}const e=c[G(0xb4,0x93)][G(0x98,0xce)][G(0xea,0xf1)];const f=d[G(0x8e,0x61)];const g=d['event']?.[G(0xe4,0xcb)];const h=g?g[G(0xfc,0xd0)]||g['hasInputOnAssignments']&&g['hasPreviousEffortValue']:![];if(f[G(0xde,0xc3)]!=null&&f[G(0xde,0xe9)][G(0xf3,0xe7)]()!==d[G(0xde,0xc6)]?.[G(0xf3,0xda)]()){e[G(0x8c,0x8c)]([f['$'][G(0xde,0xea)],d[G(0xde,0xd8)]]);}if(f[G(0xda,0x109)]!=null&&f['endDate'][G(0xf3,0x117)]()!==d['endDate']?.[G(0xf3,0x128)]()){e[G(0x8c,0xb6)]([f['$'][G(0xda,0x110)],d['endDate']]);}if(f[G(0xcb,0xca)]!=null&&f[G(0xcb,0x93)]!==d[G(0xcb,0xdc)]){e[G(0x8c,0x52)]([f['$'][G(0xcb,0x103)],d[G(0xcb,0xce)]]);}function G(a,b){return F(a-0x2a7,b);}if(f[G(0x91,0x5d)]!=null&&f[G(0x91,0x74)]!==d[G(0x91,0x87)]){e[G(0x8c,0x6f)]([f['$'][G(0x91,0xaf)],d[G(0x91,0xbe)]]);}if(f[G(0xa9,0xd1)]!=null&&f[G(0xa9,0x83)]!==d[G(0xa9,0x76)]){if(!h)e['push']([f['$'][G(0xa9,0xa7)],d['effort']]);else f[G(0xa9,0x6e)]=d[G(0xa9,0xda)];}if(f[G(0xdf,0xc9)]!=null&&f[G(0xdf,0xee)]!==d[G(0xdf,0xc4)]){if(!h)e[G(0x8c,0xbd)]([f['$'][G(0xdf,0xc2)],d[G(0xdf,0xb4)]]);else f[G(0xdf,0x10d)]=d[G(0xdf,0x10b)];}},this,{'includeFilteredOutRecords':!![]});}}b['$name']=D(0x31e,0x323);return b;}){}class DeactivateDependencyCycleEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enH(0x581,0x557)](){function I(a,b){return _enH(b,a- -0x51e);}return this['L'](I(0x3,0x16));}[_enH(0x4d5,0x4ff)](a){function J(a,b){return _enH(a,b- -0x22f);}a[J(0x309,0x2f8)]=![];}}DeactivateDependencyCycleEffectResolution[_enH(0x517,0x530)]=_enH(0x4ce,0x508);class SchedulerProCycleEffect extends CycleEffect{[_enH(0x56a,0x54b)](){function K(a,b){return _enH(a,b- -0x73);}if(!this['_invalidDependencies']){const a=this[K(0x444,0x474)]();this['_invalidDependencies']=a['filter'](b=>b[K(0x480,0x4ad)]===b[K(0x4b6,0x4b2)]||(b['fromEvent'][K(0x487,0x485)](b[K(0x4cd,0x4b2)])||b[K(0x479,0x4b2)]['contains'](b[K(0x489,0x4ad)])));}return this['_invalidDependencies'];}['buildInvalidDependencyResolutions'](a){function L(a,b){return _enH(b,a- -0x5bb);}return[this[L(-0x63,-0x33)][L(-0xcf,-0x94)](a),this[L(-0xd0,-0xd7)]['new'](a)];}['matchDependencyBySourceAndTargetEvent'](a,b,c){function M(a,b){return _enH(b,a- -0xd0);}return a[M(0x457,0x42e)]&&super[M(0x440,0x450)](a,b,c);}[_enH(0x509,0x4ef)](){function N(a,b){return _enH(b,a- -0xed);}if(!this['_resolutions']){const a=this[N(0x45e,0x450)]();const b=[];for(const c of a){b[N(0x401,0x3d3)](...this[N(0x442,0x464)]({'dependency':c}));}if(!a[N(0x41f,0x44f)]){b['push'](this[N(0x428,0x43e)][N(0x3ff,0x40e)](),...super[N(0x402,0x416)]());}this['_resolutions']=b;}return this[N(0x416,0x3e2)];}}__decorate([prototypeValue(DeactivateDependencyCycleEffectResolution)],SchedulerProCycleEffect[_enH(0x4ef,0x52a)],_enH(0x538,0x515),void 0x0);__decorate([prototypeValue(RemoveDependencyResolution)],SchedulerProCycleEffect['prototype'],_enH(0x55e,0x558),void 0x0);__decorate([prototypeValue(DeactivateDependencyResolution)],SchedulerProCycleEffect[_enH(0x508,0x52a)],'deactivateDependencyConflictResolutionClass',void 0x0);export{DeactivateDependencyCycleEffectResolution,SchedulerProCycleEffect,SchedulerProProjectMixin,SchedulerProTimePhasedProjectMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x14d;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function L(a,b){return _enb(a-0xad,b);}while(!![]){try{const d=-parseInt(L(0x23f,0x25c))/0x1+parseInt(L(0x203,0x219))/0x2*(-parseInt(L(0x270,0x277))/0x3)+-parseInt(L(0x26a,0x28a))/0x4+-parseInt(L(0x227,0x1fa))/0x5*(parseInt(L(0x220,0x204))/0x6)+parseInt(L(0x21b,0x235))/0x7*(-parseInt(L(0x241,0x1f8))/0x8)+parseInt(L(0x289,0x29f))/0x9+-parseInt(L(0x204,0x23d))/0xa*(-parseInt(L(0x23d,0x285))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe8c4d));var __decorate=function(a,b,e,f){function M(a,b){return _enb(a- -0x9b,b);}var g=arguments[M(0xba,0x103)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x10b,0x110)]===M(0x136,0xf7))h=Reflect[M(0x10b,0xc9)](a,b,e,f);else for(var k=a[M(0xba,0x80)]-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;};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';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';function _ena(){const av=['forceSegmentsMerging','rawModifications','from','dispatcher','endBatch','run','convertDurationGen','data','getSegment','findIndex','getPath','function','processSegmentsValue','shift','isForward','getSegmentsSnapshot','splice','processSegmentValue','calculateStartDate','effectiveDirection','forEach','isModel','2369340YyzDmQ','calculateDurationProposed','constructor','adjustDurationToDST','segmentIndex','SegmentsVar','array','write','endDate','resolution','hasSegmentChangesProposed','length','49970kysgCX','30LuOHVb','lastSegment','useEventAvailabilityIterator','splitToSegments','min','skipNonWorkingTime','ignoreSegments','internalId','pop','isManuallyScheduled','getProject','childEvents','startDate','fieldMap','_processingDataForProject','SplitEventMixin','doWriteSegments','getTime','addProposedValueFlag','forEachAvailabilityInterval','has','setPath','storeFieldChange','133EAhMGv','segments','getSegments','isHasSubEventsMixin','mergeSegments','60WnZTcr','map','prepareDispatcher','ignoreResourceCalendar','_skipSegmentsIsEqual','calculateStartDateBySegments','startOffset','617905JPJTeb','durationUnit','getCalendarsWorking','modified','calculateProjectedDuration','call','writeSegments','skipNonWorkingTimeWhenSchedulingManually','cls','hasIdentifier','toJSON','getSegmentIndexByDate','get','getValue','calculateSegments','leaveProject','calculateEndDate','size','slice','segmentModelClass','add','duration','21289048aDgnNR','cycleResolutionContext','421350mISRWb','replica','106984IANMlq','prototype','join','copy','max','maxCalendarRange','effectiveCalendarsCombination','equality','calculateEndDateBySegments','getTimezoneOffset','processData','getSegmentByDate','graph','_segmentGeneration','push','project','getFieldDefinition','None','decorate','internalClearChanges','segmentsToCleanup','isSegmented','_lastSegmentsSnapshot','new','effectiveCalendar','zeroDurationMsThreshold','getFieldPersistentValue','nextSegment','setProject','some','endOffset','reduce','previousSegment','meta','convert','addEntity','Millisecond','unlink','event','formulaId','commitAsync','6722444TDBEMQ','firstSegment','removeEntities','adjustedSegments','generation','calculateProjectedXDateWithDuration','183NQauqh','normalizeUnit','assign'];_ena=function(){return av;};return _ena();}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- -0x222,a);}import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(-0x101,-0xd3));const segmentsConverter=(a,b,c)=>c[_enN(-0x6f,-0x50)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(-0x61,-0x77)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(-0x36,-0x77)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(-0x4d,-0x77)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(-0xaa,-0x77)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution['new']({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(-0xa1,-0x87)](a,b){const c=a[O(0x51a,0x527)];function O(a,b){return _enN(a,b-0x5f6);}const d=b[O(0x518,0x527)];return super[O(0x5aa,0x56f)](a,b)&&c[O(0x597,0x55a)](SegmentsVar)===d[O(0x52b,0x55a)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b,a- -0xc4);}if(!c&&!d)return!![];if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c['length']!==d[P(-0x191,-0x150)])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x609,0x5c0)]?c:d;const f=e[Q(0x509,0x549)];const g=c[Q(0x543,0x548)]instanceof Date?c[Q(0x586,0x548)][Q(0x54c,0x54d)]():f['startDate'][Q(0x5bf,0x59b)](c[Q(0x572,0x548)])?.[Q(0x591,0x54d)]();const h=d[Q(0x562,0x548)]instanceof Date?d[Q(0x572,0x548)][Q(0x528,0x54d)]():f[Q(0x516,0x548)][Q(0x559,0x59b)](d[Q(0x528,0x548)])?.[Q(0x56e,0x54d)]();const i=c[Q(0x54f,0x537)]instanceof Date?c[Q(0x503,0x537)]['getTime']():f[Q(0x550,0x537)][Q(0x5cd,0x59b)](c[Q(0x578,0x537)])?.[Q(0x58a,0x54d)]();function Q(a,b){return _enN(a,b-0x607);}const j=d[Q(0x563,0x537)]instanceof Date?d['endDate'][Q(0x548,0x54d)]():f['endDate'][Q(0x55a,0x59b)](d['endDate'])?.['getTime']();return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0x158,0x18a)]((b,c,d)=>{function S(a,b){return R(a- -0xe4,b);}if(b){b['nextSegment']=c;}c[S(0x75,0xb5)]=b;c[S(0xf,-0x1e)]=d;return c;},null);function R(a,b){return _enN(b,a-0x1c7);}if(a['length']){a[a[R(0xfa,0xf6)]-0x1][R(0x154,0x17f)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(a-0x58,b);}this[T(0x1f9,0x201)]={};}get[U(0x193,0x19a)](){let c=super['rawModifications'];function V(a,b){return U(a-0xe3,b);}if(this[V(0x21e,0x24b)]&&(!c||!(V(0x21e,0x1eb)in c))){for(const d of this['segments']){if(d[V(0x276,0x2a9)]){c=c||{};c[V(0x21e,0x205)]=this[V(0x25d,0x227)](V(0x21e,0x210));break;}}}return c;}[U(0x173,0x180)](c,d,e,...f){for(const g of this['segments']||[]){if(g[W(0x332,0x349)]){g[W(0x2fe,0x2f5)][W(0x2d6,0x319)](g,c,d,null,...f);}}function W(a,b){return U(a-0x18b,b);}super[W(0x2fe,0x2cf)]['call'](this,c,d,e,...f);}*[U(0x141,0x148)](c){const d=yield*super[X(0x542,0x539)](c);function X(a,b){return U(b-0x3f8,a);}if(yield*this[X(0x524,0x518)]()){d[X(0x51a,0x52d)](SegmentsVar);}return d;}[U(0x15d,0x149)](c){const d=c(this['$'][Y(-0x1de,-0x1e2)]);function Y(a,b){return U(a- -0x383,b);}return d['direction']===Direction['Forward']||d['direction']===Direction[Y(-0x212,-0x209)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*['hasSegmentChangesProposed'](){const c=yield ProposedValueOf(this['$'][Z(0xeb,0x113)]);let d=![];if(yield HasProposedValue(this['$'][Z(0x158,0x113)])){d=Boolean(c);}function Z(a,b){return U(b- -0x28,a);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$']['endDate']);const i=yield HasProposedValue(f['$']['duration']);if(g||h||i)d=!![];}return d;}['writeSegments'](c,d,e,f){const g=d['getLatestStableEntryFor'](c)?.[a0(0x92,0x9f)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x44,0x8c)](n=>n[a0(0xca,0xf3)]?n:this['processSegmentValue'](n));const k=new Set(j);const l=this['project'];const m=l[a0(0x73,0xab)];function a0(a,b){return U(b- -0xb4,a);}for(const n of h){if(!k['has'](n)){l['segmentsToCleanup']['add'](n);n[a0(0xf8,0xd2)]=null;}}fillNextPrevious(j);c[a0(0xf1,0xf6)][a0(0xdf,0xad)][a0(0x76,0x69)][a0(0x60,0x97)](this,c,d,e,j[a0(0x6a,0x6d)]>0x0?j:null);d[a0(0x46,0x69)](this['$'][a0(0xaf,0xc1)],Boolean(f?.[a0(0x3c,0x6d)]));for(const o of j){if(!i[a0(0x56,0x83)](o)&&o['graph']!==m){o[a0(0xc1,0xc8)](l);o['event']=this;m[a0(0x9d,0xcf)](o);}}}*[U(0x133,0x115)](c,d){d=d||[];if(c[a1(-0xa5,-0xa0)]<=0x1){const e=c[a1(-0xa5,-0xb8)]?yield*this[a1(-0x2e,-0x6d)](c[0x0][a1(-0x48,-0x48)]-c[0x0]['startOffset'],TimeUnit[a1(-0x42,-0xf)],yield this['$']['durationUnit']):0x0;d['push']({'identifier':this['$'][a1(-0x6b,-0x23)],'proposedArgs':[e,null]});c=null;}d[a1(-0x58,-0x79)]({'identifier':this['$'][a1(-0x8b,-0xd4)],'proposedArgs':[c]});function a1(a,b){return U(a- -0x1c6,b);}yield WriteSeveral(d);}*[U(0x154,0x137)](){const c=yield this['$']['dispatcher'];const {graph:d,project:e}=this;const f=e[a2(-0x22b,-0x200)];const g=yield e['$']['autoMergeAdjacentSegments']||this[a2(-0x1f2,-0x218)];const h=yield PreviousValueOf(this['$']['segments']);let i=yield ProposedOrPrevious;const j=[];function a2(a,b){return U(a- -0x384,b);}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['$']['startOffset'];const s=yield q['$'][a2(-0x206,-0x244)];const t=yield q['$'][a2(-0x229,-0x1f1)];const u=p[a2(-0x235,-0x262)](q['$'][a2(-0x255,-0x29c)])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(-0x235,-0x24b)](q['$'][a2(-0x266,-0x273)])&&(yield ProposedArgumentsOf(q['$'][a2(-0x266,-0x273)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(-0x216,-0x1f3)](q);}else if(g&&m&&r+o<=m[a2(-0x206,-0x1de)]){const w=m['endOffset'];j['push'](q);if(m['graph']){j['push'](m);const x=m[a2(-0x23f,-0x22f)];const y=n?s+w-r:Math[a2(-0x220,-0x1df)](s,w);const z=m[a2(-0x236,-0x24d)];m=f[a2(-0x20d,-0x1f0)]({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m[a2(-0x206,-0x1ed)]=n?s+m[a2(-0x206,-0x1d3)]-r:Math['max'](s,m['endOffset']);}}else if(!g&&m&&(o||r<m[a2(-0x206,-0x1cf)])){l[a2(-0x22a,-0x21b)](m);j[a2(-0x216,-0x238)](q);if(r+o<m[a2(-0x206,-0x1c8)]){o+=m['endOffset']-r-o;}m=f['new']({'id':q['id'],'event':this,'cls':m[a2(-0x236,-0x205)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l['add'](m);}m=q;}}if(m){l['add'](m);}if(l[a2(-0x22d,-0x23c)]===0x1){j[a2(-0x216,-0x1f6)](...l);}k=j['length']>0x0;if(k){i=Array[a2(-0x1f0,-0x1de)](l);}fillNextPrevious(i);}else if(h){j[a2(-0x216,-0x236)](...h);}if(j[a2(-0x263,-0x282)]){for(const A of j){A['event']=null;e[a2(-0x210,-0x217)]['add'](A);}}if(k){yield*this[a2(-0x251,-0x26c)](i);}i=i?.[a2(-0x263,-0x283)]>0x1?i:null;return i;}*['calculateAdjustedSegments'](){const c=yield this['$'][a3(0x55a,0x534)];let d=yield this['$'][a3(0x508,0x4da)];const e=yield this['$'][a3(0x4c3,0x4ce)];const f=yield this['$'][a3(0x476,0x4bd)];const g=yield this['$'][a3(0x4ce,0x4fa)];let h=yield ProposedOrPrevious;if(d){const j=this['project'];const k=this[a3(0x4d5,0x50b)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x4e5,0x4c0)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x507,0x4ce)];const t=yield r['$'][a3(0x4ec,0x4bd)];if(s>f){l[a3(0x4c5,0x50d)](r);n=q;}else{if(t[a3(0x4fd,0x4d3)]()!==f[a3(0x498,0x4d3)]()){const u=r[a3(0x565,0x51d)]+(f[a3(0x4dc,0x4d3)]()-t[a3(0x4d6,0x4d3)]())-r[a3(0x4f7,0x4e4)];const v=yield*this[a3(0x557,0x537)](u,TimeUnit['Millisecond'],yield r['$'][a3(0x4cb,0x4e6)]);m['push']({'identifier':r['$'][a3(0x4b4,0x4fa)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x474,0x4bd)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x50c,0x51d)],'proposedArgs':[r['endOffset']+(f[a3(0x4a2,0x4d3)]()-t[a3(0x48e,0x4d3)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x532,0x541)](n);if(d['length']){d[d[a3(0x4aa,0x4c0)]-0x1][a3(0x50f,0x51a)]=null;}for(const w of l){j[a3(0x53c,0x513)][a3(0x51e,0x4f9)](w);}}let p='';if(d){p=this[a3(0x511,0x540)](d);}if(p!==this[a3(0x502,0x515)]){o=!![];d=d?d[a3(0x50f,0x4f7)]():d;this[a3(0x502,0x515)]=p;}if(o){yield*this[a3(0x4cf,0x4d2)](d,m);}}function a3(a,b){return U(b-0x39f,a);}return h;}[U(0x1a1,0x1bd)](c){c=c||this[a4(0x1b6,0x190)];function a4(a,b){return U(a-0x7b,b);}return c?.[a4(0x1bb,0x1cd)](d=>''+d[a4(0x1c0,0x187)]+'-'+d[a4(0x1aa,0x17d)]?.[a4(0x1af,0x1f4)]()+'-'+d[a4(0x1f9,0x219)]+'-'+d[a4(0x199,0x190)]?.[a4(0x1af,0x19f)]())[a4(0x1dd,0x1c0)](';');}static['processData'](c,d,e,f,g){function a5(a,b){return U(b-0x13c,a);}if(e){f[a5(0x26e,0x26d)]=e[a5(0x288,0x2ab)];}return super[a5(0x2ec,0x2a6)](c,d,e,f,g);}[U(0x1a3,0x1bf)](c){const d=this[a6(0x492,0x4cd)]?.['segmentModelClass']||this[a6(0x454,0x497)]?.[a6(0x47c,0x4a8)];if(!d)return c;function a6(a,b){return U(a-0x323,b);}const e=c[a6(0x4ca,0x4b6)]?c:d[a6(0x49a,0x465)](c);if(!e[a6(0x4a9,0x46c)])e['event']=this;return e;}['processSegmentsValue'](c){if(c===void 0x0)return void 0x0;function a7(a,b){return U(a-0x284,b);}if(c==null)return null;return c['map'](d=>this[a7(0x427,0x3eb)](d));}*[U(0x1a4,0x171)](){const c=yield this['$'][a8(0x15b,0x124)];function a8(a,b){return U(a- -0x3a,b);}const d=c[a8(0xe5,0xe8)][a8(0x118,0x147)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a8(0x14d,0x142)]){e=yield*this[a8(0x10a,0xce)]();}else{e=yield*super[a8(0x16a,0x15a)]();}return e;}*[U(0x144,0x14f)](){function a9(a,b){return U(b- -0x61,a);}const c=yield this['$'][a9(0x135,0x134)];const d=yield this['$']['segments'];const e=yield this['$'][a9(0x74,0xbd)];let f;if(d){const g=d[d[a9(0xc5,0xc0)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(0x149,0x12d)](e,![],h,TimeUnit[a9(0x12f,0x123)],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this['getProject']()[a9(0x121,0xec)]?i:yield*this[a9(0x88,0xc7)](i,!![]);}return f;}*['calculateEndDateBySegments'](){const c=yield this['$'][aa(-0xb5,-0xe4)];const d=yield this['$']['segments'];const e=yield this['$'][aa(-0x11b,-0x11c)];let f;if(d){const g=d[d['length']-0x1];const h=yield g['$'][aa(-0xcc,-0xa4)];const i=yield*this['calculateProjectedXDateWithDuration'](e,!![],h,TimeUnit[aa(-0xc6,-0xf9)],{'ignoreSegments':!![]});const j=yield*this[aa(-0x11e,-0x118)]();f=j&&!this[aa(-0x11d,-0x15a)]()[aa(-0xfd,-0x128)]?i:yield*this[aa(-0x122,-0xe9)](i,![]);}function aa(a,b){return U(a- -0x24a,b);}return f;}*['calculateEndDate'](){const c=yield this['$'][ab(-0x56,-0x68)];const d=c[ab(-0xcc,-0xa3)][ab(-0x99,-0x6d)](EndDateVar);function ab(a,b){return U(a- -0x1eb,b);}let e;if(d===endDateByStartDateAndSegmentsFormula[ab(-0x64,-0x5f)]){e=yield*this[ab(-0x83,-0xa7)]();}else{e=yield*super[ab(-0x95,-0xac)]();}return e;}*[U(0x1a9,0x1c8)](){function ac(a,b){return U(b- -0x159,a);}let c;if(yield*this[ac(0x7,-0x39)]()){c=yield*this['calculateDurationBySegments']();}else{c=yield*super['calculateDurationProposed']();}return c;}*[U(0x128,0x10c)](c,d=!![],e){if(!c)return null;e=Object['assign']({'ignoreSegments':!![]},e);function ad(a,b){return U(a- -0x1c3,b);}return yield*super[ad(-0x9b,-0xdc)](c,d,e);}*['calculateDurationBySegments'](){function ae(a,b){return U(a-0x20c,b);}let c;const d=yield this['$'][ae(0x3a1,0x35c)];const e=yield this['$'][ae(0x353,0x31f)];const f=yield this['$']['segments'];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h['startOffset'];}c=yield*this[ae(0x3a4,0x399)](g,TimeUnit[ae(0x390,0x37f)],e);}return c;}*[U(0x136,0xf7)](c,d){const e=yield this['$'][af(-0x1b6,-0x187)];let f=c[af(-0x202,-0x1f0)];if(!e||f){return yield*super[af(-0x1f5,-0x1b2)](c,d);}const g=this[af(-0x1fe,-0x22a)]();const h=yield this['$'][af(-0x1b3,-0x1e2)];function af(a,b){return U(a- -0x32b,b);}const i=yield this['$']['assignmentsByCalendar'];const j=yield this['$'][af(-0x1c5,-0x1c1)];const k=c[af(-0x18b,-0x167)]!==![];const l=(yield this['$']['ignoreResourceCalendar'])||(yield*this['hasElapsedDuration']())||c[af(-0x1e9,-0x208)]||!i[af(-0x1d4,-0x192)];const m=g[af(-0x1c6,-0x1bb)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$']['segments'];f=f||!r||k===![]&&r[0x0][af(-0x1fc,-0x1c4)]>=c[af(-0x20d,-0x1e4)]||k===!![]&&r[r[af(-0x20a,-0x22c)]-0x1]['endDate']<c[af(-0x1fc,-0x1c8)];if(!f){r=r[af(-0x1d3,-0x18c)]();if(k){o=r[af(-0x18c,-0x183)]();p=0x0;n=0x1;s=o[af(-0x1b0,-0x193)]?o[af(-0x1ad,-0x172)]:MAX_DATE[af(-0x1f7,-0x1fe)]();}else{o=r[af(-0x200,-0x1f4)]();p=o[af(-0x1ad,-0x1cd)];n=-0x1;s=o['endOffset'];}q=s-o[af(-0x1e6,-0x1d0)];}}const t=yield*this['isManuallyScheduled']();const u=g[af(-0x212,-0x24c)];const v=this[af(-0x1b2,-0x1ac)];return j[af(-0x1f5,-0x202)](Object['assign']({'maxRange':m},c),(w,x,y)=>{const z=y['getCalendarsWorkStatus']();function ag(a,b){return af(b-0x309,a);}const A=y[ag(0xe6,0x126)]();if(z[ag(0x152,0x130)](h)&&(l||A[ag(0x15f,0x15b)](B=>i[ag(0x134,0x115)](B))||t&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'])){if(f){return d(w,x,y);}else{const B=w['getTime']();let C=x['getTime']()-w[ag(0x13b,0x112)]();if(u){const F=w[ag(0x11b,0x147)]()-x[ag(0x146,0x147)]();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(0x146,0x123)]){const G=Math['max'](D,o[ag(0x169,0x123)]);const H=Math[ag(0x115,0x105)](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['getTime']()-I[ag(0x12d,0x112)]();if(q<v){o=k?r[ag(0x17c,0x17d)]():r[ag(0x118,0x109)]();if(o){s=!k||o[ag(0x12c,0x159)]?o[ag(0x147,0x15c)]:MAX_DATE[ag(0x10b,0x112)]();q=s-o['startOffset'];}}else{break;}}p+=n*C;}}});}*[U(0x125,0x111)](){function ah(a,b){return U(b- -0x120,a);}const c=yield this['$']['isSegmented'];return c||(yield*super[ah(0x13,0x5)]());}[U(0x16b,0x184)](c,d){function ai(a,b){return U(a- -0x13,b);}d=d||this['getSegments']();if(d){const e=this[ai(0x13e,0x17b)](c,d);return d[e];}}['getSegmentIndexByDate'](c,d){d=d||this[aj(0x458,0x47b)]();function aj(a,b){return U(a-0x31c,b);}return d?d[aj(0x4b7,0x4cb)](e=>c>=e[aj(0x44b,0x48c)]&&c<e[aj(0x43a,0x425)]):-0x1;}get[U(0x18a,0x158)](){function ak(a,b){return U(b-0x11,a);}const c=this[ak(0x14e,0x14d)]();return c?c[0x0]:null;}get[U(0x124,0x101)](){function al(a,b){return U(b- -0x50,a);}const c=this[al(0xe2,0xec)]();return c?c[c[al(0x8a,0xd1)]-0x1]:null;}[U(0x19a,0x163)](c){function am(a,b){return U(a-0x2a8,b);}const d=this[am(0x3e4,0x3d9)]();return d?.[c];}async[U(0x126,0xf2)](c,d=0x1,e){const f=this[an(0x1eb,0x1de)]();const g=f[an(0x1f5,0x20a)];await f['commitAsync']();const h=this;if(!c||h[an(0x1c2,0x1ee)]&&h[an(0x205,0x1df)]?.[an(0x24e,0x208)])return;const j=h[an(0x233,0x20c)];const k=h['durationUnit'];const m=h[an(0x1e5,0x1e0)];const n=h[an(0x1cb,0x1cf)];e=e?_enc[an(0x1fa,0x241)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(0x268,0x226)];let p=h['segments']||[];let q,r;if(o){r=h[an(0x20c,0x202)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s['startDate']:m;const u=s[an(0x23c,0x20c)];function an(a,b){return U(b-0xb1,a);}const v=s[an(0x20f,0x1f8)];const w=s['name'];const x=h['run'](an(0x23e,0x1fb),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(0x27e,0x248)]('convertDurationGen',d,e,TimeUnit[an(0x1f4,0x235)]);const A=z+h[an(0x238,0x248)](an(0x23f,0x1fb),m,c,TimeUnit[an(0x251,0x235)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x22f,0x228)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x215,0x209)](0x0);p[an(0x22f,0x253)](r+0x1,0x0,B);h[an(0x1e8,0x1ec)]=p;h['duration']=j;for(let C=r+0x2,D=p[an(0x1e1,0x1d2)];C<D;C++){const E=p[C];if(E){E[an(0x1b2,0x1f6)]+=z;E[an(0x1f7,0x22f)]+=z;}}}else{const F=g[an(0x223,0x228)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x251,0x228)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x252,0x20c)]=j;h[an(0x235,0x1ec)]=[F,G];}return f['commitAsync']();}async[U(0x13e,0x115)](c,d){if(!this[ao(0x3aa,0x385)])return;function ao(a,b){return U(a-0x235,b);}this[ao(0x3c7,0x3bd)]=!![];c=c||this[ao(0x3bf,0x39b)];d=d||this[ao(0x359,0x34a)];if(c['startOffset']>d[ao(0x37a,0x34d)]){let f=d;d=c;c=f;}c[ao(0x353,0x311)]=d[ao(0x364,0x331)];const e=await this[ao(0x362,0x33e)]()[ao(0x3bd,0x405)]();this[ao(0x3c7,0x391)]=![];return e;}[U(0x139,0x169)](c,d){if(c==='segments'&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x349,0x346)]();if(!this[ap(0x3a6,0x363)][f['internalId']]||f[ap(0x349,0x383)]>this[ap(0x33b,0x363)][f['internalId']]){Object['assign'](g,f[ap(0x343,0x377)][ap(0x333,0x33f)]);}e[ap(0x36c,0x364)](g);this['_segmentGeneration'][f[ap(0x324,0x320)]]=f[ap(0x3b5,0x383)];}else{e[ap(0x338,0x364)](f);}}d=e;}function ap(a,b){return U(b-0x1f6,a);}super[ap(0x30b,0x32f)](c,d);}[U(0x155,0x19c)](){const c=this[aq(0x3b1,0x3ca)];if(c){this[aq(0x3e2,0x3e5)]?.[aq(0x401,0x414)](c);}function aq(a,b){return U(a-0x276,b);}super[aq(0x3cb,0x3b7)]();}[U(0x196,0x180)](...c){this[ar(0x3ba,0x3da)][ar(0x3a8,0x3e5)][ar(0x3f1,0x3ed)]++;function ar(a,b){return U(b-0x2aa,a);}super['endBatch'](...c);this[ar(0x3f7,0x3da)]['segments'][ar(0x3b7,0x3ed)]--;}[U(0x163,0x182)](c=null,d=null){function as(a,b){return U(b-0x3c2,a);}const e=super['copy'](c,d);e[as(0x553,0x55b)]['segments']=void 0x0;if(e[as(0x525,0x4fd)]){e[as(0x4be,0x4fd)]=e['segments'][as(0x4e4,0x502)](f=>Object[as(0x547,0x553)](f[as(0x544,0x525)](),{'event':e}));}return e;}[U(0x150,0x132)](){const c=super[at(-0xda,-0xd2)](),d=this[at(-0xc1,-0xb2)](at(-0x115,-0xe7)),{persist:e,dataSource:f,complexMapping:g}=d;function at(a,b){return U(b- -0x222,a);}if(e){let h=_end[at(-0x5f,-0x86)](c,f);if(h){h=h[at(-0xf8,-0xe2)](i=>i[at(-0xb1,-0xd2)]());_end[at(-0xed,-0xea)](c,f,h);}}return c;}[U(0x185,0x190)](){function au(a,b){return U(b- -0xff,a);}const {segments:c}=this;c?.[au(0xba,0xa7)](d=>d[au(0x95,0x86)]());super[au(0xa9,0x86)]();}}b['$name']=U(0x132,0x13a);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x161,0x125)],U(0x195,0x176),void 0x0);__decorate([model_field({'type':U(0x11c,0x15a),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(0x161,0x1a4)],'segments',void 0x0);__decorate([field()],b[U(0x161,0x157)],U(0x18c,0x192),void 0x0);__decorate([field()],b[U(0x161,0x18e)],U(0x175,0x152),void 0x0);__decorate([write(U(0x13b,0x166))],b['prototype'],U(0x14c,0x153),null);__decorate([calculate(U(0x13b,0x10d))],b[U(0x161,0x166)],U(0x154,0x187),null);function U(a,b){return _enN(b,a-0x1ee);}__decorate([calculate('adjustedSegments')],b[U(0x161,0x155)],'calculateAdjustedSegments',null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|
|
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};
|