varDte=Object.create;varz8=Object.defineProperty;varPte=Object.getOwnPropertyDescriptor;varLte=Object.getOwnPropertyNames;varFte=Object.getPrototypeOf,jte=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),LA=(t,e)=>{for(varnine)z8(t,n,{get:e[n],enumerable:!0})},FA=(t,e,n,l)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofLte(e))!jte.call(t,r)&&r!==n&&z8(t,r,{get:()=>e[r],enumerable:!(l=Pte(e,r))||l.enumerable});returnt};varZl=(t,e,n)=>(n=t!=null?Dte(Fte(t)):{},FA(e||!t||!t.__esModule?z8(n,"default",{value:t,enumerable:!0}):n,t)),Ute=t=>FA(z8({},"__esModule",{value:!0}),t);varUA=k((fNe,jA)=>{"use strict";functionMte(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}}jA.exports=Mte});varjd=k((dNe,Fd)=>{"use strict";var$te=UA();functionMA(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=$te(Bte),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(){}functionBte(){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)}}functionHte(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=MA(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=MA;Fd.exports.promise=Hte});varMd=k((hNe,$A)=>{"use strict";var{inherits:Vte,format:Ud}=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=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}`},Vte(l,n),l}$A.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","Callbackfor'%s'hookisnotafunction.Received:'%s
deps:${n}}`};var H0e={keyword:"dependencies",type:"object",schemaType:"object",error:Yr.error,code(t){let[e,n]=V0e(t);KR(t,e),XR(t,n)}};function V0e({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 KR(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=KR;function XR(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,B0e.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=XR;Yr.default=H0e});var QR=k(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var YR=st(),q0e=Nt(),z0e={message:"property name must be valid",params:({params:t})=>(0,YR._)`{propertyName:${t.propertyName}}`},G0e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:z0e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,q0e.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,YR.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Ay.default=G0e});var Ny=k(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var Wc=O2(),Sr=st(),J0e=Q3(),Yc=Nt(),K0e={message:"must NOT have additional properties",params:({params:t})=>(0,Sr._)`{additionalProperty:${t.additionalProperty}}`},X0e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:K0e,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}===${J0e.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=X0e});var tk=k(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var W0e=o0(),ZR=O2(),Cy=Nt(),ek=Ny(),Y0e={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&&ek.default.code(new W0e.KeywordCxt(i,ek.default,"additionalProperties"));let s=(0,ZR.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.le
`;let a=new y7e(e),u=new g7e(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
${s}`,ajv:u.ajv};let o=new Function("validator","serializer",s);return e.mode==="standalone"?ig()(o,n,a,u):o(u,a)}var E7e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],b7e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],w7e=["maxLength","minLength","pattern"],S7e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function SF(t){for(var e of E7e)if(e in t)return"object";for(var e of b7e)if(e in t)return"array";for(var e of w7e)if(e in t)return"string";for(var e of S7e)if(e in t)return"number";return t.type}function T7e(t,e){let n=e.schema,l=Object.keys(n.properties||{}),r=`
`,r}function x7e(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=A0(t,e,c.schema.$ref));let f=JSON.stringify(o);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`;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=A0(t,e,c.schema.$ref));let f=JSON.stringify(o);if(a.indexOf(o)!==-1)n+=`
${e}`)}function n7(t,e,n,l){if((t.isLeafNode||l.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[AU]=Nde(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 Cde(t,e){let n={};return n7(t,n,t.prefix,e),OU(n)}CU.exports={prettyPrintTree:Cde}});var kU=k((Mke,RU)=>{"use strict";var Ide=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(Ide.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(`
`))}};RU.exports=i_});var PU=k(($ke,DU)=>{"use strict";var Rde=kU(),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 Rde),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}};DU.exports={StaticNode:i7,ParametricNode:s7,WildcardNode:a7,NODE_TYPES:u7}});var FU=k((Bke,LU)=>{"use strict";var kde=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]};LU.exports={name:"version",mustMatchWhenDerived:!0,storage:x5,validate(t){kde(typeof t=="string","Version should be a string")}}});var UU=k((Hke,jU)=>{"use strict";var Dde=require("assert");function Pde(){let t={},e=[];return{get:n=>{let l=t[n];if(l)return l;for
`)).bind(this)}};MU.exports=a_});var HU=k((qke,BU)=>{"use strict";var jde=["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"];BU.exports=jde});var zU=k((zke,qU)=>{"use strict";function VU(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 Ude(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);VU(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 Mde(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=VU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}qU.exports={safeDecodeURI:Ude,safeDecodeURIComponent:Mde}});var d_=k((Gke,QU)=>{"use strict";var $l=require("assert"),$de=fU(),o7=wU(),c_=a0(),{prettyPrintTree:Bde}=IU(),{StaticNode:GU,NODE_TYPES:u_}=PU(),Hde=$U(),M0=HU(),o_=t7(),{safeDecodeURI:Vde,safeDecodeURIComponent:JU}=zU(),KU=/^https?:\/\/.*?\//,zu=/(\/:[^/()]*?)\?(\/?)/;if(!o7(KU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!o7(zu))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=qde,t.querystringParser?($l(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:$de.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 Hde(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(zu);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(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=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(M0.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 GU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e]
`;an.DEFAULT_CONTENT_TYPE="application/octet-stream";an.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var l=yw.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),mJ.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,n),i=this._multiPartFooter();l(r),l(e),l(i),this._trackLength(r,e,n)};an.prototype._trackLength=function(t,e,n){var l=0;n.knownLength!=null?l+=+n.knownLength:Buffer.isBuffer(e)?l=e.length:typeof e=="string"&&(l=Buffer.byteLength(e)),this._valueLength+=l,this._overheadLength+=Buffer.byteLength(t)+an.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof gTe))&&(n.knownLength||this._valuesToMeasure.push(e))};an.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):yTe.stat(t.path,function(n,l){var r;if(n){e(n);return}r=l.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(n){t.pause(),e(null,+n.headers["content-length"])}),t.resume()):e("Unknown stream")};an.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var l=this._getContentDisposition(e,n),r=this._getContentType(e,n),i="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(l||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&mw(s,n.header);var a;for(var u in s)s.hasOwnProperty(u)&&(a=s[u],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(i+=u+": "+a.join("; ")+an.LINE_BREAK)));return"--"+this.getBoundary()+an.LINE_BREAK+i+an.LINE_BREAK};an.prototype._getContentDisposition=function(t,e){var n,l;return typeof e.filepath=="string"?n=dw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?n=dw.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(n=dw.basename(t.client._httpMessage.path||"")),n&&(l='filename="'+n+'"'),l};an.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t.name&&(n=hw.lookup(t.name)),!n&&t.path&&(n=hw.lookup(t.path)),!n&&t.readable&&t.hasOwnProperty("httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=hw.lookup(e.filepath||e.filename)),!n&&typeof t=="object"&&(n=an.DEFAULT_CONTENT_TYPE),n};an.prototype._multiPartFooter=function(){return function(t){var e=an.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};an.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+an.LINE_BREAK};an.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(n[e.toLowerCase()]=t[e]);return n};an.prototype.setBoundary=function(t){this._boundary=t};an.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};an.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,l=this._streams.length;n<l;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?t=Buffer.concat([t,this._streams[n]]):t=Buffer.concat([t,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(an.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};an.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};an.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};an.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};an.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure
`,f.message,f.stack);var m=new Error("tunneling socket could not be established, cause="+f.message);m.code="ECONNRESET",e.request.emit("error",m),l.removeSocket(r)}};as.prototype.removeSocket=function(e){var n=this.sockets.indexOf(e);if(n!==-1){this.sockets.splice(n,1);var l=this.requests.shift();l&&this.createSocket(l,function(r){l.request.onSocket(r)})}};function EK(t,e){var n=this;as.prototype.createSocket.call(n,t,function(l){var r=t.request.getHeader("host"),i=Yw({},n.options,{socket:l,servername:r?r.replace(/:.*$/,""):t.host}),s=yxe.connect(0,i);n.sockets[n.sockets.indexOf(l)]=s,e(s)})}function bK(t,e,n){return typeof t=="string"?{host:t,port:e,localAddress:n}:t}function Yw(t){for(var e=1,n=arguments.length;e<n;++e){var l=arguments[e];if(typeof l=="object")for(var r=Object.keys(l),i=0,s=r.length;i<s;++i){var a=r[i];l[a]!==void 0&&(t[a]=l[a])}}return t}var ca;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ca=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:ca=function(){};B4.debug=ca});var TK=k((dMe,SK)=>{SK.exports=wK()});var MZ=k(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.removeTrailingChar=To.merge=void 0;var JOe=(...t)=>{let e={};return t.forEach(function(n){var l;for(l in n)l in e&&e[l]===null?e[l]=n[l]:l in e&&Array.isArray(e[l])?e[l]=e[l].concat(n[l]):l in e&&typeof e[l]=="object"?e[l]=(0,To.merge)(e[l],n[l]):e[l]=n[l]}),e};To.merge=JOe;var KOe=(t,e)=>t.length>1&&t.endsWith(e)?t.substring(0,t.length-1):t;To.removeTrailingChar=KOe});var H4=k(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.DataError=tu.DatabaseError=tu.NestedError=void 0;var Z6=class extends Error{inner;id;constructor(e,n,l){super(e),this.inner=l,this.id=n,this.name=this.constructor.name}toString(){let e=this.name+": "+this.message;return this.inner?e+`:
`+this.inner:e}};tu.NestedError=Z6;var AT=class extends Z6{};tu.DatabaseError=AT;var OT=class extends Z6{};tu.DataError=OT});var kT=k(u3=>{"use strict";Object.defineProperty(u3,"__esModule",{value:!0});u3.getArrayIndicies=u3.validateArrayIndex=u3.validateArrayIndicies=u3.isInt=u3.ArrayInfo=u3.arrayRegex=void 0;var Cf=H4(),XOe=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;u3.arrayRegex=XOe;var NT={},CT=class t{property;index=0;append=!1;indicies=[];constructor(e,n){this.property=e;let l=n[0]??0;if(this.append=l===""||n[n.length-1]==="",this.indicies=n,IT(l))this.index=parseInt(l);else if(!this.append)throw new Cf.DataError("Only numerical values accepted for array index",200)}static processArray(e){if(typeof e>"u")return null;if(NT[e])return NT[e];let l=(0,u3.arrayRegex)().exec(e.trim());if(l!=null){let r=l[1],i="["+l[2].toString()+"]",s=RT(i);return $Z(s),NT[e]=new t(r,s)}return null}getIndex(e,n){if(this.append)return-1;let l=this.index;if(l==-1){let r=n?e:e[this.property];return r.length===0?0:r.length-1}return l}getData(e){if(this.append)throw new Cf.DataError("Can't get data when appending",100);let{index:n,dataForProperty:l}=this.getArrayDataAndIndexFromProperty(e);return l[n]}setData(e,n){if(this.append){let l=e[this.property];this.indicies.forEach(r=>{r!==""&&(r=+r,r===-1&&(r=l.length-1),l=l[+r])}),l.push(n)}else{let{index:l,dataForProperty:r}=this.getArrayDataAndIndexFromProperty(e);l===-1?r.push(n):r[l]=n}}delete(e){if(this.append)throw new Cf.DataError("Can't delete an appended data",10);let{index:n,dataForProperty:l}=this.getArrayDataAndIndexFromProperty(e);l.splice(n,1)}isValid(e){let{index:n,dataForProperty:l}=this.getArrayDataAndIndexFromProperty(e);return l.hasOwnProperty(n)}getArrayDataAndIndexFromProperty(e){let n=0,l=e instanceof Array?e:e[this.property]??e;if(this.indicies.length>0){n=+this.indicies[this.indicies.length-1];for(let r=0;r<this.indicies.length-1;r++){let i=+this.indicies[r];i===-1&&(i=l.length-1),l=l[i]}n===-1&&(n=l.length-1)}return{index:n,dataForProperty:l}}isMultiDimensional(){return this.indicies.length>1}};u3.ArrayInfo=CT;function IT(t){return!isNaN(t)&&Number(t)==t&&!isNaN(parseInt(t,10))}u3.isInt=IT;function $Z(t){let e=t.filter(n=>n==="");if(e.length>1)throw Error("Only one append index is supported for nested arrays");if(e.length===1&&t[t.length-1]!=="")throw Error("Append index must be at the end of the nested array")}u3.validateArrayIndicies=$Z;function BZ(t){if(t.length!==0&&!IT(t))throw new Cf.DataError("Only numerical values accepted for array index",200)}u3.validateArrayIndex=BZ;function RT(t){if(t.length===0)return[];if(t.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let e=t.substring(1,t.indexOf("]"));BZ(e);let n=e.length+2;return[e,...RT(t.substring(n))]}u3.getArrayIndicies=RT});var qZ=k(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.DBParentData=void 0;var HZ=kT(),VZ=H4(),DT=class{parent;data;db;dataPath;constructor(e,n,l,r){this.parent=r,this.data=e,this.db=n,this.dataPath=l}checkArray(e=!1){let n=HZ.ArrayInfo.processArray(this.parent);if(n&&(!n.append||e)&&!n.isValid(this.data))throw new VZ.DataError("DataPath: /"+this.dataPath+". Can't find index "+n.index+" in array "+n.property,10);return n}getData(){if(this.parent===void 0)return this.data;let e=this.checkArray();return e?e.getData(this.data):this.data[this.parent]}setData(e){if(this.parent===void 0){this.db.resetData(e);return}let n=HZ.ArrayInfo.processArray(this.parent);if(n){if(!this.data.hasOwnProperty(n.property))this.data[n.property]=[];else if(!Array.isArray(this.data[n.property]))throw new VZ.DataError("DataPath: /"+this.dataPath+". "+n.property+" is not an array.",11);n.setData(this.data,e)}else this.data[this.parent]=e}delete(){if(this.parent===void 0){this.db.resetData({});return}let e=this.checkArray(!0);e?e.delete(this.data):delete this.data[this.parent]}};If.DBParentData=DT});var GZ=k((Bze,zZ)=>{zZ.exports=function(){"use strict";function t(){this.readers=0,this.queue=[]}function e(i,s,a){var u;typeof i!="function"?(r.hasOwnProperty(i)
)`,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])"},YB={};function QB(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))?[YB]: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,...QB(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 tge(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()),Yye[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:ege[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 j$(y,m,d,1),S=>y(S,d)&&a(S);if(m in yE)return yE[m](a,d,o,c);if(m in F$){let S=F$[m];return j$(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 ye
`)}}):{name:l,value:r.replace(M$,`\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,Bye,wge,Nge,Cge,Rge),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)}),kge=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)},Dge=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",$$=(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||{}),"--"),B$="[CDATA[",H$="doctype",V0="script",Pge="public",Lge="system";function dH(t){return 55296<=t&&t<=57343}function hH(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function mH(t){return 64976<=t&&t<=65007||Dge.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="missin
`,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 $H(){throw new Error("setTimeout has not been defined")}function BH(){throw new Error("clearTimeout has not been defined")}var Vs=$H,zs=BH;function HH(t){if(Vs===setTimeout)return setTimeout(t,0);if((Vs===$H||!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 eo,ls=[],i4=!1,j7=-1;function kve(){i4&&eo&&(i4=!1,eo.length?ls=eo.concat(ls):j7=-1,ls.length)&&VH()}function VH(){if(!i4){var t=HH(kve);i4=!0;for(var e=ls.length;e;){for(eo=ls,ls=[];++j7<e;)eo&&eo[j7].run();j7=-1,e=ls.length}eo=null,i4=!1,function(n){if(zs===clearTimeout)return clearTimeout(n);if((zs===BH||!zs)&&clearTimeout)return(zs=clearTimeout)(n);try{zs(n)}catch{try{return zs.call(null,n)}catch{return zs.call(this,n)}}}(t)}}function qH(t,e){this.fun=t,this.array=e}function so(){}qH.prototype.run=function(){this.fun.apply(null,this.array)};var Dve=so,Pve=so,Lve=so,Fve=so,jve=so,Uve=so,Mve=so,X0=ts.performance||{},$ve=X0.now||X0.mozNow||X0.msNow||X0.oNow||X0.webkitNow||function(){return new Date().getTime()},Bve=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 qH(t,e)),ls.length!==1||i4||HH(VH)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Dve,addListener:Pve,once:Lve,off:Fve,removeListener:jve,removeAllListeners:Uve,emit:Mve,binding:function(t){throw new Error("process.
`?this.forward():this.back())),s3(eV,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,s3(nV,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(vV,{body:i,flags:a},n,l)}if(TB.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=rV;break;case")":u=iV;break;case"[":u=sV;break;case"]":u=aV;break;case"{":u=uV;break;case"}":u=oV;break;case",":u=pV;break;case":":u=fV;break;case"~":u=dV;break;case"|":u=hV;break;default:u=cV}return s3(u,r,n,l)}if((d=this._extractUntil(SB+TB)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),o=this._extract("0123456789"),s3(mV,d+"."+o,n,l)):s3("int",d,n,l);if(d.match(/^(true|false)$/))return s3(yV,d,n,l);if(d==="none"||d==="null")return s3(LE,d,n,l);if(d)return s3(gV,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(ZH,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,s3(tV,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?lV:QH,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.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}(p4.Obj),J_e={compile:function(s,e,n,l,r){var i=new IB(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(H_e.transform(M_e.parse(s,n,r),e,l)),i.getCode()},Compiler:IB},K_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}),Z7={};functionPV(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}varX_e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,rE=function(t){returnX_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?"/":"")+PV(lb(t.split("/"),function(r){return!!r}),!e).join("/")||"."}functionRB(t){vare=LV(t),n=W_e(t,-1)==="/";return(t=(t=PV(lb(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionLV(t){returnt.charAt(0)==="/"}vars4={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(){returnRB(lb(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:LV,normalize:RB,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}varW_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)};functionFV(t,e){return(FV=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),FV(l.prototype.constructor=l,e);varl=n.prototype;returnl.resolve=function(r,i){returns4.resolve(s4.dirname(r),i)},l.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},n}(p4.EmitterObj);functionjV(t,e){return(jV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varY_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),jV(e.prototype.co
`)){let u=a.trim();if(u)if(u.startsWith("#")){if(u.startsWith("#EXT")){let o=OEe(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=NEe(n,e);return l.source=t,l}var CEe=["#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"],IEe=["#EXT-X-MEDIA"],bb=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(CEe.some(l=>n.startsWith(l)))super.push(n);else{if(this.includes(n)){if(IEe.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 REe(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 hq(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=${pq(t.iv)}`)),t.format&&l.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&l.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${l.join(",")}`}function kEe(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(vEe().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 DEe(t,e,n,l,r=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let o=hq(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&&
`)}var yq="hls_cache",Bp=[],co={},T6={},oo={},$p="";function PEe(t,e){if(Bp.push(t),co[t]=e,Bp.length>5){let n=Bp.shift();LEe(n)}}function LEe(t){delete co[t],delete Bp[t],new JSFile(yq+"/"+t).delete()}function FEe(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 gq(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=FEe(r,dq(i));return PEe(n,{code:l.code,plist:s,key:n,headers:l.headers}),co[n]}return{}}async function vq(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:yq+"/"+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&&jEe(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&&_q(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 _q(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 jEe(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(oo[t],function(o){return o.state==-1}),u=B.minBy(Object.values(a),function(o){return o.order});if(!u){r();return}await _q(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 Eq(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.conten
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),l=s.substring(r+1).trim(),!(!n||e[n]&&CTe[n])&&(n==="set-cookie"?e[n]?e[n].push(l):e[n]=[l]:e[n]=e[n]?e[n]+", "+l:l)}),e};var IJ=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 ITe(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 RTe=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)}}functionkTe(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}functionDTe(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})})}varj4=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())&&!RTe(e)?s(CJ(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)returnITe(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?kTe(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(`
`,txe=J6.encode(ua),nxe=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+nxe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;Z.isTypedArray(e)?yield e:yield*Ef(e),yield txe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},lxe=(t,e,n)=>{let{tag:l="form-data-boundary",size:r=25,boundary:i=l+"-"+Z.generateString(r,exe)}=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),zJ.Readable.from(async function*(){for(let f of o)yield s,yield*f.encode();yield a}())},GJ=lxe;var JJ=Zl(require("stream"),1),Hw=class extends JJ.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)}},KJ=Hw;var rxe=(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,XJ=rxe;var WJ={flush:is.default.constants.Z_SYNC_FLUSH,finishFlush:is.default.constants.Z_SYNC_FLUSH},ixe={flush:is.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:is.default.constants.BROTLI_OPERATION_FLUSH},YJ=Z.isFunction(is.default.createBrotliDecompress),{http:sxe,https:axe}=rK.default,uxe=/https:?/,QJ=s2.protocols.map(t=>t+":");function oxe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function sK(t,e,n){let l=e;if(!l&&l!==!1){let r=(0,eK.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){sK(i,e,i.href)}}var cxe=typeof process<"u"&&Z.kindOf(process)==="process",pxe=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)}),fxe=({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)}},ZJ=(t,e)=>fxe(Z.isObject(t)?t:{address:t,family:e}),aK=cxe&&function(e){return pxe(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=XJ(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=>ZJ(Qe)):[ZJ(q,el)];P.all?G(V,Tt):G(V,Tt[0].address,Tt[0].family)})}}let _=new iK.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=_o(e.baseURL,e.url),g=new URL(E,"http://localhost"),v=g.protocol||QJ[0];if(v==="data:"){let ee;if(f!=="GET")return aa(l,r,{status:405,stat
`+i.map(fK).join(`
`):" "+fK(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||F4.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 dK=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(dK(o),dK(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 hK={};zw.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 Ve(r(s," has been removed"+(n?" in "+n:"")),Ve.ERR_DEPRECATED);return n&&!hK[s]&&(hK[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 mxe(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:mxe,validators:zw};var oa=Sf.validators,M4=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+=`
`),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=e(e(r).find(".video-serial")[0]).text(),l.push(i)}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!B.isEmpty(e)){let n=He(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=He(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=He(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=He(s);this.vodList=await this.parseVodShortListFromDoc(a);let u=xe(/\$\("\.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=He(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=xe(/<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=He(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},On=new wS;var SS=class extends Ce{constructor(){super()}getName(){return On.getName()}getAppName(){return On.getAppName()}getJSName(){return On.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName()==="push_agent"?await On.initAli(e.server.config.alitoken):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await On.initCookie(e.server.config.bilicookie),await On.spiderInit(e),On.cfgObj.code=0,On.catOpenStatus=!0,On.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\