提交猫影视测试

This commit is contained in:
qist committed 2024-04-09 09:34:47 +08:00
1 parent 8a89175855
commit c18edd8fb2
12 files changed
+235 -170

No files matched your search

+4 -2
View File
@@ -1,5 +1,7 @@
## CatVodOpen新源
源项目地址:https://github.com/jadehh/TVSpider
#### 编译
```bash
@@ -10,6 +12,6 @@ npm install && npm run build
#### 新源地址
```text
gitee://Token@gitee.com/qist/tvbox/dist/index.js.md5
github://Token@gitee.com/qist/tvbox/dist/index.js.md5
gitee://Token@gitee.com/qist/tvbox/cat/dist/index.js.md5
github://Token@github.com/qist/tvbox/cat/dist/index.js.md5
```
+1
View File
@@ -24,6 +24,7 @@ __export(index_config_exports, {
module.exports = __toCommonJS(index_config_exports);
var index_config_default = {
alitoken: "6827db23e5474d02a07fd7431d3d5a5a",
bilicookie: "buvid3=02675249-8ED3-C418-87F5-59E18316459714816infoc; b_nut=1704421014; _uuid=5D435F74-F574-D9AB-62C1-B9294DE465D913102infoc; buvid_fp=e8c5650c749398e9b5cad3f3ddb5081e; buvid4=007E85D1-52C1-7E6E-07CF-837FFBC9349516677-024010502-J5vTDSZDCw4fNnXRejbSVg%3D%3D; rpdid=|()kYJmulRu0J'u~|RRJl)JR; PVID=1; SESSDATA=3be091d3%2C1720332009%2C699ed%2A11CjAcCdwXG5kY1umhCOpQHOn_WP7L9xFBfWO7KKd4BPweodpR6VyIfeNyPiRmkr5jCqsSVjg0R0dZOVVHRUo3RnhPRTZFc3JPbGdiUjFCdHpiRDhiTkticmdKTjVyS1VhbDdvNjFMSDJlbUJydUlRdjFUNGFBNkJlV2ZTa0N1Q1BEVi1QYTQzTUh3IIEC; bili_jct=b0ee7b5d3f27df893545d811d95506d4; DedeUserID=78014638; DedeUserID__ckMd5=4c8c5d65065e468a; enable_web_push=DISABLE; header_theme_version=CLOSE; home_feed_column=5; CURRENT_BLACKGAP=0; CURRENT_FNVAL=4048; b_lsid=75E916AA_18EA1A8D995; bsource=search_baidu; FEED_LIVE_VERSION=V_HEADER_LIVE_NO_POP; browser_resolution=1507-691; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTIzNjk5MTMsImlhdCI6MTcxMjExMDY1MywicGx0IjotMX0.8zQW_fNTCSBlK_JkHnzu3gDw62wuTK1qgKcbGec3swM; bili_ticket_expires=171236985",
ffm3u8: {
url: "https://cj.ffzyapi.com/api.php/provide/vod/from/ffm3u8/",
categories: ["国产剧", "香港剧", "韩国剧", "欧美剧", "台湾剧", "日本剧", "海外剧", "泰国剧", "短剧", "动作片", "喜剧片", "爱情片", "科幻片", "恐怖片", "剧情片", "战争片", "动漫片", "大陆综艺", "港台综艺", "日韩综艺", "欧美综艺", "国产动漫", "日韩动漫", "欧美动漫", "港台动漫", "海外动漫", "记录片"]
+1 -1
View File
@@ -1 +1 @@
b19ca4b85a55e3bde73dc53d3df66cbb
b3785a946904c143deac76d3fcb52c56
+10 -10
View File
@@ -102,7 +102,7 @@ ${T}`),g.pop(),`{${A}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
`:""},this._extScope=e,this._scope=new L2.Scope({parent:e}),this._nodes=[new kd]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,l){let i=this._scope.toName(n);return r!==void 0&&l&&(this._constants[i.str]=r),this._leafNode(new Ad(e,i,r)),i}const(e,n,r){return this._def(L2.varKinds.const,e,n,r)}let(e,n,r){return this._def(L2.varKinds.let,e,n,r)}var(e,n,r){return this._def(L2.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new Jc(e,n,r))}add(e,n){return this._leafNode(new Rd(e,Et.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Dt.nil&&this._leafNode(new Cd(e)),this}object(...e){let n=["{"];for(let[r,l]of e)n.length>1&&n.push(","),n.push(r),(r!==l||this.opts.es5)&&(n.push(":"),(0,Dt.addCodeArg)(n,l));return n.push("}"),new Dt._Code(n)}if(e,n,r){if(this._blockNode(new ia(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ia(e))}else(){return this._elseNode(new Po)}endIf(){return this._endBlockNode(ia,Po)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new Pd(e),n)}forRange(e,n,r,l,i=this.opts.es5?L2.varKinds.var:L2.varKinds.let){let s=this._scope.toName(e);return this._for(new Dd(i,s,n,r),()=>l(s))}forOf(e,n,r,l=L2.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Dt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Dt._)`${s}.length`,a=>{this.var(i,(0,Dt._)`${s}[${a}]`),r(i)})}return this._for(new Qc("of",l,i,n),()=>r(i))}forIn(e,n,r,l=this.opts.es5?L2.varKinds.var:L2.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Dt._)`Object.keys(${n})`,r);let i=this._scope.toName(e);return this._for(new Qc("in",l,i,n),()=>r(i))}endFor(){return this._endBlockNode(sa)}label(e){return this._leafNode(new Od(e))}break(e){return this._leafNode(new Nd(e))}return(e){let n=new K4;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(K4)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let l=new Ld;if(this._blockNode(l),this.code(e),n){let i=this.name("e");this._currNode=l.catch=new Y4(i),n(i)}return r&&(this._currNode=l.finally=new W4,this.code(r)),this._endBlockNode(Y4,W4)}throw(e){return this._leafNode(new Id(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Dt.nil,r,l){return this._blockNode(new X4(e,n,r)),l&&this.code(l).endFunc(),this}endFunc(){return this._endBlockNode(X4)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof ia))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};Et.CodeGen=Fd;function aa(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function Zc(t,e){return e instanceof Dt._CodeOrName?aa(t,e.names):t}function Do(t,e,n){if(t instanceof Dt.Name)return r(t);if(!l(t))return t;return new Dt._Code(t._items.reduce((i,s)=>(s instanceof Dt.Name&&(s=r(s)),s instanceof Dt._Code?i.push(...s._items):i.push(s),i),[]));function r(i){let s=n[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function l(i){return i instanceof Dt._Code&&i._items.some(s=>s instanceof Dt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function qte(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function lR(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Dt._)`!${Md(t)}`}Et.not=lR;var Hte=iR(Et.operators.AND);function Vte(...t){return t.reduce(Hte)}Et.and=Vte;var zte=iR(Et.operators.OR);function Gte(...t){return t.reduce(zte)}Et.or=Gte;function iR(t){return(e,n)=>e===Dt.nil?n:n===Dt.nil?e:(0,Dt._)`${Md(e)} ${t} ${Md(n)}`}function Md(t){return t instanceof Dt.Name?t:(0, Line truncated
|| (${s} == "string" && ${l} && ${l} == +${l})`).assign(a,(0,gt._)`+${l}`);return;case"integer":r.elseIf((0,gt._)`${s} === "boolean" || ${l} === null
|| (${s} === "string" && ${l} && ${l} == +${l} && !(${l} % 1))`).assign(a,(0,gt._)`+${l}`);return;case"boolean":r.elseIf((0,gt._)`${l} === "false" || ${l} === 0 || ${l} === null`).assign(a,!1).elseIf((0,gt._)`${l} === "true" || ${l} === 1`).assign(a,!0);return;case"null":r.elseIf((0,gt._)`${l} === "" || ${l} === 0 || ${l} === false`),r.assign(a,null);return;case"array":r.elseIf((0,gt._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${l} === null`).assign(a,(0,gt._)`[${l}]`)}}}function Ine({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,gt._)`${e} !== undefined`,()=>t.assign((0,gt._)`${e}[${n}]`,r))}function Hd(t,e,n,r=Q4.Correct){let l=r===Q4.Correct?gt.operators.EQ:gt.operators.NEQ,i;switch(t){case"null":return(0,gt._)`${e} ${l} null`;case"array":i=(0,gt._)`Array.isArray(${e})`;break;case"object":i=(0,gt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,gt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,gt._)`typeof ${e} ${l} ${t}`}return r===Q4.Correct?i:(0,gt.not)(i);function s(a=gt.nil){return(0,gt.and)((0,gt._)`typeof ${e} == "number"`,a,n?(0,gt._)`isFinite(${e})`:gt.nil)}}Vr.checkDataType=Hd;function Vd(t,e,n,r){if(t.length===1)return Hd(t[0],e,n,r);let l,i=(0,bR.toHash)(t);if(i.array&&i.object){let s=(0,gt._)`typeof ${e} != "object"`;l=i.null?s:(0,gt._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else l=gt.nil;i.number&&delete i.integer;for(let s in i)l=(0,gt.and)(l,Hd(s,e,n,r));return l}Vr.checkDataTypes=Vd;var Cne={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,gt._)`{type: ${t}}`:(0,gt._)`{type: ${e}}`};function zd(t){let e=kne(t);(0,wne.reportError)(e,Cne)}Vr.reportTypeError=zd;function kne(t){let{gen:e,data:n,schema:r}=t,l=(0,bR.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:l,schemaValue:l,parentSchema:r,params:{},it:t}}});var wR=k(n6=>{"use strict";Object.defineProperty(n6,"__esModule",{value:!0});n6.assignDefaults=void 0;var Mo=Je(),Pne=yt();function Dne(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let l in n)xR(t,l,n[l].default);else e==="array"&&Array.isArray(r)&&r.forEach((l,i)=>xR(t,i,l.default))}n6.assignDefaults=Dne;function xR(t,e,n){let{gen:r,compositeRule:l,data:i,opts:s}=t;if(n===void 0)return;let a=(0,Mo._)`${i}${(0,Mo.getProperty)(e)}`;if(l){(0,Pne.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,Mo._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,Mo._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,Mo._)`${a} = ${(0,Mo.stringify)(n)}`)}});var zr=k(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.validateUnion=nn.validateArray=nn.usePattern=nn.callValidateCode=nn.schemaProperties=nn.allSchemaProperties=nn.noPropertyInData=nn.propertyInData=nn.isOwnProperty=nn.hasPropFunc=nn.reportMissingProp=nn.checkMissingProp=nn.checkReportMissingProp=void 0;var On=Je(),Gd=yt(),$3=h2(),Lne=yt();function Fne(t,e){let{gen:n,data:r,it:l}=t;n.if(Kd(n,r,e,l.opts.ownProperties),()=>{t.setParams({missingProperty:(0,On._)`${e}`},!0),t.error()})}nn.checkReportMissingProp=Fne;function Mne({gen:t,data:e,it:{opts:n}},r,l){return(0,On.or)(...r.map(i=>(0,On.and)(Kd(t,e,i,n.ownProperties),(0,On._)`${l} = ${i}`)))}nn.checkMissingProp=Mne;function $ne(t,e){t.setParams({missingProperty:e},!0),t.error()}nn.reportMissingProp=$ne;function AR(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,On._)`Object.prototype.hasOwnProperty`})}nn.hasPropFunc=AR;function Xd(t,e,n){return(0,On._)`${AR(t)}.call(${e}, ${n})`}nn.isOwnProperty=Xd;function jne(t,e,n,r){let l=(0,On._)`${e}${(0,On.getProperty)(n)} !== undefined`;return r?(0,On._)`${l} && ${Xd(t,e,n)}`:l}nn.propertyInData=jne;function Kd(t,e,n,r){let l=(0,On._)`${e}${(0,On.getProperty)(n)} === undefined`;return r?(0,On.or)(l,(0,On.not)(Xd(t,e,n))):l}nn.noPropertyInData=Kd;function RR(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}nn.allSchemaProperties=RR;function Une(t,e){return RR(e).filter(n=>!(0,Gd.alwaysValidSchema)(t,e[n]))}nn.schemaProperties=Une;function Bne({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:l,errorPath:i},it:s},a,o,c){let f=c?(0,On._)`${t}, ${e}, ${r}${l}`:e,p=[[$3.default.instancePath,(0,On.strConcat)($3.default.instancePath,i)],[$3.default.parentData,s.parentData],[$3.default.parentDataProperty,s.parentDataProperty],[$3.default.rootData,$3.default.rootData]];s.opts.dynamicRef&&p.push([$3.default.dynamicAnchors,$3.default.dynamicAnchors]);let m=(0,On._)`${f}, ${n.object(...p)}`;return o!==On.nil?(0,On._)`${a}.call(${o}, ${m})`:(0,On._)`${a}(${m})`}nn.callValidateCode=Bne;var qne=(0,On._)`new RegExp`;function Hne({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:l}=e.code,i=l(n,r);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,On._)`${l.code==="new RegExp"?qne:(0,Lne.useFunc)(t,l)}(${n}, ${r})`})}nn.usePattern=Hne;function Vne(t){let{gen:e,data:n,keyword:r,it:l}=t,i=e.name("valid");if(l.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let o=e.const("len",(0,On._)`${n}.length`);e.forRange("i",0,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:Gd.Type.Num},i),e.if((0,On.not)(i),a)})}}nn.validateArray=Vne;function zne(t){let{gen:e,schema:n,keyword:r,it:l}=t;if(! Line truncated
|| ${s} === "boolean" || ${l} === null`).assign(a,(0,gt._)`[${l}]`)}}}function Ine({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,gt._)`${e} !== undefined`,()=>t.assign((0,gt._)`${e}[${n}]`,r))}function Hd(t,e,n,r=Q4.Correct){let l=r===Q4.Correct?gt.operators.EQ:gt.operators.NEQ,i;switch(t){case"null":return(0,gt._)`${e} ${l} null`;case"array":i=(0,gt._)`Array.isArray(${e})`;break;case"object":i=(0,gt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,gt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,gt._)`typeof ${e} ${l} ${t}`}return r===Q4.Correct?i:(0,gt.not)(i);function s(a=gt.nil){return(0,gt.and)((0,gt._)`typeof ${e} == "number"`,a,n?(0,gt._)`isFinite(${e})`:gt.nil)}}Vr.checkDataType=Hd;function Vd(t,e,n,r){if(t.length===1)return Hd(t[0],e,n,r);let l,i=(0,bR.toHash)(t);if(i.array&&i.object){let s=(0,gt._)`typeof ${e} != "object"`;l=i.null?s:(0,gt._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else l=gt.nil;i.number&&delete i.integer;for(let s in i)l=(0,gt.and)(l,Hd(s,e,n,r));return l}Vr.checkDataTypes=Vd;var Cne={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,gt._)`{type: ${t}}`:(0,gt._)`{type: ${e}}`};function zd(t){let e=kne(t);(0,wne.reportError)(e,Cne)}Vr.reportTypeError=zd;function kne(t){let{gen:e,data:n,schema:r}=t,l=(0,bR.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:l,schemaValue:l,parentSchema:r,params:{},it:t}}});var wR=k(n6=>{"use strict";Object.defineProperty(n6,"__esModule",{value:!0});n6.assignDefaults=void 0;var Mo=Je(),Pne=yt();function Dne(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let l in n)xR(t,l,n[l].default);else e==="array"&&Array.isArray(r)&&r.forEach((l,i)=>xR(t,i,l.default))}n6.assignDefaults=Dne;function xR(t,e,n){let{gen:r,compositeRule:l,data:i,opts:s}=t;if(n===void 0)return;let a=(0,Mo._)`${i}${(0,Mo.getProperty)(e)}`;if(l){(0,Pne.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,Mo._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,Mo._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,Mo._)`${a} = ${(0,Mo.stringify)(n)}`)}});var zr=k(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.validateUnion=nn.validateArray=nn.usePattern=nn.callValidateCode=nn.schemaProperties=nn.allSchemaProperties=nn.noPropertyInData=nn.propertyInData=nn.isOwnProperty=nn.hasPropFunc=nn.reportMissingProp=nn.checkMissingProp=nn.checkReportMissingProp=void 0;var On=Je(),Gd=yt(),$3=h2(),Lne=yt();function Fne(t,e){let{gen:n,data:r,it:l}=t;n.if(Kd(n,r,e,l.opts.ownProperties),()=>{t.setParams({missingProperty:(0,On._)`${e}`},!0),t.error()})}nn.checkReportMissingProp=Fne;function Mne({gen:t,data:e,it:{opts:n}},r,l){return(0,On.or)(...r.map(i=>(0,On.and)(Kd(t,e,i,n.ownProperties),(0,On._)`${l} = ${i}`)))}nn.checkMissingProp=Mne;function $ne(t,e){t.setParams({missingProperty:e},!0),t.error()}nn.reportMissingProp=$ne;function AR(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,On._)`Object.prototype.hasOwnProperty`})}nn.hasPropFunc=AR;function Xd(t,e,n){return(0,On._)`${AR(t)}.call(${e}, ${n})`}nn.isOwnProperty=Xd;function jne(t,e,n,r){let l=(0,On._)`${e}${(0,On.getProperty)(n)} !== undefined`;return r?(0,On._)`${l} && ${Xd(t,e,n)}`:l}nn.propertyInData=jne;function Kd(t,e,n,r){let l=(0,On._)`${e}${(0,On.getProperty)(n)} === undefined`;return r?(0,On.or)(l,(0,On.not)(Xd(t,e,n))):l}nn.noPropertyInData=Kd;function RR(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}nn.allSchemaProperties=RR;function Une(t,e){return RR(e).filter(n=>!(0,Gd.alwaysValidSchema)(t,e[n]))}nn.schemaProperties=Une;function Bne({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:l,errorPath:i},it:s},a,o,c){let f=c?(0,On._)`${t}, ${e}, ${r}${l}`:e,p=[[$3.default.instancePath,(0,On.strConcat)($3.default.instancePath,i)],[$3.default.parentData,s.parentData],[$3.default.parentDataProperty,s.parentDataProperty],[$3.default.rootData,$3.default.rootData]];s.opts.dynamicRef&&p.push([$3.default.dynamicAnchors,$3.default.dynamicAnchors]);let m=(0,On._)`${f}, ${n.object(...p)}`;return o!==On.nil?(0,On._)`${a}.call(${o}, ${m})`:(0,On._)`${a}(${m})`}nn.callValidateCode=Bne;var qne=(0,On._)`new RegExp`;function Hne({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:l}=e.code,i=l(n,r);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,On._)`${l.code==="new RegExp"?qne:(0,Lne.useFunc)(t,l)}(${n}, ${r})`})}nn.usePattern=Hne;function Vne(t){let{gen:e,data:n,keyword:r,it:l}=t,i=e.name("valid");if(l.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let o=e.const("len",(0,On._)`${n}.length`);e.forRange("i",0,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:Gd.Type.Num},i),e.if((0,On.not)(i),a)})}}nn.validateArray=Vne;function zne(t){let{gen:e,schema:n,keyword:r,it:l}=t;if(! Line truncated
missingProperty: ${r},
depsCount: ${e},
deps: ${n}}`};var v2e={keyword:"dependencies",type:"object",schemaType:"object",error:di.error,code(t){let[e,n]=E2e(t);jO(t,e),UO(t,n)}};function E2e({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let l=Array.isArray(t[r])?e:n;l[r]=t[r]}return[e,n]}function jO(t,e=t.schema){let{gen:n,data:r,it:l}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,g1.propertyInData)(n,r,s,l.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),l.allErrors?n.if(o,()=>{for(let c of a)(0,g1.checkReportMissingProp)(t,c)}):(n.if((0,Dh._)`${o} && (${(0,g1.checkMissingProp)(t,a,i)})`),(0,g1.reportMissingProp)(t,i),n.else())}}di.validatePropertyDeps=jO;function UO(t,e=t.schema){let{gen:n,data:r,keyword:l,it:i}=t,s=n.name("valid");for(let a in e)(0,_2e.alwaysValidSchema)(i,e[a])||(n.if((0,g1.propertyInData)(n,r,a,i.opts.ownProperties),()=>{let o=t.subschema({keyword:l,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}di.validateSchemaDeps=UO;di.default=v2e});var HO=k(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var qO=Je(),b2e=yt(),T2e={message:"property name must be valid",params:({params:t})=>(0,qO._)`{propertyName: ${t.propertyName}}`},S2e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:T2e,code(t){let{gen:e,schema:n,data:r,it:l}=t;if((0,b2e.alwaysValidSchema)(l,n))return;let i=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,qO.not)(i),()=>{t.error(!0),l.allErrors||e.break()})}),t.ok(i)}};Lh.default=S2e});var Mh=k(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var g6=zr(),$2=Je(),x2e=h2(),y6=yt(),w2e={message:"must NOT have additional properties",params:({params:t})=>(0,$2._)`{additionalProperty: ${t.additionalProperty}}`},A2e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:w2e,code(t){let{gen:e,schema:n,parentSchema:r,data:l,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,y6.alwaysValidSchema)(s,n))return;let c=(0,g6.allSchemaProperties)(r.properties),f=(0,g6.allSchemaProperties)(r.patternProperties);p(),t.ok((0,$2._)`${i} === ${x2e.default.errors}`);function p(){e.forIn("key",l,S=>{!c.length&&!f.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(c.length>8){let x=(0,y6.schemaRefOrVal)(s,r.properties,"properties");T=(0,g6.isOwnProperty)(e,x,S)}else c.length?T=(0,$2.or)(...c.map(x=>(0,$2._)`${S} === ${x}`)):T=$2.nil;return f.length&&(T=(0,$2.or)(T,...f.map(x=>(0,$2._)`${(0,g6.usePattern)(t,x)}.test(${S})`))),(0,$2.not)(T)}function h(S){e.code((0,$2._)`delete ${l}[${S}]`)}function g(S){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){h(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,y6.alwaysValidSchema)(s,n)){let T=e.name("valid");o.removeAdditional==="failing"?(v(S,T,!1),e.if((0,$2.not)(T),()=>{t.reset(),h(S)})):(v(S,T),a||e.if((0,$2.not)(T),()=>e.break()))}}function v(S,T,x){let _={keyword:"additionalProperties",dataProp:S,dataPropType:y6.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(_,T)}}};Fh.default=A2e});var GO=k(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var R2e=Uo(),VO=zr(),$h=yt(),zO=Mh(),O2e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:l,it:i}=t;i.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&zO.default.code(new R2e.KeywordCxt(i,zO.default,"additionalProperties"));let s=(0,VO.allSchemaProperties)(n);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=$h.mergeEvaluated.props(e,(0,$h.toHash)(s),i.props));let a=s.filter(p=>!(0,$h.alwaysValidSchema)(i,n[p]));if(a.length===0)return;let o=e.name("valid");for(let p of a)c(p)?f(p):(e.if((0,VO.propertyInData)(e,l,p,i.opts.ownProperties)),f(p),i.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(o);function c(p){return i.opts.useDefaults&&!i.compositeRule&&n[p].default!==void 0}function f(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},o)}}};jh.default=O2e});var WO=k(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var XO=zr(),_6=Je(),KO=yt(),YO=yt(),N2e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:l,it:i}=t,{opts:s}=i,a=(0,XO.allSchemaProperties)(n),o=a.filter(v=>(0,KO.alwaysValidSchema)(i,n[v]));if(a.length===0||o.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&l.properties,f=e.name("valid");i.props!==!0&&!(i.props instanc Line truncated
@@ -119,7 +119,7 @@ ${T}`),g.pop(),`{${A}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
${l}
module.exports = ${t.toString()}(validator, serializer)`}dm.exports=A3e;dm.exports.dependencies={Serializer:Ed(),Validator:pm()}});var zN=k((abe,VN)=>{"use strict";var{dependencies:R3e}=hm(),{Serializer:O3e,Validator:sbe}=R3e,N3e={mode:"standalone"},I3e=O3e.restoreFromState(N3e),C3e=null;VN.exports=function(e,n){function r(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(C3e,I3e)});var E1=k((obe,YN)=>{"use strict";var GN=require("node:http").STATUS_CODES,k3e=yp(),{kReplyHeaders:ma,kReplyNextErrorHandler:N6,kReplyIsRunningOnErrorHook:P3e,kReplyHasStatusCode:D3e,kRouteContext:KN}=kr(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:L3e,FST_ERR_FAILED_ERROR_SERIALIZATION:F3e}=ll(),{getSchemaSerializer:M3e}=H4(),mm=zN(),$3e={func:U3e,toJSON(){return this.func.name.toString()+"()"}};function j3e(t,e,n){t[P3e]=!1;let r=t[KN];if(t[N6]===!1){XN(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[ma])}catch(c){a.log.warn({req:a.request,res:a,err:c},c&&c.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let l=t[N6]||r.errorHandler;t[N6]=Object.getPrototypeOf(l),delete t[ma]["content-type"],delete t[ma]["content-length"];let i=l.func;if(!i){t[N6]=!1,XN(e,t,n);return}let s=i(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?k3e(s,t):t.send(s))}function U3e(t,e,n){if(q3e(t,n),!n[D3e]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function XN(t,e,n){let r=e.raw,l=e.statusCode;e[ma]["content-type"]=e[ma]["content-type"]??"application/json; charset=utf-8";let i;try{let s=M3e(e[KN],l,e[ma]["content-type"]);i=s===!1?mm({error:GN[l+""],code:t.code,message:t.message,statusCode:l}):s(Object.create(t,{error:{value:GN[l+""]},message:{value:t.message},statusCode:{value:l}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),i=mm(new F3e(s.message,t.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=mm(new L3e(typeof i))),e[ma]["content-length"]=""+Buffer.byteLength(i),n(e,i)}function B3e(t=$3e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function q3e(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}YN.exports={buildErrorHandler:B3e,handleError:j3e}});var L6=k((ube,D6)=>{"use strict";var vm=require("node:stream").finished,H3e=require("node:stream").Readable,{kFourOhFourContext:WN,kPublicRouteContext:JN,kReplyErrorHandlerCalled:iI,kReplyHijacked:b1,kReplyStartTime:T1,kReplyEndTime:bm,kReplySerializer:i3,kReplySerializerDefault:C6,kReplyIsError:k6,kReplyHeaders:mn,kReplyTrailers:Pr,kReplyHasStatusCode:Tm,kReplyIsRunningOnErrorHook:Sm,kReplyNextErrorHandler:V3e,kDisableRequestLogging:sI,kSchemaResponse:P6,kReplyCacheSerializeFns:z3,kSchemaController:gm,kOptions:z3e,kRouteContext:Rt}=kr(),{onSendHookRunner:aI,onResponseHookRunner:G3e,preHandlerHookRunner:X3e,preSerializationHookRunner:K3e}=C3(),QN=bp()[Symbol.for("internals")],Y3e=B4(),Em=Y3e.now,{handleError:ZN}=E1(),{getSchemaSerializer:W3e}=H4(),ym={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:J3e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:Q3e,FST_ERR_REP_ALREADY_SENT:oI,FST_ERR_REP_SENT_VALUE:Z3e,FST_ERR_SEND_INSIDE_ONERR:ese,FST_ERR_BAD_STATUS_CODE:tse,FST_ERR_BAD_TRAILER_NAME:nse,FST_ERR_BAD_TRAILER_VALUE:rse,FST_ERR_MISSING_SERIALIZATION_FN:lse,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:ise}=ll(),{FSTDEP010:sse,FSTDEP013:ase,FSTDEP019:ose,FSTDEP020:use}=Zi(),uI=Object.prototype.toString;function un(t,e,n){this.raw=t,this[i3]=null,this[iI]=!1,this[k6]=!1,this[Sm]=!1,this.request=e,this[mn]={},this[Pr]=null,this[Tm]=!1,this[T1]=void 0,this.log=n}un.props=[];Object.defineProperties(un.prototype,{[Rt]:{get(){return this.request[Rt]}},context:{get(){return ose(),this.request[Rt]}},elapsedTime:{get(){return this[T1]===void 0?0:(this[bm]||Em())-this[T1]}},server:{get(){return this.request[Rt].server}},sent:{enumerable:!0,get(){return(this[b1]||this.raw.writableEnded)===!0},set(t){if(sse(),t!==!0)throw new Z3e;if(this.sent&&this[b1])throw new oI(this.request.url,this.request.method);this[b1]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[JN]:{get(){return this.request[JN]}}});un.prototype.hijack=function(){return this[b1]=!0,this};un.prototype.send=function(t){if(this[Sm]===!0)throw new ese;if(this.sent)return this.log.warn Line truncated
module.exports = ${t.toString()}(validator, serializer)`}dm.exports=A3e;dm.exports.dependencies={Serializer:Ed(),Validator:pm()}});var zN=k((abe,VN)=>{"use strict";var{dependencies:R3e}=hm(),{Serializer:O3e,Validator:sbe}=R3e,N3e={mode:"standalone"},I3e=O3e.restoreFromState(N3e),C3e=null;VN.exports=function(e,n){function r(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(C3e,I3e)});var E1=k((obe,YN)=>{"use strict";var GN=require("node:http").STATUS_CODES,k3e=yp(),{kReplyHeaders:ma,kReplyNextErrorHandler:N6,kReplyIsRunningOnErrorHook:P3e,kReplyHasStatusCode:D3e,kRouteContext:KN}=kr(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:L3e,FST_ERR_FAILED_ERROR_SERIALIZATION:F3e}=ll(),{getSchemaSerializer:M3e}=H4(),mm=zN(),$3e={func:U3e,toJSON(){return this.func.name.toString()+"()"}};function j3e(t,e,n){t[P3e]=!1;let r=t[KN];if(t[N6]===!1){XN(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[ma])}catch(c){a.log.warn({req:a.request,res:a,err:c},c&&c.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let l=t[N6]||r.errorHandler;t[N6]=Object.getPrototypeOf(l),delete t[ma]["content-type"],delete t[ma]["content-length"];let i=l.func;if(!i){t[N6]=!1,XN(e,t,n);return}let s=i(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?k3e(s,t):t.send(s))}function U3e(t,e,n){if(q3e(t,n),!n[D3e]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function XN(t,e,n){let r=e.raw,l=e.statusCode;e[ma]["content-type"]=e[ma]["content-type"]??"application/json; charset=utf-8";let i;try{let s=M3e(e[KN],l,e[ma]["content-type"]);i=s===!1?mm({error:GN[l+""],code:t.code,message:t.message,statusCode:l}):s(Object.create(t,{error:{value:GN[l+""]},message:{value:t.message},statusCode:{value:l}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),i=mm(new F3e(s.message,t.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=mm(new L3e(typeof i))),e[ma]["content-length"]=""+Buffer.byteLength(i),n(e,i)}function B3e(t=$3e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function q3e(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}YN.exports={buildErrorHandler:B3e,handleError:j3e}});var L6=k((ube,D6)=>{"use strict";var vm=require("node:stream").finished,H3e=require("node:stream").Readable,{kFourOhFourContext:WN,kPublicRouteContext:JN,kReplyErrorHandlerCalled:iI,kReplyHijacked:b1,kReplyStartTime:T1,kReplyEndTime:bm,kReplySerializer:i3,kReplySerializerDefault:C6,kReplyIsError:k6,kReplyHeaders:xn,kReplyTrailers:Pr,kReplyHasStatusCode:Tm,kReplyIsRunningOnErrorHook:Sm,kReplyNextErrorHandler:V3e,kDisableRequestLogging:sI,kSchemaResponse:P6,kReplyCacheSerializeFns:z3,kSchemaController:gm,kOptions:z3e,kRouteContext:Rt}=kr(),{onSendHookRunner:aI,onResponseHookRunner:G3e,preHandlerHookRunner:X3e,preSerializationHookRunner:K3e}=C3(),QN=bp()[Symbol.for("internals")],Y3e=B4(),Em=Y3e.now,{handleError:ZN}=E1(),{getSchemaSerializer:W3e}=H4(),ym={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:J3e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:Q3e,FST_ERR_REP_ALREADY_SENT:oI,FST_ERR_REP_SENT_VALUE:Z3e,FST_ERR_SEND_INSIDE_ONERR:ese,FST_ERR_BAD_STATUS_CODE:tse,FST_ERR_BAD_TRAILER_NAME:nse,FST_ERR_BAD_TRAILER_VALUE:rse,FST_ERR_MISSING_SERIALIZATION_FN:lse,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:ise}=ll(),{FSTDEP010:sse,FSTDEP013:ase,FSTDEP019:ose,FSTDEP020:use}=Zi(),uI=Object.prototype.toString;function un(t,e,n){this.raw=t,this[i3]=null,this[iI]=!1,this[k6]=!1,this[Sm]=!1,this.request=e,this[xn]={},this[Pr]=null,this[Tm]=!1,this[T1]=void 0,this.log=n}un.props=[];Object.defineProperties(un.prototype,{[Rt]:{get(){return this.request[Rt]}},context:{get(){return ose(),this.request[Rt]}},elapsedTime:{get(){return this[T1]===void 0?0:(this[bm]||Em())-this[T1]}},server:{get(){return this.request[Rt].server}},sent:{enumerable:!0,get(){return(this[b1]||this.raw.writableEnded)===!0},set(t){if(sse(),t!==!0)throw new Z3e;if(this.sent&&this[b1])throw new oI(this.request.url,this.request.method);this[b1]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[JN]:{get(){return this.request[JN]}}});un.prototype.hijack=function(){return this[b1]=!0,this};un.prototype.send=function(t){if(this[Sm]===!0)throw new ese;if(this.sent)return this.log.warn Line truncated
${n.functions.join(`
`)}
const main = anonymous0
@@ -301,7 +301,7 @@ ${s}`,ajv:o.ajv};let c=new Function("validator","serializer",s);return e.mode===
} else {
`),r.const!==void 0?i+=a1e(e,n):Array.isArray(l)?i+=s1e(t,e,n):i+=vP(t,e,n),s&&(i+=`
}
`),i}lu.exports=_g;lu.exports.default=_g;lu.exports.build=_g;lu.exports.validLargeArrayMechanisms=pP;lu.exports.restore=function({code:t,validator:e,serializer:n}){return Function.apply(null,["validator","serializer",t]).apply(null,[e,n])}});var TP=k((yTe,vg)=>{"use strict";var o1e=Eg();function bP(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=o1e();return function(r,l={}){l.mode="standalone";let i=e(r,l);return function(s){let a=i(s);return t.storeFunction(s,a),new Function(a)}}}vg.exports=bP;vg.exports.default=bP});var Eg=k((_Te,$1)=>{"use strict";var u1e=EP();function bg(){return function(e,n){let r=Object.assign({},n,{schema:e});return c1e.bind(null,r)}}function c1e(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),u1e(e,t)}$1.exports=bg;$1.exports.default=bg;$1.exports.SerializerSelector=bg;$1.exports.StandaloneSerializer=TP()});var c3=k(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});j1.checkMetadata=void 0;var f1e=yt(),p1e={keyword:"metadata",schemaType:"object",code(t){SP(t);let{gen:e,schema:n,it:r}=t;if((0,f1e.alwaysValidSchema)(r,n))return;let l=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},l),t.ok(l)}};function SP({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}j1.checkMetadata=SP;j1.default=p1e});var c8=k(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0});B1.hasRef=void 0;var xP=fa(),U1=Je(),d1e=q3(),wP=h2(),AP=fh(),h1e=c3(),m1e={keyword:"ref",schemaType:"string",code(t){(0,h1e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:l,it:i}=t,{schemaEnv:{root:s}}=i,a=e.name("valid");l.nullable?(e.var(a,(0,U1._)`${n} === null`),e.if((0,U1.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var p;let m=(p=s.schema.definitions)===null||p===void 0?void 0:p[r];if(!m)throw new d1e.default(i.opts.uriResolver,"",r,`No definition ${r}`);Tg(m)||!i.opts.inlineRefs?c(m):f(m)}function c(p){let m=xP.compileSchema.call(i.self,new xP.SchemaEnv({schema:p,root:s,schemaPath:`/definitions/${r}`})),h=(0,AP.getValidate)(t,m),g=e.const("_errs",wP.default.errors);(0,AP.callRef)(t,h,m,m.$async),e.assign(a,(0,U1._)`${g} === ${wP.default.errors}`)}function f(p){let m=e.scopeValue("schema",i.opts.code.source===!0?{ref:p,code:(0,U1.stringify)(p)}:{ref:p});t.subschema({schema:p,dataTypes:[],schemaPath:U1.nil,topSchemaRef:m,errSchemaPath:`/definitions/${r}`},a)}}};function Tg(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&Tg(n))return!0}return!1}B1.hasRef=Tg;B1.default=m1e});var xg=k(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});var g1e=/t|\s/i,y1e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_1e=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,v1e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function OP(t,e){let n=t.split(g1e);return n.length===2&&RP(n[0])&&E1e(n[1])||e&&n.length===1&&RP(n[0])}Sg.default=OP;function RP(t){let e=y1e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3];return r>=1&&r<=12&&l>=1&&(l<=v1e[r]||r===2&&l===29&&(n%100===0?n%400===0:n%4===0))}function E1e(t){let e=_1e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3],i=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&l<=59||n-i===23&&r-s===59&&l===60}OP.code='require("ajv/dist/runtime/timestamp").default'});var iu=k(X3=>{"use strict";Object.defineProperty(X3,"__esModule",{value:!0});X3.typeErrorParams=X3.typeErrorMessage=X3.typeError=void 0;var b1e=Je();function T1e(t){return{message:e=>NP(e,t),params:e=>IP(e,t)}}X3.typeError=T1e;function NP({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}X3.typeErrorMessage=NP;function IP({parentSchema:t},e){return(0,b1e._)`{type: ${e}, nullable: ${!!t?.nullable}}`}X3.typeErrorParams=IP});var wg=k(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.intRange=void 0;var Wl=Je(),S1e=xg(),x1e=yt(),w1e=c3(),CP=iu();su.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var A1e={message:t=>(0,CP.typeErrorMessage)(t,t.schema),params:t=>(0,CP.typeErrorParams)(t,t.schema)};function R1e(t){let{gen:e,data:n,it:r}=t,{timestamp:l,allowDate:i}=r.opts;if(l==="date")return(0,Wl._)`${n} instanceof Date `;let s=(0,x1e.useFunc)(e,S1e.default),a=i?(0,Wl._)`, true`:Wl.nil,o=(0,Wl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return l==="string"?o:(0,Wl.or)((0,Wl._)`${n} instanceof Date`,o)}var O1e={keyword:"type",schemaType:"string",error:A1e,code(t){(0,w1e.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:l}=t,i;switch(n){case"boole Line truncated
`),i}lu.exports=_g;lu.exports.default=_g;lu.exports.build=_g;lu.exports.validLargeArrayMechanisms=pP;lu.exports.restore=function({code:t,validator:e,serializer:n}){return Function.apply(null,["validator","serializer",t]).apply(null,[e,n])}});var TP=k((yTe,vg)=>{"use strict";var o1e=Eg();function bP(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=o1e();return function(r,l={}){l.mode="standalone";let i=e(r,l);return function(s){let a=i(s);return t.storeFunction(s,a),new Function(a)}}}vg.exports=bP;vg.exports.default=bP});var Eg=k((_Te,$1)=>{"use strict";var u1e=EP();function bg(){return function(e,n){let r=Object.assign({},n,{schema:e});return c1e.bind(null,r)}}function c1e(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),u1e(e,t)}$1.exports=bg;$1.exports.default=bg;$1.exports.SerializerSelector=bg;$1.exports.StandaloneSerializer=TP()});var c3=k(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});j1.checkMetadata=void 0;var f1e=yt(),p1e={keyword:"metadata",schemaType:"object",code(t){SP(t);let{gen:e,schema:n,it:r}=t;if((0,f1e.alwaysValidSchema)(r,n))return;let l=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},l),t.ok(l)}};function SP({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}j1.checkMetadata=SP;j1.default=p1e});var c8=k(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0});B1.hasRef=void 0;var xP=fa(),U1=Je(),d1e=q3(),wP=h2(),AP=fh(),h1e=c3(),m1e={keyword:"ref",schemaType:"string",code(t){(0,h1e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:l,it:i}=t,{schemaEnv:{root:s}}=i,a=e.name("valid");l.nullable?(e.var(a,(0,U1._)`${n} === null`),e.if((0,U1.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var p;let m=(p=s.schema.definitions)===null||p===void 0?void 0:p[r];if(!m)throw new d1e.default(i.opts.uriResolver,"",r,`No definition ${r}`);Tg(m)||!i.opts.inlineRefs?c(m):f(m)}function c(p){let m=xP.compileSchema.call(i.self,new xP.SchemaEnv({schema:p,root:s,schemaPath:`/definitions/${r}`})),h=(0,AP.getValidate)(t,m),g=e.const("_errs",wP.default.errors);(0,AP.callRef)(t,h,m,m.$async),e.assign(a,(0,U1._)`${g} === ${wP.default.errors}`)}function f(p){let m=e.scopeValue("schema",i.opts.code.source===!0?{ref:p,code:(0,U1.stringify)(p)}:{ref:p});t.subschema({schema:p,dataTypes:[],schemaPath:U1.nil,topSchemaRef:m,errSchemaPath:`/definitions/${r}`},a)}}};function Tg(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&Tg(n))return!0}return!1}B1.hasRef=Tg;B1.default=m1e});var xg=k(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});var g1e=/t|\s/i,y1e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_1e=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,v1e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function OP(t,e){let n=t.split(g1e);return n.length===2&&RP(n[0])&&E1e(n[1])||e&&n.length===1&&RP(n[0])}Sg.default=OP;function RP(t){let e=y1e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3];return r>=1&&r<=12&&l>=1&&(l<=v1e[r]||r===2&&l===29&&(n%100===0?n%400===0:n%4===0))}function E1e(t){let e=_1e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3],i=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&l<=59||n-i===23&&r-s===59&&l===60}OP.code='require("ajv/dist/runtime/timestamp").default'});var iu=k(X3=>{"use strict";Object.defineProperty(X3,"__esModule",{value:!0});X3.typeErrorParams=X3.typeErrorMessage=X3.typeError=void 0;var b1e=Je();function T1e(t){return{message:e=>NP(e,t),params:e=>IP(e,t)}}X3.typeError=T1e;function NP({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}X3.typeErrorMessage=NP;function IP({parentSchema:t},e){return(0,b1e._)`{type: ${e}, nullable: ${!!t?.nullable}}`}X3.typeErrorParams=IP});var wg=k(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.intRange=void 0;var Wl=Je(),S1e=xg(),x1e=yt(),w1e=c3(),CP=iu();su.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var A1e={message:t=>(0,CP.typeErrorMessage)(t,t.schema),params:t=>(0,CP.typeErrorParams)(t,t.schema)};function R1e(t){let{gen:e,data:n,it:r}=t,{timestamp:l,allowDate:i}=r.opts;if(l==="date")return(0,Wl._)`${n} instanceof Date `;let s=(0,x1e.useFunc)(e,S1e.default),a=i?(0,Wl._)`, true`:Wl.nil,o=(0,Wl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return l==="string"?o:(0,Wl.or)((0,Wl._)`${n} instanceof Date`,o)}var O1e={keyword:"type",schemaType:"string",error:A1e,code(t){(0,w1e.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:l}=t,i;switch(n){case"boole Line truncated
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},M0e=97,$0e=48;function W3(t,e){let n="",r;for(W3.message=void 0;r=t[e++],r!=='"';)if(r==="\\")if(r=t[e],r in iD)n+=iD[r],e++;else if(r==="u"){e++;let i=4,s=0;for(;i--;){if(s<<=4,r=t[e],r===void 0){l("unexpected end");return}if(r=r.toLowerCase(),r>="a"&&r<="f")s+=r.charCodeAt(0)-M0e+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-$0e;else{l(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{l(`unexpected token ${r}`);return}else if(r===void 0){l("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{l(`unexpected token ${r}`);return}return W3.position=e,n;function l(i){W3.position=e,W3.message=i}}J3.parseJsonString=W3;W3.message=void 0;W3.position=0;W3.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var yD=k(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});var j0e=Fg(),cD=fa(),He=Je(),U0e=q3(),Nt=h2(),B0e=zr(),q0e=c8(),H0e=wg(),Hg=sD(),fD=yt(),V0e=xg(),z0e={elements:Y0e,values:W0e,discriminator:Q0e,properties:aD,optionalProperties:aD,enum:e5e,type:Z0e,ref:t5e};function pD(t,e){let n=cD.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new He.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:Nt.default.data,parseName:a,char:s.name("c")},c;try{this._compilations.add(t),t.parseName=a,G0e(o),s.optimize(this.opts.code.optimize);let f=s.toString();c=`${s.scopeRefs(Nt.default.scope)}return ${f}`;let m=new Function(`${Nt.default.scope}`,c)(this.scope.get());this.scope.value(a,{ref:m}),t.parse=m}catch(f){throw c&&this.logger.error("Error compiling parser, function code:",c),delete t.parse,delete t.parseName,f}finally{this._compilations.delete(t)}return t}Kg.default=pD;var qg=(0,He._)`undefined`;function G0e(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,He._)`${Nt.default.json}, ${Nt.default.jsonPos}, ${Nt.default.jsonPart}`,!1,()=>{e.let(Nt.default.data),e.let(r),e.assign((0,He._)`${n}.message`,qg),e.assign((0,He._)`${n}.position`,qg),e.assign(Nt.default.jsonPos,(0,He._)`${Nt.default.jsonPos} || 0`),e.const(Nt.default.jsonLen,(0,He._)`${Nt.default.json}.length`),m8(t),Xg(t),e.if(Nt.default.jsonPart,()=>{e.assign((0,He._)`${n}.position`,Nt.default.jsonPos),e.return(Nt.default.data)}),e.if((0,He._)`${Nt.default.jsonPos} === ${Nt.default.jsonLen}`,()=>e.return(Nt.default.data)),cu(t)})}function m8(t){let e;for(let n of j0e.jtdForms)if(n in t.schema){e=n;break}e?K0e(t,z0e[e]):zg(t)}var X0e=uD(!0,uD(!1,cu));function K0e(t,e){let{gen:n,schema:r,data:l}=t;if(!r.nullable)return e(t);V1(t,"null",e,()=>n.assign(l,null))}function Y0e(t){let{gen:e,schema:n,data:r}=t;_i(t,"[");let l=e.let("i",0);e.assign(r,(0,He._)`[]`),Vg(t,"]",()=>{let i=e.let("el");m8({...t,schema:n.elements,data:i}),e.assign((0,He._)`${r}[${l}++]`,i)})}function W0e(t){let{gen:e,schema:n,data:r}=t;_i(t,"{"),e.assign(r,(0,He._)`{}`),Vg(t,"}",()=>J0e(t,n.values))}function Vg(t,e,n){dD(t,e,n),_i(t,e)}function dD(t,e,n){let{gen:r}=t;r.for((0,He._)`;${Nt.default.jsonPos}<${Nt.default.jsonLen} && ${g8(1)}!==${e};`,()=>{n(),V1(t,",",()=>r.break(),l)});function l(){V1(t,e,()=>{},cu)}}function J0e(t,e){let{gen:n}=t,r=n.let("key");Sa({...t,data:r}),_i(t,":"),mD(t,r,e)}function Q0e(t){let{gen:e,data:n,schema:r}=t,{discriminator:l,mapping:i}=r;_i(t,"{"),e.assign(n,(0,He._)`{}`);let s=e.const("pos",Nt.default.jsonPos),a=e.let("value"),o=e.let("tag");dD(t,"}",()=>{let c=e.let("key");Sa({...t,data:c}),_i(t,":"),e.if((0,He._)`${c} === ${l}`,()=>{Sa({...t,data:o}),e.assign((0,He._)`${n}[${c}]`,o),e.break()},()=>zg({...t,data:a}))}),e.assign(Nt.default.jsonPos,s),e.if((0,He._)`${o} === undefined`),m3(t,(0,He.str)`discriminator tag not found`);for(let c in i)e.elseIf((0,He._)`${o} === ${c}`),hD({...t,schema:i[c]},l);e.else(),m3(t,(0,He.str)`discriminator value not in schema`),e.endIf()}function aD(t){let{gen:e,data:n}=t;_i(t,"{"),e.assign(n,(0,He._)`{}`),hD(t)}function hD(t,e){let{gen:n,schema:r,data:l}=t,{properties:i,optionalProperties:s,additionalProperties:a}=r;if(Vg(t,"}",()=>{let o=n.let("key");if(Sa({...t,data:o}),_i(t,":"),n.if(!1),oD(t,o,i),oD(t,o,s),e){n.elseIf((0,He._)`${o} === ${e}`);let c=n.let("tag");Sa({...t,data:c})}n.else(),a?zg({...t,data:(0,He._)`${l}[${o}]`}):m3(t,(0,He.str)`property ${o} not allowed`),n.endIf()}),i){let o=(0,B0e.hasPropFunc)(n),c=(0,He.and)(...Object.keys(i).map(f=>(0,He._)`${o}.call(${l}, ${f})`));n.if((0,He.not)(c),()=>m3(t,(0,He.str)`missing required properties`))}}function oD(t,e,n={}){let{gen:r}=t;for(let l in n)r.elseIf((0,He._)`${e} === ${l}`),mD(t,e,n[l])}function mD(t,e,n){m8({...t,schema:n,data:(0,He._)`${t.data}[${e}]`})}function Z0e(t){let{gen:e,schema:n,data:r,self:l}=t;switch(n.type){case"boolean":X0e(t);break;case"string":Sa(t);break;case"timestamp":{Sa(t);let i=(0,fD.useFunc)(e,V0e.default),{allowDate:s,parseDate:a}=l.opts,o=s?(0,He._)`!${i}(${r}, true)`:(0,He._)`!${i}(${r})`,c=a? Line truncated
`).slice(0,2).map(e=>e.trim()).join(" -- ")}function LD(t){return t[Symbol.for("fastify.display-name")]}function FD(t){return!!t[Symbol.for("skip-override")]}function MD(t){let e=X1(t);if(!e)return;let n=e.dependencies;n&&(iy(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{iy(this[sy].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function $D(t){let e=X1(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&ly(this,"Fastify",n.fastify,r),n.reply&&ly(this,"Reply",n.reply,r),n.request&&ly(this,"Request",n.request,r))}var k5e={Fastify:w5e,Request:R5e,Reply:A5e};function ly(t,e,n,r){iy(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(l=>{let i=typeof r=="string"?` required by '${r}'`:"";if(!k5e[e].call(t,l))throw new N5e(l,i,e)})}function P5e(t){let e=X1(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&ry.gt(this.version,ry.coerce(n))===!0)&&n&&ry.satisfies(this.version,n,{includePrerelease:r})===!1)throw new O5e(e.name,n,this.version)}function D5e(t){let e=X1(t);if(!e)return;let n=e.name;if(n)return this[sy].push(n),n}function L5e(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&I5e(e||"anonymous")}function F5e(t){let e=D5e.call(this,t)||DD(t);return L5e.call(this,t,e),P5e.call(this,t),$D.call(this,t),MD.call(this,t),FD(t)}ay.exports={getPluginName:DD,getFuncPreview:C5e,kRegisteredPlugins:sy,getDisplayName:LD,registerPlugin:F5e};ay.exports[x5e]={shouldSkipOverride:FD,getMeta:X1,checkDecorators:$D,checkDependencies:MD}});var _8=k((GTe,jD)=>{"use strict";function M5e(t,e){let n=e||j5e();return t?U5e(t,n):n}function $5e(t,e){return t.genReqId(e)}function j5e(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function U5e(t,e){return function(n){return n.headers[t]||e(n)}}jD.exports={getGenReqId:$5e,reqIdGenFactory:M5e}});var HD=k((XTe,qD)=>{"use strict";var UD=12,B5e=0,uy=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function q5e(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",l=0,i=0,s=e,a=UD;e>-1&&e<n;){var o=BD(t[e+1],4),c=BD(t[e+2],0),f=o|c,p=uy[f];if(a=uy[256+a+p],i=i<<6|f&uy[364+p],a===UD)r+=t.slice(l,s),r+=i<=65535?String.fromCharCode(i):String.fromCharCode(55232+(i>>10),56320+(i&1023)),i=0,l=e+3,e=s=t.indexOf("%",l);else{if(a===B5e)return null;if(e+=3,e<n&&t.charCodeAt(e)===37)continue;return null}}return r+t.slice(l)}var H5e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function BD(t,e){var n=H5e[t];return n===void 0?255:n<<e}qD.exports=q5e});var KD=k((KTe,XD)=>{"use strict";var VD=HD(),zD=/\+/g,GD=function(){};GD.prototype=Object.create(null);function V5e(t){let e=new GD;if(typeof t!="string")return e;let n=t.length,r="",l="",i=-1,s=-1,a=!1,o=!1,c=!1,f=!1,p=!1,m=0;for(let h=0;h<n+1;h++)if(m=h!==n?t.charCodeAt(h):38,m===38){if(p=s>i,p||(s=h),r=t.slice(i+1,s),p||r.length>0){c&&(r=r.replace(zD," ")),a&&(r=VD(r)||r),p&&(l=t.slice(s+1,h),f&&(l=l.replace(zD," ")),o&&(l=VD(l)||l));let g=e[r];g===void 0?e[r]=l:g.pop?g.push(l):e[r]=[g,l]}l="",i=h,s=h,a=!1,o=!1,c=!1,f=!1}else m===61?s<=i?s=h:o=!0:m===43?s>i?f=!0:c=!0:m===37&&(s>i?o=!0:a=!0);return e}XD.exports=V5e});var WD=k((YTe,YD)=>{var vi=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),z5e=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function G5e(t){let e=t.length;if(e===0)return"";let n="",r=0,l=0;e:for(;l<e;l++){let i=t.charCodeAt(l);for(;i<128;){if(z5e[i]!==1&&(r<l&&(n+=t.slice(r,l)),r=l+1,n+=vi[i]),++l===e)break e;i=t.charCodeAt(l)}if(r<l&&(n+=t.slice(r,l)),i<2048){r=l+1,n+=vi[192|i>>6]+vi[128|i&63];continue}if(i<55296||i>=57344){r=l+1,n+=vi[224|i>>12]+vi[128|i>>6&63]+vi[128|i&63];continue}if(++l,l>=e)throw new Error("URI malformed");let s=t.charCodeAt(l)&1023;r=l+1,i=65536+((i&1023)<<10|s),n+=vi[240|i>>18]+vi[128|i>>12&63]+vi[128|i>>6&63]+vi[128|i&63]}return r===0?t:r<e?n+t.slice(r):n}YD.exports={encodeString:G5e}});var ZD=k((WTe,QD)=>{"use Line truncated
`).join(`
@@ -367,9 +367,9 @@ else {`),this._emit("cb()")),this._emitLine("}")},r.compileIfAsync=function(l,i)
`))},t.random=function(h){return h[Math.floor(Math.random()*h.length)]},t.reject=i(!1),t.rejectattr=function(h,g){return h.filter(function(v){return!v[g]})},t.select=i(!0),t.selectattr=function(h,g){return h.filter(function(v){return!!v[g]})},t.replace=function(h,g,v,S){var T=h;if(g instanceof RegExp)return h.replace(g,v);S===void 0&&(S=-1);var x="";if(typeof g=="number")g=""+g;else if(typeof g!="string")return h;if(typeof(h=typeof h=="number"?""+h:h)!="string"&&!(h instanceof it.SafeString))return h;if(g==="")return x=v+h.split("").join(v)+v,it.copySafeness(h,x);var _=h.indexOf(g);if(S===0||_===-1)return h;for(var b=0,A=0;-1<_&&(S===-1||A<S);)x+=h.substring(b,_)+v,b=_+g.length,A++,_=h.indexOf(g,b);return b<h.length&&(x+=h.substring(b)),it.copySafeness(T,x)},t.reverse=function(h){var g;return(g=Ce.isString(h)?l(h):Ce.map(h,function(v){return v})).reverse(),Ce.isString(h)?it.copySafeness(h,g.join("")):g},t.round=function(h,g,v){return g=g||0,g=Math.pow(10,g),(v==="ceil"?Math.ceil:v==="floor"?Math.floor:Math.round)(h*g)/g},t.slice=function(h,g,v){for(var S=Math.floor(h.length/g),T=h.length%g,x=[],_=0,b=0;b<g;b++){var A=_+b*S;b<T&&_++,A=h.slice(A,_+(b+1)*S),v&&T<=b&&A.push(v),x.push(A)}return x},t.sum=function(h,g,v){return(v=v===void 0?0:v)+(h=g?Ce.map(h,function(S){return S[g]}):h).reduce(function(S,T){return S+T},0)},t.sort=it.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(x,g,v,S){var T=this,x=Ce.map(x,function(b){return b}),_=Ce.getAttrGetter(S);return x.sort(function(b,A){if(b=S?_(b):b,A=S?_(A):A,T.env.opts.throwOnUndefined&&S&&(b===void 0||A===void 0))throw new TypeError('sort: attribute "'+S+'" resolved to undefined');return!v&&Ce.isString(b)&&Ce.isString(A)&&(b=b.toLowerCase(),A=A.toLowerCase()),b<A?g?1:-1:A<b?g?-1:1:0}),x}),t.string=function(h){return it.copySafeness(h,h)},t.striptags=function(h,S){var v=s((h=e(h,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),S=S?v.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,`
`).replace(/\n\n\n+/g,`
`):v.replace(/\s+/gi," ");return it.copySafeness(h,S)},t.title=function(h){var g=(h=e(h,"")).split(" ").map(r);return it.copySafeness(h,g.join(" "))},t.trim=s,t.truncate=function(h,g,v,S){var T=h;return(h=e(h,"")).length<=(g=g||255)?h:(h=v?h.substring(0,g):((v=h.lastIndexOf(" ",g))===-1&&(v=g),h.substring(0,v)),it.copySafeness(T,h+=S??"..."))},t.upper=function(h){return(h=e(h,"")).toUpperCase()},t.urlencode=function(h){var g=encodeURIComponent;return Ce.isString(h)?g(h):(Ce.isArray(h)?h:Ce._entries(h)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var a=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,o=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,c=/^https?:\/\/.*$/,f=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(h,g,v){n(g)&&(g=1/0);var S=v===!0?' rel="nofollow"':"";return h.split(/(\s+)/).filter(function(T){return T&&T.length}).map(function(T){var x=T.match(a),_=(x=x?x[1]:T).substr(0,g);return c.test(x)?'<a href="'+x+'"'+S+">"+_+"</a>":f.test(x)?'<a href="http://'+x+'"'+S+">"+_+"</a>":o.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+_+"</a>":T}).join("")},t.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},t.float=function(h,g){return n(h=parseFloat(h))?g:h},it.makeMacro(["value","default","base"],[],function(h,g,v){return v===void 0&&(v=10),n(h=parseInt(h,v))?g:h}));t.int=m,t.d=t.default,t.e=t.escape}),v9={};function wU(t,e){for(var n=0,r=t.length-1;0<=r;r--){var l=t[r];l==="."?t.splice(r,1):l===".."?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;)t.unshift("..");return t}var Ape=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d_=function(t){return Ape.exec(t).slice(1)};function h_(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var r=0<=n?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+wU(pv(t.split("/"),function(l){return!!l}),!e).join("/")||"."}function T$(t){var e=AU(t),n=Rpe(t,-1)==="/";return(t=(t=wU(pv(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}function AU(t){return t.charAt(0)==="/"}var Mu={extname:function(t){return d_(t)[3]},basename:function(t,e){return t=d_(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){var e=(n=d_(n))[0],n=n[1];return e||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(c){for(var f=0;f<c.length&&c[f]==="";f++);for(var p=c.length-1;0<=p&&c[p]==="";p--);return p<f?[]:c.slice(f,p-f+1)}t=h_(t).substr(1),e=h_(e).substr(1);for(var r=n(t.split("/")),l=n(e.split("/")),i=Math.min(r.length,l.length),s=i,a=0;a<i;a++)if(r[a]!==l[a]){s=a;break}for(var o=[],a=s;a<r.length;a++)o.push("..");return(o=o.concat(l.slice(s))).join("/")},join:function(){return T$(pv(Array.prototype.slice.call(arguments,0),function(t,e){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:AU,normalize:T$,resolve:h_};function pv(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var Rpe="ab".substr(-1)==="b"?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)};function RU(t,e){return(RU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var dv=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),RU(r.prototype.constructor=r,e);var r=n.prototype;return r.resolve=function(l,i){return Mu.resolve(Mu.dirname(l),i)},r.isRelative=function(l){return l.indexOf("./")===0||l.indexOf("../")===0},n}(qu.EmitterObj);function OU(t,e){return(OU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Ope=function(t){var e,n;function r(l){var i;return(i=t.call(this)||this).precompiled=l||{},i}return n=t,(e=r).prototype=Object.create(n.prototype),OU(e.prototype.constructor=e,n),r.prototype.getSource=function(l){return this.precompiled[l]?{src:{type:"code",obj:this.precompiled[l]},path:l}:null},r}(dv);function NU(t,e){t.prototype=Object.create(e.prototype),IU(t.prototype.constructor=t,e)}function IU(t,e){return(IU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Npe=Ope,Ipe=function(t){function e(n,r){var l=t.call(this)||this;return typeof r=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),r=r||{},l.pathsToNames={},l.noCache=!!r.noCache,n?(n=Array.isArray(n)?n:[n],l.searchPaths=n.map(Mu.normalize)):l.searchPaths=["."],r.watch,l}return NU(e,t),e.prototype.getSource=function(n){for(var r=null,l=this.searchPaths,i=0;i<l.length;i++){var s=Mu.resoLine truncated
`):v.replace(/\s+/gi," ");return it.copySafeness(h,S)},t.title=function(h){var g=(h=e(h,"")).split(" ").map(r);return it.copySafeness(h,g.join(" "))},t.trim=s,t.truncate=function(h,g,v,S){var T=h;return(h=e(h,"")).length<=(g=g||255)?h:(h=v?h.substring(0,g):((v=h.lastIndexOf(" ",g))===-1&&(v=g),h.substring(0,v)),it.copySafeness(T,h+=S??"..."))},t.upper=function(h){return(h=e(h,"")).toUpperCase()},t.urlencode=function(h){var g=encodeURIComponent;return Ce.isString(h)?g(h):(Ce.isArray(h)?h:Ce._entries(h)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var a=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,o=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,c=/^https?:\/\/.*$/,f=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(h,g,v){n(g)&&(g=1/0);var S=v===!0?' rel="nofollow"':"";return h.split(/(\s+)/).filter(function(T){return T&&T.length}).map(function(T){var x=T.match(a),_=(x=x?x[1]:T).substr(0,g);return c.test(x)?'<a href="'+x+'"'+S+">"+_+"</a>":f.test(x)?'<a href="http://'+x+'"'+S+">"+_+"</a>":o.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+_+"</a>":T}).join("")},t.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},t.float=function(h,g){return n(h=parseFloat(h))?g:h},it.makeMacro(["value","default","base"],[],function(h,g,v){return v===void 0&&(v=10),n(h=parseInt(h,v))?g:h}));t.int=m,t.d=t.default,t.e=t.escape}),v9={};function wU(t,e){for(var n=0,r=t.length-1;0<=r;r--){var l=t[r];l==="."?t.splice(r,1):l===".."?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;)t.unshift("..");return t}var Ape=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d_=function(t){return Ape.exec(t).slice(1)};function h_(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var r=0<=n?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+wU(pv(t.split("/"),function(l){return!!l}),!e).join("/")||"."}function T$(t){var e=AU(t),n=Rpe(t,-1)==="/";return(t=(t=wU(pv(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}function AU(t){return t.charAt(0)==="/"}var Mu={extname:function(t){return d_(t)[3]},basename:function(t,e){return t=d_(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){var e=(n=d_(n))[0],n=n[1];return e||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(c){for(var f=0;f<c.length&&c[f]==="";f++);for(var p=c.length-1;0<=p&&c[p]==="";p--);return p<f?[]:c.slice(f,p-f+1)}t=h_(t).substr(1),e=h_(e).substr(1);for(var r=n(t.split("/")),l=n(e.split("/")),i=Math.min(r.length,l.length),s=i,a=0;a<i;a++)if(r[a]!==l[a]){s=a;break}for(var o=[],a=s;a<r.length;a++)o.push("..");return(o=o.concat(l.slice(s))).join("/")},join:function(){return T$(pv(Array.prototype.slice.call(arguments,0),function(t,e){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:AU,normalize:T$,resolve:h_};function pv(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var Rpe="ab".substr(-1)==="b"?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)};function RU(t,e){return(RU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var dv=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),RU(r.prototype.constructor=r,e);var r=n.prototype;return r.resolve=function(l,i){return Mu.resolve(Mu.dirname(l),i)},r.isRelative=function(l){return l.indexOf("./")===0||l.indexOf("../")===0},n}(qu.EmitterObj);function OU(t,e){return(OU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Ope=function(t){var e,n;function r(l){var i;return(i=t.call(this)||this).precompiled=l||{},i}return n=t,(e=r).prototype=Object.create(n.prototype),OU(e.prototype.constructor=e,n),r.prototype.getSource=function(l){return this.precompiled[l]?{src:{type:"code",obj:this.precompiled[l]},path:l}:null},r}(dv);function NU(t,e){t.prototype=Object.create(e.prototype),IU(t.prototype.constructor=t,e)}function IU(t,e){return(IU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Npe=Ope,Ipe=function(t){function e(n,r){var l=t.call(this)||this;return typeof r=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),r=r||{},l.pathsToNames={},l.noCache=!!r.noCache,n?(n=Array.isArray(n)?n:[n],l.searchPaths=n.map(Mu.normalize)):l.searchPaths=["."],r.watch,l}return NU(e,t),e.prototype.getSource=function(n){for(var r=null,l=this.searchPaths,i=0;i<l.length;i++){var s=Mu.resoLine truncated
/* [wrapped with `+D+`] */
`)):R}(w,function(R,D){return mr(m,function(U){var H="_."+U[0];D&U[1]&&!A2(R,H)&&R.push(H)}),R.sort()}(function(){var R=w.match(Rl);return R?R[1].split(kn):[]}(),y)))}function GT(u){var d=0,y=0;return function(){var w=qG(),R=16-(w-y);if(y=w,0<R){if(800<=++d)return arguments[0]}else d=0;return u.apply(n,arguments)}}function Z5(u,d){var y=-1,w=u.length,R=w-1;for(d=d===n?w:d;++y<d;){var D=sf(y,R),U=u[D];u[D]=u[y],u[y]=U}return u.length=d,u}var XT=function(){var u=rc(function(y){var w=[];return y.charCodeAt(0)===46&&w.push(""),y.replace(nt,function(R,D,U,H){w.push(U?H.replace(Ur,"$1"):D||R)}),w},function(y){return d.size===500&&d.clear(),y}),d=u.cache;return u}();function ai(u){var d;return typeof u=="string"||Kl(u)?u:(d=u+"")=="0"&&1/u==-1/0?"-0":d}function Ws(u){if(u!=null){try{return I5.call(u)}catch{}try{return u+""}catch{}}return""}function KT(u){var d;return u instanceof Pt?u.clone():((d=new O2(u.__wrapped__,u.__chain__)).__actions__=Ol(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d)}function YT(u,d,y){var w=u==null?0:u.length;return w?((y=y==null?0:mt(y))<0&&(y=yr(w+y,0)),ti(u,Ze(d,3),y)):-1}function WT(u,d,y){var w,R=u==null?0:u.length;return R?(w=R-1,y!==n&&(w=mt(y),w=y<0?yr(R+w,0):Zr(w,R-1)),ti(u,Ze(d,3),w,!0)):-1}function JT(u){return u!=null&&u.length?qr(u,1):[]}function QT(u){return u&&u.length?u[0]:n}function o2(u){var d=u==null?0:u.length;return d?u[d-1]:n}function ZT(u,d){return u&&u.length&&d&&d.length?lf(u,d):u}X7=vt(function(u,d){return Zn(u)?A4(u,qr(d,1,Zn,!0)):[]}),li=vt(function(u,d){var y=o2(d);return Zn(y)&&(y=n),Zn(u)?A4(u,qr(d,1,Zn,!0),Ze(y,2)):[]}),T4=vt(function(u,d){var y=o2(d);return Zn(y)&&(y=n),Zn(u)?A4(u,qr(d,1,Zn,!0),n,y):[]}),Mt=vt(function(u){var d=Kt(u,ff);return d.length&&d[0]===u[0]?ef(d):[]}),oo=vt(function(u){var d=o2(u),y=Kt(u,ff);return d===o2(y)?d=n:y.pop(),y.length&&y[0]===u[0]?ef(y,Ze(d,2)):[]}),K7=vt(function(u){var d=o2(u),y=Kt(u,ff);return(d=typeof d=="function"?d:n)&&y.pop(),y.length&&y[0]===u[0]?ef(y,n,d):[]}),el=vt(ZT);var rX=Xi(function(u,d){var y=u==null?0:u.length,w=W7(u,d);return pT(u,Kt(d,function(R){return Ki(R,y)?+R:R}).sort(TT)),w});function wf(u){return u==null?u:VG.call(u)}var lX=vt(function(u){return R3(qr(u,1,Zn,!0))}),iX=vt(function(u){var d=o2(u);return Zn(d)&&(d=n),R3(qr(u,1,Zn,!0),Ze(d,2))}),sX=vt(function(u){var d=typeof(d=o2(u))=="function"?d:n;return R3(qr(u,1,Zn,!0),n,d)});function Af(u){var d;return u&&u.length?(d=0,u=Rr(u,function(y){if(Zn(y))return d=yr(y.length,d),!0}),x5(d,function(y){return Kt(u,ni(y))})):[]}function eS(u,d){return u&&u.length?(u=Af(u),d==null?u:Kt(u,function(y){return Ar(d,n,y)})):[]}var aX=vt(function(u,d){return Zn(u)?A4(u,d):[]}),oX=vt(function(u){return cf(Rr(u,Zn))}),uX=vt(function(u){var d=o2(u);return Zn(d)&&(d=n),cf(Rr(u,Zn),Ze(d,2))}),cX=vt(function(u){var d=typeof(d=o2(u))=="function"?d:n;return cf(Rr(u,Zn),n,d)}),fX=vt(Af),pX=vt(function(u){var d=typeof(d=1<(d=u.length)?u[d-1]:n)=="function"?(u.pop(),d):n;return eS(u,d)});function tS(u){return(u=I(u)).__chain__=!0,u}function ec(u,d){return d(u)}var dX=Xi(function(u){function d(D){return W7(D,u)}var y=u.length,w=y?u[0]:0,R=this.__wrapped__;return!(1<y||this.__actions__.length)&&R instanceof Pt&&Ki(w)?((R=R.slice(w,+w+(y?1:0))).__actions__.push({func:ec,args:[d],thisArg:n}),new O2(R,this.__chain__).thru(function(D){return y&&!D.length&&D.push(n),D})):this.thru(d)}),hX=G5(function(u,d,y){tn.call(u,y)?++u[y]:zi(u,y,1)}),mX=OT(YT),gX=OT(WT);function nS(u,d){return(dt(u)?mr:A3)(u,Ze(d,3))}function rS(u,d){return(dt(u)?function(y,w){for(var R=y==null?0:y.length;R--&&w(y[R],R,y)!==!1;);return y}:Zb)(u,Ze(d,3))}var yX=G5(function(u,d,y){tn.call(u,y)?u[y].push(d):zi(u,y,[d])}),_X=vt(function(u,d,y){var w=-1,R=typeof d=="function",D=Nl(u)?ce(u.length):[];return A3(u,function(U){D[++w]=R?Ar(d,U,y):R4(U,d,y)}),D}),vX=G5(function(u,d,y){zi(u,y,d)});function tc(u,d){return(dt(u)?Kt:sT)(u,Ze(d,3))}var EX=G5(function(u,d,y){u[y?0:1].push(d)},function(){return[[],[]]}),bX=vt(function(u,d){var y;return u==null?[]:(1<(y=d.length)&&yl(u,d[0],d[1])?d=[]:2<y&&yl(d[0],d[1],d[2])&&(d=[d[0]]),cT(u,qr(d,1),[]))}),nc=Of||function(){return Rn.Date.now()};function lS(u,d,y){return d=y?n:d,d=u&&d==null?u.length:d,Gi(u,a,n,n,n,n,d)}function iS(u,d){var y;if(typeof d!="function")throw new i2(r);return u=mt(u),function(){return 0<--u&&(y=d.apply(this,arguments)),u<=1&&(d=n),y}}var Rf=vt(function(u,d,y){var w,R=1;return y.length&&(w=qi(y,mo(Rf)),R|=s),Gi(u,R,d,y,w)}),sS=vt(function(u,d,y){var w,R=3;return y.length&&(w=qi(y,mo(sS)),R|=s),Gi(d,R,u,y,w)});function aS(u,d,y){var w,R,D,U,H,K,ae=0,oe=!1,Te=!1,_e=!0;if(typeof u!="function")throw new i2(r);function me(Ue){var Ye=w,tt=R;return w=R=n,ae=Ue,U=u.apply(tt,Ye)}function be(Ue){var Ye=Ue-K;return K===n||d<=Ye||Ye<0||Te&&D<=Ue-ae}function Ge(){var Ue=nc();if(be(Ue))return Ae(Ue);H=k4(Ge,function(Ye){var tt=d-(Ye-K);return Te?Zr(tt,D-(Ye-ae)):tt}(Ue))}function Ae(Ue){return H=n,_e&&w?me(Ue):(w=R=n,U)}function Oe(){var Ue Line truncated
`)):R}(w,function(R,D){return mr(m,function(U){var H="_."+U[0];D&U[1]&&!A2(R,H)&&R.push(H)}),R.sort()}(function(){var R=w.match(Rl);return R?R[1].split(kn):[]}(),y)))}function GT(u){var d=0,y=0;return function(){var w=qG(),R=16-(w-y);if(y=w,0<R){if(800<=++d)return arguments[0]}else d=0;return u.apply(n,arguments)}}function Z5(u,d){var y=-1,w=u.length,R=w-1;for(d=d===n?w:d;++y<d;){var D=sf(y,R),U=u[D];u[D]=u[y],u[y]=U}return u.length=d,u}var XT=function(){var u=rc(function(y){var w=[];return y.charCodeAt(0)===46&&w.push(""),y.replace(nt,function(R,D,U,H){w.push(U?H.replace(Ur,"$1"):D||R)}),w},function(y){return d.size===500&&d.clear(),y}),d=u.cache;return u}();function ai(u){var d;return typeof u=="string"||Kl(u)?u:(d=u+"")=="0"&&1/u==-1/0?"-0":d}function Ws(u){if(u!=null){try{return I5.call(u)}catch{}try{return u+""}catch{}}return""}function KT(u){var d;return u instanceof Pt?u.clone():((d=new O2(u.__wrapped__,u.__chain__)).__actions__=Ol(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d)}function YT(u,d,y){var w=u==null?0:u.length;return w?((y=y==null?0:mt(y))<0&&(y=yr(w+y,0)),ti(u,Ze(d,3),y)):-1}function WT(u,d,y){var w,R=u==null?0:u.length;return R?(w=R-1,y!==n&&(w=mt(y),w=y<0?yr(R+w,0):Zr(w,R-1)),ti(u,Ze(d,3),w,!0)):-1}function JT(u){return u!=null&&u.length?qr(u,1):[]}function QT(u){return u&&u.length?u[0]:n}function o2(u){var d=u==null?0:u.length;return d?u[d-1]:n}function ZT(u,d){return u&&u.length&&d&&d.length?lf(u,d):u}X7=vt(function(u,d){return Zn(u)?A4(u,qr(d,1,Zn,!0)):[]}),li=vt(function(u,d){var y=o2(d);return Zn(y)&&(y=n),Zn(u)?A4(u,qr(d,1,Zn,!0),Ze(y,2)):[]}),T4=vt(function(u,d){var y=o2(d);return Zn(y)&&(y=n),Zn(u)?A4(u,qr(d,1,Zn,!0),n,y):[]}),Mt=vt(function(u){var d=Kt(u,ff);return d.length&&d[0]===u[0]?ef(d):[]}),oo=vt(function(u){var d=o2(u),y=Kt(u,ff);return d===o2(y)?d=n:y.pop(),y.length&&y[0]===u[0]?ef(y,Ze(d,2)):[]}),K7=vt(function(u){var d=o2(u),y=Kt(u,ff);return(d=typeof d=="function"?d:n)&&y.pop(),y.length&&y[0]===u[0]?ef(y,n,d):[]}),el=vt(ZT);var rX=Xi(function(u,d){var y=u==null?0:u.length,w=W7(u,d);return pT(u,Kt(d,function(R){return Ki(R,y)?+R:R}).sort(TT)),w});function wf(u){return u==null?u:VG.call(u)}var lX=vt(function(u){return R3(qr(u,1,Zn,!0))}),iX=vt(function(u){var d=o2(u);return Zn(d)&&(d=n),R3(qr(u,1,Zn,!0),Ze(d,2))}),sX=vt(function(u){var d=typeof(d=o2(u))=="function"?d:n;return R3(qr(u,1,Zn,!0),n,d)});function Af(u){var d;return u&&u.length?(d=0,u=Rr(u,function(y){if(Zn(y))return d=yr(y.length,d),!0}),x5(d,function(y){return Kt(u,ni(y))})):[]}function eS(u,d){return u&&u.length?(u=Af(u),d==null?u:Kt(u,function(y){return Ar(d,n,y)})):[]}var aX=vt(function(u,d){return Zn(u)?A4(u,d):[]}),oX=vt(function(u){return cf(Rr(u,Zn))}),uX=vt(function(u){var d=o2(u);return Zn(d)&&(d=n),cf(Rr(u,Zn),Ze(d,2))}),cX=vt(function(u){var d=typeof(d=o2(u))=="function"?d:n;return cf(Rr(u,Zn),n,d)}),fX=vt(Af),pX=vt(function(u){var d=typeof(d=1<(d=u.length)?u[d-1]:n)=="function"?(u.pop(),d):n;return eS(u,d)});function tS(u){return(u=I(u)).__chain__=!0,u}function ec(u,d){return d(u)}var dX=Xi(function(u){function d(D){return W7(D,u)}var y=u.length,w=y?u[0]:0,R=this.__wrapped__;return!(1<y||this.__actions__.length)&&R instanceof Pt&&Ki(w)?((R=R.slice(w,+w+(y?1:0))).__actions__.push({func:ec,args:[d],thisArg:n}),new O2(R,this.__chain__).thru(function(D){return y&&!D.length&&D.push(n),D})):this.thru(d)}),hX=G5(function(u,d,y){tn.call(u,y)?++u[y]:zi(u,y,1)}),mX=OT(YT),gX=OT(WT);function nS(u,d){return(dt(u)?mr:A3)(u,Ze(d,3))}function rS(u,d){return(dt(u)?function(y,w){for(var R=y==null?0:y.length;R--&&w(y[R],R,y)!==!1;);return y}:Zb)(u,Ze(d,3))}var yX=G5(function(u,d,y){tn.call(u,y)?u[y].push(d):zi(u,y,[d])}),_X=vt(function(u,d,y){var w=-1,R=typeof d=="function",D=Nl(u)?ce(u.length):[];return A3(u,function(U){D[++w]=R?Ar(d,U,y):R4(U,d,y)}),D}),vX=G5(function(u,d,y){zi(u,y,d)});function tc(u,d){return(dt(u)?Kt:sT)(u,Ze(d,3))}var EX=G5(function(u,d,y){u[y?0:1].push(d)},function(){return[[],[]]}),bX=vt(function(u,d){var y;return u==null?[]:(1<(y=d.length)&&yl(u,d[0],d[1])?d=[]:2<y&&yl(d[0],d[1],d[2])&&(d=[d[0]]),cT(u,qr(d,1),[]))}),nc=Of||function(){return Rn.Date.now()};function lS(u,d,y){return d=y?n:d,d=u&&d==null?u.length:d,Gi(u,a,n,n,n,n,d)}function iS(u,d){var y;if(typeof d!="function")throw new i2(r);return u=mt(u),function(){return 0<--u&&(y=d.apply(this,arguments)),u<=1&&(d=n),y}}var Rf=vt(function(u,d,y){var w,R=1;return y.length&&(w=qi(y,mo(Rf)),R|=s),Gi(u,R,d,y,w)}),sS=vt(function(u,d,y){var w,R=3;return y.length&&(w=qi(y,mo(sS)),R|=s),Gi(d,R,u,y,w)});function aS(u,d,y){var w,R,D,U,H,K,ae=0,oe=!1,Te=!1,_e=!0;if(typeof u!="function")throw new i2(r);function me(Ue){var Ye=w,tt=R;return w=R=n,ae=Ue,U=u.apply(tt,Ye)}function be(Ue){var Ye=Ue-K;return K===n||d<=Ye||Ye<0||Te&&D<=Ue-ae}function Ge(){var Ue=nc();if(be(Ue))return Ae(Ue);H=k4(Ge,function(Ye){var tt=d-(Ye-K);return Te?Zr(tt,D-(Ye-ae)):tt}(Ue))}function Ae(Ue){return H=n,_e&&w?me(Ue):(w=R=n,U)}function Oe(){var Ue Line truncated
`;if(u.replace(oe,function(_e,me,be,Ge,Ae,Oe){return be=be||Ge,ae+=u.slice(H,Oe).replace(or,Mb),me&&(w=!0,ae+=`' +
__e(`+me+`) +
'`),Ae&&(R=!0,ae+=`';
@@ -388,22 +388,22 @@ function print() { __p += __j.call(arguments, '') }
`)+ae+`return __p
}`,(oe=xS(function(){return pt(D,Te+"return "+ae).apply(n,U)})).source=ae,Cf(oe))throw oe;return oe},I.times=function(u,d){if((u=mt(u))<1||c<u)return[];var y=p,w=Zr(u,p);for(d=Ze(d),u-=p,w=x5(w,d);++y<u;)d(y);return w},I.toFinite=Wi,I.toInteger=mt,I.toLength=hS,I.toLower=function(u){return Zt(u).toLowerCase()},I.toNumber=c2,I.toSafeInteger=function(u){return u?Xs(mt(u),-9007199254740991,c):u===0?u:0},I.toString=Zt,I.toUpper=function(u){return Zt(u).toUpperCase()},I.trim=function(u,d,y){return(u=Zt(u))&&(y||d===n)?Bi(u):u&&(d=Xl(d))?N3(y=R2(u),w5(y,d=R2(d)),A5(y,d)+1).join(""):u},I.trimEnd=function(u,d,y){return(u=Zt(u))&&(y||d===n)?u.slice(0,$b(u)+1):u&&(d=Xl(d))?N3(y=R2(u),0,A5(y,R2(d))+1).join(""):u},I.trimStart=function(u,d,y){return(u=Zt(u))&&(y||d===n)?u.replace(qn,""):u&&(d=Xl(d))?N3(y=R2(u),w5(y,R2(d))).join(""):u},I.truncate=function(u,R){var y,U=30,w="...",R=(Mn(R)&&(y="separator"in R?R.separator:y,U="length"in R?mt(R.length):U,w="omission"in R?Xl(R.omission):w),(u=Zt(u)).length);if((R=Bs(u)?(D=R2(u)).length:R)<=U)return u;if((R=U-io(w))<1)return w;var D,U=D?N3(D,0,R).join(""):u.slice(0,R);if(y!==n)if(D&&(R+=U.length-R),kf(y)){if(u.slice(R).search(y)){var H,K=U;for((y=y.global?y:Hs(y.source,Zt(t2.exec(y))+"g")).lastIndex=0;H=y.exec(K);)var ae=H.index;U=U.slice(0,ae===n?R:ae)}}else u.indexOf(Xl(y),R)!=R&&-1<(D=U.lastIndexOf(y))&&(U=U.slice(0,D));return U+w},I.unescape=function(u){return(u=Zt(u))&&sn.test(u)?u.replace(Xe,DG):u},I.uniqueId=function(u){var d=++FG;return Zt(u)+d},I.upperCase=GX,I.upperFirst=Lf,I.each=nS,I.eachRight=rS,I.first=QT,$f(I,(qf={},ii(I,function(u,d){tn.call(I.prototype,d)||(qf[d]=u)}),qf),{chain:!1}),I.VERSION="4.17.21",mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){I[u].placeholder=I}),mr(["drop","take"],function(u,d){Pt.prototype[u]=function(y){y=y===n?1:yr(mt(y),0);var w=this.__filtered__&&!d?new Pt(this):this.clone();return w.__filtered__?w.__takeCount__=Zr(y,w.__takeCount__):w.__views__.push({size:Zr(y,p),type:u+(w.__dir__<0?"Right":"")}),w},Pt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),mr(["filter","map","takeWhile"],function(u,d){var y=d+1,w=y==1||y==3;Pt.prototype[u]=function(R){var D=this.clone();return D.__iteratees__.push({iteratee:Ze(R,3),type:y}),D.__filtered__=D.__filtered__||w,D}}),mr(["head","last"],function(u,d){var y="take"+(d?"Right":"");Pt.prototype[u]=function(){return this[y](1).value()[0]}}),mr(["initial","tail"],function(u,d){var y="drop"+(d?"":"Right");Pt.prototype[u]=function(){return this.__filtered__?new Pt(this):this[y](1)}}),Pt.prototype.compact=function(){return this.filter(Cl)},Pt.prototype.find=function(u){return this.filter(u).head()},Pt.prototype.findLast=function(u){return this.reverse().find(u)},Pt.prototype.invokeMap=vt(function(u,d){return typeof u=="function"?new Pt(this):this.map(function(y){return R4(y,u,d)})}),Pt.prototype.reject=function(u){return this.filter(lc(Ze(u)))},Pt.prototype.slice=function(u,d){u=mt(u);var y=this;return y.__filtered__&&(0<u||d<0)?new Pt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),d!==n?(d=mt(d))<0?y.dropRight(-d):y.take(d-u):y)},Pt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Pt.prototype.toArray=function(){return this.take(p)},ii(Pt.prototype,function(u,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),w=/^(?:head|last)$/.test(d),R=I[w?"take"+(d=="last"?"Right":""):d],D=w||/^find/.test(d);R&&(I.prototype[d]=function(){function U(Ge){return Ge=R.apply(I,ei([Ge],ae)),w&&Te?Ge[0]:Ge}var H,K=this.__wrapped__,ae=w?[1]:arguments,be=K instanceof Pt,_e=ae[0],oe=be||dt(K),Te=(oe&&y&&typeof _e=="function"&&_e.length!=1&&(be=oe=!1),this.__chain__),_e=!!this.__actions__.length,me=D&&!Te,be=be&&!_e;return!D&&oe?(K=be?K:new Pt(this),(H=u.apply(K,ae)).__actions__.push({func:ec,args:[U],thisArg:n}),new O2(H,Te)):me&&be?u.apply(this,ae):(H=this.thru(U),me?w?H.value()[0]:H.value():H)})}),mr(["pop","push","shift","sort","splice","unshift"],function(u){var d=N5[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",w=/^(?:pop|shift)$/.test(u);I.prototype[u]=function(){var R,D=arguments;return w&&!this.__chain__?(R=this.value(),d.apply(dt(R)?R:[],D)):this[y](function(U){return d.apply(dt(U)?U:[],D)})}}),ii(Pt.prototype,function(u,d){var y,w=I[d];w&&(y=w.name+"",tn.call(co,y)||(co[y]=[]),co[y].push({name:d,func:w}))}),co[X5(n,2).name]=[{name:"wrapper",func:n}],Pt.prototype.clone=function(){var u=new Pt(this.__wrapped__);return u.__actions__=Ol(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Ol(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Ol(this.__views__),u},Pt.prototype.reverse=function(){var u;return this.__filtered__?((u=new Pt(this)).__dir__=-1,u.__filtered__=!0):(u=this.clone()).__dir__*=-1,u},Pt.prototype.value=function(){var u=this.__wrapped__.value(),d=this.__dir__,y=dt(u),w=d<0,R=y?u.length:0,D=function(Ue,Ye,tt){for(var Pn=-1,Xn=tt.length;++Pn<Xn;){var u Line truncated
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let c=rde(o,i);c&&s.push(c)}}else s.push(o)}return s.length!==0&&s[0].name==="EXTM3U"||De("The EXTM3U tag MUST be the first line."),s}(t,e),r=lde(n,e);return r.source=t,r}var ide=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],sde=["#EXT-X-MEDIA"],Av=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(ide.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(sde.some(r=>n.startsWith(r)))continue;De(`Redundant item (${n})`)}super.push(n)}else super.push(n);return this.length}};function Iv(t,e){let n=1e3;e&&(n=Math.pow(10,e));let r=Math.round(t*n)/n;return e?r.toFixed(e):r}function ade(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function eB(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",r=[`METHOD=${t.method}`];return t.uri&&r.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&De("IV must be a 128-bit unsigned integer"),r.push(`IV=${JU(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function ode(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",r=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&r.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&r.push(`URI="${e.uri}"`),e.codecs&&r.push(`CODECS="${e.codecs}"`),e.resolution&&r.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&r.push(`FRAME-RATE=${Iv(e.frameRate,3)}`),e.hdcpLevel&&r.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){r.push(`AUDIO="${e.audio[0].groupId}"`);for(let l of e.audio)t.push(H9(l))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let l of e.video)t.push(H9(l))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let l of e.subtitles)t.push(H9(l))}if(Kpe().allowClosedCaptionsNone&&e.closedCaptions.length===0)r.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){r.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let l of e.closedCaptions)t.push(H9(l))}if(e.score&&r.push(`SCORE=${e.score}`),e.allowedCpc){let l=[];for(let{format:i,cpcList:s}of e.allowedCpc)l.push(`${i}:${s.join("/")}`);r.push(`ALLOWED-CPC="${l.join(",")}"`)}e.videoRange&&r.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&r.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&r.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${r.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function H9(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push("DEFAULT="+(t.isDefault?"YES":"NO")),t.autoselect!==void 0&&e.push("AUTOSELECT="+(t.autoselect?"YES":"NO")),t.forced!==void 0&&e.push("FORCED="+(t.forced?"YES":"NO")),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function ude(t,e,n,r,l=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let c=eB(e.key);c!==n&&(t.push(c),n=c)}if(e.map){let c=function(f){let p=[`URI="${f.uri}"`];return f.byterange&&p.push(`BYTERANGE="${Tv(f.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);c!==r&&(t.push(c),r=c)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${bv(e.programDateTime)}`),e.dateRange&&t.push(function(c){let f=[`ID="${c.id}"`];c.start&&f.push(`START-DATE="${bv(c.start)}"`),c.end&&f.push(`END-DATE="${bv(c.end)}"`),c.duration&&f.push(`DURATION=${c.duration}`),c.plannedDuration&&f.push(`PLANNED-DURATION=${c.plannedDuration}`),c.classId&&f.push(`CLASS="${c.classId}"`),c.endOnNext&&f.push("END-ON-NEXT=YES");for(let p of Object.keys(c.attributes))p.startsWith("X-")?typeof c.attributes[p]=="number"?f.push(`${p}=${c.attributes[p]}`):f.push(`${p}="${c.attributes[p]}"`):p.startsWith("SCTE35-")&&f.push(`${p}=${JU(c.attributes[p])}`);return`#EXT-X-DATERANGE:${f.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(c,f){let p="";for(let m of f)if(m.type==="OUT")p="OUT",c.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")p="IN",c.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let h=m.value?`:${m.value}`:"";c.push(`#${m.tagName}${h}`)}return p}(t,e.markers)),e.parts.length>0&&(s=function(c,f){let p=!1;for(let m of f)if(m.hint){let h=[];if(h.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:g,length:v}=m.byterange;h.push(`BYTERANGE-START=${g}`),v&&h.push(`BYTERANGE-LENGTH=${v}`)}c.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),p=!0}else{let h=[];h.push( Line truncated
`)}var nB="hls_cache",r7=[],Ha={},J0={},qa={},n7="";function cde(t,e){if(r7.push(t),Ha[t]=e,r7.length>5){let n=r7.shift();fde(n)}}function fde(t){delete Ha[t],delete r7[t],new JSFile(nB+"/"+t).delete()}function pde(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Cv(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Cv(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Cv(t,n.key.uri));return e}async function rB(t,e){let n=md5X(t);if(Ha[n])return Ha[n];let r={},l=t;for(;r=await req(l,{headers:e,redirect:0}),r.headers.location;)l=r.headers.location;if(r.code==200){var i=r.content;let s=pde(l,ZU(i));return cde(n,{code:r.code,plist:s,key:n,headers:r.headers}),Ha[n]}return{}}async function lB(t,e,n){if(!Ha[t])return{};let l=Ha[t].plist.segments,i=!qa[t];if(i){qa[t]={};for(let f of l){let p=md5X(f.uri+f.mediaSequenceNumber.toString());qa[t][p]={file:nB+"/"+t+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in qa[t]){let p=qa[t][f];p.index>=e?p.order=p.index-e:p.order=l.length-e+p.index}i&&dde(t,5,n);let s=l[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),o=qa[t][a];if(o.state==1||o.state==-1){let f=new JSFile(o.file);if(await f.exist())return o.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:f};o.state=-1}if(o.state==-1&&iB(t,o,n),o.state==0){var c=new JSProxyStream;c.head(200,{connection:"close","content-type":"video/mp2t"});let f=0;return o.read=!0,new Promise(async function(p,m){let h=new JSFile(o.file+".dl");await h.open("r"),async function g(){let v=await h.size();if(v>f){var S=await h.read(v-f,f);await c.write(S),f=v}if(o.state==1||o.state<0){c.done(),await h.close(),await h.delete(),o.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:c}}}async function iB(t,e,n){if(e.state>=0||!J0[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let r=new JSFile(e.file+".dl");await r.open("w");let l=await req(e.uri,{buffer:3,headers:n,stream:r,timeout:[5e3,1e4]});if(l.error||l.code>=300){await r.close(),e.read||await r.delete(),e.state=-1;return}await r.close(),e.read?await r.copy(e.file):await r.move(e.file),e.state=1}async function dde(t,e,n){n7&&n7!=t&&delete J0[n7],n7=t,J0[t]=!0;for(let r=0;r<e&&J0[t];r++)new Promise(function(l,i){(async function s(){if(!J0[t]){l();return}let a=ke.pickBy(qa[t],function(c){return c.state==-1}),o=ke.minBy(Object.values(a),function(c){return c.order});if(!o){l();return}await iB(t,o,n),setTimeout(s,5)})()})}function Cv(t,e){var n=t.split("/"),r=e.split("/");n.pop();for(var l=0;l<r.length;l++)r[l]!="."&&(r[l]==".."?n.pop():n.push(r[l]));return n.join("/")}function sB(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),l=n[4];e.push(`<d p="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${l}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var l7=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new Ti(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Ii,Referer:this.siteUrl+"/"}}async reconnnect(e,n,r,l,i,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),hs(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,n,r,l,i,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,n,r,l,i,s,a){return a.headers.location!==void 0?l?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,r,l,i,s):a.content.length>0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),await this.reconnnect(e,n,r,l,i,s))}async fetch(e,n,r,l=!1,i=!1,s=0){let a=q9(n),o=e;ke.isEmpty(a)||(o=e+"?"+a);let c=new B0(o),f;return f=await req(c.toString(),{method:"get",headers:r,buffer:s,data:null}),f.code===200||f.code===302||f.code===301||i?await this.getResponse(e,n,r,l,i,s,f):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${c},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(f)}`),await this.reconnnect(e,n,r,l,i,s))}async getHtml(e=this.siteUrl,n=this.getHeader()){let r=await this.fetch(e,null,n);if(ke.isEmpty(r))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return In(r)}async parseVodShorLine truncated
`)}var nB="hls_cache",r7=[],Ha={},J0={},qa={},n7="";function cde(t,e){if(r7.push(t),Ha[t]=e,r7.length>5){let n=r7.shift();fde(n)}}function fde(t){delete Ha[t],delete r7[t],new JSFile(nB+"/"+t).delete()}function pde(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Cv(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Cv(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Cv(t,n.key.uri));return e}async function rB(t,e){let n=md5X(t);if(Ha[n])return Ha[n];let r={},l=t;for(;r=await req(l,{headers:e,redirect:0}),r.headers.location;)l=r.headers.location;if(r.code==200){var i=r.content;let s=pde(l,ZU(i));return cde(n,{code:r.code,plist:s,key:n,headers:r.headers}),Ha[n]}return{}}async function lB(t,e,n){if(!Ha[t])return{};let l=Ha[t].plist.segments,i=!qa[t];if(i){qa[t]={};for(let f of l){let p=md5X(f.uri+f.mediaSequenceNumber.toString());qa[t][p]={file:nB+"/"+t+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in qa[t]){let p=qa[t][f];p.index>=e?p.order=p.index-e:p.order=l.length-e+p.index}i&&dde(t,5,n);let s=l[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),o=qa[t][a];if(o.state==1||o.state==-1){let f=new JSFile(o.file);if(await f.exist())return o.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:f};o.state=-1}if(o.state==-1&&iB(t,o,n),o.state==0){var c=new JSProxyStream;c.head(200,{connection:"close","content-type":"video/mp2t"});let f=0;return o.read=!0,new Promise(async function(p,m){let h=new JSFile(o.file+".dl");await h.open("r"),async function g(){let v=await h.size();if(v>f){var S=await h.read(v-f,f);await c.write(S),f=v}if(o.state==1||o.state<0){c.done(),await h.close(),await h.delete(),o.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:c}}}async function iB(t,e,n){if(e.state>=0||!J0[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let r=new JSFile(e.file+".dl");await r.open("w");let l=await req(e.uri,{buffer:3,headers:n,stream:r,timeout:[5e3,1e4]});if(l.error||l.code>=300){await r.close(),e.read||await r.delete(),e.state=-1;return}await r.close(),e.read?await r.copy(e.file):await r.move(e.file),e.state=1}async function dde(t,e,n){n7&&n7!=t&&delete J0[n7],n7=t,J0[t]=!0;for(let r=0;r<e&&J0[t];r++)new Promise(function(l,i){(async function s(){if(!J0[t]){l();return}let a=ke.pickBy(qa[t],function(c){return c.state==-1}),o=ke.minBy(Object.values(a),function(c){return c.order});if(!o){l();return}await iB(t,o,n),setTimeout(s,5)})()})}function Cv(t,e){var n=t.split("/"),r=e.split("/");n.pop();for(var l=0;l<r.length;l++)r[l]!="."&&(r[l]==".."?n.pop():n.push(r[l]));return n.join("/")}function sB(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),l=n[4];e.push(`<d p="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${l}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var l7=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new Ti(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Ii,Referer:this.siteUrl+"/"}}async reconnnect(e,n,r,l,i,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),hs(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,n,r,l,i,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,n,r,l,i,s,a){return a.headers.location!==void 0?l?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,r,l,i,s):a.content.length>0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),await this.reconnnect(e,n,r,l,i,s))}async fetch(e,n,r,l=!1,i=!1,s=0){let a=q9(n),o=e;ke.isEmpty(a)||(o=e+"?"+a);let c=new B0(o),f;return f=await req(c.toString(),{method:"get",headers:r,buffer:s,data:null}),f.code===200||f.code===302||f.code===301||i?await this.getResponse(e,n,r,l,i,s,f):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${c},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(f)}`),await this.reconnnect(e,n,r,l,i,s))}async getHtml(e=this.siteUrl,n=this.getHeader()){let r=await this.fetch(e,null,n);if(ke.isEmpty(r))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return In(r)}async parseVodShorLine truncated
`).forEach(function(s){l=s.indexOf(":"),n=s.substring(0,l).trim().toLowerCase(),r=s.substring(l+1).trim(),!(!n||e[n]&&Qge[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var pV=Symbol("internals");function o5(t){return t&&String(t).trim().toLowerCase()}function I7(t){return t===!1||t==null?t:G.isArray(t)?t.map(I7):String(t)}function Zge(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}var eye=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function xE(t,e,n,r,l){if(G.isFunction(r))return r.call(this,e,n);if(l&&(e=n),!!G.isString(e)){if(G.isString(r))return e.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(e)}}function tye(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function nye(t,e){let n=G.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(l,i,s){return this[r].call(this,e,l,i,s)},configurable:!0})})}var u4=class{constructor(e){e&&this.set(e)}set(e,n,r){let l=this;function i(a,o,c){let f=o5(o);if(!f)throw new Error("header name must be a non-empty string");let p=G.findKey(l,f);(!p||l[p]===void 0||c===!0||c===void 0&&l[p]!==!1)&&(l[p||o]=I7(a))}let s=(a,o)=>G.forEach(a,(c,f)=>i(c,f,o));return G.isPlainObject(e)||e instanceof this.constructor?s(e,n):G.isString(e)&&(e=e.trim())&&!eye(e)?s(fV(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=o5(e),e){let r=G.findKey(this,e);if(r){let l=this[r];if(!n)return l;if(n===!0)return Zge(l);if(G.isFunction(n))return n.call(this,l,r);if(G.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=o5(e),e){let r=G.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||xE(this,this[r],r,n)))}return!1}delete(e,n){let r=this,l=!1;function i(s){if(s=o5(s),s){let a=G.findKey(r,s);a&&(!n||xE(r,r[a],a,n))&&(delete r[a],l=!0)}}return G.isArray(e)?e.forEach(i):i(e),l}clear(e){let n=Object.keys(this),r=n.length,l=!1;for(;r--;){let i=n[r];(!e||xE(this,this[i],i,e,!0))&&(delete this[i],l=!0)}return l}normalize(e){let n=this,r={};return G.forEach(this,(l,i)=>{let s=G.findKey(r,i);if(s){n[s]=I7(l),delete n[i];return}let a=e?tye(i):String(i).trim();a!==i&&delete n[i],n[a]=I7(l),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return G.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=e&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){let r=new this(e);return n.forEach(l=>r.set(l)),r}static accessor(e){let r=(this[pV]=this[pV]={accessors:{}}).accessors,l=this.prototype;function i(s){let a=o5(s);r[a]||(nye(l,s),r[a]=!0)}return G.isArray(e)?e.forEach(i):i(e),this}};u4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(u4.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});G.freezeMethods(u4);var Sr=u4;function u5(t,e){let n=this||o4,r=e||n,l=Sr.from(r.headers),i=r.data;return G.forEach(t,function(a){i=a.call(n,i,l.normalize(),e?e.status:void 0)}),l.normalize(),i}function c5(t){return!!(t&&t.__CANCEL__)}function dV(t,e,n){Le.call(this,t??"canceled",Le.ERR_CANCELED,e,n),this.name="CanceledError"}G.inherits(dV,Le,{__CANCEL__:!0});var Y2=dV;function vs(t,e,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Le("Request failed with status code "+n.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wE(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function AE(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ya(t,e){return t&&!wE(e)?AE(t,e):e}var FV=Nr(mV(),1),MV=Nr(require("http"),1),$V=Nr(require("https"),1),jV=Nr(require("util"),1),UV=Nr(TV(),1),T3=Nr(require("zlib"),1);var Ja="1.6.7";function g5(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var vye=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function jE(t,e,n){let r=n&&n.Blob||Tr.classes.Blob,l=g5(t);if(e===void 0&&r&&(e=!0),l==="data"){t=l.length?t.slice(l.length+1):t;let i=vye.exec(t);if(!i)throw new Le("Invalid URL",Le.ERR_INVALID_URL);let s=i[1],a=i[2],o=i[3],c=Buffer.from(decodeURIComponent(o),a?"base64":"utf8");if(e){if(!r)throw new Le("Blob is not supported",Le.ERR_NOT_SUPPORT);return new r([c],{type:s})}return c}throw new Le("Unsupported protocol "+l,Le.ERR_NOT_SUPPORT)}var Qa=Nr(require("stream"),1);var xV=Nr(require("stream"),1);function Eye(t,e){let n=0,r=1e3/e,l=null;return function(s,a){let o=Date.now();if(s||o-n>r)return l&&(clearTimeout(l),l=null),n=o,t.apply(null,a);l||(l=setTimeout(()=>(l=null,n=Date.now(),t.apply(null,a)),r-(o-n)))}}var SV=Eye;function bye(t,e){t=t||10;let n=new Array(t),r=new Array(t),l=0,i=0,s;return e=e!==void 0?e:1e3,function(o){let c=Date.now(),f=r[i];s||(s=c),n[l]=o,r[l]=c;let p=i,m=0;for(;p!==l;)m+=n[p++],p=p%t;if(l=(l+1)%t,l===i&&(i=(i+1)%t),c-s<e)return;let h=f&&c-f;return h?Math.round(m*1e3/h):void 0}}var C7=bye;var k7=Symbol("internals"),UE=class extends xV.default.Transform{constructor(e){e=G.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,o)=>!G.isUndefined(o[a])),super({readableHighWaterMark:e.chunkSize});let n=this,r=this[k7]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},l=C7(r.ticksRate*e.samplesCount,r.timeWindow);this.on("newListener",a=>{a==="progress"&&(r.isCaptured||(r.isCaptured=!0))});let i=0;r.updateProgress=SV(function(){let o=r.length,c=r.bytesSeen,f=c-i;if(!f||n.destroyed)return;let p=l(f);i=c,process.nextTick(()=>{n.emit("progress",{loaded:c,total:o,progress:o?c/o:void 0,bytes:f,rate:p||void 0,estimated:p&&o&&c<=o?(o-c)/p:void 0})})},r.ticksRate);let s=()=>{r.updateProgress(!0)};this.once("end",s),this.once("error",s)}_read(e){let n=this[k7];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,r){let l=this,i=this[k7],s=i.maxRate,a=this.readableHighWaterMark,o=i.timeWindow,c=1e3/o,f=s/c,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,f*.01):0;function m(g,v){let S=Buffer.byteLength(g);i.bytesSeen+=S,i.bytes+=S,i.isCaptured&&i.updateProgress(),l.push(g)?process.nextTick(v):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(v)}}let h=(g,v)=>{let S=Buffer.byteLength(g),T=null,x=a,_,b=0;if(s){let A=Date.now();(!i.ts||(b=A-i.ts)>=o)&&(i.ts=A,_=f-i.bytes,i.bytes=_<0?-_:0,b=0),_=f-i.bytes}if(s){if(_<=0)return setTimeout(()=>{v(null,g)},o-b);_<x&&(x=_)}x&&S>x&&S-x>p&&(T=g.subarray(x),g=g.subarray(0,x)),m(g,T?()=>{process.nextTick(v,null,T)}:v)};h(e,function g(v,S){if(v)return r(v);S?h(S,g):r(null)})}setLength(e){return this[k7].length=+e,this}},BE=UE;var BV=Nr(require("events"),1);var AV=require("util"),RV=require("stream");var{asyncIterator:wV}=Symbol,Tye=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[wV]?yield*t[wV]():yield t},P7=Tye;var Sye=G.ALPHABET.ALPHA_DIGIT+"-_",y5=new AV.TextEncoder,Es=`\r
`,xye=y5.encode(Es),wye=2,qE=class{constructor(e,n){let{escapeName:r}=this.constructor,l=G.isString(n),i=`Content-Disposition: form-data; name="${r(e)}"${!l&&n.name?`; filename="${r(n.name)}"`:""}${Es}`;l?n=y5.encode(String(n).replace(/\r?\n|\r\n?/g,Es)):i+=`Content-Type: ${n.type||"application/octet-stream"}${Es}`,this.headers=y5.encode(i+Es),this.contentLength=l?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+wye,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;G.isTypedArray(e)?yield e:yield*P7(e),yield xye}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},Aye=(t,e,n)=>{let{tag:r="form-data-boundary",size:l=25,boundary:i=r+"-"+G.generateString(l,Sye)}=n||{};if(!G.isFormData(t))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=y5.encode("--"+i+Es),a=y5.encode("--"+i+"--"+Es+Es),o=a.byteLength,c=Array.from(t.entries()).map(([p,m])=>{let h=new qE(p,m);return o+=h.size,h});o+=s.byteLength*c.length,o=G.toFiniteNumber(o);let f={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(o)&&(f["Content-Length"]=o),e&&e(f),RV.Readable.from(async function*(){for(let p of c)yield s,yield*p.encode();yield a}())},OV=Aye;var NV=Nr(require("stream"),1),HE=class extends NV.default.Transform{__transform(e,n,r){this.push(e),r()}_transform(e,n,r){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let l=Buffer.alloc(2);l[0]=120,l[1]=156,this.push(l,n)}this.__transform(e,n,r)}},IV=HE;var Rye=(t,e)=>G.isAsyncFn(t)?function(...n){let r=n.pop();t.apply(this,n).then(l=>{try{e?r(null,...e(l)):r(null,l)}catch(i){r(i)}},r)}:t,CV=Rye;var kV={flush:T3.default.constants.Z_SYNC_FLUSH,finishFlush:T3.default.constants.Z_SYNC_FLUSH},Oye={flush:T3.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:T3.default.constants.BROTLI_OPERATION_FLUSH},PV=G.isFunction(T3.default.createBrotliDecompress),{http:Nye,https:Iye}=UV.default,Cye=/https:?/,DV=Tr.protocols.map(t=>t+":");function kye(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function qV(t,e,n){let r=e;if(!r&&r!==!1){let l=(0,FV.getProxyForUrl)(n);l&&(r=new URL(l))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));let i=Buffer.from(r.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let l=r.hostname||r.host;t.hostname=l,t.host=l,t.port=r.port,t.path=n,r.protocol&&(t.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}t.beforeRedirects.proxy=function(i){qV(i,e,i.href)}}var Pye=typeof process<"u"&&G.kindOf(process)==="process",Dye=t=>new Promise((e,n)=>{let r,l,i=(o,c)=>{l||(l=!0,r&&r(o,c))},s=o=>{i(o),e(o)},a=o=>{i(o,!0),n(o)};t(s,a,o=>r=o).catch(a)}),Lye=({address:t,family:e})=>{if(!G.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},LV=(t,e)=>Lye(G.isObject(t)?t:{address:t,family:e}),HV=Pye&&function(e){return Dye(async function(r,l,i){let{data:s,lookup:a,family:o}=e,{responseType:c,responseEncoding:f}=e,p=e.method.toUpperCase(),m,h=!1,g;if(a){let se=CV(a,ge=>G.isArray(ge)?ge:[ge]);a=(ge,q,re)=>{se(ge,q,(ne,ee,Ln)=>{if(ne)return re(ne);let xt=G.isArray(ee)?ee.map(Ve=>LV(Ve)):[LV(ee,Ln)];q.all?re(ne,xt):re(ne,xt[0].address,xt[0].family)})}}let v=new BV.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),v.removeAllListeners()};i((se,ge)=>{m=!0,ge&&(h=!0,S())});function T(se){v.emit("abort",!se||se.type?new Y2(null,e,g):se)}v.once("abort",l),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(T),e.signal&&(e.signal.aborted?T():e.signal.addEventListener("abort",T)));let x=Ya(e.baseURL,e.url),_=new URL(x,"http://localhost"),b=_.protocol||DV[0];if(b==="data:"){let se;if(p!=="GET")return vs(r,l,{status:405,statusText:"method not allowed",headers:{},config:e});try{se=jE(e.url,c==="blob",{Blob:e.env&&e.env.Blob})}catch(ge){throw Le.from(ge,Le.ERR_BAD_REQUEST,e)}return c==="text"?(se=se.toString(f),(!f||f==="utf8")&&(se=G.stripBOM(se))):c==="stream"&&(se=Qa.default.Readable.from(se)),vs(r,l,{data:se,status:200,statusText:"OK",headers:new Sr,config:e})}if(DV.indexOf(b)===-1)return l(new Le("Unsupported protocol "+b,Le.ERR_BAD_REQUEST,e));let A=Sr.from(e.headers).normalize();A.set("User-Agent","axios/"+Ja,!1);let N=e.onDownloadProgress,O=e.onUploadProgress,C=e.maxRate,$,L;if(G.isSpecCompliantForm(s)){let se=A.getContentType(/boundary=([-_\w\d]{10,70})/i);s=OV(s,ge=>{A.set(ge)},{tag:`axios-${Ja}-boundary`,boundary:se&&se[1]||void 0})}else if(G.isFormData(s)&&G.isFunction(s.getHeaders)){if(A.set(s.getHeaders()),!A.hasContentLength())try{let se=await jV.default.promisify(s.getLength).call(s); Line truncated
`+i.map(KV).join(`
`):" "+KV(i[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:VE};function zE(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Y2(null,t)}function L7(t){return zE(t),t.headers=Sr.from(t.headers),t.data=u5.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),D7.getAdapter(t.adapter||o4.adapter)(t).then(function(r){return zE(t),r.data=u5.call(t,t.transformResponse,r),r.headers=Sr.from(r.headers),r},function(r){return c5(r)||(zE(t),r&&r.response&&(r.response.data=u5.call(t,t.transformResponse,r.response),r.response.headers=Sr.from(r.response.headers))),Promise.reject(r)})}var YV=t=>t instanceof Sr?t.toJSON():t;function S3(t,e){e=e||{};let n={};function r(c,f,p){return G.isPlainObject(c)&&G.isPlainObject(f)?G.merge.call({caseless:p},c,f):G.isPlainObject(f)?G.merge({},f):G.isArray(f)?f.slice():f}function l(c,f,p){if(G.isUndefined(f)){if(!G.isUndefined(c))return r(void 0,c,p)}else return r(c,f,p)}function i(c,f){if(!G.isUndefined(f))return r(void 0,f)}function s(c,f){if(G.isUndefined(f)){if(!G.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,p){if(p in e)return r(c,f);if(p in t)return r(void 0,c)}let o={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,f)=>l(YV(c),YV(f),!0)};return G.forEach(Object.keys(Object.assign({},t,e)),function(f){let p=o[f]||l,m=p(t[f],e[f],f);G.isUndefined(m)&&p!==a||(n[f]=m)}),n}var GE={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{GE[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var WV={};GE.transitional=function(e,n,r){function l(i,s){return"[Axios v"+Ja+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new Le(l(s," has been removed"+(n?" in "+n:"")),Le.ERR_DEPRECATED);return n&&!WV[s]&&(WV[s]=!0,console.warn(l(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function $ye(t,e,n){if(typeof t!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),l=r.length;for(;l-- >0;){let i=r[l],s=e[i];if(s){let a=t[i],o=a===void 0||s(a,i,t);if(o!==!0)throw new Le("option "+i+" must be "+o,Le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Le("Unknown option "+i,Le.ERR_BAD_OPTION)}}var F7={assertOptions:$ye,validators:GE};var bs=F7.validators,f4=class{constructor(e){this.defaults=e,this.interceptors={request:new EE,response:new EE}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;let i=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=S3(this.defaults,n);let{transitional:r,paramsSerializer:l,headers:i}=n;r!==void 0&&F7.assertOptions(r,{silentJSONParsing:bs.transitional(bs.boolean),forcedJSONParsing:bs.transitional(bs.boolean),clarifyTimeoutError:bs.transitional(bs.boolean)},!1),l!=null&&(G.isFunction(l)?n.paramsSerializer={serialize:l}:F7.assertOptions(l,{encode:bs.function,serialize:bs.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Sr.concat(s,i);let a=[],o=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(o=o&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});let c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let f,p=0,m;if(!o){let g=[L7.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),m=g.length,f=Promise.resolve(n);p<m;)f=f.then(g[p++],g[p++]);return f}m=a.length;let h=n;for(p=0;p<m;){let g=a[p++],v=a[p++];try{h=g(h)}catch(S){v.call(this,S);break}}try{f=L7.call(this,h)}catch(g){return Promise.reject(g)}for(p=0,m=c.length;p<m;)f=f.then(c[p++],c[p++]);return f}getUri(e){e=S3(this.defaults,e);let n=Ya(e.baseURL,e.url);return Ka(n,e.params,e.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(e){f4.prototype[e]=function(n,r){return this.request(S3(r||{},{method:e,url:n,data:(r||{}).data}))}});G.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(S3(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}f4.prototype[e]=n(),f4.prototype[e+"Form"]=n(!0)});var _5=f4;var XE=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});let r=this;this.promise.then(l=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](l);r._listeners=null}),this.promise.then=l=>{let i,s=new Promise(a=>{r.subscribe(a),i=a}).then(l);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Y2(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new t(function(l){e=l}),cancel:e}}},JV=XE;function KE(t){return function(n){return t.apply(null,n)}}function YE(t){return G.isObject(t)&&t.isAxiosError===!0}var WE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(WE).forEach(([t,e])=>{WE[e]=t});var QV=WE;function ZV(t){let e=new _5(t),n=i5(_5.prototype.request,e);return G.extend(n,_5.prototype,e,{allOwnKeys:!0}),G.extend(n,e,null,{allOwnKeys:!0}),n.create=function(l){return ZV(S3(t,l))},n}var pr=ZV(o4);pr.Axios=_5;pr.CanceledError=Y2;pr.CancelToken=JV;pr.isCancel=c5;pr.VERSION=Ja;pr.toFormData=_s;pr.AxiosError=Le;pr.Cancel=pr.CanceledError;pr.all=function(e){return Promise.all(e)};pr.spread=KE;pr.isAxiosError=YE;pr.mergeConfig=S3;pr.AxiosHeaders=Sr;pr.formToJSON=t=>N7(G.isHTMLForm(t)?new FormData(t):t);pr.getAdapter=D7.getAdapter;pr.HttpStatusCode=QV;pr.default=pr;var p4=pr;var{Axios:wNe,AxiosError:ANe,CanceledError:RNe,isCancel:ONe,CancelToken:NNe,VERSION:INe,all:CNe,Cancel:kNe,isAxiosError:PNe,spread:DNe,toFormData:ez,AxiosHeaders:LNe,HttpStatusCode:FNe,formToJSON:MNe,getAdapter:$Ne,mergeConfig:jNe}=p4;var nz=Nr(require("https"),1),rz=Nr(require("crypto"),1),JE={};globalThis.dataBase=null;globalThis.local={get:async function(t,e){return await jye(t,e)},set:async function(t, Line truncated
`+t)}globalThis.req=Hye;async function Hye(t,e){try{let n=e&&e.data||null,r=e&&e.postType||null,l=e&&e.buffer||0,i=e&&e.timeout||5e3,s=(e&&e.redirect||1)===1,a=e?e.headers||{}:{};r==="form"?(a["Content-Type"]="application/x-www-form-urlencoded",n!=null&&(n=tz.default.stringify(n,{encode:!1}))):r==="form-data"&&(a["Content-Type"]="multipart/form-data",n=ez(n));let c=await p4(t,{responseType:l===1||l===2?"arraybuffer":void 0,method:e&&e.method||"get",headers:a,data:n,timeout:i,maxRedirects:s?null:0,httpsAgent:nz.default.Agent({rejectUnauthorized:!1})});n=c.data;let f={};for(let p of c.headers){let m=p[1];f[p[0]]=Array.isArray(m)&&m.length===1?m[0]:m}if(!l)typeof n=="object"&&(n=JSON.stringify(n));else{if(l===1)return{code:c.status,headers:f,content:n};if(l===2)return{code:c.status,headers:f,content:n.toString("base64")};if(l===3){let p=e.stream;return p.onResp&&await p.onResp({code:c.status,headers:f}),p.onData?(n.on("data",async m=>{await p.onData(m)}),n.on("end",async()=>{p.onDone&&await p.onDone()})):p.onDone&&await p.onDone(),"stream..."}}return{code:c.status,headers:f,content:n}}catch(n){let r=n.response;try{return{code:r.status,headers:r.headers,content:JSON.stringify(r.data)}}catch{return{headers:{},content:""}}}}globalThis.md5X=Vye;function Vye(t){return rz.default.createHash("md5").update(Buffer.from(t,"utf8")).digest("hex")}globalThis.js2Proxy=function(t,e,n){let r=Object.keys(n).length===0?"_":encodeURIComponent(JSON.stringify(n));return t.server.address().dynamic+t.server.prefix+"/proxy/"+encodeURIComponent(e)+"/"+r+"/"};var zye=["DEBUG","INFO","WARNING","ERROR"];var d4=class{constructor(e,n="DEBUG"){this.app_name=e,this.level=n,this.level_index=zye.indexOf(n)}format(e,n){let r=80;switch(e){case"INFO":r=r+1;break;case"WARNING":r=r-2;break;default:break}return n.length<r&&((r-n.length)%2===0?n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)):n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)+1)),n}getTime(){let e=new Date;return e.toLocaleDateString().replace(/\//g,"-")+" "+e.toTimeString().substr(0,8)+","+e.getMilliseconds().toString()}formatMessage(e,n,r){return r&&(n=this.format(e,n)),`${this.getTime()} - ${this.app_name} - ${e}: ${n}`}async log(e){console.debug(e)}async info(e,n){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,n))}async warning(e,n){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,n))}async error(e,n){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,n))}async debug(e,n){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,n))}};var dr=class extends fr{constructor(){super(),this.jadeLog=new d4(this.getAppName(),"DEBUG")}async init(e,n){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(r){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+r,!1)}}catch(r){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${r}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return ke.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return ke.isEmpty(e)?this.filterObj:e}async home(e,n){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await th Line truncated
`+t)}globalThis.req=Hye;async function Hye(t,e){try{let n=e&&e.data||null,r=e&&e.postType||null,l=e&&e.buffer||0,i=e&&e.timeout||5e3,s=(e&&e.redirect||1)===1,a=e?e.headers||{}:{};r==="form"?(a["Content-Type"]="application/x-www-form-urlencoded",n!=null&&(n=tz.default.stringify(n,{encode:!1}))):r==="form-data"&&(a["Content-Type"]="multipart/form-data",n=ez(n));let c=await p4(t,{responseType:l===1||l===2?"arraybuffer":void 0,method:e&&e.method||"get",headers:a,data:n,timeout:i,maxRedirects:s?null:0,httpsAgent:nz.default.Agent({rejectUnauthorized:!1})});n=c.data;let f={};for(let p of c.headers){let m=p[1];f[p[0]]=Array.isArray(m)&&m.length===1?m[0]:m}if(!l)typeof n=="object"&&(n=JSON.stringify(n));else{if(l===1)return{code:c.status,headers:f,content:n};if(l===2)return{code:c.status,headers:f,content:n.toString("base64")};if(l===3){let p=e.stream;return p.onResp&&await p.onResp({code:c.status,headers:f}),p.onData?(n.on("data",async m=>{await p.onData(m)}),n.on("end",async()=>{p.onDone&&await p.onDone()})):p.onDone&&await p.onDone(),"stream..."}}return{code:c.status,headers:f,content:n}}catch(n){let r=n.response;try{return{code:r.status,headers:r.headers,content:JSON.stringify(r.data)}}catch{return{headers:{},content:""}}}}globalThis.md5X=Vye;function Vye(t){return rz.default.createHash("md5").update(Buffer.from(t,"utf8")).digest("hex")}globalThis.js2Proxy=function(t,e,n){let r=Object.keys(n).length===0?"_":encodeURIComponent(JSON.stringify(n));return t.server.address().dynamic+t.server.prefix+"/proxy/"+encodeURIComponent(e)+"/"+r+"/"};var zye=["DEBUG","INFO","WARNING","ERROR"];var d4=class{constructor(e,n="DEBUG"){this.app_name=e,this.level=n,this.level_index=zye.indexOf(n)}format(e,n){let r=80;switch(e){case"INFO":r=r+1;break;case"WARNING":r=r-2;break;default:break}return n.length<r&&((r-n.length)%2===0?n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)):n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)+1)),n}getTime(){let e=new Date;return e.toLocaleDateString().replace(/\//g,"-")+" "+e.toTimeString().substr(0,8)+","+e.getMilliseconds().toString()}formatMessage(e,n,r){return r&&(n=this.format(e,n)),`${this.getTime()} - ${this.app_name} - ${e}: ${n}`}async log(e){console.debug(e)}async info(e,n){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,n))}async warning(e,n){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,n))}async error(e,n){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,n))}async debug(e,n){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,n))}};var dr=class extends fr{constructor(){super(),this.jadeLog=new d4(this.getAppName(),"DEBUG")}async init(e,n){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(r){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+r,!1)}}catch(r){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${r}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return ke.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return ke.isEmpty(e)?this.filterObj:e}async home(e,n){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await th Line truncated
`,""),n.vod_actor=Mr(/出演女优(.*?)\n/,l).replaceAll(":","").replaceAll(`
`,""),n.vod_remarks=Mr(/是否有码(.*?)\n/,l).replaceAll(":","").replaceAll(`
`,""),n.vod_play_from="BT",n.vod_play_url=n.vod_name+"$"+Mr(/磁力链接: (.*)复制代码/,l),n}async setClasses(){let e=await this.getHtml(),n=e('[id="category_1"]').find("tr").slice(0,-1);for(let r of n){let l=e(e(r).find('[class="fl_icn_g"]')).find("a");for(let i of l){let s=i.attribs.href,a=e(i).find("img")[0].attribs.alt;this.classes.push(this.getTypeDic(a,s))}}}async getFilter(e){let n=[],r={key:1,name:"\u7C7B\u578B",value:[]},l=e('[id="thread_types"]').find("a");for(let a of l){let o="";a.children.length>1?o=a.children[0].data+":"+e(a.children[1]).text():o=a.children[0].data,r.value.push({n:o,v:a.attribs.href})}n.push(r);let i={key:1,name:"\u4E3B\u9898",value:[]},s=e('[class="tf"]').find("a");for(let a of s){let o=e(a).text();o!=="\u66F4\u591A"&&o!=="\u663E\u793A\u7F6E\u9876"&&i.value.push({n:e(a).text(),v:a.attribs.href})}return n.push(i),n}async setFilterObj(){for(let e of this.classes){let n=e.type_name,r=e.type_id;if(n!=="\u6700\u8FD1\u66F4\u65B0"){let l=await this.getHtml(this.siteUrl+"/"+r);this.filterObj[r]=await this.getFilter(l)}}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,l){l[1]!==void 0&&l[1]==="javascript:;"||(e=l[1]??e);let i,s=e.split(".")[0].split("-");s.length>2?(s[2]=n,i=this.siteUrl+"/"+s.join("-")+".html"):i=this.siteUrl+"/"+e+"&page="+n;let a=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(a)}async setDetail(e){let n=await this.getHtml(this.siteUrl+"/"+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let r=e[0],l=Ci(e[1]);if(r==="detail"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${l}`);let i=await this.getHtml(this.siteUrl+"/"+l),s=await this.parseVodDetailFromDoc(i);await this.jadeLog.debug(`\u56FE\u7247\u5730\u5740\u4E3A:${s.vod_pic}`);let a;return ke.isEmpty(n)?a=await req(s.vod_pic,{buffer:2,headers:{Referer:l,"User-Agent":Ii}}):a=await req(s.vod_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},vn=new eb;var tb=class extends dr{constructor(){super()}getName(){return vn.getName()}getAppName(){return vn.getAppName()}getJSName(){return vn.getJSName()}async init(e,n){dataBase=e.server.db,await vn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await vn.initAli(e.server.config.alitoken),vn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await vn.setClasses(),this.classes=vn.classes}async setFilterObj(){await vn.setFilterObj(),this.filterObj=vn.filterObj}async setHomeVod(){await vn.setHomeVod(),this.homeVodList=vn.homeVodList}async setCategory(e,n,r,l){await vn.setCategory(e,n,r,l),this.vodList=vn.vodList}async setDetail(e){await vn.setDetail(e),this.vodDetail=vn.vodDetail}async setPlay(e,n,r){await vn.setPlay(e,n,r),this.playUrl=vn.playUrl,this.result=vn.result}async setSearch(e,n){await vn.setSearch(e,n),this.vodList=vn.vodList}async setProxy(e,n){return await vn.proxy(e,n)}},Ss=new tb;async function fz(t,e){return await Ss.init(t,e)}async function pz(t,e){return await Ss.home(t,e)}async function Kye(t,e){return await Ss.homeVod(t,e)}async function dz(t,e){return await Ss.category(t,e)}async function hz(t,e){return await Ss.detail(t,e)}async function mz(t,e){return await Ss.play(t,e)}async function gz(t,e){return await Ss.search(t,e)}async function Yye(t,e){return await Ss.proxy(t,e)}var yz={meta:{key:vn.getJSName(),name:vn.getName(),type:vn.getType()},api:async t=>{t.post("/init",fz),t.post("/home",pz),t.post("/category",dz),t.post("/detail",hz),t.post("/play",mz),t.post("/search",gz),t.get("/proxy/:what/:ids/:end",Yye)},spider:{init:fz,home:pz,homeVod:Kye,category:dz,detail:hz,play:mz,search:gz}};var nb=class extends fr{constructor(){super(),this.siteUrl="https://jable.tv",this.cookie=""}getAppName(){return"Jable"}getName(){return"\u{1F51E}\u2503Jable\u2503\u{1F51E}"}getJSName(){return"jable"}getType(){return 3}getHeader(){let e={};return e["User-Agent"]="PostmanRuntime/7.36.3",e.Host="jable.tv",e}async setClasses(){let e=await this.getHtml(this.siteUrl),n=e('[class="title-box"]'),r=e("div.row");for(let l of e(r[0]).find("a")){let i=e(l).text(),s=l.attribs.href;s.indexOf(this.siteUrl)>-1&&this.classes.push(this.getTypeDic(i,s))}n=n.slice(1,9),r=r.slice(1,9);for(let l=0;l<n.length;l++){let i=e(r[l]).find("a")[0].attribs.href;this.classes.push(this.getTypeDic("\u6807\u7B7E",i));break}}async getSortFilter(e){let n=e('[class="sorting-nav"]').find("a"),r={name:"\u6392\u5E8F",key:"sort",value:[]};for(let l of n){let i=l.attribs["data-parameters"].split("sort_by:")[1],s=e(l).text();r.value.push({n:s,v:i})}return r}async getFilter(e,n,r,l){let i=[];if(n<4){let s={name:l,key: Line truncated
`,""),n.vod_play_from="BT",n.vod_play_url=n.vod_name+"$"+Mr(/磁力链接: (.*)复制代码/,l),n}async setClasses(){let e=await this.getHtml(),n=e('[id="category_1"]').find("tr").slice(0,-1);for(let r of n){let l=e(e(r).find('[class="fl_icn_g"]')).find("a");for(let i of l){let s=i.attribs.href,a=e(i).find("img")[0].attribs.alt;this.classes.push(this.getTypeDic(a,s))}}}async getFilter(e){let n=[],r={key:1,name:"\u7C7B\u578B",value:[]},l=e('[id="thread_types"]').find("a");for(let a of l){let o="";a.children.length>1?o=a.children[0].data+":"+e(a.children[1]).text():o=a.children[0].data,r.value.push({n:o,v:a.attribs.href})}n.push(r);let i={key:1,name:"\u4E3B\u9898",value:[]},s=e('[class="tf"]').find("a");for(let a of s){let o=e(a).text();o!=="\u66F4\u591A"&&o!=="\u663E\u793A\u7F6E\u9876"&&i.value.push({n:e(a).text(),v:a.attribs.href})}return n.push(i),n}async setFilterObj(){for(let e of this.classes){let n=e.type_name,r=e.type_id;if(n!=="\u6700\u8FD1\u66F4\u65B0"){let l=await this.getHtml(this.siteUrl+"/"+r);this.filterObj[r]=await this.getFilter(l)}}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,l){l[1]!==void 0&&l[1]==="javascript:;"||(e=l[1]??e);let i,s=e.split(".")[0].split("-");s.length>2?(s[2]=n,i=this.siteUrl+"/"+s.join("-")+".html"):i=this.siteUrl+"/"+e+"&page="+n;let a=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(a)}async setDetail(e){let n=await this.getHtml(this.siteUrl+"/"+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let r=e[0],l=Ci(e[1]);if(r==="detail"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${l}`);let i=await this.getHtml(this.siteUrl+"/"+l),s=await this.parseVodDetailFromDoc(i);await this.jadeLog.debug(`\u56FE\u7247\u5730\u5740\u4E3A:${s.vod_pic}`);let a;return ke.isEmpty(n)?a=await req(s.vod_pic,{buffer:2,headers:{Referer:l,"User-Agent":Ii}}):a=await req(s.vod_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},hn=new QE;var ZE=class extends dr{constructor(){super()}getName(){return hn.getName()}getAppName(){return hn.getAppName()}getJSName(){return hn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await hn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await hn.initCookie(e.server.config.bilicookie),await hn.spiderInit(e),hn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await hn.setClasses(),this.classes=hn.classes}async setFilterObj(){await hn.setFilterObj(),this.filterObj=hn.filterObj}async setHomeVod(){await hn.setHomeVod(),this.homeVodList=hn.homeVodList}async setCategory(e,n,r,l){await hn.setCategory(e,n,r,l),this.vodList=hn.vodList}async setDetail(e){await hn.setDetail(e),this.vodDetail=hn.vodDetail}async setPlay(e,n,r){await hn.setPlay(e,n,r),this.playUrl=hn.playUrl,this.result=hn.result}async setSearch(e,n){await hn.setSearch(e,n),this.vodList=hn.vodList}async setProxy(e,n){return await hn.proxy(e,n)}},Ts=new ZE;async function lz(t,e){return await Ts.init(t,e)}async function iz(t,e){return await Ts.home(t,e)}async function Gye(t,e){return await Ts.homeVod(t,e)}async function sz(t,e){return await Ts.category(t,e)}async function az(t,e){return await Ts.detail(t,e)}async function oz(t,e){return await Ts.play(t,e)}async function uz(t,e){return await Ts.search(t,e)}async function Xye(t,e){return await Ts.proxy(t,e)}var cz={meta:{key:hn.getJSName(),name:hn.getName(),type:hn.getType()},api:async t=>{t.post("/init",lz),t.post("/home",iz),t.post("/category",sz),t.post("/detail",az),t.post("/play",oz),t.post("/search",uz),t.get("/proxy/:what/:ids/:end",Xye)},spider:{init:lz,home:iz,homeVod:Gye,category:sz,detail:az,play:oz,search:uz}};var eb=class extends fr{constructor(){super(),this.siteUrl="https://hsck12.shop/"}getName(){return"\u{1F51E}\u2503\u9EC4\u8272\u4ED3\u5E93\u2503\u{1F51E}"}getAppName(){return"\u9EC4\u8272\u4ED3\u5E93"}getJSName(){return"hscangku"}getType(){return 3}async parseVodShortListFromDoc(e){let n=[],r=e('[class="stui-vodlist clearfix"]').find("li");for(let l of r){let i=new dn,s=e(l).find("a")[0];i.vod_id=s.attribs.href,i.vod_name=s.attribs.title,i.vod_pic=s.attribs["data-original"],n.push(i)}return n}async parseVodDetailFromDoc(e){let n=new Cn,r=e(e('[class="stui-pannel__head clearfix"]')[1]).find("h3"),i=e("div.stui-pannel-bd > div").find("video")[0];return n.vod_name=r.text(),n.vod_pic=i.attribs.poster,n.vod_play_from="\u9EC4\u8272\u4ED3\u5E93",n.vod_play_url=e(i).find("source")[0].attribs.src,n}async setClasses(){this.classes=[{type_name:"\u56FD\u4EA7\u89C6\u9891",type_id:"?type=gc"},{typ Line truncated
`,"").replaceAll(" ","");s.value.push({n:m,v:p})}if(s.value.length>0){i.push(s);let f=await this.getHtml(s.value[0].v),p=await this.getSortFilter(f);p.value.length>0&&i.push(p)}else{let f=await this.getSortFilter(c);f.value.length>0&&i.push(f)}}else{let s=e("div.row").slice(1,9),a=e('[class="title-box"]').slice(1,9);for(let f=0;f<a.length;f++){let p={name:e(e(a[f]).find("h2")).text(),key:"type",value:[]};for(let m of e(s[f]).find("a")){let h=m.attribs.href;h.indexOf(this.siteUrl)>-1&&p.value.push({n:e(m).text(),v:h})}i.push(p)}let o=await this.getHtml(r),c=await this.getSortFilter(o);c.value.length>0&&i.push(c)}return i}async setFilterObj(){let e=await this.getHtml(this.siteUrl),n=this.classes.slice(1);for(let r=0;r<n.length;r++){let l=n[r].type_name,i=n[r].type_id,s=await this.getFilter(e,r,i,l);s.length>1&&r<4&&(i=s[0].value[0].v,this.classes[r+1]=this.getTypeDic(l,i)),this.filterObj[i]=s}}async parseVodShortListFromDoc(e){let n=[],r=e("div.video-img-box");for(let l of r){let i=new dn;i.vod_pic=e(l).find("img").attr("data-src");let s=e(l).find("a").attr("href");i.vod_id=s.split("/")[4],i.vod_name=s.split("/")[4];let a=e(e(l).find('[class="sub-title"]')).text().split(`
`);a.length>1?i.vod_remarks=a[1].replaceAll(" ","").replaceAll(" ",""):i.vod_remarks="\u7CBE\u9009",!ke.isEmpty(i.vod_pic)&&i.vod_remarks!=="[\u9650\u6642\u512A\u60E0]\u53EA\u97001\u5143\u5373\u53EF\u7121\u9650\u4E0B\u8F09"&&n.push(i)}return n}async parseVodDetailFromDoc(e){let n=new Cn,r=e('[class="header-left"]');n.vod_name=e(e(r).find("h4")).text(),n.vod_pic=Mr(/<video poster="(.*?)" id=/,e.html()),n.vod_year=e(e('[class="inactive-color"]')).text();let l=e(e('[class="header-right d-none d-md-block"] > h6')).text().replaceAll(`
`,"").replaceAll("\u25CF",""),i=[],s=Mr(/var hlsUrl = '(.*?)';/,e.html());i.push(l+"$"+s);let a=[];a.push(i.join("#"));let o=["Jable"];return n.vod_play_from=o.join("$$$"),n.vod_play_url=a.join("$$$"),n}async setHomeVod(){let e=await this.getHtml(this.siteUrl);this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+"/videos/"+e+"/");this.vodDetail=await this.parseVodDetailFromDoc(n)}async setCategory(e,n,r,l){let i=l.type??e,s=l.sort??"video_viewed";this.limit=24;let a;this.total=0,this.count=0,e.indexOf("latest-updates")>1?a=`https://jable.tv/latest-updates/?mode=async&function=get_block&block_id=list_videos_latest_videos_list&sort_by=post_date&from=${n}&_=1709730132217`:a=i+`/${n}/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=${s}&_=${new Date().getTime()}`;let o=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(o);let c=o(o('[class="page-item"]').slice(-1)[0]).text();c.indexOf("\u6700\u5F8C")>-1||(parseInt(c)===this.page||ke.isEmpty(c))&&(await this.jadeLog.debug("\u5206\u7C7B\u9875\u9762\u5230\u5E95\u4E86"),this.total=this.page,this.count=this.page)}async setSearch(e,n){let r=this.siteUrl+`/search/${e}/`,l=await this.getHtml(r);this.vodList=await this.parseVodShortListFromDocByCategory(l)}},En=new nb;var rb=class extends dr{constructor(){super()}getName(){return En.getName()}getAppName(){return En.getAppName()}getJSName(){return En.getJSName()}async init(e,n){dataBase=e.server.db,await En.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await En.initAli(e.server.config.alitoken),En.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await En.setClasses(),this.classes=En.classes}async setFilterObj(){await En.setFilterObj(),this.filterObj=En.filterObj}async setHomeVod(){await En.setHomeVod(),this.homeVodList=En.homeVodList}async setCategory(e,n,r,l){await En.setCategory(e,n,r,l),this.vodList=En.vodList}async setDetail(e){await En.setDetail(e),this.vodDetail=En.vodDetail}async setPlay(e,n,r){await En.setPlay(e,n,r),this.playUrl=En.playUrl,this.result=En.result}async setSearch(e,n){await En.setSearch(e,n),this.vodList=En.vodList}async setProxy(e,n){return await En.proxy(e,n)}},xs=new rb;async function _z(t,e){return await xs.init(t,e)}async function vz(t,e){return await xs.home(t,e)}async function Wye(t,e){return await xs.homeVod(t,e)}async function Ez(t,e){return await xs.category(t,e)}async function bz(t,e){return await xs.detail(t,e)}async function Tz(t,e){return await xs.play(t,e)}async function Sz(t,e){return await xs.search(t,e)}async function Jye(t,e){return await xs.proxy(t,e)}var xz={meta:{key:En.getJSName(),name:En.getName(),type:En.getType()},api:async t=>{t.post("/init",_z),t.post("/home",vz),t.post("/category",Ez),t.post("/detail",bz),t.post("/play",Tz),t.post("/search",Sz),t.get("/proxy/:what/:ids/:end",Jye)},spider:{init:_z,home:vz,homeVod:Wye,category:Ez,detail:bz,play:Tz,search:Sz}};var lb=class extends fr{constructor(){super(),this.siteUrl="https://hongkongdollvideo.com"}getName(){return"\u{1F51E}\u2503\u73A9\u5076\u59D0\u59D0\u2503\u{1F51E}"}getAppName(){return"\u73A9\u5076\u59D0\u59D0"}getJSName(){return"doll"}getType(){return 3}async parseVodShortListFromDoc(e){let n=[],r=e('[class="row"]').find('[class="video-detail"]');for(let l of r){let i=new dn;i.vod_id=e(l).find("a")[0].attribs.href;let s=e(e(l).find('[class="video-info"]')).find("a");i.vod_name=s[0].attribs.title,i.vod_remarks=e(s[1]).text(),i.vod_pic=e(l).find("img")[0].attribs["data-src"],n.push(i)}return n}async parseVodDetailFromDoc(e,n){let r=new Cn,l=e('[class="container-fluid"]');r.vod_name=e(e(l).find('[class="page-title"]')[0]).text(),r.vod_remarks=e(l).find('[class="tag my-1 text-center"]')[0].attribs.href.replaceAll("/",""),r.vod_pic=e(l).find("video")[0].attribs.poster;let i=e.html(),s=Mr(/var voteTag="(.*?)";/g,i),a=JSON.parse(Mr(/<script type="application\/ld\+json">(.*?)<\/script>/g,i));s=Fr.enc.Utf8.stringify(Fr.enc.Base64.parse(s));let o=[];for(let f=0;f<s.length;f++){let p=f%n.length;o.push(String.fromCharCode(s.charCodeAt(f)^n.charCodeAt(p)))}let c=decodeURIComponent(Fr.enc.Utf8.stringify(Fr.enc.Base64.parse(o.join(""))));return r.vod_play_from="\u73A9\u5076\u59D0\u59D0",r.vod_play_url="\u73A9\u5076\u59D0\u59D0$"+c,r}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(e!==null){let n=In(e),r=n('[class="list-unstyled topnav-menu d-flex d-lg-block align-items-center justify-content-center flex-fill topnav-menu-left m-0"]').find("li"),l=1,i=l.toString();this.classes=[],this.classes.push({type_name:"\u9996\u9875",type_id:"1"}),this.filterObj[i]=[];for(let a of r){let o=n(a).text().split(`
`,"").replaceAll("\u25CF",""),i=[],s=Mr(/var hlsUrl = '(.*?)';/,e.html());i.push(l+"$"+s);let a=[];a.push(i.join("#"));let o=["Jable"];return n.vod_play_from=o.join("$$$"),n.vod_play_url=a.join("$$$"),n}async setHomeVod(){let e=await this.getHtml(this.siteUrl);this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+"/videos/"+e+"/");this.vodDetail=await this.parseVodDetailFromDoc(n)}async setCategory(e,n,r,l){let i=l.type??e,s=l.sort??"video_viewed";this.limit=24;let a;this.total=0,this.count=0,e.indexOf("latest-updates")>1?a=`https://jable.tv/latest-updates/?mode=async&function=get_block&block_id=list_videos_latest_videos_list&sort_by=post_date&from=${n}&_=1709730132217`:a=i+`/${n}/?mode=async&function=get_block&block_id=list_videos_common_videos_list&sort_by=${s}&_=${new Date().getTime()}`;let o=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(o);let c=o(o('[class="page-item"]').slice(-1)[0]).text();c.indexOf("\u6700\u5F8C")>-1||(parseInt(c)===this.page||ke.isEmpty(c))&&(await this.jadeLog.debug("\u5206\u7C7B\u9875\u9762\u5230\u5E95\u4E86"),this.total=this.page,this.count=this.page)}async setSearch(e,n){let r=this.siteUrl+`/search/${e}/`,l=await this.getHtml(r);this.vodList=await this.parseVodShortListFromDocByCategory(l)}},vn=new ob;var ub=class extends dr{constructor(){super()}getName(){return vn.getName()}getAppName(){return vn.getAppName()}getJSName(){return vn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await vn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await vn.initCookie(e.server.config.bilicookie),await vn.spiderInit(e),vn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await vn.setClasses(),this.classes=vn.classes}async setFilterObj(){await vn.setFilterObj(),this.filterObj=vn.filterObj}async setHomeVod(){await vn.setHomeVod(),this.homeVodList=vn.homeVodList}async setCategory(e,n,r,l){await vn.setCategory(e,n,r,l),this.vodList=vn.vodList}async setDetail(e){await vn.setDetail(e),this.vodDetail=vn.vodDetail}async setPlay(e,n,r){await vn.setPlay(e,n,r),this.playUrl=vn.playUrl,this.result=vn.result}async setSearch(e,n){await vn.setSearch(e,n),this.vodList=vn.vodList}async setProxy(e,n){return await vn.proxy(e,n)}},Rs=new ub;async function jz(t,e){return await Rs.init(t,e)}async function Uz(t,e){return await Rs.home(t,e)}async function n_e(t,e){return await Rs.homeVod(t,e)}async function Bz(t,e){return await Rs.category(t,e)}async function qz(t,e){return await Rs.detail(t,e)}async function Hz(t,e){return await Rs.play(t,e)}async function Vz(t,e){return await Rs.search(t,e)}async function r_e(t,e){return await Rs.proxy(t,e)}var zz={meta:{key:vn.getJSName(),name:vn.getName(),type:vn.getType()},api:async t=>{t.post("/init",jz),t.post("/home",Uz),t.post("/category",Bz),t.post("/detail",qz),t.post("/play",Hz),t.post("/search",Vz),t.get("/proxy/:what/:ids/:end",r_e)},spider:{init:jz,home:Uz,homeVod:n_e,category:Bz,detail:qz,play:Hz,search:Vz}};var cb=class extends fr{constructor(){super(),this.siteUrl="https://of.cilido.top",this.apiUrl="",this.vodShortObj={}}getName(){return"\u{1F51E}\u2503\u78C1\u529B\u591ABT\u2503\u{1F51E}"}getAppName(){return"\u78C1\u529B\u591ABT"}getJSName(){return"ciliduo"}getType(){return 3}getProxy(e){return Ci(e)}async home(e){try{await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0);let n=await this.getHtml(),r=Mr(/var proxy = atob\('(.*?)'\)/,n.html());this.apiUrl=this.getProxy(r);let l=`/?host=${HU(this.siteUrl).split("://").slice(-1)[0]}&v=1`,i=await this.fetch(this.apiUrl,l,this.getHeader());return await this.parseVodShortListFromDoc(In(i))}catch(n){await this.jadeLog.error(`\u9996\u9875\u89E3\u6790\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${n}`)}}async parseVodShortListFromDoc(e){let r=e('[class="htab"]').find("a"),l=e('[class="hotwords"]').find("ul");for(let i=0;i<r.length;i++){let s=r[i];if(i!==r.length-1){let a=e(s).text();a==="\u70ED\u95E8"&&(a="\u6700\u8FD1\u66F4\u65B0"),this.classes.push(this.getTypeDic(a,a));let o=l[i],c=[];for(let f of e(o).find("a")){let p=new dn;p.vod_id=f.attribs.href,p.vod_name=e(f).html(),p.vod_pic=ds+"/resources/cili.jpg",c.push(p)}this.vodShortObj[a]=c}}return this.result.home(this.classes,[],this.filterObj)}async parseVodShortListFromDocBySearch(e){let n=[],r=e('[class="ssbox"]');for(let l of r.slice(0,-1)){let i=new dn;i.vod_id=e(l).find("a")[0].attribs.href,i.vod_name=e(e(l).find("a")[0]).text(),i.vod_remarks=e(e(l).find("span")[0]).text(),i.vod_pic=ds+"/resources/cili.jpg",n.push(i)}return n}async parseVodDetailFromDoc(e){let n=e.html(),r=new Cn;r.vod_name=e(e('[class="bt_title"]')).text(),r.vod_pic=ds+"/resources/cili.jpg",r.vod_remarks=Mr(/<br>收录时间:<span>(.*?)<\/span>/,e.html()),r.vod_content="\u4E0B\u8F7D\u901F\u5EA6:"+Mr( Line truncated
`),c=n(a).find("a"),f=[{n:"\u5168\u90E8",v:i}],p=l.toString();for(let m of c){let h=n(m).text().replaceAll(`
`,""),g=m.attribs.href;g!==void 0&&f.push({n:h,v:g})}o=o.filter(m=>m!==""),this.filterObj[i].push({key:p,name:o[0],value:f})}let s=n('[id="side-menu"]').find("li");for(let a of s){let o=n(a).find("a")[0].attribs.href;if(o!==void 0&&o.indexOf(this.siteUrl)>-1){let c={type_name:n(a).text(),type_id:o};this.classes.push(c)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(e!=null){let n=In(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,l){l[1]!==void 0&&l[1]!=="1"&&(e=l[1]),await this.jadeLog.info(`tid = ${e}`);let i="";e.indexOf(this.siteUrl)>-1?i=e+n.toString()+".html":i=this.siteUrl,this.limit=36;let s=await this.fetch(i,null,this.getHeader());if(s!=null){let a=In(s);this.vodList=await this.parseVodShortListFromDoc(a)}}async setDetail(e){let n=await this.fetch(e,null,this.getHeader());if(n!=null){let r=In(n),l=Mr(/video\/(\w+).html/,e);this.vodDetail=await this.parseVodDetailFromDoc(r,l)}}async setPlay(e,n,r){this.playUrl=n,this.playHeader={}}async setSearch(e,n){let r=this.siteUrl+"search/"+encodeURIComponent(e),l=await this.fetch(r,null,this.getHeader());if(l!==null){let i=In(l);this.vodList=await this.parseVodShortListFromDoc(i)}}},bn=new lb;var ib=class extends dr{constructor(){super()}getName(){return bn.getName()}getAppName(){return bn.getAppName()}getJSName(){return bn.getJSName()}async init(e,n){dataBase=e.server.db,await bn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await bn.initAli(e.server.config.alitoken),bn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await bn.setClasses(),this.classes=bn.classes}async setFilterObj(){await bn.setFilterObj(),this.filterObj=bn.filterObj}async setHomeVod(){await bn.setHomeVod(),this.homeVodList=bn.homeVodList}async setCategory(e,n,r,l){await bn.setCategory(e,n,r,l),this.vodList=bn.vodList}async setDetail(e){await bn.setDetail(e),this.vodDetail=bn.vodDetail}async setPlay(e,n,r){await bn.setPlay(e,n,r),this.playUrl=bn.playUrl,this.result=bn.result}async setSearch(e,n){await bn.setSearch(e,n),this.vodList=bn.vodList}async setProxy(e,n){return await bn.proxy(e,n)}},ws=new ib;async function wz(t,e){return await ws.init(t,e)}async function Az(t,e){return await ws.home(t,e)}async function Qye(t,e){return await ws.homeVod(t,e)}async function Rz(t,e){return await ws.category(t,e)}async function Oz(t,e){return await ws.detail(t,e)}async function Nz(t,e){return await ws.play(t,e)}async function Iz(t,e){return await ws.search(t,e)}async function Zye(t,e){return await ws.proxy(t,e)}var Cz={meta:{key:bn.getJSName(),name:bn.getName(),type:bn.getType()},api:async t=>{t.post("/init",wz),t.post("/home",Az),t.post("/category",Rz),t.post("/detail",Oz),t.post("/play",Nz),t.post("/search",Iz),t.get("/proxy/:what/:ids/:end",Zye)},spider:{init:wz,home:Az,homeVod:Qye,category:Rz,detail:Oz,play:Nz,search:Iz}};var sb=class extends fr{constructor(){super(),this.siteUrl="https://cn.asianx.tube/"}getName(){return"\u{1F51E}\u2503\u6D77\u5916\u5B85\u2503\u{1F51E}"}getAppName(){return"\u6D77\u5916\u5B85"}getJSName(){return"asianx"}getType(){return 3}async getFilter(e){let n=e(e('[class="menu m-0 mb-2 mb-lg-0"]')).find("a").slice(6),r={key:"1",name:"\u5206\u7C7B",value:[{n:"\u5168\u90E8",v:"\u5168\u90E8"}]};for(let l of n){let i=e(e(l).find("span")).text(),s=l.attribs.href;r.value.push({n:i,v:s})}return[r]}async parseVodShortListFromDoc(e,n=!1){let r=[],l;n?l=e(e('[class="gal-box"]')).slice(12):l=e(e('[class="gal-box"]'));for(let i of l){let s=new dn,a=e(i).find("a");s.vod_id=a[0].attribs.href,s.vod_pic=e(a[0]).find("img")[0].attribs["data-src"],s.vod_name=a[1].attribs.title,s.vod_remarks=e(e(i).find('[class="meta text-muted text-truncate"]')).text(),r.push(s)}return r}async parseVodDetailFromDoc(e){let n=new Cn,r=Mr(/<script type="application\/ld\+json">(.*?)<\/script>/,e),l=JSON.parse(r),i=l.name.split(" ");n.vod_name=i[0],n.vod_play_from=["\u672A\u52A0\u5BC6\u7EBF\u8DEF","\u52A0\u5BC6\u7EBF\u8DEF"].join("$$$");let s=l.contentUrl,a=l.embedUrl;return n.vod_play_url=[`${i[0]}$${s}`,`${i[0]}$${a}`].join("$$$"),n.vod_remarks=l.uploadDate,n.vod_content=l.description,n}async setClasses(){this.classes=[],this.classes.push({type_name:"\u9996\u9875",type_id:"/"});let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!ke.isEmpty(e)){let n=In(e),r=n(n('[class="menu m-0 mb-2 mb-lg-0"]')).find("a").slice(0,5);for(let l of r){let i=n(n(l).find("span")).text(),s=l.attribs.href;this.classes.push({type_name:i,type_id:s})}this.filterObj[this.classes[0].type_id]=await this.getFilter(n)}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!ke.isEmpty(e)){let n=In(e);this.homeVodList=await this.parseVodShortListFromDoc(n,!0)}}getExtend(e,n){return n[1]!==void 0?n[1]==="\u5168\u90E8"?this.siteUrl:this.siteUrl+n[1]+"/"+e:this.siteUrl}async setDetail(e){let n=await this.fetch(e, Line truncated
`,""),g=m.attribs.href;g!==void 0&&f.push({n:h,v:g})}o=o.filter(m=>m!==""),this.filterObj[i].push({key:p,name:o[0],value:f})}let s=n('[id="side-menu"]').find("li");for(let a of s){let o=n(a).find("a")[0].attribs.href;if(o!==void 0&&o.indexOf(this.siteUrl)>-1){let c={type_name:n(a).text(),type_id:o};this.classes.push(c)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(e!=null){let n=In(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,l){l[1]!==void 0&&l[1]!=="1"&&(e=l[1]),await this.jadeLog.info(`tid = ${e}`);let i="";e.indexOf(this.siteUrl)>-1?i=e+n.toString()+".html":i=this.siteUrl,this.limit=36;let s=await this.fetch(i,null,this.getHeader());if(s!=null){let a=In(s);this.vodList=await this.parseVodShortListFromDoc(a)}}async setDetail(e){let n=await this.fetch(e,null,this.getHeader());if(n!=null){let r=In(n),l=Mr(/video\/(\w+).html/,e);this.vodDetail=await this.parseVodDetailFromDoc(r,l)}}async setPlay(e,n,r){this.playUrl=n,this.playHeader={}}async setSearch(e,n){let r=this.siteUrl+"search/"+encodeURIComponent(e),l=await this.fetch(r,null,this.getHeader());if(l!==null){let i=In(l);this.vodList=await this.parseVodShortListFromDoc(i)}}},bn=new pb;var db=class extends dr{constructor(){super()}getName(){return bn.getName()}getAppName(){return bn.getAppName()}getJSName(){return bn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await bn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await bn.initCookie(e.server.config.bilicookie),await bn.spiderInit(e),bn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await bn.setClasses(),this.classes=bn.classes}async setFilterObj(){await bn.setFilterObj(),this.filterObj=bn.filterObj}async setHomeVod(){await bn.setHomeVod(),this.homeVodList=bn.homeVodList}async setCategory(e,n,r,l){await bn.setCategory(e,n,r,l),this.vodList=bn.vodList}async setDetail(e){await bn.setDetail(e),this.vodDetail=bn.vodDetail}async setPlay(e,n,r){await bn.setPlay(e,n,r),this.playUrl=bn.playUrl,this.result=bn.result}async setSearch(e,n){await bn.setSearch(e,n),this.vodList=bn.vodList}async setProxy(e,n){return await bn.proxy(e,n)}},Ns=new db;async function Zz(t,e){return await Ns.init(t,e)}async function eG(t,e){return await Ns.home(t,e)}async function s_e(t,e){return await Ns.homeVod(t,e)}async function tG(t,e){return await Ns.category(t,e)}async function nG(t,e){return await Ns.detail(t,e)}async function rG(t,e){return await Ns.play(t,e)}async function lG(t,e){return await Ns.search(t,e)}async function a_e(t,e){return await Ns.proxy(t,e)}var iG={meta:{key:bn.getJSName(),name:bn.getName(),type:bn.getType()},api:async t=>{t.post("/init",Zz),t.post("/home",eG),t.post("/category",tG),t.post("/detail",nG),t.post("/play",rG),t.post("/search",lG),t.get("/proxy/:what/:ids/:end",a_e)},spider:{init:Zz,home:eG,homeVod:s_e,category:tG,detail:nG,play:rG,search:lG}};var o_e="diao.com",M7=class{constructor(){this.channelMsg="",this.channelStatus=0,this.channelList=[],this.channelFilters={}}fromJsonString(e,n=0){let r=JSON.parse(e);this.channelMsg=r.msg,this.channelStatus=r.status;let l=[];for(let i of r.list){let s=new hb;switch(n){case 0:s.fromJson(i),l.push(s);break;case 1:i.channelName!=="\u5348\u591C\u573A"&&i.channelName!=="\u5348\u591C\u76F4\u64AD"&&(s.fromJson(i),l.push(s));break;case 2:(i.channelName==="\u5348\u591C\u573A"||i.channelName==="\u5348\u591C\u76F4\u64AD")&&(s.fromJson(i),l.push(s));break}}this.channelList=l,this.channelFilters=r.filter}setChannelFilters(e){this.channelFilters=JSON.parse(e)}getValues(e,n,r){let l=[];l.push({n:"\u5168\u90E8",v:"0"});for(let i of e)l.push({n:i[n],v:i[r].toString()});return l}getFilters(){let e={};for(let n of this.channelList){e[n.channelId]=[];let r=this.channelFilters.sortsMap[parseInt(n.channelId)],l=this.getValues(r,"title","id");e[n.channelId].push({key:"1",name:"\u6392\u5E8F",value:l});let i=this.channelFilters.typesMap[parseInt(n.channelId)],s=this.getValues(i,"showTypeName","showTypeId");e[n.channelId].push({key:"2",name:"\u7C7B\u578B",value:s});let a=this.getValues(this.channelFilters.regions,"regionName","regionId");e[n.channelId].push({key:"3",name:"\u5730\u533A",value:a});let o=this.getValues(this.channelFilters.langs,"langName","langId");e[n.channelId].push({key:"4",name:"\u8BED\u8A00",value:o});let c=this.getValues(this.channelFilters.yearRanges,"name","code");e[n.channelId].push({key:"5",name:"\u5E74\u4EFD",value:c})}return e}getChannelFilters(){return this.channelFilters}getChannelMsg(){return this.channelMsg}getChannelStatus(){return this.channelStatus}getChannelList(){return this.channelList}getClassList(){let e=[];for(let n of this.channelList)e.push({type_id:n.channelId,type_name:n.channelName});return e}async save(){return await local.set("niba","niba_channel",this.toString()),this Line truncated
/*! Bundled license information:
uri-js/dist/es5/uri.all.js:
+1 -1
View File
@@ -1 +1 @@
b8e5248cd4c27d4890ba0da20b415412
bc8f18599a94263d004576e5506e8ca3
+44
View File
@@ -0,0 +1,44 @@
## nginx配置 dav
参考文档:https://forevertime.site/nginx-setup-webdav-for-zotero-sync/
## 自己配置
```bash
cd /opt/nginx/html
git clone https://github.com/qist/tvbox.git
# 定时任务
crontab -e
10 */1 * * * cd /opt/nginx/html/tvbox && git pull
#每个小时地10分钟执行一次
```
```nginx
location /dav {
lua_need_request_body off;
alias /opt/nginx/html/tvbox;
autoindex on;
dav_methods PUT MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
create_full_put_path on;
dav_access user:rw group:r all:r;
auth_basic "Authorized Users Only";
auth_basic_user_file /etc/nginx/.credentials.list;
}
```
#### 新源地址
```text
#V1.1.3版本以上
https://你的账号:你的密码@你的域名/dav/cat/dist/index.js.md5
#V1.1.2版本以下
https://你的账号:你的密码@你的域名/dav/cat/tjs/open_config.json
```
+5 -2
View File
@@ -1,5 +1,8 @@
## CatVodOpen新源
源项目地址:https://github.com/jadehh/TVSpider
#### 编译
```bash
@@ -10,6 +13,6 @@ npm install && npm run build
#### 新源地址
```text
gitee://Token@gitee.com/qist/tvbox/dist/index.js.md5
github://Token@gitee.com/qist/tvbox/dist/index.js.md5
gitee://Token@gitee.com/qist/tvbox/cat/dist/index.js.md5
github://Token@github.com/qist/tvbox/cat/dist/index.js.md5
```
+1
View File
@@ -24,6 +24,7 @@ __export(index_config_exports, {
module.exports = __toCommonJS(index_config_exports);
var index_config_default = {
alitoken: "6827db23e5474d02a07fd7431d3d5a5a",
bilicookie: "buvid3=02675249-8ED3-C418-87F5-59E18316459714816infoc; b_nut=1704421014; _uuid=5D435F74-F574-D9AB-62C1-B9294DE465D913102infoc; buvid_fp=e8c5650c749398e9b5cad3f3ddb5081e; buvid4=007E85D1-52C1-7E6E-07CF-837FFBC9349516677-024010502-J5vTDSZDCw4fNnXRejbSVg%3D%3D; rpdid=|()kYJmulRu0J'u~|RRJl)JR; PVID=1; SESSDATA=3be091d3%2C1720332009%2C699ed%2A11CjAcCdwXG5kY1umhCOpQHOn_WP7L9xFBfWO7KKd4BPweodpR6VyIfeNyPiRmkr5jCqsSVjg0R0dZOVVHRUo3RnhPRTZFc3JPbGdiUjFCdHpiRDhiTkticmdKTjVyS1VhbDdvNjFMSDJlbUJydUlRdjFUNGFBNkJlV2ZTa0N1Q1BEVi1QYTQzTUh3IIEC; bili_jct=b0ee7b5d3f27df893545d811d95506d4; DedeUserID=78014638; DedeUserID__ckMd5=4c8c5d65065e468a; enable_web_push=DISABLE; header_theme_version=CLOSE; home_feed_column=5; CURRENT_BLACKGAP=0; CURRENT_FNVAL=4048; b_lsid=75E916AA_18EA1A8D995; bsource=search_baidu; FEED_LIVE_VERSION=V_HEADER_LIVE_NO_POP; browser_resolution=1507-691; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTIzNjk5MTMsImlhdCI6MTcxMjExMDY1MywicGx0IjotMX0.8zQW_fNTCSBlK_JkHnzu3gDw62wuTK1qgKcbGec3swM; bili_ticket_expires=171236985",
ffm3u8: {
url: "https://cj.ffzyapi.com/api.php/provide/vod/from/ffm3u8/",
categories: ["国产剧", "香港剧", "韩国剧", "欧美剧", "台湾剧", "日本剧", "海外剧", "泰国剧", "短剧", "动作片", "喜剧片", "爱情片", "科幻片", "恐怖片", "剧情片", "战争片", "动漫片", "大陆综艺", "港台综艺", "日韩综艺", "欧美综艺", "国产动漫", "日韩动漫", "欧美动漫", "港台动漫", "海外动漫", "记录片"]
+1 -1
View File
@@ -1 +1 @@
b19ca4b85a55e3bde73dc53d3df66cbb
b3785a946904c143deac76d3fcb52c56
+165 -152
View File
@@ -1,28 +1,28 @@
var Yie=Object.create;var S8=Object.defineProperty;var Qie=Object.getOwnPropertyDescriptor;var Zie=Object.getOwnPropertyNames;var ele=Object.getPrototypeOf,tle=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xO=(t,e)=>{for(var n in e)S8(t,n,{get:e[n],enumerable:!0})},bO=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Zie(e))!tle.call(t,i)&&i!==n&&S8(t,i,{get:()=>e[i],enumerable:!(r=Qie(e,i))||r.enumerable});return t};var Br=(t,e,n)=>(n=t!=null?Yie(ele(t)):{},bO(e||!t||!t.__esModule?S8(n,"default",{value:t,enumerable:!0}):n,t)),nle=t=>bO(S8({},"__esModule",{value:!0}),t);var SO=D((gke,wO)=>{"use strict";function rle(t){var e=new t,n=e;function r(){var l=e;return l.next?e=l.next:(e=new t,n=e),l.next=null,l}function i(l){n.next=l,n=l}return{get:r,release:i}}wO.exports=rle});var wm=D((vke,bm)=>{"use strict";var ile=SO();function TO(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=ile(lle),i=null,l=null,s=0,a=null,o={push:x,drain:cs,saturated:cs,pause:c,paused:!1,get concurrency(){return n},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=S,!o.paused)for(;i&&s<n;)s++,_()},running:u,resume:h,idle:m,length:f,getQueue:d,unshift:b,empty:cs,kill:E,killAndDrain:v,error:g};return o;function u(){return s}function c(){o.paused=!0}function f(){for(var S=i,A=0;S;)S=S.next,A++;return A}function d(){for(var S=i,A=[];S;)A.push(S.value),S=S.next;return A}function h(){if(o.paused)for(o.paused=!1;i&&s<n;)s++,_()}function m(){return s===0&&o.length()===0}function x(S,A){var C=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||cs,C.errorHandler=a,s>=n||o.paused?l?(l.next=C,l=C):(i=C,l=C,o.saturated()):(s++,e.call(t,C.value,C.worked))}function b(S,A){var C=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||cs,C.errorHandler=a,s>=n||o.paused?i?(C.next=i,i=C):(i=C,l=C,o.saturated()):(s++,e.call(t,C.value,C.worked))}function _(S){S&&r.release(S);var A=i;A&&s<=n?o.paused?s--:(l===i&&(l=null),i=A.next,A.next=null,e.call(t,A.value,A.worked),l===null&&o.empty()):--s===0&&o.drain()}function E(){i=null,l=null,o.drain=cs}function v(){i=null,l=null,o.drain(),o.drain=cs}function g(S){a=S}}function cs(){}function lle(){this.value=null,this.callback=cs,this.next=null,this.release=cs,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var i=t.callback,l=t.errorHandler,s=t.value;t.value=null,t.callback=cs,t.errorHandler&&l(n,s),i.call(t.context,n,r),t.release(t)}}function sle(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(c,f){e.call(this,c).then(function(d){f(null,d)},f)}var i=TO(t,r,n),l=i.push,s=i.unshift;return i.push=a,i.unshift=o,i.drained=u,i;function a(c){var f=new Promise(function(d,h){l(c,function(m,x){if(m){h(m);return}d(x)})});return f.catch(cs),f}function o(c){var f=new Promise(function(d,h){s(c,function(m,x){if(m){h(m);return}d(x)})});return f.catch(cs),f}function u(){if(i.idle())return new Promise(function(d){d()});var c=i.drain,f=new Promise(function(d){i.drain=function(){c(),d()}});return f}}bm.exports=TO;bm.exports.promise=sle});var Tm=D((_ke,AO)=>{"use strict";var{inherits:ale,format:Sm}=require("util");function k3(t,e,n=Error){if(!t)throw new Error("Avvio error code must not be empty");if(!e)throw new Error("Avvio base error message must not be empty");function r(i,l,s){if(!new.target)return new r(i,l,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",i&&l&&s?this.message=Sm(e,i,l,s):i&&l?this.message=Sm(e,i,l):i?this.message=Sm(e,i):this.message=e}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},ale(r,n),r}AO.exports={createError:k3,AVV_ERR_EXPOSE_ALREADY_DEFINED:k3("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:k3("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:k3("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:k3("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:k3("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:k3("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var OO=D((Eke,CO)=>{CO.exports=function t(e,n,r){n===void 0&&(n=""),r||(r={});var i=function(o){var u={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return r.unicode===!1?u[o]:o};typeof e=="string"&&(e={label:e});var l=e.nodes||[],s=(e.label||"").split(`
var ole=Object.create;var A8=Object.defineProperty;var ule=Object.getOwnPropertyDescriptor;var cle=Object.getOwnPropertyNames;var fle=Object.getPrototypeOf,ple=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TO=(t,e)=>{for(var n in e)A8(t,n,{get:e[n],enumerable:!0})},AO=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cle(e))!ple.call(t,i)&&i!==n&&A8(t,i,{get:()=>e[i],enumerable:!(r=ule(e,i))||r.enumerable});return t};var Mr=(t,e,n)=>(n=t!=null?ole(fle(t)):{},AO(e||!t||!t.__esModule?A8(n,"default",{value:t,enumerable:!0}):n,t)),hle=t=>AO(A8({},"__esModule",{value:!0}),t);var OO=D((Ike,CO)=>{"use strict";function dle(t){var e=new t,n=e;function r(){var l=e;return l.next?e=l.next:(e=new t,n=e),l.next=null,l}function i(l){n.next=l,n=l}return{get:r,release:i}}CO.exports=dle});var Tm=D((Rke,Sm)=>{"use strict";var mle=OO();function NO(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=mle(yle),i=null,l=null,s=0,a=null,o={push:x,drain:fs,saturated:fs,pause:c,paused:!1,get concurrency(){return n},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=S,!o.paused)for(;i&&s<n;)s++,_()},running:u,resume:h,idle:m,length:f,getQueue:d,unshift:b,empty:fs,kill:E,killAndDrain:v,error:g};return o;function u(){return s}function c(){o.paused=!0}function f(){for(var S=i,A=0;S;)S=S.next,A++;return A}function d(){for(var S=i,A=[];S;)A.push(S.value),S=S.next;return A}function h(){if(o.paused)for(o.paused=!1;i&&s<n;)s++,_()}function m(){return s===0&&o.length()===0}function x(S,A){var C=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||fs,C.errorHandler=a,s>=n||o.paused?l?(l.next=C,l=C):(i=C,l=C,o.saturated()):(s++,e.call(t,C.value,C.worked))}function b(S,A){var C=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||fs,C.errorHandler=a,s>=n||o.paused?i?(C.next=i,i=C):(i=C,l=C,o.saturated()):(s++,e.call(t,C.value,C.worked))}function _(S){S&&r.release(S);var A=i;A&&s<=n?o.paused?s--:(l===i&&(l=null),i=A.next,A.next=null,e.call(t,A.value,A.worked),l===null&&o.empty()):--s===0&&o.drain()}function E(){i=null,l=null,o.drain=fs}function v(){i=null,l=null,o.drain(),o.drain=fs}function g(S){a=S}}function fs(){}function yle(){this.value=null,this.callback=fs,this.next=null,this.release=fs,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var i=t.callback,l=t.errorHandler,s=t.value;t.value=null,t.callback=fs,t.errorHandler&&l(n,s),i.call(t.context,n,r),t.release(t)}}function gle(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(c,f){e.call(this,c).then(function(d){f(null,d)},f)}var i=NO(t,r,n),l=i.push,s=i.unshift;return i.push=a,i.unshift=o,i.drained=u,i;function a(c){var f=new Promise(function(d,h){l(c,function(m,x){if(m){h(m);return}d(x)})});return f.catch(fs),f}function o(c){var f=new Promise(function(d,h){s(c,function(m,x){if(m){h(m);return}d(x)})});return f.catch(fs),f}function u(){if(i.idle())return new Promise(function(d){d()});var c=i.drain,f=new Promise(function(d){i.drain=function(){c(),d()}});return f}}Sm.exports=NO;Sm.exports.promise=gle});var Cm=D((Dke,IO)=>{"use strict";var{inherits:vle,format:Am}=require("util");function L3(t,e,n=Error){if(!t)throw new Error("Avvio error code must not be empty");if(!e)throw new Error("Avvio base error message must not be empty");function r(i,l,s){if(!new.target)return new r(i,l,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",i&&l&&s?this.message=Am(e,i,l,s):i&&l?this.message=Am(e,i,l):i?this.message=Am(e,i):this.message=e}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},vle(r,n),r}IO.exports={createError:L3,AVV_ERR_EXPOSE_ALREADY_DEFINED:L3("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:L3("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:L3("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:L3("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:L3("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:L3("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var DO=D((kke,RO)=>{RO.exports=function t(e,n,r){n===void 0&&(n=""),r||(r={});var i=function(o){var u={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return r.unicode===!1?u[o]:o};typeof e=="string"&&(e={label:e});var l=e.nodes||[],s=(e.label||"").split(`
`),a=`
`+n+(l.length?i("\u2502"):" ")+" ";return n+s.join(a)+`
`+l.map(function(o,u){var c=u===l.length-1,f=o.nodes&&o.nodes.length,d=n+(c?" ":i("\u2502"))+" ";return n+i(c?"\u2514":"\u251C")+i("\u2500")+i(f?"\u252C":"\u2500")+" "+t(o,d,r).slice(n.length+2)}).join("")}});var PO=D((xke,kO)=>{"use strict";var ole=OO(),NO=Symbol("avvio.TimeTree.untrackNode"),Am=Symbol("avvio.TimeTree.trackNode"),RO=Symbol("avvio.TimeTree.getParent"),IO=Symbol("avvio.TimeTree.getNode"),DO=Symbol("avvio.TimeTree.addNode"),Cm=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Am](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[NO](e){this.tableId.delete(e.id);let n=this.tableLabel.get(e.label);if(n.id){this.tableLabel.delete(e.label);return}n.pop(),n.length===0&&this.tableLabel.delete(e.label)}[RO](e){if(e===null)return this.root;let n=this.tableLabel.get(e);return n.id?n:n[n.length-1]}[IO](e){return this.tableId.get(e)}[DO](e,n,r){if(e===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[Am](this.root),this.root.id;let l=this[RO](e),s=`${n}-${Math.random()}`,a={id:s,parent:e,start:r,label:n,nodes:[]};return l.nodes.push(a),this[Am](a),s}start(e,n,r=Date.now()){return this[DO](e,n,r)}stop(e,n=Date.now()){let r=this[IO](e);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[NO](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let e=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(i=>e(i))),r),n=e(this.toJSON());return ole(n)}};kO.exports=Cm});var FO=D((bke,LO)=>{var s0=1e3,a0=s0*60,o0=a0*60,P3=o0*24,ule=P3*7,cle=P3*365.25;LO.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return fle(t);if(n==="number"&&isFinite(t))return e.long?hle(t):ple(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function fle(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*cle;case"weeks":case"week":case"w":return n*ule;case"days":case"day":case"d":return n*P3;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o0;case"minutes":case"minute":case"mins":case"min":case"m":return n*a0;case"seconds":case"second":case"secs":case"sec":case"s":return n*s0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function ple(t){var e=Math.abs(t);return e>=P3?Math.round(t/P3)+"d":e>=o0?Math.round(t/o0)+"h":e>=a0?Math.round(t/a0)+"m":e>=s0?Math.round(t/s0)+"s":t+"ms"}function hle(t){var e=Math.abs(t);return e>=P3?T8(t,e,P3,"day"):e>=o0?T8(t,e,o0,"hour"):e>=a0?T8(t,e,a0,"minute"):e>=s0?T8(t,e,s0,"second"):t+" ms"}function T8(t,e,n,r){var i=e>=n*1.5;return Math.round(t/n)+" "+r+(i?"s":"")}});var Om=D((wke,BO)=>{function dle(t){n.debug=n,n.default=n,n.coerce=o,n.disable=l,n.enable=i,n.enabled=s,n.humanize=FO(),n.destroy=u,Object.keys(t).forEach(c=>{n[c]=t[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=e;function n(c){let f,d=null,h,m;function x(...b){if(!x.enabled)return;let _=x,E=Number(new Date),v=E-(f||E);_.diff=v,_.prev=f,_.curr=E,f=E,b[0]=n.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let g=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(A,C)=>{if(A==="%%")return"%";g++;let N=n.formatters[C];if(typeof N=="function"){let k=b[g];A=N.call(_,k),b.splice(g,1),g--}return A}),n.formatArgs.call(_,b),(_.log||n.log).apply(_,b)}return x.namespace=c,x.useColors=n.useColors(),x.color=n.selectColor(c),x.extend=r,x.destroy=n.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==n.namespaces&&(h=n.namespaces,m=n.enabled(c)),m),set:b=>{d=b}}),typeof n.init=="function"&&n.init(x),x}function r(c,f){let d=n(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),h=d.length;for(f=0;f<h;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function l(){let c=[...n.names.map(a),...n.skips.map(a).map(f=>"-"+f)].join(",");return n.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=n.skips.length;f<d;f++)if(n.skips[f].test(c))return!1;for(f=0,d=n.names.length;f<d;f++)if(n.names[f].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function o(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()), Line truncated
`+l.map(function(o,u){var c=u===l.length-1,f=o.nodes&&o.nodes.length,d=n+(c?" ":i("\u2502"))+" ";return n+i(c?"\u2514":"\u251C")+i("\u2500")+i(f?"\u252C":"\u2500")+" "+t(o,d,r).slice(n.length+2)}).join("")}});var MO=D((Pke,BO)=>{"use strict";var _le=DO(),kO=Symbol("avvio.TimeTree.untrackNode"),Om=Symbol("avvio.TimeTree.trackNode"),PO=Symbol("avvio.TimeTree.getParent"),LO=Symbol("avvio.TimeTree.getNode"),FO=Symbol("avvio.TimeTree.addNode"),Nm=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Om](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[kO](e){this.tableId.delete(e.id);let n=this.tableLabel.get(e.label);if(n.id){this.tableLabel.delete(e.label);return}n.pop(),n.length===0&&this.tableLabel.delete(e.label)}[PO](e){if(e===null)return this.root;let n=this.tableLabel.get(e);return n.id?n:n[n.length-1]}[LO](e){return this.tableId.get(e)}[FO](e,n,r){if(e===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[Om](this.root),this.root.id;let l=this[PO](e),s=`${n}-${Math.random()}`,a={id:s,parent:e,start:r,label:n,nodes:[]};return l.nodes.push(a),this[Om](a),s}start(e,n,r=Date.now()){return this[FO](e,n,r)}stop(e,n=Date.now()){let r=this[LO](e);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[kO](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let e=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(i=>e(i))),r),n=e(this.toJSON());return _le(n)}};BO.exports=Nm});var jO=D((Lke,UO)=>{var o0=1e3,u0=o0*60,c0=u0*60,F3=c0*24,Ele=F3*7,xle=F3*365.25;UO.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return ble(t);if(n==="number"&&isFinite(t))return e.long?Sle(t):wle(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function ble(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*xle;case"weeks":case"week":case"w":return n*Ele;case"days":case"day":case"d":return n*F3;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c0;case"minutes":case"minute":case"mins":case"min":case"m":return n*u0;case"seconds":case"second":case"secs":case"sec":case"s":return n*o0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function wle(t){var e=Math.abs(t);return e>=F3?Math.round(t/F3)+"d":e>=c0?Math.round(t/c0)+"h":e>=u0?Math.round(t/u0)+"m":e>=o0?Math.round(t/o0)+"s":t+"ms"}function Sle(t){var e=Math.abs(t);return e>=F3?C8(t,e,F3,"day"):e>=c0?C8(t,e,c0,"hour"):e>=u0?C8(t,e,u0,"minute"):e>=o0?C8(t,e,o0,"second"):t+" ms"}function C8(t,e,n,r){var i=e>=n*1.5;return Math.round(t/n)+" "+r+(i?"s":"")}});var Im=D((Fke,$O)=>{function Tle(t){n.debug=n,n.default=n,n.coerce=o,n.disable=l,n.enable=i,n.enabled=s,n.humanize=jO(),n.destroy=u,Object.keys(t).forEach(c=>{n[c]=t[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=e;function n(c){let f,d=null,h,m;function x(...b){if(!x.enabled)return;let _=x,E=Number(new Date),v=E-(f||E);_.diff=v,_.prev=f,_.curr=E,f=E,b[0]=n.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let g=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(A,C)=>{if(A==="%%")return"%";g++;let N=n.formatters[C];if(typeof N=="function"){let k=b[g];A=N.call(_,k),b.splice(g,1),g--}return A}),n.formatArgs.call(_,b),(_.log||n.log).apply(_,b)}return x.namespace=c,x.useColors=n.useColors(),x.color=n.selectColor(c),x.extend=r,x.destroy=n.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==n.namespaces&&(h=n.namespaces,m=n.enabled(c)),m),set:b=>{d=b}}),typeof n.init=="function"&&n.init(x),x}function r(c,f){let d=n(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),h=d.length;for(f=0;f<h;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function l(){let c=[...n.names.map(a),...n.skips.map(a).map(f=>"-"+f)].join(",");return n.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=n.skips.length;f<d;f++)if(n.skips[f].test(c))return!1;for(f=0,d=n.names.length;f<d;f++)if(n.names[f].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function o(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()), Line truncated
`).join(`
`+l),t.push(i+"m+"+O8.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Cle()+e+" "+t[0]}function Cle(){return Ai.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ole(...t){return process.stderr.write(C8.format(...t)+`
`)}function Nle(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Rle(){return process.env.DEBUG}function Ile(t){t.inspectOpts={};let e=Object.keys(Ai.inspectOpts);for(let n=0;n<e.length;n++)t.inspectOpts[e[n]]=Ai.inspectOpts[e[n]]}O8.exports=Om()(Ai);var{formatters:qO}=O8.exports;qO.o=function(t){return this.inspectOpts.colors=this.useColors,C8.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qO.O=function(t){return this.inspectOpts.colors=this.useColors,C8.inspect(t,this.inspectOpts)}});var N8=D((Ake,Rm)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Rm.exports=MO():Rm.exports=VO()});var zO=D((Cke,km)=>{"use strict";var Dle=wm(),kle=require("events").EventEmitter,Ple=require("util").inherits,gi=N8()("avvio"),{AVV_ERR_READY_TIMEOUT:Lle}=Tm(),Im=Symbol.for("plugin-meta");function Fle(t,e){return t[Im]&&t[Im].name?t[Im].name:typeof e<"u"&&typeof e!="function"&&e.name?e.name:t.name?t.name:t.toString().split(`
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function Ble(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function c0(t,e,n,r,i){this.started=!1,this.func=e,this.opts=n,this.onFinish=null,this.parent=t,this.timeout=i===void 0?t._timeout:i,this.name=Fle(e,n),this.isAfter=r,this.q=Dle(t,Mle,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Ple(c0,kle);c0.prototype.exec=function(t,e){let n=this.func,r=!1,i=this.name;if(this.parent._error&&!this.isAfter){gi("skipping loading of plugin as parent errored and it is not an after",i),process.nextTick(e);return}if(this.isAfter)this.server=t;else try{this.server=this.parent.override(t,n,this.opts)}catch(o){return gi("override errored",i),e(o)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,gi("exec",i);let l,s=o=>{if(r){gi("loading complete",i);return}this._error=o,gi(o?"exec errored":"exec completed",i),r=!0,l&&clearTimeout(l),e(o)};this.timeout>0&&(gi("setting up timeout",i,this.timeout),l=setTimeout(function(){gi("timed out",i),l=null;let o=new Lle(i);o.fn=n,s(o)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=n(this.server,this.opts,s);a&&typeof a.then=="function"&&(gi("exec: resolving promise",i),a.then(()=>process.nextTick(s),o=>process.nextTick(s,o)))};c0.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let t=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(gi("rejecting promise",this.name,n),this._promise.reject(n)):(gi("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(r,n)}),this.q.resume()},e;return this._promise?e=Promise.resolve():(this._promise=Ble(),e=this._promise.promise,this.server?t():this.on("start",t)),e};c0.prototype.enqueue=function(t,e){gi("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(t,e)};c0.prototype.finish=function(t,e){gi("finish",this.name,t);let n=()=>{this.loaded||(gi("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),n();return}let r=()=>{if(gi("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let i=()=>{gi("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(i,i),this._promise=null}else n();else gi("delayed",this.name),this.q.drain=()=>{gi("drain",this.name),this.q.drain=Ule,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function Mle(t,e){let n=this;process.nextTick(Dm.bind(n),t,e)}function Dm(t,e){if(typeof t.func.then=="function"){t.func.then(r=>{typeof r.default=="function"&&(r=r.default),t.func=r,Dm.call(this,t,e)},e);return}let n=this._current[0];this._current.unshift(t),t.exec(n&&n.server||this._server,r=>{t.finish(r,i=>{this._current.shift(),e(i)})})}function Ule(){}km.exports=c0;km.exports.loadPlugin=Dm});var XO=D((Oke,Mm)=>{"use strict";var GO=wm(),jle=require("events").EventEmitter,$le=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Pm,AVV_ERR_CALLBACK_NOT_FN:F4,AVV_ERR_PLUGIN_NOT_VALID:Hle,AVV_ERR_ROOT_PLG_BOOTED:qle,AVV_ERR_READY_TIMEOUT:Vle}=Tm(),zle=PO(),Bm=zO(),f0=N8()("avvio"),R8=Symbol("kAvvio"),Lm=Symbol("kThenifyDoNotWrap");function Gle(t,e,n){let r=e.expose||{},i=r.use||"use",l=r.after||"after",s=r.ready||"ready",a=r.onClose||"onClose",o=r.close||"close";if(t[i])throw new Pm(i);if(t[l])throw new Pm(l);if(t[s])throw new Pm(s);t[i]=function(u,c){return n.use(u,c),this},Object.defineProperty(t,"then",{get:WO.bind(n)}),t[R8]=!0,t[l]=function(u){return typeof u!="function"?n._loadRegistered():(n.after(Fm(u,this)),this)},t[s]=function(u){if(u&&typeof u!="function")throw new F4(s,typeof u);return n.ready(u?Fm(u,this):void 0)},t[a]=function(u){if(typeof u!="function")throw new F4(a,typeof u);return n.onClose(Yle(u,this)),this},t[o]=function(u){if(u&&typeof u!="function")throw new F4(o,typeof u);return u?(n.close(Fm(u,this)),this):n.close()}}function vi(t,e,n){if(typeof t=="function"&&arguments.length===1&&(n=t,e={},t=null),typeof e=="function"&&(n=e,e={}),e=e||{},!(this instanceof vi)){let r=new vi(t,e,n);return t&&Gle(t,e,r),r}e.autostart!==!1&&(e.autostart=!0),t=t||this,this._timeout=Number(e.timeout)||0,this._server=t,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new zle,this._readyQ=GO(this,JO,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=KO},this._closeQ=GO(this,Xle,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=KO},this._doStart=null,this._root=new Bm(this,Kle.bind(this),e,!1,0),this._root.once("start",(r,i,l)=>{let s=this.pluginTree.start(null,i,l);this._root.onc Line truncated
causes have become circular...`;let r=Zm(t);return r?(e.add(t),n+`
caused by: `+NN(r,e)):n},pae=t=>NN(t,new Set),RN=(t,e,n)=>{if(!j4(t))return"";let r=n?"":t.message||"";if(e.has(t))return r+": ...";let i=Zm(t);if(i){e.add(t);let l=typeof t.cause=="function";return r+(l?"":": ")+RN(i,e,l)}else return r},hae=t=>RN(t,new Set);IN.exports={isErrorLike:j4,getErrorCause:Zm,stackWithCauses:pae,messageWithCauses:hae}});var ty=D(($ke,kN)=>{"use strict";var dae=Symbol("circular-ref-tag"),$8=Symbol("pino-raw-err-ref"),DN=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[$8]},set:function(t){this[$8]=t}}});Object.defineProperty(DN,$8,{writable:!0,value:{}});kN.exports={pinoErrProto:DN,pinoErrorSymbols:{seen:dae,rawSymbol:$8}}});var FN=D((Hke,LN)=>{"use strict";LN.exports=ry;var{messageWithCauses:mae,stackWithCauses:yae,isErrorLike:PN}=ey(),{pinoErrProto:gae,pinoErrorSymbols:vae}=ty(),{seen:ny}=vae,{toString:_ae}=Object.prototype;function ry(t){if(!PN(t))return t;t[ny]=void 0;let e=Object.create(gae);e.type=_ae.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=mae(t),e.stack=yae(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>ry(n)));for(let n in t)if(e[n]===void 0){let r=t[n];PN(r)?n!=="cause"&&!Object.prototype.hasOwnProperty.call(r,ny)&&(e[n]=ry(r)):e[n]=r}return delete t[ny],e.raw=t,e}});var MN=D((qke,BN)=>{"use strict";BN.exports=q8;var{isErrorLike:iy}=ey(),{pinoErrProto:Eae,pinoErrorSymbols:xae}=ty(),{seen:H8}=xae,{toString:bae}=Object.prototype;function q8(t){if(!iy(t))return t;t[H8]=void 0;let e=Object.create(Eae);e.type=bae.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>q8(n))),iy(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,H8)&&(e.cause=q8(t.cause));for(let n in t)if(e[n]===void 0){let r=t[n];iy(r)?Object.prototype.hasOwnProperty.call(r,H8)||(e[n]=q8(r)):e[n]=r}return delete t[H8],e.raw=t,e}});var HN=D((Vke,$N)=>{"use strict";$N.exports={mapHttpRequest:wae,reqSerializer:jN};var ly=Symbol("pino-raw-req-ref"),UN=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[ly]},set:function(t){this[ly]=t}}});Object.defineProperty(UN,ly,{writable:!0,value:{}});function jN(t){let e=t.info||t.socket,n=Object.create(UN);if(n.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),n.method=t.method,t.originalUrl)n.url=t.originalUrl;else{let r=t.path;n.url=typeof r=="string"?r:t.url?t.url.path||t.url:void 0}return t.query&&(n.query=t.query),t.params&&(n.params=t.params),n.headers=t.headers,n.remoteAddress=e&&e.remoteAddress,n.remotePort=e&&e.remotePort,n.raw=t.raw||t,n}function wae(t){return{req:jN(t)}}});var GN=D((zke,zN)=>{"use strict";zN.exports={mapHttpResponse:Sae,resSerializer:VN};var sy=Symbol("pino-raw-res-ref"),qN=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[sy]},set:function(t){this[sy]=t}}});Object.defineProperty(qN,sy,{writable:!0,value:{}});function VN(t){let e=Object.create(qN);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function Sae(t){return{res:VN(t)}}});var oy=D((Gke,KN)=>{"use strict";var ay=FN(),Tae=MN(),V8=HN(),z8=GN();KN.exports={err:ay,errWithCause:Tae,mapHttpRequest:V8.mapHttpRequest,mapHttpResponse:z8.mapHttpResponse,req:V8.reqSerializer,res:z8.resSerializer,wrapErrorSerializer:function(e){return e===ay?e:function(r){return e(ay(r))}},wrapRequestSerializer:function(e){return e===V8.reqSerializer?e:function(r){return e(V8.reqSerializer(r))}},wrapResponseSerializer:function(e){return e===z8.resSerializer?e:function(r){return e(z8.resSerializer(r))}}}});var uy=D((Kke,WN)=>{"use strict";function Aae(t,e){return e}WN.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=Aae;let n=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(n))return;let r=n.slice(2),i=[];for(let l of r)l&&i.push(l.getFileName());return i}});var XN=D((Wke,JN)=>{"use strict";JN.exports=Cae;function Cae(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:n=r=>`fast-redact \u2013 Invalid path (${r})`}=t;return function({paths:i}){i.forEach(l=>{if(typeof l!="string")throw Error(e());try{if(/〇/.test(l))throw Error();let s=(l[0]==="["?"":".")+l.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").r Line truncated
`+l),t.push(i+"m+"+I8.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mle()+e+" "+t[0]}function Mle(){return Oi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ule(...t){return process.stderr.write(N8.format(...t)+`
`)}function jle(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $le(){return process.env.DEBUG}function Hle(t){t.inspectOpts={};let e=Object.keys(Oi.inspectOpts);for(let n=0;n<e.length;n++)t.inspectOpts[e[n]]=Oi.inspectOpts[e[n]]}I8.exports=Im()(Oi);var{formatters:KO}=I8.exports;KO.o=function(t){return this.inspectOpts.colors=this.useColors,N8.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};KO.O=function(t){return this.inspectOpts.colors=this.useColors,N8.inspect(t,this.inspectOpts)}});var R8=D((Uke,Dm)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Dm.exports=HO():Dm.exports=JO()});var WO=D((jke,Lm)=>{"use strict";var qle=Tm(),Vle=require("events").EventEmitter,zle=require("util").inherits,_i=R8()("avvio"),{AVV_ERR_READY_TIMEOUT:Gle}=Cm(),km=Symbol.for("plugin-meta");function Kle(t,e){return t[km]&&t[km].name?t[km].name:typeof e<"u"&&typeof e!="function"&&e.name?e.name:t.name?t.name:t.toString().split(`
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function Jle(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function p0(t,e,n,r,i){this.started=!1,this.func=e,this.opts=n,this.onFinish=null,this.parent=t,this.timeout=i===void 0?t._timeout:i,this.name=Kle(e,n),this.isAfter=r,this.q=qle(t,Wle,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}zle(p0,Vle);p0.prototype.exec=function(t,e){let n=this.func,r=!1,i=this.name;if(this.parent._error&&!this.isAfter){_i("skipping loading of plugin as parent errored and it is not an after",i),process.nextTick(e);return}if(this.isAfter)this.server=t;else try{this.server=this.parent.override(t,n,this.opts)}catch(o){return _i("override errored",i),e(o)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,_i("exec",i);let l,s=o=>{if(r){_i("loading complete",i);return}this._error=o,_i(o?"exec errored":"exec completed",i),r=!0,l&&clearTimeout(l),e(o)};this.timeout>0&&(_i("setting up timeout",i,this.timeout),l=setTimeout(function(){_i("timed out",i),l=null;let o=new Gle(i);o.fn=n,s(o)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=n(this.server,this.opts,s);a&&typeof a.then=="function"&&(_i("exec: resolving promise",i),a.then(()=>process.nextTick(s),o=>process.nextTick(s,o)))};p0.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let t=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(_i("rejecting promise",this.name,n),this._promise.reject(n)):(_i("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(r,n)}),this.q.resume()},e;return this._promise?e=Promise.resolve():(this._promise=Jle(),e=this._promise.promise,this.server?t():this.on("start",t)),e};p0.prototype.enqueue=function(t,e){_i("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(t,e)};p0.prototype.finish=function(t,e){_i("finish",this.name,t);let n=()=>{this.loaded||(_i("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),n();return}let r=()=>{if(_i("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let i=()=>{_i("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(i,i),this._promise=null}else n();else _i("delayed",this.name),this.q.drain=()=>{_i("drain",this.name),this.q.drain=Xle,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function Wle(t,e){let n=this;process.nextTick(Pm.bind(n),t,e)}function Pm(t,e){if(typeof t.func.then=="function"){t.func.then(r=>{typeof r.default=="function"&&(r=r.default),t.func=r,Pm.call(this,t,e)},e);return}let n=this._current[0];this._current.unshift(t),t.exec(n&&n.server||this._server,r=>{t.finish(r,i=>{this._current.shift(),e(i)})})}function Xle(){}Lm.exports=p0;Lm.exports.loadPlugin=Pm});var eN=D(($ke,jm)=>{"use strict";var XO=Tm(),Yle=require("events").EventEmitter,Qle=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Fm,AVV_ERR_CALLBACK_NOT_FN:M4,AVV_ERR_PLUGIN_NOT_VALID:Zle,AVV_ERR_ROOT_PLG_BOOTED:ese,AVV_ERR_READY_TIMEOUT:tse}=Cm(),nse=MO(),Um=WO(),h0=R8()("avvio"),D8=Symbol("kAvvio"),Bm=Symbol("kThenifyDoNotWrap");function rse(t,e,n){let r=e.expose||{},i=r.use||"use",l=r.after||"after",s=r.ready||"ready",a=r.onClose||"onClose",o=r.close||"close";if(t[i])throw new Fm(i);if(t[l])throw new Fm(l);if(t[s])throw new Fm(s);t[i]=function(u,c){return n.use(u,c),this},Object.defineProperty(t,"then",{get:QO.bind(n)}),t[D8]=!0,t[l]=function(u){return typeof u!="function"?n._loadRegistered():(n.after(Mm(u,this)),this)},t[s]=function(u){if(u&&typeof u!="function")throw new M4(s,typeof u);return n.ready(u?Mm(u,this):void 0)},t[a]=function(u){if(typeof u!="function")throw new M4(a,typeof u);return n.onClose(ose(u,this)),this},t[o]=function(u){if(u&&typeof u!="function")throw new M4(o,typeof u);return u?(n.close(Mm(u,this)),this):n.close()}}function Ei(t,e,n){if(typeof t=="function"&&arguments.length===1&&(n=t,e={},t=null),typeof e=="function"&&(n=e,e={}),e=e||{},!(this instanceof Ei)){let r=new Ei(t,e,n);return t&&rse(t,e,r),r}e.autostart!==!1&&(e.autostart=!0),t=t||this,this._timeout=Number(e.timeout)||0,this._server=t,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new nse,this._readyQ=XO(this,ZO,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=YO},this._closeQ=XO(this,ase,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=YO},this._doStart=null,this._root=new Um(this,ise.bind(this),e,!1,0),this._root.once("start",(r,i,l)=>{let s=this.pluginTree.start(null,i,l);this._root.onc Line truncated
causes have become circular...`;let r=ty(t);return r?(e.add(t),n+`
caused by: `+kN(r,e)):n},wae=t=>kN(t,new Set),PN=(t,e,n)=>{if(!H4(t))return"";let r=n?"":t.message||"";if(e.has(t))return r+": ...";let i=ty(t);if(i){e.add(t);let l=typeof t.cause=="function";return r+(l?"":": ")+PN(i,e,l)}else return r},Sae=t=>PN(t,new Set);LN.exports={isErrorLike:H4,getErrorCause:ty,stackWithCauses:wae,messageWithCauses:Sae}});var ry=D((ePe,BN)=>{"use strict";var Tae=Symbol("circular-ref-tag"),q8=Symbol("pino-raw-err-ref"),FN=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[q8]},set:function(t){this[q8]=t}}});Object.defineProperty(FN,q8,{writable:!0,value:{}});BN.exports={pinoErrProto:FN,pinoErrorSymbols:{seen:Tae,rawSymbol:q8}}});var jN=D((tPe,UN)=>{"use strict";UN.exports=ly;var{messageWithCauses:Aae,stackWithCauses:Cae,isErrorLike:MN}=ny(),{pinoErrProto:Oae,pinoErrorSymbols:Nae}=ry(),{seen:iy}=Nae,{toString:Iae}=Object.prototype;function ly(t){if(!MN(t))return t;t[iy]=void 0;let e=Object.create(Oae);e.type=Iae.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=Aae(t),e.stack=Cae(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>ly(n)));for(let n in t)if(e[n]===void 0){let r=t[n];MN(r)?n!=="cause"&&!Object.prototype.hasOwnProperty.call(r,iy)&&(e[n]=ly(r)):e[n]=r}return delete t[iy],e.raw=t,e}});var HN=D((nPe,$N)=>{"use strict";$N.exports=z8;var{isErrorLike:sy}=ny(),{pinoErrProto:Rae,pinoErrorSymbols:Dae}=ry(),{seen:V8}=Dae,{toString:kae}=Object.prototype;function z8(t){if(!sy(t))return t;t[V8]=void 0;let e=Object.create(Rae);e.type=kae.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>z8(n))),sy(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,V8)&&(e.cause=z8(t.cause));for(let n in t)if(e[n]===void 0){let r=t[n];sy(r)?Object.prototype.hasOwnProperty.call(r,V8)||(e[n]=z8(r)):e[n]=r}return delete t[V8],e.raw=t,e}});var GN=D((rPe,zN)=>{"use strict";zN.exports={mapHttpRequest:Pae,reqSerializer:VN};var ay=Symbol("pino-raw-req-ref"),qN=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[ay]},set:function(t){this[ay]=t}}});Object.defineProperty(qN,ay,{writable:!0,value:{}});function VN(t){let e=t.info||t.socket,n=Object.create(qN);if(n.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),n.method=t.method,t.originalUrl)n.url=t.originalUrl;else{let r=t.path;n.url=typeof r=="string"?r:t.url?t.url.path||t.url:void 0}return t.query&&(n.query=t.query),t.params&&(n.params=t.params),n.headers=t.headers,n.remoteAddress=e&&e.remoteAddress,n.remotePort=e&&e.remotePort,n.raw=t.raw||t,n}function Pae(t){return{req:VN(t)}}});var XN=D((iPe,WN)=>{"use strict";WN.exports={mapHttpResponse:Lae,resSerializer:JN};var oy=Symbol("pino-raw-res-ref"),KN=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[oy]},set:function(t){this[oy]=t}}});Object.defineProperty(KN,oy,{writable:!0,value:{}});function JN(t){let e=Object.create(KN);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function Lae(t){return{res:JN(t)}}});var cy=D((lPe,YN)=>{"use strict";var uy=jN(),Fae=HN(),G8=GN(),K8=XN();YN.exports={err:uy,errWithCause:Fae,mapHttpRequest:G8.mapHttpRequest,mapHttpResponse:K8.mapHttpResponse,req:G8.reqSerializer,res:K8.resSerializer,wrapErrorSerializer:function(e){return e===uy?e:function(r){return e(uy(r))}},wrapRequestSerializer:function(e){return e===G8.reqSerializer?e:function(r){return e(G8.reqSerializer(r))}},wrapResponseSerializer:function(e){return e===K8.resSerializer?e:function(r){return e(K8.resSerializer(r))}}}});var fy=D((sPe,QN)=>{"use strict";function Bae(t,e){return e}QN.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=Bae;let n=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(n))return;let r=n.slice(2),i=[];for(let l of r)l&&i.push(l.getFileName());return i}});var eI=D((aPe,ZN)=>{"use strict";ZN.exports=Mae;function Mae(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:n=r=>`fast-redact \u2013 Invalid path (${r})`}=t;return function({paths:i}){i.forEach(l=>{if(typeof l!="string")throw Error(e());try{if(/〇/.test(l))throw Error();let s=(l[0]==="["?"":".")+l.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").r Line truncated
'use strict'
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
const \u3007 = null;
o${s}
if ([o${s}].length !== 1) throw Error()`)()}catch{throw Error(n(l))}})}}});var G8=D((Jke,YN)=>{"use strict";YN.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var ZN=D((Xke,QN)=>{"use strict";var Oae=G8();QN.exports=Nae;function Nae({paths:t}){let e=[];var n=0;let r=t.reduce(function(i,l,s){var a=l.match(Oae).map(c=>c.replace(/'|"|`/g,""));let o=l[0]==="[";a=a.map(c=>c[0]==="["?c.substr(1,c.length-2):c);let u=a.indexOf("*");if(u>-1){let c=a.slice(0,u),f=c.join("."),d=a.slice(u+1,a.length),h=d.length>0;n++,e.push({before:c,beforeStr:f,after:d,nested:h})}else i[l]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(l),leadingBracket:o};return i},{});return{wildcards:e,wcLen:n,secret:r}}});var tR=D((Yke,eR)=>{"use strict";var Rae=G8();eR.exports=Iae;function Iae({secret:t,serialize:e,wcLen:n,strict:r,isCensorFct:i,censorFctTakesPath:l},s){let a=Function("o",`
if ([o${s}].length !== 1) throw Error()`)()}catch{throw Error(n(l))}})}}});var J8=D((oPe,tI)=>{"use strict";tI.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var rI=D((uPe,nI)=>{"use strict";var Uae=J8();nI.exports=jae;function jae({paths:t}){let e=[];var n=0;let r=t.reduce(function(i,l,s){var a=l.match(Uae).map(c=>c.replace(/'|"|`/g,""));let o=l[0]==="[";a=a.map(c=>c[0]==="["?c.substr(1,c.length-2):c);let u=a.indexOf("*");if(u>-1){let c=a.slice(0,u),f=c.join("."),d=a.slice(u+1,a.length),h=d.length>0;n++,e.push({before:c,beforeStr:f,after:d,nested:h})}else i[l]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(l),leadingBracket:o};return i},{});return{wildcards:e,wcLen:n,secret:r}}});var lI=D((cPe,iI)=>{"use strict";var $ae=J8();iI.exports=Hae;function Hae({secret:t,serialize:e,wcLen:n,strict:r,isCensorFct:i,censorFctTakesPath:l},s){let a=Function("o",`
if (typeof o !== 'object' || o == null) {
${Lae(r,e)}
${Gae(r,e)}
}
const { censor, secret } = this
${Dae(t,i,l)}
${qae(t,i,l)}
this.compileRestore()
${kae(n>0,i,l)}
${Pae(e)}
`).bind(s);return e===!1&&(a.restore=o=>s.restore(o)),a}function Dae(t,e,n){return Object.keys(t).map(r=>{let{escPath:i,leadingBracket:l,path:s}=t[r],a=l?1:0,o=l?"":".",u=[];for(var c;(c=Rae.exec(r))!==null;){let[,m]=c,{index:x,input:b}=c;x>a&&u.push(b.substring(0,x-(m?0:1)))}var f=u.map(m=>`o${o}${m}`).join(" && ");f.length===0?f+=`o${o}${r} != null`:f+=` && o${o}${r} != null`;let d=`
${Vae(n>0,i,l)}
${zae(e)}
`).bind(s);return e===!1&&(a.restore=o=>s.restore(o)),a}function qae(t,e,n){return Object.keys(t).map(r=>{let{escPath:i,leadingBracket:l,path:s}=t[r],a=l?1:0,o=l?"":".",u=[];for(var c;(c=$ae.exec(r))!==null;){let[,m]=c,{index:x,input:b}=c;x>a&&u.push(b.substring(0,x-(m?0:1)))}var f=u.map(m=>`o${o}${m}`).join(" && ");f.length===0?f+=`o${o}${r} != null`:f+=` && o${o}${r} != null`;let d=`
switch (true) {
${u.reverse().map(m=>`
case o${o}${m} === censor:
@@ -43,7 +43,7 @@ caused by: `+NN(r,e)):n},pae=t=>NN(t,new Set),RN=(t,e,n)=>{if(!j4(t))return"";le
}
}
`}).join(`
`)}function kae(t,e,n){return t===!0?`
`)}function Vae(t,e,n){return t===!0?`
{
const { wildcards, wcLen, groupRedact, nestedRedact } = this
for (var i = 0; i < wcLen; i++) {
@@ -54,16 +54,16 @@ caused by: `+NN(r,e)):n},pae=t=>NN(t,new Set),RN=(t,e,n)=>{if(!j4(t))return"";le
} else secret[beforeStr] = groupRedact(o, before, censor, ${e}, ${n})
}
}
`:""}function Pae(t){return t===!1?"return o":`
`:""}function zae(t){return t===!1?"return o":`
var s = this.serialize(o)
this.restore(o)
return s
`}function Lae(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var fy=D((Qke,iR)=>{"use strict";iR.exports={groupRedact:Bae,groupRestore:Fae,nestedRedact:Uae,nestedRestore:Mae};function Fae({keys:t,values:e,target:n}){if(n==null)return;let r=t.length;for(var i=0;i<r;i++){let l=t[i];n[l]=e[i]}}function Bae(t,e,n,r,i){let l=nR(t,e);if(l==null)return{keys:null,values:null,target:null,flat:!0};let s=Object.keys(l),a=s.length,o=e.length,u=i?[...e]:void 0,c=new Array(a);for(var f=0;f<a;f++){let d=s[f];c[f]=l[d],i?(u[o]=d,l[d]=n(l[d],u)):r?l[d]=n(l[d]):l[d]=n}return{keys:s,values:c,target:l,flat:!0}}function Mae(t){for(let e=0;e<t.length;e++){let{target:n,path:r,value:i}=t[e],l=n;for(let s=r.length-1;s>0;s--)l=l[r[s]];l[r[0]]=i}}function Uae(t,e,n,r,i,l,s){let a=nR(e,n);if(a==null)return;let o=Object.keys(a),u=o.length;for(var c=0;c<u;c++){let f=o[c];jae(t,a,f,n,r,i,l,s)}return t}function cy(t,e){return t!=null?"hasOwn"in Object?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e):!1}function jae(t,e,n,r,i,l,s,a){let o=i.length,u=o-1,c=n;var f=-1,d,h,m,x=null,b=null,_,E,v=!1,g=0,S=0,A=$ae();if(m=d=e[n],typeof d=="object"){for(;d!=null&&++f<o&&(S+=1,n=i[f],x=m,!(n!=="*"&&!b&&!(typeof d=="object"&&n in d)));)if(!(n==="*"&&(b==="*"&&(v=!0),b=n,f!==u))){if(b){let N=Object.keys(d);for(var C=0;C<N.length;C++){let k=N[C];if(E=d[k],_=n==="*",v)A=t2(A,k,S),g=f,m=rR(E,g-1,n,r,i,l,s,a,c,d,h,m,_,k,f,u,A,t,e[c],S+1);else if(_||typeof E=="object"&&E!==null&&n in E){if(_?m=E:m=E[n],h=f!==u?m:s?a?l(m,[...r,c,...i]):l(m):l,_){let P=$4(t2(A,k,S),m,e[c]);t.push(P),d[k]=h}else if(E[n]!==h)if(h===void 0&&l!==void 0||cy(E,n)&&h===m)A=t2(A,k,S);else{A=t2(A,k,S);let P=$4(t2(A,n,S+1),m,e[c]);t.push(P),E[n]=h}}}b=null}else{if(m=d[n],A=t2(A,n,S),h=f!==u?m:s?a?l(m,[...r,c,...i]):l(m):l,!(cy(d,n)&&h===m||h===void 0&&l!==void 0)){let N=$4(A,m,e[c]);t.push(N),d[n]=h}d=d[n]}if(typeof d!="object")break}}}function nR(t,e){for(var n=-1,r=e.length,i=t;i!=null&&++n<r;)i=i[e[n]];return i}function rR(t,e,n,r,i,l,s,a,o,u,c,f,d,h,m,x,b,_,E,v){if(e===0&&(d||typeof t=="object"&&t!==null&&n in t)){if(d?f=t:f=t[n],c=m!==x?f:s?a?l(f,[...r,o,...i]):l(f):l,d){let g=$4(b,f,E);_.push(g),u[h]=c}else if(t[n]!==c){if(!(c===void 0&&l!==void 0||cy(t,n)&&c===f)){let g=$4(t2(b,n,v+1),f,E);_.push(g),t[n]=c}}}for(let g in t)typeof t[g]=="object"&&(b=t2(b,g,v),rR(t[g],e-1,n,r,i,l,s,a,o,u,c,f,d,h,m,x,b,_,E,v+1))}function $ae(){return{parent:null,key:null,children:[],depth:0}}function t2(t,e,n){if(t.depth===n)return t2(t.parent,e,n);var r={parent:t,key:e,depth:n,children:[]};return t.children.push(r),r}function $4(t,e,n){let r=t,i=[];do i.push(r.key),r=r.parent;while(r.parent!=null);return{path:i,value:e,target:n}}});var sR=D((Zke,lR)=>{"use strict";var{groupRestore:Hae,nestedRestore:qae}=fy();lR.exports=Vae;function Vae({secret:t,wcLen:e}){return function(){if(this.restore)return;let r=Object.keys(t),i=zae(t,r),l=e>0,s=l?{secret:t,groupRestore:Hae,nestedRestore:qae}:{secret:t};this.restore=Function("o",Gae(i,r,l)).bind(s)}}function zae(t,e){return e.map(n=>{let{circle:r,escPath:i,leadingBracket:l}=t[n],a=r?`o.${r} = secret[${i}].val`:`o${l?"":"."}${n} = secret[${i}].val`,o=`secret[${i}].val = undefined`;return`
`}function Gae(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var hy=D((fPe,oI)=>{"use strict";oI.exports={groupRedact:Jae,groupRestore:Kae,nestedRedact:Xae,nestedRestore:Wae};function Kae({keys:t,values:e,target:n}){if(n==null)return;let r=t.length;for(var i=0;i<r;i++){let l=t[i];n[l]=e[i]}}function Jae(t,e,n,r,i){let l=sI(t,e);if(l==null)return{keys:null,values:null,target:null,flat:!0};let s=Object.keys(l),a=s.length,o=e.length,u=i?[...e]:void 0,c=new Array(a);for(var f=0;f<a;f++){let d=s[f];c[f]=l[d],i?(u[o]=d,l[d]=n(l[d],u)):r?l[d]=n(l[d]):l[d]=n}return{keys:s,values:c,target:l,flat:!0}}function Wae(t){for(let e=0;e<t.length;e++){let{target:n,path:r,value:i}=t[e],l=n;for(let s=r.length-1;s>0;s--)l=l[r[s]];l[r[0]]=i}}function Xae(t,e,n,r,i,l,s){let a=sI(e,n);if(a==null)return;let o=Object.keys(a),u=o.length;for(var c=0;c<u;c++){let f=o[c];Yae(t,a,f,n,r,i,l,s)}return t}function py(t,e){return t!=null?"hasOwn"in Object?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e):!1}function Yae(t,e,n,r,i,l,s,a){let o=i.length,u=o-1,c=n;var f=-1,d,h,m,x=null,b=null,_,E,v=!1,g=0,S=0,A=Qae();if(m=d=e[n],typeof d=="object"){for(;d!=null&&++f<o&&(S+=1,n=i[f],x=m,!(n!=="*"&&!b&&!(typeof d=="object"&&n in d)));)if(!(n==="*"&&(b==="*"&&(v=!0),b=n,f!==u))){if(b){let N=Object.keys(d);for(var C=0;C<N.length;C++){let k=N[C];if(E=d[k],_=n==="*",v)A=n2(A,k,S),g=f,m=aI(E,g-1,n,r,i,l,s,a,c,d,h,m,_,k,f,u,A,t,e[c],S+1);else if(_||typeof E=="object"&&E!==null&&n in E){if(_?m=E:m=E[n],h=f!==u?m:s?a?l(m,[...r,c,...i]):l(m):l,_){let P=q4(n2(A,k,S),m,e[c]);t.push(P),d[k]=h}else if(E[n]!==h)if(h===void 0&&l!==void 0||py(E,n)&&h===m)A=n2(A,k,S);else{A=n2(A,k,S);let P=q4(n2(A,n,S+1),m,e[c]);t.push(P),E[n]=h}}}b=null}else{if(m=d[n],A=n2(A,n,S),h=f!==u?m:s?a?l(m,[...r,c,...i]):l(m):l,!(py(d,n)&&h===m||h===void 0&&l!==void 0)){let N=q4(A,m,e[c]);t.push(N),d[n]=h}d=d[n]}if(typeof d!="object")break}}}function sI(t,e){for(var n=-1,r=e.length,i=t;i!=null&&++n<r;)i=i[e[n]];return i}function aI(t,e,n,r,i,l,s,a,o,u,c,f,d,h,m,x,b,_,E,v){if(e===0&&(d||typeof t=="object"&&t!==null&&n in t)){if(d?f=t:f=t[n],c=m!==x?f:s?a?l(f,[...r,o,...i]):l(f):l,d){let g=q4(b,f,E);_.push(g),u[h]=c}else if(t[n]!==c){if(!(c===void 0&&l!==void 0||py(t,n)&&c===f)){let g=q4(n2(b,n,v+1),f,E);_.push(g),t[n]=c}}}for(let g in t)typeof t[g]=="object"&&(b=n2(b,g,v),aI(t[g],e-1,n,r,i,l,s,a,o,u,c,f,d,h,m,x,b,_,E,v+1))}function Qae(){return{parent:null,key:null,children:[],depth:0}}function n2(t,e,n){if(t.depth===n)return n2(t.parent,e,n);var r={parent:t,key:e,depth:n,children:[]};return t.children.push(r),r}function q4(t,e,n){let r=t,i=[];do i.push(r.key),r=r.parent;while(r.parent!=null);return{path:i,value:e,target:n}}});var cI=D((pPe,uI)=>{"use strict";var{groupRestore:Zae,nestedRestore:e2e}=hy();uI.exports=t2e;function t2e({secret:t,wcLen:e}){return function(){if(this.restore)return;let r=Object.keys(t),i=n2e(t,r),l=e>0,s=l?{secret:t,groupRestore:Zae,nestedRestore:e2e}:{secret:t};this.restore=Function("o",r2e(i,r,l)).bind(s)}}function n2e(t,e){return e.map(n=>{let{circle:r,escPath:i,leadingBracket:l}=t[n],a=r?`o.${r} = secret[${i}].val`:`o${l?"":"."}${n} = secret[${i}].val`,o=`secret[${i}].val = undefined`;return`
if (secret[${i}].val !== undefined) {
try { ${a} } catch (e) {}
${o}
}
`}).join("")}function Gae(t,e,n){return`
`}).join("")}function r2e(t,e,n){return`
const secret = this.secret
${n===!0?`
const keys = Object.keys(secret)
@@ -78,34 +78,34 @@ caused by: `+NN(r,e)):n},pae=t=>NN(t,new Set),RN=(t,e,n)=>{if(!j4(t))return"";le
`:""}
${t}
return o
`}});var oR=D((ePe,aR)=>{"use strict";aR.exports=Kae;function Kae(t){let{secret:e,censor:n,compileRestore:r,serialize:i,groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}=t,u=[{secret:e,censor:n,compileRestore:r}];return i!==!1&&u.push({serialize:i}),o>0&&u.push({groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}),Object.assign(...u)}});var fR=D((tPe,cR)=>{"use strict";var uR=XN(),Wae=ZN(),Jae=tR(),Xae=sR(),{groupRedact:Yae,nestedRedact:Qae}=fy(),Zae=oR(),e2e=G8(),t2e=uR(),py=t=>t;py.restore=py;var n2e="[REDACTED]";hy.rx=e2e;hy.validator=uR;cR.exports=hy;function hy(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,r=t.remove;if(r===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let i=r===!0?void 0:"censor"in t?t.censor:n2e,l=typeof i=="function",s=l&&i.length>1;if(e.length===0)return n||py;t2e({paths:e,serialize:n,censor:i});let{wildcards:a,wcLen:o,secret:u}=Wae({paths:e,censor:i}),c=Xae({secret:u,wcLen:o}),f="strict"in t?t.strict:!0;return Jae({secret:u,wcLen:o,serialize:n,strict:f,isCensorFct:l,censorFctTakesPath:s},Zae({secret:u,censor:i,compileRestore:c,serialize:n,groupRedact:Yae,nestedRedact:Qae,wildcards:a,wcLen:o}))}});var m0=D((nPe,pR)=>{"use strict";var r2e=Symbol("pino.setLevel"),i2e=Symbol("pino.getLevel"),l2e=Symbol("pino.levelVal"),s2e=Symbol("pino.levelComp"),a2e=Symbol("pino.useLevelLabels"),o2e=Symbol("pino.useOnlyCustomLevels"),u2e=Symbol("pino.mixin"),c2e=Symbol("pino.lsCache"),f2e=Symbol("pino.chindings"),p2e=Symbol("pino.asJson"),h2e=Symbol("pino.write"),d2e=Symbol("pino.redactFmt"),m2e=Symbol("pino.time"),y2e=Symbol("pino.timeSliceIndex"),g2e=Symbol("pino.stream"),v2e=Symbol("pino.stringify"),_2e=Symbol("pino.stringifySafe"),E2e=Symbol("pino.stringifiers"),x2e=Symbol("pino.end"),b2e=Symbol("pino.formatOpts"),w2e=Symbol("pino.messageKey"),S2e=Symbol("pino.errorKey"),T2e=Symbol("pino.nestedKey"),A2e=Symbol("pino.nestedKeyStr"),C2e=Symbol("pino.mixinMergeStrategy"),O2e=Symbol("pino.msgPrefix"),N2e=Symbol("pino.wildcardFirst"),R2e=Symbol.for("pino.serializers"),I2e=Symbol.for("pino.formatters"),D2e=Symbol.for("pino.hooks"),k2e=Symbol.for("pino.metadata");pR.exports={setLevelSym:r2e,getLevelSym:i2e,levelValSym:l2e,levelCompSym:s2e,useLevelLabelsSym:a2e,mixinSym:u2e,lsCacheSym:c2e,chindingsSym:f2e,asJsonSym:p2e,writeSym:h2e,serializersSym:R2e,redactFmtSym:d2e,timeSym:m2e,timeSliceIndexSym:y2e,streamSym:g2e,stringifySym:v2e,stringifySafeSym:_2e,stringifiersSym:E2e,endSym:x2e,formatOptsSym:b2e,messageKeySym:w2e,errorKeySym:S2e,nestedKeySym:T2e,wildcardFirstSym:N2e,needsMetadataGsym:k2e,useOnlyCustomLevelsSym:o2e,formattersSym:I2e,hooksSym:D2e,nestedKeyStrSym:A2e,mixinMergeStrategySym:C2e,msgPrefixSym:O2e}});var yy=D((rPe,yR)=>{"use strict";var my=fR(),{redactFmtSym:P2e,wildcardFirstSym:K8}=m0(),{rx:dy,validator:L2e}=my,hR=L2e({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),dR="[Redacted]",mR=!1;function F2e(t,e){let{paths:n,censor:r}=B2e(t),i=n.reduce((a,o)=>{dy.lastIndex=0;let u=dy.exec(o),c=dy.exec(o),f=u[1]!==void 0?u[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):u[0];if(f==="*"&&(f=K8),c===null)return a[f]=null,a;if(a[f]===null)return a;let{index:d}=c,h=`${o.substr(d,o.length-1)}`;return a[f]=a[f]||[],f!==K8&&a[f].length===0&&a[f].push(...a[K8]||[]),f===K8&&Object.keys(a).forEach(function(m){a[m]&&a[m].push(h)}),a[f].push(h),a},{}),l={[P2e]:my({paths:n,censor:r,serialize:e,strict:mR})},s=(...a)=>e(typeof r=="function"?r(...a):r);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((a,o)=>{if(i[o]===null)a[o]=u=>s(u,[o]);else{let u=typeof r=="function"?(c,f)=>r(c,[o,...f]):r;a[o]=my({paths:i[o],censor:u,serialize:e,strict:mR})}return a},l)}function B2e(t){if(Array.isArray(t))return t={paths:t,censor:dR},hR(t),t;let{paths:e,censor:n=dR,remove:r}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return r===!0&&(n=void 0),hR({paths:e,censor:n}),{paths:e,censor:n}}yR.exports=F2e});var vR=D((iPe,gR)=>{"use strict";var M2e=()=>"",U2e=()=>`,"time":${Date.now()}`,j2e=()=>`,"time":${Math.round(Date.now()/1e3)}`,$2e=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;gR.exports={nullTime:M2e,epochTime:U2e,unixTime:j2e,isoTime:$2e}});var ER=D((lPe,_R)=>{"use strict";function H2e(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}_R.exports=q2e;function q2e(t,e,n){var r=n&&n.stringify||H2e,i=1;if(typeof t=="object"&&t!==null){var l=e.length+i;if(l===1)return t;var s=new Array(l);s[0]=r(t);for(var a=1;a<l;a++)s[a]=r(e[a]);return s.join(" ")}if(typeof t!="string")return t;var o=e.length;if(o===0)return t;for(var u="",c=1-i,f=-1,d=t&&t.length||0,h=0;h<d;){if(t.charCodeAt(h)===37&&h+1<d){switch(f=f>-1?f:0,t.charCodeAt(h+1)){case 100:case 102:if(c>=o||e[c]==null)Line truncated
`}});var pI=D((hPe,fI)=>{"use strict";fI.exports=i2e;function i2e(t){let{secret:e,censor:n,compileRestore:r,serialize:i,groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}=t,u=[{secret:e,censor:n,compileRestore:r}];return i!==!1&&u.push({serialize:i}),o>0&&u.push({groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}),Object.assign(...u)}});var mI=D((dPe,dI)=>{"use strict";var hI=eI(),l2e=rI(),s2e=lI(),a2e=cI(),{groupRedact:o2e,nestedRedact:u2e}=hy(),c2e=pI(),f2e=J8(),p2e=hI(),dy=t=>t;dy.restore=dy;var h2e="[REDACTED]";my.rx=f2e;my.validator=hI;dI.exports=my;function my(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,r=t.remove;if(r===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let i=r===!0?void 0:"censor"in t?t.censor:h2e,l=typeof i=="function",s=l&&i.length>1;if(e.length===0)return n||dy;p2e({paths:e,serialize:n,censor:i});let{wildcards:a,wcLen:o,secret:u}=l2e({paths:e,censor:i}),c=a2e({secret:u,wcLen:o}),f="strict"in t?t.strict:!0;return s2e({secret:u,wcLen:o,serialize:n,strict:f,isCensorFct:l,censorFctTakesPath:s},c2e({secret:u,censor:i,compileRestore:c,serialize:n,groupRedact:o2e,nestedRedact:u2e,wildcards:a,wcLen:o}))}});var g0=D((mPe,yI)=>{"use strict";var d2e=Symbol("pino.setLevel"),m2e=Symbol("pino.getLevel"),y2e=Symbol("pino.levelVal"),g2e=Symbol("pino.levelComp"),v2e=Symbol("pino.useLevelLabels"),_2e=Symbol("pino.useOnlyCustomLevels"),E2e=Symbol("pino.mixin"),x2e=Symbol("pino.lsCache"),b2e=Symbol("pino.chindings"),w2e=Symbol("pino.asJson"),S2e=Symbol("pino.write"),T2e=Symbol("pino.redactFmt"),A2e=Symbol("pino.time"),C2e=Symbol("pino.timeSliceIndex"),O2e=Symbol("pino.stream"),N2e=Symbol("pino.stringify"),I2e=Symbol("pino.stringifySafe"),R2e=Symbol("pino.stringifiers"),D2e=Symbol("pino.end"),k2e=Symbol("pino.formatOpts"),P2e=Symbol("pino.messageKey"),L2e=Symbol("pino.errorKey"),F2e=Symbol("pino.nestedKey"),B2e=Symbol("pino.nestedKeyStr"),M2e=Symbol("pino.mixinMergeStrategy"),U2e=Symbol("pino.msgPrefix"),j2e=Symbol("pino.wildcardFirst"),$2e=Symbol.for("pino.serializers"),H2e=Symbol.for("pino.formatters"),q2e=Symbol.for("pino.hooks"),V2e=Symbol.for("pino.metadata");yI.exports={setLevelSym:d2e,getLevelSym:m2e,levelValSym:y2e,levelCompSym:g2e,useLevelLabelsSym:v2e,mixinSym:E2e,lsCacheSym:x2e,chindingsSym:b2e,asJsonSym:w2e,writeSym:S2e,serializersSym:$2e,redactFmtSym:T2e,timeSym:A2e,timeSliceIndexSym:C2e,streamSym:O2e,stringifySym:N2e,stringifySafeSym:I2e,stringifiersSym:R2e,endSym:D2e,formatOptsSym:k2e,messageKeySym:P2e,errorKeySym:L2e,nestedKeySym:F2e,wildcardFirstSym:j2e,needsMetadataGsym:V2e,useOnlyCustomLevelsSym:_2e,formattersSym:H2e,hooksSym:q2e,nestedKeyStrSym:B2e,mixinMergeStrategySym:M2e,msgPrefixSym:U2e}});var vy=D((yPe,EI)=>{"use strict";var gy=mI(),{redactFmtSym:z2e,wildcardFirstSym:W8}=g0(),{rx:yy,validator:G2e}=gy,gI=G2e({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),vI="[Redacted]",_I=!1;function K2e(t,e){let{paths:n,censor:r}=J2e(t),i=n.reduce((a,o)=>{yy.lastIndex=0;let u=yy.exec(o),c=yy.exec(o),f=u[1]!==void 0?u[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):u[0];if(f==="*"&&(f=W8),c===null)return a[f]=null,a;if(a[f]===null)return a;let{index:d}=c,h=`${o.substr(d,o.length-1)}`;return a[f]=a[f]||[],f!==W8&&a[f].length===0&&a[f].push(...a[W8]||[]),f===W8&&Object.keys(a).forEach(function(m){a[m]&&a[m].push(h)}),a[f].push(h),a},{}),l={[z2e]:gy({paths:n,censor:r,serialize:e,strict:_I})},s=(...a)=>e(typeof r=="function"?r(...a):r);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((a,o)=>{if(i[o]===null)a[o]=u=>s(u,[o]);else{let u=typeof r=="function"?(c,f)=>r(c,[o,...f]):r;a[o]=gy({paths:i[o],censor:u,serialize:e,strict:_I})}return a},l)}function J2e(t){if(Array.isArray(t))return t={paths:t,censor:vI},gI(t),t;let{paths:e,censor:n=vI,remove:r}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return r===!0&&(n=void 0),gI({paths:e,censor:n}),{paths:e,censor:n}}EI.exports=K2e});var bI=D((gPe,xI)=>{"use strict";var W2e=()=>"",X2e=()=>`,"time":${Date.now()}`,Y2e=()=>`,"time":${Math.round(Date.now()/1e3)}`,Q2e=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;xI.exports={nullTime:W2e,epochTime:X2e,unixTime:Y2e,isoTime:Q2e}});var SI=D((vPe,wI)=>{"use strict";function Z2e(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}wI.exports=eoe;function eoe(t,e,n){var r=n&&n.stringify||Z2e,i=1;if(typeof t=="object"&&t!==null){var l=e.length+i;if(l===1)return t;var s=new Array(l);s[0]=r(t);for(var a=1;a<l;a++)s[a]=r(e[a]);return s.join(" ")}if(typeof t!="string")return t;var o=e.length;if(o===0)return t;for(var u="",c=1-i,f=-1,d=t&&t.length||0,h=0;h<d;){if(t.charCodeAt(h)===37&&h+1<d){switch(f=f>-1?f:0,t.charCodeAt(h+1)){case 100:case 102:if(c>=o||e[c]==null)Line truncated
${_}`,g=`,
${_}`);let G=Math.min(E.length,s),j=0;for(;j<G-1;j++){let V=a(String(j),E,m,x,b,_);v+=V!==void 0?V:"null",v+=g}let U=a(String(j),E,m,x,b,_);if(v+=U!==void 0?U:"null",E.length-1>s){let V=E.length-s-1;v+=`${g}"... ${B3(V)} not stringified"`}return b!==""&&(v+=`
${_}`);let G=Math.min(E.length,s),j=0;for(;j<G-1;j++){let V=a(String(j),E,m,x,b,_);v+=V!==void 0?V:"null",v+=g}let U=a(String(j),E,m,x,b,_);if(v+=U!==void 0?U:"null",E.length-1>s){let V=E.length-s-1;v+=`${g}"... ${U3(V)} not stringified"`}return b!==""&&(v+=`
${S}`),m.pop(),`[${v}]`}let A=Object.keys(E),C=A.length;if(C===0)return"{}";if(l<m.length+1)return'"[Object]"';let N="",k="";b!==""&&(_+=b,g=`,
${_}`,N=" ");let P=Math.min(C,s);i&&!$y(E)&&(A=jy(A)),m.push(E);for(let G=0;G<P;G++){let j=A[G],U=a(j,E,m,x,b,_);U!==void 0&&(v+=`${k}${M2(j)}:${N}${U}`,k=g)}if(C>s){let G=C-s;v+=`${k}"...":${N}"${B3(G)} not stringified"`,k=g}return b!==""&&k.length>1&&(v=`
${_}`,N=" ");let P=Math.min(C,s);i&&!qy(E)&&(A=Hy(A)),m.push(E);for(let G=0;G<P;G++){let j=A[G],U=a(j,E,m,x,b,_);U!==void 0&&(v+=`${k}${U2(j)}:${N}${U}`,k=g)}if(C>s){let G=C-s;v+=`${k}"...":${N}"${U3(G)} not stringified"`,k=g}return b!==""&&k.length>1&&(v=`
${_}${v}
${S}`),m.pop(),`{${v}}`}case"number":return isFinite(E)?String(E):e?e(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(E);default:return e?e(E):void 0}}function o(d,h,m,x,b,_){switch(typeof h=="object"&&h!==null&&typeof h.toJSON=="function"&&(h=h.toJSON(d)),typeof h){case"string":return M2(h);case"object":{if(h===null)return"null";if(m.indexOf(h)!==-1)return n;let E=_,v="",g=",";if(Array.isArray(h)){if(h.length===0)return"[]";if(l<m.length+1)return'"[Array]"';m.push(h),b!==""&&(_+=b,v+=`
${S}`),m.pop(),`{${v}}`}case"number":return isFinite(E)?String(E):e?e(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(E);default:return e?e(E):void 0}}function o(d,h,m,x,b,_){switch(typeof h=="object"&&h!==null&&typeof h.toJSON=="function"&&(h=h.toJSON(d)),typeof h){case"string":return U2(h);case"object":{if(h===null)return"null";if(m.indexOf(h)!==-1)return n;let E=_,v="",g=",";if(Array.isArray(h)){if(h.length===0)return"[]";if(l<m.length+1)return'"[Array]"';m.push(h),b!==""&&(_+=b,v+=`
${_}`,g=`,
${_}`);let C=Math.min(h.length,s),N=0;for(;N<C-1;N++){let P=o(String(N),h[N],m,x,b,_);v+=P!==void 0?P:"null",v+=g}let k=o(String(N),h[N],m,x,b,_);if(v+=k!==void 0?k:"null",h.length-1>s){let P=h.length-s-1;v+=`${g}"... ${B3(P)} not stringified"`}return b!==""&&(v+=`
${_}`);let C=Math.min(h.length,s),N=0;for(;N<C-1;N++){let P=o(String(N),h[N],m,x,b,_);v+=P!==void 0?P:"null",v+=g}let k=o(String(N),h[N],m,x,b,_);if(v+=k!==void 0?k:"null",h.length-1>s){let P=h.length-s-1;v+=`${g}"... ${U3(P)} not stringified"`}return b!==""&&(v+=`
${E}`),m.pop(),`[${v}]`}m.push(h);let S="";b!==""&&(_+=b,g=`,
${_}`,S=" ");let A="";for(let C of x){let N=o(C,h[C],m,x,b,_);N!==void 0&&(v+=`${A}${M2(C)}:${S}${N}`,A=g)}return b!==""&&A.length>1&&(v=`
${_}`,S=" ");let A="";for(let C of x){let N=o(C,h[C],m,x,b,_);N!==void 0&&(v+=`${A}${U2(C)}:${S}${N}`,A=g)}return b!==""&&A.length>1&&(v=`
${_}${v}
${E}`),m.pop(),`{${v}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function u(d,h,m,x,b){switch(typeof h){case"string":return M2(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(d),typeof h!="object")return u(d,h,m,x,b);if(h===null)return"null"}if(m.indexOf(h)!==-1)return n;let _=b;if(Array.isArray(h)){if(h.length===0)return"[]";if(l<m.length+1)return'"[Array]"';m.push(h),b+=x;let N=`
${E}`),m.pop(),`{${v}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function u(d,h,m,x,b){switch(typeof h){case"string":return U2(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(d),typeof h!="object")return u(d,h,m,x,b);if(h===null)return"null"}if(m.indexOf(h)!==-1)return n;let _=b;if(Array.isArray(h)){if(h.length===0)return"[]";if(l<m.length+1)return'"[Array]"';m.push(h),b+=x;let N=`
${b}`,k=`,
${b}`,P=Math.min(h.length,s),G=0;for(;G<P-1;G++){let U=u(String(G),h[G],m,x,b);N+=U!==void 0?U:"null",N+=k}let j=u(String(G),h[G],m,x,b);if(N+=j!==void 0?j:"null",h.length-1>s){let U=h.length-s-1;N+=`${k}"... ${B3(U)} not stringified"`}return N+=`
${b}`,P=Math.min(h.length,s),G=0;for(;G<P-1;G++){let U=u(String(G),h[G],m,x,b);N+=U!==void 0?U:"null",N+=k}let j=u(String(G),h[G],m,x,b);if(N+=j!==void 0?j:"null",h.length-1>s){let U=h.length-s-1;N+=`${k}"... ${U3(U)} not stringified"`}return N+=`
${_}`,m.pop(),`[${N}]`}let E=Object.keys(h),v=E.length;if(v===0)return"{}";if(l<m.length+1)return'"[Object]"';b+=x;let g=`,
${b}`,S="",A="",C=Math.min(v,s);$y(h)&&(S+=vI(h,g,s),E=E.slice(h.length),C-=h.length,A=g),i&&(E=jy(E)),m.push(h);for(let N=0;N<C;N++){let k=E[N],P=u(k,h[k],m,x,b);P!==void 0&&(S+=`${A}${M2(k)}: ${P}`,A=g)}if(v>s){let N=v-s;S+=`${A}"...": "${B3(N)} not stringified"`,A=g}return A!==""&&(S=`
${b}`,S="",A="",C=Math.min(v,s);qy(h)&&(S+=bR(h,g,s),E=E.slice(h.length),C-=h.length,A=g),i&&(E=Hy(E)),m.push(h);for(let N=0;N<C;N++){let k=E[N],P=u(k,h[k],m,x,b);P!==void 0&&(S+=`${A}${U2(k)}: ${P}`,A=g)}if(v>s){let N=v-s;S+=`${A}"...": "${U3(N)} not stringified"`,A=g}return A!==""&&(S=`
${b}${S}
${_}`),m.pop(),`{${S}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function c(d,h,m){switch(typeof h){case"string":return M2(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(d),typeof h!="object")return c(d,h,m);if(h===null)return"null"}if(m.indexOf(h)!==-1)return n;let x="";if(Array.isArray(h)){if(h.length===0)return"[]";if(l<m.length+1)return'"[Array]"';m.push(h);let g=Math.min(h.length,s),S=0;for(;S<g-1;S++){let C=c(String(S),h[S],m);x+=C!==void 0?C:"null",x+=","}let A=c(String(S),h[S],m);if(x+=A!==void 0?A:"null",h.length-1>s){let C=h.length-s-1;x+=`,"... ${B3(C)} not stringified"`}return m.pop(),`[${x}]`}let b=Object.keys(h),_=b.length;if(_===0)return"{}";if(l<m.length+1)return'"[Object]"';let E="",v=Math.min(_,s);$y(h)&&(x+=vI(h,",",s),b=b.slice(h.length),v-=h.length,E=","),i&&(b=jy(b)),m.push(h);for(let g=0;g<v;g++){let S=b[g],A=c(S,h[S],m);A!==void 0&&(x+=`${E}${M2(S)}:${A}`,E=",")}if(_>s){let g=_-s;x+=`${E}"...":"${B3(g)} not stringified"`}return m.pop(),`{${x}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function f(d,h,m){if(arguments.length>1){let x="";if(typeof m=="number"?x=" ".repeat(Math.min(m,10)):typeof m=="string"&&(x=m.slice(0,10)),h!=null){if(typeof h=="function")return a("",{"":d},[],h,x,"");if(Array.isArray(h))return o("",d,[],oue(h),x,"")}if(x.length!==0)return u("",d,[],x,"")}return c("",d,[])}return f}});var TI=D((EPe,SI)=>{"use strict";var Vy=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:wI}=r9(),cue=wI.info;function fue(t,e){let n=0;t=t||[],e=e||{dedupe:!1};let r=Object.create(wI);r.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(c=>{r[c]=e.levels[c]});let i={write:l,add:a,flushSync:s,end:o,minLevel:0,streams:[],clone:u,[Vy]:!0,streamLevels:r};return Array.isArray(t)?t.forEach(a,i):a.call(i,t),t=null,i;function l(c){let f,d=this.lastLevel,{streams:h}=this,m=0,x;for(let b=hue(h.length,e.dedupe);mue(b,h.length,e.dedupe);b=due(b,e.dedupe))if(f=h[b],f.level<=d){if(m!==0&&m!==f.level)break;if(x=f.stream,x[Vy]){let{lastTime:_,lastMsg:E,lastObj:v,lastLogger:g}=this;x.lastLevel=d,x.lastTime=_,x.lastMsg=E,x.lastObj=v,x.lastLogger=g}x.write(c),e.dedupe&&(m=f.level)}else if(!e.dedupe)break}function s(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync()}function a(c){if(!c)return i;let f=typeof c.write=="function"||c.stream,d=c.write?c:c.stream;if(!f)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:h,streamLevels:m}=this,x;typeof c.levelVal=="number"?x=c.levelVal:typeof c.level=="string"?x=m[c.level]:typeof c.level=="number"?x=c.level:x=cue;let b={stream:d,level:x,levelVal:void 0,id:n++};return h.unshift(b),h.sort(pue),this.minLevel=h[0].level,i}function o(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync(),c.end()}function u(c){let f=new Array(this.streams.length);for(let d=0;d<f.length;d++)f[d]={level:c,stream:this.streams[d].stream};return{write:l,add:a,minLevel:c,streams:f,clone:u,flushSync:s,[Vy]:!0}}}function pue(t,e){return t.level-e.level}function hue(t,e){return e?t-1:0}function due(t,e){return e?t-1:t+1}function mue(t,e,n){return n?t>=0:t<e}SI.exports=fue});var MI=D((xPe,fs)=>{"use strict";var yue=require("os"),kI=oy(),gue=uy(),vue=yy(),PI=vR(),_ue=gI(),LI=m0(),{configure:Eue}=bI(),{assertDefaultLevelFound:xue,mappings:FI,genLsCache:bue,genLevelComparison:wue,assertLevelComparison:Sue}=Ly(),{DEFAULT_LEVELS:Tue,SORTING_ORDER:Aue}=r9(),{createArgsNormalizer:Cue,asChindings:Oue,buildSafeSonicBoom:AI,buildFormatters:Nue,stringify:zy,normalizeDestFileDescriptor:CI,noop:Rue}=n9(),{version:Iue}=Fy(),{chindingsSym:OI,redactFmtSym:Due,serializersSym:NI,timeSym:kue,timeSliceIndexSym:Pue,streamSym:Lue,stringifySym:RI,stringifySafeSym:Gy,stringifiersSym:II,setLevelSym:Fue,endSym:Bue,formatOptsSym:Mue,messageKeySym:Uue,errorKeySym:jue,nestedKeySym:$ue,mixinSym:Hue,levelCompSym:que,useOnlyCustomLevelsSym:Vue,formattersSym:DI,hooksSym:zue,nestedKeyStrSym:Gue,mixinMergeStrategySym:Kue,msgPrefixSym:Wue}=LI,{epochTime:BI,nullTime:Jue}=PI,{pid:Xue}=process,Yue=yue.hostname(),Que=kI.err,Zue={level:"info",levelComparison:Aue.ASC,levels:Tue,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Xue,hostname:Yue},serializers:Object.assign(Object.create(null),{err:Que}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:BI,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},e0e=Cue(Zue),t0e=Object.assign(Object.create(null),kI);function Ky(...t){let e={},{opts:n,stream:r}=e0e(e,gue(),...t),{redact:i,crlf:l,s Line truncated
${_}`),m.pop(),`{${S}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function c(d,h,m){switch(typeof h){case"string":return U2(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(d),typeof h!="object")return c(d,h,m);if(h===null)return"null"}if(m.indexOf(h)!==-1)return n;let x="";if(Array.isArray(h)){if(h.length===0)return"[]";if(l<m.length+1)return'"[Array]"';m.push(h);let g=Math.min(h.length,s),S=0;for(;S<g-1;S++){let C=c(String(S),h[S],m);x+=C!==void 0?C:"null",x+=","}let A=c(String(S),h[S],m);if(x+=A!==void 0?A:"null",h.length-1>s){let C=h.length-s-1;x+=`,"... ${U3(C)} not stringified"`}return m.pop(),`[${x}]`}let b=Object.keys(h),_=b.length;if(_===0)return"{}";if(l<m.length+1)return'"[Object]"';let E="",v=Math.min(_,s);qy(h)&&(x+=bR(h,",",s),b=b.slice(h.length),v-=h.length,E=","),i&&(b=Hy(b)),m.push(h);for(let g=0;g<v;g++){let S=b[g],A=c(S,h[S],m);A!==void 0&&(x+=`${E}${U2(S)}:${A}`,E=",")}if(_>s){let g=_-s;x+=`${E}"...":"${U3(g)} not stringified"`}return m.pop(),`{${x}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function f(d,h,m){if(arguments.length>1){let x="";if(typeof m=="number"?x=" ".repeat(Math.min(m,10)):typeof m=="string"&&(x=m.slice(0,10)),h!=null){if(typeof h=="function")return a("",{"":d},[],h,x,"");if(Array.isArray(h))return o("",d,[],_ue(h),x,"")}if(x.length!==0)return u("",d,[],x,"")}return c("",d,[])}return f}});var NR=D((kPe,OR)=>{"use strict";var Gy=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:CR}=l9(),xue=CR.info;function bue(t,e){let n=0;t=t||[],e=e||{dedupe:!1};let r=Object.create(CR);r.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(c=>{r[c]=e.levels[c]});let i={write:l,add:a,flushSync:s,end:o,minLevel:0,streams:[],clone:u,[Gy]:!0,streamLevels:r};return Array.isArray(t)?t.forEach(a,i):a.call(i,t),t=null,i;function l(c){let f,d=this.lastLevel,{streams:h}=this,m=0,x;for(let b=Sue(h.length,e.dedupe);Aue(b,h.length,e.dedupe);b=Tue(b,e.dedupe))if(f=h[b],f.level<=d){if(m!==0&&m!==f.level)break;if(x=f.stream,x[Gy]){let{lastTime:_,lastMsg:E,lastObj:v,lastLogger:g}=this;x.lastLevel=d,x.lastTime=_,x.lastMsg=E,x.lastObj=v,x.lastLogger=g}x.write(c),e.dedupe&&(m=f.level)}else if(!e.dedupe)break}function s(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync()}function a(c){if(!c)return i;let f=typeof c.write=="function"||c.stream,d=c.write?c:c.stream;if(!f)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:h,streamLevels:m}=this,x;typeof c.levelVal=="number"?x=c.levelVal:typeof c.level=="string"?x=m[c.level]:typeof c.level=="number"?x=c.level:x=xue;let b={stream:d,level:x,levelVal:void 0,id:n++};return h.unshift(b),h.sort(wue),this.minLevel=h[0].level,i}function o(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync(),c.end()}function u(c){let f=new Array(this.streams.length);for(let d=0;d<f.length;d++)f[d]={level:c,stream:this.streams[d].stream};return{write:l,add:a,minLevel:c,streams:f,clone:u,flushSync:s,[Gy]:!0}}}function wue(t,e){return t.level-e.level}function Sue(t,e){return e?t-1:0}function Tue(t,e){return e?t-1:t+1}function Aue(t,e,n){return n?t>=0:t<e}OR.exports=bue});var HR=D((PPe,ps)=>{"use strict";var Cue=require("os"),BR=cy(),Oue=fy(),Nue=vy(),MR=bI(),Iue=xR(),UR=g0(),{configure:Rue}=AR(),{assertDefaultLevelFound:Due,mappings:jR,genLsCache:kue,genLevelComparison:Pue,assertLevelComparison:Lue}=By(),{DEFAULT_LEVELS:Fue,SORTING_ORDER:Bue}=l9(),{createArgsNormalizer:Mue,asChindings:Uue,buildSafeSonicBoom:IR,buildFormatters:jue,stringify:Ky,normalizeDestFileDescriptor:RR,noop:$ue}=i9(),{version:Hue}=My(),{chindingsSym:DR,redactFmtSym:que,serializersSym:kR,timeSym:Vue,timeSliceIndexSym:zue,streamSym:Gue,stringifySym:PR,stringifySafeSym:Jy,stringifiersSym:LR,setLevelSym:Kue,endSym:Jue,formatOptsSym:Wue,messageKeySym:Xue,errorKeySym:Yue,nestedKeySym:Que,mixinSym:Zue,levelCompSym:e0e,useOnlyCustomLevelsSym:t0e,formattersSym:FR,hooksSym:n0e,nestedKeyStrSym:r0e,mixinMergeStrategySym:i0e,msgPrefixSym:l0e}=UR,{epochTime:$R,nullTime:s0e}=MR,{pid:a0e}=process,o0e=Cue.hostname(),u0e=BR.err,c0e={level:"info",levelComparison:Bue.ASC,levels:Fue,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:a0e,hostname:o0e},serializers:Object.assign(Object.create(null),{err:u0e}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:$R,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},f0e=Mue(c0e),p0e=Object.assign(Object.create(null),BR);function Wy(...t){let e={},{opts:n,stream:r}=f0e(e,Oue(),...t),{redact:i,crlf:l,s Line truncated
`:`
`),ne=Oue.bind(null,{[OI]:"",[NI]:s,[II]:j,[RI]:zy,[Gy]:k,[DI]:P}),W="";f!==null&&(d===void 0?W=ne(f):W=ne(Object.assign({},f,{name:d})));let J=a instanceof Function?a:a?BI:Jue,re=J().indexOf(":")+1;if(E&&!m)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(b&&typeof b!="function")throw Error(`Unknown mixin type "${typeof b}" - expected "function"`);if(N&&typeof N!="string")throw Error(`Unknown msgPrefix type "${typeof N}" - expected "string"`);xue(h,m,E);let R=FI(m,E);Sue(x);let M=wue(x);return Object.assign(e,{levels:R,[que]:M,[Vue]:E,[Lue]:r,[kue]:J,[Pue]:re,[RI]:zy,[Gy]:k,[II]:j,[Bue]:V,[Mue]:U,[Uue]:o,[jue]:u,[$ue]:c,[Gue]:c?`,${JSON.stringify(c)}:{`:"",[NI]:s,[Hue]:b,[Kue]:_,[OI]:W,[DI]:P,[zue]:g,silent:Rue,onChild:C,[Wue]:N}),Object.setPrototypeOf(e,_ue()),bue(e),e[Fue](h),e}fs.exports=Ky;fs.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=CI(t.dest||process.stdout.fd),AI(t)):AI({dest:CI(t),minLength:0});fs.exports.transport=Ny();fs.exports.multistream=TI();fs.exports.levels=FI();fs.exports.stdSerializers=t0e;fs.exports.stdTimeFunctions=Object.assign({},PI);fs.exports.symbols=LI;fs.exports.version=Iue;fs.exports.default=Ky;fs.exports.pino=Ky});var q4=D((bPe,qI)=>{"use strict";var n0e=ON(),l9=MI(),{serializersSym:UI}=l9.symbols,{FST_ERR_LOG_INVALID_DESTINATION:r0e,FST_ERR_LOG_INVALID_LOGGER:i0e}=$i();function jI(t){if(t.stream&&t.file)throw new r0e;t.file&&(t.stream=l9.destination(t.file),delete t.file);let e=t.logger,n=t.genReqId,r=null;return e?(t.logger=void 0,t.genReqId=void 0,e[UI]&&(t.serializers=Object.assign({},t.serializers,e[UI])),r=e.child({},t),t.logger=e,t.genReqId=n):r=l9(t,t.stream),r}var Wy={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:l9.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function l0e(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function s0e(t){if(!t.logger){let r=n0e;return r.child=()=>r,{logger:r,hasLogger:!1}}if($I(t.logger))return{logger:jI({logger:t.logger,serializers:Object.assign({},Wy,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(r=>{Object.defineProperty(e,r,{value:t.logger[r],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},Wy,e.serializers),t.logger=e,{logger:jI(t.logger),hasLogger:!0}}function $I(t,e){let n=["info","error","debug","fatal","warn","trace","child"],r=t?n.filter(i=>!t[i]||typeof t[i]!="function"):n;if(r.length){if(r.length===n.length&&!e)return!1;throw i0e(r.join(","))}else return!0}function a0e(t,e,n,r,i){let l={[t.requestIdLogLabel]:r},s=t.childLoggerFactory.call(t.server,e,l,i||{},n);return t.childLoggerFactory!==HI&&$I(s,!0),s}function HI(t,e,n){return t.child(e,n)}qI.exports={createLogger:s0e,createChildLogger:a0e,defaultChildLoggerFactory:HI,serializers:Wy,now:l0e}});var V4=D((wPe,VI)=>{"use strict";VI.exports=o0e;function v0(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function o0e(t){if(t=t||{},t.circles)return u0e(t);return t.proto?r:n;function e(i,l){for(var s=Object.keys(i),a=new Array(s.length),o=0;o<s.length;o++){var u=s[o],c=i[u];typeof c!="object"||c===null?a[u]=c:c instanceof Date?a[u]=new Date(c):ArrayBuffer.isView(c)?a[u]=v0(c):a[u]=l(c)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return e(i,n);if(i instanceof Map)return new Map(e(Array.from(i),n));if(i instanceof Set)return new Set(e(Array.from(i),n));var l={};for(var s in i)if(Object.hasOwnProperty.call(i,s)!==!1){var a=i[s];typeof a!="object"||a===null?l[s]=a:a instanceof Date?l[s]=new Date(a):a instanceof Map?l[s]=new Map(e(Array.from(a),n)):a instanceof Set?l[s]=new Set(e(Array.from(a),n)):ArrayBuffer.isView(a)?l[s]=v0(a):l[s]=n(a)}return l}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return e(i,r);if(i instanceof Map)return new Map(e(Array.from(i),r));if(i instanceof Set)return new Set(e(Array.from(i),r));var l={};for(var s in i){var a=i[s];typeof a!="object"||a===null?l[s]=a:a instanceof Date?l[s]=new Date(a):a instanceof Map?l[s]=new Map(e(Array.from(a),r)):a instanceof Set?l[s]=new Set(e(Array.from(a),r)):ArrayBuffer.isView(a)?l[s]=v0(a):l[s]=r(a)}return l}}function u0e(t){var e=[],n=[];return t.proto?l:i;function r(s,a){for(var o=Object.keys(s),u=new Array(o.length),c=0;c<o.length;c++){var f=o[c],d=s[f];if(typeof d!="object"||d===null)u[f]=d;else if(d instanceof Date)u[f]=new Date(d);else if(ArrayBuffer.isView(d))u[f]=v0(d);else{var h=e.indexOf(d);h!==-1?u[f]=n[h]:u[f]=a(d)}}return u}function i(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))r Line truncated
`:""},this._extScope=e,this._scope=new Ms.Scope({parent:e}),this._nodes=[new ug]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,i){let l=this._scope.toName(n);return r!==void 0&&i&&(this._constants[l.str]=r),this._leafNode(new rg(e,l,r)),l}const(e,n,r){return this._def(Ms.varKinds.const,e,n,r)}let(e,n,r){return this._def(Ms.varKinds.let,e,n,r)}var(e,n,r){return this._def(Ms.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new c9(e,n,r))}add(e,n){return this._leafNode(new ig(e,Bt.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Jt.nil&&this._leafNode(new og(e)),this}object(...e){let n=["{"];for(let[r,i]of e)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,Jt.addCodeArg)(n,i));return n.push("}"),new Jt._Code(n)}if(e,n,r){if(this._blockNode(new j3(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new j3(e))}else(){return this._elseNode(new E0)}endIf(){return this._endBlockNode(j3,E0)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new cg(e),n)}forRange(e,n,r,i,l=this.opts.es5?Ms.varKinds.var:Ms.varKinds.let){let s=this._scope.toName(e);return this._for(new fg(l,s,n,r),()=>i(s))}forOf(e,n,r,i=Ms.varKinds.const){let l=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Jt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Jt._)`${s}.length`,a=>{this.var(l,(0,Jt._)`${s}[${a}]`),r(l)})}return this._for(new f9("of",i,l,n),()=>r(l))}forIn(e,n,r,i=this.opts.es5?Ms.varKinds.var:Ms.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Jt._)`Object.keys(${n})`,r);let l=this._scope.toName(e);return this._for(new f9("in",i,l,n),()=>r(l))}endFor(){return this._endBlockNode($3)}label(e){return this._leafNode(new lg(e))}break(e){return this._leafNode(new sg(e))}return(e){let n=new X4;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(X4)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new pg;if(this._blockNode(i),this.code(e),n){let l=this.name("e");this._currNode=i.catch=new Y4(l),n(l)}return r&&(this._currNode=i.finally=new Q4,this.code(r)),this._endBlockNode(Y4,Q4)}throw(e){return this._leafNode(new ag(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Jt.nil,r,i){return this._blockNode(new J4(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(J4)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof j3))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};Bt.CodeGen=hg;function H3(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function p9(t,e){return e instanceof Jt._CodeOrName?H3(t,e.names):t}function x0(t,e,n){if(t instanceof Jt.Name)return r(t);if(!i(t))return t;return new Jt._Code(t._items.reduce((l,s)=>(s instanceof Jt.Name&&(s=r(s)),s instanceof Jt._Code?l.push(...s._items):l.push(s),l),[]));function r(l){let s=n[l.str];return s===void 0||e[l.str]!==1?l:(delete e[l.str],s)}function i(l){return l instanceof Jt._Code&&l._items.some(s=>s instanceof Jt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function N0e(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function ZI(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Jt._)`!${dg(t)}`}Bt.not=ZI;var R0e=eD(Bt.operators.AND);function I0e(...t){return t.reduce(R0e)}Bt.and=I0e;var D0e=eD(Bt.operators.OR);function k0e(...t){return t.reduce(D0e)}Bt.or=k0e;function eD(t){return(e,n)=>e===Jt.nil?n:n===Jt.nil?e:(0,Jt._)`${dg(e)} ${t} ${dg(n)}`}function dg(t){return t instanceof Jt.Name?t:(0, Line truncated
`),ne=Uue.bind(null,{[DR]:"",[kR]:s,[LR]:j,[PR]:Ky,[Jy]:k,[FR]:P}),J="";f!==null&&(d===void 0?J=ne(f):J=ne(Object.assign({},f,{name:d})));let W=a instanceof Function?a:a?$R:s0e,re=W().indexOf(":")+1;if(E&&!m)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(b&&typeof b!="function")throw Error(`Unknown mixin type "${typeof b}" - expected "function"`);if(N&&typeof N!="string")throw Error(`Unknown msgPrefix type "${typeof N}" - expected "string"`);Due(h,m,E);let I=jR(m,E);Lue(x);let M=Pue(x);return Object.assign(e,{levels:I,[e0e]:M,[t0e]:E,[Gue]:r,[Vue]:W,[zue]:re,[PR]:Ky,[Jy]:k,[LR]:j,[Jue]:V,[Wue]:U,[Xue]:o,[Yue]:u,[Que]:c,[r0e]:c?`,${JSON.stringify(c)}:{`:"",[kR]:s,[Zue]:b,[i0e]:_,[DR]:J,[FR]:P,[n0e]:g,silent:$ue,onChild:C,[l0e]:N}),Object.setPrototypeOf(e,Iue()),kue(e),e[Kue](h),e}ps.exports=Wy;ps.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=RR(t.dest||process.stdout.fd),IR(t)):IR({dest:RR(t),minLength:0});ps.exports.transport=Ry();ps.exports.multistream=NR();ps.exports.levels=jR();ps.exports.stdSerializers=p0e;ps.exports.stdTimeFunctions=Object.assign({},MR);ps.exports.symbols=UR;ps.exports.version=Hue;ps.exports.default=Wy;ps.exports.pino=Wy});var z4=D((LPe,KR)=>{"use strict";var h0e=DN(),a9=HR(),{serializersSym:qR}=a9.symbols,{FST_ERR_LOG_INVALID_DESTINATION:d0e,FST_ERR_LOG_INVALID_LOGGER:m0e}=qi();function VR(t){if(t.stream&&t.file)throw new d0e;t.file&&(t.stream=a9.destination(t.file),delete t.file);let e=t.logger,n=t.genReqId,r=null;return e?(t.logger=void 0,t.genReqId=void 0,e[qR]&&(t.serializers=Object.assign({},t.serializers,e[qR])),r=e.child({},t),t.logger=e,t.genReqId=n):r=a9(t,t.stream),r}var Xy={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:a9.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function y0e(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function g0e(t){if(!t.logger){let r=h0e;return r.child=()=>r,{logger:r,hasLogger:!1}}if(zR(t.logger))return{logger:VR({logger:t.logger,serializers:Object.assign({},Xy,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(r=>{Object.defineProperty(e,r,{value:t.logger[r],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},Xy,e.serializers),t.logger=e,{logger:VR(t.logger),hasLogger:!0}}function zR(t,e){let n=["info","error","debug","fatal","warn","trace","child"],r=t?n.filter(i=>!t[i]||typeof t[i]!="function"):n;if(r.length){if(r.length===n.length&&!e)return!1;throw m0e(r.join(","))}else return!0}function v0e(t,e,n,r,i){let l={[t.requestIdLogLabel]:r},s=t.childLoggerFactory.call(t.server,e,l,i||{},n);return t.childLoggerFactory!==GR&&zR(s,!0),s}function GR(t,e,n){return t.child(e,n)}KR.exports={createLogger:g0e,createChildLogger:v0e,defaultChildLoggerFactory:GR,serializers:Xy,now:y0e}});var G4=D((FPe,JR)=>{"use strict";JR.exports=_0e;function E0(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function _0e(t){if(t=t||{},t.circles)return E0e(t);return t.proto?r:n;function e(i,l){for(var s=Object.keys(i),a=new Array(s.length),o=0;o<s.length;o++){var u=s[o],c=i[u];typeof c!="object"||c===null?a[u]=c:c instanceof Date?a[u]=new Date(c):ArrayBuffer.isView(c)?a[u]=E0(c):a[u]=l(c)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return e(i,n);if(i instanceof Map)return new Map(e(Array.from(i),n));if(i instanceof Set)return new Set(e(Array.from(i),n));var l={};for(var s in i)if(Object.hasOwnProperty.call(i,s)!==!1){var a=i[s];typeof a!="object"||a===null?l[s]=a:a instanceof Date?l[s]=new Date(a):a instanceof Map?l[s]=new Map(e(Array.from(a),n)):a instanceof Set?l[s]=new Set(e(Array.from(a),n)):ArrayBuffer.isView(a)?l[s]=E0(a):l[s]=n(a)}return l}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return e(i,r);if(i instanceof Map)return new Map(e(Array.from(i),r));if(i instanceof Set)return new Set(e(Array.from(i),r));var l={};for(var s in i){var a=i[s];typeof a!="object"||a===null?l[s]=a:a instanceof Date?l[s]=new Date(a):a instanceof Map?l[s]=new Map(e(Array.from(a),r)):a instanceof Set?l[s]=new Set(e(Array.from(a),r)):ArrayBuffer.isView(a)?l[s]=E0(a):l[s]=r(a)}return l}}function E0e(t){var e=[],n=[];return t.proto?l:i;function r(s,a){for(var o=Object.keys(s),u=new Array(o.length),c=0;c<o.length;c++){var f=o[c],d=s[f];if(typeof d!="object"||d===null)u[f]=d;else if(d instanceof Date)u[f]=new Date(d);else if(ArrayBuffer.isView(d))u[f]=E0(d);else{var h=e.indexOf(d);h!==-1?u[f]=n[h]:u[f]=a(d)}}return u}function i(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))r Line truncated
`:""},this._extScope=e,this._scope=new Us.Scope({parent:e}),this._nodes=[new fg]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,i){let l=this._scope.toName(n);return r!==void 0&&i&&(this._constants[l.str]=r),this._leafNode(new lg(e,l,r)),l}const(e,n,r){return this._def(Us.varKinds.const,e,n,r)}let(e,n,r){return this._def(Us.varKinds.let,e,n,r)}var(e,n,r){return this._def(Us.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new p9(e,n,r))}add(e,n){return this._leafNode(new sg(e,Bt.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Wt.nil&&this._leafNode(new cg(e)),this}object(...e){let n=["{"];for(let[r,i]of e)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,Wt.addCodeArg)(n,i));return n.push("}"),new Wt._Code(n)}if(e,n,r){if(this._blockNode(new H3(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new H3(e))}else(){return this._elseNode(new b0)}endIf(){return this._endBlockNode(H3,b0)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new pg(e),n)}forRange(e,n,r,i,l=this.opts.es5?Us.varKinds.var:Us.varKinds.let){let s=this._scope.toName(e);return this._for(new hg(l,s,n,r),()=>i(s))}forOf(e,n,r,i=Us.varKinds.const){let l=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Wt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Wt._)`${s}.length`,a=>{this.var(l,(0,Wt._)`${s}[${a}]`),r(l)})}return this._for(new h9("of",i,l,n),()=>r(l))}forIn(e,n,r,i=this.opts.es5?Us.varKinds.var:Us.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Wt._)`Object.keys(${n})`,r);let l=this._scope.toName(e);return this._for(new h9("in",i,l,n),()=>r(l))}endFor(){return this._endBlockNode(q3)}label(e){return this._leafNode(new ag(e))}break(e){return this._leafNode(new og(e))}return(e){let n=new Q4;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Q4)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new dg;if(this._blockNode(i),this.code(e),n){let l=this.name("e");this._currNode=i.catch=new Z4(l),n(l)}return r&&(this._currNode=i.finally=new ec,this.code(r)),this._endBlockNode(Z4,ec)}throw(e){return this._leafNode(new ug(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Wt.nil,r,i){return this._blockNode(new Y4(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Y4)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof H3))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};Bt.CodeGen=mg;function V3(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function d9(t,e){return e instanceof Wt._CodeOrName?V3(t,e.names):t}function w0(t,e,n){if(t instanceof Wt.Name)return r(t);if(!i(t))return t;return new Wt._Code(t._items.reduce((l,s)=>(s instanceof Wt.Name&&(s=r(s)),s instanceof Wt._Code?l.push(...s._items):l.push(s),l),[]));function r(l){let s=n[l.str];return s===void 0||e[l.str]!==1?l:(delete e[l.str],s)}function i(l){return l instanceof Wt._Code&&l._items.some(s=>s instanceof Wt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function j0e(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function rD(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Wt._)`!${yg(t)}`}Bt.not=rD;var $0e=iD(Bt.operators.AND);function H0e(...t){return t.reduce($0e)}Bt.and=H0e;var q0e=iD(Bt.operators.OR);function V0e(...t){return t.reduce(q0e)}Bt.or=V0e;function iD(t){return(e,n)=>e===Wt.nil?n:n===Wt.nil?e:(0,Wt._)`${yg(e)} ${t} ${yg(n)}`}function yg(t){return t instanceof Wt.Name?t:(0, Line truncated
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,kt._)`+${i}`);return;case"integer":r.elseIf((0,kt._)`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,kt._)`+${i}`);return;case"boolean":r.elseIf((0,kt._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,kt._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":r.elseIf((0,kt._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(a,null);return;case"array":r.elseIf((0,kt._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,kt._)`[${i}]`)}}}function g1e({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,kt._)`${e} !== undefined`,()=>t.assign((0,kt._)`${e}[${n}]`,r))}function Eg(t,e,n,r=ec.Correct){let i=r===ec.Correct?kt.operators.EQ:kt.operators.NEQ,l;switch(t){case"null":return(0,kt._)`${e} ${i} null`;case"array":l=(0,kt._)`Array.isArray(${e})`;break;case"object":l=(0,kt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":l=s((0,kt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":l=s();break;default:return(0,kt._)`typeof ${e} ${i} ${t}`}return r===ec.Correct?l:(0,kt.not)(l);function s(a=kt.nil){return(0,kt.and)((0,kt._)`typeof ${e} == "number"`,a,n?(0,kt._)`isFinite(${e})`:kt.nil)}}Ci.checkDataType=Eg;function xg(t,e,n,r){if(t.length===1)return Eg(t[0],e,n,r);let i,l=(0,yD.toHash)(t);if(l.array&&l.object){let s=(0,kt._)`typeof ${e} != "object"`;i=l.null?s:(0,kt._)`!${e} || ${s}`,delete l.null,delete l.array,delete l.object}else i=kt.nil;l.number&&delete l.integer;for(let s in l)i=(0,kt.and)(i,Eg(s,e,n,r));return i}Ci.checkDataTypes=xg;var v1e={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,kt._)`{type: ${t}}`:(0,kt._)`{type: ${e}}`};function bg(t){let e=_1e(t);(0,p1e.reportError)(e,v1e)}Ci.reportTypeError=bg;function _1e(t){let{gen:e,data:n,schema:r}=t,i=(0,yD.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:t}}});var ED=D(m9=>{"use strict";Object.defineProperty(m9,"__esModule",{value:!0});m9.assignDefaults=void 0;var S0=ht(),E1e=Pt();function x1e(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let i in n)_D(t,i,n[i].default);else e==="array"&&Array.isArray(r)&&r.forEach((i,l)=>_D(t,l,i.default))}m9.assignDefaults=x1e;function _D(t,e,n){let{gen:r,compositeRule:i,data:l,opts:s}=t;if(n===void 0)return;let a=(0,S0._)`${l}${(0,S0.getProperty)(e)}`;if(i){(0,E1e.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,S0._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,S0._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,S0._)`${a} = ${(0,S0.stringify)(n)}`)}});var Oi=D(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.validateUnion=wn.validateArray=wn.usePattern=wn.callValidateCode=wn.schemaProperties=wn.allSchemaProperties=wn.noPropertyInData=wn.propertyInData=wn.isOwnProperty=wn.hasPropFunc=wn.reportMissingProp=wn.checkMissingProp=wn.checkReportMissingProp=void 0;var yr=ht(),wg=Pt(),$2=hs(),b1e=Pt();function w1e(t,e){let{gen:n,data:r,it:i}=t;n.if(Tg(n,r,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,yr._)`${e}`},!0),t.error()})}wn.checkReportMissingProp=w1e;function S1e({gen:t,data:e,it:{opts:n}},r,i){return(0,yr.or)(...r.map(l=>(0,yr.and)(Tg(t,e,l,n.ownProperties),(0,yr._)`${i} = ${l}`)))}wn.checkMissingProp=S1e;function T1e(t,e){t.setParams({missingProperty:e},!0),t.error()}wn.reportMissingProp=T1e;function xD(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,yr._)`Object.prototype.hasOwnProperty`})}wn.hasPropFunc=xD;function Sg(t,e,n){return(0,yr._)`${xD(t)}.call(${e}, ${n})`}wn.isOwnProperty=Sg;function A1e(t,e,n,r){let i=(0,yr._)`${e}${(0,yr.getProperty)(n)} !== undefined`;return r?(0,yr._)`${i} && ${Sg(t,e,n)}`:i}wn.propertyInData=A1e;function Tg(t,e,n,r){let i=(0,yr._)`${e}${(0,yr.getProperty)(n)} === undefined`;return r?(0,yr.or)(i,(0,yr.not)(Sg(t,e,n))):i}wn.noPropertyInData=Tg;function bD(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}wn.allSchemaProperties=bD;function C1e(t,e){return bD(e).filter(n=>!(0,wg.alwaysValidSchema)(t,e[n]))}wn.schemaProperties=C1e;function O1e({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:l},it:s},a,o,u){let c=u?(0,yr._)`${t}, ${e}, ${r}${i}`:e,f=[[$2.default.instancePath,(0,yr.strConcat)($2.default.instancePath,l)],[$2.default.parentData,s.parentData],[$2.default.parentDataProperty,s.parentDataProperty],[$2.default.rootData,$2.default.rootData]];s.opts.dynamicRef&&f.push([$2.default.dynamicAnchors,$2.default.dynamicAnchors]);let d=(0,yr._)`${c}, ${n.object(...f)}`;return o!==yr.nil?(0,yr._)`${a}.call(${o}, ${d})`:(0,yr._)`${a}(${d})`}wn.callValidateCode=O1e;var N1e=(0,yr._)`new RegExp`;function R1e({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:i}=e.code,l=i(n,r);return t.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,yr._)`${i.code==="new RegExp"?N1e:(0,b1e.useFunc)(t,i)}(${n}, ${r})`})}wn.usePattern=R1e;function I1e(t){let{gen:e,data:n,keyword:r,it:i}=t,l=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(l,!0),s(()=>e.break()),l;function s(a){let o=e.const("len",(0,yr._)`${n}.length`);e.forRange("i",0,o,u=>{t.subschema({keyword:r,dataProp:u,dataPropType:wg.Type.Num},l),e.if((0,yr.not)(l),a)})}}wn.validateArray=I1e;function D1e(t){let{gen:e,schema:n,keyword:r,it:i}=t;if(! Line truncated
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,kt._)`[${i}]`)}}}function O1e({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,kt._)`${e} !== undefined`,()=>t.assign((0,kt._)`${e}[${n}]`,r))}function bg(t,e,n,r=nc.Correct){let i=r===nc.Correct?kt.operators.EQ:kt.operators.NEQ,l;switch(t){case"null":return(0,kt._)`${e} ${i} null`;case"array":l=(0,kt._)`Array.isArray(${e})`;break;case"object":l=(0,kt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":l=s((0,kt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":l=s();break;default:return(0,kt._)`typeof ${e} ${i} ${t}`}return r===nc.Correct?l:(0,kt.not)(l);function s(a=kt.nil){return(0,kt.and)((0,kt._)`typeof ${e} == "number"`,a,n?(0,kt._)`isFinite(${e})`:kt.nil)}}Ni.checkDataType=bg;function wg(t,e,n,r){if(t.length===1)return bg(t[0],e,n,r);let i,l=(0,ED.toHash)(t);if(l.array&&l.object){let s=(0,kt._)`typeof ${e} != "object"`;i=l.null?s:(0,kt._)`!${e} || ${s}`,delete l.null,delete l.array,delete l.object}else i=kt.nil;l.number&&delete l.integer;for(let s in l)i=(0,kt.and)(i,bg(s,e,n,r));return i}Ni.checkDataTypes=wg;var N1e={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,kt._)`{type: ${t}}`:(0,kt._)`{type: ${e}}`};function Sg(t){let e=I1e(t);(0,w1e.reportError)(e,N1e)}Ni.reportTypeError=Sg;function I1e(t){let{gen:e,data:n,schema:r}=t,i=(0,ED.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:t}}});var SD=D(g9=>{"use strict";Object.defineProperty(g9,"__esModule",{value:!0});g9.assignDefaults=void 0;var A0=ht(),R1e=Pt();function D1e(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let i in n)wD(t,i,n[i].default);else e==="array"&&Array.isArray(r)&&r.forEach((i,l)=>wD(t,l,i.default))}g9.assignDefaults=D1e;function wD(t,e,n){let{gen:r,compositeRule:i,data:l,opts:s}=t;if(n===void 0)return;let a=(0,A0._)`${l}${(0,A0.getProperty)(e)}`;if(i){(0,R1e.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,A0._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,A0._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,A0._)`${a} = ${(0,A0.stringify)(n)}`)}});var Ii=D(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.validateUnion=wn.validateArray=wn.usePattern=wn.callValidateCode=wn.schemaProperties=wn.allSchemaProperties=wn.noPropertyInData=wn.propertyInData=wn.isOwnProperty=wn.hasPropFunc=wn.reportMissingProp=wn.checkMissingProp=wn.checkReportMissingProp=void 0;var gr=ht(),Tg=Pt(),H2=ds(),k1e=Pt();function P1e(t,e){let{gen:n,data:r,it:i}=t;n.if(Cg(n,r,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,gr._)`${e}`},!0),t.error()})}wn.checkReportMissingProp=P1e;function L1e({gen:t,data:e,it:{opts:n}},r,i){return(0,gr.or)(...r.map(l=>(0,gr.and)(Cg(t,e,l,n.ownProperties),(0,gr._)`${i} = ${l}`)))}wn.checkMissingProp=L1e;function F1e(t,e){t.setParams({missingProperty:e},!0),t.error()}wn.reportMissingProp=F1e;function TD(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,gr._)`Object.prototype.hasOwnProperty`})}wn.hasPropFunc=TD;function Ag(t,e,n){return(0,gr._)`${TD(t)}.call(${e}, ${n})`}wn.isOwnProperty=Ag;function B1e(t,e,n,r){let i=(0,gr._)`${e}${(0,gr.getProperty)(n)} !== undefined`;return r?(0,gr._)`${i} && ${Ag(t,e,n)}`:i}wn.propertyInData=B1e;function Cg(t,e,n,r){let i=(0,gr._)`${e}${(0,gr.getProperty)(n)} === undefined`;return r?(0,gr.or)(i,(0,gr.not)(Ag(t,e,n))):i}wn.noPropertyInData=Cg;function AD(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}wn.allSchemaProperties=AD;function M1e(t,e){return AD(e).filter(n=>!(0,Tg.alwaysValidSchema)(t,e[n]))}wn.schemaProperties=M1e;function U1e({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:l},it:s},a,o,u){let c=u?(0,gr._)`${t}, ${e}, ${r}${i}`:e,f=[[H2.default.instancePath,(0,gr.strConcat)(H2.default.instancePath,l)],[H2.default.parentData,s.parentData],[H2.default.parentDataProperty,s.parentDataProperty],[H2.default.rootData,H2.default.rootData]];s.opts.dynamicRef&&f.push([H2.default.dynamicAnchors,H2.default.dynamicAnchors]);let d=(0,gr._)`${c}, ${n.object(...f)}`;return o!==gr.nil?(0,gr._)`${a}.call(${o}, ${d})`:(0,gr._)`${a}(${d})`}wn.callValidateCode=U1e;var j1e=(0,gr._)`new RegExp`;function $1e({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:i}=e.code,l=i(n,r);return t.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,gr._)`${i.code==="new RegExp"?j1e:(0,k1e.useFunc)(t,i)}(${n}, ${r})`})}wn.usePattern=$1e;function H1e(t){let{gen:e,data:n,keyword:r,it:i}=t,l=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(l,!0),s(()=>e.break()),l;function s(a){let o=e.const("len",(0,gr._)`${n}.length`);e.forRange("i",0,o,u=>{t.subschema({keyword:r,dataProp:u,dataPropType:Tg.Type.Num},l),e.if((0,gr.not)(l),a)})}}wn.validateArray=H1e;function q1e(t){let{gen:e,schema:n,keyword:r,it:i}=t;if(! Line truncated
missingProperty: ${r},
depsCount: ${e},
deps: ${n}}`};var s5e={keyword:"dependencies",type:"object",schemaType:"object",error:ya.error,code(t){let[e,n]=a5e(t);Pk(t,e),Lk(t,n)}};function a5e({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let i=Array.isArray(t[r])?e:n;i[r]=t[r]}return[e,n]}function Pk(t,e=t.schema){let{gen:n,data:r,it:i}=t;if(Object.keys(e).length===0)return;let l=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,vc.propertyInData)(n,r,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?n.if(o,()=>{for(let u of a)(0,vc.checkReportMissingProp)(t,u)}):(n.if((0,fv._)`${o} && (${(0,vc.checkMissingProp)(t,a,l)})`),(0,vc.reportMissingProp)(t,l),n.else())}}ya.validatePropertyDeps=Pk;function Lk(t,e=t.schema){let{gen:n,data:r,keyword:i,it:l}=t,s=n.name("valid");for(let a in e)(0,l5e.alwaysValidSchema)(l,e[a])||(n.if((0,vc.propertyInData)(n,r,a,l.opts.ownProperties),()=>{let o=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}ya.validateSchemaDeps=Lk;ya.default=s5e});var Mk=D(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var Bk=ht(),o5e=Pt(),u5e={message:"property name must be valid",params:({params:t})=>(0,Bk._)`{propertyName: ${t.propertyName}}`},c5e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:u5e,code(t){let{gen:e,schema:n,data:r,it:i}=t;if((0,o5e.alwaysValidSchema)(i,n))return;let l=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},l),e.if((0,Bk.not)(l),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(l)}};pv.default=c5e});var dv=D(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var N9=Oi(),Hs=ht(),f5e=hs(),R9=Pt(),p5e={message:"must NOT have additional properties",params:({params:t})=>(0,Hs._)`{additionalProperty: ${t.additionalProperty}}`},h5e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:p5e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,errsCount:l,it:s}=t;if(!l)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,R9.alwaysValidSchema)(s,n))return;let u=(0,N9.allSchemaProperties)(r.properties),c=(0,N9.allSchemaProperties)(r.patternProperties);f(),t.ok((0,Hs._)`${l} === ${f5e.default.errors}`);function f(){e.forIn("key",i,b=>{!u.length&&!c.length?m(b):e.if(d(b),()=>m(b))})}function d(b){let _;if(u.length>8){let E=(0,R9.schemaRefOrVal)(s,r.properties,"properties");_=(0,N9.isOwnProperty)(e,E,b)}else u.length?_=(0,Hs.or)(...u.map(E=>(0,Hs._)`${b} === ${E}`)):_=Hs.nil;return c.length&&(_=(0,Hs.or)(_,...c.map(E=>(0,Hs._)`${(0,N9.usePattern)(t,E)}.test(${b})`))),(0,Hs.not)(_)}function h(b){e.code((0,Hs._)`delete ${i}[${b}]`)}function m(b){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){h(b);return}if(n===!1){t.setParams({additionalProperty:b}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,R9.alwaysValidSchema)(s,n)){let _=e.name("valid");o.removeAdditional==="failing"?(x(b,_,!1),e.if((0,Hs.not)(_),()=>{t.reset(),h(b)})):(x(b,_),a||e.if((0,Hs.not)(_),()=>e.break()))}}function x(b,_,E){let v={keyword:"additionalProperties",dataProp:b,dataPropType:R9.Type.Str};E===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,_)}}};hv.default=h5e});var $k=D(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var d5e=C0(),Uk=Oi(),mv=Pt(),jk=dv(),m5e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:l}=t;l.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&jk.default.code(new d5e.KeywordCxt(l,jk.default,"additionalProperties"));let s=(0,Uk.allSchemaProperties)(n);for(let f of s)l.definedProperties.add(f);l.opts.unevaluated&&s.length&&l.props!==!0&&(l.props=mv.mergeEvaluated.props(e,(0,mv.toHash)(s),l.props));let a=s.filter(f=>!(0,mv.alwaysValidSchema)(l,n[f]));if(a.length===0)return;let o=e.name("valid");for(let f of a)u(f)?c(f):(e.if((0,Uk.propertyInData)(e,i,f,l.opts.ownProperties)),c(f),l.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(o);function u(f){return l.opts.useDefaults&&!l.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},o)}}};yv.default=m5e});var zk=D(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var Hk=Oi(),I9=ht(),qk=Pt(),Vk=Pt(),y5e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:i,it:l}=t,{opts:s}=l,a=(0,Hk.allSchemaProperties)(n),o=a.filter(x=>(0,qk.alwaysValidSchema)(l,n[x]));if(a.length===0||o.length===a.length&&(!l.opts.unevaluated||l.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&i.properties,c=e.name("valid");l.props!==!0&&!(l.props instanc Line truncated
deps: ${n}}`};var g5e={keyword:"dependencies",type:"object",schemaType:"object",error:ga.error,code(t){let[e,n]=v5e(t);Mk(t,e),Uk(t,n)}};function v5e({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let i=Array.isArray(t[r])?e:n;i[r]=t[r]}return[e,n]}function Mk(t,e=t.schema){let{gen:n,data:r,it:i}=t;if(Object.keys(e).length===0)return;let l=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,Ec.propertyInData)(n,r,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?n.if(o,()=>{for(let u of a)(0,Ec.checkReportMissingProp)(t,u)}):(n.if((0,hv._)`${o} && (${(0,Ec.checkMissingProp)(t,a,l)})`),(0,Ec.reportMissingProp)(t,l),n.else())}}ga.validatePropertyDeps=Mk;function Uk(t,e=t.schema){let{gen:n,data:r,keyword:i,it:l}=t,s=n.name("valid");for(let a in e)(0,y5e.alwaysValidSchema)(l,e[a])||(n.if((0,Ec.propertyInData)(n,r,a,l.opts.ownProperties),()=>{let o=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}ga.validateSchemaDeps=Uk;ga.default=g5e});var Hk=D(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var $k=ht(),_5e=Pt(),E5e={message:"property name must be valid",params:({params:t})=>(0,$k._)`{propertyName: ${t.propertyName}}`},x5e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:E5e,code(t){let{gen:e,schema:n,data:r,it:i}=t;if((0,_5e.alwaysValidSchema)(i,n))return;let l=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},l),e.if((0,$k.not)(l),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(l)}};dv.default=x5e});var yv=D(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var R9=Ii(),Vs=ht(),b5e=ds(),D9=Pt(),w5e={message:"must NOT have additional properties",params:({params:t})=>(0,Vs._)`{additionalProperty: ${t.additionalProperty}}`},S5e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:w5e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,errsCount:l,it:s}=t;if(!l)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,D9.alwaysValidSchema)(s,n))return;let u=(0,R9.allSchemaProperties)(r.properties),c=(0,R9.allSchemaProperties)(r.patternProperties);f(),t.ok((0,Vs._)`${l} === ${b5e.default.errors}`);function f(){e.forIn("key",i,b=>{!u.length&&!c.length?m(b):e.if(d(b),()=>m(b))})}function d(b){let _;if(u.length>8){let E=(0,D9.schemaRefOrVal)(s,r.properties,"properties");_=(0,R9.isOwnProperty)(e,E,b)}else u.length?_=(0,Vs.or)(...u.map(E=>(0,Vs._)`${b} === ${E}`)):_=Vs.nil;return c.length&&(_=(0,Vs.or)(_,...c.map(E=>(0,Vs._)`${(0,R9.usePattern)(t,E)}.test(${b})`))),(0,Vs.not)(_)}function h(b){e.code((0,Vs._)`delete ${i}[${b}]`)}function m(b){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){h(b);return}if(n===!1){t.setParams({additionalProperty:b}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,D9.alwaysValidSchema)(s,n)){let _=e.name("valid");o.removeAdditional==="failing"?(x(b,_,!1),e.if((0,Vs.not)(_),()=>{t.reset(),h(b)})):(x(b,_),a||e.if((0,Vs.not)(_),()=>e.break()))}}function x(b,_,E){let v={keyword:"additionalProperties",dataProp:b,dataPropType:D9.Type.Str};E===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,_)}}};mv.default=S5e});var zk=D(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var T5e=N0(),qk=Ii(),gv=Pt(),Vk=yv(),A5e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:l}=t;l.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&Vk.default.code(new T5e.KeywordCxt(l,Vk.default,"additionalProperties"));let s=(0,qk.allSchemaProperties)(n);for(let f of s)l.definedProperties.add(f);l.opts.unevaluated&&s.length&&l.props!==!0&&(l.props=gv.mergeEvaluated.props(e,(0,gv.toHash)(s),l.props));let a=s.filter(f=>!(0,gv.alwaysValidSchema)(l,n[f]));if(a.length===0)return;let o=e.name("valid");for(let f of a)u(f)?c(f):(e.if((0,qk.propertyInData)(e,i,f,l.opts.ownProperties)),c(f),l.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(o);function u(f){return l.opts.useDefaults&&!l.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},o)}}};vv.default=A5e});var Wk=D(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var Gk=Ii(),k9=ht(),Kk=Pt(),Jk=Pt(),C5e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:i,it:l}=t,{opts:s}=l,a=(0,Gk.allSchemaProperties)(n),o=a.filter(x=>(0,Kk.alwaysValidSchema)(l,n[x]));if(a.length===0||o.length===a.length&&(!l.opts.unevaluated||l.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&i.properties,c=e.name("valid");l.props!==!0&&!(l.props instanc Line truncated
`,i+=`const validator = Validator.restoreFromState(validatorState)
`):i+=`const validator = null
`,`
@@ -119,7 +119,7 @@ ${_}`),m.pop(),`{${S}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
${i}
module.exports = ${t.toString()}(validator, serializer)`}Vv.exports=h8e;Vv.exports.dependencies={Serializer:Yy(),Validator:qv()}});var jP=D((zLe,UP)=>{"use strict";var{dependencies:d8e}=zv(),{Serializer:m8e,Validator:VLe}=d8e,y8e={mode:"standalone"},g8e=m8e.restoreFromState(y8e),v8e=null;UP.exports=function(e,n){function r(l){let s=l&&typeof l.toJSON=="function"?l.toJSON():l;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(v8e,g8e)});var bc=D((GLe,VP)=>{"use strict";var $P=require("node:http").STATUS_CODES,_8e=Wm(),{kReplyHeaders:X3,kReplyNextErrorHandler:H9,kReplyIsRunningOnErrorHook:E8e,kReplyHasStatusCode:x8e,kRouteContext:qP}=_i(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:b8e,FST_ERR_FAILED_ERROR_SERIALIZATION:w8e}=$i(),{getSchemaSerializer:S8e}=z4(),Gv=jP(),T8e={func:C8e,toJSON(){return this.func.name.toString()+"()"}};function A8e(t,e,n){t[E8e]=!1;let r=t[qP];if(t[H9]===!1){HP(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[X3])}catch(u){a.log.warn({req:a.request,res:a,err:u},u&&u.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let i=t[H9]||r.errorHandler;t[H9]=Object.getPrototypeOf(i),delete t[X3]["content-type"],delete t[X3]["content-length"];let l=i.func;if(!l){t[H9]=!1,HP(e,t,n);return}let s=l(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?_8e(s,t):t.send(s))}function C8e(t,e,n){if(N8e(t,n),!n[x8e]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function HP(t,e,n){let r=e.raw,i=e.statusCode;e[X3]["content-type"]=e[X3]["content-type"]??"application/json; charset=utf-8";let l;try{let s=S8e(e[qP],i,e[X3]["content-type"]);l=s===!1?Gv({error:$P[i+""],code:t.code,message:t.message,statusCode:i}):s(Object.create(t,{error:{value:$P[i+""]},message:{value:t.message},statusCode:{value:i}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),l=Gv(new w8e(s.message,t.message))}typeof l!="string"&&!Buffer.isBuffer(l)&&(l=Gv(new b8e(typeof l))),e[X3]["content-length"]=""+Buffer.byteLength(l),n(e,l)}function O8e(t=T8e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function N8e(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}VP.exports={buildErrorHandler:O8e,handleError:A8e}});var W9=D((KLe,K9)=>{"use strict";var Xv=require("node:stream").finished,R8e=require("node:stream").Readable,{kFourOhFourContext:zP,kPublicRouteContext:GP,kReplyErrorHandlerCalled:eL,kReplyHijacked:wc,kReplyStartTime:Sc,kReplyEndTime:Qv,kReplySerializer:s2,kReplySerializerDefault:V9,kReplyIsError:z9,kReplyHeaders:Ln,kReplyTrailers:Ei,kReplyHasStatusCode:Zv,kReplyIsRunningOnErrorHook:e_,kReplyNextErrorHandler:I8e,kDisableRequestLogging:tL,kSchemaResponse:G9,kReplyCacheSerializeFns:W2,kSchemaController:Kv,kOptions:D8e,kRouteContext:$t}=_i(),{onSendHookRunner:nL,onResponseHookRunner:k8e,preHandlerHookRunner:P8e,preSerializationHookRunner:L8e}=P2(),KP=Qm()[Symbol.for("internals")],F8e=q4(),Yv=F8e.now,{handleError:WP}=bc(),{getSchemaSerializer:B8e}=z4(),Wv={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:M8e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:U8e,FST_ERR_REP_ALREADY_SENT:rL,FST_ERR_REP_SENT_VALUE:j8e,FST_ERR_SEND_INSIDE_ONERR:$8e,FST_ERR_BAD_STATUS_CODE:H8e,FST_ERR_BAD_TRAILER_NAME:q8e,FST_ERR_BAD_TRAILER_VALUE:V8e,FST_ERR_MISSING_SERIALIZATION_FN:z8e,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:G8e}=$i(),{FSTDEP010:K8e,FSTDEP013:W8e,FSTDEP019:J8e,FSTDEP020:X8e}=e2(),iL=Object.prototype.toString;function On(t,e,n){this.raw=t,this[s2]=null,this[eL]=!1,this[z9]=!1,this[e_]=!1,this.request=e,this[Ln]={},this[Ei]=null,this[Zv]=!1,this[Sc]=void 0,this.log=n}On.props=[];Object.defineProperties(On.prototype,{[$t]:{get(){return this.request[$t]}},context:{get(){return J8e(),this.request[$t]}},elapsedTime:{get(){return this[Sc]===void 0?0:(this[Qv]||Yv())-this[Sc]}},server:{get(){return this.request[$t].server}},sent:{enumerable:!0,get(){return(this[wc]||this.raw.writableEnded)===!0},set(t){if(K8e(),t!==!0)throw new j8e;if(this.sent&&this[wc])throw new rL(this.request.url,this.request.method);this[wc]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[GP]:{get(){return this.request[GP]}}});On.prototype.hijack=function(){return this[wc]=!0,this};On.prototype.send=function(t){if(this[e_]===!0)throw new $8e;if(this.sent)return this.log.warn Line truncated
module.exports = ${t.toString()}(validator, serializer)`}Gv.exports=S8e;Gv.exports.dependencies={Serializer:Zy(),Validator:zv()}});var VP=D((iFe,qP)=>{"use strict";var{dependencies:T8e}=Kv(),{Serializer:A8e,Validator:rFe}=T8e,C8e={mode:"standalone"},O8e=A8e.restoreFromState(C8e),N8e=null;qP.exports=function(e,n){function r(l){let s=l&&typeof l.toJSON=="function"?l.toJSON():l;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(N8e,O8e)});var Sc=D((lFe,JP)=>{"use strict";var zP=require("node:http").STATUS_CODES,I8e=Xm(),{kReplyHeaders:Q3,kReplyNextErrorHandler:V9,kReplyIsRunningOnErrorHook:R8e,kReplyHasStatusCode:D8e,kRouteContext:KP}=xi(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:k8e,FST_ERR_FAILED_ERROR_SERIALIZATION:P8e}=qi(),{getSchemaSerializer:L8e}=K4(),Jv=VP(),F8e={func:M8e,toJSON(){return this.func.name.toString()+"()"}};function B8e(t,e,n){t[R8e]=!1;let r=t[KP];if(t[V9]===!1){GP(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[Q3])}catch(u){a.log.warn({req:a.request,res:a,err:u},u&&u.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let i=t[V9]||r.errorHandler;t[V9]=Object.getPrototypeOf(i),delete t[Q3]["content-type"],delete t[Q3]["content-length"];let l=i.func;if(!l){t[V9]=!1,GP(e,t,n);return}let s=l(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?I8e(s,t):t.send(s))}function M8e(t,e,n){if(j8e(t,n),!n[D8e]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function GP(t,e,n){let r=e.raw,i=e.statusCode;e[Q3]["content-type"]=e[Q3]["content-type"]??"application/json; charset=utf-8";let l;try{let s=L8e(e[KP],i,e[Q3]["content-type"]);l=s===!1?Jv({error:zP[i+""],code:t.code,message:t.message,statusCode:i}):s(Object.create(t,{error:{value:zP[i+""]},message:{value:t.message},statusCode:{value:i}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),l=Jv(new P8e(s.message,t.message))}typeof l!="string"&&!Buffer.isBuffer(l)&&(l=Jv(new k8e(typeof l))),e[Q3]["content-length"]=""+Buffer.byteLength(l),n(e,l)}function U8e(t=F8e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function j8e(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}JP.exports={buildErrorHandler:U8e,handleError:B8e}});var X9=D((sFe,W9)=>{"use strict";var Qv=require("node:stream").finished,$8e=require("node:stream").Readable,{kFourOhFourContext:WP,kPublicRouteContext:XP,kReplyErrorHandlerCalled:iL,kReplyHijacked:Tc,kReplyStartTime:Ac,kReplyEndTime:e_,kReplySerializer:a2,kReplySerializerDefault:G9,kReplyIsError:K9,kReplyHeaders:fr,kReplyTrailers:bi,kReplyHasStatusCode:t_,kReplyIsRunningOnErrorHook:n_,kReplyNextErrorHandler:H8e,kDisableRequestLogging:lL,kSchemaResponse:J9,kReplyCacheSerializeFns:W2,kSchemaController:Wv,kOptions:q8e,kRouteContext:$t}=xi(),{onSendHookRunner:sL,onResponseHookRunner:V8e,preHandlerHookRunner:z8e,preSerializationHookRunner:G8e}=L2(),YP=ey()[Symbol.for("internals")],K8e=z4(),Zv=K8e.now,{handleError:QP}=Sc(),{getSchemaSerializer:J8e}=K4(),Xv={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:W8e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:X8e,FST_ERR_REP_ALREADY_SENT:aL,FST_ERR_REP_SENT_VALUE:Y8e,FST_ERR_SEND_INSIDE_ONERR:Q8e,FST_ERR_BAD_STATUS_CODE:Z8e,FST_ERR_BAD_TRAILER_NAME:e9e,FST_ERR_BAD_TRAILER_VALUE:t9e,FST_ERR_MISSING_SERIALIZATION_FN:n9e,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:r9e}=qi(),{FSTDEP010:i9e,FSTDEP013:l9e,FSTDEP019:s9e,FSTDEP020:a9e}=t2(),oL=Object.prototype.toString;function Nn(t,e,n){this.raw=t,this[a2]=null,this[iL]=!1,this[K9]=!1,this[n_]=!1,this.request=e,this[fr]={},this[bi]=null,this[t_]=!1,this[Ac]=void 0,this.log=n}Nn.props=[];Object.defineProperties(Nn.prototype,{[$t]:{get(){return this.request[$t]}},context:{get(){return s9e(),this.request[$t]}},elapsedTime:{get(){return this[Ac]===void 0?0:(this[e_]||Zv())-this[Ac]}},server:{get(){return this.request[$t].server}},sent:{enumerable:!0,get(){return(this[Tc]||this.raw.writableEnded)===!0},set(t){if(i9e(),t!==!0)throw new Y8e;if(this.sent&&this[Tc])throw new aL(this.request.url,this.request.method);this[Tc]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[XP]:{get(){return this.request[XP]}}});Nn.prototype.hijack=function(){return this[Tc]=!0,this};Nn.prototype.send=function(t){if(this[n_]===!0)throw new Q8e;if(this.sent)return this.log.warn Line truncated
${n.functions.join(`
`)}
const main = anonymous0
@@ -133,9 +133,9 @@ ${_}`),m.pop(),`{${S}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
${n.functions.join(`
`)}
return main
`;let a=new Phe(e),o=new Lhe(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);o.addSchema(f,c);let d=n.refResolver.getSchemaDependencies(c);for(let[h,m]of Object.entries(d))o.addSchema(m,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
`;let a=new zhe(e),o=new Ghe(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);o.addSchema(f,c);let d=n.refResolver.getSchemaDependencies(c);for(let[h,m]of Object.entries(d))o.addSchema(m,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
serializer
${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode==="standalone"?zv()(u,n,a,o):u(o,a)}var Mhe=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],Uhe=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],jhe=["maxLength","minLength","pattern"],$he=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function uM(t){for(var e of Mhe)if(e in t)return"object";for(var e of Uhe)if(e in t)return"array";for(var e of jhe)if(e in t)return"string";for(var e of $he)if(e in t)return"number";return t.type}function Hhe(t,e){let n=e.schema,r=Object.keys(n.properties||{}),i=`
${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode==="standalone"?Kv()(u,n,a,o):u(o,a)}var Whe=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],Xhe=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],Yhe=["maxLength","minLength","pattern"],Qhe=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function hM(t){for(var e of Whe)if(e in t)return"object";for(var e of Xhe)if(e in t)return"array";for(var e of Yhe)if(e in t)return"string";for(var e of Qhe)if(e in t)return"number";return t.type}function Zhe(t,e){let n=e.schema,r=Object.keys(n.properties||{}),i=`
const propertiesKeys = ${JSON.stringify(r)}
for (const [key, value] of Object.entries(obj)) {
if (
@@ -146,61 +146,61 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
) continue
`,l=e.getPropertyLocation("patternProperties"),s=l.schema;if(s!==void 0)for(let u in s){let c=l.getPropertyLocation(u);i+=`
if (/${u.replace(/\\*\//g,"\\/")}/.test(key)) {
${q0}
${z0}
json += serializer.asString(key) + ':'
${Ea(t,c,"value")}
${xa(t,c,"value")}
continue
}
`}let o=e.getPropertyLocation("additionalProperties").schema;if(o!==void 0)if(o===!0)i+=`
${q0}
${z0}
json += serializer.asString(key) + ':' + JSON.stringify(value)
`;else{let u=e.getPropertyLocation("additionalProperties");i+=`
${q0}
${z0}
json += serializer.asString(key) + ':'
${Ea(t,u,"value")}
${xa(t,u,"value")}
`}return i+=`
}
`,i}function qhe(t,e){let n="",r=e.schema,i=r.required||[],l=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let u of Object.keys(r.properties)){if(i.indexOf(u)===-1)continue;let c=l.getPropertyLocation(u);c.schema.$ref&&(c=V0(t,e,c.schema.$ref));let f=JSON.stringify(u);c.schema.default===void 0&&(n+=`if (obj[${f}] === undefined) throw new Error('${f} is required!')
`,i}function ede(t,e){let n="",r=e.schema,i=r.required||[],l=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let u of Object.keys(r.properties)){if(i.indexOf(u)===-1)continue;let c=l.getPropertyLocation(u);c.schema.$ref&&(c=G0(t,e,c.schema.$ref));let f=JSON.stringify(u);c.schema.default===void 0&&(n+=`if (obj[${f}] === undefined) throw new Error('${f} is required!')
`,a.push(u)),s.push(u)}for(let u of i)s.indexOf(u)===-1&&(n+=`if (obj['${u}'] === undefined) throw new Error('"${u}" is required!')
`);n+=`
let addComma = false
let json = '${t.wrapObjects?"{":""}'
`;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let u of Object.keys(r.properties)){let c=l.getPropertyLocation(u);c.schema.$ref&&(c=V0(t,e,c.schema.$ref));let f=JSON.stringify(u);if(a.indexOf(u)!==-1)n+=`
${q0}
`;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let u of Object.keys(r.properties)){let c=l.getPropertyLocation(u);c.schema.$ref&&(c=G0(t,e,c.schema.$ref));let f=JSON.stringify(u);if(a.indexOf(u)!==-1)n+=`
${z0}
json += ${JSON.stringify(f+":")}
${Ea(t,c,`obj[${f}]`)}
${xa(t,c,`obj[${f}]`)}
`;else{n+=`
if (obj[${f}] !== undefined) {
${q0}
${z0}
json += ${JSON.stringify(f+":")}
${Ea(t,c,`obj[${f}]`)}
${xa(t,c,`obj[${f}]`)}
}
`;let d=c.schema.default;d!==void 0&&(n+=`
else {
${q0}
${z0}
json += ${JSON.stringify(f+":"+JSON.stringify(d))}
}
`)}}return(r.patternProperties||r.additionalProperties)&&(n+=Hhe(t,e)),t.wrapObjects=o,n+=`
`)}}return(r.patternProperties||r.additionalProperties)&&(n+=Zhe(t,e)),t.wrapObjects=o,n+=`
return json${t.wrapObjects?" + '}'":""}
`,n}function cM(t,e,n,r){let i=e.getPropertyLocation("allOf");for(let l=0;l<n.allOf.length;l++){let s=n.allOf[l];if(s.$ref){let o=i.getPropertyLocation(l);s=V0(t,o,s.$ref).schema}let a=s.type;if(a===void 0&&(a=uM(s)),a!==void 0){if(r.type!==void 0&&r.type!==a)throw new Error("allOf schemas have different type values");r.type=a}if(s.format!==void 0){if(r.format!==void 0&&r.format!==s.format)throw new Error("allOf schemas have different format values");r.format=s.format}if(s.nullable!==void 0){if(r.nullable!==void 0&&r.nullable!==s.nullable)throw new Error("allOf schemas have different nullable values");r.nullable=s.nullable}s.properties!==void 0&&(r.properties===void 0&&(r.properties={}),Object.assign(r.properties,s.properties)),s.additionalProperties!==void 0&&(r.additionalProperties===void 0&&(r.additionalProperties={}),Object.assign(r.additionalProperties,s.additionalProperties)),s.patternProperties!==void 0&&(r.patternProperties===void 0&&(r.patternProperties={}),Object.assign(r.patternProperties,s.patternProperties)),s.required!==void 0&&(r.required===void 0&&(r.required=[]),r.required.push(...s.required)),s.oneOf!==void 0&&(r.oneOf===void 0&&(r.oneOf=[]),r.oneOf.push(...s.oneOf)),s.anyOf!==void 0&&(r.anyOf===void 0&&(r.anyOf=[]),r.anyOf.push(...s.anyOf)),s.allOf!==void 0&&cM(t,e,s,r)}delete r.allOf,r.$id=`__fjs_merged_${oM++}`,t.refResolver.addSchema(r),e.addMergedSchema(r,r.$id)}function Vhe(t,e,n){t.validatorSchemasIds.add(e.getSchemaId());let r=K_({},e.schema),i=r.then,l=r.else||{additionalProperties:!0};delete r.if,delete r.then,delete r.else;let a=e.getPropertyLocation("if").getSchemaRef(),o=e.getPropertyLocation("then");o.schema=K_(r,i);let u=e.getPropertyLocation("else");return u.schema=K_(r,l),`
`,n}function dM(t,e,n,r){let i=e.getPropertyLocation("allOf");for(let l=0;l<n.allOf.length;l++){let s=n.allOf[l];if(s.$ref){let o=i.getPropertyLocation(l);s=G0(t,o,s.$ref).schema}let a=s.type;if(a===void 0&&(a=hM(s)),a!==void 0){if(r.type!==void 0&&r.type!==a)throw new Error("allOf schemas have different type values");r.type=a}if(s.format!==void 0){if(r.format!==void 0&&r.format!==s.format)throw new Error("allOf schemas have different format values");r.format=s.format}if(s.nullable!==void 0){if(r.nullable!==void 0&&r.nullable!==s.nullable)throw new Error("allOf schemas have different nullable values");r.nullable=s.nullable}s.properties!==void 0&&(r.properties===void 0&&(r.properties={}),Object.assign(r.properties,s.properties)),s.additionalProperties!==void 0&&(r.additionalProperties===void 0&&(r.additionalProperties={}),Object.assign(r.additionalProperties,s.additionalProperties)),s.patternProperties!==void 0&&(r.patternProperties===void 0&&(r.patternProperties={}),Object.assign(r.patternProperties,s.patternProperties)),s.required!==void 0&&(r.required===void 0&&(r.required=[]),r.required.push(...s.required)),s.oneOf!==void 0&&(r.oneOf===void 0&&(r.oneOf=[]),r.oneOf.push(...s.oneOf)),s.anyOf!==void 0&&(r.anyOf===void 0&&(r.anyOf=[]),r.anyOf.push(...s.anyOf)),s.allOf!==void 0&&dM(t,e,s,r)}delete r.allOf,r.$id=`__fjs_merged_${pM++}`,t.refResolver.addSchema(r),e.addMergedSchema(r,r.$id)}function tde(t,e,n){t.validatorSchemasIds.add(e.getSchemaId());let r=W_({},e.schema),i=r.then,l=r.else||{additionalProperties:!0};delete r.if,delete r.then,delete r.else;let a=e.getPropertyLocation("if").getSchemaRef(),o=e.getPropertyLocation("then");o.schema=W_(r,i);let u=e.getPropertyLocation("else");return u.schema=W_(r,l),`
if (validator.validate("${a}", ${n})) {
${Ea(t,o,n)}
${xa(t,o,n)}
} else {
${Ea(t,u,n)}
${xa(t,u,n)}
}
`}function zhe(t){return`(${t} && typeof ${t}.toJSON === 'function')
`}function nde(t){return`(${t} && typeof ${t}.toJSON === 'function')
? ${t}.toJSON()
: ${t}
`}function fM(t,e){let n=e.schema;if(t.functionsNamesBySchema.has(n))return t.functionsNamesBySchema.get(n);let r=hM(t);t.functionsNamesBySchema.set(n,r);let i=e.getSchemaRef();i.startsWith(t.rootSchemaId)&&(i=i.replace(t.rootSchemaId,""));let l=`
`}function mM(t,e){let n=e.schema;if(t.functionsNamesBySchema.has(n))return t.functionsNamesBySchema.get(n);let r=gM(t);t.functionsNamesBySchema.set(n,r);let i=e.getSchemaRef();i.startsWith(t.rootSchemaId)&&(i=i.replace(t.rootSchemaId,""));let l=`
`,s=n.nullable===!0;return l+=`
// ${i}
function ${r} (input) {
const obj = ${zhe("input")}
const obj = ${nde("input")}
${s?"":"if (obj === null) return '{}'"}
${qhe(t,e)}
${ede(t,e)}
}
`,t.functions.push(l),r}function Ghe(t,e){let n=e.schema,r=e.getPropertyLocation("items");r.schema=r.schema||{},r.schema.$ref&&(r=V0(t,r,r.schema.$ref));let i=r.schema;if(t.functionsNamesBySchema.has(n))return t.functionsNamesBySchema.get(n);let l=hM(t);t.functionsNamesBySchema.set(n,l);let s=e.getSchemaRef();s.startsWith(t.rootSchemaId)&&(s=s.replace(t.rootSchemaId,""));let a=`
`,t.functions.push(l),r}function rde(t,e){let n=e.schema,r=e.getPropertyLocation("items");r.schema=r.schema||{},r.schema.$ref&&(r=G0(t,r,r.schema.$ref));let i=r.schema;if(t.functionsNamesBySchema.has(n))return t.functionsNamesBySchema.get(n);let l=gM(t);t.functionsNamesBySchema.set(n,l);let s=e.getSchemaRef();s.startsWith(t.rootSchemaId)&&(s=s.replace(t.rootSchemaId,""));let a=`
function ${l} (obj) {
// ${s}
`,o=n.nullable===!0;if(a+=`
@@ -213,12 +213,12 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
if (arrayLength > ${i.length}) {
throw new Error(\`Item at ${i.length} does not match schema definition.\`)
}
`),sM==="json-stringify"&&(a+=`if (arrayLength && arrayLength >= ${b7}) return JSON.stringify(obj)
`),cM==="json-stringify"&&(a+=`if (arrayLength && arrayLength >= ${S7}) return JSON.stringify(obj)
`),a+=`
let jsonOutput = ''
`,Array.isArray(i)){for(let u=0;u<i.length;u++){let c=i[u],f=Ea(t,r.getPropertyLocation(u),`obj[${u}]`);a+=`
`,Array.isArray(i)){for(let u=0;u<i.length;u++){let c=i[u],f=xa(t,r.getPropertyLocation(u),`obj[${u}]`);a+=`
if (${u} < arrayLength) {
if (${pM(c.type,`[${u}]`)}) {
if (${yM(c.type,`[${u}]`)}) {
let json = ''
${f}
jsonOutput += json
@@ -235,7 +235,7 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
if (i < arrayLength - 1) {
jsonOutput += ','
}
}`)}else{let u=Ea(t,r,"obj[i]");a+=`
}`)}else{let u=xa(t,r,"obj[i]");a+=`
for (let i = 0; i < arrayLength; i++) {
let json = ''
${u}
@@ -243,7 +243,7 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
if (i < arrayLength - 1) {
jsonOutput += ','
}
}`}return a+="\n return `[${jsonOutput}]`\n }",t.functions.push(a),l}function pM(t,e){let n;switch(t){case"null":n=`obj${e} === null`;break;case"string":n=`typeof obj${e} === 'string' ||
}`}return a+="\n return `[${jsonOutput}]`\n }",t.functions.push(a),l}function yM(t,e){let n;switch(t){case"null":n=`obj${e} === null`;break;case"string":n=`typeof obj${e} === 'string' ||
obj${e} === null ||
obj${e} instanceof Date ||
obj${e} instanceof RegExp ||
@@ -251,7 +251,7 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
typeof obj${e} === "object" &&
typeof obj${e}.toString === "function" &&
obj${e}.toString !== Object.prototype.toString
)`;break;case"integer":n=`Number.isInteger(obj${e})`;break;case"number":n=`Number.isFinite(obj${e})`;break;case"boolean":n=`typeof obj${e} === 'boolean'`;break;case"object":n=`obj${e} && typeof obj${e} === 'object' && obj${e}.constructor === Object`;break;case"array":n=`Array.isArray(obj${e})`;break;default:Array.isArray(t)&&(n=`(${t.map(i=>pM(i,e)).join(" || ")})`)}return n}function hM(t){return"anonymous"+t.functionsCounter++}function Khe(t,e,n){let i=e.schema.type.sort(a=>a==="null"?-1:1),l="";i.forEach((a,o)=>{e.schema={...e.schema,type:a};let u=dM(t,e,n),c=o===0?"if":"else if";switch(a){case"null":l+=`
)`;break;case"integer":n=`Number.isInteger(obj${e})`;break;case"number":n=`Number.isFinite(obj${e})`;break;case"boolean":n=`typeof obj${e} === 'boolean'`;break;case"object":n=`obj${e} && typeof obj${e} === 'object' && obj${e}.constructor === Object`;break;case"array":n=`Array.isArray(obj${e})`;break;default:Array.isArray(t)&&(n=`(${t.map(i=>yM(i,e)).join(" || ")})`)}return n}function gM(t){return"anonymous"+t.functionsCounter++}function ide(t,e,n){let i=e.schema.type.sort(a=>a==="null"?-1:1),l="";i.forEach((a,o)=>{e.schema={...e.schema,type:a};let u=vM(t,e,n),c=o===0?"if":"else if";switch(a){case"null":l+=`
${c} (${n} === null)
${u}
`;break;case"string":{l+=`
@@ -278,17 +278,17 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
${u}
`;break}}});let s=e.getSchemaRef();return s.startsWith(t.rootSchemaId)&&(s=s.replace(t.rootSchemaId,"")),l+=`
else throw new TypeError(\`The value of '${s}' does not match schema definition.\`)
`,l}function dM(t,e,n){let r=e.schema;switch(r.type){case"null":return"json += 'null'";case"string":return r.format==="date-time"?`json += serializer.asDateTime(${n})`:r.format==="date"?`json += serializer.asDate(${n})`:r.format==="time"?`json += serializer.asTime(${n})`:`json += serializer.asString(${n})`;case"integer":return`json += serializer.asInteger(${n})`;case"number":return`json += serializer.asNumber(${n})`;case"boolean":return`json += serializer.asBoolean(${n})`;case"object":return`json += ${fM(t,e)}(${n})`;case"array":return`json += ${Ghe(t,e)}(${n})`;case void 0:return`json += JSON.stringify(${n})`;default:throw new Error(`${r.type} unsupported`)}}function Whe(t,e){let n=t.schema,r=n.type,i=Array.isArray(r)&&r.includes("null"),l="";return i&&(l+=`
`,l}function vM(t,e,n){let r=e.schema;switch(r.type){case"null":return"json += 'null'";case"string":return r.format==="date-time"?`json += serializer.asDateTime(${n})`:r.format==="date"?`json += serializer.asDate(${n})`:r.format==="time"?`json += serializer.asTime(${n})`:`json += serializer.asString(${n})`;case"integer":return`json += serializer.asInteger(${n})`;case"number":return`json += serializer.asNumber(${n})`;case"boolean":return`json += serializer.asBoolean(${n})`;case"object":return`json += ${mM(t,e)}(${n})`;case"array":return`json += ${rde(t,e)}(${n})`;case void 0:return`json += JSON.stringify(${n})`;default:throw new Error(`${r.type} unsupported`)}}function lde(t,e){let n=t.schema,r=n.type,i=Array.isArray(r)&&r.includes("null"),l="";return i&&(l+=`
if (${e} === null) {
json += 'null'
} else {
`),l+=`json += '${JSON.stringify(n.const).replace(Fhe,"\\'")}'`,i&&(l+=`
`),l+=`json += '${JSON.stringify(n.const).replace(Khe,"\\'")}'`,i&&(l+=`
}
`),l}function Ea(t,e,n){let r=e.schema;if(typeof r=="boolean")return`json += JSON.stringify(${n})`;if(r.$ref&&(e=V0(t,e,r.$ref),r=e.schema),r.type===void 0){let a=uM(r);a&&(r.type=a)}if(r.if&&r.then)return Vhe(t,e,n);r.allOf&&(cM(t,e,r,Dhe(r)),r=e.schema);let i=r.type,l="";if((i===void 0||i==="object")&&(r.anyOf||r.oneOf)){if(t.validatorSchemasIds.add(e.getSchemaId()),r.type==="object"){t.wrapObjects=!1;let c=fM(t,e);l+=`
`),l}function xa(t,e,n){let r=e.schema;if(typeof r=="boolean")return`json += JSON.stringify(${n})`;if(r.$ref&&(e=G0(t,e,r.$ref),r=e.schema),r.type===void 0){let a=hM(r);a&&(r.type=a)}if(r.if&&r.then)return tde(t,e,n);r.allOf&&(dM(t,e,r,qhe(r)),r=e.schema);let i=r.type,l="";if((i===void 0||i==="object")&&(r.anyOf||r.oneOf)){if(t.validatorSchemasIds.add(e.getSchemaId()),r.type==="object"){t.wrapObjects=!1;let c=mM(t,e);l+=`
json += '{'
json += ${c}(${n})
json += ','
`}let a=r.anyOf?"anyOf":"oneOf",o=e.getPropertyLocation(a);for(let c=0;c<e.schema[a].length;c++){let f=o.getPropertyLocation(c),d=f.getSchemaRef(),h=Ea(t,f,n);l+=`
`}let a=r.anyOf?"anyOf":"oneOf",o=e.getPropertyLocation(a);for(let c=0;c<e.schema[a].length;c++){let f=o.getPropertyLocation(c),d=f.getSchemaRef(),h=xa(t,f,n);l+=`
${c===0?"if":"else if"}(validator.validate("${d}", ${n}))
${h}
`}let u=e.getSchemaRef();return u.startsWith(t.rootSchemaId)&&(u=u.replace(t.rootSchemaId,"")),l+=`
@@ -299,16 +299,16 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
if (${n} === null) {
json += 'null'
} else {
`),r.const!==void 0?l+=Whe(e,n):Array.isArray(i)?l+=Khe(t,e,n):l+=dM(t,e,n),s&&(l+=`
`),r.const!==void 0?l+=lde(e,n):Array.isArray(i)?l+=ide(t,e,n):l+=vM(t,e,n),s&&(l+=`
}
`),l}z0.exports=J_;z0.exports.default=J_;z0.exports.build=J_;z0.exports.validLargeArrayMechanisms=aM;z0.exports.restore=function({code:t,validator:e,serializer:n}){return Function.apply(null,["validator","serializer",t]).apply(null,[e,n])}});var gM=D((tBe,X_)=>{"use strict";var Jhe=Y_();function yM(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=Jhe();return function(r,i={}){i.mode="standalone";let l=e(r,i);return function(s){let a=l(s);return t.storeFunction(s,a),new Function(a)}}}X_.exports=yM;X_.exports.default=yM});var Y_=D((nBe,jc)=>{"use strict";var Xhe=mM();function Q_(){return function(e,n){let r=Object.assign({},n,{schema:e});return Yhe.bind(null,r)}}function Yhe(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),Xhe(e,t)}jc.exports=Q_;jc.exports.default=Q_;jc.exports.SerializerSelector=Q_;jc.exports.StandaloneSerializer=gM()});var f2=D($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.checkMetadata=void 0;var Qhe=Pt(),Zhe={keyword:"metadata",schemaType:"object",code(t){vM(t);let{gen:e,schema:n,it:r}=t;if((0,Qhe.alwaysValidSchema)(r,n))return;let i=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},i),t.ok(i)}};function vM({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}$c.checkMetadata=vM;$c.default=Zhe});var w7=D(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.hasRef=void 0;var _M=G3(),Hc=ht(),ede=z2(),EM=hs(),xM=Hg(),tde=f2(),nde={keyword:"ref",schemaType:"string",code(t){(0,tde.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:i,it:l}=t,{schemaEnv:{root:s}}=l,a=e.name("valid");i.nullable?(e.var(a,(0,Hc._)`${n} === null`),e.if((0,Hc.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var f;let d=(f=s.schema.definitions)===null||f===void 0?void 0:f[r];if(!d)throw new ede.default(l.opts.uriResolver,"",r,`No definition ${r}`);Z_(d)||!l.opts.inlineRefs?u(d):c(d)}function u(f){let d=_M.compileSchema.call(l.self,new _M.SchemaEnv({schema:f,root:s,schemaPath:`/definitions/${r}`})),h=(0,xM.getValidate)(t,d),m=e.const("_errs",EM.default.errors);(0,xM.callRef)(t,h,d,d.$async),e.assign(a,(0,Hc._)`${m} === ${EM.default.errors}`)}function c(f){let d=e.scopeValue("schema",l.opts.code.source===!0?{ref:f,code:(0,Hc.stringify)(f)}:{ref:f});t.subschema({schema:f,dataTypes:[],schemaPath:Hc.nil,topSchemaRef:d,errSchemaPath:`/definitions/${r}`},a)}}};function Z_(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&Z_(n))return!0}return!1}qc.hasRef=Z_;qc.default=nde});var tE=D(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});var rde=/t|\s/i,ide=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,lde=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,sde=[0,31,28,31,30,31,30,31,31,30,31,30,31];function wM(t,e){let n=t.split(rde);return n.length===2&&bM(n[0])&&ade(n[1])||e&&n.length===1&&bM(n[0])}eE.default=wM;function bM(t){let e=ide.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3];return r>=1&&r<=12&&i>=1&&(i<=sde[r]||r===2&&i===29&&(n%100===0?n%400===0:n%4===0))}function ade(t){let e=lde.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3],l=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&i<=59||n-l===23&&r-s===59&&i===60}wM.code='require("ajv/dist/runtime/timestamp").default'});var G0=D(X2=>{"use strict";Object.defineProperty(X2,"__esModule",{value:!0});X2.typeErrorParams=X2.typeErrorMessage=X2.typeError=void 0;var ode=ht();function ude(t){return{message:e=>SM(e,t),params:e=>TM(e,t)}}X2.typeError=ude;function SM({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}X2.typeErrorMessage=SM;function TM({parentSchema:t},e){return(0,ode._)`{type: ${e}, nullable: ${!!t?.nullable}}`}X2.typeErrorParams=TM});var nE=D(K0=>{"use strict";Object.defineProperty(K0,"__esModule",{value:!0});K0.intRange=void 0;var Kl=ht(),cde=tE(),fde=Pt(),pde=f2(),AM=G0();K0.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var hde={message:t=>(0,AM.typeErrorMessage)(t,t.schema),params:t=>(0,AM.typeErrorParams)(t,t.schema)};function dde(t){let{gen:e,data:n,it:r}=t,{timestamp:i,allowDate:l}=r.opts;if(i==="date")return(0,Kl._)`${n} instanceof Date `;let s=(0,fde.useFunc)(e,cde.default),a=l?(0,Kl._)`, true`:Kl.nil,o=(0,Kl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return i==="string"?o:(0,Kl.or)((0,Kl._)`${n} instanceof Date`,o)}var mde={keyword:"type",schemaType:"string",error:hde,code(t){(0,pde.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:i}=t,l;switch(n){case"boole Line truncated
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},Sme=97,Tme=48;function Z2(t,e){let n="",r;for(Z2.message=void 0;r=t[e++],r!=='"';)if(r==="\\")if(r=t[e],r in eU)n+=eU[r],e++;else if(r==="u"){e++;let l=4,s=0;for(;l--;){if(s<<=4,r=t[e],r===void 0){i("unexpected end");return}if(r=r.toLowerCase(),r>="a"&&r<="f")s+=r.charCodeAt(0)-Sme+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-Tme;else{i(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{i(`unexpected token ${r}`);return}else if(r===void 0){i("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{i(`unexpected token ${r}`);return}return Z2.position=e,n;function i(l){Z2.position=e,Z2.message=l}}eo.parseJsonString=Z2;Z2.message=void 0;Z2.position=0;Z2.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var pU=D(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});var Ame=hE(),lU=G3(),at=ht(),Cme=z2(),qt=hs(),Ome=Oi(),Nme=w7(),Rme=nE(),EE=tU(),sU=Pt(),Ime=tE(),Dme={elements:Fme,values:Bme,discriminator:Ume,properties:nU,optionalProperties:nU,enum:$me,type:jme,ref:Hme};function aU(t,e){let n=lU.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new at.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:qt.default.data,parseName:a,char:s.name("c")},u;try{this._compilations.add(t),t.parseName=a,kme(o),s.optimize(this.opts.code.optimize);let c=s.toString();u=`${s.scopeRefs(qt.default.scope)}return ${c}`;let d=new Function(`${qt.default.scope}`,u)(this.scope.get());this.scope.value(a,{ref:d}),t.parse=d}catch(c){throw u&&this.logger.error("Error compiling parser, function code:",u),delete t.parse,delete t.parseName,c}finally{this._compilations.delete(t)}return t}TE.default=aU;var _E=(0,at._)`undefined`;function kme(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,at._)`${qt.default.json}, ${qt.default.jsonPos}, ${qt.default.jsonPart}`,!1,()=>{e.let(qt.default.data),e.let(r),e.assign((0,at._)`${n}.message`,_E),e.assign((0,at._)`${n}.position`,_E),e.assign(qt.default.jsonPos,(0,at._)`${qt.default.jsonPos} || 0`),e.const(qt.default.jsonLen,(0,at._)`${qt.default.json}.length`),O7(t),SE(t),e.if(qt.default.jsonPart,()=>{e.assign((0,at._)`${n}.position`,qt.default.jsonPos),e.return(qt.default.data)}),e.if((0,at._)`${qt.default.jsonPos} === ${qt.default.jsonLen}`,()=>e.return(qt.default.data)),Y0(t)})}function O7(t){let e;for(let n of Ame.jtdForms)if(n in t.schema){e=n;break}e?Lme(t,Dme[e]):bE(t)}var Pme=iU(!0,iU(!1,Y0));function Lme(t,e){let{gen:n,schema:r,data:i}=t;if(!r.nullable)return e(t);Gc(t,"null",e,()=>n.assign(i,null))}function Fme(t){let{gen:e,schema:n,data:r}=t;xa(t,"[");let i=e.let("i",0);e.assign(r,(0,at._)`[]`),xE(t,"]",()=>{let l=e.let("el");O7({...t,schema:n.elements,data:l}),e.assign((0,at._)`${r}[${i}++]`,l)})}function Bme(t){let{gen:e,schema:n,data:r}=t;xa(t,"{"),e.assign(r,(0,at._)`{}`),xE(t,"}",()=>Mme(t,n.values))}function xE(t,e,n){oU(t,e,n),xa(t,e)}function oU(t,e,n){let{gen:r}=t;r.for((0,at._)`;${qt.default.jsonPos}<${qt.default.jsonLen} && ${N7(1)}!==${e};`,()=>{n(),Gc(t,",",()=>r.break(),i)});function i(){Gc(t,e,()=>{},Y0)}}function Mme(t,e){let{gen:n}=t,r=n.let("key");iu({...t,data:r}),xa(t,":"),cU(t,r,e)}function Ume(t){let{gen:e,data:n,schema:r}=t,{discriminator:i,mapping:l}=r;xa(t,"{"),e.assign(n,(0,at._)`{}`);let s=e.const("pos",qt.default.jsonPos),a=e.let("value"),o=e.let("tag");oU(t,"}",()=>{let u=e.let("key");iu({...t,data:u}),xa(t,":"),e.if((0,at._)`${u} === ${i}`,()=>{iu({...t,data:o}),e.assign((0,at._)`${n}[${u}]`,o),e.break()},()=>bE({...t,data:a}))}),e.assign(qt.default.jsonPos,s),e.if((0,at._)`${o} === undefined`),y2(t,(0,at.str)`discriminator tag not found`);for(let u in l)e.elseIf((0,at._)`${o} === ${u}`),uU({...t,schema:l[u]},i);e.else(),y2(t,(0,at.str)`discriminator value not in schema`),e.endIf()}function nU(t){let{gen:e,data:n}=t;xa(t,"{"),e.assign(n,(0,at._)`{}`),uU(t)}function uU(t,e){let{gen:n,schema:r,data:i}=t,{properties:l,optionalProperties:s,additionalProperties:a}=r;if(xE(t,"}",()=>{let o=n.let("key");if(iu({...t,data:o}),xa(t,":"),n.if(!1),rU(t,o,l),rU(t,o,s),e){n.elseIf((0,at._)`${o} === ${e}`);let u=n.let("tag");iu({...t,data:u})}n.else(),a?bE({...t,data:(0,at._)`${i}[${o}]`}):y2(t,(0,at.str)`property ${o} not allowed`),n.endIf()}),l){let o=(0,Ome.hasPropFunc)(n),u=(0,at.and)(...Object.keys(l).map(c=>(0,at._)`${o}.call(${i}, ${c})`));n.if((0,at.not)(u),()=>y2(t,(0,at.str)`missing required properties`))}}function rU(t,e,n={}){let{gen:r}=t;for(let i in n)r.elseIf((0,at._)`${e} === ${i}`),cU(t,e,n[i])}function cU(t,e,n){O7({...t,schema:n,data:(0,at._)`${t.data}[${e}]`})}function jme(t){let{gen:e,schema:n,data:r,self:i}=t;switch(n.type){case"boolean":Pme(t);break;case"string":iu(t);break;case"timestamp":{iu(t);let l=(0,sU.useFunc)(e,Ime.default),{allowDate:s,parseDate:a}=i.opts,o=s?(0,at._)`!${l}(${r}, true)`:(0,at._)`!${l}(${r})`,u=a? Line truncated
`).slice(0,2).map(e=>e.trim()).join(" -- ")}function RU(t){return t[Symbol.for("fastify.display-name")]}function IU(t){return!!t[Symbol.for("skip-override")]}function DU(t){let e=Jc(t);if(!e)return;let n=e.dependencies;n&&(FE(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{FE(this[BE].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function kU(t){let e=Jc(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&LE(this,"Fastify",n.fastify,r),n.reply&&LE(this,"Reply",n.reply,r),n.request&&LE(this,"Request",n.request,r))}var _ye={Fastify:pye,Request:dye,Reply:hye};function LE(t,e,n,r){FE(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(i=>{let l=typeof r=="string"?` required by '${r}'`:"";if(!_ye[e].call(t,i))throw new yye(i,l,e)})}function Eye(t){let e=Jc(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&PE.gt(this.version,PE.coerce(n))===!0)&&n&&PE.satisfies(this.version,n,{includePrerelease:r})===!1)throw new mye(e.name,n,this.version)}function xye(t){let e=Jc(t);if(!e)return;let n=e.name;if(n)return this[BE].push(n),n}function bye(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&gye(e||"anonymous")}function wye(t){let e=xye.call(this,t)||NU(t);return bye.call(this,t,e),Eye.call(this,t),kU.call(this,t),DU.call(this,t),IU(t)}ME.exports={getPluginName:NU,getFuncPreview:vye,kRegisteredPlugins:BE,getDisplayName:RU,registerPlugin:wye};ME.exports[fye]={shouldSkipOverride:IU,getMeta:Jc,checkDecorators:kU,checkDependencies:DU}});var I7=D((RBe,PU)=>{"use strict";function Sye(t,e){let n=e||Aye();return t?Cye(t,n):n}function Tye(t,e){return t.genReqId(e)}function Aye(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function Cye(t,e){return function(n){return n.headers[t]||e(n)}}PU.exports={getGenReqId:Tye,reqIdGenFactory:Sye}});var MU=D((IBe,BU)=>{"use strict";var LU=12,Oye=0,jE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function Nye(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",i=0,l=0,s=e,a=LU;e>-1&&e<n;){var o=FU(t[e+1],4),u=FU(t[e+2],0),c=o|u,f=jE[c];if(a=jE[256+a+f],l=l<<6|c&jE[364+f],a===LU)r+=t.slice(i,s),r+=l<=65535?String.fromCharCode(l):String.fromCharCode(55232+(l>>10),56320+(l&1023)),l=0,i=e+3,e=s=t.indexOf("%",i);else{if(a===Oye)return null;if(e+=3,e<n&&t.charCodeAt(e)===37)continue;return null}}return r+t.slice(i)}var Rye={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function FU(t,e){var n=Rye[t];return n===void 0?255:n<<e}BU.exports=Nye});var qU=D((DBe,HU)=>{"use strict";var UU=MU(),jU=/\+/g,$U=function(){};$U.prototype=Object.create(null);function Iye(t){let e=new $U;if(typeof t!="string")return e;let n=t.length,r="",i="",l=-1,s=-1,a=!1,o=!1,u=!1,c=!1,f=!1,d=0;for(let h=0;h<n+1;h++)if(d=h!==n?t.charCodeAt(h):38,d===38){if(f=s>l,f||(s=h),r=t.slice(l+1,s),f||r.length>0){u&&(r=r.replace(jU," ")),a&&(r=UU(r)||r),f&&(i=t.slice(s+1,h),c&&(i=i.replace(jU," ")),o&&(i=UU(i)||i));let m=e[r];m===void 0?e[r]=i:m.pop?m.push(i):e[r]=[m,i]}i="",l=h,s=h,a=!1,o=!1,u=!1,c=!1}else d===61?s<=l?s=h:o=!0:d===43?s>l?c=!0:u=!0:d===37&&(s>l?o=!0:a=!0);return e}HU.exports=Iye});var zU=D((kBe,VU)=>{var ba=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),Dye=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function kye(t){let e=t.length;if(e===0)return"";let n="",r=0,i=0;e:for(;i<e;i++){let l=t.charCodeAt(i);for(;l<128;){if(Dye[l]!==1&&(r<i&&(n+=t.slice(r,i)),r=i+1,n+=ba[l]),++i===e)break e;l=t.charCodeAt(i)}if(r<i&&(n+=t.slice(r,i)),l<2048){r=i+1,n+=ba[192|l>>6]+ba[128|l&63];continue}if(l<55296||l>=57344){r=i+1,n+=ba[224|l>>12]+ba[128|l>>6&63]+ba[128|l&63];continue}if(++i,i>=e)throw new Error("URI malformed");let s=t.charCodeAt(i)&1023;r=i+1,l=65536+((l&1023)<<10|s),n+=ba[240|l>>18]+ba[128|l>>12&63]+ba[128|l>>6&63]+ba[128|l&63]}return r===0?t:r<e?n+t.slice(r):n}VU.exports={encodeString:kye}});var WU=D((PBe,KU)=>{"use Line truncated
`),l}K0.exports=Y_;K0.exports.default=Y_;K0.exports.build=Y_;K0.exports.validLargeArrayMechanisms=fM;K0.exports.restore=function({code:t,validator:e,serializer:n}){return Function.apply(null,["validator","serializer",t]).apply(null,[e,n])}});var xM=D((dBe,Q_)=>{"use strict";var sde=Z_();function EM(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=sde();return function(r,i={}){i.mode="standalone";let l=e(r,i);return function(s){let a=l(s);return t.storeFunction(s,a),new Function(a)}}}Q_.exports=EM;Q_.exports.default=EM});var Z_=D((mBe,Hc)=>{"use strict";var ade=_M();function eE(){return function(e,n){let r=Object.assign({},n,{schema:e});return ode.bind(null,r)}}function ode(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),ade(e,t)}Hc.exports=eE;Hc.exports.default=eE;Hc.exports.SerializerSelector=eE;Hc.exports.StandaloneSerializer=xM()});var p2=D(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.checkMetadata=void 0;var ude=Pt(),cde={keyword:"metadata",schemaType:"object",code(t){bM(t);let{gen:e,schema:n,it:r}=t;if((0,ude.alwaysValidSchema)(r,n))return;let i=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},i),t.ok(i)}};function bM({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}qc.checkMetadata=bM;qc.default=cde});var T7=D(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.hasRef=void 0;var wM=J3(),Vc=ht(),fde=G2(),SM=ds(),TM=Vg(),pde=p2(),hde={keyword:"ref",schemaType:"string",code(t){(0,pde.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:i,it:l}=t,{schemaEnv:{root:s}}=l,a=e.name("valid");i.nullable?(e.var(a,(0,Vc._)`${n} === null`),e.if((0,Vc.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var f;let d=(f=s.schema.definitions)===null||f===void 0?void 0:f[r];if(!d)throw new fde.default(l.opts.uriResolver,"",r,`No definition ${r}`);tE(d)||!l.opts.inlineRefs?u(d):c(d)}function u(f){let d=wM.compileSchema.call(l.self,new wM.SchemaEnv({schema:f,root:s,schemaPath:`/definitions/${r}`})),h=(0,TM.getValidate)(t,d),m=e.const("_errs",SM.default.errors);(0,TM.callRef)(t,h,d,d.$async),e.assign(a,(0,Vc._)`${m} === ${SM.default.errors}`)}function c(f){let d=e.scopeValue("schema",l.opts.code.source===!0?{ref:f,code:(0,Vc.stringify)(f)}:{ref:f});t.subschema({schema:f,dataTypes:[],schemaPath:Vc.nil,topSchemaRef:d,errSchemaPath:`/definitions/${r}`},a)}}};function tE(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&tE(n))return!0}return!1}zc.hasRef=tE;zc.default=hde});var rE=D(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});var dde=/t|\s/i,mde=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,yde=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,gde=[0,31,28,31,30,31,30,31,31,30,31,30,31];function CM(t,e){let n=t.split(dde);return n.length===2&&AM(n[0])&&vde(n[1])||e&&n.length===1&&AM(n[0])}nE.default=CM;function AM(t){let e=mde.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3];return r>=1&&r<=12&&i>=1&&(i<=gde[r]||r===2&&i===29&&(n%100===0?n%400===0:n%4===0))}function vde(t){let e=yde.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3],l=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&i<=59||n-l===23&&r-s===59&&i===60}CM.code='require("ajv/dist/runtime/timestamp").default'});var J0=D(Y2=>{"use strict";Object.defineProperty(Y2,"__esModule",{value:!0});Y2.typeErrorParams=Y2.typeErrorMessage=Y2.typeError=void 0;var _de=ht();function Ede(t){return{message:e=>OM(e,t),params:e=>NM(e,t)}}Y2.typeError=Ede;function OM({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}Y2.typeErrorMessage=OM;function NM({parentSchema:t},e){return(0,_de._)`{type: ${e}, nullable: ${!!t?.nullable}}`}Y2.typeErrorParams=NM});var iE=D(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.intRange=void 0;var Wl=ht(),xde=rE(),bde=Pt(),wde=p2(),IM=J0();W0.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var Sde={message:t=>(0,IM.typeErrorMessage)(t,t.schema),params:t=>(0,IM.typeErrorParams)(t,t.schema)};function Tde(t){let{gen:e,data:n,it:r}=t,{timestamp:i,allowDate:l}=r.opts;if(i==="date")return(0,Wl._)`${n} instanceof Date `;let s=(0,bde.useFunc)(e,xde.default),a=l?(0,Wl._)`, true`:Wl.nil,o=(0,Wl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return i==="string"?o:(0,Wl.or)((0,Wl._)`${n} instanceof Date`,o)}var Ade={keyword:"type",schemaType:"string",error:Sde,code(t){(0,wde.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:i}=t,l;switch(n){case"boole Line truncated
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},Lme=97,Fme=48;function eo(t,e){let n="",r;for(eo.message=void 0;r=t[e++],r!=='"';)if(r==="\\")if(r=t[e],r in iU)n+=iU[r],e++;else if(r==="u"){e++;let l=4,s=0;for(;l--;){if(s<<=4,r=t[e],r===void 0){i("unexpected end");return}if(r=r.toLowerCase(),r>="a"&&r<="f")s+=r.charCodeAt(0)-Lme+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-Fme;else{i(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{i(`unexpected token ${r}`);return}else if(r===void 0){i("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{i(`unexpected token ${r}`);return}return eo.position=e,n;function i(l){eo.position=e,eo.message=l}}to.parseJsonString=eo;eo.message=void 0;eo.position=0;eo.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var yU=D(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});var Bme=mE(),uU=J3(),at=ht(),Mme=G2(),qt=ds(),Ume=Ii(),jme=T7(),$me=iE(),bE=lU(),cU=Pt(),Hme=rE(),qme={elements:Kme,values:Jme,discriminator:Xme,properties:sU,optionalProperties:sU,enum:Qme,type:Yme,ref:Zme};function fU(t,e){let n=uU.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new at.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:qt.default.data,parseName:a,char:s.name("c")},u;try{this._compilations.add(t),t.parseName=a,Vme(o),s.optimize(this.opts.code.optimize);let c=s.toString();u=`${s.scopeRefs(qt.default.scope)}return ${c}`;let d=new Function(`${qt.default.scope}`,u)(this.scope.get());this.scope.value(a,{ref:d}),t.parse=d}catch(c){throw u&&this.logger.error("Error compiling parser, function code:",u),delete t.parse,delete t.parseName,c}finally{this._compilations.delete(t)}return t}CE.default=fU;var xE=(0,at._)`undefined`;function Vme(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,at._)`${qt.default.json}, ${qt.default.jsonPos}, ${qt.default.jsonPart}`,!1,()=>{e.let(qt.default.data),e.let(r),e.assign((0,at._)`${n}.message`,xE),e.assign((0,at._)`${n}.position`,xE),e.assign(qt.default.jsonPos,(0,at._)`${qt.default.jsonPos} || 0`),e.const(qt.default.jsonLen,(0,at._)`${qt.default.json}.length`),I7(t),AE(t),e.if(qt.default.jsonPart,()=>{e.assign((0,at._)`${n}.position`,qt.default.jsonPos),e.return(qt.default.data)}),e.if((0,at._)`${qt.default.jsonPos} === ${qt.default.jsonLen}`,()=>e.return(qt.default.data)),Z0(t)})}function I7(t){let e;for(let n of Bme.jtdForms)if(n in t.schema){e=n;break}e?Gme(t,qme[e]):SE(t)}var zme=oU(!0,oU(!1,Z0));function Gme(t,e){let{gen:n,schema:r,data:i}=t;if(!r.nullable)return e(t);Jc(t,"null",e,()=>n.assign(i,null))}function Kme(t){let{gen:e,schema:n,data:r}=t;ba(t,"[");let i=e.let("i",0);e.assign(r,(0,at._)`[]`),wE(t,"]",()=>{let l=e.let("el");I7({...t,schema:n.elements,data:l}),e.assign((0,at._)`${r}[${i}++]`,l)})}function Jme(t){let{gen:e,schema:n,data:r}=t;ba(t,"{"),e.assign(r,(0,at._)`{}`),wE(t,"}",()=>Wme(t,n.values))}function wE(t,e,n){pU(t,e,n),ba(t,e)}function pU(t,e,n){let{gen:r}=t;r.for((0,at._)`;${qt.default.jsonPos}<${qt.default.jsonLen} && ${R7(1)}!==${e};`,()=>{n(),Jc(t,",",()=>r.break(),i)});function i(){Jc(t,e,()=>{},Z0)}}function Wme(t,e){let{gen:n}=t,r=n.let("key");su({...t,data:r}),ba(t,":"),dU(t,r,e)}function Xme(t){let{gen:e,data:n,schema:r}=t,{discriminator:i,mapping:l}=r;ba(t,"{"),e.assign(n,(0,at._)`{}`);let s=e.const("pos",qt.default.jsonPos),a=e.let("value"),o=e.let("tag");pU(t,"}",()=>{let u=e.let("key");su({...t,data:u}),ba(t,":"),e.if((0,at._)`${u} === ${i}`,()=>{su({...t,data:o}),e.assign((0,at._)`${n}[${u}]`,o),e.break()},()=>SE({...t,data:a}))}),e.assign(qt.default.jsonPos,s),e.if((0,at._)`${o} === undefined`),g2(t,(0,at.str)`discriminator tag not found`);for(let u in l)e.elseIf((0,at._)`${o} === ${u}`),hU({...t,schema:l[u]},i);e.else(),g2(t,(0,at.str)`discriminator value not in schema`),e.endIf()}function sU(t){let{gen:e,data:n}=t;ba(t,"{"),e.assign(n,(0,at._)`{}`),hU(t)}function hU(t,e){let{gen:n,schema:r,data:i}=t,{properties:l,optionalProperties:s,additionalProperties:a}=r;if(wE(t,"}",()=>{let o=n.let("key");if(su({...t,data:o}),ba(t,":"),n.if(!1),aU(t,o,l),aU(t,o,s),e){n.elseIf((0,at._)`${o} === ${e}`);let u=n.let("tag");su({...t,data:u})}n.else(),a?SE({...t,data:(0,at._)`${i}[${o}]`}):g2(t,(0,at.str)`property ${o} not allowed`),n.endIf()}),l){let o=(0,Ume.hasPropFunc)(n),u=(0,at.and)(...Object.keys(l).map(c=>(0,at._)`${o}.call(${i}, ${c})`));n.if((0,at.not)(u),()=>g2(t,(0,at.str)`missing required properties`))}}function aU(t,e,n={}){let{gen:r}=t;for(let i in n)r.elseIf((0,at._)`${e} === ${i}`),dU(t,e,n[i])}function dU(t,e,n){I7({...t,schema:n,data:(0,at._)`${t.data}[${e}]`})}function Yme(t){let{gen:e,schema:n,data:r,self:i}=t;switch(n.type){case"boolean":zme(t);break;case"string":su(t);break;case"timestamp":{su(t);let l=(0,cU.useFunc)(e,Hme.default),{allowDate:s,parseDate:a}=i.opts,o=s?(0,at._)`!${l}(${r}, true)`:(0,at._)`!${l}(${r})`,u=a? Line truncated
`).slice(0,2).map(e=>e.trim()).join(" -- ")}function PU(t){return t[Symbol.for("fastify.display-name")]}function LU(t){return!!t[Symbol.for("skip-override")]}function FU(t){let e=Yc(t);if(!e)return;let n=e.dependencies;n&&(ME(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{ME(this[UE].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function BU(t){let e=Yc(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&BE(this,"Fastify",n.fastify,r),n.reply&&BE(this,"Reply",n.reply,r),n.request&&BE(this,"Request",n.request,r))}var Iye={Fastify:wye,Request:Tye,Reply:Sye};function BE(t,e,n,r){ME(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(i=>{let l=typeof r=="string"?` required by '${r}'`:"";if(!Iye[e].call(t,i))throw new Cye(i,l,e)})}function Rye(t){let e=Yc(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&FE.gt(this.version,FE.coerce(n))===!0)&&n&&FE.satisfies(this.version,n,{includePrerelease:r})===!1)throw new Aye(e.name,n,this.version)}function Dye(t){let e=Yc(t);if(!e)return;let n=e.name;if(n)return this[UE].push(n),n}function kye(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&Oye(e||"anonymous")}function Pye(t){let e=Dye.call(this,t)||kU(t);return kye.call(this,t,e),Rye.call(this,t),BU.call(this,t),FU.call(this,t),LU(t)}jE.exports={getPluginName:kU,getFuncPreview:Nye,kRegisteredPlugins:UE,getDisplayName:PU,registerPlugin:Pye};jE.exports[bye]={shouldSkipOverride:LU,getMeta:Yc,checkDecorators:BU,checkDependencies:FU}});var k7=D((qBe,MU)=>{"use strict";function Lye(t,e){let n=e||Bye();return t?Mye(t,n):n}function Fye(t,e){return t.genReqId(e)}function Bye(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function Mye(t,e){return function(n){return n.headers[t]||e(n)}}MU.exports={getGenReqId:Fye,reqIdGenFactory:Lye}});var HU=D((VBe,$U)=>{"use strict";var UU=12,Uye=0,HE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function jye(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",i=0,l=0,s=e,a=UU;e>-1&&e<n;){var o=jU(t[e+1],4),u=jU(t[e+2],0),c=o|u,f=HE[c];if(a=HE[256+a+f],l=l<<6|c&HE[364+f],a===UU)r+=t.slice(i,s),r+=l<=65535?String.fromCharCode(l):String.fromCharCode(55232+(l>>10),56320+(l&1023)),l=0,i=e+3,e=s=t.indexOf("%",i);else{if(a===Uye)return null;if(e+=3,e<n&&t.charCodeAt(e)===37)continue;return null}}return r+t.slice(i)}var $ye={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function jU(t,e){var n=$ye[t];return n===void 0?255:n<<e}$U.exports=jye});var KU=D((zBe,GU)=>{"use strict";var qU=HU(),VU=/\+/g,zU=function(){};zU.prototype=Object.create(null);function Hye(t){let e=new zU;if(typeof t!="string")return e;let n=t.length,r="",i="",l=-1,s=-1,a=!1,o=!1,u=!1,c=!1,f=!1,d=0;for(let h=0;h<n+1;h++)if(d=h!==n?t.charCodeAt(h):38,d===38){if(f=s>l,f||(s=h),r=t.slice(l+1,s),f||r.length>0){u&&(r=r.replace(VU," ")),a&&(r=qU(r)||r),f&&(i=t.slice(s+1,h),c&&(i=i.replace(VU," ")),o&&(i=qU(i)||i));let m=e[r];m===void 0?e[r]=i:m.pop?m.push(i):e[r]=[m,i]}i="",l=h,s=h,a=!1,o=!1,u=!1,c=!1}else d===61?s<=l?s=h:o=!0:d===43?s>l?c=!0:u=!0:d===37&&(s>l?o=!0:a=!0);return e}GU.exports=Hye});var WU=D((GBe,JU)=>{var wa=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),qye=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function Vye(t){let e=t.length;if(e===0)return"";let n="",r=0,i=0;e:for(;i<e;i++){let l=t.charCodeAt(i);for(;l<128;){if(qye[l]!==1&&(r<i&&(n+=t.slice(r,i)),r=i+1,n+=wa[l]),++i===e)break e;l=t.charCodeAt(i)}if(r<i&&(n+=t.slice(r,i)),l<2048){r=i+1,n+=wa[192|l>>6]+wa[128|l&63];continue}if(l<55296||l>=57344){r=i+1,n+=wa[224|l>>12]+wa[128|l>>6&63]+wa[128|l&63];continue}if(++i,i>=e)throw new Error("URI malformed");let s=t.charCodeAt(i)&1023;r=i+1,l=65536+((l&1023)<<10|s),n+=wa[240|l>>18]+wa[128|l>>12&63]+wa[128|l>>6&63]+wa[128|l&63]}return r===0?t:r<e?n+t.slice(r):n}JU.exports={encodeString:Vye}});var QU=D((KBe,YU)=>{"use Line truncated
`).join(`
`+e+u);n+=e+o+l+f+`
`,n+=hj(s,e+u)}return n}function jye(t){let e=t.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function dj(t){return Array.isArray(t)?t.map(e=>dj(e)):typeof t=="symbol"?t.toString():typeof t=="function"?jye(t):t}function $ye(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},i=e.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(n));for(let l of i){if(!Object.prototype.hasOwnProperty.call(n,l))continue;let s=l.toString(),a=n[l];if(a!=null){let o=JSON.stringify(dj(a));r[s]=o}}return r}function Hye(t){let e="";for(let[n,r]of Object.entries(t))e+=`
\u2022 (${n}) ${r}`;return e}function qye(t){let e={...t.opts.constraints},n=e[fj.name];return delete e[fj.name],{...t,method:n,opts:{constraints:e}}}function Vye(t){let e=` (${t.method})`,n=t.opts.constraints||{};return Object.keys(n).length!==0&&(e+=" "+JSON.stringify(n)),e+=Hye(t.metaData),e}function zye(t){return t.reduce((e,n)=>{for(let r of e)if(cj(n.opts.constraints,r.opts.constraints)&&cj(n.metaData,r.metaData))return r.method+=", "+n.method,e;return e.push(n),e},[])}function Gye(t,e,n){let r=t.routes;return n.method===void 0&&(r=r.map(qye)),r=r.map(i=>(i.metaData=$ye(i,n),i)),n.method===void 0&&(r=zye(r)),r.map(Vye).join(`
${e}`)}function L7(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[pj]=Gye(t,n,r)),n=""),t.staticChildren)for(let i of Object.values(t.staticChildren))L7(i,e,n+i.prefix,r);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let l=Array.from(i.nodePaths).join("|");L7(i,e,n+l,r)}t.wildcardChild&&L7(t.wildcardChild,e,"*",r)}function Kye(t,e){let n={};return L7(t,n,t.prefix,e),hj(n)}mj.exports={prettyPrintTree:Kye}});var vj=D((VBe,gj)=>{"use strict";var Wye=P7(),zE=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let r=n.params,i=n.opts.constraints||{},l={params:r,constraints:i,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(i);s.length===0&&(this.unconstrainedHandler=l);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(Wye.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(l),this.handlers.sort((o,u)=>Object.keys(o.constraints).length-Object.keys(u.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,i)}_compileCreateParamsObject(e){let n=[];for(let r=0;r<e.length;r++)n.push(`'${e[r]}': paramsArray[${r}]`);return new Function("paramsArray",`return {${n.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,n){for(let r=0;r<this.handlers.length;r++){let l=this.handlers[r].constraints[n];if(l!==void 0){let s=e.get(l)||0;s|=1<<r,e.set(l,s)}}}_constrainedIndexBitmask(e){let n=0;for(let r=0;r<this.handlers.length;r++)this.handlers[r].constraints[e]!==void 0&&(n|=1<<r);return~n}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let r of this.constraints){let i=e.newStoreForConstraint(r);this.constrainedHandlerStores[r]=i,this._buildConstraintStore(i,r)}let n=[];n.push(`
`,n+=gj(s,e+u)}return n}function Yye(t){let e=t.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function vj(t){return Array.isArray(t)?t.map(e=>vj(e)):typeof t=="symbol"?t.toString():typeof t=="function"?Yye(t):t}function Qye(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},i=e.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(n));for(let l of i){if(!Object.prototype.hasOwnProperty.call(n,l))continue;let s=l.toString(),a=n[l];if(a!=null){let o=JSON.stringify(vj(a));r[s]=o}}return r}function Zye(t){let e="";for(let[n,r]of Object.entries(t))e+=`
\u2022 (${n}) ${r}`;return e}function ege(t){let e={...t.opts.constraints},n=e[mj.name];return delete e[mj.name],{...t,method:n,opts:{constraints:e}}}function tge(t){let e=` (${t.method})`,n=t.opts.constraints||{};return Object.keys(n).length!==0&&(e+=" "+JSON.stringify(n)),e+=Zye(t.metaData),e}function nge(t){return t.reduce((e,n)=>{for(let r of e)if(dj(n.opts.constraints,r.opts.constraints)&&dj(n.metaData,r.metaData))return r.method+=", "+n.method,e;return e.push(n),e},[])}function rge(t,e,n){let r=t.routes;return n.method===void 0&&(r=r.map(ege)),r=r.map(i=>(i.metaData=Qye(i,n),i)),n.method===void 0&&(r=nge(r)),r.map(tge).join(`
${e}`)}function B7(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[yj]=rge(t,n,r)),n=""),t.staticChildren)for(let i of Object.values(t.staticChildren))B7(i,e,n+i.prefix,r);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let l=Array.from(i.nodePaths).join("|");B7(i,e,n+l,r)}t.wildcardChild&&B7(t.wildcardChild,e,"*",r)}function ige(t,e){let n={};return B7(t,n,t.prefix,e),gj(n)}_j.exports={prettyPrintTree:ige}});var bj=D((rMe,xj)=>{"use strict";var lge=F7(),KE=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let r=n.params,i=n.opts.constraints||{},l={params:r,constraints:i,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(i);s.length===0&&(this.unconstrainedHandler=l);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(lge.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(l),this.handlers.sort((o,u)=>Object.keys(o.constraints).length-Object.keys(u.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,i)}_compileCreateParamsObject(e){let n=[];for(let r=0;r<e.length;r++)n.push(`'${e[r]}': paramsArray[${r}]`);return new Function("paramsArray",`return {${n.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,n){for(let r=0;r<this.handlers.length;r++){let l=this.handlers[r].constraints[n];if(l!==void 0){let s=e.get(l)||0;s|=1<<r,e.set(l,s)}}}_constrainedIndexBitmask(e){let n=0;for(let r=0;r<this.handlers.length;r++)this.handlers[r].constraints[e]!==void 0&&(n|=1<<r);return~n}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let r of this.constraints){let i=e.newStoreForConstraint(r);this.constrainedHandlerStores[r]=i,this._buildConstraintStore(i,r)}let n=[];n.push(`
let candidates = ${(1<<this.handlers.length)-1}
let mask, matches
`);for(let r of this.constraints){n.push(`
@@ -323,114 +323,104 @@ ${e}`)}function L7(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empt
}
if (candidates === 0) return null;
`)}for(let r in e.strategies)e.strategies[r].mustMatchWhenDerived&&!this.constraints.includes(r)&&n.push(`if (derivedConstraints.${r} !== undefined) return null`);n.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",n.join(`
`))}};gj.exports=zE});var Ej=D((zBe,_j)=>{"use strict";var Jye=vj(),$7={STATIC:0,PARAMETRIC:1,WILDCARD:2},F7=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new Jye),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},B7=class extends F7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let r=this.staticChildren[e.charAt(n)];return r===void 0||!r.matchPrefix(e,n)?null:r}getStaticChild(e,n=0){if(e.length===n)return this;let r=this.findStaticMatchingChild(e,n);return r?r.getStaticChild(e,n+r.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let i=1;for(;i<n.prefix.length;i++)if(e.charCodeAt(i)!==n.prefix.charCodeAt(i)){n=n.split(this,i);break}return n.createStaticChild(e.slice(i))}let r=e.charAt(0);return this.staticChildren[r]=new M7(e),this.staticChildren[r]}},M7=class t extends B7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=$7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,r=this.parametricChildren.find(i=>(i.regex&&i.regex.source)===n);return r||null}createParametricChild(e,n,r){let i=this.getParametricChild(e);return i?(i.nodePaths.add(r),i):(i=new U7(e,n,r),this.parametricChildren.push(i),this.parametricChildren.sort((l,s)=>l.isRegex?s.isRegex?l.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(l.staticSuffix)?1:l.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new j7,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),i=this.prefix.slice(n);this.prefix=i,this._compilePrefixMatch();let l=new t(r);return l.staticChildren[i.charAt(0)]=this,e.staticChildren[r.charAt(0)]=l,l}getNextNode(e,n,r,i){let l=this.findStaticMatchingChild(e,n),s=0;if(l===null){if(this.parametricChildren.length===0)return this.wildcardChild;l=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return l}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n<this.prefix.length;n++){let r=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i + ${n}) === ${r}`)}this.matchPrefix=new Function("path","i",`return ${e.join(" && ")}`)}},U7=class extends B7{constructor(e,n,r){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=$7.PARAMETRIC,this.nodePaths=new Set([r])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},j7=class extends F7{constructor(){super(),this.kind=$7.WILDCARD}getNextNode(){return null}};_j.exports={StaticNode:M7,ParametricNode:U7,WildcardNode:j7,NODE_TYPES:$7}});var bj=D((GBe,xj)=>{"use strict";var Xye=require("assert");function e5(){if(!(this instanceof e5))return new e5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}e5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,i]=t.split(".");return n=Number(n)||0,r=Number(r)||0,i=Number(i)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),r>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=r,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),i>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=i,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${i}`]=e,this};e5.prototype.get=function(t){return this.store[t]};xj.exports={name:"version",mustMatchWhenDerived:!0,storage:e5,validate(t){Xye(typeof t=="string","Version should be a string")}}});var Sj=D((KBe,wj)=>{"use strict";var Yye=require("assert");function Qye(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let i of e)if(i.host.test(n))return i.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}wj.exports={name:"host",mustMatchWhenDerived:!1,storage:Qye,validate(t){Yye(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var Aj=D((WBe,Tj)=>{"use strict";var Zye=bj(),ege=Sj(),GE=require("assert"),KE=class{constructor(e){if(this.strategies={version:Zye,host:ege},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(GE(typeof e.name=="string"&&e.name!=="","strategy.name is required."),GE(e.storage&&typeof e.storage=="function Line truncated
`)).bind(this)}};Tj.exports=KE});var Oj=D((JBe,Cj)=>{"use strict";var tge=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];Cj.exports=tge});var Ij=D((XBe,Rj)=>{"use strict";function Nj(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function nge(t,e){let n=!1,r=!1,i="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let o=t.charCodeAt(s+1),u=t.charCodeAt(s+2);Nj(o,u)===null?n=!0:(r=!0,o===50&&u===53&&(n=!0,t=t.slice(0,s+1)+"25"+t.slice(s+1),s+=2),s+=2)}else if(a===63||a===35||a===59&&e){i=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:i,shouldDecodeParam:r}}function rge(t){let e=t.indexOf("%");if(e===-1)return t;let n="",r=e;for(let i=e;i<t.length;i++)if(t.charCodeAt(i)===37){let l=t.charCodeAt(i+1),s=t.charCodeAt(i+2),a=Nj(l,s);n+=t.slice(r,i)+a,r=i+3}return t.slice(0,e)+n+t.slice(r)}Rj.exports={safeDecodeURI:nge,safeDecodeURIComponent:rge}});var ZE=D((YBe,Mj)=>{"use strict";var $r=require("assert"),ige=QU(),H7=oj(),XE=T0(),{prettyPrintTree:lge}=yj(),{StaticNode:Dj,NODE_TYPES:WE}=Ej(),sge=Aj(),r1=Oj(),JE=P7(),{safeDecodeURI:age,safeDecodeURIComponent:kj}=Ij(),Pj=/^https?:\/\/.*?\//,su=/(\/:[^/()]*?)\?(\/?)/;if(!H7(Pj))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!H7(su))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Tr(t){if(!(this instanceof Tr))return new Tr(t);t=t||{},this._opts=t,t.defaultRoute?($r(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?($r(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?($r(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=oge,t.querystringParser?($r(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:ige.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new sge(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Tr.prototype.on=function(e,n,r,i,l){typeof r=="function"&&(i!==void 0&&(l=i),i=r,r={}),$r(typeof n=="string","Path should be a string"),$r(n.length>0,"The path could not be empty"),$r(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),$r(typeof i=="function","Handler should be a function");let s=n.match(su);if(s){$r(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let u=n.replace(su,"$1$2"),c=n.replace(su,"$2");this.on(e,u,r,i,l),this.on(e,c,r,i,l);return}let a=n;this.ignoreDuplicateSlashes&&(n=YE(n)),this.ignoreTrailingSlash&&(n=QE(n));let o=Array.isArray(e)?e:[e];for(let u of o)$r(typeof u=="string","Method should be a string"),$r(r1.includes(u),`Method '${u}' is not an http method.`),this._on(u,n,r,i,l,a)};Tr.prototype._on=function(e,n,r,i,l){let s={};r.constraints!==void 0&&($r(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(s=r.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new Dj("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let d=this.trees[e];this.trees[e]=new Dj(""),this.trees[e].staticChildren["/"]=d}let o=this.trees[e],u=o.prefix.length,c=[];for(let d=0;d<=a.length;d++){if(a.charCodeAt(d)===58&&a.charCodeAt(d+1)===58){d++;continue}let h=a.charCodeAt(d)===58&&a.charCodeAt(d+1)!==58,m=a.charCodeAt(d)===42;if(h||m||d===a.length&&d!==u){let x=a.slice(u,d);this.caseSensitive||(x=x.toLowerCase()),x=x.split("::").join(":"),x=x.split("%").join("%25"),o=o.createStaticChild(x)}if(h){let x=!1,b=[],_=d+1;for(let E=_;;E++){let v=a.charCodeAt(E),g=v===40,S=v===45||v===46,A=v===47||E===a.length;if(g||S||A){let C=a.slice(_,E);if(c.push(C),x=x||g||S,g){let P=Bj(a,E),G=a.slice(E,P+1);this.allowUnsafeRegex||$r(H7(new RegExp(G)),`The regex '${G}' is not safe!`),b.push(Fj(G)),E=P+1}else b.push("(.*?)");let N=E;for(;E<a.length;E++){let P=a.charCodeAt(E);if(P===47)break;if(P===58)if(a.charCodeAt(E+1)===58)E++;else break}let k=a.slice(N,E);if(k&&(k= Line truncated
`))}};xj.exports=KE});var Sj=D((iMe,wj)=>{"use strict";var sge=bj(),q7={STATIC:0,PARAMETRIC:1,WILDCARD:2},M7=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new sge),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},U7=class extends M7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let r=this.staticChildren[e.charAt(n)];return r===void 0||!r.matchPrefix(e,n)?null:r}getStaticChild(e,n=0){if(e.length===n)return this;let r=this.findStaticMatchingChild(e,n);return r?r.getStaticChild(e,n+r.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let i=1;for(;i<n.prefix.length;i++)if(e.charCodeAt(i)!==n.prefix.charCodeAt(i)){n=n.split(this,i);break}return n.createStaticChild(e.slice(i))}let r=e.charAt(0);return this.staticChildren[r]=new j7(e),this.staticChildren[r]}},j7=class t extends U7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=q7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,r=this.parametricChildren.find(i=>(i.regex&&i.regex.source)===n);return r||null}createParametricChild(e,n,r){let i=this.getParametricChild(e);return i?(i.nodePaths.add(r),i):(i=new $7(e,n,r),this.parametricChildren.push(i),this.parametricChildren.sort((l,s)=>l.isRegex?s.isRegex?l.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(l.staticSuffix)?1:l.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new H7,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),i=this.prefix.slice(n);this.prefix=i,this._compilePrefixMatch();let l=new t(r);return l.staticChildren[i.charAt(0)]=this,e.staticChildren[r.charAt(0)]=l,l}getNextNode(e,n,r,i){let l=this.findStaticMatchingChild(e,n),s=0;if(l===null){if(this.parametricChildren.length===0)return this.wildcardChild;l=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return l}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n<this.prefix.length;n++){let r=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i + ${n}) === ${r}`)}this.matchPrefix=new Function("path","i",`return ${e.join(" && ")}`)}},$7=class extends U7{constructor(e,n,r){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=q7.PARAMETRIC,this.nodePaths=new Set([r])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},H7=class extends M7{constructor(){super(),this.kind=q7.WILDCARD}getNextNode(){return null}};wj.exports={StaticNode:j7,ParametricNode:$7,WildcardNode:H7,NODE_TYPES:q7}});var Aj=D((lMe,Tj)=>{"use strict";var age=require("assert");function n5(){if(!(this instanceof n5))return new n5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}n5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,i]=t.split(".");return n=Number(n)||0,r=Number(r)||0,i=Number(i)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),r>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=r,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),i>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=i,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${i}`]=e,this};n5.prototype.get=function(t){return this.store[t]};Tj.exports={name:"version",mustMatchWhenDerived:!0,storage:n5,validate(t){age(typeof t=="string","Version should be a string")}}});var Oj=D((sMe,Cj)=>{"use strict";var oge=require("assert");function uge(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let i of e)if(i.host.test(n))return i.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}Cj.exports={name:"host",mustMatchWhenDerived:!1,storage:uge,validate(t){oge(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var Ij=D((aMe,Nj)=>{"use strict";var cge=Aj(),fge=Oj(),JE=require("assert"),WE=class{constructor(e){if(this.strategies={version:cge,host:fge},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(JE(typeof e.name=="string"&&e.name!=="","strategy.name is required."),JE(e.storage&&typeof e.storage=="function Line truncated
`)).bind(this)}};Nj.exports=WE});var Dj=D((oMe,Rj)=>{"use strict";var pge=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];Rj.exports=pge});var Lj=D((uMe,Pj)=>{"use strict";function kj(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function hge(t,e){let n=!1,r=!1,i="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let o=t.charCodeAt(s+1),u=t.charCodeAt(s+2);kj(o,u)===null?n=!0:(r=!0,o===50&&u===53&&(n=!0,t=t.slice(0,s+1)+"25"+t.slice(s+1),s+=2),s+=2)}else if(a===63||a===35||a===59&&e){i=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:i,shouldDecodeParam:r}}function dge(t){let e=t.indexOf("%");if(e===-1)return t;let n="",r=e;for(let i=e;i<t.length;i++)if(t.charCodeAt(i)===37){let l=t.charCodeAt(i+1),s=t.charCodeAt(i+2),a=kj(l,s);n+=t.slice(r,i)+a,r=i+3}return t.slice(0,e)+n+t.slice(r)}Pj.exports={safeDecodeURI:hge,safeDecodeURIComponent:dge}});var tx=D((cMe,Hj)=>{"use strict";var Hr=require("assert"),mge=nj(),V7=pj(),QE=C0(),{prettyPrintTree:yge}=Ej(),{StaticNode:Fj,NODE_TYPES:XE}=Sj(),gge=Ij(),l1=Dj(),YE=F7(),{safeDecodeURI:vge,safeDecodeURIComponent:Bj}=Lj(),Mj=/^https?:\/\/.*?\//,ou=/(\/:[^/()]*?)\?(\/?)/;if(!V7(Mj))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!V7(ou))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Ar(t){if(!(this instanceof Ar))return new Ar(t);t=t||{},this._opts=t,t.defaultRoute?(Hr(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(Hr(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(Hr(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=_ge,t.querystringParser?(Hr(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:mge.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new gge(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Ar.prototype.on=function(e,n,r,i,l){typeof r=="function"&&(i!==void 0&&(l=i),i=r,r={}),Hr(typeof n=="string","Path should be a string"),Hr(n.length>0,"The path could not be empty"),Hr(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),Hr(typeof i=="function","Handler should be a function");let s=n.match(ou);if(s){Hr(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let u=n.replace(ou,"$1$2"),c=n.replace(ou,"$2");this.on(e,u,r,i,l),this.on(e,c,r,i,l);return}let a=n;this.ignoreDuplicateSlashes&&(n=ZE(n)),this.ignoreTrailingSlash&&(n=ex(n));let o=Array.isArray(e)?e:[e];for(let u of o)Hr(typeof u=="string","Method should be a string"),Hr(l1.includes(u),`Method '${u}' is not an http method.`),this._on(u,n,r,i,l,a)};Ar.prototype._on=function(e,n,r,i,l){let s={};r.constraints!==void 0&&(Hr(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(s=r.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new Fj("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let d=this.trees[e];this.trees[e]=new Fj(""),this.trees[e].staticChildren["/"]=d}let o=this.trees[e],u=o.prefix.length,c=[];for(let d=0;d<=a.length;d++){if(a.charCodeAt(d)===58&&a.charCodeAt(d+1)===58){d++;continue}let h=a.charCodeAt(d)===58&&a.charCodeAt(d+1)!==58,m=a.charCodeAt(d)===42;if(h||m||d===a.length&&d!==u){let x=a.slice(u,d);this.caseSensitive||(x=x.toLowerCase()),x=x.split("::").join(":"),x=x.split("%").join("%25"),o=o.createStaticChild(x)}if(h){let x=!1,b=[],_=d+1;for(let E=_;;E++){let v=a.charCodeAt(E),g=v===40,S=v===45||v===46,A=v===47||E===a.length;if(g||S||A){let C=a.slice(_,E);if(c.push(C),x=x||g||S,g){let P=$j(a,E),G=a.slice(E,P+1);this.allowUnsafeRegex||Hr(V7(new RegExp(G)),`The regex '${G}' is not safe!`),b.push(jj(G)),E=P+1}else b.push("(.*?)");let N=E;for(;E<a.length;E++){let P=a.charCodeAt(E);if(P===47)break;if(P===58)if(a.charCodeAt(E+1)===58)E++;else break}let k=a.slice(N,E);if(k&&(k= Line truncated
Content-Length: ${we.length}\r
Content-Type: application/json\r
\r
${we}`),ge.destroy(le)}function re(le,ge){le.headers["accept-version"]!==void 0&&(le.headers[Wve]=le.headers["accept-version"],le.headers["accept-version"]=void 0),h.router.lookup(le,ge)}function R(le,ge,we){if(a){let pt=X$(P.server,ge),Be=W$(P,o,ge,pt),St=new Z7(pt,null,ge,null,Be,P),Yt=new f5(we,St,Be);return l===!1&&Be.info({req:St},"incoming request"),a(new d_e(le),St,Yt)}let qe=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${le}' is not a valid url component","statusCode":400}`;we.writeHead(400,{"Content-Type":"application/json","Content-Length":qe.length}),we.end(qe)}function M(le,ge,we){if(le!==!1)return function(pt){if(pt){if(a){let St=X$(P.server,ge),Yt=W$(P,o,ge,St),mt=new Z7(St,null,ge,null,Yt,P),Rt=new f5(we,mt,Yt);return l===!1&&Yt.info({req:mt},"incoming request"),a(new h_e,mt,Rt)}let Be='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';we.writeHead(500,{"Content-Type":"application/json","Content-Length":Be.length}),we.end(Be)}}}function F(le,ge){return G('Cannot call "setNotFoundHandler"!'),h.setNotFoundHandler.call(this,le,ge,k,d.routeHandler),this}function L(le){return G('Cannot call "setValidatorCompiler"!'),this[ro].setValidatorCompiler(le),this}function Ge(le){return G('Cannot call "setSchemaErrorFormatter"!'),tH(le),this[wx]=le.bind(this),this}function Fe(le){return G('Cannot call "setSerializerCompiler"!'),this[ro].setSerializerCompiler(le),this}function Ie(le){G('Cannot call "setSchemaController"!');let ge=this[ro],we=G$.buildSchemaController(ge,Object.assign({},ge.opts,le));return this[ro]=we,this.getSchema=we.getSchema.bind(we),this.getSchemas=we.getSchemas.bind(we),this}function Te(le){return G('Cannot call "setReplySerializer"!'),this[z$]=le,this}function ke(le){return G('Cannot call "setErrorHandler"!'),this[Q7]=eH(this[Q7],le.bind(this)),this}function Ae(le){return G('Cannot call "setChildLoggerFactory"!'),this[Tx]=le,this}function gt(le={}){return le.includeMeta=le.includeHooks?le.includeMeta?Cx.concat(le.includeMeta):Cx:le.includeMeta,d.printRoutes(le)}function st(le,{rewriteUrl:ge,logger:we}){let qe;return function(Be,St){if(qe===void 0&&(qe=le.isAsyncConstraint()),ge){Be.originalUrl=Be.url;let Yt=ge.call(C,Be);if(typeof Yt=="string")Be.url=Yt;else{let mt=new S_e(Be.url,typeof Yt);Be.destroy(mt)}}le.routing(Be,St,M(qe,Be,St))}}function rt(le){return G('Cannot call "setGenReqId"!'),this[Ax]=Y$(this[bx].requestIdHeader,le),this}}ef.errorCodes=ou;function tH(t){if(typeof t!="function")throw new Z$(typeof t);if(t.constructor.name==="AsyncFunction")throw new Z$("AsyncFunction")}tf.exports=ef;tf.exports.fastify=ef;tf.exports.default=ef});var NG=D((QUe,OG)=>{"use strict";OG.exports=Error});var IG=D((ZUe,RG)=>{"use strict";RG.exports=EvalError});var kG=D((eje,DG)=>{"use strict";DG.exports=RangeError});var LG=D((tje,PG)=>{"use strict";PG.exports=ReferenceError});var yw=D((nje,FG)=>{"use strict";FG.exports=SyntaxError});var j1=D((rje,BG)=>{"use strict";BG.exports=TypeError});var UG=D((ije,MG)=>{"use strict";MG.exports=URIError});var $G=D((lje,jG)=>{"use strict";jG.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var VG=D((sje,qG)=>{"use strict";var HG=typeof Symbol<"u"&&Symbol,TSe=$G();qG.exports=function(){return typeof HG!="function"||typeof Symbol!="function"||typeof HG("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:TSe()}});var GG=D((aje,zG)=>{"use strict";var gw={__proto__:null,foo:{}},ASe=Object;zG.exports=function(){return{__proto__:gw}.foo===gw.foo&&!(gw instanceof ASe)}});var JG=D((oje,WG)=>{"use strict";var CSe="Function.prototype.bind called on incompatible ",OSe=Object.prototype.toString,NSe=Math.max,RSe="[object Function]",KG=function(e,n){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var l=0;l<n.length;l+=1)r[l+e.length]=n[l];return r},ISe=function(e,n){for(var r=[],i=n||0,l=0;i<e.length;i+=1,l+=1)r[l]=e[i];return r},DSe=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n};WG.exports=function(e){var n=this;if(typeof n!="function"||OSe.apply(n)!==RSe)throw new TypeError(CSe+n);for(var r=ISe(arguments,1),i,l=function(){if(this instanceof i){var c=n.apply(this,KG(r,arguments));return Object(c)===c?c:this}return n.apply(e,KG(r,argu Line truncated
`)>=0)return!1;return!0}function LTe(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Pa.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Pa.call(Array(e+1),n)}}function Iw(t,e){if(t.length===0)return"";var n=`
`+e.prev+e.base;return n+Pa.call(t,","+n)+`
`+e.prev}function Dp(t,e){var n=Rw(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=xo(t,i)?e(t[i],t):""}var l=typeof Tw=="function"?Tw(t):[],s;if(G1){s={};for(var a=0;a<l.length;a++)s["$"+l[a]]=l[a]}for(var o in t)xo(t,o)&&(n&&String(Number(o))===o&&o<t.length||G1&&s["$"+o]instanceof Symbol||(HK.call(/[^\w$]/,o)?r.push(e(o,t)+": "+e(t[o],t)):r.push(o+": "+e(t[o],t))));if(typeof Tw=="function")for(var u=0;u<l.length;u++)qK.call(t,l[u])&&r.push("["+e(l[u])+"]: "+e(t[l[u]],t));return r}});var QK=D((xje,YK)=>{"use strict";var XK=Ru(),K1=CK(),FTe=JK(),BTe=j1(),Lp=XK("%WeakMap%",!0),Fp=XK("%Map%",!0),MTe=K1("WeakMap.prototype.get",!0),UTe=K1("WeakMap.prototype.set",!0),jTe=K1("WeakMap.prototype.has",!0),$Te=K1("Map.prototype.get",!0),HTe=K1("Map.prototype.set",!0),qTe=K1("Map.prototype.has",!0),Lw=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},VTe=function(t,e){var n=Lw(t,e);return n&&n.value},zTe=function(t,e,n){var r=Lw(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},GTe=function(t,e){return!!Lw(t,e)};YK.exports=function(){var e,n,r,i={assert:function(l){if(!i.has(l))throw new BTe("Side channel does not contain "+FTe(l))},get:function(l){if(Lp&&l&&(typeof l=="object"||typeof l=="function")){if(e)return MTe(e,l)}else if(Fp){if(n)return $Te(n,l)}else if(r)return VTe(r,l)},has:function(l){if(Lp&&l&&(typeof l=="object"||typeof l=="function")){if(e)return jTe(e,l)}else if(Fp){if(n)return qTe(n,l)}else if(r)return GTe(r,l);return!1},set:function(l,s){Lp&&l&&(typeof l=="object"||typeof l=="function")?(e||(e=new Lp),UTe(e,l,s)):Fp?(n||(n=new Fp),HTe(n,l,s)):(r||(r={key:{},next:null}),zTe(r,l,s))}};return i}});var Bp=D((bje,ZK)=>{"use strict";var KTe=String.prototype.replace,WTe=/%20/g,Fw={RFC1738:"RFC1738",RFC3986:"RFC3986"};ZK.exports={default:Fw.RFC3986,formatters:{RFC1738:function(t){return KTe.call(t,WTe,"+")},RFC3986:function(t){return String(t)}},RFC1738:Fw.RFC1738,RFC3986:Fw.RFC3986}});var Mw=D((wje,tW)=>{"use strict";var JTe=Bp(),Bw=Object.prototype.hasOwnProperty,Iu=Array.isArray,La=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),XTe=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(Iu(r)){for(var i=[],l=0;l<r.length;++l)typeof r[l]<"u"&&i.push(r[l]);n.obj[n.prop]=i}}},eW=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},YTe=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(Iu(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Bw.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var i=e;return Iu(e)&&!Iu(n)&&(i=eW(e,r)),Iu(e)&&Iu(n)?(n.forEach(function(l,s){if(Bw.call(e,s)){var a=e[s];a&&typeof a=="object"&&l&&typeof l=="object"?e[s]=t(a,l,r):e.push(l)}else e[s]=l}),e):Object.keys(n).reduce(function(l,s){var a=n[s];return Bw.call(l,s)?l[s]=t(l[s],a,r):l[s]=a,l},i)},QTe=function(e,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},e)},ZTe=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},eAe=function(e,n,r,i,l){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",o=0;o<s.length;++o){var u=s.charCodeAt(o);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||l===JTe.RFC1738&&(u===40||u===41)){a+=s.charAt(o);continue}if(u<128){a=a+La[u];continue}if(u<2048){a=a+(La[192|u>>6]+La[128|u&63]);continue}if(u<55296||u>=57344){a=a+(La[224|u>>12]+La[128|u>>6&63]+La[128|u&63]);continue}o+=1,u=65536+((u&1023)<<10|s.charCodeAt(o)&1023),a+=La[240|u>>18]+La[128|u>>12&63]+La[128|u>>6&63]+La[128|u&63]}return a},tAe=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i<n.length;++i)for(var l=n[i],s=l.obj[l.prop],a=Object.keys(s),o=0;o<a.length;++o){var u=a[o],c=s[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:s,prop:u}),r.push(c))}return XTe(n),e},nAe=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},rAe=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},iAe=function(e,n){return[].concat(e,n)},lAe=function(e,n){if(Iu(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(n(e[i]));return r}return n(e)};tW.exports={arrayToObject:eW,assign:QTe,combine:iAe,compact:tAe,decode:ZTe,encode:eAe,isBuffer:rAe,isRegExp:nAe,maybeMap:lAe,merge:YTe}});var aW=D((Sje,sW)=>{"use strict";var rW=QK(),Mp=Mw(),u6=Bp(),sAe=Object.prototype.hasOwnProperty,iW={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Fa=Array.is Line truncated
`;un.DEFAULT_CONTENT_TYPE="application/octet-stream";un.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var r=Zw.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),nJ.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,n),l=this._multiPartFooter();r(i),r(e),r(l),this._trackLength(i,e,n)};un.prototype._trackLength=function(t,e,n){var r=0;n.knownLength!=null?r+=+n.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+un.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof BCe))&&(n.knownLength||this._valuesToMeasure.push(e))};un.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):FCe.stat(t.path,function(n,r){var i;if(n){e(n);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(n){t.pause(),e(null,+n.headers["content-length"])}),t.resume()):e("Unknown stream")};un.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var r=this._getContentDisposition(e,n),i=this._getContentType(e,n),l="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header=="object"&&Qw(s,n.header);var a;for(var o in s)s.hasOwnProperty(o)&&(a=s[o],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(l+=o+": "+a.join("; ")+un.LINE_BREAK)));return"--"+this.getBoundary()+un.LINE_BREAK+l+un.LINE_BREAK};un.prototype._getContentDisposition=function(t,e){var n,r;return typeof e.filepath=="string"?n=Xw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?n=Xw.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(n=Xw.basename(t.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r};un.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t.name&&(n=Yw.lookup(t.name)),!n&&t.path&&(n=Yw.lookup(t.path)),!n&&t.readable&&t.hasOwnProperty("httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=Yw.lookup(e.filepath||e.filename)),!n&&typeof t=="object"&&(n=un.DEFAULT_CONTENT_TYPE),n};un.prototype._multiPartFooter=function(){return function(t){var e=un.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};un.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+un.LINE_BREAK};un.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(n[e.toLowerCase()]=t[e]);return n};un.prototype.setBoundary=function(t){this._boundary=t};un.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};un.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?t=Buffer.concat([t,this._streams[n]]):t=Buffer.concat([t,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(un.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};un.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};un.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};un.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};un.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}MCe.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){t(n);return}r.forEach(function(i){e+=i}),t(null,e)})};un.prototype.submit=function(t,e){var n,r,i={method:"post"};return typeof t=="string"?(t=LCe(t),r=Qw({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},i)):(r=Qw(t,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(t.headers),r.protocol=="https:"?n=PCe.request(r):n=kCe.request(r),this.getLength(function(l,s){if(l&&l!=="Unknown stream"){this._error(l);return}if(s&&n.setHeader("Content-Length",s),this.pipe(n),e){var a,o=function(u,c){return n.removeListener("error",o),n.removeListener("response",a),e.call(this,u,c)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n};un.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error" Line truncated
`,r+=e;return n+t.substring(r,t.length)};s4.exports.detectEnvironment=function(){return typeof window<"u"&&window&&!(process&&process.title==="node")?"browser":"node"};s4.exports.get32IntFromBuffer=function(t,e){e=e||0;var n=0;if((n=t.length-e)>0){if(n>=4)return t.readUIntBE(e,n);for(var r=0,i=e+n,l=0;i>e;i--,l+=2)r+=t[i-1]*Math.pow(16,l);return r}else return NaN};s4.exports._={isObject:function(t){var e=typeof t;return!!t&&(e=="object"||e=="function")},isString:function(t){return typeof t=="string"||t instanceof String},isNumber:function(t){return typeof t=="number"||!isNaN(parseFloat(t))&&isFinite(t)},omit:function(t,e){var n={};for(var r in t)!t.hasOwnProperty(r)||r===e||(n[r]=t[r]);return n}};s4.exports.trimSurroundingText=function(t,e,n){var r=0,i=t.length,l=t.indexOf(e);l>=0&&(r=l+e.length);var s=t.indexOf(n,l);return s>=0&&(i=s),t.substring(r,i)}});var $u=D((aWe,BZ)=>{var ERe=require("crypto"),xRe=dl()._,a4,bRe=0xdeadbeefcafe,sWe=(bRe&16777215)==15715070;function xe(t,e){t!=null&&(typeof t=="number"?this.fromNumber(t,e):Buffer.isBuffer(t)?this.fromBuffer(t):e==null&&typeof t!="string"?this.fromByteArray(t):this.fromString(t,e))}function Xt(){return new xe(null)}function wRe(t,e,n,r,i,l){for(var s=e&16383,a=e>>14;--l>=0;){var o=this[t]&16383,u=this[t++]>>14,c=a*o+u*s;o=s*o+((c&16383)<<14)+n[r]+i,i=(o>>28)+(c>>14)+a*u,n[r++]=o&268435455}return i}xe.prototype.am=wRe;a4=28;xe.prototype.DB=a4;xe.prototype.DM=(1<<a4)-1;xe.prototype.DV=1<<a4;var MT=52;xe.prototype.FV=Math.pow(2,MT);xe.prototype.F1=MT-a4;xe.prototype.F2=2*a4-MT;var SRe="0123456789abcdefghijklmnopqrstuvwxyz",ih=new Array,o4,Ss;o4=48;for(Ss=0;Ss<=9;++Ss)ih[o4++]=Ss;o4=97;for(Ss=10;Ss<36;++Ss)ih[o4++]=Ss;o4=65;for(Ss=10;Ss<36;++Ss)ih[o4++]=Ss;function BT(t){return SRe.charAt(t)}function kZ(t,e){var n=ih[t.charCodeAt(e)];return n??-1}function TRe(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function ARe(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+DV:this.t=0}function t3(t){var e=Xt();return e.fromInt(t),e}function CRe(t,e,n){var r;switch(e){case 2:r=1;break;case 4:r=2;break;case 8:r=3;break;case 16:r=4;break;case 32:r=5;break;case 256:r=8;break;default:this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,l=!1,s=0;--i>=0;){var a=r==8?t[i]&255:kZ(t,i);if(a<0){t.charAt(i)=="-"&&(l=!0);continue}l=!1,s===0?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=r,s>=this.DB&&(s-=this.DB)}!n&&r==8&&t[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),l&&xe.ZERO.subTo(this,this)}function ORe(t,e){this.fromString(t,256,e)}function NRe(t){this.fromString(t,256,!0)}function RRe(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function IRe(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var n=(1<<e)-1,r,i=!1,l="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,l=BT(r));s>=0;)a<e?(r=(this[s]&(1<<a)-1)<<e-a,r|=this[--s]>>(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(l+=BT(r));return i?l:"0"}function DRe(){var t=Xt();return xe.ZERO.subTo(this,t),t}function kRe(){return this.s<0?this.negate():this}function PRe(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0}function lh(t){var e=1,n;return(n=t>>>16)!=0&&(t=n,e+=16),(n=t>>8)!=0&&(t=n,e+=8),(n=t>>4)!=0&&(t=n,e+=4),(n=t>>2)!=0&&(t=n,e+=2),(n=t>>1)!=0&&(t=n,e+=1),e}function LRe(){return this.t<=0?0:this.DB*(this.t-1)+lh(this[this.t-1]^this.s&this.DM)}function FRe(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function BRe(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function MRe(t,e){var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,l=Math.floor(t/this.DB),s=this.s<<n&this.DM,a;for(a=this.t-1;a>=0;--a)e[a+l+1]=this[a]>>r|s,s=(this[a]&i)<<n;for(a=l-1;a>=0;--a)e[a]=0;e[l]=s,e.t=this.t+l+1,e.s=this.s,e.clamp()}function URe(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}var r=t%this.DB,i=this.DB-r,l=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&l)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&l)<<i),e.t=this.t-n,e.clamp()}function jRe(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function $Re(t,e){var n=this.abs(),r=t.abs(),i=n.t;for(e.t=i+r.t;--i>=0;)e[i]=0;for(i=0;i<r.t;++i)e[i+n.t]=n.am(0,r[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&xe.ZERO.subTo(e,e)}function HRe(t){for(var e=this.abs(),n=t.t=2*e.t;- Line truncated
`+wh.linebrk(c.buffer.toString("base64"),64)+`
`+gee},privateImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),mee.isString(e)){var i=wh.trimSurroundingText(e,yee,gee).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new bh.Reader(r);l.readSequence(),l.readString(2,!0),t.setPrivate(l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0))},publicExport:function(t,e){e=e||{};var n=t.n.toBuffer(),r=n.length+512,i=new bh.Writer({size:r});return i.startSequence(),i.writeBuffer(n,2),i.writeInt(t.e),i.endSequence(),e.type==="der"?i.buffer:vee+`
`+wh.linebrk(i.buffer.toString("base64"),64)+`
`+_ee},publicImport:function(t,e,n){n=n||{};var r;if(n.type!=="der"){if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),mee.isString(e)){var i=wh.trimSurroundingText(e,vee,_ee).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}}else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new bh.Reader(r);l.readSequence(),t.setPublic(l.readString(2,!0),l.readString(2,!0))},autoImport:function(t,e){return/^[\S\s]*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----[\S\s]*$/g.test(e)?(Sh.exports.privateImport(t,e),!0):/^[\S\s]*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----[\S\s]*$/g.test(e)?(Sh.exports.publicImport(t,e),!0):!1}}});var Aee=D((AWe,Ch)=>{var Ma=xh().Ber,xee=dl()._,Th="1.2.840.113549.1.1.1",Ah=dl(),bee="-----BEGIN PRIVATE KEY-----",wee="-----END PRIVATE KEY-----",See="-----BEGIN PUBLIC KEY-----",Tee="-----END PUBLIC KEY-----";Ch.exports={privateExport:function(t,e){e=e||{};var n=t.n.toBuffer(),r=t.d.toBuffer(),i=t.p.toBuffer(),l=t.q.toBuffer(),s=t.dmp1.toBuffer(),a=t.dmq1.toBuffer(),o=t.coeff.toBuffer(),u=n.length+r.length+i.length+l.length+s.length+a.length+o.length+512,c=new Ma.Writer({size:u});c.startSequence(),c.writeInt(0),c.writeBuffer(n,2),c.writeInt(t.e),c.writeBuffer(r,2),c.writeBuffer(i,2),c.writeBuffer(l,2),c.writeBuffer(s,2),c.writeBuffer(a,2),c.writeBuffer(o,2),c.endSequence();var f=new Ma.Writer({size:u});return f.startSequence(),f.writeInt(0),f.startSequence(),f.writeOID(Th),f.writeNull(),f.endSequence(),f.writeBuffer(c.buffer,4),f.endSequence(),e.type==="der"?f.buffer:bee+`
`+Ah.linebrk(f.buffer.toString("base64"),64)+`
`+wee},privateImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),xee.isString(e)){var i=Ah.trimSurroundingText(e,bee,wee).replace("-----END PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new Ma.Reader(r);l.readSequence(),l.readInt(0);var s=new Ma.Reader(l.readString(48,!0));if(s.readOID(6,!0)!==Th)throw Error("Invalid Public key format");var a=new Ma.Reader(l.readString(4,!0));a.readSequence(),a.readString(2,!0),t.setPrivate(a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0))},publicExport:function(t,e){e=e||{};var n=t.n.toBuffer(),r=n.length+512,i=new Ma.Writer({size:r});i.writeByte(0),i.startSequence(),i.writeBuffer(n,2),i.writeInt(t.e),i.endSequence();var l=new Ma.Writer({size:r});return l.startSequence(),l.startSequence(),l.writeOID(Th),l.writeNull(),l.endSequence(),l.writeBuffer(i.buffer,3),l.endSequence(),e.type==="der"?l.buffer:See+`
`+Ah.linebrk(l.buffer.toString("base64"),64)+`
`+Tee},publicImport:function(t,e,n){n=n||{};var r;if(n.type!=="der"){if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),xee.isString(e)){var i=Ah.trimSurroundingText(e,See,Tee).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}}else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new Ma.Reader(r);l.readSequence();var s=new Ma.Reader(l.readString(48,!0));if(s.readOID(6,!0)!==Th)throw Error("Invalid Public key format");var a=new Ma.Reader(l.readString(3,!0));a.readByte(),a.readSequence(),t.setPublic(a.readString(2,!0),a.readString(2,!0))},autoImport:function(t,e){return/^[\S\s]*-----BEGIN PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PRIVATE KEY-----[\S\s]*$/g.test(e)?(Ch.exports.privateImport(t,e),!0):/^[\S\s]*-----BEGIN PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PUBLIC KEY-----[\S\s]*$/g.test(e)?(Ch.exports.publicImport(t,e),!0):!1}}});var Cee=D((NWe,Oh)=>{var CWe=dl()._,OWe=dl();Oh.exports={privateExport:function(t,e){return{n:t.n.toBuffer(),e:t.e,d:t.d.toBuffer(),p:t.p.toBuffer(),q:t.q.toBuffer(),dmp1:t.dmp1.toBuffer(),dmq1:t.dmq1.toBuffer(),coeff:t.coeff.toBuffer()}},privateImport:function(t,e,n){if(e.n&&e.e&&e.d&&e.p&&e.q&&e.dmp1&&e.dmq1&&e.coeff)t.setPrivate(e.n,e.e,e.d,e.p,e.q,e.dmp1,e.dmq1,e.coeff);else throw Error("Invalid key data")},publicExport:function(t,e){return{n:t.n.toBuffer(),e:t.e}},publicImport:function(t,e,n){if(e.n&&e.e)t.setPublic(e.n,e.e);else throw Error("Invalid key data")},autoImport:function(t,e){return e.n&&e.e?e.d&&e.p&&e.q&&e.dmp1&&e.dmq1&&e.coeff?(Oh.exports.privateImport(t,e),!0):(Oh.exports.publicImport(t,e),!0):!1}}});var Dee=D((RWe,Nh)=>{var Oee=dl()._,Nee=dl(),I6=$u(),Ree="-----BEGIN OPENSSH PRIVATE KEY-----",Iee="-----END OPENSSH PRIVATE KEY-----";Nh.exports={privateExport:function(t,e){let n=t.n.toBuffer(),r=Buffer.alloc(4);for(r.writeUInt32BE(t.e,0);r[0]===0;)r=r.slice(1);let i=t.d.toBuffer(),l=t.coeff.toBuffer(),s=t.p.toBuffer(),a=t.q.toBuffer(),o;typeof t.sshcomment<"u"?o=Buffer.from(t.sshcomment):o=Buffer.from([]);let u=15+r.byteLength+4+n.byteLength,c=23+n.byteLength+4+r.byteLength+4+i.byteLength+4+l.byteLength+4+s.byteLength+4+a.byteLength+4+o.byteLength,f=43+u+4+c,d=Math.ceil(c/8)*8-c;f+=d;let h=Buffer.alloc(f),m={buf:h,off:0};h.write("openssh-key-v1","utf8"),h.writeUInt8(0,14),m.off+=15,ki(m,Buffer.from("none")),ki(m,Buffer.from("none")),ki(m,Buffer.from("")),m.off=m.buf.writeUInt32BE(1,m.off),m.off=m.buf.writeUInt32BE(u,m.off),ki(m,Buffer.from("ssh-rsa")),ki(m,r),ki(m,n),m.off=m.buf.writeUInt32BE(f-47-u,m.off),m.off+=8,ki(m,Buffer.from("ssh-rsa")),ki(m,n),ki(m,r),ki(m,i),ki(m,l),ki(m,s),ki(m,a),ki(m,o);let x=1;for(;m.off<f;)m.off=m.buf.writeUInt8(x++,m.off);return e.type==="der"?m.buf:Ree+`
`+Nee.linebrk(h.toString("base64"),70)+`
`+Iee+`
`},privateImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),Oee.isString(e)){var i=Nee.trimSurroundingText(e,Ree,Iee).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");let l={buf:r,off:0};if(r.slice(0,14).toString("ascii")!=="openssh-key-v1")throw"Invalid file format.";if(l.off+=15,Di(l).toString("ascii")!=="none"||Di(l).toString("ascii")!=="none"||Di(l).toString("ascii")!==""||(l.off+=4,l.off+=4,Di(l).toString("ascii")!=="ssh-rsa")||(Di(l),Di(l),l.off+=12,Di(l).toString("ascii")!=="ssh-rsa"))throw Error("Unsupported key type");let s=Di(l),a=Di(l),o=Di(l),u=Di(l),c=Di(l),f=Di(l),d=new I6(o),h=new I6(f),m=new I6(c),x=d.mod(m.subtract(I6.ONE)),b=d.mod(h.subtract(I6.ONE));t.setPrivate(s,a,o,c,f,x.toBuffer(),b.toBuffer(),u),t.sshcomment=Di(l).toString("ascii")},publicExport:function(t,e){let n=Buffer.alloc(4);for(n.writeUInt32BE(t.e,0);n[0]===0;)n=n.slice(1);let r=t.n.toBuffer(),i=Buffer.alloc(n.byteLength+4+r.byteLength+4+7+4),l={buf:i,off:0};ki(l,Buffer.from("ssh-rsa")),ki(l,n),ki(l,r);let s=t.sshcomment||"";return e.type==="der"?l.buf:"ssh-rsa "+i.toString("base64")+" "+s+`
`},publicImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),Oee.isString(e)){if(e.substring(0,8)!=="ssh-rsa ")throw Error("Unsupported key format");let o=e.indexOf(" ",8);o===-1?o=e.length:t.sshcomment=e.substring(o+1).replace(/\s+|\n\r|\n|\r$/gm,"");let u=e.substring(8,o).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(u,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");let i={buf:r,off:0},l=Di(i).toString("ascii");if(l!=="ssh-rsa")throw Error("Invalid key type: "+l);let s=Di(i),a=Di(i);t.setPublic(a,s)},autoImport:function(t,e){return/^[\S\s]*-----BEGIN OPENSSH PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END OPENSSH PRIVATE KEY-----[\S\s]*$/g.test(e)?(Nh.exports.privateImport(t,e),!0):/^[\S\s]*ssh-rsa \s*(?=(([A-Za-z0-9+/=]+\s*)+))\1[\S\s]*$/g.test(e)?(Nh.exports.publicImport(t,e),!0):!1}};function Di(t){let e=t.buf.readInt32BE(t.off);t.off+=4;let n=t.buf.slice(t.off,t.off+e);return t.off+=e,n}function ki(t,e){t.buf.writeInt32BE(e.byteLength,t.off),t.off+=4,t.off+=e.copy(t.buf,t.off)}});var Pee=D((DWe,fi)=>{var IWe=dl()._;function kee(t){t=t.split("-");for(var e="private",n={type:"default"},r=1;r<t.length;r++)if(t[r])switch(t[r]){case"public":e=t[r];break;case"private":e=t[r];break;case"pem":n.type=t[r];break;case"der":n.type=t[r];break}return{scheme:t[0],keyType:e,keyOpt:n}}fi.exports={pkcs1:Eee(),pkcs8:Aee(),components:Cee(),openssh:Dee(),isPrivateExport:function(t){return fi.exports[t]&&typeof fi.exports[t].privateExport=="function"},isPrivateImport:function(t){return fi.exports[t]&&typeof fi.exports[t].privateImport=="function"},isPublicExport:function(t){return fi.exports[t]&&typeof fi.exports[t].publicExport=="function"},isPublicImport:function(t){return fi.exports[t]&&typeof fi.exports[t].publicImport=="function"},detectAndImport:function(t,e,n){if(n===void 0){for(var r in fi.exports)if(typeof fi.exports[r].autoImport=="function"&&fi.exports[r].autoImport(t,e))return!0}else if(n){var i=kee(n);if(fi.exports[i.scheme])i.keyType==="private"?fi.exports[i.scheme].privateImport(t,e,i.keyOpt):fi.exports[i.scheme].publicImport(t,e,i.keyOpt);else throw Error("Unsupported key format")}return!1},detectAndExport:function(t,e){if(e){var n=kee(e);if(fi.exports[n.scheme])if(n.keyType==="private"){if(!t.isPrivate())throw Error("This is not private key");return fi.exports[n.scheme].privateExport(t,n.keyOpt)}else{if(!t.isPublic())throw Error("This is not public key");return fi.exports[n.scheme].publicExport(t,n.keyOpt)}else throw Error("Unsupported key format")}}}});var Uee=D((LWe,Mee)=>{var Lee=require("constants"),bDe=iee(),kWe=require("crypto"),PWe=xh().Ber,Ql=dl()._,wDe=dl(),Fee=Hu(),Bee=Pee();typeof Lee.RSA_NO_PADDING>"u"&&(Lee.RSA_NO_PADDING=3);Mee.exports=function(){var t={node10:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],node:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],iojs:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],browser:["md5","ripemd160","sha1","sha256","sha512"]},e="pkcs1_oaep",n="pkcs1",r="private",i={private:"pkcs1-private-pem","private-der":"pkcs1-private-der",public:"pkcs8-public-pem","public-der":"pkcs8-public-der"};function l(s,a,o){if(!(this instanceof l))return new l(s,a,o);Ql.isObject(a)&&(o=a,a=void 0),this.$options={signingScheme:n,signingSchemeOptions:{hash:"sha256",saltLength:null},encryptionScheme:e,encryptionSchemeOptions:{hash:"sha1",label:null},environment:wDe.detectEnvironment(),rsaUtils:this},this.keyPair=new bDe.Key,this.$cache={},Buffer.isBuffer(s)||Ql.isString(s)?this.importKey(s,a):Ql.isObject(s)&&this.generateKeyPair(s.b,s.e),this.setOptions(o)}return l.prototype.setOptions=function(s){if(s=s||{},s.environment&&(this.$options.environment=s.environment),s.signingScheme){if(Ql.isString(s.signingScheme)){var a=s.signingScheme.toLowerCase().split("-");a.length==1?t.node.indexOf(a[0])>-1?(this.$options.signingSchemeOptions={hash:a[0]},this.$options.signingScheme=n):(this.$options.signingScheme=a[0],this.$options.signingSchemeOptions={hash:null}):(this.$options.signingSchemeOptions={hash:a[1]},this.$options.signingScheme=a[0])}else Ql.isObject(s.signingScheme)&&(this.$options.signingScheme=s.signingScheme.scheme||n,this.$options.signingSchemeOptions=Ql.omit(s.signingScheme,"scheme"));if(!Fee.isSignature(this.$options.signingScheme))throw Error("Unsupported signing scheme");if(this.$options.signingSchemeOptions.hash&&t[this.$options.environment].indexOf(this.$options.signingSchemeOptions.hash)===-1)throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}if(s.encryptionScheme){if(Ql.isString(s.encryptionScheme)?(this.$options.encryptionScheme=s.encryptionScheme.toLowerCase(),this.$options.encryptionSchemeOptions={}):Ql.isObject(s.encryptionScheme)&&(this.$options.encryptionScheme=s.encryptionScheme.scheme||e,this.$options.encryptionSchemeOption Line truncated
`+this.inner:e}};g3.NestedError=k6;var hA=class extends k6{};g3.DatabaseError=hA;var dA=class extends k6{};g3.DataError=dA});var _A=D(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.getArrayIndicies=gl.validateArrayIndex=gl.validateArrayIndicies=gl.isInt=gl.ArrayInfo=gl.arrayRegex=void 0;var gd=y4(),ZDe=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;gl.arrayRegex=ZDe;var mA={},yA=class t{property;index=0;append=!1;indicies=[];constructor(e,n){this.property=e;let r=n[0]??0;if(this.append=r===""||n[n.length-1]==="",this.indicies=n,gA(r))this.index=parseInt(r);else if(!this.append)throw new gd.DataError("Only numerical values accepted for array index",200)}static processArray(e){if(typeof e>"u")return null;if(mA[e])return mA[e];let r=(0,gl.arrayRegex)().exec(e.trim());if(r!=null){let i=r[1],l="["+r[2].toString()+"]",s=vA(l);return ire(s),mA[e]=new t(i,s)}return null}getIndex(e,n){if(this.append)return-1;let r=this.index;if(r==-1){let i=n?e:e[this.property];return i.length===0?0:i.length-1}return r}getData(e){if(this.append)throw new gd.DataError("Can't get data when appending",100);let{index:n,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);return r[n]}setData(e,n){if(this.append){let r=e[this.property];this.indicies.forEach(i=>{i!==""&&(i=+i,i===-1&&(i=r.length-1),r=r[+i])}),r.push(n)}else{let{index:r,dataForProperty:i}=this.getArrayDataAndIndexFromProperty(e);r===-1?i.push(n):i[r]=n}}delete(e){if(this.append)throw new gd.DataError("Can't delete an appended data",10);let{index:n,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);r.splice(n,1)}isValid(e){let{index:n,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);return r.hasOwnProperty(n)}getArrayDataAndIndexFromProperty(e){let n=0,r=e instanceof Array?e:e[this.property]??e;if(this.indicies.length>0){n=+this.indicies[this.indicies.length-1];for(let i=0;i<this.indicies.length-1;i++){let l=+this.indicies[i];l===-1&&(l=r.length-1),r=r[l]}n===-1&&(n=r.length-1)}return{index:n,dataForProperty:r}}isMultiDimensional(){return this.indicies.length>1}};gl.ArrayInfo=yA;function gA(t){return!isNaN(t)&&Number(t)==t&&!isNaN(parseInt(t,10))}gl.isInt=gA;function ire(t){let e=t.filter(n=>n==="");if(e.length>1)throw Error("Only one append index is supported for nested arrays");if(e.length===1&&t[t.length-1]!=="")throw Error("Append index must be at the end of the nested array")}gl.validateArrayIndicies=ire;function lre(t){if(t.length!==0&&!gA(t))throw new gd.DataError("Only numerical values accepted for array index",200)}gl.validateArrayIndex=lre;function vA(t){if(t.length===0)return[];if(t.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let e=t.substring(1,t.indexOf("]"));lre(e);let n=e.length+2;return[e,...vA(t.substring(n))]}gl.getArrayIndicies=vA});var ore=D(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.DBParentData=void 0;var sre=_A(),are=y4(),EA=class{parent;data;db;dataPath;constructor(e,n,r,i){this.parent=i,this.data=e,this.db=n,this.dataPath=r}checkArray(e=!1){let n=sre.ArrayInfo.processArray(this.parent);if(n&&(!n.append||e)&&!n.isValid(this.data))throw new are.DataError("DataPath: /"+this.dataPath+". Can't find index "+n.index+" in array "+n.property,10);return n}getData(){if(this.parent===void 0)return this.data;let e=this.checkArray();return e?e.getData(this.data):this.data[this.parent]}setData(e){if(this.parent===void 0){this.db.resetData(e);return}let n=sre.ArrayInfo.processArray(this.parent);if(n){if(!this.data.hasOwnProperty(n.property))this.data[n.property]=[];else if(!Array.isArray(this.data[n.property]))throw new are.DataError("DataPath: /"+this.dataPath+". "+n.property+" is not an array.",11);n.setData(this.data,e)}else this.data[this.parent]=e}delete(){if(this.parent===void 0){this.db.resetData({});return}let e=this.checkArray(!0);e?e.delete(this.data):delete this.data[this.parent]}};vd.DBParentData=EA});var cre=D((SXe,ure)=>{ure.exports=function(){"use strict";function t(){this.readers=0,this.queue=[]}function e(l,s,a){var o;typeof l!="function"?(i.hasOwnProperty(l)||(i[l]=new t),o=i[l]):(a=s,s=l,o=r),a||(a={});var u=null;a.hasOwnProperty("scope")&&(u=a.scope);var c=function(){var h=!1;return function(){h||(h=!0,o.readers--,o.queue.length&&o.queue[0]())}}();if(o.readers<0||o.queue.length){var f=!1;if(o.queue.push(function(){!f&&o.readers>=0&&(f=!0,o.queue.shift(),o.readers++,s.call(u,c),o.queue.length&&o.queue[0]())}),a.hasOwnProperty("timeout")){var d=null;a.hasOwnProperty("timeoutCallback")&&(d=a.timeoutCallback),setTimeout(function(){f||(f=!0,o.queue.shift(),d&&d.call(a.scope))},a.timeout)}}else o.readers++,s.call(a.scope,c)}function n(l,s,a){var o;typeof l!="function"?(i.hasOwnProperty(l)||(i[l]=new t),o=i[l]):(a=s,s=l,o=r),a||(a={});var u=null;a.hasOwnProperty("scope")&&(u=a.scope);var c=function(){var h=!1;return function(){h||(h=!0,o.readers=0,o.queue.length&&o.queue[0]())}}();if(o.readers||o.queue.length){var f=!1;if(o.queue.pus Line truncated
`:t(e.children):xf(e)?t(e.children):Ia(e)?e.data:""},textContent:T1,innerText:Sf,getChildren:Lf,getParent:Cq,getSiblings:Oq,getAttributeValue:function(t,e){return(t=t.attribs)==null?void 0:t[e]},hasAttrib:function(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null},getName:function(t){return t.name},nextElementSibling:Ab,prevElementSibling:Cb,removeElement:fu,replaceElement:function(t,e){let n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;if(r&&(r.prev=e),r=e.parent=t.parent){let i=r.children;i[i.lastIndexOf(t)]=e,t.parent=null}},appendChild:function(t,e){fu(e),e.next=null,1<(e.parent=t).children.push(e)?((t=t.children[t.children.length-2]).next=e).prev=t:e.prev=null},append:function(t,e){fu(e);var n=t.parent,r=t.next;if(e.next=r,((e.prev=t).next=e).parent=n,r){if(r.prev=e,n){let i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},prependChild:function(t,e){fu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1?((t=t.children[1]).prev=e).next=t:e.next=null},prepend:function(t,e){fu(e);var n,r=t.parent;r&&(n=r.children).splice(n.indexOf(t),0,e),t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,(e.next=t).prev=e},filter:ff,find:Ob,findOneChild:function(t,e){return e.find(t)},findOne:Qx,existsOne:function t(e,n){return n.some(r=>wt(r)&&(e(r)||t(e,r.children)))},findAll:function(t,e){for(var n=[],r=[e],i=[0];;)if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift()}else{let l=r[0][i[0]++];wt(l)&&(t(l)&&n.push(l),0<l.children.length)&&(i.unshift(0),r.unshift(l.children))}},testElement:function(t,e){return!(t=cH(t))||t(e)},getElements:function(t,e,n,r=1/0){return(t=cH(t))?ff(t,e,n,r):[]},getElementById:function(t,e,n=!0){return Array.isArray(e)||(e=[e]),Qx(Nq("id",t),e,n)},getElementsByTagName:_1,getElementsByTagType:function(t,e,n=!0,r=1/0){return ff(Tf.tag_type(t),e,n,r)},removeSubsets:function(t){let e=t.length;for(;0<=--e;){var n=t[e];if(0<e&&0<=t.lastIndexOf(n,e-1))t.splice(e,1);else for(let r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t},get DocumentPosition(){return Es},compareDocumentPosition:Rq,uniqueSort:A1,getFeed:function(t){return(t=nf(Y_e,t))?(t.name==="feed"?function(e){var n={type:"atom",items:_1("entry",e=e.children).map(i=>{var l={media:fH(i=i.children)},s=(Ol(l,"id","id",i),Ol(l,"title","title",i),(s=nf("link",i))==null?void 0:s.attribs.href);return s&&(l.link=s),(s=io("summary",i)||io("content",i))&&(l.description=s),(s=io("updated",i))&&(l.pubDate=new Date(s)),l})},r=(Ol(n,"id","id",e),Ol(n,"title","title",e),(r=nf("link",e))==null?void 0:r.attribs.href);return r&&(n.link=r),Ol(n,"description","subtitle",e),(r=io("updated",e))&&(n.updated=new Date(r)),Ol(n,"author","email",e,!0),n}:function(r){var n=(n=(n=nf("channel",r.children))==null?void 0:n.children)!=null?n:[],r={type:r.name.substr(0,3),id:"",items:_1("item",r.children).map(l=>{var s={media:fH(l=l.children)};return Ol(s,"id","guid",l),Ol(s,"title","title",l),Ol(s,"link","link",l),Ol(s,"description","description",l),(l=io("pubDate",l)||io("dc:date",l))&&(s.pubDate=new Date(l)),s})},i=(Ol(r,"title","title",n),Ol(r,"link","link",n),Ol(r,"description","description",n),io("lastBuildDate",n));return i&&(r.updated=new Date(i)),Ol(r,"author","managingEditor",n,!0),r})(t):null}}),E1=function(){return(E1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Iq(t,e,n){return t?t(e??t._root.children,null,void 0,n).toString():""}function Q_e(t,e){return Iq(this,function(n){return!(typeof n!="object"||n==null||"length"in n||"type"in n)}(t)?void(e=t):t,E1(E1(E1({},Tb),this==null?void 0:this._options),Jx(e??{})))}function Z_e(t){return Iq(this,t,E1(E1({},this._options),{xmlMode:!0}))}function M5(t){for(var e=t||(this?this.root():[]),n="",r=0;r<e.length;r++)n+=T1(e[r]);return n}function eEe(t,e,n){return n===void 0&&(n=typeof e=="boolean"&&e),t&&typeof t=="string"?(typeof e=="boolean"&&(n=e),e=this.load(t,Tb,!1),n||e("script").remove(),e.root()[0].children.slice()):null}function tEe(){return this(this._root)}function Dq(t,e){if(e!==t){for(var n=e;n&&n!==n.parent;)if((n=n.parent)===t)return!0}return!1}function nEe(t,e){if(pH(t)&&pH(e)){for(var n=t.length,r=+e.length,i=0;i<r;i++)t[n++]=e[i];return t.length=n,t}}function pH(t){if(!Array.isArray(t)){if(typeof t!="object"||!Object.prototype.hasOwnProperty.call(t,"length")||typeof t.length!="number"||t.length<0)return!1;for(var e=0;e<t.length;e++)if(!(e in t))return!1}return!0}var pu,rEe=Object.freeze({__proto__:null,html:Q_e,xml:Z_e,text:M5,parseHTML:eEe,root:tEe,contains:Dq,merge:nEe});function Ra(t){return t.cheerio!=null}function Dr(t,e){for(var n=t.length,r=0;r<n;r++)e(t[r],r);return t}function Nx(e){var e="length"in e?Array.prototype.map.call(e,function(r){return bf(r,!0)}):[bf(e,!0)],n=new b2(e);return e.forEach(function(r){r.parent=n}),e}function Zx(t){var e, Line truncated
${we}`),ge.destroy(le)}function re(le,ge){le.headers["accept-version"]!==void 0&&(le.headers[l_e]=le.headers["accept-version"],le.headers["accept-version"]=void 0),h.router.lookup(le,ge)}function I(le,ge,we){if(a){let pt=eH(P.server,ge),Me=Q$(P,o,ge,pt),St=new tf(pt,null,ge,null,Me,P),Zt=new h5(we,St,Me);return l===!1&&Me.info({req:St},"incoming request"),a(new T_e(le),St,Zt)}let qe=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${le}' is not a valid url component","statusCode":400}`;we.writeHead(400,{"Content-Type":"application/json","Content-Length":qe.length}),we.end(qe)}function M(le,ge,we){if(le!==!1)return function(pt){if(pt){if(a){let St=eH(P.server,ge),Zt=Q$(P,o,ge,St),mt=new tf(St,null,ge,null,Zt,P),It=new h5(we,mt,Zt);return l===!1&&Zt.info({req:mt},"incoming request"),a(new S_e,mt,It)}let Me='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';we.writeHead(500,{"Content-Type":"application/json","Content-Length":Me.length}),we.end(Me)}}}function F(le,ge){return G('Cannot call "setNotFoundHandler"!'),h.setNotFoundHandler.call(this,le,ge,k,d.routeHandler),this}function L(le){return G('Cannot call "setValidatorCompiler"!'),this[io].setValidatorCompiler(le),this}function Ke(le){return G('Cannot call "setSchemaErrorFormatter"!'),lH(le),this[Tx]=le.bind(this),this}function Be(le){return G('Cannot call "setSerializerCompiler"!'),this[io].setSerializerCompiler(le),this}function Re(le){G('Cannot call "setSchemaController"!');let ge=this[io],we=X$.buildSchemaController(ge,Object.assign({},ge.opts,le));return this[io]=we,this.getSchema=we.getSchema.bind(we),this.getSchemas=we.getSchemas.bind(we),this}function Te(le){return G('Cannot call "setReplySerializer"!'),this[W$]=le,this}function ke(le){return G('Cannot call "setErrorHandler"!'),this[ef]=iH(this[ef],le.bind(this)),this}function Ae(le){return G('Cannot call "setChildLoggerFactory"!'),this[Cx]=le,this}function gt(le={}){return le.includeMeta=le.includeHooks?le.includeMeta?Nx.concat(le.includeMeta):Nx:le.includeMeta,d.printRoutes(le)}function st(le,{rewriteUrl:ge,logger:we}){let qe;return function(Me,St){if(qe===void 0&&(qe=le.isAsyncConstraint()),ge){Me.originalUrl=Me.url;let Zt=ge.call(C,Me);if(typeof Zt=="string")Me.url=Zt;else{let mt=new L_e(Me.url,typeof Zt);Me.destroy(mt)}}le.routing(Me,St,M(qe,Me,St))}}function rt(le){return G('Cannot call "setGenReqId"!'),this[Ox]=tH(this[Sx].requestIdHeader,le),this}}nf.errorCodes=cu;function lH(t){if(typeof t!="function")throw new rH(typeof t);if(t.constructor.name==="AsyncFunction")throw new rH("AsyncFunction")}rf.exports=nf;rf.exports.fastify=nf;rf.exports.default=nf});var kG=D((fje,DG)=>{"use strict";DG.exports=Error});var LG=D((pje,PG)=>{"use strict";PG.exports=EvalError});var BG=D((hje,FG)=>{"use strict";FG.exports=RangeError});var UG=D((dje,MG)=>{"use strict";MG.exports=ReferenceError});var vw=D((mje,jG)=>{"use strict";jG.exports=SyntaxError});var H1=D((yje,$G)=>{"use strict";$G.exports=TypeError});var qG=D((gje,HG)=>{"use strict";HG.exports=URIError});var zG=D((vje,VG)=>{"use strict";VG.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var JG=D((_je,KG)=>{"use strict";var GG=typeof Symbol<"u"&&Symbol,FSe=zG();KG.exports=function(){return typeof GG!="function"||typeof Symbol!="function"||typeof GG("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:FSe()}});var XG=D((Eje,WG)=>{"use strict";var _w={__proto__:null,foo:{}},BSe=Object;WG.exports=function(){return{__proto__:_w}.foo===_w.foo&&!(_w instanceof BSe)}});var ZG=D((xje,QG)=>{"use strict";var MSe="Function.prototype.bind called on incompatible ",USe=Object.prototype.toString,jSe=Math.max,$Se="[object Function]",YG=function(e,n){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var l=0;l<n.length;l+=1)r[l+e.length]=n[l];return r},HSe=function(e,n){for(var r=[],i=n||0,l=0;i<e.length;i+=1,l+=1)r[l]=e[i];return r},qSe=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n};QG.exports=function(e){var n=this;if(typeof n!="function"||USe.apply(n)!==$Se)throw new TypeError(MSe+n);for(var r=HSe(arguments,1),i,l=function(){if(this instanceof i){var c=n.apply(this,YG(r,arguments));return Object(c)===c?c:this}return n.apply(e,YG(r,argu Line truncated
`)>=0)return!1;return!0}function GTe(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=La.call(Array(t.indent+1)," ");else return null;return{base:n,prev:La.call(Array(e+1),n)}}function kw(t,e){if(t.length===0)return"";var n=`
`+e.prev+e.base;return n+La.call(t,","+n)+`
`+e.prev}function Pp(t,e){var n=Dw(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=bo(t,i)?e(t[i],t):""}var l=typeof Cw=="function"?Cw(t):[],s;if(J1){s={};for(var a=0;a<l.length;a++)s["$"+l[a]]=l[a]}for(var o in t)bo(t,o)&&(n&&String(Number(o))===o&&o<t.length||J1&&s["$"+o]instanceof Symbol||(GK.call(/[^\w$]/,o)?r.push(e(o,t)+": "+e(t[o],t)):r.push(o+": "+e(t[o],t))));if(typeof Cw=="function")for(var u=0;u<l.length;u++)KK.call(t,l[u])&&r.push("["+e(l[u])+"]: "+e(t[l[u]],t));return r}});var nJ=D((Pje,tJ)=>{"use strict";var eJ=Du(),W1=RK(),KTe=ZK(),JTe=H1(),Bp=eJ("%WeakMap%",!0),Mp=eJ("%Map%",!0),WTe=W1("WeakMap.prototype.get",!0),XTe=W1("WeakMap.prototype.set",!0),YTe=W1("WeakMap.prototype.has",!0),QTe=W1("Map.prototype.get",!0),ZTe=W1("Map.prototype.set",!0),eAe=W1("Map.prototype.has",!0),Bw=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},tAe=function(t,e){var n=Bw(t,e);return n&&n.value},nAe=function(t,e,n){var r=Bw(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},rAe=function(t,e){return!!Bw(t,e)};tJ.exports=function(){var e,n,r,i={assert:function(l){if(!i.has(l))throw new JTe("Side channel does not contain "+KTe(l))},get:function(l){if(Bp&&l&&(typeof l=="object"||typeof l=="function")){if(e)return WTe(e,l)}else if(Mp){if(n)return QTe(n,l)}else if(r)return tAe(r,l)},has:function(l){if(Bp&&l&&(typeof l=="object"||typeof l=="function")){if(e)return YTe(e,l)}else if(Mp){if(n)return eAe(n,l)}else if(r)return rAe(r,l);return!1},set:function(l,s){Bp&&l&&(typeof l=="object"||typeof l=="function")?(e||(e=new Bp),XTe(e,l,s)):Mp?(n||(n=new Mp),ZTe(n,l,s)):(r||(r={key:{},next:null}),nAe(r,l,s))}};return i}});var Up=D((Lje,rJ)=>{"use strict";var iAe=String.prototype.replace,lAe=/%20/g,Mw={RFC1738:"RFC1738",RFC3986:"RFC3986"};rJ.exports={default:Mw.RFC3986,formatters:{RFC1738:function(t){return iAe.call(t,lAe,"+")},RFC3986:function(t){return String(t)}},RFC1738:Mw.RFC1738,RFC3986:Mw.RFC3986}});var jw=D((Fje,lJ)=>{"use strict";var sAe=Up(),Uw=Object.prototype.hasOwnProperty,ku=Array.isArray,Fa=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),aAe=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(ku(r)){for(var i=[],l=0;l<r.length;++l)typeof r[l]<"u"&&i.push(r[l]);n.obj[n.prop]=i}}},iJ=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},oAe=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(ku(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Uw.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var i=e;return ku(e)&&!ku(n)&&(i=iJ(e,r)),ku(e)&&ku(n)?(n.forEach(function(l,s){if(Uw.call(e,s)){var a=e[s];a&&typeof a=="object"&&l&&typeof l=="object"?e[s]=t(a,l,r):e.push(l)}else e[s]=l}),e):Object.keys(n).reduce(function(l,s){var a=n[s];return Uw.call(l,s)?l[s]=t(l[s],a,r):l[s]=a,l},i)},uAe=function(e,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},e)},cAe=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},fAe=function(e,n,r,i,l){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",o=0;o<s.length;++o){var u=s.charCodeAt(o);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||l===sAe.RFC1738&&(u===40||u===41)){a+=s.charAt(o);continue}if(u<128){a=a+Fa[u];continue}if(u<2048){a=a+(Fa[192|u>>6]+Fa[128|u&63]);continue}if(u<55296||u>=57344){a=a+(Fa[224|u>>12]+Fa[128|u>>6&63]+Fa[128|u&63]);continue}o+=1,u=65536+((u&1023)<<10|s.charCodeAt(o)&1023),a+=Fa[240|u>>18]+Fa[128|u>>12&63]+Fa[128|u>>6&63]+Fa[128|u&63]}return a},pAe=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i<n.length;++i)for(var l=n[i],s=l.obj[l.prop],a=Object.keys(s),o=0;o<a.length;++o){var u=a[o],c=s[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:s,prop:u}),r.push(c))}return aAe(n),e},hAe=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},dAe=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},mAe=function(e,n){return[].concat(e,n)},yAe=function(e,n){if(ku(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(n(e[i]));return r}return n(e)};lJ.exports={arrayToObject:iJ,assign:uAe,combine:mAe,compact:pAe,decode:cAe,encode:fAe,isBuffer:dAe,isRegExp:hAe,maybeMap:yAe,merge:oAe}});var fJ=D((Bje,cJ)=>{"use strict";var aJ=nJ(),jp=jw(),f6=Up(),gAe=Object.prototype.hasOwnProperty,oJ={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Ba=Array.is Line truncated
`;cn.DEFAULT_CONTENT_TYPE="application/octet-stream";cn.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var r=tS.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),sW.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,n),l=this._multiPartFooter();r(i),r(e),r(l),this._trackLength(i,e,n)};cn.prototype._trackLength=function(t,e,n){var r=0;n.knownLength!=null?r+=+n.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+cn.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof JCe))&&(n.knownLength||this._valuesToMeasure.push(e))};cn.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):KCe.stat(t.path,function(n,r){var i;if(n){e(n);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(n){t.pause(),e(null,+n.headers["content-length"])}),t.resume()):e("Unknown stream")};cn.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var r=this._getContentDisposition(e,n),i=this._getContentType(e,n),l="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header=="object"&&eS(s,n.header);var a;for(var o in s)s.hasOwnProperty(o)&&(a=s[o],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(l+=o+": "+a.join("; ")+cn.LINE_BREAK)));return"--"+this.getBoundary()+cn.LINE_BREAK+l+cn.LINE_BREAK};cn.prototype._getContentDisposition=function(t,e){var n,r;return typeof e.filepath=="string"?n=Qw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?n=Qw.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(n=Qw.basename(t.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r};cn.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t.name&&(n=Zw.lookup(t.name)),!n&&t.path&&(n=Zw.lookup(t.path)),!n&&t.readable&&t.hasOwnProperty("httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=Zw.lookup(e.filepath||e.filename)),!n&&typeof t=="object"&&(n=cn.DEFAULT_CONTENT_TYPE),n};cn.prototype._multiPartFooter=function(){return function(t){var e=cn.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};cn.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+cn.LINE_BREAK};cn.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(n[e.toLowerCase()]=t[e]);return n};cn.prototype.setBoundary=function(t){this._boundary=t};cn.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};cn.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?t=Buffer.concat([t,this._streams[n]]):t=Buffer.concat([t,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(cn.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};cn.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};cn.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};cn.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};cn.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}WCe.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){t(n);return}r.forEach(function(i){e+=i}),t(null,e)})};cn.prototype.submit=function(t,e){var n,r,i={method:"post"};return typeof t=="string"?(t=GCe(t),r=eS({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},i)):(r=eS(t,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(t.headers),r.protocol=="https:"?n=zCe.request(r):n=VCe.request(r),this.getLength(function(l,s){if(l&&l!=="Unknown stream"){this._error(l);return}if(s&&n.setHeader("Content-Length",s),this.pipe(n),e){var a,o=function(u,c){return n.removeListener("error",o),n.removeListener("response",a),e.call(this,u,c)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n};cn.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error" Line truncated
`,r+=e;return n+t.substring(r,t.length)};o4.exports.detectEnvironment=function(){return typeof window<"u"&&window&&!(process&&process.title==="node")?"browser":"node"};o4.exports.get32IntFromBuffer=function(t,e){e=e||0;var n=0;if((n=t.length-e)>0){if(n>=4)return t.readUIntBE(e,n);for(var r=0,i=e+n,l=0;i>e;i--,l+=2)r+=t[i-1]*Math.pow(16,l);return r}else return NaN};o4.exports._={isObject:function(t){var e=typeof t;return!!t&&(e=="object"||e=="function")},isString:function(t){return typeof t=="string"||t instanceof String},isNumber:function(t){return typeof t=="number"||!isNaN(parseFloat(t))&&isFinite(t)},omit:function(t,e){var n={};for(var r in t)!t.hasOwnProperty(r)||r===e||(n[r]=t[r]);return n}};o4.exports.trimSurroundingText=function(t,e,n){var r=0,i=t.length,l=t.indexOf(e);l>=0&&(r=l+e.length);var s=t.indexOf(n,l);return s>=0&&(i=s),t.substring(r,i)}});var qu=D((KGe,SQ)=>{var YNe=require("crypto"),QNe=yl()._,u4,ZNe=0xdeadbeefcafe,GGe=(ZNe&16777215)==15715070;function xe(t,e){t!=null&&(typeof t=="number"?this.fromNumber(t,e):Buffer.isBuffer(t)?this.fromBuffer(t):e==null&&typeof t!="string"?this.fromByteArray(t):this.fromString(t,e))}function Xt(){return new xe(null)}function eIe(t,e,n,r,i,l){for(var s=e&16383,a=e>>14;--l>=0;){var o=this[t]&16383,u=this[t++]>>14,c=a*o+u*s;o=s*o+((c&16383)<<14)+n[r]+i,i=(o>>28)+(c>>14)+a*u,n[r++]=o&268435455}return i}xe.prototype.am=eIe;u4=28;xe.prototype.DB=u4;xe.prototype.DM=(1<<u4)-1;xe.prototype.DV=1<<u4;var _T=52;xe.prototype.FV=Math.pow(2,_T);xe.prototype.F1=_T-u4;xe.prototype.F2=2*u4-_T;var tIe="0123456789abcdefghijklmnopqrstuvwxyz",rh=new Array,c4,Ts;c4=48;for(Ts=0;Ts<=9;++Ts)rh[c4++]=Ts;c4=97;for(Ts=10;Ts<36;++Ts)rh[c4++]=Ts;c4=65;for(Ts=10;Ts<36;++Ts)rh[c4++]=Ts;function vT(t){return tIe.charAt(t)}function EQ(t,e){var n=rh[t.charCodeAt(e)];return n??-1}function nIe(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function rIe(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+DV:this.t=0}function Wo(t){var e=Xt();return e.fromInt(t),e}function iIe(t,e,n){var r;switch(e){case 2:r=1;break;case 4:r=2;break;case 8:r=3;break;case 16:r=4;break;case 32:r=5;break;case 256:r=8;break;default:this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,l=!1,s=0;--i>=0;){var a=r==8?t[i]&255:EQ(t,i);if(a<0){t.charAt(i)=="-"&&(l=!0);continue}l=!1,s===0?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=r,s>=this.DB&&(s-=this.DB)}!n&&r==8&&t[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),l&&xe.ZERO.subTo(this,this)}function lIe(t,e){this.fromString(t,256,e)}function sIe(t){this.fromString(t,256,!0)}function aIe(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function oIe(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var n=(1<<e)-1,r,i=!1,l="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,l=vT(r));s>=0;)a<e?(r=(this[s]&(1<<a)-1)<<e-a,r|=this[--s]>>(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(l+=vT(r));return i?l:"0"}function uIe(){var t=Xt();return xe.ZERO.subTo(this,t),t}function cIe(){return this.s<0?this.negate():this}function fIe(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0}function ih(t){var e=1,n;return(n=t>>>16)!=0&&(t=n,e+=16),(n=t>>8)!=0&&(t=n,e+=8),(n=t>>4)!=0&&(t=n,e+=4),(n=t>>2)!=0&&(t=n,e+=2),(n=t>>1)!=0&&(t=n,e+=1),e}function pIe(){return this.t<=0?0:this.DB*(this.t-1)+ih(this[this.t-1]^this.s&this.DM)}function hIe(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function dIe(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function mIe(t,e){var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,l=Math.floor(t/this.DB),s=this.s<<n&this.DM,a;for(a=this.t-1;a>=0;--a)e[a+l+1]=this[a]>>r|s,s=(this[a]&i)<<n;for(a=l-1;a>=0;--a)e[a]=0;e[l]=s,e.t=this.t+l+1,e.s=this.s,e.clamp()}function yIe(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}var r=t%this.DB,i=this.DB-r,l=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&l)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&l)<<i),e.t=this.t-n,e.clamp()}function gIe(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function vIe(t,e){var n=this.abs(),r=t.abs(),i=n.t;for(e.t=i+r.t;--i>=0;)e[i]=0;for(i=0;i<r.t;++i)e[i+n.t]=n.am(0,r[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&xe.ZERO.subTo(e,e)}function _Ie(t){for(var e=this.abs(),n=t.t=2*e.t;- Line truncated
`+bh.linebrk(c.buffer.toString("base64"),64)+`
`+iZ},privateImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),nZ.isString(e)){var i=bh.trimSurroundingText(e,rZ,iZ).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new xh.Reader(r);l.readSequence(),l.readString(2,!0),t.setPrivate(l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0),l.readString(2,!0))},publicExport:function(t,e){e=e||{};var n=t.n.toBuffer(),r=n.length+512,i=new xh.Writer({size:r});return i.startSequence(),i.writeBuffer(n,2),i.writeInt(t.e),i.endSequence(),e.type==="der"?i.buffer:lZ+`
`+bh.linebrk(i.buffer.toString("base64"),64)+`
`+sZ},publicImport:function(t,e,n){n=n||{};var r;if(n.type!=="der"){if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),nZ.isString(e)){var i=bh.trimSurroundingText(e,lZ,sZ).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}}else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new xh.Reader(r);l.readSequence(),t.setPublic(l.readString(2,!0),l.readString(2,!0))},autoImport:function(t,e){return/^[\S\s]*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----[\S\s]*$/g.test(e)?(wh.exports.privateImport(t,e),!0):/^[\S\s]*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----[\S\s]*$/g.test(e)?(wh.exports.publicImport(t,e),!0):!1}}});var hZ=D((pKe,Ah)=>{var Ua=Eh().Ber,oZ=yl()._,Sh="1.2.840.113549.1.1.1",Th=yl(),uZ="-----BEGIN PRIVATE KEY-----",cZ="-----END PRIVATE KEY-----",fZ="-----BEGIN PUBLIC KEY-----",pZ="-----END PUBLIC KEY-----";Ah.exports={privateExport:function(t,e){e=e||{};var n=t.n.toBuffer(),r=t.d.toBuffer(),i=t.p.toBuffer(),l=t.q.toBuffer(),s=t.dmp1.toBuffer(),a=t.dmq1.toBuffer(),o=t.coeff.toBuffer(),u=n.length+r.length+i.length+l.length+s.length+a.length+o.length+512,c=new Ua.Writer({size:u});c.startSequence(),c.writeInt(0),c.writeBuffer(n,2),c.writeInt(t.e),c.writeBuffer(r,2),c.writeBuffer(i,2),c.writeBuffer(l,2),c.writeBuffer(s,2),c.writeBuffer(a,2),c.writeBuffer(o,2),c.endSequence();var f=new Ua.Writer({size:u});return f.startSequence(),f.writeInt(0),f.startSequence(),f.writeOID(Sh),f.writeNull(),f.endSequence(),f.writeBuffer(c.buffer,4),f.endSequence(),e.type==="der"?f.buffer:uZ+`
`+Th.linebrk(f.buffer.toString("base64"),64)+`
`+cZ},privateImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),oZ.isString(e)){var i=Th.trimSurroundingText(e,uZ,cZ).replace("-----END PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new Ua.Reader(r);l.readSequence(),l.readInt(0);var s=new Ua.Reader(l.readString(48,!0));if(s.readOID(6,!0)!==Sh)throw Error("Invalid Public key format");var a=new Ua.Reader(l.readString(4,!0));a.readSequence(),a.readString(2,!0),t.setPrivate(a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0),a.readString(2,!0))},publicExport:function(t,e){e=e||{};var n=t.n.toBuffer(),r=n.length+512,i=new Ua.Writer({size:r});i.writeByte(0),i.startSequence(),i.writeBuffer(n,2),i.writeInt(t.e),i.endSequence();var l=new Ua.Writer({size:r});return l.startSequence(),l.startSequence(),l.writeOID(Sh),l.writeNull(),l.endSequence(),l.writeBuffer(i.buffer,3),l.endSequence(),e.type==="der"?l.buffer:fZ+`
`+Th.linebrk(l.buffer.toString("base64"),64)+`
`+pZ},publicImport:function(t,e,n){n=n||{};var r;if(n.type!=="der"){if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),oZ.isString(e)){var i=Th.trimSurroundingText(e,fZ,pZ).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}}else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");var l=new Ua.Reader(r);l.readSequence();var s=new Ua.Reader(l.readString(48,!0));if(s.readOID(6,!0)!==Sh)throw Error("Invalid Public key format");var a=new Ua.Reader(l.readString(3,!0));a.readByte(),a.readSequence(),t.setPublic(a.readString(2,!0),a.readString(2,!0))},autoImport:function(t,e){return/^[\S\s]*-----BEGIN PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PRIVATE KEY-----[\S\s]*$/g.test(e)?(Ah.exports.privateImport(t,e),!0):/^[\S\s]*-----BEGIN PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PUBLIC KEY-----[\S\s]*$/g.test(e)?(Ah.exports.publicImport(t,e),!0):!1}}});var dZ=D((mKe,Ch)=>{var hKe=yl()._,dKe=yl();Ch.exports={privateExport:function(t,e){return{n:t.n.toBuffer(),e:t.e,d:t.d.toBuffer(),p:t.p.toBuffer(),q:t.q.toBuffer(),dmp1:t.dmp1.toBuffer(),dmq1:t.dmq1.toBuffer(),coeff:t.coeff.toBuffer()}},privateImport:function(t,e,n){if(e.n&&e.e&&e.d&&e.p&&e.q&&e.dmp1&&e.dmq1&&e.coeff)t.setPrivate(e.n,e.e,e.d,e.p,e.q,e.dmp1,e.dmq1,e.coeff);else throw Error("Invalid key data")},publicExport:function(t,e){return{n:t.n.toBuffer(),e:t.e}},publicImport:function(t,e,n){if(e.n&&e.e)t.setPublic(e.n,e.e);else throw Error("Invalid key data")},autoImport:function(t,e){return e.n&&e.e?e.d&&e.p&&e.q&&e.dmp1&&e.dmq1&&e.coeff?(Ch.exports.privateImport(t,e),!0):(Ch.exports.publicImport(t,e),!0):!1}}});var _Z=D((yKe,Oh)=>{var mZ=yl()._,yZ=yl(),k6=qu(),gZ="-----BEGIN OPENSSH PRIVATE KEY-----",vZ="-----END OPENSSH PRIVATE KEY-----";Oh.exports={privateExport:function(t,e){let n=t.n.toBuffer(),r=Buffer.alloc(4);for(r.writeUInt32BE(t.e,0);r[0]===0;)r=r.slice(1);let i=t.d.toBuffer(),l=t.coeff.toBuffer(),s=t.p.toBuffer(),a=t.q.toBuffer(),o;typeof t.sshcomment<"u"?o=Buffer.from(t.sshcomment):o=Buffer.from([]);let u=15+r.byteLength+4+n.byteLength,c=23+n.byteLength+4+r.byteLength+4+i.byteLength+4+l.byteLength+4+s.byteLength+4+a.byteLength+4+o.byteLength,f=43+u+4+c,d=Math.ceil(c/8)*8-c;f+=d;let h=Buffer.alloc(f),m={buf:h,off:0};h.write("openssh-key-v1","utf8"),h.writeUInt8(0,14),m.off+=15,Li(m,Buffer.from("none")),Li(m,Buffer.from("none")),Li(m,Buffer.from("")),m.off=m.buf.writeUInt32BE(1,m.off),m.off=m.buf.writeUInt32BE(u,m.off),Li(m,Buffer.from("ssh-rsa")),Li(m,r),Li(m,n),m.off=m.buf.writeUInt32BE(f-47-u,m.off),m.off+=8,Li(m,Buffer.from("ssh-rsa")),Li(m,n),Li(m,r),Li(m,i),Li(m,l),Li(m,s),Li(m,a),Li(m,o);let x=1;for(;m.off<f;)m.off=m.buf.writeUInt8(x++,m.off);return e.type==="der"?m.buf:gZ+`
`+yZ.linebrk(h.toString("base64"),70)+`
`+vZ+`
`},privateImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),mZ.isString(e)){var i=yZ.trimSurroundingText(e,gZ,vZ).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(i,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");let l={buf:r,off:0};if(r.slice(0,14).toString("ascii")!=="openssh-key-v1")throw"Invalid file format.";if(l.off+=15,Pi(l).toString("ascii")!=="none"||Pi(l).toString("ascii")!=="none"||Pi(l).toString("ascii")!==""||(l.off+=4,l.off+=4,Pi(l).toString("ascii")!=="ssh-rsa")||(Pi(l),Pi(l),l.off+=12,Pi(l).toString("ascii")!=="ssh-rsa"))throw Error("Unsupported key type");let s=Pi(l),a=Pi(l),o=Pi(l),u=Pi(l),c=Pi(l),f=Pi(l),d=new k6(o),h=new k6(f),m=new k6(c),x=d.mod(m.subtract(k6.ONE)),b=d.mod(h.subtract(k6.ONE));t.setPrivate(s,a,o,c,f,x.toBuffer(),b.toBuffer(),u),t.sshcomment=Pi(l).toString("ascii")},publicExport:function(t,e){let n=Buffer.alloc(4);for(n.writeUInt32BE(t.e,0);n[0]===0;)n=n.slice(1);let r=t.n.toBuffer(),i=Buffer.alloc(n.byteLength+4+r.byteLength+4+7+4),l={buf:i,off:0};Li(l,Buffer.from("ssh-rsa")),Li(l,n),Li(l,r);let s=t.sshcomment||"";return e.type==="der"?l.buf:"ssh-rsa "+i.toString("base64")+" "+s+`
`},publicImport:function(t,e,n){n=n||{};var r;if(n.type!=="der")if(Buffer.isBuffer(e)&&(e=e.toString("utf8")),mZ.isString(e)){if(e.substring(0,8)!=="ssh-rsa ")throw Error("Unsupported key format");let o=e.indexOf(" ",8);o===-1?o=e.length:t.sshcomment=e.substring(o+1).replace(/\s+|\n\r|\n|\r$/gm,"");let u=e.substring(8,o).replace(/\s+|\n\r|\n|\r$/gm,"");r=Buffer.from(u,"base64")}else throw Error("Unsupported key format");else if(Buffer.isBuffer(e))r=e;else throw Error("Unsupported key format");let i={buf:r,off:0},l=Pi(i).toString("ascii");if(l!=="ssh-rsa")throw Error("Invalid key type: "+l);let s=Pi(i),a=Pi(i);t.setPublic(a,s)},autoImport:function(t,e){return/^[\S\s]*-----BEGIN OPENSSH PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END OPENSSH PRIVATE KEY-----[\S\s]*$/g.test(e)?(Oh.exports.privateImport(t,e),!0):/^[\S\s]*ssh-rsa \s*(?=(([A-Za-z0-9+/=]+\s*)+))\1[\S\s]*$/g.test(e)?(Oh.exports.publicImport(t,e),!0):!1}};function Pi(t){let e=t.buf.readInt32BE(t.off);t.off+=4;let n=t.buf.slice(t.off,t.off+e);return t.off+=e,n}function Li(t,e){t.buf.writeInt32BE(e.byteLength,t.off),t.off+=4,t.off+=e.copy(t.buf,t.off)}});var xZ=D((vKe,hi)=>{var gKe=yl()._;function EZ(t){t=t.split("-");for(var e="private",n={type:"default"},r=1;r<t.length;r++)if(t[r])switch(t[r]){case"public":e=t[r];break;case"private":e=t[r];break;case"pem":n.type=t[r];break;case"der":n.type=t[r];break}return{scheme:t[0],keyType:e,keyOpt:n}}hi.exports={pkcs1:aZ(),pkcs8:hZ(),components:dZ(),openssh:_Z(),isPrivateExport:function(t){return hi.exports[t]&&typeof hi.exports[t].privateExport=="function"},isPrivateImport:function(t){return hi.exports[t]&&typeof hi.exports[t].privateImport=="function"},isPublicExport:function(t){return hi.exports[t]&&typeof hi.exports[t].publicExport=="function"},isPublicImport:function(t){return hi.exports[t]&&typeof hi.exports[t].publicImport=="function"},detectAndImport:function(t,e,n){if(n===void 0){for(var r in hi.exports)if(typeof hi.exports[r].autoImport=="function"&&hi.exports[r].autoImport(t,e))return!0}else if(n){var i=EZ(n);if(hi.exports[i.scheme])i.keyType==="private"?hi.exports[i.scheme].privateImport(t,e,i.keyOpt):hi.exports[i.scheme].publicImport(t,e,i.keyOpt);else throw Error("Unsupported key format")}return!1},detectAndExport:function(t,e){if(e){var n=EZ(e);if(hi.exports[n.scheme])if(n.keyType==="private"){if(!t.isPrivate())throw Error("This is not private key");return hi.exports[n.scheme].privateExport(t,n.keyOpt)}else{if(!t.isPublic())throw Error("This is not public key");return hi.exports[n.scheme].publicExport(t,n.keyOpt)}else throw Error("Unsupported key format")}}}});var AZ=D((xKe,TZ)=>{var bZ=require("constants"),ZRe=zQ(),_Ke=require("crypto"),EKe=Eh().Ber,Zl=yl()._,eDe=yl(),wZ=Vu(),SZ=xZ();typeof bZ.RSA_NO_PADDING>"u"&&(bZ.RSA_NO_PADDING=3);TZ.exports=function(){var t={node10:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],node:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],iojs:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],browser:["md5","ripemd160","sha1","sha256","sha512"]},e="pkcs1_oaep",n="pkcs1",r="private",i={private:"pkcs1-private-pem","private-der":"pkcs1-private-der",public:"pkcs8-public-pem","public-der":"pkcs8-public-der"};function l(s,a,o){if(!(this instanceof l))return new l(s,a,o);Zl.isObject(a)&&(o=a,a=void 0),this.$options={signingScheme:n,signingSchemeOptions:{hash:"sha256",saltLength:null},encryptionScheme:e,encryptionSchemeOptions:{hash:"sha1",label:null},environment:eDe.detectEnvironment(),rsaUtils:this},this.keyPair=new ZRe.Key,this.$cache={},Buffer.isBuffer(s)||Zl.isString(s)?this.importKey(s,a):Zl.isObject(s)&&this.generateKeyPair(s.b,s.e),this.setOptions(o)}return l.prototype.setOptions=function(s){if(s=s||{},s.environment&&(this.$options.environment=s.environment),s.signingScheme){if(Zl.isString(s.signingScheme)){var a=s.signingScheme.toLowerCase().split("-");a.length==1?t.node.indexOf(a[0])>-1?(this.$options.signingSchemeOptions={hash:a[0]},this.$options.signingScheme=n):(this.$options.signingScheme=a[0],this.$options.signingSchemeOptions={hash:null}):(this.$options.signingSchemeOptions={hash:a[1]},this.$options.signingScheme=a[0])}else Zl.isObject(s.signingScheme)&&(this.$options.signingScheme=s.signingScheme.scheme||n,this.$options.signingSchemeOptions=Zl.omit(s.signingScheme,"scheme"));if(!wZ.isSignature(this.$options.signingScheme))throw Error("Unsupported signing scheme");if(this.$options.signingSchemeOptions.hash&&t[this.$options.environment].indexOf(this.$options.signingSchemeOptions.hash)===-1)throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}if(s.encryptionScheme){if(Zl.isString(s.encryptionScheme)?(this.$options.encryptionScheme=s.encryptionScheme.toLowerCase(),this.$options.encryptionSchemeOptions={}):Zl.isObject(s.encryptionScheme)&&(this.$options.encryptionScheme=s.encryptionScheme.scheme||e,this.$options.encryptionSchemeOptions=Zl.omit(s.encrypti Line truncated
`+this.inner:e}};_3.NestedError=L6;var gA=class extends L6{};_3.DatabaseError=gA;var vA=class extends L6{};_3.DataError=vA});var wA=D(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.getArrayIndicies=_l.validateArrayIndex=_l.validateArrayIndicies=_l.isInt=_l.ArrayInfo=_l.arrayRegex=void 0;var _d=v4(),pke=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;_l.arrayRegex=pke;var _A={},EA=class t{property;index=0;append=!1;indicies=[];constructor(e,n){this.property=e;let r=n[0]??0;if(this.append=r===""||n[n.length-1]==="",this.indicies=n,xA(r))this.index=parseInt(r);else if(!this.append)throw new _d.DataError("Only numerical values accepted for array index",200)}static processArray(e){if(typeof e>"u")return null;if(_A[e])return _A[e];let r=(0,_l.arrayRegex)().exec(e.trim());if(r!=null){let i=r[1],l="["+r[2].toString()+"]",s=bA(l);return mre(s),_A[e]=new t(i,s)}return null}getIndex(e,n){if(this.append)return-1;let r=this.index;if(r==-1){let i=n?e:e[this.property];return i.length===0?0:i.length-1}return r}getData(e){if(this.append)throw new _d.DataError("Can't get data when appending",100);let{index:n,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);return r[n]}setData(e,n){if(this.append){let r=e[this.property];this.indicies.forEach(i=>{i!==""&&(i=+i,i===-1&&(i=r.length-1),r=r[+i])}),r.push(n)}else{let{index:r,dataForProperty:i}=this.getArrayDataAndIndexFromProperty(e);r===-1?i.push(n):i[r]=n}}delete(e){if(this.append)throw new _d.DataError("Can't delete an appended data",10);let{index:n,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);r.splice(n,1)}isValid(e){let{index:n,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);return r.hasOwnProperty(n)}getArrayDataAndIndexFromProperty(e){let n=0,r=e instanceof Array?e:e[this.property]??e;if(this.indicies.length>0){n=+this.indicies[this.indicies.length-1];for(let i=0;i<this.indicies.length-1;i++){let l=+this.indicies[i];l===-1&&(l=r.length-1),r=r[l]}n===-1&&(n=r.length-1)}return{index:n,dataForProperty:r}}isMultiDimensional(){return this.indicies.length>1}};_l.ArrayInfo=EA;function xA(t){return!isNaN(t)&&Number(t)==t&&!isNaN(parseInt(t,10))}_l.isInt=xA;function mre(t){let e=t.filter(n=>n==="");if(e.length>1)throw Error("Only one append index is supported for nested arrays");if(e.length===1&&t[t.length-1]!=="")throw Error("Append index must be at the end of the nested array")}_l.validateArrayIndicies=mre;function yre(t){if(t.length!==0&&!xA(t))throw new _d.DataError("Only numerical values accepted for array index",200)}_l.validateArrayIndex=yre;function bA(t){if(t.length===0)return[];if(t.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let e=t.substring(1,t.indexOf("]"));yre(e);let n=e.length+2;return[e,...bA(t.substring(n))]}_l.getArrayIndicies=bA});var _re=D(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DBParentData=void 0;var gre=wA(),vre=v4(),SA=class{parent;data;db;dataPath;constructor(e,n,r,i){this.parent=i,this.data=e,this.db=n,this.dataPath=r}checkArray(e=!1){let n=gre.ArrayInfo.processArray(this.parent);if(n&&(!n.append||e)&&!n.isValid(this.data))throw new vre.DataError("DataPath: /"+this.dataPath+". Can't find index "+n.index+" in array "+n.property,10);return n}getData(){if(this.parent===void 0)return this.data;let e=this.checkArray();return e?e.getData(this.data):this.data[this.parent]}setData(e){if(this.parent===void 0){this.db.resetData(e);return}let n=gre.ArrayInfo.processArray(this.parent);if(n){if(!this.data.hasOwnProperty(n.property))this.data[n.property]=[];else if(!Array.isArray(this.data[n.property]))throw new vre.DataError("DataPath: /"+this.dataPath+". "+n.property+" is not an array.",11);n.setData(this.data,e)}else this.data[this.parent]=e}delete(){if(this.parent===void 0){this.db.resetData({});return}let e=this.checkArray(!0);e?e.delete(this.data):delete this.data[this.parent]}};Ed.DBParentData=SA});var xre=D((KXe,Ere)=>{Ere.exports=function(){"use strict";function t(){this.readers=0,this.queue=[]}function e(l,s,a){var o;typeof l!="function"?(i.hasOwnProperty(l)||(i[l]=new t),o=i[l]):(a=s,s=l,o=r),a||(a={});var u=null;a.hasOwnProperty("scope")&&(u=a.scope);var c=function(){var h=!1;return function(){h||(h=!0,o.readers--,o.queue.length&&o.queue[0]())}}();if(o.readers<0||o.queue.length){var f=!1;if(o.queue.push(function(){!f&&o.readers>=0&&(f=!0,o.queue.shift(),o.readers++,s.call(u,c),o.queue.length&&o.queue[0]())}),a.hasOwnProperty("timeout")){var d=null;a.hasOwnProperty("timeoutCallback")&&(d=a.timeoutCallback),setTimeout(function(){f||(f=!0,o.queue.shift(),d&&d.call(a.scope))},a.timeout)}}else o.readers++,s.call(a.scope,c)}function n(l,s,a){var o;typeof l!="function"?(i.hasOwnProperty(l)||(i[l]=new t),o=i[l]):(a=s,s=l,o=r),a||(a={});var u=null;a.hasOwnProperty("scope")&&(u=a.scope);var c=function(){var h=!1;return function(){h||(h=!0,o.readers=0,o.queue.length&&o.queue[0]())}}();if(o.readers||o.queue.length){var f=!1;if(o.queue.pus Line truncated
`:t(e.children):wf(e)?t(e.children):Da(e)?e.data:""},textContent:C1,innerText:Af,getChildren:Bf,getParent:Rq,getSiblings:Dq,getAttributeValue:function(t,e){return(t=t.attribs)==null?void 0:t[e]},hasAttrib:function(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null},getName:function(t){return t.name},nextElementSibling:Ob,prevElementSibling:Nb,removeElement:hu,replaceElement:function(t,e){let n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;if(r&&(r.prev=e),r=e.parent=t.parent){let i=r.children;i[i.lastIndexOf(t)]=e,t.parent=null}},appendChild:function(t,e){hu(e),e.next=null,1<(e.parent=t).children.push(e)?((t=t.children[t.children.length-2]).next=e).prev=t:e.prev=null},append:function(t,e){hu(e);var n=t.parent,r=t.next;if(e.next=r,((e.prev=t).next=e).parent=n,r){if(r.prev=e,n){let i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},prependChild:function(t,e){hu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1?((t=t.children[1]).prev=e).next=t:e.next=null},prepend:function(t,e){hu(e);var n,r=t.parent;r&&(n=r.children).splice(n.indexOf(t),0,e),t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,(e.next=t).prev=e},filter:hf,find:Ib,findOneChild:function(t,e){return e.find(t)},findOne:eb,existsOne:function t(e,n){return n.some(r=>wt(r)&&(e(r)||t(e,r.children)))},findAll:function(t,e){for(var n=[],r=[e],i=[0];;)if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift()}else{let l=r[0][i[0]++];wt(l)&&(t(l)&&n.push(l),0<l.children.length)&&(i.unshift(0),r.unshift(l.children))}},testElement:function(t,e){return!(t=dH(t))||t(e)},getElements:function(t,e,n,r=1/0){return(t=dH(t))?hf(t,e,n,r):[]},getElementById:function(t,e,n=!0){return Array.isArray(e)||(e=[e]),eb(kq("id",t),e,n)},getElementsByTagName:x1,getElementsByTagType:function(t,e,n=!0,r=1/0){return hf(Cf.tag_type(t),e,n,r)},removeSubsets:function(t){let e=t.length;for(;0<=--e;){var n=t[e];if(0<e&&0<=t.lastIndexOf(n,e-1))t.splice(e,1);else for(let r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t},get DocumentPosition(){return xs},compareDocumentPosition:Pq,uniqueSort:O1,getFeed:function(t){return(t=lf(oEe,t))?(t.name==="feed"?function(e){var n={type:"atom",items:x1("entry",e=e.children).map(i=>{var l={media:mH(i=i.children)},s=(Il(l,"id","id",i),Il(l,"title","title",i),(s=lf("link",i))==null?void 0:s.attribs.href);return s&&(l.link=s),(s=lo("summary",i)||lo("content",i))&&(l.description=s),(s=lo("updated",i))&&(l.pubDate=new Date(s)),l})},r=(Il(n,"id","id",e),Il(n,"title","title",e),(r=lf("link",e))==null?void 0:r.attribs.href);return r&&(n.link=r),Il(n,"description","subtitle",e),(r=lo("updated",e))&&(n.updated=new Date(r)),Il(n,"author","email",e,!0),n}:function(r){var n=(n=(n=lf("channel",r.children))==null?void 0:n.children)!=null?n:[],r={type:r.name.substr(0,3),id:"",items:x1("item",r.children).map(l=>{var s={media:mH(l=l.children)};return Il(s,"id","guid",l),Il(s,"title","title",l),Il(s,"link","link",l),Il(s,"description","description",l),(l=lo("pubDate",l)||lo("dc:date",l))&&(s.pubDate=new Date(l)),s})},i=(Il(r,"title","title",n),Il(r,"link","link",n),Il(r,"description","description",n),lo("lastBuildDate",n));return i&&(r.updated=new Date(i)),Il(r,"author","managingEditor",n,!0),r})(t):null}}),b1=function(){return(b1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Lq(t,e,n){return t?t(e??t._root.children,null,void 0,n).toString():""}function uEe(t,e){return Lq(this,function(n){return!(typeof n!="object"||n==null||"length"in n||"type"in n)}(t)?void(e=t):t,b1(b1(b1({},Cb),this==null?void 0:this._options),Yx(e??{})))}function cEe(t){return Lq(this,t,b1(b1({},this._options),{xmlMode:!0}))}function j5(t){for(var e=t||(this?this.root():[]),n="",r=0;r<e.length;r++)n+=C1(e[r]);return n}function fEe(t,e,n){return n===void 0&&(n=typeof e=="boolean"&&e),t&&typeof t=="string"?(typeof e=="boolean"&&(n=e),e=this.load(t,Cb,!1),n||e("script").remove(),e.root()[0].children.slice()):null}function pEe(){return this(this._root)}function Fq(t,e){if(e!==t){for(var n=e;n&&n!==n.parent;)if((n=n.parent)===t)return!0}return!1}function hEe(t,e){if(yH(t)&&yH(e)){for(var n=t.length,r=+e.length,i=0;i<r;i++)t[n++]=e[i];return t.length=n,t}}function yH(t){if(!Array.isArray(t)){if(typeof t!="object"||!Object.prototype.hasOwnProperty.call(t,"length")||typeof t.length!="number"||t.length<0)return!1;for(var e=0;e<t.length;e++)if(!(e in t))return!1}return!0}var du,dEe=Object.freeze({__proto__:null,html:uEe,xml:cEe,text:j5,parseHTML:fEe,root:pEe,contains:Fq,merge:hEe});function Ra(t){return t.cheerio!=null}function kr(t,e){for(var n=t.length,r=0;r<n;r++)e(t[r],r);return t}function Rx(e){var e="length"in e?Array.prototype.map.call(e,function(r){return Sf(r,!0)}):[Sf(e,!0)],n=new w2(e);return e.forEach(function(r){r.parent=n}),e}function tb(t){var e, Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},Bq={};function Mq(t,e){var n=e.getSiblings(t);return n.length<=1||(t=n.indexOf(t))<0||t===n.length-1?[]:n.slice(t+1).filter(e.isTag)}function rb(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Px=(t,e,n,r,i)=>{let l=i(e,rb(n),r);return l===jt.trueFunc?t:l===jt.falseFunc?jt.falseFunc:s=>l(s)&&t(s)},Lx={is:Px,matches:Px,where:Px,not(t,e,n,r,i){let l=i(e,rb(n),r);return l===jt.falseFunc?t:l===jt.trueFunc?jt.falseFunc:s=>!l(s)&&t(s)},has(t,e,n,r,i){let l=n.adapter,s=rb(n),a=(s.relativeSelector=!0,e.some(c=>c.some(tb))?[Bq]:void 0),o=i(e,s,a);if(o===jt.falseFunc)return jt.falseFunc;let u=function(c,f){return c===jt.falseFunc?jt.falseFunc:d=>f.isTag(d)&&c(d)}(o,l);if(a&&o!==jt.trueFunc){let{shouldTestNextSiblings:c=!1}=o;return h=>{if(!t(h))return!1;a[0]=h;var d=l.getChildren(h),h=c?[...d,...Mq(h,l)]:d;return l.existsOne(u,h)}}return c=>t(c)&&l.existsOne(u,l.getChildren(c))}};function Fx(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function _Ee(t,e,n,r,i){let{adapter:l,equals:s}=n;switch(e.type){case dt.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case dt.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case dt.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),mEe[e.action](t,e,n);case dt.Pseudo:return function(a,o,u,c,f){let{name:d,data:h}=o;if(Array.isArray(h)){if(d in Lx)return Lx[d](a,h,u,c,f);throw new Error(`Unknown pseudo-class :${d}(${h})`)}let m=(o=u.pseudos)==null?void 0:o[d],x=typeof m=="string"?m:vEe[d];if(typeof x=="string"){if(h!=null)throw new Error(`Pseudo ${d} doesn't have any arguments`);let b=Bf(x);return Lx.is(a,b,u,c,f)}if(typeof m=="function")return wH(m,d,h,1),b=>m(b,h)&&a(b);if(d in nb)return nb[d](a,h,u,c);if(d in bH){let b=bH[d];return wH(b,d,h,2),_=>b(_,u,h)&&a(_)}throw new Error("Unknown pseudo-class :"+d)}(t,e,n,r,i);case dt.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let a=e.name;return n.xmlMode&&!n.lowerCaseTags||(a=a.toLowerCase()),function(o){return l.getName(o)===a&&t(o)}}case dt.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let u=o;for(;u=Fx(u,l);)if(t(u))return!0;return!1};let a=new WeakSet;return function(o){let u=o;for(;u=Fx(u,l);)if(!a.has(u)){if(l.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(a){let o=a;do if(t(o))return!0;while(o=Fx(o,l));return!1};case dt.Parent:return function(a){return l.getChildren(a).some(o=>l.isTag(o)&&t(o))};case dt.Child:return function(a){return(a=l.getParent(a))!=null&&l.isTag(a)&&t(a)};case dt.Sibling:return function(a){var o=l.getSiblings(a);for(let c=0;c<o.length;c++){var u=o[c];if(s(a,u))break;if(l.isTag(u)&&t(u))return!0}return!1};case dt.Adjacent:return l.prevElementSibling?function(a){return(a=l.prevElementSibling(a))!=null&&t(a)}:function(a){var o=l.getSiblings(a);let u;for(let f=0;f<o.length;f++){var c=o[f];if(s(a,c))break;l.isTag(c)&&(u=c)}return!!u&&t(u)};case dt.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function Uq(t){return t.type===dt.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Uq)))}var EEe={type:dt.Descendant},xEe={type:"_flexibleDescendant"},bEe={type:dt.Pseudo,name:"scope",data:null};function jq(t,e,n){t.forEach(pEe),n=(s=e.context)!=null?s:n;let r=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:o},u){var c=!(u==null||!u.every(f=>{var d=o.isTag(f)&&o.getParent(f);return f===Bq||d&&o.isTag(d)}));for(let f of a){if(!(0<f.length&&tb(f[0])&&f[0].type!==dt.Descendant)){if(!c||f.some(Uq))continue;f.unshift(EEe)}f.unshift(bEe)}})(t,e,i);else if(t.some(a=>0<a.length&&tb(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let l=!1;var s=t.map(a=>{if(2<=a.length){let[o,u]=a;o.type===dt.Pseudo&&o.name==="scope"&&(r&&u.type===dt.D Line truncated
`)}}):{name:r,value:i.replace(TH,`\r
`)}}).toArray()}}),b5=function(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(var r=0;r<t.length;r++)this[r]=t[r];this.length=t.length}},Lb=(b5.prototype.cheerio="[cheerio object]",b5.prototype.splice=Array.prototype.splice,b5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(b5.prototype,lEe,jEe,GEe,KEe,JEe),function(t,e){return(Lb=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){n.__proto__=r}:function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}))(t,e)}),XEe=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Lb(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},w5=function(){return(w5=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},YEe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),_r="\uFFFD",AH=(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(H=H||{}),"--"),CH="[CDATA[",OH="doctype",a1="script",QEe="public",ZEe="system";function Zq(t){return 55296<=t&&t<=57343}function eV(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function tV(t){return 64976<=t&&t<=65007||YEe.has(t)}(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comm Line truncated
`,this.firstUpdate&&(k+=" "),this.message=k+(this.message||""),this.firstUpdate=!1,this},g}function u(_){return n.toString.call(_)==="[object Function]"}function c(_){return n.toString.call(_)==="[object Array]"}function f(_){return n.toString.call(_)==="[object String]"}function d(_){return n.toString.call(_)==="[object Object]"}function h(_){var E=function(v){return v?typeof v=="string"?v.split("."):[v]:[]}(_);return function(v){for(var g=v,S=0;S<E.length;S++){var A=E[S];if(!s(g,A))return;g=g[A]}return g}}function m(_){return Array.prototype.slice.call(_)}function x(_,E,v){return Array.prototype.indexOf.call(_||[],E,v)}function b(_){var E,v=[];for(E in _)s(_,E)&&v.push(E);return v}l.hasOwnProp=s,l._prettifyError=function(_,E,v){return(v=v.Update?v:new l.TemplateError(v)).Update(_),E||(_=v,(v=new Error(_.message)).name=_.name),v},Object.setPrototypeOf?Object.setPrototypeOf(o.prototype,Error.prototype):o.prototype=Object.create(Error.prototype,{constructor:{value:o}}),l.TemplateError=o,l.escape=function(_){return _.replace(i,a)},l.isFunction=u,l.isArray=c,l.isString=f,l.isObject=d,l.getAttrGetter=h,l.groupBy=function(_,E,v){for(var g={},S=u(E)?E:h(E),A=0;A<_.length;A++){var C=_[A],N=S(C,A);if(N===void 0&&v===!0)throw new TypeError('groupby: attribute "'+E+'" resolved to undefined');(g[N]||(g[N]=[])).push(C)}return g},l.toArray=m,l.without=function(_){var E=[];if(_)for(var v=_.length,g=m(arguments).slice(1),S=-1;++S<v;)x(g,_[S])===-1&&E.push(_[S]);return E},l.repeat=function(_,E){for(var v="",g=0;g<E;g++)v+=_;return v},l.each=function(_,E,v){if(_!=null){if(e.forEach&&_.forEach===e.forEach)_.forEach(E,v);else if(_.length===+_.length)for(var g=0,S=_.length;g<S;g++)E.call(v,_[g],g,_)}},l.map=function(_,E){var v=[];if(_!=null){if(e.map&&_.map===e.map)return _.map(E);for(var g=0;g<_.length;g++)v[v.length]=E(_[g],g);_.length===+_.length&&(v.length=_.length)}return v},l.asyncIter=function(_,E,v){var g=-1;(function S(){++g<_.length?E(_[g],g,S,v):v()})()},l.asyncFor=function(_,E,v){var g=b(_||{}),S=g.length,A=-1;(function C(){var N=g[++A];A<S?E(N,_[N],A,S,C):v()})()},l.indexOf=x,l.keys=b,l._entries=function(_){return b(_).map(function(E){return[E,_[E]]})},l._values=function(_){return b(_).map(function(E){return _[E]})},l._assign=l.extend=function(_,E){return _=_||{},b(E).forEach(function(v){_[v]=E[v]}),_},l.inOperator=function(_,E){if(c(E)||f(E))return E.indexOf(_)!==-1;if(d(E))return _ in E;throw new Error('Cannot use "in" operator to search for "'+_+'" in unexpected types.')}});function AV(){throw new Error("setTimeout has not been defined")}function CV(){throw new Error("clearTimeout has not been defined")}var ao=AV,oo=CV;function OV(t){if(ao===setTimeout)return setTimeout(t,0);if((ao===AV||!ao)&&setTimeout)return(ao=setTimeout)(t,0);try{return ao(t,0)}catch{try{return ao.call(null,t,0)}catch{return ao.call(this,t,0)}}}typeof _2.setTimeout=="function"&&(ao=setTimeout),typeof _2.clearTimeout=="function"&&(oo=clearTimeout);var mu,x2=[],w1=!1,gf=-1;function Xxe(){w1&&mu&&(w1=!1,mu.length?x2=mu.concat(x2):gf=-1,x2.length)&&NV()}function NV(){if(!w1){var t=OV(Xxe);w1=!0;for(var e=x2.length;e;){for(mu=x2,x2=[];++gf<e;)mu&&mu[gf].run();gf=-1,e=x2.length}mu=null,w1=!1,function(n){if(oo===clearTimeout)return clearTimeout(n);if((oo===CV||!oo)&&clearTimeout)return(oo=clearTimeout)(n);try{oo(n)}catch{try{return oo.call(null,n)}catch{return oo.call(this,n)}}}(t)}}function RV(t,e){this.fun=t,this.array=e}function xu(){}RV.prototype.run=function(){this.fun.apply(null,this.array)};var Yxe=xu,Qxe=xu,Zxe=xu,ebe=xu,tbe=xu,nbe=xu,rbe=xu,h1=_2.performance||{},ibe=h1.now||h1.mozNow||h1.msNow||h1.oNow||h1.webkitNow||function(){return new Date().getTime()},lbe=new Date,mo={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];x2.push(new RV(t,e)),x2.length!==1||w1||OV(NV)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Yxe,addListener:Qxe,once:Zxe,off:ebe,removeListener:tbe,removeAllListeners:nbe,emit:rbe,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var n=.001*ibe.call(h1),e=Math.floor(n),n=Math.floor(n%1*1e9);return t&&(e-=t[0],(n-=t[1])<0)&&(e--,n+=1e9),[e,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-lbe)/1e3}};function uo(){}function Tn(){Tn.init.call(this)}function IV(t){return t._maxListeners===void 0?Tn.defaultMaxListeners:t._maxListeners}function iq(t,e,n,r){var i,l;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(i=t._events)?(i.newListener&&(t.emit("newListener",e,n.listener||n),i=t._events),l=i[e]):(i=t._events=new uo,t._eventsCount=0),l?(typeof l=="function"?l=i[e]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),!l.warned&&(r=IV(t))&&0<r&&l.length>r&&(l.warned=!0,(r=new Error("Possible EventEm Line truncated
\r\xA0`,cq="()[]{}%*-+~/#,:|.<>=!",BV="string",MV="whitespace",UV="data",jV="block-start",$V="block-end",HV="variable-start",qV="variable-end",VV="comment",zV="left-paren",GV="right-paren",KV="left-bracket",WV="right-bracket",JV="left-curly",XV="right-curly",YV="operator",QV="comma",ZV="colon",ez="tilde",tz="pipe",nz="float",rz="boolean",xb="none",iz="symbol",lz="regex";function pl(t,e,n,r){return{type:t,value:e,lineno:n,colno:r}}var fbe=function(){function t(n,r){this.str=n,this.index=0,this.len=n.length,this.lineno=0,this.colno=0,this.in_code=!1,n=(r=r||{}).tags||{},this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!r.trimBlocks,this.lstripBlocks=!!r.lstripBlocks}var e=t.prototype;return e.nextToken=function(){var n=this.lineno,r=this.colno;if(this.in_code){var i=this.current();if(this.isFinished())return null;if(i==='"'||i==="'")return pl(BV,this._parseString(i),n,r);if(h=this._extract(uq))return pl(MV,h,n,r);if(h=(h=this._extractString(this.tags.BLOCK_END))||this._extractString("-"+this.tags.BLOCK_END))return this.in_code=!1,this.trimBlocks&&((i=this.current())===`
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},$q={};function Hq(t,e){var n=e.getSiblings(t);return n.length<=1||(t=n.indexOf(t))<0||t===n.length-1?[]:n.slice(t+1).filter(e.isTag)}function lb(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Fx=(t,e,n,r,i)=>{let l=i(e,lb(n),r);return l===jt.trueFunc?t:l===jt.falseFunc?jt.falseFunc:s=>l(s)&&t(s)},Bx={is:Fx,matches:Fx,where:Fx,not(t,e,n,r,i){let l=i(e,lb(n),r);return l===jt.falseFunc?t:l===jt.trueFunc?jt.falseFunc:s=>!l(s)&&t(s)},has(t,e,n,r,i){let l=n.adapter,s=lb(n),a=(s.relativeSelector=!0,e.some(c=>c.some(rb))?[$q]:void 0),o=i(e,s,a);if(o===jt.falseFunc)return jt.falseFunc;let u=function(c,f){return c===jt.falseFunc?jt.falseFunc:d=>f.isTag(d)&&c(d)}(o,l);if(a&&o!==jt.trueFunc){let{shouldTestNextSiblings:c=!1}=o;return h=>{if(!t(h))return!1;a[0]=h;var d=l.getChildren(h),h=c?[...d,...Hq(h,l)]:d;return l.existsOne(u,h)}}return c=>t(c)&&l.existsOne(u,l.getChildren(c))}};function Mx(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function IEe(t,e,n,r,i){let{adapter:l,equals:s}=n;switch(e.type){case dt.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case dt.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case dt.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),AEe[e.action](t,e,n);case dt.Pseudo:return function(a,o,u,c,f){let{name:d,data:h}=o;if(Array.isArray(h)){if(d in Bx)return Bx[d](a,h,u,c,f);throw new Error(`Unknown pseudo-class :${d}(${h})`)}let m=(o=u.pseudos)==null?void 0:o[d],x=typeof m=="string"?m:NEe[d];if(typeof x=="string"){if(h!=null)throw new Error(`Pseudo ${d} doesn't have any arguments`);let b=Uf(x);return Bx.is(a,b,u,c,f)}if(typeof m=="function")return CH(m,d,h,1),b=>m(b,h)&&a(b);if(d in ib)return ib[d](a,h,u,c);if(d in AH){let b=AH[d];return CH(b,d,h,2),_=>b(_,u,h)&&a(_)}throw new Error("Unknown pseudo-class :"+d)}(t,e,n,r,i);case dt.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let a=e.name;return n.xmlMode&&!n.lowerCaseTags||(a=a.toLowerCase()),function(o){return l.getName(o)===a&&t(o)}}case dt.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let u=o;for(;u=Mx(u,l);)if(t(u))return!0;return!1};let a=new WeakSet;return function(o){let u=o;for(;u=Mx(u,l);)if(!a.has(u)){if(l.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(a){let o=a;do if(t(o))return!0;while(o=Mx(o,l));return!1};case dt.Parent:return function(a){return l.getChildren(a).some(o=>l.isTag(o)&&t(o))};case dt.Child:return function(a){return(a=l.getParent(a))!=null&&l.isTag(a)&&t(a)};case dt.Sibling:return function(a){var o=l.getSiblings(a);for(let c=0;c<o.length;c++){var u=o[c];if(s(a,u))break;if(l.isTag(u)&&t(u))return!0}return!1};case dt.Adjacent:return l.prevElementSibling?function(a){return(a=l.prevElementSibling(a))!=null&&t(a)}:function(a){var o=l.getSiblings(a);let u;for(let f=0;f<o.length;f++){var c=o[f];if(s(a,c))break;l.isTag(c)&&(u=c)}return!!u&&t(u)};case dt.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function qq(t){return t.type===dt.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(qq)))}var REe={type:dt.Descendant},DEe={type:"_flexibleDescendant"},kEe={type:dt.Pseudo,name:"scope",data:null};function Vq(t,e,n){t.forEach(wEe),n=(s=e.context)!=null?s:n;let r=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:o},u){var c=!(u==null||!u.every(f=>{var d=o.isTag(f)&&o.getParent(f);return f===$q||d&&o.isTag(d)}));for(let f of a){if(!(0<f.length&&rb(f[0])&&f[0].type!==dt.Descendant)){if(!c||f.some(qq))continue;f.unshift(REe)}f.unshift(kEe)}})(t,e,i);else if(t.some(a=>0<a.length&&rb(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let l=!1;var s=t.map(a=>{if(2<=a.length){let[o,u]=a;o.type===dt.Pseudo&&o.name==="scope"&&(r&&u.type===dt.D Line truncated
`)}}):{name:r,value:i.replace(NH,`\r
`)}}).toArray()}}),S5=function(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(var r=0;r<t.length;r++)this[r]=t[r];this.length=t.length}},Bb=(S5.prototype.cheerio="[cheerio object]",S5.prototype.splice=Array.prototype.splice,S5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(S5.prototype,yEe,YEe,rxe,ixe,sxe),function(t,e){return(Bb=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){n.__proto__=r}:function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}))(t,e)}),axe=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Bb(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},T5=function(){return(T5=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},oxe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Er="\uFFFD",IH=(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(H=H||{}),"--"),RH="[CDATA[",DH="doctype",u1="script",uxe="public",cxe="system";function rV(t){return 55296<=t&&t<=57343}function iV(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function lV(t){return 64976<=t&&t<=65007||oxe.has(t)}(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comm Line truncated
`,this.firstUpdate&&(k+=" "),this.message=k+(this.message||""),this.firstUpdate=!1,this},g}function u(_){return n.toString.call(_)==="[object Function]"}function c(_){return n.toString.call(_)==="[object Array]"}function f(_){return n.toString.call(_)==="[object String]"}function d(_){return n.toString.call(_)==="[object Object]"}function h(_){var E=function(v){return v?typeof v=="string"?v.split("."):[v]:[]}(_);return function(v){for(var g=v,S=0;S<E.length;S++){var A=E[S];if(!s(g,A))return;g=g[A]}return g}}function m(_){return Array.prototype.slice.call(_)}function x(_,E,v){return Array.prototype.indexOf.call(_||[],E,v)}function b(_){var E,v=[];for(E in _)s(_,E)&&v.push(E);return v}l.hasOwnProp=s,l._prettifyError=function(_,E,v){return(v=v.Update?v:new l.TemplateError(v)).Update(_),E||(_=v,(v=new Error(_.message)).name=_.name),v},Object.setPrototypeOf?Object.setPrototypeOf(o.prototype,Error.prototype):o.prototype=Object.create(Error.prototype,{constructor:{value:o}}),l.TemplateError=o,l.escape=function(_){return _.replace(i,a)},l.isFunction=u,l.isArray=c,l.isString=f,l.isObject=d,l.getAttrGetter=h,l.groupBy=function(_,E,v){for(var g={},S=u(E)?E:h(E),A=0;A<_.length;A++){var C=_[A],N=S(C,A);if(N===void 0&&v===!0)throw new TypeError('groupby: attribute "'+E+'" resolved to undefined');(g[N]||(g[N]=[])).push(C)}return g},l.toArray=m,l.without=function(_){var E=[];if(_)for(var v=_.length,g=m(arguments).slice(1),S=-1;++S<v;)x(g,_[S])===-1&&E.push(_[S]);return E},l.repeat=function(_,E){for(var v="",g=0;g<E;g++)v+=_;return v},l.each=function(_,E,v){if(_!=null){if(e.forEach&&_.forEach===e.forEach)_.forEach(E,v);else if(_.length===+_.length)for(var g=0,S=_.length;g<S;g++)E.call(v,_[g],g,_)}},l.map=function(_,E){var v=[];if(_!=null){if(e.map&&_.map===e.map)return _.map(E);for(var g=0;g<_.length;g++)v[v.length]=E(_[g],g);_.length===+_.length&&(v.length=_.length)}return v},l.asyncIter=function(_,E,v){var g=-1;(function S(){++g<_.length?E(_[g],g,S,v):v()})()},l.asyncFor=function(_,E,v){var g=b(_||{}),S=g.length,A=-1;(function C(){var N=g[++A];A<S?E(N,_[N],A,S,C):v()})()},l.indexOf=x,l.keys=b,l._entries=function(_){return b(_).map(function(E){return[E,_[E]]})},l._values=function(_){return b(_).map(function(E){return _[E]})},l._assign=l.extend=function(_,E){return _=_||{},b(E).forEach(function(v){_[v]=E[v]}),_},l.inOperator=function(_,E){if(c(E)||f(E))return E.indexOf(_)!==-1;if(d(E))return _ in E;throw new Error('Cannot use "in" operator to search for "'+_+'" in unexpected types.')}});function IV(){throw new Error("setTimeout has not been defined")}function RV(){throw new Error("clearTimeout has not been defined")}var oo=IV,uo=RV;function kV(t){if(oo===setTimeout)return setTimeout(t,0);if((oo===IV||!oo)&&setTimeout)return(oo=setTimeout)(t,0);try{return oo(t,0)}catch{try{return oo.call(null,t,0)}catch{return oo.call(this,t,0)}}}typeof E2.setTimeout=="function"&&(oo=setTimeout),typeof E2.clearTimeout=="function"&&(uo=clearTimeout);var gu,b2=[],T1=!1,_f=-1;function abe(){T1&&gu&&(T1=!1,gu.length?b2=gu.concat(b2):_f=-1,b2.length)&&PV()}function PV(){if(!T1){var t=kV(abe);T1=!0;for(var e=b2.length;e;){for(gu=b2,b2=[];++_f<e;)gu&&gu[_f].run();_f=-1,e=b2.length}gu=null,T1=!1,function(n){if(uo===clearTimeout)return clearTimeout(n);if((uo===RV||!uo)&&clearTimeout)return(uo=clearTimeout)(n);try{uo(n)}catch{try{return uo.call(null,n)}catch{return uo.call(this,n)}}}(t)}}function LV(t,e){this.fun=t,this.array=e}function wu(){}LV.prototype.run=function(){this.fun.apply(null,this.array)};var obe=wu,ube=wu,cbe=wu,fbe=wu,pbe=wu,hbe=wu,dbe=wu,m1=E2.performance||{},mbe=m1.now||m1.mozNow||m1.msNow||m1.oNow||m1.webkitNow||function(){return new Date().getTime()},ybe=new Date,yo={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];b2.push(new LV(t,e)),b2.length!==1||T1||kV(PV)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:obe,addListener:ube,once:cbe,off:fbe,removeListener:pbe,removeAllListeners:hbe,emit:dbe,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var n=.001*mbe.call(m1),e=Math.floor(n),n=Math.floor(n%1*1e9);return t&&(e-=t[0],(n-=t[1])<0)&&(e--,n+=1e9),[e,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ybe)/1e3}};function co(){}function Tn(){Tn.init.call(this)}function FV(t){return t._maxListeners===void 0?Tn.defaultMaxListeners:t._maxListeners}function oq(t,e,n,r){var i,l;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(i=t._events)?(i.newListener&&(t.emit("newListener",e,n.listener||n),i=t._events),l=i[e]):(i=t._events=new co,t._eventsCount=0),l?(typeof l=="function"?l=i[e]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),!l.warned&&(r=FV(t))&&0<r&&l.length>r&&(l.warned=!0,(r=new Error("Possible EventEm Line truncated
\r\xA0`,dq="()[]{}%*-+~/#,:|.<>=!",$V="string",HV="whitespace",qV="data",VV="block-start",zV="block-end",GV="variable-start",KV="variable-end",JV="comment",WV="left-paren",XV="right-paren",YV="left-bracket",QV="right-bracket",ZV="left-curly",ez="right-curly",tz="operator",nz="comma",rz="colon",iz="tilde",lz="pipe",sz="float",az="boolean",wb="none",oz="symbol",uz="regex";function dl(t,e,n,r){return{type:t,value:e,lineno:n,colno:r}}var bbe=function(){function t(n,r){this.str=n,this.index=0,this.len=n.length,this.lineno=0,this.colno=0,this.in_code=!1,n=(r=r||{}).tags||{},this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!r.trimBlocks,this.lstripBlocks=!!r.lstripBlocks}var e=t.prototype;return e.nextToken=function(){var n=this.lineno,r=this.colno;if(this.in_code){var i=this.current();if(this.isFinished())return null;if(i==='"'||i==="'")return dl($V,this._parseString(i),n,r);if(h=this._extract(hq))return dl(HV,h,n,r);if(h=(h=this._extractString(this.tags.BLOCK_END))||this._extractString("-"+this.tags.BLOCK_END))return this.in_code=!1,this.trimBlocks&&((i=this.current())===`
`?this.forward():i==="\r"&&(this.forward(),(i=this.current())===`
`?this.forward():this.back())),pl($V,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,pl(qV,h,n,r);if(i==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var l="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}l+=this.current(),this.forward()}for(var s=["g","i","m","y"],a="";!this.isFinished()&&s.indexOf(this.current())!==-1;)a+=this.current(),this.forward();return pl(lz,{body:l,flags:a},n,r)}if(cq.indexOf(i)!==-1){this.forward();var o,u=["==","===","!=","!==","<=",">=","//","**"],c=i+this.current();switch(je.indexOf(u,c)!==-1&&(this.forward(),je.indexOf(u,(i=c)+this.current())!==-1)&&(i=c+this.current(),this.forward()),i){case"(":o=zV;break;case")":o=GV;break;case"[":o=KV;break;case"]":o=WV;break;case"{":o=JV;break;case"}":o=XV;break;case",":o=QV;break;case":":o=ZV;break;case"~":o=ez;break;case"|":o=tz;break;default:o=YV}return pl(o,i,n,r)}if((h=this._extractUntil(uq+cq)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),u=this._extract("0123456789"),pl(nz,h+"."+u,n,r)):pl("int",h,n,r);if(h.match(/^(true|false)$/))return pl(rz,h,n,r);if(h==="none"||h==="null")return pl(xb,h,n,r);if(h)return pl(iz,h,n,r);throw new Error("Unexpected value while parsing: "+h)}var f,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(h=(h=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,pl(jV,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,pl(HV,h,n,r);var h="",m=!1;for(this._matches(this.tags.COMMENT_START)&&(m=!0,h=this._extractString(this.tags.COMMENT_START));(f=this._extractUntil(d))!==null;){if(h+=f,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!m){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=h.length){var x=h.slice(-this.colno);if(/^\s+$/.test(x)&&!(h=h.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!m)throw new Error("unexpected end of comment");h+=this._extractString(this.tags.COMMENT_END);break}h+=this.current(),this.forward()}if(f===null&&m)throw new Error("expected end of comment, got end of file");return pl(m?VV:UV,h,n,r)},e._parseString=function(n){this.forward();for(var r="";!this.isFinished()&&this.current()!==n;){var i=this.current();if(i==="\\")switch(this.forward(),this.current()){case"n":r+=`
`?this.forward():this.back())),dl(zV,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,dl(KV,h,n,r);if(i==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var l="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}l+=this.current(),this.forward()}for(var s=["g","i","m","y"],a="";!this.isFinished()&&s.indexOf(this.current())!==-1;)a+=this.current(),this.forward();return dl(uz,{body:l,flags:a},n,r)}if(dq.indexOf(i)!==-1){this.forward();var o,u=["==","===","!=","!==","<=",">=","//","**"],c=i+this.current();switch(je.indexOf(u,c)!==-1&&(this.forward(),je.indexOf(u,(i=c)+this.current())!==-1)&&(i=c+this.current(),this.forward()),i){case"(":o=WV;break;case")":o=XV;break;case"[":o=YV;break;case"]":o=QV;break;case"{":o=ZV;break;case"}":o=ez;break;case",":o=nz;break;case":":o=rz;break;case"~":o=iz;break;case"|":o=lz;break;default:o=tz}return dl(o,i,n,r)}if((h=this._extractUntil(hq+dq)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),u=this._extract("0123456789"),dl(sz,h+"."+u,n,r)):dl("int",h,n,r);if(h.match(/^(true|false)$/))return dl(az,h,n,r);if(h==="none"||h==="null")return dl(wb,h,n,r);if(h)return dl(oz,h,n,r);throw new Error("Unexpected value while parsing: "+h)}var f,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(h=(h=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,dl(VV,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,dl(GV,h,n,r);var h="",m=!1;for(this._matches(this.tags.COMMENT_START)&&(m=!0,h=this._extractString(this.tags.COMMENT_START));(f=this._extractUntil(d))!==null;){if(h+=f,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!m){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=h.length){var x=h.slice(-this.colno);if(/^\s+$/.test(x)&&!(h=h.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!m)throw new Error("unexpected end of comment");h+=this._extractString(this.tags.COMMENT_END);break}h+=this.current(),this.forward()}if(f===null&&m)throw new Error("expected end of comment, got end of file");return dl(m?JV:qV,h,n,r)},e._parseString=function(n){this.forward();for(var r="";!this.isFinished()&&this.current()!==n;){var i=this.current();if(i==="\\")switch(this.forward(),this.current()){case"n":r+=`
`;break;case"t":r+=" ";break;case"r":r+="\r";break;default:r+=this.current()}else r+=i;this.forward()}return this.forward(),r},e._matches=function(n){return this.index+n.length>this.len?null:this.str.slice(this.index,this.index+n.length)===n},e._extractString=function(n){return this._matches(n)?(this.forwardN(n.length),n):null},e._extractUntil=function(n){return this._extractMatching(!0,n||"")},e._extract=function(n){return this._extractMatching(!1,n)},e._extractMatching=function(n,r){if(this.isFinished())return null;var i=r.indexOf(this.current());if(n&&i===-1||!n&&i!==-1){var l=this.current();this.forward();for(var s=r.indexOf(this.current());(n&&s===-1||!n&&s!==-1)&&!this.isFinished();)l+=this.current(),this.forward(),s=r.indexOf(this.current());return l}return""},e._extractRegex=function(n){return(n=this.currentStr().match(n))?(this.forwardN(n[0].length),n):null},e.isFinished=function(){return this.index>=this.len},e.forwardN=function(n){for(var r=0;r<n;r++)this.forward()},e.forward=function(){this.index++,this.previous()===`
`?(this.lineno++,this.colno=0):this.colno++},e.backN=function(n){for(var r=0;r<n;r++)this.back()},e.back=function(){var n;this.index--,this.current()===`
`?(this.lineno--,n=this.src.lastIndexOf(`
`,this.index-1),this.colno=n===-1?this.index:this.index-n):this.colno--},e.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},e.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},e.previous=function(){return this.str.charAt(this.index-1)},t}(),Je={lex:function(t,e){return new fbe(t,e)},TOKEN_STRING:BV,TOKEN_WHITESPACE:MV,TOKEN_DATA:UV,TOKEN_BLOCK_START:jV,TOKEN_BLOCK_END:$V,TOKEN_VARIABLE_START:HV,TOKEN_VARIABLE_END:qV,TOKEN_COMMENT:VV,TOKEN_LEFT_PAREN:zV,TOKEN_RIGHT_PAREN:GV,TOKEN_LEFT_BRACKET:KV,TOKEN_RIGHT_BRACKET:WV,TOKEN_LEFT_CURLY:JV,TOKEN_RIGHT_CURLY:XV,TOKEN_OPERATOR:YV,TOKEN_COMMA:QV,TOKEN_COLON:ZV,TOKEN_TILDE:ez,TOKEN_PIPE:tz,TOKEN_INT:"int",TOKEN_FLOAT:nz,TOKEN_BOOLEAN:rz,TOKEN_NONE:xb,TOKEN_SYMBOL:iz,TOKEN_SPECIAL:"special",TOKEN_REGEX:lz};function fq(t,e){for(var n,r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,typeof(n=function(l){if(typeof l!="object"||l===null)return l;var s=l[Symbol.toPrimitive];if(s===void 0)return String(l);if(typeof(s=s.call(l,"string"))!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}(i.key))=="symbol"?n:String(n),i)}}function Mb(t,e,n){return e&&fq(t.prototype,e),n&&fq(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sz(t,e){t.prototype=Object.create(e.prototype),az(t.prototype.constructor=t,e)}function az(t,e){return(az=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}function oz(t,e,n){n=n||{},je.keys(n).forEach(function(i){n[i]=function(l,s){return typeof l!="function"||typeof s!="function"?s:function(){var a=this.parent,o=(this.parent=l,s.apply(this,arguments));return this.parent=a,o}}(t.prototype[i],n[i])});var r=function(i){function l(){return i.apply(this,arguments)||this}return sz(l,i),Mb(l,[{key:"typename",get:function(){return e}}]),l}(t);return je._assign(r.prototype,n),r}var pbe=function(){function t(){this.init.apply(this,arguments)}return t.prototype.init=function(){},t.extend=function(e,n){return typeof e=="object"&&(n=e,e="anonymous"),oz(this,e,n)},Mb(t,[{key:"typename",get:function(){return this.constructor.name}}]),t}(),hbe=function(t){function e(){var n;return(n=t.call(this)||this).init.apply(n,arguments),n}return sz(e,t),e.prototype.init=function(){},e.extend=function(n,r){return typeof n=="object"&&(r=n,n="anonymous"),oz(this,n,r)},Mb(e,[{key:"typename",get:function(){return this.constructor.name}}]),e}(Tn),N1={Obj:pbe,EmitterObj:hbe};function pq(t,e){for(var n,r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,typeof(n=function(l){if(typeof l!="object"||l===null)return l;var s=l[Symbol.toPrimitive];if(s===void 0)return String(l);if(typeof(s=s.call(l,"string"))!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}(i.key))=="symbol"?n:String(n),i)}}function Ub(t,e,n){return e&&pq(t.prototype,e),n&&pq(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uf(t,e){t.prototype=Object.create(e.prototype),uz(t.prototype.constructor=t,e)}function uz(t,e){return(uz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}function hq(t,e,n){t instanceof e&&n.push(t),t instanceof In&&t.findAll(e,n)}var In=function(t){function e(){return t.apply(this,arguments)||this}Uf(e,t);var n=e.prototype;return n.init=function(r,i){for(var l=arguments,s=this,a=arguments.length,o=new Array(2<a?a-2:0),u=2;u<a;u++)o[u-2]=arguments[u];this.lineno=r,this.colno=i,this.fields.forEach(function(c,f){s[c]=f=(f=l[f+2])===void 0?null:f})},n.findAll=function(r,i){var l=this;return i=i||[],this instanceof Da?this.children.forEach(function(s){return hq(s,r,i)}):this.fields.forEach(function(s){return hq(l[s],r,i)}),i},n.iterFields=function(r){var i=this;this.fields.forEach(function(l){r(i[l],l)})},e}(N1.Obj),jb=function(t){function e(){return t.apply(this,arguments)||this}return Uf(e,t),Ub(e,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),e}(In),Da=function(t){function e(){return t.apply(this,arguments)||this}Uf(e,t);var n=e.prototype;return n.init=function(r,i,l){t.prototype.init.call(this,r,i,l||[])},n.addChild=function(r){this.children.push(r)},Ub(e,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),e}(In),dbe=Da.extend("Root"),cz=jb.extend("Literal"),mbe=jb.extend("Symbol"),ybe=Da.extend("Group"),gbe=Da.extend("Array"),vbe=In.extend("Pair",{fields:["key","value"]}),fz=Da.extend("Dict"),_be=In.extend("LookupVal",{fields:["target","val"]}),pz=In.extend("If",{fields:["cond","body","else_"]}),Ebe=pz.extend("IfAsync"),xbe=In.extend("InlineIf",{fields:["cond","body","else_"]}),$b=In.extend("For",{fields:["arr","name","body","else_"]}),bbe=$b.extend("AsyncEach"),wbe=$b.extend("AsyncAll"),hz= Line truncated
`,this.index-1),this.colno=n===-1?this.index:this.index-n):this.colno--},e.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},e.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},e.previous=function(){return this.str.charAt(this.index-1)},t}(),Xe={lex:function(t,e){return new bbe(t,e)},TOKEN_STRING:$V,TOKEN_WHITESPACE:HV,TOKEN_DATA:qV,TOKEN_BLOCK_START:VV,TOKEN_BLOCK_END:zV,TOKEN_VARIABLE_START:GV,TOKEN_VARIABLE_END:KV,TOKEN_COMMENT:JV,TOKEN_LEFT_PAREN:WV,TOKEN_RIGHT_PAREN:XV,TOKEN_LEFT_BRACKET:YV,TOKEN_RIGHT_BRACKET:QV,TOKEN_LEFT_CURLY:ZV,TOKEN_RIGHT_CURLY:ez,TOKEN_OPERATOR:tz,TOKEN_COMMA:nz,TOKEN_COLON:rz,TOKEN_TILDE:iz,TOKEN_PIPE:lz,TOKEN_INT:"int",TOKEN_FLOAT:sz,TOKEN_BOOLEAN:az,TOKEN_NONE:wb,TOKEN_SYMBOL:oz,TOKEN_SPECIAL:"special",TOKEN_REGEX:uz};function mq(t,e){for(var n,r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,typeof(n=function(l){if(typeof l!="object"||l===null)return l;var s=l[Symbol.toPrimitive];if(s===void 0)return String(l);if(typeof(s=s.call(l,"string"))!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}(i.key))=="symbol"?n:String(n),i)}}function jb(t,e,n){return e&&mq(t.prototype,e),n&&mq(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function cz(t,e){t.prototype=Object.create(e.prototype),fz(t.prototype.constructor=t,e)}function fz(t,e){return(fz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}function pz(t,e,n){n=n||{},je.keys(n).forEach(function(i){n[i]=function(l,s){return typeof l!="function"||typeof s!="function"?s:function(){var a=this.parent,o=(this.parent=l,s.apply(this,arguments));return this.parent=a,o}}(t.prototype[i],n[i])});var r=function(i){function l(){return i.apply(this,arguments)||this}return cz(l,i),jb(l,[{key:"typename",get:function(){return e}}]),l}(t);return je._assign(r.prototype,n),r}var wbe=function(){function t(){this.init.apply(this,arguments)}return t.prototype.init=function(){},t.extend=function(e,n){return typeof e=="object"&&(n=e,e="anonymous"),pz(this,e,n)},jb(t,[{key:"typename",get:function(){return this.constructor.name}}]),t}(),Sbe=function(t){function e(){var n;return(n=t.call(this)||this).init.apply(n,arguments),n}return cz(e,t),e.prototype.init=function(){},e.extend=function(n,r){return typeof n=="object"&&(r=n,n="anonymous"),pz(this,n,r)},jb(e,[{key:"typename",get:function(){return this.constructor.name}}]),e}(Tn),R1={Obj:wbe,EmitterObj:Sbe};function yq(t,e){for(var n,r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,typeof(n=function(l){if(typeof l!="object"||l===null)return l;var s=l[Symbol.toPrimitive];if(s===void 0)return String(l);if(typeof(s=s.call(l,"string"))!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}(i.key))=="symbol"?n:String(n),i)}}function $b(t,e,n){return e&&yq(t.prototype,e),n&&yq(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function $f(t,e){t.prototype=Object.create(e.prototype),hz(t.prototype.constructor=t,e)}function hz(t,e){return(hz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}function gq(t,e,n){t instanceof e&&n.push(t),t instanceof Dn&&t.findAll(e,n)}var Dn=function(t){function e(){return t.apply(this,arguments)||this}$f(e,t);var n=e.prototype;return n.init=function(r,i){for(var l=arguments,s=this,a=arguments.length,o=new Array(2<a?a-2:0),u=2;u<a;u++)o[u-2]=arguments[u];this.lineno=r,this.colno=i,this.fields.forEach(function(c,f){s[c]=f=(f=l[f+2])===void 0?null:f})},n.findAll=function(r,i){var l=this;return i=i||[],this instanceof ka?this.children.forEach(function(s){return gq(s,r,i)}):this.fields.forEach(function(s){return gq(l[s],r,i)}),i},n.iterFields=function(r){var i=this;this.fields.forEach(function(l){r(i[l],l)})},e}(R1.Obj),Hb=function(t){function e(){return t.apply(this,arguments)||this}return $f(e,t),$b(e,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),e}(Dn),ka=function(t){function e(){return t.apply(this,arguments)||this}$f(e,t);var n=e.prototype;return n.init=function(r,i,l){t.prototype.init.call(this,r,i,l||[])},n.addChild=function(r){this.children.push(r)},$b(e,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),e}(Dn),Tbe=ka.extend("Root"),dz=Hb.extend("Literal"),Abe=Hb.extend("Symbol"),Cbe=ka.extend("Group"),Obe=ka.extend("Array"),Nbe=Dn.extend("Pair",{fields:["key","value"]}),mz=ka.extend("Dict"),Ibe=Dn.extend("LookupVal",{fields:["target","val"]}),yz=Dn.extend("If",{fields:["cond","body","else_"]}),Rbe=yz.extend("IfAsync"),Dbe=Dn.extend("InlineIf",{fields:["cond","body","else_"]}),qb=Dn.extend("For",{fields:["arr","name","body","else_"]}),kbe=qb.extend("AsyncEach"),Pbe=qb.extend("AsyncAll"),gz= Line truncated
`);r.forEach(function(i,l){i&&(n&&0<l||!n)&&process.stdout.write(" ".repeat(e)),l=l===r.length-1?"":`
`,process.stdout.write(i+l)})}var te={Node:In,Root:dbe,NodeList:Da,Value:jb,Literal:cz,Symbol:mbe,Group:ybe,Array:gbe,Pair:vbe,Dict:fz,Output:Fbe,Capture:Bbe,TemplateData:Mbe,If:pz,IfAsync:Ebe,InlineIf:xbe,For:$b,AsyncEach:bbe,AsyncAll:wbe,Macro:hz,Caller:Sbe,Import:Tbe,FromImport:Abe,FunCall:dz,Filter:mz,FilterAsync:Cbe,KeywordArgs:Obe,Block:Nbe,Super:Rbe,Extends:Ibe,Include:Dbe,Set:kbe,Switch:Pbe,Case:Lbe,LookupVal:_be,BinOp:Jl,In:Ube,Is:jbe,Or:$be,And:Hbe,Not:qbe,Add:Vbe,Concat:zbe,Sub:Gbe,Mul:Kbe,Div:Wbe,FloorDiv:Jbe,Mod:Xbe,Pow:Ybe,Neg:Qbe,Pos:Zbe,Compare:ewe,CompareOperand:twe,CallExtension:bb,CallExtensionAsync:nwe,printNodes:function t(e,n){var r,i;n=n||0,u1(e.typename+": ",n),e instanceof Da?(u1(`
`),e.children.forEach(function(l){t(l,n+2)})):e instanceof bb?(u1(e.extName+"."+e.prop+`
`),e.args&&t(e.args,n+2),e.contentArgs&&e.contentArgs.forEach(function(l){t(l,n+2)})):(r=[],i=null,e.iterFields(function(l,s){l instanceof In?r.push([s,l]):(i=i||{})[s]=l}),i?u1(JSON.stringify(i,null,2)+`
`,null,!0):u1(`
`),r.forEach(function(a){var s=a[0],a=a[1];u1("["+s+"] =>",n+2),t(a,n+4)}))}};function yz(t,e){return(yz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}te.Node,te.Root,te.NodeList,te.Value,te.Literal,te.Group,te.Pair,te.Dict,te.Output,te.Capture,te.TemplateData,te.If,te.IfAsync,te.InlineIf,te.For,te.AsyncEach,te.AsyncAll,te.Macro,te.Caller,te.Import,te.FromImport,te.FunCall,te.Filter,te.FilterAsync,te.KeywordArgs,te.Block,te.Super,te.Extends,te.Include,te.Switch,te.Case,te.LookupVal,te.BinOp,te.In,te.Is,te.Or,te.And,te.Not,te.Add,te.Concat,te.Sub,te.Mul,te.Div,te.FloorDiv,te.Mod,te.Pow,te.Neg,te.Pos,te.Compare,te.CompareOperand,te.CallExtension,te.CallExtensionAsync,te.printNodes;var dq=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),yz(r.prototype.constructor=r,e);var r=n.prototype;return r.init=function(i){this.tokens=i,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},r.nextToken=function(i){var l;if(this.peeked){if(i||this.peeked.type!==Je.TOKEN_WHITESPACE)return l=this.peeked,this.peeked=null,l;this.peeked=null}if(l=this.tokens.nextToken(),!i)for(;l&&l.type===Je.TOKEN_WHITESPACE;)l=this.tokens.nextToken();return l},r.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},r.pushToken=function(i){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=i},r.error=function(i,l,s){var a;return l!==void 0&&s!==void 0||(l=(a=this.peekToken()||{}).lineno,s=a.colno),l!==void 0&&(l+=1),s!==void 0&&(s+=1),new je.TemplateError(i,l,s)},r.fail=function(i,l,s){throw this.error(i,l,s)},r.skip=function(i){var l=this.nextToken();return!(!l||l.type!==i)||(this.pushToken(l),!1)},r.expect=function(i){var l=this.nextToken();return l.type!==i&&this.fail("expected "+i+", got "+l.type,l.lineno,l.colno),l},r.skipValue=function(i,l){var s=this.nextToken();return!(!s||s.type!==i||s.value!==l)||(this.pushToken(s),!1)},r.skipSymbol=function(i){return this.skipValue(Je.TOKEN_SYMBOL,i)},r.advanceAfterBlockEnd=function(i){var l;return i||((l=this.peekToken())||this.fail("unexpected end of file"),l.type!==Je.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),i=this.nextToken().value),(l=this.nextToken())&&l.type===Je.TOKEN_BLOCK_END?l.value.charAt(0)==="-"&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+i+" statement"),l},r.advanceAfterVariableEnd=function(){var i=this.nextToken();i&&i.type===Je.TOKEN_VARIABLE_END?this.dropLeadingWhitespace=i.value.charAt(i.value.length-this.tokens.tags.VARIABLE_END.length-1)==="-":(this.pushToken(i),this.fail("expected variable end"))},r.parseFor=function(){var i,l,s=this.peekToken();if(this.skipSymbol("for")?(i=new te.For(s.lineno,s.colno),l="endfor"):this.skipSymbol("asyncEach")?(i=new te.AsyncEach(s.lineno,s.colno),l="endeach"):this.skipSymbol("asyncAll")?(i=new te.AsyncAll(s.lineno,s.colno),l="endall"):this.fail("parseFor: expected for{Async}",s.lineno,s.colno),i.name=this.parsePrimary(),i.name instanceof te.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===Je.TOKEN_COMMA){var a=i.name;for(i.name=new te.Array(a.lineno,a.colno),i.name.addChild(a);this.skip(Je.TOKEN_COMMA);){var o=this.parsePrimary();i.name.addChild(o)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',s.lineno,s.colno),i.arr=this.parseExpression(),this.advanceAfterBlockEnd(s.value),i.body=this.parseUntilBlocks(l,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),i.else_=this.parseUntilBlocks(l)),this.advanceAfterBlockEnd(),i},r.parseMacro=function(){var i=this.peekToken(),s=(this.skipSymbol("macro")||this.fail("expected macro"),this.parsePrimary(!0)),l=this.parseSignature(),s=new te.Macro(i.lineno,i.colno,s,l);return this.advanceAfterBlockEnd(i.value),s.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),s},r.parseCall=function(){var i=this.peekToken(),o=(this.skipSymbol("call")||this.fail("expected call"),this.parseSignature(!0)||new te.NodeList),l=this.parsePrimary(),s=(this.advanceAfterBlockEnd(i.value),this.parseUntilBlocks("endcall")),a=(this.advanceAfterBlockEnd(),new te.Symbol(i.lineno,i.colno,"caller")),o=new te.Caller(i.lineno,i.colno,a,o,s);return(s=l.args.children)[s.length-1]instanceof te.KeywordArgs||s.push(new te.KeywordArgs),s[s.length-1].addChild(new te.Pair(i.lineno,i.colno,a,o)),new te.Output(i.lineno,i.colno,[l])},r.parseWithContext=function(){var i=this.peekToken(),l=null;return this.skipSymbol("with")?l=!0:this.skipSymbol("without")&&(l=!1),l===null||this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",i.lineno,i.colno),l},r.parseImport=function(){var i=this.peekToken(),a=(this.skipSymbol("import")||this.fail("parseImport: expected import",i.lineno,i.colno),this.parseExpression()),l=(th Line truncated
`,process.stdout.write(i+l)})}var te={Node:Dn,Root:Tbe,NodeList:ka,Value:Hb,Literal:dz,Symbol:Abe,Group:Cbe,Array:Obe,Pair:Nbe,Dict:mz,Output:Kbe,Capture:Jbe,TemplateData:Wbe,If:yz,IfAsync:Rbe,InlineIf:Dbe,For:qb,AsyncEach:kbe,AsyncAll:Pbe,Macro:gz,Caller:Lbe,Import:Fbe,FromImport:Bbe,FunCall:vz,Filter:_z,FilterAsync:Mbe,KeywordArgs:Ube,Block:jbe,Super:$be,Extends:Hbe,Include:qbe,Set:Vbe,Switch:zbe,Case:Gbe,LookupVal:Ibe,BinOp:Yl,In:Xbe,Is:Ybe,Or:Qbe,And:Zbe,Not:ewe,Add:twe,Concat:nwe,Sub:rwe,Mul:iwe,Div:lwe,FloorDiv:swe,Mod:awe,Pow:owe,Neg:uwe,Pos:cwe,Compare:fwe,CompareOperand:pwe,CallExtension:Sb,CallExtensionAsync:hwe,printNodes:function t(e,n){var r,i;n=n||0,f1(e.typename+": ",n),e instanceof ka?(f1(`
`),e.children.forEach(function(l){t(l,n+2)})):e instanceof Sb?(f1(e.extName+"."+e.prop+`
`),e.args&&t(e.args,n+2),e.contentArgs&&e.contentArgs.forEach(function(l){t(l,n+2)})):(r=[],i=null,e.iterFields(function(l,s){l instanceof Dn?r.push([s,l]):(i=i||{})[s]=l}),i?f1(JSON.stringify(i,null,2)+`
`,null,!0):f1(`
`),r.forEach(function(a){var s=a[0],a=a[1];f1("["+s+"] =>",n+2),t(a,n+4)}))}};function Ez(t,e){return(Ez=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}te.Node,te.Root,te.NodeList,te.Value,te.Literal,te.Group,te.Pair,te.Dict,te.Output,te.Capture,te.TemplateData,te.If,te.IfAsync,te.InlineIf,te.For,te.AsyncEach,te.AsyncAll,te.Macro,te.Caller,te.Import,te.FromImport,te.FunCall,te.Filter,te.FilterAsync,te.KeywordArgs,te.Block,te.Super,te.Extends,te.Include,te.Switch,te.Case,te.LookupVal,te.BinOp,te.In,te.Is,te.Or,te.And,te.Not,te.Add,te.Concat,te.Sub,te.Mul,te.Div,te.FloorDiv,te.Mod,te.Pow,te.Neg,te.Pos,te.Compare,te.CompareOperand,te.CallExtension,te.CallExtensionAsync,te.printNodes;var vq=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),Ez(r.prototype.constructor=r,e);var r=n.prototype;return r.init=function(i){this.tokens=i,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},r.nextToken=function(i){var l;if(this.peeked){if(i||this.peeked.type!==Xe.TOKEN_WHITESPACE)return l=this.peeked,this.peeked=null,l;this.peeked=null}if(l=this.tokens.nextToken(),!i)for(;l&&l.type===Xe.TOKEN_WHITESPACE;)l=this.tokens.nextToken();return l},r.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},r.pushToken=function(i){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=i},r.error=function(i,l,s){var a;return l!==void 0&&s!==void 0||(l=(a=this.peekToken()||{}).lineno,s=a.colno),l!==void 0&&(l+=1),s!==void 0&&(s+=1),new je.TemplateError(i,l,s)},r.fail=function(i,l,s){throw this.error(i,l,s)},r.skip=function(i){var l=this.nextToken();return!(!l||l.type!==i)||(this.pushToken(l),!1)},r.expect=function(i){var l=this.nextToken();return l.type!==i&&this.fail("expected "+i+", got "+l.type,l.lineno,l.colno),l},r.skipValue=function(i,l){var s=this.nextToken();return!(!s||s.type!==i||s.value!==l)||(this.pushToken(s),!1)},r.skipSymbol=function(i){return this.skipValue(Xe.TOKEN_SYMBOL,i)},r.advanceAfterBlockEnd=function(i){var l;return i||((l=this.peekToken())||this.fail("unexpected end of file"),l.type!==Xe.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),i=this.nextToken().value),(l=this.nextToken())&&l.type===Xe.TOKEN_BLOCK_END?l.value.charAt(0)==="-"&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+i+" statement"),l},r.advanceAfterVariableEnd=function(){var i=this.nextToken();i&&i.type===Xe.TOKEN_VARIABLE_END?this.dropLeadingWhitespace=i.value.charAt(i.value.length-this.tokens.tags.VARIABLE_END.length-1)==="-":(this.pushToken(i),this.fail("expected variable end"))},r.parseFor=function(){var i,l,s=this.peekToken();if(this.skipSymbol("for")?(i=new te.For(s.lineno,s.colno),l="endfor"):this.skipSymbol("asyncEach")?(i=new te.AsyncEach(s.lineno,s.colno),l="endeach"):this.skipSymbol("asyncAll")?(i=new te.AsyncAll(s.lineno,s.colno),l="endall"):this.fail("parseFor: expected for{Async}",s.lineno,s.colno),i.name=this.parsePrimary(),i.name instanceof te.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===Xe.TOKEN_COMMA){var a=i.name;for(i.name=new te.Array(a.lineno,a.colno),i.name.addChild(a);this.skip(Xe.TOKEN_COMMA);){var o=this.parsePrimary();i.name.addChild(o)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',s.lineno,s.colno),i.arr=this.parseExpression(),this.advanceAfterBlockEnd(s.value),i.body=this.parseUntilBlocks(l,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),i.else_=this.parseUntilBlocks(l)),this.advanceAfterBlockEnd(),i},r.parseMacro=function(){var i=this.peekToken(),s=(this.skipSymbol("macro")||this.fail("expected macro"),this.parsePrimary(!0)),l=this.parseSignature(),s=new te.Macro(i.lineno,i.colno,s,l);return this.advanceAfterBlockEnd(i.value),s.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),s},r.parseCall=function(){var i=this.peekToken(),o=(this.skipSymbol("call")||this.fail("expected call"),this.parseSignature(!0)||new te.NodeList),l=this.parsePrimary(),s=(this.advanceAfterBlockEnd(i.value),this.parseUntilBlocks("endcall")),a=(this.advanceAfterBlockEnd(),new te.Symbol(i.lineno,i.colno,"caller")),o=new te.Caller(i.lineno,i.colno,a,o,s);return(s=l.args.children)[s.length-1]instanceof te.KeywordArgs||s.push(new te.KeywordArgs),s[s.length-1].addChild(new te.Pair(i.lineno,i.colno,a,o)),new te.Output(i.lineno,i.colno,[l])},r.parseWithContext=function(){var i=this.peekToken(),l=null;return this.skipSymbol("with")?l=!0:this.skipSymbol("without")&&(l=!1),l===null||this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",i.lineno,i.colno),l},r.parseImport=function(){var i=this.peekToken(),a=(this.skipSymbol("import")||this.fail("parseImport: expected import",i.lineno,i.colno),this.parseExpression()),l=(th Line truncated
`)},r._emitLines=function(){for(var i=this,l=arguments.length,s=new Array(l),a=0;a<l;a++)s[a]=arguments[a];s.forEach(function(o){return i._emitLine(o)})},r._emitFuncBegin=function(i,l){this.buffer="output",this._scopeClosers="",this._emitLine("function "+l+"(env, context, frame, runtime, cb) {"),this._emitLine("var lineno = "+i.lineno+";"),this._emitLine("var colno = "+i.colno+";"),this._emitLine("var "+this.buffer+' = "";'),this._emitLine("try {")},r._emitFuncEnd=function(i){i||this._emitLine("cb(null, "+this.buffer+");"),this._closeScopeLevels(),this._emitLine("} catch (e) {"),this._emitLine(" cb(runtime.handleError(e, lineno, colno));"),this._emitLine("}"),this._emitLine("}"),this.buffer=null},r._addScopeLevel=function(){this._scopeClosers+="})"},r._closeScopeLevels=function(){this._emitLine(this._scopeClosers+";"),this._scopeClosers=""},r._withScopedSyntax=function(i){var l=this._scopeClosers;this._scopeClosers="",i.call(this),this._closeScopeLevels(),this._scopeClosers=l},r._makeCallback=function(i){var l=this._tmpid();return"function("+l+(i?","+i:"")+`) {
if(`+l+") { cb("+l+"); return; }"},r._tmpid=function(){return this.lastId++,"t_"+this.lastId},r._templateName=function(){return this.templateName==null?"undefined":JSON.stringify(this.templateName)},r._compileChildren=function(i,l){var s=this;i.children.forEach(function(a){s.compile(a,l)})},r._compileAggregate=function(i,l,s,a){var o=this;s&&this._emit(s),i.children.forEach(function(u,c){0<c&&o._emit(","),o.compile(u,l)}),a&&this._emit(a)},r._compileExpression=function(i,l){this.assertType(i,te.Literal,te.Symbol,te.Group,te.Array,te.Dict,te.FunCall,te.Caller,te.Filter,te.LookupVal,te.Compare,te.InlineIf,te.In,te.Is,te.And,te.Or,te.Not,te.Add,te.Concat,te.Sub,te.Mul,te.Div,te.FloorDiv,te.Mod,te.Pow,te.Neg,te.Pos,te.Compare,te.NodeList),this.compile(i,l)},r.assertType=function(i){for(var l=arguments.length,s=new Array(1<l?l-1:0),a=1;a<l;a++)s[a-1]=arguments[a];s.some(function(o){return i instanceof o})||this.fail("assertType: invalid type: "+i.typename,i.lineno,i.colno)},r.compileCallExtension=function(i,l,s){var a=this,o=i.args,u=i.contentArgs,c=typeof i.autoescape!="boolean"||i.autoescape;s||this._emit(this.buffer+" += runtime.suppressValue("),this._emit('env.getExtension("'+i.extName+'")["'+i.prop+'"]('),this._emit("context"),(o||u)&&this._emit(","),o&&(o instanceof te.NodeList||this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"),o.children.forEach(function(f,d){a._compileExpression(f,l),d===o.children.length-1&&!u.length||a._emit(",")})),u.length&&u.forEach(function(f,d){var h;0<d&&a._emit(","),f?(a._emitLine("function(cb) {"),a._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}"),h=a._pushBuffer(),a._withScopedSyntax(function(){a.compile(f,l),a._emitLine("cb(null, "+h+");")}),a._popBuffer(),a._emitLine("return "+h+";"),a._emitLine("}")):a._emit("null")}),s?(i=this._tmpid(),this._emitLine(", "+this._makeCallback(i)),this._emitLine(this.buffer+" += runtime.suppressValue("+i+", "+c+" && env.opts.autoescape);"),this._addScopeLevel()):(this._emit(")"),this._emit(", "+c+` && env.opts.autoescape);
`))},r.compileCallExtensionAsync=function(i,l){this.compileCallExtension(i,l,!0)},r.compileNodeList=function(i,l){this._compileChildren(i,l)},r.compileLiteral=function(i){var l;typeof i.value=="string"?(l=(l=(l=(l=(l=(l=i.value.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+l+'"')):i.value===null?this._emit("null"):this._emit(i.value.toString())},r.compileSymbol=function(i,l){i=i.value,(l=l.lookup(i))?this._emit(l):this._emit('runtime.contextOrFrameLookup(context, frame, "'+i+'")')},r.compileGroup=function(i,l){this._compileAggregate(i,l,"(",")")},r.compileArray=function(i,l){this._compileAggregate(i,l,"[","]")},r.compileDict=function(i,l){this._compileAggregate(i,l,"{","}")},r.compilePair=function(a,l){var s=a.key,a=a.value;s instanceof te.Symbol?s=new te.Literal(s.lineno,s.colno,s.value):s instanceof te.Literal&&typeof s.value=="string"||this.fail("compilePair: Dict keys must be strings or names",s.lineno,s.colno),this.compile(s,l),this._emit(": "),this._compileExpression(a,l)},r.compileInlineIf=function(i,l){this._emit("("),this.compile(i.cond,l),this._emit("?"),this.compile(i.body,l),this._emit(":"),i.else_!==null?this.compile(i.else_,l):this._emit('""'),this._emit(")")},r.compileIn=function(i,l){this._emit("runtime.inOperator("),this.compile(i.left,l),this._emit(","),this.compile(i.right,l),this._emit(")")},r.compileIs=function(i,l){var s=(i.right.name||i.right).value;this._emit('env.getTest("'+s+'").call(context, '),this.compile(i.left,l),i.right.args&&(this._emit(","),this.compile(i.right.args,l)),this._emit(") === true")},r._binOpEmitter=function(i,l,s){this.compile(i.left,l),this._emit(s),this.compile(i.right,l)},r.compileOr=function(i,l){return this._binOpEmitter(i,l," || ")},r.compileAnd=function(i,l){return this._binOpEmitter(i,l," && ")},r.compileAdd=function(i,l){return this._binOpEmitter(i,l," + ")},r.compileConcat=function(i,l){return this._binOpEmitter(i,l,' + "" + ')},r.compileSub=function(i,l){return this._binOpEmitter(i,l," - ")},r.compileMul=function(i,l){return this._binOpEmitter(i,l," * ")},r.compileDiv=function(i,l){return this._binOpEmitter(i,l," / ")},r.compileMod=function(i,l){return this._binOpEmitter(i,l," % ")},r.compileNot=function(i,l){this._emit("!"),this.compile(i.target,l)},r.compileFloorDiv=function(i,l){this._emit("Math.floor("),this.compile(i.left,l),this._emit(" / "),this.compile(i.right,l),this._emit(")")},r.compilePow=function(i,l){this._emit("Math.pow("),this.compile(i.left,l),this._emit(", "),this.compile(i.right,l),this._emit(")")},r.compileNeg=function(i,l){this._emit("-"),this.compile(i.target,l)},r.compilePos=function(i,l){this._emit("+"),this.compile(i.target,l)},r.compileCompare=function(i,l){var s=this;this.compile(i.expr,l),i.ops.forEach(function(a){s._emit(" "+cwe[a.type]+" "),s.compile(a.expr,l)})},r.compileLookupVal=function(i,l){this._emit("runtime.memberLookup(("),this._compileExpression(i.target,l),this._emit("),"),this._compileExpression(i.val,l),this._emit(")")},r._getNodeName=function(i){switch(i.typename){case"Symbol":return i.value;case"FunCall":return"the return value of ("+this._getNodeName(i.name)+")";case"LookupVal":return this._getNodeName(i.target)+'["'+this._getNodeName(i.val)+'"]';case"Literal":return i.value.toString();default:return"--expression--"}},r.compileFunCall=function(i,l){this._emit("(lineno = "+i.lineno+", colno = "+i.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(i.name,l),this._emit(', "'+this._getNodeName(i.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(i.args,l,"[","])"),this._emit(")")},r.compileFilter=function(i,l){var s=i.name;this.assertType(s,te.Symbol),this._emit('env.getFilter("'+s.value+'").call(context, '),this._compileAggregate(i.args,l),this._emit(")")},r.compileFilterAsync=function(i,l){var s=i.name,a=i.symbol.value;this.assertType(s,te.Symbol),l.set(a,a),this._emit('env.getFilter("'+s.value+'").call(context, '),this._compileAggregate(i.args,l),this._emitLine(", "+this._makeCallback(a)),this._addScopeLevel()},r.compileKeywordArgs=function(i,l){this._emit("runtime.makeKeywordArgs("),this.compileDict(i,l),this._emit(")")},r.compileSet=function(i,l){var s=this,a=[];i.targets.forEach(function(o){o=o.value,(o=l.lookup(o))==null&&(o=s._tmpid(),s._emitLine("var "+o+";")),a.push(o)}),i.value?(this._emit(a.join(" = ")+" = "),this._compileExpression(i.value,l)):(this._emit(a.join(" = ")+" = "),this.compile(i.body,l)),this._emitLine(";"),i.targets.forEach(function(o,u){o=o.value,s._emitLine('frame.set("'+o+'", '+(u=a[u])+", true);"),s._emitLine("if(frame.topLevel) {"),s._emitLine('context.setVariable("'+o+'", '+u+");"),s._emitLine("}"),o.charAt(0)!=="_"&&(s._emitLine("if(frame.topLevel) {"),s._emitLine('context.addExport("'+o+'", '+u+");"),s._emitLine("}"))})},r.compileSwitch=function(i,l){var s=this;this._emit("switch ("),this.compile(i.expr,l),this._emit(") {"),i.cases.forEac Line truncated
`))},r.compileCallExtensionAsync=function(i,l){this.compileCallExtension(i,l,!0)},r.compileNodeList=function(i,l){this._compileChildren(i,l)},r.compileLiteral=function(i){var l;typeof i.value=="string"?(l=(l=(l=(l=(l=(l=i.value.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+l+'"')):i.value===null?this._emit("null"):this._emit(i.value.toString())},r.compileSymbol=function(i,l){i=i.value,(l=l.lookup(i))?this._emit(l):this._emit('runtime.contextOrFrameLookup(context, frame, "'+i+'")')},r.compileGroup=function(i,l){this._compileAggregate(i,l,"(",")")},r.compileArray=function(i,l){this._compileAggregate(i,l,"[","]")},r.compileDict=function(i,l){this._compileAggregate(i,l,"{","}")},r.compilePair=function(a,l){var s=a.key,a=a.value;s instanceof te.Symbol?s=new te.Literal(s.lineno,s.colno,s.value):s instanceof te.Literal&&typeof s.value=="string"||this.fail("compilePair: Dict keys must be strings or names",s.lineno,s.colno),this.compile(s,l),this._emit(": "),this._compileExpression(a,l)},r.compileInlineIf=function(i,l){this._emit("("),this.compile(i.cond,l),this._emit("?"),this.compile(i.body,l),this._emit(":"),i.else_!==null?this.compile(i.else_,l):this._emit('""'),this._emit(")")},r.compileIn=function(i,l){this._emit("runtime.inOperator("),this.compile(i.left,l),this._emit(","),this.compile(i.right,l),this._emit(")")},r.compileIs=function(i,l){var s=(i.right.name||i.right).value;this._emit('env.getTest("'+s+'").call(context, '),this.compile(i.left,l),i.right.args&&(this._emit(","),this.compile(i.right.args,l)),this._emit(") === true")},r._binOpEmitter=function(i,l,s){this.compile(i.left,l),this._emit(s),this.compile(i.right,l)},r.compileOr=function(i,l){return this._binOpEmitter(i,l," || ")},r.compileAnd=function(i,l){return this._binOpEmitter(i,l," && ")},r.compileAdd=function(i,l){return this._binOpEmitter(i,l," + ")},r.compileConcat=function(i,l){return this._binOpEmitter(i,l,' + "" + ')},r.compileSub=function(i,l){return this._binOpEmitter(i,l," - ")},r.compileMul=function(i,l){return this._binOpEmitter(i,l," * ")},r.compileDiv=function(i,l){return this._binOpEmitter(i,l," / ")},r.compileMod=function(i,l){return this._binOpEmitter(i,l," % ")},r.compileNot=function(i,l){this._emit("!"),this.compile(i.target,l)},r.compileFloorDiv=function(i,l){this._emit("Math.floor("),this.compile(i.left,l),this._emit(" / "),this.compile(i.right,l),this._emit(")")},r.compilePow=function(i,l){this._emit("Math.pow("),this.compile(i.left,l),this._emit(", "),this.compile(i.right,l),this._emit(")")},r.compileNeg=function(i,l){this._emit("-"),this.compile(i.target,l)},r.compilePos=function(i,l){this._emit("+"),this.compile(i.target,l)},r.compileCompare=function(i,l){var s=this;this.compile(i.expr,l),i.ops.forEach(function(a){s._emit(" "+xwe[a.type]+" "),s.compile(a.expr,l)})},r.compileLookupVal=function(i,l){this._emit("runtime.memberLookup(("),this._compileExpression(i.target,l),this._emit("),"),this._compileExpression(i.val,l),this._emit(")")},r._getNodeName=function(i){switch(i.typename){case"Symbol":return i.value;case"FunCall":return"the return value of ("+this._getNodeName(i.name)+")";case"LookupVal":return this._getNodeName(i.target)+'["'+this._getNodeName(i.val)+'"]';case"Literal":return i.value.toString();default:return"--expression--"}},r.compileFunCall=function(i,l){this._emit("(lineno = "+i.lineno+", colno = "+i.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(i.name,l),this._emit(', "'+this._getNodeName(i.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(i.args,l,"[","])"),this._emit(")")},r.compileFilter=function(i,l){var s=i.name;this.assertType(s,te.Symbol),this._emit('env.getFilter("'+s.value+'").call(context, '),this._compileAggregate(i.args,l),this._emit(")")},r.compileFilterAsync=function(i,l){var s=i.name,a=i.symbol.value;this.assertType(s,te.Symbol),l.set(a,a),this._emit('env.getFilter("'+s.value+'").call(context, '),this._compileAggregate(i.args,l),this._emitLine(", "+this._makeCallback(a)),this._addScopeLevel()},r.compileKeywordArgs=function(i,l){this._emit("runtime.makeKeywordArgs("),this.compileDict(i,l),this._emit(")")},r.compileSet=function(i,l){var s=this,a=[];i.targets.forEach(function(o){o=o.value,(o=l.lookup(o))==null&&(o=s._tmpid(),s._emitLine("var "+o+";")),a.push(o)}),i.value?(this._emit(a.join(" = ")+" = "),this._compileExpression(i.value,l)):(this._emit(a.join(" = ")+" = "),this.compile(i.body,l)),this._emitLine(";"),i.targets.forEach(function(o,u){o=o.value,s._emitLine('frame.set("'+o+'", '+(u=a[u])+", true);"),s._emitLine("if(frame.topLevel) {"),s._emitLine('context.setVariable("'+o+'", '+u+");"),s._emitLine("}"),o.charAt(0)!=="_"&&(s._emitLine("if(frame.topLevel) {"),s._emitLine('context.addExport("'+o+'", '+u+");"),s._emitLine("}"))})},r.compileSwitch=function(i,l){var s=this;this._emit("switch ("),this.compile(i.expr,l),this._emit(") {"),i.cases.forEac Line truncated
else {`),this._withScopedSyntax(function(){a.compile(i.else_,l),s&&a._emit("cb()")})):s&&(this._emitLine(`}
else {`),this._emit("cb()")),this._emitLine("}")},r.compileIfAsync=function(i,l){this._emit("(function(cb) {"),this.compileIf(i,l,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},r._emitLoopBindings=function(i,l,s,a){var o=this;[{name:"index",val:s+" + 1"},{name:"index0",val:s},{name:"revindex",val:a+" - "+s},{name:"revindex0",val:a+" - "+s+" - 1"},{name:"first",val:s+" === 0"},{name:"last",val:s+" === "+a+" - 1"},{name:"length",val:a}].forEach(function(u){o._emitLine('frame.set("loop.'+u.name+'", '+u.val+");")})},r.compileFor=function(i,l){var s,a,o,u,c=this,f=this._tmpid(),d=this._tmpid(),h=this._tmpid();l=l.push(),this._emitLine("frame = frame.push();"),this._emit("var "+h+" = "),this._compileExpression(i.arr,l),this._emitLine(";"),this._emit("if("+h+") {"),this._emitLine(h+" = runtime.fromIterator("+h+");"),i.name instanceof te.Array?(this._emitLine("var "+f+";"),this._emitLine("if(runtime.isArray("+h+")) {"),this._emitLine("var "+d+" = "+h+".length;"),this._emitLine("for("+f+"=0; "+f+" < "+h+".length; "+f+"++) {"),i.name.children.forEach(function(m,x){var b=c._tmpid();c._emitLine("var "+b+" = "+h+"["+f+"]["+x+"];"),c._emitLine('frame.set("'+m+'", '+h+"["+f+"]["+x+"]);"),l.set(i.name.children[x].value,b)}),this._emitLoopBindings(i,h,f,d),this._withScopedSyntax(function(){c.compile(i.body,l)}),this._emitLine("}"),this._emitLine("} else {"),u=(s=i.name.children)[0],s=s[1],a=this._tmpid(),o=this._tmpid(),l.set(u.value,a),l.set(s.value,o),this._emitLine(f+" = -1;"),this._emitLine("var "+d+" = runtime.keys("+h+").length;"),this._emitLine("for(var "+a+" in "+h+") {"),this._emitLine(f+"++;"),this._emitLine("var "+o+" = "+h+"["+a+"];"),this._emitLine('frame.set("'+u.value+'", '+a+");"),this._emitLine('frame.set("'+s.value+'", '+o+");"),this._emitLoopBindings(i,h,f,d),this._withScopedSyntax(function(){c.compile(i.body,l)}),this._emitLine("}")):(u=this._tmpid(),l.set(i.name.value,u),this._emitLine("var "+d+" = "+h+".length;"),this._emitLine("for(var "+f+"=0; "+f+" < "+h+".length; "+f+"++) {"),this._emitLine("var "+u+" = "+h+"["+f+"];"),this._emitLine('frame.set("'+i.name.value+'", '+u+");"),this._emitLoopBindings(i,h,f,d),this._withScopedSyntax(function(){c.compile(i.body,l)})),this._emitLine("}"),this._emitLine("}"),i.else_&&(this._emitLine("if (!"+d+") {"),this.compile(i.else_,l),this._emitLine("}")),this._emitLine("frame = frame.pop();")},r._compileAsyncLoop=function(i,l,s){var a,o=this,u=this._tmpid(),c=this._tmpid(),f=this._tmpid(),d=s?"asyncAll":"asyncEach",d=(l=l.push(),this._emitLine("frame = frame.push();"),this._emit("var "+f+" = runtime.fromIterator("),this._compileExpression(i.arr,l),this._emitLine(");"),i.name instanceof te.Array?(a=i.name.children.length,this._emit("runtime."+d+"("+f+", "+a+", function("),i.name.children.forEach(function(h){o._emit(h.value+",")}),this._emit(u+","+c+",next) {"),i.name.children.forEach(function(h){h=h.value,l.set(h,h),o._emitLine('frame.set("'+h+'", '+h+");")})):(a=i.name.value,this._emitLine("runtime."+d+"("+f+", 1, function("+a+", "+u+", "+c+",next) {"),this._emitLine('frame.set("'+a+'", '+a+");"),l.set(a,a)),this._emitLoopBindings(i,f,u,c),this._withScopedSyntax(function(){var h;s&&(h=o._pushBuffer()),o.compile(i.body,l),o._emitLine("next("+u+(h?","+h:"")+");"),s&&o._popBuffer()}),this._tmpid());this._emitLine("}, "+this._makeCallback(d)),this._addScopeLevel(),s&&this._emitLine(this.buffer+" += "+d+";"),i.else_&&(this._emitLine("if (!"+f+".length) {"),this.compile(i.else_,l),this._emitLine("}")),this._emitLine("frame = frame.pop();")},r.compileAsyncEach=function(i,l){this._compileAsyncLoop(i,l)},r.compileAsyncAll=function(i,l){this._compileAsyncLoop(i,l,!0)},r._compileMacro=function(i,x){var s=this,a=[],o=null,u="macro_"+this._tmpid(),c=x!==void 0,f=(i.args.children.forEach(function(b,_){_===i.args.children.length-1&&b instanceof te.Dict?o=b:(s.assertType(b,te.Symbol),a.push(b))}),[].concat(a.map(function(b){return"l_"+b.value}),["kwargs"])),d=a.map(function(b){return'"'+b.value+'"'}),h=(o&&o.children||[]).map(function(b){return'"'+b.key.value+'"'}),m=c?x.push(!0):new qx,x=(this._emitLines("var "+u+" = runtime.makeMacro(","["+d.join(", ")+"], ","["+h.join(", ")+"], ","function ("+f.join(", ")+") {","var callerFrame = frame;","frame = "+(c?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),a.forEach(function(b){s._emitLine('frame.set("'+b.value+'", l_'+b.value+");"),m.set(b.value,"l_"+b.value)}),o&&o.children.forEach(function(b){var _=b.key.value;s._emit('frame.set("'+_+'", '),s._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+_+'")'),s._emit(' ? kwargs["'+_+'"] : '),s._compileExpression(b.value,m),s._emit(");")}),this._pushBuffer());return this._withScopedSyntax(function(){s.compile(i.body,m)}),this._emitLine("frame = "+(c?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+x+");"),this._emitL Line truncated
`))})},r.compileRoot=function(i,l){var s=this,a=(l&&this.fail("compileRoot: root node can't have frame"),l=new qx,this._emitFuncBegin(i,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(i,l),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0,[]);(l=i.findAll(te.Block)).forEach(function(o,u){var c=o.name.value;if(a.indexOf(c)!==-1)throw new Error('Block "'+c+'" defined more than once.');a.push(c),s._emitFuncBegin(o,"b_"+c),c=new qx,s._emitLine("var frame = frame.push(true);"),s.compile(o.body,c),s._emitFuncEnd()}),this._emitLine("return {"),l.forEach(function(o,u){o="b_"+o.name.value,s._emitLine(o+": "+o+",")}),this._emitLine(`root: root
};`)},r.compile=function(i,l){var s=this["compile"+i.typename];s?s.call(this,i,l):this.fail("compile: Cannot compile node: "+i.typename,i.lineno,i.colno)},r.getCode=function(){return this.codebuf.join("")},n}(N1.Obj),fwe={compile:function(s,e,n,r,i){var l=new yq(r,(i=i===void 0?{}:i).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,o){return o(a)},s);return l.compile(swe.transform(rwe.parse(s,n,i),e,r)),l.getCode()},Compiler:yq},pwe=xt(function(t){function e(h,m){return h==null||h===!1?m:h}function n(h){return h!=h}function r(h){var m=(h=e(h,"")).toLowerCase();return bt.copySafeness(h,m.charAt(0).toUpperCase()+m.slice(1))}function i(h){if(je.isString(h))return h.split("");if(je.isObject(h))return je._entries(h||{}).map(function(m){return{key:m[0],value:m[1]}});if(je.isArray(h))return h;throw new je.TemplateError("list filter: type not iterable")}function l(h){return function(m,x,b){var _=this,E=_.env.getTest(x=x===void 0?"truthy":x);return je.toArray(m).filter(function(v){return E.call(_,v,b)===h})}}function s(h){return bt.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(h,m,x){for(var b=[],_=[],E=0;E<h.length;E++)E%m==0&&_.length&&(b.push(_),_=[]),_.push(h[E]);if(_.length){if(x)for(E=_.length;E<m;E++)_.push(x);b.push(_)}return b},t.capitalize=r,t.center=function(h,m){var x;return(h=e(h,"")).length>=(m=m||80)?h:(m-=h.length,x=je.repeat(" ",m/2-m%2),m=je.repeat(" ",m/2),bt.copySafeness(h,x+h+m))},t.default=function(h,m,x){return x?h||m:h!==void 0?h:m},t.dictsort=function(h,m,x){if(!je.isObject(h))throw new je.TemplateError("dictsort filter: val must be an object");var b,_,E=[];for(_ in h)E.push([_,h[_]]);if(x===void 0||x==="key")b=0;else{if(x!=="value")throw new je.TemplateError("dictsort filter: You can only sort by either key or value");b=1}return E.sort(function(v,g){return v=v[b],g=g[b],m||(je.isString(v)&&(v=v.toUpperCase()),je.isString(g)&&(g=g.toUpperCase())),g<v?1:v===g?0:-1}),E},t.dump=function(h,m){return JSON.stringify(h,null,m)},t.escape=function(h){return h instanceof bt.SafeString?h:bt.markSafe(je.escape((h=h??"").toString()))},t.safe=function(h){return h instanceof bt.SafeString?h:bt.markSafe((h=h??"").toString())},t.first=function(h){return h[0]},t.forceescape=function(h){return bt.markSafe(je.escape((h=h??"").toString()))},t.groupby=function(h,m){return je.groupBy(h,m,this.env.opts.throwOnUndefined)},t.indent=function(h,E,x){if((h=e(h,""))==="")return"";E=E||4;var b=h.split(`
else {`),this._emit("cb()")),this._emitLine("}")},r.compileIfAsync=function(i,l){this._emit("(function(cb) {"),this.compileIf(i,l,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},r._emitLoopBindings=function(i,l,s,a){var o=this;[{name:"index",val:s+" + 1"},{name:"index0",val:s},{name:"revindex",val:a+" - "+s},{name:"revindex0",val:a+" - "+s+" - 1"},{name:"first",val:s+" === 0"},{name:"last",val:s+" === "+a+" - 1"},{name:"length",val:a}].forEach(function(u){o._emitLine('frame.set("loop.'+u.name+'", '+u.val+");")})},r.compileFor=function(i,l){var s,a,o,u,c=this,f=this._tmpid(),d=this._tmpid(),h=this._tmpid();l=l.push(),this._emitLine("frame = frame.push();"),this._emit("var "+h+" = "),this._compileExpression(i.arr,l),this._emitLine(";"),this._emit("if("+h+") {"),this._emitLine(h+" = runtime.fromIterator("+h+");"),i.name instanceof te.Array?(this._emitLine("var "+f+";"),this._emitLine("if(runtime.isArray("+h+")) {"),this._emitLine("var "+d+" = "+h+".length;"),this._emitLine("for("+f+"=0; "+f+" < "+h+".length; "+f+"++) {"),i.name.children.forEach(function(m,x){var b=c._tmpid();c._emitLine("var "+b+" = "+h+"["+f+"]["+x+"];"),c._emitLine('frame.set("'+m+'", '+h+"["+f+"]["+x+"]);"),l.set(i.name.children[x].value,b)}),this._emitLoopBindings(i,h,f,d),this._withScopedSyntax(function(){c.compile(i.body,l)}),this._emitLine("}"),this._emitLine("} else {"),u=(s=i.name.children)[0],s=s[1],a=this._tmpid(),o=this._tmpid(),l.set(u.value,a),l.set(s.value,o),this._emitLine(f+" = -1;"),this._emitLine("var "+d+" = runtime.keys("+h+").length;"),this._emitLine("for(var "+a+" in "+h+") {"),this._emitLine(f+"++;"),this._emitLine("var "+o+" = "+h+"["+a+"];"),this._emitLine('frame.set("'+u.value+'", '+a+");"),this._emitLine('frame.set("'+s.value+'", '+o+");"),this._emitLoopBindings(i,h,f,d),this._withScopedSyntax(function(){c.compile(i.body,l)}),this._emitLine("}")):(u=this._tmpid(),l.set(i.name.value,u),this._emitLine("var "+d+" = "+h+".length;"),this._emitLine("for(var "+f+"=0; "+f+" < "+h+".length; "+f+"++) {"),this._emitLine("var "+u+" = "+h+"["+f+"];"),this._emitLine('frame.set("'+i.name.value+'", '+u+");"),this._emitLoopBindings(i,h,f,d),this._withScopedSyntax(function(){c.compile(i.body,l)})),this._emitLine("}"),this._emitLine("}"),i.else_&&(this._emitLine("if (!"+d+") {"),this.compile(i.else_,l),this._emitLine("}")),this._emitLine("frame = frame.pop();")},r._compileAsyncLoop=function(i,l,s){var a,o=this,u=this._tmpid(),c=this._tmpid(),f=this._tmpid(),d=s?"asyncAll":"asyncEach",d=(l=l.push(),this._emitLine("frame = frame.push();"),this._emit("var "+f+" = runtime.fromIterator("),this._compileExpression(i.arr,l),this._emitLine(");"),i.name instanceof te.Array?(a=i.name.children.length,this._emit("runtime."+d+"("+f+", "+a+", function("),i.name.children.forEach(function(h){o._emit(h.value+",")}),this._emit(u+","+c+",next) {"),i.name.children.forEach(function(h){h=h.value,l.set(h,h),o._emitLine('frame.set("'+h+'", '+h+");")})):(a=i.name.value,this._emitLine("runtime."+d+"("+f+", 1, function("+a+", "+u+", "+c+",next) {"),this._emitLine('frame.set("'+a+'", '+a+");"),l.set(a,a)),this._emitLoopBindings(i,f,u,c),this._withScopedSyntax(function(){var h;s&&(h=o._pushBuffer()),o.compile(i.body,l),o._emitLine("next("+u+(h?","+h:"")+");"),s&&o._popBuffer()}),this._tmpid());this._emitLine("}, "+this._makeCallback(d)),this._addScopeLevel(),s&&this._emitLine(this.buffer+" += "+d+";"),i.else_&&(this._emitLine("if (!"+f+".length) {"),this.compile(i.else_,l),this._emitLine("}")),this._emitLine("frame = frame.pop();")},r.compileAsyncEach=function(i,l){this._compileAsyncLoop(i,l)},r.compileAsyncAll=function(i,l){this._compileAsyncLoop(i,l,!0)},r._compileMacro=function(i,x){var s=this,a=[],o=null,u="macro_"+this._tmpid(),c=x!==void 0,f=(i.args.children.forEach(function(b,_){_===i.args.children.length-1&&b instanceof te.Dict?o=b:(s.assertType(b,te.Symbol),a.push(b))}),[].concat(a.map(function(b){return"l_"+b.value}),["kwargs"])),d=a.map(function(b){return'"'+b.value+'"'}),h=(o&&o.children||[]).map(function(b){return'"'+b.key.value+'"'}),m=c?x.push(!0):new zx,x=(this._emitLines("var "+u+" = runtime.makeMacro(","["+d.join(", ")+"], ","["+h.join(", ")+"], ","function ("+f.join(", ")+") {","var callerFrame = frame;","frame = "+(c?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),a.forEach(function(b){s._emitLine('frame.set("'+b.value+'", l_'+b.value+");"),m.set(b.value,"l_"+b.value)}),o&&o.children.forEach(function(b){var _=b.key.value;s._emit('frame.set("'+_+'", '),s._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+_+'")'),s._emit(' ? kwargs["'+_+'"] : '),s._compileExpression(b.value,m),s._emit(");")}),this._pushBuffer());return this._withScopedSyntax(function(){s.compile(i.body,m)}),this._emitLine("frame = "+(c?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+x+");"),this._emitL Line truncated
`))})},r.compileRoot=function(i,l){var s=this,a=(l&&this.fail("compileRoot: root node can't have frame"),l=new zx,this._emitFuncBegin(i,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(i,l),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0,[]);(l=i.findAll(te.Block)).forEach(function(o,u){var c=o.name.value;if(a.indexOf(c)!==-1)throw new Error('Block "'+c+'" defined more than once.');a.push(c),s._emitFuncBegin(o,"b_"+c),c=new zx,s._emitLine("var frame = frame.push(true);"),s.compile(o.body,c),s._emitFuncEnd()}),this._emitLine("return {"),l.forEach(function(o,u){o="b_"+o.name.value,s._emitLine(o+": "+o+",")}),this._emitLine(`root: root
};`)},r.compile=function(i,l){var s=this["compile"+i.typename];s?s.call(this,i,l):this.fail("compile: Cannot compile node: "+i.typename,i.lineno,i.colno)},r.getCode=function(){return this.codebuf.join("")},n}(R1.Obj),bwe={compile:function(s,e,n,r,i){var l=new Eq(r,(i=i===void 0?{}:i).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,o){return o(a)},s);return l.compile(gwe.transform(dwe.parse(s,n,i),e,r)),l.getCode()},Compiler:Eq},wwe=xt(function(t){function e(h,m){return h==null||h===!1?m:h}function n(h){return h!=h}function r(h){var m=(h=e(h,"")).toLowerCase();return bt.copySafeness(h,m.charAt(0).toUpperCase()+m.slice(1))}function i(h){if(je.isString(h))return h.split("");if(je.isObject(h))return je._entries(h||{}).map(function(m){return{key:m[0],value:m[1]}});if(je.isArray(h))return h;throw new je.TemplateError("list filter: type not iterable")}function l(h){return function(m,x,b){var _=this,E=_.env.getTest(x=x===void 0?"truthy":x);return je.toArray(m).filter(function(v){return E.call(_,v,b)===h})}}function s(h){return bt.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(h,m,x){for(var b=[],_=[],E=0;E<h.length;E++)E%m==0&&_.length&&(b.push(_),_=[]),_.push(h[E]);if(_.length){if(x)for(E=_.length;E<m;E++)_.push(x);b.push(_)}return b},t.capitalize=r,t.center=function(h,m){var x;return(h=e(h,"")).length>=(m=m||80)?h:(m-=h.length,x=je.repeat(" ",m/2-m%2),m=je.repeat(" ",m/2),bt.copySafeness(h,x+h+m))},t.default=function(h,m,x){return x?h||m:h!==void 0?h:m},t.dictsort=function(h,m,x){if(!je.isObject(h))throw new je.TemplateError("dictsort filter: val must be an object");var b,_,E=[];for(_ in h)E.push([_,h[_]]);if(x===void 0||x==="key")b=0;else{if(x!=="value")throw new je.TemplateError("dictsort filter: You can only sort by either key or value");b=1}return E.sort(function(v,g){return v=v[b],g=g[b],m||(je.isString(v)&&(v=v.toUpperCase()),je.isString(g)&&(g=g.toUpperCase())),g<v?1:v===g?0:-1}),E},t.dump=function(h,m){return JSON.stringify(h,null,m)},t.escape=function(h){return h instanceof bt.SafeString?h:bt.markSafe(je.escape((h=h??"").toString()))},t.safe=function(h){return h instanceof bt.SafeString?h:bt.markSafe((h=h??"").toString())},t.first=function(h){return h[0]},t.forceescape=function(h){return bt.markSafe(je.escape((h=h??"").toString()))},t.groupby=function(h,m){return je.groupBy(h,m,this.env.opts.throwOnUndefined)},t.indent=function(h,E,x){if((h=e(h,""))==="")return"";E=E||4;var b=h.split(`
`),_=je.repeat(" ",E),E=b.map(function(v,g){return g!==0||x?""+_+v:v}).join(`
`);return bt.copySafeness(h,E)},t.join=function(h,m,x){return m=m||"",(h=x?je.map(h,function(b){return b[x]}):h).join(m)},t.last=function(h){return h[h.length-1]},t.length=function(h){return(h=e(h,""))!==void 0?typeof Map=="function"&&h instanceof Map||typeof Set=="function"&&h instanceof Set?h.size:(!je.isObject(h)||h instanceof bt.SafeString?h:je.keys(h)).length:0},t.list=i,t.lower=function(h){return(h=e(h,"")).toLowerCase()},t.nl2br=function(h){return h==null?"":bt.copySafeness(h,h.replace(/\r\n|\n/g,`<br />
`))},t.random=function(h){return h[Math.floor(Math.random()*h.length)]},t.reject=l(!1),t.rejectattr=function(h,m){return h.filter(function(x){return!x[m]})},t.select=l(!0),t.selectattr=function(h,m){return h.filter(function(x){return!!x[m]})},t.replace=function(h,m,x,b){var _=h;if(m instanceof RegExp)return h.replace(m,x);b===void 0&&(b=-1);var E="";if(typeof m=="number")m=""+m;else if(typeof m!="string")return h;if(typeof(h=typeof h=="number"?""+h:h)!="string"&&!(h instanceof bt.SafeString))return h;if(m==="")return E=x+h.split("").join(x)+x,bt.copySafeness(h,E);var v=h.indexOf(m);if(b===0||v===-1)return h;for(var g=0,S=0;-1<v&&(b===-1||S<b);)E+=h.substring(g,v)+x,g=v+m.length,S++,v=h.indexOf(m,g);return g<h.length&&(E+=h.substring(g)),bt.copySafeness(_,E)},t.reverse=function(h){var m;return(m=je.isString(h)?i(h):je.map(h,function(x){return x})).reverse(),je.isString(h)?bt.copySafeness(h,m.join("")):m},t.round=function(h,m,x){return m=m||0,m=Math.pow(10,m),(x==="ceil"?Math.ceil:x==="floor"?Math.floor:Math.round)(h*m)/m},t.slice=function(h,m,x){for(var b=Math.floor(h.length/m),_=h.length%m,E=[],v=0,g=0;g<m;g++){var S=v+g*b;g<_&&v++,S=h.slice(S,v+(g+1)*b),x&&_<=g&&S.push(x),E.push(S)}return E},t.sum=function(h,m,x){return(x=x===void 0?0:x)+(h=m?je.map(h,function(b){return b[m]}):h).reduce(function(b,_){return b+_},0)},t.sort=bt.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(E,m,x,b){var _=this,E=je.map(E,function(g){return g}),v=je.getAttrGetter(b);return E.sort(function(g,S){if(g=b?v(g):g,S=b?v(S):S,_.env.opts.throwOnUndefined&&b&&(g===void 0||S===void 0))throw new TypeError('sort: attribute "'+b+'" resolved to undefined');return!x&&je.isString(g)&&je.isString(S)&&(g=g.toLowerCase(),S=S.toLowerCase()),g<S?m?1:-1:S<g?m?-1:1:0}),E}),t.string=function(h){return bt.copySafeness(h,h)},t.striptags=function(h,b){var x=s((h=e(h,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),b=b?x.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,`
`).replace(/\n\n\n+/g,`
`):x.replace(/\s+/gi," ");return bt.copySafeness(h,b)},t.title=function(h){var m=(h=e(h,"")).split(" ").map(r);return bt.copySafeness(h,m.join(" "))},t.trim=s,t.truncate=function(h,m,x,b){var _=h;return(h=e(h,"")).length<=(m=m||255)?h:(h=x?h.substring(0,m):((x=h.lastIndexOf(" ",m))===-1&&(x=m),h.substring(0,x)),bt.copySafeness(_,h+=b??"..."))},t.upper=function(h){return(h=e(h,"")).toUpperCase()},t.urlencode=function(h){var m=encodeURIComponent;return je.isString(h)?m(h):(je.isArray(h)?h:je._entries(h)).map(function(_){var b=_[0],_=_[1];return m(b)+"="+m(_)}).join("&")};var a=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,o=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,u=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,d=(t.urlize=function(h,m,x){n(m)&&(m=1/0);var b=x===!0?' rel="nofollow"':"";return h.split(/(\s+)/).filter(function(_){return _&&_.length}).map(function(_){var E=_.match(a),v=(E=E?E[1]:_).substr(0,m);return u.test(E)?'<a href="'+E+'"'+b+">"+v+"</a>":c.test(E)?'<a href="http://'+E+'"'+b+">"+v+"</a>":o.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+b+">"+v+"</a>":_}).join("")},t.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},t.float=function(h,m){return n(h=parseFloat(h))?m:h},bt.makeMacro(["value","default","base"],[],function(h,m,x){return x===void 0&&(x=10),n(h=parseInt(h,x))?m:h}));t.int=d,t.d=t.default,t.e=t.escape}),kf={};function xz(t,e){for(var n=0,r=t.length-1;0<=r;r--){var i=t[r];i==="."?t.splice(r,1):i===".."?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;)t.unshift("..");return t}var hwe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Vx=function(t){return hwe.exec(t).slice(1)};function zx(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var r=0<=n?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+xz(qb(t.split("/"),function(i){return!!i}),!e).join("/")||"."}function gq(t){var e=bz(t),n=dwe(t,-1)==="/";return(t=(t=xz(qb(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}function bz(t){return t.charAt(0)==="/"}var S1={extname:function(t){return Vx(t)[3]},basename:function(t,e){return t=Vx(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){var e=(n=Vx(n))[0],n=n[1];return e||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(u){for(var c=0;c<u.length&&u[c]==="";c++);for(var f=u.length-1;0<=f&&u[f]==="";f--);return f<c?[]:u.slice(c,f-c+1)}t=zx(t).substr(1),e=zx(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),l=Math.min(r.length,i.length),s=l,a=0;a<l;a++)if(r[a]!==i[a]){s=a;break}for(var o=[],a=s;a<r.length;a++)o.push("..");return(o=o.concat(i.slice(s))).join("/")},join:function(){return gq(qb(Array.prototype.slice.call(arguments,0),function(t,e){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:bz,normalize:gq,resolve:zx};function qb(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var dwe="ab".substr(-1)==="b"?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)};function wz(t,e){return(wz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Vb=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),wz(r.prototype.constructor=r,e);var r=n.prototype;return r.resolve=function(i,l){return S1.resolve(S1.dirname(i),l)},r.isRelative=function(i){return i.indexOf("./")===0||i.indexOf("../")===0},n}(N1.EmitterObj);function Sz(t,e){return(Sz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var mwe=function(t){var e,n;function r(i){var l;return(l=t.call(this)||this).precompiled=i||{},l}return n=t,(e=r).prototype=Object.create(n.prototype),Sz(e.prototype.constructor=e,n),r.prototype.getSource=function(i){return this.precompiled[i]?{src:{type:"code",obj:this.precompiled[i]},path:i}:null},r}(Vb);function Tz(t,e){t.prototype=Object.create(e.prototype),Az(t.prototype.constructor=t,e)}function Az(t,e){return(Az=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var ywe=mwe,gwe=function(t){function e(n,r){var i=t.call(this)||this;return typeof r=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),r=r||{},i.pathsToNames={},i.noCache=!!r.noCache,n?(n=Array.isArray(n)?n:[n],i.searchPaths=n.map(S1.normalize)):i.searchPaths=["."],r.watch,i}return Tz(e,t),e.prototype.getSource=function(n){for(var r=null,i=this.searchPaths,l=0;l<i.length;l++){var s=S1.resoLine truncated
`):x.replace(/\s+/gi," ");return bt.copySafeness(h,b)},t.title=function(h){var m=(h=e(h,"")).split(" ").map(r);return bt.copySafeness(h,m.join(" "))},t.trim=s,t.truncate=function(h,m,x,b){var _=h;return(h=e(h,"")).length<=(m=m||255)?h:(h=x?h.substring(0,m):((x=h.lastIndexOf(" ",m))===-1&&(x=m),h.substring(0,x)),bt.copySafeness(_,h+=b??"..."))},t.upper=function(h){return(h=e(h,"")).toUpperCase()},t.urlencode=function(h){var m=encodeURIComponent;return je.isString(h)?m(h):(je.isArray(h)?h:je._entries(h)).map(function(_){var b=_[0],_=_[1];return m(b)+"="+m(_)}).join("&")};var a=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,o=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,u=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,d=(t.urlize=function(h,m,x){n(m)&&(m=1/0);var b=x===!0?' rel="nofollow"':"";return h.split(/(\s+)/).filter(function(_){return _&&_.length}).map(function(_){var E=_.match(a),v=(E=E?E[1]:_).substr(0,m);return u.test(E)?'<a href="'+E+'"'+b+">"+v+"</a>":c.test(E)?'<a href="http://'+E+'"'+b+">"+v+"</a>":o.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+b+">"+v+"</a>":_}).join("")},t.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},t.float=function(h,m){return n(h=parseFloat(h))?m:h},bt.makeMacro(["value","default","base"],[],function(h,m,x){return x===void 0&&(x=10),n(h=parseInt(h,x))?m:h}));t.int=d,t.d=t.default,t.e=t.escape}),Lf={};function Tz(t,e){for(var n=0,r=t.length-1;0<=r;r--){var i=t[r];i==="."?t.splice(r,1):i===".."?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;)t.unshift("..");return t}var Swe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Gx=function(t){return Swe.exec(t).slice(1)};function Kx(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var r=0<=n?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+Tz(zb(t.split("/"),function(i){return!!i}),!e).join("/")||"."}function xq(t){var e=Az(t),n=Twe(t,-1)==="/";return(t=(t=Tz(zb(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}function Az(t){return t.charAt(0)==="/"}var A1={extname:function(t){return Gx(t)[3]},basename:function(t,e){return t=Gx(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){var e=(n=Gx(n))[0],n=n[1];return e||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(u){for(var c=0;c<u.length&&u[c]==="";c++);for(var f=u.length-1;0<=f&&u[f]==="";f--);return f<c?[]:u.slice(c,f-c+1)}t=Kx(t).substr(1),e=Kx(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),l=Math.min(r.length,i.length),s=l,a=0;a<l;a++)if(r[a]!==i[a]){s=a;break}for(var o=[],a=s;a<r.length;a++)o.push("..");return(o=o.concat(i.slice(s))).join("/")},join:function(){return xq(zb(Array.prototype.slice.call(arguments,0),function(t,e){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:Az,normalize:xq,resolve:Kx};function zb(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var Twe="ab".substr(-1)==="b"?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)};function Cz(t,e){return(Cz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Gb=function(t){var e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),Cz(r.prototype.constructor=r,e);var r=n.prototype;return r.resolve=function(i,l){return A1.resolve(A1.dirname(i),l)},r.isRelative=function(i){return i.indexOf("./")===0||i.indexOf("../")===0},n}(R1.EmitterObj);function Oz(t,e){return(Oz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Awe=function(t){var e,n;function r(i){var l;return(l=t.call(this)||this).precompiled=i||{},l}return n=t,(e=r).prototype=Object.create(n.prototype),Oz(e.prototype.constructor=e,n),r.prototype.getSource=function(i){return this.precompiled[i]?{src:{type:"code",obj:this.precompiled[i]},path:i}:null},r}(Gb);function Nz(t,e){t.prototype=Object.create(e.prototype),Iz(t.prototype.constructor=t,e)}function Iz(t,e){return(Iz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(t,e)}var Cwe=Awe,Owe=function(t){function e(n,r){var i=t.call(this)||this;return typeof r=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),r=r||{},i.pathsToNames={},i.noCache=!!r.noCache,n?(n=Array.isArray(n)?n:[n],i.searchPaths=n.map(A1.normalize)):i.searchPaths=["."],r.watch,i}return Nz(e,t),e.prototype.getSource=function(n){for(var r=null,i=this.searchPaths,l=0;l<i.length;l++){var s=A1.resoLine truncated
/* [wrapped with `+q+`] */
`)):I}(O,function(I,q){return ei(d,function(Y){var ee="_."+Y[0];q&Y[1]&&!Ns(I,ee)&&I.push(ee)}),I.sort()}(function(){var I=O.match(Jr);return I?I[1].split(An):[]}(),w)))}function $C(p){var y=0,w=0;return function(){var O=Nre(),I=16-(O-w);if(w=O,0<I){if(800<=++y)return arguments[0]}else y=0;return p.apply(n,arguments)}}function p8(p,y){var w=-1,O=p.length,I=O-1;for(y=y===n?O:y;++w<y;){var q=Bd(w,I),Y=p[q];p[q]=p[w],p[w]=Y}return p.length=y,p}var HC=function(){var p=y8(function(w){var O=[];return w.charCodeAt(0)===46&&O.push(""),w.replace(pt,function(I,q,Y,ee){O.push(Y?ee.replace(Xr,"$1"):q||I)}),O},function(w){return y.size===500&&y.clear(),w}),y=p.cache;return p}();function ca(p){var y;return typeof p=="string"||zl(p)?p:(y=p+"")=="0"&&1/p==-1/0?"-0":y}function I3(p){if(p!=null){try{return q6.call(p)}catch{}try{return p+""}catch{}}return""}function qC(p){var y;return p instanceof Wt?p.clone():((y=new Is(p.__wrapped__,p.__chain__)).__actions__=vl(p.__actions__),y.__index__=p.__index__,y.__values__=p.__values__,y)}function VC(p,y,w){var O=p==null?0:p.length;return O?((w=w==null?0:Dt(w))<0&&(w=ni(O+w,0)),ia(p,yt(y,3),w)):-1}function zC(p,y,w){var O,I=p==null?0:p.length;return I?(O=I-1,w!==n&&(O=Dt(w),O=w<0?ni(I+O,0):Fi(O,I-1)),ia(p,yt(y,3),O,!0)):-1}function GC(p){return p!=null&&p.length?Ti(p,1):[]}function KC(p){return p&&p.length?p[0]:n}function as(p){var y=p==null?0:p.length;return y?p[y-1]:n}function WC(p,y){return p&&p.length&&y&&y.length?Fd(p,y):p}Td=Ft(function(p,y){return Lr(p)?O4(p,Ti(y,1,Lr,!0)):[]}),aa=Ft(function(p,y){var w=as(y);return Lr(w)&&(w=n),Lr(p)?O4(p,Ti(y,1,Lr,!0),yt(w,2)):[]}),S4=Ft(function(p,y){var w=as(y);return Lr(w)&&(w=n),Lr(p)?O4(p,Ti(y,1,Lr,!0),n,w):[]}),Zt=Ft(function(p){var y=pn(p,Hd);return y.length&&y[0]===p[0]?Dd(y):[]}),Xu=Ft(function(p){var y=as(p),w=pn(p,Hd);return y===as(w)?y=n:w.pop(),w.length&&w[0]===p[0]?Dd(w,yt(y,2)):[]}),Ad=Ft(function(p){var y=as(p),w=pn(p,Hd);return(y=typeof y=="function"?y:n)&&w.pop(),w.length&&w[0]===p[0]?Dd(w,n,y):[]}),Bi=Ft(WC);var Vre=Wa(function(p,y){var w=p==null?0:p.length,O=Od(p,y);return aC(p,pn(y,function(I){return Ja(I,w)?+I:I}).sort(gC)),O});function nm(p){return p==null?p:Ire.call(p)}var zre=Ft(function(p){return R2(Ti(p,1,Lr,!0))}),Gre=Ft(function(p){var y=as(p);return Lr(y)&&(y=n),R2(Ti(p,1,Lr,!0),yt(y,2))}),Kre=Ft(function(p){var y=typeof(y=as(p))=="function"?y:n;return R2(Ti(p,1,Lr,!0),n,y)});function rm(p){var y;return p&&p.length?(y=0,p=mi(p,function(w){if(Lr(w))return y=ni(w.length,y),!0}),B6(y,function(w){return pn(p,la(w))})):[]}function JC(p,y){return p&&p.length?(p=rm(p),y==null?p:pn(p,function(w){return di(y,n,w)})):[]}var Wre=Ft(function(p,y){return Lr(p)?O4(p,y):[]}),Jre=Ft(function(p){return $d(mi(p,Lr))}),Xre=Ft(function(p){var y=as(p);return Lr(y)&&(y=n),$d(mi(p,Lr),yt(y,2))}),Yre=Ft(function(p){var y=typeof(y=as(p))=="function"?y:n;return $d(mi(p,Lr),n,y)}),Qre=Ft(rm),Zre=Ft(function(p){var y=typeof(y=1<(y=p.length)?p[y-1]:n)=="function"?(p.pop(),y):n;return JC(p,y)});function XC(p){return(p=B(p)).__chain__=!0,p}function h8(p,y){return y(p)}var eie=Wa(function(p){function y(q){return Od(q,p)}var w=p.length,O=w?p[0]:0,I=this.__wrapped__;return!(1<w||this.__actions__.length)&&I instanceof Wt&&Ja(O)?((I=I.slice(O,+O+(w?1:0))).__actions__.push({func:h8,args:[y],thisArg:n}),new Is(I,this.__chain__).thru(function(q){return w&&!q.length&&q.push(n),q})):this.thru(y)}),tie=l8(function(p,y,w){En.call(p,w)?++p[w]:Ga(p,w,1)}),nie=wC(VC),rie=wC(zC);function YC(p,y){return(Nt(p)?ei:N2)(p,yt(y,3))}function QC(p,y){return(Nt(p)?function(w,O){for(var I=w==null?0:w.length;I--&&O(w[I],I,w)!==!1;);return w}:WA)(p,yt(y,3))}var iie=l8(function(p,y,w){En.call(p,w)?p[w].push(y):Ga(p,w,[y])}),lie=Ft(function(p,y,w){var O=-1,I=typeof y=="function",q=_l(p)?ye(p.length):[];return N2(p,function(Y){q[++O]=I?di(y,Y,w):N4(Y,y,w)}),q}),sie=l8(function(p,y,w){Ga(p,w,y)});function d8(p,y){return(Nt(p)?pn:tC)(p,yt(y,3))}var aie=l8(function(p,y,w){p[w?0:1].push(y)},function(){return[[],[]]}),oie=Ft(function(p,y){var w;return p==null?[]:(1<(w=y.length)&&ll(p,y[0],y[1])?y=[]:2<w&&ll(y[0],y[1],y[2])&&(y=[y[0]]),lC(p,Ti(y,1),[]))}),m8=lm||function(){return mr.Date.now()};function ZC(p,y,w){return y=w?n:y,y=p&&y==null?p.length:y,Ka(p,a,n,n,n,n,y)}function eO(p,y){var w;if(typeof y!="function")throw new is(r);return p=Dt(p),function(){return 0<--p&&(w=y.apply(this,arguments)),p<=1&&(y=n),w}}var im=Ft(function(p,y,w){var O,I=1;return w.length&&(O=qa(w,n0(im)),I|=s),Ka(p,I,y,w,O)}),tO=Ft(function(p,y,w){var O,I=3;return w.length&&(O=qa(w,n0(tO)),I|=s),Ka(y,I,p,w,O)});function nO(p,y,w){var O,I,q,Y,ee,oe,he=0,de=!1,Oe=!1,be=!0;if(typeof p!="function")throw new is(r);function Ee(Ze){var ct=O,_t=I;return O=I=n,he=Ze,Y=p.apply(_t,ct)}function Ce(Ze){var ct=Ze-oe;return oe===n||y<=ct||ct<0||Oe&&q<=Ze-he}function ot(){var Ze=m8();if(Ce(Ze))return Le(Ze);ee=P4(ot,function(ct){var _t=y-(ct-oe);return Oe?Fi(_t,q-(ct-he)):_t}(Ze))}function Le(Ze){return ee=n,be&&O?Ee(Z Line truncated
`;if(p.replace(de,function(be,Ee,Ce,ot,Le,Ue){return Ce=Ce||ot,he+=p.slice(ee,Ue).replace(Er,DA),Ee&&(O=!0,he+=`' +
`)):R}(O,function(R,q){return ti(d,function(Y){var ee="_."+Y[0];q&Y[1]&&!Is(R,ee)&&R.push(ee)}),R.sort()}(function(){var R=O.match(Xr);return R?R[1].split(Cn):[]}(),w)))}function zC(p){var y=0,w=0;return function(){var O=jre(),R=16-(O-w);if(w=O,0<R){if(800<=++y)return arguments[0]}else y=0;return p.apply(n,arguments)}}function d8(p,y){var w=-1,O=p.length,R=O-1;for(y=y===n?O:y;++w<y;){var q=Ud(w,R),Y=p[q];p[q]=p[w],p[w]=Y}return p.length=y,p}var GC=function(){var p=v8(function(w){var O=[];return w.charCodeAt(0)===46&&O.push(""),w.replace(pt,function(R,q,Y,ee){O.push(Y?ee.replace(Yr,"$1"):q||R)}),O},function(w){return y.size===500&&y.clear(),w}),y=p.cache;return p}();function fa(p){var y;return typeof p=="string"||Kl(p)?p:(y=p+"")=="0"&&1/p==-1/0?"-0":y}function k3(p){if(p!=null){try{return z6.call(p)}catch{}try{return p+""}catch{}}return""}function KC(p){var y;return p instanceof Jt?p.clone():((y=new Ds(p.__wrapped__,p.__chain__)).__actions__=El(p.__actions__),y.__index__=p.__index__,y.__values__=p.__values__,y)}function JC(p,y,w){var O=p==null?0:p.length;return O?((w=w==null?0:Dt(w))<0&&(w=ri(O+w,0)),la(p,yt(y,3),w)):-1}function WC(p,y,w){var O,R=p==null?0:p.length;return R?(O=R-1,w!==n&&(O=Dt(w),O=w<0?ri(R+O,0):Mi(O,R-1)),la(p,yt(y,3),O,!0)):-1}function XC(p){return p!=null&&p.length?Ci(p,1):[]}function YC(p){return p&&p.length?p[0]:n}function os(p){var y=p==null?0:p.length;return y?p[y-1]:n}function QC(p,y){return p&&p.length&&y&&y.length?Md(p,y):p}Cd=Ft(function(p,y){return Fr(p)?I4(p,Ci(y,1,Fr,!0)):[]}),oa=Ft(function(p,y){var w=os(y);return Fr(w)&&(w=n),Fr(p)?I4(p,Ci(y,1,Fr,!0),yt(w,2)):[]}),A4=Ft(function(p,y){var w=os(y);return Fr(w)&&(w=n),Fr(p)?I4(p,Ci(y,1,Fr,!0),n,w):[]}),tn=Ft(function(p){var y=pn(p,Vd);return y.length&&y[0]===p[0]?Pd(y):[]}),Qu=Ft(function(p){var y=os(p),w=pn(p,Vd);return y===os(w)?y=n:w.pop(),w.length&&w[0]===p[0]?Pd(w,yt(y,2)):[]}),Od=Ft(function(p){var y=os(p),w=pn(p,Vd);return(y=typeof y=="function"?y:n)&&w.pop(),w.length&&w[0]===p[0]?Pd(w,n,y):[]}),Ui=Ft(QC);var tie=Wa(function(p,y){var w=p==null?0:p.length,O=Id(p,y);return fC(p,pn(y,function(R){return Xa(R,w)?+R:R}).sort(xC)),O});function im(p){return p==null?p:Hre.call(p)}var nie=Ft(function(p){return R2(Ci(p,1,Fr,!0))}),rie=Ft(function(p){var y=os(p);return Fr(y)&&(y=n),R2(Ci(p,1,Fr,!0),yt(y,2))}),iie=Ft(function(p){var y=typeof(y=os(p))=="function"?y:n;return R2(Ci(p,1,Fr,!0),n,y)});function lm(p){var y;return p&&p.length?(y=0,p=gi(p,function(w){if(Fr(w))return y=ri(w.length,y),!0}),U6(y,function(w){return pn(p,sa(w))})):[]}function ZC(p,y){return p&&p.length?(p=lm(p),y==null?p:pn(p,function(w){return yi(y,n,w)})):[]}var lie=Ft(function(p,y){return Fr(p)?I4(p,y):[]}),sie=Ft(function(p){return qd(gi(p,Fr))}),aie=Ft(function(p){var y=os(p);return Fr(y)&&(y=n),qd(gi(p,Fr),yt(y,2))}),oie=Ft(function(p){var y=typeof(y=os(p))=="function"?y:n;return qd(gi(p,Fr),n,y)}),uie=Ft(lm),cie=Ft(function(p){var y=typeof(y=1<(y=p.length)?p[y-1]:n)=="function"?(p.pop(),y):n;return ZC(p,y)});function eO(p){return(p=B(p)).__chain__=!0,p}function m8(p,y){return y(p)}var fie=Wa(function(p){function y(q){return Id(q,p)}var w=p.length,O=w?p[0]:0,R=this.__wrapped__;return!(1<w||this.__actions__.length)&&R instanceof Jt&&Xa(O)?((R=R.slice(O,+O+(w?1:0))).__actions__.push({func:m8,args:[y],thisArg:n}),new Ds(R,this.__chain__).thru(function(q){return w&&!q.length&&q.push(n),q})):this.thru(y)}),pie=a8(function(p,y,w){En.call(p,w)?++p[w]:Ka(p,w,1)}),hie=CC(JC),die=CC(WC);function tO(p,y){return(Nt(p)?ti:I2)(p,yt(y,3))}function nO(p,y){return(Nt(p)?function(w,O){for(var R=w==null?0:w.length;R--&&O(w[R],R,w)!==!1;);return w}:QA)(p,yt(y,3))}var mie=a8(function(p,y,w){En.call(p,w)?p[w].push(y):Ka(p,w,[y])}),yie=Ft(function(p,y,w){var O=-1,R=typeof y=="function",q=xl(p)?ye(p.length):[];return I2(p,function(Y){q[++O]=R?yi(y,Y,w):R4(Y,y,w)}),q}),gie=a8(function(p,y,w){Ka(p,w,y)});function y8(p,y){return(Nt(p)?pn:lC)(p,yt(y,3))}var vie=a8(function(p,y,w){p[w?0:1].push(y)},function(){return[[],[]]}),_ie=Ft(function(p,y){var w;return p==null?[]:(1<(w=y.length)&&al(p,y[0],y[1])?y=[]:2<w&&al(y[0],y[1],y[2])&&(y=[y[0]]),uC(p,Ci(y,1),[]))}),g8=am||function(){return yr.Date.now()};function rO(p,y,w){return y=w?n:y,y=p&&y==null?p.length:y,Ja(p,a,n,n,n,n,y)}function iO(p,y){var w;if(typeof y!="function")throw new ls(r);return p=Dt(p),function(){return 0<--p&&(w=y.apply(this,arguments)),p<=1&&(y=n),w}}var sm=Ft(function(p,y,w){var O,R=1;return w.length&&(O=Va(w,i0(sm)),R|=s),Ja(p,R,y,w,O)}),lO=Ft(function(p,y,w){var O,R=3;return w.length&&(O=Va(w,i0(lO)),R|=s),Ja(y,R,p,w,O)});function sO(p,y,w){var O,R,q,Y,ee,oe,he=0,de=!1,Oe=!1,be=!0;if(typeof p!="function")throw new ls(r);function Ee(et){var ct=O,_t=R;return O=R=n,he=et,Y=p.apply(_t,ct)}function Ce(et){var ct=et-oe;return oe===n||y<=ct||ct<0||Oe&&q<=et-he}function ot(){var et=g8();if(Ce(et))return Fe(et);ee=F4(ot,function(ct){var _t=y-(ct-oe);return Oe?Mi(_t,q-(ct-he)):_t}(et))}function Fe(et){return ee=n,be&&O?Ee(e Line truncated
`;if(p.replace(de,function(be,Ee,Ce,ot,Fe,Ue){return Ce=Ce||ot,he+=p.slice(ee,Ue).replace(xr,FA),Ee&&(O=!0,he+=`' +
__e(`+Ee+`) +
'`),Le&&(I=!0,he+=`';
`+Le+`;
'`),Fe&&(R=!0,he+=`';
`+Fe+`;
__p += '`),Ce&&(he+=`' +
((__t = (`+Ce+`)) == null ? '' : __t) +
'`),ee=Ue+be.length,be}),he+=`';
`,oe=En.call(y,"variable")&&y.variable){if(xn.test(oe))throw new ut("Invalid `variable` option passed into `_.template`")}else he=`with (obj) {
`+he+`
}
`;if(he=(I?he.replace(Fe,""):he).replace(Ie,"$1").replace(Te,"$1;"),he="function("+(oe||"obj")+`) {
`;if(he=(R?he.replace(Be,""):he).replace(Re,"$1").replace(Te,"$1;"),he="function("+(oe||"obj")+`) {
`+(oe?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(I?`, __j = Array.prototype.join;
`)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(R?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+he+`return __p
}`,(de=_O(function(){return Ot(q,Oe+"return "+he).apply(n,Y)})).source=he,om(de))throw de;return de},B.times=function(p,y){if((p=Dt(p))<1||u<p)return[];var w=f,O=Fi(p,f);for(y=yt(y),p-=f,O=B6(O,y);++w<p;)y(w);return O},B.toFinite=Ya,B.toInteger=Dt,B.toLength=uO,B.toLower=function(p){return vn(p).toLowerCase()},B.toNumber=us,B.toSafeInteger=function(p){return p?O3(Dt(p),-9007199254740991,u):p===0?p:0},B.toString=vn,B.toUpper=function(p){return vn(p).toUpperCase()},B.trim=function(p,y,w){return(p=vn(p))&&(w||y===n)?Ha(p):p&&(y=Vl(y))?D2(w=Rs(p),M6(w,y=Rs(y)),U6(w,y)+1).join(""):p},B.trimEnd=function(p,y,w){return(p=vn(p))&&(w||y===n)?p.slice(0,kA(p)+1):p&&(y=Vl(y))?D2(w=Rs(p),0,U6(w,Rs(y))+1).join(""):p},B.trimStart=function(p,y,w){return(p=vn(p))&&(w||y===n)?p.replace(Yt,""):p&&(y=Vl(y))?D2(w=Rs(p),M6(w,Rs(y))).join(""):p},B.truncate=function(p,I){var w,Y=30,O="...",I=(br(I)&&(w="separator"in I?I.separator:w,Y="length"in I?Dt(I.length):Y,O="omission"in I?Vl(I.omission):O),(p=vn(p)).length);if((I=w3(p)?(q=Rs(p)).length:I)<=Y)return p;if((I=Y-Ku(O))<1)return O;var q,Y=q?D2(q,0,I).join(""):p.slice(0,I);if(w!==n)if(q&&(I+=Y.length-I),um(w)){if(p.slice(I).search(w)){var ee,oe=Y;for((w=w.global?w:S3(w.source,vn(tl.exec(w))+"g")).lastIndex=0;ee=w.exec(oe);)var he=ee.index;Y=Y.slice(0,he===n?I:he)}}else p.indexOf(Vl(w),I)!=I&&-1<(q=Y.lastIndexOf(w))&&(Y=Y.slice(0,q));return Y+O},B.unescape=function(p){return(p=vn(p))&&gt.test(p)?p.replace(ke,xre):p},B.uniqueId=function(p){var y=++wre;return vn(p)+y},B.upperCase=kie,B.upperFirst=pm,B.each=YC,B.eachRight=QC,B.first=KC,mm(B,(_m={},oa(B,function(p,y){En.call(B.prototype,y)||(_m[y]=p)}),_m),{chain:!1}),B.VERSION="4.17.21",ei(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){B[p].placeholder=B}),ei(["drop","take"],function(p,y){Wt.prototype[p]=function(w){w=w===n?1:ni(Dt(w),0);var O=this.__filtered__&&!y?new Wt(this):this.clone();return O.__filtered__?O.__takeCount__=Fi(w,O.__takeCount__):O.__views__.push({size:Fi(w,f),type:p+(O.__dir__<0?"Right":"")}),O},Wt.prototype[p+"Right"]=function(w){return this.reverse()[p](w).reverse()}}),ei(["filter","map","takeWhile"],function(p,y){var w=y+1,O=w==1||w==3;Wt.prototype[p]=function(I){var q=this.clone();return q.__iteratees__.push({iteratee:yt(I,3),type:w}),q.__filtered__=q.__filtered__||O,q}}),ei(["head","last"],function(p,y){var w="take"+(y?"Right":"");Wt.prototype[p]=function(){return this[w](1).value()[0]}}),ei(["initial","tail"],function(p,y){var w="drop"+(y?"":"Right");Wt.prototype[p]=function(){return this.__filtered__?new Wt(this):this[w](1)}}),Wt.prototype.compact=function(){return this.filter(xl)},Wt.prototype.find=function(p){return this.filter(p).head()},Wt.prototype.findLast=function(p){return this.reverse().find(p)},Wt.prototype.invokeMap=Ft(function(p,y){return typeof p=="function"?new Wt(this):this.map(function(w){return N4(w,p,y)})}),Wt.prototype.reject=function(p){return this.filter(g8(yt(p)))},Wt.prototype.slice=function(p,y){p=Dt(p);var w=this;return w.__filtered__&&(0<p||y<0)?new Wt(w):(p<0?w=w.takeRight(-p):p&&(w=w.drop(p)),y!==n?(y=Dt(y))<0?w.dropRight(-y):w.take(y-p):w)},Wt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Wt.prototype.toArray=function(){return this.take(f)},oa(Wt.prototype,function(p,y){var w=/^(?:filter|find|map|reject)|While$/.test(y),O=/^(?:head|last)$/.test(y),I=B[O?"take"+(y=="last"?"Right":""):y],q=O||/^find/.test(y);I&&(B.prototype[y]=function(){function Y(ot){return ot=I.apply(B,ra([ot],he)),O&&Oe?ot[0]:ot}var ee,oe=this.__wrapped__,he=O?[1]:arguments,Ce=oe instanceof Wt,be=he[0],de=Ce||Nt(oe),Oe=(de&&w&&typeof be=="function"&&be.length!=1&&(Ce=de=!1),this.__chain__),be=!!this.__actions__.length,Ee=q&&!Oe,Ce=Ce&&!be;return!q&&de?(oe=Ce?oe:new Wt(this),(ee=p.apply(oe,he)).__actions__.push({func:h8,args:[Y],thisArg:n}),new Is(ee,Oe)):Ee&&Ce?p.apply(this,he):(ee=this.thru(Y),Ee?O?ee.value()[0]:ee.value():ee)})}),ei(["pop","push","shift","sort","splice","unshift"],function(p){var y=H6[p],w=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);B.prototype[p]=function(){var I,q=arguments;return O&&!this.__chain__?(I=this.value(),y.apply(Nt(I)?I:[],q)):this[w](function(Y){return y.apply(Nt(Y)?Y:[],q)})}}),oa(Wt.prototype,function(p,y){var w,O=B[y];O&&(w=O.name+"",En.call(Qu,w)||(Qu[w]=[]),Qu[w].push({name:y,func:O}))}),Qu[s8(n,2).name]=[{name:"wrapper",func:n}],Wt.prototype.clone=function(){var p=new Wt(this.__wrapped__);return p.__actions__=vl(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=vl(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=vl(this.__views__),p},Wt.prototype.reverse=function(){var p;return this.__filtered__?((p=new Wt(this)).__dir__=-1,p.__filtered__=!0):(p=this.clone()).__dir__*=-1,p},Wt.prototype.value=function(){var p=this.__wrapped__.value(),y=this.__dir__,w=Nt(p),O=y<0,I=w?p.length:0,q=function(Ze,ct,_t){for(var vr=-1,Ir=_t.l Line truncated
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let u=Kwe(o,l);u&&s.push(u)}}else s.push(o)}return s.length!==0&&s[0].name==="EXTM3U"||ze("The EXTM3U tag MUST be the first line."),s}(t,e),r=Wwe(n,e);return r.source=t,r}var Jwe=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],Xwe=["#EXT-X-MEDIA"],lw=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(Jwe.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(Xwe.some(r=>n.startsWith(r)))continue;ze(`Redundant item (${n})`)}super.push(n)}else super.push(n);return this.length}};function uw(t,e){let n=1e3;e&&(n=Math.pow(10,e));let r=Math.round(t*n)/n;return e?r.toFixed(e):r}function Ywe(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function tG(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",r=[`METHOD=${t.method}`];return t.uri&&r.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&ze("IV must be a 128-bit unsigned integer"),r.push(`IV=${Qz(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function Qwe(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",r=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&r.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&r.push(`URI="${e.uri}"`),e.codecs&&r.push(`CODECS="${e.codecs}"`),e.resolution&&r.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&r.push(`FRAME-RATE=${uw(e.frameRate,3)}`),e.hdcpLevel&&r.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){r.push(`AUDIO="${e.audio[0].groupId}"`);for(let i of e.audio)t.push(ip(i))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let i of e.video)t.push(ip(i))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let i of e.subtitles)t.push(ip(i))}if(Mwe().allowClosedCaptionsNone&&e.closedCaptions.length===0)r.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){r.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let i of e.closedCaptions)t.push(ip(i))}if(e.score&&r.push(`SCORE=${e.score}`),e.allowedCpc){let i=[];for(let{format:l,cpcList:s}of e.allowedCpc)i.push(`${l}:${s.join("/")}`);r.push(`ALLOWED-CPC="${i.join(",")}"`)}e.videoRange&&r.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&r.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&r.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${r.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function ip(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push("DEFAULT="+(t.isDefault?"YES":"NO")),t.autoselect!==void 0&&e.push("AUTOSELECT="+(t.autoselect?"YES":"NO")),t.forced!==void 0&&e.push("FORCED="+(t.forced?"YES":"NO")),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function Zwe(t,e,n,r,i=1,l=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let u=tG(e.key);u!==n&&(t.push(u),n=u)}if(e.map){let u=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${tw(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);u!==r&&(t.push(u),r=u)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${ew(e.programDateTime)}`),e.dateRange&&t.push(function(u){let c=[`ID="${u.id}"`];u.start&&c.push(`START-DATE="${ew(u.start)}"`),u.end&&c.push(`END-DATE="${ew(u.end)}"`),u.duration&&c.push(`DURATION=${u.duration}`),u.plannedDuration&&c.push(`PLANNED-DURATION=${u.plannedDuration}`),u.classId&&c.push(`CLASS="${u.classId}"`),u.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(u.attributes))f.startsWith("X-")?typeof u.attributes[f]=="number"?c.push(`${f}=${u.attributes[f]}`):c.push(`${f}="${u.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${Qz(u.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(u,c){let f="";for(let d of c)if(d.type==="OUT")f="OUT",u.push(`#EXT-X-CUE-OUT:DURATION=${d.duration}`);else if(d.type==="IN")f="IN",u.push("#EXT-X-CUE-IN");else if(d.type==="RAW"){let h=d.value?`:${d.value}`:"";u.push(`#${d.tagName}${h}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(u,c){let f=!1;for(let d of c)if(d.hint){let h=[];if(h.push("TYPE=PART",`URI="${d.uri}"`),d.byterange){let{offset:m,length:x}=d.byterange;h.push(`BYTERANGE-START=${m}`),x&&h.push(`BYTERANGE-LENGTH=${x}`)}u.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),f=!0}else{let h=[];h.push( Line truncated
`)}var rG="hls_cache",vp=[],Tu={},Z5={},Su={},gp="";function eSe(t,e){if(vp.push(t),Tu[t]=e,vp.length>5){let n=vp.shift();tSe(n)}}function tSe(t){delete Tu[t],delete vp[t],new JSFile(rG+"/"+t).delete()}function nSe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=cw(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=cw(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=cw(t,n.key.uri));return e}async function iG(t,e){let n=md5X(t);if(Tu[n])return Tu[n];let r={},i=t;for(;r=await req(i,{headers:e,redirect:0}),r.headers.location;)i=r.headers.location;if(r.code==200){var l=r.content;let s=nSe(i,eG(l));return eSe(n,{code:r.code,plist:s,key:n,headers:r.headers}),Tu[n]}return{}}async function lG(t,e,n){if(!Tu[t])return{};let i=Tu[t].plist.segments,l=!Su[t];if(l){Su[t]={};for(let c of i){let f=md5X(c.uri+c.mediaSequenceNumber.toString());Su[t][f]={file:rG+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Su[t]){let f=Su[t][c];f.index>=e?f.order=f.index-e:f.order=i.length-e+f.index}l&&rSe(t,5,n);let s=i[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),o=Su[t][a];if(o.state==1||o.state==-1){let c=new JSFile(o.file);if(await c.exist())return o.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};o.state=-1}if(o.state==-1&&sG(t,o,n),o.state==0){var u=new JSProxyStream;u.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return o.read=!0,new Promise(async function(f,d){let h=new JSFile(o.file+".dl");await h.open("r"),async function m(){let x=await h.size();if(x>c){var b=await h.read(x-c,c);await u.write(b),c=x}if(o.state==1||o.state<0){u.done(),await h.close(),await h.delete(),o.read=!1,f();return}setTimeout(m,5)}()}),{buffer:3,content:u}}}async function sG(t,e,n){if(e.state>=0||!Z5[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let r=new JSFile(e.file+".dl");await r.open("w");let i=await req(e.uri,{buffer:3,headers:n,stream:r,timeout:[5e3,1e4]});if(i.error||i.code>=300){await r.close(),e.read||await r.delete(),e.state=-1;return}await r.close(),e.read?await r.copy(e.file):await r.move(e.file),e.state=1}async function rSe(t,e,n){gp&&gp!=t&&delete Z5[gp],gp=t,Z5[t]=!0;for(let r=0;r<e&&Z5[t];r++)new Promise(function(i,l){(async function s(){if(!Z5[t]){i();return}let a=Q.pickBy(Su[t],function(u){return u.state==-1}),o=Q.minBy(Object.values(a),function(u){return u.order});if(!o){i();return}await sG(t,o,n),setTimeout(s,5)})()})}function cw(t,e){var n=t.split("/"),r=e.split("/");n.pop();for(var i=0;i<r.length;i++)r[i]!="."&&(r[i]==".."?n.pop():n.push(r[i]));return n.join("/")}function aG(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),i=n[4];e.push(`<d p="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${i}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var _p=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new Ta(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Ki,Referer:this.siteUrl+"/"}}async reconnnect(e,n,r,i,l,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),_o(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,n,r,i,l,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,n,r,i,l,s,a){return a.headers.location!==void 0?i?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,r,i,l,s):a.content.length>0?(this.reconnectTimes=0,l?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),await this.reconnnect(e,n,r,i,l,s))}async fetch(e,n,r,i=!1,l=!1,s=0){let a=R1(n),o=e;Q.isEmpty(a)||(o=e+"?"+a);let u=new V5(o),c;return c=await req(u.toString(),{method:"get",headers:r,buffer:s,data:null}),c.code===200||c.code===302||c.code===301||l?await this.getResponse(e,n,r,i,l,s,c):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${u},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),await this.reconnnect(e,n,r,i,l,s))}async getHtml(e=this.siteUrl,n=this.getHeader()){let r=await this.fetch(e,null,n);if(Q.isEmpty(r))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return et(r)}async parseVodShortLisLine truncated
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&JCe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var gJ=Symbol("internals");function h6(t){return t&&String(t).trim().toLowerCase()}function Kp(t){return t===!1||t==null?t:se.isArray(t)?t.map(Kp):String(t)}function XCe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}var YCe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function sS(t,e,n,r,i){if(se.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!se.isString(e)){if(se.isString(r))return e.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(e)}}function QCe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function ZCe(t,e){let n=se.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,l,s){return this[r].call(this,e,i,l,s)},configurable:!0})})}var Z1=class{constructor(e){e&&this.set(e)}set(e,n,r){let i=this;function l(a,o,u){let c=h6(o);if(!c)throw new Error("header name must be a non-empty string");let f=se.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||o]=Kp(a))}let s=(a,o)=>se.forEach(a,(u,c)=>l(u,c,o));return se.isPlainObject(e)||e instanceof this.constructor?s(e,n):se.isString(e)&&(e=e.trim())&&!YCe(e)?s(yJ(e),n):e!=null&&l(n,e,r),this}get(e,n){if(e=h6(e),e){let r=se.findKey(this,e);if(r){let i=this[r];if(!n)return i;if(n===!0)return XCe(i);if(se.isFunction(n))return n.call(this,i,r);if(se.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=h6(e),e){let r=se.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||sS(this,this[r],r,n)))}return!1}delete(e,n){let r=this,i=!1;function l(s){if(s=h6(s),s){let a=se.findKey(r,s);a&&(!n||sS(r,r[a],a,n))&&(delete r[a],i=!0)}}return se.isArray(e)?e.forEach(l):l(e),i}clear(e){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let l=n[r];(!e||sS(this,this[l],l,e,!0))&&(delete this[l],i=!0)}return i}normalize(e){let n=this,r={};return se.forEach(this,(i,l)=>{let s=se.findKey(r,l);if(s){n[s]=Kp(i),delete n[l];return}let a=e?QCe(l):String(l).trim();a!==l&&delete n[l],n[a]=Kp(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return se.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){let r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){let r=(this[gJ]=this[gJ]={accessors:{}}).accessors,i=this.prototype;function l(s){let a=h6(s);r[a]||(ZCe(i,s),r[a]=!0)}return se.isArray(e)?e.forEach(l):l(e),this}};Z1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(Z1.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});se.freezeMethods(Z1);var ui=Z1;function d6(t,e){let n=this||Q1,r=e||n,i=ui.from(r.headers),l=r.data;return se.forEach(t,function(a){l=a.call(n,l,i.normalize(),e?e.status:void 0)}),i.normalize(),l}function m6(t){return!!(t&&t.__CANCEL__)}function vJ(t,e,n){We.call(this,t??"canceled",We.ERR_CANCELED,e,n),this.name="CanceledError"}se.inherits(vJ,We,{__CANCEL__:!0});var Zs=vJ;function To(t,e,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new We("Request failed with status code "+n.status,[We.ERR_BAD_REQUEST,We.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aS(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function oS(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ku(t,e){return t&&!aS(e)?oS(t,e):e}var $J=Br(EJ(),1),HJ=Br(require("http"),1),qJ=Br(require("https"),1),VJ=Br(require("util"),1),zJ=Br(CJ(),1),w2=Br(require("zlib"),1);var Lu="1.6.7";function x6(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var yOe=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function xS(t,e,n){let r=n&&n.Blob||oi.classes.Blob,i=x6(t);if(e===void 0&&r&&(e=!0),i==="data"){t=i.length?t.slice(i.length+1):t;let l=yOe.exec(t);if(!l)throw new We("Invalid URL",We.ERR_INVALID_URL);let s=l[1],a=l[2],o=l[3],u=Buffer.from(decodeURIComponent(o),a?"base64":"utf8");if(e){if(!r)throw new We("Blob is not supported",We.ERR_NOT_SUPPORT);return new r([u],{type:s})}return u}throw new We("Unsupported protocol "+i,We.ERR_NOT_SUPPORT)}var Fu=Br(require("stream"),1);var NJ=Br(require("stream"),1);function gOe(t,e){let n=0,r=1e3/e,i=null;return function(s,a){let o=Date.now();if(s||o-n>r)return i&&(clearTimeout(i),i=null),n=o,t.apply(null,a);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,a)),r-(o-n)))}}var OJ=gOe;function vOe(t,e){t=t||10;let n=new Array(t),r=new Array(t),i=0,l=0,s;return e=e!==void 0?e:1e3,function(o){let u=Date.now(),c=r[l];s||(s=u),n[i]=o,r[i]=u;let f=l,d=0;for(;f!==i;)d+=n[f++],f=f%t;if(i=(i+1)%t,i===l&&(l=(l+1)%t),u-s<e)return;let h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}var Wp=vOe;var Jp=Symbol("internals"),bS=class extends NJ.default.Transform{constructor(e){e=se.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,o)=>!se.isUndefined(o[a])),super({readableHighWaterMark:e.chunkSize});let n=this,r=this[Jp]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=Wp(r.ticksRate*e.samplesCount,r.timeWindow);this.on("newListener",a=>{a==="progress"&&(r.isCaptured||(r.isCaptured=!0))});let l=0;r.updateProgress=OJ(function(){let o=r.length,u=r.bytesSeen,c=u-l;if(!c||n.destroyed)return;let f=i(c);l=u,process.nextTick(()=>{n.emit("progress",{loaded:u,total:o,progress:o?u/o:void 0,bytes:c,rate:f||void 0,estimated:f&&o&&u<=o?(o-u)/f:void 0})})},r.ticksRate);let s=()=>{r.updateProgress(!0)};this.once("end",s),this.once("error",s)}_read(e){let n=this[Jp];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,r){let i=this,l=this[Jp],s=l.maxRate,a=this.readableHighWaterMark,o=l.timeWindow,u=1e3/o,c=s/u,f=l.minChunkSize!==!1?Math.max(l.minChunkSize,c*.01):0;function d(m,x){let b=Buffer.byteLength(m);l.bytesSeen+=b,l.bytes+=b,l.isCaptured&&l.updateProgress(),i.push(m)?process.nextTick(x):l.onReadCallback=()=>{l.onReadCallback=null,process.nextTick(x)}}let h=(m,x)=>{let b=Buffer.byteLength(m),_=null,E=a,v,g=0;if(s){let S=Date.now();(!l.ts||(g=S-l.ts)>=o)&&(l.ts=S,v=c-l.bytes,l.bytes=v<0?-v:0,g=0),v=c-l.bytes}if(s){if(v<=0)return setTimeout(()=>{x(null,m)},o-g);v<E&&(E=v)}E&&b>E&&b-E>f&&(_=m.subarray(E),m=m.subarray(0,E)),d(m,_?()=>{process.nextTick(x,null,_)}:x)};h(e,function m(x,b){if(x)return r(x);b?h(b,m):r(null)})}setLength(e){return this[Jp].length=+e,this}},wS=bS;var GJ=Br(require("events"),1);var IJ=require("util"),DJ=require("stream");var{asyncIterator:RJ}=Symbol,_Oe=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[RJ]?yield*t[RJ]():yield t},Xp=_Oe;var EOe=se.ALPHABET.ALPHA_DIGIT+"-_",b6=new IJ.TextEncoder,Ao=`\r
`,xOe=b6.encode(Ao),bOe=2,SS=class{constructor(e,n){let{escapeName:r}=this.constructor,i=se.isString(n),l=`Content-Disposition: form-data; name="${r(e)}"${!i&&n.name?`; filename="${r(n.name)}"`:""}${Ao}`;i?n=b6.encode(String(n).replace(/\r?\n|\r\n?/g,Ao)):l+=`Content-Type: ${n.type||"application/octet-stream"}${Ao}`,this.headers=b6.encode(l+Ao),this.contentLength=i?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+bOe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;se.isTypedArray(e)?yield e:yield*Xp(e),yield xOe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},wOe=(t,e,n)=>{let{tag:r="form-data-boundary",size:i=25,boundary:l=r+"-"+se.generateString(i,EOe)}=n||{};if(!se.isFormData(t))throw TypeError("FormData instance required");if(l.length<1||l.length>70)throw Error("boundary must be 10-70 characters long");let s=b6.encode("--"+l+Ao),a=b6.encode("--"+l+"--"+Ao+Ao),o=a.byteLength,u=Array.from(t.entries()).map(([f,d])=>{let h=new SS(f,d);return o+=h.size,h});o+=s.byteLength*u.length,o=se.toFiniteNumber(o);let c={"Content-Type":`multipart/form-data; boundary=${l}`};return Number.isFinite(o)&&(c["Content-Length"]=o),e&&e(c),DJ.Readable.from(async function*(){for(let f of u)yield s,yield*f.encode();yield a}())},kJ=wOe;var PJ=Br(require("stream"),1),TS=class extends PJ.default.Transform{__transform(e,n,r){this.push(e),r()}_transform(e,n,r){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,n)}this.__transform(e,n,r)}},LJ=TS;var SOe=(t,e)=>se.isAsyncFn(t)?function(...n){let r=n.pop();t.apply(this,n).then(i=>{try{e?r(null,...e(i)):r(null,i)}catch(l){r(l)}},r)}:t,FJ=SOe;var BJ={flush:w2.default.constants.Z_SYNC_FLUSH,finishFlush:w2.default.constants.Z_SYNC_FLUSH},TOe={flush:w2.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:w2.default.constants.BROTLI_OPERATION_FLUSH},MJ=se.isFunction(w2.default.createBrotliDecompress),{http:AOe,https:COe}=zJ.default,OOe=/https:?/,UJ=oi.protocols.map(t=>t+":");function NOe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function KJ(t,e,n){let r=e;if(!r&&r!==!1){let i=(0,$J.getProxyForUrl)(n);i&&(r=new URL(i))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));let l=Buffer.from(r.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+l}t.headers.host=t.hostname+(t.port?":"+t.port:"");let i=r.hostname||r.host;t.hostname=i,t.host=i,t.port=r.port,t.path=n,r.protocol&&(t.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}t.beforeRedirects.proxy=function(l){KJ(l,e,l.href)}}var ROe=typeof process<"u"&&se.kindOf(process)==="process",IOe=t=>new Promise((e,n)=>{let r,i,l=(o,u)=>{i||(i=!0,r&&r(o,u))},s=o=>{l(o),e(o)},a=o=>{l(o,!0),n(o)};t(s,a,o=>r=o).catch(a)}),DOe=({address:t,family:e})=>{if(!se.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},jJ=(t,e)=>DOe(se.isObject(t)?t:{address:t,family:e}),WJ=ROe&&function(e){return IOe(async function(r,i,l){let{data:s,lookup:a,family:o}=e,{responseType:u,responseEncoding:c}=e,f=e.method.toUpperCase(),d,h=!1,m;if(a){let J=FJ(a,re=>se.isArray(re)?re:[re]);a=(re,R,M)=>{J(re,R,(F,L,Ge)=>{if(F)return M(F);let Fe=se.isArray(L)?L.map(Ie=>jJ(Ie)):[jJ(L,Ge)];R.all?M(F,Fe):M(F,Fe[0].address,Fe[0].family)})}}let x=new GJ.default,b=()=>{e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_),x.removeAllListeners()};l((J,re)=>{d=!0,re&&(h=!0,b())});function _(J){x.emit("abort",!J||J.type?new Zs(null,e,m):J)}x.once("abort",i),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(_),e.signal&&(e.signal.aborted?_():e.signal.addEventListener("abort",_)));let E=ku(e.baseURL,e.url),v=new URL(E,"http://localhost"),g=v.protocol||UJ[0];if(g==="data:"){let J;if(f!=="GET")return To(r,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{J=xS(e.url,u==="blob",{Blob:e.env&&e.env.Blob})}catch(re){throw We.from(re,We.ERR_BAD_REQUEST,e)}return u==="text"?(J=J.toString(c),(!c||c==="utf8")&&(J=se.stripBOM(J))):u==="stream"&&(J=Fu.default.Readable.from(J)),To(r,i,{data:J,status:200,statusText:"OK",headers:new ui,config:e})}if(UJ.indexOf(g)===-1)return i(new We("Unsupported protocol "+g,We.ERR_BAD_REQUEST,e));let S=ui.from(e.headers).normalize();S.set("User-Agent","axios/"+Lu,!1);let A=e.onDownloadProgress,C=e.onUploadProgress,N=e.maxRate,k,P;if(se.isSpecCompliantForm(s)){let J=S.getContentType(/boundary=([-_\w\d]{10,70})/i);s=kJ(s,re=>{S.set(re)},{tag:`axios-${Lu}-boundary`,boundary:J&&J[1]||void 0})}else if(se.isFormData(s)&&se.isFunction(s.getHeaders)){if(S.set(s.getHeaders()),!S.hasContentLength())try{let J=await VJ.default.promisify(s.getLength).call(s);Number.isFinite(J Line truncated
`+l.map(ZJ).join(`
`):" "+ZJ(l[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:AS};function CS(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Zs(null,t)}function Qp(t){return CS(t),t.headers=ui.from(t.headers),t.data=d6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Yp.getAdapter(t.adapter||Q1.adapter)(t).then(function(r){return CS(t),r.data=d6.call(t,t.transformResponse,r),r.headers=ui.from(r.headers),r},function(r){return m6(r)||(CS(t),r&&r.response&&(r.response.data=d6.call(t,t.transformResponse,r.response),r.response.headers=ui.from(r.response.headers))),Promise.reject(r)})}var eX=t=>t instanceof ui?t.toJSON():t;function S2(t,e){e=e||{};let n={};function r(u,c,f){return se.isPlainObject(u)&&se.isPlainObject(c)?se.merge.call({caseless:f},u,c):se.isPlainObject(c)?se.merge({},c):se.isArray(c)?c.slice():c}function i(u,c,f){if(se.isUndefined(c)){if(!se.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function l(u,c){if(!se.isUndefined(c))return r(void 0,c)}function s(u,c){if(se.isUndefined(c)){if(!se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}let o={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(eX(u),eX(c),!0)};return se.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=o[c]||i,d=f(t[c],e[c],c);se.isUndefined(d)&&f!==a||(n[c]=d)}),n}var OS={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{OS[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var tX={};OS.transitional=function(e,n,r){function i(l,s){return"[Axios v"+Lu+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(e===!1)throw new We(i(s," has been removed"+(n?" in "+n:"")),We.ERR_DEPRECATED);return n&&!tX[s]&&(tX[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,s,a):!0}};function LOe(t,e,n){if(typeof t!="object")throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),i=r.length;for(;i-- >0;){let l=r[i],s=e[l];if(s){let a=t[l],o=a===void 0||s(a,l,t);if(o!==!0)throw new We("option "+l+" must be "+o,We.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new We("Unknown option "+l,We.ERR_BAD_OPTION)}}var Zp={assertOptions:LOe,validators:OS};var Co=Zp.validators,t4=class{constructor(e){this.defaults=e,this.interceptors={request:new nS,response:new nS}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let l=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+l):r.stack=l}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=S2(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Zp.assertOptions(r,{silentJSONParsing:Co.transitional(Co.boolean),forcedJSONParsing:Co.transitional(Co.boolean),clarifyTimeoutError:Co.transitional(Co.boolean)},!1),i!=null&&(se.isFunction(i)?n.paramsSerializer={serialize:i}:Zp.assertOptions(i,{encode:Co.function,serialize:Co.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&se.merge(l.common,l[n.method]);l&&se.forEach(["delete","get","head","post","put","patch","common"],m=>{delete l[m]}),n.headers=ui.concat(s,l);let a=[],o=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(o=o&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});let u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let c,f=0,d;if(!o){let m=[Qp.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f<d;)c=c.then(m[f++],m[f++]);return c}d=a.length;let h=n;for(f=0;f<d;){let m=a[f++],x=a[f++];try{h=m(h)}catch(b){x.call(this,b);break}}try{c=Qp.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=S2(this.defaults,e);let n=ku(e.baseURL,e.url);return Du(n,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){t4.prototype[e]=function(n,r){return this.request(S2(r||{},{method:e,url:n,data:(r||{}).data}))}});se.forEach(["post","put","patch"],function(e){function n(r){return function(l,s,a){return this.request(S2(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}t4.prototype[e]=n(),t4.prototype[e+"Form"]=n(!0)});var w6=t4;var NS=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});let r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l,s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},e(function(l,s,a){r.reason||(r.reason=new Zs(l,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new t(function(i){e=i}),cancel:e}}},nX=NS;function RS(t){return function(n){return t.apply(null,n)}}function IS(t){return se.isObject(t)&&t.isAxiosError===!0}var DS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(DS).forEach(([t,e])=>{DS[e]=t});var rX=DS;function iX(t){let e=new w6(t),n=c6(w6.prototype.request,e);return se.extend(n,w6.prototype,e,{allOwnKeys:!0}),se.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return iX(S2(t,i))},n}var Wr=iX(Q1);Wr.Axios=w6;Wr.CanceledError=Zs;Wr.CancelToken=nX;Wr.isCancel=m6;Wr.VERSION=Lu;Wr.toFormData=So;Wr.AxiosError=We;Wr.Cancel=Wr.CanceledError;Wr.all=function(e){return Promise.all(e)};Wr.spread=RS;Wr.isAxiosError=IS;Wr.mergeConfig=S2;Wr.AxiosHeaders=ui;Wr.formToJSON=t=>Gp(se.isHTMLForm(t)?new FormData(t):t);Wr.getAdapter=Yp.getAdapter;Wr.HttpStatusCode=rX;Wr.default=Wr;var n4=Wr;var{Axios:Yqe,AxiosError:Qqe,CanceledError:Zqe,isCancel:eVe,CancelToken:tVe,VERSION:nVe,all:rVe,Cancel:iVe,isAxiosError:lVe,spread:sVe,toFormData:lX,AxiosHeaders:aVe,HttpStatusCode:oVe,formToJSON:uVe,getAdapter:cVe,mergeConfig:fVe}=n4;var aX=Br(require("https"),1),oX=Br(require("crypto"),1),kS={};globalThis.dataBase=null;globalThis.local={get:async function(t,e){return await FOe(t,e)},set:async fu Line truncated
`+t)}globalThis.req=jOe;async function jOe(t,e){try{let n=e&&e.data||null,r=e&&e.postType||null,i=e&&e.buffer||0,l=e&&e.timeout||5e3,s=(e&&e.redirect||1)===1,a=e?e.headers||{}:{};r==="form"?(a["Content-Type"]="application/x-www-form-urlencoded",n!=null&&(n=sX.default.stringify(n,{encode:!1}))):r==="form-data"&&(a["Content-Type"]="multipart/form-data",n=lX(n));let u=await n4(t,{responseType:i===1||i===2?"arraybuffer":void 0,method:e&&e.method||"get",headers:a,data:n,timeout:l,maxRedirects:s?null:0,httpsAgent:aX.default.Agent({rejectUnauthorized:!1})});n=u.data;let c={};for(let f of u.headers){let d=f[1];c[f[0]]=Array.isArray(d)&&d.length===1?d[0]:d}if(!i)typeof n=="object"&&(n=JSON.stringify(n));else{if(i===1)return{code:u.status,headers:c,content:n};if(i===2)return{code:u.status,headers:c,content:n.toString("base64")};if(i===3){let f=e.stream;return f.onResp&&await f.onResp({code:u.status,headers:c}),f.onData?(n.on("data",async d=>{await f.onData(d)}),n.on("end",async()=>{f.onDone&&await f.onDone()})):f.onDone&&await f.onDone(),"stream..."}}return{code:u.status,headers:c,content:n}}catch(n){let r=n.response;try{return{code:r.status,headers:r.headers,content:JSON.stringify(r.data)}}catch{return{headers:{},content:""}}}}globalThis.md5X=$Oe;function $Oe(t){return oX.default.createHash("md5").update(Buffer.from(t,"utf8")).digest("hex")}globalThis.js2Proxy=function(t,e,n){let r=Object.keys(n).length===0?"_":encodeURIComponent(JSON.stringify(n));return t.server.address().dynamic+t.server.prefix+"/proxy/"+encodeURIComponent(e)+"/"+r+"/"};var HOe=["DEBUG","INFO","WARNING","ERROR"];var r4=class{constructor(e,n="DEBUG"){this.app_name=e,this.level=n,this.level_index=HOe.indexOf(n)}format(e,n){let r=80;switch(e){case"INFO":r=r+1;break;case"WARNING":r=r-2;break;default:break}return n.length<r&&((r-n.length)%2===0?n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)):n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)+1)),n}getTime(){let e=new Date;return e.toLocaleDateString().replace(/\//g,"-")+" "+e.toTimeString().substr(0,8)+","+e.getMilliseconds().toString()}formatMessage(e,n,r){return r&&(n=this.format(e,n)),`${this.getTime()} - ${this.app_name} - ${e}: ${n}`}async log(e){console.debug(e)}async info(e,n){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,n))}async warning(e,n){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,n))}async error(e,n){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,n))}async debug(e,n){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,n))}};var He=class extends Xe{constructor(){super(),this.jadeLog=new r4(this.getAppName(),"DEBUG")}async init(e,n){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(r){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+r,!1)}}catch(r){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${r}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return Q.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return Q.isEmpty(e)?this.filterObj:e}async home(e,n){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await this Line truncated
}`,(de=wO(function(){return Ot(q,Oe+"return "+he).apply(n,Y)})).source=he,cm(de))throw de;return de},B.times=function(p,y){if((p=Dt(p))<1||u<p)return[];var w=f,O=Mi(p,f);for(y=yt(y),p-=f,O=U6(O,y);++w<p;)y(w);return O},B.toFinite=Qa,B.toInteger=Dt,B.toLength=hO,B.toLower=function(p){return vn(p).toLowerCase()},B.toNumber=cs,B.toSafeInteger=function(p){return p?I3(Dt(p),-9007199254740991,u):p===0?p:0},B.toString=vn,B.toUpper=function(p){return vn(p).toUpperCase()},B.trim=function(p,y,w){return(p=vn(p))&&(w||y===n)?qa(p):p&&(y=Gl(y))?k2(w=Rs(p),j6(w,y=Rs(y)),$6(w,y)+1).join(""):p},B.trimEnd=function(p,y,w){return(p=vn(p))&&(w||y===n)?p.slice(0,BA(p)+1):p&&(y=Gl(y))?k2(w=Rs(p),0,$6(w,Rs(y))+1).join(""):p},B.trimStart=function(p,y,w){return(p=vn(p))&&(w||y===n)?p.replace(Zt,""):p&&(y=Gl(y))?k2(w=Rs(p),j6(w,Rs(y))).join(""):p},B.truncate=function(p,R){var w,Y=30,O="...",R=(wr(R)&&(w="separator"in R?R.separator:w,Y="length"in R?Dt(R.length):Y,O="omission"in R?Gl(R.omission):O),(p=vn(p)).length);if((R=T3(p)?(q=Rs(p)).length:R)<=Y)return p;if((R=Y-Wu(O))<1)return O;var q,Y=q?k2(q,0,R).join(""):p.slice(0,R);if(w!==n)if(q&&(R+=Y.length-R),fm(w)){if(p.slice(R).search(w)){var ee,oe=Y;for((w=w.global?w:A3(w.source,vn(rl.exec(w))+"g")).lastIndex=0;ee=w.exec(oe);)var he=ee.index;Y=Y.slice(0,he===n?R:he)}}else p.indexOf(Gl(w),R)!=R&&-1<(q=Y.lastIndexOf(w))&&(Y=Y.slice(0,q));return Y+O},B.unescape=function(p){return(p=vn(p))&&gt.test(p)?p.replace(ke,Dre):p},B.uniqueId=function(p){var y=++Pre;return vn(p)+y},B.upperCase=Vie,B.upperFirst=dm,B.each=tO,B.eachRight=nO,B.first=YC,gm(B,(xm={},ua(B,function(p,y){En.call(B.prototype,y)||(xm[y]=p)}),xm),{chain:!1}),B.VERSION="4.17.21",ti(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){B[p].placeholder=B}),ti(["drop","take"],function(p,y){Jt.prototype[p]=function(w){w=w===n?1:ri(Dt(w),0);var O=this.__filtered__&&!y?new Jt(this):this.clone();return O.__filtered__?O.__takeCount__=Mi(w,O.__takeCount__):O.__views__.push({size:Mi(w,f),type:p+(O.__dir__<0?"Right":"")}),O},Jt.prototype[p+"Right"]=function(w){return this.reverse()[p](w).reverse()}}),ti(["filter","map","takeWhile"],function(p,y){var w=y+1,O=w==1||w==3;Jt.prototype[p]=function(R){var q=this.clone();return q.__iteratees__.push({iteratee:yt(R,3),type:w}),q.__filtered__=q.__filtered__||O,q}}),ti(["head","last"],function(p,y){var w="take"+(y?"Right":"");Jt.prototype[p]=function(){return this[w](1).value()[0]}}),ti(["initial","tail"],function(p,y){var w="drop"+(y?"":"Right");Jt.prototype[p]=function(){return this.__filtered__?new Jt(this):this[w](1)}}),Jt.prototype.compact=function(){return this.filter(wl)},Jt.prototype.find=function(p){return this.filter(p).head()},Jt.prototype.findLast=function(p){return this.reverse().find(p)},Jt.prototype.invokeMap=Ft(function(p,y){return typeof p=="function"?new Jt(this):this.map(function(w){return R4(w,p,y)})}),Jt.prototype.reject=function(p){return this.filter(_8(yt(p)))},Jt.prototype.slice=function(p,y){p=Dt(p);var w=this;return w.__filtered__&&(0<p||y<0)?new Jt(w):(p<0?w=w.takeRight(-p):p&&(w=w.drop(p)),y!==n?(y=Dt(y))<0?w.dropRight(-y):w.take(y-p):w)},Jt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Jt.prototype.toArray=function(){return this.take(f)},ua(Jt.prototype,function(p,y){var w=/^(?:filter|find|map|reject)|While$/.test(y),O=/^(?:head|last)$/.test(y),R=B[O?"take"+(y=="last"?"Right":""):y],q=O||/^find/.test(y);R&&(B.prototype[y]=function(){function Y(ot){return ot=R.apply(B,ia([ot],he)),O&&Oe?ot[0]:ot}var ee,oe=this.__wrapped__,he=O?[1]:arguments,Ce=oe instanceof Jt,be=he[0],de=Ce||Nt(oe),Oe=(de&&w&&typeof be=="function"&&be.length!=1&&(Ce=de=!1),this.__chain__),be=!!this.__actions__.length,Ee=q&&!Oe,Ce=Ce&&!be;return!q&&de?(oe=Ce?oe:new Jt(this),(ee=p.apply(oe,he)).__actions__.push({func:m8,args:[Y],thisArg:n}),new Ds(ee,Oe)):Ee&&Ce?p.apply(this,he):(ee=this.thru(Y),Ee?O?ee.value()[0]:ee.value():ee)})}),ti(["pop","push","shift","sort","splice","unshift"],function(p){var y=V6[p],w=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);B.prototype[p]=function(){var R,q=arguments;return O&&!this.__chain__?(R=this.value(),y.apply(Nt(R)?R:[],q)):this[w](function(Y){return y.apply(Nt(Y)?Y:[],q)})}}),ua(Jt.prototype,function(p,y){var w,O=B[y];O&&(w=O.name+"",En.call(e0,w)||(e0[w]=[]),e0[w].push({name:y,func:O}))}),e0[o8(n,2).name]=[{name:"wrapper",func:n}],Jt.prototype.clone=function(){var p=new Jt(this.__wrapped__);return p.__actions__=El(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=El(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=El(this.__views__),p},Jt.prototype.reverse=function(){var p;return this.__filtered__?((p=new Jt(this)).__dir__=-1,p.__filtered__=!0):(p=this.clone()).__dir__*=-1,p},Jt.prototype.value=function(){var p=this.__wrapped__.value(),y=this.__dir__,w=Nt(p),O=y<0,R=w?p.length:0,q=function(et,ct,_t){for(var _r=-1,Dr=_t.l Line truncated
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let u=iSe(o,l);u&&s.push(u)}}else s.push(o)}return s.length!==0&&s[0].name==="EXTM3U"||ze("The EXTM3U tag MUST be the first line."),s}(t,e),r=lSe(n,e);return r.source=t,r}var sSe=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],aSe=["#EXT-X-MEDIA"],aw=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(sSe.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(aSe.some(r=>n.startsWith(r)))continue;ze(`Redundant item (${n})`)}super.push(n)}else super.push(n);return this.length}};function fw(t,e){let n=1e3;e&&(n=Math.pow(10,e));let r=Math.round(t*n)/n;return e?r.toFixed(e):r}function oSe(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function lG(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",r=[`METHOD=${t.method}`];return t.uri&&r.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&ze("IV must be a 128-bit unsigned integer"),r.push(`IV=${nG(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function uSe(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",r=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&r.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&r.push(`URI="${e.uri}"`),e.codecs&&r.push(`CODECS="${e.codecs}"`),e.resolution&&r.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&r.push(`FRAME-RATE=${fw(e.frameRate,3)}`),e.hdcpLevel&&r.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){r.push(`AUDIO="${e.audio[0].groupId}"`);for(let i of e.audio)t.push(sp(i))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let i of e.video)t.push(sp(i))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let i of e.subtitles)t.push(sp(i))}if(Wwe().allowClosedCaptionsNone&&e.closedCaptions.length===0)r.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){r.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let i of e.closedCaptions)t.push(sp(i))}if(e.score&&r.push(`SCORE=${e.score}`),e.allowedCpc){let i=[];for(let{format:l,cpcList:s}of e.allowedCpc)i.push(`${l}:${s.join("/")}`);r.push(`ALLOWED-CPC="${i.join(",")}"`)}e.videoRange&&r.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&r.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&r.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${r.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function sp(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push("DEFAULT="+(t.isDefault?"YES":"NO")),t.autoselect!==void 0&&e.push("AUTOSELECT="+(t.autoselect?"YES":"NO")),t.forced!==void 0&&e.push("FORCED="+(t.forced?"YES":"NO")),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function cSe(t,e,n,r,i=1,l=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let u=lG(e.key);u!==n&&(t.push(u),n=u)}if(e.map){let u=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${rw(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);u!==r&&(t.push(u),r=u)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${nw(e.programDateTime)}`),e.dateRange&&t.push(function(u){let c=[`ID="${u.id}"`];u.start&&c.push(`START-DATE="${nw(u.start)}"`),u.end&&c.push(`END-DATE="${nw(u.end)}"`),u.duration&&c.push(`DURATION=${u.duration}`),u.plannedDuration&&c.push(`PLANNED-DURATION=${u.plannedDuration}`),u.classId&&c.push(`CLASS="${u.classId}"`),u.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(u.attributes))f.startsWith("X-")?typeof u.attributes[f]=="number"?c.push(`${f}=${u.attributes[f]}`):c.push(`${f}="${u.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${nG(u.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(u,c){let f="";for(let d of c)if(d.type==="OUT")f="OUT",u.push(`#EXT-X-CUE-OUT:DURATION=${d.duration}`);else if(d.type==="IN")f="IN",u.push("#EXT-X-CUE-IN");else if(d.type==="RAW"){let h=d.value?`:${d.value}`:"";u.push(`#${d.tagName}${h}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(u,c){let f=!1;for(let d of c)if(d.hint){let h=[];if(h.push("TYPE=PART",`URI="${d.uri}"`),d.byterange){let{offset:m,length:x}=d.byterange;h.push(`BYTERANGE-START=${m}`),x&&h.push(`BYTERANGE-LENGTH=${x}`)}u.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),f=!0}else{let h=[];h.push( Line truncated
`)}var aG="hls_cache",Ep=[],Cu={},t6={},Au={},_p="";function fSe(t,e){if(Ep.push(t),Cu[t]=e,Ep.length>5){let n=Ep.shift();pSe(n)}}function pSe(t){delete Cu[t],delete Ep[t],new JSFile(aG+"/"+t).delete()}function hSe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=pw(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=pw(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=pw(t,n.key.uri));return e}async function oG(t,e){let n=md5X(t);if(Cu[n])return Cu[n];let r={},i=t;for(;r=await req(i,{headers:e,redirect:0}),r.headers.location;)i=r.headers.location;if(r.code==200){var l=r.content;let s=hSe(i,iG(l));return fSe(n,{code:r.code,plist:s,key:n,headers:r.headers}),Cu[n]}return{}}async function uG(t,e,n){if(!Cu[t])return{};let i=Cu[t].plist.segments,l=!Au[t];if(l){Au[t]={};for(let c of i){let f=md5X(c.uri+c.mediaSequenceNumber.toString());Au[t][f]={file:aG+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Au[t]){let f=Au[t][c];f.index>=e?f.order=f.index-e:f.order=i.length-e+f.index}l&&dSe(t,5,n);let s=i[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),o=Au[t][a];if(o.state==1||o.state==-1){let c=new JSFile(o.file);if(await c.exist())return o.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};o.state=-1}if(o.state==-1&&cG(t,o,n),o.state==0){var u=new JSProxyStream;u.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return o.read=!0,new Promise(async function(f,d){let h=new JSFile(o.file+".dl");await h.open("r"),async function m(){let x=await h.size();if(x>c){var b=await h.read(x-c,c);await u.write(b),c=x}if(o.state==1||o.state<0){u.done(),await h.close(),await h.delete(),o.read=!1,f();return}setTimeout(m,5)}()}),{buffer:3,content:u}}}async function cG(t,e,n){if(e.state>=0||!t6[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let r=new JSFile(e.file+".dl");await r.open("w");let i=await req(e.uri,{buffer:3,headers:n,stream:r,timeout:[5e3,1e4]});if(i.error||i.code>=300){await r.close(),e.read||await r.delete(),e.state=-1;return}await r.close(),e.read?await r.copy(e.file):await r.move(e.file),e.state=1}async function dSe(t,e,n){_p&&_p!=t&&delete t6[_p],_p=t,t6[t]=!0;for(let r=0;r<e&&t6[t];r++)new Promise(function(i,l){(async function s(){if(!t6[t]){i();return}let a=Q.pickBy(Au[t],function(u){return u.state==-1}),o=Q.minBy(Object.values(a),function(u){return u.order});if(!o){i();return}await cG(t,o,n),setTimeout(s,5)})()})}function pw(t,e){var n=t.split("/"),r=e.split("/");n.pop();for(var i=0;i<r.length;i++)r[i]!="."&&(r[i]==".."?n.pop():n.push(r[i]));return n.join("/")}function fG(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),i=n[4];e.push(`<d p="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${i}]]></d>`)}),String.raw`<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var xp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new Aa(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Wi,Referer:this.siteUrl+"/"}}async reconnnect(e,n,r,i,l,s){return await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Eo(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,await this.fetch(e,n,r,i,l,s)):(await this.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}async getResponse(e,n,r,i,l,s,a){return a.headers.location!==void 0?i?(await this.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,r,i,l,s):a.content.length>0?(this.reconnectTimes=0,l?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),await this.reconnnect(e,n,r,i,l,s))}async fetch(e,n,r,i=!1,l=!1,s=0){let a=D1(n),o=e;Q.isEmpty(a)||(o=e+"?"+a);let u=new G5(o),c;return c=await req(u.toString(),{method:"get",headers:r,buffer:s,data:null}),c.code===200||c.code===302||c.code===301||l?await this.getResponse(e,n,r,i,l,s,c):(await this.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${u},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),await this.reconnnect(e,n,r,i,l,s))}async getHtml(e=this.siteUrl,n=this.getHeader()){let r=await this.fetch(e,null,n);if(Q.isEmpty(r))await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);else return tt(r)}async parseVodShortLisLine truncated
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&sOe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var xW=Symbol("internals");function m6(t){return t&&String(t).trim().toLowerCase()}function Wp(t){return t===!1||t==null?t:se.isArray(t)?t.map(Wp):String(t)}function aOe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}var oOe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function oS(t,e,n,r,i){if(se.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!se.isString(e)){if(se.isString(r))return e.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(e)}}function uOe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function cOe(t,e){let n=se.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,l,s){return this[r].call(this,e,i,l,s)},configurable:!0})})}var t4=class{constructor(e){e&&this.set(e)}set(e,n,r){let i=this;function l(a,o,u){let c=m6(o);if(!c)throw new Error("header name must be a non-empty string");let f=se.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||o]=Wp(a))}let s=(a,o)=>se.forEach(a,(u,c)=>l(u,c,o));return se.isPlainObject(e)||e instanceof this.constructor?s(e,n):se.isString(e)&&(e=e.trim())&&!oOe(e)?s(EW(e),n):e!=null&&l(n,e,r),this}get(e,n){if(e=m6(e),e){let r=se.findKey(this,e);if(r){let i=this[r];if(!n)return i;if(n===!0)return aOe(i);if(se.isFunction(n))return n.call(this,i,r);if(se.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=m6(e),e){let r=se.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||oS(this,this[r],r,n)))}return!1}delete(e,n){let r=this,i=!1;function l(s){if(s=m6(s),s){let a=se.findKey(r,s);a&&(!n||oS(r,r[a],a,n))&&(delete r[a],i=!0)}}return se.isArray(e)?e.forEach(l):l(e),i}clear(e){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let l=n[r];(!e||oS(this,this[l],l,e,!0))&&(delete this[l],i=!0)}return i}normalize(e){let n=this,r={};return se.forEach(this,(i,l)=>{let s=se.findKey(r,l);if(s){n[s]=Wp(i),delete n[l];return}let a=e?uOe(l):String(l).trim();a!==l&&delete n[l],n[a]=Wp(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return se.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){let r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){let r=(this[xW]=this[xW]={accessors:{}}).accessors,i=this.prototype;function l(s){let a=m6(s);r[a]||(cOe(i,s),r[a]=!0)}return se.isArray(e)?e.forEach(l):l(e),this}};t4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(t4.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});se.freezeMethods(t4);var fi=t4;function y6(t,e){let n=this||e4,r=e||n,i=fi.from(r.headers),l=r.data;return se.forEach(t,function(a){l=a.call(n,l,i.normalize(),e?e.status:void 0)}),i.normalize(),l}function g6(t){return!!(t&&t.__CANCEL__)}function bW(t,e,n){We.call(this,t??"canceled",We.ERR_CANCELED,e,n),this.name="CanceledError"}se.inherits(bW,We,{__CANCEL__:!0});var ea=bW;function Ao(t,e,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new We("Request failed with status code "+n.status,[We.ERR_BAD_REQUEST,We.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function uS(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cS(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Lu(t,e){return t&&!uS(e)?cS(t,e):e}var zW=Mr(SW(),1),GW=Mr(require("http"),1),KW=Mr(require("https"),1),JW=Mr(require("util"),1),WW=Mr(RW(),1),S2=Mr(require("zlib"),1);var Bu="1.6.7";function w6(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var COe=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function wS(t,e,n){let r=n&&n.Blob||ci.classes.Blob,i=w6(t);if(e===void 0&&r&&(e=!0),i==="data"){t=i.length?t.slice(i.length+1):t;let l=COe.exec(t);if(!l)throw new We("Invalid URL",We.ERR_INVALID_URL);let s=l[1],a=l[2],o=l[3],u=Buffer.from(decodeURIComponent(o),a?"base64":"utf8");if(e){if(!r)throw new We("Blob is not supported",We.ERR_NOT_SUPPORT);return new r([u],{type:s})}return u}throw new We("Unsupported protocol "+i,We.ERR_NOT_SUPPORT)}var Mu=Mr(require("stream"),1);var kW=Mr(require("stream"),1);function OOe(t,e){let n=0,r=1e3/e,i=null;return function(s,a){let o=Date.now();if(s||o-n>r)return i&&(clearTimeout(i),i=null),n=o,t.apply(null,a);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,a)),r-(o-n)))}}var DW=OOe;function NOe(t,e){t=t||10;let n=new Array(t),r=new Array(t),i=0,l=0,s;return e=e!==void 0?e:1e3,function(o){let u=Date.now(),c=r[l];s||(s=u),n[i]=o,r[i]=u;let f=l,d=0;for(;f!==i;)d+=n[f++],f=f%t;if(i=(i+1)%t,i===l&&(l=(l+1)%t),u-s<e)return;let h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}var Xp=NOe;var Yp=Symbol("internals"),SS=class extends kW.default.Transform{constructor(e){e=se.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,o)=>!se.isUndefined(o[a])),super({readableHighWaterMark:e.chunkSize});let n=this,r=this[Yp]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=Xp(r.ticksRate*e.samplesCount,r.timeWindow);this.on("newListener",a=>{a==="progress"&&(r.isCaptured||(r.isCaptured=!0))});let l=0;r.updateProgress=DW(function(){let o=r.length,u=r.bytesSeen,c=u-l;if(!c||n.destroyed)return;let f=i(c);l=u,process.nextTick(()=>{n.emit("progress",{loaded:u,total:o,progress:o?u/o:void 0,bytes:c,rate:f||void 0,estimated:f&&o&&u<=o?(o-u)/f:void 0})})},r.ticksRate);let s=()=>{r.updateProgress(!0)};this.once("end",s),this.once("error",s)}_read(e){let n=this[Yp];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,r){let i=this,l=this[Yp],s=l.maxRate,a=this.readableHighWaterMark,o=l.timeWindow,u=1e3/o,c=s/u,f=l.minChunkSize!==!1?Math.max(l.minChunkSize,c*.01):0;function d(m,x){let b=Buffer.byteLength(m);l.bytesSeen+=b,l.bytes+=b,l.isCaptured&&l.updateProgress(),i.push(m)?process.nextTick(x):l.onReadCallback=()=>{l.onReadCallback=null,process.nextTick(x)}}let h=(m,x)=>{let b=Buffer.byteLength(m),_=null,E=a,v,g=0;if(s){let S=Date.now();(!l.ts||(g=S-l.ts)>=o)&&(l.ts=S,v=c-l.bytes,l.bytes=v<0?-v:0,g=0),v=c-l.bytes}if(s){if(v<=0)return setTimeout(()=>{x(null,m)},o-g);v<E&&(E=v)}E&&b>E&&b-E>f&&(_=m.subarray(E),m=m.subarray(0,E)),d(m,_?()=>{process.nextTick(x,null,_)}:x)};h(e,function m(x,b){if(x)return r(x);b?h(b,m):r(null)})}setLength(e){return this[Yp].length=+e,this}},TS=SS;var XW=Mr(require("events"),1);var LW=require("util"),FW=require("stream");var{asyncIterator:PW}=Symbol,IOe=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[PW]?yield*t[PW]():yield t},Qp=IOe;var ROe=se.ALPHABET.ALPHA_DIGIT+"-_",S6=new LW.TextEncoder,Co=`\r
`,DOe=S6.encode(Co),kOe=2,AS=class{constructor(e,n){let{escapeName:r}=this.constructor,i=se.isString(n),l=`Content-Disposition: form-data; name="${r(e)}"${!i&&n.name?`; filename="${r(n.name)}"`:""}${Co}`;i?n=S6.encode(String(n).replace(/\r?\n|\r\n?/g,Co)):l+=`Content-Type: ${n.type||"application/octet-stream"}${Co}`,this.headers=S6.encode(l+Co),this.contentLength=i?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+kOe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;se.isTypedArray(e)?yield e:yield*Qp(e),yield DOe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},POe=(t,e,n)=>{let{tag:r="form-data-boundary",size:i=25,boundary:l=r+"-"+se.generateString(i,ROe)}=n||{};if(!se.isFormData(t))throw TypeError("FormData instance required");if(l.length<1||l.length>70)throw Error("boundary must be 10-70 characters long");let s=S6.encode("--"+l+Co),a=S6.encode("--"+l+"--"+Co+Co),o=a.byteLength,u=Array.from(t.entries()).map(([f,d])=>{let h=new AS(f,d);return o+=h.size,h});o+=s.byteLength*u.length,o=se.toFiniteNumber(o);let c={"Content-Type":`multipart/form-data; boundary=${l}`};return Number.isFinite(o)&&(c["Content-Length"]=o),e&&e(c),FW.Readable.from(async function*(){for(let f of u)yield s,yield*f.encode();yield a}())},BW=POe;var MW=Mr(require("stream"),1),CS=class extends MW.default.Transform{__transform(e,n,r){this.push(e),r()}_transform(e,n,r){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,n)}this.__transform(e,n,r)}},UW=CS;var LOe=(t,e)=>se.isAsyncFn(t)?function(...n){let r=n.pop();t.apply(this,n).then(i=>{try{e?r(null,...e(i)):r(null,i)}catch(l){r(l)}},r)}:t,jW=LOe;var $W={flush:S2.default.constants.Z_SYNC_FLUSH,finishFlush:S2.default.constants.Z_SYNC_FLUSH},FOe={flush:S2.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:S2.default.constants.BROTLI_OPERATION_FLUSH},HW=se.isFunction(S2.default.createBrotliDecompress),{http:BOe,https:MOe}=WW.default,UOe=/https:?/,qW=ci.protocols.map(t=>t+":");function jOe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function YW(t,e,n){let r=e;if(!r&&r!==!1){let i=(0,zW.getProxyForUrl)(n);i&&(r=new URL(i))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));let l=Buffer.from(r.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+l}t.headers.host=t.hostname+(t.port?":"+t.port:"");let i=r.hostname||r.host;t.hostname=i,t.host=i,t.port=r.port,t.path=n,r.protocol&&(t.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}t.beforeRedirects.proxy=function(l){YW(l,e,l.href)}}var $Oe=typeof process<"u"&&se.kindOf(process)==="process",HOe=t=>new Promise((e,n)=>{let r,i,l=(o,u)=>{i||(i=!0,r&&r(o,u))},s=o=>{l(o),e(o)},a=o=>{l(o,!0),n(o)};t(s,a,o=>r=o).catch(a)}),qOe=({address:t,family:e})=>{if(!se.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},VW=(t,e)=>qOe(se.isObject(t)?t:{address:t,family:e}),QW=$Oe&&function(e){return HOe(async function(r,i,l){let{data:s,lookup:a,family:o}=e,{responseType:u,responseEncoding:c}=e,f=e.method.toUpperCase(),d,h=!1,m;if(a){let W=jW(a,re=>se.isArray(re)?re:[re]);a=(re,I,M)=>{W(re,I,(F,L,Ke)=>{if(F)return M(F);let Be=se.isArray(L)?L.map(Re=>VW(Re)):[VW(L,Ke)];I.all?M(F,Be):M(F,Be[0].address,Be[0].family)})}}let x=new XW.default,b=()=>{e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_),x.removeAllListeners()};l((W,re)=>{d=!0,re&&(h=!0,b())});function _(W){x.emit("abort",!W||W.type?new ea(null,e,m):W)}x.once("abort",i),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(_),e.signal&&(e.signal.aborted?_():e.signal.addEventListener("abort",_)));let E=Lu(e.baseURL,e.url),v=new URL(E,"http://localhost"),g=v.protocol||qW[0];if(g==="data:"){let W;if(f!=="GET")return Ao(r,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{W=wS(e.url,u==="blob",{Blob:e.env&&e.env.Blob})}catch(re){throw We.from(re,We.ERR_BAD_REQUEST,e)}return u==="text"?(W=W.toString(c),(!c||c==="utf8")&&(W=se.stripBOM(W))):u==="stream"&&(W=Mu.default.Readable.from(W)),Ao(r,i,{data:W,status:200,statusText:"OK",headers:new fi,config:e})}if(qW.indexOf(g)===-1)return i(new We("Unsupported protocol "+g,We.ERR_BAD_REQUEST,e));let S=fi.from(e.headers).normalize();S.set("User-Agent","axios/"+Bu,!1);let A=e.onDownloadProgress,C=e.onUploadProgress,N=e.maxRate,k,P;if(se.isSpecCompliantForm(s)){let W=S.getContentType(/boundary=([-_\w\d]{10,70})/i);s=BW(s,re=>{S.set(re)},{tag:`axios-${Bu}-boundary`,boundary:W&&W[1]||void 0})}else if(se.isFormData(s)&&se.isFunction(s.getHeaders)){if(S.set(s.getHeaders()),!S.hasContentLength())try{let W=await JW.default.promisify(s.getLength).call(s);Number.isFinite(W Line truncated
`+l.map(rX).join(`
`):" "+rX(l[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:OS};function NS(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ea(null,t)}function eh(t){return NS(t),t.headers=fi.from(t.headers),t.data=y6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(t.adapter||e4.adapter)(t).then(function(r){return NS(t),r.data=y6.call(t,t.transformResponse,r),r.headers=fi.from(r.headers),r},function(r){return g6(r)||(NS(t),r&&r.response&&(r.response.data=y6.call(t,t.transformResponse,r.response),r.response.headers=fi.from(r.response.headers))),Promise.reject(r)})}var iX=t=>t instanceof fi?t.toJSON():t;function T2(t,e){e=e||{};let n={};function r(u,c,f){return se.isPlainObject(u)&&se.isPlainObject(c)?se.merge.call({caseless:f},u,c):se.isPlainObject(c)?se.merge({},c):se.isArray(c)?c.slice():c}function i(u,c,f){if(se.isUndefined(c)){if(!se.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function l(u,c){if(!se.isUndefined(c))return r(void 0,c)}function s(u,c){if(se.isUndefined(c)){if(!se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}let o={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(iX(u),iX(c),!0)};return se.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=o[c]||i,d=f(t[c],e[c],c);se.isUndefined(d)&&f!==a||(n[c]=d)}),n}var IS={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{IS[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var lX={};IS.transitional=function(e,n,r){function i(l,s){return"[Axios v"+Bu+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(e===!1)throw new We(i(s," has been removed"+(n?" in "+n:"")),We.ERR_DEPRECATED);return n&&!lX[s]&&(lX[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,s,a):!0}};function GOe(t,e,n){if(typeof t!="object")throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),i=r.length;for(;i-- >0;){let l=r[i],s=e[l];if(s){let a=t[l],o=a===void 0||s(a,l,t);if(o!==!0)throw new We("option "+l+" must be "+o,We.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new We("Unknown option "+l,We.ERR_BAD_OPTION)}}var th={assertOptions:GOe,validators:IS};var Oo=th.validators,r4=class{constructor(e){this.defaults=e,this.interceptors={request:new iS,response:new iS}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let l=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+l):r.stack=l}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=T2(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&th.assertOptions(r,{silentJSONParsing:Oo.transitional(Oo.boolean),forcedJSONParsing:Oo.transitional(Oo.boolean),clarifyTimeoutError:Oo.transitional(Oo.boolean)},!1),i!=null&&(se.isFunction(i)?n.paramsSerializer={serialize:i}:th.assertOptions(i,{encode:Oo.function,serialize:Oo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&se.merge(l.common,l[n.method]);l&&se.forEach(["delete","get","head","post","put","patch","common"],m=>{delete l[m]}),n.headers=fi.concat(s,l);let a=[],o=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(o=o&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});let u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let c,f=0,d;if(!o){let m=[eh.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f<d;)c=c.then(m[f++],m[f++]);return c}d=a.length;let h=n;for(f=0;f<d;){let m=a[f++],x=a[f++];try{h=m(h)}catch(b){x.call(this,b);break}}try{c=eh.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=T2(this.defaults,e);let n=Lu(e.baseURL,e.url);return Pu(n,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){r4.prototype[e]=function(n,r){return this.request(T2(r||{},{method:e,url:n,data:(r||{}).data}))}});se.forEach(["post","put","patch"],function(e){function n(r){return function(l,s,a){return this.request(T2(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}r4.prototype[e]=n(),r4.prototype[e+"Form"]=n(!0)});var T6=r4;var RS=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});let r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l,s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},e(function(l,s,a){r.reason||(r.reason=new ea(l,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new t(function(i){e=i}),cancel:e}}},sX=RS;function DS(t){return function(n){return t.apply(null,n)}}function kS(t){return se.isObject(t)&&t.isAxiosError===!0}var PS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(PS).forEach(([t,e])=>{PS[e]=t});var aX=PS;function oX(t){let e=new T6(t),n=p6(T6.prototype.request,e);return se.extend(n,T6.prototype,e,{allOwnKeys:!0}),se.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return oX(T2(t,i))},n}var Wr=oX(e4);Wr.Axios=T6;Wr.CanceledError=ea;Wr.CancelToken=sX;Wr.isCancel=g6;Wr.VERSION=Bu;Wr.toFormData=To;Wr.AxiosError=We;Wr.Cancel=Wr.CanceledError;Wr.all=function(e){return Promise.all(e)};Wr.spread=DS;Wr.isAxiosError=kS;Wr.mergeConfig=T2;Wr.AxiosHeaders=fi;Wr.formToJSON=t=>Jp(se.isHTMLForm(t)?new FormData(t):t);Wr.getAdapter=Zp.getAdapter;Wr.HttpStatusCode=aX;Wr.default=Wr;var i4=Wr;var{Axios:cVe,AxiosError:fVe,CanceledError:pVe,isCancel:hVe,CancelToken:dVe,VERSION:mVe,all:yVe,Cancel:gVe,isAxiosError:vVe,spread:_Ve,toFormData:uX,AxiosHeaders:EVe,HttpStatusCode:xVe,formToJSON:bVe,getAdapter:wVe,mergeConfig:SVe}=i4;var fX=Mr(require("https"),1),pX=Mr(require("crypto"),1),LS={};globalThis.dataBase=null;globalThis.local={get:async function(t,e){return await KOe(t,e)},set:async fu Line truncated
`+t)}globalThis.req=YOe;async function YOe(t,e){try{let n=e&&e.data||null,r=e&&e.postType||null,i=e&&e.buffer||0,l=e&&e.timeout||5e3,s=(e&&e.redirect||1)===1,a=e?e.headers||{}:{};r==="form"?(a["Content-Type"]="application/x-www-form-urlencoded",n!=null&&(n=cX.default.stringify(n,{encode:!1}))):r==="form-data"&&(a["Content-Type"]="multipart/form-data",n=uX(n));let u=await i4(t,{responseType:i===1||i===2?"arraybuffer":void 0,method:e&&e.method||"get",headers:a,data:n,timeout:l,maxRedirects:s?null:0,httpsAgent:fX.default.Agent({rejectUnauthorized:!1})});n=u.data;let c={};for(let f of u.headers){let d=f[1];c[f[0]]=Array.isArray(d)&&d.length===1?d[0]:d}if(!i)typeof n=="object"&&(n=JSON.stringify(n));else{if(i===1)return{code:u.status,headers:c,content:n};if(i===2)return{code:u.status,headers:c,content:n.toString("base64")};if(i===3){let f=e.stream;return f.onResp&&await f.onResp({code:u.status,headers:c}),f.onData?(n.on("data",async d=>{await f.onData(d)}),n.on("end",async()=>{f.onDone&&await f.onDone()})):f.onDone&&await f.onDone(),"stream..."}}return{code:u.status,headers:c,content:n}}catch(n){let r=n.response;try{return{code:r.status,headers:r.headers,content:JSON.stringify(r.data)}}catch{return{headers:{},content:""}}}}globalThis.md5X=QOe;function QOe(t){return pX.default.createHash("md5").update(Buffer.from(t,"utf8")).digest("hex")}globalThis.js2Proxy=function(t,e,n){let r=Object.keys(n).length===0?"_":encodeURIComponent(JSON.stringify(n));return t.server.address().dynamic+t.server.prefix+"/proxy/"+encodeURIComponent(e)+"/"+r+"/"};var ZOe=["DEBUG","INFO","WARNING","ERROR"];var l4=class{constructor(e,n="DEBUG"){this.app_name=e,this.level=n,this.level_index=ZOe.indexOf(n)}format(e,n){let r=80;switch(e){case"INFO":r=r+1;break;case"WARNING":r=r-2;break;default:break}return n.length<r&&((r-n.length)%2===0?n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)):n="#".repeat(Math.floor((r-n.length)/2))+n+"#".repeat(Math.floor((r-n.length)/2)+1)),n}getTime(){let e=new Date;return e.toLocaleDateString().replace(/\//g,"-")+" "+e.toTimeString().substr(0,8)+","+e.getMilliseconds().toString()}formatMessage(e,n,r){return r&&(n=this.format(e,n)),`${this.getTime()} - ${this.app_name} - ${e}: ${n}`}async log(e){console.debug(e)}async info(e,n){this.level_index<=1&&await this.log(this.formatMessage("INFO",e,n))}async warning(e,n){this.level_index<=2&&await this.log(this.formatMessage("WARNING",e,n))}async error(e,n){this.level_index<=3&&await this.log(this.formatMessage("ERROR",e,n))}async debug(e,n){this.level_index<=0&&await this.log(this.formatMessage("DEBUG",e,n))}};var $e=class extends Ge{constructor(){super(),this.jadeLog=new l4(this.getAppName(),"DEBUG")}async init(e,n){await this.jadeLog.info("\u521D\u59CB\u5316",!0);try{this.siteKey=this.getJSName(),this.siteType=this.getType(),this.cfgObj=e.server.config[this.siteKey],this.deviceKey=e.server.prefix+"/",this.db=e.server.db,this.catOpenStatus=!0,this.danmuStaus=!1;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u6210\u529F"):(await this.jadeLog.warning("\u8BFB\u53D6\u7F13\u5B58\u5217\u8868\u548C\u4E8C\u7EA7\u83DC\u5355\u5931\u8D25"),await this.writeFilterAndClasses())}catch(r){await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),await this.jadeLog.error("\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:"+r,!1)}}catch(r){await this.jadeLog.error(`\u521D\u59CB\u5316\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${r}`)}await this.jadeLog.info("\u521D\u59CB\u5316\u5B8C\u6210",!0)}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0?!0:(await this.db.push(this.deviceKey+"classes",{}),await this.db.push(this.deviceKey+"filterObj",{}),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await this.setClasses(),await this.setFilterObj(),await this.db.push(this.deviceKey+"classes",this.classes),await this.db.push(this.deviceKey+"filterObj",this.filterObj)}async getClassesCache(){let e=await this.db.getObjectDefault(this.deviceKey+"classes",{});return Q.isEmpty(e)?this.classes:e}async getFiletObjCache(){let e=await this.db.getObjectDefault(this.deviceKey+"filterObj",{});return Q.isEmpty(e)?this.filterObj:e}async home(e,n){return this.vodList=[],await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u7C7B\u522B",!0),await this.setHome(),await this.jadeLog.debug(`\u9996\u9875\u7C7B\u522B\u5185\u5BB9\u4E3A:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5B8C\u6210",!0),this.result.home(this.classes,[],this.filterObj)}async homeVod(){await this.jadeLog.info("\u6B63\u5728\u89E3\u6790\u9996\u9875\u5185\u5BB9",!0);try{return await this.setHomeVod(),await this Line truncated
`).trim(),n=l("a.Readpage_down")[0].attribs.href,n.indexOf("_")<0)break}this.playUrl={content:i+`
`}}catch{this.playUrl={content:""}}}async search(e,n){let r=await req(`${this.siteUrl}/user/hm.html?q=${encodeURIComponent(e)}`,{headers:{accept:"application/json","User-Agent":go,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),l=(Q.isArray(r.headers["set-cookie"])?r.headers["set-cookie"].join(";;;"):r.headers["set-cookie"]).split(";;;"),s={};for(let c of l){let f=c.trim(),d=f.indexOf("="),h=f.substr(0,d);s[h]=f.substr(d+1,f.indexOf(";")-d-1)}let a=await req(`${this.siteUrl}/user/search.html?q=${encodeURIComponent(e)}&so=undefined`,{headers:{accept:"application/json","User-Agent":go,cookie:"hm="+s.hm,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),o=JSON.parse(a.content),u=[];for(let c of o)u.push({book_id:c.url_list,book_name:c.articlename,book_pic:c.url_img,book_remarks:c.author});return{tline:2,list:u}}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let r=e[0],i=Xl(e[1]);if(r==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${i}`);let l=await this.getHtml(this.siteUrl+i),s=await this.parseVodDetailFromDoc(l),a;return Q.isEmpty(n)?a=await req(s.book_pic,{buffer:2,headers:{Referer:i,"User-Agent":Ki}}):a=await req(s.book_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},Mn=new PS;var LS=class extends He{constructor(){super()}getName(){return Mn.getName()}getAppName(){return Mn.getAppName()}getJSName(){return Mn.getJSName()}async init(e,n){dataBase=e.server.db,await Mn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await Mn.initAli(e.server.config.alitoken),Mn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Mn.setClasses(),this.classes=Mn.classes}async setFilterObj(){await Mn.setFilterObj(),this.filterObj=Mn.filterObj}async setHomeVod(){await Mn.setHomeVod(),this.homeVodList=Mn.homeVodList}async setCategory(e,n,r,i){await Mn.setCategory(e,n,r,i),this.vodList=Mn.vodList}async setDetail(e){await Mn.setDetail(e),this.vodDetail=Mn.vodDetail}async setPlay(e,n,r){await Mn.setPlay(e,n,r),this.playUrl=Mn.playUrl,this.result=Mn.result}async setSearch(e,n){await Mn.setSearch(e,n),this.vodList=Mn.vodList}async setProxy(e,n){return await Mn.proxy(e,n)}},Oo=new LS;async function uX(t,e){return await Oo.init(t,e)}async function cX(t,e){return await Oo.home(t,e)}async function qOe(t,e){return await Oo.homeVod(t,e)}async function fX(t,e){return await Oo.category(t,e)}async function pX(t,e){return await Oo.detail(t,e)}async function hX(t,e){return await Oo.play(t,e)}async function dX(t,e){return await Oo.search(t,e)}async function VOe(t,e){return await Oo.proxy(t,e)}var mX={meta:{key:Mn.getJSName(),name:Mn.getName(),type:Mn.getType()},api:async t=>{t.post("/init",uX),t.post("/home",cX),t.post("/category",fX),t.post("/detail",pX),t.post("/play",hX),t.post("/search",dX),t.get("/proxy/:what/:ids/:end",VOe)},spider:{init:uX,home:cX,homeVod:qOe,category:fX,detail:pX,play:hX,search:dX}};function vX(t){this._parameters={},this._loadParameters(t||{})}vX.prototype={_loadParameters:function(t){t instanceof Array?this._loadParametersFromArray(t):typeof t=="object"&&this._loadParametersFromObject(t)},_loadParametersFromArray:function(t){var e;for(e=0;e<t.length;e++)this._loadParametersFromObject(t[e])},_loadParametersFromObject:function(t){var e;for(e in t)if(t.hasOwnProperty(e)){var n=this._getStringFromParameter(t[e]);this._loadParameterValue(e,n)}},_loadParameterValue:function(t,e){var n;if(e instanceof Array){for(n=0;n<e.length;n++){var r=this._getStringFromParameter(e[n]);this._addParameter(t,r)}e.length==0&&this._addParameter(t,"")}else this._addParameter(t,e)},_getStringFromParameter:function(t){var e=t||"";try{(typeof t=="number"||typeof t=="boolean")&&(e=t.toString())}catch{}return e},_addParameter:function(t,e){this._parameters[t]||(this._parameters[t]=[]),this._parameters[t].push(e)},get:function(){return this._parameters}};function zOe(t){return t?decodeURIComponent(t):""}function GOe(t){let e=[],n=[];for(let a in t)e.push(S6(a));e.sort();for(let a=0;a<e.length;a++){let o=e[a];var r,i,l=zOe(o),s=t[l];for(s.sort(),r=0;r<s.length;r++)i=S6(s[r]),n.push(o+"="+i)}return n.join("&")}function yX(t=10){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}function S6(t){return t?encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A"):""}function gX(t,e,n,r="f3ac5b086f3eab260520d8e3049561e6"){e=e.split("?")[0],e=e.startsWith("http")?e:"https://api.audiomack.com/v1"+e;let i=new vX(n).get(),l=t.toUpperCase(),s=GOe(i),a=S6(l)+"&"+S6(e)+"&"+S6(s);return Ke.HmacSHA1(a,r+"&").toString(Ke.enc.Base64)}var FS=class extends Xe{constructor(){super(),this.siteUrl="h Line truncated
`,""),Q.isEmpty(r.vod_pic)&&(r.vod_pic=vo+"/resources/dygang.jpg"),r}async parseVodShortListFromDoc(e){let n=[],r=e('[class="index-tj-l"]').find("li");for(let i of r){let l=e(i).find("a")[0],s=this.parseVodShortFromElement(e,l);n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],r=e('[class="index-area clearfix"]').find("li");for(let i of r){let l=e(i).find("a")[0],s=this.parseVodShortFromElement(e,l);n.push(s)}return n}async parseVodDetailFromDoc(e){let n=new tt,r=e('[ class="ct mb clearfix"]');n.vod_pic=e(r).find("img")[0].attribs.src,n.vod_name=Re(/◎片  名 (.*?)<br>/,e(r).html()),n.vod_area=Re(/◎产  地 (.*?)<br>/,e(r).html()),n.vod_year=Re(/◎年  代 (.*?)<br>/,e(r).html()),n.type_name=Re(/◎类  别 (.*?)<br>/,e(r).html()),n.vod_remarks=Re(/◎集  数 (.*?)<br>/,e(r).html());let i=Re(/◎主  演 (.*?)<\/p>/s,e(r).html());Q.isEmpty(i)&&(i=Re(/◎演  员 (.*?)<\/p>/s,e(r).html()));let l=[];for(let f of i.split(`
`))l.push(f.replaceAll("\u3000\u3000\u3000\u3000&nbsp; \u3000","").replaceAll("<br>","").replaceAll("\u3000\u3000\u3000\u3000\u3000",""));n.vod_actor=l.join("/"),n.vod_director=Re(/◎导  演 (.*?)<br>/,e(r).html()),n.vod_content=Re(/◎简  介<\/p>(.*?)<br>/s,e(r).html()).replaceAll("<p>","").replaceAll(`
`,""),Q.isEmpty(n.vod_content)&&(n.vod_content=Re(/◎简  介<br>(.*?)<\/p>/s,e(r).html()).replaceAll("<p>","").replaceAll(`
`,""));let s=[],a=[],o=e('[class="playfrom tab8 clearfix"]'),u=e('[class="videourl clearfix"]');for(let f=0;f<o.length;f++){let d=o[f],h=e(e(d).find("li")).html();s.push(h.replaceAll('<i class="playerico ico-Azhan"></i> ',""));let m=[];for(let x of e(u[f]).find("a")){let b=x.attribs.title,_=x.attribs.href;m.push(b+"$"+_)}a.push(m.join("#"))}let c=e(e(r).find("span")[0]).find("span");if(c.length>0){let f=e(c).html();s.push(Re(/【(.*?)】/,f.replaceAll("\u4E0B\u8F7D\u5730\u5740","\u78C1\u529B\u94FE\u63A5")));let d=[];for(let h of e(e(e(r).find("tbody")).find("tr")).find("a")){let m=e(h).html().replaceAll(".mp4",""),x=h.attribs.href;d.push(m+"$"+x)}a.push(d.join("#"))}return n.vod_play_from=s.join("$$$"),n.vod_play_url=a.join("$$$"),n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,i){let l=this.siteUrl+e;i.\u6309\u7C7B\u578B!==void 0&&i.\u6309\u7C7B\u578B!=="0"&&(l=l+`${i.\u6309\u7C7B\u578B}/`),parseInt(n)>1&&(l=l+`index_${n}.html`);let s=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setSearch(e,n){let r=this.siteUrl+"/e/search/index.php",i={keyboard:e,submit:"\u641C \u7D22",show:"title,zhuyan",tempid:"1"},l=await this.post(r,i,this.getHeader()),s=et(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setPlay(e,n,r){if(n.indexOf("http")>-1){let i=await this.getHtml(n),l=Re(/url: '(.*?)',/,i.html());if(Q.isEmpty(l)){let s=i(i('[class="video"]')[0]).find("iframe")[0].attribs.src,a=await this.fetch(s,null,{"User-Agent":Ki});if(this.playUrl=Re(/url: '(.*?)',/,a),Q.isEmpty(this.playUrl)){let o=Hz(s);this.playUrl=o+Re(/var main = "(.*?)";/,a)}}else this.playUrl=l}else this.playUrl=n}},Hn=new zS;var GS=class extends He{constructor(){super()}getName(){return Hn.getName()}getAppName(){return Hn.getAppName()}getJSName(){return Hn.getJSName()}async init(e,n){dataBase=e.server.db,await Hn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await Hn.initAli(e.server.config.alitoken),Hn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Hn.setClasses(),this.classes=Hn.classes}async setFilterObj(){await Hn.setFilterObj(),this.filterObj=Hn.filterObj}async setHomeVod(){await Hn.setHomeVod(),this.homeVodList=Hn.homeVodList}async setCategory(e,n,r,i){await Hn.setCategory(e,n,r,i),this.vodList=Hn.vodList}async setDetail(e){await Hn.setDetail(e),this.vodDetail=Hn.vodDetail}async setPlay(e,n,r){await Hn.setPlay(e,n,r),this.playUrl=Hn.playUrl,this.result=Hn.result}async setSearch(e,n){await Hn.setSearch(e,n),this.vodList=Hn.vodList}async setProxy(e,n){return await Hn.proxy(e,n)}},ko=new GS;async function WX(t,e){return await ko.init(t,e)}async function JX(t,e){return await ko.home(t,e)}async function dNe(t,e){return await ko.homeVod(t,e)}async function XX(t,e){return await ko.category(t,e)}async function YX(t,e){return await ko.detail(t,e)}async function QX(t,e){return await ko.play(t,e)}async function ZX(t,e){return await ko.search(t,e)}async function mNe(t,e){return await ko.proxy(t,e)}var eY={meta:{key:Hn.getJSName(),name:Hn.getName(),type:Hn.getType()},api:async t=>{t.post("/init",WX),t.post("/home",JX),t.post("/category",XX),t.post("/detail",YX),t.post("/play",QX),t.post("/search",ZX),t.get("/proxy/:what/:ids/:end",mNe)},spider:{init:WX,home:JX,homeVod:dNe,category:XX,detail:YX,play:QX,search:ZX}};var Po=class extends Xe{constructor(){super(),this.siteUrl="http://cj.ffzyapi.com",this.remove18=!1,this.type_id_18=34}async spiderInit(e){e!==null?this.detailProxy=await js2Proxy(e,"detail",this.getHeader()):this.detailProxy=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",this.getHeader())}async init(e){await super.init(e),await this.spiderInit(null)}async parseVodShortListFromJson(e,n=!1){let r=[],i;for(let l of e.list)n?(i=new Me,i.vod_pic=this.detailProxy+Wi(l.vod_id),i.vod_id=l.vod_id,i.vod_name=l.vod_name,i.vod_remarks=l.vod_remarks):i=this.parseVodDetail(l),this.remove18&&l.type_id!==this.type_id_18&&r.push(i),!this.remove18&&l.type_id===this.type_id_18&&r.push(i);return r}parseVodDetail(e){let n=new tt;n.vod_id=e.vod_id,n.vod_name=e.vod_name,n.vod_pic=e.vod_pic,n.vod_remarks=e.vod_remarks,n.vod_area=e.vod_area,n.vod_year=e.vod_year,n.vod_actor=e.vod_actor,n.vod_director=e.vod_director;let r=et(e.vod_content);return n.vod_content=r.text(),n.vod_play_from=e.vod_play_from,n.vod_play_url=e.vod_play_url,n.type_name=e.type_name,n}async parseVodDetailfromJson(e){let n,r=e.list;if(r.length>0){let i=r[0];n=this.parseVodDetail(i)}return n}async setClasses(){let e=await this.fetch(this.siteUrl+"/api.php/provide/vod/from",{ac:"list"},this.getHeader()),n=JSON.parse(e);for(let r of n.class)r.type_pid!==0&&this.classes.push(this.getTypeDic(r.type_name,r.type_id))}async se Line truncated
"type": "{{tid}}",
"p": "{{pg}}",
"area": "{{ext.area|default(0)}}",
"year": "{{ext.year|default(0)}}",
"sort": "{{ext.sort|default(0)}}",
"class": "{{ext.class|default(0)}}"}`,{ext:i,tid:e,pg:n}));console.log(s);let a=await this.request(l,s);this.vodList=await this.parseVodShortListFromJson(a.data.data)}async setDetail(e){let n=await this.request(this.siteUrl+"/api.php/Video/getVideoInfo",{video_id:e});this.vodDetail=await this.parseVodDetailfromJson(n.data.video)}async setPlay(e,n,r){this.result.jx=0;try{if(n.indexOf("youku")>=0||n.indexOf("iqiyi")>=0||n.indexOf("v.qq.com")>=0||n.indexOf("pptv")>=0||n.indexOf("le.com")>=0||n.indexOf("1905.com")>=0||n.indexOf("mgtv")>=0){if(this.parse.length>0)for(let i=0;i<this.parse.length;i++)try{let l=this.parse[i],s=await req(l+n,{headers:{"user-agent":"okhttp/4.1.0"}});await this.jadeLog.debug(`\u89E3\u6790\u8FDE\u63A5\u7ED3\u679C\u4E3A:${JSON.stringify(s)}`);let a=wY(n,JSON.parse(s.content).data);a.url&&(this.playUrl=a.url,this.danmuUrl=await this.danmuSpider.getVideoUrl(n,0),this.result.jx=1)}catch{}}else if(n.indexOf("jqq-")>=0){let i=await this.request(this.siteUrl+"/jqqheader.json",null,null,!0),l=n.split("-"),s=await req("https://api.juquanquanapp.com/app/drama/detail?dramaId="+l[1]+"&episodeSid="+l[2]+"&quality=LD",{headers:i}),a=JSON.parse(s.content);a.data.playInfo.url&&(this.playUrl=a.data.playInfo.url)}else if(n.startsWith("ftp"))this.playUrl=n;else{let i=await this.request(this.siteUrl+"/video.php",{url:n}),l=wY(n,i.data);l.url&&(l.url.indexOf("filename=1.mp4")>-1?this.playUrl=l.url:this.playUrl=await js2Proxy(!0,this.siteType,this.siteKey,"lzm3u8/"+Wi(l.url),{}))}}catch(i){await this.jadeLog.error(i)}}async setSearch(e,n){let r=await this.request(this.siteUrl+"/api.php/Search/getSearch",{key:e,type_id:0,p:1});this.vodList=await this.parseVodShortListFromJson(r.data.data)}async proxy(e,n){let r=e[0],i=Xl(e[1]);if(r==="lzm3u8"){await this.jadeLog.debug(`\u4F7F\u7528\u4EE3\u7406\u64AD\u653E,\u64AD\u653E\u8FDE\u63A5\u4E3A:${i}`);let l=await req(i,{}),s=l.content,a=await js2Proxy(!1,this.siteType,this.siteKey,"lzm3u8/",{}),o=i.substr(0,i.lastIndexOf("/")+1);return await this.jadeLog.debug(s.length),s=s.replace(/#EXT-X-DISCONTINUITY\r*\n*#EXTINF:6.433333,[\s\S]*?#EXT-X-DISCONTINUITY/,""),await this.jadeLog.debug(s.length),s=s.replace(/(#EXT-X-KEY\S+URI=")(\S+)("\S+)/g,function(u,c,f,d){let h=(f.startsWith("http")?"":o)+f;return c+h+d}),s=s.replace(/(#EXT-X-STREAM-INF:.*\n)(.*)/g,function(u,c,f){let d=(f.startsWith("http")?"":o)+f;return c+a+Xl(d)}),s=s.replace(/(#EXTINF:.*\n)(.*)/g,function(u,c,f){let d=(f.startsWith("http")?"":o)+f;return c+d}),JSON.stringify({code:l.code,content:s,headers:l.headers})}return JSON.stringify({code:500,content:""})}},Gn=new tT;var nT=class extends He{constructor(){super()}getName(){return Gn.getName()}getAppName(){return Gn.getAppName()}getJSName(){return Gn.getJSName()}async init(e,n){dataBase=e.server.db,await Gn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await Gn.initAli(e.server.config.alitoken),Gn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Gn.setClasses(),this.classes=Gn.classes}async setFilterObj(){await Gn.setFilterObj(),this.filterObj=Gn.filterObj}async setHomeVod(){await Gn.setHomeVod(),this.homeVodList=Gn.homeVodList}async setCategory(e,n,r,i){await Gn.setCategory(e,n,r,i),this.vodList=Gn.vodList}async setDetail(e){await Gn.setDetail(e),this.vodDetail=Gn.vodDetail}async setPlay(e,n,r){await Gn.setPlay(e,n,r),this.playUrl=Gn.playUrl,this.result=Gn.result}async setSearch(e,n){await Gn.setSearch(e,n),this.vodList=Gn.vodList}async setProxy(e,n){return await Gn.proxy(e,n)}},Mo=new nT;async function SY(t,e){return await Mo.init(t,e)}async function TY(t,e){return await Mo.home(t,e)}async function NNe(t,e){return await Mo.homeVod(t,e)}async function AY(t,e){return await Mo.category(t,e)}async function CY(t,e){return await Mo.detail(t,e)}async function OY(t,e){return await Mo.play(t,e)}async function NY(t,e){return await Mo.search(t,e)}async function RNe(t,e){return await Mo.proxy(t,e)}var RY={meta:{key:Gn.getJSName(),name:Gn.getName(),type:Gn.getType()},api:async t=>{t.post("/init",SY),t.post("/home",TY),t.post("/category",AY),t.post("/detail",CY),t.post("/play",OY),t.post("/search",NY),t.get("/proxy/:what/:ids/:end",RNe)},spider:{init:SY,home:TY,homeVod:NNe,category:AY,detail:CY,play:OY,search:NY}};var rT=class extends Xe{constructor(){super(),this.siteUrl="https://www.cs1369.com"}getName(){return"\u{1F943}\u2503\u4E5D\u4E5D\u516D\u5F71\u89C6\u2503\u{1F943}"}getAppName(){return"\u4E5D\u4E5D\u516D\u5F71\u89C6"}getJSName(){return"jiujiuliu"}getType(){return 3}async parseVodShortListFromDoc(e){let n=[],r=e('[class="stui-vodlist clearfix"]').find("li");for(let i of r){let l=e(i).find('[class="stui-vodlist__thumb lazyload"]')[0],s=new Me;s.vod_id=l.attribs.href,s.vod_name=l.attribs.title,s.vod_pic=l.attribs["data-original"],s.vod_remarks=e(e(l).find('[class="pic-text text-right"]')[0]).text(),n.push(s)}return n}asyn Line truncated
`;n.type_name=e(e(e(i).find('[class="post-meta"]')).find("span")[0]).text(),n.vod_pic=e(i).find("img")[0].attribs.src,n.vod_name=Re(/名称:(.*?)\n/,s),n.vod_actor=Re(/主演:(.*?)\n/,s),n.vod_director=Re(/导演:(.*?)\n/,s),n.vod_area=Re(/地区:(.*?)\n/,s),n.vod_year=Re(/年份:(.*?)\n/,s),n.vod_remarks=Re(/更新:(.*?)\n/,s);let a=e('[class="article-related info"]').find("p");n.vod_content=e(a).text();let o=e('[class="article-related download_url"]'),u=[],c=[];for(let f=0;f<o.length;f++){let d=o[f],h=e(e(d).find("h2")).text().replaceAll(n.vod_name,"");u.push(h.replaceAll("\u4E0B\u8F7D","\u64AD\u653E"));let m=[];for(let x of e(o[f]).find("a")){let b=e(x).text().replaceAll("\u78C1\u529B\u94FE\u4E0B\u8F7D","").replaceAll(".mp4",""),_=x.attribs.href;m.push(b+"$"+_)}c.push(m.join("#"))}return n.vod_play_from=u.join("$$$"),n.vod_play_url=c.join("$$$"),n}async parseVodShortListFromJson(e){let n=[],r=et(e.ajaxtxt),i=r(r("ul")).find("li");for(let l of i){let s=new Me;s.vod_pic=r(l).find("img")[0].attribs["data-original"],s.vod_name=Re(/《(.*?)》/,r(l).find("img")[0].attribs.alt),s.vod_id=r(l).find("a")[0].attribs.href,s.vod_remarks="\u8BC4\u5206:"+r(r(l).find('[class="rate badge"]')).text(),n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],r=e(e('[id="list_all"]').find("ul")).find("li");for(let i of r){let l=new Me;l.vod_id=e(i).find("a")[0].attribs.href,l.vod_name=Re(/《(.*?)》/,e(e(e(i).find('[class="text_info"]')).find("a")[0]).text()),l.vod_pic=e(i).find("img")[0].attribs["data-original"],l.vod_remarks=e(e(i).find('[class="update_time"]')).text(),n.push(l)}return n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);return this.vodDetail=await this.parseVodDetailFromDoc(n),this.vodDetail}async setCategory(e,n,r,i){let l=this.siteUrl+`/list/${e}-${n}.html`,s=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setSearch(e,n){let r=this.siteUrl+"/search/",i={wd:e,p:"1",t:"j/tNgwBS2e8O4x9TuIkYuQ=="},l=await this.post(r,i,this.getSearchHeader()),s=et(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}},Xn=new fT;var pT=class extends He{constructor(){super()}getName(){return Xn.getName()}getAppName(){return Xn.getAppName()}getJSName(){return Xn.getJSName()}async init(e,n){dataBase=e.server.db,await Xn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await Xn.initAli(e.server.config.alitoken),Xn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Xn.setClasses(),this.classes=Xn.classes}async setFilterObj(){await Xn.setFilterObj(),this.filterObj=Xn.filterObj}async setHomeVod(){await Xn.setHomeVod(),this.homeVodList=Xn.homeVodList}async setCategory(e,n,r,i){await Xn.setCategory(e,n,r,i),this.vodList=Xn.vodList}async setDetail(e){await Xn.setDetail(e),this.vodDetail=Xn.vodDetail}async setPlay(e,n,r){await Xn.setPlay(e,n,r),this.playUrl=Xn.playUrl,this.result=Xn.result}async setSearch(e,n){await Xn.setSearch(e,n),this.vodList=Xn.vodList}async setProxy(e,n){return await Xn.proxy(e,n)}},qo=new pT;async function lQ(t,e){return await qo.init(t,e)}async function sQ(t,e){return await qo.home(t,e)}async function WNe(t,e){return await qo.homeVod(t,e)}async function aQ(t,e){return await qo.category(t,e)}async function oQ(t,e){return await qo.detail(t,e)}async function uQ(t,e){return await qo.play(t,e)}async function cQ(t,e){return await qo.search(t,e)}async function JNe(t,e){return await qo.proxy(t,e)}var fQ={meta:{key:Xn.getJSName(),name:Xn.getName(),type:Xn.getType()},api:async t=>{t.post("/init",lQ),t.post("/home",sQ),t.post("/category",aQ),t.post("/detail",oQ),t.post("/play",uQ),t.post("/search",cQ),t.get("/proxy/:what/:ids/:end",JNe)},spider:{init:lQ,home:sQ,homeVod:WNe,category:aQ,detail:oQ,play:uQ,search:cQ}};var hT=class extends Xe{constructor(){super(),this.siteUrl="https://api.web.360kan.com"}getName(){return"\u{1F94E}\u2503360\u5F71\u89C6\u2503\u{1F94E}"}getAppName(){return"360"}getJSName(){return"sp360"}getType(){return 3}async init(e){await super.init(e),this.danmuUrl=!0}async setClasses(){this.classes=[this.getTypeDic("\u6700\u8FD1\u66F4\u65B0","\u6700\u8FD1\u66F4\u65B0"),this.getTypeDic("\u7535\u5F71","1"),this.getTypeDic("\u5267\u96C6","2"),this.getTypeDic("\u7EFC\u827A","3"),this.getTypeDic("\u52A8\u6F2B","4")]}async setFilterObj(){this.filterObj={1:[{key:"cat",name:"\u7C7B\u578B",value:[{n:"\u5168\u90E8",v:""},{n:"\u559C\u5267",v:"\u559C\u5267"},{n:"\u7231\u60C5",v:"\u7231\u60C5"},{n:"\u52A8\u4F5C",v:"\u52A8\u4F5C"},{n:"\u6050\u6016",v:"\u6050\u6016"},{n:"\u79D1\u5E7B",v:"\u79D1\u5E7B"},{n:"\u5267\u60C5",v:"\u5267\u60C5"},{n:"\u72AF\u7F6A",v:"\u72AF\u7F6A"},{n:"\u5947\u5E7B",v:"\u5947\u5E7B"},{n:"\u6218\u4E89",v:"\u6218\u4E89"},{n:"\u60AC\u7591",v:"\u60AC\u7591"},{n:"\u52A8\u753B",v:"\uLine truncated
`," ").replaceAll(" \u6536\u8D77","");let u=e('[class="module-tab-item tab-item"]'),c=e('[class="scroll-content"]'),f=[],d=[];for(let h=0;h<u.length;h++){let x=u[h].attribs["data-dropdown-value"];if(x.indexOf("\u5938\u514B")===-1){f.push(x);let b=[];for(let _ of e(c[h]).find("a")){let E=e(_).text(),v=_.attribs.href;b.push(E+"$"+v)}d.push(b.join("#"))}}return r.vod_play_from=f.join("$$$"),r.vod_play_url=d.join("$$$"),r}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,i){let l=[e.toString(),"","","","","","","",n.toString(),"","",""],s=[3,11,1,2];i.\u5168\u90E8\u5267\u60C5!==void 0&&i.\u5168\u90E8\u5267\u60C5!=="0"&&(l[s[0]]=i.\u5168\u90E8\u5267\u60C5),i.\u5168\u90E8\u65F6\u95F4!==void 0&&i.\u5168\u90E8\u65F6\u95F4!=="0"&&(l[s[1]]=i.\u5168\u90E8\u65F6\u95F4),i.\u5168\u90E8\u5730\u533A!==void 0&&i.\u5168\u90E8\u5730\u533A!=="0"&&(l[s[2]]=i.\u5168\u90E8\u5730\u533A),i.\u65F6\u95F4\u6392\u5E8F!==void 0&&i.\u65F6\u95F4\u6392\u5E8F!=="0"&&(l[s[3]]=i.\u65F6\u95F4\u6392\u5E8F);let a=this.siteUrl+"/index.php/vodshow/"+l.join("-")+".html",o=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(o)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}uic(e,n){let r=Ke.enc.Utf8.parse("2890"+n+"tB959C"),i=Ke.enc.Utf8.parse("2F131BE91247866E"),l=Ke.AES.decrypt(e,r,{iv:i,mode:Ke.mode.CBC,padding:Ke.pad.Pkcs7});return Ke.enc.Utf8.stringify(l)}async setPlay(e,n,r){let l=(await this.getHtml(this.siteUrl+n))('[id="bfurl"]')[0].attribs.href;if(l.indexOf("http")>-1)this.playUrl=l;else{let s="https://jiexi.xn--1lq90i13mxk5bolhm8k.xn--fiqs8s/player/ec.php?code=ak&if=1&url="+l,o=(await this.getHtml(s)).html(),u=JSON.parse(Re(/let ConFig = (.*?),box = /,o));this.playUrl=this.uic(u.url,u.config.uid)}}async setSearch(e,n){let r=`http://123.207.150.253/zxapi/public/?service=App.F.Fetch&req_p=${e}&type=6080`,i=await this.fetch(r,null,this.getHeader());this.vodList=await this.parseVodShortListFromJson(JSON.parse(i))}},Qn=new mT;var yT=class extends He{constructor(){super()}getName(){return Qn.getName()}getAppName(){return Qn.getAppName()}getJSName(){return Qn.getJSName()}async init(e,n){dataBase=e.server.db,await Qn.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await Qn.initAli(e.server.config.alitoken),Qn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Qn.setClasses(),this.classes=Qn.classes}async setFilterObj(){await Qn.setFilterObj(),this.filterObj=Qn.filterObj}async setHomeVod(){await Qn.setHomeVod(),this.homeVodList=Qn.homeVodList}async setCategory(e,n,r,i){await Qn.setCategory(e,n,r,i),this.vodList=Qn.vodList}async setDetail(e){await Qn.setDetail(e),this.vodDetail=Qn.vodDetail}async setPlay(e,n,r){await Qn.setPlay(e,n,r),this.playUrl=Qn.playUrl,this.result=Qn.result}async setSearch(e,n){await Qn.setSearch(e,n),this.vodList=Qn.vodList}async setProxy(e,n){return await Qn.proxy(e,n)}},zo=new yT;async function _Q(t,e){return await zo.init(t,e)}async function EQ(t,e){return await zo.home(t,e)}async function QNe(t,e){return await zo.homeVod(t,e)}async function xQ(t,e){return await zo.category(t,e)}async function bQ(t,e){return await zo.detail(t,e)}async function wQ(t,e){return await zo.play(t,e)}async function SQ(t,e){return await zo.search(t,e)}async function ZNe(t,e){return await zo.proxy(t,e)}var TQ={meta:{key:Qn.getJSName(),name:Qn.getName(),type:Qn.getType()},api:async t=>{t.post("/init",_Q),t.post("/home",EQ),t.post("/category",xQ),t.post("/detail",bQ),t.post("/play",wQ),t.post("/search",SQ),t.get("/proxy/:what/:ids/:end",ZNe)},spider:{init:_Q,home:EQ,homeVod:QNe,category:xQ,detail:bQ,play:wQ,search:SQ}};var gT=class extends Xe{constructor(){super(),this.siteUrl="https://ali.gitcafe.ink"}getName(){return"\u{1F98A}\u2503\u963F\u91CC\u7EB8\u6761\u2503\u{1F98A}"}getAppName(){return"\u963F\u91CC\u7EB8\u6761"}getJSName(){return"gitcafe"}getType(){return 3}async getApiUrl(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=Re(/<script src='(.*?)'><\/script>/,e),r=await this.fetch(n,null,this.getHeader());return{api:"https:"+Re(/ return '(.*?)' \+ /,r)+new Date().getTime(),search_api:Re(/const SEARCH_API = '(.*?)';/,r)}}}async getContentJson(){let e=await this.getApiUrl(),n=await this.fetch(e.api,null,this.getHeader());if(this.search_api=e.search_api,!Q.isEmpty(n))return JSON.parse(n)}async spiderInit(){this.content_json=await this.getContentJson(),this.token_dic=await this.load_cache()}async init(e){await this.spiderInit(),await super.init(e),await Ji(this.cfgObj.token)}async parseClassFromJson(e){let n=Object.keys(e.data).slice(0,19);for(let r of n)this.classes.push({type_name:e.data[r].name,type_id:r})}async parseVodShortListFromJson(e){let n=[],r=this.getClassIdList();for(let i of e){let l=new Me;r.includes(i.cat)&&(l. Line truncated
`,"").replaceAll(" ",""),r.push(s)}return r}async parseVodDetailFromDoc(e){let n=e("#post_content"),r=[],i=[];if(!this.catOpenStatus){let o=0,u="\u78C1\u529B\u7EBF\u8DEF";for(let c of n){let f=e(c).find("table a"),d=[];for(let h of f){let m=h.attribs.href,x=h.children[0].data;m.toLowerCase().startsWith("magnet")&&d.push(x+"$"+m)}d.length>0&&(o++,r.push(u+o),i.push(d.join("#")))}}let l=e(e(".mainleft")).find('[class="widget box row"]');for(let o of l){let u=e(o).find("h3").text(),c=[];if(!Q.isEmpty(u)){let f=e(o).find("a");for(let d of f)c.push(d.attribs.title+"$"+d.attribs.href);r.push(u),i.push(c.join("#"))}}let s=e(".context").html(),a=new tt;return a.vod_name=e(".article_container > h1").text(),a.vod_pic=e("#post_content img").attr("src"),a.type_name=Re(/◎类  别 (.*?)<br>/,s),Q.isEmpty(a.type_name)&&(a.type_name=e('[rel="category tag"]').text()),a.vod_year=Re(/◎年  代 (.*?)<br>/,s),Q.isEmpty(a.vod_year)&&(a.vod_year=Re(/首播:(.*?)<br>"/,s)),a.vod_area=Re(/◎产  地 (.*?)<br>/,s),Q.isEmpty(a.vod_year)&&(a.vod_area=Re(/地区:(.*?)<br>"/,s)),a.vod_remarks=Re(/◎上映日期 (.*?)<br>/,s),a.vod_actor=this.getActorOrDirector(/◎演  员 (.*?)<\/p>/,s),Q.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/◎主  演 (.*?)<\/p>/,s)),Q.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/主演:(.*?)<br>/,s)),a.vod_director=this.getActorOrDirector(/◎导  演 (.*?)<br>/,s),Q.isEmpty(a.vod_director)&&(a.vod_director=this.getActorOrDirector(/导演:(.*?)<br>/,s)),a.vod_content=this.getDescription(/◎简  介(.*?)<hr>/gi,s),Q.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/简介(.*?)<\/p>/gi,s)),Q.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/◎简  介(.*?)<br>/gi,s)),a.vod_play_from=r.join("$$$"),a.vod_play_url=i.join("$$$"),a}async parseVodPlayFromDoc(e,n){let r="",i=n.html();switch(e){case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u63D2\u4EF6 \u6781\u901F\u64AD\u653E\uFF09":case"\u64AD\u653E\u5730\u5740\u4E09":r=n(n(".video")).find("iframe")[0].attribs.src+"/index.m3u8";break;case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u9700\u5B89\u88C5\u63D2\u4EF6\uFF09":let l=/url: '(.*?)',/gs.exec(i);l.length>1&&(r=l[1]);break;case"\u64AD\u653E\u5730\u5740\u56DB":let s=/source: "(.*?)",/gs.exec(i);s.length>1&&(r=s[1]);break;default:await this.jadeLog.warning(`\u6682\u4E0D\u652F\u6301\u5F53\u524D\u683C\u5F0F,\u5F53\u524D\u683C\u5F0F\u4E3A:${e}`);break}return r}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=et(e),r=n("#menus > li > a");for(let i=0;i<r.length;i++){let l=r[i];if(i<2||i===r.length-1)continue;let s=l.children[0].data,a=l.attribs.href;if(this.classes.push({type_name:s,type_id:a}),s==="\u7535\u89C6\u5267"){let o=[{n:"\u4E0D\u9650",v:""}];for(let u of n(l.next).find("a"))o.push({n:u.children[0].data,v:u.attribs.href.replaceAll(a,"")});this.filterObj[a]=[{key:"cateId",name:"\u7C7B\u578B",value:o}]}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(Q.isEmpty(e))await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5931\u8D25",!0);else{let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,i){let l=i.cateId??"",s=this.siteUrl+e+l;this.page=parseInt(n),this.count=0,this.limit=18,this.total=0,this.page!==1&&(s+="index_"+n+".html");let a=await this.fetch(s,null,this.getHeader());if(!Q.isEmpty(a)){let o=et(a),u=o(".pagination > a");if(u.length>0){let c=u.slice(-1)[0].attribs.href,d=/index_(.*?).html/.exec(c);this.count=parseInt(d[1]);let h=o("#post_container .post_hover");this.total=this.page===this.count?(this.page-1)*this.limit+h.length:this.count*this.limit}this.vodList=await this.parseVodShortListFromDoc(o)}}async setSearch(e,n){let r=this.siteUrl+"/e/search/index.php",i={show:"title",tempid:"1",tbname:"article",mid:"1",dopost:"search",keyboard:e},l=await this.post(r,i,this.getHeader());if(!Q.isEmpty(l)){let s=et(l);this.vodList=await this.parseVodShortListFromDoc(s)}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=et(r);this.vodDetail=await this.parseVodDetailFromDoc(i)}}async setPlay(e,n,r){if(n.toLowerCase().startsWith("magnet"))this.playUrl=n;else{let i=this.siteUrl+n,l=await this.fetch(i,null,this.getHeader()),s=et(l);this.playUrl=await this.parseVodPlayFromDoc(e,s)}}},er=new _T;var ET=class extends He{constructor(){super()}getName(){return er.getName()}getAppName(){return er.getAppName()}getJSName(){return er.getJSName()}async init(e,n){dataBase=e.server.db,await er.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await er.initAli(e.server.config.alitoken),er.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await er.setClasses(),this.classes=er.classes}async setFilterObj(){await er.setFilterObj(),th Line truncated
`}}catch{this.playUrl={content:""}}}async search(e,n){let r=await req(`${this.siteUrl}/user/hm.html?q=${encodeURIComponent(e)}`,{headers:{accept:"application/json","User-Agent":vo,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),l=(Q.isArray(r.headers["set-cookie"])?r.headers["set-cookie"].join(";;;"):r.headers["set-cookie"]).split(";;;"),s={};for(let c of l){let f=c.trim(),d=f.indexOf("="),h=f.substr(0,d);s[h]=f.substr(d+1,f.indexOf(";")-d-1)}let a=await req(`${this.siteUrl}/user/search.html?q=${encodeURIComponent(e)}&so=undefined`,{headers:{accept:"application/json","User-Agent":vo,cookie:"hm="+s.hm,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),o=JSON.parse(a.content),u=[];for(let c of o)u.push({book_id:c.url_list,book_name:c.articlename,book_pic:c.url_img,book_remarks:c.author});return{tline:2,list:u}}async proxy(e,n){await this.jadeLog.debug(`\u6B63\u5728\u8BBE\u7F6E\u53CD\u5411\u4EE3\u7406 segments = ${e.join(",")},headers = ${JSON.stringify(n)}`);let r=e[0],i=Xi(e[1]);if(r==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${i}`);let l=await this.getHtml(this.siteUrl+i),s=await this.parseVodDetailFromDoc(l),a;return Q.isEmpty(n)?a=await req(s.book_pic,{buffer:2,headers:{Referer:i,"User-Agent":Wi}}):a=await req(s.book_pic,{buffer:2,headers:n}),JSON.stringify({code:a.code,buffer:2,content:a.content,headers:a.headers})}return JSON.stringify({code:500,content:""})}},Pn=new jS;var $S=class extends $e{constructor(){super()}getName(){return Pn.getName()}getAppName(){return Pn.getAppName()}getJSName(){return Pn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Pn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Pn.initCookie(e.server.config.bilicookie),await Pn.spiderInit(e),Pn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Pn.setClasses(),this.classes=Pn.classes}async setFilterObj(){await Pn.setFilterObj(),this.filterObj=Pn.filterObj}async setHomeVod(){await Pn.setHomeVod(),this.homeVodList=Pn.homeVodList}async setCategory(e,n,r,i){await Pn.setCategory(e,n,r,i),this.vodList=Pn.vodList}async setDetail(e){await Pn.setDetail(e),this.vodDetail=Pn.vodDetail}async setPlay(e,n,r){await Pn.setPlay(e,n,r),this.playUrl=Pn.playUrl,this.result=Pn.result}async setSearch(e,n){await Pn.setSearch(e,n),this.vodList=Pn.vodList}async setProxy(e,n){return await Pn.proxy(e,n)}},Ro=new $S;async function IX(t,e){return await Ro.init(t,e)}async function RX(t,e){return await Ro.home(t,e)}async function hNe(t,e){return await Ro.homeVod(t,e)}async function DX(t,e){return await Ro.category(t,e)}async function kX(t,e){return await Ro.detail(t,e)}async function PX(t,e){return await Ro.play(t,e)}async function LX(t,e){return await Ro.search(t,e)}async function dNe(t,e){return await Ro.proxy(t,e)}var FX={meta:{key:Pn.getJSName(),name:Pn.getName(),type:Pn.getType()},api:async t=>{t.post("/init",IX),t.post("/home",RX),t.post("/category",DX),t.post("/detail",kX),t.post("/play",PX),t.post("/search",LX),t.get("/proxy/:what/:ids/:end",dNe)},spider:{init:IX,home:RX,homeVod:hNe,category:DX,detail:kX,play:PX,search:LX}};var HS=class extends Ge{constructor(){super(),this.siteUrl="http://m.dj0898.com"}getName(){return"\u{1F3B5}\u2503\u4E16\u7EAADJ\u97F3\u4E50\u7F51\u2503\u{1F3B5}"}getAppName(){return"\u4E16\u7EAADJ\u97F3\u4E50\u7F51"}getJSName(){return"dj0898_book_open"}getType(){return 10}async parseVodShortListFromDoc(e){let n=[],r=e("ul.djddv_djList > li");for(let i of r){let l=new Ul,s=e(i).find("a")[1];l.book_id=s.attribs.href,l.book_pic=e(i).find("img:first")[0].attribs.src;let a=e(i).find("strong:first")[0];l.book_name=a.children[0].data,l.book_remarks="\u{1F3B5}"+e(i).find("font")[5].children[0].data||"",n.push(l)}return n}async parseVodShortListFromDocByCategory(e){let n=e("ul.djddv_djList > li"),r=Q.map(n,l=>{let s=e(l).find("a")[1],a=e(l).find("img:first")[0],o=e(l).find("strong:first")[0],u=e(l).find("font")[5];return{book_id:s.attribs.href,book_name:o.children[0].data,book_pic:a.attribs.src,book_remarks:"\u{1F3B5}"+u.children[0].data||""}}),i=e("ul.page_link > li > a:contains(\xA0)").length>0;return this.page=i?parseInt(this.page)+1:parseInt(this.page),r}async parseVodShortListFromDocBySearch(e){let n=e("ul.djddv_djList > li");return Q.map(n,r=>{let i=e(r).find("a")[1],l=e(r).find("img:first")[0],s=e(r).find("strong:first")[0],a=e(r).find("font:first")[0];return{book_id:i.attribs.href,book_name:s.children[0].data,book_pic:l.attribs.src,book_remarks:"\u{1F3B5}"+a.children[0].data||""}})}async parseVodDetailFromDoc(e){let n={book_id:e,audio:1,type_name:"",book_year:"",book_area:"",book_remarks:"",book_actor:"",book_director:"",book_content:""},r=["\u70B9\u51FB\u64AD\u653E$"+n.book_id];return n.volumes="\u4E16\u7EAADJ\u97F3\u4E50\u7F51",n.urls=r.join("#"),n}async setClasses(){this.classes=[{type Line truncated
`),i=[];for(let d of r)Q.isEmpty(d.replaceAll(" ","").replaceAll("/",""))||i.push(d.replaceAll(" ","").replaceAll("/",""));n.type_name=i.slice(0,2).join("*");let l=e('[class="video-info-items"]');n.vod_director=e(l[0]).find("a")[0].children[0].data;let s=e(l[1]).find("a"),a=[];for(let d of s)a.push(d.children[0].data);n.vod_actor=a.join(" * "),n.vod_year=i[2],n.vod_remarks=e(e(l[3]).find(".video-info-item")).text(),n.vod_content=e(e(l[5]).find(".video-info-item")).text(),n.vod_area=i[3],n.vod_content=n.vod_content.replace("[\u6536\u8D77\u90E8\u5206]","").replace("[\u5C55\u5F00\u5168\u90E8]","").replaceAll(" ","").replaceAll(`
`,"");let o=e(e('[class="module-tab-content"]')[0]).find("span"),u=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let d of o)c.push(e(d).text());let f=[];for(let d of u){let h=e(e(d).find('[class="sort-item"]')).find("a"),m=[];for(let x of h){let b=e(x).text(),_=x.attribs.href,E=b+"$"+_;m.push(E)}f.push(m.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=Q.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),r=[];for(let i of n){let l=new Me;l.vod_id=e(i).find(".video-serial")[0].attribs.href,l.vod_name=e(i).find(".video-serial")[0].attribs.title,l.vod_pic=e(i).find(".module-item-pic > img")[0].attribs["data-src"],l.vod_remarks="",r.push(l)}return r}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=et(e),r=n(n('[class="nav-menu-items"]')[0]).find("li");for(let i of r.slice(0,6)){let l=n(n(i).find("span")).text();if(l!=="\u9996\u9875"){let a={type_id:n(i).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:l};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),r=[];for(let i=0;i<n.length;i++){let l={key:(i+1).toString(),name:"",value:[]};if(i<n.length-1){l.name=e(e(n[i]).find("a")[0]).text(),l.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[i]).find("a").slice(1))e(e(n[i]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?l.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):l.value.push({n:e(s).text(),v:e(s).text()});r.push(l)}else l.name=e(e(n[i]).find("a")[0]).text(),l.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[i]).find("a")[1]).text(),v:"hits"},{n:e(e(n[i]).find("a")[2]).text(),v:"score"}],r.push(l)}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let r=this.siteUrl+`/vodshow/id/${n}.html`,i=await this.fetch(r,null,this.getHeader());if(i!=null){let l=et(i);this.filterObj[n]=await this.getFilter(l)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,r=""){return e!==void 0&&e!=="0"?r+e:n}async getCateUrl(e,n,r){e=this.getExtend(r[1],e);let i=this.getExtend(r[2],"","/area/"),l=this.getExtend(r[3],"","/lang/"),s=this.getExtend(r[4],"","/year/"),a=this.getExtend(r[5],"","/letter/"),o=this.getExtend(r[6],"","/by/");return this.siteUrl+`/vodshow${o}${i}/id/${e}${l}${a}${s}/page/${n}.html`}async setCategory(e,n,r,i){let l=await this.getCateUrl(e,n,i),s=await this.fetch(l,null,this.getHeader());if(!Q.isEmpty(s)){let a=et(s);this.vodList=await this.parseVodShortListFromDoc(a);let o=Re(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,o.length>0&&(this.total=parseInt(o)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=et(r);this.vodDetail=await this.parseVodDetailFromDoc(i)}}async setPlay(e,n,r){let i=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!Q.isEmpty(i)){let l=Re(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,i),s=JSON.parse(l);this.playUrl=s.url}}async setSearch(e,n){let r=this.siteUrl+`/vodsearch/wd/${e}.html`,i=await this.fetch(r,null,this.getHeader());if(!Q.isEmpty(i)){let l=et(i);this.vodList=await this.parseVodShortListFromDocBySearch(l)}}},nr=new wT;var ST=class extends He{constructor(){super()}getName(){return nr.getName()}getAppName(){return nr.getAppName()}getJSName(){return nr.getJSName()}async init(e,n){dataBase=e.server.db,await nr.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await nr.initAli(e.server.config.alitoken),nr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await nr.setClasses(),this.classes=nr.classes}async setFilterObj(){await nr.setFilterObj(),this.filterObj=nr.filterObj}async setHomeVod(){await nr.setHomeVod(),this.homeVodList=nr.homeVodList}async setCategory(e,n,r,i){await nr.setCategory(e,n,r,i),this.vodList=nr.vodList}async setDetail(e){await nr.setDetail(e),this.vodDetail=nr.vodDetail}async setPlay(e,n,r){await nr.setPlay(e,n,r),this.playUrl=nr.playUrl,this.result=nr.result}async setSearch(e,n){await nr.setSearch(e,n),this.vodList=nr.vodList}async setProxy(e,n){return await nr.proxy(e,n)}},Jo=new ST;async function KQ(t,e){return await Jo.init(t,e)}async function WQ(t,e){return await Jo.home(t,e)}async function sRe(t,e){return await Jo.homeVod(t,e)}async function JQ(t,e){return await Jo.category(t,e)}async function XQ(t,e){return await Jo.detail(t,e)}async function YQ(t,e){return await Jo.play(t,e)}async function QQ(t,e){return await Jo.search(t,e)}async function aRe(t,e){return await Jo.proxy(t,e)}var ZQ={meta:{key:nr.getJSName(),name:nr.getName(),typ Line truncated
`);r.vod_name=i[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let l=new Date(n.time);r.vod_remarks=l.toLocaleDateString().replace(/\//g,"-")+" "+l.toTimeString().substr(0,8),r.vod_pic=n.image;let s="";for(let a of i)a.indexOf("\u63CF\u8FF0")>-1&&(r.vod_content=a.replace("\u63CF\u8FF0\uFF1A","").replaceAll(/<\\?[^>]+>/g,"")),a.indexOf("\u6807\u7B7E\uFF1A")>-1&&(r.type_name=a.replace("\u{1F3F7} \u6807\u7B7E\uFF1A","")),a.indexOf("\u94FE\u63A5\uFF1A")>-1&&(s=a.replaceAll(/<\\?[^>]+>/g,"").replace("\u94FE\u63A5\uFF1A",""));try{let a=await kl([s]);r.vod_play_url=a.vod_play_url,r.vod_play_from=a.vod_play_from}catch(a){await this.jadeLog.error(`\u83B7\u53D6\u963F\u91CC\u89C6\u9891\u64AD\u653E\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${a}`)}return r}async parseVodShortListFromDocBySearch(e,n){let r=[],i=JSON.parse(e("script[id=__NEXT_DATA__]")[0].children[0].data).buildId,l=this.siteUrl+"_next/data/"+i+"/search.json?keyword="+encodeURIComponent(n)+"&pan=aliyundrive",s=await this.fetch(l,null,this.getSearchHeader());if(Q.isEmpty(s))await this.jadeLog.error("\u641C\u7D22\u9875\u9762\u89E3\u6790\u5931\u8D25",!0);else{let a=JSON.parse(s).pageProps.data.data;for(let o of a){let u=new Me;u.vod_id=JSON.stringify(o);let c=o.content.split(`
`);u.vod_name=c[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let f=new Date(o.time);u.vod_remarks=f.toLocaleDateString().replace(/\//g,"-")+" "+f.toTimeString().substr(0,8),u.vod_pic=o.image,r.push(u)}return r}}async setDetail(e){this.vodDetail=await this.parseVodDetailfromJson(e)}async setSearch(e,n){let r=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(r)){let i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i,e)}}async play(e,n,r){return await Pl(e,n,r)}},rr=new TT;var AT=class extends He{constructor(){super()}getName(){return rr.getName()}getAppName(){return rr.getAppName()}getJSName(){return rr.getJSName()}async init(e,n){dataBase=e.server.db,await rr.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await rr.initAli(e.server.config.alitoken),rr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await rr.setClasses(),this.classes=rr.classes}async setFilterObj(){await rr.setFilterObj(),this.filterObj=rr.filterObj}async setHomeVod(){await rr.setHomeVod(),this.homeVodList=rr.homeVodList}async setCategory(e,n,r,i){await rr.setCategory(e,n,r,i),this.vodList=rr.vodList}async setDetail(e){await rr.setDetail(e),this.vodDetail=rr.vodDetail}async setPlay(e,n,r){await rr.setPlay(e,n,r),this.playUrl=rr.playUrl,this.result=rr.result}async setSearch(e,n){await rr.setSearch(e,n),this.vodList=rr.vodList}async setProxy(e,n){return await rr.proxy(e,n)}},Xo=new AT;async function eZ(t,e){return await Xo.init(t,e)}async function tZ(t,e){return await Xo.home(t,e)}async function oRe(t,e){return await Xo.homeVod(t,e)}async function nZ(t,e){return await Xo.category(t,e)}async function rZ(t,e){return await Xo.detail(t,e)}async function iZ(t,e){return await Xo.play(t,e)}async function lZ(t,e){return await Xo.search(t,e)}async function uRe(t,e){return await Xo.proxy(t,e)}var sZ={meta:{key:rr.getJSName(),name:rr.getName(),type:rr.getType()},api:async t=>{t.post("/init",eZ),t.post("/home",tZ),t.post("/category",nZ),t.post("/detail",rZ),t.post("/play",iZ),t.post("/search",lZ),t.get("/proxy/:what/:ids/:end",uRe)},spider:{init:eZ,home:tZ,homeVod:oRe,category:nZ,detail:rZ,play:iZ,search:lZ}};function cRe(t){return t.replace(/<\/?[^>]+(>|$)/g,"").replace(/&.{1,5};/g,"").replace(/\s{2,}/g," ")}function fRe(t,e){return e.trim().replaceAll(t,"").replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}var CT=class extends Xe{constructor(){super(),this.siteUrl="http://ys.changmengyun.com"}getName(){return"\u{1F383}\u2503\u5357\u74DC\u5F71\u89C6\u2503\u{1F383}"}getAppName(){return"\u5357\u74DC\u5F71\u89C6"}getJSName(){return"nangua"}getType(){return 3}async init(e){await super.init(e),this.danmuStaus=!0}getHeader(){let e=new Date().getTime().toString();return{version_name:"1.0.6",version_code:"6",package_name:"com.app.nanguatv",sign:Ke.MD5("c431ea542cee9679#uBFszdEM0oL0JRn@"+e).toString().toLowerCase(),imei:"c431ea542cee9679",timeMillis:e,"User-Agent":"okhttp/4.6.0"}}async setClasses(){let e=JSON.parse(await this.fetch(this.siteUrl+"/api.php/provide/home_nav",null,this.getHeader()));for(let n in e)e[n].name!=="\u7CBE\u9009"&&this.classes.push({type_id:e[n].id,type_name:e[n].name})}async setFilterObj(){this.filterObj={2:[{key:"class",name:"\u7C7B\u578B",value:[{n:"\u5168\u90E8",v:"\u7C7B\u578B"},{n:"\u56FD\u4EA7\u5267",v:"\u56FD\u4EA7\u5267"},{n:"\u6E2F\u53F0\u5267",v:"\u6E2F\u53F0\u5267"}]},{key:"area",name:"\u5730\u533A",value:[{n:"\u5168\u90E8",v:"\u5730\u533A"},{n:"\u5185\u5730",v:"\u5185\u5730"},{n:"\u9999\u6E2F\u5730\u533A",v:"\u9999\u6E2F\u5730\u533A"},{n:"\u53F0\u6E7E\u5730\u533A",v:"\u53F0\u6E7E\u5730\u533A"}]},{key:"year",name:"\u5E74\u4EFD",value:[{n:"\u5168\u90E8",v:"\u5E74\u4EFD"},{n:"2024",v:"2024"},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"},{n:"2016",v:"2016"},{n:"2015",v:"2015"},{n:"10\u5E74\u4EE3",v:"10\u5E74\u4EE3"},{n:"00\u5E74\u4EE3",v:"00\u5E74\u4EE3"},{n:"90\u5E74\u4EE3",v:"90\u5E74\u4EE3"},{n:"80\u5E74\u4EE3",v:"80\u5E74\u4EE3"}]},{key:"by",name:"\u6392\u5E8F",value:[{n:"\u70ED\u64AD\u699C",v:"\u70ED\u64AD\u699C"},{n:"\u597D\u8BC4\u699C",v:"\u597D\u8BC4\u699C"},{n:"\u65B0\u4E0A\u7EBF",v:"\u65B0\u4E0A\u7EBF"}]}],1:[{key:"class",name:"\u7C7B\u578B",value:[{n:"\u5168\u90E8",v:"\u7C7B\u578B"},{n:"\u52A8\u4F5C\u7247",v:"\u52A8\u4F5C\u7247"},{n:"\u559C\u5267\u7247",v:"\u559C\u5267\u7247"},{n:"\u7231\u60C5\u7247",v:"\u7231\u60C5\u7247"},{n:"\u79D1\u5E7B\u7247",v:"\u79D1\u5E7B\u7247"},{n:"\u6050\u6016\u7247",v:"\u6050\u6016\u7247"},{n:"\u5267\u60C5\u7247",v:"\u5267\u60C5\u7247"},{n:"\u6218\u4E89\u7247",v:"\u6218\u4E89\u7247"},{n:"\u60CA\u609A\u7247",v:"\u60CA\u609A\u7247"}]},{key:"area",name:"\u5730\u533A",value:[{n:"\u5168\u90E8",v:"\u5730\u533A"},{n:"\u534E\u8BED",v:"\u534E\u8BED"},{n:"\u9999\u6E2F\u5730\u533A",v:"\u9999\u6E2F\u5730\u533A"},{n:"\u7F8E\u56F Line truncated
`;let o=[],u=Re(wu,a).split(`
`);for(let f of u){let d=f.match(wu);Q.isEmpty(d)||o.push(d[1])}let c=await kl(o);return i.vod_play_url=c.vod_play_url,i.vod_play_from=c.vod_play_from,i.type_name=Re(/标签(.*?)\n/,a).replaceAll("\uFF1A",""),i.vod_content=Re(/描述(.*?)\n/,a).replaceAll("\uFF1A",""),i}async setClasses(){let e=await this.getHtml(),n=e("[id^='navbar-category']").find("a"),r=["\u5F71","\u5267","4K","\u89C6","\u97F3","\u6F14","\u52A8\u6F2B"];for(let i of n){let l=e(i).text(),s=i.attribs.href,a=!1;for(let o of r)l.indexOf(o)>-1&&(a=!0);a&&this.classes.push(this.getTypeDic(l,s))}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,i){let l=e.split(".html")[0]+"_"+n+".html",s=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setPlay(e,n,r){let i=await Pl(e,n,r);this.playUrl=JSON.parse(i).url}async setSearch(e,n){let r=this.siteUrl+`/search.php?q=${e}`,i=await this.getHtml(r);this.vodList=await this.parseVodShortListFromDocByCategory(i)}},sr=new IT;var DT=class extends He{constructor(){super()}getName(){return sr.getName()}getAppName(){return sr.getAppName()}getJSName(){return sr.getJSName()}async init(e,n){dataBase=e.server.db,await sr.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await sr.initAli(e.server.config.alitoken),sr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await sr.setClasses(),this.classes=sr.classes}async setFilterObj(){await sr.setFilterObj(),this.filterObj=sr.filterObj}async setHomeVod(){await sr.setHomeVod(),this.homeVodList=sr.homeVodList}async setCategory(e,n,r,i){await sr.setCategory(e,n,r,i),this.vodList=sr.vodList}async setDetail(e){await sr.setDetail(e),this.vodDetail=sr.vodDetail}async setPlay(e,n,r){await sr.setPlay(e,n,r),this.playUrl=sr.playUrl,this.result=sr.result}async setSearch(e,n){await sr.setSearch(e,n),this.vodList=sr.vodList}async setProxy(e,n){return await sr.proxy(e,n)}},Zo=new DT;async function xZ(t,e){return await Zo.init(t,e)}async function bZ(t,e){return await Zo.home(t,e)}async function gRe(t,e){return await Zo.homeVod(t,e)}async function wZ(t,e){return await Zo.category(t,e)}async function SZ(t,e){return await Zo.detail(t,e)}async function TZ(t,e){return await Zo.play(t,e)}async function AZ(t,e){return await Zo.search(t,e)}async function vRe(t,e){return await Zo.proxy(t,e)}var CZ={meta:{key:sr.getJSName(),name:sr.getName(),type:sr.getType()},api:async t=>{t.post("/init",xZ),t.post("/home",bZ),t.post("/category",wZ),t.post("/detail",SZ),t.post("/play",TZ),t.post("/search",AZ),t.get("/proxy/:what/:ids/:end",vRe)},spider:{init:xZ,home:bZ,homeVod:gRe,category:wZ,detail:SZ,play:TZ,search:AZ}};var C6="abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789";function l4(t,e){return Math.floor(Math.random()*(e-t+1))+t}function e3(t,e,n){var r="";let i=e===void 0?!0:e;for(var l=0;l<t;l++){let s=n?l4(C6.length-10,C6.length-1):l4(0,i?C6.length-1:C6.length-11);r+=C6[s]}return r}function kT(){return e3(8).toLowerCase()+"-"+e3(4).toLowerCase()+"-"+e3(4).toLowerCase()+"-"+e3(4).toLowerCase()+"-"+e3(12).toLowerCase()}var OZ=["Huawei","Xiaomi"],NZ=[["MHA-AL00","HUAWEI Mate 9","MHA-TL00","HUAWEI Mate 9","LON-AL00","HUAWEI Mate 9 Pro","ALP-AL00","HUAWEI Mate 10","ALP-TL00","HUAWEI Mate 10","BLA-AL00","HUAWEI Mate 10 Pro","BLA-TL00","HUAWEI Mate 10 Pro","HMA-AL00","HUAWEI Mate 20","HMA-TL00","HUAWEI Mate 20","LYA-AL00","HUAWEI Mate 20 Pro","LYA-AL10","HUAWEI Mate 20 Pro","LYA-TL00","HUAWEI Mate 20 Pro","EVR-AL00","HUAWEI Mate 20 X","EVR-TL00","HUAWEI Mate 20 X","EVR-AN00","HUAWEI Mate 20 X","TAS-AL00","HUAWEI Mate 30","TAS-TL00","HUAWEI Mate 30","TAS-AN00","HUAWEI Mate 30","TAS-TN00","HUAWEI Mate 30","LIO-AL00","HUAWEI Mate 30 Pro","LIO-TL00","HUAWEI Mate 30 Pro","LIO-AN00","HUAWEI Mate 30 Pro","LIO-TN00","HUAWEI Mate 30 Pro","LIO-AN00m","HUAWEI Mate 30E Pro","OCE-AN10","HUAWEI Mate 40","OCE-AN50","HUAWEI Mate 40E","OCE-AL50","HUAWEI Mate 40E","NOH-AN00","HUAWEI Mate 40 Pro","NOH-AN01","HUAWEI Mate 40 Pro","NOH-AL00","HUAWEI Mate 40 Pro","NOH-AL10","HUAWEI Mate 40 Pro","NOH-AN50","HUAWEI Mate 40E Pro","NOP-AN00","HUAWEI Mate 40 Pro","CET-AL00","HUAWEI Mate 50","CET-AL60","HUAWEI Mate 50E","DCO-AL00","HUAWEI Mate 50 Pro","TAH-AN00","HUAWEI Mate X","TAH-AN00m","HUAWEI Mate Xs","TET-AN00","HUAWEI Mate X2","TET-AN10","HUAWEI Mate X2","TET-AN50","HUAWEI Mate X2","TET-AL00","HUAWEI Mate X2","PAL-AL00","HUAWEI Mate Xs 2","PAL-AL10","HUAWEI Mate Xs 2","EVA-AL00","HUAWEI P9","EVA-AL10","HUAWEI P9","EVA-TL00","HUAWEI P9","EVA-DL00","HUAWEI P9","EVA-CL00","HUAWEI P9","VIE-AL10","HUAWEI P9 Plus","VTR-AL00","HUAWEI P10","VTR-TL00","HUAWEI P10","VKY-AL00","HUAWEI P10 Plus","VKY-TL00","HUAWEI P10 Plus","EML-AL00","HUAWEI P20","EML-TL00","HUAWEI P20","CLT-AL00","HUAWEI P20 Line truncated
`,"");let o=e(e('[class="module-tab-content"]')[0]).find("span"),u=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let d of o)c.push(e(d).text());let f=[];for(let d of u){let h=e(e(d).find('[class="sort-item"]')).find("a"),m=[];for(let x of h){let b=e(x).text(),_=x.attribs.href,E=b+"$"+_;m.push(E)}f.push(m.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=Q.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),r=[];for(let i of n){let l=new Pe;l.vod_id=e(i).find(".video-serial")[0].attribs.href,l.vod_name=e(i).find(".video-serial")[0].attribs.title,l.vod_pic=e(i).find(".module-item-pic > img")[0].attribs["data-src"],l.vod_remarks="",r.push(l)}return r}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=tt(e),r=n(n('[class="nav-menu-items"]')[0]).find("li");for(let i of r.slice(0,6)){let l=n(n(i).find("span")).text();if(l!=="\u9996\u9875"){let a={type_id:n(i).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:l};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),r=[];for(let i=0;i<n.length;i++){let l={key:(i+1).toString(),name:"",value:[]};if(i<n.length-1){l.name=e(e(n[i]).find("a")[0]).text(),l.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[i]).find("a").slice(1))e(e(n[i]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?l.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):l.value.push({n:e(s).text(),v:e(s).text()});r.push(l)}else l.name=e(e(n[i]).find("a")[0]).text(),l.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[i]).find("a")[1]).text(),v:"hits"},{n:e(e(n[i]).find("a")[2]).text(),v:"score"}],r.push(l)}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let r=this.siteUrl+`/vodshow/id/${n}.html`,i=await this.fetch(r,null,this.getHeader());if(i!=null){let l=tt(i);this.filterObj[n]=await this.getFilter(l)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=tt(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,r=""){return e!==void 0&&e!=="0"?r+e:n}async getCateUrl(e,n,r){e=this.getExtend(r[1],e);let i=this.getExtend(r[2],"","/area/"),l=this.getExtend(r[3],"","/lang/"),s=this.getExtend(r[4],"","/year/"),a=this.getExtend(r[5],"","/letter/"),o=this.getExtend(r[6],"","/by/");return this.siteUrl+`/vodshow${o}${i}/id/${e}${l}${a}${s}/page/${n}.html`}async setCategory(e,n,r,i){let l=await this.getCateUrl(e,n,i),s=await this.fetch(l,null,this.getHeader());if(!Q.isEmpty(s)){let a=tt(s);this.vodList=await this.parseVodShortListFromDoc(a);let o=Ie(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,o.length>0&&(this.total=parseInt(o)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=tt(r);this.vodDetail=await this.parseVodDetailFromDoc(i)}}async setPlay(e,n,r){let i=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!Q.isEmpty(i)){let l=Ie(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,i),s=JSON.parse(l);this.playUrl=s.url}}async setSearch(e,n){let r=this.siteUrl+`/vodsearch/wd/${e}.html`,i=await this.fetch(r,null,this.getHeader());if(!Q.isEmpty(i)){let l=tt(i);this.vodList=await this.parseVodShortListFromDocBySearch(l)}}},Bn=new KS;var JS=class extends $e{constructor(){super()}getName(){return Bn.getName()}getAppName(){return Bn.getAppName()}getJSName(){return Bn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Bn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Bn.initCookie(e.server.config.bilicookie),await Bn.spiderInit(e),Bn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Bn.setClasses(),this.classes=Bn.classes}async setFilterObj(){await Bn.setFilterObj(),this.filterObj=Bn.filterObj}async setHomeVod(){await Bn.setHomeVod(),this.homeVodList=Bn.homeVodList}async setCategory(e,n,r,i){await Bn.setCategory(e,n,r,i),this.vodList=Bn.vodList}async setDetail(e){await Bn.setDetail(e),this.vodDetail=Bn.vodDetail}async setPlay(e,n,r){await Bn.setPlay(e,n,r),this.playUrl=Bn.playUrl,this.result=Bn.result}async setSearch(e,n){await Bn.setSearch(e,n),this.vodList=Bn.vodList}async setProxy(e,n){return await Bn.proxy(e,n)}},Po=new JS;async function QX(t,e){return await Po.init(t,e)}async function ZX(t,e){return await Po.home(t,e)}async function TNe(t,e){return await Po.homeVod(t,e)}async function eY(t,e){return await Po.category(t,e)}async function tY(t,e){return await Po.detail(t,e)}async function nY(t,e){return await Po.play(t,e)}async function rY(t,e){return await Po.search(t,e)}async functi Line truncated
`;n.type_name=e(e(e(i).find('[class="post-meta"]')).find("span")[0]).text(),n.vod_pic=e(i).find("img")[0].attribs.src,n.vod_name=Ie(/名称:(.*?)\n/,s),n.vod_actor=Ie(/主演:(.*?)\n/,s),n.vod_director=Ie(/导演:(.*?)\n/,s),n.vod_area=Ie(/地区:(.*?)\n/,s),n.vod_year=Ie(/年份:(.*?)\n/,s),n.vod_remarks=Ie(/更新:(.*?)\n/,s);let a=e('[class="article-related info"]').find("p");n.vod_content=e(a).text();let o=e('[class="article-related download_url"]'),u=[],c=[];for(let f=0;f<o.length;f++){let d=o[f],h=e(e(d).find("h2")).text().replaceAll(n.vod_name,"");u.push(h.replaceAll("\u4E0B\u8F7D","\u64AD\u653E"));let m=[];for(let x of e(o[f]).find("a")){let b=e(x).text().replaceAll("\u78C1\u529B\u94FE\u4E0B\u8F7D","").replaceAll(".mp4",""),_=x.attribs.href;m.push(b+"$"+_)}c.push(m.join("#"))}return n.vod_play_from=u.join("$$$"),n.vod_play_url=c.join("$$$"),n}async parseVodShortListFromJson(e){let n=[],r=tt(e.ajaxtxt),i=r(r("ul")).find("li");for(let l of i){let s=new Pe;s.vod_pic=r(l).find("img")[0].attribs["data-original"],s.vod_name=Ie(/《(.*?)》/,r(l).find("img")[0].attribs.alt),s.vod_id=r(l).find("a")[0].attribs.href,s.vod_remarks="\u8BC4\u5206:"+r(r(l).find('[class="rate badge"]')).text(),n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],r=e(e('[id="list_all"]').find("ul")).find("li");for(let i of r){let l=new Pe;l.vod_id=e(i).find("a")[0].attribs.href,l.vod_name=Ie(/《(.*?)》/,e(e(e(i).find('[class="text_info"]')).find("a")[0]).text()),l.vod_pic=e(i).find("img")[0].attribs["data-original"],l.vod_remarks=e(e(i).find('[class="update_time"]')).text(),n.push(l)}return n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);return this.vodDetail=await this.parseVodDetailFromDoc(n),this.vodDetail}async setCategory(e,n,r,i){let l=this.siteUrl+`/list/${e}-${n}.html`,s=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setSearch(e,n){let r=this.siteUrl+"/search/",i={wd:e,p:"1",t:"j/tNgwBS2e8O4x9TuIkYuQ=="},l=await this.post(r,i,this.getSearchHeader()),s=tt(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}},qn=new sT;var aT=class extends $e{constructor(){super()}getName(){return qn.getName()}getAppName(){return qn.getAppName()}getJSName(){return qn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await qn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await qn.initCookie(e.server.config.bilicookie),await qn.spiderInit(e),qn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await qn.setClasses(),this.classes=qn.classes}async setFilterObj(){await qn.setFilterObj(),this.filterObj=qn.filterObj}async setHomeVod(){await qn.setHomeVod(),this.homeVodList=qn.homeVodList}async setCategory(e,n,r,i){await qn.setCategory(e,n,r,i),this.vodList=qn.vodList}async setDetail(e){await qn.setDetail(e),this.vodDetail=qn.vodDetail}async setPlay(e,n,r){await qn.setPlay(e,n,r),this.playUrl=qn.playUrl,this.result=qn.result}async setSearch(e,n){await qn.setSearch(e,n),this.vodList=qn.vodList}async setProxy(e,n){return await qn.proxy(e,n)}},Vo=new aT;async function $Y(t,e){return await Vo.init(t,e)}async function HY(t,e){return await Vo.home(t,e)}async function HNe(t,e){return await Vo.homeVod(t,e)}async function qY(t,e){return await Vo.category(t,e)}async function VY(t,e){return await Vo.detail(t,e)}async function zY(t,e){return await Vo.play(t,e)}async function GY(t,e){return await Vo.search(t,e)}async function qNe(t,e){return await Vo.proxy(t,e)}var KY={meta:{key:qn.getJSName(),name:qn.getName(),type:qn.getType()},api:async t=>{t.post("/init",$Y),t.post("/home",HY),t.post("/category",qY),t.post("/detail",VY),t.post("/play",zY),t.post("/search",GY),t.get("/proxy/:what/:ids/:end",qNe)},spider:{init:$Y,home:HY,homeVod:HNe,category:qY,detail:VY,play:zY,search:GY}};var oT=class extends Ge{constructor(){super(),this.siteUrl="https://www.cs1369.com"}getName(){return"\u{1F943}\u2503\u4E5D\u4E5D\u516D\u5F71\u89C6\u2503\u{1F943}"}getAppName(){return"\u4E5D\u4E5D\u516D\u5F71\u89C6"}getJSName(){return"jiujiuliu"}getType(){return 3}async parseVodShortListFromDoc(e){let n=[],r=e('[class="stui-vodlist clearfix"]').find("li");for(let i of r){let l=e(i).find('[class="stui-vodlist__thumb lazyload"]')[0],s=new Pe;s.vod_id=l.attribs.href,s.vod_name=l.attribs.title,s.vod_pic=l.attribs["data-original"],s.vod_remarks=e(e(l).find('[class="pic-text text-right"]')[0]).text(),n.push(s)}return n}async parseVodShortListFromDocBySearch(e){let n=[],r=e('[class="stui-pannel_bd"]').find("li");for(let i of r){let l=e(e(i).find('[class="thumb"]')[0]).find("a")[0],s=new Pe;s.vod_id=l.attribs.href,s.vod_name=l.attribs.title,s.vod_pic=l.attribs["data-original"],s.vod_remarks=Ie(/类型:(.*?) Line truncated
`);r.vod_name=i[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let l=new Date(n.time);r.vod_remarks=l.toLocaleDateString().replace(/\//g,"-")+" "+l.toTimeString().substr(0,8),r.vod_pic=n.image;let s="";for(let a of i)a.indexOf("\u63CF\u8FF0")>-1&&(r.vod_content=a.replace("\u63CF\u8FF0\uFF1A","").replaceAll(/<\\?[^>]+>/g,"")),a.indexOf("\u6807\u7B7E\uFF1A")>-1&&(r.type_name=a.replace("\u{1F3F7} \u6807\u7B7E\uFF1A","")),a.indexOf("\u94FE\u63A5\uFF1A")>-1&&(s=a.replaceAll(/<\\?[^>]+>/g,"").replace("\u94FE\u63A5\uFF1A",""));try{let a=await Ll([s]);r.vod_play_url=a.vod_play_url,r.vod_play_from=a.vod_play_from}catch(a){await this.jadeLog.error(`\u83B7\u53D6\u963F\u91CC\u89C6\u9891\u64AD\u653E\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:${a}`)}return r}async parseVodShortListFromDocBySearch(e,n){let r=[],i=JSON.parse(e("script[id=__NEXT_DATA__]")[0].children[0].data).buildId,l=this.siteUrl+"_next/data/"+i+"/search.json?keyword="+encodeURIComponent(n)+"&pan=aliyundrive",s=await this.fetch(l,null,this.getSearchHeader());if(Q.isEmpty(s))await this.jadeLog.error("\u641C\u7D22\u9875\u9762\u89E3\u6790\u5931\u8D25",!0);else{let a=JSON.parse(s).pageProps.data.data;for(let o of a){let u=new Pe;u.vod_id=JSON.stringify(o);let c=o.content.split(`
`);u.vod_name=c[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let f=new Date(o.time);u.vod_remarks=f.toLocaleDateString().replace(/\//g,"-")+" "+f.toTimeString().substr(0,8),u.vod_pic=o.image,r.push(u)}return r}}async setDetail(e){this.vodDetail=await this.parseVodDetailfromJson(e)}async setSearch(e,n){let r=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(r)){let i=tt(r);this.vodList=await this.parseVodShortListFromDocBySearch(i,e)}}async play(e,n,r){return await Fl(e,n,r)}},zn=new cT;var fT=class extends $e{constructor(){super()}getName(){return zn.getName()}getAppName(){return zn.getAppName()}getJSName(){return zn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await zn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await zn.initCookie(e.server.config.bilicookie),await zn.spiderInit(e),zn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await zn.setClasses(),this.classes=zn.classes}async setFilterObj(){await zn.setFilterObj(),this.filterObj=zn.filterObj}async setHomeVod(){await zn.setHomeVod(),this.homeVodList=zn.homeVodList}async setCategory(e,n,r,i){await zn.setCategory(e,n,r,i),this.vodList=zn.vodList}async setDetail(e){await zn.setDetail(e),this.vodDetail=zn.vodDetail}async setPlay(e,n,r){await zn.setPlay(e,n,r),this.playUrl=zn.playUrl,this.result=zn.result}async setSearch(e,n){await zn.setSearch(e,n),this.vodList=zn.vodList}async setProxy(e,n){return await zn.proxy(e,n)}},Go=new fT;async function tQ(t,e){return await Go.init(t,e)}async function nQ(t,e){return await Go.home(t,e)}async function GNe(t,e){return await Go.homeVod(t,e)}async function rQ(t,e){return await Go.category(t,e)}async function iQ(t,e){return await Go.detail(t,e)}async function lQ(t,e){return await Go.play(t,e)}async function sQ(t,e){return await Go.search(t,e)}async function KNe(t,e){return await Go.proxy(t,e)}var aQ={meta:{key:zn.getJSName(),name:zn.getName(),type:zn.getType()},api:async t=>{t.post("/init",tQ),t.post("/home",nQ),t.post("/category",rQ),t.post("/detail",iQ),t.post("/play",lQ),t.post("/search",sQ),t.get("/proxy/:what/:ids/:end",KNe)},spider:{init:tQ,home:nQ,homeVod:GNe,category:rQ,detail:iQ,play:lQ,search:sQ}};var pT=class extends Ge{constructor(){super(),this.siteUrl="https://www.dygangs.xyz"}getAppName(){return"\u7535\u5F71\u6E2F"}getName(){return"\u{1F3D6}\uFE0F\u2503\u7535\u5F71\u6E2F\u2503\u{1F3D6}\uFE0F"}getJSName(){return"dygangs"}getType(){return 3}async setClasses(){let e=await this.getHtml(),n=e(e('[class="top-nav"]')[0]).find("a");for(let r of n){let i=r.attribs.href.replaceAll(this.siteUrl,""),l=e(r).text();i!=="/"&&this.classes.push(this.getTypeDic(l,i))}}async getFilter(e,n){let r=e('[class="nav-down-2 clearfix"]')[n],i=[];if(r!==void 0){let l="\u6309\u7C7B\u578B",s={key:l,name:l,value:[]};s.name=l,s.value.push({n:"\u5168\u90E8",v:"0"});for(let a of e(r).find("a")){let o=e(a).html(),u=a.attribs.href.split("/").slice(-2)[0];s.value.push({n:o,v:u})}i.push(s)}return i}async setFilterObj(){let e=0;for(let n of this.classes.slice(1,5)){let r=n.type_id;if(r!=="\u6700\u8FD1\u66F4\u65B0"){let i=this.siteUrl+`${r}`,l=await this.getHtml(i);this.filterObj[r]=await this.getFilter(l,e)}e=e+1}}parseVodShortFromElement(e,n){let r=new Pe;return r.vod_id=n.attribs.href,r.vod_name=n.attribs.title,r.vod_pic=e(n).find("img")[0].attribs["data-original"],r.vod_remarks=e(e(n).find("i")[0]).text().replaceAll(" ","").replaceAll(`
`,""),Q.isEmpty(r.vod_pic)&&(r.vod_pic=_o+"/resources/dygang.jpg"),r}async parseVodShortListFromDoc(e){let n=[],r=e('[class="index-tj-l"]').find("li");for(let i of r){let l=e(i).find("a")[0],s=this.parseVodShortFromElement(e,l);n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],r=e('[class="index-area clearfix"]').find("li");for(let i of r){let l=e(i).find("a")[0],s=this.parseVodShortFromElement(e,l);n.push(s)}return n}async parseVodDetailFromDoc(e){let n=new Ye,r=e('[ class="ct mb clearfix"]');n.vod_pic=e(r).find("img")[0].attribs.src,n.vod_name=Ie(/◎片  名 (.*?)<br>/,e(r).html()),n.vod_area=Ie(/◎产  地 (.*?)<br>/,e(r).html()),n.vod_year=Ie(/◎年  代 (.*?)<br>/,e(r).html()),n.type_name=Ie(/◎类  别 (.*?)<br>/,e(r).html()),n.vod_remarks=Ie(/◎集  数 (.*?)<br>/,e(r).html());let i=Ie(/◎主  演 (.*?)<\/p>/s,e(r).html());Q.isEmpty(i)&&(i=Ie(/◎演  员 (.*?)<\/p>/s,e(r).html()));let l=[];for(let f of i.split(`
`))l.push(f.replaceAll("\u3000\u3000\u3000\u3000&nbsp; \u3000","").replaceAll("<br>","").replaceAll("\u3000\u3000\u3000\u3000\u3000",""));n.vod_actor=l.join("/"),n.vod_director=Ie(/◎导  演 (.*?)<br>/,e(r).html()),n.vod_content=Ie(/◎简  介<\/p>(.*?)<br>/s,e(r).html()).replaceAll("<p>","").replaceAll(`
`,""),Q.isEmpty(n.vod_content)&&(n.vod_content=Ie(/◎简  介<br>(.*?)<\/p>/s,e(r).html()).replaceAll("<p>","").replaceAll(`
`,""));let s=[],a=[],o=e('[class="playfrom tab8 clearfix"]'),u=e('[class="videourl clearfix"]');for(let f=0;f<o.length;f++){let d=o[f],h=e(e(d).find("li")).html();s.push(h.replaceAll('<i class="playerico ico-Azhan"></i> ',""));let m=[];for(let x of e(u[f]).find("a")){let b=x.attribs.title,_=x.attribs.href;m.push(b+"$"+_)}a.push(m.join("#"))}let c=e(e(r).find("span")[0]).find("span");if(c.length>0){let f=e(c).html();s.push(Ie(/【(.*?)】/,f.replaceAll("\u4E0B\u8F7D\u5730\u5740","\u78C1\u529B\u94FE\u63A5")));let d=[];for(let h of e(e(e(r).find("tbody")).find("tr")).find("a")){let m=e(h).html().replaceAll(".mp4",""),x=h.attribs.href;d.push(m+"$"+x)}a.push(d.join("#"))}return n.vod_play_from=s.join("$$$"),n.vod_play_url=a.join("$$$"),n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,i){let l=this.siteUrl+e;i.\u6309\u7C7B\u578B!==void 0&&i.\u6309\u7C7B\u578B!=="0"&&(l=l+`${i.\u6309\u7C7B\u578B}/`),parseInt(n)>1&&(l=l+`index_${n}.html`);let s=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setSearch(e,n){let r=this.siteUrl+"/e/search/index.php",i={keyboard:e,submit:"\u641C \u7D22",show:"title,zhuyan",tempid:"1"},l=await this.post(r,i,this.getHeader()),s=tt(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setPlay(e,n,r){if(n.indexOf("http")>-1){let i=await this.getHtml(n),l=Ie(/url: '(.*?)',/,i.html());if(Q.isEmpty(l)){let s=i(i('[class="video"]')[0]).find("iframe")[0].attribs.src,a=await this.fetch(s,null,{"User-Agent":Wi});if(this.playUrl=Ie(/url: '(.*?)',/,a),Q.isEmpty(this.playUrl)){let o=Gz(s);this.playUrl=o+Ie(/var main = "(.*?)";/,a)}}else this.playUrl=l}else this.playUrl=n}},Gn=new pT;var hT=class extends $e{constructor(){super()}getName(){return Gn.getName()}getAppName(){return Gn.getAppName()}getJSName(){return Gn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Gn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Gn.initCookie(e.server.config.bilicookie),await Gn.spiderInit(e),Gn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Gn.setClasses(),this.classes=Gn.classes}async setFilterObj(){await Gn.setFilterObj(),this.filterObj=Gn.filterObj}async setHomeVod(){await Gn.setHomeVod(),this.homeVodList=Gn.homeVodList}async setCategory(e,n,r,i){await Gn.setCategory(e,n,r,i),this.vodList=Gn.vodList}async setDetail(e){await Gn.setDetail(e),this.vodDetail=Gn.vodDetail}async setPlay(e,n,r){await Gn.setPlay(e,n,r),this.playUrl=Gn.playUrl,this.result=Gn.result}async setSearch(e,n){await Gn.setSearch(e,n),this.vodList=Gn.vodList}async setProxy(e,n){return await Gn.proxy(e,n)}},Ko=new hT;async function oQ(t,e){return await Ko.init(t,e)}async function uQ(t,e){return await Ko.home(t,e)}async function JNe(t,e){return await Ko.homeVod(t,e)}async function cQ(t,e){return await Ko.category(t,e)}async function fQ(t,e){return await Ko.detail(t,e)}async function pQ(t,e){return await Ko.play(t,e)}async function hQ(t,e){return await Ko.search(t,e)}async function WNe(t,e){return await Ko.proxy(t,e)}var dQ={meta:{key:Gn.getJSName(),name:Gn.getName(),type:Gn.getType()},api:async t=>{t.post("/init",oQ),t.post("/home",uQ),t.post("/category",cQ),t.post("/detail",fQ),t.post("/play",pQ),t.post("/search",hQ),t.get("/proxy/:what/:ids/:end",WNe)},spider:{init:oQ,home:uQ,homeVod:JNe,category:cQ,detail:fQ,play:pQ,search:hQ}};var N6="abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789";function a4(t,e){return Math.floor(Math.random()*(e-t+1))+t}function Jo(t,e,n){var r="";let i=e===void 0?!0:e;for(var l=0;l<t;l++){let s=n?a4(N6.length-10,N6.length-1):a4(0,i?N6.length-1:N6.length-11);r+=N6[s]}return r}function dT(){return Jo(8).toLowerCase()+"-"+Jo(4).toLowerCase()+"-"+Jo(4).toLowerCase()+"-"+Jo(4).toLowerCase()+"-"+Jo(12).toLowerCase()}var mQ=["Huawei","Xiaomi"],yQ=[["MHA-AL00","HUAWEI Mate 9","MHA-TL00","HUAWEI Mate 9","LON-AL00","HUAWEI Mate 9 Pro","ALP-AL00","HUAWEI Mate 10","ALP-TL00","HUAWEI Mate 10","BLA-AL00","HUAWEI Mate 10 Pro","BLA-TL00","HUAWEI Mate 10 Pro","HMA-AL00","HUAWEI Mate 20","HMA-TL00","HUAWEI Mate 20","LYA-AL00","HUAWEI Mate 20 Pro","LYA-AL10","HUAWEI Mate 20 Pro","LYA-TL00","HUAWEI Mate 20 Pro","EVR-AL00","HUAWEI Mate 20 X","EVR-TL00","HUAWEI Mate 20 X","EVR-AN00","HUAWEI Mate 20 X","TAS-AL00","HUAWEI Mate 30","TAS-TL00","HUAWEI Mate 30","TAS-AN00","HUAWEI Mate 30","TAS-TN00","HUAWEI Mate 30","LIO-AL00","HUAWEI Mate 30 Pro","LIO-TL00","HUAWEI Mate 30 Pro","LIO-AN00","HUAWEI Mate 30 Pro","LIO-TN00","HUAWEI Mate 30 Pro","LIO-AN00m","HUAWEI Mate 30E Pro","OCE-AN10","HUAWEI Mate 40","OCE-AN50","HUAWEI Mate 40E","OCE-AL50","HUAWEI Mate 40E","NOH-AN00","HUAWEI Mate 40 Pro","N Line truncated
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7QHUVAUM7yghB0/3qz5C
bWX5YYD0ss+uDtbDz5VkTclop6YnCY+1U4aw4z134ljkp/jL0mWnYioZHTTqxXMf
R5q15FcMZnnn/gMZNj1ZR67/c9ti6WTG0VEr9IdcJgwHwwGak/xQK1Z9htl7TR3Q
@@ -438,11 +428,34 @@ WA45MmpCSSgjVvX4bbV43IjdjSZNm8s5efdlLl1Z+7uJTR024xizhK5NH0/uPmR4
O8QEtxO9ha3LMmTYTfERzfNmpfDVdV3Rok4eoTzhHmxgqQ0/S0S+FgjHiwrCTFlv
NCiDhSemnJT+NIzAnMQX4acL5AYNb5PiDD06ZMrtklTua+USY0gSIrG9LctaYvHR
swIDAQAB
-----END PUBLIC KEY-----`,"pkcs8-public-pem",{encryptionScheme:"pkcs1"}),XT=class extends He{constructor(){super(),this.siteUrl="https://api.tyun77.cn"}getName(){return"\u{1F452}|\u9177\u4E9177|\u{1F452}"}getAppName(){return"\u9177\u4E9177"}getJSName(){return"kunyu77"}async request(e,n){let r=(0,md.default)().unix()-Wte,i=new URL(e);i.searchParams.append("pcode","010110010"),i.searchParams.append("version",Jte),i.searchParams.append("devid",Qi.id),i.searchParams.append("package","com.sevenVideo.app.android"),i.searchParams.append("sys","android"),i.searchParams.append("sysver",Qi.release),i.searchParams.append("brand",Qi.brand),i.searchParams.append("state","on"),i.searchParams.append("model",Qi.model.replaceAll(" ","_")),i.searchParams.append("sj",r);let l=[];for(let d of i.searchParams.keys())l.push(d);l.sort();let s=i.pathname;for(let d of l){let h=i.searchParams.get(d);h=encodeURIComponent(h),s+=h}s+=r,s+="XSpeUFjJ";let a=qu.default.enc.Hex.stringify(qu.default.MD5(s)).toString().toLowerCase(),o={"User-Agent":n||"okhttp/3.12.0",T:r,TK:a};e.indexOf("getVideoPlayAuth")>0?o["TK-VToken"]=Xte.encrypt(`{"videoId":"${i.searchParams.get("videoId")}","timestamp":"${r}"}`,"base64"):e.indexOf("parserUrl")>0&&(o["TK-VToken"]=Xte.encrypt(`{"url":"${i.searchParams.get("url")}","timestamp":"${r}"}`,"base64"));let u=await req(i.toString(),{headers:o}),c=u.headers.date,f=(0,md.default)(c).unix();return Wte=(0,md.default)().unix()-f,JSON.parse(u.content)}async init(e,n){let r=e.server.prefix+"/device";Qi=await e.server.db.getObjectDefault(r,{}),Qi.id||(Qi=RZ(32),Qi.id=Qi.id.toLowerCase(),Qi.ua="Dalvik/2.1.0 (Linux; U; Android "+Qi.release+"; "+Qi.model+" Build/"+Qi.buildId+")",await e.server.db.push(r,Qi)),await this.request(this.siteUrl+"/api.php/provide/getDomain"),await this.request(this.siteUrl+"/api.php/provide/config"),await this.request(this.siteUrl+"/api.php/provide/checkUpgrade"),await this.request(this.siteUrl+"/api.php/provide/channel"),await super.init(e,n)}async setClasses(){let e=(await this.request(this.siteUrl+"/api.php/provide/filter")).data;for(let n in e)this.classes.push(this.getTypeDic(e[n][0].cat,n))}async getFilter(){let e=[],n=(await this.request(this.siteUrl+"/api.php/provide/searchFilter?type_id=0&pagenum=1&pagesize=24")).data.conditions,r={key:"year",name:"\u5E74\u4EFD",init:""},i=[];i.push({n:"\u5168\u90E8",v:""}),n.y.forEach(u=>{i.push({n:u.name,v:u.value})}),r.value=i;let l={key:"area",name:"\u5730\u533A",init:""},s=[];s.push({n:"\u5168\u90E8",v:""}),n.a.forEach(u=>{s.push({n:u.name,v:u.value})}),l.value=s;let a={key:"category",name:"\u7C7B\u578B",init:""},o=[];return o.push({n:"\u5168\u90E8",v:""}),n.scat.forEach(u=>{o.push({n:u.name,v:u.value})}),a.value=o,e.push(r,l,a),e}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter())}}async parseVodShortListFromJson(e){let n=[];for(let r of e){let i=new Me;i.vod_id=r.id,i.vod_name=r.title??r.videoName,i.vod_pic=r.videoCover,i.vod_remarks=r.msg,n.push(i)}return n}async parseVodDetailfromJson(e){let n=new tt;n.vod_id=e.id,n.vod_name=e.videoName,n.vod_pic=e.videoCover,n.type_name=e.subCategory,n.vod_year=e.year,n.vod_area=e.area,n.vod_remarks=e.msg,n.vod_actor=e.actor,n.vod_director=e.director,n.vod_content=e.brief.trim();let r=(await this.request(this.siteUrl+"/api.php/provide/videoPlaylist?ids="+e.id)).data.episodes,i={};for(let a of r){let o=a.playurls;for(let u of o){let c=u.playfrom,f=IZ(n.vod_name,u.title);f.length===0&&(f=u.title.trim()),i.hasOwnProperty(c)||(i[c]=[]),i[c].push(f+"$"+u.playurl)}}n.vod_play_from=Object.keys(i).join("$$$");let l=Object.values(i),s=[];for(let a of l)s.push(a.join("#"));return n.vod_play_url=s.join("$$$"),n}async setHomeVod(){let e=(await this.request(this.siteUrl+"/api.php/provide/homeBlock?type_id=0pagenum=20")).data;this.homeVodList=await this.parseVodShortListFromJson(e.blocks)}async setCategory(e,n,r,i){let l=this.siteUrl+"/api.php/provide/searchFilter?type_id="+e+"&pagenum="+n+"&pagesize=24&";l+=`year=${i.year||""}&category=${i.category||""}&area=${i.area||""}`;let s=(await this.request(l)).data;this.vodList=await this.parseVodShortListFromJson(s.result)}async setDetail(e){let n=(await this.request(this.siteUrl+"/api.php/provide/videoDetail?ids="+e)).data;this.vodDetail=await this.parseVodDetailfromJson(n)}async setPlay(e,n,r){if(e=="alivc"){let l=`Dalvik/2.1.0(sevenVideo android)${Qi.release} ${Jte} ${Qi.brand}`,s=(await this.request(this.siteUrl+"/api.php/provide/getVideoPlayAuth?videoId="+n)).data;await this.jadeLog.debug(`data:${s}`);var i=qu.default.enc.Utf8.stringify(qu.default.enc.Base64.parse(s.playAuth));i=JSON.parse(i);let a={AccessKeyId:i.AccessKeyId,Action:"GetPlayInfo",AuthInfo:i.AuthInfo,AuthTimeout:3600,Channel:"Android",Format:"JSON",Formats:"",PlayerVersion:"",Rand:kT(),SecurityToken:i.SecurityToken,SignatureMethod:"HMAC-SHA1",SignatureNonce:kT(),SignatureVersion:"1.0",Version:"2017-03-21",VideoId:n},o=Objec Line truncated
`,"").replaceAll(" ","").replaceAll(" ","")+"end";if(u.indexOf("\u5E74\u4EFD")>-1&&(e.vod_year=Re(/年份:(.*?)end/,u).replaceAll("/","")),u.indexOf("\u5907\u6CE8")>-1){let c=Re(/备注:(.*?)end/,u);e.vod_remarks=Re(/备注:\/(.*?)end/,u)}u.indexOf("\u6807\u7B7E")>-1&&(e.type_name=Re(/标签:(.*?)end/,u)),u.indexOf("\u5267\u60C5")>-1&&(e.vod_content=Re(/剧情:(.*?)end/,u))}let i=t('[class="module-tab-item tab-item"]'),l=t('[class="scroll-content"]'),s=[],a=[];for(let o=0;o<i.length;o++){let u=i[o];s.push(u.attribs["data-dropdown-value"]);let c=[];for(let f of t(l[o]).find("a")){let d=t(f).text(),h=f.attribs.href;c.push(d+"$"+h)}a.push(c.join("#"))}return e.vod_play_from=s.join("$$$"),e.vod_play_url=a.join("$$$"),e}async setHomeVod(){let t=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(t)}getExtendValue(t,e){return t[e]===void 0||t[e]==="0"?"":t[e]}async setCategory(t,e,n,r){await this.jadeLog.debug(`extend:${JSON.stringify(r)}`);let i=this.getExtendValue(r,"1"),l=this.getExtendValue(r,"2"),s=this.getExtendValue(r,"3"),a=this.getExtendValue(r,"4"),o=[t.toString(),"",a,i,"",s,"","",e.toString(),"","",l],u=this.siteUrl+"/show/"+o.join("-")+".html",c=await this.getHtml(u);this.vodList=await this.parseVodShortListFromDocByCategory(c)}async setDetail(t){let e=await this.getHtml(this.siteUrl+t);this.vodDetail=await this.parseVodDetailFromDoc(e)}async setSearch(t,e){let n=this.siteUrl+`/search/${t}-------------.html`,r=await this.getHtml(n);this.vodList=await this.parseVodShortListFromDocBySearch(r)}async setPlay(t,e,n){let r=await this.getHtml(this.siteUrl+e),l="https://danmu.yhdmjx.com/m3u8.php?url="+JSON.parse(Re(/var player_aaaa=(.*?)<\/script>/,r.html())).url,s=await await this.fetch(l,null,this.getHeader()),a=s.match(/"url": getVideoInfo\("(.*?)"\),/)[1],o=s.match(/<script>var bt_token = "(.*?)"/)[1],u=await await this.fetch("https://danmu.yhdmjx.com/js/play.js",null,this.getHeader());u=u.match(/var _token_key=CryptoJS\['enc'\]\['Utf8'\]\[_0x17f1\('67','qETJ'\)\]\((.*?\))/)[1],u=this.decrypt_token_key(u),this.playUrl=await this.getVideoInfo(a,u,o)}decrypt_token_key(toekn_key){var _0xod4="jsjiami.com.v6",_0x175e=[_0xod4,"JMOsw6omwoDCmw==","wp3DkSx5Eg==","HB7CscOJfS3DuUjDv2bDjsOmwr3Cm8KcwoI=","fR/Dqg==","ShRGTcKa","w5Y8VBs=","esKYKQ==","FgIdwrPDnMKOw7k=","HhXCmA==","woNrRsKSwpnDvcKfw4g=","ezBn","w43DkcK5w4MaJiE=","w44Ob8KjwrjCrMKtUA==","HwtswqI=","YsKnwrRawro=","Sm/CpQXCjz4RH8ORSXw=","IsO6w64=","T8OeAQ==","VcK4Hg==","csOmfBJ4","d8OAcA5L","Tn4RL2s=","w7goGizCmw==","w6XDlcOGwpoY","TsK7wpNPwrg=","w7J1CzLCnsO+HA==","w4XDkcK0w5YXPg==","S8KoCcKS","PcKWHcK/Eg==","Z2oMJ3rCiw==","YsKMG8KMwo0=","QsOecgRIwp4=","dFzDkUUxw48Qw7nCmX3CicODCMKnw74IOg==","acO2KU1B","wrAnw6DDrg==","w5MsScKwwoA=","wohZG8KhBg==","b8OieSpZ","w4ZmEsORw6I=","w7jDhxvCh8KY","w7wQa8KFwr0=","IMObw4E3wqU=","JsOjw5Erwrg=","w6MwcsKOwqU=","b8KIwqF0wrs=","XhXDvT52","wrDCmirChSE=","w5t1wpvDuwE=","XA7CtsKeEA==","wonCvVthw78=","U8KPP8KMwq4=","wp7DhCxjGTU=","woPDoBdiEQ==","HjzCrE/Dvg==","SsOQOWHCgg==","w6NdwoXCkMOx","w6shYWQ/","eE/Cgg==","XW/Csj7CmDoA","w680OynCgcK5BA8=","w4PDoMOTwrog","w5R7wqbCpMOPwrMxUcOiM8OuMVLCisKKFsOXAcOWY8O6w5hM","WwjDoht0","PzXCiHHDiA==","QMOFaMKcfQ==","bz9bVsK+","w7Npwp/DsB9ONw==","EcOPBQ3Cig==","woHDnzk=","DsKQLxtd","R8OCJmk=","wp55O8On","bkXCmhTCqg==","w7vDgx3Cg8KU","w6nDo8KdAn8=","O8KwP8KEDw==","wqzCtCHCtCg=","w5nDgmYhw5c=","wp0OZsK+w4A=","wrFxe8KFwp/DvcKew4EbN8K7BMORMx3DuxtOVELChsOEIQ==","BMKWRDc=","IS5dw6nDhQ==","w6geeG8t","SsK/wohywpc=","LBlnw7jDkA==","wodiLsOg","Ig5Ow7/Dlw==","TMOOewRZwoQ=","LjnClV7DvA==","woZsO8KcPQ==","eWvClMKeKQ==","wq1KWsKswr8=","w4p+AGFa","C8O7F8K2CQcKFxxgwo5sfh3DpAFV","w6XDqMKoCw==","w6Z8wqnCpMOe","w6x/CHRhXhV/w7I=","wrvClndGw5Y=","VsKcwo5RwoA=","ZcK2BMKmLQ==","BCcPwofDvQ==","eGEsF20=","eMOcUglq","w4U9XEAMw4/Dm3rCuzpxTg/DvyDDvMONH8OTwpTCtsKbw6k=","VwXDkTxG","CzHCrl3DkQ==","w7PDkVovw4o=","dsONYDdj","w79pwr3Duh4=","w55kwoLCpMOR","w6gbc8KGwpw=","bCnCtMKCCg==","Php5w64=","w7x8wpfDtiQ=","w4TDk2AB","w7lowoHDtgQ=","DB/CsnjDuQ==","woTDl8K3wp4S","wr0Ewq7Dq8Oh","GmHCpGxN","w5/Dm2XDpw==","w5bDpsOCwqoA","YMKowphwwqc=","ahFuVsK9","w57DtEsbw7k=","w6LDo8Kq","UsKzE8KO","w6xlBFl9","WMOgIXbCiw==","DBhjw5fDhQ==","w6pUwoHCnsOs","ZF7CtsKiHg==","wos4w7wCwr0c","JlXCjlpyw5pMw6s=","TcO1N8K4wqE=","SMOzTcKYRw==","w4HDosOzwrUc","wqxdwqE2wrY=","A8OPGQjChw==","wpkxasOxBQ==","wpIZSA==","VsOnEEvChg==","bMOSZy93","c8OwZsKnRQ==","SsK/wpBHwoQ=","ccOsHVFf","w6ZKYMO8w6rDr8OrCHxdwqtdwrDDksOMccKZwobDpQPDgsOrAMKXF8OMPcOySsKuL8KLwq8vwr/DkjbDqsOCbRrCkcOTTFfDlsKkw7PChCM1wqTDisKawpHDt8KCQRY3w6DDgMKVw6M=","w7hYwq3ClsOa","Fic5wqLDiw==","KcKqHCVV","wqvDucKSwrs/","YcOfQcKPSQ==","wpjClmNRw7U=","wpHClSnCizg=","w4PDh8Kw","JsOYGwnCpw==","w5vDksK8w6sl","U8ORCHt+Rw==","woVxO8OSJQ==","b37Chw/Clw==","w6ViBXZlQg==","UwPCucKQCgU=","UMOeZgs=","MTLCtW7Dq2o=","wqAQwr/DqcOi","DiLDtsOOZsKEbsOrGm03EcKEwr/CplQ=","dzPDnRhP","wplgT8KBwow=","XUzCg8KF","K8KTCcKrCQ==","w6ZKJMOw","LxTCmn/DsA==","wooObcKBw6g=","w5djwofDoTQ=","VMOHeAts","Kw96 Line truncated
`,"").replaceAll("\u5267\u60C5\uFF1A",""),n.vod_pic=e("img.lazy")[0].attribs["data-original"],n}async parseVodShortListFromJson(e){let n=[];for(let r of e){let i=new Me;i.vod_id=r.url,i.vod_pic=r.thumb,i.vod_remarks=r.time,i.vod_name=r.title,n.push(i)}return n}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=et(e),r=n("[class=index-list-l]");for(let i of r){let l=n(n(i).find('[class="h1 clearfix"]')[0]).find("a"),s=l[0].attribs.href,a=n(l[1]).text();Q.isEmpty(a)||this.classes.push({type_id:s,type_name:a})}}}async getFilter(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader()),i=[];if(!Q.isEmpty(r)){let l=et(r),s=l('[class="sy scon clearfix"]').find("dl"),a=0;for(let o of s){let u=l(l(o).find("dt")).text().replace("\u6309","").replace("\uFF1A",""),c={key:(a+1).toString(),name:u,value:[]},f=l(o).find("a"),d=0;u==="\u5267\u60C5"?d=3:u==="\u5E74\u4EE3"?d=2:u==="\u5730\u533A"&&(d=4);for(let h of f){let m=h.attribs.href.split("/");c.value.push({n:l(h).text(),v:m[d]})}i.push(c),a=a+1}}return i}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter(n))}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,i){let l=this.siteUrl+e,s=await this.fetch(l,null,this.getHeader());if(!Q.isEmpty(s)){let a=e.split("/")[1],o=e.split("/")[2],u=Re(/var _yu_gda_s="(.*?)";/,s),c={action:a,page:parseInt(n),year:i[2]??"0",area:i[3]??"all",class:i[1]??"0",dect:"",id:o},f=await this.fetch(u,c,this.getHeader());if(f!==null){let d=et(f);this.vodList=await this.parseVodShortListFromDoc(d)}}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=et(r);this.vodDetail=await this.parseVodDetailFromDoc(i);let s="http://test.gqyy8.com:8077/ne2"+/<script type="text\/javascript" src="http:\/\/test.gqyy8.com:8077\/ne2(.*?)"><\/script>/g.exec(r)[1],a=await this.fetch(s,null,this.getHeader());if(!Q.isEmpty(a)){let o=this.paraseUrlObject(a);this.vodDetail.vod_play_url=o.play_url,this.vodDetail.vod_play_from=o.play_format}}}async setSearch(e,n){let r=this.siteUrl+"/search.php",i=await this.fetch(r,null,this.getHeader());if(!Q.isEmpty(i)){let l={top:10,q:e},s=Re(/var my_search='(.*?)';/,i),a=await this.fetch(s,l,this.getHeader());if(!Q.isEmpty(a)){let o=JSON.parse(a.replaceAll("\uFEFF",""));this.vodList=await this.parseVodShortListFromJson(o)}}}},or=new tA;var nA=class extends He{constructor(){super()}getName(){return or.getName()}getAppName(){return or.getAppName()}getJSName(){return or.getJSName()}async init(e,n){dataBase=e.server.db,await or.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await or.initAli(e.server.config.alitoken),or.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await or.setClasses(),this.classes=or.classes}async setFilterObj(){await or.setFilterObj(),this.filterObj=or.filterObj}async setHomeVod(){await or.setHomeVod(),this.homeVodList=or.homeVodList}async setCategory(e,n,r,i){await or.setCategory(e,n,r,i),this.vodList=or.vodList}async setDetail(e){await or.setDetail(e),this.vodDetail=or.vodDetail}async setPlay(e,n,r){await or.setPlay(e,n,r),this.playUrl=or.playUrl,this.result=or.result}async setSearch(e,n){await or.setSearch(e,n),this.vodList=or.vodList}async setProxy(e,n){return await or.proxy(e,n)}},u3=new nA;async function _ne(t,e){return await u3.init(t,e)}async function Ene(t,e){return await u3.home(t,e)}async function MDe(t,e){return await u3.homeVod(t,e)}async function xne(t,e){return await u3.category(t,e)}async function bne(t,e){return await u3.detail(t,e)}async function wne(t,e){return await u3.play(t,e)}async function Sne(t,e){return await u3.search(t,e)}async function UDe(t,e){return await u3.proxy(t,e)}var Tne={meta:{key:or.getJSName(),name:or.getName(),type:or.getType()},api:async t=>{t.post("/init",_ne),t.post("/home",Ene),t.post("/category",xne),t.post("/detail",bne),t.post("/play",wne),t.post("/search",Sne),t.get("/proxy/:what/:ids/:end",UDe)},spider:{init:_ne,home:Ene,homeVod:MDe,category:xne,detail:bne,play:wne,search:Sne}};var rA=class extends Xe{constructor(){super(),this.siteUrl="https://tvfan.xxooo.cf",this.woggTypeObj={\u73A9\u5076\u7535\u5F71:"\u7535\u5F71",\u73A9\u5076\u5267\u96C6:"\u7535\u89C6\u5267"}}async init(e){await super.init(e),await Ji(this.cfgObj.token),this.danmuStaus=!0}getName(){return"\u{1F482}\u200D\u2503\u963F\u91CC\u73A9\u5076\u2503\u{1F482}"}getAppName(){return"\u963F\u91CC\u73A9\u5076"}getJSName(){return"wogg"}getType(){return 3}async parseVodShortListFromDoc(e){let n=e(".module-item"),r=[];for(let i of n){let l=new Me,s=e(i).find(".module-item-cover .module-item-pic a").first();l.vod_id=s.attr("href"),l.vod_name=s.attr("title Line truncated
`,"").replace(" ","").replace("\u73A9\u5076",""),a={type_id:l,type_name:s};this.classes.push(a)}}}async getFilter(e){let n=e("[class='scroll-content']").slice(1),r=[];for(let i=0;i<n.length;i++){let l={key:(i+1).toString(),name:"",value:[]};if(i<n.length-1){l.name=e(e(n[i]).find("a")[0]).text(),l.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[i]).find("a").slice(1))l.value.push({n:e(s).text(),v:e(s).text()});r.push(l)}else l.name=e(e(n[i]).find("a")[0]).text(),l.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[i]).find("a")[1]).text(),v:"hits"},{n:e(e(n[i]).find("a")[2]).text(),v:"score"}],r.push(l)}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let r=this.siteUrl+`/index.php/vodshow/${n}--------1---.html`,i=await this.fetch(r,null,this.getHeader());if(i!=null){let l=et(i);this.filterObj[n]=await this.getFilter(l)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,i){let l=[e.toString(),"","","","","","","",n.toString(),"","",""],s=this.get_extend_sort_dic(parseInt(e));for(let u of Object.keys(s))i[u]==="0"?l[s[u]]="":l[s[u]]=i[u];let a=this.siteUrl+"/index.php/vodshow/"+l.join("-")+".html",o=await this.fetch(a,null,this.getHeader());if(!Q.isEmpty(o)){let u=et(o);this.vodList=await this.parseVodShortListFromDoc(u);let c=Re(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,o);this.limit=72,c.length>0&&(this.total=parseInt(c)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=et(r);this.vodDetail=await this.parseVodDetailFromDoc(i)}}async setPlay(e,n,r){let i=await Pl(e,n,r);this.playUrl=JSON.parse(i).url}async setSearch(e,n){let r=this.siteUrl+"/index.php/vodsearch/-------------.html?wd="+e,i=await this.fetch(r,null,this.getHeader());if(!Q.isEmpty(i)){let l=et(i);this.vodList=await this.parseVodShortListFromDocBySearch(l)}}},ur=new rA;var iA=class extends He{constructor(){super()}getName(){return ur.getName()}getAppName(){return ur.getAppName()}getJSName(){return ur.getJSName()}async init(e,n){dataBase=e.server.db,await ur.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await ur.initAli(e.server.config.alitoken),ur.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await ur.setClasses(),this.classes=ur.classes}async setFilterObj(){await ur.setFilterObj(),this.filterObj=ur.filterObj}async setHomeVod(){await ur.setHomeVod(),this.homeVodList=ur.homeVodList}async setCategory(e,n,r,i){await ur.setCategory(e,n,r,i),this.vodList=ur.vodList}async setDetail(e){await ur.setDetail(e),this.vodDetail=ur.vodDetail}async setPlay(e,n,r){await ur.setPlay(e,n,r),this.playUrl=ur.playUrl,this.result=ur.result}async setSearch(e,n){await ur.setSearch(e,n),this.vodList=ur.vodList}async setProxy(e,n){return await ur.proxy(e,n)}},c3=new iA;async function Ane(t,e){return await c3.init(t,e)}async function Cne(t,e){return await c3.home(t,e)}async function jDe(t,e){return await c3.homeVod(t,e)}async function One(t,e){return await c3.category(t,e)}async function Nne(t,e){return await c3.detail(t,e)}async function Rne(t,e){return await c3.play(t,e)}async function Ine(t,e){return await c3.search(t,e)}async function $De(t,e){return await c3.proxy(t,e)}var Dne={meta:{key:ur.getJSName(),name:ur.getName(),type:ur.getType()},api:async t=>{t.post("/init",Ane),t.post("/home",Cne),t.post("/category",One),t.post("/detail",Nne),t.post("/play",Rne),t.post("/search",Ine),t.get("/proxy/:what/:ids/:end",$De)},spider:{init:Ane,home:Cne,homeVod:jDe,category:One,detail:Nne,play:Rne,search:Ine}};var lA=class extends Xe{constructor(){super(),this.siteUrl="https://frodo.douban.com/api/v2",this.apiKey="0ac44ae016490db2204ce0a042db2916",this.UserAgents=["api-client/1 com.douban.frodo/7.22.0.beta9(231) Android/23 product/Mate 40 vendor/HUAWEI model/Mate 40 brand/HUAWEI rom/android network/wifi platform/AndroidPad","api-client/1 com.douban.frodo/7.18.0(230) Android/22 product/MI 9 vendor/Xiaomi model/MI 9 brand/Android rom/miui6 network/wifi platform/mobile nd/1","api-client/1 com.douban.frodo/7.1.0(205) Android/29 product/perseus vendor/Xiaomi model/Mi MIX 3 rom/miui6 network/wifi platform/mobile nd/1","api-client/1 com.douban.frodo/7.3.0(207) Android/22 product/MI 9 vendor/Xiaomi model/MI 9 brand/Android rom/miui6 network/wifi platform/mobile nd/1"]}getHeader(){return{Host:"frodo.douban.com",Connection:"Keep-Alive",Referer:"https://servicewechat.com/wx2f9b06c1de1ccfca/84/page-frame.html","User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat"}}getSearch Line truncated
`,"").replaceAll(" ","");if(a.indexOf("\u65F6\u95F4")>-1&&a.indexOf("\u6587\u4EF6\u5939")>-1){let o=a.split("\u65F6\u95F4"),u=new Me;u.vod_name=o[0],u.vod_remarks=o[1].split("\u683C\u5F0F")[0].replaceAll(":","").replaceAll(" ","").replaceAll("\uFEFF","").replaceAll("\xA0",""),u.vod_id=JSON.stringify({name:u.vod_name,remarks:u.vod_remarks,id:l}),r.push(u)}}}return r}async setClasses(){await this.parseClassFromDoc(this.content_html)}async setHomeVod(){let e=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.homeVodList=await this.parseVodShortListFromDoc(e[0])}async setDetail(e){if(e.indexOf("search")>-1){let n=this.siteUrl+"/search",r={k:decodeURIComponent(e.split("search?k=").slice(-1)[0])},i=await this.fetch(n,r,this.getHeader());if(!Q.isEmpty(i)){let l=et(i),s=await this.parseVodShortListFromDocBySearch(l);s.length>0?e=s[0].vod_id:e=""}}if(!Q.isEmpty(e)){let n=JSON.parse(e);this.vodDetail=await this.parseVodDetailfromJson(n)}}async setCategory(e,n,r,i){let l=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.vodList=await this.parseVodShortListFromDoc(l[parseInt(e)])}async setSearch(e,n){let r=this.siteUrl+"/search",i={k:e},l=await this.fetch(r,i,this.getHeader());if(!Q.isEmpty(l)){let s=et(l);this.vodList=await this.parseVodShortListFromDocBySearch(s)}}async setPlay(e,n,r){let i=await Pl(e,n,r);this.playUrl=JSON.parse(i).url}},fr=new aA;var oA=class extends He{constructor(){super()}getName(){return fr.getName()}getAppName(){return fr.getAppName()}getJSName(){return fr.getJSName()}async init(e,n){dataBase=e.server.db,await fr.spiderInit(e),(this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent")&&await fr.initAli(e.server.config.alitoken),fr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await fr.setClasses(),this.classes=fr.classes}async setFilterObj(){await fr.setFilterObj(),this.filterObj=fr.filterObj}async setHomeVod(){await fr.setHomeVod(),this.homeVodList=fr.homeVodList}async setCategory(e,n,r,i){await fr.setCategory(e,n,r,i),this.vodList=fr.vodList}async setDetail(e){await fr.setDetail(e),this.vodDetail=fr.vodDetail}async setPlay(e,n,r){await fr.setPlay(e,n,r),this.playUrl=fr.playUrl,this.result=fr.result}async setSearch(e,n){await fr.setSearch(e,n),this.vodList=fr.vodList}async setProxy(e,n){return await fr.proxy(e,n)}},p3=new oA;async function jne(t,e){return await p3.init(t,e)}async function $ne(t,e){return await p3.home(t,e)}async function VDe(t,e){return await p3.homeVod(t,e)}async function Hne(t,e){return await p3.category(t,e)}async function qne(t,e){return await p3.detail(t,e)}async function Vne(t,e){return await p3.play(t,e)}async function zne(t,e){return await p3.search(t,e)}async function zDe(t,e){return await p3.proxy(t,e)}var Gne={meta:{key:fr.getJSName(),name:fr.getName(),type:fr.getType()},api:async t=>{t.post("/init",jne),t.post("/home",$ne),t.post("/category",Hne),t.post("/detail",qne),t.post("/play",Vne),t.post("/search",zne),t.get("/proxy/:what/:ids/:end",zDe)},spider:{init:jne,home:$ne,homeVod:VDe,category:Hne,detail:qne,play:Vne,search:zne}};var GDe="diao.com",yd=class{constructor(){this.channelMsg="",this.channelStatus=0,this.channelList=[],this.channelFilters={}}fromJsonString(e,n=0){let r=JSON.parse(e);this.channelMsg=r.msg,this.channelStatus=r.status;let i=[];for(let l of r.list){let s=new uA;switch(n){case 0:s.fromJson(l),i.push(s);break;case 1:l.channelName!=="\u5348\u591C\u573A"&&l.channelName!=="\u5348\u591C\u76F4\u64AD"&&(s.fromJson(l),i.push(s));break;case 2:(l.channelName==="\u5348\u591C\u573A"||l.channelName==="\u5348\u591C\u76F4\u64AD")&&(s.fromJson(l),i.push(s));break}}this.channelList=i,this.channelFilters=r.filter}setChannelFilters(e){this.channelFilters=JSON.parse(e)}getValues(e,n,r){let i=[];i.push({n:"\u5168\u90E8",v:"0"});for(let l of e)i.push({n:l[n],v:l[r].toString()});return i}getFilters(){let e={};for(let n of this.channelList){e[n.channelId]=[];let r=this.channelFilters.sortsMap[parseInt(n.channelId)],i=this.getValues(r,"title","id");e[n.channelId].push({key:"1",name:"\u6392\u5E8F",value:i});let l=this.channelFilters.typesMap[parseInt(n.channelId)],s=this.getValues(l,"showTypeName","showTypeId");e[n.channelId].push({key:"2",name:"\u7C7B\u578B",value:s});let a=this.getValues(this.channelFilters.regions,"regionName","regionId");e[n.channelId].push({key:"3",name:"\u5730\u533A",value:a});let o=this.getValues(this.channelFilters.langs,"langName","langId");e[n.channelId].push({key:"4",name:"\u8BED\u8A00",value:o});let u=this.getValues(this.channelFilters.yearRanges,"name","code");e[n.channelId].push({key:"5",name:"\u5E74\u4EFD",value:u})}return e}getChannelFilters(){return this.channelFilters}getChannelMsg(){return this.channelMsg}getChannelStatus(){return this.channelStatus}getChannelList(){return this.channelList}getClassList(){let e=[];for(let n of this.channelList)e.push({type_id:n.channelId,type_name:n Line truncated
-----END PUBLIC KEY-----`,"pkcs8-public-pem",{encryptionScheme:"pkcs1"}),RT=class extends $e{constructor(){super(),this.siteUrl="https://api.tyun77.cn"}getName(){return"\u{1F452}|\u9177\u4E9177|\u{1F452}"}getAppName(){return"\u9177\u4E9177"}getJSName(){return"kunyu77"}async request(e,n){let r=(0,dd.default)().unix()-Lee,i=new URL(e);i.searchParams.append("pcode","010110010"),i.searchParams.append("version",Fee),i.searchParams.append("devid",el.id),i.searchParams.append("package","com.sevenVideo.app.android"),i.searchParams.append("sys","android"),i.searchParams.append("sysver",el.release),i.searchParams.append("brand",el.brand),i.searchParams.append("state","on"),i.searchParams.append("model",el.model.replaceAll(" ","_")),i.searchParams.append("sj",r);let l=[];for(let d of i.searchParams.keys())l.push(d);l.sort();let s=i.pathname;for(let d of l){let h=i.searchParams.get(d);h=encodeURIComponent(h),s+=h}s+=r,s+="XSpeUFjJ";let a=zu.default.enc.Hex.stringify(zu.default.MD5(s)).toString().toLowerCase(),o={"User-Agent":n||"okhttp/3.12.0",T:r,TK:a};e.indexOf("getVideoPlayAuth")>0?o["TK-VToken"]=Bee.encrypt(`{"videoId":"${i.searchParams.get("videoId")}","timestamp":"${r}"}`,"base64"):e.indexOf("parserUrl")>0&&(o["TK-VToken"]=Bee.encrypt(`{"url":"${i.searchParams.get("url")}","timestamp":"${r}"}`,"base64"));let u=await req(i.toString(),{headers:o}),c=u.headers.date,f=(0,dd.default)(c).unix();return Lee=(0,dd.default)().unix()-f,JSON.parse(u.content)}async init(e,n){let r=e.server.prefix+"/device";el=await e.server.db.getObjectDefault(r,{}),el.id||(el=gQ(32),el.id=el.id.toLowerCase(),el.ua="Dalvik/2.1.0 (Linux; U; Android "+el.release+"; "+el.model+" Build/"+el.buildId+")",await e.server.db.push(r,el)),await this.request(this.siteUrl+"/api.php/provide/getDomain"),await this.request(this.siteUrl+"/api.php/provide/config"),await this.request(this.siteUrl+"/api.php/provide/checkUpgrade"),await this.request(this.siteUrl+"/api.php/provide/channel"),await super.init(e,n)}async setClasses(){let e=(await this.request(this.siteUrl+"/api.php/provide/filter")).data;for(let n in e)this.classes.push(this.getTypeDic(e[n][0].cat,n))}async getFilter(){let e=[],n=(await this.request(this.siteUrl+"/api.php/provide/searchFilter?type_id=0&pagenum=1&pagesize=24")).data.conditions,r={key:"year",name:"\u5E74\u4EFD",init:""},i=[];i.push({n:"\u5168\u90E8",v:""}),n.y.forEach(u=>{i.push({n:u.name,v:u.value})}),r.value=i;let l={key:"area",name:"\u5730\u533A",init:""},s=[];s.push({n:"\u5168\u90E8",v:""}),n.a.forEach(u=>{s.push({n:u.name,v:u.value})}),l.value=s;let a={key:"category",name:"\u7C7B\u578B",init:""},o=[];return o.push({n:"\u5168\u90E8",v:""}),n.scat.forEach(u=>{o.push({n:u.name,v:u.value})}),a.value=o,e.push(r,l,a),e}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter())}}async parseVodShortListFromJson(e){let n=[];for(let r of e){let i=new Pe;i.vod_id=r.id,i.vod_name=r.title??r.videoName,i.vod_pic=r.videoCover,i.vod_remarks=r.msg,n.push(i)}return n}async parseVodDetailfromJson(e){let n=new Ye;n.vod_id=e.id,n.vod_name=e.videoName,n.vod_pic=e.videoCover,n.type_name=e.subCategory,n.vod_year=e.year,n.vod_area=e.area,n.vod_remarks=e.msg,n.vod_actor=e.actor,n.vod_director=e.director,n.vod_content=e.brief.trim();let r=(await this.request(this.siteUrl+"/api.php/provide/videoPlaylist?ids="+e.id)).data.episodes,i={};for(let a of r){let o=a.playurls;for(let u of o){let c=u.playfrom,f=vQ(n.vod_name,u.title);f.length===0&&(f=u.title.trim()),i.hasOwnProperty(c)||(i[c]=[]),i[c].push(f+"$"+u.playurl)}}n.vod_play_from=Object.keys(i).join("$$$");let l=Object.values(i),s=[];for(let a of l)s.push(a.join("#"));return n.vod_play_url=s.join("$$$"),n}async setHomeVod(){let e=(await this.request(this.siteUrl+"/api.php/provide/homeBlock?type_id=0pagenum=20")).data;this.homeVodList=await this.parseVodShortListFromJson(e.blocks)}async setCategory(e,n,r,i){let l=this.siteUrl+"/api.php/provide/searchFilter?type_id="+e+"&pagenum="+n+"&pagesize=24&";l+=`year=${i.year||""}&category=${i.category||""}&area=${i.area||""}`;let s=(await this.request(l)).data;this.vodList=await this.parseVodShortListFromJson(s.result)}async setDetail(e){let n=(await this.request(this.siteUrl+"/api.php/provide/videoDetail?ids="+e)).data;this.vodDetail=await this.parseVodDetailfromJson(n)}async setPlay(e,n,r){if(e=="alivc"){let l=`Dalvik/2.1.0(sevenVideo android)${el.release} ${Fee} ${el.brand}`,s=(await this.request(this.siteUrl+"/api.php/provide/getVideoPlayAuth?videoId="+n)).data;await this.jadeLog.debug(`data:${s}`);var i=zu.default.enc.Utf8.stringify(zu.default.enc.Base64.parse(s.playAuth));i=JSON.parse(i);let a={AccessKeyId:i.AccessKeyId,Action:"GetPlayInfo",AuthInfo:i.AuthInfo,AuthTimeout:3600,Channel:"Android",Format:"JSON",Formats:"",PlayerVersion:"",Rand:dT(),SecurityToken:i.SecurityToken,SignatureMethod:"HMAC-SHA1",SignatureNonce:dT(),SignatureVersion:"1.0",Version:"2017-03-21",VideoId:n},o=Objec Line truncated
`,"").replaceAll(" ",""),r.push(s)}return r}async parseVodDetailFromDoc(e){let n=e("#post_content"),r=[],i=[];if(!this.catOpenStatus){let o=0,u="\u78C1\u529B\u7EBF\u8DEF";for(let c of n){let f=e(c).find("table a"),d=[];for(let h of f){let m=h.attribs.href,x=h.children[0].data;m.toLowerCase().startsWith("magnet")&&d.push(x+"$"+m)}d.length>0&&(o++,r.push(u+o),i.push(d.join("#")))}}let l=e(e(".mainleft")).find('[class="widget box row"]');for(let o of l){let u=e(o).find("h3").text(),c=[];if(!Q.isEmpty(u)){let f=e(o).find("a");for(let d of f)c.push(d.attribs.title+"$"+d.attribs.href);r.push(u),i.push(c.join("#"))}}let s=e(".context").html(),a=new Ye;return a.vod_name=e(".article_container > h1").text(),a.vod_pic=e("#post_content img").attr("src"),a.type_name=Ie(/◎类  别 (.*?)<br>/,s),Q.isEmpty(a.type_name)&&(a.type_name=e('[rel="category tag"]').text()),a.vod_year=Ie(/◎年  代 (.*?)<br>/,s),Q.isEmpty(a.vod_year)&&(a.vod_year=Ie(/首播:(.*?)<br>"/,s)),a.vod_area=Ie(/◎产  地 (.*?)<br>/,s),Q.isEmpty(a.vod_year)&&(a.vod_area=Ie(/地区:(.*?)<br>"/,s)),a.vod_remarks=Ie(/◎上映日期 (.*?)<br>/,s),a.vod_actor=this.getActorOrDirector(/◎演  员 (.*?)<\/p>/,s),Q.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/◎主  演 (.*?)<\/p>/,s)),Q.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/主演:(.*?)<br>/,s)),a.vod_director=this.getActorOrDirector(/◎导  演 (.*?)<br>/,s),Q.isEmpty(a.vod_director)&&(a.vod_director=this.getActorOrDirector(/导演:(.*?)<br>/,s)),a.vod_content=this.getDescription(/◎简  介(.*?)<hr>/gi,s),Q.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/简介(.*?)<\/p>/gi,s)),Q.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/◎简  介(.*?)<br>/gi,s)),a.vod_play_from=r.join("$$$"),a.vod_play_url=i.join("$$$"),a}async parseVodPlayFromDoc(e,n){let r="",i=n.html();switch(e){case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u63D2\u4EF6 \u6781\u901F\u64AD\u653E\uFF09":case"\u64AD\u653E\u5730\u5740\u4E09":r=n(n(".video")).find("iframe")[0].attribs.src+"/index.m3u8";break;case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u9700\u5B89\u88C5\u63D2\u4EF6\uFF09":let l=/url: '(.*?)',/gs.exec(i);l.length>1&&(r=l[1]);break;case"\u64AD\u653E\u5730\u5740\u56DB":let s=/source: "(.*?)",/gs.exec(i);s.length>1&&(r=s[1]);break;default:await this.jadeLog.warning(`\u6682\u4E0D\u652F\u6301\u5F53\u524D\u683C\u5F0F,\u5F53\u524D\u683C\u5F0F\u4E3A:${e}`);break}return r}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=tt(e),r=n("#menus > li > a");for(let i=0;i<r.length;i++){let l=r[i];if(i<2||i===r.length-1)continue;let s=l.children[0].data,a=l.attribs.href;if(this.classes.push({type_name:s,type_id:a}),s==="\u7535\u89C6\u5267"){let o=[{n:"\u4E0D\u9650",v:""}];for(let u of n(l.next).find("a"))o.push({n:u.children[0].data,v:u.attribs.href.replaceAll(a,"")});this.filterObj[a]=[{key:"cateId",name:"\u7C7B\u578B",value:o}]}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(Q.isEmpty(e))await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5931\u8D25",!0);else{let n=tt(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,i){let l=i.cateId??"",s=this.siteUrl+e+l;this.page=parseInt(n),this.count=0,this.limit=18,this.total=0,this.page!==1&&(s+="index_"+n+".html");let a=await this.fetch(s,null,this.getHeader());if(!Q.isEmpty(a)){let o=tt(a),u=o(".pagination > a");if(u.length>0){let c=u.slice(-1)[0].attribs.href,d=/index_(.*?).html/.exec(c);this.count=parseInt(d[1]);let h=o("#post_container .post_hover");this.total=this.page===this.count?(this.page-1)*this.limit+h.length:this.count*this.limit}this.vodList=await this.parseVodShortListFromDoc(o)}}async setSearch(e,n){let r=this.siteUrl+"/e/search/index.php",i={show:"title",tempid:"1",tbname:"article",mid:"1",dopost:"search",keyboard:e},l=await this.post(r,i,this.getHeader());if(!Q.isEmpty(l)){let s=tt(l);this.vodList=await this.parseVodShortListFromDoc(s)}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=tt(r);this.vodDetail=await this.parseVodDetailFromDoc(i)}}async setPlay(e,n,r){if(n.toLowerCase().startsWith("magnet"))this.playUrl=n;else{let i=this.siteUrl+n,l=await this.fetch(i,null,this.getHeader()),s=tt(l);this.playUrl=await this.parseVodPlayFromDoc(e,s)}}},Wn=new FT;var BT=class extends $e{constructor(){super()}getName(){return Wn.getName()}getAppName(){return Wn.getAppName()}getJSName(){return Wn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Wn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Wn.initCookie(e.server.config.bilicookie),await Wn.spiderInit(e),Wn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){ Line truncated
`,"").replaceAll(" ","");if(a.indexOf("\u65F6\u95F4")>-1&&a.indexOf("\u6587\u4EF6\u5939")>-1){let o=a.split("\u65F6\u95F4"),u=new Pe;u.vod_name=o[0],u.vod_remarks=o[1].split("\u683C\u5F0F")[0].replaceAll(":","").replaceAll(" ","").replaceAll("\uFEFF","").replaceAll("\xA0",""),u.vod_id=JSON.stringify({name:u.vod_name,remarks:u.vod_remarks,id:l}),r.push(u)}}}return r}async setClasses(){await this.parseClassFromDoc(this.content_html)}async setHomeVod(){let e=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.homeVodList=await this.parseVodShortListFromDoc(e[0])}async setDetail(e){if(e.indexOf("search")>-1){let n=this.siteUrl+"/search",r={k:decodeURIComponent(e.split("search?k=").slice(-1)[0])},i=await this.fetch(n,r,this.getHeader());if(!Q.isEmpty(i)){let l=tt(i),s=await this.parseVodShortListFromDocBySearch(l);s.length>0?e=s[0].vod_id:e=""}}if(!Q.isEmpty(e)){let n=JSON.parse(e);this.vodDetail=await this.parseVodDetailfromJson(n)}}async setCategory(e,n,r,i){let l=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.vodList=await this.parseVodShortListFromDoc(l[parseInt(e)])}async setSearch(e,n){let r=this.siteUrl+"/search",i={k:e},l=await this.fetch(r,i,this.getHeader());if(!Q.isEmpty(l)){let s=tt(l);this.vodList=await this.parseVodShortListFromDocBySearch(s)}}async setPlay(e,n,r){let i=await Fl(e,n,r);this.playUrl=JSON.parse(i).url}},Xn=new UT;var jT=class extends $e{constructor(){super()}getName(){return Xn.getName()}getAppName(){return Xn.getAppName()}getJSName(){return Xn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Xn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Xn.initCookie(e.server.config.bilicookie),await Xn.spiderInit(e),Xn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Xn.setClasses(),this.classes=Xn.classes}async setFilterObj(){await Xn.setFilterObj(),this.filterObj=Xn.filterObj}async setHomeVod(){await Xn.setHomeVod(),this.homeVodList=Xn.homeVodList}async setCategory(e,n,r,i){await Xn.setCategory(e,n,r,i),this.vodList=Xn.vodList}async setDetail(e){await Xn.setDetail(e),this.vodDetail=Xn.vodDetail}async setPlay(e,n,r){await Xn.setPlay(e,n,r),this.playUrl=Xn.playUrl,this.result=Xn.result}async setSearch(e,n){await Xn.setSearch(e,n),this.vodList=Xn.vodList}async setProxy(e,n){return await Xn.proxy(e,n)}},i3=new jT;async function dte(t,e){return await i3.init(t,e)}async function mte(t,e){return await i3.home(t,e)}async function pDe(t,e){return await i3.homeVod(t,e)}async function yte(t,e){return await i3.category(t,e)}async function gte(t,e){return await i3.detail(t,e)}async function vte(t,e){return await i3.play(t,e)}async function _te(t,e){return await i3.search(t,e)}async function hDe(t,e){return await i3.proxy(t,e)}var Ete={meta:{key:Xn.getJSName(),name:Xn.getName(),type:Xn.getType()},api:async t=>{t.post("/init",dte),t.post("/home",mte),t.post("/category",yte),t.post("/detail",gte),t.post("/play",vte),t.post("/search",_te),t.get("/proxy/:what/:ids/:end",hDe)},spider:{init:dte,home:mte,homeVod:pDe,category:yte,detail:gte,play:vte,search:_te}};function dDe(t){return t==="zd"?"\u6700\u5927":t==="yj"?"\u6C38\u4E45":t==="hn"?"\u725B\u725B":t==="gs"?"\u5149\u6CE2":t==="sn"?"\u65B0\u6717":t==="wl"?"\u6DA1\u8F6E":t==="lz"?"\u826F\u5B50":t==="fs"?"F\u901F":t==="ff"?"\u98DE\u98DE":t==="bd"?"\u767E\u5EA6":t==="uk"?"\u9177U":t==="wj"?"\u65E0\u5929":t==="bj"?"\u516B\u6212":t==="tk"?"\u5929\u7A7A":t==="ss"?"\u901F\u901F":t==="kb"?"\u9177\u64AD":t==="sd"?"\u95EA\u7535":t==="xk"?"\u770B\u770B":t==="tp"?"\u6DD8\u6DD8":t==="jy"?"\u7CBE\u82F1":t}var $T=class extends Ge{constructor(){super(),this.siteUrl="http://cqdb6.com"}getName(){return"\u{1F4FA}\u250370\u770B\u770B\u2503\u{1F4FA}"}getAppName(){return"70\u770B\u770B"}getJSName(){return"kankan70"}getType(){return 3}paraseUrlObject(e){let n=e.split(";"),r={},i="",l=0,s=0,a="";for(let c=0;c<n.length;c++){let f=n[c];if(f.indexOf("var lianzaijs")>-1?(i=f.split("=")[0].split(" ")[1],a=i.split("_")[1]):f.indexOf("pl_id=")>-1?(l=f.split("=")[1],r[i]={play_id:l,list:[],pl_dy:s}):f.indexOf("var pl_dy")>-1&&(s=f.split("=")[1]),f.indexOf(`playarr_${a}[`)>-1){let d=f.split('="')[1].split(",")[0];r[i].list.push(d)}}let o=[],u=[];for(let c of Object.keys(r))if(c.indexOf("_")>-1){let f=dDe(c.split("_")[1]);u.push(f);let d=[],h=0;for(let m of r[c].list)h=h+1,d.push("\u7B2C"+h.toString()+"\u96C6$"+m);o.push(d.join("#"))}return{play_format:u.join("$$$"),play_url:o.join("$$$")}}async parseVodShortListFromDoc(e){let n=[],r=e("a.li-hv");for(let i of r){let l=new Pe;l.vod_id="/"+i.attribs.href,l.vod_name=i.attribs.title,l.vod_pic=e(i).find("img")[0].attribs["data-original"];let s=e(i).find("p.bz")[0];s.length>0&&(l.vod_remarks=s.children[0].data),n.push(l)}return n}async parseVodDetailFromDoc(e){let n=new Ye,r=e("[class=inf Line truncated
`,"").replaceAll("\u5267\u60C5\uFF1A",""),n.vod_pic=e("img.lazy")[0].attribs["data-original"],n}async parseVodShortListFromJson(e){let n=[];for(let r of e){let i=new Pe;i.vod_id=r.url,i.vod_pic=r.thumb,i.vod_remarks=r.time,i.vod_name=r.title,n.push(i)}return n}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=tt(e),r=n("[class=index-list-l]");for(let i of r){let l=n(n(i).find('[class="h1 clearfix"]')[0]).find("a"),s=l[0].attribs.href,a=n(l[1]).text();Q.isEmpty(a)||this.classes.push({type_id:s,type_name:a})}}}async getFilter(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader()),i=[];if(!Q.isEmpty(r)){let l=tt(r),s=l('[class="sy scon clearfix"]').find("dl"),a=0;for(let o of s){let u=l(l(o).find("dt")).text().replace("\u6309","").replace("\uFF1A",""),c={key:(a+1).toString(),name:u,value:[]},f=l(o).find("a"),d=0;u==="\u5267\u60C5"?d=3:u==="\u5E74\u4EE3"?d=2:u==="\u5730\u533A"&&(d=4);for(let h of f){let m=h.attribs.href.split("/");c.value.push({n:l(h).text(),v:m[d]})}i.push(c),a=a+1}}return i}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter(n))}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=tt(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,i){let l=this.siteUrl+e,s=await this.fetch(l,null,this.getHeader());if(!Q.isEmpty(s)){let a=e.split("/")[1],o=e.split("/")[2],u=Ie(/var _yu_gda_s="(.*?)";/,s),c={action:a,page:parseInt(n),year:i[2]??"0",area:i[3]??"all",class:i[1]??"0",dect:"",id:o},f=await this.fetch(u,c,this.getHeader());if(f!==null){let d=tt(f);this.vodList=await this.parseVodShortListFromDoc(d)}}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=tt(r);this.vodDetail=await this.parseVodDetailFromDoc(i);let s="http://test.gqyy8.com:8077/ne2"+/<script type="text\/javascript" src="http:\/\/test.gqyy8.com:8077\/ne2(.*?)"><\/script>/g.exec(r)[1],a=await this.fetch(s,null,this.getHeader());if(!Q.isEmpty(a)){let o=this.paraseUrlObject(a);this.vodDetail.vod_play_url=o.play_url,this.vodDetail.vod_play_from=o.play_format}}}async setSearch(e,n){let r=this.siteUrl+"/search.php",i=await this.fetch(r,null,this.getHeader());if(!Q.isEmpty(i)){let l={top:10,q:e},s=Ie(/var my_search='(.*?)';/,i),a=await this.fetch(s,l,this.getHeader());if(!Q.isEmpty(a)){let o=JSON.parse(a.replaceAll("\uFEFF",""));this.vodList=await this.parseVodShortListFromJson(o)}}}},Yn=new $T;var HT=class extends $e{constructor(){super()}getName(){return Yn.getName()}getAppName(){return Yn.getAppName()}getJSName(){return Yn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Yn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Yn.initCookie(e.server.config.bilicookie),await Yn.spiderInit(e),Yn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Yn.setClasses(),this.classes=Yn.classes}async setFilterObj(){await Yn.setFilterObj(),this.filterObj=Yn.filterObj}async setHomeVod(){await Yn.setHomeVod(),this.homeVodList=Yn.homeVodList}async setCategory(e,n,r,i){await Yn.setCategory(e,n,r,i),this.vodList=Yn.vodList}async setDetail(e){await Yn.setDetail(e),this.vodDetail=Yn.vodDetail}async setPlay(e,n,r){await Yn.setPlay(e,n,r),this.playUrl=Yn.playUrl,this.result=Yn.result}async setSearch(e,n){await Yn.setSearch(e,n),this.vodList=Yn.vodList}async setProxy(e,n){return await Yn.proxy(e,n)}},l3=new HT;async function xte(t,e){return await l3.init(t,e)}async function bte(t,e){return await l3.home(t,e)}async function mDe(t,e){return await l3.homeVod(t,e)}async function wte(t,e){return await l3.category(t,e)}async function Ste(t,e){return await l3.detail(t,e)}async function Tte(t,e){return await l3.play(t,e)}async function Ate(t,e){return await l3.search(t,e)}async function yDe(t,e){return await l3.proxy(t,e)}var Cte={meta:{key:Yn.getJSName(),name:Yn.getName(),type:Yn.getType()},api:async t=>{t.post("/init",xte),t.post("/home",bte),t.post("/category",wte),t.post("/detail",Ste),t.post("/play",Tte),t.post("/search",Ate),t.get("/proxy/:what/:ids/:end",yDe)},spider:{init:xte,home:bte,homeVod:mDe,category:wte,detail:Ste,play:Tte,search:Ate}};var qT="abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789";function yd(t,e){let n="",r=e===void 0?!0:e;for(let i=0;i<t;i++){let l=Q.random(0,r?qT.length-1:qT.length-11);n+=qT[l]}return n}function gDe(){return{brand:"Huawei",model:"HUAWEI Mate 20",release:"10",buildId:yd(3,!1).toUpperCase()+Q.random(11,99)+yd(1,!1).toUpperCase()}}function vDe(t,e){return e.trim().replaceAll(t,"").replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}function Ote(t,e){try{let n=e.url??"";if(n.startsWith("//")&&(n="https:"+n),!n.startsWith("http")) Line truncated
"type": "{{tid}}",
"p": "{{pg}}",
"area": "{{ext.area|default(0)}}",
"year": "{{ext.year|default(0)}}",
"sort": "{{ext.sort|default(0)}}",
"class": "{{ext.class|default(0)}}"}`,{ext:i,tid:e,pg:n}));console.log(s);let a=await this.request(l,s);this.vodList=await this.parseVodShortListFromJson(a.data.data)}async setDetail(e){let n=await this.request(this.siteUrl+"/api.php/Video/getVideoInfo",{video_id:e});this.vodDetail=await this.parseVodDetailfromJson(n.data.video)}async setPlay(e,n,r){this.result.jx=0;try{if(n.indexOf("youku")>=0||n.indexOf("iqiyi")>=0||n.indexOf("v.qq.com")>=0||n.indexOf("pptv")>=0||n.indexOf("le.com")>=0||n.indexOf("1905.com")>=0||n.indexOf("mgtv")>=0){if(this.parse.length>0)for(let i=0;i<this.parse.length;i++)try{let l=this.parse[i],s=await req(l+n,{headers:{"user-agent":"okhttp/4.1.0"}});await this.jadeLog.debug(`\u89E3\u6790\u8FDE\u63A5\u7ED3\u679C\u4E3A:${JSON.stringify(s)}`);let a=Ote(n,JSON.parse(s.content).data);a.url&&(this.playUrl=a.url,this.danmuUrl=await this.danmuSpider.getVideoUrl(n,0),this.result.jx=1)}catch{}}else if(n.indexOf("jqq-")>=0){let i=await this.request(this.siteUrl+"/jqqheader.json",null,null,!0),l=n.split("-"),s=await req("https://api.juquanquanapp.com/app/drama/detail?dramaId="+l[1]+"&episodeSid="+l[2]+"&quality=LD",{headers:i}),a=JSON.parse(s.content);a.data.playInfo.url&&(this.playUrl=a.data.playInfo.url)}else if(n.startsWith("ftp"))this.playUrl=n;else{let i=await this.request(this.siteUrl+"/video.php",{url:n}),l=Ote(n,i.data);l.url&&(l.url.indexOf("filename=1.mp4")>-1?this.playUrl=l.url:this.playUrl=await js2Proxy(!0,this.siteType,this.siteKey,"lzm3u8/"+ai(l.url),{}))}}catch(i){await this.jadeLog.error(i)}}async setSearch(e,n){let r=await this.request(this.siteUrl+"/api.php/Search/getSearch",{key:e,type_id:0,p:1});this.vodList=await this.parseVodShortListFromJson(r.data.data)}async proxy(e,n){let r=e[0],i=Xi(e[1]);if(r==="lzm3u8"){await this.jadeLog.debug(`\u4F7F\u7528\u4EE3\u7406\u64AD\u653E,\u64AD\u653E\u8FDE\u63A5\u4E3A:${i}`);let l=await req(i,{}),s=l.content,a=await js2Proxy(!1,this.siteType,this.siteKey,"lzm3u8/",{}),o=i.substr(0,i.lastIndexOf("/")+1);return await this.jadeLog.debug(s.length),s=s.replace(/#EXT-X-DISCONTINUITY\r*\n*#EXTINF:6.433333,[\s\S]*?#EXT-X-DISCONTINUITY/,""),await this.jadeLog.debug(s.length),s=s.replace(/(#EXT-X-KEY\S+URI=")(\S+)("\S+)/g,function(u,c,f,d){let h=(f.startsWith("http")?"":o)+f;return c+h+d}),s=s.replace(/(#EXT-X-STREAM-INF:.*\n)(.*)/g,function(u,c,f){let d=(f.startsWith("http")?"":o)+f;return c+a+Xi(d)}),s=s.replace(/(#EXTINF:.*\n)(.*)/g,function(u,c,f){let d=(f.startsWith("http")?"":o)+f;return c+d}),JSON.stringify({code:l.code,content:s,headers:l.headers})}return JSON.stringify({code:500,content:""})}},Qn=new VT;var zT=class extends $e{constructor(){super()}getName(){return Qn.getName()}getAppName(){return Qn.getAppName()}getJSName(){return Qn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Qn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Qn.initCookie(e.server.config.bilicookie),await Qn.spiderInit(e),Qn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Qn.setClasses(),this.classes=Qn.classes}async setFilterObj(){await Qn.setFilterObj(),this.filterObj=Qn.filterObj}async setHomeVod(){await Qn.setHomeVod(),this.homeVodList=Qn.homeVodList}async setCategory(e,n,r,i){await Qn.setCategory(e,n,r,i),this.vodList=Qn.vodList}async setDetail(e){await Qn.setDetail(e),this.vodDetail=Qn.vodDetail}async setPlay(e,n,r){await Qn.setPlay(e,n,r),this.playUrl=Qn.playUrl,this.result=Qn.result}async setSearch(e,n){await Qn.setSearch(e,n),this.vodList=Qn.vodList}async setProxy(e,n){return await Qn.proxy(e,n)}},s3=new zT;async function Nte(t,e){return await s3.init(t,e)}async function Ite(t,e){return await s3.home(t,e)}async function _De(t,e){return await s3.homeVod(t,e)}async function Rte(t,e){return await s3.category(t,e)}async function Dte(t,e){return await s3.detail(t,e)}async function kte(t,e){return await s3.play(t,e)}async function Pte(t,e){return await s3.search(t,e)}async function EDe(t,e){return await s3.proxy(t,e)}var Lte={meta:{key:Qn.getJSName(),name:Qn.getName(),type:Qn.getType()},api:async t=>{t.post("/init",Nte),t.post("/home",Ite),t.post("/category",Rte),t.post("/detail",Dte),t.post("/play",kte),t.post("/search",Pte),t.get("/proxy/:what/:ids/:end",EDe)},spider:{init:Nte,home:Ite,homeVod:_De,category:Rte,detail:Dte,play:kte,search:Pte}};var GT=class extends $o{constructor(){super(),this.siteUrl="https://cj.lzcaiji.com",this.remove18=!0}getAppName(){return"\u91CF\u5B50\u8D44\u6E90"}getName(){return"\u{1F41D}\u2503\u91CF\u5B50\u8D44\u6E90\u2503\u{1F41D}"}getJSName(){return"liangzi"}getType(){return 3}async spiderInit(e){await super.spiderInit(e)}async init(e){await super.init(e),await this.spiderInit(null)}},Zn=new GT;var KT=class extends $e{constructor(){super()}getName(){return Zn.getName()}getAppName(){return Zn.getAppName()}getJSName() Line truncated
`,"").replaceAll(" ","").replaceAll(" ","")+"end";if(u.indexOf("\u5E74\u4EFD")>-1&&(e.vod_year=Ie(/年份:(.*?)end/,u).replaceAll("/","")),u.indexOf("\u5907\u6CE8")>-1){let c=Ie(/备注:(.*?)end/,u);e.vod_remarks=Ie(/备注:\/(.*?)end/,u)}u.indexOf("\u6807\u7B7E")>-1&&(e.type_name=Ie(/标签:(.*?)end/,u)),u.indexOf("\u5267\u60C5")>-1&&(e.vod_content=Ie(/剧情:(.*?)end/,u))}let i=t('[class="module-tab-item tab-item"]'),l=t('[class="scroll-content"]'),s=[],a=[];for(let o=0;o<i.length;o++){let u=i[o];s.push(u.attribs["data-dropdown-value"]);let c=[];for(let f of t(l[o]).find("a")){let d=t(f).text(),h=f.attribs.href;c.push(d+"$"+h)}a.push(c.join("#"))}return e.vod_play_from=s.join("$$$"),e.vod_play_url=a.join("$$$"),e}async setHomeVod(){let t=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(t)}getExtendValue(t,e){return t[e]===void 0||t[e]==="0"?"":t[e]}async setCategory(t,e,n,r){await this.jadeLog.debug(`extend:${JSON.stringify(r)}`);let i=this.getExtendValue(r,"1"),l=this.getExtendValue(r,"2"),s=this.getExtendValue(r,"3"),a=this.getExtendValue(r,"4"),o=[t.toString(),"",a,i,"",s,"","",e.toString(),"","",l],u=this.siteUrl+"/show/"+o.join("-")+".html",c=await this.getHtml(u);this.vodList=await this.parseVodShortListFromDocByCategory(c)}async setDetail(t){let e=await this.getHtml(this.siteUrl+t);this.vodDetail=await this.parseVodDetailFromDoc(e)}async setSearch(t,e){let n=this.siteUrl+`/search/${t}-------------.html`,r=await this.getHtml(n);this.vodList=await this.parseVodShortListFromDocBySearch(r)}async setPlay(t,e,n){let r=await this.getHtml(this.siteUrl+e),l="https://danmu.yhdmjx.com/m3u8.php?url="+JSON.parse(Ie(/var player_aaaa=(.*?)<\/script>/,r.html())).url,s=await await this.fetch(l,null,this.getHeader()),a=s.match(/"url": getVideoInfo\("(.*?)"\),/)[1],o=s.match(/<script>var bt_token = "(.*?)"/)[1],u=await await this.fetch("https://danmu.yhdmjx.com/js/play.js",null,this.getHeader());u=u.match(/var _token_key=CryptoJS\['enc'\]\['Utf8'\]\[_0x17f1\('67','qETJ'\)\]\((.*?\))/)[1],u=this.decrypt_token_key(u),this.playUrl=await this.getVideoInfo(a,u,o)}decrypt_token_key(toekn_key){var _0xod4="jsjiami.com.v6",_0x175e=[_0xod4,"JMOsw6omwoDCmw==","wp3DkSx5Eg==","HB7CscOJfS3DuUjDv2bDjsOmwr3Cm8KcwoI=","fR/Dqg==","ShRGTcKa","w5Y8VBs=","esKYKQ==","FgIdwrPDnMKOw7k=","HhXCmA==","woNrRsKSwpnDvcKfw4g=","ezBn","w43DkcK5w4MaJiE=","w44Ob8KjwrjCrMKtUA==","HwtswqI=","YsKnwrRawro=","Sm/CpQXCjz4RH8ORSXw=","IsO6w64=","T8OeAQ==","VcK4Hg==","csOmfBJ4","d8OAcA5L","Tn4RL2s=","w7goGizCmw==","w6XDlcOGwpoY","TsK7wpNPwrg=","w7J1CzLCnsO+HA==","w4XDkcK0w5YXPg==","S8KoCcKS","PcKWHcK/Eg==","Z2oMJ3rCiw==","YsKMG8KMwo0=","QsOecgRIwp4=","dFzDkUUxw48Qw7nCmX3CicODCMKnw74IOg==","acO2KU1B","wrAnw6DDrg==","w5MsScKwwoA=","wohZG8KhBg==","b8OieSpZ","w4ZmEsORw6I=","w7jDhxvCh8KY","w7wQa8KFwr0=","IMObw4E3wqU=","JsOjw5Erwrg=","w6MwcsKOwqU=","b8KIwqF0wrs=","XhXDvT52","wrDCmirChSE=","w5t1wpvDuwE=","XA7CtsKeEA==","wonCvVthw78=","U8KPP8KMwq4=","wp7DhCxjGTU=","woPDoBdiEQ==","HjzCrE/Dvg==","SsOQOWHCgg==","w6NdwoXCkMOx","w6shYWQ/","eE/Cgg==","XW/Csj7CmDoA","w680OynCgcK5BA8=","w4PDoMOTwrog","w5R7wqbCpMOPwrMxUcOiM8OuMVLCisKKFsOXAcOWY8O6w5hM","WwjDoht0","PzXCiHHDiA==","QMOFaMKcfQ==","bz9bVsK+","w7Npwp/DsB9ONw==","EcOPBQ3Cig==","woHDnzk=","DsKQLxtd","R8OCJmk=","wp55O8On","bkXCmhTCqg==","w7vDgx3Cg8KU","w6nDo8KdAn8=","O8KwP8KEDw==","wqzCtCHCtCg=","w5nDgmYhw5c=","wp0OZsK+w4A=","wrFxe8KFwp/DvcKew4EbN8K7BMORMx3DuxtOVELChsOEIQ==","BMKWRDc=","IS5dw6nDhQ==","w6geeG8t","SsK/wohywpc=","LBlnw7jDkA==","wodiLsOg","Ig5Ow7/Dlw==","TMOOewRZwoQ=","LjnClV7DvA==","woZsO8KcPQ==","eWvClMKeKQ==","wq1KWsKswr8=","w4p+AGFa","C8O7F8K2CQcKFxxgwo5sfh3DpAFV","w6XDqMKoCw==","w6Z8wqnCpMOe","w6x/CHRhXhV/w7I=","wrvClndGw5Y=","VsKcwo5RwoA=","ZcK2BMKmLQ==","BCcPwofDvQ==","eGEsF20=","eMOcUglq","w4U9XEAMw4/Dm3rCuzpxTg/DvyDDvMONH8OTwpTCtsKbw6k=","VwXDkTxG","CzHCrl3DkQ==","w7PDkVovw4o=","dsONYDdj","w79pwr3Duh4=","w55kwoLCpMOR","w6gbc8KGwpw=","bCnCtMKCCg==","Php5w64=","w7x8wpfDtiQ=","w4TDk2AB","w7lowoHDtgQ=","DB/CsnjDuQ==","woTDl8K3wp4S","wr0Ewq7Dq8Oh","GmHCpGxN","w5/Dm2XDpw==","w5bDpsOCwqoA","YMKowphwwqc=","ahFuVsK9","w57DtEsbw7k=","w6LDo8Kq","UsKzE8KO","w6xlBFl9","WMOgIXbCiw==","DBhjw5fDhQ==","w6pUwoHCnsOs","ZF7CtsKiHg==","wos4w7wCwr0c","JlXCjlpyw5pMw6s=","TcO1N8K4wqE=","SMOzTcKYRw==","w4HDosOzwrUc","wqxdwqE2wrY=","A8OPGQjChw==","wpkxasOxBQ==","wpIZSA==","VsOnEEvChg==","bMOSZy93","c8OwZsKnRQ==","SsK/wpBHwoQ=","ccOsHVFf","w6ZKYMO8w6rDr8OrCHxdwqtdwrDDksOMccKZwobDpQPDgsOrAMKXF8OMPcOySsKuL8KLwq8vwr/DkjbDqsOCbRrCkcOTTFfDlsKkw7PChCM1wqTDisKawpHDt8KCQRY3w6DDgMKVw6M=","w7hYwq3ClsOa","Fic5wqLDiw==","KcKqHCVV","wqvDucKSwrs/","YcOfQcKPSQ==","wpjClmNRw7U=","wpHClSnCizg=","w4PDh8Kw","JsOYGwnCpw==","w5vDksK8w6sl","U8ORCHt+Rw==","woVxO8OSJQ==","b37Chw/Clw==","w6ViBXZlQg==","UwPCucKQCgU=","UMOeZgs=","MTLCtW7Dq2o=","wqAQwr/DqcOi","DiLDtsOOZsKEbsOrGm03EcKEwr/CplQ=","dzPDnRhP","wplgT8KBwow=","XUzCg8KF","K8KTCcKrCQ==","w6ZKJMOw","LxTCmn/DsA==","wooObcKBw6g=","w5djwofDoTQ=","VMOHeAts","Kw96 Line truncated
`,"").replace(" ","").replace("\u73A9\u5076",""),a={type_id:l,type_name:s};this.classes.push(a)}}}async getFilter(e){let n=e("[class='scroll-content']").slice(1),r=[];for(let i=0;i<n.length;i++){let l={key:(i+1).toString(),name:"",value:[]};if(i<n.length-1){l.name=e(e(n[i]).find("a")[0]).text(),l.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[i]).find("a").slice(1))l.value.push({n:e(s).text(),v:e(s).text()});r.push(l)}else l.name=e(e(n[i]).find("a")[0]).text(),l.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[i]).find("a")[1]).text(),v:"hits"},{n:e(e(n[i]).find("a")[2]).text(),v:"score"}],r.push(l)}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let r=this.siteUrl+`/index.php/vodshow/${n}--------1---.html`,i=await this.fetch(r,null,this.getHeader());if(i!=null){let l=tt(i);this.filterObj[n]=await this.getFilter(l)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!Q.isEmpty(e)){let n=tt(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,r,i){let l=[e.toString(),"","","","","","","",n.toString(),"","",""],s=this.get_extend_sort_dic(parseInt(e));for(let u of Object.keys(s))i[u]==="0"?l[s[u]]="":l[s[u]]=i[u];let a=this.siteUrl+"/index.php/vodshow/"+l.join("-")+".html",o=await this.fetch(a,null,this.getHeader());if(!Q.isEmpty(o)){let u=tt(o);this.vodList=await this.parseVodShortListFromDoc(u);let c=Ie(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,o);this.limit=72,c.length>0&&(this.total=parseInt(c)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,r=await this.fetch(n,null,this.getHeader());if(!Q.isEmpty(r)){let i=tt(r);this.vodDetail=await this.parseVodDetailFromDoc(i)}}async setPlay(e,n,r){let i=await Fl(e,n,r);this.playUrl=JSON.parse(i).url}async setSearch(e,n){let r=this.siteUrl+"/index.php/vodsearch/-------------.html?wd="+e,i=await this.fetch(r,null,this.getHeader());if(!Q.isEmpty(i)){let l=tt(i);this.vodList=await this.parseVodShortListFromDocBySearch(l)}}},tr=new QT;var ZT=class extends $e{constructor(){super()}getName(){return tr.getName()}getAppName(){return tr.getAppName()}getJSName(){return tr.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await tr.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await tr.initCookie(e.server.config.bilicookie),await tr.spiderInit(e),tr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await tr.setClasses(),this.classes=tr.classes}async setFilterObj(){await tr.setFilterObj(),this.filterObj=tr.filterObj}async setHomeVod(){await tr.setHomeVod(),this.homeVodList=tr.homeVodList}async setCategory(e,n,r,i){await tr.setCategory(e,n,r,i),this.vodList=tr.vodList}async setDetail(e){await tr.setDetail(e),this.vodDetail=tr.vodDetail}async setPlay(e,n,r){await tr.setPlay(e,n,r),this.playUrl=tr.playUrl,this.result=tr.result}async setSearch(e,n){await tr.setSearch(e,n),this.vodList=tr.vodList}async setProxy(e,n){return await tr.proxy(e,n)}},c3=new ZT;async function rne(t,e){return await c3.init(t,e)}async function ine(t,e){return await c3.home(t,e)}async function LDe(t,e){return await c3.homeVod(t,e)}async function lne(t,e){return await c3.category(t,e)}async function sne(t,e){return await c3.detail(t,e)}async function ane(t,e){return await c3.play(t,e)}async function one(t,e){return await c3.search(t,e)}async function FDe(t,e){return await c3.proxy(t,e)}var une={meta:{key:tr.getJSName(),name:tr.getName(),type:tr.getType()},api:async t=>{t.post("/init",rne),t.post("/home",ine),t.post("/category",lne),t.post("/detail",sne),t.post("/play",ane),t.post("/search",one),t.get("/proxy/:what/:ids/:end",FDe)},spider:{init:rne,home:ine,homeVod:LDe,category:lne,detail:sne,play:ane,search:one}};function gd(t,e){let n=vd();return gd=function(r,i){return r=r-424,n[r]},gd(t,e)}function vd(){let t=["1580630GngmmA","117uvwflw","join","current_id","565448Apkhig","23092JwmytW","707152yowhOv","getElementById","855936CGaczt","length","2966831GCGpvn","611266nfcTEf","value","substring"];return vd=function(){return t},vd()}(function(t,e){let n=gd,r=t();for(;;)try{if(-parseInt(n(436))/1+parseInt(n(429))/2+-parseInt(n(433))/3*(-parseInt(n(437))/4)+-parseInt(n(432))/5+parseInt(n(426))/6+parseInt(n(428))/7+parseInt(n(424))/8===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(vd,304089);function BDe(t,e){let n=gd,r=t,i=e;if(!r||!i)return;let l=r.length,s=r[n(431)](l-4,l),a=[];for(let o=0;o<s[n(427)];o++){let u=parseInt(s[o]),c=u%3+1;a[o]=i[n(431)](c,c+8),i=i[n(431)](c+8,i[n(427)])}return a[n(434)]("")}var eA=class extends Ge{constructor(){super(),this.siteUrl="https://v.ikanbot.com"}getName(){return"\u{1F916}\u2503\u7231\u770B\u673A\u5668\u4EBA\u2503\u{1F916}"}getAppName(){return"\u7231\u770B\u673A\u5668\u4EBA"}getJSName( Line truncated
`;let o=[],u=Ie(Tu,a).split(`
`);for(let f of u){let d=f.match(Tu);Q.isEmpty(d)||o.push(d[1])}let c=await Ll(o);return i.vod_play_url=c.vod_play_url,i.vod_play_from=c.vod_play_from,i.type_name=Ie(/标签(.*?)\n/,a).replaceAll("\uFF1A",""),i.vod_content=Ie(/描述(.*?)\n/,a).replaceAll("\uFF1A",""),i}async setClasses(){let e=await this.getHtml(),n=e("[id^='navbar-category']").find("a"),r=["\u5F71","\u5267","4K","\u89C6","\u97F3","\u6F14","\u52A8\u6F2B"];for(let i of n){let l=e(i).text(),s=i.attribs.href,a=!1;for(let o of r)l.indexOf(o)>-1&&(a=!0);a&&this.classes.push(this.getTypeDic(l,s))}}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,i){let l=e.split(".html")[0]+"_"+n+".html",s=await this.getHtml(l);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setDetail(e){let n=await this.getHtml(e);this.vodDetail=await this.parseVodDetailFromDoc(n)}async setPlay(e,n,r){let i=await Fl(e,n,r);this.playUrl=JSON.parse(i).url}async setSearch(e,n){let r=this.siteUrl+`/search.php?q=${e}`,i=await this.getHtml(r);this.vodList=await this.parseVodShortListFromDocByCategory(i)}},rr=new nA;var rA=class extends $e{constructor(){super()}getName(){return rr.getName()}getAppName(){return rr.getAppName()}getJSName(){return rr.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await rr.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await rr.initCookie(e.server.config.bilicookie),await rr.spiderInit(e),rr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await rr.setClasses(),this.classes=rr.classes}async setFilterObj(){await rr.setFilterObj(),this.filterObj=rr.filterObj}async setHomeVod(){await rr.setHomeVod(),this.homeVodList=rr.homeVodList}async setCategory(e,n,r,i){await rr.setCategory(e,n,r,i),this.vodList=rr.vodList}async setDetail(e){await rr.setDetail(e),this.vodDetail=rr.vodDetail}async setPlay(e,n,r){await rr.setPlay(e,n,r),this.playUrl=rr.playUrl,this.result=rr.result}async setSearch(e,n){await rr.setSearch(e,n),this.vodList=rr.vodList}async setProxy(e,n){return await rr.proxy(e,n)}},p3=new rA;async function gne(t,e){return await p3.init(t,e)}async function vne(t,e){return await p3.home(t,e)}async function $De(t,e){return await p3.homeVod(t,e)}async function _ne(t,e){return await p3.category(t,e)}async function Ene(t,e){return await p3.detail(t,e)}async function xne(t,e){return await p3.play(t,e)}async function bne(t,e){return await p3.search(t,e)}async function HDe(t,e){return await p3.proxy(t,e)}var wne={meta:{key:rr.getJSName(),name:rr.getName(),type:rr.getType()},api:async t=>{t.post("/init",gne),t.post("/home",vne),t.post("/category",_ne),t.post("/detail",Ene),t.post("/play",xne),t.post("/search",bne),t.get("/proxy/:what/:ids/:end",HDe)},spider:{init:gne,home:vne,homeVod:$De,category:_ne,detail:Ene,play:xne,search:bne}};var iA=class extends Ge{constructor(){super(),this.siteUrl="https://www.6080yy3.com"}getAppName(){return"\u65B0\u89C6\u89C9\u5F71\u9662"}getName(){return"\u{1F43C}\u2503\u65B0\u89C6\u89C9\u5F71\u9662\u2503\u{1F43C}"}getJSName(){return"newvision"}getType(){return 3}async setClasses(){let e=await this.getHtml(),n=e(e('[class="nav-menu-items"]')[0]).find("a");for(let r of n){let i=Ie(/\/vodtype\/(.*?).html/,r.attribs.href),l=r.attribs.title;ip(i)&&this.classes.push(this.getTypeDic(l,i))}}async getFilter(e){let n=e("[class='scroll-content']").slice(1),r=[],i=[3,1,11,2];for(let l=0;l<n.length;l++){let s=e(e(n[l]).find("a")[0]).text(),a={key:s,name:s,value:[]};a.name=s,a.value.push({n:"\u5168\u90E8",v:"0"});for(let o of e(n[l]).find("a").slice(1)){let u=Ie(/\/vodshow\/(.*?).html/,o.attribs.href).split("-");a.value.push({n:e(o).text(),v:decodeURIComponent(u[i[l]])})}r.push(a)}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="\u6700\u8FD1\u66F4\u65B0"){let r=this.siteUrl+`/vodshow/${n}-----------.html`,i=await this.getHtml(r);this.filterObj[n]=await this.getFilter(i)}}}async parseVodShortListFromDoc(e){let n=e(".module-item"),r=[];for(let i of n){let l=new Pe,s=e(i).find(".module-item-cover .module-item-pic a").first();l.vod_id=s.attr("href"),l.vod_name=s.attr("title"),l.vod_pic=e(i).find(".module-item-cover .module-item-pic img").first().attr("data-src"),l.vod_pic.indexOf("img.php?url=")>0&&(l.vod_pic=l.vod_pic.split("img.php?url=")[1]),l.vod_remarks=e(i).find(".module-item-text").first().text(),r.push(l)}return r}async parseVodShortListFromJson(e){let n=[];for(let r of e.Data.result){let i=new Pe;i.vod_id=r.vod_url.replaceAll(this.siteUrl,""),i.vod_pic=r.vod_pic,i.vod_name=r.vod_name,n.push(i)}return n}async parseVodDetailFromDoc(e){let n=e.html(),r=new Ye,i=e('[class="box view-heading"]');r.vod_name=e(e(i).find('[class="page-title"]')).text();let l=e(e(i).find('[class="tag-link"]').find("a"));r.vod_area=e(e(i).find('[class=" Line truncated
`," ").replaceAll(" \u6536\u8D77","");let u=e('[class="module-tab-item tab-item"]'),c=e('[class="scroll-content"]'),f=[],d=[];for(let h=0;h<u.length;h++){let x=u[h].attribs["data-dropdown-value"];if(x.indexOf("\u5938\u514B")===-1){f.push(x);let b=[];for(let _ of e(c[h]).find("a")){let E=e(_).text(),v=_.attribs.href;b.push(E+"$"+v)}d.push(b.join("#"))}}return r.vod_play_from=f.join("$$$"),r.vod_play_url=d.join("$$$"),r}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,r,i){let l=[e.toString(),"","","","","","","",n.toString(),"","",""],s=[3,11,1,2];i.\u5168\u90E8\u5267\u60C5!==void 0&&i.\u5168\u90E8\u5267\u60C5!=="0"&&(l[s[0]]=i.\u5168\u90E8\u5267\u60C5),i.\u5168\u90E8\u65F6\u95F4!==void 0&&i.\u5168\u90E8\u65F6\u95F4!=="0"&&(l[s[1]]=i.\u5168\u90E8\u65F6\u95F4),i.\u5168\u90E8\u5730\u533A!==void 0&&i.\u5168\u90E8\u5730\u533A!=="0"&&(l[s[2]]=i.\u5168\u90E8\u5730\u533A),i.\u65F6\u95F4\u6392\u5E8F!==void 0&&i.\u65F6\u95F4\u6392\u5E8F!=="0"&&(l[s[3]]=i.\u65F6\u95F4\u6392\u5E8F);let a=this.siteUrl+"/index.php/vodshow/"+l.join("-")+".html",o=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(o)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}uic(e,n){let r=Je.enc.Utf8.parse("2890"+n+"tB959C"),i=Je.enc.Utf8.parse("2F131BE91247866E"),l=Je.AES.decrypt(e,r,{iv:i,mode:Je.mode.CBC,padding:Je.pad.Pkcs7});return Je.enc.Utf8.stringify(l)}async setPlay(e,n,r){let l=(await this.getHtml(this.siteUrl+n))('[id="bfurl"]')[0].attribs.href;if(l.indexOf("http")>-1)this.playUrl=l;else{let s="https://jiexi.xn--1lq90i13mxk5bolhm8k.xn--fiqs8s/player/ec.php?code=ak&if=1&url="+l,o=(await this.getHtml(s)).html(),u=JSON.parse(Ie(/let ConFig = (.*?),box = /,o));this.playUrl=this.uic(u.url,u.config.uid)}}async setSearch(e,n){let r=`http://123.207.150.253/zxapi/public/?service=App.F.Fetch&req_p=${e}&type=6080`,i=await this.fetch(r,null,this.getHeader());this.vodList=await this.parseVodShortListFromJson(JSON.parse(i))}},ir=new iA;var lA=class extends $e{constructor(){super()}getName(){return ir.getName()}getAppName(){return ir.getAppName()}getJSName(){return ir.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await ir.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await ir.initCookie(e.server.config.bilicookie),await ir.spiderInit(e),ir.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await ir.setClasses(),this.classes=ir.classes}async setFilterObj(){await ir.setFilterObj(),this.filterObj=ir.filterObj}async setHomeVod(){await ir.setHomeVod(),this.homeVodList=ir.homeVodList}async setCategory(e,n,r,i){await ir.setCategory(e,n,r,i),this.vodList=ir.vodList}async setDetail(e){await ir.setDetail(e),this.vodDetail=ir.vodDetail}async setPlay(e,n,r){await ir.setPlay(e,n,r),this.playUrl=ir.playUrl,this.result=ir.result}async setSearch(e,n){await ir.setSearch(e,n),this.vodList=ir.vodList}async setProxy(e,n){return await ir.proxy(e,n)}},h3=new lA;async function Sne(t,e){return await h3.init(t,e)}async function Tne(t,e){return await h3.home(t,e)}async function qDe(t,e){return await h3.homeVod(t,e)}async function Ane(t,e){return await h3.category(t,e)}async function Cne(t,e){return await h3.detail(t,e)}async function One(t,e){return await h3.play(t,e)}async function Nne(t,e){return await h3.search(t,e)}async function VDe(t,e){return await h3.proxy(t,e)}var Ine={meta:{key:ir.getJSName(),name:ir.getName(),type:ir.getType()},api:async t=>{t.post("/init",Sne),t.post("/home",Tne),t.post("/category",Ane),t.post("/detail",Cne),t.post("/play",One),t.post("/search",Nne),t.get("/proxy/:what/:ids/:end",VDe)},spider:{init:Sne,home:Tne,homeVod:qDe,category:Ane,detail:Cne,play:One,search:Nne}};var sA=class extends $o{constructor(){super(),this.siteUrl="https://haiwaikan.com",this.remove18=!0,this.type_id_18=0}async spiderInit(e){await super.spiderInit(e)}async init(e){await super.init(e),await this.spiderInit(null)}getAppName(){return"\u6D77\u5916\u770B"}getName(){return"\u2615\u2503\u6D77\u5916\u770B\u2503\u2615\u5899"}getJSName(){return"haiwaikan"}getType(){return 3}async setClasses(){let e=await this.fetch(this.siteUrl+"/api.php/provide/vod/from",{ac:"list"},this.getHeader()),n=JSON.parse(e);for(let r of n.class)r.type_id<26&&this.classes.push(this.getTypeDic(r.type_name,r.type_id.toString()));this.content_json=n}async getFilter(e,n){let r=[],i={key:"1",name:"\u5168\u90E8\u7C7B\u522B",value:[{n:"\u5168\u90E8\u7C7B\u522B",v:e.toString()}]};for(let l of n.class){let s=l.type_id,a=0,o=0;e===20&&(a=50,o=27),e===21&&(a=128,o=100),e===22&&(a=143,o=134),e===23&&(a=135,o=127),s<a&&s>o&&i.value.push({n:l.type_name,v:s.toString()})}return i.value.length>1?(r.push(i),r):null}async setFilterObj(){let e=await this.fetch(this.siteUrl+"/ap Line truncated
<ContentComponent contentType="${f}"/>
<Representation id="${n}" bandwidth="${l}" codecs="${i}" mimeType="${a}" ${d} startWithSAP="${s}">
<BaseURL>${o}</BaseURL>
<SegmentBase indexRange="${u}">
<Initialization range="${c}"/>
</SegmentBase>
</Representation>
</AdaptationSet>`}catch{}}getDash(e,n,r){let i=e.data.dash.duration,l=e.data.dash.minBufferTime;return`<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" type="static" mediaPresentationDuration="PT${i}S" minBufferTime="PT${l}S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
<Period duration="PT${i}S" start="PT0S">
${n}
${r}
</Period>
</MPD>`}async proxy(e,n){let r=e[0],i=Xi(e[1]);if(r==="dash"){let l=i.split("+"),s=l[0],a=l[1],o=l[2],u=this.apiUrl+`/x/player/playurl?avid=${s}&cid=${a}&qn=${o}&fnval=4048&fourk=1`,c="",f="",d=await this.fetch(u,null,n),h=JSON.parse(d),m=h.data.dash,x=m.video,b=m.audio;for(let E=0;E<x.length;E++){let v=x[E];v.id.toString()===o&&(c+=this.getDashMedia(v))}for(let E=0;E<b.length;E++){let v=b[E];for(let g in this.vod_audio_id)v.id.toString()===g&&(f+=this.getDashMedia(v))}let _=this.getDash(h,c,f);return JSON.stringify({code:200,content:_,headers:{"Content-Type":"application/dash+xml"}})}return JSON.stringify({code:500,content:""})}},sr=new oA;var uA=class extends $e{constructor(){super()}getName(){return sr.getName()}getAppName(){return sr.getAppName()}getJSName(){return sr.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await sr.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await sr.initCookie(e.server.config.bilicookie),await sr.spiderInit(e),sr.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await sr.setClasses(),this.classes=sr.classes}async setFilterObj(){await sr.setFilterObj(),this.filterObj=sr.filterObj}async setHomeVod(){await sr.setHomeVod(),this.homeVodList=sr.homeVodList}async setCategory(e,n,r,i){await sr.setCategory(e,n,r,i),this.vodList=sr.vodList}async setDetail(e){await sr.setDetail(e),this.vodDetail=sr.vodDetail}async setPlay(e,n,r){await sr.setPlay(e,n,r),this.playUrl=sr.playUrl,this.result=sr.result}async setSearch(e,n){await sr.setSearch(e,n),this.vodList=sr.vodList}async setProxy(e,n){return await sr.proxy(e,n)}},m3=new uA;async function Mne(t,e){return await m3.init(t,e)}async function Une(t,e){return await m3.home(t,e)}async function KDe(t,e){return await m3.homeVod(t,e)}async function jne(t,e){return await m3.category(t,e)}async function $ne(t,e){return await m3.detail(t,e)}async function Hne(t,e){return await m3.play(t,e)}async function qne(t,e){return await m3.search(t,e)}async function JDe(t,e){return await m3.proxy(t,e)}var Vne={meta:{key:sr.getJSName(),name:sr.getName(),type:sr.getType()},api:async t=>{t.post("/init",Mne),t.post("/home",Une),t.post("/category",jne),t.post("/detail",$ne),t.post("/play",Hne),t.post("/search",qne),t.get("/proxy/:what/:ids/:end",JDe)},spider:{init:Mne,home:Une,homeVod:KDe,category:jne,detail:$ne,play:Hne,search:qne}};function WDe(t,e,n,r){let i=Je.enc.Utf8.parse(e||"PBfAUnTdMjNDe6pL"),l=Je.enc.Utf8.parse(n||"sENS6bVbwSfvnXrj"),s;return r?s=Je.AES.encrypt(t,i,{iv:l,mode:Je.mode.CBC,padding:Je.pad.Pkcs7}):s=Je.AES.decrypt(t,i,{iv:l,padding:Je.pad.Pkcs7}).toString(Je.enc.Utf8),s}var cA=class extends Ge{constructor(){super(),this.siteUrl="https://www.czzy88.com"}async init(t){await super.init(t),await Yi(this.cfgObj.token)}getName(){return"\u{1F3ED}\uFE0F\u2503\u5382\u957F\u76F4\u8FDE\u2503\u{1F3ED}\uFE0F"}getAppName(){return"\u5382\u957F\u76F4\u8FDE"}getJSName(){return"changzhang"}getType(){return 3}async getHtml(t=this.siteUrl,e=this.getHeader()){let r=(await this.fetch(t,null,e,!1,!0)).content;if(!Q.isEmpty(r)&&r.indexOf("\u4EBA\u673A\u9A8C\u8BC1")===-1)return tt(r);await this.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0)}getSearchHeader(){return{Cookie:"cf_clearance=otYZbHg1safCIxkCtZfy9DPKbf1Gs_zUskkVDc0MVKM-1707026063-1-ATOpKnTLv9+pv171YE/rzxN/nmvGN9Mucx7vpwp0kW2vZb/cbtz5e2md2/ym7EE+9dT7pPBV+kQOg9vJx2v8cks=;myannoun=1;PHPSESSID=73386nobqugs7r3pb2ljcsp5q4","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/100.0.4896.77 Mobile/15E148 Safari/604.1",Connection:"keep-alive",Host:"www.czzy55.com"}}parseVodShortFromElement(t,e){let n=new Pe,r=t(t(e).find("a")).find("img")[0];return n.vod_name=r.attribs.alt,n.vod_pic=r.attribs["data-original"],n.vod_remarks=t(t(t(e).find("[class='hdinfo']")).find("span")).text(),n.vod_id=t(e).find("a")[0].attribs.href,n}async parseVodShortListFromDoc(t){let e=[],n=t(t('[class="mi_cont"]').find("ul")).find("li");for(let r of n)e.push(this.parseVodShortFromElement(t,r));return e}async parseVodShortListFromDocByCategory(t){let e=[],n=t(t('[class="mi_cont "]').find("ul")).find("li");for(let r of n)e.push(this.parseVodShortFromElement(t,r));return e}async parseVodDetailFromDoc(t){let e=new Ye,n=t("[class='dyxingq']");e.vod_pic=t(n).find("img")[0].attribs.src,e.vod_name=t(t(n).find("h1")[0]).text(),e.vod_content=t(t(t("[class='yp_context']")).find("p")).text();let r=t(n).find("[class='moviedteail_list']").find("li"),i=t(r).text();for(let c of r){let f=t(c).text();f.indexOf("\u7C7B\u578B")>-1?e.type_name=f.replaceAll("\u7C7B\u578B","").replaceAll("\uFF1A",""):f.indexOf("\u5E74\u4EFD")>-1?e.vod_year=f.replaceAll("\u5E74\u4EFD","").replaceAll("\uFF1A",""):f.indexOf("\u5730\u533A")>-1?e.vod_area=f.replaceAll("\u5730\u533A","").replaceAll("\uFF1A",""):f.indexOf("\u8C4Line truncated
/*! Bundled license information:
uri-js/dist/es5/uri.all.js:
+1 -1
View File
@@ -1 +1 @@
3f21849ecb5933ac61370272aef767a0
d420a0bc83dc0fa1e549de94127ad58d
Submodule
+1
Submodule cat/tjs added at 6144267795.