@evomap/evolver-core 2.0.0 → 2.0.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.
Files changed (91) hide show
  1. package/dist/algo/antiDistill.js +1 -167
  2. package/dist/algo/bans.js +1 -33
  3. package/dist/algo/candidateAssembly.js +1 -273
  4. package/dist/algo/capabilityCandidates.js +1 -146
  5. package/dist/algo/confidence.js +1 -196
  6. package/dist/algo/conversationSniffer.js +1 -149
  7. package/dist/algo/cycleEngine.js +1 -625
  8. package/dist/algo/cycleFailureClassifier.js +1 -112
  9. package/dist/algo/epigenetics.js +1 -41
  10. package/dist/algo/evolutionEvent.js +1 -24
  11. package/dist/algo/exploration.js +1 -68
  12. package/dist/algo/geneHealth.js +1 -17
  13. package/dist/algo/geneIntake.js +1 -128
  14. package/dist/algo/genePromotion.js +1 -53
  15. package/dist/algo/geneSelection.js +1 -546
  16. package/dist/algo/index.js +1 -22
  17. package/dist/algo/memoryGraph.js +1 -86
  18. package/dist/algo/mutation.js +1 -22
  19. package/dist/algo/orchestrator.js +1 -87
  20. package/dist/algo/publishEligibility.js +1 -52
  21. package/dist/algo/solidify.js +1 -63
  22. package/dist/algo/strategyPresets.js +1 -61
  23. package/dist/algo/ucb1.js +1 -156
  24. package/dist/benchmark/antiGeneBenchmark.js +1 -252
  25. package/dist/benchmark/antiGeneImpact.js +1 -34
  26. package/dist/benchmark/antiGeneRollout.js +1 -269
  27. package/dist/benchmark/benchmark.js +1 -26
  28. package/dist/benchmark/evolutionThesisSolver.js +1 -41
  29. package/dist/benchmark/index.js +1 -7
  30. package/dist/benchmark/selectionFlatAbstention.js +1 -481
  31. package/dist/benchmark/thesis.js +1 -150
  32. package/dist/benchmark/triggerShift.js +1 -106
  33. package/dist/cycle/cycleTimeline.js +1 -74
  34. package/dist/cycle/index.js +1 -2
  35. package/dist/cycle/stateMachine.js +1 -25
  36. package/dist/hub/agentDirectory.js +1 -104
  37. package/dist/hub/assetCallLog.js +1 -195
  38. package/dist/hub/bindings.js +1 -121
  39. package/dist/hub/capability.js +1 -1
  40. package/dist/hub/conversationDistiller.js +1 -264
  41. package/dist/hub/fake.js +1 -70
  42. package/dist/hub/hubReview.js +1 -106
  43. package/dist/hub/index.js +1 -11
  44. package/dist/hub/ingest.js +1 -15
  45. package/dist/hub/questionGenerator.js +1 -408
  46. package/dist/hub/reuseDecision.js +1 -127
  47. package/dist/hub/sanitize.js +1 -322
  48. package/dist/material/boundary.js +1 -14
  49. package/dist/material/consumer.js +1 -55
  50. package/dist/material/emit.js +1 -52
  51. package/dist/material/factory.js +1 -25
  52. package/dist/material/index.js +1 -9
  53. package/dist/material/materialArchive.js +1 -466
  54. package/dist/material/materialStore.js +1 -69
  55. package/dist/material/sampling.js +1 -39
  56. package/dist/material/sources.js +1 -33
  57. package/dist/material/watermark.js +1 -76
  58. package/dist/personality/drift.js +1 -106
  59. package/dist/personality/events.js +1 -37
  60. package/dist/personality/evolveOps.js +1 -93
  61. package/dist/personality/index.js +1 -11
  62. package/dist/personality/mutate.js +1 -39
  63. package/dist/personality/pivot.js +1 -22
  64. package/dist/personality/prompt.js +1 -62
  65. package/dist/personality/riskGate.js +1 -80
  66. package/dist/personality/schema.js +1 -119
  67. package/dist/personality/select.js +1 -71
  68. package/dist/personality/stats.js +1 -82
  69. package/dist/personality/store.js +1 -92
  70. package/dist/schema/common.js +1 -17
  71. package/dist/schema/evolutionGraph.js +1 -187
  72. package/dist/schema/index.js +1 -6
  73. package/dist/schema/material.js +1 -50
  74. package/dist/schema/problem.js +1 -45
  75. package/dist/schema/proofOfWork.js +1 -9
  76. package/dist/schema/signal.js +1 -19
  77. package/dist/signals/curriculum.js +1 -202
  78. package/dist/signals/cycleHistoryFromEvents.js +1 -105
  79. package/dist/signals/expand.js +1 -293
  80. package/dist/signals/extractor.js +1 -82
  81. package/dist/signals/index.js +1 -8
  82. package/dist/signals/metaSignals.js +1 -200
  83. package/dist/signals/signalGate.js +1 -40
  84. package/dist/signals/taskDomain.js +1 -43
  85. package/dist/signals/traceSignals.js +1 -123
  86. package/dist/strategy/constraintAblation.js +1 -2820
  87. package/dist/strategy/constraintAblationPredicates.js +1 -339
  88. package/dist/strategy/experiment.js +1 -63
  89. package/dist/strategy/index.js +1 -3
  90. package/dist/strategy/strategyPoint.js +1 -23
  91. package/package.json +1 -1
