@bryntum/engine-thin-trial 7.1.3 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <br>
3
3
 
4
4
  <p align="center">
5
- <a href="https://bryntum.com/" rel="noopener" target="_blank"><img width="350" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo"></a>
5
+ <a href="https://bryntum.com/" rel="noopener" target="_blank"><img height="50" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo"></a>
6
6
  </p>
7
7
 
8
8
  <br>
@@ -1 +1 @@
1
- (function(a,b){function j(a,b){return _enb(a- -0x76,b);}const c=a();while(!![]){try{const d=-parseInt(j(0x19f,0x1dd))/0x1*(-parseInt(j(0x1ab,0x18e))/0x2)+-parseInt(j(0x146,0x161))/0x3+parseInt(j(0x181,0x1ac))/0x4*(-parseInt(j(0x18b,0x173))/0x5)+-parseInt(j(0x1b6,0x1cd))/0x6+parseInt(j(0x1ba,0x1fa))/0x7+parseInt(j(0x198,0x17f))/0x8+parseInt(j(0x17d,0x1b8))/0x9*(parseInt(j(0x192,0x151))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2cf26));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';function _enk(a,b){return _enb(b-0x390,a);}import{warn}from'../environment/Debug.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b0;let f=c[d];return f;};return _enb(a,b);}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';function _ena(){const ai=['usedProposedOrPrevious','selfDependent','clear','hasIdentifier','6VDVSkS','hasProposedValue','autoCommit','markAndSweep','push','reject','startNewEpoch','doCommitAsync','get','eachReachableRevision','_isInitialCommit','251364vSEvzV','scheduleAutoCommit','observeContext','value','1586879PHFoQM','ignore','clearProperties','isCommitting','candidate','Graph\x20cleared','cleanup','Write\x20during\x20commit','reason','compactRevisions','onComputationCycle','commit','constructor','resolve','finalizeCommitAsync','834786ICGaGF','throw','hasValue','$activeTransaction','from','variableNamed','proposedArguments','dirty','handlers','addEdge','read','readPreviousAsync','write','Adding\x20identifier\x20during\x20commit','historyLimit','Removinfg\x20identifier\x20during\x20commit','redo','name','listeners','readAsync','proposedValue','reachableCount','readProposedOrPrevious','observe','finalizeCommit','identifierNamed','baseRevision','trigger','addIdentifier','commitAsync','origin','$followingRevision','enableProgressNotifications','transactionClass','delete','autoCommitMode','isInitialCommit','entries','referenceCount','initialize','propagateAsync','cycle','isJustCleared','lazy','onComputationCycleHandlerSync','proposedIsPrevious','scope','getProposedValue','clearBranch','identifier','branch','isShadow','log','continueCalculation','followingRevision','7389iYZsKD','onWriteDuringCommit','finally','level','20MDnHml','unScheduleAutoCommit','ongoing','removeIdentifier','mergePreviousOrigin','autoCommitTimeoutId','addListener','autoCommitHandler','rejectedWith','baseRevisionTentative','305110CinlwK','walkContext','getActiveEntry','warn','set','forEach','previousAxis','4670WioGab','message','previous','readPrevious','undo','sync','1070408AToTcK','Computation\x20cycle:\x0a','hasPendingAutoCommit','propagate','Removing\x20identifier\x20during\x20commit','then','new','21821pjshkw','topRevision','length','baseRevisionStable','startOrigin','getValue','onComputationCycleHandler','activeTransaction'];_ena=function(){return ai;};return _ena();}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};class Listener extends Base{constructor(){super(...arguments);this['handlers']=[];}[_enk(0x558,0x567)](a){function l(a,b){return _enk(b,a- -0xdb);}for(let b=0x0;b<this['handlers'][l(0x4cc,0x4ce)];b++)this[l(0x479,0x488)][b](a);}}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[m(0x617,0x5e6)]=void 0x0;this[m(0x5f8,0x5bc)]=Revision['new']();this[m(0x639,0x5fc)]=void 0x0;this[m(0x58f,0x5b0)]=0x0;this['listeners']=new Map();this['isWritingPreviousData']=0x0;this[m(0x5cd,0x5a5)]=void 0x0;this['isCommitting']=![];this[m(0x5d5,0x5c2)]=![];this['ongoing']=Promise[m(0x5c1,0x5a0)]();this[m(0x5d9,0x611)]=!![];this[m(0x600,0x5e2)]=null;this['autoCommit']=![];this[m(0x5df,0x5c5)]=m(0x615,0x5f3);this[m(0x5c9,0x5e4)]=null;this[m(0x5f1,0x5da)]=m(0x562,0x5a3);function m(a,b){return _enk(a,b-0x56);}this[m(0x5ae,0x59d)]='throw';this['transactionClass']=Transaction;this[m(0x5ec,0x5cc)]=![];this[m(0x596,0x5c1)]=void 0x0;}[_enk(0x586,0x573)](...a){super[n(-0x1c9,-0x1e2)](...a);if(!this[n(-0x1ae,-0x1af)])this['topRevision']=this[n(-0x1e8,-0x1ef)];function n(a,b){return _enk(a,b- -0x755);}if(this[n(-0x16f,-0x1a2)]){this['autoCommitHandler']=this['autoCommitMode']==='sync'?b=>this[n(-0x1f4,-0x20d)](b):async b=>this[n(-0x1ed,-0x1ec)](b);}this['markAndSweep']();}[_enk(0x569,0x5a0)](){return this['autoCommitTimeoutId']!==null;}get['dirty'](){function o(a,b){return _enk(b,a- -0x2c8);}return this[o(0x2e4,0x2da)][o(0x28b,0x270)];}[_enk(0x5aa,0x5af)](){this[p(0x351,0x311)]();this[p(0x2f7,0x2e3)]();this[p(0x2f2,0x2c1)][p(0x2f6,0x2d5)]&&this['baseRevision'][p(0x2dc,0x2d5)][p(0x31e,0x30a)]();this[p(0x286,0x2c1)]['previous']=null;this[p(0x297,0x2b9)][p(0x31c,0x30a)]();this[p(0x33d,0x301)]=this[p(0x2bb,0x2c1)];this['$followingRevision']=void 0x0;this[p(0x279,0x2aa)]=void 0x0;this[p(0x34d,0x30f)]();function p(a,b){return _enk(a,b- -0x2a5);}this[p(0x2c5,0x2d1)]=!![];}[_enk(0x5ad,0x57c)](){this[q(-0x172,-0x143)]();function q(a,b){return _enk(b,a- -0x728);}this[q(-0x1a0,-0x186)]();for(const [a,b]of this[q(-0x16e,-0x1aa)]()){if(b)a[q(-0x1c7,-0x1fe)]--;a['referenceCount']--;}this[q(-0x1ca,-0x196)][q(-0x179,-0x13c)]();this['topRevision']=this[q(-0x1c2,-0x181)];this[q(-0x1bd,-0x1d8)]=void 0x0;this[q(-0x1d9,-0x21a)]=void 0x0;}*[_enk(0x5d0,0x5ba)](){let a=!![];let b=0x0;function r(a,b){return _enk(b,a- -0x772);}for(const c of this[r(-0x1cc,-0x1c3)][r(-0x1db,-0x1dc)]()){yield[c,a||b<this['historyLimit']];if(c===this[r(-0x20c,-0x23e)]){a=![];}else{if(!a)b++;}}}get['isInitialCommit'](){return this['_isInitialCommit'];}set[_enk(0x597,0x570)](a){function s(a,b){return _enk(b,a- -0x636);}this[s(-0x7b,-0x67)]=a;}[_enk(0x58e,0x5b4)](){function t(a,b){return _enk(a,b- -0x1a1);}let a;const b=[];for(const [c,d]of this[t(0x402,0x419)]()){if(d){c[t(0x3bb,0x3c0)]++;a=c;}else b[t(0x407,0x414)](c);c[t(0x3ce,0x3d1)]++;}b['unshift'](a);for(let e=b['length']-0x1;e>=0x1&&b[e][t(0x3ef,0x3c0)]===0x0;e--){this[t(0x387,0x3a5)](b[e-0x1],b[e]);}}['compactRevisions'](a,b){function u(a,b){return _enk(a,b- -0x39b);}if(b[u(0x1dd,0x1c6)]>0x0||a[u(0x22c,0x1ff)]!==b)throw new Error('Invalid\x20compact\x20operation');if(b[u(0x200,0x1d7)]<=0x1){for(const [c,d]of a['scope']){if(d[u(0x1f1,0x20f)]()===TombStone){b[u(0x19d,0x1df)][u(0x201,0x1d3)](c);}else{const e=b['scope']['get'](c);if(d['origin']===d){if(e){e[u(0x212,0x214)]();e[u(0x243,0x227)]();}}else if(e&&d['origin']===e){d[u(0x222,0x1f0)](a[u(0x1bd,0x1df)]);}else if(c[u(0x1e6,0x1dc)]&&!d['origin']&&e&&e[u(0x20e,0x1cf)]){d[u(0x1e4,0x20e)]()[u(0x1e5,0x1c5)]=e[u(0x1e7,0x1cf)]['value']!==void 0x0?e[u(0x1d2,0x1cf)]['value']:e[u(0x1a1,0x1cf)]['proposedValue'];}d[u(0x22a,0x1ff)]=void 0x0;b[u(0x1c7,0x1df)][u(0x225,0x1fa)](c,d);}}copySetInto(a['selfDependent'],b[u(0x1ef,0x213)]);a['scope']=b[u(0x21c,0x1df)];b[u(0x1ef,0x1df)]=null;}else{a['scope']=new Map(concat(b[u(0x1f3,0x1df)],a[u(0x221,0x1df)]));a[u(0x1d8,0x213)]=new Set(concat(b['selfDependent'],a[u(0x230,0x213)]));b[u(0x1e8,0x1d7)]--;}a[u(0x238,0x1ff)]=null;}get[_enk(0x54b,0x582)](){if(this[v(-0x1d1,-0x1e5)]!==void 0x0)return this[v(-0x1fd,-0x1e5)];const a=Array[v(-0x1c6,-0x200)](this['topRevision'][v(-0x18d,-0x1b9)]());const b=[];for(let c=a['length']-0x1;c>0x0;c--)b['push']([a[c],a[c-0x1]]);function v(a,b){return _enk(a,b- -0x750);}return this[v(-0x1d6,-0x1e5)]=new Map(b);}get[_enk(0x592,0x5ac)](){function w(a,b){return _enk(b,a- -0x58b);}if(this[w(-0x3c,-0x15)])return this[w(-0x3c,-0x79)];return this[w(-0x3c,-0xe)]=this[w(-0x1e,-0x60)][w(0x19,0x45)]({'baseRevision':this[w(0x5,-0x19)]||this[w(-0x25,-0x44)],'graph':this});}[_enk(0x59a,0x57e)](a){const b=this[x(0x5a5,0x572)];function x(a,b){return _enk(a,b-0x29);}return b['new'](Object['assign']({},a,{'baseRevision':this[x(0x573,0x58f)]}));}[_enk(0x570,0x5a1)](a){function y(a,b){return _enk(a,b- -0x6dc);}return this[y(-0x1bc,-0x194)](a);}[_enk(0x5b2,0x5b6)](a){this[z(0x43c,0x431)]['reject'](RejectEffect['new']({'reason':a}));this[z(0x419,0x458)]=Promise[z(0x3da,0x3a5)]();this['$activeTransaction']=void 0x0;this[z(0x420,0x418)]=void 0x0;function z(a,b){return _enk(b,a- -0x170);}if(this[z(0x438,0x454)]){this[z(0x3f6,0x3cb)]=this['baseRevisionStable'];this[z(0x438,0x433)]=void 0x0;}}[_enk(0x55a,0x548)](a){this[A(0x2f5,0x2e2)]=![];this[A(0x307,0x326)]();this[A(0x327,0x330)]=this[A(0x2e5,0x2c4)];const b=this[A(0x32b,0x30e)];const c=b[A(0x2c7,0x2f1)](a);function A(a,b){return _enk(b,a- -0x281);}this['$activeTransaction']=void 0x0;const d=this['finalizeCommit'](c);this[A(0x327,0x334)]=void 0x0;this['isInitialCommit']=![];return d;}async[_enk(0x539,0x574)](a){function B(a,b){return _enk(a,b- -0x562);}return this[B(0x2e,0x7)](a);}async[_enk(0x593,0x569)](a){if(this[C(0x405,0x447)])return this[C(0x4a8,0x490)];this[C(0x49a,0x47d)]=![];function C(a,b){return _enk(a,b- -0xf9);}this[C(0x408,0x447)]=!![];this[C(0x4bd,0x4af)]=this[C(0x485,0x46d)];let b;return this[C(0x4c7,0x490)]=this[C(0x4b9,0x490)][C(0x46f,0x4aa)](()=>{function D(a,b){return C(b,a- -0x19e);}return this[D(0x321,0x2fa)](a);})['then'](c=>{b=c;return c;})[C(0x4b3,0x48c)](()=>{this[E(0x577,0x53d)]=void 0x0;this[E(0x55f,0x528)]=void 0x0;function E(a,b){return C(b,a-0xc8);}this[E(0x53f,0x56f)]=![];this[E(0x50f,0x4d3)]=![];});}async[_enk(0x57c,0x5b8)](a){this[F(-0x126,-0x121)]();const b=this['activeTransaction'];const c=await b[F(-0x15f,-0x140)](a);const d=Boolean(b[F(-0x11a,-0x11a)]);const e=this['baseRevisionTentative'];if(!d)this[F(-0xe8,-0x119)]=b[F(-0x191,-0x168)];this[F(-0x191,-0x15a)]=void 0x0;await this[F(-0x13a,-0x15e)](c);if(this[F(-0x153,-0x133)])return{'rejectedWith':RejectEffect[F(-0xcb,-0x105)]({'reason':F(-0x16c,-0x167)})};if(b['rejectedWith']&&!d){this[F(-0x103,-0x119)]=e;this[F(-0x140,-0x15a)]=void 0x0;}const f=this[F(-0x10e,-0x145)](c);if(b[F(-0x10a,-0x11a)])b['clearRejected']();function F(a,b){return _enk(a,b- -0x6a9);}if(this[F(-0x12d,-0x156)]&&!b['rejectedWith']){await this['doCommitAsync'](a);}return f;}[_enk(0x588,0x564)](a){const {revision:b,entries:c,transaction:d}=a;function G(a,b){return _enk(b,a- -0x2fc);}if(!d[G(0x293,0x2b4)]){if(b['previous']!==this[G(0x26a,0x28d)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[G(0x2be,0x2fd)]()){if(f)e['reachableCount']--;e[G(0x276,0x27f)]--;}this[G(0x26a,0x22a)]=this[G(0x2aa,0x283)]=b;for(const [g,h]of c){h[G(0x247,0x216)]();if(h[G(0x283,0x27c)]()||!h['hasValue']())continue;const i=this[G(0x262,0x284)]['get'](g);if(i)i[G(0x26b,0x28a)](h[G(0x2ae,0x2d4)]());}this[G(0x26f,0x26e)]=void 0x0;this[G(0x2b8,0x2d2)]();}else{if(this[G(0x2ac,0x2a9)])this[G(0x26a,0x2ab)]=this[G(0x2ac,0x2b4)];this[G(0x2ac,0x2ea)]=void 0x0;this[G(0x294,0x2a6)]=void 0x0;}return{'rejectedWith':d[G(0x293,0x276)]};}async['finalizeCommitAsync'](a){}*[_enk(0x597,0x5ab)](a){function H(a,b){return _enk(b,a- -0x342);}const b=new Error(H(0x25d,0x27e)+a);b['cycle']=a;switch(this[H(0x205,0x1f3)]){case'ignore':console[H(0x23e,0x204)](b[H(0x257,0x238)]);const {requestedEntry:c,activeEntry:d}=a;return d[H(0x23f,0x21c)](c[H(0x21e,0x237)]!==void 0x0?c[H(0x21e,0x24d)]:c[H(0x27d,0x28c)]);case'throw':throw b;case'reject':this[H(0x274,0x258)](b);break;case H(0x252,0x24e):warn(b);break;}}[_enk(0x5b3,0x578)](a,b){const c=new Error(I(-0x12c,-0x106)+a);function I(a,b){return _enk(a,b- -0x6a5);}c[I(-0xfc,-0x130)]=a;switch(this[I(-0x122,-0x15e)]){case I(-0xdc,-0xe4):console[I(-0x117,-0x125)](c[I(-0xef,-0x10c)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0xeb,-0x124)](d[I(-0x164,-0x145)]!==void 0x0?d[I(-0x171,-0x145)]:d[I(-0xdb,-0xe6)]);case I(-0x16b,-0x158):throw c;case I(-0xbd,-0xef):this['reject'](c);break;case'warn':warn(c);break;}}['scheduleAutoCommit'](){function J(a,b){return _enk(a,b- -0x681);}if(this[J(-0xd3,-0xf5)]===null&&!this['isCommitting']){this[J(-0xc0,-0xf5)]=setTimeout(this[J(-0xfe,-0xf3)],0xa);}}[_enk(0x56f,0x588)](){function K(a,b){return _enk(b,a- -0x2e1);}if(this[K(0x2ab,0x2b9)]!==null){clearTimeout(this[K(0x2ab,0x294)]);this[K(0x2ab,0x284)]=null;}}['variable'](a){function L(a,b){return _enk(a,b- -0x420);}const b=VariableC();return this[L(0x187,0x148)](b,a===void 0x0?null:a);}[_enk(0x57b,0x551)](a,b){const c=VariableC({'name':a});function M(a,b){return _enk(b,a- -0x6b6);}return this[M(-0x14e,-0x115)](c,b===void 0x0?null:b);}['identifier'](a,b){const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});function N(a,b){return _enk(b,a- -0x79);}return this[N(0x4ef,0x4d2)](c);}[_enk(0x568,0x565)](a,b,c){const d=b[O(0x58e,0x557)][O(0x5a2,0x573)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enk(b,a-0x45);}return this[O(0x5ad,0x5bc)](d);}[_enk(0x597,0x568)](a,b,...c){function P(a,b){return _enk(b,a- -0x242);}if(this[P(0x2fe,0x2c5)]){if(this['onWriteDuringCommit']===P(0x30b,0x313))throw new Error(P(0x317,0x357));else if(this['onWriteDuringCommit']===P(0x352,0x311))warn(new Error(P(0x317,0x314)));}this[P(0x36a,0x359)][P(0x326,0x32c)](a,b,...c);if(this[P(0x371,0x33a)])this[P(0x37b,0x37f)]();return a;}[_enk(0x582,0x58a)](a){if(this[Q(0x346,0x376)]){if(this[Q(0x38a,0x351)]==='throw')throw new Error(Q(0x3a8,0x3c5));else if(this[Q(0x38a,0x36f)]===Q(0x39a,0x361))warn(new Error(Q(0x361,0x35c)));}this[Q(0x3b2,0x3a2)][Q(0x390,0x392)](a);function Q(a,b){return _enk(b,a- -0x1fa);}this['listeners'][Q(0x374,0x3b0)](a);if(this['autoCommit'])this[Q(0x3c3,0x3e0)]();}[_enk(0x589,0x5b0)](a){function R(a,b){return _enk(a,b- -0x2c4);}return this['activeTransaction'][R(0x327,0x2ec)](a);}['write'](a,b,...c){if(this[S(0x1dc,0x1e3)]){if(this[S(0x244,0x227)]==='throw')throw new Error(S(0x1c9,0x1e7));else if(this['onWriteDuringCommit']===S(0x219,0x237))warn(new Error(S(0x213,0x1e7)));}function S(a,b){return _enk(a,b- -0x35d);}this['activeTransaction'][S(0x1cc,0x1fb)](a,b,...c);if(this[S(0x28d,0x256)])this[S(0x268,0x260)]();}[_enk(0x584,0x59b)](a){function T(a,b){return _enk(a,b- -0x677);}return this['activeTransaction'][T(-0xa7,-0xdc)](a);}[_enk(0x56d,0x557)](a){function U(a,b){return _enk(a,b- -0x30a);}return this['activeTransaction'][U(0x228,0x24d)](a);}[_enk(0x56d,0x556)](a){function V(a,b){return _enk(a,b-0x25);}return this[V(0x59b,0x5d1)][V(0x563,0x57b)](a);}[_enk(0x599,0x55f)](a){function W(a,b){return _enk(a,b- -0x1d1);}return this['activeTransaction'][W(0x3c4,0x38e)](a);}[_enk(0x59d,0x5b9)](a){function X(a,b){return _enk(b,a- -0x3cf);}return this[X(0x1dd,0x1ce)]['get'](a);}[_enk(0x529,0x563)](a,b){function Y(a,b){return _enk(b,a- -0x3c1);}const c=this[Y(0x1a7,0x166)](CalculatedValueGen[Y(0x1e3,0x208)]({'lazy':![],'calculation':a}));this[Y(0x1cc,0x19f)](c,b);return c;}[_enk(0x5ff,0x5be)](a,b,c){function Z(a,b){return _enk(a,b- -0x4f6);}const d=this[Z(0x91,0x72)](CalculatedValueGen[Z(0xa7,0xae)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x62,0x97)](d,c);return d;}[_enk(0x590,0x58d)](a,b){function a0(a,b){return _enk(a,b- -0x2b4);}let c=this['listeners'][a0(0x2f8,0x305)](a);if(!c){c=Listener[a0(0x2cc,0x2f0)]();this[a0(0x2ec,0x2aa)][a0(0x2cb,0x2e1)](a,c);}c[a0(0x2c1,0x2a0)][a0(0x2c7,0x301)](b);}[_enk(0x5d0,0x59c)](){const a=this[a1(0x1bd,0x197)];const b=a[a1(0x1bb,0x1cb)];if(!b)return![];this[a1(0x1ac,0x197)]=b;this[a1(0x147,0x180)]=void 0x0;function a1(a,b){return _enk(a,b- -0x3cf);}return!![];}[_enk(0x56f,0x55c)](){const a=this[a2(0x1b2,0x1ef)];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x205,0x20d)](a);this[a2(0x1b2,0x18e)]=b;this[a2(0x19b,0x1d3)]=void 0x0;function a2(a,b){return _enk(b,a- -0x3b4);}return!![];}['onPropagationProgressNotification'](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(-0x19b,-0x1cb)]();c[a3(-0x181,-0x16e)]=!![];const d=c[a3(-0x1b3,-0x1db)](b);if(d!==void 0x0)return d;if(!c[a3(-0x194,-0x158)])return void 0x0;function a3(a,b){return _enk(b,a- -0x72e);}const e=c[a3(-0x1b1,-0x1b9)];if(e['lazy']){if(c['previous'][a3(-0x1e0,-0x1ef)]())return c[a3(-0x194,-0x1a7)][a3(-0x184,-0x163)]();if(c[a3(-0x194,-0x199)][a3(-0x17c,-0x13e)]())return c[a3(-0x194,-0x1b1)]['getProposedValue'](b);return null;}return b[a3(-0x193,-0x1c0)](c[a3(-0x1b1,-0x1c2)]);}[RejectSymbol](a,b){function a4(a,b){return _enk(a,b-0x3e);}this[a4(0x5b3,0x5f4)](a[a4(0x5b8,0x583)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){return b['getActiveEntry']();}[OwnIdentifierSymbol](a,b){function a5(a,b){return _enk(a,b- -0x34d);}const c=b[a5(0x240,0x246)]();return c[a5(0x249,0x230)];}[WriteSymbol](a,b){const c=b[a6(0x20d,0x214)]();const d=a[a6(0x23f,0x1fe)][a6(0x23b,0x207)]>c[a6(0x1fe,0x1fe)][a6(0x1d6,0x207)];function a6(a,b){return _enk(a,b- -0x37f);}if(!d)b[a6(0x1de,0x213)][a6(0x275,0x238)]();b['write'](a['identifier'],...a['proposedArgs']);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a7(0x18a,0x14c)]();let d=!![];function a7(a,b){return _enk(b,a- -0x409);}a['writes'][a7(0x18d,0x1b7)](e=>{if(e['identifier'][a8(0x299,0x261)]<=c[a8(0x253,0x258)][a8(0x283,0x261)]&&d){b[a8(0x2a0,0x26d)][a8(0x284,0x292)]();d=![];}function a8(a,b){return a7(b-0xe4,a);}b['write'](e[a8(0x276,0x258)],...e['proposedArgs']);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[a9(0x218,0x247)]();const d=a[a9(0x202,0x21f)];b['addEdge'](d,c,EdgeTypePast);const e=b[a9(0x1f6,0x22d)]['get'](d);function a9(a,b){return _enk(b,a- -0x37b);}return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x2c,0x1a)];b['addEdge'](d,c,EdgeTypePast);function aa(a,b){return _enk(a,b- -0x563);}return b['readPrevious'](d);}[ProposedValueOfSymbol](a,b){const c=b[ab(-0x127,-0x14a)]();const d=a[ab(-0x13d,-0x11e)];b['addEdge'](d,c,EdgeTypePast);const e=b['entries'][ab(-0x101,-0x12c)](d);function ab(a,b){return _enk(b,a- -0x6ba);}const f=e&&!e['isShadow']()?e[ab(-0x13f,-0x113)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ac(-0xb1,-0x95)];b[ac(-0xf8,-0xbd)](d,c,EdgeTypePast);function ac(a,b){return _enk(a,b- -0x612);}const e=b[ac(-0x9f,-0xa1)][ac(-0x6c,-0x59)](d);return e?e[ac(-0x3e,-0x60)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ad(0x256,0x22b)];function ad(a,b){return _enk(a,b- -0x352);}b[ad(0x216,0x203)](d,c,EdgeTypePast);const e=b[ad(0x1e4,0x21f)]['get'](d);return e?e[ad(0x232,0x260)]()&&!e[ad(0x1f2,0x227)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ae(0x1a6,0x1c1)]();const d=a[ae(0x1dc,0x1ab)];function ae(a,b){return _enk(a,b- -0x3d2);}b['addEdge'](d,c,EdgeTypePast);return b[ae(0x167,0x190)](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function af(a,b){return _enk(b,a- -0x311);}return b[af(0x251,0x25c)](a[af(0x26c,0x289)]);}[UnsafePreviousValueOfSymbol](a,b){function ag(a,b){return _enk(a,b- -0x64e);}return b[ag(-0x88,-0xb3)](a[ag(-0x10a,-0xd1)]);}[ProposedArgumentsOfSymbol](a,b){function ah(a,b){return _enk(b,a- -0x2d0);}const c=b[ah(0x2c3,0x2fc)]();const d=a[ah(0x2ad,0x2d4)];b[ah(0x285,0x29d)](d,c,EdgeTypePast);const e=b[ah(0x2a1,0x2cc)][ah(0x2e9,0x308)](d);return e&&!e['isShadow']()?e[ah(0x282,0x244)]:void 0x0;}}export{ChronoGraph,CommitZero,Listener};
1
+ (function(a,b){const c=a();function j(a,b){return _enb(a- -0x84,b);}while(!![]){try{const d=-parseInt(j(0x13a,0x11d))/0x1*(-parseInt(j(0x148,0x121))/0x2)+-parseInt(j(0xfb,0xd8))/0x3+-parseInt(j(0x14c,0x130))/0x4+-parseInt(j(0x122,0x109))/0x5*(parseInt(j(0x12c,0x113))/0x6)+parseInt(j(0x12e,0x141))/0x7*(parseInt(j(0x13e,0x116))/0x8)+parseInt(j(0x145,0x164))/0x9*(-parseInt(j(0x153,0x17c))/0xa)+parseInt(j(0x140,0x164))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x1fff5));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';function _ena(){const aj=['candidate','identifierNamed','branch','lazy','resolve','addEdge','onComputationCycle','8592RhommY','new','176687uRUIjV','throw','hasIdentifier','proposedArguments','autoCommit','Computation\x20cycle:\x0a','previous','Adding\x20identifier\x20during\x20commit','writtenValue','level','topRevision','Invalid\x20compact\x20operation','23dVfUCl','origin','onComputationCycleHandler','onWriteDuringCommit','64fmpAdC','continueCalculation','2854885AaysMI','autoCommitHandler','proposedIsPrevious','$followingRevision','assign','3033taVPvI','startNewEpoch','listeners','17678WucMrm','onComputationCycleHandlerSync','removeIdentifier','finalizeCommitAsync','169676gJeDKe','doCommitAsync','reason','addIdentifier','handlers','trigger','scope','4750vIAAmT','baseRevisionTentative','proposedArgs','commitAsync','propagateAsync','forEach','clear','clearProperties','historyLimit','mergePreviousOrigin','previousAxis','unScheduleAutoCommit','reject','entries','eachReachableRevision','name','log','rejectedWith','variable','message','read','Removinfg\x20identifier\x20during\x20commit','$activeTransaction','identifier','writes','constructor','isJustCleared','warn','getValue','then','selfDependent','clearBranch','initialize','baseRevision','referenceCount','proposedValue','delete','_isInitialCommit','finalizeCommit','getProposedValue','533943qGRlYx','value','startOrigin','isShadow','ignore','activeTransaction','hasProposedValue','redo','readPrevious','ongoing','isInitialCommit','scheduleAutoCommit','Invalid\x20revisions\x20chain','compactRevisions','set','isCommitting','isWritingPreviousData','addListener','dirty','baseRevisionStable','length','hasValue','Write\x20during\x20commit','commit','observe','from','hasPendingAutoCommit','reachableCount','followingRevision','sync','markAndSweep','cycle','readPreviousAsync','write','Removing\x20identifier\x20during\x20commit','push','autoCommitTimeoutId','readAsync','propagate','535zScTlV','get','getActiveEntry'];_ena=function(){return aj;};return _ena();}import{warn}from'../environment/Debug.js';import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';function _enl(a,b){return _enb(b- -0x143,a);}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';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x173;let f=c[d];return f;};return _enb(a,b);}import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b- -0x35a,a);}this[k(-0x18d,-0x186)]=[];}[_enl(0x8c,0x92)](a){function m(a,b){return _enl(b,a-0xf1);}for(let b=0x0;b<this[m(0x182,0x19d)][m(0x141,0x139)];b++)this[m(0x182,0x182)][b](a);}}class ChronoGraph extends Base{constructor(){super(...arguments);this[n(0x159,0x173)]=void 0x0;this[n(0x19f,0x1b1)]=void 0x0;this[n(0x13f,0x157)]=Revision[n(0x178,0x152)]();this[n(0x183,0x1af)]=void 0x0;this[n(0x1a6,0x18d)]=0x0;this[n(0x192,0x1b7)]=new Map();this[n(0x156,0x145)]=0x0;this[n(0x1b4,0x181)]=void 0x0;this[n(0x155,0x117)]=![];this['enableProgressNotifications']=![];this[n(0x14f,0x166)]=Promise['resolve']();this['_isInitialCommit']=!![];this[n(0x16a,0x137)]=null;function n(a,b){return _enl(b,a-0x10a);}this[n(0x17d,0x193)]=![];this['autoCommitMode']=n(0x163,0x14b);this[n(0x18c,0x1b3)]=null;this[n(0x188,0x160)]=n(0x17a,0x13e);this[n(0x176,0x15a)]=n(0x17a,0x1ba);this['transactionClass']=Transaction;this['isJustCleared']=![];this[n(0x18e,0x19b)]=void 0x0;}[_enl(0x46,0x34)](...a){function o(a,b){return _enl(a,b-0x17e);}super[o(0x1d0,0x1b2)](...a);if(!this[o(0x1c0,0x1f7)])this[o(0x20b,0x1f7)]=this[o(0x1b6,0x1b3)];if(this[o(0x1c9,0x1f1)]){this['autoCommitHandler']=this['autoCommitMode']===o(0x20d,0x1d7)?b=>this[o(0x1a4,0x1d1)](b):async b=>this[o(0x23e,0x215)](b);}this[o(0x1d5,0x1d8)]();}[_enl(0x6d,0x56)](){return this['autoCommitTimeoutId']!==null;}get[_enl(0x76,0x4e)](){function p(a,b){return _enl(b,a-0x191);}return this[p(0x1d2,0x194)][p(0x1df,0x1c3)];}['clear'](){this[q(0x3a9,0x398)]();this[q(0x36b,0x397)]();this['baseRevision'][q(0x3af,0x38b)]&&this[q(0x2fb,0x32d)][q(0x357,0x38b)][q(0x36d,0x392)]();this['baseRevision'][q(0x332,0x36d)]=null;this[q(0x384,0x380)][q(0x368,0x392)]();this[q(0x399,0x371)]=this[q(0x337,0x32d)];this[q(0x3b9,0x37c)]=void 0x0;this[q(0x3b4,0x3a2)]=void 0x0;function q(a,b){return _enl(a,b-0x2f8);}this['markAndSweep']();this[q(0x3b7,0x3a6)]=!![];}[_enl(0x5e,0x33)](){this[r(0x31d,0x2f2)]();this[r(0x31c,0x339)]();function r(a,b){return _enl(b,a-0x27d);}for(const [a,b]of this[r(0x31f,0x2df)]()){if(b)a[r(0x2d4,0x2ac)]--;a[r(0x2b3,0x2d0)]--;}this[r(0x305,0x2fd)][r(0x317,0x34a)]();this[r(0x2f6,0x2f8)]=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x327,0x32f)]=void 0x0;}*['eachReachableRevision'](){let a=!![];function s(a,b){return _enl(a,b- -0x50);}let b=0x0;for(const c of this[s(0x3d,0x29)][s(0x72,0x4e)]()){yield[c,a||b<this[s(0x88,0x4c)]];if(c===this[s(-0x1f,-0x1b)]){a=![];}else{if(!a)b++;}}}get[_enl(0x53,0x46)](){function t(a,b){return _enl(a,b- -0x1b1);}return this[t(-0x184,-0x178)];}set[_enl(0x76,0x46)](a){function u(a,b){return _enl(b,a- -0x1be);}this[u(-0x185,-0x14c)]=a;}[_enl(0x62,0x5a)](){let a;function v(a,b){return _enl(a,b- -0x158);}const b=[];for(const [c,d]of this[v(-0x89,-0xb6)]()){if(d){c[v(-0xdd,-0x101)]++;a=c;}else b['push'](c);c[v(-0x102,-0x122)]++;}b['unshift'](a);for(let e=b['length']-0x1;e>=0x1&&b[e][v(-0x125,-0x101)]===0x0;e--){this[v(-0x128,-0x10f)](b[e-0x1],b[e]);}}[_enl(0x53,0x49)](a,b){if(b[w(0x143,0x165)]>0x0||a['previous']!==b)throw new Error(w(0x166,0x157));function w(a,b){return _enl(b,a-0xec);}if(b[w(0x122,0x109)]<=0x1){for(const [c,d]of a['scope']){if(d[w(0x11c,0x152)]()===TombStone){b[w(0x17f,0x179)]['delete'](c);}else{const e=b['scope'][w(0x150,0x18d)](c);if(d[w(0x168,0x18e)]===d){if(e){e[w(0x186,0x178)]();e[w(0x187,0x1c7)]();}}else if(e&&d[w(0x168,0x17e)]===e){d[w(0x189,0x1af)](a[w(0x17f,0x15f)]);}else if(c['lazy']&&!d[w(0x168,0x12a)]&&e&&e['origin']){d[w(0x12a,0x13c)]()['proposedValue']=e[w(0x168,0x18d)][w(0x129,0x169)]!==void 0x0?e['origin'][w(0x129,0x14e)]:e[w(0x168,0x1a8)]['proposedValue'];}d[w(0x161,0x19d)]=void 0x0;b[w(0x17f,0x171)][w(0x136,0x154)](c,d);}}copySetInto(a['selfDependent'],b[w(0x11e,0x108)]);a[w(0x17f,0x158)]=b[w(0x17f,0x155)];b['scope']=null;}else{a[w(0x17f,0x178)]=new Map(concat(b['scope'],a[w(0x17f,0x16a)]));a['selfDependent']=new Set(concat(b[w(0x11e,0x100)],a[w(0x11e,0x13c)]));b[w(0x122,0x104)]--;}a[w(0x161,0x147)]=null;}get[_enl(0x82,0x58)](){if(this['$followingRevision']!==void 0x0)return this[x(-0x1f1,-0x201)];const a=Array[x(-0x211,-0x230)](this[x(-0x211,-0x20c)][x(-0x1f2,-0x1e7)]());const b=[];function x(a,b){return _enl(a,b- -0x285);}for(let c=a[x(-0x275,-0x235)]-0x1;c>0x0;c--)b[x(-0x257,-0x226)]([a[c],a[c-0x1]]);return this[x(-0x201,-0x201)]=new Map(b);}get[_enl(0x3d,0x41)](){function y(a,b){return _enl(a,b-0x169);}if(this[y(0x1dd,0x213)])return this[y(0x213,0x213)];return this[y(0x1e6,0x213)]=this['transactionClass'][y(0x202,0x1d7)]({'baseRevision':this[y(0x1d3,0x1fe)]||this['baseRevision'],'graph':this});}[_enl(0x54,0x68)](a){function z(a,b){return _enl(a,b-0x522);}const b=this[z(0x598,0x5cf)];return b['new'](Object[z(0x5c5,0x5a7)]({},a,{'baseRevision':this['baseRevision']}));}[_enl(0x43,0x62)](a){function A(a,b){return _enl(b,a-0x1cc);}return this[A(0x21f,0x248)](a);}[_enl(0xbf,0xa0)](a){this['activeTransaction']['reject'](RejectEffect['new']({'reason':a}));function B(a,b){return _enl(b,a-0x428);}this[B(0x46d,0x499)]=Promise[B(0x492,0x470)]();this[B(0x4d2,0x4de)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[B(0x477,0x450)]){this['baseRevision']=this[B(0x477,0x457)];this['baseRevisionStable']=void 0x0;}}[_enl(0x7a,0x53)](a){function C(a,b){return _enl(b,a-0xc0);}this[C(0x16e,0x15d)]=![];this[C(0x15f,0x172)]();this[C(0x10f,0xf7)]=this[C(0xf5,0xdd)];const b=this[C(0x101,0x129)];const c=b[C(0x113,0xe6)](a);this[C(0x16a,0x150)]=void 0x0;const d=this[C(0xfa,0x10f)](c);this['baseRevisionStable']=void 0x0;this[C(0x106,0x130)]=![];return d;}async[_enl(0x96,0x98)](a){function D(a,b){return _enl(b,a-0x2b8);}return this[D(0x34f,0x34f)](a);}async[_enl(0x88,0x97)](a){if(this[E(0x308,0x336)])return this['ongoing'];function E(a,b){return _enl(a,b-0x2eb);}this['isJustCleared']=![];this[E(0x31d,0x336)]=!![];this[E(0x308,0x33a)]=this[E(0x331,0x320)];let b;return this['ongoing']=this[E(0x324,0x330)]['then'](()=>{function F(a,b){return E(b,a- -0x515);}return this[F(-0x19c,-0x1b0)](a);})[E(0x358,0x31c)](c=>{b=c;return c;})['finally'](()=>{function G(a,b){return E(a,b-0x214);}this[G(0x50e,0x54e)]=void 0x0;this[G(0x595,0x594)]=void 0x0;this['isInitialCommit']=![];this[G(0x510,0x54a)]=![];});}async['doCommitAsync'](a){this['unScheduleAutoCommit']();const b=this['activeTransaction'];function H(a,b){return _enl(b,a-0x225);}const c=await b['commitAsync'](a);const d=Boolean(b[H(0x2ca,0x28b)]);const e=this['baseRevisionTentative'];if(!d)this[H(0x2ba,0x2ae)]=b[H(0x28b,0x2b0)];this['$activeTransaction']=void 0x0;await this[H(0x2b1,0x2dd)](c);if(this[H(0x2d3,0x2c5)])return{'rejectedWith':RejectEffect[H(0x293,0x2c0)]({'reason':'Graph\x20cleared'})};if(b[H(0x2ca,0x296)]&&!d){this[H(0x2ba,0x2ce)]=e;this[H(0x2cf,0x2ce)]=void 0x0;}const f=this[H(0x25f,0x270)](c);if(b['rejectedWith'])b['clearRejected']();if(this[H(0x273,0x243)]&&!b[H(0x2ca,0x2a4)]){await this[H(0x2b3,0x2cf)](a);}return f;}[_enl(0x22,0x3a)](a){const {revision:b,entries:c,transaction:d}=a;function I(a,b){return _enl(a,b-0x44e);}if(!d[I(0x4e4,0x4f3)]){if(b[I(0x4db,0x4c3)]!==this[I(0x44b,0x483)])throw new Error(I(0x4a0,0x496));for(const [e,f]of this[I(0x4f0,0x4f0)]()){if(f)e[I(0x4ce,0x4a5)]--;e[I(0x4b8,0x484)]--;}this[I(0x478,0x483)]=this['topRevision']=b;for(const [g,h]of c){h['cleanup']();if(h['isShadow']()||!h[I(0x49d,0x49f)]())continue;const i=this[I(0x4e8,0x4d6)][I(0x4aa,0x4b2)](g);if(i)i[I(0x4b2,0x4e0)](h[I(0x49d,0x47e)]());}this[I(0x4f5,0x4d2)]=void 0x0;this[I(0x484,0x4a8)]();}else{if(this[I(0x4dc,0x49d)])this[I(0x4ba,0x483)]=this[I(0x495,0x49d)];this[I(0x467,0x49d)]=void 0x0;this['baseRevisionTentative']=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async[_enl(0x9d,0x8c)](a){}*[_enl(0x61,0x7d)](a){const b=new Error(J(0x1f9,0x234)+a);function J(a,b){return _enl(a,b-0x1c0);}b[J(0x20c,0x21b)]=a;switch(this['onComputationCycle']){case J(0x213,0x200):console[J(0x232,0x264)](b[J(0x273,0x267)]);const {requestedEntry:c,activeEntry:d}=a;return d['continueCalculation'](c[J(0x215,0x1f7)]!==void 0x0?c[J(0x205,0x1f7)]:c[J(0x236,0x1fd)]);case J(0x25a,0x230):throw b;case J(0x298,0x260):this['reject'](b);break;case J(0x234,0x26f):warn(b);break;}}[_enl(0x7a,0x8a)](a,b){function K(a,b){return _enl(a,b-0x31a);}const c=new Error(K(0x367,0x38e)+a);c[K(0x38a,0x375)]=a;switch(this[K(0x398,0x386)]){case K(0x31f,0x35a):console[K(0x39b,0x3be)](c[K(0x3c8,0x3c1)]);const {requestedEntry:d,activeEntry:e}=a;return e[K(0x399,0x39a)](d['proposedValue']!==void 0x0?d[K(0x37d,0x351)]:d[K(0x358,0x357)]);case K(0x34a,0x38a):throw c;case K(0x3b4,0x3ba):this[K(0x3e5,0x3ba)](c);break;case K(0x3d6,0x3c9):warn(c);break;}}[_enl(0x2b,0x47)](){function L(a,b){return _enl(a,b-0x5);}if(this[L(0xa0,0x65)]===null&&!this[L(0x21,0x50)]){this[L(0x87,0x65)]=setTimeout(this[L(0x57,0x87)],0xa);}}['unScheduleAutoCommit'](){function M(a,b){return _enl(b,a-0x42f);}if(this['autoCommitTimeoutId']!==null){clearTimeout(this[M(0x48f,0x475)]);this[M(0x48f,0x4ba)]=null;}}[_enl(0xd8,0xa6)](a){const b=VariableC();return this['addIdentifier'](b,a===void 0x0?null:a);}['variableNamed'](a,b){const c=VariableC({'name':a});function N(a,b){return _enl(a,b-0x3e2);}return this[N(0x4a5,0x472)](c,b===void 0x0?null:b);}[_enl(0xd8,0xab)](a,b){function O(a,b){return _enl(a,b-0x429);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[O(0x4b3,0x4b9)](c);}[_enl(0x52,0x67)](a,b,c){function P(a,b){return _enl(b,a-0x270);}const d=b[P(0x31d,0x329)][P(0x313,0x2f7)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});return this[P(0x300,0x2ef)](d);}[_enl(0x93,0x90)](a,b,...c){function Q(a,b){return _enl(a,b-0x21c);}if(this[Q(0x298,0x267)]){if(this[Q(0x2d7,0x29a)]===Q(0x24c,0x28c))throw new Error(Q(0x29d,0x292));else if(this[Q(0x272,0x29a)]===Q(0x2ae,0x2cb))warn(new Error('Adding\x20identifier\x20during\x20commit'));}this['activeTransaction']['addIdentifier'](a,b,...c);if(this[Q(0x2b9,0x28f)])this[Q(0x26e,0x263)]();return a;}['removeIdentifier'](a){if(this[R(0x3ad,0x3bb)]){if(this[R(0x3e0,0x3be)]===R(0x3d2,0x3f9))throw new Error(R(0x3c0,0x3ef));else if(this[R(0x3e0,0x3fd)]===R(0x411,0x432))warn(new Error(R(0x40b,0x403)));}this[R(0x3a3,0x376)][R(0x3ed,0x406)](a);this[R(0x3ea,0x3d9)][R(0x39a,0x390)](a);function R(a,b){return _enl(b,a-0x362);}if(this[R(0x3d5,0x3d7)])this[R(0x3a9,0x389)]();}[_enl(0x41,0x71)](a){function S(a,b){return _enl(b,a-0x3c2);}return this[S(0x403,0x402)][S(0x433,0x428)](a);}[_enl(0x47,0x5d)](a,b,...c){function T(a,b){return _enl(b,a- -0x22f);}if(this['isCommitting']){if(this[T(-0x1b1,-0x1e2)]===T(-0x1bf,-0x1b3))throw new Error('Write\x20during\x20commit');else if(this[T(-0x1b1,-0x1d9)]==='warn')warn(new Error(T(-0x1dd,-0x1e5)));}this[T(-0x1ee,-0x1f4)]['write'](a,b,...c);if(this['autoCommit'])this[T(-0x1e8,-0x1d7)]();}['readPrevious'](a){function U(a,b){return _enl(a,b- -0x27a);}return this[U(-0x26f,-0x239)]['readPrevious'](a);}[_enl(0x40,0x5c)](a){function V(a,b){return _enl(a,b- -0x1e3);}return this[V(-0x1da,-0x1a2)][V(-0x165,-0x187)](a);}[_enl(0xc6,0xa8)](a){function W(a,b){return _enl(a,b- -0x1d9);}return this[W(-0x196,-0x198)][W(-0x145,-0x131)](a);}[_enl(0x94,0x61)](a){function X(a,b){return _enl(b,a- -0x23b);}return this[X(-0x1fa,-0x1d4)]['readAsync'](a);}[_enl(0x49,0x64)](a){function Y(a,b){return _enl(a,b- -0x15c);}return this[Y(-0x155,-0x11b)][Y(-0xbf,-0xf8)](a);}[_enl(0x31,0x54)](a,b){const c=this['addIdentifier'](CalculatedValueGen['new']({'lazy':![],'calculation':a}));function Z(a,b){return _enl(b,a-0xa7);}this[Z(0xf4,0xde)](c,b);return c;}['observeContext'](a,b,c){const d=this['addIdentifier'](CalculatedValueGen[a0(0x3e2,0x3bd)]({'lazy':![],'calculation':a,'context':b}));this[a0(0x3c1,0x384)](d,c);function a0(a,b){return _enl(b,a-0x374);}return d;}[_enl(0x45,0x4d)](a,b){let c=this[a1(0x3b6,0x38d)][a1(0x392,0x38f)](a);if(!c){c=Listener[a1(0x39c,0x39c)]();this[a1(0x3b6,0x3a1)]['set'](a,c);}function a1(a,b){return _enl(b,a-0x32e);}c[a1(0x3bf,0x3ee)][a1(0x38d,0x3bc)](b);}['undo'](){const a=this[a2(0x4a3,0x4a8)];const b=a[a2(0x4ec,0x4e8)];function a2(a,b){return _enl(a,b-0x473);}if(!b)return![];this[a2(0x485,0x4a8)]=b;this[a2(0x536,0x51d)]=void 0x0;return!![];}[_enl(0x3c,0x43)](){function a3(a,b){return _enl(b,a-0x293);}const a=this[a3(0x2c8,0x2ca)];if(a===this[a3(0x30c,0x2ec)])return![];const b=this[a3(0x2eb,0x2d2)]['get'](a);this[a3(0x2c8,0x2e2)]=b;this[a3(0x33d,0x30a)]=void 0x0;return!![];}['onPropagationProgressNotification'](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a4(0x23d,0x244)]();c['usedProposedOrPrevious']=!![];const d=c[a4(0x202,0x21a)](b);if(d!==void 0x0)return d;if(!c[a4(0x21b,0x254)])return void 0x0;function a4(a,b){return _enl(a,b-0x1df);}const e=c[a4(0x2c8,0x28a)];if(e[a4(0x26f,0x248)]){if(c[a4(0x242,0x254)]['hasValue']())return c['previous']['getValue']();if(c[a4(0x25d,0x254)][a4(0x21a,0x221)]())return c[a4(0x264,0x254)][a4(0x24c,0x21a)](b);return null;}return b['readPrevious'](c['identifier']);}[RejectSymbol](a,b){function a5(a,b){return _enl(a,b-0x397);}this[a5(0x43e,0x437)](a[a5(0x401,0x426)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a6(a,b){return _enl(a,b- -0x64);}return b[a6(-0x32,0x1)]();}[OwnIdentifierSymbol](a,b){function a7(a,b){return _enl(b,a- -0x185);}const c=b[a7(-0x120,-0xef)]();return c[a7(-0xda,-0x10d)];}[WriteSymbol](a,b){function a8(a,b){return _enl(b,a-0x174);}const c=b[a8(0x1d9,0x1e9)]();const d=a['identifier'][a8(0x1ec,0x1da)]>c[a8(0x21f,0x217)][a8(0x1ec,0x1e0)];if(!d)b['walkContext']['startNewEpoch']();b[a8(0x1d1,0x1da)](a[a8(0x21f,0x210)],...a[a8(0x20a,0x1e3)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a9(-0x72,-0x40)]();let d=!![];function a9(a,b){return _enl(a,b- -0xa5);}a[a9(0x3,0x7)][a9(-0xc,-0xc)](e=>{if(e[aa(0x63,0x6a)]['level']<=c[aa(0x36,0x6a)][aa(0x5e,0x37)]&&d){b['walkContext'][aa(0xd,0x46)]();d=![];}function aa(a,b){return a9(a,b-0x64);}b[aa(0x3f,0x1c)](e[aa(0xa2,0x6a)],...e[aa(0x58,0x55)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[ab(0x297,0x268)]();function ab(a,b){return _enl(b,a-0x232);}const d=a[ab(0x2dd,0x2bd)];b['addEdge'](d,c,EdgeTypePast);const e=b[ab(0x2d3,0x2b4)][ab(0x296,0x2a0)](d);return e?b[ab(0x276,0x26c)](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b[ac(0x3db,0x3b3)]();function ac(a,b){return _enl(b,a-0x376);}const d=a[ac(0x421,0x461)];b[ac(0x3e1,0x3c7)](d,c,EdgeTypePast);return b[ac(0x3ba,0x3c6)](d);}[ProposedValueOfSymbol](a,b){const c=b[ad(0x26,0x62)]();const d=a[ad(0xcb,0xa8)];b[ad(0x62,0x68)](d,c,EdgeTypePast);function ad(a,b){return _enl(a,b- -0x3);}const e=b[ad(0xbd,0x9e)][ad(0x69,0x61)](d);const f=e&&!e[ad(0x20,0x3c)]()?e[ad(0x3d,0x38)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ae(a,b){return _enl(b,a- -0x1ad);}const c=b[ae(-0x148,-0x172)]();const d=a[ae(-0x102,-0x12e)];b[ae(-0x142,-0x159)](d,c,EdgeTypePast);const e=b[ae(-0x10c,-0xd5)][ae(-0x149,-0x120)](d);return e?e[ae(-0x16b,-0x15a)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b[af(0x241,0x272)]();const d=a[af(0x299,0x2b8)];b[af(0x291,0x278)](d,c,EdgeTypePast);const e=b[af(0x2a6,0x2ae)][af(0x27d,0x271)](d);function af(a,b){return _enl(a,b-0x20d);}return e?e['hasProposedValue']()&&e[af(0x27c,0x284)]!==void 0x0&&!e[af(0x276,0x290)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ag(0x305,0x2fa)]();const d=a[ag(0x34b,0x334)];function ag(a,b){return _enl(b,a-0x2a0);}b[ag(0x30b,0x31b)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ah(a,b){return _enl(a,b-0x4a9);}return b['readProposedOrPrevious'](a[ah(0x547,0x554)]);}[UnsafePreviousValueOfSymbol](a,b){return b['readPrevious'](a['identifier']);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(-0x13a,-0x130)]();const d=a[ai(-0xc7,-0xea)];b[ai(-0x137,-0x12a)](d,c,EdgeTypePast);const e=b[ai(-0xe3,-0xf4)][ai(-0x104,-0x131)](d);function ai(a,b){return _enl(a,b- -0x195);}return e&&!e[ai(-0x17a,-0x156)]()?e[ai(-0x11f,-0x123)]:void 0x0;}}export{ChronoGraph,CommitZero,Listener};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function l(a,b){return _enb(a-0x333,b);}while(!![]){try{const d=parseInt(l(0x426,0x434))/0x1+parseInt(l(0x40e,0x40c))/0x2*(parseInt(l(0x417,0x41a))/0x3)+-parseInt(l(0x407,0x3f7))/0x4*(-parseInt(l(0x425,0x41a))/0x5)+parseInt(l(0x420,0x43a))/0x6+-parseInt(l(0x3f9,0x3f2))/0x7*(-parseInt(l(0x423,0x42a))/0x8)+-parseInt(l(0x3f6,0x403))/0x9+parseInt(l(0x3f2,0x3f7))/0xa*(-parseInt(l(0x40f,0x3f7))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3c1e3));var __decorate=function(a,b,e,f){var g=arguments[m(0xe4,0xca)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function m(a,b){return _enb(b- -0xc,a);}if(typeof Reflect===m(0xe1,0xc6)&&typeof Reflect[m(0xd1,0xbc)]===m(0xc6,0xb4))h=Reflect[m(0xb4,0xbc)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0xba,0xb1)](b,e,h),h;};import{Base}from'../class/Base.js';function _ena(){const D=['2755788emputQ','readFromGraph','sync','40AfXWHn','writeToTransaction','93735RwiTJW','464257qrkHeJ','defineProperty','Unknown\x20identifier\x20','4320UgOrUA','function','identifier','context','2488257FfqYoz','calculation','new','98077zZimzh','lazy','decorate','proposedValue','enterGraph','pure','readAsync','isWritingUndefined','needToBuildProposedValue','proposedArguments','quarkClass','leaveGraph','object','DependsOnlyOnDependsOnlyOnUserInput','4RMqtEZ','readFromTransactionAsync','length','value','graph','DependsOnSelfKind','getWriteTarget','2jnCcmV','22374FLHvPa','proposedIsPrevious','UserInput','readFromTransaction','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','equality','proposedValueIsBuilt','total','1167141HZKjTq','mix','DependsOnlyOnUserInput','writeToGraph','write','prototype','newQuark','level','Abstract\x20method\x20`calculation`\x20called'];_ena=function(){return D;};return _ena();}import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){function n(a,b){return _enb(a- -0x2f6,b);}a[a[n(-0x218,-0x22c)]=0x0]=n(-0x218,-0x20a);a[a[n(-0x210,-0x206)]=0x1]=n(-0x210,-0x216);a[a[n(-0x223,-0x231)]=0x2]=n(-0x223,-0x20c);a[a['DependsOnSelfKind']=0x3]=n(-0x21d,-0x229);}(Levels||(Levels={})));class Meta extends Base{constructor(){super(...arguments);this['name']=void 0x0;this[o(0xe3,0xfd)]=![];this[o(0xff,0xeb)]=!![];function o(a,b){return _enb(a-0x1c,b);}this[o(0xe7,0xfb)]=!![];this[o(0xfe,0xef)]=![];}[_enp(-0x3f,-0x26)](a){function q(a,b){return _enp(a,b-0x290);}throw new Error(q(0x2a8,0x292));}[_enp(-0x23,-0x9)](a,b){return a===b;}}__decorate([prototypeValue(Levels[_enp(-0x29,-0x11)])],Meta[_enp(0x15,-0x1)],_enp(0x4,0x1),void 0x0);function _enp(a,b){return _enb(b- -0xea,a);}__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0x1e,0x5),void 0x0);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xbd;let f=c[d];return f;};return _enb(a,b);}class Identifier extends Meta{constructor(){super(...arguments);this['ignoreEdgesFlow']=![];function r(a,b){return _enp(b,a-0xac);}this[r(0x84,0x81)]=void 0x0;this[r(0x8f,0x8b)]=![];}[_enp(-0x6,0x0)](a){function s(a,b){return _enp(a,b-0x32f);}const b=this[s(0x2fd,0x315)]['new']();b[s(0x2f0,0x306)]=this;b[s(0x2fc,0x313)]=this['proposedValueIsBuilt'];return b;}[_enp(0xe,-0x2)](a,b,c,d,...e){c=c||b[t(0x41a,0x412)](a);function t(a,b){return _enp(a,b-0x422);}c[t(0x408,0x401)]=d;c[t(0x406,0x407)]=e[t(0x3f7,0x40e)]>0x0?e:void 0x0;c[t(0x3fd,0x415)]=b[t(0x425,0x410)]['isWritingPreviousData']>0x0;}[_enp(0x9,0x7)](a,b,...c){function u(a,b){return _enp(a,b- -0x18f);}a[u(-0x18a,-0x191)](this,b,...c);}[_enp(-0x15,-0x3)](a,b,...c){function v(a,b){return _enp(a,b- -0x286);}a[v(-0x281,-0x288)](this,b,...c);}['readFromGraphAsync'](a){function w(a,b){return _enp(b,a-0x441);}return a[w(0x423,0x439)](this);}[_enp(0xe,0x4)](a){return a['read'](this);}[_enp(-0x26,-0xb)](a){return a['read'](this);}[_enp(-0x18,-0x15)](a){return a['readAsync'](this);}['buildProposedValue'](a,b,c){return void 0x0;}[_enp(-0x2d,-0x20)](a){}[_enp(-0x6,-0x19)](a){}}const IdentifierC=a=>Identifier[_enp(-0x23,-0x25)](a);const QuarkSync=Quark[_enp(-0xd,-0x5)](CalculationSync['mix'](Map));const QuarkGen=Quark[_enp(-0x12,-0x5)](CalculationGen[_enp(0x12,-0x5)](Map));class Variable extends Identifier{[_enp(-0x21,-0x26)](a){function x(a,b){return _enp(a,b- -0x169);}throw new Error(x(-0x175,-0x173));}['write'](a,b,c,d,...e){function y(a,b){return _enp(a,b-0x342);}c=c||b[y(0x324,0x332)](a);c[y(0x341,0x32f)]=d;c['proposedArguments']=e['length']>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(-0x26,-0xc)])],Variable[_enp(0x6,-0x1)],'level',void 0x0);__decorate([prototypeValue(QuarkSync)],Variable['prototype'],_enp(-0x1c,-0x1a),void 0x0);function VariableC(...a){function z(a,b){return _enp(b,a-0x432);}return Variable[z(0x40d,0x406)](...a);}class CalculatedValueSync extends Identifier{[_enp(-0x15,-0x26)](a){return a(ProposedOrPrevious);}}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync['prototype'],'quarkClass',void 0x0);function CalculatedValueSyncC(...a){function A(a,b){return _enp(b,a- -0x13f);}return CalculatedValueSync[A(-0x164,-0x14d)](...a);}class CalculatedValueGen extends Identifier{*['calculation'](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen[_enp(-0x6,-0x1)],_enp(-0xa,-0x1a),void 0x0);function CalculatedValueGenC(...a){function B(a,b){return _enp(b,a- -0x17d);}return CalculatedValueGen[B(-0x1a2,-0x198)](...a);}const throwUnknownIdentifier=a=>{function C(a,b){return _enp(a,b- -0x1b4);}throw new Error(C(-0x1d4,-0x1e0)+a);};export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
1
+ (function(a,b){function l(a,b){return _enb(b- -0x21d,a);}const c=a();while(!![]){try{const d=parseInt(l(-0x11,-0x2a))/0x1+parseInt(l(-0x2c,-0x24))/0x2*(parseInt(l(-0x23,-0x34))/0x3)+-parseInt(l(-0x44,-0x3a))/0x4*(parseInt(l(-0x1c,-0x1e))/0x5)+-parseInt(l(-0x12,-0x1b))/0x6+parseInt(l(-0x11,-0x20))/0x7*(-parseInt(l(-0x2b,-0x3c))/0x8)+-parseInt(l(-0x19,-0x10))/0x9+-parseInt(l(-0x33,-0x1c))/0xa*(-parseInt(l(-0x24,-0x1d))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x48849));var __decorate=function(a,b,e,f){var g=arguments[m(0xa1,0x91)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0xba,0xba)]===m(0x94,0x9c))h=Reflect[m(0xba,0xa6)](a,b,e,f);else for(var k=a[m(0xa1,0x9a)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a- -0x154,b);}return g>0x3&&h&&Object[m(0xaa,0xb2)](b,e,h),h;};import{Base}from'../class/Base.js';import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){a[a['UserInput']=0x0]=n(0x264,0x259);a[a['DependsOnlyOnUserInput']=0x1]='DependsOnlyOnUserInput';a[a['DependsOnlyOnDependsOnlyOnUserInput']=0x2]=n(0x275,0x277);function n(a,b){return _enb(a-0x6c,b);}a[a[n(0x266,0x272)]=0x3]=n(0x266,0x26f);}(Levels||(Levels={})));class Meta extends Base{constructor(){function o(a,b){return _enb(b- -0x367,a);}super(...arguments);this[o(-0x185,-0x17c)]=void 0x0;this[o(-0x188,-0x175)]=![];this['total']=!![];this[o(-0x164,-0x157)]=!![];this[o(-0x16d,-0x185)]=![];}[_enp(0x17f,0x198)](a){function q(a,b){return _enp(a-0x3d5,b);}throw new Error(q(0x556,0x55d));}[_enp(0x180,0x181)](a,b){return a===b;}}__decorate([prototypeValue(Levels['DependsOnSelfKind'])],Meta[_enp(0x196,0x1ae)],'level',void 0x0);function _ena(){const D=['new','proposedArguments','mix','proposedIsPrevious','identifier','DependsOnlyOnDependsOnlyOnUserInput','Unknown\x20identifier\x20','isWritingPreviousData','sync','3624966waRbno','decorate','ignoreEdgesFlow','pure','graph','newQuark','readFromGraph','8lcaQgg','proposedValueIsBuilt','924atxjkR','quarkClass','readFromTransactionAsync','writeToTransaction','read','function','18HsufFS','value','name','calculation','equality','Abstract\x20method\x20`calculation`\x20called','writeToGraph','proposedValue','readFromGraphAsync','lazy','158562WXBDqN','writtenValue','length','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','write','UserInput','65122fDYvZp','DependsOnSelfKind','level','readFromTransaction','327264LjVBNi','defineProperty','2810JIjAGL','11PytrEk','9848350ySoYCo','2774292HoufZU','prototype'];_ena=function(){return D;};return _ena();}__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0x19f,0x1aa),void 0x0);class Identifier extends Meta{constructor(){function r(a,b){return _enp(b- -0x254,a);}super(...arguments);this[r(-0xaf,-0xb2)]=![];this['context']=void 0x0;this['isWritingUndefined']=![];}[_enp(0x1a5,0x1b5)](a){const b=this[s(0x5b5,0x5cb)][s(0x603,0x5eb)]();b[s(0x5dc,0x5ef)]=this;function s(a,b){return _enp(b-0x454,a);}b['needToBuildProposedValue']=this[s(0x5b3,0x5c9)];return b;}['write'](a,b,c,d,...e){c=c||b['getWriteTarget'](a);c[t(0x209,0x21e)]=d;c['proposedArguments']=e['length']>0x0?e:void 0x0;function t(a,b){return _enp(b-0x9b,a);}c[t(0x246,0x235)]=b[t(0x22e,0x23f)][t(0x224,0x239)]>0x0;c[t(0x22a,0x222)]=d;}[_enp(0x179,0x17a)](a,b,...c){function u(a,b){return _enp(a-0x2b5,b);}a[u(0x43f,0x434)](this,b,...c);}[_enp(0x182,0x194)](a,b,...c){a['write'](this,b,...c);}[_enp(0x184,0x17f)](a){return a['readAsync'](this);}[_enp(0x173,0x16e)](a){function v(a,b){return _enp(a-0xd0,b);}return a[v(0x24a,0x23b)](this);}[_enp(0x18f,0x194)](a){function w(a,b){return _enp(b- -0x322,a);}return a[w(-0x1ab,-0x1a8)](this);}[_enp(0x178,0x163)](a){return a['readAsync'](this);}['buildProposedValue'](a,b,c){return void 0x0;}['enterGraph'](a){}['leaveGraph'](a){}}function _enp(a,b){return _enb(a- -0x6d,b);}const IdentifierC=a=>Identifier[_enp(0x197,0x182)](a);const QuarkSync=Quark[_enp(0x199,0x1a3)](CalculationSync[_enp(0x199,0x18f)](Map));const QuarkGen=Quark['mix'](CalculationGen['mix'](Map));class Variable extends Identifier{['calculation'](a){function x(a,b){return _enp(b-0xf7,a);}throw new Error(x(0x28c,0x280));}[_enp(0x18a,0x180)](a,b,c,d,...e){function y(a,b){return _enp(b- -0xd6,a);}c=c||b['getWriteTarget'](a);c[y(0xbf,0xa7)]=d;c[y(0xda,0xc2)]=e[y(0xb4,0xb2)]>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(0x18b,0x19a)])],Variable[_enp(0x196,0x1ab)],_enp(0x18e,0x17c),void 0x0);__decorate([prototypeValue(QuarkSync)],Variable[_enp(0x196,0x1a6)],'quarkClass',void 0x0);function VariableC(...a){function z(a,b){return _enp(b-0x327,a);}return Variable[z(0x4d8,0x4be)](...a);}class CalculatedValueSync extends Identifier{[_enp(0x17f,0x179)](a){return a(ProposedOrPrevious);}}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync['prototype'],_enp(0x177,0x190),void 0x0);function CalculatedValueSyncC(...a){function A(a,b){return _enp(b-0xe3,a);}return CalculatedValueSync[A(0x264,0x27a)](...a);}class CalculatedValueGen extends Identifier{*[_enp(0x17f,0x168)](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen['prototype'],'quarkClass',void 0x0);function CalculatedValueGenC(...a){function B(a,b){return _enp(b-0x12e,a);}return CalculatedValueGen[B(0x2d4,0x2c5)](...a);}const throwUnknownIdentifier=a=>{function C(a,b){return _enp(b-0x13f,a);}throw new Error(C(0x2e4,0x2dc)+a);};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e0;let f=c[d];return f;};return _enb(a,b);}export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
@@ -1 +1 @@
1
- (function(a,b){function o(a,b){return _enb(a- -0x2c6,b);}const c=a();while(!![]){try{const d=-parseInt(o(-0xd4,-0xdb))/0x1+-parseInt(o(-0xb9,-0xc3))/0x2+-parseInt(o(-0xc1,-0xac))/0x3+parseInt(o(-0xa2,-0x98))/0x4*(parseInt(o(-0xb7,-0xae))/0x5)+-parseInt(o(-0xbe,-0xb7))/0x6+-parseInt(o(-0xc3,-0xb9))/0x7*(parseInt(o(-0xa8,-0x92))/0x8)+parseInt(o(-0x9b,-0xa2))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc3980));import{MixinAny}from'../class/Mixin.js';import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';var EdgeType;(function(a){a[a[p(0x36b,0x36d)]=0x1]=p(0x369,0x36d);function p(a,b){return _enb(b-0x148,a);}a[a[p(0x332,0x349)]=0x2]=p(0x338,0x349);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this['identifier']=void 0x0;this[q(0x3ff,0x3fd)]=void 0x0;function q(a,b){return _enb(a-0x1eb,b);}this[q(0x40e,0x3f5)]=void 0x0;this['proposedIsPrevious']=![];this[q(0x3e2,0x3e1)]=void 0x0;this[q(0x403,0x3f6)]=![];this[q(0x414,0x3fc)]=void 0x0;this[q(0x3f5,0x40a)]=void 0x0;this['originId']=MIN_SMI;this[q(0x3e6,0x3db)]=![];this[q(0x3eb,0x3ef)]=0x0;this[q(0x3f7,0x3f2)]=NOT_VISITED;this[q(0x3e5,0x400)]=0x0;this[q(0x3ed,0x3e5)]=void 0x0;this[q(0x40b,0x41b)]=void 0x0;}static['new'](c){const d=new this();function r(a,b){return _enb(a- -0x13b,b);}c&&Object[r(0xc9,0xcb)](d,c);return d;}get['level'](){function s(a,b){return _enb(a-0xce,b);}return this[s(0x2f4,0x30d)][s(0x2f8,0x30e)];}get['calculation'](){return this['identifier']['calculation'];}get[_ent(-0x13c,-0x12a)](){function u(a,b){return _ent(a-0x104,b);}return this[u(-0x22,-0x20)][u(-0x38,-0x1f)]||this[u(-0x22,-0x22)];}[_ent(-0x157,-0x13e)](){function v(a,b){return _ent(a-0x1e,b);}this[v(-0x12e,-0x124)]=MAX_SMI;}[_ent(-0x130,-0x12b)](){function w(a,b){return _ent(a-0x700,b);}this[w(0x5ca,0x5bd)]();}[_ent(-0x13b,-0x11f)](){function x(a,b){return _ent(b-0x41b,a);}return Boolean(this[x(0x2cc,0x2d9)]&&this[x(0x2c3,0x2d9)]!==this);}[_ent(-0x143,-0x129)](c){this[y(-0x98,-0x93)]=c;this[y(-0x86,-0x7d)]=NOT_VISITED;function y(a,b){return _ent(a-0xba,b);}if(this[y(-0x92,-0x8c)]<0x0)this['edgesFlow']=0x0;this[y(-0x7a,-0x8a)]=![];this[y(-0x7c,-0x70)]();this[y(-0x80,-0x6b)]();this[y(-0x90,-0x92)]=void 0x0;if(this[y(-0x88,-0x9f)]&&this[y(-0x88,-0x88)]===this){this['proposedArguments']=void 0x0;if(this[y(-0x7e,-0x92)]!==void 0x0){this[y(-0x6f,-0x7d)]=this[y(-0x7e,-0x7f)];}this[y(-0x7e,-0x7f)]=void 0x0;}else{this[y(-0x88,-0x88)]=void 0x0;this[y(-0x7e,-0x64)]=void 0x0;}if(this[y(-0x6c,-0x7f)][y(-0x71,-0x8e)]&&this[y(-0x6f,-0x67)]!==TombStone){this['needToBuildProposedValue']=!![];this[y(-0x6f,-0x7e)]=void 0x0;}}[_ent(-0x14e,-0x131)](c){this[z(-0x55,-0x6a)]=c[z(-0x72,-0x6a)];this['proposedValue']=c[z(-0x51,-0x5b)];function z(a,b){return _ent(b-0xce,a);}this['proposedArguments']=c['proposedArguments'];this[z(-0x78,-0x66)]=c[z(-0x4d,-0x66)];}['clearProperties'](){this[A(0x2c0,0x2d3)]=void 0x0;function A(a,b){return _ent(b-0x40b,a);}this[A(0x2f7,0x2e2)]=void 0x0;this['proposedArguments']=void 0x0;}[_ent(-0x131,-0x117)](c){function B(a,b){return _ent(b-0x304,a);}const d=this[B(0x1af,0x1c2)];if(d!==this[B(0x1c9,0x1e1)])throw new Error(B(0x1d9,0x1cd));this['copyFrom'](d);const e=this[B(0x1a6,0x1b0)]();for(const [f,g]of d[B(0x1ae,0x1b0)]()){const h=e['get'](f);if(!h){const i=c['get'](f);if(!i||i[B(0x1df,0x1d7)]===g[B(0x1cb,0x1d7)])e['set'](f,i||g);}}if(d[B(0x1d8,0x1d8)]!==void 0x0){const j=this[B(0x1cc,0x1df)]();for(const [k,l]of d[B(0x1c5,0x1df)]()){const m=j[B(0x1c0,0x1c6)](k);if(!m){const n=c[B(0x1aa,0x1c6)](k);if(!n||n[B(0x1d6,0x1d7)]===l[B(0x1c3,0x1d7)])j['set'](k,n||l);}}}this[B(0x1b0,0x1c2)]=this;d[B(0x1b8,0x1b5)]();d[B(0x1c5,0x1d2)]();}['setOrigin'](c){this[C(0x384,0x370)]=c;function C(a,b){return _ent(a-0x4c6,b);}this[C(0x399,0x386)]=c[C(0x399,0x39a)];}[_ent(-0x12a,-0x10d)](){if(this['origin'])return this[D(0x112,0x129)];function D(a,b){return _ent(a-0x254,b);}return this[D(0xfe,0x107)]();}[_ent(-0x156,-0x15c)](){this[E(0x31a,0x301)]=ORIGIN_ID++;function E(a,b){return _ent(a-0x447,b);}return this[E(0x305,0x320)]=this;}[_ent(-0x154,-0x141)](){return this;}[_ent(-0x125,-0x134)](){function F(a,b){return _ent(a-0x519,b);}if(this['$outgoingPast']!==void 0x0)return this[F(0x3ed,0x3e5)];return this[F(0x3ed,0x3d7)]=new Map();}[_ent(-0x133,-0x11c)](c,d){const e=d===EdgeType[G(-0x12f,-0x133)]?this:this[G(-0x126,-0x131)]();function G(a,b){return _ent(b- -0xc,a);}e[G(-0x147,-0x13b)](c[G(-0x118,-0x132)],c);}[_ent(-0x13a,-0x14b)](){this[H(0x3cb,0x3bf)]();function H(a,b){return _ent(b-0x4f1,a);}if(this['$outgoingPast']!==void 0x0)this[H(0x3bd,0x3c5)][H(0x3ce,0x3bf)]();}[_ent(-0x145,-0x13d)](){const c=this['origin'];function I(a,b){return _ent(b-0x303,a);}return c===this?this[I(0x1e5,0x1cb)]:c?c[I(0x1d9,0x1be)]():void 0x0;}['setValue'](c){function J(a,b){return _ent(b-0x4d4,a);}if(this['origin']&&this[J(0x3ab,0x392)]!==this)throw new Error('Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry');this[J(0x39f,0x3aa)]()[J(0x385,0x39c)]=c;}[_ent(-0x150,-0x14a)](){return this['getValue']()!==void 0x0;}[_ent(-0x159,-0x161)](){function K(a,b){return _ent(b-0x529,a);}if(this[K(0x3f6,0x3ee)]())return![];return this[K(0x404,0x3f4)]();}['hasProposedValueInner'](){function L(a,b){return _ent(b-0x5f2,a);}return this[L(0x4b2,0x4c9)]!==void 0x0;}['getProposedValue'](c){function M(a,b){return _ent(a-0x10,b);}if(this[M(-0x141,-0x132)]){this[M(-0x119,-0x105)]=this[M(-0x116,-0x132)][M(-0x13d,-0x13f)][M(-0x131,-0x134)](this[M(-0x116,-0x116)][M(-0x12c,-0x11d)]||this[M(-0x116,-0xfe)],this['identifier'],this,c);this['needToBuildProposedValue']=![];}return this[M(-0x119,-0x116)];}['outgoingInTheFutureCb'](c,d){function N(a,b){return _ent(a-0x6d3,b);}let e=this;while(e){for(const f of e[N(0x57f,0x59a)]()[N(0x580,0x57b)]()){if(f[N(0x5a6,0x5ab)]===c[N(0x5af,0x5a1)](f[N(0x5ad,0x59a)])[N(0x5a6,0x59d)])d(f);}if(e[N(0x598,0x5ad)]())e=e[N(0x5b0,0x59b)];else e=null;}}['outgoingInTheFutureAndPastCb'](c,d){function O(a,b){return _ent(a-0x570,b);}let e=this;while(e){for(const f of e[O(0x41c,0x41f)]()[O(0x41d,0x404)]()){const g=c[O(0x44c,0x441)](f[O(0x44a,0x448)]);if(g&&f[O(0x443,0x430)]===g['originId'])d(f);}if(e[O(0x444,0x45f)]!==void 0x0){for(const h of e[O(0x444,0x43e)]['values']()){const i=c[O(0x44c,0x442)](h[O(0x44a,0x452)]);if(i&&h['originId']===i[O(0x443,0x439)])d(h);}}if(e[O(0x435,0x434)]())e=e['previous'];else e=null;}}[_ent(-0x146,-0x158)](c,d){function P(a,b){return _ent(a-0x3e,b);}let e=this;while(e){for(const f of e['getOutgoing']()[P(-0x115,-0x114)]()){const g=c[P(-0x11a,-0x11d)](f['identifier']);if(g&&f[P(-0xef,-0xd4)]===g['originId'])d(f);}if(e['$outgoingPast']!==void 0x0){for(const h of e[P(-0xee,-0xff)][P(-0x115,-0x117)]()){const i=c['getLatestStableEntryFor'](h[P(-0xe8,-0xdb)]);if(i&&h[P(-0xef,-0xe7)]===i[P(-0xef,-0xea)])d(h);}}if(e[P(-0xfd,-0x10b)]())e=e[P(-0xe5,-0xf6)];else e=null;}}[_ent(-0x139,-0x120)](c,d){let e=this;function Q(a,b){return _ent(a-0x4a4,b);}while(e){for(const f of e[Q(0x350,0x34e)]()[Q(0x351,0x363)]()){const g=c['getLatestEntryFor'](f[Q(0x37e,0x36e)]);if(g&&f[Q(0x377,0x37e)]===g['originId'])d(f);}if(e['isShadow']())e=e[Q(0x381,0x39e)];else e=null;}}}){}const TombStone=Symbol('Tombstone');function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1f2;let f=c[d];return f;};return _enb(a,b);}function _ent(a,b){return _enb(a- -0x34c,b);}export{EdgeType,Quark,TombStone};function _ena(){const R=['outgoingInTheFutureTransactionCb','value','Invalid\x20state','cleanupCalculation','hasProposedValueInner','usedProposedOrPrevious','addOutgoingTo','clear','mergePreviousOrigin','cleanup','set','27656HaBokW','originId','$outgoingPast','proposedValueIsBuilt','getOrigin','proposedValue','3155764uynKdM','Normal','identifier','getOutgoingPast','getLatestEntryFor','previous','level','13765203BxPzhE','476047aUtPcD','hasProposedValue','getLatestStableEntryFor','forceCalculation','startOrigin','proposedArguments','getOutgoing','values','visitEpoch','needToBuildProposedValue','hasValue','clearProperties','copyFrom','buildProposedValue','edgesFlow','Past','promise','791vzCkfQ','assign','2149311ohgAVs','outgoingInTheFutureAndPastTransactionCb','getValue','698544zoEXcv','resetToEpoch','origin','call','visitedAt','1213296HmELkG','get','10trjsaq','context','isShadow','clearOutgoing'];_ena=function(){return R;};return _ena();}
1
+ function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x107;let f=c[d];return f;};return _enb(a,b);}function _ena(){const S=['forceCalculation','visitedAt','895082SzwoDX','proposedValueIsBuilt','originId','values','value','usedProposedOrPrevious','proposedArguments','level','isShadow','9165506hJviSO','165WvEGkN','cleanup','$outgoingPast','cleanupCalculation','getProposedValue','3oEuSJQ','getValue','resetToEpoch','35731861LBmAzG','outgoingInTheFutureAndPastTransactionCb','edgesFlow','context','copyFrom','clearOutgoing','proposedIsPrevious','7769136HKeDlT','startOrigin','1035976DZuoGm','outgoingInTheFutureAndPastCb','clear','clearProperties','getOutgoingPast','Tombstone','41244WoaEqQ','getLatestEntryFor','calculation','get','hasProposedValue','getOrigin','hasProposedValueInner','addOutgoingTo','hasValue','origin','new','819AwqzCQ','previous','proposedValue','getLatestStableEntryFor','assign','Normal','identifier','writtenValue','getOutgoing','set','2AJdQVc','35870eRIzeo','Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry','mergePreviousOrigin','Past','needToBuildProposedValue','setValue'];_ena=function(){return S;};return _ena();}(function(a,b){function o(a,b){return _enb(b- -0x344,a);}const c=a();while(!![]){try{const d=-parseInt(o(-0x224,-0x20f))/0x1*(-parseInt(o(-0x217,-0x218))/0x2)+parseInt(o(-0x208,-0x200))/0x3*(parseInt(o(-0x241,-0x233))/0x4)+-parseInt(o(-0x21a,-0x205))/0x5*(-parseInt(o(-0x215,-0x22d))/0x6)+parseInt(o(-0x1e8,-0x206))/0x7+parseInt(o(-0x22a,-0x235))/0x8+-parseInt(o(-0x232,-0x222))/0x9*(-parseInt(o(-0x22a,-0x217))/0xa)+-parseInt(o(-0x257,-0x23c))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb489c));import{MixinAny}from'../class/Mixin.js';import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';var EdgeType;(function(a){function p(a,b){return _enb(a- -0x7c,b);}a[a[p(0xab,0xbe)]=0x1]=p(0xab,0x9a);a[a[p(0xb4,0xcf)]=0x2]='Past';}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;function _enr(a,b){return _enb(b-0x218,a);}class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x349,0x367)]=void 0x0;this[q(0x35a,0x354)]=void 0x0;this[q(0x345,0x335)]=void 0x0;this[q(0x32f,0x328)]=![];function q(a,b){return _enb(a-0x221,b);}this[q(0x35c,0x366)]=void 0x0;this[q(0x35b,0x360)]=![];this[q(0x34a,0x350)]=void 0x0;this[q(0x344,0x34e)]=void 0x0;this[q(0x341,0x323)]=void 0x0;this[q(0x358,0x33c)]=MIN_SMI;this['needToBuildProposedValue']=![];this[q(0x32b,0x310)]=0x0;this[q(0x355,0x363)]=NOT_VISITED;this['visitEpoch']=0x0;this['promise']=void 0x0;this[q(0x362,0x35a)]=void 0x0;}static[_enr(0x357,0x339)](c){const d=new this();c&&Object[s(0x3d0,0x3d2)](d,c);function s(a,b){return _enr(b,a-0x92);}return d;}get['level'](){function t(a,b){return _enr(b,a- -0x6);}return this[t(0x33a,0x326)][t(0x34e,0x352)];}get[_enr(0x33a,0x331)](){function u(a,b){return _enr(b,a- -0x2a7);}return this[u(0x99,0x99)][u(0x8a,0x82)];}get[_enr(0x33b,0x323)](){function v(a,b){return _enr(a,b- -0x4a8);}return this['identifier'][v(-0x16c,-0x185)]||this[v(-0x14e,-0x168)];}[_enr(0x33a,0x34b)](){this['edgesFlow']=MAX_SMI;}[_enr(0x352,0x358)](){function w(a,b){return _enr(a,b- -0x4f2);}this[w(-0x179,-0x198)]();}[_enr(0x33e,0x355)](){function x(a,b){return _enr(b,a- -0x1d5);}return Boolean(this[x(0x163,0x179)]&&this[x(0x163,0x145)]!==this);}[_enr(0x32d,0x31f)](c){this['visitEpoch']=c;this[y(0x38f,0x376)]=NOT_VISITED;if(this[y(0x34e,0x34c)]<0x0)this[y(0x367,0x34c)]=0x0;this[y(0x396,0x37c)]=![];this['cleanupCalculation']();function y(a,b){return _enr(a,b-0x2a);}this[y(0x335,0x34f)]();this['promise']=void 0x0;if(this['origin']&&this[y(0x35e,0x362)]===this){this['proposedArguments']=void 0x0;if(this[y(0x36b,0x37b)]!==void 0x0){this['proposedValue']=this['value'];}this['value']=void 0x0;}else{this[y(0x37a,0x362)]=void 0x0;this[y(0x394,0x37b)]=void 0x0;}if(this[y(0x37a,0x36a)][y(0x37a,0x378)]&&this['proposedValue']!==TombStone){this[y(0x35f,0x373)]=!![];this[y(0x37d,0x366)]=void 0x0;}}[_enr(0x320,0x324)](c){this[z(0x40f,0x407)]=c[z(0x408,0x407)];this[z(0x404,0x3f2)]=c['proposedValue'];this[z(0x41c,0x409)]=c[z(0x405,0x409)];function z(a,b){return _enr(a,b-0xb6);}this['usedProposedOrPrevious']=c[z(0x40a,0x408)];}[_enr(0x33c,0x32c)](){function A(a,b){return _enr(b,a- -0x41f);}this[A(-0xce,-0xc5)]=void 0x0;this[A(-0xe3,-0xca)]=void 0x0;this[A(-0xcc,-0xe9)]=void 0x0;this['writtenValue']=void 0x0;}[_enr(0x357,0x347)](c){const d=this[B(0x420,0x43c)];if(d!==this[B(0x423,0x429)])throw new Error('Invalid\x20state');function B(a,b){return _enr(b,a-0xe8);}this[B(0x40c,0x425)](d);const e=this[B(0x42a,0x412)]();for(const [f,g]of d[B(0x42a,0x42a)]()){const h=e[B(0x41a,0x41e)](f);if(!h){const i=c['get'](f);if(!i||i[B(0x437,0x434)]===g[B(0x437,0x424)])e[B(0x42b,0x437)](f,i||g);}}if(d[B(0x441,0x445)]!==void 0x0){const j=this['getOutgoingPast']();for(const [k,l]of d[B(0x415,0x41f)]()){const m=j[B(0x41a,0x430)](k);if(!m){const n=c[B(0x41a,0x426)](k);if(!n||n[B(0x437,0x451)]===l[B(0x437,0x44e)])j['set'](k,n||l);}}}this[B(0x420,0x439)]=this;d[B(0x414,0x42f)]();d[B(0x413,0x406)]();}['setOrigin'](c){this[C(0x349,0x354)]=c;function C(a,b){return _enr(a,b-0x1c);}this[C(0x34d,0x36b)]=c[C(0x388,0x36b)];}[_enr(0x353,0x334)](){if(this[D(0x3da,0x3e2)])return this['origin'];function D(a,b){return _enr(b,a-0xa2);}return this[D(0x3ca,0x3de)]();}[_enr(0x30a,0x328)](){function E(a,b){return _enr(a,b- -0x20);}this[E(0x326,0x32f)]=ORIGIN_ID++;return this['origin']=this;}[_enr(0x35e,0x342)](){return this;}[_enr(0x33e,0x32d)](){if(this[F(0x386,0x38f)]!==void 0x0)return this[F(0x386,0x372)];function F(a,b){return _enr(b,a-0x2d);}return this[F(0x386,0x368)]=new Map();}[_enr(0x34b,0x336)](c,d){function G(a,b){return _enr(a,b- -0x308);}const e=d===EdgeType[G(0x56,0x37)]?this:this['getOutgoingPast']();e[G(0x51,0x3b)](c[G(0x18,0x38)],c);}[_enr(0x335,0x325)](){this[H(0x177,0x185)]();function H(a,b){return _enr(b,a- -0x1b4);}if(this['$outgoingPast']!==void 0x0)this[H(0x1a5,0x19d)]['clear']();}[_enr(0x377,0x35d)](){function I(a,b){return _enr(b,a- -0x5b8);}const c=this[I(-0x280,-0x283)];return c===this?this[I(-0x267,-0x249)]:c?c['getValue']():void 0x0;}[_enr(0x34f,0x34a)](c){function J(a,b){return _enr(a,b-0x135);}if(this[J(0x47b,0x46d)]&&this[J(0x460,0x46d)]!==this)throw new Error(J(0x469,0x47b));this['getOrigin']()[J(0x47a,0x486)]=c;}[_enr(0x348,0x337)](){function K(a,b){return _enr(a,b- -0x5ed);}return this[K(-0x298,-0x290)]()!==void 0x0;}[_enr(0x322,0x333)](){function L(a,b){return _enr(a,b- -0x3f1);}if(this['isShadow']())return![];return this[L(-0xc3,-0xbc)]();}[_enr(0x31f,0x335)](){function M(a,b){return _enr(a,b- -0x5ad);}return this[M(-0x271,-0x271)]!==void 0x0;}[_enr(0x372,0x35b)](c){if(this[N(0x408,0x412)]){this[N(0x413,0x405)]=this['identifier']['buildProposedValue']['call'](this['identifier']['context']||this[N(0x3fa,0x409)],this['identifier'],this,c);this[N(0x40e,0x412)]=![];}function N(a,b){return _enr(a,b-0xc9);}return this[N(0x422,0x405)];}['outgoingInTheFutureCb'](c,d){function O(a,b){return _enr(b,a- -0xa6);}let e=this;while(e){for(const f of e[O(0x29c,0x2b1)]()[O(0x2aa,0x28e)]()){if(f['originId']===c['getLatestEntryFor'](f[O(0x29a,0x289)])[O(0x2a9,0x2a2)])d(f);}if(e[O(0x2af,0x298)]())e=e[O(0x295,0x28f)];else e=null;}}[_enr(0x336,0x32a)](c,d){function P(a,b){return _enr(b,a-0x25);}let e=this;while(e){for(const f of e[P(0x367,0x354)]()[P(0x375,0x36f)]()){const g=c[P(0x355,0x342)](f[P(0x365,0x373)]);if(g&&f[P(0x374,0x391)]===g[P(0x374,0x393)])d(f);}if(e['$outgoingPast']!==void 0x0){for(const h of e[P(0x37e,0x37c)][P(0x375,0x382)]()){const i=c['getLatestEntryFor'](h['identifier']);if(i&&h[P(0x374,0x35d)]===i['originId'])d(h);}}if(e[P(0x37a,0x37c)]())e=e[P(0x360,0x37c)];else e=null;}}[_enr(0x32e,0x321)](c,d){let e=this;function Q(a,b){return _enr(b,a- -0x305);}while(e){for(const f of e[Q(0x3d,0x57)]()[Q(0x4b,0x66)]()){const g=c[Q(0x38,0x42)](f[Q(0x3b,0x5b)]);if(g&&f[Q(0x4a,0x46)]===g['originId'])d(f);}if(e[Q(0x54,0x3b)]!==void 0x0){for(const h of e[Q(0x54,0x55)][Q(0x4b,0x51)]()){const i=c['getLatestStableEntryFor'](h[Q(0x3b,0x4d)]);if(i&&h['originId']===i[Q(0x4a,0x55)])d(h);}}if(e[Q(0x50,0x6f)]())e=e[Q(0x36,0x1c)];else e=null;}}['outgoingInTheFutureTransactionCb'](c,d){function R(a,b){return _enr(b,a- -0x1ec);}let e=this;while(e){for(const f of e[R(0x156,0x140)]()['values']()){const g=c[R(0x144,0x125)](f['identifier']);if(g&&f[R(0x163,0x15c)]===g['originId'])d(f);}if(e['isShadow']())e=e[R(0x14f,0x150)];else e=null;}}}){}const TombStone=Symbol(_enr(0x327,0x32e));export{EdgeType,Quark,TombStone};
@@ -1 +1 @@
1
- function _ena(){const x=['boolean','cls','availabilityEndSchedule','join','prioritySortValue','name','at\x20','348578MBkGNt','startDate','endDateSchedule','parseDateSchedule','getCalendar','date','11724uHukVw','recurrentStartDate','getAvailabilityEndSchedule','5493290OeXVvH','compositeCode','startDateSchedule','fd_b','14gapVZw','2125ZrQTAd','getPrioritySortValue','endDate','availabilityStartSchedule','number','schedules','3bDIVdD','2276VOpOrJ','EOD','1178604iZWsTL','schedule','type','parse','recurrentTimeZone','priority','iconCls','parentIndex','getStartDateSchedule','isRecurrent','availability','29307xCmerQ','recurrentEndDate','isOverride','resetPriority','length','getDepth','71928MAKJiJ','fd_a','isStatic','match','Week','getTime','afterChange','sort','448PiYHgx','19635vbKnSw','map','split','text','fields'];_ena=function(){return x;};return _ena();}(function(a,b){function h(a,b){return _enb(b-0x398,a);}const c=a();while(!![]){try{const d=parseInt(h(0x586,0x5a1))/0x1+parseInt(h(0x578,0x57f))/0x2*(-parseInt(h(0x575,0x593))/0x3)+parseInt(h(0x5a9,0x594))/0x4*(parseInt(h(0x580,0x58d))/0x5)+-parseInt(h(0x5a4,0x596))/0x6*(parseInt(h(0x56e,0x58c))/0x7)+parseInt(h(0x5b7,0x5af))/0x8*(-parseInt(h(0x5c4,0x5a7))/0x9)+-parseInt(h(0x581,0x588))/0xa+-parseInt(h(0x5c5,0x5b0))/0xb*(-parseInt(h(0x574,0x585))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6e1df));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import _enc from'../vendor/later/later.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1df;let f=c[d];return f;};return _enb(a,b);}import{AbstractPartOfProjectModelMixin}from'../quark/model/mixin/AbstractPartOfProjectModelMixin.js';import{CalendarIntervalType}from'../scheduling/Types.js';function convertAvailabilityValue(a){function i(a,b){return _enb(a-0x2f2,b);}if(a){if(typeof a=='string'){a=a[i(0x50c,0x4f2)](',');a[i(0x50b,0x51e)](b=>{function j(a,b){return i(a-0xda,b);}const [c,d]=b[j(0x5e6,0x5cf)]('-');return{'startDate':c,'endDate':d};});}}else{a=null;}return a;}const JSON_START=/^[\s\n]*[[{]/;class CalendarIntervalMixin extends Mixin([AbstractPartOfProjectModelMixin],a=>{function k(a,b){return _enb(a- -0x2d1,b);}class b extends a{static get[k(-0xf2,-0x106)](){function l(a,b){return k(b-0x559,a);}return[l(0x468,0x46d),{'name':'startDate','type':l(0x470,0x474)},{'name':l(0x471,0x47f),'type':l(0x47e,0x474)},'recurrentStartDate',l(0x4a8,0x492),l(0x466,0x469),'color',l(0x481,0x48c),{'name':'isWorking','type':l(0x460,0x468),'defaultValue':![]},{'name':l(0x47a,0x48b),'type':l(0x466,0x481)},{'name':l(0x474,0x488)},{'name':'availability','convert':convertAvailabilityValue},{'name':l(0x47b,0x479)},l(0x483,0x48a)];}['getCalendar'](){return this['stores'][0x0]['calendar'];}get['compositeIntervalCode'](){function m(a,b){return k(a-0x556,b);}return this[m(0x476,0x45b)]||(this[m(0x46d,0x453)]?.[m(0x499,0x4af)]()||'')+'-'+(this['endDate']?.[m(0x499,0x480)]()||'')+'-'+(this[m(0x485,0x489)]||'');}[k(-0xc5,-0xb1)](){function n(a,b){return k(a-0x185,b);}this[n(0x98,0x7f)]=null;this[n(0x9f,0xbd)]()[n(0xc2,0xb4)]();}[k(-0xdb,-0xef)](){if(this[o(0x275,0x27a)]!=null)return this['prioritySortValue'];let c=0x2710;let d=this[o(0x27d,0x299)];if(d==null){switch(this['type']){case CalendarIntervalType[o(0x2b4,0x2a9)]:c+=this[o(0x27c,0x281)]()['getDepth']()*0x64;d=this['isOverride']()?0x1e:0x14;break;case CalendarIntervalType['Exception']:c+=this['getCalendar']()[o(0x2ad,0x2a4)]()*0x2710;d=0x28;break;default:c+=this[o(0x285,0x281)]()[o(0x2c0,0x2a4)]()*0x64;if(this[o(0x2b3,0x29d)]()){d=0x14;if(this[o(0x2b0,0x2a1)]()){d+=0xa;}}else{d=0x28;}}d+=this[o(0x28f,0x29b)];}function o(a,b){return k(b-0x367,a);}return this['prioritySortValue']=c+d;}[k(-0xca,-0xc2)](){function p(a,b){return k(a-0x270,b);}return Boolean(this[p(0x1a5,0x1b0)]()||this[p(0x19f,0x19e)]===CalendarIntervalType['Exception']&&this['getAvailabilityStartSchedule']());}[k(-0xc0,-0xd7)](){function q(a,b){return k(a-0x333,b);}return Boolean(this[q(0x24a,0x25f)]&&this[q(0x259,0x275)]&&!this[q(0x269,0x269)]());}['isOverride'](){return Boolean(this['startDate']||this['endDate']);}['parseDateSchedule'](c){let d;function r(a,b){return k(a- -0x89,b);}if(c&&c!==Object(c)){if(c[r(-0x148,-0x167)](JSON_START)){try{d=JSON[r(-0x159,-0x169)](c);}catch(f){}}if(!d){d=_enc['parse'][r(-0x13f,-0x15b)](c['trim']());if(d['error']>=0x0){throw new Error('Parsing\x20the\x20\x27later\x27\x20schedule\x20has\x20failed:\x20\x22'+c+'\x22.\x20Please\x20consult\x20the\x20\x27later\x27\x20documentation\x20for\x20recognizable\x20formats:\x20https://bunkat.github.io/later/parsers.html');}}}else{d=c;}return d;}[k(-0xcb,-0xae)](){if(!this[s(-0x7d,-0x71)])return null;if(this['startDateSchedule'])return this[s(-0x79,-0x6b)];const c=this['parseDateSchedule'](this[s(-0x7d,-0x97)]);function s(a,b){return k(a-0x66,b);}if(c?.[s(-0x71,-0x6c)]?.[0x0]){const d=c[s(-0x71,-0x6c)][0x0];if(!this[s(-0x83,-0x89)]&&d[s(-0x5b,-0x5d)]){this['startDate']=new Date(d[s(-0x5b,-0x76)][0x0]);delete d['fd_a'];}if(!this[s(-0x74,-0x6f)]&&d[s(-0x78,-0x7d)]){this[s(-0x74,-0x85)]=new Date(d[s(-0x78,-0x7e)][0x0]);delete d['fd_b'];}}return this['startDateSchedule']=_enc[s(-0x6c,-0x58)](c);}['getEndDateSchedule'](){if(this[t(0x216,0x234)])return this[t(0x216,0x20d)];function t(a,b){return k(a-0x2fe,b);}if(!this[t(0x237,0x22e)]||this['recurrentEndDate']===t(0x22a,0x21a))return null;const c=this[t(0x217,0x228)](this[t(0x237,0x238)]);if(c?.[t(0x227,0x226)]?.[0x0]){const d=c[t(0x227,0x241)][0x0];if(this[t(0x215,0x227)]?.['getTime']()&&d['fd_a']?.[0x0]&&this[t(0x215,0x208)]?.['getTime']()===d[t(0x23d,0x23e)]?.[0x0]){delete d[t(0x23d,0x247)];}if(this[t(0x224,0x23a)]?.[t(0x241,0x224)]()&&d['fd_b']?.[0x0]&&this[t(0x224,0x242)]?.[t(0x241,0x24d)]()===d[t(0x220,0x216)]?.[0x0]){delete d['fd_b'];}}return this[t(0x216,0x218)]=_enc[t(0x22c,0x234)](c);}['getAvailabilityStartSchedule'](){function u(a,b){return k(a-0x4d4,b);}if(this[u(0x40b,0x3ef)]?.[u(0x410,0x424)]){if(this['availabilityStartSchedule'])return this[u(0x3fb,0x3ec)];const c='at\x20'+this[u(0x40b,0x3fa)]['map'](e=>e[u(0x3eb,0x3ea)])[u(0x419,0x422)]()[u(0x3e6,0x402)](',');const d=this[u(0x3ed,0x3f0)](c);return this[u(0x3fb,0x3dd)]=_enc['schedule'](d);}}[k(-0xe2,-0xec)](){function v(a,b){return k(a- -0xad,b);}if(this[v(-0x176,-0x181)]?.[v(-0x171,-0x167)]){if(this[v(-0x19c,-0x188)])return this[v(-0x19c,-0x1a3)];const c=v(-0x198,-0x182)+this['availability'][v(-0x165,-0x17d)](e=>e[v(-0x187,-0x18d)])[v(-0x168,-0x159)]()[v(-0x19b,-0x1b3)](',');const d=this[v(-0x194,-0x1a6)](c);return this['availabilityEndSchedule']=_enc[v(-0x17f,-0x164)](d);}}[k(-0xbc,-0xb1)](c,d,e,f,g){super['afterChange'](c,d,e,f,g);if(d?.[w(0x29d,0x2b8)]){this[w(0x2a1,0x28e)]=void 0x0;}if(d?.[w(0x2b9,0x2d7)]){this[w(0x298,0x285)]=void 0x0;}function w(a,b){return k(a-0x380,b);}if(d?.[w(0x2b7,0x2b3)]){this[w(0x2a7,0x2b2)]=void 0x0;this[w(0x291,0x299)]=void 0x0;}}}return b;}){}export{CalendarIntervalMixin};
1
+ (function(a,b){const c=a();function h(a,b){return _enb(b-0x12e,a);}while(!![]){try{const d=parseInt(h(0x28e,0x283))/0x1*(-parseInt(h(0x25e,0x261))/0x2)+parseInt(h(0x288,0x286))/0x3*(-parseInt(h(0x25f,0x263))/0x4)+-parseInt(h(0x28e,0x278))/0x5+-parseInt(h(0x269,0x275))/0x6+parseInt(h(0x2ae,0x294))/0x7+parseInt(h(0x293,0x274))/0x8+-parseInt(h(0x267,0x27c))/0x9*(-parseInt(h(0x2a3,0x29d))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x35515));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import _enc from'../vendor/later/later.js';import{AbstractPartOfProjectModelMixin}from'../quark/model/mixin/AbstractPartOfProjectModelMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x133;let f=c[d];return f;};return _enb(a,b);}import{CalendarIntervalType}from'../scheduling/Types.js';function convertAvailabilityValue(a){if(a){if(typeof a==i(0x4eb,0x4ef)){a=a[i(0x502,0x4e9)](',');a[i(0x50d,0x52b)](b=>{const [c,d]=b['split']('-');return{'startDate':c,'endDate':d};});}}else{a=null;}function i(a,b){return _enb(a-0x3a3,b);}return a;}const JSON_START=/^[\s\n]*[[{]/;class CalendarIntervalMixin extends Mixin([AbstractPartOfProjectModelMixin],a=>{function j(a,b){return _enb(b-0x92,a);}class b extends a{static get[j(0x1e1,0x1d1)](){function k(a,b){return j(a,b- -0x396);}return[k(-0x1bb,-0x1ab),{'name':k(-0x18c,-0x19f),'type':'date'},{'name':k(-0x1ad,-0x1ae),'type':k(-0x1af,-0x196)},k(-0x1d0,-0x1cb),k(-0x187,-0x1a0),k(-0x1be,-0x1c8),k(-0x1bf,-0x1ad),k(-0x1d0,-0x1b1),{'name':k(-0x1d5,-0x1c0),'type':'boolean','defaultValue':![]},{'name':k(-0x1ad,-0x19b),'type':k(-0x19e,-0x1a3)},{'name':k(-0x1dd,-0x1c1)},{'name':k(-0x1b9,-0x1c3),'convert':convertAvailabilityValue},{'name':'compositeCode'},k(-0x1b1,-0x1b4)];}[j(0x1dd,0x1e3)](){function l(a,b){return j(b,a- -0x18);}return this[l(0x1d6,0x1e5)][0x0]['calendar'];}get['compositeIntervalCode'](){function m(a,b){return j(a,b-0x33e);}return this[m(0x539,0x532)]||(this[m(0x533,0x535)]?.[m(0x51e,0x51f)]()||'')+'-'+(this[m(0x53a,0x526)]?.[m(0x533,0x51f)]()||'')+'-'+(this[m(0x504,0x513)]||'');}[j(0x1e3,0x1ec)](){this[n(0x17,0x31)]=null;function n(a,b){return j(a,b- -0x1d1);}this['getCalendar']()[n(-0xd,0xa)]();}['getPrioritySortValue'](){function o(a,b){return j(b,a- -0x3a5);}if(this['prioritySortValue']!=null)return this[o(-0x1a3,-0x1bf)];let c=0x2710;let d=this[o(-0x1aa,-0x1c6)];if(d==null){switch(this[o(-0x1d0,-0x1b4)]){case CalendarIntervalType[o(-0x1b5,-0x1c1)]:c+=this[o(-0x1c2,-0x1ca)]()['getDepth']()*0x64;d=this[o(-0x1db,-0x1e0)]()?0x1e:0x14;break;case CalendarIntervalType[o(-0x1b0,-0x1ad)]:c+=this[o(-0x1c2,-0x1b8)]()[o(-0x1ca,-0x1ab)]()*0x2710;d=0x28;break;default:c+=this[o(-0x1c2,-0x1e0)]()['getDepth']()*0x64;if(this[o(-0x1bf,-0x1d7)]()){d=0x14;if(this[o(-0x1db,-0x1cf)]()){d+=0xa;}}else{d=0x28;}}d+=this[o(-0x1dc,-0x1df)];}return this[o(-0x1a3,-0x1c1)]=c+d;}[j(0x1f7,0x1e6)](){function p(a,b){return j(a,b- -0x222);}return Boolean(this[p(-0x55,-0x44)]()||this['type']===CalendarIntervalType[p(-0x2f,-0x2d)]&&this[p(-0x4d,-0x4e)]());}[j(0x1b7,0x1d0)](){function q(a,b){return j(a,b-0x335);}return Boolean(this[q(0x549,0x52c)]&&this[q(0x509,0x51d)]&&!this[q(0x514,0x51b)]());}[j(0x1ab,0x1ca)](){function r(a,b){return j(b,a- -0x13b);}return Boolean(this[r(0xbc,0xcc)]||this[r(0xad,0x9c)]);}[j(0x1e3,0x1dd)](c){let d;if(c&&c!==Object(c)){if(c['match'](JSON_START)){try{d=JSON[s(0xbf,0xa0)](c);}catch(f){}}if(!d){d=_enc[s(0xbf,0xb0)]['text'](c['trim']());if(d['error']>=0x0){throw new Error('Parsing\x20the\x20\x27later\x27\x20schedule\x20has\x20failed:\x20\x22'+c+'\x22.\x20Please\x20consult\x20the\x20\x27later\x27\x20documentation\x20for\x20recognizable\x20formats:\x20https://bunkat.github.io/later/parsers.html');}}}else{d=c;}function s(a,b){return j(b,a- -0x113);}return d;}[j(0x1cd,0x1de)](){if(!this[t(0x44d,0x45c)])return null;if(this[t(0x471,0x47c)])return this['startDateSchedule'];function t(a,b){return j(b,a-0x282);}const c=this[t(0x45f,0x470)](this[t(0x44d,0x46a)]);if(c?.[t(0x474,0x467)]?.[0x0]){const d=c['schedules'][0x0];if(!this['startDate']&&d[t(0x448,0x45b)]){this[t(0x479,0x490)]=new Date(d[t(0x448,0x45d)][0x0]);delete d[t(0x448,0x429)];}if(!this[t(0x46a,0x46a)]&&d[t(0x481,0x491)]){this[t(0x46a,0x475)]=new Date(d[t(0x481,0x4a0)][0x0]);delete d[t(0x481,0x485)];}}return this['startDateSchedule']=_enc[t(0x461,0x47f)](c);}[j(0x203,0x1ed)](){function u(a,b){return j(b,a- -0x2e1);}if(this['endDateSchedule'])return this['endDateSchedule'];if(!this[u(-0xeb,-0x108)]||this[u(-0xeb,-0xef)]===u(-0xfd,-0x115))return null;const c=this[u(-0x104,-0xec)](this[u(-0xeb,-0xe3)]);if(c?.[u(-0xef,-0x10d)]?.[0x0]){const d=c[u(-0xef,-0xf8)][0x0];if(this[u(-0xea,-0xf9)]?.[u(-0x100,-0x107)]()&&d['fd_a']?.[0x0]&&this[u(-0xea,-0xe0)]?.[u(-0x100,-0xe4)]()===d[u(-0x11b,-0x128)]?.[0x0]){delete d['fd_a'];}if(this[u(-0xf9,-0xfd)]?.[u(-0x100,-0x10c)]()&&d[u(-0xe2,-0xd3)]?.[0x0]&&this['endDate']?.['getTime']()===d[u(-0xe2,-0xf8)]?.[0x0]){delete d[u(-0xe2,-0xde)];}}return this[u(-0x112,-0x100)]=_enc['schedule'](c);}[j(0x1f1,0x1d4)](){function v(a,b){return j(b,a- -0x225);}if(this[v(-0x52,-0x4d)]?.[v(-0x2c,-0x31)]){if(this['availabilityStartSchedule'])return this[v(-0x27,-0x35)];const c='at\x20'+this[v(-0x52,-0x60)]['map'](e=>e[v(-0x2e,-0x17)])[v(-0x4e,-0x6b)]()[v(-0x59,-0x55)](',');const d=this[v(-0x48,-0x43)](c);return this[v(-0x27,-0x44)]=_enc['schedule'](d);}}[j(0x200,0x1fa)](){function w(a,b){return j(b,a- -0x2c0);}if(this[w(-0xed,-0xe0)]?.[w(-0xc7,-0xc0)]){if(this['availabilityEndSchedule'])return this[w(-0xc3,-0xd6)];const c=w(-0xf3,-0xed)+this[w(-0xed,-0xe8)]['map'](e=>e[w(-0xd8,-0xdc)])['sort']()[w(-0xf4,-0xdc)](',');const d=this[w(-0xe3,-0xd5)](c);return this[w(-0xc3,-0xc4)]=_enc[w(-0xe1,-0xeb)](d);}}['afterChange'](c,d,e,f,g){super[x(0xdb,0xee)](c,d,e,f,g);function x(a,b){return j(a,b- -0xda);}if(d?.[x(0xf9,0xf1)]){this[x(0x12d,0x115)]=void 0x0;}if(d?.[x(0x10e,0x11c)]){this['endDateSchedule']=void 0x0;}if(d?.[x(0x104,0xf9)]){this[x(0x113,0x124)]=void 0x0;this[x(0x123,0x123)]=void 0x0;}}}return b;}){}function _ena(){const y=['2xrGAZo','fd_a','156ySWdpv','afterChange','parentIndex','isOverride','recurrentStartDate','join','at\x20','cls','endDateSchedule','isStatic','fields','parse','availability','getAvailabilityStartSchedule','type','isWorking','sort','2293936Itbttr','1522734MhMtCU','string','getDepth','1624690THJMrP','parseDateSchedule','getStartDateSchedule','schedule','385956fdOwnr','getTime','recurrentDatesTimeZone','getCalendar','EOD','iconCls','isRecurrent','97191cLjVgw','endDate','color','21978kJfZVL','name','resetPriority','getEndDateSchedule','stores','startDateSchedule','Week','split','schedules','number','compositeCode','Exception','recurrentEndDate','startDate','1449945RlVmbk','length','getAvailabilityEndSchedule','priority','map','availabilityEndSchedule','availabilityStartSchedule','fd_b','date','160CyhJZF','prioritySortValue'];_ena=function(){return y;};return _ena();}export{CalendarIntervalMixin};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function A(a,b){return _enb(a-0x324,b);}while(!![]){try{const d=parseInt(A(0x4a2,0x488))/0x1*(-parseInt(A(0x48c,0x455))/0x2)+-parseInt(A(0x49a,0x4b1))/0x3+-parseInt(A(0x498,0x4be))/0x4*(-parseInt(A(0x4b2,0x4d8))/0x5)+-parseInt(A(0x4b4,0x4b6))/0x6*(-parseInt(A(0x463,0x44b))/0x7)+-parseInt(A(0x455,0x42b))/0x8*(parseInt(A(0x4c7,0x48b))/0x9)+-parseInt(A(0x484,0x468))/0xa*(parseInt(A(0x4d5,0x4cd))/0xb)+parseInt(A(0x4ab,0x4e1))/0xc*(parseInt(A(0x45c,0x44d))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5981b));var __decorate=function(a,b,e,f){var g=arguments[B(0x46,0x4f)],h=g<0x3?b:f===null?f=Object[B(0x6e,0xa0)](b,e):f,j;function B(a,b){return _enb(b- -0xeb,a);}if(typeof Reflect===B(0xa4,0x64)&&typeof Reflect[B(0x88,0x6d)]==='function')h=Reflect[B(0x32,0x6d)](a,b,e,f);else for(var k=a[B(0x4e,0x4f)]-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[B(0x23,0x4c)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x12b;let f=c[d];return f;};return _enb(a,b);}import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';import{format}from'../util/Functions.js';import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';function _enC(a,b){return _enb(a- -0x2d0,b);}import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol(_enC(-0x174,-0x13c));class EngineRevision extends Revision{constructor(){super(...arguments);function D(a,b){return _enC(a-0x213,b);}this[D(0xdd,0x9f)]=new Map();this['proposedTimePhasedWrites']=[];}}function _ena(){const a7=['silenceInitialCommit','write','matchDependencyBySourceAndTargetEvent','isCommitting','batchChanges','getShortDescription','transactionChainEntries','calendarManagerStore','async','9713bRwCbC','context','entries','assignmentStore','RemoveDependencyCycleEffectResolution','autoCommit','Cancel','transactionClass','join','ignoreBag','toEvent','baseRevision','24GtwAZx','getDependencies','candidateClass','clear','self','forEach','defineProperty','2364635UemIMX','effect','length','dirty','isWritingData','afterChronoFieldSet','markSelfDependent','7vRzpbg','suspendAutoCommit','commitAsync','graph','isDestroyed','_onComputationCycle','DEBUG','_events','ignoreRecordChanges','proposedTimePhasedWrites','event','new','initialize','commitFinalized','ongoing','call','object','enableProgressNotifications','beforeChronoFieldSet','resourceStore','Time\x20to\x20visible','refresh','onComputationCycle','getEvents','finalizeCommitHook','decorate','beginBatch','isInitialCommitPerformed','hasEntryWithProposedValue','CycleSymbol','ignore','acceptChanges','getResolutions','10vyNmfR','values','hasVariableEntry','project','selfDependedMarked','dataReady','rejectedWith','removeDependencyCycleEffectResolutionClass','2nIYUVL','cancelBatch','type','_dependencies','autoCommitMode','Finalize\x20propagation','L{descriptionTpl}','fromEvent','addIdentifier','candidate','cycle','beforeCommit','4BuRkre','slice','1844694eiMBCE','delayCalculation','meta','progress','writeFailedResolutionInfo','suspendChangeTracking','isInitialCommit','hasLoadedDataToCommit','20647jdNJnB','isWritingPreviousData','commitRejected','getDependencyForSourceAndTargetEvents','startProgressNotificationsAfterMs','$name','beforeCommitAsync','ignoreInitialCommitComputationCycles','activeTransaction','36WFtKet','push','onComputationCycleHandlerSync','walkContext','getOwnPropertyDescriptor','cycleEffectClass','transaction','1601705YRIToP','emitProgressNotificationsEveryMs','1375230OgsZih','_resolutions','has','endBatch','hasChangesInStores','onComputationCycleHandler','get','onCycleSchedulingIssue','getValue','getDescription','failedResolutionReferences','CycleEffectDescription','timeEnd','\x22\x20->\x20\x22','isShadow','prototype','trigger','size','eventStore','276552eSJuPN','resumeChangeTracking','add','_descriptionBuilderClass','name'];_ena=function(){return a7;};return _ena();}class EngineTransaction extends Transaction{constructor(){function E(a,b){return _enC(b-0xe0,a);}super(...arguments);this[E(-0x97,-0xbd)]=EngineRevision;}[_enC(-0x185,-0x158)](a){function F(a,b){return _enC(b-0x282,a);}if(a[F(0xf1,0xf4)][F(0x156,0x115)]?.[F(0x131,0x129)]){a[F(0x10d,0x134)]=0x0;a[F(0x14e,0x141)]=0x64;}super[F(0x10b,0xfd)](a);this['candidate'][F(0x17a,0x14c)]=new Map(this['baseRevision'][F(0x119,0x14c)]);}[_enC(-0x192,-0x1c6)](){if(this[G(0x56,0x26)])return;function G(a,b){return _enC(a-0x1c2,b);}super[G(0x30,0x1f)]();this[G(0x34,0x3)]['isWritingPreviousData']++;this[G(0x22,0x5a)][G(0x3a,0xb)][G(0x28,-0x10)](([a,b])=>{const c=this[H(-0x40,0x2)][H(-0x5a,-0x1b)](a);function H(a,b){return G(b- -0xa3,a);}if(!c||!c['hasProposedValue']()){this['write'](a,b);}});this['graph'][G(0x71,0x6f)]--;}[_enC(-0x156,-0x178)](a){function I(a,b){return _enC(a-0x1bf,b);}a[I(0x25,0x4c)]((b,c)=>{function J(a,b){return I(b-0x1a4,a);}if(c[J(0x202,0x245)][J(0x1b2,0x1d5)]){this[J(0x224,0x23c)](c,b);}});}[_enC(-0x160,-0x149)](a,b,...c){const d=this[K(-0x5d,-0x9d)][K(-0x34,-0x3d)];if(d[K(-0x2d,0xb)]>0x0){this[K(-0x54,-0x71)](d);d['clear']();}function K(a,b){return _enC(a-0x102,b);}return super[K(-0x5e,-0x7e)](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{function M(a,b){return _enC(b- -0x98,a);}const b=a['prototype'];class c extends a{constructor(){super(...arguments);this[L(0x4ce,0x48e)]=EngineRevision[L(0x4e8,0x4bb)]();this[L(0x4ca,0x49f)]=EngineTransaction;function L(a,b){return _enb(a-0x39e,b);}this[L(0x50a,0x512)]=L(0x54e,0x542);this[L(0x4f3,0x51b)]=L(0x4d7,0x4c0);this[L(0x52a,0x52d)]=CycleEffect;this[L(0x546,0x552)]=!![];this[L(0x523,0x53b)]=![];this[L(0x54c,0x58d)]=new Set();}get[M(-0x206,-0x22d)](){function N(a,b){return M(b,a-0x1cb);}const d=this['activeTransaction'];return d[N(0x16,0x54)][N(0x4,0x46)]>0x0&&(d[N(-0x3b,-0x2c)]||d[N(-0x42,-0x3c)]);}['onPropagationProgressNotification'](d){function O(a,b){return M(a,b-0x103);}if(this['enableProgressNotifications']&&this[O(-0xc1,-0x102)])this[O(-0xec,-0x102)][O(-0xfa,-0xc5)]?.(O(-0xf2,-0xec),d);}async[M(-0x22a,-0x227)](d){if(!this['project']||this['project'][P(0x3e,0x68)])return;if(this[P(0x80,0xab)][P(0xd3,0xd8)][P(0xde,0xc6)]===0x0&&!this[P(0x47,0x88)][P(0xe3,0xb9)]&&!this['isInitialCommit']){if(this[P(0xd2,0xd0)]){return this[P(0x5b,0x72)];}else{this[P(0x88,0x88)][P(0x44,0x7f)]=!![];this['isInitialCommit']=![];return{'rejectedWith':null};}}this[P(0x99,0x88)]['trigger'](P(0xb1,0x98));if(this[P(0x77,0xa1)]&&this[P(0x94,0xaa)]){this[P(0x68,0x69)]=this[P(0x3f,0x69)]||this['onComputationCycle'];this[P(0x78,0x7a)]=P(0x49,0x82);}function P(a,b){return M(a,b-0x28d);}const e=this[P(0xcb,0x88)][P(0x6a,0xa9)]();if(e)return e;return b[P(0x3f,0x66)][P(0x38,0x73)](this,d);}get['isInitialCommit'](){function Q(a,b){return M(b,a- -0x70);}return this['project']['isInitialCommit']||super['isInitialCommit']&&!this[Q(-0x275,-0x2ba)][Q(-0x27e,-0x24f)];}set[M(-0x1c8,-0x1ec)](d){function R(a,b){return M(a,b-0x66a);}super[R(0x439,0x47e)]=d;}[M(-0x1c6,-0x1bf)](d,e,...f){function S(a,b){return M(b,a-0x61a);}const g=d['field']?.[S(0x459,0x451)];const h=d['self'];if(g&&h&&this===h[S(0x3f4,0x41a)]){const i=h[S(0x403,0x3ce)]?.(g,e);b[S(0x45b,0x46b)][S(0x400,0x408)](this,d,e,...f);h[S(0x3ef,0x41c)]?.(g,e,i);}else{b['write'][S(0x400,0x3c1)](this,d,e,...f);}}async['finalizeCommitAsync'](d){const {project:e}=this;if(!e||e['isDestroyed'])return;e[T(-0x1cb,-0x1b9)]('finalizeCommit');const {entries:f,transaction:g}=d;const h=new Set();if(globalThis[T(-0x226,-0x1ed)])console['timeEnd'](T(-0x218,-0x240));const {isInitialCommit:i,silenceInitialCommit:j}=this;if(!f[T(-0x1ca,-0x1fd)]&&!e[T(-0x1ee,-0x22c)]){e[T(-0x1cb,-0x1de)](T(-0x21f,-0x211),{'isInitialCommit':i,'transactionResult':d});return;}const k=e[T(-0x214,-0x233)](i)===!![];if(k){for(const m of f[T(-0x20a,-0x1cd)]()){this[T(-0x1bd,-0x1d8)][T(-0x1c6,-0x206)](m);}return;}const l=i&&j;function T(a,b){return M(b,a- -0x3);}if(i){e['isInitialCommitPerformed']=!![];if(this[T(-0x1e6,-0x1dc)])this['onComputationCycle']=this['_onComputationCycle'];}e[T(-0x22f,-0x257)]=!![];e[T(-0x1ee,-0x1ad)]=![];if(this[T(-0x21b,-0x1da)]){e[T(-0x1cb,-0x1e4)](T(-0x1f2,-0x1c5),{'total':f[T(-0x1ca,-0x1d0)],'remaining':0x0,'phase':'finalizing'});}if(g[T(-0x205,-0x22a)]){e['trigger']('commitRejected',{'transactionResult':d,'isInitialCommit':i,'silenceCommit':l});}e[T(-0x1cb,-0x191)](T(-0x217,-0x257),{'isInitialCommit':i,'isCalculated':!![]});await delay(0x0);if(!e[T(-0x228,-0x222)]){if(!d['transaction'][T(-0x205,-0x1ee)]){e[T(-0x1f0,-0x1b8)]?.();if(globalThis['DEBUG'])console['time'](T(-0x1fe,-0x1c3));const n=new Set();const o=this[T(-0x1bd,-0x1d4)][T(-0x1ca,-0x1ce)]?this['transactionChainEntries']:f[T(-0x20a,-0x1e1)]();for(const q of o){const r=q['identifier'];const s=q[T(-0x1d3,-0x1d6)]();const {field:t}=r;if(q[T(-0x1cd,-0x19d)]()||!r[IsChronoModelSymbol]||s===TombStone||t instanceof ModelBucketField||t[T(-0x20e,-0x217)])continue;const u=r[T(-0x236,-0x274)];const v=u['firstStore'];if(!n['has'](u)){u[T(-0x212,-0x1e3)](!![]);n[T(-0x1c6,-0x1e1)](u);}if(v?.[T(-0x1b5,-0x193)]&&!h[T(-0x1d9,-0x205)](v)){v[T(-0x22b,-0x239)]();h[T(-0x1c6,-0x1c5)](v);}u[T(-0x1f3,-0x222)]['batchChanges'][t[T(-0x1c4,-0x1bd)]]=s;}let p=![];for(const w of n){if(!w['triggerBeforeUpdate']({...w[T(-0x1f3,-0x1f3)][T(-0x1bf,-0x195)]})){p=!![];break;}}if(p){for(const x of n){x[T(-0x202,-0x1c7)]();}d[T(-0x1de,-0x201)]['reject']();e[T(-0x1cb,-0x18d)](T(-0x1eb,-0x228),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':l});e['trigger']('refresh',{'isInitialCommit':i,'isCalculated':!![]});}else{for(const y of n){y[T(-0x23d,-0x236)]=l||e[T(-0x224,-0x239)];y['generation']++;y[T(-0x1d8,-0x1fb)](l,!![],!![]);y[T(-0x23d,-0x234)]=![];}}e[T(-0x224,-0x24f)]=![];if(globalThis['DEBUG'])console[T(-0x1cf,-0x1f7)](T(-0x1fe,-0x22e));e[T(-0x22f,-0x240)]=![];if(!p){e[T(-0x1cb,-0x1de)](T(-0x206,-0x1d3),{'records':n,'isInitialCommit':i});}e[T(-0x1c7,-0x1cf)]?.(l);h[T(-0x235,-0x20e)](z=>z['resumeAutoCommit']());if(l){e[T(-0x1c9,-0x1c9)][T(-0x20d,-0x212)]();e['dependencyStore'][T(-0x20d,-0x1ed)]();e[T(-0x219,-0x22d)]['acceptChanges']();e[T(-0x1b7,-0x1bf)][T(-0x20d,-0x1d5)]();e[T(-0x1bc,-0x1d0)][T(-0x20d,-0x243)]();e['acceptChanges']();}}else{e[T(-0x22f,-0x24d)]=![];}this['transactionChainEntries'][T(-0x237,-0x200)]();e['trigger'](T(-0x21f,-0x22d),{'isInitialCommit':i,'transactionResult':d});}}*['onComputationCycleHandler'](d){function U(a,b){return M(b,a-0x1f);}if(this[U(-0x1f4,-0x232)]==='effect'){const e=this[U(-0x1e6,-0x1e1)]['cycleEffectClass'][U(-0x1ff,-0x1c6)]({'cycle':d});if((yield e)===EffectResolutionResult[U(-0x21e,-0x1f0)]){yield Reject(e);}}else{return yield*super[U(-0x1b4,-0x1d7)](d);}}[M(-0x1ca,-0x1df)](d,e){function V(a,b){return M(b,a-0x1e5);}if(this[V(-0x2e,0x11)]==='effect'){const f=this['project'][V(0x9,-0x2a)][V(-0x39,-0x76)]({'cycle':d});throw f;}else{return super['onComputationCycleHandlerSync'](d,e);}}async[CycleSymbol](d,e){function W(a,b){return M(a,b-0x685);}return this[W(0x43a,0x480)][W(0x4c5,0x4b4)](d,e);}async[EmptyCalendarSymbol](d,e){e[X(0x48a,0x46a)]['startNewEpoch']();function X(a,b){return M(a,b-0x648);}return this['project']['onEmptyCalendarSchedulingIssue'](d,e);}async[ConflictSymbol](d,e){e[Y(-0x228,-0x21a)]['startNewEpoch']();function Y(a,b){return M(b,a- -0x4a);}return this[Y(-0x24f,-0x20c)]['onConflictSchedulingIssue'](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}return c;}){}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){[_enC(-0x137,-0x126)](){function Z(a,b){return _enC(b- -0x27,a);}return this['L'](Z(-0x155,-0x189));}['resolve'](a){a['remove']();}}RemoveDependencyCycleEffectResolution[_enC(-0x14d,-0x163)]=_enC(-0x11b,-0x132);class CycleEffectDescription extends _end(_enc){static['getDescription'](a){function a0(a,b){return _enC(a-0x5d3,b);}return format(this['L'](a0(0x471,0x4ad)),this['getShortDescription'](a));}static[_enC(-0x123,-0x12f)](a){const b=a[a1(0x20d,0x20a)]()[a1(0x22c,0x230)]();function a1(a,b){return _enC(a-0x387,b);}b[a1(0x23f,0x265)](b[0x0]);return'\x22'+b['map'](c=>c[a1(0x25e,0x26c)]||'#'+c['id'])[a1(0x1e4,0x204)](a1(0x254,0x21a))+'\x22';}}CycleEffectDescription['$name']=_enC(-0x135,-0x100);class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);this['handler']=CycleSymbol;}get['isCycleEffect'](){return!![];}[_enC(-0x17a,-0x1ba)](){function a2(a,b){return _enC(b-0x571,a);}if(!this[a2(0x414,0x3e7)]){const a=new Set();this[a2(0x424,0x413)][a2(0x454,0x413)][a2(0x39b,0x3d7)](({context:b})=>a[a2(0x401,0x446)](b[a2(0x3ae,0x3ea)]??b));this['_events']=[...a];}return this[a2(0x3b6,0x3e7)];}[_enC(-0x126,-0x10a)](a,b,c){function a3(a,b){return _enC(b-0x60,a);}return a[a3(-0xec,-0x101)]===b&&a[a3(-0x14f,-0x141)]===c;}[_enC(-0x14f,-0x15d)](a,b){const c=this[a4(0xb3,0xe0)]();const d=c[0x0][a4(0xc0,0xee)];function a4(a,b){return _enC(a-0x22d,b);}const e=d['getDependencyStore']();return e['find'](f=>this[a4(0x107,0xf4)](f,a,b));}[_enC(-0x19e,-0x19d)](){function a5(a,b){return _enC(a-0xf4,b);}if(!this[a5(-0x71,-0x81)]){const a=new Set();const b=this['getEvents']();const c=b['length'];let d=b[0x0],e;if(c===0x1){if(e=this[a5(-0x5b,-0x3d)](d,d)){a[a5(-0x37,-0x3b)](e);}}else{for(const f of b){for(const g of b){if(e=this[a5(-0x5b,-0x3f)](f,g)){a[a5(-0x37,-0x10)](e);}if(e=this[a5(-0x5b,-0x79)](g,f)){a[a5(-0x37,-0x59)](e);}}}}this[a5(-0x71,-0x78)]=[...a];}return this[a5(-0x71,-0x42)];}[_enC(-0x171,-0x148)](){if(!this[a6(-0x123,-0x110)]){this[a6(-0x123,-0x131)]=[this[a6(-0x14d,-0x156)]['new']()];}function a6(a,b){return _enC(a-0x1c,b);}return this[a6(-0x123,-0x11b)];}}__decorate([prototypeValue(_enC(-0x15e,-0x18a))],CycleEffect[_enC(-0x131,-0x114)],_enC(-0x166,-0x152),void 0x0);__decorate([prototypeValue(CycleEffectDescription)],CycleEffect[_enC(-0x131,-0x174)],_enC(-0x12a,-0xf8),void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect[_enC(-0x131,-0x111)],_enC(-0x169,-0x188),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
1
+ (function(a,b){function B(a,b){return _enb(a-0x3cf,b);}const c=a();while(!![]){try{const d=parseInt(B(0x5ee,0x600))/0x1+-parseInt(B(0x5ef,0x61a))/0x2+parseInt(B(0x610,0x5cc))/0x3*(-parseInt(B(0x620,0x64d))/0x4)+-parseInt(B(0x605,0x627))/0x5+parseInt(B(0x5e1,0x614))/0x6+-parseInt(B(0x626,0x62f))/0x7+parseInt(B(0x614,0x5d1))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x862fa));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[C(-0x90,-0x74)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[C(-0xbd,-0xe5)]===C(-0x95,-0x89))h=Reflect['decorate'](a,b,e,f);else for(var k=a[C(-0x83,-0x76)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function C(a,b){return _enb(a- -0x2be,b);}return g>0x3&&h&&Object[C(-0x7c,-0x88)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';function _enD(a,b){return _enb(a-0x15a,b);}import{format}from'../util/Functions.js';function _ena(){const a7=['enableProgressNotifications','CycleSymbol','onComputationCycleHandler','hasLoadedDataToCommit','Finalize\x20propagation','call','proposedTimePhasedWrites','isDestroyed','getEvents','resourceStore','Cancel','commitRejected','acceptChanges','timeEnd','finalizeCommitAsync','transactionClass','getDependencyStore','commitFinalized','trigger','removeDependencyCycleEffectResolutionClass','ignoreBag','reject','markSelfDependent','resumeAutoCommit','preventSilencingOnIssueResolve','clear','write','\x22\x20->\x20\x22','async','getValue','decorate','CycleEffectDescription','hasChangesInStores','fromEvent','transactionChainEntries','startProgressNotificationsAfterMs','hasResolvedSchedulingIssue','size','isCycleEffect','generation','map','hasEntryWithProposedValue','activeTransaction','dataReady','effect','calendarManagerStore','matchDependencyBySourceAndTargetEvent','4704402NnOZIO','slice','$name','_onComputationCycle','endBatch','beforeCommitAsync','addIdentifier','ignoreRecordChanges','initialize','getShortDescription','resumeChangeTracking','Time\x20to\x20visible','beginBatch','984338zqTetA','1601074YjKGdS','delayCalculation','onCycleSchedulingIssue','beforeCommit','progress','triggerBeforeUpdate','isWritingPreviousData','suspendAutoCommit','new','function','dependencyStore','_dependencies','DEBUG','_events','getOwnPropertyDescriptor','L{descriptionTpl}','baseRevision','finalizeCommit','onEmptyCalendarSchedulingIssue','cycleEffectClass','isInitialCommit','toEvent','4646785GJyWZO','entries','assignmentStore','autoCommit','cycle','length','event','dirty','writeFailedResolutionInfo','has','transaction','9yBsEQG','defineProperty','onComputationCycleHandlerSync','suspendChangeTracking','13954584ZiXWwL','hasProposedValue','meta','failedResolutionReferences','find','onConflictSchedulingIssue','onComputationCycle','add','isInitialCommitPerformed','cancelBatch','ignoreInitialCommitComputationCycles','prototype','1056604nHsmbP','onPropagationProgressNotification','isCommitting','commitAsync','rejectedWith','identifier','3085285jvNrBm','self','isWritingData','context','_resolutions','values','ignore','join','project','getDependencyForSourceAndTargetEvents','forEach','getDependencies','firstStore','handler','silenceInitialCommit','graph','autoCommitMode','name','_descriptionBuilderClass','getDescription','hasVariableEntry','walkContext','getResolutions'];_ena=function(){return a7;};return _ena();}import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol(_enD(0x33e,0x32f));class EngineRevision extends Revision{constructor(){super(...arguments);function E(a,b){return _enD(a-0xc3,b);}this[E(0x465,0x463)]=new Map();this['proposedTimePhasedWrites']=[];}}class EngineTransaction extends Transaction{constructor(){super(...arguments);this['candidateClass']=EngineRevision;this['hasResolvedSchedulingIssue']=![];}[_enD(0x374,0x3ac)](a){function F(a,b){return _enD(a-0xf7,b);}if(a[F(0x4b7,0x4c6)][F(0x4b0,0x4cc)]?.[F(0x472,0x472)]){a[F(0x457,0x462)]=0x0;a['emitProgressNotificationsEveryMs']=0x64;}super[F(0x46b,0x43e)](a);this['candidate'][F(0x499,0x45d)]=new Map(this[F(0x481,0x478)][F(0x499,0x4d2)]);}[_enD(0x353,0x374)](){if(this['selfDependedMarked'])return;super['markSelfDependent']();this[G(0x3ec,0x42c)][G(0x3ac,0x3be)]++;function G(a,b){return _enD(a-0x2c,b);}this[G(0x3b6,0x38a)][G(0x36f,0x38d)][G(0x3e7,0x3a1)](([a,b])=>{const c=this['entries']['get'](a);function H(a,b){return G(b- -0x180,a);}if(!c||!c[H(0x243,0x24c)]()){this[H(0x1d5,0x203)](a,b);}});this['graph'][G(0x3ac,0x38f)]--;}[_enD(0x398,0x3da)](a){a['forEach']((b,c)=>{function I(a,b){return _enb(b-0x9b,a);}if(c[I(0x304,0x2f5)][I(0x2d0,0x301)]){this[I(0x2a3,0x298)](c,b);}});}['addIdentifier'](a,b,...c){function J(a,b){return _enD(b-0x51,a);}const d=this['candidate'][J(0x3e3,0x3f3)];if(d[J(0x3b9,0x3b3)]>0x0){this[J(0x40a,0x3e9)](d);d[J(0x3b3,0x3a7)]();}return super[J(0x39b,0x3c3)](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{const b=a[K(0x248,0x22b)];class c extends a{constructor(){super(...arguments);this['baseRevision']=EngineRevision[L(0x57c,0x57d)]();this[L(0x546,0x53c)]=EngineTransaction;this[L(0x5bb,0x5eb)]=L(0x553,0x55f);this['onComputationCycle']=L(0x563,0x599);this[L(0x587,0x581)]=CycleEffect;this[L(0x5b9,0x593)]=!![];this[L(0x54f,0x536)]=!![];this[L(0x5a3,0x5c6)]=![];function L(a,b){return K(a-0x35c,b);}this[L(0x559,0x528)]=new Set();}get[K(0x235,0x234)](){const d=this[M(0x1a,0x57)];function M(a,b){return K(a- -0x1eb,b);}return d[M(0x44,0x3a)][M(0x15,0xb)]>0x0&&(d[M(0x78,0xa7)]||d[M(0x19,-0x17)]);}[K(0x24a,0x20f)](d){function N(a,b){return K(b-0x5a,a);}if(this[N(0x205,0x235)]&&this['project'])this[N(0x28e,0x2b1)][N(0x282,0x247)]?.(N(0x237,0x276),d);}async['commitAsync'](d){function O(a,b){return K(b-0x1dd,a);}if(!this[O(0x40e,0x434)]||this[O(0x3fe,0x434)][O(0x3e7,0x3bf)])return;if(this[O(0x3aa,0x3e2)][O(0x3fb,0x40c)][O(0x3e1,0x3dd)]===0x0&&!this[O(0x3f3,0x434)][O(0x418,0x3d8)]&&!this['isInitialCommit']){if(this[O(0x40e,0x428)]){return this['ongoing'];}else{this['project'][O(0x436,0x422)]=!![];this[O(0x3e4,0x409)]=![];return{'rejectedWith':null};}}this[O(0x44d,0x434)][O(0x406,0x3ca)](O(0x41c,0x3f8));if(this[O(0x3c3,0x409)]&&this[O(0x444,0x424)]){this[O(0x3fb,0x3ea)]=this[O(0x3dc,0x3ea)]||this[O(0x455,0x420)];this['onComputationCycle']=O(0x465,0x432);}const e=this[O(0x422,0x434)][O(0x3bf,0x3ec)]();if(e)return e;return b[O(0x465,0x429)]['call'](this,d);}get[K(0x22c,0x210)](){function P(a,b){return K(a-0x1fc,b);}return this[P(0x453,0x43f)][P(0x428,0x3fe)]||super[P(0x428,0x417)]&&!this[P(0x453,0x47f)]['isInitialCommitPerformed'];}set[K(0x22c,0x254)](d){function Q(a,b){return K(b-0x1f,a);}super[Q(0x290,0x24b)]=d;}[K(0x1f5,0x1f9)](d,e,...f){function R(a,b){return K(b-0xa9,a);}const g=d['field']?.['name'];const h=d[R(0x33a,0x2f9)];if(g&&h&&this===h[R(0x329,0x307)]){const i=h['beforeChronoFieldSet']?.(g,e);b[R(0x2be,0x29e)][R(0x264,0x289)](this,d,e,...f);h['afterChronoFieldSet']?.(g,e,i);}else{b[R(0x299,0x29e)][R(0x2b3,0x289)](this,d,e,...f);}}async[K(0x1e9,0x22a)](d){const {project:e}=this;if(!e||e[S(0x3e1,0x415)])return;e[S(0x429,0x420)](S(0x46d,0x45c));const {entries:f}=d,g=d[S(0x432,0x46b)],h=new Set();if(globalThis[S(0x499,0x457)])console[S(0x407,0x41b)](S(0x450,0x448));const {isInitialCommit:i,silenceInitialCommit:j,preventSilencingOnIssueResolve:k}=this;if(!f['size']&&!e[S(0x444,0x411)]){e['trigger'](S(0x3dc,0x41f),{'isInitialCommit':i,'transactionResult':d});return;}const l=e['finalizeCommitHook'](i)===!![];if(l){for(const n of f[S(0x48b,0x487)]()){this[S(0x43e,0x430)]['add'](n);}return;}const m=i&&j&&!(k&&g[S(0x416,0x432)]);if(i){e[S(0x467,0x478)]=!![];if(this[S(0x452,0x47a)])this[S(0x49c,0x476)]=this[S(0x46d,0x440)];}e['isWritingData']=!![];e[S(0x3d5,0x411)]=![];if(this[S(0x3fc,0x40e)]){e[S(0x3fc,0x420)](S(0x436,0x44f),{'total':f[S(0x415,0x433)],'remaining':0x0,'phase':'finalizing'});}if(g[S(0x4ae,0x480)]){e[S(0x401,0x420)](S(0x45a,0x419),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});}e[S(0x40c,0x420)]('refresh',{'isInitialCommit':i,'isCalculated':!![]});function S(a,b){return K(b-0x233,a);}await delay(0x0);if(!e[S(0x40c,0x415)]){if(!d['transaction']['rejectedWith']){e[S(0x44e,0x46f)]?.();if(globalThis[S(0x472,0x457)])console['time'](S(0x420,0x412));const o=new Set();const p=this[S(0x43a,0x430)]['size']?this[S(0x439,0x430)]:f[S(0x483,0x487)]();for(const r of p){const s=r[S(0x48c,0x481)];const t=r[S(0x468,0x42b)]();const {field:u}=s;if(r['isShadow']()||!s[IsChronoModelSymbol]||t===TombStone||u instanceof ModelBucketField||u[S(0x479,0x488)])continue;const v=s[S(0x4a3,0x483)];const w=v[S(0x459,0x48e)];if(!o['has'](v)){v[S(0x481,0x449)](!![]);o[S(0x435,0x477)](v);}if(w?.[S(0x43e,0x464)]&&!h[S(0x463,0x46a)](w)){w[S(0x47e,0x452)]();h[S(0x486,0x477)](w);}v[S(0x474,0x472)]['batchChanges'][u[S(0x4be,0x493)]]=t;}let q=![];for(const x of o){if(!x[S(0x477,0x450)]({...x[S(0x43f,0x472)]['batchChanges']})){q=!![];break;}}if(q){for(const y of o){y[S(0x47d,0x479)]();}d[S(0x49b,0x46b)][S(0x453,0x423)]();e[S(0x444,0x420)](S(0x40f,0x419),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});e['trigger']('refresh',{'isInitialCommit':i,'isCalculated':!![]});}else{for(const z of o){z['ignoreBag']=m||e[S(0x41e,0x444)];z[S(0x46f,0x435)]++;z[S(0x402,0x441)](m,!![],!![]);z[S(0x462,0x422)]=![];}}e[S(0x41a,0x444)]=![];if(globalThis[S(0x489,0x457)])console[S(0x3e6,0x41b)](S(0x3d6,0x412));e[S(0x4bf,0x484)]=![];if(!q){e[S(0x3e0,0x420)](S(0x3f9,0x439),{'records':o,'isInitialCommit':i});}e[S(0x450,0x447)]?.(m);h[S(0x455,0x48c)](A=>A[S(0x43a,0x425)]());if(m){e['eventStore'][S(0x403,0x41a)]();e[S(0x44b,0x455)][S(0x3f1,0x41a)]();e[S(0x43a,0x417)][S(0x41c,0x41a)]();e[S(0x4a2,0x463)][S(0x427,0x41a)]();e[S(0x412,0x43b)][S(0x415,0x41a)]();e[S(0x427,0x41a)]();}}else{e[S(0x4b0,0x484)]=![];}this[S(0x412,0x430)][S(0x44c,0x427)]();e[S(0x45f,0x420)]('commitFinalized',{'isInitialCommit':i,'transactionResult':d});}}*[K(0x1dd,0x1c0)](d){function T(a,b){return K(a-0x167,b);}if(this[T(0x3aa,0x3eb)]===T(0x36e,0x329)){const e=this[T(0x3be,0x3e2)][T(0x392,0x3c4)][T(0x387,0x3c5)]({'cycle':d});if((yield e)===EffectResolutionResult[T(0x34c,0x333)]){yield Reject(e);}}else{return yield*super[T(0x344,0x372)](d);}}[K(0x23b,0x27c)](d,e){function U(a,b){return K(b-0x10f,a);}if(this['onComputationCycle']==='effect'){const f=this['project'][U(0x31b,0x33a)][U(0x358,0x32f)]({'cycle':d});throw f;}else{return super['onComputationCycleHandlerSync'](d,e);}}async[CycleSymbol](d,e){function V(a,b){return K(b- -0x356,a);}return this[V(-0x12b,-0xff)][V(-0x172,-0x13c)](d,e);}async[EmptyCalendarSymbol](d,e){e['walkContext']['startNewEpoch']();function W(a,b){return K(a- -0x16d,b);}return this[W(0xea,0xcb)][W(0xbd,0x7e)](d,e);}async[ConflictSymbol](d,e){e[X(0x2f,-0x2)]['startNewEpoch']();function X(a,b){return K(a- -0x235,b);}return this[X(0x22,0x39)][X(0xd,-0x1a)](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}function K(a,b){return _enD(a- -0x162,b);}return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e3;let f=c[d];return f;};return _enb(a,b);}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){['getDescription'](){function Y(a,b){return _enD(b- -0x1cc,a);}return this['L'](Y(0x1fc,0x1bd));}['resolve'](a){a['remove']();}}RemoveDependencyCycleEffectResolution[_enD(0x36e,0x3aa)]='RemoveDependencyCycleEffectResolution';class CycleEffectDescription extends _end(_enc){static[_enD(0x3c4,0x405)](a){function Z(a,b){return _enD(a- -0x175,b);}return format(this['L'](Z(0x214,0x24f)),this[Z(0x200,0x228)](a));}static[_enD(0x375,0x36b)](a){function a0(a,b){return _enD(b- -0x59,a);}const b=a['getEvents']()[a0(0x2d2,0x314)]();b['push'](b[0x0]);return'\x22'+b[a0(0x2ee,0x30c)](c=>c[a0(0x36a,0x369)]||'#'+c['id'])[a0(0x37f,0x35f)](a0(0x31c,0x2ff))+'\x22';}}CycleEffectDescription['$name']=_enD(0x35c,0x382);class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);function a1(a,b){return _enD(a- -0x32f,b);}this[a1(0x8f,0x89)]=CycleSymbol;}get[_enD(0x363,0x326)](){return!![];}[_enD(0x345,0x32c)](){function a2(a,b){return _enD(a- -0x31e,b);}if(!this[a2(0x69,0x7c)]){const a=new Set();this[a2(0x76,0x37)][a2(0x76,0x92)][a2(0x9d,0x9e)](({context:b})=>a[a2(0x88,0xa3)](b[a2(0x78,0x68)]??b));this[a2(0x69,0x23)]=[...a];}return this[a2(0x69,0xae)];}[_enD(0x36b,0x37f)](a,b,c){function a3(a,b){return _enD(b- -0x47b,a);}return a[a3(-0x100,-0x11d)]===b&&a[a3(-0xf5,-0xec)]===c;}['getDependencyForSourceAndTargetEvents'](a,b){const c=this[a4(0x518,0x4d4)]();function a4(a,b){return _enD(a-0x1d3,b);}const d=c[0x0][a4(0x58c,0x5c5)];const e=d[a4(0x520,0x537)]();return e[a4(0x576,0x544)](f=>this[a4(0x53e,0x53c)](f,a,b));}[_enD(0x3bc,0x3b2)](){function a5(a,b){return _enD(b-0x1d3,a);}if(!this[a5(0x556,0x558)]){const a=new Set();const b=this[a5(0x4f9,0x518)]();const c=b[a5(0x537,0x568)];let d=b[0x0],e;if(c===0x1){if(e=this[a5(0x5a2,0x58d)](d,d)){a[a5(0x5bd,0x579)](e);}}else{for(const f of b){for(const g of b){if(e=this[a5(0x58e,0x58d)](f,g)){a[a5(0x5b8,0x579)](e);}if(e=this[a5(0x554,0x58d)](g,f)){a['add'](e);}}}}this[a5(0x53b,0x558)]=[...a];}return this[a5(0x55e,0x558)];}[_enD(0x3c7,0x404)](){function a6(a,b){return _enD(a-0x1b,b);}if(!this['_resolutions']){this[a6(0x3d0,0x3c7)]=[this['removeDependencyCycleEffectResolutionClass'][a6(0x39d,0x381)]()];}return this[a6(0x3d0,0x3b1)];}}__decorate([prototypeValue(_enD(0x394,0x362))],CycleEffect[_enD(0x3aa,0x38f)],'type',void 0x0);__decorate([prototypeValue(CycleEffectDescription)],CycleEffect['prototype'],_enD(0x3c3,0x3cc),void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect[_enD(0x3aa,0x37a)],_enD(0x350,0x35c),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function g(a,b){return _enb(b- -0x309,a);}while(!![]){try{const d=parseInt(g(-0x142,-0x13f))/0x1*(-parseInt(g(-0x123,-0x125))/0x2)+parseInt(g(-0x12a,-0x137))/0x3+parseInt(g(-0x12f,-0x12b))/0x4*(-parseInt(g(-0x120,-0x12d))/0x5)+-parseInt(g(-0x137,-0x12f))/0x6*(-parseInt(g(-0x134,-0x129))/0x7)+-parseInt(g(-0x122,-0x124))/0x8*(-parseInt(g(-0x120,-0x12e))/0x9)+-parseInt(g(-0x13f,-0x13e))/0xa*(-parseInt(g(-0x146,-0x13c))/0xb)+-parseInt(g(-0x13c,-0x133))/0xc*(-parseInt(g(-0x122,-0x126))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe1ad2));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import _enc from'@bryntum/core-thin/lib/mixin/Delayable.js';import _end from'@bryntum/core-thin/lib/mixin/Events.js';import _ene from'@bryntum/core-thin/lib/data/Model.js';class EventsWrapper extends Mixin([],_end){}class DelayableWrapper extends Mixin([],_enc){}class AbstractProjectMixin extends Mixin([EventsWrapper,DelayableWrapper,_ene],a=>{const b=a[h(0x47f,0x476)];function h(a,b){return _enb(a-0x2ac,b);}class c extends a{constructor(){super(...arguments);this['isRestoringData']=![];}get['isRepopulatingStores'](){return![];}get['isInitialCommit'](){function i(a,b){return h(a- -0x49e,b);}return!this[i(-0x23,-0x1f)]||this[i(-0x26,-0x29)];}[h(0x47c,0x488)](d={}){this['isInitialCommitPerformed']=![];this[j(0x2c8,0x2c2)]=![];this[j(0x2c0,0x2c5)]=![];this[j(0x2c2,0x2ba)]=![];const e=j(0x2b5,0x2bc)in d?d[j(0x2c5,0x2bc)]:!![];const f=j(0x2c8,0x2cb)in d?d[j(0x2d4,0x2cb)]:![];this[j(0x2bd,0x2c7)]=j(0x2d5,0x2c7)in d?d[j(0x2be,0x2c7)]:0x24b675dc00;delete d['maxCalendarRange'];delete d[j(0x2bf,0x2bc)];function j(a,b){return h(b- -0x1be,a);}delete d[j(0x2c4,0x2cb)];b['construct'][j(0x2d8,0x2d4)](this,d);this[j(0x2ba,0x2bc)]=e;this[j(0x2cf,0x2cb)]=f;}['repopulateStore'](d){}[h(0x48e,0x486)](){}[h(0x47d,0x487)](d,e,f){e(...f);}['attachStore'](d){}['detachStore'](d){}async[h(0x48b,0x485)](){function k(a,b){return h(b- -0x271,a);}throw new Error(k(0x207,0x210));}[h(0x484,0x47f)](){function l(a,b){return h(b-0x9a,a);}throw new Error(l(0x51d,0x51b));}[h(0x48d,0x49c)](){function m(a,b){return h(a- -0x2ff,b);}throw new Error(m(0x182,0x190));}}return c;}){}export{AbstractProjectMixin,DelayableWrapper,EventsWrapper};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ca;let f=c[d];return f;};return _enb(a,b);}function _ena(){const n=['383397kBrQQe','getStm','repopulateReplica','474253RvGYEb','67726vTDkMV','12016bSKvyq','call','20dblxIX','2175220jxTNCd','hasLoadedDataToCommit','22bZpczf','silenceInitialCommit','isInitialCommitPerformed','construct','deferUntilRepopulationIfNeeded','112671lugHYf','prototype','isLoadingInlineData','Abstract\x20method\x20called','408bQTwjg','isWritingData','isEngineReady','maxCalendarRange','102uJyNvA','747cNoRQC','5835490zvUzdj','adjustDurationToDST','4BTRCgE','commitAsync'];_ena=function(){return n;};return _ena();}
1
+ (function(a,b){function h(a,b){return _enb(b- -0x310,a);}const c=a();while(!![]){try{const d=-parseInt(h(-0x1be,-0x1b2))/0x1+-parseInt(h(-0x1a1,-0x19d))/0x2+parseInt(h(-0x1a9,-0x1a5))/0x3+parseInt(h(-0x1a5,-0x19e))/0x4+-parseInt(h(-0x1b2,-0x1b4))/0x5*(parseInt(h(-0x1b7,-0x1af))/0x6)+-parseInt(h(-0x19b,-0x19a))/0x7+parseInt(h(-0x19b,-0x19c))/0x8*(parseInt(h(-0x1a7,-0x19b))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x4aa51));function _ena(){const o=['376EtQiJE','168039HMzTjP','2356851ViNZEE','isLoadingInlineData','10yMswIG','isEngineReady','452103YmpVOh','detachStore','preventSilencingOnIssueResolve','1523514FMFMNy','isRestoringData','isInitialCommitPerformed','construct','silenceInitialCommit','adjustDurationToDST','hasLoadedDataToCommit','repopulateStore','isWritingData','getStm','1415712iqOVnZ','Abstract\x20method\x20called','maxCalendarRange','commitAsync','call','isRepopulatingStores','prototype','2221648EVjJJV','604948HDtmjZ'];_ena=function(){return o;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import _enc from'@bryntum/core-thin/lib/mixin/Delayable.js';import _end from'@bryntum/core-thin/lib/mixin/Events.js';import _ene from'@bryntum/core-thin/lib/data/Model.js';class EventsWrapper extends Mixin([],_end){}class DelayableWrapper extends Mixin([],_enc){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x15b;let f=c[d];return f;};return _enb(a,b);}class AbstractProjectMixin extends Mixin([EventsWrapper,DelayableWrapper,_ene],a=>{function i(a,b){return _enb(b-0x338,a);}const b=a[i(0x49f,0x4a9)];class c extends a{constructor(){function j(a,b){return i(b,a- -0x38b);}super(...arguments);this[j(0x10f,0x10d)]=![];}get[i(0x4ac,0x4a8)](){return![];}get['isInitialCommit'](){function k(a,b){return i(a,b- -0x6d);}return!this[k(0x421,0x42e)]||this[k(0x426,0x432)];}[i(0x4a8,0x49c)](d={}){this[l(0x102,0xfa)]=![];this[l(0xf4,0xf2)]=![];this[l(0x10d,0x100)]=![];this[l(0x102,0xfe)]=![];const e=l(0x101,0xfc)in d?d[l(0x10a,0xfc)]:!![];const f=l(0xef,0xf7)in d?d['preventSilencingOnIssueResolve']:!![];const g='adjustDurationToDST'in d?d['adjustDurationToDST']:![];this[l(0x10a,0x104)]=l(0x10a,0x104)in d?d[l(0xf7,0x104)]:0x24b675dc00;delete d['maxCalendarRange'];delete d[l(0x102,0xfc)];delete d['preventSilencingOnIssueResolve'];function l(a,b){return i(a,b- -0x3a1);}delete d[l(0xf4,0xfd)];b[l(0x102,0xfb)][l(0x114,0x106)](this,d);this['silenceInitialCommit']=e;this[l(0xf0,0xf7)]=f;this[l(0x10b,0xfd)]=g;}[i(0x4a5,0x4a0)](d){}['repopulateReplica'](){}['deferUntilRepopulationIfNeeded'](d,e,f){e(...f);}['attachStore'](d){}[i(0x499,0x497)](d){}async[i(0x4a7,0x4a6)](){function m(a,b){return i(a,b- -0x53c);}throw new Error(m(-0x98,-0x98));}[i(0x4a2,0x495)](){function n(a,b){return i(b,a- -0x24b);}throw new Error(n(0x259,0x261));}[i(0x4ab,0x4a2)](){throw new Error('Abstract\x20method\x20called');}}return c;}){}export{AbstractProjectMixin,DelayableWrapper,EventsWrapper};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function l(a,b){return _enb(b- -0x37c,a);}while(!![]){try{const d=-parseInt(l(-0x165,-0x156))/0x1*(parseInt(l(-0x133,-0x14f))/0x2)+parseInt(l(-0x15c,-0x16b))/0x3*(parseInt(l(-0x197,-0x186))/0x4)+parseInt(l(-0x14a,-0x15d))/0x5*(-parseInt(l(-0x16e,-0x163))/0x6)+-parseInt(l(-0x16e,-0x17c))/0x7*(-parseInt(l(-0x18d,-0x17d))/0x8)+-parseInt(l(-0x17e,-0x17e))/0x9*(parseInt(l(-0x176,-0x173))/0xa)+parseInt(l(-0x16f,-0x17b))/0xb*(parseInt(l(-0x167,-0x171))/0xc)+-parseInt(l(-0x162,-0x161))/0xd*(parseInt(l(-0x160,-0x179))/0xe);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x9c56d));var __decorate=function(a,b,e,f){function m(a,b){return _enb(b-0x3f,a);}var g=arguments[m(0x23b,0x243)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===m(0x25a,0x25f)&&typeof Reflect['decorate']===m(0x266,0x26e))h=Reflect[m(0x271,0x26b)](a,b,e,f);else for(var k=a[m(0x24f,0x243)]-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}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';function _ena(){const A=['scheduleMixinClass','10072RynSLp','resolved','phase2','boolean','event','normalizeUnit','phase1','calculateProjectedDuration','236349DLYfuL','104QBeABy','638834hvOpMb','408562fjmsjc','unlink','938hdEFCM','length','_latePreSchedule','earlyPreSchedule','pickOpposite','direction','350dyYBkS','_lateSchedule','96PtconJ','return','critical','calculateTotalSlack','isConstrainedAlongDirection','lateStartDate','1416zKNCcQ','earlySchedule','Backward','doCalculateEffectiveStartDateInterval','latePreSchedule','number','calculateLateStartDate','calculateCritical','1268946HoXWvH','endDate','92820ZQlxan','leaveGraph','isFirstPass','prototype','5vPfBQh','object','calculateLateEndDate','start','enterGraph','lateSchedule','slackUnit','20127PnGeCW','totalSlack','string','_earlyPreSchedule','pickDirectionSchedule','onEmptyEffectiveInterval','decorate','42gbNlPX','_earlySchedule','function','phase','constructor','lateEndDate','getProject','startDate'];_ena=function(){return A;};return _ena();}import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedByDependenciesEventMixin}from'../scheduler_pro/ConstrainedByDependenciesEventMixin.js';import{ConstrainedLateScheduleMixin}from'./ConstrainedLateScheduleMixin.js';class ConstrainedLateEventMixin extends Mixin([ConstrainedByDependenciesEventMixin,HasChildrenMixin],a=>{const b=a[n(0x481,0x461)];class c extends a{get[n(0x447,0x449)](){function o(a,b){return n(a,b- -0xc6);}if(this['_earlyPreSchedule']!==void 0x0)return this[o(0x392,0x3a6)];const d=this['constructor'][o(0x389,0x372)];const e=new d({'id':o(0x399,0x383)},null,null,![],!![]);e['event']=this;e[o(0x391,0x3ad)]=o(0x384,0x379);return this[o(0x3ae,0x3a6)]=e;}get[n(0x475,0x455)](){if(this[p(0x6c,0x76)]!==void 0x0)return this['_earlySchedule'];const d=super[p(0x70,0x5a)];function p(a,b){return n(a,b- -0x3fb);}d['phase']=p(0x42,0x40);return this[p(0x67,0x76)]=d;}get[n(0x445,0x458)](){if(this['_latePreSchedule']!==void 0x0)return this[q(0x3fc,0x3dd)];const d=this['constructor'][q(0x3b1,0x3cd)];function q(a,b){return n(a,b- -0x6b);}const e=new d({'id':q(0x3ee,0x3ed)},null,null,![],!![]);e[q(0x3b7,0x3d2)]=this;e['direction']=Direction[q(0x3e2,0x3eb)];e[q(0x3ff,0x408)]='phase1';return this['_latePreSchedule']=e;}get[n(0x470,0x467)](){if(this[r(-0x1be,-0x1c3)]!==void 0x0)return this[r(-0x1b9,-0x1c3)];const d=this[r(-0x1ac,-0x19c)][r(-0x1cf,-0x1d8)];const e=new d({'id':'lateSchedule'},null,null,![],!![]);e[r(-0x1d6,-0x1d3)]=this;e[r(-0x1b2,-0x1c5)]=Direction[r(-0x1a1,-0x1ba)];e[r(-0x184,-0x19d)]='phase2';function r(a,b){return n(a,b- -0x610);}return this['_lateSchedule']=e;}[n(0x46c,0x466)](d){super[s(0x476,0x45a)](d);this[s(0x42c,0x43d)][s(0x447,0x45a)](d);function s(a,b){return n(a,b- -0xc);}this['latePreSchedule'][s(0x465,0x45a)](d);this[s(0x45a,0x45b)][s(0x476,0x45a)](d);}[n(0x468,0x45f)](d){this[t(-0x35,-0x30)][t(-0x45,-0x38)](d);this[t(-0x2d,-0x3f)][t(-0x1c,-0x38)](d);this[t(-0x4f,-0x4e)]['leaveGraph'](d);function t(a,b){return n(a,b- -0x497);}super[t(-0x44,-0x38)](d);}[n(0x425,0x445)](){function u(a,b){return n(a,b-0xb1);}this[u(0x523,0x518)][u(0x4d9,0x4f6)]();this[u(0x4f7,0x509)]['unlink']();this[u(0x4ea,0x4fa)][u(0x4e9,0x4f6)]();super['unlink']();}*['calculateLateStartDate'](){function v(a,b){return n(b,a- -0x4a6);}return yield this[v(-0x3f,-0x4a)]['$'][v(-0x6f,-0x79)];}*[n(0x450,0x464)](){return yield this['lateSchedule']['$']['endDate'];}*[n(0x461,0x451)](){function w(a,b){return n(a,b- -0x5e2);}const d=yield this[w(-0x1ad,-0x18d)]['$'][w(-0x1be,-0x1ab)];const e=yield this[w(-0x169,-0x17b)]['$'][w(-0x19f,-0x1ab)];const f=yield this['earlySchedule']['$'][w(-0x182,-0x185)];const g=yield this[w(-0x163,-0x17b)]['$'][w(-0x18b,-0x185)];const h=yield this['$'][w(-0x173,-0x17a)];let i;if(d&&e){i=yield*this[w(-0x196,-0x1a2)](d,e,h,void 0x0,!![]);}if(f&&g){const j=yield*this[w(-0x1a5,-0x1a2)](f,g,h,void 0x0,!![]);if(j<i)i=j;}return i;}*[n(0x463,0x45b)](){const d=yield this['$'][x(0x3c7,0x3d9)];function x(a,b){return n(b,a- -0xa3);}return typeof d==='number'&&d<=0x0;}*[n(0x453,0x452)](d){return yield*this['pickDirectionSchedule'](d)['isConstrained']();}[n(0x453,0x46d)](d){function y(a,b){return n(a,b- -0x15a);}return d===Direction['Forward']?this[y(0x2e7,0x2fb)]:this['lateSchedule'];}*[n(0x45f,0x46e)](d,e){function z(a,b){return n(b,a- -0x40d);}if(!(yield*e[z(0x53,0x46)]())){const f=this[z(0x69,0x4f)]();if(!f['bwcConflictPostpone']||f['ignoreConstraintsOnConflictDuringSecondPass']){const g=d===z(0x58,0x73)?yield*e[z(0x4a,0x36)](!![],!![]):yield*e['doCalculateEffectiveEndDateInterval'](!![],!![]);if(!g['isIntervalEmpty']()){return{'kind':z(0x2d,0x25),'value':g};}}return{'kind':z(0x42,0x45),'value':yield e[z(0x3d,0x1e)](this)['$'][d===z(0x58,0x51)?z(0x2a,0x12):'endDate']};}return yield*super['onEmptyEffectiveInterval'](d,e);}}function n(a,b){return _enb(b-0x243,a);}c['scheduleMixinClass']=Mixin([a['scheduleMixinClass'],ConstrainedLateScheduleMixin],d=>d);__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c[n(0x46a,0x461)],n(0x44b,0x453),void 0x0);__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c[n(0x457,0x461)],n(0x47b,0x475),void 0x0);__decorate([model_field({'type':n(0x46e,0x459),'persist':![],'calculated':!![]},{'lazy':!![],'persistent':![]})],c['prototype'],'totalSlack',void 0x0);__decorate([model_field({'type':n(0x44e,0x46b),'defaultValue':TimeUnit['Day'],'persist':![]},{'lazy':!![],'converter':_enc[n(0x43d,0x43e)],'persistent':![]})],c[n(0x44f,0x461)],n(0x459,0x468),void 0x0);__decorate([model_field({'type':n(0x433,0x43c),'defaultValue':![],'persist':![],'calculated':!![]},{'persistent':![],'lazy':!![]})],c[n(0x457,0x461)],n(0x460,0x450),void 0x0);__decorate([calculate(n(0x435,0x453))],c[n(0x450,0x461)],n(0x44e,0x45a),null);__decorate([calculate(n(0x462,0x475))],c[n(0x448,0x461)],'calculateLateEndDate',null);__decorate([calculate(n(0x452,0x46a))],c[n(0x46d,0x461)],n(0x46f,0x451),null);__decorate([calculate('critical')],c[n(0x45e,0x461)],n(0x474,0x45b),null);return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1f4;let f=c[d];return f;};return _enb(a,b);}export{ConstrainedLateEventMixin};
1
+ (function(a,b){const c=a();function l(a,b){return _enb(a- -0x2d4,b);}while(!![]){try{const d=-parseInt(l(-0x25b,-0x278))/0x1+parseInt(l(-0x26b,-0x287))/0x2+parseInt(l(-0x269,-0x269))/0x3+-parseInt(l(-0x24d,-0x255))/0x4+-parseInt(l(-0x258,-0x268))/0x5+-parseInt(l(-0x238,-0x256))/0x6+-parseInt(l(-0x240,-0x228))/0x7*(-parseInt(l(-0x255,-0x268))/0x8);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd12cd));var __decorate=function(a,b,e,f){var g=arguments[m(-0x33f,-0x352)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===m(-0x334,-0x341)&&typeof Reflect['decorate']==='function')h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(-0x33f,-0x324)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a- -0x3c9,b);}return g>0x3&&h&&Object[m(-0x32a,-0x333)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedByDependenciesEventMixin}from'../scheduler_pro/ConstrainedByDependenciesEventMixin.js';import{ConstrainedLateScheduleMixin}from'./ConstrainedLateScheduleMixin.js';function _ena(){const B=['isConstrained','_earlyPreSchedule','bwcConflictPostpone','doCalculateEffectiveStartDateInterval','onEmptyEffectiveInterval','endDate','4222116lAvapM','latePreSchedule','phase2','length','lateSchedule','lateStartDate','start','calculateCritical','unlink','pickDirectionSchedule','calculateLateEndDate','slackUnit','scheduleMixinClass','1603egvzXH','object','totalSlack','leaveGraph','calculateProjectedDuration','_latePreSchedule','enterGraph','critical','7461222VAFwuV','normalizeUnit','Day','defineProperty','number','_lateSchedule','ignoreConstraintsOnConflictDuringSecondPass','pickOpposite','Backward','earlySchedule','601764fyVmAk','event','1812204DYvvkR','date','prototype','phase1','direction','string','earlyPreSchedule','calculateLateStartDate','startDate','_earlySchedule','resolved','phase','Forward','getProject','795347QVQvsq','lateEndDate','boolean','6805450kttRje','constructor','calculateTotalSlack','153968gUooiK','`true`\x20if\x20this\x20task\x20is\x20critical\x20and\x20if\x20the\x20task\x20is\x20delayed,\x20the\x20whole\x20project\x20will\x20be\x20delayed.\x20It\x20is\x20a\x20calculated\x20field\x20and\x20can\x20NEVER\x20be\x20set/modified'];_ena=function(){return B;};return _ena();}class ConstrainedLateEventMixin extends Mixin([ConstrainedByDependenciesEventMixin,HasChildrenMixin],a=>{const b=a[n(0x1e,0x1)];class c extends a{get[n(0x22,0x32)](){if(this[o(0x402,0x3ed)]!==void 0x0)return this[o(0x3fc,0x3ed)];const d=this[o(0x3d9,0x3e8)][o(0x3ec,0x3fe)];const e=new d({'id':o(0x3cb,0x3dc)},null,null,![],!![]);e[o(0x3ca,0x3d5)]=this;function o(a,b){return n(b-0x3ba,a);}e[o(0x3cb,0x3e1)]=o(0x3be,0x3d9);return this['_earlyPreSchedule']=e;}get['earlySchedule'](){if(this['_earlySchedule']!==void 0x0)return this['_earlySchedule'];const d=super[p(-0x315,-0x31a)];d[p(-0x31f,-0x30c)]=p(-0x2ff,-0x2f9);function p(a,b){return n(b- -0x333,a);}return this[p(-0x315,-0x30e)]=d;}get[n(0x39,0x38)](){function q(a,b){return n(a-0x42,b);}if(this[q(0x8c,0x85)]!==void 0x0)return this[q(0x8c,0xa2)];const d=this[q(0x70,0x5f)][q(0x86,0x6c)];const e=new d({'id':'latePreSchedule'},null,null,![],!![]);e[q(0x5d,0x7c)]=this;e['direction']=Direction[q(0x5a,0x76)];e['phase']=q(0x61,0x4e);return this[q(0x8c,0x83)]=e;}get[n(0x3c,0x2a)](){if(this[r(-0x168,-0x175)]!==void 0x0)return this[r(-0x168,-0x14e)];const d=this['constructor'][r(-0x176,-0x15e)];const e=new d({'id':r(-0x17e,-0x177)},null,null,![],!![]);e[r(-0x19f,-0x1b9)]=this;e[r(-0x19a,-0x17c)]=Direction[r(-0x1a2,-0x1b9)];e[r(-0x193,-0x1a5)]=r(-0x180,-0x16e);function r(a,b){return n(a- -0x1ba,b);}return this[r(-0x168,-0x157)]=e;}['enterGraph'](d){super[s(0x1f6,0x1da)](d);function s(a,b){return n(a-0x1ab,b);}this[s(0x1cd,0x1d7)][s(0x1f6,0x1e7)](d);this[s(0x1e4,0x1c5)][s(0x1f6,0x208)](d);this[s(0x1e7,0x1f6)][s(0x1f6,0x1e4)](d);}[n(0x48,0x34)](d){this[t(0x2ae,0x2a3)][t(0x2b9,0x2af)](d);this['latePreSchedule'][t(0x2cb,0x2af)](d);this['earlyPreSchedule'][t(0x2c1,0x2af)](d);function t(a,b){return n(b-0x267,a);}super['leaveGraph'](d);}[n(0x40,0x39)](){this[u(-0x101,-0x102)][u(-0xfd,-0x100)]();function u(a,b){return n(a- -0x13d,b);}this['latePreSchedule']['unlink']();this[u(-0x11b,-0x12a)]['unlink']();super[u(-0xfd,-0xf5)]();}*[n(0x23,0x30)](){return yield this['lateSchedule']['$']['startDate'];}*[n(0x42,0x47)](){function v(a,b){return n(b- -0x2b7,a);}return yield this['lateSchedule']['$'][v(-0x27c,-0x280)];}*[n(0x2f,0x4e)](){const d=yield this['earlySchedule']['$'][w(0x3f9,0x3dc)];const e=yield this['lateSchedule']['$'][w(0x3f9,0x3e0)];const f=yield this['earlySchedule']['$']['endDate'];const g=yield this['lateSchedule']['$']['endDate'];const h=yield this['$'][w(0x418,0x40a)];function w(a,b){return n(a-0x3d5,b);}let i;if(d&&e){i=yield*this[w(0x41e,0x416)](d,e,h,void 0x0,!![]);}if(f&&g){const j=yield*this[w(0x41e,0x436)](f,g,h,void 0x0,!![]);if(j<i)i=j;}return i;}*[n(0x3f,0x20)](){const d=yield this['$'][x(-0x10c,-0x120)];function x(a,b){return n(a- -0x153,b);}return typeof d===x(-0x102,-0xea)&&d<=0x0;}*['isConstrainedAlongDirection'](d){function y(a,b){return n(a- -0xb6,b);}return yield*this['pickDirectionSchedule'](d)[y(-0x84,-0x85)]();}[n(0x41,0x42)](d){function z(a,b){return n(a- -0x147,b);}return d===Direction[z(-0x11f,-0x12c)]?this[z(-0x12e,-0x14c)]:this[z(-0x10b,-0x120)];}*[n(0x36,0x2f)](d,e){if(!(yield*e['isFirstPass']())){const f=this[A(0x381,0x375)]();if(!f[A(0x38c,0x37b)]||f[A(0x3ab,0x3a9)]){const g=d==='start'?yield*e[A(0x38d,0x39f)](!![],!![]):yield*e['doCalculateEffectiveEndDateInterval'](!![],!![]);if(!g['isIntervalEmpty']()){return{'kind':A(0x37e,0x366),'value':g};}}return{'kind':'return','value':yield e[A(0x3ac,0x3ab)](this)['$'][d===A(0x396,0x391)?A(0x37c,0x395):A(0x38f,0x3a5)]};}function A(a,b){return n(a-0x358,b);}return yield*super[A(0x38e,0x372)](d,e);}}c[n(0x44,0x30)]=Mixin([a[n(0x44,0x5d)],ConstrainedLateScheduleMixin],d=>d);__decorate([model_field({'type':n(0x1d,-0x1),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c[n(0x1e,0x3a)],n(0x3d,0x50),void 0x0);__decorate([model_field({'type':n(0x1d,0x1d),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c[n(0x1e,0x2b)],'lateEndDate',void 0x0);__decorate([model_field({'type':n(0x51,0x4c),'persist':![],'calculated':!![]},{'lazy':!![],'persistent':![]})],c['prototype'],n(0x47,0x3a),void 0x0);__decorate([model_field({'type':n(0x21,0x36),'defaultValue':TimeUnit[n(0x4f,0x38)],'persist':![]},{'lazy':!![],'converter':_enc[n(0x4e,0x41)],'persistent':![]})],c[n(0x1e,0x7)],n(0x43,0x41),void 0x0);__decorate([model_field({'type':n(0x2c,0x22),'defaultValue':![],'persist':![],'calculated':!![],'description':n(0x31,0x45)},{'persistent':![],'lazy':!![]})],c[n(0x1e,0x19)],n(0x4c,0x51),void 0x0);function n(a,b){return _enb(a- -0x4f,b);}__decorate([calculate(n(0x3d,0x52))],c['prototype'],'calculateLateStartDate',null);__decorate([calculate(n(0x2b,0x3d))],c['prototype'],n(0x42,0x46),null);__decorate([calculate(n(0x47,0x5f))],c[n(0x1e,0x26)],n(0x2f,0x4c),null);__decorate([calculate(n(0x4c,0x43))],c[n(0x1e,0x2a)],n(0x3f,0x59),null);return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x67;let f=c[d];return f;};return _enb(a,b);}export{ConstrainedLateEventMixin};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function i(a,b){return _enb(b-0x373,a);}while(!![]){try{const d=-parseInt(i(0x46e,0x463))/0x1*(parseInt(i(0x453,0x46a))/0x2)+parseInt(i(0x461,0x47a))/0x3+parseInt(i(0x45b,0x45c))/0x4*(parseInt(i(0x465,0x468))/0x5)+-parseInt(i(0x448,0x45b))/0x6+-parseInt(i(0x471,0x459))/0x7*(-parseInt(i(0x491,0x47c))/0x8)+parseInt(i(0x489,0x472))/0x9*(parseInt(i(0x467,0x456))/0xa)+-parseInt(i(0x46a,0x46c))/0xb*(parseInt(i(0x47e,0x482))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x45b12));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ChronoModelMixin}from'../../../chrono/ChronoModelMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xdf;let f=c[d];return f;};return _enb(a,b);}import{ConflictEffect}from'../../../chrono/Conflict.js';function _ena(){const y=['calculation','calendarManagerStore','onCycleSchedulingIssue','298632YZnizj','commitAsync','setStoreCalculations','eventStore','prototype','onEmptyCalendarSchedulingIssue','modelClass','1220KcUiBz','isInitialCommitPerformed','replica','7847PcAgzJ','setModelCalculations','760110ONFQiP','1083332jcgCNJ','delayedCalculationPromise','isDelayingCalculation','trigger','Cancel','hasListener','enterReplica','3997lTAFEp','type','$calculations','getSchedulingIssueEventArguments','assign','5BwjiSx','setCalculations','142OIngOV','setRecordCalculations','286ZNjYfc','onSchedulingIssueCall','invalidateTemporaryIndices','$entity','dependencyStore','now','6723HEWMXG','constructor','assignmentStore','keys','conflict','forEach','resourceStore','$skeleton','1332120XTjHJN','project','3832rxciDL','first','repopulateReplica'];_ena=function(){return y;};return _ena();}import{AbstractProjectMixin}from'../AbstractProjectMixin.js';import{EffectResolutionResult}from'../../../chrono/SchedulingIssueEffect.js';class ChronoAbstractProjectMixin extends Mixin([ChronoModelMixin,AbstractProjectMixin],a=>{const b=a[j(-0x7d,-0x6d)];class c extends a{get[j(-0x72,-0x83)](){function k(a,b){return j(a-0x411,b);}return Boolean(this['delayEnteringReplica']||this[k(0x39e,0x3a1)]);}['getGraph'](){function l(a,b){return j(b-0x24c,a);}return this[l(0x1cc,0x1d4)];}['beforeCommitAsync'](){return null;}[j(-0x6e,-0x81)](d){}['acceptChanges'](){}['finalizeCommitHook'](d){return![];}[j(-0x62,-0x65)](){}async[j(-0x4d,-0x34)](){function m(a,b){return j(b-0x90,a);}if(this['delayedCalculationPromise']){return this[m(0x30,0x1d)];}else{if(this[m(0x16,0x18)]){return this[m(0x24,0x18)][m(0x5a,0x43)]();}else{this[m(0x28,0x17)]=!![];}}}[j(-0x6a,-0x7e)](d,e,f,g){function n(a,b){return j(a-0x48e,b);}const h=[d[n(0x422,0x42e)],{'continueWithResolutionResult':f,'schedulingIssue':d}];if(d instanceof ConflictEffect)h[0x1][n(0x434,0x433)]=d;return h;}async[j(-0x63,-0x4c)](d,e){if(d['type']&&this[o(-0x1c9,-0x1cd)](d[o(-0x1ce,-0x1ca)])){return new Promise((f,g)=>{function p(a,b){return o(b,a-0x68d);}this[p(0x4be,0x4b7)](...this[p(0x4c5,0x4de)](d,e,f,g));});}function o(a,b){return j(b- -0x15e,a);}return EffectResolutionResult[o(-0x1b6,-0x1ce)];}async[j(-0x4f,-0x51)](d,e){function q(a,b){return j(b-0x17e,a);}return this[q(0x120,0x11b)](d,e);}async[j(-0x7c,-0x72)](d,e){return this['onSchedulingIssueCall'](d,e);}async['onConflictSchedulingIssue'](d,e){function r(a,b){return j(a- -0x27b,b);}return this[r(-0x2de,-0x2f5)](d,e);}[j(-0x76,-0x73)](d,e){function s(a,b){return j(b- -0x23e,a);}if(!e)return;const f={};for(const g in e){f[g]=d['prototype'][s(-0x2aa,-0x2a9)][g];}Object[s(-0x295,-0x2a7)](d[s(-0x2a4,-0x2bb)]['$calculations'],e);return f;}['setRecordCalculations'](d,e){function t(a,b){return j(b- -0x25,a);}const f=this[t(-0xab,-0x9b)](d[t(-0x80,-0x82)],e);const g=d[t(-0x81,-0x86)][t(-0x64,-0x7c)];Object[t(-0x72,-0x80)](e)[t(-0x80,-0x7e)](h=>{function u(a,b){return t(a,b-0x559);}g[h][u(0x4ae,0x4b7)][u(0x4cf,0x4e3)]=d[e[h]];});return f;}[j(-0x4c,-0x4a)](d,e){if(!e)return;function v(a,b){return j(b-0x290,a);}const f=d[v(0x23e,0x23d)];if(f){return this[v(0x212,0x22b)](f,e);}else{return this['setModelCalculations'](d[v(0x207,0x215)],e);}}async[j(-0x67,-0x65)](d){this[w(0xef,0xfe)]&&await this['commitAsync']();const e={};const f={'tasks':this[w(0xe9,0xe8)],'events':this[w(0xe9,0xf0)],'dependencies':this[w(0x107,0x106)],'resources':this[w(0x10f,0x103)],'assignments':this[w(0x10b,0xf3)],'calendars':this[w(0x117,0x11f)]};Object[w(0x10c,0x10f)](f)[w(0x10e,0x10a)](h=>{function x(a,b){return w(b- -0x17f,a);}if(d[h]){e[h]=this[x(-0x79,-0x64)](f[h],d[h]);}});let g=d[w(0x112,0x107)];function w(a,b){return j(a-0x167,b);}if(g){e['project']=this[w(0x102,0x113)](this,g);}this['replica']&&this[w(0x115,0x115)][w(0x108,0x101)]();this[w(0xef,0x105)]&&await this[w(0x11a,0x121)]();return e;}}function j(a,b){return _enb(a- -0x15d,b);}return c;}){}export{ChronoAbstractProjectMixin};
1
+ (function(a,b){const c=a();function i(a,b){return _enb(a- -0x2c,b);}while(!![]){try{const d=-parseInt(i(0x16c,0x165))/0x1+-parseInt(i(0x16d,0x16f))/0x2+parseInt(i(0x172,0x171))/0x3*(parseInt(i(0x154,0x15a))/0x4)+parseInt(i(0x177,0x189))/0x5+parseInt(i(0x161,0x14c))/0x6+parseInt(i(0x152,0x160))/0x7+-parseInt(i(0x175,0x182))/0x8*(parseInt(i(0x157,0x152))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x50381));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ChronoModelMixin}from'../../../chrono/ChronoModelMixin.js';function _ena(){const z=['invalidateTemporaryIndices','calculation','eventStore','3211054CLhVVW','onSchedulingIssueCall','60568gPCcsA','assign','delayEnteringReplica','999cOPfIB','first','trigger','keys','repopulateReplica','setStoreCalculations','isDelayingCalculation','calendarManagerStore','acceptChanges','Resume','1312680eSsTlr','assignmentStore','replica','type','getGraph','setCalculations','enterReplica','onEmptyCalendarSchedulingIssue','$calculations','setRecordCalculations','$skeleton','572292SlVPvQ','766644SQzPgU','delayedCalculationPromise','project','commitAsync','beforeCommitAsync','129LHuBsF','finalizeCommitHook','setModelCalculations','42560HGmdxI','onConflictSchedulingIssue','2730515clgzJy','forEach','dependencyStore','conflict','prototype','now'];_ena=function(){return z;};return _ena();}import{ConflictEffect}from'../../../chrono/Conflict.js';import{AbstractProjectMixin}from'../AbstractProjectMixin.js';import{EffectResolutionResult}from'../../../chrono/SchedulingIssueEffect.js';class ChronoAbstractProjectMixin extends Mixin([ChronoModelMixin,AbstractProjectMixin],a=>{const b=a[j(0x31a,0x310)];class c extends a{get[j(0x337,0x320)](){function k(a,b){return j(b,a-0x9d);}return Boolean(this[k(0x3b6,0x3b1)]||this[k(0x3ce,0x3cb)]);}[j(0x325,0x328)](){return this['replica'];}[j(0x325,0x334)](){return null;}[j(0x329,0x32a)](d){}[j(0x32b,0x322)](){}[j(0x348,0x336)](d){return![];}[j(0x31a,0x312)](){}async[j(0x348,0x333)](){function l(a,b){return j(b,a-0x52);}if(this['delayedCalculationPromise']){return this[l(0x383,0x38c)];}else{if(this['replica']){return this[l(0x378,0x386)][l(0x385,0x391)]();}else{this['isInitialCommitPerformed']=!![];}}}['getSchedulingIssueEventArguments'](d,e,f,g){const h=[d['type'],{'continueWithResolutionResult':f,'schedulingIssue':d}];function m(a,b){return j(a,b- -0xea);}if(d instanceof ConflictEffect)h[0x1][m(0x235,0x225)]=d;return h;}[j(0x321,0x316)](d,e){if(d[n(0x258,0x251)]&&this['hasListener'](d[n(0x246,0x251)])){return new Promise((f,g)=>{function o(a,b){return n(b,a- -0x4a7);}this[o(-0x261,-0x259)](...this['getSchedulingIssueEventArguments'](d,e,h=>{function p(a,b){return o(b-0x1a2,a);}if(h===EffectResolutionResult[p(-0xb0,-0xb8)]){e['hasResolvedSchedulingIssue']=!![];}return f(h);},g));});}function n(a,b){return j(a,b- -0xd6);}return EffectResolutionResult['Cancel'];}['onCycleSchedulingIssue'](d,e){function q(a,b){return j(a,b-0x231);}return this[q(0x531,0x547)](d,e);}[j(0x316,0x32b)](d,e){function r(a,b){return j(b,a- -0x206);}return this[r(0x110,0x106)](d,e);}[j(0x331,0x339)](d,e){function s(a,b){return j(b,a- -0x489);}return this[s(-0x173,-0x16a)](d,e);}[j(0x336,0x337)](d,e){if(!e)return;const f={};for(const g in e){f[g]=d[t(0x110,0x11c)][t(0x144,0x138)][g];}function t(a,b){return j(a,b- -0x1f4);}Object[t(0x136,0x124)](d[t(0x119,0x11c)][t(0x128,0x138)],e);return f;}[j(0x327,0x32d)](d,e){const f=this[u(0x4f,0x54)](d['constructor'],e);function u(a,b){return j(a,b- -0x2e3);}const g=d['$entity'][u(0x45,0x4b)];Object[u(0x32,0x3a)](e)['forEach'](h=>{function v(a,b){return u(b,a- -0x295);}g[h][v(-0x268,-0x26e)][v(-0x265,-0x270)]=d[e[h]];});return f;}[j(0x31f,0x31f)](d,e){if(!e)return;const f=d[w(0x338,0x34e)];function w(a,b){return j(a,b-0x33);}if(f){return this[w(0x34b,0x360)](f,e);}else{return this[w(0x37b,0x36a)](d['modelClass'],e);}}async[j(0x329,0x329)](d){function x(a,b){return j(b,a- -0x3e6);}this[x(-0xc0,-0xba)]&&await this['commitAsync']();const e={};const f={'tasks':this[x(-0xd2,-0xbc)],'events':this[x(-0xd2,-0xcb)],'dependencies':this[x(-0xaa,-0xbf)],'resources':this['resourceStore'],'assignments':this[x(-0xc1,-0xc3)],'calendars':this[x(-0xc5,-0xc9)]};Object[x(-0xc9,-0xd5)](f)[x(-0xab,-0xa9)](h=>{function y(a,b){return x(b- -0xe8,a);}if(d[h]){e[h]=this[y(-0x1af,-0x1af)](f[h],d[h]);}});let g=d[x(-0xb4,-0xb6)];if(g){e[x(-0xb4,-0xb2)]=this[x(-0xb9,-0xc8)](this,g);}this[x(-0xc0,-0xd7)]&&this[x(-0xc8,-0xd1)][x(-0xd5,-0xe7)]();this[x(-0xc0,-0xae)]&&await this[x(-0xb3,-0x9d)]();return e;}}function j(a,b){return _enb(b-0x197,a);}return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x178;let f=c[d];return f;};return _enb(a,b);}export{ChronoAbstractProjectMixin};