varZK=Object.create;varM6=Object.defineProperty;vareY=Object.getOwnPropertyDescriptor;varnY=Object.getOwnPropertyNames;varlY=Object.getPrototypeOf,tY=Object.prototype.hasOwnProperty;varC=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Ox=(n,e)=>{for(varline)M6(n,l,{get:e[l],enumerable:!0})},Rx=(n,e,l,t)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofnY(e))!tY.call(n,r)&&r!==l&&M6(n,r,{get:()=>e[r],enumerable:!(t=eY(e,r))||t.enumerable});returnn};varxt=(n,e,l)=>(l=n!=null?ZK(lY(n)):{},Rx(e||!n||!n.__esModule?M6(l,"default",{value:n,enumerable:!0}):l,n)),rY=n=>Rx(M6({},"__esModule",{value:!0}),n);varIx=C((hbe,Nx)=>{"use strict";functioniY(n){vare=newn,l=e;functiont(){vari=e;returni.next?e=i.next:(e=newn,l=e),i.next=null,i}functionr(i){l.next=i,l=i}return{get:t,release:r}}Nx.exports=iY});varOp=C((mbe,wp)=>{"use strict";varsY=Ix();functionCx(n,e,l){if(typeofn=="function"&&(l=e,e=n,n=null),!(l>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");vart=sY(uY),r=null,i=null,s=0,u=null,a={push:_,drain:g3,saturated:g3,pause:f,paused:!1,getconcurrency(){returnl},setconcurrency(w){if(!(w>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(l=w,!a.paused)for(;r&&s<l;)s++,T()},running:c,resume:h,idle:g,length:p,getQueue:m,unshift:S,empty:g3,kill:x,killAndDrain:v,error:b};returna;functionc(){returns}functionf(){a.paused=!0}functionp(){for(varw=r,N=0;w;)w=w.next,N++;returnN}functionm(){for(varw=r,N=[];w;)N.push(w.value),w=w.next;returnN}functionh(){if(a.paused)for(a.paused=!1;r&&s<l;)s++,T()}functiong(){returns===0&&a.length()===0}function_(w,N){varR=t.get();R.context=n,R.release=T,R.value=w,R.callback=N||g3,R.errorHandler=u,s>=l||a.paused?i?(i.next=R,i=R):(r=R,i=R,a.saturated()):(s++,e.call(n,R.value,R.worked))}functionS(w,N){varR=t.get();R.context=n,R.release=T,R.value=w,R.callback=N||g3,R.errorHandler=u,s>=l||a.paused?r?(R.next=r,r=R):(r=R,i=R,a.saturated()):(s++,e.call(n,R.value,R.worked))}functionT(w){w&&t.release(w);varN=r;N&&s<=l?a.paused?s--:(i===r&&(i=null),r=N.next,N.next=null,e.call(n,N.value,N.worked),i===null&&a.empty()):--s===0&&a.drain()}functionx(){r=null,i=null,a.drain=g3}functionv(){r=null,i=null,a.drain(),a.drain=g3}functionb(w){u=w}}functiong3(){}functionuY(){this.value=null,this.callback=g3,this.next=null,this.release=g3,this.context=null,this.errorHandler=null;varn=this;this.worked=function(l,t){varr=n.callback,i=n.errorHandler,s=n.value;n.value=null,n.callback=g3,n.errorHandler&&i(l,s),r.call(n.context,l,t),n.release(n)}}functionaY(n,e,l){typeofn=="function"&&(l=e,e=n,n=null);functiont(f,p){e.call(this,f).then(function(m){p(null,m)},p)}varr=Cx(n,t,l),i=r.push,s=r.unshift;returnr.push=u,r.unshift=a,r.drained=c,r;functionu(f){varp=newPromise(function(m,h){i(f,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(g3),p}functiona(f){varp=newPromise(function(m,h){s(f,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(g3),p}functionc(){if(r.idle())returnnewPromise(function(m){m()});varf=r.drain,p=newPromise(function(m){r.drain=function(){f(),m()}});returnp}}wp.exports=Cx;wp.exports.promise=aY});varNp=C((gbe,kx)=>{"use strict";var{inherits:oY,format:Rp}=require("util");functioncu(n,e,l=Error){if(!n)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functiont(r,i,s){if(!new.target)returnnewt(r,i,s);Error.captureStackTrace(this,t),this.code=n,this.message=e,this.name="AvvioError",r&&i&&s?this.message=Rp(e,r,i,s):r&&i?this.message=Rp(e,r,i):r?this.message=Rp(e,r):this.message=e}returnt.prototype[Symbol.toStringTag]="Error",t.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},oY(t,l),t}kx.exports={createError:cu,AVV_ERR_EXPOSE_ALREADY_DEFINED:cu("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:cu("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:cu("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:cu("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:cu("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:cu("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varDx=C((ybe,Px)=>{Px.exports=functionn(e,l,t){l===void0&&(l=""),t||(t={});varr=function(a){varc={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnt.unicode===!1?c[a]:a};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
varcY=Object.create;varj6=Object.defineProperty;varfY=Object.getOwnPropertyDescriptor;varpY=Object.getOwnPropertyNames;vardY=Object.getPrototypeOf,hY=Object.prototype.hasOwnProperty;varC=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Cx=(n,e)=>{for(varline)j6(n,l,{get:e[l],enumerable:!0})},kx=(n,e,l,t)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofpY(e))!hY.call(n,r)&&r!==l&&j6(n,r,{get:()=>e[r],enumerable:!(t=fY(e,r))||t.enumerable});returnn};varAt=(n,e,l)=>(l=n!=null?cY(dY(n)):{},kx(e||!n||!n.__esModule?j6(l,"default",{value:n,enumerable:!0}):l,n)),mY=n=>kx(j6({},"__esModule",{value:!0}),n);varDx=C((wbe,Px)=>{"use strict";functiongY(n){vare=newn,l=e;functiont(){vari=e;returni.next?e=i.next:(e=newn,l=e),i.next=null,i}functionr(i){l.next=i,l=i}return{get:t,release:r}}Px.exports=gY});varRp=C((Obe,Np)=>{"use strict";varyY=Dx();functionLx(n,e,l){if(typeofn=="function"&&(l=e,e=n,n=null),!(l>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");vart=yY(vY),r=null,i=null,s=0,u=null,a={push:_,drain:y3,saturated:y3,pause:f,paused:!1,getconcurrency(){returnl},setconcurrency(w){if(!(w>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(l=w,!a.paused)for(;r&&s<l;)s++,T()},running:c,resume:h,idle:g,length:p,getQueue:m,unshift:S,empty:y3,kill:x,killAndDrain:v,error:b};returna;functionc(){returns}functionf(){a.paused=!0}functionp(){for(varw=r,R=0;w;)w=w.next,R++;returnR}functionm(){for(varw=r,R=[];w;)R.push(w.value),w=w.next;returnR}functionh(){if(a.paused)for(a.paused=!1;r&&s<l;)s++,T()}functiong(){returns===0&&a.length()===0}function_(w,R){varN=t.get();N.context=n,N.release=T,N.value=w,N.callback=R||y3,N.errorHandler=u,s>=l||a.paused?i?(i.next=N,i=N):(r=N,i=N,a.saturated()):(s++,e.call(n,N.value,N.worked))}functionS(w,R){varN=t.get();N.context=n,N.release=T,N.value=w,N.callback=R||y3,N.errorHandler=u,s>=l||a.paused?r?(N.next=r,r=N):(r=N,i=N,a.saturated()):(s++,e.call(n,N.value,N.worked))}functionT(w){w&&t.release(w);varR=r;R&&s<=l?a.paused?s--:(i===r&&(i=null),r=R.next,R.next=null,e.call(n,R.value,R.worked),i===null&&a.empty()):--s===0&&a.drain()}functionx(){r=null,i=null,a.drain=y3}functionv(){r=null,i=null,a.drain(),a.drain=y3}functionb(w){u=w}}functiony3(){}functionvY(){this.value=null,this.callback=y3,this.next=null,this.release=y3,this.context=null,this.errorHandler=null;varn=this;this.worked=function(l,t){varr=n.callback,i=n.errorHandler,s=n.value;n.value=null,n.callback=y3,n.errorHandler&&i(l,s),r.call(n.context,l,t),n.release(n)}}function_Y(n,e,l){typeofn=="function"&&(l=e,e=n,n=null);functiont(f,p){e.call(this,f).then(function(m){p(null,m)},p)}varr=Lx(n,t,l),i=r.push,s=r.unshift;returnr.push=u,r.unshift=a,r.drained=c,r;functionu(f){varp=newPromise(function(m,h){i(f,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(y3),p}functiona(f){varp=newPromise(function(m,h){s(f,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(y3),p}functionc(){if(r.idle())returnnewPromise(function(m){m()});varf=r.drain,p=newPromise(function(m){r.drain=function(){f(),m()}});returnp}}Np.exports=Lx;Np.exports.promise=_Y});varCp=C((Nbe,Fx)=>{"use strict";var{inherits:EY,format:Ip}=require("util");functionpu(n,e,l=Error){if(!n)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functiont(r,i,s){if(!new.target)returnnewt(r,i,s);Error.captureStackTrace(this,t),this.code=n,this.message=e,this.name="AvvioError",r&&i&&s?this.message=Ip(e,r,i,s):r&&i?this.message=Ip(e,r,i):r?this.message=Ip(e,r):this.message=e}returnt.prototype[Symbol.toStringTag]="Error",t.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},EY(t,l),t}Fx.exports={createError:pu,AVV_ERR_EXPOSE_ALREADY_DEFINED:pu("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:pu("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:pu("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:pu("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:pu("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:pu("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$x=C((Rbe,Mx)=>{Mx.exports=functionn(e,l,t){l===void0&&(l=""),t||(t={});varr=function(a){varc={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnt.unicode===!1?c[a]:a};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
deps:${l}}`};var aie={keyword:"dependencies",type:"object",schemaType:"object",error:_r.error,code(n){let[e,l]=oie(n);UN(n,e),BN(n,l)}};function oie({schema:n}){let e={},l={};for(let t in n){if(t==="__proto__")continue;let r=Array.isArray(n[t])?e:l;r[t]=n[t]}return[e,l]}function UN(n,e=n.schema){let{gen:l,data:t,it:r}=n;if(Object.keys(e).length===0)return;let i=l.let("missing");for(let s in e){let u=e[s];if(u.length===0)continue;let a=(0,F0.propertyInData)(l,t,s,r.opts.ownProperties);n.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),r.allErrors?l.if(a,()=>{for(let c of u)(0,F0.checkReportMissingProp)(n,c)}):(l.if((0,gm._)`${a}&&(${(0,F0.checkMissingProp)(n,u,i)})`),(0,F0.reportMissingProp)(n,i),l.else())}}_r.validatePropertyDeps=UN;function BN(n,e=n.schema){let{gen:l,data:t,keyword:r,it:i}=n,s=l.name("valid");for(let u in e)(0,uie.alwaysValidSchema)(i,e[u])||(l.if((0,F0.propertyInData)(l,t,u,i.opts.ownProperties),()=>{let a=n.subschema({keyword:r,schemaProp:u},s);n.mergeValidEvaluated(a,s)},()=>l.var(s,!0)),n.ok(s))}_r.validateSchemaDeps=BN;_r.default=aie});var VN=C(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var qN=Ze(),cie=En(),fie={message:"property name must be valid",params:({params:n})=>(0,qN._)`{propertyName:${n.propertyName}}`},pie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:fie,code(n){let{gen:e,schema:l,data:t,it:r}=n;if((0,cie.alwaysValidSchema)(r,l))return;let i=e.name("valid");e.forIn("key",t,s=>{n.setParams({propertyName:s}),n.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,qN.not)(i),()=>{n.error(!0),r.allErrors||e.break()})}),n.ok(i)}};ym.default=pie});var _m=C(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var H8=Kt(),z3=Ze(),die=_3(),q8=En(),hie={message:"must NOT have additional properties",params:({params:n})=>(0,z3._)`{additionalProperty:${n.additionalProperty}}`},mie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:hie,code(n){let{gen:e,schema:l,parentSchema:t,data:r,errsCount:i,it:s}=n;if(!i)throw new Error("ajv implementation error");let{allErrors:u,opts:a}=s;if(s.props=!0,a.removeAdditional!=="all"&&(0,q8.alwaysValidSchema)(s,l))return;let c=(0,H8.allSchemaProperties)(t.properties),f=(0,H8.allSchemaProperties)(t.patternProperties);p(),n.ok((0,z3._)`${i}===${die.default.errors}`);function p(){e.forIn("key",r,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,q8.schemaRefOrVal)(s,t.properties,"properties");T=(0,H8.isOwnProperty)(e,x,S)}else c.length?T=(0,z3.or)(...c.map(x=>(0,z3._)`${S}===${x}`)):T=z3.nil;return f.length&&(T=(0,z3.or)(T,...f.map(x=>(0,z3._)`${(0,H8.usePattern)(n,x)}.test(${S})`))),(0,z3.not)(T)}function h(S){e.code((0,z3._)`delete${r}[${S}]`)}function g(S){if(a.removeAdditional==="all"||a.removeAdditional&&l===!1){h(S);return}if(l===!1){n.setParams({additionalProperty:S}),n.error(),u||e.break();return}if(typeof l=="object"&&!(0,q8.alwaysValidSchema)(s,l)){let T=e.name("valid");a.removeAdditional==="failing"?(_(S,T,!1),e.if((0,z3.not)(T),()=>{n.reset(),h(S)})):(_(S,T),u||e.if((0,z3.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:q8.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(v,T)}}};vm.default=mie});var XN=C(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var gie=eo(),zN=Kt(),Em=En(),GN=_m(),yie={keyword:"properties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,parentSchema:t,data:r,it:i}=n;i.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&GN.default.code(new gie.KeywordCxt(i,GN.default,"additionalProperties"));let s=(0,zN.allSchemaProperties)(l);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Em.mergeEvaluated.props(e,(0,Em.toHash)(s),i.props));let u=s.filter(p=>!(0,Em.alwaysValidSchema)(i,l[p]));if(u.length===0)return;let a=e.name("valid");for(let p of u)c(p)?f(p):(e.if((0,zN.propertyInData)(e,r,p,i.opts.ownProperties)),f(p),i.allErrors||e.else().var(a,!0),e.endIf()),n.it.definedProperties.add(p),n.ok(a);function c(p){return i.opts.useDefaults&&!i.compositeRule&&l[p].default!==void 0}function f(p){n.subschema({keyword:"properties",schemaProp:p,dataProp:p},a)}}};bm.default=yie});var JN=C(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var WN=Kt(),V8=Ze(),KN=En(),YN=En(),vie={keyword:"patternProperties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,data:t,parentSchema:r,it:i}=n,{opts:s}=i,u=(0,WN.allSchemaProperties)(l),a=u.filter(_=>(0,KN.alwaysValidSchema)(i,l[_]));if(u.length===0||a.length===u.length&&(!i.opts.unevaluated||i.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,f=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
deps:${l}}`};var _ie={keyword:"dependencies",type:"object",schemaType:"object",error:Er.error,code(n){let[e,l]=Eie(n);VR(n,e),zR(n,l)}};function Eie({schema:n}){let e={},l={};for(let t in n){if(t==="__proto__")continue;let r=Array.isArray(n[t])?e:l;r[t]=n[t]}return[e,l]}function VR(n,e=n.schema){let{gen:l,data:t,it:r}=n;if(Object.keys(e).length===0)return;let i=l.let("missing");for(let s in e){let u=e[s];if(u.length===0)continue;let a=(0,$0.propertyInData)(l,t,s,r.opts.ownProperties);n.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),r.allErrors?l.if(a,()=>{for(let c of u)(0,$0.checkReportMissingProp)(n,c)}):(l.if((0,vm._)`${a}&&(${(0,$0.checkMissingProp)(n,u,i)})`),(0,$0.reportMissingProp)(n,i),l.else())}}Er.validatePropertyDeps=VR;function zR(n,e=n.schema){let{gen:l,data:t,keyword:r,it:i}=n,s=l.name("valid");for(let u in e)(0,vie.alwaysValidSchema)(i,e[u])||(l.if((0,$0.propertyInData)(l,t,u,i.opts.ownProperties),()=>{let a=n.subschema({keyword:r,schemaProp:u},s);n.mergeValidEvaluated(a,s)},()=>l.var(s,!0)),n.ok(s))}Er.validateSchemaDeps=zR;Er.default=_ie});var WR=C(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var XR=Ze(),bie=En(),Tie={message:"property name must be valid",params:({params:n})=>(0,XR._)`{propertyName:${n.propertyName}}`},Sie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Tie,code(n){let{gen:e,schema:l,data:t,it:r}=n;if((0,bie.alwaysValidSchema)(r,l))return;let i=e.name("valid");e.forIn("key",t,s=>{n.setParams({propertyName:s}),n.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,XR.not)(i),()=>{n.error(!0),r.allErrors||e.break()})}),n.ok(i)}};_m.default=Sie});var bm=C(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var V8=Yt(),G3=Ze(),xie=E3(),z8=En(),Aie={message:"must NOT have additional properties",params:({params:n})=>(0,G3._)`{additionalProperty:${n.additionalProperty}}`},wie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Aie,code(n){let{gen:e,schema:l,parentSchema:t,data:r,errsCount:i,it:s}=n;if(!i)throw new Error("ajv implementation error");let{allErrors:u,opts:a}=s;if(s.props=!0,a.removeAdditional!=="all"&&(0,z8.alwaysValidSchema)(s,l))return;let c=(0,V8.allSchemaProperties)(t.properties),f=(0,V8.allSchemaProperties)(t.patternProperties);p(),n.ok((0,G3._)`${i}===${xie.default.errors}`);function p(){e.forIn("key",r,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,z8.schemaRefOrVal)(s,t.properties,"properties");T=(0,V8.isOwnProperty)(e,x,S)}else c.length?T=(0,G3.or)(...c.map(x=>(0,G3._)`${S}===${x}`)):T=G3.nil;return f.length&&(T=(0,G3.or)(T,...f.map(x=>(0,G3._)`${(0,V8.usePattern)(n,x)}.test(${S})`))),(0,G3.not)(T)}function h(S){e.code((0,G3._)`delete${r}[${S}]`)}function g(S){if(a.removeAdditional==="all"||a.removeAdditional&&l===!1){h(S);return}if(l===!1){n.setParams({additionalProperty:S}),n.error(),u||e.break();return}if(typeof l=="object"&&!(0,z8.alwaysValidSchema)(s,l)){let T=e.name("valid");a.removeAdditional==="failing"?(_(S,T,!1),e.if((0,G3.not)(T),()=>{n.reset(),h(S)})):(_(S,T),u||e.if((0,G3.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:z8.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(v,T)}}};Em.default=wie});var JR=C(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var Oie=lo(),KR=Yt(),Tm=En(),YR=bm(),Nie={keyword:"properties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,parentSchema:t,data:r,it:i}=n;i.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&YR.default.code(new Oie.KeywordCxt(i,YR.default,"additionalProperties"));let s=(0,KR.allSchemaProperties)(l);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Tm.mergeEvaluated.props(e,(0,Tm.toHash)(s),i.props));let u=s.filter(p=>!(0,Tm.alwaysValidSchema)(i,l[p]));if(u.length===0)return;let a=e.name("valid");for(let p of u)c(p)?f(p):(e.if((0,KR.propertyInData)(e,r,p,i.opts.ownProperties)),f(p),i.allErrors||e.else().var(a,!0),e.endIf()),n.it.definedProperties.add(p),n.ok(a);function c(p){return i.opts.useDefaults&&!i.compositeRule&&l[p].default!==void 0}function f(p){n.subschema({keyword:"properties",schemaProp:p,dataProp:p},a)}}};Sm.default=Nie});var nI=C(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var QR=Yt(),G8=Ze(),ZR=En(),eI=En(),Rie={keyword:"patternProperties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,data:t,parentSchema:r,it:i}=n,{opts:s}=i,u=(0,QR.allSchemaProperties)(l),a=u.filter(_=>(0,ZR.alwaysValidSchema)(i,l[_]));if(u.length===0||a.length===u.length&&(!i.opts.unevaluated||i.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,f=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
`;let u=new F1e(e),a=new M1e(e.ajv);for(let f of l.validatorSchemasIds){let p=l.refResolver.getSchema(f);a.addSchema(p,f);let m=l.refResolver.getSchemaDependencies(f);for(let[h,g]of Object.entries(m))a.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:a,serializer:u,code:`validator
`;let u=new X1e(e),a=new W1e(e.ajv);for(let f of l.validatorSchemasIds){let p=l.refResolver.getSchema(f);a.addSchema(p,f);let m=l.refResolver.getSchemaDependencies(f);for(let[h,g]of Object.entries(m))a.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:a,serializer:u,code:`validator
serializer
${s}`,ajv:a.ajv};let c=new Function("validator","serializer",s);return e.mode==="standalone"?Ym()(c,l,u,a):c(a,u)}var U1e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],B1e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],H1e=["maxLength","minLength","pattern"],q1e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function mD(n){for(var e of U1e)if(e in n)return"object";for(var e of B1e)if(e in n)return"array";for(var e of H1e)if(e in n)return"string";for(var e of q1e)if(e in n)return"number";return n.type}function V1e(n,e){let l=e.schema,t=Object.keys(l.properties||{}),r=`
${s}`,ajv:a.ajv};let c=new Function("validator","serializer",s);return e.mode==="standalone"?Qm()(c,l,u,a):c(a,u)}var J1e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],Q1e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],Z1e=["maxLength","minLength","pattern"],e5e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function _D(n){for(var e of J1e)if(e in n)return"object";for(var e of Q1e)if(e in n)return"array";for(var e of Z1e)if(e in n)return"string";for(var e of e5e)if(e in n)return"number";return n.type}function n5e(n,e){let l=e.schema,t=Object.keys(l.properties||{}),r=`
`,r}function z1e(n,e){let l="",t=e.schema,r=t.required||[],i=e.getPropertyLocation("properties"),s=[],u=[];if(t.properties)for(let c of Object.keys(t.properties)){if(r.indexOf(c)===-1)continue;let f=i.getPropertyLocation(c);f.schema.$ref&&(f=vo(n,e,f.schema.$ref));let p=JSON.stringify(c);f.schema.default===void 0&&(l+=`if(obj[${p}]===undefined)thrownewError('${p} is required!')
`,r}function l5e(n,e){let l="",t=e.schema,r=t.required||[],i=e.getPropertyLocation("properties"),s=[],u=[];if(t.properties)for(let c of Object.keys(t.properties)){if(r.indexOf(c)===-1)continue;let f=i.getPropertyLocation(c);f.schema.$ref&&(f=Eo(n,e,f.schema.$ref));let p=JSON.stringify(c);f.schema.default===void 0&&(l+=`if(obj[${p}]===undefined)thrownewError('${p} is required!')
`,u.push(c)),s.push(c)}for(let c of r)s.indexOf(c)===-1&&(l+=`if(obj['${c}']===undefined)thrownewError('"${c}" is required!')
`);l+=`
letaddComma=false
letjson='${n.wrapObjects?"{":""}'
`;let a=n.wrapObjects;if(n.wrapObjects=!0,t.properties)for(let c of Object.keys(t.properties)){let f=i.getPropertyLocation(c);f.schema.$ref&&(f=vo(n,e,f.schema.$ref));let p=JSON.stringify(c);if(u.indexOf(c)!==-1)l+=`
${yo}
`;let a=n.wrapObjects;if(n.wrapObjects=!0,t.properties)for(let c of Object.keys(t.properties)){let f=i.getPropertyLocation(c);f.schema.$ref&&(f=Eo(n,e,f.schema.$ref));let p=JSON.stringify(c);if(u.indexOf(c)!==-1)l+=`
${e}`)}function W9(n,e,l,t){if((n.isLeafNode||t.commonPrefix!==!1)&&(l=l||"(empty root node)",e=e[l]={},n.isLeafNode&&(e[vF]=W8e(n,l,t)),l=""),n.staticChildren)for(let r of Object.values(n.staticChildren))W9(r,e,l+r.prefix,t);if(n.parametricChildren)for(let r of Object.values(n.parametricChildren)){let i=Array.from(r.nodePaths).join("|");W9(r,e,l+i,t)}n.wildcardChild&&W9(n.wildcardChild,e,"*",t)}function K8e(n,e){let l={};return W9(n,l,n.prefix,e),_F(l)}bF.exports={prettyPrintTree:K8e}});var xF=C((BAe,SF)=>{"use strict";var Y8e=X9(),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,l){let t=l.params,r=l.opts.constraints||{},i={params:t,constraints:r,handler:l.handler,store:l.store||null,_createParamsObject:this._compileCreateParamsObject(t)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let a of s)this.constraints.includes(a)||(a==="version"?this.constraints.unshift(a):this.constraints.push(a));let u=s.includes(Y8e.name);if(!u&&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((a,c)=>Object.keys(a.constraints).length-Object.keys(c.constraints).length),u||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let l=[];for(let t=0;t<e.length;t++)l.push(`'${e[t]}':paramsArray[${t}]`);return new Function("paramsArray",`return{${l.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,l){for(let t=0;t<this.handlers.length;t++){let i=this.handlers[t].constraints[l];if(i!==void 0){let s=e.get(i)||0;s|=1<<t,e.set(i,s)}}}_constrainedIndexBitmask(e){let l=0;for(let t=0;t<this.handlers.length;t++)this.handlers[t].constraints[e]!==void 0&&(l|=1<<t);return~l}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let t of this.constraints){let r=e.newStoreForConstraint(t);this.constrainedHandlerStores[t]=r,this._buildConstraintStore(r,t)}let l=[];l.push(`
`,l+=SF(s,e+c)}return l}function Z8e(n){let e=n.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function xF(n){return Array.isArray(n)?n.map(e=>xF(e)):typeof n=="symbol"?n.toString():typeof n=="function"?Z8e(n):n}function e9e(n,e){if(!e.includeMeta)return{};let l=e.buildPrettyMeta(n),t={},r=e.includeMeta;Array.isArray(r)||(r=Reflect.ownKeys(l));for(let i of r){if(!Object.prototype.hasOwnProperty.call(l,i))continue;let s=i.toString(),u=l[i];if(u!=null){let a=JSON.stringify(xF(u));t[s]=a}}return t}function n9e(n){let e="";for(let[l,t]of Object.entries(n))e+=`
${e}`)}function Y9(n,e,l,t){if((n.isLeafNode||t.commonPrefix!==!1)&&(l=l||"(empty root node)",e=e[l]={},n.isLeafNode&&(e[TF]=i9e(n,l,t)),l=""),n.staticChildren)for(let r of Object.values(n.staticChildren))Y9(r,e,l+r.prefix,t);if(n.parametricChildren)for(let r of Object.values(n.parametricChildren)){let i=Array.from(r.nodePaths).join("|");Y9(r,e,l+i,t)}n.wildcardChild&&Y9(n.wildcardChild,e,"*",t)}function s9e(n,e){let l={};return Y9(n,l,n.prefix,e),SF(l)}AF.exports={prettyPrintTree:s9e}});var NF=C((ZAe,OF)=>{"use strict";var u9e=K9(),Qy=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,l){let t=l.params,r=l.opts.constraints||{},i={params:t,constraints:r,handler:l.handler,store:l.store||null,_createParamsObject:this._compileCreateParamsObject(t)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let a of s)this.constraints.includes(a)||(a==="version"?this.constraints.unshift(a):this.constraints.push(a));let u=s.includes(u9e.name);if(!u&&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((a,c)=>Object.keys(a.constraints).length-Object.keys(c.constraints).length),u||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let l=[];for(let t=0;t<e.length;t++)l.push(`'${e[t]}':paramsArray[${t}]`);return new Function("paramsArray",`return{${l.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,l){for(let t=0;t<this.handlers.length;t++){let i=this.handlers[t].constraints[l];if(i!==void 0){let s=e.get(i)||0;s|=1<<t,e.set(i,s)}}}_constrainedIndexBitmask(e){let l=0;for(let t=0;t<this.handlers.length;t++)this.handlers[t].constraints[e]!==void 0&&(l|=1<<t);return~l}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let t of this.constraints){let r=e.newStoreForConstraint(t);this.constrainedHandlerStores[t]=r,this._buildConstraintStore(r,t)}let l=[];l.push(`
`)}for(let t in e.strategies)e.strategies[t].mustMatchWhenDerived&&!this.constraints.includes(t)&&l.push(`if(derivedConstraints.${t}!==undefined)returnnull`);l.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",l.join(`
`))}};SF.exports=Yy});var wF=C((HAe,AF)=>{"use strict";var J8e=xF(),e7={STATIC:0,PARAMETRIC:1,WILDCARD:2},K9=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,l){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new J8e),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(l,e)}},Y9=class extends K9{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,l){let t=this.staticChildren[e.charAt(l)];return t===void 0||!t.matchPrefix(e,l)?null:t}getStaticChild(e,l=0){if(e.length===l)return this;let t=this.findStaticMatchingChild(e,l);return t?t.getStaticChild(e,l+t.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let l=this.staticChildren[e.charAt(0)];if(l){let r=1;for(;r<l.prefix.length;r++)if(e.charCodeAt(r)!==l.prefix.charCodeAt(r)){l=l.split(this,r);break}return l.createStaticChild(e.slice(r))}let t=e.charAt(0);return this.staticChildren[t]=new J9(e),this.staticChildren[t]}},J9=class n extends Y9{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=e7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let l=e&&e.source,t=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===l);return t||null}createParametricChild(e,l,t){let r=this.getParametricChild(e);return r?(r.nodePaths.add(t),r):(r=new Q9(e,l,t),this.parametricChildren.push(r),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),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new Z9,this.wildcardChild}split(e,l){let t=this.prefix.slice(0,l),r=this.prefix.slice(l);this.prefix=r,this._compilePrefixMatch();let i=new n(t);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[t.charAt(0)]=i,i}getNextNode(e,l,t,r){let i=this.findStaticMatchingChild(e,l),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.wildcardChild});for(let u=this.parametricChildren.length-1;u>=s;u--)t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.parametricChildren[u]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let l=1;l<this.prefix.length;l++){let t=this.prefix.charCodeAt(l);e.push(`path.charCodeAt(i+${l})===${t}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},Q9=class extends Y9{constructor(e,l,t){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=l||null,this.kind=e7.PARAMETRIC,this.nodePaths=new Set([t])}getNextNode(e,l){return this.findStaticMatchingChild(e,l)}},Z9=class extends K9{constructor(){super(),this.kind=e7.WILDCARD}getNextNode(){return null}};AF.exports={StaticNode:J9,ParametricNode:Q9,WildcardNode:Z9,NODE_TYPES:e7}});var RF=C((qAe,OF)=>{"use strict";var Q8e=require("assert");function v1(){if(!(this instanceof v1))return new v1;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}v1.prototype.set=function(n,e){if(typeof n!="string")throw new TypeError("Version should be a string");let[l,t,r]=n.split(".");return l=Number(l)||0,t=Number(t)||0,r=Number(r)||0,l>=this.maxMajor&&(this.maxMajor=l,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),t>=(this.maxMinors[l]||0)&&(this.maxMinors[l]=t,this.store[`${l}.x`]=e,this.store[`${l}.x.x`]=e),r>=(this.store[`${l}.${t}`]||0)&&(this.maxPatches[`${l}.${t}`]=r,this.store[`${l}.${t}.x`]=e),this.store[`${l}.${t}.${r}`]=e,this};v1.prototype.get=function(n){return this.store[n]};OF.exports={name:"version",mustMatchWhenDerived:!0,storage:v1,validate(n){Q8e(typeof n=="string","Version should be a string")}}});var IF=C((VAe,NF)=>{"use strict";var Z8e=require("assert");function e9e(){let n={},e=[];return{get:l=>{let t=n[l];if(t)return t;for(let r of e)if(r.host.test(l))return r.value},set:(l,t)=>{l instanceof RegExp?e.push({host:l,value:t}):n[l]=t}}}NF.exports={name:"host",mustMatchWhenDerived:!1,storage:e9e,validate(n){Z8e(typeof n=="string"||Object.prototype.toString.call(n)==="[object RegExp]","Host should be a string or a RegExp")}}});var kF=C((zAe,CF)=>{"use strict";var n9e=RF(),l9e=IF(),Jy=require("assert"),Qy=class{constructor(e){if(this.strategies={version:n9e,host:l9e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let l of Object.values(e))this.addConstraintStrategy(l)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let l=this.strategies[e];return l!==void 0?l.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(Jy(typeof e.name=="string"&&e.name!=="","strategy.name is required."),Jy(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};CF.exports=Qy});var DF=C((GAe,PF)=>{"use strict";var t9e=["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"];PF.exports=t9e});var MF=C((XAe,FF)=>{"use strict";function LF(n,e){return n===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:n===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:n===52&&e===48?"@":null}function r9e(n,e){let l=!1,t=!1,r="";for(let s=1;s<n.length;s++){let u=n.charCodeAt(s);if(u===37){let a=n.charCodeAt(s+1),c=n.charCodeAt(s+2);LF(a,c)===null?l=!0:(t=!0,a===50&&c===53&&(l=!0,n=n.slice(0,s+1)+"25"+n.slice(s+1),s+=2),s+=2)}else if(u===63||u===35||u===59&&e){r=n.slice(s+1),n=n.slice(0,s);break}}return{path:l?decodeURI(n):n,querystring:r,shouldDecodeParam:t}}function i9e(n){let e=n.indexOf("%");if(e===-1)return n;let l="",t=e;for(let r=e;r<n.length;r++)if(n.charCodeAt(r)===37){let i=n.charCodeAt(r+1),s=n.charCodeAt(r+2),u=LF(i,s);l+=n.slice(t,r)+u,t=r+3}return n.slice(0,e)+l+n.slice(t)}FF.exports={safeDecodeURI:r9e,safeDecodeURIComponent:i9e}});var rv=C((WAe,VF)=>{"use strict";var ft=require("assert"),s9e=rF(),n7=hF(),nv=Qa(),{prettyPrintTree:u9e}=TF(),{StaticNode:$F,NODE_TYPES:Zy}=wF(),a9e=kF(),Co=DF(),ev=X9(),{safeDecodeURI:o9e,safeDecodeURIComponent:jF}=MF(),UF=/^https?:\/\/.*?\//,Mu=/(\/:[^/()]*?)\?(\/?)/;if(!n7(UF))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!n7(Mu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Gl(n){if(!(this instanceof Gl))return new Gl(n);n=n||{},this._opts=n,n.defaultRoute?(ft(typeof n.defaultRoute=="function","The default route must be a function"),this.defaultRoute=n.defaultRoute):this.defaultRoute=null,n.onBadUrl?(ft(typeof n.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=n.onBadUrl):this.onBadUrl=null,n.buildPrettyMeta?(ft(typeof n.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=n.buildPrettyMeta):this.buildPrettyMeta=c9e,n.querystringParser?(ft(typeof n.querystringParser=="function","querystringParser must be a function"),this.querystringParser=n.querystringParser):this.querystringParser=e=>e===""?{}:s9e.parse(e),this.caseSensitive=n.caseSensitive===void 0?!0:n.caseSensitive,this.ignoreTrailingSlash=n.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=n.ignoreDuplicateSlashes||!1,this.maxParamLength=n.maxParamLength||100,this.allowUnsafeRegex=n.allowUnsafeRegex||!1,this.constrainer=new a9e(n.constraints),this.useSemicolonDelimiter=n.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Gl.prototype.on=function(e,l,t,r,i){typeof t=="function"&&(r!==void 0&&(i=r),r=t,t={}),ft(typeof l=="string","Path should be a string"),ft(l.length>0,"The path could not be empty"),ft(l[0]==="/"||l[0]==="*","The first character of a path should be `/` or `*`"),ft(typeof r=="function","Handler should be a function");let s=l.match(Mu);if(s){ft(l.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let c=l.replace(Mu,"$1$2"),f=l.replace(Mu,"$2");this.on(e,c,t,r,i),this.on(e,f,t,r,i);return}let u=l;this.ignoreDuplicateSlashes&&(l=lv(l)),this.ignoreTrailingSlash&&(l=tv(l));let a=Array.isArray(e)?e:[e];for(let c of a)ft(typeof c=="string","Method should be a string"),ft(Co.includes(c),`Method'${c}'isnotanhttpmethod.`),this._on(c,l,t,r,i,u)};Gl.prototype._on=function(e,l,t,r,i){let s={};t.constraints!==void 0&&(ft(typeof t.constraints=="object"&&t.constraints!==null,"Constraints should be an object"),Object.keys(t.constraints).length!==0&&(s=t.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new $F("/"));let u=l;if(u==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new $F(""),this.trees[e].staticChildren["/"]=m}let a=this.trees[e],c=a.prefix.length,f=[];for(let m=0;m<=u.length;m++){if(u.charCodeAt(m)===58&&u.charCodeAt(m+1)===58){m++;continue}let h=u.charCodeAt(m)===58&&u.charCodeAt(m+1)!==58,g=u.charCodeAt(m)===42;if(h||g||m===u.length&&m!==c){let _=u.slice(c,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),a=a.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=u.charCodeAt(x),b=v===40,w=v===45||v===46,N=v===47||x===u.length;if(b||w||N){let R=u.slice(T,x);if(f.push(R),_=_||b||w,b){let L=qF(u,x),Q=u.slice(x,L+1);this.allowUnsafeRegex||ft(n7(new RegExp(Q)),`Theregex'${Q}'isnotsafe!`),S.push(HF(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x<u.length;x++){let L=u.charCodeAt(x);if(L===47)break;if(L===58)if(u.charCodeAt(x+1)===58)x++;else break}let j=u.slice(k,x);if(j&&(j=
Line truncated
`))}};OF.exports=Qy});var IF=C((ewe,RF)=>{"use strict";var a9e=NF(),l7={STATIC:0,PARAMETRIC:1,WILDCARD:2},J9=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,l){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new a9e),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(l,e)}},Q9=class extends J9{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,l){let t=this.staticChildren[e.charAt(l)];return t===void 0||!t.matchPrefix(e,l)?null:t}getStaticChild(e,l=0){if(e.length===l)return this;let t=this.findStaticMatchingChild(e,l);return t?t.getStaticChild(e,l+t.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let l=this.staticChildren[e.charAt(0)];if(l){let r=1;for(;r<l.prefix.length;r++)if(e.charCodeAt(r)!==l.prefix.charCodeAt(r)){l=l.split(this,r);break}return l.createStaticChild(e.slice(r))}let t=e.charAt(0);return this.staticChildren[t]=new Z9(e),this.staticChildren[t]}},Z9=class n extends Q9{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=l7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let l=e&&e.source,t=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===l);return t||null}createParametricChild(e,l,t){let r=this.getParametricChild(e);return r?(r.nodePaths.add(t),r):(r=new e7(e,l,t),this.parametricChildren.push(r),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),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new n7,this.wildcardChild}split(e,l){let t=this.prefix.slice(0,l),r=this.prefix.slice(l);this.prefix=r,this._compilePrefixMatch();let i=new n(t);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[t.charAt(0)]=i,i}getNextNode(e,l,t,r){let i=this.findStaticMatchingChild(e,l),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.wildcardChild});for(let u=this.parametricChildren.length-1;u>=s;u--)t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.parametricChildren[u]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let l=1;l<this.prefix.length;l++){let t=this.prefix.charCodeAt(l);e.push(`path.charCodeAt(i+${l})===${t}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},e7=class extends Q9{constructor(e,l,t){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=l||null,this.kind=l7.PARAMETRIC,this.nodePaths=new Set([t])}getNextNode(e,l){return this.findStaticMatchingChild(e,l)}},n7=class extends J9{constructor(){super(),this.kind=l7.WILDCARD}getNextNode(){return null}};RF.exports={StaticNode:Z9,ParametricNode:e7,WildcardNode:n7,NODE_TYPES:l7}});var kF=C((nwe,CF)=>{"use strict";var o9e=require("assert");function E1(){if(!(this instanceof E1))return new E1;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}E1.prototype.set=function(n,e){if(typeof n!="string")throw new TypeError("Version should be a string");let[l,t,r]=n.split(".");return l=Number(l)||0,t=Number(t)||0,r=Number(r)||0,l>=this.maxMajor&&(this.maxMajor=l,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),t>=(this.maxMinors[l]||0)&&(this.maxMinors[l]=t,this.store[`${l}.x`]=e,this.store[`${l}.x.x`]=e),r>=(this.store[`${l}.${t}`]||0)&&(this.maxPatches[`${l}.${t}`]=r,this.store[`${l}.${t}.x`]=e),this.store[`${l}.${t}.${r}`]=e,this};E1.prototype.get=function(n){return this.store[n]};CF.exports={name:"version",mustMatchWhenDerived:!0,storage:E1,validate(n){o9e(typeof n=="string","Version should be a string")}}});var DF=C((lwe,PF)=>{"use strict";var c9e=require("assert");function f9e(){let n={},e=[];return{get:l=>{let t=n[l];if(t)return t;for(let r of e)if(r.host.test(l))return r.value},set:(l,t)=>{l instanceof RegExp?e.push({host:l,value:t}):n[l]=t}}}PF.exports={name:"host",mustMatchWhenDerived:!1,storage:f9e,validate(n){c9e(typeof n=="string"||Object.prototype.toString.call(n)==="[object RegExp]","Host should be a string or a RegExp")}}});var FF=C((twe,LF)=>{"use strict";var p9e=kF(),d9e=DF(),Zy=require("assert"),ev=class{constructor(e){if(this.strategies={version:p9e,host:d9e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let l of Object.values(e))this.addConstraintStrategy(l)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let l=this.strategies[e];return l!==void 0?l.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(Zy(typeof e.name=="string"&&e.name!=="","strategy.name is required."),Zy(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};LF.exports=ev});var $F=C((rwe,MF)=>{"use strict";var h9e=["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"];MF.exports=h9e});var BF=C((iwe,UF)=>{"use strict";function jF(n,e){return n===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:n===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:n===52&&e===48?"@":null}function m9e(n,e){let l=!1,t=!1,r="";for(let s=1;s<n.length;s++){let u=n.charCodeAt(s);if(u===37){let a=n.charCodeAt(s+1),c=n.charCodeAt(s+2);jF(a,c)===null?l=!0:(t=!0,a===50&&c===53&&(l=!0,n=n.slice(0,s+1)+"25"+n.slice(s+1),s+=2),s+=2)}else if(u===63||u===35||u===59&&e){r=n.slice(s+1),n=n.slice(0,s);break}}return{path:l?decodeURI(n):n,querystring:r,shouldDecodeParam:t}}function g9e(n){let e=n.indexOf("%");if(e===-1)return n;let l="",t=e;for(let r=e;r<n.length;r++)if(n.charCodeAt(r)===37){let i=n.charCodeAt(r+1),s=n.charCodeAt(r+2),u=jF(i,s);l+=n.slice(t,r)+u,t=r+3}return n.slice(0,e)+l+n.slice(t)}UF.exports={safeDecodeURI:m9e,safeDecodeURIComponent:g9e}});var sv=C((swe,WF)=>{"use strict";var dt=require("assert"),y9e=aF(),t7=vF(),tv=eo(),{prettyPrintTree:v9e}=wF(),{StaticNode:HF,NODE_TYPES:nv}=IF(),_9e=FF(),Po=$F(),lv=K9(),{safeDecodeURI:E9e,safeDecodeURIComponent:qF}=BF(),VF=/^https?:\/\/.*?\//,ju=/(\/:[^/()]*?)\?(\/?)/;if(!t7(VF))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!t7(ju))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Kl(n){if(!(this instanceof Kl))return new Kl(n);n=n||{},this._opts=n,n.defaultRoute?(dt(typeof n.defaultRoute=="function","The default route must be a function"),this.defaultRoute=n.defaultRoute):this.defaultRoute=null,n.onBadUrl?(dt(typeof n.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=n.onBadUrl):this.onBadUrl=null,n.buildPrettyMeta?(dt(typeof n.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=n.buildPrettyMeta):this.buildPrettyMeta=b9e,n.querystringParser?(dt(typeof n.querystringParser=="function","querystringParser must be a function"),this.querystringParser=n.querystringParser):this.querystringParser=e=>e===""?{}:y9e.parse(e),this.caseSensitive=n.caseSensitive===void 0?!0:n.caseSensitive,this.ignoreTrailingSlash=n.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=n.ignoreDuplicateSlashes||!1,this.maxParamLength=n.maxParamLength||100,this.allowUnsafeRegex=n.allowUnsafeRegex||!1,this.constrainer=new _9e(n.constraints),this.useSemicolonDelimiter=n.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Kl.prototype.on=function(e,l,t,r,i){typeof t=="function"&&(r!==void 0&&(i=r),r=t,t={}),dt(typeof l=="string","Path should be a string"),dt(l.length>0,"The path could not be empty"),dt(l[0]==="/"||l[0]==="*","The first character of a path should be `/` or `*`"),dt(typeof r=="function","Handler should be a function");let s=l.match(ju);if(s){dt(l.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let c=l.replace(ju,"$1$2"),f=l.replace(ju,"$2");this.on(e,c,t,r,i),this.on(e,f,t,r,i);return}let u=l;this.ignoreDuplicateSlashes&&(l=rv(l)),this.ignoreTrailingSlash&&(l=iv(l));let a=Array.isArray(e)?e:[e];for(let c of a)dt(typeof c=="string","Method should be a string"),dt(Po.includes(c),`Method'${c}'isnotanhttpmethod.`),this._on(c,l,t,r,i,u)};Kl.prototype._on=function(e,l,t,r,i){let s={};t.constraints!==void 0&&(dt(typeof t.constraints=="object"&&t.constraints!==null,"Constraints should be an object"),Object.keys(t.constraints).length!==0&&(s=t.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new HF("/"));let u=l;if(u==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new HF(""),this.trees[e].staticChildren["/"]=m}let a=this.trees[e],c=a.prefix.length,f=[];for(let m=0;m<=u.length;m++){if(u.charCodeAt(m)===58&&u.charCodeAt(m+1)===58){m++;continue}let h=u.charCodeAt(m)===58&&u.charCodeAt(m+1)!==58,g=u.charCodeAt(m)===42;if(h||g||m===u.length&&m!==c){let _=u.slice(c,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),a=a.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=u.charCodeAt(x),b=v===40,w=v===45||v===46,R=v===47||x===u.length;if(b||w||R){let N=u.slice(T,x);if(f.push(N),_=_||b||w,b){let L=XF(u,x),Q=u.slice(x,L+1);this.allowUnsafeRegex||dt(t7(new RegExp(Q)),`Theregex'${Q}'isnotsafe!`),S.push(GF(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x<u.length;x++){let L=u.charCodeAt(x);if(L===47)break;if(L===58)if(u.charCodeAt(x+1)===58)x++;else break}let j=u.slice(k,x);if(j&&(j=
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])"},qj={};function Vj(n,e){var l=e.getSiblings(n);return l.length<=1||(n=l.indexOf(n))<0||n===l.length-1?[]:l.slice(n+1).filter(e.isTag)}function a_(n){return{xmlMode:!!n.xmlMode,lowerCaseAttributeNames:!!n.lowerCaseAttributeNames,lowerCaseTags:!!n.lowerCaseTags,quirksMode:!!n.quirksMode,cacheResults:!!n.cacheResults,pseudos:n.pseudos,adapter:n.adapter,equals:n.equals}}var jv=(n,e,l,t,r)=>{let i=r(e,a_(l),t);return i===wn.trueFunc?n:i===wn.falseFunc?wn.falseFunc:s=>i(s)&&n(s)},Uv={is:jv,matches:jv,where:jv,not(n,e,l,t,r){let i=r(e,a_(l),t);return i===wn.falseFunc?n:i===wn.trueFunc?wn.falseFunc:s=>!i(s)&&n(s)},has(n,e,l,t,r){let i=l.adapter,s=a_(l),u=(s.relativeSelector=!0,e.some(f=>f.some(s_))?[qj]:void 0),a=r(e,s,u);if(a===wn.falseFunc)return wn.falseFunc;let c=function(f,p){return f===wn.falseFunc?wn.falseFunc:m=>p.isTag(m)&&f(m)}(a,i);if(u&&a!==wn.trueFunc){let{shouldTestNextSiblings:f=!1}=a;return h=>{if(!n(h))return!1;u[0]=h;var m=i.getChildren(h),h=f?[...m,...Vj(h,i)]:m;return i.existsOne(c,h)}}return f=>n(f)&&i.existsOne(c,i.getChildren(f))}};function Bv(n,e){return(n=e.getParent(n))&&e.isTag(n)?n:null}function bfe(n,e,l,t,r){let{adapter:i,equals:s}=l;switch(e.type){case en.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case en.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case en.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return l.xmlMode&&!l.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),yfe[e.action](n,e,l);case en.Pseudo:return function(u,a,c,f,p){let{name:m,data:h}=a;if(Array.isArray(h)){if(m in Uv)return Uv[m](u,h,c,f,p);throw new Error(`Unknownpseudo-class:${m}(${h})`)}let g=(a=c.pseudos)==null?void 0:a[m],_=typeof g=="string"?g:Efe[m];if(typeof _=="string"){if(h!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=K7(_);return Uv.is(u,S,c,f,p)}if(typeof g=="function")return N$(g,m,h,1),S=>g(S,h)&&u(S);if(m in u_)return u_[m](u,h,c,f);if(m in R$){let S=R$[m];return N$(S,m,h,2),T=>S(T,c,h)&&u(T)}throw new Error("Unknown pseudo-class :"+m)}(n,e,l,t,r);case en.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let u=e.name;return l.xmlMode&&!l.lowerCaseTags||(u=u.toLowerCase()),function(a){return i.getName(a)===u&&n(a)}}case en.Descendant:{if(l.cacheResults===!1||typeof WeakSet>"u")return function(a){let c=a;for(;c=Bv(c,i);)if(n(c))return!0;return!1};let u=new WeakSet;return function(a){let c=a;for(;c=Bv(c,i);)if(!u.has(c)){if(i.isTag(c)&&n(c))return!0;u.add(c)}return!1}}case"_flexibleDescendant":return function(u){let a=u;do if(n(a))return!0;while(a=Bv(a,i));return!1};case en.Parent:return function(u){return i.getChildren(u).some(a=>i.isTag(a)&&n(a))};case en.Child:return function(u){return(u=i.getParent(u))!=null&&i.isTag(u)&&n(u)};case en.Sibling:return function(u){var a=i.getSiblings(u);for(let f=0;f<a.length;f++){var c=a[f];if(s(u,c))break;if(i.isTag(c)&&n(c))return!0}return!1};case en.Adjacent:return i.prevElementSibling?function(u){return(u=i.prevElementSibling(u))!=null&&n(u)}:function(u){var a=i.getSiblings(u);let c;for(let p=0;p<a.length;p++){var f=a[p];if(s(u,f))break;i.isTag(f)&&(c=f)}return!!c&&n(c)};case en.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return n}}function zj(n){return n.type===en.Pseudo&&(n.name==="scope"||Array.isArray(n.data)&&n.data.some(e=>e.some(zj)))}var Tfe={type:en.Descendant},Sfe={type:"_flexibleDescendant"},xfe={type:en.Pseudo,name:"scope",data:null};function Gj(n,e,l){n.forEach(hfe),l=(s=e.context)!=null?s:l;let t=Array.isArray(l),r=l&&(Array.isArray(l)?l:[l]);if(e.relativeSelector!==!1)(function(u,{adapter:a},c){var f=!(c==null||!c.every(p=>{var m=a.isTag(p)&&a.getParent(p);return p===qj||m&&a.isTag(m)}));for(let p of u){if(!(0<p.length&&s_(p[0])&&p[0].type!==en.Descendant)){if(!f||p.some(zj))continue;p.unshift(Tfe)}p.unshift(xfe)}})(n,e,r);else if(n.some(u=>0<u.length&&s_(u[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=n.map(u=>{if(2<=u.length){let[a,c]=u;a.type===en.Pseudo&&a.name==="scope"&&(t&&c.type===en.D
Line truncated
`)}}):{name:t,value:r.replace(C$,`\r
`)}}).toArray()}}),U1=function(n,e,l){if(this.length=0,this.options=l,this._root=e,n){for(var t=0;t<n.length;t++)this[t]=n[t];this.length=n.length}},U_=(U1.prototype.cheerio="[cheerio object]",U1.prototype.splice=Array.prototype.splice,U1.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(U1.prototype,ufe,Hfe,Wfe,Kfe,Jfe),function(n,e){return(U_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(l,t){l.__proto__=t}:function(l,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(l[r]=t[r])}))(n,e)}),Qfe=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function l(){this.constructor=n}U_(n,e),n.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)},B1=function(){return(B1=Object.assign||function(n){for(var e,l=1,t=arguments.length;l<t;l++)for(var r in e=arguments[l])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},Zfe=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]),Ul="\uFFFD",k$=(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.NUMBER_SIGN=35]="NUMBER_SIGN",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",n[n.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_F=102]="LATIN_SMALL_F",n[n.LATIN_SMALL_X=120]="LATIN_SMALL_X",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",n[n.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(P=P||{}),"--"),P$="[CDATA[",D$="doctype",Lo="script",epe="public",npe="system";function iU(n){return 55296<=n&&n<=57343}function sU(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&1<=n&&n<=31||127<=n&&n<=159}function uU(n){return 64976<=n&&n<=65007||Zfe.has(n)}(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comm
Line truncated
`,this.firstUpdate&&(j+=" "),this.message=j+(this.message||""),this.firstUpdate=!1,this},b}function c(T){return l.toString.call(T)==="[object Function]"}function f(T){return l.toString.call(T)==="[object Array]"}function p(T){return l.toString.call(T)==="[object String]"}function m(T){return l.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,w=0;w<x.length;w++){var N=x[w];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(a.prototype,Error.prototype):a.prototype=Object.create(Error.prototype,{constructor:{value:a}}),i.TemplateError=a,i.escape=function(T){return T.replace(r,u)},i.isFunction=c,i.isArray=f,i.isString=p,i.isObject=m,i.getAttrGetter=h,i.groupBy=function(T,x,v){for(var b={},w=c(x)?x:h(x),N=0;N<T.length;N++){var R=T[N],k=w(R,N);if(k===void 0&&v===!0)throw new TypeError('groupby: attribute "'+x+'" resolved to undefined');(b[k]||(b[k]=[])).push(R)}return b},i.toArray=g,i.without=function(T){var x=[];if(T)for(var v=T.length,b=g(arguments).slice(1),w=-1;++w<v;)_(b,T[w])===-1&&x.push(T[w]);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,w=T.length;b<w;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 w(){++b<T.length?x(T[b],b,w,v):v()})()},i.asyncFor=function(T,x,v){var b=S(T||{}),w=b.length,N=-1;(function R(){var k=b[++N];N<w?x(k,T[k],N,w,R):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(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 kU(){throw new Error("setTimeout has not been defined")}function PU(){throw new Error("clearTimeout has not been defined")}var ps=kU,ds=PU;function DU(n){if(ps===setTimeout)return setTimeout(n,0);if((ps===kU||!ps)&&setTimeout)return(ps=setTimeout)(n,0);try{return ps(n,0)}catch{try{return ps.call(null,n,0)}catch{return ps.call(this,n,0)}}}typeof xi.setTimeout=="function"&&(ps=setTimeout),typeof xi.clearTimeout=="function"&&(ds=clearTimeout);var Gu,wi=[],Jo=!1,N7=-1;function Qpe(){Jo&&Gu&&(Jo=!1,Gu.length?wi=Gu.concat(wi):N7=-1,wi.length)&&LU()}function LU(){if(!Jo){var n=DU(Qpe);Jo=!0;for(var e=wi.length;e;){for(Gu=wi,wi=[];++N7<e;)Gu&&Gu[N7].run();N7=-1,e=wi.length}Gu=null,Jo=!1,function(l){if(ds===clearTimeout)return clearTimeout(l);if((ds===PU||!ds)&&clearTimeout)return(ds=clearTimeout)(l);try{ds(l)}catch{try{return ds.call(null,l)}catch{return ds.call(this,l)}}}(n)}}function FU(n,e){this.fun=n,this.array=e}function Qu(){}FU.prototype.run=function(){this.fun.apply(null,this.array)};var Zpe=Qu,ede=Qu,nde=Qu,lde=Qu,tde=Qu,rde=Qu,ide=Qu,Bo=xi.performance||{},sde=Bo.now||Bo.mozNow||Bo.msNow||Bo.oNow||Bo.webkitNow||function(){return new Date().getTime()},ude=new Date,_s={nextTick:function(n){var e=new Array(arguments.length-1);if(1<arguments.length)for(var l=1;l<arguments.length;l++)e[l-1]=arguments[l];wi.push(new FU(n,e)),wi.length!==1||Jo||DU(LU)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Zpe,addListener:ede,once:nde,off:lde,removeListener:tde,removeAllListeners:rde,emit:ide,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var l=.001*sde.call(Bo),e=Math.floor(l),l=Math.floor(l%1*1e9);return n&&(e-=n[0],(l-=n[1])<0)&&(e--,l+=1e9),[e,l]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ude)/1e3}};function hs(){}function bl(){bl.init.call(this)}function MU(n){return n._maxListeners===void 0?bl.defaultMaxListeners:n._maxListeners}function cj(n,e,l,t){var r,i;if(typeof l!="function")throw new TypeError('"listener" argument must be a function');return(r=n._events)?(r.newListener&&(n.emit("newListener",e,l.listener||l),r=n._events),i=r[e]):(r=n._events=new hs,n._eventsCount=0),i?(typeof i=="function"?i=r[e]=t?[l,i]:[i,l]:t?i.unshift(l):i.push(l),!i.warned&&(t=MU(n))&&0<t&&i.length>t&&(i.warned=!0,(t=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])"},Xj={};function Wj(n,e){var l=e.getSiblings(n);return l.length<=1||(n=l.indexOf(n))<0||n===l.length-1?[]:l.slice(n+1).filter(e.isTag)}function c_(n){return{xmlMode:!!n.xmlMode,lowerCaseAttributeNames:!!n.lowerCaseAttributeNames,lowerCaseTags:!!n.lowerCaseTags,quirksMode:!!n.quirksMode,cacheResults:!!n.cacheResults,pseudos:n.pseudos,adapter:n.adapter,equals:n.equals}}var Bv=(n,e,l,t,r)=>{let i=r(e,c_(l),t);return i===wn.trueFunc?n:i===wn.falseFunc?wn.falseFunc:s=>i(s)&&n(s)},Hv={is:Bv,matches:Bv,where:Bv,not(n,e,l,t,r){let i=r(e,c_(l),t);return i===wn.falseFunc?n:i===wn.trueFunc?wn.falseFunc:s=>!i(s)&&n(s)},has(n,e,l,t,r){let i=l.adapter,s=c_(l),u=(s.relativeSelector=!0,e.some(f=>f.some(a_))?[Xj]:void 0),a=r(e,s,u);if(a===wn.falseFunc)return wn.falseFunc;let c=function(f,p){return f===wn.falseFunc?wn.falseFunc:m=>p.isTag(m)&&f(m)}(a,i);if(u&&a!==wn.trueFunc){let{shouldTestNextSiblings:f=!1}=a;return h=>{if(!n(h))return!1;u[0]=h;var m=i.getChildren(h),h=f?[...m,...Wj(h,i)]:m;return i.existsOne(c,h)}}return f=>n(f)&&i.existsOne(c,i.getChildren(f))}};function qv(n,e){return(n=e.getParent(n))&&e.isTag(n)?n:null}function kfe(n,e,l,t,r){let{adapter:i,equals:s}=l;switch(e.type){case en.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case en.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case en.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return l.xmlMode&&!l.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),Nfe[e.action](n,e,l);case en.Pseudo:return function(u,a,c,f,p){let{name:m,data:h}=a;if(Array.isArray(h)){if(m in Hv)return Hv[m](u,h,c,f,p);throw new Error(`Unknownpseudo-class:${m}(${h})`)}let g=(a=c.pseudos)==null?void 0:a[m],_=typeof g=="string"?g:Cfe[m];if(typeof _=="string"){if(h!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=J7(_);return Hv.is(u,S,c,f,p)}if(typeof g=="function")return P$(g,m,h,1),S=>g(S,h)&&u(S);if(m in o_)return o_[m](u,h,c,f);if(m in k$){let S=k$[m];return P$(S,m,h,2),T=>S(T,c,h)&&u(T)}throw new Error("Unknown pseudo-class :"+m)}(n,e,l,t,r);case en.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let u=e.name;return l.xmlMode&&!l.lowerCaseTags||(u=u.toLowerCase()),function(a){return i.getName(a)===u&&n(a)}}case en.Descendant:{if(l.cacheResults===!1||typeof WeakSet>"u")return function(a){let c=a;for(;c=qv(c,i);)if(n(c))return!0;return!1};let u=new WeakSet;return function(a){let c=a;for(;c=qv(c,i);)if(!u.has(c)){if(i.isTag(c)&&n(c))return!0;u.add(c)}return!1}}case"_flexibleDescendant":return function(u){let a=u;do if(n(a))return!0;while(a=qv(a,i));return!1};case en.Parent:return function(u){return i.getChildren(u).some(a=>i.isTag(a)&&n(a))};case en.Child:return function(u){return(u=i.getParent(u))!=null&&i.isTag(u)&&n(u)};case en.Sibling:return function(u){var a=i.getSiblings(u);for(let f=0;f<a.length;f++){var c=a[f];if(s(u,c))break;if(i.isTag(c)&&n(c))return!0}return!1};case en.Adjacent:return i.prevElementSibling?function(u){return(u=i.prevElementSibling(u))!=null&&n(u)}:function(u){var a=i.getSiblings(u);let c;for(let p=0;p<a.length;p++){var f=a[p];if(s(u,f))break;i.isTag(f)&&(c=f)}return!!c&&n(c)};case en.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return n}}function Kj(n){return n.type===en.Pseudo&&(n.name==="scope"||Array.isArray(n.data)&&n.data.some(e=>e.some(Kj)))}var Pfe={type:en.Descendant},Dfe={type:"_flexibleDescendant"},Lfe={type:en.Pseudo,name:"scope",data:null};function Yj(n,e,l){n.forEach(Afe),l=(s=e.context)!=null?s:l;let t=Array.isArray(l),r=l&&(Array.isArray(l)?l:[l]);if(e.relativeSelector!==!1)(function(u,{adapter:a},c){var f=!(c==null||!c.every(p=>{var m=a.isTag(p)&&a.getParent(p);return p===Xj||m&&a.isTag(m)}));for(let p of u){if(!(0<p.length&&a_(p[0])&&p[0].type!==en.Descendant)){if(!f||p.some(Kj))continue;p.unshift(Pfe)}p.unshift(Lfe)}})(n,e,r);else if(n.some(u=>0<u.length&&a_(u[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=n.map(u=>{if(2<=u.length){let[a,c]=u;a.type===en.Pseudo&&a.name==="scope"&&(t&&c.type===en.D
Line truncated
`)}}):{name:t,value:r.replace(L$,`\r
`)}}).toArray()}}),H1=function(n,e,l){if(this.length=0,this.options=l,this._root=e,n){for(var t=0;t<n.length;t++)this[t]=n[t];this.length=n.length}},H_=(H1.prototype.cheerio="[cheerio object]",H1.prototype.splice=Array.prototype.splice,H1.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(H1.prototype,vfe,Zfe,ipe,spe,ape),function(n,e){return(H_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(l,t){l.__proto__=t}:function(l,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(l[r]=t[r])}))(n,e)}),ope=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function l(){this.constructor=n}H_(n,e),n.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)},q1=function(){return(q1=Object.assign||function(n){for(var e,l=1,t=arguments.length;l<t;l++)for(var r in e=arguments[l])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},cpe=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]),ql="\uFFFD",F$=(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.NUMBER_SIGN=35]="NUMBER_SIGN",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",n[n.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_F=102]="LATIN_SMALL_F",n[n.LATIN_SMALL_X=120]="LATIN_SMALL_X",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",n[n.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(P=P||{}),"--"),M$="[CDATA[",$$="doctype",Mo="script",fpe="public",ppe="system";function oU(n){return 55296<=n&&n<=57343}function cU(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&1<=n&&n<=31||127<=n&&n<=159}function fU(n){return 64976<=n&&n<=65007||cpe.has(n)}(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comm
Line truncated
`,this.firstUpdate&&(j+=" "),this.message=j+(this.message||""),this.firstUpdate=!1,this},b}function c(T){return l.toString.call(T)==="[object Function]"}function f(T){return l.toString.call(T)==="[object Array]"}function p(T){return l.toString.call(T)==="[object String]"}function m(T){return l.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,w=0;w<x.length;w++){var R=x[w];if(!s(b,R))return;b=b[R]}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(a.prototype,Error.prototype):a.prototype=Object.create(Error.prototype,{constructor:{value:a}}),i.TemplateError=a,i.escape=function(T){return T.replace(r,u)},i.isFunction=c,i.isArray=f,i.isString=p,i.isObject=m,i.getAttrGetter=h,i.groupBy=function(T,x,v){for(var b={},w=c(x)?x:h(x),R=0;R<T.length;R++){var N=T[R],k=w(N,R);if(k===void 0&&v===!0)throw new TypeError('groupby: attribute "'+x+'" resolved to undefined');(b[k]||(b[k]=[])).push(N)}return b},i.toArray=g,i.without=function(T){var x=[];if(T)for(var v=T.length,b=g(arguments).slice(1),w=-1;++w<v;)_(b,T[w])===-1&&x.push(T[w]);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,w=T.length;b<w;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 w(){++b<T.length?x(T[b],b,w,v):v()})()},i.asyncFor=function(T,x,v){var b=S(T||{}),w=b.length,R=-1;(function N(){var k=b[++R];R<w?x(k,T[k],R,w,N):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(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 FU(){throw new Error("setTimeout has not been defined")}function MU(){throw new Error("clearTimeout has not been defined")}var ds=FU,hs=MU;function $U(n){if(ds===setTimeout)return setTimeout(n,0);if((ds===FU||!ds)&&setTimeout)return(ds=setTimeout)(n,0);try{return ds(n,0)}catch{try{return ds.call(null,n,0)}catch{return ds.call(this,n,0)}}}typeof Ai.setTimeout=="function"&&(ds=setTimeout),typeof Ai.clearTimeout=="function"&&(hs=clearTimeout);var Wu,Oi=[],Zo=!1,C7=-1;function ode(){Zo&&Wu&&(Zo=!1,Wu.length?Oi=Wu.concat(Oi):C7=-1,Oi.length)&&jU()}function jU(){if(!Zo){var n=$U(ode);Zo=!0;for(var e=Oi.length;e;){for(Wu=Oi,Oi=[];++C7<e;)Wu&&Wu[C7].run();C7=-1,e=Oi.length}Wu=null,Zo=!1,function(l){if(hs===clearTimeout)return clearTimeout(l);if((hs===MU||!hs)&&clearTimeout)return(hs=clearTimeout)(l);try{hs(l)}catch{try{return hs.call(null,l)}catch{return hs.call(this,l)}}}(n)}}function UU(n,e){this.fun=n,this.array=e}function ea(){}UU.prototype.run=function(){this.fun.apply(null,this.array)};var cde=ea,fde=ea,pde=ea,dde=ea,hde=ea,mde=ea,gde=ea,qo=Ai.performance||{},yde=qo.now||qo.mozNow||qo.msNow||qo.oNow||qo.webkitNow||function(){return new Date().getTime()},vde=new Date,Es={nextTick:function(n){var e=new Array(arguments.length-1);if(1<arguments.length)for(var l=1;l<arguments.length;l++)e[l-1]=arguments[l];Oi.push(new UU(n,e)),Oi.length!==1||Zo||$U(jU)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:cde,addListener:fde,once:pde,off:dde,removeListener:hde,removeAllListeners:mde,emit:gde,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var l=.001*yde.call(qo),e=Math.floor(l),l=Math.floor(l%1*1e9);return n&&(e-=n[0],(l-=n[1])<0)&&(e--,l+=1e9),[e,l]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-vde)/1e3}};function ms(){}function Al(){Al.init.call(this)}function BU(n){return n._maxListeners===void 0?Al.defaultMaxListeners:n._maxListeners}function hj(n,e,l,t){var r,i;if(typeof l!="function")throw new TypeError('"listener" argument must be a function');return(r=n._events)?(r.newListener&&(n.emit("newListener",e,l.listener||l),r=n._events),i=r[e]):(r=n._events=new ms,n._eventsCount=0),i?(typeof i=="function"?i=r[e]=t?[l,i]:[i,l]:t?i.unshift(l):i.push(l),!i.warned&&(t=BU(n))&&0<t&&i.length>t&&(i.warned=!0,(t=new Error("Possible EventEm
Line truncated
`?this.forward():this.back())),R2(GU,h,l,t);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,R2(WU,h,l,t);if(r==="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"],u="";!this.isFinished()&&s.indexOf(this.current())!==-1;)u+=this.current(),this.forward();return R2(cB,{body:i,flags:u},l,t)}if(gj.indexOf(r)!==-1){this.forward();var a,c=["==","===","!=","!==","<=",">=","//","**"],f=r+this.current();switch(ke.indexOf(c,f)!==-1&&(this.forward(),ke.indexOf(c,(r=f)+this.current())!==-1)&&(r=f+this.current(),this.forward()),r){case"(":a=YU;break;case")":a=JU;break;case"[":a=QU;break;case"]":a=ZU;break;case"{":a=eB;break;case"}":a=nB;break;case",":a=tB;break;case":":a=rB;break;case"~":a=iB;break;case"|":a=sB;break;default:a=lB}return R2(a,r,l,t)}if((h=this._extractUntil(mj+gj)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),c=this._extract("0123456789"),R2(uB,h+"."+c,l,t)):R2("int",h,l,t);if(h.match(/^(true|false)$/))return R2(aB,h,l,t);if(h==="none"||h==="null")return R2(w_,h,l,t);if(h)return R2(oB,h,l,t);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,R2(zU,h,l,t);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,R2(XU,h,l,t);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 R2(g?KU:VU,h,l,t)},e._parseString=function(l){this.forward();for(var t="";!this.isFinished()&&this.current()!==l;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":t+=`
`?this.forward():this.back())),R2(YU,h,l,t);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,R2(QU,h,l,t);if(r==="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"],u="";!this.isFinished()&&s.indexOf(this.current())!==-1;)u+=this.current(),this.forward();return R2(hB,{body:i,flags:u},l,t)}if(Ej.indexOf(r)!==-1){this.forward();var a,c=["==","===","!=","!==","<=",">=","//","**"],f=r+this.current();switch(ke.indexOf(c,f)!==-1&&(this.forward(),ke.indexOf(c,(r=f)+this.current())!==-1)&&(r=f+this.current(),this.forward()),r){case"(":a=eB;break;case")":a=nB;break;case"[":a=lB;break;case"]":a=tB;break;case"{":a=rB;break;case"}":a=iB;break;case",":a=uB;break;case":":a=aB;break;case"~":a=oB;break;case"|":a=cB;break;default:a=sB}return R2(a,r,l,t)}if((h=this._extractUntil(_j+Ej)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),c=this._extract("0123456789"),R2(fB,h+"."+c,l,t)):R2("int",h,l,t);if(h.match(/^(true|false)$/))return R2(pB,h,l,t);if(h==="none"||h==="null")return R2(N_,h,l,t);if(h)return R2(dB,h,l,t);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,R2(KU,h,l,t);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,R2(JU,h,l,t);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 R2(g?ZU:WU,h,l,t)},e._parseString=function(l){this.forward();for(var t="";!this.isFinished()&&this.current()!==l;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":t+=`
`))})},t.compileRoot=function(r,i){var s=this,u=(i&&this.fail("compileRoot: root node can't have frame"),i=new Wv,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,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=r.findAll(z.Block)).forEach(function(a,c){var f=a.name.value;if(u.indexOf(f)!==-1)throw new Error('Block "'+f+'" defined more than once.');u.push(f),s._emitFuncBegin(a,"b_"+f),f=new Wv,s._emitLine("var frame = frame.push(true);"),s.compile(a.body,f),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(a,c){a="b_"+a.name.value,s._emitLine(a+": "+a+",")}),this._emitLine(`root:root
};`)},t.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},t.getCode=function(){return this.codebuf.join("")},l}(t4.Obj),dhe={compile:function(s,e,l,t,r){var i=new Tj(t,(r=r===void 0?{}:r).throwOnUndefined),s=(l||[]).map(function(u){return u.preprocess}).filter(function(u){return!!u}).reduce(function(u,a){return a(u)},s);return i.compile(ahe.transform(ihe.parse(s,l,r),e,t)),i.getCode()},Compiler:Tj},hhe=an(function(n){function e(h,g){return h==null||h===!1?g:h}function l(h){return h!=h}function t(h){var g=(h=e(h,"")).toLowerCase();return on.copySafeness(h,g.charAt(0).toUpperCase()+g.slice(1))}function r(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 on.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(n=n.exports={}).abs=Math.abs,n.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},n.capitalize=t,n.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),on.copySafeness(h,_+h+g))},n.default=function(h,g,_){return _?h||g:h!==void 0?h:g},n.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},n.dump=function(h,g){return JSON.stringify(h,null,g)},n.escape=function(h){return h instanceof on.SafeString?h:on.markSafe(ke.escape((h=h??"").toString()))},n.safe=function(h){return h instanceof on.SafeString?h:on.markSafe((h=h??"").toString())},n.first=function(h){return h[0]},n.forceescape=function(h){return on.markSafe(ke.escape((h=h??"").toString()))},n.groupby=function(h,g){return ke.groupBy(h,g,this.env.opts.throwOnUndefined)},n.indent=function(h,x,_){if((h=e(h,""))==="")return"";x=x||4;var S=h.split(`
`))})},t.compileRoot=function(r,i){var s=this,u=(i&&this.fail("compileRoot: root node can't have frame"),i=new Yv,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,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=r.findAll(z.Block)).forEach(function(a,c){var f=a.name.value;if(u.indexOf(f)!==-1)throw new Error('Block "'+f+'" defined more than once.');u.push(f),s._emitFuncBegin(a,"b_"+f),f=new Yv,s._emitLine("var frame = frame.push(true);"),s.compile(a.body,f),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(a,c){a="b_"+a.name.value,s._emitLine(a+": "+a+",")}),this._emitLine(`root:root
};`)},t.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},t.getCode=function(){return this.codebuf.join("")},l}(i4.Obj),xhe={compile:function(s,e,l,t,r){var i=new wj(t,(r=r===void 0?{}:r).throwOnUndefined),s=(l||[]).map(function(u){return u.preprocess}).filter(function(u){return!!u}).reduce(function(u,a){return a(u)},s);return i.compile(_he.transform(ghe.parse(s,l,r),e,t)),i.getCode()},Compiler:wj},Ahe=an(function(n){function e(h,g){return h==null||h===!1?g:h}function l(h){return h!=h}function t(h){var g=(h=e(h,"")).toLowerCase();return on.copySafeness(h,g.charAt(0).toUpperCase()+g.slice(1))}function r(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 on.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(n=n.exports={}).abs=Math.abs,n.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},n.capitalize=t,n.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),on.copySafeness(h,_+h+g))},n.default=function(h,g,_){return _?h||g:h!==void 0?h:g},n.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},n.dump=function(h,g){return JSON.stringify(h,null,g)},n.escape=function(h){return h instanceof on.SafeString?h:on.markSafe(ke.escape((h=h??"").toString()))},n.safe=function(h){return h instanceof on.SafeString?h:on.markSafe((h=h??"").toString())},n.first=function(h){return h[0]},n.forceescape=function(h){return on.markSafe(ke.escape((h=h??"").toString()))},n.groupby=function(h,g){return ke.groupBy(h,g,this.env.opts.throwOnUndefined)},n.indent=function(h,x,_){if((h=e(h,""))==="")return"";x=x||4;var S=h.split(`
`):_.replace(/\s+/gi," ");return on.copySafeness(h,S)},n.title=function(h){var g=(h=e(h,"")).split(" ").map(t);return on.copySafeness(h,g.join(" "))},n.trim=s,n.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,_)),on.copySafeness(T,h+=S??"..."))},n.upper=function(h){return(h=e(h,"")).toUpperCase()},n.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 u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,c=/^https?:\/\/.*$/,f=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(n.urlize=function(h,g,_){l(g)&&(g=1/0);varS=_===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(T){returnT&&T.length}).map(function(T){varx=T.match(u),v=(x=x?x[1]:T).substr(0,g);returnc.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":f.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":a.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":T}).join("")},n.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},n.float=function(h,g){returnl(h=parseFloat(h))?g:h},on.makeMacro(["value","default","base"],[],function(h,g,_){return_===void0&&(_=10),l(h=parseInt(h,_))?g:h}));n.int=m,n.d=n.default,n.e=n.escape}),z7={};functionwB(n,e){for(varl=0,t=n.length-1;0<=t;t--){varr=n[t];r==="."?n.splice(t,1):r===".."?(n.splice(t,1),l++):l&&(n.splice(t,1),l--)}if(e)for(;l--;)n.unshift("..");returnn}varmhe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Kv=function(n){returnmhe.exec(n).slice(1)};functionYv(){for(varn="",e=!1,l=arguments.length-1;-1<=l&&!e;l--){vart=0<=l?arguments[l]:"/";if(typeoft!="string")thrownewTypeError("Arguments to path.resolve must be strings");t&&(n=t+"/"+n,e=t.charAt(0)==="/")}return(e?"/":"")+wB(W_(n.split("/"),function(r){return!!r}),!e).join("/")||"."}functionSj(n){vare=OB(n),l=ghe(n,-1)==="/";return(n=(n=wB(W_(n.split("/"),function(t){return!!t}),!e).join("/"))||e?n:".")&&l&&(n+="/"),(e?"/":"")+n}functionOB(n){returnn.charAt(0)==="/"}varQo={extname:function(n){returnKv(n)[3]},basename:function(n,e){returnn=Kv(n)[2],e&&n.substr(-1*e.length)===e?n.substr(0,n.length-e.length):n},dirname:function(l){vare=(l=Kv(l))[0],l=l[1];returne||l?e+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(n,e){functionl(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)}n=Yv(n).substr(1),e=Yv(e).substr(1);for(vart=l(n.split("/")),r=l(e.split("/")),i=Math.min(t.length,r.length),s=i,u=0;u<i;u++)if(t[u]!==r[u]){s=u;break}for(vara=[],u=s;u<t.length;u++)a.push("..");return(a=a.concat(r.slice(s))).join("/")},join:function(){returnSj(W_(Array.prototype.slice.call(arguments,0),function(n,e){if(typeofn!="string")thrownewTypeError("Arguments to path.join must be strings");returnn}).join("/"))},isAbsolute:OB,normalize:Sj,resolve:Yv};functionW_(n,e){if(n.filter)returnn.filter(e);for(varl=[],t=0;t<n.length;t++)e(n[t],t,n)&&l.push(n[t]);returnl}varghe="ab".substr(-1)==="b"?function(n,e,l){returnn.substr(e,l)}:function(n,e,l){returne<0&&(e=n.length+e),n.substr(e,l)};functionRB(n,e){return(RB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varK_=function(n){vare;functionl(){returnn.apply(this,arguments)||this}e=n,(t=l).prototype=Object.create(e.prototype),RB(t.prototype.constructor=t,e);vart=l.prototype;returnt.resolve=function(r,i){returnQo.resolve(Qo.dirname(r),i)},t.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},l}(t4.EmitterObj);functionNB(n,e){return(NB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varyhe=function(n){vare,l;functiont(r){vari;return(i=n.call(this)||this).precompiled=r||{},i}returnl=n,(e=t).prototype=Object.create(l.prototype),NB(e.prototype.constructor=e,l),t.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},t}(K_);functionIB(n,e){n.prototype=Object.create(e.prototype),CB(n.prototype.constructor=n,e)}functionCB(n,e){return(CB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varvhe=yhe,_he=function(n){functione(l,t){varr=n.call(this)||this;returntypeoft=="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"),t=t||{},r.pathsToNames={},r.noCache=!!t.noCache,l?(l=Array.isArray(l)?l:[l],r.searchPaths=l.map(Qo.normalize)):r.searchPaths=["."],t.watch,r}returnIB(e,n),e.prototype.getSource=function(l){for(vart=null,r=this.searchPaths,i=0;i<r.length;i++){vars=Qo.resoLine truncated
`):_.replace(/\s+/gi," ");return on.copySafeness(h,S)},n.title=function(h){var g=(h=e(h,"")).split(" ").map(t);return on.copySafeness(h,g.join(" "))},n.trim=s,n.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,_)),on.copySafeness(T,h+=S??"..."))},n.upper=function(h){return(h=e(h,"")).toUpperCase()},n.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 u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,c=/^https?:\/\/.*$/,f=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(n.urlize=function(h,g,_){l(g)&&(g=1/0);varS=_===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(T){returnT&&T.length}).map(function(T){varx=T.match(u),v=(x=x?x[1]:T).substr(0,g);returnc.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":f.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":a.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":T}).join("")},n.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},n.float=function(h,g){returnl(h=parseFloat(h))?g:h},on.makeMacro(["value","default","base"],[],function(h,g,_){return_===void0&&(_=10),l(h=parseInt(h,_))?g:h}));n.int=m,n.d=n.default,n.e=n.escape}),X7={};functionIB(n,e){for(varl=0,t=n.length-1;0<=t;t--){varr=n[t];r==="."?n.splice(t,1):r===".."?(n.splice(t,1),l++):l&&(n.splice(t,1),l--)}if(e)for(;l--;)n.unshift("..");returnn}varwhe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Jv=function(n){returnwhe.exec(n).slice(1)};functionQv(){for(varn="",e=!1,l=arguments.length-1;-1<=l&&!e;l--){vart=0<=l?arguments[l]:"/";if(typeoft!="string")thrownewTypeError("Arguments to path.resolve must be strings");t&&(n=t+"/"+n,e=t.charAt(0)==="/")}return(e?"/":"")+IB(Y_(n.split("/"),function(r){return!!r}),!e).join("/")||"."}functionOj(n){vare=CB(n),l=Ohe(n,-1)==="/";return(n=(n=IB(Y_(n.split("/"),function(t){return!!t}),!e).join("/"))||e?n:".")&&l&&(n+="/"),(e?"/":"")+n}functionCB(n){returnn.charAt(0)==="/"}vare4={extname:function(n){returnJv(n)[3]},basename:function(n,e){returnn=Jv(n)[2],e&&n.substr(-1*e.length)===e?n.substr(0,n.length-e.length):n},dirname:function(l){vare=(l=Jv(l))[0],l=l[1];returne||l?e+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(n,e){functionl(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)}n=Qv(n).substr(1),e=Qv(e).substr(1);for(vart=l(n.split("/")),r=l(e.split("/")),i=Math.min(t.length,r.length),s=i,u=0;u<i;u++)if(t[u]!==r[u]){s=u;break}for(vara=[],u=s;u<t.length;u++)a.push("..");return(a=a.concat(r.slice(s))).join("/")},join:function(){returnOj(Y_(Array.prototype.slice.call(arguments,0),function(n,e){if(typeofn!="string")thrownewTypeError("Arguments to path.join must be strings");returnn}).join("/"))},isAbsolute:CB,normalize:Oj,resolve:Qv};functionY_(n,e){if(n.filter)returnn.filter(e);for(varl=[],t=0;t<n.length;t++)e(n[t],t,n)&&l.push(n[t]);returnl}varOhe="ab".substr(-1)==="b"?function(n,e,l){returnn.substr(e,l)}:function(n,e,l){returne<0&&(e=n.length+e),n.substr(e,l)};functionkB(n,e){return(kB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varJ_=function(n){vare;functionl(){returnn.apply(this,arguments)||this}e=n,(t=l).prototype=Object.create(e.prototype),kB(t.prototype.constructor=t,e);vart=l.prototype;returnt.resolve=function(r,i){returne4.resolve(e4.dirname(r),i)},t.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},l}(i4.EmitterObj);functionPB(n,e){return(PB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varNhe=function(n){vare,l;functiont(r){vari;return(i=n.call(this)||this).precompiled=r||{},i}returnl=n,(e=t).prototype=Object.create(l.prototype),PB(e.prototype.constructor=e,l),t.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},t}(J_);functionDB(n,e){n.prototype=Object.create(e.prototype),LB(n.prototype.constructor=n,e)}functionLB(n,e){return(LB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varRhe=Nhe,Ihe=function(n){functione(l,t){varr=n.call(this)||this;returntypeoft=="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"),t=t||{},r.pathsToNames={},r.noCache=!!t.noCache,l?(l=Array.isArray(l)?l:[l],r.searchPaths=l.map(e4.normalize)):r.searchPaths=["."],t.watch,r}returnDB(e,n),e.prototype.getSource=function(l){for(vart=null,r=this.searchPaths,i=0;i<r.length;i++){vars=e4.resoLine truncated
`)){let a=u.trim();if(a)if(a.startsWith("#")){if(a.startsWith("#EXT")){let c=Whe(a,i);c&&s.push(c)}}else s.push(a)}return s.length!==0&&s[0].name==="EXTM3U"||Le("The EXTM3U tag MUST be the first line."),s}(n,e),t=Khe(l,e);return t.source=n,t}var Yhe=["#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"],Jhe=["#EXT-X-MEDIA"],pE=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let l of e)if(l.startsWith("#"))if(Yhe.some(t=>l.startsWith(t)))super.push(l);else{if(this.includes(l)){if(Jhe.some(t=>l.startsWith(t)))continue;Le(`Redundantitem(${l})`)}super.push(l)}else super.push(l);return this.length}};function gE(n,e){let l=1e3;e&&(l=Math.pow(10,e));let t=Math.round(n*l)/l;return e?t.toFixed(e):t}function Qhe(n){let e=[`DATA-ID="${n.id}"`];return n.language&&e.push(`LANGUAGE="${n.language}"`),n.value?e.push(`VALUE="${n.value}"`):n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function iH(n,e){let l=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",t=[`METHOD=${n.method}`];return n.uri&&t.push(`URI="${n.uri}"`),n.iv&&(n.iv.length!==16&&Le("IV must be a 128-bit unsigned integer"),t.push(`IV=${lH(n.iv)}`)),n.format&&t.push(`KEYFORMAT="${n.format}"`),n.formatVersion&&t.push(`KEYFORMATVERSIONS="${n.formatVersion}"`),`${l}:${t.join(",")}`}function Zhe(n,e){let l=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",t=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&t.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&t.push(`URI="${e.uri}"`),e.codecs&&t.push(`CODECS="${e.codecs}"`),e.resolution&&t.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&t.push(`FRAME-RATE=${gE(e.frameRate,3)}`),e.hdcpLevel&&t.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){t.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)n.push(_c(r))}if(e.video.length>0){t.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)n.push(_c(r))}if(e.subtitles.length>0){t.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)n.push(_c(r))}if(jhe().allowClosedCaptionsNone&&e.closedCaptions.length===0)t.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){t.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)n.push(_c(r))}if(e.score&&t.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);t.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&t.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&t.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&t.push(`PROGRAM-ID=${e.programId}`),n.push(`${l}:${t.join(",")}`),e.isIFrameOnly||n.push(`${e.uri}`)}function _c(n){let e=[`TYPE=${n.type}`,`GROUP-ID="${n.groupId}"`,`NAME="${n.name}"`];return n.isDefault!==void 0&&e.push("DEFAULT="+(n.isDefault?"YES":"NO")),n.autoselect!==void 0&&e.push("AUTOSELECT="+(n.autoselect?"YES":"NO")),n.forced!==void 0&&e.push("FORCED="+(n.forced?"YES":"NO")),n.language&&e.push(`LANGUAGE="${n.language}"`),n.assocLanguage&&e.push(`ASSOC-LANGUAGE="${n.assocLanguage}"`),n.instreamId&&e.push(`INSTREAM-ID="${n.instreamId}"`),n.characteristics&&e.push(`CHARACTERISTICS="${n.characteristics}"`),n.channels&&e.push(`CHANNELS="${n.channels}"`),n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function eme(n,e,l,t,r=1,i=null){let s=!1,u="";if(e.discontinuity&&n.push("#EXT-X-DISCONTINUITY"),e.key){let c=iH(e.key);c!==l&&(n.push(c),l=c)}if(e.map){let c=function(f){let p=[`URI="${f.uri}"`];return f.byterange&&p.push(`BYTERANGE="${aE(f.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);c!==t&&(n.push(c),t=c)}if(e.programDateTime&&n.push(`#EXT-X-PROGRAM-DATE-TIME:${uE(e.programDateTime)}`),e.dateRange&&n.push(function(c){let f=[`ID="${c.id}"`];c.start&&f.push(`START-DATE="${uE(c.start)}"`),c.end&&f.push(`END-DATE="${uE(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}=${lH(c.attributes[p])}`);return`#EXT-X-DATERANGE:${f.join(",")}`}(e.dateRange)),e.markers.length>0&&(u=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}(n,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:_}=m.byterange;h.push(`BYTERANGE-START=${g}`),_&&h.push(`BYTERANGE-LENGTH=${_}`)}c.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),p=!0}else{let h=[];h.push(
Line truncated
`)}var uH="hls_cache",Pc=[],ea={},y5={},Zu={},kc="";function nme(n,e){if(Pc.push(n),ea[n]=e,Pc.length>5){let l=Pc.shift();lme(l)}}function lme(n){delete ea[n],delete Pc[n],new JSFile(uH+"/"+n).delete()}function tme(n,e){if(e.variants)for(let l of e.variants)l.uri.startsWith("http")||(l.uri=yE(n,l.uri));if(e.segments)for(let l of e.segments)l.uri.startsWith("http")||(l.uri=yE(n,l.uri)),l.key&&l.key.uri&&!l.key.uri.startsWith("http")&&(l.key.uri=yE(n,l.key.uri));return e}async function aH(n,e){let l=md5X(n);if(ea[l])return ea[l];let t={},r=n;for(;t=await req(r,{headers:e,redirect:0}),t.headers.location;)r=t.headers.location;if(t.code==200){var i=t.content;let s=tme(r,rH(i));return nme(l,{code:t.code,plist:s,key:l,headers:t.headers}),ea[l]}return{}}async function oH(n,e,l){if(!ea[n])return{};let r=ea[n].plist.segments,i=!Zu[n];if(i){Zu[n]={};for(let f of r){let p=md5X(f.uri+f.mediaSequenceNumber.toString());Zu[n][p]={file:uH+"/"+n+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in Zu[n]){let p=Zu[n][f];p.index>=e?p.order=p.index-e:p.order=r.length-e+p.index}i&&rme(n,5,l);let s=r[e],u=md5X(s.uri+s.mediaSequenceNumber.toString()),a=Zu[n][u];if(a.state==1||a.state==-1){let f=new JSFile(a.file);if(await f.exist())return a.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:f};a.state=-1}if(a.state==-1&&cH(n,a,l),a.state==0){var c=new JSProxyStream;c.head(200,{connection:"close","content-type":"video/mp2t"});let f=0;return a.read=!0,new Promise(async function(p,m){let h=new JSFile(a.file+".dl");await h.open("r"),async function g(){let _=await h.size();if(_>f){var S=await h.read(_-f,f);await c.write(S),f=_}if(a.state==1||a.state<0){c.done(),await h.close(),await h.delete(),a.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:c}}}async function cH(n,e,l){if(e.state>=0||!y5[n])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let t=new JSFile(e.file+".dl");await t.open("w");let r=await req(e.uri,{buffer:3,headers:l,stream:t,timeout:[5e3,1e4]});if(r.error||r.code>=300){await t.close(),e.read||await t.delete(),e.state=-1;return}await t.close(),e.read?await t.copy(e.file):await t.move(e.file),e.state=1}async function rme(n,e,l){kc&&kc!=n&&delete y5[kc],kc=n,y5[n]=!0;for(let t=0;t<e&&y5[n];t++)new Promise(function(r,i){(async function s(){if(!y5[n]){r();return}let u=Ee.pickBy(Zu[n],function(c){return c.state==-1}),a=Ee.minBy(Object.values(u),function(c){return c.order});if(!a){r();return}await cH(n,a,l),setTimeout(s,5)})()})}function yE(n,e){var l=n.split("/"),t=e.split("/");l.pop();for(var r=0;r<t.length;r++)t[r]!="."&&(t[r]==".."?l.pop():l.push(t[r]));return l.join("/")}function fH(n){let e=[];return Array.from(n.danmuku).forEach(l=>{let t=Number(l[0]),r=l[4];e.push(`<dp="${t},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></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>"}varDc=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newRr(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Fr,Referer:this.siteUrl+"/"}}asyncreconnnect(e,l,t,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),bs(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,l,t,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,l,t,r,i,s,u){returnu.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${u.headers.location}`),u.headers.location):this.fetch(u.headers.location,l,t,r,i,s):u.content.length>0?(this.reconnectTimes=0,i?{cookie:u.headers["set-cookie"],content:u.content}:u.content):s===1?(this.reconnectTimes=0,u.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(u)}`),awaitthis.reconnnect(e,l,t,r,i,s))}asyncfetch(e,l,t,r=!1,i=!1,s=0){letu=vc(l),a=e;Ee.isEmpty(u)||(a=e+"?"+u);letc=newa5(a),f;returnf=awaitreq(c.toString(),{method:"get",headers:t,buffer:s,data:null}),f.code===201||f.code===200||f.code===302||f.code===301||i?awaitthis.getResponse(e,l,t,r,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,l,t,r,i,s))}asyncgetHtml(e=this.siteUrl,l=this.getHeader()){lett=awaitthis.fetch(e,null,l);if(Ee.isEmpty(t))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnXl(t)}asynLine truncated
`).forEach(function(s){r=s.indexOf(":"),l=s.substring(0,r).trim().toLowerCase(),t=s.substring(r+1).trim(),!(!l||e[l]&&Yve[l])&&(l==="set-cookie"?e[l]?e[l].push(t):e[l]=[t]:e[l]=e[l]?e[l]+", "+t:t)}),e};var Sz=Symbol("internals");function C5(n){return n&&String(n).trim().toLowerCase()}function cf(n){return n===!1||n==null?n:X.isArray(n)?n.map(cf):String(n)}function Jve(n){let e=Object.create(null),l=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=l.exec(n);)e[t[1]]=t[2];return e}var Qve=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());functionhb(n,e,l,t,r){if(X.isFunction(t))returnt.call(this,e,l);if(r&&(e=l),!!X.isString(e)){if(X.isString(t))returne.indexOf(t)!==-1;if(X.isRegExp(t))returnt.test(e)}}functionZve(n){returnn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,l,t)=>l.toUpperCase()+t)}functione_e(n,e){letl=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+l,{value:function(r,i,s){returnthis[t].call(this,e,r,i,s)},configurable:!0})})}varO4=class{constructor(e){e&&this.set(e)}set(e,l,t){letr=this;functioni(u,a,c){letf=C5(a);if(!f)thrownewError("header name must be a non-empty string");letp=X.findKey(r,f);(!p||r[p]===void0||c===!0||c===void0&&r[p]!==!1)&&(r[p||a]=cf(u))}lets=(u,a)=>X.forEach(u,(c,f)=>i(c,f,a));returnX.isPlainObject(e)||einstanceofthis.constructor?s(e,l):X.isString(e)&&(e=e.trim())&&!Qve(e)?s(Tz(e),l):e!=null&&i(l,e,t),this}get(e,l){if(e=C5(e),e){lett=X.findKey(this,e);if(t){letr=this[t];if(!l)returnr;if(l===!0)returnJve(r);if(X.isFunction(l))returnl.call(this,r,t);if(X.isRegExp(l))returnl.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,l){if(e=C5(e),e){lett=X.findKey(this,e);return!!(t&&this[t]!==void0&&(!l||hb(this,this[t],t,l)))}return!1}delete(e,l){lett=this,r=!1;functioni(s){if(s=C5(s),s){letu=X.findKey(t,s);u&&(!l||hb(t,t[u],u,l))&&(deletet[u],r=!0)}}returnX.isArray(e)?e.forEach(i):i(e),r}clear(e){letl=Object.keys(this),t=l.length,r=!1;for(;t--;){leti=l[t];(!e||hb(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letl=this,t={};returnX.forEach(this,(r,i)=>{lets=X.findKey(t,i);if(s){l[s]=cf(r),deletel[i];return}letu=e?Zve(i):String(i).trim();u!==i&&deletel[i],l[u]=cf(r),t[u]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letl=Object.create(null);returnX.forEach(this,(t,r)=>{t!=null&&t!==!1&&(l[r]=e&&X.isArray(t)?t.join(", "):t)}),l}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,l])=>e+": "+l).join(`
`,T_e=U5.encode(Rs),S_e=2,kb=class{constructor(e,l){let{escapeName:t}=this.constructor,r=X.isString(l),i=`Content-Disposition:form-data;name="${t(e)}"${!r&&l.name?`; filename="${t(l.name)}"`:""}${Rs}`;r?l=U5.encode(String(l).replace(/\r?\n|\r\n?/g,Rs)):i+=`Content-Type:${l.type||"application/octet-stream"}${Rs}`,this.headers=U5.encode(i+Rs),this.contentLength=r?l.byteLength:l.size,this.size=this.headers.byteLength+this.contentLength+S_e,this.name=e,this.value=l}async*encode(){yield this.headers;let{value:e}=this;X.isTypedArray(e)?yield e:yield*df(e),yield T_e}static escapeName(e){return String(e).replace(/[\r\n"]/g,l=>({"\r":"%0D","\n":"%0A",'"':"%22"})[l])}},x_e=(n,e,l)=>{let{tag:t="form-data-boundary",size:r=25,boundary:i=t+"-"+X.generateString(r,b_e)}=l||{};if(!X.isFormData(n))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=U5.encode("--"+i+Rs),u=U5.encode("--"+i+"--"+Rs+Rs),a=u.byteLength,c=Array.from(n.entries()).map(([p,m])=>{let h=new kb(p,m);return a+=h.size,h});a+=s.byteLength*c.length,a=X.toFiniteNumber(a);let f={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(a)&&(f["Content-Length"]=a),e&&e(f),$z.Readable.from(async function*(){for(let p of c)yield s,yield*p.encode();yield u}())},jz=x_e;var Uz=xt(require("stream"),1),Pb=class extends Uz.default.Transform{__transform(e,l,t){this.push(e),t()}_transform(e,l,t){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,l)}this.__transform(e,l,t)}},Bz=Pb;var A_e=(n,e)=>X.isAsyncFn(n)?function(...l){let t=l.pop();n.apply(this,l).then(r=>{try{e?t(null,...e(r)):t(null,r)}catch(i){t(i)}},t)}:n,Hz=A_e;var qz={flush:Ni.default.constants.Z_SYNC_FLUSH,finishFlush:Ni.default.constants.Z_SYNC_FLUSH},w_e={flush:Ni.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ni.default.constants.BROTLI_OPERATION_FLUSH},Vz=X.isFunction(Ni.default.createBrotliDecompress),{http:O_e,https:R_e}=Jz.default,N_e=/https:?/,zz=It.protocols.map(n=>n+":");function I_e(n,e){n.beforeRedirects.proxy&&n.beforeRedirects.proxy(n),n.beforeRedirects.config&&n.beforeRedirects.config(n,e)}function Zz(n,e,l){let t=e;if(!t&&t!==!1){let r=(0,Xz.getProxyForUrl)(l);r&&(t=new URL(r))}if(t){if(t.username&&(t.auth=(t.username||"")+":"+(t.password||"")),t.auth){(t.auth.username||t.auth.password)&&(t.auth=(t.auth.username||"")+":"+(t.auth.password||""));let i=Buffer.from(t.auth,"utf8").toString("base64");n.headers["Proxy-Authorization"]="Basic "+i}n.headers.host=n.hostname+(n.port?":"+n.port:"");let r=t.hostname||t.host;n.hostname=r,n.host=r,n.port=t.port,n.path=l,t.protocol&&(n.protocol=t.protocol.includes(":")?t.protocol:`${t.protocol}:`)}n.beforeRedirects.proxy=function(i){Zz(i,e,i.href)}}var C_e=typeof process<"u"&&X.kindOf(process)==="process",k_e=n=>new Promise((e,l)=>{let t,r,i=(a,c)=>{r||(r=!0,t&&t(a,c))},s=a=>{i(a),e(a)},u=a=>{i(a,!0),l(a)};n(s,u,a=>t=a).catch(u)}),P_e=({address:n,family:e})=>{if(!X.isString(n))throw TypeError("address must be a string");return{address:n,family:e||(n.indexOf(".")<0?6:4)}},Gz=(n,e)=>P_e(X.isObject(n)?n:{address:n,family:e}),eG=C_e&&function(e){return k_e(async function(t,r,i){let{data:s,lookup:u,family:a}=e,{responseType:c,responseEncoding:f}=e,p=e.method.toUpperCase(),m,h=!1,g;if(u){let ue=Hz(u,ye=>X.isArray(ye)?ye:[ye]);u=(ye,q,re)=>{ue(ye,q,(te,ne,Bl)=>{if(te)return re(te);let On=X.isArray(ne)?ne.map(Ge=>Gz(Ge)):[Gz(ne,Bl)];q.all?re(te,On):re(te,On[0].address,On[0].family)})}}let _=new Qz.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),_.removeAllListeners()};i((ue,ye)=>{m=!0,ye&&(h=!0,S())});function T(ue){_.emit("abort",!ue||ue.type?new nr(null,e,g):ue)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(T),e.signal&&(e.signal.aborted?T():e.signal.addEventListener("abort",T)));let x=aa(e.baseURL,e.url),v=new URL(x,"http://localhost"),b=v.protocol||zz[0];if(b==="data:"){let ue;if(p!=="GET")return Os(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ue=Nb(e.url,c==="blob",{Blob:e.env&&e.env.Blob})}catch(ye){throw Fe.from(ye,Fe.ERR_BAD_REQUEST,e)}return c==="text"?(ue=ue.toString(f),(!f||f==="utf8")&&(ue=X.stripBOM(ue))):c==="stream"&&(ue=fa.default.Readable.from(ue)),Os(t,r,{data:ue,status:200,statusText:"OK",headers:new Ct,config:e})}if(zz.indexOf(b)===-1)return r(new Fe("Unsupported protocol "+b,Fe.ERR_BAD_REQUEST,e));let w=Ct.from(e.headers).normalize();w.set("User-Agent","axios/"+ca,!1);let N=e.onDownloadProgress,R=e.onUploadProgress,k=e.maxRate,j,L;if(X.isSpecCompliantForm(s)){let ue=w.getContentType(/boundary=([-_\w\d]{10,70})/i);s=jz(s,ye=>{w.set(ye)},{tag:`axios-${ca}-boundary`,boundary:ue&&ue[1]||void 0})}else if(X.isFormData(s)&&X.isFunction(s.getHeaders)){if(w.set(s.getHeaders()),!w.hasContentLength())try{let ue=await Yz.default.promisify(s.getLength).call(s);
Line truncated
`+i.map(iG).join(`
`):" "+iG(i[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return t},adapters:Db};function Lb(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new nr(null,n)}function mf(n){return Lb(n),n.headers=Ct.from(n.headers),n.data=k5.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),hf.getAdapter(n.adapter||w4.adapter)(n).then(function(t){return Lb(n),t.data=k5.call(n,n.transformResponse,t),t.headers=Ct.from(t.headers),t},function(t){return P5(t)||(Lb(n),t&&t.response&&(t.response.data=k5.call(n,n.transformResponse,t.response),t.response.headers=Ct.from(t.response.headers))),Promise.reject(t)})}var sG=n=>n instanceof Ct?n.toJSON():n;function Ii(n,e){e=e||{};let l={};function t(c,f,p){return X.isPlainObject(c)&&X.isPlainObject(f)?X.merge.call({caseless:p},c,f):X.isPlainObject(f)?X.merge({},f):X.isArray(f)?f.slice():f}function r(c,f,p){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c,p)}else return t(c,f,p)}function i(c,f){if(!X.isUndefined(f))return t(void 0,f)}function s(c,f){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c)}else return t(void 0,f)}function u(c,f,p){if(p in e)return t(c,f);if(p in n)return t(void 0,c)}let a={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:u,headers:(c,f)=>r(sG(c),sG(f),!0)};return X.forEach(Object.keys(Object.assign({},n,e)),function(f){let p=a[f]||r,m=p(n[f],e[f],f);X.isUndefined(m)&&p!==u||(l[f]=m)}),l}var Fb={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Fb[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});var uG={};Fb.transitional=function(e,l,t){function r(i,s){return"[Axios v"+ca+"] Transitional option '"+i+"'"+s+(t?". "+t:"")}return(i,s,u)=>{if(e===!1)throw new Fe(r(s," has been removed"+(l?" in "+l:"")),Fe.ERR_DEPRECATED);return l&&!uG[s]&&(uG[s]=!0,console.warn(r(s," has been deprecated since v"+l+" and will be removed in the near future"))),e?e(i,s,u):!0}};function F_e(n,e,l){if(typeof n!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);let t=Object.keys(n),r=t.length;for(;r-- >0;){let i=t[r],s=e[i];if(s){let u=n[i],a=u===void 0||s(u,i,n);if(a!==!0)throw new Fe("option "+i+" must be "+a,Fe.ERR_BAD_OPTION_VALUE);continue}if(l!==!0)throw new Fe("Unknown option "+i,Fe.ERR_BAD_OPTION)}}var gf={assertOptions:F_e,validators:Fb};var Ns=gf.validators,N4=class{constructor(e){this.defaults=e,this.interceptors={request:new cb,response:new cb}}async request(e,l){try{return await this._request(e,l)}catch(t){if(t instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+=`
`)){let a=u.trim();if(a)if(a.startsWith("#")){if(a.startsWith("#EXT")){let c=rme(a,i);c&&s.push(c)}}else s.push(a)}return s.length!==0&&s[0].name==="EXTM3U"||Le("The EXTM3U tag MUST be the first line."),s}(n,e),t=ime(l,e);return t.source=n,t}var sme=["#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"],ume=["#EXT-X-MEDIA"],hE=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let l of e)if(l.startsWith("#"))if(sme.some(t=>l.startsWith(t)))super.push(l);else{if(this.includes(l)){if(ume.some(t=>l.startsWith(t)))continue;Le(`Redundantitem(${l})`)}super.push(l)}else super.push(l);return this.length}};function vE(n,e){let l=1e3;e&&(l=Math.pow(10,e));let t=Math.round(n*l)/l;return e?t.toFixed(e):t}function ame(n){let e=[`DATA-ID="${n.id}"`];return n.language&&e.push(`LANGUAGE="${n.language}"`),n.value?e.push(`VALUE="${n.value}"`):n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function oH(n,e){let l=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",t=[`METHOD=${n.method}`];return n.uri&&t.push(`URI="${n.uri}"`),n.iv&&(n.iv.length!==16&&Le("IV must be a 128-bit unsigned integer"),t.push(`IV=${sH(n.iv)}`)),n.format&&t.push(`KEYFORMAT="${n.format}"`),n.formatVersion&&t.push(`KEYFORMATVERSIONS="${n.formatVersion}"`),`${l}:${t.join(",")}`}function ome(n,e){let l=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",t=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&t.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&t.push(`URI="${e.uri}"`),e.codecs&&t.push(`CODECS="${e.codecs}"`),e.resolution&&t.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&t.push(`FRAME-RATE=${vE(e.frameRate,3)}`),e.hdcpLevel&&t.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){t.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)n.push(bc(r))}if(e.video.length>0){t.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)n.push(bc(r))}if(e.subtitles.length>0){t.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)n.push(bc(r))}if(Khe().allowClosedCaptionsNone&&e.closedCaptions.length===0)t.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){t.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)n.push(bc(r))}if(e.score&&t.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);t.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&t.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&t.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&t.push(`PROGRAM-ID=${e.programId}`),n.push(`${l}:${t.join(",")}`),e.isIFrameOnly||n.push(`${e.uri}`)}function bc(n){let e=[`TYPE=${n.type}`,`GROUP-ID="${n.groupId}"`,`NAME="${n.name}"`];return n.isDefault!==void 0&&e.push("DEFAULT="+(n.isDefault?"YES":"NO")),n.autoselect!==void 0&&e.push("AUTOSELECT="+(n.autoselect?"YES":"NO")),n.forced!==void 0&&e.push("FORCED="+(n.forced?"YES":"NO")),n.language&&e.push(`LANGUAGE="${n.language}"`),n.assocLanguage&&e.push(`ASSOC-LANGUAGE="${n.assocLanguage}"`),n.instreamId&&e.push(`INSTREAM-ID="${n.instreamId}"`),n.characteristics&&e.push(`CHARACTERISTICS="${n.characteristics}"`),n.channels&&e.push(`CHANNELS="${n.channels}"`),n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function cme(n,e,l,t,r=1,i=null){let s=!1,u="";if(e.discontinuity&&n.push("#EXT-X-DISCONTINUITY"),e.key){let c=oH(e.key);c!==l&&(n.push(c),l=c)}if(e.map){let c=function(f){let p=[`URI="${f.uri}"`];return f.byterange&&p.push(`BYTERANGE="${cE(f.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);c!==t&&(n.push(c),t=c)}if(e.programDateTime&&n.push(`#EXT-X-PROGRAM-DATE-TIME:${oE(e.programDateTime)}`),e.dateRange&&n.push(function(c){let f=[`ID="${c.id}"`];c.start&&f.push(`START-DATE="${oE(c.start)}"`),c.end&&f.push(`END-DATE="${oE(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}=${sH(c.attributes[p])}`);return`#EXT-X-DATERANGE:${f.join(",")}`}(e.dateRange)),e.markers.length>0&&(u=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}(n,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:_}=m.byterange;h.push(`BYTERANGE-START=${g}`),_&&h.push(`BYTERANGE-LENGTH=${_}`)}c.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),p=!0}else{let h=[];h.push(
Line truncated
`)}var fH="hls_cache",Lc=[],la={},_5={},na={},Dc="";function fme(n,e){if(Lc.push(n),la[n]=e,Lc.length>5){let l=Lc.shift();pme(l)}}function pme(n){delete la[n],delete Lc[n],new JSFile(fH+"/"+n).delete()}function dme(n,e){if(e.variants)for(let l of e.variants)l.uri.startsWith("http")||(l.uri=_E(n,l.uri));if(e.segments)for(let l of e.segments)l.uri.startsWith("http")||(l.uri=_E(n,l.uri)),l.key&&l.key.uri&&!l.key.uri.startsWith("http")&&(l.key.uri=_E(n,l.key.uri));return e}async function pH(n,e){let l=md5X(n);if(la[l])return la[l];let t={},r=n;for(;t=await req(r,{headers:e,redirect:0}),t.headers.location;)r=t.headers.location;if(t.code==200){var i=t.content;let s=dme(r,aH(i));return fme(l,{code:t.code,plist:s,key:l,headers:t.headers}),la[l]}return{}}async function dH(n,e,l){if(!la[n])return{};let r=la[n].plist.segments,i=!na[n];if(i){na[n]={};for(let f of r){let p=md5X(f.uri+f.mediaSequenceNumber.toString());na[n][p]={file:fH+"/"+n+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in na[n]){let p=na[n][f];p.index>=e?p.order=p.index-e:p.order=r.length-e+p.index}i&&hme(n,5,l);let s=r[e],u=md5X(s.uri+s.mediaSequenceNumber.toString()),a=na[n][u];if(a.state==1||a.state==-1){let f=new JSFile(a.file);if(await f.exist())return a.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:f};a.state=-1}if(a.state==-1&&hH(n,a,l),a.state==0){var c=new JSProxyStream;c.head(200,{connection:"close","content-type":"video/mp2t"});let f=0;return a.read=!0,new Promise(async function(p,m){let h=new JSFile(a.file+".dl");await h.open("r"),async function g(){let _=await h.size();if(_>f){var S=await h.read(_-f,f);await c.write(S),f=_}if(a.state==1||a.state<0){c.done(),await h.close(),await h.delete(),a.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:c}}}async function hH(n,e,l){if(e.state>=0||!_5[n])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let t=new JSFile(e.file+".dl");await t.open("w");let r=await req(e.uri,{buffer:3,headers:l,stream:t,timeout:[5e3,1e4]});if(r.error||r.code>=300){await t.close(),e.read||await t.delete(),e.state=-1;return}await t.close(),e.read?await t.copy(e.file):await t.move(e.file),e.state=1}async function hme(n,e,l){Dc&&Dc!=n&&delete _5[Dc],Dc=n,_5[n]=!0;for(let t=0;t<e&&_5[n];t++)new Promise(function(r,i){(async function s(){if(!_5[n]){r();return}let u=_e.pickBy(na[n],function(c){return c.state==-1}),a=_e.minBy(Object.values(u),function(c){return c.order});if(!a){r();return}await hH(n,a,l),setTimeout(s,5)})()})}function _E(n,e){var l=n.split("/"),t=e.split("/");l.pop();for(var r=0;r<t.length;r++)t[r]!="."&&(t[r]==".."?l.pop():l.push(t[r]));return l.join("/")}function mH(n){let e=[];return Array.from(n.danmuku).forEach(l=>{let t=Number(l[0]),r=l[4];e.push(`<dp="${t},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></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>"}varFc=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newRr(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Mr,Referer:this.siteUrl+"/"}}asyncreconnnect(e,l,t,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Ts(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,l,t,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,l,t,r,i,s,u){returnu.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${u.headers.location}`),u.headers.location):this.fetch(u.headers.location,l,t,r,i,s):u.content.length>0?(this.reconnectTimes=0,i?{cookie:u.headers["set-cookie"],content:u.content}:u.content):s===1?(this.reconnectTimes=0,u.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(u)}`),awaitthis.reconnnect(e,l,t,r,i,s))}asyncfetch(e,l,t,r=!1,i=!1,s=0){letu=Ec(l),a=e;_e.isEmpty(u)||(a=e+"?"+u);letc=newc5(a),f;returnf=awaitreq(c.toString(),{method:"get",headers:t,buffer:s,data:null}),f.code===201||f.code===200||f.code===302||f.code===301||i?awaitthis.getResponse(e,l,t,r,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,l,t,r,i,s))}asyncgetHtml(e=this.siteUrl,l=this.getHeader()){lett=awaitthis.fetch(e,null,l);if(_e.isEmpty(t))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnul(t)}asynLine truncated
`).forEach(function(s){r=s.indexOf(":"),l=s.substring(0,r).trim().toLowerCase(),t=s.substring(r+1).trim(),!(!l||e[l]&&s_e[l])&&(l==="set-cookie"?e[l]?e[l].push(t):e[l]=[t]:e[l]=e[l]?e[l]+", "+t:t)}),e};var Oz=Symbol("internals");function P5(n){return n&&String(n).trim().toLowerCase()}function pf(n){return n===!1||n==null?n:X.isArray(n)?n.map(pf):String(n)}function u_e(n){let e=Object.create(null),l=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=l.exec(n);)e[t[1]]=t[2];return e}var a_e=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());functiongb(n,e,l,t,r){if(X.isFunction(t))returnt.call(this,e,l);if(r&&(e=l),!!X.isString(e)){if(X.isString(t))returne.indexOf(t)!==-1;if(X.isRegExp(t))returnt.test(e)}}functiono_e(n){returnn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,l,t)=>l.toUpperCase()+t)}functionc_e(n,e){letl=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+l,{value:function(r,i,s){returnthis[t].call(this,e,r,i,s)},configurable:!0})})}varR4=class{constructor(e){e&&this.set(e)}set(e,l,t){letr=this;functioni(u,a,c){letf=P5(a);if(!f)thrownewError("header name must be a non-empty string");letp=X.findKey(r,f);(!p||r[p]===void0||c===!0||c===void0&&r[p]!==!1)&&(r[p||a]=pf(u))}lets=(u,a)=>X.forEach(u,(c,f)=>i(c,f,a));returnX.isPlainObject(e)||einstanceofthis.constructor?s(e,l):X.isString(e)&&(e=e.trim())&&!a_e(e)?s(wz(e),l):e!=null&&i(l,e,t),this}get(e,l){if(e=P5(e),e){lett=X.findKey(this,e);if(t){letr=this[t];if(!l)returnr;if(l===!0)returnu_e(r);if(X.isFunction(l))returnl.call(this,r,t);if(X.isRegExp(l))returnl.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,l){if(e=P5(e),e){lett=X.findKey(this,e);return!!(t&&this[t]!==void0&&(!l||gb(this,this[t],t,l)))}return!1}delete(e,l){lett=this,r=!1;functioni(s){if(s=P5(s),s){letu=X.findKey(t,s);u&&(!l||gb(t,t[u],u,l))&&(deletet[u],r=!0)}}returnX.isArray(e)?e.forEach(i):i(e),r}clear(e){letl=Object.keys(this),t=l.length,r=!1;for(;t--;){leti=l[t];(!e||gb(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letl=this,t={};returnX.forEach(this,(r,i)=>{lets=X.findKey(t,i);if(s){l[s]=pf(r),deletel[i];return}letu=e?o_e(i):String(i).trim();u!==i&&deletel[i],l[u]=pf(r),t[u]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letl=Object.create(null);returnX.forEach(this,(t,r)=>{t!=null&&t!==!1&&(l[r]=e&&X.isArray(t)?t.join(", "):t)}),l}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,l])=>e+": "+l).join(`
`,k_e=H5.encode(Rs),P_e=2,Db=class{constructor(e,l){let{escapeName:t}=this.constructor,r=X.isString(l),i=`Content-Disposition:form-data;name="${t(e)}"${!r&&l.name?`; filename="${t(l.name)}"`:""}${Rs}`;r?l=H5.encode(String(l).replace(/\r?\n|\r\n?/g,Rs)):i+=`Content-Type:${l.type||"application/octet-stream"}${Rs}`,this.headers=H5.encode(i+Rs),this.contentLength=r?l.byteLength:l.size,this.size=this.headers.byteLength+this.contentLength+P_e,this.name=e,this.value=l}async*encode(){yield this.headers;let{value:e}=this;X.isTypedArray(e)?yield e:yield*mf(e),yield k_e}static escapeName(e){return String(e).replace(/[\r\n"]/g,l=>({"\r":"%0D","\n":"%0A",'"':"%22"})[l])}},D_e=(n,e,l)=>{let{tag:t="form-data-boundary",size:r=25,boundary:i=t+"-"+X.generateString(r,C_e)}=l||{};if(!X.isFormData(n))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=H5.encode("--"+i+Rs),u=H5.encode("--"+i+"--"+Rs+Rs),a=u.byteLength,c=Array.from(n.entries()).map(([p,m])=>{let h=new Db(p,m);return a+=h.size,h});a+=s.byteLength*c.length,a=X.toFiniteNumber(a);let f={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(a)&&(f["Content-Length"]=a),e&&e(f),Hz.Readable.from(async function*(){for(let p of c)yield s,yield*p.encode();yield u}())},qz=D_e;var Vz=At(require("stream"),1),Lb=class extends Vz.default.Transform{__transform(e,l,t){this.push(e),t()}_transform(e,l,t){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,l)}this.__transform(e,l,t)}},zz=Lb;var L_e=(n,e)=>X.isAsyncFn(n)?function(...l){let t=l.pop();n.apply(this,l).then(r=>{try{e?t(null,...e(r)):t(null,r)}catch(i){t(i)}},t)}:n,Gz=L_e;var Xz={flush:Ii.default.constants.Z_SYNC_FLUSH,finishFlush:Ii.default.constants.Z_SYNC_FLUSH},F_e={flush:Ii.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ii.default.constants.BROTLI_OPERATION_FLUSH},Wz=X.isFunction(Ii.default.createBrotliDecompress),{http:M_e,https:$_e}=nG.default,j_e=/https:?/,Kz=Ct.protocols.map(n=>n+":");function U_e(n,e){n.beforeRedirects.proxy&&n.beforeRedirects.proxy(n),n.beforeRedirects.config&&n.beforeRedirects.config(n,e)}function tG(n,e,l){let t=e;if(!t&&t!==!1){let r=(0,Jz.getProxyForUrl)(l);r&&(t=new URL(r))}if(t){if(t.username&&(t.auth=(t.username||"")+":"+(t.password||"")),t.auth){(t.auth.username||t.auth.password)&&(t.auth=(t.auth.username||"")+":"+(t.auth.password||""));let i=Buffer.from(t.auth,"utf8").toString("base64");n.headers["Proxy-Authorization"]="Basic "+i}n.headers.host=n.hostname+(n.port?":"+n.port:"");let r=t.hostname||t.host;n.hostname=r,n.host=r,n.port=t.port,n.path=l,t.protocol&&(n.protocol=t.protocol.includes(":")?t.protocol:`${t.protocol}:`)}n.beforeRedirects.proxy=function(i){tG(i,e,i.href)}}var B_e=typeof process<"u"&&X.kindOf(process)==="process",H_e=n=>new Promise((e,l)=>{let t,r,i=(a,c)=>{r||(r=!0,t&&t(a,c))},s=a=>{i(a),e(a)},u=a=>{i(a,!0),l(a)};n(s,u,a=>t=a).catch(u)}),q_e=({address:n,family:e})=>{if(!X.isString(n))throw TypeError("address must be a string");return{address:n,family:e||(n.indexOf(".")<0?6:4)}},Yz=(n,e)=>q_e(X.isObject(n)?n:{address:n,family:e}),rG=B_e&&function(e){return H_e(async function(t,r,i){let{data:s,lookup:u,family:a}=e,{responseType:c,responseEncoding:f}=e,p=e.method.toUpperCase(),m,h=!1,g;if(u){let ue=Gz(u,ye=>X.isArray(ye)?ye:[ye]);u=(ye,q,re)=>{ue(ye,q,(te,ne,Vl)=>{if(te)return re(te);let On=X.isArray(ne)?ne.map(Ge=>Yz(Ge)):[Yz(ne,Vl)];q.all?re(te,On):re(te,On[0].address,On[0].family)})}}let _=new lG.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),_.removeAllListeners()};i((ue,ye)=>{m=!0,ye&&(h=!0,S())});function T(ue){_.emit("abort",!ue||ue.type?new lr(null,e,g):ue)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(T),e.signal&&(e.signal.aborted?T():e.signal.addEventListener("abort",T)));let x=ca(e.baseURL,e.url),v=new URL(x,"http://localhost"),b=v.protocol||Kz[0];if(b==="data:"){let ue;if(p!=="GET")return Ns(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ue=Cb(e.url,c==="blob",{Blob:e.env&&e.env.Blob})}catch(ye){throw Fe.from(ye,Fe.ERR_BAD_REQUEST,e)}return c==="text"?(ue=ue.toString(f),(!f||f==="utf8")&&(ue=X.stripBOM(ue))):c==="stream"&&(ue=da.default.Readable.from(ue)),Ns(t,r,{data:ue,status:200,statusText:"OK",headers:new kt,config:e})}if(Kz.indexOf(b)===-1)return r(new Fe("Unsupported protocol "+b,Fe.ERR_BAD_REQUEST,e));let w=kt.from(e.headers).normalize();w.set("User-Agent","axios/"+pa,!1);let R=e.onDownloadProgress,N=e.onUploadProgress,k=e.maxRate,j,L;if(X.isSpecCompliantForm(s)){let ue=w.getContentType(/boundary=([-_\w\d]{10,70})/i);s=qz(s,ye=>{w.set(ye)},{tag:`axios-${pa}-boundary`,boundary:ue&&ue[1]||void 0})}else if(X.isFormData(s)&&X.isFunction(s.getHeaders)){if(w.set(s.getHeaders()),!w.hasContentLength())try{let ue=await eG.default.promisify(s.getLength).call(s);
Line truncated
`+i.map(oG).join(`
`):" "+oG(i[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return t},adapters:Fb};function Mb(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new lr(null,n)}function yf(n){return Mb(n),n.headers=kt.from(n.headers),n.data=D5.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),gf.getAdapter(n.adapter||N4.adapter)(n).then(function(t){return Mb(n),t.data=D5.call(n,n.transformResponse,t),t.headers=kt.from(t.headers),t},function(t){return L5(t)||(Mb(n),t&&t.response&&(t.response.data=D5.call(n,n.transformResponse,t.response),t.response.headers=kt.from(t.response.headers))),Promise.reject(t)})}var cG=n=>n instanceof kt?n.toJSON():n;function Ci(n,e){e=e||{};let l={};function t(c,f,p){return X.isPlainObject(c)&&X.isPlainObject(f)?X.merge.call({caseless:p},c,f):X.isPlainObject(f)?X.merge({},f):X.isArray(f)?f.slice():f}function r(c,f,p){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c,p)}else return t(c,f,p)}function i(c,f){if(!X.isUndefined(f))return t(void 0,f)}function s(c,f){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c)}else return t(void 0,f)}function u(c,f,p){if(p in e)return t(c,f);if(p in n)return t(void 0,c)}let a={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:u,headers:(c,f)=>r(cG(c),cG(f),!0)};return X.forEach(Object.keys(Object.assign({},n,e)),function(f){let p=a[f]||r,m=p(n[f],e[f],f);X.isUndefined(m)&&p!==u||(l[f]=m)}),l}var $b={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{$b[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});var fG={};$b.transitional=function(e,l,t){function r(i,s){return"[Axios v"+pa+"] Transitional option '"+i+"'"+s+(t?". "+t:"")}return(i,s,u)=>{if(e===!1)throw new Fe(r(s," has been removed"+(l?" in "+l:"")),Fe.ERR_DEPRECATED);return l&&!fG[s]&&(fG[s]=!0,console.warn(r(s," has been deprecated since v"+l+" and will be removed in the near future"))),e?e(i,s,u):!0}};function G_e(n,e,l){if(typeof n!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);let t=Object.keys(n),r=t.length;for(;r-- >0;){let i=t[r],s=e[i];if(s){let u=n[i],a=u===void 0||s(u,i,n);if(a!==!0)throw new Fe("option "+i+" must be "+a,Fe.ERR_BAD_OPTION_VALUE);continue}if(l!==!0)throw new Fe("Unknown option "+i,Fe.ERR_BAD_OPTION)}}var vf={assertOptions:G_e,validators:$b};var Is=vf.validators,C4=class{constructor(e){this.defaults=e,this.interceptors={request:new pb,response:new pb}}async request(e,l){try{return await this._request(e,l)}catch(t){if(t instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+=`
varMte=Object.create;varJ8=Object.defineProperty;var$te=Object.getOwnPropertyDescriptor;varBte=Object.getOwnPropertyNames;varHte=Object.getPrototypeOf,Vte=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),UA=(t,e)=>{for(varnine)J8(t,n,{get:e[n],enumerable:!0})},MA=(t,e,n,l)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofBte(e))!Vte.call(t,r)&&r!==n&&J8(t,r,{get:()=>e[r],enumerable:!(l=$te(e,r))||l.enumerable});returnt};vare2=(t,e,n)=>(n=t!=null?Mte(Hte(t)):{},MA(e||!t||!t.__esModule?J8(n,"default",{value:t,enumerable:!0}):n,t)),qte=t=>MA(J8({},"__esModule",{value:!0}),t);varBA=k((xNe,$A)=>{"use strict";functionzte(t){vare=newt,n=e;functionl(){vari=e;returni.next?e=i.next:(e=newt,n=e),i.next=null,i}functionr(i){n.next=i,n=i}return{get:l,release:r}}$A.exports=zte});varMd=k((ANe,Ud)=>{"use strict";varGte=BA();functionHA(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");varl=Gte(Jte),r=null,i=null,s=0,a=null,u={push:_,drain:W3,saturated:W3,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(x){if(!(x>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=x,!u.paused)for(;r&&s<n;)s++,w()},running:o,resume:d,idle:y,length:f,getQueue:m,unshift:S,empty:W3,kill:E,killAndDrain:g,error:v};returnu;functiono(){returns}functionc(){u.paused=!0}functionf(){for(varx=r,O=0;x;)x=x.next,O++;returnO}functionm(){for(varx=r,O=[];x;)O.push(x.value),x=x.next;returnO}functiond(){if(u.paused)for(u.paused=!1;r&&s<n;)s++,w()}functiony(){returns===0&&u.length()===0}function_(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||W3,N.errorHandler=a,s>=n||u.paused?i?(i.next=N,i=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionS(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||W3,N.errorHandler=a,s>=n||u.paused?r?(N.next=r,r=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionw(x){x&&l.release(x);varO=r;O&&s<=n?u.paused?s--:(i===r&&(i=null),r=O.next,O.next=null,e.call(t,O.value,O.worked),i===null&&u.empty()):--s===0&&u.drain()}functionE(){r=null,i=null,u.drain=W3}functiong(){r=null,i=null,u.drain(),u.drain=W3}functionv(x){a=x}}functionW3(){}functionJte(){this.value=null,this.callback=W3,this.next=null,this.release=W3,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,l){varr=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=W3,t.errorHandler&&i(n,s),r.call(t.context,n,l),t.release(t)}}functionKte(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionl(c,f){e.call(this,c).then(function(m){f(null,m)},f)}varr=HA(t,l,n),i=r.push,s=r.unshift;returnr.push=a,r.unshift=u,r.drained=o,r;functiona(c){varf=newPromise(function(m,d){i(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(W3),f}functionu(c){varf=newPromise(function(m,d){s(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(W3),f}functiono(){if(r.idle())returnnewPromise(function(m){m()});varc=r.drain,f=newPromise(function(m){r.drain=function(){c(),m()}});returnf}}Ud.exports=HA;Ud.exports.promise=Kte});varBd=k((ONe,VA)=>{"use strict";var{inherits:Xte,format:$d}=require("util");functionvu(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");functionl(r,i,s){if(!new.target)returnnewl(r,i,s);Error.captureStackTrace(this,l),this.code=t,this.message=e,this.name="AvvioError",r&&i&&s?this.message=$d(e,r,i,s):r&&i?this.message=$d(e,r,i):r?this.message=$d(e,r):this.message=e}returnl.prototype[Symbol.toStringTag]="Error",l.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Xte(l,n),l}VA.exports={createError:vu,AVV_ERR_EXPOSE_ALREADY_DEFINED:vu("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:vu("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:vu("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:vu("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:vu("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:vu("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varzA=k((NNe,qA)=>{qA.exports=functiont(e,n,l){n===void0&&(n=""),l||(l={});varr=function(u){varo={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnl.unicode===!1?o[u]:u};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
varNte=Object.create;varz8=Object.defineProperty;varCte=Object.getOwnPropertyDescriptor;varIte=Object.getOwnPropertyNames;varRte=Object.getPrototypeOf,kte=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),PA=(t,e)=>{for(varnine)z8(t,n,{get:e[n],enumerable:!0})},LA=(t,e,n,l)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofIte(e))!kte.call(t,r)&&r!==n&&z8(t,r,{get:()=>e[r],enumerable:!(l=Cte(e,r))||l.enumerable});returnt};varZl=(t,e,n)=>(n=t!=null?Nte(Rte(t)):{},LA(e||!t||!t.__esModule?z8(n,"default",{value:t,enumerable:!0}):n,t)),Dte=t=>LA(z8({},"__esModule",{value:!0}),t);varjA=k((pNe,FA)=>{"use strict";functionPte(t){vare=newt,n=e;functionl(){vari=e;returni.next?e=i.next:(e=newt,n=e),i.next=null,i}functionr(i){n.next=i,n=i}return{get:l,release:r}}FA.exports=Pte});varjd=k((fNe,Fd)=>{"use strict";varLte=jA();functionUA(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");varl=Lte(Fte),r=null,i=null,s=0,a=null,u={push:_,drain:X3,saturated:X3,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(x){if(!(x>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=x,!u.paused)for(;r&&s<n;)s++,w()},running:o,resume:d,idle:y,length:f,getQueue:m,unshift:S,empty:X3,kill:E,killAndDrain:g,error:v};returnu;functiono(){returns}functionc(){u.paused=!0}functionf(){for(varx=r,O=0;x;)x=x.next,O++;returnO}functionm(){for(varx=r,O=[];x;)O.push(x.value),x=x.next;returnO}functiond(){if(u.paused)for(u.paused=!1;r&&s<n;)s++,w()}functiony(){returns===0&&u.length()===0}function_(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||X3,N.errorHandler=a,s>=n||u.paused?i?(i.next=N,i=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionS(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||X3,N.errorHandler=a,s>=n||u.paused?r?(N.next=r,r=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionw(x){x&&l.release(x);varO=r;O&&s<=n?u.paused?s--:(i===r&&(i=null),r=O.next,O.next=null,e.call(t,O.value,O.worked),i===null&&u.empty()):--s===0&&u.drain()}functionE(){r=null,i=null,u.drain=X3}functiong(){r=null,i=null,u.drain(),u.drain=X3}functionv(x){a=x}}functionX3(){}functionFte(){this.value=null,this.callback=X3,this.next=null,this.release=X3,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,l){varr=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=X3,t.errorHandler&&i(n,s),r.call(t.context,n,l),t.release(t)}}functionjte(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionl(c,f){e.call(this,c).then(function(m){f(null,m)},f)}varr=UA(t,l,n),i=r.push,s=r.unshift;returnr.push=a,r.unshift=u,r.drained=o,r;functiona(c){varf=newPromise(function(m,d){i(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(X3),f}functionu(c){varf=newPromise(function(m,d){s(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(X3),f}functiono(){if(r.idle())returnnewPromise(function(m){m()});varc=r.drain,f=newPromise(function(m){r.drain=function(){c(),m()}});returnf}}Fd.exports=UA;Fd.exports.promise=jte});varMd=k((dNe,MA)=>{"use strict";var{inherits:Ute,format:Ud}=require("util");functionyu(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");functionl(r,i,s){if(!new.target)returnnewl(r,i,s);Error.captureStackTrace(this,l),this.code=t,this.message=e,this.name="AvvioError",r&&i&&s?this.message=Ud(e,r,i,s):r&&i?this.message=Ud(e,r,i):r?this.message=Ud(e,r):this.message=e}returnl.prototype[Symbol.toStringTag]="Error",l.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Ute(l,n),l}MA.exports={createError:yu,AVV_ERR_EXPOSE_ALREADY_DEFINED:yu("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:yu("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:yu("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:yu("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:yu("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:yu("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varBA=k((hNe,$A)=>{$A.exports=functiont(e,n,l){n===void0&&(n=""),l||(l={});varr=function(u){varo={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnl.unicode===!1?o[u]:u};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
deps:${n}}`};var K0e={keyword:"dependencies",type:"object",schemaType:"object",error:Qr.error,code(t){let[e,n]=X0e(t);YI(t,e),QI(t,n)}};function X0e({schema:t}){let e={},n={};for(let l in t){if(l==="__proto__")continue;let r=Array.isArray(t[l])?e:n;r[l]=t[l]}return[e,n]}function YI(t,e=t.schema){let{gen:n,data:l,it:r}=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 u=(0,z1.propertyInData)(n,l,s,r.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),r.allErrors?n.if(u,()=>{for(let o of a)(0,z1.checkReportMissingProp)(t,o)}):(n.if((0,Oy._)`${u}&&(${(0,z1.checkMissingProp)(t,a,i)})`),(0,z1.reportMissingProp)(t,i),n.else())}}Qr.validatePropertyDeps=YI;function QI(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,J0e.alwaysValidSchema)(i,e[a])||(n.if((0,z1.propertyInData)(n,l,a,i.opts.ownProperties),()=>{let u=t.subschema({keyword:r,schemaProp:a},s);t.mergeValidEvaluated(u,s)},()=>n.var(s,!0)),t.ok(s))}Qr.validateSchemaDeps=QI;Qr.default=K0e});var tk=k(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var ek=st(),W0e=Nt(),Y0e={message:"property name must be valid",params:({params:t})=>(0,ek._)`{propertyName:${t.propertyName}}`},Q0e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Y0e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,W0e.alwaysValidSchema)(r,n))return;let i=e.name("valid");e.forIn("key",l,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,ek.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Ny.default=Q0e});var Ry=k(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var Qc=N2(),Tr=st(),Z0e=Z3(),Zc=Nt(),e4e={message:"must NOT have additional properties",params:({params:t})=>(0,Tr._)`{additionalProperty:${t.additionalProperty}}`},t4e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:e4e,code(t){let{gen:e,schema:n,parentSchema:l,data:r,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,Zc.alwaysValidSchema)(s,n))return;let o=(0,Qc.allSchemaProperties)(l.properties),c=(0,Qc.allSchemaProperties)(l.patternProperties);f(),t.ok((0,Tr._)`${i}===${Z0e.default.errors}`);function f(){e.forIn("key",r,S=>{!o.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(o.length>8){let E=(0,Zc.schemaRefOrVal)(s,l.properties,"properties");w=(0,Qc.isOwnProperty)(e,E,S)}else o.length?w=(0,Tr.or)(...o.map(E=>(0,Tr._)`${S}===${E}`)):w=Tr.nil;return c.length&&(w=(0,Tr.or)(w,...c.map(E=>(0,Tr._)`${(0,Qc.usePattern)(t,E)}.test(${S})`))),(0,Tr.not)(w)}function d(S){e.code((0,Tr._)`delete${r}[${S}]`)}function y(S){if(u.removeAdditional==="all"||u.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,Zc.alwaysValidSchema)(s,n)){let w=e.name("valid");u.removeAdditional==="failing"?(_(S,w,!1),e.if((0,Tr.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,Tr.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:Zc.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};Cy.default=t4e});var rk=k(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var n4e=c0(),nk=N2(),Iy=Nt(),lk=Ry(),l4e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:l,data:r,it:i}=t;i.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&lk.default.code(new n4e.KeywordCxt(i,lk.default,"additionalProperties"));let s=(0,nk.allSchemaProperties)(n);for(let f of s)i.definedProperties.add(f);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Iy.mergeEvaluated.props(e,(0,Iy.toHash)(s),i.props));let a=s.filter(f=>!(0,Iy.alwaysValidSchema)(i,n[f]));if(a.length===0)return;let u=e.name("valid");for(let f of a)o(f)?c(f):(e.if((0,nk.propertyInData)(e,r,f,i.opts.ownProperties)),c(f),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function o(f){return i.opts.useDefaults&&!i.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};ky.default=l4e});var uk=k(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var ik=N2(),e9=st(),sk=Nt(),ak=Nt(),r4e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:l,parentSchema:r,it:i}=t,{opts:s}=i,a=(0,ik.allSchemaProperties)(n),u=a.filter(_=>(0,sk.alwaysValidSchema)(i,n[_]));if(a.length===0||u.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let o=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
deps:${n}}`};var j0e={keyword:"dependencies",type:"object",schemaType:"object",error:Yr.error,code(t){let[e,n]=U0e(t);JR(t,e),KR(t,n)}};function U0e({schema:t}){let e={},n={};for(let l in t){if(l==="__proto__")continue;let r=Array.isArray(t[l])?e:n;r[l]=t[l]}return[e,n]}function JR(t,e=t.schema){let{gen:n,data:l,it:r}=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 u=(0,V1.propertyInData)(n,l,s,r.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),r.allErrors?n.if(u,()=>{for(let o of a)(0,V1.checkReportMissingProp)(t,o)}):(n.if((0,xy._)`${u}&&(${(0,V1.checkMissingProp)(t,a,i)})`),(0,V1.reportMissingProp)(t,i),n.else())}}Yr.validatePropertyDeps=JR;function KR(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,F0e.alwaysValidSchema)(i,e[a])||(n.if((0,V1.propertyInData)(n,l,a,i.opts.ownProperties),()=>{let u=t.subschema({keyword:r,schemaProp:a},s);t.mergeValidEvaluated(u,s)},()=>n.var(s,!0)),t.ok(s))}Yr.validateSchemaDeps=KR;Yr.default=j0e});var YR=k(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var WR=st(),M0e=Nt(),$0e={message:"property name must be valid",params:({params:t})=>(0,WR._)`{propertyName:${t.propertyName}}`},B0e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:$0e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,M0e.alwaysValidSchema)(r,n))return;let i=e.name("valid");e.forIn("key",l,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,WR.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Ay.default=B0e});var Ny=k(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var Wc=O2(),Sr=st(),H0e=Q3(),Yc=Nt(),V0e={message:"must NOT have additional properties",params:({params:t})=>(0,Sr._)`{additionalProperty:${t.additionalProperty}}`},q0e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:V0e,code(t){let{gen:e,schema:n,parentSchema:l,data:r,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,Yc.alwaysValidSchema)(s,n))return;let o=(0,Wc.allSchemaProperties)(l.properties),c=(0,Wc.allSchemaProperties)(l.patternProperties);f(),t.ok((0,Sr._)`${i}===${H0e.default.errors}`);function f(){e.forIn("key",r,S=>{!o.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(o.length>8){let E=(0,Yc.schemaRefOrVal)(s,l.properties,"properties");w=(0,Wc.isOwnProperty)(e,E,S)}else o.length?w=(0,Sr.or)(...o.map(E=>(0,Sr._)`${S}===${E}`)):w=Sr.nil;return c.length&&(w=(0,Sr.or)(w,...c.map(E=>(0,Sr._)`${(0,Wc.usePattern)(t,E)}.test(${S})`))),(0,Sr.not)(w)}function d(S){e.code((0,Sr._)`delete${r}[${S}]`)}function y(S){if(u.removeAdditional==="all"||u.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,Yc.alwaysValidSchema)(s,n)){let w=e.name("valid");u.removeAdditional==="failing"?(_(S,w,!1),e.if((0,Sr.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,Sr.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:Yc.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};Oy.default=q0e});var ek=k(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var z0e=u0(),QR=O2(),Cy=Nt(),ZR=Ny(),G0e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:l,data:r,it:i}=t;i.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&ZR.default.code(new z0e.KeywordCxt(i,ZR.default,"additionalProperties"));let s=(0,QR.allSchemaProperties)(n);for(let f of s)i.definedProperties.add(f);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Cy.mergeEvaluated.props(e,(0,Cy.toHash)(s),i.props));let a=s.filter(f=>!(0,Cy.alwaysValidSchema)(i,n[f]));if(a.length===0)return;let u=e.name("valid");for(let f of a)o(f)?c(f):(e.if((0,QR.propertyInData)(e,r,f,i.opts.ownProperties)),c(f),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function o(f){return i.opts.useDefaults&&!i.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};Iy.default=G0e});var rk=k(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var tk=O2(),Qc=st(),nk=Nt(),lk=Nt(),J0e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:l,parentSchema:r,it:i}=t,{opts:s}=i,a=(0,tk.allSchemaProperties)(n),u=a.filter(_=>(0,nk.alwaysValidSchema)(i,n[_]));if(a.length===0||u.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let o=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
`;let a=new w7e(e),u=new S7e(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);u.addSchema(f,c);let m=n.refResolver.getSchemaDependencies(c);for(let[d,y]of Object.entries(m))u.addSchema(y,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:u,serializer:a,code:`validator
`;let a=new p7e(e),u=new f7e(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);u.addSchema(f,c);let m=n.refResolver.getSchemaDependencies(c);for(let[d,y]of Object.entries(m))u.addSchema(y,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:u,serializer:a,code:`validator
serializer
${s}`,ajv:u.ajv};let o=new Function("validator","serializer",s);return e.mode==="standalone"?ag()(o,n,a,u):o(u,a)}var A7e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],O7e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],N7e=["maxLength","minLength","pattern"],C7e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function AF(t){for(var e of A7e)if(e in t)return"object";for(var e of O7e)if(e in t)return"array";for(var e of N7e)if(e in t)return"string";for(var e of C7e)if(e in t)return"number";return t.type}function R7e(t,e){let n=e.schema,l=Object.keys(n.properties||{}),r=`
${s}`,ajv:u.ajv};let o=new Function("validator","serializer",s);return e.mode==="standalone"?ig()(o,n,a,u):o(u,a)}var m7e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],y7e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],g7e=["maxLength","minLength","pattern"],v7e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function wF(t){for(var e of m7e)if(e in t)return"object";for(var e of y7e)if(e in t)return"array";for(var e of g7e)if(e in t)return"string";for(var e of v7e)if(e in t)return"number";return t.type}function _7e(t,e){let n=e.schema,l=Object.keys(n.properties||{}),r=`
`,r}function I7e(t,e){let n="",l=e.schema,r=l.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(l.properties)for(let o of Object.keys(l.properties)){if(r.indexOf(o)===-1)continue;let c=i.getPropertyLocation(o);c.schema.$ref&&(c=O0(t,e,c.schema.$ref));let f=JSON.stringify(o);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`,r}function E7e(t,e){let n="",l=e.schema,r=l.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(l.properties)for(let o of Object.keys(l.properties)){if(r.indexOf(o)===-1)continue;let c=i.getPropertyLocation(o);c.schema.$ref&&(c=x0(t,e,c.schema.$ref));let f=JSON.stringify(o);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`,a.push(o)),s.push(o)}for(let o of r)s.indexOf(o)===-1&&(n+=`if(obj['${o}']===undefined)thrownewError('"${o}" is required!')
`);n+=`
letaddComma=false
letjson='${t.wrapObjects?"{":""}'
`;let u=t.wrapObjects;if(t.wrapObjects=!0,l.properties)for(let o of Object.keys(l.properties)){let c=i.getPropertyLocation(o);c.schema.$ref&&(c=O0(t,e,c.schema.$ref));let f=JSON.stringify(o);if(a.indexOf(o)!==-1)n+=`
${A0}
`;let u=t.wrapObjects;if(t.wrapObjects=!0,l.properties)for(let o of Object.keys(l.properties)){let c=i.getPropertyLocation(o);c.schema.$ref&&(c=x0(t,e,c.schema.$ref));let f=JSON.stringify(o);if(a.indexOf(o)!==-1)n+=`
${e}`)}function r7(t,e,n,l){if((t.isLeafNode||l.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[CU]=Pde(t,n,l)),n=""),t.staticChildren)for(let r of Object.values(t.staticChildren))r7(r,e,n+r.prefix,l);if(t.parametricChildren)for(let r of Object.values(t.parametricChildren)){let i=Array.from(r.nodePaths).join("|");r7(r,e,n+i,l)}t.wildcardChild&&r7(t.wildcardChild,e,"*",l)}function Lde(t,e){let n={};return r7(t,n,t.prefix,e),RU(n)}kU.exports={prettyPrintTree:Lde}});var LU=k((Qke,PU)=>{"use strict";var Fde=l7(),a_=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 l=n.params,r=n.opts.constraints||{},i={params:l,constraints:r,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(l)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let u of s)this.constraints.includes(u)||(u==="version"?this.constraints.unshift(u):this.constraints.push(u));let a=s.includes(Fde.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((u,o)=>Object.keys(u.constraints).length-Object.keys(o.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let n=[];for(let l=0;l<e.length;l++)n.push(`'${e[l]}':paramsArray[${l}]`);return new Function("paramsArray",`return{${n.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,n){for(let l=0;l<this.handlers.length;l++){let i=this.handlers[l].constraints[n];if(i!==void 0){let s=e.get(i)||0;s|=1<<l,e.set(i,s)}}}_constrainedIndexBitmask(e){let n=0;for(let l=0;l<this.handlers.length;l++)this.handlers[l].constraints[e]!==void 0&&(n|=1<<l);return~n}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let l of this.constraints){let r=e.newStoreForConstraint(l);this.constrainedHandlerStores[l]=r,this._buildConstraintStore(r,l)}let n=[];n.push(`
`,n+=AU(s,e+o)}return n}function gde(t){let e=t.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function OU(t){return Array.isArray(t)?t.map(e=>OU(e)):typeof t=="symbol"?t.toString():typeof t=="function"?gde(t):t}function vde(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),l={},r=e.includeMeta;Array.isArray(r)||(r=Reflect.ownKeys(n));for(let i of r){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.toString(),a=n[i];if(a!=null){let u=JSON.stringify(OU(a));l[s]=u}}return l}function _de(t){let e="";for(let[n,l]of Object.entries(t))e+=`
${e}`)}function n7(t,e,n,l){if((t.isLeafNode||l.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[xU]=Sde(t,n,l)),n=""),t.staticChildren)for(let r of Object.values(t.staticChildren))n7(r,e,n+r.prefix,l);if(t.parametricChildren)for(let r of Object.values(t.parametricChildren)){let i=Array.from(r.nodePaths).join("|");n7(r,e,n+i,l)}t.wildcardChild&&n7(t.wildcardChild,e,"*",l)}function Tde(t,e){let n={};return n7(t,n,t.prefix,e),AU(n)}NU.exports={prettyPrintTree:Tde}});var RU=k((Uke,IU)=>{"use strict";var xde=t7(),i_=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 l=n.params,r=n.opts.constraints||{},i={params:l,constraints:r,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(l)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let u of s)this.constraints.includes(u)||(u==="version"?this.constraints.unshift(u):this.constraints.push(u));let a=s.includes(xde.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((u,o)=>Object.keys(u.constraints).length-Object.keys(o.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let n=[];for(let l=0;l<e.length;l++)n.push(`'${e[l]}':paramsArray[${l}]`);return new Function("paramsArray",`return{${n.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,n){for(let l=0;l<this.handlers.length;l++){let i=this.handlers[l].constraints[n];if(i!==void 0){let s=e.get(i)||0;s|=1<<l,e.set(i,s)}}}_constrainedIndexBitmask(e){let n=0;for(let l=0;l<this.handlers.length;l++)this.handlers[l].constraints[e]!==void 0&&(n|=1<<l);return~n}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let l of this.constraints){let r=e.newStoreForConstraint(l);this.constrainedHandlerStores[l]=r,this._buildConstraintStore(r,l)}let n=[];n.push(`
`)}for(let l in e.strategies)e.strategies[l].mustMatchWhenDerived&&!this.constraints.includes(l)&&n.push(`if(derivedConstraints.${l}!==undefined)returnnull`);n.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",n.join(`
`))}};PU.exports=a_});var jU=k((Zke,FU)=>{"use strict";var jde=LU(),c7={STATIC:0,PARAMETRIC:1,WILDCARD:2},i7=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 jde),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},s7=class extends i7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let l=this.staticChildren[e.charAt(n)];return l===void 0||!l.matchPrefix(e,n)?null:l}getStaticChild(e,n=0){if(e.length===n)return this;let l=this.findStaticMatchingChild(e,n);return l?l.getStaticChild(e,n+l.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let r=1;for(;r<n.prefix.length;r++)if(e.charCodeAt(r)!==n.prefix.charCodeAt(r)){n=n.split(this,r);break}return n.createStaticChild(e.slice(r))}let l=e.charAt(0);return this.staticChildren[l]=new a7(e),this.staticChildren[l]}},a7=class t extends s7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=c7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,l=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===n);return l||null}createParametricChild(e,n,l){let r=this.getParametricChild(e);return r?(r.nodePaths.add(l),r):(r=new u7(e,n,l),this.parametricChildren.push(r),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),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new o7,this.wildcardChild}split(e,n){let l=this.prefix.slice(0,n),r=this.prefix.slice(n);this.prefix=r,this._compilePrefixMatch();let i=new t(l);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[l.charAt(0)]=i,i}getNextNode(e,n,l,r){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&&l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)l.push({paramsCount:r,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 l=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i+${n})===${l}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},u7=class extends s7{constructor(e,n,l){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=c7.PARAMETRIC,this.nodePaths=new Set([l])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},o7=class extends i7{constructor(){super(),this.kind=c7.WILDCARD}getNextNode(){return null}};FU.exports={StaticNode:a7,ParametricNode:u7,WildcardNode:o7,NODE_TYPES:c7}});var MU=k((eDe,UU)=>{"use strict";var Ude=require("assert");function O5(){if(!(this instanceof O5))return new O5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}O5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,l,r]=t.split(".");return n=Number(n)||0,l=Number(l)||0,r=Number(r)||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),l>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=l,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),r>=(this.store[`${n}.${l}`]||0)&&(this.maxPatches[`${n}.${l}`]=r,this.store[`${n}.${l}.x`]=e),this.store[`${n}.${l}.${r}`]=e,this};O5.prototype.get=function(t){return this.store[t]};UU.exports={name:"version",mustMatchWhenDerived:!0,storage:O5,validate(t){Ude(typeof t=="string","Version should be a string")}}});var BU=k((tDe,$U)=>{"use strict";var Mde=require("assert");function $de(){let t={},e=[];return{get:n=>{let l=t[n];if(l)return l;for(let r of e)if(r.host.test(n))return r.value},set:(n,l)=>{n instanceof RegExp?e.push({host:n,value:l}):t[n]=l}}}$U.exports={name:"host",mustMatchWhenDerived:!1,storage:$de,validate(t){Mde(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var VU=k((nDe,HU)=>{"use strict";var Bde=MU(),Hde=BU(),u_=require("assert"),o_=class{constructor(e){if(this.strategies={version:Bde,host:Hde},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(u_(typeof e.name=="string"&&e.name!=="","strategy.name is required."),u_(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};HU.exports=o_});var zU=k((lDe,qU)=>{"use strict";var Vde=["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"];qU.exports=Vde});var KU=k((rDe,JU)=>{"use strict";function GU(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 qde(t,e){let n=!1,l=!1,r="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let u=t.charCodeAt(s+1),o=t.charCodeAt(s+2);GU(u,o)===null?n=!0:(l=!0,u===50&&o===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){r=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:r,shouldDecodeParam:l}}function zde(t){let e=t.indexOf("%");if(e===-1)return t;let n="",l=e;for(let r=e;r<t.length;r++)if(t.charCodeAt(r)===37){let i=t.charCodeAt(r+1),s=t.charCodeAt(r+2),a=GU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}JU.exports={safeDecodeURI:qde,safeDecodeURIComponent:zde}});var m_=k((iDe,tM)=>{"use strict";var Bl=require("assert"),Gde=mU(),p7=xU(),f_=u0(),{prettyPrintTree:Jde}=DU(),{StaticNode:XU,NODE_TYPES:c_}=jU(),Kde=VU(),$0=zU(),p_=l7(),{safeDecodeURI:Xde,safeDecodeURIComponent:WU}=KU(),YU=/^https?:\/\/.*?\//,zu=/(\/:[^/()]*?)\?(\/?)/;if(!p7(YU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!p7(zu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function wl(t){if(!(this instanceof wl))return new wl(t);t=t||{},this._opts=t,t.defaultRoute?(Bl(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(Bl(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(Bl(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Wde,t.querystringParser?(Bl(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Gde.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 Kde(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}wl.prototype.on=function(e,n,l,r,i){typeof l=="function"&&(r!==void 0&&(i=r),r=l,l={}),Bl(typeof n=="string","Path should be a string"),Bl(n.length>0,"The path could not be empty"),Bl(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),Bl(typeof r=="function","Handler should be a function");let s=n.match(zu);if(s){Bl(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let o=n.replace(zu,"$1$2"),c=n.replace(zu,"$2");this.on(e,o,l,r,i),this.on(e,c,l,r,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=d_(n)),this.ignoreTrailingSlash&&(n=h_(n));let u=Array.isArray(e)?e:[e];for(let o of u)Bl(typeof o=="string","Method should be a string"),Bl($0.includes(o),`Method'${o}'isnotanhttpmethod.`),this._on(o,n,l,r,i,a)};wl.prototype._on=function(e,n,l,r,i){let s={};l.constraints!==void 0&&(Bl(typeof l.constraints=="object"&&l.constraints!==null,"Constraints should be an object"),Object.keys(l.constraints).length!==0&&(s=l.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new XU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new XU(""),this.trees[e].staticChildren["/"]=m}let u=this.trees[e],o=u.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==o){let _=a.slice(o,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),u=u.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=eM(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||Bl(p7(new RegExp(te)),`Theregex'${te}'isnotsafe!`),S.push(ZU(te)),E=F+1}else S.push("(.*?)");let R=E;for(;E<a.length;E++){let F=a.charCodeAt(E);if(F===47)break;if(F===58)if(a.charCodeAt(E+1)===58)E++;else break}let U=a.slice(R,E);if(U&
Line truncated
Content-Length:${Te.length}\r
`))}};IU.exports=i_});var DU=k((Mke,kU)=>{"use strict";var Ade=RU(),u7={STATIC:0,PARAMETRIC:1,WILDCARD:2},l7=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 Ade),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},r7=class extends l7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let l=this.staticChildren[e.charAt(n)];return l===void 0||!l.matchPrefix(e,n)?null:l}getStaticChild(e,n=0){if(e.length===n)return this;let l=this.findStaticMatchingChild(e,n);return l?l.getStaticChild(e,n+l.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let r=1;for(;r<n.prefix.length;r++)if(e.charCodeAt(r)!==n.prefix.charCodeAt(r)){n=n.split(this,r);break}return n.createStaticChild(e.slice(r))}let l=e.charAt(0);return this.staticChildren[l]=new i7(e),this.staticChildren[l]}},i7=class t extends r7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=u7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,l=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===n);return l||null}createParametricChild(e,n,l){let r=this.getParametricChild(e);return r?(r.nodePaths.add(l),r):(r=new s7(e,n,l),this.parametricChildren.push(r),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),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new a7,this.wildcardChild}split(e,n){let l=this.prefix.slice(0,n),r=this.prefix.slice(n);this.prefix=r,this._compilePrefixMatch();let i=new t(l);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[l.charAt(0)]=i,i}getNextNode(e,n,l,r){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&&l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)l.push({paramsCount:r,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 l=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i+${n})===${l}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},s7=class extends r7{constructor(e,n,l){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=u7.PARAMETRIC,this.nodePaths=new Set([l])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},a7=class extends l7{constructor(){super(),this.kind=u7.WILDCARD}getNextNode(){return null}};kU.exports={StaticNode:i7,ParametricNode:s7,WildcardNode:a7,NODE_TYPES:u7}});var LU=k(($ke,PU)=>{"use strict";var Ode=require("assert");function x5(){if(!(this instanceof x5))return new x5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}x5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,l,r]=t.split(".");return n=Number(n)||0,l=Number(l)||0,r=Number(r)||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),l>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=l,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),r>=(this.store[`${n}.${l}`]||0)&&(this.maxPatches[`${n}.${l}`]=r,this.store[`${n}.${l}.x`]=e),this.store[`${n}.${l}.${r}`]=e,this};x5.prototype.get=function(t){return this.store[t]};PU.exports={name:"version",mustMatchWhenDerived:!0,storage:x5,validate(t){Ode(typeof t=="string","Version should be a string")}}});var jU=k((Bke,FU)=>{"use strict";var Nde=require("assert");function Cde(){let t={},e=[];return{get:n=>{let l=t[n];if(l)return l;for(let r of e)if(r.host.test(n))return r.value},set:(n,l)=>{n instanceof RegExp?e.push({host:n,value:l}):t[n]=l}}}FU.exports={name:"host",mustMatchWhenDerived:!1,storage:Cde,validate(t){Nde(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var MU=k((Hke,UU)=>{"use strict";var Ide=LU(),Rde=jU(),s_=require("assert"),a_=class{constructor(e){if(this.strategies={version:Ide,host:Rde},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(s_(typeof e.name=="string"&&e.name!=="","strategy.name is required."),s_(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};UU.exports=a_});var BU=k((Vke,$U)=>{"use strict";var kde=["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"];$U.exports=kde});var qU=k((qke,VU)=>{"use strict";function HU(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 Dde(t,e){let n=!1,l=!1,r="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let u=t.charCodeAt(s+1),o=t.charCodeAt(s+2);HU(u,o)===null?n=!0:(l=!0,u===50&&o===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){r=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:r,shouldDecodeParam:l}}function Pde(t){let e=t.indexOf("%");if(e===-1)return t;let n="",l=e;for(let r=e;r<t.length;r++)if(t.charCodeAt(r)===37){let i=t.charCodeAt(r+1),s=t.charCodeAt(r+2),a=HU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}VU.exports={safeDecodeURI:Dde,safeDecodeURIComponent:Pde}});var d_=k((zke,YU)=>{"use strict";var $l=require("assert"),Lde=pU(),o7=bU(),c_=s0(),{prettyPrintTree:Fde}=CU(),{StaticNode:zU,NODE_TYPES:u_}=DU(),jde=MU(),U0=BU(),o_=t7(),{safeDecodeURI:Ude,safeDecodeURIComponent:GU}=qU(),JU=/^https?:\/\/.*?\//,Vu=/(\/:[^/()]*?)\?(\/?)/;if(!o7(JU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!o7(Vu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function bl(t){if(!(this instanceof bl))return new bl(t);t=t||{},this._opts=t,t.defaultRoute?($l(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?($l(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?($l(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Mde,t.querystringParser?($l(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Lde.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 jde(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}bl.prototype.on=function(e,n,l,r,i){typeof l=="function"&&(r!==void 0&&(i=r),r=l,l={}),$l(typeof n=="string","Path should be a string"),$l(n.length>0,"The path could not be empty"),$l(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),$l(typeof r=="function","Handler should be a function");let s=n.match(Vu);if(s){$l(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let o=n.replace(Vu,"$1$2"),c=n.replace(Vu,"$2");this.on(e,o,l,r,i),this.on(e,c,l,r,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=p_(n)),this.ignoreTrailingSlash&&(n=f_(n));let u=Array.isArray(e)?e:[e];for(let o of u)$l(typeof o=="string","Method should be a string"),$l(U0.includes(o),`Method'${o}'isnotanhttpmethod.`),this._on(o,n,l,r,i,a)};bl.prototype._on=function(e,n,l,r,i){let s={};l.constraints!==void 0&&($l(typeof l.constraints=="object"&&l.constraints!==null,"Constraints should be an object"),Object.keys(l.constraints).length!==0&&(s=l.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new zU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new zU(""),this.trees[e].staticChildren["/"]=m}let u=this.trees[e],o=u.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==o){let _=a.slice(o,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),u=u.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=WU(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||$l(o7(new RegExp(te)),`Theregex'${te}'isnotsafe!`),S.push(XU(te)),E=F+1}else S.push("(.*?)");let I=E;for(;E<a.length;E++){let F=a.charCodeAt(E);if(F===47)break;if(F===58)if(a.charCodeAt(E+1)===58)E++;else break}let U=a.slice(I,E);if(U&
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])"},eH={};function tH(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 _E(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 W_=(t,e,n,l,r)=>{let i=r(e,_E(n),l);return i===Pt.trueFunc?t:i===Pt.falseFunc?Pt.falseFunc:s=>i(s)&&t(s)},Y_={is:W_,matches:W_,where:W_,not(t,e,n,l,r){let i=r(e,_E(n),l);return i===Pt.falseFunc?t:i===Pt.trueFunc?Pt.falseFunc:s=>!i(s)&&t(s)},has(t,e,n,l,r){let i=n.adapter,s=_E(n),a=(s.relativeSelector=!0,e.some(c=>c.some(gE))?[eH]:void 0),u=r(e,s,a);if(u===Pt.falseFunc)return Pt.falseFunc;let o=function(c,f){return c===Pt.falseFunc?Pt.falseFunc:m=>f.isTag(m)&&c(m)}(u,i);if(a&&u!==Pt.trueFunc){let{shouldTestNextSiblings:c=!1}=u;return d=>{if(!t(d))return!1;a[0]=d;var m=i.getChildren(d),d=c?[...m,...tH(d,i)]:m;return i.existsOne(o,d)}}return c=>t(c)&&i.existsOne(o,i.getChildren(c))}};function Q_(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function age(t,e,n,l,r){let{adapter:i,equals:s}=n;switch(e.type){case at.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case at.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case at.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()),lge[e.action](t,e,n);case at.Pseudo:return function(a,u,o,c,f){let{name:m,data:d}=u;if(Array.isArray(d)){if(m in Y_)return Y_[m](a,d,o,c,f);throw new Error(`Unknownpseudo-class:${m}(${d})`)}let y=(u=o.pseudos)==null?void 0:u[m],_=typeof y=="string"?y:sge[m];if(typeof _=="string"){if(d!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=ip(_);return Y_.is(a,S,o,c,f)}if(typeof y=="function")return $$(y,m,d,1),S=>y(S,d)&&a(S);if(m in vE)return vE[m](a,d,o,c);if(m in M$){let S=M$[m];return $$(S,m,d,2),w=>S(w,o,d)&&a(w)}throw new Error("Unknown pseudo-class :"+m)}(t,e,n,l,r);case at.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(u){return i.getName(u)===a&&t(u)}}case at.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(u){let o=u;for(;o=Q_(o,i);)if(t(o))return!0;return!1};let a=new WeakSet;return function(u){let o=u;for(;o=Q_(o,i);)if(!a.has(o)){if(i.isTag(o)&&t(o))return!0;a.add(o)}return!1}}case"_flexibleDescendant":return function(a){let u=a;do if(t(u))return!0;while(u=Q_(u,i));return!1};case at.Parent:return function(a){return i.getChildren(a).some(u=>i.isTag(u)&&t(u))};case at.Child:return function(a){return(a=i.getParent(a))!=null&&i.isTag(a)&&t(a)};case at.Sibling:return function(a){var u=i.getSiblings(a);for(let c=0;c<u.length;c++){var o=u[c];if(s(a,o))break;if(i.isTag(o)&&t(o))return!0}return!1};case at.Adjacent:return i.prevElementSibling?function(a){return(a=i.prevElementSibling(a))!=null&&t(a)}:function(a){var u=i.getSiblings(a);let o;for(let f=0;f<u.length;f++){var c=u[f];if(s(a,c))break;i.isTag(c)&&(o=c)}return!!o&&t(o)};case at.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function nH(t){return t.type===at.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(nH)))}var uge={type:at.Descendant},oge={type:"_flexibleDescendant"},cge={type:at.Pseudo,name:"scope",data:null};function lH(t,e,n){t.forEach(ege),n=(s=e.context)!=null?s:n;let l=Array.isArray(n),r=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:u},o){var c=!(o==null||!o.every(f=>{var m=u.isTag(f)&&u.getParent(f);return f===eH||m&&u.isTag(m)}));for(let f of a){if(!(0<f.length&&gE(f[0])&&f[0].type!==at.Descendant)){if(!c||f.some(nH))continue;f.unshift(uge)}f.unshift(cge)}})(t,e,r);else if(t.some(a=>0<a.length&&gE(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[u,o]=a;u.type===at.Pseudo&&u.name==="scope"&&(l&&o.type===at.D
Line truncated
`)}}):{name:l,value:r.replace(H$,`\r
`)}}).toArray()}}),X5=function(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(var l=0;l<t.length;l++)this[l]=t[l];this.length=t.length}},YE=(X5.prototype.cheerio="[cheerio object]",X5.prototype.splice=Array.prototype.splice,X5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(X5.prototype,Jye,Nge,Pge,Lge,jge),function(t,e){return(YE=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,l){n.__proto__=l}:function(n,l){for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(n[r]=l[r])}))(t,e)}),Uge=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}YE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},W5=function(){return(W5=Object.assign||function(t){for(var e,n=1,l=arguments.length;n<l;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Mge=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]),gl="\uFFFD",V$=(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"}(D=D||{}),"--"),q$="[CDATA[",z$="doctype",q0="script",$ge="public",Bge="system";function yH(t){return 55296<=t&&t<=57343}function gH(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function vH(t){return 64976<=t&&t<=65007||Mge.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&&(U+=" "),this.message=U+(this.message||""),this.firstUpdate=!1,this},v}function o(w){return n.toString.call(w)==="[object Function]"}function c(w){return n.toString.call(w)==="[object Array]"}function f(w){return n.toString.call(w)==="[object String]"}function m(w){return n.toString.call(w)==="[object Object]"}function d(w){var E=function(g){return g?typeof g=="string"?g.split("."):[g]:[]}(w);return function(g){for(var v=g,x=0;x<E.length;x++){var O=E[x];if(!s(v,O))return;v=v[O]}return v}}function y(w){return Array.prototype.slice.call(w)}function _(w,E,g){return Array.prototype.indexOf.call(w||[],E,g)}function S(w){var E,g=[];for(E in w)s(w,E)&&g.push(E);return g}i.hasOwnProp=s,i._prettifyError=function(w,E,g){return(g=g.Update?g:new i.TemplateError(g)).Update(w),E||(w=g,(g=new Error(w.message)).name=w.name),g},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),i.TemplateError=u,i.escape=function(w){return w.replace(r,a)},i.isFunction=o,i.isArray=c,i.isString=f,i.isObject=m,i.getAttrGetter=d,i.groupBy=function(w,E,g){for(var v={},x=o(E)?E:d(E),O=0;O<w.length;O++){var N=w[O],R=x(N,O);if(R===void 0&&g===!0)throw new TypeError('groupby: attribute "'+E+'" resolved to undefined');(v[R]||(v[R]=[])).push(N)}return v},i.toArray=y,i.without=function(w){var E=[];if(w)for(var g=w.length,v=y(arguments).slice(1),x=-1;++x<g;)_(v,w[x])===-1&&E.push(w[x]);return E},i.repeat=function(w,E){for(var g="",v=0;v<E;v++)g+=w;return g},i.each=function(w,E,g){if(w!=null){if(e.forEach&&w.forEach===e.forEach)w.forEach(E,g);else if(w.length===+w.length)for(var v=0,x=w.length;v<x;v++)E.call(g,w[v],v,w)}},i.map=function(w,E){var g=[];if(w!=null){if(e.map&&w.map===e.map)return w.map(E);for(var v=0;v<w.length;v++)g[g.length]=E(w[v],v);w.length===+w.length&&(g.length=w.length)}return g},i.asyncIter=function(w,E,g){var v=-1;(function x(){++v<w.length?E(w[v],v,x,g):g()})()},i.asyncFor=function(w,E,g){var v=S(w||{}),x=v.length,O=-1;(function N(){var R=v[++O];O<x?E(R,w[R],O,x,N):g()})()},i.indexOf=_,i.keys=S,i._entries=function(w){return S(w).map(function(E){return[E,w[E]]})},i._values=function(w){return S(w).map(function(E){return w[E]})},i._assign=i.extend=function(w,E){return w=w||{},S(E).forEach(function(g){w[g]=E[g]}),w},i.inOperator=function(w,E){if(c(E)||f(E))return E.indexOf(w)!==-1;if(m(E))return w in E;throw new Error('Cannot use "in" operator to search for "'+w+'" in unexpected types.')}});function VH(){throw new Error("setTimeout has not been defined")}function qH(){throw new Error("clearTimeout has not been defined")}var zs=VH,Gs=qH;function zH(t){if(zs===setTimeout)return setTimeout(t,0);if((zs===VH||!zs)&&setTimeout)return(zs=setTimeout)(t,0);try{return zs(t,0)}catch{try{return zs.call(null,t,0)}catch{return zs.call(this,t,0)}}}typeof ns.setTimeout=="function"&&(zs=setTimeout),typeof ns.clearTimeout=="function"&&(Gs=clearTimeout);var eo,rs=[],s4=!1,M7=-1;function Uve(){s4&&eo&&(s4=!1,eo.length?rs=eo.concat(rs):M7=-1,rs.length)&&GH()}function GH(){if(!s4){var t=zH(Uve);s4=!0;for(var e=rs.length;e;){for(eo=rs,rs=[];++M7<e;)eo&&eo[M7].run();M7=-1,e=rs.length}eo=null,s4=!1,function(n){if(Gs===clearTimeout)return clearTimeout(n);if((Gs===qH||!Gs)&&clearTimeout)return(Gs=clearTimeout)(n);try{Gs(n)}catch{try{return Gs.call(null,n)}catch{return Gs.call(this,n)}}}(t)}}function JH(t,e){this.fun=t,this.array=e}function so(){}JH.prototype.run=function(){this.fun.apply(null,this.array)};var Mve=so,$ve=so,Bve=so,Hve=so,Vve=so,qve=so,zve=so,W0=ns.performance||{},Gve=W0.now||W0.mozNow||W0.msNow||W0.oNow||W0.webkitNow||function(){return new Date().getTime()},Jve=new Date,Qs={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];rs.push(new JH(t,e)),rs.length!==1||s4||zH(GH)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Mve,addListener:$ve,once:Bve,off:Hve,removeListener:Vve,removeAllListeners:qve,emit:zve,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*Gve.call(W0),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-Jve)/1e3}};function Js(){}function el(){el.init.call(this)}function KH(t){return t._maxListeners===void 0?el.defaultMaxListeners:t._maxListeners}function bB(t,e,n,l){var r,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(r=t._events)?(r.newListener&&(t.emit("newListener",e,n.listener||n),r=t._events),i=r[e]):(r=t._events=new Js,t._eventsCount=0),i?(typeof i=="function"?i=r[e]=l?[n,i]:[i,n]:l?i.unshift(n):i.push(n),!i.warned&&(l=KH(t))&&0<l&&i.length>l&&(i.warned=!0,(l=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])"},WB={};function YB(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 gE(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 K_=(t,e,n,l,r)=>{let i=r(e,gE(n),l);return i===Pt.trueFunc?t:i===Pt.falseFunc?Pt.falseFunc:s=>i(s)&&t(s)},X_={is:K_,matches:K_,where:K_,not(t,e,n,l,r){let i=r(e,gE(n),l);return i===Pt.falseFunc?t:i===Pt.trueFunc?Pt.falseFunc:s=>!i(s)&&t(s)},has(t,e,n,l,r){let i=n.adapter,s=gE(n),a=(s.relativeSelector=!0,e.some(c=>c.some(mE))?[WB]:void 0),u=r(e,s,a);if(u===Pt.falseFunc)return Pt.falseFunc;let o=function(c,f){return c===Pt.falseFunc?Pt.falseFunc:m=>f.isTag(m)&&c(m)}(u,i);if(a&&u!==Pt.trueFunc){let{shouldTestNextSiblings:c=!1}=u;return d=>{if(!t(d))return!1;a[0]=d;var m=i.getChildren(d),d=c?[...m,...YB(d,i)]:m;return i.existsOne(o,d)}}return c=>t(c)&&i.existsOne(o,i.getChildren(c))}};function W_(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function Wye(t,e,n,l,r){let{adapter:i,equals:s}=n;switch(e.type){case at.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case at.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case at.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()),Gye[e.action](t,e,n);case at.Pseudo:return function(a,u,o,c,f){let{name:m,data:d}=u;if(Array.isArray(d)){if(m in X_)return X_[m](a,d,o,c,f);throw new Error(`Unknownpseudo-class:${m}(${d})`)}let y=(u=o.pseudos)==null?void 0:u[m],_=typeof y=="string"?y:Xye[m];if(typeof _=="string"){if(d!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=lp(_);return X_.is(a,S,o,c,f)}if(typeof y=="function")return F$(y,m,d,1),S=>y(S,d)&&a(S);if(m in yE)return yE[m](a,d,o,c);if(m in L$){let S=L$[m];return F$(S,m,d,2),w=>S(w,o,d)&&a(w)}throw new Error("Unknown pseudo-class :"+m)}(t,e,n,l,r);case at.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(u){return i.getName(u)===a&&t(u)}}case at.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(u){let o=u;for(;o=W_(o,i);)if(t(o))return!0;return!1};let a=new WeakSet;return function(u){let o=u;for(;o=W_(o,i);)if(!a.has(o)){if(i.isTag(o)&&t(o))return!0;a.add(o)}return!1}}case"_flexibleDescendant":return function(a){let u=a;do if(t(u))return!0;while(u=W_(u,i));return!1};case at.Parent:return function(a){return i.getChildren(a).some(u=>i.isTag(u)&&t(u))};case at.Child:return function(a){return(a=i.getParent(a))!=null&&i.isTag(a)&&t(a)};case at.Sibling:return function(a){var u=i.getSiblings(a);for(let c=0;c<u.length;c++){var o=u[c];if(s(a,o))break;if(i.isTag(o)&&t(o))return!0}return!1};case at.Adjacent:return i.prevElementSibling?function(a){return(a=i.prevElementSibling(a))!=null&&t(a)}:function(a){var u=i.getSiblings(a);let o;for(let f=0;f<u.length;f++){var c=u[f];if(s(a,c))break;i.isTag(c)&&(o=c)}return!!o&&t(o)};case at.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function QB(t){return t.type===at.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(QB)))}var Yye={type:at.Descendant},Qye={type:"_flexibleDescendant"},Zye={type:at.Pseudo,name:"scope",data:null};function ZB(t,e,n){t.forEach(Vye),n=(s=e.context)!=null?s:n;let l=Array.isArray(n),r=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:u},o){var c=!(o==null||!o.every(f=>{var m=u.isTag(f)&&u.getParent(f);return f===WB||m&&u.isTag(m)}));for(let f of a){if(!(0<f.length&&mE(f[0])&&f[0].type!==at.Descendant)){if(!c||f.some(QB))continue;f.unshift(Yye)}f.unshift(Zye)}})(t,e,r);else if(t.some(a=>0<a.length&&mE(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[u,o]=a;u.type===at.Pseudo&&u.name==="scope"&&(l&&o.type===at.D
Line truncated
`)}}):{name:l,value:r.replace(U$,`\r
`)}}).toArray()}}),J5=function(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(var l=0;l<t.length;l++)this[l]=t[l];this.length=t.length}},XE=(J5.prototype.cheerio="[cheerio object]",J5.prototype.splice=Array.prototype.splice,J5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(J5.prototype,Fye,gge,Sge,Tge,Age),function(t,e){return(XE=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,l){n.__proto__=l}:function(n,l){for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(n[r]=l[r])}))(t,e)}),Oge=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}XE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},K5=function(){return(K5=Object.assign||function(t){for(var e,n=1,l=arguments.length;n<l;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Nge=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]),yl="\uFFFD",M$=(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"}(D=D||{}),"--"),$$="[CDATA[",B$="doctype",H0="script",Cge="public",Ige="system";function fH(t){return 55296<=t&&t<=57343}function dH(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function hH(t){return 64976<=t&&t<=65007||Nge.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&&(U+=" "),this.message=U+(this.message||""),this.firstUpdate=!1,this},v}function o(w){return n.toString.call(w)==="[object Function]"}function c(w){return n.toString.call(w)==="[object Array]"}function f(w){return n.toString.call(w)==="[object String]"}function m(w){return n.toString.call(w)==="[object Object]"}function d(w){var E=function(g){return g?typeof g=="string"?g.split("."):[g]:[]}(w);return function(g){for(var v=g,x=0;x<E.length;x++){var O=E[x];if(!s(v,O))return;v=v[O]}return v}}function y(w){return Array.prototype.slice.call(w)}function _(w,E,g){return Array.prototype.indexOf.call(w||[],E,g)}function S(w){var E,g=[];for(E in w)s(w,E)&&g.push(E);return g}i.hasOwnProp=s,i._prettifyError=function(w,E,g){return(g=g.Update?g:new i.TemplateError(g)).Update(w),E||(w=g,(g=new Error(w.message)).name=w.name),g},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),i.TemplateError=u,i.escape=function(w){return w.replace(r,a)},i.isFunction=o,i.isArray=c,i.isString=f,i.isObject=m,i.getAttrGetter=d,i.groupBy=function(w,E,g){for(var v={},x=o(E)?E:d(E),O=0;O<w.length;O++){var N=w[O],I=x(N,O);if(I===void 0&&g===!0)throw new TypeError('groupby: attribute "'+E+'" resolved to undefined');(v[I]||(v[I]=[])).push(N)}return v},i.toArray=y,i.without=function(w){var E=[];if(w)for(var g=w.length,v=y(arguments).slice(1),x=-1;++x<g;)_(v,w[x])===-1&&E.push(w[x]);return E},i.repeat=function(w,E){for(var g="",v=0;v<E;v++)g+=w;return g},i.each=function(w,E,g){if(w!=null){if(e.forEach&&w.forEach===e.forEach)w.forEach(E,g);else if(w.length===+w.length)for(var v=0,x=w.length;v<x;v++)E.call(g,w[v],v,w)}},i.map=function(w,E){var g=[];if(w!=null){if(e.map&&w.map===e.map)return w.map(E);for(var v=0;v<w.length;v++)g[g.length]=E(w[v],v);w.length===+w.length&&(g.length=w.length)}return g},i.asyncIter=function(w,E,g){var v=-1;(function x(){++v<w.length?E(w[v],v,x,g):g()})()},i.asyncFor=function(w,E,g){var v=S(w||{}),x=v.length,O=-1;(function N(){var I=v[++O];O<x?E(I,w[I],O,x,N):g()})()},i.indexOf=_,i.keys=S,i._entries=function(w){return S(w).map(function(E){return[E,w[E]]})},i._values=function(w){return S(w).map(function(E){return w[E]})},i._assign=i.extend=function(w,E){return w=w||{},S(E).forEach(function(g){w[g]=E[g]}),w},i.inOperator=function(w,E){if(c(E)||f(E))return E.indexOf(w)!==-1;if(m(E))return w in E;throw new Error('Cannot use "in" operator to search for "'+w+'" in unexpected types.')}});function MH(){throw new Error("setTimeout has not been defined")}function $H(){throw new Error("clearTimeout has not been defined")}var Vs=MH,zs=$H;function BH(t){if(Vs===setTimeout)return setTimeout(t,0);if((Vs===MH||!Vs)&&setTimeout)return(Vs=setTimeout)(t,0);try{return Vs(t,0)}catch{try{return Vs.call(null,t,0)}catch{return Vs.call(this,t,0)}}}typeof ts.setTimeout=="function"&&(Vs=setTimeout),typeof ts.clearTimeout=="function"&&(zs=clearTimeout);var Qu,ls=[],r4=!1,j7=-1;function Ove(){r4&&Qu&&(r4=!1,Qu.length?ls=Qu.concat(ls):j7=-1,ls.length)&&HH()}function HH(){if(!r4){var t=BH(Ove);r4=!0;for(var e=ls.length;e;){for(Qu=ls,ls=[];++j7<e;)Qu&&Qu[j7].run();j7=-1,e=ls.length}Qu=null,r4=!1,function(n){if(zs===clearTimeout)return clearTimeout(n);if((zs===$H||!zs)&&clearTimeout)return(zs=clearTimeout)(n);try{zs(n)}catch{try{return zs.call(null,n)}catch{return zs.call(this,n)}}}(t)}}function VH(t,e){this.fun=t,this.array=e}function ro(){}VH.prototype.run=function(){this.fun.apply(null,this.array)};var Nve=ro,Cve=ro,Ive=ro,Rve=ro,kve=ro,Dve=ro,Pve=ro,K0=ts.performance||{},Lve=K0.now||K0.mozNow||K0.msNow||K0.oNow||K0.webkitNow||function(){return new Date().getTime()},Fve=new Date,Ys={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];ls.push(new VH(t,e)),ls.length!==1||r4||BH(HH)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Nve,addListener:Cve,once:Ive,off:Rve,removeListener:kve,removeAllListeners:Dve,emit:Pve,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*Lve.call(K0),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-Fve)/1e3}};function Gs(){}function Zn(){Zn.init.call(this)}function qH(t){return t._maxListeners===void 0?Zn.defaultMaxListeners:t._maxListeners}function gB(t,e,n,l){var r,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(r=t._events)?(r.newListener&&(t.emit("newListener",e,n.listener||n),r=t._events),i=r[e]):(r=t._events=new Gs,t._eventsCount=0),i?(typeof i=="function"?i=r[e]=l?[n,i]:[i,n]:l?i.unshift(n):i.push(n),!i.warned&&(l=qH(t))&&0<l&&i.length>l&&(i.warned=!0,(l=new Error("Possible EventEm
Line truncated
`?this.forward():this.back())),a3(lV,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,a3(iV,d,n,l);if(r==="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 a3(bV,{body:i,flags:a},n,l)}if(OB.indexOf(r)!==-1){this.forward();var u,o=["==","===","!=","!==","<=",">=","//","**"],c=r+this.current();switch(Fe.indexOf(o,c)!==-1&&(this.forward(),Fe.indexOf(o,(r=c)+this.current())!==-1)&&(r=c+this.current(),this.forward()),r){case"(":u=aV;break;case")":u=uV;break;case"[":u=oV;break;case"]":u=cV;break;case"{":u=pV;break;case"}":u=fV;break;case",":u=hV;break;case":":u=mV;break;case"~":u=yV;break;case"|":u=gV;break;default:u=dV}return a3(u,r,n,l)}if((d=this._extractUntil(AB+OB)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),o=this._extract("0123456789"),a3(vV,d+"."+o,n,l)):a3("int",d,n,l);if(d.match(/^(true|false)$/))return a3(_V,d,n,l);if(d==="none"||d==="null")return a3(jE,d,n,l);if(d)return a3(EV,d,n,l);throw new Error("Unexpected value while parsing: "+d)}var f,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(d=(d=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,a3(nV,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,a3(rV,d,n,l);var d="",y=!1;for(this._matches(this.tags.COMMENT_START)&&(y=!0,d=this._extractString(this.tags.COMMENT_START));(f=this._extractUntil(m))!==null;){if(d+=f,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!y){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=d.length){var _=d.slice(-this.colno);if(/^\s+$/.test(_)&&!(d=d.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!y)throw new Error("unexpected end of comment");d+=this._extractString(this.tags.COMMENT_END);break}d+=this.current(),this.forward()}if(f===null&&y)throw new Error("expected end of comment, got end of file");return a3(y?sV:tV,d,n,l)},e._parseString=function(n){this.forward();for(var l="";!this.isFinished()&&this.current()!==n;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":l+=`
`?this.forward():this.back())),s3(ZH,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,s3(tV,d,n,l);if(r==="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 s3(gV,{body:i,flags:a},n,l)}if(SB.indexOf(r)!==-1){this.forward();var u,o=["==","===","!=","!==","<=",">=","//","**"],c=r+this.current();switch(Fe.indexOf(o,c)!==-1&&(this.forward(),Fe.indexOf(o,(r=c)+this.current())!==-1)&&(r=c+this.current(),this.forward()),r){case"(":u=lV;break;case")":u=rV;break;case"[":u=iV;break;case"]":u=sV;break;case"{":u=aV;break;case"}":u=uV;break;case",":u=cV;break;case":":u=pV;break;case"~":u=fV;break;case"|":u=dV;break;default:u=oV}return s3(u,r,n,l)}if((d=this._extractUntil(wB+SB)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),o=this._extract("0123456789"),s3(hV,d+"."+o,n,l)):s3("int",d,n,l);if(d.match(/^(true|false)$/))return s3(mV,d,n,l);if(d==="none"||d==="null")return s3(LE,d,n,l);if(d)return s3(yV,d,n,l);throw new Error("Unexpected value while parsing: "+d)}var f,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(d=(d=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,s3(QH,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,s3(eV,d,n,l);var d="",y=!1;for(this._matches(this.tags.COMMENT_START)&&(y=!0,d=this._extractString(this.tags.COMMENT_START));(f=this._extractUntil(m))!==null;){if(d+=f,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!y){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=d.length){var _=d.slice(-this.colno);if(/^\s+$/.test(_)&&!(d=d.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!y)throw new Error("unexpected end of comment");d+=this._extractString(this.tags.COMMENT_END);break}d+=this.current(),this.forward()}if(f===null&&y)throw new Error("expected end of comment, got end of file");return s3(y?nV:YH,d,n,l)},e._parseString=function(n){this.forward();for(var l="";!this.isFinished()&&this.current()!==n;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":l+=`
`))})},l.compileRoot=function(r,i){var s=this,a=(i&&this.fail("compileRoot: root node can't have frame"),i=new iE,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,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=r.findAll(X.Block)).forEach(function(u,o){var c=u.name.value;if(a.indexOf(c)!==-1)throw new Error('Block "'+c+'" defined more than once.');a.push(c),s._emitFuncBegin(u,"b_"+c),c=new iE,s._emitLine("var frame = frame.push(true);"),s.compile(u.body,c),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(u,o){u="b_"+u.name.value,s._emitLine(u+": "+u+",")}),this._emitLine(`root:root
};`)},l.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},l.getCode=function(){return this.codebuf.join("")},n}(f4.Obj),Z_e={compile:function(s,e,n,l,r){var i=new DB(l,(r=r===void 0?{}:r).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,u){return u(a)},s);return i.compile(K_e.transform(z_e.parse(s,n,r),e,l)),i.getCode()},Compiler:DB},eEe=mt(function(t){function e(d,y){return d==null||d===!1?y:d}function n(d){return d!=d}function l(d){var y=(d=e(d,"")).toLowerCase();return yt.copySafeness(d,y.charAt(0).toUpperCase()+y.slice(1))}function r(d){if(Fe.isString(d))return d.split("");if(Fe.isObject(d))return Fe._entries(d||{}).map(function(y){return{key:y[0],value:y[1]}});if(Fe.isArray(d))return d;throw new Fe.TemplateError("list filter: type not iterable")}function i(d){return function(y,_,S){var w=this,E=w.env.getTest(_=_===void 0?"truthy":_);return Fe.toArray(y).filter(function(g){return E.call(w,g,S)===d})}}function s(d){return yt.copySafeness(d,d.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(d,y,_){for(var S=[],w=[],E=0;E<d.length;E++)E%y==0&&w.length&&(S.push(w),w=[]),w.push(d[E]);if(w.length){if(_)for(E=w.length;E<y;E++)w.push(_);S.push(w)}return S},t.capitalize=l,t.center=function(d,y){var _;return(d=e(d,"")).length>=(y=y||80)?d:(y-=d.length,_=Fe.repeat(" ",y/2-y%2),y=Fe.repeat(" ",y/2),yt.copySafeness(d,_+d+y))},t.default=function(d,y,_){return _?d||y:d!==void 0?d:y},t.dictsort=function(d,y,_){if(!Fe.isObject(d))throw new Fe.TemplateError("dictsort filter: val must be an object");var S,w,E=[];for(w in d)E.push([w,d[w]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new Fe.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return E.sort(function(g,v){return g=g[S],v=v[S],y||(Fe.isString(g)&&(g=g.toUpperCase()),Fe.isString(v)&&(v=v.toUpperCase())),v<g?1:g===v?0:-1}),E},t.dump=function(d,y){return JSON.stringify(d,null,y)},t.escape=function(d){return d instanceof yt.SafeString?d:yt.markSafe(Fe.escape((d=d??"").toString()))},t.safe=function(d){return d instanceof yt.SafeString?d:yt.markSafe((d=d??"").toString())},t.first=function(d){return d[0]},t.forceescape=function(d){return yt.markSafe(Fe.escape((d=d??"").toString()))},t.groupby=function(d,y){return Fe.groupBy(d,y,this.env.opts.throwOnUndefined)},t.indent=function(d,E,_){if((d=e(d,""))==="")return"";E=E||4;var S=d.split(`
`))})},l.compileRoot=function(r,i){var s=this,a=(i&&this.fail("compileRoot: root node can't have frame"),i=new lE,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,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=r.findAll(X.Block)).forEach(function(u,o){var c=u.name.value;if(a.indexOf(c)!==-1)throw new Error('Block "'+c+'" defined more than once.');a.push(c),s._emitFuncBegin(u,"b_"+c),c=new lE,s._emitLine("var frame = frame.push(true);"),s.compile(u.body,c),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(u,o){u="b_"+u.name.value,s._emitLine(u+": "+u+",")}),this._emitLine(`root:root
};`)},l.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},l.getCode=function(){return this.codebuf.join("")},n}(c4.Obj),H_e={compile:function(s,e,n,l,r){var i=new CB(l,(r=r===void 0?{}:r).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,u){return u(a)},s);return i.compile(j_e.transform(P_e.parse(s,n,r),e,l)),i.getCode()},Compiler:CB},V_e=mt(function(t){function e(d,y){return d==null||d===!1?y:d}function n(d){return d!=d}function l(d){var y=(d=e(d,"")).toLowerCase();return yt.copySafeness(d,y.charAt(0).toUpperCase()+y.slice(1))}function r(d){if(Fe.isString(d))return d.split("");if(Fe.isObject(d))return Fe._entries(d||{}).map(function(y){return{key:y[0],value:y[1]}});if(Fe.isArray(d))return d;throw new Fe.TemplateError("list filter: type not iterable")}function i(d){return function(y,_,S){var w=this,E=w.env.getTest(_=_===void 0?"truthy":_);return Fe.toArray(y).filter(function(g){return E.call(w,g,S)===d})}}function s(d){return yt.copySafeness(d,d.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(d,y,_){for(var S=[],w=[],E=0;E<d.length;E++)E%y==0&&w.length&&(S.push(w),w=[]),w.push(d[E]);if(w.length){if(_)for(E=w.length;E<y;E++)w.push(_);S.push(w)}return S},t.capitalize=l,t.center=function(d,y){var _;return(d=e(d,"")).length>=(y=y||80)?d:(y-=d.length,_=Fe.repeat(" ",y/2-y%2),y=Fe.repeat(" ",y/2),yt.copySafeness(d,_+d+y))},t.default=function(d,y,_){return _?d||y:d!==void 0?d:y},t.dictsort=function(d,y,_){if(!Fe.isObject(d))throw new Fe.TemplateError("dictsort filter: val must be an object");var S,w,E=[];for(w in d)E.push([w,d[w]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new Fe.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return E.sort(function(g,v){return g=g[S],v=v[S],y||(Fe.isString(g)&&(g=g.toUpperCase()),Fe.isString(v)&&(v=v.toUpperCase())),v<g?1:g===v?0:-1}),E},t.dump=function(d,y){return JSON.stringify(d,null,y)},t.escape=function(d){return d instanceof yt.SafeString?d:yt.markSafe(Fe.escape((d=d??"").toString()))},t.safe=function(d){return d instanceof yt.SafeString?d:yt.markSafe((d=d??"").toString())},t.first=function(d){return d[0]},t.forceescape=function(d){return yt.markSafe(Fe.escape((d=d??"").toString()))},t.groupby=function(d,y){return Fe.groupBy(d,y,this.env.opts.throwOnUndefined)},t.indent=function(d,E,_){if((d=e(d,""))==="")return"";E=E||4;var S=d.split(`
`):_.replace(/\s+/gi," ");return yt.copySafeness(d,S)},t.title=function(d){var y=(d=e(d,"")).split(" ").map(l);return yt.copySafeness(d,y.join(" "))},t.trim=s,t.truncate=function(d,y,_,S){var w=d;return(d=e(d,"")).length<=(y=y||255)?d:(d=_?d.substring(0,y):((_=d.lastIndexOf(" ",y))===-1&&(_=y),d.substring(0,_)),yt.copySafeness(w,d+=S??"..."))},t.upper=function(d){return(d=e(d,"")).toUpperCase()},t.urlencode=function(d){var y=encodeURIComponent;return Fe.isString(d)?y(d):(Fe.isArray(d)?d:Fe._entries(d)).map(function(w){var S=w[0],w=w[1];return y(S)+"="+y(w)}).join("&")};var a=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,u=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(d,y,_){n(y)&&(y=1/0);varS=_===!0?' rel="nofollow"':"";returnd.split(/(\s+)/).filter(function(w){returnw&&w.length}).map(function(w){varE=w.match(a),g=(E=E?E[1]:w).substr(0,y);returno.test(E)?'<a href="'+E+'"'+S+">"+g+"</a>":c.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":u.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":w}).join("")},t.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},t.float=function(d,y){returnn(d=parseFloat(d))?y:d},yt.makeMacro(["value","default","base"],[],function(d,y,_){return_===void0&&(_=10),n(d=parseInt(d,_))?y:d}));t.int=m,t.d=t.default,t.e=t.escape}),tp={};functionjV(t,e){for(varn=0,l=t.length-1;0<=l;l--){varr=t[l];r==="."?t.splice(l,1):r===".."?(t.splice(l,1),n++):n&&(t.splice(l,1),n--)}if(e)for(;n--;)t.unshift("..");returnt}vartEe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,sE=function(t){returntEe.exec(t).slice(1)};functionaE(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varl=0<=n?arguments[n]:"/";if(typeofl!="string")thrownewTypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,e=l.charAt(0)==="/")}return(e?"/":"")+jV(ib(t.split("/"),function(r){return!!r}),!e).join("/")||"."}functionPB(t){vare=UV(t),n=nEe(t,-1)==="/";return(t=(t=jV(ib(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionUV(t){returnt.charAt(0)==="/"}vara4={extname:function(t){returnsE(t)[3]},basename:function(t,e){returnt=sE(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=sE(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(o){for(varc=0;c<o.length&&o[c]==="";c++);for(varf=o.length-1;0<=f&&o[f]==="";f--);returnf<c?[]:o.slice(c,f-c+1)}t=aE(t).substr(1),e=aE(e).substr(1);for(varl=n(t.split("/")),r=n(e.split("/")),i=Math.min(l.length,r.length),s=i,a=0;a<i;a++)if(l[a]!==r[a]){s=a;break}for(varu=[],a=s;a<l.length;a++)u.push("..");return(u=u.concat(r.slice(s))).join("/")},join:function(){returnPB(ib(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:UV,normalize:PB,resolve:aE};functionib(t,e){if(t.filter)returnt.filter(e);for(varn=[],l=0;l<t.length;l++)e(t[l],l,t)&&n.push(t[l]);returnn}varnEe="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)};functionMV(t,e){return(MV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varsb=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(l=n).prototype=Object.create(e.prototype),MV(l.prototype.constructor=l,e);varl=n.prototype;returnl.resolve=function(r,i){returna4.resolve(a4.dirname(r),i)},l.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},n}(f4.EmitterObj);function$V(t,e){return($V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varlEe=function(t){vare,n;functionl(r){vari;return(i=t.call(this)||this).precompiled=r||{},i}returnn=t,(e=l).prototype=Object.create(n.prototype),$V(e.prototype.constructor=e,n),l.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},l}(sb);functionBV(t,e){t.prototype=Object.create(e.prototype),HV(t.prototype.constructor=t,e)}functionHV(t,e){return(HV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varrEe=lEe,iEe=function(t){functione(n,l){varr=t.call(this)||this;returntypeofl=="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"),l=l||{},r.pathsToNames={},r.noCache=!!l.noCache,n?(n=Array.isArray(n)?n:[n],r.searchPaths=n.map(a4.normalize)):r.searchPaths=["."],l.watch,r}returnBV(e,t),e.prototype.getSource=function(n){for(varl=null,r=this.searchPaths,i=0;i<r.length;i++){vars=a4.resoLine truncated
`):_.replace(/\s+/gi," ");return yt.copySafeness(d,S)},t.title=function(d){var y=(d=e(d,"")).split(" ").map(l);return yt.copySafeness(d,y.join(" "))},t.trim=s,t.truncate=function(d,y,_,S){var w=d;return(d=e(d,"")).length<=(y=y||255)?d:(d=_?d.substring(0,y):((_=d.lastIndexOf(" ",y))===-1&&(_=y),d.substring(0,_)),yt.copySafeness(w,d+=S??"..."))},t.upper=function(d){return(d=e(d,"")).toUpperCase()},t.urlencode=function(d){var y=encodeURIComponent;return Fe.isString(d)?y(d):(Fe.isArray(d)?d:Fe._entries(d)).map(function(w){var S=w[0],w=w[1];return y(S)+"="+y(w)}).join("&")};var a=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,u=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(d,y,_){n(y)&&(y=1/0);varS=_===!0?' rel="nofollow"':"";returnd.split(/(\s+)/).filter(function(w){returnw&&w.length}).map(function(w){varE=w.match(a),g=(E=E?E[1]:w).substr(0,y);returno.test(E)?'<a href="'+E+'"'+S+">"+g+"</a>":c.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":u.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":w}).join("")},t.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},t.float=function(d,y){returnn(d=parseFloat(d))?y:d},yt.makeMacro(["value","default","base"],[],function(d,y,_){return_===void0&&(_=10),n(d=parseInt(d,_))?y:d}));t.int=m,t.d=t.default,t.e=t.escape}),Z7={};functionDV(t,e){for(varn=0,l=t.length-1;0<=l;l--){varr=t[l];r==="."?t.splice(l,1):r===".."?(t.splice(l,1),n++):n&&(t.splice(l,1),n--)}if(e)for(;n--;)t.unshift("..");returnt}varq_e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,rE=function(t){returnq_e.exec(t).slice(1)};functioniE(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varl=0<=n?arguments[n]:"/";if(typeofl!="string")thrownewTypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,e=l.charAt(0)==="/")}return(e?"/":"")+DV(lb(t.split("/"),function(r){return!!r}),!e).join("/")||"."}functionIB(t){vare=PV(t),n=z_e(t,-1)==="/";return(t=(t=DV(lb(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionPV(t){returnt.charAt(0)==="/"}vari4={extname:function(t){returnrE(t)[3]},basename:function(t,e){returnt=rE(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=rE(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(o){for(varc=0;c<o.length&&o[c]==="";c++);for(varf=o.length-1;0<=f&&o[f]==="";f--);returnf<c?[]:o.slice(c,f-c+1)}t=iE(t).substr(1),e=iE(e).substr(1);for(varl=n(t.split("/")),r=n(e.split("/")),i=Math.min(l.length,r.length),s=i,a=0;a<i;a++)if(l[a]!==r[a]){s=a;break}for(varu=[],a=s;a<l.length;a++)u.push("..");return(u=u.concat(r.slice(s))).join("/")},join:function(){returnIB(lb(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:PV,normalize:IB,resolve:iE};functionlb(t,e){if(t.filter)returnt.filter(e);for(varn=[],l=0;l<t.length;l++)e(t[l],l,t)&&n.push(t[l]);returnn}varz_e="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)};functionLV(t,e){return(LV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varrb=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(l=n).prototype=Object.create(e.prototype),LV(l.prototype.constructor=l,e);varl=n.prototype;returnl.resolve=function(r,i){returni4.resolve(i4.dirname(r),i)},l.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},n}(c4.EmitterObj);functionFV(t,e){return(FV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varG_e=function(t){vare,n;functionl(r){vari;return(i=t.call(this)||this).precompiled=r||{},i}returnn=t,(e=l).prototype=Object.create(n.prototype),FV(e.prototype.constructor=e,n),l.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},l}(rb);functionjV(t,e){t.prototype=Object.create(e.prototype),UV(t.prototype.constructor=t,e)}functionUV(t,e){return(UV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varJ_e=G_e,K_e=function(t){functione(n,l){varr=t.call(this)||this;returntypeofl=="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"),l=l||{},r.pathsToNames={},r.noCache=!!l.noCache,n?(n=Array.isArray(n)?n:[n],r.searchPaths=n.map(i4.normalize)):r.searchPaths=["."],l.watch,r}returnjV(e,t),e.prototype.getSource=function(n){for(varl=null,r=this.searchPaths,i=0;i<r.length;i++){vars=i4.resoLine truncated
`)){let u=a.trim();if(u)if(u.startsWith("#")){if(u.startsWith("#EXT")){let o=PEe(u,i);o&&s.push(o)}}else s.push(u)}return s.length!==0&&s[0].name==="EXTM3U"||Ve("The EXTM3U tag MUST be the first line."),s}(t,e),l=LEe(n,e);return l.source=t,l}var FEe=["#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"],jEe=["#EXT-X-MEDIA"],Sb=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(FEe.some(l=>n.startsWith(l)))super.push(n);else{if(this.includes(n)){if(jEe.some(l=>n.startsWith(l)))continue;Ve(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function Ob(t,e){let n=1e3;e&&(n=Math.pow(10,e));let l=Math.round(t*n)/n;return e?l.toFixed(e):l}function UEe(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 gq(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",l=[`METHOD=${t.method}`];return t.uri&&l.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&Ve("IV must be a 128-bit unsigned integer"),l.push(`IV=${hq(t.iv)}`)),t.format&&l.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&l.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${l.join(",")}`}function MEe(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",l=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&l.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&l.push(`URI="${e.uri}"`),e.codecs&&l.push(`CODECS="${e.codecs}"`),e.resolution&&l.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&l.push(`FRAME-RATE=${Ob(e.frameRate,3)}`),e.hdcpLevel&&l.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){l.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)t.push(Cp(r))}if(e.video.length>0){l.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)t.push(Cp(r))}if(e.subtitles.length>0){l.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)t.push(Cp(r))}if(xEe().allowClosedCaptionsNone&&e.closedCaptions.length===0)l.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){l.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)t.push(Cp(r))}if(e.score&&l.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);l.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&l.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&l.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&l.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${l.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function Cp(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 $Ee(t,e,n,l,r=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let o=gq(e.key);o!==n&&(t.push(o),n=o)}if(e.map){let o=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${_b(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);o!==l&&(t.push(o),l=o)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${vb(e.programDateTime)}`),e.dateRange&&t.push(function(o){let c=[`ID="${o.id}"`];o.start&&c.push(`START-DATE="${vb(o.start)}"`),o.end&&c.push(`END-DATE="${vb(o.end)}"`),o.duration&&c.push(`DURATION=${o.duration}`),o.plannedDuration&&c.push(`PLANNED-DURATION=${o.plannedDuration}`),o.classId&&c.push(`CLASS="${o.classId}"`),o.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(o.attributes))f.startsWith("X-")?typeof o.attributes[f]=="number"?c.push(`${f}=${o.attributes[f]}`):c.push(`${f}="${o.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${hq(o.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(o,c){let f="";for(let m of c)if(m.type==="OUT")f="OUT",o.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")f="IN",o.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let d=m.value?`:${m.value}`:"";o.push(`#${m.tagName}${d}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(o,c){let f=!1;for(let m of c)if(m.hint){let d=[];if(d.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:y,length:_}=m.byterange;d.push(`BYTERANGE-START=${y}`),_&&d.push(`BYTERANGE-LENGTH=${_}`)}o.push(`#EXT-X-PRELOAD-HINT:${d.join(",")}`),f=!0}else{let d=[];d.push(
Line truncated
`)}var _q="hls_cache",Vp=[],co={},A6={},oo={},Hp="";function BEe(t,e){if(Vp.push(t),co[t]=e,Vp.length>5){let n=Vp.shift();HEe(n)}}function HEe(t){delete co[t],delete Vp[t],new JSFile(_q+"/"+t).delete()}function VEe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Nb(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Nb(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Nb(t,n.key.uri));return e}async function Eq(t,e){let n=md5X(t);if(co[n])return co[n];let l={},r=t;for(;l=await req(r,{headers:e,redirect:0}),l.headers.location;)r=l.headers.location;if(l.code==200){var i=l.content;let s=VEe(r,yq(i));return BEe(n,{code:l.code,plist:s,key:n,headers:l.headers}),co[n]}return{}}async function bq(t,e,n){if(!co[t])return{};let r=co[t].plist.segments,i=!oo[t];if(i){oo[t]={};for(let c of r){let f=md5X(c.uri+c.mediaSequenceNumber.toString());oo[t][f]={file:_q+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in oo[t]){let f=oo[t][c];f.index>=e?f.order=f.index-e:f.order=r.length-e+f.index}i&&qEe(t,5,n);let s=r[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),u=oo[t][a];if(u.state==1||u.state==-1){let c=new JSFile(u.file);if(await c.exist())return u.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};u.state=-1}if(u.state==-1&&wq(t,u,n),u.state==0){var o=new JSProxyStream;o.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return u.read=!0,new Promise(async function(f,m){let d=new JSFile(u.file+".dl");await d.open("r"),async function y(){let _=await d.size();if(_>c){var S=await d.read(_-c,c);await o.write(S),c=_}if(u.state==1||u.state<0){o.done(),await d.close(),await d.delete(),u.read=!1,f();return}setTimeout(y,5)}()}),{buffer:3,content:o}}}async function wq(t,e,n){if(e.state>=0||!A6[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let l=new JSFile(e.file+".dl");await l.open("w");let r=await req(e.uri,{buffer:3,headers:n,stream:l,timeout:[5e3,1e4]});if(r.error||r.code>=300){await l.close(),e.read||await l.delete(),e.state=-1;return}await l.close(),e.read?await l.copy(e.file):await l.move(e.file),e.state=1}async function qEe(t,e,n){Hp&&Hp!=t&&delete A6[Hp],Hp=t,A6[t]=!0;for(let l=0;l<e&&A6[t];l++)new Promise(function(r,i){(async function s(){if(!A6[t]){r();return}let a=B.pickBy(oo[t],function(o){return o.state==-1}),u=B.minBy(Object.values(a),function(o){return o.order});if(!u){r();return}await wq(t,u,n),setTimeout(s,5)})()})}function Nb(t,e){var n=t.split("/"),l=e.split("/");n.pop();for(var r=0;r<l.length;r++)l[r]!="."&&(l[r]==".."?n.pop():n.push(l[r]));return n.join("/")}function Sq(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let l=Number(n[0]),r=n[4];e.push(`<dp="${l},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></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>"}varqp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newai(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Kl,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,l,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),na(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,l,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,l,r,i,s,a){returna.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,l,r,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,l,r,i,s))}asyncfetch(e,n,l,r=!1,i=!1,s=0){leta=Np(n),u=e;B.isEmpty(a)||(u=e+"?"+a);leto=newg6(u),c;returnc=awaitreq(o.toString(),{method:"get",headers:l,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?awaitthis.getResponse(e,n,l,r,i,s,c):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${o},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),awaitthis.reconnnect(e,n,l,r,i,s))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letl=awaitthis.fetch(e,null,n);if(B.isEmpty(l))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnje(l)}asyncpaLine truncated
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),l=s.substring(r+1).trim(),!(!n||e[n]&&FTe[n])&&(n==="set-cookie"?e[n]?e[n].push(l):e[n]=[l]:e[n]=e[n]?e[n]+", "+l:l)}),e};var DJ=Symbol("internals");function $6(t){return t&&String(t).trim().toLowerCase()}function _f(t){return t===!1||t==null?t:Z.isArray(t)?t.map(_f):String(t)}function jTe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,l;for(;l=n.exec(t);)e[l[1]]=l[2];return e}var UTe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionxw(t,e,n,l,r){if(Z.isFunction(l))returnl.call(this,e,n);if(r&&(e=n),!!Z.isString(e)){if(Z.isString(l))returne.indexOf(l)!==-1;if(Z.isRegExp(l))returnl.test(e)}}functionMTe(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}function$Te(t,e){letn=Z.toCamelCase(" "+e);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+n,{value:function(r,i,s){returnthis[l].call(this,e,r,i,s)},configurable:!0})})}varU4=class{constructor(e){e&&this.set(e)}set(e,n,l){letr=this;functioni(a,u,o){letc=$6(u);if(!c)thrownewError("header name must be a non-empty string");letf=Z.findKey(r,c);(!f||r[f]===void0||o===!0||o===void0&&r[f]!==!1)&&(r[f||u]=_f(a))}lets=(a,u)=>Z.forEach(a,(o,c)=>i(o,c,u));returnZ.isPlainObject(e)||einstanceofthis.constructor?s(e,n):Z.isString(e)&&(e=e.trim())&&!UTe(e)?s(kJ(e),n):e!=null&&i(n,e,l),this}get(e,n){if(e=$6(e),e){letl=Z.findKey(this,e);if(l){letr=this[l];if(!n)returnr;if(n===!0)returnjTe(r);if(Z.isFunction(n))returnn.call(this,r,l);if(Z.isRegExp(n))returnn.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=$6(e),e){letl=Z.findKey(this,e);return!!(l&&this[l]!==void0&&(!n||xw(this,this[l],l,n)))}return!1}delete(e,n){letl=this,r=!1;functioni(s){if(s=$6(s),s){leta=Z.findKey(l,s);a&&(!n||xw(l,l[a],a,n))&&(deletel[a],r=!0)}}returnZ.isArray(e)?e.forEach(i):i(e),r}clear(e){letn=Object.keys(this),l=n.length,r=!1;for(;l--;){leti=n[l];(!e||xw(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letn=this,l={};returnZ.forEach(this,(r,i)=>{lets=Z.findKey(l,i);if(s){n[s]=_f(r),deleten[i];return}leta=e?MTe(i):String(i).trim();a!==i&&deleten[i],n[a]=_f(r),l[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnZ.forEach(this,(l,r)=>{l!=null&&l!==!1&&(n[r]=e&&Z.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,uxe=X6.encode(oa),oxe=2,Vw=class{constructor(e,n){let{escapeName:l}=this.constructor,r=Z.isString(n),i=`Content-Disposition:form-data;name="${l(e)}"${!r&&n.name?`; filename="${l(n.name)}"`:""}${oa}`;r?n=X6.encode(String(n).replace(/\r?\n|\r\n?/g,oa)):i+=`Content-Type:${n.type||"application/octet-stream"}${oa}`,this.headers=X6.encode(i+oa),this.contentLength=r?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+oxe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;Z.isTypedArray(e)?yield e:yield*wf(e),yield uxe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},cxe=(t,e,n)=>{let{tag:l="form-data-boundary",size:r=25,boundary:i=l+"-"+Z.generateString(r,axe)}=n||{};if(!Z.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=X6.encode("--"+i+oa),a=X6.encode("--"+i+"--"+oa+oa),u=a.byteLength,o=Array.from(t.entries()).map(([f,m])=>{let d=new Vw(f,m);return u+=d.size,d});u+=s.byteLength*o.length,u=Z.toFiniteNumber(u);let c={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(u)&&(c["Content-Length"]=u),e&&e(c),KJ.Readable.from(async function*(){for(let f of o)yield s,yield*f.encode();yield a}())},XJ=cxe;var WJ=e2(require("stream"),1),qw=class extends WJ.default.Transform{__transform(e,n,l){this.push(e),l()}_transform(e,n,l){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,n)}this.__transform(e,n,l)}},YJ=qw;var pxe=(t,e)=>Z.isAsyncFn(t)?function(...n){let l=n.pop();t.apply(this,n).then(r=>{try{e?l(null,...e(r)):l(null,r)}catch(i){l(i)}},l)}:t,QJ=pxe;var ZJ={flush:ss.default.constants.Z_SYNC_FLUSH,finishFlush:ss.default.constants.Z_SYNC_FLUSH},fxe={flush:ss.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:ss.default.constants.BROTLI_OPERATION_FLUSH},eK=Z.isFunction(ss.default.createBrotliDecompress),{http:dxe,https:hxe}=aK.default,mxe=/https:?/,tK=a2.protocols.map(t=>t+":");function yxe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function oK(t,e,n){let l=e;if(!l&&l!==!1){let r=(0,lK.getProxyForUrl)(n);r&&(l=new URL(r))}if(l){if(l.username&&(l.auth=(l.username||"")+":"+(l.password||"")),l.auth){(l.auth.username||l.auth.password)&&(l.auth=(l.auth.username||"")+":"+(l.auth.password||""));let i=Buffer.from(l.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let r=l.hostname||l.host;t.hostname=r,t.host=r,t.port=l.port,t.path=n,l.protocol&&(t.protocol=l.protocol.includes(":")?l.protocol:`${l.protocol}:`)}t.beforeRedirects.proxy=function(i){oK(i,e,i.href)}}var gxe=typeof process<"u"&&Z.kindOf(process)==="process",vxe=t=>new Promise((e,n)=>{let l,r,i=(u,o)=>{r||(r=!0,l&&l(u,o))},s=u=>{i(u),e(u)},a=u=>{i(u,!0),n(u)};t(s,a,u=>l=u).catch(a)}),_xe=({address:t,family:e})=>{if(!Z.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},nK=(t,e)=>_xe(Z.isObject(t)?t:{address:t,family:e}),cK=gxe&&function(e){return vxe(async function(l,r,i){let{data:s,lookup:a,family:u}=e,{responseType:o,responseEncoding:c}=e,f=e.method.toUpperCase(),m,d=!1,y;if(a){let ee=QJ(a,me=>Z.isArray(me)?me:[me]);a=(me,P,G)=>{ee(me,P,(V,q,tl)=>{if(V)return G(V);let Tt=Z.isArray(q)?q.map(Qe=>nK(Qe)):[nK(q,tl)];P.all?G(V,Tt):G(V,Tt[0].address,Tt[0].family)})}}let _=new uK.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),_.removeAllListeners()};i((ee,me)=>{m=!0,me&&(d=!0,S())});function w(ee){_.emit("abort",!ee||ee.type?new Pr(null,e,y):ee)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));let E=_o(e.baseURL,e.url),g=new URL(E,"http://localhost"),v=g.protocol||tK[0];if(v==="data:"){let ee;if(f!=="GET")return ua(l,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ee=$w(e.url,o==="blob",{Blob:e.env&&e.env.Blob})}catch(me){throw qe.from(me,qe.ERR_BAD_REQUEST,e)}return o==="text"?(ee=ee.toString(c),(!c||c==="utf8")&&(ee=Z.stripBOM(ee))):o==="stream"&&(ee=wo.default.Readable.from(ee)),ua(l,r,{data:ee,status:200,statusText:"OK",headers:new u2,config:e})}if(tK.indexOf(v)===-1)return r(new qe("Unsupported protocol "+v,qe.ERR_BAD_REQUEST,e));let x=u2.from(e.headers).normalize();x.set("User-Agent","axios/"+bo,!1);let O=e.onDownloadProgress,N=e.onUploadProgress,R=e.maxRate,U,F;if(Z.isSpecCompliantForm(s)){let ee=x.getContentType(/boundary=([-_\w\d]{10,70})/i);s=XJ(s,me=>{x.set(me)},{tag:`axios-${bo}-boundary`,boundary:ee&&ee[1]||void 0})}else if(Z.isFormData(s)&&Z.isFunction(s.getHeaders)){if(x.set(s.getHeaders()),!x.hasContentLength())try{let ee=await sK.default.promisify(s.getLength).call(s);Number.isFini
Line truncated
`+i.map(mK).join(`
`):" "+mK(i[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l},adapters:zw};function Gw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Pr(null,t)}function Tf(t){return Gw(t),t.headers=u2.from(t.headers),t.data=B6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Sf.getAdapter(t.adapter||j4.adapter)(t).then(function(l){return Gw(t),l.data=B6.call(t,t.transformResponse,l),l.headers=u2.from(l.headers),l},function(l){return H6(l)||(Gw(t),l&&l.response&&(l.response.data=B6.call(t,t.transformResponse,l.response),l.response.headers=u2.from(l.response.headers))),Promise.reject(l)})}var yK=t=>t instanceof u2?t.toJSON():t;function as(t,e){e=e||{};let n={};function l(o,c,f){return Z.isPlainObject(o)&&Z.isPlainObject(c)?Z.merge.call({caseless:f},o,c):Z.isPlainObject(c)?Z.merge({},c):Z.isArray(c)?c.slice():c}function r(o,c,f){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o,f)}else return l(o,c,f)}function i(o,c){if(!Z.isUndefined(c))return l(void 0,c)}function s(o,c){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o)}else return l(void 0,c)}function a(o,c,f){if(f in e)return l(o,c);if(f in t)return l(void 0,o)}let u={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:(o,c)=>r(yK(o),yK(c),!0)};return Z.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=u[c]||r,m=f(t[c],e[c],c);Z.isUndefined(m)&&f!==a||(n[c]=m)}),n}var Jw={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Jw[t]=function(l){return typeof l===t||"a"+(e<1?"n ":" ")+t}});var gK={};Jw.transitional=function(e,n,l){function r(i,s){return"[Axios v"+bo+"] Transitional option '"+i+"'"+s+(l?". "+l:"")}return(i,s,a)=>{if(e===!1)throw new qe(r(s," has been removed"+(n?" in "+n:"")),qe.ERR_DEPRECATED);return n&&!gK[s]&&(gK[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function wxe(t,e,n){if(typeof t!="object")throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);let l=Object.keys(t),r=l.length;for(;r-- >0;){let i=l[r],s=e[i];if(s){let a=t[i],u=a===void 0||s(a,i,t);if(u!==!0)throw new qe("option "+i+" must be "+u,qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qe("Unknown option "+i,qe.ERR_BAD_OPTION)}}var xf={assertOptions:wxe,validators:Jw};var ca=xf.validators,$4=class{constructor(e){this.defaults=e,this.interceptors={request:new bw,response:new bw}}async request(e,n){try{return await this._request(e,n)}catch(l){if(l instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";l.stack?i&&!String(l.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(l.stack+=`
`)){let u=a.trim();if(u)if(u.startsWith("#")){if(u.startsWith("#EXT")){let o=wEe(u,i);o&&s.push(o)}}else s.push(u)}return s.length!==0&&s[0].name==="EXTM3U"||Be("The EXTM3U tag MUST be the first line."),s}(t,e),l=SEe(n,e);return l.source=t,l}var TEe=["#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"],xEe=["#EXT-X-MEDIA"],bb=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(TEe.some(l=>n.startsWith(l)))super.push(n);else{if(this.includes(n)){if(xEe.some(l=>n.startsWith(l)))continue;Be(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function xb(t,e){let n=1e3;e&&(n=Math.pow(10,e));let l=Math.round(t*n)/n;return e?l.toFixed(e):l}function AEe(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 dq(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",l=[`METHOD=${t.method}`];return t.uri&&l.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&Be("IV must be a 128-bit unsigned integer"),l.push(`IV=${cq(t.iv)}`)),t.format&&l.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&l.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${l.join(",")}`}function OEe(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",l=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&l.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&l.push(`URI="${e.uri}"`),e.codecs&&l.push(`CODECS="${e.codecs}"`),e.resolution&&l.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&l.push(`FRAME-RATE=${xb(e.frameRate,3)}`),e.hdcpLevel&&l.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){l.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)t.push(Op(r))}if(e.video.length>0){l.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)t.push(Op(r))}if(e.subtitles.length>0){l.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)t.push(Op(r))}if(dEe().allowClosedCaptionsNone&&e.closedCaptions.length===0)l.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){l.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)t.push(Op(r))}if(e.score&&l.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);l.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&l.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&l.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&l.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${l.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function Op(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 NEe(t,e,n,l,r=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let o=dq(e.key);o!==n&&(t.push(o),n=o)}if(e.map){let o=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${gb(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);o!==l&&(t.push(o),l=o)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${yb(e.programDateTime)}`),e.dateRange&&t.push(function(o){let c=[`ID="${o.id}"`];o.start&&c.push(`START-DATE="${yb(o.start)}"`),o.end&&c.push(`END-DATE="${yb(o.end)}"`),o.duration&&c.push(`DURATION=${o.duration}`),o.plannedDuration&&c.push(`PLANNED-DURATION=${o.plannedDuration}`),o.classId&&c.push(`CLASS="${o.classId}"`),o.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(o.attributes))f.startsWith("X-")?typeof o.attributes[f]=="number"?c.push(`${f}=${o.attributes[f]}`):c.push(`${f}="${o.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${cq(o.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(o,c){let f="";for(let m of c)if(m.type==="OUT")f="OUT",o.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")f="IN",o.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let d=m.value?`:${m.value}`:"";o.push(`#${m.tagName}${d}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(o,c){let f=!1;for(let m of c)if(m.hint){let d=[];if(d.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:y,length:_}=m.byterange;d.push(`BYTERANGE-START=${y}`),_&&d.push(`BYTERANGE-LENGTH=${_}`)}o.push(`#EXT-X-PRELOAD-HINT:${d.join(",")}`),f=!0}else{let d=[];d.push(
Line truncated
`)}var mq="hls_cache",Bp=[],uo={},T6={},ao={},$p="";function CEe(t,e){if(Bp.push(t),uo[t]=e,Bp.length>5){let n=Bp.shift();IEe(n)}}function IEe(t){delete uo[t],delete Bp[t],new JSFile(mq+"/"+t).delete()}function REe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Ab(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Ab(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Ab(t,n.key.uri));return e}async function yq(t,e){let n=md5X(t);if(uo[n])return uo[n];let l={},r=t;for(;l=await req(r,{headers:e,redirect:0}),l.headers.location;)r=l.headers.location;if(l.code==200){var i=l.content;let s=REe(r,fq(i));return CEe(n,{code:l.code,plist:s,key:n,headers:l.headers}),uo[n]}return{}}async function gq(t,e,n){if(!uo[t])return{};let r=uo[t].plist.segments,i=!ao[t];if(i){ao[t]={};for(let c of r){let f=md5X(c.uri+c.mediaSequenceNumber.toString());ao[t][f]={file:mq+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in ao[t]){let f=ao[t][c];f.index>=e?f.order=f.index-e:f.order=r.length-e+f.index}i&&kEe(t,5,n);let s=r[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),u=ao[t][a];if(u.state==1||u.state==-1){let c=new JSFile(u.file);if(await c.exist())return u.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};u.state=-1}if(u.state==-1&&vq(t,u,n),u.state==0){var o=new JSProxyStream;o.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return u.read=!0,new Promise(async function(f,m){let d=new JSFile(u.file+".dl");await d.open("r"),async function y(){let _=await d.size();if(_>c){var S=await d.read(_-c,c);await o.write(S),c=_}if(u.state==1||u.state<0){o.done(),await d.close(),await d.delete(),u.read=!1,f();return}setTimeout(y,5)}()}),{buffer:3,content:o}}}async function vq(t,e,n){if(e.state>=0||!T6[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let l=new JSFile(e.file+".dl");await l.open("w");let r=await req(e.uri,{buffer:3,headers:n,stream:l,timeout:[5e3,1e4]});if(r.error||r.code>=300){await l.close(),e.read||await l.delete(),e.state=-1;return}await l.close(),e.read?await l.copy(e.file):await l.move(e.file),e.state=1}async function kEe(t,e,n){$p&&$p!=t&&delete T6[$p],$p=t,T6[t]=!0;for(let l=0;l<e&&T6[t];l++)new Promise(function(r,i){(async function s(){if(!T6[t]){r();return}let a=B.pickBy(ao[t],function(o){return o.state==-1}),u=B.minBy(Object.values(a),function(o){return o.order});if(!u){r();return}await vq(t,u,n),setTimeout(s,5)})()})}function Ab(t,e){var n=t.split("/"),l=e.split("/");n.pop();for(var r=0;r<l.length;r++)l[r]!="."&&(l[r]==".."?n.pop():n.push(l[r]));return n.join("/")}function _q(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let l=Number(n[0]),r=n[4];e.push(`<dp="${l},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></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>"}varHp=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":Jl,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,l,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),ta(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,l,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,l,r,i,s,a){returna.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,l,r,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,l,r,i,s))}asyncfetch(e,n,l,r=!1,i=!1,s=0){leta=Ap(n),u=e;B.isEmpty(a)||(u=e+"?"+a);leto=newm6(u),c;returnc=awaitreq(o.toString(),{method:"get",headers:l,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?awaitthis.getResponse(e,n,l,r,i,s,c):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${o},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),awaitthis.reconnnect(e,n,l,r,i,s))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letl=awaitthis.fetch(e,null,n);if(B.isEmpty(l))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnHe(l)}asyncpaLine truncated
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),l=s.substring(r+1).trim(),!(!n||e[n]&&TTe[n])&&(n==="set-cookie"?e[n]?e[n].push(l):e[n]=[l]:e[n]=e[n]?e[n]+", "+l:l)}),e};var CJ=Symbol("internals");function U6(t){return t&&String(t).trim().toLowerCase()}function gf(t){return t===!1||t==null?t:Z.isArray(t)?t.map(gf):String(t)}function xTe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,l;for(;l=n.exec(t);)e[l[1]]=l[2];return e}var ATe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionSw(t,e,n,l,r){if(Z.isFunction(l))returnl.call(this,e,n);if(r&&(e=n),!!Z.isString(e)){if(Z.isString(l))returne.indexOf(l)!==-1;if(Z.isRegExp(l))returnl.test(e)}}functionOTe(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}functionNTe(t,e){letn=Z.toCamelCase(" "+e);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+n,{value:function(r,i,s){returnthis[l].call(this,e,r,i,s)},configurable:!0})})}varF4=class{constructor(e){e&&this.set(e)}set(e,n,l){letr=this;functioni(a,u,o){letc=U6(u);if(!c)thrownewError("header name must be a non-empty string");letf=Z.findKey(r,c);(!f||r[f]===void0||o===!0||o===void0&&r[f]!==!1)&&(r[f||u]=gf(a))}lets=(a,u)=>Z.forEach(a,(o,c)=>i(o,c,u));returnZ.isPlainObject(e)||einstanceofthis.constructor?s(e,n):Z.isString(e)&&(e=e.trim())&&!ATe(e)?s(NJ(e),n):e!=null&&i(n,e,l),this}get(e,n){if(e=U6(e),e){letl=Z.findKey(this,e);if(l){letr=this[l];if(!n)returnr;if(n===!0)returnxTe(r);if(Z.isFunction(n))returnn.call(this,r,l);if(Z.isRegExp(n))returnn.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=U6(e),e){letl=Z.findKey(this,e);return!!(l&&this[l]!==void0&&(!n||Sw(this,this[l],l,n)))}return!1}delete(e,n){letl=this,r=!1;functioni(s){if(s=U6(s),s){leta=Z.findKey(l,s);a&&(!n||Sw(l,l[a],a,n))&&(deletel[a],r=!0)}}returnZ.isArray(e)?e.forEach(i):i(e),r}clear(e){letn=Object.keys(this),l=n.length,r=!1;for(;l--;){leti=n[l];(!e||Sw(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letn=this,l={};returnZ.forEach(this,(r,i)=>{lets=Z.findKey(l,i);if(s){n[s]=gf(r),deleten[i];return}leta=e?OTe(i):String(i).trim();a!==i&&deleten[i],n[a]=gf(r),l[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnZ.forEach(this,(l,r)=>{l!=null&&l!==!1&&(n[r]=e&&Z.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,WTe=J6.encode(ua),YTe=2,Bw=class{constructor(e,n){let{escapeName:l}=this.constructor,r=Z.isString(n),i=`Content-Disposition:form-data;name="${l(e)}"${!r&&n.name?`; filename="${l(n.name)}"`:""}${ua}`;r?n=J6.encode(String(n).replace(/\r?\n|\r\n?/g,ua)):i+=`Content-Type:${n.type||"application/octet-stream"}${ua}`,this.headers=J6.encode(i+ua),this.contentLength=r?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+YTe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;Z.isTypedArray(e)?yield e:yield*Ef(e),yield WTe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},QTe=(t,e,n)=>{let{tag:l="form-data-boundary",size:r=25,boundary:i=l+"-"+Z.generateString(r,XTe)}=n||{};if(!Z.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=J6.encode("--"+i+ua),a=J6.encode("--"+i+"--"+ua+ua),u=a.byteLength,o=Array.from(t.entries()).map(([f,m])=>{let d=new Bw(f,m);return u+=d.size,d});u+=s.byteLength*o.length,u=Z.toFiniteNumber(u);let c={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(u)&&(c["Content-Length"]=u),e&&e(c),qJ.Readable.from(async function*(){for(let f of o)yield s,yield*f.encode();yield a}())},zJ=QTe;var GJ=Zl(require("stream"),1),Hw=class extends GJ.default.Transform{__transform(e,n,l){this.push(e),l()}_transform(e,n,l){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,n)}this.__transform(e,n,l)}},JJ=Hw;var ZTe=(t,e)=>Z.isAsyncFn(t)?function(...n){let l=n.pop();t.apply(this,n).then(r=>{try{e?l(null,...e(r)):l(null,r)}catch(i){l(i)}},l)}:t,KJ=ZTe;var XJ={flush:is.default.constants.Z_SYNC_FLUSH,finishFlush:is.default.constants.Z_SYNC_FLUSH},exe={flush:is.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:is.default.constants.BROTLI_OPERATION_FLUSH},WJ=Z.isFunction(is.default.createBrotliDecompress),{http:txe,https:nxe}=lK.default,lxe=/https:?/,YJ=s2.protocols.map(t=>t+":");function rxe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function iK(t,e,n){let l=e;if(!l&&l!==!1){let r=(0,ZJ.getProxyForUrl)(n);r&&(l=new URL(r))}if(l){if(l.username&&(l.auth=(l.username||"")+":"+(l.password||"")),l.auth){(l.auth.username||l.auth.password)&&(l.auth=(l.auth.username||"")+":"+(l.auth.password||""));let i=Buffer.from(l.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let r=l.hostname||l.host;t.hostname=r,t.host=r,t.port=l.port,t.path=n,l.protocol&&(t.protocol=l.protocol.includes(":")?l.protocol:`${l.protocol}:`)}t.beforeRedirects.proxy=function(i){iK(i,e,i.href)}}var ixe=typeof process<"u"&&Z.kindOf(process)==="process",sxe=t=>new Promise((e,n)=>{let l,r,i=(u,o)=>{r||(r=!0,l&&l(u,o))},s=u=>{i(u),e(u)},a=u=>{i(u,!0),n(u)};t(s,a,u=>l=u).catch(a)}),axe=({address:t,family:e})=>{if(!Z.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},QJ=(t,e)=>axe(Z.isObject(t)?t:{address:t,family:e}),sK=ixe&&function(e){return sxe(async function(l,r,i){let{data:s,lookup:a,family:u}=e,{responseType:o,responseEncoding:c}=e,f=e.method.toUpperCase(),m,d=!1,y;if(a){let ee=KJ(a,me=>Z.isArray(me)?me:[me]);a=(me,P,G)=>{ee(me,P,(V,q,el)=>{if(V)return G(V);let Tt=Z.isArray(q)?q.map(Qe=>QJ(Qe)):[QJ(q,el)];P.all?G(V,Tt):G(V,Tt[0].address,Tt[0].family)})}}let _=new rK.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),_.removeAllListeners()};i((ee,me)=>{m=!0,me&&(d=!0,S())});function w(ee){_.emit("abort",!ee||ee.type?new Dr(null,e,y):ee)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));let E=go(e.baseURL,e.url),g=new URL(E,"http://localhost"),v=g.protocol||YJ[0];if(v==="data:"){let ee;if(f!=="GET")return aa(l,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ee=Uw(e.url,o==="blob",{Blob:e.env&&e.env.Blob})}catch(me){throw Ve.from(me,Ve.ERR_BAD_REQUEST,e)}return o==="text"?(ee=ee.toString(c),(!c||c==="utf8")&&(ee=Z.stripBOM(ee))):o==="stream"&&(ee=Eo.default.Readable.from(ee)),aa(l,r,{data:ee,status:200,statusText:"OK",headers:new a2,config:e})}if(YJ.indexOf(v)===-1)return r(new Ve("Unsupported protocol "+v,Ve.ERR_BAD_REQUEST,e));let x=a2.from(e.headers).normalize();x.set("User-Agent","axios/"+_o,!1);let O=e.onDownloadProgress,N=e.onUploadProgress,I=e.maxRate,U,F;if(Z.isSpecCompliantForm(s)){let ee=x.getContentType(/boundary=([-_\w\d]{10,70})/i);s=zJ(s,me=>{x.set(me)},{tag:`axios-${_o}-boundary`,boundary:ee&&ee[1]||void 0})}else if(Z.isFormData(s)&&Z.isFunction(s.getHeaders)){if(x.set(s.getHeaders()),!x.hasContentLength())try{let ee=await nK.default.promisify(s.getLength).call(s);Number.isFini
Line truncated
`+i.map(pK).join(`
`):" "+pK(i[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l},adapters:Vw};function qw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dr(null,t)}function wf(t){return qw(t),t.headers=a2.from(t.headers),t.data=M6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),bf.getAdapter(t.adapter||L4.adapter)(t).then(function(l){return qw(t),l.data=M6.call(t,t.transformResponse,l),l.headers=a2.from(l.headers),l},function(l){return $6(l)||(qw(t),l&&l.response&&(l.response.data=M6.call(t,t.transformResponse,l.response),l.response.headers=a2.from(l.response.headers))),Promise.reject(l)})}var fK=t=>t instanceof a2?t.toJSON():t;function ss(t,e){e=e||{};let n={};function l(o,c,f){return Z.isPlainObject(o)&&Z.isPlainObject(c)?Z.merge.call({caseless:f},o,c):Z.isPlainObject(c)?Z.merge({},c):Z.isArray(c)?c.slice():c}function r(o,c,f){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o,f)}else return l(o,c,f)}function i(o,c){if(!Z.isUndefined(c))return l(void 0,c)}function s(o,c){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o)}else return l(void 0,c)}function a(o,c,f){if(f in e)return l(o,c);if(f in t)return l(void 0,o)}let u={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:(o,c)=>r(fK(o),fK(c),!0)};return Z.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=u[c]||r,m=f(t[c],e[c],c);Z.isUndefined(m)&&f!==a||(n[c]=m)}),n}var zw={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{zw[t]=function(l){return typeof l===t||"a"+(e<1?"n ":" ")+t}});var dK={};zw.transitional=function(e,n,l){function r(i,s){return"[Axios v"+_o+"] Transitional option '"+i+"'"+s+(l?". "+l:"")}return(i,s,a)=>{if(e===!1)throw new Ve(r(s," has been removed"+(n?" in "+n:"")),Ve.ERR_DEPRECATED);return n&&!dK[s]&&(dK[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function cxe(t,e,n){if(typeof t!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);let l=Object.keys(t),r=l.length;for(;r-- >0;){let i=l[r],s=e[i];if(s){let a=t[i],u=a===void 0||s(a,i,t);if(u!==!0)throw new Ve("option "+i+" must be "+u,Ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ve("Unknown option "+i,Ve.ERR_BAD_OPTION)}}var Sf={assertOptions:cxe,validators:zw};var oa=Sf.validators,U4=class{constructor(e){this.defaults=e,this.interceptors={request:new _w,response:new _w}}async request(e,n){try{return await this._request(e,n)}catch(l){if(l instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";l.stack?i&&!String(l.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(l.stack+=`
`," ").replaceAll(" \u6536\u8D77","");let o=e('[class="module-tab-item tab-item"]'),c=e('[class="scroll-content"]'),f=[],m=[];for(let d=0;d<o.length;d++){let _=o[d].attribs["data-dropdown-value"];if(_.indexOf("\u5938\u514B")===-1){f.push(_);let S=[];for(let w of e(c[d]).find("a")){let E=e(w).text(),g=w.attribs.href;S.push(E+"$"+g)}m.push(S.join("#"))}}return l.vod_play_from=f.join("$$$"),l.vod_play_url=m.join("$$$"),l}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setCategory(e,n,l,r){let i=[e.toString(),"","","","","","","",n.toString(),"","",""],s=[3,11,1,2];r.\u5168\u90E8\u5267\u60C5!==void 0&&r.\u5168\u90E8\u5267\u60C5!=="0"&&(i[s[0]]=r.\u5168\u90E8\u5267\u60C5),r.\u5168\u90E8\u65F6\u95F4!==void 0&&r.\u5168\u90E8\u65F6\u95F4!=="0"&&(i[s[1]]=r.\u5168\u90E8\u65F6\u95F4),r.\u5168\u90E8\u5730\u533A!==void 0&&r.\u5168\u90E8\u5730\u533A!=="0"&&(i[s[2]]=r.\u5168\u90E8\u5730\u533A),r.\u65F6\u95F4\u6392\u5E8F!==void 0&&r.\u65F6\u95F4\u6392\u5E8F!=="0"&&(i[s[3]]=r.\u65F6\u95F4\u6392\u5E8F);let a=this.siteUrl+"/index.php/vodshow/"+i.join("-")+".html",u=await this.getHtml(a);this.vodList=await this.parseVodShortListFromDoc(u)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);this.vodDetail=await this.parseVodDetailFromDoc(n)}uic(e,n){let l=Ke.enc.Utf8.parse("2890"+n+"tB959C"),r=Ke.enc.Utf8.parse("2F131BE91247866E"),i=Ke.AES.decrypt(e,l,{iv:r,mode:Ke.mode.CBC,padding:Ke.pad.Pkcs7});return Ke.enc.Utf8.stringify(i)}async setPlay(e,n,l){let i=(await this.getHtml(this.siteUrl+n))('[id="bfurl"]')[0].attribs.href;if(i.indexOf("http")>-1)this.playUrl=i;else{let s="https://jiexi.xn--1lq90i13mxk5bolhm8k.xn--fiqs8s/player/ec.php?code=ak&if=1&url="+i,u=(await this.getHtml(s)).html(),o=JSON.parse(xe(/let ConFig = (.*?),box = /,u));this.playUrl=this.uic(o.url,o.config.uid)}}async setSearch(e,n){let l=`http://123.207.150.253/zxapi/public/?service=App.F.Fetch&req_p=${e}&type=6080`,r=await this.fetch(l,null,this.getHeader());this.vodList=await this.parseVodShortListFromJson(JSON.parse(r))}},In=new IS;var RS=class extends Ce{constructor(){super()}getName(){return In.getName()}getAppName(){return In.getAppName()}getJSName(){return In.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await In.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await In.initCookie(e.server.config.bilicookie),await In.spiderInit(e),In.cfgObj.code=0,In.catOpenStatus=!0,In.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await In.setClasses(),this.classes=In.classes}async setFilterObj(){await In.setFilterObj(),this.filterObj=In.filterObj}async setHomeVod(){await In.setHomeVod(),this.homeVodList=In.homeVodList}async setCategory(e,n,l,r){await In.setCategory(e,n,l,r),this.vodList=In.vodList}async setDetail(e){await In.setDetail(e),this.vodDetail=In.vodDetail}async setPlay(e,n,l){await In.setPlay(e,n,l),this.playUrl=In.playUrl,this.result=In.result}async setSearch(e,n,l){await In.setSearch(e,n,l),this.vodList=In.vodList,this.result=In.result}async setProxy(e,n){return await In.proxy(e,n)}},Oa=new RS;async function OW(t,e){return await Oa.init(t,e)}async function NW(t,e){return await Oa.home(t,e)}async function vAe(t,e){return await Oa.homeVod(t,e)}async function CW(t,e){return await Oa.category(t,e)}async function IW(t,e){return await Oa.detail(t,e)}async function RW(t,e){return await Oa.play(t,e)}async function kW(t,e){return await Oa.search(t,e)}async function _Ae(t,e){return await Oa.proxy(t,e)}var DW={meta:{key:In.getJSName(),name:In.getName(),type:In.getType()},api:async t=>{t.post("/init",OW),t.post("/home",NW),t.post("/category",CW),t.post("/detail",IW),t.post("/play",RW),t.post("/search",kW),t.get("/proxy/:what/:ids/:end",_Ae)},spider:{init:OW,home:NW,homeVod:vAe,category:CW,detail:IW,play:RW,search:kW}};function EAe(t){return t.replace(/<\/?[^>]+(>|$)/g,"").replace(/&.{1,5};/g,"").replace(/\s{2,}/g," ")}function bAe(t,e){return e.trim().replaceAll(t,"").replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}var kS=class extends Pe{constructor(){super(),this.siteUrl="http://ys.changmengyun.com"}getName(){return"\u{1F383}\u2503\u5357\u74DC\u5F71\u89C6\u2503\u{1F383}"}getAppName(){return"\u5357\u74DC\u5F71\u89C6"}getJSName(){return"nangua"}getType(){return 3}async init(e){await super.init(e),this.danmuStaus=!0}getHeader(){let e=new Date().getTime().toString();return{version_name:"1.0.6",version_code:"6",package_name:"com.app.nanguatv",sign:Ke.MD5("c431ea542cee9679#uBFszdEM0oL0JRn@"+e).toString().toLowerCase(),imei:"c431ea542cee9679",timeMillis:e,"User-Agent":"okhttp/4.6.0"}}async setClasses(){let e=JSON.parse(await this.fetch(this.siteUrl+"/api.php/provide/home_nav",null,this.getHeader()));for(let n in e)e[n].name!=="\u7CBE\u9009"&&this.classes.push({type_id:e[n].id,type_name:e[n].name})}async set
Line truncated
`),r=[];for(let m of l)B.isEmpty(m.replaceAll(" ","").replaceAll("/",""))||r.push(m.replaceAll(" ","").replaceAll("/",""));n.type_name=r.slice(0,2).join("*");let i=e('[class="video-info-items"]');n.vod_director=e(i[0]).find("a")[0].children[0].data;let s=e(i[1]).find("a"),a=[];for(let m of s)a.push(m.children[0].data);n.vod_actor=a.join(" * "),n.vod_year=r[2],n.vod_remarks=e(e(i[3]).find(".video-info-item")).text(),n.vod_content=e(e(i[5]).find(".video-info-item")).text(),n.vod_area=r[3],n.vod_content=n.vod_content.replace("[\u6536\u8D77\u90E8\u5206]","").replace("[\u5C55\u5F00\u5168\u90E8]","").replaceAll(" ","").replaceAll(`
`,"");let u=e(e('[class="module-tab-content"]')[0]).find("span"),o=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let m of u)c.push(e(m).text());let f=[];for(let m of o){let d=e(e(m).find('[class="sort-item"]')).find("a"),y=[];for(let _ of d){let S=e(_).text(),w=_.attribs.href,E=S+"$"+w;y.push(E)}f.push(y.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=B.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),l=[];for(let r of n){let i=new Ne;i.vod_id=e(r).find(".video-serial")[0].attribs.href,i.vod_name=e(r).find(".video-serial")[0].attribs.title,i.vod_pic=e(r).find(".module-item-pic > img")[0].attribs["data-src"],i.vod_remarks="",l.push(i)}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!B.isEmpty(e)){let n=je(e),l=n(n('[class="nav-menu-items"]')[0]).find("li");for(let r of l.slice(0,6)){let i=n(n(r).find("span")).text();if(i!=="\u9996\u9875"){let a={type_id:n(r).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:i};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))e(e(n[r]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?i.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/vodshow/id/${n}.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=je(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!B.isEmpty(e)){let n=je(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,l=""){return e!==void 0&&e!=="0"?l+e:n}async getCateUrl(e,n,l){e=this.getExtend(l[1],e);let r=this.getExtend(l[2],"","/area/"),i=this.getExtend(l[3],"","/lang/"),s=this.getExtend(l[4],"","/year/"),a=this.getExtend(l[5],"","/letter/"),u=this.getExtend(l[6],"","/by/");return this.siteUrl+`/vodshow${u}${r}/id/${e}${i}${a}${s}/page/${n}.html`}async setCategory(e,n,l,r){let i=await this.getCateUrl(e,n,r),s=await this.fetch(i,null,this.getHeader());if(!B.isEmpty(s)){let a=je(s);this.vodList=await this.parseVodShortListFromDoc(a);let u=we(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,u.length>0&&(this.total=parseInt(u)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!B.isEmpty(l)){let r=je(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){let r=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!B.isEmpty(r)){let i=we(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,r),s=JSON.parse(i);this.playUrl=s.url}}async setSearch(e,n){let l=this.siteUrl+`/vodsearch/wd/${e}.html`,r=await this.fetch(l,null,this.getHeader());if(!B.isEmpty(r)){let i=je(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},Ln=new HS;var VS=class extends Ce{constructor(){super()}getName(){return Ln.getName()}getAppName(){return Ln.getAppName()}getJSName(){return Ln.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await Ln.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await Ln.initCookie(e.server.config.bilicookie),await Ln.spiderInit(e),Ln.cfgObj.code=0,Ln.catOpenStatus=!0,Ln.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await Ln.setClasses(),this.classes=Ln.classes}async setFilterObj(){await Ln.setFilterObj(),this.filterObj=Ln.filterObj}async setHomeVod(){await Ln.setHomeVod(),this.homeVodList=Ln.homeVodList}async setCategory(e,n,l,r){await Ln.setCategory(e,n,l,r),this.vodList=Ln.vodList}async setDetail(e){await Ln.setDetail(e),this.vodDetail=Ln.vodDetail}async setPlay(e,n,l){await Ln.setPlay(e,n,l),this.playUrl=Ln.playUrl,this.result=Ln.result}async setSearch(e,n,l){await Ln.setSearch(e,n,l),this.vodList=Ln.vodList,this.result=Ln.result}async setProxy(e,n){return await Ln.proxy(e,n)}},Da=new VS;async function fY(t,e){return await Da.init(t,e)}async function dY(t,e){return await Da.home(t,e)}async function HAe(t,e){return await Da.homeVod(t,e)}async function hY(t,e){return await Da.category(t,e)}async function mY(t,e){return await Da.detail(t,e)}async function yY(t,e){return await Da.play(t,e)}
Line truncated
`,""),B.isEmpty(l.vod_pic)&&(l.vod_pic=ta+"/resources/dygang.jpg"),l}async parseVodShortListFromDoc(e){let n=[],l=e('[class="index-tj-l"]').find("li");for(let r of l){let i=e(r).find("a")[0],s=this.parseVodShortFromElement(e,i);n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],l=e('[class="index-area clearfix"]').find("li");for(let r of l){let i=e(r).find("a")[0],s=this.parseVodShortFromElement(e,i);n.push(s)}return n}async parseVodDetailFromDoc(e){let n=new Me,l=e('[ class="ct mb clearfix"]');n.vod_pic=e(l).find("img")[0].attribs.src,n.vod_name=we(/◎片 名 (.*?)<br>/,e(l).html()),n.vod_area=we(/◎产 地 (.*?)<br>/,e(l).html()),n.vod_year=we(/◎年 代 (.*?)<br>/,e(l).html()),n.type_name=we(/◎类 别 (.*?)<br>/,e(l).html()),n.vod_remarks=we(/◎集 数 (.*?)<br>/,e(l).html());let r=we(/◎主 演 (.*?)<\/p>/s,e(l).html());B.isEmpty(r)&&(r=we(/◎演 员 (.*?)<\/p>/s,e(l).html()));let i=[];for(let f of r.split(`
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.