vault backup: 2025-07-19 19:02:04

This commit is contained in:
CrazyJasonwell committed 2025-07-19 19:02:04 +08:00
1 parent 68a462ec1d
commit de085cedc2
26 files changed
+65662 -30

No files matched your search

+2 -1
View File
@@ -45,5 +45,6 @@
"colored-tags",
"soundscapes",
"password-protection",
"share-note"
"share-note",
"xmind-viewer"
]
File diff suppressed because it is too large. Load diff
+11
View File
@@ -0,0 +1,11 @@
{
"id": "digitalgarden",
"name": "Digital Garden",
"version": "2.59.1",
"minAppVersion": "0.12.0",
"description": "Publish your notes to the web for others to enjoy. For free.",
"author": "Ole Eskild Steensen",
"authorUrl": "https://dg-docs.ole.dev/",
"isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/oleeskild"
}
+48
View File
@@ -0,0 +1,48 @@
button:disabled {
pointer-events: none;
opacity: 0.4;
}
.digital-garden-publish-status-view ul {
list-style-type: none;
position: relative;
margin-left: 5px;
margin-top: 0;
max-height: 250px;
overflow: auto;
}
.digital-garden-publish-status-view h2 {
margin-top: 0;
margin-bottom: 5px;
}
.digital-garden-publish-status-view .collapsable {
cursor: pointer;
margin-left: 10px;
}
.dg-settings > h1,
h2,
h3,
h4 {
margin-top: 40px;
}
.dg-settings .svg-icon {
margin-right: 10px;
}
@keyframes dg-rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.dg-rotate {
animation: dg-rotate 4s linear infinite;
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "flowershow",
"name": "Flowershow",
"version": "2.0.1",
"minAppVersion": "0.0.1",
"description": "Publish with Flowershow directly from your Obsidian vault.",
"author": "Rufus Pollock",
"authorUrl": "https://flowershow.app/",
"isDesktopOnly": false
}
+54
View File
@@ -0,0 +1,54 @@
.digital-garden-publish-status-view ul {
list-style-type: none;
position: relative;
margin-left: 5px;
margin-top: 0;
max-height: 250px;
overflow: auto;
}
.digital-garden-publish-status-view .progress-container {
height: 33px;
}
.digital-garden-publish-status-view .header-container {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
align-items: center;
}
.digital-garden-publish-status-view .title-container {
display: flex;
align-items: center;
}
.digital-garden-publish-status-view .title-container .collapsable {
margin: 20px 10px;
}
.digital-garden-publish-status-view .count {
margin-left: 10px;
}
.digital-garden-publish-status-view h2 {
margin-top: 0;
margin-bottom: 5px;
}
.digital-garden-publish-status-view .collapsable {
cursor: pointer;
margin-left: 10px;
}
.dg-settings>h1,h2,h3,h4 {
margin-top: 40px;
}
.dg-settings .svg-icon {
margin-right: 10px;
}
.pr-link {
margin-bottom: 10px
}
+567
View File
@@ -0,0 +1,567 @@
var $Ut=Object.create,cC=Object.defineProperty,XUt=Object.getPrototypeOf,ZUt=Object.prototype.hasOwnProperty,YUt=Object.getOwnPropertyNames,eBt=Object.getOwnPropertyDescriptor;var dr=t=>cC(t,"__esModule",{value:!0});var l=(t,e)=>()=>(e||(e={exports:{}},t(e.exports,e)),e.exports),yr=(t,e)=>{for(var r in e)cC(t,r,{get:e[r],enumerable:!0})},tBt=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YUt(e))!ZUt.call(t,i)&&i!=="default"&&cC(t,i,{get:()=>e[i],enumerable:!(r=eBt(e,i))||r.enumerable});return t},Dr=t=>tBt(dr(cC(t!=null?$Ut(XUt(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var ZB=l((KVr,sX)=>{var hg=1e3,bg=hg*60,gg=bg*60,xy=gg*24,oBt=xy*7,nBt=xy*365.25;sX.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return uBt(t);if(r==="number"&&isFinite(t))return e.long?mBt(t):pBt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function uBt(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*nBt;case"weeks":case"week":case"w":return r*oBt;case"days":case"day":case"d":return r*xy;case"hours":case"hour":case"hrs":case"hr":case"h":return r*gg;case"minutes":case"minute":case"mins":case"min":case"m":return r*bg;case"seconds":case"second":case"secs":case"sec":case"s":return r*hg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function pBt(t){var e=Math.abs(t);return e>=xy?Math.round(t/xy)+"d":e>=gg?Math.round(t/gg)+"h":e>=bg?Math.round(t/bg)+"m":e>=hg?Math.round(t/hg)+"s":t+"ms"}function mBt(t){var e=Math.abs(t);return e>=xy?dC(t,e,xy,"day"):e>=gg?dC(t,e,gg,"hour"):e>=bg?dC(t,e,bg,"minute"):e>=hg?dC(t,e,hg,"second"):t+" ms"}function dC(t,e,r,i){var s=e>=r*1.5;return Math.round(t/r)+" "+i+(s?"s":"")}});var oX=l((WVr,aX)=>{function cBt(t){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=s,r.enabled=n,r.humanize=ZB(),r.destroy=p,Object.keys(t).forEach(m=>{r[m]=t[m]}),r.names=[],r.skips=[],r.formatters={};function e(m){let d=0;for(let y=0;y<m.length;y++)d=(d<<5)-d+m.charCodeAt(y),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(m){let d,y=null,c,h;function g(...S){if(!g.enabled)return;let N=g,T=Number(new Date),I=T-(d||T);N.diff=I,N.prev=d,N.curr=T,d=T,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let v=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(D,G)=>{if(D==="%%")return"%";v++;let E=r.formatters[G];if(typeof E=="function"){let j=S[v];D=E.call(N,j),S.splice(v,1),v--}return D}),r.formatArgs.call(N,S),(N.log||r.log).apply(N,S)}return g.namespace=m,g.useColors=r.useColors(),g.color=r.selectColor(m),g.extend=i,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(c!==r.namespaces&&(c=r.namespaces,h=r.enabled(m)),h),set:S=>{y=S}}),typeof r.init=="function"&&r.init(g),g}function i(m,d){let y=r(this.namespace+(typeof d=="undefined"?":":d)+m);return y.log=this.log,y}function s(m){r.save(m),r.namespaces=m,r.names=[],r.skips=[];let d=(typeof m=="string"?m:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let y of d)y[0]==="-"?r.skips.push(y.slice(1)):r.names.push(y)}function a(m,d){let y=0,c=0,h=-1,g=0;for(;y<m.length;)if(c<d.length&&(d[c]===m[y]||d[c]==="*"))d[c]==="*"?(h=c,g=y,c++):(y++,c++);else if(h!==-1)c=h+1,g++,y=g;else return!1;for(;c<d.length&&d[c]==="*";)c++;return c===d.length}function o(){let m=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),m}function n(m){for(let d of r.skips)if(a(m,d))return!1;for(let d of r.names)if(a(m,d))return!0;return!1}function u(m){return m instanceof Error?m.stack||m.message:m}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}aX.exports=cBt});var Oa=l((Mn,yC)=>{Mn.formatArgs=lBt;Mn.save=dBt;Mn.load=yBt;Mn.useColors=hBt;Mn.storage=bBt();Mn.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Mn.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900",Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(YB)});var Tm=l((pX,Ql)=>{(function(){var t,e,r,i,s,a,o,n=[].slice,u={}.hasOwnProperty;t=function(){var p,m,d,y,c,h;if(h=arguments[0],c=2<=arguments.length?n.call(arguments,1):[],s(Object.assign))Object.assign.apply(null,arguments);else for(p=0,d=c.length;p<d;p++)if(y=c[p],y!=null)for(m in y)!u.call(y,m)||(h[m]=y[m]);return h},s=function(p){return!!p&&Object.prototype.toString.call(p)==="[object Function]"},a=function(p){var m;return!!p&&((m=typeof p)==="function"||m==="object")},r=function(p){return s(Array.isArray)?Array.isArray(p):Object.prototype.toString.call(p)==="[object Array]"},i=function(p){var m;if(r(p))return!p.length;for(m in p)if(!!u.call(p,m))return!1;return!0},o=function(p){var m,d;return a(p)&&(d=Object.getPrototypeOf(p))&&(m=d.constructor)&&typeof m=="function"&&m instanceof m&&Function.prototype.toString.call(m)===Function.prototype.toString.call(Object)},e=function(p){return s(p.valueOf)?p.valueOf():p},Ql.exports.assign=t,Ql.exports.isFunction=s,Ql.exports.isObject=a,Ql.exports.isArray=r,Ql.exports.isEmpty=i,Ql.exports.isPlainObject=o,Ql.exports.getValue=e}).call(pX)});var eG=l((mX,cX)=>{(function(){var t;cX.exports=t=function(){function e(){}return e.prototype.hasFeature=function(r,i){return!0},e.prototype.createDocumentType=function(r,i,s){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(r,i,s){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(r,i){throw new Error("This DOM method is not implemented.")},e}()}).call(mX)});var yX=l((lX,dX)=>{(function(){var t;dX.exports=t=function(){function e(){}return e.prototype.handleError=function(r){throw new Error(r)},e}()}).call(lX)});var gX=l((hX,bX)=>{(function(){var t;bX.exports=t=function(){function e(r){this.arr=r||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(r){return this.arr[r]||null},e.prototype.contains=function(r){return this.arr.indexOf(r)!==-1},e}()}).call(hX)});var NX=l((SX,fX)=>{(function(){var t,e,r;e=yX(),r=gX(),fX.exports=t=function(){function i(){var s;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=s=Object.create(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(s){return this.params.hasOwnProperty(s)?this.params[s]:null},i.prototype.canSetParameter=function(s,a){return!0},i.prototype.setParameter=function(s,a){return a!=null?this.params[s]=a:delete this.params[s]},i}()}).call(SX)});var ya=l((IX,TX)=>{(function(){TX.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(IX)});var tG=l((AX,vX)=>{(function(){var t,e,r;t=ya(),r=lu(),vX.exports=e=function(){function i(s,a,o){if(this.parent=s,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(o),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(s){return this.options.writer.attribute(this,this.options.writer.filterOptions(s))},i.prototype.debugInfo=function(s){return s=s||this.name,s==null?"parent: <"+this.parent.name+">":"attribute: {"+s+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(s){return!(s.namespaceURI!==this.namespaceURI||s.prefix!==this.prefix||s.localName!==this.localName||s.value!==this.value)},i}()}).call(AX)});var bC=l((kX,CX)=>{(function(){var t;CX.exports=t=function(){function e(r){this.nodes=r}return Object.definePro Line truncated
`,v.offset=(G=I.offset)!=null?G:0,v.dontPrettyTextNodes=(E=(j=I.dontPrettyTextNodes)!=null?j:I.dontprettytextnodes)!=null?E:0,v.spaceBeforeSlash=(L=(V=I.spaceBeforeSlash)!=null?V:I.spacebeforeslash)!=null?L:"",v.spaceBeforeSlash===!0&&(v.spaceBeforeSlash=" "),v.suppressPrettyCount=0,v.user={},v.state=e.None,v},T.prototype.indent=function(I,v,A){var D;return!v.pretty||v.suppressPrettyCount?"":v.pretty&&(D=(A||0)+v.offset+1,D>0)?new Array(D).join(v.indent):""},T.prototype.endline=function(I,v,A){return!v.pretty||v.suppressPrettyCount?"":v.newline},T.prototype.attribute=function(I,v,A){var D;return this.openAttribute(I,v,A),D=" "+I.name+'="'+I.value+'"',this.closeAttribute(I,v,A),D},T.prototype.cdata=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A)+"<![CDATA[",v.state=e.InsideTag,D+=I.value,v.state=e.CloseTag,D+="]]>"+this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),D},T.prototype.comment=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A)+"<!-- ",v.state=e.InsideTag,D+=I.value,v.state=e.CloseTag,D+=" -->"+this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),D},T.prototype.declaration=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A)+"<?xml",v.state=e.InsideTag,D+=' version="'+I.version+'"',I.encoding!=null&&(D+=' encoding="'+I.encoding+'"'),I.standalone!=null&&(D+=' standalone="'+I.standalone+'"'),v.state=e.CloseTag,D+=v.spaceBeforeSlash+"?>",D+=this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),D},T.prototype.docType=function(I,v,A){var D,G,E,j,L;if(A||(A=0),this.openNode(I,v,A),v.state=e.OpenTag,j=this.indent(I,v,A),j+="<!DOCTYPE "+I.root().name,I.pubID&&I.sysID?j+=' PUBLIC "'+I.pubID+'" "'+I.sysID+'"':I.sysID&&(j+=' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(j+=" [",j+=this.endline(I,v,A),v.state=e.InsideTag,L=I.children,G=0,E=L.length;G<E;G++)D=L[G],j+=this.writeChildNode(D,v,A+1);v.state=e.CloseTag,j+="]"}return v.state=e.CloseTag,j+=v.spaceBeforeSlash+">",j+=this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),j},T.prototype.element=function(I,v,A){var D,G,E,j,L,V,_,W,re,H,ye,le,be,ce;A||(A=0),H=!1,ye="",this.openNode(I,v,A),v.state=e.OpenTag,ye+=this.indent(I,v,A)+"<"+I.name,le=I.attribs;for(re in le)!N.call(le,re)||(D=le[re],ye+=this.attribute(D,v,A));if(E=I.children.length,j=E===0?null:I.children[0],E===0||I.children.every(function(ue){return(ue.type===t.Text||ue.type===t.Raw)&&ue.value===""}))v.allowEmpty?(ye+=">",v.state=e.CloseTag,ye+="</"+I.name+">"+this.endline(I,v,A)):(v.state=e.CloseTag,ye+=v.spaceBeforeSlash+"/>"+this.endline(I,v,A));else if(v.pretty&&E===1&&(j.type===t.Text||j.type===t.Raw)&&j.value!=null)ye+=">",v.state=e.InsideTag,v.suppressPrettyCount++,H=!0,ye+=this.writeChildNode(j,v,A+1),v.suppressPrettyCount--,H=!1,v.state=e.CloseTag,ye+="</"+I.name+">"+this.endline(I,v,A);else{if(v.dontPrettyTextNodes){for(be=I.children,L=0,_=be.length;L<_;L++)if(G=be[L],(G.type===t.Text||G.type===t.Raw)&&G.value!=null){v.suppressPrettyCount++,H=!0;break}}for(ye+=">"+this.endline(I,v,A),v.state=e.InsideTag,ce=I.children,V=0,W=ce.length;V<W;V++)G=ce[V],ye+=this.writeChildNode(G,v,A+1);v.state=e.CloseTag,ye+=this.indent(I,v,A)+"</"+I.name+">",H&&v.suppressPrettyCount--,ye+=this.endline(I,v,A),v.state=e.None}return this.closeNode(I,v,A),ye},T.prototype.writeChildNode=function(I,v,A){switch(I.type){case t.CData:return this.cdata(I,v,A);case t.Comment:return this.comment(I,v,A);case t.Element:return this.element(I,v,A);case t.Raw:return this.raw(I,v,A);case t.Text:return this.text(I,v,A);case t.ProcessingInstruction:return this.processingInstruction(I,v,A);case t.Dummy:return"";case t.Declaration:return this.declaration(I,v,A);case t.DocType:return this.docType(I,v,A);case t.AttributeDeclaration:return this.dtdAttList(I,v,A);case t.ElementDeclaration:return this.dtdElement(I,v,A);case t.EntityDeclaration:return this.dtdEntity(I,v,A);case t.NotationDeclaration:return this.dtdNotation(I,v,A);default:throw new Error("Unknown XML node type: "+I.constructor.name)}},T.prototype.processingInstruction=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A)+"<?",v.state=e.InsideTag,D+=I.target,I.value&&(D+=" "+I.value),v.state=e.CloseTag,D+=v.spaceBeforeSlash+"?>",D+=this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),D},T.prototype.raw=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A),v.state=e.InsideTag,D+=I.value,v.state=e.CloseTag,D+=this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),D},T.prototype.text=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A),v.state=e.InsideTag,D+=I.value,v.state=e.CloseTag,D+=this.endline(I,v,A),v.state=e.None,this.closeNode(I,v,A),D},T.prototype.dtdAttList=function(I,v,A){var D;return this.openNode(I,v,A),v.state=e.OpenTag,D=this.indent(I,v,A)+"<!ATTLIST",v.state=e.InsideTag,D+=" "+I.elementName+" "+I.attributeName+" "+ Line truncated
`||ee==="\r"||ee===" "}function v(ee){return ee==='"'||ee==="'"}function A(ee){return ee===">"||I(ee)}function D(ee,U){return ee.test(U)}function G(ee,U){return!D(ee,U)}var E=0;t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(ee){var U=t.ENTITIES[ee],we=typeof U=="number"?String.fromCharCode(U):U;t.ENTITIES[ee]=we});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;E=t.STATE;function L(ee,U,we){ee[U]&&ee[U](we)}function V(ee,U,we){ee.textNode&&_(ee),L(ee,U,we)}function _(ee){ee.textNode=W(ee.opt,ee.textNode),ee.textNode&&L(ee,"ontext",ee.textNode),ee.textNode=""}function W(ee,U){return ee.trim&&(U=U.trim()),ee.normalize&&(U=U.replace(/\s+/g," ")),U}function re(ee,U){return _(ee),ee.trackPosition&&(U+=`
Line: `+ee.line+`
Column: `+ee.column+`
Char: `+ee.c),U=new Error(U),ee.error=U,L(ee,"onerror",U),ee}function H(ee){return ee.sawRoot&&!ee.closedRoot&&ye(ee,"Unclosed root tag"),ee.state!==E.BEGIN&&ee.state!==E.BEGIN_WHITESPACE&&ee.state!==E.TEXT&&re(ee,"Unexpected end"),_(ee),ee.c="",ee.closed=!0,L(ee,"onend"),r.call(ee,ee.strict,ee.opt),ee}function ye(ee,U){if(typeof ee!="object"||!(ee instanceof r))throw new Error("bad call to strictFail");ee.strict&&re(ee,U)}function le(ee){ee.strict||(ee.tagName=ee.tagName[ee.looseCase]());var U=ee.tags[ee.tags.length-1]||ee,we=ee.tag={name:ee.tagName,attributes:{}};ee.opt.xmlns&&(we.ns=U.ns),ee.attribList.length=0,V(ee,"onopentagstart",we)}function be(ee,U){var we=ee.indexOf(":"),oe=we<0?["",ee]:ee.split(":"),De=oe[0],Ce=oe[1];return U&&ee==="xmlns"&&(De="xmlns",Ce=""),{prefix:De,local:Ce}}function ce(ee){if(ee.strict||(ee.attribName=ee.attribName[ee.looseCase]()),ee.attribList.indexOf(ee.attribName)!==-1||ee.tag.attributes.hasOwnProperty(ee.attribName)){ee.attribName=ee.attribValue="";return}if(ee.opt.xmlns){var U=be(ee.attribName,!0),we=U.prefix,oe=U.local;if(we==="xmlns")if(oe==="xml"&&ee.attribValue!==y)ye(ee,"xml: prefix must be bound to "+y+`
Actual: `+ee.attribValue);else if(oe==="xmlns"&&ee.attribValue!==c)ye(ee,"xmlns: prefix must be bound to "+c+`
Actual: `+ee.attribValue);else{var De=ee.tag,Ce=ee.tags[ee.tags.length-1]||ee;De.ns===Ce.ns&&(De.ns=Object.create(Ce.ns)),De.ns[oe]=ee.attribValue}ee.attribList.push([ee.attribName,ee.attribValue])}else ee.tag.attributes[ee.attribName]=ee.attribValue,V(ee,"onattribute",{name:ee.attribName,value:ee.attribValue});ee.attribName=ee.attribValue=""}function ue(ee,U){if(ee.opt.xmlns){var we=ee.tag,oe=be(ee.tagName);we.prefix=oe.prefix,we.local=oe.local,we.uri=we.ns[oe.prefix]||"",we.prefix&&!we.uri&&(ye(ee,"Unbound namespace prefix: "+JSON.stringify(ee.tagName)),we.uri=oe.prefix);var De=ee.tags[ee.tags.length-1]||ee;we.ns&&De.ns!==we.ns&&Object.keys(we.ns).forEach(function(kr){V(ee,"onopennamespace",{prefix:kr,uri:we.ns[kr]})});for(var Ce=0,Te=ee.attribList.length;Ce<Te;Ce++){var Qe=ee.attribList[Ce],_e=Qe[0],Ue=Qe[1],tt=be(_e,!0),Jt=tt.prefix,st=tt.local,mt=Jt===""?"":we.ns[Jt]||"",vr={name:_e,value:Ue,prefix:Jt,local:st,uri:mt};Jt&&Jt!=="xmlns"&&!mt&&(ye(ee,"Unbound namespace prefix: "+JSON.stringify(Jt)),vr.uri=Jt),ee.tag.attributes[_e]=vr,V(ee,"onattribute",vr)}ee.attribList.length=0}ee.tag.isSelfClosing=!!U,ee.sawRoot=!0,ee.tags.push(ee.tag),V(ee,"onopentag",ee.tag),U||(!ee.noscript&&ee.tagName.toLowerCase()==="script"?ee.state=E.SCRIPT:ee.state=E.TEXT,ee.tag=null,ee.tagName=""),ee.attribName=ee.attribValue="",ee.attribList.length=0}function Ie(ee){if(!ee.tagName){ye(ee,"Weird empty close tag."),ee.textNode+="</>",ee.state=E.TEXT;return}if(ee.script){if(ee.tagName!=="script"){ee.script+="</"+ee.tagName+">",ee.tagName="",ee.state=E.SCRIPT;return}V(ee,"onscript",ee.script),ee.script=""}var U=ee.tags.length,we=ee.tagName;ee.strict||(we=we[ee.looseCase]());for(var oe=we;U--;){var De=ee.tags[U];if(De.name!==oe)ye(ee,"Unexpected close tag");else break}if(U<0){ye(ee,"Unmatched closing tag: "+ee.tagName),ee.textNode+="</"+ee.tagName+">",ee.state=E.TEXT;return}ee.tagName=we;for(var Ce=ee.tags.length;Ce-- >U;){var Te=ee.tag=ee.tags.pop();ee.tagName=ee.tag.name,V(ee,"onclosetag",ee.tagName);var Qe={};for(var _e in Te.ns)Qe[_e]=Te.ns[_e];var Ue=ee.tags[ee.tags.length-1]||ee;ee.opt.xmlns&&Te.ns!==Ue.ns&&Object.keys(Te.ns).forEach(function(tt){var Jt=Te.ns[tt];V(ee,"onclosenamespace",{prefix:tt,uri:Jt})})}U===0&&(ee.closedRoot=!0),ee.tagName=ee.attribValue=ee.attribName="",ee.attribList.length=0,ee.state=E.TEXT}function Ae(ee){var U=ee.entity,we=U.toLowerCase(),oe,De="";return ee.ENTITIES[U]?ee.ENTITIES[U]:ee.ENTITIES[we]?ee.ENTITIES[we]:(U=we,U.charAt(0)==="#"&&(U.charAt(1)==="x"?(U=U.slice(2),oe=parseInt(U,16),De=oe.toString(16)):(U=U.slice(1),oe=parseInt(U,10),De=oe.toString(10))),U=U.replace(/^0+/,""),isNaN(oe)||De.toLowerCase()!==U?(ye(ee,"Invalid character entity"),"&"+ee.entity+";"):String.fromCodePoint(oe))}function Pe(ee,U){U==="<"?(ee.state=E.OPEN_WAKA,ee.startTagPosition=ee.position):I(U)||(ye(ee,"Non-whitespace before first tag."),ee.textNode=U,ee.state=E.TEXT)}function qe(ee,U){var we="";return U<ee.length&&(we=ee.charAt(U)),we}function We(ee){var U=this;if(this.error)throw this.error;if(U.closed)return re(U,"Cannot write after close. Assign an onready handler.");if(ee===null)return H(U);typeof ee=="object"&&(ee=ee.toString());for(var we=0,oe="";oe=qe(ee,we++),U.c=oe,!!oe;)switch(U.trackPosition&&(U.position++,oe===`
`?(U.line++,U.column=0):U.column++),U.state){case E.BEGIN:if(U.state=E.BEGIN_WHITESPACE,oe==="\uFEFF")continue;Pe(U,oe);continue;case E.BEGIN_WHITESPACE:Pe(U,oe);continue;case E.TEXT:if(U.sawRoot&&!U.closedRoot){for(var De=we-1;oe&&oe!=="<"&&oe!=="&";)oe=qe(ee,we++),oe&&U.trackPosition&&(U.position++,oe===`
`?(U.line++,U.column=0):U.column++);U.textNode+=ee.substring(De,we-1)}oe==="<"&&!(U.sawRoot&&U.closedRoot&&!U.strict)?(U.state=E.OPEN_WAKA,U.startTagPosition=U.position):(!I(oe)&&(!U.sawRoot||U.closedRoot)&&ye(U,"Text data outside of root node."),oe==="&"?U.state=E.TEXT_ENTITY:U.textNode+=oe);continue;case E.SCRIPT:oe==="<"?U.state=E.SCRIPT_ENDING:U.script+=oe;continue;case E.SCRIPT_ENDING:oe==="/"?U.state=E.CLOSE_TAG:(U.script+="<"+oe,U.state=E.SCRIPT);continue;case E.OPEN_WAKA:if(oe==="!")U.state=E.SGML_DECL,U.sgmlDecl="";else if(!I(oe))if(D(g,oe))U.state=E.OPEN_TAG,U.tagName=oe;else if(oe==="/")U.state=E.CLOSE_TAG,U.tagName="";else if(oe==="?")U.state=E.PROC_INST,U.procInstName=U.procInstBody="";else{if(ye(U,"Unencoded <"),U.startTagPosition+1<U.position){var Ce=U.position-U.startTagPosition;oe=new Array(Ce).join(" ")+oe}U.textNode+="<"+oe,U.state=E.TEXT}continue;case E.SGML_DECL:if(U.sgmlDecl+oe==="--"){U.state=E.COMMENT,U.comment="",U.sgmlDecl="";continue}U.doctype&&U.doctype!==!0&&U.sgmlDecl?(U.state=E.DOCTYPE_DTD,U.doctype+="<!"+U.sgmlDecl+oe,U.sgmlDecl=""):(U.sgmlDecl+oe).toUpperCase()===m?(V(U,"onopencdata"),U.state=E.CDATA,U.sgmlDecl="",U.cdata=""):(U.sgmlDecl+oe).toUpperCase()===d?(U.state=E.DOCTYPE,(U.doctype||U.sawRoot)&&ye(U,"Inappropriately located doctype declaration"),U.doctype="",U.sgmlDecl=""):oe===">"?(V(U,"onsgmldeclaration",U.sgmlDecl),U.sgmlDecl="",U.state=E.TEXT):(v(oe)&&(U.state=E.SGML_DECL_QUOTED),U.sgmlDecl+=oe);continue;case E.SGML_DECL_QUOTED:oe===U.q&&(U.state=E.SGML_DECL,U.q=""),U.sgmlDecl+=oe;continue;case E.DOCTYPE:oe===">"?(U.state=E.TEXT,V(U,"ondoctype",U.doctype),U.doctype=!0):(U.doctype+=oe,oe==="["?U.state=E.DOCTYPE_DTD:v(oe)&&(U.state=E.DOCTYPE_QUOTED,U.q=oe));continue;case E.DOCTYPE_QUOTED:U.doctype+=oe,oe===U.q&&(U.q="",U.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:oe==="]"?(U.doctype+=oe,U.state=E.DOCTYPE):oe==="<"?(U.state=E.OPEN_WAKA,U.startTagPosition=U.position):v(oe)?(U.doctype+=oe,U.state=E.DOCTYPE_DTD_QUOTED,U.q=oe):U.doctype+=oe;continue;case E.DOCTYPE_DTD_QUOTED:U.doctype+=oe,oe===U.q&&(U.state=E.DOCTYPE_DTD,U.q="");continue;case E.COMMENT:oe==="-"?U.state=E.COMMENT_ENDING:U.comment+=oe;continue;case E.COMMENT_ENDING:oe==="-"?(U.state=E.COMMENT_ENDED,U.comment=W(U.opt,U.comment),U.comment&&V(U,"oncomment",U.comment),U.comment=""):(U.comment+="-"+oe,U.state=E.COMMENT);continue;case E.COMMENT_ENDED:oe!==">"?(ye(U,"Malformed comment"),U.comment+="--"+oe,U.state=E.COMMENT):U.doctype&&U.doctype!==!0?U.state=E.DOCTYPE_DTD:U.state=E.TEXT;continue;case E.CDATA:oe==="]"?U.state=E.CDATA_ENDING:U.cdata+=oe;continue;case E.CDATA_ENDING:oe==="]"?U.state=E.CDATA_ENDING_2:(U.cdata+="]"+oe,U.state=E.CDATA);continue;case E.CDATA_ENDING_2:oe===">"?(U.cdata&&V(U,"oncdata",U.cdata),V(U,"onclosecdata"),U.cdata="",U.state=E.TEXT):oe==="]"?U.cdata+="]":(U.cdata+="]]"+oe,U.state=E.CDATA);continue;case E.PROC_INST:oe==="?"?U.state=E.PROC_INST_ENDING:I(oe)?U.state=E.PROC_INST_BODY:U.procInstName+=oe;continue;case E.PROC_INST_BODY:if(!U.procInstBody&&I(oe))continue;oe==="?"?U.state=E.PROC_INST_ENDING:U.procInstBody+=oe;continue;case E.PROC_INST_ENDING:oe===">"?(V(U,"onprocessinginstruction",{name:U.procInstName,body:U.procInstBody}),U.procInstName=U.procInstBody="",U.state=E.TEXT):(U.procInstBody+="?"+oe,U.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:D(S,oe)?U.tagName+=oe:(le(U),oe===">"?ue(U):oe==="/"?U.state=E.OPEN_TAG_SLASH:(I(oe)||ye(U,"Invalid character in tag name"),U.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:oe===">"?(ue(U,!0),Ie(U)):(ye(U,"Forward-slash in opening tag not followed by >"),U.state=E.ATTRIB);continue;case E.ATTRIB:if(I(oe))continue;oe===">"?ue(U):oe==="/"?U.state=E.OPEN_TAG_SLASH:D(g,oe)?(U.attribName=oe,U.attribValue="",U.state=E.ATTRIB_NAME):ye(U,"Invalid attribute name");continue;case E.ATTRIB_NAME:oe==="="?U.state=E.ATTRIB_VALUE:oe===">"?(ye(U,"Attribute without value"),U.attribValue=U.attribName,ce(U),ue(U)):I(oe)?U.state=E.ATTRIB_NAME_SAW_WHITE:D(S,oe)?U.attribName+=oe:ye(U,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if(oe==="=")U.state=E.ATTRIB_VALUE;else{if(I(oe))continue;ye(U,"Attribute without value"),U.tag.attributes[U.attribName]="",U.attribValue="",V(U,"onattribute",{name:U.attribName,value:""}),U.attribName="",oe===">"?ue(U):D(g,oe)?(U.attribName=oe,U.state=E.ATTRIB_NAME):(ye(U,"Invalid attribute name"),U.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(I(oe))continue;v(oe)?(U.q=oe,U.state=E.ATTRIB_VALUE_QUOTED):(U.opt.unquotedAttributeValues||re(U,"Unquoted attribute value"),U.state=E.ATTRIB_VALUE_UNQUOTED,U.attribValue=oe);continue;case E.ATTRIB_VALUE_QUOTED:if(oe!==U.q){oe==="&"?U.state=E.ATTRIB_VALUE_ENTITY_Q:U.attribValue+=oe;continue}ce(U),U.q="",U.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:I(oe)?U.state=E.ATTRIB:oe===">"?ue(U):oe==="/"?U.state=E.OPEN_TAG_SLASH:D(g,oe)?(ye(U,"No whitespace between attributes"),U.attribName=oe,U.attribValue="",U.state=E.ATTRIB_NAME):ye(U,"Invalid attribute na Line truncated
GFS4: `),console.error(t)});Ms[bo]||(lY=global[bo]||[],cY(Ms,lY),Ms.close=function(t){function e(r,i){return t.call(Ms,r,function(s){s||dY(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,LC,{value:t}),e}(Ms.close),Ms.closeSync=function(t){function e(r){t.apply(Ms,arguments),dY()}return Object.defineProperty(e,LC,{value:t}),e}(Ms.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ry(Ms[bo]),require("assert").equal(Ms[bo].length,0)}));var lY;global[bo]||cY(global,Ms[bo]);hG.exports=bG(wBt(Ms));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ms.__patched&&(hG.exports=bG(Ms),Ms.__patched=!0);function bG(t){EBt(t),t.gracefulify=bG,t.createReadStream=A,t.createWriteStream=D;var e=t.readFile;t.readFile=r;function r(j,L,V){return typeof L=="function"&&(V=L,L=null),_(j,L,V);function _(W,re,H,ye){return e(W,re,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?Ig([_,[W,re,H],le,ye||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=s;function s(j,L,V,_){return typeof V=="function"&&(_=V,V=null),W(j,L,V,_);function W(re,H,ye,le,be){return i(re,H,ye,function(ce){ce&&(ce.code==="EMFILE"||ce.code==="ENFILE")?Ig([W,[re,H,ye,le],ce,be||Date.now(),Date.now()]):typeof le=="function"&&le.apply(this,arguments)})}}var a=t.appendFile;a&&(t.appendFile=o);function o(j,L,V,_){return typeof V=="function"&&(_=V,V=null),W(j,L,V,_);function W(re,H,ye,le,be){return a(re,H,ye,function(ce){ce&&(ce.code==="EMFILE"||ce.code==="ENFILE")?Ig([W,[re,H,ye,le],ce,be||Date.now(),Date.now()]):typeof le=="function"&&le.apply(this,arguments)})}}var n=t.copyFile;n&&(t.copyFile=u);function u(j,L,V,_){return typeof V=="function"&&(_=V,V=0),W(j,L,V,_);function W(re,H,ye,le,be){return n(re,H,ye,function(ce){ce&&(ce.code==="EMFILE"||ce.code==="ENFILE")?Ig([W,[re,H,ye,le],ce,be||Date.now(),Date.now()]):typeof le=="function"&&le.apply(this,arguments)})}}var p=t.readdir;t.readdir=d;var m=/^v[0-5]\./;function d(j,L,V){typeof L=="function"&&(V=L,L=null);var _=m.test(process.version)?function(H,ye,le,be){return p(H,W(H,ye,le,be))}:function(H,ye,le,be){return p(H,ye,W(H,ye,le,be))};return _(j,L,V);function W(re,H,ye,le){return function(be,ce){be&&(be.code==="EMFILE"||be.code==="ENFILE")?Ig([_,[re,H,ye],be,le||Date.now(),Date.now()]):(ce&&ce.sort&&ce.sort(),typeof ye=="function"&&ye.call(this,be,ce))}}}if(process.version.substr(0,4)==="v0.8"){var y=PBt(t);N=y.ReadStream,I=y.WriteStream}var c=t.ReadStream;c&&(N.prototype=Object.create(c.prototype),N.prototype.open=T);var h=t.WriteStream;h&&(I.prototype=Object.create(h.prototype),I.prototype.open=v),Object.defineProperty(t,"ReadStream",{get:function(){return N},set:function(j){N=j},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(j){I=j},enumerable:!0,configurable:!0});var g=N;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(j){g=j},enumerable:!0,configurable:!0});var S=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(j){S=j},enumerable:!0,configurable:!0});function N(j,L){return this instanceof N?(c.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function T(){var j=this;E(j.path,j.flags,j.mode,function(L,V){L?(j.autoClose&&j.destroy(),j.emit("error",L)):(j.fd=V,j.emit("open",V),j.read())})}function I(j,L){return this instanceof I?(h.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function v(){var j=this;E(j.path,j.flags,j.mode,function(L,V){L?(j.destroy(),j.emit("error",L)):(j.fd=V,j.emit("open",V))})}function A(j,L){return new t.ReadStream(j,L)}function D(j,L){return new t.WriteStream(j,L)}var G=t.open;t.open=E;function E(j,L,V,_){return typeof V=="function"&&(_=V,V=null),W(j,L,V,_);function W(re,H,ye,le,be){return G(re,H,ye,function(ce,ue){ce&&(ce.code==="EMFILE"||ce.code==="ENFILE")?Ig([W,[re,H,ye,le],ce,be||Date.now(),Date.now()]):typeof le=="function"&&le.apply(this,arguments)})}}return t}function Ig(t){Ry("ENQUEUE",t[0].name,t[1]),Ms[bo].push(t),gG()}var _C;function dY(){for(var t=Date.now(),e=0;e<Ms[bo].length;++e)Ms[bo][e].length>2&&(Ms[bo][e][3]=t,Ms[bo][e][4]=t);gG()}function gG(){if(clearTimeout(_C),_C=void 0,Ms[bo].length!==0){var t=Ms[bo].shift(),e=t[0],r=t[1],i=t[2],s=t[3],a=t[4];if(s===void 0)Ry("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Ry("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var n=Date.now()-a,u=Math.max(a-s,1),p=Math.min(u*1.2,100);n>=p?(Ry("RETRY",e.name,r),e.apply(null,r.concat([s]))):Ms[bo].push(t)}_C===void 0&&(_C=setTimeout(gG,0))}}});var SY=l((f4r,yY)=>{var LBt=eI(),hY=require("assert");yY.exports=bY;function bY(t,e){return hY(typeof t=="function"),gY(t,e)}bY.withCallback=function(t,e){return hY(typeof t=="function"),e=e||{},e.withCallback=!0,gY(t,e)};function _Bt(t,e,r){return r===void 0&&(r=!0),function(i,s){if(i)return e(i);var a=argumen Line truncated
`),Ag().writeFileSync(t,e)};Tg.readJSON=function(t){return Ag().exists(t).then(function(e){if(!e)throw new Error(t+" is not found");return Ag().readFile(t)}).then(function(e){return JSON.parse(e)})};Tg.writeJSON=function(t,e,r){return r=r||{},"space"in r||(r.space=2),typeof e=="object"&&(e=JSON.stringify(e,r.replacer,r.space)+`
`),GBt(AY.dirname(t)).then(function(){return Ag().writeFile(t,e)})};function GBt(t){return new Promise(function(e,r){vY()(t,function(i){if(i)return r(i);e()})})}});var CY=l(Yl=>{"use strict";var OBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],UC=" ",Ey=parseInt(-new Date().getTimezoneOffset()/60,10);Ey>=0?UC+="+":UC+="-";Ey=Math.abs(Ey);Ey<10&&(Ey="0"+Ey);UC+=Ey+"00";Yl.accessLogDate=function(t){t=t||new Date;var e=t.getDate();e<10&&(e="0"+e);var r=t.getHours();r<10&&(r="0"+r);var i=t.getMinutes();i<10&&(i="0"+i);var s=t.getSeconds();return s<10&&(s="0"+s),e+"/"+OBt[t.getMonth()]+"/"+t.getFullYear()+":"+r+":"+i+":"+s+UC};Yl.logDate=Yl.YYYYMMDDHHmmssSSS=function(t,e){typeof t=="string"?(e=t,t=new Date):t=t||new Date;var r=t.getDate();r<10&&(r="0"+r);var i=t.getMonth()+1;i<10&&(i="0"+i);var s=t.getHours();s<10&&(s="0"+s);var a=t.getMinutes();a<10&&(a="0"+a);var o=t.getSeconds();o<10&&(o="0"+o);var n=t.getMilliseconds();return n<10?n="00"+n:n<100&&(n="0"+n),t.getFullYear()+"-"+i+"-"+r+" "+s+":"+a+":"+o+(e||".")+n};Yl.YYYYMMDDHHmmss=function(t,e){t=t||new Date,t instanceof Date||(t=new Date(t));var r="-",i=":";e&&(e.dateSep&&(r=e.dateSep),e.timeSep&&(i=e.timeSep));var s=t.getDate();s<10&&(s="0"+s);var a=t.getMonth()+1;a<10&&(a="0"+a);var o=t.getHours();o<10&&(o="0"+o);var n=t.getMinutes();n<10&&(n="0"+n);var u=t.getSeconds();return u<10&&(u="0"+u),t.getFullYear()+r+a+r+s+" "+o+i+n+i+u};Yl.YYYYMMDD=function(e,r){typeof e=="string"?(r=e,e=new Date):(e=e||new Date,typeof r!="string"&&(r="-"));var i=e.getDate();i<10&&(i="0"+i);var s=e.getMonth()+1;return s<10&&(s="0"+s),e.getFullYear()+r+s+r+i};Yl.datestruct=function(t){return t=t||new Date,{YYYYMMDD:t.getFullYear()*1e4+(t.getMonth()+1)*100+t.getDate(),H:t.getHours()}};Yl.timestamp=function(e){if(e){var r=e;return typeof r=="string"&&(r=Number(r)),String(e).length===10&&(r*=1e3),new Date(r)}return Math.round(Date.now()/1e3)}});var qY=l(vg=>{"use strict";vg.assign=function(t,e){Array.isArray(e)||(e=[e]);for(var r=0;r<e.length;r++){var i=e[r];if(i)for(var s=Object.keys(i),a=0;a<s.length;a++){var o=s[a];t[o]=i[o]}}return t};vg.has=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)};vg.getOwnEnumerables=function(e,r){return!e||typeof e!="object"||Array.isArray(e)?[]:Object.keys(e).filter(function(i){if(r){var s=e[i];if(s==null||Number.isNaN(s))return!1}return vg.has(e,i)})};vg.map=function(e){var r=new xY;if(!e)return r;for(var i in e)r[i]=e[i];return r};function xY(){}xY.prototype=Object.create(null)});var RY=l((k4r,DY)=>{"use strict";var VBt=/["'&<>]/;DY.exports=jBt;function jBt(t){var e=""+t,r=VBt.exec(e);if(!r)return e;var i,s="",a=0,o=0;for(a=r.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}o!==a&&(s+=e.substring(o,a)),o=a+1,s+=i}return o!==a?s+e.substring(o,a):s}});var PY=l((C4r,EY)=>{"use strict";EY.exports=function(e){return typeof e!="undefined"&&e!==null&&(typeof e=="object"||typeof e=="function")}});var LY=l((x4r,wY)=>{"use strict";var MY=PY();wY.exports=function(e){MY(e)||(e={});for(var r=arguments.length,i=1;i<r;i++){var s=arguments[i];MY(s)&&zBt(e,s)}return e};function zBt(t,e){for(var r in e)KBt(e,r)&&(t[r]=e[r])}function KBt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}});var UY=l((q4r,_Y)=>{"use strict";var WBt=LY(),AG={},FY,Py={default:{"&quot;":'"',"&#34;":'"',"&apos;":"'","&#39;":"'","&amp;":"&","&#38;":"&","&gt;":">","&#62;":">","&lt;":"<","&#60;":"<"},extras:{"&cent;":"\xA2","&#162;":"\xA2","&copy;":"\xA9","&#169;":"\xA9","&euro;":"\u20AC","&#8364;":"\u20AC","&pound;":"\xA3","&#163;":"\xA3","&reg;":"\xAE","&#174;":"\xAE","&yen;":"\xA5","&#165;":"\xA5"}};Object.defineProperty(Py,"all",{get:function(){return FY||(FY=WBt({},Py.default,Py.extras))}});function BC(t,e){if(!JBt(t))return"";var r=Py[e||"default"],i=HBt(e,r);return t.replace(i,function(s){return r[s]})}function HBt(t,e){if(AG[t])return AG[t];var r=Object.keys(e).join("|"),i=new RegExp("(?=("+r+"))\\1","g");return AG[t]=i,i}function JBt(t){return t&&typeof t=="string"}BC.chars=Py.default;BC.extras=Py.extras;Object.defineProperty(BC,"all",{get:function(){return Py.all}});_Y.exports=BC});var BY=l(tI=>{"use strict";tI.escape=RY();tI.unescape=UY();tI.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(r){return e}};tI.decodeURIComponent=function(e){try{return decodeURIComponent(e)}catch(r){return e}}});var ed=l((R4r,GY)=>{"use strict";var QBt=Gu();QBt(LZ()).and(FZ()).and(UZ()).and(OZ()).and(zZ()).and(WZ()).and(HZ()).and(kY()).and(CY()).and(qY()).and(BY()).to(GY.exports)});var wy=l((E4r,OY)=>{"use strict";OY.exports=TypeError});var jY=l((P4r,VY)=>{VY.exports=require("util").inspect});var oI=l((w4r,zY)=>{var vG=typeof Map=="function"&&Map.prototype,kG=Object.getOwnPropertyDescriptor&&vG?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,GC=vG&&kG&&typeof kG.get=="function"?kG.get:null,KY Line truncated
`)>=0)return!1;return!0}function IGt(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Cm.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Cm.call(Array(e+1),r)}}function LG(t,e){if(t.length===0)return"";var r=`
`+e.prev+e.base;return r+Cm.call(t,","+r)+`
`+e.prev}function VC(t,e){var r=wG(t),i=[];if(r){i.length=t.length;for(var s=0;s<t.length;s++)i[s]=Fc(t,s)?e(t[s],t):""}var a=typeof RG=="function"?RG(t):[],o;if(kg){o={};for(var n=0;n<a.length;n++)o["$"+a[n]]=a[n]}for(var u in t)!Fc(t,u)||r&&String(Number(u))===u&&u<t.length||kg&&o["$"+u]instanceof Symbol||(QY.call(/[^\w$]/,u)?i.push(e(u,t)+": "+e(t[u],t)):i.push(u+": "+e(t[u],t)));if(typeof RG=="function")for(var p=0;p<a.length;p++)ZY.call(t,a[p])&&i.push("["+e(a[p])+"]: "+e(t[a[p]],t));return i}});var cee=l((M4r,mee)=>{"use strict";var vGt=oI(),kGt=wy(),jC=function(t,e,r){for(var i=t,s;(s=i.next)!=null;i=s)if(s.key===e)return i.next=s.next,r||(s.next=t.next,t.next=s),s},CGt=function(t,e){if(!!t){var r=jC(t,e);return r&&r.value}},xGt=function(t,e,r){var i=jC(t,e);i?i.value=r:t.next={key:e,next:t.next,value:r}},qGt=function(t,e){return t?!!jC(t,e):!1},DGt=function(t,e){if(t)return jC(t,e,!0)};mee.exports=function(){var e,r={assert:function(i){if(!r.has(i))throw new kGt("Side channel does not contain "+vGt(i))},delete:function(i){var s=e&&e.next,a=DGt(e,i);return a&&s&&s===a&&(e=void 0),!!a},get:function(i){return CGt(e,i)},has:function(i){return qGt(e,i)},set:function(i,s){e||(e={next:void 0}),xGt(e,i,s)}};return r}});var _G=l((L4r,lee)=>{"use strict";lee.exports=Object});var yee=l((_4r,dee)=>{"use strict";dee.exports=Error});var bee=l((F4r,hee)=>{"use strict";hee.exports=EvalError});var See=l((U4r,gee)=>{"use strict";gee.exports=RangeError});var Nee=l((B4r,fee)=>{"use strict";fee.exports=ReferenceError});var Tee=l((G4r,Iee)=>{"use strict";Iee.exports=SyntaxError});var vee=l((O4r,Aee)=>{"use strict";Aee.exports=URIError});var Cee=l((V4r,kee)=>{"use strict";kee.exports=Math.abs});var qee=l((j4r,xee)=>{"use strict";xee.exports=Math.floor});var Ree=l((z4r,Dee)=>{"use strict";Dee.exports=Math.max});var Pee=l((K4r,Eee)=>{"use strict";Eee.exports=Math.min});var Mee=l((W4r,wee)=>{"use strict";wee.exports=Math.pow});var _ee=l((H4r,Lee)=>{"use strict";Lee.exports=Math.round});var Uee=l((J4r,Fee)=>{"use strict";Fee.exports=Number.isNaN||function(e){return e!==e}});var Gee=l((Q4r,Bee)=>{"use strict";var RGt=Uee();Bee.exports=function(e){return RGt(e)||e===0?e:e<0?-1:1}});var Vee=l(($4r,Oee)=>{"use strict";Oee.exports=Object.getOwnPropertyDescriptor});var FG=l((X4r,jee)=>{"use strict";var zC=Vee();if(zC)try{zC([],"length")}catch(t){zC=null}jee.exports=zC});var Kee=l((Z4r,zee)=>{"use strict";var KC=Object.defineProperty||!1;if(KC)try{KC({},"a",{value:1})}catch(t){KC=!1}zee.exports=KC});var Hee=l((Y4r,Wee)=>{"use strict";Wee.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(e,r);if(n.value!==s||n.enumerable!==!0)return!1}return!0}});var $ee=l((ejr,Jee)=>{"use strict";var Qee=typeof Symbol!="undefined"&&Symbol,EGt=Hee();Jee.exports=function(){return typeof Qee!="function"||typeof Symbol!="function"||typeof Qee("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:EGt()}});var UG=l((tjr,Xee)=>{"use strict";Xee.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var BG=l((rjr,Zee)=>{"use strict";var PGt=_G();Zee.exports=PGt.getPrototypeOf||null});var tte=l((ijr,Yee)=>{"use strict";var wGt="Function.prototype.bind called on incompatible ",MGt=Object.prototype.toString,LGt=Math.max,_Gt="[object Function]",ete=function(e,r){for(var i=[],s=0;s<e.length;s+=1)i[s]=e[s];for(var a=0;a<r.length;a+=1)i[a+e.length]=r[a];return i},FGt=function(e,r){for(var i=[],s=r||0,a=0;s<e.length;s+=1,a+=1)i[a]=e[s];return i},UGt=function(t,e){for(var r="",i=0;i<t.length;i+=1)r+=t[i],i+1<t.length&&(r+=e);return r};Yee.exports=function(e){var r=this;if(typeof r!="function"||MGt.apply(r)!==_Gt)throw new TypeError(wGt+r);for(var i=FGt(arguments,1),s,a=function(){if(this instanceof s){var m=r.apply(this,ete(i,arguments));return Object(m)===m?m:this}return r.apply(e,ete(i,arguments))},o=LGt(0,r.length-i.length),n=[],u=0;u<o;u++)n[u]="$"+u;if(s=Function("binder","return function ("+UGt(n,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=function(){};p.prototype=r.prototype,s.prototype=new p,p.prototype=null}return s}});var nI=l((sjr,rte)=>{"use strict";var BGt=tte();rte.exports=Function.prototype.bind||BGt});var WC=l((ajr,ite)=>{"use strict";ite.exports=Function.prototype.call});var GG=l((ojr,ste)=>{"use strict";ste.exports=Function.pro Line truncated
`}return a}});var CO=l((zjr,die)=>{"use strict";var Ys=require("util").debuglog("formstream"),t4t=require("stream"),r4t=eie(),i4t=require("util"),y0=Oy(),yie=require("path"),s4t=require("fs"),a4t=AO(),id=lie(),vO="--",kO=`\r
`,jy=Buffer.from(kO);function ba(t){if(!(this instanceof ba))return new ba(t);ba.super_.call(this),this._boundary=this._generateBoundary(),this._streams=[],this._buffers=[],this._endData=Buffer.from(vO+this._boundary+vO+kO),this._contentLength=0,this._isAllStreamSizeKnown=!0,this._knownStreamSize=0,this._minChunkSize=t&&t.minChunkSize||0,this.isFormStream=!0,Ys(`start boundary
%s`,this._boundary)}i4t.inherits(ba,t4t);die.exports=ba;ba.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);return t};ba.prototype.setTotalStreamSize=function(t){if(this._isAllStreamSizeKnown)return this;t=t||0;for(var e=0;e<this._streams.length;e++)t+=this._streams[e][0].length,t+=jy.length;return this._knownStreamSize=t,this._isAllStreamSizeKnown=!0,Ys("set total size: %s",t),this};ba.prototype.headers=function(t){var e={"Content-Type":"multipart/form-data; boundary="+this._boundary};if(this._contentLength+=this._knownStreamSize,this._contentLength+=this._endData.length,this._isAllStreamSizeKnown&&(e["Content-Length"]=String(this._contentLength)),t)for(var r in t)e[r]=t[r];return Ys("headers: %j",e),e};ba.prototype.file=function(t,e,r,i){typeof r=="number"&&!i&&(i=r,r=yie.basename(e)),r||(r=yie.basename(e));var s=y0.getType(r),a=s4t.createReadStream(e);return this.stream(t,a,r,s,i)};ba.prototype.field=function(t,e,r){return Buffer.isBuffer(e)||(typeof e=="number"&&(e=String(e)),e=Buffer.from(e)),this.buffer(t,e,null,r)};ba.prototype.stream=function(t,e,r,i,s){typeof i=="number"&&!s?(s=i,i=y0.getType(r)):i||(i=y0.getType(r)),e.once("error",this.emit.bind(this,"error")),this.once("destroy",function(){a4t(e)});var a=this._leading({name:t,filename:r},i),o=r4t().pause();return e.pipe(o),this._streams.push([a,o]),typeof s=="number"?(this._knownStreamSize+=a.length,this._knownStreamSize+=s,this._knownStreamSize+=jy.length):this._isAllStreamSizeKnown=!1,process.nextTick(this.resume.bind(this)),this};ba.prototype.buffer=function(t,e,r,i){r&&!i&&(i=y0.getType(r));var s={name:t};r&&(s.filename=r);var a=this._leading(s,i),o=a.length+e.length+jy.length;return this._buffers.push(Buffer.concat([a,e,jy],o)),this._contentLength+=o,process.nextTick(this.resume.bind(this)),Ys.enabled&&(e.length>512?Ys(`new buffer field, content size: %d
%s%s`,e.length,a.toString(),id(e.slice(0,512))):Ys(`new buffer field, content size: %d
%s%s`,e.length,a.toString(),id(e))),this};ba.prototype._leading=function(t,e){var r=[vO+this._boundary],i=[];if(t)for(var s in t)i.push(s+'="'+t[s]+'"');return r.push("Content-Disposition: form-data; "+i.join("; ")),e&&r.push("Content-Type: "+e),r.push(""),r.push(""),Buffer.from(r.join(kO))};ba.prototype._emitBuffers=function(){if(!!this._buffers.length){for(var t=0;t<this._buffers.length;t++)this.emit("data",this._buffers[t]);this._buffers=[]}};ba.prototype._emitStream=function(t){var e=this,r=0,i=0;let s=t[0];e.emit("data",s),i++,Ys.enabled&&Ys(`new stream, chunk index %d
%s`,i,s.toString());var a=t[1];a.on("data",function(o){e.emit("data",o),r+=s.length,i++,Ys.enabled&&(o.length>512?Ys(`stream chunk, size %d, chunk index %d, stream size %d
%s...... only show 512 bytes ......`,o.length,i,r,id(o.slice(0,512))):Ys(`stream chunk, size %d, chunk index %d, stream size %d
%s`,o.length,i,r,id(o)))}),a.on("end",function(){return e.emit("data",jy),i++,Ys("stream end, chunk index %d, stream size %d",i,r),process.nextTick(e.drain.bind(e))}),a.resume()};ba.prototype._emitStreamWithChunkSize=function(t,e){var r=this,i=0,s=0,a=0,o=[];let n=t[0];o.push(n),a+=n.length,Ys.enabled&&Ys(`new stream, with min chunk size: %d
%s`,e,n.toString());var u=t[1];u.on("data",function(p){if(typeof p=="string"&&(p=Buffer.from(p,"utf-8")),o.push(p),a+=p.length,i+=p.length,Ys("got stream data size %d, buffer size %d, stream size %d",p.length,a,i),a>=e){let m=Buffer.concat(o,a);o=[],a=0,r.emit("data",m),s++,Ys.enabled&&(m.length>512?Ys(`stream chunk, size %d, chunk index %d, stream size %d
%s...... only show 512 bytes ......`,m.length,s,i,id(m.slice(0,512))):Ys(`stream chunk, size %d, chunk index %d, stream size %d
%s`,m.length,s,i,id(m)))}}),u.on("end",function(){o.push(jy),a+=jy.length;let p=Buffer.concat(o,a);return r.emit("data",p),s++,p.length>512?Ys(`stream end, size %d, chunk index %d, stream size %d
%s...... only show 512 bytes ......`,p.length,s,i,id(p.slice(0,512))):Ys(`stream end, size %d, chunk index %d, stream size %d
%s`,p.length,s,i,id(p)),process.nextTick(r.drain.bind(r))}),u.resume()};ba.prototype._emitEnd=function(){this.emit("data",this._endData),this.emit("end"),Ys.enabled&&Ys(`end boundary
%s`,this._endData.toString())};ba.prototype.drain=function(){this._emitBuffers();var t=this._streams.shift();return t?this._minChunkSize&&this._minChunkSize>0?this._emitStreamWithChunkSize(t,this._minChunkSize):this._emitStream(t):this._emitEnd(),this};ba.prototype.resume=function(){return this.paused=!1,this._draining||(this._draining=!0,this.drain()),this};ba.prototype.close=ba.prototype.destroy=function(){this.emit("destroy")}});var gie=l((Kjr,hie)=>{"use strict";function bie(t){return t.replace(/^\.*/,".").toLowerCase()}function o4t(t){t=t.trim().toLowerCase();var e=t.split(":",2),r=bie(e[0]),i=e[1],s=t.indexOf(":")>-1;return{hostname:r,port:i,hasPort:s}}function n4t(t,e){var r=t.port||(t.protocol==="https:"?"443":"80"),i=bie(t.hostname),s=e.split(",");return s.map(o4t).some(function(a){var o=i.indexOf(a.hostname),n=o>-1&&o===i.length-a.hostname.length;return a.hasPort?r===a.port&&n:n})}function u4t(t){var e=process.env.NO_PROXY||process.env.no_proxy||"";return e==="*"||e!==""&&n4t(t,e)?null:t.protocol==="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:t.protocol==="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy)||null}hie.exports=u4t});var fie=l((Wjr,Sie)=>{"use strict";Sie.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Iie=l((Hjr,Nie)=>{"use strict";Nie.exports=Ci;Ci.Node=zy;Ci.create=Ci;function Ci(t){var e=this;if(e instanceof Ci||(e=new Ci),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}Ci.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};Ci.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};Ci.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};Ci.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)p4t(this,arguments[t]);return this.length};Ci.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)m4t(this,arguments[t]);return this.length};Ci.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};Ci.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};Ci.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};Ci.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};Ci.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};Ci.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};Ci.prototype.map=function(t,e){e=e||this;for(var r=new Ci,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};Ci.prototype.mapReverse=function(t,e){e=e||this;for(var r=new Ci,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};Ci.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)r=t(r,i.value,s),i=i.next;return r};Ci.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)r=t(r,i.value,s),i=i.prev;return r};Ci.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};Ci.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};Ci.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new Ci;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)r.push(s.value);return r};Ci.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new Ci;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e Line truncated
`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function b0(t,e){return new b0.Agent(t,e)}(function(t){class e extends y4t.EventEmitter{constructor(i,s){super();let a=s;typeof i=="function"?this.callback=i:i&&(a=i),this.timeout=null,a&&typeof a.timeout=="number"&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=Infinity,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:EO()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:EO()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,s,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,s){let a=Object.assign({},s);typeof a.secureEndpoint!="boolean"&&(a.secureEndpoint=EO()),a.host==null&&(a.host="localhost"),a.port==null&&(a.port=a.secureEndpoint?443:80),a.protocol==null&&(a.protocol=a.secureEndpoint?"https:":"http:"),a.host&&a.path&&delete a.path,delete a.agent,delete a.hostname,delete a._defaultAgent,delete a.defaultPort,delete a.createConnection,i._last=!0,i.shouldKeepAlive=!1;let o=!1,n=null,u=a.timeout||this.timeout,p=c=>{i._hadError||(i.emit("error",c),i._hadError=!0)},m=()=>{n=null,o=!0;let c=new Error(`A "socket" was not created for HTTP request before ${u}ms`);c.code="ETIMEOUT",p(c)},d=c=>{o||(n!==null&&(clearTimeout(n),n=null),p(c))},y=c=>{if(o)return;if(n!=null&&(clearTimeout(n),n=null),g4t(c)){TI("Callback returned another Agent instance %o",c.constructor.name),c.addRequest(i,a);return}if(c){c.once("free",()=>{this.freeSocket(c,a)}),i.onSocket(c);return}let h=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);p(h)};if(typeof this.callback!="function"){p(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(TI("Converting legacy callback function to promise"),this.promisifiedCallback=b4t.default(this.callback)):this.promisifiedCallback=this.callback),typeof u=="number"&&u>0&&(n=setTimeout(m,u)),"port"in a&&typeof a.port!="number"&&(a.port=Number(a.port));try{TI("Resolving socket for %o request: %o",a.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,a)).then(y,d)}catch(c){Promise.reject(c).catch(d)}}freeSocket(i,s){TI("Freeing socket %o %o",i.constructor.name,s),i.destroy()}destroy(){TI("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(b0||(b0={}));Rie.exports=b0});var PO=l(Pie=>{"use strict";var S4t=require("url").parse,f4t={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},N4t=String.prototype.endsWith||function(t){return t.length<=this.length&&this.indexOf(t,this.length-t.length)!==-1};function T4t(t){var e=typeof t=="string"?S4t(t):t||{},r=e.protocol,i=e.host,s=e.port;if(typeof i!="string"||!i||typeof r!="string"||(r=r.split(":",1)[0],i=i.replace(/:\d*$/,""),s=parseInt(s)||f4t[r]||0,!I4t(i,s)))return"";var a=Og("npm_config_"+r+"_proxy")||Og(r+"_proxy")||Og("npm_config_proxy")||Og("all_proxy");return a&&a.indexOf("://")===-1&&(a=r+"://"+a),a}function I4t(t,e){var r=(Og("npm_config_no_proxy")||Og("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(i){if(!i)return!0;var s=i.match(/^(.+):(\d+)$/),a=s?s[1]:i,o=s?parseInt(s[2]):0;return o&&o!==e?!0:/^[.*]/.test(a)?(a.charAt(0)==="*"&&(a=a.slice(1)),!N4t.call(t,a)):t!==a}):!0}function Og(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}Pie.getProxyForUrl=T4t});var Mie=l((Xjr,wie)=>{"use strict";function A4t(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),i="",s=!1,a=r[0]||"text/plain",o=a;for(let m=1;m<r.length;m++)r[m]==="base64"?s=!0:(o+=`;${r[m]}`,r[m].indexOf("charset=")===0&&(i=r[m].substring(8)));!r[0]&&!i.length&&(o+=";charset=US-ASCII",i="US-ASCII");let n=s?"base64":"ascii",u=unescape(t.substring(e+1)),p=Buffer.from(u,n);return p.type=a,p.typeFull=o,p.charset=i,p}wie.exports=A4t});var AI=l(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0});var Lie=class extends Error{constructor(e){super(e||'Source has not been modified since the provied "cache", re-use previous results');this.code="ENOTMODIFIED",Object.setPrototypeOf(this,new.target.prototype)}};wO.default=Lie});var Fie=l(Hy=>{"use strict";var v4t=Hy&&Hy.__awaiter||function(t,e,r,i){function s(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function n(m){try{p(i.next(m))}catch(d){o(d)}}function u(m){try{p(i.throw(m))}catch(d){o(d)}}function p(m){m.done?a(m.value):s(m.value).then(n,u)}p((i=i.apply(t,e||[])).next())})},MO=Hy&&Hy.__importDefault||functionLine truncated
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:s}=qI.checkPathsSync(t,e,"copy");return qI.checkParentPathsSync(t,i,e,"copy"),ejt(s,t,e,r)}function ejt(t,e,r,i){if(i.filter&&!i.filter(e,r))return;let s=xI.dirname(r);return Cs.existsSync(s)||Z4t(s),ise(t,e,r,i)}function ise(t,e,r,i){if(!(i.filter&&!i.filter(e,r)))return rjt(t,e,r,i)}function rjt(t,e,r,i){let a=(i.dereference?Cs.statSync:Cs.lstatSync)(e);if(a.isDirectory())return sjt(a,t,e,r,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return ijt(a,t,e,r,i);if(a.isSymbolicLink())return ajt(t,e,r,i)}function ijt(t,e,r,i,s){return e?ojt(t,r,i,s):sse(t,r,i,s)}function ojt(t,e,r,i){if(i.overwrite)return Cs.unlinkSync(r),sse(t,e,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}function sse(t,e,r,i){return typeof Cs.copyFileSync=="function"?(Cs.copyFileSync(e,r),Cs.chmodSync(r,t.mode),i.preserveTimestamps?Y4t(r,t.atime,t.mtime):void 0):njt(t,e,r,i)}function njt(t,e,r,i){let s=64*1024,a=tse()(s),o=Cs.openSync(e,"r"),n=Cs.openSync(r,"w",t.mode),u=0;for(;u<t.size;){let p=Cs.readSync(o,a,0,s,u);Cs.writeSync(n,a,0,p),u+=p}i.preserveTimestamps&&Cs.futimesSync(n,t.atime,t.mtime),Cs.closeSync(o),Cs.closeSync(n)}function sjt(t,e,r,i,s){if(!e)return ujt(t,r,i,s);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${r}'.`);return ase(r,i,s)}function ujt(t,e,r,i){return Cs.mkdirSync(r),ase(e,r,i),Cs.chmodSync(r,t.mode)}function ase(t,e,r){Cs.readdirSync(t).forEach(i=>pjt(i,t,e,r))}function pjt(t,e,r,i){let s=xI.join(e,t),a=xI.join(r,t),{destStat:o}=qI.checkPathsSync(s,a,"copy");return ise(o,s,a,i)}function ajt(t,e,r,i){let s=Cs.readlinkSync(e);if(i.dereference&&(s=xI.resolve(process.cwd(),s)),t){let a;try{a=Cs.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Cs.symlinkSync(s,r);throw o}if(i.dereference&&(a=xI.resolve(process.cwd(),a)),qI.isSrcSubdir(s,a))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(Cs.statSync(r).isDirectory()&&qI.isSrcSubdir(a,s))throw new Error(`Cannot overwrite '${a}' with '${s}'.`);return mjt(s,r)}else return Cs.symlinkSync(s,r)}function mjt(t,e){return Cs.unlinkSync(e),Cs.symlinkSync(t,e)}rse.exports=tjt});var $O=l((m5r,nse)=>{"use strict";nse.exports={copySync:ose()}});var Rm=l((c5r,use)=>{"use strict";var cjt=Ln().fromPromise,pse=FO();function ljt(t){return pse.access(t).then(()=>!0).catch(()=>!1)}use.exports={pathExists:cjt(ljt),pathExistsSync:pse.existsSync}});var Sse=l((l5r,mse)=>{"use strict";var go=ha(),DI=require("path"),djt=du().mkdirs,yjt=Rm().pathExists,hjt=WO().utimesMillis,RI=CI();function bjt(t,e,r,i){typeof r=="function"&&!i?(i=r,r={}):typeof r=="function"&&(r={filter:r}),i=i||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`),RI.checkPaths(t,e,"copy",(s,a)=>{if(s)return i(s);let{srcStat:o,destStat:n}=a;RI.checkParentPaths(t,o,e,"copy",u=>u?i(u):r.filter?lse(cse,n,t,e,r,i):cse(n,t,e,r,i))})}function cse(t,e,r,i,s){let a=DI.dirname(r);yjt(a,(o,n)=>{if(o)return s(o);if(n)return XO(t,e,r,i,s);djt(a,u=>u?s(u):XO(t,e,r,i,s))})}function lse(t,e,r,i,s,a){Promise.resolve(s.filter(r,i)).then(o=>o?t(e,r,i,s,a):a(),o=>a(o))}function XO(t,e,r,i,s){return i.filter?lse(dse,t,e,r,i,s):dse(t,e,r,i,s)}function dse(t,e,r,i,s){(i.dereference?go.stat:go.lstat)(e,(o,n)=>{if(o)return s(o);if(n.isDirectory())return Sjt(n,t,e,r,i,s);if(n.isFile()||n.isCharacterDevice()||n.isBlockDevice())return gjt(n,t,e,r,i,s);if(n.isSymbolicLink())return fjt(t,e,r,i,s)})}function gjt(t,e,r,i,s,a){return e?Njt(t,r,i,s,a):yse(t,r,i,s,a)}function Njt(t,e,r,i,s){if(i.overwrite)go.unlink(r,a=>a?s(a):yse(t,e,r,i,s));else return i.errorOnExist?s(new Error(`'${r}' already exists`)):s()}function yse(t,e,r,i,s){return typeof go.copyFile=="function"?go.copyFile(e,r,a=>a?s(a):hse(t,r,i,s)):Ijt(t,e,r,i,s)}function Ijt(t,e,r,i,s){let a=go.createReadStream(e);a.on("error",o=>s(o)).once("open",()=>{let o=go.createWriteStream(r,{mode:t.mode});o.on("error",n=>s(n)).on("open",()=>a.pipe(o)).once("close",()=>hse(t,r,i,s))})}function hse(t,e,r,i){go.chmod(e,t.mode,s=>s?i(s):r.preserveTimestamps?hjt(e,t.atime,t.mtime,i):i())}function Sjt(t,e,r,i,s,a){return e?e&&!e.isDirectory()?a(new Error(`Cannot overwrite non-directory '${i}' with directory '${r}'.`)):bse(r,i,s,a):Tjt(t,r,i,s,a)}function Tjt(t,e,r,i,s){go.mkdir(r,a=>{if(a)return s(a);bse(e,r,i,o=>o?s(o):go.chmod(r,t.mode,s))})}function bse(t,e,r,i){go.readdir(t,(s,a)=>s?i(s):gse(a,t,e,r,i))}function gse(t,e,r,i,s){let a=t.pop();return a?Ajt(t,a,e,r,i,s):s()}function Ajt(t,e,r,i,s,a){let o=DI.join(r,e),n=DI.join(i,e);RI.checkPaths(o,n,"copy",(u,p)=>{if(u)return a(u);let{destStat:m}=p;XO(m,o,n,s,d=>d?a(d):gse(t,r,i,s,a))})}function fjt(t,e,r,i,s){go.readlink(e,(a,o)=>{if(a)return s(a);if(i.dereference&&(o=DI.resolve(process.cwd(),o)),t)go.readlink(r,(n,u)=>n?n.code==="EINVAL"||n.code==="UNKNOWN"?go.symlink(o,r,s):s(n):(i.dereference&&(u=DI.resolve(process.cwd(),u)),RI.isSrcSubdir(o,u)?s(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&RI.isSrcSubdir(u,o)?s(new Error(`Cannot overwrite '${u}' with '${o}'.`)):vjt(o,r,s)));else return go.symlink(o,r,s)})}function vjt(t,e,r){go.unlink(e,i=>i?r(i):go.symlink(t,e,r))}mse.exports=bjt});var ZO=l((d5r,fse)=>{"use strict";var kjt=Ln().fromCallback;fse.exports={copy:kjt(Sse())}});var qse=l((y5r,Nse)=>{"use strict";var Ise=ha(),Tse=require("path"),Mi=require("assert"),EI=process.platform==="win32";function Ase(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Ise[r],r=r+"Sync",t[r]=t[r]||Ise[r]}),t.maxBusyTries=t.maxBusyTries||3}function YO(t,e,r){let i=0;typeof e=="function"&&(r=e,e={}),Mi(t,"rimraf: missing path"),Mi.strictEqual(typeof t,"string","rimraf: path should be a string"),Mi.strictEqual(typeof r,"function","rimraf: callback function required"),Mi(e,"rimraf: invalid options argument provided"),Mi.strictEqual(typeof e,"object","rimraf: options should be object"),Ase(e),vse(t,e,function s(a){if(a){if((a.code==="EBUSY"||a.code==="ENOTEMPTY"||a.code==="EPERM")&&i<e.maxBusyTries){i++;let o=i*100;return setTimeout(()=>vse(t,e,s),o)}a.code==="ENOENT"&&(a=null)}r(a)})}function vse(t,e,r){Mi(t),Mi(e),Mi(typeof r=="function"),e.lstat(t,(i,s)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&EI)return kse(t,e,i,r);if(s&&s.isDirectory())return S0(t,e,i,r);e.unlink(t,a=>{if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return EI?kse(t,e,a,r):S0(t,e,a,r);if(a.code==="EISDIR")return S0(t,e,a,r)}return r(a)})})}function kse(t,e,r,i){Mi(t),Mi(e),Mi(typeof i=="function"),r&&Mi(r instanceof Error),e.chmod(t,438,s=>{s?i(s.code==="ENOENT"?null:r):e.stat(t,(a,o)=>{a?i(a.code==="ENOENT"?null:r):o.isDirectory()?S0(t,e,r,i):e.unlink(t,i)})})}function Cse(t,e,r){let i;Mi(t),Mi(e),r&&Mi(r instanceof Error);try{e.chmodSync(t,438)}catch(s){if(s.code==="ENOENT")return;throw r}try{i=e.statSync(t)}catch(s){if(s.code==="ENOENT")return;throw r}i.isDirectory()?f0(t,e,r):e.unlinkSync(t)}function S0(t,e,r,i){Mi(t),Mi(e),r&&Mi(r instanceof Error),Mi(typeof i=="function"),e.rmdir(t,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?Cjt(t,e,i):s&&s.code==="ENOTDIR"?i(r):i(s)})}function Cjt(t,e,r){Mi(t),Mi(e),Mi(typeof r=="function"),e.readdir(t,(i,s)=>{if(i)return r(i);let a=s.length,o;if(a===0)return e.rmdir(t,r);s.forEach(n=>{YO(Tse.join(t,n),e,u=>{if(!o){if(u)return r(o=u);--a==0&&e.rmdir(t,r)}})})})}function xse(t,e){let r;e=e||{},Ase(e),Mi(t,"rimraf: missing path"),Mi.strictEqual(typeof t,"string","rimraf: path should be a string"),Mi(e,"rimraf: missing options"),Mi.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t) Line truncated
`;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(i=e.EOL));var s=JSON.stringify(t,e?e.replacer:null,r);return s.replace(/\n/g,i)+i}function Yjt(t,e,r,i){i==null&&(i=r,r={}),r=r||{};var s=r.fs||jg,a="";try{a=mae(e,r)}catch(o){i&&i(o,null);return}s.writeFile(t,a,r,i)}function e5t(t,e,r){r=r||{};var i=r.fs||jg,s=mae(e,r);return i.writeFileSync(t,s,r)}function pae(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var t5t={readFile:Xjt,readFileSync:Zjt,writeFile:Yjt,writeFileSync:e5t};uae.exports=t5t});var v0=l((v5r,lae)=>{"use strict";var dae=Ln().fromCallback,A0=cae();lae.exports={readJson:dae(A0.readFile),readJsonSync:A0.readFileSync,writeJson:dae(A0.writeFile),writeJsonSync:A0.writeFileSync}});var bae=l((k5r,yae)=>{"use strict";var r5t=require("path"),i5t=du(),s5t=Rm().pathExists,hae=v0();function a5t(t,e,r,i){typeof r=="function"&&(i=r,r={});let s=r5t.dirname(t);s5t(s,(a,o)=>{if(a)return i(a);if(o)return hae.writeJson(t,e,r,i);i5t.mkdirs(s,n=>{if(n)return i(n);hae.writeJson(t,e,r,i)})})}yae.exports=a5t});var Sae=l((C5r,gae)=>{"use strict";var o5t=ha(),n5t=require("path"),u5t=du(),p5t=v0();function m5t(t,e,r){let i=n5t.dirname(t);o5t.existsSync(i)||u5t.mkdirsSync(i),p5t.writeJsonSync(t,e,r)}gae.exports=m5t});var Nae=l((x5r,fae)=>{"use strict";var c5t=Ln().fromCallback,pn=v0();pn.outputJson=c5t(bae());pn.outputJsonSync=Sae();pn.outputJSON=pn.outputJson;pn.outputJSONSync=pn.outputJsonSync;pn.writeJSON=pn.writeJson;pn.writeJSONSync=pn.writeJsonSync;pn.readJSON=pn.readJson;pn.readJSONSync=pn.readJsonSync;fae.exports=pn});var Cae=l((q5r,Iae)=>{"use strict";var Tae=ha(),l5t=require("path"),d5t=$O().copySync,Aae=PI().removeSync,y5t=du().mkdirpSync,vae=CI();function b5t(t,e,r){r=r||{};let i=r.overwrite||r.clobber||!1,{srcStat:s}=vae.checkPathsSync(t,e,"move");return vae.checkParentPathsSync(t,s,e,"move"),y5t(l5t.dirname(e)),h5t(t,e,i)}function h5t(t,e,r){if(r)return Aae(e),kae(t,e,r);if(Tae.existsSync(e))throw new Error("dest already exists.");return kae(t,e,r)}function kae(t,e,r){try{Tae.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return g5t(t,e,r)}}function g5t(t,e,r){return d5t(t,e,{overwrite:r,errorOnExist:!0}),Aae(t)}Iae.exports=b5t});var qae=l((D5r,xae)=>{"use strict";xae.exports={moveSync:Cae()}});var wae=l((R5r,Dae)=>{"use strict";var S5t=ha(),f5t=require("path"),N5t=ZO().copy,Rae=PI().remove,I5t=du().mkdirp,T5t=Rm().pathExists,Eae=CI();function v5t(t,e,r,i){typeof r=="function"&&(i=r,r={});let s=r.overwrite||r.clobber||!1;Eae.checkPaths(t,e,"move",(a,o)=>{if(a)return i(a);let{srcStat:n}=o;Eae.checkParentPaths(t,n,e,"move",u=>{if(u)return i(u);I5t(f5t.dirname(e),p=>p?i(p):A5t(t,e,s,i))})})}function A5t(t,e,r,i){if(r)return Rae(e,s=>s?i(s):Pae(t,e,r,i));T5t(e,(s,a)=>s?i(s):a?i(new Error("dest already exists.")):Pae(t,e,r,i))}function Pae(t,e,r,i){S5t.rename(t,e,s=>s?s.code!=="EXDEV"?i(s):k5t(t,e,r,i):i())}function k5t(t,e,r,i){N5t(t,e,{overwrite:r,errorOnExist:!0},a=>a?i(a):Rae(t,i))}Dae.exports=v5t});var Lae=l((E5r,Mae)=>{"use strict";var C5t=Ln().fromCallback;Mae.exports={move:C5t(wae())}});var Bae=l((P5r,_ae)=>{"use strict";var x5t=Ln().fromCallback,LI=ha(),Fae=require("path"),Uae=du(),q5t=Rm().pathExists;function D5t(t,e,r,i){typeof r=="function"&&(i=r,r="utf8");let s=Fae.dirname(t);q5t(s,(a,o)=>{if(a)return i(a);if(o)return LI.writeFile(t,e,r,i);Uae.mkdirs(s,n=>{if(n)return i(n);LI.writeFile(t,e,r,i)})})}function R5t(t,...e){let r=Fae.dirname(t);if(LI.existsSync(r))return LI.writeFileSync(t,...e);Uae.mkdirsSync(r),LI.writeFileSync(t,...e)}_ae.exports={outputFile:x5t(D5t),outputFileSync:R5t}});var Oae=l((w5r,e3)=>{"use strict";e3.exports=Object.assign({},FO(),$O(),ZO(),Use(),nae(),Nae(),du(),qae(),Lae(),Bae(),Rm(),PI());var Gae=require("fs");Object.getOwnPropertyDescriptor(Gae,"promises")&&Object.defineProperty(e3.exports,"promises",{get(){return Gae.promises}})});var jae=l((M5r,Vae)=>{"use strict";var k0=require("path");function E5t(t){if(typeof t!="string"||t.length<=7||t.substring(0,7)!=="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");let e=decodeURI(t.substring(7)),r=e.indexOf("/"),i=e.substring(0,r),s=e.substring(r+1);return i==="localhost"&&(i=""),i&&(i=k0.sep+k0.sep+i),s=s.replace(/^(.+)\|/,"$1:"),k0.sep==="\\"&&(s=s.replace(/\//g,"\\")),/^.+:/.test(s)||(s=k0.sep+s),i+s}Vae.exports=E5t});var C0=l(t3=>{"use strict";Object.defineProperty(t3,"__esModule",{value:!0});var zae=class extends Error{constructor(e){super(e||"File does not exist at the specified endpoint");this.code="ENOTFOUND",Object.setPrototypeOf(this,new.target.prototype)}};t3.default=zae});var Wae=l($y=>{"use strict";var P5t=$y&&$y.__awaiter||function(t,e,r,i){function s(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function n(m){try{p(i.next(m))}catch(d){o(d)}}function u(m){try{p(i.throw(m))}catch(d){o(d)}}function p(m){m.done?a(m.value):s(m.value).then(n,u)}p((i=i.apply(t,e||[])).next())})},x0=$y& Line truncated
`),Ti=Coe.exports=function(){if(!(this instanceof Ti))return new Ti;this._socket=void 0,this._pasvSock=void 0,this._feat=void 0,this._curReq=void 0,this._queue=[],this._secstate=void 0,this._debug=void 0,this._keepalive=void 0,this._ending=!1,this._parser=void 0,this.options={host:void 0,port:void 0,user:void 0,password:void 0,secure:!1,secureOptions:void 0,connTimeout:void 0,pasvTimeout:void 0,aliveTimeout:void 0},this.connected=!1};F6t(Ti,_6t);Ti.prototype.connect=function(t){var e=this;typeof t!="object"&&(t={}),this.connected=!1,this.options.host=t.host||"localhost",this.options.port=t.port||21,this.options.user=t.user||"anonymous",this.options.password=t.password||"anonymous@",this.options.secure=t.secure||!1,this.options.secureOptions=t.secureOptions,this.options.connTimeout=t.connTimeout||1e4,this.options.pasvTimeout=t.pasvTimeout||1e4,this.options.aliveTimeout=t.keepalive||1e4,typeof t.debug=="function"&&(this._debug=t.debug);var r,i=this._debug,s=new qoe;if(s.setTimeout(0),s.setKeepAlive(!0),this._parser=new f3({debug:i}),this._parser.on("response",function(g,S){var N=g/100>>0;N===N3.ERR_TEMP||N===N3.ERR_PERM?e._curReq?e._curReq.cb(eh(g,S),void 0,g):e.emit("error",eh(g,S)):e._curReq&&e._curReq.cb(void 0,S,g),e._curReq&&N!==N3.PRELIM&&(e._curReq=void 0,e._send()),o.cb()}),this.options.secure){r={},r.host=this.options.host;for(var a in this.options.secureOptions)r[a]=this.options.secureOptions[a];r.socket=s,this.options.secureOptions=r}this.options.secure==="implicit"?this._socket=g3.connect(r,u):(s.once("connect",u),this._socket=s);var o={cmd:"NOOP",cb:function(){clearTimeout(e._keepalive),e._keepalive=setTimeout(n,e.options.aliveTimeout)}};function n(){!e._socket||!e._socket.writable?clearTimeout(e._keepalive):!e._curReq&&e._queue.length===0?(e._curReq=o,i&&i("[connection] > NOOP"),e._socket.write(V6t)):o.cb()}function u(){clearTimeout(h),clearTimeout(e._keepalive),e.connected=!0,e._socket=s;var g;e._secstate?e._secstate==="upgraded-tls"&&e.options.secure===!0?(g="PBSZ",e._send("PBSZ 0",S,!0)):(g="USER",e._send("USER "+e.options.user,S,!0)):e._curReq={cmd:"",cb:S};function S(N,T,I){if(N&&(!g||g==="USER"||g==="PASS"||g==="TYPE"))return e.emit("error",N),e._socket&&e._socket.end();if(g==="AUTH TLS"&&I!==234&&e.options.secure!==!0||g==="AUTH SSL"&&I!==334||g==="PBSZ"&&I!==200||g==="PROT"&&I!==200)return e.emit("error",eh(I,"Unable to secure connection(s)")),e._socket&&e._socket.end();if(!g)e.emit("greeting",T),e.options.secure&&e.options.secure!=="implicit"?(g="AUTH TLS",e._send(g,S,!0)):(g="USER",e._send("USER "+e.options.user,S,!0));else if(g==="USER")if(I!==230){if(!e.options.password)return e.emit("error",eh(I,"Password required")),e._socket&&e._socket.end();g="PASS",e._send("PASS "+e.options.password,S,!0)}else g="PASS",S(void 0,T,I);else if(g==="PASS")g="FEAT",e._send(g,S,!0);else if(g==="FEAT")N||(e._feat=f3.parseFeat(T)),g="TYPE",e._send("TYPE I",S,!0);else if(g==="TYPE")e.emit("ready");else if(g==="PBSZ")g="PROT",e._send("PROT P",S,!0);else if(g==="PROT")g="USER",e._send("USER "+e.options.user,S,!0);else if(g.substr(0,4)==="AUTH"){if(g==="AUTH TLS"&&I!==234)return g="AUTH SSL",e._send(g,S,!0);g==="AUTH TLS"?e._secstate="upgraded-tls":g==="AUTH SSL"&&(e._secstate="upgraded-ssl"),s.removeAllListeners("data"),s.removeAllListeners("error"),s._decoder=null,e._curReq=null,r.socket=e._socket,r.session=void 0,s=g3.connect(r,u),s.setEncoding("binary"),s.on("data",p),s.once("end",d),s.on("error",m)}}}s.on("data",p);function p(g){i&&i("[connection] < "+Doe(g.toString("binary"))),e._parser&&e._parser.write(g)}s.on("error",m);function m(g){clearTimeout(h),clearTimeout(e._keepalive),e.emit("error",g)}s.once("end",d);function d(){c(),e.emit("end")}s.once("close",function(g){c(),e.emit("close",g)});var y=!1;function c(){y||(y=!0,clearTimeout(h),e._reset())}var h=setTimeout(function(){e.emit("error",new Error("Timeout while connecting to server")),e._socket&&e._socket.destroy(),e._reset()},this.options.connTimeout);this._socket.connect(this.options.port,this.options.host)};Ti.prototype.end=function(){this._queue.length?this._ending=!0:this._reset()};Ti.prototype.destroy=function(){this._reset()};Ti.prototype.ascii=function(t){return this._send("TYPE A",t)};Ti.prototype.binary=function(t){return this._send("TYPE I",t)};Ti.prototype.abort=function(t,e){typeof t=="function"&&(e=t,t=!0),t?this._send("ABOR",e,!0):this._send("ABOR",e)};Ti.prototype.cwd=function(t,e,r){this._send("CWD "+t,function(i,s,a){if(i)return e(i);var o=Eoe.exec(s);e(void 0,o?o[1]:void 0)},r)};Ti.prototype.delete=function(t,e){this._send("DELE "+t,e)};Ti.prototype.site=function(t,e){this._send("SITE "+t,e)};Ti.prototype.status=function(t){this._send("STAT",t)};Ti.prototype.rename=function(t,e,r){var i=this;this._send("RNFR "+t,function(s){if(s)return r(s);i._send("RNTO "+e,r,!0)})};Ti.prototype.logout=function(t){this._send("QUIT",t)};Ti.prototype.listSafe=function(t,e,r){if(typeof t=="string"){var i=this;this.pwd(function(s,a){if(s)return r Line truncated
`)):!this._curReq&&!i&&this._ending&&this._reset()};Ti.prototype._reset=function(){this._pasvSock&&this._pasvSock.writable&&this._pasvSock.end(),this._socket&&this._socket.writable&&this._socket.end(),this._socket=void 0,this._pasvSock=void 0,this._feat=void 0,this._curReq=void 0,this._secstate=void 0,clearTimeout(this._keepalive),this._keepalive=void 0,this._queue=[],this._ending=!1,this._parser=void 0,this.options.host=this.options.port=this.options.user=this.options.password=this.options.secure=this.options.connTimeout=this.options.pasvTimeout=this.options.keepalive=this._debug=void 0,this.connected=!1};function eh(t,e){var r=new Error(e);return r.code=t,r}});var _oe=l(th=>{"use strict";var j6t=th&&th.__awaiter||function(t,e,r,i){function s(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function n(m){try{p(i.next(m))}catch(d){o(d)}}function u(m){try{p(i.throw(m))}catch(d){o(d)}}function p(m){m.done?a(m.value):s(m.value).then(n,u)}p((i=i.apply(t,e||[])).next())})},BI=th&&th.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(th,"__esModule",{value:!0});var z6t=BI(_I()),K6t=BI(Poe()),woe=require("path"),W6t=BI(Oa()),Moe=BI(C0()),H6t=BI(AI()),Loe=W6t.default("get-uri:ftp");function J6t(t,e){return j6t(this,void 0,void 0,function*(){let{cache:r}=e,i=t.pathname,s=null;if(!i)throw new TypeError('No "pathname"!');let a=new K6t.default;a.once("greeting",u=>{Loe("FTP greeting: %o",u)});function o(){a.end()}try{if(e.host=t.hostname||t.host||"localhost",e.port=parseInt(t.port||"0",10)||21,e.debug=Loe,t.auth){let[m,d]=t.auth.split(":");e.user=m,e.password=d}let u=z6t.default(a,"ready");a.connect(e),yield u;try{s=yield new Promise((m,d)=>{a.lastMod(i,(y,c)=>y?d(y):m(c))})}catch(m){if(m.code===550)throw new Moe.default}if(!s){let m=yield new Promise((c,h)=>{a.list(woe.dirname(i),(g,S)=>g?h(g):c(S))}),d=woe.basename(i),y=m.find(c=>c.name===d);y&&(s=y.date)}if(s){if(n())throw new H6t.default}else throw new Moe.default;let p=yield new Promise((m,d)=>{a.get(i,(y,c)=>y?d(y):m(c))});return p.once("end",o),p.lastModified=s,p}catch(u){throw a.destroy(),u}function n(){return r&&r.lastModified&&s?+r.lastModified==+s:!1}})}th.default=J6t});var Uoe=l(I3=>{"use strict";Object.defineProperty(I3,"__esModule",{value:!0});var Q6t=require("http"),Foe=class extends Error{constructor(e,r=Q6t.STATUS_CODES[e]){super(r);Object.setPrototypeOf(this,new.target.prototype),this.statusCode=e,this.code=`E${String(r).toUpperCase().replace(/\s+/g,"")}`}};I3.default=Foe});var T3=l(rh=>{"use strict";var $6t=rh&&rh.__awaiter||function(t,e,r,i){function s(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function n(m){try{p(i.next(m))}catch(d){o(d)}}function u(m){try{p(i.throw(m))}catch(d){o(d)}}function p(m){m.done?a(m.value):s(m.value).then(n,u)}p((i=i.apply(t,e||[])).next())})},ih=rh&&rh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rh,"__esModule",{value:!0});var X6t=ih(require("http")),Z6t=ih(require("https")),Y6t=ih(_I()),e8t=ih(Oa()),Boe=require("url"),t8t=ih(Uoe()),r8t=ih(C0()),Goe=ih(AI()),Bo=e8t.default("get-uri:http");function Ooe(t,e){return $6t(this,void 0,void 0,function*(){Bo("GET %o",t.href);let r=Voe(t,e.cache);if(r&&i8t(r)&&typeof r.statusCode=="number")throw(r.statusCode/100|0)===3&&r.headers.location?(Bo("cached redirect"),new Error("TODO: implement cached redirects!")):new Goe.default;let i=typeof e.maxRedirects=="number"?e.maxRedirects:5;Bo("allowing %o max redirects",i);let s;e.http?(s=e.http,Bo("using secure `https` core module")):(s=X6t.default,Bo("using `http` core module"));let a=Object.assign(Object.assign({},e),t);if(r){a.headers||(a.headers={});let d=r.headers["last-modified"];d&&(a.headers["If-Modified-Since"]=d,Bo('added "If-Modified-Since" request header: %o',d));let y=r.headers.etag;y&&(a.headers["If-None-Match"]=y,Bo('added "If-None-Match" request header: %o',y))}let o=s.get(a),n=yield Y6t.default(o,"response"),u=n.statusCode||0;n.date=Date.now(),n.parsed=t,Bo("got %o response status code",u);let p=u/100|0,m=n.headers.location;if(p===3&&m){e.redirects||(e.redirects=[]);let d=e.redirects;if(d.length<i){Bo('got a "redirect" status code with Location: %o',m),n.resume(),d.push(n);let y=Boe.resolve(t.href,m);Bo("resolved redirect URL: %o",y);let c=i-d.length;Bo("%o more redirects allowed after this one",c);let h=Boe.parse(y);return h.protocol!==t.protocol&&(e.http=h.protocol==="https:"?Z6t.default:void 0),Ooe(h,e)}}if(p!==2)throw n.resume(),u===304?new Goe.default:u===404?new r8t.default:new t8t.default(u);return e.redirects&&(n.redirects=e.redirects),n})}rh.default=Ooe;function i8t(t){let e=!1,r=parseInt(t.headers.expires||"",10),i=t.headers["cache-control"];if(i){Bo("Cache-Control: %o",i);let s=i.split(/,\s*?\b/);for(let a=0;a<s.length;a++){let o=s[a],n=o.split("="),u=n[0];switch(u){case"max-age":return r=(t.date||0)+parseInt(n[1],10)*1e3,e=Date.now()<r,e Line truncated
\v\f\r !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0Line truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Dne=l(xne=>{"use strict";var $g=zr().Buffer;xne._dbcs=jc;var Fn=-1,qne=-2,Ju=-10,wm=-1e3,Xg=new Array(256),VI=-1;for(var $3=0;$3<256;$3++)Xg[$3]=Fn;function jc(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Xg.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var s={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipVals.length;i++){var a=t.encodeSkipVals[i];if(typeof a=="number")s[a]=!0;else for(var o=a.from;o<=a.to;o++)s[o]=!0}if(this._fillEncodeTable(0,0,s),t.encodeAdd)for(var n in t.encodeAdd)Object.prototype.hasOwnProperty.call(t.encodeAdd,n)&&this._setEncodeChar(n.charCodeAt(0),t.encodeAdd[n]);if(this.defCharSB=this.encodeTable[0][e.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===Fn&&(this.defCharSB=this.encodeTable[0]["?"]),this.defCharSB===Fn&&(this.defCharSB="?".charCodeAt(0)),typeof t.gb18030=="function"){this.gb18030=t.gb18030();for(var u=this.decodeTables.length,p=this.decodeTables[u]=Xg.slice(0),m=this.decodeTables.length,d=this.decodeTablesLine truncated
\r
`)+4,e.output[0]=e._header+n.substring(u),ud("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(ud("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,u=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(u),ud("Output buffer: %o",e.outputData[0].data))}return yield Y8t.default(o,"connect"),o})}};uh.default=mue});var nV=l((sV,lue)=>{"use strict";var r9t=sV&&sV.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},aV=r9t(cue());function oV(t){return new aV.default(t)}(function(t){t.HttpProxyAgent=aV.default,t.prototype=aV.default.prototype})(oV||(oV={}));lue.exports=oV});var due=l(zI=>{"use strict";var i9t=zI&&zI.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zI,"__esModule",{value:!0});var s9t=i9t(Oa()),KI=s9t.default("https-proxy-agent:parse-proxy-response");function a9t(t){return new Promise((e,r)=>{let i=0,s=[];function a(){let d=t.read();d?m(d):t.once("readable",a)}function o(){t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",n),t.removeListener("readable",a)}function n(d){KI("onclose had error %o",d)}function u(){KI("onend")}function p(d){o(),KI("onerror %o",d),r(d)}function m(d){s.push(d),i+=d.length;let y=Buffer.concat(s,i);if(y.indexOf(`\r
\r
`)===-1){KI("have not received end of HTTP headers yet..."),a();return}let h=y.toString("ascii",0,y.indexOf(`\r
`)),g=+h.split(" ")[1];KI("got proxy server response: %o",h),e({statusCode:g,buffered:y})}t.on("error",p),t.on("close",n),t.on("end",u),a()})}zI.default=a9t});var gue=l(ph=>{"use strict";var o9t=ph&&ph.__awaiter||function(t,e,r,i){function s(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function n(m){try{p(i.next(m))}catch(d){o(d)}}function u(m){try{p(i.throw(m))}catch(d){o(d)}}function p(m){m.done?a(m.value):s(m.value).then(n,u)}p((i=i.apply(t,e||[])).next())})},Yg=ph&&ph.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ph,"__esModule",{value:!0});var yue=Yg(require("net")),hue=Yg(require("tls")),n9t=Yg(require("url")),u9t=Yg(require("assert")),p9t=Yg(Oa()),m9t=Gg(),c9t=Yg(due()),WI=p9t.default("https-proxy-agent:agent"),bue=class extends m9t.Agent{constructor(e){let r;if(typeof e=="string"?r=n9t.default.parse(e):r=e,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");WI("creating new HttpsProxyAgent instance: %o",r),super(r);let i=Object.assign({},r);this.secureProxy=r.secureProxy||y9t(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,r){return o9t(this,void 0,void 0,function*(){let{proxy:i,secureProxy:s}=this,a;s?(WI("Creating `tls.Socket`: %o",i),a=hue.default.connect(i)):(WI("Creating `net.Socket`: %o",i),a=yue.default.connect(i));let o=Object.assign({},i.headers),u=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
`;i.auth&&(o["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:p,port:m,secureEndpoint:d}=r;d9t(m,d)||(p+=`:${m}`),o.Host=p,o.Connection="close";for(let S of Object.keys(o))u+=`${S}: ${o[S]}\r
`;let y=c9t.default(a);a.write(`${u}\r
`);let{statusCode:c,buffered:h}=yield y;if(c===200){if(e.once("socket",l9t),r.secureEndpoint){WI("Upgrading socket connection to TLS");let S=r.servername||r.host;return hue.default.connect(Object.assign(Object.assign({},h9t(r,"host","hostname","path","port")),{socket:a,servername:S}))}return a}a.destroy();let g=new yue.default.Socket({writable:!1});return g.readable=!0,e.once("socket",S=>{WI("replaying proxy buffer for failed request"),u9t.default(S.listenerCount("data")>0),S.push(h),S.push(null)}),g})}};ph.default=bue;function l9t(t){t.resume()}function d9t(t,e){return Boolean(!e&&t===80||e&&t===443)}function y9t(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function h9t(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var cV=l((uV,Sue)=>{"use strict";var b9t=uV&&uV.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},pV=b9t(gue());function mV(t){return new pV.default(t)}(function(t){t.HttpsProxyAgent=pV.default,t.prototype=pV.default.prototype})(mV||(mV={}));Sue.exports=mV});var Tue=l(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var fue=require("buffer"),mh={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};zc.ERRORS=mh;function g9t(t){if(!fue.Buffer.isEncoding(t))throw new Error(mh.INVALID_ENCODING)}zc.checkEncoding=g9t;function Nue(t){return typeof t=="number"&&isFinite(t)&&S9t(t)}zc.isFiniteInteger=Nue;function Iue(t,e){if(typeof t=="number"){if(!Nue(t)||t<0)throw new Error(e?mh.INVALID_OFFSET:mh.INVALID_LENGTH)}else throw new Error(e?mh.INVALID_OFFSET_NON_NUMBER:mh.INVALID_LENGTH_NON_NUMBER)}function f9t(t){Iue(t,!1)}zc.checkLengthValue=f9t;function N9t(t){Iue(t,!0)}zc.checkOffsetValue=N9t;function I9t(t,e){if(t<0||t>e.length)throw new Error(mh.INVALID_TARGET_OFFSET)}zc.checkTargetOffset=I9t;function S9t(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function T9t(t){if(typeof BigInt=="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof fue.Buffer.prototype[t]=="undefined")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}zc.bigIntAndBufferInt64Check=T9t});var vue=l(lV=>{"use strict";Object.defineProperty(lV,"__esModule",{value:!0});var Kr=Tue(),Aue=4096,A9t="utf8",Q0=class{constructor(e){if(this.length=0,this._encoding=A9t,this._writeOffset=0,this._readOffset=0,Q0.isSmartBufferOptions(e))if(e.encoding&&(Kr.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Kr.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Kr.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(Kr.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Aue);else{if(typeof e!="undefined")throw new Error(Kr.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Aue)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return Kr.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Kr.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeIn Line truncated
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function De(P,Q){var J="";for(Q|=0;Q>0;Q>>>=1,P+=P)Q&1&&(J+=P);return J}function Ce(P){return/[\r\n]/g.test(P)}function Te(P){var Q=P.length;return Q&&a.code.isLineTerminator(P.charCodeAt(Q-1))}function Qe(P,Q){var J;for(J in Q)Q.hasOwnProperty(J)&&(P[J]=Q[J]);return P}function _e(P,Q){var J,Z;function pe(de){return typeof de=="object"&&de instanceof Object&&!(de instanceof RegExp)}for(J in Q)Q.hasOwnProperty(J)&&(Z=Q[J],pe(Z)?pe(P[J])?_e(P[J],Z):P[J]=_e({},Z):P[J]=Z);return P}function Ue(P){var Q,J,Z,pe,de;if(P!==P)throw new Error("Numeric literal whose value is NaN");if(P<0||P===0&&1/P<0)throw new Error("Numeric literal whose value is negative");if(P===1/0)return u?"null":p?"1e400":"1e+400";if(Q=""+P,!p||Q.length<3)return Q;for(J=Q.indexOf("."),!u&&Q.charCodeAt(0)===48&&J===1&&(J=0,Q=Q.slice(1)),Z=Q,Q=Q.replace("e+","e"),pe=0,(de=Z.indexOf("e"))>0&&(pe=+Z.slice(de+1),Z=Z.slice(0,de)),J>=0&&(pe-=Z.length-J-1,Z=+(Z.slice(0,J)+Z.slice(J+1))+""),de=0;Z.charCodeAt(Z.length+de-1)===48;)--de;return de!==0&&(pe-=de,Z=Z.slice(0,de)),pe!==0&&(Z+="e"+pe),(Z.length<Q.length||m&&P>1e12&&Math.floor(P)===P&&(Z="0x"+P.toString(16)).length<Q.length)&&+Z===P&&(Q=Z),Q}function tt(P,Q){return(P&~1)==8232?(Q?"u":"\\u")+(P===8232?"2028":"2029"):P===10||P===13?(Q?"":"\\")+(P===10?"n":"r"):String.fromCharCode(P)}function Jt(P){var Q,J,Z,pe,de,Le,Ve,lt;if(J=P.toString(),P.source){if(Q=J.match(/\/([^/]*)$/),!Q)return J;for(Z=Q[1],J="",Ve=!1,lt=!1,pe=0,de=P.source.length;pe<de;++pe)Le=P.source.charCodeAt(pe),lt?(J+=tt(Le,lt),lt=!1):(Ve?Le===93&&(Ve=!1):Le===47?J+="\\":Le===91&&(Ve=!0),J+=tt(Le,lt),lt=Le===92);return"/"+J+"/"+Z}return J}function st(P,Q){var J;return P===8?"\\b":P===12?"\\f":P===9?"\\t":(J=P.toString(16).toUpperCase(),u||P>255?"\\u"+"0000".slice(J.length)+J:P===0&&!a.code.isDecimalDigit(Q)?"\\0":P===11?"\\x0B":"\\x"+"00".slice(J.length)+J)}function mt(P){if(P===92)return"\\\\";if(P===10)return"\\n";if(P===13)return"\\r";if(P===8232)return"\\u2028";if(P===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function vr(P){var Q,J,Z,pe;for(pe=d==="double"?'"':"'",Q=0,J=P.length;Q<J;++Q)if(Z=P.charCodeAt(Q),Z===39){pe='"';break}else if(Z===34){pe="'";break}else Z===92&&++Q;return pe+P+pe}function kr(P){var Q="",J,Z,pe,de=0,Le=0,Ve,lt;for(J=0,Z=P.length;J<Z;++J){if(pe=P.charCodeAt(J),pe===39)++de;else if(pe===34)++Le;else if(pe===47&&u)Q+="\\";else if(a.code.isLineTerminator(pe)||pe===92){Q+=mt(pe);continue}else if(!a.code.isIdentifierPartES5(pe)&&(u&&pe<32||!u&&!y&&(pe<32||pe>126))){Q+=st(pe,P.charCodeAt(J+1));continue}Q+=String.fromCharCode(pe)}if(Ve=!(d==="double"||d==="auto"&&Le<de),lt=Ve?"'":'"',!(Ve?de:Le))return lt+Q+lt;for(P=Q,Q=lt,J=0,Z=P.length;J<Z;++J)pe=P.charCodeAt(J),(pe===39&&Ve||pe===34&&!Ve)&&(Q+="\\"),Q+=String.fromCharCode(pe);return Q+lt}function Lr(P){var Q,J,Z,pe="";for(Q=0,J=P.length;Q<J;++Q)Z=P[Q],pe+=Array.isArray(Z)?Lr(Z):Z;return pe}function Bt(P,Q){if(!A)return Array.isArray(P)?Lr(P):P;if(Q==null){if(P instanceof i)return P;Q={}}return Q.loc==null?new i(null,null,A,P,Q.name||null):new i(Q.loc.start.line,Q.loc.start.column,A===!0?Q.loc.source||null:A,P,Q.name||null)}function tr(){return h||" "}function qt(P,Q){var J,Z,pe,de;return J=Bt(P).toString(),J.length===0?[Q]:(Z=Bt(Q).toString(),Z.length===0?[P]:(pe=J.charCodeAt(J.length-1),de=Z.charCodeAt(0),(pe===43||pe===45)&&pe===de||a.code.isIdentifierPartES5(pe)&&a.code.isIdentifierPartES5(de)||pe===47&&de===105?[P,tr(),Q]:a.code.isWhiteSpace(pe)||a.code.isLineTerminator(pe)||a.code.isWhiteSpace(de)||a.code.isLineTerminator(de)?[P,Q]:[P,h,Q]))}function te(P){return[o,P]}function me(P){var Q;Q=o,o+=n,P(o),o=Q}function ge(P){var Q;for(Q=P.length-1;Q>=0&&!a.code.isLineTerminator(P.charCodeAt(Q));--Q);return P.length-1-Q}function Ee(P,Q){var J,Z,pe,de,Le,Ve,lt,O;for(J=P.split(/\r\n|[\r\n]/),Ve=Number.MAX_VALUE,Z=1,pe=J.length;Z<pe;++Z){for(de=J[Z],Le=0;Le<de.length&&a.code.isWhiteSpace(de.charCodeAt(Le));)++Le;Ve>Le&&(Ve=Le)}for(typeof Q!="undefined"?(lt=o,J[1][Ve]==="*"&&(Q+=" "),o=Q):(Ve&1&&--Ve,lt=o),Z=1,pe=J.length;Z<pe;++Z)O=Bt(te(J[Z].slice(Ve))),J[Z]=A?O.join(""):O;return o=lt,J.join(`
`)}function ze(P,Q){if(P.type==="Line"){if(Te(P.value))return"//"+P.value;var J="//"+P.value;return G||(J+=`
`),J}return I.format.indent.adjustMultilineComment&&/[\n\r]/.test(P.value)?Ee("/*"+P.value+"*/",Q):"/*"+P.value+"*/"}function ft(P,Q){var J,Z,pe,de,Le,Ve,lt,O,F,w,x,K,ae,he;if(P.leadingComments&&P.leadingComments.length>0){if(de=Q,G){for(pe=P.leadingComments[0],Q=[],O=pe.extendedRange,F=pe.range,x=D.substring(O[0],F[0]),he=(x.match(/\n/g)||[]).length,he>0?(Q.push(De(`
`,he)),Q.push(te(ze(pe)))):(Q.push(x),Q.push(ze(pe))),w=F,J=1,Z=P.leadingComments.length;J<Z;J++)pe=P.leadingComments[J],F=pe.range,K=D.substring(w[1],F[0]),he=(K.match(/\n/g)||[]).length,Q.push(De(`
`,he)),Q.push(te(ze(pe))),w=F;ae=D.substring(F[1],O[1]),he=(ae.match(/\n/g)||[]).length,Q.push(De(`
`,he))}else for(pe=P.leadingComments[0],Q=[],N&&P.type===t.Program&&P.body.length===0&&Q.push(`
`),Q.push(ze(pe)),Te(Bt(Q).toString())||Q.push(`
`),J=1,Z=P.leadingComments.length;J<Z;++J)pe=P.leadingComments[J],lt=[ze(pe)],Te(Bt(lt).toString())||lt.push(`
`),Q.push(te(lt));Q.push(te(de))}if(P.trailingComments)if(G)pe=P.trailingComments[0],O=pe.extendedRange,F=pe.range,x=D.substring(O[0],F[0]),he=(x.match(/\n/g)||[]).length,he>0?(Q.push(De(`
`,he)),Q.push(te(ze(pe)))):(Q.push(x),Q.push(ze(pe)));else for(Le=!Te(Bt(Q).toString()),Ve=De(" ",ge(Bt([o,Q,n]).toString())),J=0,Z=P.trailingComments.length;J<Z;++J)pe=P.trailingComments[J],Le?(J===0?Q=[Q,n]:Q=[Q,Ve],Q.push(ze(pe,Ve))):Q=[Q,te(ze(pe))],J!==Z-1&&!Te(Bt(Q).toString())&&(Q=[Q,`
`]);return Q}function Pt(P,Q,J){var Z,pe=0;for(Z=P;Z<Q;Z++)D[Z]===`
`&&pe++;for(Z=1;Z<pe;Z++)J.push(c)}function wt(P,Q,J){return Q<J?["(",P,")"]:P}function Sr(P){var Q,J,Z;for(Z=P.split(/\r\n|\n/),Q=1,J=Z.length;Q<J;Q++)Z[Q]=c+o+Z[Q];return Z}function _r(P,Q){var J,Z,pe;return J=P[I.verbatim],typeof J=="string"?Z=wt(Sr(J),e.Sequence,Q):(Z=Sr(J.content),pe=J.precedence!=null?J.precedence:e.Sequence,Z=wt(Z,pe,Q)),Bt(Z,P)}function Vt(){}Vt.prototype.maybeBlock=function(P,Q){var J,Z,pe=this;return Z=!I.comment||!P.leadingComments,P.type===t.BlockStatement&&Z?[h,this.generateStatement(P,Q)]:P.type===t.EmptyStatement&&Z?";":(me(function(){J=[c,te(pe.generateStatement(P,Q))]}),J)},Vt.prototype.maybeBlockSuffix=function(P,Q){var J=Te(Bt(Q).toString());return P.type===t.BlockStatement&&(!I.comment||!P.leadingComments)&&!J?[Q,h]:J?[Q,o]:[Q,c,o]};function xt(P){return Bt(P.name,P)}function Vr(P,Q){return P.async?"async"+(Q?tr():h):""}function Ji(P){var Q=P.generator&&!I.moz.starlessGenerator;return Q?"*"+h:""}function Be(P){var Q=P.value,J="";return Q.async&&(J+=Vr(Q,!P.computed)),Q.generator&&(J+=Ji(Q)?"*":""),J}Vt.prototype.generatePattern=function(P,Q,J){return P.type===t.Identifier?xt(P):this.generateExpression(P,Q,J)},Vt.prototype.generateFunctionParams=function(P){var Q,J,Z,pe;if(pe=!1,P.type===t.ArrowFunctionExpression&&!P.rest&&(!P.defaults||P.defaults.length===0)&&P.params.length===1&&P.params[0].type===t.Identifier)Z=[Vr(P,!0),xt(P.params[0])];else{for(Z=P.type===t.ArrowFunctionExpression?[Vr(P,!1)]:[],Z.push("("),P.defaults&&(pe=!0),Q=0,J=P.params.length;Q<J;++Q)pe&&P.defaults[Q]?Z.push(this.generateAssignment(P.params[Q],P.defaults[Q],"=",e.Assignment,ue)):Z.push(this.generatePattern(P.params[Q],e.Assignment,ue)),Q+1<J&&Z.push(","+h);P.rest&&(P.params.length&&Z.push(","+h),Z.push("..."),Z.push(xt(P.rest))),Z.push(")")}return Z},Vt.prototype.generateFunctionBody=function(P){var Q,J;return Q=this.generateFunctionParams(P),P.type===t.ArrowFunctionExpression&&(Q.push(h),Q.push("=>")),P.expression?(Q.push(h),J=this.generateExpression(P.body,e.Assignment,ue),J.toString().charAt(0)==="{"&&(J=["(",J,")"]),Q.push(J)):Q.push(this.maybeBlock(P.body,we)),Q},Vt.prototype.generateIterationForStatement=function(P,Q,J){var Z=["for"+(Q.await?tr()+"await":"")+h+"("],pe=this;return me(function(){Q.left.type===t.VariableDeclaration?me(function(){Z.push(Q.left.kind+tr()),Z.push(pe.generateStatement(Q.left.declarations[0],ee))}):Z.push(pe.generateExpression(Q.left,e.Call,ue)),Z=qt(Z,P),Z=[qt(Z,pe.generateExpression(Q.right,e.Assignment,ue)),")"]}),Z.push(this.maybeBlock(Q.body,J)),Z},Vt.prototype.generatePropertyKey=function(P,Q){var J=[];return Q&&J.push("["),J.push(this.generateExpression(P,e.Assignment,ue)),Q&&J.push("]"),J},Vt.prototype.generateAssignment=function(P,Q,J,Z,pe){return e.Assignment<Z&&(pe|=_),wt([this.generateExpression(P,e.Call,pe),h+J+h,this.generateExpression(Q,e.Assignment,pe)],e.Assignment,Z)},Vt.prototype.semicolon=function(P){return!S&&P&le?"":";"},Vt.Statement={BlockStatement:function(P,Q){var J,Z,pe=["{",c],de=this;return me(function(){P.body.length===0&&G&&(J=P.range,J[1]-J[0]>2&&(Z=D.substring(J[0]+1,J[1]-1),Z[0]===`
`&&(pe=["{"]),pe.push(Z)));var Le,Ve,lt,O;for(O=qe,Q&H&&(O|=ye),Le=0,Ve=P.body.length;Le<Ve;++Le)G&&(Le===0&&(P.body[0].leadingComments&&(J=P.body[0].leadingComments[0].extendedRange,Z=D.substring(J[0],J[1]),Z[0]===`
`&&(pe=["{"])),P.body[0].leadingComments||Pt(P.range[0],P.body[0].range[0],pe)),Le>0&&!P.body[Le-1].trailingComments&&!P.body[Le].leadingComments&&Pt(P.body[Le-1].range[1],P.body[Le].range[0],pe)),Le===Ve-1&&(O|=le),P.body[Le].leadingComments&&G?lt=de.generateStatement(P.body[Le],O):lt=te(de.generateStatement(P.body[Le],O)),pe.push(lt),Te(Bt(lt).toString())||G&&Le<Ve-1&&P.body[Le+1].leadingComments||pe.push(c),G&&Le===Ve-1&&(P.body[Le].trailingComments||Pt(P.body[Le].range[1],P.range[1],pe))}),pe.push(te("}")),pe},BreakStatement:function(P,Q){return P.label?"break "+P.label.name+this.semicolon(Q):"break"+this.semicolon(Q)},ContinueStatement:function(P,Q){return P.label?"continue "+P.label.name+this.semicolon(Q):"continue"+this.semicolon(Q)},ClassBody:function(P,Q){var J=["{",c],Z=this;return me(function(pe){var de,Le;for(de=0,Le=P.body.length;de<Le;++de)J.push(pe),J.push(Z.generateExpression(P.body[de],e.Sequence,ue)),de+1<Le&&J.push(c)}),Te(Bt(J).toString())||J.push(c),J.push(o),J.push("}"),J},ClassDeclaration:function(P,Q){var J,Z;return J=["class"],P.id&&(J=qt(J,this.generateExpression(P.id,e.Sequence,ue))),P.superClass&&(Z=qt("extends",this.generateExpression(P.superClass,e.Unary,ue)),J=qt(J,Z)),J.push(h),J.push(this.generateStatement(P.body,We)),J},DirectiveStatement:function(P,Q){return I.raw&&P.raw?P.raw+this.semicolon(Q):vr(P.directive)+this.semicolon(Q)},DoWhileStatement:function(P,Q){var J=qt("do",this.maybeBlock(P.body,qe));return J=this.maybeBlockSuffix(P.body,J),qt(J,["while"+h+"(",this.generateExpression(P.test,e.Sequence,ue),")"+this.semicolon(Q)])},CatchClause:function(P,Q){var J,Z=this;return me(function(){var pe;P.param?(J=["catch"+h+"(",Z.generateExpression(P.param,e.Sequence,ue),")"],P.guard&&(pe=Z.generateExpression(P.guard,e.Sequence,ue),J.splice(2,0," if ",pe))):J=["catch"]}),J.push(this.maybeBlock(P.body,qe)),J},DebuggerStatement:function(P,Q){return"debugger"+this.semicolon(Q)},EmptyStatement:function(P,Q){return";"},ExportDefaultDeclaration:function(P,Q){var J=["export"],Z;return Z=Q&le?We:qe,J=qt(J,"default"),V(P.declaration)?J=qt(J,this.generateStatement(P.declaration,Z)):J=qt(J,this.generateExpression(P.declaration,e.Assignment,ue)+this.semicolon(Q)),J},ExportNamedDeclaration:function(P,Q){var J=["export"],Z,pe=this;return Z=Q&le?We:qe,P.declaration?qt(J,this.generateStatement(P.declaration,Z)):(P.specifiers&&(P.specifiers.length===0?J=qt(J,"{"+h+"}"):P.specifiers[0].type===t.ExportBatchSpecifier?J=qt(J,this.generateExpression(P.specifiers[0],e.Sequence,ue)):(J=qt(J,"{"),me(function(de){var Le,Ve;for(J.push(c),Le=0,Ve=P.specifiers.length;Le<Ve;++Le)J.push(de),J.push(pe.generateExpression(P.specifiers[Le],e.Sequence,ue)),Le+1<Ve&&J.push(","+c)}),Te(Bt(J).toString())||J.push(c),J.push(o+"}")),P.source?J=qt(J,["from"+h,this.generateExpression(P.source,e.Sequence,ue),this.semicolon(Q)]):J.push(this.semicolon(Q))),J)},ExportAllDeclaration:function(P,Q){return["export"+h,"*"+h,"from"+h,this.generateExpression(P.source,e.Sequence,ue),this.semicolon(Q)]},ExpressionStatement:function(P,Q){var J,Z;function pe(Ve){var lt;return Ve.slice(0,5)!=="class"?!1:(lt=Ve.charCodeAt(5),lt===123||a.code.isWhiteSpace(lt)||a.code.isLineTerminator(lt))}function de(Ve){var lt;return Ve.slice(0,8)!=="function"?!1:(lt=Ve.charCodeAt(8),lt===40||a.code.isWhiteSpace(lt)||lt===42||a.code.isLineTerminator(lt))}function Le(Ve){var lt,O,F;if(Ve.slice(0,5)!=="async"||!a.code.isWhiteSpace(Ve.charCodeAt(5)))return!1;for(O=6,F=Ve.length;O<F&&a.code.isWhiteSpace(Ve.charCodeAt(O));++O);return O===F||Ve.slice(O,O+8)!=="function"?!1:(lt=Ve.charCodeAt(O+8),lt===40||a.code.isWhiteSpace(lt)||lt===42||a.code.isLineTerminator(lt))}return J=[this.generateExpression(P.expression,e.Sequence,ue)],Z=Bt(J).toString(),Z.charCodeAt(0)===123||pe(Z)||de(Z)||Le(Z)||T&&Q&ye&&P.expression.type===t.Literal&&typeof P.expression.value=="string"?J=["(",J,")"+this.semicolon(Q)]:J.push(this.semicolon(Q)),J},ImportDeclaration:function(P,Q){var J,Z,pe=this;return P.specifiers.length===0?["import",h,this.generateExpression(P.source,e.Sequence,ue),this.semicolon(Q)]:(J=["import"],Z=0,P.specifiers[Z].type===t.ImportDefaultSpecifier&&(J=qt(J,[this.generateExpression(P.specifiers[Z],e.Sequence,ue)]),++Z),P.specifiers[Z]&&(Z!==0&&J.push(","),P.specifiers[Z].type===t.ImportNamespaceSpecifier?J=qt(J,[h,this.generateExpression(P.specifiers[Z],e.Sequence,ue)]):(J.push(h+"{"),P.specifiers.length-Z==1?(J.push(h),J.push(this.generateExpression(P.specifiers[Z],e.Sequence,ue)),J.push(h+"}"+h)):(me(function(de){var Le,Ve;for(J.push(c),Le=Z,Ve=P.specifiers.length;Le<Ve;++Le)J.push(de),J.push(pe.generateExpression(P.specifiers[Le],e.Sequence,ue)),Le+1<Ve&&J.push(","+c)}),Te(Bt(J).toString())||J.push(c),J.push(o+"}"+h)))),J=qt(J,["from"+h,this.generateExpression(P.source,e.Sequence,ue),this.semicolon(Q)]),J)},VariableDeclarator:function(P,Q){var J=Q&_?ue:be;return P.init?[this.generateExpression(P.id,e.Assignment,J),h,"=",h,this.generateExpression(P.init,e.Assignme Line truncated
`),J.push(te(Ve.generateStatement(de,Le)))):(J.push(tr()),J.push(Ve.generateStatement(de,Le))),Z=1,pe=P.declarations.length;Z<pe;++Z)de=P.declarations[Z],I.comment&&de.leadingComments?(J.push(","+c),J.push(te(Ve.generateStatement(de,Le)))):(J.push(","+h),J.push(Ve.generateStatement(de,Le)))}return P.declarations.length>1?me(lt):lt(),J.push(this.semicolon(Q)),J},ThrowStatement:function(P,Q){return[qt("throw",this.generateExpression(P.argument,e.Sequence,ue)),this.semicolon(Q)]},TryStatement:function(P,Q){var J,Z,pe,de;if(J=["try",this.maybeBlock(P.block,qe)],J=this.maybeBlockSuffix(P.block,J),P.handlers)for(Z=0,pe=P.handlers.length;Z<pe;++Z)J=qt(J,this.generateStatement(P.handlers[Z],qe)),(P.finalizer||Z+1!==pe)&&(J=this.maybeBlockSuffix(P.handlers[Z].body,J));else{for(de=P.guardedHandlers||[],Z=0,pe=de.length;Z<pe;++Z)J=qt(J,this.generateStatement(de[Z],qe)),(P.finalizer||Z+1!==pe)&&(J=this.maybeBlockSuffix(de[Z].body,J));if(P.handler)if(Array.isArray(P.handler))for(Z=0,pe=P.handler.length;Z<pe;++Z)J=qt(J,this.generateStatement(P.handler[Z],qe)),(P.finalizer||Z+1!==pe)&&(J=this.maybeBlockSuffix(P.handler[Z].body,J));else J=qt(J,this.generateStatement(P.handler,qe)),P.finalizer&&(J=this.maybeBlockSuffix(P.handler.body,J))}return P.finalizer&&(J=qt(J,["finally",this.maybeBlock(P.finalizer,qe)])),J},SwitchStatement:function(P,Q){var J,Z,pe,de,Le,Ve=this;if(me(function(){J=["switch"+h+"(",Ve.generateExpression(P.discriminant,e.Sequence,ue),")"+h+"{"+c]}),P.cases)for(Le=qe,pe=0,de=P.cases.length;pe<de;++pe)pe===de-1&&(Le|=le),Z=te(this.generateStatement(P.cases[pe],Le)),J.push(Z),Te(Bt(Z).toString())||J.push(c);return J.push(te("}")),J},SwitchCase:function(P,Q){var J,Z,pe,de,Le,Ve=this;return me(function(){for(P.test?J=[qt("case",Ve.generateExpression(P.test,e.Sequence,ue)),":"]:J=["default:"],pe=0,de=P.consequent.length,de&&P.consequent[0].type===t.BlockStatement&&(Z=Ve.maybeBlock(P.consequent[0],qe),J.push(Z),pe=1),pe!==de&&!Te(Bt(J).toString())&&J.push(c),Le=qe;pe<de;++pe)pe===de-1&&Q&le&&(Le|=le),Z=te(Ve.generateStatement(P.consequent[pe],Le)),J.push(Z),pe+1!==de&&!Te(Bt(Z).toString())&&J.push(c)}),J},IfStatement:function(P,Q){var J,Z,pe,de=this;return me(function(){J=["if"+h+"(",de.generateExpression(P.test,e.Sequence,ue),")"]}),pe=Q&le,Z=qe,pe&&(Z|=le),P.alternate?(J.push(this.maybeBlock(P.consequent,qe)),J=this.maybeBlockSuffix(P.consequent,J),P.alternate.type===t.IfStatement?J=qt(J,["else ",this.generateStatement(P.alternate,Z)]):J=qt(J,qt("else",this.maybeBlock(P.alternate,Z)))):J.push(this.maybeBlock(P.consequent,Z)),J},ForStatement:function(P,Q){var J,Z=this;return me(function(){J=["for"+h+"("],P.init?P.init.type===t.VariableDeclaration?J.push(Z.generateStatement(P.init,ee)):(J.push(Z.generateExpression(P.init,e.Sequence,be)),J.push(";")):J.push(";"),P.test&&(J.push(h),J.push(Z.generateExpression(P.test,e.Sequence,ue))),J.push(";"),P.update&&(J.push(h),J.push(Z.generateExpression(P.update,e.Sequence,ue))),J.push(")")}),J.push(this.maybeBlock(P.body,Q&le?We:qe)),J},ForInStatement:function(P,Q){return this.generateIterationForStatement("in",P,Q&le?We:qe)},ForOfStatement:function(P,Q){return this.generateIterationForStatement("of",P,Q&le?We:qe)},LabeledStatement:function(P,Q){return[P.label.name+":",this.maybeBlock(P.body,Q&le?We:qe)]},Program:function(P,Q){var J,Z,pe,de,Le;for(de=P.body.length,J=[N&&de>0?`
`:""],Le=U,pe=0;pe<de;++pe)!N&&pe===de-1&&(Le|=le),G&&(pe===0&&(P.body[0].leadingComments||Pt(P.range[0],P.body[pe].range[0],J)),pe>0&&!P.body[pe-1].trailingComments&&!P.body[pe].leadingComments&&Pt(P.body[pe-1].range[1],P.body[pe].range[0],J)),Z=te(this.generateStatement(P.body[pe],Le)),J.push(Z),pe+1<de&&!Te(Bt(Z).toString())&&(G&&P.body[pe+1].leadingComments||J.push(c)),G&&pe===de-1&&(P.body[pe].trailingComments||Pt(P.body[pe].range[1],P.range[1],J));return J},FunctionDeclaration:function(P,Q){return[Vr(P,!0),"function",Ji(P)||tr(),P.id?xt(P.id):"",this.generateFunctionBody(P)]},ReturnStatement:function(P,Q){return P.argument?[qt("return",this.generateExpression(P.argument,e.Sequence,ue)),this.semicolon(Q)]:["return"+this.semicolon(Q)]},WhileStatement:function(P,Q){var J,Z=this;return me(function(){J=["while"+h+"(",Z.generateExpression(P.test,e.Sequence,ue),")"]}),J.push(this.maybeBlock(P.body,Q&le?We:qe)),J},WithStatement:function(P,Q){var J,Z=this;return me(function(){J=["with"+h+"(",Z.generateExpression(P.object,e.Sequence,ue),")"]}),J.push(this.maybeBlock(P.body,Q&le?We:qe)),J}},Qe(Vt.prototype,Vt.Statement),Vt.Expression={SequenceExpression:function(P,Q,J){var Z,pe,de;for(e.Sequence<Q&&(J|=_),Z=[],pe=0,de=P.expressions.length;pe<de;++pe)Z.push(this.generateExpression(P.expressions[pe],e.Assignment,J)),pe+1<de&&Z.push(","+h);return wt(Z,e.Sequence,Q)},AssignmentExpression:function(P,Q,J){return this.generateAssignment(P.left,P.right,P.operator,Q,J)},ArrowFunctionExpression:function(P,Q,J){return wt(this.generateFunctionBody(P),e.ArrowFunction,Q)},ConditionalExpression:function(P,Q,J){return e.Conditional<Q&&(J|=_),wt([this.generateExpression(P.test,e.LogicalOR,J),h+"?"+h,this.generateExpression(P.consequent,e.Assignment,J),h+":"+h,this.generateExpression(P.alternate,e.Assignment,J)],e.Conditional,Q)},LogicalExpression:function(P,Q,J){return this.BinaryExpression(P,Q,J)},BinaryExpression:function(P,Q,J){var Z,pe,de,Le,Ve,lt;return Le=r[P.operator],pe=P.operator==="**"?e.Postfix:Le,de=P.operator==="**"?Le:Le+1,Le<Q&&(J|=_),Ve=this.generateExpression(P.left,pe,J),lt=Ve.toString(),lt.charCodeAt(lt.length-1)===47&&a.code.isIdentifierPartES5(P.operator.charCodeAt(0))?Z=[Ve,tr(),P.operator]:Z=qt(Ve,P.operator),Ve=this.generateExpression(P.right,de,J),P.operator==="/"&&Ve.toString().charAt(0)==="/"||P.operator.slice(-1)==="<"&&Ve.toString().slice(0,3)==="!--"?(Z.push(tr()),Z.push(Ve)):Z=qt(Z,Ve),P.operator==="in"&&!(J&_)?["(",Z,")"]:wt(Z,Le,Q)},CallExpression:function(P,Q,J){var Z,pe,de;for(Z=[this.generateExpression(P.callee,e.Call,ce)],Z.push("("),pe=0,de=P.arguments.length;pe<de;++pe)Z.push(this.generateExpression(P.arguments[pe],e.Assignment,ue)),pe+1<de&&Z.push(","+h);return Z.push(")"),J&W?wt(Z,e.Call,Q):["(",Z,")"]},NewExpression:function(P,Q,J){var Z,pe,de,Le,Ve;if(pe=P.arguments.length,Ve=J&re&&!g&&pe===0?Pe:Ie,Z=qt("new",this.generateExpression(P.callee,e.New,Ve)),!(J&re)||g||pe>0){for(Z.push("("),de=0,Le=pe;de<Le;++de)Z.push(this.generateExpression(P.arguments[de],e.Assignment,ue)),de+1<Le&&Z.push(","+h);Z.push(")")}return wt(Z,e.New,Q)},MemberExpression:function(P,Q,J){var Z,pe;return Z=[this.generateExpression(P.object,e.Call,J&W?ce:Ie)],P.computed?(Z.push("["),Z.push(this.generateExpression(P.property,e.Sequence,J&W?ue:Pe)),Z.push("]")):(P.object.type===t.Literal&&typeof P.object.value=="number"&&(pe=Bt(Z).toString(),pe.indexOf(".")<0&&!/[eExX]/.test(pe)&&a.code.isDecimalDigit(pe.charCodeAt(pe.length-1))&&!(pe.length>=2&&pe.charCodeAt(0)===48)&&Z.push(" ")),Z.push("."),Z.push(xt(P.property))),wt(Z,e.Member,Q)},MetaProperty:function(P,Q,J){var Z;return Z=[],Z.push(typeof P.meta=="string"?P.meta:xt(P.meta)),Z.push("."),Z.push(typeof P.property=="string"?P.property:xt(P.property)),wt(Z,e.Member,Q)},UnaryExpression:function(P,Q,J){var Z,pe,de,Le,Ve;return pe=this.generateExpression(P.argument,e.Unary,ue),h===""?Z=qt(P.operator,pe):(Z=[P.operator],P.operator.length>2?Z=qt(Z,pe):(Le=Bt(Z).toString(),Ve=Le.charCodeAt(Le.length-1),de=pe.toString().charCodeAt(0),((Ve===43||Ve===45)&&Ve===de||a.code.isIdentifierPartES5(Ve)&&a.code.isIdentifierPartES5(de))&&Z.push(tr()),Z.push(pe))),wt(Z,e.Unary,Q)},YieldExpression:function(P,Q,J){var Z;return P.delegate?Z="yield*":Z="yield",P.argument&&(Z=qt(Z,this.generateExpression(P.argument,e.Yield,ue))),wt(Z,e.Yield,Q)},AwaitExpression:function(P,Q,J){var Z=qt(P.all?"await*":"await",this.generateExpression(P.argument,e.Await,ue));return wt(Z,e.Await,Q)},UpdateExpression:function(P,Q,J){return P.prefix?wt([P.operator,this.generateExpression(P.argument,e.Unary,ue)],e.Unary,Q):wt([this.generateExpression(P.argument,e.Postfix,ue),P.operator],e.Postfix,Q)},FunctionExpression:function(P,Q,J){var Z=[Vr(P,!0),"function"];return P.id?(Z.push(Ji(P)||tr()),Z.push(xt(P.id))):Z.push(Ji(P)||h),Z.push(this.generateFunctionBody(P)),Z},ArrayPattern:function(P,Q,J){return this.ArrayExpression(P,Q,J,!0)},ArrayExpression:function(P,Q,J,Z){var pe,de,Le=this;return P.elements.length?(de Line truncated
`&&(J=A?Bt(J).replaceRight(/\s+$/,""):Z.replace(/\s+$/,"")),Bt(J,P)};function je(P){var Q;if(Q=new Vt,V(P))return Q.generateStatement(P,qe);if(L(P))return Q.generateExpression(P,e.Sequence,ue);throw new Error("Unknown node type: "+P.type)}function pt(P,Q){var J=oe(),Z,pe;return Q!=null?(typeof Q.indent=="string"&&(J.format.indent.style=Q.indent),typeof Q.base=="number"&&(J.format.indent.base=Q.base),Q=_e(J,Q),n=Q.format.indent.style,typeof Q.base=="string"?o=Q.base:o=De(n,Q.format.indent.base)):(Q=J,n=Q.format.indent.style,o=De(n,Q.format.indent.base)),u=Q.format.json,p=Q.format.renumber,m=u?!1:Q.format.hexadecimal,d=u?"double":Q.format.quotes,y=Q.format.escapeless,c=Q.format.newline,h=Q.format.space,Q.format.compact&&(c=h=n=o=""),g=Q.format.parentheses,S=Q.format.semicolons,N=Q.format.safeConcatenation,T=Q.directive,v=u?null:Q.parse,A=Q.sourceMap,D=Q.sourceCode,G=Q.format.preserveBlankLines&&D!==null,I=Q,A&&(Hc.browser?i=global.sourceMap.SourceNode:i=Fpe().SourceNode),Z=je(P),A?(pe=Z.toStringWithSourceMap({file:Q.file,sourceRoot:Q.sourceMapRoot}),Q.sourceContent&&pe.map.setSourceContent(Q.sourceMap,Q.sourceContent),Q.sourceMapWithCode?pe:pe.map.toString()):(pe={code:Z.toString(),map:null},Q.sourceMapWithCode?pe:pe.code)}E={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},j=oe().format,Hc.version=Bpe().version,Hc.generate=pt,Hc.attachComments=s.attachComments,Hc.Precedence=_e({},e),Hc.browser=!1,Hc.FORMAT_MINIFY=E,Hc.FORMAT_DEFAULTS=j})()});var Ope=l((YI,WV)=>{(function(e,r){typeof YI=="object"&&typeof WV=="object"?WV.exports=r():typeof define=="function"&&define.amd?define([],r):typeof YI=="object"?YI.esprima=r():e.esprima=r()})(YI,function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={exports:{},id:i,loaded:!1};return t[i].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),s=r(3),a=r(8),o=r(15);function n(y,c,h){var g=null,S=function(E,j){h&&h(E,j),g&&g.visit(E,j)},N=typeof h=="function"?S:null,T=!1;if(c){T=typeof c.comment=="boolean"&&c.comment;var I=typeof c.attachComment=="boolean"&&c.attachComment;(T||I)&&(g=new i.CommentHandler,g.attach=I,c.comment=!0,N=S)}var v=!1;c&&typeof c.sourceType=="string"&&(v=c.sourceType==="module");var A;c&&typeof c.jsx=="boolean"&&c.jsx?A=new s.JSXParser(y,c,N):A=new a.Parser(y,c,N);var D=v?A.parseModule():A.parseScript(),G=D;return T&&g&&(G.comments=g.comments),A.config.tokens&&(G.tokens=A.tokens),A.config.tolerant&&(G.errors=A.errorHandler.errors),G}e.parse=n;function u(y,c,h){var g=c||{};return g.sourceType="module",n(y,g,h)}e.parseModule=u;function p(y,c,h){var g=c||{};return g.sourceType="script",n(y,g,h)}e.parseScript=p;function m(y,c,h){var g=new o.Tokenizer(y,c),S;S=[];try{for(;;){var N=g.getNextToken();if(!N)break;h&&(N=h(N)),S.push(N)}}catch(T){g.errorHandler.tolerate(T)}return g.errorHandler.tolerant&&(S.errors=g.errors()),S}e.tokenize=m;var d=r(2);e.Syntax=d.Syntax,e.version="4.0.1"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),s=function(){function a(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return a.prototype.insertInnerComments=function(o,n){if(o.type===i.Syntax.BlockStatement&&o.body.length===0){for(var u=[],p=this.leading.length-1;p>=0;--p){var m=this.leading[p];n.end.offset>=m.start&&(u.unshift(m.comment),this.leading.splice(p,1),this.trailing.splice(p,1))}u.length&&(o.innerComments=u)}},a.prototype.findTrailingComments=function(o){var n=[];if(this.trailing.length>0){for(var u=this.trailing.length-1;u>=0;--u){var p=this.trailing[u];p.start>=o.end.offset&&n.unshift(p.comment)}return this.trailing.length=0,n}var m=this.stack[this.stack.length-1];if(m&&m.node.trailingComments){var d=m.node.trailingComments[0];d&&d.range[0]>=o.end.offset&&(n=m.node.trailingComments,delete m.node.trailingComments)}return n},a.prototype.findLeadingComments=function(o){for(var n=[],u;this.stack.length>0;){var p=this.stack[this.stack.length-1];if(p&&p.start>=o.start.offset)u=p.node,this.stack.pop();else break}if(u){for(var m=u.leadingComments?u.leadingComments.length:0,d=m-1;d>=0;--d){var y=u.leadingComments[d];y.range[1]<=o.start.offset&&(n.unshift(y),u.leadingComments.splice(d,1))}return u.leadingComments&&u.leadingComments.length===0&&delete u.leadingComments,n}for(var d=this.leading.length-1;d>=0;--d){var p=this.leading[d];p.start<=o.start.offset&&(n.unshift(p.comment),this.leading.splice(d,1))}return n},a.prototype.visitNode=function(o,n){if(!(o.type===i.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,n);var u=this.findTrailingComments(n),p=this.findLeadingComments(n);p.length>0&&(o.leadingComments=p),u.length>0&&(o.trailingComments=u),this.stack.push({node:o,start:n.start.offset})}},a.prototype.visitComment=function(o,n){var u=o.type[0]==="L"?"Line" Line truncated
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var T={type:101,value:S,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:g,end:this.scanner.index};return S.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(T)),T},h.prototype.peekJSXToken=function(){var g=this.scanner.saveState();this.scanner.scanComments();var S=this.lexJSX();return this.scanner.restoreState(g),S},h.prototype.expectJSX=function(g){var S=this.nextJSXToken();(S.type!==7||S.value!==g)&&this.throwUnexpectedToken(S)},h.prototype.matchJSX=function(g){var S=this.peekJSXToken();return S.type===7&&S.value===g},h.prototype.parseJSXIdentifier=function(){var g=this.createJSXNode(),S=this.nextJSXToken();return S.type!==100&&this.throwUnexpectedToken(S),this.finalize(g,new a.JSXIdentifier(S.value))},h.prototype.parseJSXElementName=function(){var g=this.createJSXNode(),S=this.parseJSXIdentifier();if(this.matchJSX(":")){var N=S;this.expectJSX(":");var T=this.parseJSXIdentifier();S=this.finalize(g,new a.JSXNamespacedName(N,T))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var I=S;this.expectJSX(".");var v=this.parseJSXIdentifier();S=this.finalize(g,new a.JSXMemberExpression(I,v))}return S},h.prototype.parseJSXAttributeName=function(){var g=this.createJSXNode(),S,N=this.parseJSXIdentifier();if(this.matchJSX(":")){var T=N;this.expectJSX(":");var I=this.parseJSXIdentifier();S=this.finalize(g,new a.JSXNamespacedName(T,I))}else S=N;return S},h.prototype.parseJSXStringLiteralAttribute=function(){var g=this.createJSXNode(),S=this.nextJSXToken();S.type!==8&&this.throwUnexpectedToken(S);var N=this.getTokenRaw(S);return this.finalize(g,new n.Literal(S.value,N))},h.prototype.parseJSXExpressionAttribute=function(){var g=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var S=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(g,new a.JSXExpressionContainer(S))},h.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},h.prototype.parseJSXNameValueAttribute=function(){var g=this.createJSXNode(),S=this.parseJSXAttributeName(),N=null;return this.matchJSX("=")&&(this.expectJSX("="),N=this.parseJSXAttributeValue()),this.finalize(g,new a.JSXAttribute(S,N))},h.prototype.parseJSXSpreadAttribute=function(){var g=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var S=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(g,new a.JSXSpreadAttribute(S))},h.prototype.parseJSXAttributes=function(){for(var g=[];!this.matchJSX("/")&&!this.matchJSX(">");){var S=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();g.push(S)}return g},h.prototype.parseJSXOpeningElement=function(){var g=this.createJSXNode();this.expectJSX("<");var S=this.parseJSXElementName(),N=this.parseJSXAttributes(),T=this.matchJSX("/");return T&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(g,new a.JSXOpeningElement(S,T,N))},h.prototype.parseJSXBoundaryElement=function(){var g=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var S=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(g,new a.JSXClosingElement(S))}var N=this.parseJSXElementName(),T=this.parseJSXAttributes(),I=this.matchJSX("/");return I&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(g,new a.JSXOpeningElement(N,I,T))},h.prototype.parseJSXEmptyExpression=function(){var g=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(g,new a.JSXEmptyExpression)},h.prototype.parseJSXExpressionContainer=function(){var g=this.createJSXNode();this.expectJSX("{");var S;return this.matchJSX("}")?(S=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),S=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(g,new a.JSXExpressionContainer(S))},h.prototype.parseJSXChildren=function(){for(var g=[];!this.scanner.eof();){var S=this.createJSXChildNode(),N=this.nextJSXText();if(N.start<N.end){var T=this.getTokenRaw(N),I=this.finalize(S,new a.JSXText(N.value,T));g.push(I)}if(this.scanner.source[this.scanner.index]==="{"){var v=this.parseJSXExpressionContainer();g.push(v)}else break}return g},h.prototype.parseComplexJSXElement=function(g){for(var S=[];!this.scanner.eof();){g.children=g.children.concat(this.parseJSXChildren());var N=this.createJSXChildNode(),T=this.parseJSXBoundaryElement();if(T.type===o.JSXSyntax.JSXOpeningElement){var I=T;if(I.selfClosing){var v=this.finalize(N,n Line truncated
`;break;case"r":c+="\r";break;case"t":c+=" ";break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\v";break;case"8":case"9":c+=h,this.tolerateUnexpectedToken();break;default:if(h&&s.Character.isOctalDigit(h.charCodeAt(0))){var N=this.octalToDecimal(h);y=N.octal||y,c+=String.fromCharCode(N.code)}else c+=h;break}else++this.lineNumber,h==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index;else{if(s.Character.isLineTerminator(h.charCodeAt(0)))break;c+=h}}return d!==""&&(this.index=m,this.throwUnexpectedToken()),{type:8,value:c,octal:y,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},p.prototype.scanTemplate=function(){var m="",d=!1,y=this.index,c=this.source[y]==="`",h=!1,g=2;for(++this.index;!this.eof();){var S=this.source[this.index++];if(S==="`"){g=1,h=!0,d=!0;break}else if(S==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,d=!0;break}m+=S}else if(S==="\\")if(S=this.source[this.index++],s.Character.isLineTerminator(S.charCodeAt(0)))++this.lineNumber,S==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index;else switch(S){case"n":m+=`
`;break;case"r":m+="\r";break;case"t":m+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,m+=this.scanUnicodeCodePointEscape();else{var N=this.index,T=this.scanHexEscape(S);T!==null?m+=T:(this.index=N,m+=S)}break;case"x":var I=this.scanHexEscape(S);I===null&&this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence),m+=I;break;case"b":m+="\b";break;case"f":m+="\f";break;case"v":m+="\v";break;default:S==="0"?(s.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral),m+="\0"):s.Character.isOctalDigit(S.charCodeAt(0))?this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral):m+=S;break}else s.Character.isLineTerminator(S.charCodeAt(0))?(++this.lineNumber,S==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index,m+=`
`):m+=S}return d||this.throwUnexpectedToken(),c||this.curlyStack.pop(),{type:10,value:this.source.slice(y+1,this.index-g),cooked:m,head:c,tail:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:y,end:this.index}},p.prototype.testRegExp=function(m,d){var y="\uFFFF",c=m,h=this;d.indexOf("u")>=0&&(c=c.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(g,S,N){var T=parseInt(S||N,16);return T>1114111&&h.throwUnexpectedToken(a.Messages.InvalidRegExp),T<=65535?String.fromCharCode(T):y}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y));try{RegExp(c)}catch(g){this.throwUnexpectedToken(a.Messages.InvalidRegExp)}try{return new RegExp(m,d)}catch(g){return null}},p.prototype.scanRegExpBody=function(){var m=this.source[this.index];i.assert(m==="/","Regular expression literal must start with a slash");for(var d=this.source[this.index++],y=!1,c=!1;!this.eof();)if(m=this.source[this.index++],d+=m,m==="\\")m=this.source[this.index++],s.Character.isLineTerminator(m.charCodeAt(0))&&this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),d+=m;else if(s.Character.isLineTerminator(m.charCodeAt(0)))this.throwUnexpectedToken(a.Messages.UnterminatedRegExp);else if(y)m==="]"&&(y=!1);else if(m==="/"){c=!0;break}else m==="["&&(y=!0);return c||this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),d.substr(1,d.length-2)},p.prototype.scanRegExpFlags=function(){for(var m="",d="";!this.eof();){var y=this.source[this.index];if(!s.Character.isIdentifierPart(y.charCodeAt(0)))break;if(++this.index,y==="\\"&&!this.eof())if(y=this.source[this.index],y==="u"){++this.index;var c=this.index,h=this.scanHexEscape("u");if(h!==null)for(d+=h,m+="\\u";c<this.index;++c)m+=this.source[c];else this.index=c,d+="u",m+="\\u";this.tolerateUnexpectedToken()}else m+="\\",this.tolerateUnexpectedToken();else d+=y,m+=y}return d},p.prototype.scanRegExp=function(){var m=this.index,d=this.scanRegExpBody(),y=this.scanRegExpFlags(),c=this.testRegExp(d,y);return{type:9,value:"",pattern:d,flags:y,regex:c,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},p.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var m=this.source.charCodeAt(this.index);return s.Character.isIdentifierStart(m)?this.scanIdentifier():m===40||m===41||m===59?this.scanPunctuator():m===39||m===34?this.scanStringLiteral():m===46?s.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():s.Character.isDecimalDigit(m)?this.scanNumericLiteral():m===96||m===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():m>=55296&&m<57343&&s.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},p}();e.Scanner=u},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenName={},e.TokenName[1]="Boolean",e.TokenName[2]="<end>",e.TokenName[3]="Identifier",e.TokenName[4]="Keyword",e.TokenName[5]="Null",e.TokenName[6]="Numeric",e.TokenName[7]="Punctuator",e.TokenName[8]="String",e.TokenName[9]="RegularExpression",e.TokenName[10]="Template"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9Line truncated
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),gce(e.onToken)){var i=e.onToken;e.onToken=function(s){return i.push(s)}}return gce(e.onComment)&&(e.onComment=vWt(e,e.onComment)),e}function vWt(t,e){return function(r,i,s,a,o,n){var u={type:r?"Block":"Line",value:i,start:s,end:a};t.locations&&(u.loc=new oT(this,o,n)),t.ranges&&(u.range=[s,a]),e.push(u)}}var nT=1,bS=2,k4=4,Nce=8,C4=16,Ice=32,Zx=64,Tce=128,Ih=256,uT=512,Yx=nT|bS|Ih;function x4(t,e){return bS|(t?k4:0)|(e?Nce:0)}var eq=0,q4=1,Xc=2,Ace=3,vce=4,kce=5,ia=function(e,r,i){this.options=e=kWt(e),this.sourceFile=e.sourceFile,this.keywords=cd(gWt[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var s="";e.allowReserved!==!0&&(s=N4[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType==="module"&&(s+=" await")),this.reservedWords=cd(s);var a=(s?s+" ":"")+N4.strict;this.reservedWordsStrict=cd(a),this.reservedWordsStrictBind=cd(a+" "+N4.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(dn).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ie.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(nT),this.regexpState=null,this.privateNameStack=[]},Bm={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ia.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};Bm.inFunction.get=function(){return(this.currentVarScope().flags&bS)>0};Bm.inGenerator.get=function(){return(this.currentVarScope().flags&Nce)>0};Bm.inAsync.get=function(){return(this.currentVarScope().flags&k4)>0};Bm.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],r=e.flags;if(r&(Ih|uT))return!1;if(r&bS)return(r&k4)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Bm.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags;return(e&Zx)>0||this.options.allowSuperOutsideMethod};Bm.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Tce)>0};Bm.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Bm.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],r=e.flags;if(r&(Ih|uT)||r&bS&&!(r&C4))return!0}return!1};Bm.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ih)>0};ia.extend=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];for(var i=this,s=0;s<e.length;s++)i=e[s](i);return i};ia.parse=function(e,r){return new this(r,e).parse()};ia.parseExpressionAt=function(e,r,i){var s=new this(i,e,r);return s.nextToken(),s.parseExpression()};ia.tokenizer=function(e,r){return new this(r,e)};Object.defineProperties(ia.prototype,Bm);var yn=ia.prototype,CWt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;yn.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){Vo.lastIndex=t,t+=Vo.exec(this.input)[0].length;var e=CWt.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){Vo.lastIndex=t+e[0].length;var r=Vo.exec(this.input),i=r.index+r[0].length,s=this.input.charAt(i);return s===";"||s==="}"||dn.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}t+=e[0].length,Vo.lastIndex=t,t+=Vo.exec(this.input)[0].length,this.input[t]===";"&&t++}};yn.eat=function(t){return this.type===t?(this.next(),!0):!1};yn.isContextual=function(t){return this.type===ie.name&&this.value===t&&!this.containsEsc};yn.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};yn.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};yn.canInsertSemicolon=function(){return this.type===ie.eof||this.type===ie.braceR||dn.test(this.input.slice(this.lastTokEnd,this.start))};yn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};yn.semicolon=function(){!this.eat(ie.semi)&&!this.insertSemicolon()&&this.unexpected()};yn.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};yn.expect=function(t){this.eat(t)||this.unexpected()};yn.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var tq=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};yn.checkPatternErrors=function(t,e){if(!!t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,e?"Assigning to rvalue":"Parenthesized pattern")}};yn.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,i=t.doubleProto;if(!e)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};yn.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yLine truncated
`),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
`),cooked:this.value},this.next(),r.tail=this.type===ie.backQuote,this.finishNode(r,"TemplateElement")};Ar.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:e});for(r.quasis=[i];!i.tail;)this.type===ie.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ie.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(ie.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(r,"TemplateLiteral")};Ar.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===ie.name||this.type===ie.num||this.type===ie.string||this.type===ie.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ie.star)&&!dn.test(this.input.slice(this.lastTokEnd,this.start))};Ar.parseObj=function(t,e){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(ie.braceR);){if(i)i=!1;else if(this.expect(ie.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(ie.braceR))break;var a=this.parseProperty(t,e);t||this.checkPropClash(a,s,e),r.properties.push(a)}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")};Ar.parseProperty=function(t,e){var r=this.startNode(),i,s,a,o;if(this.options.ecmaVersion>=9&&this.eat(ie.ellipsis))return t?(r.argument=this.parseIdent(!1),this.type===ie.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,e),this.type===ie.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(t||e)&&(a=this.start,o=this.startLoc),t||(i=this.eat(ie.star)));var n=this.containsEsc;return this.parsePropertyName(r),!t&&!n&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(ie.star),this.parsePropertyName(r)):s=!1,this.parsePropertyValue(r,t,i,s,a,o,e,n),this.finishNode(r,"Property")};Ar.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var r=t.kind==="get"?0:1;if(t.value.params.length!==r){var i=t.value.start;t.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};Ar.parsePropertyValue=function(t,e,r,i,s,a,o,n){(r||i)&&this.type===ie.colon&&this.unexpected(),this.eat(ie.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init"):this.options.ecmaVersion>=6&&this.type===ie.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(r,i),t.kind="init"):!e&&!n&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==ie.comma&&this.type!==ie.braceR&&this.type!==ie.eq?((r||i)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e?t.value=this.parseMaybeDefault(s,a,this.copyNode(t.key)):this.type===ie.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,a,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};Ar.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(ie.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(ie.bracketR),t.key;t.computed=!1}return t.key=this.type===ie.num||this.type===ie.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Ar.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};Ar.parseMethod=function(t,e,r){var i=this.startNode(),s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=t),this.options.ecmaVersion>=8&&(i.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(x4(e,i.generator)|Zx|(r?Tce:0)),this.expect(ie.parenL),i.params=this.parseBindingList(ie.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};Ar.parseArrowExpression=function(t,e,r,i){var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(x4(r,!1)|C4),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,i),this.yiel Line truncated
`;break;default:t+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}};ui.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(ie.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
`&&++this.pos;case`
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};ui.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return $c(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(i,8);return s>255&&(i=i.slice(0,-1),s=parseInt(i,8)),this.pos+=i.length-1,e=this.input.charCodeAt(this.pos),(i!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-i.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return Nh(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}};ui.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return r===null&&this.invalidStringToken(e,"Bad character escape sequence"),r};ui.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Qc(s,i))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,t+=this.input.slice(r,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?Up:Qc)(o,i)||this.invalidStringToken(a,"Invalid Unicode escape"),t+=$c(o),r=this.pos}else break;e=!1}return t+this.input.slice(r,this.pos)};ui.readWord=function(){var t=this.readWord1(),e=ie.name;return this.keywords.test(t)&&(e=$x[t]),this.finishToken(e,t)};var Zce="8.15.0";ia.acorn={Parser:ia,version:Zce,defaultOptions:Xx,Position:hS,SourceLocation:oT,getLineInfo:v4,Node:mT,TokenType:Ni,tokTypes:ie,keywordTypes:$x,TokContext:tp,tokContexts:Is,isIdentifierChar:Qc,isIdentifierStart:Up,Token:oq,isNewLine:Nh,lineBreak:dn,lineBreakG:yce,nonASCIIwhitespace:A4};function XWt(t,e){return ia.parse(t,e)}function ZWt(t,e,r){return ia.parseExpressionAt(t,e,r)}function YWt(t,e){return ia.tokenizer(t,e)}});var tle=l(eHt=>{dr(eHt);yr(eHt,{ancestor:()=>rHt,base:()=>At,findNodeAfter:()=>uHt,findNodeAround:()=>nHt,findNodeAt:()=>oHt,findNodeBefore:()=>pHt,full:()=>sHt,fullAncestor:()=>aHt,make:()=>ele,recursive:()=>iHt,simple:()=>tHt});function tHt(t,e,r,i,s){r||(r=At),function a(o,n,u){var p=u||o.type;r[p](o,n,a),e[p]&&e[p](o,n)}(t,i,s)}function rHt(t,e,r,i,s){var a=[];r||(r=At),function o(n,u,p){var m=p||n.type,d=n!==a[a.length-1];d&&a.push(n),r[m](n,u,o),e[m]&&e[m](n,u||a,a),d&&a.pop()}(t,i,s)}function iHt(t,e,r,i,s){var a=r?ele(r,i||void 0):i;(function o(n,u,p){a[p||n.type](n,u,o)})(t,e,s)}function nq(t){return typeof t=="string"?function(e){return e===t}:t||function(){return!0}}var Th=function(e,r){this.node=e,this.state=r};function sHt(t,e,r,i,s){r||(r=At);var a;(function o(n,u,p){var m=p||n.type;r[m](n,u,o),a!==n&&(e(n,u,m),a=n)})(t,i,s)}function aHt(t,e,r,i){r||(r=At);var s=[],a;(function o(n,u,p){var m=p||n.type,d=n!==s[s.length-1];d&&s.push(n),r[m](n,u,o),a!==n&&(e(n,u||s,s,m),a=n),d&&s.pop()})(t,i)}function oHt(t,e,r,i,s,a){s||(s=At),i=nq(i);try{(function o(n,u,p){var m=p||n.type;if((e==null||n.start<=e)&&(r==null||n.end>=r)&&s[m](n,u,o),(e==null||n.start===e)&&(r==null||n.end===r)&&i(m,n))throw new Th(n,u)})(t,a)}catch(o){if(o instanceof Th)return o;throw o}}function nHt(t,e,r,i,s){r=nq(r),i||(i=At);try{(function a(o,n,u){var p=u||o.type;if(!(o.start>e||o.end<e)&&(i[p](o,n,a),r(p,o)))throw new Th(o,n)})(t,s)}catch(a){if(a instanceof Th)return a;throw a}}function uHt(t,e,r,i,s){r=nq(r),i||(i=At);try{(function a(o,n,u){if(!(o.end<e)){var p=u||o.type;if(o.start>=e&&r(p,o))throw new Th(o,n);i[p](o,n,a)}})(t,s)}catch(a){if(a instanceof Th)return a;throw a}}function pHt(t,e,r,i,s){r=nq(r),i||(i=At);var a;return function o(n,u,p){if(!(n.start>e)){var m=p||n.type;n.end<=e&&(!a||a.node.end<n.end)&&r(m,n)&&(a=new Th(n,u)),i[m](n,u,o)}}(t,s),a}function ele(t,e){var r=Object.create(e||At);for(var i in t)r[i]=t[i];return r}function w4(t,e,r){r(t,e)}function Ah(t,e,r){}var At={};At.Program=At.BlockStatement=At.StaticBlock=function(t,e,r){for(var i=0,s=t.body;i<s.length;i+=1){var a=s[i];r(a,e,"Statement")}};At.Statement=w4;At.EmptyStatement=Ah;At.ExpressionStatement=At.ParenthesizedExpression=At.ChainExpression=function(t,e,r){return r(t.expression,e,"Expression")};At.IfStatement=function(t,e,r){r(t.test,e,"Expression"),r(t.consequent,e,"Statement"),t.alternate&&r(t.alternate,e,"Statement")};At.LabeledStatement=function(t,e,r){return r(t.body,e,"Statement")};At.BreakStatement=At.ContinueStatement=Ah;At.WithStatement=function(t,e,r){r(t.object,e,"Expression"),r(t.body,e,"Statement")};At.SwitchStatement=function(t,e,r){r(t.discriminant,e,"Expression");for(var i= Line truncated
${m}
${d}
${p.stack}`,p}function yHt(t,e,r,i,s){let a,o;if(t===null){if(a=e,!/\b(?:catch|import|async)\b/.test(a))return{__proto__:null,code:a,hasAsync:!1}}else a=r?"(async function":"(function",i&&(a+="*"),a+=" anonymous(",a+=t,o=a.length,a+=`
) {
`,a+=e,a+=`
})`;let n=new mHt({__proto__:null,ecmaVersion:2022,allowAwaitOutsideFunction:t===null&&r,allowReturnOutsideFunction:t===null},a),u;try{u=n.parse()}catch(N){if(N instanceof SyntaxError&&N.pos!==void 0){let T=N.message,I=T.match(/^(.*) \(\d+:\d+\)$/);I&&(T=I[1]),N=rle(T,a,s,N.pos,n)}throw N}if(t!==null){let N=L4(u,"Program").body;if(N.length!==1)throw new SyntaxError("Single function literal required");let T=N[0];if(T.type!=="ExpressionStatement")throw new SyntaxError("Single function literal required");let I=T.expression;if(I.type!=="FunctionExpression")throw new SyntaxError("Single function literal required");if(I.body.start!==o+3)throw new SyntaxError("Unexpected end of arg string")}let p=[],m=!1,d=-100,y=100,c,h="VM2_INTERNAL_TMPNAME";if(dHt(u,(N,T,I)=>{I==="Function"&&N.async&&(m=!0);let v=N.type;if(v==="CatchClause"){let A=N.param;if(A)if(A.type==="Identifier"){let D=L4(A,"Identifier").name,G=L4(N.body,"BlockStatement");G.body.length>0&&p.push({__proto__:null,pos:G.body[0].start,order:d,coder:()=>`${D}=${SS}.handleException(${D});`})}else p.push({__proto__:null,pos:N.start,order:y,coder:()=>`catch(${h}){${h}=${SS}.handleException(${h});try{throw ${h};}`}),p.push({__proto__:null,pos:N.body.end,order:d,coder:()=>"}"})}else v==="WithStatement"?(p.push({__proto__:null,pos:N.object.start,order:d,coder:()=>SS+".wrapWith("}),p.push({__proto__:null,pos:N.object.end,order:y,coder:()=>")"})):v==="Identifier"?N.name===SS?(c===void 0||c.start>N.start)&&(c=N):N.name.startsWith(h)&&(h=N.name+"_UNIQUE"):v==="ImportExpression"&&p.push({__proto__:null,pos:N.start,order:y,coder:()=>SS+"."})}),c)throw rle("Use of internal vm2 state variable",a,s,c.start,{__proto__:null,start:c.start,end:c.end});if(p.length===0)return{__proto__:null,code:a,hasAsync:m};p.sort((N,T)=>N.pos==T.pos?N.order-T.order:N.pos-T.pos);let g="",S=0;for(let N=0;N<p.length;N++){let T=p[N];g+=a.substring(S,T.pos)+T.coder(),S=T.pos}return g+=a.substring(S),{__proto__:null,code:g,hasAsync:m}}M4.INTERNAL_STATE_NAME=SS;M4.transformer=yHt});var fS=l(lT=>{"use strict";var{Script:hHt}=require("vm"),{lookupCompiler:bHt,removeShebang:gHt}=aT(),{transformer:SHt}=uq(),fHt=Object.defineProperties,_4="(function (exports, require, module, __filename, __dirname) { ",ile=_4+'"use strict"; ',F4=`
});`,sle=class{constructor(e,r){let i=`${e}`,s,a;arguments.length===2?typeof r=="object"?(a=r||{__proto__:null},s=a.filename):(a={__proto__:null},s=r):arguments.length>2?(a=arguments[2]||{__proto__:null},s=r||a.filename):a={__proto__:null};let{compiler:o="javascript",lineOffset:n=0,columnOffset:u=0}=a,p=bHt(o);fHt(this,{__proto__:null,code:{__proto__:null,get(){return this._prefix+this._code+this._suffix},set(m){let d=String(m);d===this._code&&this._prefix===""&&this._suffix===""||(this._code=d,this._prefix="",this._suffix="",this._compiledVM=null,this._compiledNodeVM=null,this._compiledCode=null)},enumerable:!0},filename:{__proto__:null,value:s||"vm.js",enumerable:!0},lineOffset:{__proto__:null,value:n,enumerable:!0},columnOffset:{__proto__:null,value:u,enumerable:!0},compiler:{__proto__:null,value:o,enumerable:!0},_code:{__proto__:null,value:i,writable:!0},_prefix:{__proto__:null,value:"",writable:!0},_suffix:{__proto__:null,value:"",writable:!0},_compiledVM:{__proto__:null,value:null,writable:!0},_compiledNodeVM:{__proto__:null,value:null,writable:!0},_compiledNodeVMStrict:{__proto__:null,value:null,writable:!0},_compiledCode:{__proto__:null,value:null,writable:!0},_hasAsync:{__proto__:null,value:!1,writable:!0},_compiler:{__proto__:null,value:p}})}wrap(e,r){let i=`${e}`,s=`${r}`;return this._prefix===i&&this._suffix===s?this:(this._prefix=i,this._suffix=s,this._compiledVM=null,this._compiledNodeVM=null,this._compiledNodeVMStrict=null,this)}compile(){return this._compileVM(),this}getCompiledCode(){if(!this._compiledCode){let e=this._compiler(this._prefix+gHt(this._code)+this._suffix,this.filename),r=SHt(null,e,!1,!1,this.filename);this._compiledCode=r.code,this._hasAsync=r.hasAsync}return this._compiledCode}_compile(e,r){return new hHt(e+this.getCompiledCode()+r,{__proto__:null,filename:this.filename,displayErrors:!1,lineOffset:this.lineOffset,columnOffset:this.columnOffset})}_compileVM(){let e=this._compiledVM;return e||(this._compiledVM=e=this._compile("","")),e}_compileNodeVM(){let e=this._compiledNodeVM;return e||(this._compiledNodeVM=e=this._compile(_4,F4)),e}_compileNodeVMStrict(){let e=this._compiledNodeVMStrict;return e||(this._compiledNodeVMStrict=e=this._compile(ile,F4)),e}};lT.MODULE_PREFIX=_4;lT.STRICT_MODULE_PREFIX=ile;lT.MODULE_SUFFIX=F4;lT.VMScript=sle});var mq=l(ale=>{"use strict";var dT=require("fs"),NHt=require("path"),{Script:U4,createContext:ole}=require("vm"),{EventEmitter:IHt}=require("events"),{INSPECT_MAX_BYTES:THt}=require("buffer"),{createBridge:AHt,VMError:pq}=fh(),{transformer:nle,INTERNAL_STATE_NAME:vHt}=uq(),{lookupCompiler:kHt}=aT(),{VMScript:CHt}=fS(),{inspect:xHt}=require("util"),qHt=Object.defineProperties,RHt=Object.freeze({Buffer,Function,Object,transformAndCheck:DHt,INSPECT_MAX_BYTES:THt,INTERNAL_STATE_NAME:vHt});function NS(t,e){return new U4(e,{__proto__:null,filename:t,displayErrors:!1})}var vh=Object.freeze({__proto__:null,displayErrors:!1});function B4(t){if(!t)throw new pq("Async not available")}function DHt(t,e,r,i,s){let a=nle(t,e,r,i,void 0);return B4(s||!a.hasAsync),a.code}var yT=null,ule=null;function EHt(t,e){yT||(yT=ole(),ule=new U4("fn()",{__proto__:null,filename:"timeout_bridge.js",displayErrors:!1})),yT.fn=t;try{return ule.runInContext(yT,{__proto__:null,displayErrors:!1,timeout:e})}finally{yT.fn=null}}var PHt=NS(`${__dirname}/bridge.js`,`(function(global) {"use strict"; const exports = {};${dT.readFileSync(`${__dirname}/bridge.js`,"utf8")}
return exports;})`),wHt=NS(`${__dirname}/setup-sandbox.js`,`(function(global, host, bridge, data, context) { ${dT.readFileSync(`${__dirname}/setup-sandbox.js`,"utf8")}
})`),MHt=NS("get_global.js","this"),G4=null,O4=null,V4=null;try{G4=NS("get_generator_function.js","(function*(){}).constructor")}catch(t){}try{O4=NS("get_async_function.js","(async function(){}).constructor")}catch(t){}try{V4=NS("get_async_generator_function.js","(async function*(){}).constructor")}catch(t){}var ple=class extends IHt{constructor(e={}){super();let{timeout:r,sandbox:i,compiler:s="javascript",allowAsync:a=!0}=e,o=e.eval!==!1,n=e.wasm!==!1,u=a&&!e.fixAsync;if(i&&typeof i!="object")throw new pq("Sandbox must be object.");let p=kHt(s),m=ole(void 0,{__proto__:null,codeGeneration:{__proto__:null,strings:o,wasm:n}}),d=MHt.runInContext(m,vh),{createBridge:y}=PHt.runInContext(m,vh)(d),c=AHt(y,()=>{}),h={__proto__:null,allowAsync:u};G4&&(h.GeneratorFunction=G4.runInContext(m,vh)),O4&&(h.AsyncFunction=O4.runInContext(m,vh)),V4&&(h.AsyncGeneratorFunction=V4.runInContext(m,vh));let g=wHt.runInContext(m,vh)(d,RHt,c.other,h,m),S=A=>{let D;try{D=A.runInContext(m,vh)}catch(G){throw c.from(G)}return c.from(D)},N=(A,D)=>{try{g.readonly(A,D)}catch(G){throw c.from(G)}return A},T=A=>{let D=c.other;try{D.fromWithFactory(D.protectedFactory,A)}catch(G){throw c.from(G)}return A},I=(A,D)=>{let G=c.other,E;try{E=G.from(D),G.addProtoMapping(E,A)}catch(j){throw c.from(j)}c.addProtoMapping(A,E)},v=(A,D)=>{let G=c.other,E=()=>{let j=D(this);return c.addProtoMapping(A,j),j};try{let j=G.from(E);G.addProtoMappingFactory(j,A)}catch(j){throw c.from(j)}};qHt(this,{__proto__:null,timeout:{__proto__:null,value:r,writable:!0,enumerable:!0},compiler:{__proto__:null,value:s,enumerable:!0},sandbox:{__proto__:null,value:c.from(d),enumerable:!0},_runScript:{__proto__:null,value:S},_makeReadonly:{__proto__:null,value:N},_makeProtected:{__proto__:null,value:T},_addProtoMapping:{__proto__:null,value:I},_addProtoMappingFactory:{__proto__:null,value:v},_compiler:{__proto__:null,value:p},_allowAsync:{__proto__:null,value:u}}),this.readonly(xHt),i&&this.setGlobals(i)}setGlobals(e){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this.sandbox[r]=e[r]);return this}setGlobal(e,r){return this.sandbox[e]=r,this}getGlobal(e){return this.sandbox[e]}freeze(e,r){return this.readonly(e),r&&(this.sandbox[r]=e),e}readonly(e,r){return this._makeReadonly(e,r)}protect(e,r){return this._makeProtected(e),r&&(this.sandbox[r]=e),e}run(e,r){let i,s;if(typeof r=="object"?s=r.filename:s=r,e instanceof CHt)i=e._compileVM(),B4(this._allowAsync||!e._hasAsync);else{let a=s||"vm.js",o=this._compiler(e,a),n=nle(null,o,!1,!1,a);o=n.code,B4(this._allowAsync||!n.hasAsync),i=new U4(o,{__proto__:null,filename:a,displayErrors:!1})}return this.timeout?EHt(()=>this._runScript(i),this.timeout):this._runScript(i)}runFile(e){let r=NHt.resolve(e);if(!dT.existsSync(r))throw new pq(`Script '${e}' not found.`);if(dT.statSync(r).isDirectory())throw new pq("Script must be file, got directory.");return this.run(dT.readFileSync(r,"utf8"),r)}};ale.VM=ple});var cq=l(j4=>{"use strict";var{VMError:os}=fh(),{VMScript:LHt}=fS(),{jsCopmiler:_Ht}=aT(),FHt=/^((?:@[^/\\%]+\/)?[^/\\%]+)(\/.*)?$/;function UHt(t){let e=+t;return`${e}`!==t?!1:e>=0&&e<4294967295}var z4=class{constructor(e,r,i){this.fs=e,this.globalPaths=r,this.builtins=i}init(e){}isPathAllowed(e){return!1}checkAccess(e,r){if(!this.isPathAllowed(r))throw new os(`Module '${r}' is not allowed to be required. The path is outside the border!`,"EDENIED")}pathIsRelative(e){if(e===""||e[0]!==".")return!1;if(e.length===1)return!0;let r=e[1]==="."?2:1;return e.length<=r?!1:this.fs.isSeparator(e[r])}pathIsAbsolute(e){return e!==""&&(this.fs.isSeparator(e[0])||this.fs.isAbsolute(e))}lookupPaths(e,r){return this.pathIsRelative(r)?[e.path||"."]:[...e.paths,...this.globalPaths]}getBuiltinModulesList(e){if(this.builtins===void 0)return[];let r=[];return this.builtins.forEach((i,s)=>{typeof i=="object"&&i.init(e),r.push(s)}),r}loadBuiltinModule(e,r){if(this.builtins===void 0)return;let i=this.builtins.get(r);if(!!i)return typeof i=="function"?i(e):i.load(e)}makeExtensionHandler(e,r){return(i,s)=>{s=this.fs.resolve(s),this.checkAccess(i,s),this[r](e,i,s)}}getExtensions(e){return{__proto__:null,".js":this.makeExtensionHandler(e,"loadJS"),".json":this.makeExtensionHandler(e,"loadJSON")," .node":this.makeExtensionHandler(e,"loadNode")}}loadJS(e,r,i){throw new os(`Access denied to require '${i}'`,"EDENIED")}loadJSON(e,r,i){throw new os(`Access denied to require '${i}'`,"EDENIED")}loadNode(e,r,i){throw new os(`Access denied to require '${i}'`,"EDENIED")}registerModule(e,r,i,s,a){}resolve(e,r,i,s,a){return r.startsWith("node:")||this.builtins.has(r)?r:this.resolveFull(e,r,i,s,a)}resolveFull(e,r,i,s,a){throw new os(`Cannot find module '${r}'`,"ENOTFOUND")}genLookupPaths(e){let r=[];for(;;){this.fs.basename(e)!=="node_modules"&&r.push(this.fs.join(e,"node_modules"));let s=this.fs.dirname(e);if(s==e)break;e=s}return r}};function BHt(t,e){try{let r=t.statSync(e,{__proto__:null,throwIfNoEntry:!1});return r&&r.isDirectory()}catch(r){return!1}}function mle(t Line truncated
ctor.super_ = superCtor;
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
}`,{__proto__:null,filename:"util.js"}));let e=t.run(Z4,{__proto__:null,strict:!0,wrapper:"none"}),r=Object.assign({},jHt);return r.inherits=e,t.readonly(r)}var TS=(VHt.builtinModules||Object.getOwnPropertyNames(process.binding("natives"))).filter(t=>!t.startsWith("internal/")),hle=null;if(IS.EventEmitterAsyncResource){let{AsyncResource:t}=require("async_hooks"),e=Symbol("kEventEmitter");class r extends t{constructor(s,a,o){super(a,o);this[e]=s}get eventEmitter(){return this[e]}}hle=r}var Y4,JHt={events:{init(t){if(!Y4){let i=OHt.readFileSync(`${__dirname}/events.js`,"utf8");Y4=new $4(`(function (fromhost) { const module = {}; module.exports={};{ ${i}
} return module.exports;})`,{filename:"events.js"})}let r=zHt.prototype.run.call(t,Y4)(t.readonly({kErrorMonitor:IS.errorMonitor,once:IS.once,on:IS.on,getEventListeners:IS.getEventListeners,EventEmitterReferencingAsyncResource:hle}));yle.set(t,r),t._addProtoMapping(IS.prototype,r.EventEmitter.prototype)},load:KHt},buffer:WHt,util:HHt};function lq(t,e,r){if(t.has(e))return;let i=JHt[e];t.set(e,i||(s=>s.readonly(r(e))))}function QHt(t,e,r,i){let s=new Map;if(r){let a=Object.getOwnPropertyNames(r);for(let o=0;o<a.length;o++){let n=a[o];s.set(n,u=>u.readonly(r[n]))}}if(i){let a=Object.getOwnPropertyNames(i);for(let o=0;o<a.length;o++){let n=a[o];s.set(n,i[n])}}if(Array.isArray(t))if(t.indexOf("*")>=0)for(let o=0;o<TS.length;o++){let n=TS[o];t.indexOf(`-${n}`)===-1&&lq(s,n,e)}else for(let o=0;o<TS.length;o++){let n=TS[o];t.indexOf(n)!==-1&&lq(s,n,e)}else if(t)for(let a=0;a<TS.length;a++){let o=TS[a];t[o]&&lq(s,o,e)}return s}function $Ht(t,e){let r=new Map;for(let i=0;i<t.length;i++){let s=t[i];lq(r,s,e)}return r}Q4.makeBuiltinsFromLegacyOptions=QHt;Q4.makeBuiltins=$Ht});var sj=l(gle=>{"use strict";var{Resolver:ej,DefaultResolver:XHt}=cq(),{VMError:ZHt}=fh(),{DefaultFileSystem:YHt}=J4(),{makeBuiltinsFromLegacyOptions:Sle}=ble(),{jsCompiler:eJt}=aT();function fle(t){return require(t)}function tj(t){return t.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function Nle(t){return tj(t).replace(/\\\\|\//g,"[\\\\/]").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^\\\\/]*").replace(/\\\?/g,"[^\\\\/]")}function tJt(t){let e=Nle(t);return new RegExp(`[\\\\/]node_modules[\\\\/]${e}(?:[\\\\/](?!(?:.*[\\\\/])?node_modules[\\\\/]).*)?$`)}var rj=class extends XHt{constructor(e,r,i,s,a,o,n,u,p){super(e,r,i);this.rootPaths=s,this.pathContext=a,this.customResolver=o,this.hostRequire=n,this.compiler=u,this.strict=p}isPathAllowed(e){return this.rootPaths===void 0||this.rootPaths.some(r=>{if(!e.startsWith(r))return!1;let i=r.length;return e.length===i||i>0&&this.fs.isSeparator(r[i-1])?!0:this.fs.isSeparator(e[i])})}loadJS(e,r,i){if(this.pathContext(i,"js")!=="host")return super.loadJS(e,r,i);let s=this.hostRequire(i);r.exports=e.readonly(s)}loadNode(e,r,i){if(this.pathContext(i,"node")!=="host")return super.loadNode(e,r,i);let s=this.hostRequire(i);r.exports=e.readonly(s)}customResolve(e,r,i){if(this.customResolver===void 0)return;let s=this.customResolver(e,r);if(!s)return;if(typeof s=="string")return this.loadAsFileOrDirectory(s,i);let{module:a=e,path:o}=s;return this.loadNodeModules(a,[o],i)}getCompiler(e){return this.compiler}isStrict(e){return this.strict}},Ile=class extends rj{constructor(e,r,i,s,a,o,n,u,p,m,d){super(e,r,i,s,a,o,n,u,p);this.externals=m.map(tJt),this.externalCache=m.map(y=>new RegExp(Nle(y))),this.currMod=void 0,this.trustedMods=new WeakMap,this.allowTransitive=d}isPathAllowed(e){return this.isPathAllowedForModule(e,this.currMod)}isPathAllowedForModule(e,r){if(!super.isPathAllowed(e))return!1;if(r){if(r.allowTransitive)return!0;if(e.startsWith(r.path)){let i=e.slice(r.path.length);if(!/(?:^|[\\\\/])node_modules(?:$|[\\\\/])/.test(i))return!0}}return this.externals.some(i=>i.test(e))}registerModule(e,r,i,s,a){let o=this.trustedMods.get(s);this.trustedMods.set(e,{filename:r,path:i,paths:this.genLookupPaths(i),allowTransitive:this.allowTransitive&&(a&&o&&o.allowTransitive||this.externals.some(n=>n.test(r)))})}resolveFull(e,r,i,s,a){if(this.currMod=void 0,!a)return super.resolveFull(e,r,i,s,!1);let o=this.trustedMods.get(e);if(!o||e.path!==o.path)return super.resolveFull(e,r,i,s,!1);let n=[...e.paths];if(n.length!==o.paths.length)return super.resolveFull(e,r,i,s,!1);for(let u=0;u<n.length;u++)if(n[u]!==o.paths[u])return super.resolveFull(e,r,i,s,!1);try{return this.currMod=o,super.resolveFull(o,r,i,s,!0)}finally{this.currMod=void 0}}checkAccess(e,r){let i=this.trustedMods.get(e);if((!i||i.filename!==r)&&!this.isPathAllowedForModule(r,void 0))throw new ZHt(`Module '${r}' is not allowed to be required. The path is outside the border!`,"EDENIED")}loadJS(e,r,i){if(this.pathContext(i,"js")!=="host"){let s=this.trustedMods.get(r),a=this.readScript(i);e.run(a,{filename:i,strict:this.isStrict(i),module:r,wrapper:"none",dirname:s?s.path:r.path})}else{let s=this.hostRequire(i);r.exports=e.readonly(s)}}customResolve(e,r,i){if(this.customResolver===void 0||!(this.pathIsAbsolute(e)||this.pathIsRelative(e))&&!this.externalCache.some(n=>n.test(e)))return;let s=this.customResolver(e,r);if(!s)return;if(typeof s=="string")return this.externals.push(new RegExp("^"+tj(s))),this.loadAsFileOrDirectory(s,i);let{module:a=e,path:o}=s;return this.externals.push(new RegExp("^"+tj(o))),this.loadNodeModules(a,[o],i)}},ij=new YHt,rJt=new ej(ij,[],new Map);function iJt(t,e,r){if(!t){if(!e)return rJt;let N=Sle(void 0,fle,void 0,e);return new ej(ij,[],N)}let{builtin:i,mock:s,external:a,root:o,resolve:n,customRequire:u=fle,context:p="host",strict:m=!0,fs:d=ij}=t,y=Sle(i,u,s,e);if(!a)return new ej(d,[],y);r||(r=eJt);let c=o?(Array.isArray(o)?o:[o]).map(N=>d Line truncated
})`));let S=this._runScript(aj),N=yJt(this,g,p);this.readonly(xle);let{Module:T,jsonParse:I,createRequireForModule:v,requireImpl:A}=S(xle,{__proto__:null,argv:m,env:d,console:a,extensions:N,emitArgs:(D,G)=>{if(typeof D!="string"&&typeof D!="symbol")throw new Error("Event is not a string");return this.emit(D,...G)},globalPaths:[...g.globalPaths],getLookupPathsFor:D=>typeof D!="string"?[]:[...g.genLookupPaths(D)],resolve:(D,G,E,j,L)=>{if(typeof G!="string")throw new Error("Id is not a string");let V=Object.getOwnPropertyNames(j);return g.resolve(D,G,bJt(E),V,!!L)},lookupPaths:(D,G)=>{if(typeof G!="string")throw new Error("Id is not a string");return[...g.lookupPaths(D,G)]},loadBuiltinModule:D=>{if(typeof D!="string")throw new Error("Id is not a string");return g.loadBuiltinModule(this,D)},registerModule:(D,G,E,j,L)=>g.registerModule(D,G,E,j,L),builtinModules:[...g.getBuiltinModulesList(this)],dirname:D=>typeof D!="string"?D:g.fs.dirname(D),basename:D=>typeof D!="string"?D:g.fs.basename(D)});if(cJt(this,{__proto__:null,_Module:{__proto__:null,value:T},_jsonParse:{__proto__:null,value:I},_createRequireForModule:{__proto__:null,value:v},_requireImpl:{__proto__:null,value:A},_cacheRequireModule:{__proto__:null,value:null,writable:!0}}),g.init(this),c&&this.setGlobals(c),!h&&o&&o.import)if(Array.isArray(o.import))for(let D=0,G=o.import.length;D<G;D++)this.require(o.import[D]);else this.require(o.import)}get _resolver(){return this.resolver}call(e,...r){if(typeof e=="function")return e(...r);throw new AS("Unrecognized method type.")}require(e){let r=this.resolver.fs.resolve("."),i=this._cacheRequireModule;if(!i||i.path!==r){let s=this.resolver.fs.join(r,"/vm.js");i=new this._Module(s,r),this.resolver.registerModule(i,s,r,null,!1),this._cacheRequireModule=i}return this._requireImpl(i,e,!0)}run(e,r){let i,s;typeof r=="object"?s=r.filename:(s=r,r={__proto__:null});let{strict:a=this.options.strict,wrapper:o=this.options.wrapper,module:n,require:u,dirname:p=null}=r,m=n,d=p;if(e instanceof sJt){if(i=a?e._compileNodeVMStrict():e._compileNodeVM(),!m){let g=this.resolver.fs.resolve(e.filename);d=this.resolver.fs.dirname(g),m=new this._Module(g,d),this.resolver.registerModule(m,g,d,null,!1)}}else{let g=s||"vm.js";if(!m)if(s){let T=this.resolver.fs.resolve(s);d=this.resolver.fs.dirname(T),m=new this._Module(T,d),this.resolver.registerModule(m,T,d,null,!1)}else m=new this._Module(null,null),m.id=g;let S=a?oJt:aJt,N=this._compiler(e,g);N=uJt(null,N,!1,!1,g).code,i=new vle(S+N+nJt,{__proto__:null,filename:g,displayErrors:!1})}let y=this._runScript(i),c=u||this._createRequireForModule(m),h=Reflect.apply(y,this.sandbox,[m.exports,c,m,s,d]);return o==="commonjs"?m.exports:h}static code(e,r,i){let s;if(r!=null)if(typeof r=="object")i=r,s=i.filename;else if(typeof r=="string")s=r;else throw new AS("Invalid arguments.");else typeof i=="object"&&(s=i.filename);if(arguments.length>3)throw new AS("Invalid number of arguments.");let a=typeof s=="string"?Ale.resolve(s):void 0;return new vS(i).run(e,a)}static file(e,r){let i=Ale.resolve(e);if(!dq.existsSync(i))throw new AS(`Script '${e}' not found.`);if(dq.statSync(i).isDirectory())throw new AS("Script must be file, got directory.");return new vS(r).run(dq.readFileSync(i,"utf8"),i)}};function lJt(t){return oj||(oj=qle("nesting.js","(vm, nodevm) => ({VM: vm, NodeVM: nodevm})")),t._runScript(oj)(t.readonly(kle),t.readonly(vS))}Tle.NodeVM=vS});var Rle=l(dd=>{"use strict";var{VMError:gJt}=fh(),{VMScript:SJt}=fS(),{VM:fJt}=mq(),{NodeVM:NJt}=Dle(),{VMFileSystem:IJt}=J4(),{Resolver:TJt}=cq(),{makeResolverFromLegacyOptions:AJt}=sj();dd.VMError=gJt;dd.VMScript=SJt;dd.NodeVM=NJt;dd.VM=fJt;dd.VMFileSystem=IJt;dd.Resolver=TJt;dd.makeResolverFromLegacyOptions=AJt});var Ple=l((w8r,Ele)=>{if(parseInt(process.versions.node.split(".")[0])<6)throw new Error("vm2 requires Node.js version 6 or newer.");Ele.exports=Rle()});var _le=l((M8r,wle)=>{"use strict";var vJt=require("util"),kJt=Gpe(),CJt=Ope(),hn=rce(),Mle=Ple();function nj(t,e){if(!Array.isArray(e))throw new TypeError('an array of async function "names" is required');let r=e.slice(0),i=CJt.parseScript(t),s=0;do s=r.length,hn.visit(i,{visitVariableDeclaration(a){if(a.node.declarations)for(let o=0;o<a.node.declarations.length;o++){let n=a.node.declarations[o];hn.namedTypes.VariableDeclarator.check(n)&&hn.namedTypes.Identifier.check(n.init)&&hn.namedTypes.Identifier.check(n.id)&&kS(n.init.name,r)&&!kS(n.id.name,r)&&r.push(n.id.name)}return!1},visitAssignmentExpression(a){return hn.namedTypes.Identifier.check(a.node.left)&&hn.namedTypes.Identifier.check(a.node.right)&&kS(a.node.right.name,r)&&!kS(a.node.left.name,r)&&r.push(a.node.left.name),!1},visitFunction(a){if(a.node.id){let o=!1;if(hn.visit(a.node,{visitCallExpression(n){return Lle(n.node,r)&&(o=!0),!1}}),!o)return!1;a.node.async=!0,kS(a.node.id.name,r)||r.push(a.node.id.name)}this.traverse(a)}});while(s!==r.length);return hn.visit(i,{visitCallExpression(a){if(Lle(a.node,r)){let o=!1,{name:n,parent:{ Line truncated
\v\f\r !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0Line truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var jde=l(Ode=>{"use strict";var r5=zr().Buffer;Ode._dbcs=Yc;var fo=-1,Vde=-2,sp=-10,bn=-1e3,qS=new Array(256),AT=-1;for(var i5=0;i5<256;i5++)qS[i5]=fo;function Yc(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=qS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(qS.slice(0));var a=this.decodeTables.length;this.decodeTables.push(qS.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var n=this.decodeTables[bn-o[i]],u=48;u<=57;u++){if(n[u]===fo)n[u]=bn-s;else if(n[u]>bn)throw new Error("gb18030 decode tables conflict at byte 2");for(var p=this.decodeTables[bn-n[u]],m=129;m<=254;m++){if(p[m]===fo)p[m]=bn-a;else{if(p[m]===bn-a)continue;if(p[m]>bn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[bn-p[m]],y=48;y<=57;y++)d[y]===fo&&(d[y]=Vde)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var c={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipVals.lengtLine truncated
--------------------
`;Sa.TIMEOUT=RS("5s");Sa.TIMEOUTS=[RS("5s"),RS("5s")];var d5=0,p$t=Math.pow(2,31)-10,Iye=/^v0\.10\.\d+$/.test(process.version),m$t=/^v0\.12\.\d+$/.test(process.version),c$t=["json","text"],Tye=/^https?:\/\//i,l$t=/^timeout=(\d+)/i,Aye="_URLLIB_SOCKET_REQUEST_COUNT",Dq="_URLLIB_SOCKET_RESPONSE_COUNT";Sa.request=function(e,r,i){return arguments.length===2&&typeof r=="function"&&(i=r,r=null),typeof i=="function"?Sa.requestWithCallback(e,r,i):(c5||(c5=eI()),new c5(function(s,a){Sa.requestWithCallback(e,r,d$t(s,a))}))};Sa.curl=Sa.request;function d$t(t,e){return function(r,i,s){if(r)return e(r);t({data:i,status:s.statusCode,headers:s.headers,res:s})}}Sa.requestThunk=function(e,r){return function(i){Sa.requestWithCallback(e,r,function(s,a,o){if(s)return i(s);i(null,{data:a,status:o.statusCode,headers:o.headers,res:o})})}};function vye(t,e,r){var i;if(!t||typeof t!="string"&&typeof t!="object"){var s=$Qt.format("expect request url to be a string or a http request options, but got %j",t);throw new Error(s)}arguments.length===2&&typeof e=="function"&&(r=e,e=null),e=e||{},d5>=p$t&&(d5=0);var a=++d5;e.requestUrls=e.requestUrls||[],e.timeout=e.timeout||Sa.TIMEOUTS,e.maxRedirects=e.maxRedirects||10,e.streaming=e.streaming||e.customResponse;var o=Date.now(),n;typeof t=="string"?(Tye.test(t)||(t="http://"+t),Sye?n=qq.parse(new Sye(t).href):n=qq.parse(t)):n=t;var u={requestId:a,url:n.href,args:e,ctx:e.ctx};e.emitter&&e.emitter.emit("request",u);var p=(e.type||e.method||n.method||"GET").toUpperCase(),m=n.port||80,d=bye,y=kye(e.agent,Sa.agent),c=e.fixJSONCtlChars;n.protocol==="https:"&&(d=gye,y=kye(e.httpsAgent,Sa.httpsAgent),n.port||(m=443));var h=s$t(n,e);h&&(y=h);var g=e.lookup;if(e.checkAddress){var S=g||QQt.lookup;g=function(de,Le,Ve){S(de,Le,function(O,F,w){!O&&!e.checkAddress(F,w,de)&&(O=new Error("illegal address"),O.name="IllegalAddressError",O.hostname=de,O.ip=F,O.family=w),Ve(O,F,w)})}}var N=0,T={host:n.hostname||n.host||"localhost",path:n.path||"/",method:p,port:m,agent:y,headers:{},lookup:g},I={};if(e.headers)for(var v=m5.getOwnEnumerables(e.headers,!0),A=0;A<v.length;A++){var D=v[A],G=D.toLowerCase();G!==D&&(I[G]=D),T.headers[G]=e.headers[D]}e.socketPath&&(T.socketPath=e.socketPath);for(var E=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],A=0;A<E.length;A++){var D=E[A];e.hasOwnProperty(D)&&(T[D]=e[D])}n$t<12&&T.rejectUnauthorized===!1&&!T.hasOwnProperty("secureOptions")&&(T.secureOptions=require("constants").SSL_OP_NO_TLSv1_2);var j=e.auth||n.auth;j&&(T.auth=j);var L=null,V=!1;if(e.files){(!T.method||T.method==="GET"||T.method==="HEAD")&&(T.method="POST");var _=e.files,W=[];if(Array.isArray(_))for(var A=0;A<_.length;A++){var re="file"+(A===0?"":A);W.push([re,_[A]])}else if(Buffer.isBuffer(_)||typeof _.pipe=="function"||typeof _=="string")W.push(["file",_]);else if(typeof _=="object")for(var re in _)W.push([re,_[re]]);var H=new i$t;if(e.data)for(var ye in e.data)H.field(ye,e.data[ye]);for(var A=0;A<W.length;A++){var le=W[A];if(Buffer.isBuffer(le[1]))H.buffer(le[0],le[1],"bufferfile"+A);else if(typeof le[1].pipe=="function"){var be=le[1].path||"streamfile"+A;be=JQt.basename(be),H.stream(le[0],le[1],be)}else H.file(le[0],le[1])}for(var ce=H.headers(),ue=m5.getOwnEnumerables(ce,!0),A=0;A<ue.length;A++){var D=ue[A];T.headers[D.toLowerCase()]=ce[D]}Ii("set multipart headers: %j, method: %s",ce,T.method),e.stream=H}else if(L=e.content||e.data,V=p==="GET"||p==="HEAD"||e.dataAsQueryString,!e.content&&L&&!(typeof L=="string"||Buffer.isBuffer(L)))if(V)L=e.nestedQuerystring?fye.stringify(L):Nye.stringify(L);else{var Ie=T.headers["content-type"];Ie||(e.contentType==="json"?Ie="application/json":Ie="application/x-www-form-urlencoded",T.headers["content-type"]=Ie),Cye(Ie).type==="application/json"?L=JSON.stringify(L):L=e.nestedQuerystring?fye.stringify(L):Nye.stringify(L)}if(L&&(V&&(T.path+=(n.query?"&":"?")+L,L=null),L)){var Ae=L.length;Buffer.isBuffer(L)||(Ae=Buffer.byteLength(L)),N=Ae,T.headers["content-length"]=Ae.toString()}e.dataType==="json"&&(T.headers.accept||(T.headers.accept="application/json")),typeof e.beforeRequest=="function"&&e.beforeRequest(T);var Pe=null,qe=null,We=null,ee=!1,U=!1,we=0,oe=0,De=0,Ce=-1,Te=null,Qe=!1,_e="",Ue="",tt=null;e.timing&&(tt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Jt(){Pe&&(clearTimeout(Pe),Pe=null,Ii("Request#%d connect timer canceled",a))}function st(){qe&&(clearTimeout(qe),qe=null,Ii("Request#%d response timer canceled",a))}function mt(de,Le,Ve){if(Jt(),st(),!r){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),a,process.pid,T.method,t),de&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),a,process.pid,de.name,de.message,de.stack);return}var lt=r;r=null;var O={};if(Ve&&(Ce=Ve.statusCode,Te=Ve.statusMessage,O=Ve.headers),!Bt(Ve,lt)){var F=kr(Le,Ve);if(Ii("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j, socketHandledRequests: %s, socketHandledResponses: %s",F.requestUseTime,De,Ce,T.method,T.host,T.path,U,tt,we,oe),de){var w="";y&&typeof y.getCurrentStatus=="function"&&(w=", agent status: "+JSON.stringify(y.getCurrentStatus())),de.message+=", "+T.method+" "+t+" "+Ce+" (connected: "+ee+", keepalive socket: "+U+w+", socketHandledRequests: "+we+", socketHandledResponses: "+oe+`)
headers: `+JSON.stringify(O),de.data=Le,de.path=T.path,de.status=Ce,de.headers=O,de.res=F,b$t(de,i)}var x=y&&(y.options&&y.options.freeSocketTimeout||y.freeSocketKeepAliveTimeout);if(y&&y.keepAlive&&x>0&&Ce>=200&&O.connection==="keep-alive"&&O["keep-alive"]){var K=l$t.exec(O["keep-alive"]);if(K){var ae=parseInt(K[1]);if(ae>0){var he=ae*1e3-500;if(he<x){var Oe=Ve.socket||i&&i.socket;y.options&&y.options.freeSocketTimeout?Oe.freeSocketTimeout=he:Oe.freeSocketKeepAliveTimeout=he}}}}lt(de,Le,e.streaming?Ve:F),Lr(de,F)}}function vr(de,Le){var Ve=kr(de,Le);Lr(null,Ve)}function kr(de,Le){var Ve=Date.now()-o;tt&&(tt.contentDownload=Ve);var lt=Le&&Le.headers||{},O=Le&&Le.statusCode||Ce,F=Le&&Le.statusMessage||Te;return{status:O,statusCode:O,statusMessage:F,headers:lt,size:De,aborted:Qe,rt:Ve,keepAliveSocket:U,data:de,requestUrls:e.requestUrls,timing:tt,remoteAddress:_e,remotePort:Ue,socketHandledRequests:we,socketHandledResponses:oe}}function Lr(de,Le){e.emitter&&(u.url=n.href,u.socket=i&&i.connection,u.options=T,u.size=N,e.emitter.emit("response",{requestId:a,error:de,ctx:e.ctx,req:u,res:Le}))}function Bt(de,Le){var Ve={};if(de&&de.headers&&(Ve=de.headers),Ce===401&&Ve["www-authenticate"]&&!T.headers.authorization&&e.digestAuth){var lt=Ve["www-authenticate"];if(lt.indexOf("Digest ")>=0)return Ii("Request#%d %s: got digest auth header WWW-Authenticate: %s",a,t,lt),T.headers.authorization=YQt(T.method,T.path,lt,e.digestAuth),Ii("Request#%d %s: auth with digest header: %s",a,t,T.headers.authorization),de.headers["set-cookie"]&&(T.headers.cookie=de.headers["set-cookie"].join(";")),e.headers=T.headers,Sa.requestWithCallback(t,e,Le),!0}return!1}function tr(de){var Le=null;if(e.followRedirect&&e$t.redirect[de.statusCode]){e._followRedirectCount=(e._followRedirectCount||0)+1;var Ve=de.headers.location;if(!Ve)Le=new Error("Got statusCode "+de.statusCode+" but cannot resolve next location from headers"),Le.name="FollowRedirectError";else if(e._followRedirectCount>e.maxRedirects)Le=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+t),Le.name="MaxRedirectError";else{var lt=e.formatRedirectUrl?e.formatRedirectUrl(t,Ve):qq.resolve(t,Ve);Ii("Request#%d %s: `redirected` from %s to %s",a,T.path,t,lt),st(),T.headers.host&&Tye.test(Ve)&&(T.headers.host=null,e.headers=T.headers);var O=r;return r=null,Sa.requestWithCallback(lt,e,O),{redirect:!0,error:null}}}return{redirect:!1,error:Le}}if(e.headers&&(e.headers["User-Agent"]===null||e.headers["user-agent"]===null))T.headers["user-agent"]&&delete T.headers["user-agent"];else{var qt=T.headers["user-agent"];qt||(T.headers["user-agent"]=o$t)}if(e.gzip){var te=e.headers&&(e.headers["Accept-Encoding"]===null||e.headers["accept-encoding"]===null);if(!te){var me=T.headers["accept-encoding"];me||(T.headers["accept-encoding"]="gzip, deflate")}}function ge(de,Le,Ve){if(Qe){Ii("Request#%d %s: Remote socket was terminated before `response.end()` was called",a,t);var lt=Pt||new Error("Remote socket was terminated before `response.end()` was called");return Ve(lt)}var O=de.headers["content-encoding"];if(Le.length===0||!O)return Ve(null,Le,O);switch(O=O.toLowerCase(),O){case"gzip":case"deflate":Ii("unzip %d length body",Le.length),XQt.unzip(Le,function(F,w){F&&F.name==="Error"&&(F.name="UnzipError"),Ve(F,w)});break;default:Ve(null,Le,O)}}var Ee=e.writeStream,ze=!1;Ii("Request#%d %s %s with headers %j, options.path: %s",a,p,t,T.headers,T.path),e.requestUrls.push(n.href);var ft=!1,Pt;function wt(de){if(ft=!0,oe=de.socket[Dq]=(de.socket[Dq]||0)+1,tt&&(tt.waiting=Date.now()-o),Ii("Request#%d %s `req response` event emit: status %d, headers: %j",a,t,de.statusCode,de.headers),e.streaming){var Le=tr(de);if(Le.redirect){de.resume(),vr(null,de);return}return Le.error?(de.resume(),mt(Le.error,null,de)):mt(null,null,de)}if(de.on("error",function(F){Pt=F,Ii("Request#%d %s: `res error` event emit, total size %d, socket handled %s requests and %s responses",a,t,De,we,oe)}),de.on("aborted",function(){Qe=!0,Ii("Request#%d %s: `res aborted` event emit, total size %d",a,t,De)}),Ee){var Le=tr(de);if(Le.redirect){de.resume(),vr(null,de);return}if(Le.error){de.resume(),Ee.end(),mt(Le.error,null,de);return}if(e.consumeWriteStream===!1){de.on("end",mt.bind(null,null,null,de)),p5(de,Ee,function(w){ze||(ze=!0,Ii("Request#%d %s: writeStream close, error: %s",a,t,w))});return}if(Iye||m$t){r$t([[Ee,"close"],[de,"aborted"]],function(w,x,K){Ii("Request#%d %s: writeStream or res %s event emitted",a,t,K),mt(We||null,null,de)}),de.pipe(Ee);return}Ii("Request#%d %s: pump res to writeStream",a,t),p5(de,Ee,function(w){Ii("Request#%d %s: writeStream close event emitted, error: %s, isWriteStreamClose: %s",a,t,w,ze),!ze&&(ze=!0,mt(We||w,null,de))});return}var Ve=[];de.on("data",function(F){Ii("Request#%d %s: `res data` event emit, size %d",a,t,F.length),De+=F.length,Ve.push(F)});var lt=!1;function O(F){if(Ii("Request#%d %s: `res %s` event emit, total size %d, socket handled %s requests and %s responses",a,t,F,De,we,oe), Line truncated
`);i!==-1&&(t._longStack=!0,t.stack+=u$t+r.substr(i+1))}}}function g$t(t){return t.timeout||t._idleTimeout}});var h5=l((N9r,xye)=>{"use strict";var qye=require("events").EventEmitter,T$t=require("util"),Dye=ed(),Rq=y5();xye.exports=vT;function vT(t){qye.call(this),t=t||{},t.agent!==void 0?(this.agent=t.agent,this.hasCustomAgent=!0):(this.agent=Rq.agent,this.hasCustomAgent=!1),t.httpsAgent!==void 0?(this.httpsAgent=t.httpsAgent,this.hasCustomHttpsAgent=!0):(this.httpsAgent=Rq.httpsAgent,this.hasCustomHttpsAgent=!1),this.defaultArgs=t.defaultArgs}T$t.inherits(vT,qye);vT.prototype.request=vT.prototype.curl=function(t,e,r){return typeof e=="function"&&(r=e,e=null),e=e||{},this.defaultArgs&&(e=Dye.assign({},[this.defaultArgs,e])),e.emitter=this,e.agent=Eq(e.agent,this.agent),e.httpsAgent=Eq(e.httpsAgent,this.httpsAgent),Rq.request(t,e,r)};vT.prototype.requestThunk=function(t,e){return e=e||{},this.defaultArgs&&(e=Dye.assign({},[this.defaultArgs,e])),e.emitter=this,e.agent=Eq(e.agent,this.agent),e.httpsAgent=Eq(e.httpsAgent,this.httpsAgent),Rq.requestThunk(t,e)};function Eq(t,e){return t===void 0?e:t}});var Pye=l((I9r,Rye)=>{"use strict";var A$t=require("util"),Pq=require("util").debuglog("urllib"),v$t=SI(),b5=h5(),g5;Rye.exports=kT;function kT(t){b5.call(this,t)}A$t.inherits(kT,b5);kT.prototype.request=kT.prototype.curl=function(e,r){var i=this;return r=r||{},r.retry=r.retry||0,r.retryDelay&&(r.retryDelay=v$t(r.retryDelay)),r.isRetry=r.isRetry||function(s){return s.status>=500},b5.prototype.request.call(i,e,r).then(function(s){return r.retry>0&&typeof r.isRetry=="function"&&r.isRetry(s)?(r.retry--,Pq("retry request %s, remain %s",e,r.retry),r.retryDelay?(Pq("retry after %sms",r.retryDelay),Eye(r.retryDelay).then(function(){return i.request(e,r)})):i.request(e,r)):s}).catch(function(s){if(r.retry>0)return r.retry--,Pq("retry request %s, remain %s, err %s",e,r.retry,s),r.retryDelay?(Pq("retry after %sms",r.retryDelay),Eye(r.retryDelay).then(function(){return i.request(e,r)})):i.request(e,r);throw s})};kT.prototype.requestThunk=function(e,r){var i=this;return function(s){i.request(e,r).then(function(a){var o=s;s=null,o(null,a)}).catch(function(a){!s||s(a)})}};function Eye(t){return g5||(g5=eI()),new g5(function(e){setTimeout(e,t)})}});var Rh=l(On=>{"use strict";var el=y5();On.USER_AGENT=el.USER_AGENT;On.TIMEOUT=el.TIMEOUT;On.TIMEOUTS=el.TIMEOUTS;On.agent=el.agent;On.httpsAgent=el.httpsAgent;On.curl=el.curl;On.request=el.request;On.requestWithCallback=el.requestWithCallback;On.requestThunk=el.requestThunk;On.HttpClient=h5();On.HttpClient2=Pye();On.create=function(t){return new On.HttpClient(t)}});var Mye=l((A9r,wye)=>{wye.exports={_from:"ali-oss@^6.17.1",_id:"ali-oss@6.23.0",_inBundle:!1,_integrity:"sha512-FipRmyd16Pr/tEey/YaaQ/24Pc3HEpLM9S1DRakEuXlSLXNIJnu1oJtHM53eVYpvW3dXapSjrip3xylZUTIZVQ==",_location:"/ali-oss",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"ali-oss@^6.17.1",name:"ali-oss",escapedName:"ali-oss",rawSpec:"^6.17.1",saveSpec:null,fetchSpec:"^6.17.1"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/ali-oss/-/ali-oss-6.23.0.tgz",_shasum:"0bb236428307986ece0bf9243d77d7029d7b6ed2",_spec:"ali-oss@^6.17.1",_where:"/home/runner/work/obsidian-image-upload-toolkit/obsidian-image-upload-toolkit",author:{name:"dead_horse"},browser:{"./lib/client.js":"./dist/aliyun-oss-sdk.js",mime:"mime/lite",urllib:"./shims/xhr.js",utility:"./shims/utility.js",crypto:"./shims/crypto/crypto.js",debug:"./shims/debug",fs:!1,child_process:!1,"is-type-of":"./shims/is-type-of.js"},bugs:{url:"https://github.com/ali-sdk/ali-oss/issues"},bundleDependencies:!1,dependencies:{address:"^1.2.2",agentkeepalive:"^3.4.1",bowser:"^1.6.0","copy-to":"^2.0.1",dateformat:"^2.0.0",debug:"^4.3.4",destroy:"^1.0.4","end-or-error":"^1.0.1","get-ready":"^1.0.0","humanize-ms":"^1.2.0","is-type-of":"^1.4.0","js-base64":"^2.5.2",jstoxml:"^2.0.0",lodash:"^4.17.21","merge-descriptors":"^1.0.1",mime:"^2.4.5",platform:"^1.3.1",pump:"^3.0.0",qs:"^6.4.0","sdk-base":"^2.0.1","stream-http":"2.8.2","stream-wormhole":"^1.0.4",urllib:"^2.44.0",utility:"^1.18.0",xml2js:"^0.6.2"},deprecated:!1,description:"aliyun oss(object storage service) node client",devDependencies:{"@alicloud/openapi-client":"^0.4.10","@alicloud/resourcemanager20200331":"^2.3.0","@alicloud/tea-util":"^1.4.9","@babel/core":"^7.11.6","@babel/plugin-transform-regenerator":"^7.10.4","@babel/plugin-transform-runtime":"^7.11.5","@babel/preset-env":"^7.11.5","@babel/runtime":"^7.11.2","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^16.2.4","@octokit/core":"^5.0.0","@semantic-release/exec":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^10.0.5","@snyk/protect":"^1.1196.0","@types/node":"^14.0.12","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0",aliasify:"^2.0.0",axios:"^0.27.2",babelify:"^10.0.0","beautify-benchmark":"^0.2.4",benchmark:"^2.1.1",bluebird:"^3.1.5",browserify:"^17.0.0","core-js":"^3.6.5","crypto-js":" Line truncated
`)};jn.computeSignature=function(e,r,i="utf-8"){return Ph.createHmac("sha1",e).update(Buffer.from(r,i)).digest("base64")};jn.authorization=function(e,r,i,s){return`OSS ${e}:${this.computeSignature(r,i,s)}`};jn.fixAdditionalHeaders=t=>{if(!t)return[];let e="x-oss-";return[...new Set(t.map(r=>r.toLowerCase()))].filter(r=>r!=="content-type"&&r!=="content-md5"&&!r.startsWith(e)).sort()};jn.getCanonicalRequest=function(e,r,i,s,a){let o=She(r.headers),n=r.queries||{},u="x-oss-";if(s&&!i)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");let p=[e.toUpperCase(),fhe(`/${i?`${i}/`:""}${s||""}`).replace(/%2F/g,"/")];p.push(cXt.stringify(n,{encoder:fhe,sort:(y,c)=>y.localeCompare(c),strictNullHandling:!0})),a&&a.forEach(y=>{if(!Object.prototype.hasOwnProperty.call(o,y))throw Error(`Can't find additional header ${y} in request headers.`)});let m=new Set(a);Object.keys(o).forEach(y=>{(y==="content-type"||y==="content-md5"||y.startsWith(u))&&m.add(y)});let d=`${[...m].sort().map(y=>`${y}:${Oq.string(o[y])?o[y].trim():o[y]}
`).join("")}`;return p.push(d),a&&a.length>0?p.push(a.join(";")):p.push(""),p.push(o["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),p.join(`
`)};jn.getCredential=function(e,r,i,s="oss"){let a=`${e}/${r}/${s}/aliyun_v4_request`;return i?`${i}/${a}`:a};jn.getStringToSign=function(e,r,i,s="oss"){return["OSS4-HMAC-SHA256",r,this.getCredential(r.split("T")[0],e,void 0,s),Ph.createHash("sha256").update(i).digest("hex")].join(`
`)};jn.getSignatureV4=function(e,r,i,s,a="oss"){let o=Ph.createHmac("sha256",`aliyun_v4${e}`).update(r).digest(),n=Ph.createHmac("sha256",o).update(i).digest(),u=Ph.createHmac("sha256",n).update(a).digest(),p=Ph.createHmac("sha256",u).update("aliyun_v4_request").digest();return Ph.createHmac("sha256",p).update(s).digest("hex")};jn.authorizationV4=function(e,r,i,s,a,o,n,u,p="utf-8",m){let d=this.getProduct(m),y=this.fixAdditionalHeaders(u),c={};Object.entries(a.headers).forEach(v=>{c[v[0]]=Oq.string(v[1])?Buffer.from(v[1],p).toString():v[1]});let h=c["x-oss-date"]||a.queries&&a.queries["x-oss-date"],g=this.getCanonicalRequest(s,{headers:c,queries:a.queries},o,n,y),S=this.getStringToSign(i,h,g,d),N=h.split("T")[0],T=this.getSignatureV4(r,N,i,S,d),I=y.length>0?`AdditionalHeaders=${y.join(";")},`:"";return`OSS4-HMAC-SHA256 Credential=${this.getCredential(N,i,e,d)},${I}Signature=${T}`};jn._signatureForURL=function(e,r={},i,s,a){let o={},{subResource:n={}}=r;if(r.process){let p="x-oss-process";n[p]=r.process}if(r.trafficLimit){let p="x-oss-traffic-limit";n[p]=r.trafficLimit}if(r.response&&Object.keys(r.response).forEach(p=>{let m=`response-${p.toLowerCase()}`;n[m]=r.response[p]}),Object.keys(r).forEach(p=>{let m=p.toLowerCase(),d=r[p];m.indexOf("x-oss-")===0?o[m]=d:(m.indexOf("content-md5")===0||m.indexOf("content-type")===0)&&(o[p]=d)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(n["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){let p={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(p.callbackHost=r.callback.host),r.callback.contentType&&(p.callbackBodyType=r.callback.contentType),r.callback.callbackSNI&&(p.callbackSNI=r.callback.callbackSNI),n.callback=Buffer.from(JSON.stringify(p)).toString("base64"),r.callback.customValue){let m={};Object.keys(r.callback.customValue).forEach(d=>{m[`x:${d}`]=r.callback.customValue[d]}),n["callback-var"]=Buffer.from(JSON.stringify(m)).toString("base64")}}let u=this.buildCanonicalString(r.method,i,{headers:o,parameters:n},s.toString());return{Signature:this.computeSignature(e,u,a),subResource:n}}});var hi=l(lXt=>{dr(lXt);yr(lXt,{checkBucketName:()=>dXt});var dXt=(t,e=!1)=>{if(!(e?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/).test(t))throw new Error("The bucket must be conform to the specifications")}});var jq=l(yXt=>{dr(yXt);yr(yXt,{checkConfigValid:()=>bXt});var Vq={endpoint:hXt,region:/^[a-zA-Z0-9\-_]+$/};function hXt(t){return typeof t=="string"?/^[a-zA-Z0-9._:/-]+$/.test(t):t.host?/^[a-zA-Z0-9._:/-]+$/.test(t.host):!1}var bXt=(t,e)=>{if(Vq[e]){let r=!0;if(Vq[e]instanceof Function?r=Vq[e](t):r=Vq[e].test(t),!r)throw new Error(`The ${e} must be conform to the specifications`)}}});var I5=l(gXt=>{dr(gXt);yr(gXt,{setRegion:()=>SXt});var Nhe=Dr(require("url")),Ihe=jq();function SXt(t,e=!1,r=!1){(0,Ihe.checkConfigValid)(t,"region");let i=r?"https://":"http://",s=e?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return t.substr(0,a.length)===a&&(s=".aliyuncs.com"),Nhe.default.parse(i+t+s)}});var vhe=l((K9r,The)=>{var fXt=SI(),Ahe=require("url"),{checkBucketName:NXt}=hi(),{setRegion:IXt}=I5(),{checkConfigValid:TXt}=jq();function AXt(t,e){TXt(t,"endpoint");let r=Ahe.parse(t);if(r.protocol||(r=Ahe.parse(`http${e?"s":""}://${t}`)),r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return r}The.exports=function(t){if(!t||!t.accessKeyId||!t.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");t.stsToken&&!t.refreshSTSToken&&!t.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),t.bucket&&NXt(t.bucket);let e=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0,authorizationV4:!1},t);if(e.accessKeyId=e.accessKeyId.trim(),e.accessKeySecret=e.accessKeySecret.trim(),e.timeout&&(e.timeout=fXt(e.timeout)),e.endpoint)e.endpoint=AXt(e.endpoint,e.secure);else if(e.region)e.endpoint=IXt(e.region,e.internal,e.secure);else throw new Error("require options.endpoint or options.region");return e.inited=!0,e}});var Che=l((W9r,khe)=>{var vXt=f5(),kXt=Gq(),CXt=N5(),xXt="[object String]";function qXt(t){return typeof t=="string"||!kXt(t)&&CXt(t)&&vXt(t)==xXt}khe.exports=qXt});var qhe=l((H9r,xhe)=>{function DXt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}xhe.exports=DXt});var zq=l((T5,Dhe)=>{(function(t){"use strict";var e=function(){var o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,u=/[^-+\dA-Z]/g;r Line truncated
`),e&&e.firstUpperCase&&(t=(0,ebe.formatObjKey)(t,"firstUpperCase")),Lh(t)==="object"?Object.keys(t).forEach(i=>{Lh(t[i])!=="undefined"&&Lh(t[i])!=="null"&&(Lh(t[i])==="string"||Lh(t[i])==="number"?r+=`<${i}>${t[i]}</${i}>`:Lh(t[i])==="object"?r+=`<${i}>${q5(t[i])}</${i}>`:Lh(t[i])==="array"?r+=t[i].map(s=>`<${i}>${q5(s)}</${i}>`).join(""):r+=`<${i}>${t[i].toString()}</${i}>`)}):r+=t.toString(),r}});var D5=l(AZt=>{dr(AZt);yr(AZt,{checkValid:()=>vZt});function vZt(t,e){e.forEach(r=>{if(r.validator)r.validator(t);else if(r.pattern&&!r.pattern.test(t))throw new Error(r.msg)})}});var R5=l(kZt=>{dr(kZt);yr(kZt,{checkObjectTag:()=>DZt});var{checkValid:CZt}=D5(),{isObject:xZt}=Vn(),tbe=[{validator:t=>{if(typeof t!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],qZt={key:[...tbe,{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}],value:[...tbe,{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}]};function DZt(t){if(!xZt(t))throw new Error("tag must be Object");let e=Object.entries(t);if(e.length>10)throw new Error("maximum of 10 tags for a object");let r=["key","value"];e.forEach(i=>{i.forEach((s,a)=>{CZt(s,qZt[r[a]])})})}});var ibe=l(rbe=>{var{obj2xml:RZt}=gn(),{checkObjectTag:EZt}=R5(),PZt=rbe;PZt.putObjectTagging=async function(e,r,i={}){EZt(r),i.subres=Object.assign({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),e=this._objectName(e);let s=this._objectRequestParams("PUT",e,i);s.successStatuses=[200],r=Object.keys(r).map(n=>({Key:n,Value:r[n]}));let a={Tagging:{TagSet:{Tag:r}}};s.mime="xml",s.content=RZt(a);let o=await this.request(s);return{res:o.res,status:o.status}}});var abe=l(sbe=>{var wZt=sbe;wZt.deleteObjectTagging=async function(e,r={}){r.subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e);let i=this._objectRequestParams("DELETE",e,r);i.successStatuses=[204];let s=await this.request(i);return{status:s.status,res:s.res}}});var tl=l(MZt=>{dr(MZt);yr(MZt,{isArray:()=>LZt});var LZt=t=>Object.prototype.toString.call(t)==="[object Array]"});var E5=l(_Zt=>{dr(_Zt);yr(_Zt,{parseRestoreInfo:()=>FZt});var FZt=t=>{let e;if(t&&(e={ongoingRequest:t.includes("true")},!e.ongoingRequest)){let r=t.match(/expiry-date="(.*)"/);r&&r[1]&&(e.expiryDate=new Date(r[1]))}return e}});var mbe=l(obe=>{var nbe=obe,{isObject:UZt}=Vn(),{isArray:ube}=tl(),{parseRestoreInfo:BZt}=E5();nbe.getBucketVersions=pbe;nbe.listObjectVersions=pbe;async function pbe(t={},e={}){if(t.versionIdMarker&&t.keyMarker===void 0)throw new Error("A version-id marker cannot be specified without a key marker");e.subres=Object.assign({versions:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId);let r=this._objectRequestParams("GET","",e);r.xmlResponse=!0,r.successStatuses=[200],r.query=GZt(t);let i=await this.request(r),s=i.data.Version||[],a=i.data.DeleteMarker||[],o=this;s&&(Array.isArray(s)||(s=[s]),s=s.map(u=>({name:u.Key,url:o._objectUrl(u.Key),lastModified:u.LastModified,isLatest:u.IsLatest==="true",versionId:u.VersionId,etag:u.ETag,type:u.Type,size:Number(u.Size),storageClass:u.StorageClass,owner:{id:u.Owner.ID,displayName:u.Owner.DisplayName},restoreInfo:BZt(u.RestoreInfo)}))),a&&(ube(a)||(a=[a]),a=a.map(u=>({name:u.Key,lastModified:u.LastModified,versionId:u.VersionId,owner:{id:u.Owner.ID,displayName:u.Owner.DisplayName}})));let n=i.data.CommonPrefixes||null;return n&&(ube(n)||(n=[n]),n=n.map(u=>u.Prefix)),{res:i.res,objects:s,deleteMarker:a,prefixes:n,nextMarker:i.data.NextKeyMarker||null,NextVersionIdMarker:i.data.NextVersionIdMarker||null,nextKeyMarker:i.data.NextKeyMarker||null,nextVersionIdMarker:i.data.NextVersionIdMarker||null,isTruncated:i.data.IsTruncated==="true"}}function OZt(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function GZt(t={}){let e={};return UZt(t)&&Object.keys(t).forEach(r=>{e[OZt(r)]=t[r]}),e}});var dbe=l(cbe=>{var lbe=ed(),{obj2xml:VZt}=gn(),jZt=cbe;jZt.deleteMulti=async function(e,r={}){let i=[];if(!e||!e.length)throw new Error("names is required");for(let m=0;m<e.length;m++){let d={};if(typeof e[m]=="string")d.Key=lbe.escape(this._objectName(e[m]));else{let{key:y,versionId:c}=e[m];d.Key=lbe.escape(this._objectName(y)),d.VersionId=c}i.push(d)}let s={Delete:{Quiet:!!r.quiet,Object:i}},a=VZt(s,{headers:!0});r.subres=Object.assign({delete:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId);let o=this._objectRequestParams("POST","",r);o.mime="xml",o.content=a,o.xmlResponse=!0,o.successStatuses=[200];let n=await this.request(o),u=n.data,p=u&&u.Deleted||null;return p&&(Array.isArray(p)||(p=[p])),{res:n.res,deleted:p||[]}}});var hbe=l(ybe=>{var zZt=ybe;zZt.getACL=async function(e,r={}){r.subres=Object.assign({acl:""},r.subres),r.versionId&& Line truncated
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>${e}</TargetBucket>
`;return r&&(a+=`<TargetPrefix>${r}</TargetPrefix>
`),a+=`</LoggingEnabled>
</BucketLoggingStatus>`,s.content=a,s.mime="xml",s.successStatuses=[200],{res:(await this.request(s)).res}};Wa.getBucketLogging=async function(e,r){zo(e);let i=this._bucketRequestParams("GET",e,"logging",r);i.successStatuses=[200],i.xmlResponse=!0;let s=await this.request(i),a=s.data.LoggingEnabled;return{enable:!!a,prefix:a&&a.TargetPrefix||null,res:s.res}};Wa.deleteBucketLogging=async function(e,r){zo(e);let i=this._bucketRequestParams("DELETE",e,"logging",r);return i.successStatuses=[204,200],{res:(await this.request(i)).res}};Wa.putBucketCORS=async function(e,r,i){zo(e),r=r||[],O5(r.length,"rules is required"),r.forEach(d=>{O5(d.allowedOrigin,"allowedOrigin is required"),O5(d.allowedMethod,"allowedMethod is required")});let s=this._bucketRequestParams("PUT",e,"cors",i),a=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,o=d=>{a+=`<AllowedOrigin>${d}</AllowedOrigin>`},n=d=>{a+=`<AllowedMethod>${d}</AllowedMethod>`},u=d=>{a+=`<AllowedHeader>${d}</AllowedHeader>`},p=d=>{a+=`<ExposeHeader>${d}</ExposeHeader>`};for(let d=0,y=r.length;d<y;d++){let c=r[d];a+="<CORSRule>",Yq(c.allowedOrigin).forEach(o),Yq(c.allowedMethod).forEach(n),Yq(c.allowedHeader).forEach(u),Yq(c.exposeHeader).forEach(p),c.maxAgeSeconds&&(a+=`<MaxAgeSeconds>${c.maxAgeSeconds}</MaxAgeSeconds>`),a+="</CORSRule>"}return a+="</CORSConfiguration>",s.content=a,s.mime="xml",s.successStatuses=[200],{res:(await this.request(s)).res}};Wa.getBucketCORS=async function(e,r){zo(e);let i=this._bucketRequestParams("GET",e,"cors",r);i.successStatuses=[200],i.xmlResponse=!0;let s=await this.request(i),a=[];if(s.data&&s.data.CORSRule){let{CORSRule:o}=s.data;Zq(o)||(o=[o]),o.forEach(n=>{let u={};Object.keys(n).forEach(p=>{u[p.slice(0,1).toLowerCase()+p.slice(1,p.length)]=n[p]}),a.push(u)})}return{rules:a,res:s.res}};Wa.deleteBucketCORS=async function(e,r){zo(e);let i=this._bucketRequestParams("DELETE",e,"cors",r);return i.successStatuses=[204],{res:(await this.request(i)).res}};Wa.putBucketReferer=async function(e,r,i,s){zo(e);let a=this._bucketRequestParams("PUT",e,"referer",s),o=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`;if(o+=` <AllowEmptyReferer>${r?"true":"false"}</AllowEmptyReferer>
`,i&&i.length>0){o+=` <RefererList>
`;for(let u=0;u<i.length;u++)o+=` <Referer>${i[u]}</Referer>
`;o+=` </RefererList>
`}else o+=` <RefererList />
`;return o+="</RefererConfiguration>",a.content=o,a.mime="xml",a.successStatuses=[200],{res:(await this.request(a)).res}};Wa.getBucketReferer=async function(e,r){zo(e);let i=this._bucketRequestParams("GET",e,"referer",r);i.successStatuses=[200],i.xmlResponse=!0;let s=await this.request(i),a=s.data.RefererList.Referer||null;return a&&(Zq(a)||(a=[a])),{allowEmpty:s.data.AllowEmptyReferer==="true",referers:a,res:s.res}};Wa.deleteBucketReferer=async function(e,r){return zo(e),await this.putBucketReferer(e,!0,null,r)};Wa._bucketRequestParams=function(e,r,i,s){return{method:e,bucket:r,subres:i,headers:s&&s.headers,additionalHeaders:s&&s.additionalHeaders,timeout:s&&s.timeout,ctx:s&&s.ctx}}});var RSe=l(_tr=>{dr(_tr);yr(_tr,{isFile:()=>Ftr});var Ftr=t=>typeof File!="undefined"&&t instanceof File});var MSe=l(ESe=>{var Utr=require("fs"),V5=Eh(),Btr=require("util"),PSe=require("path"),wSe=Oy(),{isFile:j5}=RSe(),{isArray:Gtr}=tl(),{isBuffer:z5}=DT(),{retry:Otr}=Wq(),wS=ESe;wS.multipartUpload=async function(e,r,i){if(this.resetCancelFlag(),i=i||{},i.checkpoint&&i.checkpoint.uploadId)return await this._resumeMultipart(i.checkpoint,i);let s=100*1024;i.mime||(j5(r)?i.mime=wSe.getType(PSe.extname(r.name)):z5(r)?i.mime="":i.mime=wSe.getType(PSe.extname(r))),i.headers=i.headers||{},this._convertMetaToHeaders(i.meta,i.headers);let a=await this._getFileSize(r);if(a<s){i.contentLength=a;let m=await this.put(e,r,i);i&&i.progress&&await i.progress(1);let d={res:m.res,bucket:this.options.bucket,name:e,etag:m.res.headers.etag};return(i.headers&&i.headers["x-oss-callback"]||i.callback)&&(d.data=m.data),d}if(i.partSize&&parseInt(i.partSize,10)!==i.partSize)throw new Error("partSize must be int number");if(i.partSize&&i.partSize<s)throw new Error(`partSize must not be smaller than ${s}`);let o=await this.initMultipartUpload(e,i),{uploadId:n}=o,u=this._getPartSize(a,i.partSize),p={file:r,name:e,fileSize:a,partSize:u,uploadId:n,doneParts:[]};return i&&i.progress&&await i.progress(0,p,o.res),await this._resumeMultipart(p,i)};wS._resumeMultipart=async function(e,r){let i=this;if(this.isCancel())throw this._makeCancelEvent();let{file:s,fileSize:a,partSize:o,uploadId:n,doneParts:u,name:p}=e,m=this._divideParts(a,o),d=m.length,y=Otr((T,I)=>new Promise(async(v,A)=>{try{if(!T.isCancel()){let D=m[I-1],G=await T._createStream(s,D.start,D.end),E={stream:G,size:D.end-D.start};Gtr(T.multipartUploadStreams)?T.multipartUploadStreams.push(E.stream):T.multipartUploadStreams=[E.stream];let j=function(){G.destroyed||G.destroy();let V=T.multipartUploadStreams.indexOf(G);V!==-1&&T.multipartUploadStreams.splice(V,1)};G.on("close",j),G.on("error",j);let L;try{L=await T._uploadPart(p,n,I,E,r)}catch(V){throw j(),V.status===404?T._makeAbortEvent():V}T.isCancel()||(u.push({number:I,etag:L.res.headers.etag}),e.doneParts=u,r.progress&&await r.progress(u.length/(d+1),e,L.res))}v()}catch(D){D.partNum=I,A(D)}}),this.options.retryMax,{errorHandler:T=>!!(v=>{let A=[-1,-2].includes(v.status),D=this.options.requestErrorRetryHandle||(()=>!0);return A&&D(v)})(T)}),c=Array.from(new Array(d),(T,I)=>I+1),h=u.map(T=>T.number),g=c.filter(T=>h.indexOf(T)<0),S=5,N=r.parallel||S;if(this.checkBrowserAndVersion("Internet Explorer","10")||N===1)for(let T=0;T<g.length;T++){if(this.isCancel())throw this._makeCancelEvent();await y(this,g[T])}else{let T=await this._parallel(g,N,v=>new Promise((A,D)=>{y(i,v).then(()=>{A()}).catch(D)})),I=T.find(v=>v.name==="abort");if(I)throw I;if(this.isCancel())throw y=null,this._makeCancelEvent();if(T&&T.length>0)throw T[0].message=`Failed to upload some parts with error: ${T[0].toString()} part_num: ${T[0].partNum}`,T[0]}return await this.completeMultipartUpload(p,n,u,r)};wS._getFileSize=async function(e){if(z5(e))return e.length;if(j5(e))return e.size;if(V5.string(e))return(await this._statFile(e)).size;throw new Error("_getFileSize requires Buffer/File/String.")};var{Readable:K5}=require("stream");function MS(t,e){if(!(this instanceof MS))return new MS(t,e);K5.call(this,e),this.file=t,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}Btr.inherits(MS,K5);MS.prototype.readFileAndPush=function(e){if(this.fileBuffer){let r=!0;for(;r&&this.fileBuffer&&this.start<this.fileBuffer.length;){let{start:i}=this,s=i+e;s=s>this.fileBuffer.length?this.fileBuffer.length:s,this.start=s,r=this.push(this.fileBuffer.slice(i,s))}}};MS.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}let r=16*1024;e=e||r;let i=this;this.reader.onload=function(s){i.fileBuffer=Buffer.from(new Uint8Array(s.target.result)),i.file=null,i.readFileAndPush(e)},this.reader.onerror=function(a){let o=a.srcElement&&a.srcElement.error;throw o||a},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)};wS._createStream=function(e,r,i){if(V5.readableStream(e))return Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(Ie,Ae){if(!!Ie){if(typeof Ie=="string")return o(Ie,Ae);var Pe=Object.prototype.toString.call(Ie).slice(8,-1);if(Pe==="Object"&&Ie.constructor&&(Pe=Ie.constructor.name),Pe==="Map"||Pe==="Set")return Array.from(Ie);if(Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe))return o(Ie,Ae)}}function s(Ie){if(typeof Symbol!="undefined"&&Ie[Symbol.iterator]!=null||Ie["@@iterator"]!=null)return Array.from(Ie)}function a(Ie){if(Array.isArray(Ie))return o(Ie)}function o(Ie,Ae){(Ae==null||Ae>Ie.length)&&(Ae=Ie.length);for(var Pe=0,qe=new Array(Ae);Pe<Ae;Pe++)qe[Pe]=Ie[Pe];return qe}function n(Ie,Ae){var Pe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var qe=Object.getOwnPropertySymbols(Ie);Ae&&(qe=qe.filter(function(We){return Object.getOwnPropertyDescriptor(Ie,We).enumerable})),Pe.push.apply(Pe,qe)}return Pe}function u(Ie){for(var Ae=1;Ae<arguments.length;Ae++){var Pe=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?n(Object(Pe),!0).forEach(function(qe){p(Ie,qe,Pe[qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ie,Object.getOwnPropertyDescriptors(Pe)):n(Object(Pe)).forEach(function(qe){Object.defineProperty(Ie,qe,Object.getOwnPropertyDescriptor(Pe,qe))})}return Ie}function p(Ie,Ae,Pe){return Ae in Ie?Object.defineProperty(Ie,Ae,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):Ie[Ae]=Pe,Ie}function m(Ie){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},m(Ie)}var d="array",y="boolean",c="date",h="null",g="number",S="object",N="special-object",T="string",I=["_selfCloseTag","_attrs"],v=new RegExp(I.join("|"),"g"),A=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Ae.repeat(Pe)},D=function(Ae){return Array.isArray(Ae)&&d||m(Ae)===S&&Ae!==null&&Ae._name&&N||Ae instanceof Date&&c||Ae===null&&h||m(Ae)},G=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Ae!="string")return Ae;var qe=new RegExp("(".concat(Object.keys(Pe).join("|"),")(?!(\\w|#)*;)"),"g");return String(Ae).replace(qe,function(We,ee){return Pe[ee]||""})},E=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=arguments.length>1?arguments[1]:void 0,qe=[];if(Array.isArray(Ae))qe=Ae.map(function(ee){var U=Object.keys(ee)[0],we=ee[U],oe=Pe?G(we,Pe):we,De=oe===!0?"":'="'.concat(oe,'"');return"".concat(U).concat(De)});else{var We=Object.keys(Ae);qe=We.map(function(ee){var U=Pe?G(Ae[ee],Pe):Ae[ee],we=Ae[ee]===!0?"":'="'.concat(U,'"');return"".concat(ee).concat(we)})}return qe},j=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=arguments.length>1?arguments[1]:void 0,qe=E(Ae,Pe);if(qe.length===0)return"";var We=qe.join(" ");return" ".concat(We)},L=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Ae).map(function(Pe){return{_name:Pe,_content:Ae[Pe]}})},V=[T,g,y],_=function(Ae){return V.includes(D(Ae))},W=[].concat(V,[c,N]),re=function(Ae){return W.includes(D(Ae))},H=function(Ae){return!Ae.match("<")},ye='<?xml version="1.0" encoding="UTF-8"?>',le=function(Ae){var Pe=Ae.header,qe=Ae.indent,We=Ae.isOutputStart,ee=Pe&&We;if(!ee)return"";var U=m(Pe)===y;return U?ye:Pe},be={"<":"&lt;",">":"&gt;","&":"&amp;"},ce=function Ie(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=Pe.depth,We=qe===void 0?0:qe,ee=Pe.indent,U=Pe._isFirstItem,we=Pe._isOutputStart,oe=we===void 0?!0:we,De=Pe.header,Ce=Pe.attributesFilter,Te=Ce===void 0?{}:Ce,Qe=Pe.filter,_e=Qe===void 0?{}:Qe,Ue=typeof Te=="boolean"&&!Te,tt=Ue?{}:u(u(u({},be),{'"':"&quot;"}),Te),Jt=typeof _e=="boolean"&&!_e,st=Jt?{}:u(u({},be),_e),mt=A(ee,We),vr=D(Ae),kr=le({header:De,indent:ee,depth:We,isOutputStart:oe}),Lr=oe&&!kr&&U&&We===0,Bt="";switch(vr){case"special-object":{var tr=Ae._name,qt=Ae._content;if(qt===null){Bt=tr;break}var te=Array.isArray(qt)&&qt.every(_);if(te){var me=qt.map(function(Q){return Ie({_name:tr,_content:Q},u(u({},Pe),{},{depth:We,_isOutputStart:!1}))});return me.join("")}if(tr.match(v))break;var ge=Ie(qt,u(u({},Pe),{},{depth:We+1,_isOutputStart:Lr})),Ee=D(ge),ze=H(ge),ft=ee&&!Lr?`
`:"",Pt="".concat(ft).concat(mt);if(tr==="_comment"){Bt+="".concat(Pt,"<!-- ").concat(qt," -->");break}var wt=Ee==="undefined"||ge==="",Sr=m(Ae._selfCloseTag)===y?wt&&Ae._selfCloseTag:wt,_r=Sr?"/":"",Vt=j(Ae._attrs,tt),xt="<".concat(tr).concat(Vt).concat(_r,">"),Vr=ee&&!ze?`
`.concat(mt):"",Ji=Sr?"":"".concat(ge).concat(Vr,"</").concat(tr,">");Bt+="".concat(Pt).concat(xt).concat(Ji);break}case"object":{var Be=Object.keys(Ae),je=Be.map(function(Q,J){var Z=u(u({},Pe),{},{_isFirstItem:J===0,_isLastItem:J+1===Be.length,_isOutputStart:Lr}),pe={_name:Q};if(D(Ae[Q])==="object"){I.forEach(function(lt){var O=Ae[Q][lt];typeof O!="undefined"&&(pe[lt]=O,delete Ae[Q][lt])});var de=typeof Ae[Q]._content!="undefined";if(de&&Object.keys(Ae[Q]).length>1){var Le=Object.assign({},Ae[Q]);delete Le._content,pe._content=[].concat(e(L(Le)),[Ae[Q]._content])}}typeof pe._content=="undefined"&&(pe._content=Ae[Q]);var Ve=Ie(pe,Z,Q);return Ve},Pe);Bt=je.join("");break}case"function":{var pt=Ae(Pe);Bt=Ie(pt,Pe);break}case"array":{var P=Ae.map(function(Q,J){var Z=u(u({},Pe),{},{_isFirstItem:J===0,_isLastItem:J+1===Ae.length,_isOutputStart:Lr});return Ie(Q,Z)});Bt=P.join("");break}default:{Bt=G(Ae,st);break}}return"".concat(kr).concat(Bt)};t.toXML=ce;var ue={toXML:ce};t.default=ue})});var USe=l(_Se=>{var Vtr=LSe(),jtr=ed(),FSe=Gu(),ztr=require("url"),rl=_Se;rl.putChannel=async function(e,r,i){i=i||{},i.subres="live";let s=this._objectRequestParams("PUT",e,i);s.xmlResponse=!0,s.content=Vtr.toXML({LiveChannelConfiguration:r}),s.successStatuses=[200];let a=await this.request(s),o=a.data.PublishUrls.Url;Array.isArray(o)||(o=[o]);let n=a.data.PlayUrls.Url;return Array.isArray(n)||(n=[n]),{publishUrls:o,playUrls:n,res:a.res}};rl.getChannel=async function(e,r){r=r||{},r.subres="live";let i=this._objectRequestParams("GET",e,r);i.xmlResponse=!0,i.successStatuses=[200];let s=await this.request(i);return{data:s.data,res:s.res}};rl.deleteChannel=async function(e,r){r=r||{},r.subres="live";let i=this._objectRequestParams("DELETE",e,r);return i.successStatuses=[204],{res:(await this.request(i)).res}};rl.putChannelStatus=async function(e,r,i){i=i||{},i.subres={live:null,status:r};let s=this._objectRequestParams("PUT",e,i);return s.successStatuses=[200],{res:(await this.request(s)).res}};rl.getChannelStatus=async function(e,r){r=r||{},r.subres={live:null,comp:"stat"};let i=this._objectRequestParams("GET",e,r);i.xmlResponse=!0,i.successStatuses=[200];let s=await this.request(i);return{data:s.data,res:s.res}};rl.listChannels=async function(e,r){r=r||{},r.subres="live";let i=this._objectRequestParams("GET","",r);i.query=e,i.xmlResponse=!0,i.successStatuses=[200];let s=await this.request(i),a=s.data.LiveChannel||[];return Array.isArray(a)||(a=[a]),a=a.map(o=>(o.PublishUrls=o.PublishUrls.Url,Array.isArray(o.PublishUrls)||(o.PublishUrls=[o.PublishUrls]),o.PlayUrls=o.PlayUrls.Url,Array.isArray(o.PlayUrls)||(o.PlayUrls=[o.PlayUrls]),o)),{channels:a,nextMarker:s.data.NextMarker||null,isTruncated:s.data.IsTruncated==="true",res:s.res}};rl.getChannelHistory=async function(e,r){r=r||{},r.subres={live:null,comp:"history"};let i=this._objectRequestParams("GET",e,r);i.xmlResponse=!0,i.successStatuses=[200];let s=await this.request(i),a=s.data.LiveRecord||[];return Array.isArray(a)||(a=[a]),{records:a,res:s.res}};rl.createVod=async function(e,r,i,s){s=s||{},s.subres={vod:null},FSe(i).to(s.subres);let a=this._objectRequestParams("POST",`${e}/${r}`,s);return a.query=i,a.successStatuses=[200],{res:(await this.request(a)).res}};rl.getRtmpUrl=function(t,e){e=e||{};let r=jtr.timestamp()+(e.expires||1800),i={bucket:this.options.bucket,object:this._objectName(`live/${t}`)},s=`/${i.bucket}/${t}`;e.params=e.params||{};let a=Object.keys(e.params).sort().map(p=>`${p}:${e.params[p]}
`).join(""),o=`${r}
${a}${s}`,n=this.signature(o),u=ztr.parse(this._getReqUrl(i));return u.protocol="rtmp:",u.query={OSSAccessKeyId:this.options.accessKeyId,Expires:r,Signature:n},FSe(e.params).to(u.query),u.format()}});var OSe=l(BSe=>{var Ktr=Oa()("ali-oss:multipart-copy"),GSe=Gu(),PT=BSe;PT.uploadPartCopy=async function(e,r,i,s,a,o={}){o.headers=o.headers||{};let n=o.versionId||o.subres&&o.subres.versionId||null,u;n?u=`/${a.sourceBucketName}/${encodeURIComponent(a.sourceKey)}?versionId=${n}`:u=`/${a.sourceBucketName}/${encodeURIComponent(a.sourceKey)}`,o.headers["x-oss-copy-source"]=u,s&&(o.headers["x-oss-copy-source-range"]=`bytes=${s}`),o.subres={partNumber:i,uploadId:r};let p=this._objectRequestParams("PUT",e,o);p.mime=o.mime,p.successStatuses=[200];let m=await this.request(p);return{name:e,etag:m.res.headers.etag,res:m.res}};PT.multipartUploadCopy=async function(e,r,i={}){this.resetCancelFlag();let{versionId:s=null}=i,a={versionId:s},n=(await this._getObjectMeta(r.sourceBucketName,r.sourceKey,a)).res.headers["content-length"];if(r.startOffset=r.startOffset||0,r.endOffset=r.endOffset||n,i.checkpoint&&i.checkpoint.uploadId)return await this._resumeMultipartCopy(i.checkpoint,r,i);let u=100*1024,p=r.endOffset-r.startOffset;if(p<u)throw new Error(`copySize must not be smaller than ${u}`);if(i.partSize&&i.partSize<u)throw new Error(`partSize must not be smaller than ${u}`);let m=await this.initMultipartUpload(e,i),{uploadId:d}=m,y=this._getPartSize(p,i.partSize),c={name:e,copySize:p,partSize:y,uploadId:d,doneParts:[]};return i&&i.progress&&await i.progress(0,c,m.res),await this._resumeMultipartCopy(c,r,i)};PT._resumeMultipartCopy=async function(e,r,i){if(this.isCancel())throw this._makeCancelEvent();let{versionId:s=null}=i,a={versionId:s},{copySize:o,partSize:n,uploadId:u,doneParts:p,name:m}=e,d=this._divideMultipartCopyParts(o,n,r.startOffset),y=d.length,c={headers:{}};i.copyheaders&&GSe(i.copyheaders).to(c.headers),s&&GSe(a).to(c);let h=function(A,D,G){return new Promise(async(E,j)=>{try{if(!A.isCancel()){let L=d[D-1],V=`${L.start}-${L.end-1}`,_;try{_=await A.uploadPartCopy(m,u,D,V,G,c)}catch(W){throw W.status===404?A._makeAbortEvent():W}A.isCancel()||(Ktr(`content-range ${_.res.headers["content-range"]}`),p.push({number:D,etag:_.res.headers.etag}),e.doneParts=p,i&&i.progress&&await i.progress(p.length/y,e,_.res))}E()}catch(L){L.partNum=D,j(L)}})},g=Array.from(new Array(y),(v,A)=>A+1),S=p.map(v=>v.number),N=g.filter(v=>S.indexOf(v)<0),T=5,I=i.parallel||T;if(this.checkBrowserAndVersion("Internet Explorer","10")||I===1)for(let v=0;v<N.length;v++){if(this.isCancel())throw this._makeCancelEvent();await h(this,N[v],r)}else{let v=await this._parallelNode(N,I,h,r),A=v.find(D=>D.name==="abort");if(A)throw A;if(this.isCancel())throw this._makeCancelEvent();if(v&&v.length>0){let D=v[0];throw D.message=`Failed to copy some parts with error: ${D.toString()} part_num: ${D.partNum}`,D}}return await this.completeMultipartUpload(m,u,p,i)};PT._divideMultipartCopyParts=function(e,r,i){let s=Math.ceil(e/r),a=[];for(let o=0;o<s;o++){let n=r*o+i,u=Math.min(n+r,e+i);a.push({start:n,end:u})}return a};PT._getObjectMeta=async function(e,r,i){let s=this.getBucket();this.setBucket(e);let a=await this.head(r,i);return this.setBucket(s),a}});var jSe=l(VSe=>{var{isArray:Wtr}=tl(),bd=VSe;bd._parallelNode=async function(e,r,i,s){let a=this,o=[],n=[],u=e.length/r,p=e.length%r,m=p===0?u:(e.length-p)/r+1,d=1;for(let y=0;y<e.length&&!a.isCancel();y++)if(s?n.push(i(a,e[y],s)):n.push(i(a,e[y])),n.length===r||d===m&&y===e.length-1){try{d+=1,await Promise.all(n)}catch(c){o.push(c)}n=[]}return o};bd._parallel=function(e,r,i){let s=this;return new Promise(a=>{let o=[];if(r<=0||!e){a(o);return}function n(S){return function(...N){if(S===null)throw new Error("Callback was already called.");let T=S;S=null,T.apply(this,N)}}function u(S){let N=-1,T=S.length;return function(){return++N<T&&!s.isCancel()?{value:S[N],key:N}:null}}let p=u(e),m=!1,d=0,y=!1;function c(S){d-=1,S?(m=!0,o.push(S),a(o)):m&&d<=0?(m=!0,a(o)):y||(s.isCancel()?a(o):g())}function h(S,N){i(S).then(T=>{N(null,T)}).catch(T=>{N(T)})}function g(){for(y=!0;d<r&&!m&&!s.isCancel();){let S=p();if(S===null||o.length>0){m=!0,d<=0&&a(o);return}d+=1,h(S.value,n(c))}y=!1}g()})};bd.cancel=function(e){this.options.cancelFlag=!0,Wtr(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(r=>{if(r.destroyed===!1){let i={name:"cancel",message:"cancel"};r.destroy(i)}}),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)};bd.isCancel=function(){return this.options.cancelFlag};bd.resetCancelFlag=function(){this.options.cancelFlag=!1};bd._stop=function(){this.options.cancelFlag=!0};bd._makeCancelEvent=function(){return{status:0,name:"cancel"}};bd._makeAbortEvent=function(){return{status:0,name:"abort",message:"upload task has been abort"}}});var zSe=l(Htr=>{dr(Htr);yr(Htr,{omit:()=>Jtr});function Jtr(t,e){let r={...t};for(let i of e)delete r[i];return r}});var HSe=l(KSe=>{var wT= Line truncated
<CompleteMultipartUpload>
`;for(let d=0;d<a.length;d++){let y=a[d];o+=`<Part>
`,o+=`<PartNumber>${y.number}</PartNumber>
`,o+=`<ETag>${y.etag}</ETag>
`,o+=`</Part>
`}o+="</CompleteMultipartUpload>",s=s||{};let n={};n=$tr(s,d=>{if(Xtr(d))return null}),n.subres={uploadId:r},n.headers=WSe(n.headers,["x-oss-server-side-encryption","x-oss-storage-class"]);let u=this._objectRequestParams("POST",e,n);Qtr.encodeCallback(u,n),u.mime="xml",u.content=o,u.headers&&u.headers["x-oss-callback"]||(u.xmlResponse=!0),u.successStatuses=[200];let p=await this.request(u);s.progress&&await s.progress(1,null,p.res);let m={res:p.res,bucket:u.bucket,name:e,etag:p.res.headers.etag};return u.headers&&u.headers["x-oss-callback"]&&(m.data=JSON.parse(p.data.toString())),m};Fh._uploadPart=async function(e,r,i,s,a){a=a||{};let o={};wT(a).to(o),o.headers=o.headers||{},o.headers["Content-Length"]=s.size,o.headers=WSe(o.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),o.subres={partNumber:i,uploadId:r};let n=this._objectRequestParams("PUT",e,o);n.mime=o.mime,process&&process.browser?n.content=s.content:n.stream=s.stream,n.successStatuses=[200],n.disabledMD5=a.disabledMD5;let p=await this.request(n);if(!p.res.headers.etag)throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);return s.stream&&(s.stream=null,n.stream=null),{name:e,etag:p.res.headers.etag,res:p.res}}});var QSe=l((_7r,JSe)=>{JSe.exports=function(t){function e(r){if(!(this instanceof e))return new e(r);if(!r.bucket)throw new Error("require bucket for image service instance");if(!r.imageHost)throw new Error("require imageHost for image service instance");r.endpoint=r.imageHost,this.ossClient=new t(r),this.ossClient.options.imageHost=r.imageHost}return e.prototype.get=async function(i,s,a){return await this.ossClient.get(i,s,a)},e.prototype.getStream=async function(i,s){return await this.ossClient.getStream(i,s)},e.prototype.getExif=async function(i,s){let a=this.ossClient._objectRequestParams("GET",`${i}@exif`,s);a.successStatuses=[200];let o=await this.ossClient.request(a);return o=await this._parseResponse(o),{res:o.res,data:o.data}},e.prototype.getInfo=async function(i,s){let a=this.ossClient._objectRequestParams("GET",`${i}@infoexif`,s);a.successStatuses=[200];let o=await this.ossClient.request(a);return o=await this._parseResponse(o),{res:o.res,data:o.data}},e.prototype.putStyle=async function(i,s,a){let o=this.ossClient._objectRequestParams("PUT",`/?style&styleName=${i}`,a);o.successStatuses=[200],o.content=`<?xml version="1.0" encoding="UTF-8"?>
<Style><Content>${s}</Content></Style>`;let n=await this.ossClient.request(o);return n=await this._parseResponse(n),{res:n.res,data:n.data}},e.prototype.getStyle=async function(i,s){let a=this.ossClient._objectRequestParams("GET",`/?style&styleName=${i}`,s);a.successStatuses=[200];let o=await this.ossClient.request(a);return o=await this._parseResponse(o),{res:o.res,data:o.data}},e.prototype.listStyle=async function(i){let s=this.ossClient._objectRequestParams("GET","/?style",i);s.successStatuses=[200];let a=await this.ossClient.request(s);return a=await this._parseResponse(a),{res:a.res,data:a.data.Style}},e.prototype.deleteStyle=async function(i,s){let a=this.ossClient._objectRequestParams("DELETE",`/?style&styleName=${i}`,s);return a.successStatuses=[204],{res:(await this.ossClient.request(a)).res}},e.prototype.signatureUrl=function(i){return this.ossClient.signatureUrl(i)},e.prototype._parseResponse=async function(i){let s=i.data.toString(),a=i.res.headers["content-type"];if(a==="application/json"){let o=JSON.parse(s);i.data={},o&&Object.keys(o).forEach(n=>{i.data[n]=parseFloat(o[n].value,10)||o[n].value})}else a==="application/xml"&&(i.data=await this.ossClient.parseXML(s));return i},e}});var H5=l((F7r,W5)=>{"use strict";function Ztr(t){if(this._ready=!!this._ready,this._readyCallbacks=this._readyCallbacks||[],arguments.length===0)return new Promise(function(e){if(this._ready)return e();this._readyCallbacks.push(e)}.bind(this));typeof t=="function"?this._readyCallbacks.push(t):this._ready=!!t,this._ready&&this._readyCallbacks.splice(0,Infinity).forEach(function(e){process.nextTick(e)})}function $Se(t){t.ready=Ztr}W5.exports=$Se;W5.exports.mixin=$Se});var efe=l((U7r,XSe)=>{"use strict";var Ytr=H5(),ZSe=require("events").EventEmitter,YSe=require("util");XSe.exports=tD;function tD(){ZSe.call(this),this.on("error",this.defaultErrorHandler.bind(this))}YSe.inherits(tD,ZSe);Ytr.mixin(tD.prototype);tD.prototype.defaultErrorHandler=function(t){if(!(this.listeners("error").length>1)){console.error(`
[%s][pid: %s][%s][%s] %s: %s
Error Stack:
%s`,Date(),process.pid,this.constructor.name,__filename,t.name,t.message,t.stack);var e=[];for(var r in t)r==="name"||r==="message"||e.push(YSe.format(" %s: %j",r,t[r]));e.length&&console.error(`Error Additions:
%s`,e.join(`
`)),console.error()}}});var nfe=l((B7r,tfe)=>{"use strict";var J5=require("os"),err=require("fs"),trr=require("child_process"),rrr="/etc/resolv.conf";function rfe(){var t="eth",e=J5.platform();return e==="darwin"?t="en":e==="win32"&&(t=null),t}function irr(){return J5.platform()==="win32"?"ipconfig/all":"/sbin/ifconfig"}function ife(t,e){return e==="IPv4"?t==="IPv4"||t===4:e==="IPv6"?t==="IPv6"||t===6:t===e}function Kn(t,e){typeof t=="function"&&(e=t,t=null);var r={ip:Kn.ip(t),ipv6:Kn.ipv6(t),mac:null};Kn.mac(t,function(i,s){s&&(r.mac=s),e(i,r)})}Kn.interface=function(t,e){var r=J5.networkInterfaces(),i=!e;e=e||rfe(),t=t||"IPv4";for(var s=-1;s<8;s++){var a=e+(s>=0?s:""),o=r[a];if(o)for(var n=0;n<o.length;n++){var u=o[n];if(ife(u.family,t))return u}}if(i)for(var p in r)for(var o=r[p],s=0;s<o.length;s++){var u=o[s];if(ife(u.family,t)&&!u.address.startsWith("127."))return u}};Kn.ip=function(t){var e=Kn.interface("IPv4",t);return e&&e.address};Kn.ipv6=function(t){var e=Kn.interface("IPv6",t);return e&&e.address};var sfe=/^(\w+)\:\s+flags=/,afe=/^(\w+)\s{2,}link encap:\w+/i,ofe=Kn.MAC_RE=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,srr=Kn.MAC_IP_RE=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function arr(t,e,r){for(var i=t.split(`
`),s=0;s<i.length;s++){var a=i[s].trimRight(),o=sfe.exec(a)||afe.exec(a);if(!!o){var n=o[1];if(n.indexOf(e)===0){var u=null,p=null,m=ofe.exec(a);for(m&&(p=m[1]),s++;;){if(a=i[s],!a||sfe.exec(a)||afe.exec(a)){s--;break}p||(m=ofe.exec(a),m&&(p=m[1])),u||(m=srr.exec(a),m&&(u=m[1])),s++}if(u===r)return p}}}}Kn.mac=function(t,e){typeof t=="function"&&(e=t,t=null),t=t||rfe();var r=Kn.interface("IPv4",t);if(!r)return e();if(!process.env.CI&&(r.mac==="ff:00:00:00:00:00"||r.mac==="00:00:00:00:00:00")&&(r.mac=""),r.mac)return e(null,r.mac);trr.exec(irr(),{timeout:5e3},function(i,s,a){if(i||!s)return e(i);var o=arr(s||"",t,r.address);e(null,o)})};var orr=/^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i;Kn.dns=function(t,e){typeof t=="function"&&(e=t,t=null),t=t||rrr,err.readFile(t,"utf8",function(r,i){if(r)return e(r);var s=[];i=i||"";for(var a=i.split(`
`),o=0;o<a.length;o++){var n=a[o].trim(),u=orr.exec(n);u&&s.push(u[1])}e(null,s)})};tfe.exports=Kn});var mfe=l((G7r,ufe)=>{var pfe=efe(),nrr=require("util"),urr=H5(),prr=Gu(),mrr=nfe().ip(),crr="roundRobin",lrr="masterSlave";ufe.exports=function(t){function e(a){if(!(this instanceof e))return new e(a);if(!a||!Array.isArray(a.cluster))throw new Error("require options.cluster to be an array");pfe.call(this),this.clients=[],this.availables={};for(let n=0;n<a.cluster.length;n++){let u=a.cluster[n];prr(a).pick("timeout","agent","urllib").to(u),this.clients.push(new t(u)),this.availables[n]=!0}this.schedule=a.schedule||crr,this.masterOnly=!!a.masterOnly,this.index=0;let o=a.heartbeatInterval||1e4;this._checkAvailableLock=!1,this._timerId=this._deferInterval(this._checkAvailable.bind(this,!0),o),this._ignoreStatusFile=a.ignoreStatusFile||!1,this._init()}nrr.inherits(e,pfe);let r=e.prototype;urr.mixin(r);let i=["head","get","getStream","list","getACL"],s=["put","putStream","delete","deleteMulti","copy","putMeta","putACL"];return i.forEach(a=>{r[a]=async function(...o){let n=this.chooseAvailable(),u;try{return await n[a](...o)}catch(p){if(p.status&&p.status>=200&&p.status<500)throw p;u=p}for(let p=0;p<this.clients.length;p++){let m=this.clients[p];if(m!==n)try{return await m[a].apply(n,o)}catch(d){if(d.status&&d.status>=200&&d.status<500)throw d;u=d}}throw u.message+=" (all clients are down)",u}}),s.forEach(a=>{r[a]=async function(...o){return(await Promise.all(this.clients.map(u=>u[a](...o))))[0]}}),r.signatureUrl=function(...o){return this.chooseAvailable().signatureUrl(...o)},r.getObjectUrl=function(...o){return this.chooseAvailable().getObjectUrl(...o)},r._init=function(){let o=this;(async()=>{await o._checkAvailable(o._ignoreStatusFile),o.ready(!0)})().catch(n=>{o.emit("error",n)})},r._checkAvailable=async function(o){let n=`._ali-oss/check.status.${mrr}.txt`;if(o||await this.put(n,Buffer.from(`check available started at ${Date()}`)),this._checkAvailableLock)return;this._checkAvailableLock=!0;let u=[];for(let p=0;p<this.clients.length;p++){let m=this.clients[p],d=await this._checkStatus(m,n);d||(d=await this._checkStatus(m,n)),d||(d=await this._checkStatus(m,n),d||u.push(m._objectUrl(n))),this.availables[p]=d}if(this._checkAvailableLock=!1,u.length>0){let p=new Error(`${u.length} data node down, please check status file: ${u.join(", ")}`);p.name="CheckAvailableError",this.emit("error",p)}},r._checkStatus=async function(o,n){let u=!0;try{await o.head(n)}catch(p){(!p.status||p.status>=500||p.status<200)&&(u=!1)}return u},r.chooseAvailable=function(){if(this.schedule===lrr){if(this.masterOnly)return this.clients[0];for(let n=0;n<this.clients.length;n++)if(this.availables[n])return this.clients[n];return this.clients[0]}let o=this.clients.length;for(;o>0;){let n=this._nextRRIndex();if(this.availables[n])return this.clients[n];o--}return this.clients[0]},r._nextRRIndex=function(){let o=this.index++;return this.index>=this.clients.length&&(this.index=0),o},r._error=function(o){if(o)throw o},r._createCallback=function(o,n,u){return()=>{u=u||this._error,n.call(o).then(()=>{u()},u)}},r._deferInterval=function(o,n,u){return setInterval(this._createCallback(this,o,u),n)},r.close=function(){clearInterval(this._timerId),this._timerId=null},e}});var lfe=l((O7r,cfe)=>{var Q5=Oa()("ali-oss:sts"),drr=require("crypto"),yrr=require("querystring"),hrr=Gu(),brr=EC(),grr=Eh(),Srr=SI(),frr=Rh(),Nrr=new brr;function rD(t){if(!(this instanceof rD))return new rD(t);if(!t||!t.accessKeyId||!t.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");this.options={endpoint:t.endpoint||"https://sts.aliyuncs.com",format:"JSON",apiVersion:"2015-04-01",sigMethod:"HMAC-SHA1",sigVersion:"1.0",timeout:"60s"},hrr(t).to(this.options),this.options.urllib?this.urllib=this.options.urllib:(this.urllib=frr,this.agent=this.options.agent||Nrr)}cfe.exports=rD;var iD=rD.prototype;iD.assumeRole=async function(e,r,i,s,a){let o=this.options,n={Action:"AssumeRole",RoleArn:e,RoleSessionName:s||"app",DurationSeconds:i||3600,Format:o.format,Version:o.apiVersion,AccessKeyId:o.accessKeyId,SignatureMethod:o.sigMethod,SignatureVersion:o.sigVersion,SignatureNonce:Math.random(),Timestamp:new Date().toISOString()};if(r){let y;if(grr.string(r))try{y=JSON.stringify(JSON.parse(r))}catch(c){throw new Error(`Policy string is not a valid JSON: ${c.message}`)}else y=JSON.stringify(r);n.Policy=y}let u=this._getSignature("POST",n,o.accessKeySecret);n.Signature=u;let p=o.endpoint,m={agent:this.agent,timeout:Srr(a&&a.timeout||o.timeout),method:"POST",content:yrr.stringify(n),headers:{"Content-Type":"application/x-www-form-urlencoded"},ctx:a&&a.ctx},d=await this.urllib.request(p,m);if(Q5("response %s %s, got %s, headers: %j",m.method,p,d.status,d.headers),Math.floor(d.status/100)!==2){let y=await this._requestError(d);throw y.params=m,y}return d.data=JSON.parse(d.data),{res:d.res,credentials:d.data.Credentials}};iD._requestError=async function(e){let r=new Error;r.sta Line truncated
raw xml: ${s}`,n.status=e.status,n.requestId=e.headers&&e.headers["x-oss-request-id"],n}let o=a.Message||`unknow request error, status: ${e.status}`;return a.Condition&&(o+=` (condition: ${a.Condition})`),r=new Error(o),r.name=a.Code?`${a.Code}Error`:"UnknownError",r.status=e.status,r.code=a.Code,r.requestId=a.RequestId,r.ecCode=a.EC,r.hostId=a.HostId,r};if(e.name==="ResponseTimeoutError")r=new Error(e.message),r.name=e.name;else if(!e.data||!e.data.length)if(e.status===-1||e.status===-2)r=new Error(e.message),r.name=e.name,r.status=e.status,r.code=e.name;else{if(e.status===404)r=new Error("Object not exists"),r.name="NoSuchKeyError",r.status=404,r.code="NoSuchKey";else if(e.status===412)r=new Error("Pre condition failed"),r.name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed";else{r=new Error(`Unknow error, status: ${e.status}`),r.name="UnknownError",r.status=e.status,r.res=e;let s=e.headers&&e.headers["x-oss-err"];if(s){let a=Buffer.from(s,"base64").toString("utf8");r=await i(a)}}r.requestId=e.headers&&e.headers["x-oss-request-id"],r.host=""}else{let s=String(e.data);MT("request response error data: %s",s),r=await i(s)}return MT("generate error %j",r),r};Us.setSLDEnabled=function(e){return this.options.sldEnable=!!e,this}});var _S=l((LS,LT)=>{(function(){var t,e="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",n=500,u="__lodash_placeholder__",p=1,m=2,d=4,y=1,c=2,h=1,g=2,S=4,N=8,T=16,I=32,v=64,A=128,D=256,G=512,E=30,j="...",L=800,V=16,_=1,W=2,re=3,H=1/0,ye=9007199254740991,le=17976931348623157e292,be=0/0,ce=4294967295,ue=ce-1,Ie=ce>>>1,Ae=[["ary",A],["bind",h],["bindKey",g],["curry",N],["curryRight",T],["flip",G],["partial",I],["partialRight",v],["rearg",D]],Pe="[object Arguments]",qe="[object Array]",We="[object AsyncFunction]",ee="[object Boolean]",U="[object Date]",we="[object DOMException]",oe="[object Error]",De="[object Function]",Ce="[object GeneratorFunction]",Te="[object Map]",Qe="[object Number]",_e="[object Null]",Ue="[object Object]",tt="[object Promise]",Jt="[object Proxy]",st="[object RegExp]",mt="[object Set]",vr="[object String]",kr="[object Symbol]",Lr="[object Undefined]",Bt="[object WeakMap]",tr="[object WeakSet]",qt="[object ArrayBuffer]",te="[object DataView]",me="[object Float32Array]",ge="[object Float64Array]",Ee="[object Int8Array]",ze="[object Int16Array]",ft="[object Int32Array]",Pt="[object Uint8Array]",wt="[object Uint8ClampedArray]",Sr="[object Uint16Array]",_r="[object Uint32Array]",Vt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Vr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ji=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,je=RegExp(Ji.source),pt=RegExp(Be.source),P=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pe=/^\w*$/,de=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ve=RegExp(Le.source),lt=/^\s+/,O=/\s/,F=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,w=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ae=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,bt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,Ft=/^(?:0|[1-9]\d*)$/,Et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,Gt=/['\n\r\u2028\u2029\\]/g,vt="\\ud800-\\udfff",rr="\\u0300-\\u036f",Qt="\\ufe20-\\ufe2f",kt="\\u20d0-\\u20ff",Nt=rr+Qt+kt,Tt="\\u2700-\\u27bf",Ct="a-z\\xdf-\\xf6\\xf8-\\xff",Dt="\\xac\\xb1\\xd7\\xf7",at="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ke="\\u2000-\\u206f",He=" \\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",nt="A-Z\\xc0-\\xd6\\xd8-\\xde",rt="\\ufe0e\\ufe0f",Je=Dt+at+Ke+He,Xe="['\u2019]",jt="["+vt+"]",or="["+Je+"]",Ut="["+Nt+"]",ir="\\d+",fe="["+Tt+"]",fr="["+Ct+"]",Er="[^"+vt+Je+ir+Tt+Ct+nt+"]",cr="\\ud83c[\\udffb-\\udfff]",ur="(?:"+Ut+"|"+cr+")",xr="[^"+vt+"]",Nr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Ir="["+nt+"]",C="\\u200d",R="(?:"+fr+"|"+Er+")",M="(?:"+Ir+"|"+Er+")",X="(?:"+Xe+"(?:d|ll|m|re|s|t|ve))?",Se="(?:"+Xe+"(?:D|LL|M|RE|S|T|VE))?",ve=ur+"?",Ge="["+rt+"]?",$e="(?:"+C+"(?:"+[xr,Nr,Ri].join("|")+")"+Ge+ve+")*",sr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fi=Ge+ve+$e,Ei="(?:"+[fe,Nr,Ri].join("|")+")"+Fi,Ps="(?:"+[xr+Ut+"?",Ut,Nr,Ri,jt].join("|")+")",Du=RegExp(Xe,"g"),ps=RegExp(Ut,"g"),es=RegExp(cr+"(?="+cr+")|"+Ps+Fi,"g"),Ru=RegExp([Ir+"?"+fr+"+"+X+"(?="+[or,Ir,"$"].join("|")+")",M+"+"+Se+"(?="+[or,Ir+R,"$"].join("|")+")",Ir+"?"+R+"+"+X,Ir+"+"+Se,Fr,sr,ir,Ei].join("|"),"g"),qa=RegExp("["+C+vt+Nt+rt+"]"),Sm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Line truncated
/* [wrapped with `+f+`] */
`)}function qMt(b){return Pr(b)||ky(b)||!!(lQ&&b&&b[lQ])}function Ec(b,f){var k=typeof b;return f=f??ye,!!f&&(k=="number"||k!="symbol"&&Ft.test(b))&&b>-1&&b%1==0&&b<f}function an(b,f,k){if(!ws(k))return!1;var B=typeof f;return(B=="number"?En(k)&&Ec(f,k.length):B=="string"&&f in k)?xp(k[f],b):!1}function qB(b,f){if(Pr(b))return!1;var k=typeof b;return k=="number"||k=="symbol"||k=="boolean"||b==null||pu(b)?!0:pe.test(b)||!Z.test(b)||f!=null&&b in wi(f)}function DMt(b){var f=typeof b;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?b!=="__proto__":b===null}function DB(b){var f=eC(b),k=se[f];if(typeof k!="function"||!(f in oi.prototype))return!1;if(b===k)return!0;var B=kB(k);return!!B&&b===B[0]}function RMt(b){return!!uQ&&uQ in b}var EMt=Rk?Pc:WB;function HN(b){var f=b&&b.constructor,k=typeof f=="function"&&f.prototype||og;return b===k}function u$(b){return b===b&&!ws(b)}function p$(b,f){return function(k){return k==null?!1:k[b]===f&&(f!==t||b in wi(k))}}function PMt(b){var f=oC(b,function(B){return k.size===n&&k.clear(),B}),k=f.cache;return f}function wMt(b,f){var k=b[1],B=f[1],$=k|B,ne=$<(h|g|A),Ne=B==A&&k==N||B==A&&k==D&&b[7].length<=f[8]||B==(A|D)&&f[7].length<=f[8]&&k==N;if(!(ne||Ne))return b;B&h&&(b[2]=f[2],$|=k&h?0:S);var xe=f[3];if(xe){var Fe=b[3];b[3]=Fe?KQ(Fe,xe,f[4]):xe,b[4]=Fe?Ol(b[3],u):f[4]}return xe=f[5],xe&&(Fe=b[5],b[5]=Fe?WQ(Fe,xe,f[6]):xe,b[6]=Fe?Ol(b[5],u):f[6]),xe=f[7],xe&&(b[7]=xe),B&A&&(b[8]=b[8]==null?f[8]:Lo(b[8],f[8])),b[9]==null&&(b[9]=f[9]),b[0]=f[0],b[1]=$,b}function MMt(b){var f=[];if(b!=null)for(var k in wi(b))f.push(k);return f}function LMt(b){return Pk.call(b)}function m$(b,f,k){return f=Ga(f===t?b.length-1:f,0),function(){for(var B=arguments,$=-1,ne=Ga(B.length-f,0),Ne=Ze(ne);++$<ne;)Ne[$]=B[f+$];$=-1;for(var xe=Ze(f+1);++$<f;)xe[$]=B[$];return xe[f]=k(Ne),ou(b,this,xe)}}function c$(b,f){return f.length<2?b:Ty(b,_u(f,0,-1))}function _Mt(b,f){for(var k=b.length,B=Lo(f.length,k),$=Rn(b);B--;){var ne=f[B];b[B]=Ec(ne,k)?$[ne]:t}return b}function RB(b,f){if(!(f==="constructor"&&typeof b[f]=="function")&&f!="__proto__")return b[f]}var l$=y$(LQ),JN=X2t||function(b,f){return to.setTimeout(b,f)},EB=y$(aMt);function d$(b,f,k){var B=f+"";return EB(b,xMt(B,FMt(vMt(B),k)))}function y$(b){var f=0,k=0;return function(){var B=twt(),$=V-(B-k);if(k=B,$>0){if(++f>=L)return arguments[0]}else f=0;return b.apply(t,arguments)}}function rC(b,f){var k=-1,B=b.length,$=B-1;for(f=f===t?B:f;++k<f;){var ne=dB(k,$),Ne=b[ne];b[ne]=b[k],b[k]=Ne}return b.length=f,b}var h$=PMt(function(b){var f=[];return b.charCodeAt(0)===46&&f.push(""),b.replace(de,function(k,B,$,ne){f.push($?ne.replace(he,"$1"):B||k)}),f});function Im(b){if(typeof b=="string"||pu(b))return b;var f=b+"";return f=="0"&&1/b==-H?"-0":f}function vy(b){if(b!=null){try{return Ek.call(b)}catch(f){}try{return b+""}catch(f){}}return""}function FMt(b,f){return Pu(Ae,function(k){var B="_."+k[0];f&k[1]&&!Ck(b,B)&&b.push(B)}),b.sort()}function b$(b){if(b instanceof oi)return b.clone();var f=new Mu(b.__wrapped__,b.__chain__);return f.__actions__=Rn(b.__actions__),f.__index__=b.__index__,f.__values__=b.__values__,f}function UMt(b,f,k){(k?an(b,f,k):f===t)?f=1:f=Ga(Or(f),0);var B=b==null?0:b.length;if(!B||f<1)return[];for(var $=0,ne=0,Ne=Ze(Uk(B/f));$<B;)Ne[ne++]=_u(b,$,$+=f);return Ne}function BMt(b){for(var f=-1,k=b==null?0:b.length,B=0,$=[];++f<k;){var ne=b[f];ne&&($[B++]=ne)}return $}function GMt(){var b=arguments.length;if(!b)return[];for(var f=Ze(b-1),k=arguments[0],B=b;B--;)f[B-1]=arguments[B];return Gl(Pr(k)?Rn(k):[k],ho(f,1))}var OMt=Qr(function(b,f){return ca(b)?VN(b,ho(f,1,ca,!0)):[]}),VMt=Qr(function(b,f){var k=Fu(f);return ca(k)&&(k=t),ca(b)?VN(b,ho(f,1,ca,!0),lr(k,2)):[]}),jMt=Qr(function(b,f){var k=Fu(f);return ca(k)&&(k=t),ca(b)?VN(b,ho(f,1,ca,!0),t,k):[]});function zMt(b,f,k){var B=b==null?0:b.length;return B?(f=k||f===t?1:Or(f),_u(b,f<0?0:f,B)):[]}function KMt(b,f,k){var B=b==null?0:b.length;return B?(f=k||f===t?1:Or(f),f=B-f,_u(b,0,f<0?0:f)):[]}function WMt(b,f){return b&&b.length?Jk(b,lr(f,3),!0,!0):[]}function HMt(b,f){return b&&b.length?Jk(b,lr(f,3),!0):[]}function JMt(b,f,k,B){var $=b==null?0:b.length;return $?(k&&typeof k!="number"&&an(b,f,k)&&(k=0,B=$),Gwt(b,f,k,B)):[]}function g$(b,f,k){var B=b==null?0:b.length;if(!B)return-1;var $=k==null?0:Or(k);return $<0&&($=Ga(B+$,0)),xk(b,lr(f,3),$)}function S$(b,f,k){var B=b==null?0:b.length;if(!B)return-1;var $=B-1;return k!==t&&($=Or(k),$=k<0?Ga(B+$,0):Lo($,B-1)),xk(b,lr(f,3),$,!0)}function f$(b){var f=b==null?0:b.length;return f?ho(b,1):[]}function QMt(b){var f=b==null?0:b.length;return f?ho(b,H):[]}function $Mt(b,f){var k=b==null?0:b.length;return k?(f=f===t?1:Or(f),ho(b,f)):[]}function XMt(b){for(var f=-1,k=b==null?0:b.length,B={};++f<k;){var $=b[f];B[$[0]]=$[1]}return B}function N$(b){return b&&b.length?b[0]:t}function ZMt(b,f,k){var B=b==null?0:b.length;if(!B)return-1;var $=k==null?0:Or(k);return $<0&&($=Ga(B+$,0)),ig(b,f,$)}function YMt(b){var f=b==null?0:b.length;return f?_u( Line truncated
`;b.replace(Mt,function(gr,ti,li,mu,on,cu){return li||(li=mu),yt+=b.slice(ot,cu).replace(Gt,E2t),ti&&(xe=!0,yt+=`' +
__e(`+ti+`) +
'`),on&&(Fe=!0,yt+=`';
`+on+`;
__p += '`),li&&(yt+=`' +
((__t = (`+li+`)) == null ? '' : __t) +
'`),ot=cu+gr.length,gr}),yt+=`';
`;var br=Qi.call(f,"variable")&&f.variable;if(!br)yt=`with (obj) {
`+yt+`
}
`;else if(ae.test(br))throw new qr(a);yt=(Fe?yt.replace(Vt,""):yt).replace(xt,"$1").replace(Vr,"$1;"),yt="function("+(br||"obj")+`) {
`+(br?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(xe?", __e = _.escape":"")+(Fe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+yt+`return __p
}`;var jr=J$(function(){return Pi(ne,er+"return "+yt).apply(t,Ne)});if(jr.source=yt,_B(jr))throw jr;return jr}function iUt(b){return Ui(b).toLowerCase()}function sUt(b){return Ui(b).toUpperCase()}function aUt(b,f,k){if(b=Ui(b),b&&(k||f===t))return iQ(b);if(!b||!(f=uu(f)))return b;var B=kp(b),$=kp(f),ne=sQ(B,$),Ne=aQ(B,$)+1;return Hl(B,ne,Ne).join("")}function oUt(b,f,k){if(b=Ui(b),b&&(k||f===t))return b.slice(0,nQ(b)+1);if(!b||!(f=uu(f)))return b;var B=kp(b),$=aQ(B,kp(f))+1;return Hl(B,0,$).join("")}function nUt(b,f,k){if(b=Ui(b),b&&(k||f===t))return b.replace(lt,"");if(!b||!(f=uu(f)))return b;var B=kp(b),$=sQ(B,kp(f));return Hl(B,$).join("")}function uUt(b,f){var k=E,B=j;if(ws(f)){var $="separator"in f?f.separator:$;k="length"in f?Or(f.length):k,B="omission"in f?uu(f.omission):B}b=Ui(b);var ne=b.length;if(sg(b)){var Ne=kp(b);ne=Ne.length}if(k>=ne)return b;var xe=k-ag(B);if(xe<1)return B;var Fe=Ne?Hl(Ne,0,xe).join(""):b.slice(0,xe);if($===t)return Fe+B;if(Ne&&(xe+=Fe.length-xe),FB($)){if(b.slice(xe).search($)){var ot,ut=Fe;for($.global||($=YU($.source,Ui(Ye.exec($))+"g")),$.lastIndex=0;ot=$.exec(ut);)var yt=ot.index;Fe=Fe.slice(0,yt===t?xe:yt)}}else if(b.indexOf(uu($),xe)!=xe){var Mt=Fe.lastIndexOf($);Mt>-1&&(Fe=Fe.slice(0,Mt))}return Fe+B}function pUt(b){return b=Ui(b),b&&je.test(b)?b.replace(Ji,U2t):b}var mUt=cg(function(b,f,k){return b+(k?" ":"")+f.toUpperCase()}),GB=QQ("toUpperCase");function H$(b,f,k){return b=Ui(b),f=k?t:f,f===t?w2t(b)?O2t(b):v2t(b):b.match(f)||[]}var J$=Qr(function(b,f){try{return ou(b,t,f)}catch(k){return _B(k)?k:new qr(k)}}),cUt=Rc(function(b,f){return Pu(f,function(k){k=Im(k),qc(b,k,MB(b[k],b))}),b});function lUt(b){var f=b==null?0:b.length,k=lr();return b=f?vs(b,function(B){if(typeof B[1]!="function")throw new wu(s);return[k(B[0]),B[1]]}):[],Qr(function(B){for(var $=-1;++$<f;){var ne=b[$];if(ou(ne[0],this,B))return ou(ne[1],this,B)}})}function dUt(b){return Uwt(Lu(b,p))}function OB(b){return function(){return b}}function yUt(b,f){return b==null||b!==b?f:b}var hUt=XQ(),bUt=XQ(!0);function wn(b){return b}function VB(b){return xQ(typeof b=="function"?b:Lu(b,p))}function gUt(b){return DQ(Lu(b,p))}function SUt(b,f){return RQ(b,Lu(f,p))}var fUt=Qr(function(b,f){return function(k){return jN(k,b,f)}}),NUt=Qr(function(b,f){return function(k){return jN(b,k,f)}});function jB(b,f,k){var B=ro(f),$=Kk(f,B);k==null&&!(ws(f)&&($.length||!B.length))&&(k=f,f=b,b=this,$=Kk(f,ro(f)));var ne=!(ws(k)&&"chain"in k)||!!k.chain,Ne=Pc(b);return Pu($,function(xe){var Fe=f[xe];b[xe]=Fe,Ne&&(b.prototype[xe]=function(){var ot=this.__chain__;if(ne||ot){var ut=b(this.__wrapped__),yt=ut.__actions__=Rn(this.__actions__);return yt.push({func:Fe,args:arguments,thisArg:b}),ut.__chain__=ot,ut}return Fe.apply(b,Gl([this.value()],arguments))})}),b}function IUt(){return to._===this&&(to._=H2t),this}function zB(){}function TUt(b){return b=Or(b),Qr(function(f){return EQ(f,b)})}var AUt=IB(vs),vUt=IB(ZJ),kUt=IB(WU);function Q$(b){return qB(b)?HU(Im(b)):tMt(b)}function CUt(b){return function(f){return b==null?t:Ty(b,f)}}var xUt=YQ(),qUt=YQ(!0);function KB(){return[]}function WB(){return!1}function DUt(){return{}}function RUt(){return""}function EUt(){return!0}function PUt(b,f){if(b=Or(b),b<1||b>ye)return[];var k=ce,B=Lo(b,ce);f=lr(f),b-=ce;for(var $=$U(B,f);++k<b;)f(k);return $}function wUt(b){return Pr(b)?vs(b,Im):pu(b)?[b]:Rn(h$(Ui(b)))}function MUt(b){var f=++K2t;return Ui(b)+f}var LUt=Xk(function(b,f){return b+f},0),_Ut=TB("ceil"),FUt=Xk(function(b,f){return b/f},1),UUt=TB("floor");function BUt(b){return b&&b.length?zk(b,wn,nB):t}function GUt(b,f){return b&&b.length?zk(b,lr(f,2),nB):t}function OUt(b){return tQ(b,wn)}function VUt(b,f){return tQ(b,lr(f,2))}function jUt(b){return b&&b.length?zk(b,wn,cB):t}function zUt(b,f){return b&&b.length?zk(b,lr(f,2),cB):t}var KUt=Xk(function(b,f){return b*f},1),WUt=TB("round"),HUt=Xk(function(b,f){return b-f},0);function JUt(b){return b&&b.length?QU(b,wn):0}function QUt(b,f){return b&&b.length?QU(b,lr(f,2)):0}return se.after=g_t,se.ary=C$,se.assign=sFt,se.assignIn=G$,se.assignInWith=mC,se.assignWith=aFt,se.at=oFt,se.before=x$,se.bind=MB,se.bindAll=cUt,se.bindKey=q$,se.castArray=D_t,se.chain=A$,se.chunk=UMt,se.compact=BMt,se.concat=GMt,se.cond=lUt,se.conforms=dUt,se.constant=OB,se.countBy=JLt,se.create=nFt,se.curry=D$,se.curryRight=R$,se.debounce=E$,se.defaults=uFt,se.defaultsDeep=pFt,se.defer=S_t,se.delay=f_t,se.difference=OMt,se.differenceBy=VMt,se.differenceWith=jMt,se.drop=zMt,se.dropRight=KMt,se.dropRightWhile=WMt,se.dropWhile=HMt,se.fill=JMt,se.filter=$Lt,se.flatMap=YLt,se.flatMapDeep=e_t,se.flatMapDepth=t_t,se.flatten=f$,se.flattenDeep=QMt,se.flattenDepth=$Mt,se.flip=N_t,se.flow=hUt,se.flowRight=bUt,se.fromPairs=XMt,se.functions=bFt,se.functionsIn=gFt,se.groupBy=r_t,se.initial=YMt,se.intersection=eLt,se.intersectionBy=tLt,se.intersectionWith=rLt,se.invert=fFt,se.invertBy=NFt,se.invokeMap=s_t,se.iteratee=VB,se.keyBy=a_t,se.keys=ro,se.keysIn=Pn,se.map=sC,se.mapKeys=TFt,se.mapValue Line truncated
`)})}),Json:new Td().addNamedListeners(function(t){var e=OD();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)}),Rest:new Td().addNamedListeners(function(t){var e=lA();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)}),RestJson:new Td().addNamedListeners(function(t){var e=o8();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError),t("UNSET_CONTENT_LENGTH","afterBuild",e.unsetContentLength)}),RestXml:new Td().addNamedListeners(function(t){var e=u8();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)}),Query:new Td().addNamedListeners(function(t){var e=i8();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)})}});var YTe=l((s$r,ZTe)=>{function T8(t,e){this.currentState=e||null,this.states=t||{}}T8.prototype.runTo=function(e,r,i,s){typeof e=="function"&&(s=i,i=r,r=e,e=null);var a=this,o=a.states[a.currentState];o.fn.call(i||a,s,function(n){if(n)if(o.fail)a.currentState=o.fail;else return r?r.call(i,n):null;else if(o.accept)a.currentState=o.accept;else return r?r.call(i):null;if(a.currentState===e)return r?r.call(i,n):null;a.runTo(e,r,i,n)})};T8.prototype.addState=function(e,r,i,s){return typeof r=="function"?(s=r,r=null,i=null):typeof i=="function"&&(s=i,i=null),this.currentState||(this.currentState=e),this.states[e]={accept:r,fail:i,fn:s},this};ZTe.exports=T8});var eR=l(YD=>{(function(t){"use strict";function e(te){return te!==null?Object.prototype.toString.call(te)==="[object Array]":!1}function r(te){return te!==null?Object.prototype.toString.call(te)==="[object Object]":!1}function i(te,me){if(te===me)return!0;var ge=Object.prototype.toString.call(te);if(ge!==Object.prototype.toString.call(me))return!1;if(e(te)===!0){if(te.length!==me.length)return!1;for(var Ee=0;Ee<te.length;Ee++)if(i(te[Ee],me[Ee])===!1)return!1;return!0}if(r(te)===!0){var ze={};for(var ft in te)if(hasOwnProperty.call(te,ft)){if(i(te[ft],me[ft])===!1)return!1;ze[ft]=!0}for(var Pt in me)if(hasOwnProperty.call(me,Pt)&&ze[Pt]!==!0)return!1;return!0}return!1}function s(te){if(te===""||te===!1||te===null)return!0;if(e(te)&&te.length===0)return!0;if(r(te)){for(var me in te)if(te.hasOwnProperty(me))return!1;return!0}else return!1}function a(te){for(var me=Object.keys(te),ge=[],Ee=0;Ee<me.length;Ee++)ge.push(te[me[Ee]]);return ge}function o(te,me){var ge={};for(var Ee in te)ge[Ee]=te[Ee];for(var ze in me)ge[ze]=me[ze];return ge}var n;typeof String.prototype.trimLeft=="function"?n=function(te){return te.trimLeft()}:n=function(te){return te.match(/^\s*(.*)/)[1]};var u=0,p=1,m=2,d=3,y=4,c=5,h=6,g=7,S=8,N=9,T={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},I="EOF",v="UnquotedIdentifier",A="QuotedIdentifier",D="Rbracket",G="Rparen",E="Comma",j="Colon",L="Rbrace",V="Number",_="Current",W="Expref",re="Pipe",H="Or",ye="And",le="EQ",be="GT",ce="LT",ue="GTE",Ie="LTE",Ae="NE",Pe="Flatten",qe="Star",We="Filter",ee="Dot",U="Not",we="Lbrace",oe="Lbracket",De="Lparen",Ce="Literal",Te={".":ee,"*":qe,",":E,":":j,"{":we,"}":L,"]":D,"(":De,")":G,"@":_},Qe={"<":!0,">":!0,"=":!0,"!":!0},_e={" ":!0," ":!0,"\n":!0};function Ue(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||te==="_"}function tt(te){return te>="0"&&te<="9"||te==="-"}function Jt(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||te>="0"&&te<="9"||te==="_"}function st(){}st.prototype={tokenize:function(te){var me=[];this._current=0;for(var ge,Ee,ze;this._current<te.length;)if(Ue(te[this._current]))ge=this._current,Ee=this._consumeUnquotedIdentifier(te),me.push({type:v,value:Ee,start:ge});else if(Te[te[this._current]]!==void 0)me.push({type:Te[te[this._current]],value:te[this._current],start:this._current}),this._current++;else if(tt(te[this._current]))ze=this._consumeNumber(te),me.push(ze);else if(te[this._current]==="[")ze=this._consumeLBracket(te),me.push(ze);else if(te[this._current]==='"')ge=this._current,Ee=this._consumeQuotedIdentifier(te),me.push({type:A,value:Ee,start:ge});else if(te[this._current]==="'")ge=this._current,Ee=this._consumeRawStringLiteral(te),me.push({type:Ce,value:Ee,start:ge});else if(te[this._current]==="`"){ge=this._current;var ft=this._consumeLiteral(te);me.push({type:Ce,value:ft,start:ge})}else if(Qe[te[this._current]]!==void 0)me.push(this._consumeOperator(te));else if(_e[te[this._current]]!==void 0)this._current++;else if(te[this._current]==="&")ge=this._current,this._current++,te[this._current]==="&"?(this._current++,me.push({type:ye,value:"&&",start:ge})):me.push({type:W,value:"&",start:ge});else if(te[this._current]==="|")ge=this._current,this._current++,te[this._current]==="|"?(this._current++,me.push({type:H,value:"Line truncated
`)}});oAe.exports=pl.Signers.V2});var v8=l((d$r,uAe)=>{var Hm=z(),Gur=Hm.util.inherit;Hm.Signers.V3=Gur(Hm.Signers.RequestSigner,{addAuthorization:function(e,r){var i=Hm.util.date.rfc822(r);this.request.headers["X-Amz-Date"]=i,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return Hm.util.arrayEach(this.headersToSign(),function(i){e.push(i.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,r=[];return Hm.util.arrayEach(this.headersToSign(),function(s){r.push(s.toLowerCase().trim()+":"+String(e[s]).trim())}),r.sort().join(`
`)+`
`},headersToSign:function(){var e=[];return Hm.util.each(this.request.headers,function(i){(i==="Host"||i==="Content-Encoding"||i.match(/^X-Amz/i))&&e.push(i)}),e},signature:function(e){return Hm.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),Hm.util.crypto.sha256(e.join(`
`))}});uAe.exports=Hm.Signers.V3});var mAe=l((y$r,pAe)=>{var rR=z(),Our=rR.util.inherit;v8();rR.Signers.V3Https=Our(rR.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}});pAe.exports=rR.Signers.V3Https});var k8=l((h$r,cAe)=>{var IA=z(),TA={},iR=[],Vur=50,lAe="aws4_request";cAe.exports={createScope:function(e,r,i){return[e.substr(0,8),r,i,lAe].join("/")},getSigningKey:function(e,r,i,s,a){var o=IA.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),n=[o,r,i,s].join("_");if(a=a!==!1,a&&n in TA)return TA[n];var u=IA.util.crypto.hmac("AWS4"+e.secretAccessKey,r,"buffer"),p=IA.util.crypto.hmac(u,i,"buffer"),m=IA.util.crypto.hmac(p,s,"buffer"),d=IA.util.crypto.hmac(m,lAe,"buffer");return a&&(TA[n]=d,iR.push(n),iR.length>Vur&&delete TA[iR.shift()]),d},emptyCache:function(){TA={},iR=[]}}});var hAe=l((b$r,dAe)=>{var Sn=z(),yAe=k8(),jur=Sn.util.inherit,sR="presigned-expires";Sn.Signers.V4=jur(Sn.Signers.RequestSigner,{constructor:function(e,r,i){Sn.Signers.RequestSigner.call(this,e),this.serviceName=r,i=i||{},this.signatureCache=typeof i.signatureCache=="boolean"?i.signatureCache:!0,this.operation=i.operation,this.signatureVersion=i.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,r){var i=Sn.util.date.iso8601(r).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,i):this.addHeaders(e,i),this.request.headers.Authorization=this.authorization(e,i)},addHeaders:function(e,r){this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,r){var i=this.credentialString(r),s={"X-Amz-Date":r,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+i,"X-Amz-Expires":this.request.headers[sR],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(s["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(s["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(s["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(s["Cache-Control"]=this.request.headers["Cache-Control"]),Sn.util.each.call(this,this.request.headers,function(o,n){if(o!==sR&&this.isSignableHeader(o)){var u=o.toLowerCase();u.indexOf("x-amz-meta-")===0?s[u]=n:u.indexOf("x-amz-")===0&&(s[o]=n)}});var a=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=a+Sn.util.queryParamsToString(s)},authorization:function(e,r){var i=[],s=this.credentialString(r);return i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+s),i.push("SignedHeaders="+this.signedHeaders()),i.push("Signature="+this.signature(e,r)),i.join(", ")},signature:function(e,r){var i=yAe.getSigningKey(e,r.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return Sn.util.crypto.hmac(i,this.stringToSign(r),"hex")},stringToSign:function(e){var r=[];return r.push("AWS4-HMAC-SHA256"),r.push(e),r.push(this.credentialString(e)),r.push(this.hexEncodedHash(this.canonicalString())),r.join(`
`)},canonicalString:function(){var e=[],r=this.request.pathname();return this.serviceName!=="s3"&&this.signatureVersion!=="s3v4"&&(r=Sn.util.uriEscapePath(r)),e.push(this.request.method),e.push(r),e.push(this.request.search()),e.push(this.canonicalHeaders()+`
`),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join(`
`)},canonicalHeaders:function(){var e=[];Sn.util.each.call(this,this.request.headers,function(i,s){e.push([i,s])}),e.sort(function(i,s){return i[0].toLowerCase()<s[0].toLowerCase()?-1:1});var r=[];return Sn.util.arrayEach.call(this,e,function(i){var s=i[0].toLowerCase();if(this.isSignableHeader(s)){var a=i[1];if(typeof a=="undefined"||a===null||typeof a.toString!="function")throw Sn.util.error(new Error("Header "+s+" contains invalid value"),{code:"InvalidHeader"});r.push(s+":"+this.canonicalHeaderValues(a.toString()))}}),r.join(`
`)},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return Sn.util.each.call(this,this.request.headers,function(r){r=r.toLowerCase(),this.isSignableHeader(r)&&e.push(r)}),e.sort().join(";")},credentialString:function(e){return yAe.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return Sn.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",sR,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return e.toLowerCase().indexOf("x-amz-")===0?!0:this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[sR]}});dAe.exports=Sn.Signers.V4});var gAe=l((g$r,bAe)=>{var Jm=z(),zur=Jm.util.inherit;Jm.Signers.S3=zur(Jm.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,r){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=Jm.util.date.rfc822(r)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var i=this.sign(e.secretAccessKey,this.stringToSign()),s="AWS "+e.accessKeyId+":"+i;this.request.headers.Authorization=s},stringToSign:function(){var e=this.request,r=[];r.push(e.method),r.push(e.headers["Content-MD5"]||""),r.push(e.headers["Content-Type"]||""),r.push(e.headers["presigned-expires"]||"");var i=this.canonicalizedAmzHeaders();return i&&r.push(i),r.push(this.canonicalizedResource()),r.join(`
`)},canonicalizedAmzHeaders:function(){var e=[];Jm.util.each(this.request.headers,function(i){i.match(/^x-amz-/i)&&e.push(i)}),e.sort(function(i,s){return i.toLowerCase()<s.toLowerCase()?-1:1});var r=[];return Jm.util.arrayEach.call(this,e,function(i){r.push(i.toLowerCase()+":"+String(this.request.headers[i]))}),r.join(`
`)},canonicalizedResource:function(){var e=this.request,r=e.path.split("?"),i=r[0],s=r[1],a="";if(e.virtualHostedBucket&&(a+="/"+e.virtualHostedBucket),a+=i,s){var o=[];Jm.util.arrayEach.call(this,s.split("&"),function(n){var u=n.split("=")[0],p=n.split("=")[1];if(this.subResources[u]||this.responseHeaders[u]){var m={name:u};p!==void 0&&(this.subResources[u]?m.value=p:m.value=decodeURIComponent(p)),o.push(m)}}),o.sort(function(n,u){return n.name<u.name?-1:1}),o.length&&(s=[],Jm.util.arrayEach(o,function(n){n.value===void 0?s.push(n.name):s.push(n.name+"="+n.value)}),a+="?"+s.join("&"))}return a},sign:function(e,r){return Jm.util.crypto.hmac(e,r,"base64","sha1")}});bAe.exports=Jm.Signers.S3});var fAe=l((S$r,SAe)=>{var Ao=z(),Kur=Ao.util.inherit,QS="presigned-expires";function Wur(t){var e=t.httpRequest.headers[QS],r=t.service.getSignerClass(t);if(delete t.httpRequest.headers["User-Agent"],delete t.httpRequest.headers["X-Amz-User-Agent"],r===Ao.Signers.V4){if(e>604800){var i="Presigning does not support expiry time greater than a week with SigV4 signing.";throw Ao.util.error(new Error,{code:"InvalidExpiryTime",message:i,retryable:!1})}t.httpRequest.headers[QS]=e}else if(r===Ao.Signers.S3){var s=t.service?t.service.getSkewCorrectedDate():Ao.util.date.getDate();t.httpRequest.headers[QS]=parseInt(Ao.util.date.unixTimestamp(s)+e,10).toString()}else throw Ao.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1})}function Hur(t){var e=t.httpRequest.endpoint,r=Ao.util.urlParse(t.httpRequest.path),i={};r.search&&(i=Ao.util.queryStringParse(r.search.substr(1)));var s=t.httpRequest.headers.Authorization.split(" ");if(s[0]==="AWS")s=s[1].split(":"),i.Signature=s.pop(),i.AWSAccessKeyId=s.join(":"),Ao.util.each(t.httpRequest.headers,function(n,u){n===QS&&(n="Expires"),n.indexOf("x-amz-meta-")===0&&(delete i[n],n=n.toLowerCase()),i[n]=u}),delete t.httpRequest.headers[QS],delete i.Authorization,delete i.Host;else if(s[0]==="AWS4-HMAC-SHA256"){s.shift();var a=s.join(" "),o=a.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=o,delete i.Expires}e.pathname=r.pathname,e.search=Ao.util.queryParamsToString(i)}Ao.Signers.Presign=Kur({sign:function(e,r,i){if(e.httpRequest.headers[QS]=r||3600,e.on("build",Wur),e.on("sign",Hur),e.removeListener("afterBuild",Ao.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",Ao.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),i)e.build(function(){this.response.error?i(this.response.error):i(null,Ao.util.urlFormat(e.httpRequest.endpoint))});else{if(e.build(),e.response.error)throw e.response.error;return Ao.util.urlFormat(e.httpRequest.endpoint)}}});SAe.exports=Ao.Signers.Presign});var NAe=l(()=>{var aR=z();aR.Signers.Bearer=aR.util.inherit(aR.Signers.RequestSigner,{constructor:function(e){aR.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.headers.Authorization="Bearer "+e.token}})});var IAe=l(()=>{var Qm=z(),Jur=Qm.util.inherit;Qm.Signers.RequestSigner=Jur({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}});Qm.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return Qm.Signers.V2;case"v3":return Qm.Signers.V3;case"s3v4":return Qm.Signers.V4;case"v4":return Qm.Signers.V4;case"s3":return Qm.Signers.S3;case"v3https":return Qm.Signers.V3Https;case"bearer":return Qm.Signers.Bearer}throw new Error("Unknown signing version "+e)};nAe();v8();mAe();hAe();gAe();fAe();NAe()});var TAe=l(()=>{var jp=z();jp.ParamValidator=jp.util.inherit({constructor:function(e){(e===!0||e===void 0)&&(e={min:!0}),this.validation=e},validate:function(e,r,i){if(this.errors=[],this.validateMember(e,r||{},i||"params"),this.errors.length>1){var s=this.errors.join(`
* `);throw s="There were "+this.errors.length+` validation errors:
* `+s,jp.util.error(new Error(s),{code:"MultipleValidationErrors",errors:this.errors})}else{if(this.errors.length===1)throw this.errors[0];return!0}},fail:function(e,r){this.errors.push(jp.util.error(new Error(r),{code:e}))},validateStructure:function(e,r,i){if(e.isDocument)return!0;this.validateType(r,i,["object"],"structure");for(var s,a=0;e.required&&a<e.required.length;a++){s=e.required[a];var o=r[s];o==null&&this.fail("MissingRequiredParameter","Missing required key '"+s+"' in "+i)}for(s in r)if(!!Object.prototype.hasOwnProperty.call(r,s)){var n=r[s],u=e.members[s];if(u!==void 0){var p=[i,s].join(".");this.validateMember(u,n,p)}else n!=null&&this.fail("UnexpectedParameter","Unexpected key '"+s+"' found in "+i)}return!0},validateMember:function(e,r,i){switch(e.type){case"structure":return this.validateStructure(e,r,i);case"list":return this.validateList(e,r,i);case"map":return this.validateMap(e,r,i);default:return this.validateScalar(e,r,i)}},validateList:function(e,r,i){if(this.validateType(r,i,[Array])){this.validateRange(e,r.length,i,"list member count");for(var s=0;s<r.length;s++)this.validateMember(e.member,r[s],i+"["+s+"]")}},validateMap:function(e,r,i){if(this.validateType(r,i,["object"],"map")){var s=0;for(var a in r)!Object.prototype.hasOwnProperty.call(r,a)||(this.validateMember(e.key,a,i+"[key='"+a+"']"),this.validateMember(e.value,r[a],i+"['"+a+"']"),s++);this.validateRange(e,s,i,"map member count")}},validateScalar:function(e,r,i){switch(e.type){case null:case void 0:case"string":return this.validateString(e,r,i);case"base64":case"binary":return this.validatePayload(r,i);case"integer":case"float":return this.validateNumber(e,r,i);case"boolean":return this.validateType(r,i,["boolean"]);case"timestamp":return this.validateType(r,i,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+i)}},validateString:function(e,r,i){var s=["string"];e.isJsonValue&&(s=s.concat(["number","object","boolean"])),r!==null&&this.validateType(r,i,s)&&(this.validateEnum(e,r,i),this.validateRange(e,r.length,i,"string length"),this.validatePattern(e,r,i),this.validateUri(e,r,i))},validateUri:function(e,r,i){e.location==="uri"&&r.length===0&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+i)},validatePattern:function(e,r,i){this.validation.pattern&&e.pattern!==void 0&&(new RegExp(e.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+e.pattern+"/ for "+i))},validateRange:function(e,r,i,s){this.validation.min&&e.min!==void 0&&r<e.min&&this.fail("MinRangeError","Expected "+s+" >= "+e.min+", but found "+r+" for "+i),this.validation.max&&e.max!==void 0&&r>e.max&&this.fail("MaxRangeError","Expected "+s+" <= "+e.max+", but found "+r+" for "+i)},validateEnum:function(e,r,i){this.validation.enum&&e.enum!==void 0&&e.enum.indexOf(r)===-1&&this.fail("EnumError","Found string value of "+r+", but expected "+e.enum.join("|")+" for "+i)},validateType:function(e,r,i,s){if(e==null)return!1;for(var a=!1,o=0;o<i.length;o++){if(typeof i[o]=="string"){if(typeof e===i[o])return!0}else if(i[o]instanceof RegExp){if((e||"").toString().match(i[o]))return!0}else{if(e instanceof i[o]||jp.util.isType(e,i[o]))return!0;!s&&!a&&(i=i.slice()),i[o]=jp.util.typeName(i[o])}a=!0}var n=s;n||(n=i.join(", ").replace(/,([^,]+)$/,", or$1"));var u=n.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+u+" "+n),!1},validateNumber:function(e,r,i){if(r!=null){if(typeof r=="string"){var s=parseFloat(r);s.toString()===r&&(r=s)}this.validateType(r,i,["number"])&&this.validateRange(e,r,i,"numeric value")}},validatePayload:function(e,r){if(e!=null&&typeof e!="string"&&!(e&&typeof e.byteLength=="number")){if(jp.util.isNode()){var i=jp.util.stream.Stream;if(jp.util.Buffer.isBuffer(e)||e instanceof i)return}else if(typeof Blob!==void 0&&e instanceof Blob)return;var s=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e){for(var a=0;a<s.length;a++)if(jp.util.isType(e,s[a])||jp.util.typeName(e.constructor)===s[a])return}this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})});var AAe=l((k$r,C8)=>{var Qur=["The AWS SDK for JavaScript (v2) is in maintenance mode.",` SDK releases are limited to address critical bug fixes and security issues only.
`,"Please migrate your code to use AWS SDK for JavaScript (v3).","For more information, check the blog post at https://a.co/cUPnyil"].join(`
`);C8.exports={suppress:!1};function $ur(){typeof process!="undefined"&&(typeof process.env=="object"&&typeof process.env.AWS_EXECUTION_ENV!="undefined"&&process.env.AWS_EXECUTION_ENV.indexOf("AWS_Lambda_")===0||typeof process.env=="object"&&typeof process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE!="undefined"||typeof process.emitWarning=="function"&&process.emitWarning(Qur,{type:"NOTE"}))}setTimeout(function(){C8.exports.suppress||$ur()},0)});var z=l((C$r,vAe)=>{var ml={util:Ia()},Xur={};Xur.toString();vAe.exports=ml;ml.util.update(ml,{VERSION:"2.1692.0",Signers:{},Protocol:{Json:OD(),Query:i8(),Rest:lA(),RestJson:o8(),RestXml:u8()},XML:{Builder:NTe(),Parser:null},JSON:{Builder:FD(),Parser:BD()},Model:{Api:d8(),Operation:p8(),Shape:mA(),Paginator:m8(),ResourceWaiter:c8()},apiLoader:RTe(),EndpointCache:PTe().EndpointCache});b8();BTe();GTe();$D();XTe();tAe();iAe();aAe();IAe();TAe();AAe();ml.events=new ml.SequentialExecutor;ml.util.memoizedProperty(ml,"endpointCache",function(){return new ml.EndpointCache(ml.config.endpointCacheSize)},!0)});var PAe=l(dpr=>{dr(dpr);yr(dpr,{v1:()=>epr,v3:()=>npr,v4:()=>ppr,v5:()=>lpr})});var Ia=l((W$r,wAe)=>{var op,Rt={environment:"nodejs",engine:function(){if(Rt.isBrowser()&&typeof navigator!="undefined")return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=Rt.environment,r="aws-sdk-"+e+"/"+z().VERSION;return e==="nodejs"&&(r+=" "+Rt.engine()),r},uriEscape:function(e){var r=encodeURIComponent(e);return r=r.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),r=r.replace(/[*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()}),r},uriEscapePath:function(e){var r=[];return Rt.arrayEach(e.split("/"),function(i){r.push(Rt.uriEscape(i))}),r.join("/")},urlParse:function(e){return Rt.url.parse(e)},urlFormat:function(e){return Rt.url.format(e)},queryStringParse:function(e){return Rt.querystring.parse(e)},queryParamsToString:function(e){var r=[],i=Rt.uriEscape,s=Object.keys(e).sort();return Rt.arrayEach(s,function(a){var o=e[a],n=i(a),u=n+"=";if(Array.isArray(o)){var p=[];Rt.arrayEach(o,function(m){p.push(i(m))}),u=n+"="+p.sort().join("&"+n+"=")}else o!=null&&(u=n+"="+i(o));r.push(u)}),r.join("&")},readFileSync:function(e){return Rt.isBrowser()?null:require("fs").readFileSync(e,"utf-8")},base64:{encode:function(e){if(typeof e=="number")throw Rt.error(new Error("Cannot base64 encode number "+e));if(e===null||typeof e=="undefined")return e;var r=Rt.buffer.toBuffer(e);return r.toString("base64")},decode:function(e){if(typeof e=="number")throw Rt.error(new Error("Cannot base64 decode number "+e));return e===null||typeof e=="undefined"?e:Rt.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(t,e){return typeof Rt.Buffer.from=="function"&&Rt.Buffer.from!==Uint8Array.from?Rt.Buffer.from(t,e):new Rt.Buffer(t,e)},alloc:function(t,e,r){if(typeof t!="number")throw new Error("size passed to alloc must be a number.");if(typeof Rt.Buffer.alloc=="function")return Rt.Buffer.alloc(t,e,r);var i=new Rt.Buffer(t);return e!==void 0&&typeof i.fill=="function"&&i.fill(e,void 0,void 0,r),i},toStream:function(e){Rt.Buffer.isBuffer(e)||(e=Rt.buffer.toBuffer(e));var r=new Rt.stream.Readable,i=0;return r._read=function(s){if(i>=e.length)return r.push(null);var a=i+s;a>e.length&&(a=e.length),r.push(e.slice(i,a)),i=a},r},concat:function(t){var e=0,r=0,i=null,s;for(s=0;s<t.length;s++)e+=t[s].length;for(i=Rt.buffer.alloc(e),s=0;s<t.length;s++)t[s].copy(i,r),r+=t[s].length;return i}},string:{byteLength:function(e){if(e==null)return 0;if(typeof e=="string"&&(e=Rt.buffer.toBuffer(e)),typeof e.byteLength=="number")return e.byteLength;if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")return require("fs").lstatSync(e.path).size;throw Rt.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var r,i={};return Rt.arrayEach(e.split(/\r?\n/),function(s){s=s.split(/(^|\s)[;#]/)[0].trim();var a=s[0]==="["&&s[s.length-1]==="]";if(a){if(r=s.substring(1,s.length-1),r==="__proto__"||r.split(/\s/)[1]==="__proto__")throw Rt.error(new Error("Cannot load profile name '"+r+"' from shared ini file."))}else if(r){var o=s.indexOf("="),n=0,u=s.length-1,p=o!==-1&&o!==n&&o!==u;if(p){var m=s.substring(0,o).trim(),d=s.substring(o+1).trim();i[r]=i[r]||{},i[r][m]=d}}}),i}},fn:{noop:function(){},callback:function(t){if(t)throw t},makeAsync:function(e,r){return r&&r<=e.length?e:function(){var i=Array.prototype.slice.call(arguments,0),s=i.pop(),a=e.apply(null,i);s(a)}}},date:{getDate:function(){return op||(op=z()),op.config.systemClockOffset?new Date(new Date().getTime()+op.config.systemClockOffset):new Date},iso8601:function(e){return e===void 0&&(e=Rt.date.getDate()),e.toISOString().replace( Line truncated
`)[0],i.request(s+p,e,function(m,d){if(m){i.disableFetchToken=m.statusCode!==401,r(vo.util.error(m,{message:"EC2 Metadata creds request returned error"}));return}try{var y=JSON.parse(d);r(null,y)}catch(c){r(c)}})})},loadCredentials:function(e){var r=this;if(r.loadCredentialsCallbacks.push(e),r.loadCredentialsCallbacks.length>1)return;function i(s,a){for(var o;(o=r.loadCredentialsCallbacks.shift())!==void 0;)o(s,a)}r.disableFetchToken?r.fetchCredentials({},i):r.fetchMetadataToken(function(s,a){if(s){if(s.code==="TimeoutError")r.disableFetchToken=!0;else if(s.retryable===!0){i(vo.util.error(s,{message:"EC2 Metadata token request returned error"}));return}else if(s.statusCode===400){i(vo.util.error(s,{message:"EC2 Metadata token request returned 400"}));return}}var o={};a&&(o.headers={"x-aws-ec2-metadata-token":a}),r.fetchCredentials(o,i)})}});ske.exports=vo.MetadataService});var nke=l(()=>{var Iu=z();oke();Iu.EC2MetadataCredentials=Iu.util.inherit(Iu.Credentials,{constructor:function(e){Iu.Credentials.call(this),e=e?Iu.util.copy(e):{},e=Iu.util.merge({maxRetries:this.defaultMaxRetries},e),e.httpOptions||(e.httpOptions={}),e.httpOptions=Iu.util.merge({timeout:this.defaultTimeout,connectTimeout:this.defaultConnectTimeout},e.httpOptions),this.metadataService=new Iu.MetadataService(e),this.logger=e.logger||Iu.config&&Iu.config.logger},defaultTimeout:1e3,defaultConnectTimeout:1e3,defaultMaxRetries:3,originalExpiration:void 0,refresh:function(e){this.coalesceRefresh(e||Iu.util.fn.callback)},load:function(e){var r=this;r.metadataService.loadCredentials(function(i,s){i?r.hasLoadedCredentials()?(r.extendExpirationIfExpired(),e()):e(i):(r.setCredentials(s),r.extendExpirationIfExpired(),e())})},hasLoadedCredentials:function(){return this.AccessKeyId&&this.secretAccessKey},extendExpirationIfExpired:function(){if(this.needsRefresh()){this.originalExpiration=this.originalExpiration||this.expireTime,this.expired=!1;var e=15*60+Math.floor(Math.random()*5*60),r=Iu.util.date.getDate().getTime();this.expireTime=new Date(r+e*1e3),this.logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted again at "+this.expireTime+`
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`)}},setCredentials:function(e){var r=Iu.util.date.getDate().getTime(),i=new Date(e.Expiration);this.expired=r>=i,this.metadata=e,this.accessKeyId=e.AccessKeyId,this.secretAccessKey=e.SecretAccessKey,this.sessionToken=e.Token,this.expireTime=i}})});var cke=l(()=>{var Umr=require("fs"),ko=z(),B8="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",dR="AWS_CONTAINER_CREDENTIALS_FULL_URI",uke="AWS_CONTAINER_AUTHORIZATION_TOKEN",G8="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Bmr=["https:"],pke=["http:","https:"],mke=["localhost","127.0.0.1","169.254.170.23"],Gmr="169.254.170.2";ko.RemoteCredentials=ko.util.inherit(ko.Credentials,{constructor:function(e){ko.Credentials.call(this),e=e?ko.util.copy(e):{},e.httpOptions||(e.httpOptions={}),e.httpOptions=ko.util.merge(this.httpOptions,e.httpOptions),ko.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function(){return Boolean(process&&process.env&&(process.env[B8]||process.env[dR]))},getECSFullUri:function(){if(process&&process.env){var e=process.env[B8],r=process.env[dR];if(e)return"http://"+Gmr+e;if(r){var i=ko.util.urlParse(r);if(pke.indexOf(i.protocol)<0)throw ko.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+pke.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"});if(Bmr.indexOf(i.protocol)<0&&mke.indexOf(i.hostname)<0)throw ko.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+mke.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"});return r}else throw ko.util.error(new Error("Variable "+B8+" or "+dR+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}else throw ko.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})},getECSAuthToken:function(){if(process&&process.env&&(process.env[dR]||process.env[G8])){if(!process.env[uke]&&process.env[G8])try{var e=Umr.readFileSync(process.env[G8]).toString();return e}catch(r){throw console.error("Error reading token file:",r),r}return process.env[uke]}},credsFormatIsValid:function(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function(e){return e.credentials&&(e=e.credentials),{expired:!1,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function(e,r){var i=new ko.HttpRequest(e);i.method="GET",i.headers.Accept="application/json";var s=this.getECSAuthToken();s&&(i.headers.Authorization=s),ko.util.handleRequestWithRetries(i,this,r)},refresh:function(e){this.coalesceRefresh(e||ko.util.fn.callback)},load:function(e){var r=this,i;try{i=this.getECSFullUri()}catch(s){e(s);return}this.request(i,function(s,a){if(!s)try{a=JSON.parse(a);var o=r.formatCreds(a);if(!r.credsFormatIsValid(o))throw ko.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"});ko.util.update(r,o)}catch(n){s=n}e(s,o)})}})});var dke=l(()=>{var lke=z();lke.ECSCredentials=lke.RemoteCredentials});var yke=l(()=>{var Ad=z();Ad.EnvironmentCredentials=Ad.util.inherit(Ad.Credentials,{constructor:function(e){Ad.Credentials.call(this),this.envPrefix=e,this.get(function(){})},refresh:function(e){if(e||(e=Ad.util.fn.callback),!process||!process.env){e(Ad.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}for(var r=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"],i=[],s=0;s<r.length;s++){var a="";if(this.envPrefix&&(a=this.envPrefix+"_"),i[s]=process.env[a+r[s]],!i[s]&&r[s]!=="SESSION_TOKEN"){e(Ad.util.error(new Error("Variable "+a+r[s]+" not set."),{code:"EnvironmentCredentialsProviderFailure"}));return}}this.expired=!1,Ad.Credentials.apply(this,i),e()}})});var hke=l(()=>{var vd=z();vd.FileSystemCredentials=vd.util.inherit(vd.Credentials,{constructor:function(e){vd.Credentials.call(this),this.filename=e,this.get(function(){})},refresh:function(e){e||(e=vd.util.fn.callback);try{var r=JSON.parse(vd.util.readFileSync(this.filename));if(vd.Credentials.call(this,r),!this.accessKeyId||!this.secretAccessKey)throw vd.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"});this.expired=!1,e()}catch(i){e(i)}}})});var gke=l(()=>{var Co=z(),Omr=cl(),bke=Co.util.iniLoader,Vmr="us-east-1";Co.SharedIniFileCredentials=Co.util.inherit(Co.Credentials,{constructor:function(e){Co.Credentials.call(this),e=e||{},this.filename=e.filename,this.profile=e.profile||process.env.AWS_PROFILE||Co.util.defaultProfile,this.disableAssumeRole=Boolean(e.disableAssumeRole),this.preferStaticCredentials=Boolean(e.preferStaticCredentials),this.tokenCodeFn=e.tokenCodeFn||null,this.httpOpti Line truncated
`);return r.length?ub.util.error(new Error,{code:"InvalidParameter",message:r}):!0}})});var Wwe=l(()=>{var Kwe=z(),Plr=wE();zwe();var wlr=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];Kwe.util.update(Kwe.RDS.prototype,{setupRequestListeners:function(e){Plr.setupRequestListeners(this,e,wlr)}})});var Jwe=l((kii,Hwe)=>{Hwe.exports={version:"2.0",metadata:{apiVersion:"2013-01-10",endpointPrefix:"rds",protocol:"query",protocols:["query"],serviceAbbreviation:"Amazon RDS",serviceFullName:"Amazon Relational Database Service",serviceId:"RDS",signatureVersion:"v4",uid:"rds-2013-01-10",xmlNamespace:"http://rds.amazonaws.com/doc/2013-01-10/",auth:["aws.auth#sigv4"]},operations:{AddSourceIdentifierToSubscription:{input:{type:"structure",required:["SubscriptionName","SourceIdentifier"],members:{SubscriptionName:{},SourceIdentifier:{}}},output:{resultWrapper:"AddSourceIdentifierToSubscriptionResult",type:"structure",members:{EventSubscription:{shape:"S4"}}}},AddTagsToResource:{input:{type:"structure",required:["ResourceName","Tags"],members:{ResourceName:{},Tags:{shape:"S9"}}}},AuthorizeDBSecurityGroupIngress:{input:{type:"structure",required:["DBSecurityGroupName"],members:{DBSecurityGroupName:{},CIDRIP:{},EC2SecurityGroupName:{},EC2SecurityGroupId:{},EC2SecurityGroupOwnerId:{}}},output:{resultWrapper:"AuthorizeDBSecurityGroupIngressResult",type:"structure",members:{DBSecurityGroup:{shape:"Sd"}}}},CopyDBSnapshot:{input:{type:"structure",required:["SourceDBSnapshotIdentifier","TargetDBSnapshotIdentifier"],members:{SourceDBSnapshotIdentifier:{},TargetDBSnapshotIdentifier:{}}},output:{resultWrapper:"CopyDBSnapshotResult",type:"structure",members:{DBSnapshot:{shape:"Sk"}}}},CreateDBInstance:{input:{type:"structure",required:["DBInstanceIdentifier","AllocatedStorage","DBInstanceClass","Engine","MasterUsername","MasterUserPassword"],members:{DBName:{},DBInstanceIdentifier:{},AllocatedStorage:{type:"integer"},DBInstanceClass:{},Engine:{},MasterUsername:{},MasterUserPassword:{},DBSecurityGroups:{shape:"Sp"},VpcSecurityGroupIds:{shape:"Sq"},AvailabilityZone:{},DBSubnetGroupName:{},PreferredMaintenanceWindow:{},DBParameterGroupName:{},BackupRetentionPeriod:{type:"integer"},PreferredBackupWindow:{},Port:{type:"integer"},MultiAZ:{type:"boolean"},EngineVersion:{},AutoMinorVersionUpgrade:{type:"boolean"},LicenseModel:{},Iops:{type:"integer"},OptionGroupName:{},CharacterSetName:{},PubliclyAccessible:{type:"boolean"}}},output:{resultWrapper:"CreateDBInstanceResult",type:"structure",members:{DBInstance:{shape:"St"}}}},CreateDBInstanceReadReplica:{input:{type:"structure",required:["DBInstanceIdentifier","SourceDBInstanceIdentifier"],members:{DBInstanceIdentifier:{},SourceDBInstanceIdentifier:{},DBInstanceClass:{},AvailabilityZone:{},Port:{type:"integer"},AutoMinorVersionUpgrade:{type:"boolean"},Iops:{type:"integer"},OptionGroupName:{},PubliclyAccessible:{type:"boolean"}}},output:{resultWrapper:"CreateDBInstanceReadReplicaResult",type:"structure",members:{DBInstance:{shape:"St"}}}},CreateDBParameterGroup:{input:{type:"structure",required:["DBParameterGroupName","DBParameterGroupFamily","Description"],members:{DBParameterGroupName:{},DBParameterGroupFamily:{},Description:{}}},output:{resultWrapper:"CreateDBParameterGroupResult",type:"structure",members:{DBParameterGroup:{shape:"S1c"}}}},CreateDBSecurityGroup:{input:{type:"structure",required:["DBSecurityGroupName","DBSecurityGroupDescription"],members:{DBSecurityGroupName:{},DBSecurityGroupDescription:{}}},output:{resultWrapper:"CreateDBSecurityGroupResult",type:"structure",members:{DBSecurityGroup:{shape:"Sd"}}}},CreateDBSnapshot:{input:{type:"structure",required:["DBSnapshotIdentifier","DBInstanceIdentifier"],members:{DBSnapshotIdentifier:{},DBInstanceIdentifier:{}}},output:{resultWrapper:"CreateDBSnapshotResult",type:"structure",members:{DBSnapshot:{shape:"Sk"}}}},CreateDBSubnetGroup:{input:{type:"structure",required:["DBSubnetGroupName","DBSubnetGroupDescription","SubnetIds"],members:{DBSubnetGroupName:{},DBSubnetGroupDescription:{},SubnetIds:{shape:"S1i"}}},output:{resultWrapper:"CreateDBSubnetGroupResult",type:"structure",members:{DBSubnetGroup:{shape:"S11"}}}},CreateEventSubscription:{input:{type:"structure",required:["SubscriptionName","SnsTopicArn"],members:{SubscriptionName:{},SnsTopicArn:{},SourceType:{},EventCategories:{shape:"S6"},SourceIds:{shape:"S5"},Enabled:{type:"boolean"}}},output:{resultWrapper:"CreateEventSubscriptionResult",type:"structure",members:{EventSubscription:{shape:"S4"}}}},CreateOptionGroup:{input:{type:"structure",required:["OptionGroupName","EngineName","MajorEngineVersion","OptionGroupDescription"],members:{OptionGroupName:{},EngineName:{},MajorEngineVersion:{},OptionGroupDescription:{}}},output:{resultWrapper:"CreateOptionGroupResult",type:"structure",members:{OptionGroup:{shape:"S1o"}}}},DeleteDBInstance:{input:{type:"structure",required:["DBInstanceIdentifier"],me Line truncated
You may want to use multi-regional ARN. The feature is not supported in current SDK. You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).`),Rs.util.error(new Error,{code:"InvalidARN",message:u})}if(o&&!n)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"ARN endpoint is not compatible with FIPS region"});if(s.indexOf("fips")>=0)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"FIPS region not allowed in ARN"});if(!i&&s!==a)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(i&&uLe.getEndpointSuffix(s)!==uLe.getEndpointSuffix(a))throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if(e._parsedArn.service==="s3-outposts"&&e.service.config.useDualstackEndpoint)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"Dualstack is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var r="AWS_S3_USE_ARN_REGION",i="s3_use_arn_region",s=!0,a=e.service._originalConfig||{};if(e.service.config.s3UseArnRegion!==void 0)return e.service.config.s3UseArnRegion;if(a.s3UseArnRegion!==void 0)s=a.s3UseArnRegion===!0;else if(Rs.util.isNode())if(process.env[r]){var o=process.env[r].trim().toLowerCase();if(["false","true"].indexOf(o)<0)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:r+" only accepts true or false. Got "+process.env[r],retryable:!1});s=o==="true"}else{var n={},u={};try{n=Rs.util.getProfilesFromSharedConfig(Rs.util.iniLoader),u=n[process.env.AWS_PROFILE||Rs.util.defaultProfile]}catch(p){}if(u[i]){if(["false","true"].indexOf(u[i].trim().toLowerCase())<0)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:i+" only accepts true or false. Got "+u[i],retryable:!1});s=u[i].trim().toLowerCase()==="true"}}return e.service.config.s3UseArnRegion=s,s},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw Rs.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},dnsCompatibleBucketName:function(e){var r=e,i=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),s=new RegExp(/(\d+\.){3}\d+/),a=new RegExp(/\.\./);return!!(r.match(i)&&!r.match(s)&&!r.match(a))}};nLe.exports=OE});var cLe=l((asi,pLe)=>{var Zi=z(),o9=Zi.util.string.byteLength,mLe=Zi.util.Buffer;Zi.S3.ManagedUpload=Zi.util.inherit({constructor:function(e){var r=this;Zi.SequentialExecutor.call(r),r.body=null,r.sliceFn=null,r.callback=null,r.parts={},r.completeInfo=[],r.fillQueue=function(){r.callback(new Error("Unsupported body payload "+typeof r.body))},r.configure(e)},configure:function(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),e.tags){if(!Array.isArray(e.tags))throw new Error("Tags must be specified as an array; "+typeof e.tags+" provided.");this.tags=e.tags}if(this.partSize<this.minPartSize)throw new Error("partSize must be greater than "+this.minPartSize);this.service=e.service,this.bindServiceObject(e.params),this.validateBody(),this.adjustTotalBytes()},leavePartsOnError:!1,queueSize:4,partSize:null,minPartSize:1024*1024*5,maxTotalParts:1e4,send:function(t){var e=this;e.failed=!1,e.callback=t||function(s){if(s)throw s};var r=!0;if(e.sliceFn)e.fillQueue=e.fillBuffer;else if(Zi.util.isNode()){var i=Zi.util.stream.Stream;e.body instanceof i&&(r=!1,e.fillQueue=e.fillStream,e.partBuffers=[],e.body.on("error",function(s){e.cleanup(s)}).on("readable",function(){e.fillQueue()}).on("end",function(){e.isDoneChunking=!0,e.numParts=e.totalPartNumbers,e.fillQueue.call(e),e.isDoneChunking&&e.totalPartNumbers>=1&&e.doneParts===e.numParts&&e.finishMultiPart()}))}r&&e.fillQueue.call(e)},abort:function(){var t=this;t.isDoneChunking===!0&&t.totalPartNumbers===1&&t.singlePart?t.singlePart.abort():t.cleanup(Zi.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,typeof e.body=="string")e.body=Zi.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=Zi.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var r=this;if(!r.service)r.service=new Zi.S3({params:e});else{var i=r.service,s=Zi.util.copy(i.config);s.signatureVersion=i.getSignatureVersion(),r.service=new i.constructor.__super__(s),r.service.config.params=Zi.util.merge(r.service.config.params Line truncated
`+r.join(`
`)),e)throw ar.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var r=this.getSignerClass();return this.config.s3DisableBodySigning===!0&&r===ar.Signers.V4&&e.httpRequest.endpoint.protocol==="https:"},setupRequestListeners:function(e){e.addListener("validateResponse",this.setExpiresString);var r=!0;if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,r),e.addListener("validate",this.optInUsEast1RegionalEndpoint,r),e.removeListener("validate",ar.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",ar.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",ar.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),e.operation!=="createBucket"&&Hp.isArnInParam(e,"Bucket")){e._parsedArn=ar.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),e._parsedArn.service==="s3"?(e.addListener("validate",Hp.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType),e.addListener("validate",this.validateArnRegion)):e._parsedArn.service==="s3-outposts"&&(e.addListener("validate",Hp.validateOutpostsAccessPointArn),e.addListener("validate",Hp.validateOutpostsArn),e.addListener("validate",Hp.validateArnRegion)),e.addListener("validate",Hp.validateArnAccount),e.addListener("validate",Hp.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),e.addListener("build",Hp.validatePopulateUriFromArn);return}e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),ar.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},validateScheme:function(t){var e=t.params,r=t.httpRequest.endpoint.protocol,i=e.SSECustomerKey||e.CopySourceSSECustomerKey;if(i&&r!=="https:"){var s="Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration";throw ar.util.error(new Error,{code:"ConfigError",message:s})}},validateBucketEndpoint:function(t){if(!t.params.Bucket&&t.service.config.s3BucketEndpoint){var e="Cannot send requests to root API with `s3BucketEndpoint` set.";throw ar.util.error(new Error,{code:"ConfigError",message:e})}},validateArnRegion:function(e){Hp.validateArnRegion(e,{allowFipsEndpoint:!0})},validateArnResourceType:function(e){var r=e._parsedArn.resource;if(r.indexOf("accesspoint:")!==0&&r.indexOf("accesspoint/")!==0)throw ar.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var r=e.service,i=r.getSignatureVersion(e),s=e.params&&e.params.Bucket,a=e.params&&e.params.Key,o=s&&s.indexOf("/");if(s&&o>=0){if(typeof a=="string"&&o>0){e.params=ar.util.copy(e.params);var n=s.substr(o+1)||"";e.params.Key=n+"/"+a,e.params.Bucket=s.substr(0,o)}else if(i==="v4"){var u="Bucket names cannot contain forward slashes. Bucket: "+s;throw ar.util.error(new Error,{code:"InvalidBucket",message:u})}}},isValidAccelerateOperation:function(e){var r=["createBucket","deleteBucket","listBuckets"];return r.indexOf(e)===-1},optInUsEast1RegionalEndpoint:function(e){var r=e.service,i=r.config;if(i.s3UsEast1RegionalEndpoint=Glr(r._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(r._originalConfig||{}).endpoint&&e.httpRequest.region==="us-east-1"&&i.s3UsEast1RegionalEndpoint==="regional"&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var s=i.endpoint.indexOf(".amazonaws.com"),a=i.endpoint.substring(0,s)+".us-east-1"+i.endpoint.substring(s);e.httpRequest.updateEndpoint(a)}},populateURI:function(e){var r=e.httpRequest,i=e.params.Bucket,s=e.service,a=r.endpoint;if(i&&!s.pathStyleBucketName(i)){s.config.useAccelerateEndpoint&&s.isValidAccelerateOperation(e.operation)?s.config.useDualstackEndpoint?a.hostname=i+".s3-accelerate.dualstack.amazonaws.com":a.hostname=i+".s3-accelerate.amazonaws.com":s.config.s3BucketEndpoint||(a.hostname=i+"."+a.hostname);var o=a.port;o!==80&&o!==443?a.host=a.hostname+":"+a.port:a.host=a.hostname,r.virtualHostedBucket=i,s.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var r=e.httpRequest,i=r.virtualHostedBucket;if(i&&r.path){if(e.params&&e.params.Key){var s="/"+ar.util.uriEscapePath(e.params.Key);if(r.path.indexOf(s)===0&&(r.path.length===s.length||r.path[s. Line truncated
buckets and reverts to using conventional SigV4 for those.`,type:"boolean"},ForcePathStyle:{documentation:"Forces this client to use path-style addressing for buckets.",type:"boolean"},UseArnRegion:{documentation:"Enables this client to use an ARN's region when constructing an endpoint instead of the client's configured region.",type:"boolean"}}}});var fLe=l((psi,SLe)=>{SLe.exports={pagination:{ListBuckets:{input_token:"ContinuationToken",limit_key:"MaxBuckets",output_token:"ContinuationToken",result_key:"Buckets"},ListDirectoryBuckets:{input_token:"ContinuationToken",limit_key:"MaxDirectoryBuckets",output_token:"ContinuationToken",result_key:"Buckets"},ListMultipartUploads:{input_token:["KeyMarker","UploadIdMarker"],limit_key:"MaxUploads",more_results:"IsTruncated",output_token:["NextKeyMarker","NextUploadIdMarker"],result_key:["Uploads","CommonPrefixes"]},ListObjectVersions:{input_token:["KeyMarker","VersionIdMarker"],limit_key:"MaxKeys",more_results:"IsTruncated",output_token:["NextKeyMarker","NextVersionIdMarker"],result_key:["Versions","DeleteMarkers","CommonPrefixes"]},ListObjects:{input_token:"Marker",limit_key:"MaxKeys",more_results:"IsTruncated",output_token:"NextMarker || Contents[-1].Key",result_key:["Contents","CommonPrefixes"]},ListObjectsV2:{input_token:"ContinuationToken",limit_key:"MaxKeys",output_token:"NextContinuationToken",result_key:["Contents","CommonPrefixes"]},ListParts:{input_token:"PartNumberMarker",limit_key:"MaxParts",more_results:"IsTruncated",output_token:"NextPartNumberMarker",result_key:"Parts"}}}});var ILe=l((msi,NLe)=>{NLe.exports={version:2,waiters:{BucketExists:{delay:5,operation:"HeadBucket",maxAttempts:20,acceptors:[{expected:200,matcher:"status",state:"success"},{expected:301,matcher:"status",state:"success"},{expected:403,matcher:"status",state:"success"},{expected:404,matcher:"status",state:"retry"}]},BucketNotExists:{delay:5,operation:"HeadBucket",maxAttempts:20,acceptors:[{expected:404,matcher:"status",state:"success"}]},ObjectExists:{delay:5,operation:"HeadObject",maxAttempts:20,acceptors:[{expected:200,matcher:"status",state:"success"},{expected:404,matcher:"status",state:"retry"}]},ObjectNotExists:{delay:5,operation:"HeadObject",maxAttempts:20,acceptors:[{expected:404,matcher:"status",state:"success"}]}}}});var vLe=l((csi,TLe)=>{Y();var VE=z(),Vlr=VE.Service,ALe=VE.apiLoader;ALe.services.s3={};VE.S3=Vlr.defineService("s3",["2006-03-01"]);hLe();Object.defineProperty(ALe.services.s3,"2006-03-01",{get:function(){var e=gLe();return e.paginators=fLe().pagination,e.waiters=ILe().waiters,e},enumerable:!0,configurable:!0});TLe.exports=VE.S3});var kLe=l(()=>{var Jp=z(),pp=a9(),lsi=fA();Jp.util.update(Jp.S3Control.prototype,{setupRequestListeners:function(e){e.addListener("extractError",this.extractHostId),e.addListener("extractData",this.extractHostId),e.addListener("validate",this.validateAccountId);var r=pp.isArnInParam(e,"Bucket"),i=pp.isArnInParam(e,"Name");r?(e._parsedArn=Jp.util.ARN.parse(e.params.Bucket),e.addListener("validate",this.validateOutpostsBucketArn),e.addListener("validate",pp.validateOutpostsArn),e.addListener("afterBuild",this.addOutpostIdHeader)):i&&(e._parsedArn=Jp.util.ARN.parse(e.params.Name),e.addListener("validate",pp.validateOutpostsAccessPointArn),e.addListener("validate",pp.validateOutpostsArn),e.addListener("afterBuild",this.addOutpostIdHeader)),(r||i)&&(e.addListener("validate",this.validateArnRegion),e.addListener("validate",this.validateArnAccountWithParams,!0),e.addListener("validate",pp.validateArnAccount),e.addListener("validate",pp.validateArnService),e.addListener("build",this.populateParamFromArn,!0),e.addListener("build",this.populateUriFromArn),e.addListener("build",pp.validatePopulateUriFromArn)),e.params.OutpostId&&(e.operation==="createBucket"||e.operation==="listRegionalBuckets")&&e.addListener("build",this.populateEndpointForOutpostId)},addOutpostIdHeader:function(e){e.httpRequest.headers["x-amz-outpost-id"]=e._parsedArn.outpostId},validateOutpostsBucketArn:function(e){var r=e._parsedArn,i=r.resource["outpost".length];if(r.resource.split(i).length!==4)throw Jp.util.error(new Error,{code:"InvalidARN",message:"Bucket ARN should have two resources outpost/{outpostId}/bucket/{accesspointName}"});var s=r.resource.split(i)[3];if(!pp.dnsCompatibleBucketName(s)||s.match(/\./))throw Jp.util.error(new Error,{code:"InvalidARN",message:"Bucket ARN is not DNS compatible. Got "+s});e._parsedArn.bucket=s},populateParamFromArn:function(e){var r=e._parsedArn;pp.isArnInParam(e,"Bucket")?e.params.Bucket=r.bucket:pp.isArnInParam(e,"Name")&&(e.params.Name=r.accessPoint)},populateUriFromArn:function(e){var r=e._parsedArn,i=e.httpRequest.endpoint,s=e.service.config.s3UseArnRegion,a=e.service.config.useFipsEndpoint;i.hostname=["s3-outposts"+(a?"-fips":""),s?r.region:e.service.config.region,"amazonaws.com"].join("."),i.host=i.hostname},populateEndpointForOutpostId:function(e){var r=e.httpRequest.endpoint,i=e.service.config.useFipsEndpoint;r.ho Line truncated
You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).`})}}})});var k9e=l((vmi,v9e)=>{v9e.exports={version:"2.0",metadata:{apiVersion:"2015-10-07",endpointPrefix:"events",jsonVersion:"1.1",protocol:"json",protocols:["json"],serviceFullName:"Amazon EventBridge",serviceId:"EventBridge",signatureVersion:"v4",targetPrefix:"AWSEvents",uid:"eventbridge-2015-10-07",auth:["aws.auth#sigv4"]},operations:{ActivateEventSource:{input:{type:"structure",required:["Name"],members:{Name:{}}}},CancelReplay:{input:{type:"structure",required:["ReplayName"],members:{ReplayName:{}}},output:{type:"structure",members:{ReplayArn:{},State:{},StateReason:{}}}},CreateApiDestination:{input:{type:"structure",required:["Name","ConnectionArn","InvocationEndpoint","HttpMethod"],members:{Name:{},Description:{},ConnectionArn:{},InvocationEndpoint:{},HttpMethod:{},InvocationRateLimitPerSecond:{type:"integer"}}},output:{type:"structure",members:{ApiDestinationArn:{},ApiDestinationState:{},CreationTime:{type:"timestamp"},LastModifiedTime:{type:"timestamp"}}}},CreateArchive:{input:{type:"structure",required:["ArchiveName","EventSourceArn"],members:{ArchiveName:{},EventSourceArn:{},Description:{},EventPattern:{},RetentionDays:{type:"integer"}}},output:{type:"structure",members:{ArchiveArn:{},State:{},StateReason:{},CreationTime:{type:"timestamp"}}}},CreateConnection:{input:{type:"structure",required:["Name","AuthorizationType","AuthParameters"],members:{Name:{},Description:{},AuthorizationType:{},AuthParameters:{type:"structure",members:{BasicAuthParameters:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{shape:"S11"}}},OAuthParameters:{type:"structure",required:["ClientParameters","AuthorizationEndpoint","HttpMethod"],members:{ClientParameters:{type:"structure",required:["ClientID","ClientSecret"],members:{ClientID:{},ClientSecret:{shape:"S11"}}},AuthorizationEndpoint:{},HttpMethod:{},OAuthHttpParameters:{shape:"S15"}}},ApiKeyAuthParameters:{type:"structure",required:["ApiKeyName","ApiKeyValue"],members:{ApiKeyName:{},ApiKeyValue:{shape:"S11"}}},InvocationHttpParameters:{shape:"S15"}}}}},output:{type:"structure",members:{ConnectionArn:{},ConnectionState:{},CreationTime:{type:"timestamp"},LastModifiedTime:{type:"timestamp"}}}},CreateEndpoint:{input:{type:"structure",required:["Name","RoutingConfig","EventBuses"],members:{Name:{},Description:{},RoutingConfig:{shape:"S1p"},ReplicationConfig:{shape:"S1v"},EventBuses:{shape:"S1x"},RoleArn:{}}},output:{type:"structure",members:{Name:{},Arn:{},RoutingConfig:{shape:"S1p"},ReplicationConfig:{shape:"S1v"},EventBuses:{shape:"S1x"},RoleArn:{},State:{}}}},CreateEventBus:{input:{type:"structure",required:["Name"],members:{Name:{},EventSourceName:{},Description:{},KmsKeyIdentifier:{},DeadLetterConfig:{shape:"S28"},Tags:{shape:"S2a"}}},output:{type:"structure",members:{EventBusArn:{},Description:{},KmsKeyIdentifier:{},DeadLetterConfig:{shape:"S28"}}}},CreatePartnerEventSource:{input:{type:"structure",required:["Name","Account"],members:{Name:{},Account:{}}},output:{type:"structure",members:{EventSourceArn:{}}}},DeactivateEventSource:{input:{type:"structure",required:["Name"],members:{Name:{}}}},DeauthorizeConnection:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{ConnectionArn:{},ConnectionState:{},CreationTime:{type:"timestamp"},LastModifiedTime:{type:"timestamp"},LastAuthorizedTime:{type:"timestamp"}}}},DeleteApiDestination:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{}}},DeleteArchive:{input:{type:"structure",required:["ArchiveName"],members:{ArchiveName:{}}},output:{type:"structure",members:{}}},DeleteConnection:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{ConnectionArn:{},ConnectionState:{},CreationTime:{type:"timestamp"},LastModifiedTime:{type:"timestamp"},LastAuthorizedTime:{type:"timestamp"}}}},DeleteEndpoint:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{}}},DeleteEventBus:{input:{type:"structure",required:["Name"],members:{Name:{}}}},DeletePartnerEventSource:{input:{type:"structure",required:["Name","Account"],members:{Name:{},Account:{}}}},DeleteRule:{input:{type:"structure",required:["Name"],members:{Name:{},EventBusName:{},Force:{type:"boolean"}}}},DescribeApiDestination:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{ApiDestinationArn:{},Name:{},Description:{},ApiDestinationState:{},ConnectionArn:{},InvocationEndpoint:{},HttpMethod:{},InvocationRateLimitPerSecond:{type:"integer"},CreationTime:{type:"timestamp"},LastModifiedTime:{type:"timestamp"}}}},DescribeArchive:{input:{type:"structure",required:["ArchiveName"],members:{ArchiveName:{}}},output:{type:"structure",members:{ArchiveArn:{},ArchiveName:{},EventSourceArn:{},Description:{},EventPattern:{},State:{},StateReason:{},RetentionDays:{type:"integer" Line truncated
`&&t[a]!=="\r";a++)u+=t[a];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),a--),!_Sr(u)){let d;return u.trim().length===0?d="Invalid space after '<'.":d="Tag '"+u+"' is an invalid name.",Ea("InvalidTag",d,Qn(t,a))}let p=MSr(t,a);if(p===!1)return Ea("InvalidAttr","Attributes for '"+u+"' have open quote.",Qn(t,a));let m=p.value;if(a=p.index,m[m.length-1]==="/"){let d=a-m.length;m=m.substring(0,m.length-1);let y=Hbt(m,e);if(y===!0)i=!0;else return Ea(y.err.code,y.err.msg,Qn(t,d+y.err.line))}else if(n)if(p.tagClosed){if(m.trim().length>0)return Ea("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Qn(t,o));{let d=r.pop();if(u!==d.tagName){let y=Qn(t,d.tagStartPos);return Ea("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+y.line+", col "+y.col+") instead of closing tag '"+u+"'.",Qn(t,o))}r.length==0&&(s=!0)}}else return Ea("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Qn(t,a));else{let d=Hbt(m,e);if(d!==!0)return Ea(d.err.code,d.err.msg,Qn(t,a-m.length+d.err.line));if(s===!0)return Ea("InvalidXml","Multiple possible root nodes found.",Qn(t,a));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:o}),i=!0}for(a++;a<t.length;a++)if(t[a]==="<")if(t[a+1]==="!"){a++,a=Wbt(t,a);continue}else if(t[a+1]==="?"){if(a=Kbt(t,++a),a.err)return a}else break;else if(t[a]==="&"){let d=LSr(t,a);if(d==-1)return Ea("InvalidChar","char '&' is not expected.",Qn(t,a));a=d}else if(s===!0&&!zbt(t[a]))return Ea("InvalidXml","Extra text at the end",Qn(t,a));t[a]==="<"&&a--}}else{if(zbt(t[a]))continue;return Ea("InvalidChar","char '"+t[a]+"' is not expected.",Qn(t,a))}if(i){if(r.length==1)return Ea("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Qn(t,r[0].tagStartPos));if(r.length>0)return Ea("InvalidXml","Invalid '"+JSON.stringify(r.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ea("InvalidXml","Start tag expected.",1);return!0};function zbt(t){return t===" "||t===" "||t===`
`||t==="\r"}function Kbt(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Ea("InvalidXml","XML declaration allowed only at the start of the document.",Qn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Wbt(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var FSr='"',USr="'";function MSr(t,e){let r="",i="",s=!1;for(;e<t.length;e++){if(t[e]===FSr||t[e]===USr)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){s=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:s}}var BSr=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Hbt(t,e){let r=d9.getAllMatches(t,BSr),i={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ea("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",EA(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ea("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",EA(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ea("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",EA(r[s]));let a=r[s][2];if(!GSr(a))return Ea("InvalidAttr","Attribute '"+a+"' is an invalid name.",EA(r[s]));if(!i.hasOwnProperty(a))i[a]=1;else return Ea("InvalidAttr","Attribute '"+a+"' is repeated.",EA(r[s]))}return!0}function OSr(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function LSr(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,OSr(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Ea(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function GSr(t){return d9.isName(t)}function _Sr(t){return d9.isName(t)}function Qn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function EA(t){return t.startIndex+t[1].length}});var Qbt=l(h9=>{var Jbt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t}},VSr=function(t){return Object.assign({},Jbt,t)};h9.buildOptions=VSr;h9.defaultOptions=Jbt});var Zbt=l((VTi,$bt)=>{"use strict";var Xbt=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]}):this.child.push({[e.tagname]:e.child})}};$bt.exports=Xbt});var egt=l((jTi,Ybt)=>{var jSr=xL();function XSr(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let i=1,s=!1,a=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!a){if(s&&WSr(t,e))e+=7,[entityName,val,e]=zSr(t,e+1),val.indexOf("&")===-1&&(r[$Sr(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(s&&HSr(t,e))e+=8;else if(s&&JSr(t,e))e+=8;else if(s&&QSr(t,e))e+=9;else if(KSr)a=!0;else throw new Error("Invalid DOCTYPE");i++,o=""}else if(t[e]===">"){if(a?t[e-1]==="-"&&t[e-2]==="-"&&(a=!1,i--):i--,i===0)break}else t[e]==="["?s=!0:o+=t[e];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function zSr(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let i=t[e++],s="";for(;e<t.length&&t[e]!==i;e++)s+=t[e];return[r,s,e]}function KSr(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function WSr(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function HSr(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function JSr(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function QSr(t,e){return t[e+1]==="!"&&t[e+2]==="N"&&t[e+Line truncated
`);let e=new PA("!xml"),r=e,i="",s="";for(let a=0;a<t.length;a++)if(t[a]==="<")if(t[a+1]==="/"){let n=pb(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,n).trim();if(this.options.removeNSPrefix){let d=u.indexOf(":");d!==-1&&(u=u.substr(d+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&(i=this.saveTextToParentTag(i,r,s));let p=s.substring(s.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${u}>`);let m=0;p&&this.options.unpairedTags.indexOf(p)!==-1?(m=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):m=s.lastIndexOf("."),s=s.substring(0,m),r=this.tagsNodeStack.pop(),i="",a=n}else if(t[a+1]==="?"){let n=S9(t,a,!1,"?>");if(!n)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,s),!(this.options.ignoreDeclaration&&n.tagName==="?xml"||this.options.ignorePiTags)){let u=new PA(n.tagName);u.add(this.options.textNodeName,""),n.tagName!==n.tagExp&&n.attrExpPresent&&(u[":@"]=this.buildAttributesMap(n.tagExp,s,n.tagName)),this.addChild(r,u,s)}a=n.closeIndex+1}else if(t.substr(a+1,3)==="!--"){let n=pb(t,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){let u=t.substring(a+4,n-2);i=this.saveTextToParentTag(i,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}a=n}else if(t.substr(a+1,2)==="!D"){let n=sfr(t,a);this.docTypeEntities=n.entities,a=n.i}else if(t.substr(a+1,2)==="!["){let n=pb(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,n);if(i=this.saveTextToParentTag(i,r,s),this.options.cdataPropName)r.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let p=this.parseTextData(u,r.tagname,s,!0,!1,!0);p==null&&(p=""),r.add(this.options.textNodeName,p)}a=n+2}else{let n=S9(t,a,this.options.removeNSPrefix),u=n.tagName,p=n.tagExp,m=n.attrExpPresent,d=n.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,s,!1));let y=r;if(y&&this.options.unpairedTags.indexOf(y.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),u!==e.tagname&&(s+=s?"."+u:u),this.isItStopNode(this.options.stopNodes,s,u)){let c="";if(p.length>0&&p.lastIndexOf("/")===p.length-1)a=n.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)a=n.closeIndex;else{let g=this.readStopNodeData(t,u,d+1);if(!g)throw new Error(`Unexpected end of ${u}`);a=g.i,c=g.tagContent}let h=new PA(u);u!==p&&m&&(h[":@"]=this.buildAttributesMap(p,s,u)),c&&(c=this.parseTextData(c,u,s,!0,m,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),h.add(this.options.textNodeName,c),this.addChild(r,h,s)}else{if(p.length>0&&p.lastIndexOf("/")===p.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),p=u):p=p.substr(0,p.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let c=new PA(u);u!==p&&m&&(c[":@"]=this.buildAttributesMap(p,s,u)),this.addChild(r,c,s),s=s.substr(0,s.lastIndexOf("."))}else{let c=new PA(u);this.tagsNodeStack.push(r),u!==p&&m&&(c[":@"]=this.buildAttributesMap(p,s,u)),this.addChild(r,c,s),r=c}i="",a=d}}else i+=t[a];return e.child};function cfr(t,e,r){let i=this.options.updateTag(e.tagname,r,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e))}var lfr=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function dfr(t,e,r,i){return t&&(i===void 0&&(i=Object.keys(e.child).length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function yfr(t,e,r){let i="*."+r;for(let s in t){let a=t[s];if(i===a||e===a)return!0}return!1}function gfr(t,e,r=">"){let i,s="";for(let a=e;a<t.length;a++){let o=t[a];if(i)o===i&&(i="");else if(o==='"'||o==="'")i=o;else if(o===r[0])if(r[1]){if(t[a+1]===r[1])return{data:s,index:a}}else return{data:s,index:a};else o===" "&&(o=" ");s+=o}}function pb(t,e,r,i){let s=t.indexOf(e,r);if(s===-1)throw new Error(i);return s+e.length-1}function S9(t,e,r,i=">"){let s=gfr(t,e+1,i);if(!s)return;let a=s.data,o=s.index,n=a.search(/\s/),u=a,p=!0;if(n!==-1&&(u=a.substr(0,n).replace(/\s\s*$/,""),a=a.substr(n+1)),r){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1),p=u!==s.data.substr(m+1))}return{tagName:u,tagExp:a,closeIndex:o,attrExpPresent:p}}function hfr(t,e,r){let i=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let a=pb(t,">",r,`${e} is not closed`);if(t.substring(r+2,a).trim()===e&&(s--,s===0))return{tagContent:t.substring(i,r),i:a};r=a}else if(t[r+1]==="?")r=pb(t,"?>",r+1,"StopNode is not closed.");else if(t.substr(r+1,3)==="!--")r=pb(t,"-->",r+3,"StopNode isLine truncated
`;function xfr(t,e){let r="";return e.format&&e.indentBy.length>0&&(r=Cfr),dgt(t,e,"",r)}function dgt(t,e,r,i){let s="",a=!1;for(let o=0;o<t.length;o++){let n=t[o],u=qfr(n),p="";if(r.length===0?p=u:p=`${r}.${u}`,u===e.textNodeName){let h=n[u];Dfr(p,e)||(h=e.tagValueProcessor(u,h),h=hgt(h,e)),a&&(s+=i),s+=h,a=!1;continue}else if(u===e.cdataPropName){a&&(s+=i),s+=`<![CDATA[${n[u][0][e.textNodeName]}]]>`,a=!1;continue}else if(u===e.commentPropName){s+=i+`<!--${n[u][0][e.textNodeName]}-->`,a=!0;continue}else if(u[0]==="?"){let h=ygt(n[":@"],e),g=u==="?xml"?"":i,S=n[u][0][e.textNodeName];S=S.length!==0?" "+S:"",s+=g+`<${u}${S}${h}?>`,a=!0;continue}let m=i;m!==""&&(m+=e.indentBy);let d=ygt(n[":@"],e),y=i+`<${u}${d}`,c=dgt(n[u],e,p,m);e.unpairedTags.indexOf(u)!==-1?e.suppressUnpairedNode?s+=y+">":s+=y+"/>":(!c||c.length===0)&&e.suppressEmptyNode?s+=y+"/>":c&&c.endsWith(">")?s+=y+`>${c}${i}</${u}>`:(s+=y+">",c&&i!==""&&(c.includes("/>")||c.includes("</"))?s+=i+e.indentBy+c+i:s+=c,s+=`</${u}>`),a=!0}return s}function qfr(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(i!==":@")return i}}function ygt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){let s=e.attributeValueProcessor(i,t[i]);s=hgt(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Dfr(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let i in e.stopNodes)if(e.stopNodes[i]===t||e.stopNodes[i]==="*."+r)return!0;return!1}function hgt(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}lgt.exports=xfr});var Sgt=l(($Ti,ggt)=>{"use strict";var Rfr=bgt(),Efr={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Ed(t){this.options=Object.assign({},Efr,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Mfr),this.processTextOrObjNode=Pfr,this.options.format?(this.indentate=wfr,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ed.prototype.build=function(t){return this.options.preserveOrder?Rfr(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)};Ed.prototype.j2x=function(t,e){let r="",i="";for(let s in t)if(typeof t[s]!="undefined")if(t[s]===null)s[0]==="?"?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)i+=this.buildTextValNode(t[s],s,"",e);else if(typeof t[s]!="object"){let a=this.isAttribute(s);if(a)r+=this.buildAttrPairStr(a,""+t[s]);else if(s===this.options.textNodeName){let o=this.options.tagValueProcessor(s,""+t[s]);i+=this.replaceEntitiesValue(o)}else i+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){let a=t[s].length,o="";for(let n=0;n<a;n++){let u=t[s][n];typeof u=="undefined"||(u===null?s[0]==="?"?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?o+=this.j2x(u,e+1).val:o+=this.processTextOrObjNode(u,s,e):o+=this.buildTextValNode(u,s,"",e))}this.options.oneListGroup&&(o=this.buildObjectNode(o,s,"",e)),i+=o}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){let a=Object.keys(t[s]),o=a.length;for(let n=0;n<o;n++)r+=this.buildAttrPairStr(a[n],""+t[s][a[n]])}else i+=this.processTextOrObjNode(t[s],s,e);return{attrStr:r,val:i}};Ed.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function Pfr(t,e,r){let i=this.j2x(t,r+1);return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,r):this.buildObjectNode(i.val,e,i.attrStr,r)}Ed.prototype.buildObjectNode=function(t,e,r,i){if(t==="")return e[0]==="?"?this.indentate(i)+"<"+e+r+"?"+this.tagEndChar:this.indentate(i)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,a="";return e[0]==="?"&&(a="?",s=""),r&&t.indexOf("<")===-1?this.indentate(i)+"<"+e+r+a+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&a.length===0?this.indentate(i)+`<!--${t}-->`+this.newLine:this.indentate(i)+"<"+e+r+a+this.tagEndChar+t+this.indentate(i)+s}};Ed.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};Ed.prototype.buildTextValNode=function(t,e,r,i){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(i)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(i)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(i)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};Ed.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function wfr(t){return this.options.indentBy.repeat(t)}function Mfr(t){return t.startsWith(this.options.attributeNamePrefix)?t.substr(this.attrPrefixLen):!1}ggt.exports=Ed});var Ngt=l((XTi,fgt)=>{"use strict";var Lfr=y9(),_fr=cgt(),Ffr=Sgt();fgt.exports={XMLParser:_fr,XMLValidator:Lfr,XMLBuilder:Ffr}});var mb=l((ZTi,Igt)=>{"use strict";var Tgt=require("fs"),rf=require("crypto"),{XMLParser:Ufr,XMLBuilder:Bfr}=Ngt(),Gfr=new Ufr({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1,trimValues:!1}),Ofr=new Bfr;function wA(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}var f9=function(t,e){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(e?wA(i).toLowerCase():i);return r.sort(function(s,a){return s=s.toLowerCase(),a=a.toLowerCase(),s===a?0:s>a?1:-1})},N9=function(t,e){var r,i,s,a=[],o=f9(t);for(r=0;r<o.length;r++)i=o[r],s=t[i]===void 0||t[i]===null?"":""+t[i],i=e?wA(i).toLowerCase():wA(i),s=wA(s)||"",a.push(i+"="+s);return a.join("&")},Vfr=["content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],jfr=function(t){var e={};for(var r in t){var i=r.toLowerCase();(i.indexOf("x-cos-")>-1||i.indexOf("x-ci-")>-1||Vfr.indexOf(i)>-1)&&(e[r]=t[r])}return e},zfr=function(t){t=t||{};var e=t.SecretId,r=t.SecretKey,i=t.KeyTime,s=(t.method||t.Method||"get").toLowerCase(),a=MA(t.Query||t.params||{}),o=jfr(MA(t.Headers||t.headers||{Line truncated
`);v=Buffer.from(v,"utf8");var A=rf.createHash("sha1").update(v).digest("hex"),D=["sha1",g,A,""].join(`
`),G=rf.createHmac("sha1",I).update(D).digest("hex"),E=["q-sign-algorithm="+c,"q-ak="+h,"q-sign-time="+g,"q-key-time="+S,"q-header-list="+N,"q-url-param-list="+T,"q-signature="+G].join("&");return E},Kfr=function(t){if(!t.SecretId)return console.error("missing param SecretId");if(!t.SecretKey)return console.error("missing param SecretKey");if(!t.Bucket)return console.error("missing param Bucket");var e=t.Bucket,r=e.substr(0,e.lastIndexOf("-")),i=e.substr(e.lastIndexOf("-")+1),s=Math.round(Math.random()*Math.pow(2,32)),a=Math.round(Date.now()/1e3),o=a+(t.Expires===void 0?900:t.Expires),n="/"+i+"/"+r+"/"+encodeURIComponent((t.Key||"").replace(/(^\/*)/g,"")).replace(/%2F/g,"/"),u="a="+i+"&b="+r+"&k="+t.SecretId+"&t="+a+"&e="+o+"&r="+s+"&f="+n,p=rf.createHmac("sha1",t.SecretKey).update(u).digest(),m=Buffer.concat([p,Buffer.from(u)]).toString("base64");return m},Wfr=function(t){var e=this.options.CopySourceParser;if(e)return e(t);var r=t.match(/^([^.]+-\d+)\.cos(v6|-cdc|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return r?{Bucket:r[1],Region:r[3],Key:r[7]}:null},vgt=function(){},kgt=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&t[r]!==void 0&&t[r]!==null&&(e[r]=t[r]);return e},Hfr="#text",I9=function(t){if(!!Cgt(t))for(let r in t){var e=t[r];typeof e=="string"?r===Hfr&&delete t[r]:Array.isArray(e)?e.forEach(function(i){I9(i)}):Cgt(e)&&I9(e)}},Jfr=function(t){var e=Gfr.parse(t);return I9(e),e},Qfr=function(t){var e=Ofr.build(t);return e},$fr=function(t,e){return rf.createHash("md5").update(t).digest(e||"hex")},Xfr=function(t,e,r,i){if(t)try{var s=Tgt.createReadStream(t,{start:e,end:r-1});s.isSdkCreated=!0,i(s)}catch(a){}else i(null)},Zfr=function(t,e,r){r=r||vgt,t&&(e instanceof Buffer||typeof e=="string")?r(Zm.md5(e)):r()},Yfr=function(t,e){var r=rf.createHash("md5");t.on("data",function(i){r.update(i)}),t.on("error",function(i){e(Zm.error(i))}),t.on("end",function(){var i=r.digest("hex");e(null,i)})};function MA(t){return xgt(t,function(e){return typeof e=="object"&&e!==null?MA(e):e})}function eNr(t,e,r){return t&&e in t?t[e]:r}function T9(t,e){return qgt(e,function(r,i){t[i]=e[i]}),t}function qL(t){return t instanceof Array}function Cgt(t){return Object.prototype.toString.call(t)==="[object Object]"}function tNr(t,e){for(var r=!1,i=0;i<t.length;i++)if(e===t[i]){r=!0;break}return r}function rNr(t){return qL(t)?t:[t]}function qgt(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function xgt(t,e){var r=qL(t)?[]:{};for(var i in t)t.hasOwnProperty(i)&&(r[i]=e(t[i],i));return r}function iNr(t,e){var r=qL(t),i=r?[]:{};for(var s in t)t.hasOwnProperty(s)&&e(t[s],s)&&(r?i.push(t[s]):i[s]=t[s]);return i}var sNr=function(t){var e,r,i,s=[];for(e=0,r=t.length/2;e<r;e++)i=parseInt(t[e*2]+t[e*2+1],16),s.push(i);return Buffer.from(s).toString("base64")},aNr=function(){var t=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},oNr=function(t,e){var r=e.Bucket,i=e.Region,s=e.Key;if(t.indexOf("Bucket")>-1||t==="deleteMultipleObject"||t==="multipartList"||t==="listObjectVersions"){if(!r)return"Bucket";if(!i)return"Region"}else if(t.indexOf("Object")>-1||t.indexOf("multipart")>-1||t==="sliceUploadFile"||t==="abortUploadTask"||t==="uploadFile"){if(!r)return"Bucket";if(!i)return"Region";if(!s)return"Key"}return!1},Dgt=function(t,e){if(e=T9({},e),t!=="getAuth"&&t!=="getV4Auth"&&t!=="getObjectUrl"){var r=e.Headers||{};if(e&&typeof e=="object"){(function(){for(var s in e)e.hasOwnProperty(s)&&s.indexOf("x-cos-")>-1&&(r[s]=e[s])})();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encrypt Line truncated
`:""},this._extScope=e,this._scope=new Qp.Scope({parent:e}),this._nodes=[new VSt]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let i=this._extScope.value(e,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,i,s){let a=this._scope.toName(r);return i!==void 0&&s&&(this._constants[a.str]=i),this._leafNode(new _St(e,a,i)),a}const(e,r,i){return this._def(Qp.varKinds.const,e,r,i)}let(e,r,i){return this._def(Qp.varKinds.let,e,r,i)}var(e,r,i){return this._def(Qp.varKinds.var,e,r,i)}assign(e,r,i){return this._leafNode(new sz(e,r,i))}add(e,r){return this._leafNode(new FSt(e,ai.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==bi.nil&&this._leafNode(new OSt(e)),this}object(...e){let r=["{"];for(let[i,s]of e)r.length>1&&r.push(","),r.push(i),(i!==s||this.opts.es5)&&(r.push(":"),bi.addCodeArg(r,s));return r.push("}"),new bi._Code(r)}if(e,r,i){if(this._blockNode(new ec(e)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ec(e))}else(){return this._elseNode(new BA)}endIf(){return this._endBlockNode(ec,BA)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new zSt(e),r)}forRange(e,r,i,s,a=this.opts.es5?Qp.varKinds.var:Qp.varKinds.let){let o=this._scope.toName(e);return this._for(new KSt(a,o,r,i),()=>s(o))}forOf(e,r,i,s=Qp.varKinds.const){let a=this._scope.toName(e);if(this.opts.es5){let o=r instanceof bi.Name?r:this.var("_arr",r);return this.forRange("_i",0,bi._`${o}.length`,n=>{this.var(a,bi._`${o}[${n}]`),i(a)})}return this._for(new az("of",s,a,r),()=>i(a))}forIn(e,r,i,s=this.opts.es5?Qp.varKinds.var:Qp.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,bi._`Object.keys(${r})`,i);let a=this._scope.toName(e);return this._for(new az("in",s,a,r),()=>i(a))}endFor(){return this._endBlockNode(df)}label(e){return this._leafNode(new USt(e))}break(e){return this._leafNode(new BSt(e))}return(e){let r=new VL;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(VL)}try(e,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new WSt;if(this._blockNode(s),this.code(e),r){let a=this.name("e");this._currNode=s.catch=new jL(a),r(a)}return i&&(this._currNode=s.finally=new zL,this.code(i)),this._endBlockNode(jL,zL)}throw(e){return this._leafNode(new GSt(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||e!==void 0&&i!==e)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=bi.nil,i,s){return this._blockNode(new OL(e,r,i)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(OL)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let i=this._currNode;if(i instanceof e||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof ec))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};ai.CodeGen=HSt;function hb(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function BL(t,e){return e instanceof bi._CodeOrName?hb(t,e.names):t}function lf(t,e,r){if(t instanceof bi.Name)return i(t);if(!s(t))return t;return new bi._Code(t._items.reduce((a,o)=>(o instanceof bi.Name&&(o=i(o)),o instanceof bi._Code?a.push(...o._items):a.push(o),a),[]));function i(a){let o=r[a.str];return o===void 0||e[a.str]!==1?a:(delete e[a.str],o)}function s(a){return a instanceof bi._Code&&a._items.some(o=>o instanceof bi.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function HIr(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function jSt(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:bi._`!${oz(t)}`}ai.not=jSt;var JIr=JSt(ai.operators.AND);function QIr(...t){return t.reduce(JIr)}ai.and=QIr;var $Ir=JSt(ai.operators.OR);function XIr(...t){return t.reduce($Ir)}ai.or=XIr;function JSt(t){return(e,r)=>e===bi.nil?r:r===bi.nil?e:bi._`${oz(e)} ${t} ${oz(r)}`}function oz(t){return t instanceof bi.Name?t:bi._`(${t})Line truncated
|| (${o} == "string" && ${s} && ${s} == +${s})`).assign(n,Br._`+${s}`);return;case"integer":i.elseIf(Br._`${o} === "boolean" || ${s} === null
|| (${o} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(n,Br._`+${s}`);return;case"boolean":i.elseIf(Br._`${s} === "false" || ${s} === 0 || ${s} === null`).assign(n,!1).elseIf(Br._`${s} === "true" || ${s} === 1`).assign(n,!0);return;case"null":i.elseIf(Br._`${s} === "" || ${s} === 0 || ${s} === false`),i.assign(n,null);return;case"array":i.elseIf(Br._`${o} === "string" || ${o} === "number"
|| ${o} === "boolean" || ${s} === null`).assign(n,Br._`[${s}]`)}}}function MAr({gen:t,parentData:e,parentDataProperty:r},i){t.if(Br._`${e} !== undefined`,()=>t.assign(Br._`${e}[${r}]`,i))}function gz(t,e,r,i=VA.Correct){let s=i===VA.Correct?Br.operators.EQ:Br.operators.NEQ,a;switch(t){case"null":return Br._`${e} ${s} null`;case"array":a=Br._`Array.isArray(${e})`;break;case"object":a=Br._`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=o(Br._`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=o();break;default:return Br._`typeof ${e} ${s} ${t}`}return i===VA.Correct?a:Br.not(a);function o(n=Br.nil){return Br.and(Br._`typeof ${e} == "number"`,n,r?Br._`isFinite(${e})`:Br.nil)}}qo.checkDataType=gz;function hz(t,e,r,i){if(t.length===1)return gz(t[0],e,r,i);let s,a=Gft.toHash(t);if(a.array&&a.object){let o=Br._`typeof ${e} != "object"`;s=a.null?o:Br._`!${e} || ${o}`,delete a.null,delete a.array,delete a.object}else s=Br.nil;a.number&&delete a.integer;for(let o in a)s=Br.and(s,gz(o,e,r,i));return s}qo.checkDataTypes=hz;var LAr={message:({schema:t})=>Br.str`should be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?Br._`{type: ${t}}`:Br._`{type: ${e}}`};function bz(t){let e=_Ar(t);DAr.reportError(e,LAr)}qo.reportTypeError=bz;function _Ar(t){let{gen:e,data:r,schema:i}=t,s=Gft.schemaRefOrVal(t,i,"type");return{gen:e,keyword:"type",data:r,schema:i.type,schemaCode:s,schemaValue:s,parentSchema:i,params:{},it:t}}});var bf=l(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});jA.getData=void 0;var jft=gf(),ZL=js(),zA=GA(),Pa=Hr(),Sz=$p(),FAr=gb(),zft=class{constructor(e,r,i){if(BAr(e,r,i),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=i,this.data=e.data,this.schema=e.schema[i],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=ZL.schemaRefOrVal(e,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",Kft(this.$data,e));else if(this.schemaCode=this.schemaValue,!UAr(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Sz.default.errors))}result(e,r,i){this.gen.if(Pa.not(e)),i?i():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.result(e,void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail(Pa._`${r} !== undefined && (${Pa.or(this.invalid$data(),e)})`)}error(e){(e?zA.reportExtraError:zA.reportError)(this,this.def.error)}$dataError(){zA.reportError(this,this.def.$dataError||zA.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');zA.resetErrorsCount(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,i=Pa.nil){this.gen.block(()=>{this.check$data(e,i),r()})}check$data(e=Pa.nil,r=Pa.nil){if(!this.$data)return;let{gen:i,schemaCode:s,schemaType:a,def:o}=this;i.if(Pa.or(Pa._`${s} === undefined`,r)),e!==Pa.nil&&i.assign(e,!0),(a.length||o.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==Pa.nil&&i.assign(e,!1)),i.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:i,def:s,it:a}=this;return Pa.or(o(),n());function o(){if(i.length){if(!(r instanceof Pa.Name))throw new Error("ajv implementation error");let u=Array.isArray(i)?i:[i];return Pa._`${jft.checkDataTypes(u,r,a.opts.strict,jft.DataType.Wrong)}`}return Pa.nil}function n(){if(s.validateSchema){let u=e.scopeValue("validate$data",{ref:s.validateSchema});return Pa._`!${u}(${r})`}return Pa.nil}}subschema(e,r){return FAr.applySubschema(this.it,e,r)}mergeEvaluated(e,r){let{it:i,gen:s}=this;!i.opts.unevaluated||(i.props!==!0&&e.props!==void 0&&(i.props=ZL.mergeEvaluated.props(s,e.props,i.props,r)),i.items!==!0&&e.items!==void 0&&(i.items=ZL.mergeEvaluated.items(s,e.items,i.items,r)))}mergeValidEvaluated(e,r){let{it:i,gen:s}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return s.if(r,()=>this.mergeEvaluated(e,Pa.Name)),!0}};jA.default=zft;function UAr(t,e,r=!1){return!e.length||e.some(i=>i==="array"?Array.isArray(t):i==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==i||r&&typeof t=="undefined")}function BAr({schema:t,opts:e,self:r},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a==null?void 0:a.some(o=>!Object.prototype.hasOwnProperty.call(t,o)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[s])){let n="keyword val Line truncated
missingProperty: ${i},
depsCount: ${e},
deps: ${r}}`};var Nkr={keyword:"dependencies",type:"object",schemaType:"object",error:ic.error,code(t){let[e,r]=fkr(t);kNt(t,e),CNt(t,r)}};function fkr({schema:t}){let e={},r={};for(let i in t){if(i==="__proto__")continue;let s=Array.isArray(t[i])?e:r;s[i]=t[i]}return[e,r]}function kNt(t,e=t.schema){let{gen:r,data:i,it:s}=t;if(Object.keys(e).length===0)return;let a=r.let("missing");for(let o in e){let n=e[o];if(n.length===0)continue;let u=ZA.propertyInData(r,i,o,s.opts.ownProperties);t.setParams({property:o,depsCount:n.length,deps:n.join(", ")}),s.allErrors?r.if(u,()=>{for(let p of n)ZA.checkReportMissingProp(t,p)}):(r.if(Jz._`${u} && (${ZA.checkMissingProp(t,n,a)})`),ZA.reportMissingProp(t,a),r.else())}}ic.validatePropertyDeps=kNt;function CNt(t,e=t.schema){let{gen:r,data:i,keyword:s,it:a}=t,o=r.name("valid");for(let n in e)Skr.alwaysValidSchema(a,e[n])||(r.if(ZA.propertyInData(r,i,n,a.opts.ownProperties),()=>{let u=t.subschema({keyword:s,schemaProp:n},o);t.mergeValidEvaluated(u,o)},()=>r.var(o,!0)),t.ok(o))}ic.validateSchemaDeps=CNt;ic.default=Nkr});var qNt=l(Qz=>{"use strict";Object.defineProperty(Qz,"__esModule",{value:!0});var $z=Hr(),Ikr=js(),Tkr={message:({params:t})=>$z.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>$z._`{propertyName: ${t.propertyName}}`},Akr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Tkr,code(t){let{gen:e,schema:r,data:i,it:s}=t;if(Ikr.alwaysValidSchema(s,r))return;let a=e.name("valid");e.forIn("key",i,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},a),e.if($z.not(a),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(a)}};Qz.default=Akr});var Yz=l(Xz=>{"use strict";Object.defineProperty(Xz,"__esModule",{value:!0});var p_=Xp(),tm=Hr(),vkr=$p(),kkr=gb(),Zz=js(),Ckr={message:"should NOT have additional properties",params:({params:t})=>tm._`{additionalProperty: ${t.additionalProperty}}`},xkr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ckr,code(t){let{gen:e,schema:r,parentSchema:i,data:s,errsCount:a,it:o}=t;if(!a)throw new Error("ajv implementation error");let{allErrors:n,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&Zz.alwaysValidSchema(o,r))return;let p=p_.allSchemaProperties(i.properties),m=p_.allSchemaProperties(i.patternProperties);d(),t.ok(tm._`${a} === ${vkr.default.errors}`);function d(){e.forIn("key",s,S=>{!p.length&&!m.length?h(S):e.if(y(S),()=>h(S))})}function y(S){let N;if(p.length>8){let T=Zz.schemaRefOrVal(o,i.properties,"properties");N=p_.isOwnProperty(e,T,S)}else p.length?N=tm.or(...p.map(T=>tm._`${S} === ${T}`)):N=tm.nil;return m.length&&(N=tm.or(N,...m.map(T=>tm._`${p_.usePattern(e,T)}.test(${S})`))),tm.not(N)}function c(S){e.code(tm._`delete ${s}[${S}]`)}function h(S){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){c(S);return}if(r===!1){t.setParams({additionalProperty:S}),t.error(),n||e.break();return}if(typeof r=="object"&&!Zz.alwaysValidSchema(o,r)){let N=e.name("valid");u.removeAdditional==="failing"?(g(S,N,!1),e.if(tm.not(N),()=>{t.reset(),c(S)})):(g(S,N),n||e.if(tm.not(N),()=>e.break()))}}function g(S,N,T){let I={keyword:"additionalProperties",dataProp:S,dataPropType:kkr.Type.Str};T===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(I,N)}}};Xz.default=xkr});var ENt=l(e7=>{"use strict";Object.defineProperty(e7,"__esModule",{value:!0});var qkr=bf(),DNt=Xp(),t7=js(),RNt=Yz(),Dkr={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:i,data:s,it:a}=t;a.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&RNt.default.code(new qkr.default(a,RNt.default,"additionalProperties"));let o=DNt.allSchemaProperties(r);for(let d of o)a.definedProperties.add(d);a.opts.unevaluated&&o.length&&a.props!==!0&&(a.props=t7.mergeEvaluated.props(e,t7.toHash(o),a.props));let n=o.filter(d=>!t7.alwaysValidSchema(a,r[d]));if(n.length===0)return;let u=e.name("valid");for(let d of n)p(d)?m(d):(e.if(DNt.propertyInData(e,s,d,a.opts.ownProperties)),m(d),a.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(d),t.ok(u);function p(d){return a.opts.useDefaults&&!a.compositeRule&&r[d].default!==void 0}function m(d){t.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};e7.default=Dkr});var wNt=l(r7=>{"use strict";Object.defineProperty(r7,"__esModule",{value:!0});var PNt=Xp(),m_=Hr(),Rkr=gb(),Ekr=vu(),Pkr=js(),wkr={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:i,parentSchema:s,it:a}=t,{opts:o}=a,n=PNt.schemaProperties(a,r);if(n.length===0)return;let u=o.strict&&!o.allowMatchingProperties&&s.properties,p=e.name("valid");a.props!==!0&&!(a.props instanceof m_.Name)&&(a.props=Pkr.evaluatedPropsToName(e,a.props));let{props:m}=a;d();function d(){for(let h of n)u&&y(h),a.allErrors?c(h):(e.var(p,!0),c(h),e.if(p))}function Line truncated
${e}`,OCr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),VCr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),jCr=(t,e,r)=>{let i=r===""?"":`with ${r.trim()}() `,s=GCr.bind(null,i,e.toString());Object.defineProperty(s,"name",VCr),Object.defineProperty(t,"toString",{...OCr,value:s})},zCr=(t,e,{ignoreNonConfigurable:r=!1}={})=>{let{name:i}=t;for(let s of Reflect.ownKeys(e))UCr(t,e,s,r);return BCr(t,e),jCr(t,e,i),t};oIt.exports=zCr});var pIt=l((Dvi,uIt)=>{"use strict";var KCr=nIt();uIt.exports=(t,e={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);let{wait:r=0,before:i=!1,after:s=!0}=e;if(!i&&!s)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let a,o,n=function(...u){let p=this,m=()=>{a=void 0,s&&(o=t.apply(p,u))},d=i&&!a;return clearTimeout(a),a=setTimeout(m,r),d&&(o=t.apply(p,u)),o};return KCr(n,t),n.cancel=()=>{a&&(clearTimeout(a),a=void 0)},n}});var YA=l((Rvi,mIt)=>{"use strict";var WCr="2.0.0",cIt=256,HCr=Number.MAX_SAFE_INTEGER||9007199254740991,JCr=16,QCr=cIt-6,$Cr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];mIt.exports={MAX_LENGTH:cIt,MAX_SAFE_COMPONENT_LENGTH:JCr,MAX_SAFE_BUILD_LENGTH:QCr,MAX_SAFE_INTEGER:HCr,RELEASE_TYPES:$Cr,SEMVER_SPEC_VERSION:WCr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ev=l((Evi,lIt)=>{"use strict";var XCr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};lIt.exports=XCr});var qf=l((ac,dIt)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:N7,MAX_SAFE_BUILD_LENGTH:ZCr,MAX_LENGTH:YCr}=YA(),e0r=ev();ac=dIt.exports={};var t0r=ac.re=[],r0r=ac.safeRe=[],zt=ac.src=[],i0r=ac.safeSrc=[],Kt=ac.t={},s0r=0,I7="[a-zA-Z0-9-]",a0r=[["\\s",1],["\\d",YCr],[I7,ZCr]],o0r=t=>{for(let[e,r]of a0r)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},Mr=(t,e,r)=>{let i=o0r(e),s=s0r++;e0r(t,s,e),Kt[t]=s,zt[s]=e,i0r[s]=i,t0r[s]=new RegExp(e,r?"g":void 0),r0r[s]=new RegExp(i,r?"g":void 0)};Mr("NUMERICIDENTIFIER","0|[1-9]\\d*");Mr("NUMERICIDENTIFIERLOOSE","\\d+");Mr("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${I7}*`);Mr("MAINVERSION",`(${zt[Kt.NUMERICIDENTIFIER]})\\.(${zt[Kt.NUMERICIDENTIFIER]})\\.(${zt[Kt.NUMERICIDENTIFIER]})`);Mr("MAINVERSIONLOOSE",`(${zt[Kt.NUMERICIDENTIFIERLOOSE]})\\.(${zt[Kt.NUMERICIDENTIFIERLOOSE]})\\.(${zt[Kt.NUMERICIDENTIFIERLOOSE]})`);Mr("PRERELEASEIDENTIFIER",`(?:${zt[Kt.NONNUMERICIDENTIFIER]}|${zt[Kt.NUMERICIDENTIFIER]})`);Mr("PRERELEASEIDENTIFIERLOOSE",`(?:${zt[Kt.NONNUMERICIDENTIFIER]}|${zt[Kt.NUMERICIDENTIFIERLOOSE]})`);Mr("PRERELEASE",`(?:-(${zt[Kt.PRERELEASEIDENTIFIER]}(?:\\.${zt[Kt.PRERELEASEIDENTIFIER]})*))`);Mr("PRERELEASELOOSE",`(?:-?(${zt[Kt.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${zt[Kt.PRERELEASEIDENTIFIERLOOSE]})*))`);Mr("BUILDIDENTIFIER",`${I7}+`);Mr("BUILD",`(?:\\+(${zt[Kt.BUILDIDENTIFIER]}(?:\\.${zt[Kt.BUILDIDENTIFIER]})*))`);Mr("FULLPLAIN",`v?${zt[Kt.MAINVERSION]}${zt[Kt.PRERELEASE]}?${zt[Kt.BUILD]}?`);Mr("FULL",`^${zt[Kt.FULLPLAIN]}$`);Mr("LOOSEPLAIN",`[v=\\s]*${zt[Kt.MAINVERSIONLOOSE]}${zt[Kt.PRERELEASELOOSE]}?${zt[Kt.BUILD]}?`);Mr("LOOSE",`^${zt[Kt.LOOSEPLAIN]}$`);Mr("GTLT","((?:<|>)?=?)");Mr("XRANGEIDENTIFIERLOOSE",`${zt[Kt.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Mr("XRANGEIDENTIFIER",`${zt[Kt.NUMERICIDENTIFIER]}|x|X|\\*`);Mr("XRANGEPLAIN",`[v=\\s]*(${zt[Kt.XRANGEIDENTIFIER]})(?:\\.(${zt[Kt.XRANGEIDENTIFIER]})(?:\\.(${zt[Kt.XRANGEIDENTIFIER]})(?:${zt[Kt.PRERELEASE]})?${zt[Kt.BUILD]}?)?)?`);Mr("XRANGEPLAINLOOSE",`[v=\\s]*(${zt[Kt.XRANGEIDENTIFIERLOOSE]})(?:\\.(${zt[Kt.XRANGEIDENTIFIERLOOSE]})(?:\\.(${zt[Kt.XRANGEIDENTIFIERLOOSE]})(?:${zt[Kt.PRERELEASELOOSE]})?${zt[Kt.BUILD]}?)?)?`);Mr("XRANGE",`^${zt[Kt.GTLT]}\\s*${zt[Kt.XRANGEPLAIN]}$`);Mr("XRANGELOOSE",`^${zt[Kt.GTLT]}\\s*${zt[Kt.XRANGEPLAINLOOSE]}$`);Mr("COERCEPLAIN",`(^|[^\\d])(\\d{1,${N7}})(?:\\.(\\d{1,${N7}}))?(?:\\.(\\d{1,${N7}}))?`);Mr("COERCE",`${zt[Kt.COERCEPLAIN]}(?:$|[^\\d])`);Mr("COERCEFULL",zt[Kt.COERCEPLAIN]+`(?:${zt[Kt.PRERELEASE]})?(?:${zt[Kt.BUILD]})?(?:$|[^\\d])`);Mr("COERCERTL",zt[Kt.COERCE],!0);Mr("COERCERTLFULL",zt[Kt.COERCEFULL],!0);Mr("LONETILDE","(?:~>?)");Mr("TILDETRIM",`(\\s*)${zt[Kt.LONETILDE]}\\s+`,!0);ac.tildeTrimReplace="$1~";Mr("TILDE",`^${zt[Kt.LONETILDE]}${zt[Kt.XRANGEPLAIN]}$`);Mr("TILDELOOSE",`^${zt[Kt.LONETILDE]}${zt[Kt.XRANGEPLAINLOOSE]}$`);Mr("LONECARET","(?:\\^)");Mr("CARETTRIM",`(\\s*)${zt[Kt.LONECARET]}\\s+`,!0);ac.caretTrimReplace="$1^";Mr("CARET",`^${zt[Kt.LONECARET]}${zt[Kt.XRANGEPLAIN]}$`);Mr("CARETLOOSE",`^${zt[Kt.LONECARET]}${zt[Kt.XRANGEPLAINLOOSE]}$`);Mr("COMPARATORLOOSE",`^${zt[Kt.GTLT]}\\s*(${zt[Kt.LOOSEPLAIN]})$|^$`);Mr("COMPARATOR",`^${zt[Kt.GTLT]}\\s*(${zt[Kt.FULLPLAIN]})$|^$`);Mr("COMPARATORTRIM",`(\\s*)${zt[Kt.GTLT]}\\s*(${zt[Kt.LOOSEPLAIN]}|${zt[Kt.XRANGEPLAIN]})`,!0);ac.comparatorTrimReplace="$1$2$3";Mr("HYPHENRANGE",`^\\s*(${zt[Kt.XRANGEPLAIN]})\\s+-\\s+(${zt[Kt.XRANGEPLine truncated
`,"\r","\0"],ADr=/[\x20-\x3A\x3C-\x7E]+/,vDr=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,kDr={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},CDr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xDr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tK=2147483647e3,qDr=0;function rK(t,e,r,i){for(var s=0;s<t.length;){var a=t.charCodeAt(s);if(a<=47||a>=58)break;s++}return s<e||s>r||!i&&s!=t.length?null:parseInt(t.substr(0,s),10)}function DDr(t){var e=t.split(":"),r=[0,0,0];if(e.length!==3)return null;for(var i=0;i<3;i++){var s=i==2,a=rK(e[i],1,2,s);if(a===null)return null;r[i]=a}return r}function RDr(t){t=String(t).substr(0,3).toLowerCase();var e=kDr[t];return e>=0?e:null}function pv(t){if(!!t){var e=t.split(vDr);if(!!e){for(var r=null,i=null,s=null,a=null,o=null,n=null,u=0;u<e.length;u++){var p=e[u].trim();if(!!p.length){var m;if(s===null&&(m=DDr(p),m)){r=m[0],i=m[1],s=m[2];continue}if(a===null&&(m=rK(p,1,2,!0),m!==null)){a=m;continue}if(o===null&&(m=RDr(p),m!==null)){o=m;continue}n===null&&(m=rK(p,2,4,!0),m!==null&&(n=m,n>=70&&n<=99?n+=1900:n>=0&&n<=69&&(n+=2e3)))}}if(!(a===null||o===null||n===null||s===null||a<1||a>31||n<1601||r>23||i>59||s>59))return new Date(Date.UTC(n,o,a,r,i,s))}}}function OAt(t){var e=t.getUTCDate();e=e>=10?e:"0"+e;var r=t.getUTCHours();r=r>=10?r:"0"+r;var i=t.getUTCMinutes();i=i>=10?i:"0"+i;var s=t.getUTCSeconds();return s=s>=10?s:"0"+s,xDr[t.getUTCDay()]+", "+e+" "+CDr[t.getUTCMonth()]+" "+t.getUTCFullYear()+" "+r+":"+i+":"+s+" GMT"}function Lf(t){return t==null?null:(t=t.trim().replace(/^\./,""),eK&&/[^\u0001-\u007f]/.test(t)&&(t=eK.toASCII(t)),t.toLowerCase())}function iK(t,e,r){if(t==null||e==null)return null;if(r!==!1&&(t=Lf(t),e=Lf(e)),t==e)return!0;if(NDr.isIP(t))return!1;var i=t.indexOf(e);return!(i<=0||t.length!==e.length+i||t.substr(i-1,1)!==".")}function VAt(t){if(!t||t.substr(0,1)!=="/")return"/";if(t==="/")return t;var e=t.lastIndexOf("/");return e===0?"/":t.slice(0,e)}function EDr(t){for(var e=0;e<GAt.length;e++){var r=t.indexOf(GAt[e]);r!==-1&&(t=t.substr(0,r))}return t}function PDr(t,e){t=EDr(t);var r=t.indexOf("=");if(e)r===0&&(t=t.substr(1),r=t.indexOf("="));else if(r<=0)return;var i,s;if(r<=0?(i="",s=t.trim()):(i=t.substr(0,r).trim(),s=t.substr(r+1).trim()),!(BAt.test(i)||BAt.test(s))){var a=new hr;return a.key=i,a.value=s,a}}function jAt(t,e){(!e||typeof e!="object")&&(e={}),t=t.trim();var r=t.indexOf(";"),i=r===-1?t:t.substr(0,r),s=PDr(i,!!e.loose);if(!!s){if(r===-1)return s;var a=t.slice(r+1).trim();if(a.length===0)return s;for(var o=a.split(";");o.length;){var n=o.shift().trim();if(n.length!==0){var u=n.indexOf("="),p,m;switch(u===-1?(p=n,m=null):(p=n.substr(0,u),m=n.substr(u+1)),p=p.trim().toLowerCase(),m&&(m=m.trim()),p){case"expires":if(m){var d=pv(m);d&&(s.expires=d)}break;case"max-age":if(m&&/^-?[0-9]+$/.test(m)){var y=parseInt(m,10);s.setMaxAge(y)}break;case"domain":if(m){var c=m.trim().replace(/^\./,"");c&&(s.domain=c.toLowerCase())}break;case"path":s.path=m&&m[0]==="/"?m:null;break;case"secure":s.secure=!0;break;case"httponly":s.httpOnly=!0;break;default:s.extensions=s.extensions||[],s.extensions.push(n);break}}}return s}}function zAt(t){var e;try{e=JSON.parse(t)}catch(r){return r}return e}function G_(t){if(!t)return null;var e;if(typeof t=="string"){if(e=zAt(t),e instanceof Error)return null}else e=t;for(var r=new hr,i=0;i<hr.serializableProperties.length;i++){var s=hr.serializableProperties[i];e[s]===void 0||e[s]===hr.prototype[s]||(s==="expires"||s==="creation"||s==="lastAccessed"?e[s]===null?r[s]=null:r[s]=e[s]=="Infinity"?"Infinity":new Date(e[s]):r[s]=e[s])}return r}function sK(t,e){var r=0,i=t.path?t.path.length:0,s=e.path?e.path.length:0;if(r=s-i,r!==0)return r;var a=t.creation?t.creation.getTime():tK,o=e.creation?e.creation.getTime():tK;return r=a-o,r!==0||(r=t.creationIndex-e.creationIndex),r}function wDr(t){if(t==="/")return["/"];t.lastIndexOf("/")===t.length-1&&(t=t.substr(0,t.length-1));for(var e=[t];t.length>1;){var r=t.lastIndexOf("/");if(r===0)break;t=t.substr(0,r),e.push(t)}return e.push("/"),e}function KAt(t){if(t instanceof Object)return t;try{t=decodeURI(t)}catch(e){}return IDr(t)}function hr(t){t=t||{},Object.keys(t).forEach(function(e){hr.prototype.hasOwnProperty(e)&&hr.prototype[e]!==t[e]&&e.substr(0,1)!=="_"&&(this[e]=t[e])},this),this.creation=this.creation||new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++hr.cookiesCreated})}hr.cookiesCreated=0;hr.parse=jAt;hr.fromJSON=G_;hr.prototype.key="";hr.prototype.value="";hr.prototype.expires="Infinity";hr.prototype.maxAge=null;hr.prototype.domain=null;hr.prototype.path=null;hr.prototype.secure=!1;hr.prototype.httpOnly=!1;hr.prototype.extensions=null;hr.prototype.hostOnly=null;hr.prototype.pathIsDefault=null;hr.prototype.creation=null;hr.prototype.lastAccessed=null;Object.defineProperty(hr.prototype,"creationIndex",{configurable:!0,enumerable:!1,writable:!0,value:0});hr.serializablePrope Line truncated
`);var r=[t.verb,t.md5,t.contentType,t.date?t.date.toUTCString():"",e+t.resource];return r.join(`
`)}uc.exports.stringToSign=rvt;function ivt(t){return`GET
`+t.date+`
`+t.resource}uc.exports.queryStringToSign=ivt;function ZDr(t){for(var e=[],r=Object.keys(t),i=0,s=r.length;i<s;++i){var a=r[i],o=t[a],a=a.toLowerCase();a.indexOf("x-amz")===0&&e.push(a+":"+o)}return e.sort().join(`
`)}uc.exports.canonicalizeHeaders=ZDr;function YDr(t){var e=QDr(t,!0),r=e.pathname,i=[];return Object.keys(e.query).forEach(function(s){if(!!~$Dr.indexOf(s)){var a=e.query[s]==""?"":"="+encodeURIComponent(e.query[s]);i.push(s+a)}}),r+(i.length?"?"+i.sort().join("&"):"")}uc.exports.canonicalizeResource=YDr});var ovt=l((Fki,avt)=>{avt.exports=function(t){return new mv(t)};function mv(t){this.capacity=t|0,this.map=Object.create(null),this.list=new z_}mv.prototype.get=function(t){var e=this.map[t];if(e!=null)return this.used(e),e.val};mv.prototype.set=function(t,e){var r=this.map[t];if(r!=null)r.val=e;else{if(this.capacity||this.prune(),!this.capacity)return!1;r=new eRr(t,e),this.map[t]=r,this.capacity--}return this.used(r),!0};mv.prototype.used=function(t){this.list.moveToFront(t)};mv.prototype.prune=function(){var t=this.list.pop();t!=null&&(delete this.map[t.key],this.capacity++)};function z_(){this.firstNode=null,this.lastNode=null}z_.prototype.moveToFront=function(t){this.firstNode!=t&&(this.remove(t),this.firstNode==null?(this.firstNode=t,this.lastNode=t,t.prev=null,t.next=null):(t.prev=null,t.next=this.firstNode,t.next.prev=t,this.firstNode=t))};z_.prototype.pop=function(){var t=this.lastNode;return t!=null&&this.remove(t),t};z_.prototype.remove=function(t){this.firstNode==t?this.firstNode=t.next:t.prev!=null&&(t.prev.next=t.next),this.lastNode==t?this.lastNode=t.prev:t.next!=null&&(t.next.prev=t.prev)};function eRr(t,e){this.key=t,this.val=e,this.prev=null,this.next=null}});var dvt=l(nvt=>{var uvt=nvt,tRr=require("url"),pvt=require("querystring"),mvt=require("crypto"),rRr=ovt(),cvt=rRr(1e3);function cv(t,e,r){return mvt.createHmac("sha256",t).update(e,"utf8").digest(r)}function mK(t,e){return mvt.createHash("sha256").update(t,"utf8").digest(e)}function lvt(t){return t.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function K_(t){return lvt(encodeURIComponent(t))}var iRr={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function La(t,e){typeof t=="string"&&(t=tRr.parse(t));var r=t.headers=Object.assign({},t.headers||{}),i=(!this.service||!this.region)&&this.matchHost(t.hostname||t.host||r.Host||r.host);this.request=t,this.credentials=e||this.defaultCredentials(),this.service=t.service||i[0]||"",this.region=t.region||i[1]||"us-east-1",this.service==="email"&&(this.service="ses"),!t.method&&t.body&&(t.method="POST"),!r.Host&&!r.host&&(r.Host=t.hostname||t.host||this.createHost(),t.port&&(r.Host+=":"+t.port)),!t.hostname&&!t.host&&(t.hostname=r.Host||r.host),this.isCodeCommitGit=this.service==="codecommit"&&t.method==="GIT",this.extraHeadersToIgnore=t.extraHeadersToIgnore||Object.create(null),this.extraHeadersToInclude=t.extraHeadersToInclude||Object.create(null)}La.prototype.matchHost=function(t){var e=(t||"").match(/([^\.]{1,63})\.(?:([^\.]{0,63})\.)?amazonaws\.com(\.cn)?$/),r=(e||[]).slice(1,3);if((r[1]==="es"||r[1]==="aoss")&&(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};La.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};La.prototype.createHost=function(){var t=this.isSingleRegion()?"":"."+this.region,e=this.service==="ses"?"email":this.service;return e+t+".amazonaws.com"};La.prototype.prepareRequest=function(){this.parsePath();var t=this.request,e=t.headers,r;t.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()):(!t.doNotModifyHeaders&&!this.isCodeCommitGit&&(t.body&&!e["Content-Type"]&&!e["content-type"]&&(e["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),t.body&&!e["Content-Length"]&&!e["content-length"]&&(e["Content-Length"]=Buffer.byteLength(t.body)),this.credentials.sessionToken&&!e["X-Amz-Security-Token"]&&!e["x-amz-security-token"]&&(e["X-Amz-Security-Token"]=this.credentials.sessionToken),this.service==="s3"&&!e["X-Amz-Content-Sha256"]&&!e["x-amz-content-sha256"]&&(e["X-Amz-Content-Sha256"]=mK(this.request.body||"","hex")),e["X-Amz-Date"]||e["x-amz-date"]?this.datetime=e["X-Amz-Date"]||e["x-amz-date"]:e["X-Amz-Date"]=this.getDateTime()),delete e.Authorization,delete e.authorization)};La.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this Line truncated
`)};La.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var t=this.parsedPath.path,e=this.parsedPath.query,r=this.request.headers,i="",s=this.service!=="s3",a=this.service==="s3"||this.request.doNotEncodePath,o=this.service==="s3",n=this.service==="s3",u;if(this.service==="s3"&&this.request.signQuery?u="UNSIGNED-PAYLOAD":this.isCodeCommitGit?u="":u=r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||mK(this.request.body||"","hex"),e){var p=Object.keys(e).reduce(function(d,y){return y&&(d[K_(y)]=Array.isArray(e[y])&&n?e[y][0]:e[y]),d},{}),m=[];Object.keys(p).sort().forEach(function(d){Array.isArray(p[d])?p[d].map(K_).sort().forEach(function(y){m.push(d+"="+y)}):m.push(d+"="+K_(p[d]))}),i=m.join("&")}return t!=="/"&&(s&&(t=t.replace(/\/{2,}/g,"/")),t=t.split("/").reduce(function(d,y){return s&&y===".."?d.pop():(!s||y!==".")&&(a&&(y=decodeURIComponent(y.replace(/\+/g," "))),d.push(K_(y))),d},[]).join("/"),t[0]!=="/"&&(t="/"+t),o&&(t=t.replace(/%2F/g,"/"))),[this.request.method||"GET",t,i,this.canonicalHeaders()+`
`,this.signedHeaders(),u].join(`
`)};La.prototype.filterHeaders=function(){var t=this.request.headers,e=this.extraHeadersToInclude,r=this.extraHeadersToIgnore;this.filteredHeaders=Object.keys(t).map(function(i){return[i.toLowerCase(),t[i]]}).filter(function(i){return e[i[0]]||iRr[i[0]]==null&&!r[i[0]]}).sort(function(i,s){return i[0]<s[0]?-1:1})};La.prototype.canonicalHeaders=function(){return this.filteredHeaders||this.filterHeaders(),this.filteredHeaders.map(function(t){return t[0]+":"+t[1].toString().trim().replace(/\s+/g," ")}).join(`
`)};La.prototype.signedHeaders=function(){return this.filteredHeaders||this.filterHeaders(),this.filteredHeaders.map(function(t){return t[0]}).join(";")};La.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")};La.prototype.defaultCredentials=function(){var t=process.env;return{accessKeyId:t.AWS_ACCESS_KEY_ID||t.AWS_ACCESS_KEY,secretAccessKey:t.AWS_SECRET_ACCESS_KEY||t.AWS_SECRET_KEY,sessionToken:t.AWS_SESSION_TOKEN}};La.prototype.parsePath=function(){var t=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(t)&&(t=encodeURI(decodeURI(t)));var e=t.indexOf("?"),r=null;e>=0&&(r=pvt.parse(t.slice(e+1)),t=t.slice(0,e)),this.parsedPath={path:t,query:r}};La.prototype.formatPath=function(){var t=this.parsedPath.path,e=this.parsedPath.query;return e?(e[""]!=null&&delete e[""],t+"?"+lvt(pvt.stringify(e))):t};uvt.RequestSigner=La;uvt.sign=function(t,e){return new La(t,e).sign()}});var zi=l((Bki,yvt)=>{var W_=require("assert"),sRr=require("stream").Stream,aRr=require("util"),oRr=/^[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 cK(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Wd(t,e,r,i,s){throw new W_.AssertionError({message:aRr.format("%s (%s) is required",t,e),actual:s===void 0?typeof i:s(i),expected:e,operator:r||"===",stackStartFunction:Wd.caller})}function lK(t){return Object.prototype.toString.call(t).slice(8,-1)}function Uf(){}var lv={bool:{check:function(t){return typeof t=="boolean"}},func:{check:function(t){return typeof t=="function"}},string:{check:function(t){return typeof t=="string"}},object:{check:function(t){return typeof t=="object"&&t!==null}},number:{check:function(t){return typeof t=="number"&&!isNaN(t)}},finite:{check:function(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}},buffer:{check:function(t){return Buffer.isBuffer(t)},operator:"Buffer.isBuffer"},array:{check:function(t){return Array.isArray(t)},operator:"Array.isArray"},stream:{check:function(t){return t instanceof sRr},operator:"instanceof",actual:lK},date:{check:function(t){return t instanceof Date},operator:"instanceof",actual:lK},regexp:{check:function(t){return t instanceof RegExp},operator:"instanceof",actual:lK},uuid:{check:function(t){return typeof t=="string"&&oRr.test(t)},operator:"isUUID"}};function hvt(t){var e=Object.keys(lv),r;return process.env.NODE_NDEBUG?r=Uf:r=function(i,s){i||Wd(s,"true",i)},e.forEach(function(i){if(t){r[i]=Uf;return}var s=lv[i];r[i]=function(a,o){s.check(a)||Wd(o,i,s.operator,a,s.actual)}}),e.forEach(function(i){var s="optional"+cK(i);if(t){r[s]=Uf;return}var a=lv[i];r[s]=function(o,n){o!=null&&(a.check(o)||Wd(n,i,a.operator,o,a.actual))}}),e.forEach(function(i){var s="arrayOf"+cK(i);if(t){r[s]=Uf;return}var a=lv[i],o="["+i+"]";r[s]=function(n,u){Array.isArray(n)||Wd(u,o,a.operator,n,a.actual);var p;for(p=0;p<n.length;p++)a.check(n[p])||Wd(u,o,a.operator,n,a.actual)}}),e.forEach(function(i){var s="optionalArrayOf"+cK(i);if(t){r[s]=Uf;return}var a=lv[i],o="["+i+"]";r[s]=function(n,u){if(n!=null){Array.isArray(n)||Wd(u,o,a.operator,n,a.actual);var p;for(p=0;p<n.length;p++)a.check(n[p])||Wd(u,o,a.operator,n,a.actual)}}}),Object.keys(W_).forEach(function(i){if(i==="AssertionError"){r[i]=W_[i];return}if(t){r[i]=Uf;return}r[i]=W_[i]}),r._setExports=hvt,r}yvt.exports=hvt(process.env.NODE_NDEBUG)});var Eo=l((Gki,bvt)=>{var co=zr().Buffer,dK={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};dK.curve25519=dK.ed25519;var yK={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};yK.curve25519=yK.ed25519;var nRr={md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},uRr={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:co.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:co.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:co.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:co.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:co.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:co.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:co.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:co.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:co.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398 Line truncated
`,V);for(var _=0;_<j.length;){var W=_+70;W>j.length&&(W=j.length),V+=G.write(j.slice(_,W),V),G[V++]=10,_=W}return V+=G.write("-----END "+E+`-----
`,V),G.slice(0,V)}});var vl=l((bCi,ckt)=>{ckt.exports={read:q1r,write:D1r};var um=zi(),Xf=pc(),R1r=require("crypto"),Xd=zr().Buffer,hCi=Eo(),KK=Xa(),E1r=$a(),P1r=Qa(),WK=aF(),HK=Wf(),w1r=Tv(),M1r=Cl(),lkt=im(),L1r="1.2.840.113549.1.5.13",_1r="1.2.840.113549.1.5.12",JK={"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"},F1r={};Object.keys(JK).forEach(function(t){F1r[JK[t]]=t});var QK={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"},U1r={};Object.keys(QK).forEach(function(t){U1r[QK[t]]=t});function q1r(t,e,r){var i=t;typeof t!="string"&&(um.buffer(t,"buf"),t=t.toString("ascii"));for(var s=t.trim().split(/[\r\n]+/g),a,o=-1;!a&&o<s.length;)a=s[++o].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);um.ok(a,"invalid PEM header");for(var n,u=s.length;!n&&u>0;)n=s[--u].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);um.ok(n,"invalid PEM footer"),um.equal(a[2],n[2]);var p=a[2].toLowerCase(),m;a[1]&&(um.equal(a[1],n[1],"PEM header and footer mismatch"),m=a[1].trim()),s=s.slice(o,u+1);for(var d={};s=s.slice(1),a=s[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!a;)d[a[1].toLowerCase()]=a[2];s=s.slice(0,-1).join(""),t=Xd.from(s,"base64");var y,c,h;if(d["proc-type"]){var g=d["proc-type"].split(",");if(g[0]==="4"&&g[1]==="ENCRYPTED")if(typeof e.passphrase=="string"&&(e.passphrase=Xd.from(e.passphrase,"utf-8")),Xd.isBuffer(e.passphrase))g=d["dek-info"].split(","),um.ok(g.length===2),y=g[0].toLowerCase(),h=Xd.from(g[1],"hex"),c=KK.opensslKeyDeriv(y,h,e.passphrase,1).key;else throw new lkt.KeyEncryptedError(e.filename,"PEM")}if(m&&m.toLowerCase()==="encrypted"){var S=new Xf.BerReader(t),N;S.readSequence(),S.readSequence(),N=S.offset+S.length;var T=S.readOID();if(T!==L1r)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+T);S.readSequence(),S.readSequence();var I=S.offset+S.length,v=S.readOID();if(v!==_1r)throw new Error("Unsupported PBES2 KDF: "+v);S.readSequence();var A=S.readString(Xf.Ber.OctetString,!0),D=S.readInt(),G="sha1";if(S.offset<I){S.readSequence();var E=S.readOID();if(G=QK[E],G===void 0)throw new Error("Unsupported PBKDF2 hash: "+E)}S._offset=I,S.readSequence();var j=S.readOID();if(y=JK[j],y===void 0)throw new Error("Unsupported PBES2 cipher: "+j);if(h=S.readString(Xf.Ber.OctetString,!0),S._offset=N,t=S.readString(Xf.Ber.OctetString,!0),typeof e.passphrase=="string"&&(e.passphrase=Xd.from(e.passphrase,"utf-8")),!Xd.isBuffer(e.passphrase))throw new lkt.KeyEncryptedError(e.filename,"PEM");var L=KK.opensshCipherInfo(y);y=L.opensslName,c=KK.pbkdf2(G,A,D,L.keySize,e.passphrase),m=void 0}if(y&&c&&h){var V=R1r.createDecipheriv(y,c,h),_,W=[];for(V.once("error",function(H){throw H.toString().indexOf("bad decrypt")!==-1?new Error("Incorrect passphrase supplied, could not decrypt key"):H}),V.write(t),V.end();(_=V.read())!==null;)W.push(_);t=Xd.concat(W)}if(m&&m.toLowerCase()==="openssh")return w1r.readSSHPrivate(p,t,e);if(m&&m.toLowerCase()==="ssh2")return M1r.readType(p,t,e);var re=new Xf.BerReader(t);return re.originalInput=i,re.readSequence(),m?(r&&um.strictEqual(r,"pkcs1"),WK.readPkcs1(m,p,re)):(r&&um.strictEqual(r,"pkcs8"),HK.readPkcs8(m,p,re))}function D1r(t,e,r){um.object(t);var i={ecdsa:"EC",rsa:"RSA",dsa:"DSA",ed25519:"EdDSA"}[t.type],s,a=new Xf.BerWriter;if(P1r.isPrivateKey(t))r&&r==="pkcs8"?(s="PRIVATE KEY",HK.writePkcs8(a,t)):(r&&um.strictEqual(r,"pkcs1"),s=i+" PRIVATE KEY",WK.writePkcs1(a,t));else if(E1r.isKey(t))r&&r==="pkcs1"?(s=i+" PUBLIC KEY",WK.writePkcs1(a,t)):(r&&um.strictEqual(r,"pkcs8"),s="PUBLIC KEY",HK.writePkcs8(a,t));else throw new Error("key is not a Key or PrivateKey");var o=a.buffer.toString("base64"),n=o.length+o.length/64+18+16+s.length*2+10,u=Xd.alloc(n),p=0;p+=u.write("-----BEGIN "+s+`-----
`,p);for(var m=0;m<o.length;){var d=m+64;d>o.length&&(d=o.length),p+=u.write(o.slice(m,d),p),u[p++]=10,m=d}return p+=u.write("-----END "+s+`-----
`,p),u.slice(0,p)}});var XK=l((NCi,dkt)=>{dkt.exports={read:B1r,write:G1r};var Av=zi(),$K=zr().Buffer,Zf=Cl(),gCi=Xa(),O1r=$a(),SCi=Qa(),fCi=Tv(),V1r=/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/,ykt=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;function B1r(t,e){typeof t!="string"&&(Av.buffer(t,"buf"),t=t.toString("ascii"));var r=t.trim().replace(/[\\\r]/g,""),i=r.match(V1r);i||(i=r.match(ykt)),Av.ok(i,"key must match regex");var s=Zf.algToKeyType(i[1]),a=$K.from(i[2],"base64"),o,n={};if(i[4])try{o=Zf.read(a)}catch(y){i=r.match(ykt),Av.ok(i,"key must match regex"),a=$K.from(i[2],"base64"),o=Zf.readInternal(n,"public",a)}else o=Zf.readInternal(n,"public",a);if(Av.strictEqual(s,o.type),i[4]&&i[4].length>0)o.comment=i[4];else if(n.consumed){var u=i[2]+(i[3]?i[3]:""),p=Math.ceil(n.consumed/3)*4;u=u.slice(0,p-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+u.slice(p-2);var m=n.consumed%3;for(m>0&&u.slice(p-1,p)!=="="&&p--;u.slice(p,p+1)==="=";)p++;var d=u.slice(p);d=d.replace(/[\r\n]/g," ").replace(/^\s+/,""),d.match(/^[a-zA-Z0-9]/)&&(o.comment=d)}return o}function G1r(t,e){if(Av.object(t),!O1r.isKey(t))throw new Error("Must be a public key");var r=[],i=Zf.keyTypeToAlg(t);r.push(i);var s=Zf.write(t);return r.push(s.toString("base64")),t.comment&&r.push(t.comment),$K.from(r.join(" "))}});var cF=l((ACi,hkt)=>{hkt.exports={read:j1r,write:z1r};var K1r=zi(),wb=zr().Buffer,ZK=$a(),YK=Qa(),Ca=Xa(),ICi=xb(),TCi=rF(),bkt={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14},Cu={};Object.keys(bkt).forEach(function(t){Cu[bkt[t]]=t.toUpperCase()});function j1r(t,e){typeof t!="string"&&(K1r.buffer(t,"buf"),t=t.toString("ascii"));var r=t.split(`
`);if(r[0].match(/^Private-key-format\: v1/)){var i=r[1].split(" "),s=parseInt(i[1],10),a=i[2];if(!Cu[s])throw new Error("Unsupported algorithm: "+a);return H1r(s,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 W1r(r[o]);throw new Error("Cannot parse dnssec key")}function W1r(t){var e=t.split(" "),r=parseInt(e[5],10);if(!Cu[r])throw new Error("Unsupported algorithm: "+r);var i=e.slice(6,e.length).join(),s=wb.from(i,"base64");if(Cu[r].match(/^RSA-/)){var a=s.readUInt8(0);if(a!=3&&a!=1)throw new Error("Cannot parse dnssec key: unsupported exponent length");var o=s.slice(1,a+1);o=Ca.mpNormalize(o);var n=s.slice(1+a);n=Ca.mpNormalize(n);var u={type:"rsa",parts:[]};return u.parts.push({name:"e",data:o}),u.parts.push({name:"n",data:n}),new ZK(u)}if(Cu[r]==="ECDSA-P384-SHA384"||Cu[r]==="ECDSA-P256-SHA256"){var p="nistp384",m=384;Cu[r].match(/^ECDSA-P256-SHA256/)&&(p="nistp256",m=256);var d={type:"ecdsa",curve:p,size:m,parts:[{name:"curve",data:wb.from(p)},{name:"Q",data:Ca.ecNormalize(s)}]};return new ZK(d)}throw new Error("Unsupported algorithm: "+Cu[r])}function Zd(t){return wb.from(t.split(" ")[1],"base64")}function J1r(t){var e={};t.forEach(function(i){i.split(" ")[0]==="Modulus:"?e.n=Zd(i):i.split(" ")[0]==="PublicExponent:"?e.e=Zd(i):i.split(" ")[0]==="PrivateExponent:"?e.d=Zd(i):i.split(" ")[0]==="Prime1:"?e.p=Zd(i):i.split(" ")[0]==="Prime2:"?e.q=Zd(i):i.split(" ")[0]==="Exponent1:"?e.dmodp=Zd(i):i.split(" ")[0]==="Exponent2:"?e.dmodq=Zd(i):i.split(" ")[0]==="Coefficient:"&&(e.iqmp=Zd(i))});var r={type:"rsa",parts:[{name:"e",data:Ca.mpNormalize(e.e)},{name:"n",data:Ca.mpNormalize(e.n)},{name:"d",data:Ca.mpNormalize(e.d)},{name:"p",data:Ca.mpNormalize(e.p)},{name:"q",data:Ca.mpNormalize(e.q)},{name:"dmodp",data:Ca.mpNormalize(e.dmodp)},{name:"dmodq",data:Ca.mpNormalize(e.dmodq)},{name:"iqmp",data:Ca.mpNormalize(e.iqmp)}]};return new YK(r)}function H1r(t,e){if(Cu[t].match(/^RSA-/))return J1r(e);if(Cu[t]==="ECDSA-P384-SHA384"||Cu[t]==="ECDSA-P256-SHA256"){var r=wb.from(e[0].split(" ")[1],"base64"),i="nistp384",s=384;Cu[t]==="ECDSA-P256-SHA256"&&(i="nistp256",s=256);var a=Ca.publicFromPrivateECDSA(i,r),o=a.part.Q.data,n={type:"ecdsa",curve:i,size:s,parts:[{name:"curve",data:wb.from(i)},{name:"d",data:r},{name:"Q",data:o}]};return new YK(n)}throw new Error("Unsupported algorithm: "+Cu[t])}function Yf(t){var e=t.getFullYear()+"",r=t.getMonth()+1,i=e+r+t.getUTCDate();return i+=""+t.getUTCHours()+t.getUTCMinutes(),i+=t.getUTCSeconds(),i}function Q1r(t){if(!t||!t.hashAlgo||t.hashAlgo==="sha1")return"5 (RSASHA1)";if(t.hashAlgo==="sha256")return"8 (RSASHA256)";if(t.hashAlgo==="sha512")return"10 (RSASHA512)";throw new Error("Unknown or unsupported hash: "+t.hashAlgo)}function $1r(t,e){(!t.part.dmodp||!t.part.dmodq)&&Ca.addRSAMissing(t);var r="";r+=`Private-key-format: v1.3
`,r+="Algorithm: "+Q1r(e)+`
`;var i=Ca.mpDenormalize(t.part.n.data);r+="Modulus: "+i.toString("base64")+`
`;var s=Ca.mpDenormalize(t.part.e.data);r+="PublicExponent: "+s.toString("base64")+`
`;var a=Ca.mpDenormalize(t.part.d.data);r+="PrivateExponent: "+a.toString("base64")+`
`;var o=Ca.mpDenormalize(t.part.p.data);r+="Prime1: "+o.toString("base64")+`
`;var n=Ca.mpDenormalize(t.part.q.data);r+="Prime2: "+n.toString("base64")+`
`;var u=Ca.mpDenormalize(t.part.dmodp.data);r+="Exponent1: "+u.toString("base64")+`
`;var p=Ca.mpDenormalize(t.part.dmodq.data);r+="Exponent2: "+p.toString("base64")+`
`;var m=Ca.mpDenormalize(t.part.iqmp.data);r+="Coefficient: "+m.toString("base64")+`
`;var d=new Date;return r+="Created: "+Yf(d)+`
`,r+="Publish: "+Yf(d)+`
`,r+="Activate: "+Yf(d)+`
`,wb.from(r,"ascii")}function X1r(t,e){var r="";if(r+=`Private-key-format: v1.3
`,t.curve==="nistp256")r+=`Algorithm: 13 (ECDSAP256SHA256)
`;else if(t.curve==="nistp384")r+=`Algorithm: 14 (ECDSAP384SHA384)
`;else throw new Error("Unsupported curve");var i=t.part.d.data.toString("base64");r+="PrivateKey: "+i+`
`;var s=new Date;return r+="Created: "+Yf(s)+`
`,r+="Publish: "+Yf(s)+`
`,r+="Activate: "+Yf(s)+`
`,wb.from(r,"ascii")}function z1r(t,e){if(YK.isPrivateKey(t)){if(t.type==="rsa")return $1r(t,e);if(t.type==="ecdsa")return X1r(t,e);throw new Error("Unsupported algorithm: "+t.type)}else throw ZK.isKey(t)?new Error('Format "dnssec" only supports writing private keys'):new Error("key is not a Key or PrivateKey")}});var dF=l((vCi,gkt)=>{gkt.exports={read:Z1r,write:Y1r};var vv=zi(),bp=zr().Buffer,lF=Cl(),ePr=$a(),tPr=xb(),eW=require("crypto"),Skt=Qa(),rPr=im();function Z1r(t,e){for(var r=t.toString("ascii").split(/[\r\n]+/),i=!1,s,a=0,o;a<r.length;)if(s=kv(r[a++]),s&&(o={"putty-user-key-file-2":2,"putty-user-key-file-3":3}[s[0].toLowerCase()],o)){i=!0;break}if(!i)throw new Error("No PuTTY format first line found");var n=s[1];s=kv(r[a++]),vv.equal(s[0].toLowerCase(),"encryption");var u=s[1];s=kv(r[a++]),vv.equal(s[0].toLowerCase(),"comment");var p=s[1];s=kv(r[a++]),vv.equal(s[0].toLowerCase(),"public-lines");var m=parseInt(s[1],10);if(!isFinite(m)||m<0||m>r.length)throw new Error("Invalid public-lines count");var d=bp.from(r.slice(a,a+m).join(""),"base64"),y=lF.algToKeyType(n),c=lF.read(d);if(c.type!==y)throw new Error("Outer key algorithm mismatch");if(a+=m,r[a]){s=kv(r[a++]),vv.equal(s[0].toLowerCase(),"private-lines");var h=parseInt(s[1],10);if(!isFinite(h)||h<0||h>r.length)throw new Error("Invalid private-lines count");var g=bp.from(r.slice(a,a+h).join(""),"base64");if(u!=="none"&&o===3)throw new Error("Encrypted keys arenot supported for PuTTY format version 3");if(u==="aes256-cbc"){if(!e.passphrase)throw new rPr.KeyEncryptedError(e.filename,"PEM");var S=bp.alloc(16,0),N=eW.createDecipheriv("aes-256-cbc",iPr(e.passphrase),S);N.setAutoPadding(!1),g=bp.concat([N.update(g),N.final()])}if(c=new Skt(c),c.type!==y)throw new Error("Outer key algorithm mismatch");var T=new tPr({buffer:g}),I;if(n==="ssh-dss")I=[{name:"x",data:T.readBuffer()}];else if(n==="ssh-rsa")I=[{name:"d",data:T.readBuffer()},{name:"p",data:T.readBuffer()},{name:"q",data:T.readBuffer()},{name:"iqmp",data:T.readBuffer()}];else if(n.match(/^ecdsa-sha2-nistp/))I=[{name:"d",data:T.readBuffer()}];else if(n==="ssh-ed25519")I=[{name:"k",data:T.readBuffer()}];else throw new Error("Unsupported PPK key type: "+n);c=new Skt({type:c.type,parts:c.parts.concat(I)})}return c.comment=p,c}function iPr(t){var e=eW.createHash("sha1").update(bp.concat([bp.from([0,0,0,0]),bp.from(t)])).digest(),r=eW.createHash("sha1").update(bp.concat([bp.from([0,0,0,1]),bp.from(t)])).digest();return bp.concat([e,r]).slice(0,32)}function kv(t){var e=t.indexOf(":");if(e===-1)return null;var r=t.slice(0,e);for(++e;t[e]===" ";)++e;var i=t.slice(e);return[r,i]}function Y1r(t,e){if(vv.object(t),!ePr.isKey(t))throw new Error("Must be a public key");var r=lF.keyTypeToAlg(t),i=lF.write(t),s=t.comment||"",a=i.toString("base64"),o=sPr(a,64);return o.unshift("Public-Lines: "+o.length),o.unshift("Comment: "+s),o.unshift("Encryption: none"),o.unshift("PuTTY-User-Key-File-2: "+r),bp.from(o.join(`
`)+`
`)}function sPr(t,e){for(var r=[],i=0;i<t.length;)r.push(t.slice(i,i+64)),i+=64;return r}});var iW=l((qCi,fkt)=>{fkt.exports={read:aPr,write:oPr};var nPr=zi(),uPr=zr().Buffer,kCi=Xa(),CCi=$a(),xCi=Qa(),Nkt=vl(),tW=XK(),pPr=Cl(),Ikt=cF(),Tkt=dF(),rW="Private-key-format: v1";function aPr(t,e){if(typeof t=="string"){if(t.trim().match(/^[-]+[ ]*BEGIN/))return Nkt.read(t,e);if(t.match(/^\s*ssh-[a-z]/)||t.match(/^\s*ecdsa-/))return tW.read(t,e);if(t.match(/^putty-user-key-file-2:/i))return Tkt.read(t,e);if(Akt(t))return Ikt.read(t,e);t=uPr.from(t,"binary")}else{if(nPr.buffer(t),lPr(t))return Nkt.read(t,e);if(cPr(t))return tW.read(t,e);if(mPr(t))return Tkt.read(t,e);if(Akt(t))return Ikt.read(t,e)}if(t.readUInt32BE(0)<t.length)return pPr.read(t,e);throw new Error("Failed to auto-detect format of key")}function mPr(t){for(var e=0;e<t.length&&(t[e]===32||t[e]===10||t[e]===9);)++e;return e+22<=t.length&&t.slice(e,e+22).toString("ascii").toLowerCase()==="putty-user-key-file-2:"}function cPr(t){for(var e=0;e<t.length&&(t[e]===32||t[e]===10||t[e]===9);)++e;return e+4<=t.length&&t.slice(e,e+4).toString("ascii")==="ssh-"||e+6<=t.length&&t.slice(e,e+6).toString("ascii")==="ecdsa-"}function lPr(t){for(var e=0;e<t.length&&(t[e]===32||t[e]===10);)++e;if(t[e]!==45)return!1;for(;e<t.length&&t[e]===45;)++e;for(;e<t.length&&t[e]===32;)++e;return!(e+5>t.length||t.slice(e,e+5).toString("ascii")!=="BEGIN")}function Akt(t){if(t.length<=rW.length)return!1;var e=t.slice(0,rW.length);if(e.toString("ascii")===rW)return!0;typeof t!="string"&&(t=t.toString("ascii"));for(var r=t.split(`
`),i=0;r[i].match(/^\;/);)i++;return!!(r[i].toString("ascii").match(/\. IN KEY /)||r[i].toString("ascii").match(/\. IN DNSKEY /))}function oPr(t,e){throw new Error('"auto" format cannot be used for writing')}});var Qa=l((PCi,vkt)=>{vkt.exports=Za;var Po=zi(),sW=zr().Buffer,dPr=Eo(),kkt=require("crypto"),DCi=eN(),yPr=cc(),aW=im(),hPr=require("util"),Cv=Xa(),Ckt=rF(),bPr=Ckt.generateECDSA,gPr=Ckt.generateED25519,xkt=_K(),qkt=Vf(),oW=$a(),RCi=aW.InvalidAlgorithmError,SPr=aW.KeyParseError,ECi=aW.KeyEncryptedError,wo={};wo.auto=iW();wo.pem=vl();wo.pkcs1=aF();wo.pkcs8=Wf();wo.rfc4253=Cl();wo["ssh-private"]=Tv();wo.openssh=wo["ssh-private"];wo.ssh=wo["ssh-private"];wo.dnssec=cF();wo.putty=dF();function Za(t){Po.object(t,"options"),oW.call(this,t),this._pubCache=void 0}hPr.inherits(Za,oW);Za.formats=wo;Za.prototype.toBuffer=function(t,e){return t===void 0&&(t="pkcs1"),Po.string(t,"format"),Po.object(wo[t],"formats[format]"),Po.optionalObject(e,"options"),wo[t].write(this,e)};Za.prototype.hash=function(t,e){return this.toPublic().hash(t,e)};Za.prototype.fingerprint=function(t,e){return this.toPublic().fingerprint(t,e)};Za.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var t=dPr.info[this.type],e=[],r=0;r<t.parts.length;++r){var i=t.parts[r];e.push(this.part[i])}return this._pubCache=new oW({type:this.type,source:this,parts:e}),this.comment&&(this._pubCache.comment=this.comment),this._pubCache};Za.prototype.derive=function(t){Po.string(t,"type");var e,r,i;if(this.type==="ed25519"&&t==="curve25519")return e=this.part.k.data,e[0]===0&&(e=e.slice(1)),i=qkt.box.keyPair.fromSecretKey(new Uint8Array(e)),r=sW.from(i.publicKey),new Za({type:"curve25519",parts:[{name:"A",data:Cv.mpNormalize(r)},{name:"k",data:Cv.mpNormalize(e)}]});if(this.type==="curve25519"&&t==="ed25519")return e=this.part.k.data,e[0]===0&&(e=e.slice(1)),i=qkt.sign.keyPair.fromSeed(new Uint8Array(e)),r=sW.from(i.publicKey),new Za({type:"ed25519",parts:[{name:"A",data:Cv.mpNormalize(r)},{name:"k",data:Cv.mpNormalize(e)}]});throw new Error("Key derivation not supported from "+this.type+" to "+t)};Za.prototype.createVerify=function(t){return this.toPublic().createVerify(t)};Za.prototype.createSign=function(t){if(t===void 0&&(t=this.defaultHashAlgorithm()),Po.string(t,"hash algorithm"),this.type==="ed25519"&&xkt!==void 0)return new xkt.Signer(this,t);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for signing or verification");var e,r,i;try{r=t.toUpperCase(),e=kkt.createSign(r)}catch(u){i=u}(e===void 0||i instanceof Error&&i.message.match(/Unknown message digest/))&&(r="RSA-",r+=t.toUpperCase(),e=kkt.createSign(r)),Po.ok(e,"failed to create verifier");var s=e.sign.bind(e),a=this.toBuffer("pkcs1"),o=this.type,n=this.curve;return e.sign=function(){var u=s(a);return typeof u=="string"&&(u=sW.from(u,"binary")),u=yPr.parse(u,o,"asn1"),u.hashAlgorithm=t,u.curve=n,u},e};Za.parse=function(t,e,r){typeof t!="string"&&Po.buffer(t,"data"),e===void 0&&(e="auto"),Po.string(e,"format"),typeof r=="string"&&(r={filename:r}),Po.optionalObject(r,"options"),r===void 0&&(r={}),Po.optionalString(r.filename,"options.filename"),r.filename===void 0&&(r.filename="(unnamed)"),Po.object(wo[e],"formats[format]");try{var i=wo[e].read(t,r);return Po.ok(i instanceof Za,"key is not a private key"),i.comment||(i.comment=r.filename),i}catch(s){throw s.name==="KeyEncryptedError"?s:new SPr(r.filename,e,s)}};Za.isPrivateKey=function(t,e){return Cv.isCompatible(t,Za,e)};Za.generate=function(t,e){switch(e===void 0&&(e={}),Po.object(e,"options"),t){case"ecdsa":return e.curve===void 0&&(e.curve="nistp256"),Po.string(e.curve,"options.curve"),bPr(e.curve);case"ed25519":return gPr();default:throw new Error('Key generation not supported with key type "'+t+'"')}};Za.prototype._sshpkApiVersion=[1,6];Za._oldVersionDetect=function(t){return Po.func(t.toPublic),Po.func(t.createSign),t.derive?[1,3]:t.defaultHashAlgorithm?[1,2]:t.formats.auto?[1,1]:[1,0]}});var tN=l((BCi,Dkt)=>{Dkt.exports=Hs;var pm=zi(),wCi=Eo(),MCi=require("crypto"),LCi=eN(),_Ci=cc(),FCi=im(),UCi=require("util"),fPr=Xa(),Yo=pc(),Rkt=zr().Buffer,Ekt=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i,As={};As.cn="2.5.4.3";As.o="2.5.4.10";As.ou="2.5.4.11";As.l="2.5.4.7";As.s="2.5.4.8";As.c="2.5.4.6";As.sn="2.5.4.4";As.postalCode="2.5.4.17";As.serialNumber="2.5.4.5";As.street="2.5.4.9";As.x500UniqueIdentifier="2.5.4.45";As.role="2.5.4.72";As.telephoneNumber="2.5.4.20";As.description="2.5.4.13";As.dc="0.9.2342.19200300.100.1.25";As.uid="0.9.2342.19200300.100.1.1";As.mail="0.9.2342.19200300.100.1.3";As.title="2.5.4.12";As.gn="2.5.4.42";As.initials="2.5.4.43";As.pseudonym="2.5.4.65";As.emailAddress="1.2.840.113549.1.9.1";var Pkt={};Object.keys(As).forEach(function(t){Pkt[As[t]]=t});function Hs(t){var e=this;if(pm.object(t,"options"),pm.arrayOfObject(t.components,"options.components"),this.components=t.components,this.componentLookup={},this.components.forEach(function(r){r Line truncated
`,n);for(var u=0;u<s.length;){var p=u+64;p>s.length&&(p=s.length),n+=o.write(s.slice(u,p),n),o[n++]=10,u=p}return n+=o.write("-----END "+i+`-----
`,n),o.slice(0,n)}});var rN=l((a0i,$kt)=>{$kt.exports=na;var Wi=zi(),Xkt=zr().Buffer,YPr=Eo(),e2r=require("crypto"),t2r=eN(),i0i=cc(),Zkt=im(),s0i=require("util"),iu=Xa(),fF=$a(),NF=Qa(),qv=tN(),cm={};cm.openssh=Gkt();cm.x509=cW();cm.pem=Qkt();var r2r=Zkt.CertificateParseError,i2r=Zkt.InvalidAlgorithmError;function na(t){Wi.object(t,"options"),Wi.arrayOfObject(t.subjects,"options.subjects"),iu.assertCompatible(t.subjects[0],qv,[1,0],"options.subjects"),iu.assertCompatible(t.subjectKey,fF,[1,0],"options.subjectKey"),iu.assertCompatible(t.issuer,qv,[1,0],"options.issuer"),t.issuerKey!==void 0&&iu.assertCompatible(t.issuerKey,fF,[1,0],"options.issuerKey"),Wi.object(t.signatures,"options.signatures"),Wi.buffer(t.serial,"options.serial"),Wi.date(t.validFrom,"options.validFrom"),Wi.date(t.validUntil,"optons.validUntil"),Wi.optionalArrayOfString(t.purposes,"options.purposes"),this._hashCache={},this.subjects=t.subjects,this.issuer=t.issuer,this.subjectKey=t.subjectKey,this.issuerKey=t.issuerKey,this.signatures=t.signatures,this.serial=t.serial,this.validFrom=t.validFrom,this.validUntil=t.validUntil,this.purposes=t.purposes}na.formats=cm;na.prototype.toBuffer=function(t,e){return t===void 0&&(t="x509"),Wi.string(t,"format"),Wi.object(cm[t],"formats[format]"),Wi.optionalObject(e,"options"),cm[t].write(this,e)};na.prototype.toString=function(t,e){return t===void 0&&(t="pem"),this.toBuffer(t,e).toString()};na.prototype.fingerprint=function(t){t===void 0&&(t="sha256"),Wi.string(t,"algorithm");var e={type:"certificate",hash:this.hash(t),algorithm:t};return new t2r(e)};na.prototype.hash=function(t){if(Wi.string(t,"algorithm"),t=t.toLowerCase(),YPr.hashAlgs[t]===void 0)throw new i2r(t);if(this._hashCache[t])return this._hashCache[t];var e=e2r.createHash(t).update(this.toBuffer("x509")).digest();return this._hashCache[t]=e,e};na.prototype.isExpired=function(t){return t===void 0&&(t=new Date),!(t.getTime()>=this.validFrom.getTime()&&t.getTime()<this.validUntil.getTime())};na.prototype.isSignedBy=function(t){return iu.assertCompatible(t,na,[1,0],"issuer"),!this.issuer.equals(t.subjects[0])||this.issuer.purposes&&this.issuer.purposes.length>0&&this.issuer.purposes.indexOf("ca")===-1?!1:this.isSignedByKey(t.subjectKey)};na.prototype.getExtension=function(t){Wi.string(t,"keyOrOid");var e=this.getExtensions().filter(function(r){return r.format==="x509"?r.oid===t:r.format==="openssh"?r.name===t:!1})[0];return e};na.prototype.getExtensions=function(){var t=[],e=this.signatures.x509;e&&e.extras&&e.extras.exts&&e.extras.exts.forEach(function(i){i.format="x509",t.push(i)});var r=this.signatures.openssh;return r&&r.exts&&r.exts.forEach(function(i){i.format="openssh",t.push(i)}),t};na.prototype.isSignedByKey=function(t){if(iu.assertCompatible(t,fF,[1,2],"issuerKey"),this.issuerKey!==void 0)return this.issuerKey.fingerprint("sha512").matches(t);var e=Object.keys(this.signatures)[0],r=cm[e].verify(this,t);return r&&(this.issuerKey=t),r};na.prototype.signWith=function(t){iu.assertCompatible(t,NF,[1,2],"key");for(var e=Object.keys(cm),r=!1,i=0;i<e.length;++i)if(e[i]!=="pem"){var s=cm[e[i]].sign(this,t);s===!0&&(r=!0)}if(!r)throw new Error("Failed to sign the certificate for any available certificate formats")};na.createSelfSigned=function(t,e,r){var i;Array.isArray(t)?i=t:i=[t],Wi.arrayOfObject(i),i.forEach(function(y){iu.assertCompatible(y,qv,[1,0],"subject")}),iu.assertCompatible(e,NF,[1,2],"private key"),Wi.optionalObject(r,"options"),r===void 0&&(r={}),Wi.optionalObject(r.validFrom,"options.validFrom"),Wi.optionalObject(r.validUntil,"options.validUntil");var s=r.validFrom,a=r.validUntil;if(s===void 0&&(s=new Date),a===void 0){Wi.optionalNumber(r.lifetime,"options.lifetime");var o=r.lifetime;o===void 0&&(o=10*365*24*3600),a=new Date,a.setTime(a.getTime()+o*1e3)}Wi.optionalBuffer(r.serial,"options.serial");var n=r.serial;n===void 0&&(n=Xkt.from("0000000000000001","hex"));var u=r.purposes;if(u===void 0&&(u=[]),u.indexOf("signature")===-1&&u.push("signature"),u.indexOf("ca")===-1&&u.push("ca"),u.indexOf("crl")===-1&&u.push("crl"),u.length<=3){var p=i.filter(function(y){return y.type==="host"}),m=i.filter(function(y){return y.type==="user"});p.length>0&&u.indexOf("serverAuth")===-1&&u.push("serverAuth"),m.length>0&&u.indexOf("clientAuth")===-1&&u.push("clientAuth"),(m.length>0||p.length>0)&&(u.indexOf("keyAgreement")===-1&&u.push("keyAgreement"),e.type==="rsa"&&u.indexOf("encryption")===-1&&u.push("encryption"))}var d=new na({subjects:i,issuer:i[0],subjectKey:e.toPublic(),issuerKey:e.toPublic(),signatures:{},serial:n,validFrom:s,validUntil:a,purposes:u});return d.signWith(e),d};na.create=function(t,e,r,i,s){var a;Array.isArray(t)?a=t:a=[t],Wi.arrayOfObject(a),a.forEach(function(h){iu.assertCompatible(h,qv,[1,0],"subject")}),iu.assertCompatible(e,fF,[1,0],"key"),NF.isPrivateKey(e)&&(e=e.toPublic()),iu.assertCompatible(r,qv,[1,0],"issuer"),iu.assertCompatible(i,NF,[1,2],"issuer key"),Wi.optionalObject(s,"options"),s===void 0&&(s={}),Wi.optio Line truncated
`)}var g;if(e.headers.date||e.headers["x-date"]){e.headers["x-date"]?g=new Date(e.headers["x-date"]):g=new Date(e.headers.date);var S=new Date,N=Math.abs(S.getTime()-g.getTime());if(N>r.clockSkew*1e3)throw new NW("clock skew of "+N/1e3+"s was greater than "+r.clockSkew+"s")}if(r.headers.forEach(function(T){if(p.params.headers.indexOf(T.toLowerCase())<0)throw new Lv(T+" was not a signed header")}),r.algorithms&&r.algorithms.indexOf(p.params.algorithm)===-1)throw new kF(p.params.algorithm+" is not a supported algorithm");return p.algorithm=p.params.algorithm.toUpperCase(),p.keyId=p.params.keyId,p}}});var vW=l(CF=>{var h2r=require("assert"),b2r=require("util");CF.sprintf=TW;CF.printf=g2r;CF.fprintf=TCt;function TW(t){var e=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(e),i=Array.prototype.slice.call(arguments,1),s,a,o,n,u,p,m,d,y,c="",h=1;for(h2r.equal("string",typeof t);(y=r.exec(t))!==null;){if(c+=y[1],t=t.substring(y[0].length),s=y[2]||"",a=y[3]||0,o=y[4]||"",n=y[6],u=!1,m=!1,p=" ",n=="%"){c+="%";continue}if(i.length===0)throw new Error("too few args to sprintf");if(d=i.shift(),h++,s.match(/[\' #]/))throw new Error("unsupported flags: "+s);if(o.length>0)throw new Error("non-zero precision not supported");switch(s.match(/-/)&&(u=!0),s.match(/0/)&&(p="0"),s.match(/\+/)&&(m=!0),n){case"s":if(d==null)throw new Error("argument "+h+": attempted to print undefined or null as a string");c+=AW(p,a,u,d.toString());break;case"d":d=Math.floor(d);case"f":m=m&&d>0?"+":"",c+=m+AW(p,a,u,d.toString());break;case"x":c+=AW(p,a,u,d.toString(16));break;case"j":a===0&&(a=10),c+=b2r.inspect(d,!1,a);break;case"r":c+=ACt(d);break;default:throw new Error("unsupported conversion: "+n)}}return c+=t,c}function g2r(){var t=Array.prototype.slice.call(arguments);t.unshift(process.stdout),TCt.apply(null,t)}function TCt(t){var e=Array.prototype.slice.call(arguments,1);return t.write(TW.apply(this,e))}function AW(t,e,r,i){for(var s=i;s.length<e;)r?s+=t:s=t+s;return s}function ACt(t){var e;if(!(t instanceof Error))throw new Error(TW("invalid type for %%r: %j",t));if(e="EXCEPTION: "+t.constructor.name+": "+t.stack,t.cause&&typeof t.cause=="function"){var r=t.cause();r&&(e+=`
Caused by: `+ACt(r))}return e}});var vCt=l(rn=>{function S2r(t){return Array.isArray?Array.isArray(t):xF(t)==="[object Array]"}rn.isArray=S2r;function f2r(t){return typeof t=="boolean"}rn.isBoolean=f2r;function N2r(t){return t===null}rn.isNull=N2r;function I2r(t){return t==null}rn.isNullOrUndefined=I2r;function T2r(t){return typeof t=="number"}rn.isNumber=T2r;function A2r(t){return typeof t=="string"}rn.isString=A2r;function v2r(t){return typeof t=="symbol"}rn.isSymbol=v2r;function k2r(t){return t===void 0}rn.isUndefined=k2r;function C2r(t){return xF(t)==="[object RegExp]"}rn.isRegExp=C2r;function x2r(t){return typeof t=="object"&&t!==null}rn.isObject=x2r;function q2r(t){return xF(t)==="[object Date]"}rn.isDate=q2r;function D2r(t){return xF(t)==="[object Error]"||t instanceof Error}rn.isError=D2r;function R2r(t){return typeof t=="function"}rn.isFunction=R2r;function E2r(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t=="undefined"}rn.isPrimitive=E2r;rn.isBuffer=Buffer.isBuffer;function xF(t){return Object.prototype.toString.call(t)}});var CCt=l((h0i,kCt)=>{var Ba=zi(),qF=require("util"),P2r=vW(),lm=vCt().isError,w2r=P2r.sprintf;kCt.exports=vi;vi.VError=vi;vi.SError=_v;vi.WError=ey;vi.MultiError=nN;function kW(t){var e,r,i,s,a;if(Ba.object(t,"args"),Ba.bool(t.strict,"args.strict"),Ba.array(t.argv,"args.argv"),e=t.argv,e.length===0)r={},i=[];else if(lm(e[0]))r={cause:e[0]},i=e.slice(1);else if(typeof e[0]=="object"){r={};for(a in e[0])r[a]=e[0][a];i=e.slice(1)}else Ba.string(e[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},i=e;return Ba.object(r),!r.strict&&!t.strict&&(i=i.map(function(o){return o===null?"null":o===void 0?"undefined":o})),i.length===0?s="":s=w2r.apply(null,i),{options:r,shortmessage:s}}function vi(){var t,e,r,i,s,a,o;if(t=Array.prototype.slice.call(arguments,0),!(this instanceof vi))return e=Object.create(vi.prototype),vi.apply(e,arguments),e;if(r=kW({argv:t,strict:!1}),r.options.name&&(Ba.string(r.options.name,`error's "name" must be a string`),this.name=r.options.name),this.jse_shortmsg=r.shortmessage,a=r.shortmessage,i=r.options.cause,i&&(Ba.ok(lm(i),"cause is not an Error"),this.jse_cause=i,r.options.skipCauseMessage||(a+=": "+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=a,Error.call(this,a),Error.captureStackTrace&&(s=r.options.constructorOpt||this.constructor,Error.captureStackTrace(this,s)),this}qF.inherits(vi,Error);vi.prototype.name="VError";vi.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),e};vi.prototype.cause=function(){var e=vi.cause(this);return e===null?void 0:e};vi.cause=function(t){return Ba.ok(lm(t),"err must be an Error"),lm(t.jse_cause)?t.jse_cause:null};vi.info=function(t){var e,r,i;if(Ba.ok(lm(t),"err must be an Error"),r=vi.cause(t),r!==null?e=vi.info(r):e={},typeof t.jse_info=="object"&&t.jse_info!==null)for(i in t.jse_info)e[i]=t.jse_info[i];return e};vi.findCauseByName=function(t,e){var r;for(Ba.ok(lm(t),"err must be an Error"),Ba.string(e,"name"),Ba.ok(e.length>0,"name cannot be empty"),r=t;r!==null;r=vi.cause(r))if(Ba.ok(lm(r)),r.name==e)return r;return null};vi.hasCauseWithName=function(t,e){return vi.findCauseByName(t,e)!==null};vi.fullStack=function(t){Ba.ok(lm(t),"err must be an Error");var e=vi.cause(t);return e?t.stack+`
caused by: `+vi.fullStack(e):t.stack};vi.errorFromList=function(t){return Ba.arrayOfObject(t,"errors"),t.length===0?null:(t.forEach(function(e){Ba.ok(lm(e))}),t.length==1?t[0]:new nN(t))};vi.errorForEach=function(t,e){Ba.ok(lm(t),"err must be an Error"),Ba.func(e,"func"),t instanceof nN?t.errors().forEach(function(i){e(i)}):e(t)};function _v(){var t,e,r,i;return t=Array.prototype.slice.call(arguments,0),this instanceof _v?(r=kW({argv:t,strict:!0}),i=r.options,vi.call(this,i,"%s",r.shortmessage),this):(e=Object.create(_v.prototype),_v.apply(e,arguments),e)}qF.inherits(_v,vi);function nN(t){Ba.array(t,"list of errors"),Ba.ok(t.length>0,"must be at least one error"),this.ase_errors=t,vi.call(this,{cause:t[0]},"first of %d error%s",t.length,t.length==1?"":"s")}qF.inherits(nN,vi);nN.prototype.name="MultiError";nN.prototype.errors=function(){return this.ase_errors.slice(0)};function ey(){var t,e,r,i;return t=Array.prototype.slice.call(arguments,0),this instanceof ey?(r=kW({argv:t,strict:!1}),i=r.options,i.skipCauseMessage=!0,vi.call(this,i,"%s",r.shortmessage),this):(e=Object.create(ey.prototype),ey.apply(e,t),e)}qF.inherits(ey,vi);ey.prototype.name="WError";ey.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(e+="; caused by "+this.jse_cause.toString()),e};ey.prototype.cause=function(e){return lm(e)&&(this.jse_cause=e),this.jse_cause}});var qCt=l((xCt,DF)=>{(function(t,e){typeof define=="function"&&define.amd?define([],function(){return e()}):typeof DF=="object"&&DF.exports?DF.exports=e():t.jsonSchema=e()})(xCt,function(){var t=r;t.Integer={type:"integer"};var e={String,Boolean,Number,Object,Array,Date};t.validate=r;function r(i,s){return r(i,s,{changing:!1})}t.checkPropertyChange=function(i,s,a){return r(i,s,{changing:a||"property"})};var r=t._validate=function(i,s,a){a||(a={});var o=a.changing;function n(d){return d.type||e[d.name]==d&&d.name.toLowerCase()}var u=[];function p(d,y,c,h){var g;c+=c?typeof h=="number"?"["+h+"]":typeof h=="undefined"?"":"."+h:h;function S(G){u.push({property:c,message:G})}if((typeof y!="object"||y instanceof Array)&&(c||typeof y!="function")&&!(y&&n(y)))return typeof y=="function"?d instanceof y||S("is not an instance of the class/constructor "+y.name):y&&S("Invalid schema/property definition "+y),null;o&&y.readonly&&S("is a readonly field, it can not be changed"),y.extends&&p(d,y.extends,c,h);function N(G,E){if(G){if(typeof G=="string"&&G!="any"&&(G=="null"?E!==null:typeof E!=G)&&!(E instanceof Array&&G=="array")&&!(E instanceof Date&&G=="date")&&!(G=="integer"&&E%1==0))return[{property:c,message:E+" - "+typeof E+" value found, but a "+G+" is required"}];if(G instanceof Array){for(var j=[],L=0;L<G.length&&(j=N(G[L],E)).length;L++);if(j.length)return j}else if(typeof G=="object"){var V=u;u=[],p(E,G,c);var _=u;return u=V,_}}return[]}if(d===void 0)y.required&&S("is missing and it is required");else if(u=u.concat(N(n(y),d)),y.disallow&&!N(y.disallow,d).length&&S(" disallowed value was matched"),d!==null){if(d instanceof Array){if(y.items){var T=y.items instanceof Array,I=y.items;for(h=0,g=d.length;h<g;h+=1)T&&(I=y.items[h]),a.coerce&&(d[h]=a.coerce(d[h],I)),u.concat(p(d[h],I,c,h))}y.minItems&&d.length<y.minItems&&S("There must be a minimum of "+y.minItems+" in the array"),y.maxItems&&d.length>y.maxItems&&S("There must be a maximum of "+y.maxItems+" in the array")}else(y.properties||y.additionalProperties)&&u.concat(m(d,y.properties,c,y.additionalProperties));if(y.pattern&&typeof d=="string"&&!d.match(y.pattern)&&S("does not match the regex pattern "+y.pattern),y.maxLength&&typeof d=="string"&&d.length>y.maxLength&&S("may only be "+y.maxLength+" characters long"),y.minLength&&typeof d=="string"&&d.length<y.minLength&&S("must be at least "+y.minLength+" characters long"),typeof y.minimum!="undefined"&&typeof d==typeof y.minimum&&y.minimum>d&&S("must have a minimum value of "+y.minimum),typeof y.maximum!="undefined"&&typeof d==typeof y.maximum&&y.maximum<d&&S("must have a maximum value of "+y.maximum),y.enum){var v=y.enum;g=v.length;for(var A,D=0;D<g;D++)if(v[D]===d){A=1;break}A||S("does not have a value in the enumeration "+v.join(", "))}typeof y.maxDecimal=="number"&&d.toString().match(new RegExp("\\.[0-9]{"+(y.maxDecimal+1)+",}"))&&S("may only have "+y.maxDecimal+" digits of decimal places")}return null}function m(d,y,c,h){if(typeof y=="object"){(typeof d!="object"||d instanceof Array)&&u.push({property:c,message:"an object is required"});for(var g in y)if(y.hasOwnProperty(g)&&g!="__proto__"&&g!="constructor"){var S=d.hasOwnProperty(g)?d[g]:void 0;if(S===void 0&&a.existingOnly)continue;var N=y[g];S===void 0&&N.default&&(S=d[g]=N.default),a.coerce&&g in d&&(S=d[g]=a.coerce(S,N)),p(S,N,c,g)}}for(g in d){if(d.hasOwnProperty(g)&&!(g.charAt(0)=="_"&&g.charAt(1)=="_")&&y&&!y[g]&&h===!1)if(a.filter){delete d[g];continue}else u. Line truncated
`))},t})});var BCt=l(us=>{var Hi=zi(),b0i=require("util"),DCt=vW(),M2r=CCt(),L2r=qCt();us.deepCopy=CW;us.deepEqual=RCt;us.isEmpty=_2r;us.hasKey=xW;us.forEachKey=F2r;us.pluck=U2r;us.flattenObject=ECt;us.flattenIter=B2r;us.validateJsonObject=PCt;us.validateJsonObjectJS=PCt;us.randElt=G2r;us.extraProperties=O2r;us.mergeObjects=wCt;us.startsWith=V2r;us.endsWith=j2r;us.parseInteger=z2r;us.iso8601=K2r;us.rfc1123=W2r;us.parseDateTime=H2r;us.hrtimediff=MCt;us.hrtimeDiff=MCt;us.hrtimeAccum=LCt;us.hrtimeAdd=J2r;us.hrtimeNanosec=Q2r;us.hrtimeMicrosec=$2r;us.hrtimeMillisec=X2r;function CW(t){var e,r,i="__deepCopy";if(t&&t[i])throw new Error("attempted deep copy of cyclic object");if(t&&t.constructor==Object){e={},t[i]=!0;for(r in t)r!=i&&(e[r]=CW(t[r]));return delete t[i],e}if(t&&t.constructor==Array){for(e=[],t[i]=!0,r=0;r<t.length;r++)e.push(CW(t[r]));return delete t[i],e}return t}function RCt(t,e){if(typeof t!=typeof e)return!1;if(t===null||e===null||typeof t!="object")return t===e;if(t.constructor!=e.constructor)return!1;var r;for(r in t)if(!e.hasOwnProperty(r)||!RCt(t[r],e[r]))return!1;for(r in e)if(!t.hasOwnProperty(r))return!1;return!0}function _2r(t){var e;for(e in t)return!1;return!0}function xW(t,e){return Hi.equal(typeof e,"string"),Object.prototype.hasOwnProperty.call(t,e)}function F2r(t,e){for(var r in t)xW(t,r)&&e(r,t[r])}function U2r(t,e){return Hi.equal(typeof e,"string"),_Ct(t,e)}function _Ct(t,e){if(!(t===null||typeof t!="object")){if(t.hasOwnProperty(e))return t[e];var r=e.indexOf(".");if(r!=-1){var i=e.substr(0,r);if(!!t.hasOwnProperty(i))return _Ct(t[i],e.substr(r+1))}}}function B2r(t,e,r){FCt(t,e,[],r)}function FCt(t,e,r,i){var s,a;if(e===0){s=r.slice(0),s.push(t),i(s);return}Hi.ok(t!==null),Hi.equal(typeof t,"object"),Hi.equal(typeof e,"number"),Hi.ok(e>=0);for(a in t)s=r.slice(0),s.push(a),FCt(t[a],e-1,s,i)}function ECt(t,e){if(e===0)return[t];Hi.ok(t!==null),Hi.equal(typeof t,"object"),Hi.equal(typeof e,"number"),Hi.ok(e>=0);var r=[],i;for(i in t)ECt(t[i],e-1).forEach(function(s){r.push([i].concat(s))});return r}function V2r(t,e){return t.substr(0,e.length)==e}function j2r(t,e){return t.substr(t.length-e.length,e.length)==e}function K2r(t){return typeof t=="number"&&(t=new Date(t)),Hi.ok(t.constructor===Date),DCt.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}var Z2r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Y2r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function W2r(t){return DCt.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",Y2r[t.getUTCDay()],t.getUTCDate(),Z2r[t.getUTCMonth()],t.getUTCFullYear(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function H2r(t){var e=+t;return isNaN(e)?new Date(t):new Date(e)}var ewr=Number.MAX_SAFE_INTEGER||9007199254740991,twr=Number.MIN_SAFE_INTEGER||-9007199254740991,rwr={base:10,allowSign:!0,allowPrefix:!1,allowTrailing:!1,allowImprecise:!1,trimWhitespace:!1,leadingZeroIsOctal:!1},iwr=48,swr=57,awr=65,owr=66,nwr=79,uwr=84,pwr=88,mwr=90,cwr=97,lwr=98,dwr=111,ywr=116,hwr=120,bwr=122,gwr=48,Swr=55,fwr=87;function z2r(t,e){Hi.string(t,"str"),Hi.optionalObject(e,"options");var r=!1,i=rwr;e&&(r=xW(e,"base"),i=wCt(i,e),Hi.number(i.base,"options.base"),Hi.ok(i.base>=2,"options.base >= 2"),Hi.ok(i.base<=36,"options.base <= 36"),Hi.bool(i.allowSign,"options.allowSign"),Hi.bool(i.allowPrefix,"options.allowPrefix"),Hi.bool(i.allowTrailing,"options.allowTrailing"),Hi.bool(i.allowImprecise,"options.allowImprecise"),Hi.bool(i.trimWhitespace,"options.trimWhitespace"),Hi.bool(i.leadingZeroIsOctal,"options.leadingZeroIsOctal"),i.leadingZeroIsOctal&&Hi.ok(!r,'"base" and "leadingZeroIsOctal" are mutually exclusive'));var s,a=-1,o=i.base,n,u=1,p=0,m=0,d=t.length;if(i.trimWhitespace)for(;m<d&&UCt(t.charCodeAt(m));)++m;for(i.allowSign&&(t[m]==="-"?(m+=1,u=-1):t[m]==="+"&&(m+=1)),t[m]==="0"&&(i.allowPrefix&&(a=Iwr(t.charCodeAt(m+1)),a!==-1&&(!r||a===o)&&(o=a,m+=2)),a===-1&&i.leadingZeroIsOctal&&(o=8)),n=m;m<d&&(s=Nwr(t.charCodeAt(m)),s!==-1&&s<o);++m)p*=o,p+=s;if(n===m)return new Error("invalid number: "+JSON.stringify(t));if(i.trimWhitespace)for(;m<d&&UCt(t.charCodeAt(m));)++m;if(m<d&&!i.allowTrailing)return new Error("trailing characters after number: "+JSON.stringify(t.slice(m)));if(p===0)return 0;var y=p*u;return!i.allowImprecise&&(p>ewr||y<twr)?new Error("number is outside of the supported range: "+JSON.stringify(t.slice(n,m))):y}function Nwr(t){return t>=iwr&&t<=swr?t-gwr:t>=awr&&t<=mwr?t-Swr:t>=cwr&&t<=bwr?t-fwr:-1}function UCt(t){return t===32||t>=9&&t<=13||t===160||t===5760||t===6158||t>=8192&&t<=8202||t===8232||t===8233||t===8239||t===8287||t===12288||t===65279}function Iwr(t){return t===lwr||t===owr?2:t===dwr||t===nwr?8:t===ywr||t===uwr?10:t===hwr||t===pwr?16:-1}function PCt(t,e){var r=L2r.validate(e,t);if(r.errors.length===0)return null;var i=r.errors[0],s=i.property,a=i.message.toLowerCase(),o,n;(o=a.inde Line truncated
`+r),this.rs_signer.update(r)}return e};uN.prototype.writeDateHeader=function(){return this.writeHeader("date",jCt.rfc1123(new Date))};uN.prototype.writeTarget=function(t,e){Js.string(t,"method"),Js.string(e,"path"),t=t.toLowerCase(),this.writeHeader("(request-target)",t+" "+e)};uN.prototype.sign=function(t){if(Js.func(t,"callback"),this.rs_headers.length<1)throw new Error("At least one header must be signed");var e,r;if(this.rs_signFunc){var i=this.rs_lines.join(`
`),s=this;this.rs_signFunc(i,function(n,u){if(n){t(n);return}try{Js.object(u,"signature"),Js.string(u.keyId,"signature.keyId"),Js.string(u.algorithm,"signature.algorithm"),Js.string(u.signature,"signature.signature"),e=DW(u.algorithm),r=qW(RW,u.keyId,u.algorithm,s.rs_headers.join(" "),u.signature)}catch(p){t(p);return}t(null,r)})}else{try{var a=this.rs_signer.sign()}catch(n){t(n);return}e=(this.rs_alg[0]||this.rs_key.type)+"-"+a.hashAlgorithm;var o=a.toString();r=qW(RW,this.rs_keyId,e,this.rs_headers.join(" "),o),t(null,r)}};GCt.exports={isSigner:function(t){return typeof t=="object"&&t instanceof uN},createSigner:function(e){return new uN(e)},signRequest:function(e,r){Js.object(e,"request"),Js.object(r,"options"),Js.optionalString(r.algorithm,"options.algorithm"),Js.string(r.keyId,"options.keyId"),Js.optionalArrayOfString(r.headers,"options.headers"),Js.optionalString(r.httpVersion,"options.httpVersion"),e.getHeader("Date")||e.setHeader("Date",jCt.rfc1123(new Date)),r.headers||(r.headers=["date"]),r.httpVersion||(r.httpVersion="1.1");var i=[];r.algorithm&&(r.algorithm=r.algorithm.toLowerCase(),i=DW(r.algorithm));var s,a="";for(s=0;s<r.headers.length;s++){if(typeof r.headers[s]!="string")throw new TypeError("options.headers must be an array of Strings");var o=r.headers[s].toLowerCase();if(o==="request-line")if(!r.strict)a+=e.method+" "+e.path+" HTTP/"+r.httpVersion;else throw new PW("request-line is not a valid header with strict parsing enabled.");else if(o==="(request-target)")a+="(request-target): "+e.method.toLowerCase()+" "+e.path;else{var n=e.getHeader(o);if(n===void 0||n==="")throw new EW(o+" was not in the request");a+=o+": "+n}s+1<r.headers.length&&(a+=`
`)}e.hasOwnProperty("_stringToSign")&&(e._stringToSign=a);var u;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=OCt.createHmac(i[1].toUpperCase(),r.key);p.update(a),u=p.digest("base64")}else{var m=r.key;if((typeof m=="string"||Buffer.isBuffer(m))&&(m=RF.parsePrivateKey(r.key)),Js.ok(RF.PrivateKey.isPrivateKey(m,[1,2]),"options.key must be a sshpk.PrivateKey"),!zCt[m.type])throw new Uv(m.type.toUpperCase()+" type keys are not supported");if(i[0]!==void 0&&m.type!==i[0])throw new Uv("options.key must be a "+i[0].toUpperCase()+" key, was given a "+m.type.toUpperCase()+" key instead");var d=m.createSign(i[1]);d.update(a);var y=d.sign();if(!Twr[y.hashAlgorithm])throw new Uv(y.hashAlgorithm.toUpperCase()+" is not a supported hash algorithm");r.algorithm=m.type+"-"+y.hashAlgorithm,u=y.toString(),Js.notStrictEqual(u,"","empty signature produced")}var c=r.authorizationHeaderName||"Authorization";return e.setHeader(c,qW(RW,r.keyId,r.algorithm,r.headers.join(" "),u)),!0}}});var QCt=l((v0i,WCt)=>{var PF=zi(),wW=require("crypto"),HCt=AF(),Bv=Ev(),N0i=Bv.HASH_ALGOS,I0i=Bv.PK_ALGOS,T0i=Bv.InvalidAlgorithmError,A0i=Bv.HttpSignatureError,JCt=Bv.validateAlgorithm;WCt.exports={verifySignature:function(e,r){PF.object(e,"parsedSignature"),(typeof r=="string"||Buffer.isBuffer(r))&&(r=HCt.parseKey(r)),PF.ok(HCt.Key.isKey(r,[1,1]),"pubkey must be a sshpk.Key");var i=JCt(e.algorithm);if(i[0]==="hmac"||i[0]!==r.type)return!1;var s=r.createVerify(i[1]);return s.update(e.signingString),s.verify(e.params.signature,"base64")},verifyHMAC:function(e,r){PF.object(e,"parsedHMAC"),PF.string(r,"secret");var i=JCt(e.algorithm);if(i[0]!=="hmac")return!1;var s=i[1].toUpperCase(),a=wW.createHmac(s,r);a.update(e.signingString);var o=wW.createHmac(s,r);o.update(a.digest()),o=o.digest();var n=wW.createHmac(s,r);return n.update(new Buffer(e.params.signature,"base64")),n=n.digest(),typeof o=="string"?o===n:Buffer.isBuffer(o)&&!o.equals?o.toString("binary")===n.toString("binary"):o.equals(n)}}});var ZCt=l((k0i,$Ct)=>{var XCt=ICt(),wF=KCt(),MW=QCt(),LW=Ev();$Ct.exports={parse:XCt.parseRequest,parseRequest:XCt.parseRequest,sign:wF.signRequest,signRequest:wF.signRequest,createSigner:wF.createSigner,isSigner:wF.isSigner,sshKeyToPEM:LW.sshKeyToPEM,sshKeyFingerprint:LW.fingerprint,pemToRsaSSHKey:LW.pemToRsaSSHKey,verify:MW.verifySignature,verifySignature:MW.verifySignature,verifyHMAC:MW.verifyHMAC}});var e0t=l((C0i,YCt)=>{YCt.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-x Line truncated
`),i.update((r?r.split(";")[0].trim().toLowerCase():"")+`
`),i.update(t||""),i.update(`
`),i.digest("base64")}sU.calculateMac=function(t,e){var r=`hawk.1.header
`+e.ts+`
`+e.nonce+`
`+(e.method||"").toUpperCase()+`
`+e.resource+`
`+e.host.toLowerCase()+`
`+e.port+`
`+(e.hash||"")+`
`;e.ext&&(r=r+e.ext.replace("\\","\\\\").replace(`
`,"\\n")),r=r+`
`,e.app&&(r=r+e.app+`
`+(e.dlg||"")+`
`);var i=fH.createHmac(t.algorithm,t.key).update(r),s=i.digest("base64");return s};sU.header=function(t,e,r){var i=r.timestamp||Math.floor((Date.now()+(r.localtimeOffsetMsec||0))/1e3),s=r.credentials;if(!s||!s.id||!s.key||!s.algorithm||["sha1","sha256"].indexOf(s.algorithm)===-1)return"";var a={ts:i,nonce:r.nonce||a_r(6),method:e,resource:t.pathname+(t.search||""),host:t.hostname,port:t.port||(t.protocol==="http:"?80:443),hash:r.hash,ext:r.ext,app:r.app,dlg:r.dlg};!a.hash&&(r.payload||r.payload==="")&&(a.hash=o_r(r.payload,s.algorithm,r.contentType));var o=sU.calculateMac(s,a),n=a.ext!==null&&a.ext!==void 0&&a.ext!=="",u='Hawk id="'+s.id+'", ts="'+a.ts+'", nonce="'+a.nonce+(a.hash?'", hash="'+a.hash:"")+(n?'", ext="'+a.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+o+'"';return a.app&&(u=u+', app="'+a.app+(a.dlg?'", dlg="'+a.dlg:"")+'"'),u}});var KDt=l((oqi,jDt)=>{var zDt=require("stream").Stream,n_r=require("util");jDt.exports=ym;function ym(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}n_r.inherits(ym,zDt);ym.create=function(t,e){var r=new this;e=e||{};for(var i in e)r[i]=e[i];r.source=t;var s=t.emit;return t.emit=function(){return r._handleEmit(arguments),s.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(ym.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});ym.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ym.prototype.resume=function(){this._released||this.release(),this.source.resume()};ym.prototype.pause=function(){this.source.pause()};ym.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};ym.prototype.pipe=function(){var t=zDt.prototype.pipe.apply(this,arguments);return this.resume(),t};ym.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};ym.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var QDt=l((nqi,WDt)=>{var u_r=require("util"),HDt=require("stream").Stream,JDt=KDt();WDt.exports=pa;function pa(){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}u_r.inherits(pa,HDt);pa.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};pa.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};pa.prototype.append=function(t){var e=pa.isStreamLike(t);if(e){if(!(t instanceof JDt)){var r=JDt.create(t,{maxDataSize:Infinity,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};pa.prototype.pipe=function(t,e){return HDt.prototype.pipe.call(this,t,e),this.resume(),t};pa.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}};pa.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t=="undefined"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var i=pa.isStreamLike(r);i&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};pa.prototype._pipeNext=function(t){this._currentStream=t;var e=pa.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};pa.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};pa.prototype.write=function(t){this.emit("data",t)};pa.prototype.pause=function(){!this.pauseStreams||(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};pa.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};pa.prototype.end=function(){this._reset(),this.emit("end")};pa.prototype.destroy=function(){this._reset(),this.emit("close")};pa.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};pa.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var Line truncated
`),t.forEach(function(a){var o="--"+r.boundary+`\r
`;Object.keys(a).forEach(function(n){n!=="body"&&(o+=n+": "+a[n]+`\r
`)}),o+=`\r
`,s(o),s(a.body),s(`\r
`)}),s("--"+r.boundary+"--"),r.request.postambleCRLF&&s(`\r
`),i};zv.prototype.onRequest=function(t){var e=this,r=e.isChunked(t),i=t.data||t;e.setHeaders(r),e.chunked=r,e.body=e.build(i,r)};$Dt.Multipart=zv});var eRt=l(ZDt=>{"use strict";var YDt=require("url"),d_r=/^https?:/;function aU(t){this.request=t,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}aU.prototype.onRequest=function(t){var e=this;t.maxRedirects!==void 0&&(e.maxRedirects=t.maxRedirects),typeof t.followRedirect=="function"&&(e.allowRedirect=t.followRedirect),t.followRedirect!==void 0&&(e.followRedirects=!!t.followRedirect),t.followAllRedirects!==void 0&&(e.followAllRedirects=t.followAllRedirects),(e.followRedirects||e.followAllRedirects)&&(e.redirects=e.redirects||[]),t.removeRefererHeader!==void 0&&(e.removeRefererHeader=t.removeRefererHeader),t.followOriginalHttpMethod!==void 0&&(e.followOriginalHttpMethod=t.followOriginalHttpMethod)};aU.prototype.redirectTo=function(t){var e=this,r=e.request,i=null;if(t.statusCode>=300&&t.statusCode<400&&t.caseless.has("location")){var s=t.caseless.get("location");if(r.debug("redirect",s),e.followAllRedirects)i=s;else if(e.followRedirects)switch(r.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:i=s;break}}else if(t.statusCode===401){var a=r._auth.onResponse(t);a&&(r.setHeader("authorization",a),i=r.uri)}return i};aU.prototype.onResponse=function(t){var e=this,r=e.request,i=e.redirectTo(t);if(!i||!e.allowRedirect.call(r,t))return!1;if(r.debug("redirect to",i),t.resume&&t.resume(),e.redirectsFollowed>=e.maxRedirects)return r.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+r.uri.href)),!1;e.redirectsFollowed+=1,d_r.test(i)||(i=YDt.resolve(r.uri.href,i));var s=r.uri;return r.uri=YDt.parse(i),r.uri.protocol!==s.protocol&&delete r.agent,e.redirects.push({statusCode:t.statusCode,redirectUri:i}),e.followAllRedirects&&r.method!=="HEAD"&&t.statusCode!==401&&t.statusCode!==307&&(r.method=e.followOriginalHttpMethod?r.method:"GET"),delete r.src,delete r.req,delete r._started,t.statusCode!==401&&t.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"))),e.removeRefererHeader||r.setHeader("referer",s.href),r.emit("redirect"),r.init(),!0};ZDt.Redirect=aU});var sRt=l(cN=>{"use strict";var mqi=require("net"),y_r=require("tls"),NH=require("http"),tRt=require("https"),h_r=require("events"),b_r=require("assert"),g_r=require("util"),S_r=Ff().Buffer;cN.httpOverHttp=f_r;cN.httpsOverHttp=N_r;cN.httpOverHttps=I_r;cN.httpsOverHttps=T_r;function f_r(t){var e=new Tc(t);return e.request=NH.request,e}function N_r(t){var e=new Tc(t);return e.request=NH.request,e.createSocket=rRt,e.defaultPort=443,e}function I_r(t){var e=new Tc(t);return e.request=tRt.request,e}function T_r(t){var e=new Tc(t);return e.request=tRt.request,e.createSocket=rRt,e.defaultPort=443,e}function Tc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||NH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,s,a){for(var o=0,n=e.requests.length;o<n;++o){var u=e.requests[o];if(u.host===s&&u.port===a){e.requests.splice(o,1),u.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}g_r.inherits(Tc,h_r.EventEmitter);Tc.prototype.addRequest=function(e,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:e});return}i.createConnection({host:r.host,port:r.port,request:e})};Tc.prototype.createConnection=function(e){var r=this;r.createSocket(e,function(i){i.on("free",s),i.on("close",a),i.on("agentRemove",a),e.request.onSocket(i);function s(){r.emit("free",i,e.host,e.port)}function a(o){r.removeSocket(i),i.removeListener("free",s),i.removeListener("close",a),i.removeListener("agentRemove",a)}})};Tc.prototype.createSocket=function(e,r){var i=this,s={};i.sockets.push(s);var a=iRt({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});a.proxyAuth&&(a.headers=a.headers||{},a.headers["Proxy-Authorization"]="Basic "+S_r.from(a.proxyAuth).toString("base64")),Bb("making CONNECT request");var o=i.request(a);o.useChunkedEncodingByDefault=!1,o.once("response",n),o.once("upgrade",u),o.once("connect",p),o.once("error",m),o.end();function n(d){d.upgrade=!0}function u(d,y,c){process.nextTick(function(){p(d,y,c)})}function p(d,y,c){if(o.removeAllListeners(),y.removeAllListeners(),d.statusCode===200)b_r.equal(c.length,0),Bb("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=y,r(y);else{Bb("tunneling socket could not be established, statusCode=%d",d.statusCode);var h=new Error("tunneling socket could not be established, statu Line truncated
`,d.message,d.stack);var y=new Error("tunneling socket could not be established, cause="+d.message);y.code="ECONNRESET",e.request.emit("error",y),i.removeSocket(s)}};Tc.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createConnection(i)}};function rRt(t,e){var r=this;Tc.prototype.createSocket.call(r,t,function(i){var s=y_r.connect(0,iRt({},r.options,{servername:t.host,socket:i}));r.sockets[r.sockets.indexOf(i)]=s,e(s)})}function iRt(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var s=Object.keys(i),a=0,o=s.length;a<o;++a){var n=s[a];i[n]!==void 0&&(t[n]=i[n])}}return t}var Bb;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bb=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Bb=function(){};cN.debug=Bb});var uRt=l(aRt=>{"use strict";var A_r=require("url"),v_r=sRt(),oRt=["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"],nRt=["proxy-authorization"];function k_r(t){var e=t.port,r=t.protocol,i=t.hostname+":";return e?i+=e:r==="https:"?i+="443":i+="80",i}function C_r(t,e){var r=e.reduce(function(i,s){return i[s.toLowerCase()]=!0,i},{});return Object.keys(t).filter(function(i){return r[i.toLowerCase()]}).reduce(function(i,s){return i[s]=t[s],i},{})}function x_r(t,e){var r=t.proxy,i={proxy:{host:r.hostname,port:+r.port,proxyAuth:r.auth,headers:e},headers:t.headers,ca:t.ca,cert:t.cert,key:t.key,passphrase:t.passphrase,pfx:t.pfx,ciphers:t.ciphers,rejectUnauthorized:t.rejectUnauthorized,secureOptions:t.secureOptions,secureProtocol:t.secureProtocol};return i}function q_r(t,e){var r=t.protocol==="https:"?"https":"http",i=e.protocol==="https:"?"Https":"Http";return[r,i].join("Over")}function D_r(t){var e=t.uri,r=t.proxy,i=q_r(e,r);return v_r[i]}function Kv(t){this.request=t,this.proxyHeaderWhiteList=oRt,this.proxyHeaderExclusiveList=[],typeof t.tunnel!="undefined"&&(this.tunnelOverride=t.tunnel)}Kv.prototype.isEnabled=function(){var t=this,e=t.request;return typeof t.tunnelOverride!="undefined"?t.tunnelOverride:e.uri.protocol==="https:"};Kv.prototype.setup=function(t){var e=this,r=e.request;if(t=t||{},typeof r.proxy=="string"&&(r.proxy=A_r.parse(r.proxy)),!r.proxy||!r.tunnel)return!1;t.proxyHeaderWhiteList&&(e.proxyHeaderWhiteList=t.proxyHeaderWhiteList),t.proxyHeaderExclusiveList&&(e.proxyHeaderExclusiveList=t.proxyHeaderExclusiveList);var i=e.proxyHeaderExclusiveList.concat(nRt),s=e.proxyHeaderWhiteList.concat(i),a=C_r(r.headers,s);a.host=k_r(r.uri),i.forEach(r.removeHeader,r);var o=D_r(r),n=x_r(r,a);return r.agent=o(n),!0};Kv.defaultProxyHeaderWhiteList=oRt;Kv.defaultProxyHeaderExclusiveList=nRt;aRt.Tunnel=Kv});var mRt=l((pRt,Wv)=>{(function(){var t,e,r,i,s,a;typeof performance!="undefined"&&performance!==null&&performance.now?Wv.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Wv.exports=function(){return(t()-s)/1e6},e=process.hrtime,t=function(){var o;return o=e(),o[0]*1e9+o[1]},i=t(),a=process.uptime()*1e9,s=i-a):Date.now?(Wv.exports=function(){return Date.now()-r},r=Date.now()):(Wv.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(pRt)});var IRt=l((dqi,cRt)=>{"use strict";var R_r=require("http"),lRt=require("https"),Hv=require("url"),IH=require("util"),oU=require("stream"),nU=require("zlib"),TH=svt(),E_r=dvt(),P_r=ZCt(),w_r=_W(),dRt=LF(),yRt=u0t(),M_r=m0t(),L_r=F_(),hRt=Mq(),__r=y0t().strict,lN=j_(),F_r=oK(),U_r=g0t(),B_r=D0t().Querystring,G_r=IDt().Har,O_r=RDt().Auth,V_r=ODt().OAuth,j_r=VDt(),z_r=XDt().Multipart,K_r=eRt().Redirect,AH=uRt().Tunnel,dN=mRt(),Jv=Ff().Buffer,bRt=lN.safeStringify,W_r=lN.isReadStream,H_r=lN.toBase64,J_r=lN.defer,gRt=lN.copy,Q_r=lN.version,SRt=F_r.jar(),fRt={};function $_r(t,e){var r={};for(var i in e){var s=t.indexOf(i)===-1;s&&(r[i]=e[i])}return r}function X_r(t,e){var r={};for(var i in e){var s=t.indexOf(i)!==-1,a=typeof e[i]=="function";s&&a||(r[i]=e[i])}return r}function NRt(){var t=this;return{uri:t.uri,method:t.method,headers:t.headers}}function Z_r(){var t=this;return{statusCode:t.statusCode,body:t.body,headers:t.headers,request:NRt.call(t.request)}}function ci(t){var e=this;t.har&&(e._har=new G_r(e),t=e._har.options(t)),oU.Stream.call(e);var r=Object.keys(ci.prototype),i=$_r(r,t);L_r(e,i),t=X_r(r,t),e.readable=!0,e.writable=!0,t.method&&(e.explicitMethod=!0),e._qs=new B_r(e),e._auth=new O_r(e),e._oauth=new V_r(e),e._multipart=new z_r(e),e._redirect=new K_r(e),e._tunnel=new AH(e),e.init(t)}IH.inherits(ci,oU.Stream);ci.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function yo(){ci.debug&&con Line truncated
`+o),r(a,null,null);return}let u;try{let y=o.hosts;if(!y||!y.length){a=new Error("no host available: "+o),r(a,null,null);return}u=y[0]}catch(y){r(y,null,null);return}let p=[],m=[],d=0;try{d=u.ttl,p=u.up.domains,m=u.up.domains;let y=u.io.domains[0],c=u.rs.domains[0],h=u.rsf.domains[0],g=u.api.domains[0],S=new uy(p,m,y,c,h,g);r(null,S,d)}catch(y){r(y,null,null)}}})}});var Ac=l(_i=>{var uEt=require("url"),pEt=require("crypto");_i.isTimestampExpired=function(t){return t<Math.trunc(Date.now()/1e3)};_i.formatDateUTC=function(t,e){function r(y,c){let h=c||2,g=y.toString();for(;g.length<h;)g="0"+g;return g}let i=new Date(t),s=i.getUTCFullYear(),a=i.getUTCMonth()+1,o=i.getUTCDate(),n=i.getUTCHours(),u=i.getUTCMinutes(),p=i.getUTCSeconds(),m=i.getUTCMilliseconds(),d=e||"YYYY-MM-DDTHH:MM:ss.SSSZ";return d=d.replace(/YYYY/g,s.toString()).replace(/MM/g,r(a)).replace(/DD/g,r(o)).replace(/HH/g,r(n)).replace(/mm/g,r(u)).replace(/ss/g,r(p)).replace(/SSS/g,r(m,3)),d};_i.encodedEntry=function(t,e){let r=t;return e!==void 0&&(r+=":"+e),_i.urlsafeBase64Encode(r)};_i.decodedEntry=function(t){let[e,r]=_i.urlSafeBase64Decode(t).split(":");return[e,r]};_i.getAKFromUptoken=function(t){var e=t.indexOf(":");return t.substring(0,e)};_i.getBucketFromUptoken=function(t){var e=t.lastIndexOf(":"),r=t.substring(e+1),i=_i.urlSafeBase64Decode(r),s=JSON.parse(i),a=s.scope,o=a.indexOf(":");return o==-1?a:a.substring(0,o)};_i.base64ToUrlSafe=function(t){return t.replace(/\//g,"_").replace(/\+/g,"-")};_i.urlSafeToBase64=function(t){return t.replace(/_/g,"/").replace(/-/g,"+")};_i.urlsafeBase64Encode=function(t){var e=Buffer.from(t).toString("base64");return _i.base64ToUrlSafe(e)};_i.urlSafeBase64Decode=function(t){return Buffer.from(_i.urlSafeToBase64(t),"base64").toString()};_i.hmacSha1=function(t,e){var r=pEt.createHmac("sha1",e);return r.update(t),r.digest("base64")};_i.getMd5=function(t){var e=pEt.createHash("md5");return e.update(t).digest("hex")};_i.generateAccessToken=function(t,e,r){let i=new uEt.URL(e),a=i.pathname+i.search+`
`;r&&(a+=r);let o=_i.hmacSha1(a,t.secretKey),n=_i.base64ToUrlSafe(o);return"QBox "+t.accessKey+":"+n};var bBr={"!":!0,"#":!0,$:!0,"%":!0,"&":!0,"\\":!0,"*":!0,"+":!0,"-":!0,".":!0,0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,A:!0,B:!0,C:!0,D:!0,E:!0,F:!0,G:!0,H:!0,I:!0,J:!0,K:!0,L:!0,M:!0,N:!0,O:!0,P:!0,Q:!0,R:!0,S:!0,T:!0,U:!0,W:!0,V:!0,X:!0,Y:!0,Z:!0,"^":!0,_:!0,"`":!0,a:!0,b:!0,c:!0,d:!0,e:!0,f:!0,g:!0,h:!0,i:!0,j:!0,k:!0,l:!0,m:!0,n:!0,o:!0,p:!0,q:!0,r:!0,s:!0,t:!0,u:!0,v:!0,w:!0,x:!0,y:!0,z:!0,"|":!0,"~":!0};function gBr(t){return t.charCodeAt(0)>=128?!1:bBr[t]}_i.canonicalMimeHeaderKey=function(t){for(let e of t)if(!gBr(e))return t;return t.split("-").map(function(e){return e.substring(0,1).toUpperCase()+e.substring(1).toLowerCase()}).join("-")};_i.generateAccessTokenV2=function(t,e,r,i,s,a){let o=new uEt.URL(e),n=o.pathname,u=o.search,p=o.host,m=o.port,d=r.toUpperCase()+" "+n;if(u&&(d+=u),d+=`
Host: `+p,m&&(d+=":"+m),i?d+=`
Content-Type: `+i:d+=`
Content-Type: application/x-www-form-urlencoded`,a){let h=Object.keys(a).reduce(function(S,N){return S[_i.canonicalMimeHeaderKey(N)]=a[N],S},{}),g=Object.keys(h).filter(function(S){return S.startsWith("X-Qiniu-")&&S.length>"X-Qiniu-".length}).sort().map(function(S){return S+": "+h[S]}).join(`
`);g&&(d+=`
`+g)}d+=`
`,s&&i!=="application/octet-stream"&&(d+=s);let y=_i.hmacSha1(d,t.secretKey),c=_i.base64ToUrlSafe(y);return"Qiniu "+t.accessKey+":"+c};_i.isQiniuCallback=function(t,e,r,i,s){let a;return i.startsWith("Qiniu")?a=_i.generateAccessTokenV2(t,e,s.reqMethod,s.reqContentType,r,s.reqHeaders):a=_i.generateAccessToken(t,e,r),a===i};_i.prepareZone=function(t,e,r,i){let s=lU();var a=!1;t.config.zone!==""&&t.config.zone!=null&&(t.config.zoneExpire===-1?a=!0:_i.isTimestampExpired(t.config.zoneExpire)||(a=!0)),a?i(null,t):s.getZoneInfo(e,r,function(o,n,u){if(o){i(o);return}t.config.zone=n,t.config.zoneExpire=u+Math.trunc(Date.now()/1e3),i(null,t)})}});var lEt=l(mEt=>{var SBr=ek(),cEt=Ac();function NN(t){this.mac=t.mac}NN.prototype=Object.create(SBr.Middleware.prototype);NN.prototype.constructor=NN;NN.prototype.send=function(t,e){let r=t.urllibOptions.headers;return this._shouldSignTime()&&(r["X-Qiniu-Date"]=cEt.formatDateUTC(new Date,"YYYYMMDDTHHmmssZ")),this.mac.accessKey&&(r.Authorization=cEt.generateAccessTokenV2(this.mac,t.url,t.urllibOptions.method,t.urllibOptions.contentType,t.urllibOptions.content,r)),e(t)};NN.prototype._shouldSignTime=function(){let t=this.mac.options.disableQiniuTimestampSignature;return t===null&&(t=(process.env.DISABLE_QINIU_TIMESTAMP_SIGNATURE||"").toLowerCase()==="true"),!t};mEt.QiniuAuthMiddleware=NN});var Ob=l((_qi,dEt)=>{var yEt=ek();dEt.exports={composeMiddlewares:yEt.composeMiddlewares,Middleware:yEt.Middleware,RetryDomainsMiddleware:tEt().RetryDomainsMiddleware,UserAgentMiddleware:iEt().UserAgentMiddleware,QiniuAuthMiddleware:lEt().QiniuAuthMiddleware}});var jb=l(dU=>{var _l=require("fs"),BH=require("os"),fBr=require("path"),NBr=require("readline"),IBr=require("stream"),{Endpoint:hEt}=bN(),{Region:bEt,SERVICE_NAME:py}=wl();function gEt(t){this.regions=t}gEt.prototype.getRegions=function(){return Promise.resolve(this.regions)};var TBr=function(){let t={_memoCache:new Map,persistPath:fBr.join(BH.tmpdir(),"qn-regions-cache.jsonl"),lastShrinkAt:new Date(0),shrinkInterval:-1,shouldShrinkExpiredRegions:!1},e=new Map;function r(N){this._memoCache=t._memoCache,this.cacheKey=N.cacheKey,this.baseRegionsProvider=N.baseRegionsProvider,this.lastShrinkAt=new Date(0),this.shrinkInterval=N.shrinkInterval||86400*1e3,this.shouldShrinkExpiredRegions=N.shouldShrinkExpiredRegions,this.persistPath=N.persistPath,!this.persistPath&&this.persistPath!==null&&(this.persistPath=t.persistPath)}r.cleanupCache=function(N){N=N||{};let T=N.instance||t,I;return N.isClearAll?(T._memoCache.clear(),T.persistPath?I=new Promise((v,A)=>{_l.unlink(T.persistPath,D=>{if(D&&D.code!=="ENOENT"){A(D);return}v()})}):I=Promise.resolve()):I=s.call(T),I},r.prototype.getRegions=function(){let N=Promise.resolve();i.call(this)&&(N=s.call(this));let T=[a,o,n];return N.then(()=>T.reduce((I,v)=>I.then(A=>A.length&&A.every(D=>D.isLive)?A:v.call(this,A)),Promise.resolve([])))},r.prototype.setRegions=function(N){return this._memoCache.set(this.cacheKey,N),this.persistPath?new Promise(T=>{_l.appendFile(this.persistPath,g(this.cacheKey,N)+BH.EOL,I=>{if(I){T();return}T()})}):Promise.resolve()};function i(){return!(this.lastShrinkAt.getTime()+this.shrinkInterval>=Date.now())}function s(){if(this.shouldShrinkExpiredRegions)for(let[A,D]of this._memoCache.entries()){let G=D.filter(E=>E.isLive);G.length?this._memoCache.set(A,G):this._memoCache.delete(A)}if(!this.persistPath)return this.lastShrinkAt=Date.now(),Promise.resolve();let N=new Map,T=this.persistPath+".shrink",I=this.persistPath+".shrink.lock",v=()=>{try{_l.unlinkSync(I)}catch(A){A.code!=="ENOENT"&&console.error(A)}};return new Promise((A,D)=>{_l.open(I,"wx",(G,E)=>{if(G){D(G);return}_l.closeSync(E),A()}),process.on("exit",v)}).then(()=>u(({cacheKey:A,regions:D})=>{let G=this.shouldShrinkExpiredRegions?D.filter(j=>j.isLive):D;if(!G.length)return;if(!N.has(A)){N.set(A,G);return}let E=N.get(A);N.set(A,S(E,G))},{persistPath:this.persistPath})).then(()=>{let A=N.entries(),D=new IBr.Readable({read:function(){let E=A.next();if(E.done)this.push(null);else{let[j,L]=E.value;this.push(g(j,L)+BH.EOL)}}}),G=_l.createWriteStream(T);return new Promise((E,j)=>{let L=D.pipe(G);L.on("close",E),L.on("error",j)})}).then(()=>new Promise(A=>{_l.rename(T,this.persistPath,()=>A())})).then(()=>(this.lastShrinkAt=new Date,v(),process.removeListener("exit",v),Promise.resolve())).catch(A=>A.code==="EEXIST"&&A.path===I?(this.lastShrinkAt=new Date,Promise.resolve()):(v(),process.removeListener("exit",v),Promise.reject(A)))}function a(N){N=N||[];let T=this._memoCache.get(this.cacheKey);return Array.isArray(T)&&T.length?Promise.resolve(T):Promise.resolve(N)}function o(N){return N=N||[],this.persistPath?p.call(this).then(()=>a.call(this)).catch(()=>Promise.resolve(N)):Promise.resolve(N)}function n(N){N=N||[];let T=e.get(this.cacheKey);return T||(T=this.baseRegionsProvider.getRegions().then(I=>I.length?this.setRegions(I):Promise.resolve()).then(()=>a.call(this)).catch(I=>N.length?Promise.resolve(N):Promise.reject(I)),e.set(th Line truncated
`+i.message,Promise.reject(i)}})};function e(r,i){i=i||{};let s={};i.preferredScheme&&(s.defaultScheme=i.preferredScheme);let a=n=>Array.isArray(n)?n.map(u=>new hEt(u,s)):[],o={[py.UC]:a(r.uc.domains),[py.UP]:a(r.up.domains),[py.UP_ACC]:a(r.up.acc_domains),[py.IO]:a(r.io.domains),[py.RS]:a(r.rs.domains),[py.RSF]:a(r.rsf.domains),[py.API]:a(r.api.domains),[py.S3]:a(r.s3.domains)};return o=Object.keys(r).map(n=>[n,r[n]]).reduce((n,[u,p])=>(p&&Array.isArray(p.domains)&&!(u in n)&&(n[u]=a(p.domains)),n),o),new bEt({regionId:r.region,s3RegionId:r.s3.region_alias,services:o,ttl:r.ttl,createTime:new Date})}return t}();dU.StaticRegionsProvider=gEt;dU.CachedRegionsProvider=TBr;dU.QueryRegionsProvider=kBr});var Ml=l(Mo=>{var GH=require("os"),CBr=pU(),{Endpoint:SEt}=bN(),{Region:xBr}=wl(),{StaticEndpointsProvider:fEt}=Yv(),qBr=require("crypto"),{CachedRegionsProvider:DBr,QueryRegionsProvider:RBr}=jb();Mo.ACCESS_KEY="<PLEASE APPLY YOUR ACCESS KEY>";Mo.SECRET_KEY="<DONT SEND YOUR SECRET KEY TO ANYONE>";var EBr=function(){return"QiniuNodejs/"+CBr.version+" ("+GH.type()+"; "+GH.platform()+"; "+GH.arch()+"; )"};Mo.USER_AGENT=EBr();Mo.BLOCK_SIZE=4*1024*1024;Mo.FormMimeUrl="application/x-www-form-urlencoded";Mo.FormMimeJson="application/json";Mo.FormMimeRaw="application/octet-stream";Mo.RS_HOST="rs.qiniu.com";Mo.RPC_TIMEOUT=6e5;var IN=["kodo-config.qiniuapi.com","uc.qbox.me"];Object.defineProperty(Mo,"QUERY_REGION_BACKUP_HOSTS",{get:()=>IN,set:t=>{IN=t}});var sk="uc.qiniuapi.com";Object.defineProperty(Mo,"QUERY_REGION_HOST",{get:()=>sk,set:t=>{sk=t,IN=[]}});var NEt=IN.slice(),OH=sk;Object.defineProperty(Mo,"UC_HOST",{get:()=>OH,set:t=>{OH=t,NEt=[],sk=t,IN=[]}});Mo.RPC_HTTP_AGENT=null;Mo.RPC_HTTPS_AGENT=null;var PBr=function(){function t(i){i=i||{},this.useHttpsDomain=!!i.useHttpsDomain,this.accelerateUploading=!!i.accelerateUploading,this.ucEndpointsProvider=i.ucEndpointsProvider||null,this.queryRegionsEndpointsProvider=i.queryRegionsEndpointsProvider||null,this.regionsProvider=i.regionsProvider||null,this.regionsQueryResultCachePath=i.regionsQueryResultCachePath,this.useCdnDomain=!!i.useCdnDomain,this.zone=i.zone||null,this.zoneExpire=i.zoneExpire||-1}t.prototype.getUcEndpointsProvider=function(){return this.ucEndpointsProvider?this.ucEndpointsProvider:new fEt([OH].concat(NEt).map(i=>new SEt(i,{defaultScheme:this.useHttpsDomain?"https":"http"})))},t.prototype._getQueryRegionEndpointsProvider=function(){if(this.queryRegionsEndpointsProvider)return this.queryRegionsEndpointsProvider;if(this.ucEndpointsProvider)return this.ucEndpointsProvider;let i=[sk].concat(IN);return new fEt(i.map(s=>new SEt(s,{defaultScheme:this.useHttpsDomain?"https":"http"})))},t.prototype.getRegionsProvider=function(i){if(this.regionsProvider)return Promise.resolve(this.regionsProvider);let s=e.call(this);if(s)return Promise.resolve(s);let{bucketName:a,accessKey:o}=i||{};return!a||!o?Promise.reject(new Error("bucketName and accessKey is required for query regions")):r.call(this,{bucketName:a,accessKey:o})};function e(){let i,s;if(this.zoneExpire>0?(i=this.zoneExpire-Math.trunc(Date.now()/1e3),s=this.zone&&i>0):(i=-1,s=Boolean(this.zone)),!!s)return xBr.fromZone(this.zone,{ttl:i,isPreferCdnHost:this.useCdnDomain,preferredScheme:this.useHttpsDomain?"https":"http"})}function r(i){let{bucketName:s,accessKey:a}=i,o=this._getQueryRegionEndpointsProvider();return o.getEndpoints().then(n=>{let p=[n.map(m=>m.host).sort().reduce((m,d)=>m.update(d),qBr.createHash("md5")).digest("hex"),a,s,this.accelerateUploading.toString()].join(":");return new DBr({persistPath:this.regionsQueryResultCachePath,cacheKey:p,baseRegionsProvider:new RBr({accessKey:a,bucketName:s,endpointsProvider:o,preferredScheme:this.useHttpsDomain?"https":"http"})})})}return t}();Mo.Config=PBr;Mo.Zone=lU().Zone});var fN=l(IEt=>{var TEt=Ml();IEt.Mac=wBr;var MBr={disableQiniuTimestampSignature:null};function wBr(t,e,r){this.accessKey=t||TEt.ACCESS_KEY,this.secretKey=e||TEt.SECRET_KEY,this.options=Object.assign({},MBr,r)}});var VH=l((Gqi,AEt)=>{"use strict";AEt.exports=LBr;var _Br=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,FBr=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,UBr="$1\uFFFD$2";function LBr(t){return String(t).replace(FBr,UBr).replace(_Br,encodeURI)}});var CEt=l(vEt=>{var BBr=require("url"),GBr=require("crypto"),OBr=Rh(),VBr=Ac(),jBr=fN(),kEt=VH();vEt.CdnManager=Fl;function Fl(t){this.mac=t||new jBr.Mac}Fl.prototype.getCdnLogList=function(t,e,r){var i={day:e,domains:t.join(";")};ak(this.mac,"/v2/tune/log/list",i,r)};Fl.prototype.getFluxData=function(t,e,r,i,s){var a={startDate:t,endDate:e,granularity:r,domains:i.join(";")};ak(this.mac,"/v2/tune/flux",a,s)};Fl.prototype.getBandwidthData=function(t,e,r,i,s){var a={startDate:t,endDate:e,granularity:r,domains:i.join(";")};ak(this.mac,"/v2/tune/bandwidth",a,s)};Fl.prototype.prefetchUrls=function(t,e){var r={urls:t};ak(this.mac,"/v2/tune/prefetch",r,e)} Line truncated
`+a.message,r.error&&(a.cause=r.error),Promise.reject(a))).then(()=>this.retry(t))}).then(()=>r.error?Promise.reject(r.error):r.result)};xEt.Retrier=hU});var REt=l(DEt=>{function TN(){}TN.prototype.isImportant=function(t){return!1};TN.prototype.initContext=function(t){throw new Error("Method not implemented.")};TN.prototype.shouldRetry=function(t){throw new Error("Method not implemented.")};TN.prototype.prepareRetry=function(t){throw new Error("Method not implemented.")};TN.prototype.afterRetry=function(){return Promise.resolve()};DEt.RetryPolicy=TN});var zb=l((Kqi,EEt)=>{EEt.exports={Retrier:qEt().Retrier,RetryPolicy:REt().RetryPolicy}});var bU=l(PEt=>{var{RetryPolicy:zBr}=zb(),{StaticEndpointsProvider:KBr}=Yv();function Kb(t){this.skipInitContext=t.skipInitContext||!1,this.endpoints=t.endpoints||[],this.endpointsProvider=t.endpointsProvider||new KBr([])}Kb.prototype=Object.create(zBr.prototype);Kb.prototype.constructor=Kb;Kb.prototype.initContext=function(t){return this.skipInitContext?Promise.resolve():this.endpoints.length>0?([t.endpoint,...t.alternativeEndpoints]=this.endpoints.slice(),Promise.resolve()):this.endpointsProvider.getEndpoints().then(e=>{if(e.length<0)return Promise.reject(new Error("There isn't available endpoint"));[t.endpoint,...t.alternativeEndpoints]=e.slice()})};Kb.prototype.shouldRetry=function(t){return t.alternativeEndpoints.length>0};Kb.prototype.prepareRetry=function(t){return t.endpoint=t.alternativeEndpoints.shift(),t.endpoint?Promise.resolve():Promise.reject(new Error("There isn't available endpoint for next try"))};PEt.EndpointsRetryPolicy=Kb});var gU=l(wEt=>{var{RetryPolicy:WBr}=zb(),{Region:HBr}=wl(),{StaticRegionsProvider:JBr}=jb(),{StaticEndpointsProvider:QBr}=Yv();function vc(t){if(this.serviceNames=t.serviceNames||[],this.serviceNames.length||(this.serviceNames=[t.serviceName]),!this.serviceNames.length)throw new TypeError("Must provide one service name at least");this.serviceName=this.serviceNames[0],this.regions=t.regions||[],this.regionsProvider=t.regionsProvider||new JBr([]),this.preferredEndpoints=t.preferredEndpoints||[],this.preferredEndpointsProvider=t.preferredEndpointsProvider||new QBr([]),this.onChangedRegion=t.onChangedRegion}vc.prototype=Object.create(WBr.prototype);vc.prototype.constructor=vc;vc.prototype.initContext=function(t){let e=this.regions.length>0?this.regions:this.regionsProvider.getRegions(),r=this.preferredEndpoints.length>0?this.preferredEndpoints:this.preferredEndpointsProvider.getEndpoints();return Promise.all([e,r]).then(([i,s])=>this._initRegions({context:t,regions:i.slice(),preferredEndpoints:s.slice()})).then(()=>this._prepareEndpoints(t))};vc.prototype.shouldRetry=function(t){return t.alternativeRegions.length>0||t.alternativeServiceNames.length>0};vc.prototype.prepareRetry=function(t){let e=Promise.resolve();if(t.alternativeServiceNames.length)t.serviceName=t.alternativeServiceNames.shift();else if(t.alternativeRegions.length)t.region=t.alternativeRegions.shift(),[t.serviceName,...t.alternativeServiceNames]=this.serviceNames,typeof this.onChangedRegion=="function"&&(e=this.onChangedRegion(t));else return Promise.reject(new Error("There isn't available region or service for next try"));return e.then(()=>this._prepareEndpoints(t))};vc.prototype._getPreferredRegionInfo=function(t){let{regions:e,preferredEndpoints:r}=t,i=this.serviceNames.slice(),s=-1,a=e.findIndex(o=>i.some((n,u)=>o.services[n].some(p=>{let m=r.some(d=>d.host===p.host);return m&&(s=u),m})));return{preferredServiceIndex:s,preferredRegionIndex:a}};vc.prototype._initRegions=function(t){let{context:e,regions:r,preferredEndpoints:i}=t;if(!r.length&&!i.length)return Promise.reject(new Error("There isn't available region or preferred endpoint"));if(!i.length)return[e.region,...e.alternativeRegions]=r,[e.serviceName,...e.alternativeServiceNames]=this.serviceNames,Promise.resolve();let{preferredRegionIndex:s,preferredServiceIndex:a}=this._getPreferredRegionInfo({regions:r,preferredEndpoints:i});return s<0?([e.serviceName,...e.alternativeServiceNames]=this.serviceNames,this.serviceName=e.serviceName,e.region=new HBr({services:{[e.serviceName]:i}}),e.alternativeRegions=r):(e.alternativeRegions=r,[e.region]=e.alternativeRegions.splice(s,1),e.alternativeServiceNames=this.serviceNames.slice(),[e.serviceName]=e.alternativeServiceNames.splice(a,1),this.serviceName=e.serviceName),Promise.resolve()};vc.prototype._prepareEndpoints=function(t){let e=Promise.resolve();for([t.endpoint,...t.alternativeEndpoints]=t.region.services[t.serviceName]||[];!t.endpoint;)if(t.alternativeServiceNames.length)t.serviceName=t.alternativeServiceNames.shift(),this.serviceName=t.serviceName,[t.endpoint,...t.alternativeEndpoints]=t.region.services[t.serviceName]||[];else if(t.alternativeRegions.length)t.region=t.alternativeRegions.shift(),[t.serviceName,...t.alternativeServiceNames]=this.serviceNames,this.serviceName=t.serviceName,[t.endpoint,...t.alternativeEndpoints]=t.region.services[t.serviceName]||[],type Line truncated
`+t.message,t.noNeedRetry=!0,t}ok.getNoNeedRetryError=$Br;function XBr(t){return typeof t!="function"?()=>{}:(...e)=>{try{return t(...e)}catch(r){console.warn(`WARNING:
qiniu SDK will migrate API to Promise style gradually.
The callback style will not be removed for now,
but you should catch your error in your callback function itself`),console.error(r)}}}function ZBr(t,e){if(typeof e!="function")return;let r=XBr(e);t.then(({data:i,resp:s})=>{r(null,i,s)}).catch(i=>{r(i,null,i.resp)})}ok.handleReqCallback=ZBr});var UEt=l(zH=>{var YBr=require("fs"),eGr=require("path"),tGr=require("stream").Readable,rGr=jH(),iGr=Oy(),sGr=CO(),aGr=Ml(),AN=Ac(),oGr=Vb(),{SERVICE_NAME:KH}=wl(),{ResponseWrapper:nGr}=rk(),{EndpointsRetryPolicy:LEt}=bU(),{RegionsRetryPolicy:_Et}=gU(),{Retrier:uGr}=zb(),{AccUnavailableRetryPolicy:FEt,handleReqCallback:WH}=SU();zH.FormUploader=vN;zH.PutExtra=HH;function vN(t){this.config=t||new aGr.Config}function JH(t){let{bucketName:e,accessKey:r,retryable:i=!0}=t;return this.config.getRegionsProvider({bucketName:e,accessKey:r}).then(s=>{let a;return this.config.accelerateUploading?a=[new FEt,new LEt({skipInitContext:!0}),new _Et({regionsProvider:s,serviceNames:[KH.UP_ACC,KH.UP]})]:a=[new LEt({skipInitContext:!0}),new _Et({regionsProvider:s,serviceNames:[KH.UP]})],new uGr({retryPolicies:a,onBeforeRetry:(o,n)=>o.error?i:n instanceof FEt?!0:i&&o.result&&o.result.needRetry()})})}function HH(t,e,r,i,s,a){this.fname=t||"",this.params=e||{},this.mimeType=r||null,this.crc32=i||null,this.checkCrc=s||!0,this.metadata=a||{}}vN.prototype.putStream=function(t,e,r,i,s){let a=this.config.useHttpsDomain?"https":"http";i=$H(i,{key:e});let o=JH.call(this,{bucketName:AN.getBucketFromUptoken(t),accessKey:AN.getAKFromUptoken(t),retryable:!1}).then(n=>Promise.all([n,n.initContext()])).then(([n,u])=>n.retry({func:p=>QH(p.endpoint.getValue({scheme:a}),t,e,r,i),context:u}));return WH(o,s),o};function QH(t,e,r,i,s){let a=pGr(e,r,i,s);return new Promise((o,n)=>{oGr.postMultipart(t,a,function(u,p,m){if(u){u.resp=m,n(u);return}o(new nGr({data:p,resp:m}))})})}vN.prototype.put=function(t,e,r,i,s){let a=this.config.useHttpsDomain?"https":"http";i=$H(i,{key:e});let o=JH.call(this,{bucketName:AN.getBucketFromUptoken(t),accessKey:AN.getAKFromUptoken(t)}).then(n=>Promise.all([n,n.initContext()])).then(([n,u])=>n.retry({func:p=>{let m=new tGr;return m.push(r),m.push(null),QH(p.endpoint.getValue({scheme:a}),t,e,m,i)},context:u}));return WH(o,s),o};vN.prototype.putWithoutKey=function(t,e,r,i){return this.put(t,null,e,r,i)};function pGr(t,e,r,i){let s=new sGr;s.field("token",t),e!=null&&s.field("key",e);let a=i.fname.replace(/"/g,"%22").replace(/\r/g,"%0D").replace(/\n/g,"%0A");s.stream("file",r,a,i.mimeType);for(let n in i.params)n.startsWith("x:")&&s.field(n,i.params[n].toString());for(let n in i.metadata)n.startsWith("x-qn-meta-")&&s.field(n,i.metadata[n].toString());let o=[];return r.on("data",function(n){o.push(n)}),r.on("end",function(){if(i.checkCrc)if(i.crc32==null){o=Buffer.concat(o);let n=parseInt("0x"+rGr(o));s.field("crc32",n.toString())}else s.field("crc32",i.crc32)}),s}vN.prototype.putFile=function(t,e,r,i,s){let a=this.config.useHttpsDomain?"https":"http";i=i||new HH,i.mimeType||(i.mimeType=iGr.getType(r)),i.fname||(i.fname=eGr.basename(r)),i=$H(i,{key:e});let o=JH.call(this,{bucketName:AN.getBucketFromUptoken(t),accessKey:AN.getAKFromUptoken(t)}).then(n=>Promise.all([n,n.initContext()])).then(([n,u])=>n.retry({func:p=>{let m=YBr.createReadStream(r);return QH(p.endpoint.getValue({scheme:a}),t,e,m,i)},context:u}));return WH(o,s),o};vN.prototype.putFileWithoutKey=function(t,e,r,i){return this.putFile(t,null,e,r,i)};function $H(t,e){return t=t||new HH,t.mimeType||(t.mimeType="application/octet-stream"),t.fname||(t.fname=e.key||"fname"),t}});var XH=l(($qi,BEt)=>{BEt.exports=require("stream")});var KEt=l((Xqi,GEt)=>{"use strict";function OEt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function VEt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?OEt(Object(r),!0).forEach(function(i){mGr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OEt(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function mGr(t,e,r){return e=jEt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cGr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zEt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,jEt(i.key),i)}}function lGr(t,e,r){return e&&zEt(t.prototype,e),r&&zEt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jEt(t){var e=dGr(t,"string");return typeof e=="symbol"?e:String(e)}function dGr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive Line truncated
Host: `+i,r&&(s+=`
Content-Type: `+r),s+=`
`,e&&r&&r!="application/octet-stream"&&(s+=e);var a=Yb.hmacSha1(s,this.secretKey),o=Yb.base64ToUrlSafe(a);return o};Nk.prototype.sign=function(t){var e=Yb.hmacSha1(t,this.secretKey),r=Yb.base64ToUrlSafe(e);return this.accessKey+":"+r};Nk.prototype.signJson=function(t){var e=JSON.stringify(t),r=Yb.urlsafeBase64Encode(e),i=Yb.hmacSha1(r,this.secretKey),s=Yb.base64ToUrlSafe(i),a=this.accessKey+":"+s+":"+r;return a};gPt.exports=bPt=Nk});var fPt=l(Ik=>{var _3r=Ac(),F3r=Rh();Ik.sendMessage=function(t,e,r){t=JSON.stringify(t);var i={requestURI:"https://sms.qiniuapi.com/v1/message",reqBody:t,mac:e};FU(i,r)};Ik.sendSingleMessage=function(t,e,r){t=JSON.stringify(t);var i={requestURI:"https://sms.qiniuapi.com/v1/message/single",reqBody:t,mac:e};FU(i,r)};Ik.sendOverseaMessage=function(t,e,r){t=JSON.stringify(t);var i={requestURI:"https://sms.qiniuapi.com/v1/message/oversea",reqBody:t,mac:e};FU(i,r)};Ik.sendFulltextMessage=function(t,e,r){t=JSON.stringify(t);var i={requestURI:"https://sms.qiniuapi.com/v1/message/fulltext",reqBody:t,mac:e};FU(i,r)};function FU(t,e){var r="application/json",i=_3r.generateAccessTokenV2(t.mac,t.requestURI,"POST",r,t.reqBody),s={Authorization:i,"Content-Type":r},a={method:"POST",headers:s,data:t.reqBody};F3r.request(t.requestURI,a,e)}});var IPt=l((NDi,NPt)=>{NPt.exports={auth:{digest:fN()},cdn:CEt(),form_up:UEt(),resume_up:X1t(),rs:sPt(),fop:pPt(),conf:Ml(),httpc:{middleware:Ob(),HttpClient:cU().HttpClient,ResponseWrapper:rk().ResponseWrapper,Endpoint:bN().Endpoint,StaticEndpointsProvider:Yv().StaticEndpointsProvider,SERVICE_NAME:wl().SERVICE_NAME,Region:wl().Region,StaticRegionsProvider:jb().StaticRegionsProvider,CachedRegionsProvider:jb().CachedRegionsProvider,QueryRegionsProvider:jb().QueryRegionsProvider},rpc:Vb(),util:Ac(),zone:lU(),app:dPt(),room:yPt(),Credentials:SPt(),sms:{message:fPt()}}});var kPt=l((vDi,APt)=>{APt.exports=vPt;function vPt(t,e,r,i){if(typeof r!="function")throw new Error("method for before hook must be a function");return i||(i={}),Array.isArray(e)?e.reverse().reduce(function(s,a){return vPt.bind(null,t,a,s,i)},r)():Promise.resolve().then(function(){return t.registry[e]?t.registry[e].reduce(function(s,a){return a.hook.bind(null,s,i)},r)():r(i)})}});var xPt=l((kDi,CPt)=>{CPt.exports=U3r;function U3r(t,e,r,i){var s=i;t.registry[r]||(t.registry[r]=[]),e==="before"&&(i=function(a,o){return Promise.resolve().then(s.bind(null,o)).then(a.bind(null,o))}),e==="after"&&(i=function(a,o){var n;return Promise.resolve().then(a.bind(null,o)).then(function(u){return n=u,s(n,o)}).then(function(){return n})}),e==="error"&&(i=function(a,o){return Promise.resolve().then(a.bind(null,o)).catch(function(n){return s(n,o)})}),t.registry[r].push({hook:i,orig:s})}});var DPt=l((CDi,qPt)=>{qPt.exports=B3r;function B3r(t,e,r){if(!!t.registry[e]){var i=t.registry[e].map(function(s){return s.orig}).indexOf(r);i!==-1&&t.registry[e].splice(i,1)}}});var _Pt=l((xDi,Tk)=>{var RPt=kPt(),G3r=xPt(),O3r=DPt(),EPt=Function.bind,PPt=EPt.bind(EPt);function wPt(t,e,r){var i=PPt(O3r,null).apply(null,r?[e,r]:[e]);t.api={remove:i},t.remove=i,["before","error","after","wrap"].forEach(function(s){var a=r?[e,s,r]:[e,s];t[s]=t.api[s]=PPt(G3r,null).apply(null,a)})}function V3r(){var t="h",e={registry:{}},r=RPt.bind(null,e,t);return wPt(r,e,t),r}function MPt(){var t={registry:{}},e=RPt.bind(null,t);return wPt(e,t),e}var LPt=!1;function EN(){return LPt||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),LPt=!0),MPt()}EN.Singular=V3r.bind();EN.Collection=MPt.bind();Tk.exports=EN;Tk.exports.Hook=EN;Tk.exports.Singular=EN.Singular;Tk.exports.Collection=EN.Collection});var WPt=l((MN,KPt)=>{"use strict";var tVr=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global;throw new Error("unable to locate global object")},eg=tVr();KPt.exports=MN=eg.fetch;eg.fetch&&(MN.default=eg.fetch.bind(eg));MN.Headers=eg.Headers;MN.Request=eg.Request;MN.Response=eg.Response});dr(exports);yr(exports,{default:()=>DVr});var OU=Dr(require("obsidian"));var Dp=Dr(require("obsidian")),lC=Dr(require("path"));var Cy=Dr(require("obsidian")),HB=class extends Cy.Modal{constructor(e){super(e);this.totalImages=0;this.completedImages=0;this.imageStatus=new Map;this.titleEl.setText("Uploading Images")}initialize(e){typeof e=="number"?this.totalImages=e:(this.totalImages=e.length,e.forEach(o=>{o.name&&this.imageStatus.set(o.name,!1)})),this.completedImages=0,this.modalEl.classList.add("upload-progress-modal");let r=this.contentEl.createDiv({cls:"upload-progress-content"}),i=r.createDiv({cls:"progress-section"});this.statusEl=i.createDiv({cls:"status-indicator"});let s=this.statusEl.createSpan({cls:"status-icon"});(0,Cy.setIcon)(s,"upload-cloud"),this.statusEl.createSpan({text:"Uploading...",cls:"status-text"});let a=i.createDiv({cls:"progress-bar-container"});if(this.progressBar Line truncated
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!r||e[r]&&Lir[r])&&(r==="set-cookie"?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e};"use strict";var Jfe=Symbol("internals");function BT(t){return t&&String(t).trim().toLowerCase()}function lD(t){return t===!1||t==null?t:Re.isArray(t)?t.map(lD):String(t)}function _ir(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=r.exec(t);)e[i[1]]=i[2];return e}var Fir=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function p6(t,e,r,i,s){if(Re.isFunction(i))return i.call(this,e,r);if(s&&(e=r),!!Re.isString(e)){if(Re.isString(i))return e.indexOf(i)!==-1;if(Re.isRegExp(i))return i.test(e)}}function Uir(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,i)=>r.toUpperCase()+i)}function Bir(t,e){let r=Re.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(s,a,o){return this[i].call(this,e,s,a,o)},configurable:!0})})}var GT=class{constructor(e){e&&this.set(e)}set(e,r,i){let s=this;function a(n,u,p){let m=BT(u);if(!m)throw new Error("header name must be a non-empty string");let d=Re.findKey(s,m);(!d||s[d]===void 0||p===!0||p===void 0&&s[d]!==!1)&&(s[d||u]=lD(n))}let o=(n,u)=>Re.forEach(n,(p,m)=>a(p,m,u));if(Re.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(Re.isString(e)&&(e=e.trim())&&!Fir(e))o(Hfe(e),r);else if(Re.isObject(e)&&Re.isIterable(e)){let n={},u,p;for(let m of e){if(!Re.isArray(m))throw TypeError("Object iterator must return a key-value pair");n[p=m[0]]=(u=n[p])?Re.isArray(u)?[...u,m[1]]:[u,m[1]]:m[1]}o(n,r)}else e!=null&&a(r,e,i);return this}get(e,r){if(e=BT(e),e){let i=Re.findKey(this,e);if(i){let s=this[i];if(!r)return s;if(r===!0)return _ir(s);if(Re.isFunction(r))return r.call(this,s,i);if(Re.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=BT(e),e){let i=Re.findKey(this,e);return!!(i&&this[i]!==void 0&&(!r||p6(this,this[i],i,r)))}return!1}delete(e,r){let i=this,s=!1;function a(o){if(o=BT(o),o){let n=Re.findKey(i,o);n&&(!r||p6(i,i[n],n,r))&&(delete i[n],s=!0)}}return Re.isArray(e)?e.forEach(a):a(e),s}clear(e){let r=Object.keys(this),i=r.length,s=!1;for(;i--;){let a=r[i];(!e||p6(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){let r=this,i={};return Re.forEach(this,(s,a)=>{let o=Re.findKey(i,a);if(o){r[o]=lD(s),delete r[a];return}let n=e?Uir(a):String(a).trim();n!==a&&delete r[a],r[n]=lD(s),i[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return Re.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=e&&Re.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let i=new this(e);return r.forEach(s=>i.set(s)),i}static accessor(e){let i=(this[Jfe]=this[Jfe]={accessors:{}}).accessors,s=this.prototype;function a(o){let n=BT(o);i[n]||(Bir(s,o),i[n]=!0)}return Re.isArray(e)?e.forEach(a):a(e),this}};GT.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.reduceDescriptors(GT.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[r]=i}}});Re.freezeMethods(GT);var Bs=GT;"use strict";function OT(t,e){let r=this||OS,i=e||r,s=Bs.from(i.headers),a=i.data;return Re.forEach(t,function(n){a=n.call(r,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}"use strict";function VT(t){return!!(t&&t.__CANCEL__)}"use strict";function Qfe(t,e,r){Lt.call(this,t??"canceled",Lt.ERR_CANCELED,e,r),this.name="CanceledError"}Re.inherits(Qfe,Lt,{__CANCEL__:!0});var fu=Qfe;"use strict";function zm(t,e,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):e(new Lt("Request failed with status code "+r.status,[Lt.ERR_BAD_REQUEST,Lt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}"use strict";function m6(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}"use strict";function c6(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}"use strict";function Gh(t,e,r){let i=!m6(e);return t&&(i||r==!1)?c6(t,e):e}var bNe=Dr(PO()),gNe=Dr(require("http")),SNe=Dr(require("https")),fNe=Dr(require("util")),NNe=Dr(rNe()),sl=Dr(require("zlib"));var jh="1.10.0";"use strict";function HT(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}"use strict";var Xir=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function v6(t,e,r){let i=r&&r.Blob||qi.classes.Blob,s=HT(t);if(e===void 0&&i&&(e=!0),s==="data"){t=s.length?t.slice(s.length+1):t;let a=Xir.exec(t);if(!a)throw new Lt("Invalid URL",Lt.ERR_INVALID_URL);let o=a[1],n=a[2],u=a[3],p=Buffer.from(decodeURIComponent(u),n?"base64":"utf8");if(e){if(!i)throw new Lt("Blob is not supported",Lt.ERR_NOT_SUPPORT);return new i([p],{type:o})}return p}throw new Lt("Unsupported protocol "+s,Lt.ERR_NOT_SUPPORT)}var Kh=Dr(require("stream"));var iNe=Dr(require("stream"));"use strict";var k6=Symbol("internals"),sNe=class extends iNe.default.Transform{constructor(e){e=Re.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(i,s)=>!Re.isUndefined(s[i])),super({readableHighWaterMark:e.chunkSize});let r=this[k6]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",i=>{i==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(e){let r=this[k6];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,i){let s=this[k6],a=s.maxRate,o=this.readableHighWaterMark,n=s.timeWindow,u=1e3/n,p=a/u,m=s.minChunkSize!==!1?Math.max(s.minChunkSize,p*.01):0,d=(c,h)=>{let g=Buffer.byteLength(c);s.bytesSeen+=g,s.bytes+=g,s.isCaptured&&this.emit("progress",s.bytesSeen),this.push(c)?process.nextTick(h):s.onReadCallback=()=>{s.onReadCallback=null,process.nextTick(h)}},y=(c,h)=>{let g=Buffer.byteLength(c),S=null,N=o,T,I=0;if(a){let v=Date.now();(!s.ts||(I=v-s.ts)>=n)&&(s.ts=v,T=p-s.bytes,s.bytes=T<0?-T:0,I=0),T=p-s.bytes}if(a){if(T<=0)return setTimeout(()=>{h(null,c)},n-I);T<N&&(N=T)}N&&g>N&&g-N>m&&(S=c.subarray(N),c=c.subarray(0,N)),d(c,S?()=>{process.nextTick(h,null,S)}:h)};y(e,function c(h,g){if(h)return i(h);g?y(g,c):i(null)})}},C6=sNe;var INe=Dr(require("events"));var oNe=Dr(require("util")),nNe=Dr(require("stream"));var{asyncIterator:aNe}=Symbol,Zir=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[aNe]?yield*t[aNe]():yield t},dD=Zir;var Yir=qi.ALPHABET.ALPHA_DIGIT+"-_",JT=typeof TextEncoder=="function"?new TextEncoder:new oNe.default.TextEncoder,zh=`\r
`,esr=JT.encode(zh),tsr=2,uNe=class{constructor(e,r){let{escapeName:i}=this.constructor,s=Re.isString(r),a=`Content-Disposition: form-data; name="${i(e)}"${!s&&r.name?`; filename="${i(r.name)}"`:""}${zh}`;s?r=JT.encode(String(r).replace(/\r?\n|\r\n?/g,zh)):a+=`Content-Type: ${r.type||"application/octet-stream"}${zh}`,this.headers=JT.encode(a+zh),this.contentLength=s?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+tsr,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;Re.isTypedArray(e)?yield e:yield*dD(e),yield esr}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},rsr=(t,e,r)=>{let{tag:i="form-data-boundary",size:s=25,boundary:a=i+"-"+qi.generateString(s,Yir)}=r||{};if(!Re.isFormData(t))throw TypeError("FormData instance required");if(a.length<1||a.length>70)throw Error("boundary must be 10-70 characters long");let o=JT.encode("--"+a+zh),n=JT.encode("--"+a+"--"+zh),u=n.byteLength,p=Array.from(t.entries()).map(([d,y])=>{let c=new uNe(d,y);return u+=c.size,c});u+=o.byteLength*p.length,u=Re.toFiniteNumber(u);let m={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(u)&&(m["Content-Length"]=u),e&&e(m),nNe.Readable.from(async function*(){for(let d of p)yield o,yield*d.encode();yield n}())},pNe=rsr;var mNe=Dr(require("stream"));"use strict";var cNe=class extends mNe.default.Transform{__transform(e,r,i){this.push(e),i()}_transform(e,r,i){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let s=Buffer.alloc(2);s[0]=120,s[1]=156,this.push(s,r)}this.__transform(e,r,i)}},lNe=cNe;var isr=(t,e)=>Re.isAsyncFn(t)?function(...r){let i=r.pop();t.apply(this,r).then(s=>{try{e?i(null,...e(s)):i(null,s)}catch(a){i(a)}},i)}:t,dNe=isr;"use strict";function ssr(t,e){t=t||10;let r=new Array(t),i=new Array(t),s=0,a=0,o;return e=e!==void 0?e:1e3,function(u){let p=Date.now(),m=i[a];o||(o=p),r[s]=u,i[s]=p;let d=a,y=0;for(;d!==s;)y+=r[d++],d=d%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),p-o<e)return;let c=m&&p-m;return c?Math.round(y*1e3/c):void 0}}var yNe=ssr;function asr(t,e){let r=0,i=1e3/e,s,a,o=(p,m=Date.now())=>{r=m,s=null,a&&(clearTimeout(a),a=null),t.apply(null,p)};return[(...p)=>{let m=Date.now(),d=m-r;d>=i?o(p,m):(s=p,a||(a=setTimeout(()=>{a=null,o(s)},i-d)))},()=>s&&o(s)]}var hNe=asr;var il=(t,e,r=3)=>{let i=0,s=yNe(50,250);return hNe(a=>{let o=a.loaded,n=a.lengthComputable?a.total:void 0,u=o-i,p=s(u),m=o<=n;i=o;let d={loaded:o,total:n,progress:n?o/n:void 0,bytes:u,rate:p||void 0,estimated:p&&n&&m?(n-o)/p:void 0,event:a,lengthComputable:n!=null,[e?"download":"upload"]:!0};t(d)},r)},VS=(t,e)=>{let r=t!=null;return[i=>e[0]({lengthComputable:r,total:t,loaded:i}),e[1]]},jS=t=>(...e)=>Re.asap(()=>t(...e));"use strict";var TNe={flush:sl.default.constants.Z_SYNC_FLUSH,finishFlush:sl.default.constants.Z_SYNC_FLUSH},osr={flush:sl.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:sl.default.constants.BROTLI_OPERATION_FLUSH},ANe=Re.isFunction(sl.default.createBrotliDecompress),{http:nsr,https:usr}=NNe.default,psr=/https:?/,vNe=qi.protocols.map(t=>t+":"),kNe=(t,[e,r])=>(t.on("end",r).on("error",r),e);function msr(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function CNe(t,e,r){let i=e;if(!i&&i!==!1){let s=bNe.default.getProxyForUrl(r);s&&(i=new URL(s))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));let a=Buffer.from(i.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+a}t.headers.host=t.hostname+(t.port?":"+t.port:"");let s=i.hostname||i.host;t.hostname=s,t.host=s,t.port=i.port,t.path=r,i.protocol&&(t.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}t.beforeRedirects.proxy=function(a){CNe(a,e,a.href)}}var csr=typeof process!="undefined"&&Re.kindOf(process)==="process",lsr=t=>new Promise((e,r)=>{let i,s,a=(u,p)=>{s||(s=!0,i&&i(u,p))},o=u=>{a(u),e(u)},n=u=>{a(u,!0),r(u)};t(o,n,u=>i=u).catch(n)}),dsr=({address:t,family:e})=>{if(!Re.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},xNe=(t,e)=>dsr(Re.isObject(t)?t:{address:t,family:e}),qNe=csr&&function(e){return lsr(async function(i,s,a){let{data:o,lookup:n,family:u}=e,{responseType:p,responseEncoding:m}=e,d=e.method.toUpperCase(),y,c=!1,h;if(n){let le=dNe(n,be=>Re.isArray(be)?be:[be]);n=(be,ce,ue)=>{le(be,ce,(Ie,Ae,Pe)=>{if(Ie)return ue(Ie);let qe=Re.isArray(Ae)?Ae.map(We=>xNe(We)):[xNe(Ae,Pe)];ce.all?ue(Ie,qe):ue(Ie,qe[0].address,qe[0].family)})}}let g=new INe.EventEmitter,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(N),e.signal&&e.signal.removeEventListener("abort",N),g.removeAllListeners()};a((le,be)=>{y=!0,be&&(c=!0,S())});function N(le){g.emit("abort",!le||le.type?new fu(null,e,h):le)}g.once("abort",s),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(N) Line truncated
`+a.map(UNe).join(`
`):" "+UNe(a[0]):"as no adapter specified";throw new Lt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:D6};"use strict";function R6(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fu(null,t)}function SD(t){return R6(t),t.headers=Bs.from(t.headers),t.data=OT.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),gD.getAdapter(t.adapter||OS.adapter)(t).then(function(i){return R6(t),i.data=OT.call(t,t.transformResponse,i),i.headers=Bs.from(i.headers),i},function(i){return VT(i)||(R6(t),i&&i.response&&(i.response.data=OT.call(t,t.transformResponse,i.response),i.response.headers=Bs.from(i.response.headers))),Promise.reject(i)})}"use strict";var fD={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fD[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});var BNe={};fD.transitional=function(e,r,i){function s(a,o){return"[Axios v"+jh+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,n)=>{if(e===!1)throw new Lt(s(o," has been removed"+(r?" in "+r:"")),Lt.ERR_DEPRECATED);return r&&!BNe[o]&&(BNe[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,n):!0}};fD.spelling=function(e){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function vsr(t,e,r){if(typeof t!="object")throw new Lt("options must be an object",Lt.ERR_BAD_OPTION_VALUE);let i=Object.keys(t),s=i.length;for(;s-- >0;){let a=i[s],o=e[a];if(o){let n=t[a],u=n===void 0||o(n,a,t);if(u!==!0)throw new Lt("option "+a+" must be "+u,Lt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Lt("Unknown option "+a,Lt.ERR_BAD_OPTION)}}var QT={assertOptions:vsr,validators:fD};"use strict";var Km=QT.validators,$T=class{constructor(e){this.defaults=e||{},this.interceptors={request:new r6,response:new r6}}async request(e,r){try{return await this._request(e,r)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;let a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+a):i.stack=a}catch(o){}}throw i}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Op(this.defaults,r);let{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&QT.assertOptions(i,{silentJSONParsing:Km.transitional(Km.boolean),forcedJSONParsing:Km.transitional(Km.boolean),clarifyTimeoutError:Km.transitional(Km.boolean)},!1),s!=null&&(Re.isFunction(s)?r.paramsSerializer={serialize:s}:QT.assertOptions(s,{encode:Km.function,serialize:Km.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),QT.assertOptions(r,{baseUrl:Km.spelling("baseURL"),withXsrfToken:Km.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&Re.merge(a.common,a[r.method]);a&&Re.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),r.headers=Bs.concat(o,a);let n=[],u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(u=u&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});let p=[];this.interceptors.response.forEach(function(g){p.push(g.fulfilled,g.rejected)});let m,d=0,y;if(!u){let h=[SD.bind(this),void 0];for(h.unshift.apply(h,n),h.push.apply(h,p),y=h.length,m=Promise.resolve(r);d<y;)m=m.then(h[d++],h[d++]);return m}y=n.length;let c=r;for(d=0;d<y;){let h=n[d++],g=n[d++];try{c=h(c)}catch(S){g.call(this,S);break}}try{m=SD.call(this,c)}catch(h){return Promise.reject(h)}for(d=0,y=p.length;d<y;)m=m.then(p[d++],p[d++]);return m}getUri(e){e=Op(this.defaults,e);let r=Gh(e.baseURL,e.url,e.allowAbsoluteUrls);return Bh(r,e.params,e.paramsSerializer)}};Re.forEach(["delete","get","head","options"],function(e){$T.prototype[e]=function(r,i){return this.request(Op(i||{},{method:e,url:r,data:(i||{}).data}))}});Re.forEach(["post","put","patch"],function(e){function r(i){return function(a,o,n){return this.request(Op(n||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}$T.prototype[e]=r(),$T.prototype[e+"Form"]=r(!0)});var XT=$T;"use strict";var ND=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});let i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a,o=new Promise(n=>{i.subscribe(n),a=n}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,n){i.reason||(i.reason=new fu(a,o,n),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let e=new AbortController,r=i=>{e.abort(i)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new ND(function(s){e=s}),cancel:e}}},GNe=ND;"use strict";function E6(t){return function(r){return t.apply(null,r)}}"use strict";function P6(t){return Re.isObject(t)&&t.isAxiosError===!0}var w6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(w6).forEach(([t,e])=>{w6[e]=t});var ONe=w6;"use strict";function VNe(t){let e=new XT(t),r=_T(XT.prototype.request,e);return Re.extend(r,XT.prototype,e,{allOwnKeys:!0}),Re.extend(r,e,null,{allOwnKeys:!0}),r.create=function(s){return VNe(Op(t,s))},r}var Ra=VNe(OS);Ra.Axios=XT;Ra.CanceledError=fu;Ra.CancelToken=GNe;Ra.isCancel=VT;Ra.VERSION=jh;Ra.toFormData=Sd;Ra.AxiosError=Lt;Ra.Cancel=Ra.CanceledError;Ra.all=function(e){return Promise.all(e)};Ra.spread=E6;Ra.isAxiosError=P6;Ra.mergeConfig=Op;Ra.AxiosHeaders=Bs;Ra.formToJSON=t=>cD(Re.isHTMLForm(t)?new FormData(t):t) Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var pVr=class extends Error{constructor(t,e,r){super(uVr(r));this.request=t,this.headers=e,this.response=r,this.name="GraphqlResponseError",this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},mVr=["method","baseUrl","url","headers","request","query","mediaType"],cVr=["query","method","url"],QPt=/\/api\/v3\/?$/;function lVr(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(!!cVr.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(i).reduce((o,n)=>mVr.includes(n)?(o[n]=i[n],o):(o.variables||(o.variables={}),o.variables[n]=i[n],o),{}),a=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return QPt.test(a)&&(s.url=a.replace(QPt,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let n={};for(let u of Object.keys(o.headers))n[u]=o.headers[u];throw new pVr(s,n,o.data)}return o.data.data})}function MJ(t,e){let r=t.defaults(e);return Object.assign((s,a)=>lVr(r,s,a),{defaults:MJ.bind(null,r),endpoint:r.endpoint})}var zDi=MJ(vk,{headers:{"user-agent":`octokit-graphql.js/${nVr} ${by()}`},method:"POST",url:"/graphql"});function $Pt(t){return MJ(t,{method:"POST",url:"/graphql"})}var dVr=/^v1\./,yVr=/^ghs_/,hVr=/^ghu_/;async function bVr(t){let e=t.split(/\./).length===3,r=dVr.test(t)||yVr.test(t),i=hVr.test(t);return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function gVr(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function SVr(t,e,r,i){let s=e.endpoint.merge(r,i);return s.headers.authorization=gVr(t),e(s)}var XPt=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(bVr.bind(null,e),{hook:SVr.bind(null,e)})};var YPt="4.2.4",GU=class{static defaults(t){return class extends this{constructor(...r){let i=r[0]||{};if(typeof t=="function"){super(t(i));return}super(Object.assign({},t,i,i.userAgent&&t.userAgent?{userAgent:`${i.userAgent} ${t.userAgent}`}:null))}}}static plugin(...t){var e;let r=this.plugins;return e=class extends this{},e.plugins=r.concat(t.filter(s=>!r.includes(s))),e}constructor(t={}){let e=new ZPt.Collection,r={baseUrl:vk.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:e.bind(null,"request")}),mediaType:{previews:[],format:""}};if(r.headers["user-agent"]=[t.userAgent,`octokit-core.js/${YPt} ${by()}`].filter(Boolean).join(" "),t.baseUrl&&(r.baseUrl=t.baseUrl),t.previews&&(r.mediaType.previews=t.previews),t.timeZone&&(r.headers["time-zone"]=t.timeZone),this.request=vk.defaults(r),this.graphql=$Pt(this.request).defaults(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},t.log),this.hook=e,t.authStrategy){let{authStrategy:s,...a}=t,o=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},t.auth));e.wrap("request",o.hook),this.auth=o}else if(!t.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=XPt(t.auth);e.wrap("request",s.hook),this.auth=s}this.constructor.plugins.forEach(s=>{Object.assign(this,s(this,t))})}};GU.VERSION=YPt;GU.plugins=[];var fVr="1.0.4";function LJ(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),s=t.request.endpoint.parse(r),a=s.url.replace(r.baseUrl,"");return e(r).then(o=>(t.log.info(`${s.method} ${a} - ${o.status} in ${Date.now()-i}ms`),o)).catch(o=>{throw t.log.info(`${s.method} ${a} - ${o.status} in ${Date.now()-i}ms`),o})})}LJ.VERSION=fVr;var NVr="6.1.2";function IVr(t){if(!t.data)return{...t,data:[]};if(!("total_count"in t.data&&!("url"in t.data)))return t;let r=t.data.incomplete_results,i=t.data.repository_selection,s=t.data.total_count;delete t.data.incomplete_results,delete t.data.repository_selection,delete t.data.total_count;let a=Object.keys(t.data)[0],o=t.data[a];return t.data=o,typeof r!="undefined"&&(t.data.incomplete_results=r),typeof i!="undefined"&&(t.data.repository_selection=i),t.data.total_count=s,t}function _J(t,e,r){let i=typeof e=="function"?e.endpoint(r):t.request.endpoint(e,r),s=typeof e=="function"?e:t.request,a=i.method,o=i.headers,n=i.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!n)return{done:!0};try{let u=await s({method:a,url:n,headers:o}),p=IVr(u);return n=((p.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:p}}catch(u){if(u.status!==409)throw u;return n="",{value:{status:200,headers:{},data:[]}}}}})}}function t2t(t,e,r,i){return typeof r=="function"&&(i=r,r=void 0),e2t(t,[],_J(t,e,r)[Symbol.asyncIterator](),i)}function e2t(t,e,r,i){return r.next().then(s=>{if(s.done)return e;let a=!1;function o(){a=!0}return e=e.concat(i?i(s. Line truncated
Support {year} {mon} {day} {random} {filename} vars. For example, /{year}/{mon}/{day}/{filename} with uploading pic.jpg, it will store as /2023/06/08/pic.jpg.`).addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.ossSetting.path).onChange(i=>this.plugin.settings.ossSetting.path=i)),new Rr.Setting(e).setName("Custom Domain Name").setDesc("If the custom domain name is example.com, you can use https://example.com/pic.jpg to access pic.img.").addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.ossSetting.customDomainName).onChange(i=>this.plugin.settings.ossSetting.customDomainName=i))}drawImageKitSetting(e){new Rr.Setting(e).setName("Imagekit ID").setDesc(rg.imagekitSettingDescription()).addText(r=>r.setPlaceholder("Enter your ImagekitID").setValue(this.plugin.settings.imagekitSetting.imagekitID).onChange(i=>{this.plugin.settings.imagekitSetting.imagekitID=i,this.plugin.settings.imagekitSetting.endpoint=`https://ik.imagekit.io/${i}/`})),new Rr.Setting(e).setName("Folder name").setDesc("Please enter the directory name, otherwise leave it blank").addText(r=>r.setPlaceholder("Enter the folder name").setValue(this.plugin.settings.imagekitSetting.folder).onChange(i=>this.plugin.settings.imagekitSetting.folder=i)),new Rr.Setting(e).setName("Public Key").addText(r=>r.setPlaceholder("Enter your Public Key").setValue(this.plugin.settings.imagekitSetting.publicKey).onChange(i=>this.plugin.settings.imagekitSetting.publicKey=i)),new Rr.Setting(e).setName("Private Key").addText(r=>r.setPlaceholder("Enter your Private Key").setValue(this.plugin.settings.imagekitSetting.privateKey).onChange(i=>this.plugin.settings.imagekitSetting.privateKey=i))}static imagekitSettingDescription(){let e=document.createDocumentFragment(),r=document.createElement("a"),i="https://imagekit.io/dashboard/developer/api-keys";return r.textContent=i,r.setAttribute("href",i),e.append("Obtain id and keys from "),e.append(r),e}drawAwsS3Setting(e){new Rr.Setting(e).setName("AWS S3 Access Key ID").setDesc("Your AWS S3 access key ID").addText(r=>r.setPlaceholder("Enter your access key ID").setValue(this.plugin.settings.awsS3Setting?.accessKeyId||"").onChange(i=>this.plugin.settings.awsS3Setting.accessKeyId=i)),new Rr.Setting(e).setName("AWS S3 Secret Access Key").setDesc("Your AWS S3 secret access key").addText(r=>r.setPlaceholder("Enter your secret access key").setValue(this.plugin.settings.awsS3Setting?.secretAccessKey||"").onChange(i=>this.plugin.settings.awsS3Setting.secretAccessKey=i)),new Rr.Setting(e).setName("AWS S3 Region").setDesc("Your AWS S3 region").addText(r=>r.setPlaceholder("Enter your region").setValue(this.plugin.settings.awsS3Setting?.region||"").onChange(i=>this.plugin.settings.awsS3Setting.region=i)),new Rr.Setting(e).setName("AWS S3 Bucket Name").setDesc("Your AWS S3 bucket name").addText(r=>r.setPlaceholder("Enter your bucket name").setValue(this.plugin.settings.awsS3Setting?.bucketName||"").onChange(i=>this.plugin.settings.awsS3Setting.bucketName=i)),new Rr.Setting(e).setName("Target Path").setDesc(`The path to store image.
Support {year} {mon} {day} {random} {filename} vars. For example, /{year}/{mon}/{day}/{filename} with uploading pic.jpg, it will store as /2023/06/08/pic.jpg.`).addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.awsS3Setting.path).onChange(i=>this.plugin.settings.awsS3Setting.path=i)),new Rr.Setting(e).setName("Custom Domain Name").setDesc("If the custom domain name is example.com, you can use https://example.com/pic.jpg to access pic.img.").addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.awsS3Setting.customDomainName).onChange(i=>this.plugin.settings.awsS3Setting.customDomainName=i))}drawTencentCloudCosSetting(e){new Rr.Setting(e).setName("Region").setDesc("COS data center region.").addDropdown(r=>r.addOptions(p2t).setValue(this.plugin.settings.cosSetting.region).onChange(i=>{this.plugin.settings.cosSetting.region=i})),new Rr.Setting(e).setName("Secret Id").setDesc("The secret id of TencentCloud.").addText(r=>r.setPlaceholder("Enter access key id").setValue(this.plugin.settings.cosSetting.secretId).onChange(i=>this.plugin.settings.cosSetting.secretId=i)),new Rr.Setting(e).setName("Secret Key").setDesc("The secret key of TencentCloud.").addText(r=>r.setPlaceholder("Enter access key secret").setValue(this.plugin.settings.cosSetting.secretKey).onChange(i=>this.plugin.settings.cosSetting.secretKey=i)),new Rr.Setting(e).setName("Access Bucket Name").setDesc("The name of bucket to store images.").addText(r=>r.setPlaceholder("Enter bucket name").setValue(this.plugin.settings.cosSetting.bucket).onChange(i=>this.plugin.settings.cosSetting.bucket=i)),new Rr.Setting(e).setName("Target Path").setDesc(`The path to store image.
Support {year} {mon} {day} {random} {filename} vars. For example, /{year}/{mon}/{day}/{filename} with uploading pic.jpg, it will store as /2023/06/08/pic.jpg.`).addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.cosSetting.path).onChange(i=>this.plugin.settings.cosSetting.path=i)),new Rr.Setting(e).setName("Custom Domain Name").setDesc("If the custom domain name is example.com, you can use https://example.com/pic.jpg to access pic.img.").addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.cosSetting.customDomainName).onChange(i=>this.plugin.settings.cosSetting.customDomainName=i))}drawQiniuSetting(e){new Rr.Setting(e).setName("Access Key").setDesc("The access key of Qiniu.").addText(r=>r.setPlaceholder("Enter access key").setValue(this.plugin.settings.kodoSetting.accessKey).onChange(i=>this.plugin.settings.kodoSetting.accessKey=i)),new Rr.Setting(e).setName("Secret Key").setDesc("The secret key of Qiniu.").addText(r=>r.setPlaceholder("Enter secret key").setValue(this.plugin.settings.kodoSetting.secretKey).onChange(i=>this.plugin.settings.kodoSetting.secretKey=i)),new Rr.Setting(e).setName("Bucket Name").setDesc("The name of bucket to store images.").addText(r=>r.setPlaceholder("Enter bucket name").setValue(this.plugin.settings.kodoSetting.bucket).onChange(i=>this.plugin.settings.kodoSetting.bucket=i)),new Rr.Setting(e).setName("Custom Domain Name").setDesc("If the custom domain name is example.com, you can use https://example.com/pic.jpg to access pic.img.").addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.kodoSetting.customDomainName).onChange(i=>this.plugin.settings.kodoSetting.customDomainName=i))}drawGitHubSetting(e){new Rr.Setting(e).setName("Repository Name").setDesc("The name of the GitHub repository to store images (format: owner/repo).").addText(r=>r.setPlaceholder("Enter repository name (e.g., username/repo)").setValue(this.plugin.settings.githubSetting.repositoryName).onChange(i=>this.plugin.settings.githubSetting.repositoryName=i)),new Rr.Setting(e).setName("Branch Name").setDesc("The branch to store images in (defaults to 'main').").addText(r=>r.setPlaceholder("Enter branch name").setValue(this.plugin.settings.githubSetting.branchName).onChange(i=>this.plugin.settings.githubSetting.branchName=i)),new Rr.Setting(e).setName("Personal Access Token").setDesc(rg.githubTokenDescription()).addText(r=>r.setPlaceholder("Enter your GitHub personal access token").setValue(this.plugin.settings.githubSetting.token).onChange(i=>this.plugin.settings.githubSetting.token=i))}static githubTokenDescription(){let e=document.createDocumentFragment(),r=document.createElement("a"),i="https://github.com/settings/tokens";return r.textContent=i,r.setAttribute("href",i),e.append("Generate a personal access token with 'repo' scope at "),e.append(r),e}drawR2Setting(e){new Rr.Setting(e).setName("Cloudflare R2 Access Key ID").setDesc("Your Cloudflare R2 access key ID").addText(r=>r.setPlaceholder("Enter your access key ID").setValue(this.plugin.settings.r2Setting?.accessKeyId||"").onChange(i=>this.plugin.settings.r2Setting.accessKeyId=i)),new Rr.Setting(e).setName("Cloudflare R2 Secret Access Key").setDesc("Your Cloudflare R2 secret access key").addText(r=>r.setPlaceholder("Enter your secret access key").setValue(this.plugin.settings.r2Setting?.secretAccessKey||"").onChange(i=>this.plugin.settings.r2Setting.secretAccessKey=i)),new Rr.Setting(e).setName("Cloudflare R2 Endpoint").setDesc("Your Cloudflare R2 endpoint URL (e.g., https://account-id.r2.cloudflarestorage.com)").addText(r=>r.setPlaceholder("Enter your R2 endpoint").setValue(this.plugin.settings.r2Setting?.endpoint||"").onChange(i=>this.plugin.settings.r2Setting.endpoint=i)),new Rr.Setting(e).setName("Cloudflare R2 Bucket Name").setDesc("Your Cloudflare R2 bucket name").addText(r=>r.setPlaceholder("Enter your bucket name").setValue(this.plugin.settings.r2Setting?.bucketName||"").onChange(i=>this.plugin.settings.r2Setting.bucketName=i)),new Rr.Setting(e).setName("Target Path").setDesc(`The path to store image.
Support {year} {mon} {day} {random} {filename} vars. For example, /{year}/{mon}/{day}/{filename} with uploading pic.jpg, it will store as /2023/06/08/pic.jpg.`).addText(r=>r.setPlaceholder("Enter path").setValue(this.plugin.settings.r2Setting.path).onChange(i=>this.plugin.settings.r2Setting.path=i)),new Rr.Setting(e).setName("R2.dev URL, Custom Domain Name").setDesc("You can use the R2.dev URL such as https://pub-xxxx.r2.dev here, or custom domain. If the custom domain name is example.com, you can use https://example.com/pic.jpg to access pic.img.").addText(r=>r.setPlaceholder("Enter domain name").setValue(this.plugin.settings.r2Setting.customDomainName).onChange(i=>this.plugin.settings.r2Setting.customDomainName=i))}},m2t=rg;var qVr={imageAltText:!0,replaceOriginalDoc:!1,ignoreProperties:!0,imageStore:da.IMGUR.id,showProgressModal:!0,imgurAnonymousSetting:{clientId:Y$},ossSetting:{region:"oss-cn-hangzhou",accessKeyId:"",accessKeySecret:"",bucket:"",endpoint:"https://oss-cn-hangzhou.aliyuncs.com/",path:"",customDomainName:""},imagekitSetting:{endpoint:"",imagekitID:"",privateKey:"",publicKey:"",folder:""},awsS3Setting:{accessKeyId:"",secretAccessKey:"",region:"",bucketName:"",path:"",customDomainName:""},cosSetting:{region:"",bucket:"",secretId:"",secretKey:"",path:"",customDomainName:""},kodoSetting:{accessKey:"",secretKey:"",bucket:"",customDomainName:"",path:""},githubSetting:{repositoryName:"",branchName:"main",token:"",path:"images"},r2Setting:{accessKeyId:"",secretAccessKey:"",endpoint:"",bucketName:"",path:"",customDomainName:""}},VJ=class extends OU.Plugin{async onload(){await this.loadSettings(),this.statusBarItem=this.addStatusBarItem(),this.setupImageUploader(),this.addCommand({id:"publish-page",name:"Publish Page",checkCallback:e=>(e||this.publish(),!0)}),this.addSettingTab(new m2t(this.app,this))}onunload(){}async loadSettings(){this.settings=Object.assign({},qVr,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}publish(){this.imageUploader?this.imageTagProcessor.process(JB).then(()=>{}):new OU.Notice("Image uploader setup failed, please check setting.")}setupImageUploader(){try{this.imageUploader=OJ(this.settings),this.imageTagProcessor=new Z$(this.app,this.settings,this.imageUploader,this.settings.showProgressModal)}catch(e){console.log(`Failed to setup image uploader: ${e}`)}}},DVr=VJ;
/*!
* 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.
*/
/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/
/*!
* 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.
*/
/*!
* Platform.js v1.3.6
* Copyright 2014-2020 Benjamin Tan
* Copyright 2011-2013 John-David Dalton
* Available under MIT license
*/
/*!
* XRegExp Prototype Methods v1.0.0
* (c) 2012 Steven Levithan <http://xregexp.com/>
* MIT License
*/
/*!
* XRegExp Unicode Base v1.0.0
* (c) 2008-2012 Steven Levithan <http://xregexp.com/>
* MIT License
* Uses Unicode 6.1 <http://unicode.org/>
*/
/*!
* XRegExp Unicode Blocks v1.2.0
* (c) 2010-2012 Steven Levithan <http://xregexp.com/>
* MIT License
* Uses Unicode 6.1 <http://unicode.org/>
*/
/*!
* XRegExp Unicode Categories v1.2.0
* (c) 2010-2012 Steven Levithan <http://xregexp.com/>
* MIT License
* Uses Unicode 6.1 <http://unicode.org/>
*/
/*!
* XRegExp Unicode Properties v1.0.0
* (c) 2012 Steven Levithan <http://xregexp.com/>
* MIT License
* Uses Unicode 6.1 <http://unicode.org/>
*/
/*!
* XRegExp Unicode Scripts v1.2.0
* (c) 2010-2012 Steven Levithan <http://xregexp.com/>
* MIT License
* Uses Unicode 6.1 <http://unicode.org/>
*/
/*!
* XRegExp v2.0.0
* (c) 2007-2012 Steven Levithan <http://xregexp.com/>
* MIT License
*/
/*!
* XRegExp.build v0.1.0
* (c) 2012 Steven Levithan <http://xregexp.com/>
* MIT License
* Inspired by RegExp.create by Lea Verou <http://lea.verou.me/>
*/
/*!
* XRegExp.matchRecursive v0.2.0
* (c) 2009-2012 Steven Levithan <http://xregexp.com/>
* MIT License
*/
/*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*/
/*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/
/*!
* depd
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* destroy
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* 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
*/
/*!
* http-errors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/
/*!
* is-extendable <https://github.com/jonschlinkert/is-extendable>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* raw-body
* Copyright(c) 2013-2014 Jonathan Ong
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* statuses
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* toidentifier
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* unpipe
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
/**
* @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 */
/* nosourcemap */
+10
View File
@@ -0,0 +1,10 @@
{
"id": "image-upload-toolkit",
"name": "Image Upload Toolkit",
"description": "Upload local images to remote store (Imgur, AliYun OSS, Imagekit, Amazon S3, TencentCloud COS and Qiniu Kodo).",
"author": "Addo Zhang",
"authorUrl": "https://atbug.com",
"isDesktopOnly": true,
"minAppVersion": "0.11.0",
"version": "1.1.2"
}
+229
View File
@@ -0,0 +1,229 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin: undefined
*/
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var require_fast_content_type_parse=__commonJS({"node_modules/fast-content-type-parse/index.js"(exports,module2){"use strict";var NullObject=function(){};NullObject.prototype=Object.create(null);var paramRE=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,quotedPairRE=/\\([\v\u0020-\u00ff])/gu,mediaTypeRE=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,defaultContentType={type:"",parameters:new NullObject};Object.freeze(defaultContentType.parameters);Object.freeze(defaultContentType);function parse2(header){if(typeof header!="string")throw new TypeError("argument header is required and must be a string");let index=header.indexOf(";"),type=index!==-1?header.slice(0,index).trim():header.trim();if(mediaTypeRE.test(type)===!1)throw new TypeError("invalid media type");let result={type:type.toLowerCase(),parameters:new NullObject};if(index===-1)return result;let key,match,value;for(paramRE.lastIndex=index;match=paramRE.exec(header);){if(match.index!==index)throw new TypeError("invalid parameter format");index+=match[0].length,key=match[1].toLowerCase(),value=match[2],value[0]==='"'&&(value=value.slice(1,value.length-1),quotedPairRE.test(value)&&(value=value.replace(quotedPairRE,"$1"))),result.parameters[key]=value}if(index!==header.length)throw new TypeError("invalid parameter format");return result}function safeParse2(header){if(typeof header!="string")return defaultContentType;let index=header.indexOf(";"),type=index!==-1?header.slice(0,index).trim():header.trim();if(mediaTypeRE.test(type)===!1)return defaultContentType;let result={type:type.toLowerCase(),parameters:new NullObject};if(index===-1)return result;let key,match,value;for(paramRE.lastIndex=index;match=paramRE.exec(header);){if(match.index!==index)return defaultContentType;index+=match[0].length,key=match[1].toLowerCase(),value=match[2],value[0]==='"'&&(value=value.slice(1,value.length-1),quotedPairRE.test(value)&&(value=value.replace(quotedPairRE,"$1"))),result.parameters[key]=value}return index!==header.length?defaultContentType:result}module2.exports.default={parse:parse2,safeParse:safeParse2};module2.exports.parse=parse2;module2.exports.safeParse=safeParse2;module2.exports.defaultContentType=defaultContentType}});var require_lib=__commonJS({"node_modules/@enveloppe/obsidian-dataview/lib/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("obsidian");var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(reason){super(`Invalid DateTime: ${reason.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(reason){super(`Invalid Interval: ${reason.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(reason){super(`Invalid Duration: ${reason.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(unit){super(`Invalid unit ${unit}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super("Zone is an abstract class")}},n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS=Line truncated
`||n3.charAt(i2)==="\r"&&n3.charAt(i2+1)!==`
`)&&(u2++,o2===0&&(o2=i2+1)),i2--}var a2=e2+u2,f2=t3-o2;return r2[t3]={line:a2,lineStart:o2},{offset:t3,line:a2+1,column:f2+1}}function _(n3){if(!y(n3))throw new Error("not a parser: "+n3)}function L(n3,t3){return typeof n3=="string"?n3.charAt(t3):n3[t3]}function O(n3){if(typeof n3!="number")throw new Error("not a number: "+n3)}function k(n3){if(typeof n3!="function")throw new Error("not a function: "+n3)}function P(n3){if(typeof n3!="string")throw new Error("not a string: "+n3)}var q=2,A=3,I=8,F=5*I,M=4*I,z=" ";function R(n3,t3){return new Array(t3+1).join(n3)}function U(n3,t3,r2){var e2=t3-n3.length;return e2<=0?n3:R(r2,e2)+n3}function W(n3,t3,r2,e2){return{from:n3-t3>0?n3-t3:0,to:n3+r2>e2?e2:n3+r2}}function D(n3,t3){var r2,e2,u2,o2,f2,c2=t3.index,s3=c2.offset,l3=1;if(s3===n3.length)return"Got the end of the input";if(w(n3)){var h2=s3-s3%I,p2=s3-h2,d2=W(h2,F,M+I,n3.length),v2=a(function(n4){return a(function(n5){return U(n5.toString(16),2,"0")},n4)},function(n4,t4){var r3=n4.length,e3=[],u3=0;if(r3<=t4)return[n4.slice()];for(var o3=0;o3<r3;o3++)e3[u3]||e3.push([]),e3[u3].push(n4[o3]),(o3+1)%t4==0&&u3++;return e3}(n3.slice(d2.from,d2.to).toJSON().data,I));o2=function(n4){return n4.from===0&&n4.to===1?{from:n4.from,to:n4.to}:{from:n4.from/I,to:Math.floor(n4.to/I)}}(d2),e2=h2/I,r2=3*p2,p2>=4&&(r2+=1),l3=2,u2=a(function(n4){return n4.length<=4?n4.join(" "):n4.slice(0,4).join(" ")+" "+n4.slice(4).join(" ")},v2),(f2=(8*(o2.to>0?o2.to-1:o2.to)).toString(16).length)<2&&(f2=2)}else{var g2=n3.split(/\r\n|[\n\r\u2028\u2029]/);r2=c2.column-1,e2=c2.line-1,o2=W(e2,q,A,g2.length),u2=g2.slice(o2.from,o2.to),f2=o2.to.toString().length}var m2=e2-o2.from;return w(n3)&&(f2=(8*(o2.to>0?o2.to-1:o2.to)).toString(16).length)<2&&(f2=2),i(function(t4,e3,u3){var i2,a2=u3===m2,c3=a2?"> ":z;return i2=w(n3)?U((8*(o2.from+u3)).toString(16),f2,"0"):U((o2.from+u3+1).toString(),f2," "),[].concat(t4,[c3+i2+" | "+e3],a2?[z+R(" ",f2)+" | "+U("",r2," ")+R("^",l3)]:[])},[],u2).join(`
`)}function N(n3,t3){return[`
`,"-- PARSING FAILED "+R("-",50),`
`,D(n3,t3),`
`,(r2=t3.expected,r2.length===1?`Expected:
`+r2[0]:`Expected one of the following:
`+r2.join(", ")),`
`].join("");var r2}function G(n3){return n3.flags!==void 0?n3.flags:[n3.global?"g":"",n3.ignoreCase?"i":"",n3.multiline?"m":"",n3.unicode?"u":"",n3.sticky?"y":""].join("")}function C(){for(var n3=[].slice.call(arguments),t3=n3.length,r2=0;r2<t3;r2+=1)_(n3[r2]);return e(function(r3,e2){for(var u2,o2=new Array(t3),i2=0;i2<t3;i2+=1){if(!(u2=B(n3[i2]._(r3,e2),u2)).status)return u2;o2[i2]=u2.value,e2=u2.index}return B(b(e2,o2),u2)})}function J(){var n3=[].slice.call(arguments);if(n3.length===0)throw new Error("seqMap needs at least one argument");var t3=n3.pop();return k(t3),C.apply(null,n3).map(function(n4){return t3.apply(null,n4)})}function T(){var n3=[].slice.call(arguments),t3=n3.length;if(t3===0)return Y("zero alternates");for(var r2=0;r2<t3;r2+=1)_(n3[r2]);return e(function(t4,r3){for(var e2,u2=0;u2<n3.length;u2+=1)if((e2=B(n3[u2]._(t4,r3),e2)).status)return e2;return e2})}function V(n3,t3){return H(n3,t3).or(X([]))}function H(n3,t3){return _(n3),_(t3),J(n3,t3.then(n3).many(),function(n4,t4){return[n4].concat(t4)})}function K(n3){P(n3);var t3="'"+n3+"'";return e(function(r2,e2){var u2=e2+n3.length,o2=r2.slice(e2,u2);return o2===n3?b(u2,o2):x(e2,t3)})}function Q(n3,t3){(function(n4){if(!(n4 instanceof RegExp))throw new Error("not a regexp: "+n4);for(var t4=G(n4),r3=0;r3<t4.length;r3++){var e2=t4.charAt(r3);if(e2!=="i"&&e2!=="m"&&e2!=="u"&&e2!=="s")throw new Error('unsupported regexp flag "'+e2+'": '+n4)}})(n3),arguments.length>=2?O(t3):t3=0;var r2=function(n4){return RegExp("^(?:"+n4.source+")",G(n4))}(n3),u2=""+n3;return e(function(n4,e2){var o2=r2.exec(n4.slice(e2));if(o2){if(0<=t3&&t3<=o2.length){var i2=o2[0],a2=o2[t3];return b(e2+i2.length,a2)}return x(e2,"valid match group (0 to "+o2.length+") in "+u2)}return x(e2,u2)})}function X(n3){return e(function(t3,r2){return b(r2,n3)})}function Y(n3){return e(function(t3,r2){return x(r2,n3)})}function Z(n3){if(y(n3))return e(function(t3,r2){var e2=n3._(t3,r2);return e2.index=r2,e2.value="",e2});if(typeof n3=="string")return Z(K(n3));if(n3 instanceof RegExp)return Z(Q(n3));throw new Error("not a string, regexp, or parser: "+n3)}function $(n3){return _(n3),e(function(t3,r2){var e2=n3._(t3,r2),u2=t3.slice(r2,e2.index);return e2.status?x(r2,'not "'+u2+'"'):b(r2,null)})}function nn(n3){return k(n3),e(function(t3,r2){var e2=L(t3,r2);return r2<t3.length&&n3(e2)?b(r2+1,e2):x(r2,"a character/byte matching "+n3)})}function tn(n3,t3){arguments.length<2&&(t3=n3,n3=void 0);var r2=e(function(n4,e2){return r2._=t3()._,r2._(n4,e2)});return n3?r2.desc(n3):r2}function rn(){return Y("fantasy-land/empty")}u.parse=function(n3){if(typeof n3!="string"&&!w(n3))throw new Error(".parse must be called with a string or Buffer as its argument");var t3,r2=this.skip(an)._(n3,0);return t3=r2.status?{status:!0,value:r2.value}:{status:!1,index:S(n3,r2.furthest),expected:r2.expected},delete j[n3],t3},u.tryParse=function(n3){var t3=this.parse(n3);if(t3.status)return t3.value;var r2=N(n3,t3),e2=new Error(r2);throw e2.type="ParsimmonError",e2.result=t3,e2},u.assert=function(n3,t3){return this.chain(function(r2){return n3(r2)?X(r2):Y(t3)})},u.or=function(n3){return T(this,n3)},u.trim=function(n3){return this.wrap(n3,n3)},u.wrap=function(n3,t3){return J(n3,this,t3,function(n4,t4){return t4})},u.thru=function(n3){return n3(this)},u.then=function(n3){return _(n3),C(this,n3).map(function(n4){return n4[1]})},u.many=function(){var n3=this;return e(function(t3,r2){for(var e2=[],u2=void 0;;){if(!(u2=B(n3._(t3,r2),u2)).status)return B(b(r2,e2),u2);if(r2===u2.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");r2=u2.index,e2.push(u2.value)}})},u.tieWith=function(n3){return P(n3),this.map(function(t3){if(function(n4){if(!E(n4))throw new Error("not an array: "+n4)}(t3),t3.length){P(t3[0]);for(var r2=t3[0],e2=1;e2<t3.length;e2++)P(t3[e2]),r2+=n3+t3[e2];return r2}return""})},u.tie=function(){return this.tieWith("")},u.times=function(n3,t3){var r2=this;return arguments.length<2&&(t3=n3),O(n3),O(t3),e(function(e2,u2){for(var o2=[],i2=void 0,a2=void 0,f2=0;f2<n3;f2+=1){if(a2=B(i2=r2._(e2,u2),a2),!i2.status)return a2;u2=i2.index,o2.push(i2.value)}for(;f2<t3&&(a2=B(i2=r2._(e2,u2),a2),i2.status);f2+=1)u2=i2.index,o2.push(i2.value);return B(b(u2,o2),a2)})},u.result=function(n3){return this.map(function(){return n3})},u.atMost=function(n3){return this.times(0,n3)},u.atLeast=function(n3){return J(this.times(n3),this.many(),function(n4,t3){return n4.concat(t3)})},u.map=function(n3){k(n3);var t3=this;return e(function(r2,e2){var u2=t3._(r2,e2);return u2.status?B(b(u2.index,n3(u2.value)),u2):u2})},u.contramap=function(n3){k(n3);var t3=this;return e(function(r2,e2){var u2=t3.parse(n3(r2.slice(e2)));return u2.status?b(e2+r2.length,u2.value):u2})},u.promap=function(n3,t3){return k(n3),k(t3),this.contramap(n3).map(t3)},u.skip=function(n3){return C(this,n3).map(function(n4){return n4[0]})},u.mark=function(){return J(en,this,en,fu Line truncated
`),gn=K(`\r
`),mn=T(gn,vn,dn).desc("newline"),yn=T(mn,an);e.all=on,e.alt=T,e.any=un,e.cr=dn,e.createLanguage=function(n3){var t3={};for(var r2 in n3)({}).hasOwnProperty.call(n3,r2)&&function(r3){t3[r3]=tn(function(){return n3[r3](t3)})}(r2);return t3},e.crlf=gn,e.custom=function(n3){return e(n3(b,x))},e.digit=fn,e.digits=cn,e.empty=rn,e.end=yn,e.eof=an,e.fail=Y,e.formatError=N,e.index=en,e.isParser=y,e.lazy=tn,e.letter=sn,e.letters=ln,e.lf=vn,e.lookahead=Z,e.makeFailure=x,e.makeSuccess=b,e.newline=mn,e.noneOf=function(n3){return nn(function(t3){return n3.indexOf(t3)<0}).desc("none of '"+n3+"'")},e.notFollowedBy=$,e.of=X,e.oneOf=function(n3){for(var t3=n3.split(""),r2=0;r2<t3.length;r2++)t3[r2]="'"+t3[r2]+"'";return nn(function(t4){return n3.indexOf(t4)>=0}).desc(t3)},e.optWhitespace=hn,e.Parser=e,e.range=function(n3,t3){return nn(function(r2){return n3<=r2&&r2<=t3}).desc(n3+"-"+t3)},e.regex=Q,e.regexp=Q,e.sepBy=V,e.sepBy1=H,e.seq=C,e.seqMap=J,e.seqObj=function(){for(var n3,t3={},r2=0,u2=(n3=arguments,Array.prototype.slice.call(n3)),o2=u2.length,i2=0;i2<o2;i2+=1){var a2=u2[i2];if(!y(a2)){if(E(a2)&&a2.length===2&&typeof a2[0]=="string"&&y(a2[1])){var f2=a2[0];if(Object.prototype.hasOwnProperty.call(t3,f2))throw new Error("seqObj: duplicate key "+f2);t3[f2]=!0,r2++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(r2===0)throw new Error("seqObj expects at least one named parser, found zero");return e(function(n4,t4){for(var r3,e2={},i3=0;i3<o2;i3+=1){var a3,f3;if(E(u2[i3])?(a3=u2[i3][0],f3=u2[i3][1]):(a3=null,f3=u2[i3]),!(r3=B(f3._(n4,t4),r3)).status)return r3;a3&&(e2[a3]=r3.value),t4=r3.index}return B(b(t4,e2),r3)})},e.string=K,e.succeed=X,e.takeWhile=function(n3){return k(n3),e(function(t3,r2){for(var e2=r2;e2<t3.length&&n3(L(t3,e2));)e2++;return b(e2,t3.slice(r2,e2))})},e.test=nn,e.whitespace=pn,e["fantasy-land/empty"]=rn,e["fantasy-land/of"]=X,e.Binary={bitSeq:l2,bitSeqObj:function(n3){s2();var t3={},r2=0,e2=a(function(n4){if(E(n4)){var e3=n4;if(e3.length!==2)throw new Error("["+e3.join(", ")+"] should be length 2, got length "+e3.length);if(P(e3[0]),O(e3[1]),Object.prototype.hasOwnProperty.call(t3,e3[0]))throw new Error("duplicate key in bitSeqObj: "+e3[0]);return t3[e3[0]]=!0,r2++,e3}return O(n4),[null,n4]},n3);if(r2<1)throw new Error("bitSeqObj expects at least one named pair, got ["+n3.join(", ")+"]");var u2=a(function(n4){return n4[0]},e2);return l2(a(function(n4){return n4[1]},e2)).map(function(n4){return i(function(n5,t4){return t4[0]!==null&&(n5[t4[0]]=t4[1]),n5},{},a(function(t4,r3){return[t4,n4[r3]]},u2))})},byte:function(n3){if(s2(),O(n3),n3>255)throw new Error("Value specified to byte constructor ("+n3+"=0x"+n3.toString(16)+") is larger in value than a single byte.");var t3=(n3>15?"0x":"0x0")+n3.toString(16);return e(function(r2,e2){var u2=L(r2,e2);return u2===n3?b(e2+1,u2):x(e2,t3)})},buffer:function(n3){return h("buffer",n3).map(function(n4){return Buffer.from(n4)})},encodedString:function(n3,t3){return h("string",t3).map(function(t4){return t4.toString(n3)})},uintBE:d,uint8BE:d(1),uint16BE:d(2),uint32BE:d(4),uintLE:v,uint8LE:v(1),uint16LE:v(2),uint32LE:v(4),intBE:g,int8BE:g(1),int16BE:g(2),int32BE:g(4),intLE:m,int8LE:m(1),int16LE:m(2),int32LE:m(4),floatBE:h("floatBE",4).map(function(n3){return n3.readFloatBE(0)}),floatLE:h("floatLE",4).map(function(n3){return n3.readFloatLE(0)}),doubleBE:h("doubleBE",8).map(function(n3){return n3.readDoubleBE(0)}),doubleLE:h("doubleLE",8).map(function(n3){return n3.readDoubleLE(0)})},n2.exports=e}])})})(parsimmon_umd_min,parsimmon_umd_min.exports);var parsimmon_umd_minExports=parsimmon_umd_min.exports,emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640 Line truncated
`)[0];let comment=line.substring(2).trim();return parsimmon_umd_minExports.makeSuccess(i+line.length,comment)}),namedField:q=>parsimmon_umd_minExports.alt(q.explicitNamedField,captureRaw(EXPRESSION.field).map(([value,text])=>QueryFields.named(stripNewlines(text),value))),sortField:q=>parsimmon_umd_minExports.seqMap(EXPRESSION.field.skip(parsimmon_umd_minExports.optWhitespace),parsimmon_umd_minExports.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(field,dir2)=>{let direction=dir2.length==0?"ascending":dir2[0].toLowerCase();return direction=="desc"&&(direction="descending"),direction=="asc"&&(direction="ascending"),{field,direction}}),headerClause:q=>q.queryType.chain(type=>{switch(type){case"table":return precededByWhitespaceIfNotEof(()=>({type,fields:[],showId:!0}),parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/WITHOUT\s+ID/i).skip(parsimmon_umd_minExports.optWhitespace).atMost(1),parsimmon_umd_minExports.sepBy(q.namedField,parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)),(withoutId,fields)=>({type,fields,showId:withoutId.length==0})));case"list":return precededByWhitespaceIfNotEof(()=>({type,format:void 0,showId:!0}),parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/WITHOUT\s+ID/i).skip(parsimmon_umd_minExports.optWhitespace).atMost(1),EXPRESSION.field.atMost(1),(withoutId,format)=>({type,format:format.length==1?format[0]:void 0,showId:withoutId.length==0})));case"task":return parsimmon_umd_minExports.succeed({type});case"calendar":return parsimmon_umd_minExports.whitespace.then(parsimmon_umd_minExports.seqMap(q.namedField,field=>({type,showId:!0,field})));default:return parsimmon_umd_minExports.fail(`Unrecognized query type '${type}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:q=>parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/FROM/i),parsimmon_umd_minExports.whitespace,EXPRESSION.source,(_1,_2,source)=>source),whereClause:q=>parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/WHERE/i),parsimmon_umd_minExports.whitespace,EXPRESSION.field,(where,_,field)=>({type:"where",clause:field})).desc("WHERE <expression>"),sortByClause:q=>parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/SORT/i),parsimmon_umd_minExports.whitespace,q.sortField.sepBy1(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)),(sort,_1,fields)=>({type:"sort",fields})).desc("SORT field [ASC/DESC]"),limitClause:q=>parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/LIMIT/i),parsimmon_umd_minExports.whitespace,EXPRESSION.field,(limit,_1,field)=>({type:"limit",amount:field})).desc("LIMIT <value>"),flattenClause:q=>parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/FLATTEN/i).skip(parsimmon_umd_minExports.whitespace),q.namedField,(_,field)=>({type:"flatten",field})).desc("FLATTEN <value> [AS <name>]"),groupByClause:q=>parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/GROUP BY/i).skip(parsimmon_umd_minExports.whitespace),q.namedField,(_,field)=>({type:"group",field})).desc("GROUP BY <value> [AS <name>]"),clause:q=>parsimmon_umd_minExports.alt(q.fromClause,q.whereClause,q.sortByClause,q.limitClause,q.groupByClause,q.flattenClause),query:q=>parsimmon_umd_minExports.seqMap(q.headerClause.trim(optionalWhitespaceOrComment),q.fromClause.trim(optionalWhitespaceOrComment).atMost(1),q.clause.trim(optionalWhitespaceOrComment).many(),(header,from,clauses)=>({header,source:from.length==0?Sources.folder(""):from[0],operations:clauses,settings:DEFAULT_QUERY_SETTINGS}))}),optionalWhitespaceOrComment=parsimmon_umd_minExports.alt(parsimmon_umd_minExports.whitespace,QUERY_LANGUAGE.comment).many().map(arr=>arr.join("")),getAPI4=app=>app?app.plugins.plugins.dataview?.api:window.DataviewAPI,isPluginEnabled=app=>app.plugins.enabledPlugins.has("dataview");exports.DATE_SHORTHANDS=DATE_SHORTHANDS;exports.DURATION_TYPES=DURATION_TYPES;exports.EXPRESSION=EXPRESSION;exports.KEYWORDS=KEYWORDS;exports.QUERY_LANGUAGE=QUERY_LANGUAGE;exports.getAPI=getAPI4;exports.isPluginEnabled=isPluginEnabled;exports.parseField=parseField}});var require_slugify=__commonJS({"node_modules/slugify/slugify.js"(exports,module2){(function(name,root,factory){typeof exports=="object"?(module2.exports=factory(),module2.exports.default=factory()):typeof define=="function"&&define.amd?define(factory):root[name]=factory()})("slugify",exports,function(){var charMap=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1Line truncated
`+data.errors.map(e=>` - ${e.message}`).join(`
`)}var GraphqlResponseError=class extends Error{constructor(request2,headers,response){super(_buildMessageForResponseErrors(response)),this.request=request2,this.headers=headers,this.response=response,this.errors=response.errors,this.data=response.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},NON_VARIABLE_OPTIONS=["method","baseUrl","url","headers","request","query","mediaType","operationName"],FORBIDDEN_VARIABLE_OPTIONS=["query","method","url"],GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(request2,query,options){if(options){if(typeof query=="string"&&"query"in options)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let key in options)if(FORBIDDEN_VARIABLE_OPTIONS.includes(key))return Promise.reject(new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`))}let parsedOptions=typeof query=="string"?Object.assign({query},options):query,requestOptions=Object.keys(parsedOptions).reduce((result,key)=>NON_VARIABLE_OPTIONS.includes(key)?(result[key]=parsedOptions[key],result):(result.variables||(result.variables={}),result.variables[key]=parsedOptions[key],result),{}),baseUrl=parsedOptions.baseUrl||request2.endpoint.DEFAULTS.baseUrl;return GHES_V3_SUFFIX_REGEX.test(baseUrl)&&(requestOptions.url=baseUrl.replace(GHES_V3_SUFFIX_REGEX,"/api/graphql")),request2(requestOptions).then(response=>{if(response.data.errors){let headers={};for(let key of Object.keys(response.headers))headers[key]=response.headers[key];throw new GraphqlResponseError(requestOptions,headers,response.data)}return response.data.data})}function withDefaults3(request2,newDefaults){let newRequest=request2.defaults(newDefaults);return Object.assign((query,options)=>graphql(newRequest,query,options),{defaults:withDefaults3.bind(null,newRequest),endpoint:newRequest.endpoint})}var graphql2=withDefaults3(request,{headers:{"user-agent":`octokit-graphql.js/${VERSION3} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(customRequest){return withDefaults3(customRequest,{method:"POST",url:"/graphql"})}var REGEX_IS_INSTALLATION_LEGACY=/^v1\./,REGEX_IS_INSTALLATION=/^ghs_/,REGEX_IS_USER_TO_SERVER=/^ghu_/;async function auth(token){let isApp=token.split(/\./).length===3,isInstallation=REGEX_IS_INSTALLATION_LEGACY.test(token)||REGEX_IS_INSTALLATION.test(token),isUserToServer=REGEX_IS_USER_TO_SERVER.test(token);return{type:"token",token,tokenType:isApp?"app":isInstallation?"installation":isUserToServer?"user-to-server":"oauth"}}function withAuthorizationPrefix(token){return token.split(/\./).length===3?`bearer ${token}`:`token ${token}`}async function hook(token,request2,route,parameters){let endpoint2=request2.endpoint.merge(route,parameters);return endpoint2.headers.authorization=withAuthorizationPrefix(token),request2(endpoint2)}var createTokenAuth=function(token){if(!token)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof token!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return token=token.replace(/^(token|bearer) +/i,""),Object.assign(auth.bind(null,token),{hook:hook.bind(null,token)})};var VERSION4="6.1.5";var noop=()=>{},consoleWarn=console.warn.bind(console),consoleError=console.error.bind(console),userAgentTrail=`octokit-core.js/${VERSION4} ${getUserAgent()}`,Octokit=class{static VERSION=VERSION4;static defaults(defaults){return class extends this{constructor(...args){let options=args[0]||{};if(typeof defaults=="function"){super(defaults(options));return}super(Object.assign({},defaults,options,options.userAgent&&defaults.userAgent?{userAgent:`${options.userAgent} ${defaults.userAgent}`}:null))}}}static plugins=[];static plugin(...newPlugins){let currentPlugins=this.plugins;return class extends this{static plugins=currentPlugins.concat(newPlugins.filter(plugin=>!currentPlugins.includes(plugin)))}}constructor(options={}){let hook2=new before_after_hook_default.Collection,requestDefaults={baseUrl:request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},options.request,{hook:hook2.bind(null,"request")}),mediaType:{previews:[],format:""}};if(requestDefaults.headers["user-agent"]=options.userAgent?`${options.userAgent} ${userAgentTrail}`:userAgentTrail,options.baseUrl&&(requestDefaults.baseUrl=options.baseUrl),options.previews&&(requestDefaults.mediaType.previews=options.previews),options.timeZone&&(requestDefaults.headers["time-zone"]=options.timeZone),this.request=request.defaults(requestDefaults),this.graphql=withCustomRequest(this.request).defaults(requestDefaults),this.log=Object.assign({debug:noop,info:noop,warn:consoleWarn,error:consoleError},options.log),this.hook=hook2,options.authStrategy){let{authStrategy,...otherOptions}=options,auth2=authStrategy(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:otherOptions},options.auth));hook2.wrap("request",auth2 Line truncated
`),mindent=null;for(let l of lines){let m=l.match(/^(\s+)\S+/);if(m){let indent=m[1].length;mindent?mindent=Math.min(mindent,indent):mindent=indent}}if(mindent!==null){let m=mindent;result=lines.map(l=>l[0]===" "||l[0]===" "?l.slice(m):l).join(`
`)}return result=result.trim(),escapeSpecialCharacters&&(result=result.replace(/\\n/g,`
`)),result}}var isString=obj=>typeof obj=="string",defer=()=>{let res,rej,promise=new Promise((resolve,reject)=>{res=resolve,rej=reject});return promise.resolve=res,promise.reject=rej,promise},makeString=object=>object==null?"":""+object,copy=(a,s,t2)=>{a.forEach(m=>{s[m]&&(t2[m]=s[m])})},lastOfPathSeparatorRegExp=/###/g,cleanKey=key=>key&&key.indexOf("###")>-1?key.replace(lastOfPathSeparatorRegExp,"."):key,canNotTraverseDeeper=object=>!object||isString(object),getLastOfPath=(object,path,Empty)=>{let stack=isString(path)?path.split("."):path,stackIndex=0;for(;stackIndex<stack.length-1;){if(canNotTraverseDeeper(object))return{};let key=cleanKey(stack[stackIndex]);!object[key]&&Empty&&(object[key]=new Empty),Object.prototype.hasOwnProperty.call(object,key)?object=object[key]:object={},++stackIndex}return canNotTraverseDeeper(object)?{}:{obj:object,k:cleanKey(stack[stackIndex])}},setPath=(object,path,newValue)=>{let{obj,k}=getLastOfPath(object,path,Object);if(obj!==void 0||path.length===1){obj[k]=newValue;return}let e=path[path.length-1],p=path.slice(0,path.length-1),last=getLastOfPath(object,p,Object);for(;last.obj===void 0&&p.length;)e=`${p[p.length-1]}.${e}`,p=p.slice(0,p.length-1),last=getLastOfPath(object,p,Object),last?.obj&&typeof last.obj[`${last.k}.${e}`]<"u"&&(last.obj=void 0);last.obj[`${last.k}.${e}`]=newValue},pushPath=(object,path,newValue,concat)=>{let{obj,k}=getLastOfPath(object,path,Object);obj[k]=obj[k]||[],obj[k].push(newValue)},getPath=(object,path)=>{let{obj,k}=getLastOfPath(object,path);if(obj&&Object.prototype.hasOwnProperty.call(obj,k))return obj[k]},getPathWithDefaults=(data,defaultData,key)=>{let value=getPath(data,key);return value!==void 0?value:getPath(defaultData,key)},deepExtend=(target,source,overwrite)=>{for(let prop in source)prop!=="__proto__"&&prop!=="constructor"&&(prop in target?isString(target[prop])||target[prop]instanceof String||isString(source[prop])||source[prop]instanceof String?overwrite&&(target[prop]=source[prop]):deepExtend(target[prop],source[prop],overwrite):target[prop]=source[prop]);return target},regexEscape=str=>str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),_entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},escape=data=>isString(data)?data.replace(/[&<>"'\/]/g,s=>_entityMap[s]):data,RegExpCache=class{constructor(capacity){this.capacity=capacity,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(pattern){let regExpFromCache=this.regExpMap.get(pattern);if(regExpFromCache!==void 0)return regExpFromCache;let regExpNew=new RegExp(pattern);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(pattern,regExpNew),this.regExpQueue.push(pattern),regExpNew}},chars=[" ",",","?","!",";"],looksLikeObjectPathRegExpCache=new RegExpCache(20),looksLikeObjectPath=(key,nsSeparator,keySeparator)=>{nsSeparator=nsSeparator||"",keySeparator=keySeparator||"";let possibleChars=chars.filter(c=>nsSeparator.indexOf(c)<0&&keySeparator.indexOf(c)<0);if(possibleChars.length===0)return!0;let r=looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map(c=>c==="?"?"\\?":c).join("|")})`),matched=!r.test(key);if(!matched){let ki=key.indexOf(keySeparator);ki>0&&!r.test(key.substring(0,ki))&&(matched=!0)}return matched},deepFind=function(obj,path){let keySeparator=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!obj)return;if(obj[path])return Object.prototype.hasOwnProperty.call(obj,path)?obj[path]:void 0;let tokens=path.split(keySeparator),current=obj;for(let i=0;i<tokens.length;){if(!current||typeof current!="object")return;let next,nextPath="";for(let j=i;j<tokens.length;++j)if(j!==i&&(nextPath+=keySeparator),nextPath+=tokens[j],next=current[nextPath],next!==void 0){if(["string","number","boolean"].indexOf(typeof next)>-1&&j<tokens.length-1)continue;i+=j-i+1;break}current=next}return current},getCleanedCode=code=>code?.replace("_","-"),consoleLogger={type:"logger",log(args){this.output("log",args)},warn(args){this.output("warn",args)},error(args){this.output("error",args)},output(type,args){console?.[type]?.apply?.(console,args)}},Logger=class _Logger{constructor(concreteLogger){let options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(concreteLogger,options)}init(concreteLogger){let options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=options.prefix||"i18next:",this.logger=concreteLogger||consoleLogger,this.options=options,this.debug=options.debug}log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return this.forward(args,"log","",!0)}warn(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return this.forward(args,"warn","",!0)}error(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return this.forward(args,"error","")}deprecate(){for(var _le Line truncated
`,"").trim().replaceAll(`
`,`
`)}
`:`
`,header=`${new Date().toLocaleString()} [${type}]:
${errMessage.replaceAll(`
`,`
`)}
${stack}`;this.app.vault.adapter.exists(logFile).then(e=>{e?this.app.vault.adapter.append(logFile,header).catch(e2=>console.error(e2)):this.app.vault.adapter.write(logFile,header).catch(e2=>console.error(e2))}).catch(e=>console.error(e))}}notif(...messages){let settings=this.plugin.settings;settings.plugin?.noticeError&&new import_obsidian2.Notice(messages.join(" "),settings.plugin.noticeLength)}error(error){console.error(error),this.noticeError(error.message),this.writeToLog(error,"error")}warn(...messages){console.warn(...messages),this.notif(messages),this.writeToLog(messages,"warn")}info(...messages){console.info(...messages),this.notif(messages),this.writeToLog(messages,"info")}debug(...messages){this.plugin.settings.plugin?.dev&&(console.debug(...messages),this.notif(messages),this.writeToLog(messages,"debug"))}trace(...messages){this.plugin.settings.plugin?.dev&&(console.trace(...messages),this.notif(messages),this.writeToLog(messages,"debug"))}silly(...messages){this.plugin.settings.plugin?.dev&&(console.log(...messages),this.notif(messages),this.writeToLog(messages,"silly"))}noticeMobile(cls,icon,message){if(!import_obsidian2.Platform.isMobile)return;let noticeFrag=document.createDocumentFragment(),span=noticeFrag.createEl("span",{text:message,cls:["enveloppe",cls,"icons"]});return(0,import_obsidian2.setIcon)(span,icon),noticeFrag.createEl("span",{cls:["enveloppe",cls,"notification"]}).innerHTML=message,new import_obsidian2.Notice(noticeFrag,this.noticeLength)}noticeErrorUpload(properties){let repo=Array.isArray(properties)?properties:[properties];for(let repository of repo){let notif=document.createDocumentFragment(),notifSpan=notif.createSpan({cls:["error","enveloppe","icons","notification"]}),html=(0,import_obsidian2.sanitizeHTMLToDom)(instance.t("error.errorPublish",{repo:repository}));(0,import_obsidian2.setIcon)(notifSpan,"mail-warning"),notif.createSpan({cls:["error","enveloppe","notification"]}).appendChild(html),new import_obsidian2.Notice(notif,this.noticeLength)}}noticeSuccess(message){let notif=document.createDocumentFragment(),notifSpan=notif.createSpan({cls:["success","enveloppe","icons","notification"]}),html=(0,import_obsidian2.sanitizeHTMLToDom)(message);(0,import_obsidian2.setIcon)(notifSpan,"mail-check"),notif.createSpan({cls:["success","enveloppe","notification"]}).appendChild(html),new import_obsidian2.Notice(notif,this.noticeLength)}noticeError(message){let notif=document.createDocumentFragment(),notifSpan=notif.createSpan({cls:["error","enveloppe","icons","notification"]}),html=(0,import_obsidian2.sanitizeHTMLToDom)(message);(0,import_obsidian2.setIcon)(notifSpan,"alert-triangle"),notif.createSpan({cls:["error","enveloppe","notification"]}).appendChild(html),new import_obsidian2.Notice(notif,this.plugin.settings.plugin.noticeLength)}async publisherNotificationOneRepo(PublisherManager,file,settings,prop){let noticeValue=file instanceof import_obsidian2.TFile?`"${file.basename}"`:file,docSuccess=document.createDocumentFragment(),successMsg=file instanceof String?instance.t("informations.successfulPublish",{nbNotes:noticeValue,repo:prop}):instance.t("informations.successPublishOneNote",{file:noticeValue,repo:prop}),span=docSuccess.createEl("span",{text:successMsg,cls:["enveloppe","success","icons"]});if((0,import_obsidian2.setIcon)(span,"mail-check"),docSuccess.createEl("span",{cls:["enveloppe","success","notification"]}).innerHTML=successMsg,settings.github.workflow.name.length===0){new import_obsidian2.Notice(docSuccess,settings.plugin.noticeLength);return}let workflowSuccess=document.createDocumentFragment(),WorkflowSpan=workflowSuccess.createEl("span",{text:instance.t("informations.successfulPublish",{nbNotes:noticeValue,repo:prop}),cls:["enveloppe","wait","icons"]});(0,import_obsidian2.setIcon)(WorkflowSpan,"hourglass"),workflowSuccess.createEl("span",{cls:["enveloppe","wait","notification"]}).innerHTML=`${instance.t("informations.sendMessage",{nbNotes:noticeValue,repo:prop})}.<br>${instance.t("informations.waitingWorkflow")}`,new import_obsidian2.Notice(workflowSuccess,PublisherManager.settings.plugin.noticeLength),await PublisherManager.workflowGestion(prop)&&new import_obsidian2.Notice(docSuccess,settings.plugin.noticeLength)}async publisherNotification(PublisherManager,file,settings,prop){prop=Array.isArray(prop)?prop:[prop];for(let repository of prop)await this.publisherNotificationOneRepo(PublisherManager,file,settings,repository)}},EnveloppeErrors=class extends Error{constructor(message,options){super(),this.message=message;let{name,cause,stack}=options||{};name&&(this.name=name),cause&&(this.cause=cause),stack&&(this.stack=stack)}};function isInternalShared(frontmatter,properties,file){if(properties.frontmatter.general.unshared)return!0;if(properties.repository?.shareAll?.enable){let excludedFileName=properties.repository.shareAll.excludedFileName;return!file.basename.startsWith(excludedFileName)&&!isInDryRunFolder(properties.plugin.settings,properties.repository,f Line truncated
const query = ${query};
dv.el("div", query);
`,markdown=await this.tryExecuteJs(evaluateQuery);return removeDataviewQueries(markdown,this.properties.frontmatter.general)}};async function convertDataviewQueries(text,path,frontmatter,sourceFile,properties){let plugin=properties.plugin,app=plugin.app,settings=plugin.settings,replacedText=text,dataViewRegex=/```dataview\s(.+?)```/gms;if(!app.plugins.plugins?.dataview?._loaded)return replacedText;let dvApi=(0,import_obsidian_dataview.getAPI)(app);if(!dvApi)return replacedText;let matches=text.matchAll(dataViewRegex),compiler=new DataviewCompiler(settings,properties,path,dvApi,text),{dataviewJsMatches,inlineMatches,inlineJsMatches}=compiler.matches();if(!matches&&!inlineMatches&&!dataviewJsMatches&&!inlineJsMatches)return plugin.console.warn("No dataview queries found"),replacedText;let error=instance.t("error.dataview");for(let queryBlock of matches)try{let block=queryBlock[0],markdown=await compiler.dataviewDQL(queryBlock[1]);replacedText=replacedText.replace(block,markdown)}catch(e){return plugin.console.debug(e),plugin.console.warn(error),queryBlock[0]}for(let queryBlock of dataviewJsMatches)try{let block=queryBlock[0],markdown=await compiler.dataviewJS(queryBlock[1]);replacedText=replacedText.replace(block,markdown)}catch(e){return plugin.console.debug(e),plugin.console.warn(error),queryBlock[0]}for(let inlineQuery of inlineMatches)try{let code=inlineQuery[0],query=inlineQuery[1].trim(),markdown=await compiler.inlineDQLDataview(query);replacedText=replacedText.replace(code,markdown)}catch(e){return plugin.console.debug(e),plugin.console.warn(error),inlineQuery[0]}for(let inlineJsQuery of inlineJsMatches)try{let code=inlineJsQuery[0],markdown=await compiler.inlineDataviewJS(inlineJsQuery[1].trim());replacedText=replacedText.replace(code,markdown)}catch(e){return plugin.console.debug(e),plugin.console.warn(error),inlineJsQuery[0]}return await convertDataviewLinks(replacedText,frontmatter,sourceFile,properties)}function removeDataviewQueries(dataviewMarkdown,frontmatterSettings){let toStr=dataviewMarkdown?.toString();return frontmatterSettings.dataview&&dataviewMarkdown&&toStr?toStr:""}async function convertDataviewLinks(md,frontmatter,sourceFile,properties){let dataviewPath=getDataviewPath(md,properties.plugin);return md=await convertToInternalGithub(md,dataviewPath,sourceFile,frontmatter,properties),convertWikilinks(md,properties.frontmatter.general,dataviewPath,properties.plugin,frontmatter)}function getDataviewPath(markdown,plugin){let{settings}=plugin,vault=plugin.app.vault;if(!settings.conversion.dataview)return[];let wikiRegex=/\[\[(.*?)\]\]/gim,wikiMatches=markdown.matchAll(wikiRegex),linkedFiles=[];if(!wikiMatches)return[];if(wikiMatches)for(let wikiMatch of wikiMatches){let altText=wikiMatch[1].replace(/(.*)\\?\|/i,""),linkFrom=wikiMatch[1].replace(/\\?\|(.*)/,""),linked=vault.getAbstractFileByPath(linkFrom)instanceof import_obsidian7.TFile?vault.getAbstractFileByPath(linkFrom):null;linked&&linkedFiles.push({linked,linkFrom,altText,type:"link"})}return linkedFiles}function sanitizeQuery(query){let isInsideCallout=!1,parts=query.split(`
`),sanitized=[];for(let part of parts)part.startsWith(">")?(isInsideCallout=!0,sanitized.push(part.substring(1).trim())):sanitized.push(part);let finalQuery=query;return isInsideCallout&&(finalQuery=sanitized.join(`
`)),{isInsideCallout,finalQuery}}function surroundWithCalloutBlock(input){return` ${input.split(`
`).join(`
> `)}`}var import_obsidian8=require("obsidian"),import_obsidian_dataview2=__toESM(require_lib());function applyIndent(text,indent){return indent?text.trim().replace(/(\r?\n)/g,`$1${indent}`):text}function stripFirstBullet(text){return text.replace(/^[ \t]*(?:[-*+]|[0-9]+[.)]) +/,"")}function dedent2(text){let firstIndent=text.match(/^([ \t]*)/);return firstIndent?text.replace(new RegExp(`^${firstIndent[0].replace(/\\/g,"\\$&")}`,"gm"),""):text}function stripBlockId(str){return str.replace(/ +\^[^ \n\r]+$/gm,"")}function stripFrontmatter(text){return text&&text.replace(/^---[\s\S]+?\r?\n---(?:\r?\n\s*|$)/,"")}function sanitizeBakedContent(text){return stripBlockId(stripFrontmatter(text))}function extractSubpath(content,subpathResult,cache){if(subpathResult.type==="block"&&subpathResult.list&&cache.listItems){let targetItem=subpathResult.list,ancestors=new Set([targetItem.position.start.line]),start2=targetItem.position.start.offset-targetItem.position.start.col,end2=targetItem.position.end.offset,found=!1;for(let item of cache.listItems){if(targetItem===item){found=!0;continue}else if(!found)continue;if(!ancestors.has(item.parent))break;ancestors.add(item.position.start.line),end2=item.position.end.offset}return stripBlockId(dedent2(content.substring(start2,end2)))}let start=subpathResult.start.offset,end=subpathResult.end?subpathResult.end.offset:content.length;return stripBlockId(content.substring(start,end))}async function bakeEmbeds(originalFile,ancestor,properties,subpath,linkedNotes){let{plugin}=properties,{app,settings}=plugin,{vault,metadataCache}=plugin.app,text=await vault.cachedRead(originalFile),cache=metadataCache.getFileCache(originalFile);if(!cache)return text;let resolvedSubpath=subpath?(0,import_obsidian8.resolveSubpath)(cache,subpath):null;resolvedSubpath&&resolvedSubpath.type!=="footnote"&&(text=extractSubpath(text,resolvedSubpath,cache));let embeds=cache.embeds;if(!embeds||embeds.length===0)return text;let targets=[...embeds];targets.sort((a,b)=>a.position.start.offset-b.position.start.offset);let newAncestors=new Set(ancestor);newAncestors.add(originalFile);let posOffset=0;for(let embed of targets){let{path,subpath:subpath2}=(0,import_obsidian8.parseLinktext)(embed.link),linked=metadataCache.getFirstLinkpathDest(path,originalFile.path);if(linked===null||linked?.extension!=="md")continue;let start=embed.position.start.offset+posOffset,end=embed.position.end.offset+posOffset,prevLen=end-start,before=text.substring(0,start),after=text.substring(end),replaceTarget=async replacement=>{if(settings.embed.bake?.textAfter){let textAfter=await changeUrl(settings.embed.bake?.textAfter,properties,linked,originalFile,linkedNotes);textAfter=changeTitle(textAfter,linked,app,settings);let newLine=replacement.match(/[\s\n]/g)?"":`
`;replacement=`${replacement}${newLine}${textAfter}`}if(settings.embed.bake?.textBefore){let textBefore=await changeUrl(settings.embed.bake?.textBefore,properties,linked,originalFile,linkedNotes);textBefore=changeTitle(textBefore,linked,app,settings),replacement=`${textBefore}
${replacement}`}text=before+replacement+after,posOffset+=replacement.length-prevLen},frontmatter=metadataCache.getFileCache(linked)?.frontmatter,shared=isShared(frontmatter,settings,linked,properties.repository),listMatch=before.match(/(?:^|\n)([ \t]*)(?:[-*+]|[0-9]+[.)]) +$/);if(newAncestors.has(linked)||!shared)continue;let baked=sanitizeBakedContent(await bakeEmbeds(linked,newAncestors,properties,subpath2,linkedNotes));await replaceTarget(listMatch?applyIndent(stripFirstBullet(baked),listMatch[1]):baked)}return text}async function changeUrl(textToAdd,properties,linked,sourceFile,linkedNotes){let frontmatter=properties.plugin.app.metadataCache.getFileCache(linked)?.frontmatter;if(!frontmatter)return textToAdd;let linkedNote=linkedNotes.find(note=>note.linked===linked);if(!linkedNote)return textToAdd;if(properties.frontmatter.general.convertInternalLinks){let relativePath=await createRelativePath(sourceFile,linkedNote,frontmatter,properties);return textToAdd.replace(/\{{2}url\}{2}/gim,relativePath.link)}return textToAdd.replace(/\{{2}url\}{2}/gim,linkedNote.linked.path)}function changeTitle(textToAdd,linked,app,settings){let title=linked.basename,frontmatter=app.metadataCache.getFileCache(linked)?.frontmatter;if(!frontmatter)return textToAdd.replace(/\{{2}title\}{2}/gim,title);let getTitle=regexOnFileName(getTitleField(frontmatter,linked,settings),settings).replace(".md","");return textToAdd.replace(/\{{2}title\}{2}/gim,getTitle)}async function convertInlineDataview(text,plugin,sourceFile){let{settings,app}=plugin;if(settings.conversion.tags.fields.length===0||!app.plugins.enabledPlugins.has("dataview"))return text;let dvApi=(0,import_obsidian_dataview2.getAPI)();if(!dvApi)return text;let dataviewLinks=dvApi.page(sourceFile.path);if(!dataviewLinks)return text;let valueToAdd=[];for(let field of settings.conversion.tags.fields){let fieldValue=dataviewLinks[field];if(fieldValue)if(fieldValue.constructor.name==="Link"){fieldValue=fieldValue;let stringifyField=dataviewExtract(fieldValue,settings);stringifyField&&valueToAdd.push(stringifyField)}else if(fieldValue instanceof Array)for(let item of fieldValue){let stringifyField=item;item&&item.constructor.name==="Link"?(stringifyField=dataviewExtract(item,settings),stringifyField&&valueToAdd.push(stringifyField)):stringifyField&&!settings.conversion.tags.exclude.includes(stringifyField.toString())&&valueToAdd.push(stringifyField.toString())}else settings.conversion.tags.exclude.includes(fieldValue.toString())||valueToAdd.push(fieldValue.toString())}return valueToAdd.length>0?addToYaml(text,valueToAdd.filter(Boolean),{properties:null,file:sourceFile}):text}function dataviewExtract(fieldValue,settings){let filename=(name=>/([^/\\.]*)(\..*)?$/.exec(name)[1])(fieldValue.path).toString(),display=fieldValue.display?fieldValue.display.toString():filename;return!settings.conversion.tags.exclude.includes(display)&&!settings.conversion.tags.fields.includes(filename)?display:null}function addHardLineBreak(text,plugin,frontmatter){try{let{exists:exists2,contentStart,from}=(0,import_obsidian9.getFrontMatterInfo)(text);if(frontmatter.hardbreak){if(exists2){let substring=text.substring(contentStart).replace(/\n/gm,`
`).replace(/^\s*\\\s*$/gim,"<br/>");return`---
${text.slice(from,contentStart)}${substring}`}return text.replace(/\n/gm,`
`)}else if(exists2){let newText=text.substring(contentStart).replace(/^\s*\\\s*$/gim,"<br/>");return`---
${text.slice(from,contentStart)}${newText}`}return text.replace(/^\s*\\\s*$/gim,"<br/>")}catch(e){return plugin.console.error(e),text}}function setTags(toAdd,tags){return!tags||!Array.isArray(tags)?toAdd:(tags=tags.map(tag=>tag.replaceAll("/","_")),Array.isArray(tags)?[...new Set([...tags,...toAdd])]:[...new Set([...toAdd,tags])])}function tagsToYaml(toAdd,plugin,yaml){if(yaml.tag)try{toAdd=[...setTags(toAdd,yaml.tag)],delete yaml.tag}catch(e){plugin.console.error(e)}if(yaml.tags)try{yaml.tags=[...setTags(toAdd,yaml.tags)]}catch(e){plugin.console.error(e)}else yaml.tags=toAdd;return yaml}function addToYaml(text,toAdd,folderNoteParaMeters){let properties=folderNoteParaMeters?.properties,{contentStart,exists:exists2,frontmatter}=(0,import_obsidian9.getFrontMatterInfo)(text);if(!properties||!properties.plugin.settings.conversion.tags.inline&&!properties.plugin.settings.upload.folderNote.addTitle)return text;let yamlObject=(0,import_obsidian9.parseYaml)(exists2?frontmatter:"{}");try{if(yamlObject&&toAdd.length>0&&(yamlObject=tagsToYaml(toAdd,properties.plugin,yamlObject)),folderNoteParaMeters?.properties&&(yamlObject=titleToYaml(yamlObject,folderNoteParaMeters.properties,folderNoteParaMeters.file)),yamlObject&&Object.keys(yamlObject).length>0)return`---
${(0,import_obsidian9.stringifyYaml)(yamlObject)}---
${exists2?text.slice(contentStart):text}`}catch{return new import_obsidian9.Notice(instance.t("error.parseYaml"),properties.plugin.settings.plugin.noticeLength),text}return new import_obsidian9.Notice(instance.t("error.parseYaml"),properties.plugin.settings.plugin.noticeLength),text}function titleToYaml(yaml,properties,file){let settings=properties.plugin.settings.upload.folderNote.addTitle;return settings&&!yaml[settings.key]&&isFolderNote(properties)&&settings.enable&&(yaml[settings.key]=file.basename),yaml}function inlineTags(settings,file,metadataCache,frontmatter){if(!settings.conversion.tags.inline)return[];let inlineTags2=metadataCache.getFileCache(file)?.tags,inlineTagsInText=inlineTags2?inlineTags2.map(t2=>t2.tag.replace("#","").replaceAll("/","_")):[],frontmatterTags=(0,import_obsidian9.parseFrontMatterTags)(frontmatter),yamlTags=frontmatterTags?frontmatterTags.map(t2=>t2.replace("#","").replaceAll("/","_")):[];return[...new Set([...inlineTagsInText,...yamlTags])]}async function processYaml(file,frontmatter,text,multiProperties){let{plugin}=multiProperties,{settings,app}=plugin,metadataCache=app.metadataCache,toAdd=inlineTags(settings,file,metadataCache,frontmatter);return addToYaml(text,toAdd,{properties:multiProperties,file})}async function mainConverting(text,file,frontmatter,linkedFiles,properties){let{plugin}=properties;return properties.frontmatter.general.removeEmbed==="bake"&&(text=await bakeEmbeds(file,new Set,properties,null,linkedFiles)),text=findAndReplaceText(text,plugin,!1),text=await processYaml(file,frontmatter,text,properties),text=await convertToInternalGithub(text,linkedFiles,file,frontmatter,properties),text=convertWikilinks(text,properties.frontmatter.general,linkedFiles,plugin,frontmatter),text=await convertDataviewQueries(text,file.path,frontmatter,file,properties),text=await convertInlineDataview(text,plugin,file),text=addHardLineBreak(text,plugin,properties.frontmatter.general),findAndReplaceText(text,plugin,!0)}async function convertToHTMLSVG(file,app){try{let excalidraw=app.plugins.getPlugin("obsidian-excalidraw-plugin");if(!excalidraw)return null;let ea=excalidraw.ea,settings=ea.getExportSettings(!1,!0),embeddedFilesLoader=ea.getEmbeddedFilesLoader(!0);return(await ea.createSVG(file.path,!0,settings,embeddedFilesLoader)).outerHTML}catch(e){return console.error(e),null}}var import_obsidian10=require("obsidian"),ShareStatusBar=class{statusBarItem;counter;numberOfNotesToPublish;attachment=!1;status;icon;noticeMobile;console;isMainFile;constructor(statusBarItem,numberOfNotesToPublish,attachment=!1,console2,isMainFile){this.statusBarItem=statusBarItem,this.counter=0,this.numberOfNotesToPublish=numberOfNotesToPublish,this.attachment=attachment,this.console=console2,this.isMainFile=isMainFile;let typeAttachment=this.attachment?instance.t("common.attachments"):instance.t("common.files"),msg=instance.t("statusBar.markedForSharing",{nb:this.numberOfNotesToPublish,type:typeAttachment});this.icon=this.statusBarItem.createEl("span",{cls:["enveloppe","icons"]}),this.statusBarItem.addClass("found-attachments"),(0,import_obsidian10.setIcon)(this.icon,"search-check"),this.status=this.statusBarItem.createEl("span",{text:`${msg}`}),this.status.addClass("found-attachments"),this.noticeMobile=this.console.noticeMobile("wait","search-check",msg)}increment(){let typeAttachment=this.attachment?instance.t("common.attachments"):instance.t("common.files"),msg=instance.t("statusBar.sharing",{type:typeAttachment.toLowerCase()});(0,import_obsidian10.setIcon)(this.icon,"hourglass"),this.status.setText(instance.t("statusBar.counter",{msg,counter:++this.counter,nb:this.numberOfNotesToPublish})),this.statusBarItem.addClass("sharing"),this.statusBarItem.removeClass("found-attachments"),this.noticeMobile?.noticeEl?.children[0]?.classList?.contains("load")||(setTimeout(()=>{this.noticeMobile?.hide()},4e3),this.noticeMobile=this.console.noticeMobile("load","hourglass",msg))}finish(displayDurationMillisec){activeDocument.querySelector(".status-bar-item.plugin-obsidian-mkdocs-publisher.success")&&this.statusBarItem.remove();let msg=this.attachment?instance.t("statusBar.success",{action:instance.t("common.shared"),type:instance.t("common.attachments")}):instance.t("statusBar.success",{action:instance.t("common.published"),type:instance.t("common.files")}),iconProp=this.isMainFile?"book-check":"mail-check";(0,import_obsidian10.setIcon)(this.icon,iconProp),this.counter>1?this.status.setText(instance.t("statusBar.counter",{msg,counter:this.counter,nb:this.numberOfNotesToPublish})):this.status.setText(instance.t("statusBar.main")),this.statusBarItem.addClass("success"),this.isMainFile&&this.statusBarItem.addClass("main-success"),this.statusBarItem.removeClass("sharing"),this.noticeMobile?.hide(),setTimeout(()=>{this.statusBarItem.remove()},displayDurationMillisec),setTimeout(()=>{this.noticeMobile?.hide()},displayDurationMillisec-4e3)}error(prop){this.statusBarItem.addClass("error"),this.statusBarItem.removeClass Line truncated
Dataview oder ein anderes Plugin st\xF6rt das Hinzuf\xFCgen.
Schritt \xFCbersprungen.`,"reading-token-file":"Fehler: Der Pfad scheint falsch zu sein.",unablePublishMultiNotes:"Mehrere Notizen k\xF6nnen nicht hochgeladen werden, etwas ist schief gelaufen.",unablePublishNote:"",whatEmpty:{branch:"Zweig",owner:"Eigent\xFCmer"}},informations:{foundNoteToSend:"",migrating:{fileReplace:"",normalFormat:"",oldSettings:"",subFolder:""},noNewNote:"",scanningRepo:"",sendMessage:"",startingClean:"",successPublishOneNote:"",successfulPublish:"",wait:"",wait_plural:"",waitingWorkflow:""},modals:{export:{copy:"",desc:"",download:"Herunterladen",title:""},import:{desc:"",error:{isEmpty:"",span:""},importFromFile:"",paste:"",presets:{desc:"",title:""},title:""},listChangedFiles:{added:"",deleted:"",edited:"",error:"",notDeleted:"",title:"",unpublished:""}},publish:{branch:{alreadyExists:"",error:"",prMessage:"",success:""},upToDate:""},regex:{entry:"",replace:""},settings:{conversion:{dataview:{desc:"",title:""},desc:"",hardBreak:{desc:"",title:""},links:{desc:"",folderNote:{desc:"",title:""},internals:{dataview:"",desc:"",shareAll:"",title:""},key:"<code>links: false</code>",nonShared:{desc:"",title:""},relativePath:{desc:"",title:""},slugify:{desc:"",disable:"",lower:"",strict:"",title:""},textBefore:{desc:"",title:""},title:"",unlink:{desc:"",title:""},wikilinks:{desc:"",title:""}},sectionTitle:"",tags:{desc:"",exclude:{desc:"",placeholder:"",title:""},inlineTags:{desc:"",title:""},title:""},title:""},embed:{attachment:"",bake:{text:"",textAfter:{title:""},textBefore:{title:""},title:"",variable:{desc:"",title:"",url:""},warning:""},char:{desc:"",title:""},defaultImageFolder:{desc:"",title:""},forcePush:{all:"",default:"",desc:"",info:"",title:""},imagePath:{desc:"",title:""},links:{desc:"",dp:{bake:"",keep:"",links:"",remove:""},title:""},notes:"",overrides:{desc:"",modal:{dest:"",path:"",title:""}},sendSimpleLinks:{desc:"",title:""},title:"",transferImage:{title:""},transferMetaFile:{desc:"",title:""},transferNotes:{desc:"",title:""}},embeds:{unHandledObsidianExt:{desc:"",title:""}},github:{apiType:{desc:"",dropdown:{enterprise:"",free:""},hostname:{desc:"",title:""},title:""},automaticallyMergePR:"",branch:{desc:"",title:""},dryRun:{enable:{desc:"",title:""},folder:{desc:"",error:"",title:""}},ghToken:{button:{configDir:"",default:"",description:"",pluginID:"",tooltip:"",variables:""},desc:"",error:""},repoName:{desc:"",placeholder:"",title:""},smartRepo:{button:"",modals:{default:"",desc:"",duplicate:"",empty:"",frontmatterInfo:"",newRepo:"",otherConfig:"",shortcuts:{desc:"",title:""},title:""}},testConnection:"",title:"",username:{desc:"",title:""}},githubWorkflow:{autoCleanUp:{desc:"",popup:{desc:"",exclude:"",sure:"",title:""},title:""},excludedFiles:{desc:"",title:""},githubAction:{desc:"",title:""},includeAttachments:{desc:"",title:""},prRequest:{desc:"",error:"",title:""},useMetadataExtractor:{desc:"",title:""}},help:{frontmatter:{attachment:{folder:"",send:""},autoclean:"",baselink:{desc:"",remove:""},convert:{enableOrDisable:"",syntax:""},dataview:"",desc:"",embed:{char:"",remove:{bake:"",desc:"",keep:"",links:"",remove:""},send:""},hardBreak:"",includeLinks:"",internals:"",mdlinks:"",nestedKey:"",nonShared:"",path:"",repo:{branch:"",desc:"",owner:""},share:{other:"",title:""},shortRepo:"",title:"",titleKey:"",unlink:""},multiRepoHelp:{desc:"",desc2:"",exampleDesc:"",title:""},title:"",usefulLinks:{discussion:"",documentation:"",issue:"",title:"",translation:""}},plugin:{copyLink:{applyRegex:{desc:"",title:""},baselink:{desc:"",title:""},command:{desc:""},desc:"",linkPathRemover:{desc:"",title:""},slugify:{disable:"",lower:"",strict:"",title:""},title:"",toUri:{desc:"",title:""}},dev:{desc:"",title:""},editorMenu:{desc:"",title:""},embedEditRepo:{desc:"",title:""},excludedFolder:{desc:"",title:""},fileMenu:{desc:"",title:""},head:{copyLinks:"",log:"",menu:"",other:"",share:""},logNoticeHeader:{desc:"",title:""},noticeLength:{desc:"",error:"",title:""},saveTab:{desc:"",title:""},set:{desc:"",title:""},setImport:{desc:"",title:""},shareKey:{all:{desc:"",title:""},desc:"",excludedFileName:{title:""},otherRepo:"",title:""},title:""},regexReplacing:{empty:"",emptyRegex:"",forbiddenValue:"",inCodeBlocks:{runIn:"",runOut:""},invalidRegex:"",modal:{desc:"",force:"",keywords:"",name:"",title:{all:"",only:"",text:""}},momentReplaceRegex:"",warningPath:""},upload:{defaultFolder:{desc:"",placeholder:"",title:""},folderBehavior:{desc:"",fixedFolder:"",obsidianPath:"",title:"",yaml:""},folderNote:{addTitle:{key:"",title:""}},frontmatterKey:{desc:"",placeholder:"",title:""},regexFilePathTitle:{desc:"",title:{FolderPathTitle:"",titleOnly:""}},rootFolder:{desc:"",other:"",title:""},title:"",useFrontmatterTitle:{desc:"",title:""}}},statusBar:{counter:"",loading:"",main:"",markedForSharing:"",sharing:"",success:""}};var en_default={commands:{checkValidity:{error:"Incorrect configuration",errorToken:"Error 401: The token associated to {{- owner}} is not valid. Please, create a new token. Line truncated
Dataview or another plugin must be interfering with it.
Step skipped.`,"reading-token-file":"Error: the path seems incorrect.",unablePublishMultiNotes:"Unable to upload multiple notes, something went wrong.",unablePublishNote:"Unable to upload note {{- file}}, skipping it",whatEmpty:{branch:"Branch",owner:"Owner"}},informations:{foundNoteToSend:"Found {{- nbNotes}} new notes to send",migrating:{fileReplace:"Migration of filename replace to the new format\u2026",normalFormat:"Migrating settings\u2026",oldSettings:"Migration of old settings to new settings format\u2026",subFolder:"Adding replacing subfolder to the folderpath replacement\u2026"},noNewNote:"No new notes to upload.",scanningRepo:"Scanning the repository, may take a while\u2026",sendMessage:"Upload <i>{{- nbNotes}}</i> notes to <u>{{- repo.owner}}/{{- repo.repo}}</u>",startingClean:"Starting cleaning <u>{{- repo.owner}}/{{- repo.repo}}</u>",successPublishOneNote:"Successfully uploaded <i><u>{{- file}}</u></i> to <u>{{- repo.owner}}/{{- repo.repo}}</u>",successfulPublish:"Successfully uploaded <i>{{- nbNotes}}</i> to <u>{{- repo.owner}}/{{- repo.repo}}</u>",wait:"Scanning file {{-file}}... Please wait...",wait_plural:"Scanning files... Please wait...",waitingWorkflow:"Now, waiting for the workflow to be completed\u2026"},modals:{export:{copy:"Copy to clipboard",desc:"Export settings to clipboard or a file.",download:"Download",title:"Export settings"},import:{desc:"Import settings from text or a file. Note : this will overwrite your current settings (except for username, repo name and token).",error:{isEmpty:"the configuration is empty.",span:"Error importing configuration: "},importFromFile:"Import from file",paste:"Paste configuration here\u2026",presets:{desc:'Load presets from the repository "plugin-presets"',title:"Presets"},title:"Import settings"},listChangedFiles:{added:"Added",deleted:"Deleted",edited:"Edited",error:"Errors",notDeleted:"Cannot be deleted",title:"List of files edited in the repository",unpublished:"Cannot be published"}},publish:{branch:{alreadyExists:"Branch already exists ({{- branchName}} on {{- repo.owner}}/{{- repo.repo}} - Using it.",error:"Error with {{- repo.owner}}/{{- repo.repo}}: {{- error}}",prMessage:"Pull-Request [{{- branchName}}] from Obsidian",success:"Branch successfully created (status: {{- branchStatus}}) on {{- repo.owner}}/{{- repo.repo}}"},upToDate:"{{- file}} is up-to-date on {{- repo}}"},regex:{entry:"Value to replace",replace:"Replacement"},settings:{conversion:{dataview:{desc:`Convert Dataview queries to markdown.
Only works if Dataview and internal link conversion are enabled.`,title:"Dataview"},desc:"Theses option won't change the content of the file in your Obsidian Vault, but will change the content of the file in GitHub.",hardBreak:{desc:"Add a markdown hard line break (double whitespace) after each line.",title:"Markdown hard line break"},links:{desc:"Put $t(settings.conversion.links.key) in the frontmatter of a note to prevent links to it to be converted and keep the alt text (or filename)",folderNote:{desc:"Rename files to a specified name (default: index.md) if it has the same name as their parent folder/category (also works if the note is outside of the folder).",title:"Folder note"},internals:{dataview:"Mandatory if you want to convert links in dataview blocks!",desc:"Convert internal links to their counterpart in the repository, with relative path.",shareAll:'Includes all links for the "share all" settings, as it impossible without frontmatter to know the sharing state of a file.',title:"Internal links"},key:"<code>links: false</code>",nonShared:{desc:"Same option as internal links, but for notes that are not yet published. Disabled, only the filename will be conserved.",title:"Convert internal links pointing to unpublished notes"},relativePath:{desc:"Create the internals paths as relative path.",title:"Relative path"},slugify:{desc:"Standardize the slug of anchor links (pointing to heading title). Transform the slug into all lower case. Replace space with hyphen. Applicable only for anchor links in markdown link syntax.",disable:"Disable",lower:"Lower",strict:"Convert all to alphanumeric and dashes, including unicode and non latin languages.",title:"Sluglify anchor in markdown links"},textBefore:{desc:"Add a string before the created path. Use {{- slash}} to create absolute path. This text will be happened only if a path should be generated.",title:"Text before path"},title:"Links",unlink:{desc:"E.g. `[[note name|alias]]` \u2192 `alias`",title:"Unlink unshared files"},wikilinks:{desc:"Convert Wikilinks to MDlinks, without changing the contents.",title:"[[Wikilinks]] to [MDlinks](links)"}},sectionTitle:"Main text",tags:{desc:"This will convert any properties or dataview inline field into properties tags. Separate fields with a comma.",exclude:{desc:"This will exclude value from being converted. Separate fields with a comma.",placeholder:"Field value",title:"Exclude value from conversion"},inlineTags:{desc:'Add your inline tags in your properties tags field and converting nested tags with replacing "/" with "_"',title:"Inline tags"},title:"Convert properties/dataview fields into tags"},title:"Content"},embed:{attachment:"Attachments",bake:{text:"Allow you to add text before and after each embed, for example adding HTML or stylize the block with markdown.",textAfter:{title:"Text after the block"},textBefore:{title:"Text before the block"},title:"Include embed settings",variable:{desc:"It is possible to use the following variable:",title:": note embedded title",url:": path to the embedded note"},warning:"If you use HTML, depending of your host settings, the markdown will broke."},char:{desc:"Character(s) to add before the link.",title:"Embed characters"},defaultImageFolder:{desc:"To use a folder different from default",title:"Default attachment folder"},forcePush:{all:": Change the destination of all attachments (and/or force them to be sent).",default:": Use the default destination path.",desc:"Always upload linked notes to the repository, even if they are already present and up-to-date.",info:"By default, attachments are only sent if they have been modified since they were last sent, or if they do not exist in the repository.",title:"Forced updates"},imagePath:{desc:"Use the obsidian folder structure or configure a default folder below",title:"Structure"},links:{desc:"Allow to edit the links of the embeds, removing entirely the citation, or transform to a simple link",dp:{bake:"Include embed contents",keep:"No change",links:"Transform to link",remove:"Remove link completely"},title:"Change embed markup"},notes:"Embed notes",overrides:{desc:"Allow to send an attachment into a specific path and force push attachments.",modal:{dest:"Destination",path:"Path or extension",title:"Override attachments path"}},sendSimpleLinks:{desc:"Apply the following settings on files linked by simples links (including attachment).",title:"Send linked files"},title:"Attachment & embeds ",transferImage:{title:"Transfer attachments"},transferMetaFile:{desc:"Set the names of the metadata field you want to use to send files. Separate fields with a comma. Dataview inline field are supported.",title:"Send files using a metadata field"},transferNotes:{desc:"Send embedded notes in a shared file to GitHub. Only shared files will be send!",title:"Transfer embedded notes"}},embeds:{unHandledObsidianExt:{desc:`Separate extensions with a comma.
Regexes are supported when enclosed by /, such as /regex/.
Don't include the period!`,title:"Allow extensions not natively supported by Obsidian"}},github:{apiType:{desc:"Choose between the GitHub API or the GitHub Enterprise API (only GitHub Enterprise users \u2014 Advanced user!).",dropdown:{enterprise:"Enterprise",free:"Free/Pro/Team (default)"},hostname:{desc:"The hostname of your GitHub Enterprise instance.",title:"GitHub Enterprise Hostname"},title:"API Type"},automaticallyMergePR:"Automatically merge pull requests",branch:{desc:'If you use a different branch than "main"',title:"Main branch"},dryRun:{enable:{desc:"Disable GitHub push and all other action and only perform a dry-run to see what would be pushed or deleted in the repository.",title:"Test mode"},folder:{desc:"Use {{owner}}, {{repo}} and {{branch}} to dynamically name the folder.",error:"The folder name can't be empty!",title:"Folder where the repository will be simulated (test mode only)"}},ghToken:{button:{configDir:": The configuration folder of Obsidian",default:"By default, it will be in:",description:"You can edit the file path where the token will be stored.",pluginID:": The plugin ID",tooltip:"Modify the path of the file containing the token",variables:"You can use the following variables:"},desc:"A GitHub token with repository permission. You can generate it ",error:"The token mustn't be empty!"},repoName:{desc:"The name of the repository where you store your blog.",placeholder:"mkdocs-template",title:"Repository name"},smartRepo:{button:"Manage more repository",modals:{default:'The name "default" is reserved for your primary configuration.',desc:'These "other repositories" allow you to use all the commands on the repositories added below.',duplicate:"Smartkey must be unique!",empty:"Smartkeys cannot be empty",frontmatterInfo:'Using the "shortRepo" properties key with the "smartKey" also allows you to use this repository in a file without having to write its path.',newRepo:"a new repository",otherConfig:"Other settings",shortcuts:{desc:"Add all commands for this repository in the command palette",title:"Shortcuts"},title:"Manage others repositories"}},testConnection:"Test connection",title:"GitHub config",username:{desc:"The username or organization hosting the repo in GitHub",title:"GitHub username"}},githubWorkflow:{autoCleanUp:{desc:"Remove depublished files (stopped sharing or deleted) from GitHub",popup:{desc:"Enabling the auto-clean when the name of the {{- what}} is empty can delete all files within your repository, including template, workflows, icons or README.",exclude:`Don't forget to exclude the files and folders you need for your repository.
Additionally, you can always revert files deleted by GitHub's pull-request system.`,sure:"Are you sure you want to enable this feature?",title:"Enable autoclean"},title:"Auto clean up"},excludedFiles:{desc:'If you want to exclude some folder or file from the autoclean, add them here. You can use regex by surrounding the string with "/". Separate files with a comma.',title:"Excluded files and folder"},githubAction:{desc:'If you want to activate a GitHub action when the plugin push the file, set the name of the file (in your .github/worfklows folder). Only workflow with the "workflow_dispatch" event will be triggered.',title:"GitHub action name"},includeAttachments:{desc:"Attachments will also be auto-cleaned among other notes.",title:"Self-cleaning of attachments"},prRequest:{desc:"The message send when the pull-request is merged. Will always followed by the pull-request number.",error:"You can't use an empty string here!",title:"Commit message"},useMetadataExtractor:{desc:"Send the files generated by the metadata-extractor plugin in this folder.",title:"Metadata-extractor files"}},help:{frontmatter:{attachment:{folder:"Change the default folder for the attachments",send:"Send all attachments to GitHub"},autoclean:"Disable or enable autocleaning",baselink:{desc:"Change the base link for the copy link command. Also disable the link replacer part. Can be used as an properties object with the name ",remove:"Remove part of the link. It must be a list!"},convert:{enableOrDisable:"Enable or disable the conversion of links. Disabling this will remove the",syntax:"syntax, while keeping the file name or the alternative text."},dataview:"Convert dataview queries to markdown.",desc:"Moreover, there are some properties keys that can be useful for your workflow. The code below show the default settings, but feel free to change it to your needs in each notes!",embed:{char:'Add a character(s) before the embedded links. Used only if you set "remove" to "links".',remove:{bake:"Include the content of the embed (support blocks, heading and entire file)",desc:"Modify the aspect of the embedded files link. Can take the followed value:",keep:"Leave as in Obsidian",links:'Convert to links (delete or edit the "!")',remove:"Delete the citation completely and leave an empty line"},send:"Send embedded note to GitHub"},hardBreak:"Convert all linebreaks to markdown \xABhard break\xBB.",includeLinks:"Allows sending files linked by a simple link, such as",internals:"Convert internals links to their counterpart in the website, with relative path. Disabled, the plugin will keep the internal link as is.",mdlinks:"Convert all ",nestedKey:`It's also possible to use "dot" syntax, i.e. to denote nested keys with dots. For example, using `,nonShared:"Convert internal links pointing to a unshared file to their counterpart in the website, with relative path. Disabled, the plugin will keep the filename.",path:"You can override all path settings using this key. The path will be relative to the root of your repository.",repo:{branch:"Branch of the repo",desc:"Change the default repo for the note.",owner:"Owner of the repo"},share:{other:"You could also use another shareKey based on the key set in \xAB Manage other repo \xBB. It allows you to separate your different repository. If the main and secondaries key are used, the main repo will be used.",title:"This key is used to share a note with the plugin."},shortRepo:"Allow to use one of the repo set in other repo settings.",title:"Property key cheatsheet",titleKey:"Change the title of the note.",unlink:"Deletes link syntax (retains only name or alias) for unshared files only."},multiRepoHelp:{desc:"If you want to send your notes to multiple repository, you can use the ",desc2:"key in your properties. The value of this key must be a list of repository. Each repository must have the following keys ",exampleDesc:"The code below show an example based on your settings.",title:"Send to multiple repository"},title:"Help",usefulLinks:{discussion:"Discussion",documentation:"Documentation",issue:"Report a problem",title:"Useful links",translation:"Help with translation"}},plugin:{copyLink:{applyRegex:{desc:'Encapsulate between "/" to use regexes (ie: /regex/).',title:"Add a text transformation to the URL"},baselink:{desc:"The base link of your website. By default : https://username.github.io/repo/",title:"Base link"},command:{desc:"Add a command to copy the link of the note (need reloading the plugin to take effect)"},desc:"Send a link to your note in your clipboard",linkPathRemover:{desc:"Delete this part of the links created. Separate with a comma if several values are to be deleted.",title:"Deleting part of the link"},slugify:{disable:"Disable",lower:"Lowercase",strict:"Strict: Text without capital letters or special characters.",title:"Link slugify"},title:"Copy link",toUri:{desc:"Convert the link to a URI (substitute into percent-encoding)",title:"Encode to URI"}},dev:{desc:"Advanced user only. Will display Line truncated
Toimii vain, jos Dataview ja sis\xE4isen linkin muuntaminen ovat k\xE4yt\xF6ss\xE4.`,title:""},desc:"N\xE4m\xE4 vaihtoehdot eiv\xE4t muuta tiedoston sis\xE4lt\xF6\xE4 Obsidian Vaultissa, mutta ne muuttavat tiedoston sis\xE4lt\xF6\xE4 GitHubissa.",hardBreak:{desc:"Lis\xE4\xE4 jokaisen rivin j\xE4lkeen kova rivinvaihto -merkint\xE4 (kaksoisv\xE4lily\xF6nti).",title:"Kova rivinvaihto -merkint\xE4"},links:{desc:"",folderNote:{desc:"Nime\xE4 tiedostot uudelleen m\xE4\xE4ritetyll\xE4 nimell\xE4 (oletus: index.md), jos sill\xE4 on sama nimi kuin niiden yl\xE4kansion/luokan (toimii my\xF6s, jos muistiinpano on kansion ulkopuolella).",title:"Kansion muistiinpano"},internals:{dataview:"Pakollinen, jos haluat muuntaa linkit datan\xE4kym\xE4lohkoiksi!",desc:"Muunna sis\xE4iset linkit tietovaraston vastaaviksi suhteellisella polulla.",shareAll:"",title:"Sis\xE4iset linkit"},key:"<code>links: false</code>",nonShared:{desc:"Sama vaihtoehto kuin sis\xE4iset, mutta muistiinpanoille, joita ei ole viel\xE4 julkaistu. Kun se on poistettu k\xE4yt\xF6st\xE4, vain tiedostonimi s\xE4ilytet\xE4\xE4n.",title:"Muunna julkaisemattomiin muistiinpanoihin osoittavat sis\xE4iset linkit"},relativePath:{desc:"",title:""},slugify:{desc:"",disable:"Poista k\xE4yt\xF6st\xE4",lower:"Alempi",strict:"Muunna kaikki aakkosnumeerisiksi ja yhdysviivoiksi, mukaan lukien unicode-kieli ja muut kuin latinalaiset kielet.",title:""},textBefore:{desc:"",title:""},title:"Linkit",unlink:{desc:"Poistaa linkkien syntaksin (s\xE4ilytt\xE4\xE4 vain nimen tai aliaksen) vain jakamattomille tiedostoille.",title:"Pura linkitys"},wikilinks:{desc:"Muunna Wikilinkit MD-linkeiksi sis\xE4lt\xF6\xE4 muuttamatta.",title:"[[Wikilinkit]] [MDlinkit](links):hin"}},sectionTitle:"P\xE4\xE4teksti",tags:{desc:"",exclude:{desc:"T\xE4m\xE4 sulkee pois arvon muuntamisen. Erottele kent\xE4t pilkulla.",placeholder:"Kent\xE4n arvo",title:"Sulje arvo pois muunnoksesta"},inlineTags:{desc:"",title:""},title:"Muunna ominaisuudet/tieton\xE4kym\xE4kent\xE4t tunnisteiksi"},title:"Sis\xE4lt\xF6"},embed:{attachment:"Liitteet",bake:{text:"",textAfter:{title:"Teksti lohkon j\xE4lkeen"},textBefore:{title:"Teksti ennen lohkoa"},title:"Sis\xE4llyt\xE4 upotusasetukset",variable:{desc:"On mahdollista k\xE4ytt\xE4\xE4 seuraavaa muuttujaa:",title:"",url:": polku upotettuun muistiinpanoon"},warning:"Jos k\xE4yt\xE4t HTML:ta, is\xE4nt\xE4asetuksistasi riippuen, merkint\xE4 katkeaa."},char:{desc:"Ennen linkki\xE4 lis\xE4tt\xE4v\xE4t merkit.",title:"Upota merkkej\xE4"},defaultImageFolder:{desc:"Oletuksesta poikkeavan kansion kytt\xE4\xE4miseksi",title:"Oletusliitekansio"},forcePush:{all:": Muuta kaikkien liitteiden kohdetta (ja/tai pakota ne l\xE4hetett\xE4v\xE4ksi).",default:": K\xE4yt\xE4 oletuskohdepolkua.",desc:"Uloslataa aina linkitetyt muistiinpanot tietovarastoon, vaikka ne olisivat jo olemassa ja ajan tasalla.",info:"Oletuksena liitteet l\xE4hetet\xE4\xE4n vain, jos niit\xE4 on muokattu viimeisimm\xE4n l\xE4hetyksen j\xE4lkeen tai jos niit\xE4 ei ole tietovarastossa.",title:"Pakotetut p\xE4ivitykset"},imagePath:{desc:"",title:"Rakenne"},links:{desc:"Salli upotteiden linkkien muokkaaminen poistamalla lainaus kokonaan tai muuntamalla yksinkertaiseksi linkiksi",dp:{bake:"Sis\xE4llyt\xE4 upotussis\xE4lt\xF6",keep:"Ei muutosta",links:"Muunna linkiksi",remove:"Poista linkki kokonaan"},title:""},notes:"Upota muistiinpanoja",overrides:{desc:"Salli liitteen l\xE4hett\xE4minen tietylle polulle ja pakota liitteiden ty\xF6nt\xE4minen.",modal:{dest:"Kohde",path:"Polku tai laajennus",title:"Ohita liitteiden polku"}},sendSimpleLinks:{desc:"Sovella seuraavia asetuksia tiedostoille, jotka on linkitetty yksinkertaisilla linkeill\xE4 (mukaan lukien liite).",title:"L\xE4het\xE4 linkitetyt tiedostot"},title:"",transferImage:{title:""},transferMetaFile:{desc:"",title:""},transferNotes:{desc:"",title:""}},embeds:{unHandledObsidianExt:{desc:"",title:""}},github:{apiType:{desc:"",dropdown:{enterprise:"",free:""},hostname:{desc:"",title:""},title:""},automaticallyMergePR:"",branch:{desc:"",title:""},dryRun:{enable:{desc:"",title:""},folder:{desc:"",error:"",title:""}},ghToken:{button:{configDir:"",default:"",description:"",pluginID:"",tooltip:"",variables:""},desc:"",error:""},repoName:{desc:"",placeholder:"",title:""},smartRepo:{button:"",modals:{default:"",desc:"",duplicate:"",empty:"",frontmatterInfo:"",newRepo:"",otherConfig:"",shortcuts:{desc:"",title:""},title:""}},testConnection:"",title:"",username:{desc:"",title:""}},githubWorkflow:{autoCleanUp:{desc:"",popup:{desc:"",exclude:"",sure:"",title:""},title:""},excludedFiles:{desc:"",title:""},githubAction:{desc:"",title:""},includeAttachments:{desc:"",title:""},prRequest:{desc:"",error:"",title:""},useMetadataExtractor:{desc:"",title:""}},help:{frontmatter:{attachment:{folder:"",send:""},autoclean:"",baselink:{desc:"",remove:""},convert:{enableOrDisable:"",syntax:""},dataview:"",desc:"",embed:{char:"",remove:{bake:"",desc:"",keep:"",links:"",remove:""},send:""},hardBreak Line truncated
Dataview ou un autre plugin doit interf\xE9rer avec.
\xC9tape saut\xE9e.`,"reading-token-file":"Erreur : Le chemin est incorrect.",unablePublishMultiNotes:"Impossible de transf\xE9rer plusieurs notes, quelque chose s'est mal pass\xE9.",unablePublishNote:"Impossible de transf\xE9rer {{- file}}, le fichier a \xE9t\xE9 ignor\xE9",whatEmpty:{branch:"Branche",owner:"Propri\xE9taire"}},informations:{foundNoteToSend:"Trouv\xE9 {{- nbNotes}} nouvelles notes \xE0 transf\xE9rer",migrating:{fileReplace:"Migration du remplacement du nom du fichier au nouveau format\u2026",normalFormat:"Migration des param\xE8tres\u2026",oldSettings:"Migration des anciens param\xE8tres au nouveau format\u2026",subFolder:"Ajout du remplacement du sous-dossier au remplacement de chemin de fichier\u2026"},noNewNote:"Aucune note \xE0 transf\xE9rer.",scanningRepo:"Scan du d\xE9p\xF4t, veuillez patienter\u2026",sendMessage:"Transfert de <i>{{- nbNotes}}</i> notes vers <u>{{- repo.owner}}/{{- repo.repo}}</u>",startingClean:"D\xE9but du nettoyage de <u>{{- repo.owner}}/{{- repo.repo}}</u>",successPublishOneNote:"Transfert r\xE9ussi de <i><u>{{- file}}</u></i> vers <u>{{- repo.owner}}/{{- repo.repo}}</u>",successfulPublish:"Transfert r\xE9ussi de <i>{{- nbNotes}}</i> notes vers <u>{{- repo.owner}}/{{- repo.repo}}</u>",wait:"Scan du fichier {{- file}}... Veuillez attendre...",wait_plural:"Scan des fichiers... Merci d'attendre...",waitingWorkflow:"Maintenant, attente de la fin du workflow\u2026"},modals:{export:{copy:"Copier vers le presse-papier",desc:"Exporter les param\xE8tres vers un fichier ou dans le presse-papier.",download:"T\xE9l\xE9charger",title:"Exporter les param\xE8tres"},import:{desc:"Importer des param\xE8tres depuis un fichier ou un texte. Cela \xE9crasera vos param\xE8tres actuels (sauf le nom du d\xE9p\xF4t, le nom d'utilisateur et votre token).",error:{isEmpty:"la configuration est vide.",span:"Erreur lors de l'importation de la configuration\u202F: "},importFromFile:"Import depuis le fichier",paste:"Coller la configuration ici\u2026",presets:{desc:'Charger des pr\xE9-r\xE9glages du d\xE9p\xF4t "plugin-presets"',title:"Pr\xE9-r\xE9glages"},title:"Importer des param\xE8tres"},listChangedFiles:{added:"Ajout\xE9",deleted:"Supprim\xE9",edited:"Modifi\xE9",error:"Erreurs",notDeleted:"Impossible \xE0 supprimer",title:"Liste des fichiers \xE9dit\xE9s sur le d\xE9p\xF4t",unpublished:"Impossible \xE0 publier"}},publish:{branch:{alreadyExists:"La branche {{- branchName}} sur {{- repo.owner}}/{{- repo.repo}} existe d\xE9j\xE0 - Utilisation de celle-ci.",error:"Erreur avec {{- repo.owner}}/{{- repo.repo}} : {{- error}}",prMessage:"Pull-Request [{{- branchName}}] depuis Obsidian",success:"La branche a \xE9t\xE9 cr\xE9e avec succ\xE8s (statut\u202F: {{- branchStatus}} sur {{- repo.owner}}/{{- repo.repo}})"},upToDate:"{{- file}} est d\xE9j\xE0 \xE0 jour dans {{- repo}}."},regex:{entry:"Valeur \xE0 remplacer",replace:"Remplacement"},settings:{conversion:{dataview:{desc:`Convertir les requ\xEAtes Dataview en markdown.
Ne fonctionne que si Dataview et la conversion des liens internes sont activ\xE9s.`,title:"Dataview"},desc:"Ces options ne changent pas le contenu du fichier dans votre coffre Obsidian, mais changeront le contenu du fichier publi\xE9 sur GitHub.",hardBreak:{desc:"Ajoutez un retour \xE0 la ligne Markdown (double espace) apr\xE8s chaque ligne.",title:"Saut de ligne strict"},links:{desc:"Mettre $t(settings.conversion.links.key) dans les propri\xE9t\xE9s d'une note pour emp\xEAcher la conversion des liens vers cette note et conserver l'alias (ou le nom du fichier)",folderNote:{desc:`Renommer les fichiers en un nom sp\xE9cifique (d\xE9faut : "index.md") s'il porte le m\xEAme nom que leur dossier/cat\xE9gorie parent (fonctionne aussi si la note est \xE0 l'ext\xE9rieur du dossier).`,title:"Folder Note"},internals:{dataview:"Obligatoire si vous voulez convertir les liens dans les blocs dataview !",desc:"Convertir les liens internes pointant vers les notes publi\xE9es vers leur homologue dans le d\xE9p\xF4t, sous forme de chemin relatif.",shareAll:`Inclut tous les liens pour les param\xE8tres "partager tout", car il est impossible sans frontmatter de conna\xEEtre l'\xE9tat de partage d'un fichier.`,title:"Liens internes"},key:"<code>links: false</code>",nonShared:{desc:"L'option pr\xE9c\xE9dente, mais appliqu\xE9es aux liens internes pointant vers des notes non-publi\xE9es. D\xE9sactiv\xE9, seul le nom du fichier sera conserv\xE9.",title:"Conversion des liens internes pointant vers des notes non-publi\xE9es"},relativePath:{desc:"Cr\xE9er les chemins internes en tant que chemin relatif.",title:"Chemin relatif"},slugify:{desc:"Normaliser le lien (slug) des liens d'ancrage (pointant vers le titre de la rubrique). Transforme le texte en minuscules. Remplace l'espace par un tiret. Applicable uniquement aux liens d'ancrage dans la syntaxe de lien markdown.",disable:"D\xE9sactiver",lower:"Lower",strict:"Convertit tout en alphanum\xE9rique et tirets, y compris l'unicode et les langues non latine.",title:"Slugifier l'ancre des liens markdown"},textBefore:{desc:"Ajouter un texte avant le chemin cr\xE9\xE9. Utiliser {{- slash}} pour cr\xE9er un chemin absolu. Ce texte ne sera ajout\xE9 que si un chemin doit \xEAtre g\xE9n\xE9r\xE9.",title:"Texte avant le chemin"},title:"Liens",unlink:{desc:"Permet de supprimer la syntaxe de lien (conserve uniquement le nom ou l'alias) uniquement pour les fichiers non-partag\xE9s.",title:"Retirer les liens"},wikilinks:{desc:"Conversion des liens wikilinks en liens Markdown, sans en modifier le contenu.",title:"Convertir [[WikiLinks]] en [liens](Markdown)"}},sectionTitle:"Texte principal",tags:{desc:"Ceci convertira tous les champs des propri\xE9t\xE9s/dataview en tags. S\xE9parez les champs par une virgule.",exclude:{desc:"Exclusion de champs de la conversion. S\xE9parer les valeurs par une virgule.",placeholder:"Valeur du chemin",title:"Exclusion de tags"},inlineTags:{desc:'Ajoute vos inlines tags dans votre bloc propri\xE9t\xE9s et converti les tags imbriqu\xE9s en rempla\xE7ant "/" par "_"',title:"Inlines tags"},title:"Convertir des champs dataview ou propri\xE9t\xE9s en tags"},title:"Contenu"},embed:{attachment:"Pi\xE8ces-jointes",bake:{text:"Permet d'ajouter du texte avant et apr\xE8s chaque int\xE9gration, par exemple en ajoutant du HTML ou en stylisant le bloc avec du markdown.",textAfter:{title:"Texte apr\xE8s le block"},textBefore:{title:"Texte \xE0 ajouter avant le block"},title:"Param\xE8tres pour l'inclusion des embeds",variable:{desc:"Il est possible d'utiliser les variables suivantes :",title:": Titre de la note inclue",url:": Chemin vers la note inclue"},warning:"Si vous utilisez du HTML, selon les param\xE8tres de votre h\xE9bergeur, le Markdown sera cass\xE9."},char:{desc:"Caract\xE8re(s) \xE0 ajouter devant le lien.",title:"Caract\xE8re d'embed"},defaultImageFolder:{desc:"Pour utiliser un dossier diff\xE9rent de celui par d\xE9faut pour les pi\xE8ces-jointes",title:"Dossier de pi\xE8ces-jointes par d\xE9faut"},forcePush:{all:" : Modifie la destination de toutes les pi\xE8ces jointes (et/ou forcer leur envoie).",default:" : Utiliser le chemin de destination par d\xE9faut.",desc:"Transf\xE9rer toujours les notes li\xE9es dans le d\xE9p\xF4t, m\xEAme si elles sont d\xE9j\xE0 pr\xE9sentes et \xE0 jour.",info:"Par d\xE9faut, les pi\xE8ces-jointes ne sont envoy\xE9s que si elles ont \xE9t\xE9 modifi\xE9es depuis leur dernier envoi, ou si elles n'existent pas dans le d\xE9p\xF4t.",title:"Mises \xE0 jour forc\xE9es"},imagePath:{desc:"Utilisez la structure de dossier Obsidian ou configurer un dossier par d\xE9faut ci-dessous",title:"Structure"},links:{desc:"Permet d'\xE9diter les liens des embeds, en supprimant enti\xE8rement la citation, ou en la transformant en un simple lien",dp:{bake:"Inclure le contenu des embeds",keep:"Pas de changement",links:"Transformer en lien simple",remove:"Supprimer le lien compl\xE8tement"},title:"Changer les balises d'embed"},notes:"Note (Markdown)",ove Line truncated
Les regex sont support\xE9es quand encadr\xE9s par /, tel que /regex/.
N'incluez pas le point\u202F!`,title:"Autoriser des extensions non-support\xE9s nativement par Obsidian"}},github:{apiType:{desc:"Choisir entre l'API GitHub ou l'API pour GitHub Entreprise (uniquement pour les utilisateurs de GitHub Enterprise \u2014 Utilisateur avanc\xE9 !).",dropdown:{enterprise:"Entreprise",free:"Free/Pro/Team (d\xE9faut)"},hostname:{desc:"Le nom de l'instance Github de votre entreprise.",title:"Instance Github Entreprise"},title:"Type d'API"},automaticallyMergePR:"Fusionner automatiquement les pull-request",branch:{desc:'Dans le cas o\xF9 vous souhaitez utiliser une branche diff\xE9rente de "main"',title:"Branche principale"},dryRun:{enable:{desc:"D\xE9sactiver le push GitHub et toutes les autres actions et effectuer seulement une simulation pour voir ce qui serait transf\xE9r\xE9 ou supprim\xE9 dans le d\xE9p\xF4t.",title:"Mode de test"},folder:{desc:"Utilisez {{owner}}, {{repo}} et {{branch}} pour nommer dynamiquement le dossier.",error:"Le nom du dossier ne peut \xEAtre vide.",title:"Dossier o\xF9 le d\xE9p\xF4t sera simul\xE9 (test mode uniquement)"}},ghToken:{button:{configDir:": Le dossier de configuration d'Obsidian",default:"Par d\xE9faut, il sera dans :",description:"Vous pouvez \xE9diter le chemin du fichier dans lequel sera stock\xE9 le token.",pluginID:": L'ID du plugin",tooltip:"Modifier le chemin du fichier contenant le token",variables:"Vous pouvez utiliser les variables suivantes :"},desc:"Un token GitHub avec autorisation de d\xE9p\xF4t. Vous pouvez le g\xE9n\xE9rer ",error:"Le token ne doit pas \xEAtre vide !"},repoName:{desc:"Le nom du d\xE9p\xF4t dans lequel vos fichiers seront transf\xE9r\xE9s.",placeholder:"mkdocs-template",title:"Nom du d\xE9p\xF4t"},smartRepo:{button:"G\xE9rer plus de d\xE9p\xF4t",modals:{default:'Le nom "default" est r\xE9serv\xE9 pour votre configuration principale.',desc:`Ces "autres d\xE9p\xF4ts" vous permettent d'utiliser toutes les commandes sur les d\xE9p\xF4ts ajout\xE9s ci-dessous.`,duplicate:"Les smartKey doivent \xEAtre uniques !",empty:"Les smartkeys ne peuvent pas \xEAtre vide",frontmatterInfo:`L'utilisation de la cl\xE9 propri\xE9t\xE9 "shortRepo" avec la "smartKey" permet \xE9galement d'utiliser ce d\xE9p\xF4t dans un fichier sans avoir \xE0 \xE9crire son chemin.`,newRepo:"un nouveau d\xE9p\xF4t",otherConfig:"Autres param\xE8tres",shortcuts:{desc:"Ajoute toutes les commandes de ce d\xE9p\xF4t dans la palette de commandes",title:"Raccourci"},title:"G\xE9rer d'autres d\xE9p\xF4ts"}},testConnection:"Tester la connexion",title:"Configuration GitHub",username:{desc:"Votre username sur GitHub",title:"Nom d'utilisateur GitHub"}},githubWorkflow:{autoCleanUp:{desc:"Si le plugin doit supprimer de votre d\xE9p\xF4t les fichiers d\xE9publi\xE9s (arr\xEAt du partage ou suppression)",popup:{desc:"L'activation du nettoyage automatique lorsque le nom du {{- what}} est vide peut supprimer tous les fichiers de votre d\xE9p\xF4t, y compris les fichiers de votre template, les workflows, les ic\xF4nes ou le README.",exclude:`N'oubliez pas d'exclure les fichiers et dossiers dont vous avez besoin pour votre d\xE9p\xF4t.
De plus, vous pouvez toujours r\xE9tablir les fichiers supprim\xE9s par le syst\xE8me de pull-request de GitHub.`,sure:"\xCAtes-vous certain de vouloir activer cette fonctionnalit\xE9 ?",title:"Activation de l'auto-nettoyage"},title:"Auto-nettoyage"},excludedFiles:{desc:"Si vous voulez exclure certains dossier ou fichier du nettoyage automatique, d\xE9finissez leur chemin. Les regex sont accept\xE9es en les encadrant par des slashs. S\xE9parer les valeurs par une virgule.",title:"fichiers et dossier exclus"},githubAction:{desc:"Si vous souhaitez activer une action GitHub lorsque le plugin push les fichiers dans le d\xE9p\xF4t, il vous faut indiquer le nom du fichier issus du dossier .github/workflows/. Seules les actions activ\xE9es par un workflow_dispatch sont activ\xE9es.",title:"Nom de l'action GitHub"},includeAttachments:{desc:"Les pi\xE8ces-jointes seront aussi auto-nettoy\xE9es avec les autres notes.",title:"Auto-nettoyage des pi\xE8ces-jointes"},prRequest:{desc:"Le message envoy\xE9 lorsque la pull-request est fusionn\xE9e. Sera toujours suivi par le num\xE9ro de la pull-request.",error:"Vous ne pouvez pas utiliser une valeur vide pour le message de commit\u202F!",title:"Message de commit"},useMetadataExtractor:{desc:"Envoyer les fichiers g\xE9n\xE9r\xE9s par metadata-extractor dans ce dossier.",title:"Fichier de metadata-extractor"}},help:{frontmatter:{attachment:{folder:"Change le dossier par d\xE9faut pour les pi\xE8ces-jointes",send:"Envoie toutes les pi\xE8ces-jointes dans le d\xE9p\xF4t GitHub"},autoclean:"D\xE9sactive ou active le nettoyage automatique du d\xE9p\xF4t GitHub",baselink:{desc:"Change le lien de base pour la commande de copie de lien. D\xE9sactive aussi la suppression de partie de lien. Peut \xEAtre utilis\xE9e en tant qu'objet sous le nom de ",remove:"Supprime les parties de lien. \xC0 mettre sous forme de liste !"},convert:{enableOrDisable:"Active ou d\xE9sactive la conversion des liens. En d\xE9sactivant cette option, vous supprimez les",syntax:"syntaxes, tout en gardant le nom du fichier ou son texte alternatif."},dataview:"Convertit les requ\xEAtes dataview en markdown.",desc:"Il existe quelques cl\xE9s de propri\xE9t\xE9s qui peuvent vous \xEAtes utile. Le code ci-dessous montre les param\xE8tres par d\xE9faut, mais n'h\xE9sitez pas \xE0 le modifier selon vos besoins pour chaque note !",embed:{char:'Ajoutez un ou plusieurs caract\xE8res avant les liens. Utiliser uniquement si vous avez fix\xE9 "remove" \xE0 "links".',remove:{bake:"Inclure le contenu des embeds (blocs de support, titre et fichier entier)",desc:"Modifie l'aspect des liens des notes incorpor\xE9es. Peut prendre les valeurs suivantes :",keep:"Laisse comme dans Obsidian",links:"Convertit le lien vers la note incorpor\xE9e en lien simple",remove:"Supprime le lien compl\xE8tement et laisse une ligne vide"},send:"Envoie les notes int\xE9gr\xE9es de la note publi\xE9es dans le d\xE9p\xF4t"},hardBreak:'Convertit tous les sauts de lignes en "hard break" markdown.',includeLinks:"Autorise l'envoie des fichiers li\xE9s par un lien simple, comme",internals:"Convertit les liens internes vers leur homologue du d\xE9p\xF4t, sous forme de liens relatifs. D\xE9sactiv\xE9s, les liens seront conserv\xE9s tels quels.",mdlinks:"Convertir tous les liens ",nestedKey:`Il est aussi possible d'utiliser les syntaxes "par point", c'est-\xE0-dire en notant les cl\xE9s imbriqu\xE9es par des points. Par exemple en utilisant `,nonShared:"Convertit les liens internes pointant vers une notes non publi\xE9es vers son futur homologue. D\xE9sactiv\xE9, le plugin conservera le nom du fichier ou son texte alternatif.",path:"Vous pouvez \xE9craser tous les param\xE8tres de chemins en utilisant cette cl\xE9. Le chemin sera cr\xE9\xE9e \xE0 partir de la racine du d\xE9p\xF4t.",repo:{branch:"Nom de la branche",desc:"Changer le d\xE9p\xF4t GitHub pour cette note.",owner:"Pseudo GitHub du propri\xE9taire du d\xE9p\xF4t"},share:{other:"Vous pouvez \xE9galement utiliser une autre shareKey bas\xE9e sur la cl\xE9 d\xE9finie dans \xAB G\xE9rer plus de d\xE9p\xF4t \xBB. Cela vous permet de s\xE9parer vos diff\xE9rents d\xE9p\xF4ts. Si vous utilisez les cl\xE9s principales et secondaires, le d\xE9p\xF4t principal sera utilis\xE9.",title:"La cl\xE9 utilis\xE9e pour partager une note."},shortRepo:"Autorise l'utilisation de l'un des d\xE9p\xF4ts d\xE9finis dans les param\xE8tres.",title:"Aide-m\xE9moire des propri\xE9t\xE9s",titleKey:"Change le titre de la note.",unlink:"Permet de supprimer la syntaxe de lien (conserve uniquement le nom ou l'alias) uniquement pour les fichiers non-partag\xE9s."},multiRepoHelp:{desc:"Si vous souhaitez envoyer vos notes dans plusieurs d\xE9p\xF4t en m\xEAme temps, vous pouvez utiliser la cl\xE9 ",desc2:"dans vos propri\xE9t\xE9s. La valeur de cette cl\xE9 doit \xEAtre une liste. Chaque d\xE9p\xF4t doit avoir les cl\xE9s suivantes ",exampleDesc:"Le code ci-dessous montre un exemple bas\xE9 sur vos param\xE8tres.",title:"Envoie dans Line truncated
Dataview\uB098 \uB2E4\uB978 \uD50C\uB7EC\uADF8\uC778\uC774 \uC774\uB97C \uBC29\uD574\uD558\uACE0 \uC788\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC774 \uB2E8\uACC4\uB294 \uAC74\uB108\uB701\uB2C8\uB2E4.`,"reading-token-file":"\uC624\uB958: \uACBD\uB85C\uAC00 \uC798\uBABB\uB41C \uAC83 \uAC19\uC2B5\uB2C8\uB2E4.",unablePublishMultiNotes:"\uC5EC\uB7EC \uB178\uD2B8\uB97C \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",unablePublishNote:"\uB178\uD2B8 {{- file}}\uC744 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC5C6\uC5B4 \uAC74\uB108\uB701\uB2C8\uB2E4",whatEmpty:{branch:"\uBE0C\uB79C\uCE58",owner:"\uC18C\uC720\uC790"}},informations:{foundNoteToSend:"{{- nbNotes}}\uAC1C\uC758 \uC0C8\uB85C\uC6B4 \uB178\uD2B8\uB97C \uC804\uC1A1\uD560 \uC608\uC815\uC785\uB2C8\uB2E4",migrating:{fileReplace:"\uD30C\uC77C \uC774\uB984\uC744 \uC0C8\uB85C\uC6B4 \uD615\uC2DD\uC73C\uB85C \uBCC0\uACBD\uD558\uB294 \uB9C8\uC774\uADF8\uB808\uC774\uC158\u2026",normalFormat:"\uC124\uC815\uC744 \uB9C8\uC774\uADF8\uB808\uC774\uC158\uD558\uB294 \uC911\u2026",oldSettings:"\uC774\uC804 \uC124\uC815\uC744 \uC0C8 \uC124\uC815\uC73C\uB85C \uB9C8\uC774\uADF8\uB808\uC774\uC158\u2026",subFolder:"\uBCC0\uACBD\uB41C \uD3F4\uB354 \uACBD\uB85C\uC5D0 \uC0C8\uB85C\uC6B4 \uC11C\uBE0C \uD3F4\uB354 \uCD94\uAC00\u2026"},noNewNote:"\uC5C5\uB85C\uB4DC\uD560 \uC0C8\uB85C\uC6B4 \uB178\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",scanningRepo:"\uC800\uC7A5\uC18C\uB97C \uC2A4\uCE94\uD558\uB294 \uC911\uC785\uB2C8\uB2E4. \uC2DC\uAC04\uC774 \uC870\uAE08 \uAC78\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4\u2026",sendMessage:"<u>{{- repo.owner}}/{{- repo.repo}}</u>\uC5D0 <i>{{- nbNotes}}</i>\uAC1C\uC758 \uB178\uD2B8\uB97C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4",startingClean:"<u>{{- repo.owner}}/{{- repo.repo}}</u> \uC815\uB9AC \uC791\uC5C5 \uC2DC\uC791",successPublishOneNote:"<u>{{- repo.owner}}/{{- repo.repo}}</u>\uC5D0 <i><u>{{- file}}</u></i>\uB97C \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB85C\uB4DC\uD588\uC2B5\uB2C8\uB2E4",successfulPublish:"<u>{{- repo.owner}}/{{- repo.repo}}</u>\uC5D0 <i>{{- nbNotes}}</i>\uAC1C\uB97C \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB85C\uB4DC\uD588\uC2B5\uB2C8\uB2E4",wait:"",wait_plural:"",waitingWorkflow:"\uC9C0\uAE08, \uC6CC\uD06C\uD50C\uB85C\uC6B0\uAC00 \uC644\uB8CC\uB420 \uB54C\uAE4C\uC9C0 \uAE30\uB2E4\uB9AC\uB294 \uC911\uC785\uB2C8\uB2E4\u2026"},modals:{export:{copy:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",desc:"\uC124\uC815\uC744 \uD074\uB9BD\uBCF4\uB4DC \uB610\uB294 \uD30C\uC77C\uB85C \uB0B4\uBCF4\uB0B4\uAE30.",download:"\uB2E4\uC6B4\uB85C\uB4DC",title:"\uC124\uC815 \uB0B4\uBCF4\uB0B4\uAE30"},import:{desc:"\uD14D\uC2A4\uD2B8\uB098 \uD30C\uC77C\uC5D0\uC11C \uC124\uC815 \uAC00\uC838\uC624\uAE30. \uCC38\uACE0: \uD604\uC7AC \uC124\uC815\uC744 \uB36E\uC5B4\uC4F8 \uAC83\uC785\uB2C8\uB2E4 (\uC0AC\uC6A9\uC790 \uC774\uB984, \uC800\uC7A5\uC18C \uC774\uB984, \uD1A0\uD070\uC740 \uC81C\uC678).",error:{isEmpty:"\uC124\uC815\uC774 \uBE44\uC5B4\uC788\uC2B5\uB2C8\uB2E4.",span:"\uC124\uC815 \uAC00\uC838\uC624\uAE30 \uC624\uB958: "},importFromFile:"\uD30C\uC77C\uC5D0\uC11C \uAC00\uC838\uC624\uAE30",paste:"\uC5EC\uAE30\uC5D0 \uC124\uC815 \uBCF5\uC0AC\uD558\uAE30\u2026",presets:{desc:'"plugin-presets" \uC800\uC7A5\uC18C\uC5D0\uC11C \uD504\uB9AC\uC14B\uC744 \uBD88\uB7EC\uC624\uAE30',title:"\uD504\uB9AC\uC14B"},title:"\uC124\uC815 \uAC00\uC838\uC624\uAE30"},listChangedFiles:{added:"\uCD94\uAC00\uB428",deleted:"\uC0AD\uC81C\uB428",edited:"\uC218\uC815\uB428",error:"\uC624\uB958",notDeleted:"\uC0AD\uC81C\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",title:"\uC800\uC7A5\uC18C\uC5D0\uC11C \uC218\uC815\uB41C \uD30C\uC77C\uB4E4\uC758 \uBAA9\uB85D",unpublished:"\uAC8C\uC2DC\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"}},publish:{branch:{alreadyExists:"{{- branchName}} \uBE0C\uB79C\uCE58\uAC00 \uC774\uBBF8 {{- repo.owner}}/{{-repo.repo}}\uC5D0 \uC874\uC7AC\uD569\uB2C8\uB2E4 - \uD574\uB2F9 \uBE0C\uB79C\uCE58\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4.",error:"{{- repo.owner}}/{{- repo.repo}}\uC5D0\uC11C \uC624\uB958 \uBC1C\uC0DD: {{- error}}",prMessage:"Obsidian\uC5D0\uC11C\uC758 \uD480 \uB9AC\uD018\uC2A4\uD2B8 [{{- branchName}}]",success:"\uBE0C\uB79C\uCE58\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4 (\uC0C1\uD0DC: {{- branchStatus}}) - {{- repo.owner}}/{{- repo.repo}}"},upToDate:""},regex:{entry:"\uB300\uCCB4\uD560 \uAC12",replace:"\uAD50\uCCB4"},settings:{conversion:{dataview:{desc:`\uB370\uC774\uD130\uBDF0 \uCFFC\uB9AC\uB97C \uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.
\uB370\uC774\uD130\uBDF0\uC640 \uB0B4\uBD80 \uB9C1\uD06C \uBCC0\uD658\uC774 \uD65C\uC131\uD654\uB41C \uACBD\uC6B0\uC5D0\uB9CC \uC791\uB3D9\uD569\uB2C8\uB2E4.`,title:"\uB370\uC774\uD130\uBDF0"},desc:"\uC774 \uC635\uC158\uB4E4\uC740 Obsidian \uBCF4\uAD00\uC18C\uC758 \uD30C\uC77C \uB0B4\uC6A9\uC744 \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC9C0\uB9CC, GitHub\uC758 \uD30C\uC77C \uB0B4\uC6A9\uC744 \uBCC0\uACBD\uD560 \uAC83\uC785\uB2C8\uB2E4.",hardBreak:{desc:"\uAC01 \uC904 \uB4A4\uC5D0 \uB9C8\uD06C\uB2E4\uC6B4 \uD558\uB4DC \uB77C\uC778 \uBE0C\uB808\uC774\uD06C (\uC774\uC911 \uACF5\uBC31) \uCD94\uAC00\uD558\uAE30.",title:"\uB9C8\uD06C\uB2E4\uC6B4\uC5D0\uC11C \uAC15\uC81C \uC904 \uBC14\uAFC8"},links:{desc:"\uD574\uB2F9 \uB178\uD2B8\uC758 \uD504\uB860\uD2B8\uB9E4\uD130\uC5D0 $t(settings.conversion.links.key) \uB97C \uCD94\uAC00\uD558\uC5EC \uD574\uB2F9 \uB178\uD2B8\uB85C\uC758 \uB9C1\uD06C \uBCC0\uD658\uC744 \uB9C9\uACE0 alt \uD14D\uC2A4\uD2B8(\uB610\uB294 \uD30C\uC77C \uC774\uB984)\uB97C \uC720\uC9C0\uD558\uC138\uC694",folderNote:{desc:"\uD30C\uC77C \uC774\uB984\uC744 \uC9C0\uC815\uB41C \uC774\uB984(default: index.md)\uC73C\uB85C \uBCC0\uACBD\uD569\uB2C8\uB2E4. \uC774\uB294 \uD574\uB2F9 \uD30C\uC77C\uC774 \uBD80\uBAA8 \uD3F4\uB354/\uCE74\uD14C\uACE0\uB9AC\uC640 \uAC19\uC740 \uC774\uB984\uC744 \uAC00\uC9C8 \uB54C \uC801\uC6A9\uB429\uB2C8\uB2E4 (\uB178\uD2B8\uAC00 \uD3F4\uB354 \uBC16\uC5D0 \uC788\uB294 \uACBD\uC6B0\uC5D0\uB3C4 \uB3D9\uC791\uD569\uB2C8\uB2E4).",title:"\uD3F4\uB354 \uB178\uD2B8"},internals:{dataview:"\uB370\uC774\uD130\uBDF0 \uBE14\uB7ED\uC5D0\uC11C \uB9C1\uD06C\uB97C \uBCC0\uD658\uD558\uB824\uBA74 \uD544\uC218\uC785\uB2C8\uB2E4!",desc:"\uB0B4\uBD80 \uB9C1\uD06C\uB97C \uC800\uC7A5\uC18C \uB0B4\uC758 \uD574\uB2F9 \uB9C1\uD06C(\uC0C1\uB300 \uB9C1\uD06C)\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.",shareAll:"\uD504\uB860\uD2B8\uB9E4\uD130 \uC5C6\uC774\uB294 \uD30C\uC77C\uC758 \uACF5\uC720 \uC0C1\uD0DC\uB97C \uC54C \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC5D0 '\uBAA8\uB450 \uACF5\uC720' \uC124\uC815\uC5D0 \uB300\uD55C \uBAA8\uB4E0 \uB9C1\uD06C\uB97C \uD3EC\uD568\uD569\uB2C8\uB2E4.",title:"\uB0B4\uBD80 \uB9C1\uD06C"},key:"<code>links: false</code>",nonShared:{desc:"\uB0B4\uBD80 \uB9C1\uD06C\uC640 \uAC19\uC740 \uC635\uC158\uC774\uC9C0\uB9CC \uC544\uC9C1 \uBC1C\uD589\uB418\uC9C0 \uC54A\uC740 \uB178\uD2B8\uC5D0 \uB300\uD574 \uC801\uC6A9\uB429\uB2C8\uB2E4. \uBE44\uD65C\uC131\uD654\uB418\uBA70, \uD30C\uC77C \uC774\uB984\uB9CC \uBCF4\uC874\uB429\uB2C8\uB2E4.",title:"\uBC1C\uD589\uB418\uC9C0 \uC54A\uC740 \uB178\uD2B8\uB97C \uAC00\uB9AC\uD0A4\uB294 \uB0B4\uBD80 \uB9C1\uD06C\uB97C \uBCC0\uD658\uD569\uB2C8\uB2E4"},relativePath:{desc:"",title:""},slugify:{desc:"\uC575\uCEE4 \uB9C1\uD06C\uC758 \uD45C\uC81C \uC81C\uBAA9\uC744 \uAC00\uB9AC\uD0A4\uB294 \uC2AC\uB7EC\uADF8\uB97C \uD45C\uC900\uD654\uD569\uB2C8\uB2E4. \uC2AC\uB7EC\uADF8\uB97C \uBAA8\uB450 \uC18C\uBB38\uC790\uB85C \uBCC0\uD658\uD558\uACE0, \uACF5\uBC31\uC744 \uD558\uC774\uD508\uC73C\uB85C \uB300\uCCB4\uD569\uB2C8\uB2E4. \uB9C8\uD06C\uB2E4\uC6B4 \uB9C1\uD06C \uAD6C\uBB38\uC5D0\uC11C\uB9CC \uC801\uC6A9\uB429\uB2C8\uB2E4.",disable:"\uBE44\uD65C\uC131\uD654",lower:"\uC18C\uBB38\uC790\uB85C \uBCC0\uD658",strict:"\uC720\uB2C8\uCF54\uB4DC\uC640 \uBE44\uB77C\uD2F4\uC5B4\uB97C \uD3EC\uD568\uD558\uC5EC \uBAA8\uB4E0 \uBB38\uC790\uB97C \uC54C\uD30C\uBCB3 \uBC0F \uB300\uC2DC\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.",title:"\uB9C8\uD06C\uB2E4\uC6B4 \uB9C1\uD06C\uC758 \uC575\uCEE4\uB97C \uC2AC\uB7EC\uADF8\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4"},textBefore:{desc:"",title:""},title:"\uB9C1\uD06C",unlink:{desc:"",title:""},wikilinks:{desc:"\uB0B4\uC6A9 \uBCC0\uACBD \uC5C6\uC774 Wikilink\uB97C MDlink\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.",title:"[[Wikilinks]]\uB97C [MDlinks]\uB85C(links)"}},sectionTitle:"\uBA54\uC778 \uD14D\uC2A4\uD2B8",tags:{desc:"\uC774\uAC83\uC740 \uC18D\uC131\uC774\uB098 \uB370\uC774\uD130\uBDF0 \uC778\uB77C\uC778 \uD544\uB4DC\uB97C \uC18D\uC131 \uD0DC\uADF8\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4. \uD544\uB4DC\uB294 \uC27C\uD45C\uB85C \uAD6C\uBD84\uD569\uB2C8\uB2E4.",exclude:{desc:"\uC774\uAC83\uC740 \uAC12\uC774 \uBCC0\uD658\uB418\uB294 \uAC83\uC5D0\uC11C \uC81C\uC678\uD569\uB2C8\uB2E4. \uD544\uB4DC\uB294 \uC27C\uD45C\uB85C \uAD6C\uBD84\uD569\uB2C8\uB2E4.",placeholder:"\uD544\uB4DC \uAC12",title:"\uBCC0\uD658\uC5D0\uC11C \uAC12\uC744 \uC81C\uC678\uD569\uB2C8\uB2E4"},inlineTags:{desc:"\uC778\uB77C\uC778 \uD0DC\uADF8\uB97C \uC18D\uC131 \uD0DC\uADF8 \uD544\uB4DC\uC5D0 \uCD94\uAC00\uD558\uACE0 '/'\uB97C '_'\uB85C \uB300\uCCB4\uD558\uC5EC \uC911\uCCA9\uB41C \uD0DC\uADF8\uB97C \uBCC0\uD658\uD569\uB2C8\uB2E4",title:"\uC778\uB77C\uC778 \uD0DC\uADF8"},title:"\uC18D\uC131/\uB370\uC774\uD130\uBDF0 \uD544\uB4DC\uB97C \uD0DC\uADF8\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4"},title:"\uB0B4\uC6A9"},embed:{attachment:"\uCCA8\uBD80\uD30C\uC77C",bake:{text:"\uC774 \uAE30\uB2A5\uC744 \uC0AC\uC6A9\uD558\uBA74 \uAC01 \uC784\uBCA0\uB4DC \uC55E\uB4A4\uC5D0 \uD14D\uC2A4\uD2B8\uB97C \uCD94\uAC00\uD560 \uC218 \uC Line truncated
\uC815\uADDC\uC2DD\uC740 /\uB85C \uB458\uB7EC\uC2F8\uC5EC \uC788\uC744 \uB54C \uC9C0\uC6D0\uB429\uB2C8\uB2E4(\uC608: /\uC815\uADDC\uC2DD/).
\uB9C8\uCE68\uD45C\uB294 \uD3EC\uD568\uD558\uC9C0 \uB9C8\uC138\uC694!`,title:"Obsidian\uC5D0\uC11C \uAE30\uBCF8\uC801\uC73C\uB85C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uD655\uC7A5\uC790\uB97C \uD5C8\uC6A9\uD569\uB2C8\uB2E4"}},github:{apiType:{desc:"GitHub API\uC640 GitHub Enterprise API \uC911 \uC120\uD0DD\uD558\uC138\uC694 (GitHub Enterprise \uC0AC\uC6A9\uC790 \uC804\uC6A9 \u2014 \uACE0\uAE09 \uC0AC\uC6A9\uC790!).",dropdown:{enterprise:"\uAE30\uC5C5",free:"\uBB34\uB8CC/\uD504\uB85C/\uD300 (\uAE30\uBCF8)"},hostname:{desc:"\uADC0\uD558\uC758 GibHub Enterprise \uC778\uC2A4\uD134\uC2A4\uC758 \uD638\uC2A4\uD2B8 \uC774\uB984.",title:"GitHub Enterprise \uD638\uC2A4\uD2B8 \uC774\uB984"},title:"API \uC720\uD615"},automaticallyMergePR:"\uC790\uB3D9\uC73C\uB85C \uD480 \uB9AC\uD018\uC2A4\uD2B8 \uBCD1\uD569",branch:{desc:'"main" \uC774\uC678\uC758 \uB2E4\uB978 \uBE0C\uB79C\uCE58\uB97C \uC0AC\uC6A9\uD55C\uB2E4\uBA74',title:"\uBA54\uC778 \uBE0C\uB79C\uCE58"},dryRun:{enable:{desc:"GitHub \uD478\uC2DC\uC640 \uBAA8\uB4E0 \uB2E4\uB978 \uC791\uC5C5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uACE0, \uC800\uC7A5\uC18C\uC5D0 \uD478\uC2DC\uB418\uAC70\uB098 \uC0AD\uC81C\uB420 \uD56D\uBAA9\uC744 \uD655\uC778\uD558\uAE30 \uC704\uD574 dry-run\uB9CC \uC218\uD589\uD569\uB2C8\uB2E4.",title:"\uD14C\uC2A4\uD2B8 \uBAA8\uB4DC"},folder:{desc:"{{owner}}, {{repo}}, \uBC0F {{branch}}\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB3D9\uC801\uC73C\uB85C \uD3F4\uB354 \uC774\uB984\uC744 \uC9C0\uC815\uD569\uB2C8\uB2E4.",error:"",title:"\uC800\uC7A5\uC18C\uAC00 \uC2DC\uBBAC\uB808\uC774\uC158\uB420 \uD3F4\uB354 (\uD14C\uC2A4\uD2B8 \uBAA8\uB4DC \uC804\uC6A9)"}},ghToken:{button:{configDir:": Obsidian\uC758 \uC124\uC815 \uD3F4\uB354",default:"\uAE30\uBCF8\uC801\uC73C\uB85C \uB2E4\uC74C \uC704\uCE58\uC5D0 \uC788\uC2B5\uB2C8\uB2E4:",description:"\uD1A0\uD070\uC774 \uC800\uC7A5\uB420 \uD30C\uC77C \uACBD\uB85C\uB97C \uC218\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",pluginID:": \uD50C\uB7EC\uADF8\uC778 \uC544\uC774\uB514",tooltip:"\uD1A0\uD070\uC744 \uD3EC\uD568\uD55C \uD30C\uC77C\uC758 \uACBD\uB85C\uB97C \uC218\uC815\uD569\uB2C8\uB2E4",variables:"\uB2E4\uC74C \uBCC0\uC218\uB4E4\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"},desc:"\uC800\uC7A5\uC18C \uAD8C\uD55C\uC774 \uC788\uB294 GitHub \uD1A0\uD070\uC785\uB2C8\uB2E4. \uC774\uAC83\uC744 \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ",error:"\uD1A0\uD070\uC740 \uBE44\uC6CC\uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4!"},repoName:{desc:"\uBE14\uB85C\uADF8\uB97C \uC800\uC7A5\uD558\uB294 \uC800\uC7A5\uC18C\uC758 \uC774\uB984.",placeholder:"mkdocs \uD15C\uD50C\uB9BF",title:"\uC800\uC7A5\uC18C \uC774\uB984"},smartRepo:{button:"\uB354 \uB9CE\uC740 \uC800\uC7A5\uC18C \uAD00\uB9AC",modals:{default:'"default"\uB77C\uB294 \uC774\uB984\uC740 \uC8FC \uC124\uC815\uC744 \uC704\uD574 \uC608\uC57D\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.',desc:'"\uB2E4\uB978 \uC800\uC7A5\uC18C"\uB294 \uC544\uB798\uC5D0 \uCD94\uAC00\uB41C \uC800\uC7A5\uC18C\uC5D0\uC11C \uBAA8\uB4E0 \uBA85\uB839\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uAC8C \uD569\uB2C8\uB2E4.',duplicate:"\uC2A4\uB9C8\uD2B8 \uD0A4\uB294 \uACE0\uC720\uD574\uC57C \uD569\uB2C8\uB2E4!",empty:"\uC2A4\uB9C8\uD2B8 \uD0A4\uB294 \uBE44\uC6CC\uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",frontmatterInfo:'\uC2A4\uB9C8\uD2B8 \uD0A4\uC640 \uD568\uAED8 "shortRepo" \uC18D\uC131 \uD0A4\uB97C \uC0AC\uC6A9\uD558\uBA74 \uD30C\uC77C\uC5D0\uC11C \uD574\uB2F9 \uC800\uC7A5\uC18C\uC758 \uACBD\uB85C\uB97C \uC4F0\uC9C0 \uC54A\uACE0\uB3C4 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.',newRepo:"\uC0C8\uB85C\uC6B4 \uC800\uC7A5\uC18C",otherConfig:"\uAE30\uD0C0 \uC124\uC815",shortcuts:{desc:"\uC774 \uC800\uC7A5\uC18C\uC758 \uBAA8\uB4E0 \uBA85\uB839\uC744 \uBA85\uB839 \uD314\uB808\uD2B8\uC5D0 \uCD94\uAC00\uD569\uB2C8\uB2E4",title:"\uB2E8\uCD95\uD0A4"},title:"\uAE30\uD0C0 \uC800\uC7A5\uC18C \uAD00\uB9AC"}},testConnection:"\uD14C\uC2A4\uD2B8 \uC5F0\uACB0",title:"GitHub \uC124\uC815",username:{desc:"GitHub\uC5D0\uC11C \uC800\uC7A5\uC18C\uB97C \uD638\uC2A4\uD305\uD558\uB294 \uC0AC\uC6A9\uC790 \uC774\uB984 \uB610\uB294 \uC870\uC9C1 \uC774\uB984",title:"GitHub \uC0AC\uC6A9\uC790 \uC774\uB984"}},githubWorkflow:{autoCleanUp:{desc:"\uAC8C\uC2DC\uB97C \uC911\uC9C0\uD558\uAC70\uB098 \uC0AD\uC81C\uD55C \uD30C\uC77C\uC744 GitHub\uC5D0\uC11C \uC81C\uAC70\uD569\uB2C8\uB2E4",popup:{desc:"{{- what}}\uC758 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC744 \uB54C \uC790\uB3D9 \uC815\uB9AC\uB97C \uD65C\uC131\uD654\uD558\uBA74 \uD15C\uD50C\uB9BF, \uC6CC\uD06C\uD50C\uB85C\uC6B0, \uC544\uC774\uCF58 \uB610\uB294 README\uB97C \uD3EC\uD568\uD55C \uC800\uC7A5\uC18C \uB0B4 \uBAA8\uB4E0 \uD30C\uC77C\uC774 \uC0AD\uC81C\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",exclude:`\uC800\uC7A5\uC18C\uC5D0 \uD544\uC694\uD55C \uD30C\uC77C\uACFC \uD3F4\uB354\uB97C \uC81C\uC678\uC2DC\uD0A4\uB294 \uAC83\uC744 \uC78A\uC9C0 \uB9C8\uC138\uC694.
\uB610\uD55C GitHub\uC758 \uD480 \uB9AC\uD018\uC2A4\uD2B8 \uC2DC\uC2A4\uD15C\uC5D0 \uC758\uD574 \uC0AD\uC81C\uB41C \uD30C\uC77C\uC740 \uC5B8\uC81C\uB4E0\uC9C0 \uB418\uB3CC\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`,sure:"\uC774 \uAE30\uB2A5\uC744 \uD65C\uC131\uD654\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",title:"\uC790\uB3D9 \uC815\uB9AC \uAE30\uB2A5 \uD65C\uC131\uD654"},title:"\uC790\uB3D9 \uC815\uB9AC \uAE30\uB2A5"},excludedFiles:{desc:"\uC790\uB3D9 \uC815\uB9AC\uC5D0\uC11C \uD2B9\uC815 \uD3F4\uB354\uB098 \uD30C\uC77C\uC744 \uC81C\uC678\uD558\uB824\uBA74 \uC5EC\uAE30\uC5D0 \uCD94\uAC00\uD558\uC138\uC694. \uBB38\uC790\uC5F4\uC744 '/'\uB85C \uB458\uB7EC\uC2F8\uBA74 \uC815\uADDC\uC2DD\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD30C\uC77C\uC740 \uC27C\uD45C\uB85C \uAD6C\uBD84\uD569\uB2C8\uB2E4.",title:"\uC81C\uC678\uB41C \uD30C\uC77C\uACFC \uD3F4\uB354"},githubAction:{desc:'\uD50C\uB7EC\uADF8\uC778\uC774 \uD30C\uC77C\uC744 \uD478\uC2DC\uD560 \uB54C GitHub \uC561\uC158\uC744 \uD65C\uC131\uD654\uD558\uB824\uBA74 \uD30C\uC77C \uC774\uB984\uC744 \uC124\uC815\uD558\uC138\uC694 (.github/workflows \uD3F4\uB354 \uB0B4\uC5D0\uC11C). "workflow_dispatch" \uC774\uBCA4\uD2B8\uB97C \uAC16\uB294 \uC6CC\uD06C\uD50C\uB85C\uC6B0\uB9CC \uD2B8\uB9AC\uAC70\uB429\uB2C8\uB2E4.',title:"GitHub \uC561\uC158 \uC774\uB984"},includeAttachments:{desc:"\uCCA8\uBD80 \uD30C\uC77C\uB3C4 \uB2E4\uB978 \uB178\uD2B8\uC640 \uD568\uAED8 \uC790\uB3D9\uC73C\uB85C \uC815\uB9AC\uB429\uB2C8\uB2E4.",title:"\uCCA8\uBD80 \uD30C\uC77C\uC758 \uC790\uAC00 \uC815\uB9AC"},prRequest:{desc:"\uD480 \uB9AC\uD018\uC2A4\uD2B8\uAC00 \uBCD1\uD569\uB420 \uB54C \uC804\uC1A1\uB418\uB294 \uBA54\uC2DC\uC9C0\uC785\uB2C8\uB2E4. \uD56D\uC0C1 \uD480 \uB9AC\uD018\uC2A4\uD2B8 \uBC88\uD638\uAC00 \uB4A4\uC5D0 \uBD99\uC2B5\uB2C8\uB2E4.",error:"\uC5EC\uAE30\uC5D0 \uBE48 \uBB38\uC790\uC5F4\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4!",title:"\uCEE4\uBC0B \uBA54\uC2DC\uC9C0"},useMetadataExtractor:{desc:"\uC774 \uD3F4\uB354\uC5D0\uC11C \uBA54\uD0C0\uB370\uC774\uD130 \uCD94\uCD9C \uD50C\uB7EC\uADF8\uC778\uC5D0 \uC758\uD574 \uC0DD\uC131\uB41C \uD30C\uC77C\uC744 \uC804\uC1A1\uD569\uB2C8\uB2E4.",title:"\uBA54\uD0C0\uB370\uC774\uD130 \uCD94\uCD9C \uD30C\uC77C"}},help:{frontmatter:{attachment:{folder:"\uCCA8\uBD80 \uD30C\uC77C\uC758 \uAE30\uBCF8 \uD3F4\uB354 \uBCC0\uACBD",send:"\uBAA8\uB4E0 \uCCA8\uBD80 \uD30C\uC77C\uC744 GitHub\uC5D0 \uBCF4\uB0B4\uAE30"},autoclean:"\uC790\uB3D9 \uC815\uB9AC \uAE30\uB2A5 \uBE44\uD65C\uC131\uD654 \uB610\uB294 \uD65C\uC131\uD654",baselink:{desc:"\uB9C1\uD06C \uBCF5\uC0AC \uBA85\uB839\uC758 \uAE30\uBCF8 \uB9C1\uD06C\uB97C \uBCC0\uACBD\uD558\uACE0, \uB9C1\uD06C \uAD50\uCCB4\uAE30 \uBD80\uBD84\uC744 \uBE44\uD65C\uC131\uD654\uD569\uB2C8\uB2E4. \uC774\uB984\uACFC \uD568\uAED8 \uC18D\uC131 \uAC1D\uCCB4\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4 ",remove:"\uB9C1\uD06C\uC758 \uC77C\uBD80\uB97C \uC81C\uAC70\uD569\uB2C8\uB2E4. \uBAA9\uB85D \uD615\uC2DD\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4!"},convert:{enableOrDisable:"\uB9C1\uD06C\uC758 \uBCC0\uD658\uC744 \uD65C\uC131\uD654 \uB610\uB294 \uBE44\uD65C\uC131\uD654 \uD569\uB2C8\uB2E4. \uC774\uAC83\uC744 \uBE44\uD65C\uC131\uD654 \uD558\uB294 \uAC83\uC740 ...\uB97C \uC81C\uAC70\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",syntax:"\uD30C\uC77C \uC774\uB984 \uB610\uB294 \uB300\uCCB4 \uD14D\uC2A4\uD2B8\uB294 \uC720\uC9C0\uD558\uBA74\uC11C \uAD6C\uBB38."},dataview:"\uB370\uC774\uD130 \uBDF0 \uCFFC\uB9AC\uB97C \uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.",desc:"\uB610\uD55C, \uC6CC\uD06C\uD50C\uB85C\uC6B0\uC5D0 \uC720\uC6A9\uD560 \uC218 \uC788\uB294 \uBA87 \uAC00\uC9C0 \uC18D\uC131 \uD0A4\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uC544\uB798 \uCF54\uB4DC\uB294 \uAE30\uBCF8 \uC124\uC815\uC744 \uBCF4\uC5EC\uC8FC\uC9C0\uB9CC, \uAC01 \uB178\uD2B8\uC5D0\uC11C \uD544\uC694\uC5D0 \uB9DE\uAC8C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!",embed:{char:'\uC784\uBCA0\uB4DC\uB41C \uB9C1\uD06C \uC55E\uC5D0 \uBB38\uC790\uB97C \uCD94\uAC00\uD569\uB2C8\uB2E4. "remove"\uB97C "link"\uB85C \uC124\uC815\uD55C \uACBD\uC6B0\uC5D0\uB9CC \uC0AC\uC6A9\uB429\uB2C8\uB2E4.',remove:{bake:"\uC784\uBCA0\uB4DC\uC758 \uB0B4\uC6A9\uC744 \uD3EC\uD568\uD569\uB2C8\uB2E4 (\uBE14\uB85D, \uC81C\uBAA9 \uBC0F \uC804\uCCB4 \uD30C\uC77C \uC9C0\uC6D0)",desc:"\uC784\uBCA0\uB4DC\uB41C \uD30C\uC77C \uB9C1\uD06C\uC758 \uBAA8\uC591\uC744 \uC218\uC815\uD569\uB2C8\uB2E4. \uB2E4\uC74C \uAC12\uB4E4\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:",keep:"Obsidian\uC5D0 \uADF8\uB300\uB85C \uB0A8\uACA8\uB450\uC138\uC694",links:'\uB9C1\uD06C\uB85C \uBCC0\uD658("!"\uB97C \uC0AD\uC81C \uB610\uB294 \uC218\uC815)',remove:"\uC778\uC6A9 \uBD80\uBD84\uC744 \uC644\uC804\uD788 \uC0AD\uC81C\uD558\uACE0 \uBE48 \uC904\uC744 \uB0A8\uAE41\uB2C8\uB2E4"},send:"\uC784\uBCA0\uB4DC\uB41C \uB178\uD2B8\uB97C GitHub\uC5D0 \uC804\uC1A1\uD569\uB2C8\uB2E4"},hardBreak:"\uBAA8\uB4E0 \uC904\uBC14\uAFC8\uC744 \uB9C8\uD06C\uB2E4\uC6B4 \xAB\uD558\uB4DC \uBE Line truncated
\u041F\u043B\u0430\u0433\u0438\u043D Dataview \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u043B\u0430\u0433\u0438\u043D \u043C\u043E\u0436\u0435\u0442 \u043C\u0435\u0448\u0430\u0442\u044C \u044D\u0442\u043E\u043C\u0443.
\u0428\u0430\u0433 \u043F\u0440\u043E\u043F\u0443\u0449\u0435\u043D.`,"reading-token-file":"\u041E\u0448\u0438\u0431\u043A\u0430: \u043F\u0443\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D \u043D\u0435\u0432\u0435\u0440\u043D\u043E.",unablePublishMultiNotes:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0437\u0430\u043C\u0435\u0442\u043E\u043A, \u0447\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",unablePublishNote:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0437\u0430\u043C\u0435\u0442\u043A\u0443 {{- file}}, \u043F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0435\u043C \u0435\u0451",whatEmpty:{branch:"\u0412\u0435\u0442\u043A\u0430",owner:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446"}},informations:{foundNoteToSend:"\u041D\u0430\u0439\u0434\u0435\u043D\u043E {{- nbNotes}} \u043D\u043E\u0432\u044B\u0445 \u0437\u0430\u043C\u0435\u0442\u043E\u043A \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438",migrating:{fileReplace:"\u041C\u0438\u0433\u0440\u0430\u0446\u0438\u044F \u0437\u0430\u043C\u0435\u043D\u044B \u0438\u043C\u0435\u043D\u0438 \u0444\u0430\u0439\u043B\u0430 \u0432 \u043D\u043E\u0432\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442\u2026",normalFormat:"\u041C\u0438\u0433\u0440\u0430\u0446\u0438\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u2026",oldSettings:"\u041C\u0438\u0433\u0440\u0430\u0446\u0438\u044F \u0441\u0442\u0430\u0440\u044B\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A \u0432 \u043D\u043E\u0432\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442\u2026",subFolder:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434\u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0430 \u0432 \u0437\u0430\u043C\u0435\u043D\u0443 \u043F\u0443\u0442\u0438 \u043A \u043F\u0430\u043F\u043A\u0435\u2026"},noNewNote:"\u041D\u043E\u0432\u044B\u0445 \u0437\u0430\u043C\u0435\u0442\u043E\u043A \u0434\u043B\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 \u043D\u0435\u0442.",scanningRepo:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F, \u044D\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043D\u044F\u0442\u044C \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F\u2026",sendMessage:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 <i>{{- nbNotes}}</i> \u0437\u0430\u043C\u0435\u0442\u043E\u043A \u0432 <u>{{- repo.owner}}/{{- repo.repo}}</u>",startingClean:"\u041D\u0430\u0447\u0438\u043D\u0430\u0435\u043C \u043E\u0447\u0438\u0441\u0442\u043A\u0443 <u>{{- repo.owner}}/{{- repo.repo}}</u>",successPublishOneNote:"\u0423\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043E <i><u>{{- file}}</u></i> \u0432 <u>{{- repo.owner}}/{{- repo.repo}}</u>",successfulPublish:"\u0423\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043E <i>{{- nbNotes}}</i> \u0432 <u>{{- repo.owner}}/{{- repo.repo}}</u>",wait:"",wait_plural:"",waitingWorkflow:"\u041E\u0436\u0438\u0434\u0430\u0435\u043C \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F workflow\u2026"},modals:{export:{copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",desc:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043B\u0438 \u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0444\u0430\u0439\u043B.",download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C",title:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A"},import:{desc:"\u0418\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0437 \u0442\u0435\u043A\u0441\u0442\u0430 \u0438\u043B\u0438 \u0444\u0430\u0439\u043B\u0430. \u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435: \u044D\u0442\u043E \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0448\u0435\u0442 \u0432\u0430\u0448\u0438 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 (\u043A\u0440\u043E\u043C\u0435 \u0438\u043C\u0435\u043D\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F, \u0438\u043C\u0435\u043D\u0438 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F \u0438 \u0442\u043E\u043A\u0435\u043D\u0430).",error:{isEmpty:"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u043F\u0443\u0441\u0442\u0430.",span:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0438\u043C\u043F\u043E\u0440\u0442\u0430 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: "},im Line truncated
\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \xAB\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438\xBB \u0438 \u043F\u043B\u0430\u0433\u0438\u043D Dataview.`,title:"Dataview"},desc:"\u042D\u0442\u0438 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043D\u0435 \u0438\u0437\u043C\u0435\u043D\u044F\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0444\u0430\u0439\u043B\u0430 \u0432 \u0432\u0430\u0448\u0435\u043C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 Obsidian, \u043D\u043E \u0438\u0437\u043C\u0435\u043D\u044F\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0444\u0430\u0439\u043B\u0430 \u043D\u0430 GitHub.",hardBreak:{desc:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0435\u0440\u0435\u043D\u043E\u0441 \u0441\u0442\u0440\u043E\u043A\u0438 \u0432 Markdown (\u0434\u0432\u043E\u0439\u043D\u043E\u0439 \u043E\u0442\u0441\u0442\u0443\u043F) \u043F\u043E\u0441\u043B\u0435 \u043A\u0430\u0436\u0434\u043E\u0439 \u0441\u0442\u0440\u043E\u043A\u0438.",title:"\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0435\u0440\u0435\u043D\u043E\u0441 \u0441\u0442\u0440\u043E\u043A\u0438 \u0432 Markdown"},links:{desc:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 $t(settings.conversion.links.key) \u0432 frontmatter \u0437\u0430\u043C\u0435\u0442\u043A\u0438, \u0447\u0442\u043E\u0431\u044B \u0441\u0441\u044B\u043B\u043A\u0438 \u043D\u0430 \u043D\u0435\u0451 \u043D\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0438 \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u043B\u0441\u044F \u0442\u0435\u043A\u0441\u0442 alt (\u0438\u043B\u0438 \u0438\u043C\u044F \u0444\u0430\u0439\u043B\u0430).",folderNote:{desc:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B\u044B \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0435 \u0438\u043C\u044F (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: index.md), \u0435\u0441\u043B\u0438 \u043E\u043D\u0438 \u0438\u043C\u0435\u044E\u0442 \u0442\u043E \u0436\u0435 \u0438\u043C\u044F, \u0447\u0442\u043E \u0438 \u0438\u0445 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0430\u044F \u043F\u0430\u043F\u043A\u0430/\u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F (\u0442\u0430\u043A\u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442, \u0435\u0441\u043B\u0438 \u0437\u0430\u043C\u0435\u0442\u043A\u0430 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432\u043D\u0435 \u043F\u0430\u043F\u043A\u0438).",title:"\u0417\u0430\u043C\u0435\u0442\u043A\u0430 \u043F\u0430\u043F\u043A\u0438"},internals:{dataview:"\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u0435\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u044B\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0438 \u0432 \u0431\u043B\u043E\u043A\u0430\u0445 Dataview!",desc:"\u041F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u0442\u044C \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438 \u0432 \u0438\u0445 \u0430\u043D\u0430\u043B\u043E\u0433\u0438 \u0432 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0438 \u0441 \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u043F\u0443\u0442\u0435\u043C.",shareAll:'\u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u0441\u044B\u043B\u043A\u0438 \u0434\u043B\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 "share all", \u0442\u0430\u043A \u043A\u0430\u043A \u0431\u0435\u0437 frontmatter \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043B\u0430.',title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438"},key:"<code>links: false</code>",nonShared:{desc:"\u0422\u043E \u0436\u0435, \u0447\u0442\u043E \u0438 \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438, \u043D\u043E \u0434\u043B\u044F \u0437\u0430\u043C\u0435\u0442\u043E\u043A, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0435\u0449\u0435 \u043D\u0435 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u044B. \u0415\u0441\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F \u0442\u043E\u04 Line truncated
\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044E\u0442\u0441\u044F \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u044B\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F, \u0435\u0441\u043B\u0438 \u043E\u043D\u0438 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u044B \u0432 /.
\u041D\u0435 \u0432\u043A\u043B\u044E\u0447\u0430\u0439\u0442\u0435 \u0442\u043E\u0447\u043A\u0443!`,title:"\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F, \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 Obsidian"}},github:{apiType:{desc:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043C\u0435\u0436\u0434\u0443 API GitHub \u0438\u043B\u0438 API GitHub Enterprise (\u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439 GitHub Enterprise \u2014 \u0414\u043B\u044F \u043E\u043F\u044B\u0442\u043D\u044B\u0445 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439!).",dropdown:{enterprise:"Enterprise",free:"Free/Pro/Team (\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E)"},hostname:{desc:"\u0418\u043C\u044F \u0445\u043E\u0441\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 GitHub Enterprise \u0438\u043D\u0441\u0442\u0430\u043D\u0446\u0438\u0438.",title:"\u0425\u043E\u0441\u0442 GitHub Enterprise"},title:"API Type"},automaticallyMergePR:"Automatically merge pull requests.",branch:{desc:'\u041C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432\u0435\u0442\u043A\u0443 \u043E\u0442\u043B\u0438\u0447\u043D\u0443\u044E \u043E\u0442 "main".',title:"Main branch"},dryRun:{enable:{desc:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u0432 GitHub \u0438 \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F. \u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u0442\u0435\u0441\u0442\u043E\u0432\u044B\u0439 \u043F\u0440\u043E\u0433\u043E\u043D, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C, \u0447\u0442\u043E \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0435\u043D\u043E \u0438\u0437 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F.",title:"\u0422\u0435\u0441\u0442\u043E\u0432\u044B\u0439 \u0440\u0435\u0436\u0438\u043C"},folder:{desc:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{owner}}, {{repo}} \u0438 {{branch}} \u0434\u043B\u044F \u0434\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0430\u043F\u043A\u0438.",error:"",title:"\u041F\u0430\u043F\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0439 (\u0442\u043E\u043B\u044C\u043A\u043E \u0442\u0435\u0441\u0442\u043E\u0432\u044B\u0439 \u0440\u0435\u0436\u0438\u043C)"}},ghToken:{button:{configDir:": \u041F\u0430\u043F\u043A\u0430 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Obsidian",default:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E, \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043F\u043E\u043B\u043E\u0436\u0435\u043D \u0432:",description:"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043D\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u043A\u0435\u043D.",pluginID:": ID \u043F\u043B\u0430\u0433\u0438\u043D\u0430",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443, \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u043C\u0443 \u0442\u043E\u043A\u0435\u043D",variables:"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435:"},desc:"\u0422\u043E\u043A\u0435\u043D GitHub \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F\u043C\u0438 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E ",error:"\u0422\u043E\u043A\u0435\u043D \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C!"},repoName:{desc:"\u0418\u043C\u044F \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F, \u0433\u0434\u0435 \u0432\u044B \u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0441\u0432\u043E\u0439 \u0431\u043B\u043E\u0433.",placeholder:"mkdocs-template",title:"Repository name"},smartRepo:{button:"\u0423\u043F\u0440\uLine truncated
\u041A\u0440\u043E\u043C\u0435 \u0442\u043E\u0433\u043E, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 pull-request GitHub.`,sure:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u044D\u0442\u0443 \u0444\u0443\u043D\u043A\u0446\u0438\u044E?",title:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u043E\u0447\u0438\u0441\u0442\u043A\u0443"},title:"\u0410\u0432\u0442\u043E\u043E\u0447\u0438\u0441\u0442\u043A\u0430"},excludedFiles:{desc:"\u0415\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0438\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0430\u043F\u043A\u0438 \u0438\u043B\u0438 \u0444\u0430\u0439\u043B\u044B \u0438\u0437 \u0430\u0432\u0442\u043E\u043E\u0447\u0438\u0441\u0442\u043A\u0438, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0438\u0445 \u0441\u044E\u0434\u0430. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u044B\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F, \u0437\u0430\u043A\u043B\u044E\u0447\u0438\u0432 \u0441\u0442\u0440\u043E\u043A\u0443 \u0432 \xAB/\xBB. \u0420\u0430\u0437\u0434\u0435\u043B\u044F\u0439\u0442\u0435 \u0444\u0430\u0439\u043B\u044B \u0437\u0430\u043F\u044F\u0442\u043E\u0439.",title:"\u0418\u0441\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u0438 \u043F\u0430\u043F\u043A\u0438"},githubAction:{desc:'\u0415\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GitHub Actions \u043F\u0440\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435 \u0444\u0430\u0439\u043B\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u043C, \u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C\u044F \u0444\u0430\u0439\u043B\u0430 (\u0432 \u0432\u0430\u0448\u0435\u0439 \u043F\u0430\u043F\u043A\u0435 .github/workflows). \u0411\u0443\u0434\u0443\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E workflows \u0441 \u0441\u043E\u0431\u044B\u0442\u0438\u0435\u043C "workflow_dispatch".',title:"GitHub Actions"},includeAttachments:{desc:"\u0412\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0442\u0430\u043A\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043E\u0447\u0438\u0449\u0430\u0442\u044C\u0441\u044F \u0432\u043C\u0435\u0441\u0442\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0437\u0430\u043C\u0435\u0442\u043A\u0430\u043C\u0438.",title:"\u0410\u0432\u0442\u043E\u043E\u0447\u0438\u0441\u0442\u043A\u0430 \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u0439"},prRequest:{desc:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435, \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u043C\u043E\u0435 \u043F\u0440\u0438 \u0441\u043B\u0438\u044F\u043D\u0438\u0438 pull-request. \u0412\u0441\u0435\u0433\u0434\u0430 \u0441\u043E\u043F\u0440\u043E\u0432\u043E\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u043D\u043E\u043C\u0435\u0440\u043E\u043C pull-request\u2019a.",error:"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043F\u0443\u0441\u0442\u0443\u044E \u0441\u0442\u0440\u043E\u043A\u0443 \u0437\u0434\u0435\u0441\u044C!",title:"Commit message"},useMetadataExtractor:{desc:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0444\u0430\u0439\u043B\u044B, \u0441\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u043C metadata-extractor, \u0432 \u044D\u0442\u0443 \u043F\u0430\u043F\u043A\u0443.",title:"\u0424\u0430\u0439\u043B\u044B metadata-extractor"}},help:{frontmatter:{attachment:{folder:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u043F\u0430\u043F\u043A\u0443 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0434\u043B\u044F \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u0439",send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0435 \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u043D\u0430 GitHub"},autoclean:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u043E\u0447\u0438\u0441\u0442\u043A\u0443",baselink:{desc:"\u0418\u0437\uLine truncated
Dataview veya ba\u015Fka bir eklenti buna m\xFCdahale ediyor olmal\u0131.
Ad\u0131m atland\u0131.`,"reading-token-file":"",unablePublishMultiNotes:"",unablePublishNote:"",whatEmpty:{branch:"",owner:""}},informations:{foundNoteToSend:"",migrating:{fileReplace:"",normalFormat:"",oldSettings:"",subFolder:""},noNewNote:"",scanningRepo:"",sendMessage:"",startingClean:"",successPublishOneNote:"",successfulPublish:"",wait:"",wait_plural:"",waitingWorkflow:""},modals:{export:{copy:"",desc:"",download:"",title:""},import:{desc:"",error:{isEmpty:"",span:""},importFromFile:"",paste:"",presets:{desc:"",title:""},title:""},listChangedFiles:{added:"",deleted:"",edited:"",error:"",notDeleted:"",title:"",unpublished:""}},publish:{branch:{alreadyExists:"",error:"",prMessage:"",success:""},upToDate:""},regex:{entry:"",replace:""},settings:{conversion:{dataview:{desc:"",title:""},desc:"",hardBreak:{desc:"",title:""},links:{desc:"",folderNote:{desc:"",title:""},internals:{dataview:"",desc:"",shareAll:"",title:""},key:"<code>links: false</code>",nonShared:{desc:"",title:""},relativePath:{desc:"",title:""},slugify:{desc:"",disable:"",lower:"",strict:"",title:""},textBefore:{desc:"",title:""},title:"",unlink:{desc:"",title:""},wikilinks:{desc:"",title:""}},sectionTitle:"",tags:{desc:"",exclude:{desc:"",placeholder:"",title:""},inlineTags:{desc:"",title:""},title:""},title:""},embed:{attachment:"",bake:{text:"",textAfter:{title:""},textBefore:{title:""},title:"",variable:{desc:"",title:"",url:""},warning:""},char:{desc:"",title:""},defaultImageFolder:{desc:"",title:""},forcePush:{all:"",default:"",desc:"",info:"",title:""},imagePath:{desc:"",title:""},links:{desc:"",dp:{bake:"",keep:"",links:"",remove:""},title:""},notes:"",overrides:{desc:"",modal:{dest:"",path:"",title:""}},sendSimpleLinks:{desc:"",title:""},title:"",transferImage:{title:""},transferMetaFile:{desc:"",title:""},transferNotes:{desc:"",title:""}},embeds:{unHandledObsidianExt:{desc:"",title:""}},github:{apiType:{desc:"",dropdown:{enterprise:"",free:""},hostname:{desc:"",title:""},title:""},automaticallyMergePR:"",branch:{desc:"",title:""},dryRun:{enable:{desc:"",title:""},folder:{desc:"",error:"",title:""}},ghToken:{button:{configDir:"",default:"",description:"",pluginID:"",tooltip:"",variables:""},desc:"",error:""},repoName:{desc:"",placeholder:"",title:""},smartRepo:{button:"",modals:{default:"",desc:"",duplicate:"",empty:"",frontmatterInfo:"",newRepo:"",otherConfig:"",shortcuts:{desc:"",title:""},title:""}},testConnection:"",title:"",username:{desc:"",title:""}},githubWorkflow:{autoCleanUp:{desc:"",popup:{desc:"",exclude:"",sure:"",title:""},title:""},excludedFiles:{desc:"",title:""},githubAction:{desc:"",title:""},includeAttachments:{desc:"",title:""},prRequest:{desc:"",error:"",title:""},useMetadataExtractor:{desc:"",title:""}},help:{frontmatter:{attachment:{folder:"",send:""},autoclean:"",baselink:{desc:"",remove:""},convert:{enableOrDisable:"",syntax:""},dataview:"",desc:"",embed:{char:"",remove:{bake:"",desc:"",keep:"",links:"",remove:""},send:""},hardBreak:"",includeLinks:"",internals:"",mdlinks:"",nestedKey:"",nonShared:"",path:"",repo:{branch:"",desc:"",owner:""},share:{other:"",title:""},shortRepo:"",title:"",titleKey:"",unlink:""},multiRepoHelp:{desc:"",desc2:"",exampleDesc:"",title:""},title:"",usefulLinks:{discussion:"",documentation:"",issue:"",title:"",translation:""}},plugin:{copyLink:{applyRegex:{desc:"",title:""},baselink:{desc:"",title:""},command:{desc:""},desc:"",linkPathRemover:{desc:"",title:""},slugify:{disable:"",lower:"",strict:"",title:"Ba\u011Flant\u0131 yava\u015Flad\u0131"},title:"Ba\u011Flant\u0131y\u0131 kopyala",toUri:{desc:"",title:""}},dev:{desc:"",title:""},editorMenu:{desc:"",title:"Edit\xF6r men\xFCs\xFC"},embedEditRepo:{desc:"",title:""},excludedFolder:{desc:"",title:"Hari\xE7 tutulan klas\xF6rler"},fileMenu:{desc:"",title:"Dosya men\xFCs\xFC"},head:{copyLinks:"",log:"",menu:"",other:"",share:"Yap\u0131land\u0131rmay\u0131 payla\u015Fma"},logNoticeHeader:{desc:"",title:""},noticeLength:{desc:"",error:"",title:""},saveTab:{desc:"",title:"Sekmeyi kaydet"},set:{desc:"",title:""},setImport:{desc:"",title:""},shareKey:{all:{desc:"",title:""},desc:"",excludedFileName:{title:""},otherRepo:"",title:"Anahtar payla\u015F\u0131m\u0131"},title:"Eklenti ayarlar\u0131"},regexReplacing:{empty:"",emptyRegex:"",forbiddenValue:"",inCodeBlocks:{runIn:"",runOut:""},invalidRegex:"",modal:{desc:"",force:"Kuvvet itme",keywords:"",name:"",title:{all:"",only:"Dosya ad\u0131n\u0131 de\u011Fi\u015Ftir",text:"Metin de\u011Fi\u015Ftirici"}},momentReplaceRegex:"",warningPath:""},upload:{defaultFolder:{desc:"",placeholder:"",title:""},folderBehavior:{desc:"",fixedFolder:"",obsidianPath:"",title:"",yaml:""},folderNote:{addTitle:{key:"",title:""}},frontmatterKey:{desc:"",placeholder:"",title:""},regexFilePathTitle:{desc:"",title:{FolderPathTitle:"",titleOnly:""}},rootFolder:{desc:"",other:"",title:""},title:"",useFrontmatterTitle:{desc:"",title:""}}},statusBar:{counter:"",loading:"",main:"",markedForSharing:"",sharing:"",success: Line truncated
<br><span class="${rules}">${settings.upload.yamlFolderKey.length>0?`${settings.upload.yamlFolderKey}: `:"category: "}</span><span class="${str}">${(0,import_obsidian27.normalizePath)(defaultPath)}</span>
`)}return""},html=dedent_default(`<code><span class="${rules}">${settings.plugin.shareKey}</span>: <span class="${boolean}">true</span>${category()}
<span class="${rules}">path</span>: <span class="${str}"> file.md</span><span class="${comments}"> # given as an example path</span>
<span class="${rules}">links</span>:
<span class="${rules}"> mdlinks</span>: <span class="${boolean}">${settings.conversion.links.wiki}</span>
<span class="${rules}"> convert</span>: <span class="${boolean}">true</span>
<span class="${rules}"> internals</span>: <span class="${boolean}">${settings.conversion.links.internal}</span>
<span class="${rules}"> nonShared</span>: <span class="${boolean}">${settings.conversion.links.unshared}</span>
<span class="${rules}"> unlink</span>: <span class="${boolean}">${settings.conversion.links.unlink}</span>
<span class="${rules}">embed</span>:
<span class="${rules}"> send</span>: <span class="${boolean}">${settings.embed.notes}</span>
<span class="${rules}"> remove</span>: <span class="${str}">${settings.embed.convertEmbedToLinks}</span>
<span class="${rules}"> char</span>: <span class="${str}">${settings.embed.charConvert}</span>
<span class="${rules}">attachment</span>:
<span class="${rules}"> send</span>: <span class="${boolean}">${settings.embed.attachments}</span>
<span class="${rules}"> folder</span>: <span class="${str}">${settings.embed.folder}</span>
<span class="${rules}">dataview</span>: <span class="${boolean}">${settings.conversion.dataview}</span>
<span class="${rules}">hardBreak</span>: <span class="${boolean}">${settings.conversion.hardbreak}</span>
<span class="${rules}">includeLinks</span>: <span class="${boolean}">${settings.embed.sendSimpleLinks}</span>
`);if(settings.github.otherRepo.length>0){let smartkey=settings.github.otherRepo[0].smartKey.length>0?settings.github.otherRepo[0].smartKey:"smartkey";html+=dedent_default(`<br><span class="${rules}">shortRepo</span>: <span class="${str}">${smartkey}</span>`)}html+=dedent_default(`<br><span class="${rules}">repo</span>:
<span class="${rules}"> owner</span>: <span class="${str}">${settings.github.user}</span>
<span class="${rules}"> repo</span>: <span class="${str}">${settings.github.repo}</span>
<span class="${rules}"> branch</span>: <span class="${str}">${settings.github.branch}</span>
<span class="${rules}"> autoclean</span>: <span class="${boolean}">${settings.upload.autoclean.enable}</span>
<span class="${rules}">copylink</span>:
<span class="${rules}"> base</span>: <span class="${str}">${settings.plugin.copyLink.links.length>0?settings.plugin.copyLink.links:`https://${settings.github.repo}.github.io/${settings.github.repo}`}</span>
`);let removePart=settings.plugin.copyLink.removePart.map(val=>`"${val}"`).join(", ");return removePart.length>0&&(html+=dedent_default(`<span class="${rules}"> remove</span>: <span class="${str}">${removePart}</span>`)),html+="</code>",(0,import_obsidian27.sanitizeHTMLToDom)(html)}function help(settings){let els=dedent_default(`
<ul>
<li><code class="code-title">${settings.plugin.shareKey}</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.share.title")}
<ol>${instance.t("settings.help.frontmatter.share.other")}</ol>
<li><code class="code-title">path</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.path")}</li>
<li><code class="code-title">links</code>${instance.t("common.points")}
<ul>
<li><code>mdlinks</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.mdlinks")} <code>[[markdown|alias]]</code> ${instance.t("common.in")} <code>[alias](markdown)</code></li>
<li><code>convert</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.convert.enableOrDisable")} <code>[[link]]</code> ${instance.t("common.or")} <code>[](link)</code> ${instance.t("settings.help.frontmatter.convert.syntax")}</li>
<li><code>internals</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.internals")}</li>
<li><code>nonShared</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.nonShared")}</li>
<li><code>unlink</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.unlink")}</li>
</ul>
</li>
<li><code class="code-title">embed</code>${instance.t("common.points")}
<ul>
<li><code>send</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.send")}</li>
<li><code>remove</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.remove.desc")}
<ul>
<li><code>remove | true</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.remove.remove")}</li>
<li><code>keep | false</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.remove.keep")}</li>
<li><code>links</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.remove.links")}</li>
<li><code>bake</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.remove.bake")}</li>
</ul>
</li>
<li><code>char</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.embed.char")}</li>
</ul>
</li>
<li><code class="code-title">attachment</code>${instance.t("common.points")}
<ul>
<li><code>send</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.attachment.send")}</li>
<li><code>folder</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.attachment.folder")}</li>
</ul>
</li>
<li><code class="code-title">dataview</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.dataview")}</li>
<li><code class="code-title">hardbreak</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.hardBreak")}</li>
<li><code class="code-title">includeLinks</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.includeLinks")} <code>[[markdown]]</code> ${instance.t("common.or")} <code>[](markdown)</code></li>
<li><code class="code-title">shortRepo</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.shortRepo")}</li>
<li><code class="code-title">repo</code>${instance.t("common.points")}
<ul>
<li><code>owner</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.repo.owner")}</li>
<li><code>repo</code>${instance.t("common.points")}${instance.t("settings.github.repoName.title")}</li>
<li><code>branch</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.repo.branch")}</li>
<li><code>autoclean</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.autoclean")}</li>
</ul>
</li>
<li><code class="code-title">${settings.upload.frontmatterTitle.key}</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.titleKey")}</li>
<li><code class="code-title">baseLink</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.baselink.desc")}
<code class="code-title">copylink:</code>
<ul>
<li><code>base</code>${instance.t("common.points")}${instance.t("settings.plugin.copyLink.baselink.title")}</li>
<li><code>remove</code>${instance.t("common.points")}${instance.t("settings.help.frontmatter.baselink.remove")}</li>
</ul>
</li>
</ul>
`);return(0,import_obsidian27.sanitizeHTMLToDom)(els)}function usefulLinks(){let els=dedent_default(`
<ul>
<a href=${DOCUMENTATION_LINK}>${DOCUMENTATION} ${instance.t("settings.help.usefulLinks.documentation")}</a><br>
<a href="https://github.com/Enveloppe/obsidian-enveloppe">${GITHUB_ICON} ${instance.t("common.repository")}</a><br>
<a href="https://github.com/Enveloppe/obsidian-enveloppe/issues">${ISSUE} ${instance.t("settings.help.usefulLinks.issue")}</a><br>
<a href="https://github.com/orgs/Enveloppe/discussions">${DISCUSSION_ICON} ${instance.t("settings.help.usefulLinks.discussion")}</a><br>
<a href="https://discord.gg/6DyY779Nbn">${DISCORD_ICON} Discord</a><br>
<a href="https://hosted.weblate.org/projects/enveloppe/locales/">${TRANSLATION_ICON} ${instance.t("settings.help.usefulLinks.translation")}</a><br>
</ul>
`);return(0,import_obsidian27.sanitizeHTMLToDom)(els)}function multipleRepoExplained(settings){let rules="token key atrule",comments="token comment",str="token string",yaml=dedent_default(`<pre class="language-yaml"><code class="language-yaml"><span class="${rules}">multipleRepo</span>:
<span class="${rules}"> - owner</span>: <span class="${str}">${settings.github.user}</span>
<span class="${rules}"> repo</span>: <span class="${str}">${settings.github.repo}</span>
<span class="${rules}"> branch</span>: <span class="${str}">${settings.github.branch}</span>
<span class="${rules}"> autoclean</span>: <span class="${comments}">false</span>
<span class="${rules}"> - owner</span>: <span class="${str}">sandboxingRepo</span>
<span class="${rules}"> repo</span>: <span class="${str}">my_second_blog</span>
<span class="${rules}"> branch</span>: <span class="${str}">master</span>
<span class="${rules}"> autoclean</span>: <span class="${comments}">false</span>
</code></pre>`),paragraph=dedent_default(`
<span>${instance.t("settings.help.multiRepoHelp.desc")} <code>multipleRepo</code> ${instance.t("settings.help.multiRepoHelp.desc2")}<ul>
<li><code>owner</code></li>
<li><code>repo</code></li>
<li><code>branch</code></li>
<li><code>autoclean</code></li>
</ul>${instance.t("settings.help.multiRepoHelp.exampleDesc")}</span>
`);return(0,import_obsidian27.sanitizeHTMLToDom)(paragraph+yaml)}function supportMe(){let supportMe2=dedent_default(`<p style="text-align:center"><a href="https://ko-fi.com/lisandra_dev"><img src="https://storage.ko-fi.com/cdn/kofi2.png?v=3" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;"></a></p>
`);return(0,import_obsidian27.sanitizeHTMLToDom)(supportMe2)}var import_obsidian28=require("obsidian");async function migrateSettings(old,plugin,imported){plugin.settings.plugin.migrated&&!imported||(await migrateOldSettings(plugin,old),await migrateReplaceTitle(plugin),await migrateSubFolder(plugin),await migrateCensor(plugin),await migrateWorFlow(plugin),await migrateToken(plugin),await migrateOtherRepository(plugin),plugin.settings.plugin.migrated=!0,await plugin.saveSettings())}async function migrateReplaceTitle(plugin){plugin.settings.upload.replaceTitle instanceof Array||(plugin.console.trace(instance.t("informations.migrating.fileReplace")),plugin.settings.upload.replaceTitle=[plugin.settings.upload.replaceTitle],await plugin.saveSettings())}async function migrateSubFolder(plugin){plugin.settings.upload.subFolder&&!plugin.settings.upload.replacePath.find(e=>e.regex===`/${plugin.settings.upload.subFolder}`)&&(plugin.console.trace(instance.t("informations.migrating.subFolder")),plugin.settings.upload.subFolder.length>0&&plugin.settings.upload.replacePath.push({regex:`/${plugin.settings.upload.subFolder}`,replacement:"",type:"path"}),delete plugin.settings.upload.subFolder,await plugin.saveSettings())}async function migrateCensor(plugin){for(let censor of plugin.settings.conversion.censorText)censor.flags&&(censor.entry=`/${censor.entry}/${censor.flags}`,delete censor.flags,await plugin.saveSettings())}async function migrateWorFlow(plugin){if(plugin.console.trace("Migrating workflow"),!plugin.settings.github.worflow)return;let worflow=plugin.settings.github.worflow;plugin.settings.github.workflow={name:worflow.workflowName,commitMessage:worflow.customCommitMsg},delete plugin.settings.github.worflow,await plugin.saveSettings()}async function migrateToken(plugin,token,repo){plugin.console.trace("migrating token");let tokenPath=createTokenPath(plugin,plugin.settings.github.tokenPath);if(plugin.settings.github.token&&!token&&(plugin.console.trace(`Moving the GitHub Token in the file : ${tokenPath}`),token=plugin.settings.github.token,delete plugin.settings.github.token,await plugin.saveSettings()),token===void 0)return;plugin.console.trace(`Moving the GitHub Token in the file : ${tokenPath} for ${repo??"default"} repository`);let exists2=await plugin.app.vault.adapter.exists(tokenPath);if(exists2||await plugin.app.vault.adapter.mkdir((0,import_obsidian28.normalizePath)(tokenPath).split("/").slice(0,-1).join("/")),tokenPath.endsWith(".json")){let envToken=repo?{GITHUB_PUBLISHER_REPOS:{[repo]:token}}:{GITHUB_PUBLISHER_TOKEN:token};if(!exists2){await plugin.app.vault.adapter.write(tokenPath,JSON.stringify(envToken,null,2));return}let newToken={...JSON.parse(await plugin.app.vault.adapter.read(tokenPath)),...envToken};await plugin.app.vault.adapter.write(tokenPath,JSON.stringify(newToken,null,2))}else{let envToken=repo?`${repo}_TOKEN=${token}`:`GITHUB_TOKEN=${token}`;if(!exists2){await plugin.app.vault.adapter.write(tokenPath,envToken);return}let oldToken=(await plugin.app.vault.adapter.read(tokenPath)).split(`
`);for(let i=0;i<oldToken.length;i++)if(oldToken[i].startsWith("GITHUB_TOKEN")&&!repo){oldToken[i]=envToken;break}else if(oldToken[i].startsWith(`${repo}_TOKEN`)&&repo){oldToken[i]=envToken;break}else i===oldToken.length-1&&oldToken.push(envToken);await plugin.app.vault.adapter.write(tokenPath,oldToken.join(`
`))}}async function migrateOtherRepository(plugin){plugin.console.trace("Configuring other repositories");let otherRepo=plugin.settings.github?.otherRepo??[];for(let repo of otherRepo){let workflow={name:plugin.settings.github.workflow?.workflowName??plugin.settings.github.workflow.name,commitMessage:plugin.settings.github.workflow?.commitMessage??plugin.settings.github.workflow.commitMessage};if(repo.workflow||(repo.workflow=workflow,await plugin.saveSettings()),repo.worflow){let worflow=repo.worflow;worflow.workflowName&&(repo.workflow.name=worflow.workflowName),worflow.customCommitMsg&&(repo.workflow.commitMessage=worflow.customCommitMsg),delete repo.worflow,await plugin.saveSettings()}repo.copyLink||(repo.copyLink={links:"",removePart:[],transform:{toUri:!1,slugify:"disable",applyRegex:[]}},await plugin.saveSettings())}}async function migrateOldSettings(plugin,old){if(!Object.keys(old).includes("editorMenu"))return;plugin.console.trace(instance.t("informations.migrating.oldSettings")),plugin.settings={github:{user:old.githubName?old.githubName:plugin.settings.github.user?plugin.settings.github.user:"",repo:old.githubRepo?old.githubRepo:plugin.settings.github.repo?plugin.settings.github.repo:"",branch:old.githubBranch,automaticallyMergePR:old.automaticallyMergePR,tokenPath:plugin.settings.github.tokenPath??TOKEN_PATH,api:{tiersForApi:old.tiersForApi,hostname:old.hostname},workflow:{name:old.workflowName,commitMessage:old.customCommitMsg??plugin.settings.github.workflow.commitMessage??"[PUBLISHER] MERGE"},otherRepo:[],rateLimit:0,verifiedRepo:!1,dryRun:{enable:!1,folderName:""}},upload:{behavior:old.downloadedFolder,defaultName:old.folderDefaultName,rootFolder:old.rootFolder,yamlFolderKey:old.yamlFolderKey,frontmatterTitle:{enable:old.useFrontmatterTitle,key:old.frontmatterTitleKey},replaceTitle:[{regex:old.frontmatterTitleRegex,replacement:old.frontmatterTitleReplacement,type:"title"}],replacePath:[{regex:old.subFolder,replacement:"",type:"path"}],autoclean:{enable:old.autoCleanUp,excluded:typeof old.autoCleanUpExcluded=="string"?[old.autoCleanUpExcluded]:old.autoCleanUpExcluded,includeAttachments:old.autoCleanUp},folderNote:{enable:old.folderNote,rename:old.folderNoteRename,addTitle:{enable:old.folderNote,key:old.frontmatterTitleKey}},metadataExtractorPath:old.metadataExtractorPath},conversion:{hardbreak:old.hardBreak,dataview:old.migrateDataview,censorText:old.censorText,tags:{inline:old.inlineTags,exclude:old.excludeDataviewValue,fields:old.dataviewFields},links:{internal:old.migrateForGithub,unshared:old.migrateInternalNonShared,wiki:old.migrateWikiLinks,slugify:!1,unlink:!1,relativePath:!0,textPrefix:"/"}},embed:{attachments:old.embedImage,keySendFile:old.metadataFileFields,notes:old.embedNotes,folder:old.defaultImageFolder,charConvert:"->",convertEmbedToLinks:"keep",overrideAttachments:[],unHandledObsidianExt:[],sendSimpleLinks:!0},plugin:{shareKey:old.shareKey,fileMenu:old.fileMenu,editorMenu:old.editorMenu,excludedFolder:old.excludedFolder,copyLink:{enable:old.copyLink,links:old.mainLink,removePart:old.linkRemover.split(/[,\n]\W*/).map(s=>s.trim()),addCmd:!1,transform:{toUri:!0,slugify:"lower",applyRegex:[]}},noticeError:old.logNotice,displayModalRepoEditing:!1,setFrontmatterKey:"Set"}};let token=old.GhToken?old.GhToken:plugin.settings.github.token?plugin.settings.github.token:void 0;await migrateToken(plugin,token),await plugin.saveSettings()}var import_obsidian29=require("obsidian");var ImportModal=class extends import_obsidian29.Modal{plugin;settingsPage;settingsTab;settings;console;constructor(app,plugin,settingsPage,settingsTab){super(app),this.plugin=plugin,this.settingsPage=settingsPage,this.settingsTab=settingsTab,this.settings=plugin.settings,this.console=plugin.console}async censorRepositoryData(original){this.console.trace("original settings:",original),this.settings.plugin.dev=original.plugin.dev,this.settings.plugin.migrated=original.plugin.migrated,this.settings.plugin.displayModalRepoEditing=original.plugin.displayModalRepoEditing,this.settings.plugin.noticeError=original.plugin.noticeError,this.settings.plugin.copyLink.addCmd=original.plugin.copyLink.addCmd,this.settings.plugin.fileMenu=original.plugin.fileMenu,this.settings.plugin.editorMenu=original.plugin.editorMenu,this.plugin.settings.github.repo=original.github.repo,this.plugin.settings.github.user=original.github.user,this.plugin.settings.github.otherRepo=original.github.otherRepo,this.plugin.settings.tabsId=original.tabsId,this.plugin.settings.plugin.copyLink.links=original.plugin.copyLink.links,this.settings.github.tokenPath=original.github.tokenPath,await this.plugin.saveSettings()}onOpen(){let{contentEl}=this;new import_obsidian29.Setting(contentEl).setName(instance.t("modals.import.title")).setDesc(instance.t("modals.import.desc")),new import_obsidian29.Setting(contentEl).then(setting=>{let errorSpan=createSpan({cls:"enveloppe-import-error",text:instance.t("modals.import.error.span")});setting.nameEl.appendChild(error Line truncated
`);return err.stack=e.stack,err.message=err.message+e.message,plugin.console.error(err),[]}}async function loadPresetContent(path,octokit,plugin){let presetContent=await octokit.request("GET /repos/{owner}/{repo}/contents/{path}",{owner:"Enveloppe",repo:"plugin-presets",path});if(!presetContent.data?.content)return plugin.settings;let presetContentDecoded=atob(presetContent.data.content);return JSON.parse(presetContentDecoded)}var import_obsidian30=require("obsidian");var SetClassSuggester=class extends import_obsidian30.AbstractInputSuggest{constructor(inputEl,plugin,onSubmit){super(plugin.app,inputEl);this.inputEl=inputEl;this.onSubmit=onSubmit;this.plugin=plugin}plugin;renderSuggestion(value,el){el.setText(value.path)}getSuggestions(query){return this.plugin.app.vault.getFiles().filter(file=>!!(file.extension==="md"&&file.path.toLowerCase().contains(query.toLowerCase())&&this.plugin.app.metadataCache.getFileCache(file)?.frontmatter))}selectSuggestion(value,_evt){this.onSubmit(value),this.inputEl.value=value.path,this.inputEl.focus(),this.inputEl.trigger("input"),this.close()}},ModalAddingNewRepository=class extends import_obsidian30.Modal{settings;plugin;branchName;repository;onSubmit;constructor(app,settings,branchName,plugin,repository,onSubmit){super(app),this.settings=settings,this.repository=repository,this.plugin=plugin,this.onSubmit=onSubmit,this.branchName=branchName}onOpen(){let{contentEl}=this;contentEl.empty(),contentEl.addClasses(["enveloppe","modals","manage-repo","add"]),contentEl.createEl("h2",{text:instance.t("settings.github.smartRepo.modals.title")}),contentEl.createEl("p",{text:instance.t("settings.github.smartRepo.modals.desc")}),contentEl.createEl("p",{text:instance.t("settings.github.smartRepo.modals.frontmatterInfo")}),contentEl.createEl("p",{text:instance.t("settings.plugin.shareKey.otherRepo")});let defaultRepository={smartKey:"smartkey",user:this.settings.github.user,repo:this.settings.github.repo,branch:this.settings.github.branch,automaticallyMergePR:this.settings.github.automaticallyMergePR,api:{tiersForApi:this.settings.github.api.tiersForApi,hostname:this.settings.github.api.hostname},workflow:{commitMessage:this.settings.github.workflow.commitMessage,name:""},createShortcuts:!1,shareKey:this.settings.plugin.shareKey,copyLink:{links:this.settings.plugin.copyLink.links,removePart:[],transform:{toUri:this.settings.plugin.copyLink.transform.toUri,slugify:this.settings.plugin.copyLink.transform.slugify,applyRegex:this.settings.plugin.copyLink.transform.applyRegex}},set:null};new import_obsidian30.Setting(contentEl).setClass("max-width").setClass("display-none").addButton(button=>{button.setButtonText(instance.t("common.add",{things:instance.t("settings.github.smartRepo.modals.newRepo").toLowerCase()})).onClick(()=>{this.repository.push(defaultRepository),this.onOpen()})});for(let repo of this.repository){let sett=new import_obsidian30.Setting(contentEl).setClass("max-width").setClass("display-none").addText(text=>{text.setPlaceholder("smartKey").setValue(repo.smartKey).onChange(value=>{repo.smartKey=value.toLowerCase(),sett.controlEl.setAttribute("smartKey",value.toLowerCase())})}).addExtraButton(btn=>{btn.setIcon("trash").onClick(()=>{this.repository.splice(this.repository.indexOf(repo),1),this.onOpen()})}).addExtraButton(btn=>{btn.setIcon("pencil").onClick(()=>{new ModalEditingRepository(this.app,repo,this.plugin,this.branchName,result=>{this.repository[this.repository.indexOf(repo)]=result}).open()})})}new import_obsidian30.Setting(contentEl).addButton(button=>{button.setButtonText(instance.t("common.save")).setCta().onClick(()=>{let error=this.foundError(),input=error.repo.length>0?this.containerEl.querySelector(`[smartkey="${error.repo}"] input`):contentEl.querySelector('[placeholder="smartKey"] input');error.type==="None"&&(input?.classList?.remove("error"),this.onSubmit(this.repository),this.close()),input?.classList?.add("error"),error.type==="duplicate"?new import_obsidian30.Notice(instance.t("settings.github.smartRepo.modals.duplicate"),this.settings.plugin.noticeLength):error.type==="default"?new import_obsidian30.Notice(instance.t("settings.github.smartRepo.modals.default"),this.settings.plugin.noticeLength):error.type==="empty"&&new import_obsidian30.Notice(instance.t("settings.github.smartRepo.modals.empty"),this.settings.plugin.noticeLength)})})}foundError(){for(let repo of this.repository){if(this.plugin.settings.github.otherRepo.filter(r=>r.smartKey===repo.smartKey).length>1)return{repo:repo.smartKey,type:"duplicate"};if(repo.smartKey==="default")return{repo:repo.smartKey,type:"default"};if(repo.smartKey.length===0)return{repo:"",type:"empty"}}return{repo:"",type:"None"}}onClose(){let{contentEl}=this,error=this.foundError();if(error.type==="empty"){let repo=this.repository.filter(r=>r.smartKey===error.repo);for(let i=0;i<repo.length;i++)repo[i].smartKey=`smartkey-${i}`;new import_obsidian30.Notice(`${instance.t("settings.github.smartRepo.modals.empty")} ${instLine truncated
<p>${instance.t("settings.regexReplacing.modal.desc")}</p>
<h3>${instance.t("settings.regexReplacing.modal.keywords")}</h3>
<ul class="keywords">
<li><code>{{all}}</code>${instance.t("settings.embed.forcePush.all")}</li>
<li><code>{{default}}</code>${instance.t("settings.embed.forcePush.default")}</li>
<li><code>{{name}}</code>${instance.t("settings.regexReplacing.modal.name")}</li>
</ul>
<h3>${instance.t("settings.regexReplacing.modal.force")}</h3>
<p>${instance.t("settings.embed.forcePush.info")}</p>
`);contentEl.appendChild((0,import_obsidian32.sanitizeHTMLToDom)(explanation)),this.settings.embed.overrideAttachments||(this.settings.embed.overrideAttachments=[]);for(let override of this.allOverrides){let sett=new import_obsidian32.Setting(contentEl).setClass("entry").addText(text=>{text.setPlaceholder(instance.t("settings.embed.overrides.modal.path")).setValue(override.path).onChange(value=>{override.path=value,sett.controlEl.setAttribute("value",value)})}).addText(text=>{text.setPlaceholder(instance.t("settings.embed.overrides.modal.dest")).setValue(override.destination).onChange(value=>{override.destination=value,sett.controlEl.setAttribute("replace",value)})}).addToggle(toggle=>{toggle.setTooltip(instance.t("settings.embed.forcePush.title")).setValue(override.forcePush).onChange(value=>{override.forcePush=value})});sett.controlEl.setAttribute("value",override.path),sett.controlEl.setAttribute("replace",override.destination),sett.addExtraButton(button=>{button.setIcon("trash").onClick(()=>{this.allOverrides.splice(this.allOverrides.indexOf(override),1),this.onOpen()})})}new import_obsidian32.Setting(contentEl).addButton(button=>{button.setIcon("plus").onClick(()=>{this.allOverrides.push({path:"",destination:"",forcePush:!1}),this.onOpen()})}).addButton(button=>{button.setButtonText(instance.t("common.save")).onClick(()=>{let canBeValidated=[];this.allOverrides.forEach(override=>{let isForbiddenEntry=this.forbiddenValue(override.path),isForbiddenReplace=this.forbiddenValue(override.destination);if(canBeValidated.push(isForbiddenEntry.isForbidden),canBeValidated.push(isForbiddenReplace.isForbidden),isForbiddenEntry.isForbidden||isForbiddenReplace.isForbidden){override.path=isForbiddenEntry.value,override.destination=isForbiddenReplace.value;let faultyInputValue=contentEl.querySelector(`[value="${escapeRegex(override.path)}"] input`),faultyInputReplace=contentEl.querySelector(`[replace="${escapeRegex(override.destination)}"] input`);faultyInputValue?.classList.add("error"),faultyInputReplace?.classList.add("error")}}),canBeValidated.includes(!0)||(this.onSubmit(this.allOverrides),this.close())})})}onClose(){let{contentEl}=this;contentEl.empty()}},ModalRegexFilePathName=class extends import_obsidian32.Modal{settings;allRegex;onSubmit;constructor(app,settings,allRegex,onSubmit){super(app),this.allRegex=allRegex,this.settings=settings,this.onSubmit=onSubmit}classValue(allRegex){this.settings.upload.replacePath=allRegex.filter(regex=>regex.type==="path"),this.settings.upload.replaceTitle=allRegex.filter(regex=>regex.type==="title")}forbiddenValue(value,type){let regexSpecialDontExclude=/\/(.*)(\\[dwstrnvfb0cxup])(.*)\//i,onWhat=type==="path"?instance.t("common.path.folder"):instance.t("common.path.file");onWhat=onWhat.toLowerCase();let isForbidden=!1;if(value=="/")new import_obsidian32.Notice(instance.t("settings.regexReplacing.forbiddenValue",{what:onWhat,forbiddenChar:value}),this.settings.plugin.noticeLength),value="",isForbidden=!0;else if(isRegexValid(value).isValid)value.match(/[><:"|?*]|(\\\/)|(^\w+\/\w+)|(\\)/)&&type==="title"&&!value.match(regexSpecialDontExclude)?(new import_obsidian32.Notice(instance.t("settings.regexReplacing.forbiddenValue",{what:onWhat,forbiddenChar:value.match(/[><:"|?*]|(\\\/)|(^\w+\/\w+)|(\\)/)[0]}),this.settings.plugin.noticeLength),value="",isForbidden=!0):type==="path"&&(value.match(/[\\><:"|?*]/)&&!value.match(/^\/(.*)\/[gmisuvdy]*$/)?(new import_obsidian32.Notice(instance.t("settings.regexReplacing.forbiddenValue",{what:onWhat,forbiddenChar:value.match(/[\\><:"|?*]/)[0]}),this.settings.plugin.noticeLength),value="",isForbidden=!0):value.match(/(^\w+\/\w+)|(\\\/)/)&&!value.match(regexSpecialDontExclude)&&new import_obsidian32.Notice(instance.t("settings.regexReplacing.warningPath"),this.settings.plugin.noticeLength));else{let error=isRegexValid(value).error;new import_obsidian32.Notice(instance.t("settings.regexReplacing.invalidRegex",{e:error}),this.settings.plugin.noticeLength),isForbidden=!0}return{value,isForbidden}}onOpen(){let{contentEl}=this;contentEl.empty(),contentEl.addClasses(["enveloppe","modals","regex","file-path-name"]),this.settings.upload.behavior==="fixed"?contentEl.createEl("h2",{text:instance.t("settings.regexReplacing.modal.title.only")}):contentEl.createEl("h2",{text:instance.t("settings.regexReplacing.modal.title.all")}),this.settings.upload.replacePath?this.settings.upload.replaceTitle||(this.settings.upload.replaceTitle=[]):this.settings.upload.replacePath=[],this.settings.upload.replacePath.forEach(title=>{title.type||(title.type="path")}),this.settings.upload.replaceTitle.forEach(title=>{title.type||(title.type="title")});for(let title of this.allRegex){let sett=new import_obsidian32.Setting(contentEl).setClass("entry").addText(text=>{text.setPlaceholder(instance.t("regex.entry")).setValue(title.regex).onChange(value=>{title.regex=value,sett.controlEl.setAttribute("value",value)})}).addText(text=>{text.setPlaceholder(instance.t("regex.replac Line truncated
<p class="no-margin">${instance.t("settings.conversion.links.internals.desc")} ${shareAll}</p>
<p class="no-margin">${instance.t("settings.conversion.links.internals.dataview")}</p>
`));new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.internals.title")).setDesc(internalLinksDesc).addToggle(toggle=>{toggle.setValue(textSettings.links.internal).onChange(async value=>{textSettings.links.internal=value,this.settings.plugin.shareAll?.enable&&(textSettings.links.unshared=!0),await this.plugin.saveSettings(),await this.renderSettingsPage("text-conversion")})}),textSettings.links.internal&&(this.settings.plugin.shareAll?.enable||(new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.nonShared.title")).setDesc(instance.t("settings.conversion.links.nonShared.desc")).addToggle(toggle=>{toggle.setValue(textSettings.links.unshared).onChange(async value=>{textSettings.links.unshared=value,await this.renderSettingsPage("text-conversion"),await this.plugin.saveSettings()})}),textSettings.links.unshared||new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.unlink.title")).setDesc((0,import_obsidian35.sanitizeHTMLToDom)(instance.t("settings.conversion.links.unlink.desc"))).addToggle(toggle=>{toggle.setValue(textSettings.links.unlink).onChange(async value=>{textSettings.links.unlink=value,await this.plugin.saveSettings()})})),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.relativePath.title")).setDesc(instance.t("settings.conversion.links.relativePath.desc")).addToggle(toggle=>{toggle.setValue(textSettings.links.relativePath).onChange(async value=>{textSettings.links.relativePath=value,await this.plugin.saveSettings(),await this.renderSettingsPage("text-conversion")})}),textSettings.links.relativePath||new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.textBefore.title")).setDesc((0,import_obsidian35.sanitizeHTMLToDom)(`<span>${instance.t("settings.conversion.links.textBefore.desc",{slash:"<code>/</code>"})}</span>`)).addText(cb=>{cb.setPlaceholder("/").setValue(textSettings.links.textPrefix).onChange(async value=>{textSettings.links.textPrefix=value,await this.plugin.saveSettings()})})),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.wikilinks.title")).setDesc(instance.t("settings.conversion.links.wikilinks.desc")).addToggle(toggle=>{toggle.setValue(textSettings.links.wiki).onChange(async value=>{textSettings.links.wiki=value,await this.plugin.saveSettings(),await this.renderSettingsPage("text-conversion")})});let slugifySetting=typeof textSettings.links.slugify=="boolean"?textSettings.links.slugify?"strict":"disable":textSettings.links.slugify;(textSettings.links.wiki||textSettings.links.internal)&&new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.links.slugify.title")).setDesc(instance.t("settings.conversion.links.slugify.desc")).addDropdown(dropdown=>{dropdown.addOptions({disable:instance.t("settings.conversion.links.slugify.disable"),strict:instance.t("settings.conversion.links.slugify.strict"),lower:instance.t("settings.conversion.links.slugify.lower")}).setValue(slugifySetting).onChange(async value=>{textSettings.links.slugify=["disable","strict","lower"].includes(value)?value:"disable",await this.plugin.saveSettings()})}),this.settingsPage.createEl("h5",{text:instance.t("settings.conversion.sectionTitle")}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.hardBreak.title")).setDesc(instance.t("settings.conversion.hardBreak.desc")).addToggle(toggle=>{toggle.setValue(textSettings.hardbreak).onChange(async value=>{textSettings.hardbreak=value,await this.plugin.saveSettings()})});let isDataviewEnabled=this.app.plugins.plugins.dataview;new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.dataview.title")).setDesc(instance.t("settings.conversion.dataview.desc")).addToggle(toggle=>{toggle.setValue(textSettings.dataview&&isDataviewEnabled&&textSettings.links.internal).setDisabled(!isDataviewEnabled||!textSettings.links.internal).onChange(async value=>{textSettings.dataview=value,await this.plugin.saveSettings()})}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.regexReplacing.modal.title.text")).setDesc(instance.t("settings.regexReplacing.modal.desc")).addButton(button=>{button.setIcon("pencil").onClick(async()=>{new ModalRegexOnContents(this.app,this.copy(this.settings),async result=>{this.settings.conversion.censorText=result.conversion.censorText,await this.plugin.saveSettings()}).open()})}),this.settingsPage.createEl("h5",{text:"Tags"}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.conversion.tags.inlineTags.title")).setDesc(instance.t("settings.conversion.tags.inlineTags.desc")).addToggle(toggle=>{toggle.setValue(textSettings.tags.inline).onChange(async value=>{textSettings.tags.inline=value,await this.plugin.saveSettings()})}),new import_obsidian35.Setting(tLine truncated
<h5>${instance.t("settings.embed.bake.title")}</h5>
<p>${instance.t("settings.embed.bake.text")}. <span class="bake">${instance.t("settings.embed.bake.variable.desc")}</span>
<ul>
<li><code>{{title}}</code>${instance.t("settings.embed.bake.variable.title")}</li>
<li><code>{{url}}</code>${instance.t("settings.embed.bake.variable.url")}</li>
</ul></p>
<p class="warning embed">! ${instance.t("settings.embed.bake.warning")}</p>
`);this.settingsPage.appendChild((0,import_obsidian35.sanitizeHTMLToDom)(bakeEmbedDesc)),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.embed.bake.textBefore.title")).addTextArea(text=>{text.setValue(embedSettings.bake?.textBefore??"").onChange(async value=>{embedSettings.bake.textBefore=value,await this.plugin.saveSettings()})}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.embed.bake.textAfter.title")).addTextArea(text=>{text.setValue(embedSettings.bake?.textAfter??"").onChange(async value=>{embedSettings.bake.textAfter=value,await this.plugin.saveSettings()})})}}}renderPluginSettings(){let pluginSettings=this.settings.plugin;if(this.settingsPage.createEl("h3",{text:instance.t("settings.plugin.head.share")}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.shareKey.all.title")).setDesc(instance.t("settings.plugin.shareKey.all.desc")).addToggle(toggle=>toggle.setValue(pluginSettings.shareAll?.enable??!1).onChange(async value=>{pluginSettings.shareAll={enable:value,excludedFileName:pluginSettings.shareAll?.excludedFileName??"DRAFT"},value&&(this.settings.conversion.links.internal=!0),await this.plugin.saveSettings(),await this.renderSettingsPage("plugin-settings")})),!pluginSettings.shareAll||!pluginSettings.shareAll.enable?new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.shareKey.title")).setDesc(instance.t("settings.plugin.shareKey.desc")).addText(text=>text.setPlaceholder("share").setValue(pluginSettings.shareKey).onChange(async value=>{pluginSettings.shareKey=value.trim(),await this.plugin.saveSettings()})):new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.shareKey.excludedFileName.title")).addText(text=>text.setPlaceholder("DRAFT").setValue(pluginSettings.shareAll?.excludedFileName??"DRAFT").onChange(async value=>{pluginSettings.shareAll.excludedFileName=value.trim(),await this.plugin.saveSettings()})),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.excludedFolder.title")).setDesc(instance.t("settings.plugin.excludedFolder.desc")).addTextArea(textArea=>textArea.setPlaceholder("_assets, Archive, /^_(.*)/gi").setValue(pluginSettings.excludedFolder.join(", ")).onChange(async value=>{pluginSettings.excludedFolder=value.split(/[,\n]\W*/).map(item=>item.trim()).filter(item=>item.length>0),await this.plugin.saveSettings()})),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.set.title")).setDesc(instance.t("settings.plugin.set.desc")).addText(text=>text.setPlaceholder("Set").setValue(pluginSettings.setFrontmatterKey).onChange(async value=>{pluginSettings.setFrontmatterKey=value.trim(),await this.plugin.saveSettings()})),this.settingsPage.createEl("h3",{text:instance.t("settings.plugin.head.menu")}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.fileMenu.title")).setDesc(instance.t("settings.plugin.fileMenu.desc")).addToggle(toggle=>toggle.setValue(pluginSettings.fileMenu).onChange(async value=>{pluginSettings.fileMenu=value,await this.plugin.saveSettings()})),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.editorMenu.title")).setDesc(instance.t("settings.plugin.editorMenu.desc")).addToggle(toggle=>toggle.setValue(pluginSettings.editorMenu).onChange(async value=>{pluginSettings.editorMenu=value,await this.plugin.saveSettings()})),this.settingsPage.createEl("h3",{text:instance.t("settings.plugin.head.copyLinks")}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.copyLink.title")).setDesc(instance.t("settings.plugin.copyLink.desc")).addToggle(toggle=>toggle.setValue(pluginSettings.copyLink.enable).onChange(async value=>{pluginSettings.copyLink.enable=value,await this.plugin.saveSettings(),await this.renderSettingsPage("plugin-settings")})),pluginSettings.copyLink.enable){new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.copyLink.baselink.title")).setDesc(instance.t("settings.plugin.copyLink.baselink.desc")).addText(text=>{text.setPlaceholder("my_blog.com").setValue(pluginSettings.copyLink.links).onChange(async value=>{pluginSettings.copyLink.links=value,await this.plugin.saveSettings()})}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.copyLink.linkPathRemover.title")).setDesc(instance.t("settings.plugin.copyLink.linkPathRemover.desc")).addText(text=>{text.setPlaceholder("docs").setValue(pluginSettings.copyLink.removePart.join(", ")).onChange(async value=>{pluginSettings.copyLink.removePart=value.split(/[,\n]\s*/).map(item=>item.trim()).filter(item=>item.length>0),await this.plugin.saveSettings()})}),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.plugin.copyLink.toUri.title")).setDesc(instance.t("settings.plugin.copyLink.toUri.desc")).addToggle(toggle=>toggle. Line truncated
<p>${instance.t("settings.help.frontmatter.desc")}</p>
<p>${instance.t("settings.help.frontmatter.nestedKey")} <code>key.subkey: value</code>.</p>`);this.settingsPage.appendChild(dom),this.settingsPage.createEl("pre",{cls:"language-yaml"}).createEl("code",{text:KeyBasedOnSettings(this.settings),cls:"language-yaml"}),this.settingsPage.appendChild(help(this.settings)),this.settingsPage.createEl("hr"),new import_obsidian35.Setting(this.settingsPage).setName(instance.t("settings.help.multiRepoHelp.title")).setHeading(),this.settingsPage.appendChild(multipleRepoExplained(this.settings)),this.settingsPage.appendChild(supportMe())}copy(object){try{return klona(object)}catch{this.plugin.console.debug("error with stringify for",object)}}};var Enveloppe=class extends import_obsidian36.Plugin{settings;branchName="";repositoryFrontmatter={};console;getTitleFieldForCommand(file,frontmatter){return regexOnFileName(getTitleField(frontmatter,file,this.settings),this.settings)}async chargeAllCommands(repo,plugin,autoClean){plugin.settings.plugin.copyLink.addCmd&&this.addCommand(await createLinkCallback(repo,this)),this.addCommand(await shareOneNoteCallback(repo,this)),(autoClean||plugin.settings.upload.autoclean.enable)&&this.addCommand(await purgeCallback(this,repo,this.branchName)),this.addCommand(await uploadAllNotesCallback(this,repo,this.branchName)),this.addCommand(await uploadNewNotesCallback(this,repo,this.branchName)),this.addCommand(await uploadAllEditedNotesCallback(this,repo,this.branchName)),this.addCommand(await shareEditedOnlyCallback(repo,this.branchName,this)),this.addCommand(await checkRepositoryValidityCallback(this,repo))}cleanSpecificCommands(repo){let allCommands=this.app.commands.listCommands();for(let command of allCommands)if(command.id.startsWith("obsidian-mkdocs-publisher")){let publisherCmDsName=command.id.replace("obsidian-mkdocs-publisher:","").split("-"),repoCmd=publisherCmDsName[publisherCmDsName.length-1];repoCmd.startsWith("K")&&repo.smartKey===repoCmd.replace("K","")&&this.app.commands.removeCommand(command.id)}}cleanOldCommands(){let allRepo=this.settings.github?.otherRepo??[],allCommands=this.app.commands.listCommands();for(let command of allCommands)if(command.id.startsWith("obsidian-mkdocs-publisher")){let commandName=command.id.replace("obsidian-mkdocs-publisher:",""),repoCmd=commandName.split("-")[commandName.split("-").length-1];repoCmd.startsWith("K")&&allRepo.findIndex(repo=>repo.smartKey===repoCmd.replace("K",""))===-1&&this.app.commands.removeCommand(command.id),!this.settings.upload.autoclean.enable&&commandName==="delete-clean"&&this.app.commands.removeCommand(command.id)}}async reloadCommands(useDefaultRepo,autoClean){let newRepo=this.settings.github?.otherRepo??[];this.cleanOldCommands(),useDefaultRepo&&await this.chargeAllCommands(null,this,autoClean);for(let repo of newRepo)repo.createShortcuts?await this.chargeAllCommands(repo,this):this.cleanSpecificCommands(repo)}async loadToken(repo){repo=="default"&&(repo=void 0);let tokenPath=createTokenPath(this,this.settings.github.tokenPath);if(!await this.app.vault.adapter.exists(`${tokenPath}`))return"";try{let tokenFile=await this.app.vault.adapter.read(`${tokenPath}`);if(tokenPath.endsWith(".json")){let tokenJson=JSON.parse(tokenFile),defaultToken=tokenJson.GITHUB_PUBLISHER_TOKEN;return repo?tokenJson.GITHUB_PUBLISHER_REPOS?.[repo]??defaultToken:defaultToken}if(tokenFile){let defaultToken=tokenFile.split(`
`).find(line=>line.startsWith("GITHUB_TOKEN"))?.split("=")[1]??"";return repo?tokenFile.split(`
`).find(line=>line.startsWith(`${repo}_TOKEN`))?.split("=")[1]??defaultToken:defaultToken}}catch(e){return this.console.error(e),""}return""}async reloadOctokit(repo){let apiSettings=this.settings.github.api,token=await this.loadToken(repo),octokit=apiSettings.tiersForApi==="Enterprise"&&apiSettings.hostname.length>0?new Octokit({baseUrl:`${apiSettings.hostname}/api/v3`,auth:token}):new Octokit({auth:token});return new GithubBranch(octokit,this)}async onload(){await instance.init({lng:translationLanguage,fallbackLng:"en",resources,returnNull:!1,returnEmptyString:!1}),await this.loadSettings(),this.console=new Logs(this),this.console.info(dedent_default(`[Obsidian Enveloppe] v.${this.manifest.version} (lang: ${translationLanguage}) loaded.
* You can hide HTTP logs in the console with checking the "Hide network" in the console settings.
* See here: https://developer.chrome.com/docs/devtools/console/reference#network`)),await this.console.createLogFile(),!this.settings.plugin.dev&&await this.app.vault.adapter.exists((0,import_obsidian36.normalizePath)(`${this.manifest.dir}/logs.txt`))&&await this.app.vault.adapter.remove((0,import_obsidian36.normalizePath)(`${this.manifest.dir}/logs.txt`));let oldSettings=this.settings;if(await migrateSettings(oldSettings,this),this.branchName=`${this.app.vault.getName().replaceAll(" ","-").replaceAll(".","-")}-${new Date().toLocaleDateString("en-US").replace(/\//g,"-")}`,this.addSettingTab(new EnveloppeSettingsTab(this.app,this,this.branchName)),!this.settings.github.verifiedRepo&&await this.loadToken()!==""){let octokit=await this.reloadOctokit();this.settings.github.verifiedRepo=await checkRepositoryValidity(octokit,null,null,!0),this.settings.github.rateLimit=await verifyRateLimitAPI(octokit.octokit,this,!1),await this.saveSettings()}for(let repository of this.settings.github.otherRepo){if(!repository.verifiedRepo&&await this.loadToken(repository.smartKey)!==""){let repoOctokit=await this.reloadOctokit(repository.smartKey);repository.verifiedRepo=await checkRepositoryValidity(repoOctokit,repository,null,!1),repository.rateLimit=await verifyRateLimitAPI(repoOctokit.octokit,this)}if(repository.set){let file=this.app.vault.getAbstractFileByPath(repository.set);if(file&&file instanceof import_obsidian36.TFile){let frontmatter=this.app.metadataCache.getFileCache(file)?.frontmatter;frontmatter&&(this.repositoryFrontmatter[repository.smartKey]=frontmatter)}}}await this.saveSettings(),this.registerEvent(this.app.workspace.on("file-menu",(menu,folder)=>{this.settings.plugin.fileMenu&&folder instanceof import_obsidian36.TFolder?addMenuFolder(menu,folder,this.branchName,this):folder instanceof import_obsidian36.TFile&&addMenuFile(this,folder,this.branchName,menu)})),this.registerEvent(this.app.workspace.on("editor-menu",(menu,_editor,view)=>{view.file&&addMenuFile(this,view.file,this.branchName,menu)})),await this.chargeAllCommands(null,this),this.addCommand({id:"check-rate-limit",name:instance.t("commands.checkValidity.rateLimit.command"),callback:async()=>{let octokit=await this.reloadOctokit();this.settings.github.rateLimit=await verifyRateLimitAPI(octokit.octokit,this),await this.saveSettings()}}),this.settings.github.otherRepo.length>0&&this.addCommand({id:"run-cmd-for-repo",name:instance.t("commands.runOtherRepo.title"),callback:async()=>{new ChooseWhichRepoToRun(this.app,this,this.branchName).open()}});let repoWithShortcuts=this.settings.github.otherRepo.filter(repo=>repo.createShortcuts);for(let repo of repoWithShortcuts)await this.chargeAllCommands(repo,this);this.addCommand(refreshOpenedSet(this)),this.addCommand(refreshAllSets(this)),window.addEventListener("unhandledrejection",this.unhandledRejectionListener),window.addEventListener("error",this.errorListener)}unhandledRejectionListener(e){e?.reason?.stack?.includes(this.manifest.id)&&this.console.writeToLog(e,"fatal")}errorListener(e){e?.error?.stack?.includes(this.manifest.id)&&this.console.writeToLog(e,"error")}onunload(){this.console.warn("[Obsidian Enveloppe] Unloaded"),window.removeEventListener("unhandledrejection",this.unhandledRejectionListener),window.removeEventListener("error",this.errorListener)}async loadSettings(){let loadedData=await this.loadData();try{this.settings=merge2(DEFAULT_SETTINGS,loadedData)}catch{console.warn("[Obsidian Enveloppe] Error while deep merging settings, using default loading method"),this.settings=Object.assign({},DEFAULT_SETTINGS,await this.loadData())}}async saveSettings(){await this.saveData(this.settings)}};
/**
* The majority of the code was taken from obsidian-easy-bake
* @credit mgmeyers
* @source https://github.com/mgmeyers/obsidian-easy-bake
* @license GPL-3.0
* Each function is modified to fit the needs of this plugin, but citation are done in the code for each function
*/
/* nosourcemap */
@@ -0,0 +1,12 @@
{
"id": "obsidian-mkdocs-publisher",
"name": "Enveloppe",
"version": "7.6.3",
"minAppVersion": "0.15.4",
"description": "Enveloppe helps you to publish your notes on a preconfigured GitHub repository, for free, and more!",
"author": "Mara-Li",
"authorUrl": "https://github.com/enveloppe",
"fundingUrl": "https://ko-fi.com/mara__li",
"isDesktopOnly": false,
"helpUrl": "https://enveloppe.github.io/"
}
@@ -0,0 +1 @@
:root{--main-success: #5caf1a}.enveloppe.modals .setting-item.entry{border:0!important;padding:5px!important}.setting-item-control.regex{gap:0}hr.enveloppe-hr{margin:1px!important;padding-bottom:1px}.enveloppe.modals .setting-item.entry input{width:38%;margin:0 2px}.enveloppe.modals .setting-item.entry .setting-item-info{display:none}.enveloppe.modals .clickable-icon.setting-editor-extra-setting-button.is-disabled.padding-0{opacity:.1}.enveloppe .no-margin{margin:0}.enveloppe .setting-item.import-export{padding-bottom:10px}.enveloppe-export-import>.setting-item-info{display:flex;flex-direction:row;gap:4px;overflow:hidden;padding:0}.setting-item.enveloppe-export-import>.setting-item-control{padding-bottom:10px}.enveloppe-import-error{display:none;color:var(--text-error)}.enveloppe-import-error.active{display:block}.enveloppe.modals .error{border-color:var(--text-error);box-shadow:0 0 0 1px var(--text-error)}.enveloppe.modals .padding-0{padding:0}.modal:has(.enveloppe.modals.manage-repo.edit){width:100%}.enveloppe.modals.manage-repo .no-display .setting-item-control:has(.mod-cta){margin:0 100% 5px 0}.enveloppe-import-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.enveloppe-import-label,a.enveloppe-copy,a.enveloppe-download{color:var(--text-normal);font-size:var(--font-ui-small);border-radius:var(--button-radius);border:0;padding:var(--size-4-1) var(--size-4-3);font-weight:var(--input-font-weight);font-family:inherit;cursor:pointer;background-color:var(--interactive-normal);box-shadow:var(--input-shadow);text-align:center;white-space:nowrap;text-decoration:none;transition:background-color .1s ease,box-shadow .1s ease}.enveloppe-import-label:hover,a.enveloppe-copy:hover,a.enveloppe-download:hover{background-color:var(--interactive-hover);box-shadow:var(--input-shadow-hover)}.enveloppe-import-save-button{text-align:center;width:100%}.enveloppe-copy,.enveloppe-download{position:relative;display:inline-block;margin-left:10px}.enveloppe.modals h1,.enveloppe.modals h2,.enveloppe.modals h3,.enveloppe.modals h4,.enveloppe.modals h5,.enveloppe.modals h6{margin-top:0;margin-bottom:0}.enveloppe-copy:before{color:var(--interactive-success);content:"\2713";position:absolute;left:-18px;font-weight:700;opacity:0;transition:.15s opacity ease-in-out}.enveloppe-copy.success:before{opacity:1}.enveloppe-export-textarea,.enveloppe-import-textarea{width:100%;height:200px;font-family:var(--font-monospace);font-size:14px}.enveloppe{-webkit-user-select:text;-moz-user-select:text;user-select:text}.enveloppe textarea{width:250px;height:100px}.enveloppe .mini textarea{height:50px}.enveloppe .border-bottom{border-bottom:1px solid var(--background-modifier-border);padding-bottom:10px}.enveloppe .mini textarea{width:100%;height:50px}.enveloppe .mid-height{height:50%}.enveloppe .bake ul{margin-top:0}.enveloppe .settings-tab-bar{display:flex;flex-direction:row;gap:4px;overflow:hidden;padding:0}.enveloppe .settings-tab{padding:10px;border:1px solid var(--background-modifier-border);border-radius:5px}.enveloppe .settings-tab:hover{background-color:var(--background-modifier-hover)}@media screen and (max-width: 900px){.enveloppe .settings-tab-bar{flex-direction:column;width:100%}.setting-item.import-export>.setting-item-control{display:grid;grid-template-columns:1fr;justify-content:start}.setting-item.import-export{display:grid}a.enveloppe-copy+button{height:10%}.enveloppe .connect-button{margin:0!important}}@media screen and (max-width: 1200px){.enveloppe .settings-tab-bar{flex-wrap:wrap}.enveloppe .settings-tab{border-bottom:1px solid var(--background-modifier-border)}.enveloppe .settings-tab-bar{border-bottom:0}.enveloppe.manage-repo button.connect{margin:0!important}}.enveloppe.manage-repo button.connect{margin:0 50%}.enveloppe .settings-tab-active{background-color:var(--color-accent);color:var(--text-on-accent);border:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.enveloppe .settings-tab-name{font-weight:700;text-align:center}.enveloppe .settings-tab-icon{text-align:center}span.enveloppe.icons{vertical-align:middle;position:relative;padding-right:5px}.enveloppe .settings-tab-page>.setting-item:first-child{margin-top:15px}.enveloppe .settings-tab-page h5{margin-bottom:10px!important}.settings-tab-page code,.enveloppe.list-changed code.code-title,.code{color:var(--code-normal);font-family:var(--font-monospace);background-color:var(--color-background);border-radius:var(--radius-s);font-size:var(--code-size)}.enveloppe.list-changed .settings-tab-page code.code-title,.settings-tab-page code.code-title{font-size:calc(var(--code-size) * 12px);font-weight:bolder;text-decoration:underline}.enveloppe .setting-item.title input[type=text][placeholder=title]{width:100%}.enveloppe .setting-item.no-display>.setting-item-info{display:none}.enveloppe button.max-width{width:100%}.enveloppe.enveloppe.modals.regex.file-path-name .disabled{pointer-events:none;opacity:.5;font-style:italic;color:var(--text-muted)Line truncated
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "obsidian-to-notion",
"name": "Obsidian shared to Notion",
"version": "0.7.6",
"minAppVersion": "0.0.1",
"description": "This is a plugin for Obsidian. This plugin share obsidian md file to notion with notion api",
"author": "Easychris",
"authorUrl": "https://github.com/EasyChris/obsidian-to-notion",
"isDesktopOnly": false
}
+419
View File
@@ -0,0 +1,419 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// main.ts
var main_exports = {};
__export(main_exports, {
default: () => ObsiusPlugin
});
module.exports = __toCommonJS(main_exports);
var import_obsidian2 = require("obsidian");
// src/http.ts
async function http_default(method, url, data = null) {
const headers = new Headers({
Accept: "application/json"
});
if (data) {
headers.set("Content-Type", "application/json");
}
const resp = await fetch(url, {
method,
headers,
...data ? { body: JSON.stringify(data) } : {}
});
if (!resp.ok) {
throw new Error(
`Request failed: ${resp.status} - ${await resp.text()}`
);
}
return resp.headers.get("Content-Type") == "application/json" ? await resp.json() : null;
}
// src/obsius.ts
var baseUrl = "https://obsius.site";
var obsiusWrapper = {
async createPost(title, content) {
return http_default("POST", `${baseUrl}/`, { title, content });
},
async updatePost(id, secret, title, content) {
return http_default("PUT", `${baseUrl}/${id}`, {
secret,
title,
content
});
},
async deletePost(id, secret) {
return http_default("DELETE", `${baseUrl}/${id}`, { secret });
}
};
async function createClient(loadData, saveData) {
const data = await loadData();
return {
data() {
return data;
},
async publishPost(file) {
if (data.posts[file.path]) {
await this.updatePost(file);
return null;
} else {
return await this.createPost(file);
}
},
async createPost(file) {
const title = file.basename;
const content = await file.vault.read(file);
try {
const resp = await obsiusWrapper.createPost(title, content);
data.posts[file.path] = {
id: resp.id,
secret: resp.secret
};
await saveData(data);
return `${baseUrl}/${resp.id}`;
} catch (e) {
console.error(e);
throw new Error("Failed to create post");
}
},
getUrl(file) {
const post = data.posts[file.path];
if (!post) {
return null;
}
return `${baseUrl}/${post.id}`;
},
async updatePost(file) {
const post = data.posts[file.path];
const title = file.basename;
const content = await file.vault.read(file);
try {
await obsiusWrapper.updatePost(
post.id,
post.secret,
title,
content
);
} catch (e) {
console.error(e);
throw new Error("Failed to update post");
}
},
async deletePost(file) {
const post = data.posts[file.path];
try {
await obsiusWrapper.deletePost(post.id, post.secret);
delete data.posts[file.path];
await saveData(data);
} catch (e) {
console.error(e);
throw new Error("Failed to delete post");
}
},
async handleNoteRename(file, oldPath) {
if (data.posts[oldPath]) {
data.posts[file.path] = data.posts[oldPath];
delete data.posts[oldPath];
await saveData(data);
}
},
async handleNoteDelete(file) {
if (data.posts[file.path]) {
delete data.posts[file.path];
await saveData(data);
}
}
};
}
// src/text.ts
function flatten(obj) {
const result = {};
for (const key of Object.keys(obj)) {
const value = obj[key];
if (typeof value === "string") {
result[key] = value;
} else {
const inner = flatten(value);
for (const innerKey of Object.keys(inner)) {
result[`${key}.${innerKey}`] = inner[innerKey];
}
}
}
return result;
}
var strings = flatten({
serviceName: "Obsius",
actions: {
create: {
name: "Publish to Obsius",
success: "Note published to Obsius. URL copied to clipboard.",
failure: "Failed to publish note to Obsius"
},
update: {
name: "Update in Obsius",
success: "Updated note in Obsius. It may take a little while before update becomes visible.",
failure: "Failed to update note in Obsius"
},
copyUrl: {
name: "Copy Obsius URL",
success: "Obsius URL copied to clipboard",
failure: "Note not yet published"
},
remove: {
name: "Remove from Obsius",
success: "Note removed from Obsius",
failure: "Failed to remove note form Obsius"
},
listPosts: {
name: "View published posts",
title: "Published posts",
showFile: "View file",
showPost: "View post"
}
},
modals: {
showUrl: {
title: "Note published at:",
copy: "Copy URL"
}
}
});
function getText(path, ...args) {
const value = strings[path];
if (value !== void 0) {
if (args.length) {
return `${value}: ${args.join(", ")}`;
}
return value;
}
return path;
}
// src/modals.ts
var import_obsidian = require("obsidian");
var PublishedPostsModal = class extends import_obsidian.Modal {
constructor(app, obsiusClient) {
super(app);
this.obsiusClient = obsiusClient;
}
onOpen() {
this.contentEl.createEl("h1", {
text: getText("actions.listPosts.title")
});
for (const [path] of Object.entries(this.obsiusClient.data().posts)) {
const file = this.app.vault.getAbstractFileByPath(path);
if (!(file instanceof import_obsidian.TFile)) {
continue;
}
const container = this.contentEl.createEl("div", {
cls: ["published-posts-modal", "list-item-container"]
});
container.createEl("span", { text: path });
const buttonContainer = container.createEl("div");
const showFile = buttonContainer.createEl("button", {
title: getText("actions.listPosts.showFile")
});
showFile.addEventListener(
"click",
() => this.app.workspace.openLinkText(path, path).then(() => this.close())
);
(0, import_obsidian.setIcon)(showFile, "file-text");
const fileUrl = this.obsiusClient.getUrl(file);
if (fileUrl) {
const webLink = buttonContainer.createEl("a", {
cls: "hidden",
href: fileUrl
});
const showPost = buttonContainer.createEl("button");
showPost.addEventListener("click", () => {
webLink.click();
this.close();
});
(0, import_obsidian.setIcon)(showPost, "globe");
}
}
}
onClose() {
this.contentEl.empty();
}
};
// main.ts
var ObsiusPlugin = class extends import_obsidian2.Plugin {
async onload() {
this.obsiusClient = await createClient(
async () => ({
posts: {},
...await this.loadData()
}),
async (data) => await this.saveData(data)
);
this.addObsiusCommands();
this.registerFileMenuEvent();
this.registerVaultEvents();
}
onunload() {
}
addObsiusCommands() {
this.addCommand({
id: "obsius.action.listPosts",
name: getText("actions.listPosts.name"),
callback: () => this.showPublishedPosts()
});
this.addCommand({
id: "obsius.action.create",
name: getText("actions.create.name"),
editorCheckCallback: (checking, _, view) => {
if (!(view.file instanceof import_obsidian2.TFile)) {
return false;
}
if (checking) {
return !this.obsiusClient.getUrl(view.file);
}
this.publishFile(view.file);
}
});
this.addCommand({
id: "obsius.action.update",
name: getText("actions.update.name"),
editorCheckCallback: (checking, _, view) => {
if (!(view.file instanceof import_obsidian2.TFile)) {
return false;
}
if (checking) {
return !!this.obsiusClient.getUrl(view.file);
}
this.updateFile(view.file);
}
});
this.addCommand({
id: "obsius.action.copyUrl",
name: getText("actions.copyUrl.name"),
editorCheckCallback: (checking, _, view) => {
if (!(view.file instanceof import_obsidian2.TFile)) {
return false;
}
if (checking) {
return !!this.obsiusClient.getUrl(view.file);
}
this.copyUrl(view.file);
}
});
this.addCommand({
id: "obsius.action.remove",
name: getText("actions.remove.name"),
editorCheckCallback: (checking, _, view) => {
if (!(view.file instanceof import_obsidian2.TFile)) {
return false;
}
if (checking) {
return !!this.obsiusClient.getUrl(view.file);
}
this.deleteFile(view.file);
}
});
}
registerFileMenuEvent() {
this.registerEvent(
this.app.workspace.on("file-menu", (menu, file) => {
if (file instanceof import_obsidian2.TFile) {
menu.addSeparator();
if (!this.obsiusClient.getUrl(file)) {
menu.addItem(
(item) => item.setTitle(getText("actions.create.name")).setIcon("up-chevron-glyph").onClick(() => this.publishFile(file))
);
} else {
menu.addItem(
(item) => item.setTitle(getText("actions.update.name")).setIcon("double-up-arrow-glyph").onClick(() => this.updateFile(file))
).addItem(
(item) => item.setTitle(getText("actions.copyUrl.name")).setIcon("link").onClick(() => this.copyUrl(file))
).addItem(
(item) => item.setTitle(getText("actions.remove.name")).setIcon("cross").onClick(() => this.deleteFile(file))
);
}
menu.addSeparator();
}
})
);
}
registerVaultEvents() {
this.registerEvent(
this.app.vault.on("rename", (file, oldPath) => {
if (file instanceof import_obsidian2.TFile) {
this.obsiusClient.handleNoteRename(file, oldPath);
}
})
);
this.registerEvent(
this.app.vault.on("delete", (file) => {
if (file instanceof import_obsidian2.TFile) {
this.obsiusClient.handleNoteDelete(file);
}
})
);
}
showPublishedPosts() {
new PublishedPostsModal(this.app, this.obsiusClient).open();
}
async publishFile(file) {
try {
const url = await this.obsiusClient.createPost(file);
await navigator.clipboard.writeText(url);
new import_obsidian2.Notice(getText("actions.create.success"));
} catch (e) {
console.error(e);
new import_obsidian2.Notice(getText("actions.create.failure"));
}
}
async updateFile(file) {
try {
await this.obsiusClient.updatePost(file);
new import_obsidian2.Notice(getText("actions.update.success"));
} catch (e) {
console.error(e);
new import_obsidian2.Notice(getText("actions.update.failure"));
}
}
async copyUrl(file) {
const url = this.obsiusClient.getUrl(file);
if (url) {
await navigator.clipboard.writeText(url);
new import_obsidian2.Notice(getText("actions.copyUrl.success"));
} else {
new import_obsidian2.Notice(getText("actions.copyUrl.failure"));
}
}
async deleteFile(file) {
try {
await this.obsiusClient.deletePost(file);
new import_obsidian2.Notice(getText("actions.remove.success"));
} catch (e) {
console.error(e);
new import_obsidian2.Notice(getText("actions.remove.failure"));
}
}
};
/* nosourcemap */
+11
View File
@@ -0,0 +1,11 @@
{
"id": "obsius-publish",
"name": "Obsius Publish",
"version": "1.4.0",
"minAppVersion": "0.12.0",
"description": "Make single notes instantly available on the web.",
"author": "Jon Grythe Stødle",
"authorUrl": "https://jonstodle.com",
"fundingUrl": "https://ko-fi.com/jonstodle",
"isDesktopOnly": false
}
+18
View File
@@ -0,0 +1,18 @@
.published-posts-modal.list-item-container {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: .75em 0 calc(.75em + 1px);
}
.published-posts-modal.list-item-container:not(:last-child) {
border-bottom: rgba(128, 128, 128, .5) solid 1px;
}
.published-posts-modal.list-item-container button {
margin-left: .5em;
}
.hidden {
display: none;
}
+4 -8
View File
@@ -1,5 +1,9 @@
{
"recentFiles": [
{
"basename": "iKnowdge知识库分类",
"path": "05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类.xmind"
},
{
"basename": "知识库总体框架",
"path": "05-我的知识库/051-知识库框架/知识库总体框架.md"
@@ -191,14 +195,6 @@
{
"basename": "Zinc 全文搜索引擎Elasticsearch轻量级替代品_elasticsearch 替代-CSDN博客",
"path": "20-我的收藏夹/21-浏览器收藏/硬软件评测/elasticsearch/Zinc 全文搜索引擎Elasticsearch轻量级替代品_elasticsearch 替代-CSDN博客.md"
},
{
"basename": "如何在 MacOS 上安装 Elasticsearch - 知乎",
"path": "20-我的收藏夹/21-浏览器收藏/硬软件评测/elasticsearch/如何在 MacOS 上安装 Elasticsearch - 知乎.md"
},
{
"basename": "牛逼,比ElasticSearch更容易接入使用的搜索引擎 - 知乎",
"path": "20-我的收藏夹/21-浏览器收藏/硬软件评测/elasticsearch/牛逼,比ElasticSearch更容易接入使用的搜索引擎 - 知乎.md"
}
],
"omittedPaths": [],
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "share-to-notionnext",
"name": "Share to NotionNext",
"version": "2.5.0",
"minAppVersion": "0.0.1",
"description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, originally created by EasyChris/obsidian-to-notion.",
"author": "EasyChris, jxpeng98",
"authorUrl": "https://github.com/jxpeng98",
"isDesktopOnly": false
}
+1 -1
View File
@@ -287,5 +287,5 @@
"myMusicFolderPath": "/Users/chengang/RMVolumes/DrivesM1/本地磁盘/SNAS8466/usbshare3/myMusic/歌曲分类/钢琴专辑/天园音乐MP3/湖边",
"reindexFrequency": "15",
"myMusicShuffle": false,
"currentTrackIndex": 34
"currentTrackIndex": 41
}
+3
View File
@@ -0,0 +1,3 @@
"use strict";var e=require("obsidian");class t{channel=new MessageChannel;channelSetupPromise;eventIndex=0;handlers={};constructor(e,t="*"){const n=e.getIframe();if(n.hasAttribute("data-event-channel-setup"))throw new Error("An embed viewer instance already initialized on the iframe!");n.setAttribute("data-event-channel-setup","true"),this.channelSetupPromise=(async()=>{await new Promise((e=>{n.addEventListener("load",(()=>{this.channel.port1.start();const s=t=>{const[n]=t.data;"channel-ready"===n&&(t.preventDefault(),this.channel.port1.removeEventListener("message",s),this.channel.port1.addEventListener("message",this.eventDispatcher.bind(this)),e(void 0))};this.channel.port1.addEventListener("message",s),n.contentWindow?.postMessage(["setup-channel",{port:this.channel.port2}],t||"*",[this.channel.port2])}))}))})()}eventDispatcher(e){const[t,n,s]=e.data||[];"event"===t&&n&&this.handlers[n]&&this.handlers[n].forEach((e=>e(s)))}addEventListener(e,t){this.handlers[e]=this.handlers[e]||[],this.handlers[e].includes(t)||this.handlers[e].push(t)}removeEventListener(e,t){if(!this.handlers[e])return;const n=this.handlers[e].findIndex((e=>e===t));this.handlers[e].splice(n,1)}async emit(e,t){await this.channelSetupPromise;const n="xmind-embed-viewer#"+this.eventIndex++;await new Promise((s=>{const r=e=>{const[t,i]=e.data;t===n&&(this.channel.port1.removeEventListener("message",r),s(i))};this.channel.port1.addEventListener("message",r),this.channel.port1.postMessage([e,t,n])}))}}class n{iframe;constructor(e,t){let n;const s="string"==typeof e?document.querySelector(e):e;if(null===s)throw new Error("IFrame or mount element not found by selector "+e);s instanceof HTMLIFrameElement?n=s:(n=document.createElement("iframe"),s.appendChild(n)),n.setAttribute("frameborder","0"),n.setAttribute("scrolling","no"),n.setAttribute("allowfullscreen","true"),n.setAttribute("allow","allowfullscreen"),n.setAttribute("crossorigin","anonymous"),n.setAttribute("src",t),this.iframe=n}getIframe(){return this.iframe}setStyles(e){const t=this.getIframe();for(const[n,s]of Object.entries(e))t.style[n]=s}}class s{iframeController;iframeEventChannelController;internalState={sheets:[],zoomScale:100,currentSheetId:""};region;constructor(e){const{file:s,el:r,region:i="global",styles:a={height:"350px",width:"750px"},isPitchModeDisabled:l}=e,o="cn"===i?"www.xmind.cn":"www.xmind.app",h=new n(r,`https://${o}/embed-viewer${l?"?pitch-mode=disabled":""}`),c=new t(h,`https://${o}`);this.iframeController=h,this.iframeEventChannelController=c,this.region=i,c.addEventListener("sheet-switch",(e=>this.internalState.currentSheetId=e)),c.addEventListener("zoom-change",(e=>this.internalState.zoomScale=e)),c.addEventListener("sheets-load",(e=>this.internalState.sheets=e)),this.iframeController.setStyles(a),s&&this.load(s)}addEventListener(e,t){this.iframeEventChannelController.addEventListener(e,t)}removeEventListener(e,t){this.iframeEventChannelController.removeEventListener(e,t)}setStyles(e){this.iframeController.setStyles(e)}load(e){this.iframeEventChannelController.emit("open-file",e)}setZoomScale(e){this.iframeEventChannelController.emit("zoom",e)}setFitMap(){this.iframeEventChannelController.emit("fit-map")}switchSheet(e){this.iframeEventChannelController.emit("switch-sheet",e)}get zoom(){return this.internalState.zoomScale}get sheets(){return JSON.parse(JSON.stringify(this.internalState.sheets))}get currentSheetId(){return this.internalState.currentSheetId}}class r extends e.FileView{plugin;styles;constructor(e,t,n){super(e),this.app=t,this.plugin=n,this.styles={width:"100%",height:"100%",border:"none"}}getViewType(){return"xmind-viewer"}getIcon(){return"brain"}getDisplayText(){return this.file?`XMind view: ${this.file.basename}`:"No file open"}async onLoadFile(e){const t=await this.app.vault.readBinary(e);new s({el:this.contentEl,file:t,region:"global",styles:this.styles})}}const i="xmind-viewer";class a extends e.Plugin{onload(){this.registerView(i,(e=>new r(e,this.app,this))),this.registerExtensions(["xmind"],i)}}module.exports=a;
/* nosourcemap */
+10
View File
@@ -0,0 +1,10 @@
{
"id": "xmind-viewer",
"name": "XMind Viewer",
"version": "0.1.0",
"minAppVersion": "1.6.5",
"author": "Sentiago",
"authorUrl": "https://github.com/Ssentiago",
"description": "Integrate viewing of your XMind files",
"isDesktopOnly": false
}
+3
View File
@@ -0,0 +1,3 @@
.obsidian{
}
+13 -16
View File
@@ -18,17 +18,15 @@
}
},
{
"id": "7e041dc1ba4b1562",
"id": "77e01d487d2b8a89",
"type": "leaf",
"state": {
"type": "markdown",
"type": "xmind-viewer",
"state": {
"file": "05-我的知识库/051-知识库框架/知识库总体框架.md",
"mode": "source",
"source": false
"file": "05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类.xmind"
},
"icon": "lucide-file",
"title": "知识库总体框架"
"icon": "brain",
"title": "XMind view: iKnowdge知识库分类"
}
}
],
@@ -173,13 +171,13 @@
"state": {
"type": "outline",
"state": {
"file": "05-我的知识库/051-知识库框架/知识库总体框架.md",
"file": "05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类.xmind",
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "知识库总体框架 的大纲"
"title": "iKnowdge知识库分类 的大纲"
}
},
{
@@ -203,10 +201,10 @@
"state": {
"type": "file-properties",
"state": {
"file": "05-我的知识库/051-知识库框架/知识库总体框架.md"
"file": "05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类.xmind"
},
"icon": "lucide-info",
"title": "知识库总体框架的笔记属性"
"title": "iKnowdge知识库分类的笔记属性"
}
},
{
@@ -328,13 +326,14 @@
"meld-encrypt:Decrypt at Cursor": false
}
},
"active": "7e041dc1ba4b1562",
"active": "77e01d487d2b8a89",
"lastOpenFiles": [
"00-待办计划/2025-07 待办事宜.md",
"05-我的知识库/051-知识库框架/知识库总体框架.md",
"05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类.xmind",
"05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类 1.xmind",
"00-待办计划/2025-07 待办事宜.md",
"07-个人事务/072-各种密码/房门密码.md",
"08-Inbox/SMM-2025-07-19-17-38-53.smm",
"05-我的知识库/051-知识库框架/assets/iKnowdge知识库分类.xmind",
"05-我的知识库/051-知识库框架/assets",
"30-RSS/RSS阅读/阅读样本.md",
"30-RSS/网文精选/从皮甲到铁铠:蒙古战马的防护升级与骑兵巅峰.md",
@@ -361,12 +360,10 @@
"README.md",
"05-我的知识库/051-知识库框架",
"未命名",
"05-我的知识库",
"08-Inbox/README.md",
"08-Inbox/mindmapex.md",
"10-WebClipper/Obsidian笔记多端同步解决办法 | DiyBeta's Blog.md",
"03-学习笔记/Calibre电子书平台.md",
"03-学习笔记/未命名.md",
"08-Inbox/assets/68691ee74ca1b.png",
"50-Memos/2025/07/resources/kyhNGvh5iFc9eYXy2YuYWx_FDF8C04E-22D3-4D4C-9ED0-F52A326B9801.jpg",
"10-WebClipper/assets/v2-49c23c0bdb6679a1a18b98461e669fc6_1440w.png",
@@ -1,5 +1 @@
![[assets/iKnowdge知识库分类.xmind]]
- 如何将xmind嵌入笔记本中
-[ ](/assets/)