PR1_Sonderuebungen/PR1/.obsidian/plugins/obsidian-advanced-slides/main.js

642 lines
1.4 MiB
JavaScript
Raw Permalink Normal View History

2024-05-21 13:28:52 +02:00
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var OL=Object.create;var N0=Object.defineProperty;var TL=Object.getOwnPropertyDescriptor;var qL=Object.getOwnPropertyNames;var IL=Object.getPrototypeOf,zL=Object.prototype.hasOwnProperty;var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RL=(e,t)=>{for(var r in t)N0(e,r,{get:t[r],enumerable:!0})},O3=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qL(t))!zL.call(e,a)&&a!==r&&N0(e,a,{get:()=>t[a],enumerable:!(i=TL(t,a))||i.enumerable});return e};var Fa=(e,t,r)=>(r=e!=null?OL(IL(e)):{},O3(t||!e||!e.__esModule?N0(r,"default",{value:e,enumerable:!0}):r,e)),BL=e=>O3(N0({},"__esModule",{value:!0}),e);var pl=$((bce,ll)=>{"use strict";function I3(e){return typeof e>"u"||e===null}function LL(e){return typeof e=="object"&&e!==null}function NL(e){return Array.isArray(e)?e:I3(e)?[]:[e]}function ML(e,t){var r,i,a,n;if(t)for(n=Object.keys(t),r=0,i=n.length;r<i;r+=1)a=n[r],e[a]=t[a];return e}function UL(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function $L(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ll.exports.isNothing=I3;ll.exports.isObject=LL;ll.exports.toArray=NL;ll.exports.repeat=UL;ll.exports.isNegativeZero=$L;ll.exports.extend=ML});var Qp=$((xce,z3)=>{"use strict";function Hh(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Hh.prototype=Object.create(Error.prototype);Hh.prototype.constructor=Hh;Hh.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};z3.exports=Hh});var L3=$((wce,B3)=>{"use strict";var R3=pl();function v2(e,t,r,i,a){this.name=e,this.buffer=t,this.position=r,this.line=i,this.column=a}v2.prototype.getSnippet=function(t,r){var i,a,n,o,u;if(!this.buffer)return null;for(t=t||4,r=r||75,i="",a=this.position;a>0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a-1))===-1;)if(a-=1,this.position-a>r/2-1){i=" ... ",a+=5;break}for(n="",o=this.position;o<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){n=" ... ",o-=5;break}return u=this.buffer.slice(a,o),R3.repeat(" ",t)+i+u+n+`
`+R3.repeat(" ",t+this.position-a+i.length)+"^"};v2.prototype.toString=function(t){var r,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(i+=`:
`+r)),i};B3.exports=v2});var Qa=$((kce,M3)=>{"use strict";var N3=Qp(),HL=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],KL=["scalar","sequence","mapping"];function WL(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function VL(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(HL.indexOf(r)===-1)throw new N3('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=WL(t.styleAliases||null),KL.indexOf(this.kind)===-1)throw new N3('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}M3.exports=VL});var fl=$((_ce,$3)=>{"use strict";var U3=pl(),M0=Qp(),GL=Qa();function y2(e,t,r){var i=[];return e.include.forEach(function(a){r=y2(a,t,r)}),e[t].forEach(function(a){r.forEach(function(n,o){n.tag===a.tag&&n.kind===a.kind&&i.push(o)}),r.push(a)}),r.filter(function(a,n){return i.indexOf(n)===-1})}function YL(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function i(a){e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function Xp(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new M0("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=y2(this,"implicit",[]),this.compiledExplicit=y2(this,"explicit",[]),this.compiledTypeMap=YL(this.compiledImplicit,this.compiledExplicit)}Xp.DEFAULT=null;Xp.create=function(){var t,r;switch(arguments.length){case 1:t=Xp.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new M0("Wrong number of arguments for Schema.create function")}if(t=U3.toArray(t),r=U3.toArray(r),!t.every(function(i){return i instanceof Xp}))throw new M0("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof GL}))throw new M0("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Xp({include:t,explicit:r})};$3.exports=Xp});var K3=$((Ece,H3)=>{"use strict";var ZL=Qa();H3.exports=new ZL("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var V3=$((Sce,W3)=>{"use strict";var QL=Qa();W3.exports=new QL("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Y3=$((jce,G3)=>{"use strict";var XL=Qa();G3.exports=new XL("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var U0=$((Ace,Z3)=>{"use strict";var JL=fl();Z3.exports=new JL({explicit:[K3(),V3(),Y3()]})});var X3=$((Cce,Q3)=>{"use strict";var eN=Qa();function tN(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function rN(){return null}function aN(e){return e===null}Q3.exports=new eN("tag:yaml.org,2002:null",{kind:"scalar",resolve:tN,construct:rN,predicate:aN,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var e5=$((Fce,J3)=>{"use strict";var iN=Qa();function nN(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function oN(e){return e==="true"||e==="True"||e==="TRUE"}function sN(e){return Object.prototype.toString.call(e)==="[object Boolean]"}J3.exports=new iN("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nN,construct:oN,predicate:sN,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){retu
\r`;function ON(e){if(e===null)return!1;var t,r,i=0,a=e.length,n=w2;for(r=0;r<a;r++)if(t=n.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function TN(e){var t,r,i=e.replace(/[\r\n=]/g,""),a=i.length,n=w2,o=0,u=[];for(t=0;t<a;t++)t%4===0&&t&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|n.indexOf(i.charAt(t));return r=a%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),dl?dl.from?dl.from(u):new dl(u):u}function qN(e){var t="",r=0,i,a,n=e.length,o=w2;for(i=0;i<n;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return a=n%3,a===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):a===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):a===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function IN(e){return dl&&dl.isBuffer(e)}m5.exports=new PN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ON,construct:TN,predicate:IN,represent:qN})});var y5=$((Rce,v5)=>{"use strict";var zN=Qa(),RN=Object.prototype.hasOwnProperty,BN=Object.prototype.toString;function LN(e){if(e===null)return!0;var t=[],r,i,a,n,o,u=e;for(r=0,i=u.length;r<i;r+=1){if(a=u[r],o=!1,BN.call(a)!=="[object Object]")return!1;for(n in a)if(RN.call(a,n))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(n)===-1)t.push(n);else return!1}return!0}function NN(e){return e!==null?e:[]}v5.exports=new zN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:LN,construct:NN})});var x5=$((Bce,b5)=>{"use strict";var MN=Qa(),UN=Object.prototype.toString;function $N(e){if(e===null)return!0;var t,r,i,a,n,o=e;for(n=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],UN.call(i)!=="[object Object]"||(a=Object.keys(i),a.length!==1))return!1;n[t]=[a[0],i[a[0]]]}return!0}function HN(e){if(e===null)return[];var t,r,i,a,n,o=e;for(n=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],a=Object.keys(i),n[t]=[a[0],i[a[0]]];return n}b5.exports=new MN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:$N,construct:HN})});var k5=$((Lce,w5)=>{"use strict";var KN=Qa(),WN=Object.prototype.hasOwnProperty;function VN(e){if(e===null)return!0;var t,r=e;for(t in r)if(WN.call(r,t)&&r[t]!==null)return!1;return!0}function GN(e){return e!==null?e:{}}w5.exports=new KN("tag:yaml.org,2002:set",{kind:"mapping",resolve:VN,construct:GN})});var Jp=$((Nce,_5)=>{"use strict";var YN=fl();_5.exports=new YN({include:[x2()],implicit:[p5(),d5()],explicit:[g5(),y5(),x5(),k5()]})});var S5=$((Mce,E5)=>{"use strict";var ZN=Qa();function QN(){return!0}function XN(){}function JN(){return""}function eM(e){return typeof e>"u"}E5.exports=new ZN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:QN,construct:XN,predicate:eM,represent:JN})});var A5=$((Uce,j5)=>{"use strict";var tM=Qa();function rM(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),i="";return!(t[0]==="/"&&(r&&(i=r[1]),i.length>3||t[t.length-i.length-1]!=="/"))}function aM(e){var t=e,r=/\/([gim]*)$/.exec(e),i="";return t[0]==="/"&&(r&&(i=r[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function iM(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function nM(e){return Object.prototype.toString.call(e)==="[object RegExp]"}j5.exports=new tM("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:rM,construct:aM,predicate:nM,represent:iM})});var D5=$(($ce,F5)=>{"use strict";var $0;try{C5=require,$0=C5("esprima")}catch{typeof window<"u"&&($0=window.esprima)}var C5,oM=Qa();function sM(e){if(e===null)return!1;try{var t="("+e+")",r=$0.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function uM(e){var t="("+e+")",r=$0.parse(t,{range:!0}),i=[],a;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resol
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function xM(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var K5=new Array(256),W5=new Array(256);for(hl=0;hl<256;hl++)K5[hl]=I5(hl)?1:0,W5[hl]=I5(hl);var hl;function wM(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fM,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function V5(e,t){return new L5(t,new pM(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function Nt(e,t){throw V5(e,t)}function W0(e,t){e.onWarning&&e.onWarning.call(null,V5(e,t))}var z5={YAML:function(t,r,i){var a,n,o;t.version!==null&&Nt(t,"duplication of %YAML directive"),i.length!==1&&Nt(t,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),a===null&&Nt(t,"ill-formed argument of the YAML directive"),n=parseInt(a[1],10),o=parseInt(a[2],10),n!==1&&Nt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&W0(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var a,n;i.length!==2&&Nt(t,"TAG directive accepts exactly two arguments"),a=i[0],n=i[1],$5.test(a)||Nt(t,"ill-formed tag handle (first argument) of the TAG directive"),ec.call(t.tagMap,a)&&Nt(t,'there is a previously declared suffix for "'+a+'" tag handle'),H5.test(n)||Nt(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[a]=n}};function Ju(e,t,r,i){var a,n,o,u;if(t<r){if(u=e.input.slice(t,r),i)for(a=0,n=u.length;a<n;a+=1)o=u.charCodeAt(a),o===9||32<=o&&o<=1114111||Nt(e,"expected valid JSON character");else hM.test(u)&&Nt(e,"the stream contains non-printable characters");e.result+=u}}function R5(e,t,r,i){var a,n,o,u;for(cu.isObject(r)||Nt(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(r),o=0,u=a.length;o<u;o+=1)n=a[o],ec.call(t,n)||(t[n]=r[n],i[n]=!0)}function tf(e,t,r,i,a,n,o,u){var c,p;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),c=0,p=a.length;c<p;c+=1)Array.isArray(a[c])&&Nt(e,"nested arrays are not supported inside keys"),typeof a=="object"&&q5(a[c])==="[object Object]"&&(a[c]="[object Object]");if(typeof a=="object"&&q5(a)==="[object Object]"&&(a="[object Object]"),a=String(a),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(c=0,p=n.length;c<p;c+=1)R5(e,t,n[c],r);else R5(e,t,n,r);else!e.json&&!ec.call(r,a)&&ec.call(t,a)&&(e.line=o||e.line,e.position=u||e.position,Nt(e,"duplicated mapping key")),t[a]=n,delete r[a];return t}function _2(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Nt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function La(e,t,r){for(var i=0,a=e.input.charCodeAt(e.position);a!==0;){for(;ml(a);)a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(hs(a))for(_2(e),a=e.input.charCodeAt(e.position),i++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&W0(e,"deficient indentation"),i}function V0(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Fn(r)))}function E2(e,t){t===1?e.result+=" ":t>1&&(e.result+=cu.repeat(`
`,t-1))}function kM(e,t,r){var i,a,n,o,u,c,p,f,d=e.kind,m=e.result,h;if(h=e.input.charCodeAt(e.position),Fn(h)||ef(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(a=e.input.charCodeAt(e.position+1),Fn(a)||r&&ef(a)))return!1;for(e.kind="scalar",e.result="",n=o=e.position,u=!1;h!==0;){if(h===58){if(a=e.input.charCodeAt(e.position+1),Fn(a)||r&&ef(a))break}else if(h===35){if(i=e.input.charCodeAt(e.position-1),Fn(i))break}else{if(e.position===e.lineStart&&V0(e)||r&&ef(h))break;if(hs(h))if(c=e.line,p=e.lineStart,f=e.lineIndent,La(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=p,e.lineIndent=f;break}}u&&(Ju(e,n,o,!1),E2(e,e.line-c),n=o=e.position,u=!1),ml(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return Ju(e,n,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function _M(e,t){var r,i,a;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ju(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,a=e.position;else return!0;else hs(r)?(Ju(e,i,a,!0),E2(e,La(e,!1,t)),i=a=e.position):e.position===e.lineStart&&V0(e)?Nt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Nt(e,"unexpected end of the stream within a single quoted scalar")}function EM(e,t){var r,i,a,n,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return Ju(e,r,e.position,!0),e.position++,!0;if(u===92){if(Ju(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),hs(u))La(e,!1,t);else if(u<256&&K5[u])e.result+=W5[u],e.position++;else if((o=yM(u))>0){for(a=o,n=0;a>0;a--)u=e.input.charCodeAt(++e.position),(o=vM(u))>=0?n=(n<<4)+o:Nt(e,"expected hexadecimal character");e.result+=xM(n),e.position++}else Nt(e,"unknown escape sequence");r=i=e.position}else hs(u)?(Ju(e,r,i,!0),E2(e,La(e,!1,t)),r=i=e.position):e.position===e.lineStart&&V0(e)?Nt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Nt(e,"unexpected end of the stream within a double quoted scalar")}function SM(e,t){var r=!0,i,a=e.tag,n,o=e.anchor,u,c,p,f,d,m={},h,v,b,x;if(x=e.input.charCodeAt(e.position),x===91)c=93,d=!1,n=[];else if(x===123)c=125,d=!0,n={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=n),x=e.input.charCodeAt(++e.position);x!==0;){if(La(e,!0,t),x=e.input.charCodeAt(e.position),x===c)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=n,!0;r||Nt(e,"missed comma between flow collection entries"),v=h=b=null,p=f=!1,x===63&&(u=e.input.charCodeAt(e.position+1),Fn(u)&&(p=f=!0,e.position++,La(e,!0,t))),i=e.line,rf(e,t,H0,!1,!0),v=e.tag,h=e.result,La(e,!0,t),x=e.input.charCodeAt(e.position),(f||e.line===i)&&x===58&&(p=!0,x=e.input.charCodeAt(++e.position),La(e,!0,t),rf(e,t,H0,!1,!0),b=e.result),d?tf(e,n,m,v,h,b):p?n.push(tf(e,null,m,v,h,b)):n.push(h),La(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}Nt(e,"unexpected end of the stream within a flow collection")}function jM(e,t){var r,i,a=k2,n=!1,o=!1,u=t,c=0,p=!1,f,d;if(d=e.input.charCodeAt(e.position),d===124)i=!1;else if(d===62)i=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)k2===a?a=d===43?T5:dM:Nt(e,"repeat of a chomping mode identifier");else if((f=bM(d))>=0)f===0?Nt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Nt(e,"repeat of an indentation width identifier"):(u=t+f-1,o=!0);else break;if(ml(d)){do d=e.input.charCodeAt(++e.position);while(ml(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!hs(d)&&d!==0)}for(;d!==0;){for(_2(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineInden
`,n?1+c:c):a===k2&&n&&(e.result+=`
`);break}for(i?ml(d)?(p=!0,e.result+=cu.repeat(`
`,n?1+c:c)):p?(p=!1,e.result+=cu.repeat(`
`,c+1)):c===0?n&&(e.result+=" "):e.result+=cu.repeat(`
`,c):e.result+=cu.repeat(`
`,n?1+c:c),n=!0,o=!0,c=0,r=e.position;!hs(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ju(e,r,e.position,!1)}return!0}function B5(e,t){var r,i=e.tag,a=e.anchor,n=[],o,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=n),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(o=e.input.charCodeAt(e.position+1),!Fn(o)));){if(u=!0,e.position++,La(e,!0,-1)&&e.lineIndent<=t){n.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,rf(e,t,U5,!1,!0),n.push(e.result),La(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)Nt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=i,e.anchor=a,e.kind="sequence",e.result=n,!0):!1}function AM(e,t,r){var i,a,n,o,u=e.tag,c=e.anchor,p={},f={},d=null,m=null,h=null,v=!1,b=!1,x;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),x=e.input.charCodeAt(e.position);x!==0;){if(i=e.input.charCodeAt(e.position+1),n=e.line,o=e.position,(x===63||x===58)&&Fn(i))x===63?(v&&(tf(e,p,f,d,m,null),d=m=h=null),b=!0,v=!0,a=!0):v?(v=!1,a=!0):Nt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=i;else if(rf(e,r,M5,!1,!0))if(e.line===n){for(x=e.input.charCodeAt(e.position);ml(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),Fn(x)||Nt(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(tf(e,p,f,d,m,null),d=m=h=null),b=!0,v=!1,a=!1,d=e.tag,m=e.result;else if(b)Nt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(b)Nt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0;else break;if((e.line===n||e.lineIndent>t)&&(rf(e,t,K0,!0,a)&&(v?m=e.result:h=e.result),v||(tf(e,p,f,d,m,h,n,o),d=m=h=null),La(e,!0,-1),x=e.input.charCodeAt(e.position)),e.lineIndent>t&&x!==0)Nt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&tf(e,p,f,d,m,null),b&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=p),b}function CM(e){var t,r=!1,i=!1,a,n,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&Nt(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,a="!!",o=e.input.charCodeAt(++e.position)):a="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(n=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):Nt(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Fn(o);)o===33&&(i?Nt(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(t-1,e.position+1),$5.test(a)||Nt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),gM.test(n)&&Nt(e,"tag suffix cannot contain flow indicator characters")}return n&&!H5.test(n)&&Nt(e,"tag name cannot contain such characters: "+n),r?e.tag=n:ec.call(e.tagMap,a)?e.tag=e.tagMap[a]+n:a==="!"?e.tag="!"+n:a==="!!"?e.tag="tag:yaml.org,2002:"+n:Nt(e,'undeclared tag handle "'+a+'"'),!0}function FM(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Nt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Fn(r)&&!ef(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Nt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function DM(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Fn(i)&&!ef(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Nt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ec.call(e.anchorMap,r)||Nt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],La(e,!0,-1),!0}function rf(e,t,r,i,a){var n,o,u,c=1,p=!1,f=!1,d,m,h,v,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,n=o=u=
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new wM(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Nt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)PM(r);return r.documents}function Y5(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=G5(e,r);if(typeof t!="function")return i;for(var a=0,n=i.length;a<n;a+=1)t(i[a])}function Z5(e,t){var r=G5(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new L5("expected a single document in the stream, but found more")}}function OM(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Y5(e,t,cu.extend({schema:N5},r))}function TM(e,t){return Z5(e,cu.extend({schema:N5},t))}Wh.exports.loadAll=Y5;Wh.exports.load=Z5;Wh.exports.safeLoadAll=OM;Wh.exports.safeLoad=TM});var xA=$((Wce,C2)=>{"use strict";var Gh=pl(),Yh=Qp(),qM=Kh(),IM=Jp(),nA=Object.prototype.toString,oA=Object.prototype.hasOwnProperty,zM=9,Vh=10,RM=13,BM=32,LM=33,NM=34,sA=35,MM=37,UM=38,$M=39,HM=42,uA=44,KM=45,cA=58,WM=61,VM=62,GM=63,YM=64,lA=91,pA=93,ZM=96,fA=123,QM=124,dA=125,Ui={};Ui[0]="\\0";Ui[7]="\\a";Ui[8]="\\b";Ui[9]="\\t";Ui[10]="\\n";Ui[11]="\\v";Ui[12]="\\f";Ui[13]="\\r";Ui[27]="\\e";Ui[34]='\\"';Ui[92]="\\\\";Ui[133]="\\N";Ui[160]="\\_";Ui[8232]="\\L";Ui[8233]="\\P";var XM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function JM(e,t){var r,i,a,n,o,u,c;if(t===null)return{};for(r={},i=Object.keys(t),a=0,n=i.length;a<n;a+=1)o=i[a],u=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&oA.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[o]=u;return r}function X5(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Yh("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Gh.repeat("0",i-t.length)+t}function eU(e){this.schema=e.schema||qM,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Gh.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=JM(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function J5(e,t){for(var r=Gh.repeat(" ",t),i=0,a=-1,n="",o,u=e.length;i<u;)a=e.indexOf(`
`,i),a===-1?(o=e.slice(i),i=u):(o=e.slice(i,a+1),i=a+1),o.length&&o!==`
`&&(n+=r),n+=o;return n}function S2(e,t){return`
`+Gh.repeat(" ",e.indent*t)}function tU(e,t){var r,i,a;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(a=e.implicitTypes[r],a.resolve(t))return!0;return!1}function A2(e){return e===BM||e===zM}function af(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function rU(e){return af(e)&&!A2(e)&&e!==65279&&e!==RM&&e!==Vh}function eA(e,t){return af(e)&&e!==65279&&e!==uA&&e!==lA&&e!==pA&&e!==fA&&e!==dA&&e!==cA&&(e!==sA||t&&rU(t))}function aU(e){return af(e)&&e!==65279&&!A2(e)&&e!==KM&&e!==GM&&e!==cA&&e!==uA&&e!==lA&&e!==pA&&e!==fA&&e!==dA&&e!==sA&&e!==UM&&e!==HM&&e!==LM&&e!==QM&&e!==WM&&e!==VM&&e!==$M&&e!==NM&&e!==MM&&e!==YM&&e!==ZM}function hA(e){var t=/^\n* /;return t.test(e)}var mA=1,gA=2,vA=3,yA=4,G0=5;function iU(e,t,r,i,a){var n,o,u,c=!1,p=!1,f=i!==-1,d=-1,m=aU(e.charCodeAt(0))&&!A2(e.charCodeAt(e.length-1));if(t)for(n=0;n<e.length;n++){if(o=e.charCodeAt(n),!af(o))return G0;u=n>0?e.charCodeAt(n-1):null,m=m&&eA(o,u)}else{for(n=0;n<e.length;n++){if(o=e.charCodeAt(n),o===Vh)c=!0,f&&(p=p||n-d-1>i&&e[d+1]!==" ",d=n);else if(!af(o))return G0;u=n>0?e.charCodeAt(n-1):null,m=m&&eA(o,u)}p=p||f&&n-d-1>i&&e[d+1]!==" "}return!c&&!p?m&&!a(e)?mA:gA:r>9&&hA(e)?G0:p?yA:vA}function nU(e,t,r,i){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&XM.indexOf(t)!==-1)return"'"+t+"'";var a=e.indent*Math.max(1,r),n=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=i||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return tU(e,c)}switch(iU(t,o,e.indent,n,u)){case mA:return t;case gA:return"'"+t.replace(/'/g,"''")+"'";case vA:return"|"+tA(t,e.indent)+rA(J5(t,a));case yA:return">"+tA(t,e.indent)+rA(J5(oU(t,n),a));case G0:return'"'+sU(t,n)+'"';default:throw new Yh("impossible error: invalid scalar style")}}()}function tA(e,t){var r=hA(e)?String(t):"",i=e[e.length-1]===`
`,a=i&&(e[e.length-2]===`
`||e===`
`),n=a?"+":i?"":"-";return r+n+`
`}function rA(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function oU(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var p=e.indexOf(`
`);return p=p!==-1?p:e.length,r.lastIndex=p,aA(e.slice(0,p),t)}(),a=e[0]===`
`||e[0]===" ",n,o;o=r.exec(e);){var u=o[1],c=o[2];n=c[0]===" ",i+=u+(!a&&!n&&c!==""?`
`:"")+aA(c,t),a=n}return i}function aA(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,a=0,n,o=0,u=0,c="";i=r.exec(e);)u=i.index,u-a>t&&(n=o>a?o:u,c+=`
`+e.slice(a,n),a=n+1),o=u;return c+=`
`,e.length-a>t&&o>a?c+=e.slice(a,o)+`
`+e.slice(o+1):c+=e.slice(a),c.slice(1)}function sU(e){for(var t="",r,i,a,n=0;n<e.length;n++){if(r=e.charCodeAt(n),r>=55296&&r<=56319&&(i=e.charCodeAt(n+1),i>=56320&&i<=57343)){t+=X5((r-55296)*1024+i-56320+65536),n++;continue}a=Ui[r],t+=!a&&af(r)?e[n]:a||X5(r)}return t}function uU(e,t,r){var i="",a=e.tag,n,o;for(n=0,o=r.length;n<o;n+=1)gl(e,t,r[n],!1,!1)&&(n!==0&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}function cU(e,t,r,i){var a="",n=e.tag,o,u;for(o=0,u=r.length;o<u;o+=1)gl(e,t+1,r[o],!0,!0)&&((!i||o!==0)&&(a+=S2(e,t)),e.dump&&Vh===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=n,e.dump=a||"[]"}function lU(e,t,r){var i="",a=e.tag,n=Object.keys(r),o,u,c,p,f;for(o=0,u=n.length;o<u;o+=1)f="",o!==0&&(f+=", "),e.condenseFlow&&(f+='"'),c=n[o],p=r[c],gl(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gl(e,t,p,!1,!1)&&(f+=e.dump,i+=f));e.tag=a,e.dump="{"+i+"}"}function pU(e,t,r,i){var a="",n=e.tag,o=Object.keys(r),u,c,p,f,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Yh("sortKeys must be a boolean or a function");for(u=0,c=o.length;u<c;u+=1)m="",(!i||u!==0)&&(m+=S2(e,t)),p=o[u],f=r[p],gl(e,t+1,p,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Vh===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=S2(e,t)),gl(e,t+1,f,!0,d)&&(e.dump&&Vh===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=n,e.dump=a||"{}"}function iA(e,t,r){var i,a,n,o,u,c;for(a=r?e.explicitTypes:e.implicitTypes,n=0,o=a.length;n<o;n+=1)if(u=a[n],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,nA.call(u.represent)==="[object Function]")i=u.represent(t,c);else if(oA.call(u.represent,c))i=u.represent[c](t,c);else throw new Yh("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=i}return!0}return!1}function gl(e,t,r,i,a,n){e.tag=null,e.dump=r,iA(e,r,!1)||iA(e,r,!0);var o=nA.call(e.dump);i&&(i=e.flowLevel<0||e.flowLevel>t);var u=o==="[object Object]"||o==="[object Array]",c,p;if(u&&(c=e.duplicates.indexOf(r),p=c!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(a=!1),p&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&p&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(pU(e,t,e.dump,a),p&&(e.dump="&ref_"+c+e.dump)):(lU(e,t,e.dump),p&&(e.dump="&ref_"+c+" "+e.dump));else if(o==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;i&&e.dump.length!==0?(cU(e,f,e.dump,a),p&&(e.dump="&ref_"+c+e.dump)):(uU(e,f,e.dump),p&&(e.dump="&ref_"+c+" "+e.dump))}else if(o==="[object String]")e.tag!=="?"&&nU(e,e.dump,t,n);else{if(e.skipInvalid)return!1;throw new Yh("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function fU(e,t){var r=[],i=[],a,n;for(j2(e,r,i),a=0,n=i.length;a<n;a+=1)t.duplicates.push(r[i[a]]);t.usedDuplicates=new Array(n)}function j2(e,t,r){var i,a,n;if(e!==null&&typeof e=="object")if(a=t.indexOf(e),a!==-1)r.indexOf(a)===-1&&r.push(a);else if(t.push(e),Array.isArray(e))for(a=0,n=e.length;a<n;a+=1)j2(e[a],t,r);else for(i=Object.keys(e),a=0,n=i.length;a<n;a+=1)j2(e[i[a]],t,r)}function bA(e,t){t=t||{};var r=new eU(t);return r.noRefs||fU(e,r),gl(r,0,e,!0,!0)?r.dump+`
`:""}function dU(e,t){return bA(e,Gh.extend({schema:IM},t))}C2.exports.dump=bA;C2.exports.safeDump=dU});var kA=$((Vce,va)=>{"use strict";var Y0=Q5(),wA=xA();function Z0(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}va.exports.Type=Qa();va.exports.Schema=fl();va.exports.FAILSAFE_SCHEMA=U0();va.exports.JSON_SCHEMA=b2();va.exports.CORE_SCHEMA=x2();va.exports.DEFAULT_SAFE_SCHEMA=Jp();va.exports.DEFAULT_FULL_SCHEMA=Kh();va.exports.load=Y0.load;va.exports.loadAll=Y0.loadAll;va.exports.safeLoad=Y0.safeLoad;va.exports.safeLoadAll=Y0.safeLoadAll;va.exports.dump=wA.dump;va.exports.safeDump=wA.safeDump;va.exports.YAMLException=Qp();va.exports.MINIMAL_SCHEMA=U0();va.exports.SAFE_SCHEMA=Jp();va.exports.DEFAULT_SCHEMA=Kh();va.exports.scan=Z0("scan");va.exports.parse=Z0("parse");va.exports.compose=Z0("compose");va.exports.addConstructor=Z0("addConstructor")});var F2=$((Gce,_A)=>{"use strict";var hU=kA();_A.exports=hU});var Q0=$((nf,Zh)=>{(function(){var e,t="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",n="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",p=1,f=2,d=4,m=1,h=2,v=1,b=2,x=4,A=8,B=16,I=32,W=64,V=128,Q=256,G=512,ne=30,te="...",L=800,X=16,F=1,ee=2,ve=3,ce=1/0,ze=9007199254740991,be=17976931348623157e292,Re=0/0,oe=4294967295,ue=oe-1,at=oe>>>1,Ve=[["ary",V],["bind",v],["bindKey",b],["curry",A],["curryRight",B],["flip",G],["partial",I],["partialRight",W],["rearg",Q]],Me="[object Arguments]",Ye="[object Array]",Ct="[object AsyncFunction]",_t="[object Boolean]",St="[object Date]",er="[object DOMException]",Kt="[object Error]",rr="[object Function]",Ut="[object GeneratorFunction]",P="[object Map]",Ae="[object Number]",we="[object Null]",J="[object Object]",Y="[object Promise]",de="[object Proxy]",je="[object RegExp]",Fe="[object Set]",me="[object String]",Ue="[object Symbol]",ot="[object Undefined]",We="[object WeakMap]",gt="[object WeakSet]",Gt="[object ArrayBuffer]",Pt="[object DataView]",Qt="[object Float32Array]",Vr="[object Float64Array]",ia="[object Int8Array]",ga="[object Int16Array]",lr="[object Int32Array]",na="[object Uint8Array]",_a="[object Uint8ClampedArray]",Ir="[object Uint16Array]",Wa="[object Uint32Array]",Gr=/\b__p \+= '';/g,Ji=/\b(__p \+=) '' \+/g,Di=/(__e\(.*?\)|\b__t\)) \+\n'';/g,en=/&(?:amp|lt|gt|quot|#39);/g,Ra=/[&<>"']/g,tn=RegExp(en.source),ro=RegExp(Ra.source),Yr=/<%-([\s\S]+?)%>/g,si=/<%([\s\S]+?)%>/g,Pi=/<%=([\s\S]+?)%>/g,wo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/,ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_o=/[\\^$.*+?()[\]{}|]/g,oa=RegExp(_o.source),kn=/^\s+/,D=/\s/,j=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,E=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,O=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,H=/[()=,{}\[\]\/\s]/,ie=/\\(\\)?/g,_e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Te=/\w*$/,Xe=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,xt=/^\[object .+?Constructor\]$/,rt=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nt=/($^)/,kt=/['\n\r\u2028\u2029\\]/g,lt="\\ud800-\\udfff",qt="\\u0300-\\u036f",Ft="\\ufe20-\\ufe2f",pt="\\u20d0-\\u20ff",st=qt+Ft+pt,ct="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",mt="\\xac\\xb1\\xd7\\xf7",Je="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ee="\\u2000-\\u206f",Se=" \\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",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Oe=mt+Je+Ee+Se,qe="['\u2019]",At="["+lt+"]",zt="["+Oe+"]",Et="["+st+"]",It="\\d+",re="["+ct+"]",Yt="["+ft+"]",ar="[^"+lt+Oe+It+ct+ft+$e+"]",Wt="\\ud83c[\\udffb-\\udfff]",Rt="(?:"+Et+"|"+Wt+")",or="[^"+lt+"]",Vt="(?:\\ud83c[\\udde6-\\uddff]){2}",kr="[\\ud800-\\udbff][\\udc00-\\udfff]",Xt="["+$e+"]",T="\\u200d",z="(?:"+Yt+"|"+ar+")",U="(?:"+Xt+"|"+ar+")",le="(?:"+qe+"(?:d|ll|m|re|s|t|ve))?",De="(?:"+qe+"(?:D|LL|M|RE|S|T|VE))?",Be=Rt+
/* [wrapped with `+l+`] */
`)}function Lv(s){return ir(s)||fs(s)||!!(Qg&&s&&s[Qg])}function oo(s,l){var g=typeof s;return l=l??ze,!!l&&(g=="number"||g!="symbol"&&wt.test(s))&&s>-1&&s%1==0&&s<l}function Aa(s,l,g){if(!ta(g))return!1;var S=typeof l;return(S=="number"?Mi(g)&&oo(l,g.length):S=="string"&&l in g)?Un(g[l],s):!1}function mh(s,l){if(ir(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||un(s)?!0:wn.test(s)||!wo.test(s)||l!=null&&s in _r(l)}function Nv(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function rl(s){var l=eu(s),g=M[l];if(typeof g!="function"||!(l in pr.prototype))return!1;if(s===g)return!0;var S=dh(g);return!!S&&s===S[0]}function Mv(s){return!!Fd&&Fd in s}var Lw=op?zo:g2;function Wu(s){var l=s&&s.constructor,g=typeof l=="function"&&l.prototype||os;return s===g}function Uv(s){return s===s&&!ta(s)}function au(s,l){return function(g){return g==null?!1:g[s]===l&&(l!==e||s in _r(g))}}function Vu(s){var l=Hp(s,function(S){return g.size===u&&g.clear(),S}),g=l.cache;return l}function gh(s,l){var g=s[1],S=l[1],R=g|S,K=R<(v|b|V),ae=S==V&&g==A||S==V&&g==Q&&s[7].length<=l[8]||S==(V|Q)&&l[7].length<=l[8]&&g==A;if(!(K||ae))return s;S&v&&(s[2]=l[2],R|=g&v?0:x);var fe=l[3];if(fe){var xe=s[3];s[3]=xe?ih(xe,fe,l[4]):fe,s[4]=xe?is(s[3],c):l[4]}return fe=l[5],fe&&(xe=s[5],s[5]=xe?nh(xe,fe,l[6]):fe,s[6]=xe?is(s[5],c):l[6]),fe=l[7],fe&&(s[7]=fe),S&V&&(s[8]=s[8]==null?l[8]:li(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=R,s}function Nw(s){var l=[];if(s!=null)for(var g in _r(s))l.push(g);return l}function Mw(s){return up.call(s)}function $v(s,l,g){return l=Sa(l===e?s.length-1:l,0),function(){for(var S=arguments,R=-1,K=Sa(S.length-l,0),ae=Ce(K);++R<K;)ae[R]=S[l+R];R=-1;for(var fe=Ce(l+1);++R<l;)fe[R]=S[R];return fe[l]=g(ae),wi(s,this,fe)}}function zp(s,l){return l.length<2?s:Gs(s,zi(l,0,-1))}function Uw(s,l){for(var g=s.length,S=li(l.length,g),R=Li(s);S--;){var K=l[S];s[S]=oo(K,g)?R[K]:e}return s}function vh(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var Hv=bh(Sp),qo=Pd||function(s,l){return gr.setTimeout(s,l)},yh=bh(Cw);function Kv(s,l,g){var S=l+"";return yh(s,Bv(S,$w(hh(S),g)))}function bh(s){var l=0,g=0;return function(){var S=Jg(),R=X-(S-g);if(g=S,R>0){if(++l>=L)return arguments[0]}else l=0;return s.apply(e,arguments)}}function al(s,l){var g=-1,S=s.length,R=S-1;for(l=l===e?S:l;++g<l;){var K=Qd(g,R),ae=s[K];s[K]=s[g],s[g]=ae}return s.length=l,s}var Wv=Vu(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(ko,function(g,S,R,K){l.push(R?K.replace(ie,"$1"):S||g)}),l});function so(s){if(typeof s=="string"||un(s))return s;var l=s+"";return l=="0"&&1/s==-ce?"-0":l}function iu(s){if(s!=null){try{return sp.call(s)}catch{}try{return s+""}catch{}}return""}function $w(s,l){return Ti(Ve,function(g){var S="_."+g[0];l&g[1]&&!Fu(s,S)&&s.push(S)}),s.sort()}function Vv(s){if(s instanceof pr)return s.clone();var l=new ki(s.__wrapped__,s.__chain__);return l.__actions__=Li(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function Hw(s,l,g){(g?Aa(s,l,g):l===e)?l=1:l=Sa(nr(l),0);var S=s==null?0:s.length;if(!S||l<1)return[];for(var R=0,K=0,ae=Ce(Tu(S/l));R<S;)ae[K++]=zi(s,R,R+=l);return ae}function Kw(s){for(var l=-1,g=s==null?0:s.length,S=0,R=[];++l<g;){var K=s[l];K&&(R[S++]=K)}return R}function Ww(){var s=arguments.length;if(!s)return[];for(var l=Ce(s-1),g=arguments[0],S=s;S--;)l[S-1]=arguments[S];return So(ir(g)?Li(g):[g],Ya(l,1))}var xh=ur(function(s,l){return ua(s)?Ws(s,Ya(l,1,ua,!0)):[]}),Vw=ur(function(s,l){var g=Ni(l);return ua(g)&&(g=e),ua(s)?Ws(s,Ya(l,1,ua,!0),Bt(g,2)):[]}),Gw=ur(function(s,l){var g=Ni(l);return ua(g)&&(g=e),ua(s)?Ws(s,Ya(l,1,ua,!0),e,g):[]});function Gv(s,l,g){var S=s==null?0:s.length;return S?(l=g||l===e?1:nr(l),zi(s,l<0?0:l,S)):[]}function Yw(s,l,g){var S=s==null?0:s.length;return S?(l=g||l===e?1:nr(l),l=S-l,zi(s,0,l<0?0:l)):[]}function Zw(s,l){return s&&s.length?ps(s,Bt(l,3),!0,!0):[]}function Qw(s,l){return s&&s.length?ps(s,Bt(l,3),!0):[]}function Xw(s,l,g,S){var R=s==null?
`;s.replace(bt,function(Ht,fr,vr,Hn,ln,Kn){return vr||(vr=Hn),et+=s.slice(He,Kn).replace(kt,rp),fr&&(fe=!0,et+=`' +
__e(`+fr+`) +
'`),ln&&(xe=!0,et+=`';
`+ln+`;
__p += '`),vr&&(et+=`' +
((__t = (`+vr+`)) == null ? '' : __t) +
'`),He=Kn+Ht.length,Ht}),et+=`';
`;var $t=Er.call(l,"variable")&&l.variable;if(!$t)et=`with (obj) {
`+et+`
}
`;else if(H.test($t))throw new tr(n);et=(xe?et.replace(Gr,""):et).replace(Ji,"$1").replace(Di,"$1;"),et="function("+($t||"obj")+`) {
`+($t?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+et+`return __p
}`;var cr=F3(function(){return br(K,Tt+"return "+et).apply(e,ae)});if(cr.source=et,Bh(cr))throw cr;return cr}function LB(s){return dr(s).toLowerCase()}function NB(s){return dr(s).toUpperCase()}function MB(s,l,g){if(s=dr(s),s&&(g||l===e))return tp(s);if(!s||!(l=Ri(l)))return s;var S=Nn(s),R=Nn(l),K=Ng(S,R),ae=jd(S,R)+1;return Bi(S,K,ae).join("")}function UB(s,l,g){if(s=dr(s),s&&(g||l===e))return s.slice(0,Lc(s)+1);if(!s||!(l=Ri(l)))return s;var S=Nn(s),R=jd(S,Nn(l))+1;return Bi(S,0,R).join("")}function $B(s,l,g){if(s=dr(s),s&&(g||l===e))return s.replace(kn,"");if(!s||!(l=Ri(l)))return s;var S=Nn(s),R=Ng(S,Nn(l));return Bi(S,R).join("")}function HB(s,l){var g=ne,S=te;if(ta(l)){var R="separator"in l?l.separator:R;g="length"in l?nr(l.length):g,S="omission"in l?Ri(l.omission):S}s=dr(s);var K=s.length;if(Du(s)){var ae=Nn(s);K=ae.length}if(g>=K)return s;var fe=g-Pu(S);if(fe<1)return S;var xe=ae?Bi(ae,0,fe).join(""):s.slice(0,fe);if(R===e)return xe+S;if(ae&&(fe+=xe.length-fe),Lh(R)){if(s.slice(fe).search(R)){var He,Ke=xe;for(R.global||(R=Cd(R.source,dr(Te.exec(R))+"g")),R.lastIndex=0;He=R.exec(Ke);)var et=He.index;xe=xe.slice(0,et===e?fe:et)}}else if(s.indexOf(Ri(R),fe)!=fe){var bt=xe.lastIndexOf(R);bt>-1&&(xe=xe.slice(0,bt))}return xe+S}function KB(s){return s=dr(s),s&&tn.test(s)?s.replace(en,R1):s}var WB=Hu(function(s,l,g){return s+(g?" ":"")+l.toUpperCase()}),l2=Dv("toUpperCase");function C3(s,l,g){return s=dr(s),l=g?e:l,l===e?$g(s)?N1(s):D1(s):s.match(l)||[]}var F3=ur(function(s,l){try{return wi(s,e,l)}catch(g){return Bh(g)?g:new tr(g)}}),VB=Mn(function(s,l){return Ti(l,function(g){g=so(g),Co(s,g,$p(s[g],s))}),s});function GB(s){var l=s==null?0:s.length,g=Bt();return s=l?Ur(s,function(S){if(typeof S[1]!="function")throw new _n(a);return[g(S[0]),S[1]]}):[],ur(function(S){for(var R=-1;++R<l;){var K=s[R];if(wi(K[0],this,S))return wi(K[1],this,S)}})}function YB(s){return gw(Ii(s,p))}function p2(s){return function(){return s}}function ZB(s,l){return s==null||s!==s?l:s}var QB=Po(),XB=Po(!0);function Cn(s){return s}function f2(s){return bv(typeof s=="function"?s:Ii(s,p))}function JB(s){return Vd(Ii(s,p))}function eL(s,l){return wv(s,Ii(l,p))}var tL=ur(function(s,l){return function(g){return Ys(g,s,l)}}),rL=ur(function(s,l){return function(g){return Ys(s,g,l)}});function d2(s,l,g){var S=tt(l),R=wp(l,S);g==null&&!(ta(l)&&(R.length||!S.length))&&(g=l,l=s,s=this,R=wp(l,tt(l)));var K=!(ta(g)&&"chain"in g)||!!g.chain,ae=zo(s);return Ti(R,function(fe){var xe=l[fe];s[fe]=xe,ae&&(s.prototype[fe]=function(){var He=this.__chain__;if(K||He){var Ke=s(this.__wrapped__),et=Ke.__actions__=Li(this.__actions__);return et.push({func:xe,args:arguments,thisArg:s}),Ke.__chain__=He,Ke}return xe.apply(s,So([this.value()],arguments))})}),s}function aL(){return gr._===this&&(gr._=$1),this}function h2(){}function iL(s){return s=nr(s),ur(function(l){return Gd(l,s)})}var nL=uh(Ur),oL=uh(as),sL=uh(Ql);function D3(s){return mh(s)?Ms(so(s)):Zd(s)}function uL(s){return function(l){return s==null?e:Gs(s,l)}}var cL=Pv(),lL=Pv(!0);function m2(){return[]}function g2(){return!1}function pL(){return{}}function fL(){return""}function dL(){return!0}function hL(s,l){if(s=nr(s),s<1||s>ze)return[];var g=oe,S=li(s,oe);l=Bt(l),s-=oe;for(var R=Ed(S,l);++g<s;)l(g);return R}function mL(s){return ir(s)?Ur(s,so):un(s)?[s]:Li(Wv(dr(s)))}function gL(s){var l=++Wg;return dr(s)+l}var vL=Jc(function(s,l){return s+l},0),yL=ch("ceil"),bL=Jc(function(s,l){return s/l},1),xL=ch("floor");function wL(s){return s&&s.length?Vs(s,Cn,Ud):e}function kL(s,l){return s&&s.length?Vs(s,Bt(l,2),Ud):e}function _L(s){return Bg(s,Cn)}function EL(s,l){return Bg(s,Bt(l,2))}function SL(s){return s&&s.length?Vs(s,Cn,Zs):e}function jL(s,l){return s&&s.length?Vs(s,Bt(l,2),Zs):e}var AL=Jc(function(s,l){return s*l},1),CL=ch("round"),FL=Jc(function(s,l){return s-l},0);function DL(s){return s&&s.length?Jl(s,Cn):0}function PL(s,l){return s&&s.length?Jl(s,Bt(l,2)):0}return M.after=Rk,M.ary=Ih,M.assign=Mh,M.assignIn=Uh,M.assignInWith=sl,M.assignWith=ul,M.at=Zt,M.before=zh,M.bind=$p,M.bindAll=VB,M.bindKey=w0,M.castArray
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>`+t+`</pre>
</body>
</html>
`}QA.exports=_$;function _$(e,t,r){var i=r||{},a=i.env||"production",n=i.onerror;return function(o){var u,c,p;if(!o&&t._header){q2("cannot 404 after headers sent");return}if(o?(p=j$(o),p!==void 0&&(u=E$(o)),p===void 0&&(p=A$(t)),c=S$(o,p,a)):(p=404,c="Cannot "+e.method+" "+h$(g$.original(e).pathname)),q2("default %s",p),o&&n&&x$(n,o,e,t),t._header){q2("cannot %d after headers sent",p),e.socket.destroy();return}C$(e,t,p,u,c)}}function E$(e){if(!(!e.headers||typeof e.headers!="object")){for(var t=Object.create(null),r=Object.keys(e.headers),i=0;i<r.length;i++){var a=r[i];t[a]=e.headers[a]}return t}}function S$(e,t,r){var i;return r!=="production"&&(i=e.stack,!i&&typeof e.toString=="function"&&(i=e.toString())),i||ZA[t]}function j$(e){if(typeof e.status=="number"&&e.status>=400&&e.status<600)return e.status;if(typeof e.statusCode=="number"&&e.statusCode>=400&&e.statusCode<600)return e.statusCode}function A$(e){var t=e.statusCode;return(typeof t!="number"||t<400||t>599)&&(t=500),t}function C$(e,t,r,i,a){function n(){var o=k$(a);if(t.statusCode=r,t.statusMessage=ZA[r],F$(t,i),t.setHeader("Content-Security-Policy","default-src 'self'"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("Content-Type","text/html; charset=utf-8"),t.setHeader("Content-Length",Buffer.byteLength(o,"utf8")),e.method==="HEAD"){t.end();return}t.end(o,"utf8")}if(w$(e)){n();return}v$(e),YA(e,n),e.resume()}function F$(e,t){if(!!t)for(var r=Object.keys(t),i=0;i<r.length;i++){var a=r[i];e.setHeader(a,t[a])}}});var e6=$((Cr,JA)=>{Cr=JA.exports=z2.debug=z2.default=z2;Cr.coerce=q$;Cr.disable=O$;Cr.enable=P$;Cr.enabled=T$;Cr.humanize=am();Cr.names=[];Cr.skips=[];Cr.formatters={};var I2;function D$(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Cr.colors[Math.abs(t)%Cr.colors.length]}function z2(e){function t(){if(!!t.enabled){var r=t,i=+new Date,a=i-(I2||i);r.diff=a,r.prev=I2,r.curr=i,I2=i;for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];n[0]=Cr.coerce(n[0]),typeof n[0]!="string"&&n.unshift("%O");var u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var d=Cr.formatters[f];if(typeof d=="function"){var m=n[u];p=d.call(r,m),n.splice(u,1),u--}return p}),Cr.formatArgs.call(r,n);var c=t.log||Cr.log||console.log.bind(console);c.apply(r,n)}}return t.namespace=e,t.enabled=Cr.enabled(e),t.useColors=Cr.useColors(),t.color=D$(e),typeof Cr.init=="function"&&Cr.init(t),t}function P$(e){Cr.save(e),Cr.names=[],Cr.skips=[];for(var t=(typeof e=="string"?e:"").split(/[\s,]+/),r=t.length,i=0;i<r;i++)!t[i]||(e=t[i].replace(/\*/g,".*?"),e[0]==="-"?Cr.skips.push(new RegExp("^"+e.substr(1)+"$")):Cr.names.push(new RegExp("^"+e+"$")))}function O$(){Cr.enable("")}function T$(e){var t,r;for(t=0,r=Cr.skips.length;t<r;t++)if(Cr.skips[t].test(e))return!1;for(t=0,r=Cr.names.length;t<r;t++)if(Cr.names[t].test(e))return!0;return!1}function q$(e){return e instanceof Error?e.stack||e.message:e}});var uf=$((fn,r6)=>{fn=r6.exports=e6();fn.log=R$;fn.formatArgs=z$;fn.save=B$;fn.load=t6;fn.useColors=I$;fn.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:L$();fn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function I$(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}fn.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function z$(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+fn.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inh
<html lang="en">
<head>
<meta charset="utf-8">
<title>`+e+`</title>
</head>
<body>
<pre>`+t+`</pre>
</body>
`}function aW(e){try{return decodeURIComponent(e)}catch{return-1}}function qC(e){return typeof e.getHeaderNames!="function"?Object.keys(e._headers||{}):e.getHeaderNames()}function iW(e){return typeof e.headersSent!="boolean"?Boolean(e._header):e.headersSent}function u_(e,t){for(var r=[].concat(e||[]),i=0;i<r.length;i++)if(typeof r[i]!="string")throw new TypeError(t+" must be array of strings or false");return r}function fy(e){var t=e&&Date.parse(e);return typeof t=="number"?t:NaN}function nW(e){for(var t=0,r=[],i=0,a=0,n=e.length;a<n;a++)switch(e.charCodeAt(a)){case 32:i===t&&(i=t=a+1);break;case 44:r.push(e.substring(i,t)),i=t=a+1;break;default:t=a+1;break}return r.push(e.substring(i,t)),r}function oW(e,t){for(var r=Object.keys(t),i=0;i<r.length;i++){var a=r[i];e.setHeader(a,t[a])}}});var zC=$((Wle,IC)=>{"use strict";IC.exports=sW;function sW(e){if(!e)throw new TypeError("argument req is required");var t=uW(e.headers["x-forwarded-for"]||""),r=e.connection.remoteAddress,i=[r].concat(t);return i}function uW(e){for(var t=e.length,r=[],i=e.length,a=e.length-1;a>=0;a--)switch(e.charCodeAt(a)){case 32:i===t&&(i=t=a);break;case 44:i!==t&&r.push(e.substring(i,t)),i=t=a;break;default:i=a;break}return i!==t&&r.push(e.substring(i,t)),r}});var BC=$((RC,dm)=>{(function(){var e,t,r,i,a,n,o,u;t={},u=this,typeof dm<"u"&&dm!==null&&dm.exports?dm.exports=t:u.ipaddr=t,o=function(c,p,f,d){var m,h;if(c.length!==p.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(m=0;d>0;){if(h=f-d,h<0&&(h=0),c[m]>>h!==p[m]>>h)return!1;d-=f,m+=1}return!0},t.subnetMatch=function(c,p,f){var d,m,h,v,b;f==null&&(f="unicast");for(h in p)for(v=p[h],v[0]&&!(v[0]instanceof Array)&&(v=[v]),d=0,m=v.length;d<m;d++)if(b=v[d],c.match.apply(c,b))return h;return f},t.IPv4=function(){function c(p){var f,d,m;if(p.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");for(f=0,d=p.length;f<d;f++)if(m=p[f],!(0<=m&&m<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=p}return c.prototype.kind=function(){return"ipv4"},c.prototype.toString=function(){return this.octets.join(".")},c.prototype.toByteArray=function(){return this.octets.slice(0)},c.prototype.match=function(p,f){var d;if(f===void 0&&(d=p,p=d[0],f=d[1]),p.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return o(this.octets,p.octets,8,f)},c.prototype.SpecialRanges={unspecified:[[new c([0,0,0,0]),8]],broadcast:[[new c([255,255,255,255]),32]],multicast:[[new c([224,0,0,0]),4]],linkLocal:[[new c([169,254,0,0]),16]],loopback:[[new c([127,0,0,0]),8]],carrierGradeNat:[[new c([100,64,0,0]),10]],private:[[new c([10,0,0,0]),8],[new c([172,16,0,0]),12],[new c([192,168,0,0]),16]],reserved:[[new c([192,0,0,0]),24],[new c([192,0,2,0]),24],[new c([192,88,99,0]),24],[new c([198,51,100,0]),24],[new c([203,0,113,0]),24],[new c([240,0,0,0]),4]]},c.prototype.range=function(){return t.subnetMatch(this,this.SpecialRanges)},c.prototype.toIPv4MappedAddress=function(){return t.IPv6.parse("::ffff:"+this.toString())},c.prototype.prefixLengthFromSubnetMask=function(){var p,f,d,m,h,v,b;for(b={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},p=0,h=!1,f=d=3;d>=0;f=d+=-1)if(m=this.octets[f],m in b){if(v=b[m],h&&v!==0)return null;v!==8&&(h=!0),p+=v}else return null;return 32-p},c}(),r="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp("^"+r+"\\."+r+"\\."+r+"\\."+r+"$","i"),longValue:new RegExp("^"+r+"$","i")},t.IPv4.parser=function(c){var p,f,d,m,h;if(f=function(v){return v[0]==="0"&&v[1]!=="x"?parseInt(v,8):parseInt(v)},p=c.match(i.fourOctet))return function(){var v,b,x,A;for(x=p.slice(1,6),A=[],v=0,b=x.length;v<b;v++)d=x[v],A.push(f(d));return A}();if(p=c.match(i.longValue)){if(h=f(p[1]),h>4294967295||h<0)throw new Error("ipaddr: address outside defined range");return function(){var v,b;for(b=[],m=v=0;v<=24;m=v+=8)b.push(h>>m&255);return b}().reverse()}else return null},t.IPv6=function(){function c(p){var f,d,m,h,v,b;if(p.length===16)for(this.parts=[],f=d=0;d<=14;f=d+=2)this.parts.push(p[f]<<8|p[f+1]);else if(p.length===8)this.parts=
Please see the 3.x to 4.x migration guide for details on how to update your app.`)}})};Na.lazyrouter=function(){this._router||(this._router=new CW({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(DW(this.get("query parser fn"))),this._router.use(FW.init(this)))};Na.handle=function(t,r,i){var a=this._router,n=i||AW(t,r,{env:this.get("env"),onerror:LW.bind(this)});if(!a){vy("no routes defined on app"),n();return}a.handle(t,r,n)};Na.use=function(t){var r=0,i="/";if(typeof t!="function"){for(var a=t;Array.isArray(a)&&a.length!==0;)a=a[0];typeof a!="function"&&(r=1,i=t)}var n=RW(m_.call(arguments,r));if(n.length===0)throw new TypeError("app.use() requires middleware functions");this.lazyrouter();var o=this._router;return n.forEach(function(u){if(!u||!u.handle||!u.set)return o.use(i,u);vy(".use app under %s",i),u.mountpath=i,u.parent=this,o.use(i,function(p,f,d){var m=p.app;u.handle(p,f,function(h){hf(p,m.request),hf(f,m.response),d(h)})}),u.emit("mount",this)},this),this};Na.route=function(t){return this.lazyrouter(),this._router.route(t)};Na.engine=function(t,r){if(typeof r!="function")throw new Error("callback function required");var i=t[0]!=="."?"."+t:t;return this.engines[i]=r,this};Na.param=function(t,r){if(this.lazyrouter(),Array.isArray(t)){for(var i=0;i<t.length;i++)this.param(t[i],r);return this}return this._router.param(t,r),this};Na.set=function(t,r){if(arguments.length===1)return this.settings[t];switch(vy('set "%s" to %o',t,r),this.settings[t]=r,t){case"etag":this.set("etag fn",TW(r));break;case"query parser":this.set("query parser fn",qW(r));break;case"trust proxy":this.set("trust proxy fn",IW(r)),Object.defineProperty(this.settings,h_,{configurable:!0,value:!1});break}return this};Na.path=function(){return this.parent?this.parent.path()+this.mountpath:""};Na.enabled=function(t){return Boolean(this.set(t))};Na.disabled=function(t){return!this.set(t)};Na.enable=function(t){return this.set(t,!0)};Na.disable=function(t){return this.set(t,!1)};d_.forEach(function(e){Na[e]=function(t){if(e==="get"&&arguments.length===1)return this.set(t);this.lazyrouter();var r=this._router.route(t);return r[e].apply(r,m_.call(arguments,1)),this}});Na.all=function(t){this.lazyrouter();for(var r=this._router.route(t),i=m_.call(arguments,1),a=0;a<d_.length;a++)r[d_[a]].apply(r,i);return this};Na.del=zW.function(Na.delete,"app.del: Use app.delete instead");Na.render=function(t,r,i){var a=this.cache,n=i,o=this.engines,u=r,c={},p;if(typeof r=="function"&&(n=r,u={}),f_(c,this.locals),u._locals&&f_(c,u._locals),f_(c,u),c.cache==null&&(c.cache=this.enabled("view cache")),c.cache&&(p=a[t]),!p){var f=this.get("view");if(p=new f(t,{defaultEngine:this.get("view engine"),root:this.get("views"),engines:o}),!p.path){var d=Array.isArray(p.root)&&p.root.length>1?'directories "'+p.root.slice(0,-1).join('", "')+'" or "'+p.root[p.root.length-1]+'"':'directory "'+p.root+'"',m=new Error('Failed to lookup view "'+t+'" in views '+d);return m.view=p,n(m)}c.cache&&(a[t]=p)}NW(p,c,n)};Na.listen=function(){var t=OW.createServer(this);return t.listen.apply(t,arguments)};function LW(e){this.get("env")!=="test"&&console.error(e.stack||e.toString())}function NW(e,t,r){try{e.render(t,r)}catch(i){r(i)}}});var JC=$((Yle,g_)=>{"use strict";g_.exports=XC;g_.exports.preferredCharsets=XC;var MW=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function UW(e){for(var t=e.split(","),r=0,i=0;r<t.length;r++){var a=$W(t[r].trim(),r);a&&(t[i++]=a)}return t.length=i,t}function $W(e,t){var r=MW.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var n=r[2].split(";"),o=0;o<n.length;o++){var u=n[o].trim().split("=");if(u[0]==="q"){a=parseFloat(u[1]);break}}return{charset:i,q:a,i:t}}function HW(e,t,r){for(var i={o:-1,q:0,s:0},a=0;a<t.length;a++){var n=KW(e,t[a],r);n&&(i.s-n.s||i.q-n.q||i.o-n.o)<0&&(i=n)}return i}function KW(e,t,r){var i=0;if(t.charset.toLowerCase()===e.toLowerCase())i|=1;else if(t.charset!=="*")return null;return{i:r,o:t.i,q:t.q,s:i}}function XC(e,t){var r=UW(e===void 0?"*":e||"");if(!t)return r.filter(QC).sort(ZC).map(WW
<html lang="en">
<head>
<meta charset="utf-8">
<title>`+e+`</title>
</head>
<body>
<pre>`+t+`</pre>
</body>
`}function xG(){return function(){this.error(404)}}function wG(){return function(t){if(this.hasTrailingSlash()){this.error(404);return}var r=S_.original(this.req);r.path=null,r.pathname=yG(r.pathname+"/");var i=hG(gG.format(r)),a=bG("Redirecting",'Redirecting to <a href="'+X4(i)+'">'+X4(i)+"</a>");t.statusCode=301,t.setHeader("Content-Type","text/html; charset=UTF-8"),t.setHeader("Content-Length",Buffer.byteLength(a)),t.setHeader("Content-Security-Policy","default-src 'self'"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("Location",i),t.end(a)}}});var oF=$((xs,nF)=>{"use strict";var kG=require("events").EventEmitter,tF=AA(),rF=YC(),_G=B2(),EG=N2(),aF=z4(),iF=Q4();xs=nF.exports=SG;function SG(){var e=function(t,r,i){e.handle(t,r,i)};return tF(e,kG.prototype,!1),tF(e,rF,!1),e.request=Object.create(aF,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(iF,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}xs.application=rF;xs.request=aF;xs.response=iF;xs.Route=_G;xs.Router=EG;xs.query=G2();xs.static=eF();["json","urlencoded","bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"].forEach(function(e){Object.defineProperty(xs,e,{get:function(){throw new Error("Most middleware (like "+e+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})})});var uF=$((fpe,sF)=>{"use strict";sF.exports=oF()});var Vn=$(A_=>{"use strict";A_.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,i)=>{e.call(this,...t,(a,n)=>a!=null?i(a):r(n))})},"name",{value:e.name})};A_.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(i=>r(null,i),r)},"name",{value:e.name})}});var lF=$((hpe,cF)=>{var ac=require("constants"),jG=process.cwd,Ey=null,AG=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ey||(Ey=jG.call(process)),Ey};try{process.cwd()}catch{}typeof process.chdir=="function"&&(C_=process.chdir,process.chdir=function(e){Ey=null,C_.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,C_));var C_;cF.exports=CG;function CG(e){ac.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,d,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,d,m,h){h&&process.nextTick(h)},e.lchownSync=function(){}),AG==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function d(m,h,v){var b=Date.now(),x=0;f(m,h,function A(B){if(B&&(B.code==="EACCES"||B.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){e.stat(h,function(I,W){I&&I.code==="ENOENT"?f(m,h,A):v(B)})},x),x<100&&(x+=10);return}v&&v(B)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function d(m,h,v,b,x,A){var B;if(A&&typeof A=="function"){var I=0;B=function(W,V,Q){if(W&&W.code==="EAGAIN"&&I<10)return I++,f.call(e,m,h,v,b,x,B);A.apply(this,arguments)}}return f.call(e,m,h,v,b,x,B)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(d,m,h,v,b){for(var x=0;;)try{return f.call(e,d,m,h,v,b)}catch(A){if(A.code==="EAGA
GFS4: `),console.error(e)});la[Si]||(gF=global[Si]||[],yF(la,gF),la.close=function(e){function t(r,i){return e.call(la,r,function(a){a||vF(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(t,Ay,{value:e}),t}(la.close),la.closeSync=function(e){function t(r){e.apply(la,arguments),vF()}return Object.defineProperty(t,Ay,{value:e}),t}(la.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bl(la[Si]),require("assert").equal(la[Si].length,0)}));var gF;global[Si]||yF(global,la[Si]);P_.exports=F_(qG(la));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!la.__patched&&(P_.exports=F_(la),la.__patched=!0);function F_(e){OG(e),e.gracefulify=F_,e.createReadStream=V,e.createWriteStream=Q;var t=e.readFile;e.readFile=r;function r(te,L,X){return typeof L=="function"&&(X=L,L=null),F(te,L,X);function F(ee,ve,ce,ze){return t(ee,ve,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?gf([F,[ee,ve,ce],be,ze||Date.now(),Date.now()]):typeof ce=="function"&&ce.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=a;function a(te,L,X,F){return typeof X=="function"&&(F=X,X=null),ee(te,L,X,F);function ee(ve,ce,ze,be,Re){return i(ve,ce,ze,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?gf([ee,[ve,ce,ze,be],oe,Re||Date.now(),Date.now()]):typeof be=="function"&&be.apply(this,arguments)})}}var n=e.appendFile;n&&(e.appendFile=o);function o(te,L,X,F){return typeof X=="function"&&(F=X,X=null),ee(te,L,X,F);function ee(ve,ce,ze,be,Re){return n(ve,ce,ze,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?gf([ee,[ve,ce,ze,be],oe,Re||Date.now(),Date.now()]):typeof be=="function"&&be.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=c);function c(te,L,X,F){return typeof X=="function"&&(F=X,X=0),ee(te,L,X,F);function ee(ve,ce,ze,be,Re){return u(ve,ce,ze,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?gf([ee,[ve,ce,ze,be],oe,Re||Date.now(),Date.now()]):typeof be=="function"&&be.apply(this,arguments)})}}var p=e.readdir;e.readdir=d;var f=/^v[0-5]\./;function d(te,L,X){typeof L=="function"&&(X=L,L=null);var F=f.test(process.version)?function(ce,ze,be,Re){return p(ce,ee(ce,ze,be,Re))}:function(ce,ze,be,Re){return p(ce,ze,ee(ce,ze,be,Re))};return F(te,L,X);function ee(ve,ce,ze,be){return function(Re,oe){Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?gf([F,[ve,ce,ze],Re,be||Date.now(),Date.now()]):(oe&&oe.sort&&oe.sort(),typeof ze=="function"&&ze.call(this,Re,oe))}}}if(process.version.substr(0,4)==="v0.8"){var m=TG(e);A=m.ReadStream,I=m.WriteStream}var h=e.ReadStream;h&&(A.prototype=Object.create(h.prototype),A.prototype.open=B);var v=e.WriteStream;v&&(I.prototype=Object.create(v.prototype),I.prototype.open=W),Object.defineProperty(e,"ReadStream",{get:function(){return A},set:function(te){A=te},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return I},set:function(te){I=te},enumerable:!0,configurable:!0});var b=A;Object.defineProperty(e,"FileReadStream",{get:function(){return b},set:function(te){b=te},enumerable:!0,configurable:!0});var x=I;Object.defineProperty(e,"FileWriteStream",{get:function(){return x},set:function(te){x=te},enumerable:!0,configurable:!0});function A(te,L){return this instanceof A?(h.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function B(){var te=this;ne(te.path,te.flags,te.mode,function(L,X){L?(te.autoClose&&te.destroy(),te.emit("error",L)):(te.fd=X,te.emit("open",X),te.read())})}function I(te,L){return this instanceof I?(v.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function W(){var te=this;ne(te.path,te.flags,te.mode,function(L,X){L?(te.destroy(),te.emit("error",L)):(te.fd=X,te.emit("open",X))})}function V(te,L){return new e.ReadStream(te,L)}function Q(te,L){return new e.WriteStream(te,L)}var G=e.open;e.open=ne;function ne(te,L,X,F){return typeof X=="function"&&(F=X,X=null),ee(te,L,X,F);function ee(ve,ce,ze,be,Re){return G(ve,ce,ze,function(oe,ue){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?gf([ee,[ve,ce,ze,be],oe,Re||Date.now(),Date.now()]):typeof be=="f
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),vm.checkPaths(e,t,"copy",r,(a,n)=>{if(a)return i(a);let{srcStat:o,destStat:u}=n;vm.checkParentPaths(e,o,t,"copy",c=>c?i(c):r.filter?IF(TF,u,e,t,r,i):TF(u,e,t,r,i))})}function TF(e,t,r,i,a){let n=gm.dirname(r);ZG(n,(o,u)=>{if(o)return a(o);if(u)return Fy(e,t,r,i,a);YG(n,c=>c?a(c):Fy(e,t,r,i,a))})}function IF(e,t,r,i,a,n){Promise.resolve(a.filter(r,i)).then(o=>o?e(t,r,i,a,n):n(),o=>n(o))}function JG(e,t,r,i,a){return i.filter?IF(Fy,e,t,r,i,a):Fy(e,t,r,i,a)}function Fy(e,t,r,i,a){(i.dereference?qn.stat:qn.lstat)(t,(o,u)=>o?a(o):u.isDirectory()?oY(u,e,t,r,i,a):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?eY(u,e,t,r,i,a):u.isSymbolicLink()?cY(e,t,r,i,a):u.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`)))}function eY(e,t,r,i,a,n){return t?tY(e,r,i,a,n):zF(e,r,i,a,n)}function tY(e,t,r,i,a){if(i.overwrite)qn.unlink(r,n=>n?a(n):zF(e,t,r,i,a));else return i.errorOnExist?a(new Error(`'${r}' already exists`)):a()}function zF(e,t,r,i,a){qn.copyFile(t,r,n=>n?a(n):i.preserveTimestamps?rY(e.mode,t,r,a):Dy(r,e.mode,a))}function rY(e,t,r,i){return aY(e)?iY(r,e,a=>a?i(a):qF(e,t,r,i)):qF(e,t,r,i)}function aY(e){return(e&128)===0}function iY(e,t,r){return Dy(e,t|128,r)}function qF(e,t,r,i){nY(t,r,a=>a?i(a):Dy(r,e,i))}function Dy(e,t,r){return qn.chmod(e,t,r)}function nY(e,t,r){qn.stat(e,(i,a)=>i?r(i):QG(t,a.atime,a.mtime,r))}function oY(e,t,r,i,a,n){return t?RF(r,i,a,n):sY(e.mode,r,i,a,n)}function sY(e,t,r,i,a){qn.mkdir(r,n=>{if(n)return a(n);RF(t,r,i,o=>o?a(o):Dy(r,e,a))})}function RF(e,t,r,i){qn.readdir(e,(a,n)=>a?i(a):BF(n,e,t,r,i))}function BF(e,t,r,i,a){let n=e.pop();return n?uY(e,n,t,r,i,a):a()}function uY(e,t,r,i,a,n){let o=gm.join(r,t),u=gm.join(i,t);vm.checkPaths(o,u,"copy",a,(c,p)=>{if(c)return n(c);let{destStat:f}=p;JG(f,o,u,a,d=>d?n(d):BF(e,r,i,a,n))})}function cY(e,t,r,i,a){qn.readlink(t,(n,o)=>{if(n)return a(n);if(i.dereference&&(o=gm.resolve(process.cwd(),o)),e)qn.readlink(r,(u,c)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?qn.symlink(o,r,a):a(u):(i.dereference&&(c=gm.resolve(process.cwd(),c)),vm.isSrcSubdir(o,c)?a(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&vm.isSrcSubdir(c,o)?a(new Error(`Cannot overwrite '${c}' with '${o}'.`)):lY(o,r,a)));else return qn.symlink(o,r,a)})}function lY(e,t,r){qn.unlink(t,i=>i?r(i):qn.symlink(e,t,r))}LF.exports=XG});var KF=$((jpe,HF)=>{"use strict";var Hi=hn(),ym=require("path"),pY=No().mkdirsSync,fY=I_().utimesMillisSync,bm=wl();function dY(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=bm.checkPathsSync(e,t,"copy",r);return bm.checkParentPathsSync(e,i,t,"copy"),hY(a,e,t,r)}function hY(e,t,r,i){if(i.filter&&!i.filter(t,r))return;let a=ym.dirname(r);return Hi.existsSync(a)||pY(a),MF(e,t,r,i)}function mY(e,t,r,i){if(!(i.filter&&!i.filter(t,r)))return MF(e,t,r,i)}function MF(e,t,r,i){let n=(i.dereference?Hi.statSync:Hi.lstatSync)(t);if(n.isDirectory())return kY(n,e,t,r,i);if(n.isFile()||n.isCharacterDevice()||n.isBlockDevice())return gY(n,e,t,r,i);if(n.isSymbolicLink())return SY(e,t,r,i);throw n.isSocket()?new Error(`Cannot copy a socket file: ${t}`):n.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function gY(e,t,r,i,a){return t?vY(e,r,i,a):UF(e,r,i,a)}function vY(e,t,r,i){if(i.overwrite)return Hi.unlinkSync(r),UF(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}function UF(e,t,r,i){return Hi.copyFileSync(t,r),i.preserveTimestamps&&yY(e.mode,t,r),R_(r,e.mode)}function yY(e,t,r){return bY(e)&&xY(r,e),wY(t,r)}function bY(e){return(e&128)===0}function xY(e,t){return R_(e,t|128)}function R_(e,t){return Hi.chmodSync(e,t)}function wY(e,t){let r=Hi.statSync(e);return fY(t,r.atime,r.mtime)}function kY(e,t,r,i,a){return t?$F(r,i,a):_Y(e.mode,r,i,a)}function _Y(e,t,r,i){return Hi.mkdirSync(r),$F(t,r,i),R_(r,e)}function $F(e,t,r){Hi.readdirSync(e).forEach(i=>EY(i,e,t,r))}function EY(e,t,r,i){let a=ym.join(t,e),n=ym.join(r,e),{destStat:o}=bm.checkPathsSync(a,n,"copy",i);return mY(o,a,n,i)}function SY(e,t,r,i){let a=Hi.readlinkSync(t);if(i.dereference&&(a=ym.resolve(process.cwd(),a)),e){let n;try{n=Hi.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Hi.symlinkSync(a,r);throw o}if(i.dereference&&(n=ym.resolve(process.cwd(),n)),bm.isSrcSubdir(a,n))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${n}'.`);if(Hi.statSync(r).isDirectory()&&bm.isSrcSubdir(n,a))throw new Error(`Cannot overwrite '${n}' with '${a}'.`);return jY(a,r)}else return Hi.symlinkSync(a,r)}function jY(e,t){return Hi.unlinkSync(t),Hi.symlinkSync(e,t)}HF.exports=dY});var Py=$((Ape,WF)=>{"use strict";var AY=Vn().fromCallback;WF.exports={copy:AY(NF()),copySync:KF()}});var tD=$((Cpe,eD)=>{"use strict";var VF=hn(),QF=require("path"),Hr=require("assert"),xm=process.platform==="win32";function XF(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||VF[r],r=r+"Sync",e[r]=e[r]||VF[r]}),e.maxBusyTries=e.maxBusyTries||3}function B_(e,t,r){let i=0;typeof t=="function"&&(r=t,t={}),Hr(e,"rimraf: missing path"),Hr.strictEqual(typeof e,"string","rimraf: path should be a string"),Hr.strictEqual(typeof r,"function","rimraf: callback function required"),Hr(t,"rimraf: invalid options argument provided"),Hr.strictEqual(typeof t,"object","rimraf: options should be object"),XF(t),GF(e,t,function a(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i<t.maxBusyTries){i++;let o=i*100;return setTimeout(()=>GF(e,t,a),o)}n.code==="ENOENT"&&(n=null)}r(n)})}function GF(e,t,r){Hr(e),Hr(t),Hr(typeof r=="function"),t.lstat(e,(i,a)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&xm)return YF(e,t,i,r);if(a&&a.isDirectory())return Oy(e,t,i,r);t.unlink(e,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return xm?YF(e,t,n,r):Oy(e,t,n,r);if(n.code==="EISDIR")return Oy(e,t,n,r)}return r(n)})})}function YF(e,t,r,i){Hr(e),Hr(t),Hr(typeof i=="function"),t.chmod(e,438,a=>{a?i(a.code==="ENOENT"?null:r):t.stat(e,(n,o)=>{n?i(n.code==="ENOENT"?null:r):o.isDirectory()?Oy(e,t,r,i):t.unlink(e,i)})})}function ZF(e,t,r){let i;Hr(e),Hr(t);try{t.chmodSync(e,438)}catch(a){if(a.code==="ENOENT")return;throw r}try{i=t.statSync(e)}catch(a){if(a.code==="ENOENT")return;throw r}i.isDirectory()?Ty(e,t,r):t.unlinkSync(e)}function Oy(e,t,r,i){Hr(e),Hr(t),Hr(typeof i=="function"),t.rmdir(e,a=>{a&&(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM")?CY(e,t,i):a&&a.code==="ENOTDIR"?i(r):i(a)})}function CY(e,t,r){Hr(e),Hr(t
`,finalEOL:r=!0,replacer:i=null,spaces:a}={}){let n=r?t:"";return JSON.stringify(e,i,a).replace(/\n/g,t)+n}function aZ(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}$D.exports={stringify:rZ,stripBom:aZ}});var VD=$((Lpe,WD)=>{var bf;try{bf=hn()}catch{bf=require("fs")}var zy=UD(),{stringify:HD,stripBom:KD}=Iy();async function iZ(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||bf,i="throws"in t?t.throws:!0,a=await zy.fromCallback(r.readFile)(e,t);a=KD(a);let n;try{n=JSON.parse(a,t?t.reviver:null)}catch(o){if(i)throw o.message=`${e}: ${o.message}`,o;return null}return n}var nZ=zy.fromPromise(iZ);function oZ(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||bf,i="throws"in t?t.throws:!0;try{let a=r.readFileSync(e,t);return a=KD(a),JSON.parse(a,t.reviver)}catch(a){if(i)throw a.message=`${e}: ${a.message}`,a;return null}}async function sZ(e,t,r={}){let i=r.fs||bf,a=HD(t,r);await zy.fromCallback(i.writeFile)(e,a,r)}var uZ=zy.fromPromise(sZ);function cZ(e,t,r={}){let i=r.fs||bf,a=HD(t,r);return i.writeFileSync(e,a,r)}var lZ={readFile:nZ,readFileSync:oZ,writeFile:uZ,writeFileSync:cZ};WD.exports=lZ});var YD=$((Npe,GD)=>{"use strict";var Ry=VD();GD.exports={readJson:Ry.readFile,readJsonSync:Ry.readFileSync,writeJson:Ry.writeFile,writeJsonSync:Ry.writeFileSync}});var By=$((Mpe,XD)=>{"use strict";var pZ=Vn().fromCallback,_m=hn(),ZD=require("path"),QD=No(),fZ=nc().pathExists;function dZ(e,t,r,i){typeof r=="function"&&(i=r,r="utf8");let a=ZD.dirname(e);fZ(a,(n,o)=>{if(n)return i(n);if(o)return _m.writeFile(e,t,r,i);QD.mkdirs(a,u=>{if(u)return i(u);_m.writeFile(e,t,r,i)})})}function hZ(e,...t){let r=ZD.dirname(e);if(_m.existsSync(r))return _m.writeFileSync(e,...t);QD.mkdirsSync(r),_m.writeFileSync(e,...t)}XD.exports={outputFile:pZ(dZ),outputFileSync:hZ}});var e8=$((Upe,JD)=>{"use strict";var{stringify:mZ}=Iy(),{outputFile:gZ}=By();async function vZ(e,t,r={}){let i=mZ(t,r);await gZ(e,i,r)}JD.exports=vZ});var r8=$(($pe,t8)=>{"use strict";var{stringify:yZ}=Iy(),{outputFileSync:bZ}=By();function xZ(e,t,r){let i=yZ(t,r);bZ(e,i,r)}t8.exports=xZ});var i8=$((Hpe,a8)=>{"use strict";var wZ=Vn().fromPromise,mn=YD();mn.outputJson=wZ(e8());mn.outputJsonSync=r8();mn.outputJSON=mn.outputJson;mn.outputJSONSync=mn.outputJsonSync;mn.writeJSON=mn.writeJson;mn.writeJSONSync=mn.writeJsonSync;mn.readJSON=mn.readJson;mn.readJSONSync=mn.readJsonSync;a8.exports=mn});var c8=$((Kpe,u8)=>{"use strict";var kZ=hn(),M_=require("path"),_Z=Py().copy,s8=wm().remove,EZ=No().mkdirp,SZ=nc().pathExists,n8=wl();function jZ(e,t,r,i){typeof r=="function"&&(i=r,r={}),r=r||{};let a=r.overwrite||r.clobber||!1;n8.checkPaths(e,t,"move",r,(n,o)=>{if(n)return i(n);let{srcStat:u,isChangingCase:c=!1}=o;n8.checkParentPaths(e,u,t,"move",p=>{if(p)return i(p);if(AZ(t))return o8(e,t,a,c,i);EZ(M_.dirname(t),f=>f?i(f):o8(e,t,a,c,i))})})}function AZ(e){let t=M_.dirname(e);return M_.parse(t).root===t}function o8(e,t,r,i,a){if(i)return N_(e,t,r,a);if(r)return s8(t,n=>n?a(n):N_(e,t,r,a));SZ(t,(n,o)=>n?a(n):o?a(new Error("dest already exists.")):N_(e,t,r,a))}function N_(e,t,r,i){kZ.rename(e,t,a=>a?a.code!=="EXDEV"?i(a):CZ(e,t,r,i):i())}function CZ(e,t,r,i){_Z(e,t,{overwrite:r,errorOnExist:!0},n=>n?i(n):s8(e,i))}u8.exports=jZ});var h8=$((Wpe,d8)=>{"use strict";var p8=hn(),$_=require("path"),FZ=Py().copySync,f8=wm().removeSync,DZ=No().mkdirpSync,l8=wl();function PZ(e,t,r){r=r||{};let i=r.overwrite||r.clobber||!1,{srcStat:a,isChangingCase:n=!1}=l8.checkPathsSync(e,t,"move",r);return l8.checkParentPathsSync(e,a,t,"move"),OZ(t)||DZ($_.dirname(t)),TZ(e,t,i,n)}function OZ(e){let t=$_.dirname(e);return $_.parse(t).root===t}function TZ(e,t,r,i){if(i)return U_(e,t,r);if(r)return f8(t),U_(e,t,r);if(p8.existsSync(t))throw new Error("dest already exists.");return U_(e,t,r)}function U_(e,t,r){try{p8.renameSync(e,t)}catch(i){if(i.code!=="EXDEV")throw i;return qZ(e,t,r)}}function qZ(e,t,r){return FZ(e,t,{overwrite:r,errorOnExist:!0}),f8(e)}d8.exports=PZ});var g8=$((Vpe,m8)=>{"use strict";var IZ=Vn().fromCallback;m8.exports={move:IZ(c8()),moveSync:h8()}});var Em=$((Gp
%s`,V,V,B,i);var Q=B.type==="*"?X_:B.type==="?"?Q_:"\\"+B.type;a=!0,i=i.slice(0,B.reStart)+Q+"\\("+V}v(),n&&(i+="\\\\");var G=!1;switch(i.charAt(0)){case"[":case".":case"(":G=!0}for(var ne=u.length-1;ne>-1;ne--){var te=u[ne],L=i.slice(0,te.reStart),X=i.slice(te.reStart,te.reEnd-8),F=i.slice(te.reEnd-8,te.reEnd),ee=i.slice(te.reEnd);F+=ee;var ve=L.split("(").length-1,ce=ee;for(b=0;b<ve;b++)ce=ce.replace(/\)[+*?]?/,"");ee=ce;var ze="";ee===""&&t!==Ly&&(ze="$");var be=L+X+ee+ze+F;i=be}if(i!==""&&a&&(i="(?=.)"+i),G&&(i=m+i),t===Ly)return[i,a];if(!a)return sQ(e);var Re=r.nocase?"i":"";try{var oe=new RegExp("^"+i+"$",Re)}catch{return new RegExp("$.")}return oe._glob=e,oe._src=i,oe}Gn.makeRe=function(e,t){return new ji(e,t||{}).makeRe()};ji.prototype.makeRe=oQ;function oQ(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?X_:t.dot?XZ:JZ,i=t.nocase?"i":"",a=e.map(function(n){return n.map(function(o){return o===J_?r:typeof o=="string"?uQ(o):o._src}).join("\\/")}).join("|");a="^(?:"+a+")$",this.negate&&(a="^(?!"+a+").*$");try{this.regexp=new RegExp(a,i)}catch{this.regexp=!1}return this.regexp}Gn.match=function(e,t,r){r=r||{};var i=new ji(t,r);return e=e.filter(function(a){return i.match(a)}),i.options.nonull&&!e.length&&e.push(t),e};ji.prototype.match=function(t,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;var i=this.options;jm.sep!=="/"&&(t=t.split(jm.sep).join("/")),t=t.split(N8),this.debug(this.pattern,"split",t);var a=this.set;this.debug(this.pattern,"set",a);var n,o;for(o=t.length-1;o>=0&&(n=t[o],!n);o--);for(o=0;o<a.length;o++){var u=a[o],c=t;i.matchBase&&u.length===1&&(c=[n]);var p=this.matchOne(c,u,r);if(p)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};ji.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var a=0,n=0,o=e.length,u=t.length;a<o&&n<u;a++,n++){this.debug("matchOne loop");var c=t[n],p=e[a];if(this.debug(t,c,p),c===!1)return!1;if(c===J_){this.debug("GLOBSTAR",[t,c,p]);var f=a,d=n+1;if(d===u){for(this.debug("** at the end");a<o;a++)if(e[a]==="."||e[a]===".."||!i.dot&&e[a].charAt(0)===".")return!1;return!0}for(;f<o;){var m=e[f];if(this.debug(`
globstar while`,e,f,t,d,m),this.matchOne(e.slice(f),t.slice(d),r))return this.debug("globstar found match!",f,o,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,f,t,d);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
>>> no match, partial?`,e,f,t,d),f===o))}var h;if(typeof c=="string"?(h=p===c,this.debug("string match",c,p,h)):(h=p.match(c),this.debug("pattern match",c,p,h)),!h)return!1}if(a===o&&n===u)return!0;if(a===o)return r;if(n===u)return a===o-1&&e[a]==="";throw new Error("wtf?")};function sQ(e){return e.replace(/\\(.)/g,"$1")}function uQ(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var $8=$((rfe,eE)=>{typeof Object.create=="function"?eE.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:eE.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var $y=$((afe,Uy)=>{"use strict";function H8(e){return e.charAt(0)==="/"}function K8(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),i=r[1]||"",a=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||a)}Uy.exports=process.platform==="win32"?K8:H8;Uy.exports.posix=H8;Uy.exports.win32=K8});var rE=$(dc=>{dc.setopts=hQ;dc.ownProp=W8;dc.makeAbs=Am;dc.finish=mQ;dc.mark=gQ;dc.isIgnored=G8;dc.childrenIgnored=vQ;function W8(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var cQ=require("fs"),kf=require("path"),lQ=My(),V8=$y(),tE=lQ.Minimatch;function pQ(e,t){return e.localeCompare(t,"en")}function fQ(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(dQ))}function dQ(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new tE(r,{dot:!0})}return{matcher:new tE(e,{dot:!0}),gmatcher:t}}function hQ(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||cQ,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),fQ(e,r),e.changedCwd=!1;var i=process.cwd();W8(r,"cwd")?(e.cwd=kf.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=r.root||kf.resolve(e.cwd,"/"),e.root=kf.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=V8(e.cwd)?e.cwd:Am(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new tE(t,r),e.options=e.minimatch.options}function mQ(e){for(var t=e.nounique,r=t?[]:Object.create(null),i=0,a=e.matches.length;i<a;i++){var n=e.matches[i];if(!n||Object.keys(n).length===0){if(e.nonull){var o=e.minimatch.globSet[i];t?r.push(o):r[o]=!0}}else{var u=Object.keys(n);t?r.push.apply(r,u):u.forEach(function(c){r[c]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(pQ)),e.mark){for(var i=0;i<r.length;i++)r[i]=e._mark(r[i]);e.nodir&&(r=r.filter(function(c){var p=!/\/$/.test(c),f=e.cache[c]||e.cache[Am(e,c)];return p&&f&&(p=f!=="DIR"&&!Array.isArray(f)),p}))}e.ignore.length&&(r=r.filter(function(c){return!G8(e,c)})),e.found=r}function gQ(e,t){var r=Am(e,t),i=e.cache[r],a=t;if(i){var n=i==="DIR"||Array.isArray(i),o=t.slice(-1)==="/";if(n&&!o?a+="/":!n&&o&&(a=a.slice(0,-1)),a!==t){var u=Am(e,a);e.statCache[u]=e.statCache[r],e.cache[u]=e.cache[r]}}return a}function Am(e,t){var r=t;return t.charAt(0)==="/"?r=kf.join(e.root,t):V8(t)||t===""?r=t:e.changedCwd?r=kf.resolve(e.cwd,t):r=kf.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function G8(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function vQ(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var J8=$((u
See: https://github.com/isaacs/node-glob/issues/167`);return new Xa(e,t).found}function Xa(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Xa))return new Xa(e,t);if(bQ(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}Xa.prototype._finish=function(){if(Z8.ok(this instanceof Xa),this.realpath){var e=this;this.matches.forEach(function(t,r){var i=e.matches[r]=Object.create(null);for(var a in t)try{a=e._makeAbs(a);var n=yQ.realpathSync(a,e.realpathCache);i[n]=!0}catch(o){if(o.syscall==="stat")i[e._makeAbs(a)]=!0;else throw o}})}_l.finish(this)};Xa.prototype._process=function(e,t,r){Z8.ok(this instanceof Xa);for(var i=0;typeof e[i]=="string";)i++;var a;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:a=null;break;default:a=e.slice(0,i).join("/");break}var n=e.slice(i),o;a===null?o=".":((Hy(a)||Hy(e.map(function(p){return typeof p=="string"?p:"[*]"}).join("/")))&&(!a||!Hy(a))&&(a="/"+a),o=a);var u=this._makeAbs(o);if(!xQ(this,o)){var c=n[0]===Y8.GLOBSTAR;c?this._processGlobStar(a,o,u,n,t,r):this._processReaddir(a,o,u,n,t,r)}};Xa.prototype._processReaddir=function(e,t,r,i,a,n){var o=this._readdir(r,n);if(!!o){for(var u=i[0],c=!!this.minimatch.negate,p=u._glob,f=this.dot||p.charAt(0)===".",d=[],m=0;m<o.length;m++){var h=o[m];if(h.charAt(0)!=="."||f){var v;c&&!e?v=!h.match(u):v=h.match(u),v&&d.push(h)}}var b=d.length;if(b!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[a]||(this.matches[a]=Object.create(null));for(var m=0;m<b;m++){var h=d[m];e&&(e.slice(-1)!=="/"?h=e+"/"+h:h=e+h),h.charAt(0)==="/"&&!this.nomount&&(h=aE.join(this.root,h)),this._emitMatch(a,h)}return}i.shift();for(var m=0;m<b;m++){var h=d[m],x;e?x=[e,h]:x=[h],this._process(x.concat(i),a,n)}}}};Xa.prototype._emitMatch=function(e,t){if(!wQ(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};Xa.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,i;try{r=this.fs.lstatSync(e)}catch(n){if(n.code==="ENOENT")return null}var a=r&&r.isSymbolicLink();return this.symlinks[e]=a,!a&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};Xa.prototype._readdir=function(e,t){var r;if(t&&!iE(this.symlinks,e))return this._readdirInGlobStar(e);if(iE(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(a){return this._readdirError(e,a),null}};Xa.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var i=t[r];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,t};Xa.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=t.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};Xa.prototype._processGlobStar=function(e,t,r,i,a,n){var o=this._readdir(r,n);if(!!o){var u=i.slice(1),c=e?[e]:[],p=c.concat(u);this._process(p,a,!1);var f=o.length,d=this.symlinks[r];if(!(d&&n))for(var m=0;m<f;m++){var h=o[m];if(!(h.charAt(0)==="."&&!this.dot)){var v=c.concat(o[m],u);this._process(v,a,!0);var b=c.concat(o[m],i);this._process(b,a,!0)}}}};Xa.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&Hy(e)&&!this.nomount){var i=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=aE.join(this.root,e):(e=aE.resolve(this.root,e),i&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};Xa.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&iE(this.cach
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u(w,_){if(w){if(typeof w=="string")return c(w,_);var k=Object.prototype.toString.call(w).slice(8,-1);return k==="Object"&&w.constructor&&(k=w.constructor.name),k==="Map"||k==="Set"?Array.from(w):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?c(w,_):void 0}}function c(w,_){(_==null||_>w.length)&&(_=w.length);for(var k=0,C=new Array(_);k<_;k++)C[k]=w[k];return C}function p(w,_){var k=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!k){if(Array.isArray(w)||(k=u(w))||_&&w&&typeof w.length=="number"){k&&(w=k);var C=0,N=function(){};return{s:N,n:function(){return C>=w.length?{done:!0}:{done:!1,value:w[C++]}},e:function(se){throw se},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z,ye=!0,pe=!1;return{s:function(){k=k.call(w)},n:function(){var se=k.next();return ye=se.done,se},e:function(se){pe=!0,Z=se},f:function(){try{ye||k.return==null||k.return()}finally{if(pe)throw Z}}}}var f=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=function(w){return w&&w.Math==Math&&w},m=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof f=="object"&&f)||function(){return this}()||Function("return this")(),h={},v=function(w){try{return!!w()}catch{return!0}},b=!v(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),x={},A={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,I=B&&!A.call({1:2},1);x.f=I?function(w){var _=B(this,w);return!!_&&_.enumerable}:A;var W=function(w,_){return{enumerable:!(1&w),configurable:!(2&w),writable:!(4&w),value:_}},V={}.toString,Q=function(w){return V.call(w).slice(8,-1)},G=Q,ne="".split,te=v(function(){return!Object("z").propertyIsEnumerable(0)})?function(w){return G(w)=="String"?ne.call(w,""):Object(w)}:Object,L=function(w){if(w==null)throw TypeError("Can't call method on "+w);return w},X=te,F=L,ee=function(w){return X(F(w))},ve=function(w){return typeof w=="object"?w!==null:typeof w=="function"},ce=ve,ze=function(w,_){if(!ce(w))return w;var k,C;if(_&&typeof(k=w.toString)=="function"&&!ce(C=k.call(w))||typeof(k=w.valueOf)=="function"&&!ce(C=k.call(w))||!_&&typeof(k=w.toString)=="function"&&!ce(C=k.call(w)))return C;throw TypeError("Can't convert object to primitive value")},be=L,Re=function(w){return Object(be(w))},oe=Re,ue={}.hasOwnProperty,at=function(w,_){return ue.call(oe(w),_)},Ve=ve,Me=m.document,Ye=Ve(Me)&&Ve(Me.createElement),Ct=function(w){return Ye?Me.createElement(w):{}},_t=Ct,St=!b&&!v(function(){return Object.defineProperty(_t("div"),"a",{get:function(){return 7}}).a!=7}),er=b,Kt=x,rr=W,Ut=ee,P=ze,Ae=at,we=St,J=Object.getOwnPropertyDescriptor;h.f=er?J:function(w,_){if(w=Ut(w),_=P(_,!0),we)try{return J(w,_)}catch{}if(Ae(w,_))return rr(!Kt.f.call(w,_),w[_])};var Y={},de=ve,je=function(w){if(!de(w))throw TypeError(String(w)+" is not an object");return w},Fe=b,me=St,Ue=je,ot=ze,We=Object.defineProperty;Y.f=Fe?We:function(w,_,k){if(Ue(w),_=ot(_,!0),Ue(k),me)try{return We(w,_,k)}catch{}if("get"in k||"set"in k)throw TypeError("Accessors not supported");return"value"in k&&(w[_]=k.value),w};var gt=Y,Gt=W,Pt=b?function(w,_,k){return gt.f(w,_,Gt(1,k))}:function(w,_,k){return w[_]=k,w},Qt={exports:{}},Vr=m,ia=Pt,ga=function(w,_){try{ia(Vr,w,_)}catch{Vr[w]=_}return _},lr=ga,na="__core-js_shared__",_a=m[na]||lr(na,{}),Ir=_a,Wa=Function.toString;typeof Ir.inspectSource!="function"&&(Ir.inspectSource=function(w){return Wa.call(w)});var Gr=Ir.inspectSource,Ji=Gr,Di=m.WeakMap,en=typeof Di=="function"&&/native code/.test(Ji(Di)),Ra={exports:{}},tn=_a;(Ra.exports=function(w,_){return tn[w]||(tn[w]=_!==void 0?_:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"});var ro,Yr,si,Pi=0,wo=Math.random(),wn=function(w){return"Symbol("+String(w===void 0?"":w)+")_"+(++Pi+wo).toString(36)},ko=Ra.exports,_o=wn,oa=ko("keys"),kn=function(w){return oa[w]||(oa[w]=_o(w))},D={},j=en,E=ve,y=Pt,O=at,H=_a,ie=kn,_e=D,Te="Object already initialized",Xe=m.WeakMap;if(j||H.state){var Ze=H.state||(H.state=new Xe),xt=Ze.get,rt=Ze.has,wt=Ze.set;ro=function(w,_){if(rt.call(Ze,w))throw new TypeError(Te);return _.facade=w,wt.call(Ze,w,_),_},Yr=function(w){return xt.call(Ze,w)||{}},si=function(w){return rt.call(Ze,w)}}else{var dt=ie("state");_e[dt]=!0,ro=function(w,_){if(O(w,dt))throw new TypeError(Te);return _.facade=w,y(w,dt,_),_},Yr=function(w){return O(w,dt)?w[dt]:{}},si=function(w){return O(w,dt)}}var nt={set:ro,get:Yr,has:si,enforce:function(w){return si(w)?Yr(w):ro(w,{})},getterFor:function(w){return function(_){var k;if(!E(_)||(k=Yr(_)).type!==w)throw TypeError("Incompatible receiver, "+w+" required");return k}
`)&&(se="(?: "+se+")",ke=" "+ke,Pe++),k=new RegExp("^(?:"+se+")",pe)),Ti&&(k=new RegExp("^"+se+"$(?!\\s)",pe)),wi&&(_=Z.lastIndex),C=zc.call(ye?k:Z,ke),ye?C?(C.input=C.input.slice(Pe),C[0]=C[0].slice(Pe),C.index=Z.lastIndex,Z.lastIndex+=C[0].length):Z.lastIndex=0:wi&&C&&(Z.lastIndex=Z.global?C.index+C[0].length:_),Ti&&C&&C.length>1&&qg.call(C[0],k,function(){for(N=1;N<arguments.length-2;N++)arguments[N]===void 0&&(C[N]=void 0)}),C});var Rc=kd;gr({target:"RegExp",proto:!0,forced:/./.exec!==Rc},{exec:Rc});var as,Ln,Fu=Se("navigator","userAgent")||"",Bc=Fu,Ur=m.process,So=Ur&&Ur.versions,Yl=So&&So.v8;Yl?Ln=(as=Yl.split("."))[0]<4?1:as[0]+as[1]:Bc&&(!(as=Bc.match(/Edge\/(\d+)/))||as[1]>=74)&&(as=Bc.match(/Chrome\/(\d+)/))&&(Ln=as[1]);var Zl=Ln&&+Ln,Ql=Zl,F1=v,zg=!!Object.getOwnPropertySymbols&&!F1(function(){return!String(Symbol())||!Symbol.sham&&Ql&&Ql<41}),D1=zg&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Rg=m,Xl=Ra.exports,Ns=at,P1=wn,_d=zg,Bg=D1,Ms=Xl("wks"),Us=Rg.Symbol,Lg=Bg?Us:Us&&Us.withoutSetter||P1,sa=function(w){return Ns(Ms,w)&&(_d||typeof Ms[w]=="string")||(_d&&Ns(Us,w)?Ms[w]=Us[w]:Ms[w]=Lg("Symbol."+w)),Ms[w]},Jl=Qt.exports,Ed=Rc,ep=v,tp=sa,nn=Pt,Sd=tp("species"),$s=RegExp.prototype,Ng=!ep(function(){var w=/./;return w.exec=function(){var _=[];return _.groups={a:"7"},_},"".replace(w,"$<a>")!=="7"}),jd="a".replace(/./,"$0")==="$0",Mg=tp("replace"),Ug=!!/./[Mg]&&/./[Mg]("a","$0")==="",O1=!ep(function(){var w=/(?:)/,_=w.exec;w.exec=function(){return _.apply(this,arguments)};var k="ab".split(w);return k.length!==2||k[0]!=="a"||k[1]!=="b"}),rp=function(w,_,k,C){var N=tp(w),Z=!ep(function(){var he={};return he[N]=function(){return 7},""[w](he)!=7}),ye=Z&&!ep(function(){var he=!1,Ge=/a/;return w==="split"&&((Ge={}).constructor={},Ge.constructor[Sd]=function(){return Ge},Ge.flags="",Ge[N]=/./[N]),Ge.exec=function(){return he=!0,null},Ge[N](""),!he});if(!Z||!ye||w==="replace"&&(!Ng||!jd||Ug)||w==="split"&&!O1){var pe=/./[N],se=k(N,""[w],function(he,Ge,Le,tt,Qe){var ut=Ge.exec;return ut===Ed||ut===$s.exec?Z&&!Qe?{done:!0,value:pe.call(Ge,Le,tt)}:{done:!0,value:he.call(Le,Ge,tt)}:{done:!1}},{REPLACE_KEEPS_$0:jd,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ug}),Pe=se[0],ke=se[1];Jl(String.prototype,w,Pe),Jl($s,N,_==2?function(he,Ge){return ke.call(he,this,Ge)}:function(he){return ke.call(he,this)})}C&&nn($s[N],"sham",!0)},T1=qe,Du=L,$g=function(w){return function(_,k){var C,N,Z=String(Du(_)),ye=T1(k),pe=Z.length;return ye<0||ye>=pe?w?"":void 0:(C=Z.charCodeAt(ye))<55296||C>56319||ye+1===pe||(N=Z.charCodeAt(ye+1))<56320||N>57343?w?Z.charAt(ye):C:w?Z.slice(ye,ye+2):N-56320+(C-55296<<10)+65536}},Hg={codeAt:$g(!1),charAt:$g(!0)},Ad=Hg.charAt,ap=function(w,_,k){return _+(k?Ad(w,_).length:1)},is=Re,ip=Math.floor,q1="".replace,I1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,z1=/\$([$&'`]|\d{1,2})/g,Pu=Q,Nn=Rc,Lc=function(w,_){var k=w.exec;if(typeof k=="function"){var C=k.call(w,_);if(typeof C!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return C}if(Pu(w)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Nn.call(w,_)},R1=rp,B1=je,L1=Et,N1=qe,M1=L,ns=ap,ge=function(w,_,k,C,N,Z){var ye=k+w.length,pe=C.length,se=z1;return N!==void 0&&(N=is(N),se=I1),q1.call(Z,se,function(Pe,ke){var he;switch(ke.charAt(0)){case"$":return"$";case"&":return w;case"`":return _.slice(0,k);case"'":return _.slice(ye);case"<":he=N[ke.slice(1,-1)];break;default:var Ge=+ke;if(Ge===0)return Pe;if(Ge>pe){var Le=ip(Ge/10);return Le===0?Pe:Le<=pe?C[Le-1]===void 0?ke.charAt(1):C[Le-1]+ke.charAt(1):Pe}he=C[Ge-1]}return he===void 0?"":he})},Ne=Lc,Ce=Math.max,jt=Math.min;R1("replace",2,function(w,_,k,C){var N=C.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Z=C.REPLACE_KEEPS_$0,ye=N?"$":"$0";return[function(pe,se){var Pe=M1(this),ke=pe?.[w];return ke!==void 0?ke.call(pe,Pe,se):_.call(String(Pe),pe,se)},function(pe,se){if(!N&&Z||typeof se=="string"&&se.indexOf(ye)===-1){var Pe=k(_,pe,this,se);if(Pe.done)return Pe.value}var ke=B1(pe),he=String(this),Ge=typeof se=="function";Ge||(se=String(se));var Le=
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,sw=L,mp=`[
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]`,uw=RegExp("^"+mp+mp+"*"),cw=RegExp(mp+mp+"*$"),Ao=function(w){return function(_){var k=String(sw(_));return 1&w&&(k=k.replace(uw,"")),2&w&&(k=k.replace(cw,"")),k}},Bd={start:Ao(1),end:Ao(2),trim:Ao(3)},lw=v,Sn=ow,Ld=function(w){return lw(function(){return!!Sn[w]()||"\u200B\x85\u180E"[w]()!="\u200B\x85\u180E"||Sn[w].name!==w})},pw=Bd.trim;gr({target:"String",proto:!0,forced:Ld("trim")},{trim:function(){return pw(this)}});var ov={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},fw=ki,Nd=function(w,_,k){if(fw(w),_===void 0)return w;switch(k){case 0:return function(){return w.call(_)};case 1:return function(C){return w.call(_,C)};case 2:return function(C,N){return w.call(_,C,N)};case 3:return function(C,N,Z){return w.call(_,C,N,Z)}}return function(){return w.apply(_,arguments)}},sv=Q,gp=Array.isArray||function(w){return sv(w)=="Array"},dw=ve,uv=gp,Md=sa("species"),Ks=function(w,_){var k;return uv(w)&&(typeof(k=w.constructor)!="function"||k!==Array&&!uv(k.prototype)?dw(k)&&(k=k[Md])===null&&(k=void 0):k=void 0),new(k===void 0?Array:k)(_===0?0:_)},vp=Nd,hw=te,cv=Re,mw=Et,Co=Ks,yp=[].push,qi=function(w){var _=w==1,k=w==2,C=w==3,N=w==4,Z=w==6,ye=w==7,pe=w==5||Z;return function(se,Pe,ke,he){for(var Ge,Le,tt=cv(se),Qe=hw(tt),ut=vp(Pe,ke,3),ht=mw(Qe.length),Jt=0,sr=he||Co,Lr=_?sr(se,ht):k||ye?sr(se,0):void 0;ht>Jt;Jt++)if((pe||Jt in Qe)&&(Le=ut(Ge=Qe[Jt],Jt,tt),w))if(_)Lr[Jt]=Le;else if(Le)switch(w){case 3:return!0;case 5:return Ge;case 6:return Jt;case 2:yp.call(Lr,Ge)}else switch(w){case 4:return!1;case 7:yp.call(Lr,Ge)}return Z?-1:C||N?N:Lr}},Ii={forEach:qi(0),map:qi(1),filter:qi(2),some:qi(3),every:qi(4),find:qi(5),findIndex:qi(6),filterOut:qi(7)},gw=Ii.forEach,lv=m,pv=ov,Ws=Hc("forEach")?[].forEach:function(w){return gw(this,w,arguments.length>1?arguments[1]:void 0)},us=Pt;for(var fv in pv){var dv=lv[fv],Vs=dv&&dv.prototype;if(Vs&&Vs.forEach!==Ws)try{us(Vs,"forEach",Ws)}catch{Vs.forEach=Ws}}var hv={};hv[sa("toStringTag")]="z";var bp=String(hv)==="[object z]",Ya=bp,Lu=Q,mv=sa("toStringTag"),no=Lu(function(){return arguments}())=="Arguments",xp=Ya?Lu:function(w){var _,k,C;return w===void 0?"Undefined":w===null?"Null":typeof(k=function(N,Z){try{return N[Z]}catch{}}(_=Object(w),mv))=="string"?k:no?Lu(_):(C=Lu(_))=="Object"&&typeof _.callee=="function"?"Arguments":C},wp=xp,Gs=bp?{}.toString:function(){return"[object "+wp(this)+"]"},gv=bp,_i=Qt.exports,Ud=Gs;gv||_i(Object.prototype,"toString",Ud,{unsafe:!0});var vw=m.Promise,yw=Qt.exports,bw=Y.f,$d=at,vv=sa("toStringTag"),Ys=function(w,_,k){w&&!$d(w=k?w:w.prototype,vv)&&bw(w,vv,{configurable:!0,value:_})},Nu={},xw=Nu,ww=sa("iterator"),Wc=Array.prototype,kw=xp,_w=Nu,Hd=sa("iterator"),yv=je,Ew=je,Sw=function(w){return w!==void 0&&(xw.Array===w||Wc[ww]===w)},jw=Et,bv=Nd,Kd=function(w){if(w!=null)return w[Hd]||w["@@iterator"]||_w[kw(w)]},xv=function(w){var _=w.return;if(_!==void 0)return yv(_.call(w)).value},Zs=function(w,_){this.stopped=w,this.result=_},Wd=sa("iterator"),Vd=!1;try{var wv=0,Vc={next:function(){return{done:!!wv++}},return:function(){Vd=!0}};Vc[Wd]=function(){return this},Array.from(Vc,function(){throw 2})}catch{}var Mu,Gd,kp,kv=Se("document","documentElement"),Yd=/(?:iphone|ipod|ipad).*applewebkit/i.test(Fu),Zd=Q(m.process)=="process",jn=m,_v=v,Qd=Nd,Ev=kv,_p=Ct,ur=Yd,Aw=Zd,Ep=jn.location,Qs=jn.setImmediate,Sp=jn.clearImmediate,Cw=jn.process,Sv=jn.MessageChannel,zi=jn.Dispatch,Xd=0,cs={},Jd="onreadystatechange",jp=function(w){if(cs.hasOwnProperty(w)){var _=cs[w];delete cs[w],_()}},Ap=function(w){return func
`)}}}},{key:"fences",value:function(_){var k=this.rules.block.fences.exec(_);if(k){var C=k[0],N=function(Z,ye){var pe=Z.match(/^(\s+)(?:```)/);if(pe===null)return ye;var se=pe[1];return ye.split(`
`).map(function(Pe){var ke=Pe.match(/^\s+/);return ke===null?Pe:o(ke,1)[0].length>=se.length?Pe.slice(se.length):Pe}).join(`
`)}(C,k[3]||"");return{type:"code",raw:C,lang:k[2]?k[2].trim():k[2],text:N}}}},{key:"heading",value:function(_){var k=this.rules.block.heading.exec(_);if(k){var C=k[2].trim();if(/#$/.test(C)){var N=Yp(C,"#");this.options.pedantic?C=N.trim():N&&!/ $/.test(N)||(C=N.trim())}var Z={type:"heading",raw:k[0],depth:k[1].length,text:C,tokens:[]};return this.lexer.inline(Z.text,Z.tokens),Z}}},{key:"hr",value:function(_){var k=this.rules.block.hr.exec(_);if(k)return{type:"hr",raw:k[0]}}},{key:"blockquote",value:function(_){var k=this.rules.block.blockquote.exec(_);if(k){var C=k[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:k[0],tokens:this.lexer.blockTokens(C,[]),text:C}}}},{key:"list",value:function(_){var k=this.rules.block.list.exec(_);if(k){var C,N,Z,ye,pe,se,Pe,ke,he,Ge,Le,tt,Qe=k[1].trim(),ut=Qe.length>1,ht={type:"list",raw:"",ordered:ut,start:ut?+Qe.slice(0,-1):"",loose:!1,items:[]};Qe=ut?"\\d{1,9}\\".concat(Qe.slice(-1)):"\\".concat(Qe),this.options.pedantic&&(Qe=ut?Qe:"[*+-]");for(var Jt=new RegExp("^( {0,3}".concat(Qe,")((?: [^\\n]*)?(?:\\n|$))"));_&&(tt=!1,k=Jt.exec(_))&&!this.rules.block.hr.test(_);){if(C=k[0],_=_.substring(C.length),ke=k[2].split(`
`,1)[0],he=_.split(`
`,1)[0],this.options.pedantic?(ye=2,Le=ke.trimLeft()):(ye=(ye=k[2].search(/[^ ]/))>4?1:ye,Le=ke.slice(ye),ye+=k[1].length),se=!1,!ke&&/^ *$/.test(he)&&(C+=he+`
`,_=_.substring(he.length+1),tt=!0),!tt)for(var sr=new RegExp("^ {0,".concat(Math.min(3,ye-1),"}(?:[*+-]|\\d{1,9}[.)])"));_&&(ke=Ge=_.split(`
`,1)[0],this.options.pedantic&&(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!sr.test(ke));){if(ke.search(/[^ ]/)>=ye||!ke.trim())Le+=`
`+ke.slice(ye);else{if(se)break;Le+=`
`+ke}se||ke.trim()||(se=!0),C+=Ge+`
`,_=_.substring(Ge.length+1)}ht.loose||(Pe?ht.loose=!0:/\n *\n *$/.test(C)&&(Pe=!0)),this.options.gfm&&(N=/^\[[ xX]\] /.exec(Le))&&(Z=N[0]!=="[ ] ",Le=Le.replace(/^\[[ xX]\] +/,"")),ht.items.push({type:"list_item",raw:C,task:!!N,checked:Z,loose:!1,text:Le}),ht.raw+=C}ht.items[ht.items.length-1].raw=C.trimRight(),ht.items[ht.items.length-1].text=Le.trimRight(),ht.raw=ht.raw.trimRight();var Lr=ht.items.length;for(pe=0;pe<Lr;pe++){this.lexer.state.top=!1,ht.items[pe].tokens=this.lexer.blockTokens(ht.items[pe].text,[]);var Za=ht.items[pe].tokens.filter(function(cn){return cn.type==="space"}),jr=Za.every(function(cn){var Ro,Xu=0,su=p(cn.raw.split(""));try{for(su.s();!(Ro=su.n()).done;)if(Ro.value===`
`&&(Xu+=1),Xu>1)return!0}catch(cl){su.e(cl)}finally{su.f()}return!1});!ht.loose&&Za.length&&jr&&(ht.loose=!0,ht.items[pe].loose=!0)}return ht}}},{key:"html",value:function(_){var k=this.rules.block.html.exec(_);if(k){var C={type:"html",raw:k[0],pre:!this.options.sanitizer&&(k[1]==="pre"||k[1]==="script"||k[1]==="style"),text:k[0]};return this.options.sanitize&&(C.type="paragraph",C.text=this.options.sanitizer?this.options.sanitizer(k[0]):Ba(k[0]),C.tokens=[],this.lexer.inline(C.text,C.tokens)),C}}},{key:"def",value:function(_){var k=this.rules.block.def.exec(_);if(k)return k[3]&&(k[3]=k[3].substring(1,k[3].length-1)),{type:"def",tag:k[1].toLowerCase().replace(/\s+/g," "),raw:k[0],href:k[2],title:k[3]}}},{key:"table",value:function(_){var k=this.rules.block.table.exec(_);if(k){var C={type:"table",header:I0(k[1]).map(function(Pe){return{text:Pe}}),align:k[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:k[3]&&k[3].trim()?k[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(C.header.length===C.align.length){C.raw=k[0];var N,Z,ye,pe,se=C.align.length;for(N=0;N<se;N++)/^ *-+: *$/.test(C.align[N])?C.align[N]="right":/^ *:-+: *$/.test(C.align[N])?C.align[N]="center":/^ *:-+ *$/.test(C.align[N])?C.align[N]="left":C.align[N]=null;for(se=C.rows.length,N=0;N<se;N++)C.rows[N]=I0(C.rows[N],C.header.length).map(function(Pe){return{text:Pe}});for(se=C.header.length,Z=0;Z<se;Z++)C.header[Z].tokens=[],this.lexer.inlineTokens(C.header[Z].text,C.header[Z].tokens);for(se=C.rows.length,Z=0;Z<se;Z++)for(pe=C.rows[Z],ye=0;ye<pe.length;ye++)pe[ye].tokens=[],this.lexer.inlineTokens(pe[ye].text,pe[ye].tokens);return C}}}},{key:"lheading",value:function(_){var k=this.rules.block.lheading.exec(_);if(k){var C={type:"heading",raw:k[0],depth:k[2].charAt(0)==="="?1:2,text:k[1],tokens:[]};return this.lexer.inline(C.text,C.tokens),C}}},{key:"paragraph",value:function(_){var k=this.rules.block.paragraph.exec(_);if(k){var C={type:"paragraph",raw:k[0],text:k[1].charAt(k[1].length-1)===`
`?k[1].slice(0,-1):k[1],tokens:[]};return this.lexer.inline(C.text,C.tokens),C}}},{key:"text",value:function(_){var k=this.rules.block.text.exec(_);if(k){var C={type:"text",raw:k[0],text:k[0],tokens:[]};return this.lexer.inline(C.text,C.tokens),C}}},{key:"escape",value:function(_){var k=this.rules.inline.escape.exec(_);if(k)return{type:"escape",raw:k[0],text:Ba(k[1])}}},{key:"tag",value:function(_){var k=this.rules.inline.tag.exec(_);if(k)return!this.lexer.state.inLink&&/^<a /i.test(k[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(k[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:k[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):Ba(k[0]):k[0]}}},{key:"link",value:function(_){var k=this.rules.inline.link.exec(_);if(k){var C=k[2].trim();if(!this.options.pedantic&&/^</.test(C)){if(!/>$/.test(C))return;var N=Yp(C.slice(0,-1),"\\");if((C.length-N.length)%2==0)return}else{var Z=function(ke,he){if(ke.indexOf(he[1])===-1)return-1;for(var Ge=ke.length,Le=0,tt=0;tt<Ge;tt++)if(ke[tt]==="\\")tt++;else if(ke[tt]===he[0])Le++;else if(ke[tt]===he[1]&&--Le<0)return tt;return-1}(k[2],"()");if(Z>-1){var ye=(k[0].indexOf("!")===0?5:4)+k[1].length+Z;k[2]=k[2].substring(0,Z),k[0]=k[0].substring(0,ye).trim(),k[3]=""}}var pe=k[2],se="";if(this.options.pedantic){var Pe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(pe);Pe&&(pe=Pe[1],se=Pe[3])}else se=k[3]?k[3].slice(1,-1):"";return pe=pe.trim(),/^</.test(pe)&&(pe=this.options.pedantic&&!/>$/.test(C)?pe.slice(1):pe.slice(1,-1)),uo(k,{href:pe&&pe.replace(this.rules.inline._escapes,"$1"),title:se&&se.replace(this.rules.inline._escapes,"$1")},k[0],this.lexer)}}},{key:"reflink",value:function(_,k){var C;if((C=this.rules.inline.reflink.exec(_))||(C=this.rules.inline.nolink.exec(_))){var N=(C[2]||C[1]).replace(/\s+/g," ");if(!(N=k[N.toLowerCase()])||!N.href){var Z=C[0].charAt(0);return{type:"text",raw:Z,text:Z}}return uo(C,N,C[0],this.lexer)}}},{key:"emStrong",value:function(_,k){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",N=this.rules.inline.emStrong.lDelim.exec(_);if(N&&(!N[3]||!C.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E
]`).replace("lheading",Lt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var yt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Gp,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Gp,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function R0(w){return w.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function B0(w){var _,k,C="",N=w.length;for(_=0;_<N;_++)k=w.charCodeAt(_),Math.random()>.5&&(k="x"+k.toString(16)),C+="&#"+k+";";return C}yt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",yt.punctuation=Sr(yt.punctuation).replace(/punctuation/g,yt._punctuation).getRegex(),yt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,yt.escapedEmSt=/\\\*|\\_/g,yt._comment=Sr(Lt._comment).replace("(?:-->|$)","-->").getRegex(),yt.emStrong.lDelim=Sr(yt.emStrong.lDelim).replace(/punct/g,yt._punctuation).getRegex(),yt.emStrong.rDelimAst=Sr(yt.emStrong.rDelimAst,"g").replace(/punct/g,yt._punctuation).getRegex(),yt.emStrong.rDelimUnd=Sr(yt.emStrong.rDelimUnd,"g").replace(/punct/g,yt._punctuation).getRegex(),yt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,yt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,yt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,yt.autolink=Sr(yt.autolink).replace("scheme",yt._scheme).replace("email",yt._email).getRegex(),yt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,yt.tag=Sr(yt.tag).replace("comment",yt._comment).replace("attribute",yt._attribute).getRegex(),yt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,yt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,yt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,yt.link=Sr(yt.link).replace("label",yt._label).replace("href",yt._href).replace("title",yt._title).getRegex(),yt.reflink=Sr(yt.reflink).replace("label",yt._label).replace("ref",Lt._label).getRegex(),yt.nolink=Sr(yt.nolink).replace("ref",Lt._label).getRegex(),yt.reflinkSearch=Sr(yt.reflinkSearch,"g").replace("reflink",yt.reflink).replace("nolink",yt.nolink).getRegex(),yt.normal=$n({},yt),yt.pedantic=$n({},yt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Sr(/^!?\[(label)\]\((.*?)\)/).replace("label",yt._label).getRegex(),reflink:Sr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yt._label).getRegex()}),yt.gfm=$n({},yt.normal,{escape:Sr(yt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?
`).replace(/\t/g," "),this.blockTokens(_,this.tokens);k=this.inlineQueue.shift();)this.inlineTokens(k.src,k.tokens);return this.tokens}},{key:"blockTokens",value:function(_){var k,C,N,Z,ye=this,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];for(this.options.pedantic&&(_=_.replace(/^ +$/gm,""));_;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Pe){return!!(k=Pe.call({lexer:ye},_,pe))&&(_=_.substring(k.raw.length),pe.push(k),!0)}))){if(k=this.tokenizer.space(_))_=_.substring(k.raw.length),k.raw.length===1&&pe.length>0?pe[pe.length-1].raw+=`
`:pe.push(k);else if(k=this.tokenizer.code(_))_=_.substring(k.raw.length),!(C=pe[pe.length-1])||C.type!=="paragraph"&&C.type!=="text"?pe.push(k):(C.raw+=`
`+k.raw,C.text+=`
`+k.text,this.inlineQueue[this.inlineQueue.length-1].src=C.text);else if(k=this.tokenizer.fences(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.heading(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.hr(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.blockquote(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.list(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.html(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.def(_))_=_.substring(k.raw.length),!(C=pe[pe.length-1])||C.type!=="paragraph"&&C.type!=="text"?this.tokens.links[k.tag]||(this.tokens.links[k.tag]={href:k.href,title:k.title}):(C.raw+=`
`+k.raw,C.text+=`
`+k.raw,this.inlineQueue[this.inlineQueue.length-1].src=C.text);else if(k=this.tokenizer.table(_))_=_.substring(k.raw.length),pe.push(k);else if(k=this.tokenizer.lheading(_))_=_.substring(k.raw.length),pe.push(k);else if(N=_,this.options.extensions&&this.options.extensions.startBlock&&function(){var Pe=1/0,ke=_.slice(1),he=void 0;ye.options.extensions.startBlock.forEach(function(Ge){typeof(he=Ge.call({lexer:this},ke))=="number"&&he>=0&&(Pe=Math.min(Pe,he))}),Pe<1/0&&Pe>=0&&(N=_.substring(0,Pe+1))}(),this.state.top&&(k=this.tokenizer.paragraph(N)))C=pe[pe.length-1],Z&&C.type==="paragraph"?(C.raw+=`
`+k.raw,C.text+=`
`+k.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=C.text):pe.push(k),Z=N.length!==_.length,_=_.substring(k.raw.length);else if(k=this.tokenizer.text(_))_=_.substring(k.raw.length),(C=pe[pe.length-1])&&C.type==="text"?(C.raw+=`
`+k.raw,C.text+=`
`+k.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=C.text):pe.push(k);else if(_){var se="Infinite loop on byte: "+_.charCodeAt(0);if(this.options.silent){console.error(se);break}throw new Error(se)}}return this.state.top=!0,pe}},{key:"inline",value:function(_,k){this.inlineQueue.push({src:_,tokens:k})}},{key:"inlineTokens",value:function(_){var k,C,N,Z,ye,pe,se=this,Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=_;if(this.tokens.links){var he=Object.keys(this.tokens.links);if(he.length>0)for(;(Z=this.tokenizer.rules.inline.reflinkSearch.exec(ke))!=null;)he.includes(Z[0].slice(Z[0].lastIndexOf("[")+1,-1))&&(ke=ke.slice(0,Z.index)+"["+Nh("a",Z[0].length-2)+"]"+ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Z=this.tokenizer.rules.inline.blockSkip.exec(ke))!=null;)ke=ke.slice(0,Z.index)+"["+Nh("a",Z[0].length-2)+"]"+ke.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Z=this.tokenizer.rules.inline.escapedEmSt.exec(ke))!=null;)ke=ke.slice(0,Z.index)+"++"+ke.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;_;)if(ye||(pe=""),ye=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Le){return!!(k=Le.call({lexer:se},_,Pe))&&(_=_.substring(k.raw.length),Pe.push(k),!0)})))if(k=this.tokenizer.escape(_))_=_.substring(k.raw.length),Pe.push(k);else if(k=this.tokenizer.tag(_))_=_.substring(k.raw.length),(C=Pe[Pe.length-1])&&k.type==="text"&&C.type==="text"?(C.raw+=k.raw,C.text+=k.text):Pe.push(k);else if(k=this.tokenizer.link(_))_=_.substring(k.raw.length),Pe.push(k);else if(k=this.tokenizer.reflink(_,this.tokens.links))_=_.substring(k.raw.length),(C=Pe[Pe.length-1])&&k.type==="text"&&C.type==="text"?(C.raw+=k.raw,C.text+=k.text):Pe.push(k);else if(k=this.tokenizer.emStrong(_,ke,pe))_=_.substring(k.raw.length),Pe.push(k);else if(k=this.tokenizer.codespan(_))_=_.substring(k.raw.length),Pe.push(k);else if(k=this.tokenizer.br(_))_=_.substring(k.raw.length),Pe.push(k);else if(k=this.tokenizer.del(_))_=_.substring(k.raw.length),Pe.push(k);else if(k=this.tokenizer.autolink(_,B0))_=_.substring(k.raw.length),Pe.push(k);else if(this.state.inLink||!(k=this.tokenizer.url(_,B0))){if(N=_,this.options.extensions&&this.options.extensions.startInline&&function(){var Le=1/0,tt=_.slice(1),Qe=void 0;se.options.extensions.startInline.forEach(function(ut){typeof(Qe=ut.call({lexer:this},tt))=="number"&&Qe>=0&&(Le=Math.min(Le,Qe))}),Le<1/0&&Le>=0&&(N=_.substring(0,Le+1))}(),k=this.tokenizer.inlineText(N,R0))_=_.substring(k.raw.length),k.raw.slice(-1)!=="_"&&(pe=k.raw.slice(-1)),ye=!0,(C=Pe[Pe.length-1])&&C.type==="text"?(C.raw+=k.raw,C.text+=k.text):Pe.push(k);else if(_){var Ge="Infinite loop on byte: "+_.charCodeAt(0);if(this.options.silent){console.error(Ge);break}throw new Error(Ge)}}else _=_.substring(k.raw.length),Pe.push(k);return Pe}}],[{key:"rules",get:function(){return{block:Lt,inline:yt}}},{key:"lex",value:function(_,k){return new w(k).lex(_)}},{key:"lexInline",value:function(_,k){return new w(k).inlineTokens(_)}}]),w}(),Mh=function(){function w(_){t(this,w),this.options=_||ou}return i(w,[{key:"code",value:function(_,k,C){var N=(k||"").match(/\S*/)[0];if(this.options.highlight){var Z=this.options.highlight(_,N);Z!=null&&Z!==_&&(C=!0,_=Z)}return _=_.replace(/\n$/,"")+`
`,N?'<pre><code class="'+this.options.langPrefix+Ba(N,!0)+'">'+(C?_:Ba(_,!0))+`</code></pre>
`:"<pre><code>"+(C?_:Ba(_,!0))+`</code></pre>
`}},{key:"blockquote",value:function(_){return`<blockquote>
`+_+`</blockquote>
`}},{key:"html",value:function(_){return _}},{key:"heading",value:function(_,k,C,N){return this.options.headerIds?"<h"+k+' id="'+this.options.headerPrefix+N.slug(C)+'">'+_+"</h"+k+`>
`:"<h"+k+">"+_+"</h"+k+`>
`}},{key:"hr",value:function(){return this.options.xhtml?`<hr/>
`:`<hr>
`}},{key:"list",value:function(_,k,C){var N=k?"ol":"ul";return"<"+N+(k&&C!==1?' start="'+C+'"':"")+`>
`+_+"</"+N+`>
`}},{key:"listitem",value:function(_){return"<li>"+_+`</li>
`}},{key:"checkbox",value:function(_){return"<input "+(_?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(_){return"<p>"+_+`</p>
`}},{key:"table",value:function(_,k){return k&&(k="<tbody>"+k+"</tbody>"),`<table>
<thead>
`+_+`</thead>
`+k+`</table>
`}},{key:"tablerow",value:function(_){return`<tr>
`+_+`</tr>
`}},{key:"tablecell",value:function(_,k){var C=k.header?"th":"td";return(k.align?"<"+C+' align="'+k.align+'">':"<"+C+">")+_+"</"+C+`>
`}},{key:"strong",value:function(_){return"<strong>"+_+"</strong>"}},{key:"em",value:function(_){return"<em>"+_+"</em>"}},{key:"codespan",value:function(_){return"<code>"+_+"</code>"}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(_){return"<del>"+_+"</del>"}},{key:"link",value:function(_,k,C){if((_=q0(this.options.sanitize,this.options.baseUrl,_))===null)return C;var N='<a href="'+Ba(_)+'"';return k&&(N+=' title="'+k+'"'),N+=">"+C+"</a>"}},{key:"image",value:function(_,k,C){if((_=q0(this.options.sanitize,this.options.baseUrl,_))===null)return C;var N='<img src="'+_+'" alt="'+C+'"';return k&&(N+=' title="'+k+'"'),N+=this.options.xhtml?"/>":">"}},{key:"text",value:function(_){return _}}]),w}(),Uh=function(){function w(){t(this,w)}return i(w,[{key:"strong",value:function(_){return _}},{key:"em",value:function(_){return _}},{key:"codespan",value:function(_){return _}},{key:"del",value:function(_){return _}},{key:"html",value:function(_){return _}},{key:"text",value:function(_){return _}},{key:"link",value:function(_,k,C){return""+C}},{key:"image",value:function(_,k,C){return""+C}},{key:"br",value:function(){return""}}]),w}(),sl=function(){function w(){t(this,w),this.seen={}}return i(w,[{key:"serialize",value:function(_){return _.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(_,k){var C=_,N=0;if(this.seen.hasOwnProperty(C)){N=this.seen[_];do C=_+"-"+ ++N;while(this.seen.hasOwnProperty(C))}return k||(this.seen[_]=N,this.seen[C]=0),C}},{key:"slug",value:function(_){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=this.serialize(_);return this.getNextSafeSlug(C,k.dryrun)}}]),w}(),ul=function(){function w(_){t(this,w),this.options=_||ou,this.options.renderer=this.options.renderer||new Mh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Uh,this.slugger=new sl}return i(w,[{key:"parse",value:function(_){var k,C,N,Z,ye,pe,se,Pe,ke,he,Ge,Le,tt,Qe,ut,ht,Jt,sr,Lr,Za=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],jr="",cn=_.length;for(k=0;k<cn;k++)if(he=_[k],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[he.type])||(Lr=this.options.extensions.renderers[he.type].call({parser:this},he))===!1&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(he.type))switch(he.type){case"space":continue;case"hr":jr+=this.renderer.hr();continue;case"heading":jr+=this.renderer.heading(this.parseInline(he.tokens),he.depth,T0(this.parseInline(he.tokens,this.textRenderer)),this.slugger);continue;case"code":jr+=this.renderer.code(he.text,he.lang,he.escaped);continue;case"table":for(Pe="",se="",Z=he.header.length,C=0;C<Z;C++)se+=this.renderer.tablecell(this.parseInline(he.header[C].tokens),{header:!0,align:he.align[C]});for(Pe+=this.renderer.tablerow(se),ke="",Z=he.rows.length,C=0;C<Z;C++){for(se="",ye=(pe=he.rows[C]).length,N=0;N<ye;N++)se+=this.renderer.tablecell(this.parseInline(pe[N].tokens),{header:!1,align:he.align[N]});ke+=this.renderer.tablerow(se)}jr+=this.renderer.table(Pe,ke);continue;case"blockquote":ke=this.parse(he.tokens),jr+=this.renderer.blockquote(ke);continue;case"list":for(Ge=he.ordered,Le=he.start,tt=he.loose,Z=he.items.length,ke="",C=0;C<Z;C++)ht=(ut=he.items[C]).checked,Jt=ut.task,Qe="",ut.task&&(sr=this.renderer.checkbox(ht),tt?ut.tokens.length>0&&ut.tokens[0].type==="paragraph"?(ut.tokens[0].text=sr+" "+ut.tokens[0].text,ut.tokens[0].tokens&&ut.tokens[0].tokens.length>0&&ut.tokens[0].tokens[0].type==="text"&&(ut.tokens[0].tokens[0].text=sr+" "+ut.tokens[0].tokens[0].text)):ut.tokens.unshift({type:"text",text:sr}):Qe+=sr),Qe+=this.parse(ut.tokens,tt),ke+=this.renderer.listitem(Qe,Jt,ht);jr+=this.renderer.list(ke,Ge,Le);continue;case"html":jr+=this.renderer.html(he.text);continue;case"paragraph":jr+=this.renderer.paragraph(this.parseInline(he.tokens));continue;case"text":for(ke=he.tokens?t
`+((he=_[++k]).tokens?this.parseInline(he.tokens):he.text);jr+=Za?this.renderer.paragraph(ke):ke;continue;default:var Ro='Token with "'+he.type+'" type was not found.';if(this.options.silent)return void console.error(Ro);throw new Error(Ro)}else jr+=Lr||"";return jr}},{key:"parseInline",value:function(_,k){k=k||this.renderer;var C,N,Z,ye="",pe=_.length;for(C=0;C<pe;C++)if(N=_[C],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[N.type])||(Z=this.options.extensions.renderers[N.type].call({parser:this},N))===!1&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(N.type))switch(N.type){case"escape":ye+=k.text(N.text);break;case"html":ye+=k.html(N.text);break;case"link":ye+=k.link(N.href,N.title,this.parseInline(N.tokens,k));break;case"image":ye+=k.image(N.href,N.title,N.text);break;case"strong":ye+=k.strong(this.parseInline(N.tokens,k));break;case"em":ye+=k.em(this.parseInline(N.tokens,k));break;case"codespan":ye+=k.codespan(N.text);break;case"br":ye+=k.br();break;case"del":ye+=k.del(this.parseInline(N.tokens,k));break;case"text":ye+=k.text(N.text);break;default:var se='Token with "'+N.type+'" type was not found.';if(this.options.silent)return void console.error(se);throw new Error(se)}else ye+=Z||"";return ye}}],[{key:"parse",value:function(_,k){return new w(k).parse(_)}},{key:"parseInline",value:function(_,k){return new w(k).parseInline(_)}}]),w}();function Zt(w,_,k){if(w==null)throw new Error("marked(): input parameter is undefined or null");if(typeof w!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(w)+", string expected");if(typeof _=="function"&&(k=_,_=null),z0(_=$n({},Zt.defaults,_||{})),k){var C,N=_.highlight;try{C=dr.lex(w,_)}catch(se){return k(se)}var Z=function(se){var Pe;if(!se)try{_.walkTokens&&Zt.walkTokens(C,_.walkTokens),Pe=ul.parse(C,_)}catch(ke){se=ke}return _.highlight=N,se?k(se):k(null,Pe)};if(!N||N.length<3||(delete _.highlight,!C.length))return Z();var ye=0;return Zt.walkTokens(C,function(se){se.type==="code"&&(ye++,setTimeout(function(){N(se.text,se.lang,function(Pe,ke){if(Pe)return Z(Pe);ke!=null&&ke!==se.text&&(se.text=ke,se.escaped=!0),--ye===0&&Z()})},0))}),void(ye===0&&Z())}try{var pe=dr.lex(w,_);return _.walkTokens&&Zt.walkTokens(pe,_.walkTokens),ul.parse(pe,_)}catch(se){if(se.message+=`
Please report this to https://github.com/markedjs/marked.`,_.silent)return"<p>An error occurred:</p><pre>"+Ba(se.message+"",!0)+"</pre>";throw se}}Zt.options=Zt.setOptions=function(w){var _;return $n(Zt.defaults,w),_=Zt.defaults,ou=_,Zt},Zt.getDefaults=zo,Zt.defaults=ou,Zt.use=function(){for(var w=arguments.length,_=new Array(w),k=0;k<w;k++)_[k]=arguments[k];var C,N=$n.apply(void 0,[{}].concat(_)),Z=Zt.defaults.extensions||{renderers:{},childTokens:{}};_.forEach(function(ye){if(ye.extensions&&(C=!0,ye.extensions.forEach(function(se){if(!se.name)throw new Error("extension name required");if(se.renderer){var Pe=Z.renderers?Z.renderers[se.name]:null;Z.renderers[se.name]=Pe?function(){for(var ke=arguments.length,he=new Array(ke),Ge=0;Ge<ke;Ge++)he[Ge]=arguments[Ge];var Le=se.renderer.apply(this,he);return Le===!1&&(Le=Pe.apply(this,he)),Le}:se.renderer}if(se.tokenizer){if(!se.level||se.level!=="block"&&se.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");Z[se.level]?Z[se.level].unshift(se.tokenizer):Z[se.level]=[se.tokenizer],se.start&&(se.level==="block"?Z.startBlock?Z.startBlock.push(se.start):Z.startBlock=[se.start]:se.level==="inline"&&(Z.startInline?Z.startInline.push(se.start):Z.startInline=[se.start]))}se.childTokens&&(Z.childTokens[se.name]=se.childTokens)})),ye.renderer&&function(){var se=Zt.defaults.renderer||new Mh,Pe=function(he){var Ge=se[he];se[he]=function(){for(var Le=arguments.length,tt=new Array(Le),Qe=0;Qe<Le;Qe++)tt[Qe]=arguments[Qe];var ut=ye.renderer[he].apply(se,tt);return ut===!1&&(ut=Ge.apply(se,tt)),ut}};for(var ke in ye.renderer)Pe(ke);N.renderer=se}(),ye.tokenizer&&function(){var se=Zt.defaults.tokenizer||new nr,Pe=function(he){var Ge=se[he];se[he]=function(){for(var Le=arguments.length,tt=new Array(Le),Qe=0;Qe<Le;Qe++)tt[Qe]=arguments[Qe];var ut=ye.tokenizer[he].apply(se,tt);return ut===!1&&(ut=Ge.apply(se,tt)),ut}};for(var ke in ye.tokenizer)Pe(ke);N.tokenizer=se}(),ye.walkTokens){var pe=Zt.defaults.walkTokens;N.walkTokens=function(se){ye.walkTokens.call(this,se),pe&&pe.call(this,se)}}C&&(N.extensions=Z),Zt.setOptions(N)})},Zt.walkTokens=function(w,_){var k,C=p(w);try{var N=function(){var Z=k.value;switch(_.call(Zt,Z),Z.type){case"table":var ye,pe=p(Z.header);try{for(pe.s();!(ye=pe.n()).done;){var se=ye.value;Zt.walkTokens(se.tokens,_)}}catch(tt){pe.e(tt)}finally{pe.f()}var Pe,ke=p(Z.rows);try{for(ke.s();!(Pe=ke.n()).done;){var he,Ge=p(Pe.value);try{for(Ge.s();!(he=Ge.n()).done;){var Le=he.value;Zt.walkTokens(Le.tokens,_)}}catch(tt){Ge.e(tt)}finally{Ge.f()}}}catch(tt){ke.e(tt)}finally{ke.f()}break;case"list":Zt.walkTokens(Z.items,_);break;default:Zt.defaults.extensions&&Zt.defaults.extensions.childTokens&&Zt.defaults.extensions.childTokens[Z.type]?Zt.defaults.extensions.childTokens[Z.type].forEach(function(tt){Zt.walkTokens(Z[tt],_)}):Z.tokens&&Zt.walkTokens(Z.tokens,_)}};for(C.s();!(k=C.n()).done;)N()}catch(Z){C.e(Z)}finally{C.f()}},Zt.parseInline=function(w,_){if(w==null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof w!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(w)+", string expected");z0(_=$n({},Zt.defaults,_||{}));try{var k=dr.lexInline(w,_);return _.walkTokens&&Zt.walkTokens(k,_.walkTokens),ul.parseInline(k,_)}catch(C){if(C.message+=`
Please report this to https://github.com/markedjs/marked.`,_.silent)return"<p>An error occurred:</p><pre>"+Ba(C.message+"",!0)+"</pre>";throw C}},Zt.Parser=ul,Zt.parser=ul.parse,Zt.Renderer=Mh,Zt.TextRenderer=Uh,Zt.Lexer=dr,Zt.lexer=dr.lex,Zt.Tokenizer=nr,Zt.Slugger=sl,Zt.parse=Zt;var L0="__SCRIPT_END__",$h=/\[([\s\d,|-]*)\]/,c2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return function(){var w;function _(ke){var he=(ke.querySelector("[data-template]")||ke.querySelector("script")||ke).textContent,Ge=(he=he.replace(new RegExp(L0,"g"),"<\/script>")).match(/^\n?(\s*)/)[1].length,Le=he.match(/^\n?(\t*)/)[1].length;return Le>0?he=he.replace(new RegExp("\\n?\\t{"+Le+"}","g"),`
`):Ge>1&&(he=he.replace(new RegExp("\\n? {"+Ge+"}","g"),`
`)),he}function k(ke){for(var he=ke.attributes,Ge=[],Le=0,tt=he.length;Le<tt;Le++){var Qe=he[Le].name,ut=he[Le].value;/data\-(markdown|separator|vertical|notes)/gi.test(Qe)||(ut?Ge.push(Qe+'="'+ut+'"'):Ge.push(Qe))}return Ge.join(" ")}function C(ke){return(ke=ke||{}).separator=ke.separator||`\r?
---\r?
`,ke.notesSeparator=ke.notesSeparator||"notes?:",ke.attributes=ke.attributes||"",ke}function N(ke,he){he=C(he);var Ge=ke.split(new RegExp(he.notesSeparator,"mgi"));return Ge.length===2&&(ke=Ge[0]+'<aside class="notes">'+Zt(Ge[1].trim())+"</aside>"),'<script type="text/template">'+(ke=ke.replace(/<\/script>/g,L0))+"<\/script>"}function Z(ke,he){he=C(he);for(var Ge,Le,tt,Qe=new RegExp(he.separator+(he.verticalSeparator?"|"+he.verticalSeparator:""),"mg"),ut=new RegExp(he.separator),ht=0,Jt=!0,sr=[];Ge=Qe.exec(ke);)!(Le=ut.test(Ge[0]))&&Jt&&sr.push([]),tt=ke.substring(ht,Ge.index),Le&&Jt?sr.push(tt):sr[sr.length-1].push(tt),ht=Qe.lastIndex,Jt=Le;(Jt?sr:sr[sr.length-1]).push(ke.substring(ht));for(var Lr="",Za=0,jr=sr.length;Za<jr;Za++)sr[Za]instanceof Array?(Lr+="<section "+he.attributes+">",sr[Za].forEach(function(cn){Lr+="<section data-markdown>"+N(cn,he)+"</section>"}),Lr+="</section>"):Lr+="<section "+he.attributes+" data-markdown>"+N(sr[Za],he)+"</section>";return Lr}function ye(ke){return new Promise(function(he){var Ge=[];[].slice.call(ke.querySelectorAll("section[data-markdown]:not([data-markdown-parsed])")).forEach(function(Le,tt){Le.getAttribute("data-markdown").length?Ge.push(function(Qe){return new Promise(function(ut,ht){var Jt=new XMLHttpRequest,sr=Qe.getAttribute("data-markdown"),Lr=Qe.getAttribute("data-charset");Lr!=null&&Lr!=""&&Jt.overrideMimeType("text/html; charset="+Lr),Jt.onreadystatechange=function(Za,jr){jr.readyState===4&&(jr.status>=200&&jr.status<300||jr.status===0?ut(jr,sr):ht(jr,sr))}.bind(this,Qe,Jt),Jt.open("GET",sr,!0);try{Jt.send()}catch(Za){console.warn("Failed to get the Markdown file "+sr+". Make sure that the presentation and the file are served by a HTTP server and the file can be found there. "+Za),ut(Jt,sr)}})}(Le).then(function(Qe,ut){Le.outerHTML=Z(Qe.responseText,{separator:Le.getAttribute("data-separator"),verticalSeparator:Le.getAttribute("data-separator-vertical"),notesSeparator:Le.getAttribute("data-separator-notes"),attributes:k(Le)})},function(Qe,ut){Le.outerHTML='<section data-state="alert">ERROR: The attempt to fetch '+ut+" failed with HTTP status "+Qe.status+".Check your browser's JavaScript console for more details.<p>Remember that you need to serve the presentation HTML from a HTTP server.</p></section>"})):Le.outerHTML=Z(_(Le),{separator:Le.getAttribute("data-separator"),verticalSeparator:Le.getAttribute("data-separator-vertical"),notesSeparator:Le.getAttribute("data-separator-notes"),attributes:k(Le)})}),Promise.all(Ge).then(he)})}function pe(ke,he,Ge){var Le,tt,Qe=new RegExp(Ge,"mg"),ut=new RegExp('([^"= ]+?)="([^"]+?)"|(data-[^"= ]+?)(?=[" ])',"mg"),ht=ke.nodeValue;if(Le=Qe.exec(ht)){var Jt=Le[1];for(ht=ht.substring(0,Le.index)+ht.substring(Qe.lastIndex),ke.nodeValue=ht;tt=ut.exec(Jt);)tt[2]?he.setAttribute(tt[1],tt[2]):he.setAttribute(tt[3],"");return!0}return!1}function se(ke,he,Ge,Le,tt){if(he!=null&&he.childNodes!=null&&he.childNodes.length>0)for(var Qe=he,ut=0;ut<he.childNodes.length;ut++){var ht=he.childNodes[ut];if(ut>0)for(var Jt=ut-1;Jt>=0;){var sr=he.childNodes[Jt];if(typeof sr.setAttribute=="function"&&sr.tagName!="BR"){Qe=sr;break}Jt-=1}var Lr=ke;ht.nodeName=="section"&&(Lr=ht,Qe=ht),typeof ht.setAttribute!="function"&&ht.nodeType!=Node.COMMENT_NODE||se(Lr,ht,Qe,Le,tt)}he.nodeType==Node.COMMENT_NODE&&pe(he,Ge,Le)==0&&pe(he,ke,tt)}function Pe(){var ke=w.getRevealElement().querySelectorAll("[data-markdown]:not([data-markdown-parsed])");return[].slice.call(ke).forEach(function(he){he.setAttribute("data-markdown-parsed",!0);var Ge=he.querySelector("aside.notes"),Le=_(he);he.innerHTML=Zt(Le),se(he,he,null,he.getAttribute("data-element-attributes")||he.parentNode.getAttribute("data-element-attributes")||"\\.element\\s*?(.+?)$",he.getAttribute("data-attributes")||he.parentNode.getAttribute("data-attributes")||"\\.slide:\\s*?(\\S.+?)$"),Ge&&he.appendChild(Ge)}),Promise.resolve()}return{id:"markdown",init:function(ke){var he=(w=ke).getConfig().markdown||{},Ge=he.renderer,Le=he.animateLists,tt=n(he,["renderer","animateLists"]);return Ge||((Ge=new Zt.Renderer).code=
`,"\r","\0"],CX=/[\x20-\x3A\x3C-\x7E]+/,FX=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,DX={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},PX=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],OX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],OE=2147483647e3,TX=0;function TE(e,t,r,i){for(var a=0;a<e.length;){var n=e.charCodeAt(a);if(n<=47||n>=58)break;a++}return a<t||a>r||!i&&a!=e.length?null:parseInt(e.substr(0,a),10)}function qX(e){var t=e.split(":"),r=[0,0,0];if(t.length!==3)return null;for(var i=0;i<3;i++){var a=i==2,n=TE(t[i],1,2,a);if(n===null)return null;r[i]=n}return r}function IX(e){e=String(e).substr(0,3).toLowerCase();var t=DX[e];return t>=0?t:null}function Bm(e){if(!!e){var t=e.split(FX);if(!!t){for(var r=null,i=null,a=null,n=null,o=null,u=null,c=0;c<t.length;c++){var p=t[c].trim();if(!!p.length){var f;if(a===null&&(f=qX(p),f)){r=f[0],i=f[1],a=f[2];continue}if(n===null&&(f=TE(p,1,2,!0),f!==null)){n=f;continue}if(o===null&&(f=IX(p),f!==null)){o=f;continue}u===null&&(f=TE(p,2,4,!0),f!==null&&(u=f,u>=70&&u<=99?u+=1900:u>=0&&u<=69&&(u+=2e3)))}}if(!(n===null||o===null||u===null||a===null||n<1||n>31||u<1601||r>23||i>59||a>59))return new Date(Date.UTC(u,o,n,r,i,a))}}}function uO(e){var t=e.getUTCDate();t=t>=10?t:"0"+t;var r=e.getUTCHours();r=r>=10?r:"0"+r;var i=e.getUTCMinutes();i=i>=10?i:"0"+i;var a=e.getUTCSeconds();return a=a>=10?a:"0"+a,OX[e.getUTCDay()]+", "+t+" "+PX[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+r+":"+i+":"+a+" GMT"}function Of(e){return e==null?null:(e=e.trim().replace(/^\./,""),PE&&/[^\u0001-\u007f]/.test(e)&&(e=PE.toASCII(e)),e.toLowerCase())}function IE(e,t,r){if(e==null||t==null)return null;if(r!==!1&&(e=Of(e),t=Of(t)),e==t)return!0;if(SX.isIP(e))return!1;var i=e.indexOf(t);return!(i<=0||e.length!==t.length+i||e.substr(i-1,1)!==".")}function cO(e){if(!e||e.substr(0,1)!=="/")return"/";if(e==="/")return e;var t=e.lastIndexOf("/");return t===0?"/":e.slice(0,t)}function zX(e){for(var t=0;t<aO.length;t++){var r=e.indexOf(aO[t]);r!==-1&&(e=e.substr(0,r))}return e}function RX(e,t){e=zX(e);var r=e.indexOf("=");if(t)r===0&&(e=e.substr(1),r=e.indexOf("="));else if(r<=0)return;var i,a;if(r<=0?(i="",a=e.trim()):(i=e.substr(0,r).trim(),a=e.substr(r+1).trim()),!(rO.test(i)||rO.test(a))){var n=new Mt;return n.key=i,n.value=a,n}}function lO(e,t){(!t||typeof t!="object")&&(t={}),e=e.trim();var r=e.indexOf(";"),i=r===-1?e:e.substr(0,r),a=RX(i,!!t.loose);if(!!a){if(r===-1)return a;var n=e.slice(r+1).trim();if(n.length===0)return a;for(var o=n.split(";");o.length;){var u=o.shift().trim();if(u.length!==0){var c=u.indexOf("="),p,f;switch(c===-1?(p=u,f=null):(p=u.substr(0,c),f=u.substr(c+1)),p=p.trim().toLowerCase(),f&&(f=f.trim()),p){case"expires":if(f){var d=Bm(f);d&&(a.expires=d)}break;case"max-age":if(f&&/^-?[0-9]+$/.test(f)){var m=parseInt(f,10);a.setMaxAge(m)}break;case"domain":if(f){var h=f.trim().replace(/^\./,"");h&&(a.domain=h.toLowerCase())}break;case"path":a.path=f&&f[0]==="/"?f:null;break;case"secure":a.secure=!0;break;case"httponly":a.httpOnly=!0;break;default:a.extensions=a.extensions||[],a.extensions.push(u);break}}}return a}}function pO(e){var t;try{t=JSON.parse(e)}catch(r){return r}return t}function Ib(e){if(!e)return null;var t;if(typeof e=="string"){if(t=pO(e),t instanceof Error)return null}else t=e;for(var r=new Mt,i=0;i<Mt.serializableProperties.length;i++){var a=Mt.serializableProperties[i];t[a]===void 0||t[a]===Mt.prototype[a]||(a==="expires"||a==="creation"||a==="lastAccessed"?t[a]===null?r[a]=null:r[a]=t[a]=="Infinity"?"Infinity":new Date(t[a]):r[a]=t[a])}return r}function zE(e,t){var r=0,i=e.path?e.path.length:0,a=t.path?t.path.length:0;if(r=a-i,r!==0)return r;var n=e.creation?e.creation.getTime():OE,o=t.creation?t.creation.getTime():OE;return r=n-o,r!==0||(r=e.creationIndex-t.creationIndex),r}function BX(e){if(e==="/")return["/"];e.lastIndexOf("/")===e.length-1&&(e=e.substr(0,e.length-1));for(var t=[e];e.length>1;){var r=e.lastIndexOf("/");if(r===0)break;e=e.substr(0,r),t.push(e)}return t.push("/"),t}function fO(e){if(e instanceof Object)
`);var r=[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",t+e.resource];return r.join(`
`)}ks.exports.stringToSign=_O;function EO(e){return`GET
`+e.date+`
`+e.resource}ks.exports.queryStringToSign=EO;function aJ(e){for(var t=[],r=Object.keys(e),i=0,a=r.length;i<a;++i){var o=r[i],n=e[o],o=o.toLowerCase();o.indexOf("x-amz")===0&&t.push(o+":"+n)}return t.sort().join(`
`)}ks.exports.canonicalizeHeaders=aJ;function iJ(e){var t=eJ(e,!0),r=t.pathname,i=[];return Object.keys(t.query).forEach(function(a){if(!!~tJ.indexOf(a)){var n=t.query[a]==""?"":"="+encodeURIComponent(t.query[a]);i.push(a+n)}}),r+(i.length?"?"+i.sort().join("&"):"")}ks.exports.canonicalizeResource=iJ});var AO=$((Dhe,jO)=>{jO.exports=function(e){return new Lm(e)};function Lm(e){this.capacity=e|0,this.map=Object.create(null),this.list=new Lb}Lm.prototype.get=function(e){var t=this.map[e];if(t!=null)return this.used(t),t.val};Lm.prototype.set=function(e,t){var r=this.map[e];if(r!=null)r.val=t;else{if(this.capacity||this.prune(),!this.capacity)return!1;r=new nJ(e,t),this.map[e]=r,this.capacity--}return this.used(r),!0};Lm.prototype.used=function(e){this.list.moveToFront(e)};Lm.prototype.prune=function(){var e=this.list.pop();e!=null&&(delete this.map[e.key],this.capacity++)};function Lb(){this.firstNode=null,this.lastNode=null}Lb.prototype.moveToFront=function(e){this.firstNode!=e&&(this.remove(e),this.firstNode==null?(this.firstNode=e,this.lastNode=e,e.prev=null,e.next=null):(e.prev=null,e.next=this.firstNode,e.next.prev=e,this.firstNode=e))};Lb.prototype.pop=function(){var e=this.lastNode;return e!=null&&this.remove(e),e};Lb.prototype.remove=function(e){this.firstNode==e?this.firstNode=e.next:e.prev!=null&&(e.prev.next=e.next),this.lastNode==e?this.lastNode=e.prev:e.next!=null&&(e.next.prev=e.prev)};function nJ(e,t){this.key=e,this.val=t,this.prev=null,this.next=null}});var IO=$(qO=>{var FO=qO,oJ=require("url"),DO=require("querystring"),PO=require("crypto"),sJ=AO(),CO=sJ(1e3);function Nm(e,t,r){return PO.createHmac("sha256",e).update(t,"utf8").digest(r)}function UE(e,t){return PO.createHash("sha256").update(e,"utf8").digest(t)}function OO(e){return e.replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Nb(e){return OO(encodeURIComponent(e))}var TO={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function ei(e,t){typeof e=="string"&&(e=oJ.parse(e));var r=e.headers=e.headers||{},i=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||r.Host||r.host);this.request=e,this.credentials=t||this.defaultCredentials(),this.service=e.service||i[0]||"",this.region=e.region||i[1]||"us-east-1",this.service==="email"&&(this.service="ses"),!e.method&&e.body&&(e.method="POST"),!r.Host&&!r.host&&(r.Host=e.hostname||e.host||this.createHost(),e.port&&(r.Host+=":"+e.port)),!e.hostname&&!e.host&&(e.hostname=r.Host||r.host),this.isCodeCommitGit=this.service==="codecommit"&&e.method==="GIT"}ei.prototype.matchHost=function(e){var t=(e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/),r=(t||[]).slice(1,3);if(r[1]==="es"&&(r=r.reverse()),r[1]=="s3")r[0]="s3",r[1]="us-east-1";else for(var i=0;i<2;i++)if(/^s3-/.test(r[i])){r[1]=r[i].slice(3),r[0]="s3";break}return r};ei.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1"?!0:["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0};ei.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region,t=this.service==="ses"?"email":this.service;return t+e+".amazonaws.com"};ei.prototype.prepareRequest=function(){this.parsePath();var e=this.request,t=e.headers,r;e.signQuery?(this.parsedPath.query=r=this.parsedPath.query||{},this.credentials.sessionToken&&(r["X-Amz-Security-Token"]=this.credentials.sessionToken),this.service==="s3"&&!r["X-Amz-Expires"]&&(r["X-Amz-Expires"]=86400),r["X-Amz-Date"]?this.datetime=r["X-Amz-Date"]:r["X-Amz-Date"]=this.getDateTime(),r["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",r["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),r["X-Amz-SignedHeaders"]=this.signedHeaders()):(!e.doNotModifyHeaders&&!this.isCodeCommitGit&&(e.body&&!t["Content-Type"]&&!t["content-type"]&&(t["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),e.body&&!t["Content-Length"]&&!t["content-length"]&&(t["Content-Length"]=Buffer.byteLength(e.body)),this.
`)};ei.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=this.request.headers,i="",a=this.service!=="s3",n=this.service==="s3"||this.request.doNotEncodePath,o=this.service==="s3",u=this.service==="s3",c;if(this.service==="s3"&&this.request.signQuery?c="UNSIGNED-PAYLOAD":this.isCodeCommitGit?c="":c=r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||UE(this.request.body||"","hex"),t){var p=Object.keys(t).reduce(function(d,m){return m&&(d[Nb(m)]=Array.isArray(t[m])&&u?t[m][0]:t[m]),d},{}),f=[];Object.keys(p).sort().forEach(function(d){Array.isArray(p[d])?p[d].map(Nb).sort().forEach(function(m){f.push(d+"="+m)}):f.push(d+"="+Nb(p[d]))}),i=f.join("&")}return e!=="/"&&(a&&(e=e.replace(/\/{2,}/g,"/")),e=e.split("/").reduce(function(d,m){return a&&m===".."?d.pop():(!a||m!==".")&&(n&&(m=decodeURIComponent(m.replace(/\+/g," "))),d.push(Nb(m))),d},[]).join("/"),e[0]!=="/"&&(e="/"+e),o&&(e=e.replace(/%2F/g,"/"))),[this.request.method||"GET",e,i,this.canonicalHeaders()+`
`,this.signedHeaders(),c].join(`
`)};ei.prototype.canonicalHeaders=function(){var e=this.request.headers;function t(r){return r.toString().trim().replace(/\s+/g," ")}return Object.keys(e).filter(function(r){return TO[r.toLowerCase()]==null}).sort(function(r,i){return r.toLowerCase()<i.toLowerCase()?-1:1}).map(function(r){return r.toLowerCase()+":"+t(e[r])}).join(`
`)};ei.prototype.signedHeaders=function(){return Object.keys(this.request.headers).map(function(e){return e.toLowerCase()}).filter(function(e){return TO[e]==null}).sort().join(";")};ei.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")};ei.prototype.defaultCredentials=function(){var e=process.env;return{accessKeyId:e.AWS_ACCESS_KEY_ID||e.AWS_ACCESS_KEY,secretAccessKey:e.AWS_SECRET_ACCESS_KEY||e.AWS_SECRET_KEY,sessionToken:e.AWS_SESSION_TOKEN}};ei.prototype.parsePath=function(){var e=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(e)&&(e=encodeURI(decodeURI(e)));var t=e.indexOf("?"),r=null;t>=0&&(r=DO.parse(e.slice(t+1)),e=e.slice(0,t)),this.parsedPath={path:e,query:r}};ei.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(t[""]!=null&&delete t[""],e+"?"+OO(DO.stringify(t))):e};FO.RequestSigner=ei;FO.sign=function(e,t){return new ei(e,t).sign()}});var Or=$((Ohe,RO)=>{var Mb=require("assert"),uJ=require("stream").Stream,cJ=require("util"),lJ=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function $E(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yc(e,t,r,i,a){throw new Mb.AssertionError({message:cJ.format("%s (%s) is required",e,t),actual:a===void 0?typeof i:a(i),expected:t,operator:r||"===",stackStartFunction:yc.caller})}function HE(e){return Object.prototype.toString.call(e).slice(8,-1)}function If(){}var Mm={bool:{check:function(e){return typeof e=="boolean"}},func:{check:function(e){return typeof e=="function"}},string:{check:function(e){return typeof e=="string"}},object:{check:function(e){return typeof e=="object"&&e!==null}},number:{check:function(e){return typeof e=="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof uJ},operator:"instanceof",actual:HE},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:HE},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:HE},uuid:{check:function(e){return typeof e=="string"&&lJ.test(e)},operator:"isUUID"}};function zO(e){var t=Object.keys(Mm),r;return process.env.NODE_NDEBUG?r=If:r=function(i,a){i||yc(a,"true",i)},t.forEach(function(i){if(e){r[i]=If;return}var a=Mm[i];r[i]=function(n,o){a.check(n)||yc(o,i,a.operator,n,a.actual)}}),t.forEach(function(i){var a="optional"+$E(i);if(e){r[a]=If;return}var n=Mm[i];r[a]=function(o,u){o!=null&&(n.check(o)||yc(u,i,n.operator,o,n.actual))}}),t.forEach(function(i){var a="arrayOf"+$E(i);if(e){r[a]=If;return}var n=Mm[i],o="["+i+"]";r[a]=function(u,c){Array.isArray(u)||yc(c,o,n.operator,u,n.actual);var p;for(p=0;p<u.length;p++)n.check(u[p])||yc(c,o,n.operator,u,n.actual)}}),t.forEach(function(i){var a="optionalArrayOf"+$E(i);if(e){r[a]=If;return}var n=Mm[i],o="["+i+"]";r[a]=function(u,c){if(u!=null){Array.isArray(u)||yc(c,o,n.operator,u,n.actual);var p;for(p=0;p<u.length;p++)n.check(u[p])||yc(c,o,n.operator,u,n.actual)}}}),Object.keys(Mb).forEach(function(i){if(i==="AssertionError"){r[i]=Mb[i];return}if(e){r[i]=If;return}r[i]=Mb[i]}),r._setExports=zO,r}RO.exports=zO(process.env.NODE_NDEBUG)});var Qr=$((The,BO)=>{"use strict";var Ub=require("buffer"),zf=Ub.Buffer,po={},fo;for(fo in Ub)!Ub.hasOwnProperty(fo)||fo==="SlowBuffer"||fo==="Buffer"||(po[fo]=Ub[fo]);var Rf=po.Buffer={};for(fo in zf)!zf.hasOwnProperty(fo)||fo==="allocUnsafe"||fo==="allocUnsafeSlow"||(Rf[fo]=zf[fo]);po.Buffer.prototype=zf.prototype;(!Rf.from||Rf.from===Uint8Array.from)&&(Rf.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return zf(e,t,r)});Rf.alloc||(R
`,X);for(var F=0;F<te.length;){var ee=F+70;ee>te.length&&(ee=te.length),X+=G.write(te.slice(F,ee),X),G[X++]=10,F=ee}return X+=G.write("-----END "+ne+`-----
`,X),G.slice(0,X)}});var gu=$((lme,IT)=>{IT.exports={read:Nte,write:Mte};var Vo=Or(),Qf=_s(),Pte=require("crypto"),_c=Qr().Buffer,cme=Ai(),wS=ti(),Ote=ri(),Tte=mi(),kS=ax(),_S=Wf(),qte=Qm(),Ite=yu(),qT=Uo(),zte="1.2.840.113549.1.5.13",Rte="1.2.840.113549.1.5.12",ES={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"},Bte={};Object.keys(ES).forEach(function(e){Bte[ES[e]]=e});var SS={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"},Lte={};Object.keys(SS).forEach(function(e){Lte[SS[e]]=e});function Nte(e,t,r){var i=e;typeof e!="string"&&(Vo.buffer(e,"buf"),e=e.toString("ascii"));for(var a=e.trim().split(/[\r\n]+/g),n,o=-1;!n&&o<a.length;)n=a[++o].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);Vo.ok(n,"invalid PEM header");for(var u,c=a.length;!u&&c>0;)u=a[--c].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);Vo.ok(u,"invalid PEM footer"),Vo.equal(n[2],u[2]);var p=n[2].toLowerCase(),f;n[1]&&(Vo.equal(n[1],u[1],"PEM header and footer mismatch"),f=n[1].trim()),a=a.slice(o,c+1);for(var d={};a=a.slice(1),n=a[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!n;)d[n[1].toLowerCase()]=n[2];a=a.slice(0,-1).join(""),e=_c.from(a,"base64");var m,h,v;if(d["proc-type"]){var b=d["proc-type"].split(",");if(b[0]==="4"&&b[1]==="ENCRYPTED")if(typeof t.passphrase=="string"&&(t.passphrase=_c.from(t.passphrase,"utf-8")),_c.isBuffer(t.passphrase))b=d["dek-info"].split(","),Vo.ok(b.length===2),m=b[0].toLowerCase(),v=_c.from(b[1],"hex"),h=wS.opensslKeyDeriv(m,v,t.passphrase,1).key;else throw new qT.KeyEncryptedError(t.filename,"PEM")}if(f&&f.toLowerCase()==="encrypted"){var x=new Qf.BerReader(e),A;x.readSequence(),x.readSequence(),A=x.offset+x.length;var B=x.readOID();if(B!==zte)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+B);x.readSequence(),x.readSequence();var I=x.offset+x.length,W=x.readOID();if(W!==Rte)throw new Error("Unsupported PBES2 KDF: "+W);x.readSequence();var V=x.readString(Qf.Ber.OctetString,!0),Q=x.readInt(),G="sha1";if(x.offset<I){x.readSequence();var ne=x.readOID();if(G=SS[ne],G===void 0)throw new Error("Unsupported PBKDF2 hash: "+ne)}x._offset=I,x.readSequence();var te=x.readOID();if(m=ES[te],m===void 0)throw new Error("Unsupported PBES2 cipher: "+te);if(v=x.readString(Qf.Ber.OctetString,!0),x._offset=A,e=x.readString(Qf.Ber.OctetString,!0),typeof t.passphrase=="string"&&(t.passphrase=_c.from(t.passphrase,"utf-8")),!_c.isBuffer(t.passphrase))throw new qT.KeyEncryptedError(t.filename,"PEM");var L=wS.opensshCipherInfo(m);m=L.opensslName,h=wS.pbkdf2(G,V,Q,L.keySize,t.passphrase),f=void 0}if(m&&h&&v){var X=Pte.createDecipheriv(m,h,v),F,ee=[];for(X.once("error",function(ce){throw ce.toString().indexOf("bad decrypt")!==-1?new Error("Incorrect passphrase supplied, could not decrypt key"):ce}),X.write(e),X.end();(F=X.read())!==null;)ee.push(F);e=_c.concat(ee)}if(f&&f.toLowerCase()==="openssh")return qte.readSSHPrivate(p,e,t);if(f&&f.toLowerCase()==="ssh2")return Ite.readType(p,e,t);var ve=new Qf.BerReader(e);return ve.originalInput=i,ve.readSequence(),f?(r&&Vo.strictEqual(r,"pkcs1"),kS.readPkcs1(f,p,ve)):(r&&Vo.strictEqual(r,"pkcs8"),_S.readPkcs8(f,p,ve))}function Mte(e,t,r){Vo.object(e);var i={ecdsa:"EC",rsa:"RSA",dsa:"DSA",ed25519:"EdDSA"}[e.type],a,n=new Qf.BerWriter;if(Tte.isPrivateKey(e))r&&r==="pkcs8"?(a="PRIVATE KEY",_S.writePkcs8(n,e)):(r&&Vo.strictEqual(r,"pkcs1"),a=i+" PRIVATE KEY",kS.writePkcs1(n,e));else if(Ote.isKey(e))r&&r==="pkcs1"?(a=i+" PUBLIC KEY",kS.writePkcs1(n,e)):(r&&Vo.strictEqual(r,"pkcs8"),a="PUBLIC KEY",_S.writePkcs8(n,e));else throw new Error("key is not a Key or PrivateKey");var o=n.buffer.toString("base64"),u=o.length+o.length/64+18+16+a.length*2+10,c=_c.alloc(u),p=0;p+=c.write("-----BEGIN "+a+`-----
`,p);for(var f=0;f<o.length;){var d=f+64;d>o.length&&(d=o.length),p+=c.write(o.slice(f,d),p),c[p++]=10,f=d}return p+=c.write("-----END "+a+`-----
`,p),c.slice(0,p)}});var AS=$((hme,RT)=>{RT.exports={read:Hte,write:Kte};var Xm=Or(),jS=Qr().Buffer,Xf=yu(),pme=ti(),Ute=ri(),fme=mi(),dme=Qm(),$te=/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/,zT=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;function Hte(e,t){typeof e!="string"&&(Xm.buffer(e,"buf"),e=e.toString("ascii"));var r=e.trim().replace(/[\\\r]/g,""),i=r.match($te);i||(i=r.match(zT)),Xm.ok(i,"key must match regex");var a=Xf.algToKeyType(i[1]),n=jS.from(i[2],"base64"),o,u={};if(i[4])try{o=Xf.read(n)}catch{i=r.match(zT),Xm.ok(i,"key must match regex"),n=jS.from(i[2],"base64"),o=Xf.readInternal(u,"public",n)}else o=Xf.readInternal(u,"public",n);if(Xm.strictEqual(a,o.type),i[4]&&i[4].length>0)o.comment=i[4];else if(u.consumed){var c=i[2]+(i[3]?i[3]:""),p=Math.ceil(u.consumed/3)*4;c=c.slice(0,p-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+c.slice(p-2);var f=u.consumed%3;for(f>0&&c.slice(p-1,p)!=="="&&p--;c.slice(p,p+1)==="=";)p++;var d=c.slice(p);d=d.replace(/[\r\n]/g," ").replace(/^\s+/,""),d.match(/^[a-zA-Z0-9]/)&&(o.comment=d)}return o}function Kte(e,t){if(Xm.object(e),!Ute.isKey(e))throw new Error("Must be a public key");var r=[],i=Xf.keyTypeToAlg(e);r.push(i);var a=Xf.write(e);return r.push(a.toString("base64")),e.comment&&r.push(e.comment),jS.from(r.join(" "))}});var cx=$((vme,LT)=>{LT.exports={read:Vte,write:ere};var Wte=Or(),Ol=Qr().Buffer,CS=ri(),FS=mi(),Ta=ti(),mme=Uf(),gme=ex(),BT={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14},eo={};Object.keys(BT).forEach(function(e){eo[BT[e]]=e.toUpperCase()});function Vte(e,t){typeof e!="string"&&(Wte.buffer(e,"buf"),e=e.toString("ascii"));var r=e.split(`
`);if(r[0].match(/^Private-key-format\: v1/)){var i=r[1].split(" "),a=parseInt(i[1],10),n=i[2];if(!eo[a])throw new Error("Unsupported algorithm: "+n);return Zte(a,r.slice(2))}for(var o=0;r[o].match(/^\;/);)o++;if((r[o].match(/\. IN KEY /)||r[o].match(/\. IN DNSKEY /))&&r[o+1].length===0)return Gte(r[o]);throw new Error("Cannot parse dnssec key")}function Gte(e){var t=e.split(" "),r=parseInt(t[5],10);if(!eo[r])throw new Error("Unsupported algorithm: "+r);var i=t.slice(6,t.length).join(),a=Ol.from(i,"base64");if(eo[r].match(/^RSA-/)){var n=a.readUInt8(0);if(n!=3&&n!=1)throw new Error("Cannot parse dnssec key: unsupported exponent length");var o=a.slice(1,n+1);o=Ta.mpNormalize(o);var u=a.slice(1+n);u=Ta.mpNormalize(u);var c={type:"rsa",parts:[]};return c.parts.push({name:"e",data:o}),c.parts.push({name:"n",data:u}),new CS(c)}if(eo[r]==="ECDSA-P384-SHA384"||eo[r]==="ECDSA-P256-SHA256"){var p="nistp384",f=384;eo[r].match(/^ECDSA-P256-SHA256/)&&(p="nistp256",f=256);var d={type:"ecdsa",curve:p,size:f,parts:[{name:"curve",data:Ol.from(p)},{name:"Q",data:Ta.ecNormalize(a)}]};return new CS(d)}throw new Error("Unsupported algorithm: "+eo[r])}function Ec(e){return Ol.from(e.split(" ")[1],"base64")}function Yte(e){var t={};e.forEach(function(i){i.split(" ")[0]==="Modulus:"?t.n=Ec(i):i.split(" ")[0]==="PublicExponent:"?t.e=Ec(i):i.split(" ")[0]==="PrivateExponent:"?t.d=Ec(i):i.split(" ")[0]==="Prime1:"?t.p=Ec(i):i.split(" ")[0]==="Prime2:"?t.q=Ec(i):i.split(" ")[0]==="Exponent1:"?t.dmodp=Ec(i):i.split(" ")[0]==="Exponent2:"?t.dmodq=Ec(i):i.split(" ")[0]==="Coefficient:"&&(t.iqmp=Ec(i))});var r={type:"rsa",parts:[{name:"e",data:Ta.mpNormalize(t.e)},{name:"n",data:Ta.mpNormalize(t.n)},{name:"d",data:Ta.mpNormalize(t.d)},{name:"p",data:Ta.mpNormalize(t.p)},{name:"q",data:Ta.mpNormalize(t.q)},{name:"dmodp",data:Ta.mpNormalize(t.dmodp)},{name:"dmodq",data:Ta.mpNormalize(t.dmodq)},{name:"iqmp",data:Ta.mpNormalize(t.iqmp)}]};return new FS(r)}function Zte(e,t){if(eo[e].match(/^RSA-/))return Yte(t);if(eo[e]==="ECDSA-P384-SHA384"||eo[e]==="ECDSA-P256-SHA256"){var r=Ol.from(t[0].split(" ")[1],"base64"),i="nistp384",a=384;eo[e]==="ECDSA-P256-SHA256"&&(i="nistp256",a=256);var n=Ta.publicFromPrivateECDSA(i,r),o=n.part.Q.data,u={type:"ecdsa",curve:i,size:a,parts:[{name:"curve",data:Ol.from(i)},{name:"d",data:r},{name:"Q",data:o}]};return new FS(u)}throw new Error("Unsupported algorithm: "+eo[e])}function Jf(e){var t=e.getFullYear()+"",r=e.getMonth()+1,i=t+r+e.getUTCDate();return i+=""+e.getUTCHours()+e.getUTCMinutes(),i+=e.getUTCSeconds(),i}function Qte(e){if(!e||!e.hashAlgo||e.hashAlgo==="sha1")return"5 (RSASHA1)";if(e.hashAlgo==="sha256")return"8 (RSASHA256)";if(e.hashAlgo==="sha512")return"10 (RSASHA512)";throw new Error("Unknown or unsupported hash: "+e.hashAlgo)}function Xte(e,t){(!e.part.dmodp||!e.part.dmodq)&&Ta.addRSAMissing(e);var r="";r+=`Private-key-format: v1.3
`,r+="Algorithm: "+Qte(t)+`
`;var i=Ta.mpDenormalize(e.part.n.data);r+="Modulus: "+i.toString("base64")+`
`;var a=Ta.mpDenormalize(e.part.e.data);r+="PublicExponent: "+a.toString("base64")+`
`;var n=Ta.mpDenormalize(e.part.d.data);r+="PrivateExponent: "+n.toString("base64")+`
`;var o=Ta.mpDenormalize(e.part.p.data);r+="Prime1: "+o.toString("base64")+`
`;var u=Ta.mpDenormalize(e.part.q.data);r+="Prime2: "+u.toString("base64")+`
`;var c=Ta.mpDenormalize(e.part.dmodp.data);r+="Exponent1: "+c.toString("base64")+`
`;var p=Ta.mpDenormalize(e.part.dmodq.data);r+="Exponent2: "+p.toString("base64")+`
`;var f=Ta.mpDenormalize(e.part.iqmp.data);r+="Coefficient: "+f.toString("base64")+`
`;var d=new Date;return r+="Created: "+Jf(d)+`
`,r+="Publish: "+Jf(d)+`
`,r+="Activate: "+Jf(d)+`
`,Ol.from(r,"ascii")}function Jte(e,t){var r="";if(r+=`Private-key-format: v1.3
`,e.curve==="nistp256")r+=`Algorithm: 13 (ECDSAP256SHA256)
`;else if(e.curve==="nistp384")r+=`Algorithm: 14 (ECDSAP384SHA384)
`;else throw new Error("Unsupported curve");var i=e.part.d.data.toString("base64");r+="PrivateKey: "+i+`
`;var a=new Date;return r+="Created: "+Jf(a)+`
`,r+="Publish: "+Jf(a)+`
`,r+="Activate: "+Jf(a)+`
`,Ol.from(r,"ascii")}function ere(e,t){if(FS.isPrivateKey(e)){if(e.type==="rsa")return Xte(e,t);if(e.type==="ecdsa")return Jte(e,t);throw new Error("Unsupported algorithm: "+e.type)}else throw CS.isKey(e)?new Error('Format "dnssec" only supports writing private keys'):new Error("key is not a Key or PrivateKey")}});var DS=$((bme,MT)=>{MT.exports={read:rre,write:are};var px=Or(),NT=Qr().Buffer,fx=yu(),tre=ri(),yme=Uo();function rre(e,t){for(var r=e.toString("ascii").split(/[\r\n]+/),i=!1,a,n=0;n<r.length;)if(a=lx(r[n++]),a&&a[0].toLowerCase()==="putty-user-key-file-2"){i=!0;break}if(!i)throw new Error("No PuTTY format first line found");var o=a[1];a=lx(r[n++]),px.equal(a[0].toLowerCase(),"encryption"),a=lx(r[n++]),px.equal(a[0].toLowerCase(),"comment");var u=a[1];a=lx(r[n++]),px.equal(a[0].toLowerCase(),"public-lines");var c=parseInt(a[1],10);if(!isFinite(c)||c<0||c>r.length)throw new Error("Invalid public-lines count");var p=NT.from(r.slice(n,n+c).join(""),"base64"),f=fx.algToKeyType(o),d=fx.read(p);if(d.type!==f)throw new Error("Outer key algorithm mismatch");return d.comment=u,d}function lx(e){var t=e.indexOf(":");if(t===-1)return null;var r=e.slice(0,t);for(++t;e[t]===" ";)++t;var i=e.slice(t);return[r,i]}function are(e,t){if(px.object(e),!tre.isKey(e))throw new Error("Must be a public key");var r=fx.keyTypeToAlg(e),i=fx.write(e),a=e.comment||"",n=i.toString("base64"),o=ire(n,64);return o.unshift("Public-Lines: "+o.length),o.unshift("Comment: "+a),o.unshift("Encryption: none"),o.unshift("PuTTY-User-Key-File-2: "+r),NT.from(o.join(`
`)+`
`)}function ire(e,t){for(var r=[],i=0;i<e.length;)r.push(e.slice(i,i+64)),i+=64;return r}});var TS=$((_me,WT)=>{WT.exports={read:ure,write:fre};var nre=Or(),ore=Qr().Buffer,xme=ti(),wme=ri(),kme=mi(),UT=gu(),PS=AS(),sre=yu(),$T=cx(),HT=DS(),OS="Private-key-format: v1";function ure(e,t){if(typeof e=="string"){if(e.trim().match(/^[-]+[ ]*BEGIN/))return UT.read(e,t);if(e.match(/^\s*ssh-[a-z]/)||e.match(/^\s*ecdsa-/))return PS.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return HT.read(e,t);if(KT(e))return $T.read(e,t);e=ore.from(e,"binary")}else{if(nre.buffer(e),pre(e))return UT.read(e,t);if(lre(e))return PS.read(e,t);if(cre(e))return HT.read(e,t);if(KT(e))return $T.read(e,t)}if(e.readUInt32BE(0)<e.length)return sre.read(e,t);throw new Error("Failed to auto-detect format of key")}function cre(e){for(var t=0;t<e.length&&(e[t]===32||e[t]===10||e[t]===9);)++t;return t+22<=e.length&&e.slice(t,t+22).toString("ascii").toLowerCase()==="putty-user-key-file-2:"}function lre(e){for(var t=0;t<e.length&&(e[t]===32||e[t]===10||e[t]===9);)++t;return t+4<=e.length&&e.slice(t,t+4).toString("ascii")==="ssh-"||t+6<=e.length&&e.slice(t,t+6).toString("ascii")==="ecdsa-"}function pre(e){for(var t=0;t<e.length&&(e[t]===32||e[t]===10);)++t;if(e[t]!==45)return!1;for(;t<e.length&&e[t]===45;)++t;for(;t<e.length&&e[t]===32;)++t;return!(t+5>e.length||e.slice(t,t+5).toString("ascii")!=="BEGIN")}function KT(e){if(e.length<=OS.length)return!1;var t=e.slice(0,OS.length);if(t.toString("ascii")===OS)return!0;typeof e!="string"&&(e=e.toString("ascii"));for(var r=e.split(`
`),i=0;r[i].match(/^\;/);)i++;return!!(r[i].toString("ascii").match(/\. IN KEY /)||r[i].toString("ascii").match(/\. IN DNSKEY /))}function fre(e,t){throw new Error('"auto" format cannot be used for writing')}});var mi=$((Ame,QT)=>{QT.exports=ai;var Ci=Or(),qS=Qr().Buffer,dre=Ai(),VT=require("crypto"),Eme=ed(),hre=Ss(),IS=Uo(),mre=require("util"),Jm=ti(),ZT=ex(),gre=ZT.generateECDSA,vre=ZT.generateED25519,GT=fS(),YT=Mf(),zS=ri(),Sme=IS.InvalidAlgorithmError,yre=IS.KeyParseError,jme=IS.KeyEncryptedError,Gi={};Gi.auto=TS();Gi.pem=gu();Gi.pkcs1=ax();Gi.pkcs8=Wf();Gi.rfc4253=yu();Gi["ssh-private"]=Qm();Gi.openssh=Gi["ssh-private"];Gi.ssh=Gi["ssh-private"];Gi.dnssec=cx();function ai(e){Ci.object(e,"options"),zS.call(this,e),this._pubCache=void 0}mre.inherits(ai,zS);ai.formats=Gi;ai.prototype.toBuffer=function(e,t){return e===void 0&&(e="pkcs1"),Ci.string(e,"format"),Ci.object(Gi[e],"formats[format]"),Ci.optionalObject(t,"options"),Gi[e].write(this,t)};ai.prototype.hash=function(e,t){return this.toPublic().hash(e,t)};ai.prototype.fingerprint=function(e,t){return this.toPublic().fingerprint(e,t)};ai.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var e=dre.info[this.type],t=[],r=0;r<e.parts.length;++r){var i=e.parts[r];t.push(this.part[i])}return this._pubCache=new zS({type:this.type,source:this,parts:t}),this.comment&&(this._pubCache.comment=this.comment),this._pubCache};ai.prototype.derive=function(e){Ci.string(e,"type");var t,r,i;if(this.type==="ed25519"&&e==="curve25519")return t=this.part.k.data,t[0]===0&&(t=t.slice(1)),i=YT.box.keyPair.fromSecretKey(new Uint8Array(t)),r=qS.from(i.publicKey),new ai({type:"curve25519",parts:[{name:"A",data:Jm.mpNormalize(r)},{name:"k",data:Jm.mpNormalize(t)}]});if(this.type==="curve25519"&&e==="ed25519")return t=this.part.k.data,t[0]===0&&(t=t.slice(1)),i=YT.sign.keyPair.fromSeed(new Uint8Array(t)),r=qS.from(i.publicKey),new ai({type:"ed25519",parts:[{name:"A",data:Jm.mpNormalize(r)},{name:"k",data:Jm.mpNormalize(t)}]});throw new Error("Key derivation not supported from "+this.type+" to "+e)};ai.prototype.createVerify=function(e){return this.toPublic().createVerify(e)};ai.prototype.createSign=function(e){if(e===void 0&&(e=this.defaultHashAlgorithm()),Ci.string(e,"hash algorithm"),this.type==="ed25519"&&GT!==void 0)return new GT.Signer(this,e);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for signing or verification");var t,r,i;try{r=e.toUpperCase(),t=VT.createSign(r)}catch(c){i=c}(t===void 0||i instanceof Error&&i.message.match(/Unknown message digest/))&&(r="RSA-",r+=e.toUpperCase(),t=VT.createSign(r)),Ci.ok(t,"failed to create verifier");var a=t.sign.bind(t),n=this.toBuffer("pkcs1"),o=this.type,u=this.curve;return t.sign=function(){var c=a(n);return typeof c=="string"&&(c=qS.from(c,"binary")),c=hre.parse(c,o,"asn1"),c.hashAlgorithm=e,c.curve=u,c},t};ai.parse=function(e,t,r){typeof e!="string"&&Ci.buffer(e,"data"),t===void 0&&(t="auto"),Ci.string(t,"format"),typeof r=="string"&&(r={filename:r}),Ci.optionalObject(r,"options"),r===void 0&&(r={}),Ci.optionalString(r.filename,"options.filename"),r.filename===void 0&&(r.filename="(unnamed)"),Ci.object(Gi[t],"formats[format]");try{var i=Gi[t].read(e,r);return Ci.ok(i instanceof ai,"key is not a private key"),i.comment||(i.comment=r.filename),i}catch(a){throw a.name==="KeyEncryptedError"?a:new yre(r.filename,t,a)}};ai.isPrivateKey=function(e,t){return Jm.isCompatible(e,ai,t)};ai.generate=function(e,t){switch(t===void 0&&(t={}),Ci.object(t,"options"),e){case"ecdsa":return t.curve===void 0&&(t.curve="nistp256"),Ci.string(t.curve,"options.curve"),gre(t.curve);case"ed25519":return vre();default:throw new Error('Key generation not supported with key type "'+e+'"')}};ai.prototype._sshpkApiVersion=[1,6];ai._oldVersionDetect=function(e){return Ci.func(e.toPublic),Ci.func(e.createSign),e.derive?[1,3]:e.defaultHashAlgorithm?[1,2]:e.formats.auto?[1,1]:[1,0]}});var td=$((qme,t9)=>{t9.exports=ha;var Go=Or(),Cme=Ai(),Fme=require("crypto"),Dme=ed(),Pme=Ss(),Ome=Uo(),Tme=require("util"),bre=ti(),Yi=_s(),J
`,u);for(var c=0;c<a.length;){var p=c+64;p>a.length&&(p=a.length),u+=o.write(a.slice(c,p),u),o[u++]=10,c=p}return u+=o.write("-----END "+i+`-----
`,u),o.slice(0,u)}});var rd=$((ege,w9)=>{w9.exports=ba;var Tr=Or(),b9=Qr().Buffer,Jre=Ai(),eae=require("crypto"),tae=ed(),Xme=Ss(),x9=Uo(),Jme=require("util"),Rn=ti(),yx=ri(),bx=mi(),tg=td(),Zo={};Zo.openssh=c9();Zo.x509=MS();Zo.pem=y9();var rae=x9.CertificateParseError,aae=x9.InvalidAlgorithmError;function ba(e){Tr.object(e,"options"),Tr.arrayOfObject(e.subjects,"options.subjects"),Rn.assertCompatible(e.subjects[0],tg,[1,0],"options.subjects"),Rn.assertCompatible(e.subjectKey,yx,[1,0],"options.subjectKey"),Rn.assertCompatible(e.issuer,tg,[1,0],"options.issuer"),e.issuerKey!==void 0&&Rn.assertCompatible(e.issuerKey,yx,[1,0],"options.issuerKey"),Tr.object(e.signatures,"options.signatures"),Tr.buffer(e.serial,"options.serial"),Tr.date(e.validFrom,"options.validFrom"),Tr.date(e.validUntil,"optons.validUntil"),Tr.optionalArrayOfString(e.purposes,"options.purposes"),this._hashCache={},this.subjects=e.subjects,this.issuer=e.issuer,this.subjectKey=e.subjectKey,this.issuerKey=e.issuerKey,this.signatures=e.signatures,this.serial=e.serial,this.validFrom=e.validFrom,this.validUntil=e.validUntil,this.purposes=e.purposes}ba.formats=Zo;ba.prototype.toBuffer=function(e,t){return e===void 0&&(e="x509"),Tr.string(e,"format"),Tr.object(Zo[e],"formats[format]"),Tr.optionalObject(t,"options"),Zo[e].write(this,t)};ba.prototype.toString=function(e,t){return e===void 0&&(e="pem"),this.toBuffer(e,t).toString()};ba.prototype.fingerprint=function(e){e===void 0&&(e="sha256"),Tr.string(e,"algorithm");var t={type:"certificate",hash:this.hash(e),algorithm:e};return new tae(t)};ba.prototype.hash=function(e){if(Tr.string(e,"algorithm"),e=e.toLowerCase(),Jre.hashAlgs[e]===void 0)throw new aae(e);if(this._hashCache[e])return this._hashCache[e];var t=eae.createHash(e).update(this.toBuffer("x509")).digest();return this._hashCache[e]=t,t};ba.prototype.isExpired=function(e){return e===void 0&&(e=new Date),!(e.getTime()>=this.validFrom.getTime()&&e.getTime()<this.validUntil.getTime())};ba.prototype.isSignedBy=function(e){return Rn.assertCompatible(e,ba,[1,0],"issuer"),!this.issuer.equals(e.subjects[0])||this.issuer.purposes&&this.issuer.purposes.length>0&&this.issuer.purposes.indexOf("ca")===-1?!1:this.isSignedByKey(e.subjectKey)};ba.prototype.getExtension=function(e){Tr.string(e,"keyOrOid");var t=this.getExtensions().filter(function(r){return r.format==="x509"?r.oid===e:r.format==="openssh"?r.name===e:!1})[0];return t};ba.prototype.getExtensions=function(){var e=[],t=this.signatures.x509;t&&t.extras&&t.extras.exts&&t.extras.exts.forEach(function(i){i.format="x509",e.push(i)});var r=this.signatures.openssh;return r&&r.exts&&r.exts.forEach(function(i){i.format="openssh",e.push(i)}),e};ba.prototype.isSignedByKey=function(e){if(Rn.assertCompatible(e,yx,[1,2],"issuerKey"),this.issuerKey!==void 0)return this.issuerKey.fingerprint("sha512").matches(e);var t=Object.keys(this.signatures)[0],r=Zo[t].verify(this,e);return r&&(this.issuerKey=e),r};ba.prototype.signWith=function(e){Rn.assertCompatible(e,bx,[1,2],"key");for(var t=Object.keys(Zo),r=!1,i=0;i<t.length;++i)if(t[i]!=="pem"){var a=Zo[t[i]].sign(this,e);a===!0&&(r=!0)}if(!r)throw new Error("Failed to sign the certificate for any available certificate formats")};ba.createSelfSigned=function(e,t,r){var i;Array.isArray(e)?i=e:i=[e],Tr.arrayOfObject(i),i.forEach(function(m){Rn.assertCompatible(m,tg,[1,0],"subject")}),Rn.assertCompatible(t,bx,[1,2],"private key"),Tr.optionalObject(r,"options"),r===void 0&&(r={}),Tr.optionalObject(r.validFrom,"options.validFrom"),Tr.optionalObject(r.validUntil,"options.validUntil");var a=r.validFrom,n=r.validUntil;if(a===void 0&&(a=new Date),n===void 0){Tr.optionalNumber(r.lifetime,"options.lifetime");var o=r.lifetime;o===void 0&&(o=10*365*24*3600),n=new Date,n.setTime(n.getTime()+o*1e3)}Tr.optionalBuffer(r.serial,"options.serial");var u=r.serial;u===void 0&&(u=b9.from("0000000000000001","hex"));var c=r.purposes;if(c===void 0&&(c=[]),c.indexOf("signature")===-1&&c.push("signature"),c.indexOf("ca")===-1&&c.push("ca"),c.indexOf("crl")===-1&&c.push("crl"),c.length<=3){var p=i.filter(fun
`)}var b;if(t.headers.date||t.headers["x-date"]){t.headers["x-date"]?b=new Date(t.headers["x-date"]):b=new Date(t.headers.date);var x=new Date,A=Math.abs(x.getTime()-b.getTime());if(A>r.clockSkew*1e3)throw new ZS("clock skew of "+A/1e3+"s was greater than "+r.clockSkew+"s")}if(r.headers.forEach(function(B){if(p.params.headers.indexOf(B.toLowerCase())<0)throw new og(B+" was not a signed header")}),r.algorithms&&r.algorithms.indexOf(p.params.algorithm)===-1)throw new Ex(p.params.algorithm+" is not a supported algorithm");return p.algorithm=p.params.algorithm.toUpperCase(),p.keyId=p.params.keyId,p}}});var ej=$(Sx=>{var mae=require("assert"),gae=require("util");Sx.sprintf=JS;Sx.printf=vae;Sx.fprintf=K9;function JS(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(t),i=Array.prototype.slice.call(arguments,1),a,n,o,u,c,p,f,d,m,h="",v=1;for(mae.equal("string",typeof e);(m=r.exec(e))!==null;){if(h+=m[1],e=e.substring(m[0].length),a=m[2]||"",n=m[3]||0,o=m[4]||"",u=m[6],c=!1,f=!1,p=" ",u=="%"){h+="%";continue}if(i.length===0)throw new Error("too few args to sprintf");if(d=i.shift(),v++,a.match(/[\' #]/))throw new Error("unsupported flags: "+a);if(o.length>0)throw new Error("non-zero precision not supported");switch(a.match(/-/)&&(c=!0),a.match(/0/)&&(p="0"),a.match(/\+/)&&(f=!0),u){case"s":if(d==null)throw new Error("argument "+v+": attempted to print undefined or null as a string");h+=XS(p,n,c,d.toString());break;case"d":d=Math.floor(d);case"f":f=f&&d>0?"+":"",h+=f+XS(p,n,c,d.toString());break;case"x":h+=XS(p,n,c,d.toString(16));break;case"j":n===0&&(n=10),h+=gae.inspect(d,!1,n);break;case"r":h+=W9(d);break;default:throw new Error("unsupported conversion: "+u)}}return h+=e,h}function vae(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout),K9.apply(null,e)}function K9(e){var t=Array.prototype.slice.call(arguments,1);return e.write(JS.apply(this,t))}function XS(e,t,r,i){for(var a=i;a.length<t;)r?a+=e:a=e+a;return a}function W9(e){var t;if(!(e instanceof Error))throw new Error(JS("invalid type for %%r: %j",e));if(t="EXCEPTION: "+e.constructor.name+": "+e.stack,e.cause&&typeof e.cause=="function"){var r=e.cause();r&&(t+=`
Caused by: `+W9(r))}return t}});var V9=$(Xi=>{function yae(e){return Array.isArray?Array.isArray(e):jx(e)==="[object Array]"}Xi.isArray=yae;function bae(e){return typeof e=="boolean"}Xi.isBoolean=bae;function xae(e){return e===null}Xi.isNull=xae;function wae(e){return e==null}Xi.isNullOrUndefined=wae;function kae(e){return typeof e=="number"}Xi.isNumber=kae;function _ae(e){return typeof e=="string"}Xi.isString=_ae;function Eae(e){return typeof e=="symbol"}Xi.isSymbol=Eae;function Sae(e){return e===void 0}Xi.isUndefined=Sae;function jae(e){return jx(e)==="[object RegExp]"}Xi.isRegExp=jae;function Aae(e){return typeof e=="object"&&e!==null}Xi.isObject=Aae;function Cae(e){return jx(e)==="[object Date]"}Xi.isDate=Cae;function Fae(e){return jx(e)==="[object Error]"||e instanceof Error}Xi.isError=Fae;function Dae(e){return typeof e=="function"}Xi.isFunction=Dae;function Pae(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Xi.isPrimitive=Pae;Xi.isBuffer=Buffer.isBuffer;function jx(e){return Object.prototype.toString.call(e)}});var Y9=$((lge,G9)=>{var Ha=Or(),Ax=require("util"),Oae=ej(),Qo=V9().isError,Tae=Oae.sprintf;G9.exports=wr;wr.VError=wr;wr.SError=cg;wr.WError=jc;wr.MultiError=sd;function tj(e){var t,r,i,a,n;if(Ha.object(e,"args"),Ha.bool(e.strict,"args.strict"),Ha.array(e.argv,"args.argv"),t=e.argv,t.length===0)r={},i=[];else if(Qo(t[0]))r={cause:t[0]},i=t.slice(1);else if(typeof t[0]=="object"){r={};for(n in t[0])r[n]=t[0][n];i=t.slice(1)}else Ha.string(t[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},i=t;return Ha.object(r),!r.strict&&!e.strict&&(i=i.map(function(o){return o===null?"null":o===void 0?"undefined":o})),i.length===0?a="":a=Tae.apply(null,i),{options:r,shortmessage:a}}function wr(){var e,t,r,i,a,n,o;if(e=Array.prototype.slice.call(arguments,0),!(this instanceof wr))return t=Object.create(wr.prototype),wr.apply(t,arguments),t;if(r=tj({argv:e,strict:!1}),r.options.name&&(Ha.string(r.options.name,`error's "name" must be a string`),this.name=r.options.name),this.jse_shortmsg=r.shortmessage,n=r.shortmessage,i=r.options.cause,i&&(Ha.ok(Qo(i),"cause is not an Error"),this.jse_cause=i,r.options.skipCauseMessage||(n+=": "+i.message)),this.jse_info={},r.options.info)for(o in r.options.info)this.jse_info[o]=r.options.info[o];return this.message=n,Error.call(this,n),Error.captureStackTrace&&(a=r.options.constructorOpt||this.constructor,Error.captureStackTrace(this,a)),this}Ax.inherits(wr,Error);wr.prototype.name="VError";wr.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),t};wr.prototype.cause=function(){var t=wr.cause(this);return t===null?void 0:t};wr.cause=function(e){return Ha.ok(Qo(e),"err must be an Error"),Qo(e.jse_cause)?e.jse_cause:null};wr.info=function(e){var t,r,i;if(Ha.ok(Qo(e),"err must be an Error"),r=wr.cause(e),r!==null?t=wr.info(r):t={},typeof e.jse_info=="object"&&e.jse_info!==null)for(i in e.jse_info)t[i]=e.jse_info[i];return t};wr.findCauseByName=function(e,t){var r;for(Ha.ok(Qo(e),"err must be an Error"),Ha.string(t,"name"),Ha.ok(t.length>0,"name cannot be empty"),r=e;r!==null;r=wr.cause(r))if(Ha.ok(Qo(r)),r.name==t)return r;return null};wr.hasCauseWithName=function(e,t){return wr.findCauseByName(e,t)!==null};wr.fullStack=function(e){Ha.ok(Qo(e),"err must be an Error");var t=wr.cause(e);return t?e.stack+`
caused by: `+wr.fullStack(t):e.stack};wr.errorFromList=function(e){return Ha.arrayOfObject(e,"errors"),e.length===0?null:(e.forEach(function(t){Ha.ok(Qo(t))}),e.length==1?e[0]:new sd(e))};wr.errorForEach=function(e,t){Ha.ok(Qo(e),"err must be an Error"),Ha.func(t,"func"),e instanceof sd?e.errors().forEach(function(i){t(i)}):t(e)};function cg(){var e,t,r,i;return e=Array.prototype.slice.call(arguments,0),this instanceof cg?(r=tj({argv:e,strict:!0}),i=r.options,wr.call(this,i,"%s",r.shortmessage),this):(t=Object.create(cg.prototype),cg.apply(t,arguments),t)}Ax.inherits(cg,wr);function sd(e){Ha.array(e,"list of errors"),Ha.ok(e.length>0,"must be at least one error"),this.ase_errors=e,wr.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}Ax.inherits(sd,wr);sd.prototype.name="MultiError";sd.prototype.errors=function(){return this.ase_errors.slice(0)};function jc(){var e,t,r,i;return e=Array.prototype.slice.call(arguments,0),this instanceof jc?(r=tj({argv:e,strict:!1}),i=r.options,i.skipCauseMessage=!0,wr.call(this,i,"%s",r.shortmessage),this):(t=Object.create(jc.prototype),jc.apply(t,e),t)}Ax.inherits(jc,wr);jc.prototype.name="WError";jc.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(t+="; caused by "+this.jse_cause.toString()),t};jc.prototype.cause=function(t){return Qo(t)&&(this.jse_cause=t),this.jse_cause}});var Q9=$((Z9,Cx)=>{(function(e,t){typeof define=="function"&&define.amd?define([],function(){return t()}):typeof Cx=="object"&&Cx.exports?Cx.exports=t():e.jsonSchema=t()})(Z9,function(){var e=r;e.Integer={type:"integer"};var t={String,Boolean,Number,Object,Array,Date};e.validate=r;function r(i,a){return r(i,a,{changing:!1})}e.checkPropertyChange=function(i,a,n){return r(i,a,{changing:n||"property"})};var r=e._validate=function(i,a,n){n||(n={});var o=n.changing;function u(d){return d.type||t[d.name]==d&&d.name.toLowerCase()}var c=[];function p(d,m,h,v){var b;h+=h?typeof v=="number"?"["+v+"]":typeof v>"u"?"":"."+v:v;function x(G){c.push({property:h,message:G})}if((typeof m!="object"||m instanceof Array)&&(h||typeof m!="function")&&!(m&&u(m)))return typeof m=="function"?d instanceof m||x("is not an instance of the class/constructor "+m.name):m&&x("Invalid schema/property definition "+m),null;o&&m.readonly&&x("is a readonly field, it can not be changed"),m.extends&&p(d,m.extends,h,v);function A(G,ne){if(G){if(typeof G=="string"&&G!="any"&&(G=="null"?ne!==null:typeof ne!=G)&&!(ne instanceof Array&&G=="array")&&!(ne instanceof Date&&G=="date")&&!(G=="integer"&&ne%1===0))return[{property:h,message:ne+" - "+typeof ne+" value found, but a "+G+" is required"}];if(G instanceof Array){for(var te=[],L=0;L<G.length&&(te=A(G[L],ne)).length;L++);if(te.length)return te}else if(typeof G=="object"){var X=c;c=[],p(ne,G,h);var F=c;return c=X,F}}return[]}if(d===void 0)m.required&&x("is missing and it is required");else if(c=c.concat(A(u(m),d)),m.disallow&&!A(m.disallow,d).length&&x(" disallowed value was matched"),d!==null){if(d instanceof Array){if(m.items){var B=m.items instanceof Array,I=m.items;for(v=0,b=d.length;v<b;v+=1)B&&(I=m.items[v]),n.coerce&&(d[v]=n.coerce(d[v],I)),c.concat(p(d[v],I,h,v))}m.minItems&&d.length<m.minItems&&x("There must be a minimum of "+m.minItems+" in the array"),m.maxItems&&d.length>m.maxItems&&x("There must be a maximum of "+m.maxItems+" in the array")}else(m.properties||m.additionalProperties)&&c.concat(f(d,m.properties,h,m.additionalProperties));if(m.pattern&&typeof d=="string"&&!d.match(m.pattern)&&x("does not match the regex pattern "+m.pattern),m.maxLength&&typeof d=="string"&&d.length>m.maxLength&&x("may only be "+m.maxLength+" characters long"),m.minLength&&typeof d=="string"&&d.length<m.minLength&&x("must be at least "+m.minLength+" characters long"),typeof m.minimum<"u"&&typeof d==typeof m.minimum&&m.minimum>d&&x("must have a minimum value of "+m.minimum),typeof m.maximum<"u"&&typeof d==typeof m.maximum&&m.maxim
`))},e})});var uq=$(Wr=>{var qr=Or(),pge=require("util"),J9=ej(),qae=Y9(),Iae=Q9();Wr.deepCopy=rj;Wr.deepEqual=eq;Wr.isEmpty=zae;Wr.hasKey=aj;Wr.forEachKey=Rae;Wr.pluck=Bae;Wr.flattenObject=aq;Wr.flattenIter=Lae;Wr.validateJsonObject=iq;Wr.validateJsonObjectJS=iq;Wr.randElt=gie;Wr.extraProperties=wie;Wr.mergeObjects=sq;Wr.startsWith=Nae;Wr.endsWith=Mae;Wr.parseInteger=die;Wr.iso8601=Uae;Wr.rfc1123=Kae;Wr.parseDateTime=Wae;Wr.hrtimediff=nq;Wr.hrtimeDiff=nq;Wr.hrtimeAccum=oq;Wr.hrtimeAdd=xie;Wr.hrtimeNanosec=vie;Wr.hrtimeMicrosec=yie;Wr.hrtimeMillisec=bie;function rj(e){var t,r,i="__deepCopy";if(e&&e[i])throw new Error("attempted deep copy of cyclic object");if(e&&e.constructor==Object){t={},e[i]=!0;for(r in e)r!=i&&(t[r]=rj(e[r]));return delete e[i],t}if(e&&e.constructor==Array){for(t=[],e[i]=!0,r=0;r<e.length;r++)t.push(rj(e[r]));return delete e[i],t}return e}function eq(e,t){if(typeof e!=typeof t)return!1;if(e===null||t===null||typeof e!="object")return e===t;if(e.constructor!=t.constructor)return!1;var r;for(r in e)if(!t.hasOwnProperty(r)||!eq(e[r],t[r]))return!1;for(r in t)if(!e.hasOwnProperty(r))return!1;return!0}function zae(e){var t;for(t in e)return!1;return!0}function aj(e,t){return qr.equal(typeof t,"string"),Object.prototype.hasOwnProperty.call(e,t)}function Rae(e,t){for(var r in e)aj(e,r)&&t(r,e[r])}function Bae(e,t){return qr.equal(typeof t,"string"),tq(e,t)}function tq(e,t){if(!(e===null||typeof e!="object")){if(e.hasOwnProperty(t))return e[t];var r=t.indexOf(".");if(r!=-1){var i=t.substr(0,r);if(!!e.hasOwnProperty(i))return tq(e[i],t.substr(r+1))}}}function Lae(e,t,r){rq(e,t,[],r)}function rq(e,t,r,i){var a,n;if(t===0){a=r.slice(0),a.push(e),i(a);return}qr.ok(e!==null),qr.equal(typeof e,"object"),qr.equal(typeof t,"number"),qr.ok(t>=0);for(n in e)a=r.slice(0),a.push(n),rq(e[n],t-1,a,i)}function aq(e,t){if(t===0)return[e];qr.ok(e!==null),qr.equal(typeof e,"object"),qr.equal(typeof t,"number"),qr.ok(t>=0);var r=[],i;for(i in e)aq(e[i],t-1).forEach(function(a){r.push([i].concat(a))});return r}function Nae(e,t){return e.substr(0,t.length)==t}function Mae(e,t){return e.substr(e.length-t.length,t.length)==t}function Uae(e){return typeof e=="number"&&(e=new Date(e)),qr.ok(e.constructor===Date),J9.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}var $ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hae=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function Kae(e){return J9.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",Hae[e.getUTCDay()],e.getUTCDate(),$ae[e.getUTCMonth()],e.getUTCFullYear(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Wae(e){var t=+e;return isNaN(t)?new Date(e):new Date(t)}var Vae=Number.MAX_SAFE_INTEGER||9007199254740991,Gae=Number.MIN_SAFE_INTEGER||-9007199254740991,Yae={base:10,allowSign:!0,allowPrefix:!1,allowTrailing:!1,allowImprecise:!1,trimWhitespace:!1,leadingZeroIsOctal:!1},Zae=48,Qae=57,Xae=65,Jae=66,eie=79,tie=84,rie=88,aie=90,iie=97,nie=98,oie=111,sie=116,uie=120,cie=122,lie=48,pie=55,fie=87;function die(e,t){qr.string(e,"str"),qr.optionalObject(t,"options");var r=!1,i=Yae;t&&(r=aj(t,"base"),i=sq(i,t),qr.number(i.base,"options.base"),qr.ok(i.base>=2,"options.base >= 2"),qr.ok(i.base<=36,"options.base <= 36"),qr.bool(i.allowSign,"options.allowSign"),qr.bool(i.allowPrefix,"options.allowPrefix"),qr.bool(i.allowTrailing,"options.allowTrailing"),qr.bool(i.allowImprecise,"options.allowImprecise"),qr.bool(i.trimWhitespace,"options.trimWhitespace"),qr.bool(i.leadingZeroIsOctal,"options.leadingZeroIsOctal"),i.leadingZeroIsOctal&&qr.ok(!r,'"base" and "leadingZeroIsOctal" are mutually exclusive'));var a,n=-1,o=i.base,u,c=1,p=0,f=0,d=e.length;if(i.trimWhitespace)for(;f<d&&X9(e.charCodeAt(f));)++f;for(i.allowSign&&(e[f]==="-"?(f+=1,c=-1):e[f]==="+"&&(f+=1)),e[f]==="0"&&(i.allowPrefix&&(n=mie(e.charCodeAt(f+1)),n!==-1&&(!r||n===o)&&(o=n,f+=2)),n===-1&&i.leadingZeroIsOctal&&(o=8)),u=f;f<d&&(a=hie(e.charCodeAt(f)),a!==-1&&a<o);++f)p*=o,p
`+r),this.rs_signer.update(r)}return t};ud.prototype.writeDateHeader=function(){return this.writeHeader("date",pq.rfc1123(new Date))};ud.prototype.writeTarget=function(e,t){ma.string(e,"method"),ma.string(t,"path"),e=e.toLowerCase(),this.writeHeader("(request-target)",e+" "+t)};ud.prototype.sign=function(e){if(ma.func(e,"callback"),this.rs_headers.length<1)throw new Error("At least one header must be signed");var t,r;if(this.rs_signFunc){var i=this.rs_lines.join(`
`),a=this;this.rs_signFunc(i,function(u,c){if(u){e(u);return}try{ma.object(c,"signature"),ma.string(c.keyId,"signature.keyId"),ma.string(c.algorithm,"signature.algorithm"),ma.string(c.signature,"signature.signature"),t=oj(c.algorithm),r=ij(nj,c.keyId,c.algorithm,a.rs_headers.join(" "),c.signature)}catch(p){e(p);return}e(null,r)})}else{try{var n=this.rs_signer.sign()}catch(u){e(u);return}t=(this.rs_alg[0]||this.rs_key.type)+"-"+n.hashAlgorithm;var o=n.toString();r=ij(nj,this.rs_keyId,t,this.rs_headers.join(" "),o),e(null,r)}};dq.exports={isSigner:function(e){return typeof e=="object"&&e instanceof ud},createSigner:function(t){return new ud(t)},signRequest:function(t,r){ma.object(t,"request"),ma.object(r,"options"),ma.optionalString(r.algorithm,"options.algorithm"),ma.string(r.keyId,"options.keyId"),ma.optionalArrayOfString(r.headers,"options.headers"),ma.optionalString(r.httpVersion,"options.httpVersion"),t.getHeader("Date")||t.setHeader("Date",pq.rfc1123(new Date)),r.headers||(r.headers=["date"]),r.httpVersion||(r.httpVersion="1.1");var i=[];r.algorithm&&(r.algorithm=r.algorithm.toLowerCase(),i=oj(r.algorithm));var a,n="";for(a=0;a<r.headers.length;a++){if(typeof r.headers[a]!="string")throw new TypeError("options.headers must be an array of Strings");var o=r.headers[a].toLowerCase();if(o==="request-line")if(!r.strict)n+=t.method+" "+t.path+" HTTP/"+r.httpVersion;else throw new uj("request-line is not a valid header with strict parsing enabled.");else if(o==="(request-target)")n+="(request-target): "+t.method.toLowerCase()+" "+t.path;else{var u=t.getHeader(o);if(u===void 0||u==="")throw new sj(o+" was not in the request");n+=o+": "+u}a+1<r.headers.length&&(n+=`
`)}t.hasOwnProperty("_stringToSign")&&(t._stringToSign=n);var c;if(i[0]==="hmac"){if(typeof r.key!="string"&&!Buffer.isBuffer(r.key))throw new TypeError("options.key must be a string or Buffer");var p=cq.createHmac(i[1].toUpperCase(),r.key);p.update(n),c=p.digest("base64")}else{var f=r.key;if((typeof f=="string"||Buffer.isBuffer(f))&&(f=Fx.parsePrivateKey(r.key)),ma.ok(Fx.PrivateKey.isPrivateKey(f,[1,2]),"options.key must be a sshpk.PrivateKey"),!fq[f.type])throw new lg(f.type.toUpperCase()+" type keys are not supported");if(i[0]!==void 0&&f.type!==i[0])throw new lg("options.key must be a "+i[0].toUpperCase()+" key, was given a "+f.type.toUpperCase()+" key instead");var d=f.createSign(i[1]);d.update(n);var m=d.sign();if(!kie[m.hashAlgorithm])throw new lg(m.hashAlgorithm.toUpperCase()+" is not a supported hash algorithm");r.algorithm=f.type+"-"+m.hashAlgorithm,c=m.toString(),ma.notStrictEqual(c,"","empty signature produced")}var h=r.authorizationHeaderName||"Authorization";return t.setHeader(h,ij(nj,r.keyId,r.algorithm,r.headers.join(" "),c)),!0}}});var yq=$((bge,vq)=>{var Px=Or(),cj=require("crypto"),mq=kx(),fg=ig(),mge=fg.HASH_ALGOS,gge=fg.PK_ALGOS,vge=fg.InvalidAlgorithmError,yge=fg.HttpSignatureError,gq=fg.validateAlgorithm;vq.exports={verifySignature:function(t,r){Px.object(t,"parsedSignature"),(typeof r=="string"||Buffer.isBuffer(r))&&(r=mq.parseKey(r)),Px.ok(mq.Key.isKey(r,[1,1]),"pubkey must be a sshpk.Key");var i=gq(t.algorithm);if(i[0]==="hmac"||i[0]!==r.type)return!1;var a=r.createVerify(i[1]);return a.update(t.signingString),a.verify(t.params.signature,"base64")},verifyHMAC:function(t,r){Px.object(t,"parsedHMAC"),Px.string(r,"secret");var i=gq(t.algorithm);if(i[0]!=="hmac")return!1;var a=i[1].toUpperCase(),n=cj.createHmac(a,r);n.update(t.signingString);var o=cj.createHmac(a,r);o.update(n.digest()),o=o.digest();var u=cj.createHmac(a,r);return u.update(new Buffer(t.params.signature,"base64")),u=u.digest(),typeof o=="string"?o===u:Buffer.isBuffer(o)&&!o.equals?o.toString("binary")===u.toString("binary"):o.equals(u)}}});var wq=$((xge,xq)=>{var bq=H9(),Ox=hq(),lj=yq(),pj=ig();xq.exports={parse:bq.parseRequest,parseRequest:bq.parseRequest,sign:Ox.signRequest,signRequest:Ox.signRequest,createSigner:Ox.createSigner,isSigner:Ox.isSigner,sshKeyToPEM:pj.sshKeyToPEM,sshKeyFingerprint:pj.fingerprint,pemToRsaSSHKey:pj.pemToRsaSSHKey,verify:lj.verifySignature,verifySignature:lj.verifySignature,verifyHMAC:lj.verifyHMAC}});var Tx=$((wge,fj)=>{function Il(e){this.dict=e||{}}Il.prototype.set=function(e,t,r){if(typeof e=="object")for(var i in e)this.set(i,e[i],t);else{typeof r>"u"&&(r=!0);var a=this.has(e);return!r&&a?this.dict[a]=this.dict[a]+","+t:this.dict[a||e]=t,a}};Il.prototype.has=function(r){for(var t=Object.keys(this.dict),r=r.toLowerCase(),i=0;i<t.length;i++)if(t[i].toLowerCase()===r)return t[i];return!1};Il.prototype.get=function(e){e=e.toLowerCase();var t,r,i=this.dict;return Object.keys(i).forEach(function(a){r=a.toLowerCase(),e===r&&(t=i[a])}),t};Il.prototype.swap=function(e){var t=this.has(e);if(t!==e){if(!t)throw new Error('There is no header than matches "'+e+'"');this.dict[e]=this.dict[t],delete this.dict[t]}};Il.prototype.del=function(e){var t=this.has(e);return delete this.dict[t||e]};fj.exports=function(e){return new Il(e)};fj.exports.httpify=function(e,t){var r=new Il(t);return e.setHeader=function(i,a,n){if(!(typeof a>"u"))return r.set(i,a,n)},e.hasHeader=function(i){return r.has(i)},e.getHeader=function(i){return r.get(i)},e.removeHeader=function(i){return r.del(i)},e.headers=r.dict,r}});var Sq=$((kge,Eq)=>{Eq.exports=Xo;Xo.SSL=qx;var kq=require("util"),dj=require("http").Agent,_ie=require("net"),Eie=require("tls"),Sie=require("https").Agent;function _q(e,t){var r="";return typeof e=="string"?r=e+":"+t:r=e.host+":"+e.port+":"+(e.localAddress?e.localAddress+":":":"),r}function Xo(e){var t=this;t.options=e||{},t.requests={},t.sockets={},t.freeSockets={},t.maxSockets=t.options.maxSockets||dj.defaultMaxSockets,t.minSockets=t.options.minSockets||Xo.defaultMinSockets,t.on("free",function(r,i,a){var n=_q(i,a);if
`),i.update((r?r.split(";")[0].trim().toLowerCase():"")+`
`),i.update(e||""),i.update(`
`),i.digest("base64")}r1.calculateMac=function(e,t){var r=`hawk.1.header
`+t.ts+`
`+t.nonce+`
`+(t.method||"").toUpperCase()+`
`+t.resource+`
`+t.host.toLowerCase()+`
`+t.port+`
`+(t.hash||"")+`
`;t.ext&&(r=r+t.ext.replace("\\","\\\\").replace(`
`,"\\n")),r=r+`
`,t.app&&(r=r+t.app+`
`+(t.dlg||"")+`
`);var i=Xj.createHmac(e.algorithm,e.key).update(r),a=i.digest("base64");return a};r1.header=function(e,t,r){var i=r.timestamp||Math.floor((Date.now()+(r.localtimeOffsetMsec||0))/1e3),a=r.credentials;if(!a||!a.id||!a.key||!a.algorithm||["sha1","sha256"].indexOf(a.algorithm)===-1)return"";var n={ts:i,nonce:r.nonce||xse(6),method:t,resource:e.pathname+(e.search||""),host:e.hostname,port:e.port||(e.protocol==="http:"?80:443),hash:r.hash,ext:r.ext,app:r.app,dlg:r.dlg};!n.hash&&(r.payload||r.payload==="")&&(n.hash=wse(r.payload,a.algorithm,r.contentType));var o=r1.calculateMac(a,n),u=n.ext!==null&&n.ext!==void 0&&n.ext!=="",c='Hawk id="'+a.id+'", ts="'+n.ts+'", nonce="'+n.nonce+(n.hash?'", hash="'+n.hash:"")+(u?'", ext="'+n.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+o+'"';return n.app&&(c=c+', app="'+n.app+(n.dlg?'", dlg="'+n.dlg:"")+'"'),c}});var WR=$((e0e,KR)=>{var HR=require("stream").Stream,kse=require("util");KR.exports=Jo;function Jo(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}kse.inherits(Jo,HR);Jo.create=function(e,t){var r=new this;t=t||{};for(var i in t)r[i]=t[i];r.source=e;var a=e.emit;return e.emit=function(){return r._handleEmit(arguments),a.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(Jo.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Jo.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Jo.prototype.resume=function(){this._released||this.release(),this.source.resume()};Jo.prototype.pause=function(){this.source.pause()};Jo.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Jo.prototype.pipe=function(){var e=HR.prototype.pipe.apply(this,arguments);return this.resume(),e};Jo.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Jo.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var ZR=$((t0e,YR)=>{var _se=require("util"),GR=require("stream").Stream,VR=WR();YR.exports=wa;function wa(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}_se.inherits(wa,GR);wa.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};wa.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};wa.prototype.append=function(e){var t=wa.isStreamLike(e);if(t){if(!(e instanceof VR)){var r=VR.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};wa.prototype.pipe=function(e,t){return GR.prototype.pipe.call(this,e,t),this.resume(),e};wa.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};wa.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var i=wa.isStreamLike(r);i&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};wa.prototype._pipeNext=function(e){this._currentStream=e;var t=wa.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};wa.prototype._han
`),e.forEach(function(n){var o="--"+r.boundary+`\r
`;Object.keys(n).forEach(function(u){u!=="body"&&(o+=u+": "+n[u]+`\r
`)}),o+=`\r
`,a(o),a(n.body),a(`\r
`)}),a("--"+r.boundary+"--"),r.request.postambleCRLF&&a(`\r
`),i};bg.prototype.onRequest=function(e){var t=this,r=t.isChunked(e),i=e.data||e;t.setHeaders(r),t.chunked=r,t.body=t.build(i,r)};QR.Multipart=bg});var t7=$(e7=>{"use strict";var JR=require("url"),Cse=/^https?:/;function a1(e){this.request=e,this.followRedirect=!0,this.followRedirects=!0,this.followAllRedirects=!1,this.followOriginalHttpMethod=!1,this.allowRedirect=function(){return!0},this.maxRedirects=10,this.redirects=[],this.redirectsFollowed=0,this.removeRefererHeader=!1}a1.prototype.onRequest=function(e){var t=this;e.maxRedirects!==void 0&&(t.maxRedirects=e.maxRedirects),typeof e.followRedirect=="function"&&(t.allowRedirect=e.followRedirect),e.followRedirect!==void 0&&(t.followRedirects=!!e.followRedirect),e.followAllRedirects!==void 0&&(t.followAllRedirects=e.followAllRedirects),(t.followRedirects||t.followAllRedirects)&&(t.redirects=t.redirects||[]),e.removeRefererHeader!==void 0&&(t.removeRefererHeader=e.removeRefererHeader),e.followOriginalHttpMethod!==void 0&&(t.followOriginalHttpMethod=e.followOriginalHttpMethod)};a1.prototype.redirectTo=function(e){var t=this,r=t.request,i=null;if(e.statusCode>=300&&e.statusCode<400&&e.caseless.has("location")){var a=e.caseless.get("location");if(r.debug("redirect",a),t.followAllRedirects)i=a;else if(t.followRedirects)switch(r.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:i=a;break}}else if(e.statusCode===401){var n=r._auth.onResponse(e);n&&(r.setHeader("authorization",n),i=r.uri)}return i};a1.prototype.onResponse=function(e){var t=this,r=t.request,i=t.redirectTo(e);if(!i||!t.allowRedirect.call(r,e))return!1;if(r.debug("redirect to",i),e.resume&&e.resume(),t.redirectsFollowed>=t.maxRedirects)return r.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+r.uri.href)),!1;t.redirectsFollowed+=1,Cse.test(i)||(i=JR.resolve(r.uri.href,i));var a=r.uri;return r.uri=JR.parse(i),r.uri.protocol!==a.protocol&&delete r.agent,t.redirects.push({statusCode:e.statusCode,redirectUri:i}),t.followAllRedirects&&r.method!=="HEAD"&&e.statusCode!==401&&e.statusCode!==307&&(r.method=t.followOriginalHttpMethod?r.method:"GET"),delete r.src,delete r.req,delete r._started,e.statusCode!==401&&e.statusCode!==307&&(delete r.body,delete r._form,r.headers&&(r.removeHeader("host"),r.removeHeader("content-type"),r.removeHeader("content-length"),r.uri.hostname!==r.originalHost.split(":")[0]&&r.removeHeader("authorization"))),t.removeRefererHeader||r.setHeader("referer",a.href),r.emit("redirect"),r.init(),!0};e7.Redirect=a1});var n7=$(pd=>{"use strict";var i0e=require("net"),Fse=require("tls"),Jj=require("http"),r7=require("https"),Dse=require("events"),Pse=require("assert"),Ose=require("util"),Tse=qf().Buffer;pd.httpOverHttp=qse;pd.httpsOverHttp=Ise;pd.httpOverHttps=zse;pd.httpsOverHttps=Rse;function qse(e){var t=new zs(e);return t.request=Jj.request,t}function Ise(e){var t=new zs(e);return t.request=Jj.request,t.createSocket=a7,t.defaultPort=443,t}function zse(e){var t=new zs(e);return t.request=r7.request,t}function Rse(e){var t=new zs(e);return t.request=r7.request,t.createSocket=a7,t.defaultPort=443,t}function zs(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||Jj.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(i,a,n){for(var o=0,u=t.requests.length;o<u;++o){var c=t.requests[o];if(c.host===a&&c.port===n){t.requests.splice(o,1),c.request.onSocket(i);return}}i.destroy(),t.removeSocket(i)})}Ose.inherits(zs,Dse.EventEmitter);zs.prototype.addRequest=function(t,r){var i=this;if(typeof r=="string"&&(r={host:r,port:arguments[2],path:arguments[3]}),i.sockets.length>=this.maxSockets){i.requests.push({host:r.host,port:r.port,request:t});return}i.createConnection({host:r.host,port:r.port,request:t})};zs.prototype.createConnection=function(t){var r=this;r.createSocket(t,function(i){i.on("free",a),i.on("close",n),i.on("agentRemove",n),t.request.onSocket(i);function a(){r.emit("free",i,t.host,t.port)}function n(o){r.removeSocket(i),i.removeListener("free",a),i.removeListener("close",n),i.removeLis
`,d.message,d.stack);var m=new Error("tunneling socket could not be established, cause="+d.message);m.code="ECONNRESET",t.request.emit("error",m),i.removeSocket(a)}};zs.prototype.removeSocket=function(t){var r=this.sockets.indexOf(t);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createConnection(i)}};function a7(e,t){var r=this;zs.prototype.createSocket.call(r,e,function(i){var a=Fse.connect(0,i7({},r.options,{servername:e.host,socket:i}));r.sockets[r.sockets.indexOf(i)]=a,t(a)})}function i7(e){for(var t=1,r=arguments.length;t<r;++t){var i=arguments[t];if(typeof i=="object")for(var a=Object.keys(i),n=0,o=a.length;n<o;++n){var u=a[n];i[u]!==void 0&&(e[u]=i[u])}}return e}var Bl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bl=function(){var e=Array.prototype.slice.call(arguments);typeof e[0]=="string"?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:Bl=function(){};pd.debug=Bl});var c7=$(u7=>{"use strict";var Bse=require("url"),Lse=n7(),o7=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"],s7=["proxy-authorization"];function Nse(e){var t=e.port,r=e.protocol,i=e.hostname+":";return t?i+=t:r==="https:"?i+="443":i+="80",i}function Mse(e,t){var r=t.reduce(function(i,a){return i[a.toLowerCase()]=!0,i},{});return Object.keys(e).filter(function(i){return r[i.toLowerCase()]}).reduce(function(i,a){return i[a]=e[a],i},{})}function Use(e,t){var r=e.proxy,i={proxy:{host:r.hostname,port:+r.port,proxyAuth:r.auth,headers:t},headers:e.headers,ca:e.ca,cert:e.cert,key:e.key,passphrase:e.passphrase,pfx:e.pfx,ciphers:e.ciphers,rejectUnauthorized:e.rejectUnauthorized,secureOptions:e.secureOptions,secureProtocol:e.secureProtocol};return i}function $se(e,t){var r=e.protocol==="https:"?"https":"http",i=t.protocol==="https:"?"Https":"Http";return[r,i].join("Over")}function Hse(e){var t=e.uri,r=e.proxy,i=$se(t,r);return Lse[i]}function xg(e){this.request=e,this.proxyHeaderWhiteList=o7,this.proxyHeaderExclusiveList=[],typeof e.tunnel<"u"&&(this.tunnelOverride=e.tunnel)}xg.prototype.isEnabled=function(){var e=this,t=e.request;return typeof e.tunnelOverride<"u"?e.tunnelOverride:t.uri.protocol==="https:"};xg.prototype.setup=function(e){var t=this,r=t.request;if(e=e||{},typeof r.proxy=="string"&&(r.proxy=Bse.parse(r.proxy)),!r.proxy||!r.tunnel)return!1;e.proxyHeaderWhiteList&&(t.proxyHeaderWhiteList=e.proxyHeaderWhiteList),e.proxyHeaderExclusiveList&&(t.proxyHeaderExclusiveList=e.proxyHeaderExclusiveList);var i=t.proxyHeaderExclusiveList.concat(s7),a=t.proxyHeaderWhiteList.concat(i),n=Mse(r.headers,a);n.host=Nse(r.uri),i.forEach(r.removeHeader,r);var o=Hse(r),u=Use(r,n);return r.agent=o(u),!0};xg.defaultProxyHeaderWhiteList=o7;xg.defaultProxyHeaderExclusiveList=s7;u7.Tunnel=xg});var p7=$((l7,wg)=>{(function(){var e,t,r,i,a,n;typeof performance<"u"&&performance!==null&&performance.now?wg.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(wg.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},i=e(),n=process.uptime()*1e9,a=i-n):Date.now?(wg.exports=function(){return Date.now()-r},r=Date.now()):(wg.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(l7)});var k7=$((s0e,w7)=>{"use strict";var Kse=require("http"),m7=require("https"),kg=require("url"),t3=require("util"),n1=require("stream"),i1=require("zlib"),e3=SO(),Wse=IO(),Vse=wq(),Gse=by(),g7=Tx(),f7=Sq(),Yse=Aq(),Zse=Tb(),d7=mj(),Qse=Tq().strict,dd=Bb(),Xse=BE(),Jse=zq(),eue=Gq().Querystring,tue=kR().Har,rue=PR().Auth,aue=UR().OAuth,iue=$R(),nue=XR().Multipart,oue=t7().Redirect,r3=c7().Tunnel,fd=p7(),_g=qf().Buffer,h7=dd.safeStringify,sue=dd.isReadStream,uue=dd.toBase64,cue=dd.defer,v7=dd.copy,lue=dd.version,y7=Xse.jar(),b7={};function pue(e,t){var r={};for(var i in t){var a=e.inde
\0`,Ve+=i(oe,2),Ve+=W.magic,Ve+=i(A,2),Ve+=i(B,2),Ve+=i(Re.crc32,4),Ve+=i(Re.compressedSize,4),Ve+=i(Re.uncompressedSize,4),Ve+=i(Q.length,2),Ve+=i(ee.length,2),{fileRecord:p.LOCAL_FILE_HEADER+Ve+Q+ee,dirRecord:p.CENTRAL_FILE_HEADER+i(at,2)+Ve+i(te.length,2)+"\0\0\0\0"+i(ue,4)+i(v,4)+Q+ee+te}}var n=e("../utils"),o=e("../stream/GenericWorker"),u=e("../utf8"),c=e("../crc32"),p=e("../signature");function f(d,m,h,v){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=h,this.encodeFileName=v,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(f,o),f.prototype.push=function(d){var m=d.meta.percent||0,h=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,o.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:h?(m+100*(h-v-1))/h:100}}))},f.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var m=this.streamFiles&&!d.file.dir;if(m){var h=a(d,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(d){this.accumulate=!1;var m=this.streamFiles&&!d.file.dir,h=a(d,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),m)this.push({data:function(v){return p.DATA_DESCRIPTOR+i(v.crc32,4)+i(v.compressedSize,4)+i(v.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var d=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var h=this.bytesWritten-d,v=function(b,x,A,B,I){var W=n.transformTo("string",I(B));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(b,2)+i(b,2)+i(x,4)+i(A,4)+i(W.length,2)+W}(this.dirRecords.length,h,d,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(d){this._sources.push(d);var m=this;return d.on("data",function(h){m.processChunk(h)}),d.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),d.on("error",function(h){m.error(h)}),this},f.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(d){var m=this._sources;if(!o.prototype.error.call(this,d))return!1;for(var h=0;h<m.length;h++)try{m[h].error(d)}catch{}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var d=this._sources,m=0;m<d.length;m++)d[m].lock()},t.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var i=e("../compressions"),a=e("./ZipFileWorker");r.generateWorker=function(n,o,u){var c=new a(o.streamFiles,u,o.platform,o.encodeFileName),p=0;try{n.forEach(function(f,d){p++;var m=function(x,A){var B=x||A,I=i[B];if(!I)throw new Error(B+" is not a valid compression method !");return I}(d.options.compression,o.compression),h=d.options.compressionOptions||o.compressionOptions||{},v=d.dir,b=d.date;d._compressWorker(m,h).withStreamInfo("file",{name:f,dir:v,date:b,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(c)}),c.entriesCount=p}catch(f){c.error(f)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has be
---\r?
`,xU=`\r?
--\r?
`,wU="note:",kU=!1,_U="",EU="",SU=960,jU=700,AU=.04,CU="slide",FU=!0,DU=120,PU=!1,X0={theme:gU,highlightTheme:vU,template:yU,separator:bU,verticalSeparator:xU,notesSeparator:wU,enableLinks:kU,title:_U,css:EU,width:SU,height:jU,margin:AU,transition:CU,enableCustomControls:FU,timeForPresentation:DU,log:PU};var of=class{constructor(t){this.settings=t}getSlideOptions(t,r=!1){let i=Dn.default.omitBy(this.settings,n=>Dn.default.isNil(n)||n===""),a=r?this.getPrintOptions():{};return Dn.default.defaults(a,t,i,X0)}getPrintOptions(){return{enableOverview:!1,enableChalkboard:!1,enableMenu:!1,enablePointer:!1,enableCustomControls:!1,enableTimeBar:!1,controls:!1}}getSlidifyOptions(t){let r=["separator","verticalSeparator","notesSeparator"];return Dn.default.pick(t,r)}getRevealOptions(t){let r=["width","height","margin","minScale","maxScale","controls","controlsTutorial","controlsLayout","controlsBackArrows","progress","slideNumber","showSlideNumber","hashOneBasedIndex","hash","respondToHashChanges","history","keyboard","keyboardCondition","disableLayout","overview","center","touch","loop","rtl","navigationMode","shuffle","fragments","fragmentInURL","embedded","help","pause","showNotes","autoPlayMedia","preloadIframes","autoAnimate","autoAnimateMatcher","autoAnimateEasing","autoAnimateDuration","autoAnimateUnmatched","autoSlide","autoSlideStoppable","autoSlideMethod","defaultTiming","mouseWheel","previewLinks","postMessage","postMessageEvents","focusBodyOnPageVisibilityChange","transition","transitionSpeed","backgroundTransition","pdfMaxPagesPerSlide","pdfSeparateFragments","pdfPageHeightOffset","viewDistance","mobileViewDistance","display","hideInactiveCursor","hideCursorTime","markdown","mermaid"],i=Dn.default.pick(Dn.default.omitBy(this.settings,Dn.default.isEmpty),r),a=Dn.default.pick(t,r);return Dn.default.defaults({},a,i)}getTemplateSettings(t){let r=["enableOverview","enableChalkboard","enableMenu","enableCustomControls","enableTimeBar","enablePointer"],i=Dn.default.pick(this.settings,r),a=Dn.default.pick(t,r);return Dn.default.defaults({},a,i)}parseYamlFrontMatter(t){try{let r=SA(t.replace(/^\uFEFF/,""));return{yamlOptions:Dn.default.omit(r,"__content"),markdown:r.__content||t}}catch{return{yamlOptions:{},markdown:t}}}};var ms="reveal-preview-view",Xh=class extends Qh.ItemView{constructor(r,i,a,n){super(r);this.url="about:blank";this.urlRegex=/#\/(\d*)(?:\/(\d*))?(?:\/(\d*))?/;this.home=i,this.yaml=new of(a),this.onCloseListener=n,this.addAction("slides","Open in Browser",()=>{window.open(i)}),this.addAction("grid","Show Grid",()=>{a.showGrid=!a.showGrid,this.reloadIframe()}),this.addAction("refresh","Refresh Slides",()=>{this.reloadIframe()}),window.addEventListener("message",this.onMessage.bind(this))}onMoreOptionsMenu(r){super.onMoreOptionsMenu(r),r.addSeparator(),r.addItem(i=>{i.setIcon("document").setTitle("Print Presentation").onClick(()=>{window.open(this.home.toString()+"?print-pdf")})}),r.addItem(i=>{i.setIcon("install").setTitle("Export as html").onClick(()=>{let a=new URL(this.url);a.searchParams.append("export","true"),this.setUrl(a.toString())})})}onMessage(r){if(r.data.includes("?export")){this.setUrl(r.data.split("?")[0]);return}this.setUrl(r.data,!1);let i=new URL(r.data),a=decodeURI(i.pathname);a=a.substring(a.lastIndexOf("/")+1);let n=this.app.workspace.getActiveViewOfType(Qh.MarkdownView);if(n&&n.file.name.includes(a)){let o=this.getTargetLine(i,n.data);n.editor.setCursor(n.editor.lastLine()),n.editor.setCursor({line:o,ch:0})}}onLineChanged(r){let i=this.app.workspace.getActiveViewOfType(Qh.MarkdownView),n=this.containerEl.children[1].getElementsByTagName("iframe")[0];if(i&&n){let[o,u]=this.getTargetSlide(r,i.data);n.contentWindow.postMessage(`{"method":"setState","args":[{"indexh":${o},"indexv":${u},"paused":false}]}`,this.url)}}getTargetSlide(r,i){let{yamlOptions:a,markdown:n}=this.yaml.parseYamlFrontMatter(i),o=this.yaml.getSlideOptions(a),u=i.indexOf(n),c=i.substring(0,u).split(/^/gm).length,p=this.getSlideLines(n,o),f=r-(c>0?c-1:0),d=null;for(let[m,h]of p.entries())if(h<=f)d=m;else break;if(d){let m=d.
`&&(f(),c="",p=0,r=!1);if(!b.scan(d))break;if(o=!0,A=b.scan(YQ)||"name",b.scan(WQ),A==="="?(B=b.scanUntil(cP),b.scan(cP),b.scanUntil(m)):A==="{"?(B=b.scanUntil(h),b.scan(GQ),b.scanUntil(m),A="&"):B=b.scanUntil(m),!b.scan(m))throw new Error("Unclosed tag at "+b.pos);if(A==">"?W=[A,B,x,b.pos,c,p,r]:W=[A,B,x,b.pos],p++,a.push(W),A==="#"||A==="^")i.push(W);else if(A==="/"){if(V=i.pop(),!V)throw new Error('Unopened section "'+B+'" at '+x);if(V[1]!==B)throw new Error('Unclosed section "'+V[1]+'" at '+x)}else A==="name"||A==="{"||A==="&"?u=!0:A==="="&&v(B)}if(f(),V=i.pop(),V)throw new Error('Unclosed section "'+V[1]+'" at '+b.pos);return XQ(QQ(a))}function QQ(e){for(var t=[],r,i,a=0,n=e.length;a<n;++a)r=e[a],r&&(r[0]==="text"&&i&&i[0]==="text"?(i[1]+=r[1],i[3]=r[3]):(t.push(r),i=r));return t}function XQ(e){for(var t=[],r=t,i=[],a,n,o=0,u=e.length;o<u;++o)switch(a=e[o],a[0]){case"#":case"^":r.push(a),i.push(a),r=a[4]=[];break;case"/":n=i.pop(),n[5]=a[2],r=i.length>0?i[i.length-1][4]:t;break;default:r.push(a)}return t}function Pm(e){this.string=e,this.tail=e,this.pos=0}Pm.prototype.eos=function(){return this.tail===""};Pm.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var i=r[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i};Pm.prototype.scanUntil=function(t){var r=this.tail.search(t),i;switch(r){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=i.length,i};function _f(e,t){this.view=e,this.cache={".":this.view},this.parent=t}_f.prototype.push=function(t){return new _f(t,this)};_f.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,o,u,c=!1;a;){if(t.indexOf(".")>0)for(n=a.view,o=t.split("."),u=0;n!=null&&u<o.length;)u===o.length-1&&(c=uP(n,o[u])||LQ(n,o[u])),n=n[o[u++]];else n=a.view[t],c=uP(a.view,t);if(c){i=n;break}a=a.parent}r[t]=i}return mE(i)&&(i=i.call(this.view)),i};function gn(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}gn.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};gn.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||lo.tags).join(":"),n=typeof i<"u",o=n?i.get(a):void 0;return o==null&&(o=ZQ(t,r),n&&i.set(a,o)),o};gn.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),o=this.parse(t,n),u=r instanceof _f?r:new _f(r,void 0);return this.renderTokens(o,u,i,t,a)};gn.prototype.renderTokens=function(t,r,i,a,n){for(var o="",u,c,p,f=0,d=t.length;f<d;++f)p=void 0,u=t[f],c=u[0],c==="#"?p=this.renderSection(u,r,i,a,n):c==="^"?p=this.renderInverted(u,r,i,a,n):c===">"?p=this.renderPartial(u,r,i,n):c==="&"?p=this.unescapedValue(u,r):c==="name"?p=this.escapedValue(u,r,n):c==="text"&&(p=this.rawValue(u)),p!==void 0&&(o+=p);return o};gn.prototype.renderSection=function(t,r,i,a,n){var o=this,u="",c=r.lookup(t[1]);function p(m){return o.render(m,r,i,n)}if(!!c){if(Ef(c))for(var f=0,d=c.length;f<d;++f)u+=this.renderTokens(t[4],r.push(c[f]),i,a,n);else if(typeof c=="object"||typeof c=="string"||typeof c=="number")u+=this.renderTokens(t[4],r.push(c),i,a,n);else if(mE(c)){if(typeof a!="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(r.view,a.slice(t[3],t[5]),p),c!=null&&(u+=c)}else u+=this.renderTokens(t[4],r,i,a,n);return u}};gn.prototype.renderInverted=function(t,r,i,a,n){var o=r.lookup(t[1]);if(!o||Ef(o)&&o.length===0)return this.renderTokens(t[4],r,i,a,n)};gn.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
`),o=0;o<n.length;o++)n[o].length&&(o>0||!i)&&(n[o]=a+n[o]);return n.join(`
`)};gn.prototype.renderPartial=function(t,r,i,a){if(!!i){var n=this.getConfigTags(a),o=mE(i)?i(t[1]):i[t[1]];if(o!=null){var u=t[6],c=t[5],p=t[4],f=o;c==0&&p&&(f=this.indentPartial(o,p,u));var d=this.parse(f,n);return this.renderTokens(d,r,i,f,a)}}};gn.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};gn.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||lo.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===lo.escape?String(n):a(n)};gn.prototype.rawValue=function(t){return t[1]};gn.prototype.getConfigTags=function(t){return Ef(t)?t:t&&typeof t=="object"?t.tags:void 0};gn.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Ef(t))return t.escape};var lo={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Dm.templateCache=e},get templateCache(){return Dm.templateCache}},Dm=new gn;lo.clearCache=function(){return Dm.clearCache()};lo.parse=function(t,r){return Dm.parse(t,r)};lo.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+BQ(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Dm.render(t,r,i,a)};lo.escape=KQ;lo.Scanner=Pm;lo.Context=_f;lo.Writer=gn;var lP=lo;var fP=(()=>(global.Reveal={registerPlugin:()=>{}},pP()()))();var Wy=class{process(t){return this.transformBlock(t)}transformBlock(t){return t=t.replaceAll(/:::\sblock\s*/g,`<div class="block">
`),t=t.replaceAll(":::",`</div>
`),t}};var dP=require("obsidian"),Vy=class{constructor(t){this.excalidrawImageRegex=/!\[\[(.*\.excalidraw)\|?([^\]]*)??\]\]\s?(<!--.*-->)?/i;this.utils=t}process(t){return t.split(`
`).map(r=>this.excalidrawImageRegex.test(r)?this.transformLine(r):r).join(`
`)}transformLine(t){let[,r,i,a]=this.excalidrawImageRegex.exec(t),n=this.utils.findFile(r);return n===null?(new dP.Notice(`Cannot find Image for ${r}. Make sure to activate Auto-export SVG/PNG in Excalidraw Settings.`,8e3),t):`![[${n}${i==null?"":"|"+i}]] ${a??""}`}};var Sf=class{constructor(){this.regex=/\[\^([^\]]*)]/im}process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map((a,n)=>a.split(new RegExp(r.verticalSeparator,"gmi")).map((o,u)=>{if(this.regex.test(o)){let c=this.transformFootNotes(o);return i=i.replace(o,c),c}return o}).join(r.verticalSeparator)).join(r.separator),i}transformFootNotes(t){if(!this.regex.test(t))return t;let r=t,i=1,a=new Map,n;for(;n=this.regex.exec(r);)r=r.split(`
`).map((c,p)=>{if(c.includes(n[0])){if(c.includes(n[0]+": "))return a.has(n[1])||a.set(n[1],c.split(n[0]+": ")[1]),"";{let f=c.split(n[0]),d=f[0].trim();return d+='<sup id="fnref:'+n[1]+'" role="doc-noteref">'+i+"</sup>",d+=f[1].trim(),i=i+1,d}}return c}).join(`
`);let o="";o+=`<div class="footnotes" role="doc-endnotes">
`,o+=`<ol>
`,a.forEach((c,p)=>{o+='<li id="fn:'+p+`" role="doc-endnote" class="footnote"><p>
`+c+`
</p></li>`}),o+=`</ol>
`,o+=`</div>
`;let u="<%? footnotes %>";return r.includes(u)?r.replaceAll(u,o):r+`
`+o}};var Gy=class{constructor(){this.boldRegex=/(?<=[^_]|^)__([^_]+)__(?!_)/gm;this.markRegex=/==([^=]*)==/gm;this.commentRegex=/%%([^%]*)%%/gm}process(t){let r=!1;return t.split(`
`).map(i=>{if(i.indexOf("```")>-1&&(r=!r),r)return i;{let a=i.split("`");if(a.length>1){for(let n=0;n<a.length;n=n+2)a[n]=a[n].replaceAll(this.boldRegex,(o,u)=>`**${u.trim()}**`).replaceAll(this.markRegex,"<mark>$1</mark>").replaceAll(this.commentRegex,"");return a.join("`")}else return i.replaceAll(this.boldRegex,(n,o)=>`**${o.trim()}**`).replaceAll(this.markRegex,"<mark>$1</mark>").replaceAll(this.commentRegex,"")}}).join(`
`).replaceAll(this.commentRegex,"")}};var Da=class{constructor(){this.images=new Set;this.isCollecting=!1}static getInstance(){return Da.instance||(Da.instance=new Da),Da.instance}reset(){this.images.clear()}addImage(t){this.images.add(t)}getAll(){return Array.of(...this.images)}enable(){this.isCollecting=!0}disable(){this.isCollecting=!1}shouldCollect(){return this.isCollecting}};var Yy=class{transform(t){let r=t.getAttribute("data-background-image");r!=null&&Da.getInstance().shouldCollect&&Da.getInstance().addImage(r)}};var TP=Fa(OP()),eb=class{transform(t){let r=t.getAttribute("bg"),i=t.getAttribute("onTarget");if(r!=null){let a=this.readColor(r);a?(a.isLight()?(t.addClass("has-light-background"),t.deleteClass("has-dark-background")):(t.addClass("has-dark-background"),t.deleteClass("has-light-background")),t.deleteAttribute("bg"),i&&i=="slide"?(t.deleteAttribute("data-background-image"),t.deleteAttribute("data-background-color"),t.addAttribute("data-background-color",r)):t.addStyle("background-color",r)):(t.deleteAttribute("bg"),i&&i=="slide"&&(t.deleteAttribute("data-background-color"),t.deleteAttribute("data-background-image"),t.addAttribute("data-background-image",r)))}}readColor(t){try{return(0,TP.default)(t)}catch{return null}}};var tb=class{transform(t){let r=t.getAttribute("border");r!=null&&(t.addStyle("border",r),t.addStyle("box-sizing","border-box"),t.deleteAttribute("border"))}};var rb=class{constructor(t){this.from=t}transform(t){let r=t.getAttribute(this.from);r!=null&&(r.split(" ").forEach(i=>{i.trim().length>0&&t.addClass(i.trim())}),t.deleteAttribute(this.from))}};var ab=class{transform(t){let r=t.getAttribute("class");r!=null&&(r.split(" ").map(i=>i.trim()).forEach(i=>{t.addClass(i)}),t.deleteAttribute("class"))}};var ib=class{transform(t){let r=t.getAttribute("frag");r!=null&&(t.addClass("fragment"),t.deleteAttribute("frag"),t.addAttribute("data-fragment-index",r))}};var Qn=class{constructor(){}static getInstance(){return Qn.instance||(Qn.instance=new Qn),Qn.instance}};var nb=class{constructor(){this.gridAttributeRegex=/^(?:(-?\d*(?:px)?)(?:\s*|x)(-?\d*(?:px)?)|(center|top|bottom|left|right|topleft|topright|bottomleft|bottomright))$/m;this.maxWidth=Qn.getInstance().options.width,this.maxHeight=Qn.getInstance().options.height,this.isCenter=Qn.getInstance().options.center}transform(t){let r,i,a=t.getAttribute("absolute")=="true";a?(r="480px 700px",i="px"):(r="50 100",i="%");let n=t.getAttribute("drop");if(n!=null){let o=t.getAttribute("drag")??r,u=this.read(o,n,a);if(u!=null){let c=this.leftOf(u)+i,p=this.topOf(u)+i,f=this.heightOf(u)+i,d=this.widthOf(u)+i;t.addStyle("position","absolute"),t.addStyle("left",c),t.addStyle("top",p),t.addStyle("height",f),t.addStyle("width",d),a&&t.addStyle("min-height",f)}t.deleteAttribute("drag"),t.deleteAttribute("drop")}if(t.getAttribute("align")||n){let o=t.getAttribute("flow"),[u,c,p,f]=this.getAlignment(t.getAttribute("align"),o),d=t.getAttribute("justify-content")??p;switch(u&&t.addAttribute("align",u,!1),f&&t.addClass(f),o){case"row":t.addStyle("display","flex"),t.addStyle("flex-direction","row"),t.addStyle("align-items",c),t.addStyle("justify-content",d),t.addClass("flex-even");break;case"col":default:t.addStyle("display","flex"),t.addStyle("flex-direction","column"),t.addStyle("align-items",c),t.addStyle("justify-content",d);break}this.isCenter!=null&&!this.isCenter&&t.addStyle("align-items","start"),t.deleteAttribute("flow"),t.deleteAttribute("justify-content")}}getAlignment(t,r){let i=r??"col";switch(t){case"topleft":return i=="col"?["left","flex-start","flex-start",void 0]:["left","flex-start","space-evenly",void 0];case"topright":return i=="col"?["right","flex-end","flex-start",void 0]:["right","flex-start","space-evenly",void 0];case"bottomright":return i=="col"?["right","flex-end","flex-end",void 0]:["right","flex-end","space-evenly",void 0];case"bottomleft":return i=="col"?["left","flex-start","flex-end",void 0]:["left","flex-end","space-evenly",void 0];case"left":return i=="col"?["left","flex-start","space-evenly",void 0]:["left","center","space-evenly
`).length-1,to:t.substring(0,u+o.length).split(`
`).length-1}));return t.split(`
`).map((o,u)=>`
${o}
`.match(i)?(this.fragmentCounter=1,o):a.some(({from:p,to:f})=>u>=p&&u<=f)?o:o.trim().startsWith("+ ")||this.orderedListRegex.test(o.trim())?this.transformLine(o):o).join(`
`)}transformLine(t){let r=this.parser.parseLine(t)??this.parser.buildComment("element");t.includes("<!--")&&(t=t.substring(0,t.indexOf("<!--"))),r.hasAttribute("data-fragment-index")||(r.addAttribute("data-fragment-index",this.fragmentCounter.toString()),r.hasClass("fragment")||r.addClass("fragment"),this.fragmentCounter++);let i="&shy;"+this.parser.commentToString(r);return t=t.replace("+ ","- "+i),t=t.replaceAll(this.orderedListRegex,"1. "+i),t}};var lb=class{constructor(){this.gridBlockRegex=/<\s*grid(?:(?!(<grid|<\/grid>)).)*<\/grid>/gs;this.gridRegex=/<\s*grid([^>]+)>(.*?)<\/grid>/s;this.gridPropertiesRegex=/([^=]*)\s*=\s*"([^"]*)"\s*|([^=]*)\s*=\s*'([^']*)'\s*/g}process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map(a=>a.split(new RegExp(r.verticalSeparator,"gmi")).map(n=>{if(this.gridBlockRegex.test(n)){let o=this.transformSlide(n),u;for(;u!=o;)u&&(o=u),u=this.transformSlide(o);return i=i.split(n).join(u),u}return n}).join(r.verticalSeparator)).join(r.separator),i}transformSlide(t){let r=new Map;this.gridBlockRegex.lastIndex=0;let i;for(;(i=this.gridBlockRegex.exec(t))!==null;){i.index===this.gridBlockRegex.lastIndex&&this.gridBlockRegex.lastIndex++;let a=i[0],[n,o,u]=this.gridRegex.exec(a);r.set(n,this.transformGrid(o,u))}for(let[a,n]of r)n&&(t=t.split(a).join(n));return t}transformGrid(t,r){let i=this.parseAttributes(t.trim()),a=new Cf(i);return`<div class="${a.getClasses()}" style="${a.getStyles()}" ${a.getAttributes()}>
${r}</div>`}parseAttributes(t){let r=new Map;this.gridPropertiesRegex.lastIndex=0;let i;for(;(i=this.gridPropertiesRegex.exec(t))!==null;){i.index===this.gridPropertiesRegex.lastIndex&&this.gridPropertiesRegex.lastIndex++;let[,a,n]=i;r.set(a,n)}return r}};var pb=class{constructor(t){this.markdownImageRegex=/^[ ]{0,3}!\[([^\]]*)\]\((.*(?:jpg|png|jpeg|gif|bmp|webp|svg)?)\)\s?(<!--.*-->)?/gim;this.obsidianImageRegex=/!\[\[(.*?(?:jpg|png|jpeg|gif|bmp|webp|svg))\s*\|?\s*([^\]]*)??\]\]\s?(<!--.*-->)?/ig;this.obsidianImageReferenceRegex=/\[\[(.*?(?:jpg|png|jpeg|webp|gif|bmp|svg))\|?([^\]]*)??\]\]/gi;this.utils=t,this.parser=new Ki}process(t){return t.split(`
`).map(r=>this.obsidianImageRegex.test(r)?this.transformImageString(r):this.obsidianImageReferenceRegex.test(r)?this.transformImageReferenceString(r):r).map(r=>this.markdownImageRegex.test(r)?this.htmlify(r):r).join(`
`)}transformImageReferenceString(t){let r=t,i;for(this.obsidianImageReferenceRegex.lastIndex=0;(i=this.obsidianImageReferenceRegex.exec(r))!==null;){i.index===this.obsidianImageReferenceRegex.lastIndex&&this.obsidianImageReferenceRegex.lastIndex++;let[a,n]=i,o=this.utils.findFile(n);r=r.replaceAll(a,o)}return r}transformImageString(t){let r="",i;for(this.obsidianImageRegex.lastIndex=0;(i=this.obsidianImageRegex.exec(t))!==null;){i.index===this.obsidianImageRegex.lastIndex&&this.obsidianImageRegex.lastIndex++;let[,a,n,o]=i,u=this.utils.findFile(a),c=this.buildComment(n,o)??"";r=r+`
![](${u}) ${c}`}return r}buildComment(t,r){let i=r?this.parser.parseComment(r):this.parser.buildComment("element");if(t){if(t.includes("x"))var[a,n]=t.split("x");else var a=t;i.addStyle("width",`${a}px`),n&&i.addStyle("height",`${n}px`)}return this.parser.commentToString(i)}htmlify(t){let r="",i;for(this.markdownImageRegex.lastIndex=0;(i=this.markdownImageRegex.exec(t))!==null;){i.index===this.markdownImageRegex.lastIndex&&this.markdownImageRegex.lastIndex++;let[,a,n,o]=i;a&&a.includes("|")&&(o=this.buildComment(a.split("|")[1],o)??"");let u=this.parser.parseLine(o)??this.parser.buildComment("element"),c=this.isIcon(n);if(r.length>0&&(r=r+`
`),c)r=r+`<i class="${n}" ${this.parser.buildAttributes(u)}></i>`;else{if(Da.getInstance().shouldCollect()&&Da.getInstance().addImage(n),n.startsWith("file:/")&&(n=this.transformAbsoluteFilePath(n)),u.hasStyle("width")&&u.addStyle("object-fit","fill"),!u.hasStyle("align-self")&&u.hasAttribute("align")){switch(u.getAttribute("align")){case"left":u.addStyle("align-self","start");break;case"right":u.addStyle("align-self","end");break;case"center":u.addStyle("align-self","center");break;case"stretch":u.addStyle("align-self","stretch"),u.addStyle("object-fit","cover"),u.addStyle("height","100%"),u.addStyle("width","100%");break;default:break}u.deleteAttribute("align")}u.hasStyle("object-fit")||u.addStyle("object-fit","scale-down");let p=`<img src="${n}" alt="${a}" ${this.parser.buildAttributes(u)}>`;r=r+p}}return r+`
`}isIcon(t){return t.startsWith("fas")||t.startsWith("far")||t.startsWith("fal")||t.startsWith("fad")||t.startsWith("fab")}transformAbsoluteFilePath(t){let r=new URL(t);return r?"/localFileSlash"+r.pathname:t}};var fb=class{constructor(t){this.regex=/(?<=[^!]|^)\[\[(?:(.*?)\|)?([^\]]*)\]\]/gm;this.utils=t}process(t,r){return r.enableLinks?t.replaceAll(this.regex,(i,a,n)=>`[${n}](obsidian://open?vault=${encodeURI(this.utils.getVaultName())}&file=${encodeURI(a??n)})`):t.replaceAll(this.regex,"$2")}};var db=class{constructor(){this.singleLine=/\$(.*?)\$/g}process(t){let r=this.markEscapedCharacters(t),i=this.processMultiLine(r),a=this.markEscapedCharacters(i),n=this.processSingleLine(a);return this.unmarkEscapedCharacters(n)}markEscapedCharacters(t){return t.replaceAll("\\$","~~d~~").replaceAll(/`\$\$/gm,"~~s~~").replaceAll(/\$\$`/gm,"~~e~~").replaceAll(/`\$/gm,"~~ss~~").replaceAll(/\$`/gm,"~~se~~")}unmarkEscapedCharacters(t){return t.replaceAll("~~d~~","\\$").replaceAll("~~e~~","$$$$`").replaceAll("~~s~~","`$$$$").replaceAll("~~ss~~","`$").replaceAll("~~se~~","$$`")}processSingleLine(t){return t.split(`
`).map(r=>(r.includes("$")&&(r=r.replaceAll(this.singleLine,"`$$$1$$`")),r)).join(`
`)}processMultiLine(t){return t.includes("$$")?t.split("$$").map((r,i)=>this.isOdd(i)?r:"`"+r+"`").join("$$").slice(1,-1):t}isOdd(t){return t&1}};var hb=class{process(t){return this.transformMermaid(t)}transformMermaid(t){let r=t.indexOf("```mermaid");if(r<0)return t;{let i=t.indexOf("```",r+11);if(i<0)return t;let a=t.substring(0,r),n=t.substring(i+3),o=t.substring(r+11,i),u=a+`
<div class="mermaid">
`+o+`
</div>
`+n;return this.transformMermaid(u)}}};var Df=class{constructor(t){this.regex=/!\[\[(.*)\]\]/gm;this.obsidianImageRegex=/!\[\[(.*(?:jpg|png|jpeg|gif|bmp|webp|svg))\s*\|?\s*([^\]]*)??\]\]\s?(<!--.*-->)?/i;this.excalidrawRegex=/(.*\.excalidraw)/i;this.utils=t}process(t){return t.split(`
`).map((r,i)=>this.regex.test(r)&&!this.obsidianImageRegex.test(r)?this.transformLine(r):r).join(`
`)}transformLine(t){let r="";t.includes("<!--")&&(r=t.substring(t.indexOf("<!--")));let i=t.replace("![[","").replace("]]","").replace(r,"").trim(),a=null;if(i.includes("#")){let u=i.split("#");i=u[0],a=u[1]}let n=this.getMarkdownFile(i);if(n===null)return t;let o=this.utils.parseFile(n,a);return o?r.length>0?this.process(o+r):this.process(o):t}getMarkdownFile(t){if(this.excalidrawRegex.test(t))return null;let r=t;return t.toLowerCase().endsWith(".md")||(r=r+".md"),r}};var mb=class{constructor(){this.readCommentRegex=/<!--.*-->/;this.parser=new Ki}process(t){return t.split(`
`).map(r=>this.parser.lineHasComment(r)?r.replace(this.readCommentRegex,this.parser.commentToString(this.parser.parseLine(r))):r).join(`
`)}};var gb=class{constructor(){this.slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;this.parser=new Ki}process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map(a=>a.split(new RegExp(r.verticalSeparator,"gmi")).map(n=>{if(n.trim().length>0){let o=this.transformSlide(n,r),u=i.split(n);if(u.length==2)i=u.join(o);else{let c=u.splice(1).join(n);i=[u[0],c].join(o)}return o}else return n}).join(r.verticalSeparator)).join(r.separator),i}transformSlide(t,r){let[i,a]=this.extractNotes(t,r),n,o;if(this.slideCommentRegex.test(i)){let[c]=this.slideCommentRegex.exec(i),p=this.parser.parseLine(c);p.addClass("drop"),n=i.replace(this.slideCommentRegex,""),n=n.trim(),o=this.parser.commentToString(p)}else n=i.trim(),o='<!-- .slide: class="drop" -->';let u=`${o}
<grid absolute="true" drag="100 100" drop="0 0">
${n}
</grid>`;return a.length>0&&(u+=`
`+a),u}extractNotes(t,r){let i="note:";r.notesSeparator&&r.notesSeparator.length>0&&(i=r.notesSeparator);let a=t.indexOf(i);return a>0?[t.substring(0,a),t.substring(a)]:[t,""]}};var vb=class{constructor(){this.regex=/<(\s*?([\w]*)[^>]*?)\/(?<=\/)>/gm}process(t){return this.transformBlock(t)}transformBlock(t){return t=t.replaceAll(this.regex,"<$1></$2>"),t}};var hX={":100:":"\u{1F4AF}",":1234:":"\u{1F522}",":+1:":"\u{1F44D}",":-1:":"\u{1F44E}",":1st_place_medal:":"\u{1F947}",":2nd_place_medal:":"\u{1F948}",":3rd_place_medal:":"\u{1F949}",":8ball:":"\u{1F3B1}",":a:":"\u{1F170}",":ab:":"\u{1F18E}",":abacus:":"\u{1F9EE}",":abc:":"\u{1F524}",":abcd:":"\u{1F521}",":accept:":"\u{1F251}",":accordion:":"\u{1FA97}",":adhesive_bandage:":"\u{1FA79}",":adult:":"\u{1F9D1}",":aerial_tramway:":"\u{1F6A1}",":afghanistan:":"\u{1F1E6}\u200D\u{1F1EB}",":airplane:":"\u2708",":aland_islands:":"\u{1F1E6}\u200D\u{1F1FD}",":alarm_clock:":"\u23F0",":albania:":"\u{1F1E6}\u200D\u{1F1F1}",":alembic:":"\u2697",":algeria:":"\u{1F1E9}\u200D\u{1F1FF}",":alien:":"\u{1F47D}",":ambulance:":"\u{1F691}",":american_samoa:":"\u{1F1E6}\u200D\u{1F1F8}",":amphora:":"\u{1F3FA}",":anatomical_heart:":"\u{1FAC0}",":anchor:":"\u2693",":andorra:":"\u{1F1E6}\u200D\u{1F1E9}",":angel:":"\u{1F47C}",":anger:":"\u{1F4A2}",":angola:":"\u{1F1E6}\u200D\u{1F1F4}",":angry:":"\u{1F620}",":anguilla:":"\u{1F1E6}\u200D\u{1F1EE}",":anguished:":"\u{1F627}",":ant:":"\u{1F41C}",":antarctica:":"\u{1F1E6}\u200D\u{1F1F6}",":antigua_barbuda:":"\u{1F1E6}\u200D\u{1F1EC}",":apple:":"\u{1F34E}",":aquarius:":"\u2652",":argentina:":"\u{1F1E6}\u200D\u{1F1F7}",":aries:":"\u2648",":armenia:":"\u{1F1E6}\u200D\u{1F1F2}",":arrow_backward:":"\u25C0",":arrow_double_down:":"\u23EC",":arrow_double_up:":"\u23EB",":arrow_down:":"\u2B07",":arrow_down_small:":"\u{1F53D}",":arrow_forward:":"\u25B6",":arrow_heading_down:":"\u2935",":arrow_heading_up:":"\u2934",":arrow_left:":"\u2B05",":arrow_lower_left:":"\u2199",":arrow_lower_right:":"\u2198",":arrow_right:":"\u27A1",":arrow_right_hook:":"\u21AA",":arrow_up:":"\u2B06",":arrow_up_down:":"\u2195",":arrow_up_small:":"\u{1F53C}",":arrow_upper_left:":"\u2196",":arrow_upper_right:":"\u2197",":arrows_clockwise:":"\u{1F503}",":arrows_counterclockwise:":"\u{1F504}",":art:":"\u{1F3A8}",":articulated_lorry:":"\u{1F69B}",":artificial_satellite:":"\u{1F6F0}",":artist:":"\u{1F9D1}\u200D\u{1F3A8}",":aruba:":"\u{1F1E6}\u200D\u{1F1FC}",":ascension_island:":"\u{1F1E6}\u200D\u{1F1E8}",":asterisk:":"*\u200D\u20E3",":astonished:":"\u{1F632}",":astronaut:":"\u{1F9D1}\u200D\u{1F680}",":athletic_shoe:":"\u{1F45F}",":atm:":"\u{1F3E7}",":atom_symbol:":"\u269B",":australia:":"\u{1F1E6}\u200D\u{1F1FA}",":austria:":"\u{1F1E6}\u200D\u{1F1F9}",":auto_rickshaw:":"\u{1F6FA}",":avocado:":"\u{1F951}",":axe:":"\u{1FA93}",":azerbaijan:":"\u{1F1E6}\u200D\u{1F1FF}",":b:":"\u{1F171}",":baby:":"\u{1F476}",":baby_bottle:":"\u{1F37C}",":baby_chick:":"\u{1F424}",":baby_symbol:":"\u{1F6BC}",":back:":"\u{1F519}",":bacon:":"\u{1F953}",":badger:":"\u{1F9A1}",":badminton:":"\u{1F3F8}",":bagel:":"\u{1F96F}",":baggage_claim:":"\u{1F6C4}",":baguette_bread:":"\u{1F956}",":bahamas:":"\u{1F1E7}\u200D\u{1F1F8}",":bahrain:":"\u{1F1E7}\u200D\u{1F1ED}",":balance_scale:":"\u2696",":bald_man:":"\u{1F468}\u200D\u{1F9B2}",":bald_woman:":"\u{1F469}\u200D\u{1F9B2}",":ballet_shoes:":"\u{1FA70}",":balloon:":"\u{1F388}",":ballot_box:":"\u{1F5F3}",":ballot_box_with_check:":"\u2611",":bamboo:":"\u{1F38D}",":banana:":"\u{1F34C}",":bangbang:":"\u203C",":bangladesh:":"\u{1F1E7}\u200D\u{1F1E9}",":banjo:":"\u{1FA95}",":bank:":"\u{1F3E6}",":bar_chart:":"\u{1F4CA}",":barbados:":"\u{1F1E7}\u200D\u{1F1E7}",":barber:":"\u{1F488}",":baseball:":"\u26BE",":basket:":"\u{1F9FA}",":basketball:":"\u{1F3C0}",":basketball_man:":"\u26F9\u200D\u2642",":basketball_woman:":"\u26F9\u200D\u2640",":bat:":"\u{1F987}",":bath:":"\u{1F6C0}",":bathtub:":"\u{1F6C1}",":battery:":"\u{1F50B}",":beach_umbrella:":"\u{1F3D6}",":bear:":"\u{1F43B}",":bearded_person:":"\u{1F9D4}",":beaver:":"\u{1F9AB}",":bed:":"\u{1F6CF}",":bee:":"\u{1F41D}",":beer:":"\u{1F37A}",":beers
`+p),i=i.replace(o,f),f}).join(r.verticalSeparator)).join(r.separator),i}addDebugCode(t){let r="";return r+=`<grid drag="100 10" drop="0 0" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 10" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 20" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 30" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 40" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 50" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 60" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 70" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 80" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 90" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="0 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="10 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="20 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="30 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="40 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="50 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="60 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="70 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="80 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="90 0" border="thin dotted blue"/>
`,t+`
`+r}extractNotes(t,r){let i="note:";r.notesSeparator&&r.notesSeparator.length>0&&(i=r.notesSeparator);let a=t.indexOf(i);return a>0?[t.substring(0,a),t.substring(a)]:[t,""]}};var wb=class{constructor(){this.regex=/>\s\[!([^\]]+)\]-* *(.*)/}process(t){let r=t.split(`
`),i=[],a=-1,n=!0;for(let o=0;o<r.length;o++){let u=r[o];if(u.trim().startsWith(">")&&a==-1)a=o,n=!1;else if(!u.trim().startsWith(">")&&a>-1){let c=this.transformBlock(r,a,o-1);for(let p=0;p<c.length;p++){let f=c[p];i.push(f)}a=-1,n=!0}n&&i.push(r[o])}return i.join(`
`)}transformBlock(t,r,i){let a=[];if(this.regex.test(t[r])){let[,n,o]=this.regex.exec(t[r]),u=this.iconFrom(n),c=this.titleFrom(n,o),p=this.colorFrom(n);a.push(`<div class="callout ${p}">`),a.push('<div class="callout-title">'),a.push('<div class="callout-icon">'),a.push(""),a.push(u),a.push(""),a.push("</div>"),a.push('<div class="callout-title-inner">'),a.push(""),a.push(c),a.push(""),a.push("</div>"),a.push("</div>"),a.push('<div class="callout-content">');for(let f=r+1;f<=i;f++){a.push("");let d=t[f].trim().substring(1).trim();a.push(d)}a.push(""),a.push("</div>"),a.push("</div>")}else for(let n=r;n<=i;n++){let o=t[n];a.push(o)}return a}colorFrom(t){switch(t.toLowerCase()){case"abstract":case"summary":case"tldr":case"info":return"callout-color1";case"todo":case"tip":case"hint":case"important":return"callout-color2";case"success":case"check":case"done":return"callout-color3";case"question":case"help":case"faq":return"callout-color4";case"warning":case"caution":case"attention":return"callout-color5";case"failure":case"fail":case"missing":return"callout-color6";case"danger":case"error":case"bug":return"callout-color7";case"example":return"callout-color8";case"quote":case"cite":return"callout-color9";default:return"callout-color-default"}}titleFrom(t,r){return r||t[0].toUpperCase()+t.substring(1).toLowerCase()}iconFrom(t){switch(t.toLowerCase()){case"abstract":case"summary":case"tldr":return":fas_clipboard-list:";case"info":return":fas_info-circle:";case"todo":return":fas_check-circle:";case"tip":case"hint":case"important":return":fas_fire-alt:";case"success":case"check":case"done":return":fas_check:";case"question":case"help":case"faq":return":fas_question-circle:";case"warning":case"caution":case"attention":return":fas_exclamation-triangle:";case"failure":case"fail":case"missing":return":fas_times:";case"danger":case"error":return":fas_bolt:";case"bug":return":fas_bug:";case"example":return":fas_list:";case"quote":case"cite":return":fas_quote-left:";default:return":fas_pencil-alt:"}}};var kb=class{constructor(t){this.emptySlideCommentRegex=/<!--\s*(?:\.)?slide(?::)?\s*-->/g;this.templateCommentRegex=/<!--\s*(?:\.)?slide.*(template="\[\[([^\]]+)\]\]"\s*).*-->/;this.propertyRegex=/:::\s([^\n]+)\s*(.*?:::[^\n]*)/sg;this.slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;this.optionalRegex=/<%\?.*%>/g;this.parser=new Ki;this.utils=t,this.multipleFileProcessor=new Df(t),this.footnoteProcessor=new Sf}process(t,r){let i=t;r.defaultTemplate!=null&&t.split(new RegExp(r.separator,"gmi")).map(n=>n.split(new RegExp(r.verticalSeparator,"gmi")).map(o=>{if(this.slideCommentRegex.test(o)){let[u]=this.slideCommentRegex.exec(o),c=this.parser.parseLine(u);c.hasAttribute("template")||c.addAttribute("template",r.defaultTemplate,!1),i=i.split(o).join(o.split(u).join(this.parser.commentToString(c)))}else i=i.split(o).join(`<!-- slide template="${r.defaultTemplate}" -->
`+o);return o}).join(r.verticalSeparator)).join(r.separator);let a=i;return i.split(new RegExp(r.separator,"gmi")).map(n=>n.split(new RegExp(r.verticalSeparator,"gmi")).map(o=>{if(this.templateCommentRegex.test(o))try{let[u,c]=this.extractNotes(o,r),p=0;for(;this.templateCommentRegex.test(u);)if(p++,u=this.transformSlide(u),p>9){console.log("WARNING: Circuit in template hierarchy detected!");break}return u=u.replaceAll(this.emptySlideCommentRegex,""),u=u.trim(),u=this.computeVariables(u),c.length>0&&(u+=`
`+c),a=a.split(o).join(u),u}catch(u){return console.log("Cannot process template: "+u),o}return o}).join(r.verticalSeparator)).join(r.separator),a}extractNotes(t,r){let i="note:";r.notesSeparator&&r.notesSeparator.length>0&&(i=r.notesSeparator);let a=t.indexOf(i);return a>0?[t.substring(0,a),t.substring(a)]:[t,""]}transformSlide(t){if(this.templateCommentRegex.test(t)){let[,r,i]=this.templateCommentRegex.exec(t),a=i;a.endsWith(".md")||(a=a+".md");let n=this.utils.parseFile(a,null);return n=this.multipleFileProcessor.process(n),n=n.split("<% content %>").join(t.replaceAll(r,"")),n}else return t}computeVariables(t){let r=t;this.propertyRegex.lastIndex=0;let i;for(;(i=this.propertyRegex.exec(t))!==null;){i.index===this.propertyRegex.lastIndex&&this.propertyRegex.lastIndex++;let[a,n,o]=i;if(n.includes("<!--")&&(n=n.substring(0,n.indexOf("<!--"))),n.trim()=="block")continue;o=`::: block
`+o;let u="<%? "+n.trim()+" %>";n="<% "+n.trim()+" %>",r=r.replaceAll(u,o+`
`+u),r=r.replaceAll(n,o),r=r.replaceAll(a,"")}for(r=this.footnoteProcessor.transformFootNotes(r);(i=this.optionalRegex.exec(r))!==null;)i.index===this.optionalRegex.lastIndex&&this.optionalRegex.lastIndex++,r=r.replaceAll(i[0],"");return r}};var _b=class{constructor(){this.typeRegex=/type:\s(\w*)/;this.labelRegex=/labels:\s(.*)/;this.datasetRegex=/title:\s(.*)\s*data:\s(.*)/g;this.spanGapsRegex=/(spanGaps):\s(.*)/;this.tensionRegex=/(tension):\s(.*)/;this.beginAtZeroRegex=/(beginAtZero):\s(.*)/;this.legendRegex=/(legend):\s(.*)/;this.legendPositionRegex=/(legendPosition):\s(.*)/;this.stackedRegex=/(stacked):\s(.*)/;this.heightRegex=/(height):\s(.*)/;this.useThemeColorsRegex=/(useThemeColors):\s(.*)/;this.colorMap=["#4285f4","#ea4335","#fbbc05","#34a853","#673ab7","#cccccc","#777777"]}process(t,r){return this.transformChart(t,r)}transformChart(t,r){let i=t.indexOf("```chart");if(i<0)return t;{let a=t.indexOf("```",i+11);if(a<0)return t;let n=[...this.colorMap],o=t.substring(0,i),u=t.substring(a+3),c=t.substring(i+8,a);if(this.typeRegex.test(c)){let[,p]=this.typeRegex.exec(c),f={data:{datasets:[],labels:[]},options:{elements:{}}};if(this.useThemeColorsRegex.test(c)){let[,,d]=this.useThemeColorsRegex.exec(c);if(d.trim()=="true")for(let m=0;m<7;m++){let h=getComputedStyle(document.body).getPropertyValue("--chart-color-"+(m+1));h!=""&&(n[m]=h)}}if(this.labelRegex.test(c)){let[,d]=this.labelRegex.exec(c);f.data.labels=mX(d),this.datasetRegex.lastIndex=0;let m=0,h;for(;(h=this.datasetRegex.exec(c))!==null;){h.index===this.datasetRegex.lastIndex&&this.datasetRegex.lastIndex++;let[,x,A]=h;f.data.datasets.push({data:JSON.parse(A),label:x,backgroundColor:n[m]}),m++}if(f.options.elements[p]={},this.spanGapsRegex.test(c)){let[,x,A]=this.spanGapsRegex.exec(c);f.options.elements[p][x]=JSON.parse(A)}if(this.tensionRegex.test(c)){let[,x,A]=this.tensionRegex.exec(c);f.options.elements[p][x]=JSON.parse(A)}if(this.beginAtZeroRegex.test(c)){let[,x,A]=this.beginAtZeroRegex.exec(c);f.options.scales||(f.options.scales={}),f.options.scales.y||(f.options.scales.y={}),f.options.scales.y[x]=JSON.parse(A)}if(this.legendRegex.test(c)){let[,,x]=this.legendRegex.exec(c);f.options.plugins||(f.options.plugins={}),f.options.plugins.legend||(f.options.plugins.legend={}),f.options.plugins.legend.display=JSON.parse(x)}if(this.legendPositionRegex.test(c)){let[,,x]=this.legendPositionRegex.exec(c);f.options.plugins||(f.options.plugins={}),f.options.plugins.legend||(f.options.plugins.legend={}),f.options.plugins.legend.position=x}if(this.stackedRegex.test(c)){let[,x,A]=this.stackedRegex.exec(c);f.options.scales||(f.options.scales={}),f.options.scales.y||(f.options.scales.y={}),f.options.scales.x||(f.options.scales.x={}),f.options.scales.x[x]=JSON.parse(A),f.options.scales.y[x]=JSON.parse(A)}if(this.heightRegex.test(c)){let[,,x]=this.heightRegex.exec(c);r.height=+x}let v=`<canvas style="max-height:${r.height}px" data-chart="${p}" >
<!--
${JSON.stringify(f)}-->
</canvas>`,b=o.trimEnd()+`
`+v+`
`+u.trimStart();return this.transformChart(b,r)}}return t}}};function mX(e){return e.substring(1,e.length-1).split(",").map(t=>{let r=t.trim();return(r.startsWith("'")||r.startsWith('"'))&&(r=r.substring(1)),(r.endsWith("'")||r.endsWith('"'))&&(r=r.substring(0,r.length-1)),`${r.trim()}`})}var Eb=class{constructor(){this.slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;this.parser=new Ki}process(t,r){let i=t;return r?.bg&&((r?.bg=="transparent"||r?.bg=="rgba(0,0,0,0)")&&(i=`<style>
body {
background-color: rgba(0,0,0,0) !important;
}
</style>
`+i),t.split(new RegExp(r.separator,"gmi")).map(a=>a.split(new RegExp(r.verticalSeparator,"gmi")).map(n=>{if(n){let o=this.transformSlide(n,r?.bg);return i=i.split(n).join(o),o}else return n}).join(r.verticalSeparator)).join(r.separator)),i}transformSlide(t,r){if(this.slideCommentRegex.test(t)){let[i]=this.slideCommentRegex.exec(t),a=this.parser.parseLine(i);return!a.hasAttribute("data-background-image")&&!a.hasAttribute("data-background-color")&&a.addAttribute("bg",r),t.replace(this.slideCommentRegex,this.parser.commentToString(a))}else return t+`
<!-- slide bg="${r}" -->
`}};var Sb=class{constructor(){this.refRegex=/\^[\w-]+\s/g}process(t){return t.replaceAll(this.refRegex,"")}};var jb=class{constructor(){this.slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;this.parser=new Ki}process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map((a,n)=>a.split(new RegExp(r.verticalSeparator,"gmi")).map(o=>{let u=o;if(this.slideCommentRegex.test(o)){let[c]=this.slideCommentRegex.exec(o),p=this.parser.parseLine(c);p.hasAttribute("skip")&&p.getAttribute("skip")=="true"&&(u='<!-- slide data-visibility="hidden" -->')}return i=i.replace(o,u),u}).join(r.verticalSeparator)).join(r.separator),i}};var Ab=class{constructor(t){this.multipleFileProcessor=new Df(t),this.blockProcessor=new Wy,this.imageProcessor=new pb(t),this.internalLinkProcessor=new fb(t),this.footnoteProcessor=new Sf,this.latexProcessor=new db,this.formatProcessor=new Gy,this.excalidrawProcessor=new Vy(t),this.mermaidProcessor=new hb,this.fragmentProcessor=new cb,this.gridProcessor=new lb,this.commentProcessor=new mb,this.dropProcessor=new gb,this.autoClosingProcessor=new vb,this.emojiProcessor=new yb,this.iconsProcessor=new bb,this.debugViewProcessor=new xb,this.calloutProcessor=new wb,this.templateProcessor=new kb(t),this.chartProcessor=new _b,this.defaultBackgroundProcessor=new Eb,this.referenceProcessor=new Sb,this.skipSlideProcessor=new jb}process(t,r){Qn.getInstance().options=r;let i=this.trimEnding(t,r),a,n=0;for(;i!=a;){n++,a&&(i=a);let X=this.multipleFileProcessor.process(i);if(a=this.templateProcessor.process(X,r),r.defaultTemplate=null,n>9){console.log("WARNING: Circuit in template hierarchy detected!");break}}let o=this.skipSlideProcessor.process(a,r),u=this.referenceProcessor.process(o),c=this.debugViewProcessor.process(u,r),p=this.autoClosingProcessor.process(c),f=this.defaultBackgroundProcessor.process(p,r),d=this.calloutProcessor.process(f),m=this.emojiProcessor.process(d),h=this.iconsProcessor.process(m),v=this.mermaidProcessor.process(h),b=this.blockProcessor.process(v),x=this.footnoteProcessor.process(b,r),A=this.excalidrawProcessor.process(x),B=this.imageProcessor.process(A),I=this.internalLinkProcessor.process(B,r),W=this.latexProcessor.process(I),V=this.formatProcessor.process(W),Q=this.fragmentProcessor.process(V,r),G=this.dropProcessor.process(Q,r),ne=this.gridProcessor.process(G,r),te=this.commentProcessor.process(ne),L=this.chartProcessor.process(te,r);return r.log&&(this.log("markdown","",t),this.log("merge & template",t,a),this.log("afterSkipSlideProcessor",a,o),this.log("afterReferenceProcessor",o,u),this.log("afterDebugViewProcessor",u,c),this.log("afterAutoClosingProcessor",c,p),this.log("defaultBackgroundProcessor",p,f),this.log("afterCalloutProcessor",f,d),this.log("afterEmojiProcessor",d,m),this.log("afterIconsProcessor",m,h),this.log("afterMermaidProcessor",h,v),this.log("afterBlockProcessor",v,b),this.log("afterFootNoteProcessor",b,x),this.log("afterExcalidrawProcessor",x,A),this.log("afterImageProcessor",A,B),this.log("afterInternalLinkProcessor",B,I),this.log("afterLatexProcessor",I,W),this.log("afterFormatProcessor",W,V),this.log("afterFragmentProcessor",V,Q),this.log("afterDropProcessor",Q,G),this.log("afterGridProcessor",G,ne),this.log("afterCommentProcessor",ne,te),this.log("afterChartProcessor",te,L)),L}trimEnding(t,r){let i=t+`
`,a;if((a=new RegExp(r.separator,"gmi").exec(i))!==null){let[n]=a;if(i.endsWith(n))return i.substring(0,i.lastIndexOf(n))}if((a=new RegExp(r.verticalSeparator,"gmi").exec(i))!==null){let[n]=a;if(i.endsWith(n))return i.substring(0,i.lastIndexOf(n))}return t}log(t,r,i){r!=i&&console.log(`${t}: ${i}`)}};var fu=Fa(Em()),Xn=Fa(require("path")),Cb=class{constructor(t){this.pluginDirectory=t.getPluginDirectory(),this.exportDirectory=t.getExportDirectory(),this.vaultDirectory=t.getVaultDirectory()}async export(t,r,i){let a=Xn.default.extname(t),n=Xn.default.basename(t).replaceAll(a,""),o=Xn.default.join(this.exportDirectory,n);await(0,fu.emptyDir)(o),await(0,fu.writeFile)(Xn.default.join(o,"index.html"),r),await(0,fu.copy)(Xn.default.join(this.pluginDirectory,"css"),Xn.default.join(o,"css")),await(0,fu.copy)(Xn.default.join(this.pluginDirectory,"dist"),Xn.default.join(o,"dist")),await(0,fu.copy)(Xn.default.join(this.pluginDirectory,"plugin"),Xn.default.join(o,"plugin"));for(let u of i)u.startsWith("http")||await(0,fu.copy)(Xn.default.join(this.vaultDirectory,u),Xn.default.join(o,u));window.open("file://"+o)}};var zm=Fa(Q0()),Fb=class{constructor(t){this.pluginDirectory=t.getPluginDirectory(),this.processor=new Ab(t),this.yaml=new of(t.getSettings()),this.exporter=new Cb(t),this.utils=t}async renderFile(t,r){let i=!1,a=!1,n=!1;zm.default.isEmpty(r)||(zm.default.has(r,"export")&&(i=r?.export),zm.default.has(r,"print-pdf")&&(a=!0),zm.default.has(r,"embed")&&(n=r?.embed)),i&&(Da.getInstance().reset(),Da.getInstance().enable());let o=(await(0,EE.readFile)(t.toString())).toString(),u=await this.render(o,a,n);return i&&(Da.getInstance().disable(),await this.exporter.export(t,u,Da.getInstance().getAll()),u=await this.render(o,a,n)),u}async render(t,r,i){let{yamlOptions:a,markdown:n}=this.yaml.parseYamlFrontMatter(t),o=this.yaml.getSlideOptions(a,r),u=this.yaml.getRevealOptions(o),{title:c}=o,p=this.getThemeUrl(o.theme),f=this.getHighlightThemeUrl(o.highlightTheme),d=this.yaml.getSlidifyOptions(o),m=this.processor.process(n,o),h=this.slidify(m,d),v=this.getCssPaths(o.css),b=this.yaml.getTemplateSettings(o),{enableCustomControls:x}=o,{enableChalkboard:A,enableOverview:B,enableMenu:I,enableTimeBar:W,enablePointer:V}=b,Q="";Da.getInstance().shouldCollect()||(Q="/");let G=Object.assign(o,{title:c,slides:h,themeUrl:p,highlightThemeUrl:f,cssPaths:v,base:Q,enableCustomControls:x,enableChalkboard:A,enableOverview:B,enableMenu:I,enablePointer:V,enableTimeBar:W,revealOptionsStr:JSON.stringify(u)}),ne=await this.getTemplate(i);return lP.render(ne,G)}isValidUrl(t){try{return new URL(t),!0}catch{return!1}}getHighlightThemeUrl(t){return this.getThemeUrl(t,"plugin/highlight/*.css")}getThemeUrl(t,r="dist/theme/*.css"){if(this.isValidUrl(t))return t;let a=qP.glob.sync(r,{cwd:this.pluginDirectory}).find(n=>(0,Pf.basename)(n).replace((0,Pf.extname)(n),"")===t);return a||t}async getTemplate(t=!1){let r=t?"template/embed.html":X0.template,i=(0,Pf.join)(this.pluginDirectory,r);return(await(0,EE.readFile)(i.toString())).toString()}slidify(t,r){return fP.slidify(t,r)}getCssPaths(t){let r=[];return t?(typeof t=="string"?r=t.split(","):r=t,r.map(i=>(this.isValidUrl(i),i))):r}};var IP=require("obsidian"),Pb=class{constructor(t,r){this._port=3e3;this._staticDir=SE.default.static;let i=Number(r);this._port=isNaN(i)?3e3:i,this._baseDirectory=t.getVaultDirectory(),this._pluginDirectory=t.getPluginDirectory(),this._app=(0,SE.default)(),this._revealRenderer=new Fb(t),this.filePath=null}getUrl(){return new URL(`http://localhost:${this._port}`)}start(){["plugin","dist","css"].forEach(t=>{this._app.use("/"+t,this._staticDir(Db.default.join(this._pluginDirectory,t)))}),this._app.get("/embed/*",async(t,r)=>{let i=t.originalUrl.replace("/embed",""),a=Db.default.join(this._baseDirectory,decodeURIComponent(i.split("?")[0])),n=await this._revealRenderer.renderFile(a,t.query);r.send(n)}),this._app.get(/(\w+\.md)/,async(t,r)=>{this.filePath=Db.default.join(this._baseDirectory,decodeURIComponent(t.url.split("?")[0]));let i=await this._revealRenderer.renderFile(this.filePath,t.quer
`),c=u.length;a>-1&&(c=a);for(let p=r;p<=c;p++){let f=u[p];if(f!=null)if(p==r)o+=f.substring(i)+`
`;else if(p==c){let d=f;n>-1&&(d=f.substring(0,n)),d.includes("^")&&(d=d.substring(0,d.lastIndexOf("^"))),o+=d+`
`}else o+=f+`
`}return o}similarity(t,r){let i=t,a=r;t.length<r.length&&(i=r,a=t);let n=i.length;return n==0?1:(n-this.editDistance(i,a))/n}editDistance(t,r){t=t.toLowerCase(),r=r.toLowerCase();let i=[];for(let a=0;a<=t.length;a++){let n=a;for(let o=0;o<=r.length;o++)if(a==0)i[o]=o;else if(o>0){let u=i[o-1];t.charAt(a-1)!=r.charAt(o-1)&&(u=Math.min(Math.min(u,n),i[o])+1),i[o-1]=n,n=u}a>0&&(i[r.length]=n)}return i[r.length]}};var X7=require("obsidian");var Q7=require("obsidian");var ka="top",ni="bottom",Ka="right",Ia="left",c1="auto",Tc=[ka,ni,Ka,Ia],Su="start",Ll="end",D7="clippingParents",l1="viewport",hd="popper",P7="reference",n3=Tc.reduce(function(e,t){return e.concat([t+"-"+Su,t+"-"+Ll])},[]),p1=[].concat(Tc,[c1]).reduce(function(e,t){return e.concat([t,t+"-"+Su,t+"-"+Ll])},[]),gue="beforeRead",vue="read",yue="afterRead",bue="beforeMain",xue="main",wue="afterMain",kue="beforeWrite",_ue="write",Eue="afterWrite",O7=[gue,vue,yue,bue,xue,wue,kue,_ue,Eue];function yi(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rs(e){var t=za(e).Element;return e instanceof t||e instanceof Element}function oi(e){var t=za(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function md(e){if(typeof ShadowRoot>"u")return!1;var t=za(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Sue(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},n=t.elements[r];!oi(n)||!yi(n)||(Object.assign(n.style,i),Object.keys(a).forEach(function(o){var u=a[o];u===!1?n.removeAttribute(o):n.setAttribute(o,u===!0?"":u)}))})}function jue(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],n=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),u=o.reduce(function(c,p){return c[p]="",c},{});!oi(a)||!yi(a)||(Object.assign(a.style,u),Object.keys(n).forEach(function(c){a.removeAttribute(c)}))})}}var T7={name:"applyStyles",enabled:!0,phase:"write",fn:Sue,effect:jue,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var es=Math.max,Nl=Math.min,ju=Math.round;function bo(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),i=1,a=1;if(oi(e)&&t){var n=e.offsetHeight,o=e.offsetWidth;o>0&&(i=ju(r.width)/o||1),n>0&&(a=ju(r.height)/n||1)}return{width:r.width/i,height:r.height/a,top:r.top/a,right:r.right/i,bottom:r.bottom/a,left:r.left/i,x:r.left/i,y:r.top/a}}function Ml(e){var t=bo(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Sg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&md(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function xn(e){return za(e).getComputedStyle(e)}function o3(e){return["table","td","th"].indexOf(yi(e))>=0}function Fi(e){return((Rs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Au(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(md(e)?e.host:null)||Fi(e)}function q7(e){return!oi(e)||xn(e).position==="fixed"?null:e.offsetParent}function Aue(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&oi(e)){var i=xn(e);if(i.position==="fixed")return null}var a=Au(e);for(md(a)&&(a=a.host);oi(a)&&["html","body"].indexOf(yi(a))<0;){var n=xn(a);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return a;a=a.parentNode}return null}function ts(e){for(var t=za(e),r=q7(e);r&&o3(r)&&xn(r).position==="static";)r=q7(r)
</grid>`,description:"<grid>",offset:6},{value:`<split >
</split>`,description:"<split>",offset:7},{value:`<style>
</style>`,description:"<style>",offset:9},{value:"<!-- slide -->",description:"@slide",offset:11},{name:"element",value:"<!-- element -->",description:"@element",strategy:"startsWith",offset:13},{value:`:::
:::`,description:"::: <name>",offset:4},{value:`::: block
:::`,description:"::: block",offset:11},{name:"small",value:'<span style="font-size:small"></span>',description:"small",strategy:"startsWith",offset:30},{name:"embed",value:"```slide\n{\n slide: [[]],\n page: 0\n}\n```",description:"@embed",strategy:"startsWith",offset:21}],Que=[{value:'drag=""',description:'drag="<width> <height>"',offset:6},{value:'drop=""',description:'drop="<x> <y>"',offset:6},{value:'flow=""',description:'flow="<col | row>"',offset:6},{value:'style=""',offset:7},{value:'class=""',offset:7},{value:'bg=""',description:'bg="<color name | #425232 | rgb(255, 99, 71) | hsl(0, 100%, 50%)>"',offset:4},{value:'pad=""',description:'pad="<all sides | vertical horizontal | top right bottom left>"',offset:5},{value:'align=""',description:'align="<left | right | center | justify | block | top | bottom | topleft | topright | bottomleft | bottomright | stretch>"',offset:7},{value:'border=""',description:'border="<width> <style> <color>"',offset:8},{value:'animate=""',description:'animate="<type> <speed>"',offset:9},{value:'opacity=""',description:'opacity="<0.0...1.0>"',offset:9},{value:'rotate=""',description:'rotate="<0...360>"',offset:8},{value:'filter=""',description:'filter="<blur | bright | contrast | grayscale | hue | invert | saturate | sepia>"',offset:8},{value:'frag=""',description:'frag="<index>"',offset:6}],Xue=[{value:"<width> <height>"}],Jue=[{value:"<x> <y>"},{value:"topleft"},{value:"top"},{value:"topright"},{value:"left"},{value:"center"},{value:"right"},{value:"bottomleft"},{value:"bottom"},{value:"bottomright"}],ece=[{value:"row"},{value:"col"}],tB=[{value:"#425232",description:"<#425232>"},{value:"rgb(255, 99, 71)",description:"<rgb(255, 99, 71)>"},{value:"hsl(0, 100%, 50%)",description:"<hsl(0, 100%, 50%)>"},{value:"black"},{value:"silver"},{value:"gray"},{value:"white"},{value:"maroon"},{value:"red"},{value:"purple"},{value:"fuchsia"},{value:"green"},{value:"lime"},{value:"olive"},{value:"yellow"},{value:"navy"},{value:"blue"},{value:"teal"},{value:"aqua"},{value:"orange"},{value:"aliceblue"},{value:"antiquewhite"},{value:"aquamarine"},{value:"azure"},{value:"beige"},{value:"bisque"},{value:"blanchedalmond"},{value:"blueviolet"},{value:"brown"},{value:"burlywood"},{value:"cadetblue"},{value:"chartreuse"},{value:"chocolate"},{value:"coral"},{value:"cornflowerblue"},{value:"cornsilk"},{value:"crimson"},{value:"cyan"},{value:"aqua"},{value:"darkblue"},{value:"darkcyan"},{value:"darkgoldenrod"},{value:"darkgray"},{value:"darkgreen"},{value:"darkgrey"},{value:"darkkhaki"},{value:"darkmagenta"},{value:"darkolivegreen"},{value:"darkorange"},{value:"darkorchid"},{value:"darkred"},{value:"darksalmon"},{value:"darkseagreen"},{value:"darkslateblue"},{value:"darkslategray"},{value:"darkslategrey"},{value:"darkturquoise"},{value:"darkviolet"},{value:"deeppink"},{value:"deepskyblue"},{value:"dimgray"},{value:"dimgrey"},{value:"dodgerblue"},{value:"firebrick"},{value:"floralwhite"},{value:"forestgreen"},{value:"gainsboro"},{value:"ghostwhite"},{value:"gold"},{value:"goldenrod"},{value:"greenyellow"},{value:"grey"},{value:"honeydew"},{value:"hotpink"},{value:"indianred"},{value:"indigo"},{value:"ivory"},{value:"khaki"},{value:"lavender"},{value:"lavenderblush"},{value:"lawngreen"},{value:"lemonchiffon"},{value:"lightblue"},{value:"lightcoral"},{value:"lightcyan"},{value:"lightgoldenrodyellow"},{value:"lightgray"},{value:"lightgreen"},{value:"lightgrey"},{value:"lightpink"},{value:"lightsalmon"},{value:"lightseagreen"},{value:"lightskyblue"},{value:"lightslategray"},{value:"lightslategrey"},{value:"lightsteelblue"},{value:"lightyellow"},{value:"limegreen"},{value:"linen"},{value:"magenta"},{value:"fuchsia"},{value:"mediumaquamarine"},{value:"mediumblue"},{value:"mediumorchid"},{value:"mediumpurple"},{value:"mediumseagreen"},{value:"mediumslateblue"},{value:"mediumspringgreen"},{value:"mediumturquoise"},{value:"mediumvioletred"},{value:"midnightblue"},{value:"mintcream"},{value:"mistyrose"},{value:"moccasin"},{value:"navajowhite"},{value:"oldlace"},{value:"olivedrab"},{value:"orangered"},{value:"orchid"},{valu
every beginning is difficult. As a leading user of Advanced Slides, you know how handy it was when you found wide documentation as well as help from the developers on the Obsidian forum or discord to get started with Advanced Slides.<br><br>
With over <b>240.000</b> downloads and over <b>40.000</b> users using Advanced Slides every day, Advanced Slides is on of the top 10 plugins for Obsidian.
<br><br>
However, with the growing number of users, the expenses for support also increase.<br>
On average we get <b>50-60</b> support requests via twitter, github, discord, forum or private message every week.
We invest <b>3-5</b> hours every week to answer these requests.<br> We do that in our free time.<br><br>
It is hard to keep pace and provide new users the same quality in their onboarding that you had before.
This is where you come into play.
A sponsorship of you allows the developers of Advanced Slides to spend more time on community work to give new users the same user experience you had when you started your Advanced Slides journey.
<br><br>
<a href="https://github.com/sponsors/MSzturc">Become a Sponsor</a>
<br><br>
`,c=o.contentEl.createEl("div");c.innerHTML=u,o.open()}}fixedEncodeURIComponent(r){return r.replace(/[!'()*]/g,function(i){return"%"+i.charCodeAt(0).toString(16)})}async openUrl(r){this.getViewInstance().setUrl(r.toString())}async activateView(){this.app.workspace.detachLeavesOfType(ms),await this.app.workspace.getLeaf(this.settings.paneMode).setViewState({type:ms,active:!1}),this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(ms)[0])}onunload(){let r=this.getViewInstance();r&&(this.app.workspace.detachLeavesOfType(ms),r.onClose()),this.revealServer.stop()}async loadSettings(){this.settings=Object.assign({},mce,await this.loadData())}async saveSettings(){await this.saveData(this.settings),this.onunload(),this.onload()}},_3=class extends Rr.EditorSuggest{constructor(r,i){super(r);this.plugin=i}onTrigger(r,i,a){let n=this.plugin.getViewInstance();return n&&(n.url=="about:blank"&&this.plugin.showView(),n.onLineChanged(r.line)),null}getSuggestions(r){throw new Error("Method not implemented.")}renderSuggestion(r,i){throw new Error("Method not implemented.")}selectSuggestion(r,i){throw new Error("Method not implemented.")}},E3=class extends Rr.PluginSettingTab{constructor(r,i){super(r,i);this.plugin=i}display(){let{containerEl:r}=this;r.empty(),r.createEl("h2",{text:"General Settings"}),new Rr.Setting(r).setName("Slide Preview Mode").setDesc("How should slide previews be displayed?").addDropdown(i=>{i.addOption("tab","as Tab").addOption("split","split Workspace").setValue(this.plugin.settings.paneMode).onChange(xi.default.debounce(async a=>{this.plugin.settings.paneMode=a,await this.plugin.saveSettings()},750))}),new Rr.Setting(r).setName("Port").setDesc("On which port should Advanced Slides run? (default: 3000)").addText(i=>i.setPlaceholder("3000").setValue(this.plugin.settings.port).onChange(xi.default.debounce(async a=>{this.plugin.settings.port=a,await this.plugin.saveSettings()},750))),new Rr.Setting(r).setName("Auto Reload").setDesc("Should the slide preview window be updated when a change in source file is detected?").addToggle(i=>i.setValue(this.plugin.settings.autoReload).onChange(xi.default.debounce(async a=>{this.plugin.settings.autoReload=a,await this.plugin.saveSettings()},750))),new Rr.Setting(r).setName("Auto Complete").setDesc("Do you want to auto-complete inputs?").addDropdown(i=>{i.addOption("always","Always").addOption("inPreview","only in Slide Preview").addOption("never","Never").setValue(this.plugin.settings.autoComplete).onChange(xi.default.debounce(async a=>{this.plugin.settings.autoComplete=a,await this.plugin.saveSettings()},750))}),new Rr.Setting(r).setName("Export Directory").setDesc("Where should Advanced Slides export presentations?").addSearch(i=>{new m1(this.app,i.inputEl),i.setPlaceholder("Folder").setValue(this.plugin.settings.exportDirectory).onChange(xi.default.debounce(async a=>{this.plugin.settings.exportDirectory=a,await this.plugin.saveSettings()},750))}),r.createEl("h2",{text:"Slide Settings"}),new Rr.Setting(r).setName("Theme").setDesc("Which theme should be used for your slides?").addSearch(i=>{new v1(this.app,i.inputEl),i.setPlaceholder("black").setValue(this.plugin.settings.theme).onChange(xi.default.debounce(async a=>{this.plugin.settings.theme=a,await this.plugin.saveSettings()},750))}),new Rr.Setting(r).setName("Highlight Theme").setDesc("Which highlight theme should be used for your slides?").addSearch(i=>{new b1(this.app,i.inputEl),i.setPlaceholder("zenburn").setValue(this.plugin.settings.highlightTheme).onChange(xi.default.debounce(async a=>{this.plugin.settings.highlightTheme=a,await this.plugin.saveSettings()},750))}),new Rr.Setting(r).setName("Transition Style").setDesc("How should the transition between slides look like?").addDropdown(i=>{i.addOption("none","none").addOption("fade","fade").addOption("slide","slide").addOption("convex","convex").addOption("concave","concave").addOption("zoom","zoom").setValue(this.plugin.settings.transition).onChange(xi.default.debounce(async a=>{this.plugin.settings.transition=a,await this.plugin.saveSettings()},750))}),new
/*!
JSZip v3.9.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/
/*!
* Copyright 2010 LearnBoost <dev@learnboost.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*!
* Copyright (c) 2018, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*!
* accepts
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* content-disposition
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* depd
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* destroy
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
/*!
* ee-first
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
/*!
* encodeurl
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/
/*!
* etag
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* finalhandler
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* forwarded
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* fresh
* Copyright(c) 2012 TJ Holowaychuk
* Copyright(c) 2016-2017 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* http-errors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* media-typer
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* methods
* Copyright(c) 2013-2014 TJ Holowaychuk
* Copyright(c) 2015-2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/
/*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* on-finished
* Copyright(c) 2013 Jonathan Ong
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* parseurl
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* proxy-addr
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* range-parser
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015-2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* send
* Copyright(c) 2012 TJ Holowaychuk
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* serve-static
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* statuses
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* type-is
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* unpipe
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* vary
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */