@bryntum/engine-thin-trial 7.2.1 → 7.2.2

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.
@@ -1 +1 @@
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
+ (function(a,b){const c=a();function j(a,b){return _enb(b-0x4b,a);}while(!![]){try{const d=-parseInt(j(0x218,0x218))/0x1+parseInt(j(0x25c,0x220))/0x2*(parseInt(j(0x1f9,0x206))/0x3)+-parseInt(j(0x1d3,0x1f7))/0x4*(-parseInt(j(0x240,0x256))/0x5)+parseInt(j(0x238,0x1f5))/0x6+-parseInt(j(0x229,0x20f))/0x7*(-parseInt(j(0x209,0x231))/0x8)+parseInt(j(0x230,0x232))/0x9*(parseInt(j(0x252,0x225))/0xa)+-parseInt(j(0x241,0x22e))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x7efd3));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';function _ena(){const aj=['reason','autoCommitMode','cycle','autoCommitTimeoutId','clearRejected','push','propagate','warn','startNewEpoch','addEdge','topRevision','readAsync','78JYqepp','$activeTransaction','onComputationCycle','variable','forEach','hasPendingAutoCommit','baseRevisionTentative','initialize','compactRevisions','2245817dmSEKq','baseRevisionStable','onComputationCycleHandler','observe','isCommitting','delete','finalizeCommit','message','baseRevision','730081ojtvZA','addListener','onWriteDuringCommit','write','eachReachableRevision','isWritingPreviousData','$followingRevision','throw','23792BjPBIQ','previous','level','finally','origin','10tyBBAJ','isJustCleared','length','isInitialCommit','clearBranch','followingRevision','clearProperties','walkContext','dirty','8526793drAxHL','reject','autoCommitHandler','16zOpCIV','1941633VeVwbd','ongoing','startOrigin','getValue','proposedValue','identifier','lazy','autoCommit','trigger','identifierNamed','candidate','scheduleAutoCommit','proposedArguments','activeTransaction','ignore','new','variableNamed','then','constructor','value','referenceCount','cleanup','read','commit','getActiveEntry','from','scope','previousAxis','selfDependent','resolve','listeners','transactionClass','enableProgressNotifications','Adding\x20identifier\x20during\x20commit','sync','addIdentifier','5lNSEJu','log','writtenValue','getProposedValue','continueCalculation','undo','rejectedWith','addCycle','proposedIsPrevious','set','unshift','clear','redo','hasIdentifier','writes','Computation\x20cycle:\x0a','handlers','observeContext','onPropagationProgressNotification','get','reachableCount','unScheduleAutoCommit','_isInitialCommit','readProposedOrPrevious','doCommitAsync','hasValue','Invalid\x20compact\x20operation','historyLimit','markAndSweep','Removing\x20identifier\x20during\x20commit','entries','proposedArgs','Graph\x20cleared','commitAsync','hasProposedValue','readPrevious','1446972dCASFY','name','2470136mhnRid','readPreviousAsync','isShadow'];_ena=function(){return aj;};return _ena();}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x188;let f=c[d];return f;};return _enb(a,b);}function _enl(a,b){return _enb(b- -0x109,a);}class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b-0x1e3,a);}this[k(0x3b6,0x379)]=[];}[_enl(0x119,0xe6)](a){function m(a,b){return _enl(b,a- -0x181);}for(let b=0x0;b<this['handlers'][m(-0xae,-0xbc)];b++)this[m(-0xf4,-0xd9)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[n(0x236,0x23a)]=void 0x0;this[n(0x244,0x245)]=Revision[n(0x2b1,0x26f)]();this[n(0x1fe,0x232)]=void 0x0;this['historyLimit']=0x0;this[n(0x256,0x27e)]=new Map();this[n(0x270,0x24b)]=0x0;this[n(0x200,0x235)]=void 0x0;this[n(0x223,0x241)]=![];this[n(0x296,0x280)]=![];this[n(0x25c,0x261)]=Promise[n(0x254,0x27d)]();this[n(0x21b,0x215)]=!![];this[n(0x20f,0x22b)]=null;this['autoCommit']=![];function n(a,b){return _enl(a,b-0x182);}this[n(0x263,0x229)]=n(0x2a0,0x282);this[n(0x294,0x25e)]=null;this[n(0x263,0x248)]=n(0x28a,0x24d);this[n(0x25e,0x236)]=n(0x276,0x24d);this[n(0x2a8,0x27f)]=Transaction;this[n(0x239,0x254)]=![];this['$followingRevision']=void 0x0;}[_enl(0xde,0xb9)](...a){super[o(0x41c,0x431)](...a);if(!this['topRevision'])this[o(0x46a,0x428)]=this[o(0x420,0x43b)];if(this[o(0x421,0x45d)]){this[o(0x45a,0x454)]=this['autoCommitMode']===o(0x492,0x478)?b=>this['commit'](b):async b=>this[o(0x418,0x416)](b);}function o(a,b){return _enl(a,b-0x378);}this[o(0x443,0x411)]();}[_enl(0xad,0xb7)](){function p(a,b){return _enl(b,a-0x39a);}return this[p(0x443,0x42c)]!==null;}get['dirty'](){return this['activeTransaction']['dirty'];}[_enl(0x82,0x88)](){function q(a,b){return _enl(b,a- -0x218);}this[q(-0x13d,-0x15d)]();this[q(-0x186,-0x168)]();this[q(-0x155,-0x112)][q(-0x120,-0x137)]&&this[q(-0x155,-0x187)][q(-0x120,-0x14c)][q(-0x190,-0x1b1)]();this[q(-0x155,-0x173)][q(-0x14b,-0x16f)]=null;this[q(-0x11c,-0x10e)][q(-0x190,-0x157)]();this[q(-0x168,-0x17e)]=this['baseRevision'];this[q(-0x14e,-0x124)]=void 0x0;this[q(-0x165,-0x152)]=void 0x0;this[q(-0x17f,-0x13c)]();this['isJustCleared']=!![];}[_enl(0xfb,0xd5)](){this[r(0x427,0x3e5)]();this[r(0x3de,0x3de)]();function r(a,b){return _enl(b,a-0x34c);}for(const [a,b]of this[r(0x414,0x3ea)]()){if(b)a['reachableCount']--;a[r(0x43e,0x446)]--;}this[r(0x448,0x430)]['clear']();this['topRevision']=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x3ff,0x3c2)]=void 0x0;}*['eachReachableRevision'](){let a=!![];let b=0x0;function s(a,b){return _enl(a,b- -0x28d);}for(const c of this[s(-0x1ef,-0x1dd)][s(-0x176,-0x194)]()){yield[c,a||b<this[s(-0x22b,-0x1f5)]];if(c===this[s(-0x20c,-0x1ca)]){a=![];}else{if(!a)b++;}}}get[_enl(0x9a,0xd4)](){function t(a,b){return _enl(b,a-0x34e);}return this[t(0x3e1,0x3a2)];}set['isInitialCommit'](a){this['_isInitialCommit']=a;}[_enl(0x5a,0x99)](){let a;const b=[];for(const [c,d]of this['eachReachableRevision']()){if(d){c[u(0x2,0x2e)]++;a=c;}else b[u(0x1c,0xe)](c);c[u(0x63,0x5d)]++;}b[u(-0x8,0x1b)](a);function u(a,b){return _enl(b,a- -0x8f);}for(let e=b[u(0x44,0x21)]-0x1;e>=0x1&&b[e][u(0x2,-0x10)]===0x0;e--){this[u(0x2b,-0x2)](b[e-0x1],b[e]);}}[_enl(0xe6,0xba)](a,b){if(b['reachableCount']>0x0||a[v(0xfe,0x11f)]!==b)throw new Error(v(0xc8,0xae));if(b[v(0x123,0x105)]<=0x1){for(const [c,d]of a[v(0x129,0x160)]){if(d[v(0x112,0x137)]()===TombStone){b['scope'][v(0xf1,0x12b)](c);}else{const e=b[v(0x129,0x155)]['get'](c);if(d[v(0x101,0xc9)]===d){if(e){e[v(0xb9,0xf4)]();e[v(0x108,0xf3)]();}}else if(e&&d[v(0x101,0xcd)]===e){d['mergePreviousOrigin'](a[v(0x129,0x13c)]);}else if(c[v(0x115,0x12b)]&&!d[v(0x101,0xc2)]&&e&&e[v(0x101,0xc6)]){d[v(0x111,0xdf)]()[v(0x113,0xd7)]=e[v(0x101,0x101)][v(0x122,0x119)]!==void 0x0?e['origin'][v(0x122,0x11e)]:e[v(0x101,0x13a)][v(0x113,0x105)];}d['previous']=void 0x0;b[v(0x129,0x137)][v(0xb7,0x9e)](c,d);}}copySetInto(a['selfDependent'],b[v(0x12b,0x137)]);a[v(0x129,0x158)]=b['scope'];b[v(0x129,0x117)]=null;}else{a[v(0x129,0xf1)]=new Map(concat(b['scope'],a[v(0x129,0x162)]));a[v(0x12b,0x120)]=new Set(concat(b[v(0x12b,0x165)],a[v(0x12b,0x159)]));b['referenceCount']--;}function v(a,b){return _enl(b,a-0x31);}a[v(0xfe,0xff)]=null;}get[_enl(0xef,0xd6)](){if(this[w(0x494,0x4af)]!==void 0x0)return this[w(0x494,0x469)];const a=Array[w(0x4c1,0x4d4)](this[w(0x47a,0x4ad)][w(0x4c3,0x4ae)]());const b=[];for(let c=a[w(0x49d,0x47e)]-0x1;c>0x0;c--)b[w(0x475,0x488)]([a[c],a[c-0x1]]);function w(a,b){return _enl(b,a-0x3ca);}return this[w(0x494,0x4b1)]=new Map(b);}get[_enl(0xd1,0xeb)](){if(this[x(0x241,0x21b)])return this['$activeTransaction'];function x(a,b){return _enl(b,a-0x18e);}return this[x(0x241,0x26e)]=this[x(0x28b,0x2cb)]['new']({'baseRevision':this[x(0x246,0x27e)]||this[x(0x251,0x215)],'graph':this});}['branch'](a){const b=this[y(0x243,0x22a)];function y(a,b){return _enl(a,b-0x13a);}return b[y(0x1f4,0x227)](Object['assign']({},a,{'baseRevision':this[y(0x1fd,0x1fd)]}));}[_enl(0xe8,0xac)](a){function z(a,b){return _enl(a,b-0x482);}return this[z(0x5a0,0x577)](a);}[_enl(0xba,0xdb)](a){this[A(0x236,0x1fe)]['reject'](RejectEffect['new']({'reason':a}));function A(a,b){return _enl(b,a-0x14b);}this[A(0x22a,0x264)]=Promise[A(0x246,0x213)]();this[A(0x1fe,0x232)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[A(0x207,0x234)]){this[A(0x20e,0x1dc)]=this[A(0x207,0x245)];this[A(0x207,0x1d2)]=void 0x0;}}[_enl(0xcb,0xf5)](a){this[B(0x2d2,0x308)]=![];this[B(0x28f,0x2c8)]();this[B(0x2f7,0x2f2)]=this[B(0x30f,0x2f9)];const b=this[B(0x2e3,0x321)];function B(a,b){return _enl(a,b-0x236);}const c=b[B(0x321,0x32b)](a);this['$activeTransaction']=void 0x0;const d=this[B(0x32a,0x2f7)](c);this[B(0x2e0,0x2f2)]=void 0x0;this[B(0x2cb,0x30a)]=![];return d;}async['propagateAsync'](a){function C(a,b){return _enl(b,a-0x3bf);}return this[C(0x45d,0x432)](a);}async['commitAsync'](a){if(this[D(-0x64,-0x65)])return this[D(-0x8,-0x45)];this['isJustCleared']=![];function D(a,b){return _enl(a,b- -0x124);}this[D(-0xa0,-0x65)]=!![];this['baseRevisionStable']=this[D(-0x58,-0x61)];let b;return this['ongoing']=this[D(-0x21,-0x45)][D(-0x69,-0x35)](()=>{function E(a,b){return D(b,a-0xa3);}return this[E(0x14,0xe)](a);})[D(-0x1c,-0x35)](c=>{b=c;return c;})[D(-0x8b,-0x55)](()=>{this['baseRevisionStable']=void 0x0;this[F(-0x19e,-0x1d7)]=void 0x0;this['isInitialCommit']=![];function F(a,b){return D(a,b- -0x16b);}this[F(-0x1a8,-0x1d0)]=![];});}async[_enl(0xb4,0x95)](a){this['unScheduleAutoCommit']();const b=this[G(0x4b6,0x4c7)];const c=await b[G(0x4b6,0x47a)](a);const d=Boolean(b[G(0x443,0x45f)]);const e=this[G(0x4b1,0x494)];if(!d)this[G(0x4a3,0x494)]=b[G(0x4b5,0x4c4)];this[G(0x4b8,0x48f)]=void 0x0;await this['finalizeCommitAsync'](c);if(this[G(0x4d4,0x4ae)])return{'rejectedWith':RejectEffect[G(0x4b3,0x4c9)]({'reason':G(0x449,0x479)})};if(b['rejectedWith']&&!d){this[G(0x49e,0x494)]=e;this['$activeTransaction']=void 0x0;}const f=this[G(0x490,0x49d)](c);function G(a,b){return _enl(a,b-0x3dc);}if(b[G(0x439,0x45f)])b[G(0x49b,0x486)]();if(this[G(0x4df,0x4b5)]&&!b[G(0x46c,0x45f)]){await this[G(0x471,0x471)](a);}return f;}[_enl(0xb0,0xc1)](a){function H(a,b){return _enl(b,a-0x42e);}const {revision:b,entries:c,transaction:d}=a;if(!d['rejectedWith']){if(b['previous']!==this[H(0x4f1,0x4dd)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[H(0x4f6,0x4fc)]()){if(f)e['reachableCount']--;e[H(0x520,0x4ec)]--;}this[H(0x4f1,0x4b7)]=this['topRevision']=b;for(const [g,h]of c){h[H(0x521,0x503)]();if(h[H(0x4d3,0x4e6)]()||!h[H(0x4c4,0x4a7)]())continue;const i=this[H(0x52a,0x4fa)][H(0x4be,0x4f3)](g);if(i)i[H(0x514,0x4dd)](h[H(0x50f,0x523)]());}this[H(0x4f8,0x4cd)]=void 0x0;this['markAndSweep']();}else{if(this['baseRevisionStable'])this[H(0x4f1,0x532)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;this[H(0x4e6,0x508)]=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async['finalizeCommitAsync'](a){}*[_enl(0xce,0xbd)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);function I(a,b){return _enl(b,a- -0x20c);}c[I(-0x164,-0x136)]=a;b[I(-0x188,-0x18a)](a);switch(this[I(-0x158,-0x158)]){case I(-0x120,-0x15a):console[I(-0x109,-0x10e)](c[I(-0x14a,-0x11e)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0x18b,-0x15d)](d[I(-0x12a,-0xee)]!==void 0x0?d['proposedValue']:d[I(-0x11b,-0x12e)]);case I(-0x141,-0x183):throw c;case I(-0x131,-0x12d):this['reject'](c);break;case I(-0x15f,-0x16b):warn(c);break;}}['onComputationCycleHandlerSync'](a,b){const c=new ComputationCycleError(J(0x470,0x4af)+a);function J(a,b){return _enl(b,a-0x3e4);}c['cycle']=a;b['addCycle'](a);switch(this[J(0x498,0x4c8)]){case J(0x4d0,0x4c3):console[J(0x4e7,0x4f1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x465,0x43f)](d[J(0x4c6,0x4ca)]!==void 0x0?d[J(0x4c6,0x4d7)]:d[J(0x4d5,0x4d9)]);case J(0x4af,0x49f):throw c;case J(0x4bf,0x4bd):this[J(0x4bf,0x4d4)](c);break;case J(0x491,0x4c1):warn(c);break;}}[_enl(0xfa,0xe9)](){function K(a,b){return _enl(b,a-0x196);}if(this[K(0x23f,0x261)]===null&&!this[K(0x255,0x244)]){this[K(0x23f,0x206)]=setTimeout(this['autoCommitHandler'],0xa);}}[_enl(0x69,0x92)](){function L(a,b){return _enl(b,a-0x213);}if(this[L(0x2bc,0x2c6)]!==null){clearTimeout(this[L(0x2bc,0x2b3)]);this['autoCommitTimeoutId']=null;}}[_enl(0x8a,0xb5)](a){function M(a,b){return _enl(a,b- -0xe4);}const b=VariableC();return this[M(0x55,0x1d)](b,a===void 0x0?null:a);}[_enl(0xcd,0xee)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}[_enl(0xe7,0xe3)](a,b){function N(a,b){return _enl(b,a-0x2b0);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[N(0x3b1,0x387)](c);}[_enl(0xed,0xe7)](a,b,c){const d=b[O(-0x197,-0x171)][O(-0x17f,-0x1bf)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enl(a,b- -0x261);}return this['addIdentifier'](d);}[_enl(0x11e,0x101)](a,b,...c){if(this[P(-0x171,-0x185)]){if(this['onWriteDuringCommit']===P(-0x165,-0x151))throw new Error(P(-0x131,-0x167));else if(this['onWriteDuringCommit']==='warn')warn(new Error(P(-0x131,-0x10b)));}this[P(-0x145,-0x182)][P(-0x12f,-0x12f)](a,b,...c);if(this[P(-0x14b,-0x128)])this[P(-0x147,-0x112)]();function P(a,b){return _enl(b,a- -0x230);}return a;}['removeIdentifier'](a){if(this[Q(0x45d,0x496)]){if(this['onWriteDuringCommit']===Q(0x483,0x4a2))throw new Error(Q(0x493,0x471));else if(this['onWriteDuringCommit']===Q(0x459,0x484))warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function Q(a,b){return _enl(a,b-0x3d7);}this['activeTransaction']['removeIdentifier'](a);this['listeners'][Q(0x46d,0x497)](a);if(this[Q(0x4b6,0x4bc)])this['scheduleAutoCommit']();}[_enl(0xc1,0x8a)](a){function R(a,b){return _enl(a,b- -0x18a);}return this[R(-0xb9,-0x9f)][R(-0x124,-0x100)](a);}[_enl(0xfb,0xc7)](a,b,...c){function S(a,b){return _enl(b,a- -0x1df);}if(this[S(-0x120,-0x157)]){if(this[S(-0x119,-0x158)]===S(-0x114,-0x127))throw new Error('Write\x20during\x20commit');else if(this['onWriteDuringCommit']===S(-0x132,-0x13c))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][S(-0x118,-0xd7)](a,b,...c);if(this['autoCommit'])this['scheduleAutoCommit']();}[_enl(0x80,0xa0)](a){function T(a,b){return _enl(a,b-0xeb);}return this[T(0x1ba,0x1d6)][T(0x158,0x18b)](a);}[_enl(0xa9,0xa4)](a){function U(a,b){return _enl(a,b- -0xba);}return this[U(0x4b,0x31)][U(-0x4a,-0x16)](a);}[_enl(0x12e,0xf4)](a){function V(a,b){return _enl(b,a-0xad);}return this[V(0x198,0x17d)][V(0x1a1,0x18c)](a);}[_enl(0xa9,0xb1)](a){function W(a,b){return _enl(b,a- -0xe3);}return this['activeTransaction'][W(-0x32,-0x4e)](a);}[_enl(0x79,0x90)](a){function X(a,b){return _enl(b,a-0x2e1);}return this['activeTransaction'][X(0x371,0x371)](a);}[_enl(0xfa,0xbe)](a,b){const c=this[Y(0x50b,0x4f9)](CalculatedValueGen[Y(0x4f7,0x4d7)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(b,a-0x40a);}this[Y(0x4cf,0x4e8)](c,b);return c;}[_enl(0x7f,0x8e)](a,b,c){const d=this[Z(0x55e,0x528)](CalculatedValueGen[Z(0x54a,0x50b)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x522,0x53e)](d,c);function Z(a,b){return _enl(b,a-0x45d);}return d;}['addListener'](a,b){let c=this[a0(-0x63,-0x4c)]['get'](a);function a0(a,b){return _enl(a,b- -0x148);}if(!c){c=Listener[a0(-0x1c,-0x5b)]();this[a0(-0x39,-0x4c)]['set'](a,c);}c[a0(-0xd3,-0xbb)][a0(-0x75,-0x9d)](b);}[_enl(0xb7,0x82)](){const a=this[a1(-0x11,-0x18)];function a1(a,b){return _enl(b,a- -0xd4);}const b=a[a1(-0x7,0x13)];if(!b)return![];this[a1(-0x11,-0x1d)]=b;this[a1(-0x21,0x18)]=void 0x0;return!![];}[_enl(0xa0,0x89)](){function a2(a,b){return _enl(a,b-0x5e);}const a=this['baseRevision'];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x120,0xee)](a);this[a2(0x12c,0x121)]=b;this[a2(0xe5,0x111)]=void 0x0;return!![];}[_enl(0x81,0x8f)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x5e,0x90)]();c['usedProposedOrPrevious']=!![];const d=c['getProposedValue'](b);if(d!==void 0x0)return d;if(!c[a3(0x3c,0x67)])return void 0x0;function a3(a,b){return _enl(a,b- -0x66);}const e=c[a3(0x75,0x7d)];if(e[a3(0x8c,0x7e)]){if(c[a3(0x87,0x67)][a3(0x3b,0x30)]())return c[a3(0x75,0x67)][a3(0x49,0x7b)]();if(c[a3(0x69,0x67)][a3(0x49,0x39)]())return c[a3(0x98,0x67)][a3(0x4c,0x1a)](b);return null;}return b['readPrevious'](c[a3(0x69,0x7d)]);}[RejectSymbol](a,b){function a4(a,b){return _enl(b,a-0x171);}this[a4(0x24c,0x278)](a[a4(0x217,0x246)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a5(a,b){return _enl(a,b-0x38a);}return b[a5(0x4b2,0x480)]();}[OwnIdentifierSymbol](a,b){function a6(a,b){return _enl(a,b-0x141);}const c=b[a6(0x26f,0x237)]();return c[a6(0x262,0x224)];}[WriteSymbol](a,b){function a7(a,b){return _enl(b,a- -0x197);}const c=b['getActiveEntry']();const d=a[a7(-0xb4,-0xd7)][a7(-0xc9,-0xd9)]>c[a7(-0xb4,-0x7e)][a7(-0xc9,-0xc0)];if(!d)b[a7(-0xbf,-0xe5)][a7(-0xe9,-0xd5)]();b[a7(-0xd0,-0x104)](a[a7(-0xb4,-0xf1)],...a[a7(-0xfb,-0x117)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a8(0x57,0x60)]();let d=!![];function a8(a,b){return _enl(b,a- -0x9f);}a[a8(-0x14,-0x19)][a8(0x17,0xa)](e=>{function a9(a,b){return a8(b-0x211,a);}if(e['identifier'][a9(0x1ff,0x240)]<=c[a9(0x284,0x255)]['level']&&d){b[a9(0x272,0x24a)][a9(0x21a,0x220)]();d=![];}b[a9(0x266,0x239)](e[a9(0x250,0x255)],...e[a9(0x22c,0x20e)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x27c,0x2be)];function aa(a,b){return _enl(b,a-0x199);}b[aa(0x248,0x257)](d,c,EdgeTypePast);const e=b[aa(0x234,0x1f1)][aa(0x229,0x21b)](d);return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[ab(0xf6,0x108)];b[ab(0xfe,0xd4)](d,c,EdgeTypePast);function ab(a,b){return _enl(a,b-0x25);}return b[ab(0xa3,0xc5)](d);}[ProposedValueOfSymbol](a,b){function ac(a,b){return _enl(a,b-0x31);}const c=b['getActiveEntry']();const d=a[ac(0xed,0x114)];b[ac(0xfe,0xe0)](d,c,EdgeTypePast);const e=b[ac(0x8c,0xcc)][ac(0xac,0xc1)](d);const f=e&&!e[ac(0xb0,0xd6)]()?e[ac(0xf1,0xb1)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ad(a,b){return _enl(a,b- -0x1de);}const c=b[ad(-0xfd,-0xe8)]();const d=a[ad(-0xcb,-0xfb)];b[ad(-0x159,-0x12f)](d,c,EdgeTypePast);const e=b[ad(-0x126,-0x143)]['get'](d);return e?e[ad(-0xfd,-0x13f)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ae(-0x15b,-0x18c)];b[ae(-0x1e4,-0x1c0)](d,c,EdgeTypePast);const e=b['entries']['get'](d);function ae(a,b){return _enl(a,b- -0x26f);}return e?e[ae(-0x1a2,-0x1d0)]()&&e[ae(-0x229,-0x1f0)]!==void 0x0&&!e[ae(-0x210,-0x1ea)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();function af(a,b){return _enl(b,a-0x24f);}const d=a['identifier'];b[af(0x2fe,0x311)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ag(a,b){return _enl(a,b-0x2e0);}return b[ag(0x384,0x374)](a['identifier']);}[UnsafePreviousValueOfSymbol](a,b){function ah(a,b){return _enl(b,a-0x98);}return b[ah(0x138,0x162)](a[ah(0x17b,0x1ac)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(0x107,0x131)]();const d=a[ai(0x132,0x11e)];function ai(a,b){return _enl(a,b-0x3b);}b[ai(0xf4,0xea)](d,c,EdgeTypePast);const e=b[ai(0xcc,0xd6)]['get'](d);return e&&!e[ai(0xca,0xe0)]()?e[ai(0x14e,0x125)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
@@ -1 +1 @@
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
+ (function(a,b){const c=a();function o(a,b){return _enb(b- -0x2cb,a);}while(!![]){try{const d=parseInt(o(-0x1e3,-0x1f4))/0x1+parseInt(o(-0x1ad,-0x1d0))/0x2+parseInt(o(-0x1ca,-0x1d1))/0x3+-parseInt(o(-0x1bb,-0x1cb))/0x4*(-parseInt(o(-0x204,-0x1f8))/0x5)+-parseInt(o(-0x1ce,-0x1d9))/0x6*(parseInt(o(-0x1d3,-0x1ec))/0x7)+-parseInt(o(-0x1d3,-0x1de))/0x8*(-parseInt(o(-0x20c,-0x20b))/0x9)+-parseInt(o(-0x203,-0x1eb))/0xa*(parseInt(o(-0x1c4,-0x1df))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xac4e3));function _enr(a,b){return _enb(b- -0xa0,a);}import{MixinAny}from'../class/Mixin.js';import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';function _ena(){const S=['clear','985392xWlOUq','getOutgoing','origin','visitEpoch','call','new','getOutgoingPast','outgoingInTheFutureHelper','edgesFlow','cleanup','values','assign','proposedIsPrevious','proposedValueIsBuilt','outgoingInTheFutureAndPastTransactionCb','getOrigin','getProposedValue','value','set','5605yGGwzV','hasProposedValue','resetToEpoch','addOutgoingTo','1176259aznYzs','needToBuildProposedValue','context','cleanupCalculation','getValue','mergePreviousOrigin','outgoingInTheFutureAndPastCb','calculation','49cCHXHI','19575740qSknPg','visitedAt','Tombstone','clearOutgoing','outgoingInTheFutureCb','startOrigin','$outgoingPast','usedProposedOrPrevious','originId','previous','promise','getLatestStableEntryFor','11CBqfzU','24UxzCHn','writtenValue','hasValue','copyFrom','Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry','1085610rWmzhb','forceCalculation','clearProperties','proposedValue','setValue','get','proposedArguments','identifier','2066817UcDTmB','1707986awROst','Normal','getLatestEntryFor','level','Invalid\x20state','3148fdDSxf','hasProposedValueInner','isShadow','Past','outgoingInTheFutureTransactionCb'];_ena=function(){return S;};return _ena();}var EdgeType;(function(a){function p(a,b){return _enb(b- -0x3be,a);}a[a[p(-0x2c6,-0x2c2)]=0x1]=p(-0x2e0,-0x2c2);a[a['Past']=0x2]=p(-0x2b1,-0x2bb);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x1e3,0x1db)]=void 0x0;this[q(0x1bb,0x1a6)]=void 0x0;this[q(0x1df,0x1c8)]=void 0x0;function q(a,b){return _enb(a-0xea,b);}this[q(0x1b6,0x196)]=![];this[q(0x1e2,0x1c9)]=void 0x0;this[q(0x1d1,0x1c0)]=![];this['writtenValue']=void 0x0;this[q(0x1d3,0x1ee)]=void 0x0;this[q(0x1ac,0x1b1)]=void 0x0;this[q(0x1d2,0x1b7)]=MIN_SMI;this[q(0x1c2,0x1ad)]=![];this['edgesFlow']=0x0;this[q(0x1cb,0x1cc)]=NOT_VISITED;this[q(0x1ad,0x1a7)]=0x0;this[q(0x1d4,0x1eb)]=void 0x0;this['$outgoingPast']=void 0x0;}static[_enr(0x31,0x25)](c){const d=new this();c&&Object[s(0xe7,0x102)](d,c);function s(a,b){return _enr(b,a-0xbc);}return d;}get[_enr(0x61,0x5e)](){function t(a,b){return _enr(a,b-0xd4);}return this[t(0x144,0x12d)][t(0x142,0x132)];}get[_enr(0x2c,0x3e)](){function u(a,b){return _enr(b,a-0x452);}return this[u(0x4ab,0x489)]['calculation'];}get[_enr(0x3e,0x39)](){function v(a,b){return _enr(b,a-0x33f);}return this['identifier'][v(0x378,0x39b)]||this[v(0x398,0x387)];}[_enr(0x31,0x53)](){this['edgesFlow']=MAX_SMI;}[_enr(0x26,0x29)](){function w(a,b){return _enr(b,a- -0x265);}this[w(-0x22b,-0x23b)]();}[_enr(0x57,0x62)](){function x(a,b){return _enr(a,b-0x182);}return Boolean(this[x(0x1ab,0x1a4)]&&this[x(0x198,0x1a4)]!==this);}[_enr(0x44,0x35)](c){this[y(-0x2a3,-0x295)]=c;function y(a,b){return _enr(b,a- -0x2c6);}this['visitedAt']=NOT_VISITED;if(this[y(-0x29e,-0x2b6)]<0x0)this[y(-0x29e,-0x2a6)]=0x0;this[y(-0x27f,-0x262)]=![];this[y(-0x28c,-0x26c)]();this[y(-0x283,-0x287)]();this[y(-0x27c,-0x269)]=void 0x0;if(this[y(-0x2a4,-0x2c2)]&&this[y(-0x2a4,-0x2bf)]===this){this[y(-0x26e,-0x268)]=void 0x0;if(this[y(-0x295,-0x29c)]!==void 0x0){this['proposedValue']=this['value'];}this['value']=void 0x0;}else{this[y(-0x2a4,-0x2b3)]=void 0x0;this['value']=void 0x0;}if(this[y(-0x26d,-0x24a)][y(-0x299,-0x280)]&&this['proposedValue']!==TombStone){this[y(-0x28e,-0x2aa)]=!![];this['proposedValue']=void 0x0;}}[_enr(0x6b,0x50)](c){function z(a,b){return _enr(a,b- -0x327);}this[z(-0x2db,-0x2f6)]=c[z(-0x2fc,-0x2f6)];this[z(-0x2bd,-0x2d2)]=c['proposedValue'];this[z(-0x2bf,-0x2cf)]=c[z(-0x2c5,-0x2cf)];this[z(-0x2d0,-0x2e0)]=c[z(-0x2c3,-0x2e0)];}[_enr(0x73,0x54)](){function A(a,b){return _enr(a,b-0x273);}this[A(0x2c1,0x2a4)]=void 0x0;this[A(0x2c1,0x2c8)]=void 0x0;this['proposedArguments']=void 0x0;this[A(0x2b9,0x2c1)]=void 0x0;}[_enr(0x44,0x3c)](c){const d=this['origin'];if(d!==this['previous'])throw new Error(B(-0x26f,-0x286));function B(a,b){return _enr(a,b- -0x2e5);}this[B(-0x29a,-0x295)](d);const e=this[B(-0x2cb,-0x2c4)]();for(const [f,g]of d[B(-0x2c8,-0x2c4)]()){const h=e[B(-0x299,-0x28e)](f);if(!h){const i=c['get'](f);if(!i||i[B(-0x2bc,-0x29d)]===g['originId'])e[B(-0x2b9,-0x2b3)](f,i||g);}}if(d[B(-0x2a4,-0x29f)]!==void 0x0){const j=this['getOutgoingPast']();for(const [k,l]of d[B(-0x2b9,-0x2bf)]()){const m=j[B(-0x289,-0x28e)](k);if(!m){const n=c[B(-0x28f,-0x28e)](k);if(!n||n[B(-0x27a,-0x29d)]===l[B(-0x27d,-0x29d)])j['set'](k,n||l);}}}this['origin']=this;d[B(-0x293,-0x291)]();d[B(-0x2ae,-0x2c6)]();}['setOrigin'](c){function C(a,b){return _enr(b,a- -0x158);}this[C(-0x136,-0x133)]=c;this[C(-0x110,-0x115)]=c[C(-0x110,-0x125)];}[_enr(0x25,0x2f)](){function D(a,b){return _enr(b,a-0xdf);}if(this[D(0x101,0xfb)])return this['origin'];return this[D(0x124,0x13a)]();}[_enr(0x60,0x45)](){function E(a,b){return _enr(b,a-0x104);}this[E(0x14c,0x16f)]=ORIGIN_ID++;return this[E(0x126,0x10a)]=this;}[_enr(0x3a,0x21)](){return this;}['getOutgoingPast'](){if(this[F(0x242,0x23d)]!==void 0x0)return this[F(0x25c,0x23d)];function F(a,b){return _enr(a,b-0x1f7);}return this['$outgoingPast']=new Map();}[_enr(0x50,0x36)](c,d){const e=d===EdgeType[G(0x21,0x16)]?this:this['getOutgoingPast']();function G(a,b){return _enr(a,b- -0x46);}e['set'](c['identifier'],c);}['clearOutgoing'](){this[H(-0x1eb,-0x1cf)]();function H(a,b){return _enr(a,b- -0x1ee);}if(this[H(-0x1b4,-0x1a8)]!==void 0x0)this[H(-0x18c,-0x1a8)][H(-0x1ea,-0x1cf)]();}[_enr(0x58,0x3b)](){const c=this[I(0x10b,0xe8)];function I(a,b){return _enr(b,a-0xe9);}return c===this?this[I(0x11a,0x119)]:c?c[I(0x124,0x138)]():void 0x0;}[_enr(0x62,0x56)](c){if(this['origin']&&this[J(0x46,0x67)]!==this)throw new Error(J(0x76,0x96));function J(a,b){return _enr(a,b-0x45);}this[J(0x70,0x74)]()[J(0x68,0x76)]=c;}[_enr(0x3b,0x4f)](){return this['getValue']()!==void 0x0;}[_enr(0x3d,0x34)](){function K(a,b){return _enr(b,a- -0x16d);}if(this[K(-0x10b,-0xf7)]())return![];return this['hasProposedValueInner']();}[_enr(0x4f,0x61)](){function L(a,b){return _enr(b,a-0x15d);}return this[L(0x1b2,0x198)]!==void 0x0;}[_enr(0xd,0x30)](c){if(this['needToBuildProposedValue']){this[M(0x43b,0x42e)]=this['identifier']['buildProposedValue'][M(0x40a,0x40a)](this['identifier'][M(0x41f,0x441)]||this[M(0x43f,0x41c)],this['identifier'],this,c);this[M(0x41e,0x41a)]=![];}function M(a,b){return _enr(b,a-0x3e6);}return this[M(0x43b,0x42e)];}[_enr(0x23,0x27)](c,d,e){function N(a,b){return _enr(b,a-0xa5);}let f=this;while(f){for(const g of f[N(0xc6,0xa6)]()[N(0xcf,0xb8)]()){const h=c(g[N(0xfe,0xff)]);if(h&&g[N(0xed,0x10a)]===h[N(0xed,0xfd)])d(g);}if(e&&f['$outgoingPast']!==void 0x0){for(const i of f[N(0xeb,0x10d)]['values']()){const j=c(i[N(0xfe,0xee)]);if(j&&i['originId']===j[N(0xed,0x10e)])d(i);}}if(f[N(0x107,0xeb)]())f=f[N(0xee,0xce)];else f=null;}}[_enr(0x5e,0x44)](c,d){function O(a,b){return _enr(a,b- -0x2f1);}this[O(-0x2e8,-0x2ca)](e=>c['getLatestEntryFor'](e),d,![]);}[_enr(0x1b,0x3d)](c,d){function P(a,b){return _enr(a,b-0x28b);}this[P(0x295,0x2b2)](e=>c[P(0x2ec,0x2e8)](e),d,!![]);}[_enr(0xf,0x2e)](c,d){function Q(a,b){return _enr(b,a-0x220);}this['outgoingInTheFutureHelper'](e=>c[Q(0x26b,0x277)](e),d,!![]);}[_enr(0x49,0x64)](c,d){function R(a,b){return _enr(a,b- -0x186);}this[R(-0x158,-0x15f)](e=>c[R(-0x112,-0x129)](e),d,![]);}}){}const TombStone=Symbol(_enr(0x37,0x42));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xbf;let f=c[d];return f;};return _enb(a,b);}export{EdgeType,Quark,TombStone};
@@ -1 +1 @@
1
- function _enu(a,b){return _enb(b- -0x1a5,a);}(function(a,b){const c=a();function t(a,b){return _enb(b-0xeb,a);}while(!![]){try{const d=-parseInt(t(0x178,0x1a2))/0x1+-parseInt(t(0x1bc,0x1a9))/0x2*(parseInt(t(0x25c,0x22c))/0x3)+-parseInt(t(0x1c5,0x1df))/0x4*(parseInt(t(0x1ee,0x21d))/0x5)+parseInt(t(0x20c,0x215))/0x6*(-parseInt(t(0x17b,0x1c0))/0x7)+parseInt(t(0x165,0x1a7))/0x8*(parseInt(t(0x1bd,0x1f6))/0x9)+parseInt(t(0x212,0x21a))/0xa+parseInt(t(0x18f,0x1b6))/0xb*(parseInt(t(0x1ad,0x1d5))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc2d26));import{Base}from'../class/Base.js';import{DEBUG}from'../environment/Debug.js';import{cycleInfo,OnCycleAction}from'../graph/WalkDepth.js';import{runGeneratorAsyncWithEffect,SynchronousCalculationStarted}from'../primitives/Calculation.js';import{delay,isPromise,MAX_SMI}from'../util/Helpers.js';import{LeveledQueue}from'../util/LeveledQueue.js';function _ena(){const ai=['new','baseRevision','534HkjuHU','getOutgoing','hasVariableEntry','read','startProgressNotificationsAfterMs','12129150ETyARI','then','quark','1243270BjkELy','touch','entries','size','UserInput','readCurrentOrProposedOrPrevious','hasValue','hasEntryWithProposedValue','getLatestEntryFor','proposedValue','reason','calculateTransitions','onComputationCycleHandler','readProposedOrPreviousAsync','candidateClass','639795ILBwbn','hasProposedValue','setValue','plannedTotalIdentifiersToCalculate','length','calculateTransitionsStackSync','1151803CRvJWd','onEffectAsync','startNewEpoch','call','pop','14232fkMnrp','postCommit','12qObntm','activeStack','context','commit','origin','continueFrom','getLatestStableEntryFor','populateCandidateScopeFromTransitions','ongoing','isClosed','hasIdentifier','Transaction\x20rejected:\x20','value','101266qoTuVZ','walkContext','handler','Can\x20not\x20yield\x20a\x20promise\x20in\x20the\x20synchronous\x20context','set','initialize','getWriteTarget','bind','selfDependent','getValue','104811GDJQWn','addEdge','visitEpoch','currentEpoch','rejectedWith','leaveGraph','readPreviousAsync','getLowestLevel','ignoreEdgesFlow','Computation\x20cycle.\x20Async\x20get','iterationResult','markSelfDependent','addOutgoingTo','isCalculationCompleted','propagationStartDate','isShadow','readAsync','enterGraph','values','clear','stopped','3180shETpB','level','isWritingUndefined','cleanupCalculation','newQuark','propagating','stackGen','onQuarkCalculationCompleted','startOrigin','push','4dWmevR','isCalculationStarted','calculateTransitionsSync','candidate','onEffectSync','Cancel','outgoingInTheFutureAndPastTransactionCb','lastProgressNotificationDate','startFrom','onPropagationProgressNotification','yieldSync','Effect\x20resolved\x20to\x20promise\x20in\x20the\x20synchronous\x20context,\x20check\x20that\x20you\x20marked\x20the\x20asynchronous\x20calculations\x20accordingly','resolve','lowestLevel','get','onReadIdentifier','add','write','yieldAsync','delete','takeLowestLevel','enableProgressNotifications','emitProgressNotificationsEveryMs','5859UcvkKe','equality','usedProposedOrPrevious','readPrevious','graph','cleanup','now','promise','selfDependedMarked','getActiveEntry','Cycle\x20during\x20synchronous\x20computation','setOrigin','forceCalculation','getLatestStableOrProposedEntryFor','previous','readProposedOrPrevious','edgesFlow','forEach','Past','removeIdentifier','calculateTransitionsStackGen','preCommit','identifier','dirty','lazy','continueCalculation','scope','clearRejected','sync'];_ena=function(){return ai;};return _ena();}import{BreakCurrentStackExecution,RejectEffect}from'./Effect.js';import{Identifier,Levels,throwUnknownIdentifier}from'./Identifier.js';import{EdgeType,TombStone}from'./Quark.js';import{Revision}from'./Revision.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xb3;let f=c[d];return f;};return _enb(a,b);}import{ComputationCycle,TransactionCycleDetectionWalkContext}from'./TransactionCycleDetectionWalkContext.js';import{TransactionWalkDepth}from'./TransactionWalkDepth.js';const EdgeTypeNormal=EdgeType['Normal'];const EdgeTypePast=EdgeType[_enu(-0x48,-0x88)];class Transaction extends Base{constructor(){super(...arguments);this['baseRevision']=void 0x0;this[v(0x496,0x4be)]=Revision;this[v(0x44d,0x487)]=void 0x0;this[v(0x465,0x4a8)]=void 0x0;this['isClosed']=![];this['walkContext']=void 0x0;this[v(0x48a,0x4c7)]=new Map();this[v(0x446,0x446)]=new LeveledQueue();function v(a,b){return _enu(b,a-0x4fb);}this[v(0x415,0x411)]=[];this['onEffectSync']=void 0x0;this[v(0x40e,0x441)]=void 0x0;this[v(0x439,0x47d)]=0x0;this[v(0x451,0x41e)]=0x0;this['startProgressNotificationsAfterMs']=0x1f4;this['emitProgressNotificationsEveryMs']=0xc8;this['emitProgressNotificationsEveryCalculations']=0x64;this[v(0x40a,0x41f)]=0x0;this[v(0x41c,0x3ef)]=Promise[v(0x456,0x444)]();this[v(0x469,0x452)]=![];this[v(0x42f,0x473)]=void 0x0;this['stopped']=![];this['hasEntryWithProposedValue']=![];this[v(0x482,0x4ae)]=![];}[_enu(-0xf4,-0xd5)](...a){super[w(0x7e,0xb7)](...a);function w(a,b){return _enu(a,b-0x18c);}this[w(0xd8,0xb3)]=TransactionWalkDepth[w(0x131,0x10f)]({'visited':this['entries'],'transaction':this,'baseRevision':this['baseRevision'],'pushTo':this[w(0xdc,0xd7)]});if(!this[w(0xcc,0xde)])this[w(0x98,0xde)]=this['candidateClass'][w(0xf0,0x10f)]({'previous':this['baseRevision']});this['onEffectSync']=this['read'][w(0xec,0xb9)](this);this[w(0x7b,0x9f)]=this[w(0xe3,0xcc)][w(0xab,0xb9)](this);}get[_enu(-0x58,-0x83)](){function x(a,b){return _enu(b,a-0x533);}return this[x(0x4c2,0x487)]['size']>0x0;}[_enu(-0x8b,-0xc5)](){function y(a,b){return _enu(b,a-0x137);}if(this['selfDependedMarked'])return;this[y(0xa5,0xe0)]=!![];for(const a of this[y(0xbb,0xca)][y(0x65,0x3c)]){const b=this[y(0xc6,0xd0)][y(0x94,0x57)](a);if(b&&b[y(0x66,0x7a)]()===TombStone)continue;this[y(0xc5,0xcc)](a);}}['getActiveEntry'](){function z(a,b){return _enu(b,a-0x1b9);}return this[z(0xd3,0xba)][this['activeStack']['length']-0x1];}[_enu(-0xa1,-0x9f)](a){if(isPromise(a))return a;function A(a,b){return _enu(a,b-0x116);}return this[A(0x3a,0x80)][a[A(0x36,0x3e)]](a,this);}[_enu(-0xa6,-0xa7)](a){function B(a,b){return _enu(a,b-0x352);}if(isPromise(a)){throw new Error(B(0x24c,0x27b));}return this[B(0x28d,0x2bc)][a[B(0x2ae,0x27a)]](a,this);}[_enu(-0xec,-0xc0)](a){if(!(a instanceof Identifier))return this[C(0x6a,0x3d)](a);let b;const c=this['getActiveEntry']();function C(a,b){return _enu(a,b-0xdc);}if(c){b=this['addEdge'](a,c,EdgeTypeNormal);}else{b=this[C(0xaf,0x6b)][C(0x40,0x39)](a);if(!b){const d=this['baseRevision'][C(0x47,0x71)](a);if(!d)throwUnknownIdentifier(a);b=d[C(0x7e,0x6f)]()?d:this['touch'](a);}}if(b[C(0x82,0x6f)]())return b[C(0xf,0xb)]();if(b['promise'])return b[C(0x44,0x49)];if(!b['previous']||!b['previous']['hasValue']())b[C(0x42,0x4e)]();return this[C(-0x15,-0x3)]=b[C(0x48,0x49)]=this['ongoing'][C(0x58,0x67)](()=>{return((async()=>{while(this['stackGen'][D(0x18d,0x1b9)]<a[D(0x177,0x144)]){await runGeneratorAsyncWithEffect(this[D(0x144,0x127)],this['calculateTransitionsStackGen'],[this['onEffectAsync'],this[D(0x17c,0x177)][D(0x194,0x172)]()],this);}if(this[D(0x165,0x17b)]){throw new Error('Transaction\x20rejected:\x20'+String(this[D(0x165,0x149)]['reason']));}this[D(0x16c,0x12d)]();if(b[D(0x160,0x18c)]()===void 0x0){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this[D(0x1ab,0x18d)],[this['onEffectAsync'],[b]],this);}if(this['rejectedWith']){throw new Error(D(0x155,0x127)+String(this[D(0x165,0x164)][D(0x1c8,0x1a4)]));}function D(a,b){return _enb(a-0x8c,b);}if(!b[D(0x1c4,0x1f8)]()){throw new Error('Computation\x20cycle.\x20Sync');}return b[D(0x160,0x151)]();})());});}[_enu(-0x87,-0xa3)](a){if(!(a instanceof Identifier))return this[E(0x333,0x353)](a);let b;const c=this[E(0x349,0x31b)]();function E(a,b){return _enu(b,a-0x3da);}if(c){b=this[E(0x30b,0x2cf)](a,c,EdgeTypeNormal);}else{b=this['entries'][E(0x337,0x333)](a);if(!b){const f=this[E(0x35e,0x319)][E(0x36f,0x364)](a);if(!f)throwUnknownIdentifier(a);b=f[E(0x36d,0x3b3)]()?f:this[E(0x368,0x372)](a);}}const d=b[E(0x309,0x341)]();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0&&b[E(0x36d,0x3ac)]())return d;if(b['promise'])return b[E(0x347,0x383)];if(!b['previous']||!b['previous'][E(0x36d,0x354)]())b['forceCalculation']();const e=this[E(0x31e,0x363)];while(this[E(0x325,0x363)][E(0x311,0x342)]()<a[E(0x320,0x363)]){this[E(0x31e,0x338)]=![];this[E(0x2eb,0x2e5)](this[E(0x32d,0x33a)],this['stackGen'][E(0x33d,0x376)]());this['stopped']=e;}this[E(0x315,0x358)]();if(a[E(0x35c,0x350)]){this[E(0x31e,0x2fc)]=![];this[E(0x2eb,0x304)](this['onEffectSync'],[b]);this['stopped']=e;const g=b[E(0x309,0x2d6)]();if(g===void 0x0)throw new Error('Cycle\x20during\x20synchronous\x20computation');if(g===TombStone)throwUnknownIdentifier(a);return g;}else{const h=this['ongoing']=b[E(0x347,0x359)]=this[E(0x2fb,0x2b7)][E(0x365,0x35e)](()=>{function F(a,b){return E(b-0xd6,a);}if(b[F(0x406,0x3df)]()===void 0x0)return runGeneratorAsyncWithEffect(this[F(0x40b,0x3c3)],this[F(0x43a,0x42a)],[this['onEffectAsync'],[b]],this);})['then'](()=>{function G(a,b){return E(b- -0x3e1,a);}if(this[G(-0x101,-0xd3)])throw new Error(G(-0xe1,-0xe3)+String(this['rejectedWith'][G(-0x44,-0x70)]));const i=b[G(-0x107,-0xd8)]();if(i===void 0x0)throw new Error(G(-0xed,-0xce));if(i===TombStone)throwUnknownIdentifier(a);return i;});if(DEBUG){h[E(0x366,0x32b)]=b;}return h;}}[_enu(-0x37,-0x78)](a){if(!(a instanceof Identifier))return this[H(0x396,0x397)](a);let b;const c=this[H(0x3ac,0x37c)]();if(c){b=this['addEdge'](a,c,EdgeTypeNormal);}else{b=this[H(0x3cc,0x3ea)]['get'](a);if(!b){const f=this[H(0x3c1,0x401)][H(0x3d2,0x3c6)](a);if(!f)throwUnknownIdentifier(a);b=f[H(0x3d0,0x3f0)]()?f:this['touch'](a);}}const d=b['getValue']();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0)return d;if(!b[H(0x3b1,0x3c6)]||!b[H(0x3b1,0x3df)]['hasValue']())b[H(0x3af,0x3e9)]();while(this[H(0x388,0x3b2)][H(0x374,0x3b9)]()<a[H(0x383,0x351)]){this[H(0x34e,0x35a)](this[H(0x390,0x3c5)],this[H(0x388,0x3bd)][H(0x3a0,0x3ac)]());}this[H(0x378,0x35a)]();this[H(0x34e,0x355)](this[H(0x390,0x34c)],[b]);const e=b['getValue']();if(e===void 0x0)throw new Error(H(0x3ad,0x3ba));function H(a,b){return _enu(b,a-0x43d);}if(e===TombStone)throwUnknownIdentifier(a);return e;}[_enu(-0x89,-0x6e)](a){const b=this['entries'][I(0x1ca,0x1f3)](a);function I(a,b){return _enu(b,a-0x26d);}if(b){const c=b[I(0x19c,0x175)]();if(c!==void 0x0)return c;if(b[I(0x203,0x22e)]!==void 0x0)return b['proposedValue'];}return this[I(0x1d6,0x1b8)](a);}['readCurrentOrProposedOrPreviousAsync'](a){const b=this[J(0x46b,0x4a7)][J(0x439,0x460)](a);if(b){const c=b['getValue']();if(c!==void 0x0)return c;if(b[J(0x472,0x450)]!==void 0x0)return b[J(0x472,0x4aa)];}function J(a,b){return _enu(b,a-0x4dc);}return this[J(0x412,0x3dc)](a);}[_enu(-0x8e,-0x97)](a){const b=this[K(-0x4b,-0x5e)][K(-0x6b,-0x4d)](a);if(!b)return void 0x0;const c=b[K(-0x8e,-0xb3)]();function K(a,b){return _enu(a,b-0x1e);}return c!==TombStone?c===void 0x0&&a[K(-0x83,-0x64)]?this[K(-0x4e,-0x5a)](a):c:void 0x0;}['readPreviousAsync'](a){function L(a,b){return _enu(a,b-0x1d8);}const b=this[L(0x14b,0x15c)][L(0x17b,0x16d)](a);if(!b)return void 0x0;const c=b[L(0xf4,0x107)]();return c!==TombStone?c!==void 0x0?c:this['readAsync'](a):void 0x0;}[_enu(-0x58,-0x8b)](a){function M(a,b){return _enu(a,b- -0xbe);}const b=this['entries']['get'](a);if(b&&b[M(-0x155,-0x128)]!==void 0x0){return b['proposedValue'];}else{return this[M(-0x119,-0x155)](a);}}[_enu(-0x50,-0x66)](a){const b=this[N(0x4f1,0x4e7)]['get'](a);function N(a,b){return _enu(a,b-0x558);}if(b&&b[N(0x4c8,0x4ee)]!==void 0x0){return b[N(0x507,0x4ee)];}else{return this[N(0x4aa,0x48e)](a);}}[_enu(-0x87,-0xa0)](a,b,...c){if(b===void 0x0)b=null;a[O(0x1cf,0x19f)][O(0x184,0x194)](a[O(0x18a,0x178)]||a,a,this,null,b,...c);const d=this[O(0x1fe,0x233)][O(0x1cc,0x205)](a);function O(a,b){return _enu(b,a-0x26f);}this[O(0x1f6,0x1cb)]=this['hasVariableEntry']||!d['isShadow']()&&a[O(0x1b5,0x18b)]===Levels[O(0x200,0x23e)];this['hasEntryWithProposedValue']=this['hasEntryWithProposedValue']||d[O(0x20c,0x23f)]();}[_enu(-0x96,-0xd4)](a){return this['touch'](a)['startOrigin']();}['acquireQuarkIfExists'](a){function P(a,b){return _enu(b,a-0x38f);}const b=this[P(0x31e,0x30d)][P(0x2ec,0x30a)](a);return b&&b[P(0x2ac,0x2b3)]===b?b[P(0x2ac,0x273)]:void 0x0;}[_enu(-0x40,-0x72)](a){const b=this[Q(0x28f,0x276)][Q(0x25d,0x265)](a);const {walkContext:c}=this;if(c&&(!b||b[Q(0x232,0x24f)]<c[Q(0x233,0x278)])){c[Q(0x21e,0x209)]([a]);}const d=b||this[Q(0x28f,0x252)][Q(0x25d,0x29a)](a);function Q(a,b){return _enu(b,a-0x300);}d[Q(0x272,0x27d)]();return d;}[_enu(-0x10c,-0xdd)](a){const b=this[R(-0x272,-0x255)][R(-0x2a4,-0x2e9)](a);function R(a,b){return _enu(b,a- -0x201);}if(b&&b[R(-0x2d2,-0x2b1)]()===TombStone)return![];return Boolean(b||this[R(-0x27d,-0x275)][R(-0x26c,-0x2af)](a));}['addIdentifier'](a,b,...c){let d=this['entries'][S(-0x161,-0x177)](a);const e=Boolean(d);const f=a['level']===Levels[S(-0x12d,-0x14c)];if(!d){d=a[S(-0x175,-0x134)](this[S(-0x13a,-0x15d)]);d[S(-0x14a,-0x12e)]=this[S(-0x13a,-0x13f)]['getLatestEntryFor'](a);d[S(-0x14c,-0x177)]();this[S(-0x12f,-0x15d)]['set'](a,d);if(!a[S(-0x140,-0xf9)]&&!f)this[S(-0x173,-0x1b1)][S(-0x170,-0x15d)](d);this[S(-0x137,-0x11b)]=this[S(-0x137,-0x122)]||!d[S(-0x17f,-0x16d)]()&&f;this[S(-0x12a,-0x10f)]=this['hasEntryWithProposedValue']||d[S(-0x121,-0xe0)]();}if(b!==void 0x0||f){d['startOrigin']();const g=e&&(d[S(-0x128,-0x14d)]!==void 0x0||d[S(-0x199,-0x1b5)]!==void 0x0);if(!g||d[S(-0x128,-0x130)]===TombStone||d[S(-0x199,-0x1d9)]===TombStone){a[S(-0x177,-0x179)]=b===void 0x0;a[S(-0x15e,-0x1a5)][S(-0x1a9,-0x1ac)](a[S(-0x1a3,-0x1cb)]||a,a,this,d,b===void 0x0&&f?null:b,...c);a[S(-0x177,-0x1ae)]=![];}}if(d['getValue']()===TombStone)d['value']=void 0x0;if(d['proposedValue']===TombStone)d[S(-0x128,-0x14d)]=void 0x0;a[S(-0x17d,-0x16e)](this[S(-0x154,-0x172)]);function S(a,b){return _enu(b,a- -0xbe);}return d;}[_enu(-0x6c,-0x87)](a){a[T(-0x294,-0x24d)](this[T(-0x25f,-0x231)]);const b=this[T(-0x23b,-0x282)](a)[T(-0x27c,-0x239)]();b[T(-0x2bb,-0x2f4)](TombStone);function T(a,b){return _enu(b,a- -0x1c9);}this[T(-0x277,-0x298)][T(-0x29b,-0x2d6)][T(-0x267,-0x27b)](a);}[_enu(-0x105,-0xe0)](a,b){function U(a,b){return _enu(a,b-0x386);}if(a[U(0x346,0x306)][U(0x338,0x316)]===0x0){a[U(0x2f9,0x306)]=b;}else{for(const [c,d]of b){if(d[U(0x307,0x2c5)]()){const e=a[U(0x34a,0x31b)](c);d[U(0x2d2,0x30c)]()[U(0x336,0x2fd)]((f,g)=>e[U(0x306,0x30c)]()['set'](g,f));}else{a[U(0x2d8,0x306)][U(0x2ef,0x2b0)](c,d);}}}}[_enu(-0xca,-0x85)](a){if(this[V(0x359,0x357)])throw new Error('Can\x20not\x20propagate\x20closed\x20revision');this[V(0x34f,0x370)]();this[V(0x396,0x357)]=!![];this[V(0x3b2,0x373)]=Date[V(0x361,0x3a1)]();function V(a,b){return _enu(a,b-0x435);}this[V(0x33c,0x344)]=this[V(0x392,0x380)]['length'];}['postCommit'](){this['populateCandidateScopeFromTransitions'](this[W(0x3c2,0x3bb)],this[W(0x3ff,0x3f8)]);function W(a,b){return _enu(b,a-0x470);}const a=this[W(0x3ff,0x447)];this[W(0x397,0x3d2)]=void 0x0;return{'revision':this[W(0x3c2,0x3c4)],'entries':a,'transaction':this};}[_enu(-0x11c,-0xe4)](a){function X(a,b){return _enu(a,b- -0x12c);}this[X(-0x1bb,-0x1b1)](a);this['calculateTransitionsSync'](this[X(-0x1c4,-0x1d9)]);return this[X(-0x23b,-0x214)]();}['reject'](a=RejectEffect[_enu(-0xc0,-0x7d)]()){function Y(a,b){return _enu(b,a-0x26b);}this[Y(0x19f,0x19f)]=a;this['walkContext']=void 0x0;}['stop'](){function Z(a,b){return _enu(b,a-0x21f);}this[Z(0x163,0x183)]=!![];}[_enu(-0x77,-0x7f)](){for(const a of this[a0(0x313,0x345)][a0(0x2c6,0x2f3)]()){a[a0(0x2ef,0x2ca)]();}function a0(a,b){return _enu(b,a-0x384);}this['entries'][a0(0x2c7,0x2c4)]();}async['commitAsync'](a){this[a1(-0x178,-0x13f)](a);function a1(a,b){return _enu(b,a- -0xf3);}return this[a1(-0x1d2,-0x1af)]=this['ongoing'][a1(-0x168,-0x140)](()=>{function a2(a,b){return a1(b- -0xdb,a);}return runGeneratorAsyncWithEffect(this[a2(-0x2db,-0x2bb)],this[a2(-0x23b,-0x236)],[this[a2(-0x2ac,-0x2bb)]],this);})[a1(-0x168,-0x175)](()=>{function a3(a,b){return a1(a-0x46c,b);}return this[a3(0x291,0x2cf)]();});}[_enu(-0x6f,-0x6b)](a){let b=this[a4(0x439,0x462)][a4(0x407,0x435)](a)||this[a4(0x42e,0x443)][a4(0x43f,0x46e)](a);function a4(a,b){return _enu(b,a-0x4aa);}if(b&&b[a4(0x3d9,0x3d8)]()===TombStone)return void 0x0;return b;}[_enu(-0x80,-0x8d)](a){function a5(a,b){return _enu(a,b-0x103);}let b=this['entries'][a5(0x7b,0x60)](a);if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0&&b['proposedValue']===void 0x0?this[a5(0x7b,0x87)][a5(0xd2,0x98)](a):b;}else{return this[a5(0x46,0x87)][a5(0xd7,0x98)](a);}}[_enu(-0xbd,-0xe1)](a){let b=this[a6(-0x14,-0x48)][a6(-0x38,-0x7a)](a);function a6(a,b){return _enu(a,b-0x29);}if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0?this['baseRevision'][a6(-0x22,-0x42)](a):b;}else{return this[a6(-0x8a,-0x53)]['getLatestEntryFor'](a);}}['addEdge'](a,b,c){const d=b[a7(0x42,0x77)];if(d[a7(0xc,0x19)]<a[a7(0xc,-0x32)])throw new Error('Identifier can not read from higher level identifier');let e=this[a7(0x55,0x10)][a7(0x23,-0x2)](a);function a7(a,b){return _enu(b,a-0xc6);}if(!e){const f=this[a7(0x4a,0xa)][a7(0x5b,0x86)](a);if(!f)throwUnknownIdentifier(a);e=a['newQuark'](this[a7(0x4a,0x83)]);e['setOrigin'](f);e[a7(0x3a,0x3a)]=f;this[a7(0x55,0x6a)]['set'](a,e);}e[a7(0x2,-0x1e)](b,c);return e;}[_enu(-0x93,-0xb4)](a,b){a[a8(0x43f,0x471)]();const c=a[a8(0x44e,0x482)];function a8(a,b){return _enu(a,b-0x506);}const d=a[a8(0x43e,0x47a)];const e=Boolean(d&&d[a8(0x4c9,0x499)]()&&c[a8(0x47a,0x46d)](b,d[a8(0x43e,0x435)]()));if(e){d[a8(0x446,0x45b)](this,g=>{const h=this['entries'][a9(-0x108,-0x101)](g[a9(-0xe9,-0xa6)]);function a9(a,b){return a8(b,a- -0x56b);}if(h)h['edgesFlow']--;});a[a8(0x463,0x47c)]=MAX_SMI;a[a8(0x4bb,0x477)](d[a8(0x3f4,0x423)]);}else{a[a8(0x45d,0x453)]();a[a8(0x3f5,0x414)](b);}let f=![];if(a[a8(0x4a4,0x46e)]){if(a[a8(0x470,0x49c)]!==void 0x0){if(c[a8(0x43a,0x46d)](b,a['proposedValue']))f=!![];}else{if(e||!d&&b===null)f=!![];}if(!f)this[a8(0x483,0x458)][a8(0x47a,0x434)][a8(0x452,0x465)](c);}}['onReadIdentifier'](a,b,c){const d=this[aa(0xbe,0x82)](a,b,EdgeTypeNormal);function aa(a,b){return _enu(b,a-0x18d);}if(d['hasValue']()||d[aa(0xb2,0xf2)]!==void 0x0){const e=d[aa(0xbc,0xc5)]();if(e===TombStone)throwUnknownIdentifier(a);return b['continueCalculation'](e);}else if(d[aa(0xcc,0xb3)]()){d['startOrigin']();d[aa(0xff,0x109)]();c[aa(0xdb,0xfc)](d);return void 0x0;}else{if(!d[aa(0xdd,0xc9)]()){c['push'](d);if(!d[aa(0x101,0xbd)]||!d[aa(0x101,0x11b)][aa(0x120,0x128)]())d[aa(0xff,0x144)]();return void 0x0;}else{let f;const g=TransactionCycleDetectionWalkContext[aa(0x110,0x138)]({'transaction':this,'onCycle'(h,i){function ab(a,b){return aa(a-0xfd,b);}f=ComputationCycle[ab(0x20d,0x22f)]({'cycle':cycleInfo(i),'requestedEntry':d,'activeEntry':b});return OnCycleAction[ab(0x1de,0x1f8)];}});g[aa(0xe4,0x12c)]([d[aa(0x109,0x108)]]);return f;}}}*[_enu(-0x8c,-0x68)](a){function ac(a,b){return _enu(b,a-0x33e);}const b=this[ac(0x289,0x266)];while(b[ac(0x24e,0x20b)]){yield*this[ac(0x2b8,0x286)](a,b['takeLowestLevel']());}}[_enu(-0x81,-0xaf)](a){function ad(a,b){return _enu(b,a-0x16c);}const b=this['stackGen'];while(b[ad(0x7c,0xb6)]){this[ad(0x7d,0xa4)](a,b[ad(0xcf,0x8e)]());}}*[_enu(-0x8e,-0x86)](a,b){if(this[ae(-0x291,-0x260)]||this[ae(-0x26d,-0x250)])return;this[ae(-0x234,-0x26d)][ae(-0x265,-0x280)]();const c=this[ae(-0x1ff,-0x205)];const d=this[ae(-0x258,-0x256)];const e=this['graph']?this[ae(-0x205,-0x22a)][ae(-0x216,-0x230)]:![];let f=0x0;let g=this[ae(-0x257,-0x27a)];this[ae(-0x26a,-0x27a)]=b;function ae(a,b){return _enu(a,b- -0x194);}while(b['length']&&!this[ae(-0x244,-0x260)]&&!this[ae(-0x20f,-0x250)]){if(e&&!(f++%this['emitProgressNotificationsEveryCalculations'])){const m=Date[ae(-0x263,-0x228)]();const n=m-d;if(n>this[ae(-0x20e,-0x20b)]){const o=this[ae(-0x22e,-0x23e)];if(!o||m-o>this[ae(-0x1e9,-0x22f)]){this[ae(-0x1ff,-0x23e)]=m;this[ae(-0x1ef,-0x22a)][ae(-0x244,-0x23c)]({'total':this[ae(-0x2b4,-0x285)],'remaining':this['stackGen'][ae(-0x279,-0x284)]+b[ae(-0x2a4,-0x284)],'phase':ae(-0x204,-0x24a)});this[ae(-0x295,-0x27a)]=g;yield delay(0x0);this[ae(-0x276,-0x27a)]=b;}}}if(this[ae(-0x246,-0x260)]||this['stopped'])break;const h=b[b[ae(-0x271,-0x284)]-0x1];const i=h[ae(-0x1f4,-0x218)];const j=c[ae(-0x20b,-0x237)](i);if(j!==h){h[ae(-0x248,-0x229)]();b[ae(-0x268,-0x27e)]();continue;}if(!i[ae(-0x21e,-0x25c)]&&h[ae(-0x231,-0x21e)]==0x0){h[ae(-0x243,-0x21e)]--;const p=h[ae(-0x232,-0x220)];p&&p[ae(-0x202,-0x23f)](this,q=>{const r=c[af(-0x3b,-0x4)](q['identifier']);function af(a,b){return ae(a,b-0x233);}if(r)r[af(-0xf,0x15)]--;});}if(!i['ignoreEdgesFlow']&&h[ae(-0x215,-0x21e)]<0x0&&h[ae(-0x20e,-0x220)]&&h['previous'][ae(-0x26f,-0x277)]){h[ae(-0x22b,-0x223)](h[ae(-0x22d,-0x220)][ae(-0x26d,-0x277)]);if(h['size']===0x0){c[ae(-0x25a,-0x232)](i);}h[ae(-0x20d,-0x229)]();b['pop']();continue;}if(h[ae(-0x225,-0x201)]()||h[ae(-0x1e0,-0x1fe)]===TombStone){h[ae(-0x1f5,-0x229)]();b[ae(-0x2c5,-0x27e)]();continue;}const k=h[ae(-0x21e,-0x262)];let l=h['isCalculationStarted']()?h[ae(-0x238,-0x25a)]:h['startCalculation'](this['onEffectSync']);while(l&&!this[ae(-0x27f,-0x260)]&&!this[ae(-0x26b,-0x250)]){const q=l[ae(-0x25d,-0x26f)]===void 0x0?null:l[ae(-0x2a6,-0x26f)];if(h[ae(-0x25b,-0x257)]()){if(h[ae(-0x2aa,-0x262)]==k){this[ae(-0x242,-0x248)](h,q);}b['pop']();break;}else if(q instanceof Identifier){const r=this[ae(-0x245,-0x236)](q,h,b);if(r instanceof ComputationCycle){this[ae(-0x26f,-0x26d)]['startNewEpoch']();this[ae(-0x25d,-0x27a)]=g;yield*this[ae(-0x23b,-0x22a)][ae(-0x1fc,-0x1fb)](r);g=this[ae(-0x2a2,-0x27a)];this[ae(-0x245,-0x27a)]=b;h[ae(-0x245,-0x24c)]();l=void 0x0;}else{l=r;}}else if(q===SynchronousCalculationStarted){b[ae(-0x290,-0x27e)]();break;}else{const s=yield q;if(s===BreakCurrentStackExecution)break;if(h['visitEpoch']===k){l=h[ae(-0x20c,-0x215)](s);}else{b[ae(-0x2be,-0x27e)]();break;}}}}this[ae(-0x2ac,-0x27a)]=g;}[_enu(-0xe8,-0xef)](a,b){function ag(a,b){return _enu(a,b-0x34f);}if(this['rejectedWith']||this[ag(0x2c3,0x293)])return;this[ag(0x281,0x276)][ag(0x252,0x263)]();const c=this['entries'];let d=this[ag(0x22a,0x269)];this[ag(0x228,0x269)]=b;while(b[ag(0x255,0x25f)]&&!this[ag(0x24b,0x283)]&&!this[ag(0x259,0x293)]){const e=b[b[ag(0x278,0x25f)]-0x1];const f=e[ag(0x28c,0x2cb)];const g=c[ag(0x2ed,0x2ac)](f);if(g!==e){e[ag(0x2da,0x2ba)]();b[ag(0x24f,0x265)]();continue;}if(e[ag(0x28b,0x2c5)]==0x0){e[ag(0x2c3,0x2c5)]--;const j=e[ag(0x280,0x2c3)];j&&j[ag(0x261,0x2a4)](this,k=>{const l=c['get'](k[ah(-0x287,-0x2bc)]);function ah(a,b){return ag(a,b- -0x587);}if(l)l[ah(-0x28a,-0x2c2)]--;});}if(e['edgesFlow']<0x0&&e['previous']&&e[ag(0x2c3,0x2c3)][ag(0x26c,0x26c)]){e[ag(0x2d3,0x2c0)](e[ag(0x29f,0x2c3)][ag(0x260,0x26c)]);if(e[ag(0x2a6,0x2df)]===0x0){c[ag(0x2cb,0x2b1)](f);}e[ag(0x295,0x2ba)]();b[ag(0x283,0x265)]();continue;}if(e['hasValue']()||e[ag(0x310,0x2e5)]===TombStone){e[ag(0x2d0,0x2ba)]();b[ag(0x21d,0x265)]();continue;}const h=e[ag(0x2c5,0x281)];let i=e[ag(0x290,0x29f)]()?e[ag(0x292,0x289)]:e['startCalculation'](this[ag(0x2cc,0x2a2)]);while(i&&!this[ag(0x29c,0x283)]&&!this[ag(0x2d0,0x293)]){const k=i[ag(0x273,0x274)]===void 0x0?null:i[ag(0x2aa,0x274)];if(e[ag(0x2c8,0x28c)]()){if(e[ag(0x2b5,0x281)]==h){this[ag(0x2a3,0x29b)](e,k);}b[ag(0x297,0x265)]();break;}else if(k instanceof Identifier){const l=this[ag(0x2ed,0x2ad)](k,e,b);if(l instanceof ComputationCycle){this[ag(0x24c,0x276)][ag(0x273,0x263)]();this[ag(0x226,0x269)]=d;this[ag(0x2c0,0x2b9)]['onComputationCycleHandlerSync'](l,this);d=this['activeStack'];this[ag(0x23a,0x269)]=b;e['cleanupCalculation']();i=void 0x0;}else{i=l;}}else if(k===SynchronousCalculationStarted){b[ag(0x28c,0x265)]();break;}else{const m=a(k);if(isPromise(m))throw new Error(ag(0x27d,0x2a9));if(m===BreakCurrentStackExecution)break;if(e[ag(0x2b8,0x281)]===h){i=e[ag(0x2f6,0x2ce)](m);}else{b[ag(0x24a,0x265)]();break;}}}}this[ag(0x299,0x269)]=d;}}export{EdgeTypeNormal,EdgeTypePast,Transaction};
1
+ (function(a,b){function t(a,b){return _enb(a-0x10a,b);}const c=a();while(!![]){try{const d=-parseInt(t(0x210,0x216))/0x1+-parseInt(t(0x275,0x292))/0x2*(parseInt(t(0x240,0x253))/0x3)+parseInt(t(0x1f7,0x1d3))/0x4+-parseInt(t(0x236,0x27b))/0x5+parseInt(t(0x1eb,0x1da))/0x6*(-parseInt(t(0x232,0x270))/0x7)+-parseInt(t(0x245,0x21b))/0x8*(-parseInt(t(0x226,0x261))/0x9)+-parseInt(t(0x247,0x277))/0xa*(-parseInt(t(0x24e,0x28c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xdf729));import{Base}from'../class/Base.js';import{DEBUG}from'../environment/Debug.js';function _ena(){const al=['add','getLatestStableOrProposedEntryFor','forceCalculation','isCalculationCompleted','identifier','ignoreEdgesFlow','outgoingInTheFutureAndPastTransactionCb','calculateTransitionsStackSync','UserInput','clearCycles','isCalculationStarted','walkContext','get','4setaCd','continueCalculation','entries','readingIdentifier','yieldSync','readProposedOrPreviousAsync','cachedBaseRevisionLookup','getActiveEntry','requestedEntry','readCurrentOrProposedOrPreviousAsync','selfDependent','hasProposedValue','now','reason','set','emitProgressNotificationsEveryCalculations','Computation\x20cycle.\x20Async\x20get','acquireQuarkIfExists','8300922NljiZf','getLatestStableEntryFor','forEach','readCurrentOrProposedOrPrevious','yieldAsync','startCalculation','readProposedOrPrevious','activeStack','onComputationCycleHandler','stop','visitEpoch','readPrevious','5012124uZgLpq','origin','level','removeIdentifier','Transaction\x20rejected:\x20','read','length','cycledIdentifiers','previous','onQuarkCalculationCompleted','addIdentifier','getWriteTarget','cleanup','lastProgressNotificationDate','emitProgressNotificationsEveryMs','pop','readPreviousAsync','quark','promise','addCycle','resolve','plannedTotalIdentifiersToCalculate','new','markSelfDependent','candidateClass','1041865LvZbYN','delete','then','calculateTransitionsStackGen','isClosed','bind','initialize','newQuark','hasValue','hasIdentifier','baseRevision','onEffectAsync','onReadIdentifier','onComputationCycleHandlerSync','handler','proposedValue','stopped','commit','Normal','cleanupCalculation','stackGen','edgesFlow','7146tzYAOm','startNewEpoch','baseRevisionCache','hasEntryWithProposedValue','graph','propagating','context','shift','readAsync','Can\x20not\x20yield\x20a\x20promise\x20in\x20the\x20synchronous\x20context','hasVariableEntry','calculateTransitionsSync','7CfeZDR','has','cycle','enterGraph','3375830lkWPWW','ongoing','rejectedWith','cycles','clearRejected','getLatestEntryFor','iterationResult','size','reject','value','2578491xtVPcy','candidate','leaveGraph','calculateTransitions','scope','4160ZRabhQ','onEffectSync','40688420SftBuW','postCommit','getOutgoing','populateCandidateScopeFromTransitions','takeLowestLevel','startProgressNotificationsAfterMs','addEdge','11mLvDRJ','equality','from','write','push','getLowestLevel','setValue','onPropagationProgressNotification','getValue','preCommit','propagationStartDate','touch','isWritingUndefined','sync','Cycle\x20during\x20synchronous\x20computation','isShadow','values','Past','startOrigin','lazy','call','filter','setOrigin','selfDependedMarked','clear','Computation\x20cycle.\x20Sync'];_ena=function(){return al;};return _ena();}import{cycleInfo,OnCycleAction}from'../graph/WalkDepth.js';import{runGeneratorAsyncWithEffect,SynchronousCalculationStarted}from'../primitives/Calculation.js';import{delay,isPromise,MAX_SMI}from'../util/Helpers.js';import{LeveledQueue}from'../util/LeveledQueue.js';import{BreakCurrentStackExecution,RejectEffect}from'./Effect.js';function _enu(a,b){return _enb(a- -0x9b,b);}import{Identifier,Levels,throwUnknownIdentifier}from'./Identifier.js';import{EdgeType,TombStone}from'./Quark.js';import{Revision}from'./Revision.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xda;let f=c[d];return f;};return _enb(a,b);}import{ComputationCycle,TransactionCycleDetectionWalkContext}from'./TransactionCycleDetectionWalkContext.js';import{TransactionWalkDepth}from'./TransactionWalkDepth.js';const EdgeTypeNormal=EdgeType[_enu(0x7d,0xc0)];const EdgeTypePast=EdgeType[_enu(0xba,0x6c)];class Transaction extends Base{constructor(){super(...arguments);this[v(-0x1fb,-0x1ec)]=void 0x0;this['candidateClass']=Revision;this[v(-0x1d4,-0x1ca)]=void 0x0;this[v(-0x1eb,-0x203)]=void 0x0;this[v(-0x201,-0x1da)]=![];this[v(-0x1a2,-0x185)]=void 0x0;this['entries']=new Map();this[v(-0x1f1,-0x1b1)]=new LeveledQueue();this[v(-0x223,-0x268)]=[];this[v(-0x1cf,-0x192)]=void 0x0;this[v(-0x1fa,-0x1ac)]=void 0x0;this[v(-0x1bd,-0x183)]=0x0;this[v(-0x211,-0x206)]=0x0;this[v(-0x1c9,-0x1f1)]=0x1f4;this['emitProgressNotificationsEveryMs']=0xc8;this[v(-0x22d,-0x254)]=0x64;this[v(-0x209,-0x204)]=0x0;this[v(-0x1de,-0x1af)]=Promise[v(-0x20a,-0x23c)]();this[v(-0x1b0,-0x1f0)]=![];this['rejectedWith']=void 0x0;function v(a,b){return _enu(a- -0x270,b);}this['stopped']=![];this['hasEntryWithProposedValue']=![];this[v(-0x1e5,-0x1e0)]=![];this[v(-0x1ed,-0x238)]=new Map();this[v(-0x1dc,-0x1af)]=new Set();this['cycledIdentifiers']=new Map();}['initialize'](...a){super[w(0x31e,0x2d2)](...a);this[w(0x37b,0x36d)]=TransactionWalkDepth[w(0x315,0x2fd)]({'visited':this['entries'],'transaction':this,'baseRevision':this[w(0x322,0x2dc)],'pushTo':this[w(0x32c,0x2e3)]});if(!this['candidate'])this[w(0x349,0x382)]=this[w(0x317,0x33d)][w(0x315,0x34d)]({'previous':this[w(0x322,0x2ec)]});this[w(0x34e,0x320)]=this['read']['bind'](this);function w(a,b){return _enu(a-0x2ad,b);}this['onEffectAsync']=this[w(0x336,0x351)][w(0x31d,0x350)](this);}get['dirty'](){function x(a,b){return _enu(a-0x1e9,b);}return this[x(0x2bb,0x2d0)]['size']>0x0;}[_enu(0x69,0x29)](){if(this[y(0x46,0x40)])return;this[y(0x46,0x62)]=!![];function y(a,b){return _enu(a- -0x7a,b);}for(const a of this[y(-0x5,0x4)]['selfDependent']){const b=this[y(0x58,0x1f)][y(0x55,0x26)](a);if(b&&b[y(0x37,0x44)]()===TombStone)continue;this[y(0x3a,-0xc)](a);}}[_enu(0xd7,0x9b)](){function z(a,b){return _enu(a- -0x33f,b);}return this[z(-0x2f2,-0x318)][this[z(-0x2f2,-0x306)][z(-0x2e7,-0x334)]-0x1];}[_enu(0x4a,0x75)](a){if(isPromise(a))return a;function A(a,b){return _enu(a-0x249,b);}return this['graph'][a[A(0x2c2,0x2ea)]](a,this);}['yieldSync'](a){function B(a,b){return _enu(b-0xce,a);}if(isPromise(a)){throw new Error(B(0x133,0x158));}return this['graph'][a[B(0x15a,0x147)]](a,this);}['readAsync'](a){function C(a,b){return _enu(a-0x235,b);}if(!(a instanceof Identifier))return this[C(0x27f,0x28e)](a);let b;const c=this['getActiveEntry']();if(c){b=this[C(0x2dd,0x31e)](a,c,EdgeTypeNormal);}else{b=this[C(0x307,0x2f9)][C(0x304,0x2bb)](a);if(!b){const d=this[C(0x30b,0x343)](a);if(!d)throwUnknownIdentifier(a);b=d[C(0x2a8,0x2f6)]()?d:this[C(0x2e9,0x328)](a);}}if(b['hasValue']())return b[C(0x2e6,0x2d7)]();if(b['promise'])return b['promise'];if(!b[C(0x28f,0x2d3)]||!b['previous'][C(0x2a8,0x295)]())b[C(0x2fa,0x2b5)]();return this[C(0x2c7,0x2d6)]=b[C(0x299,0x2ad)]=this['ongoing'][C(0x2a2,0x27a)](()=>{return((async()=>{function D(a,b){return _enb(b-0x14e,a);}while(this[D(0x284,0x268)]['lowestLevel']<a[D(0x215,0x23d)]){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this[D(0x289,0x257)],[this[D(0x25c,0x25f)],this[D(0x229,0x268)][D(0x2b7,0x28f)]()],this);}if(this['rejectedWith']){throw new Error('Transaction\x20rejected:\x20'+String(this[D(0x26b,0x27c)][D(0x251,0x22a)]));}this[D(0x26c,0x252)]();if(b['getValue']()===void 0x0){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this['calculateTransitionsStackGen'],[this[D(0x230,0x25f)],[b]],this);}if(this['rejectedWith']){throw new Error(D(0x247,0x23f)+String(this[D(0x2aa,0x27c)][D(0x251,0x22a)]));}if(!b[D(0x226,0x25c)]()){throw new Error(D(0x29f,0x2ab));}return b[D(0x2bd,0x29a)]();})());});}[_enu(0xcf,0x116)](a){if(!(a instanceof Identifier))return this[E(0x262,0x21c)](a);let b;const c=this[E(0x25b,0x21f)]();function E(a,b){return _enu(b-0x148,a);}if(c){b=this[E(0x238,0x1f0)](a,c,EdgeTypeNormal);}else{b=this['entries'][E(0x21f,0x217)](a);if(!b){const f=this[E(0x248,0x21e)](a);if(!f)throwUnknownIdentifier(a);b=f[E(0x180,0x1bb)]()?f:this[E(0x1b1,0x1fc)](a);}}const d=b[E(0x226,0x1f9)]();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0&&b[E(0x1a1,0x1bb)]())return d;if(b[E(0x1a5,0x1ac)])return b[E(0x1e0,0x1ac)];if(!b[E(0x175,0x1a2)]||!b[E(0x1ad,0x1a2)]['hasValue']())b['forceCalculation']();const e=this[E(0x1ef,0x1c3)];while(this[E(0x1c8,0x1c7)][E(0x1d5,0x1f6)]()<a[E(0x16a,0x19c)]){this[E(0x1c9,0x1c3)]=![];this[E(0x257,0x212)](this[E(0x1b0,0x1e9)],this[E(0x191,0x1c7)][E(0x1ab,0x1ee)]());this[E(0x1ed,0x1c3)]=e;}this[E(0x178,0x1b1)]();if(a[E(0x1d7,0x1fe)]){this[E(0x1ca,0x1c3)]=![];this['calculateTransitionsStackSync'](this[E(0x1d5,0x1e9)],[b]);this[E(0x191,0x1c3)]=e;const g=b[E(0x1ba,0x1f9)]();if(g===void 0x0)throw new Error(E(0x1f3,0x1ff));if(g===TombStone)throwUnknownIdentifier(a);return g;}else{const h=this['ongoing']=b[E(0x187,0x1ac)]=this[E(0x1ea,0x1da)]['then'](()=>{function F(a,b){return E(b,a-0x1eb);}if(b[F(0x3e4,0x40a)]()===void 0x0)return runGeneratorAsyncWithEffect(this['onEffectAsync'],this['calculateTransitionsStackGen'],[this[F(0x3a9,0x38c)],[b]],this);})[E(0x1f2,0x1b5)](()=>{if(this[G(-0x222,-0x22a)])throw new Error(G(-0x25f,-0x23f)+String(this[G(-0x222,-0x210)][G(-0x274,-0x290)]));const i=b['getValue']();if(i===void 0x0)throw new Error(G(-0x271,-0x228));function G(a,b){return E(b,a- -0x3fd);}if(i===TombStone)throwUnknownIdentifier(a);return i;});if(DEBUG){h[E(0x15f,0x1ab)]=b;}return h;}}[_enu(0x57,0x28)](a){if(!(a instanceof Identifier))return this[H(-0x272,-0x24e)](a);const b=this[H(-0x244,-0x24f)];this['readingIdentifier']=a;let c;const d=this[H(-0x24f,-0x24b)]();if(d){c=this[H(-0x2ae,-0x27a)](a,d,EdgeTypeNormal);}else{c=this[H(-0x29c,-0x250)][H(-0x228,-0x253)](a);if(!c){const g=this[H(-0x295,-0x24c)](a);if(!g){this[H(-0x246,-0x24f)]=b;throwUnknownIdentifier(a);}c=g[H(-0x2c4,-0x2af)]()?g:this[H(-0x25d,-0x26e)](a);}}const e=c[H(-0x259,-0x271)]();if(e===TombStone){this[H(-0x287,-0x24f)]=b;throwUnknownIdentifier(a);}if(e!==void 0x0){this[H(-0x22c,-0x24f)]=b;return e;}if(!c[H(-0x2ef,-0x2c8)]||!c[H(-0x314,-0x2c8)][H(-0x2c3,-0x2af)]())c['forceCalculation']();while(this[H(-0x271,-0x2a3)][H(-0x278,-0x274)]()<a[H(-0x297,-0x2ce)]){this[H(-0x269,-0x258)](this[H(-0x26a,-0x281)],this[H(-0x27c,-0x2a3)][H(-0x2b9,-0x27c)]());}function H(a,b){return _enu(b- -0x322,a);}this['markSelfDependent']();this['calculateTransitionsStackSync'](this[H(-0x282,-0x281)],[c]);const f=c[H(-0x255,-0x271)]();this[H(-0x23d,-0x24f)]=b;if(f===TombStone){throwUnknownIdentifier(a);}return f;}[_enu(0x49,0x46)](a){const b=this[I(0xa8,0xbc)][I(0xa5,0x88)](a);if(b){const c=b[I(0x87,0x5b)]();if(c!==void 0x0)return c;if(b[I(0x50,0x86)]!==void 0x0)return b[I(0x50,0x8b)];}function I(a,b){return _enu(a- -0x2a,b);}return this[I(0x27,0x15)](a);}[_enu(0xd9,0x9c)](a){const b=this[J(-0x1a5,-0x1c4)][J(-0x1a8,-0x170)](a);function J(a,b){return _enu(a- -0x277,b);}if(b){const c=b[J(-0x1c6,-0x17e)]();if(c!==void 0x0)return c;if(b[J(-0x1fd,-0x22b)]!==void 0x0)return b[J(-0x1fd,-0x234)];}return this[J(-0x215,-0x1c9)](a);}[_enu(0x51,0x5)](a){const b=this[K(0x385,0x399)](a);if(!b)return void 0x0;const c=b[K(0x360,0x38b)]();function K(a,b){return _enu(a-0x2af,b);}return c!==TombStone?c===void 0x0&&a[K(0x36b,0x373)]?this['read'](a):c:void 0x0;}['readPreviousAsync'](a){const b=this[L(-0x24,-0x72)](a);function L(a,b){return _enu(a- -0xfa,b);}if(!b)return void 0x0;const c=b[L(-0x49,-0x19)]();return c!==TombStone?c!==void 0x0?c:this[L(-0x71,-0xb4)](a):void 0x0;}[_enu(0x4c,0x97)](a){const b=this[M(0x2da,0x29a)][M(0x28d,0x297)](a);function M(a,b){return _enu(b-0x1c8,a);}if(b&&b['proposedValue']!==void 0x0){return b[M(0x264,0x242)];}else{return this[M(0x1e7,0x219)](a);}}[_enu(0xd5,0xb0)](a){const b=this[N(0x31,0x77)]['get'](a);function N(a,b){return _enu(a- -0xa1,b);}if(b&&b[N(-0x27,-0x21)]!==void 0x0){return b[N(-0x27,0x20)];}else{return this['readPreviousAsync'](a);}}[_enu(0xac,0x66)](a,b,...c){if(b===void 0x0)b=null;a[O(0x122,0xdd)]['call'](a[O(0xfd,0xce)]||a,a,this,null,b,...c);const d=this['entries']['get'](a);this[O(0x101,0x13e)]=this[O(0x101,0xed)]||!d[O(0x12e,0x16f)]()&&a[O(0xca,0x8a)]===Levels['UserInput'];function O(a,b){return _enu(a-0x76,b);}this[O(0xfa,0xe9)]=this[O(0xfa,0xd5)]||d[O(0xb5,0x68)]();}[_enu(0x5d,0x60)](a){function P(a,b){return _enu(a-0xa9,b);}return this[P(0x15d,0x1a2)](a)[P(0x164,0x122)]();}[_enu(0x45,0x77)](a){const b=this[Q(0x362,0x324)][Q(0x35f,0x342)](a);function Q(a,b){return _enu(a-0x290,b);}return b&&b['origin']===b?b[Q(0x2e3,0x29d)]:void 0x0;}['touch'](a){const b=this['entries'][R(-0x89,-0x60)](a);const {walkContext:c}=this;if(c&&(!b||b[R(-0x108,-0x121)]<c['currentEpoch'])){c['continueFrom']([a]);}const d=b||this[R(-0x86,-0x8c)][R(-0x89,-0x4b)](a);d[R(-0x93,-0x60)]();function R(a,b){return _enu(a- -0x158,b);}return d;}[_enu(0x74,0x73)](a){const b=this[S(0x102,0xc9)][S(0xff,0x122)](a);function S(a,b){return _enu(a-0x30,b);}if(b&&b[S(0xe1,0x106)]()===TombStone)return![];return Boolean(b||this[S(0x106,0xe0)](a));}[_enu(0x5c,0x99)](a,b,...c){let d=this[T(-0x1d8,-0x1ee)][T(-0x1db,-0x1a3)](a);const e=Boolean(d);const f=a[T(-0x256,-0x28d)]===Levels[T(-0x1df,-0x1a2)];if(!d){d=a[T(-0x238,-0x239)](this[T(-0x235,-0x203)]);d[T(-0x250,-0x258)]=this['cachedBaseRevisionLookup'](a);d[T(-0x1e5,-0x19d)]();this[T(-0x1d8,-0x1b3)][T(-0x268,-0x268)](a,d);if(!a[T(-0x1ee,-0x239)]&&!f)this['stackGen'][T(-0x1fd,-0x20e)](d);this['hasVariableEntry']=this[T(-0x21f,-0x20b)]||!d['isShadow']()&&f;this[T(-0x226,-0x252)]=this[T(-0x226,-0x1f4)]||d[T(-0x26b,-0x27b)]();}function T(a,b){return _enu(a- -0x2aa,b);}if(b!==void 0x0||f){d[T(-0x1ef,-0x20f)]();const g=e&&(d[T(-0x230,-0x241)]!==void 0x0||d['value']!==void 0x0);if(!g||d[T(-0x230,-0x206)]===TombStone||d[T(-0x210,-0x210)]===TombStone){a[T(-0x1f5,-0x23c)]=b===void 0x0;a[T(-0x1fe,-0x1cd)][T(-0x1ed,-0x233)](a[T(-0x223,-0x213)]||a,a,this,d,b===void 0x0&&f?null:b,...c);a[T(-0x1f5,-0x1b9)]=![];}}if(d[T(-0x1f9,-0x1c4)]()===TombStone)d[T(-0x210,-0x1d5)]=void 0x0;if(d[T(-0x230,-0x25c)]===TombStone)d[T(-0x230,-0x1f6)]=void 0x0;a[T(-0x21a,-0x21d)](this[T(-0x225,-0x1e3)]);return d;}[_enu(0x55,0x4f)](a){a[U(-0x4f,-0x52)](this[U(-0x88,-0x6a)]);const b=this[U(-0x4c,-0x3b)](a)['startOrigin']();b[U(-0xb,-0x40)](TombStone);function U(a,b){return _enu(b- -0xef,a);}this[U(-0x90,-0x53)][U(-0x56,-0x15)][U(-0xac,-0x83)](a);}[_enu(0xa5,0xc2)](a,b){function V(a,b){return _enu(b- -0x148,a);}if(a[V(-0xbd,-0xa9)]['size']===0x0){a[V(-0xe1,-0xa9)]=b;}else{for(const [c,d]of b){if(d[V(-0x49,-0x90)]()){const e=a[V(-0x8f,-0xb2)](c);const f=e['getOutgoing']();for(const [g,h]of d[V(-0xd4,-0xa4)]()){f[V(-0xf4,-0x106)](g,h);}}else{a[V(-0xd4,-0xa9)]['set'](c,d);}}}}[_enu(0xb2,0x9c)](a){if(this[W(-0x9c,-0xa0)])throw new Error('Can\x20not\x20propagate\x20closed\x20revision');this[W(-0xa2,-0xeb)]();this[W(-0x9c,-0x89)]=!![];function W(a,b){return _enu(a- -0x10b,b);}this[W(-0x58,-0x59)]=Date[W(-0xcb,-0x116)]();this[W(-0xa4,-0xb1)]=this[W(-0x8c,-0x83)][W(-0xb3,-0xea)];}[_enu(0xa3,0x73)](){function X(a,b){return _enu(b- -0x2de,a);}this['populateCandidateScopeFromTransitions'](this['candidate'],this[X(-0x243,-0x20c)]);const a=this[X(-0x1e1,-0x20c)];this[X(-0x23e,-0x210)]=void 0x0;this[X(-0x23d,-0x25b)]=new Map();return{'revision':this[X(-0x28b,-0x242)],'entries':a,'transaction':this};}[_enu(0x7c,0xb4)](a){this[Y(0x441,0x3fc)](a);function Y(a,b){return _enu(b-0x34a,a);}this[Y(0x3a3,0x3d6)](this[Y(0x3ac,0x3eb)]);return this[Y(0x42c,0x3ed)]();}[_enu(0x99,0x88)](a=RejectEffect[_enu(0x68,0x32)]()){this[Z(0x147,0x133)]=a;function Z(a,b){return _enu(a-0xb4,b);}this[Z(0x182,0x180)]=void 0x0;this['clearCycles']();}[_enu(0x4f,0x72)](){this['stopped']=!![];}[_enu(0x95,0xbc)](){function a0(a,b){return _enu(a- -0x2cc,b);}for(const a of this['entries'][a0(-0x213,-0x1f1)]()){a[a0(-0x26e,-0x253)]();}this[a0(-0x1fa,-0x1c3)][a0(-0x20b,-0x246)]();}async['commitAsync'](a){this[a1(0x15c,0x116)](a);function a1(a,b){return _enu(b-0x64,a);}return this[a1(0x119,0xf6)]=this[a1(0x120,0xf6)][a1(0xe0,0xd1)](()=>{function a2(a,b){return a1(a,b- -0x326);}return runGeneratorAsyncWithEffect(this[a2(-0x23a,-0x24c)],this[a2(-0x266,-0x224)],[this[a2(-0x207,-0x24c)]],this);})[a1(0x104,0xd1)](()=>{function a3(a,b){return a1(a,b- -0x305);}return this[a3(-0x21d,-0x1fe)]();});}[_enu(0xd6,0xb0)](a){const b=this[a4(-0x5b,-0x2e)];let c=b[a4(-0x21,0x1e)](a);if(c!==void 0x0)return c;c=this['baseRevision'][a4(-0x1c,-0x1b)](a);function a4(a,b){return _enu(b- -0xb1,a);}b[a4(-0x8c,-0x6f)](a,c);return c;}[_enu(0x96,0x88)](a){function a5(a,b){return _enu(a- -0x29,b);}let b=this['entries']['get'](a)||this[a5(0xad,0xf8)](a);if(b&&b['getValue']()===TombStone)return void 0x0;return b;}[_enu(0xc4,0x8d)](a){let b=this[a6(0x1b9,0x1c2)][a6(0x19f,0x1bf)](a);function a6(a,b){return _enu(b-0xf0,a);}if(b){const c=b[a6(0x1b1,0x1a1)]();if(c===TombStone)return void 0x0;return c===void 0x0&&b['proposedValue']===void 0x0?this[a6(0x194,0x1c6)](a):b;}else{return this['cachedBaseRevisionLookup'](a);}}[_enu(0x47,0x31)](a){let b=this[a7(0x1a0,0x1e4)][a7(0x19d,0x17a)](a);function a7(a,b){return _enu(a-0xce,b);}if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0?this[a7(0x1a4,0x1d1)](a):b;}else{return this[a7(0x1a4,0x1ea)](a);}}[_enu(0xa8,0x7a)](a,b,c){function a8(a,b){return _enu(a-0x1ce,b);}const d=b[a8(0x295,0x288)];if(d['level']<a[a8(0x222,0x211)])throw new Error('Identifier can not read from higher level identifier');let e=this[a8(0x2a0,0x254)][a8(0x29d,0x2cc)](a);if(!e){const f=this[a8(0x2a4,0x270)](a);if(!f)throwUnknownIdentifier(a);e=a[a8(0x240,0x22e)](this[a8(0x243,0x270)]);e[a8(0x28d,0x2ba)](f);e[a8(0x228,0x1f9)]=f;this[a8(0x2a0,0x255)]['set'](a,e);}e['addOutgoingTo'](b,c);return e;}[_enu(0x5b,0x92)](a,b){a[a9(0x71,0x51)]();const c=a['identifier'];function a9(a,b){return _enu(b- -0xd,a);}const d=a[a9(0x9a,0x4d)];const e=Boolean(d&&d[a9(0x98,0x66)]()&&c[a9(0xbb,0x9d)](b,d[a9(0xb6,0xa4)]()));if(e){d['outgoingInTheFutureAndPastTransactionCb'](this,g=>{function aa(a,b){return a9(a,b-0xd0);}const h=this[aa(0x147,0x195)]['get'](g[aa(0x17f,0x18a)]);if(h)h['edgesFlow']--;});a['edgesFlow']=MAX_SMI;a['setOrigin'](d[a9(0x83,0x46)]);}else{a['startOrigin']();a['setValue'](b);}let f=![];if(a['usedProposedOrPrevious']){if(a[a9(0x3c,0x6d)]!==void 0x0){if(c[a9(0xe7,0x9d)](b,a[a9(0x26,0x6d)]))f=!![];}else{if(e||!d&&b===null)f=!![];}if(!f)this[a9(0x59,0x8f)][a9(0x8a,0xcd)][a9(0x69,0xb6)](c);}}['onReadIdentifier'](a,b,c){const d=this['addEdge'](a,b,EdgeTypeNormal);function ab(a,b){return _enu(a- -0x149,b);}if(d[ab(-0xd6,-0xe5)]()||d['value']!==void 0x0){const e=d[ab(-0x98,-0x9c)]();if(e===TombStone)throwUnknownIdentifier(a);return b['continueCalculation'](e);}else if(d[ab(-0x91,-0x60)]()){d[ab(-0x8e,-0x99)]();d[ab(-0x84,-0x6d)]();c['push'](d);return void 0x0;}else{if(!d[ab(-0x7c,-0x80)]()){c[ab(-0x9c,-0xbf)](d);if(!d[ab(-0xef,-0xe3)]||!d['previous']['hasValue']())d[ab(-0x84,-0xab)]();return void 0x0;}else{let f;const g=TransactionCycleDetectionWalkContext['new']({'transaction':this,'onCycle'(h,i){f=ComputationCycle[ac(0x35c,0x31a)]({'cycle':cycleInfo(i),'requestedEntry':d,'activeEntry':b});function ac(a,b){return ab(a-0x43d,b);}return OnCycleAction['Cancel'];}});g['startFrom']([d[ab(-0x82,-0x3b)]]);return f;}}}*['calculateTransitions'](a){const b=this[ad(0x4d2,0x4c5)];function ad(a,b){return _enu(a-0x453,b);}while(b[ad(0x4ab,0x4b0)]){yield*this[ad(0x4c1,0x4f1)](a,b[ad(0x4f9,0x529)]());}}[_enu(0x8c,0x49)](a){const b=this[ae(-0x6e,-0xb3)];function ae(a,b){return _enu(b- -0x132,a);}while(b[ae(-0xcb,-0xda)]){this[ae(-0xb6,-0x68)](a,b[ae(-0xd0,-0x8c)]());}}*[_enu(0x6e,0xb9)](a,b){if(this[af(-0x11f,-0x167)]||this[af(-0x137,-0x113)])return;this[af(-0xe4,-0xc0)][af(-0x130,-0x151)]();const c=this['entries'];const d=this['propagationStartDate'];const e=this[af(-0x12d,-0x149)]?this['graph']['enableProgressNotifications']:![];let f=0x0;let g=this[af(-0x165,-0x162)];this[af(-0x165,-0x125)]=b;function af(a,b){return _enu(a- -0x1b2,b);}while(b[af(-0x15a,-0x16f)]&&!this['rejectedWith']&&!this[af(-0x137,-0x17c)]){if(e&&!(f++%this['emitProgressNotificationsEveryCalculations'])){const m=Date[af(-0x172,-0x124)]();const n=m-d;if(n>this[af(-0x10b,-0x127)]){const o=this[af(-0x153,-0x14b)];if(!o||m-o>this[af(-0x152,-0x141)]){this[af(-0x153,-0x181)]=m;this['graph'][af(-0x102,-0x145)]({'total':this['plannedTotalIdentifiersToCalculate'],'remaining':this[af(-0x133,-0x124)][af(-0x15a,-0x131)]+b[af(-0x15a,-0x147)],'phase':af(-0x12c,-0xf5)});this[af(-0x165,-0x1a8)]=g;yield delay(0x0);this[af(-0x165,-0x14b)]=b;}}}if(this[af(-0x11f,-0xe8)]||this[af(-0x137,-0x16e)])break;const h=b[b[af(-0x15a,-0x1a7)]-0x1];const i=h[af(-0xeb,-0x9e)];const j=c[af(-0xe3,-0xc1)](i);if(j!==h){h[af(-0x154,-0x18f)]();b[af(-0x151,-0x126)]();continue;}if(!i['ignoreEdgesFlow']&&h[af(-0x132,-0x12f)]==0x0){h['edgesFlow']--;const p=h[af(-0x158,-0x19a)];p&&p[af(-0xe9,-0xd7)](this,q=>{function ag(a,b){return af(a-0xd6,b);}const r=c[ag(-0xd,-0x2c)](q[ag(-0x15,-0x47)]);if(r)r[ag(-0x5c,-0x6b)]--;});}if(!i[af(-0xea,-0xfa)]&&h['edgesFlow']<0x0&&h[af(-0x158,-0x10d)]&&h[af(-0x158,-0x163)][af(-0x15f,-0x17d)]){h[af(-0xf3,-0xce)](h['previous']['origin']);if(h[af(-0x11a,-0x165)]===0x0){c[af(-0x146,-0x180)](i);}h['cleanup']();b['pop']();continue;}if(h[af(-0x13f,-0x14f)]()||h[af(-0x138,-0x170)]===TombStone){h[af(-0x154,-0x188)]();b[af(-0x151,-0x10e)]();continue;}const k=h[af(-0x162,-0x17e)];let l=h['isCalculationStarted']()?h[af(-0x11b,-0xd7)]:h[af(-0x167,-0x125)](this[af(-0x111,-0x116)]);while(l&&!this[af(-0x11f,-0x115)]&&!this['stopped']){const q=l[af(-0x118,-0x10b)]===void 0x0?null:l[af(-0x118,-0x111)];if(h['isCalculationCompleted']()){if(h[af(-0x162,-0x181)]==k){this[af(-0x157,-0x167)](h,q);}b[af(-0x151,-0x13c)]();break;}else if(q instanceof Identifier){const r=this[af(-0x13b,-0x166)](q,h,b);if(r instanceof ComputationCycle){this['walkContext'][af(-0x130,-0x179)]();this[af(-0x165,-0x14b)]=g;yield*this[af(-0x12d,-0x158)][af(-0x164,-0x15c)](r,this);g=this['activeStack'];this['activeStack']=b;h[af(-0x134,-0xe7)]();l=void 0x0;}else{l=r;}}else if(q===SynchronousCalculationStarted){b[af(-0x151,-0x167)]();break;}else{const s=yield q;if(s===BreakCurrentStackExecution)break;if(h['visitEpoch']===k){l=h[af(-0xe1,-0xf5)](s);}else{b[af(-0x151,-0x162)]();break;}}}}this[af(-0x165,-0x117)]=g;}[_enu(0x65,0x66)](a){this[ah(-0x108,-0x10f)][ah(-0xd9,-0x123)](a);const {cycledIdentifiers:b}=this;a[ah(-0x10d,-0x105)][ah(-0x154,-0x12f)](e=>{b['set'](e,a);});const c=[];function ah(a,b){return _enu(a- -0x19c,b);}let d=a[ah(-0xc4,-0x98)];while(d){b[ah(-0x15a,-0x182)](d[ah(-0xd5,-0xa0)],a);c[ah(-0xef,-0xcb)](...Array[ah(-0xf1,-0xab)](d[ah(-0xe3,-0xa1)]())[ah(-0xde,-0xb9)](e=>!b['has'](e[ah(-0xd5,-0xa0)])));d=c[ah(-0x114,-0x152)]();}}[_enu(0xcc,0xc9)](){function ai(a,b){return _enu(a- -0x267,b);}this[ai(-0x1d3,-0x1dd)]['clear']();this[ai(-0x20e,-0x1f3)][ai(-0x1a6,-0x176)]();}['calculateTransitionsStackSync'](a,b){if(this[aj(0x9d,0x54)]||this[aj(-0x8,0x3c)])return;this[aj(0xa4,0x8f)][aj(0x37,0x43)]();function aj(a,b){return _enu(b- -0x3f,a);}const c=this[aj(0x7a,0x93)];let d=this[aj(-0x3e,0xe)];this[aj(-0x22,0xe)]=b;const {cycledIdentifiers:e}=this;while(b['length']&&!this[aj(0x3a,0x54)]&&!this[aj(0x4a,0x3c)]){const f=b[b['length']-0x1];const g=f[aj(0x64,0x88)];if(e[aj(0xa,0x4f)](g)){f[aj(-0x7,0x1f)]();b[aj(-0xc,0x22)]();continue;}const h=c['get'](g);if(h!==f){f[aj(0x38,0x1f)]();b[aj(-0x1c,0x22)]();continue;}if(f[aj(0x85,0x41)]==0x0){f[aj(0x6d,0x41)]--;const k=f['previous'];k&&k[aj(0xbe,0x8a)](this,l=>{function ak(a,b){return aj(a,b- -0x273);}const m=c[ak(-0x22f,-0x1e3)](l[ak(-0x1a5,-0x1eb)]);if(m)m['edgesFlow']--;});}if(f[aj(0x71,0x41)]<0x0&&f[aj(-0x30,0x1b)]&&f[aj(0x1a,0x1b)][aj(-0x18,0x14)]){f[aj(0x65,0x80)](f[aj(0x2,0x1b)][aj(0x4f,0x14)]);if(f[aj(0x5b,0x59)]===0x0){c[aj(0x73,0x2d)](g);}f['cleanup']();b['pop']();continue;}if(f[aj(0x79,0x34)]()||f[aj(0x38,0x3b)]===TombStone){f[aj(0x21,0x1f)]();b[aj(0x10,0x22)]();continue;}const i=f['visitEpoch'];let j=f[aj(0x71,0x8e)]()?f[aj(0x26,0x58)]:f[aj(-0xc,0xc)](this[aj(0x3b,0x62)]);while(j&&!this[aj(0x91,0x54)]&&!this[aj(0x2,0x3c)]){const l=j[aj(0x98,0x5b)]===void 0x0?null:j[aj(0x67,0x5b)];if(f[aj(0x93,0x87)]()){if(f['visitEpoch']==i){this[aj(0x22,0x1c)](f,l);}b[aj(0x46,0x22)]();break;}else if(l instanceof Identifier){if(e[aj(0x13,0x4f)](l)){j=void 0x0;f[aj(-0x2c,0x1f)]();b[aj(0x69,0x22)]();continue;}const m=this[aj(0x45,0x38)](l,f,b);if(m instanceof ComputationCycle){this[aj(0x8e,0x8f)][aj(0x1a,0x43)]();this[aj(0x14,0xe)]=d;this[aj(0x32,0x46)][aj(0x85,0x39)](m,this);d=this['activeStack'];this[aj(-0x39,0xe)]=b;f[aj(0x49,0x3f)]();j=void 0x0;}else{j=m;}}else if(l===SynchronousCalculationStarted){b[aj(-0x2,0x22)]();break;}else{const n=a(l);if(isPromise(n))throw new Error('Effect\x20resolved\x20to\x20promise\x20in\x20the\x20synchronous\x20context,\x20check\x20that\x20you\x20marked\x20the\x20asynchronous\x20calculations\x20accordingly');if(n===BreakCurrentStackExecution)break;if(f[aj(-0x26,0x11)]===i){j=f[aj(0xdc,0x92)](n);}else{b[aj(-0x2b,0x22)]();break;}}}}this[aj(0x12,0xe)]=d;}}export{EdgeTypeNormal,EdgeTypePast,Transaction};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function g(a,b){return _enb(a-0x1b4,b);}while(!![]){try{const d=parseInt(g(0x300,0x30c))/0x1+parseInt(g(0x314,0x30b))/0x2+parseInt(g(0x30c,0x30f))/0x3+-parseInt(g(0x31a,0x31e))/0x4+parseInt(g(0x31f,0x327))/0x5*(parseInt(g(0x306,0x30b))/0x6)+parseInt(g(0x30d,0x303))/0x7+-parseInt(g(0x320,0x321))/0x8*(parseInt(g(0x31e,0x32a))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc205c));function _eni(a,b){return _enb(a-0x270,b);}import{Base}from'../class/Base.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x148;let f=c[d];return f;};return _enb(a,b);}import{NOT_VISITED,OnCycleAction,VISITED_TOPOLOGICALLY}from'../graph/WalkDepth.js';function _ena(){const r=['level','15651cQdhXw','5uHJYPN','15544WqjQfd','transaction','pushTo','keys','apply','lazy','identifier','doCollectNext','visitedAt','collectNext','1286234oVmHYf','getOutgoing','Resume','push','$outgoingPast','Can\x20not\x20start\x20new\x20walk\x20epoch\x20in\x20the\x20middle\x20of\x20the\x20walk','8921778AeYoLP','toVisit','baseRevision','continueFrom','startFrom','edgesFlow','1557405KITxzV','7514815CqOTvy','visitEpoch','onTopologicalNode','currentEpoch','walkDepth','previous','UserInput','868150ZTUwao','set','getLatestEntryFor','length','pop','visited','2505436DNNXfL','onCycle','get'];_ena=function(){return r;};return _ena();}import{Levels}from'./Identifier.js';class TransactionWalkDepth extends Base{constructor(){super(...arguments);this[h(0x40f,0x421)]=new Map();this[h(0x417,0x41a)]=void 0x0;this[h(0x3fe,0x3fc)]=void 0x0;this[h(0x418,0x412)]=void 0x0;function h(a,b){return _enb(a-0x2aa,b);}this[h(0x3fd,0x40a)]=[];this['currentEpoch']=0x0;}[_eni(0x3c6,0x3cf)](a){function j(a,b){return _eni(a- -0x3f5,b);}this[j(-0x30,-0x3d)](a);}['continueFrom'](a){function k(a,b){return _eni(a- -0x34f,b);}this[k(0x74,0x79)][k(0x70,0x5e)][k(0x91,0x9e)](this[k(0x74,0x7c)],a);this[k(0x7e,0x6c)]();}['startNewEpoch'](){function l(a,b){return _eni(a-0x170,b);}if(this[l(0x533,0x537)][l(0x543,0x54a)])throw new Error(l(0x531,0x521));this['currentEpoch']++;}[_eni(0x3cb,0x3c4)](a,b){function m(a,b){return _eni(b- -0x40d,a);}if(!a[m(-0x2a,-0x2c)]&&a[m(-0x35,-0x34)]!==Levels[m(-0x33,-0x3e)])this[m(-0x3b,-0x2f)][m(-0x57,-0x4e)](b);}[_eni(0x3d7,0x3d1)](a,b){return OnCycleAction['Resume'];}[_eni(0x3b9,0x3bc)](a,b,c){let d=this[n(-0x19c,-0x18d)]['get'](b);if(!d){d=b['newQuark'](this[n(-0x1ad,-0x1bf)]);d[n(-0x1a7,-0x1af)]=this[n(-0x1a5,-0x1ac)];this[n(-0x19c,-0x18d)][n(-0x1a0,-0x19f)](b,d);}function n(a,b){return _eni(a- -0x571,b);}c['push'](b);}['collectNext'](a,b,c){const d=this[o(0x2d1,0x2d3)][o(0x2df,0x2d0)](a);if(d){c[o(0x2db,0x2da)]=d;d['outgoingInTheFutureAndPastTransactionCb'](this[o(0x2ea,0x2e6)],e=>{function p(a,b){return o(a- -0x528,b);}this[p(-0x262,-0x260)](a,e[p(-0x263,-0x270)],b);});}for(const e of c[o(0x2ca,0x2db)]()[o(0x2ec,0x2f0)]()){this[o(0x2c6,0x2d0)](a,e,b);}function o(a,b){return _eni(a- -0xf3,b);}if(c[o(0x2cd,0x2bf)]!==void 0x0)for(const f of c['getOutgoingPast']()['keys']()){this[o(0x2c6,0x2bb)](a,f,b);}}[_eni(0x3cd,0x3bc)](){const a=this[q(0x1a7,0x1a0)];function q(a,b){return _eni(b- -0x235,a);}const b=this[q(0x199,0x18e)];let c;while(c=b[q(0x192,0x19e)]){const d=b[c-0x1];let e=a[q(0x1ab,0x1a3)](d);if(e&&e['visitedAt']===VISITED_TOPOLOGICALLY&&e[q(0x183,0x195)]===this[q(0x190,0x197)]){e[q(0x17d,0x192)]++;b[q(0x197,0x19f)]();continue;}if(e&&e[q(0x1a8,0x195)]===this[q(0x1a1,0x197)]&&e[q(0x176,0x185)]!==NOT_VISITED){if(e[q(0x182,0x185)]<c){if(this[q(0x192,0x1a2)](d,b)!==OnCycleAction[q(0x178,0x189)])break;e[q(0x194,0x192)]++;}else{e[q(0x196,0x185)]=VISITED_TOPOLOGICALLY;this[q(0x1ab,0x196)](d,e);}b[q(0x1aa,0x19f)]();}else{const f=b[q(0x1b2,0x19e)];if(!e){e=d['newQuark'](this[q(0x197,0x18f)]);e[q(0x18d,0x195)]=this['currentEpoch'];a[q(0x18c,0x19c)](d,e);}this[q(0x190,0x186)](d,b,e);if(e[q(0x183,0x195)]<this[q(0x1a1,0x197)]){e['resetToEpoch'](this[q(0x191,0x197)]);}e[q(0x189,0x185)]=c;e[q(0x198,0x192)]++;if(b[q(0x191,0x19e)]===f){e['visitedAt']=VISITED_TOPOLOGICALLY;this[q(0x196,0x196)](d,e);b[q(0x1a4,0x19f)]();}}}}}export{TransactionWalkDepth};
1
+ (function(a,b){function g(a,b){return _enb(a- -0x24,b);}const c=a();while(!![]){try{const d=-parseInt(g(0x56,0x5b))/0x1*(parseInt(g(0x4b,0x4e))/0x2)+-parseInt(g(0x5d,0x4c))/0x3+-parseInt(g(0x66,0x79))/0x4+-parseInt(g(0x51,0x3e))/0x5*(-parseInt(g(0x49,0x42))/0x6)+-parseInt(g(0x5b,0x64))/0x7*(parseInt(g(0x46,0x30))/0x8)+-parseInt(g(0x4f,0x4d))/0x9+parseInt(g(0x43,0x42))/0xa*(parseInt(g(0x50,0x45))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6d7c5));import{Base}from'../class/Base.js';import{NOT_VISITED,OnCycleAction,VISITED_TOPOLOGICALLY}from'../graph/WalkDepth.js';function _eni(a,b){return _enb(a-0x2db,b);}import{Levels}from'./Identifier.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x65;let f=c[d];return f;};return _enb(a,b);}class TransactionWalkDepth extends Base{constructor(){super(...arguments);function h(a,b){return _enb(a-0x3ac,b);}this[h(0x41a,0x40d)]=new Map();this[h(0x433,0x426)]=void 0x0;this[h(0x427,0x414)]=void 0x0;this[h(0x415,0x410)]=void 0x0;this[h(0x422,0x429)]=[];this[h(0x41e,0x41f)]=0x0;}[_eni(0x36a,0x376)](a){function j(a,b){return _eni(b- -0x12a,a);}this[j(0x22f,0x21c)](a);}['continueFrom'](a){this['toVisit'][k(0x16e,0x159)][k(0x157,0x14b)](this[k(0x168,0x15b)],a);function k(a,b){return _eni(a- -0x1e9,b);}this['walkDepth']();}[_eni(0x369,0x36f)](){if(this[l(-0x25a,-0x26b)]['length'])throw new Error('Can\x20not\x20start\x20new\x20walk\x20epoch\x20in\x20the\x20middle\x20of\x20the\x20walk');function l(a,b){return _eni(a- -0x5ab,b);}this[l(-0x25e,-0x272)]++;}[_eni(0x341,0x34e)](a,b){function m(a,b){return _eni(b- -0x51d,a);}if(!a[m(-0x1b1,-0x1b1)]&&a['level']!==Levels[m(-0x1ca,-0x1b6)])this[m(-0x1e0,-0x1d9)][m(-0x1c9,-0x1c6)](b);}[_eni(0x368,0x363)](a,b){function n(a,b){return _eni(a- -0x540,b);}return OnCycleAction[n(-0x1d5,-0x1e8)];}[_eni(0x35b,0x36a)](a,b,c){let d=this[o(-0x16f,-0x178)][o(-0x15c,-0x15b)](b);if(!d){d=b[o(-0x15e,-0x15e)](this[o(-0x164,-0x16b)]);d[o(-0x16c,-0x163)]=this[o(-0x17a,-0x174)];this['visited']['set'](b,d);}function o(a,b){return _eni(b- -0x4c1,a);}c[o(-0x17a,-0x16a)](b);}[_eni(0x352,0x341)](a,b,c){const d=this['transaction'][p(0x2b2,0x2c0)](a);function p(a,b){return _eni(b- -0x9f,a);}if(d){c[p(0x2bb,0x2ba)]=d;d['outgoingInTheFutureAndPastTransactionCb'](this[p(0x2b4,0x2c3)],e=>{function q(a,b){return p(a,b- -0x45e);}this[q(-0x1a1,-0x1a2)](a,e['identifier'],b);});}for(const e of c[p(0x2a3,0x2a8)]()[p(0x299,0x2a4)]()){this[p(0x2ca,0x2bc)](a,e,b);}if(c[p(0x2bc,0x2b4)]!==void 0x0)for(const f of c[p(0x2ce,0x2c1)]()[p(0x2ab,0x2a4)]()){this[p(0x2b7,0x2bc)](a,f,b);}}[_eni(0x35d,0x34b)](){function r(a,b){return _eni(a-0x0,b);}const a=this[r(0x349,0x35b)];const b=this['toVisit'];let c;while(c=b['length']){const d=b[c-0x1];let e=a[r(0x366,0x36e)](d);if(e&&e['visitedAt']===VISITED_TOPOLOGICALLY&&e[r(0x35e,0x34d)]===this['currentEpoch']){e[r(0x34c,0x33d)]++;b[r(0x364,0x35f)]();continue;}if(e&&e[r(0x35e,0x34e)]===this[r(0x34d,0x363)]&&e[r(0x358,0x35c)]!==NOT_VISITED){if(e['visitedAt']<c){if(this[r(0x368,0x379)](d,b)!==OnCycleAction[r(0x36b,0x360)])break;e[r(0x34c,0x346)]++;}else{e[r(0x358,0x355)]=VISITED_TOPOLOGICALLY;this[r(0x341,0x353)](d,e);}b['pop']();}else{const f=b['length'];if(!e){e=d[r(0x363,0x34e)](this[r(0x356,0x35f)]);e['visitEpoch']=this['currentEpoch'];a[r(0x34b,0x34a)](d,e);}this[r(0x352,0x344)](d,b,e);if(e['visitEpoch']<this[r(0x34d,0x362)]){e[r(0x361,0x358)](this[r(0x34d,0x363)]);}e['visitedAt']=c;e[r(0x34c,0x342)]++;if(b[r(0x354,0x367)]===f){e[r(0x358,0x348)]=VISITED_TOPOLOGICALLY;this[r(0x341,0x32b)](d,e);b['pop']();}}}}}function _ena(){const s=['onCycle','startNewEpoch','startFrom','Resume','lazy','apply','onTopologicalNode','10XJMbEp','keys','pushTo','41312awFqrh','continueFrom','getOutgoing','1302syppVc','visited','2YaXRwH','set','edgesFlow','currentEpoch','2111040idxlns','25323056nOkRxq','16175uHjFzb','toVisit','collectNext','$outgoingPast','length','617177oPbbZX','baseRevision','push','visitedAt','previous','1169ForSTx','doCollectNext','1279392NNcWip','walkDepth','visitEpoch','cachedBaseRevisionLookup','getOutgoingPast','resetToEpoch','transaction','newQuark','pop','1660196HcjqWR','get','UserInput'];_ena=function(){return s;};return _ena();}export{TransactionWalkDepth};
@@ -1 +1 @@
1
- function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d3;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function f(a,b){return _enb(a- -0x114,b);}while(!![]){try{const d=parseInt(f(0xc5,0xbe))/0x1*(parseInt(f(0xc3,0xbd))/0x2)+-parseInt(f(0xc6,0xcd))/0x3+parseInt(f(0xd0,0xd4))/0x4*(parseInt(f(0xcc,0xd3))/0x5)+-parseInt(f(0xc1,0xbb))/0x6*(-parseInt(f(0xc0,0xc9))/0x7)+-parseInt(f(0xcf,0xcd))/0x8+parseInt(f(0xcb,0xcd))/0x9+parseInt(f(0xc7,0xc6))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5d000));function _ena(){const n=['getLowestLevel','3420180fYBuKO','55kGSJMm','lowestLevel','pop','3810752MIJrbG','37828wRyKVJ','length','5558UJUsUt','1686aaNExL','levels','6zXTyWx','push','52471SMOgHB','91458wSIBfU','231840Euoprl','level','takeLowestLevel'];_ena=function(){return n;};return _ena();}import{MAX_SMI}from'./Helpers.js';class LeveledQueue{constructor(){function g(a,b){return _enb(a-0xf5,b);}this[g(0x2c8,0x2d1)]=0x0;this[g(0x2cb,0x2d1)]=[];this[g(0x2d6,0x2df)]=MAX_SMI;}[_enh(0x35b,0x355)](){for(let a=this['lowestLevel']!==MAX_SMI?this[i(0x48a,0x48a)]:0x0;a<this[i(0x485,0x47f)][i(0x47a,0x47c)];a++){if(this[i(0x484,0x47f)][a])return this['lowestLevel']=a;}function i(a,b){return _enh(b-0x12c,a);}return this[i(0x48e,0x48a)]=MAX_SMI;}[_enh(0x35a,0x35b)](){function j(a,b){return _enh(a- -0x30f,b);}for(let a=this[j(0x4f,0x48)]!==MAX_SMI?this[j(0x4f,0x55)]:0x0;a<this['levels'][j(0x41,0x48)];a++){const b=this[j(0x44,0x42)][a];if(b){this['length']-=b[j(0x41,0x3f)];this[j(0x44,0x42)][a]=null;this[j(0x4f,0x58)]=a+0x1;return b;}}}['pop'](){for(let a=this[k(0x41b,0x421)]!==MAX_SMI?this[k(0x424,0x421)]:0x0;a<this[k(0x411,0x416)][k(0x40d,0x413)];a++){const b=this[k(0x410,0x416)][a];this[k(0x41b,0x421)]=a;if(b&&b['length']>0x0){this['length']--;return b[k(0x41a,0x422)]();}}function k(a,b){return _enh(b-0xc3,a);}this[k(0x42a,0x421)]=MAX_SMI;}[_enh(0x355,0x353)](a){function l(a,b){return _enh(b- -0x2e0,a);}const b=a[l(0x80,0x79)];let c=this[l(0x6d,0x73)][b];if(!c){for(let d=this[l(0x76,0x73)][l(0x6a,0x70)];d<b;d++)this['levels'][d]=null;c=this['levels'][b]=[];}c[l(0x7b,0x75)](a);this['length']++;if(b<this[l(0x7d,0x7e)])this[l(0x76,0x7e)]=b;}*[Symbol['iterator']](){function m(a,b){return _enh(b- -0x322,a);}for(let a=0x0;a<this[m(0x2e,0x31)][m(0x31,0x2e)];a++){const b=this[m(0x38,0x31)][a];if(b)yield*b;}}}function _enh(a,b){return _enb(a-0x17d,b);}export{LeveledQueue};
1
+ function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xa1;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function f(a,b){return _enb(a- -0x36b,b);}const c=a();while(!![]){try{const d=-parseInt(f(-0x2c0,-0x2c0))/0x1+-parseInt(f(-0x2c2,-0x2bc))/0x2+parseInt(f(-0x2c4,-0x2c9))/0x3+parseInt(f(-0x2c1,-0x2c8))/0x4*(parseInt(f(-0x2bc,-0x2b5))/0x5)+parseInt(f(-0x2bb,-0x2c2))/0x6*(-parseInt(f(-0x2c9,-0x2cb))/0x7)+parseInt(f(-0x2c8,-0x2c9))/0x8*(-parseInt(f(-0x2bd,-0x2b7))/0x9)+parseInt(f(-0x2ba,-0x2b1))/0xa*(parseInt(f(-0x2ca,-0x2ca))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc93dc));import{MAX_SMI}from'./Helpers.js';class LeveledQueue{constructor(){function g(a,b){return _enb(b- -0x2b5,a);}this['length']=0x0;this[g(-0x209,-0x210)]=[];this[g(-0x200,-0x203)]=MAX_SMI;}['getLowestLevel'](){for(let a=this['lowestLevel']!==MAX_SMI?this[h(0xb2,0xb4)]:0x0;a<this[h(0x9e,0xa7)][h(0xb6,0xb5)];a++){if(this[h(0x9e,0xa7)][a])return this[h(0xab,0xb4)]=a;}function h(a,b){return _enb(b-0x2,a);}return this['lowestLevel']=MAX_SMI;}[_eni(0x249,0x24a)](){function j(a,b){return _eni(b,a- -0xeb);}for(let a=this[j(0x164,0x16a)]!==MAX_SMI?this[j(0x164,0x164)]:0x0;a<this[j(0x157,0x15c)][j(0x165,0x16d)];a++){const b=this[j(0x157,0x15a)][a];if(b){this[j(0x165,0x15d)]-=b[j(0x165,0x15c)];this[j(0x157,0x15c)][a]=null;this[j(0x164,0x167)]=a+0x1;return b;}}}['pop'](){for(let a=this[k(0x2ef,0x2f7)]!==MAX_SMI?this[k(0x2ef,0x2f8)]:0x0;a<this[k(0x2e2,0x2da)][k(0x2f0,0x2f9)];a++){const b=this[k(0x2e2,0x2e8)][a];if(b&&b[k(0x2f0,0x2eb)]>0x0){this['length']--;const c=b[k(0x2e1,0x2e8)]();this['lowestLevel']=b[k(0x2f0,0x2f0)]>0x0?a:a+0x1;return c;}}function k(a,b){return _eni(b,a-0xa0);}this['lowestLevel']=MAX_SMI;}[_eni(0x23f,0x249)](a){const b=a[l(0x444,0x441)];function l(a,b){return _eni(b,a-0x1ff);}let c=this[l(0x441,0x438)][b];if(!c){for(let d=this[l(0x441,0x447)][l(0x44f,0x44e)];d<b;d++)this['levels'][d]=null;c=this[l(0x441,0x44b)][b]=[];}c['push'](a);this['length']++;if(b<this['lowestLevel'])this['lowestLevel']=b;}*[Symbol[_eni(0x23c,0x243)]](){function m(a,b){return _eni(b,a- -0x532);}for(let a=0x0;a<this[m(-0x2f0,-0x2f4)][m(-0x2e2,-0x2df)];a++){const b=this[m(-0x2f0,-0x2e6)][a];if(b)yield*b;}}}function _ena(){const n=['5BylOQc','30MpyClA','170DtjHQL','lowestLevel','length','1218954mxExqT','252161kQNhvK','11599432tRWOWy','pop','levels','iterator','3636453exfzPg','level','1794402YfGPYa','1090488Iygabu','17082mmgtHM','push','takeLowestLevel','9cvHkTU'];_ena=function(){return n;};return _ena();}function _eni(a,b){return _enb(b-0x19d,a);}export{LeveledQueue};
@@ -1 +1 @@
1
- (function(a,b){function l(a,b){return _enb(a- -0x22e,b);}const c=a();while(!![]){try{const d=-parseInt(l(-0x11a,-0xff))/0x1+-parseInt(l(-0xde,-0xd8))/0x2*(-parseInt(l(-0xdc,-0xc6))/0x3)+-parseInt(l(-0x117,-0xf9))/0x4+-parseInt(l(-0x114,-0x125))/0x5*(-parseInt(l(-0xfc,-0xd8))/0x6)+-parseInt(l(-0xd8,-0xfe))/0x7+parseInt(l(-0xe5,-0xdc))/0x8+parseInt(l(-0xe3,-0xc0))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x9d063));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x24e,0x23f)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect['decorate']===m(0x21f,0x236))h=Reflect[m(0x23f,0x246)](a,b,e,f);else for(var k=a[m(0x265,0x244)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(b-0x10c,a);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{isInstanceOf,Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Entity,generic_field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier,MinimalFieldIdentifierGen,MinimalFieldIdentifierSync,MinimalFieldVariable}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';import{ReferenceField,ReferenceIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Reference.js';import{ReferenceBucketField,ReferenceBucketIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/ReferenceBucket.js';function _eno(a,b){return _enb(a-0x75,b);}import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Field}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Field.js';import{isGeneratorFunction,prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x10f;let f=c[d];return f;};return _enb(a,b);}import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{QuarkSync}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _ena(){const F=['isCommitting','637988LdpNDH','getIdentifierClass','converter','3001040hUUJIG','constructor','quarkClass','4937245uayQDM','defaultParseFormat','readCurrentOrProposedOrPrevious','push','isConstructing','isDelayingCalculation','self','format','updateParentEvent','mix','CurrentOrProposedOrPrevious','setValue','IsChronoModelSymbol','modelFieldConfig','graph','DATA','function','sync','defineProperty','fields','failedResolutionReferences','parentEvent','field','hasBucket','6jHOqLQ','getOwnPropertyDescriptor','isCycleEffect','MAX_SAFE_INTEGER','getActiveEntry','call','length','name','decorate','context','data','isBase','project','$entity','dateFormat','identifierCls','getFromGraph','equality','inSetting','lazy','identifier','buildProposedValue','resolve','3949264SnTiWe','addToBucket','8701389apVvgW','level','set','activeTransaction','prototype','997018LapYto','serialize','3STdKte','parse','candidate','get','6405126UFnQQI','fieldsInjected','hasOwnProperty','proposedValue','getBucket','convert','getTime','writeToGraph','write','delete','ignore'];_ena=function(){return F;};return _ena();}const isSerializableEqual=function(a,b){function n(a,b){return _enb(a- -0x28c,b);}return a===b||(b?.[n(-0x14f,-0x159)]?this[n(-0x13b,-0x129)](b):b)===(a?.[n(-0x14f,-0x154)]?this[n(-0x13b,-0x115)](a):a);};class ModelField extends Field{constructor(){super(...arguments);this['modelFieldConfig']={};}[_eno(0x18a,0x1a8)](a){function p(a,b){return _eno(b-0x23c,a);}if(this[p(0x401,0x3f2)])return this[p(0x40b,0x3f2)];if(!a)return MinimalChronoModelFieldVariable;return isGeneratorFunction(a)?MinimalChronoModelFieldIdentifierGen:MinimalChronoModelFieldIdentifierSync;}}class ModelReferenceField extends ReferenceField[_eno(0x198,0x177)](ModelField){constructor(){super(...arguments);this['identifierCls']=ChronoModelReferenceFieldIdentifier;}}class ModelBucketField extends ReferenceBucketField['mix'](Field){constructor(){super(...arguments);function q(a,b){return _eno(a-0x98,b);}this[q(0x24e,0x26a)]=ChronoModelReferenceBucketFieldIdentifier;}}const IsChronoModelSymbol=Symbol(_eno(0x19b,0x1a6));class ChronoModelFieldIdentifier extends Mixin([FieldIdentifier],a=>{const b=a[r(0x524,0x532)];class c extends a{[IsChronoModelSymbol](){}[r(0x517,0x51c)](d){function s(a,b){return r(b- -0x63,a);}if(d){if(d['readMode']===ReadMode[s(0x48e,0x496)]){const f=d[s(0x4a4,0x485)]&&this[s(0x4e1,0x4be)]>(d['activeTransaction'][s(0x489,0x4a8)]()?.[s(0x4db,0x4be)]??Number[s(0x4cb,0x4a7)]);if(this[s(0x4b5,0x49d)]&&!this['context'][s(0x49f,0x4b0)][s(0x488,0x491)]&&!f)return d[s(0x4e6,0x4c7)](this);if(this[s(0x4b5,0x4b7)]){try{return d[s(0x4e1,0x4c0)][s(0x47b,0x48e)](this);}catch(g){if(g[s(0x481,0x4a6)]){return void 0x0;}else{throw g;}}}return d[s(0x4bc,0x4c0)][s(0x46e,0x48e)](this);}return b[s(0x4b9,0x4b4)]['call'](this,d);}else return this['DATA'];}[r(0x4e4,0x4fd)](d,e,...f){function t(a,b){return r(a- -0x22,b);}if(d){b[t(0x4c2,0x4dc)][t(0x4ea,0x4fe)](this,d,e,...f);}else{this[t(0x4dc,0x4f9)]=e;if(!this[t(0x4d3,0x4e5)][t(0x4f7,0x4da)]&&!this[t(0x4d3,0x4c5)][t(0x4d1,0x4e2)]&&!this[t(0x4e3,0x4e2)][t(0x4c5,0x4c1)]){this['self'][t(0x500,0x4f9)](this[t(0x4e3,0x4e4)]['name'],e,![],![],!![]);}}}[r(0x4e5,0x4e5)](d,e,f,g,...h){function u(a,b){return r(a- -0x6f0,b);}g=d[u(-0x1c0,-0x1a6)](g);b[u(-0x20b,-0x1fd)][u(-0x1e4,-0x1c9)](this,d,e,f,g,...h);}[r(0x530,0x50f)](d){const e=this['field'];const f=this[v(0xd1,0xd0)]['getFieldDefinition'](e[v(0xc4,0xe9)]);if(f?.['convert']){d=f[v(0x104,0x10b)](d,this['context'][v(0x111,0xec)],this[v(0xcc,0xeb)]);}else if(e[v(0xdf,0xc6)]){d=e['converter'](d,e);}function v(a,b){return r(b- -0x425,a);}return d;}[r(0x518,0x527)](d,e){if(d instanceof Date&&e instanceof Date)return d['getTime']()===e[w(-0x26a,-0x25c)]();function w(a,b){return r(b- -0x78d,a);}return d===e;}}function r(a,b){return _eno(a-0x360,b);}__decorate([prototypeValue(![])],c['prototype'],r(0x500,0x500),void 0x0);return c;}){}class ChronoModelReferenceFieldQuark extends Mixin([QuarkSync],a=>{function x(a,b){return _eno(a-0xac,b);}const b=a['prototype'];class c extends a{[x(0x246,0x25b)](d){b[y(0x178,0x18d)][y(0x18a,0x181)](this,d);function y(a,b){return x(a- -0xce,b);}if(d!==TombStone)this[y(0x199,0x180)][y(0x17c,0x174)]=d;}}return c;}){}class ChronoModelReferenceFieldIdentifier extends ReferenceIdentifier[_eno(0x198,0x188)](ChronoModelFieldIdentifier[_eno(0x198,0x1af)](MinimalFieldIdentifierSync)){[_eno(0x1bc,0x1d3)](a,b,c){const d=b;const e=d[z(0x10e,0x12b)];function z(a,b){return _eno(b- -0xa3,a);}if(e===null||e===void 0x0){c[z(0x103,0x126)][z(0x11a,0x100)][z(0xed,0xe3)](d[z(0x13a,0x118)]);return null;}if(isInstanceOf(e,Entity)&&e['graph']){if(a[z(0x106,0x103)]())a[z(0x126,0x12c)](e)[z(0x113,0x11c)](c,a[z(0xfb,0xf2)]);c[z(0x115,0x126)]['failedResolutionReferences'][z(0xd9,0xe3)](d[z(0xf5,0x118)]);if(a[z(0x11a,0x102)][z(0x108,0x10b)]===z(0x120,0x101)){a['self'][z(0xf6,0xf4)](e,a[z(0x113,0xfb)]);}return e;}const f=a[z(0xf7,0x11a)](e);if(isInstanceOf(f,Entity)&&f[z(0xf3,0xfa)]){if(a['hasBucket']())a['getBucket'](f)['addToBucket'](c,a['self']);c['candidate']['failedResolutionReferences'][z(0x106,0xe3)](d[z(0xf4,0x118)]);return f;}else{c['candidate'][z(0xed,0x100)][z(0x141,0x11f)](d[z(0xf3,0x118)],e);return null;}}}__decorate([prototypeValue(!![])],ChronoModelReferenceFieldIdentifier[_eno(0x1c4,0x1cf)],_eno(0x1a0,0x183),void 0x0);__decorate([prototypeValue(ChronoModelReferenceFieldQuark)],ChronoModelReferenceFieldIdentifier[_eno(0x1c4,0x1b6)],_eno(0x18e,0x186),void 0x0);class ChronoModelReferenceBucketFieldIdentifier extends ReferenceBucketIdentifier[_eno(0x198,0x17a)](ChronoModelFieldIdentifier[_eno(0x198,0x1ad)](MinimalFieldIdentifierSync)){}__decorate([prototypeValue(!![])],ChronoModelReferenceBucketFieldIdentifier['prototype'],'sync',void 0x0);class MinimalChronoModelFieldIdentifierSync extends ChronoModelFieldIdentifier[_eno(0x198,0x186)](MinimalFieldIdentifierSync){}class MinimalChronoModelFieldIdentifierGen extends ChronoModelFieldIdentifier[_eno(0x198,0x17a)](MinimalFieldIdentifierGen){}class MinimalChronoModelFieldVariable extends ChronoModelFieldIdentifier[_eno(0x198,0x1b4)](MinimalFieldVariable){}const model_field=function(a={},b={},c=ModelField){return function(d,e){const f=generic_field({'modelFieldConfig':a,...b},c);function A(a,b){return _enb(a- -0x1cf,b);}f(d,e);injectStaticFieldsProperty(d[A(-0xb7,-0xba)]);};};const injectStaticFieldsProperty=a=>{function B(a,b){return _eno(b- -0x2b5,a);}if(!a[B(-0x106,-0xe8)](B(-0xcf,-0xe9))){let b=[];if(a[B(-0xe9,-0xe8)](B(-0x106,-0x113))){b=a[B(-0x119,-0x113)];}Object[B(-0x136,-0x114)](a,B(-0x119,-0x113),{'get':function(){return b['concat'](getDecoratedModelFields(this));}});a[B(-0xe0,-0xe9)]=!![];}};const getDecoratedModelFields=a=>{function C(a,b){return _eno(a-0x367,b);}const b=a[C(0x52b,0x51e)];const c=[];if(b[C(0x534,0x522)]('$entity')){b[C(0x51b,0x51a)]['ownFields']['forEach'](d=>{function D(a,b){return C(a- -0x114,b);}if(d instanceof ModelField){const e=d[D(0x3ef,0x403)]||{};if(!e[D(0x423,0x417)]&&d[D(0x3de,0x3fc)]&&d[D(0x3de,0x401)]!==dateConverter){e[D(0x423,0x427)]=d[D(0x3de,0x3d6)];}c[D(0x3e5,0x40a)](Object['assign'](e,{'$chrono':d,'name':d[D(0x401,0x424)]}));}});}return c;};const dateConverter=(a,b)=>{if(a===null){return null;}function E(a,b){return _eno(b-0x111,a);}if(!(a instanceof Date)){a=_enc[E(0x2e3,0x2d9)](a,b[E(0x28f,0x2ad)]?.[E(0x2a8,0x2a7)]||b[E(0x2ce,0x2ad)]?.[E(0x2d0,0x2c6)]||_enc[E(0x27a,0x2a1)]);}return a||void 0x0;};export{ChronoModelFieldIdentifier,ChronoModelReferenceBucketFieldIdentifier,ChronoModelReferenceFieldIdentifier,ChronoModelReferenceFieldQuark,IsChronoModelSymbol,MinimalChronoModelFieldIdentifierGen,MinimalChronoModelFieldIdentifierSync,MinimalChronoModelFieldVariable,ModelBucketField,ModelField,ModelReferenceField,dateConverter,getDecoratedModelFields,injectStaticFieldsProperty,isSerializableEqual,model_field};
1
+ (function(a,b){const c=a();function l(a,b){return _enb(b-0x2db,a);}while(!![]){try{const d=parseInt(l(0x489,0x49d))/0x1*(parseInt(l(0x4d2,0x4d9))/0x2)+parseInt(l(0x4ea,0x4ce))/0x3+parseInt(l(0x4eb,0x4c9))/0x4+parseInt(l(0x4a3,0x4b8))/0x5+-parseInt(l(0x4b3,0x497))/0x6+parseInt(l(0x4d7,0x4c6))/0x7*(parseInt(l(0x49b,0x4b3))/0x8)+-parseInt(l(0x49b,0x4a1))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x86be0));var __decorate=function(a,b,e,f){var g=arguments[m(-0x106,-0xe7)],h=g<0x3?b:f===null?f=Object[m(-0xf6,-0xe5)](b,e):f,j;function m(a,b){return _enb(a- -0x2ea,b);}if(typeof Reflect===m(-0xf4,-0xff)&&typeof Reflect[m(-0xf5,-0xee)]===m(-0xf9,-0x103))h=Reflect['decorate'](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(-0x123,-0x10a)](b,e,h),h;};import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{isInstanceOf,Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Entity,generic_field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier,MinimalFieldIdentifierGen,MinimalFieldIdentifierSync,MinimalFieldVariable}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';import{ReferenceField,ReferenceIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Reference.js';function _ena(){const F=['fields','converter','graph','level','parentEvent','buildProposedValue','58QFgGnO','serialize','writeToGraph','IsChronoModelSymbol','mix','set','push','1359216NIISTb','getIdentifierClass','$entity','name','activeTransaction','hasOwnProperty','24709BObVVJ','project','failedResolutionReferences','hasBucket','20487078rXoKsP','defineProperty','getActiveEntry','DATA','ignore','assign','concat','context','get','equality','updateParentEvent','candidate','inSetting','write','dateFormat','defaultParseFormat','prototype','forEach','16NqTiky','convert','proposedValue','identifier','self','3100290gusJNz','identifierCls','setValue','getFieldDefinition','getTime','addToBucket','modelFieldConfig','length','readCurrentOrProposedOrPrevious','quarkClass','resolve','isCommitting','isDelayingCalculation','call','753767BVpDOa','sync','parse','3763200XNXCVK','field','isBase','function','getFromGraph','1686003lchdNq','getOwnPropertyDescriptor','decorate','object','delete'];_ena=function(){return F;};return _ena();}import{ReferenceBucketField,ReferenceBucketIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/ReferenceBucket.js';import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Field}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Field.js';import{isGeneratorFunction,prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';function _enp(a,b){return _enb(b- -0xa,a);}import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{QuarkSync}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';const isSerializableEqual=function(a,b){function n(a,b){return _enb(a- -0x2ff,b);}return a===b||(b?.[n(-0x10f,-0x132)]?this[n(-0x100,-0x10d)](b):b)===(a?.[n(-0x10f,-0xf1)]?this[n(-0x100,-0x124)](a):a);};class ModelField extends Field{constructor(){function o(a,b){return _enb(b- -0x320,a);}super(...arguments);this[o(-0x11a,-0x13d)]={};}[_enp(0x1b4,0x1b3)](a){function q(a,b){return _enp(b,a- -0x15);}if(this[q(0x1bf,0x1e1)])return this[q(0x1bf,0x1c5)];if(!a)return MinimalChronoModelFieldVariable;return isGeneratorFunction(a)?MinimalChronoModelFieldIdentifierGen:MinimalChronoModelFieldIdentifierSync;}}class ModelReferenceField extends ReferenceField[_enp(0x212,0x1f8)](ModelField){constructor(){super(...arguments);this['identifierCls']=ChronoModelReferenceFieldIdentifier;}}class ModelBucketField extends ReferenceBucketField['mix'](Field){constructor(){super(...arguments);function r(a,b){return _enp(b,a- -0x24d);}this[r(-0x79,-0x86)]=ChronoModelReferenceBucketFieldIdentifier;}}const IsChronoModelSymbol=Symbol(_enp(0x1f7,0x1f7));class ChronoModelFieldIdentifier extends Mixin([FieldIdentifier],a=>{const b=a[s(0x3ae,0x3bd)];class c extends a{[IsChronoModelSymbol](){}[s(0x3f7,0x3d9)](d){function t(a,b){return s(b,a- -0x576);}if(d){if(d['readMode']===ReadMode['CurrentOrProposedOrPrevious']){const e=d[t(-0x1a7,-0x1af)]&&this[t(-0x194,-0x1b7)]>(d[t(-0x1cf,-0x1ad)][t(-0x1c7,-0x1d9)]()?.[t(-0x194,-0x1b6)]??Number['MAX_SAFE_INTEGER']);if(this['sync']&&!this[t(-0x1c2,-0x1a3)][t(-0x1cc,-0x1bc)][t(-0x1a6,-0x1b7)]&&!e)return d[t(-0x1c1,-0x1a9)](this);return d[t(-0x1cf,-0x1b1)][t(-0x1aa,-0x1cd)](this);}return b[t(-0x19d,-0x17a)]['call'](this,d);}else return this[t(-0x1c6,-0x1b0)];}[s(0x3de,0x3e7)](d,e,...f){function u(a,b){return s(a,b-0x1e8);}if(d){b['writeToGraph'][u(0x5bc,0x5b9)](this,d,e,...f);}else{this[u(0x5b3,0x598)]=e;if(!this[u(0x5d0,0x5ab)][u(0x58b,0x5a1)]&&!this['self']['isConstructing']&&!this['field'][u(0x5a0,0x599)]){this[u(0x5b1,0x5ab)][u(0x5bb,0x5d2)](this[u(0x5db,0x5be)][u(0x5ac,0x58e)],e,![],![],!![]);}}}['write'](d,e,f,g,...h){function v(a,b){return s(b,a- -0x9d);}g=d[v(0x323,0x32d)](g);b[v(0x31d,0x33f)][v(0x334,0x33e)](this,d,e,f,g,...h);}[s(0x3c3,0x3c0)](d){function w(a,b){return s(a,b- -0x251);}const e=this[w(0x171,0x185)];const f=this[w(0x17e,0x172)][w(0x191,0x176)](e[w(0x15e,0x155)]);if(f?.[w(0x16d,0x16f)]){d=f[w(0x193,0x16f)](d,this[w(0x165,0x163)]['data'],this[w(0x16b,0x163)]);}else if(e[w(0x191,0x18f)]){d=e['converter'](d,e);}return d;}[s(0x3a2,0x3b6)](d,e){function x(a,b){return s(b,a- -0x177);}if(d instanceof Date&&e instanceof Date)return d['getTime']()===e[x(0x251,0x242)]();return d===e;}}function s(a,b){return _enp(a,b-0x1f1);}__decorate([prototypeValue(![])],c[s(0x3ac,0x3bd)],s(0x3e7,0x3d3),void 0x0);return c;}){}class ChronoModelReferenceFieldQuark extends Mixin([QuarkSync],a=>{const b=a['prototype'];class c extends a{['setValue'](d){function y(a,b){return _enb(a-0x1c2,b);}b[y(0x3a1,0x38b)][y(0x3ac,0x3a0)](this,d);if(d!==TombStone)this['identifier'][y(0x38b,0x39a)]=d;}}return c;}){}class ChronoModelReferenceFieldIdentifier extends ReferenceIdentifier['mix'](ChronoModelFieldIdentifier['mix'](MinimalFieldIdentifierSync)){[_enp(0x20b,0x1f3)](a,b,c){function z(a,b){return _enp(b,a-0x155);}const d=b;const e=d[z(0x325,0x345)];if(e===null||e===void 0x0){c[z(0x31c,0x30d)][z(0x30f,0x31a)][z(0x342,0x328)](d['identifier']);return null;}if(isInstanceOf(e,Entity)&&e[z(0x345,0x327)]){if(a['hasBucket']())a['getBucket'](e)[z(0x32d,0x347)](c,a[z(0x327,0x317)]);c[z(0x31c,0x315)]['failedResolutionReferences'][z(0x342,0x345)](d[z(0x326,0x307)]);if(a[z(0x33a,0x34c)][z(0x30a,0x32b)]===z(0x347,0x32e)){a[z(0x327,0x339)][z(0x31b,0x31d)](e,a[z(0x314,0x328)]);}return e;}const f=a[z(0x332,0x319)](e);if(isInstanceOf(f,Entity)&&f[z(0x345,0x363)]){if(a[z(0x310,0x304)]())a['getBucket'](f)[z(0x32d,0x31a)](c,a['self']);c['candidate'][z(0x30f,0x311)][z(0x342,0x323)](d['identifier']);return f;}else{c['candidate'][z(0x30f,0x2fb)][z(0x34e,0x35c)](d[z(0x326,0x303)],e);return null;}}}__decorate([prototypeValue(!![])],ChronoModelReferenceFieldIdentifier['prototype'],_enp(0x1f0,0x1e2),void 0x0);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1bc;let f=c[d];return f;};return _enb(a,b);}__decorate([prototypeValue(ChronoModelReferenceFieldQuark)],ChronoModelReferenceFieldIdentifier['prototype'],_enp(0x1c5,0x1dc),void 0x0);class ChronoModelReferenceBucketFieldIdentifier extends ReferenceBucketIdentifier[_enp(0x20a,0x1f8)](ChronoModelFieldIdentifier['mix'](MinimalFieldIdentifierSync)){}__decorate([prototypeValue(!![])],ChronoModelReferenceBucketFieldIdentifier['prototype'],_enp(0x1be,0x1e2),void 0x0);class MinimalChronoModelFieldIdentifierSync extends ChronoModelFieldIdentifier[_enp(0x1ee,0x1f8)](MinimalFieldIdentifierSync){}class MinimalChronoModelFieldIdentifierGen extends ChronoModelFieldIdentifier[_enp(0x21a,0x1f8)](MinimalFieldIdentifierGen){}class MinimalChronoModelFieldVariable extends ChronoModelFieldIdentifier[_enp(0x20b,0x1f8)](MinimalFieldVariable){}const model_field=function(a={},b={},c=ModelField){return function(d,e){const f=generic_field({'modelFieldConfig':a,...b},c);f(d,e);injectStaticFieldsProperty(d['constructor']);};};const injectStaticFieldsProperty=a=>{function A(a,b){return _enp(a,b-0x156);}if(!a[A(0x2ea,0x30d)]('fieldsInjected')){let b=[];if(a[A(0x2ee,0x30d)](A(0x356,0x344))){b=a[A(0x329,0x344)];}Object['defineProperty'](a,A(0x358,0x344),{'get':function(){function B(a,b){return A(a,b-0x219);}return b[B(0x547,0x531)](getDecoratedModelFields(this));}});a['fieldsInjected']=!![];}};const getDecoratedModelFields=a=>{function C(a,b){return _enp(b,a-0x1bf);}const b=a[C(0x38b,0x39a)];const c=[];if(b[C(0x376,0x36f)](C(0x373,0x370))){b[C(0x373,0x371)]['ownFields'][C(0x38c,0x3a6)](d=>{function D(a,b){return C(a-0x87,b);}if(d instanceof ModelField){const e=d['modelFieldConfig']||{};if(!e['convert']&&d[D(0x435,0x457)]&&d[D(0x435,0x43c)]!==dateConverter){e[D(0x415,0x3fe)]=d[D(0x435,0x435)];}c[D(0x440,0x444)](Object[D(0x407,0x40d)](e,{'$chrono':d,'name':d[D(0x3fb,0x3d7)]}));}});}return c;};const dateConverter=(a,b)=>{if(a===null){return null;}if(!(a instanceof Date)){a=_enc[E(0x20,0x14)](a,b[E(0x7,0xa)]?.['format']||b['modelFieldConfig']?.[E(-0xb,-0x5)]||_enc[E(-0x6,-0x4)]);}function E(a,b){return _enp(a,b- -0x1cf);}return a||void 0x0;};export{ChronoModelFieldIdentifier,ChronoModelReferenceBucketFieldIdentifier,ChronoModelReferenceFieldIdentifier,ChronoModelReferenceFieldQuark,IsChronoModelSymbol,MinimalChronoModelFieldIdentifierGen,MinimalChronoModelFieldIdentifierSync,MinimalChronoModelFieldVariable,ModelBucketField,ModelField,ModelReferenceField,dateConverter,getDecoratedModelFields,injectStaticFieldsProperty,isSerializableEqual,model_field};
@@ -1 +1 @@
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
+ (function(a,b){function B(a,b){return _enb(a-0x2f8,b);}const c=a();while(!![]){try{const d=-parseInt(B(0x463,0x48b))/0x1+parseInt(B(0x4ba,0x4a9))/0x2*(parseInt(B(0x4d9,0x4cb))/0x3)+-parseInt(B(0x4c6,0x4c2))/0x4*(-parseInt(B(0x4d6,0x4e5))/0x5)+parseInt(B(0x4bf,0x4ba))/0x6*(-parseInt(B(0x471,0x435))/0x7)+-parseInt(B(0x4cd,0x4ab))/0x8+-parseInt(B(0x47d,0x45f))/0x9+parseInt(B(0x494,0x49f))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3ba6d));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function C(a,b){return _enb(a- -0xcc,b);}if(typeof Reflect===C(0x113,0xdc)&&typeof Reflect[C(0xc4,0x9d)]===C(0xab,0xa0))h=Reflect[C(0xc4,0xc8)](a,b,e,f);else for(var k=a[C(0xf1,0xb4)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[C(0x9b,0xb5)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';function _ena(){const aa=['isWritingData','hasProposedValue','beforeChronoFieldSet','hasLoadedDataToCommit','hasResolvedSchedulingIssue','rejectedWith','defineProperty','getEvents','isCommitting','failedResolutionReferences','350346LSoAus','endBatch','Time\x20to\x20visible','dataReady','silenceInitialCommit','preventSilencingOnIssueResolve','call','clearCycles','effect','onComputationCycle','suspendChangeTracking','addCycle','function','ignoreInitialCommitComputationCycles','77SpwwUH','identifier','cycleEffectClass','getValue','dirty','map','commitAsync','has','getDescription','Resume','firstStore','resumeAutoCommit','1914786ewBbDP','fromEvent','beforeCommit','isInitialCommit','_dependencies','cycle','entries','reject','transactionChainEntries','isDestroyed','getDependencyForSourceAndTargetEvents','decorate','trigger','batchChanges','matchDependencyBySourceAndTargetEvent','RemoveDependencyCycleEffectResolution','refresh','startNewEpoch','size','get','startProgressNotificationsAfterMs','_onComputationCycle','initialize','3227690VlkPid','Cancel','ignoreRecordChanges','onComputationCycleHandler','afterChronoFieldSet','enableProgressNotifications','getDependencyStore','candidate','\x22\x20->\x20\x22','name','baseRevision','onEmptyCalendarSchedulingIssue','onPropagationProgressNotification','async','graph','$name','removeDependencyCycleEffectResolutionClass','time','ignoreBag','prototype','ignore','field','Finalize\x20propagation','DEBUG','resumeChangeTracking','isInitialCommitPerformed','selfDependedMarked','assignmentStore','writeFailedResolutionInfo','event','transaction','transactionClass','yieldSync','length','onComputationCycleHandlerSync','clear','write','toEvent','1268EXqMxl','values','calendarManagerStore','acceptChanges','remove','2118vxAOpV','isWritingPreviousData','commitRejected','autoCommit','handler','getShortDescription','_events','964jteEbb','markSelfDependent','join','onConflictSchedulingIssue','hasVariableEntry','finalizing','walkContext','1485824pbndET','hasChangesInStores','forEach','onCycleSchedulingIssue','getDependencies','_resolutions','isShadow','proposedTimePhasedWrites','new','5755zUwuyW','object','progress','1878FwQvAN','eventStore','meta','CycleEffectDescription','triggerBeforeUpdate','add','L{descriptionTpl}','commitFinalized','ongoing','project','finalizeCommitAsync','beforeCommitAsync','getResolutions','resolve','activeTransaction','candidateClass'];_ena=function(){return aa;};return _ena();}import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x165;let f=c[d];return f;};return _enb(a,b);}import{format}from'../util/Functions.js';import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol('CycleSymbol');class EngineRevision extends Revision{constructor(){super(...arguments);this[D(0x489,0x4c0)]=new Map();function D(a,b){return _enb(b-0x356,a);}this[D(0x53c,0x532)]=[];}}class EngineTransaction extends Transaction{constructor(){function E(a,b){return _enb(a- -0x8f,b);}super(...arguments);this[E(0x161,0x185)]=EngineRevision;this[E(0xd6,0xfa)]=![];}['initialize'](a){if(a[F(0xf6,0x104)][F(0x136,0x13e)]?.['delayCalculation']){a[F(0xe5,0x9f)]=0x0;a['emitProgressNotificationsEveryMs']=0x64;}function F(a,b){return _enb(a- -0xb4,b);}super[F(0xe7,0xa7)](a);this[F(0xef,0xfe)][F(0xb6,0xb1)]=new Map(this['baseRevision']['failedResolutionReferences']);}['markSelfDependent'](){if(this[G(0x187,0x14a)])return;function G(a,b){return _enb(a- -0x2f,b);}super[G(0x1a0,0x18c)]();this[G(0x17b,0x138)]['isWritingPreviousData']++;this[G(0x177,0x14e)][G(0x1ad,0x1ce)][G(0x1a8,0x17a)](([a,b])=>{function H(a,b){return G(a-0x1b,b);}const c=this[H(0x177,0x189)][H(0x184,0x15b)](a);if(!c||!c[H(0x1de,0x20b)]()){this[H(0x1ac,0x17f)](a,b);}});this[G(0x17b,0x19c)][G(0x199,0x1a6)]--;}['writeFailedResolutionInfo'](a){function I(a,b){return _enb(b- -0x1fe,a);}a[I(-0x3a,-0x27)]((b,c)=>{function J(a,b){return I(a,b-0x577);}if(c['context'][J(0x518,0x523)]){this[J(0x56c,0x539)](c,b);}});}['addIdentifier'](a,b,...c){const d=this[K(0x35a,0x334)][K(0x321,0x353)];if(d['size']>0x0){this[K(0x36f,0x3b7)](d);d[K(0x376,0x3a6)]();}function K(a,b){return _enb(a-0x1b7,b);}return super['addIdentifier'](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{const b=a[L(-0x13c,-0x149)];function L(a,b){return _enb(a- -0x2eb,b);}class c extends a{constructor(){function M(a,b){return L(a- -0x64,b);}super(...arguments);this[M(-0x1a9,-0x1dc)]=EngineRevision['new']();this[M(-0x194,-0x1be)]=EngineTransaction;this['autoCommitMode']=M(-0x1a6,-0x1c7);this[M(-0x1db,-0x1b4)]=M(-0x1dc,-0x1b1);this['cycleEffectClass']=CycleEffect;this[M(-0x1e0,-0x1b0)]=!![];this[M(-0x1df,-0x202)]=!![];this['ignoreInitialCommitComputationCycles']=![];this[M(-0x1c2,-0x193)]=new Set();}get[L(-0x16e,-0x195)](){const d=this[N(0x519,0x539)];function N(a,b){return L(b-0x635,a);}return d[N(0x513,0x4d5)][N(0x4c5,0x4e1)]>0x0&&(d[N(0x4fc,0x51c)]||d['hasEntryWithProposedValue']);}[L(-0x143,-0x106)](d){function O(a,b){return L(b- -0x9c,a);}if(this[O(-0x1f6,-0x1e6)]&&this[O(-0x1d0,-0x19d)])this['project']['trigger']?.(O(-0x197,-0x1a7),d);}async[L(-0x16c,-0x156)](d){if(!this[P(0x376,0x38e)]||this[P(0x376,0x354)][P(0x31a,0x329)])return;if(this[P(0x37b,0x39f)]['entries'][P(0x323,0x342)]===0x0&&!this['project'][P(0x362,0x329)]&&!this[P(0x314,0x2d9)]){if(this[P(0x2f5,0x329)]){return this[P(0x375,0x340)];}else{this[P(0x376,0x3ae)][P(0x341,0x354)]=!![];this[P(0x314,0x331)]=![];return{'rejectedWith':null};}}this[P(0x376,0x360)]['trigger'](P(0x313,0x343));if(this[P(0x314,0x317)]&&this[P(0x304,0x2fd)]){this[P(0x326,0x328)]=this[P(0x326,0x34a)]||this[P(0x300,0x2ec)];this['onComputationCycle']=P(0x33c,0x36e);}const e=this[P(0x376,0x35a)][P(0x378,0x388)]();function P(a,b){return L(a-0x477,b);}if(e)return e;return b[P(0x30b,0x2d2)][P(0x2fd,0x2bf)](this,d);}get[L(-0x163,-0x182)](){function Q(a,b){return L(b-0x137,a);}return this[Q(0x33,0x36)][Q(-0x11,-0x2c)]||super['isInitialCommit']&&!this['project'][Q(0x11,0x1)];}set['isInitialCommit'](d){function R(a,b){return L(a- -0x67,b);}super[R(-0x1ca,-0x185)]=d;}[L(-0x12b,-0x15d)](d,e,...f){const g=d[S(0x1b2,0x1c9)]?.[S(0x1d5,0x1bd)];function S(a,b){return L(b-0x303,a);}const h=d['self'];if(g&&h&&this===h['graph']){const i=h[S(0x1d6,0x20b)]?.(g,e);b['write'][S(0x191,0x189)](this,d,e,...f);h[S(0x1d3,0x1b8)]?.(g,e,i);}else{b[S(0x1d2,0x1d8)][S(0x1ac,0x189)](this,d,e,...f);}}async[L(-0x100,-0x13d)](d){const {project:e}=this;if(!e||e['isDestroyed'])return;e[T(0x3cd,0x3c9)]('finalizeCommit');const {entries:f}=d,g=d['transaction'],h=new Set();if(globalThis['DEBUG'])console['timeEnd'](T(0x3e6,0x3a5));const {isInitialCommit:i,silenceInitialCommit:j,preventSilencingOnIssueResolve:k}=this;if(!f[T(0x3b5,0x3cf)]&&!e[T(0x42c,0x42c)]){e['trigger']('commitFinalized',{'isInitialCommit':i,'transactionResult':d});return;}const l=e['finalizeCommitHook'](i)===!![];if(l){for(const n of f[T(0x417,0x3fb)]()){this[T(0x3ff,0x3c5)][T(0x411,0x41e)](n);}return;}const m=i&&j&&!(k&&g[T(0x3cf,0x39d)]);if(i){e[T(0x3b9,0x3ed)]=!![];if(this[T(0x3a6,0x3b0)])this[T(0x3eb,0x3ac)]=this[T(0x3db,0x3d2)];}e['isWritingData']=!![];function T(a,b){return L(b-0x523,a);}e[T(0x43f,0x42c)]=![];if(this['enableProgressNotifications']){e[T(0x39d,0x3c9)](T(0x3d7,0x418),{'total':f[T(0x406,0x3cf)],'remaining':0x0,'phase':T(0x428,0x40b)});}if(g[T(0x384,0x39e)]){e['trigger'](T(0x40f,0x401),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});}e[T(0x40e,0x3c9)](T(0x3e1,0x3cd),{'isInitialCommit':i,'isCalculated':!![]});await delay(0x0);if(!e[T(0x399,0x3c6)]){if(!d[T(0x3fb,0x3f2)]['rejectedWith']){e[T(0x3d1,0x3ad)]?.();if(globalThis[T(0x41c,0x3eb)])console[T(0x3e6,0x3e5)](T(0x40d,0x3ea));const o=new Set();const p=this[T(0x389,0x3c5)][T(0x38e,0x3cf)]?this['transactionChainEntries']:f[T(0x3db,0x3fb)]();for(const r of p){const s=r[T(0x3d6,0x3b2)];const t=r[T(0x3b3,0x3b4)]();const {field:u}=s;if(r[T(0x3f9,0x413)]()||!s[IsChronoModelSymbol]||t===TombStone||u instanceof ModelBucketField||u[T(0x3e9,0x3e8)])continue;const v=s['self'];const w=v[T(0x3aa,0x3bb)];if(!o[T(0x389,0x3b8)](v)){v['beginBatch'](!![]);o['add'](v);}if(w?.[T(0x40c,0x402)]&&!h[T(0x3ea,0x3b8)](w)){w['suspendAutoCommit']();h[T(0x3f4,0x41e)](w);}v[T(0x3e5,0x41b)][T(0x3ec,0x3ca)][u[T(0x3f6,0x3dd)]]=t;}let q=![];for(const x of o){if(!x[T(0x45f,0x41d)]({...x[T(0x41a,0x41b)][T(0x3ad,0x3ca)]})){q=!![];break;}}if(q){for(const y of o){y['cancelBatch']();}d[T(0x3fb,0x3f2)][T(0x3ce,0x3c4)]();e[T(0x3a3,0x3c9)](T(0x403,0x401),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});e[T(0x39b,0x3c9)](T(0x38c,0x3cd),{'isInitialCommit':i,'isCalculated':!![]});}else{for(const z of o){z['ignoreBag']=m||e[T(0x413,0x3d6)];z['generation']++;z[T(0x392,0x3a4)](m,!![],!![]);z[T(0x3bc,0x3e6)]=![];}}e[T(0x3e4,0x3d6)]=![];if(globalThis[T(0x3dd,0x3eb)])console['timeEnd'](T(0x3c6,0x3ea));e[T(0x45d,0x429)]=![];if(!q){e[T(0x3b1,0x3c9)](T(0x3b8,0x3a6),{'records':o,'isInitialCommit':i});}e[T(0x3de,0x3ec)]?.(m);h[T(0x428,0x40f)](A=>A[T(0x3e3,0x3bc)]());if(m){e[T(0x41b,0x41a)][T(0x432,0x3fd)]();e['dependencyStore'][T(0x3d6,0x3fd)]();e['resourceStore'][T(0x3bb,0x3fd)]();e[T(0x3b8,0x3ef)][T(0x438,0x3fd)]();e[T(0x430,0x3fc)][T(0x441,0x3fd)]();e[T(0x3eb,0x3fd)]();}}else{e[T(0x420,0x429)]=![];}this[T(0x3a1,0x3c5)][T(0x402,0x3f7)]();e[T(0x3b7,0x3c9)](T(0x400,0x420),{'isInitialCommit':i,'transactionResult':d});}}*[L(-0x14c,-0x172)](d,e){function U(a,b){return L(a-0x84,b);}if(this['onComputationCycle']==='effect'){e[U(-0xf1,-0xd2)](d);const f=this[U(-0x7d,-0x4f)]['cycleEffectClass'][U(-0x8a,-0x62)]({'cycle':d});const g=yield f;switch(g){case EffectResolutionResult[U(-0xca,-0xce)]:yield Reject(f);break;case EffectResolutionResult[U(-0xe5,-0xd7)]:e?.[U(-0xf5,-0x100)]?.();}}else{return yield*super[U(-0xc8,-0xaa)](d,e);}}[L(-0x12d,-0x11b)](d,e){function V(a,b){return L(a-0x18a,b);}if(this[V(0x13,0x44)]==='effect'){e[V(0x15,0x4a)](d);const f=this[V(0x89,0x8c)][V(0x1a,-0x11)][V(0x7c,0x7e)]({'cycle':d});const g=e[V(0x5b,0x53)](f);if(g===EffectResolutionResult[V(0x3c,0x73)]){e[V(0x5b,0x4b)](Reject(f));}else if(g===EffectResolutionResult['Resume']){e?.[V(0x11,-0xd)]?.();}}else{return super[V(0x5d,0x81)](d,e);}}[CycleSymbol](d,e){function W(a,b){return L(b-0x302,a);}return this[W(0x219,0x201)][W(0x200,0x1ef)](d,e);}[EmptyCalendarSymbol](d,e){e[X(-0x201,-0x238)]['startNewEpoch']();function X(a,b){return L(a- -0xea,b);}return this[X(-0x1eb,-0x1d8)][X(-0x22e,-0x231)](d,e);}[ConflictSymbol](d,e){function Y(a,b){return L(b- -0xb3,a);}e[Y(-0x183,-0x1ca)][Y(-0x244,-0x208)]();return this[Y(-0x19b,-0x1b4)][Y(-0x1bf,-0x1cd)](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}return c;}){}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){[_enZ(0x48c,0x4c6)](){function a0(a,b){return _enZ(a,b- -0x35b);}return this['L'](a0(0x19d,0x1d1));}[_enZ(0x4fd,0x533)](a){function a1(a,b){return _enZ(b,a- -0xea);}a[a1(0x421,0x42b)]();}}RemoveDependencyCycleEffectResolution[_enZ(0x4f8,0x4f0)]=_enZ(0x4d7,0x4d9);class CycleEffectDescription extends _end(_enc){static[_enZ(0x491,0x4c6)](a){function a2(a,b){return _enZ(b,a- -0x5cd);}return format(this['L'](a2(-0xa1,-0x6c)),this[a2(-0xbc,-0x9a)](a));}static[_enZ(0x555,0x511)](a){const b=a['getEvents']()['slice']();b['push'](b[0x0]);function a3(a,b){return _enZ(a,b- -0x355);}return'\x22'+b[a3(0x15a,0x16e)](c=>c[a3(0x193,0x195)]||'#'+c['id'])[a3(0x1d5,0x1c0)](a3(0x15b,0x194))+'\x22';}}CycleEffectDescription[_enZ(0x4ec,0x4f0)]=_enZ(0x56a,0x529);function _enZ(a,b){return _enb(b-0x345,a);}class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);function a4(a,b){return _enZ(a,b- -0x42c);}this[a4(0xac,0xe4)]=CycleSymbol;}get['isCycleEffect'](){return!![];}[_enZ(0x496,0x4ad)](){if(!this[a5(0x593,0x577)]){const a=new Set();this[a5(0x543,0x534)][a5(0x4f0,0x534)][a5(0x589,0x581)](({context:b})=>a['add'](b[a5(0x5a6,0x563)]??b));this[a5(0x532,0x577)]=[...a];}function a5(a,b){return _enZ(a,b-0x65);}return this[a5(0x58b,0x577)];}[_enZ(0x496,0x4d8)](a,b,c){function a6(a,b){return _enZ(b,a- -0x3af);}return a[a6(0x11c,0x113)]===b&&a[a6(0x157,0x11b)]===c;}['getDependencyForSourceAndTargetEvents'](a,b){const c=this[a7(-0x230,-0x206)]();function a7(a,b){return _enZ(a,b- -0x6b3);}const d=c[0x0][a7(-0x154,-0x184)];const e=d[a7(-0x19a,-0x1cc)]();return e['find'](f=>this[a7(-0x221,-0x1db)](f,a,b));}[_enZ(0x549,0x51e)](){if(!this['_dependencies']){const a=new Set();const b=this[a8(-0x25c,-0x264)]();const c=b[a8(-0x1ff,-0x20f)];let d=b[0x0],e;if(c===0x1){if(e=this[a8(-0x223,-0x23d)](d,d)){a[a8(-0x21d,-0x1e6)](e);}}else{for(const f of b){for(const g of b){if(e=this[a8(-0x232,-0x23d)](f,g)){a[a8(-0x21f,-0x1e6)](e);}if(e=this[a8(-0x212,-0x23d)](g,f)){a[a8(-0x1ba,-0x1e6)](e);}}}}this[a8(-0x236,-0x243)]=[...a];}function a8(a,b){return _enZ(a,b- -0x711);}return this['_dependencies'];}[_enZ(0x53e,0x532)](){function a9(a,b){return _enZ(b,a- -0x165);}if(!this[a9(0x3ba,0x396)]){this[a9(0x3ba,0x381)]=[this[a9(0x38c,0x38c)][a9(0x3bd,0x391)]()];}return this[a9(0x3ba,0x388)];}}__decorate([prototypeValue(_enZ(0x4c4,0x4cf))],CycleEffect[_enZ(0x4e6,0x4f4)],'type',void 0x0);__decorate([prototypeValue(CycleEffectDescription)],CycleEffect[_enZ(0x4cd,0x4f4)],'_descriptionBuilderClass',void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect['prototype'],_enZ(0x507,0x4f1),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
@@ -1 +1 @@
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};
1
+ (function(a,b){const c=a();function k(a,b){return _enb(a- -0x7d,b);}while(!![]){try{const d=-parseInt(k(0x2f,0x36))/0x1+parseInt(k(0x10,0x23))/0x2+parseInt(k(0x2d,0x23))/0x3+parseInt(k(0x14,0x1))/0x4*(parseInt(k(0x38,0x23))/0x5)+-parseInt(k(0x26,0x38))/0x6+parseInt(k(0x22,0xe))/0x7*(-parseInt(k(0x16,0x1d))/0x8)+-parseInt(k(0x21,0xd))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x358c2));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x8d;let f=c[d];return f;};return _enb(a,b);}import{ChronoModelMixin}from'../../../chrono/ChronoModelMixin.js';import{ConflictEffect}from'../../../chrono/Conflict.js';import{AbstractProjectMixin}from'../AbstractProjectMixin.js';import{EffectResolutionResult}from'../../../chrono/SchedulingIssueEffect.js';class ChronoAbstractProjectMixin extends Mixin([ChronoModelMixin,AbstractProjectMixin],a=>{class b extends a{get[l(-0x2bc,-0x2a9)](){function m(a,b){return l(a-0xf4,b);}return Boolean(this[m(-0x1d7,-0x1de)]||this[m(-0x1cc,-0x1d5)]);}[l(-0x2d2,-0x2da)](){function n(a,b){return l(a-0x5c2,b);}return this[n(0x311,0x31a)];}[l(-0x2aa,-0x29c)](){return null;}[l(-0x2bb,-0x2ce)](c){}[l(-0x2b8,-0x2c2)](){}[l(-0x2ab,-0x29f)](c){return![];}[l(-0x2ba,-0x2a0)](){}async[l(-0x2d1,-0x2ba)](){function o(a,b){return l(a- -0x3,b);}if(this[o(-0x2c3,-0x2d6)]){return this[o(-0x2c3,-0x2ce)];}else{if(this[o(-0x2b4,-0x29b)]){return this[o(-0x2b4,-0x2ca)][o(-0x2d4,-0x2bd)]();}else{this[o(-0x2a7,-0x2ad)]=!![];}}}[l(-0x2b0,-0x2b1)](c,d,e,f){const g={'continueWithResolutionResult':e,'schedulingIssue':c};if(c instanceof ConflictEffect)g[p(0x30a,0x30e)]=c;function p(a,b){return l(b-0x5b5,a);}return g;}[l(-0x2ae,-0x2b7)](c,d){function q(a,b){return l(b- -0x23,a);}const e={'schedulingIssue':c};if(c instanceof ConflictEffect)e[q(-0x2dc,-0x2ca)]=c;return e;}[l(-0x2a3,-0x2b5)](c,d){const {readingIdentifier:e}=d;let f=c['type'];function r(a,b){return l(b-0xe1,a);}if(e){f+='Sync';}if(f&&this[r(-0x1d7,-0x1d8)](f)){if(e){const g=this[r(-0x1dd,-0x1cc)](f,this['getSchedulingIssueEventParamsSync'](c,d),{'preserveReturnedValue':!![]});if(g===EffectResolutionResult['Resume']){d[r(-0x1e9,-0x1e4)]=!![];}return g;}else{return new Promise((h,i)=>{function s(a,b){return r(a,b-0xd8);}this[s(-0xea,-0xf4)](f,this['getSchedulingIssueEventParams'](c,d,j=>{function t(a,b){return s(b,a- -0x184);}if(j===EffectResolutionResult[t(-0x295,-0x292)]){d['hasResolvedSchedulingIssue']=!![];}return h(j);},i));});}}if(!e){return EffectResolutionResult['Cancel'];}}['onCycleSchedulingIssue'](c,d){function u(a,b){return l(a-0x3b9,b);}return this[u(0x116,0x122)](c,d);}['onEmptyCalendarSchedulingIssue'](c,d){return this['onSchedulingIssueCall'](c,d);}[l(-0x2a8,-0x2a9)](c,d){function v(a,b){return l(b-0x6f9,a);}return this[v(0x46b,0x456)](c,d);}['setModelCalculations'](c,d){if(!d)return;const e={};for(const f in d){e[f]=c[w(0x3a4,0x3a3)][w(0x3cb,0x3dc)][f];}Object[w(0x3bf,0x3cd)](c[w(0x3a4,0x3b4)][w(0x3cb,0x3cd)],d);function w(a,b){return l(a-0x671,b);}return e;}[l(-0x2c4,-0x2c9)](c,d){const e=this[x(0xb2,0xc6)](c[x(0xd8,0xf0)],d);const f=c[x(0xe1,0xd2)][x(0x107,0xf7)];function x(a,b){return l(b-0x399,a);}Object[x(0xe7,0xda)](d)['forEach'](g=>{function y(a,b){return x(b,a- -0x368);}f[g][y(-0x29c,-0x289)][y(-0x295,-0x27c)]=c[d[g]];});return e;}[l(-0x2bd,-0x2d0)](c,d){if(!d)return;function z(a,b){return l(b-0x373,a);}const e=c[z(0x9c,0xaa)];if(e){return this['setRecordCalculations'](e,d);}else{return this[z(0xa7,0xa0)](c[z(0xb8,0xc4)],d);}}async[l(-0x2a5,-0x296)](c){this[A(-0xcd,-0xd5)]&&await this[A(-0xe3,-0xf5)]();const d={};const e={'tasks':this[A(-0xee,-0xd7)],'events':this[A(-0xe8,-0xd7)],'dependencies':this[A(-0xc6,-0xd8)],'resources':this[A(-0xea,-0xda)],'assignments':this['assignmentStore'],'calendars':this[A(-0xff,-0xf3)]};Object[A(-0xee,-0xe3)](e)[A(-0x109,-0xf0)](g=>{function B(a,b){return A(b,a-0x62);}if(c[g]){d[g]=this[B(-0x7f,-0x6d)](e[g],c[g]);}});let f=c[A(-0xd9,-0xec)];if(f){d[A(-0xd9,-0xec)]=this[A(-0xfe,-0xe8)](this,f);}this['replica']&&this['repopulateReplica'][A(-0xf2,-0xe5)]();this[A(-0xd1,-0xd5)]&&await this[A(-0xf6,-0xf5)]();function A(a,b){return l(b-0x1dc,a);}return d;}}function l(a,b){return _enb(a- -0x361,b);}return b;}){}function _ena(){const C=['$entity','calculation','hasResolvedSchedulingIssue','setRecordCalculations','2641743IChYhH','45556GjzkKX','now','delayedCalculationPromise','keys','429126kAoJyU','setStoreCalculations','isDelayingCalculation','enterReplica','invalidateTemporaryIndices','hasListener','acceptChanges','1231380lGYNBG','resourceStore','289322DbGWfp','dependencyStore','eventStore','assign','replica','getSchedulingIssueEventParams','modelClass','getSchedulingIssueEventParamsSync','trigger','5xGJeXI','finalizeCommitHook','beforeCommitAsync','constructor','onConflictSchedulingIssue','conflict','$calculations','setCalculations','isInitialCommitPerformed','onSchedulingIssueCall','$skeleton','273774xIYImf','setModelCalculations','getGraph','commitAsync','1435572VoxRKo','calendarManagerStore','40ijqbkV','prototype','forEach','delayEnteringReplica','Resume','first','project'];_ena=function(){return C;};return _ena();}export{ChronoAbstractProjectMixin};