varTK=Object.create;varhc=Object.defineProperty;varSK=Object.getOwnPropertyDescriptor;varxK=Object.getOwnPropertyNames;varwK=Object.getPrototypeOf,AK=Object.prototype.hasOwnProperty;varC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),CS=(t,e)=>{for(varnine)hc(t,n,{get:e[n],enumerable:!0})},kS=(t,e,n,r)=>{if(e&&typeofe=="object"||typeofe=="function")for(letlofxK(e))!AK.call(t,l)&&l!==n&&hc(t,l,{get:()=>e[l],enumerable:!(r=SK(e,l))||r.enumerable});returnt};varyr=(t,e,n)=>(n=t!=null?TK(wK(t)):{},kS(e||!t||!t.__esModule?hc(n,"default",{value:t,enumerable:!0}):n,t)),RK=t=>kS(hc({},"__esModule",{value:!0}),t);varDS=C((Q_e,PS)=>{"use strict";functionOK(t){vare=newt,n=e;functionr(){vari=e;returni.next?e=i.next:(e=newt,n=e),i.next=null,i}functionl(i){n.next=i,n=i}return{get:r,release:l}}PS.exports=OK});varYf=C((Z_e,Kf)=>{"use strict";varNK=DS();functionLS(t,e,n){if(typeoft=="function"&&(n=e,e=t,t=null),!(n>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");varr=NK(IK),l=null,i=null,s=0,a=null,o={push:v,drain:f2,saturated:f2,pause:f,paused:!1,getconcurrency(){returnn},setconcurrency(A){if(!(A>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=A,!o.paused)for(;l&&s<n;)s++,T()},running:c,resume:h,idle:g,length:p,getQueue:m,unshift:S,empty:f2,kill:x,killAndDrain:_,error:b};returno;functionc(){returns}functionf(){o.paused=!0}functionp(){for(varA=l,N=0;A;)A=A.next,N++;returnN}functionm(){for(varA=l,N=[];A;)N.push(A.value),A=A.next;returnN}functionh(){if(o.paused)for(o.paused=!1;l&&s<n;)s++,T()}functiong(){returns===0&&o.length()===0}functionv(A,N){varO=r.get();O.context=t,O.release=T,O.value=A,O.callback=N||f2,O.errorHandler=a,s>=n||o.paused?i?(i.next=O,i=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}functionS(A,N){varO=r.get();O.context=t,O.release=T,O.value=A,O.callback=N||f2,O.errorHandler=a,s>=n||o.paused?l?(O.next=l,l=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}functionT(A){A&&r.release(A);varN=l;N&&s<=n?o.paused?s--:(i===l&&(i=null),l=N.next,N.next=null,e.call(t,N.value,N.worked),i===null&&o.empty()):--s===0&&o.drain()}functionx(){l=null,i=null,o.drain=f2}function_(){l=null,i=null,o.drain(),o.drain=f2}functionb(A){a=A}}functionf2(){}functionIK(){this.value=null,this.callback=f2,this.next=null,this.release=f2,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,r){varl=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=f2,t.errorHandler&&i(n,s),l.call(t.context,n,r),t.release(t)}}functionCK(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionr(f,p){e.call(this,f).then(function(m){p(null,m)},p)}varl=LS(t,r,n),i=l.push,s=l.unshift;returnl.push=a,l.unshift=o,l.drained=c,l;functiona(f){varp=newPromise(function(m,h){i(f,function(g,v){if(g){h(g);return}m(v)})});returnp.catch(f2),p}functiono(f){varp=newPromise(function(m,h){s(f,function(g,v){if(g){h(g);return}m(v)})});returnp.catch(f2),p}functionc(){if(l.idle())returnnewPromise(function(m){m()});varf=l.drain,p=newPromise(function(m){l.drain=function(){f(),m()}});returnp}}Kf.exports=LS;Kf.exports.promise=CK});varJf=C((eve,FS)=>{"use strict";var{inherits:kK,format:Wf}=require("util");functionta(t,e,n=Error){if(!t)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functionr(l,i,s){if(!new.target)returnnewr(l,i,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",l&&i&&s?this.message=Wf(e,l,i,s):l&&i?this.message=Wf(e,l,i):l?this.message=Wf(e,l):this.message=e}returnr.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},kK(r,n),r}FS.exports={createError:ta,AVV_ERR_EXPOSE_ALREADY_DEFINED:ta("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:ta("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:ta("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:ta("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:ta("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:ta("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$S=C((tve,MS)=>{MS.exports=functiont(e,n,r){n===void0&&(n=""),r||(r={});varl=function(o){varc={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnr.unicode===!1?c[o]:o};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
varFK=Object.create;vargc=Object.defineProperty;varMK=Object.getOwnPropertyDescriptor;var$K=Object.getOwnPropertyNames;varjK=Object.getPrototypeOf,UK=Object.prototype.hasOwnProperty;varC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),MS=(t,e)=>{for(varnine)gc(t,n,{get:e[n],enumerable:!0})},$S=(t,e,n,r)=>{if(e&&typeofe=="object"||typeofe=="function")for(letlof$K(e))!UK.call(t,l)&&l!==n&&gc(t,l,{get:()=>e[l],enumerable:!(r=MK(e,l))||r.enumerable});returnt};var_r=(t,e,n)=>(n=t!=null?FK(jK(t)):{},$S(e||!t||!t.__esModule?gc(n,"default",{value:t,enumerable:!0}):n,t)),BK=t=>$S(gc({},"__esModule",{value:!0}),t);varUS=C((m_e,jS)=>{"use strict";functionqK(t){vare=newt,n=e;functionr(){vari=e;returni.next?e=i.next:(e=newt,n=e),i.next=null,i}functionl(i){n.next=i,n=i}return{get:r,release:l}}jS.exports=qK});varJf=C((g_e,Wf)=>{"use strict";varHK=US();functionBS(t,e,n){if(typeoft=="function"&&(n=e,e=t,t=null),!(n>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");varr=HK(VK),l=null,i=null,s=0,a=null,o={push:_,drain:p2,saturated:p2,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(A){if(!(A>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=A,!o.paused)for(;l&&s<n;)s++,T()},running:f,resume:h,idle:g,length:p,getQueue:m,unshift:S,empty:p2,kill:x,killAndDrain:v,error:b};returno;functionf(){returns}functionc(){o.paused=!0}functionp(){for(varA=l,N=0;A;)A=A.next,N++;returnN}functionm(){for(varA=l,N=[];A;)N.push(A.value),A=A.next;returnN}functionh(){if(o.paused)for(o.paused=!1;l&&s<n;)s++,T()}functiong(){returns===0&&o.length()===0}function_(A,N){varO=r.get();O.context=t,O.release=T,O.value=A,O.callback=N||p2,O.errorHandler=a,s>=n||o.paused?i?(i.next=O,i=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}functionS(A,N){varO=r.get();O.context=t,O.release=T,O.value=A,O.callback=N||p2,O.errorHandler=a,s>=n||o.paused?l?(O.next=l,l=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}functionT(A){A&&r.release(A);varN=l;N&&s<=n?o.paused?s--:(i===l&&(i=null),l=N.next,N.next=null,e.call(t,N.value,N.worked),i===null&&o.empty()):--s===0&&o.drain()}functionx(){l=null,i=null,o.drain=p2}functionv(){l=null,i=null,o.drain(),o.drain=p2}functionb(A){a=A}}functionp2(){}functionVK(){this.value=null,this.callback=p2,this.next=null,this.release=p2,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,r){varl=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=p2,t.errorHandler&&i(n,s),l.call(t.context,n,r),t.release(t)}}functionzK(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionr(c,p){e.call(this,c).then(function(m){p(null,m)},p)}varl=BS(t,r,n),i=l.push,s=l.unshift;returnl.push=a,l.unshift=o,l.drained=f,l;functiona(c){varp=newPromise(function(m,h){i(c,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(p2),p}functiono(c){varp=newPromise(function(m,h){s(c,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(p2),p}functionf(){if(l.idle())returnnewPromise(function(m){m()});varc=l.drain,p=newPromise(function(m){l.drain=function(){c(),m()}});returnp}}Wf.exports=BS;Wf.exports.promise=zK});varZf=C((y_e,qS)=>{"use strict";var{inherits:GK,format:Qf}=require("util");functionra(t,e,n=Error){if(!t)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functionr(l,i,s){if(!new.target)returnnewr(l,i,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",l&&i&&s?this.message=Qf(e,l,i,s):l&&i?this.message=Qf(e,l,i):l?this.message=Qf(e,l):this.message=e}returnr.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},GK(r,n),r}qS.exports={createError:ra,AVV_ERR_EXPOSE_ALREADY_DEFINED:ra("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:ra("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:ra("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:ra("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:ra("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:ra("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varVS=C((v_e,HS)=>{HS.exports=functiont(e,n,r){n===void0&&(n=""),r||(r={});varl=function(o){varf={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnr.unicode===!1?f[o]:o};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
deps:${n}}`};var C2e={keyword:"dependencies",type:"object",schemaType:"object",error:hi.error,code(t){let[e,n]=k2e(t);VO(t,e),zO(t,n)}};function k2e({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 VO(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,E1.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,E1.checkReportMissingProp)(t,c)}):(n.if((0,Mh._)`${o}&&(${(0,E1.checkMissingProp)(t,a,i)})`),(0,E1.reportMissingProp)(t,i),n.else())}}hi.validatePropertyDeps=VO;function zO(t,e=t.schema){let{gen:n,data:r,keyword:l,it:i}=t,s=n.name("valid");for(let a in e)(0,I2e.alwaysValidSchema)(i,e[a])||(n.if((0,E1.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))}hi.validateSchemaDeps=zO;hi.default=C2e});var KO=C($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var XO=Je(),P2e=yt(),D2e={message:"property name must be valid",params:({params:t})=>(0,XO._)`{propertyName:${t.propertyName}}`},L2e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D2e,code(t){let{gen:e,schema:n,data:r,it:l}=t;if((0,P2e.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,XO.not)(i),()=>{t.error(!0),l.allErrors||e.break()})}),t.ok(i)}};$h.default=L2e});var Uh=C(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var v6=Vr(),$2=Je(),F2e=h2(),E6=yt(),M2e={message:"must NOT have additional properties",params:({params:t})=>(0,$2._)`{additionalProperty:${t.additionalProperty}}`},$2e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:M2e,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,E6.alwaysValidSchema)(s,n))return;let c=(0,v6.allSchemaProperties)(r.properties),f=(0,v6.allSchemaProperties)(r.patternProperties);p(),t.ok((0,$2._)`${i}===${F2e.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,E6.schemaRefOrVal)(s,r.properties,"properties");T=(0,v6.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,v6.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,E6.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:E6.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(_,T)}}};jh.default=$2e});var JO=C(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var j2e=Ho(),YO=Vr(),Bh=yt(),WO=Uh(),U2e={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&&WO.default.code(new j2e.KeywordCxt(i,WO.default,"additionalProperties"));let s=(0,YO.allSchemaProperties)(n);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Bh.mergeEvaluated.props(e,(0,Bh.toHash)(s),i.props));let a=s.filter(p=>!(0,Bh.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,YO.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)}}};qh.default=U2e});var tN=C(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var QO=Vr(),b6=Je(),ZO=yt(),eN=yt(),B2e={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,QO.allSchemaProperties)(n),o=a.filter(v=>(0,ZO.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
deps:${n}}`};var z2e={keyword:"dependencies",type:"object",schemaType:"object",error:mi.error,code(t){let[e,n]=G2e(t);WO(t,e),JO(t,n)}};function G2e({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 WO(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,T1.propertyInData)(n,r,s,l.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),l.allErrors?n.if(o,()=>{for(let f of a)(0,T1.checkReportMissingProp)(t,f)}):(n.if((0,jh._)`${o}&&(${(0,T1.checkMissingProp)(t,a,i)})`),(0,T1.reportMissingProp)(t,i),n.else())}}mi.validatePropertyDeps=WO;function JO(t,e=t.schema){let{gen:n,data:r,keyword:l,it:i}=t,s=n.name("valid");for(let a in e)(0,V2e.alwaysValidSchema)(i,e[a])||(n.if((0,T1.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))}mi.validateSchemaDeps=JO;mi.default=z2e});var eN=C(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var ZO=Je(),X2e=yt(),K2e={message:"property name must be valid",params:({params:t})=>(0,ZO._)`{propertyName:${t.propertyName}}`},Y2e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:K2e,code(t){let{gen:e,schema:n,data:r,it:l}=t;if((0,X2e.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,ZO.not)(i),()=>{t.error(!0),l.allErrors||e.break()})}),t.ok(i)}};Uh.default=Y2e});var qh=C(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var b6=zr(),B2=Je(),W2e=m2(),T6=yt(),J2e={message:"must NOT have additional properties",params:({params:t})=>(0,B2._)`{additionalProperty:${t.additionalProperty}}`},Q2e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:J2e,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,T6.alwaysValidSchema)(s,n))return;let f=(0,b6.allSchemaProperties)(r.properties),c=(0,b6.allSchemaProperties)(r.patternProperties);p(),t.ok((0,B2._)`${i}===${W2e.default.errors}`);function p(){e.forIn("key",l,S=>{!f.length&&!c.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(f.length>8){let x=(0,T6.schemaRefOrVal)(s,r.properties,"properties");T=(0,b6.isOwnProperty)(e,x,S)}else f.length?T=(0,B2.or)(...f.map(x=>(0,B2._)`${S}===${x}`)):T=B2.nil;return c.length&&(T=(0,B2.or)(T,...c.map(x=>(0,B2._)`${(0,b6.usePattern)(t,x)}.test(${S})`))),(0,B2.not)(T)}function h(S){e.code((0,B2._)`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,T6.alwaysValidSchema)(s,n)){let T=e.name("valid");o.removeAdditional==="failing"?(_(S,T,!1),e.if((0,B2.not)(T),()=>{t.reset(),h(S)})):(_(S,T),a||e.if((0,B2.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:T6.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,T)}}};Bh.default=Q2e});var rN=C(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var Z2e=zo(),tN=zr(),Hh=yt(),nN=qh(),eie={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&&nN.default.code(new Z2e.KeywordCxt(i,nN.default,"additionalProperties"));let s=(0,tN.allSchemaProperties)(n);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Hh.mergeEvaluated.props(e,(0,Hh.toHash)(s),i.props));let a=s.filter(p=>!(0,Hh.alwaysValidSchema)(i,n[p]));if(a.length===0)return;let o=e.name("valid");for(let p of a)f(p)?c(p):(e.if((0,tN.propertyInData)(e,l,p,i.opts.ownProperties)),c(p),i.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(o);function f(p){return i.opts.useDefaults&&!i.compositeRule&&n[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},o)}}};Vh.default=eie});var aN=C(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});var lN=zr(),S6=Je(),iN=yt(),sN=yt(),tie={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,lN.allSchemaProperties)(n),o=a.filter(_=>(0,iN.alwaysValidSchema)(i,n[_]));if(a.length===0||o.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let f=s.strictSchema&&!s.allowMatchingProperties&&l.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
`;let a=new i1e(e),o=new s1e(e.ajv);for(let f of n.validatorSchemasIds){let p=n.refResolver.getSchema(f);o.addSchema(p,f);let m=n.refResolver.getSchemaDependencies(f);for(let[h,g]of Object.entries(m))o.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
`;let a=new _1e(e),o=new E1e(e.ajv);for(let c of n.validatorSchemasIds){let p=n.refResolver.getSchema(c);o.addSchema(p,c);let m=n.refResolver.getSchemaDependencies(c);for(let[h,g]of Object.entries(m))o.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
serializer
${s}`,ajv:o.ajv};let c=new Function("validator","serializer",s);return e.mode==="standalone"?ym()(c,n,a,o):c(o,a)}var u1e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],c1e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],f1e=["maxLength","minLength","pattern"],p1e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function vP(t){for(var e of u1e)if(e in t)return"object";for(var e of c1e)if(e in t)return"array";for(var e of f1e)if(e in t)return"string";for(var e of p1e)if(e in t)return"number";return t.type}function d1e(t,e){let n=e.schema,r=Object.keys(n.properties||{}),l=`
${s}`,ajv:o.ajv};let f=new Function("validator","serializer",s);return e.mode==="standalone"?_m()(f,n,a,o):f(o,a)}var S1e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],x1e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],w1e=["maxLength","minLength","pattern"],A1e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function wP(t){for(var e of S1e)if(e in t)return"object";for(var e of x1e)if(e in t)return"array";for(var e of w1e)if(e in t)return"string";for(var e of A1e)if(e in t)return"number";return t.type}function R1e(t,e){let n=e.schema,r=Object.keys(n.properties||{}),l=`
`,l}function h1e(t,e){let n="",r=e.schema,l=r.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let c of Object.keys(r.properties)){if(l.indexOf(c)===-1)continue;let f=i.getPropertyLocation(c);f.schema.$ref&&(f=su(t,e,f.schema.$ref));let p=JSON.stringify(c);f.schema.default===void 0&&(n+=`if(obj[${p}]===undefined)thrownewError('${p} is required!')
`,a.push(c)),s.push(c)}for(let c of l)s.indexOf(c)===-1&&(n+=`if(obj['${c}']===undefined)thrownewError('"${c}" is required!')
`,l}function O1e(t,e){let n="",r=e.schema,l=r.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let f of Object.keys(r.properties)){if(l.indexOf(f)===-1)continue;let c=i.getPropertyLocation(f);c.schema.$ref&&(c=ou(t,e,c.schema.$ref));let p=JSON.stringify(f);c.schema.default===void 0&&(n+=`if(obj[${p}]===undefined)thrownewError('${p} is required!')
`,a.push(f)),s.push(f)}for(let f of l)s.indexOf(f)===-1&&(n+=`if(obj['${f}']===undefined)thrownewError('"${f}" is required!')
`);n+=`
letaddComma=false
letjson='${t.wrapObjects?"{":""}'
`;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let c of Object.keys(r.properties)){let f=i.getPropertyLocation(c);f.schema.$ref&&(f=su(t,e,f.schema.$ref));let p=JSON.stringify(c);if(a.indexOf(c)!==-1)n+=`
${iu}
`;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let f of Object.keys(r.properties)){let c=i.getPropertyLocation(f);c.schema.$ref&&(c=ou(t,e,c.schema.$ref));let p=JSON.stringify(f);if(a.indexOf(f)!==-1)n+=`
${e}`)}function w8(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[TL]=yce(t,n,r)),n=""),t.staticChildren)for(let l of Object.values(t.staticChildren))w8(l,e,n+l.prefix,r);if(t.parametricChildren)for(let l of Object.values(t.parametricChildren)){let i=Array.from(l.nodePaths).join("|");w8(l,e,n+i,r)}t.wildcardChild&&w8(t.wildcardChild,e,"*",r)}function _ce(t,e){let n={};return w8(t,n,t.prefix,e),SL(n)}wL.exports={prettyPrintTree:_ce}});var OL=C((wSe,RL)=>{"use strict";var vce=x8(),yy=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,l=n.opts.constraints||{},i={params:r,constraints:l,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(l);s.length===0&&(this.unconstrainedHandler=i);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(vce.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(i),this.handlers.sort((o,c)=>Object.keys(o.constraints).length-Object.keys(c.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,l)}_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 i=this.handlers[r].constraints[n];if(i!==void 0){let s=e.get(i)||0;s|=1<<r,e.set(i,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 l=e.newStoreForConstraint(r);this.constrainedHandlerStores[r]=l,this._buildConstraintStore(l,r)}let n=[];n.push(`
`+e+f);n+=e+o+i+p+`
`,n+=NL(s,e+f)}return n}function wce(t){let e=t.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function IL(t){return Array.isArray(t)?t.map(e=>IL(e)):typeof t=="symbol"?t.toString():typeof t=="function"?wce(t):t}function Ace(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},l=e.includeMeta;Array.isArray(l)||(l=Reflect.ownKeys(n));for(let i of l){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.toString(),a=n[i];if(a!=null){let o=JSON.stringify(IL(a));r[s]=o}}return r}function Rce(t){let e="";for(let[n,r]of Object.entries(t))e+=`
${e}`)}function R8(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[OL]=Cce(t,n,r)),n=""),t.staticChildren)for(let l of Object.values(t.staticChildren))R8(l,e,n+l.prefix,r);if(t.parametricChildren)for(let l of Object.values(t.parametricChildren)){let i=Array.from(l.nodePaths).join("|");R8(l,e,n+i,r)}t.wildcardChild&&R8(t.wildcardChild,e,"*",r)}function kce(t,e){let n={};return R8(t,n,t.prefix,e),NL(n)}CL.exports={prettyPrintTree:kce}});var DL=C((qSe,PL)=>{"use strict";var Pce=A8(),_y=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,l=n.opts.constraints||{},i={params:r,constraints:l,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(l);s.length===0&&(this.unconstrainedHandler=i);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(Pce.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(i),this.handlers.sort((o,f)=>Object.keys(o.constraints).length-Object.keys(f.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,l)}_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 i=this.handlers[r].constraints[n];if(i!==void 0){let s=e.get(i)||0;s|=1<<r,e.set(i,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 l=e.newStoreForConstraint(r);this.constrainedHandlerStores[r]=l,this._buildConstraintStore(l,r)}let n=[];n.push(`
`)}for(let r in e.strategies)e.strategies[r].mustMatchWhenDerived&&!this.constraints.includes(r)&&n.push(`if(derivedConstraints.${r}!==undefined)returnnull`);n.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",n.join(`
`))}};RL.exports=yy});var IL=C((ASe,NL)=>{"use strict";var Ece=OL(),C8={STATIC:0,PARAMETRIC:1,WILDCARD:2},A8=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 Ece),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},R8=class extends A8{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 l=1;for(;l<n.prefix.length;l++)if(e.charCodeAt(l)!==n.prefix.charCodeAt(l)){n=n.split(this,l);break}return n.createStaticChild(e.slice(l))}let r=e.charAt(0);return this.staticChildren[r]=new O8(e),this.staticChildren[r]}},O8=class t extends R8{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=C8.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,r=this.parametricChildren.find(l=>(l.regex&&l.regex.source)===n);return r||null}createParametricChild(e,n,r){let l=this.getParametricChild(e);return l?(l.nodePaths.add(r),l):(l=new N8(e,n,r),this.parametricChildren.push(l),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),l)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new I8,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),l=this.prefix.slice(n);this.prefix=l,this._compilePrefixMatch();let i=new t(r);return i.staticChildren[l.charAt(0)]=this,e.staticChildren[r.charAt(0)]=i,i}getNextNode(e,n,r,l){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_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(" && ")}`)}},N8=class extends R8{constructor(e,n,r){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=C8.PARAMETRIC,this.nodePaths=new Set([r])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},I8=class extends A8{constructor(){super(),this.kind=C8.WILDCARD}getNextNode(){return null}};NL.exports={StaticNode:O8,ParametricNode:N8,WildcardNode:I8,NODE_TYPES:C8}});var kL=C((RSe,CL)=>{"use strict";var bce=require("assert");function n0(){if(!(this instanceof n0))return new n0;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}n0.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,l]=t.split(".");return n=Number(n)||0,r=Number(r)||0,l=Number(l)||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),l>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=l,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${l}`]=e,this};n0.prototype.get=function(t){return this.store[t]};CL.exports={name:"version",mustMatchWhenDerived:!0,storage:n0,validate(t){bce(typeof t=="string","Version should be a string")}}});var DL=C((OSe,PL)=>{"use strict";var Tce=require("assert");function Sce(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let l of e)if(l.host.test(n))return l.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}PL.exports={name:"host",mustMatchWhenDerived:!1,storage:Sce,validate(t){Tce(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var FL=C((NSe,LL)=>{"use strict";var xce=kL(),wce=DL(),_y=require("assert"),vy=class{constructor(e){if(this.strategies={version:xce,host:wce},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(_y(typeof e.name=="string"&&e.name!=="","strategy.name is required."),_y(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};LL.exports=vy});var $L=C((ISe,ML)=>{"use strict";var Ace=["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"];ML.exports=Ace});var BL=C((CSe,UL)=>{"use strict";function jL(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 Rce(t,e){let n=!1,r=!1,l="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let o=t.charCodeAt(s+1),c=t.charCodeAt(s+2);jL(o,c)===null?n=!0:(r=!0,o===50&&c===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){l=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:l,shouldDecodeParam:r}}function Oce(t){let e=t.indexOf("%");if(e===-1)return t;let n="",r=e;for(let l=e;l<t.length;l++)if(t.charCodeAt(l)===37){let i=t.charCodeAt(l+1),s=t.charCodeAt(l+2),a=jL(i,s);n+=t.slice(r,l)+a,r=l+3}return t.slice(0,e)+n+t.slice(r)}UL.exports={safeDecodeURI:Rce,safeDecodeURIComponent:Oce}});var wy=C((kSe,KL)=>{"use strict";var rr=require("assert"),Nce=oL(),k8=_L(),Ty=Bo(),{prettyPrintTree:Ice}=AL(),{StaticNode:qL,NODE_TYPES:Ey}=IL(),Cce=FL(),vu=$L(),by=x8(),{safeDecodeURI:kce,safeDecodeURIComponent:HL}=BL(),VL=/^https?:\/\/.*?\//,Oa=/(\/:[^/()]*?)\?(\/?)/;if(!k8(VL))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!k8(Oa))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function jn(t){if(!(this instanceof jn))return new jn(t);t=t||{},this._opts=t,t.defaultRoute?(rr(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(rr(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(rr(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Pce,t.querystringParser?(rr(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Nce.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 Cce(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}jn.prototype.on=function(e,n,r,l,i){typeof r=="function"&&(l!==void 0&&(i=l),l=r,r={}),rr(typeof n=="string","Path should be a string"),rr(n.length>0,"The path could not be empty"),rr(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),rr(typeof l=="function","Handler should be a function");let s=n.match(Oa);if(s){rr(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let c=n.replace(Oa,"$1$2"),f=n.replace(Oa,"$2");this.on(e,c,r,l,i),this.on(e,f,r,l,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=Sy(n)),this.ignoreTrailingSlash&&(n=xy(n));let o=Array.isArray(e)?e:[e];for(let c of o)rr(typeof c=="string","Method should be a string"),rr(vu.includes(c),`Method'${c}'isnotanhttpmethod.`),this._on(c,n,r,l,i,a)};jn.prototype._on=function(e,n,r,l,i){let s={};r.constraints!==void 0&&(rr(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 qL("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new qL(""),this.trees[e].staticChildren["/"]=m}let o=this.trees[e],c=o.prefix.length,f=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let h=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,g=a.charCodeAt(m)===42;if(h||g||m===a.length&&m!==c){let v=a.slice(c,m);this.caseSensitive||(v=v.toLowerCase()),v=v.split("::").join(":"),v=v.split("%").join("%25"),o=o.createStaticChild(v)}if(h){let v=!1,S=[],T=m+1;for(let x=T;;x++){let _=a.charCodeAt(x),b=_===40,A=_===45||_===46,N=_===47||x===a.length;if(b||A||N){let O=a.slice(T,x);if(f.push(O),v=v||b||A,b){let L=XL(a,x),J=a.slice(x,L+1);this.allowUnsafeRegex||rr(k8(new RegExp(J)),`Theregex'${J}'isnotsafe!`),S.push(GL(J)),x=L+1}else S.push("(.*?)");let k=x;for(;x<a.length;x++){let L=a.charCodeAt(x);if(L===47)break;if(L===58)if(a.charCodeAt(x+1)===58)x++;else break}let $=a.slice(k,x);if($&&($=
Line truncated
`))}};PL.exports=_y});var FL=C((HSe,LL)=>{"use strict";var Dce=DL(),P8={STATIC:0,PARAMETRIC:1,WILDCARD:2},O8=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 Dce),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},N8=class extends O8{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 l=1;for(;l<n.prefix.length;l++)if(e.charCodeAt(l)!==n.prefix.charCodeAt(l)){n=n.split(this,l);break}return n.createStaticChild(e.slice(l))}let r=e.charAt(0);return this.staticChildren[r]=new I8(e),this.staticChildren[r]}},I8=class t extends N8{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=P8.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,r=this.parametricChildren.find(l=>(l.regex&&l.regex.source)===n);return r||null}createParametricChild(e,n,r){let l=this.getParametricChild(e);return l?(l.nodePaths.add(r),l):(l=new C8(e,n,r),this.parametricChildren.push(l),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),l)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new k8,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),l=this.prefix.slice(n);this.prefix=l,this._compilePrefixMatch();let i=new t(r);return i.staticChildren[l.charAt(0)]=this,e.staticChildren[r.charAt(0)]=i,i}getNextNode(e,n,r,l){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_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(" && ")}`)}},C8=class extends N8{constructor(e,n,r){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=P8.PARAMETRIC,this.nodePaths=new Set([r])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},k8=class extends O8{constructor(){super(),this.kind=P8.WILDCARD}getNextNode(){return null}};LL.exports={StaticNode:I8,ParametricNode:C8,WildcardNode:k8,NODE_TYPES:P8}});var $L=C((VSe,ML)=>{"use strict";var Lce=require("assert");function l0(){if(!(this instanceof l0))return new l0;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}l0.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,l]=t.split(".");return n=Number(n)||0,r=Number(r)||0,l=Number(l)||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),l>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=l,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${l}`]=e,this};l0.prototype.get=function(t){return this.store[t]};ML.exports={name:"version",mustMatchWhenDerived:!0,storage:l0,validate(t){Lce(typeof t=="string","Version should be a string")}}});var UL=C((zSe,jL)=>{"use strict";var Fce=require("assert");function Mce(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let l of e)if(l.host.test(n))return l.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}jL.exports={name:"host",mustMatchWhenDerived:!1,storage:Mce,validate(t){Fce(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var qL=C((GSe,BL)=>{"use strict";var $ce=$L(),jce=UL(),Ey=require("assert"),by=class{constructor(e){if(this.strategies={version:$ce,host:jce},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(Ey(typeof e.name=="string"&&e.name!=="","strategy.name is required."),Ey(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};BL.exports=by});var VL=C((XSe,HL)=>{"use strict";var Uce=["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"];HL.exports=Uce});var XL=C((KSe,GL)=>{"use strict";function zL(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 Bce(t,e){let n=!1,r=!1,l="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let o=t.charCodeAt(s+1),f=t.charCodeAt(s+2);zL(o,f)===null?n=!0:(r=!0,o===50&&f===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){l=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:l,shouldDecodeParam:r}}function qce(t){let e=t.indexOf("%");if(e===-1)return t;let n="",r=e;for(let l=e;l<t.length;l++)if(t.charCodeAt(l)===37){let i=t.charCodeAt(l+1),s=t.charCodeAt(l+2),a=zL(i,s);n+=t.slice(r,l)+a,r=l+3}return t.slice(0,e)+n+t.slice(r)}GL.exports={safeDecodeURI:Bce,safeDecodeURIComponent:qce}});var Ry=C((YSe,eF)=>{"use strict";var ar=require("assert"),Hce=hL(),D8=xL(),xy=Ho(),{prettyPrintTree:Vce}=kL(),{StaticNode:KL,NODE_TYPES:Ty}=FL(),zce=qL(),bu=VL(),Sy=A8(),{safeDecodeURI:Gce,safeDecodeURIComponent:YL}=XL(),WL=/^https?:\/\/.*?\//,Ia=/(\/:[^/()]*?)\?(\/?)/;if(!D8(WL))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!D8(Ia))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Bn(t){if(!(this instanceof Bn))return new Bn(t);t=t||{},this._opts=t,t.defaultRoute?(ar(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(ar(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(ar(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Xce,t.querystringParser?(ar(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Hce.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 zce(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Bn.prototype.on=function(e,n,r,l,i){typeof r=="function"&&(l!==void 0&&(i=l),l=r,r={}),ar(typeof n=="string","Path should be a string"),ar(n.length>0,"The path could not be empty"),ar(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),ar(typeof l=="function","Handler should be a function");let s=n.match(Ia);if(s){ar(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let f=n.replace(Ia,"$1$2"),c=n.replace(Ia,"$2");this.on(e,f,r,l,i),this.on(e,c,r,l,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=wy(n)),this.ignoreTrailingSlash&&(n=Ay(n));let o=Array.isArray(e)?e:[e];for(let f of o)ar(typeof f=="string","Method should be a string"),ar(bu.includes(f),`Method'${f}'isnotanhttpmethod.`),this._on(f,n,r,l,i,a)};Bn.prototype._on=function(e,n,r,l,i){let s={};r.constraints!==void 0&&(ar(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 KL("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new KL(""),this.trees[e].staticChildren["/"]=m}let o=this.trees[e],f=o.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let h=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,g=a.charCodeAt(m)===42;if(h||g||m===a.length&&m!==f){let _=a.slice(f,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),o=o.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=a.charCodeAt(x),b=v===40,A=v===45||v===46,N=v===47||x===a.length;if(b||A||N){let O=a.slice(T,x);if(c.push(O),_=_||b||A,b){let L=ZL(a,x),J=a.slice(x,L+1);this.allowUnsafeRegex||ar(D8(new RegExp(J)),`Theregex'${J}'isnotsafe!`),S.push(QL(J)),x=L+1}else S.push("(.*?)");let k=x;for(;x<a.length;x++){let L=a.charCodeAt(x);if(L===47)break;if(L===58)if(a.charCodeAt(x+1)===58)x++;else break}let $=a.slice(k,x);if($&&($=
Line truncated
)`,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])"},X$={};function K$(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 N_(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 s_=(t,e,n,r,l)=>{let i=l(e,N_(n),r);return i===St.trueFunc?t:i===St.falseFunc?St.falseFunc:s=>i(s)&&t(s)},a_={is:s_,matches:s_,where:s_,not(t,e,n,r,l){let i=l(e,N_(n),r);return i===St.falseFunc?t:i===St.trueFunc?St.falseFunc:s=>!i(s)&&t(s)},has(t,e,n,r,l){let i=n.adapter,s=N_(n),a=(s.relativeSelector=!0,e.some(f=>f.some(R_))?[X$]:void 0),o=l(e,s,a);if(o===St.falseFunc)return St.falseFunc;let c=function(f,p){return f===St.falseFunc?St.falseFunc:m=>p.isTag(m)&&f(m)}(o,i);if(a&&o!==St.trueFunc){let{shouldTestNextSiblings:f=!1}=o;return h=>{if(!t(h))return!1;a[0]=h;var m=i.getChildren(h),h=f?[...m,...K$(h,i)]:m;return i.existsOne(c,h)}}return f=>t(f)&&i.existsOne(c,i.getChildren(f))}};function o_(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function V9e(t,e,n,r,l){let{adapter:i,equals:s}=n;switch(e.type){case Qe.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Qe.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Qe.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()),U9e[e.action](t,e,n);case Qe.Pseudo:return function(a,o,c,f,p){let{name:m,data:h}=o;if(Array.isArray(h)){if(m in a_)return a_[m](a,h,c,f,p);throw new Error(`Unknownpseudo-class:${m}(${h})`)}let g=(o=c.pseudos)==null?void 0:o[m],v=typeof g=="string"?g:H9e[m];if(typeof v=="string"){if(h!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=A9(v);return a_.is(a,S,c,f,p)}if(typeof g=="function")return PM(g,m,h,1),S=>g(S,h)&&a(S);if(m in O_)return O_[m](a,h,c,f);if(m in kM){let S=kM[m];return PM(S,m,h,2),T=>S(T,c,h)&&a(T)}throw new Error("Unknown pseudo-class :"+m)}(t,e,n,r,l);case Qe.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 i.getName(o)===a&&t(o)}}case Qe.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let c=o;for(;c=o_(c,i);)if(t(c))return!0;return!1};let a=new WeakSet;return function(o){let c=o;for(;c=o_(c,i);)if(!a.has(c)){if(i.isTag(c)&&t(c))return!0;a.add(c)}return!1}}case"_flexibleDescendant":return function(a){let o=a;do if(t(o))return!0;while(o=o_(o,i));return!1};case Qe.Parent:return function(a){return i.getChildren(a).some(o=>i.isTag(o)&&t(o))};case Qe.Child:return function(a){return(a=i.getParent(a))!=null&&i.isTag(a)&&t(a)};case Qe.Sibling:return function(a){var o=i.getSiblings(a);for(let f=0;f<o.length;f++){var c=o[f];if(s(a,c))break;if(i.isTag(c)&&t(c))return!0}return!1};case Qe.Adjacent:return i.prevElementSibling?function(a){return(a=i.prevElementSibling(a))!=null&&t(a)}:function(a){var o=i.getSiblings(a);let c;for(let p=0;p<o.length;p++){var f=o[p];if(s(a,f))break;i.isTag(f)&&(c=f)}return!!c&&t(c)};case Qe.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function Y$(t){return t.type===Qe.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Y$)))}var z9e={type:Qe.Descendant},G9e={type:"_flexibleDescendant"},X9e={type:Qe.Pseudo,name:"scope",data:null};function W$(t,e,n){t.forEach(M9e),n=(s=e.context)!=null?s:n;let r=Array.isArray(n),l=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:o},c){var f=!(c==null||!c.every(p=>{var m=o.isTag(p)&&o.getParent(p);return p===X$||m&&o.isTag(m)}));for(let p of a){if(!(0<p.length&&R_(p[0])&&p[0].type!==Qe.Descendant)){if(!f||p.some(Y$))continue;p.unshift(z9e)}p.unshift(X9e)}})(t,e,l);else if(t.some(a=>0<a.length&&R_(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=t.map(a=>{if(2<=a.length){let[o,c]=a;o.type===Qe.Pseudo&&o.name==="scope"&&(r&&c.type===Qe.D
Line truncated
`)}}):{name:r,value:l.replace(LM,`\r
`)}}).toArray()}}),x0=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}},av=(x0.prototype.cheerio="[cheerio object]",x0.prototype.splice=Array.prototype.splice,x0.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(x0.prototype,I9e,f7e,y7e,_7e,E7e),function(t,e){return(av=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){n.__proto__=r}:function(n,r){for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(n[l]=r[l])}))(t,e)}),b7e=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}av(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},w0=function(){return(w0=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var l in e=arguments[n])Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t}).apply(this,arguments)},T7e=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]),Pn="\uFFFD",FM=(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"}(P=P||{}),"--"),MM="[CDATA[",$M="doctype",Su="script",S7e="public",x7e="system";function uj(t){return 55296<=t&&t<=57343}function cj(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function fj(t){return 64976<=t&&t<=65007||T7e.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&&($+=" "),this.message=$+(this.message||""),this.firstUpdate=!1,this},b}function c(T){return n.toString.call(T)==="[object Function]"}function f(T){return n.toString.call(T)==="[object Array]"}function p(T){return n.toString.call(T)==="[object String]"}function m(T){return n.toString.call(T)==="[object Object]"}function h(T){var x=function(_){return _?typeof _=="string"?_.split("."):[_]:[]}(T);return function(_){for(var b=_,A=0;A<x.length;A++){var N=x[A];if(!s(b,N))return;b=b[N]}return b}}function g(T){return Array.prototype.slice.call(T)}function v(T,x,_){return Array.prototype.indexOf.call(T||[],x,_)}function S(T){var x,_=[];for(x in T)s(T,x)&&_.push(x);return _}i.hasOwnProp=s,i._prettifyError=function(T,x,_){return(_=_.Update?_:new i.TemplateError(_)).Update(T),x||(T=_,(_=new Error(T.message)).name=T.name),_},Object.setPrototypeOf?Object.setPrototypeOf(o.prototype,Error.prototype):o.prototype=Object.create(Error.prototype,{constructor:{value:o}}),i.TemplateError=o,i.escape=function(T){return T.replace(l,a)},i.isFunction=c,i.isArray=f,i.isString=p,i.isObject=m,i.getAttrGetter=h,i.groupBy=function(T,x,_){for(var b={},A=c(x)?x:h(x),N=0;N<T.length;N++){var O=T[N],k=A(O,N);if(k===void 0&&_===!0)throw new TypeError('groupby: attribute "'+x+'" resolved to undefined');(b[k]||(b[k]=[])).push(O)}return b},i.toArray=g,i.without=function(T){var x=[];if(T)for(var _=T.length,b=g(arguments).slice(1),A=-1;++A<_;)v(b,T[A])===-1&&x.push(T[A]);return x},i.repeat=function(T,x){for(var _="",b=0;b<x;b++)_+=T;return _},i.each=function(T,x,_){if(T!=null){if(e.forEach&&T.forEach===e.forEach)T.forEach(x,_);else if(T.length===+T.length)for(var b=0,A=T.length;b<A;b++)x.call(_,T[b],b,T)}},i.map=function(T,x){var _=[];if(T!=null){if(e.map&&T.map===e.map)return T.map(x);for(var b=0;b<T.length;b++)_[_.length]=x(T[b],b);T.length===+T.length&&(_.length=T.length)}return _},i.asyncIter=function(T,x,_){var b=-1;(function A(){++b<T.length?x(T[b],b,A,_):_()})()},i.asyncFor=function(T,x,_){var b=S(T||{}),A=b.length,N=-1;(function O(){var k=b[++N];N<A?x(k,T[k],N,A,O):_()})()},i.indexOf=v,i.keys=S,i._entries=function(T){return S(T).map(function(x){return[x,T[x]]})},i._values=function(T){return S(T).map(function(x){return T[x]})},i._assign=i.extend=function(T,x){return T=T||{},S(x).forEach(function(_){T[_]=x[_]}),T},i.inOperator=function(T,x){if(f(x)||p(x))return x.indexOf(T)!==-1;if(m(x))return T in x;throw new Error('Cannot use "in" operator to search for "'+T+'" in unexpected types.')}});function Fj(){throw new Error("setTimeout has not been defined")}function Mj(){throw new Error("clearTimeout has not been defined")}var ss=Fj,as=Mj;function $j(t){if(ss===setTimeout)return setTimeout(t,0);if((ss===Fj||!ss)&&setTimeout)return(ss=setTimeout)(t,0);try{return ss(t,0)}catch{try{return ss.call(null,t,0)}catch{return ss.call(this,t,0)}}}typeof v3.setTimeout=="function"&&(ss=setTimeout),typeof v3.clearTimeout=="function"&&(as=clearTimeout);var Ma,b3=[],ju=!1,s9=-1;function bfe(){ju&&Ma&&(ju=!1,Ma.length?b3=Ma.concat(b3):s9=-1,b3.length)&&jj()}function jj(){if(!ju){var t=$j(bfe);ju=!0;for(var e=b3.length;e;){for(Ma=b3,b3=[];++s9<e;)Ma&&Ma[s9].run();s9=-1,e=b3.length}Ma=null,ju=!1,function(n){if(as===clearTimeout)return clearTimeout(n);if((as===Mj||!as)&&clearTimeout)return(as=clearTimeout)(n);try{as(n)}catch{try{return as.call(null,n)}catch{return as.call(this,n)}}}(t)}}function Uj(t,e){this.fun=t,this.array=e}function Va(){}Uj.prototype.run=function(){this.fun.apply(null,this.array)};var Tfe=Va,Sfe=Va,xfe=Va,wfe=Va,Afe=Va,Rfe=Va,Ofe=Va,Nu=v3.performance||{},Nfe=Nu.now||Nu.mozNow||Nu.msNow||Nu.oNow||Nu.webkitNow||function(){return new Date().getTime()},Ife=new Date,ds={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];b3.push(new Uj(t,e)),b3.length!==1||ju||$j(jj)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Tfe,addListener:Sfe,once:xfe,off:wfe,removeListener:Afe,removeAllListeners:Rfe,emit:Ofe,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*Nfe.call(Nu),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-Ife)/1e3}};function os(){}function hn(){hn.init.call(this)}function Bj(t){return t._maxListeners===void 0?hn.defaultMaxListeners:t._maxListeners}function h$(t,e,n,r){var l,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(l=t._events)?(l.newListener&&(t.emit("newListener",e,n.listener||n),l=t._events),i=l[e]):(l=t._events=new os,t._eventsCount=0),i?(typeof i=="function"?i=l[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),!i.warned&&(r=Bj(t))&&0<r&&i.length>r&&(i.warned=!0,(r=new Error("Possible EventEm
Line truncated
)`,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])"},Z$={};function ej(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 Cv(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 ov=(t,e,n,r,l)=>{let i=l(e,Cv(n),r);return i===St.trueFunc?t:i===St.falseFunc?St.falseFunc:s=>i(s)&&t(s)},uv={is:ov,matches:ov,where:ov,not(t,e,n,r,l){let i=l(e,Cv(n),r);return i===St.falseFunc?t:i===St.trueFunc?St.falseFunc:s=>!i(s)&&t(s)},has(t,e,n,r,l){let i=n.adapter,s=Cv(n),a=(s.relativeSelector=!0,e.some(c=>c.some(Nv))?[Z$]:void 0),o=l(e,s,a);if(o===St.falseFunc)return St.falseFunc;let f=function(c,p){return c===St.falseFunc?St.falseFunc:m=>p.isTag(m)&&c(m)}(o,i);if(a&&o!==St.trueFunc){let{shouldTestNextSiblings:c=!1}=o;return h=>{if(!t(h))return!1;a[0]=h;var m=i.getChildren(h),h=c?[...m,...ej(h,i)]:m;return i.existsOne(f,h)}}return c=>t(c)&&i.existsOne(f,i.getChildren(c))}};function cv(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function l7e(t,e,n,r,l){let{adapter:i,equals:s}=n;switch(e.type){case Qe.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Qe.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Qe.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()),e7e[e.action](t,e,n);case Qe.Pseudo:return function(a,o,f,c,p){let{name:m,data:h}=o;if(Array.isArray(h)){if(m in uv)return uv[m](a,h,f,c,p);throw new Error(`Unknownpseudo-class:${m}(${h})`)}let g=(o=f.pseudos)==null?void 0:o[m],_=typeof g=="string"?g:r7e[m];if(typeof _=="string"){if(h!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=O9(_);return uv.is(a,S,f,c,p)}if(typeof g=="function")return jM(g,m,h,1),S=>g(S,h)&&a(S);if(m in Iv)return Iv[m](a,h,f,c);if(m in $M){let S=$M[m];return jM(S,m,h,2),T=>S(T,f,h)&&a(T)}throw new Error("Unknown pseudo-class :"+m)}(t,e,n,r,l);case Qe.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 i.getName(o)===a&&t(o)}}case Qe.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let f=o;for(;f=cv(f,i);)if(t(f))return!0;return!1};let a=new WeakSet;return function(o){let f=o;for(;f=cv(f,i);)if(!a.has(f)){if(i.isTag(f)&&t(f))return!0;a.add(f)}return!1}}case"_flexibleDescendant":return function(a){let o=a;do if(t(o))return!0;while(o=cv(o,i));return!1};case Qe.Parent:return function(a){return i.getChildren(a).some(o=>i.isTag(o)&&t(o))};case Qe.Child:return function(a){return(a=i.getParent(a))!=null&&i.isTag(a)&&t(a)};case Qe.Sibling:return function(a){var o=i.getSiblings(a);for(let c=0;c<o.length;c++){var f=o[c];if(s(a,f))break;if(i.isTag(f)&&t(f))return!0}return!1};case Qe.Adjacent:return i.prevElementSibling?function(a){return(a=i.prevElementSibling(a))!=null&&t(a)}:function(a){var o=i.getSiblings(a);let f;for(let p=0;p<o.length;p++){var c=o[p];if(s(a,c))break;i.isTag(c)&&(f=c)}return!!f&&t(f)};case Qe.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function tj(t){return t.type===Qe.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(tj)))}var i7e={type:Qe.Descendant},s7e={type:"_flexibleDescendant"},a7e={type:Qe.Pseudo,name:"scope",data:null};function nj(t,e,n){t.forEach(J9e),n=(s=e.context)!=null?s:n;let r=Array.isArray(n),l=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:o},f){var c=!(f==null||!f.every(p=>{var m=o.isTag(p)&&o.getParent(p);return p===Z$||m&&o.isTag(m)}));for(let p of a){if(!(0<p.length&&Nv(p[0])&&p[0].type!==Qe.Descendant)){if(!c||p.some(tj))continue;p.unshift(i7e)}p.unshift(a7e)}})(t,e,l);else if(t.some(a=>0<a.length&&Nv(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=t.map(a=>{if(2<=a.length){let[o,f]=a;o.type===Qe.Pseudo&&o.name==="scope"&&(r&&f.type===Qe.D
Line truncated
`)}}):{name:r,value:l.replace(BM,`\r
`)}}).toArray()}}),A0=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}},u_=(A0.prototype.cheerio="[cheerio object]",A0.prototype.splice=Array.prototype.splice,A0.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(A0.prototype,V9e,w7e,C7e,k7e,D7e),function(t,e){return(u_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){n.__proto__=r}:function(n,r){for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(n[l]=r[l])}))(t,e)}),L7e=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}u_(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},R0=function(){return(R0=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var l in e=arguments[n])Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t}).apply(this,arguments)},F7e=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]),Ln="\uFFFD",qM=(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"}(P=P||{}),"--"),HM="[CDATA[",VM="doctype",wu="script",M7e="public",$7e="system";function mj(t){return 55296<=t&&t<=57343}function gj(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function yj(t){return 64976<=t&&t<=65007||F7e.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&&($+=" "),this.message=$+(this.message||""),this.firstUpdate=!1,this},b}function f(T){return n.toString.call(T)==="[object Function]"}function c(T){return n.toString.call(T)==="[object Array]"}function p(T){return n.toString.call(T)==="[object String]"}function m(T){return n.toString.call(T)==="[object Object]"}function h(T){var x=function(v){return v?typeof v=="string"?v.split("."):[v]:[]}(T);return function(v){for(var b=v,A=0;A<x.length;A++){var N=x[A];if(!s(b,N))return;b=b[N]}return b}}function g(T){return Array.prototype.slice.call(T)}function _(T,x,v){return Array.prototype.indexOf.call(T||[],x,v)}function S(T){var x,v=[];for(x in T)s(T,x)&&v.push(x);return v}i.hasOwnProp=s,i._prettifyError=function(T,x,v){return(v=v.Update?v:new i.TemplateError(v)).Update(T),x||(T=v,(v=new Error(T.message)).name=T.name),v},Object.setPrototypeOf?Object.setPrototypeOf(o.prototype,Error.prototype):o.prototype=Object.create(Error.prototype,{constructor:{value:o}}),i.TemplateError=o,i.escape=function(T){return T.replace(l,a)},i.isFunction=f,i.isArray=c,i.isString=p,i.isObject=m,i.getAttrGetter=h,i.groupBy=function(T,x,v){for(var b={},A=f(x)?x:h(x),N=0;N<T.length;N++){var O=T[N],k=A(O,N);if(k===void 0&&v===!0)throw new TypeError('groupby: attribute "'+x+'" resolved to undefined');(b[k]||(b[k]=[])).push(O)}return b},i.toArray=g,i.without=function(T){var x=[];if(T)for(var v=T.length,b=g(arguments).slice(1),A=-1;++A<v;)_(b,T[A])===-1&&x.push(T[A]);return x},i.repeat=function(T,x){for(var v="",b=0;b<x;b++)v+=T;return v},i.each=function(T,x,v){if(T!=null){if(e.forEach&&T.forEach===e.forEach)T.forEach(x,v);else if(T.length===+T.length)for(var b=0,A=T.length;b<A;b++)x.call(v,T[b],b,T)}},i.map=function(T,x){var v=[];if(T!=null){if(e.map&&T.map===e.map)return T.map(x);for(var b=0;b<T.length;b++)v[v.length]=x(T[b],b);T.length===+T.length&&(v.length=T.length)}return v},i.asyncIter=function(T,x,v){var b=-1;(function A(){++b<T.length?x(T[b],b,A,v):v()})()},i.asyncFor=function(T,x,v){var b=S(T||{}),A=b.length,N=-1;(function O(){var k=b[++N];N<A?x(k,T[k],N,A,O):v()})()},i.indexOf=_,i.keys=S,i._entries=function(T){return S(T).map(function(x){return[x,T[x]]})},i._values=function(T){return S(T).map(function(x){return T[x]})},i._assign=i.extend=function(T,x){return T=T||{},S(x).forEach(function(v){T[v]=x[v]}),T},i.inOperator=function(T,x){if(c(x)||p(x))return x.indexOf(T)!==-1;if(m(x))return T in x;throw new Error('Cannot use "in" operator to search for "'+T+'" in unexpected types.')}});function qj(){throw new Error("setTimeout has not been defined")}function Hj(){throw new Error("clearTimeout has not been defined")}var as=qj,os=Hj;function Vj(t){if(as===setTimeout)return setTimeout(t,0);if((as===qj||!as)&&setTimeout)return(as=setTimeout)(t,0);try{return as(t,0)}catch{try{return as.call(null,t,0)}catch{return as.call(this,t,0)}}}typeof _3.setTimeout=="function"&&(as=setTimeout),typeof _3.clearTimeout=="function"&&(os=clearTimeout);var ja,b3=[],Bu=!1,o9=-1;function Lfe(){Bu&&ja&&(Bu=!1,ja.length?b3=ja.concat(b3):o9=-1,b3.length)&&zj()}function zj(){if(!Bu){var t=Vj(Lfe);Bu=!0;for(var e=b3.length;e;){for(ja=b3,b3=[];++o9<e;)ja&&ja[o9].run();o9=-1,e=b3.length}ja=null,Bu=!1,function(n){if(os===clearTimeout)return clearTimeout(n);if((os===Hj||!os)&&clearTimeout)return(os=clearTimeout)(n);try{os(n)}catch{try{return os.call(null,n)}catch{return os.call(this,n)}}}(t)}}function Gj(t,e){this.fun=t,this.array=e}function Ga(){}Gj.prototype.run=function(){this.fun.apply(null,this.array)};var Ffe=Ga,Mfe=Ga,$fe=Ga,jfe=Ga,Ufe=Ga,Bfe=Ga,qfe=Ga,Cu=_3.performance||{},Hfe=Cu.now||Cu.mozNow||Cu.msNow||Cu.oNow||Cu.webkitNow||function(){return new Date().getTime()},Vfe=new Date,hs={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];b3.push(new Gj(t,e)),b3.length!==1||Bu||Vj(zj)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ffe,addListener:Mfe,once:$fe,off:jfe,removeListener:Ufe,removeAllListeners:Bfe,emit:qfe,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*Hfe.call(Cu),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-Vfe)/1e3}};function us(){}function yn(){yn.init.call(this)}function Xj(t){return t._maxListeners===void 0?yn.defaultMaxListeners:t._maxListeners}function E$(t,e,n,r){var l,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(l=t._events)?(l.newListener&&(t.emit("newListener",e,n.listener||n),l=t._events),i=l[e]):(l=t._events=new us,t._eventsCount=0),i?(typeof i=="function"?i=l[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),!i.warned&&(r=Xj(t))&&0<r&&i.length>r&&(i.warned=!0,(r=new Error("Possible EventEm
Line truncated
`?this.forward():this.back())),xl(Wj,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,xl(Qj,h,n,r);if(l==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var i="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}i+=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 xl(hU,{body:i,flags:a},n,r)}if(E$.indexOf(l)!==-1){this.forward();var o,c=["==","===","!=","!==","<=",">=","//","**"],f=l+this.current();switch(Ce.indexOf(c,f)!==-1&&(this.forward(),Ce.indexOf(c,(l=f)+this.current())!==-1)&&(l=f+this.current(),this.forward()),l){case"(":o=eU;break;case")":o=tU;break;case"[":o=nU;break;case"]":o=rU;break;case"{":o=lU;break;case"}":o=iU;break;case",":o=aU;break;case":":o=oU;break;case"~":o=uU;break;case"|":o=cU;break;default:o=sU}return xl(o,l,n,r)}if((h=this._extractUntil(v$+E$)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),c=this._extract("0123456789"),xl(fU,h+"."+c,n,r)):xl("int",h,n,r);if(h.match(/^(true|false)$/))return xl(pU,h,n,r);if(h==="none"||h==="null")return xl(X_,h,n,r);if(h)return xl(dU,h,n,r);throw new Error("Unexpected value while parsing: "+h)}var p,m=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,xl(Yj,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,xl(Jj,h,n,r);var h="",g=!1;for(this._matches(this.tags.COMMENT_START)&&(g=!0,h=this._extractString(this.tags.COMMENT_START));(p=this._extractUntil(m))!==null;){if(h+=p,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!g){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=h.length){var v=h.slice(-this.colno);if(/^\s+$/.test(v)&&!(h=h.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!g)throw new Error("unexpected end of comment");h+=this._extractString(this.tags.COMMENT_END);break}h+=this.current(),this.forward()}if(p===null&&g)throw new Error("expected end of comment, got end of file");return xl(g?Zj:Kj,h,n,r)},e._parseString=function(n){this.forward();for(var r="";!this.isFinished()&&this.current()!==n;){var l=this.current();if(l==="\\")switch(this.forward(),this.current()){case"n":r+=`
`?this.forward():this.back())),wl(nU,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,wl(lU,h,n,r);if(l==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var i="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}i+=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 wl(EU,{body:i,flags:a},n,r)}if(A$.indexOf(l)!==-1){this.forward();var o,f=["==","===","!=","!==","<=",">=","//","**"],c=l+this.current();switch(ke.indexOf(f,c)!==-1&&(this.forward(),ke.indexOf(f,(l=c)+this.current())!==-1)&&(l=c+this.current(),this.forward()),l){case"(":o=sU;break;case")":o=aU;break;case"[":o=oU;break;case"]":o=uU;break;case"{":o=cU;break;case"}":o=fU;break;case",":o=dU;break;case":":o=hU;break;case"~":o=mU;break;case"|":o=gU;break;default:o=pU}return wl(o,l,n,r)}if((h=this._extractUntil(w$+A$)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),f=this._extract("0123456789"),wl(yU,h+"."+f,n,r)):wl("int",h,n,r);if(h.match(/^(true|false)$/))return wl(vU,h,n,r);if(h==="none"||h==="null")return wl(Yv,h,n,r);if(h)return wl(_U,h,n,r);throw new Error("Unexpected value while parsing: "+h)}var p,m=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,wl(tU,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,wl(rU,h,n,r);var h="",g=!1;for(this._matches(this.tags.COMMENT_START)&&(g=!0,h=this._extractString(this.tags.COMMENT_START));(p=this._extractUntil(m))!==null;){if(h+=p,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!g){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=h.length){var _=h.slice(-this.colno);if(/^\s+$/.test(_)&&!(h=h.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!g)throw new Error("unexpected end of comment");h+=this._extractString(this.tags.COMMENT_END);break}h+=this.current(),this.forward()}if(p===null&&g)throw new Error("expected end of comment, got end of file");return wl(g?iU:eU,h,n,r)},e._parseString=function(n){this.forward();for(var r="";!this.isFinished()&&this.current()!==n;){var l=this.current();if(l==="\\")switch(this.forward(),this.current()){case"n":r+=`
`))})},r.compileRoot=function(l,i){var s=this,a=(i&&this.fail("compileRoot: root node can't have frame"),i=new m_,this._emitFuncBegin(l,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(l,i),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,[]);(i=l.findAll(V.Block)).forEach(function(o,c){var f=o.name.value;if(a.indexOf(f)!==-1)throw new Error('Block "'+f+'" defined more than once.');a.push(f),s._emitFuncBegin(o,"b_"+f),f=new m_,s._emitLine("var frame = frame.push(true);"),s.compile(o.body,f),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(o,c){o="b_"+o.name.value,s._emitLine(o+": "+o+",")}),this._emitLine(`root:root
};`)},r.compile=function(l,i){var s=this["compile"+l.typename];s?s.call(this,l,i):this.fail("compile: Cannot compile node: "+l.typename,l.lineno,l.colno)},r.getCode=function(){return this.codebuf.join("")},n}(zu.Obj),Fpe={compile:function(s,e,n,r,l){var i=new A$(r,(l=l===void 0?{}:l).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,o){return o(a)},s);return i.compile(Cpe.transform(Ope.parse(s,n,l),e,r)),i.getCode()},Compiler:A$},Mpe=lt(function(t){function e(h,g){return h==null||h===!1?g:h}function n(h){return h!=h}function r(h){var g=(h=e(h,"")).toLowerCase();return it.copySafeness(h,g.charAt(0).toUpperCase()+g.slice(1))}function l(h){if(Ce.isString(h))return h.split("");if(Ce.isObject(h))return Ce._entries(h||{}).map(function(g){return{key:g[0],value:g[1]}});if(Ce.isArray(h))return h;throw new Ce.TemplateError("list filter: type not iterable")}function i(h){return function(g,v,S){var T=this,x=T.env.getTest(v=v===void 0?"truthy":v);return Ce.toArray(g).filter(function(_){return x.call(T,_,S)===h})}}function s(h){return it.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(h,g,v){for(var S=[],T=[],x=0;x<h.length;x++)x%g==0&&T.length&&(S.push(T),T=[]),T.push(h[x]);if(T.length){if(v)for(x=T.length;x<g;x++)T.push(v);S.push(T)}return S},t.capitalize=r,t.center=function(h,g){var v;return(h=e(h,"")).length>=(g=g||80)?h:(g-=h.length,v=Ce.repeat(" ",g/2-g%2),g=Ce.repeat(" ",g/2),it.copySafeness(h,v+h+g))},t.default=function(h,g,v){return v?h||g:h!==void 0?h:g},t.dictsort=function(h,g,v){if(!Ce.isObject(h))throw new Ce.TemplateError("dictsort filter: val must be an object");var S,T,x=[];for(T in h)x.push([T,h[T]]);if(v===void 0||v==="key")S=0;else{if(v!=="value")throw new Ce.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return x.sort(function(_,b){return _=_[S],b=b[S],g||(Ce.isString(_)&&(_=_.toUpperCase()),Ce.isString(b)&&(b=b.toUpperCase())),b<_?1:_===b?0:-1}),x},t.dump=function(h,g){return JSON.stringify(h,null,g)},t.escape=function(h){return h instanceof it.SafeString?h:it.markSafe(Ce.escape((h=h??"").toString()))},t.safe=function(h){return h instanceof it.SafeString?h:it.markSafe((h=h??"").toString())},t.first=function(h){return h[0]},t.forceescape=function(h){return it.markSafe(Ce.escape((h=h??"").toString()))},t.groupby=function(h,g){return Ce.groupBy(h,g,this.env.opts.throwOnUndefined)},t.indent=function(h,x,v){if((h=e(h,""))==="")return"";x=x||4;var S=h.split(`
`))})},r.compileRoot=function(l,i){var s=this,a=(i&&this.fail("compileRoot: root node can't have frame"),i=new yv,this._emitFuncBegin(l,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(l,i),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,[]);(i=l.findAll(V.Block)).forEach(function(o,f){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 yv,s._emitLine("var frame = frame.push(true);"),s.compile(o.body,c),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(o,f){o="b_"+o.name.value,s._emitLine(o+": "+o+",")}),this._emitLine(`root:root
};`)},r.compile=function(l,i){var s=this["compile"+l.typename];s?s.call(this,l,i):this.fail("compile: Cannot compile node: "+l.typename,l.lineno,l.colno)},r.getCode=function(){return this.codebuf.join("")},n}(Xu.Obj),Wpe={compile:function(s,e,n,r,l){var i=new k$(r,(l=l===void 0?{}:l).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,o){return o(a)},s);return i.compile(zpe.transform(qpe.parse(s,n,l),e,r)),i.getCode()},Compiler:k$},Jpe=lt(function(t){function e(h,g){return h==null||h===!1?g:h}function n(h){return h!=h}function r(h){var g=(h=e(h,"")).toLowerCase();return it.copySafeness(h,g.charAt(0).toUpperCase()+g.slice(1))}function l(h){if(ke.isString(h))return h.split("");if(ke.isObject(h))return ke._entries(h||{}).map(function(g){return{key:g[0],value:g[1]}});if(ke.isArray(h))return h;throw new ke.TemplateError("list filter: type not iterable")}function i(h){return function(g,_,S){var T=this,x=T.env.getTest(_=_===void 0?"truthy":_);return ke.toArray(g).filter(function(v){return x.call(T,v,S)===h})}}function s(h){return it.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(h,g,_){for(var S=[],T=[],x=0;x<h.length;x++)x%g==0&&T.length&&(S.push(T),T=[]),T.push(h[x]);if(T.length){if(_)for(x=T.length;x<g;x++)T.push(_);S.push(T)}return S},t.capitalize=r,t.center=function(h,g){var _;return(h=e(h,"")).length>=(g=g||80)?h:(g-=h.length,_=ke.repeat(" ",g/2-g%2),g=ke.repeat(" ",g/2),it.copySafeness(h,_+h+g))},t.default=function(h,g,_){return _?h||g:h!==void 0?h:g},t.dictsort=function(h,g,_){if(!ke.isObject(h))throw new ke.TemplateError("dictsort filter: val must be an object");var S,T,x=[];for(T in h)x.push([T,h[T]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new ke.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return x.sort(function(v,b){return v=v[S],b=b[S],g||(ke.isString(v)&&(v=v.toUpperCase()),ke.isString(b)&&(b=b.toUpperCase())),b<v?1:v===b?0:-1}),x},t.dump=function(h,g){return JSON.stringify(h,null,g)},t.escape=function(h){return h instanceof it.SafeString?h:it.markSafe(ke.escape((h=h??"").toString()))},t.safe=function(h){return h instanceof it.SafeString?h:it.markSafe((h=h??"").toString())},t.first=function(h){return h[0]},t.forceescape=function(h){return it.markSafe(ke.escape((h=h??"").toString()))},t.groupby=function(h,g){return ke.groupBy(h,g,this.env.opts.throwOnUndefined)},t.indent=function(h,x,_){if((h=e(h,""))==="")return"";x=x||4;var S=h.split(`
`):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=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,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);varS=v===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(T){returnT&&T.length}).map(function(T){varx=T.match(a),_=(x=x?x[1]:T).substr(0,g);returnc.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){returnn(h=parseFloat(h))?g:h},it.makeMacro(["value","default","base"],[],function(h,g,v){returnv===void0&&(v=10),n(h=parseInt(h,v))?g:h}));t.int=m,t.d=t.default,t.e=t.escape}),T9={};functionIU(t,e){for(varn=0,r=t.length-1;0<=r;r--){varl=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("..");returnt}var$pe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,g_=function(t){return$pe.exec(t).slice(1)};functiony_(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varr=0<=n?arguments[n]:"/";if(typeofr!="string")thrownewTypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+IU(mv(t.split("/"),function(l){return!!l}),!e).join("/")||"."}functionR$(t){vare=CU(t),n=jpe(t,-1)==="/";return(t=(t=IU(mv(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionCU(t){returnt.charAt(0)==="/"}varUu={extname:function(t){returng_(t)[3]},basename:function(t,e){returnt=g_(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=g_(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(c){for(varf=0;f<c.length&&c[f]==="";f++);for(varp=c.length-1;0<=p&&c[p]==="";p--);returnp<f?[]:c.slice(f,p-f+1)}t=y_(t).substr(1),e=y_(e).substr(1);for(varr=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(varo=[],a=s;a<r.length;a++)o.push("..");return(o=o.concat(l.slice(s))).join("/")},join:function(){returnR$(mv(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:CU,normalize:R$,resolve:y_};functionmv(t,e){if(t.filter)returnt.filter(e);for(varn=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);returnn}varjpe="ab".substr(-1)==="b"?function(t,e,n){returnt.substr(e,n)}:function(t,e,n){returne<0&&(e=t.length+e),t.substr(e,n)};functionkU(t,e){return(kU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}vargv=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),kU(r.prototype.constructor=r,e);varr=n.prototype;returnr.resolve=function(l,i){returnUu.resolve(Uu.dirname(l),i)},r.isRelative=function(l){returnl.indexOf("./")===0||l.indexOf("../")===0},n}(zu.EmitterObj);functionPU(t,e){return(PU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varUpe=function(t){vare,n;functionr(l){vari;return(i=t.call(this)||this).precompiled=l||{},i}returnn=t,(e=r).prototype=Object.create(n.prototype),PU(e.prototype.constructor=e,n),r.prototype.getSource=function(l){returnthis.precompiled[l]?{src:{type:"code",obj:this.precompiled[l]},path:l}:null},r}(gv);functionDU(t,e){t.prototype=Object.create(e.prototype),LU(t.prototype.constructor=t,e)}functionLU(t,e){return(LU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varBpe=Upe,qpe=function(t){functione(n,r){varl=t.call(this)||this;returntypeofr=="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(Uu.normalize)):l.searchPaths=["."],r.watch,l}returnDU(e,t),e.prototype.getSource=function(n){for(varr=null,l=this.searchPaths,i=0;i<l.length;i++){vars=Uu.resoLine truncated
`):_.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,_,S){var T=h;return(h=e(h,"")).length<=(g=g||255)?h:(h=_?h.substring(0,g):((_=h.lastIndexOf(" ",g))===-1&&(_=g),h.substring(0,_)),it.copySafeness(T,h+=S??"..."))},t.upper=function(h){return(h=e(h,"")).toUpperCase()},t.urlencode=function(h){var g=encodeURIComponent;return ke.isString(h)?g(h):(ke.isArray(h)?h:ke._entries(h)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var a=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,o=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,f=/^https?:\/\/.*$/,c=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(h,g,_){n(g)&&(g=1/0);varS=_===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(T){returnT&&T.length}).map(function(T){varx=T.match(a),v=(x=x?x[1]:T).substr(0,g);returnf.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":c.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":o.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</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){returnn(h=parseFloat(h))?g:h},it.makeMacro(["value","default","base"],[],function(h,g,_){return_===void0&&(_=10),n(h=parseInt(h,_))?g:h}));t.int=m,t.d=t.default,t.e=t.escape}),x9={};functionFU(t,e){for(varn=0,r=t.length-1;0<=r;r--){varl=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("..");returnt}varQpe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,vv=function(t){returnQpe.exec(t).slice(1)};function_v(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varr=0<=n?arguments[n]:"/";if(typeofr!="string")thrownewTypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+FU(y_(t.split("/"),function(l){return!!l}),!e).join("/")||"."}functionP$(t){vare=MU(t),n=Zpe(t,-1)==="/";return(t=(t=FU(y_(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionMU(t){returnt.charAt(0)==="/"}varqu={extname:function(t){returnvv(t)[3]},basename:function(t,e){returnt=vv(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=vv(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(f){for(varc=0;c<f.length&&f[c]==="";c++);for(varp=f.length-1;0<=p&&f[p]==="";p--);returnp<c?[]:f.slice(c,p-c+1)}t=_v(t).substr(1),e=_v(e).substr(1);for(varr=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(varo=[],a=s;a<r.length;a++)o.push("..");return(o=o.concat(l.slice(s))).join("/")},join:function(){returnP$(y_(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:MU,normalize:P$,resolve:_v};functiony_(t,e){if(t.filter)returnt.filter(e);for(varn=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);returnn}varZpe="ab".substr(-1)==="b"?function(t,e,n){returnt.substr(e,n)}:function(t,e,n){returne<0&&(e=t.length+e),t.substr(e,n)};function$U(t,e){return($U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varv_=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),$U(r.prototype.constructor=r,e);varr=n.prototype;returnr.resolve=function(l,i){returnqu.resolve(qu.dirname(l),i)},r.isRelative=function(l){returnl.indexOf("./")===0||l.indexOf("../")===0},n}(Xu.EmitterObj);functionjU(t,e){return(jU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varede=function(t){vare,n;functionr(l){vari;return(i=t.call(this)||this).precompiled=l||{},i}returnn=t,(e=r).prototype=Object.create(n.prototype),jU(e.prototype.constructor=e,n),r.prototype.getSource=function(l){returnthis.precompiled[l]?{src:{type:"code",obj:this.precompiled[l]},path:l}:null},r}(v_);functionUU(t,e){t.prototype=Object.create(e.prototype),BU(t.prototype.constructor=t,e)}functionBU(t,e){return(BU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}vartde=ede,nde=function(t){functione(n,r){varl=t.call(this)||this;returntypeofr=="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(qu.normalize)):l.searchPaths=["."],r.watch,l}returnUU(e,t),e.prototype.getSource=function(n){for(varr=null,l=this.searchPaths,i=0;i<l.length;i++){vars=qu.resoLine truncated
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let c=mde(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=gde(n,e);return r.source=t,r}var yde=["#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"],_de=["#EXT-X-MEDIA"],Nv=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(yde.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(_de.some(r=>n.startsWith(r)))continue;De(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function Pv(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 vde(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 iB(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=${nB(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function Ede(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=${Pv(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(G9(l))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let l of e.video)t.push(G9(l))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let l of e.subtitles)t.push(G9(l))}if(sde().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(G9(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 G9(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 bde(t,e,n,r,l=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let c=iB(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="${wv(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:${xv(e.programDateTime)}`),e.dateRange&&t.push(function(c){let f=[`ID="${c.id}"`];c.start&&f.push(`START-DATE="${xv(c.start)}"`),c.end&&f.push(`END-DATE="${xv(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}=${nB(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 aB="hls_cache",s7=[],Ga={},e5={},za={},i7="";function Tde(t,e){if(s7.push(t),Ga[t]=e,s7.length>5){let n=s7.shift();Sde(n)}}function Sde(t){delete Ga[t],delete s7[t],new JSFile(aB+"/"+t).delete()}function xde(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Dv(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Dv(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Dv(t,n.key.uri));return e}async function oB(t,e){let n=md5X(t);if(Ga[n])return Ga[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=xde(l,lB(i));return Tde(n,{code:r.code,plist:s,key:n,headers:r.headers}),Ga[n]}return{}}async function uB(t,e,n){if(!Ga[t])return{};let l=Ga[t].plist.segments,i=!za[t];if(i){za[t]={};for(let f of l){let p=md5X(f.uri+f.mediaSequenceNumber.toString());za[t][p]={file:aB+"/"+t+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in za[t]){let p=za[t][f];p.index>=e?p.order=p.index-e:p.order=l.length-e+p.index}i&&wde(t,5,n);let s=l[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),o=za[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&&cB(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 cB(t,e,n){if(e.state>=0||!e5[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 wde(t,e,n){i7&&i7!=t&&delete e5[i7],i7=t,e5[t]=!0;for(let r=0;r<e&&e5[t];r++)new Promise(function(l,i){(async function s(){if(!e5[t]){l();return}let a=ke.pickBy(za[t],function(c){return c.state==-1}),o=ke.minBy(Object.values(a),function(c){return c.order});if(!o){l();return}await cB(t,o,n),setTimeout(s,5)})()})}function Dv(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 fB(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),l=n[4];e.push(`<dp="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${l}]]></d>`)}),String.raw`<?xmlversion="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>"}vara7=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newSi(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Ci,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,r,l,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),gs(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,r,l,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,r,l,i,s,a){returna.headers.location!==void0?l?(awaitthis.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):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),awaitthis.reconnnect(e,n,r,l,i,s))}asyncfetch(e,n,r,l=!1,i=!1,s=0){leta=z9(n),o=e;ke.isEmpty(a)||(o=e+"?"+a);letc=newz0(o),f;returnf=awaitreq(c.toString(),{method:"get",headers:r,buffer:s,data:null}),f.code===200||f.code===302||f.code===301||i?awaitthis.getResponse(e,n,r,l,i,s,f):(awaitthis.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)}`),awaitthis.reconnnect(e,n,r,l,i,s))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letr=awaitthis.fetch(e,null,n);if(ke.isEmpty(r))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnvr(r)}asyncparseVodShorLine truncated
`).forEach(function(s){l=s.indexOf(":"),n=s.substring(0,l).trim().toLowerCase(),r=s.substring(l+1).trim(),!(!n||e[n]&&cye[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var yV=Symbol("internals");function f5(t){return t&&String(t).trim().toLowerCase()}function P7(t){return t===!1||t==null?t:G.isArray(t)?t.map(P7):String(t)}function fye(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 pye=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionRE(t,e,n,r,l){if(G.isFunction(r))returnr.call(this,e,n);if(l&&(e=n),!!G.isString(e)){if(G.isString(r))returne.indexOf(r)!==-1;if(G.isRegExp(r))returnr.test(e)}}functiondye(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}functionhye(t,e){letn=G.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(l,i,s){returnthis[r].call(this,e,l,i,s)},configurable:!0})})}varp4=class{constructor(e){e&&this.set(e)}set(e,n,r){letl=this;functioni(a,o,c){letf=f5(o);if(!f)thrownewError("header name must be a non-empty string");letp=G.findKey(l,f);(!p||l[p]===void0||c===!0||c===void0&&l[p]!==!1)&&(l[p||o]=P7(a))}lets=(a,o)=>G.forEach(a,(c,f)=>i(c,f,o));returnG.isPlainObject(e)||einstanceofthis.constructor?s(e,n):G.isString(e)&&(e=e.trim())&&!pye(e)?s(gV(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=f5(e),e){letr=G.findKey(this,e);if(r){letl=this[r];if(!n)returnl;if(n===!0)returnfye(l);if(G.isFunction(n))returnn.call(this,l,r);if(G.isRegExp(n))returnn.exec(l);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=f5(e),e){letr=G.findKey(this,e);return!!(r&&this[r]!==void0&&(!n||RE(this,this[r],r,n)))}return!1}delete(e,n){letr=this,l=!1;functioni(s){if(s=f5(s),s){leta=G.findKey(r,s);a&&(!n||RE(r,r[a],a,n))&&(deleter[a],l=!0)}}returnG.isArray(e)?e.forEach(i):i(e),l}clear(e){letn=Object.keys(this),r=n.length,l=!1;for(;r--;){leti=n[r];(!e||RE(this,this[i],i,e,!0))&&(deletethis[i],l=!0)}returnl}normalize(e){letn=this,r={};returnG.forEach(this,(l,i)=>{lets=G.findKey(r,i);if(s){n[s]=P7(l),deleten[i];return}leta=e?dye(i):String(i).trim();a!==i&&deleten[i],n[a]=P7(l),r[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnG.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=e&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,Fye=E5.encode(Ts),Mye=2,zE=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)}"`:""}${Ts}`;l?n=E5.encode(String(n).replace(/\r?\n|\r\n?/g,Ts)):i+=`Content-Type:${n.type||"application/octet-stream"}${Ts}`,this.headers=E5.encode(i+Ts),this.contentLength=l?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+Mye,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;G.isTypedArray(e)?yield e:yield*F7(e),yield Fye}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},$ye=(t,e,n)=>{let{tag:r="form-data-boundary",size:l=25,boundary:i=r+"-"+G.generateString(l,Lye)}=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=E5.encode("--"+i+Ts),a=E5.encode("--"+i+"--"+Ts+Ts),o=a.byteLength,c=Array.from(t.entries()).map(([p,m])=>{let h=new zE(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),kV.Readable.from(async function*(){for(let p of c)yield s,yield*p.encode();yield a}())},PV=$ye;var DV=yr(require("stream"),1),GE=class extends DV.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)}},LV=GE;var jye=(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,FV=jye;var MV={flush:S3.default.constants.Z_SYNC_FLUSH,finishFlush:S3.default.constants.Z_SYNC_FLUSH},Uye={flush:S3.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:S3.default.constants.BROTLI_OPERATION_FLUSH},$V=G.isFunction(S3.default.createBrotliDecompress),{http:Bye,https:qye}=zV.default,Hye=/https:?/,jV=Sr.protocols.map(t=>t+":");function Vye(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function XV(t,e,n){let r=e;if(!r&&r!==!1){let l=(0,BV.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){XV(i,e,i.href)}}var zye=typeof process<"u"&&G.kindOf(process)==="process",Gye=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)}),Xye=({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)}},UV=(t,e)=>Xye(G.isObject(t)?t:{address:t,family:e}),KV=zye&&function(e){return Gye(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=FV(a,ge=>G.isArray(ge)?ge:[ge]);a=(ge,q,re)=>{se(ge,q,(ne,ee,Dn)=>{if(ne)return re(ne);let xt=G.isArray(ee)?ee.map(Ve=>UV(Ve)):[UV(ee,Dn)];q.all?re(ne,xt):re(ne,xt[0].address,xt[0].family)})}}let v=new GV.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 W2(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=Qa(e.baseURL,e.url),_=new URL(x,"http://localhost"),b=_.protocol||jV[0];if(b==="data:"){let se;if(p!=="GET")return bs(r,l,{status:405,statusText:"method not allowed",headers:{},config:e});try{se=qE(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=to.default.Readable.from(se)),bs(r,l,{data:se,status:200,statusText:"OK",headers:new xr,config:e})}if(jV.indexOf(b)===-1)return l(new Le("Unsupported protocol "+b,Le.ERR_BAD_REQUEST,e));let A=xr.from(e.headers).normalize();A.set("User-Agent","axios/"+eo,!1);let N=e.onDownloadProgress,O=e.onUploadProgress,k=e.maxRate,$,L;if(G.isSpecCompliantForm(s)){let se=A.getContentType(/boundary=([-_\w\d]{10,70})/i);s=PV(s,ge=>{A.set(ge)},{tag:`axios-${eo}-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 VV.default.promisify(s.getLength).call(s);
Line truncated
`+i.map(ZV).join(`
`):" "+ZV(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:XE};function KE(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new W2(null,t)}function $7(t){return KE(t),t.headers=xr.from(t.headers),t.data=p5.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),M7.getAdapter(t.adapter||f4.adapter)(t).then(function(r){return KE(t),r.data=p5.call(t,t.transformResponse,r),r.headers=xr.from(r.headers),r},function(r){return d5(r)||(KE(t),r&&r.response&&(r.response.data=p5.call(t,t.transformResponse,r.response),r.response.headers=xr.from(r.response.headers))),Promise.reject(r)})}var ez=t=>t instanceof xr?t.toJSON():t;function x3(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(ez(c),ez(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 YE={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{YE[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var tz={};YE.transitional=function(e,n,r){function l(i,s){return"[Axios v"+eo+"] 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&&!tz[s]&&(tz[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 Wye(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 j7={assertOptions:Wye,validators:YE};var Ss=j7.validators,h4=class{constructor(e){this.defaults=e,this.interceptors={request:new SE,response:new SE}}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+=`
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let f=Nde(o,i);f&&s.push(f)}}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=Ide(n,e);return r.source=t,r}var Cde=["#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"],kde=["#EXT-X-MEDIA"],C_=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(Cde.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(kde.some(r=>n.startsWith(r)))continue;De(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function L_(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 Pde(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 fB(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=${oB(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function Dde(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=${L_(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(K9(l))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let l of e.video)t.push(K9(l))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let l of e.subtitles)t.push(K9(l))}if(Ede().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(K9(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 K9(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 Lde(t,e,n,r,l=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let f=fB(e.key);f!==n&&(t.push(f),n=f)}if(e.map){let f=function(c){let p=[`URI="${c.uri}"`];return c.byterange&&p.push(`BYTERANGE="${R_(c.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);f!==r&&(t.push(f),r=f)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${A_(e.programDateTime)}`),e.dateRange&&t.push(function(f){let c=[`ID="${f.id}"`];f.start&&c.push(`START-DATE="${A_(f.start)}"`),f.end&&c.push(`END-DATE="${A_(f.end)}"`),f.duration&&c.push(`DURATION=${f.duration}`),f.plannedDuration&&c.push(`PLANNED-DURATION=${f.plannedDuration}`),f.classId&&c.push(`CLASS="${f.classId}"`),f.endOnNext&&c.push("END-ON-NEXT=YES");for(let p of Object.keys(f.attributes))p.startsWith("X-")?typeof f.attributes[p]=="number"?c.push(`${p}=${f.attributes[p]}`):c.push(`${p}="${f.attributes[p]}"`):p.startsWith("SCTE35-")&&c.push(`${p}=${oB(f.attributes[p])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(f,c){let p="";for(let m of c)if(m.type==="OUT")p="OUT",f.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")p="IN",f.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let h=m.value?`:${m.value}`:"";f.push(`#${m.tagName}${h}`)}return p}(t,e.markers)),e.parts.length>0&&(s=function(f,c){let p=!1;for(let m of c)if(m.hint){let h=[];if(h.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:g,length:_}=m.byterange;h.push(`BYTERANGE-START=${g}`),_&&h.push(`BYTERANGE-LENGTH=${_}`)}f.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),p=!0}else{let h=[];h.push(
Line truncated
`)}var dB="hls_cache",o7=[],Ka={},n5={},Xa={},a7="";function Fde(t,e){if(o7.push(t),Ka[t]=e,o7.length>5){let n=o7.shift();Mde(n)}}function Mde(t){delete Ka[t],delete o7[t],new JSFile(dB+"/"+t).delete()}function $de(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=F_(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=F_(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=F_(t,n.key.uri));return e}async function hB(t,e){let n=md5X(t);if(Ka[n])return Ka[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=$de(l,cB(i));return Fde(n,{code:r.code,plist:s,key:n,headers:r.headers}),Ka[n]}return{}}async function mB(t,e,n){if(!Ka[t])return{};let l=Ka[t].plist.segments,i=!Xa[t];if(i){Xa[t]={};for(let c of l){let p=md5X(c.uri+c.mediaSequenceNumber.toString());Xa[t][p]={file:dB+"/"+t+"/"+p,uri:c.uri,key:p,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Xa[t]){let p=Xa[t][c];p.index>=e?p.order=p.index-e:p.order=l.length-e+p.index}i&&jde(t,5,n);let s=l[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),o=Xa[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&&gB(t,o,n),o.state==0){var f=new JSProxyStream;f.head(200,{connection:"close","content-type":"video/mp2t"});let c=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 _=await h.size();if(_>c){var S=await h.read(_-c,c);await f.write(S),c=_}if(o.state==1||o.state<0){f.done(),await h.close(),await h.delete(),o.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:f}}}async function gB(t,e,n){if(e.state>=0||!n5[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 jde(t,e,n){a7&&a7!=t&&delete n5[a7],a7=t,n5[t]=!0;for(let r=0;r<e&&n5[t];r++)new Promise(function(l,i){(async function s(){if(!n5[t]){l();return}let a=we.pickBy(Xa[t],function(f){return f.state==-1}),o=we.minBy(Object.values(a),function(f){return f.order});if(!o){l();return}await gB(t,o,n),setTimeout(s,5)})()})}function F_(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 yB(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),l=n[4];e.push(`<dp="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${l}]]></d>`)}),String.raw`<?xmlversion="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>"}varu7=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newxi(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":ki,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,r,l,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),ys(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,r,l,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,r,l,i,s,a){returna.headers.location!==void0?l?(awaitthis.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):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),awaitthis.reconnnect(e,n,r,l,i,s))}asyncfetch(e,n,r,l=!1,i=!1,s=0){leta=X9(n),o=e;we.isEmpty(a)||(o=e+"?"+a);letf=newX0(o),c;returnc=awaitreq(f.toString(),{method:"get",headers:r,buffer:s,data:null}),c.code===200||c.code===302||c.code===301||i?awaitthis.getResponse(e,n,r,l,i,s,c):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${f},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),awaitthis.reconnnect(e,n,r,l,i,s))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letr=awaitthis.fetch(e,null,n);if(we.isEmpty(r))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnbr(r)}asyncparseVodShorLine truncated
`).forEach(function(s){l=s.indexOf(":"),n=s.substring(0,l).trim().toLowerCase(),r=s.substring(l+1).trim(),!(!n||e[n]&&xye[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var SV=Symbol("internals");function d5(t){return t&&String(t).trim().toLowerCase()}function L7(t){return t===!1||t==null?t:G.isArray(t)?t.map(L7):String(t)}function wye(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 Aye=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionIE(t,e,n,r,l){if(G.isFunction(r))returnr.call(this,e,n);if(l&&(e=n),!!G.isString(e)){if(G.isString(r))returne.indexOf(r)!==-1;if(G.isRegExp(r))returnr.test(e)}}functionRye(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}functionOye(t,e){letn=G.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(l,i,s){returnthis[r].call(this,e,l,i,s)},configurable:!0})})}varh4=class{constructor(e){e&&this.set(e)}set(e,n,r){letl=this;functioni(a,o,f){letc=d5(o);if(!c)thrownewError("header name must be a non-empty string");letp=G.findKey(l,c);(!p||l[p]===void0||f===!0||f===void0&&l[p]!==!1)&&(l[p||o]=L7(a))}lets=(a,o)=>G.forEach(a,(f,c)=>i(f,c,o));returnG.isPlainObject(e)||einstanceofthis.constructor?s(e,n):G.isString(e)&&(e=e.trim())&&!Aye(e)?s(TV(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=d5(e),e){letr=G.findKey(this,e);if(r){letl=this[r];if(!n)returnl;if(n===!0)returnwye(l);if(G.isFunction(n))returnn.call(this,l,r);if(G.isRegExp(n))returnn.exec(l);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=d5(e),e){letr=G.findKey(this,e);return!!(r&&this[r]!==void0&&(!n||IE(this,this[r],r,n)))}return!1}delete(e,n){letr=this,l=!1;functioni(s){if(s=d5(s),s){leta=G.findKey(r,s);a&&(!n||IE(r,r[a],a,n))&&(deleter[a],l=!0)}}returnG.isArray(e)?e.forEach(i):i(e),l}clear(e){letn=Object.keys(this),r=n.length,l=!1;for(;r--;){leti=n[r];(!e||IE(this,this[i],i,e,!0))&&(deletethis[i],l=!0)}returnl}normalize(e){letn=this,r={};returnG.forEach(this,(l,i)=>{lets=G.findKey(r,i);if(s){n[s]=L7(l),deleten[i];return}leta=e?Rye(i):String(i).trim();a!==i&&deleten[i],n[a]=L7(l),r[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnG.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=e&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,Wye=T5.encode(Ss),Jye=2,KE=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)}"`:""}${Ss}`;l?n=T5.encode(String(n).replace(/\r?\n|\r\n?/g,Ss)):i+=`Content-Type:${n.type||"application/octet-stream"}${Ss}`,this.headers=T5.encode(i+Ss),this.contentLength=l?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+Jye,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;G.isTypedArray(e)?yield e:yield*$7(e),yield Wye}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},Qye=(t,e,n)=>{let{tag:r="form-data-boundary",size:l=25,boundary:i=r+"-"+G.generateString(l,Yye)}=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=T5.encode("--"+i+Ss),a=T5.encode("--"+i+"--"+Ss+Ss),o=a.byteLength,f=Array.from(t.entries()).map(([p,m])=>{let h=new KE(p,m);return o+=h.size,h});o+=s.byteLength*f.length,o=G.toFiniteNumber(o);let c={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(o)&&(c["Content-Length"]=o),e&&e(c),$V.Readable.from(async function*(){for(let p of f)yield s,yield*p.encode();yield a}())},jV=Qye;var UV=_r(require("stream"),1),YE=class extends UV.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)}},BV=YE;var Zye=(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,qV=Zye;var HV={flush:x3.default.constants.Z_SYNC_FLUSH,finishFlush:x3.default.constants.Z_SYNC_FLUSH},eve={flush:x3.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:x3.default.constants.BROTLI_OPERATION_FLUSH},VV=G.isFunction(x3.default.createBrotliDecompress),{http:tve,https:nve}=JV.default,rve=/https:?/,zV=wr.protocols.map(t=>t+":");function lve(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function ZV(t,e,n){let r=e;if(!r&&r!==!1){let l=(0,XV.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){ZV(i,e,i.href)}}var ive=typeof process<"u"&&G.kindOf(process)==="process",sve=t=>new Promise((e,n)=>{let r,l,i=(o,f)=>{l||(l=!0,r&&r(o,f))},s=o=>{i(o),e(o)},a=o=>{i(o,!0),n(o)};t(s,a,o=>r=o).catch(a)}),ave=({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)}},GV=(t,e)=>ave(G.isObject(t)?t:{address:t,family:e}),ez=ive&&function(e){return sve(async function(r,l,i){let{data:s,lookup:a,family:o}=e,{responseType:f,responseEncoding:c}=e,p=e.method.toUpperCase(),m,h=!1,g;if(a){let se=qV(a,ge=>G.isArray(ge)?ge:[ge]);a=(ge,q,re)=>{se(ge,q,(ne,ee,Fn)=>{if(ne)return re(ne);let xt=G.isArray(ee)?ee.map(Ve=>GV(Ve)):[GV(ee,Fn)];q.all?re(ne,xt):re(ne,xt[0].address,xt[0].family)})}}let _=new QV.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),_.removeAllListeners()};i((se,ge)=>{m=!0,ge&&(h=!0,S())});function T(se){_.emit("abort",!se||se.type?new J2(null,e,g):se)}_.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=eo(e.baseURL,e.url),v=new URL(x,"http://localhost"),b=v.protocol||zV[0];if(b==="data:"){let se;if(p!=="GET")return Ts(r,l,{status:405,statusText:"method not allowed",headers:{},config:e});try{se=zE(e.url,f==="blob",{Blob:e.env&&e.env.Blob})}catch(ge){throw Le.from(ge,Le.ERR_BAD_REQUEST,e)}return f==="text"?(se=se.toString(c),(!c||c==="utf8")&&(se=G.stripBOM(se))):f==="stream"&&(se=ro.default.Readable.from(se)),Ts(r,l,{data:se,status:200,statusText:"OK",headers:new Ar,config:e})}if(zV.indexOf(b)===-1)return l(new Le("Unsupported protocol "+b,Le.ERR_BAD_REQUEST,e));let A=Ar.from(e.headers).normalize();A.set("User-Agent","axios/"+no,!1);let N=e.onDownloadProgress,O=e.onUploadProgress,k=e.maxRate,$,L;if(G.isSpecCompliantForm(s)){let se=A.getContentType(/boundary=([-_\w\d]{10,70})/i);s=jV(s,ge=>{A.set(ge)},{tag:`axios-${no}-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 WV.default.promisify(s.getLength).call(s);
Line truncated
`+i.map(iz).join(`
`):" "+iz(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:WE};function JE(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new J2(null,t)}function U7(t){return JE(t),t.headers=Ar.from(t.headers),t.data=h5.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),j7.getAdapter(t.adapter||d4.adapter)(t).then(function(r){return JE(t),r.data=h5.call(t,t.transformResponse,r),r.headers=Ar.from(r.headers),r},function(r){return m5(r)||(JE(t),r&&r.response&&(r.response.data=h5.call(t,t.transformResponse,r.response),r.response.headers=Ar.from(r.response.headers))),Promise.reject(r)})}var sz=t=>t instanceof Ar?t.toJSON():t;function w3(t,e){e=e||{};let n={};function r(f,c,p){return G.isPlainObject(f)&&G.isPlainObject(c)?G.merge.call({caseless:p},f,c):G.isPlainObject(c)?G.merge({},c):G.isArray(c)?c.slice():c}function l(f,c,p){if(G.isUndefined(c)){if(!G.isUndefined(f))return r(void 0,f,p)}else return r(f,c,p)}function i(f,c){if(!G.isUndefined(c))return r(void 0,c)}function s(f,c){if(G.isUndefined(c)){if(!G.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function a(f,c,p){if(p in e)return r(f,c);if(p in t)return r(void 0,f)}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:(f,c)=>l(sz(f),sz(c),!0)};return G.forEach(Object.keys(Object.assign({},t,e)),function(c){let p=o[c]||l,m=p(t[c],e[c],c);G.isUndefined(m)&&p!==a||(n[c]=m)}),n}var QE={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{QE[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var az={};QE.transitional=function(e,n,r){function l(i,s){return"[Axios v"+no+"] 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&&!az[s]&&(az[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 cve(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 B7={assertOptions:cve,validators:QE};var xs=B7.validators,g4=class{constructor(e){this.defaults=e,this.interceptors={request:new AE,response:new AE}}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+=`
varEse=Object.create;varN8=Object.defineProperty;varxse=Object.getOwnPropertyDescriptor;varbse=Object.getOwnPropertyNames;varwse=Object.getPrototypeOf,Sse=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),IO=(t,e)=>{for(varnine)N8(t,n,{get:e[n],enumerable:!0})},RO=(t,e,n,r)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofbse(e))!Sse.call(t,i)&&i!==n&&N8(t,i,{get:()=>e[i],enumerable:!(r=xse(e,i))||r.enumerable});returnt};varDr=(t,e,n)=>(n=t!=null?Ese(wse(t)):{},RO(e||!t||!t.__esModule?N8(n,"default",{value:t,enumerable:!0}):n,t)),Tse=t=>RO(N8({},"__esModule",{value:!0}),t);varDO=k((WDe,kO)=>{"use strict";functionAse(t){vare=newt,n=e;functionr(){vars=e;returns.next?e=s.next:(e=newt,n=e),s.next=null,s}functioni(s){n.next=s,n=s}return{get:r,release:i}}kO.exports=Ase});varOm=k((XDe,Cm)=>{"use strict";varCse=DO();functionPO(t,e,n){if(typeoft=="function"&&(n=e,e=t,t=null),!(n>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");varr=Cse(Ose),i=null,s=null,l=0,a=null,o={push:x,drain:hl,saturated:hl,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(S){if(!(S>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=S,!o.paused)for(;i&&l<n;)l++,_()},running:u,resume:h,idle:m,length:f,getQueue:d,unshift:b,empty:hl,kill:E,killAndDrain:v,error:g};returno;functionu(){returnl}functionc(){o.paused=!0}functionf(){for(varS=i,A=0;S;)S=S.next,A++;returnA}functiond(){for(varS=i,A=[];S;)A.push(S.value),S=S.next;returnA}functionh(){if(o.paused)for(o.paused=!1;i&&l<n;)l++,_()}functionm(){returnl===0&&o.length()===0}functionx(S,A){varC=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||hl,C.errorHandler=a,l>=n||o.paused?s?(s.next=C,s=C):(i=C,s=C,o.saturated()):(l++,e.call(t,C.value,C.worked))}functionb(S,A){varC=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||hl,C.errorHandler=a,l>=n||o.paused?i?(C.next=i,i=C):(i=C,s=C,o.saturated()):(l++,e.call(t,C.value,C.worked))}function_(S){S&&r.release(S);varA=i;A&&l<=n?o.paused?l--:(s===i&&(s=null),i=A.next,A.next=null,e.call(t,A.value,A.worked),s===null&&o.empty()):--l===0&&o.drain()}functionE(){i=null,s=null,o.drain=hl}functionv(){i=null,s=null,o.drain(),o.drain=hl}functiong(S){a=S}}functionhl(){}functionOse(){this.value=null,this.callback=hl,this.next=null,this.release=hl,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,r){vari=t.callback,s=t.errorHandler,l=t.value;t.value=null,t.callback=hl,t.errorHandler&&s(n,l),i.call(t.context,n,r),t.release(t)}}functionNse(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionr(c,f){e.call(this,c).then(function(d){f(null,d)},f)}vari=PO(t,r,n),s=i.push,l=i.unshift;returni.push=a,i.unshift=o,i.drained=u,i;functiona(c){varf=newPromise(function(d,h){s(c,function(m,x){if(m){h(m);return}d(x)})});returnf.catch(hl),f}functiono(c){varf=newPromise(function(d,h){l(c,function(m,x){if(m){h(m);return}d(x)})});returnf.catch(hl),f}functionu(){if(i.idle())returnnewPromise(function(d){d()});varc=i.drain,f=newPromise(function(d){i.drain=function(){c(),d()}});returnf}}Cm.exports=PO;Cm.exports.promise=Nse});varIm=k((YDe,LO)=>{"use strict";var{inherits:Ise,format:Nm}=require("util");functionB3(t,e,n=Error){if(!t)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functionr(i,s,l){if(!new.target)returnnewr(i,s,l);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",i&&s&&l?this.message=Nm(e,i,s,l):i&&s?this.message=Nm(e,i,s):i?this.message=Nm(e,i):this.message=e}returnr.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Ise(r,n),r}LO.exports={createError:B3,AVV_ERR_EXPOSE_ALREADY_DEFINED:B3("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:B3("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:B3("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:B3("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:B3("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:B3("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varBO=k((QDe,FO)=>{FO.exports=functiont(e,n,r){n===void0&&(n=""),r||(r={});vari=function(o){varu={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnr.unicode===!1?u[o]:o};typeofe=="string"&&(e={label:e});vars=e.nodes||[],l=(e.label||"").split(`
varDse=Object.create;varR8=Object.defineProperty;varPse=Object.getOwnPropertyDescriptor;varLse=Object.getOwnPropertyNames;varFse=Object.getPrototypeOf,Bse=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),FO=(t,e)=>{for(varnine)R8(t,n,{get:e[n],enumerable:!0})},BO=(t,e,n,r)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofLse(e))!Bse.call(t,i)&&i!==n&&R8(t,i,{get:()=>e[i],enumerable:!(r=Pse(e,i))||r.enumerable});returnt};varPr=(t,e,n)=>(n=t!=null?Dse(Fse(t)):{},BO(e||!t||!t.__esModule?R8(n,"default",{value:t,enumerable:!0}):n,t)),jse=t=>BO(R8({},"__esModule",{value:!0}),t);varUO=k((uPe,jO)=>{"use strict";functionUse(t){vare=newt,n=e;functionr(){vars=e;returns.next?e=s.next:(e=newt,n=e),s.next=null,s}functioni(s){n.next=s,n=s}return{get:r,release:i}}jO.exports=Use});varIm=k((cPe,Nm)=>{"use strict";varMse=UO();functionMO(t,e,n){if(typeoft=="function"&&(n=e,e=t,t=null),!(n>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");varr=Mse($se),i=null,s=null,l=0,a=null,o={push:x,drain:dl,saturated:dl,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(S){if(!(S>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=S,!o.paused)for(;i&&l<n;)l++,_()},running:u,resume:h,idle:m,length:f,getQueue:d,unshift:b,empty:dl,kill:E,killAndDrain:v,error:g};returno;functionu(){returnl}functionc(){o.paused=!0}functionf(){for(varS=i,A=0;S;)S=S.next,A++;returnA}functiond(){for(varS=i,A=[];S;)A.push(S.value),S=S.next;returnA}functionh(){if(o.paused)for(o.paused=!1;i&&l<n;)l++,_()}functionm(){returnl===0&&o.length()===0}functionx(S,A){varC=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||dl,C.errorHandler=a,l>=n||o.paused?s?(s.next=C,s=C):(i=C,s=C,o.saturated()):(l++,e.call(t,C.value,C.worked))}functionb(S,A){varC=r.get();C.context=t,C.release=_,C.value=S,C.callback=A||dl,C.errorHandler=a,l>=n||o.paused?i?(C.next=i,i=C):(i=C,s=C,o.saturated()):(l++,e.call(t,C.value,C.worked))}function_(S){S&&r.release(S);varA=i;A&&l<=n?o.paused?l--:(s===i&&(s=null),i=A.next,A.next=null,e.call(t,A.value,A.worked),s===null&&o.empty()):--l===0&&o.drain()}functionE(){i=null,s=null,o.drain=dl}functionv(){i=null,s=null,o.drain(),o.drain=dl}functiong(S){a=S}}functiondl(){}function$se(){this.value=null,this.callback=dl,this.next=null,this.release=dl,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,r){vari=t.callback,s=t.errorHandler,l=t.value;t.value=null,t.callback=dl,t.errorHandler&&s(n,l),i.call(t.context,n,r),t.release(t)}}functionHse(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionr(c,f){e.call(this,c).then(function(d){f(null,d)},f)}vari=MO(t,r,n),s=i.push,l=i.unshift;returni.push=a,i.unshift=o,i.drained=u,i;functiona(c){varf=newPromise(function(d,h){s(c,function(m,x){if(m){h(m);return}d(x)})});returnf.catch(dl),f}functiono(c){varf=newPromise(function(d,h){l(c,function(m,x){if(m){h(m);return}d(x)})});returnf.catch(dl),f}functionu(){if(i.idle())returnnewPromise(function(d){d()});varc=i.drain,f=newPromise(function(d){i.drain=function(){c(),d()}});returnf}}Nm.exports=MO;Nm.exports.promise=Hse});varkm=k((fPe,$O)=>{"use strict";var{inherits:qse,format:Rm}=require("util");functionU3(t,e,n=Error){if(!t)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functionr(i,s,l){if(!new.target)returnnewr(i,s,l);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",i&&s&&l?this.message=Rm(e,i,s,l):i&&s?this.message=Rm(e,i,s):i?this.message=Rm(e,i):this.message=e}returnr.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},qse(r,n),r}$O.exports={createError:U3,AVV_ERR_EXPOSE_ALREADY_DEFINED:U3("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:U3("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:U3("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:U3("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:U3("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:U3("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varqO=k((pPe,HO)=>{HO.exports=functiont(e,n,r){n===void0&&(n=""),r||(r={});vari=function(o){varu={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnr.unicode===!1?u[o]:o};typeofe=="string"&&(e={label:e});vars=e.nodes||[],l=(e.label||"").split(`
deps:${n}}`};var N5e={keyword:"dependencies",type:"object",schemaType:"object",error:ga.error,code(t){let[e,n]=I5e(t);qD(t,e),VD(t,n)}};function I5e({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 qD(t,e=t.schema){let{gen:n,data:r,it:i}=t;if(Object.keys(e).length===0)return;let s=n.let("missing");for(let l in e){let a=e[l];if(a.length===0)continue;let o=(0,wc.propertyInData)(n,r,l,i.opts.ownProperties);t.setParams({property:l,depsCount:a.length,deps:a.join(", ")}),i.allErrors?n.if(o,()=>{for(let u of a)(0,wc.checkReportMissingProp)(t,u)}):(n.if((0,yv._)`${o}&&(${(0,wc.checkMissingProp)(t,a,s)})`),(0,wc.reportMissingProp)(t,s),n.else())}}ga.validatePropertyDeps=qD;function VD(t,e=t.schema){let{gen:n,data:r,keyword:i,it:s}=t,l=n.name("valid");for(let a in e)(0,O5e.alwaysValidSchema)(s,e[a])||(n.if((0,wc.propertyInData)(n,r,a,s.opts.ownProperties),()=>{let o=t.subschema({keyword:i,schemaProp:a},l);t.mergeValidEvaluated(o,l)},()=>n.var(l,!0)),t.ok(l))}ga.validateSchemaDeps=VD;ga.default=N5e});var KD=k(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var GD=ht(),R5e=Pt(),k5e={message:"property name must be valid",params:({params:t})=>(0,GD._)`{propertyName:${t.propertyName}}`},D5e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:k5e,code(t){let{gen:e,schema:n,data:r,it:i}=t;if((0,R5e.alwaysValidSchema)(i,n))return;let s=e.name("valid");e.forIn("key",r,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},s),e.if((0,GD.not)(s),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(s)}};gv.default=D5e});var _v=k(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var P9=Ii(),Vl=ht(),P5e=yl(),L9=Pt(),L5e={message:"must NOT have additional properties",params:({params:t})=>(0,Vl._)`{additionalProperty:${t.additionalProperty}}`},F5e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:L5e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,errsCount:s,it:l}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=l;if(l.props=!0,o.removeAdditional!=="all"&&(0,L9.alwaysValidSchema)(l,n))return;let u=(0,P9.allSchemaProperties)(r.properties),c=(0,P9.allSchemaProperties)(r.patternProperties);f(),t.ok((0,Vl._)`${s}===${P5e.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,L9.schemaRefOrVal)(l,r.properties,"properties");_=(0,P9.isOwnProperty)(e,E,b)}else u.length?_=(0,Vl.or)(...u.map(E=>(0,Vl._)`${b}===${E}`)):_=Vl.nil;return c.length&&(_=(0,Vl.or)(_,...c.map(E=>(0,Vl._)`${(0,P9.usePattern)(t,E)}.test(${b})`))),(0,Vl.not)(_)}function h(b){e.code((0,Vl._)`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,L9.alwaysValidSchema)(l,n)){let _=e.name("valid");o.removeAdditional==="failing"?(x(b,_,!1),e.if((0,Vl.not)(_),()=>{t.reset(),h(b)})):(x(b,_),a||e.if((0,Vl.not)(_),()=>e.break()))}}function x(b,_,E){let v={keyword:"additionalProperties",dataProp:b,dataPropType:L9.Type.Str};E===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,_)}}};vv.default=F5e});var XD=k(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});var B5e=R0(),JD=Ii(),Ev=Pt(),WD=_v(),M5e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:s}=t;s.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&WD.default.code(new B5e.KeywordCxt(s,WD.default,"additionalProperties"));let l=(0,JD.allSchemaProperties)(n);for(let f of l)s.definedProperties.add(f);s.opts.unevaluated&&l.length&&s.props!==!0&&(s.props=Ev.mergeEvaluated.props(e,(0,Ev.toHash)(l),s.props));let a=l.filter(f=>!(0,Ev.alwaysValidSchema)(s,n[f]));if(a.length===0)return;let o=e.name("valid");for(let f of a)u(f)?c(f):(e.if((0,JD.propertyInData)(e,i,f,s.opts.ownProperties)),c(f),s.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(o);function u(f){return s.opts.useDefaults&&!s.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},o)}}};xv.default=M5e});var eP=k(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});var YD=Ii(),F9=ht(),QD=Pt(),ZD=Pt(),U5e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:i,it:s}=t,{opts:l}=s,a=(0,YD.allSchemaProperties)(n),o=a.filter(x=>(0,QD.alwaysValidSchema)(s,n[x]));if(a.length===0||o.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let u=l.strictSchema&&!l.allowMatchingProperties&&i.properties,c=e.name("valid");s.props!==!0&&!(s.props instanc
Line truncated
deps:${n}}`};var H5e={keyword:"dependencies",type:"object",schemaType:"object",error:va.error,code(t){let[e,n]=q5e(t);WD(t,e),XD(t,n)}};function q5e({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 WD(t,e=t.schema){let{gen:n,data:r,it:i}=t;if(Object.keys(e).length===0)return;let s=n.let("missing");for(let l in e){let a=e[l];if(a.length===0)continue;let o=(0,Tc.propertyInData)(n,r,l,i.opts.ownProperties);t.setParams({property:l,depsCount:a.length,deps:a.join(", ")}),i.allErrors?n.if(o,()=>{for(let u of a)(0,Tc.checkReportMissingProp)(t,u)}):(n.if((0,vv._)`${o}&&(${(0,Tc.checkMissingProp)(t,a,s)})`),(0,Tc.reportMissingProp)(t,s),n.else())}}va.validatePropertyDeps=WD;function XD(t,e=t.schema){let{gen:n,data:r,keyword:i,it:s}=t,l=n.name("valid");for(let a in e)(0,$5e.alwaysValidSchema)(s,e[a])||(n.if((0,Tc.propertyInData)(n,r,a,s.opts.ownProperties),()=>{let o=t.subschema({keyword:i,schemaProp:a},l);t.mergeValidEvaluated(o,l)},()=>n.var(l,!0)),t.ok(l))}va.validateSchemaDeps=XD;va.default=H5e});var ZD=k(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var QD=ht(),V5e=Pt(),z5e={message:"property name must be valid",params:({params:t})=>(0,QD._)`{propertyName:${t.propertyName}}`},G5e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:z5e,code(t){let{gen:e,schema:n,data:r,it:i}=t;if((0,V5e.alwaysValidSchema)(i,n))return;let s=e.name("valid");e.forIn("key",r,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},s),e.if((0,QD.not)(s),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(s)}};_v.default=G5e});var xv=k(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});var F9=Ri(),zl=ht(),K5e=gl(),B9=Pt(),J5e={message:"must NOT have additional properties",params:({params:t})=>(0,zl._)`{additionalProperty:${t.additionalProperty}}`},W5e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:J5e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,errsCount:s,it:l}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=l;if(l.props=!0,o.removeAdditional!=="all"&&(0,B9.alwaysValidSchema)(l,n))return;let u=(0,F9.allSchemaProperties)(r.properties),c=(0,F9.allSchemaProperties)(r.patternProperties);f(),t.ok((0,zl._)`${s}===${K5e.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,B9.schemaRefOrVal)(l,r.properties,"properties");_=(0,F9.isOwnProperty)(e,E,b)}else u.length?_=(0,zl.or)(...u.map(E=>(0,zl._)`${b}===${E}`)):_=zl.nil;return c.length&&(_=(0,zl.or)(_,...c.map(E=>(0,zl._)`${(0,F9.usePattern)(t,E)}.test(${b})`))),(0,zl.not)(_)}function h(b){e.code((0,zl._)`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,B9.alwaysValidSchema)(l,n)){let _=e.name("valid");o.removeAdditional==="failing"?(x(b,_,!1),e.if((0,zl.not)(_),()=>{t.reset(),h(b)})):(x(b,_),a||e.if((0,zl.not)(_),()=>e.break()))}}function x(b,_,E){let v={keyword:"additionalProperties",dataProp:b,dataPropType:B9.Type.Str};E===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,_)}}};Ev.default=W5e});var nP=k(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var X5e=D0(),eP=Ri(),bv=Pt(),tP=xv(),Y5e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:s}=t;s.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&tP.default.code(new X5e.KeywordCxt(s,tP.default,"additionalProperties"));let l=(0,eP.allSchemaProperties)(n);for(let f of l)s.definedProperties.add(f);s.opts.unevaluated&&l.length&&s.props!==!0&&(s.props=bv.mergeEvaluated.props(e,(0,bv.toHash)(l),s.props));let a=l.filter(f=>!(0,bv.alwaysValidSchema)(s,n[f]));if(a.length===0)return;let o=e.name("valid");for(let f of a)u(f)?c(f):(e.if((0,eP.propertyInData)(e,i,f,s.opts.ownProperties)),c(f),s.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(o);function u(f){return s.opts.useDefaults&&!s.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},o)}}};wv.default=Y5e});var lP=k(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var rP=Ri(),j9=ht(),iP=Pt(),sP=Pt(),Q5e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:i,it:s}=t,{opts:l}=s,a=(0,rP.allSchemaProperties)(n),o=a.filter(x=>(0,iP.alwaysValidSchema)(s,n[x]));if(a.length===0||o.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let u=l.strictSchema&&!l.allowMatchingProperties&&i.properties,c=e.name("valid");s.props!==!0&&!(s.props instanc
Line truncated
`;let a=new rde(e),o=new ide(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 yde(e),o=new gde(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
${l}`,ajv:o.ajv};let u=new Function("validator","serializer",l);return e.mode==="standalone"?Xv()(u,n,a,o):u(o,a)}var ade=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],ode=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],ude=["maxLength","minLength","pattern"],cde=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function vM(t){for(var e of ade)if(e in t)return"object";for(var e of ode)if(e in t)return"array";for(var e of ude)if(e in t)return"string";for(var e of cde)if(e in t)return"number";return t.type}function fde(t,e){let n=e.schema,r=Object.keys(n.properties||{}),i=`
${l}`,ajv:o.ajv};let u=new Function("validator","serializer",l);return e.mode==="standalone"?Qv()(u,n,a,o):u(o,a)}var Ede=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],xde=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],bde=["maxLength","minLength","pattern"],wde=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function Sj(t){for(var e of Ede)if(e in t)return"object";for(var e of xde)if(e in t)return"array";for(var e of bde)if(e in t)return"string";for(var e of wde)if(e in t)return"number";return t.type}function Sde(t,e){let n=e.schema,r=Object.keys(n.properties||{}),i=`
`,i}function pde(t,e){let n="",r=e.schema,i=r.required||[],s=e.getPropertyLocation("properties"),l=[],a=[];if(r.properties)for(let u of Object.keys(r.properties)){if(i.indexOf(u)===-1)continue;let c=s.getPropertyLocation(u);c.schema.$ref&&(c=J0(t,e,c.schema.$ref));let f=JSON.stringify(u);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`,i}function Tde(t,e){let n="",r=e.schema,i=r.required||[],s=e.getPropertyLocation("properties"),l=[],a=[];if(r.properties)for(let u of Object.keys(r.properties)){if(i.indexOf(u)===-1)continue;let c=s.getPropertyLocation(u);c.schema.$ref&&(c=X0(t,e,c.schema.$ref));let f=JSON.stringify(u);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`,a.push(u)),l.push(u)}for(let u of i)l.indexOf(u)===-1&&(n+=`if(obj['${u}']===undefined)thrownewError('"${u}" is required!')
`);n+=`
letaddComma=false
letjson='${t.wrapObjects?"{":""}'
`;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let u of Object.keys(r.properties)){let c=s.getPropertyLocation(u);c.schema.$ref&&(c=J0(t,e,c.schema.$ref));let f=JSON.stringify(u);if(a.indexOf(u)!==-1)n+=`
${K0}
`;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let u of Object.keys(r.properties)){let c=s.getPropertyLocation(u);c.schema.$ref&&(c=X0(t,e,c.schema.$ref));let f=JSON.stringify(u);if(a.indexOf(u)!==-1)n+=`
${e}`)}function j7(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[xj]=mge(t,n,r)),n=""),t.staticChildren)for(let i of Object.values(t.staticChildren))j7(i,e,n+i.prefix,r);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let s=Array.from(i.nodePaths).join("|");j7(i,e,n+s,r)}t.wildcardChild&&j7(t.wildcardChild,e,"*",r)}function yge(t,e){let n={};return j7(t,n,t.prefix,e),bj(n)}Sj.exports={prettyPrintTree:yge}});var Cj=k((bMe,Aj)=>{"use strict";var gge=U7(),XE=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||{},s={params:r,constraints:i,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},l=Object.keys(i);l.length===0&&(this.unconstrainedHandler=s);for(let o of l)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=l.includes(gge.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(s),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 s=this.handlers[r].constraints[n];if(s!==void 0){let l=e.get(s)||0;l|=1<<r,e.set(s,l)}}}_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+=OM(l,e+u)}return n}function bge(t){let e=t.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function NM(t){return Array.isArray(t)?t.map(e=>NM(e)):typeof t=="symbol"?t.toString():typeof t=="function"?bge(t):t}function wge(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},i=e.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(n));for(let s of i){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let l=s.toString(),a=n[s];if(a!=null){let o=JSON.stringify(NM(a));r[l]=o}}return r}function Sge(t){let e="";for(let[n,r]of Object.entries(t))e+=`
${e}`)}function H7(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[CM]=Oge(t,n,r)),n=""),t.staticChildren)for(let i of Object.values(t.staticChildren))H7(i,e,n+i.prefix,r);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let s=Array.from(i.nodePaths).join("|");H7(i,e,n+s,r)}t.wildcardChild&&H7(t.wildcardChild,e,"*",r)}function Nge(t,e){let n={};return H7(t,n,t.prefix,e),OM(n)}IM.exports={prettyPrintTree:Nge}});var DM=k((Fje,kM)=>{"use strict";var Ige=$7(),QE=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||{},s={params:r,constraints:i,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},l=Object.keys(i);l.length===0&&(this.unconstrainedHandler=s);for(let o of l)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=l.includes(Ige.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(s),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 s=this.handlers[r].constraints[n];if(s!==void 0){let l=e.get(s)||0;l|=1<<r,e.set(s,l)}}}_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(`
`)}for(let r in e.strategies)e.strategies[r].mustMatchWhenDerived&&!this.constraints.includes(r)&&n.push(`if(derivedConstraints.${r}!==undefined)returnnull`);n.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",n.join(`
`))}};Aj.exports=XE});var Nj=k((wMe,Oj)=>{"use strict";var vge=Cj(),G7={STATIC:0,PARAMETRIC:1,WILDCARD:2},$7=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 vge),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},H7=class extends $7{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 q7(e),this.staticChildren[r]}},q7=class t extends H7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=G7.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 V7(e,n,r),this.parametricChildren.push(i),this.parametricChildren.sort((s,l)=>s.isRegex?l.isRegex?s.staticSuffix===null?1:l.staticSuffix===null?-1:l.staticSuffix.endsWith(s.staticSuffix)?1:s.staticSuffix.endsWith(l.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new z7,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),i=this.prefix.slice(n);this.prefix=i,this._compilePrefixMatch();let s=new t(r);return s.staticChildren[i.charAt(0)]=this,e.staticChildren[r.charAt(0)]=s,s}getNextNode(e,n,r,i){let s=this.findStaticMatchingChild(e,n),l=0;if(s===null){if(this.parametricChildren.length===0)return this.wildcardChild;s=this.parametricChildren[0],l=1}this.wildcardChild!==null&&r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=l;a--)r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return s}_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(" && ")}`)}},V7=class extends H7{constructor(e,n,r){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=G7.PARAMETRIC,this.nodePaths=new Set([r])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},z7=class extends $7{constructor(){super(),this.kind=G7.WILDCARD}getNextNode(){return null}};Oj.exports={StaticNode:q7,ParametricNode:V7,WildcardNode:z7,NODE_TYPES:G7}});var Rj=k((SMe,Ij)=>{"use strict";var _ge=require("assert");function s5(){if(!(this instanceof s5))return new s5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}s5.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};s5.prototype.get=function(t){return this.store[t]};Ij.exports={name:"version",mustMatchWhenDerived:!0,storage:s5,validate(t){_ge(typeof t=="string","Version should be a string")}}});var Dj=k((TMe,kj)=>{"use strict";var Ege=require("assert");function xge(){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}}}kj.exports={name:"host",mustMatchWhenDerived:!1,storage:xge,validate(t){Ege(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var Lj=k((AMe,Pj)=>{"use strict";var bge=Rj(),wge=Dj(),YE=require("assert"),QE=class{constructor(e){if(this.strategies={version:bge,host:wge},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(YE(typeof e.name=="string"&&e.name!=="","strategy.name is required."),YE(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};Pj.exports=QE});var Bj=k((CMe,Fj)=>{"use strict";var Sge=["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"];Fj.exports=Sge});var jj=k((OMe,Uj)=>{"use strict";function Mj(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 Tge(t,e){let n=!1,r=!1,i="";for(let l=1;l<t.length;l++){let a=t.charCodeAt(l);if(a===37){let o=t.charCodeAt(l+1),u=t.charCodeAt(l+2);Mj(o,u)===null?n=!0:(r=!0,o===50&&u===53&&(n=!0,t=t.slice(0,l+1)+"25"+t.slice(l+1),l+=2),l+=2)}else if(a===63||a===35||a===59&&e){i=t.slice(l+1),t=t.slice(0,l);break}}return{path:n?decodeURI(t):t,querystring:i,shouldDecodeParam:r}}function Age(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 s=t.charCodeAt(i+1),l=t.charCodeAt(i+2),a=Mj(s,l);n+=t.slice(r,i)+a,r=i+3}return t.slice(0,e)+n+t.slice(r)}Uj.exports={safeDecodeURI:Tge,safeDecodeURIComponent:Age}});var ix=k((NMe,Kj)=>{"use strict";var Hr=require("assert"),Cge=aj(),K7=gj(),tx=N0(),{prettyPrintTree:Oge}=Tj(),{StaticNode:$j,NODE_TYPES:ZE}=Nj(),Nge=Lj(),a1=Bj(),ex=U7(),{safeDecodeURI:Ige,safeDecodeURIComponent:Hj}=jj(),qj=/^https?:\/\/.*?\//,cu=/(\/:[^/()]*?)\?(\/?)/;if(!K7(qj))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!K7(cu))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=Rge,t.querystringParser?(Hr(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Cge.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 Nge(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Ar.prototype.on=function(e,n,r,i,s){typeof r=="function"&&(i!==void 0&&(s=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 l=n.match(cu);if(l){Hr(n.length===l.index+l[0].length,"Optional Parameter needs to be the last parameter of the path");let u=n.replace(cu,"$1$2"),c=n.replace(cu,"$2");this.on(e,u,r,i,s),this.on(e,c,r,i,s);return}let a=n;this.ignoreDuplicateSlashes&&(n=nx(n)),this.ignoreTrailingSlash&&(n=rx(n));let o=Array.isArray(e)?e:[e];for(let u of o)Hr(typeof u=="string","Method should be a string"),Hr(a1.includes(u),`Method'${u}'isnotanhttpmethod.`),this._on(u,n,r,i,s,a)};Ar.prototype._on=function(e,n,r,i,s){let l={};r.constraints!==void 0&&(Hr(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(l=r.constraints)),this.constrainer.validateConstraints(l),this.constrainer.noteUsage(l),this.trees[e]===void 0&&(this.trees[e]=new $j("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let d=this.trees[e];this.trees[e]=new $j(""),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=Gj(a,E),G=a.slice(E,P+1);this.allowUnsafeRegex||Hr(K7(new RegExp(G)),`Theregex'${G}'isnotsafe!`),b.push(zj(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 D=a.slice(N,E);if(D&&(D=
Line truncated
`))}};kM.exports=QE});var LM=k((Bje,PM)=>{"use strict";var Rge=DM(),J7={STATIC:0,PARAMETRIC:1,WILDCARD:2},q7=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 Rge),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},V7=class extends q7{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 z7(e),this.staticChildren[r]}},z7=class t extends V7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=J7.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 G7(e,n,r),this.parametricChildren.push(i),this.parametricChildren.sort((s,l)=>s.isRegex?l.isRegex?s.staticSuffix===null?1:l.staticSuffix===null?-1:l.staticSuffix.endsWith(s.staticSuffix)?1:s.staticSuffix.endsWith(l.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new K7,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),i=this.prefix.slice(n);this.prefix=i,this._compilePrefixMatch();let s=new t(r);return s.staticChildren[i.charAt(0)]=this,e.staticChildren[r.charAt(0)]=s,s}getNextNode(e,n,r,i){let s=this.findStaticMatchingChild(e,n),l=0;if(s===null){if(this.parametricChildren.length===0)return this.wildcardChild;s=this.parametricChildren[0],l=1}this.wildcardChild!==null&&r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=l;a--)r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return s}_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(" && ")}`)}},G7=class extends V7{constructor(e,n,r){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=J7.PARAMETRIC,this.nodePaths=new Set([r])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},K7=class extends q7{constructor(){super(),this.kind=J7.WILDCARD}getNextNode(){return null}};PM.exports={StaticNode:z7,ParametricNode:G7,WildcardNode:K7,NODE_TYPES:J7}});var BM=k((jje,FM)=>{"use strict";var kge=require("assert");function a5(){if(!(this instanceof a5))return new a5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}a5.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};a5.prototype.get=function(t){return this.store[t]};FM.exports={name:"version",mustMatchWhenDerived:!0,storage:a5,validate(t){kge(typeof t=="string","Version should be a string")}}});var UM=k((Uje,jM)=>{"use strict";var Dge=require("assert");function Pge(){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}}}jM.exports={name:"host",mustMatchWhenDerived:!1,storage:Pge,validate(t){Dge(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var $M=k((Mje,MM)=>{"use strict";var Lge=BM(),Fge=UM(),ZE=require("assert"),ex=class{constructor(e){if(this.strategies={version:Lge,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(ZE(typeof e.name=="string"&&e.name!=="","strategy.name is required."),ZE(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};MM.exports=ex});var qM=k(($je,HM)=>{"use strict";var Bge=["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"];HM.exports=Bge});var GM=k((Hje,zM)=>{"use strict";function VM(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 jge(t,e){let n=!1,r=!1,i="";for(let l=1;l<t.length;l++){let a=t.charCodeAt(l);if(a===37){let o=t.charCodeAt(l+1),u=t.charCodeAt(l+2);VM(o,u)===null?n=!0:(r=!0,o===50&&u===53&&(n=!0,t=t.slice(0,l+1)+"25"+t.slice(l+1),l+=2),l+=2)}else if(a===63||a===35||a===59&&e){i=t.slice(l+1),t=t.slice(0,l);break}}return{path:n?decodeURI(t):t,querystring:i,shouldDecodeParam:r}}function Uge(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 s=t.charCodeAt(i+1),l=t.charCodeAt(i+2),a=VM(s,l);n+=t.slice(r,i)+a,r=i+3}return t.slice(0,e)+n+t.slice(r)}zM.exports={safeDecodeURI:jge,safeDecodeURIComponent:Uge}});var lx=k((qje,ZM)=>{"use strict";var qr=require("assert"),Mge=hM(),W7=wM(),rx=R0(),{prettyPrintTree:$ge}=RM(),{StaticNode:KM,NODE_TYPES:tx}=LM(),Hge=$M(),u1=qM(),nx=$7(),{safeDecodeURI:qge,safeDecodeURIComponent:JM}=GM(),WM=/^https?:\/\/.*?\//,pu=/(\/:[^/()]*?)\?(\/?)/;if(!W7(WM))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!W7(pu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Cr(t){if(!(this instanceof Cr))return new Cr(t);t=t||{},this._opts=t,t.defaultRoute?(qr(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(qr(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(qr(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Vge,t.querystringParser?(qr(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 Hge(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Cr.prototype.on=function(e,n,r,i,s){typeof r=="function"&&(i!==void 0&&(s=i),i=r,r={}),qr(typeof n=="string","Path should be a string"),qr(n.length>0,"The path could not be empty"),qr(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),qr(typeof i=="function","Handler should be a function");let l=n.match(pu);if(l){qr(n.length===l.index+l[0].length,"Optional Parameter needs to be the last parameter of the path");let u=n.replace(pu,"$1$2"),c=n.replace(pu,"$2");this.on(e,u,r,i,s),this.on(e,c,r,i,s);return}let a=n;this.ignoreDuplicateSlashes&&(n=ix(n)),this.ignoreTrailingSlash&&(n=sx(n));let o=Array.isArray(e)?e:[e];for(let u of o)qr(typeof u=="string","Method should be a string"),qr(u1.includes(u),`Method'${u}'isnotanhttpmethod.`),this._on(u,n,r,i,s,a)};Cr.prototype._on=function(e,n,r,i,s){let l={};r.constraints!==void 0&&(qr(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(l=r.constraints)),this.constrainer.validateConstraints(l),this.constrainer.noteUsage(l),this.trees[e]===void 0&&(this.trees[e]=new KM("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let d=this.trees[e];this.trees[e]=new KM(""),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=QM(a,E),G=a.slice(E,P+1);this.allowUnsafeRegex||qr(W7(new RegExp(G)),`Theregex'${G}'isnotsafe!`),b.push(YM(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 D=a.slice(N,E);if(D&&(D=
Line truncated
)`,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])"},Gq={};function Kq(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 ob(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 Ux=(t,e,n,r,i)=>{let s=i(e,ob(n),r);return s===jt.trueFunc?t:s===jt.falseFunc?jt.falseFunc:l=>s(l)&&t(l)},jx={is:Ux,matches:Ux,where:Ux,not(t,e,n,r,i){let s=i(e,ob(n),r);return s===jt.falseFunc?t:s===jt.trueFunc?jt.falseFunc:l=>!s(l)&&t(l)},has(t,e,n,r,i){let s=n.adapter,l=ob(n),a=(l.relativeSelector=!0,e.some(c=>c.some(lb))?[Gq]:void 0),o=i(e,l,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,s);if(a&&o!==jt.trueFunc){let{shouldTestNextSiblings:c=!1}=o;return h=>{if(!t(h))return!1;a[0]=h;var d=s.getChildren(h),h=c?[...d,...Kq(h,s)]:d;return s.existsOne(u,h)}}return c=>t(c)&&s.existsOne(u,s.getChildren(c))}};function $x(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function HEe(t,e,n,r,i){let{adapter:s,equals:l}=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 jx)return jx[d](a,h,u,c,f);throw new Error(`Unknownpseudo-class:${d}(${h})`)}let m=(o=u.pseudos)==null?void 0:o[d],x=typeof m=="string"?m:$Ee[d];if(typeof x=="string"){if(h!=null)throw new Error(`Pseudo${d}doesn'thaveanyarguments`);let b=Hf(x);return jx.is(a,b,u,c,f)}if(typeof m=="function")return kH(m,d,h,1),b=>m(b,h)&&a(b);if(d in ab)return ab[d](a,h,u,c);if(d in RH){let b=RH[d];return kH(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 s.getName(o)===a&&t(o)}}case dt.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let u=o;for(;u=$x(u,s);)if(t(u))return!0;return!1};let a=new WeakSet;return function(o){let u=o;for(;u=$x(u,s);)if(!a.has(u)){if(s.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=$x(o,s));return!1};case dt.Parent:return function(a){return s.getChildren(a).some(o=>s.isTag(o)&&t(o))};case dt.Child:return function(a){return(a=s.getParent(a))!=null&&s.isTag(a)&&t(a)};case dt.Sibling:return function(a){var o=s.getSiblings(a);for(let c=0;c<o.length;c++){var u=o[c];if(l(a,u))break;if(s.isTag(u)&&t(u))return!0}return!1};case dt.Adjacent:return s.prevElementSibling?function(a){return(a=s.prevElementSibling(a))!=null&&t(a)}:function(a){var o=s.getSiblings(a);let u;for(let f=0;f<o.length;f++){var c=o[f];if(l(a,c))break;s.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 Jq(t){return t.type===dt.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Jq)))}var qEe={type:dt.Descendant},VEe={type:"_flexibleDescendant"},zEe={type:dt.Pseudo,name:"scope",data:null};function Wq(t,e,n){t.forEach(LEe),n=(l=e.context)!=null?l: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===Gq||d&&o.isTag(d)}));for(let f of a){if(!(0<f.length&&lb(f[0])&&f[0].type!==dt.Descendant)){if(!c||f.some(Jq))continue;f.unshift(qEe)}f.unshift(zEe)}})(t,e,i);else if(t.some(a=>0<a.length&&lb(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let s=!1;var l=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(PH,`\r
`)}}).toArray()}}),C5=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}},jb=(C5.prototype.cheerio="[cheerio object]",C5.prototype.splice=Array.prototype.splice,C5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(C5.prototype,OEe,uxe,mxe,yxe,vxe),function(t,e){return(jb=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)}),_xe=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}jb(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},O5=function(){return(O5=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)},Exe=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",LH=(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||{}),"--"),FH="[CDATA[",BH="doctype",f1="script",xxe="public",bxe="system";function oV(t){return 55296<=t&&t<=57343}function uV(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function cV(t){return 64976<=t&&t<=65007||Exe.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&&(D+=" "),this.message=D+(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(!l(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 _)l(_,E)&&v.push(E);return v}s.hasOwnProp=l,s._prettifyError=function(_,E,v){return(v=v.Update?v:new s.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}}),s.TemplateError=o,s.escape=function(_){return _.replace(i,a)},s.isFunction=u,s.isArray=c,s.isString=f,s.isObject=d,s.getAttrGetter=h,s.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},s.toArray=m,s.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},s.repeat=function(_,E){for(var v="",g=0;g<E;g++)v+=_;return v},s.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,_)}},s.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},s.asyncIter=function(_,E,v){var g=-1;(function S(){++g<_.length?E(_[g],g,S,v):v()})()},s.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()})()},s.indexOf=x,s.keys=b,s._entries=function(_){return b(_).map(function(E){return[E,_[E]]})},s._values=function(_){return b(_).map(function(E){return _[E]})},s._assign=s.extend=function(_,E){return _=_||{},b(E).forEach(function(v){_[v]=E[v]}),_},s.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 FV(){throw new Error("setTimeout has not been defined")}function BV(){throw new Error("clearTimeout has not been defined")}var uo=FV,co=BV;function MV(t){if(uo===setTimeout)return setTimeout(t,0);if((uo===FV||!uo)&&setTimeout)return(uo=setTimeout)(t,0);try{return uo(t,0)}catch{try{return uo.call(null,t,0)}catch{return uo.call(this,t,0)}}}typeof E2.setTimeout=="function"&&(uo=setTimeout),typeof E2.clearTimeout=="function"&&(co=clearTimeout);var _u,b2=[],C1=!1,bf=-1;function _be(){C1&&_u&&(C1=!1,_u.length?b2=_u.concat(b2):bf=-1,b2.length)&&UV()}function UV(){if(!C1){var t=MV(_be);C1=!0;for(var e=b2.length;e;){for(_u=b2,b2=[];++bf<e;)_u&&_u[bf].run();bf=-1,e=b2.length}_u=null,C1=!1,function(n){if(co===clearTimeout)return clearTimeout(n);if((co===BV||!co)&&clearTimeout)return(co=clearTimeout)(n);try{co(n)}catch{try{return co.call(null,n)}catch{return co.call(this,n)}}}(t)}}function jV(t,e){this.fun=t,this.array=e}function Tu(){}jV.prototype.run=function(){this.fun.apply(null,this.array)};var Ebe=Tu,xbe=Tu,bbe=Tu,wbe=Tu,Sbe=Tu,Tbe=Tu,Abe=Tu,g1=E2.performance||{},Cbe=g1.now||g1.mozNow||g1.msNow||g1.oNow||g1.webkitNow||function(){return new Date().getTime()},Obe=new Date,go={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 jV(t,e)),b2.length!==1||C1||MV(UV)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ebe,addListener:xbe,once:bbe,off:wbe,removeListener:Sbe,removeAllListeners:Tbe,emit:Abe,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*Cbe.call(g1),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-Obe)/1e3}};function fo(){}function tr(){tr.init.call(this)}function $V(t){return t._maxListeners===void 0?tr.defaultMaxListeners:t._maxListeners}function hq(t,e,n,r){var i,s;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),s=i[e]):(i=t._events=new fo,t._eventsCount=0),s?(typeof s=="function"?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(r=$V(t))&&0<r&&s.length>r&&(s.warned=!0,(r=new Error("Possible EventEm
Line truncated
)`,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])"},Qq={};function Zq(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 cb(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 $x=(t,e,n,r,i)=>{let s=i(e,cb(n),r);return s===Mt.trueFunc?t:s===Mt.falseFunc?Mt.falseFunc:l=>s(l)&&t(l)},Hx={is:$x,matches:$x,where:$x,not(t,e,n,r,i){let s=i(e,cb(n),r);return s===Mt.falseFunc?t:s===Mt.trueFunc?Mt.falseFunc:l=>!s(l)&&t(l)},has(t,e,n,r,i){let s=n.adapter,l=cb(n),a=(l.relativeSelector=!0,e.some(c=>c.some(ob))?[Qq]:void 0),o=i(e,l,a);if(o===Mt.falseFunc)return Mt.falseFunc;let u=function(c,f){return c===Mt.falseFunc?Mt.falseFunc:d=>f.isTag(d)&&c(d)}(o,s);if(a&&o!==Mt.trueFunc){let{shouldTestNextSiblings:c=!1}=o;return h=>{if(!t(h))return!1;a[0]=h;var d=s.getChildren(h),h=c?[...d,...Zq(h,s)]:d;return s.existsOne(u,h)}}return c=>t(c)&&s.existsOne(u,s.getChildren(c))}};function qx(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function txe(t,e,n,r,i){let{adapter:s,equals:l}=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()),YEe[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 Hx)return Hx[d](a,h,u,c,f);throw new Error(`Unknownpseudo-class:${d}(${h})`)}let m=(o=u.pseudos)==null?void 0:o[d],x=typeof m=="string"?m:exe[d];if(typeof x=="string"){if(h!=null)throw new Error(`Pseudo${d}doesn'thaveanyarguments`);let b=Vf(x);return Hx.is(a,b,u,c,f)}if(typeof m=="function")return jH(m,d,h,1),b=>m(b,h)&&a(b);if(d in ub)return ub[d](a,h,u,c);if(d in BH){let b=BH[d];return jH(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 s.getName(o)===a&&t(o)}}case dt.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let u=o;for(;u=qx(u,s);)if(t(u))return!0;return!1};let a=new WeakSet;return function(o){let u=o;for(;u=qx(u,s);)if(!a.has(u)){if(s.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=qx(o,s));return!1};case dt.Parent:return function(a){return s.getChildren(a).some(o=>s.isTag(o)&&t(o))};case dt.Child:return function(a){return(a=s.getParent(a))!=null&&s.isTag(a)&&t(a)};case dt.Sibling:return function(a){var o=s.getSiblings(a);for(let c=0;c<o.length;c++){var u=o[c];if(l(a,u))break;if(s.isTag(u)&&t(u))return!0}return!1};case dt.Adjacent:return s.prevElementSibling?function(a){return(a=s.prevElementSibling(a))!=null&&t(a)}:function(a){var o=s.getSiblings(a);let u;for(let f=0;f<o.length;f++){var c=o[f];if(l(a,c))break;s.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 eV(t){return t.type===dt.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(eV)))}var nxe={type:dt.Descendant},rxe={type:"_flexibleDescendant"},ixe={type:dt.Pseudo,name:"scope",data:null};function tV(t,e,n){t.forEach(JEe),n=(l=e.context)!=null?l: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===Qq||d&&o.isTag(d)}));for(let f of a){if(!(0<f.length&&ob(f[0])&&f[0].type!==dt.Descendant)){if(!c||f.some(eV))continue;f.unshift(nxe)}f.unshift(ixe)}})(t,e,i);else if(t.some(a=>0<a.length&&ob(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let s=!1;var l=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(MH,`\r
`)}}).toArray()}}),N5=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}},Hb=(N5.prototype.cheerio="[cheerio object]",N5.prototype.splice=Array.prototype.splice,N5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(N5.prototype,$Ee,bxe,Oxe,Nxe,Rxe),function(t,e){return(Hb=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)}),kxe=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}Hb(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},I5=function(){return(I5=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)},Dxe=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]),xr="\uFFFD",$H=(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||{}),"--"),HH="[CDATA[",qH="doctype",h1="script",Pxe="public",Lxe="system";function dV(t){return 55296<=t&&t<=57343}function mV(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function yV(t){return 64976<=t&&t<=65007||Dxe.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&&(D+=" "),this.message=D+(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(!l(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 _)l(_,E)&&v.push(E);return v}s.hasOwnProp=l,s._prettifyError=function(_,E,v){return(v=v.Update?v:new s.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}}),s.TemplateError=o,s.escape=function(_){return _.replace(i,a)},s.isFunction=u,s.isArray=c,s.isString=f,s.isObject=d,s.getAttrGetter=h,s.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},s.toArray=m,s.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},s.repeat=function(_,E){for(var v="",g=0;g<E;g++)v+=_;return v},s.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,_)}},s.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},s.asyncIter=function(_,E,v){var g=-1;(function S(){++g<_.length?E(_[g],g,S,v):v()})()},s.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()})()},s.indexOf=x,s.keys=b,s._entries=function(_){return b(_).map(function(E){return[E,_[E]]})},s._values=function(_){return b(_).map(function(E){return _[E]})},s._assign=s.extend=function(_,E){return _=_||{},b(E).forEach(function(v){_[v]=E[v]}),_},s.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 HV(){throw new Error("setTimeout has not been defined")}function qV(){throw new Error("clearTimeout has not been defined")}var co=HV,fo=qV;function VV(t){if(co===setTimeout)return setTimeout(t,0);if((co===HV||!co)&&setTimeout)return(co=setTimeout)(t,0);try{return co(t,0)}catch{try{return co.call(null,t,0)}catch{return co.call(this,t,0)}}}typeof x2.setTimeout=="function"&&(co=setTimeout),typeof x2.clearTimeout=="function"&&(fo=clearTimeout);var xu,w2=[],N1=!1,Sf=-1;function kbe(){N1&&xu&&(N1=!1,xu.length?w2=xu.concat(w2):Sf=-1,w2.length)&&zV()}function zV(){if(!N1){var t=VV(kbe);N1=!0;for(var e=w2.length;e;){for(xu=w2,w2=[];++Sf<e;)xu&&xu[Sf].run();Sf=-1,e=w2.length}xu=null,N1=!1,function(n){if(fo===clearTimeout)return clearTimeout(n);if((fo===qV||!fo)&&clearTimeout)return(fo=clearTimeout)(n);try{fo(n)}catch{try{return fo.call(null,n)}catch{return fo.call(this,n)}}}(t)}}function GV(t,e){this.fun=t,this.array=e}function Cu(){}GV.prototype.run=function(){this.fun.apply(null,this.array)};var Dbe=Cu,Pbe=Cu,Lbe=Cu,Fbe=Cu,Bbe=Cu,jbe=Cu,Ube=Cu,_1=x2.performance||{},Mbe=_1.now||_1.mozNow||_1.msNow||_1.oNow||_1.webkitNow||function(){return new Date().getTime()},$be=new Date,vo={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];w2.push(new GV(t,e)),w2.length!==1||N1||VV(zV)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Dbe,addListener:Pbe,once:Lbe,off:Fbe,removeListener:Bbe,removeAllListeners:jbe,emit:Ube,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(_1),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-$be)/1e3}};function po(){}function rr(){rr.init.call(this)}function KV(t){return t._maxListeners===void 0?rr.defaultMaxListeners:t._maxListeners}function _q(t,e,n,r){var i,s;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),s=i[e]):(i=t._events=new po,t._eventsCount=0),s?(typeof s=="function"?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(r=KV(t))&&0<r&&s.length>r&&(s.warned=!0,(r=new Error("Possible EventEm
Line truncated
`?this.forward():this.back())),ds(XV,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,ds(QV,h,n,r);if(i==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var s="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}s+=this.current(),this.forward()}for(var l=["g","i","m","y"],a="";!this.isFinished()&&l.indexOf(this.current())!==-1;)a+=this.current(),this.forward();return ds(dz,{body:s,flags:a},n,r)}if(_q.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=ez;break;case")":o=tz;break;case"[":o=nz;break;case"]":o=rz;break;case"{":o=iz;break;case"}":o=sz;break;case",":o=az;break;case":":o=oz;break;case"~":o=uz;break;case"|":o=cz;break;default:o=lz}return ds(o,i,n,r)}if((h=this._extractUntil(vq+_q)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),u=this._extract("0123456789"),ds(fz,h+"."+u,n,r)):ds("int",h,n,r);if(h.match(/^(true|false)$/))return ds(pz,h,n,r);if(h==="none"||h==="null")return ds(Ab,h,n,r);if(h)return ds(hz,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,ds(WV,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,ds(YV,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 ds(m?ZV:JV,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())),ms(nz,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,ms(iz,h,n,r);if(i==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var s="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}s+=this.current(),this.forward()}for(var l=["g","i","m","y"],a="";!this.isFinished()&&l.indexOf(this.current())!==-1;)a+=this.current(),this.forward();return ms(Ez,{body:s,flags:a},n,r)}if(Tq.indexOf(i)!==-1){this.forward();var o,u=["==","===","!=","!==","<=",">=","//","**"],c=i+this.current();switch($e.indexOf(u,c)!==-1&&(this.forward(),$e.indexOf(u,(i=c)+this.current())!==-1)&&(i=c+this.current(),this.forward()),i){case"(":o=lz;break;case")":o=az;break;case"[":o=oz;break;case"]":o=uz;break;case"{":o=cz;break;case"}":o=fz;break;case",":o=hz;break;case":":o=dz;break;case"~":o=mz;break;case"|":o=yz;break;default:o=pz}return ms(o,i,n,r)}if((h=this._extractUntil(Sq+Tq)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),u=this._extract("0123456789"),ms(gz,h+"."+u,n,r)):ms("int",h,n,r);if(h.match(/^(true|false)$/))return ms(vz,h,n,r);if(h==="none"||h==="null")return ms(Ob,h,n,r);if(h)return ms(_z,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,ms(tz,h,n,r);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,ms(rz,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 ms(m?sz:ez,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+=`
`))})},r.compileRoot=function(i,s){var l=this,a=(s&&this.fail("compileRoot: root node can't have frame"),s=new Jx,this._emitFuncBegin(i,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(i,s),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,[]);(s=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),l._emitFuncBegin(o,"b_"+c),c=new Jx,l._emitLine("var frame = frame.push(true);"),l.compile(o.body,c),l._emitFuncEnd()}),this._emitLine("return {"),s.forEach(function(o,u){o="b_"+o.name.value,l._emitLine(o+": "+o+",")}),this._emitLine(`root:root
};`)},r.compile=function(i,s){var l=this["compile"+i.typename];l?l.call(this,i,s):this.fail("compile: Cannot compile node: "+i.typename,i.lineno,i.colno)},r.getCode=function(){return this.codebuf.join("")},n}(D1.Obj),Pwe={compile:function(l,e,n,r,i){var s=new Tq(r,(i=i===void 0?{}:i).throwOnUndefined),l=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,o){return o(a)},l);return s.compile(Nwe.transform(Awe.parse(l,n,i),e,r)),s.getCode()},Compiler:Tq},Lwe=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 s(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 l(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(`
`))})},r.compileRoot=function(i,s){var l=this,a=(s&&this.fail("compileRoot: root node can't have frame"),s=new Xx,this._emitFuncBegin(i,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(i,s),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,[]);(s=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),l._emitFuncBegin(o,"b_"+c),c=new Xx,l._emitLine("var frame = frame.push(true);"),l.compile(o.body,c),l._emitFuncEnd()}),this._emitLine("return {"),s.forEach(function(o,u){o="b_"+o.name.value,l._emitLine(o+": "+o+",")}),this._emitLine(`root:root
};`)},r.compile=function(i,s){var l=this["compile"+i.typename];l?l.call(this,i,s):this.fail("compile: Cannot compile node: "+i.typename,i.lineno,i.colno)},r.getCode=function(){return this.codebuf.join("")},n}(L1.Obj),Kwe={compile:function(l,e,n,r,i){var s=new Rq(r,(i=i===void 0?{}:i).throwOnUndefined),l=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,o){return o(a)},l);return s.compile(Hwe.transform(Uwe.parse(l,n,i),e,r)),s.getCode()},Compiler:Rq},Jwe=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($e.isString(h))return h.split("");if($e.isObject(h))return $e._entries(h||{}).map(function(m){return{key:m[0],value:m[1]}});if($e.isArray(h))return h;throw new $e.TemplateError("list filter: type not iterable")}function s(h){return function(m,x,b){var _=this,E=_.env.getTest(x=x===void 0?"truthy":x);return $e.toArray(m).filter(function(v){return E.call(_,v,b)===h})}}function l(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=$e.repeat(" ",m/2-m%2),m=$e.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(!$e.isObject(h))throw new $e.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 $e.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||($e.isString(v)&&(v=v.toUpperCase()),$e.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($e.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($e.escape((h=h??"").toString()))},t.groupby=function(h,m){return $e.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(`
`):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=l,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=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,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);varb=x===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(_){return_&&_.length}).map(function(_){varE=_.match(a),v=(E=E?E[1]:_).substr(0,m);returnu.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){returnn(h=parseFloat(h))?m:h},bt.makeMacro(["value","default","base"],[],function(h,m,x){returnx===void0&&(x=10),n(h=parseInt(h,x))?m:h}));t.int=d,t.d=t.default,t.e=t.escape}),Mf={};functionIz(t,e){for(varn=0,r=t.length-1;0<=r;r--){vari=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("..");returnt}varFwe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Wx=function(t){returnFwe.exec(t).slice(1)};functionXx(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varr=0<=n?arguments[n]:"/";if(typeofr!="string")thrownewTypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+Iz(Jb(t.split("/"),function(i){return!!i}),!e).join("/")||"."}functionAq(t){vare=Rz(t),n=Bwe(t,-1)==="/";return(t=(t=Iz(Jb(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionRz(t){returnt.charAt(0)==="/"}varO1={extname:function(t){returnWx(t)[3]},basename:function(t,e){returnt=Wx(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=Wx(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(u){for(varc=0;c<u.length&&u[c]==="";c++);for(varf=u.length-1;0<=f&&u[f]==="";f--);returnf<c?[]:u.slice(c,f-c+1)}t=Xx(t).substr(1),e=Xx(e).substr(1);for(varr=n(t.split("/")),i=n(e.split("/")),s=Math.min(r.length,i.length),l=s,a=0;a<s;a++)if(r[a]!==i[a]){l=a;break}for(varo=[],a=l;a<r.length;a++)o.push("..");return(o=o.concat(i.slice(l))).join("/")},join:function(){returnAq(Jb(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:Rz,normalize:Aq,resolve:Xx};functionJb(t,e){if(t.filter)returnt.filter(e);for(varn=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);returnn}varBwe="ab".substr(-1)==="b"?function(t,e,n){returnt.substr(e,n)}:function(t,e,n){returne<0&&(e=t.length+e),t.substr(e,n)};functionkz(t,e){return(kz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varWb=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),kz(r.prototype.constructor=r,e);varr=n.prototype;returnr.resolve=function(i,s){returnO1.resolve(O1.dirname(i),s)},r.isRelative=function(i){returni.indexOf("./")===0||i.indexOf("../")===0},n}(D1.EmitterObj);functionDz(t,e){return(Dz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varMwe=function(t){vare,n;functionr(i){vars;return(s=t.call(this)||this).precompiled=i||{},s}returnn=t,(e=r).prototype=Object.create(n.prototype),Dz(e.prototype.constructor=e,n),r.prototype.getSource=function(i){returnthis.precompiled[i]?{src:{type:"code",obj:this.precompiled[i]},path:i}:null},r}(Wb);functionPz(t,e){t.prototype=Object.create(e.prototype),Lz(t.prototype.constructor=t,e)}functionLz(t,e){return(Lz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varUwe=Mwe,jwe=function(t){functione(n,r){vari=t.call(this)||this;returntypeofr=="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(O1.normalize)):i.searchPaths=["."],r.watch,i}returnPz(e,t),e.prototype.getSource=function(n){for(varr=null,i=this.searchPaths,s=0;s<i.length;s++){varl=O1.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=l,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 $e.isString(h)?m(h):($e.isArray(h)?h:$e._entries(h)).map(function(_){var b=_[0],_=_[1];return m(b)+"="+m(_)}).join("&")};var a=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,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);varb=x===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(_){return_&&_.length}).map(function(_){varE=_.match(a),v=(E=E?E[1]:_).substr(0,m);returnu.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){returnn(h=parseFloat(h))?m:h},bt.makeMacro(["value","default","base"],[],function(h,m,x){returnx===void0&&(x=10),n(h=parseInt(h,x))?m:h}));t.int=d,t.d=t.default,t.e=t.escape}),Mf={};functionFz(t,e){for(varn=0,r=t.length-1;0<=r;r--){vari=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("..");returnt}varWwe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Yx=function(t){returnWwe.exec(t).slice(1)};functionQx(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varr=0<=n?arguments[n]:"/";if(typeofr!="string")thrownewTypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e=r.charAt(0)==="/")}return(e?"/":"")+Fz(Xb(t.split("/"),function(i){return!!i}),!e).join("/")||"."}functionkq(t){vare=Bz(t),n=Xwe(t,-1)==="/";return(t=(t=Fz(Xb(t.split("/"),function(r){return!!r}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionBz(t){returnt.charAt(0)==="/"}varI1={extname:function(t){returnYx(t)[3]},basename:function(t,e){returnt=Yx(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=Yx(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(u){for(varc=0;c<u.length&&u[c]==="";c++);for(varf=u.length-1;0<=f&&u[f]==="";f--);returnf<c?[]:u.slice(c,f-c+1)}t=Qx(t).substr(1),e=Qx(e).substr(1);for(varr=n(t.split("/")),i=n(e.split("/")),s=Math.min(r.length,i.length),l=s,a=0;a<s;a++)if(r[a]!==i[a]){l=a;break}for(varo=[],a=l;a<r.length;a++)o.push("..");return(o=o.concat(i.slice(l))).join("/")},join:function(){returnkq(Xb(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:Bz,normalize:kq,resolve:Qx};functionXb(t,e){if(t.filter)returnt.filter(e);for(varn=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);returnn}varXwe="ab".substr(-1)==="b"?function(t,e,n){returnt.substr(e,n)}:function(t,e,n){returne<0&&(e=t.length+e),t.substr(e,n)};functionjz(t,e){return(jz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varYb=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),jz(r.prototype.constructor=r,e);varr=n.prototype;returnr.resolve=function(i,s){returnI1.resolve(I1.dirname(i),s)},r.isRelative=function(i){returni.indexOf("./")===0||i.indexOf("../")===0},n}(L1.EmitterObj);functionUz(t,e){return(Uz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varYwe=function(t){vare,n;functionr(i){vars;return(s=t.call(this)||this).precompiled=i||{},s}returnn=t,(e=r).prototype=Object.create(n.prototype),Uz(e.prototype.constructor=e,n),r.prototype.getSource=function(i){returnthis.precompiled[i]?{src:{type:"code",obj:this.precompiled[i]},path:i}:null},r}(Yb);functionMz(t,e){t.prototype=Object.create(e.prototype),$z(t.prototype.constructor=t,e)}function$z(t,e){return($z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){returnn.__proto__=r,n})(t,e)}varQwe=Ywe,Zwe=function(t){functione(n,r){vari=t.call(this)||this;returntypeofr=="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(I1.normalize)):i.searchPaths=["."],r.watch,i}returnMz(e,t),e.prototype.getSource=function(n){for(varr=null,i=this.searchPaths,s=0;s<i.length;s++){varl=I1.resoLine truncated
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let u=ySe(o,s);u&&l.push(u)}}else l.push(o)}return l.length!==0&&l[0].name==="EXTM3U"||ze("The EXTM3U tag MUST be the first line."),l}(t,e),r=gSe(n,e);return r.source=t,r}var vSe=["#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"],_Se=["#EXT-X-MEDIA"],cw=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(vSe.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(_Se.some(r=>n.startsWith(r)))continue;ze(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function dw(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 ESe(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 cG(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=${aG(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function xSe(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=${dw(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(up(i))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let i of e.video)t.push(up(i))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let i of e.subtitles)t.push(up(i))}if(aSe().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(up(i))}if(e.score&&r.push(`SCORE=${e.score}`),e.allowedCpc){let i=[];for(let{format:s,cpcList:l}of e.allowedCpc)i.push(`${s}:${l.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 up(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 bSe(t,e,n,r,i=1,s=null){let l=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let u=cG(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="${lw(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:${sw(e.programDateTime)}`),e.dateRange&&t.push(function(u){let c=[`ID="${u.id}"`];u.start&&c.push(`START-DATE="${sw(u.start)}"`),u.end&&c.push(`END-DATE="${sw(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}=${aG(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&&(l=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 pG="hls_cache",wp=[],Nu={},i6={},Ou={},bp="";function wSe(t,e){if(wp.push(t),Nu[t]=e,wp.length>5){let n=wp.shift();SSe(n)}}function SSe(t){delete Nu[t],delete wp[t],new JSFile(pG+"/"+t).delete()}function TSe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=mw(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=mw(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=mw(t,n.key.uri));return e}async function hG(t,e){let n=md5X(t);if(Nu[n])return Nu[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 s=r.content;let l=TSe(i,uG(s));return wSe(n,{code:r.code,plist:l,key:n,headers:r.headers}),Nu[n]}return{}}async function dG(t,e,n){if(!Nu[t])return{};let i=Nu[t].plist.segments,s=!Ou[t];if(s){Ou[t]={};for(let c of i){let f=md5X(c.uri+c.mediaSequenceNumber.toString());Ou[t][f]={file:pG+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Ou[t]){let f=Ou[t][c];f.index>=e?f.order=f.index-e:f.order=i.length-e+f.index}s&&ASe(t,5,n);let l=i[e],a=md5X(l.uri+l.mediaSequenceNumber.toString()),o=Ou[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&&mG(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 mG(t,e,n){if(e.state>=0||!i6[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 ASe(t,e,n){bp&&bp!=t&&delete i6[bp],bp=t,i6[t]=!0;for(let r=0;r<e&&i6[t];r++)new Promise(function(i,s){(async function l(){if(!i6[t]){i();return}let a=Q.pickBy(Ou[t],function(u){return u.state==-1}),o=Q.minBy(Object.values(a),function(u){return u.order});if(!o){i();return}await mG(t,o,n),setTimeout(l,5)})()})}function mw(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 yG(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),i=n[4];e.push(`<dp="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${i}]]></d>`)}),String.raw`<?xmlversion="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>"}varSp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newAa(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Wi,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,r,i,s,l){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),xo(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,r,i,s,l)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,r,i,s,l,a){returna.headers.location!==void0?i?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,r,i,s,l):a.content.length>0?(this.reconnectTimes=0,s?{cookie:a.headers["set-cookie"],content:a.content}:a.content):l===1?(this.reconnectTimes=0,a.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),awaitthis.reconnnect(e,n,r,i,s,l))}asyncfetch(e,n,r,i=!1,s=!1,l=0){leta=P1(n),o=e;Q.isEmpty(a)||(o=e+"?"+a);letu=newW5(o),c;returnc=awaitreq(u.toString(),{method:"get",headers:r,buffer:l,data:null}),c.code===200||c.code===302||c.code===301||s?awaitthis.getResponse(e,n,r,i,s,l,c):(awaitthis.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)}`),awaitthis.reconnnect(e,n,r,i,s,l))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letr=awaitthis.fetch(e,null,n);if(Q.isEmpty(r))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturntt(r)}asyncparseVodShortLisLine truncated
`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||e[n]&&vOe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var AW=Symbol("internals");function v6(t){return t&&String(t).trim().toLowerCase()}function Qp(t){return t===!1||t==null?t:le.isArray(t)?t.map(Qp):String(t)}function _Oe(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 EOe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionfS(t,e,n,r,i){if(le.isFunction(r))returnr.call(this,e,n);if(i&&(e=n),!!le.isString(e)){if(le.isString(r))returne.indexOf(r)!==-1;if(le.isRegExp(r))returnr.test(e)}}functionxOe(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}functionbOe(t,e){letn=le.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,l){returnthis[r].call(this,e,i,s,l)},configurable:!0})})}varr4=class{constructor(e){e&&this.set(e)}set(e,n,r){leti=this;functions(a,o,u){letc=v6(o);if(!c)thrownewError("header name must be a non-empty string");letf=le.findKey(i,c);(!f||i[f]===void0||u===!0||u===void0&&i[f]!==!1)&&(i[f||o]=Qp(a))}letl=(a,o)=>le.forEach(a,(u,c)=>s(u,c,o));returnle.isPlainObject(e)||einstanceofthis.constructor?l(e,n):le.isString(e)&&(e=e.trim())&&!EOe(e)?l(TW(e),n):e!=null&&s(n,e,r),this}get(e,n){if(e=v6(e),e){letr=le.findKey(this,e);if(r){leti=this[r];if(!n)returni;if(n===!0)return_Oe(i);if(le.isFunction(n))returnn.call(this,i,r);if(le.isRegExp(n))returnn.exec(i);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=v6(e),e){letr=le.findKey(this,e);return!!(r&&this[r]!==void0&&(!n||fS(this,this[r],r,n)))}return!1}delete(e,n){letr=this,i=!1;functions(l){if(l=v6(l),l){leta=le.findKey(r,l);a&&(!n||fS(r,r[a],a,n))&&(deleter[a],i=!0)}}returnle.isArray(e)?e.forEach(s):s(e),i}clear(e){letn=Object.keys(this),r=n.length,i=!1;for(;r--;){lets=n[r];(!e||fS(this,this[s],s,e,!0))&&(deletethis[s],i=!0)}returni}normalize(e){letn=this,r={};returnle.forEach(this,(i,s)=>{letl=le.findKey(r,s);if(l){n[l]=Qp(i),deleten[s];return}leta=e?xOe(s):String(s).trim();a!==s&&deleten[s],n[a]=Qp(i),r[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnle.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&le.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,VOe=C6.encode(Oo),zOe=2,NS=class{constructor(e,n){let{escapeName:r}=this.constructor,i=le.isString(n),s=`Content-Disposition:form-data;name="${r(e)}"${!i&&n.name?`; filename="${r(n.name)}"`:""}${Oo}`;i?n=C6.encode(String(n).replace(/\r?\n|\r\n?/g,Oo)):s+=`Content-Type:${n.type||"application/octet-stream"}${Oo}`,this.headers=C6.encode(s+Oo),this.contentLength=i?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+zOe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;le.isTypedArray(e)?yield e:yield*th(e),yield VOe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},GOe=(t,e,n)=>{let{tag:r="form-data-boundary",size:i=25,boundary:s=r+"-"+le.generateString(i,qOe)}=n||{};if(!le.isFormData(t))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let l=C6.encode("--"+s+Oo),a=C6.encode("--"+s+"--"+Oo+Oo),o=a.byteLength,u=Array.from(t.entries()).map(([f,d])=>{let h=new NS(f,d);return o+=h.size,h});o+=l.byteLength*u.length,o=le.toFiniteNumber(o);let c={"Content-Type":`multipart/form-data;boundary=${s}`};return Number.isFinite(o)&&(c["Content-Length"]=o),e&&e(c),$W.Readable.from(async function*(){for(let f of u)yield l,yield*f.encode();yield a}())},HW=GOe;var qW=Dr(require("stream"),1),IS=class extends qW.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)}},VW=IS;var KOe=(t,e)=>le.isAsyncFn(t)?function(...n){let r=n.pop();t.apply(this,n).then(i=>{try{e?r(null,...e(i)):r(null,i)}catch(s){r(s)}},r)}:t,zW=KOe;var GW={flush:S2.default.constants.Z_SYNC_FLUSH,finishFlush:S2.default.constants.Z_SYNC_FLUSH},JOe={flush:S2.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:S2.default.constants.BROTLI_OPERATION_FLUSH},KW=le.isFunction(S2.default.createBrotliDecompress),{http:WOe,https:XOe}=eX.default,YOe=/https:?/,JW=ci.protocols.map(t=>t+":");function QOe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function nX(t,e,n){let r=e;if(!r&&r!==!1){let i=(0,XW.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 s=Buffer.from(r.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+s}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(s){nX(s,e,s.href)}}var ZOe=typeof process<"u"&&le.kindOf(process)==="process",eNe=t=>new Promise((e,n)=>{let r,i,s=(o,u)=>{i||(i=!0,r&&r(o,u))},l=o=>{s(o),e(o)},a=o=>{s(o,!0),n(o)};t(l,a,o=>r=o).catch(a)}),tNe=({address:t,family:e})=>{if(!le.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},WW=(t,e)=>tNe(le.isObject(t)?t:{address:t,family:e}),rX=ZOe&&function(e){return eNe(async function(r,i,s){let{data:l,lookup:a,family:o}=e,{responseType:u,responseEncoding:c}=e,f=e.method.toUpperCase(),d,h=!1,m;if(a){let W=zW(a,re=>le.isArray(re)?re:[re]);a=(re,I,M)=>{W(re,I,(F,L,Ke)=>{if(F)return M(F);let Be=le.isArray(L)?L.map(Re=>WW(Re)):[WW(L,Ke)];I.all?M(F,Be):M(F,Be[0].address,Be[0].family)})}}let x=new tX.default,b=()=>{e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_),x.removeAllListeners()};s((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=Bu(e.baseURL,e.url),v=new URL(E,"http://localhost"),g=v.protocol||JW[0];if(g==="data:"){let W;if(f!=="GET")return Co(r,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{W=AS(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=le.stripBOM(W))):u==="stream"&&(W=ju.default.Readable.from(W)),Co(r,i,{data:W,status:200,statusText:"OK",headers:new fi,config:e})}if(JW.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/"+Uu,!1);let A=e.onDownloadProgress,C=e.onUploadProgress,N=e.maxRate,D,P;if(le.isSpecCompliantForm(l)){let W=S.getContentType(/boundary=([-_\w\d]{10,70})/i);l=HW(l,re=>{S.set(re)},{tag:`axios-${Uu}-boundary`,boundary:W&&W[1]||void 0})}else if(le.isFormData(l)&&le.isFunction(l.getHeaders)){if(S.set(l.getHeaders()),!S.hasContentLength())try{let W=await ZW.default.promisify(l.getLength).call(l);Number.isFinite(W
Line truncated
`+s.map(oX).join(`
`):" "+oX(s[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:RS};function kS(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ea(null,t)}function rh(t){return kS(t),t.headers=fi.from(t.headers),t.data=_6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),nh.getAdapter(t.adapter||n4.adapter)(t).then(function(r){return kS(t),r.data=_6.call(t,t.transformResponse,r),r.headers=fi.from(r.headers),r},function(r){return E6(r)||(kS(t),r&&r.response&&(r.response.data=_6.call(t,t.transformResponse,r.response),r.response.headers=fi.from(r.response.headers))),Promise.reject(r)})}var uX=t=>t instanceof fi?t.toJSON():t;function T2(t,e){e=e||{};let n={};function r(u,c,f){return le.isPlainObject(u)&&le.isPlainObject(c)?le.merge.call({caseless:f},u,c):le.isPlainObject(c)?le.merge({},c):le.isArray(c)?c.slice():c}function i(u,c,f){if(le.isUndefined(c)){if(!le.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function s(u,c){if(!le.isUndefined(c))return r(void 0,c)}function l(u,c){if(le.isUndefined(c)){if(!le.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:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(u,c)=>i(uX(u),uX(c),!0)};return le.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=o[c]||i,d=f(t[c],e[c],c);le.isUndefined(d)&&f!==a||(n[c]=d)}),n}var DS={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{DS[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var cX={};DS.transitional=function(e,n,r){function i(s,l){return"[Axios v"+Uu+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(e===!1)throw new We(i(l," has been removed"+(n?" in "+n:"")),We.ERR_DEPRECATED);return n&&!cX[l]&&(cX[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,l,a):!0}};function iNe(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 s=r[i],l=e[s];if(l){let a=t[s],o=a===void 0||l(a,s,t);if(o!==!0)throw new We("option "+s+" must be "+o,We.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new We("Unknown option "+s,We.ERR_BAD_OPTION)}}var ih={assertOptions:iNe,validators:DS};var No=ih.validators,s4=class{constructor(e){this.defaults=e,this.interceptors={request:new aS,response:new aS}}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 s=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`)){let o=a.trim();if(o)if(o.startsWith("#")){if(o.startsWith("#EXT")){let u=NSe(o,s);u&&l.push(u)}}else l.push(o)}return l.length!==0&&l[0].name==="EXTM3U"||Ke("The EXTM3U tag MUST be the first line."),l}(t,e),r=ISe(n,e);return r.source=t,r}var RSe=["#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"],kSe=["#EXT-X-MEDIA"],pw=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(RSe.some(r=>n.startsWith(r)))super.push(n);else{if(this.includes(n)){if(kSe.some(r=>n.startsWith(r)))continue;Ke(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function yw(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 DSe(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 yG(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&&Ke("IV must be a 128-bit unsigned integer"),r.push(`IV=${hG(t.iv)}`)),t.format&&r.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&r.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${r.join(",")}`}function PSe(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=${yw(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(fp(i))}if(e.video.length>0){r.push(`VIDEO="${e.video[0].groupId}"`);for(let i of e.video)t.push(fp(i))}if(e.subtitles.length>0){r.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let i of e.subtitles)t.push(fp(i))}if(ESe().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(fp(i))}if(e.score&&r.push(`SCORE=${e.score}`),e.allowedCpc){let i=[];for(let{format:s,cpcList:l}of e.allowedCpc)i.push(`${s}:${l.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 fp(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 LSe(t,e,n,r,i=1,s=null){let l=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let u=yG(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="${ow(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:${aw(e.programDateTime)}`),e.dateRange&&t.push(function(u){let c=[`ID="${u.id}"`];u.start&&c.push(`START-DATE="${aw(u.start)}"`),u.end&&c.push(`END-DATE="${aw(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}=${hG(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&&(l=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 vG="hls_cache",Tp=[],Ru={},l6={},Iu={},Sp="";function FSe(t,e){if(Tp.push(t),Ru[t]=e,Tp.length>5){let n=Tp.shift();BSe(n)}}function BSe(t){delete Ru[t],delete Tp[t],new JSFile(vG+"/"+t).delete()}function jSe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=gw(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=gw(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=gw(t,n.key.uri));return e}async function _G(t,e){let n=md5X(t);if(Ru[n])return Ru[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 s=r.content;let l=jSe(i,mG(s));return FSe(n,{code:r.code,plist:l,key:n,headers:r.headers}),Ru[n]}return{}}async function EG(t,e,n){if(!Ru[t])return{};let i=Ru[t].plist.segments,s=!Iu[t];if(s){Iu[t]={};for(let c of i){let f=md5X(c.uri+c.mediaSequenceNumber.toString());Iu[t][f]={file:vG+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in Iu[t]){let f=Iu[t][c];f.index>=e?f.order=f.index-e:f.order=i.length-e+f.index}s&&USe(t,5,n);let l=i[e],a=md5X(l.uri+l.mediaSequenceNumber.toString()),o=Iu[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&&xG(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 xG(t,e,n){if(e.state>=0||!l6[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 USe(t,e,n){Sp&&Sp!=t&&delete l6[Sp],Sp=t,l6[t]=!0;for(let r=0;r<e&&l6[t];r++)new Promise(function(i,s){(async function l(){if(!l6[t]){i();return}let a=Q.pickBy(Iu[t],function(u){return u.state==-1}),o=Q.minBy(Object.values(a),function(u){return u.order});if(!o){i();return}await xG(t,o,n),setTimeout(l,5)})()})}function gw(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 bG(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let r=Number(n[0]),i=n[4];e.push(`<dp="${r},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${i}]]></d>`)}),String.raw`<?xmlversion="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>"}varAp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newCa(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Xi,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,r,i,s,l){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),bo(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,r,i,s,l)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,r,i,s,l,a){returna.headers.location!==void0?i?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,r,i,s,l):a.content.length>0?(this.reconnectTimes=0,s?{cookie:a.headers["set-cookie"],content:a.content}:a.content):l===1?(this.reconnectTimes=0,a.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),awaitthis.reconnnect(e,n,r,i,s,l))}asyncfetch(e,n,r,i=!1,s=!1,l=0){leta=F1(n),o=e;Q.isEmpty(a)||(o=e+"?"+a);letu=newY5(o),c;returnc=awaitreq(u.toString(),{method:"get",headers:r,buffer:l,data:null}),c.code===200||c.code===302||c.code===301||s?awaitthis.getResponse(e,n,r,i,s,l,c):(awaitthis.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)}`),awaitthis.reconnnect(e,n,r,i,s,l))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letr=awaitthis.fetch(e,null,n);if(Q.isEmpty(r))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnQe(r)}asyncparseVodShortLisLine truncated
`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||e[n]&&ROe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};var kW=Symbol("internals");function E6(t){return t&&String(t).trim().toLowerCase()}function eh(t){return t===!1||t==null?t:le.isArray(t)?t.map(eh):String(t)}function kOe(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 DOe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functiondS(t,e,n,r,i){if(le.isFunction(r))returnr.call(this,e,n);if(i&&(e=n),!!le.isString(e)){if(le.isString(r))returne.indexOf(r)!==-1;if(le.isRegExp(r))returnr.test(e)}}functionPOe(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}functionLOe(t,e){letn=le.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,l){returnthis[r].call(this,e,i,s,l)},configurable:!0})})}vars4=class{constructor(e){e&&this.set(e)}set(e,n,r){leti=this;functions(a,o,u){letc=E6(o);if(!c)thrownewError("header name must be a non-empty string");letf=le.findKey(i,c);(!f||i[f]===void0||u===!0||u===void0&&i[f]!==!1)&&(i[f||o]=eh(a))}letl=(a,o)=>le.forEach(a,(u,c)=>s(u,c,o));returnle.isPlainObject(e)||einstanceofthis.constructor?l(e,n):le.isString(e)&&(e=e.trim())&&!DOe(e)?l(RW(e),n):e!=null&&s(n,e,r),this}get(e,n){if(e=E6(e),e){letr=le.findKey(this,e);if(r){leti=this[r];if(!n)returni;if(n===!0)returnkOe(i);if(le.isFunction(n))returnn.call(this,i,r);if(le.isRegExp(n))returnn.exec(i);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=E6(e),e){letr=le.findKey(this,e);return!!(r&&this[r]!==void0&&(!n||dS(this,this[r],r,n)))}return!1}delete(e,n){letr=this,i=!1;functions(l){if(l=E6(l),l){leta=le.findKey(r,l);a&&(!n||dS(r,r[a],a,n))&&(deleter[a],i=!0)}}returnle.isArray(e)?e.forEach(s):s(e),i}clear(e){letn=Object.keys(this),r=n.length,i=!1;for(;r--;){lets=n[r];(!e||dS(this,this[s],s,e,!0))&&(deletethis[s],i=!0)}returni}normalize(e){letn=this,r={};returnle.forEach(this,(i,s)=>{letl=le.findKey(r,s);if(l){n[l]=eh(i),deleten[s];return}leta=e?POe(s):String(s).trim();a!==s&&deleten[s],n[a]=eh(i),r[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnle.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&le.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,rNe=N6.encode(No),iNe=2,kS=class{constructor(e,n){let{escapeName:r}=this.constructor,i=le.isString(n),s=`Content-Disposition:form-data;name="${r(e)}"${!i&&n.name?`; filename="${r(n.name)}"`:""}${No}`;i?n=N6.encode(String(n).replace(/\r?\n|\r\n?/g,No)):s+=`Content-Type:${n.type||"application/octet-stream"}${No}`,this.headers=N6.encode(s+No),this.contentLength=i?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+iNe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;le.isTypedArray(e)?yield e:yield*rh(e),yield rNe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},sNe=(t,e,n)=>{let{tag:r="form-data-boundary",size:i=25,boundary:s=r+"-"+le.generateString(i,nNe)}=n||{};if(!le.isFormData(t))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let l=N6.encode("--"+s+No),a=N6.encode("--"+s+"--"+No+No),o=a.byteLength,u=Array.from(t.entries()).map(([f,d])=>{let h=new kS(f,d);return o+=h.size,h});o+=l.byteLength*u.length,o=le.toFiniteNumber(o);let c={"Content-Type":`multipart/form-data;boundary=${s}`};return Number.isFinite(o)&&(c["Content-Length"]=o),e&&e(c),KW.Readable.from(async function*(){for(let f of u)yield l,yield*f.encode();yield a}())},JW=sNe;var WW=Pr(require("stream"),1),DS=class extends WW.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)}},XW=DS;var lNe=(t,e)=>le.isAsyncFn(t)?function(...n){let r=n.pop();t.apply(this,n).then(i=>{try{e?r(null,...e(i)):r(null,i)}catch(s){r(s)}},r)}:t,YW=lNe;var QW={flush:T2.default.constants.Z_SYNC_FLUSH,finishFlush:T2.default.constants.Z_SYNC_FLUSH},aNe={flush:T2.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:T2.default.constants.BROTLI_OPERATION_FLUSH},ZW=le.isFunction(T2.default.createBrotliDecompress),{http:oNe,https:uNe}=lX.default,cNe=/https:?/,eX=fi.protocols.map(t=>t+":");function fNe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function oX(t,e,n){let r=e;if(!r&&r!==!1){let i=(0,nX.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 s=Buffer.from(r.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+s}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(s){oX(s,e,s.href)}}var pNe=typeof process<"u"&&le.kindOf(process)==="process",hNe=t=>new Promise((e,n)=>{let r,i,s=(o,u)=>{i||(i=!0,r&&r(o,u))},l=o=>{s(o),e(o)},a=o=>{s(o,!0),n(o)};t(l,a,o=>r=o).catch(a)}),dNe=({address:t,family:e})=>{if(!le.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},tX=(t,e)=>dNe(le.isObject(t)?t:{address:t,family:e}),uX=pNe&&function(e){return hNe(async function(r,i,s){let{data:l,lookup:a,family:o}=e,{responseType:u,responseEncoding:c}=e,f=e.method.toUpperCase(),d,h=!1,m;if(a){let W=YW(a,re=>le.isArray(re)?re:[re]);a=(re,I,j)=>{W(re,I,(F,L,Je)=>{if(F)return j(F);let Be=le.isArray(L)?L.map(Re=>tX(Re)):[tX(L,Je)];I.all?j(F,Be):j(F,Be[0].address,Be[0].family)})}}let x=new aX.default,b=()=>{e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_),x.removeAllListeners()};s((W,re)=>{d=!0,re&&(h=!0,b())});function _(W){x.emit("abort",!W||W.type?new ta(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=Uu(e.baseURL,e.url),v=new URL(E,"http://localhost"),g=v.protocol||eX[0];if(g==="data:"){let W;if(f!=="GET")return Oo(r,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{W=NS(e.url,u==="blob",{Blob:e.env&&e.env.Blob})}catch(re){throw Xe.from(re,Xe.ERR_BAD_REQUEST,e)}return u==="text"?(W=W.toString(c),(!c||c==="utf8")&&(W=le.stripBOM(W))):u==="stream"&&(W=Hu.default.Readable.from(W)),Oo(r,i,{data:W,status:200,statusText:"OK",headers:new pi,config:e})}if(eX.indexOf(g)===-1)return i(new Xe("Unsupported protocol "+g,Xe.ERR_BAD_REQUEST,e));let S=pi.from(e.headers).normalize();S.set("User-Agent","axios/"+$u,!1);let A=e.onDownloadProgress,C=e.onUploadProgress,N=e.maxRate,D,P;if(le.isSpecCompliantForm(l)){let W=S.getContentType(/boundary=([-_\w\d]{10,70})/i);l=JW(l,re=>{S.set(re)},{tag:`axios-${$u}-boundary`,boundary:W&&W[1]||void 0})}else if(le.isFormData(l)&&le.isFunction(l.getHeaders)){if(S.set(l.getHeaders()),!S.hasContentLength())try{let W=await sX.default.promisify(l.getLength).call(l);Number.isFinite(W
Line truncated
`+s.map(dX).join(`
`):" "+dX(s[0]):"as no adapter specified";throw new Xe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:PS};function LS(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ta(null,t)}function sh(t){return LS(t),t.headers=pi.from(t.headers),t.data=x6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ih.getAdapter(t.adapter||i4.adapter)(t).then(function(r){return LS(t),r.data=x6.call(t,t.transformResponse,r),r.headers=pi.from(r.headers),r},function(r){return b6(r)||(LS(t),r&&r.response&&(r.response.data=x6.call(t,t.transformResponse,r.response),r.response.headers=pi.from(r.response.headers))),Promise.reject(r)})}var mX=t=>t instanceof pi?t.toJSON():t;function A2(t,e){e=e||{};let n={};function r(u,c,f){return le.isPlainObject(u)&&le.isPlainObject(c)?le.merge.call({caseless:f},u,c):le.isPlainObject(c)?le.merge({},c):le.isArray(c)?c.slice():c}function i(u,c,f){if(le.isUndefined(c)){if(!le.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function s(u,c){if(!le.isUndefined(c))return r(void 0,c)}function l(u,c){if(le.isUndefined(c)){if(!le.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:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(u,c)=>i(mX(u),mX(c),!0)};return le.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=o[c]||i,d=f(t[c],e[c],c);le.isUndefined(d)&&f!==a||(n[c]=d)}),n}var FS={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{FS[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var yX={};FS.transitional=function(e,n,r){function i(s,l){return"[Axios v"+$u+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(e===!1)throw new Xe(i(l," has been removed"+(n?" in "+n:"")),Xe.ERR_DEPRECATED);return n&&!yX[l]&&(yX[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,l,a):!0}};function gNe(t,e,n){if(typeof t!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),i=r.length;for(;i-- >0;){let s=r[i],l=e[s];if(l){let a=t[s],o=a===void 0||l(a,s,t);if(o!==!0)throw new Xe("option "+s+" must be "+o,Xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xe("Unknown option "+s,Xe.ERR_BAD_OPTION)}}var lh={assertOptions:gNe,validators:FS};var Io=lh.validators,a4=class{constructor(e){this.defaults=e,this.interceptors={request:new cS,response:new cS}}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 s=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`}}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":_o,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),s=(Q.isArray(r.headers["set-cookie"])?r.headers["set-cookie"].join(";;;"):r.headers["set-cookie"]).split(";;;"),l={};for(let c of s){let f=c.trim(),d=f.indexOf("="),h=f.substr(0,d);l[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":_o,cookie:"hm="+l.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\u7406segments=${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 s=await this.getHtml(this.siteUrl+i),l=await this.parseVodDetailFromDoc(s),a;return Q.isEmpty(n)?a=await req(l.book_pic,{buffer:2,headers:{Referer:i,"User-Agent":Wi}}):a=await req(l.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:""})}},bn=new zS;var GS=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.cfgObj.code=0,bn.catOpenStatus=!0,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)}},Do=new GS;async function HX(t,e){return await Do.init(t,e)}async function qX(t,e){return await Do.home(t,e)}async function kNe(t,e){return await Do.homeVod(t,e)}async function VX(t,e){return await Do.category(t,e)}async function zX(t,e){return await Do.detail(t,e)}async function GX(t,e){return await Do.play(t,e)}async function KX(t,e){return await Do.search(t,e)}async function DNe(t,e){return await Do.proxy(t,e)}var JX={meta:{key:bn.getJSName(),name:bn.getName(),type:bn.getType()},api:async t=>{t.post("/init",HX),t.post("/home",qX),t.post("/category",VX),t.post("/detail",zX),t.post("/play",GX),t.post("/search",KX),t.get("/proxy/:what/:ids/:end",DNe)},spider:{init:HX,home:qX,homeVod:kNe,category:VX,detail:zX,play:GX,search:KX}};var KS=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 s=new Us,l=e(i).find("a")[1];s.book_id=l.attribs.href,s.book_pic=e(i).find("img:first")[0].attribs.src;let a=e(i).find("strong:first")[0];s.book_name=a.children[0].data,s.book_remarks="\u{1F3B5}"+e(i).find("font")[5].children[0].data||"",n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=e("ul.djddv_djList > li"),r=Q.map(n,s=>{let l=e(s).find("a")[1],a=e(s).find("img:first")[0],o=e(s).find("strong:first")[0],u=e(s).find("font")[5];return{book_id:l.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],s=e(r).find("img:first")[0],l=e(r).find("strong:first")[0],a=e(r).find("font:first")[0];return{book_id:i.attribs.href,book_name:l.children[0].data,book_pic:s.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}a
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":Eo,Referer:`${this.siteUrl}/s?q=${encodeURIComponent(e)}`}}),s=(Q.isArray(r.headers["set-cookie"])?r.headers["set-cookie"].join(";;;"):r.headers["set-cookie"]).split(";;;"),l={};for(let c of s){let f=c.trim(),d=f.indexOf("="),h=f.substr(0,d);l[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":Eo,cookie:"hm="+l.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\u7406segments=${e.join(",")},headers=${JSON.stringify(n)}`);let r=e[0],i=Yi(e[1]);if(r==="img"){await this.jadeLog.debug(`\u53CD\u5411\u4EE3\u7406ID\u4E3A:${i}`);let s=await this.getHtml(this.siteUrl+i),l=await this.parseVodDetailFromDoc(s),a;return Q.isEmpty(n)?a=await req(l.book_pic,{buffer:2,headers:{Referer:i,"User-Agent":Xi}}):a=await req(l.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:""})}},xn=new JS;var WS=class extends Me{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.cfgObj.code=0,xn.catOpenStatus=!0,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,r){await xn.setSearch(e,n,r),this.vodList=xn.vodList,this.result=xn.result}async setProxy(e,n){return await xn.proxy(e,n)}},Po=new WS;async function JX(t,e){return await Po.init(t,e)}async function WX(t,e){return await Po.home(t,e)}async function zNe(t,e){return await Po.homeVod(t,e)}async function XX(t,e){return await Po.category(t,e)}async function YX(t,e){return await Po.detail(t,e)}async function QX(t,e){return await Po.play(t,e)}async function ZX(t,e){return await Po.search(t,e)}async function GNe(t,e){return await Po.proxy(t,e)}var eY={meta:{key:xn.getJSName(),name:xn.getName(),type:xn.getType()},api:async t=>{t.post("/init",JX),t.post("/home",WX),t.post("/category",XX),t.post("/detail",YX),t.post("/play",QX),t.post("/search",ZX),t.get("/proxy/:what/:ids/:end",GNe)},spider:{init:JX,home:WX,homeVod:zNe,category:XX,detail:YX,play:QX,search:ZX}};var XS=class extends qe{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 s=new $s,l=e(i).find("a")[1];s.book_id=l.attribs.href,s.book_pic=e(i).find("img:first")[0].attribs.src;let a=e(i).find("strong:first")[0];s.book_name=a.children[0].data,s.book_remarks="\u{1F3B5}"+e(i).find("font")[5].children[0].data||"",n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=e("ul.djddv_djList > li"),r=Q.map(n,s=>{let l=e(s).find("a")[1],a=e(s).find("img:first")[0],o=e(s).find("strong:first")[0],u=e(s).find("font")[5];return{book_id:l.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],s=e(r).find("img:first")[0],l=e(r).find("strong:first")[0],a=e(r).find("font:first")[0];return{book_id:i.attribs.href,book_name:l.children[0].data,book_pic:s.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\u7F
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 s=e('[class="video-info-items"]');n.vod_director=e(s[0]).find("a")[0].children[0].data;let l=e(s[1]).find("a"),a=[];for(let d of l)a.push(d.children[0].data);n.vod_actor=a.join(" * "),n.vod_year=i[2],n.vod_remarks=e(e(s[3]).find(".video-info-item")).text(),n.vod_content=e(e(s[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 s=new Pe;s.vod_id=e(i).find(".video-serial")[0].attribs.href,s.vod_name=e(i).find(".video-serial")[0].attribs.title,s.vod_pic=e(i).find(".module-item-pic > img")[0].attribs["data-src"],s.vod_remarks="",r.push(s)}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 s=n(n(i).find("span")).text();if(s!=="\u9996\u9875"){let a={type_id:n(i).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],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 s={key:(i+1).toString(),name:"",value:[]};if(i<n.length-1){s.name=e(e(n[i]).find("a")[0]).text(),s.value.push({n:"\u5168\u90E8",v:"0"});for(let l of e(n[i]).find("a").slice(1))e(e(n[i]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?s.value.push({n:e(l).text(),v:l.attribs.href.split("/").slice(-1)[0].split(".")[0]}):s.value.push({n:e(l).text(),v:e(l).text()});r.push(s)}else s.name=e(e(n[i]).find("a")[0]).text(),s.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(s)}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 s=tt(i);this.filterObj[n]=await this.getFilter(s)}}}}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/"),s=this.getExtend(r[3],"","/lang/"),l=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}${s}${a}${l}/page/${n}.html`}async setCategory(e,n,r,i){let s=await this.getCateUrl(e,n,i),l=await this.fetch(s,null,this.getHeader());if(!Q.isEmpty(l)){let a=tt(l);this.vodList=await this.parseVodShortListFromDoc(a);let o=Ie(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,l);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 s=Ie(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,i),l=JSON.parse(s);this.playUrl=l.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 s=tt(i);this.vodList=await this.parseVodShortListFromDocBySearch(s)}}},Tn=new QS;var ZS=class extends $e{constructor(){super()}getName(){return Tn.getName()}getAppName(){return Tn.getAppName()}getJSName(){return Tn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Tn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Tn.initCookie(e.server.config.bilicookie),await Tn.spiderInit(e),Tn.cfgObj.code=0,Tn.catOpenStatus=!0,Tn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Tn.setClasses(),this.classes=Tn.classes}async setFilterObj(){await Tn.setFilterObj(),this.filterObj=Tn.filterObj}async setHomeVod(){await Tn.setHomeVod(),this.homeVodList=Tn.homeVodList}async setCategory(e,n,r,i){await Tn.setCategory(e,n,r,i),this.vodList=Tn.vodList}async setDetail(e){await Tn.setDetail(e),this.vodDetail=Tn.vodDetail}async setPlay(e,n,r){await Tn.setPlay(e,n,r),this.playUrl=Tn.playUrl,this.result=Tn.result}async setSearch(e,n){await Tn.setSearch(e,n),this.vodList=Tn.vodList}async setProxy(e,n){return await Tn.proxy(e,n)}},Fo=new ZS;async function cY(t,e){return await Fo.init(t,e)}async function fY(t,e){return await Fo.home(t,e)}async function VNe(t,e){return await Fo.homeVod(t,e)}async function pY(t,e){return await Fo.category(t,e)}async function hY(t,e){return await Fo.detail(t,e)}async function dY(t,e){return await Fo.play(t,e)}async function mY(t,e){ret
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/,l),n.vod_actor=Ie(/主演:(.*?)\n/,l),n.vod_director=Ie(/导演:(.*?)\n/,l),n.vod_area=Ie(/地区:(.*?)\n/,l),n.vod_year=Ie(/年份:(.*?)\n/,l),n.vod_remarks=Ie(/更新:(.*?)\n/,l);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 s of i){let l=new Pe;l.vod_pic=r(s).find("img")[0].attribs["data-original"],l.vod_name=Ie(/《(.*?)》/,r(s).find("img")[0].attribs.alt),l.vod_id=r(s).find("a")[0].attribs.href,l.vod_remarks="\u8BC4\u5206:"+r(r(s).find('[class="rate badge"]')).text(),n.push(l)}return n}async parseVodShortListFromDocByCategory(e){let n=[],r=e(e('[id="list_all"]').find("ul")).find("li");for(let i of r){let s=new Pe;s.vod_id=e(i).find("a")[0].attribs.href,s.vod_name=Ie(/《(.*?)》/,e(e(e(i).find('[class="text_info"]')).find("a")[0]).text()),s.vod_pic=e(i).find("img")[0].attribs["data-original"],s.vod_remarks=e(e(i).find('[class="update_time"]')).text(),n.push(s)}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 s=this.siteUrl+`/list/${e}-${n}.html`,l=await this.getHtml(s);this.vodList=await this.parseVodShortListFromDocByCategory(l)}async setSearch(e,n){let r=this.siteUrl+"/search/",i={wd:e,p:"1",t:"j/tNgwBS2e8O4x9TuIkYuQ=="},s=await this.post(r,i,this.getSearchHeader()),l=tt(s);this.vodList=await this.parseVodShortListFromDocByCategory(l)}},Rn=new fT;var pT=class extends $e{constructor(){super()}getName(){return Rn.getName()}getAppName(){return Rn.getAppName()}getJSName(){return Rn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Rn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Rn.initCookie(e.server.config.bilicookie),await Rn.spiderInit(e),Rn.cfgObj.code=0,Rn.catOpenStatus=!0,Rn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Rn.setClasses(),this.classes=Rn.classes}async setFilterObj(){await Rn.setFilterObj(),this.filterObj=Rn.filterObj}async setHomeVod(){await Rn.setHomeVod(),this.homeVodList=Rn.homeVodList}async setCategory(e,n,r,i){await Rn.setCategory(e,n,r,i),this.vodList=Rn.vodList}async setDetail(e){await Rn.setDetail(e),this.vodDetail=Rn.vodDetail}async setPlay(e,n,r){await Rn.setPlay(e,n,r),this.playUrl=Rn.playUrl,this.result=Rn.result}async setSearch(e,n){await Rn.setSearch(e,n),this.vodList=Rn.vodList}async setProxy(e,n){return await Rn.proxy(e,n)}},Go=new pT;async function ZY(t,e){return await Go.init(t,e)}async function eQ(t,e){return await Go.home(t,e)}async function aIe(t,e){return await Go.homeVod(t,e)}async function tQ(t,e){return await Go.category(t,e)}async function nQ(t,e){return await Go.detail(t,e)}async function rQ(t,e){return await Go.play(t,e)}async function iQ(t,e){return await Go.search(t,e)}async function oIe(t,e){return await Go.proxy(t,e)}var sQ={meta:{key:Rn.getJSName(),name:Rn.getName(),type:Rn.getType()},api:async t=>{t.post("/init",ZY),t.post("/home",eQ),t.post("/category",tQ),t.post("/detail",nQ),t.post("/play",rQ),t.post("/search",iQ),t.get("/proxy/:what/:ids/:end",oIe)},spider:{init:ZY,home:eQ,homeVod:aIe,category:tQ,detail:nQ,play:rQ,search:iQ}};var hT=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 s=e(i).find('[class="stui-vodlist__thumb lazyload"]')[0],l=new Pe;l.vod_id=s.attribs.href,l.vod_name=s.attribs.title,l.vod_pic=s.attribs["data-original"],l.vod_remarks=e(e(s).find('[class="pic-text text-right"]')[0]).text(),n.push(l)}return n}async parseVodShortListFromDocBySearch(e){let n=[],r=e('[class="stui-pannel_bd"]').find("li");for(let i of r){let s=e(e(i).find('[class="thumb"]')[0]).find("a")[0],l=new Pe;l.vod_id=s.attribs.href,l.vod_name=s.attribs.title,l.vod_pic=s.attribs["data-origina
Line truncated
`);r.vod_name=i[0].replaceAll(/<\\?[^>]+>/g,"").replace("\u540D\u79F0\uFF1A","");let s=new Date(n.time);r.vod_remarks=s.toLocaleDateString().replace(/\//g,"-")+" "+s.toTimeString().substr(0,8),r.vod_pic=n.image;let l="";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&&(l=a.replaceAll(/<\\?[^>]+>/g,"").replace("\u94FE\u63A5\uFF1A",""));try{let a=await Ls([l]);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,s=this.siteUrl+"_next/data/"+i+"/search.json?keyword="+encodeURIComponent(n)+"&pan=aliyundrive",l=await this.fetch(s,null,this.getSearchHeader());if(Q.isEmpty(l))await this.jadeLog.error("\u641C\u7D22\u9875\u9762\u89E3\u6790\u5931\u8D25",!0);else{let a=JSON.parse(l).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 Fs(e,n,r)}},Dn=new mT;var yT=class extends $e{constructor(){super()}getName(){return Dn.getName()}getAppName(){return Dn.getAppName()}getJSName(){return Dn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Dn.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Dn.initCookie(e.server.config.bilicookie),await Dn.spiderInit(e),Dn.cfgObj.code=0,Dn.catOpenStatus=!0,Dn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Dn.setClasses(),this.classes=Dn.classes}async setFilterObj(){await Dn.setFilterObj(),this.filterObj=Dn.filterObj}async setHomeVod(){await Dn.setHomeVod(),this.homeVodList=Dn.homeVodList}async setCategory(e,n,r,i){await Dn.setCategory(e,n,r,i),this.vodList=Dn.vodList}async setDetail(e){await Dn.setDetail(e),this.vodDetail=Dn.vodDetail}async setPlay(e,n,r){await Dn.setPlay(e,n,r),this.playUrl=Dn.playUrl,this.result=Dn.result}async setSearch(e,n){await Dn.setSearch(e,n),this.vodList=Dn.vodList}async setProxy(e,n){return await Dn.proxy(e,n)}},Jo=new yT;async function hQ(t,e){return await Jo.init(t,e)}async function dQ(t,e){return await Jo.home(t,e)}async function fIe(t,e){return await Jo.homeVod(t,e)}async function mQ(t,e){return await Jo.category(t,e)}async function yQ(t,e){return await Jo.detail(t,e)}async function gQ(t,e){return await Jo.play(t,e)}async function vQ(t,e){return await Jo.search(t,e)}async function pIe(t,e){return await Jo.proxy(t,e)}var _Q={meta:{key:Dn.getJSName(),name:Dn.getName(),type:Dn.getType()},api:async t=>{t.post("/init",hQ),t.post("/home",dQ),t.post("/category",mQ),t.post("/detail",yQ),t.post("/play",gQ),t.post("/search",vQ),t.get("/proxy/:what/:ids/:end",pIe)},spider:{init:hQ,home:dQ,homeVod:fIe,category:mQ,detail:yQ,play:gQ,search:vQ}};var gT=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,""),s=e(r).text();i!=="/"&&this.classes.push(this.getTypeDic(s,i))}}async getFilter(e,n){let r=e('[class="nav-down-2 clearfix"]')[n],i=[];if(r!==void 0){let s="\u6309\u7C7B\u578B",l={key:s,name:s,value:[]};l.name=s,l.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];l.value.push({n:o,v:u})}i.push(l)}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}`,s=await this.getHtml(i);this.filterObj[r]=await this.getFilter(s,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=Eo+"/resources/dygang.jpg"),r}async parseVodShortListFromDoc(e){let n=[],r=e('[class="index-tj-l"]').find("li");for(let i of r){let s=e(i).find("a")[0],l=this.parseVodShortFromElement(e,s);n.push(l)}return n}async parseVodShortListFromDocByCategory(e){let n=[],r=e('[class="index-area clearfix"]').find("li");for(let i of r){let s=e(i).find("a")[0],l=this.parseVodShortFromElement(e,s);n.push(l)}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 s=[];for(let f of i.split(`
importcheeriofrom"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/cheerio.min.js";import"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-js.js";import"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/drT.js";import模板from"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js";import{gbkTool}from"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/gbk.js";functioninit_test(){console.log("init_test_start");console.log("当前版本号:"+VERSION);console.log(RKEY);console.log(JSON.stringify(rule));console.log("init_test_end")}functionpre(){if(typeofrule.预处理==="string"&&rule.预处理&&rule.预处理.trim()){letcode=rule.预处理.trim();console.log("执行预处理代码:"+code);if(code.startsWith("js:")){code=code.replace("js:","")}try{eval(code)}catch(e){console.log("预处理执行失败:"+e.message)}}}letrule={};constVERSION="drpy1 3.9.49beta2 20231122";constMOBILE_UA="Mozilla/5.0 (Linux; Android 11; M2007J3SC Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045714 Mobile Safari/537.36";constPC_UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";constUA="Mozilla/5.0";constUC_UA="Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36";constIOS_UA="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";constRULE_CK="cookie";constCATE_EXCLUDE="首页|留言|APP|下载|资讯|新闻|动态";constTAB_EXCLUDE="猜你|喜欢|下载|剧情|热播";constOCR_RETRY=3;constOCR_API="http://drpy.nokia.press:8028/ocr/drpy/text";if(typeofMY_URL==="undefined"){varMY_URL}varHOST;varRKEY;varfetch;varprint;varlog;varrule_fetch_params;varfetch_params;varoheaders;var_pdfh;var_pdfa;var_pd;constDOM_CHECK_ATTR=/(url|src|href|-original|-src|-play|-url|style)$/;constSPECIAL_URL=/^(ftp|magnet|thunder|ws):/;constSELECT_REGEX=/:eq|:lt|:gt|#/g;constSELECT_REGEX_A=/:eq|:lt|:gt/g;if(typeofObject.assign!="function"){Object.assign=function(){vartarget=arguments[0];for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}returntarget}}if(!String.prototype.includes){String.prototype.includes=function(search,start){if(typeofstart!=="number"){start=0}if(start+search.length>this.length){returnfalse}else{returnthis.indexOf(search,start)!==-1}}}if(!Array.prototype.includes){Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(this==null){thrownewTypeError('"this" is null or not defined')}varo=Object(this);varlen=o.length>>>0;if(len===0){returnfalse}varn=fromIndex|0;vark=Math.max(n>=0?n:len-Math.abs(n),0);while(k<len){if(o[k]===searchElement){returntrue}k++}returnfalse}})}if(typeofString.prototype.startsWith!="function"){String.prototype.startsWith=function(prefix){returnthis.slice(0,prefix.length)===prefix}}if(typeofString.prototype.endsWith!="function"){String.prototype.endsWith=function(suffix){returnthis.indexOf(suffix,this.length-suffix.length)!==-1}}Object.prototype.myValues=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres};if(typeofObject.prototype.values!="function"){Object.prototype.values=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres}}if(typeofArray.prototype.join!="function"){Array.prototype.join=function(emoji){emoji=emoji||"";letself=this;letstr="";leti=0;if(!Array.isArray(self)){throwString(self)+"is not Array"}if(self.length===0){return""}if(self.length===1){returnString(self[0])}i=1;str=this[0];for(;i<self.length;i++){str+=String(emoji)+String(self[i])}returnstr}}String.prototype.rstrip=function(chars){letregex=newRegExp(chars+"$");returnthis.replace(regex,"")};Array.prototype.append=Array.prototype.push;String.prototype.strip=String.prototype.trim;function是否正版(vipUrl){letflag=newRegExp("qq.com|iqiyi.com|youku.com|mgtv.com|bilibili.com|sohu.com|ixigua.com|pptv.com|miguvideo.com|le.com|1905.com|fun.tv");returnflag.test(vipUrl)}functionurlDeal(vipUrl){if(!vipUrl){return""}if(!是否正版(vipUrl)){returnvipUrl}if(!/miguvideo/.test(vipUrl)){vipUrl=vipUrl.split("#")[0].split("?")[0]}returnvipUrl}functionsetResult(d){if(!Array.isArray(d)){return[]}VODS=[];d.forEach(function(it){letobj={vod_id:it.url||"",vod_name:it.title||"",vod_remarks:it.desc||"",vod_conLine truncated
importcheeriofrom"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/cheerio.min.js";import"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-js.js";import"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/drT.js";import模板from"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js";import{gbkTool}from"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/gbk.js";functioninit_test(){console.log("init_test_start");console.log("当前版本号:"+VERSION);console.log(RKEY);console.log(JSON.stringify(rule));console.log("init_test_end")}functionpre(){if(typeofrule.预处理==="string"&&rule.预处理&&rule.预处理.trim()){letcode=rule.预处理.trim();console.log("执行预处理代码:"+code);if(code.startsWith("js:")){code=code.replace("js:","")}try{eval(code)}catch(e){console.log("预处理执行失败:"+e.message)}}}letrule={};constVERSION="drpy1 3.9.49beta36 202400414";constMOBILE_UA="Mozilla/5.0 (Linux; Android 11; M2007J3SC Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045714 Mobile Safari/537.36";constPC_UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";constUA="Mozilla/5.0";constUC_UA="Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36";constIOS_UA="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";constRULE_CK="cookie";constCATE_EXCLUDE="首页|留言|APP|下载|资讯|新闻|动态";constTAB_EXCLUDE="猜你|喜欢|下载|剧情|热播";constOCR_RETRY=3;constOCR_API="http://drpy.nokia.press:8028/ocr/drpy/text";if(typeofMY_URL==="undefined"){varMY_URL}varHOST;varRKEY;varfetch;varprint;varlog;varrule_fetch_params;varfetch_params;varoheaders;var_pdfh;var_pdfa;var_pd;constDOM_CHECK_ATTR=/(url|src|href|-original|-src|-play|-url|style)$/;constSPECIAL_URL=/^(ftp|magnet|thunder|ws):/;constSELECT_REGEX=/:eq|:lt|:gt|#/g;constSELECT_REGEX_A=/:eq|:lt|:gt/g;if(typeofObject.assign!="function"){Object.assign=function(){vartarget=arguments[0];for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}returntarget}}if(!String.prototype.includes){String.prototype.includes=function(search,start){if(typeofstart!=="number"){start=0}if(start+search.length>this.length){returnfalse}else{returnthis.indexOf(search,start)!==-1}}}if(!Array.prototype.includes){Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(this==null){thrownewTypeError('"this" is null or not defined')}varo=Object(this);varlen=o.length>>>0;if(len===0){returnfalse}varn=fromIndex|0;vark=Math.max(n>=0?n:len-Math.abs(n),0);while(k<len){if(o[k]===searchElement){returntrue}k++}returnfalse}})}if(typeofString.prototype.startsWith!="function"){String.prototype.startsWith=function(prefix){returnthis.slice(0,prefix.length)===prefix}}if(typeofString.prototype.endsWith!="function"){String.prototype.endsWith=function(suffix){returnthis.indexOf(suffix,this.length-suffix.length)!==-1}}Object.prototype.myValues=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres};if(typeofObject.prototype.values!="function"){Object.prototype.values=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres}}if(typeofArray.prototype.join!="function"){Array.prototype.join=function(emoji){emoji=emoji||"";letself=this;letstr="";leti=0;if(!Array.isArray(self)){throwString(self)+"is not Array"}if(self.length===0){return""}if(self.length===1){returnString(self[0])}i=1;str=this[0];for(;i<self.length;i++){str+=String(emoji)+String(self[i])}returnstr}}String.prototype.rstrip=function(chars){letregex=newRegExp(chars+"$");returnthis.replace(regex,"")};Array.prototype.append=Array.prototype.push;String.prototype.strip=String.prototype.trim;function是否正版(vipUrl){letflag=newRegExp("qq.com|iqiyi.com|youku.com|mgtv.com|bilibili.com|sohu.com|ixigua.com|pptv.com|miguvideo.com|le.com|1905.com|fun.tv");returnflag.test(vipUrl)}functionurlDeal(vipUrl){if(!vipUrl){return""}if(!是否正版(vipUrl)){returnvipUrl}if(!/miguvideo/.test(vipUrl)){vipUrl=vipUrl.split("#")[0].split("?")[0]}returnvipUrl}functionsetResult(d){if(!Array.isArray(d)){return[]}VODS=[];d.forEach(function(it){letobj={vod_id:it.url||"",vod_name:it.title||"",vod_remarks:it.desc||"",vod_cLine truncated
importcheeriofrom"assets://js/lib/cheerio.min.js";import"assets://js/lib/crypto-js.js";import模板from"../js/模板.js";import{gbkTool}from"./gbk.js";functioninit_test(){console.log("init_test_start");console.log("当前版本号:"+VERSION);console.log(RKEY);console.log(JSON.stringify(rule));console.log("init_test_end")}functionpre(){if(typeofrule.预处理==="string"&&rule.预处理&&rule.预处理.trim()){letcode=rule.预处理.trim();console.log("执行预处理代码:"+code);if(code.startsWith("js:")){code=code.replace("js:","")}try{eval(code)}catch(e){console.log("预处理执行失败:"+e.message)}}}letrule={};letvercode=typeofpdfl==="function"?"drpy2.1":"drpy2";constVERSION=vercode+" 3.9.49beta2 20231122";constMOBILE_UA="Mozilla/5.0 (Linux; Android 11; M2007J3SC Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045714 Mobile Safari/537.36";constPC_UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";constUA="Mozilla/5.0";constUC_UA="Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36";constIOS_UA="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";constRULE_CK="cookie";constCATE_EXCLUDE="首页|留言|APP|下载|资讯|新闻|动态";constTAB_EXCLUDE="猜你|喜欢|下载|剧情|热播";constOCR_RETRY=3;constOCR_API="http://drpy.nokia.press:8028/ocr/drpy/text";if(typeofMY_URL==="undefined"){varMY_URL}varHOST;varRKEY;varfetch;varprint;varlog;varrule_fetch_params;varfetch_params;varoheaders;var_pdfh;var_pdfa;var_pd;constDOM_CHECK_ATTR=/(url|src|href|-original|-src|-play|-url|style)$/;constSPECIAL_URL=/^(ftp|magnet|thunder|ws):/;constNOADD_INDEX=/:eq|:lt|:gt|:first|:last|^body$|^#/;constURLJOIN_ATTR=/(url|src|href|-original|-src|-play|-url|style)$/;constSELECT_REGEX=/:eq|:lt|:gt|#/g;constSELECT_REGEX_A=/:eq|:lt|:gt/g;if(typeofObject.assign!="function"){Object.assign=function(){vartarget=arguments[0];for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}returntarget}}if(!String.prototype.includes){String.prototype.includes=function(search,start){if(typeofstart!=="number"){start=0}if(start+search.length>this.length){returnfalse}else{returnthis.indexOf(search,start)!==-1}}}if(!Array.prototype.includes){Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(this==null){thrownewTypeError('"this" is null or not defined')}varo=Object(this);varlen=o.length>>>0;if(len===0){returnfalse}varn=fromIndex|0;vark=Math.max(n>=0?n:len-Math.abs(n),0);while(k<len){if(o[k]===searchElement){returntrue}k++}returnfalse}})}if(typeofString.prototype.startsWith!="function"){String.prototype.startsWith=function(prefix){returnthis.slice(0,prefix.length)===prefix}}if(typeofString.prototype.endsWith!="function"){String.prototype.endsWith=function(suffix){returnthis.indexOf(suffix,this.length-suffix.length)!==-1}}Object.prototype.myValues=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres};if(typeofObject.prototype.values!="function"){Object.prototype.values=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres}}if(typeofArray.prototype.join!="function"){Array.prototype.join=function(emoji){emoji=emoji||"";letself=this;letstr="";leti=0;if(!Array.isArray(self)){throwString(self)+"is not Array"}if(self.length===0){return""}if(self.length===1){returnString(self[0])}i=1;str=this[0];for(;i<self.length;i++){str+=String(emoji)+String(self[i])}returnstr}}String.prototype.rstrip=function(chars){letregex=newRegExp(chars+"$");returnthis.replace(regex,"")};Array.prototype.append=Array.prototype.push;String.prototype.strip=String.prototype.trim;function是否正版(vipUrl){letflag=newRegExp("qq.com|iqiyi.com|youku.com|mgtv.com|bilibili.com|sohu.com|ixigua.com|pptv.com|miguvideo.com|le.com|1905.com|fun.tv");returnflag.test(vipUrl)}functionurlDeal(vipUrl){if(!vipUrl){return""}if(!是否正版(vipUrl)){returnvipUrl}if(!/miguvideo/.test(vipUrl)){vipUrl=vipUrl.split("#")[0].split("?")[0]}returnvipUrl}functionsetResult(d){if(!Array.isArray(d)){return[]}VODS=[];d.forEach(function(it){letobj={vod_id:it.url||"",vod_name:it.title||"",vod_remarks:it.desc||"",vod_content:it.content||"",vod_pic:it.pic_url||it.img||""};letkeys=Object.keys(it);if(keys.includes("tname")){obj.type_name=it.tname||""}if(keys.includes("tid")){obj.type_id=it.tid||Line truncated
importcheeriofrom"assets://js/lib/cheerio.min.js";import"assets://js/lib/crypto-js.js";import模板from"../js/模板.js";import{gbkTool}from"./gbk.js";functioninit_test(){console.log("init_test_start");console.log("当前版本号:"+VERSION);console.log(RKEY);console.log(JSON.stringify(rule));console.log("init_test_end")}functionpre(){if(typeofrule.预处理==="string"&&rule.预处理&&rule.预处理.trim()){letcode=rule.预处理.trim();console.log("执行预处理代码:"+code);if(code.startsWith("js:")){code=code.replace("js:","")}try{eval(code)}catch(e){console.log("预处理执行失败:"+e.message)}}}letrule={};letvercode=typeofpdfl==="function"?"drpy2.1":"drpy2";constVERSION=vercode+" 3.9.49beta38 202400414";constMOBILE_UA="Mozilla/5.0 (Linux; Android 11; M2007J3SC Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045714 Mobile Safari/537.36";constPC_UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";constUA="Mozilla/5.0";constUC_UA="Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36";constIOS_UA="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";constRULE_CK="cookie";constCATE_EXCLUDE="首页|留言|APP|下载|资讯|新闻|动态";constTAB_EXCLUDE="猜你|喜欢|下载|剧情|热播";constOCR_RETRY=3;constOCR_API="http://drpy.nokia.press:8028/ocr/drpy/text";if(typeofMY_URL==="undefined"){varMY_URL}varHOST;varRKEY;varfetch;varprint;varlog;varrule_fetch_params;varfetch_params;varoheaders;var_pdfh;var_pdfa;var_pd;constDOM_CHECK_ATTR=/(url|src|href|-original|-src|-play|-url|style)$/;constSPECIAL_URL=/^(ftp|magnet|thunder|ws):/;constNOADD_INDEX=/:eq|:lt|:gt|:first|:last|^body$|^#/;constURLJOIN_ATTR=/(url|src|href|-original|-src|-play|-url|style)$/;constSELECT_REGEX=/:eq|:lt|:gt|#/g;constSELECT_REGEX_A=/:eq|:lt|:gt/g;if(typeofObject.assign!="function"){Object.assign=function(){vartarget=arguments[0];for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}returntarget}}if(!String.prototype.includes){String.prototype.includes=function(search,start){if(typeofstart!=="number"){start=0}if(start+search.length>this.length){returnfalse}else{returnthis.indexOf(search,start)!==-1}}}if(!Array.prototype.includes){Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(this==null){thrownewTypeError('"this" is null or not defined')}varo=Object(this);varlen=o.length>>>0;if(len===0){returnfalse}varn=fromIndex|0;vark=Math.max(n>=0?n:len-Math.abs(n),0);while(k<len){if(o[k]===searchElement){returntrue}k++}returnfalse}})}if(typeofString.prototype.startsWith!="function"){String.prototype.startsWith=function(prefix){returnthis.slice(0,prefix.length)===prefix}}if(typeofString.prototype.endsWith!="function"){String.prototype.endsWith=function(suffix){returnthis.indexOf(suffix,this.length-suffix.length)!==-1}}Object.prototype.myValues=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres};if(typeofObject.prototype.values!="function"){Object.prototype.values=function(obj){if(obj==null){thrownewTypeError("Cannot convert undefined or null to object")}varres=[];for(varkinobj){if(obj.hasOwnProperty(k)){res.push(obj[k])}}returnres}}if(typeofArray.prototype.join!="function"){Array.prototype.join=function(emoji){emoji=emoji||"";letself=this;letstr="";leti=0;if(!Array.isArray(self)){throwString(self)+"is not Array"}if(self.length===0){return""}if(self.length===1){returnString(self[0])}i=1;str=this[0];for(;i<self.length;i++){str+=String(emoji)+String(self[i])}returnstr}}String.prototype.rstrip=function(chars){letregex=newRegExp(chars+"$");returnthis.replace(regex,"")};Array.prototype.append=Array.prototype.push;String.prototype.strip=String.prototype.trim;function是否正版(vipUrl){letflag=newRegExp("qq.com|iqiyi.com|youku.com|mgtv.com|bilibili.com|sohu.com|ixigua.com|pptv.com|miguvideo.com|le.com|1905.com|fun.tv");returnflag.test(vipUrl)}functionurlDeal(vipUrl){if(!vipUrl){return""}if(!是否正版(vipUrl)){returnvipUrl}if(!/miguvideo/.test(vipUrl)){vipUrl=vipUrl.split("#")[0].split("?")[0]}returnvipUrl}functionsetResult(d){if(!Array.isArray(d)){return[]}VODS=[];d.forEach(function(it){letobj={vod_id:it.url||"",vod_name:it.title||"",vod_remarks:it.desc||"",vod_content:it.content||"",vod_pic:it.pic_url||it.img||""};letkeys=Object.keys(it);if(keys.includes("tname")){obj.type_name=it.tname||""}if(keys.includes("tid")){obj.type_id=it.tidLine truncated
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.