From 4adb6897c899825c084fa186335fd0879b7f7ef9 Mon Sep 17 00:00:00 2001 From: lushunming <1357197829@qq.com> Date: Sat, 24 Aug 2024 10:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- json/js/jpyy2.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 json/js/jpyy2.js diff --git a/json/js/jpyy2.js b/json/js/jpyy2.js new file mode 100644 index 00000000..238220d0 --- /dev/null +++ b/json/js/jpyy2.js @@ -0,0 +1 @@ +var e$1,pe,t$1=function(){return(t$1=Object.assign||function(l){for(var n,e=1,t=arguments.length;e{var n;return{name:l,value:this.attribs[l],namespace:null==(n=this["x-attribsNamespace"])?void 0:n[l],prefix:null==(n=this["x-attribsPrefix"])?void 0:n[l]}}))}};function S$1(l){return l.type===e$1.Tag||l.type===e$1.Script||l.type===e$1.Style}function C$1(l){return l.type===e$1.CDATA}function N$1(l){return l.type===e$1.Text}function b$1(l){return l.type===e$1.Comment}function I$1(l){return l.type===e$1.Directive}function O$1(l){return l.type===e$1.Root}function k$1(l){return Object.prototype.hasOwnProperty.call(l,"children")}function L$1(l,n=!1){let e;if(N$1(l))e=new _$1(l.data);else if(b$1(l))e=new E$1(l.data);else if(S$1(l)){const t=n?D$1(l.children):[],u=new y$1(l.name,{...l.attribs},t);t.forEach((l=>l.parent=u)),null!=l.namespace&&(u.namespace=l.namespace),l["x-attribsNamespace"]&&(u["x-attribsNamespace"]={...l["x-attribsNamespace"]}),l["x-attribsPrefix"]&&(u["x-attribsPrefix"]={...l["x-attribsPrefix"]}),e=u}else if(C$1(l)){const t=n?D$1(l.children):[],u=new g$1(t);t.forEach((l=>l.parent=u)),e=u}else if(O$1(l)){const t=n?D$1(l.children):[],u=new v$1(t);t.forEach((l=>l.parent=u)),l["x-mode"]&&(u["x-mode"]=l["x-mode"]),e=u}else{if(!I$1(l))throw new Error("Not implemented yet: "+l.type);{const n=new T$1(l.name,l.data);null!=l["x-name"]&&(n["x-name"]=l["x-name"],n["x-publicId"]=l["x-publicId"],n["x-systemId"]=l["x-systemId"]),e=n}}return e.startIndex=l.startIndex,e.endIndex=l.endIndex,null!=l.sourceCodeLocation&&(e.sourceCodeLocation=l.sourceCodeLocation),e}function D$1(l){var n=l.map((l=>L$1(l,!0)));for(let l=1;l$\x80-\uFFFF]/g,M=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),P$1=null!=String.prototype.codePointAt?(l,n)=>l.codePointAt(n):(l,n)=>55296==(64512&l.charCodeAt(n))?1024*(l.charCodeAt(n)-55296)+l.charCodeAt(n+1)-56320+65536:l.charCodeAt(n);function B$1(l){let n,e="",t=0;for(;null!==(n=x$1.exec(l));){var u=n.index,r=l.charCodeAt(u),i=M.get(r);t=void 0!==i?(e+=l.substring(t,u)+i,u+1):(e+=`${l.substring(t,u)}&#x${P$1(l,u).toString(16)};`,x$1.lastIndex+=Number(55296==(64512&r)))}return e+l.substr(t)}function F$1(l,n){return function(e){let t,u=0,r="";for(;t=l.exec(e);)u!==t.index&&(r+=e.substring(u,t.index)),r+=n.get(t[0].charCodeAt(0)),u=t.index+1;return r+e.substring(u)}}const U$1=F$1(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),H$1=F$1(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),G$1=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((l=>[l.toLowerCase(),l]))),j$1=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((l=>[l.toLowerCase(),l]))),q$1=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Y$1(l){return l.replace(/"/g,""")}const K$1=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function W$1(l,n={}){var e="length"in l?l:[l];let t="";for(let l=0;l`;case c$1:return`\x3c!--${l.data}--\x3e`;case f$1:return``;case u$1:case l$1:case h:return function(l,n){!(n="foreign"===n.xmlMode&&(l.name=null!=(t=G$1.get(l.name))?t:l.name,l.parent)&&$$1.has(l.parent.name)?{...n,xmlMode:!1}:n).xmlMode&&Q$1.has(l.name)&&(n={...n,xmlMode:"foreign"});let e="<"+l.name;var t=function(l,n){var e;if(l){const t=!1===(null!=(e=n.encodeEntities)?e:n.decodeEntities)?Y$1:n.xmlMode||"utf8"!==n.encodeEntities?B$1:U$1;return Object.keys(l).map((e=>{var u,r=null!=(r=l[e])?r:"";return"foreign"===n.xmlMode&&(e=null!=(u=j$1.get(e))?u:e),n.emptyAttrs||n.xmlMode||""!==r?`${e}="${t(r)}"`:e})).join(" ")}}(l.attribs,n);return t&&(e+=" "+t),0===l.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&K$1.has(l.name))?(n.xmlMode||(e+=" "),e+="/>"):(e+=">",0`)),e}(l,n);case a$1:return function(l,n){var e,t=l.data||"";return!1===(null!=(e=n.encodeEntities)?e:n.decodeEntities)||!n.xmlMode&&l.parent&&q$1.has(l.parent.name)?t:(n.xmlMode||"utf8"!==n.encodeEntities?B$1:H$1)(t)}(l,n)}}const $$1=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Q$1=new Set(["svg","math"]);function z$1(l,n){return W$1(l,n)}function X$1(l){return Array.isArray(l)?l.map(X$1).join(""):k$1(l)&&!b$1(l)?X$1(l.children):N$1(l)?l.data:""}function Z$1(l){return Array.isArray(l)?l.map(Z$1).join(""):k$1(l)&&(l.type===e$1.Tag||C$1(l))?Z$1(l.children):N$1(l)?l.data:""}function J$1(l){return k$1(l)?l.children:[]}function ee(l){return l.parent||null}function te(l){var n=ee(l);if(null!=n)return J$1(n);var e=[l];let{prev:t,next:u}=l;for(;null!=t;)e.unshift(t),({prev:t}=t);for(;null!=u;)e.push(u),({next:u}=u);return e}function ne(l){let n=l.next;for(;null!==n&&!S$1(n);)({next:n}=n);return n}function re(l){let n=l.prev;for(;null!==n&&!S$1(n);)({prev:n}=n);return n}function ie(l){var n,e;l.prev&&(l.prev.next=l.next),l.next&&(l.next.prev=l.prev),l.parent&&0<=(e=(n=l.parent.children).lastIndexOf(l))&&n.splice(e,1),l.next=null,l.prev=null,l.parent=null}function se(l,n,e=!0,t=1/0){return ae(l,Array.isArray(n)?n:[n],e,t)}function ae(l,n,e,t){for(var u=[],r=[n],i=[0];;)if(i[0]>=r[0].length){if(1===i.length)return u;r.shift(),i.shift()}else{const n=r[0][i[0]++];if(l(n)&&(u.push(n),--t<=0))return u;e&&k$1(n)&&0"function"==typeof l?n=>S$1(n)&&l(n.name):"*"===l?S$1:n=>S$1(n)&&n.name===l,tag_type:l=>"function"==typeof l?n=>l(n.type):n=>n.type===l,tag_contains:l=>"function"==typeof l?n=>N$1(n)&&l(n.data):n=>N$1(n)&&n.data===l};function ue(l,n){return"function"==typeof n?e=>S$1(e)&&n(e.attribs[l]):e=>S$1(e)&&e.attribs[l]===n}function le(l,n){return e=>l(e)||n(e)}function he(l){var n=Object.keys(l).map((n=>{var e=l[n];return Object.prototype.hasOwnProperty.call(ce,n)?ce[n](e):ue(n,e)}));return 0===n.length?null:n.reduce(le)}function fe(l,n,e=!0,t=1/0){return se(ce.tag_name(l),n,e,t)}function de(l,n){var e=[],t=[];if(l===n)return 0;let u=k$1(l)?l:l.parent;for(;u;)e.unshift(u),u=u.parent;for(u=k$1(n)?n:n.parent;u;)t.unshift(u),u=u.parent;var r,i,s,a,o=Math.min(e.length,t.length);let c=0;for(;ci.indexOf(a)?r===n?pe.FOLLOWING|pe.CONTAINED_BY:pe.FOLLOWING:r===l?pe.PRECEDING|pe.CONTAINS:pe.PRECEDING)}function me(l){return(l=l.filter(((l,n,e)=>!e.includes(l,n+1)))).sort(((l,n)=>(l=de(l,n))&pe.PRECEDING?-1:l&pe.FOLLOWING?1:0)),l}!function(l){l[l.DISCONNECTED=1]="DISCONNECTED",l[l.PRECEDING=2]="PRECEDING",l[l.FOLLOWING=4]="FOLLOWING",l[l.CONTAINS=8]="CONTAINS",l[l.CONTAINED_BY=16]="CONTAINED_BY"}(pe=pe||{});const _e=["url","type","lang"],Ee=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Te(l){return fe("media:content",l).map((l=>{var n=l.attribs,e={medium:n.medium,isDefault:!!n.isDefault};for(const l of _e)n[l]&&(e[l]=n[l]);for(const l of Ee)n[l]&&(e[l]=parseInt(n[l],10));return n.expression&&(e.expression=n.expression),e}))}function Ae(l,n){return fe(l,n,!0,1)[0]}function ge(l,n,e=!1){return X$1(fe(l,n,e,1)).trim()}function ve(l,n,e,t,u=!1){(e=ge(e,t,u))&&(l[n]=e)}function ye(l){return"rss"===l||"feed"===l||"rdf:RDF"===l}var Se=Object.freeze({__proto__:null,isTag:S$1,isCDATA:C$1,isText:N$1,isComment:b$1,isDocument:O$1,hasChildren:k$1,getOuterHTML:z$1,getInnerHTML:function(l,n){return k$1(l)?l.children.map((l=>z$1(l,n))).join(""):""},getText:function l(n){return Array.isArray(n)?n.map(l).join(""):S$1(n)?"br"===n.name?"\n":l(n.children):C$1(n)?l(n.children):N$1(n)?n.data:""},textContent:X$1,innerText:Z$1,getChildren:J$1,getParent:ee,getSiblings:te,getAttributeValue:function(l,n){return null==(l=l.attribs)?void 0:l[n]},hasAttrib:function(l,n){return null!=l.attribs&&Object.prototype.hasOwnProperty.call(l.attribs,n)&&null!=l.attribs[n]},getName:function(l){return l.name},nextElementSibling:ne,prevElementSibling:re,removeElement:ie,replaceElement:function(l,n){const e=n.prev=l.prev;e&&(e.next=n);var t=n.next=l.next;if(t&&(t.prev=n),t=n.parent=l.parent){const e=t.children;e[e.lastIndexOf(l)]=n,l.parent=null}},appendChild:function(l,n){ie(n),n.next=null,1<(n.parent=l).children.push(n)?((l=l.children[l.children.length-2]).next=n).prev=l:n.prev=null},append:function(l,n){ie(n);var e=l.parent,t=l.next;if(n.next=t,((n.prev=l).next=n).parent=e,t){if(t.prev=n,e){const l=e.children;l.splice(l.lastIndexOf(t),0,n)}}else e&&e.children.push(n)},prependChild:function(l,n){ie(n),n.parent=l,n.prev=null,1!==l.children.unshift(n)?((l=l.children[1]).prev=n).next=l:n.next=null},prepend:function(l,n){ie(n);var e,t=l.parent;t&&(e=t.children).splice(e.indexOf(l),0,n),l.prev&&(l.prev.next=n),n.parent=t,n.prev=l.prev,(n.next=l).prev=n},filter:se,find:ae,findOneChild:function(l,n){return n.find(l)},findOne:oe,existsOne:function l(n,e){return e.some((e=>S$1(e)&&(n(e)||l(n,e.children))))},findAll:function(l,n){for(var e=[],t=[n],u=[0];;)if(u[0]>=t[0].length){if(1===t.length)return e;t.shift(),u.shift()}else{const n=t[0][u[0]++];S$1(n)&&(l(n)&&e.push(n),0{var n={media:Te(l=l.children)},e=(ve(n,"id","id",l),ve(n,"title","title",l),null==(e=Ae("link",l))?void 0:e.attribs.href);return e&&(n.link=e),(e=ge("summary",l)||ge("content",l))&&(n.description=e),(e=ge("updated",l))&&(n.pubDate=new Date(e)),n}))},e=(ve(n,"id","id",l),ve(n,"title","title",l),null==(e=Ae("link",l))?void 0:e.attribs.href);return e&&(n.link=e),ve(n,"description","subtitle",l),(e=ge("updated",l))&&(n.updated=new Date(e)),ve(n,"author","email",l,!0),n}:function(l){var n=null!=(n=null==(n=Ae("channel",l.children))?void 0:n.children)?n:[],e=(l={type:l.name.substr(0,3),id:"",items:fe("item",l.children).map((l=>{var n={media:Te(l=l.children)};return ve(n,"id","guid",l),ve(n,"title","title",l),ve(n,"link","link",l),ve(n,"description","description",l),(l=ge("pubDate",l)||ge("dc:date",l))&&(n.pubDate=new Date(l)),n}))},ve(l,"title","title",n),ve(l,"link","link",n),ve(l,"description","description",n),ge("lastBuildDate",n));return e&&(l.updated=new Date(e)),ve(l,"author","managingEditor",n,!0),l})(l):null}}),Ce=function(){return(Ce=Object.assign||function(l){for(var n,e=1,t=arguments.length;el.length-3)&&((n=l.charCodeAt(e+1))>=xe.LowerA&&n<=xe.LowerZ||n>=xe.UpperA&&n<=xe.UpperZ||n===xe.Exclamation)&&l.includes(">",e+2)}!function(l){l[l.LowerA=97]="LowerA",l[l.LowerZ=122]="LowerZ",l[l.UpperA=65]="UpperA",l[l.UpperZ=90]="UpperZ",l[l.Exclamation=33]="Exclamation"}(xe=xe||{});var He=Object.prototype.hasOwnProperty,Ge=/\s+/,je="data-",qe={null:null,true:!0,false:!1},Ye=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Ke=/^{[^]*}$|^\[[^]*]$/;function We(l,n,e){if(l&&S$1(l))return null==l.attribs&&(l.attribs={}),n?He.call(l.attribs,n)?!e&&Ye.test(n)?n:l.attribs[n]:"option"===l.name&&"value"===n?Oe(l.children):"input"!==l.name||"radio"!==l.attribs.type&&"checkbox"!==l.attribs.type||"value"!==n?void 0:"on":l.attribs}function Ve(l,n,e){null===e?Ze(l,n):l.attribs[n]="".concat(e)}function $e(l,n,e){return n in l?l[n]:!e&&Ye.test(n)?void 0!==We(l,n,!1):We(l,n,e)}function Qe(l,n,e,t){n in l?l[n]=e:Ve(l,n,!t&&Ye.test(n)?e?"":null:"".concat(e))}function ze(l,n,e){null==l.data&&(l.data={}),"object"==typeof n?Object.assign(l.data,n):"string"==typeof n&&void 0!==e&&(l.data[n]=e)}function Xe(l,n){for(var e,t,u=null==n?(e=Object.keys(l.attribs).filter((function(l){return l.startsWith(je)}))).map((function(l){return l.slice(je.length).replace(/[_.-](\w|$)/g,(function(l,n){return n.toUpperCase()}))})):(e=[je+n.replace(/[A-Z]/g,"-$&").toLowerCase()],[n]),r=0;r").parent().html();case"innerHTML":return this.html();default:return $e(t,l,this.options.xmlMode)}}if("object"==typeof l||void 0!==n){if("function"!=typeof n)return Be(this,(function(t){S$1(t)&&("object"==typeof l?Object.keys(l).forEach((function(n){var u=l[n];Qe(t,n,u,e.options.xmlMode)})):Qe(t,l,n,e.options.xmlMode))}));if("object"==typeof l)throw new Error("Bad combination of arguments.");return Be(this,(function(t,u){S$1(t)&&Qe(t,l,n.call(t,u,$e(t,l,e.options.xmlMode)),e.options.xmlMode)}))}},data:function(l,n){var e=this[0];if(e&&S$1(e))return null==e.data&&(e.data={}),l?"object"==typeof l||void 0!==n?(Be(this,(function(e){S$1(e)&&("object"==typeof l?ze(e,l):ze(e,l,n))})),this):He.call(e.data,l)?e.data[l]:Xe(e,l):Xe(e)},val:function(l){var n=0===arguments.length,e=this[0];if(!e||!S$1(e))return n?void 0:this;switch(e.name){case"textarea":return this.text(l);case"select":var t=this.find("option:selected");if(n)return this.attr("multiple")?t.toArray().map((function(l){return Oe(l.children)})):t.attr("value");if(null!=this.attr("multiple")||"object"!=typeof l){this.find("option").removeAttr("selected");for(var u="object"!=typeof l?[l]:l,r=0;r>10|55296,1023&t|56320)}function lt(l){return l.replace(it$1,ut)}function ht(l){return 39===l||34===l}function ft(l){return 32===l||9===l||10===l||12===l||13===l}function pt(l){var n=[],e=dt(n,""+l,0);if(e>=1)):l.type===et$1.Pseudo&&(l.data?"has"===l.name||"contains"===l.name?e=0:Array.isArray(l.data)?(e=Math.min(...l.data.map((l=>Math.min(...l.map(vt))))))<0&&(e=0):e=2:e=3),e}const yt=/[-[\]{}()*+?.,\\^$|#\s]/g;function St(l){return l.replace(yt,"\\$&")}const Ct=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Nt(l,n){return"boolean"==typeof l.ignoreCase?l.ignoreCase:"quirks"===l.ignoreCase?!!n.quirksMode:!n.xmlMode&&Ct.has(l.name)}const bt={equals(l,n,e){const t=e.adapter,u=n.name;let r=n.value;return Nt(n,e)?(r=r.toLowerCase(),n=>{var e=t.getAttributeValue(n,u);return null!=e&&e.length===r.length&&e.toLowerCase()===r&&l(n)}):n=>t.getAttributeValue(n,u)===r&&l(n)},hyphen(l,n,e){const t=e.adapter,u=n.name;let r=n.value;const i=r.length;return Nt(n,e)?(r=r.toLowerCase(),function(n){var e=t.getAttributeValue(n,u);return null!=e&&(e.length===i||"-"===e.charAt(i))&&e.substr(0,i).toLowerCase()===r&&l(n)}):function(n){var e=t.getAttributeValue(n,u);return null!=e&&(e.length===i||"-"===e.charAt(i))&&e.substr(0,i)===r&&l(n)}},element(l,n,e){const t=e.adapter,{name:u,value:r}=n;if(/\s/.test(r))return mt.falseFunc;const i=new RegExp(`(?:^|\\s)${St(r)}(?:$|\\s)`,Nt(n,e)?"i":"");return function(n){var e=t.getAttributeValue(n,u);return null!=e&&e.length>=r.length&&i.test(e)&&l(n)}},exists:(l,{name:n},{adapter:e})=>t=>e.hasAttrib(t,n)&&l(t),start(l,n,e){const t=e.adapter,u=n.name;let r=n.value;const i=r.length;return 0===i?mt.falseFunc:Nt(n,e)?(r=r.toLowerCase(),n=>{var e=t.getAttributeValue(n,u);return null!=e&&e.length>=i&&e.substr(0,i).toLowerCase()===r&&l(n)}):n=>{var e;return!(null==(e=t.getAttributeValue(n,u))||!e.startsWith(r))&&l(n)}},end(l,n,e){const t=e.adapter,u=n.name;let r=n.value;const i=-r.length;return 0==i?mt.falseFunc:Nt(n,e)?(r=r.toLowerCase(),n=>{var e;return(null==(e=t.getAttributeValue(n,u))?void 0:e.substr(i).toLowerCase())===r&&l(n)}):n=>{var e;return!(null==(e=t.getAttributeValue(n,u))||!e.endsWith(r))&&l(n)}},any(l,n,e){const t=e.adapter,{name:u,value:r}=n;if(""===r)return mt.falseFunc;if(Nt(n,e)){const n=new RegExp(St(r),"i");return function(e){var i=t.getAttributeValue(e,u);return null!=i&&i.length>=r.length&&n.test(i)&&l(e)}}return n=>{var e;return!(null==(e=t.getAttributeValue(n,u))||!e.includes(r))&&l(n)}},not(l,n,e){const t=e.adapter,u=n.name;let r=n.value;return""===r?n=>!!t.getAttributeValue(n,u)&&l(n):Nt(n,e)?(r=r.toLowerCase(),n=>{var e=t.getAttributeValue(n,u);return(null==e||e.length!==r.length||e.toLowerCase()!==r)&&l(n)}):n=>t.getAttributeValue(n,u)!==r&&l(n)}},It=new Set([9,10,12,13,32]),Ot="0".charCodeAt(0),kt="9".charCodeAt(0);function Lt(l){return function(l){const n=l[0],e=l[1]-1;if(e<0&&n<=0)return mt.falseFunc;if(-1===n)return l=>l<=e;if(0===n)return l=>l===e;if(1===n)return e<0?mt.trueFunc:l=>l>=e;const t=Math.abs(n),u=(e%t+t)%t;return 1l>=e&&l%t==u:l=>l<=e&&l%t==u}(function(l){if("even"===(l=l.trim().toLowerCase()))return[2,0];if("odd"===l)return[2,1];let n=0,e=0,t=r(),u=i();if(n=Ot&&l.charCodeAt(n)<=kt;)t=10*t+(l.charCodeAt(n)-Ot),n++;return n===e?null:t}function s(){for(;n{var t=n.getParent(e);return null!=t&&n.isTag(t)&&l(e)}}const Rt={contains:(l,n,{adapter:e})=>function(t){return l(t)&&e.getText(t).includes(n)},icontains(l,n,{adapter:e}){const t=n.toLowerCase();return function(n){return l(n)&&e.getText(n).toLowerCase().includes(t)}},"nth-child"(l,n,{adapter:e,equals:t}){const u=Lt(n);return u===mt.falseFunc?mt.falseFunc:u===mt.trueFunc?Dt(l,e):function(n){var r=e.getSiblings(n);let i=0;for(let l=0;ln=>{var t=e.getParent(n);return(null==t||!e.isTag(t))&&l(n)},scope(l,n,e,t){const u=e.equals;return t&&0!==t.length?1===t.length?n=>u(t[0],n)&&l(n):n=>t.includes(n)&&l(n):Rt.root(l,n,e)},hover:wt("isHovered"),visited:wt("isVisited"),active:wt("isActive")};function wt(l){return function(n,e,{adapter:t}){const u=t[l];return"function"!=typeof u?mt.falseFunc:function(l){return u(l)&&n(l)}}}const xt={empty:(l,{adapter:n})=>!n.getChildren(l).some((l=>n.isTag(l)||""!==n.getText(l))),"first-child"(l,{adapter:n,equals:e}){var t;return n.prevElementSibling?null==n.prevElementSibling(l):null!=(t=n.getSiblings(l).find((l=>n.isTag(l))))&&e(l,t)},"last-child"(l,{adapter:n,equals:e}){var t=n.getSiblings(l);for(let u=t.length-1;0<=u;u--){if(e(l,t[u]))return!0;if(n.isTag(t[u]))break}return!1},"first-of-type"(l,{adapter:n,equals:e}){var t=n.getSiblings(l),u=n.getName(l);for(let i=0;ie(l,u)||!n.isTag(u)||n.getName(u)!==t))},"only-child":(l,{adapter:n,equals:e})=>n.getSiblings(l).every((t=>e(l,t)||!n.isTag(t)))};function Mt(l,n,e,t){if(null===e){if(l.length>t)throw new Error(`Pseudo-class :${n} requires an argument`)}else if(l.length===t)throw new Error(`Pseudo-class :${n} doesn't have any arguments`)}const Pt={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",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])"},Bt={};function Ft(l,n){var e=n.getSiblings(l);return e.length<=1||(l=e.indexOf(l))<0||l===e.length-1?[]:e.slice(l+1).filter(n.isTag)}function Ut(l){return{xmlMode:!!l.xmlMode,lowerCaseAttributeNames:!!l.lowerCaseAttributeNames,lowerCaseTags:!!l.lowerCaseTags,quirksMode:!!l.quirksMode,cacheResults:!!l.cacheResults,pseudos:l.pseudos,adapter:l.adapter,equals:l.equals}}const Ht=(l,n,e,t,u)=>{const r=u(n,Ut(e),t);return r===mt.trueFunc?l:r===mt.falseFunc?mt.falseFunc:n=>r(n)&&l(n)},Gt={is:Ht,matches:Ht,where:Ht,not(l,n,e,t,u){const r=u(n,Ut(e),t);return r===mt.falseFunc?l:r===mt.trueFunc?mt.falseFunc:n=>!r(n)&&l(n)},has(l,n,e,t,u){const r=e.adapter,i=Ut(e),s=(i.relativeSelector=!0,n.some((l=>l.some(Tt)))?[Bt]:void 0),a=u(n,i,s);if(a===mt.falseFunc)return mt.falseFunc;const o=function(l,n){return l===mt.falseFunc?mt.falseFunc:e=>n.isTag(e)&&l(e)}(a,r);if(s&&a!==mt.trueFunc){const{shouldTestNextSiblings:n=!1}=a;return e=>{if(!l(e))return!1;s[0]=e;var t=r.getChildren(e);e=n?[...t,...Ft(e,r)]:t;return r.existsOne(o,e)}}return n=>l(n)&&r.existsOne(o,r.getChildren(n))}};function jt(l,n){return(l=n.getParent(l))&&n.isTag(l)?l:null}function qt(l,n,e,t,u){const{adapter:r,equals:i}=e;switch(n.type){case et$1.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case et$1.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case et$1.Attribute:if(null!=n.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return e.xmlMode&&!e.lowerCaseAttributeNames||(n.name=n.name.toLowerCase()),bt[n.action](l,n,e);case et$1.Pseudo:return function(l,n,e,t,u){const{name:r,data:i}=n;if(Array.isArray(i)){if(r in Gt)return Gt[r](l,i,e,t,u);throw new Error(`Unknown pseudo-class :${r}(${i})`)}const s=null==(n=e.pseudos)?void 0:n[r],a="string"==typeof s?s:Pt[r];if("string"==typeof a){if(null!=i)throw new Error(`Pseudo ${r} doesn't have any arguments`);const n=pt(a);return Gt.is(l,n,e,t,u)}if("function"==typeof s)return Mt(s,r,i,1),n=>s(n,i)&&l(n);if(r in Rt)return Rt[r](l,i,e,t);if(r in xt){const n=xt[r];return Mt(n,r,i,2),t=>n(t,e,i)&&l(t)}throw new Error("Unknown pseudo-class :"+r)}(l,n,e,t,u);case et$1.Tag:{if(null!=n.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let t=n.name;return e.xmlMode&&!e.lowerCaseTags||(t=t.toLowerCase()),function(n){return r.getName(n)===t&&l(n)}}case et$1.Descendant:{if(!1===e.cacheResults||"undefined"==typeof WeakSet)return function(n){let e=n;for(;e=jt(e,r);)if(l(e))return!0;return!1};const n=new WeakSet;return function(e){let t=e;for(;t=jt(t,r);)if(!n.has(t)){if(r.isTag(t)&&l(t))return!0;n.add(t)}return!1}}case"_flexibleDescendant":return function(n){let e=n;do{if(l(e))return!0}while(e=jt(e,r));return!1};case et$1.Parent:return function(n){return r.getChildren(n).some((n=>r.isTag(n)&&l(n)))};case et$1.Child:return function(n){return null!=(n=r.getParent(n))&&r.isTag(n)&&l(n)};case et$1.Sibling:return function(n){var e=r.getSiblings(n);for(let u=0;ul.some(Yt))))}const Kt={type:et$1.Descendant},Wt={type:"_flexibleDescendant"},Vt={type:et$1.Pseudo,name:"scope",data:null};function $t(l,n,e){l.forEach(gt),e=null!=(i=n.context)?i:e;const t=Array.isArray(e),u=e&&(Array.isArray(e)?e:[e]);if(!1!==n.relativeSelector)!function(l,{adapter:n},e){var t=!(null==e||!e.every((l=>{var e=n.isTag(l)&&n.getParent(l);return l===Bt||e&&n.isTag(e)})));for(const n of l){if(!(00{if(2<=l.length){const[n,e]=l;n.type===et$1.Pseudo&&"scope"===n.name&&(t&&e.type===et$1.Descendant?l[1]=Wt:e.type!==et$1.Adjacent&&e.type!==et$1.Sibling||(r=!0))}return function(l,n,e){return l.reduce(((l,t)=>l===mt.falseFunc?mt.falseFunc:qt(l,t,n,e,$t)),null!=(l=n.rootFunc)?l:mt.trueFunc)}(l,n,u)})).reduce(Qt,mt.falseFunc);return i.shouldTestNextSiblings=r,i}function Qt(l,n){return n===mt.falseFunc||l===mt.trueFunc?l:l===mt.falseFunc||n===mt.trueFunc?n:function(e){return l(e)||n(e)}}const zt=(l,n)=>l===n,Xt={adapter:Se,equals:zt},Zt=(Jt=$t,function(l,n,e){return n=function(l){var n;return null==(l=null!=l?l:Xt).adapter&&(l.adapter=Se),null==l.equals&&(l.equals=null!=(n=null==(n=l.adapter)?void 0:n.equals)?n:zt),l}(n),Jt(l,n,e)});function en(l,n,e=!1){return e&&(l=function(l,n){const e=Array.isArray(l)?l.slice(0):[l],t=e.length;for(let l=0;ll.some(nn))))}function rn(l){var n=[],e=[];for(const t of l)(t.some(nn)?n:e).push(t);return[e,n]}const sn={type:et$1.Universal,namespace:null},an={type:et$1.Pseudo,name:"scope",data:null};function on(l,n,e={}){return cn([l],n,e)}function cn(l,n,e={}){var t;return"function"==typeof n?l.some(n):([n,t]=rn(pt(n)),00S$1(l)&&!r.has(l))):n;if(0===s.length)break;var i=hn(t,n,e);if(i.length)if(r)i.forEach((l=>r.add(l)));else{if(l===u.length-1)return i;r=new Set(i)}}return void 0!==r?r.size===n.length?n:n.filter((l=>r.has(l))):[]}function hn(l,n,e){var t,u;return l.some(ot$1)?(t=null!=(t=e.root)?t:function(l){for(;l.parent;)l=l.parent;return l}(n[0]),u={...e,context:n,relativeSelector:!1},l.push(an),fn(t,l,u,!0,n.length)):fn(n,l,e,!1,n.length)}function fn(l,n,e,t,u){var r=n.findIndex(nn),i=n.slice(0,r),s=n[r],a=n.length-1===r?u:1/0;if(0===(a=function(l,n,e){var t=null!=n?parseInt(n,10):NaN;switch(l){case"first":return 1;case"nth":case"eq":return isFinite(t)?0<=t?t+1:1/0:0;case"lt":return isFinite(t)?0<=t?Math.min(t,e):1/0:0;case"gt":return isFinite(t)?1/0:0;case"odd":return 2*e;case"even":return 2*e-1;case"last":case"not":return 1/0}}(s.name,s.data,a)))return[];t=(0!==i.length||Array.isArray(l)?0===i.length?(Array.isArray(l)?l:[l]).filter(S$1):t||i.some(ot$1)?pn(l,[i],e,a):mn(l,[i],e):J$1(l).filter(S$1)).slice(0,a);let o=function(l,n,e,t){var u="string"==typeof e?parseInt(e,10):NaN;switch(l){case"first":case"lt":return n;case"last":return 0n%2==0));case"odd":return n.filter(((l,n)=>n%2==1));case"not":{const l=new Set(ln(e,n,t));return n.filter((n=>!l.has(n)))}}}(s.name,t,s.data,e);if(0===o.length||n.length===r+1)return o;if(l=(i=n.slice(r+1)).some(ot$1)){if(ot$1(i[0])){const l=i[0].type;l!==et$1.Sibling&&l!==et$1.Adjacent||(o=en(o,Se,!0)),i.unshift(sn)}e={...e,relativeSelector:!1,rootFunc:l=>o.includes(l)}}else e.rootFunc&&e.rootFunc!==_t&&(e={...e,rootFunc:_t});return i.some(nn)?fn(o,i,e,!1,u):l?pn(o,[i],e,u):mn(o,[i],e)}function pn(l,n,e,t){return dn(l,Zt(n,e,l),t)}function dn(l,n,e=1/0){return ae((l=>S$1(l)&&n(l)),en(l,Se,n.shouldTestNextSiblings),!0,e)}function mn(l,n,e){return 0===(l=(Array.isArray(l)?l:[l]).filter(S$1)).length||(n=Zt(n,e))===_t?l:l.filter(n)}var _n=function(l,n,e){if(e||2===arguments.length)for(var t,u=0,r=n.length;ufn(n,l,e,!0,1/0))),l.length&&t.push(pn(n,l,e,1/0)),0===t.length?[]:1===t.length?t[0]:me(t.reduce(((l,n)=>[...l,...n]))))}(l,e,t)))):this._make([])},parent:Sn,parents:Cn,parentsUntil:Nn,closest:function(l){var n,e,t,u=[];return l&&(e={xmlMode:this.options.xmlMode,root:null==(n=this._root)?void 0:n[0]},t="string"==typeof l?function(n){return on(n,l,e)}:xn(l),Be(this,(function(l){for(;l&&S$1(l);){if(t(l,0)){u.includes(l)||u.push(l);break}l=l.parent}}))),this._make(u)},next:bn,nextAll:In,nextUntil:On,prev:kn,prevAll:Ln,prevUntil:Dn,siblings:Rn,children:wn,contents:function(){var l=this.toArray().reduce((function(l,n){return k$1(n)?l.concat(n.children):l}),[]);return this._make(l)},each:function(l){for(var n=0,e=this.length;n=l.length?null:l[n+e],a=0;athis.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(l,n){0this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(l,this.pos);for(let n=0;n=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,ar.EOF):(l=this.html.charCodeAt(l))===ar.CARRIAGE_RETURN?ar.LINE_FEED:l}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ar.EOF;let l=this.html.charCodeAt(this.pos);return l===ar.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ar.LINE_FEED):l===ar.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,pr(l)&&(l=this._processSurrogate(l)),null===this.handler.onParseError||31䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(l){return l.charCodeAt(0)})))})),Nr=(yr(Cr),Sr((function(l,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(l){return l.charCodeAt(0)})))}))),br=(yr(Nr),Sr((function(l,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceCodePoint=n.fromCodePoint=void 0;var e,t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function u(l){var n;return 55296<=l&&l<=57343||1114111>>10&1023|55296),l=56320|1023&l),n+String.fromCharCode(l)},n.replaceCodePoint=u,n.default=function(l){return(0,n.fromCodePoint)(u(l))}}))),Ir=(yr(br),br.replaceCodePoint,br.fromCodePoint,Cr),Or=Nr,kr=br,Lr=Sr((function(l,n){var e=gr&&gr.__createBinding||(Object.create?function(l,n,e,t){void 0===t&&(t=e);var u=Object.getOwnPropertyDescriptor(n,e);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(l,t,u)}:function(l,n,e,t){l[t=void 0===t?e:t]=n[e]}),t=gr&&gr.__setModuleDefault||(Object.create?function(l,n){Object.defineProperty(l,"default",{enumerable:!0,value:n})}:function(l,n){l.default=n}),u=gr&&gr.__importStar||function(l){if(l&&l.__esModule)return l;var n={};if(null!=l)for(var u in l)"default"!==u&&Object.prototype.hasOwnProperty.call(l,u)&&e(n,l,u);return t(n,l),n},r=gr&&gr.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},i=(Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXML=n.decodeHTMLStrict=n.decodeHTMLAttribute=n.decodeHTML=n.determineBranch=n.EntityDecoder=n.DecodingMode=n.BinTrieFlags=n.fromCodePoint=n.replaceCodePoint=n.decodeCodePoint=n.xmlDecodeTree=n.htmlDecodeTree=void 0,r(Ir)),s=(r=(n.htmlDecodeTree=i.default,r(Or)),n.xmlDecodeTree=r.default,u(kr));n.decodeCodePoint=s.default;var a,o,c,h,f=kr;function p(l){return l>=a.ZERO&&l<=a.NINE}Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return f.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return f.fromCodePoint}}),function(l){l[l.NUM=35]="NUM",l[l.SEMI=59]="SEMI",l[l.EQUALS=61]="EQUALS",l[l.ZERO=48]="ZERO",l[l.NINE=57]="NINE",l[l.LOWER_A=97]="LOWER_A",l[l.LOWER_F=102]="LOWER_F",l[l.LOWER_X=120]="LOWER_X",l[l.LOWER_Z=122]="LOWER_Z",l[l.UPPER_A=65]="UPPER_A",l[l.UPPER_F=70]="UPPER_F",l[l.UPPER_Z=90]="UPPER_Z"}(a={}),function(l){l[l.VALUE_LENGTH=49152]="VALUE_LENGTH",l[l.BRANCH_LENGTH=16256]="BRANCH_LENGTH",l[l.JUMP_TABLE=127]="JUMP_TABLE"}(o=n.BinTrieFlags||(n.BinTrieFlags={})),function(l){l[l.EntityStart=0]="EntityStart",l[l.NumericStart=1]="NumericStart",l[l.NumericDecimal=2]="NumericDecimal",l[l.NumericHex=3]="NumericHex",l[l.NamedEntity=4]="NamedEntity"}(c={}),function(l){l[l.Legacy=0]="Legacy",l[l.Strict=1]="Strict",l[l.Attribute=2]="Attribute"}(h=n.DecodingMode||(n.DecodingMode={}));var d=function(){function l(l,n,e){this.decodeTree=l,this.emitCodePoint=n,this.errors=e,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=h.Strict}return l.prototype.startEntity=function(l){this.decodeMode=l,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},l.prototype.write=function(l,n){switch(this.state){case c.EntityStart:return l.charCodeAt(n)===a.NUM?(this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(l,n+1)):(this.state=c.NamedEntity,this.stateNamedEntity(l,n));case c.NumericStart:return this.stateNumericStart(l,n);case c.NumericDecimal:return this.stateNumericDecimal(l,n);case c.NumericHex:return this.stateNumericHex(l,n);case c.NamedEntity:return this.stateNamedEntity(l,n)}},l.prototype.stateNumericStart=function(l,n){return n>=l.length?-1:(32|l.charCodeAt(n))===a.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(l,n+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(l,n))},l.prototype.addToNumericResult=function(l,n,e,t){n!==e&&(e-=n,this.result=this.result*Math.pow(t,e)+parseInt(l.substr(n,e),t),this.consumed+=e)},l.prototype.stateNumericHex=function(l,n){for(var e=n;n=a.UPPER_A&&t<=a.UPPER_F||a.LOWER_A<=t&&t<=a.LOWER_F))return this.addToNumericResult(l,e,n,16),this.emitNumericEntity(t,3);n+=1}return this.addToNumericResult(l,e,n,16),-1},l.prototype.stateNumericDecimal=function(l,n){for(var e=n;n>14;n>14)){if(r===a.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==h.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},l.prototype.emitNotTerminatedNamedEntity=function(){var l=this.result,n=(this.decodeTree[l]&o.VALUE_LENGTH)>>14;return this.emitNamedEntityData(l,n,this.consumed),null!=(l=this.errors)&&l.missingSemicolonAfterCharacterReference(),this.consumed},l.prototype.emitNamedEntityData=function(l,n,e){var t=this.decodeTree;return this.emitCodePoint(1===n?t[l]&~o.VALUE_LENGTH:t[l+1],e),3===n&&this.emitCodePoint(t[l+2],e),e},l.prototype.end=function(){var l;switch(this.state){case c.NamedEntity:return 0===this.result||this.decodeMode===h.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null!=(l=this.errors)&&l.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}},l}();function m(l){var n="",e=new d(l,(function(l){return n+=(0,s.fromCodePoint)(l)}));return function(l,t){for(var u=0,r=0;0<=(r=l.indexOf("&",r));){n+=l.slice(u,r),e.startEntity(t);var i=e.write(l,r+1);if(i<0){u=r+e.end();break}u=r+i,r=0===i?u+1:u}var s=n+l.slice(u);return n="",s}}function E(l,n,e,t){var u=(n&o.BRANCH_LENGTH)>>7;n&=o.JUMP_TABLE;if(0==u)return 0!=n&&t===n?e:-1;if(n)return(n=t-n)<0||u<=n?-1:l[e+n]-1;for(var r=e,i=r+u-1;r<=i;){var s=r+i>>>1,a=l[s];if(a=ar.DIGIT_0&&l<=ar.DIGIT_9}function Zr(l){return l>=ar.LATIN_CAPITAL_A&&l<=ar.LATIN_CAPITAL_Z}function Jr(l){return function(l){return l>=ar.LATIN_SMALL_A&&l<=ar.LATIN_SMALL_Z}(l)||Zr(l)}function ei(l){return Jr(l)||Xr(l)}function ti(l){return l>=ar.LATIN_CAPITAL_A&&l<=ar.LATIN_CAPITAL_F}function ni(l){return l>=ar.LATIN_SMALL_A&&l<=ar.LATIN_SMALL_F}function ri(l){return l+32}function ii(l){return l===ar.SPACE||l===ar.LINE_FEED||l===ar.TABULATION||l===ar.FORM_FEED}function si(l){return ii(l)||l===ar.SOLIDUS||l===ar.GREATER_THAN_SIGN}class ai{constructor(l,n){this.options=l,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Qr.DATA,this.returnState=Qr.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Er(n),this.currentLocation=this.getCurrentLocation(-1)}_err(l){var n,e;null!=(e=(n=this.handler).onParseError)&&e.call(n,this.preprocessor.getError(l))}getCurrentLocation(l){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-l,startOffset:this.preprocessor.offset-l,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;var l=this._consume();this._ensureHibernation()||this._callState(l)}this.inLoop=!1}}pause(){this.paused=!0}resume(l){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused)||null==l||l()}write(l,n,e){this.active=!0,this.preprocessor.write(l,n),this._runParsingLoop(),this.paused||null==e||e()}insertHtmlAtCurrentPos(l){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(l),this._runParsingLoop()}_ensureHibernation(){return!(!this.preprocessor.endOfChunkHit||(this._unconsume(this.consumedAfterSnapshot),this.active=!1))}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(l){this.consumedAfterSnapshot-=l,this.preprocessor.retreat(l)}_reconsumeInState(l,n){this.state=l,this._callState(n)}_advanceBy(l){this.consumedAfterSnapshot+=l;for(let n=0;n>14)-1;if(l!==ar.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((u=this.preprocessor.peek(1))===ar.EQUALS_SIGN||ei(u))?(n=[ar.AMPERSAND],r+=i):(n=0==i?[Gr[r]&~Rr.VALUE_LENGTH]:1==i?[Gr[++r]]:[Gr[++r],Gr[++r]],e=0,t=l!==ar.SEMICOLON),0==i){this._consume();break}}}return this._unconsume(e),t&&!this.preprocessor.endOfChunkHit&&this._err(_r.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===Qr.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Qr.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Qr.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(l){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(l):this._emitCodePoint(l)}_callState(l){switch(this.state){case Qr.DATA:this._stateData(l);break;case Qr.RCDATA:this._stateRcdata(l);break;case Qr.RAWTEXT:this._stateRawtext(l);break;case Qr.SCRIPT_DATA:this._stateScriptData(l);break;case Qr.PLAINTEXT:this._statePlaintext(l);break;case Qr.TAG_OPEN:this._stateTagOpen(l);break;case Qr.END_TAG_OPEN:this._stateEndTagOpen(l);break;case Qr.TAG_NAME:this._stateTagName(l);break;case Qr.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(l);break;case Qr.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(l);break;case Qr.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(l);break;case Qr.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(l);break;case Qr.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(l);break;case Qr.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(l);break;case Qr.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(l);break;case Qr.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(l);break;case Qr.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(l);break;case Qr.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(l);break;case Qr.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(l);break;case Qr.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(l);break;case Qr.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(l);break;case Qr.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(l);break;case Qr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(l);break;case Qr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(l);break;case Qr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(l);break;case Qr.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(l);break;case Qr.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(l);break;case Qr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(l);break;case Qr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(l);break;case Qr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(l);break;case Qr.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(l);break;case Qr.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(l);break;case Qr.ATTRIBUTE_NAME:this._stateAttributeName(l);break;case Qr.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(l);break;case Qr.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(l);break;case Qr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(l);break;case Qr.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(l);break;case Qr.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(l);break;case Qr.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(l);break;case Qr.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(l);break;case Qr.BOGUS_COMMENT:this._stateBogusComment(l);break;case Qr.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(l);break;case Qr.COMMENT_START:this._stateCommentStart(l);break;case Qr.COMMENT_START_DASH:this._stateCommentStartDash(l);break;case Qr.COMMENT:this._stateComment(l);break;case Qr.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(l);break;case Qr.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(l);break;case Qr.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(l);break;case Qr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(l);break;case Qr.COMMENT_END_DASH:this._stateCommentEndDash(l);break;case Qr.COMMENT_END:this._stateCommentEnd(l);break;case Qr.COMMENT_END_BANG:this._stateCommentEndBang(l);break;case Qr.DOCTYPE:this._stateDoctype(l);break;case Qr.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(l);break;case Qr.DOCTYPE_NAME:this._stateDoctypeName(l);break;case Qr.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(l);break;case Qr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(l);break;case Qr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(l);break;case Qr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(l);break;case Qr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(l);break;case Qr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(l);break;case Qr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(l);break;case Qr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(l);break;case Qr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(l);break;case Qr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(l);break;case Qr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(l);break;case Qr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(l);break;case Qr.BOGUS_DOCTYPE:this._stateBogusDoctype(l);break;case Qr.CDATA_SECTION:this._stateCdataSection(l);break;case Qr.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(l);break;case Qr.CDATA_SECTION_END:this._stateCdataSectionEnd(l);break;case Qr.CHARACTER_REFERENCE:this._stateCharacterReference(l);break;case Qr.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(l);break;case Qr.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(l);break;case Qr.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(l);break;case Qr.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(l);break;case Qr.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(l);break;case Qr.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(l);break;case Qr.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(l);break;default:throw new Error("Unknown state")}}_stateData(l){switch(l){case ar.LESS_THAN_SIGN:this.state=Qr.TAG_OPEN;break;case ar.AMPERSAND:this.returnState=Qr.DATA,this.state=Qr.CHARACTER_REFERENCE;break;case ar.NULL:this._err(_r.unexpectedNullCharacter),this._emitCodePoint(l);break;case ar.EOF:this._emitEOFToken();break;default:this._emitCodePoint(l)}}_stateRcdata(l){switch(l){case ar.AMPERSAND:this.returnState=Qr.RCDATA,this.state=Qr.CHARACTER_REFERENCE;break;case ar.LESS_THAN_SIGN:this.state=Qr.RCDATA_LESS_THAN_SIGN;break;case ar.NULL:this._err(_r.unexpectedNullCharacter),this._emitChars(sr);break;case ar.EOF:this._emitEOFToken();break;default:this._emitCodePoint(l)}}_stateRawtext(l){switch(l){case ar.LESS_THAN_SIGN:this.state=Qr.RAWTEXT_LESS_THAN_SIGN;break;case ar.NULL:this._err(_r.unexpectedNullCharacter),this._emitChars(sr);break;case ar.EOF:this._emitEOFToken();break;default:this._emitCodePoint(l)}}_stateScriptData(l){switch(l){case ar.LESS_THAN_SIGN:this.state=Qr.SCRIPT_DATA_LESS_THAN_SIGN;break;case ar.NULL:this._err(_r.unexpectedNullCharacter),this._emitChars(sr);break;case ar.EOF:this._emitEOFToken();break;default:this._emitCodePoint(l)}}_statePlaintext(l){switch(l){case ar.NULL:this._err(_r.unexpectedNullCharacter),this._emitChars(sr);break;case ar.EOF:this._emitEOFToken();break;default:this._emitCodePoint(l)}}_stateTagOpen(l){if(Jr(l))this._createStartTagToken(),this.state=Qr.TAG_NAME,this._stateTagName(l);else switch(l){case ar.EXCLAMATION_MARK:this.state=Qr.MARKUP_DECLARATION_OPEN;break;case ar.SOLIDUS:this.state=Qr.END_TAG_OPEN;break;case ar.QUESTION_MARK:this._err(_r.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Qr.BOGUS_COMMENT,this._stateBogusComment(l);break;case ar.EOF:this._err(_r.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(_r.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Qr.DATA,this._stateData(l)}}_stateEndTagOpen(l){if(Jr(l))this._createEndTagToken(),this.state=Qr.TAG_NAME,this._stateTagName(l);else switch(l){case ar.GREATER_THAN_SIGN:this._err(_r.missingEndTagName),this.state=Qr.DATA;break;case ar.EOF:this._err(_r.eofBeforeTagName),this._emitChars("");break;case ar.NULL:this._err(_r.unexpectedNullCharacter),this.state=Qr.SCRIPT_DATA_ESCAPED,this._emitChars(sr);break;case ar.EOF:this._err(_r.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Qr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(l)}}_stateScriptDataEscapedLessThanSign(l){l===ar.SOLIDUS?this.state=Qr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Jr(l)?(this._emitChars("<"),this.state=Qr.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(l)):(this._emitChars("<"),this.state=Qr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(l))}_stateScriptDataEscapedEndTagOpen(l){Jr(l)?(this.state=Qr.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(l)):(this._emitChars("");break;case ar.NULL:this._err(_r.unexpectedNullCharacter),this.state=Qr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(sr);break;case ar.EOF:this._err(_r.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Qr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(l)}}_stateScriptDataDoubleEscapedLessThanSign(l){l===ar.SOLIDUS?(this.state=Qr.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Qr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(l))}_stateScriptDataDoubleEscapeEnd(l){if(this.preprocessor.startsWith(lr,!1)&&si(this.preprocessor.peek(lr.length))){this._emitCodePoint(l);for(let l=0;l=l;){var n=this.current;0[l.name,l.value])));let t=0;for(let n=0;nl.get(n.name)===n.value))&&3<=(t+=1)&&this.entries.splice(u.idx,1)}}}}insertMarker(){this.entries.unshift(Ei)}pushElement(l,n){this._ensureNoahArkCondition(l),this.entries.unshift({type:_i.Element,element:l,token:n})}insertElementAfterBookmark(l,n){var e=this.entries.indexOf(this.bookmark);this.entries.splice(e,0,{type:_i.Element,element:l,token:n})}removeEntry(l){0<=(l=this.entries.indexOf(l))&&this.entries.splice(l,1)}clearToLastMarker(){var l=this.entries.indexOf(Ei);0<=l?this.entries.splice(0,l+1):this.entries.length=0}getElementEntryInScopeWithTagName(l){var n=this.entries.find((n=>n.type===_i.Marker||this.treeAdapter.getTagName(n.element)===l));return n&&n.type===_i.Element?n:null}getElementEntry(l){return this.entries.find((n=>n.type===_i.Element&&n.element===l))}}function Ai(l){return{nodeName:"#text",value:l,parentNode:null}}const gi={createDocument:()=>({nodeName:"#document",mode:Br.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(l,n,e)=>({nodeName:l,tagName:l,attrs:e,namespaceURI:n,childNodes:[],parentNode:null}),createCommentNode:l=>({nodeName:"#comment",data:l,parentNode:null}),appendChild(l,n){l.childNodes.push(n),n.parentNode=l},insertBefore(l,n,e){e=l.childNodes.indexOf(e),l.childNodes.splice(e,0,n),n.parentNode=l},setTemplateContent(l,n){l.content=n},getTemplateContent:l=>l.content,setDocumentType(l,n,e,t){const u=l.childNodes.find((l=>"#documentType"===l.nodeName));if(u)u.name=n,u.publicId=e,u.systemId=t;else{const u={nodeName:"#documentType",name:n,publicId:e,systemId:t,parentNode:null};gi.appendChild(l,u)}},setDocumentMode(l,n){l.mode=n},getDocumentMode:l=>l.mode,detachNode(l){var n;l.parentNode&&(n=l.parentNode.childNodes.indexOf(l),l.parentNode.childNodes.splice(n,1),l.parentNode=null)},insertText(l,n){if(0l.name)));for(let t=0;tl.childNodes[0],getChildNodes:l=>l.childNodes,getParentNode:l=>l.parentNode,getAttrList:l=>l.attrs,getTagName:l=>l.tagName,getNamespaceURI:l=>l.namespaceURI,getTextNodeContent:l=>l.value,getCommentNodeContent:l=>l.data,getDocumentTypeNodeName:l=>l.name,getDocumentTypeNodePublicId:l=>l.publicId,getDocumentTypeNodeSystemId:l=>l.systemId,isTextNode:l=>"#text"===l.nodeName,isCommentNode:l=>"#comment"===l.nodeName,isDocumentTypeNode:l=>"#documentType"===l.nodeName,isElementNode:l=>Object.prototype.hasOwnProperty.call(l,"tagName"),setNodeSourceCodeLocation(l,n){l.sourceCodeLocation=n},getNodeSourceCodeLocation:l=>l.sourceCodeLocation,updateNodeSourceCodeLocation(l,n){l.sourceCodeLocation={...l.sourceCodeLocation,...n}}},vi="html",yi="about:legacy-compat",Si="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ci=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ni=[...Ci,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],bi=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ii=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Oi=[...Ii,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ki(l,n){return n.some((n=>l.startsWith(n)))}const Li={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Di="definitionurl",Ri="definitionURL",wi=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((l=>[l.toLowerCase(),l]))),xi=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Mr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Mr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Mr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Mr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Mr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Mr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Mr.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Mr.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Mr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Mr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Mr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Mr.XMLNS}]]),Mi=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((l=>[l.toLowerCase(),l]))),Pi=new Set([Ur.B,Ur.BIG,Ur.BLOCKQUOTE,Ur.BODY,Ur.BR,Ur.CENTER,Ur.CODE,Ur.DD,Ur.DIV,Ur.DL,Ur.DT,Ur.EM,Ur.EMBED,Ur.H1,Ur.H2,Ur.H3,Ur.H4,Ur.H5,Ur.H6,Ur.HEAD,Ur.HR,Ur.I,Ur.IMG,Ur.LI,Ur.LISTING,Ur.MENU,Ur.META,Ur.NOBR,Ur.OL,Ur.P,Ur.PRE,Ur.RUBY,Ur.S,Ur.SMALL,Ur.SPAN,Ur.STRONG,Ur.STRIKE,Ur.SUB,Ur.SUP,Ur.TABLE,Ur.TT,Ur.U,Ur.UL,Ur.VAR]);function Bi(l){for(let n=0;nthis.treeAdapter.isDocumentTypeNode(l)));n&&this.treeAdapter.setNodeSourceCodeLocation(n,l.location)}}_attachElementToTree(l,n){if(this.options.sourceCodeLocationInfo&&(n=n&&{...n,startTag:n},this.treeAdapter.setNodeSourceCodeLocation(l,n)),this._shouldFosterParentOnInsertion())this._fosterParentElement(l);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,l)}}_appendElement(l,n){n=this.treeAdapter.createElement(l.tagName,n,l.attrs),this._attachElementToTree(n,l.location)}_insertElement(l,n){n=this.treeAdapter.createElement(l.tagName,n,l.attrs),this._attachElementToTree(n,l.location),this.openElements.push(n,l.tagID)}_insertFakeElement(l,n){l=this.treeAdapter.createElement(l,Mr.HTML,[]),this._attachElementToTree(l,null),this.openElements.push(l,n)}_insertTemplate(l){var n=this.treeAdapter.createElement(l.tagName,Mr.HTML,l.attrs),e=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,e),this._attachElementToTree(n,l.location),this.openElements.push(n,l.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null)}_insertFakeRootElement(){var l=this.treeAdapter.createElement(Fr.HTML,Mr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,null),this.treeAdapter.appendChild(this.openElements.current,l),this.openElements.push(l,Ur.HTML)}_appendCommentNode(l,n){var e=this.treeAdapter.createCommentNode(l.data);this.treeAdapter.appendChild(n,e),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,l.location)}_insertCharacters(l){let n,e;if(this._shouldFosterParentOnInsertion()?(({parent:n,beforeElement:e}=this._findFosterParentingLocation()),e?this.treeAdapter.insertTextBefore(n,l.chars,e):this.treeAdapter.insertText(n,l.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,l.chars)),l.location){var t=this.treeAdapter.getChildNodes(n),u=e?t.lastIndexOf(e):t.length;u=t[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:n,endCol:e,endOffset:t}=l.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:n,endCol:e,endOffset:t})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,l.location)}}_adoptNodes(l,n){for(let e=this.treeAdapter.getFirstChild(l);e;e=this.treeAdapter.getFirstChild(l))this.treeAdapter.detachNode(e),this.treeAdapter.appendChild(n,e)}_setEndLocation(l,n){var e,t;this.treeAdapter.getNodeSourceCodeLocation(l)&&n.location&&(e=n.location,t=this.treeAdapter.getTagName(l),t=n.type===Tr.END_TAG&&t===n.tagName?{endTag:{...e},endLine:e.endLine,endCol:e.endCol,endOffset:e.endOffset}:{endLine:e.startLine,endCol:e.startCol,endOffset:e.startOffset},this.treeAdapter.updateNodeSourceCodeLocation(l,t))}shouldProcessStartTagTokenInForeignContent(l){if(!this.currentNotInHTML)return!1;let n,e;return 0===this.openElements.stackTop&&this.fragmentContext?(n=this.fragmentContext,e=this.fragmentContextID):({current:n,currentTagId:e}=this.openElements),(l.tagID!==Ur.SVG||this.treeAdapter.getTagName(n)!==Fr.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(n)!==Mr.MATHML)&&(this.tokenizer.inForeignNode||(l.tagID===Ur.MGLYPH||l.tagID===Ur.MALIGNMARK)&&!this._isIntegrationPoint(e,n,Mr.HTML))}_processToken(l){switch(l.type){case Tr.CHARACTER:this.onCharacter(l);break;case Tr.NULL_CHARACTER:this.onNullCharacter(l);break;case Tr.COMMENT:this.onComment(l);break;case Tr.DOCTYPE:this.onDoctype(l);break;case Tr.START_TAG:this._processStartTag(l);break;case Tr.END_TAG:this.onEndTag(l);break;case Tr.EOF:this.onEof(l);break;case Tr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(l)}}_isIntegrationPoint(l,n,e){return Hi(l,this.treeAdapter.getNamespaceURI(n),this.treeAdapter.getAttrList(n),e)}_reconstructActiveFormattingElements(){const l=this.activeFormattingElements.entries.length;if(l){var n=this.activeFormattingElements.entries.findIndex((l=>l.type===_i.Marker||this.openElements.contains(l.element)));for(let e=n<0?l-1:n-1;0<=e;e--){const l=this.activeFormattingElements.entries[e];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Yi.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ur.P),this.openElements.popUntilTagNamePopped(Ur.P)}_resetInsertionMode(){for(let l=this.openElements.stackTop;0<=l;l--)switch(0===l&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[l]){case Ur.TR:return void(this.insertionMode=Yi.IN_ROW);case Ur.TBODY:case Ur.THEAD:case Ur.TFOOT:return void(this.insertionMode=Yi.IN_TABLE_BODY);case Ur.CAPTION:return void(this.insertionMode=Yi.IN_CAPTION);case Ur.COLGROUP:return void(this.insertionMode=Yi.IN_COLUMN_GROUP);case Ur.TABLE:return void(this.insertionMode=Yi.IN_TABLE);case Ur.BODY:return void(this.insertionMode=Yi.IN_BODY);case Ur.FRAMESET:return void(this.insertionMode=Yi.IN_FRAMESET);case Ur.SELECT:return void this._resetInsertionModeForSelect(l);case Ur.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Ur.HTML:return void(this.insertionMode=this.headElement?Yi.AFTER_HEAD:Yi.BEFORE_HEAD);case Ur.TD:case Ur.TH:if(0l===Pr.COLOR||l===Pr.SIZE||l===Pr.FACE))||Pi.has(n)}(n)?(e=l._getAdjustedCurrentElement(),(e=l.treeAdapter.getNamespaceURI(e))===Mr.MATHML?Bi(n):e===Mr.SVG&&(function(l){var n=Mi.get(l.tagName);null!=n&&(l.tagName=n,l.tagID=qr(l.tagName))}(n),Fi(n)),Ui(n),n.selfClosing?l._appendElement(n,e):l._insertElement(n,e),n.ackSelfClosing=!0):(qs(l),l._startTagOutsideForeignContent(n))}(this,l):this._startTagOutsideForeignContent(l)}_startTagOutsideForeignContent(l){switch(this.insertionMode){case Yi.INITIAL:is(this,l);break;case Yi.BEFORE_HTML:!function(l,n){n.tagID===Ur.HTML?(l._insertElement(n,Mr.HTML),l.insertionMode=Yi.BEFORE_HEAD):ss(l,n)}(this,l);break;case Yi.BEFORE_HEAD:!function(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.HEAD:l._insertElement(n,Mr.HTML),l.headElement=l.openElements.current,l.insertionMode=Yi.IN_HEAD;break;default:as(l,n)}}(this,l);break;case Yi.IN_HEAD:os(this,l);break;case Yi.IN_HEAD_NO_SCRIPT:!function(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.BASEFONT:case Ur.BGSOUND:case Ur.HEAD:case Ur.LINK:case Ur.META:case Ur.NOFRAMES:case Ur.STYLE:os(l,n);break;case Ur.NOSCRIPT:l._err(n,_r.nestedNoscriptInHead);break;default:ls(l,n)}}(this,l);break;case Yi.AFTER_HEAD:!function(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.BODY:l._insertElement(n,Mr.HTML),l.framesetOk=!1,l.insertionMode=Yi.IN_BODY;break;case Ur.FRAMESET:l._insertElement(n,Mr.HTML),l.insertionMode=Yi.IN_FRAMESET;break;case Ur.BASE:case Ur.BASEFONT:case Ur.BGSOUND:case Ur.LINK:case Ur.META:case Ur.NOFRAMES:case Ur.SCRIPT:case Ur.STYLE:case Ur.TEMPLATE:case Ur.TITLE:l._err(n,_r.abandonedHeadElementChild),l.openElements.push(l.headElement,Ur.HEAD),os(l,n),l.openElements.remove(l.headElement);break;case Ur.HEAD:l._err(n,_r.misplacedStartTagForHeadElement);break;default:hs(l,n)}}(this,l);break;case Yi.IN_BODY:As(this,l);break;case Yi.IN_TABLE:Cs(this,l);break;case Yi.IN_TABLE_TEXT:ks(this,l);break;case Yi.IN_CAPTION:!function(l,n){var e=n.tagID;Ls.has(e)?l.openElements.hasInTableScope(Ur.CAPTION)&&(l.openElements.generateImpliedEndTags(),l.openElements.popUntilTagNamePopped(Ur.CAPTION),l.activeFormattingElements.clearToLastMarker(),l.insertionMode=Yi.IN_TABLE,Cs(l,n)):As(l,n)}(this,l);break;case Yi.IN_COLUMN_GROUP:Ds(this,l);break;case Yi.IN_TABLE_BODY:ws(this,l);break;case Yi.IN_ROW:Ms(this,l);break;case Yi.IN_CELL:!function(l,n){var e=n.tagID;Ls.has(e)?(l.openElements.hasInTableScope(Ur.TD)||l.openElements.hasInTableScope(Ur.TH))&&(l._closeTableCell(),Ms(l,n)):As(l,n)}(this,l);break;case Yi.IN_SELECT:Bs(this,l);break;case Yi.IN_SELECT_IN_TABLE:!function(l,n){var e=n.tagID;e===Ur.CAPTION||e===Ur.TABLE||e===Ur.TBODY||e===Ur.TFOOT||e===Ur.THEAD||e===Ur.TR||e===Ur.TD||e===Ur.TH?(l.openElements.popUntilTagNamePopped(Ur.SELECT),l._resetInsertionMode(),l._processStartTag(n)):Bs(l,n)}(this,l);break;case Yi.IN_TEMPLATE:!function(l,n){switch(n.tagID){case Ur.BASE:case Ur.BASEFONT:case Ur.BGSOUND:case Ur.LINK:case Ur.META:case Ur.NOFRAMES:case Ur.SCRIPT:case Ur.STYLE:case Ur.TEMPLATE:case Ur.TITLE:os(l,n);break;case Ur.CAPTION:case Ur.COLGROUP:case Ur.TBODY:case Ur.TFOOT:case Ur.THEAD:l.tmplInsertionModeStack[0]=Yi.IN_TABLE,l.insertionMode=Yi.IN_TABLE,Cs(l,n);break;case Ur.COL:l.tmplInsertionModeStack[0]=Yi.IN_COLUMN_GROUP,l.insertionMode=Yi.IN_COLUMN_GROUP,Ds(l,n);break;case Ur.TR:l.tmplInsertionModeStack[0]=Yi.IN_TABLE_BODY,l.insertionMode=Yi.IN_TABLE_BODY,ws(l,n);break;case Ur.TD:case Ur.TH:l.tmplInsertionModeStack[0]=Yi.IN_ROW,l.insertionMode=Yi.IN_ROW,Ms(l,n);break;default:l.tmplInsertionModeStack[0]=Yi.IN_BODY,l.insertionMode=Yi.IN_BODY,As(l,n)}}(this,l);break;case Yi.AFTER_BODY:!function(l,n){(n.tagID===Ur.HTML?As:Gs)(l,n)}(this,l);break;case Yi.IN_FRAMESET:!function(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.FRAMESET:l._insertElement(n,Mr.HTML);break;case Ur.FRAME:l._appendElement(n,Mr.HTML),n.ackSelfClosing=!0;break;case Ur.NOFRAMES:os(l,n)}}(this,l);break;case Yi.AFTER_FRAMESET:!function(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.NOFRAMES:os(l,n)}}(this,l);break;case Yi.AFTER_AFTER_BODY:!function(l,n){(n.tagID===Ur.HTML?As:js)(l,n)}(this,l);break;case Yi.AFTER_AFTER_FRAMESET:!function(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.NOFRAMES:os(l,n)}}(this,l)}}onEndTag(l){this.skipNextNewLine=!1,this.currentToken=l,this.currentNotInHTML?function(l,n){if(n.tagID===Ur.P||n.tagID===Ur.BR)return qs(l),l._endTagOutsideForeignContent(n);for(let t=l.openElements.stackTop;0=qi;!e||s?(s&&l.activeFormattingElements.removeEntry(e),l.openElements.remove(i)):(i=Zi(l,e),t===n&&(l.activeFormattingElements.bookmark=e),l.treeAdapter.detachNode(t),l.treeAdapter.appendChild(i,t),t=i)}return t}function Zi(l,n){var e=l.treeAdapter.getNamespaceURI(n.element);e=l.treeAdapter.createElement(n.token.tagName,e,n.token.attrs);return l.openElements.replace(n.element,e),n.element=e}function Ji(l,n,e){var t,u=qr(l.treeAdapter.getTagName(n));l._isElementCausesFosterParenting(u)?l._fosterParentElement(e):(t=l.treeAdapter.getNamespaceURI(n),u===Ur.TEMPLATE&&t===Mr.HTML&&(n=l.treeAdapter.getTemplateContent(n)),l.treeAdapter.appendChild(n,e))}function es(l,n,e){var t=l.treeAdapter.getNamespaceURI(e.element),u=e.token;t=l.treeAdapter.createElement(u.tagName,t,u.attrs);l._adoptNodes(n,t),l.treeAdapter.appendChild(n,t),l.activeFormattingElements.insertElementAfterBookmark(t,u),l.activeFormattingElements.removeEntry(e),l.openElements.remove(e.element),l.openElements.insertAfter(n,t,u.tagID)}function ts(l,n){for(let r=0;r=e;t--)l._setEndLocation(l.openElements.items[t],n);if(!l.fragmentContext&&0<=l.openElements.stackTop){const e=l.openElements.items[0],t=l.treeAdapter.getNodeSourceCodeLocation(e);if(t&&!t.endTag&&(l._setEndLocation(e,n),1<=l.openElements.stackTop)){const e=l.openElements.items[1],t=l.treeAdapter.getNodeSourceCodeLocation(e);t&&!t.endTag&&l._setEndLocation(e,n)}}}}function is(l,n){l._err(n,_r.missingDoctype,!0),l.treeAdapter.setDocumentMode(l.document,Br.QUIRKS),l.insertionMode=Yi.BEFORE_HTML,l._processToken(n)}function ss(l,n){l._insertFakeRootElement(),l.insertionMode=Yi.BEFORE_HEAD,l._processToken(n)}function as(l,n){l._insertFakeElement(Fr.HEAD,Ur.HEAD),l.headElement=l.openElements.current,l.insertionMode=Yi.IN_HEAD,l._processToken(n)}function os(l,n){switch(n.tagID){case Ur.HTML:As(l,n);break;case Ur.BASE:case Ur.BASEFONT:case Ur.BGSOUND:case Ur.LINK:case Ur.META:l._appendElement(n,Mr.HTML),n.ackSelfClosing=!0;break;case Ur.TITLE:l._switchToTextParsing(n,zr.RCDATA);break;case Ur.NOSCRIPT:l.options.scriptingEnabled?l._switchToTextParsing(n,zr.RAWTEXT):(l._insertElement(n,Mr.HTML),l.insertionMode=Yi.IN_HEAD_NO_SCRIPT);break;case Ur.NOFRAMES:case Ur.STYLE:l._switchToTextParsing(n,zr.RAWTEXT);break;case Ur.SCRIPT:l._switchToTextParsing(n,zr.SCRIPT_DATA);break;case Ur.TEMPLATE:l._insertTemplate(n),l.activeFormattingElements.insertMarker(),l.framesetOk=!1,l.insertionMode=Yi.IN_TEMPLATE,l.tmplInsertionModeStack.unshift(Yi.IN_TEMPLATE);break;case Ur.HEAD:l._err(n,_r.misplacedStartTagForHeadElement);break;default:us(l,n)}}function cs(l,n){0=n&&l.openElements.shortenToLength(n);break}if(l._isSpecialElement(u,r))break}}function vs(l,n){switch(n.tagID){case Ur.A:case Ur.B:case Ur.I:case Ur.S:case Ur.U:case Ur.EM:case Ur.TT:case Ur.BIG:case Ur.CODE:case Ur.FONT:case Ur.NOBR:case Ur.SMALL:case Ur.STRIKE:case Ur.STRONG:ts(l,n);break;case Ur.P:!function(l){l.openElements.hasInButtonScope(Ur.P)||l._insertFakeElement(Fr.P,Ur.P),l._closePElement()}(l);break;case Ur.DL:case Ur.UL:case Ur.OL:case Ur.DIR:case Ur.DIV:case Ur.NAV:case Ur.PRE:case Ur.MAIN:case Ur.MENU:case Ur.ASIDE:case Ur.BUTTON:case Ur.CENTER:case Ur.FIGURE:case Ur.FOOTER:case Ur.HEADER:case Ur.HGROUP:case Ur.DIALOG:case Ur.ADDRESS:case Ur.ARTICLE:case Ur.DETAILS:case Ur.SECTION:case Ur.SUMMARY:case Ur.LISTING:case Ur.FIELDSET:case Ur.BLOCKQUOTE:case Ur.FIGCAPTION:!function(l,n){n=n.tagID,l.openElements.hasInScope(n)&&(l.openElements.generateImpliedEndTags(),l.openElements.popUntilTagNamePopped(n))}(l,n);break;case Ur.LI:!function(l){l.openElements.hasInListItemScope(Ur.LI)&&(l.openElements.generateImpliedEndTagsWithExclusion(Ur.LI),l.openElements.popUntilTagNamePopped(Ur.LI))}(l);break;case Ur.DD:case Ur.DT:!function(l,n){n=n.tagID,l.openElements.hasInScope(n)&&(l.openElements.generateImpliedEndTagsWithExclusion(n),l.openElements.popUntilTagNamePopped(n))}(l,n);break;case Ur.H1:case Ur.H2:case Ur.H3:case Ur.H4:case Ur.H5:case Ur.H6:!function(l){l.openElements.hasNumberedHeaderInScope()&&(l.openElements.generateImpliedEndTags(),l.openElements.popUntilNumberedHeaderPopped())}(l);break;case Ur.BR:!function(l){l._reconstructActiveFormattingElements(),l._insertFakeElement(Fr.BR,Ur.BR),l.openElements.pop(),l.framesetOk=!1}(l);break;case Ur.BODY:!function(l,n){var e;l.openElements.hasInScope(Ur.BODY)&&(l.insertionMode=Yi.AFTER_BODY,l.options.sourceCodeLocationInfo)&&(e=l.openElements.tryPeekProperlyNestedBodyElement())&&l._setEndLocation(e,n)}(l,n);break;case Ur.HTML:!function(l,n){l.openElements.hasInScope(Ur.BODY)&&(l.insertionMode=Yi.AFTER_BODY,Hs(l,n))}(l,n);break;case Ur.FORM:!function(l){var n=0$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function t(l){for(var t="",u=0;null!==(r=n.xmlReplacer.exec(l));){var r=r.index,i=l.charCodeAt(r),s=e.get(i);u=void 0!==s?(t+=l.substring(u,r)+s,r+1):(t+="".concat(l.substring(u,r),"&#x").concat((0,n.getCodePoint)(l,r).toString(16),";"),n.xmlReplacer.lastIndex+=Number(55296==(64512&i)))}return t+l.substr(u)}function u(l,n){return function(e){for(var t,u=0,r="";t=l.exec(e);)u!==t.index&&(r+=e.substring(u,t.index)),r+=n.get(t[0].charCodeAt(0)),u=t.index+1;return r+e.substring(u)}}n.getCodePoint=null!=String.prototype.codePointAt?function(l,n){return l.codePointAt(n)}:function(l,n){return 55296==(64512&l.charCodeAt(n))?1024*(l.charCodeAt(n)-55296)+l.charCodeAt(n+1)-56320+65536:l.charCodeAt(n)},n.encodeXML=t,n.escape=t,n.escapeUTF8=u(/[&<>'"]/g,e),n.escapeAttribute=u(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),n.escapeText=u(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})),Ks=(yr(Ys),Ys.escapeText),Ws=Ys.escapeAttribute;Ys.escapeUTF8,Ys.escape,Ys.encodeXML,Ys.getCodePoint,Ys.xmlReplacer;const Vs=new Set([Fr.AREA,Fr.BASE,Fr.BASEFONT,Fr.BGSOUND,Fr.BR,Fr.COL,Fr.EMBED,Fr.FRAME,Fr.HR,Fr.IMG,Fr.INPUT,Fr.KEYGEN,Fr.LINK,Fr.META,Fr.PARAM,Fr.SOURCE,Fr.TRACK,Fr.WBR]),$s={treeAdapter:gi,scriptingEnabled:!0};function Qs(l,n){return zs(l,{...$s,...n})}function zs(l,n){return n.treeAdapter.isElementNode(l)?function(l,n){var e=n.treeAdapter.getTagName(l);return`<${e}${function(l,{treeAdapter:n}){let e="";for(const t of n.getAttrList(l)){if(e+=" ",t.namespace)switch(t.namespace){case Mr.XML:e+="xml:"+t.name;break;case Mr.XMLNS:"xmlns"!==t.name&&(e+="xmlns:"),e+=t.name;break;case Mr.XLINK:e+="xlink:"+t.name;break;default:e+=t.prefix+":"+t.name}else e+=t.name;e+=`="${Ws(t.value)}"`}return e}(l,n)}>`+(function(l,n){return n.treeAdapter.isElementNode(l)&&n.treeAdapter.getNamespaceURI(l)===Mr.HTML&&Vs.has(n.treeAdapter.getTagName(l))}(l,n)?"":function(l,n){let e="";l=n.treeAdapter.isElementNode(l)&&n.treeAdapter.getTagName(l)===Fr.TEMPLATE&&n.treeAdapter.getNamespaceURI(l)===Mr.HTML?n.treeAdapter.getTemplateContent(l):l;var t=n.treeAdapter.getChildNodes(l);if(t)for(const l of t)e+=zs(l,n);return e}(l,n)+``)}(l,n):n.treeAdapter.isTextNode(l)?function(l,n){var e=n.treeAdapter,t=e.getTextNodeContent(l),u=(l=e.getParentNode(l))&&e.isElementNode(l)&&e.getTagName(l);return u&&e.getNamespaceURI(l)===Mr.HTML&&(e=u,l=n.scriptingEnabled,Vr.has(e)||l&&e===Fr.NOSCRIPT)?t:Ks(t)}(l,n):n.treeAdapter.isCommentNode(l)?function(l,{treeAdapter:n}){return`\x3c!--${n.getCommentNodeContent(l)}--\x3e`}(l,n):n.treeAdapter.isDocumentTypeNode(l)?function(l,{treeAdapter:n}){return``}(l,n):""}function Xs(l){return new _$1(l)}function Zs(l){var n=l.includes('"')?"'":'"';return n+l+n}const Js={isCommentNode:b$1,isElementNode:S$1,isTextNode:N$1,createDocument(){var l=new v$1([]);return l["x-mode"]=Br.NO_QUIRKS,l},createDocumentFragment:()=>new v$1([]),createElement(l,n,e){var t=Object.create(null),u=Object.create(null),r=Object.create(null);for(let l=0;lnew E$1(l),appendChild(l,n){var e=l.children[l.children.length-1];e&&((e.next=n).prev=e),l.children.push(n),n.parent=l},insertBefore(l,n,e){var t=l.children.indexOf(e),u=e.prev;u&&((u.next=n).prev=u),(e.prev=n).next=e,l.children.splice(t,0,n),n.parent=l},setTemplateContent(l,n){Js.appendChild(l,n)},getTemplateContent:l=>l.children[0],setDocumentType(l,n,e,t){var u=function(l,n,e){let t="!DOCTYPE ";return l&&(t+=l),n?t+=" PUBLIC "+Zs(n):e&&(t+=" SYSTEM"),e&&(t+=" "+Zs(e)),t}(n,e,t);let r=l.children.find((l=>I$1(l)&&"!doctype"===l.name));r?r.data=null!=u?u:null:(r=new T$1("!doctype",u),Js.appendChild(l,r)),r["x-name"]=null!=n?n:void 0,r["x-publicId"]=null!=e?e:void 0,r["x-systemId"]=null!=t?t:void 0},setDocumentMode(l,n){l["x-mode"]=n},getDocumentMode:l=>l["x-mode"],detachNode(l){var n,e,t;l.parent&&(n=l.parent.children.indexOf(l),({prev:e,next:t}=l),l.prev=null,l.next=null,e&&(e.next=t),t&&(t.prev=e),l.parent.children.splice(n,1),l.parent=null)},insertText(l,n){var e=l.children[l.children.length-1];e&&N$1(e)?e.data+=n:Js.appendChild(l,Xs(n))},insertTextBefore(l,n,e){var t=l.children[l.children.indexOf(e)-1];t&&N$1(t)?t.data+=n:Js.insertBefore(l,Xs(n),e)},adoptAttributes(l,n){for(let t=0;tl.children[0],getChildNodes:l=>l.children,getParentNode:l=>l.parent,getAttrList:l=>l.attributes,getTagName:l=>l.name,getNamespaceURI:l=>l.namespace,getTextNodeContent:l=>l.data,getCommentNodeContent:l=>l.data,getDocumentTypeNodeName:l=>null!=(l=l["x-name"])?l:"",getDocumentTypeNodePublicId:l=>null!=(l=l["x-publicId"])?l:"",getDocumentTypeNodeSystemId:l=>null!=(l=l["x-systemId"])?l:"",isDocumentTypeNode:l=>I$1(l)&&"!doctype"===l.name,setNodeSourceCodeLocation(l,n){n&&(l.startIndex=n.startOffset,l.endIndex=n.endOffset),l.sourceCodeLocation=n},getNodeSourceCodeLocation:l=>l.sourceCodeLocation,updateNodeSourceCodeLocation(l,n){null!=n.endOffset&&(l.endIndex=n.endOffset),l.sourceCodeLocation={...l.sourceCodeLocation,...n}}};var ea=function(l,n,e){if(2===arguments.length)for(var t,u=0,r=n.length;u=na.Zero&&l<=na.Nine}!function(l){l[l.Tab=9]="Tab",l[l.NewLine=10]="NewLine",l[l.FormFeed=12]="FormFeed",l[l.CarriageReturn=13]="CarriageReturn",l[l.Space=32]="Space",l[l.ExclamationMark=33]="ExclamationMark",l[l.Number=35]="Number",l[l.Amp=38]="Amp",l[l.SingleQuote=39]="SingleQuote",l[l.DoubleQuote=34]="DoubleQuote",l[l.Dash=45]="Dash",l[l.Slash=47]="Slash",l[l.Zero=48]="Zero",l[l.Nine=57]="Nine",l[l.Semi=59]="Semi",l[l.Lt=60]="Lt",l[l.Eq=61]="Eq",l[l.Gt=62]="Gt",l[l.Questionmark=63]="Questionmark",l[l.UpperA=65]="UpperA",l[l.LowerA=97]="LowerA",l[l.UpperF=70]="UpperF",l[l.LowerF=102]="LowerF",l[l.UpperZ=90]="UpperZ",l[l.LowerZ=122]="LowerZ",l[l.LowerX=120]="LowerX",l[l.OpeningSquareBracket=91]="OpeningSquareBracket"}(na=na||{}),function(l){l[l.Text=1]="Text",l[l.BeforeTagName=2]="BeforeTagName",l[l.InTagName=3]="InTagName",l[l.InSelfClosingTag=4]="InSelfClosingTag",l[l.BeforeClosingTagName=5]="BeforeClosingTagName",l[l.InClosingTagName=6]="InClosingTagName",l[l.AfterClosingTagName=7]="AfterClosingTagName",l[l.BeforeAttributeName=8]="BeforeAttributeName",l[l.InAttributeName=9]="InAttributeName",l[l.AfterAttributeName=10]="AfterAttributeName",l[l.BeforeAttributeValue=11]="BeforeAttributeValue",l[l.InAttributeValueDq=12]="InAttributeValueDq",l[l.InAttributeValueSq=13]="InAttributeValueSq",l[l.InAttributeValueNq=14]="InAttributeValueNq",l[l.BeforeDeclaration=15]="BeforeDeclaration",l[l.InDeclaration=16]="InDeclaration",l[l.InProcessingInstruction=17]="InProcessingInstruction",l[l.BeforeComment=18]="BeforeComment",l[l.CDATASequence=19]="CDATASequence",l[l.InSpecialComment=20]="InSpecialComment",l[l.InCommentLike=21]="InCommentLike",l[l.BeforeSpecialS=22]="BeforeSpecialS",l[l.SpecialStartSequence=23]="SpecialStartSequence",l[l.InSpecialTag=24]="InSpecialTag",l[l.BeforeEntity=25]="BeforeEntity",l[l.BeforeNumericEntity=26]="BeforeNumericEntity",l[l.InNamedEntity=27]="InNamedEntity",l[l.InNumericEntity=28]="InNumericEntity",l[l.InHexEntity=29]="InHexEntity"}(ra=ra||{}),function(l){l[l.NoValue=0]="NoValue",l[l.Unquoted=1]="Unquoted",l[l.Single=2]="Single",l[l.Double=3]="Double"}(ia=ia||{});const ua={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class la{constructor({xmlMode:l=!1,decodeEntities:n=!0},e){this.cbs=e,this.state=ra.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ra.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=l,this.decodeEntities=n,this.entityTrie=l?Hr:Gr}reset(){this.state=ra.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ra.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(l){this.offset+=this.buffer.length,this.buffer=l,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ra.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&l===na.Amp&&(this.state=ra.BeforeEntity)}stateSpecialStartSequence(l){var n=this.sequenceIndex===this.currentSequence.length;if(n?oa(l):(32|l)===this.currentSequence[this.sequenceIndex]){if(!n)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=ra.InTagName,this.stateInTagName(l)}stateInSpecialTag(l){if(this.sequenceIndex===this.currentSequence.length){if(l===na.Gt||aa(l)){var n=this.index-this.currentSequence.length;if(this.sectionStart=na.LowerA&&l<=na.LowerZ||l>=na.UpperA&&l<=na.UpperZ}(l)}startSpecial(l,n){this.isSpecial=!0,this.currentSequence=l,this.sequenceIndex=n,this.state=ra.SpecialStartSequence}stateBeforeTagName(l){var n;l===na.ExclamationMark?(this.state=ra.BeforeDeclaration,this.sectionStart=this.index+1):l===na.Questionmark?(this.state=ra.InProcessingInstruction,this.sectionStart=this.index+1):this.isTagStartChar(l)?(n=32|l,this.sectionStart=this.index,this.xmlMode||n!==ua.TitleEnd[2]?this.state=this.xmlMode||n!==ua.ScriptEnd[2]?ra.InTagName:ra.BeforeSpecialS:this.startSpecial(ua.TitleEnd,3)):l===na.Slash?this.state=ra.BeforeClosingTagName:(this.state=ra.Text,this.stateText(l))}stateInTagName(l){oa(l)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ra.BeforeAttributeName,this.stateBeforeAttributeName(l))}stateBeforeClosingTagName(l){aa(l)||(l===na.Gt?this.state=ra.Text:(this.state=this.isTagStartChar(l)?ra.InClosingTagName:ra.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(l){l!==na.Gt&&!aa(l)||(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ra.AfterClosingTagName,this.stateAfterClosingTagName(l))}stateAfterClosingTagName(l){l!==na.Gt&&!this.fastForwardTo(na.Gt)||(this.state=ra.Text,this.baseState=ra.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(l){l===na.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ra.InSpecialTag,this.sequenceIndex=0):this.state=ra.Text,this.baseState=this.state,this.sectionStart=this.index+1):l===na.Slash?this.state=ra.InSelfClosingTag:aa(l)||(this.state=ra.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(l){l===na.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ra.Text,this.baseState=ra.Text,this.sectionStart=this.index+1,this.isSpecial=!1):aa(l)||(this.state=ra.BeforeAttributeName,this.stateBeforeAttributeName(l))}stateInAttributeName(l){l!==na.Eq&&!oa(l)||(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ra.AfterAttributeName,this.stateAfterAttributeName(l))}stateAfterAttributeName(l){l===na.Eq?this.state=ra.BeforeAttributeValue:l===na.Slash||l===na.Gt?(this.cbs.onattribend(ia.NoValue,this.index),this.state=ra.BeforeAttributeName,this.stateBeforeAttributeName(l)):aa(l)||(this.cbs.onattribend(ia.NoValue,this.index),this.state=ra.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(l){l===na.DoubleQuote?(this.state=ra.InAttributeValueDq,this.sectionStart=this.index+1):l===na.SingleQuote?(this.state=ra.InAttributeValueSq,this.sectionStart=this.index+1):aa(l)||(this.sectionStart=this.index,this.state=ra.InAttributeValueNq,this.stateInAttributeValueNoQuotes(l))}handleInAttributeValue(l,n){l===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===na.DoubleQuote?ia.Double:ia.Single,this.index),this.state=ra.BeforeAttributeName):this.decodeEntities&&l===na.Amp&&(this.baseState=this.state,this.state=ra.BeforeEntity)}stateInAttributeValueDoubleQuotes(l){this.handleInAttributeValue(l,na.DoubleQuote)}stateInAttributeValueSingleQuotes(l){this.handleInAttributeValue(l,na.SingleQuote)}stateInAttributeValueNoQuotes(l){aa(l)||l===na.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ia.Unquoted,this.index),this.state=ra.BeforeAttributeName,this.stateBeforeAttributeName(l)):this.decodeEntities&&l===na.Amp&&(this.baseState=this.state,this.state=ra.BeforeEntity)}stateBeforeDeclaration(l){l===na.OpeningSquareBracket?(this.state=ra.CDATASequence,this.sequenceIndex=0):this.state=l===na.Dash?ra.BeforeComment:ra.InDeclaration}stateInDeclaration(l){l!==na.Gt&&!this.fastForwardTo(na.Gt)||(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ra.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(l){l!==na.Gt&&!this.fastForwardTo(na.Gt)||(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ra.Text,this.sectionStart=this.index+1)}stateBeforeComment(l){l===na.Dash?(this.state=ra.InCommentLike,this.currentSequence=ua.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ra.InDeclaration}stateInSpecialComment(l){l!==na.Gt&&!this.fastForwardTo(na.Gt)||(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ra.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(l){var n=32|l;n===ua.ScriptEnd[3]?this.startSpecial(ua.ScriptEnd,4):n===ua.StyleEnd[3]?this.startSpecial(ua.StyleEnd,4):(this.state=ra.InTagName,this.stateInTagName(l))}stateBeforeEntity(l){this.entityExcess=1,this.entityResult=0,l===na.Number?this.state=ra.BeforeNumericEntity:l!==na.Amp&&(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=ra.InNamedEntity,this.stateInNamedEntity(l))}stateInNamedEntity(l){if(this.entityExcess+=1,this.trieIndex=Dr(this.entityTrie,this.trieCurrent,this.trieIndex+1,l),this.trieIndex<0)this.emitNamedEntity(),this.index--;else{this.trieCurrent=this.entityTrie[this.trieIndex];var n=this.trieCurrent&Rr.VALUE_LENGTH;if(n)if(n=(n>>14)-1,this.allowLegacyEntity()||l===na.Semi){const l=this.index-this.entityExcess+1;l>this.sectionStart&&this.emitPartial(this.sectionStart,l),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0==n&&this.emitNamedEntity()}else this.trieIndex+=n}}emitNamedEntity(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&Rr.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~Rr.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(l){(32|l)===na.LowerX?(this.entityExcess++,this.state=ra.InHexEntity):(this.state=ra.InNumericEntity,this.stateInNumericEntity(l))}emitNumericEntity(l){var n=this.index-this.entityExcess-1;2+n+Number(this.state===ra.InHexEntity)!==this.index&&(n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.sectionStart=this.index+Number(l),this.emitCodePoint(xr(this.entityResult))),this.state=this.baseState}stateInNumericEntity(l){l===na.Semi?this.emitNumericEntity(!0):ca(l)?(this.entityResult=10*this.entityResult+(l-na.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(l){l===na.Semi?this.emitNumericEntity(!0):ca(l)?(this.entityResult=16*this.entityResult+(l-na.Zero),this.entityExcess++):function(l){return l>=na.UpperA&&l<=na.UpperF||l>=na.LowerA&&l<=na.LowerF}(l)?(this.entityResult=16*this.entityResult+((32|l)-na.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===ra.Text||this.baseState===ra.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ra.Text||this.state===ra.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==ra.InAttributeValueDq&&this.state!==ra.InAttributeValueSq&&this.state!==ra.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=this.buffers[0].length;)this.shiftBuffer();let e=this.buffers[0].slice(l-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),e+=this.buffers[0].slice(0,n-this.bufferOffset);return e}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(l){var n,e;this.ended?null!=(e=(n=this.cbs).onerror)&&e.call(n,new Error(".write() after done!")):(this.buffers.push(l),this.tokenizer.running&&(this.tokenizer.write(l),this.writeIndex++))}end(l){var n,e;this.ended?null!=(e=(n=this.cbs).onerror)&&e.call(n,new Error(".end() after done!")):(l&&this.write(l),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex":">"},u=/[&"'<>]/g,r=l.exports={};function i(l,n){return e.hasOwnProperty.call(l,n)}function s(l){return t[l]}function a(l,n,e){var t,u,r,i,s;return l instanceof Error&&(l=(u=l).name+": "+u.message),Object.setPrototypeOf?(t=new Error(l),Object.setPrototypeOf(t,a.prototype)):(t=this,Object.defineProperty(t,"message",{enumerable:!1,writable:!0,value:l})),Object.defineProperty(t,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(t,this.constructor),i=u?(r=Object.getOwnPropertyDescriptor(u,"stack"))&&(r.get||function(){return r.value})||function(){return u.stack}:(s=new Error(l).stack,function(){return s}),Object.defineProperty(t,"stack",{get:function(){return i.call(t)}}),Object.defineProperty(t,"cause",{value:u}),t.lineno=n,t.colno=e,t.firstUpdate=!0,t.Update=function(l){return l="("+(l||"unknown path")+")",this.firstUpdate&&(this.lineno&&this.colno?l+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(l+=" [Line "+this.lineno+"]")),l+="\n ",this.firstUpdate&&(l+=" "),this.message=l+(this.message||""),this.firstUpdate=!1,this},t}function o(l){return"[object Function]"===e.toString.call(l)}function c(l){return"[object Array]"===e.toString.call(l)}function h(l){return"[object String]"===e.toString.call(l)}function f(l){return"[object Object]"===e.toString.call(l)}function p(l){var n=function(l){return l?"string"==typeof l?l.split("."):[l]:[]}(l);return function(l){for(var e=l,t=0;tt&&(r.warned=!0,(t=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",t.emitter=l,t.type=n,t.count=r.length,function(l){"function"==typeof console.warn?console.warn(l):console.log(l)}(t))):(r=u[n]=e,++l._eventsCount),l}function mo(l,n,e){var t=!1;function u(){l.removeListener(n,u),t||(t=!0,e.apply(l,arguments))}return u.listener=e,u}function _o(l){var n=this._events;if(n){if("function"==typeof(n=n[l]))return 1;if(n)return n.length}return 0}function Eo(l,n){for(var e=new Array(n);n--;)e[n]=l[n];return e}function To(){var l;ho.call(this),this.__emitError=(l=this,function(n){l.emit("error",n)})}function Ao(){return new To}lo.prototype=Object.create(null),(ho.EventEmitter=ho).usingDomains=!1,ho.prototype.domain=void 0,ho.prototype._events=void 0,ho.prototype._maxListeners=void 0,ho.defaultMaxListeners=10,ho.init=function(){this.domain=null,ho.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new lo,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ho.prototype.setMaxListeners=function(l){if("number"!=typeof l||l<0||isNaN(l))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=l,this},ho.prototype.getMaxListeners=function(){return fo(this)},ho.prototype.emit=function(l){var n,e,t,u,r,i="error"===l;if(r=this._events)i=i&&null==r.error;else if(!i)return!1;if(s=this.domain,i){if(i=arguments[1],s)return(i=i||new Error('Uncaught, unspecified "error" event')).domainEmitter=this,i.domain=s,i.domainThrown=!1,s.emit("error",i),!1;if(i instanceof Error)throw i;var s=new Error('Uncaught, unspecified "error" event. ('+i+")");throw s.context=i,s}if(!(n=r[l]))return!1;var a="function"==typeof n;switch(e=arguments.length){case 1:!function(l,n){if(a)l.call(n);else for(var e=l.length,t=Eo(l,e),u=0;u=","//","**"],a=e+this.current();switch(-1!==Ua.indexOf(s,a)&&(this.forward(),-1!==Ua.indexOf(s,(e=a)+this.current()))&&(e=a+this.current(),this.forward()),e){case"(":i=Ko;break;case")":i=Wo;break;case"[":i=Vo;break;case"]":i=$o;break;case"{":i=Qo;break;case"}":i=zo;break;case",":i=Zo;break;case":":i=Jo;break;case"~":i=ec;break;case"|":i=tc;break;default:i=Xo}return oc(i,e,l,n)}if((h=this._extractUntil(Mo+Po)).match(/^[-+]?[0-9]+$/))return"."===this.current()?(this.forward(),s=this._extract("0123456789"),oc(nc,h+"."+s,l,n)):oc("int",h,l,n);if(h.match(/^(true|false)$/))return oc(rc,h,l,n);if("none"===h)return oc(ic,h,l,n);if("null"===h)return oc(ic,h,l,n);if(h)return oc(sc,h,l,n);throw new Error("Unexpected value while parsing: "+h)}var o,c=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,oc(Ho,h,l,n);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,oc(jo,h,l,n);var h="",f=!1;for(this._matches(this.tags.COMMENT_START)&&(f=!0,h=this._extractString(this.tags.COMMENT_START));null!==(o=this._extractUntil(c));){if(h+=o,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!f){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+l.length)===l},n._extractString=function(l){return this._matches(l)?(this.forwardN(l.length),l):null},n._extractUntil=function(l){return this._extractMatching(!0,l||"")},n._extract=function(l){return this._extractMatching(!1,l)},n._extractMatching=function(l,n){if(this.isFinished())return null;var e=n.indexOf(this.current());if(l&&-1===e||!l&&-1!==e){var t=this.current();this.forward();for(var u=n.indexOf(this.current());(l&&-1===u||!l&&-1!==u)&&!this.isFinished();)t+=this.current(),this.forward(),u=n.indexOf(this.current());return t}return""},n._extractRegex=function(l){return(l=this.currentStr().match(l))?(this.forwardN(l[0].length),l):null},n.isFinished=function(){return this.index>=this.len},n.forwardN=function(l){for(var n=0;n",e+2),l(n,e+4)})))}};function Iu(l,n){return(Iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,n){return l.__proto__=n,l})(l,n)}bu.Node,bu.Root,bu.NodeList,bu.Value,bu.Literal,bu.Group,bu.Pair,bu.Dict,bu.Output,bu.Capture,bu.TemplateData,bu.If,bu.IfAsync,bu.InlineIf,bu.For,bu.AsyncEach,bu.AsyncAll,bu.Macro,bu.Caller,bu.Import,bu.FromImport,bu.FunCall,bu.Filter,bu.FilterAsync,bu.KeywordArgs,bu.Block,bu.Super,bu.Extends,bu.Include,bu.Switch,bu.Case,bu.LookupVal,bu.BinOp,bu.In,bu.Is,bu.Or,bu.And,bu.Not,bu.Add,bu.Concat,bu.Sub,bu.Mul,bu.Div,bu.FloorDiv,bu.Mod,bu.Pow,bu.Neg,bu.Pos,bu.Compare,bu.CompareOperand,bu.CallExtension,bu.CallExtensionAsync,bu.printNodes;var Ou=function(l){var n;function e(){return l.apply(this,arguments)||this}n=l,(t=e).prototype=Object.create(n.prototype),Iu(t.prototype.constructor=t,n);var t=e.prototype;return t.init=function(l){this.tokens=l,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},t.nextToken=function(l){var n;if(this.peeked){if(l||this.peeked.type!==uc.TOKEN_WHITESPACE)return n=this.peeked,this.peeked=null,n;this.peeked=null}if(n=this.tokens.nextToken(),!l)for(;n&&n.type===uc.TOKEN_WHITESPACE;)n=this.tokens.nextToken();return n},t.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},t.pushToken=function(l){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=l},t.error=function(l,n,e){var t;return void 0!==n&&void 0!==e||(n=(t=this.peekToken()||{}).lineno,e=t.colno),void 0!==n&&(n+=1),void 0!==e&&(e+=1),new Ua.TemplateError(l,n,e)},t.fail=function(l,n,e){throw this.error(l,n,e)},t.skip=function(l){var n=this.nextToken();return!(!n||n.type!==l)||(this.pushToken(n),!1)},t.expect=function(l){var n=this.nextToken();return n.type!==l&&this.fail("expected "+l+", got "+n.type,n.lineno,n.colno),n},t.skipValue=function(l,n){var e=this.nextToken();return!(!e||e.type!==l||e.value!==n)||(this.pushToken(e),!1)},t.skipSymbol=function(l){return this.skipValue(uc.TOKEN_SYMBOL,l)},t.advanceAfterBlockEnd=function(l){var n;return l||((n=this.peekToken())||this.fail("unexpected end of file"),n.type!==uc.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),l=this.nextToken().value),(n=this.nextToken())&&n.type===uc.TOKEN_BLOCK_END?"-"===n.value.charAt(0)&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+l+" statement"),n},t.advanceAfterVariableEnd=function(){var l=this.nextToken();l&&l.type===uc.TOKEN_VARIABLE_END?this.dropLeadingWhitespace="-"===l.value.charAt(l.value.length-this.tokens.tags.VARIABLE_END.length-1):(this.pushToken(l),this.fail("expected variable end"))},t.parseFor=function(){var l,n,e=this.peekToken();if(this.skipSymbol("for")?(l=new bu.For(e.lineno,e.colno),n="endfor"):this.skipSymbol("asyncEach")?(l=new bu.AsyncEach(e.lineno,e.colno),n="endeach"):this.skipSymbol("asyncAll")?(l=new bu.AsyncAll(e.lineno,e.colno),n="endall"):this.fail("parseFor: expected for{Async}",e.lineno,e.colno),l.name=this.parsePrimary(),l.name instanceof bu.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===uc.TOKEN_COMMA){var t=l.name;for(l.name=new bu.Array(t.lineno,t.colno),l.name.addChild(t);this.skip(uc.TOKEN_COMMA);){var u=this.parsePrimary();l.name.addChild(u)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',e.lineno,e.colno),l.arr=this.parseExpression(),this.advanceAfterBlockEnd(e.value),l.body=this.parseUntilBlocks(n,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),l.else_=this.parseUntilBlocks(n)),this.advanceAfterBlockEnd(),l},t.parseMacro=function(){var l=this.peekToken(),n=(this.skipSymbol("macro")||this.fail("expected macro"),this.parsePrimary(!0)),e=this.parseSignature();n=new bu.Macro(l.lineno,l.colno,n,e);return this.advanceAfterBlockEnd(l.value),n.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),n},t.parseCall=function(){var l=this.peekToken(),n=(this.skipSymbol("call")||this.fail("expected call"),this.parseSignature(!0)||new bu.NodeList),e=this.parsePrimary(),t=(this.advanceAfterBlockEnd(l.value),this.parseUntilBlocks("endcall")),u=(this.advanceAfterBlockEnd(),new bu.Symbol(l.lineno,l.colno,"caller"));n=new bu.Caller(l.lineno,l.colno,u,n,t);return(t=e.args.children)[t.length-1]instanceof bu.KeywordArgs||t.push(new bu.KeywordArgs),t[t.length-1].addChild(new bu.Pair(l.lineno,l.colno,u,n)),new bu.Output(l.lineno,l.colno,[e])},t.parseWithContext=function(){var l=this.peekToken(),n=null;return this.skipSymbol("with")?n=!0:this.skipSymbol("without")&&(n=!1),null===n||this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",l.lineno,l.colno),n},t.parseImport=function(){var l=this.peekToken(),n=(this.skipSymbol("import")||this.fail("parseImport: expected import",l.lineno,l.colno),this.parseExpression()),e=(this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',l.lineno,l.colno),this.parseExpression()),t=this.parseWithContext();n=new bu.Import(l.lineno,l.colno,n,e,t);return this.advanceAfterBlockEnd(l.value),n},t.parseFrom=function(){var l=this.peekToken(),n=(this.skipSymbol("from")||this.fail("parseFrom: expected from"),this.parseExpression());this.skipSymbol("import")||this.fail("parseFrom: expected import",l.lineno,l.colno);for(var e,t=new bu.NodeList;;){var u,r=this.peekToken();if(r.type===uc.TOKEN_BLOCK_END){t.children.length||this.fail("parseFrom: Expected at least one import name",l.lineno,l.colno),"-"===r.value.charAt(0)&&(this.dropLeadingWhitespace=!0),this.nextToken();break}0","<=",">="],n=this.parseConcat(),e=[];;){var t=this.nextToken();if(!t)break;if(-1===l.indexOf(t.value)){this.pushToken(t);break}e.push(new bu.CompareOperand(t.lineno,t.colno,this.parseConcat(),t.value))}return e.length?new bu.Compare(e[0].lineno,e[0].colno,n,e):n},t.parseConcat=function(){for(var l=this.parseAdd();this.skipValue(uc.TOKEN_TILDE,"~");){var n=this.parseAdd();l=new bu.Concat(l.lineno,l.colno,l,n)}return l},t.parseAdd=function(){for(var l=this.parseSub();this.skipValue(uc.TOKEN_OPERATOR,"+");){var n=this.parseSub();l=new bu.Add(l.lineno,l.colno,l,n)}return l},t.parseSub=function(){for(var l=this.parseMul();this.skipValue(uc.TOKEN_OPERATOR,"-");){var n=this.parseMul();l=new bu.Sub(l.lineno,l.colno,l,n)}return l},t.parseMul=function(){for(var l=this.parseDiv();this.skipValue(uc.TOKEN_OPERATOR,"*");){var n=this.parseDiv();l=new bu.Mul(l.lineno,l.colno,l,n)}return l},t.parseDiv=function(){for(var l=this.parseFloorDiv();this.skipValue(uc.TOKEN_OPERATOR,"/");){var n=this.parseFloorDiv();l=new bu.Div(l.lineno,l.colno,l,n)}return l},t.parseFloorDiv=function(){for(var l=this.parseMod();this.skipValue(uc.TOKEN_OPERATOR,"//");){var n=this.parseMod();l=new bu.FloorDiv(l.lineno,l.colno,l,n)}return l},t.parseMod=function(){for(var l=this.parsePow();this.skipValue(uc.TOKEN_OPERATOR,"%");){var n=this.parsePow();l=new bu.Mod(l.lineno,l.colno,l,n)}return l},t.parsePow=function(){for(var l=this.parseUnary();this.skipValue(uc.TOKEN_OPERATOR,"**");){var n=this.parseUnary();l=new bu.Pow(l.lineno,l.colno,l,n)}return l},t.parseUnary=function(l){var n=this.peekToken();n=this.skipValue(uc.TOKEN_OPERATOR,"-")?new bu.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(uc.TOKEN_OPERATOR,"+")?new bu.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary();return l?n:this.parseFilter(n)},t.parsePrimary=function(l){var n,e=this.nextToken();if(e?e.type===uc.TOKEN_STRING?n=e.value:e.type===uc.TOKEN_INT?n=parseInt(e.value,10):e.type===uc.TOKEN_FLOAT?n=parseFloat(e.value):e.type===uc.TOKEN_BOOLEAN?"true"===e.value?n=!0:"false"===e.value?n=!1:this.fail("invalid boolean: "+e.value,e.lineno,e.colno):e.type===uc.TOKEN_NONE?n=null:e.type===uc.TOKEN_REGEX&&(n=new RegExp(e.value.body,e.value.flags)):this.fail("expected expression, got end of file"),n=void 0!==n?new bu.Literal(e.lineno,e.colno,n):e.type===uc.TOKEN_SYMBOL?new bu.Symbol(e.lineno,e.colno,e.value):(this.pushToken(e),this.parseAggregate()),n=l?n:this.parsePostfix(n))return n;throw this.error("unexpected token: "+e.value,e.lineno,e.colno)},t.parseFilterName=function(){for(var l=this.expect(uc.TOKEN_SYMBOL),n=l.value;this.skipValue(uc.TOKEN_OPERATOR,".");)n+="."+this.expect(uc.TOKEN_SYMBOL).value;return new bu.Symbol(l.lineno,l.colno,n)},t.parseFilterArgs=function(l){return this.peekToken().type===uc.TOKEN_LEFT_PAREN?this.parsePostfix(l).args.children:[]},t.parseFilter=function(l){for(;this.skip(uc.TOKEN_PIPE);){var n=this.parseFilterName();l=new bu.Filter(n.lineno,n.colno,n,new bu.NodeList(n.lineno,n.colno,[l].concat(this.parseFilterArgs(l))))}return l},t.parseFilterStatement=function(){var l=this.peekToken(),n=(this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter"),this.parseFilterName()),e=this.parseFilterArgs(n);this.advanceAfterBlockEnd(l.value),l=new bu.Capture(n.lineno,n.colno,this.parseUntilBlocks("endfilter")),this.advanceAfterBlockEnd(),l=new bu.Filter(n.lineno,n.colno,n,new bu.NodeList(n.lineno,n.colno,[l].concat(e)));return new bu.Output(n.lineno,n.colno,[l])},t.parseAggregate=function(){var l,n=this.nextToken();switch(n.type){case uc.TOKEN_LEFT_PAREN:l=new bu.Group(n.lineno,n.colno);break;case uc.TOKEN_LEFT_BRACKET:l=new bu.Array(n.lineno,n.colno);break;case uc.TOKEN_LEFT_CURLY:l=new bu.Dict(n.lineno,n.colno);break;default:return null}for(;;){var e,t=this.peekToken().type;if(t===uc.TOKEN_RIGHT_PAREN||t===uc.TOKEN_RIGHT_BRACKET||t===uc.TOKEN_RIGHT_CURLY){this.nextToken();break}0l.length)a=u.slice(0,l.length),u.slice(a.length,i).forEach((function(l,e){e":">","<=":"<=",">=":">="},Qu=function(l){var n;function e(){return l.apply(this,arguments)||this}n=l,(t=e).prototype=Object.create(n.prototype),Ku(t.prototype.constructor=t,n);var t=e.prototype;return t.init=function(l,n){this.templateName=l,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=n},t.fail=function(l,n,e){throw void 0!==n&&(n+=1),void 0!==e&&(e+=1),new Wu(l,n,e)},t._pushBuffer=function(){var l=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=l,this._emit("var "+this.buffer+' = "";'),l},t._popBuffer=function(){this.buffer=this.bufferStack.pop()},t._emit=function(l){this.codebuf.push(l)},t._emitLine=function(l){this._emit(l+"\n")},t._emitLines=function(){for(var l=this,n=arguments.length,e=new Array(n),t=0;t=(e=e||80)?l:(e-=l.length,t=Ua.repeat(" ",e/2-e%2),e=Ua.repeat(" ",e/2),Yu.copySafeness(l,t+l+e))},l.default=function(l,n,e){return e?l||n:void 0!==l?l:n},l.dictsort=function(l,n,e){if(!Ua.isObject(l))throw new Ua.TemplateError("dictsort filter: val must be an object");var t,u,r=[];for(u in l)r.push([u,l[u]]);if(void 0===e||"key"===e)t=0;else{if("value"!==e)throw new Ua.TemplateError("dictsort filter: You can only sort by either key or value");t=1}return r.sort((function(l,e){return l=l[t],e=e[t],n||(Ua.isString(l)&&(l=l.toUpperCase()),Ua.isString(e)&&(e=e.toUpperCase())),e\n"))},l.random=function(l){return l[Math.floor(Math.random()*l.length)]},l.reject=r(!1),l.rejectattr=function(l,n){return l.filter((function(l){return!l[n]}))},l.select=r(!0),l.selectattr=function(l,n){return l.filter((function(l){return!!l[n]}))},l.replace=function(l,n,e,t){var u=l;if(n instanceof RegExp)return l.replace(n,e);void 0===t&&(t=-1);var r="";if("number"==typeof n)n=""+n;else if("string"!=typeof n)return l;if("string"!=typeof(l="number"==typeof l?""+l:l)&&!(l instanceof Yu.SafeString))return l;if(""===n)return r=e+l.split("").join(e)+e,Yu.copySafeness(l,r);var i=l.indexOf(n);if(0===t||-1===i)return l;for(var s=0,a=0;-1]*>|/gi,""));e=e?t.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):t.replace(/\s+/gi," ");return Yu.copySafeness(l,e)},l.title=function(l){var e=(l=n(l,"")).split(" ").map(t);return Yu.copySafeness(l,e.join(" "))},l.trim=i,l.truncate=function(l,e,t,u){var r=l;return(l=n(l,"")).length<=(e=e||255)?l:(l=t?l.substring(0,e):(-1===(t=l.lastIndexOf(" ",e))&&(t=e),l.substring(0,t)),Yu.copySafeness(r,l+=null!=u?u:"..."))},l.upper=function(l){return(l=n(l,"")).toUpperCase()},l.urlencode=function(l){var n=encodeURIComponent;return Ua.isString(l)?n(l):(Ua.isArray(l)?l:Ua._entries(l)).map((function(l){var e=l[0];l=l[1];return n(e)+"="+n(l)})).join("&")};var s=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,h=/\.(?:org|net|com)(?:\:|\/|$)/,f=(l.urlize=function(l,n,t){e(n)&&(n=1/0);var u=!0===t?' rel="nofollow"':"";return l.split(/(\s+)/).filter((function(l){return l&&l.length})).map((function(l){var e=l.match(s),t=(e=e?e[1]:l).substr(0,n);return o.test(e)?'"+t+"":c.test(e)?'"+t+"":a.test(e)?''+e+"":h.test(e)?'"+t+"":l})).join("")},l.wordcount=function(l){return(l=(l=n(l,""))?l.match(/\w+/g):null)?l.length:null},l.float=function(l,n){return e(l=parseFloat(l))?n:l},Yu.makeMacro(["value","default","base"],[],(function(l,n,t){return void 0===t&&(t=10),e(l=parseInt(l,t))?n:l})));l.int=f,l.d=l.default,l.e=l.escape})),Zu={};function Ju(l,n){for(var e=0,t=l.length-1;0<=t;t--){var u=l[t];"."===u?l.splice(t,1):".."===u?(l.splice(t,1),e++):e&&(l.splice(t,1),e--)}if(n)for(;e--;)l.unshift("..");return l}var el=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,tl=function(l){return el.exec(l).slice(1)};function nl(){for(var l="",n=!1,e=arguments.length-1;-1<=e&&!n;e--){var t=0<=e?arguments[e]:"/";if("string"!=typeof t)throw new TypeError("Arguments to path.resolve must be strings");t&&(l=t+"/"+l,n="/"===t.charAt(0))}return(n?"/":"")+Ju(al(l.split("/"),(function(l){return!!l})),!n).join("/")||"."}function rl(l){var n=il(l),e="/"===ol(l,-1);return(l=(l=Ju(al(l.split("/"),(function(l){return!!l})),!n).join("/"))||n?l:".")&&e&&(l+="/"),(n?"/":"")+l}function il(l){return"/"===l.charAt(0)}var sl={extname:function(l){return tl(l)[3]},basename:function(l,n){return l=tl(l)[2],n&&l.substr(-1*n.length)===n?l.substr(0,l.length-n.length):l},dirname:function(l){var n=(l=tl(l))[0];l=l[1];return n||l?n+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(l,n){function e(l){for(var n=0;n=l.length&&(n=0),this.current=l[n],this.current}};var l,n},joiner:function(l){l=l||",";var n=!0;return function(){var e=n?"":l;return n=!1,e}}}});function Al(l,n){l.prototype=Object.create(n.prototype),gl(l.prototype.constructor=l,n)}function gl(l,n){return(gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,n){return l.__proto__=n,l})(l,n)}var vl=_l.FileSystemLoader,yl=_l.WebLoader,Sl=_l.PrecompiledLoader,Cl=Ec.Obj,Nl=Ec.EmitterObj,bl=Yu.handleError,Il=Yu.Frame;function Ol(l,n,e){Ro((function(){l(n,e)}))}var kl={type:"code",obj:{root:function(l,n,e,t,u){try{u(null,"")}catch(l){u(bl(l,null,null))}}}},Ll=function(l){function n(){return l.apply(this,arguments)||this}Al(n,l);var e=n.prototype;return e.init=function(l,n){var e=this;n=this.opts=n||{},this.opts.dev=!!n.dev,this.opts.autoescape=null==n.autoescape||n.autoescape,this.opts.throwOnUndefined=!!n.throwOnUndefined,this.opts.trimBlocks=!!n.trimBlocks,this.opts.lstripBlocks=!!n.lstripBlocks,this.loaders=[],l?this.loaders=Ua.isArray(l)?l:[l]:vl?this.loaders=[new vl("views")]:yl&&(this.loaders=[new yl("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new Sl(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=Tl(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],Ua._entries(Xu).forEach((function(l){var n=l[0];l=l[1];return e.addFilter(n,l)})),Ua._entries(El).forEach((function(l){var n=l[0];l=l[1];return e.addTest(n,l)}))},e._initLoaders=function(){var l=this;this.loaders.forEach((function(n){n.cache={},"function"==typeof n.on&&(n.on("update",(function(e,t){n.cache[e]=null,l.emit("update",e,t,n)})),n.on("load",(function(e,t){l.emit("load",e,t,n)})))}))},e.invalidateCache=function(){this.loaders.forEach((function(l){l.cache={}}))},e.addExtension=function(l,n){return n.__name=l,this.extensions[l]=n,this.extensionsList.push(n),this},e.removeExtension=function(l){var n=this.getExtension(l);n&&(this.extensionsList=Ua.without(this.extensionsList,n),delete this.extensions[l])},e.getExtension=function(l){return this.extensions[l]},e.hasExtension=function(l){return!!this.extensions[l]},e.addGlobal=function(l,n){return this.globals[l]=n,this},e.getGlobal=function(l){if(void 0===this.globals[l])throw new Error("global not found: "+l);return this.globals[l]},e.addFilter=function(l,n,e){return e&&this.asyncFilters.push(l),this.filters[l]=n,this},e.getFilter=function(l){if(this.filters[l])return this.filters[l];throw new Error("filter not found: "+l)},e.addTest=function(l,n){return this.tests[l]=n,this},e.getTest=function(l){if(this.tests[l])return this.tests[l];throw new Error("test not found: "+l)},e.resolveTemplate=function(l,n,e){return l.isRelative&&n&&l.isRelative(e)&&l.resolve?l.resolve(n,e):e},e.getTemplate=function(l,n,e,t,u){var r,i=this,s=this,a=null;if(l&&l.raw&&(l=l.raw),Ua.isFunction(e)&&(u=e,e=null,n=n||!1),Ua.isFunction(n)&&(u=n,n=!1),l instanceof Rl)a=l;else{if("string"!=typeof l)throw new Error("template names must be a string: "+l);for(var o=0;o{var n=["th","st","nd","rd"],e=l%100;return`[${l}${n[(e-20)%10]||n[e]||n[0]}]`}};const th=(l,n,e)=>{var t=String(l);return!t||t.length>=n?l:""+Array(n+1-t.length).join(e)+l},nh=(l,n)=>{var e,t,u;return l.date(){l=-l.utcOffset();var n=Math.abs(l),e=Math.floor(n/60);n%=60;return(l<=0?"+":"-")+th(e,2,"0")+":"+th(n,2,"0")},m:nh,a:l=>l<0?Math.ceil(l)||0:Math.floor(l),p:l=>({M:Vl,y:Ql,w:Wl,d:Kl,D:zl,h:Yl,m:ql,s:jl,ms:Gl,Q:$l}[l]||String(l||"").toLowerCase().replace(/s$/,"")),u:l=>void 0===l};let ih="en";const sh={},ah=(sh[ih]=eh,l=>l instanceof lh),oh=(l,n,e)=>{let t;if(!l)return ih;if("string"==typeof l){const e=l.toLowerCase();if(sh[e]&&(t=e),n&&(sh[e]=n,t=e),n=l.split("-"),!t&&1ch(l,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset});class lh{constructor(l){this.$L=oh(l.locale,null,!0),this.parse(l)}parse(l){this.$d=(l=>{const{date:n,utc:e}=l;if(null===n)return new Date(NaN);if(uh.u(n))return new Date;if(!(n instanceof Date||"string"!=typeof n||/Z$/i.test(n))){const l=n.match(Zl);if(l){const n=l[2]-1||0,t=(l[7]||"0").substring(0,3);return e?new Date(Date.UTC(l[1],n,l[3]||1,l[4]||0,l[5]||0,l[6]||0,t)):new Date(l[1],n,l[3]||1,l[4]||0,l[5]||0,l[6]||0,t)}}return new Date(n)})(l),this.$x=l.x||{},this.init()}init(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()}$utils(){return uh}isValid(){return!(this.$d.toString()===Xl)}isSame(l,n){return l=ch(l),this.startOf(n)<=l&&l<=this.endOf(n)}isAfter(l,n){return ch(l)(n=uh.w(this.$u?Date.UTC(this.$y,n,l):new Date(this.$y,n,l),this),e?n:n.endOf(Kl)),r=(l,n)=>uh.w(this.toDate()[l].apply(this.toDate("s"),(e?[0,0,0,0]:[23,59,59,999]).slice(n)),this),{$W:i,$M:s,$D:a}=this,o="set"+(this.$u?"UTC":"");switch(t){case Ql:return e?u(1,0):u(31,11);case Vl:return e?u(1,s):u(0,s+1);case Wl:{const l=this.$locale().weekStart||0,n=(i{var e=ch(this);return uh.w(e.date(e.date()+Math.round(n*l)),this)};return(n=uh.p(n))===Vl?this.set(Vl,this.$M+l):n===Ql?this.set(Ql,this.$y+l):n===Kl?e(1):n===Wl?e(7):(e={[ql]:Ul,[Yl]:Hl,[jl]:Fl}[n]||1,n=this.$d.getTime()+l*e,uh.w(n,this))}subtract(l,n){return this.add(-1*l,n)}format(l){var n=this.$locale();if(!this.isValid())return n.invalidDate||Xl;const e=l||"YYYY-MM-DDTHH:mm:ssZ",t=uh.z(this),{$H:u,$m:r,$M:i}=this,{weekdays:s,months:a,meridiem:o}=n,c=(l,n,t,u)=>l&&(l[n]||l(this,e))||t[n].slice(0,u),h=l=>uh.s(u%12||12,l,"0"),f=o||((l,n,e)=>(l=l<12?"AM":"PM",e?l.toLowerCase():l)),p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:i+1,MM:uh.s(i+1,2,"0"),MMM:c(n.monthsShort,i,a,3),MMMM:c(a,i),D:this.$D,DD:uh.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,s,2),ddd:c(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(u),HH:uh.s(u,2,"0"),h:h(1),hh:h(2),a:f(u,r,!0),A:f(u,r,!1),m:String(r),mm:uh.s(r,2,"0"),s:String(this.$s),ss:uh.s(this.$s,2,"0"),SSS:uh.s(this.$ms,3,"0"),Z:t};return e.replace(Jl,((l,n)=>n||p[l]||t.replace(":","")))}utcOffset(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)}diff(l,n,e){n=uh.p(n);var t=((l=ch(l)).utcOffset()-this.utcOffset())*Ul,u=this-l;l=uh.m(this,l),l={[Ql]:l/12,[Vl]:l,[$l]:l/3,[Wl]:(u-t)/6048e5,[Kl]:(u-t)/864e5,[Yl]:u/Hl,[ql]:u/Ul,[jl]:u/Fl}[n]||u;return e?l:uh.a(l)}daysInMonth(){return this.endOf(Vl).$D}$locale(){return sh[this.$L]}locale(l,n){var e;return l?(e=this.clone(),(l=oh(l,n,!0))&&(e.$L=l),e):this.$L}clone(){return uh.w(this.$d,this)}toDate(){return new Date(this.valueOf())}toJSON(){return this.isValid()?this.toISOString():null}toISOString(){return this.$d.toISOString()}toString(){return this.$d.toUTCString()}}const hh=lh.prototype;ch.prototype=hh,[["$ms",Gl],["$s",jl],["$m",ql],["$H",Yl],["$W",Kl],["$M",Vl],["$y",Ql],["$D",zl]].forEach((l=>{hh[l[1]]=function(n){return this.$g(n,l[0],l[1])}})),ch.extend=(l,n)=>(l.$i||(l(n,lh,ch),l.$i=!0),ch),ch.locale=oh,ch.isDayjs=ah,ch.unix=l=>ch(1e3*l),ch.en=sh[ih],ch.Ls=sh,ch.p={};var fh=Sr((function(l){function n(l){return l&&(l=l.toString().replace(u.pluses,"%20"),l=decodeURIComponent(l)),l}function e(l){var e,t,r,i,s,a,o,c=[];if(null!=l&&""!==l)for(o=(t=(l=(e=0)===l.indexOf("?")?l.substring(1):l).toString().split(u.query_separator)).length;e>>0;if("function"!=typeof l)throw new TypeError(l+" is not a function");for(1"']/g,j=RegExp(G.source),Q=RegExp(X.source),q=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,ll=RegExp(Z.source),nl=/^\s+/,el=/\s/,tl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ul=/\{\n\/\* \[wrapped with (.+)\] \*/,rl=/,? & /,il=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sl=/[()=,{}\[\]\/\s]/,al=/\\(\\)?/g,ol=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cl=/\w*$/,hl=/^[-+]0x[0-9a-f]+$/i,fl=/^0b[01]+$/i,pl=/^\[object .+?Constructor\]$/,dl=/^0o[0-7]+$/i,ml=/^(?:0|[1-9]\d*)$/,El=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,_l=/['\n\r\u2028\u2029\\]/g,gl="\\ud800-\\udfff",Al="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",yl="\\u2700-\\u27bf",Sl="A-Z\\xc0-\\xd6\\xd8-\\xde",bl="\\ufe0e\\ufe0f",vl="["+gl+"]",Nl="["+(Ll="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000")+"]",Il="["+Al+"]",Cl="["+yl+"]",Ol="["+(Wl="a-z\\xdf-\\xf6\\xf8-\\xff")+"]",kl="[\\ud800-\\udbff][\\udc00-\\udfff]",Rl="\\u200d",Dl="(?:"+Ol+"|"+(Ll="[^"+gl+Ll+"\\d+"+yl+Wl+Sl+"]")+")",Ll="(?:"+(Sl="["+Sl+"]")+"|"+Ll+")",wl="(?:['’](?:d|ll|m|re|s|t|ve))?",Ul="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ml=(Ml="["+bl+"]?")+(xl="(?:"+Il+"|"+(yl="\\ud83c[\\udffb-\\udfff]")+")?")+"(?:"+Rl+"(?:"+[Wl="[^"+gl+"]",zl="(?:\\ud83c[\\udde6-\\uddff]){2}",kl].join("|")+")"+Ml+xl+")*",xl="(?:"+[Cl,zl,kl].join("|")+")"+Ml,Pl=(Cl="(?:"+[Wl+Il+"?",Il,zl,kl,vl].join("|")+")",RegExp("['’]","g")),Fl=RegExp(Il,"g"),Bl=RegExp(yl+"(?="+yl+")|"+Cl+Ml,"g"),Hl=RegExp([Sl+"?"+Ol+"+"+wl+"(?="+[Nl,Sl,"$"].join("|")+")",Ll+"+"+Ul+"(?="+[Nl,Sl+Dl,"$"].join("|")+")",Sl+"?"+Dl+"+"+wl,Sl+"+"+Ul,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",xl].join("|"),"g"),Yl=RegExp("["+Rl+gl+Al+bl+"]"),$l=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xl=-1,jl={},Ql=(jl[D]=jl[L]=jl[w]=jl[U]=jl[M]=jl[x]=jl[P]=jl[F]=jl[B]=!0,jl[p]=jl[d]=jl[k]=jl[m]=jl[R]=jl[E]=jl[T]=jl[_]=jl[A]=jl[y]=jl[S]=jl[v]=jl[N]=jl[I]=jl[O]=!1,{}),ql=(Ql[p]=Ql[d]=Ql[k]=Ql[R]=Ql[m]=Ql[E]=Ql[D]=Ql[L]=Ql[w]=Ql[U]=Ql[M]=Ql[A]=Ql[y]=Ql[S]=Ql[v]=Ql[N]=Ql[I]=Ql[C]=Ql[x]=Ql[P]=Ql[F]=Ql[B]=!0,Ql[T]=Ql[_]=Ql[O]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),Vl=parseFloat,Kl=parseInt,Wl="object"==typeof gr&&gr&&gr.Object===Object&&gr,zl="object"==typeof self&&self&&self.Object===Object&&self,Jl=Wl||zl||Function("return this")(),Zl=(kl=n&&!n.nodeType&&n)&&l&&!l.nodeType&&l,ln=Zl&&Zl.exports===kl,nn=ln&&Wl.process,en=(vl=function(){try{return Zl&&Zl.require&&Zl.require("util").types||nn&&nn.binding&&nn.binding("util")}catch(l){}}())&&vl.isArrayBuffer,tn=vl&&vl.isDate,un=vl&&vl.isMap,rn=vl&&vl.isRegExp,sn=vl&&vl.isSet,an=vl&&vl.isTypedArray;function on(l,n,e){switch(e.length){case 0:return l.call(n);case 1:return l.call(n,e[0]);case 2:return l.call(n,e[0],e[1]);case 3:return l.call(n,e[0],e[1],e[2])}return l.apply(n,e)}function cn(l,n,e,t){for(var u=-1,r=null==l?0:l.length;++u":">",'"':""","'":"'"});function Yn(l){return"\\"+ql[l]}function $n(l){return Yl.test(l)}function Gn(l){var n=-1,e=Array(l.size);return l.forEach((function(l,t){e[++n]=[t,l]})),e}function Xn(l,n){return function(e){return l(n(e))}}function jn(l,n){for(var e=-1,t=l.length,u=0,i=[];++e",""":'"',"'":"'"}),zn=function l(n){var el=(n=null==n?Jl:zn.defaults(Jl.Object(),n,zn.pick(Jl,Gl))).Array,gl=n.Date,Al=n.Error,yl=n.Function,Sl=n.Math,bl=n.Object,vl=n.RegExp,Nl=n.String,Il=n.TypeError,Cl=el.prototype,Ol=yl.prototype,kl=bl.prototype,Rl=n["__core-js_shared__"],Dl=Ol.toString,Ll=kl.hasOwnProperty,wl=0,Ul=(Ol=/[^.]+$/.exec(Rl&&Rl.keys&&Rl.keys.IE_PROTO||""))?"Symbol(src)_1."+Ol:"",Ml=kl.toString,xl=Dl.call(bl),Bl=Jl._,Yl=vl("^"+Dl.call(Ll).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ql=(Ol=ln?n.Buffer:e,n.Symbol),Wl=n.Uint8Array,zl=Ol?Ol.allocUnsafe:e,Zl=Xn(bl.getPrototypeOf,bl),nn=bl.create,yn=kl.propertyIsEnumerable,kn=Cl.splice,Jn=ql?ql.isConcatSpreadable:e,Zn=ql?ql.iterator:e,le=ql?ql.toStringTag:e,ne=function(){try{var l=Qu(bl,"defineProperty");return l({},"",{}),l}catch(l){}}(),ee=n.clearTimeout!==Jl.clearTimeout&&n.clearTimeout,te=gl&&gl.now!==Jl.Date.now&&gl.now,ue=n.setTimeout!==Jl.setTimeout&&n.setTimeout,re=Sl.ceil,ie=Sl.floor,se=bl.getOwnPropertySymbols,ae=(Ol=Ol?Ol.isBuffer:e,n.isFinite),oe=Cl.join,ce=Xn(bl.keys,bl),he=Sl.max,fe=Sl.min,pe=gl.now,de=n.parseInt,me=Sl.random,Ee=Cl.reverse,Te=(gl=Qu(n,"DataView"),Qu(n,"Map")),_e=Qu(n,"Promise"),ge=Qu(n,"Set"),Ae=(n=Qu(n,"WeakMap"),Qu(bl,"create")),ye=n&&new n,Se={},be=_r(gl),ve=_r(Te),Ne=_r(_e),Ie=_r(ge),Ce=_r(n),Oe=(ql=ql?ql.prototype:e)?ql.valueOf:e,ke=ql?ql.toString:e;function Re(l){if(Ni(l)&&!mi(l)&&!(l instanceof Ue)){if(l instanceof we)return l;if(Ll.call(l,"__wrapped__"))return gr(l)}return new we(l)}var De=function(){function l(){}return function(n){return vi(n)?nn?nn(n):(l.prototype=n,n=new l,l.prototype=e,n):{}}}();function Le(){}function we(l,n){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Ue(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Me(l){var n=-1,e=null==l?0:l.length;for(this.clear();++n>>0,n>>>=0;for(var r=el(u);++t>>1,i=l[r];null!==i&&!Li(i)&&(e?i<=n:i>>0)?(l=$i(l))&&("string"==typeof n||null!=n&&!ki(n))&&!(n=Xt(n))&&$n(l)?eu(Vn(l),0,t):l.split(n,t):[]},Re.spread=function(l,n){if("function"!=typeof l)throw new Il(t);return n=null==n?0:he(Fi(n),0),xt((function(e){var t=e[n];e=eu(e,0,n);return t&&Tn(e,t),on(l,this,e)}))},Re.tail=function(l){var n=null==l?0:l.length;return n?Bt(l,1,n):[]},Re.take=function(l,n,t){return l&&l.length?Bt(l,0,(n=t||n===e?1:Fi(n))<0?0:n):[]},Re.takeRight=function(l,n,t){var u=null==l?0:l.length;return u?Bt(l,(n=u-(t||n===e?1:Fi(n)))<0?0:n,u):[]},Re.takeRightWhile=function(l,n){return l&&l.length?Vt(l,Gu(n,3),!1,!0):[]},Re.takeWhile=function(l,n){return l&&l.length?Vt(l,Gu(n,3)):[]},Re.tap=function(l,n){return n(l),l},Re.throttle=function(l,n,e){var u=!0,r=!0;if("function"!=typeof l)throw new Il(t);return vi(e)&&(u="leading"in e?!!e.leading:u,r="trailing"in e?!!e.trailing:r),ui(l,n,{leading:u,maxWait:n,trailing:r})},Re.thru=Hr,Re.toArray=xi,Re.toPairs=as,Re.toPairsIn=os,Re.toPath=function(l){return mi(l)?En(l,Tr):Li(l)?[l]:cu(Er($i(l)))},Re.toPlainObject=Yi,Re.transform=function(l,n,e){var t,u=mi(l),r=u||gi(l)||wi(l);return n=Gu(n,4),null==e&&(t=l&&l.constructor,e=r?u?new t:[]:vi(l)&&yi(t)?De(Zl(l)):{}),(r?hn:st)(l,(function(l,t,u){return n(e,l,t,u)})),e},Re.unary=function(l){return li(l,1)},Re.union=Or,Re.unionBy=kr,Re.unionWith=Rr,Re.uniq=function(l){return l&&l.length?jt(l):[]},Re.uniqBy=function(l,n){return l&&l.length?jt(l,Gu(n,2)):[]},Re.uniqWith=function(l,n){return n="function"==typeof n?n:e,l&&l.length?jt(l,e,n):[]},Re.unset=function(l,n){return null==l||Qt(l,n)},Re.unzip=Dr,Re.unzipWith=Lr,Re.update=function(l,n,e){return null==l?l:qt(l,n,Zt(e))},Re.updateWith=function(l,n,t,u){return u="function"==typeof u?u:e,null==l?l:qt(l,n,Zt(t),u)},Re.values=cs,Re.valuesIn=function(l){return null==l?[]:Mn(l,es(l))},Re.without=wr,Re.words=ys,Re.wrap=function(l,n){return ai(Zt(n),l)},Re.xor=Ur,Re.xorBy=Mr,Re.xorWith=xr,Re.zip=Pr,Re.zipObject=function(l,n){return zt(l||[],n||[],Ge)},Re.zipObjectDeep=function(l,n){return zt(l||[],n||[],Pt)},Re.zipWith=Fr,Re.entries=as,Re.entriesIn=os,Re.extend=Xi,Re.extendWith=ji,Ds(Re,Re),Re.add=$s,Re.attempt=Ss,Re.camelCase=hs,Re.capitalize=fs,Re.ceil=Gs,Re.clamp=function(l,n,t){return t===e&&(t=n,n=e),t!==e&&(t=(t=Hi(t))==t?t:0),n!==e&&(n=(n=Hi(n))==n?n:0),Ke(Hi(l),n,t)},Re.clone=function(l){return We(l,4)},Re.cloneDeep=function(l){return We(l,5)},Re.cloneDeepWith=function(l,n){return We(l,5,n="function"==typeof n?n:e)},Re.cloneWith=function(l,n){return We(l,4,n="function"==typeof n?n:e)},Re.conformsTo=function(l,n){return null==n||ze(l,n,ns(n))},Re.deburr=ps,Re.defaultTo=function(l,n){return null==l||l!=l?n:l},Re.divide=Xs,Re.endsWith=function(l,n,t){l=$i(l),n=Xt(n);var u=l.length;u=t=t===e?u:Ke(Fi(t),0,u);return 0<=(t-=n.length)&&l.slice(t,u)==n},Re.eq=hi,Re.escape=function(l){return(l=$i(l))&&Q.test(l)?l.replace(X,Hn):l},Re.escapeRegExp=function(l){return(l=$i(l))&&ll.test(l)?l.replace(Z,"\\$&"):l},Re.every=function(l,n,t){return(mi(l)?fn:function(l,n){var e=!0;return lt(l,(function(l,t,u){return e=!!n(l,t,u)})),e})(l,Gu(n=t&&lr(l,n,t)?e:n,3))},Re.find=Gr,Re.findIndex=Ar,Re.findKey=function(l,n){return Sn(l,Gu(n,3),st)},Re.findLast=Xr,Re.findLastIndex=yr,Re.findLastKey=function(l,n){return Sn(l,Gu(n,3),at)},Re.floor=js,Re.forEach=jr,Re.forEachRight=Qr,Re.forIn=function(l,n){return null==l?l:rt(l,Gu(n,3),es)},Re.forInRight=function(l,n){return null==l?l:it(l,Gu(n,3),es)},Re.forOwn=function(l,n){return l&&st(l,Gu(n,3))},Re.forOwnRight=function(l,n){return l&&at(l,Gu(n,3))},Re.get=Wi,Re.gt=fi,Re.gte=pi,Re.has=function(l,n){return null!=l&&Wu(l,n,dt)},Re.hasIn=zi,Re.head=br,Re.identity=Cs,Re.includes=function(l,n,e,t){return l=Ti(l)?l:cs(l),e=e&&!t?Fi(e):0,t=l.length,e<0&&(e=he(t+e,0)),Di(l)?e<=t&&-1=fe(n,e)&&l=this.__values__.length;return{done:l,value:l?e:this.__values__[this.__index__++]}},Re.prototype.plant=function(l){for(var n,t=this;t instanceof Le;){var u=gr(t),r=(u.__index__=0,u.__values__=e,n?r.__wrapped__=u:n=u,u);t=t.__wrapped__}return r.__wrapped__=l,n},Re.prototype.reverse=function(){var l=this.__wrapped__;return l instanceof Ue?((l=(l=this.__actions__.length?new Ue(this):l).reverse()).__actions__.push({func:Hr,args:[Cr],thisArg:e}),new we(l,this.__chain__)):this.thru(Cr)},Re.prototype.toJSON=Re.prototype.valueOf=Re.prototype.value=function(){return Kt(this.__wrapped__,this.__actions__)},Re.prototype.first=Re.prototype.head,Zn&&(Re.prototype[Zn]=function(){return this}),Re}();Zl?((Zl.exports=zn)._=zn,kl._=zn):Jl._=zn}).call(gr)})),dh=Sr((function(l,n){l.exports=function(l){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),!(n=!(n=!(n="undefined"!=typeof globalThis&&globalThis.crypto?globalThis.crypto:n)&&"undefined"!=typeof window&&window.msCrypto?window.msCrypto:n)&&void 0!==gr&&gr.crypto?gr.crypto:n))try{n=Zu}catch(l){}function e(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(l){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(l){}}throw new Error("Native crypto module could not be used to get secure random number.")}var t=Object.create||function(){function l(){}return function(n){return l.prototype=n,n=new l,l.prototype=null,n}}(),u={},r=u.lib={},i=r.Base={extend:function(l){var n=t(this);return l&&n.mixIn(l),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),(n.init.prototype=n).$super=this,n},create:function(){var l=this.extend();return l.init.apply(l,arguments),l},init:function(){},mixIn:function(l){for(var n in l)l.hasOwnProperty(n)&&(this[n]=l[n]);l.hasOwnProperty("toString")&&(this.toString=l.toString)},clone:function(){return this.init.prototype.extend(this)}},s=r.WordArray=i.extend({init:function(l,n){l=this.words=l||[],this.sigBytes=null!=n?n:4*l.length},toString:function(l){return(l||o).stringify(this)},concat:function(l){var n=this.words,e=l.words,t=this.sigBytes,u=l.sigBytes;if(this.clamp(),t%4)for(var r=0;r>>2]>>>24-r%4*8&255;n[t+r>>>2]|=i<<24-(t+r)%4*8}else for(var s=0;s>>2]=e[s>>>2];return this.sigBytes+=u,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=l.ceil(e/4)},clone:function(){var l=i.clone.call(this);return l.words=this.words.slice(0),l},random:function(l){for(var n=[],t=0;t>>2]>>>24-u%4*8&255;t.push((r>>>4).toString(16)),t.push((15&r).toString(16))}return t.join("")},parse:function(l){for(var n=l.length,e=[],t=0;t>>3]|=parseInt(l.substr(t,2),16)<<24-t%8*4;return new s.init(e,n/2)}},c=a.Latin1={stringify:function(l){for(var n=l.words,e=l.sigBytes,t=[],u=0;u>>2]>>>24-u%4*8&255;t.push(String.fromCharCode(r))}return t.join("")},parse:function(l){for(var n=l.length,e=[],t=0;t>>2]|=(255&l.charCodeAt(t))<<24-t%4*8;return new s.init(e,n)}},h=a.Utf8={stringify:function(l){try{return decodeURIComponent(escape(c.stringify(l)))}catch(l){throw new Error("Malformed UTF-8 data")}},parse:function(l){return c.parse(unescape(encodeURIComponent(l)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(l){"string"==typeof l&&(l=h.parse(l)),this._data.concat(l),this._nDataBytes+=l.sigBytes},_process:function(n){var e,t=this._data,u=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),o=(n?l.ceil(a):l.max((0|a)-this._minBufferSize,0))*i;n=l.min(4*o,r);if(o){for(var c=0;c>>2]|=l[u]<<24-u%4*8;n.call(this,t,e)}else n.apply(this,arguments)}).prototype=l)}(),e.lib.WordArray)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e.lib.WordArray,n=e.enc;function t(l){return l<<8&4278255360|l>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(l){for(var n=l.words,e=l.sigBytes,t=[],u=0;u>>2]>>>16-u%4*8&65535;t.push(String.fromCharCode(r))}return t.join("")},parse:function(n){for(var e=n.length,t=[],u=0;u>>1]|=n.charCodeAt(u)<<16-u%2*16;return l.create(t,2*e)}},n.Utf16LE={stringify:function(l){for(var n=l.words,e=l.sigBytes,u=[],r=0;r>>2]>>>16-r%4*8&65535);u.push(String.fromCharCode(i))}return u.join("")},parse:function(n){for(var e=n.length,u=[],r=0;r>>1]|=t(n.charCodeAt(r)<<16-r%2*16);return l.create(u,2*e)}}}(),e.enc.Utf16)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=l.lib.WordArray;function t(l,e,t){for(var u,r=[],i=0,s=0;s>>6-s%4*2,r[i>>>2]|=u<<24-i%4*8,i++);return n.create(r,i)}l.enc.Base64={stringify:function(l){var n=l.words,e=l.sigBytes,t=this._map;l.clamp();for(var u=[],r=0;r>>2]>>>24-r%4*8&255)<<16|(n[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|n[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s>>6*(3-s)&63));var a=t.charAt(64);if(a)for(;u.length%4;)u.push(a);return u.join("")},parse:function(l){var n=l.length,e=this._map;if(!(u=this._reverseMap))for(var u=this._reverseMap=[],r=0;r>>6-s%4*2,r[i>>>2]|=u<<24-i%4*8,i++);return n.create(r,i)}l.enc.Base64url={stringify:function(l,n=!0){var e=l.words,t=l.sigBytes,u=n?this._safe_map:this._map;l.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var o=u.charAt(64);if(o)for(;r.length%4;)r.push(o);return r.join("")},parse:function(l,n=!0){var e=l.length,u=n?this._safe_map:this._map;if(!(r=this._reverseMap))for(var r=this._reverseMap=[],i=0;i>>24)|4278255360&(u<<24|u>>>8)}var r=this._hash.words,h=l[n+0],f=l[n+1],p=l[n+2],d=l[n+3],m=l[n+4],E=l[n+5],T=l[n+6],_=l[n+7],g=l[n+8],A=l[n+9],y=l[n+10],S=l[n+11],b=l[n+12],v=l[n+13],N=l[n+14],I=l[n+15],C=s(r[0],R=r[1],k=r[2],O=r[3],h,7,i[0]),O=s(O,C,R,k,f,12,i[1]),k=s(k,O,C,R,p,17,i[2]),R=s(R,k,O,C,d,22,i[3]);C=s(C,R,k,O,m,7,i[4]),O=s(O,C,R,k,E,12,i[5]),k=s(k,O,C,R,T,17,i[6]),R=s(R,k,O,C,_,22,i[7]);C=s(C,R,k,O,g,7,i[8]),O=s(O,C,R,k,A,12,i[9]),k=s(k,O,C,R,y,17,i[10]),R=s(R,k,O,C,S,22,i[11]),C=s(C,R,k,O,b,7,i[12]),O=s(O,C,R,k,v,12,i[13]),k=s(k,O,C,R,N,17,i[14]),C=a(C,R=s(R,k,O,C,I,22,i[15]),k,O,f,5,i[16]),O=a(O,C,R,k,T,9,i[17]),k=a(k,O,C,R,S,14,i[18]),R=a(R,k,O,C,h,20,i[19]),C=a(C,R,k,O,E,5,i[20]),O=a(O,C,R,k,y,9,i[21]),k=a(k,O,C,R,I,14,i[22]),R=a(R,k,O,C,m,20,i[23]),C=a(C,R,k,O,A,5,i[24]),O=a(O,C,R,k,N,9,i[25]),k=a(k,O,C,R,d,14,i[26]),R=a(R,k,O,C,g,20,i[27]),C=a(C,R,k,O,v,5,i[28]),O=a(O,C,R,k,p,9,i[29]),k=a(k,O,C,R,_,14,i[30]),C=o(C,R=a(R,k,O,C,b,20,i[31]),k,O,E,4,i[32]),O=o(O,C,R,k,g,11,i[33]),k=o(k,O,C,R,S,16,i[34]),R=o(R,k,O,C,N,23,i[35]),C=o(C,R,k,O,f,4,i[36]),O=o(O,C,R,k,m,11,i[37]),k=o(k,O,C,R,_,16,i[38]),R=o(R,k,O,C,y,23,i[39]),C=o(C,R,k,O,v,4,i[40]),O=o(O,C,R,k,h,11,i[41]),k=o(k,O,C,R,d,16,i[42]),R=o(R,k,O,C,T,23,i[43]),C=o(C,R,k,O,A,4,i[44]),O=o(O,C,R,k,b,11,i[45]),k=o(k,O,C,R,I,16,i[46]),C=c(C,R=o(R,k,O,C,p,23,i[47]),k,O,h,6,i[48]),O=c(O,C,R,k,_,10,i[49]),k=c(k,O,C,R,N,15,i[50]),R=c(R,k,O,C,E,21,i[51]),C=c(C,R,k,O,b,6,i[52]),O=c(O,C,R,k,d,10,i[53]),k=c(k,O,C,R,y,15,i[54]),R=c(R,k,O,C,f,21,i[55]),C=c(C,R,k,O,g,6,i[56]),O=c(O,C,R,k,I,10,i[57]),k=c(k,O,C,R,T,15,i[58]),R=c(R,k,O,C,v,21,i[59]),C=c(C,R,k,O,m,6,i[60]),O=c(O,C,R,k,S,10,i[61]),k=c(k,O,C,R,p,15,i[62]),R=c(R,k,O,C,A,21,i[63]),r[0]=r[0]+C|0,r[1]=r[1]+R|0,r[2]=r[2]+k|0,r[3]=r[3]+O|0},_doFinalize:function(){var n=this._data,e=n.words,t=8*this._nDataBytes,u=8*n.sigBytes,r=(e[u>>>5]|=128<<24-u%32,l.floor(t/4294967296));e[15+(64+u>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e[14+(64+u>>>9<<4)]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),n.sigBytes=4*(e.length+1),this._process();for(var i=(r=this._hash).words,s=0;s<4;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});function s(l,n,e,t,u,r,i){return((l=l+(n&e|~n&t)+u+i)<>>32-r)+n}function a(l,n,e,t,u,r,i){return((l=l+(n&t|e&~t)+u+i)<>>32-r)+n}function o(l,n,e,t,u,r,i){return((l=l+(n^e^t)+u+i)<>>32-r)+n}function c(l,n,e,t,u,r,i){return((l=l+(e^(n|~t))+u+i)<>>32-r)+n}n.MD5=u._createHelper(r),n.HmacMD5=u._createHmacHelper(r)}(Math),e.MD5)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=(u=l.lib).WordArray,t=u.Hasher,u=l.algo,r=[];u=u.SHA1=t.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,n){for(var e=this._hash.words,t=e[0],u=e[1],i=e[2],s=e[3],a=e[4],o=0;o<80;o++){r[o]=o<16?0|l[n+o]:(c=r[o-3]^r[o-8]^r[o-14]^r[o-16])<<1|c>>>31;var c=(t<<5|t>>>27)+a+r[o];c+=o<20?1518500249+(u&i|~u&s):o<40?1859775393+(u^i^s):o<60?(u&i|u&s|i&s)-1894007588:(u^i^s)-899497514,a=s,s=i,i=u<<30|u>>>2,u=t,t=c}e[0]=e[0]+t|0,e[1]=e[1]+u|0,e[2]=e[2]+i|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0},_doFinalize:function(){var l=this._data,n=l.words,e=8*this._nDataBytes,t=8*l.sigBytes;return n[t>>>5]|=128<<24-t%32,n[14+(64+t>>>9<<4)]=Math.floor(e/4294967296),n[15+(64+t>>>9<<4)]=e,l.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var l=t.clone.call(this);return l._hash=this._hash.clone(),l}});l.SHA1=t._createHelper(u),l.HmacSHA1=t._createHmacHelper(u)}(),e.SHA1)})),Sr((function(l,n){var e;l.exports=(e=dh,function(l){var n=e,t=(r=n.lib).WordArray,u=r.Hasher,r=n.algo,i=[],s=[],a=(function(){function n(l){return 4294967296*(l-(0|l))|0}for(var e=2,t=0;t<64;)!function(n){for(var e=l.sqrt(n),t=2;t<=e;t++)if(!(n%t))return;return 1}(e)||(t<8&&(i[t]=n(l.pow(e,.5))),s[t]=n(l.pow(e,1/3)),t++),e++}(),[]);r=r.SHA256=u.extend({_doReset:function(){this._hash=new t.init(i.slice(0))},_doProcessBlock:function(l,n){for(var e=this._hash.words,t=e[0],u=e[1],r=e[2],i=e[3],o=e[4],c=e[5],h=e[6],f=e[7],p=0;p<64;p++){a[p]=p<16?0|l[n+p]:(((d=a[p-15])<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+a[p-7]+(((d=a[p-2])<<15|d>>>17)^(d<<13|d>>>19)^d>>>10)+a[p-16];var d=t&u^t&r^u&r,m=f+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&c^~o&h)+s[p]+a[p];f=h,h=c,c=o,o=i+m|0,i=r,r=u,u=t,t=m+(((t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22))+d)|0}e[0]=e[0]+t|0,e[1]=e[1]+u|0,e[2]=e[2]+r|0,e[3]=e[3]+i|0,e[4]=e[4]+o|0,e[5]=e[5]+c|0,e[6]=e[6]+h|0,e[7]=e[7]+f|0},_doFinalize:function(){var n=this._data,e=n.words,t=8*this._nDataBytes,u=8*n.sigBytes;return e[u>>>5]|=128<<24-u%32,e[14+(64+u>>>9<<4)]=l.floor(t/4294967296),e[15+(64+u>>>9<<4)]=t,n.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA256=u._createHelper(r),n.HmacSHA256=u._createHmacHelper(r)}(Math),e.SHA256)})),Sr((function(l,n){var e,t,u,r;l.exports=(t=(e=l=dh).lib.WordArray,r=e.algo,u=r.SHA256,r=r.SHA224=u.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=u._doFinalize.call(this);return l.sigBytes-=4,l}}),e.SHA224=u._createHelper(r),e.HmacSHA224=u._createHmacHelper(r),l.SHA224)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=l.lib.Hasher,t=(r=l.x64).Word,u=r.WordArray,r=l.algo;function i(){return t.create.apply(t,arguments)}var s=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],a=[];(function(){for(var l=0;l<80;l++)a[l]=i()})(),r=r.SHA512=n.extend({_doReset:function(){this._hash=new u.init([new t.init(1779033703,4089235720),new t.init(3144134277,2227873595),new t.init(1013904242,4271175723),new t.init(2773480762,1595750129),new t.init(1359893119,2917565137),new t.init(2600822924,725511199),new t.init(528734635,4215389547),new t.init(1541459225,327033209)])},_doProcessBlock:function(l,n){for(var e=(h=this._hash.words)[0],t=h[1],u=h[2],r=h[3],i=h[4],o=h[5],c=h[6],h=h[7],f=e.high,p=e.low,d=t.high,m=t.low,E=u.high,T=u.low,_=r.high,g=r.low,A=i.high,y=i.low,S=o.high,b=o.low,v=c.high,N=c.low,I=h.high,C=h.low,O=f,k=p,R=d,D=m,L=E,w=T,U=_,M=g,x=A,P=y,F=S,B=b,H=v,Y=N,$=I,G=C,X=0;X<80;X++){var j,Q,q=a[X];X<16?(Q=q.high=0|l[n+2*X],j=q.low=0|l[n+2*X+1]):(z=(Z=a[X-15]).high,Z=Z.low,W=(K=a[X-2]).high,K=K.low,Q=(Q=(Q=((z>>>1|Z<<31)^(z>>>8|Z<<24)^z>>>7)+(J=a[X-7]).high+((j=(Z=(Z>>>1|z<<31)^(Z>>>8|z<<24)^(Z>>>7|z<<25))+J.low)>>>0>>0?1:0))+((W>>>19|K<<13)^(W<<3|K>>>29)^W>>>6)+((j+=z=(K>>>19|W<<13)^(K<<3|W>>>29)^(K>>>6|W<<26))>>>0>>0?1:0))+(J=a[X-16]).high+((j+=Z=J.low)>>>0>>0?1:0),q.high=Q,q.low=j);var V,K=x&F^~x&H,W=P&B^~P&Y,z=O&R^O&L^R&L,J=(k>>>28|O<<4)^(k<<30|O>>>2)^(k<<25|O>>>7),Z=s[X],ll=(q=Z.high,Z.low),nl=$+((x>>>14|P<<18)^(x>>>18|P<<14)^(x<<23|P>>>9))+((V=G+((P>>>14|x<<18)^(P>>>18|x<<14)^(P<<23|x>>>9)))>>>0>>0?1:0),el=J+(k&D^k&w^D&w);$=H,G=Y,H=F,Y=B,F=x,B=P,x=U+(nl=nl+K+((V+=W)>>>0>>0?1:0)+q+((V+=ll)>>>0>>0?1:0)+Q+((V+=j)>>>0>>0?1:0))+((P=M+V|0)>>>0>>0?1:0)|0,U=L,M=w,L=R,w=D,R=O,D=k,O=nl+(((O>>>28|k<<4)^(O<<30|k>>>2)^(O<<25|k>>>7))+z+(el>>>0>>0?1:0))+((k=V+el|0)>>>0>>0?1:0)|0}p=e.low=p+k,e.high=f+O+(p>>>0>>0?1:0),m=t.low=m+D,t.high=d+R+(m>>>0>>0?1:0),T=u.low=T+w,u.high=E+L+(T>>>0>>0?1:0),g=r.low=g+M,r.high=_+U+(g>>>0>>0?1:0),y=i.low=y+P,i.high=A+x+(y>>>0

>>0?1:0),b=o.low=b+B,o.high=S+F+(b>>>0>>0?1:0),N=c.low=N+Y,c.high=v+H+(N>>>0>>0?1:0),C=h.low=C+G,h.high=I+$+(C>>>0>>0?1:0)},_doFinalize:function(){var l=this._data,n=l.words,e=8*this._nDataBytes,t=8*l.sigBytes;return n[t>>>5]|=128<<24-t%32,n[30+(128+t>>>10<<5)]=Math.floor(e/4294967296),n[31+(128+t>>>10<<5)]=e,l.sigBytes=4*n.length,this._process(),this._hash.toX32()},clone:function(){var l=n.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:32});l.SHA512=n._createHelper(r),l.HmacSHA512=n._createHmacHelper(r)}(),e.SHA512)})),Sr((function(l,n){var e,t,u,r,i;l.exports=(i=(e=l=dh).x64,t=i.Word,u=i.WordArray,i=e.algo,r=i.SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new u.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var l=r._doFinalize.call(this);return l.sigBytes-=16,l}}),e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i),l.SHA384)})),Sr((function(l,n){var e;l.exports=(e=dh,function(l){var n=e,t=(i=n.lib).WordArray,u=i.Hasher,r=n.x64.Word,i=n.algo,s=[],a=[],o=[],c=(function(){for(var l=1,n=0,e=0;e<24;e++){s[l+5*n]=(e+1)*(e+2)/2%64;var t=(2*l+3*n)%5;l=n%5,n=t}for(l=0;l<5;l++)for(n=0;n<5;n++)a[l+5*n]=n+(2*l+3*n)%5*5;for(var u=1,i=0;i<24;i++){for(var c,h=0,f=0,p=0;p<7;p++)1&u&&((c=(1<>>24)|4278255360&(r<<24|r>>>8);(I=e[u]).high^=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),I.low^=r}for(var h=0;h<24;h++){for(var f=0;f<5;f++){for(var p=0,d=0,m=0;m<5;m++)p^=(I=e[f+5*m]).high,d^=I.low;var E=c[f];E.high=p,E.low=d}for(f=0;f<5;f++){var T=c[(f+4)%5],_=(g=c[(f+1)%5]).high,g=g.low;for(p=T.high^(_<<1|g>>>31),d=T.low^(g<<1|_>>>31),m=0;m<5;m++)(I=e[f+5*m]).high^=p,I.low^=d}for(var A=1;A<25;A++){var y=(I=e[A]).high,S=I.low,b=s[A];d=b<32?(p=y<>>32-b,S<>>32-b):(p=S<>>64-b,y<>>64-b),(y=c[a[A]]).high=p,y.low=d}var v=c[0],N=e[0];for(v.high=N.high,v.low=N.low,f=0;f<5;f++)for(m=0;m<5;m++){var I=e[A=f+5*m],C=c[A],O=c[(f+1)%5+5*m],k=c[(f+2)%5+5*m];I.high=C.high^~O.high&k.high,I.low=C.low^~O.low&k.low}(I=e[0]).high^=(v=o[h]).high,I.low^=v.low}},_doFinalize:function(){var n=this._data,e=n.words,u=(this._nDataBytes,8*n.sigBytes),r=32*this.blockSize;e[u>>>5]|=1<<24-u%32,e[(l.ceil((1+u)/r)*r>>>5)-1]|=128,n.sigBytes=4*e.length,this._process();for(var i=this._state,s=(u=this.cfg.outputLength/8)/8,a=[],o=0;o>>24)|4278255360&(c<<24|c>>>8);a.push(16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)),a.push(c)}return new t.init(a,u)},clone:function(){for(var l=u.clone.call(this),n=l._state=this._state.slice(0),e=0;e<25;e++)n[e]=n[e].clone();return l}});n.SHA3=u._createHelper(i),n.HmacSHA3=u._createHmacHelper(i)}(Math),e.SHA3)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=(u=l.lib).WordArray,t=u.Hasher,u=l.algo,r=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),i=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=n.create([0,1518500249,1859775393,2400959708,2840853838]),c=n.create([1352829926,1548603684,1836072691,2053994217,0]);u=u.RIPEMD160=t.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,n){for(var e=0;e<16;e++){var t=n+e,u=l[t];l[t]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}var d,m,E,T,_,g,A=this._hash.words,y=o.words,S=c.words,b=r.words,v=i.words,N=s.words,I=a.words,C=d=A[0],O=m=A[1],k=E=A[2],R=T=A[3],D=_=A[4];for(e=0;e<80;e+=1)g=(g=p(g=(g=d+l[n+b[e]]|0)+(e<16?(m^E^T)+y[0]:e<32?h(m,E,T)+y[1]:e<48?((m|~E)^T)+y[2]:e<64?f(m,E,T)+y[3]:(m^(E|~T))+y[4])|0,N[e]))+_|0,d=_,_=T,T=p(E,10),E=m,m=g,g=(g=p(g=(g=C+l[n+v[e]]|0)+(e<16?(O^(k|~R))+S[0]:e<32?f(O,k,R)+S[1]:e<48?((O|~k)^R)+S[2]:e<64?h(O,k,R)+S[3]:(O^k^R)+S[4])|0,I[e]))+D|0,C=D,D=R,R=p(k,10),k=O,O=g;g=A[1]+E+R|0,A[1]=A[2]+T+D|0,A[2]=A[3]+_+C|0,A[3]=A[4]+d+O|0,A[4]=A[0]+m+k|0,A[0]=g},_doFinalize:function(){var l=this._data,n=l.words,e=8*this._nDataBytes,t=8*l.sigBytes;n[t>>>5]|=128<<24-t%32,n[14+(64+t>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),l.sigBytes=4*(n.length+1),this._process();for(var u=(t=this._hash).words,r=0;r<5;r++){var i=u[r];u[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}return t},clone:function(){var l=t.clone.call(this);return l._hash=this._hash.clone(),l}});function h(l,n,e){return l&n|~l&e}function f(l,n,e){return l&e|n&~e}function p(l,n){return l<>>32-n}l.RIPEMD160=t._createHelper(u),l.HmacRIPEMD160=t._createHmacHelper(u)}(),e.RIPEMD160)})),Sr((function(l,n){var e;l.exports=(l=dh.lib.Base,e=dh.enc.Utf8,void(dh.algo.HMAC=l.extend({init:function(l,n){l=this._hasher=new l.init,"string"==typeof n&&(n=e.parse(n));var t=l.blockSize,u=4*t;(n=n.sigBytes>u?l.finalize(n):n).clamp();l=this._oKey=n.clone(),n=this._iKey=n.clone();for(var r=l.words,i=n.words,s=0;s>>2];l.sigBytes-=n}}),f=(n.BlockCipher=a.extend({cfg:a.cfg.extend({mode:o,padding:h}),reset:function(){a.reset.call(this);var l,n=(e=this.cfg).iv,e=e.mode;this._xformMode==this._ENC_XFORM_MODE?l=e.createEncryptor:(l=e.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==l?this._mode.init(this,n&&n.words):(this._mode=l.call(e,this,n&&n.words),this._mode.__creator=l)},_doProcessBlock:function(l,n){this._mode.processBlock(l,n)},_doFinalize:function(){var l,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),l=this._process(!0)):(l=this._process(!0),n.unpad(l)),l},blockSize:4}),n.CipherParams=t.extend({init:function(l){this.mixIn(l)},toString:function(l){return(l||this.formatter).stringify(this)}})),p=(o=(l.format={}).OpenSSL={stringify:function(l){var n=l.ciphertext;return((l=l.salt)?u.create([1398893684,1701076831]).concat(l).concat(n):n).toString(i)},parse:function(l){var n,e=(l=i.parse(l)).words;return 1398893684==e[0]&&1701076831==e[1]&&(n=u.create(e.slice(2,4)),e.splice(0,4),l.sigBytes-=16),f.create({ciphertext:l,salt:n})}},n.SerializableCipher=t.extend({cfg:t.extend({format:o}),encrypt:function(l,n,e,t){t=this.cfg.extend(t);n=(u=l.createEncryptor(e,t)).finalize(n);var u=u.cfg;return f.create({ciphertext:n,key:e,iv:u.iv,algorithm:l,mode:u.mode,padding:u.padding,blockSize:l.blockSize,formatter:t.format})},decrypt:function(l,n,e,t){return t=this.cfg.extend(t),n=this._parse(n,t.format),l.createDecryptor(e,t).finalize(n.ciphertext)},_parse:function(l,n){return"string"==typeof l?n.parse(l,this):l}})),d=(h=(l.kdf={}).OpenSSL={execute:function(l,n,e,t){return t=t||u.random(8),l=s.create({keySize:n+e}).compute(l,t),e=u.create(l.words.slice(n),4*e),l.sigBytes=4*n,f.create({key:l,iv:e,salt:t})}},n.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:h}),encrypt:function(l,n,e,t){return e=(t=this.cfg.extend(t)).kdf.execute(e,l.keySize,l.ivSize),t.iv=e.iv,(l=p.encrypt.call(this,l,n,e.key,t)).mixIn(e),l},decrypt:function(l,n,e,t){return t=this.cfg.extend(t),n=this._parse(n,t.format),e=t.kdf.execute(e,l.keySize,l.ivSize,n.salt),t.iv=e.iv,p.decrypt.call(this,l,n,e.key,t)}}));function m(l){return"string"==typeof l?d:p}}())})),Sr((function(l,n){var e;l.exports=((e=dh).mode.CFB=function(){var l=e.lib.BlockCipherMode.extend();function n(l,n,e,t){var u,r=this._iv;r?(u=r.slice(0),this._iv=void 0):u=this._prevBlock,t.encryptBlock(u,0);for(var i=0;i>24)?l+=1<<24:(e=l>>8&255,t=255&l,255==(n=l>>16&255)?(n=0,255===e?(e=0,255===t?t=0:++t):++e):++n,l=0,l=(l+=n<<16)+(e<<8)+t),l}function t(l){0===(l[0]=n(l[0]))&&(l[1]=n(l[1]))}var u=l.Encryptor=l.extend({processBlock:function(l,n){var e=this._cipher,u=e.blockSize,r=this._iv,i=this._counter,s=(r&&(i=this._counter=r.slice(0),this._iv=void 0),t(i),i.slice(0));e.encryptBlock(s,0);for(var a=0;a>>2]|=n<<24-e%4*8,l.sigBytes+=n},unpad:function(l){var n=255&l.words[l.sigBytes-1>>>2];l.sigBytes-=n}},dh.pad.Ansix923)})),Sr((function(l,n){var e;l.exports=((e=dh).pad.Iso10126={pad:function(l,n){n=(n*=4)-l.sigBytes%n,l.concat(e.lib.WordArray.random(n-1)).concat(e.lib.WordArray.create([n<<24],1))},unpad:function(l){var n=255&l.words[l.sigBytes-1>>>2];l.sigBytes-=n}},e.pad.Iso10126)})),Sr((function(l,n){var e;l.exports=((e=dh).pad.Iso97971={pad:function(l,n){l.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(l,n)},unpad:function(l){e.pad.ZeroPadding.unpad(l),l.sigBytes--}},e.pad.Iso97971)})),Sr((function(l,n){l.exports=(dh.pad.ZeroPadding={pad:function(l,n){n*=4,l.clamp(),l.sigBytes+=n-(l.sigBytes%n||n)},unpad:function(l){var n=l.words,e=l.sigBytes-1;for(e=l.sigBytes-1;0<=e;e--)if(n[e>>>2]>>>24-e%4*8&255){l.sigBytes=e+1;break}}},dh.pad.ZeroPadding)})),Sr((function(l,n){l.exports=(dh.pad.NoPadding={pad:function(){},unpad:function(){}},dh.pad.NoPadding)})),Sr((function(l,n){var e,t;l.exports=(e=(l=dh).lib.CipherParams,t=l.enc.Hex,l.format.Hex={stringify:function(l){return l.ciphertext.toString(t)},parse:function(l){return l=t.parse(l),e.create({ciphertext:l})}},l.format.Hex)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=l.lib.BlockCipher,t=l.algo,u=[],r=[],i=[],s=[],a=[],o=[],c=[],h=[],f=[],p=[],d=(function(){for(var l=[],n=0;n<256;n++)l[n]=n<128?n<<1:n<<1^283;var e=0,t=0;for(n=0;n<256;n++){var d=t^t<<1^t<<2^t<<3^t<<4,m=(u[e]=d=d>>>8^255&d^99,l[r[d]=e]),E=l[m],T=l[E],_=257*l[d]^16843008*d;i[e]=_<<24|_>>>8,s[e]=_<<16|_>>>16,a[e]=_<<8|_>>>24,o[e]=_,c[d]=(_=16843009*T^65537*E^257*m^16843008*e)<<24|_>>>8,h[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,e?(e=m^l[l[l[T^m]]],t^=l[l[t]]):e=t=1}}(),[0,1,2,4,8,16,32,64,128,27,54]);t=t.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var l=this._keyPriorReset=this._key,n=l.words,e=l.sigBytes/4,t=4*(1+(this._nRounds=6+e)),r=this._keySchedule=[],i=0;i>>24]<<24|u[o>>>16&255]<<16|u[o>>>8&255]<<8|u[255&o]):(o=u[(o=o<<8|o>>>24)>>>24]<<24|u[o>>>16&255]<<16|u[o>>>8&255]<<8|u[255&o],o^=d[i/e|0]<<24),r[i]=r[i-e]^o);for(var s=this._invKeySchedule=[],a=0;a>>24]]^h[u[o>>>16&255]]^f[u[o>>>8&255]]^p[u[255&o]]}}},encryptBlock:function(l,n){this._doCryptBlock(l,n,this._keySchedule,i,s,a,o,u)},decryptBlock:function(l,n){var e=l[n+1];l[n+1]=l[n+3],l[n+3]=e,this._doCryptBlock(l,n,this._invKeySchedule,c,h,f,p,r),e=l[n+1],l[n+1]=l[n+3],l[n+3]=e},_doCryptBlock:function(l,n,e,t,u,r,i,s){for(var a=this._nRounds,o=l[n]^e[0],c=l[n+1]^e[1],h=l[n+2]^e[2],f=l[n+3]^e[3],p=4,d=1;d>>24]^u[c>>>16&255]^r[h>>>8&255]^i[255&f]^e[p++],E=t[c>>>24]^u[h>>>16&255]^r[f>>>8&255]^i[255&o]^e[p++],T=t[h>>>24]^u[f>>>16&255]^r[o>>>8&255]^i[255&c]^e[p++],_=t[f>>>24]^u[o>>>16&255]^r[c>>>8&255]^i[255&h]^e[p++];o=m,c=E,h=T,f=_}m=(s[o>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^e[p++],E=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&o])^e[p++],T=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[o>>>8&255]<<8|s[255&c])^e[p++],_=(s[f>>>24]<<24|s[o>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^e[p++],l[n]=m,l[n+1]=E,l[n+2]=T,l[n+3]=_},keySize:8});l.AES=n._createHelper(t)}(),e.AES)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=(t=l.lib).WordArray,t=t.BlockCipher,u=l.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],i=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],a=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],o=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=u.DES=t.extend({_doReset:function(){for(var l=this._key.words,n=[],e=0;e<56;e++){var t=r[e]-1;n[e]=l[t>>>5]>>>31-t%32&1}for(var u=this._subKeys=[],a=0;a<16;a++){var o=u[a]=[],c=s[a];for(e=0;e<24;e++)o[e/6|0]|=n[(i[e]-1+c)%28]<<31-e%6,o[4+(e/6|0)]|=n[28+(i[e+24]-1+c)%28]<<31-e%6;for(o[0]=o[0]<<1|o[0]>>>31,e=1;e<7;e++)o[e]=o[e]>>>4*(e-1)+3;o[7]=o[7]<<5|o[7]>>>27}var h=this._invSubKeys=[];for(e=0;e<16;e++)h[e]=u[15-e]},encryptBlock:function(l,n){this._doCryptBlock(l,n,this._subKeys)},decryptBlock:function(l,n){this._doCryptBlock(l,n,this._invSubKeys)},_doCryptBlock:function(l,n,e){this._lBlock=l[n],this._rBlock=l[n+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var t=0;t<16;t++){for(var u=e[t],r=this._lBlock,i=this._rBlock,s=0,c=0;c<8;c++)s|=a[c][((i^u[c])&o[c])>>>0];this._lBlock=i,this._rBlock=r^s}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),l[n]=this._lBlock,l[n+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(l,n){n=(this._lBlock>>>l^this._rBlock)&n,this._rBlock^=n,this._lBlock^=n<>>l^this._lBlock)&n,this._lBlock^=n,this._rBlock^=n<192.");var l=t.slice(0,2),e=t.length<4?t.slice(0,2):t.slice(2,4),t=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=c.createEncryptor(n.create(l)),this._des2=c.createEncryptor(n.create(e)),this._des3=c.createEncryptor(n.create(t))},encryptBlock:function(l,n){this._des1.encryptBlock(l,n),this._des2.decryptBlock(l,n),this._des3.encryptBlock(l,n)},decryptBlock:function(l,n){this._des3.decryptBlock(l,n),this._des2.encryptBlock(l,n),this._des1.decryptBlock(l,n)},keySize:6,ivSize:2,blockSize:2}),l.TripleDES=t._createHelper(u)}(),e.TripleDES)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=l.lib.StreamCipher,t=l.algo,u=t.RC4=n.extend({_doReset:function(){for(var l=this._key,n=l.words,e=l.sigBytes,t=this._S=[],u=0;u<256;u++)t[u]=u;u=0;for(var r=0;u<256;u++){var i=n[(i=u%e)>>>2]>>>24-i%4*8&255;r=(r+t[u]+i)%256,i=t[u];t[u]=t[r],t[r]=i}this._i=this._j=0},_doProcessBlock:function(l,n){l[n]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var l=this._S,n=this._i,e=this._j,t=0,u=0;u<4;u++){e=(e+l[n=(n+1)%256])%256;var r=l[n];l[n]=l[e],l[e]=r,t|=l[(l[n]+l[e])%256]<<24-8*u}return this._i=n,this._j=e,t}l.RC4=n._createHelper(u),t=t.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var l=this.cfg.drop;0>>24)|4278255360&(l[e]<<24|l[e]>>>8);var t=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],u=this._C=[l[2]<<16|l[2]>>>16,4294901760&l[0]|65535&l[1],l[3]<<16|l[3]>>>16,4294901760&l[1]|65535&l[2],l[0]<<16|l[0]>>>16,4294901760&l[2]|65535&l[3],l[1]<<16|l[1]>>>16,4294901760&l[3]|65535&l[0]];for(e=this._b=0;e<4;e++)s.call(this);for(e=0;e<8;e++)u[e]^=t[e+4&7];if(n){var r=(n=n.words)[0],i=(r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8))>>>16|4294901760&(n=16711935&((n=n[1])<<8|n>>>24)|4278255360&(n<<24|n>>>8)),a=n<<16|65535&r;for(u[0]^=r,u[1]^=i,u[2]^=n,u[3]^=a,u[4]^=r,u[5]^=i,u[6]^=n,u[7]^=a,e=0;e<4;e++)s.call(this)}},_doProcessBlock:function(l,n){var e=this._X;s.call(this),u[0]=e[0]^e[5]>>>16^e[3]<<16,u[1]=e[2]^e[7]>>>16^e[5]<<16,u[2]=e[4]^e[1]>>>16^e[7]<<16,u[3]=e[6]^e[3]>>>16^e[1]<<16;for(var t=0;t<4;t++)u[t]=16711935&(u[t]<<8|u[t]>>>24)|4278255360&(u[t]<<24|u[t]>>>8),l[n+t]^=u[t]},blockSize:4,ivSize:2});function s(){for(var l=this._X,n=this._C,e=0;e<8;e++)r[e]=n[e];for(n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0>>0?1:0)|0,this._b=n[7]>>>0>>0?1:0,e=0;e<8;e++){var t=l[e]+n[e],u=65535&t,s=t>>>16;i[e]=((u*u>>>17)+u*s>>>15)+s*s^((4294901760&t)*t|0)+((65535&t)*t|0)}l[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,l[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,l[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,l[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,l[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,l[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,l[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,l[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}l.Rabbit=n._createHelper(t)}(),e.Rabbit)})),Sr((function(l,n){var e;l.exports=(e=dh,function(){var l=e,n=l.lib.StreamCipher,t=l.algo,u=[],r=[],i=[];t=t.RabbitLegacy=n.extend({_doReset:function(){for(var l=this._key.words,n=this.cfg.iv,e=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],t=this._C=[l[2]<<16|l[2]>>>16,4294901760&l[0]|65535&l[1],l[3]<<16|l[3]>>>16,4294901760&l[1]|65535&l[2],l[0]<<16|l[0]>>>16,4294901760&l[2]|65535&l[3],l[1]<<16|l[1]>>>16,4294901760&l[3]|65535&l[0]],u=this._b=0;u<4;u++)s.call(this);for(u=0;u<8;u++)t[u]^=e[u+4&7];if(n){var r=(n=16711935&((n=(l=n.words)[0])<<8|n>>>24)|4278255360&(n<<24|n>>>8))>>>16|4294901760&(l=16711935&((l=l[1])<<8|l>>>24)|4278255360&(l<<24|l>>>8)),i=l<<16|65535&n;for(t[0]^=n,t[1]^=r,t[2]^=l,t[3]^=i,t[4]^=n,t[5]^=r,t[6]^=l,t[7]^=i,u=0;u<4;u++)s.call(this)}},_doProcessBlock:function(l,n){var e=this._X;s.call(this),u[0]=e[0]^e[5]>>>16^e[3]<<16,u[1]=e[2]^e[7]>>>16^e[5]<<16,u[2]=e[4]^e[1]>>>16^e[7]<<16,u[3]=e[6]^e[3]>>>16^e[1]<<16;for(var t=0;t<4;t++)u[t]=16711935&(u[t]<<8|u[t]>>>24)|4278255360&(u[t]<<24|u[t]>>>8),l[n+t]^=u[t]},blockSize:4,ivSize:2});function s(){for(var l=this._X,n=this._C,e=0;e<8;e++)r[e]=n[e];for(n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0>>0?1:0)|0,this._b=n[7]>>>0>>0?1:0,e=0;e<8;e++){var t=l[e]+n[e],u=65535&t,s=t>>>16;i[e]=((u*u>>>17)+u*s>>>15)+s*s^((4294901760&t)*t|0)+((65535&t)*t|0)}l[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,l[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,l[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,l[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,l[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,l[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,l[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,l[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}l.RabbitLegacy=n._createHelper(t)}(),e.RabbitLegacy)})),Sr((function(l,n){l.exports=dh}))),_h=function(l,n,e,t){return"string"==typeof(l="undefined"!=typeof Buffer&&Buffer.isBuffer(l)?l.toString():l)?function(l,n,e,t){return n.xmlMode||n._useHtmlParser2?function(l,n){var e=new w$1(void 0,n);return new va(e,n).end(l),e.root}(l,n):ta(l,n,e,t)}(l,n,e,t):(n=l,!Array.isArray(n)&&O$1(n)?n:(Bn(n,e=new v$1([])),e))},Eh=function(l){return function n(e,t,u){if(void 0===u&&(u=!0),null==e)throw new Error("cheerio.load() expects a string");var r=rr(rr({},n$1),i$1(t)),i=l(e,r,u,null),s=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return nr(e,n),e.prototype._make=function(l,n){return(l=a(l,n)).prevObject=this,l},e.prototype._parse=function(n,e,t,u){return l(n,e,t,u)},e.prototype._render=function(l){return function(l,n){return n.xmlMode||n._useHtmlParser2?W$1(l,n):function(l){for(var n,e=("length"in l?l:[l]),t=0;t{l.forEach((l=>{l.labels.forEach((l=>{}))}))})),encodings.forEach((({heading:l,encodings:n})=>{"Legacy single-byte encodings"==l&&n.forEach((l=>{index(l.name.toLowerCase())}))}));let CHROME="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36",RESOURCEURL="https://gh.con.sh/https://raw.githubusercontent.com/jadehh/TV/js";function isNumeric(l){return!isNaN(parseInt(l))}function getSize(l){return l<=0?"":l>1099511627776?(l/=1099511627776).toFixed(2)+"TB":l>1073741824?(l/=1073741824).toFixed(2)+"GB":l>1048576?(l/=1048576).toFixed(2)+"MB":(l/=1024).toFixed(2)+"KB"}function objectToStr(l=null,n=!1){let e=[];if(null!==l)for(const t of Object.keys(l))n?e.push(`${t}=${encodeURIComponent(l[t])}`):e.push(`${t}=${l[t]}`);return e.join("&")}function sleep(l){const n=(new Date).getTime();for(;(new Date).getTime()-n<1e3*l;);}function getStrByRegexDefault(l,n){let e=l.exec(n);return null!==e&&e.length>=1&&e.length>=1?e[1]:n}function base64Decode(l){return Ch.enc.Utf8.stringify(Ch.enc.Base64.parse(l))}function lcs(l,n){if(!l||!n)return{length:0,sequence:"",offset:0};for(var e="",t=l.length,u=n.length,r=new Array(t),i=0,s=0,a=0;ai&&(i=r[a][c],s===(h=a-r[a][c]+1)?e+=l[a]:(s=h,e="",e+=l.substr(s,a+1-s))));return{length:i,sequence:e,offset:h}}function findAllIndexes(l,n){const e=l.map(((l,n)=>n)).filter((e=>l[e]===n));return e}class VodShort{constructor(){this.vod_id="",this.vod_name="",this.vod_pic=RESOURCEURL+"/resources/ali.jpg",this.vod_remarks=""}to_dict(){return JSON.stringify(this)}load_dic(l){let n=JSON.parse(l);for(let l in n)this[l]=n[l]}load_data(l){for(let n in JSON.parse(this.to_dict()))this[n]=l[n]}}class VodDetail extends VodShort{constructor(){super(),this.type_name="",this.vod_year="",this.vod_area="",this.vod_actor="",this.vod_director="",this.vod_content="",this.vod_play_from="",this.vod_play_url=""}to_short(){let l=new VodShort;return l.load_dic(this.to_dict()),l}load_dic(l){let n=JSON.parse(l);for(let l in JSON.parse(this.to_dict()))this[l]=n[l]}}const level_list=["DEBUG","INFO","WARNING","ERROR"],file_path="log";class JadeLogging{constructor(l,n="DEBUG"){this.app_name=l,this.level=n,this.level_index=level_list.indexOf(n)}format(l,n){let e=80;switch(l){case"INFO":e+=1;break;case"WARNING":e-=2}return n.length>>0;if(n<0&&(n=e+n),!(n<0||n>=e))return l[n]}class I{constructor({type:l,uri:e,groupId:t,language:u,assocLanguage:r,name:s,isDefault:a,autoselect:o,forced:c,instreamId:h,characteristics:f,channels:p}){n(l,t,s),i(["SUBTITLES"===l,e],["CLOSED-CAPTIONS"===l,h],["CLOSED-CAPTIONS"===l,!e],[c,"SUBTITLES"===l]),this.type=l,this.uri=e,this.groupId=t,this.language=u,this.assocLanguage=r,this.name=s,this.isDefault=a,this.autoselect=o,this.forced=c,this.instreamId=h,this.characteristics=f,this.channels=p}}class N{constructor({uri:l,isIFrameOnly:e=!1,bandwidth:t,averageBandwidth:u,score:r,codecs:i,resolution:s,frameRate:a,hdcpLevel:o,allowedCpc:c,videoRange:h,stableVariantId:f,programId:p,audio:d=[],video:m=[],subtitles:E=[],closedCaptions:T=[],currentRenditions:_={audio:0,video:0,subtitles:0,closedCaptions:0}}){n(l,t),this.uri=l,this.isIFrameOnly=e,this.bandwidth=t,this.averageBandwidth=u,this.score=r,this.codecs=i,this.resolution=s,this.frameRate=a,this.hdcpLevel=o,this.allowedCpc=c,this.videoRange=h,this.stableVariantId=f,this.programId=p,this.audio=d,this.video=m,this.subtitles=E,this.closedCaptions=T,this.currentRenditions=_}}class d{constructor({id:l,value:e,uri:t,language:u}){n(l,e||t),s("SessionData cannot have both value and uri, shoud be either.",!(e&&t)),this.id=l,this.value=e,this.uri=t,this.language=u}}class A{constructor({method:l,uri:e,iv:t,format:u,formatVersion:r}){n(l),a(["NONE"!==l,e]),i(["NONE"===l,!(e||t||u||r)]),this.method=l,this.uri=e,this.iv=t,this.format=u,this.formatVersion=r}}class f{constructor({hint:l=!1,uri:e,mimeType:t,byterange:u}){n(e),this.hint=l,this.uri=e,this.mimeType=t,this.byterange=u}}class S{constructor({id:l,classId:e,start:t,end:u,duration:r,plannedDuration:s,endOnNext:o,attributes:c={}}){n(l),a([!0===o,e]),i([u,t],[u,t<=u],[r,r>=0],[s,s>=0]),this.id=l,this.classId=e,this.start=t,this.end=u,this.duration=r,this.plannedDuration=s,this.endOnNext=o,this.attributes=c}}class R{constructor({type:l,duration:e,tagName:t,value:u}){n(l),a(["OUT"===l,e]),a(["RAW"===l,t]),this.type=l,this.duration=e,this.tagName=t,this.value=u}}class m{constructor(l){n(l),this.type=l}}class g extends m{constructor({isMasterPlaylist:l,uri:e,version:t,independentSegments:u=!1,start:r,source:i}){super("playlist"),n(l),this.isMasterPlaylist=l,this.uri=e,this.version=t,this.independentSegments=u,this.start=r,this.source=i}}class O extends g{constructor(l={}){super(Object.assign(Object.assign({},l),{isMasterPlaylist:!0}));const{variants:n=[],currentVariant:e,sessionDataList:t=[],sessionKeyList:u=[]}=l;this.variants=n,this.currentVariant=e,this.sessionDataList=t,this.sessionKeyList=u}}class D extends g{constructor(l={}){super(Object.assign(Object.assign({},l),{isMasterPlaylist:!1}));const{targetDuration:n,mediaSequenceBase:e=0,discontinuitySequenceBase:t=0,endlist:u=!1,playlistType:r,isIFrame:i,segments:s=[],prefetchSegments:a=[],lowLatencyCompatibility:o,partTargetDuration:c,renditionReports:h=[],skip:f=0,hash:p}=l;this.targetDuration=n,this.mediaSequenceBase=e,this.discontinuitySequenceBase=t,this.endlist=u,this.playlistType=r,this.isIFrame=i,this.segments=s,this.prefetchSegments=a,this.lowLatencyCompatibility=o,this.partTargetDuration=c,this.renditionReports=h,this.skip=f,this.hash=p}}class P extends m{constructor({uri:l,mimeType:n,data:e,duration:t,title:u,byterange:r,discontinuity:i,mediaSequenceNumber:s=0,discontinuitySequence:a=0,key:o,map:c,programDateTime:h,dateRange:f,markers:p=[],parts:d=[]}){super("segment"),this.uri=l,this.mimeType=n,this.data=e,this.duration=t,this.title=u,this.byterange=r,this.discontinuity=i,this.mediaSequenceNumber=s,this.discontinuitySequence=a,this.key=o,this.map=c,this.programDateTime=h,this.dateRange=f,this.markers=p,this.parts=d}}class y extends m{constructor({hint:l=!1,uri:e,duration:t,independent:u,byterange:r,gap:i}){super("part"),n(e),this.hint=l,this.uri=e,this.duration=t,this.independent=u,this.duration=t,this.byterange=r,this.gap=i}}class C extends m{constructor({uri:l,discontinuity:e,mediaSequenceNumber:t=0,discontinuitySequence:u=0,key:r}){super("prefetch"),n(l),this.uri=l,this.discontinuity=e,this.mediaSequenceNumber=t,this.discontinuitySequence=u,this.key=r}}class U{constructor({uri:l,lastMSN:e,lastPart:t}){n(l),this.uri=l,this.lastMSN=e,this.lastPart=t}}function b(l){return function(l,n=" "){return l?(l=l.trim()," "===n||(l.startsWith(n)&&(l=l.slice(1)),l.endsWith(n)&&(l=l.slice(0,-1))),l):l}(l,'"')}function L(l){const n=u(l,",");return{duration:o(n[0]),title:decodeURIComponent(escape(n[1]))}}function v(l){const n=u(l,"@");return{length:o(n[0]),offset:n[1]?o(n[1]):-1}}function $(l){const n=u(l,"x");return{width:o(n[0]),height:o(n[1])}}function Y(l){const n="ALLOWED-CPC: Each entry must consit of KEYFORMAT and Content Protection Configuration",e=l.split(",");0===e.length&&r(n);const t=[];for(const l of e){const[e,i]=u(l,":");e&&i?t.push({format:e,cpcList:i.split("/")}):r(n)}return t}function F(l){const n=E(l);return 16!==n.length&&r("IV must be a 128-bit unsigned integer"),n}function G(l,n){n.IV&&l.compatibleVersion<2&&(l.compatibleVersion=2),(n.KEYFORMAT||n.KEYFORMATVERSIONS)&&l.compatibleVersion<5&&(l.compatibleVersion=5)}function V(l){const n={};for(const t of function(l){const n=[];let e=!0,t=0;const u=[];for(let r=0;rn.groupId===l[t]))&&r(`${t} attribute MUST match the value of the GROUP-ID attribute of an EXT-X-MEDIA tag whose TYPE attribute is ${t}.`)}(n,i,u),i.isIFrameOnly=t,i}function K(l,n){if(l.method!==n.method)return!1;if(l.uri!==n.uri)return!1;if(l.iv){if(!n.iv)return!1;if(l.iv.length!==n.iv.length)return!1;for(let e=0;es.targetDuration&&r("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),a.duration=t.duration,a.title=t.title;else if("EXT-X-BYTERANGE"===e)s.compatibleVersion<4&&(s.compatibleVersion=4),a.byterange=t;else if("EXT-X-DISCONTINUITY"===e)a.parts.length>0&&r("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),a.discontinuity=!0;else if("EXT-X-KEY"===e)a.parts.length>0&&r("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),G(s,u),a.key=new A({method:u.METHOD,uri:u.URI,iv:u.IV,format:u.KEYFORMAT,formatVersion:u.KEYFORMATVERSIONS});else if("EXT-X-MAP"===e)a.parts.length>0&&r("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),s.compatibleVersion<5&&(s.compatibleVersion=5),s.hasMap=!0,a.map=new f({uri:u.URI,byterange:u.BYTERANGE});else if("EXT-X-PROGRAM-DATE-TIME"===e)a.programDateTime=t;else if("EXT-X-DATERANGE"===e){const l={};for(const n of Object.keys(u))(n.startsWith("SCTE35-")||n.startsWith("X-"))&&(l[n]=u[n]);a.dateRange=new S({id:u.ID,classId:u.CLASS,start:u["START-DATE"],end:u["END-DATE"],duration:u.DURATION,plannedDuration:u["PLANNED-DURATION"],endOnNext:u["END-ON-NEXT"],attributes:l})}else if("EXT-X-CUE-OUT"===e)a.markers.push(new R({type:"OUT",duration:u&&u.DURATION||t}));else if("EXT-X-CUE-IN"===e)a.markers.push(new R({type:"IN"}));else if("EXT-X-CUE-OUT-CONT"===e||"EXT-X-CUE"===e||"EXT-OATCLS-SCTE35"===e||"EXT-X-ASSET"===e||"EXT-X-SCTE35"===e)a.markers.push(new R({type:"RAW",tagName:e,value:t}));else if("EXT-X-PRELOAD-HINT"!==e||u.TYPE)if("EXT-X-PRELOAD-HINT"===e&&"PART"===u.TYPE&&c)r("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist.");else if("EXT-X-PART"!==e&&"EXT-X-PRELOAD-HINT"!==e||u.URI){if("EXT-X-PRELOAD-HINT"===e&&"MAP"===u.TYPE)o&&r("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist."),o=!0,s.hasMap=!0,a.map=new f({hint:!0,uri:u.URI,byterange:{length:u["BYTERANGE-LENGTH"],offset:u["BYTERANGE-START"]||0}});else if("EXT-X-PART"===e||"EXT-X-PRELOAD-HINT"===e&&"PART"===u.TYPE){"EXT-X-PART"!==e||u.DURATION||r("EXT-X-PART: DURATION attribute is mandatory"),"EXT-X-PRELOAD-HINT"===e&&(c=!0);const l=new y({hint:"EXT-X-PRELOAD-HINT"===e,uri:u.URI,byterange:"EXT-X-PART"===e?u.BYTERANGE:{length:u["BYTERANGE-LENGTH"],offset:u["BYTERANGE-START"]||0},duration:u.DURATION,independent:u.INDEPENDENT,gap:u.GAP});a.parts.push(l)}}else r("EXT-X-PART / EXT-X-PRELOAD-HINT: URI attribute is mandatory");else r("EXT-X-PRELOAD-HINT: TYPE attribute is mandatory")}return a}function W(l,n,e,t,u,i,s){const a=new C({uri:n,mediaSequenceNumber:u,discontinuitySequence:i});for(let n=e;n<=t;n++){const{name:e,attributes:t}=l[n];"EXTINF"===e?r("A prefetch segment must not be advertised with an EXTINF tag."):"EXT-X-DISCONTINUITY"===e?r("A prefetch segment must not be advertised with an EXT-X-DISCONTINUITY tag."):"EXT-X-PREFETCH-DISCONTINUITY"===e?a.discontinuity=!0:"EXT-X-KEY"===e?(G(s,t),a.key=new A({method:t.METHOD,uri:t.URI,iv:t.IV,format:t.KEYFORMAT,formatVersion:t.KEYFORMATVERSIONS})):"EXT-X-MAP"===e&&r("Prefetch segments must not be advertised with an EXT-X-MAP tag.")}return a}function q(l,n){var e;const t=new D;let u=-1,i=0,s=!1,a=!1,o=0,c=null,h=null,f=!1;for(const[e,p]of l.entries()){const{name:d,value:m,attributes:E,category:T}=p;if("Segment"!==T){if("EXT-X-VERSION"===d)void 0===t.version?t.version=m:r("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if("EXT-X-TARGETDURATION"===d)t.targetDuration=n.targetDuration=m;else if("EXT-X-MEDIA-SEQUENCE"===d)t.segments.length>0&&r("The EXT-X-MEDIA-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),t.mediaSequenceBase=i=m;else if("EXT-X-DISCONTINUITY-SEQUENCE"===d)t.segments.length>0&&r("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),s&&r("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),t.discontinuitySequenceBase=o=m;else if("EXT-X-ENDLIST"===d)t.endlist=!0;else if("EXT-X-PLAYLIST-TYPE"===d)t.playlistType=m;else if("EXT-X-I-FRAMES-ONLY"===d)n.compatibleVersion<4&&(n.compatibleVersion=4),t.isIFrame=!0;else if("EXT-X-INDEPENDENT-SEGMENTS"===d)t.independentSegments&&r("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),t.independentSegments=!0;else if("EXT-X-START"===d)t.start&&r("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof E["TIME-OFFSET"]&&r("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),t.start={offset:E["TIME-OFFSET"],precise:E.PRECISE||!1};else if("EXT-X-SERVER-CONTROL"===d)E["CAN-BLOCK-RELOAD"]||r("EXT-X-SERVER-CONTROL: CAN-BLOCK-RELOAD=YES is mandatory for Low-Latency HLS"),t.lowLatencyCompatibility={canBlockReload:E["CAN-BLOCK-RELOAD"],canSkipUntil:E["CAN-SKIP-UNTIL"],holdBack:E["HOLD-BACK"],partHoldBack:E["PART-HOLD-BACK"]};else if("EXT-X-PART-INF"===d)E["PART-TARGET"]||r("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),t.partTargetDuration=E["PART-TARGET"];else if("EXT-X-RENDITION-REPORT"===d)E.URI||r("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),0===E.URI.search(/^[a-z]+:/)&&r("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),t.renditionReports.push(new U({uri:E.URI,lastMSN:E["LAST-MSN"],lastPart:E["LAST-PART"]}));else if("EXT-X-SKIP"===d)E["SKIPPED-SEGMENTS"]||r("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),n.compatibleVersion<9&&(n.compatibleVersion=9),t.skip=E["SKIPPED-SEGMENTS"],i+=t.skip;else if("EXT-X-PREFETCH"===d){const r=W(l,m,-1===u?e:u,e-1,i++,o,n);r&&(r.discontinuity&&(r.discontinuitySequence++,o=r.discontinuitySequence),r.key?c=r.key:r.key=c,t.prefetchSegments.push(r)),a=!0,u=-1}else if("string"==typeof p){-1===u&&r("A URI line is not preceded by any segment tags"),t.targetDuration||r("The EXT-X-TARGETDURATION tag is REQUIRED"),a&&r("These segments must appear after all complete segments.");const s=k(l,p,u,e-1,i++,o,n);s&&([o,c,h]=x(t,s,o,c,h),!f&&s.parts.length>0&&(f=!0)),u=-1}}else-1===u&&(u=e),"EXT-X-DISCONTINUITY"===d&&(s=!0)}if(-1!==u){const s=k(l,"",u,l.length-1,i++,o,n);if(s){const{parts:l}=s;l.length>0&&!t.endlist&&!(null===(e=p(l,-1))||void 0===e?void 0:e.hint)&&r("If the Playlist contains EXT-X-PART tags and does not contain an EXT-X-ENDLIST tag, the Playlist must contain an EXT-X-PRELOAD-HINT tag with a TYPE=PART attribute"),x(t,s,c,h),!f&&s.parts.length>0&&(f=!0)}}return function(l){const n=new Map,e=new Map;let t=!1,u=!1;for(let i=l.length-1;i>=0;i--){const{programDateTime:s,dateRange:a}=l[i];if(s&&(u=!0),a&&a.start){t=!0,a.endOnNext&&(a.end||a.duration)&&r("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");const l=a.start.getTime(),u=a.duration||0;a.end&&a.duration&&l+1e3*u!==a.end.getTime()&&r("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),a.endOnNext&&(a.end=n.get(a.classId)),n.set(a.classId,a.start);const i=a.end?a.end.getTime():a.start.getTime()+1e3*(a.duration||0),s=e.get(a.classId);if(s){for(const n of s)(n.start<=l&&n.end>l||n.start>=l&&n.start0&&le&&r("PART-TARGET is the maximum duration of any Partial Segment"),l0&&(l.lastPart=n.parts.length-1)}}(t,f),t}function x(l,n,e,t,u){const{discontinuity:i,key:s,map:a,byterange:o,uri:c}=n;if(i&&(n.discontinuitySequence=e+1),s||(n.key=t),a||(n.map=u),o&&-1===o.offset){const{segments:n}=l;if(n.length>0){const l=p(n,-1);l.byterange&&l.uri===c?o.offset=l.byterange.offset+l.byterange.length:r("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST be a sub-range of the same media resource")}else r("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return l.segments.push(n),[n.discontinuitySequence,n.key,n.map]}function j(l,n){const[e,t]=function(l){const n=l.indexOf(":");return-1===n?[l.slice(1).trim(),null]:[l.slice(1,n).trim(),l.slice(n+1).trim()]}(l),u=function(l){switch(l){case"EXTM3U":case"EXT-X-VERSION":return"Basic";case"EXTINF":case"EXT-X-BYTERANGE":case"EXT-X-DISCONTINUITY":case"EXT-X-PREFETCH-DISCONTINUITY":case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-PROGRAM-DATE-TIME":case"EXT-X-DATERANGE":case"EXT-X-CUE-OUT":case"EXT-X-CUE-IN":case"EXT-X-CUE-OUT-CONT":case"EXT-X-CUE":case"EXT-OATCLS-SCTE35":case"EXT-X-ASSET":case"EXT-X-SCTE35":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":return"Segment";case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-ENDLIST":case"EXT-X-PLAYLIST-TYPE":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PREFETCH":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return"MediaPlaylist";case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":return"MasterPlaylist";case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-START":return"MediaorMasterPlaylist";default:return"Unknown"}}(e);if(function(l,n){if("Segment"===l||"MediaPlaylist"===l)return void 0===n.isMasterPlaylist?void(n.isMasterPlaylist=!1):void(n.isMasterPlaylist&&w());if("MasterPlaylist"===l){if(void 0===n.isMasterPlaylist)return void(n.isMasterPlaylist=!0);!1===n.isMasterPlaylist&&w()}}(u,n),"Unknown"===u)return null;"MediaPlaylist"===u&&"EXT-X-RENDITION-REPORT"!==e&&"EXT-X-PREFETCH"!==e&&(n.hash[e]&&r("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),n.hash[e]=!0);const[i,s]=function(l,n){switch(l){case"EXTM3U":case"EXT-X-DISCONTINUITY":case"EXT-X-ENDLIST":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-CUE-IN":return[null,null];case"EXT-X-VERSION":case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":return[o(n),null];case"EXT-X-CUE-OUT":return Number.isNaN(Number(n))?[null,V(n)]:[o(n),null];case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-DATERANGE":case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":case"EXT-X-START":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return[null,V(n)];case"EXTINF":return[L(n),null];case"EXT-X-BYTERANGE":return[v(n),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(n),null];default:return[n,null]}}(e,t);return{name:e,category:u,value:i,attributes:s}}function Q(l,n){let e;return n.isMasterPlaylist?e=function(l,n){const e=new O;let t=!1;for(const[u,{name:i,value:s,attributes:a}]of l.entries())if("EXT-X-VERSION"===i)e.version=s;else if("EXT-X-STREAM-INF"===i){const i=l[u+1];("string"!=typeof i||i.startsWith("#EXT"))&&r("EXT-X-STREAM-INF must be followed by a URI line");const s=H(l,a,i,!1,n);s&&("number"==typeof s.score&&(t=!0,s.score<0&&r("SCORE attribute on EXT-X-STREAM-INF must be positive decimal-floating-point number.")),e.variants.push(s))}else if("EXT-X-I-FRAME-STREAM-INF"===i){const t=H(l,a,a.URI,!0,n);t&&e.variants.push(t)}else if("EXT-X-SESSION-DATA"===i){const l=new d({id:a["DATA-ID"],value:a.VALUE,uri:a.URI,language:a.LANGUAGE});e.sessionDataList.some((n=>n.id===l.id&&n.language===l.language))&&r("A Playlist MUST NOT contain more than one EXT-X-SESSION-DATA tag with the same DATA-ID attribute and the same LANGUAGE attribute."),e.sessionDataList.push(l)}else if("EXT-X-SESSION-KEY"===i){"NONE"===a.METHOD&&r("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");const l=new A({method:a.METHOD,uri:a.URI,iv:a.IV,format:a.KEYFORMAT,formatVersion:a.KEYFORMATVERSIONS});e.sessionKeyList.some((n=>K(n,l)))&&r("A Master Playlist MUST NOT contain more than one EXT-X-SESSION-KEY tag with the same METHOD, URI, IV, KEYFORMAT, and KEYFORMATVERSIONS attribute values."),G(n,a),e.sessionKeyList.push(l)}else"EXT-X-INDEPENDENT-SEGMENTS"===i?(e.independentSegments&&r("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),e.independentSegments=!0):"EXT-X-START"===i&&(e.start&&r("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof a["TIME-OFFSET"]&&r("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),e.start={offset:a["TIME-OFFSET"],precise:a.PRECISE||!1});if(t)for(const l of e.variants)"number"!=typeof l.score&&r("If any Variant Stream contains the SCORE attribute, then all Variant Streams in the Master Playlist SHOULD have a SCORE attribute");if(n.isClosedCaptionsNone)for(const l of e.variants)l.closedCaptions.length>0&&r("If there is a variant with CLOSED-CAPTIONS attribute of NONE, all EXT-X-STREAM-INF tags MUST have this attribute with a value of NONE");return e}(l,n):(e=q(l,n),!e.isIFrame&&n.hasMap&&n.compatibleVersion<6&&(n.compatibleVersion=6)),n.compatibleVersion>1&&(!e.version||e.versionn.startsWith(l))))super.push(n);else{if(this.includes(n)){if(Z.some((l=>n.startsWith(l))))continue;r(`Redundant item (${n})`)}super.push(n)}else super.push(n);return this.length}}function tt(l,n){let e=1e3;n&&(e=Math.pow(10,n));const t=Math.round(l*e)/e;return n?t.toFixed(n):t}function et(l){const n=[`DATA-ID="${l.id}"`];return l.language&&n.push(`LANGUAGE="${l.language}"`),l.value?n.push(`VALUE="${l.value}"`):l.uri&&n.push(`URI="${l.uri}"`),`#EXT-X-SESSION-DATA:${n.join(",")}`}function st(l,n){const e=n?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",t=[`METHOD=${l.method}`];return l.uri&&t.push(`URI="${l.uri}"`),l.iv&&(16!==l.iv.length&&r("IV must be a 128-bit unsigned integer"),t.push(`IV=${T(l.iv)}`)),l.format&&t.push(`KEYFORMAT="${l.format}"`),l.formatVersion&&t.push(`KEYFORMATVERSIONS="${l.formatVersion}"`),`${e}:${t.join(",")}`}function it(l,n){const e=n.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",t=[`BANDWIDTH=${n.bandwidth}`];if(n.averageBandwidth&&t.push(`AVERAGE-BANDWIDTH=${n.averageBandwidth}`),n.isIFrameOnly&&t.push(`URI="${n.uri}"`),n.codecs&&t.push(`CODECS="${n.codecs}"`),n.resolution&&t.push(`RESOLUTION=${n.resolution.width}x${n.resolution.height}`),n.frameRate&&t.push(`FRAME-RATE=${tt(n.frameRate,3)}`),n.hdcpLevel&&t.push(`HDCP-LEVEL=${n.hdcpLevel}`),n.audio.length>0){t.push(`AUDIO="${n.audio[0].groupId}"`);for(const e of n.audio)l.push(nt(e))}if(n.video.length>0){t.push(`VIDEO="${n.video[0].groupId}"`);for(const e of n.video)l.push(nt(e))}if(n.subtitles.length>0){t.push(`SUBTITLES="${n.subtitles[0].groupId}"`);for(const e of n.subtitles)l.push(nt(e))}if(X().allowClosedCaptionsNone&&0===n.closedCaptions.length)t.push("CLOSED-CAPTIONS=NONE");else if(n.closedCaptions.length>0){t.push(`CLOSED-CAPTIONS="${n.closedCaptions[0].groupId}"`);for(const e of n.closedCaptions)l.push(nt(e))}if(n.score&&t.push(`SCORE=${n.score}`),n.allowedCpc){const l=[];for(const{format:e,cpcList:t}of n.allowedCpc)l.push(`${e}:${t.join("/")}`);t.push(`ALLOWED-CPC="${l.join(",")}"`)}n.videoRange&&t.push(`VIDEO-RANGE=${n.videoRange}`),n.stableVariantId&&t.push(`STABLE-VARIANT-ID="${n.stableVariantId}"`),n.programId&&t.push(`PROGRAM-ID=${n.programId}`),l.push(`${e}:${t.join(",")}`),n.isIFrameOnly||l.push(`${n.uri}`)}function nt(l){const n=[`TYPE=${l.type}`,`GROUP-ID="${l.groupId}"`,`NAME="${l.name}"`];return void 0!==l.isDefault&&n.push("DEFAULT="+(l.isDefault?"YES":"NO")),void 0!==l.autoselect&&n.push("AUTOSELECT="+(l.autoselect?"YES":"NO")),void 0!==l.forced&&n.push("FORCED="+(l.forced?"YES":"NO")),l.language&&n.push(`LANGUAGE="${l.language}"`),l.assocLanguage&&n.push(`ASSOC-LANGUAGE="${l.assocLanguage}"`),l.instreamId&&n.push(`INSTREAM-ID="${l.instreamId}"`),l.characteristics&&n.push(`CHARACTERISTICS="${l.characteristics}"`),l.channels&&n.push(`CHANNELS="${l.channels}"`),l.uri&&n.push(`URI="${l.uri}"`),`#EXT-X-MEDIA:${n.join(",")}`}function at(n,e,t,u,r=1,i=null){let s=!1,a="";if(e.discontinuity&&n.push("#EXT-X-DISCONTINUITY"),e.key){const l=st(e.key);l!==t&&(n.push(l),t=l)}if(e.map){const l=function(l){const n=[`URI="${l.uri}"`];return l.byterange&&n.push(`BYTERANGE="${rt(l.byterange)}"`),`#EXT-X-MAP:${n.join(",")}`}(e.map);l!==u&&(n.push(l),u=l)}if(e.programDateTime&&n.push(`#EXT-X-PROGRAM-DATE-TIME:${l(e.programDateTime)}`),e.dateRange&&n.push(function(n){const e=[`ID="${n.id}"`];n.start&&e.push(`START-DATE="${l(n.start)}"`),n.end&&e.push(`END-DATE="${l(n.end)}"`),n.duration&&e.push(`DURATION=${n.duration}`),n.plannedDuration&&e.push(`PLANNED-DURATION=${n.plannedDuration}`),n.classId&&e.push(`CLASS="${n.classId}"`),n.endOnNext&&e.push("END-ON-NEXT=YES");for(const l of Object.keys(n.attributes))l.startsWith("X-")?"number"==typeof n.attributes[l]?e.push(`${l}=${n.attributes[l]}`):e.push(`${l}="${n.attributes[l]}"`):l.startsWith("SCTE35-")&&e.push(`${l}=${T(n.attributes[l])}`);return`#EXT-X-DATERANGE:${e.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(l,n){let e="";for(const t of n)if("OUT"===t.type)e="OUT",l.push(`#EXT-X-CUE-OUT:DURATION=${t.duration}`);else if("IN"===t.type)e="IN",l.push("#EXT-X-CUE-IN");else if("RAW"===t.type){const n=t.value?`:${t.value}`:"";l.push(`#${t.tagName}${n}`)}return e}(n,e.markers)),e.parts.length>0&&(s=function(l,n){let e=!1;for(const t of n)if(t.hint){const n=[];if(n.push("TYPE=PART",`URI="${t.uri}"`),t.byterange){const{offset:l,length:e}=t.byterange;n.push(`BYTERANGE-START=${l}`),e&&n.push(`BYTERANGE-LENGTH=${e}`)}l.push(`#EXT-X-PRELOAD-HINT:${n.join(",")}`),e=!0}else{const n=[];n.push(`DURATION=${t.duration}`,`URI="${t.uri}"`),t.byterange&&n.push(`BYTERANGE=${rt(t.byterange)}`),t.independent&&n.push("INDEPENDENT=YES"),t.gap&&n.push("GAP=YES"),l.push(`#EXT-X-PART:${n.join(",")}`)}return e}(n,e.parts)),s)return[t,u];const o=r<3?Math.round(e.duration):tt(e.duration,function(l){const n=l.toString(10),e=n.indexOf(".");return-1===e?0:n.length-e-1}(e.duration));return n.push(`#EXTINF:${o},${unescape(encodeURIComponent(e.title||""))}`),e.byterange&&n.push(`#EXT-X-BYTERANGE:${rt(e.byterange)}`),null!=i?Array.prototype.push.call(n,i(e)):Array.prototype.push.call(n,`${e.uri}`),[t,u,a]}function rt({offset:l,length:n}){return`${n}@${l}`}function ot(l,e=null){n(l),s("Not a playlist","playlist"===l.type);const t=new J(l.uri);return t.push("#EXTM3U"),l.version&&t.push(`#EXT-X-VERSION:${l.version}`),l.independentSegments&&t.push("#EXT-X-INDEPENDENT-SEGMENTS"),l.start&&t.push(`#EXT-X-START:TIME-OFFSET=${tt(l.start.offset)}${l.start.precise?",PRECISE=YES":""}`),l.isMasterPlaylist?function(l,n){for(const e of n.sessionDataList)l.push(et(e));for(const e of n.sessionKeyList)l.push(st(e,!0));for(const e of n.variants)it(l,e)}(t,l):function(l,n,e=null){let t="",u="",i=!1;if(n.targetDuration&&l.push(`#EXT-X-TARGETDURATION:${n.targetDuration}`),n.lowLatencyCompatibility){const{canBlockReload:e,canSkipUntil:t,holdBack:u,partHoldBack:r}=n.lowLatencyCompatibility,i=[];i.push("CAN-BLOCK-RELOAD="+(e?"YES":"NO")),void 0!==t&&i.push(`CAN-SKIP-UNTIL=${t}`),void 0!==u&&i.push(`HOLD-BACK=${u}`),void 0!==r&&i.push(`PART-HOLD-BACK=${r}`),l.push(`#EXT-X-SERVER-CONTROL:${i.join(",")}`)}n.partTargetDuration&&l.push(`#EXT-X-PART-INF:PART-TARGET=${n.partTargetDuration}`),n.mediaSequenceBase&&l.push(`#EXT-X-MEDIA-SEQUENCE:${n.mediaSequenceBase}`),n.discontinuitySequenceBase&&l.push(`#EXT-X-DISCONTINUITY-SEQUENCE:${n.discontinuitySequenceBase}`),n.playlistType&&l.push(`#EXT-X-PLAYLIST-TYPE:${n.playlistType}`),n.isIFrame&&l.push("#EXT-X-I-FRAMES-ONLY"),n.skip>0&&l.push(`#EXT-X-SKIP:SKIPPED-SEGMENTS=${n.skip}`);for(const r of n.segments){let s="";[t,u,s]=at(l,r,t,u,n.version,e),"OUT"===s?i=!0:"IN"===s&&i&&(i=!1)}"VOD"===n.playlistType&&i&&l.push("#EXT-X-CUE-IN"),n.prefetchSegments.length>2&&r("The server must deliver no more than two prefetch segments");for(const e of n.prefetchSegments)e.discontinuity&&l.push("#EXT-X-PREFETCH-DISCONTINUITY"),l.push(`#EXT-X-PREFETCH:${e.uri}`);n.endlist&&l.push("#EXT-X-ENDLIST");for(const e of n.renditionReports){const n=[];n.push(`URI="${e.uri}"`,`LAST-MSN=${e.lastMSN}`),void 0!==e.lastPart&&n.push(`LAST-PART=${e.lastPart}`),l.push(`#EXT-X-RENDITION-REPORT:${n.join(",")}`)}}(t,l,e),t.join("\n")}const cacheRoot="hls_cache",hlsKeys=[],hlsPlistCaches={},interrupts={},downloadTask={};let currentDownloadHlsKey="";function hlsCacheInsert(l,n){if(hlsKeys.push(l),hlsPlistCaches[l]=n,hlsKeys.length>5){hlsCacheRemove(hlsKeys.shift())}}function hlsCacheRemove(l){delete hlsPlistCaches[l],delete hlsKeys[l],new JSFile(cacheRoot+"/"+l).delete()}function plistUriResolve(l,n){if(n.variants)for(const e of n.variants)e.uri.startsWith("http")||(e.uri=relative2Absolute(l,e.uri));if(n.segments)for(const e of n.segments)e.uri.startsWith("http")||(e.uri=relative2Absolute(l,e.uri)),e.key&&e.key.uri&&!e.key.uri.startsWith("http")&&(e.key.uri=relative2Absolute(l,e.key.uri));return n}async function hlsCache(l,n){const e=md5X(l);if(hlsPlistCaches[e])return hlsPlistCaches[e];let t={},u=l;for(;t=await req(u,{headers:n,redirect:0}),t.headers.location;)u=t.headers.location;if(200==t.code){const l=plistUriResolve(u,_(t.content));return hlsCacheInsert(e,{code:t.code,plist:l,key:e,headers:t.headers}),hlsPlistCaches[e]}return{}}async function tsCache(l,n,e){if(!hlsPlistCaches[l])return{};const t=hlsPlistCaches[l].plist.segments;let u=!downloadTask[l];if(u){downloadTask[l]={};for(const n of t){const e=md5X(n.uri+n.mediaSequenceNumber.toString());downloadTask[l][e]={file:cacheRoot+"/"+l+"/"+e,uri:n.uri,key:e,index:n.mediaSequenceNumber,order:n.mediaSequenceNumber,state:-1,read:!1}}}for(const e in downloadTask[l]){const u=downloadTask[l][e];u.index>=n?u.order=u.index-n:u.order=t.length-n+u.index}u&&fixedCachePool(l,5,e);const r=t[n],i=md5X(r.uri+r.mediaSequenceNumber.toString()),s=downloadTask[l][i];if(1==s.state||-1==s.state){const l=new JSFile(s.file);if(await l.exist())return s.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:l};s.state=-1}if(-1==s.state&&startTsTask(l,s,e),0==s.state){var a=new JSProxyStream;a.head(200,{connection:"close","content-type":"video/mp2t"});let l=0;return s.read=!0,new Promise((async function(n,e){const t=new JSFile(s.file+".dl");await t.open("r"),async function e(){const u=await t.size();if(u>l){var r=await t.read(u-l,l);await a.write(r),l=u}if(1==s.state||s.state<0)return a.done(),await t.close(),await t.delete(),s.read=!1,void n();setTimeout(e,5)}()})),{buffer:3,content:a}}}async function startTsTask(l,n,e){if(n.state>=0)return;if(!interrupts[l])return;if(n.state=0,await new JSFile(n.file).exist())return void(n.state=1);const t=new JSFile(n.file+".dl");await t.open("w");const u=await req(n.uri,{buffer:3,headers:e,stream:t,timeout:[5e3,1e4]});if(u.error||u.code>=300)return await t.close(),n.read||await t.delete(),void(n.state=-1);await t.close(),n.read?await t.copy(n.file):await t.move(n.file),n.state=1}async function fixedCachePool(l,n,e){currentDownloadHlsKey&¤tDownloadHlsKey!=l&&delete interrupts[currentDownloadHlsKey],currentDownloadHlsKey=l,interrupts[l]=!0;for(let t=0;t{let e=Number(l[0]),t=l[4];n.push(``)})),String.raw`chat.bilibili.com521756020100000k-v`+n.join("")+""}class DanmuSpider{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=new JadeLogging(this.getAppName(),"DEBUG")}getAppName(){return"弹幕"}getHeader(){return{"User-Agent":CHROME,Referer:this.siteUrl+"/"}}async reconnnect(l,n,e,t,u,r){return await this.jadeLog.error("请求失败,请检查url:"+l+",两秒后重试"),sleep(2),this.reconnectTimes0?(this.reconnectTimes=0,u?{cookie:i.headers["set-cookie"],content:i.content}:i.content):1===r?(this.reconnectTimes=0,i.content):(await this.jadeLog.error(`请求失败,请求url为:${l},回复内容为:${JSON.stringify(i)}`),await this.reconnnect(l,n,e,t,u,r))}async fetch(l,n,e,t=!1,u=!1,r=0){let i=objectToStr(n),s=l;Sh.isEmpty(i)||(s=l+"?"+i);let a,o=new yh(s);return a=await req(o.toString(),{method:"get",headers:e,buffer:r,data:null}),201===a.code||200===a.code||302===a.code||301===a.code||u?await this.getResponse(l,n,e,t,u,r,a):(await this.jadeLog.error(`请求失败,失败原因为:状态码出错,请求url为:${o},回复内容为:${JSON.stringify(a)}`),await this.reconnnect(l,n,e,t,u,r))}async getHtml(l=this.siteUrl,n=this.getHeader()){let e=await this.fetch(l,null,n);if(!Sh.isEmpty(e))return Eh(e);await this.jadeLog.error("html获取失败",!0)}async parseVodShortListFromJson(l,n){for(const e of l.pageComponentList)if(void 0!==e.commonData){let l=new VodDetail,t=e.commonData;if(l.type_name=t.feature,void 0!==t.notice&&(l.vod_actor=t.notice.replaceAll("演员:","").replaceAll(" ","")),void 0!==t.director&&(l.vod_director=t.director.replaceAll("导演:","").replaceAll(" ","")),"电影"===n.type_name?l.vod_id=t.leftButtonDTO.action.value:l.vod_id=t.showId,l.vod_name=t.titleDTO.displayName,l.vod_name===n.vod_name||l.type_name.indexOf(n.vod_year)>-1||l.type_name.indexOf(n.type_name)>-1||l.vod_director===n.vod_director)return await this.jadeLog.debug(`匹配视频网站成功,名称为:${l.vod_name},类型为:${l.type_name},导演为:${l.vod_director}`,!0),l}return await this.jadeLog.warning("没有匹配到弹幕网站"),null}async parseVodUrlFromJsonByEpisodeId(l,n){for(const e of l.serisesList)if(isNumeric(n.episodeId)&&parseInt(n.episodeId).toString()===e.displayName)return e.action.value;return await this.jadeLog.error("没有找到匹配的集数"),""}async downloadDanmu(l){let n=await req(l,{headers:this.getHeader()});if(200===n.code){let l={do:"set",key:"danmu",value:parseXML(JSON.parse(n.content))};return await req("http://127.0.0.1:9978/cache",{method:"post",data:l,postType:"form-data"}),"http://127.0.0.1:9978/cache?do=get&key=danmu"}return this.jadeLog.error(`弹幕请求失败,返回结果为:${JSON.stringify(n)}`),""}async search(l,n){let e={pg:"1",keyword:l.vod_name},t=JSON.parse(await this.fetch(this.siteUrl+"/api/search",e,this.getHeader())),u=await this.parseVodShortListFromJson(t,l);return Sh.isEmpty(u)?"":await this.getVideoUrl(u.vod_id,n)}async getVideoUrl(l,n){let e="";if(!Sh.isEmpty(l)){if(l.startsWith("http"))e=l;else{let t={appScene:"show_episode",showIds:l},u=JSON.parse(await this.fetch(this.siteUrl+"/api/search",t,this.getHeader()));e=await this.parseVodUrlFromJsonByEpisodeId(u,n)}if(!Sh.isEmpty(e))return await this.jadeLog.debug(`弹幕视频播放连接为:${e}`),await this.downloadDanmu("https://dmku.thefilehosting.com/?ac=dm&url="+e)}return e}async getDammu(l,n){return await this.search(l,n)}}const UA="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",CLIENT_ID="76917ccccd4441c39457a04f6084fb2f";function getHeader(){const l={};return l["User-Agent"]=UA,l.Referer="https://www.aliyundrive.com/",l}class User{constructor(){this.driveId="",this.userId="",this.tokenType="",this.accessToken="",this.refreshToken=""}static objectFrom(l){if(Sh.isEmpty(l))return new User;let n=JSON.parse(l),e=new User;return e.driveId=n.default_drive_id,e.userId=n.user_id,e.tokenType=n.token_type,e.accessToken=n.access_token,e.refreshToken=n.refresh_token,e}getDriveId(){return Sh.isEmpty(this.driveId)?"":this.driveId}getUserId(){return Sh.isEmpty(this.userId)?"":this.userId}getTokenType(){return Sh.isEmpty(this.tokenType)?"":this.tokenType}getAccessToken(){return Sh.isEmpty(this.accessToken)?"":this.accessToken}getRefreshToken(){return Sh.isEmpty(this.refreshToken)?"":this.refreshToken}setRefreshToken(l){this.refreshToken=l}getAuthorization(){return this.getTokenType()+" "+this.getAccessToken()}isAuthed(){return this.getTokenType().length>0&&this.getAccessToken().length>0}clean(){return this.refreshToken="",this.accessToken="",this}async save(){return await local.set("ali","aliyundrive_user",this.toString()),this}toString(){return JSON.stringify(this.toDict())}toDict(){return{default_drive_id:this.getDriveId(),user_id:this.getUserId(),token_type:this.getTokenType(),access_token:this.getAccessToken(),refresh_token:this.getRefreshToken()}}}class OAuth{constructor(){this.tokenType="",this.accessToken="",this.refreshToken=""}static objectFrom(l){if(Sh.isEmpty(l))return new OAuth;let n=JSON.parse(l),e=new OAuth;return e.tokenType=n.token_type,e.accessToken=n.access_token,e.refreshToken=n.refresh_token,e}getTokenType(){return Sh.isEmpty(this.tokenType)?"":this.tokenType}getAccessToken(){return Sh.isEmpty(this.accessToken)?"":this.accessToken}getRefreshToken(){return Sh.isEmpty(this.refreshToken)?"":this.refreshToken}getAuthorization(){return this.getTokenType()+" "+this.getAccessToken()}clean(){return this.refreshToken="",this.accessToken="",this}async save(){return await local.set("ali","aliyundrive_oauth",this.toString()),this}toString(){return JSON.stringify(this.toDict())}toDict(){return{token_type:this.getTokenType(),access_token:this.getAccessToken(),refresh_token:this.getRefreshToken()}}}class Drive{constructor(){this.defaultDriveId="",this.resourceDriveId="",this.backupDriveId=""}static objectFrom(l){if(Sh.isEmpty(l))return new Drive;let n=JSON.parse(l),e=new Drive;return e.defaultDriveId=n.default_drive_id,e.resourceDriveId=n.resource_drive_id,e.backupDriveId=n.backup_drive_id,e}getDefaultDriveId(){return Sh.isEmpty(this.defaultDriveId)?"":this.defaultDriveId}getResourceDriveId(){return Sh.isEmpty(this.resourceDriveId)?"":this.resourceDriveId}getBackupDriveId(){return Sh.isEmpty(this.backupDriveId)?"":this.backupDriveId}clean(){return this.defaultDriveId="",this.backupDriveId="",this.resourceDriveId="",this}async save(){return await local.set("ali","aliyundrive_drive",this.toString()),this}toString(){const l={default_drive_id:this.getDefaultDriveId(),resource_drive_id:this.getResourceDriveId(),backup_drive_id:this.getBackupDriveId()};return JSON.stringify(l)}}class Code{constructor(){this.redirectUri=""}static objectFrom(l){if(Sh.isEmpty(l))return new Code;let n=JSON.parse(l),e=new Code;return e.redirectUri=n.redirectUri,e}getRedirectUri(){return Sh.isEmpty(this.redirectUri)?"":this.redirectUri}getCode(){return this.getRedirectUri().split("code=")[1]}}async function getUserCache(){return await local.get("ali","aliyundrive_user")}async function getOAuthCache(){return await local.get("ali","aliyundrive_oauth")}async function post(l,n){return l=l.startsWith("https")?l:"https://api.aliyundrive.com/"+l,(await postJson(l,n,getHeader())).content}async function postJson(l,n,e){return n["Content-Type"]="application/json",await req(l,{headers:e,method:"post",data:n})}let shareToken="",oauth=new OAuth,user=new User,driveInfo=new Drive,tmpFolderName="TV",JadeLog$2=new JadeLogging("阿里云盘","INFO");async function initSome(){let l=await getUserCache();user=User.objectFrom(l),Sh.isEmpty(user.getRefreshToken())?await JadeLog$2.error("读取用户缓存失败",!0):await JadeLog$2.info("读取用户缓存成功",!0);let n=await getOAuthCache();oauth=OAuth.objectFrom(n),Sh.isEmpty(oauth.getAccessToken())?await JadeLog$2.error("读取授权失败",!0):await JadeLog$2.info("读取授权成功",!0),await JadeLog$2.info("阿里Api初始化完成")}async function getTempFileId(){await createTmpFolder()}async function cleanRecord(){await local.set("file","file_id",JSON.stringify({}))}function getHeaderAuth(l){const n={};return n["x-share-token"]=l,n["X-Canary"]="client=Android,app=adrive,version=v4.3.1",user.isAuthed()&&(n.authorization=user.getAuthorization()),n}function getHeaderOpen(){const l={};return l.authorization=oauth.getAuthorization(),l}function aliExpection(l){return l.indexOf("TooManyRequests")>-1?(sleep(1),{code:429,content:l}):l.indexOf("AccessTokenInvalid")>-1?{code:400,content:l}:l.indexOf("AccessTokenExpired")>-1?{code:401,content:l}:l.indexOf("BadRequest")>-1?{code:402,content:l}:l.indexOf("NotFound.File")>-1||l.indexOf("ForbiddenFileInTheRecycleBin")>-1?{code:403,content:l}:l.indexOf("user not allowed access drive")>-1?{code:404,content:l}:l.indexOf("ForbiddenNoPermission.File")>-1?{code:500,content:l}:l.indexOf("InvalidParameter.ToParentFileId")>-1?{code:501,content:l}:l.indexOf("NotFound.ParentFileId")>-1?{code:502,content:l}:l.indexOf("The resource drive has exceeded the limit. File size exceeded drive capacity")>-1||l.indexOf("The resource drive has exceeded the limit. File size exceeded drive capacity")>-1?{code:503,content:l}:{code:200,content:l}}async function alistManyRequest(l){return l.indexOf("Too Many Requests")>-1&&(await oauth.clean().save(),!0)}async function alist(l,n){let e="https://api-cf.nn.ci/alist/ali_open/"+l,t=(await postJson(e,n,getHeader())).content;return await alistManyRequest(t)?(await JadeLog$2.error(`Alist授权Token失败,失败原因为:太多请求,失败详情为:${t}`),!1):(oauth=await OAuth.objectFrom(t).save(),!0)}async function auth(l,n,e,t){l=l.startsWith("https")?l:"https://api.aliyundrive.com/"+l;let u=await postJson(l,n,getHeaderAuth(e));return await JadeLog$2.debug(`正在请求需要阿里登录的url:${l},参数为:${JSON.stringify(n)}`),u=aliExpection(u.content),t&&400===u.code?(await JadeLog$2.error("登录阿里云盘失败,失败原因为:登录Token无效,准备重新授权,失败详情:"+u.content),await refreshAccessToken(""),await auth(l,n,e,!1)):(await JadeLog$2.debug(`完成请求需要阿里登录的url:${l},参数为:${JSON.stringify(n)},请求结果为${u.content}`),u.content)}async function oauthFunc(l,n,e){l=l.startsWith("https")?l:"https://open.aliyundrive.com/adrive/v1.0/"+l,await JadeLog$2.debug(`正在请求需要阿里授权的url:${l},参数为:${JSON.stringify(n)}`);let t=getHeaderOpen(),u=await postJson(l,n,t);if(u=aliExpection(u.content),e&&(400===u.code||401===u.code||429===u.code||402===u.code||403===u.code||404===u.code)){if(400===u.code)await JadeLog$2.error("阿里授权失败,失败原因为:授权Token无效,准备重新授权,失败详情:"+u.content),await activateRefreshOpenToken();else if(401===u.code)await JadeLog$2.error("阿里授权失败,失败原因为:授权Token失效,准备重新授权,失败详情:"+u.content),await activateRefreshOpenToken();else{if(402===u.code)return await JadeLog$2.error("阿里授权失败,失败原因为:授权Token失效,准备重新授权,失败详情:"+u.content),await oauthFunc(l,n,!0);if(403===u.code)return await JadeLog$2.error("阿里授权失败,失败原因为:没有找到缓存文件,失败详情:"+u.content),await cleanRecord(),"retry";if(404===u.code)return await JadeLog$2.error("阿里授权失败,失败原因为:用户没有权限"+u.content),await oauthFunc(l,n,!0);if(429===u.code)return await JadeLog$2.error(`正在请求需要阿里授权的url:${l},请求过于频繁,稍后重试,10分钟后再重试`),sleep(600),await oauthFunc(l,n,!0)}return await oauthFunc(l,n,!1)}return await JadeLog$2.debug(`完成请求需要阿里授权的url:${l},参数为:${JSON.stringify(n)},请求结果为:${JSON.stringify(u)}`),u.content}async function activateRefreshOpenToken(){await oauth.clean().save(),await refreshOpenToken()}async function refreshAccessToken(l){try{if(Sh.isEmpty(user.getAccessToken())||user.getRefreshToken()!==l){let l={};l.refresh_token=user.getRefreshToken(),l.grant_type="refresh_token",await JadeLog$2.info(`准备登录阿里云盘,登录Token为:${user.getRefreshToken()}`);let n=await post("https://auth.aliyundrive.com/v2/account/token",l);n.indexOf("InvalidParameter.RefreshToken")>1||Sh.isEmpty(n)?Sh.isEmpty(n)?await JadeLog$2.error(`登录阿里云盘失败,登录Token为:${user.getRefreshToken()},失败原因为:检查Token是否正确`):await JadeLog$2.error(`登录阿里云盘失败,登录Token为:${user.getRefreshToken()},失败原因为:检查Token是否正确,返回结果为:${n}`):(await JadeLog$2.info(`登录阿里云盘成功,登录Token为:${user.getRefreshToken()}`),user=await User.objectFrom(n).save())}else await JadeLog$2.info(`阿里云盘已登录,无需重复登录,登录Token为:${user.getRefreshToken()}`);return!0}catch(l){return await JadeLog$2.error(`登录阿里云盘失败,登录Token为:${user.getRefreshToken()},失败原因为:${l}`),await user.clean().save(),!0}}async function oauthRequest(){try{let l={authorize:1,scope:"user:base,file:all:read,file:all:write"},n="https://open.aliyundrive.com/oauth/users/authorize?client_id="+CLIENT_ID+"&redirect_uri=https://alist.nn.ci/tool/aliyundrive/callback&scope=user:base,file:all:read,file:all:write&state=";await JadeLog$2.debug(`正在请求获取阿里授权码的url:${n},参数为:${l}`);let e=await auth(n,l,shareToken,!0);if(await JadeLog$2.debug(`完成请求获取阿里授权码的url:${n},参数为:${l},返回值为:${e}`),!(Sh.isEmpty(e)||e.indexOf("AccessTokenInvalid")>-1))return await JadeLog$2.info(`请求获取阿里授权码成功,返回值为:${e}`),await oauthRedirect(Code.objectFrom(e).getCode());Sh.isEmpty(e)?await JadeLog$2.error("请求获取阿里授权码失败,失败原因为:还未登录"):await JadeLog$2.error(`请求获取阿里授权码失败,失败原因为:还未登录,失败详情为:${e}`)}catch(l){return await JadeLog$2.error(`请求获取阿里授权失败,失败原因为:${l}`),!1}}async function oauthRedirect(l){try{let n={};return n.code=l,n.grant_type="authorization_code",await alist("code",n)}catch(l){return await oauth.clean().save(),!1}}async function refreshOpenToken(){try{if(Sh.isEmpty(oauth.getRefreshToken()))return await oauthRequest();if(Sh.isEmpty(oauth.getAccessToken())){let l={grant_type:"refresh_token"};return l.refresh_token=oauth.getRefreshToken(),await alist("token",l)}return!0}catch(l){return await JadeLog$2.error("刷新授权Token失败,失败原因为:"+l),await oauth.clean().save(),!1}}async function getDriveInfo(){if(!Sh.isEmpty(driveInfo)&&!Sh.isEmpty(driveInfo.default_drive_id))return driveInfo;let l=await oauthFunc("user/getDriveInfo",{},!0),n=JSON.parse(l);return driveInfo={default_drive_id:n.default_drive_id,resource_drive_id:n.resource_drive_id,backup_drive_id:n.backup_drive_id},driveInfo}async function getDriveId(){if(Sh.isEmpty(user.getDriveId())){return(await getDriveInfo()).resource_drive_id}return user.getDriveId()}async function createTmpFolder(){let l=await tmpFolderExistsFunc();if(l)return await JadeLog$2.info("文件夹存在,无需重新创建"),l;await JadeLog$2.debug("文件夹不存在,重新创建文件夹");let n={check_name_mode:"refuse",drive_id:await getDriveId(),name:tmpFolderName,parent_file_id:"root",type:"folder"},e=await oauthFunc("openFile/create",n,!0),t=JSON.parse(e);return Sh.isEmpty(t.drive_id)?(await JadeLog$2.error(`创建文件夹失败,失败原因为:${e}`),null):(await JadeLog$2.info("创建文件夹成功",!0),t.file_id)}async function tmpFolderExistsFunc(){let l={drive_id:await getDriveId(),parent_file_id:"root",limit:100,order_by:"updated_at",order_direction:"DESC"},n=await oauthFunc("openFile/list",l,!0),e=JSON.parse(n);if(Sh.isEmpty(e.items))return!1;for(const l of e.items)if(l.name===tmpFolderName)return l.file_id;return!1}async function setToken(l){user.setRefreshToken(l),await refreshAccessToken(l),await refreshOpenToken()}const aliName="阿里云盘",JadeLog$1=new JadeLogging(aliName);async function initAli(l){await initSome(),await setToken(l),await getTempFileId(),await JadeLog$1.info("阿里云盘初始化完成",!0)}class Item{constructor(){this.fileId="",this.shareId="",this.shareToken="",this.shareFileToken="",this.seriesId="",this.name="",this.type="",this.formatType="",this.size="",this.parent="",this.shareData=null,this.shareIndex=0,this.lastUpdateAt=0}static objectFrom(l,n,e){let t=new Item;return t.fileId=null==typeof l.fid?"":l.fid,t.shareId=n,t.shareToken=null==typeof l.stoken?"":l.stoken,t.shareFileToken=null==typeof l.share_fid_token?"":l.share_fid_token,t.seriesId=null==typeof l.series_id?"":l.series_id,t.name=null==typeof l.file_name?"":l.file_name,t.type=null==typeof l.obj_category?"":l.obj_category,t.formatType=null==typeof l.format_type?"":l.format_type,t.size=null==typeof l.size?"":l.size,t.parent=null==typeof l.pdir_fid?"":l.pdir_fid,t.lastUpdateAt=null==typeof l.last_update_at?"":l.last_update_at,t.shareIndex=e,t}getFileExtension(){return this.name.split(".").slice(-1)[0]}getFileId(){return Sh.isEmpty(this.fileId)?"":this.fileId}getName(){return Sh.isEmpty(this.name)?"":this.name}getParent(){return Sh.isEmpty(this.parent)?"":"["+this.parent+"]"}getSize(){return 0===this.size?"":"["+getSize(this.size)+"]"}getShareIndex(){return this.shareIndex}getDisplayName(l){let n=this.getName();if("电视剧"===l){let l=["4k","4K"];n=n.replaceAll("."+this.getFileExtension(),""),n=n.replaceAll(" ","").replaceAll(" ","");for(const e of l)n=n.replaceAll(e,"");n=getStrByRegexDefault(/\.S01E(.*?)\./,n);const e=n.match(/\d+/g);!Sh.isEmpty(e)&&e.length>0&&(n=e[0])}return n+" "+this.getSize()}getEpisodeUrl(l){return this.getDisplayName(l)+"$"+this.getFileId()+"++"+this.shareFileToken+"++"+this.shareId+"++"+this.shareToken}}class Quark{constructor(){this.apiUrl="https://drive-pc.quark.cn/1/clouddrive/",this.cookie="",this.ckey="",this.shareTokenCache={},this.pr="pr=ucpro&fr=pc",this.subtitleExts=[".srt",".ass",".scc",".stl",".ttml"],this.saveFileIdCaches={},this.saveDirId=null,this.saveDirName="TV",this.isVip=!1}async initQuark(l){this.ckey=Ch.enc.Hex.stringify(Ch.MD5(l)).toString(),this.cookie=l,this.isVip=await this.getVip()}getHeaders(){return{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch",Referer:"https://pan.quark.cn/","Content-Type":"application/json",Cookie:this.cookie,Host:"drive-pc.quark.cn"}}async api(l,n,e,t){const u=e||3;let r=await req(this.apiUrl+l,{method:t||"post",data:n,headers:this.getHeaders()});if(r.headers["set-cookie"]){const l=[r.headers["set-cookie"]].join(";;;").match(/__puus=([^;]+)/);l&&this.cookie.match(/__puus=([^;]+)/)[1]!=l[1]&&(this.cookie=this.cookie.replace(/__puus=[^;]+/,`__puus=${l[1]}`))}return 200!==r.code&&u>0?(sleep(1),await this.api(l,n,u-1)):JSON.parse(r.content)||{}}getShareData(l){let n=/https:\/\/pan\.quark\.cn\/s\/([^\\|#/]+)/.exec(l);return n?{shareId:n[1],folderId:"0"}:null}async getVip(){return"EXP_SVIP"===(await this.api("member?pr=ucpro&fr=pc&uc_param_str=&fetch_subscribe=true&_ch=home&fetch_identity=true",null,null,"get")).data.member_type}getPlayFormatList(){return this.isVip?["4K","超清","高清","普画"]:["普画"]}getPlayFormtQuarkList(){return this.isVip?["4k","2k","super","high","normal","low"]:["low"]}async getShareToken(l){if(!this.shareTokenCache[l.shareId]){delete this.shareTokenCache[l.shareId];const n=await this.api(`share/sharepage/token?${this.pr}`,{pwd_id:l.shareId,passcode:l.sharePwd||""});n.data&&n.data.stoken&&(this.shareTokenCache[l.shareId]=n.data)}}async listFile(l,n,e,t,u,r,i){i=i||1;const s=await this.api(`share/sharepage/detail?${this.pr}&pwd_id=${u}&stoken=${encodeURIComponent(this.shareTokenCache[u].stoken)}&pdir_fid=${r}&force=0&_page=${i}&_size=200&_sort=file_type:asc,file_name:asc`,null,null,"get");if(!s.data)return[];const a=s.data.list;if(!a)return[];const o=[];for(const u of a)if(!0===u.dir)o.push(u);else if(!0===u.file&&"video"===u.obj_category){if(u.size<5242880)continue;u.stoken=this.shareTokenCache[n.shareId].stoken,e.push(Item.objectFrom(u,n.shareId,l))}else"file"===u.type&&this.subtitleExts.some((l=>u.file_name.endsWith(l)))&&t.push(Item.objectFrom(u,n,l));if(ie[t].lcs.length&&(t=u)}return{allLCS:e,bestMatch:e[t],bestMatchIndex:t}}async getFilesByShareUrl(l,n,e,t){const u="string"==typeof n?this.getShareData(n):n;return u?(await this.getShareToken(u),this.shareTokenCache[u.shareId]?(await this.listFile(l,u,e,t,u.shareId,u.folderId),void(t.length>0&&e.forEach((l=>{var n=this.findBestLCS(l,t);n.bestMatch&&(l.subtitle=n.bestMatch.target)})))):[]):[]}clean(){const l=Object.keys(this.saveFileIdCaches);for(const n of l)delete this.saveFileIdCaches[n]}async clearSaveDir(){const l=await this.api(`file/sort?${this.pr}&pdir_fid=${this.saveDirId}&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");l.data&&l.data.list&&l.data.list.length>0&&await this.api(`file/delete?${this.pr}`,{action_type:2,filelist:l.data.list.map((l=>l.fid)),exclude_fids:[]})}async createSaveDir(l){if(this.saveDirId)return void(l&&await this.clearSaveDir());const n=await this.api(`file/sort?${this.pr}&pdir_fid=0&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");if(n.data&&n.data.list)for(const l of n.data.list)if(l.file_name===this.saveDirName){this.saveDirId=l.fid,await this.clearSaveDir();break}if(!this.saveDirId){const l=await this.api(`file?${this.pr}`,{pdir_fid:"0",file_name:this.saveDirName,dir_path:"",dir_init_lock:!1});l.data&&l.data.fid&&(this.saveDirId=l.data.fid)}}async save(l,n,e,t,u){if(await this.createSaveDir(u),u&&this.clean(),!this.saveDirId)return null;if(!n&&(await this.getShareToken({shareId:l}),!this.shareTokenCache[l]))return null;const r=await this.api(`share/sharepage/save?${this.pr}`,{fid_list:[e],fid_token_list:[t],to_pdir_fid:this.saveDirId,pwd_id:l,stoken:n||this.shareTokenCache[l].stoken,pdir_fid:"0",scene:"link"});if(r.data&&r.data.task_id){let l=0;for(;;){const n=await this.api(`task?${this.pr}&task_id=${r.data.task_id}&retry_index=${l}`,{},{},"get");if(n.data&&n.data.save_as&&n.data.save_as.save_as_top_fids&&n.data.save_as.save_as_top_fids.length>0)return n.data.save_as.save_as_top_fids[0];if(l++,l>2)break;sleep(1)}}return!1}async getLiveTranscoding(l,n,e,t,u){if(!this.saveFileIdCaches[e]){const u=await this.save(l,n,e,t,!0);if(!u)return null;this.saveFileIdCaches[e]=u}const r=await this.api(`file/v2/play?${this.pr}`,{fid:this.saveFileIdCaches[e],resolutions:"normal,low,high,super,2k,4k",supports:"fmp4"});if(r.data&&r.data.video_list){let l=u.split("-").slice(-1)[0],n=findAllIndexes(this.getPlayFormatList(),l),e=this.getPlayFormtQuarkList()[n];for(const l of r.data.video_list)if(l.resolution===e)return l.video_info.url;return r.data.video_list[n].video_info.url}return null}async getDownload(l,n,e,t,u){if(!this.saveFileIdCaches[e]){const r=await this.save(l,n,e,t,u);if(!r)return null;this.saveFileIdCaches[e]=r}const r=await this.api(`file/download?${this.pr}&uc_param_str=`,{fids:[this.saveFileIdCaches[e]]});return r.data?r.data[0]:null}}const quarkName="夸克云盘",JadeLog=new JadeLogging(quarkName),quark=new Quark;async function initQuark(l){quark.initQuark(l),await JadeLog.info(`夸克云盘初始化完成,Cookie为:${l}`,!0)}async function initCloud(l){initAli(l.aliToken),initQuark(l.quarkCookie)}class Result{constructor(){this.class=[],this.list=[],this.filters=[],this.header={"User-Agent":CHROME},this.format="",this.danmaku="",this.url="",this.subs=[],this.parse=0,this.jx=0,this.page=0,this.pagecount=0,this.limit=0,this.total=0,this.extra={}}get(){return new Result}home(l,n,e){return JSON.stringify({class:l,list:n,filters:e})}homeVod(l){return JSON.stringify({page:this.page,list:l,pagecount:this.page,total:this.page})}category(l,n,e,t,u){return JSON.stringify({page:parseInt(n),pagecount:e,limit:t,total:u,list:l})}search(l){return JSON.stringify({list:l,page:this.page,pagecount:this.pagecount,total:this.total})}detail(l){return JSON.stringify({list:[l]})}play(l){return Sh.isEmpty(this.danmaku)?JSON.stringify({url:l,parse:this.parse,header:this.header,format:this.format,subs:this.subs,extra:this.extra,jx:this.jx}):JSON.stringify({url:l,parse:this.parse,header:this.header,format:this.format,subs:this.subs,danmaku:this.danmaku,extra:this.extra,jx:this.jx})}playTxt(l){return l}errorCategory(l){let n=new VodShort;return n.vod_name="错误:打开无效",n.vod_id="error",n.vod_pic=RESOURCEURL+"/resources/error.png",n.vod_remarks=l,JSON.stringify({page:parseInt(0),pagecount:0,limit:0,total:0,list:[n]})}setClass(l){return this.class=l,this}setVod(l){return"object"==typeof l&&Array.isArray(l)?this.list=l:void 0!==l&&(this.list=[l]),this}setFilters(l){return this.filters=l,this}setHeader(l){return this.header=l,this}setParse(l){return this.parse=l,this}setJx(){return this.jx=1,this}setUrl(l){return this.url=l,this}danmu(l){return this.danmaku=l,this}setFormat(l){return this.format=l,this}setSubs(l){return this.subs=l,this}dash(){return this.format="application/dash+xml",this}m3u8(){return this.format="application/x-mpegURL",this}rtsp(){return this.format="application/x-rtsp",this}octet(){return this.format="application/octet-stream",this}setPage(l,n,e,t){return this.page=l,this.limit=e,this.total=t,this.pagecount=n,this}toString(){return JSON.stringify(this)}}class Spider{constructor(){this.siteKey="",this.siteType=0,this.jadeLog=new JadeLogging(this.getAppName(),"DEBUG"),this.classes=[],this.filterObj={},this.result=new Result,this.catOpenStatus=!0,this.danmuStaus=!1,this.reconnectTimes=0,this.maxReconnectTimes=5,this.siteUrl="",this.vodList=[],this.homeVodList=[],this.count=0,this.limit=0,this.total=0,this.page=0,this.vodDetail=new VodDetail,this.playUrl="",this.header={},this.remove18=!1,this.type_id_18=0,this.type_name_18="伦理片",this.episodeObj={},this.danmuUrl="",this.cfgObj={}}async reconnnect(l,n,e,t,u,r){return await this.jadeLog.error("请求失败,请检查url:"+l+",两秒后重试"),sleep(2),this.reconnectTimes0?(this.reconnectTimes=0,u?{cookie:i.headers["set-cookie"],content:i.content}:i.content):1===r?(this.reconnectTimes=0,i.content):(await this.jadeLog.error(`请求失败,请求url为:${l},回复内容为:${JSON.stringify(i)}`),await this.reconnnect(l,n,e,t,u,r,s))}async fetch(l,n,e,t=!1,u=!1,r=0,i=!1){let s=objectToStr(n),a=l;Sh.isEmpty(s)||(a=l+"?"+s);let o,c=new yh(a);return o=t?await req(c.toString(),{method:"get",headers:e,buffer:r,data:null,redirect:2,proxy:i}):await req(c.toString(),{method:"get",headers:e,buffer:r,data:null,proxy:i,timeout:1e4}),200===o.code||302===o.code||301===o.code||u?await this.getResponse(l,n,e,t,u,r,o,i):(await this.jadeLog.error(`请求失败,失败原因为:状态码出错,请求url为:${c},回复内容为:${JSON.stringify(o)}`),await this.reconnnect(l,n,e,t,u,r,o,i))}async redirect(l){}async post(l,n,e,t="form",u=0){let r=new yh(l),i=await req(r.toString(),{method:"post",headers:e,data:n,postType:t,buffer:u});return 200===i.code||void 0===i.code||302===i.code?void 0!==i.headers.location?await this.redirect(i):Sh.isEmpty(i.content)?await this.postReconnect(l,n,e,t,u):(this.reconnectTimes=0,i.content):(await this.jadeLog.error(`请求失败,请求url为:${l},回复内容为${JSON.stringify(i)}`),await this.postReconnect(l,n,e,t,u))}getName(){return"🍥┃基础┃🍥"}getAppName(){return"基础"}getJSName(){return"base"}getType(){return 3}async parseVodShortListFromDoc(l){}async parseVodShortListFromJson(l){}parseVodShortFromElement(l,n){}async parseVodShortListFromDocByCategory(l){}async getFilter(l){}async setClasses(){}async setFilterObj(){}async parseVodShortListFromDocBySearch(l){return[]}async parseVodDetailFromDoc(l){}async parseVodDetailfromJson(l){}async parseVodPlayFromUrl(l,n){}async parseVodPlayFromDoc(l,n){}async SpiderInit(l){try{this.siteKey=l.skey,this.siteType=parseInt(l.stype.toString());let n=null;"string"==typeof l.ext?(await this.jadeLog.info(`读取配置文件,ext为:${l.ext}`),n=JSON.parse(l.ext)):"object"==typeof l.ext?(await this.jadeLog.info(`读取配置文件,所有参数为:${JSON.stringify(l)}`),await this.jadeLog.info(`读取配置文件,ext为:${JSON.stringify(l.ext)}`),n=l.ext):await this.jadeLog.error("不支持的数据类型,数据类型为"+typeof l.ext);let e=n.box;return n.CatOpenStatus="CatOpen"===e,n}catch(l){return await this.jadeLog.error("初始化失败,失败原因为:"+l.message),{token:null,CatOpenStatus:!1,code:0}}}async initCloud(l){await initCloud(l)}async spiderInit(){}async init(l){this.danmuSpider=new DanmuSpider,this.cfgObj=await this.SpiderInit(l),await this.jadeLog.debug(`初始化参数为:${JSON.stringify(l)}`),this.catOpenStatus=this.cfgObj.CatOpenStatus,this.danmuStaus=this.cfgObj.danmu??this.danmuStaus;try{await this.loadFilterAndClasses()?await this.jadeLog.debug("读取缓存列表和二级菜单成功"):(await this.jadeLog.warning("读取缓存列表和二级菜单失败"),await this.writeFilterAndClasses())}catch(l){await local.set(this.siteKey,"classes",JSON.stringify([])),await local.set(this.siteKey,"filterObj",JSON.stringify({})),await this.jadeLog.error("读取缓存失败,失败原因为:"+l)}this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"img/",{}),this.douBanjsBase=await js2Proxy(!0,this.siteType,this.siteKey,"douban/",{}),this.baseProxy=await js2Proxy(!0,this.siteType,this.siteKey,"img/",this.getHeader()),this.videoProxy=await js2Proxy(!0,this.siteType,this.siteKey,"m3u8/",{}),this.detailProxy=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",this.getHeader())}async loadFilterAndClasses(){return this.classes=await this.getClassesCache(),this.filterObj=await this.getFiletObjCache(),this.classes.length>0||(await local.set(this.siteKey,"classes",JSON.stringify([])),await local.set(this.siteKey,"filterObj",JSON.stringify({})),!1)}async writeFilterAndClasses(){this.catOpenStatus&&this.classes.push({type_name:"最近更新",type_id:"最近更新"}),await this.setClasses(),await this.setFilterObj(),await local.set(this.siteKey,"classes",JSON.stringify(this.classes)),await local.set(this.siteKey,"filterObj",JSON.stringify(this.filterObj))}async getClassesCache(){let l=await local.get(this.siteKey,"classes");return Sh.isEmpty(l)?this.classes:JSON.parse(l)}async getFiletObjCache(){let l=await local.get(this.siteKey,"filterObj");return Sh.isEmpty(l)?this.filterObj:JSON.parse(l)}async setHome(l){}async home(l){return this.vodList=[],await this.jadeLog.info("正在解析首页类别",!0),await this.setHome(l),await this.jadeLog.debug(`首页类别内容为:${this.result.home(this.classes,[],this.filterObj)}`),await this.jadeLog.info("首页类别解析完成",!0),this.result.home(this.classes,[],this.filterObj)}async setHomeVod(){}async homeVod(){return await this.jadeLog.info("正在解析首页内容",!0),await this.setHomeVod(),await this.jadeLog.debug(`首页内容为:${this.result.homeVod(this.homeVodList)}`),await this.jadeLog.info("首页内容解析完成",!0),this.result.homeVod(this.homeVodList)}async setCategory(l,n,e,t){}async category(l,n,e,t){if(this.page=parseInt(n),await this.jadeLog.info(`正在解析分类页面,tid = ${l},pg = ${n},filter = ${e},extend = ${JSON.stringify(t)}`),"最近更新"===l)return this.page=0,await this.homeVod();try{return this.vodList=[],await this.setCategory(l,n,e,t),await this.jadeLog.debug(`分类页面内容为:${this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}`),await this.jadeLog.info("分类页面解析完成",!0),this.result.category(this.vodList,this.page,this.count,this.limit,this.total)}catch(l){await this.jadeLog.error(`分类页解析失败,失败原因为:${l}`)}}async setDetail(l){}setEpisodeCache(){let l={vodDetail:this.vodDetail.to_dict()},n=this.vodDetail.vod_play_url.split("$$$");for(const e of n){let n=e.split("#");for(const e of n){let n=e.split("$")[0].split(" ")[0],t=e.split("$")[1],u=n.match(/\d+/g);null!==u&&u.length>0&&(n=u[0]),l[t]={episodeName:n,episodeId:n}}}return l}async detail(l){this.vodDetail=new VodDetail,await this.jadeLog.info(`正在获取详情页面,id为:${l}`);try{return await this.setDetail(l),await this.jadeLog.debug(`详情页面内容为:${this.result.detail(this.vodDetail)}`),await this.jadeLog.info("详情页面解析完成",!0),this.vodDetail.vod_id=l,3===this.siteType&&(this.episodeObj=this.setEpisodeCache()),this.result.detail(this.vodDetail)}catch(l){await this.jadeLog.error("详情界面获取失败,失败原因为:"+l)}}async setPlay(l,n,e){this.playUrl=n}async setDanmu(l){await this.jadeLog.debug(`${JSON.stringify(this.episodeObj)}`);let n=this.episodeObj[l],e=JSON.parse(this.episodeObj.vodDetail);return delete e.vod_content,delete e.vod_play_from,delete e.vod_play_url,delete e.vod_pic,await this.jadeLog.debug(`正在加载弹幕,视频详情为:${JSON.stringify(e)},集数:${JSON.stringify(this.episodeObj[l])}`),await this.danmuSpider.getDammu(e,n)}async play(l,n,e){await this.jadeLog.info(`正在解析播放页面,flag:${l},id:${n},flags:${e}`,!0);try{let t;if(await this.setPlay(l,n,e),void 0!==this.playUrl.content)t=this.result.playTxt(this.playUrl);else if(this.danmuStaus&&!this.catOpenStatus)if(Sh.isEmpty(this.danmuUrl)){let l;try{l=await this.setDanmu(n)}catch(l){await this.jadeLog.error(`弹幕加载失败,失败原因为:${l}`)}t=this.result.danmu(l).play(this.playUrl)}else await this.jadeLog.debug("播放详情页面有弹幕,所以不需要再查找弹幕"),t=this.result.danmu(this.danmuUrl).play(this.playUrl);else await this.jadeLog.debug("不需要加载弹幕",!0),t=this.result.play(this.playUrl);return await this.jadeLog.info("播放页面解析完成",!0),await this.jadeLog.debug(`播放页面内容为:${t}`),t}catch(l){await this.jadeLog.error("解析播放页面出错,失败原因为:"+l)}}async setSearch(l,n){}async search(l,n){return this.vodList=[],await this.jadeLog.info(`正在解析搜索页面,关键词为 = ${l},quick = ${n}`),await this.setSearch(l,n,1),0===this.vodList.length&&l.indexOf(" ")>-1&&(await this.jadeLog.debug(`搜索关键词为:${l},其中有空格,去除空格在搜索一次`),await this.search(l.replaceAll(" ","").replaceAll("\ufeff",""),n)),await this.jadeLog.debug(`搜索页面内容为:${this.result.search(this.vodList)}`),await this.jadeLog.info("搜索页面解析完成",!0),this.result.search(this.vodList)}async getImg(l,n){let e,t=n.Proxy;Sh.isEmpty(n)&&(n={Referer:l,"User-Agent":CHROME}),e=await req(l,{buffer:2,headers:n,proxy:t});try{return base64Decode(e.content),t?await this.jadeLog.error(`使用VPN代理,图片地址为:${l},headers:${JSON.stringify(n)},代理失败,准备重连,输出内容为:${JSON.stringify(e)}`):await this.jadeLog.error(`使用普通代理,图片地址为:${l},headers:${JSON.stringify(n)},代理失败,准备重连,输出内容为:${JSON.stringify(e)}`),this.reconnectTimesjs2Proxy(!1,this.siteType,this.siteKey,"ts/"+encodeURIComponent(s.key+"/"+l.mediaSequenceNumber.toString()),n)));return{code:s.code,content:o,headers:i(s,o)}}}if("ts"===e){const c=t.split("/"),h=c[0],f=parseInt(c[1]);return await tsCache(h,f,n)}if("detail"===e){let p=await this.getHtml(this.siteUrl+t),d=await this.parseVodDetailFromDoc(p),m=await this.getImg(d.vod_pic,n);return JSON.stringify({code:m.code,buffer:2,content:m.content,headers:m.headers})}return JSON.stringify({code:500,content:""})}{let E=await this.doubanSearch(t);if(null!==E){let T,_=E[0].vod_pic;return T=Sh.isEmpty(n)?await req(_,{buffer:2,headers:{Referer:_,"User-Agent":CHROME}}):await req(_,{buffer:2,headers:n}),JSON.stringify({code:T.code,buffer:2,content:T.content,headers:T.headers})}}}getSearchHeader(){const l=["api-client/1 com.douban.frodo/7.22.0.beta9(231) Android/23 product/Mate 40 vendor/HUAWEI model/Mate 40 brand/HUAWEI rom/android network/wifi platform/AndroidPad","api-client/1 com.douban.frodo/7.18.0(230) Android/22 product/MI 9 vendor/Xiaomi model/MI 9 brand/Android rom/miui6 network/wifi platform/mobile nd/1","api-client/1 com.douban.frodo/7.1.0(205) Android/29 product/perseus vendor/Xiaomi model/Mi MIX 3 rom/miui6 network/wifi platform/mobile nd/1","api-client/1 com.douban.frodo/7.3.0(207) Android/22 product/MI 9 vendor/Xiaomi model/MI 9 brand/Android rom/miui6 network/wifi platform/mobile nd/1"];return{"User-Agent":l[Math.floor(Math.random()*l.length)]}}async parseDoubanVodShortListFromJson(l){let n=[];for(const e of l){let l=new VodShort;l.vod_id="msearch:"+e.id,void 0===e.title?l.vod_name=e.target.title:l.vod_name=e.title,void 0===e.pic?l.vod_pic=e.target.cover_url:l.vod_pic=e.pic.normal,void 0===e.rating?l.vod_remarks="评分:"+e.target.rating.value.toString():l.vod_remarks="评分:"+e.rating.value.toString(),n.push(l)}return n}sign(l,n,e="GET"){let t="%2F"+l.split("/").slice(3).join("%2F"),u=[e.toLocaleUpperCase(),t,n.toString()].join("&");return CryptoJS.HmacSHA1(u,"bf7dddc7c9cfe6f7").toString(CryptoJS.enc.Base64)}async doubanSearch(l){try{let n="0dad551ec0f84ed02907ff5c42e8ec70",e="https://frodo.douban.com/api/v2"+"/search/movie",t=new Date,u=t.getFullYear().toString()+(t.getMonth()+1).toString()+t.getDate().toString(),r={_sig:this.sign(e,u),_ts:u,apiKey:n,count:20,os_rom:"android",q:encodeURIComponent(l),start:0},i=await this.fetch(e,r,this.getSearchHeader());if(!Sh.isEmpty(i)){let l=JSON.parse(i);return await this.jadeLog.debug(`豆瓣搜索结果:${i}`),await this.parseDoubanVodShortListFromJson(l.items)}return null}catch(l){await this.jadeLog.error("反向代理出错,失败原因为:"+l)}}}class JpyySpider extends Spider{constructor(){super(),this.siteUrl="https://www.cfkj86.com"}getName(){return"📺┃金牌影院┃📺"}getAppName(){return"金牌影院"}getJSName(){return"jpyy"}getType(){return 3}async parseVodShortListFromDoc($){let vod_list=[],json={};for(const script of $("script"))$(script).text().indexOf("操作成功")>-1&&(json=JSON.parse(eval($(script).text().replaceAll("self.__next_f.push(","").replaceAll(")",""))[1].replaceAll("6:","")));let vodJson=json[3].children[3].data;for(const l in vodJson.data)for(const n of vodJson.data[l].list){let l=new VodShort;l.vod_id=n.vodId,l.vod_name=n.vodName,l.vod_pic=n.vodPic,l.vod_remarks=n.vodVersion,vod_list.push(l)}return vod_list}async parseSearchFromDoc($){let vod_list=[],json={};for(const script of $("script"))$(script).text().indexOf("操作成功")>-1&&(json=JSON.parse(eval($(script).text().replaceAll("self.__next_f.push(","").replaceAll(")",""))[1].replaceAll("6:","")));let vodJson=json[3].data.data.result;for(const l of vodJson.list){let n=new VodShort;n.vod_id=l.vodId,n.vod_name=l.vodName,n.vod_pic=l.vodPic,n.vod_remarks=l.vodVersion,vod_list.push(n)}return vod_list}async parseVodShortListFromDocByCategory($){let vod_list=[],json={};for(const script of $("script"))$(script).text().indexOf("操作成功")>-1&&(json=JSON.parse(eval($(script).text().replaceAll("self.__next_f.push(","").replaceAll(")",""))[1].replaceAll("6:","")));let vodJson=json[3].videoList.data;for(const l of vodJson.list){let n=new VodShort;n.vod_id=l.vodId,n.vod_name=l.vodName,n.vod_pic=l.vodPic,n.vod_remarks=l.vodVersion,vod_list.push(n)}return vod_list}async parseVodDetailFromDoc($){let json={};for(const script of $("script"))$(script).text().indexOf("操作成功")>-1&&(json=JSON.parse(eval($(script).text().replaceAll("self.__next_f.push(","").replaceAll(")",""))[1].replaceAll("6:","")));let vodJson=json[3].data.data,vodDetail=new VodDetail;return vodDetail.vod_name=vodJson.vodName,vodDetail.vod_remarks=vodJson.vodRemarks,vodDetail.vod_area=vodJson.vodArea,vodDetail.vod_year=vodJson.vodYear,vodDetail.type_name=vodJson.vodName,vodDetail.vod_content=vodJson.vodBlurb,vodDetail.vod_pic=vodJson.vodPic,vodDetail.vod_actor=vodJson.vodActor,vodDetail.vod_director=vodJson.vodDirector,vodDetail}async setClasses(){let l=await this.fetch(this.siteUrl,null,this.getHeader());if(!Sh.isEmpty(l)){let n=Eh(l),e=n("div.header__HeaderLeftBox-sc-f39f4ddd-2 > a");for(const l of e){let e=n(l).find("div"),t=n(l).attr("href"),u=n(e[0]).text();Sh.isEmpty(u)||this.classes.push({type_id:t,type_name:u})}}}async getFilter(l){l=l.split("/")[2];let n=this.siteUrl+"/vod/show/id/"+l,e=await this.fetch(n,null,this.getHeader()),t=[];if(!Sh.isEmpty(e)){let l=Eh(e),n=l("div.filter-box"),u=0;for(const e of n){let n=l(e).find("div.filter-title").text(),r={key:(u+1).toString(),name:n,value:[]},i=l(e).find("a");for(const n of i){let e=n.attribs.href.split("/");e.length>5?(r.value.push({n:l(n).text(),v:e[6]}),r.key=e[5]):r.value.push({n:l(n).text(),v:""})}t.push(r),u+=1}}return t}async setFilterObj(){for(const l of this.classes){let n=l.type_id;"/"!==n&&(this.filterObj[n]=await this.getFilter(n))}}async setHomeVod(){let l=await this.fetch(this.siteUrl,null,this.getHeader());if(!Sh.isEmpty(l)){let n=Eh(l);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(l,n,e,t){if("/"===l){let l=await this.fetch(this.siteUrl,null,this.getHeader()),n=Eh(l);this.vodList=await this.parseVodShortListFromDoc(n)}else{let n=l.split("/"),e=this.siteUrl+"/vod/show/id/"+n[2];for(let l in t)t[l]&&(e+="/"+l+"/"+t[l]);let u=await this.fetch(e,{},this.getHeader());if(!Sh.isEmpty(u)){let l=Eh(u);this.vodList=await this.parseVodShortListFromDocByCategory(l)}}}async setDetail(l){let n=this.siteUrl+"/detail/"+l,e=await this.fetch(n,null,this.getHeader());if(!Sh.isEmpty(e)){let l=Eh(e);this.vodDetail=await this.parseVodDetailFromDoc(l);let n=l("div.listitem > a"),t="";for(const e of n)t+=l(e).text()+"$"+l(e).attr("href")+"#";this.vodDetail.vod_play_url=t,this.vodDetail.vod_play_from="金牌影院"}}async setPlay(l,n,e){let t=n.split("/"),u=t[3],r=t[5],i=(new Date).getTime().toString(),s="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(l=>("x"===l?16*Math.random()|0:8).toString(16))),a=Ch.SHA1(Ch.MD5("id="+u+"&nid="+r+"&key=cb808529bae6b6be45ecfab29a4889bc&t="+i).toString().toLowerCase()).toString(),o=this.siteUrl+"/api/mw-movie/anonymous/v1/video/episode/url?id="+u+"&nid="+r,c=this.getHeader();c.deviceid=s,c.sign=a,c.t=i;let h=await this.fetch(o,null,c);if(!Sh.isEmpty(h)){let l=JSON.parse(h);200===l.code?this.playUrl=l.data.playUrl:this.jadeLog.error(l.msg)}}async setSearch(l,n){let e=this.siteUrl+"/vod/search/"+encodeURI(l),t=await this.fetch(e,null,this.getHeader());if(!Sh.isEmpty(t)){let l=Eh(t);this.vodList=await this.parseSearchFromDoc(l)}}}let spider=new JpyySpider;async function init(l){await spider.init(l)}async function home(l){return await spider.home(l)}async function homeVod(){return await spider.homeVod()}async function category(l,n,e,t){return await spider.category(l,n,e,t)}async function detail(l){return await spider.detail(l)}async function play(l,n,e){return await spider.play(l,n,e)}async function search(l,n){return await spider.search(l,n)}function __jsEvalReturn(){return{init:init,home:home,homeVod:homeVod,category:category,detail:detail,play:play,search:search}}export{__jsEvalReturn,spider};