@@ -1,14 +1 @@
1
- /** 来源边界 (批注#37): Material 只来自 session/tool log, 杜绝 root_events/asset/MV 回灌. */
2
- const FORBIDDEN = [
3
- /root_events\.jsonl/, /genes\.jsonl/, /capsules\.jsonl/, /\bevents\.jsonl/,
4
- /[/\\]mv[/\\]/, /[/\\]assets[/\\]/,
5
- ];
6
- export class MaterialBoundaryError extends Error {
7
- constructor(msg) { super(`来源边界违规: ${msg}`); this.name = 'MaterialBoundaryError'; }
8
- }
9
- export function assertMaterialSource(m) {
10
- if (m.kind !== 'session_log' && m.kind !== 'tool_event' && m.kind !== 'llm_trace')
11
- throw new MaterialBoundaryError(`非法 kind: ${m.kind} (只允许 session_log/tool_event/llm_trace)`);
12
- if (FORBIDDEN.some((re) => re.test(m.sourcePath)))
13
- throw new MaterialBoundaryError(`禁止把资产/事件层回灌为 Material: ${m.sourcePath}`);
14
- }
1
+ (function(_0xc14f5e,_0x2442d0){const _0xa1396b=_0x2ffc,_0x38f084=_0xc14f5e();while(!![]){try{const _0x4781a3=parseInt(_0xa1396b(0x70,'\x29\x33\x4e\x74'))/(-0x1*-0x553+-0x7ce+0x27c)+-parseInt(_0xa1396b(0x95,'\x55\x41\x55\x67'))/(0xcd*-0x11+0x139f+0x3*-0x200)*(-parseInt(_0xa1396b(0x7c,'\x77\x6f\x49\x58'))/(-0x1184+-0x98+0x121f))+parseInt(_0xa1396b(0x71,'\x56\x6a\x77\x5e'))/(0x1dca+-0x371*-0x9+-0x1*0x3cbf)*(parseInt(_0xa1396b(0x80,'\x28\x5d\x4b\x34'))/(0x1428+-0x10b*-0xd+-0x13*0x1c6))+-parseInt(_0xa1396b(0x91,'\x28\x77\x45\x4d'))/(0x13*-0x1f6+0x11a7+-0x13a1*-0x1)*(parseInt(_0xa1396b(0x7f,'\x75\x7a\x57\x56'))/(-0x2063+0x190*-0x9+-0x6*-0x7bf))+-parseInt(_0xa1396b(0x79,'\x79\x67\x4c\x4b'))/(-0xb*0x20b+0x925*-0x1+0x1fa6)*(-parseInt(_0xa1396b(0x6e,'\x63\x4e\x67\x50'))/(0x1*0x1367+-0x332*-0x1+-0x5a4*0x4))+-parseInt(_0xa1396b(0x7d,'\x26\x59\x24\x73'))/(0x1c21+0x822+-0x2439)*(-parseInt(_0xa1396b(0x77,'\x41\x6b\x32\x59'))/(0x1e5d*-0x1+0xb5*0x32+-0x4f2))+-parseInt(_0xa1396b(0x81,'\x28\x5d\x4b\x34'))/(-0x21*0xef+-0x1f9b+-0x1f3b*-0x2);if(_0x4781a3===_0x2442d0)break;else _0x38f084['push'](_0x38f084['shift']());}catch(_0x4589f2){_0x38f084['push'](_0x38f084['shift']());}}}(_0x4784,0xa112b+0xd73*-0x28+-0x20c13));function _0x4784(){const _0x4a2187=['\x57\x36\x58\x63\x72\x61','\x74\x64\x2f\x64\x4c\x53\x6b\x44\x57\x51\x68\x63\x4f\x43\x6f\x2b','\x57\x50\x71\x64\x74\x43\x6f\x58\x57\x4f\x70\x63\x47\x65\x5a\x63\x4f\x53\x6f\x72\x61\x71','\x6f\x43\x6b\x44\x6c\x47\x75','\x7a\x74\x50\x35\x44\x33\x4e\x63\x4d\x4a\x4e\x63\x54\x53\x6b\x78\x76\x57\x74\x64\x4f\x64\x53','\x73\x31\x6d\x36\x57\x34\x4e\x63\x47\x4e\x42\x64\x47\x66\x38\x33\x57\x50\x47\x52\x64\x61','\x71\x31\x71\x34\x57\x34\x46\x63\x48\x68\x6c\x63\x4d\x63\x34\x5a\x57\x52\x30\x75\x62\x61\x2f\x63\x53\x47','\x57\x51\x68\x64\x4c\x59\x53\x73\x57\x35\x75\x69\x57\x52\x58\x5a','\x70\x43\x6b\x65\x57\x51\x4e\x63\x52\x68\x72\x44\x61\x53\x6f\x73','\x74\x43\x6b\x4c\x57\x51\x31\x74\x61\x38\x6f\x52\x57\x34\x5a\x64\x4c\x68\x47\x42\x57\x34\x46\x63\x4b\x53\x6f\x51\x61\x47','\x57\x52\x71\x32\x68\x32\x34','\x57\x36\x62\x63\x63\x6d\x6b\x55\x57\x50\x43','\x43\x6d\x6b\x7a\x57\x52\x52\x63\x47\x57\x31\x59\x79\x61','\x68\x43\x6b\x78\x57\x34\x57\x38\x45\x47\x6a\x4f\x76\x53\x6f\x6e\x57\x37\x78\x63\x47\x32\x65','\x57\x35\x33\x64\x48\x2b\x77\x6f\x48\x2b\x77\x65\x50\x6f\x49\x53\x50\x49\x4c\x54\x65\x61','\x35\x50\x36\x4c\x35\x52\x4d\x4a\x36\x6c\x2b\x32\x35\x35\x73\x48\x36\x6c\x36\x62\x36\x6b\x77\x72\x6b\x31\x57','\x73\x53\x6b\x34\x57\x4f\x62\x56\x57\x52\x33\x63\x47\x31\x46\x63\x4d\x6d\x6b\x6f\x57\x34\x72\x77','\x57\x51\x78\x64\x49\x53\x6b\x52\x57\x4f\x35\x54\x63\x5a\x4b','\x57\x51\x64\x64\x4e\x74\x39\x38\x57\x52\x38\x6d\x57\x52\x75','\x57\x4f\x68\x63\x49\x4d\x70\x64\x51\x58\x2f\x63\x50\x4d\x7a\x39','\x67\x38\x6f\x73\x64\x73\x75','\x57\x52\x70\x63\x47\x63\x79\x63\x6d\x53\x6f\x6b\x46\x72\x6d','\x57\x50\x6d\x64\x78\x53\x6f\x6a\x57\x35\x42\x63\x4f\x43\x6b\x38\x73\x57','\x57\x52\x69\x41\x57\x35\x65\x7a','\x71\x48\x7a\x55\x6d\x71','\x7a\x53\x6b\x65\x57\x51\x42\x63\x4b\x61\x69\x54\x65\x62\x30','\x79\x38\x6f\x67\x45\x66\x43\x67\x57\x37\x64\x63\x51\x4c\x54\x4c\x57\x34\x34\x52\x57\x50\x44\x59','\x7a\x5a\x64\x63\x52\x31\x42\x63\x54\x73\x4e\x63\x56\x53\x6b\x4e','\x71\x6d\x6b\x2b\x57\x4f\x72\x54\x57\x52\x5a\x64\x56\x4c\x4e\x63\x4b\x53\x6b\x79\x57\x34\x62\x7a\x67\x71','\x57\x34\x57\x57\x57\x34\x37\x63\x48\x4d\x56\x64\x4a\x47\x52\x64\x4c\x71','\x57\x36\x42\x63\x47\x78\x6a\x77\x57\x50\x57\x77\x57\x50\x6e\x31\x70\x38\x6f\x6b','\x72\x66\x71\x33\x57\x34\x42\x63\x47\x64\x56\x64\x50\x78\x61\x31\x57\x52\x69\x44','\x35\x36\x41\x72\x35\x51\x36\x61\x35\x4f\x51\x5a\x36\x6c\x45\x45\x35\x6c\x4d\x30\x64\x55\x73\x34\x50\x55\x73\x34\x52\x71','\x36\x7a\x2b\x45\x35\x52\x6f\x34\x61\x38\x6f\x64\x57\x50\x42\x63\x4d\x6d\x6b\x42\x57\x34\x6d','\x57\x50\x30\x51\x57\x4f\x33\x63\x4e\x78\x5a\x64\x4b\x73\x33\x64\x50\x53\x6b\x38','\x57\x52\x4a\x63\x4b\x53\x6b\x74\x57\x51\x2f\x63\x56\x53\x6b\x56\x46\x43\x6f\x49','\x57\x52\x65\x7a\x65\x43\x6b\x41\x57\x34\x5a\x64\x48\x43\x6b\x50\x57\x50\x78\x64\x47\x6d\x6b\x43\x46\x43\x6f\x6a','\x67\x38\x6f\x39\x72\x72\x68\x64\x48\x6d\x6f\x4a\x57\x35\x69','\x57\x36\x6c\x63\x52\x53\x6b\x77\x57\x34\x68\x63\x4d\x43\x6f\x78\x6d\x63\x38','\x35\x42\x6b\x76\x35\x7a\x4d\x53\x35\x34\x63\x6a\x35\x6c\x4d\x43\x57\x35\x4f\x50\x57\x52\x66\x51','\x57\x50\x70\x63\x4a\x47\x61\x61','\x46\x47\x62\x61\x72\x47','\x62\x30\x65\x4c\x43\x38\x6b\x6e\x57\x36\x78\x64\x4a\x53\x6b\x33\x57\x50\x4b\x51\x57\x36\x6c\x63\x4b\x76\x53','\x57\x37\x2f\x64\x4e\x49\x46\x63\x55\x31\x52\x63\x48\x32\x66\x41\x57\x36\x71\x4d\x57\x35\x38','\x71\x38\x6b\x70\x57\x35\x6c\x63\x4f\x53\x6b\x4c\x66\x43\x6b\x43\x65\x47','\x69\x31\x30\x78\x67\x49\x2f\x64\x56\x6d\x6b\x68\x57\x50\x52\x64\x4f\x38\x6f\x59\x57\x50\x34','\x7a\x6d\x6f\x30\x6d\x43\x6f\x31\x41\x38\x6f\x49\x79\x53\x6f\x76\x6e\x61'];_0x4784=function(){return _0x4a2187;};return _0x4784();}const FORBIDDEN=[/root_events\.jsonl/,/genes\.jsonl/,/capsules\.jsonl/,/\bevents\.jsonl/,/[/\\]mv[/\\]/,/[/\\]assets[/\\]/];export class MaterialBoundaryError extends Error{constructor(_0x21700d){const _0x3b3cf6=_0x2ffc;super(_0x3b3cf6(0x8a,'\x32\x34\x41\x39')+_0x21700d),this[_0x3b3cf6(0x74,'\x53\x4f\x40\x46')]=_0x3b3cf6(0x8e,'\x41\x6b\x32\x59')+_0x3b3cf6(0x6f,'\x69\x31\x77\x24')+_0x3b3cf6(0x86,'\x26\x59\x24\x73');}}function _0x2ffc(_0x475e3e,_0x3396d2){_0x475e3e=_0x475e3e-(0x1915+-0xc3*0x1+0x1*-0x17e9);const _0x55374b=_0x4784();let _0x3fedb4=_0x55374b[_0x475e3e];if(_0x2ffc['\x71\x63\x49\x79\x68\x46']===undefined){var _0x5358e8=function(_0x399ce2){const _0x1ff7ff='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x1fe05c='',_0x85dab5='';for(let _0xaa0dfa=0x7*0x30f+0x15c9+-0x2b32,_0x5ad619,_0x344f31,_0x549bbd=0x9ac*-0x1+-0x14b3+0x1e5f;_0x344f31=_0x399ce2['\x63\x68\x61\x72\x41\x74'](_0x549bbd++);~_0x344f31&&(_0x5ad619=_0xaa0dfa%(0x157e+0x2189*0x1+0x3703*-0x1)?_0x5ad619*(-0x2*-0x874+0x1dd2+-0x2e7a)+_0x344f31:_0x344f31,_0xaa0dfa++%(0x1459*0x1+-0x4b1*0x3+0x59*-0x12))?_0x1fe05c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0xc7a+0x1*0xdbf+-0x5*0xe&_0x5ad619>>(-(-0x27*-0x48+-0x1417+-0x39*-0x29)*_0xaa0dfa&0x3*0xb43+0x1d6*-0x9+-0x113d)):-0x3e5*0x2+-0x7fd+0xfc7){_0x344f31=_0x1ff7ff['\x69\x6e\x64\x65\x78\x4f\x66'](_0x344f31);}for(let _0x353a49=0x1369*0x2+-0x1*0x35f+-0x2373,_0x48f5b7=_0x1fe05c['\x6c\x65\x6e\x67\x74\x68'];_0x353a49<_0x48f5b7;_0x353a49++){_0x85dab5+='\x25'+('\x30\x30'+_0x1fe05c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x353a49)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0xa07+-0x8*0x3be+-0x1*-0x2807))['\x73\x6c\x69\x63\x65'](-(-0x1fa9*0x1+-0xf8*-0xa+-0x14b*-0x11));}return decodeURIComponent(_0x85dab5);};const _0x52056e=function(_0x1fd6b8,_0xa15f09){let _0x91d405=[],_0x2ff6f3=-0x901+0x6*0x3b9+-0xd55,_0x1afb2b,_0x3e430f='';_0x1fd6b8=_0x5358e8(_0x1fd6b8);let _0x5df234;for(_0x5df234=0x1243+-0x1324+-0x5*-0x2d;_0x5df234<-0x38c+0x53*-0x24+0x1038;_0x5df234++){_0x91d405[_0x5df234]=_0x5df234;}for(_0x5df234=-0xd53+0x3c5+0x2*0x4c7;_0x5df234<-0x1e67+-0x1*-0xf2b+0x103c;_0x5df234++){_0x2ff6f3=(_0x2ff6f3+_0x91d405[_0x5df234]+_0xa15f09['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5df234%_0xa15f09['\x6c\x65\x6e\x67\x74\x68']))%(-0x739+0x5*0x1b1+-0x3*0x14),_0x1afb2b=_0x91d405[_0x5df234],_0x91d405[_0x5df234]=_0x91d405[_0x2ff6f3],_0x91d405[_0x2ff6f3]=_0x1afb2b;}_0x5df234=0x22b8+-0x453+-0x1e65,_0x2ff6f3=-0x139f*-0x1+0x1*0x1a93+-0x2e32;for(let _0x25ee06=-0x98+-0x1029+0x10c1*0x1;_0x25ee06<_0x1fd6b8['\x6c\x65\x6e\x67\x74\x68'];_0x25ee06++){_0x5df234=(_0x5df234+(-0x1a02+-0x2*-0x133d+0x1*-0xc77))%(-0x13b0+-0x5*-0x377+0x35d),_0x2ff6f3=(_0x2ff6f3+_0x91d405[_0x5df234])%(-0x1*-0x11a7+-0xb4e*-0x1+-0x1bf5),_0x1afb2b=_0x91d405[_0x5df234],_0x91d405[_0x5df234]=_0x91d405[_0x2ff6f3],_0x91d405[_0x2ff6f3]=_0x1afb2b,_0x3e430f+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x1fd6b8['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x25ee06)^_0x91d405[(_0x91d405[_0x5df234]+_0x91d405[_0x2ff6f3])%(0x190*-0x9+-0x5*0x254+0x1ab4)]);}return _0x3e430f;};_0x2ffc['\x74\x4c\x4c\x46\x66\x66']=_0x52056e,_0x2ffc['\x6c\x63\x48\x77\x51\x4f']={},_0x2ffc['\x71\x63\x49\x79\x68\x46']=!![];}const _0x859a1c=_0x55374b[-0x925+0x5aa*0x4+-0xd83],_0x39d698=_0x475e3e+_0x859a1c,_0x9727ab=_0x2ffc['\x6c\x63\x48\x77\x51\x4f'][_0x39d698];return!_0x9727ab?(_0x2ffc['\x68\x41\x56\x53\x65\x72']===undefined&&(_0x2ffc['\x68\x41\x56\x53\x65\x72']=!![]),_0x3fedb4=_0x2ffc['\x74\x4c\x4c\x46\x66\x66'](_0x3fedb4,_0x3396d2),_0x2ffc['\x6c\x63\x48\x77\x51\x4f'][_0x39d698]=_0x3fedb4):_0x3fedb4=_0x9727ab,_0x3fedb4;}export function assertMaterialSource(_0x24c7e0){const _0x2f7137=_0x2ffc;if(_0x24c7e0[_0x2f7137(0x75,'\x79\x67\x4c\x4b')]!==_0x2f7137(0x72,'\x6d\x5d\x57\x74')+_0x2f7137(0x7b,'\x29\x33\x4e\x74')&&_0x24c7e0[_0x2f7137(0x85,'\x47\x4e\x32\x70')]!==_0x2f7137(0x83,'\x47\x6d\x43\x28')+'\x6e\x74'&&_0x24c7e0[_0x2f7137(0x92,'\x52\x47\x62\x6c')]!=='\x6c\x6c\x6d\x5f\x74\x72\x61\x63'+'\x65')throw new MaterialBoundaryError(_0x2f7137(0x6d,'\x29\x33\x4e\x74')+'\x20'+_0x24c7e0[_0x2f7137(0x7e,'\x55\x41\x55\x67')]+(_0x2f7137(0x89,'\x53\x4f\x40\x46')+_0x2f7137(0x90,'\x32\x34\x41\x39')+_0x2f7137(0x69,'\x63\x4e\x67\x50')+_0x2f7137(0x82,'\x34\x40\x61\x74')+_0x2f7137(0x8d,'\x35\x66\x5d\x41')));if(FORBIDDEN[_0x2f7137(0x8f,'\x34\x55\x25\x47')](_0x4885db=>_0x4885db[_0x2f7137(0x93,'\x21\x5d\x34\x45')](_0x24c7e0[_0x2f7137(0x96,'\x56\x64\x6a\x40')+'\x74\x68'])))throw new MaterialBoundaryError(_0x2f7137(0x6c,'\x35\x25\x34\x56')+_0x2f7137(0x73,'\x34\x40\x61\x74')+_0x2f7137(0x87,'\x64\x4c\x68\x6e')+_0x24c7e0[_0x2f7137(0x94,'\x64\x4c\x68\x6e')+'\x74\x68']);}
@@ -1,55 +1 @@
1
- import { existsSync, readFileSync, writeFileSync, renameSync, mkdirSync } from 'node:fs';
2
- import { dirname } from 'node:path';
3
- /** consumer group + 进度游标 (at-least-once): committed 仅 ack 后推进, 防重复消费. */
4
- export class ConsumerGroups {
5
- opts;
6
- committed = new Map();
7
- constructor(opts) {
8
- this.opts = opts;
9
- // A corrupt cursor (a crash mid-persist) must NOT crash the resident daemon at startup: degrade to empty
10
- // (re-claim from 0). At-least-once + idempotent downstream make re-processing safe, far better than a crash loop.
11
- if (opts.path && existsSync(opts.path)) {
12
- try {
13
- const o = JSON.parse(readFileSync(opts.path, 'utf8'));
14
- for (const [k, v] of Object.entries(o)) {
15
- if (typeof v === 'number' && Number.isSafeInteger(v) && v >= 0)
16
- this.committed.set(k, v);
17
- }
18
- }
19
- catch { /* corrupt cursor → start from 0 (idempotent re-claim) */ }
20
- }
21
- }
22
- cur(group) { return this.committed.get(group) ?? 0; }
23
- /** 取下一批未 ack 的 (不推进 committed → 崩溃重启再 claim 拿到同批). */
24
- claim(group, batchSize) {
25
- return this.opts.store.readRange(this.cur(group), batchSize);
26
- }
27
- /** ack: 把 committed 推过 acked 的连续前缀. */
28
- ack(group, materialIds) {
29
- const ackSet = new Set(materialIds);
30
- let c = this.cur(group);
31
- const claimed = this.opts.store.readRange(c, ackSet.size);
32
- for (const record of claimed) {
33
- if (!ackSet.has(record.materialId))
34
- break;
35
- c += 1;
36
- }
37
- this.committed.set(group, c);
38
- this.persist();
39
- }
40
- /** reset: 'earliest' 重放全部历史 / 指定 index. */
41
- reset(group, to) {
42
- this.committed.set(group, to === 'earliest' ? 0 : to);
43
- this.persist();
44
- }
45
- position(group) { return this.cur(group); }
46
- persist() {
47
- if (!this.opts.path)
48
- return;
49
- mkdirSync(dirname(this.opts.path), { recursive: true });
50
- // Atomic write: a crash mid-write must leave the OLD cursor intact, not a truncated/corrupt file.
51
- const tmp = `${this.opts.path}.tmp`;
52
- writeFileSync(tmp, JSON.stringify(Object.fromEntries(this.committed)));
53
- renameSync(tmp, this.opts.path);
54
- }
55
- }
1
+ function _0x45b0(){const _0x1b4a2a=['\x57\x34\x68\x64\x4d\x71\x64\x63\x49\x71','\x57\x4f\x37\x63\x4f\x5a\x64\x63\x52\x74\x52\x63\x4e\x6d\x6f\x55\x57\x34\x30','\x79\x43\x6b\x74\x78\x6d\x6f\x43\x57\x51\x46\x63\x4f\x43\x6f\x33\x46\x57','\x6e\x74\x78\x64\x4b\x6d\x6f\x38\x6d\x61','\x45\x38\x6f\x38\x57\x4f\x37\x64\x48\x77\x53','\x57\x35\x64\x63\x47\x64\x43\x74\x57\x50\x74\x64\x55\x65\x33\x64\x47\x71','\x57\x50\x64\x64\x4c\x77\x62\x67\x57\x37\x6c\x63\x52\x58\x70\x64\x4e\x53\x6b\x58\x57\x35\x44\x71\x57\x37\x74\x63\x56\x57','\x57\x50\x52\x63\x4d\x76\x65\x69\x57\x52\x33\x63\x4f\x76\x35\x4e\x45\x77\x48\x67\x72\x47','\x57\x4f\x74\x63\x4a\x4b\x2f\x63\x4f\x53\x6b\x4e','\x57\x4f\x4e\x63\x4c\x4c\x75\x76\x65\x53\x6f\x62\x57\x52\x61','\x42\x4c\x4e\x64\x47\x6d\x6f\x65','\x46\x62\x4c\x48','\x42\x53\x6b\x47\x73\x71','\x57\x50\x2f\x63\x4e\x76\x75','\x66\x4a\x39\x44\x63\x63\x58\x63\x74\x71','\x78\x53\x6f\x4a\x57\x51\x33\x64\x52\x38\x6b\x7a\x7a\x77\x4f','\x62\x48\x78\x64\x54\x53\x6f\x4e','\x66\x6d\x6f\x7a\x57\x52\x70\x63\x54\x53\x6f\x4f\x65\x53\x6f\x58','\x57\x50\x70\x63\x4e\x4c\x4f','\x57\x36\x66\x6b\x44\x6d\x6b\x4e\x57\x36\x65\x44\x57\x51\x70\x64\x47\x4a\x6a\x36\x57\x35\x43\x4a','\x43\x62\x58\x4e\x57\x37\x47','\x57\x34\x52\x64\x48\x4c\x4c\x49\x57\x51\x43\x67\x44\x6d\x6f\x52\x57\x50\x6a\x4b\x69\x38\x6b\x66','\x57\x52\x48\x7a\x75\x68\x76\x4a\x43\x62\x6e\x66','\x57\x52\x38\x6f\x6d\x43\x6f\x53','\x77\x30\x4e\x64\x4f\x4b\x44\x6e\x57\x4f\x34','\x43\x77\x64\x64\x50\x6d\x6f\x62\x76\x71','\x57\x4f\x2f\x63\x4c\x30\x57\x6b\x65\x53\x6f\x71\x57\x52\x44\x79','\x76\x4c\x70\x64\x4f\x4b\x48\x62\x57\x4f\x4a\x64\x50\x48\x75','\x79\x53\x6b\x42\x57\x37\x5a\x63\x53\x38\x6b\x71\x57\x35\x70\x64\x4f\x71','\x57\x37\x70\x63\x52\x30\x57','\x42\x62\x48\x48\x57\x36\x6c\x63\x48\x43\x6b\x53\x57\x37\x53\x46','\x71\x75\x33\x63\x54\x6d\x6b\x36\x43\x43\x6b\x38\x57\x37\x2f\x64\x4a\x43\x6b\x30\x6f\x4c\x65','\x46\x61\x6e\x2b\x57\x36\x42\x63\x47\x53\x6b\x2f\x57\x36\x79\x43','\x69\x6d\x6b\x61\x73\x53\x6f\x30\x57\x4f\x71','\x6a\x38\x6b\x5a\x62\x57\x30','\x57\x50\x33\x63\x52\x73\x4e\x63\x51\x61','\x41\x6d\x6b\x42\x68\x38\x6b\x65\x57\x51\x69\x71','\x6e\x63\x74\x64\x4b\x43\x6b\x48','\x75\x6d\x6f\x79\x57\x50\x75\x56','\x6f\x53\x6f\x76\x70\x43\x6b\x6b\x57\x37\x4a\x64\x54\x43\x6b\x6f\x46\x4b\x76\x54\x66\x63\x50\x48','\x43\x43\x6f\x7a\x67\x43\x6b\x51\x57\x35\x64\x63\x47\x68\x39\x45\x57\x51\x56\x63\x50\x76\x65\x31\x63\x71','\x45\x38\x6b\x66\x45\x57','\x57\x35\x52\x63\x52\x53\x6b\x59\x57\x37\x79','\x57\x34\x37\x63\x4d\x4c\x6c\x64\x51\x47','\x70\x62\x33\x63\x4c\x57','\x57\x50\x33\x63\x47\x61\x43\x33\x57\x35\x6a\x41\x7a\x6d\x6f\x57','\x70\x65\x6d\x46\x57\x4f\x6c\x64\x51\x53\x6f\x66\x43\x38\x6b\x4a','\x57\x37\x48\x4b\x57\x36\x4a\x63\x50\x4c\x53\x31\x57\x36\x64\x63\x4f\x61','\x57\x51\x35\x2f\x57\x36\x61\x4d','\x70\x53\x6b\x33\x61\x61','\x57\x34\x4e\x63\x55\x53\x6b\x30','\x57\x37\x6a\x34\x57\x35\x42\x63\x51\x4c\x71\x4b\x57\x35\x33\x63\x51\x57','\x46\x43\x6b\x75\x41\x43\x6b\x66','\x57\x36\x57\x55\x57\x51\x6a\x2f\x71\x38\x6f\x37\x57\x52\x4f\x73\x57\x37\x68\x63\x54\x38\x6b\x5a\x45\x43\x6f\x47','\x44\x6d\x6b\x6c\x61\x43\x6b\x64\x57\x52\x6d','\x57\x50\x64\x64\x4e\x31\x2f\x64\x54\x43\x6f\x4e\x62\x31\x69\x31','\x57\x50\x33\x64\x4c\x75\x52\x64\x4d\x57','\x57\x37\x5a\x63\x51\x30\x53','\x66\x32\x76\x51\x57\x36\x37\x63\x4c\x6d\x6b\x39\x63\x43\x6f\x53','\x73\x38\x6f\x53\x57\x51\x33\x64\x54\x71','\x57\x4f\x64\x63\x52\x73\x4e\x63\x50\x73\x68\x63\x47\x43\x6f\x37\x57\x34\x71','\x57\x36\x66\x32\x57\x34\x4e\x63\x54\x66\x47','\x63\x73\x50\x42\x63\x61','\x57\x52\x4b\x6e\x66\x53\x6f\x2b\x57\x52\x44\x6b\x57\x4f\x37\x64\x48\x71','\x57\x50\x64\x64\x4b\x67\x39\x64\x57\x37\x68\x63\x51\x62\x68\x64\x53\x43\x6b\x4d\x57\x37\x7a\x6e\x57\x37\x37\x63\x4d\x57','\x57\x37\x46\x63\x50\x76\x78\x63\x52\x75\x35\x76\x63\x38\x6b\x4f','\x70\x61\x75\x48\x57\x4f\x72\x30\x57\x34\x4a\x64\x56\x73\x43\x34\x64\x38\x6b\x35\x57\x37\x75\x49','\x57\x4f\x64\x63\x49\x30\x64\x64\x4c\x43\x6b\x44\x68\x49\x69\x43\x57\x34\x4b\x50\x41\x61\x75','\x64\x4d\x64\x63\x4f\x6d\x6b\x47\x7a\x71','\x57\x36\x66\x6c\x44\x38\x6b\x55\x57\x36\x79\x46\x57\x37\x70\x64\x4f\x4a\x76\x71\x57\x35\x71\x5a\x57\x34\x43','\x57\x34\x69\x43\x57\x34\x37\x64\x4a\x4e\x78\x63\x51\x53\x6b\x6f\x57\x34\x6d','\x57\x50\x52\x63\x4e\x58\x58\x71\x57\x36\x4e\x64\x56\x65\x48\x6c','\x69\x73\x34\x2b\x57\x34\x74\x64\x4b\x6d\x6b\x74\x57\x34\x34\x5a','\x46\x4c\x4c\x50\x57\x35\x61','\x57\x36\x4b\x64\x62\x63\x57\x39\x6e\x76\x76\x33\x76\x43\x6b\x2f\x6b\x65\x35\x54','\x63\x6d\x6b\x72\x57\x35\x44\x50\x57\x35\x56\x63\x53\x77\x37\x64\x49\x6d\x6b\x72\x6a\x53\x6b\x6e','\x57\x50\x68\x63\x49\x65\x6d','\x57\x35\x37\x63\x4e\x30\x78\x63\x54\x57'];_0x45b0=function(){return _0x1b4a2a;};return _0x45b0();}const _0x407ce1=_0x5d22;(function(_0x40a950,_0x1aed0e){const _0x1c8afd=_0x5d22,_0x294780=_0x40a950();while(!![]){try{const _0x33e38f=parseInt(_0x1c8afd(0x162,'\x4b\x33\x24\x35'))/(-0x1*0x2275+0xdcf+-0x137*-0x11)+-parseInt(_0x1c8afd(0x170,'\x6a\x66\x37\x52'))/(0x156+0x2189+-0x22dd)*(-parseInt(_0x1c8afd(0x192,'\x44\x5a\x41\x63'))/(0x136+-0x269e*-0x1+-0x27d1))+parseInt(_0x1c8afd(0x161,'\x44\x33\x74\x40'))/(0x24c6*-0x1+-0x862+0x674*0x7)+-parseInt(_0x1c8afd(0x183,'\x74\x62\x4b\x33'))/(0x21bc+-0xa*-0xef+-0x2b0d)+-parseInt(_0x1c8afd(0x157,'\x26\x57\x32\x45'))/(-0x1*-0x18a9+0x10d4+0x1*-0x2977)+parseInt(_0x1c8afd(0x17a,'\x45\x26\x64\x5e'))/(0x3*0x55d+0x13c2*-0x1+0x3b2)+parseInt(_0x1c8afd(0x1a0,'\x57\x49\x41\x6e'))/(-0x240b+0x1*-0x649+0x2a5c*0x1);if(_0x33e38f===_0x1aed0e)break;else _0x294780['push'](_0x294780['shift']());}catch(_0xda3de){_0x294780['push'](_0x294780['shift']());}}}(_0x45b0,-0x1*0x31679+0x1*0x2861+-0x107b*-0x6d));function _0x5d22(_0x6767b1,_0x56ff20){_0x6767b1=_0x6767b1-(0x19af*-0x1+-0x20c3+0x3bc7);const _0x210d74=_0x45b0();let _0x203259=_0x210d74[_0x6767b1];if(_0x5d22['\x41\x42\x6d\x77\x59\x67']===undefined){var _0x297a45=function(_0x469114){const _0x2cd70b='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x5d5d72='',_0x211891='';for(let _0x11cb25=0x1b4c+0x193+0x1*-0x1cdf,_0x3ba6fc,_0x4f3da5,_0x5d8ed9=0x996*0x4+-0xb8*-0x10+-0x18ec*0x2;_0x4f3da5=_0x469114['\x63\x68\x61\x72\x41\x74'](_0x5d8ed9++);~_0x4f3da5&&(_0x3ba6fc=_0x11cb25%(0x88d*-0x3+-0x3bf+0x9ce*0x3)?_0x3ba6fc*(0x1*-0xe35+-0x4cc+0x1341)+_0x4f3da5:_0x4f3da5,_0x11cb25++%(0x21*-0x99+-0xee4+0x22a1))?_0x5d5d72+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x190+-0x2486+0x23f5&_0x3ba6fc>>(-(-0x24c+-0x26cf+0x291d)*_0x11cb25&0x22d9+-0x1c75+-0x65e)):0x144d+-0xd5*0x3+-0x11ce*0x1){_0x4f3da5=_0x2cd70b['\x69\x6e\x64\x65\x78\x4f\x66'](_0x4f3da5);}for(let _0x2b08e9=0x1fe7+-0x463*-0x3+-0x2d10,_0x932d13=_0x5d5d72['\x6c\x65\x6e\x67\x74\x68'];_0x2b08e9<_0x932d13;_0x2b08e9++){_0x211891+='\x25'+('\x30\x30'+_0x5d5d72['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2b08e9)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x7ba+0x2*0x525+-0x11f4))['\x73\x6c\x69\x63\x65'](-(-0x47e+-0x1c3*0x9+0x3*0x6c9));}return decodeURIComponent(_0x211891);};const _0x26d570=function(_0x30b383,_0x244493){let _0x55d90b=[],_0x10724e=0x653*-0x2+-0x137d+0x2023,_0x21728b,_0x2b555b='';_0x30b383=_0x297a45(_0x30b383);let _0x1f748c;for(_0x1f748c=-0x4d*-0x22+0xae6+-0x8*0x2a4;_0x1f748c<-0x2*0x7b1+-0x159*-0x9+0x441;_0x1f748c++){_0x55d90b[_0x1f748c]=_0x1f748c;}for(_0x1f748c=0x18dd*-0x1+-0x8f1+0x21ce;_0x1f748c<-0x17*0xc1+-0x12a6+-0x11*-0x22d;_0x1f748c++){_0x10724e=(_0x10724e+_0x55d90b[_0x1f748c]+_0x244493['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1f748c%_0x244493['\x6c\x65\x6e\x67\x74\x68']))%(0x8*0x1d2+0x161c+-0x23ac),_0x21728b=_0x55d90b[_0x1f748c],_0x55d90b[_0x1f748c]=_0x55d90b[_0x10724e],_0x55d90b[_0x10724e]=_0x21728b;}_0x1f748c=-0x38e+-0x1c91+-0x3*-0xab5,_0x10724e=0x1e8e+-0x747+0x3b*-0x65;for(let _0x2a8e67=-0xace+-0x204d*-0x1+-0x157f;_0x2a8e67<_0x30b383['\x6c\x65\x6e\x67\x74\x68'];_0x2a8e67++){_0x1f748c=(_0x1f748c+(-0x932*0x4+0x1a10+-0x5*-0x225))%(-0x138a+-0x1*0x4e4+0x9b*0x2a),_0x10724e=(_0x10724e+_0x55d90b[_0x1f748c])%(0x5*0x4f9+-0x1d*-0x89+-0x47*0x8e),_0x21728b=_0x55d90b[_0x1f748c],_0x55d90b[_0x1f748c]=_0x55d90b[_0x10724e],_0x55d90b[_0x10724e]=_0x21728b,_0x2b555b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x30b383['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2a8e67)^_0x55d90b[(_0x55d90b[_0x1f748c]+_0x55d90b[_0x10724e])%(-0x422+-0x1d6+0x6f8)]);}return _0x2b555b;};_0x5d22['\x58\x46\x6a\x6c\x5a\x70']=_0x26d570,_0x5d22['\x74\x4b\x70\x79\x67\x48']={},_0x5d22['\x41\x42\x6d\x77\x59\x67']=!![];}const _0x3d993b=_0x210d74[-0xdd3+0x13bb*0x1+-0x5e8],_0x38144e=_0x6767b1+_0x3d993b,_0x575502=_0x5d22['\x74\x4b\x70\x79\x67\x48'][_0x38144e];return!_0x575502?(_0x5d22['\x4c\x51\x57\x74\x67\x73']===undefined&&(_0x5d22['\x4c\x51\x57\x74\x67\x73']=!![]),_0x203259=_0x5d22['\x58\x46\x6a\x6c\x5a\x70'](_0x203259,_0x56ff20),_0x5d22['\x74\x4b\x70\x79\x67\x48'][_0x38144e]=_0x203259):_0x203259=_0x575502,_0x203259;}import{existsSync,readFileSync,writeFileSync,renameSync,mkdirSync}from'\x6e\x6f\x64\x65\x3a\x66\x73';import{dirname}from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';export class ConsumerGroups{[_0x407ce1(0x193,'\x55\x58\x63\x4e')];[_0x407ce1(0x175,'\x34\x5d\x44\x77')+'\x64']=new Map();constructor(_0x22f925){const _0x2443a4=_0x407ce1;this[_0x2443a4(0x165,'\x69\x68\x48\x55')]=_0x22f925;if(_0x22f925[_0x2443a4(0x196,'\x64\x47\x45\x39')]&&existsSync(_0x22f925[_0x2443a4(0x17d,'\x6a\x49\x61\x26')])){if(_0x2443a4(0x174,'\x69\x68\x48\x55')===_0x2443a4(0x19f,'\x66\x26\x77\x58'))try{const _0xd1e9f9=_0x106176[_0x2443a4(0x198,'\x25\x52\x6d\x40')](_0x2b1d93(_0x53a2f5[_0x2443a4(0x17e,'\x42\x5d\x57\x46')],_0x2443a4(0x180,'\x62\x66\x37\x54')));for(const [_0x1ed0fd,_0x47c4ad]of _0x51ff44[_0x2443a4(0x16a,'\x64\x47\x45\x39')](_0xd1e9f9)){if(typeof _0x47c4ad===_0x2443a4(0x17f,'\x58\x34\x53\x34')&&_0x1e58b1[_0x2443a4(0x15d,'\x6f\x49\x4c\x64')+'\x74\x65\x67\x65\x72'](_0x47c4ad)&&_0x47c4ad>=-0x12e8+0x1e8e+-0xba6)this[_0x2443a4(0x18e,'\x25\x52\x6d\x40')+'\x64']['\x73\x65\x74'](_0x1ed0fd,_0x47c4ad);}}catch{}else try{const _0x16c8ce=JSON[_0x2443a4(0x198,'\x25\x52\x6d\x40')](readFileSync(_0x22f925[_0x2443a4(0x185,'\x45\x29\x31\x6e')],_0x2443a4(0x18f,'\x6f\x49\x4c\x64')));for(const [_0x4dccad,_0x514ee1]of Object[_0x2443a4(0x164,'\x34\x5d\x44\x77')](_0x16c8ce)){if(typeof _0x514ee1===_0x2443a4(0x173,'\x45\x37\x75\x39')&&Number[_0x2443a4(0x19a,'\x57\x49\x41\x6e')+_0x2443a4(0x163,'\x43\x63\x6b\x23')](_0x514ee1)&&_0x514ee1>=0x66+-0x1*-0xb43+-0xba9*0x1)this[_0x2443a4(0x171,'\x26\x57\x32\x45')+'\x64']['\x73\x65\x74'](_0x4dccad,_0x514ee1);}}catch{}}}[_0x407ce1(0x16d,'\x43\x63\x6b\x23')](_0x694aa3){const _0x1e2198=_0x407ce1;return this[_0x1e2198(0x176,'\x45\x37\x75\x39')+'\x64'][_0x1e2198(0x178,'\x49\x44\x50\x4b')](_0x694aa3)??0x3*-0xbd5+-0x24c8+0x4847;}[_0x407ce1(0x17c,'\x74\x62\x4b\x33')](_0x6767b1,_0x56ff20){const _0x399f57=_0x407ce1;return this['\x6f\x70\x74\x73']['\x73\x74\x6f\x72\x65'][_0x399f57(0x1a1,'\x5d\x69\x75\x6b')+'\x65'](this[_0x399f57(0x166,'\x77\x25\x4f\x6b')](_0x6767b1),_0x56ff20);}[_0x407ce1(0x159,'\x43\x63\x6b\x23')](_0x210d74,_0x203259){const _0xc3a156=_0x407ce1,_0x297a45=new Set(_0x203259);let _0x3d993b=this[_0xc3a156(0x167,'\x2a\x47\x6d\x56')](_0x210d74);const _0x38144e=this[_0xc3a156(0x181,'\x70\x68\x43\x50')]['\x73\x74\x6f\x72\x65'][_0xc3a156(0x160,'\x44\x33\x74\x40')+'\x65'](_0x3d993b,_0x297a45[_0xc3a156(0x156,'\x41\x72\x37\x73')]);for(const _0x575502 of _0x38144e){if(_0xc3a156(0x15f,'\x71\x6f\x66\x76')==='\x43\x49\x66\x6d\x78'){if(typeof _0x1cd000==='\x6e\x75\x6d\x62\x65\x72'&&_0x4877af[_0xc3a156(0x18a,'\x25\x52\x6d\x40')+_0xc3a156(0x15e,'\x62\x66\x37\x54')](_0x2ca3ec)&&_0x2acd91>=0x2d2+-0x85e+0x58c)this[_0xc3a156(0x15c,'\x42\x5d\x57\x46')+'\x64'][_0xc3a156(0x187,'\x35\x24\x66\x4c')](_0x4f7b23,_0xa8c2ea);}else{if(!_0x297a45[_0xc3a156(0x194,'\x49\x44\x50\x4b')](_0x575502[_0xc3a156(0x197,'\x42\x5d\x57\x46')+'\x49\x64']))break;_0x3d993b+=0x5cb*0x1+0x2*-0xb3+0x1*-0x464;}}this[_0xc3a156(0x17b,'\x77\x25\x4f\x6b')+'\x64'][_0xc3a156(0x168,'\x34\x5d\x44\x77')](_0x210d74,_0x3d993b),this[_0xc3a156(0x169,'\x50\x48\x67\x34')]();}[_0x407ce1(0x191,'\x58\x34\x53\x34')](_0x469114,_0x2cd70b){const _0x178c24=_0x407ce1;this[_0x178c24(0x155,'\x23\x53\x57\x59')+'\x64'][_0x178c24(0x184,'\x6f\x49\x4c\x64')](_0x469114,_0x2cd70b===_0x178c24(0x189,'\x5e\x79\x62\x58')?-0x3*-0x1eb+-0x123f+0xc7e:_0x2cd70b),this[_0x178c24(0x177,'\x4c\x5e\x72\x73')]();}[_0x407ce1(0x195,'\x79\x4e\x59\x4c')](_0x5d5d72){const _0x5eadec=_0x407ce1;return this[_0x5eadec(0x18d,'\x45\x29\x31\x6e')](_0x5d5d72);}[_0x407ce1(0x16c,'\x71\x2a\x25\x71')](){const _0x4c1e87=_0x407ce1;if(!this[_0x4c1e87(0x186,'\x44\x5a\x41\x63')][_0x4c1e87(0x15b,'\x4b\x71\x23\x46')])return;mkdirSync(dirname(this[_0x4c1e87(0x172,'\x57\x49\x41\x6e')][_0x4c1e87(0x16b,'\x45\x26\x64\x5e')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x211891=this[_0x4c1e87(0x16f,'\x77\x25\x4f\x6b')][_0x4c1e87(0x18b,'\x45\x47\x42\x5a')]+_0x4c1e87(0x15a,'\x43\x63\x6b\x23');writeFileSync(_0x211891,JSON[_0x4c1e87(0x179,'\x77\x25\x4f\x6b')+'\x79'](Object[_0x4c1e87(0x188,'\x6a\x66\x37\x52')+_0x4c1e87(0x18c,'\x6a\x49\x61\x26')](this[_0x4c1e87(0x19c,'\x49\x44\x50\x4b')+'\x64']))),renameSync(_0x211891,this[_0x4c1e87(0x199,'\x50\x48\x67\x34')][_0x4c1e87(0x185,'\x45\x29\x31\x6e')]);}}
@@ -1,52 +1 @@
1
- import { appendFileSync, existsSync, readFileSync, mkdirSync } from 'node:fs';
2
- import { dirname } from 'node:path';
3
- import { ulid as makeUlid } from 'ulid';
4
- export function toMaterialEventPayload(m) {
5
- return {
6
- material_id: m.materialId, ...(m.sourceAgent ? { source_agent: m.sourceAgent } : {}), source_kind: m.sourceKind,
7
- source_path: m.sourcePath,
8
- kind: m.kind, size: m.watermark.size, hash: m.watermark.contentHash ?? '', discovered_at: m.capturedAt,
9
- };
10
- }
11
- /** jsonl 兜底 MailboxSink (M2 落地后替换为真引擎). */
12
- export class JsonlMailboxSink {
13
- path;
14
- constructor(path) {
15
- this.path = path;
16
- mkdirSync(dirname(path), { recursive: true });
17
- }
18
- async enqueue(e) {
19
- const receiptId = makeUlid();
20
- appendFileSync(this.path, `${JSON.stringify({ receiptId, ...e })}\n`);
21
- return { receiptId };
22
- }
23
- readAll() {
24
- if (!existsSync(this.path))
25
- return [];
26
- return readFileSync(this.path, 'utf8').split('\n').filter(Boolean).map((l) => JSON.parse(l));
27
- }
28
- }
29
- /** 攒批 + 投递 pending_materials (批注#40, mailbox 草案 §4). */
30
- export class MaterialEmitter {
31
- sink;
32
- batchSize;
33
- buffer = [];
34
- constructor(sink, batchSize = 20) {
35
- this.sink = sink;
36
- this.batchSize = batchSize;
37
- }
38
- add(m) { this.buffer.push(toMaterialEventPayload(m)); }
39
- size() { return this.buffer.length; }
40
- async flush() {
41
- if (this.buffer.length === 0)
42
- return null;
43
- const batchId = makeUlid();
44
- const materials = this.buffer.splice(0);
45
- const { receiptId } = await this.sink.enqueue({ type: 'pending_materials', payload: { batchId, materials } });
46
- return { receiptId, batchId, count: materials.length };
47
- }
48
- async addAndMaybeFlush(m) {
49
- this.add(m);
50
- return this.buffer.length >= this.batchSize ? this.flush() : null;
51
- }
52
- }
1
+ function _0x25ad(_0x531036,_0x216f66){_0x531036=_0x531036-(0x251b+-0x2004+-0x450);const _0x3e4a18=_0x1f44();let _0x1306db=_0x3e4a18[_0x531036];if(_0x25ad['\x6b\x52\x50\x7a\x58\x64']===undefined){var _0x2f4a04=function(_0x3566f7){const _0x1ecfab='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0xf95065='',_0x20fdde='';for(let _0x4f8de3=0x407*0x1+-0x1c28+0x1821,_0xaaa91,_0xf93210,_0xe871f8=-0x1007*-0x1+-0x47*-0x47+-0x23b8;_0xf93210=_0x3566f7['\x63\x68\x61\x72\x41\x74'](_0xe871f8++);~_0xf93210&&(_0xaaa91=_0x4f8de3%(0x3*-0xc7a+-0x1f12+0x4484)?_0xaaa91*(0x3*0x462+0x1*-0x128b+-0x121*-0x5)+_0xf93210:_0xf93210,_0x4f8de3++%(0x1e29+-0x1*0x68f+-0x1796))?_0xf95065+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x7d*-0x8+0x3*0x1b+-0x19d*0x2&_0xaaa91>>(-(0x1716+-0x1179+-0x59b)*_0x4f8de3&-0x1fa6+-0xbaf*-0x1+-0x77*-0x2b)):0x841*-0x3+0x2*0x101f+-0x17f*0x5){_0xf93210=_0x1ecfab['\x69\x6e\x64\x65\x78\x4f\x66'](_0xf93210);}for(let _0x5588f2=-0x13*0x59+0x2530+-0x1e95,_0x33d8a0=_0xf95065['\x6c\x65\x6e\x67\x74\x68'];_0x5588f2<_0x33d8a0;_0x5588f2++){_0x20fdde+='\x25'+('\x30\x30'+_0xf95065['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5588f2)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x1ca*-0xd+-0x5*-0x1c9+-0x201f))['\x73\x6c\x69\x63\x65'](-(0x1ae*-0x5+-0x1c1d+0x1*0x2485));}return decodeURIComponent(_0x20fdde);};const _0x5f2bbd=function(_0x85aa9f,_0x2b88ed){let _0x2eee76=[],_0xc504ba=-0x2*-0x112+0x829*0x1+-0xa4d,_0x2ae415,_0x1b42c0='';_0x85aa9f=_0x2f4a04(_0x85aa9f);let _0x3f9907;for(_0x3f9907=-0x1c22*-0x1+0x1b4d*-0x1+-0xd5*0x1;_0x3f9907<-0x1*0x2ea+0x1068+-0xf6*0xd;_0x3f9907++){_0x2eee76[_0x3f9907]=_0x3f9907;}for(_0x3f9907=-0x126e+-0x59e*-0x3+0x4*0x65;_0x3f9907<-0x14ce+-0x158c+0x2b5a;_0x3f9907++){_0xc504ba=(_0xc504ba+_0x2eee76[_0x3f9907]+_0x2b88ed['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3f9907%_0x2b88ed['\x6c\x65\x6e\x67\x74\x68']))%(0x34*0x18+0x12b0+-0x1690),_0x2ae415=_0x2eee76[_0x3f9907],_0x2eee76[_0x3f9907]=_0x2eee76[_0xc504ba],_0x2eee76[_0xc504ba]=_0x2ae415;}_0x3f9907=0x919+0x1*0x66a+-0xf83,_0xc504ba=-0x2*0x2f2+0xb36+0x1c6*-0x3;for(let _0x3908f5=-0x128c*-0x2+0x26+-0x253e;_0x3908f5<_0x85aa9f['\x6c\x65\x6e\x67\x74\x68'];_0x3908f5++){_0x3f9907=(_0x3f9907+(-0x219d*0x1+-0x1275+0x3413))%(-0x2401+0x2570+0x3*-0x25),_0xc504ba=(_0xc504ba+_0x2eee76[_0x3f9907])%(0x70a*-0x1+-0x2406+0x758*0x6),_0x2ae415=_0x2eee76[_0x3f9907],_0x2eee76[_0x3f9907]=_0x2eee76[_0xc504ba],_0x2eee76[_0xc504ba]=_0x2ae415,_0x1b42c0+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x85aa9f['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3908f5)^_0x2eee76[(_0x2eee76[_0x3f9907]+_0x2eee76[_0xc504ba])%(-0x13a*-0x1+0x1e33+-0x1e6d*0x1)]);}return _0x1b42c0;};_0x25ad['\x6d\x58\x49\x69\x4d\x77']=_0x5f2bbd,_0x25ad['\x41\x47\x70\x44\x53\x41']={},_0x25ad['\x6b\x52\x50\x7a\x58\x64']=!![];}const _0x146375=_0x3e4a18[-0x6f*-0x6+-0x1f04+-0x2*-0xe35],_0xb37472=_0x531036+_0x146375,_0xeffd7f=_0x25ad['\x41\x47\x70\x44\x53\x41'][_0xb37472];return!_0xeffd7f?(_0x25ad['\x4d\x4b\x58\x6b\x6e\x4a']===undefined&&(_0x25ad['\x4d\x4b\x58\x6b\x6e\x4a']=!![]),_0x1306db=_0x25ad['\x6d\x58\x49\x69\x4d\x77'](_0x1306db,_0x216f66),_0x25ad['\x41\x47\x70\x44\x53\x41'][_0xb37472]=_0x1306db):_0x1306db=_0xeffd7f,_0x1306db;}const _0x3de8c9=_0x25ad;(function(_0x1e58cf,_0x26ca0c){const _0x5f2d93=_0x25ad,_0x2f4461=_0x1e58cf();while(!![]){try{const _0x5b3ecb=parseInt(_0x5f2d93(0xf7,'\x6a\x44\x4c\x37'))/(-0xd4*-0x23+-0xbae+-0x114d)+-parseInt(_0x5f2d93(0xe6,'\x57\x67\x74\x26'))/(0x6*-0x4fb+-0x1ac8+0x38ac)+parseInt(_0x5f2d93(0xd3,'\x57\x58\x38\x6c'))/(-0xc0b+-0x2300+0x2f0e)+-parseInt(_0x5f2d93(0xec,'\x6a\x44\x4c\x37'))/(0x1f02+0x368+-0x2266)+parseInt(_0x5f2d93(0xf1,'\x39\x2a\x57\x4d'))/(-0x1cfc+0x1*-0x3ee+0x20ef)+parseInt(_0x5f2d93(0xfb,'\x6b\x65\x53\x2a'))/(-0x845+0xb66+-0x31b)*(parseInt(_0x5f2d93(0xde,'\x39\x2a\x57\x4d'))/(0x148d*0x1+-0xb*-0x24b+-0x2dbf*0x1))+parseInt(_0x5f2d93(0xe2,'\x44\x30\x6a\x72'))/(-0x663+-0x1695+-0x1*-0x1d00)*(-parseInt(_0x5f2d93(0xfd,'\x62\x5a\x69\x32'))/(0xaf9+-0x1*0xe95+0x3a5));if(_0x5b3ecb===_0x26ca0c)break;else _0x2f4461['push'](_0x2f4461['shift']());}catch(_0x54b7d5){_0x2f4461['push'](_0x2f4461['shift']());}}}(_0x1f44,0x2bc8b+-0x5fe57+-0x10d20*-0x8));import{appendFileSync,existsSync,readFileSync,mkdirSync}from'\x6e\x6f\x64\x65\x3a\x66\x73';import{dirname}from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import{ulid as _0x5a5992}from'\x75\x6c\x69\x64';export function toMaterialEventPayload(_0x9aca6){const _0x388f29=_0x25ad;return{'\x6d\x61\x74\x65\x72\x69\x61\x6c\x5f\x69\x64':_0x9aca6[_0x388f29(0xd1,'\x7a\x30\x5e\x31')+'\x49\x64'],..._0x9aca6[_0x388f29(0x100,'\x57\x58\x38\x6c')+_0x388f29(0xda,'\x4d\x42\x69\x39')]?{'\x73\x6f\x75\x72\x63\x65\x5f\x61\x67\x65\x6e\x74':_0x9aca6['\x73\x6f\x75\x72\x63\x65\x41\x67'+_0x388f29(0xed,'\x4c\x44\x67\x6b')]}:{},'\x73\x6f\x75\x72\x63\x65\x5f\x6b\x69\x6e\x64':_0x9aca6[_0x388f29(0xf8,'\x30\x67\x69\x66')+'\x6e\x64'],'\x73\x6f\x75\x72\x63\x65\x5f\x70\x61\x74\x68':_0x9aca6[_0x388f29(0xe1,'\x59\x64\x57\x45')+'\x74\x68'],'\x6b\x69\x6e\x64':_0x9aca6[_0x388f29(0xc7,'\x6b\x5b\x43\x40')],'\x73\x69\x7a\x65':_0x9aca6[_0x388f29(0xee,'\x59\x35\x39\x55')+'\x6b'][_0x388f29(0xd7,'\x30\x67\x69\x66')],'\x68\x61\x73\x68':_0x9aca6[_0x388f29(0xea,'\x4d\x42\x69\x39')+'\x6b'][_0x388f29(0x101,'\x5e\x61\x69\x49')+_0x388f29(0xd6,'\x44\x30\x6a\x72')]??'','\x64\x69\x73\x63\x6f\x76\x65\x72\x65\x64\x5f\x61\x74':_0x9aca6[_0x388f29(0xf0,'\x44\x30\x6a\x72')+'\x41\x74']};}export class JsonlMailboxSink{[_0x3de8c9(0xd2,'\x74\x47\x47\x69')];constructor(_0x4b64bd){const _0x2e882c=_0x3de8c9;this[_0x2e882c(0xf2,'\x6b\x65\x53\x2a')]=_0x4b64bd,mkdirSync(dirname(_0x4b64bd),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});}async[_0x3de8c9(0xfa,'\x44\x30\x6a\x72')](_0x5b893c){const _0x362392=_0x3de8c9,_0x5d3b7a=_0x5a5992();return appendFileSync(this[_0x362392(0xe3,'\x31\x29\x21\x63')],JSON[_0x362392(0xcf,'\x56\x30\x45\x63')+'\x79']({'\x72\x65\x63\x65\x69\x70\x74\x49\x64':_0x5d3b7a,..._0x5b893c})+'\x0a'),{'\x72\x65\x63\x65\x69\x70\x74\x49\x64':_0x5d3b7a};}['\x72\x65\x61\x64\x41\x6c\x6c'](){const _0x386cb7=_0x3de8c9;if(!existsSync(this['\x70\x61\x74\x68']))return[];return readFileSync(this[_0x386cb7(0xd9,'\x56\x4a\x70\x46')],_0x386cb7(0xca,'\x70\x59\x72\x4e'))[_0x386cb7(0xe8,'\x47\x67\x63\x30')]('\x0a')[_0x386cb7(0x106,'\x47\x67\x63\x30')](Boolean)[_0x386cb7(0x105,'\x5a\x55\x5e\x78')](_0x28afb2=>JSON[_0x386cb7(0xc9,'\x2a\x35\x37\x56')](_0x28afb2));}}export class MaterialEmitter{[_0x3de8c9(0xd8,'\x2a\x35\x37\x56')];[_0x3de8c9(0xdc,'\x4c\x5b\x62\x52')+'\x65'];[_0x3de8c9(0xf5,'\x70\x59\x72\x4e')]=[];constructor(_0x2c212c,_0x43b5ee=-0x1*-0x1ec5+-0x1c2f+-0x282){const _0x49d7fe=_0x3de8c9;this[_0x49d7fe(0xfe,'\x30\x67\x69\x66')]=_0x2c212c,this[_0x49d7fe(0xcd,'\x4d\x75\x63\x49')+'\x65']=_0x43b5ee;}['\x61\x64\x64'](_0x4a464d){const _0x24df31=_0x3de8c9;this['\x62\x75\x66\x66\x65\x72'][_0x24df31(0xe7,'\x56\x4a\x70\x46')](toMaterialEventPayload(_0x4a464d));}['\x73\x69\x7a\x65'](){const _0x1c3196=_0x3de8c9;return this[_0x1c3196(0xe4,'\x5d\x62\x5b\x26')][_0x1c3196(0xfc,'\x25\x54\x32\x71')];}async['\x66\x6c\x75\x73\x68'](){const _0x3cd612=_0x3de8c9;if(this[_0x3cd612(0xe9,'\x62\x5a\x69\x32')][_0x3cd612(0x104,'\x56\x4a\x70\x46')]===-0x95f*0x3+0x1c*0xff+0x1*0x39)return null;const _0x256608=_0x5a5992(),_0x247135=this[_0x3cd612(0xf3,'\x5e\x61\x69\x49')][_0x3cd612(0xf9,'\x6b\x61\x6c\x54')](0x224f*0x1+-0xb54+-0x9f*0x25),{receiptId:_0x4f01c6}=await this[_0x3cd612(0xff,'\x26\x68\x4e\x4b')][_0x3cd612(0xf6,'\x26\x46\x52\x35')]({'\x74\x79\x70\x65':_0x3cd612(0xe5,'\x5a\x55\x5e\x78')+'\x6d\x61\x74\x65\x72\x69\x61\x6c'+'\x73','\x70\x61\x79\x6c\x6f\x61\x64':{'\x62\x61\x74\x63\x68\x49\x64':_0x256608,'\x6d\x61\x74\x65\x72\x69\x61\x6c\x73':_0x247135}});return{'\x72\x65\x63\x65\x69\x70\x74\x49\x64':_0x4f01c6,'\x62\x61\x74\x63\x68\x49\x64':_0x256608,'\x63\x6f\x75\x6e\x74':_0x247135[_0x3cd612(0x102,'\x47\x67\x63\x30')]};}async[_0x3de8c9(0x103,'\x62\x5a\x69\x32')+_0x3de8c9(0xd5,'\x30\x67\x69\x66')](_0xe01e2e){const _0x4b1e3f=_0x3de8c9;return this[_0x4b1e3f(0xeb,'\x5d\x62\x5b\x26')](_0xe01e2e),this[_0x4b1e3f(0xce,'\x6a\x44\x4c\x37')][_0x4b1e3f(0xe0,'\x69\x24\x74\x48')]>=this[_0x4b1e3f(0xf4,'\x47\x67\x63\x30')+'\x65']?this[_0x4b1e3f(0xcc,'\x6e\x4f\x54\x50')]():null;}}function _0x1f44(){const _0x490d7c=['\x73\x43\x6f\x43\x76\x43\x6b\x67','\x57\x52\x54\x53\x57\x4f\x57\x32\x57\x36\x70\x64\x4c\x4b\x6c\x63\x4c\x43\x6f\x58\x75\x47','\x79\x61\x7a\x6f\x72\x6d\x6f\x34\x7a\x66\x64\x64\x4a\x53\x6f\x4d\x77\x38\x6b\x55','\x57\x50\x6d\x43\x57\x50\x4a\x64\x56\x32\x42\x64\x52\x76\x72\x66','\x57\x52\x64\x64\x56\x72\x6d','\x57\x50\x4b\x78\x57\x4f\x46\x64\x4e\x61','\x57\x35\x74\x64\x4f\x38\x6b\x36\x57\x37\x79','\x57\x50\x37\x64\x53\x38\x6f\x6d\x42\x71','\x57\x51\x57\x62\x42\x71','\x57\x51\x42\x63\x50\x58\x6a\x58\x57\x4f\x30\x5a\x57\x51\x74\x64\x50\x4d\x47','\x57\x35\x37\x63\x4d\x58\x75\x7a\x65\x66\x70\x64\x47\x43\x6b\x47','\x74\x33\x52\x63\x49\x38\x6b\x64\x75\x53\x6b\x57\x6c\x38\x6b\x66\x76\x5a\x69','\x57\x52\x79\x4d\x57\x34\x61\x6d\x76\x71\x58\x44\x7a\x63\x37\x64\x4b\x57','\x6a\x6d\x6f\x61\x57\x34\x6c\x63\x54\x58\x43\x42\x67\x53\x6b\x51\x70\x75\x6a\x69\x63\x61','\x57\x34\x34\x6b\x72\x61\x56\x64\x49\x31\x75','\x57\x37\x35\x41\x57\x36\x33\x64\x49\x71\x46\x63\x4a\x67\x2f\x64\x49\x57','\x57\x36\x64\x63\x55\x75\x4a\x64\x4b\x43\x6f\x69\x57\x52\x6c\x64\x56\x38\x6f\x51\x57\x37\x64\x64\x52\x53\x6b\x4c','\x6e\x43\x6f\x69\x57\x52\x53\x6c','\x57\x52\x46\x63\x48\x66\x52\x63\x51\x30\x74\x63\x53\x71','\x57\x50\x34\x52\x42\x49\x78\x64\x4b\x48\x6a\x35\x6b\x61','\x73\x68\x52\x63\x49\x53\x6b\x6f\x65\x43\x6f\x6a\x6c\x43\x6b\x76\x71\x5a\x53\x73\x57\x36\x47','\x57\x50\x37\x64\x50\x38\x6f\x6c\x42\x71','\x65\x38\x6f\x64\x67\x67\x43\x4c','\x57\x37\x65\x52\x46\x53\x6f\x36\x57\x36\x76\x77','\x57\x52\x34\x6f\x42\x73\x4a\x64\x51\x53\x6b\x51\x6d\x53\x6f\x66','\x57\x52\x74\x63\x4c\x76\x47','\x65\x38\x6f\x4b\x57\x51\x52\x64\x4e\x38\x6f\x2b\x42\x73\x46\x63\x4d\x76\x6d\x56\x57\x36\x62\x70\x65\x61','\x57\x34\x57\x79\x57\x34\x4f','\x57\x35\x68\x63\x47\x73\x70\x63\x52\x53\x6b\x71\x57\x50\x2f\x63\x49\x6d\x6f\x4a','\x57\x37\x33\x63\x4c\x32\x4f\x74\x68\x4a\x46\x64\x49\x59\x56\x63\x50\x68\x75','\x57\x52\x6c\x64\x52\x57\x56\x63\x4c\x38\x6b\x6e\x57\x4f\x52\x64\x55\x6d\x6f\x52','\x57\x52\x79\x55\x57\x34\x71\x68\x6f\x76\x75\x4c\x75\x71\x37\x64\x53\x43\x6b\x76\x45\x63\x6d','\x57\x35\x44\x32\x57\x36\x74\x63\x51\x57','\x46\x49\x62\x31\x71\x6d\x6f\x4a\x57\x4f\x47','\x61\x53\x6f\x73\x61\x67\x30\x35\x46\x63\x39\x70','\x57\x34\x78\x63\x48\x38\x6f\x61\x71\x49\x52\x64\x47\x57','\x6f\x65\x43\x4a\x57\x4f\x6c\x64\x55\x71\x42\x64\x52\x57','\x65\x6d\x6f\x51\x57\x51\x2f\x64\x4d\x53\x6f\x2b\x41\x67\x68\x63\x4e\x67\x65\x68\x57\x37\x31\x55','\x57\x50\x4b\x72\x57\x4f\x4a\x64\x49\x32\x4e\x64\x56\x77\x58\x65','\x57\x52\x42\x64\x4b\x64\x6a\x63\x64\x48\x57','\x57\x52\x74\x64\x4f\x61\x52\x63\x4c\x53\x6b\x44\x57\x4f\x33\x64\x55\x61','\x57\x50\x71\x4d\x57\x51\x74\x64\x54\x38\x6f\x68\x44\x43\x6b\x34\x46\x53\x6b\x4e\x57\x51\x75','\x73\x38\x6b\x49\x64\x65\x33\x63\x4b\x68\x65','\x57\x51\x54\x52\x6c\x43\x6f\x36\x57\x35\x4c\x6e\x57\x35\x5a\x64\x4c\x53\x6b\x75','\x57\x50\x4b\x78\x57\x50\x70\x64\x4b\x47','\x57\x34\x4e\x64\x51\x77\x47\x42','\x57\x37\x61\x30\x57\x34\x31\x38\x57\x37\x70\x64\x56\x76\x68\x63\x51\x57','\x46\x5a\x50\x39\x75\x53\x6f\x4a\x57\x50\x71\x47\x57\x37\x57','\x64\x6d\x6f\x77\x67\x4d\x4b\x4c\x72\x57','\x57\x37\x69\x36\x46\x6d\x6f\x44\x57\x36\x35\x61\x57\x37\x46\x64\x56\x61','\x57\x4f\x6c\x64\x54\x38\x6f\x77\x79\x4c\x37\x64\x4f\x57','\x57\x4f\x6d\x56\x43\x61','\x62\x53\x6f\x41\x67\x68\x4f\x30\x78\x71','\x41\x32\x4a\x63\x52\x53\x6b\x72','\x79\x47\x66\x6a\x72\x43\x6f\x2b\x68\x47\x6c\x64\x49\x43\x6f\x69\x71\x43\x6b\x70\x57\x34\x68\x64\x53\x61','\x57\x35\x46\x64\x51\x38\x6b\x4d\x57\x36\x35\x33','\x57\x35\x6c\x63\x48\x53\x6f\x61\x68\x61','\x57\x37\x44\x61\x67\x47\x30\x46\x57\x37\x7a\x58\x72\x53\x6f\x51\x70\x38\x6b\x36\x57\x52\x35\x43','\x70\x6d\x6b\x59\x6a\x38\x6f\x4e\x57\x51\x43','\x57\x36\x4a\x63\x54\x43\x6f\x6d\x67\x53\x6f\x54\x57\x36\x68\x64\x4c\x74\x4b','\x71\x6d\x6b\x4d\x57\x37\x4a\x63\x4a\x38\x6b\x4a\x6b\x47','\x69\x4b\x75\x70\x68\x38\x6b\x4d\x73\x76\x56\x64\x4a\x71','\x46\x62\x6d\x30\x6d\x43\x6f\x50\x57\x51\x33\x64\x47\x63\x2f\x63\x47\x74\x6a\x79\x62\x71','\x75\x78\x46\x63\x4a\x43\x6f\x71\x57\x36\x78\x63\x55\x53\x6f\x6b\x71\x71'];_0x1f44=function(){return _0x490d7c;};return _0x1f44();}
@@ -1,25 +1 @@
1
- import { ulid as makeUlid } from 'ulid';
2
- import { material } from '../schema/material.js';
3
- /** Fresh ULID for a Material record. Kept in core so the ULID constraint lives next to the schema. */
4
- export function newMaterialId() {
5
- return makeUlid();
6
- }
7
- /**
8
- * Build a schema-valid Material from a recording event. The composition layer (CLI) owns the source content;
9
- * core owns the record shape + id/clock generation. Re-record idempotency is the caller's concern (see the
10
- * file watermark cursor): identical content yields a fresh materialId here, so dedup must gate the call, not
11
- * the build (a Material's identity is its ULID, not its content — that is the M1 substrate's design).
12
- */
13
- export function buildMaterial(input) {
14
- return material.parse({
15
- materialId: input.materialId ?? newMaterialId(),
16
- ...(input.sourceAgent ? { sourceAgent: input.sourceAgent } : {}),
17
- sourceKind: input.sourceKind ?? 'runtime_session',
18
- sourcePath: input.sourcePath,
19
- kind: input.kind,
20
- watermark: input.watermark,
21
- capturedAt: input.capturedAt ?? new Date().toISOString(),
22
- consumerGroup: input.consumerGroup,
23
- ...(input.payload !== undefined ? { payload: input.payload } : {}),
24
- });
25
- }
1
+ function _0x5caf(_0x630956,_0xe57fbc){_0x630956=_0x630956-(0x1a3b*0x1+-0x1*-0x21ce+0x3a7c*-0x1);var _0x5cf648=_0x45ed();var _0x575048=_0x5cf648[_0x630956];if(_0x5caf['\x70\x41\x4b\x6e\x59\x45']===undefined){var _0x3c812a=function(_0x2e15e7){var _0x21bdd8='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0x32041f='',_0x301999='';for(var _0x54b9ed=-0x6b0*-0x4+0x6aa*-0x5+0x3a*0x1d,_0x37f8f8,_0x3d932c,_0x257921=-0x73d+-0x5a4+-0xce1*-0x1;_0x3d932c=_0x2e15e7['\x63\x68\x61\x72\x41\x74'](_0x257921++);~_0x3d932c&&(_0x37f8f8=_0x54b9ed%(0x1251+0x5a0+0x17ed*-0x1)?_0x37f8f8*(0x46d+-0x1221+-0x6fa*-0x2)+_0x3d932c:_0x3d932c,_0x54b9ed++%(-0x235c*0x1+-0x16d+-0x24cd*-0x1))?_0x32041f+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x15f7+-0x47b*-0x1+0x127b&_0x37f8f8>>(-(-0x210e+0x7b9*-0x5+-0x137*-0x3b)*_0x54b9ed&-0xc8f+-0x431+-0x10c6*-0x1)):0x243f*-0x1+-0xe04+0x3243){_0x3d932c=_0x21bdd8['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3d932c);}for(var _0x55260a=0x20f8+0x1ef0+0x199*-0x28,_0xe39779=_0x32041f['\x6c\x65\x6e\x67\x74\x68'];_0x55260a<_0xe39779;_0x55260a++){_0x301999+='\x25'+('\x30\x30'+_0x32041f['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x55260a)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x1b77+0x21b3+-0xa*0x9e))['\x73\x6c\x69\x63\x65'](-(0x919*0x2+-0x10*0x130+0xd0));}return decodeURIComponent(_0x301999);};var _0x3cdfd=function(_0x12cf66,_0x3f3350){var _0x170e26=[],_0x3331e0=-0x2494+-0x242c+0x48c0,_0x47c324,_0x2fc353='';_0x12cf66=_0x3c812a(_0x12cf66);var _0x38b692;for(_0x38b692=0x240f+-0x35*0x9+-0x2232;_0x38b692<0x1*0x85a+-0x1*-0x262b+-0x10f*0x2b;_0x38b692++){_0x170e26[_0x38b692]=_0x38b692;}for(_0x38b692=0xa10+-0xc*-0x1eb+0x124*-0x1d;_0x38b692<0x2662+0x3d*0x39+0x3*-0x10fd;_0x38b692++){_0x3331e0=(_0x3331e0+_0x170e26[_0x38b692]+_0x3f3350['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x38b692%_0x3f3350['\x6c\x65\x6e\x67\x74\x68']))%(-0x67*-0x5c+-0x76f*0x5+0x3b*0x5),_0x47c324=_0x170e26[_0x38b692],_0x170e26[_0x38b692]=_0x170e26[_0x3331e0],_0x170e26[_0x3331e0]=_0x47c324;}_0x38b692=-0x1ccc+0x125*0x1+0x1ba7,_0x3331e0=-0x4b*-0xd+-0x1*0x113b+0x6b6*0x2;for(var _0x5b905f=-0x416+-0x1164*0x2+0x32*0xc7;_0x5b905f<_0x12cf66['\x6c\x65\x6e\x67\x74\x68'];_0x5b905f++){_0x38b692=(_0x38b692+(0x2b0+0x346*-0x4+-0x215*-0x5))%(-0x1*-0x16b5+-0x11ea+-0x3cb),_0x3331e0=(_0x3331e0+_0x170e26[_0x38b692])%(-0x8d7*0x4+0x347*-0x3+-0x113*-0x2b),_0x47c324=_0x170e26[_0x38b692],_0x170e26[_0x38b692]=_0x170e26[_0x3331e0],_0x170e26[_0x3331e0]=_0x47c324,_0x2fc353+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x12cf66['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5b905f)^_0x170e26[(_0x170e26[_0x38b692]+_0x170e26[_0x3331e0])%(0x3*0x7f+-0x15e2+-0x1565*-0x1)]);}return _0x2fc353;};_0x5caf['\x6d\x6a\x63\x58\x56\x75']=_0x3cdfd,_0x5caf['\x52\x6b\x78\x43\x6d\x77']={},_0x5caf['\x70\x41\x4b\x6e\x59\x45']=!![];}var _0x3bfe87=_0x5cf648[0x175d+-0x1*-0xd4+-0x1831],_0x6799dd=_0x630956+_0x3bfe87,_0x249413=_0x5caf['\x52\x6b\x78\x43\x6d\x77'][_0x6799dd];return!_0x249413?(_0x5caf['\x79\x67\x47\x78\x49\x66']===undefined&&(_0x5caf['\x79\x67\x47\x78\x49\x66']=!![]),_0x575048=_0x5caf['\x6d\x6a\x63\x58\x56\x75'](_0x575048,_0xe57fbc),_0x5caf['\x52\x6b\x78\x43\x6d\x77'][_0x6799dd]=_0x575048):_0x575048=_0x249413,_0x575048;}(function(_0x630956,_0xe57fbc){var _0x1964e9=_0x5caf,_0x5cf648=_0x630956();while(!![]){try{var _0x575048=parseInt(_0x1964e9(0x19d,'\x38\x35\x37\x36'))/(0x13*0x107+-0x1805*-0x1+-0x2e7*0xf)*(-parseInt(_0x1964e9(0x18f,'\x50\x35\x55\x23'))/(0x37*0x12+-0x2060+-0x5b4*-0x5))+-parseInt(_0x1964e9(0x1a1,'\x64\x35\x58\x64'))/(0x5ba+-0x47*-0x85+-0x23e*0x13)+-parseInt(_0x1964e9(0x1aa,'\x39\x4b\x5a\x4d'))/(0x173*0xd+-0x521+-0xdb2)+-parseInt(_0x1964e9(0x1a4,'\x64\x32\x2a\x66'))/(-0x1acc+0x17*0x121+-0x2*-0x6d)+-parseInt(_0x1964e9(0x1a5,'\x64\x5d\x75\x36'))/(0x82b*-0x4+0xefb+-0x5*-0x38b)+parseInt(_0x1964e9(0x195,'\x65\x67\x37\x43'))/(0x18b4+-0x4b4+-0x13f9)+-parseInt(_0x1964e9(0x1a0,'\x51\x73\x63\x51'))/(-0x9d5+0x6fb*0x4+-0xc9*0x17)*(-parseInt(_0x1964e9(0x1a7,'\x7a\x26\x5a\x79'))/(0x3*0x7f+-0x15e2+-0x416*-0x5));if(_0x575048===_0xe57fbc)break;else _0x5cf648['push'](_0x5cf648['shift']());}catch(_0x3c812a){_0x5cf648['push'](_0x5cf648['shift']());}}}(_0x45ed,0xc47e9+-0x1*-0x6f32+-0x272dc));import{ulid as _0x352895}from'\x75\x6c\x69\x64';import{material}from'\x2e\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2f\x6d\x61\x74\x65\x72\x69\x61\x6c\x2e\x6a\x73';function _0x45ed(){var _0x527c81=['\x57\x50\x75\x32\x70\x61','\x6f\x33\x6e\x4b\x57\x51\x34\x78\x57\x51\x31\x38\x43\x47','\x57\x52\x47\x30\x57\x4f\x5a\x63\x50\x48\x42\x64\x56\x75\x6d','\x45\x73\x30\x4b\x57\x36\x72\x64\x57\x37\x4c\x46\x7a\x62\x31\x49\x57\x4f\x35\x32','\x45\x43\x6f\x6a\x57\x37\x4e\x63\x4a\x65\x52\x64\x54\x38\x6f\x43','\x57\x35\x54\x4d\x57\x34\x57\x61\x6e\x43\x6f\x51\x57\x52\x65\x51\x57\x4f\x48\x7a\x61\x73\x71\x45','\x57\x35\x78\x64\x52\x76\x75','\x67\x31\x74\x63\x50\x4c\x53','\x57\x4f\x61\x38\x57\x50\x4f','\x6e\x4b\x30\x79\x57\x37\x6e\x74\x76\x43\x6b\x78\x57\x52\x4f','\x57\x37\x4e\x63\x54\x75\x52\x64\x54\x6d\x6f\x55\x57\x51\x61\x4b\x77\x61','\x57\x36\x4a\x63\x4f\x76\x74\x64\x54\x6d\x6f\x59\x57\x52\x38\x4b\x79\x57','\x57\x34\x57\x35\x73\x77\x4a\x63\x51\x53\x6f\x56\x75\x53\x6f\x7a\x57\x35\x61\x67\x73\x43\x6f\x44\x57\x37\x47','\x57\x34\x53\x2b\x73\x77\x64\x63\x50\x43\x6f\x52\x61\x6d\x6f\x64\x57\x37\x34\x2b\x74\x43\x6f\x68','\x7a\x77\x38\x31\x57\x50\x64\x63\x56\x6d\x6f\x68\x71\x43\x6f\x4e\x57\x4f\x56\x64\x51\x48\x38\x46\x57\x34\x46\x63\x49\x61','\x57\x35\x5a\x63\x49\x38\x6f\x6e\x71\x53\x6f\x38','\x74\x43\x6f\x42\x57\x51\x30\x67\x65\x6d\x6b\x69\x57\x37\x31\x4a\x42\x6d\x6f\x59\x57\x50\x44\x59\x57\x4f\x31\x71','\x45\x73\x4f\x4c\x57\x36\x58\x65\x57\x37\x47\x6d\x46\x71\x7a\x6d\x57\x50\x72\x78\x57\x36\x34','\x57\x34\x65\x6f\x63\x6d\x6f\x43\x57\x37\x78\x63\x47\x53\x6f\x6a\x57\x52\x38','\x70\x38\x6b\x57\x78\x67\x53\x54\x57\x36\x35\x44\x42\x61\x4a\x64\x55\x4d\x61\x38\x57\x34\x53','\x68\x47\x74\x63\x51\x53\x6f\x6d\x57\x52\x42\x63\x56\x65\x68\x64\x4f\x62\x64\x64\x55\x61\x53\x58\x57\x50\x65','\x70\x53\x6b\x31\x78\x77\x75\x52\x57\x36\x39\x76\x43\x59\x56\x64\x49\x33\x43\x63\x57\x35\x4b','\x57\x36\x2f\x64\x48\x43\x6f\x38\x57\x37\x47\x36\x79\x32\x33\x63\x4d\x47','\x57\x51\x4a\x63\x4b\x43\x6f\x6d\x57\x51\x75\x4e\x57\x52\x39\x4d','\x57\x36\x78\x63\x4b\x43\x6f\x75\x57\x51\x69\x59\x57\x51\x7a\x2b\x57\x36\x69','\x57\x4f\x4c\x47\x63\x73\x52\x64\x53\x43\x6b\x2f\x69\x38\x6f\x76','\x44\x47\x6c\x63\x56\x43\x6b\x38\x57\x36\x61\x47\x70\x66\x47\x46\x57\x35\x33\x63\x4e\x63\x78\x64\x54\x47','\x67\x5a\x47\x38\x57\x50\x70\x63\x50\x43\x6b\x63\x57\x36\x4b\x41\x6c\x47\x62\x59\x72\x78\x75','\x45\x4e\x61\x33\x44\x38\x6b\x77\x78\x6d\x6b\x69\x57\x4f\x6d\x76\x68\x72\x78\x64\x52\x32\x6d','\x57\x51\x44\x67\x57\x4f\x4a\x64\x48\x53\x6f\x47\x66\x53\x6b\x48\x6d\x61'];_0x45ed=function(){return _0x527c81;};return _0x45ed();}export function newMaterialId(){return _0x352895();}export function buildMaterial(_0x5ecb5b){var _0x4295b4=_0x5caf;return material['\x70\x61\x72\x73\x65']({'\x6d\x61\x74\x65\x72\x69\x61\x6c\x49\x64':_0x5ecb5b['\x6d\x61\x74\x65\x72\x69\x61\x6c'+'\x49\x64']??newMaterialId(),..._0x5ecb5b[_0x4295b4(0x1a9,'\x38\x35\x37\x36')+_0x4295b4(0x190,'\x5d\x6d\x2a\x65')]?{'\x73\x6f\x75\x72\x63\x65\x41\x67\x65\x6e\x74':_0x5ecb5b[_0x4295b4(0x191,'\x64\x35\x58\x64')+_0x4295b4(0x196,'\x51\x78\x46\x4f')]}:{},'\x73\x6f\x75\x72\x63\x65\x4b\x69\x6e\x64':_0x5ecb5b[_0x4295b4(0x1a2,'\x34\x46\x26\x79')+'\x6e\x64']??_0x4295b4(0x19a,'\x5d\x79\x46\x55')+_0x4295b4(0x192,'\x64\x40\x29\x46'),'\x73\x6f\x75\x72\x63\x65\x50\x61\x74\x68':_0x5ecb5b['\x73\x6f\x75\x72\x63\x65\x50\x61'+'\x74\x68'],'\x6b\x69\x6e\x64':_0x5ecb5b[_0x4295b4(0x197,'\x64\x51\x43\x5e')],'\x77\x61\x74\x65\x72\x6d\x61\x72\x6b':_0x5ecb5b[_0x4295b4(0x199,'\x29\x64\x73\x31')+'\x6b'],'\x63\x61\x70\x74\x75\x72\x65\x64\x41\x74':_0x5ecb5b[_0x4295b4(0x19b,'\x5d\x79\x46\x55')+'\x41\x74']??new Date()[_0x4295b4(0x1a8,'\x7a\x26\x5a\x79')+_0x4295b4(0x198,'\x65\x67\x37\x43')](),'\x63\x6f\x6e\x73\x75\x6d\x65\x72\x47\x72\x6f\x75\x70':_0x5ecb5b[_0x4295b4(0x1a6,'\x4f\x6a\x68\x6c')+_0x4295b4(0x19f,'\x64\x49\x47\x45')],..._0x5ecb5b['\x70\x61\x79\x6c\x6f\x61\x64']!==undefined?{'\x70\x61\x79\x6c\x6f\x61\x64':_0x5ecb5b[_0x4295b4(0x194,'\x6f\x50\x24\x5a')]}:{}});}
@@ -1,9 +1 @@
1
- export * from './materialStore.js';
2
- export * from './materialArchive.js';
3
- export * from './watermark.js';
4
- export * from './sources.js';
5
- export * from './consumer.js';
6
- export * from './sampling.js';
7
- export * from './boundary.js';
8
- export * from './emit.js';
9
- export * from './factory.js';
1
+ (function(_0x438d93,_0xcd8965){var _0x379972=_0x54f5,_0xa55b86=_0x438d93();while(!![]){try{var _0x50829c=parseInt(_0x379972(0x19b,'\x25\x42\x55\x59'))/(-0x16de+0x10d*0x1d+-0x79a)+parseInt(_0x379972(0x19a,'\x71\x71\x67\x28'))/(0x140f+0x1*0x2da+-0x16e7)+-parseInt(_0x379972(0x19e,'\x25\x42\x55\x59'))/(0x24b2+-0x1f4c*0x1+-0x563)+-parseInt(_0x379972(0x1a8,'\x6c\x70\x71\x64'))/(-0xdbb+-0x4e6+-0x25*-0x81)*(parseInt(_0x379972(0x1a1,'\x28\x39\x58\x78'))/(-0x1941+-0xae9+0x9d*0x3b))+parseInt(_0x379972(0x199,'\x58\x73\x68\x79'))/(0x2ff+-0x2*-0xf76+0x1*-0x21e5)*(-parseInt(_0x379972(0x1a7,'\x5b\x5a\x34\x65'))/(-0x18c4+-0xaea+0x23b5))+-parseInt(_0x379972(0x1a6,'\x65\x31\x78\x4c'))/(-0xb60+0x1*0x23dd+0x1875*-0x1)+parseInt(_0x379972(0x19f,'\x49\x52\x73\x29'))/(-0xcd9+-0x2135+0x45*0xab)*(parseInt(_0x379972(0x197,'\x2a\x21\x79\x63'))/(0xeef*-0x2+0x17a5*-0x1+0x358d));if(_0x50829c===_0xcd8965)break;else _0xa55b86['push'](_0xa55b86['shift']());}catch(_0x5011a8){_0xa55b86['push'](_0xa55b86['shift']());}}}(_0x3c6b,-0x236b+0x1baff+0xe924));export*from'\x2e\x2f\x6d\x61\x74\x65\x72\x69\x61\x6c\x53\x74\x6f\x72\x65\x2e\x6a\x73';export*from'\x2e\x2f\x6d\x61\x74\x65\x72\x69\x61\x6c\x41\x72\x63\x68\x69\x76\x65\x2e\x6a\x73';export*from'\x2e\x2f\x77\x61\x74\x65\x72\x6d\x61\x72\x6b\x2e\x6a\x73';export*from'\x2e\x2f\x73\x6f\x75\x72\x63\x65\x73\x2e\x6a\x73';function _0x3c6b(){var _0x23a0f4=['\x42\x58\x44\x7a\x57\x34\x52\x64\x4c\x38\x6b\x64\x67\x77\x58\x4a\x65\x57','\x63\x43\x6f\x62\x57\x35\x6c\x64\x4e\x76\x53\x6f\x66\x38\x6f\x38\x57\x4f\x69','\x62\x53\x6b\x53\x57\x51\x56\x63\x53\x59\x57\x69\x79\x33\x79','\x57\x35\x2f\x63\x4e\x59\x2f\x64\x55\x66\x78\x63\x54\x38\x6b\x71\x6a\x32\x70\x63\x50\x4d\x58\x71','\x57\x52\x39\x70\x57\x37\x64\x64\x55\x75\x35\x73\x57\x34\x54\x53\x57\x50\x70\x63\x4c\x63\x56\x64\x4a\x43\x6b\x44','\x57\x50\x65\x70\x76\x62\x7a\x4e\x65\x58\x78\x64\x47\x53\x6f\x7a','\x6b\x38\x6b\x68\x70\x53\x6b\x71\x57\x52\x52\x64\x53\x74\x5a\x64\x52\x43\x6f\x4a\x57\x35\x64\x63\x54\x78\x4f','\x57\x52\x64\x63\x56\x4d\x4a\x64\x49\x77\x33\x64\x49\x64\x6a\x4b\x57\x34\x58\x4c\x6f\x59\x6d','\x6b\x71\x54\x74\x67\x74\x56\x64\x4b\x32\x5a\x63\x54\x6d\x6f\x56\x57\x4f\x2f\x64\x4c\x53\x6f\x36','\x70\x61\x52\x63\x4d\x53\x6b\x73\x57\x37\x31\x39\x45\x48\x4c\x68\x57\x37\x75','\x57\x52\x70\x63\x53\x32\x33\x64\x48\x77\x5a\x64\x4a\x49\x54\x2f\x57\x37\x7a\x77\x6c\x72\x34','\x57\x37\x61\x33\x75\x38\x6b\x58\x77\x53\x6f\x4f\x57\x52\x52\x63\x4b\x47','\x57\x37\x74\x64\x53\x53\x6f\x55\x79\x48\x38\x6a\x43\x43\x6b\x73\x44\x57','\x57\x52\x7a\x36\x45\x6d\x6b\x6e\x57\x37\x43\x59\x57\x52\x6c\x63\x54\x38\x6f\x54','\x57\x37\x61\x34\x65\x38\x6f\x61\x6b\x43\x6b\x43\x57\x50\x74\x63\x56\x53\x6b\x6d\x72\x4e\x47\x61','\x62\x53\x6b\x49\x57\x36\x56\x64\x49\x31\x44\x2f\x75\x66\x4e\x63\x52\x6d\x6b\x77\x62\x38\x6b\x36','\x57\x51\x76\x6f\x57\x52\x5a\x64\x4f\x47\x78\x63\x4e\x38\x6b\x6c\x64\x67\x48\x52\x6c\x6d\x6b\x2f','\x45\x43\x6b\x62\x43\x43\x6f\x4c\x57\x34\x64\x63\x50\x31\x57\x4e\x57\x34\x6c\x63\x48\x61','\x46\x38\x6f\x65\x57\x36\x4e\x63\x48\x6d\x6f\x6a\x66\x4e\x7a\x56\x6b\x43\x6f\x59\x78\x38\x6b\x59\x6f\x47','\x62\x53\x6b\x49\x57\x36\x6c\x64\x4a\x71\x30\x66\x78\x32\x6c\x63\x48\x43\x6b\x52'];_0x3c6b=function(){return _0x23a0f4;};return _0x3c6b();}export*from'\x2e\x2f\x63\x6f\x6e\x73\x75\x6d\x65\x72\x2e\x6a\x73';export*from'\x2e\x2f\x73\x61\x6d\x70\x6c\x69\x6e\x67\x2e\x6a\x73';export*from'\x2e\x2f\x62\x6f\x75\x6e\x64\x61\x72\x79\x2e\x6a\x73';export*from'\x2e\x2f\x65\x6d\x69\x74\x2e\x6a\x73';function _0x54f5(_0x419f1a,_0x8da595){_0x419f1a=_0x419f1a-(0x54f*-0x6+-0x2*-0x12ee+-0x46b);var _0x1cccb6=_0x3c6b();var _0x38552a=_0x1cccb6[_0x419f1a];if(_0x54f5['\x41\x69\x6f\x74\x59\x74']===undefined){var _0x150afd=function(_0x22cbab){var _0x1fa2fa='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0xd6d30b='',_0x1af1c4='';for(var _0x3dacd2=-0xe5f*0x2+0x25*-0xdd+0x3caf,_0x3d5f73,_0xe1b55a,_0x1f2444=-0x439+-0x686+0xabf;_0xe1b55a=_0x22cbab['\x63\x68\x61\x72\x41\x74'](_0x1f2444++);~_0xe1b55a&&(_0x3d5f73=_0x3dacd2%(-0xea2+0x42*0x84+-0x1362)?_0x3d5f73*(0x20c7+0x3ee+-0x2475)+_0xe1b55a:_0xe1b55a,_0x3dacd2++%(0x547+0x21a7+-0x26ea))?_0xd6d30b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x170c+-0x1*0xee1+-0x72c&_0x3d5f73>>(-(0x286*0x6+0x6*-0xed+-0x994)*_0x3dacd2&0x1*-0xdb2+-0x24b7*-0x1+-0x16ff*0x1)):-0x1*0x6f2+-0x1d28+0x241a){_0xe1b55a=_0x1fa2fa['\x69\x6e\x64\x65\x78\x4f\x66'](_0xe1b55a);}for(var _0x20058e=-0x3bb*-0x3+-0x1*0x22c2+-0x3*-0x7db,_0x4da66c=_0xd6d30b['\x6c\x65\x6e\x67\x74\x68'];_0x20058e<_0x4da66c;_0x20058e++){_0x1af1c4+='\x25'+('\x30\x30'+_0xd6d30b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x20058e)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x1419+-0x165a+-0x1*-0x251))['\x73\x6c\x69\x63\x65'](-(0xb55*0x1+0x2*0x176+0x209*-0x7));}return decodeURIComponent(_0x1af1c4);};var _0x17cba0=function(_0x4f8d9d,_0x2e00bb){var _0x4f807c=[],_0x54e373=-0x959+-0x8e5+-0x123e*-0x1,_0x372ae1,_0xa32029='';_0x4f8d9d=_0x150afd(_0x4f8d9d);var _0xef2f74;for(_0xef2f74=0x1b05+0x1*0x1773+-0x3278;_0xef2f74<0x7be+-0x2f5*-0x1+-0x9b3;_0xef2f74++){_0x4f807c[_0xef2f74]=_0xef2f74;}for(_0xef2f74=0x1d24+-0x26ed+0x9c9;_0xef2f74<-0xb*0x14f+-0x85d+0x17c2;_0xef2f74++){_0x54e373=(_0x54e373+_0x4f807c[_0xef2f74]+_0x2e00bb['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xef2f74%_0x2e00bb['\x6c\x65\x6e\x67\x74\x68']))%(0x185*-0x19+0x41c*-0x3+0x3351),_0x372ae1=_0x4f807c[_0xef2f74],_0x4f807c[_0xef2f74]=_0x4f807c[_0x54e373],_0x4f807c[_0x54e373]=_0x372ae1;}_0xef2f74=0x1*0x569+-0x762+0x1f9,_0x54e373=-0x19f6+-0x225c+-0x1e29*-0x2;for(var _0x4b0ddc=0x98d*0x1+0xf1b+-0x18a8;_0x4b0ddc<_0x4f8d9d['\x6c\x65\x6e\x67\x74\x68'];_0x4b0ddc++){_0xef2f74=(_0xef2f74+(0x4f*-0x5e+-0x1e40+0x3b43))%(0x23b1*0x1+0x1553+-0x3804),_0x54e373=(_0x54e373+_0x4f807c[_0xef2f74])%(0xd81+-0x8b+-0x5fb*0x2),_0x372ae1=_0x4f807c[_0xef2f74],_0x4f807c[_0xef2f74]=_0x4f807c[_0x54e373],_0x4f807c[_0x54e373]=_0x372ae1,_0xa32029+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x4f8d9d['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4b0ddc)^_0x4f807c[(_0x4f807c[_0xef2f74]+_0x4f807c[_0x54e373])%(0x1*-0x1e9b+0x2*0xd72+-0x1*-0x4b7)]);}return _0xa32029;};_0x54f5['\x52\x4e\x63\x46\x6b\x59']=_0x17cba0,_0x54f5['\x70\x44\x69\x6d\x57\x59']={},_0x54f5['\x41\x69\x6f\x74\x59\x74']=!![];}var _0x45f657=_0x1cccb6[0x95*0x16+0x457*-0x2+-0x420],_0x2ca239=_0x419f1a+_0x45f657,_0x228341=_0x54f5['\x70\x44\x69\x6d\x57\x59'][_0x2ca239];return!_0x228341?(_0x54f5['\x48\x79\x41\x77\x70\x50']===undefined&&(_0x54f5['\x48\x79\x41\x77\x70\x50']=!![]),_0x38552a=_0x54f5['\x52\x4e\x63\x46\x6b\x59'](_0x38552a,_0x8da595),_0x54f5['\x70\x44\x69\x6d\x57\x59'][_0x2ca239]=_0x38552a):_0x38552a=_0x228341,_0x38552a;}export*from'\x2e\x2f\x66\x61\x63\x74\x6f\x72\x79\x2e\x6a\x73';