diff --git a/core/utils/rag-tag-extractor.js b/core/utils/rag-tag-extractor.js new file mode 100644 index 0000000..69309f4 --- /dev/null +++ b/core/utils/rag-tag-extractor.js @@ -0,0 +1 @@ +function _0x51ed(_0x464029,_0xcaff40){const _0x1bd74e=_0x1bd7();return _0x51ed=function(_0x51ed0e,_0x53bfd9){_0x51ed0e=_0x51ed0e-0x1d1;let _0xb95101=_0x1bd74e[_0x51ed0e];return _0xb95101;},_0x51ed(_0x464029,_0xcaff40);}(function(_0x3e08d8,_0x18d5f6){const _0x3e1d75=_0x51ed,_0x34b2a4=_0x3e08d8();while(!![]){try{const _0x4abc24=-parseInt(_0x3e1d75(0x1d8))/0x1*(parseInt(_0x3e1d75(0x1d7))/0x2)+parseInt(_0x3e1d75(0x1d5))/0x3*(parseInt(_0x3e1d75(0x1db))/0x4)+parseInt(_0x3e1d75(0x1dd))/0x5+-parseInt(_0x3e1d75(0x1d6))/0x6+-parseInt(_0x3e1d75(0x1dc))/0x7*(parseInt(_0x3e1d75(0x1d4))/0x8)+parseInt(_0x3e1d75(0x1d3))/0x9+parseInt(_0x3e1d75(0x1de))/0xa;if(_0x4abc24===_0x18d5f6)break;else _0x34b2a4['push'](_0x34b2a4['shift']());}catch(_0x36d562){_0x34b2a4['push'](_0x34b2a4['shift']());}}}(_0x1bd7,0xf3541));export function extractBlocksByTags(_0x40eb87,_0x3ba388){const _0x44083c=_0x51ed;if(!_0x40eb87||!_0x3ba388||!Array['isArray'](_0x3ba388)||_0x3ba388[_0x44083c(0x1df)]===0x0)return[];const _0x16e0b0=[];return _0x3ba388[_0x44083c(0x1d9)](_0x485b00=>{const _0x3fa065=_0x44083c,_0x39d0f7=_0x485b00[_0x3fa065(0x1d1)]();if(_0x39d0f7){const _0x41cba7=new RegExp('<'+_0x39d0f7+_0x3fa065(0x1d2)+_0x39d0f7+'>','g'),_0x9b411d=_0x40eb87[_0x3fa065(0x1da)](_0x41cba7);_0x9b411d&&_0x16e0b0['push'](..._0x9b411d);}}),_0x16e0b0;}function _0x1bd7(){const _0x31cc19=['length','trim','[^>]*>[\x5cs\x5cS]*?<\x5c/','8164269aKiggB','128mTMjYA','9BOuifV','11512614ZXRvZF','390514cohxFd','3tBQyiQ','forEach','match','2360884QQENLc','516950wRMXdx','1733450udyBxW','16583190QIvsQq'];_0x1bd7=function(){return _0x31cc19;};return _0x1bd7();}