mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-21 13:50:29 +08:00
59 lines
1.7 KiB
JavaScript
59 lines
1.7 KiB
JavaScript
'use strict';const base=require('./base.C13YY5P3.cjs');var ruleset = {};var hasRequiredRuleset;
|
|
|
|
function requireRuleset () {
|
|
if (hasRequiredRuleset) return ruleset;
|
|
hasRequiredRuleset = 1;
|
|
(function (exports) {
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
function _export(target, all) {
|
|
for(var name in all)Object.defineProperty(target, name, {
|
|
enumerable: true,
|
|
get: all[name]
|
|
});
|
|
}
|
|
_export(exports, {
|
|
ClashOnlyRulesetOutput: function() {
|
|
return ClashOnlyRulesetOutput;
|
|
},
|
|
RulesetOutput: function() {
|
|
return RulesetOutput;
|
|
},
|
|
SurgeOnlyRulesetOutput: function() {
|
|
return SurgeOnlyRulesetOutput;
|
|
}
|
|
});
|
|
const _clash = /*@__PURE__*/ base.c();
|
|
const _singbox = /*@__PURE__*/ base.f();
|
|
const _surge = /*@__PURE__*/ base.e();
|
|
const _base = /*@__PURE__*/ base.b();
|
|
class RulesetOutput extends _base.FileOutput {
|
|
constructor(span, id, type){
|
|
super(span, id);
|
|
this.strategies = [
|
|
new _surge.SurgeRuleSet(type),
|
|
new _clash.ClashClassicRuleSet(type),
|
|
new _singbox.SingboxSource(type)
|
|
];
|
|
}
|
|
}
|
|
class SurgeOnlyRulesetOutput extends _base.FileOutput {
|
|
constructor(span, id, type, overrideOutputDir){
|
|
super(span, id);
|
|
this.strategies = [
|
|
new _surge.SurgeRuleSet(type, overrideOutputDir)
|
|
];
|
|
}
|
|
}
|
|
class ClashOnlyRulesetOutput extends _base.FileOutput {
|
|
constructor(span, id, type){
|
|
super(span, id);
|
|
this.strategies = [
|
|
new _clash.ClashClassicRuleSet(type)
|
|
];
|
|
}
|
|
}
|
|
} (ruleset));
|
|
return ruleset;
|
|
}exports.r=requireRuleset; |