@activepieces/piece-slack 0.17.7 → 0.17.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +44 -44
package/src/index.js CHANGED
@@ -1,77 +1,77 @@
1
- "use strict";var tO=Object.create;var vi=Object.defineProperty;var rO=Object.getOwnPropertyDescriptor;var nO=Object.getOwnPropertyNames;var iO=Object.getPrototypeOf,oO=Object.prototype.hasOwnProperty;var i=(e,t)=>vi(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Fp=(e,t)=>{for(var r in t)vi(e,r,{get:t[r],enumerable:!0})},Bp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nO(t))!oO.call(e,o)&&o!==r&&vi(e,o,{get:()=>t[o],enumerable:!(n=rO(t,o))||n.enumerable});return e};var B=(e,t,r)=>(r=e!=null?tO(iO(e)):{},Bp(t||!e||!e.__esModule?vi(r,"default",{value:e,enumerable:!0}):r,e)),aO=e=>Bp(vi({},"__esModule",{value:!0}),e);var cm=b((lm,Qo)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${a})?$`,"i")};function l(d,h){if(d.indexOf("::")!==d.lastIndexOf("::"))return null;let _=0,v=-1,y=(d.match(u.zoneIndex)||[])[0],w,S;for(y&&(y=y.substring(1),d=d.replace(/%.+$/,""));(v=d.indexOf(":",v+1))>=0;)_++;if(d.substr(0,2)==="::"&&_--,d.substr(-2,2)==="::"&&_--,_>h)return null;for(S=h-_,w=":";S--;)w+="0:";return d=d.replace("::",w),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),h=(function(){let O=d.split(":"),F=[];for(let M=0;M<O.length;M++)F.push(parseInt(O[M],16));return F})(),{parts:h,zoneId:y}}i(l,"expandIPv6");function p(d,h,_,v){if(d.length!==h.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let y=0,w;for(;v>0;){if(w=_-v,w<0&&(w=0),d[y]>>w!==h[y]>>w)return!1;v-=_,y+=1}return!0}i(p,"matchCIDR");function c(d){if(o.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(n.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}i(c,"parseIntAuto");function m(d,h){for(;d.length<h;)d=`0${d}`;return d}i(m,"padPart");let f={};f.IPv4=(function(){function d(h){if(h.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,v;for(_=0;_<h.length;_++)if(v=h[_],!(0<=v&&v<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=h}return i(d,"IPv4"),d.prototype.SpecialRanges={unspecified:[[new d([0,0,0,0]),8]],broadcast:[[new d([255,255,255,255]),32]],multicast:[[new d([224,0,0,0]),4]],linkLocal:[[new d([169,254,0,0]),16]],loopback:[[new d([127,0,0,0]),8]],carrierGradeNat:[[new d([100,64,0,0]),10]],private:[[new d([10,0,0,0]),8],[new d([172,16,0,0]),12],[new d([192,168,0,0]),16]],reserved:[[new d([192,0,0,0]),24],[new d([192,0,2,0]),24],[new d([192,88,99,0]),24],[new d([198,18,0,0]),15],[new d([198,51,100,0]),24],[new d([203,0,113,0]),24],[new d([240,0,0,0]),4]],as112:[[new d([192,175,48,0]),24],[new d([192,31,196,0]),24]],amt:[[new d([192,52,193,0]),24]]},d.prototype.kind=function(){return"ipv4"},d.prototype.match=function(h,_){let v;if(_===void 0&&(v=h,h=v[0],_=v[1]),h.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,h.octets,8,_)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,_=!1,v={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},y,w,S;for(y=3;y>=0;y-=1)if(w=this.octets[y],w in v){if(S=v[w],_&&S!==0)return null;S!==8&&(_=!0),h+=S}else return null;return 32-h},d.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return f.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d})(),f.IPv4.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),_=h[0].toByteArray(),v=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],w=0;for(;w<4;)y.push(parseInt(_[w],10)|parseInt(v[w],10)^255),w++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.isIPv4=function(d){return this.parser(d)!==null},f.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch{return!1}},f.IPv4.isValidCIDR=function(d){try{return this.parseCIDR(d),!0}catch{return!1}},f.IPv4.isValidFourPartDecimal=function(d){return!!(f.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},f.IPv4.isValidCIDRFourPartDecimal=function(d){let h=d.match(/^(.+)\/(\d+)$/);return!f.IPv4.isValidCIDR(d)||!h?!1:f.IPv4.isValidFourPartDecimal(h[1])},f.IPv4.networkAddressFromCIDR=function(d){let h,_,v,y,w;try{for(h=this.parseCIDR(d),v=h[0].toByteArray(),w=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],_=0;_<4;)y.push(parseInt(v[_],10)&parseInt(w[_],10)),_++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.parse=function(d){let h=this.parser(d);if(h===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(h)},f.IPv4.parseCIDR=function(d){let h;if(h=d.match(/^(.+)\/(\d+)$/)){let _=parseInt(h[2]);if(_>=0&&_<=32){let v=[this.parse(h[1]),_];return Object.defineProperty(v,"toString",{value:i(function(){return this.join("/")},"value")}),v}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},f.IPv4.parser=function(d){let h,_,v;if(h=d.match(r.fourOctet))return(function(){let y=h.slice(1,6),w=[];for(let S=0;S<y.length;S++)_=y[S],w.push(c(_));return w})();if(h=d.match(r.longValue)){if(v=c(h[1]),v>4294967295||v<0)throw new Error("ipaddr: address outside defined range");return(function(){let y=[],w;for(w=0;w<=24;w+=8)y.push(v>>w&255);return y})().reverse()}else return(h=d.match(r.twoOctet))?(function(){let y=h.slice(1,4),w=[];if(v=c(y[1]),v>16777215||v<0)throw new Error("ipaddr: address outside defined range");return w.push(c(y[0])),w.push(v>>16&255),w.push(v>>8&255),w.push(v&255),w})():(h=d.match(r.threeOctet))?(function(){let y=h.slice(1,5),w=[];if(v=c(y[2]),v>65535||v<0)throw new Error("ipaddr: address outside defined range");return w.push(c(y[0])),w.push(c(y[1])),w.push(v>>8&255),w.push(v&255),w})():null},f.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");let h=[0,0,0,0],_=0,v=Math.floor(d/8);for(;_<v;)h[_]=255,_++;return v<4&&(h[v]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},f.IPv6=(function(){function d(h,_){let v,y;if(h.length===16)for(this.parts=[],v=0;v<=14;v+=2)this.parts.push(h[v]<<8|h[v+1]);else if(h.length===8)this.parts=h;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(v=0;v<this.parts.length;v++)if(y=this.parts[v],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return i(d,"IPv6"),d.prototype.SpecialRanges={unspecified:[new d([0,0,0,0,0,0,0,0]),128],linkLocal:[new d([65152,0,0,0,0,0,0,0]),10],multicast:[new d([65280,0,0,0,0,0,0,0]),8],loopback:[new d([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new d([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new d([0,0,0,0,0,65535,0,0]),96],discard:[new d([256,0,0,0,0,0,0,0]),64],rfc6145:[new d([0,0,0,0,65535,0,0,0]),96],rfc6052:[new d([100,65435,0,0,0,0,0,0]),96],"6to4":[new d([8194,0,0,0,0,0,0,0]),16],teredo:[new d([8193,0,0,0,0,0,0,0]),32],benchmarking:[new d([8193,2,0,0,0,0,0,0]),48],amt:[new d([8193,3,0,0,0,0,0,0]),32],as112v6:[[new d([8193,4,274,0,0,0,0,0]),48],[new d([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new d([8193,16,0,0,0,0,0,0]),28],orchid2:[new d([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new d([8193,48,0,0,0,0,0,0]),28],reserved:[[new d([8193,0,0,0,0,0,0,0]),23],[new d([8193,3512,0,0,0,0,0,0]),32]]},d.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},d.prototype.kind=function(){return"ipv6"},d.prototype.match=function(h,_){let v;if(_===void 0&&(v=h,h=v[0],_=v[1]),h.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,h.parts,16,_)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,_=!1,v={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},y,w;for(let S=7;S>=0;S-=1)if(y=this.parts[S],y in v){if(w=v[y],_&&w!==0)return null;w!==16&&(_=!0),h+=w}else return null;return 128-h},d.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let h,_=[],v=this.parts;for(let y=0;y<v.length;y++)h=v[y],_.push(h>>8),_.push(h&255);return _},d.prototype.toFixedLengthString=function(){let h=(function(){let v=[];for(let y=0;y<this.parts.length;y++)v.push(m(this.parts[y].toString(16),4));return v}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),h+_},d.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let h=this.parts.slice(-2),_=h[0],v=h[1];return new f.IPv4([_>>8,_&255,v>>8,v&255])},d.prototype.toNormalizedString=function(){let h=(function(){let v=[];for(let y=0;y<this.parts.length;y++)v.push(this.parts[y].toString(16));return v}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),h+_},d.prototype.toRFC5952String=function(){let h=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),v=0,y=-1,w;for(;w=h.exec(_);)w[0].length>y&&(v=w.index,y=w[0].length);return y<0?_:`${_.substring(0,v)}::${_.substring(v+y)}`},d.prototype.toString=function(){return this.toRFC5952String()},d})(),f.IPv6.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),_=h[0].toByteArray(),v=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],w=0;for(;w<16;)y.push(parseInt(_[w],10)|parseInt(v[w],10)^255),w++;return new this(y)}catch(h){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${h})`)}},f.IPv6.isIPv6=function(d){return this.parser(d)!==null},f.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{let h=this.parser(d);return new this(h.parts,h.zoneId),!0}catch{return!1}},f.IPv6.isValidCIDR=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{return this.parseCIDR(d),!0}catch{return!1}},f.IPv6.networkAddressFromCIDR=function(d){let h,_,v,y,w;try{for(h=this.parseCIDR(d),v=h[0].toByteArray(),w=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],_=0;_<16;)y.push(parseInt(v[_],10)&parseInt(w[_],10)),_++;return new this(y)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},f.IPv6.parse=function(d){let h=this.parser(d);if(h.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(h.parts,h.zoneId)},f.IPv6.parseCIDR=function(d){let h,_,v;if((_=d.match(/^(.+)\/(\d+)$/))&&(h=parseInt(_[2]),h>=0&&h<=128))return v=[this.parse(_[1]),h],Object.defineProperty(v,"toString",{value:i(function(){return this.join("/")},"value")}),v;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},f.IPv6.parser=function(d){let h,_,v,y,w,S;if(v=d.match(u.deprecatedTransitional))return this.parser(`::ffff:${v[1]}`);if(u.native.test(d))return l(d,8);if((v=d.match(u.transitional))&&(S=v[6]||"",h=v[1],v[1].endsWith("::")||(h=h.slice(0,-1)),h=l(h+S,6),h.parts)){for(w=[parseInt(v[2]),parseInt(v[3]),parseInt(v[4]),parseInt(v[5])],_=0;_<w.length;_++)if(y=w[_],!(0<=y&&y<=255))return null;return h.parts.push(w[0]<<8|w[1]),h.parts.push(w[2]<<8|w[3]),{parts:h.parts,zoneId:h.zoneId}}return null},f.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");let h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,v=Math.floor(d/8);for(;_<v;)h[_]=255,_++;return v<16&&(h[v]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},f.fromByteArray=function(d){let h=d.length;if(h===4)return new f.IPv4(d);if(h===16)return new f.IPv6(d);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},f.isValid=function(d){return f.IPv6.isValid(d)||f.IPv4.isValid(d)},f.isValidCIDR=function(d){return f.IPv6.isValidCIDR(d)||f.IPv4.isValidCIDR(d)},f.parse=function(d){if(f.IPv6.isValid(d))return f.IPv6.parse(d);if(f.IPv4.isValid(d))return f.IPv4.parse(d);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},f.parseCIDR=function(d){try{return f.IPv6.parseCIDR(d)}catch{try{return f.IPv4.parseCIDR(d)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},f.process=function(d){let h=this.parse(d);return h.kind()==="ipv6"&&h.isIPv4MappedAddress()?h.toIPv4Address():h},f.subnetMatch=function(d,h,_){let v,y,w,S;_==null&&(_="unicast");for(y in h)if(Object.prototype.hasOwnProperty.call(h,y)){for(w=h[y],w[0]&&!(w[0]instanceof Array)&&(w=[w]),v=0;v<w.length;v++)if(S=w[v],d.kind()===S[0].kind()&&d.match.apply(d,S))return y}return _},typeof Qo<"u"&&Qo.exports?Qo.exports=f:e.ipaddr=f})(lm)});var lf=b((lre,uf)=>{var sf=require("stream").Stream,Bz=require("util");uf.exports=rr;function rr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i(rr,"DelayedStream");Bz.inherits(rr,sf);rr.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(rr.prototype,"readable",{configurable:!0,enumerable:!0,get:i(function(){return this.source.readable},"get")});rr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};rr.prototype.resume=function(){this._released||this.release(),this.source.resume()};rr.prototype.pause=function(){this.source.pause()};rr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};rr.prototype.pipe=function(){var e=sf.prototype.pipe.apply(this,arguments);return this.resume(),e};rr.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};rr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var zu=b((pre,df)=>{var jz=require("util"),pf=require("stream").Stream,cf=lf();df.exports=Je;function Je(){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}i(Je,"CombinedStream");jz.inherits(Je,pf);Je.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};Je.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Je.prototype.append=function(e){var t=Je.isStreamLike(e);if(t){if(!(e instanceof cf)){var r=cf.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Je.prototype.pipe=function(e,t){return pf.prototype.pipe.call(this,e,t),this.resume(),e};Je.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}};Je.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=Je.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Je.prototype._pipeNext=function(e){this._currentStream=e;var t=Je.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};Je.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};Je.prototype.write=function(e){this.emit("data",e)};Je.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Je.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")};Je.prototype.end=function(){this._reset(),this.emit("end")};Je.prototype.destroy=function(){this._reset(),this.emit("close")};Je.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Je.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Je.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Je.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var ff=b((mre,mf)=>{"use strict";mf.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var $u=b(Et=>{"use strict";var ia=ff(),Vz=require("path").extname,hf=/^\s*([^;\s]*)(?:;|\s|$)/,Hz=/^text\//i;Et.charset=gf;Et.charsets={lookup:gf};Et.contentType=Zz;Et.extension=Wz;Et.extensions=Object.create(null);Et.lookup=Gz;Et.types=Object.create(null);Kz(Et.extensions,Et.types);function gf(e){if(!e||typeof e!="string")return!1;var t=hf.exec(e),r=t&&ia[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Hz.test(t[1])?"UTF-8":!1}i(gf,"charset");function Zz(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Et.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Et.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}i(Zz,"contentType");function Wz(e){if(!e||typeof e!="string")return!1;var t=hf.exec(e),r=t&&Et.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}i(Wz,"extension");function Gz(e){if(!e||typeof e!="string")return!1;var t=Vz("x."+e).toLowerCase().substr(1);return t&&Et.types[t]||!1}i(Gz,"lookup");function Kz(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(ia).forEach(i(function(o){var a=ia[o],s=a.extensions;if(!(!s||!s.length)){e[o]=s;for(var u=0;u<s.length;u++){var l=s[u];if(t[l]){var p=r.indexOf(ia[t[l]].source),c=r.indexOf(a.source);if(t[l]!=="application/octet-stream"&&(p>c||p===c&&t[l].substr(0,12)==="application/"))continue}t[l]=o}}},"forEachMimeType"))}i(Kz,"populateMaps")});var vf=b((gre,yf)=>{yf.exports=Jz;function Jz(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}i(Jz,"defer")});var Du=b((vre,xf)=>{var bf=vf();xf.exports=Xz;function Xz(e){var t=!1;return bf(function(){t=!0}),i(function(n,o){t?e(n,o):bf(i(function(){e(n,o)},"nextTick_callback"))},"async_callback")}i(Xz,"async")});var Nu=b((xre,_f)=>{_f.exports=Yz;function Yz(e){Object.keys(e.jobs).forEach(Qz.bind(e)),e.jobs={}}i(Yz,"abort");function Qz(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}i(Qz,"clean")});var Uu=b((kre,wf)=>{var kf=Du(),e$=Nu();wf.exports=t$;function t$(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=r$(t,o,e[o],function(a,s){o in r.jobs&&(delete r.jobs[o],a?e$(r):r.results[o]=s,n(a,r.results))})}i(t$,"iterate");function r$(e,t,r,n){var o;return e.length==2?o=e(r,kf(n)):o=e(r,t,kf(n)),o}i(r$,"runJob")});var Mu=b((Pre,Pf)=>{Pf.exports=n$;function n$(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(o,a){return t(e[o],e[a])}),n}i(n$,"state")});var Lu=b((Tre,Sf)=>{var i$=Nu(),o$=Du();Sf.exports=a$;function a$(e){Object.keys(this.jobs).length&&(this.index=this.size,i$(this),o$(e)(null,this.results))}i(a$,"terminator")});var Af=b((Ere,Tf)=>{var s$=Uu(),u$=Mu(),l$=Lu();Tf.exports=c$;function c$(e,t,r){for(var n=u$(e);n.index<(n.keyedList||e).length;)s$(e,t,n,function(o,a){if(o){r(o,a);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return l$.bind(n,r)}i(c$,"parallel")});var qu=b((Cre,oa)=>{var Ef=Uu(),p$=Mu(),d$=Lu();oa.exports=m$;oa.exports.ascending=If;oa.exports.descending=f$;function m$(e,t,r,n){var o=p$(e,r);return Ef(e,t,o,i(function a(s,u){if(s){n(s,u);return}if(o.index++,o.index<(o.keyedList||e).length){Ef(e,t,o,a);return}n(null,o.results)},"iteratorHandler")),d$.bind(o,n)}i(m$,"serialOrdered");function If(e,t){return e<t?-1:e>t?1:0}i(If,"ascending");function f$(e,t){return-1*If(e,t)}i(f$,"descending")});var Of=b((Rre,Cf)=>{var h$=qu();Cf.exports=g$;function g$(e,t,r){return h$(e,t,null,r)}i(g$,"serial")});var Fu=b(($re,Rf)=>{Rf.exports={parallel:Af(),serial:Of(),serialOrdered:qu()}});var Bu=b((Dre,zf)=>{"use strict";zf.exports=Object});var Df=b((Nre,$f)=>{"use strict";$f.exports=Error});var Uf=b((Ure,Nf)=>{"use strict";Nf.exports=EvalError});var Lf=b((Mre,Mf)=>{"use strict";Mf.exports=RangeError});var Ff=b((Lre,qf)=>{"use strict";qf.exports=ReferenceError});var jf=b((qre,Bf)=>{"use strict";Bf.exports=SyntaxError});var aa=b((Fre,Vf)=>{"use strict";Vf.exports=TypeError});var Zf=b((Bre,Hf)=>{"use strict";Hf.exports=URIError});var Gf=b((jre,Wf)=>{"use strict";Wf.exports=Math.abs});var Jf=b((Vre,Kf)=>{"use strict";Kf.exports=Math.floor});var Yf=b((Hre,Xf)=>{"use strict";Xf.exports=Math.max});var eh=b((Zre,Qf)=>{"use strict";Qf.exports=Math.min});var rh=b((Wre,th)=>{"use strict";th.exports=Math.pow});var ih=b((Gre,nh)=>{"use strict";nh.exports=Math.round});var ah=b((Kre,oh)=>{"use strict";oh.exports=Number.isNaN||i(function(t){return t!==t},"isNaN")});var uh=b((Xre,sh)=>{"use strict";var y$=ah();sh.exports=i(function(t){return y$(t)||t===0?t:t<0?-1:1},"sign")});var ch=b((Qre,lh)=>{"use strict";lh.exports=Object.getOwnPropertyDescriptor});var ju=b((ene,ph)=>{"use strict";var sa=ch();if(sa)try{sa([],"length")}catch{sa=null}ph.exports=sa});var mh=b((tne,dh)=>{"use strict";var ua=Object.defineProperty||!1;if(ua)try{ua({},"a",{value:1})}catch{ua=!1}dh.exports=ua});var Vu=b((rne,fh)=>{"use strict";fh.exports=i(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var yh=b((ine,gh)=>{"use strict";var hh=typeof Symbol<"u"&&Symbol,v$=Vu();gh.exports=i(function(){return typeof hh!="function"||typeof Symbol!="function"||typeof hh("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v$()},"hasNativeSymbols")});var Hu=b((ane,vh)=>{"use strict";vh.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Zu=b((sne,bh)=>{"use strict";var b$=Bu();bh.exports=b$.getPrototypeOf||null});var kh=b((une,_h)=>{"use strict";var x$="Function.prototype.bind called on incompatible ",_$=Object.prototype.toString,k$=Math.max,w$="[object Function]",xh=i(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},"concatty"),P$=i(function(t,r){for(var n=[],o=r||0,a=0;o<t.length;o+=1,a+=1)n[a]=t[o];return n},"slicy"),S$=i(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");_h.exports=i(function(t){var r=this;if(typeof r!="function"||_$.apply(r)!==w$)throw new TypeError(x$+r);for(var n=P$(arguments,1),o,a=i(function(){if(this instanceof o){var c=r.apply(this,xh(n,arguments));return Object(c)===c?c:this}return r.apply(t,xh(n,arguments))},"binder"),s=k$(0,r.length-n.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(o=Function("binder","return function ("+S$(u,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=i(function(){},"Empty");p.prototype=r.prototype,o.prototype=new p,p.prototype=null}return o},"bind")});var Nn=b((cne,wh)=>{"use strict";var T$=kh();wh.exports=Function.prototype.bind||T$});var la=b((pne,Ph)=>{"use strict";Ph.exports=Function.prototype.call});var Wu=b((dne,Sh)=>{"use strict";Sh.exports=Function.prototype.apply});var Ah=b((mne,Th)=>{"use strict";Th.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ih=b((fne,Eh)=>{"use strict";var A$=Nn(),E$=Wu(),I$=la(),C$=Ah();Eh.exports=C$||A$.call(I$,E$)});var Oh=b((hne,Ch)=>{"use strict";var O$=Nn(),R$=aa(),z$=la(),$$=Ih();Ch.exports=i(function(t){if(t.length<1||typeof t[0]!="function")throw new R$("a function is required");return $$(O$,z$,t)},"callBindBasic")});var Uh=b((yne,Nh)=>{"use strict";var D$=Oh(),Rh=ju(),$h;try{$h=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Gu=!!$h&&Rh&&Rh(Object.prototype,"__proto__"),Dh=Object,zh=Dh.getPrototypeOf;Nh.exports=Gu&&typeof Gu.get=="function"?D$([Gu.get]):typeof zh=="function"?i(function(t){return zh(t==null?t:Dh(t))},"getDunder"):!1});var Bh=b((bne,Fh)=>{"use strict";var Mh=Hu(),Lh=Zu(),qh=Uh();Fh.exports=Mh?i(function(t){return Mh(t)},"getProto"):Lh?i(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Lh(t)},"getProto"):qh?i(function(t){return qh(t)},"getProto"):null});var ca=b((_ne,jh)=>{"use strict";var N$=Function.prototype.call,U$=Object.prototype.hasOwnProperty,M$=Nn();jh.exports=M$.call(N$,U$)});var Jh=b((kne,Kh)=>{"use strict";var fe,L$=Bu(),q$=Df(),F$=Uf(),B$=Lf(),j$=Ff(),qn=jf(),Ln=aa(),V$=Zf(),H$=Gf(),Z$=Jf(),W$=Yf(),G$=eh(),K$=rh(),J$=ih(),X$=uh(),Wh=Function,Ku=i(function(e){try{return Wh('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),qi=ju(),Y$=mh(),Ju=i(function(){throw new Ln},"throwTypeError"),Q$=qi?(function(){try{return arguments.callee,Ju}catch{try{return qi(arguments,"callee").get}catch{return Ju}}})():Ju,Un=yh()(),lt=Bh(),eD=Zu(),tD=Hu(),Gh=Wu(),Fi=la(),Mn={},rD=typeof Uint8Array>"u"||!lt?fe:lt(Uint8Array),dn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?fe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?fe:ArrayBuffer,"%ArrayIteratorPrototype%":Un&&lt?lt([][Symbol.iterator]()):fe,"%AsyncFromSyncIteratorPrototype%":fe,"%AsyncFunction%":Mn,"%AsyncGenerator%":Mn,"%AsyncGeneratorFunction%":Mn,"%AsyncIteratorPrototype%":Mn,"%Atomics%":typeof Atomics>"u"?fe:Atomics,"%BigInt%":typeof BigInt>"u"?fe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?fe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?fe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?fe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":q$,"%eval%":eval,"%EvalError%":F$,"%Float16Array%":typeof Float16Array>"u"?fe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?fe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?fe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?fe:FinalizationRegistry,"%Function%":Wh,"%GeneratorFunction%":Mn,"%Int8Array%":typeof Int8Array>"u"?fe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?fe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?fe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Un&&lt?lt(lt([][Symbol.iterator]())):fe,"%JSON%":typeof JSON=="object"?JSON:fe,"%Map%":typeof Map>"u"?fe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Un||!lt?fe:lt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":L$,"%Object.getOwnPropertyDescriptor%":qi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?fe:Promise,"%Proxy%":typeof Proxy>"u"?fe:Proxy,"%RangeError%":B$,"%ReferenceError%":j$,"%Reflect%":typeof Reflect>"u"?fe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?fe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Un||!lt?fe:lt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?fe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Un&&lt?lt(""[Symbol.iterator]()):fe,"%Symbol%":Un?Symbol:fe,"%SyntaxError%":qn,"%ThrowTypeError%":Q$,"%TypedArray%":rD,"%TypeError%":Ln,"%Uint8Array%":typeof Uint8Array>"u"?fe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?fe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?fe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?fe:Uint32Array,"%URIError%":V$,"%WeakMap%":typeof WeakMap>"u"?fe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?fe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?fe:WeakSet,"%Function.prototype.call%":Fi,"%Function.prototype.apply%":Gh,"%Object.defineProperty%":Y$,"%Object.getPrototypeOf%":eD,"%Math.abs%":H$,"%Math.floor%":Z$,"%Math.max%":W$,"%Math.min%":G$,"%Math.pow%":K$,"%Math.round%":J$,"%Math.sign%":X$,"%Reflect.getPrototypeOf%":tD};if(lt)try{null.error}catch(e){Vh=lt(lt(e)),dn["%Error.prototype%"]=Vh}var Vh,nD=i(function e(t){var r;if(t==="%AsyncFunction%")r=Ku("async function () {}");else if(t==="%GeneratorFunction%")r=Ku("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ku("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&lt&&(r=lt(o.prototype))}return dn[t]=r,r},"doEval"),Hh={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Bi=Nn(),pa=ca(),iD=Bi.call(Fi,Array.prototype.concat),oD=Bi.call(Gh,Array.prototype.splice),Zh=Bi.call(Fi,String.prototype.replace),da=Bi.call(Fi,String.prototype.slice),aD=Bi.call(Fi,RegExp.prototype.exec),sD=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uD=/\\(\\)?/g,lD=i(function(t){var r=da(t,0,1),n=da(t,-1);if(r==="%"&&n!=="%")throw new qn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new qn("invalid intrinsic syntax, expected opening `%`");var o=[];return Zh(t,sD,function(a,s,u,l){o[o.length]=u?Zh(l,uD,"$1"):s||a}),o},"stringToPath"),cD=i(function(t,r){var n=t,o;if(pa(Hh,n)&&(o=Hh[n],n="%"+o[0]+"%"),pa(dn,n)){var a=dn[n];if(a===Mn&&(a=nD(n)),typeof a>"u"&&!r)throw new Ln("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new qn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Kh.exports=i(function(t,r){if(typeof t!="string"||t.length===0)throw new Ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ln('"allowMissing" argument must be a boolean');if(aD(/^%?[^%]*%?$/,t)===null)throw new qn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=lD(t),o=n.length>0?n[0]:"",a=cD("%"+o+"%",r),s=a.name,u=a.value,l=!1,p=a.alias;p&&(o=p[0],oD(n,iD([0,1],p)));for(var c=1,m=!0;c<n.length;c+=1){var f=n[c],d=da(f,0,1),h=da(f,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new qn("property names with quotes must have matching quotes");if((f==="constructor"||!m)&&(l=!0),o+="."+f,s="%"+o+"%",pa(dn,s))u=dn[s];else if(u!=null){if(!(f in u)){if(!r)throw new Ln("base intrinsic for "+t+" exists, but the property is not available.");return}if(qi&&c+1>=n.length){var _=qi(u,f);m=!!_,m&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[f]}else m=pa(u,f),u=u[f];m&&!l&&(dn[s]=u)}}return u},"GetIntrinsic")});var Yh=b((Pne,Xh)=>{"use strict";var pD=Vu();Xh.exports=i(function(){return pD()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Xu=b((Tne,eg)=>{"use strict";var dD=Jh(),Qh=dD("%Object.defineProperty%",!0),mD=Yh()(),fD=ca(),hD=aa(),ma=mD?Symbol.toStringTag:null;eg.exports=i(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new hD("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");ma&&(n||!fD(t,ma))&&(Qh?Qh(t,ma,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[ma]=r)},"setToStringTag")});var rg=b((Ene,tg)=>{"use strict";var gD=Function.prototype.call,yD=Object.prototype.hasOwnProperty,vD=Nn();tg.exports=vD.call(gD,yD)});var ig=b((Ine,ng)=>{"use strict";ng.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var rl=b((Cne,ag)=>{"use strict";var tl=zu(),bD=require("util"),Yu=require("path"),xD=require("http"),_D=require("https"),kD=require("url").parse,wD=require("fs"),PD=require("stream").Stream,SD=require("crypto"),Qu=$u(),TD=Fu(),AD=Xu(),Wr=rg(),el=ig();function og(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}i(og,"escapeHeaderParam");function ge(e){if(!(this instanceof ge))return new ge(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],tl.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(ge,"FormData");bD.inherits(ge,tl);ge.LINE_BREAK=`\r
2
- `;ge.DEFAULT_CONTENT_TYPE="application/octet-stream";ge.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=tl.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};ge.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ge.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Wr(t,"httpVersion"))&&!(t instanceof PD))&&(r.knownLength||this._valuesToMeasure.push(t))};ge.prototype._lengthRetriever=function(e,t){Wr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):wD.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Wr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Wr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};ge.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+og(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&el(s,r.header);var u;for(var l in s)if(Wr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+ge.LINE_BREAK)}return"--"+this.getBoundary()+ge.LINE_BREAK+a+ge.LINE_BREAK};ge.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Yu.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Yu.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Wr(e,"httpVersion")&&(r=Yu.basename(e.client._httpMessage.path||"")),r)return'filename="'+og(r)+'"'};ge.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Qu.lookup(e.name)),!r&&e&&e.path&&(r=Qu.lookup(e.path)),!r&&e&&e.readable&&Wr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Qu.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=ge.DEFAULT_CONTENT_TYPE),r};ge.prototype._multiPartFooter=function(){return function(e){var t=ge.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ge.LINE_BREAK};ge.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Wr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};ge.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ge.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ge.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ge.prototype._generateBoundary=function(){this._boundary="--------------------------"+SD.randomBytes(12).toString("hex")};ge.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ge.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ge.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}TD.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};ge.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=kD(e),n=el({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=el(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=_D.request(n):r=xD.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};ge.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ge.prototype.toString=function(){return"[object FormData]"};AD(ge.prototype,"FormData");ag.exports=ge});var pg=b((eie,cg)=>{var Fn=1e3,Bn=Fn*60,jn=Bn*60,mn=jn*24,ND=mn*7,UD=mn*365.25;cg.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return MD(e);if(r==="number"&&isFinite(e))return t.long?qD(e):LD(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function MD(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*UD;case"weeks":case"week":case"w":return r*ND;case"days":case"day":case"d":return r*mn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*jn;case"minutes":case"minute":case"mins":case"min":case"m":return r*Bn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Fn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(MD,"parse");function LD(e){var t=Math.abs(e);return t>=mn?Math.round(e/mn)+"d":t>=jn?Math.round(e/jn)+"h":t>=Bn?Math.round(e/Bn)+"m":t>=Fn?Math.round(e/Fn)+"s":e+"ms"}i(LD,"fmtShort");function qD(e){var t=Math.abs(e);return t>=mn?fa(e,t,mn,"day"):t>=jn?fa(e,t,jn,"hour"):t>=Bn?fa(e,t,Bn,"minute"):t>=Fn?fa(e,t,Fn,"second"):e+" ms"}i(qD,"fmtLong");function fa(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}i(fa,"plural")});var il=b((rie,dg)=>{function FD(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=o,r.enabled=u,r.humanize=pg(),r.destroy=p,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let m=0;for(let f=0;f<c.length;f++)m=(m<<5)-m+c.charCodeAt(f),m|=0;return r.colors[Math.abs(m)%r.colors.length]}i(t,"selectColor"),r.selectColor=t;function r(c){let m,f=null,d,h;function _(...v){if(!_.enabled)return;let y=_,w=Number(new Date),S=w-(m||w);y.diff=S,y.prev=m,y.curr=w,m=w,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let O=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(M,V)=>{if(M==="%%")return"%";O++;let q=r.formatters[V];if(typeof q=="function"){let J=v[O];M=q.call(y,J),v.splice(O,1),O--}return M}),r.formatArgs.call(y,v),(y.log||r.log).apply(y,v)}return i(_,"debug"),_.namespace=c,_.useColors=r.useColors(),_.color=r.selectColor(c),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(c)),h),"get"),set:i(v=>{f=v},"set")}),typeof r.init=="function"&&r.init(_),_}i(r,"createDebug");function n(c,m){let f=r(this.namespace+(typeof m>"u"?":":m)+c);return f.log=this.log,f}i(n,"extend");function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let m=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of m)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}i(o,"enable");function a(c,m){let f=0,d=0,h=-1,_=0;for(;f<c.length;)if(d<m.length&&(m[d]===c[f]||m[d]==="*"))m[d]==="*"?(h=d,_=f,d++):(f++,d++);else if(h!==-1)d=h+1,_++,f=_;else return!1;for(;d<m.length&&m[d]==="*";)d++;return d===m.length}i(a,"matchesTemplate");function s(){let c=[...r.names,...r.skips.map(m=>"-"+m)].join(",");return r.enable(""),c}i(s,"disable");function u(c){for(let m of r.skips)if(a(c,m))return!1;for(let m of r.names)if(a(c,m))return!0;return!1}i(u,"enabled");function l(c){return c instanceof Error?c.stack||c.message:c}i(l,"coerce");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 i(p,"destroy"),r.enable(r.load()),r}i(FD,"setup");dg.exports=FD});var mg=b((It,ha)=>{It.formatArgs=jD;It.save=VD;It.load=HD;It.useColors=BD;It.storage=ZD();It.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();It.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","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function BD(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(BD,"useColors");function jD(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ha.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}i(jD,"formatArgs");It.log=console.debug||console.log||(()=>{});function VD(e){try{e?It.storage.setItem("debug",e):It.storage.removeItem("debug")}catch{}}i(VD,"save");function HD(){let e;try{e=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(HD,"load");function ZD(){try{return localStorage}catch{}}i(ZD,"localstorage");ha.exports=il()(It);var{formatters:WD}=ha.exports;WD.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var hg=b((oie,fg)=>{"use strict";fg.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var vg=b((aie,yg)=>{"use strict";var GD=require("os"),gg=require("tty"),Bt=hg(),{env:ct}=process,Gr;Bt("no-color")||Bt("no-colors")||Bt("color=false")||Bt("color=never")?Gr=0:(Bt("color")||Bt("colors")||Bt("color=true")||Bt("color=always"))&&(Gr=1);"FORCE_COLOR"in ct&&(ct.FORCE_COLOR==="true"?Gr=1:ct.FORCE_COLOR==="false"?Gr=0:Gr=ct.FORCE_COLOR.length===0?1:Math.min(parseInt(ct.FORCE_COLOR,10),3));function ol(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}i(ol,"translateLevel");function al(e,t){if(Gr===0)return 0;if(Bt("color=16m")||Bt("color=full")||Bt("color=truecolor"))return 3;if(Bt("color=256"))return 2;if(e&&!t&&Gr===void 0)return 0;let r=Gr||0;if(ct.TERM==="dumb")return r;if(process.platform==="win32"){let n=GD.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ct)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ct)||ct.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ct)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ct.TEAMCITY_VERSION)?1:0;if(ct.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ct){let n=parseInt((ct.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ct.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ct.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ct.TERM)||"COLORTERM"in ct?1:r}i(al,"supportsColor");function KD(e){let t=al(e,e&&e.isTTY);return ol(t)}i(KD,"getSupportLevel");yg.exports={supportsColor:KD,stdout:ol(al(!0,gg.isatty(1))),stderr:ol(al(!0,gg.isatty(2)))}});var xg=b((pt,ya)=>{var JD=require("tty"),ga=require("util");pt.init=nN;pt.log=eN;pt.formatArgs=YD;pt.save=tN;pt.load=rN;pt.useColors=XD;pt.destroy=ga.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");pt.colors=[6,2,3,4,5,1];try{let e=vg();e&&(e.stderr||e).level>=2&&(pt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}pt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,a)=>a.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function XD(){return"colors"in pt.inspectOpts?!!pt.inspectOpts.colors:JD.isatty(process.stderr.fd)}i(XD,"useColors");function YD(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${o};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
1
+ "use strict";var cO=Object.create;var bi=Object.defineProperty;var pO=Object.getOwnPropertyDescriptor;var dO=Object.getOwnPropertyNames;var mO=Object.getPrototypeOf,fO=Object.prototype.hasOwnProperty;var i=(e,t)=>bi(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Vp=(e,t)=>{for(var r in t)bi(e,r,{get:t[r],enumerable:!0})},Hp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dO(t))!fO.call(e,o)&&o!==r&&bi(e,o,{get:()=>t[o],enumerable:!(n=pO(t,o))||n.enumerable});return e};var B=(e,t,r)=>(r=e!=null?cO(mO(e)):{},Hp(t||!e||!e.__esModule?bi(r,"default",{value:e,enumerable:!0}):r,e)),hO=e=>Hp(bi({},"__esModule",{value:!0}),e);var hm=b((fm,ea)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${a})?$`,"i")};function l(d,h){if(d.indexOf("::")!==d.lastIndexOf("::"))return null;let _=0,v=-1,y=(d.match(u.zoneIndex)||[])[0],w,S;for(y&&(y=y.substring(1),d=d.replace(/%.+$/,""));(v=d.indexOf(":",v+1))>=0;)_++;if(d.substr(0,2)==="::"&&_--,d.substr(-2,2)==="::"&&_--,_>h)return null;for(S=h-_,w=":";S--;)w+="0:";return d=d.replace("::",w),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),h=(function(){let R=d.split(":"),F=[];for(let U=0;U<R.length;U++)F.push(parseInt(R[U],16));return F})(),{parts:h,zoneId:y}}i(l,"expandIPv6");function p(d,h,_,v){if(d.length!==h.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let y=0,w;for(;v>0;){if(w=_-v,w<0&&(w=0),d[y]>>w!==h[y]>>w)return!1;v-=_,y+=1}return!0}i(p,"matchCIDR");function c(d){if(o.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(n.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}i(c,"parseIntAuto");function m(d,h){for(;d.length<h;)d=`0${d}`;return d}i(m,"padPart");let f={};f.IPv4=(function(){function d(h){if(h.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,v;for(_=0;_<h.length;_++)if(v=h[_],!(0<=v&&v<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=h}return i(d,"IPv4"),d.prototype.SpecialRanges={unspecified:[[new d([0,0,0,0]),8]],broadcast:[[new d([255,255,255,255]),32]],multicast:[[new d([224,0,0,0]),4]],linkLocal:[[new d([169,254,0,0]),16]],loopback:[[new d([127,0,0,0]),8]],carrierGradeNat:[[new d([100,64,0,0]),10]],private:[[new d([10,0,0,0]),8],[new d([172,16,0,0]),12],[new d([192,168,0,0]),16]],reserved:[[new d([192,0,0,0]),24],[new d([192,0,2,0]),24],[new d([192,88,99,0]),24],[new d([198,18,0,0]),15],[new d([198,51,100,0]),24],[new d([203,0,113,0]),24],[new d([240,0,0,0]),4]],as112:[[new d([192,175,48,0]),24],[new d([192,31,196,0]),24]],amt:[[new d([192,52,193,0]),24]]},d.prototype.kind=function(){return"ipv4"},d.prototype.match=function(h,_){let v;if(_===void 0&&(v=h,h=v[0],_=v[1]),h.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,h.octets,8,_)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,_=!1,v={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},y,w,S;for(y=3;y>=0;y-=1)if(w=this.octets[y],w in v){if(S=v[w],_&&S!==0)return null;S!==8&&(_=!0),h+=S}else return null;return 32-h},d.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return f.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d})(),f.IPv4.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),_=h[0].toByteArray(),v=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],w=0;for(;w<4;)y.push(parseInt(_[w],10)|parseInt(v[w],10)^255),w++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.isIPv4=function(d){return this.parser(d)!==null},f.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch{return!1}},f.IPv4.isValidCIDR=function(d){try{return this.parseCIDR(d),!0}catch{return!1}},f.IPv4.isValidFourPartDecimal=function(d){return!!(f.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},f.IPv4.isValidCIDRFourPartDecimal=function(d){let h=d.match(/^(.+)\/(\d+)$/);return!f.IPv4.isValidCIDR(d)||!h?!1:f.IPv4.isValidFourPartDecimal(h[1])},f.IPv4.networkAddressFromCIDR=function(d){let h,_,v,y,w;try{for(h=this.parseCIDR(d),v=h[0].toByteArray(),w=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],_=0;_<4;)y.push(parseInt(v[_],10)&parseInt(w[_],10)),_++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.parse=function(d){let h=this.parser(d);if(h===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(h)},f.IPv4.parseCIDR=function(d){let h;if(h=d.match(/^(.+)\/(\d+)$/)){let _=parseInt(h[2]);if(_>=0&&_<=32){let v=[this.parse(h[1]),_];return Object.defineProperty(v,"toString",{value:i(function(){return this.join("/")},"value")}),v}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},f.IPv4.parser=function(d){let h,_,v;if(h=d.match(r.fourOctet))return(function(){let y=h.slice(1,6),w=[];for(let S=0;S<y.length;S++)_=y[S],w.push(c(_));return w})();if(h=d.match(r.longValue)){if(v=c(h[1]),v>4294967295||v<0)throw new Error("ipaddr: address outside defined range");return(function(){let y=[],w;for(w=0;w<=24;w+=8)y.push(v>>w&255);return y})().reverse()}else return(h=d.match(r.twoOctet))?(function(){let y=h.slice(1,4),w=[];if(v=c(y[1]),v>16777215||v<0)throw new Error("ipaddr: address outside defined range");return w.push(c(y[0])),w.push(v>>16&255),w.push(v>>8&255),w.push(v&255),w})():(h=d.match(r.threeOctet))?(function(){let y=h.slice(1,5),w=[];if(v=c(y[2]),v>65535||v<0)throw new Error("ipaddr: address outside defined range");return w.push(c(y[0])),w.push(c(y[1])),w.push(v>>8&255),w.push(v&255),w})():null},f.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");let h=[0,0,0,0],_=0,v=Math.floor(d/8);for(;_<v;)h[_]=255,_++;return v<4&&(h[v]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},f.IPv6=(function(){function d(h,_){let v,y;if(h.length===16)for(this.parts=[],v=0;v<=14;v+=2)this.parts.push(h[v]<<8|h[v+1]);else if(h.length===8)this.parts=h;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(v=0;v<this.parts.length;v++)if(y=this.parts[v],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return i(d,"IPv6"),d.prototype.SpecialRanges={unspecified:[new d([0,0,0,0,0,0,0,0]),128],linkLocal:[new d([65152,0,0,0,0,0,0,0]),10],multicast:[new d([65280,0,0,0,0,0,0,0]),8],loopback:[new d([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new d([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new d([0,0,0,0,0,65535,0,0]),96],discard:[new d([256,0,0,0,0,0,0,0]),64],rfc6145:[new d([0,0,0,0,65535,0,0,0]),96],rfc6052:[new d([100,65435,0,0,0,0,0,0]),96],"6to4":[new d([8194,0,0,0,0,0,0,0]),16],teredo:[new d([8193,0,0,0,0,0,0,0]),32],benchmarking:[new d([8193,2,0,0,0,0,0,0]),48],amt:[new d([8193,3,0,0,0,0,0,0]),32],as112v6:[[new d([8193,4,274,0,0,0,0,0]),48],[new d([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new d([8193,16,0,0,0,0,0,0]),28],orchid2:[new d([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new d([8193,48,0,0,0,0,0,0]),28],reserved:[[new d([8193,0,0,0,0,0,0,0]),23],[new d([8193,3512,0,0,0,0,0,0]),32]]},d.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},d.prototype.kind=function(){return"ipv6"},d.prototype.match=function(h,_){let v;if(_===void 0&&(v=h,h=v[0],_=v[1]),h.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,h.parts,16,_)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,_=!1,v={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},y,w;for(let S=7;S>=0;S-=1)if(y=this.parts[S],y in v){if(w=v[y],_&&w!==0)return null;w!==16&&(_=!0),h+=w}else return null;return 128-h},d.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let h,_=[],v=this.parts;for(let y=0;y<v.length;y++)h=v[y],_.push(h>>8),_.push(h&255);return _},d.prototype.toFixedLengthString=function(){let h=(function(){let v=[];for(let y=0;y<this.parts.length;y++)v.push(m(this.parts[y].toString(16),4));return v}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),h+_},d.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let h=this.parts.slice(-2),_=h[0],v=h[1];return new f.IPv4([_>>8,_&255,v>>8,v&255])},d.prototype.toNormalizedString=function(){let h=(function(){let v=[];for(let y=0;y<this.parts.length;y++)v.push(this.parts[y].toString(16));return v}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),h+_},d.prototype.toRFC5952String=function(){let h=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),v=0,y=-1,w;for(;w=h.exec(_);)w[0].length>y&&(v=w.index,y=w[0].length);return y<0?_:`${_.substring(0,v)}::${_.substring(v+y)}`},d.prototype.toString=function(){return this.toRFC5952String()},d})(),f.IPv6.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),_=h[0].toByteArray(),v=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],w=0;for(;w<16;)y.push(parseInt(_[w],10)|parseInt(v[w],10)^255),w++;return new this(y)}catch(h){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${h})`)}},f.IPv6.isIPv6=function(d){return this.parser(d)!==null},f.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{let h=this.parser(d);return new this(h.parts,h.zoneId),!0}catch{return!1}},f.IPv6.isValidCIDR=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{return this.parseCIDR(d),!0}catch{return!1}},f.IPv6.networkAddressFromCIDR=function(d){let h,_,v,y,w;try{for(h=this.parseCIDR(d),v=h[0].toByteArray(),w=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],_=0;_<16;)y.push(parseInt(v[_],10)&parseInt(w[_],10)),_++;return new this(y)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},f.IPv6.parse=function(d){let h=this.parser(d);if(h.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(h.parts,h.zoneId)},f.IPv6.parseCIDR=function(d){let h,_,v;if((_=d.match(/^(.+)\/(\d+)$/))&&(h=parseInt(_[2]),h>=0&&h<=128))return v=[this.parse(_[1]),h],Object.defineProperty(v,"toString",{value:i(function(){return this.join("/")},"value")}),v;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},f.IPv6.parser=function(d){let h,_,v,y,w,S;if(v=d.match(u.deprecatedTransitional))return this.parser(`::ffff:${v[1]}`);if(u.native.test(d))return l(d,8);if((v=d.match(u.transitional))&&(S=v[6]||"",h=v[1],v[1].endsWith("::")||(h=h.slice(0,-1)),h=l(h+S,6),h.parts)){for(w=[parseInt(v[2]),parseInt(v[3]),parseInt(v[4]),parseInt(v[5])],_=0;_<w.length;_++)if(y=w[_],!(0<=y&&y<=255))return null;return h.parts.push(w[0]<<8|w[1]),h.parts.push(w[2]<<8|w[3]),{parts:h.parts,zoneId:h.zoneId}}return null},f.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");let h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,v=Math.floor(d/8);for(;_<v;)h[_]=255,_++;return v<16&&(h[v]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},f.fromByteArray=function(d){let h=d.length;if(h===4)return new f.IPv4(d);if(h===16)return new f.IPv6(d);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},f.isValid=function(d){return f.IPv6.isValid(d)||f.IPv4.isValid(d)},f.isValidCIDR=function(d){return f.IPv6.isValidCIDR(d)||f.IPv4.isValidCIDR(d)},f.parse=function(d){if(f.IPv6.isValid(d))return f.IPv6.parse(d);if(f.IPv4.isValid(d))return f.IPv4.parse(d);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},f.parseCIDR=function(d){try{return f.IPv6.parseCIDR(d)}catch{try{return f.IPv4.parseCIDR(d)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},f.process=function(d){let h=this.parse(d);return h.kind()==="ipv6"&&h.isIPv4MappedAddress()?h.toIPv4Address():h},f.subnetMatch=function(d,h,_){let v,y,w,S;_==null&&(_="unicast");for(y in h)if(Object.prototype.hasOwnProperty.call(h,y)){for(w=h[y],w[0]&&!(w[0]instanceof Array)&&(w=[w]),v=0;v<w.length;v++)if(S=w[v],d.kind()===S[0].kind()&&d.match.apply(d,S))return y}return _},typeof ea<"u"&&ea.exports?ea.exports=f:e.ipaddr=f})(fm)});var yf=b(($re,gf)=>{var hf=require("stream").Stream,Qz=require("util");gf.exports=rr;function rr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i(rr,"DelayedStream");Qz.inherits(rr,hf);rr.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(rr.prototype,"readable",{configurable:!0,enumerable:!0,get:i(function(){return this.source.readable},"get")});rr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};rr.prototype.resume=function(){this._released||this.release(),this.source.resume()};rr.prototype.pause=function(){this.source.pause()};rr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};rr.prototype.pipe=function(){var e=hf.prototype.pipe.apply(this,arguments);return this.resume(),e};rr.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};rr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Nu=b((Ure,xf)=>{var eD=require("util"),bf=require("stream").Stream,vf=yf();xf.exports=Je;function Je(){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}i(Je,"CombinedStream");eD.inherits(Je,bf);Je.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};Je.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Je.prototype.append=function(e){var t=Je.isStreamLike(e);if(t){if(!(e instanceof vf)){var r=vf.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Je.prototype.pipe=function(e,t){return bf.prototype.pipe.call(this,e,t),this.resume(),e};Je.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}};Je.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=Je.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Je.prototype._pipeNext=function(e){this._currentStream=e;var t=Je.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};Je.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};Je.prototype.write=function(e){this.emit("data",e)};Je.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Je.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")};Je.prototype.end=function(){this._reset(),this.emit("end")};Je.prototype.destroy=function(){this._reset(),this.emit("close")};Je.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Je.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Je.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Je.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var kf=b((Lre,_f)=>{"use strict";_f.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var Uu=b(Et=>{"use strict";var oa=kf(),tD=require("path").extname,wf=/^\s*([^;\s]*)(?:;|\s|$)/,rD=/^text\//i;Et.charset=Pf;Et.charsets={lookup:Pf};Et.contentType=nD;Et.extension=iD;Et.extensions=Object.create(null);Et.lookup=oD;Et.types=Object.create(null);aD(Et.extensions,Et.types);function Pf(e){if(!e||typeof e!="string")return!1;var t=wf.exec(e),r=t&&oa[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&rD.test(t[1])?"UTF-8":!1}i(Pf,"charset");function nD(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Et.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Et.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}i(nD,"contentType");function iD(e){if(!e||typeof e!="string")return!1;var t=wf.exec(e),r=t&&Et.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}i(iD,"extension");function oD(e){if(!e||typeof e!="string")return!1;var t=tD("x."+e).toLowerCase().substr(1);return t&&Et.types[t]||!1}i(oD,"lookup");function aD(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(oa).forEach(i(function(o){var a=oa[o],s=a.extensions;if(!(!s||!s.length)){e[o]=s;for(var u=0;u<s.length;u++){var l=s[u];if(t[l]){var p=r.indexOf(oa[t[l]].source),c=r.indexOf(a.source);if(t[l]!=="application/octet-stream"&&(p>c||p===c&&t[l].substr(0,12)==="application/"))continue}t[l]=o}}},"forEachMimeType"))}i(aD,"populateMaps")});var Tf=b((Bre,Sf)=>{Sf.exports=sD;function sD(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}i(sD,"defer")});var Mu=b((Vre,Ef)=>{var Af=Tf();Ef.exports=uD;function uD(e){var t=!1;return Af(function(){t=!0}),i(function(n,o){t?e(n,o):Af(i(function(){e(n,o)},"nextTick_callback"))},"async_callback")}i(uD,"async")});var Lu=b((Wre,If)=>{If.exports=lD;function lD(e){Object.keys(e.jobs).forEach(cD.bind(e)),e.jobs={}}i(lD,"abort");function cD(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}i(cD,"clean")});var qu=b((Gre,Of)=>{var Cf=Mu(),pD=Lu();Of.exports=dD;function dD(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=mD(t,o,e[o],function(a,s){o in r.jobs&&(delete r.jobs[o],a?pD(r):r.results[o]=s,n(a,r.results))})}i(dD,"iterate");function mD(e,t,r,n){var o;return e.length==2?o=e(r,Cf(n)):o=e(r,t,Cf(n)),o}i(mD,"runJob")});var Fu=b((Jre,Rf)=>{Rf.exports=fD;function fD(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(o,a){return t(e[o],e[a])}),n}i(fD,"state")});var Bu=b((Yre,zf)=>{var hD=Lu(),gD=Mu();zf.exports=yD;function yD(e){Object.keys(this.jobs).length&&(this.index=this.size,hD(this),gD(e)(null,this.results))}i(yD,"terminator")});var $f=b((ene,Df)=>{var vD=qu(),bD=Fu(),xD=Bu();Df.exports=_D;function _D(e,t,r){for(var n=bD(e);n.index<(n.keyedList||e).length;)vD(e,t,n,function(o,a){if(o){r(o,a);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return xD.bind(n,r)}i(_D,"parallel")});var ju=b((rne,aa)=>{var Nf=qu(),kD=Fu(),wD=Bu();aa.exports=PD;aa.exports.ascending=Uf;aa.exports.descending=SD;function PD(e,t,r,n){var o=kD(e,r);return Nf(e,t,o,i(function a(s,u){if(s){n(s,u);return}if(o.index++,o.index<(o.keyedList||e).length){Nf(e,t,o,a);return}n(null,o.results)},"iteratorHandler")),wD.bind(o,n)}i(PD,"serialOrdered");function Uf(e,t){return e<t?-1:e>t?1:0}i(Uf,"ascending");function SD(e,t){return-1*Uf(e,t)}i(SD,"descending")});var Lf=b((ine,Mf)=>{var TD=ju();Mf.exports=AD;function AD(e,t,r){return TD(e,t,null,r)}i(AD,"serial")});var Vu=b((ane,qf)=>{qf.exports={parallel:$f(),serial:Lf(),serialOrdered:ju()}});var Hu=b((sne,Ff)=>{"use strict";Ff.exports=Object});var jf=b((une,Bf)=>{"use strict";Bf.exports=Error});var Hf=b((lne,Vf)=>{"use strict";Vf.exports=EvalError});var Zf=b((cne,Wf)=>{"use strict";Wf.exports=RangeError});var Kf=b((pne,Gf)=>{"use strict";Gf.exports=ReferenceError});var Xf=b((dne,Jf)=>{"use strict";Jf.exports=SyntaxError});var sa=b((mne,Yf)=>{"use strict";Yf.exports=TypeError});var eh=b((fne,Qf)=>{"use strict";Qf.exports=URIError});var rh=b((hne,th)=>{"use strict";th.exports=Math.abs});var ih=b((gne,nh)=>{"use strict";nh.exports=Math.floor});var ah=b((yne,oh)=>{"use strict";oh.exports=Math.max});var uh=b((vne,sh)=>{"use strict";sh.exports=Math.min});var ch=b((bne,lh)=>{"use strict";lh.exports=Math.pow});var dh=b((xne,ph)=>{"use strict";ph.exports=Math.round});var fh=b((_ne,mh)=>{"use strict";mh.exports=Number.isNaN||i(function(t){return t!==t},"isNaN")});var gh=b((wne,hh)=>{"use strict";var ED=fh();hh.exports=i(function(t){return ED(t)||t===0?t:t<0?-1:1},"sign")});var vh=b((Sne,yh)=>{"use strict";yh.exports=Object.getOwnPropertyDescriptor});var Wu=b((Tne,bh)=>{"use strict";var ua=vh();if(ua)try{ua([],"length")}catch{ua=null}bh.exports=ua});var _h=b((Ane,xh)=>{"use strict";var la=Object.defineProperty||!1;if(la)try{la({},"a",{value:1})}catch{la=!1}xh.exports=la});var Zu=b((Ene,kh)=>{"use strict";kh.exports=i(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var Sh=b((Cne,Ph)=>{"use strict";var wh=typeof Symbol<"u"&&Symbol,ID=Zu();Ph.exports=i(function(){return typeof wh!="function"||typeof Symbol!="function"||typeof wh("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ID()},"hasNativeSymbols")});var Gu=b((Rne,Th)=>{"use strict";Th.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ku=b((zne,Ah)=>{"use strict";var CD=Hu();Ah.exports=CD.getPrototypeOf||null});var Ch=b((Dne,Ih)=>{"use strict";var OD="Function.prototype.bind called on incompatible ",RD=Object.prototype.toString,zD=Math.max,DD="[object Function]",Eh=i(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},"concatty"),$D=i(function(t,r){for(var n=[],o=r||0,a=0;o<t.length;o+=1,a+=1)n[a]=t[o];return n},"slicy"),ND=i(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");Ih.exports=i(function(t){var r=this;if(typeof r!="function"||RD.apply(r)!==DD)throw new TypeError(OD+r);for(var n=$D(arguments,1),o,a=i(function(){if(this instanceof o){var c=r.apply(this,Eh(n,arguments));return Object(c)===c?c:this}return r.apply(t,Eh(n,arguments))},"binder"),s=zD(0,r.length-n.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(o=Function("binder","return function ("+ND(u,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=i(function(){},"Empty");p.prototype=r.prototype,o.prototype=new p,p.prototype=null}return o},"bind")});var Un=b((Nne,Oh)=>{"use strict";var UD=Ch();Oh.exports=Function.prototype.bind||UD});var ca=b((Une,Rh)=>{"use strict";Rh.exports=Function.prototype.call});var Ju=b((Mne,zh)=>{"use strict";zh.exports=Function.prototype.apply});var $h=b((Lne,Dh)=>{"use strict";Dh.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Uh=b((qne,Nh)=>{"use strict";var MD=Un(),LD=Ju(),qD=ca(),FD=$h();Nh.exports=FD||MD.call(qD,LD)});var Lh=b((Fne,Mh)=>{"use strict";var BD=Un(),jD=sa(),VD=ca(),HD=Uh();Mh.exports=i(function(t){if(t.length<1||typeof t[0]!="function")throw new jD("a function is required");return HD(BD,VD,t)},"callBindBasic")});var Hh=b((jne,Vh)=>{"use strict";var WD=Lh(),qh=Wu(),Bh;try{Bh=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Xu=!!Bh&&qh&&qh(Object.prototype,"__proto__"),jh=Object,Fh=jh.getPrototypeOf;Vh.exports=Xu&&typeof Xu.get=="function"?WD([Xu.get]):typeof Fh=="function"?i(function(t){return Fh(t==null?t:jh(t))},"getDunder"):!1});var Jh=b((Hne,Kh)=>{"use strict";var Wh=Gu(),Zh=Ku(),Gh=Hh();Kh.exports=Wh?i(function(t){return Wh(t)},"getProto"):Zh?i(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Zh(t)},"getProto"):Gh?i(function(t){return Gh(t)},"getProto"):null});var pa=b((Zne,Xh)=>{"use strict";var ZD=Function.prototype.call,GD=Object.prototype.hasOwnProperty,KD=Un();Xh.exports=KD.call(ZD,GD)});var ig=b((Gne,ng)=>{"use strict";var fe,JD=Hu(),XD=jf(),YD=Hf(),QD=Zf(),e$=Kf(),Fn=Xf(),qn=sa(),t$=eh(),r$=rh(),n$=ih(),i$=ah(),o$=uh(),a$=ch(),s$=dh(),u$=gh(),tg=Function,Yu=i(function(e){try{return tg('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Fi=Wu(),l$=_h(),Qu=i(function(){throw new qn},"throwTypeError"),c$=Fi?(function(){try{return arguments.callee,Qu}catch{try{return Fi(arguments,"callee").get}catch{return Qu}}})():Qu,Mn=Sh()(),ct=Jh(),p$=Ku(),d$=Gu(),rg=Ju(),Bi=ca(),Ln={},m$=typeof Uint8Array>"u"||!ct?fe:ct(Uint8Array),dn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?fe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?fe:ArrayBuffer,"%ArrayIteratorPrototype%":Mn&&ct?ct([][Symbol.iterator]()):fe,"%AsyncFromSyncIteratorPrototype%":fe,"%AsyncFunction%":Ln,"%AsyncGenerator%":Ln,"%AsyncGeneratorFunction%":Ln,"%AsyncIteratorPrototype%":Ln,"%Atomics%":typeof Atomics>"u"?fe:Atomics,"%BigInt%":typeof BigInt>"u"?fe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?fe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?fe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?fe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XD,"%eval%":eval,"%EvalError%":YD,"%Float16Array%":typeof Float16Array>"u"?fe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?fe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?fe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?fe:FinalizationRegistry,"%Function%":tg,"%GeneratorFunction%":Ln,"%Int8Array%":typeof Int8Array>"u"?fe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?fe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?fe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mn&&ct?ct(ct([][Symbol.iterator]())):fe,"%JSON%":typeof JSON=="object"?JSON:fe,"%Map%":typeof Map>"u"?fe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mn||!ct?fe:ct(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":JD,"%Object.getOwnPropertyDescriptor%":Fi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?fe:Promise,"%Proxy%":typeof Proxy>"u"?fe:Proxy,"%RangeError%":QD,"%ReferenceError%":e$,"%Reflect%":typeof Reflect>"u"?fe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?fe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Mn||!ct?fe:ct(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?fe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Mn&&ct?ct(""[Symbol.iterator]()):fe,"%Symbol%":Mn?Symbol:fe,"%SyntaxError%":Fn,"%ThrowTypeError%":c$,"%TypedArray%":m$,"%TypeError%":qn,"%Uint8Array%":typeof Uint8Array>"u"?fe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?fe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?fe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?fe:Uint32Array,"%URIError%":t$,"%WeakMap%":typeof WeakMap>"u"?fe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?fe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?fe:WeakSet,"%Function.prototype.call%":Bi,"%Function.prototype.apply%":rg,"%Object.defineProperty%":l$,"%Object.getPrototypeOf%":p$,"%Math.abs%":r$,"%Math.floor%":n$,"%Math.max%":i$,"%Math.min%":o$,"%Math.pow%":a$,"%Math.round%":s$,"%Math.sign%":u$,"%Reflect.getPrototypeOf%":d$};if(ct)try{null.error}catch(e){Yh=ct(ct(e)),dn["%Error.prototype%"]=Yh}var Yh,f$=i(function e(t){var r;if(t==="%AsyncFunction%")r=Yu("async function () {}");else if(t==="%GeneratorFunction%")r=Yu("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Yu("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ct&&(r=ct(o.prototype))}return dn[t]=r,r},"doEval"),Qh={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ji=Un(),da=pa(),h$=ji.call(Bi,Array.prototype.concat),g$=ji.call(rg,Array.prototype.splice),eg=ji.call(Bi,String.prototype.replace),ma=ji.call(Bi,String.prototype.slice),y$=ji.call(Bi,RegExp.prototype.exec),v$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b$=/\\(\\)?/g,x$=i(function(t){var r=ma(t,0,1),n=ma(t,-1);if(r==="%"&&n!=="%")throw new Fn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Fn("invalid intrinsic syntax, expected opening `%`");var o=[];return eg(t,v$,function(a,s,u,l){o[o.length]=u?eg(l,b$,"$1"):s||a}),o},"stringToPath"),_$=i(function(t,r){var n=t,o;if(da(Qh,n)&&(o=Qh[n],n="%"+o[0]+"%"),da(dn,n)){var a=dn[n];if(a===Ln&&(a=f$(n)),typeof a>"u"&&!r)throw new qn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Fn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");ng.exports=i(function(t,r){if(typeof t!="string"||t.length===0)throw new qn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new qn('"allowMissing" argument must be a boolean');if(y$(/^%?[^%]*%?$/,t)===null)throw new Fn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=x$(t),o=n.length>0?n[0]:"",a=_$("%"+o+"%",r),s=a.name,u=a.value,l=!1,p=a.alias;p&&(o=p[0],g$(n,h$([0,1],p)));for(var c=1,m=!0;c<n.length;c+=1){var f=n[c],d=ma(f,0,1),h=ma(f,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new Fn("property names with quotes must have matching quotes");if((f==="constructor"||!m)&&(l=!0),o+="."+f,s="%"+o+"%",da(dn,s))u=dn[s];else if(u!=null){if(!(f in u)){if(!r)throw new qn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Fi&&c+1>=n.length){var _=Fi(u,f);m=!!_,m&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[f]}else m=da(u,f),u=u[f];m&&!l&&(dn[s]=u)}}return u},"GetIntrinsic")});var ag=b((Jne,og)=>{"use strict";var k$=Zu();og.exports=i(function(){return k$()&&!!Symbol.toStringTag},"hasToStringTagShams")});var el=b((Yne,ug)=>{"use strict";var w$=ig(),sg=w$("%Object.defineProperty%",!0),P$=ag()(),S$=pa(),T$=sa(),fa=P$?Symbol.toStringTag:null;ug.exports=i(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new T$("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");fa&&(n||!S$(t,fa))&&(sg?sg(t,fa,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[fa]=r)},"setToStringTag")});var cg=b((eie,lg)=>{"use strict";var A$=Function.prototype.call,E$=Object.prototype.hasOwnProperty,I$=Un();lg.exports=I$.call(A$,E$)});var dg=b((tie,pg)=>{"use strict";pg.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var ol=b((rie,fg)=>{"use strict";var il=Nu(),C$=require("util"),tl=require("path"),O$=require("http"),R$=require("https"),z$=require("url").parse,D$=require("fs"),$$=require("stream").Stream,N$=require("crypto"),rl=Uu(),U$=Vu(),M$=el(),Gr=cg(),nl=dg();function mg(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}i(mg,"escapeHeaderParam");function ve(e){if(!(this instanceof ve))return new ve(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],il.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(ve,"FormData");C$.inherits(ve,il);ve.LINE_BREAK=`\r
2
+ `;ve.DEFAULT_CONTENT_TYPE="application/octet-stream";ve.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=il.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};ve.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ve.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Gr(t,"httpVersion"))&&!(t instanceof $$))&&(r.knownLength||this._valuesToMeasure.push(t))};ve.prototype._lengthRetriever=function(e,t){Gr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):D$.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Gr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Gr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};ve.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+mg(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&nl(s,r.header);var u;for(var l in s)if(Gr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+ve.LINE_BREAK)}return"--"+this.getBoundary()+ve.LINE_BREAK+a+ve.LINE_BREAK};ve.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=tl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=tl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Gr(e,"httpVersion")&&(r=tl.basename(e.client._httpMessage.path||"")),r)return'filename="'+mg(r)+'"'};ve.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=rl.lookup(e.name)),!r&&e&&e.path&&(r=rl.lookup(e.path)),!r&&e&&e.readable&&Gr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=rl.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=ve.DEFAULT_CONTENT_TYPE),r};ve.prototype._multiPartFooter=function(){return function(e){var t=ve.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};ve.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ve.LINE_BREAK};ve.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Gr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};ve.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ve.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ve.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ve.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ve.prototype._generateBoundary=function(){this._boundary="--------------------------"+N$.randomBytes(12).toString("hex")};ve.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ve.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ve.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}U$.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};ve.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=z$(e),n=nl({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=nl(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=R$.request(n):r=O$.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};ve.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ve.prototype.toString=function(){return"[object FormData]"};M$(ve.prototype,"FormData");fg.exports=ve});var xg=b((Aie,bg)=>{var Bn=1e3,jn=Bn*60,Vn=jn*60,mn=Vn*24,Z$=mn*7,G$=mn*365.25;bg.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return K$(e);if(r==="number"&&isFinite(e))return t.long?X$(e):J$(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function K$(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*G$;case"weeks":case"week":case"w":return r*Z$;case"days":case"day":case"d":return r*mn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Vn;case"minutes":case"minute":case"mins":case"min":case"m":return r*jn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Bn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(K$,"parse");function J$(e){var t=Math.abs(e);return t>=mn?Math.round(e/mn)+"d":t>=Vn?Math.round(e/Vn)+"h":t>=jn?Math.round(e/jn)+"m":t>=Bn?Math.round(e/Bn)+"s":e+"ms"}i(J$,"fmtShort");function X$(e){var t=Math.abs(e);return t>=mn?ha(e,t,mn,"day"):t>=Vn?ha(e,t,Vn,"hour"):t>=jn?ha(e,t,jn,"minute"):t>=Bn?ha(e,t,Bn,"second"):e+" ms"}i(X$,"fmtLong");function ha(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}i(ha,"plural")});var sl=b((Iie,_g)=>{function Y$(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=o,r.enabled=u,r.humanize=xg(),r.destroy=p,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let m=0;for(let f=0;f<c.length;f++)m=(m<<5)-m+c.charCodeAt(f),m|=0;return r.colors[Math.abs(m)%r.colors.length]}i(t,"selectColor"),r.selectColor=t;function r(c){let m,f=null,d,h;function _(...v){if(!_.enabled)return;let y=_,w=Number(new Date),S=w-(m||w);y.diff=S,y.prev=m,y.curr=w,m=w,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let R=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(U,Z)=>{if(U==="%%")return"%";R++;let q=r.formatters[Z];if(typeof q=="function"){let W=v[R];U=q.call(y,W),v.splice(R,1),R--}return U}),r.formatArgs.call(y,v),(y.log||r.log).apply(y,v)}return i(_,"debug"),_.namespace=c,_.useColors=r.useColors(),_.color=r.selectColor(c),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(c)),h),"get"),set:i(v=>{f=v},"set")}),typeof r.init=="function"&&r.init(_),_}i(r,"createDebug");function n(c,m){let f=r(this.namespace+(typeof m>"u"?":":m)+c);return f.log=this.log,f}i(n,"extend");function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let m=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of m)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}i(o,"enable");function a(c,m){let f=0,d=0,h=-1,_=0;for(;f<c.length;)if(d<m.length&&(m[d]===c[f]||m[d]==="*"))m[d]==="*"?(h=d,_=f,d++):(f++,d++);else if(h!==-1)d=h+1,_++,f=_;else return!1;for(;d<m.length&&m[d]==="*";)d++;return d===m.length}i(a,"matchesTemplate");function s(){let c=[...r.names,...r.skips.map(m=>"-"+m)].join(",");return r.enable(""),c}i(s,"disable");function u(c){for(let m of r.skips)if(a(c,m))return!1;for(let m of r.names)if(a(c,m))return!0;return!1}i(u,"enabled");function l(c){return c instanceof Error?c.stack||c.message:c}i(l,"coerce");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 i(p,"destroy"),r.enable(r.load()),r}i(Y$,"setup");_g.exports=Y$});var kg=b((It,ga)=>{It.formatArgs=eN;It.save=tN;It.load=rN;It.useColors=Q$;It.storage=nN();It.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();It.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","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Q$(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(Q$,"useColors");function eN(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ga.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}i(eN,"formatArgs");It.log=console.debug||console.log||(()=>{});function tN(e){try{e?It.storage.setItem("debug",e):It.storage.removeItem("debug")}catch{}}i(tN,"save");function rN(){let e;try{e=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(rN,"load");function nN(){try{return localStorage}catch{}}i(nN,"localstorage");ga.exports=sl()(It);var{formatters:iN}=ga.exports;iN.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Pg=b((Rie,wg)=>{"use strict";wg.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Ag=b((zie,Tg)=>{"use strict";var oN=require("os"),Sg=require("tty"),jt=Pg(),{env:pt}=process,Kr;jt("no-color")||jt("no-colors")||jt("color=false")||jt("color=never")?Kr=0:(jt("color")||jt("colors")||jt("color=true")||jt("color=always"))&&(Kr=1);"FORCE_COLOR"in pt&&(pt.FORCE_COLOR==="true"?Kr=1:pt.FORCE_COLOR==="false"?Kr=0:Kr=pt.FORCE_COLOR.length===0?1:Math.min(parseInt(pt.FORCE_COLOR,10),3));function ul(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}i(ul,"translateLevel");function ll(e,t){if(Kr===0)return 0;if(jt("color=16m")||jt("color=full")||jt("color=truecolor"))return 3;if(jt("color=256"))return 2;if(e&&!t&&Kr===void 0)return 0;let r=Kr||0;if(pt.TERM==="dumb")return r;if(process.platform==="win32"){let n=oN.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in pt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in pt)||pt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in pt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(pt.TEAMCITY_VERSION)?1:0;if(pt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in pt){let n=parseInt((pt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(pt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(pt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(pt.TERM)||"COLORTERM"in pt?1:r}i(ll,"supportsColor");function aN(e){let t=ll(e,e&&e.isTTY);return ul(t)}i(aN,"getSupportLevel");Tg.exports={supportsColor:aN,stdout:ul(ll(!0,Sg.isatty(1))),stderr:ul(ll(!0,Sg.isatty(2)))}});var Ig=b((dt,va)=>{var sN=require("tty"),ya=require("util");dt.init=fN;dt.log=pN;dt.formatArgs=lN;dt.save=dN;dt.load=mN;dt.useColors=uN;dt.destroy=ya.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");dt.colors=[6,2,3,4,5,1];try{let e=Ag();e&&(e.stderr||e).level>=2&&(dt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}dt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,a)=>a.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function uN(){return"colors"in dt.inspectOpts?!!dt.inspectOpts.colors:sN.isatty(process.stderr.fd)}i(uN,"useColors");function lN(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${o};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
3
3
  `).join(`
4
- `+a),e.push(o+"m+"+ya.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=QD()+t+" "+e[0]}i(YD,"formatArgs");function QD(){return pt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(QD,"getDate");function eN(...e){return process.stderr.write(ga.formatWithOptions(pt.inspectOpts,...e)+`
5
- `)}i(eN,"log");function tN(e){e?process.env.DEBUG=e:delete process.env.DEBUG}i(tN,"save");function rN(){return process.env.DEBUG}i(rN,"load");function nN(e){e.inspectOpts={};let t=Object.keys(pt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=pt.inspectOpts[t[r]]}i(nN,"init");ya.exports=il()(pt);var{formatters:bg}=ya.exports;bg.o=function(e){return this.inspectOpts.colors=this.useColors,ga.inspect(e,this.inspectOpts).split(`
6
- `).map(t=>t.trim()).join(" ")};bg.O=function(e){return this.inspectOpts.colors=this.useColors,ga.inspect(e,this.inspectOpts)}});var ji=b((lie,sl)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?sl.exports=mg():sl.exports=xg()});var _g=b(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});function iN(e){return function(t,r){return new Promise((n,o)=>{e.call(this,t,r,(a,s)=>{a?o(a):n(s)})})}}i(iN,"promisify");ul.default=iN});var Pg=b((cl,wg)=>{"use strict";var kg=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},oN=require("events"),aN=kg(ji()),sN=kg(_g()),Vi=aN.default("agent-base");function uN(e){return!!e&&typeof e.addRequest=="function"}i(uN,"isAgent");function ll(){let{stack:e}=new Error;return typeof e!="string"?!1:e.split(`
7
- `).some(t=>t.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1)}i(ll,"isSecureEndpoint");function va(e,t){return new va.Agent(e,t)}i(va,"createAgent");(function(e){class t extends oN.EventEmitter{static{i(this,"Agent")}constructor(n,o){super();let a=o;typeof n=="function"?this.callback=n:n&&(a=n),this.timeout=null,a&&typeof a.timeout=="number"&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:ll()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:ll()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,o,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,o){let a=Object.assign({},o);typeof a.secureEndpoint!="boolean"&&(a.secureEndpoint=ll()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,u=null,l=a.timeout||this.timeout,p=i(d=>{n._hadError||(n.emit("error",d),n._hadError=!0)},"onerror"),c=i(()=>{u=null,s=!0;let d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",p(d)},"ontimeout"),m=i(d=>{s||(u!==null&&(clearTimeout(u),u=null),p(d))},"callbackError"),f=i(d=>{if(s)return;if(u!=null&&(clearTimeout(u),u=null),uN(d)){Vi("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(n,a);return}if(d){d.once("free",()=>{this.freeSocket(d,a)}),n.onSocket(d);return}let h=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);p(h)},"onsocket");if(typeof this.callback!="function"){p(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Vi("Converting legacy callback function to promise"),this.promisifiedCallback=sN.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(u=setTimeout(c,l)),"port"in a&&typeof a.port!="number"&&(a.port=Number(a.port));try{Vi("Resolving socket for %o request: %o",a.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,a)).then(f,m)}catch(d){Promise.reject(d).catch(m)}}freeSocket(n,o){Vi("Freeing socket %o %o",n.constructor.name,o),n.destroy()}destroy(){Vi("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(va||(va={}));wg.exports=va});var Sg=b(Zi=>{"use strict";var lN=Zi&&Zi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});var cN=lN(ji()),Hi=cN.default("https-proxy-agent:parse-proxy-response");function pN(e){return new Promise((t,r)=>{let n=0,o=[];function a(){let m=e.read();m?c(m):e.once("readable",a)}i(a,"read");function s(){e.removeListener("end",l),e.removeListener("error",p),e.removeListener("close",u),e.removeListener("readable",a)}i(s,"cleanup");function u(m){Hi("onclose had error %o",m)}i(u,"onclose");function l(){Hi("onend")}i(l,"onend");function p(m){s(),Hi("onerror %o",m),r(m)}i(p,"onerror");function c(m){o.push(m),n+=m.length;let f=Buffer.concat(o,n);if(f.indexOf(`\r
4
+ `+a),e.push(o+"m+"+va.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=cN()+t+" "+e[0]}i(lN,"formatArgs");function cN(){return dt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(cN,"getDate");function pN(...e){return process.stderr.write(ya.formatWithOptions(dt.inspectOpts,...e)+`
5
+ `)}i(pN,"log");function dN(e){e?process.env.DEBUG=e:delete process.env.DEBUG}i(dN,"save");function mN(){return process.env.DEBUG}i(mN,"load");function fN(e){e.inspectOpts={};let t=Object.keys(dt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=dt.inspectOpts[t[r]]}i(fN,"init");va.exports=sl()(dt);var{formatters:Eg}=va.exports;Eg.o=function(e){return this.inspectOpts.colors=this.useColors,ya.inspect(e,this.inspectOpts).split(`
6
+ `).map(t=>t.trim()).join(" ")};Eg.O=function(e){return this.inspectOpts.colors=this.useColors,ya.inspect(e,this.inspectOpts)}});var Vi=b((Nie,cl)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?cl.exports=kg():cl.exports=Ig()});var Cg=b(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});function hN(e){return function(t,r){return new Promise((n,o)=>{e.call(this,t,r,(a,s)=>{a?o(a):n(s)})})}}i(hN,"promisify");pl.default=hN});var zg=b((ml,Rg)=>{"use strict";var Og=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gN=require("events"),yN=Og(Vi()),vN=Og(Cg()),Hi=yN.default("agent-base");function bN(e){return!!e&&typeof e.addRequest=="function"}i(bN,"isAgent");function dl(){let{stack:e}=new Error;return typeof e!="string"?!1:e.split(`
7
+ `).some(t=>t.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1)}i(dl,"isSecureEndpoint");function ba(e,t){return new ba.Agent(e,t)}i(ba,"createAgent");(function(e){class t extends gN.EventEmitter{static{i(this,"Agent")}constructor(n,o){super();let a=o;typeof n=="function"?this.callback=n:n&&(a=n),this.timeout=null,a&&typeof a.timeout=="number"&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:dl()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:dl()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,o,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,o){let a=Object.assign({},o);typeof a.secureEndpoint!="boolean"&&(a.secureEndpoint=dl()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,u=null,l=a.timeout||this.timeout,p=i(d=>{n._hadError||(n.emit("error",d),n._hadError=!0)},"onerror"),c=i(()=>{u=null,s=!0;let d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",p(d)},"ontimeout"),m=i(d=>{s||(u!==null&&(clearTimeout(u),u=null),p(d))},"callbackError"),f=i(d=>{if(s)return;if(u!=null&&(clearTimeout(u),u=null),bN(d)){Hi("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(n,a);return}if(d){d.once("free",()=>{this.freeSocket(d,a)}),n.onSocket(d);return}let h=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);p(h)},"onsocket");if(typeof this.callback!="function"){p(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Hi("Converting legacy callback function to promise"),this.promisifiedCallback=vN.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(u=setTimeout(c,l)),"port"in a&&typeof a.port!="number"&&(a.port=Number(a.port));try{Hi("Resolving socket for %o request: %o",a.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,a)).then(f,m)}catch(d){Promise.reject(d).catch(m)}}freeSocket(n,o){Hi("Freeing socket %o %o",n.constructor.name,o),n.destroy()}destroy(){Hi("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(ba||(ba={}));Rg.exports=ba});var Dg=b(Zi=>{"use strict";var xN=Zi&&Zi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});var _N=xN(Vi()),Wi=_N.default("https-proxy-agent:parse-proxy-response");function kN(e){return new Promise((t,r)=>{let n=0,o=[];function a(){let m=e.read();m?c(m):e.once("readable",a)}i(a,"read");function s(){e.removeListener("end",l),e.removeListener("error",p),e.removeListener("close",u),e.removeListener("readable",a)}i(s,"cleanup");function u(m){Wi("onclose had error %o",m)}i(u,"onclose");function l(){Wi("onend")}i(l,"onend");function p(m){s(),Wi("onerror %o",m),r(m)}i(p,"onerror");function c(m){o.push(m),n+=m.length;let f=Buffer.concat(o,n);if(f.indexOf(`\r
8
8
  \r
9
- `)===-1){Hi("have not received end of HTTP headers yet..."),a();return}let h=f.toString("ascii",0,f.indexOf(`\r
10
- `)),_=+h.split(" ")[1];Hi("got proxy server response: %o",h),t({statusCode:_,buffered:f})}i(c,"ondata"),e.on("error",p),e.on("close",u),e.on("end",l),a()})}i(pN,"parseProxyResponse");Zi.default=pN});var Eg=b(fn=>{"use strict";var dN=fn&&fn.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},Vn=fn&&fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fn,"__esModule",{value:!0});var Tg=Vn(require("net")),Ag=Vn(require("tls")),mN=Vn(require("url")),fN=Vn(require("assert")),hN=Vn(ji()),gN=Pg(),yN=Vn(Sg()),Wi=hN.default("https-proxy-agent:agent"),pl=class extends gN.Agent{static{i(this,"HttpsProxyAgent")}constructor(t){let r;if(typeof t=="string"?r=mN.default.parse(t):r=t,!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 n=Object.assign({},r);this.secureProxy=r.secureProxy||xN(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(t,r){return dN(this,void 0,void 0,function*(){let{proxy:n,secureProxy:o}=this,a;o?(Wi("Creating `tls.Socket`: %o",n),a=Ag.default.connect(n)):(Wi("Creating `net.Socket`: %o",n),a=Tg.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
11
- `;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:p,port:c,secureEndpoint:m}=r;bN(c,m)||(p+=`:${c}`),s.Host=p,s.Connection="close";for(let v of Object.keys(s))l+=`${v}: ${s[v]}\r
12
- `;let f=yN.default(a);a.write(`${l}\r
13
- `);let{statusCode:d,buffered:h}=yield f;if(d===200){if(t.once("socket",vN),r.secureEndpoint){Wi("Upgrading socket connection to TLS");let v=r.servername||r.host;return Ag.default.connect(Object.assign(Object.assign({},_N(r,"host","hostname","path","port")),{socket:a,servername:v}))}return a}a.destroy();let _=new Tg.default.Socket({writable:!1});return _.readable=!0,t.once("socket",v=>{Wi("replaying proxy buffer for failed request"),fN.default(v.listenerCount("data")>0),v.push(h),v.push(null)}),_})}};fn.default=pl;function vN(e){e.resume()}i(vN,"resume");function bN(e,t){return!!(!t&&e===80||t&&e===443)}i(bN,"isDefaultPort");function xN(e){return typeof e=="string"?/^https:?$/i.test(e):!1}i(xN,"isHTTPS");function _N(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}i(_N,"omit")});var Cg=b((fl,Ig)=>{"use strict";var kN=fl&&fl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},dl=kN(Eg());function ml(e){return new dl.default(e)}i(ml,"createHttpsProxyAgent");(function(e){e.HttpsProxyAgent=dl.default,e.prototype=dl.default.prototype})(ml||(ml={}));Ig.exports=ml});var Rg=b((vie,Og)=>{var Gi;Og.exports=function(){if(!Gi){try{Gi=ji()("follow-redirects")}catch{}typeof Gi!="function"&&(Gi=i(function(){},"debug"))}Gi.apply(null,arguments)}});var Ug=b((xie,Tl)=>{var Ji=require("url"),Ki=Ji.URL,wN=require("http"),PN=require("https"),bl=require("stream").Writable,xl=require("assert"),zg=Rg();i(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=gn(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")},"detectUnsupportedEnvironment")();var _l=!1;try{xl(new Ki(""))}catch(e){_l=e.code==="ERR_INVALID_URL"}var SN=["Authorization","Proxy-Authorization","Cookie"],TN=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],kl=["abort","aborted","connect","error","socket","timeout"],wl=Object.create(null);kl.forEach(function(e){wl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var gl=Xi("ERR_INVALID_URL","Invalid URL",TypeError),yl=Xi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),AN=Xi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",yl),EN=Xi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),IN=Xi("ERR_STREAM_WRITE_AFTER_END","write after end"),CN=bl.prototype.destroy||Dg;function Ct(e,t){bl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof yl?o:new yl({cause:o}))}},this._headerFilter=new RegExp("^(?:"+SN.concat(e.sensitiveHeaders).map(NN).join("|")+")$","i"),this._performRequest()}i(Ct,"RedirectableRequest");Ct.prototype=Object.create(bl.prototype);Ct.prototype.abort=function(){Sl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Ct.prototype.destroy=function(e){return Sl(this._currentRequest,e),CN.call(this,e),this};Ct.prototype.write=function(e,t,r){if(this._ending)throw new IN;if(!hn(e)&&!$N(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(gn(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new EN),this.abort())};Ct.prototype.end=function(e,t,r){if(gn(e)?(r=e,e=t=null):gn(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};Ct.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Ct.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Ct.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}i(n,"destroyOnTimeout");function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),a()},e),n(s)}i(o,"startTimer");function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return i(a,"clearTimer"),t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Ct.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{get:i(function(){return this._currentRequest[e]},"get")})});Ct.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),zN(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};Ct.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of kl)n.on(o,wl[o]);if(this._currentUrl=/^\//.test(this._options.path)?Ji.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,u=this._requestBodyBuffers;i(function l(p){if(n===s._currentRequest)if(p)s.emit("error",p);else if(a<u.length){var c=u[a++];n.finished||n.write(c.data,c.encoding,l)}else s._ended&&n.end()},"writeNext")()}};Ct.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Sl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new AN;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hl(/^content-/i,this._options.headers));var s=hl(/^host$/i,this._options.headers),u=Pl(this._currentUrl),l=s||u.host,p=/^\w+:/.test(r)?this._currentUrl:Ji.format(Object.assign(u,{host:l})),c=ON(r,p);if(zg("redirecting to",c.href),this._isRedirect=!0,vl(c,this._options),(c.protocol!==u.protocol&&c.protocol!=="https:"||c.host!==l&&!RN(c.host,l))&&hl(this._headerFilter,this._options.headers),gn(o)){var m={headers:e.headers,statusCode:t},f={url:p,method:a,headers:n};o(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()};function $g(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",a=r[o]=e[n],s=t[n]=Object.create(a);function u(p,c,m){return DN(p)?p=vl(p):hn(p)?p=vl(Pl(p)):(m=c,c=Ng(p),p={protocol:o}),gn(c)&&(m=c,c=null),c=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},p,c),c.nativeProtocols=r,!hn(c.host)&&!hn(c.hostname)&&(c.hostname="::1"),xl.equal(c.protocol,o,"protocol mismatch"),zg("options",c),new Ct(c,m)}i(u,"request");function l(p,c,m){var f=s.request(p,c,m);return f.end(),f}i(l,"get"),Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),t}i($g,"wrap");function Dg(){}i(Dg,"noop");function Pl(e){var t;if(_l)t=new Ki(e);else if(t=Ng(Ji.parse(e)),!hn(t.protocol))throw new gl({input:e});return t}i(Pl,"parseUrl");function ON(e,t){return _l?new Ki(e,t):Pl(Ji.resolve(t,e))}i(ON,"resolveUrl");function Ng(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new gl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new gl({input:e.href||e});return e}i(Ng,"validateUrl");function vl(e,t){var r=t||{};for(var n of TN)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}i(vl,"spreadUrlObject");function hl(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}i(hl,"removeMatchingHeaders");function Xi(e,t,r){function n(o){gn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i(n,"CustomError"),n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}i(Xi,"createErrorType");function Sl(e,t){for(var r of kl)e.removeListener(r,wl[r]);e.on("error",Dg),e.destroy(t)}i(Sl,"destroyRequest");function RN(e,t){xl(hn(e)&&hn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}i(RN,"isSubdomain");function zN(e){return e instanceof Array}i(zN,"isArray");function hn(e){return typeof e=="string"||e instanceof String}i(hn,"isString");function gn(e){return typeof e=="function"}i(gn,"isFunction");function $N(e){return typeof e=="object"&&"length"in e}i($N,"isBuffer");function DN(e){return Ki&&e instanceof Ki}i(DN,"isURL");function NN(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}i(NN,"escapeRegex");Tl.exports=$g({http:wN,https:PN});Tl.exports.wrap=$g});var Hy=b((kie,Vy)=>{"use strict";var cy=rl(),UN=require("crypto"),MN=require("url"),py=Cg(),LN=require("http"),qN=require("https"),dy=require("http2"),jl=require("util"),Mg=require("path"),FN=Ug(),jt=require("zlib"),Ot=require("stream"),BN=require("events");function my(e,t){return i(function(){return e.apply(t,arguments)},"wrap")}i(my,"bind");var{toString:jN}=Object.prototype,{getPrototypeOf:Wn}=Object,{iterator:ro,toStringTag:fy}=Symbol,Pa=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Qi=i((e,t)=>{let r=e,n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),Pa(r,t))return!0;r=Wn(r)}return!1},"hasOwnInPrototypeChain"),VN=i((e,t)=>e!=null&&Qi(e,t)?e[t]:void 0,"getSafeProp"),Vl=(e=>t=>{let r=jN.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),nr=i(e=>(e=e.toLowerCase(),t=>Vl(t)===e),"kindOfTest"),Ca=i(e=>t=>typeof t===e,"typeOfTest"),{isArray:bn}=Array,Gn=Ca("undefined");function Jn(e){return e!==null&&!Gn(e)&&e.constructor!==null&&!Gn(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}i(Jn,"isBuffer");var hy=nr("ArrayBuffer");function HN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hy(e.buffer),t}i(HN,"isArrayBufferView");var ZN=Ca("string"),Rt=Ca("function"),gy=Ca("number"),Xn=i(e=>e!==null&&typeof e=="object","isObject"),WN=i(e=>e===!0||e===!1,"isBoolean"),_a=i(e=>{if(!Xn(e))return!1;let t=Wn(e);return(t===null||t===Object.prototype||Wn(t)===null)&&!Qi(e,fy)&&!Qi(e,ro)},"isPlainObject"),GN=i(e=>{if(!Xn(e)||Jn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},"isEmptyObject"),KN=nr("Date"),JN=nr("File"),XN=i(e=>!!(e&&typeof e.uri<"u"),"isReactNativeBlob"),YN=i(e=>e&&typeof e.getParts<"u","isReactNative"),QN=nr("Blob"),e0=nr("FileList"),t0=i(e=>Xn(e)&&Rt(e.pipe),"isStream");function r0(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}i(r0,"getGlobal");var Lg=r0(),qg=typeof Lg.FormData<"u"?Lg.FormData:void 0,n0=i(e=>{if(!e)return!1;if(qg&&e instanceof qg)return!0;let t=Wn(e);if(!t||t===Object.prototype||!Rt(e.append))return!1;let r=Vl(e);return r==="formdata"||r==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"},"isFormData"),i0=nr("URLSearchParams"),[o0,a0,s0,u0]=["ReadableStream","Request","Response","Headers"].map(nr),l0=i(e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function no(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),bn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Jn(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length,u;for(n=0;n<s;n++)u=a[n],t.call(null,e[u],u,e)}}i(no,"forEach");function yy(e,t){if(Jn(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}i(yy,"findKey");var yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vy=i(e=>!Gn(e)&&e!==yn,"isContextDefined");function $l(...e){let{caseless:t,skipUndefined:r}=vy(this)&&this||{},n={},o=i((a,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let u=t&&typeof s=="string"&&yy(n,s)||s,l=Pa(n,u)?n[u]:void 0;_a(l)&&_a(a)?n[u]=$l(l,a):_a(a)?n[u]=$l({},a):bn(a)?n[u]=a.slice():(!r||!Gn(a))&&(n[u]=a)},"assignValue");for(let a=0,s=e.length;a<s;a++){let u=e[a];if(!u||Jn(u)||(no(u,o),typeof u!="object"||bn(u)))continue;let l=Object.getOwnPropertySymbols(u);for(let p=0;p<l.length;p++){let c=l[p];_0.call(u,c)&&o(u[c],c)}}return n}i($l,"merge");var c0=i((e,t,r,{allOwnKeys:n}={})=>(no(t,(o,a)=>{r&&Rt(o)?Object.defineProperty(e,a,{__proto__:null,value:my(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),"extend"),p0=i(e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),"stripBOM"),d0=i((e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},"inherits"),m0=i((e,t,r,n)=>{let o,a,s,u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Wn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},"toFlatObject"),f0=i((e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},"endsWith"),h0=i(e=>{if(!e)return null;if(bn(e))return e;let t=e.length;if(!gy(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},"toArray"),g0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wn(Uint8Array)),y0=i((e,t)=>{let n=(e&&e[ro]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1])}},"forEachEntry"),v0=i((e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},"matchAll"),b0=nr("HTMLFormElement"),x0=i(e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,i(function(r,n,o){return n.toUpperCase()+o},"replacer")),"toCamelCase"),{propertyIsEnumerable:_0}=Object.prototype,k0=nr("RegExp"),by=i((e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};no(r,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(n[a]=s||o)}),Object.defineProperties(e,n)},"reduceDescriptors"),w0=i(e=>{by(e,(t,r)=>{if(Rt(e)&&["arguments","caller","callee"].includes(r))return!1;let n=e[r];if(Rt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},"freezeMethods"),P0=i((e,t)=>{let r={},n=i(o=>{o.forEach(a=>{r[a]=!0})},"define");return bn(e)?n(e):n(String(e).split(t)),r},"toObjectSet"),S0=i(()=>{},"noop"),T0=i((e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,"toFiniteNumber");function A0(e){return!!(e&&Rt(e.append)&&e[fy]==="FormData"&&e[ro])}i(A0,"isSpecCompliantForm");var E0=i(e=>{let t=new WeakSet,r=i(n=>{if(Xn(n)){if(t.has(n))return;if(Jn(n))return n;if(!("toJSON"in n)){t.add(n);let o=bn(n)?[]:{};return no(n,(a,s)=>{let u=r(a);!Gn(u)&&(o[s]=u)}),t.delete(n),o}}return n},"visit");return r(e)},"toJSONObject"),I0=nr("AsyncFunction"),C0=i(e=>e&&(Xn(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),"isThenable"),xy=((e,t)=>e?setImmediate:t?((r,n)=>(yn.addEventListener("message",({source:o,data:a})=>{o===yn&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),yn.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Rt(yn.postMessage)),O0=typeof queueMicrotask<"u"?queueMicrotask.bind(yn):typeof process<"u"&&process.nextTick||xy,_y=i(e=>e!=null&&Rt(e[ro]),"isIterable"),R0=i(e=>e!=null&&Qi(e,ro)&&_y(e),"isSafeIterable"),P={isArray:bn,isArrayBuffer:hy,isBuffer:Jn,isFormData:n0,isArrayBufferView:HN,isString:ZN,isNumber:gy,isBoolean:WN,isObject:Xn,isPlainObject:_a,isEmptyObject:GN,isReadableStream:o0,isRequest:a0,isResponse:s0,isHeaders:u0,isUndefined:Gn,isDate:KN,isFile:JN,isReactNativeBlob:XN,isReactNative:YN,isBlob:QN,isRegExp:k0,isFunction:Rt,isStream:t0,isURLSearchParams:i0,isTypedArray:g0,isFileList:e0,forEach:no,merge:$l,extend:c0,trim:l0,stripBOM:p0,inherits:d0,toFlatObject:m0,kindOf:Vl,kindOfTest:nr,endsWith:f0,toArray:h0,forEachEntry:y0,matchAll:v0,isHTMLForm:b0,hasOwnProperty:Pa,hasOwnProp:Pa,hasOwnInPrototypeChain:Qi,getSafeProp:VN,reduceDescriptors:by,freezeMethods:w0,toObjectSet:P0,toCamelCase:x0,noop:S0,toFiniteNumber:T0,findKey:yy,global:yn,isContextDefined:vy,isSpecCompliantForm:A0,toJSONObject:E0,isAsyncFn:I0,isThenable:C0,setImmediate:xy,asap:O0,isIterable:_y,isSafeIterable:R0},z0=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$0=i(e=>{let t={},r,n,o;return e&&e.split(`
14
- `).forEach(i(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&z0[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)},"parser")),t},"parseHeaders");function D0(e){let t=0,r=e.length;for(;t<r;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){let n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}i(D0,"trimSPorHTAB");var N0=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),U0=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Hl(e,t){return P.isArray(e)?e.map(r=>Hl(r,t)):D0(String(e).replace(t,""))}i(Hl,"sanitizeValue");var M0=i(e=>Hl(e,N0),"sanitizeHeaderValue"),L0=i(e=>Hl(e,U0),"sanitizeByteStringHeaderValue");function Zl(e){let t=Object.create(null);return P.forEach(e.toJSON(),(r,n)=>{t[n]=L0(r)}),t}i(Zl,"toByteStringHeaderObject");var Fg=Symbol("internals");function Yi(e){return e&&String(e).trim().toLowerCase()}i(Yi,"normalizeHeader");function ka(e){return e===!1||e==null?e:P.isArray(e)?e.map(ka):M0(String(e))}i(ka,"normalizeValue");function q0(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}i(q0,"parseTokens");var F0=i(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),"isValidHeaderName");function Al(e,t,r,n,o){if(P.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!P.isString(t)){if(P.isString(n))return t.indexOf(n)!==-1;if(P.isRegExp(n))return n.test(t)}}i(Al,"matchHeaderValue");function B0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}i(B0,"formatHeader");function j0(e,t){let r=P.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:i(function(o,a,s){return this[n].call(this,t,o,a,s)},"value"),configurable:!0})})}i(j0,"buildAccessors");var et=class{static{i(this,"AxiosHeaders")}constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(u,l,p){let c=Yi(l);if(!c)return;let m=P.findKey(o,c);(!m||o[m]===void 0||p===!0||p===void 0&&o[m]!==!1)&&(o[m||l]=ka(u))}i(a,"setHeader");let s=i((u,l)=>P.forEach(u,(p,c)=>a(p,c,l)),"setHeaders");if(P.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(P.isString(t)&&(t=t.trim())&&!F0(t))s($0(t),r);else if(P.isObject(t)&&P.isSafeIterable(t)){let u=Object.create(null),l,p;for(let c of t){if(!P.isArray(c))throw new TypeError("Object iterator must return a key-value pair");p=c[0],P.hasOwnProp(u,p)?(l=u[p],u[p]=P.isArray(l)?[...l,c[1]]:[l,c[1]]):u[p]=c[1]}s(u,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Yi(t),t){let n=P.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return q0(o);if(P.isFunction(r))return r.call(this,o,n);if(P.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Yi(t),t){let n=P.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Al(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(s){if(s=Yi(s),s){let u=P.findKey(n,s);u&&(!r||Al(n,n[u],u,r))&&(delete n[u],o=!0)}}return i(a,"deleteHeader"),P.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Al(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return P.forEach(this,(o,a)=>{let s=P.findKey(n,a);if(s){r[s]=ka(o),delete r[a];return}let u=t?B0(a):String(a).trim();u!==a&&delete r[a],r[u]=ka(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return P.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&P.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
15
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[Fg]=this[Fg]={accessors:{}}).accessors,o=this.prototype;function a(s){let u=Yi(s);n[u]||(j0(o,s),n[u]=!0)}return i(a,"defineAccessor"),P.isArray(t)?t.forEach(a):a(t),this}};et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(et.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:i(()=>e,"get"),set(n){this[r]=n}}});P.freezeMethods(et);var V0="[REDACTED ****]";function H0(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}i(H0,"hasOwnOrPrototypeToJSON");function Z0(e,t){let r=new Set(t.map(a=>String(a).toLowerCase())),n=[],o=i(a=>{if(a===null||typeof a!="object"||P.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof et&&(a=a.toJSON()),n.push(a);let s;if(P.isArray(a))s=[],a.forEach((u,l)=>{let p=o(u);P.isUndefined(p)||(s[l]=p)});else{if(!P.isPlainObject(a)&&H0(a))return n.pop(),a;s=Object.create(null);for(let[u,l]of Object.entries(a)){let p=r.has(u.toLowerCase())?V0:o(l);P.isUndefined(p)||(s[u]=p)}}return n.pop(),s},"visit");return o(e)}i(Z0,"redactConfig");var $=class e extends Error{static{i(this,"AxiosError")}static from(t,r,n,o,a,s){let u=new e(t.message,r||t.code,n,o,a);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),s&&Object.assign(u,s),u}constructor(t,r,n,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){let t=this.config,r=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,n=P.isArray(r)&&r.length>0?Z0(t,r):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};$.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";$.ERR_BAD_OPTION="ERR_BAD_OPTION";$.ECONNABORTED="ECONNABORTED";$.ETIMEDOUT="ETIMEDOUT";$.ECONNREFUSED="ECONNREFUSED";$.ERR_NETWORK="ERR_NETWORK";$.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";$.ERR_DEPRECATED="ERR_DEPRECATED";$.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";$.ERR_BAD_REQUEST="ERR_BAD_REQUEST";$.ERR_CANCELED="ERR_CANCELED";$.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";$.ERR_INVALID_URL="ERR_INVALID_URL";$.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ky=100;function Dl(e){return P.isPlainObject(e)||P.isArray(e)}i(Dl,"isVisitable");function wy(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}i(wy,"removeBrackets");function El(e,t,r){return e?e.concat(t).map(i(function(o,a){return o=wy(o),!r&&a?"["+o+"]":o},"each")).join(r?".":""):t}i(El,"renderKey");function W0(e){return P.isArray(e)&&!e.some(Dl)}i(W0,"isFlatArray");var G0=P.toFlatObject(P,{},null,i(function(t){return/^is[A-Z]/.test(t)},"filter"));function Oa(e,t,r){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new(cy||FormData),r=P.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,i(function(w,S){return!P.isUndefined(S[w])},"defined"));let n=r.metaTokens,o=r.visitor||h,a=r.dots,s=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?ky:r.maxDepth,p=u&&P.isSpecCompliantForm(t),c=[];if(!P.isFunction(o))throw new TypeError("visitor must be a function");function m(y){if(y===null)return"";if(P.isDate(y))return y.toISOString();if(P.isBoolean(y))return y.toString();if(!p&&P.isBlob(y))throw new $("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(y)||P.isTypedArray(y)?p&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}i(m,"convertValue");function f(y){if(y>l)throw new $("Object is too deeply nested ("+y+" levels). Max depth: "+l,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}i(f,"throwIfMaxDepthExceeded");function d(y,w){if(l===1/0)return JSON.stringify(y);let S=[];return JSON.stringify(y,i(function(F,M){if(!P.isObject(M))return M;for(;S.length&&S[S.length-1]!==this;)S.pop();return S.push(M),f(w+S.length-1),M},"limitDepth"))}i(d,"stringifyWithDepthLimit");function h(y,w,S){let O=y;if(P.isReactNative(t)&&P.isReactNativeBlob(y))return t.append(El(S,w,a),m(y)),!1;if(y&&!S&&typeof y=="object"){if(P.endsWith(w,"{}"))w=n?w:w.slice(0,-2),y=d(y,1);else if(P.isArray(y)&&W0(y)||(P.isFileList(y)||P.endsWith(w,"[]"))&&(O=P.toArray(y)))return w=wy(w),O.forEach(i(function(M,V){!(P.isUndefined(M)||M===null)&&t.append(s===!0?El([w],V,a):s===null?w:w+"[]",m(M))},"each")),!1}return Dl(y)?!0:(t.append(El(S,w,a),m(y)),!1)}i(h,"defaultVisitor");let _=Object.assign(G0,{defaultVisitor:h,convertValue:m,isVisitable:Dl});function v(y,w,S=0){if(!P.isUndefined(y)){if(f(S),c.indexOf(y)!==-1)throw new Error("Circular reference detected in "+w.join("."));c.push(y),P.forEach(y,i(function(F,M){(!(P.isUndefined(F)||F===null)&&o.call(t,F,P.isString(M)?M.trim():M,w,_))===!0&&v(F,w?w.concat(M):[M],S+1)},"each")),c.pop()}}if(i(v,"build"),!P.isObject(e))throw new TypeError("data must be an object");return v(e),t}i(Oa,"toFormData");function Bg(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,i(function(n){return t[n]},"replacer"))}i(Bg,"encode$1");function Py(e,t){this._pairs=[],e&&Oa(e,this,t)}i(Py,"AxiosURLSearchParams");var Sy=Py.prototype;Sy.append=i(function(t,r){this._pairs.push([t,r])},"append");Sy.toString=i(function(t){let r=t?function(n){return t.call(this,n,Bg)}:Bg;return this._pairs.map(i(function(o){return r(o[0])+"="+r(o[1])},"each"),"").join("&")},"toString");function K0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}i(K0,"encode");function Wl(e,t,r){if(!t)return e;let n=P.isFunction(r)?{serialize:r}:r,o=P.getSafeProp(n,"encode")||K0,a=P.getSafeProp(n,"serialize"),s;if(a?s=a(t,n):s=P.isURLSearchParams(t)?t.toString():new Py(t,n).toString(o),s){let u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}i(Wl,"buildURL");var Sa=class{static{i(this,"InterceptorManager")}constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,i(function(n){n!==null&&t(n)},"forEachHandler"))}},Ra={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},J0=MN.URLSearchParams,Il="abcdefghijklmnopqrstuvwxyz",jg="0123456789",Ty={DIGIT:jg,ALPHA:Il,ALPHA_DIGIT:Il+Il.toUpperCase()+jg},X0=i((e=16,t=Ty.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);UN.randomFillSync(o);for(let a=0;a<e;a++)r+=t[o[a]%n];return r},"generateString"),Y0={isNode:!0,classes:{URLSearchParams:J0,FormData:cy,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Ty,generateString:X0,protocols:["http","https","file","data"]},Gl=typeof window<"u"&&typeof document<"u",Nl=typeof navigator=="object"&&navigator||void 0,Q0=Gl&&(!Nl||["ReactNative","NativeScript","NS"].indexOf(Nl.product)<0),eU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tU=Gl&&window.location.href||"http://localhost",rU=Object.freeze({__proto__:null,hasBrowserEnv:Gl,hasStandardBrowserEnv:Q0,hasStandardBrowserWebWorkerEnv:eU,navigator:Nl,origin:tU}),Ve={...rU,...Y0};function nU(e,t){return Oa(e,new Ve.classes.URLSearchParams,{visitor:i(function(r,n,o,a){return Ve.isNode&&P.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},"visitor"),...t})}i(nU,"toURLEncodedForm");var Vg=ky;function Ay(e){if(e>Vg)throw new $("FormData field is too deeply nested ("+e+" levels). Max depth: "+Vg,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}i(Ay,"throwIfDepthExceeded");function iU(e){let t=[],r=/\w+|\[(\w*)]/g,n;for(;(n=r.exec(e))!==null;)Ay(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}i(iU,"parsePropPath");function oU(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}i(oU,"arrayToObject");function Ey(e){function t(r,n,o,a){Ay(a);let s=r[a++];if(s==="__proto__")return!0;let u=Number.isFinite(+s),l=a>=r.length;return s=!s&&P.isArray(o)?o.length:s,l?(P.hasOwnProp(o,s)?o[s]=P.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!u):((!P.hasOwnProp(o,s)||!P.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],a)&&P.isArray(o[s])&&(o[s]=oU(o[s])),!u)}if(i(t,"buildPath"),P.isFormData(e)&&P.isFunction(e.entries)){let r={};return P.forEachEntry(e,(n,o)=>{t(iU(n),o,r,0)}),r}return null}i(Ey,"formDataToJSON");var Hn=i((e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0,"own");function aU(e,t,r){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}i(aU,"stringifySafely");var io={transitional:Ra,adapter:["xhr","http","fetch"],transformRequest:[i(function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=P.isObject(t);if(a&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Ey(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){let l=Hn(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return nU(t,l).toString();if((u=P.isFileList(t))||n.indexOf("multipart/form-data")>-1){let p=Hn(this,"env"),c=p&&p.FormData;return Oa(u?{"files[]":t}:t,c&&new c,l)}}return a||o?(r.setContentType("application/json",!1),aU(t)):t},"transformRequest")],transformResponse:[i(function(t){let r=Hn(this,"transitional")||io.transitional,n=r&&r.forcedJSONParsing,o=Hn(this,"responseType"),a=o==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(n&&!o||a)){let u=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,Hn(this,"parseReviver"))}catch(l){if(u)throw l.name==="SyntaxError"?$.from(l,$.ERR_BAD_RESPONSE,this,null,Hn(this,"response")):l}}return t},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:i(function(t){return t>=200&&t<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{io.headers[e]={}});function Cl(e,t){let r=this||io,n=t||r,o=et.from(n.headers),a=n.data;return P.forEach(e,i(function(u){a=u.call(r,a,o.normalize(),t?t.status:void 0)},"transform")),o.normalize(),a}i(Cl,"transformData");function Iy(e){return!!(e&&e.__CANCEL__)}i(Iy,"isCancel");var Or=class extends ${static{i(this,"CanceledError")}constructor(t,r,n){super(t??"canceled",$.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zn(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $("Request failed with status code "+r.status,r.status>=400&&r.status<500?$.ERR_BAD_REQUEST:$.ERR_BAD_RESPONSE,r.config,r.request,r))}i(Zn,"settle");function sU(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i(sU,"isAbsoluteURL");function uU(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i(uU,"combineURLs");var lU=/^https?:(?!\/\/)/i,cU=/[\t\n\r]/g;function pU(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}i(pU,"stripLeadingC0ControlOrSpace");function dU(e){return pU(e).replace(cU,"")}i(dU,"normalizeURLForProtocolCheck");function Hg(e,t){if(typeof e=="string"&&lU.test(dU(e)))throw new $('Invalid URL: missing "//" after protocol',$.ERR_INVALID_URL,t)}i(Hg,"assertValidHttpProtocolURL");function Kl(e,t,r,n){Hg(t,n);let o=!sU(t);return e&&(o||r===!1)?(Hg(e,n),uU(e,t)):t}i(Kl,"buildFullPath");var mU={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function fU(e){try{return new URL(e)}catch{return null}}i(fU,"parseUrl");function hU(e){var t=(typeof e=="string"?fU(e):e)||{},r=t.protocol,n=t.host,o=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||mU[r]||0,!gU(n,o)))return"";var a=Ul(r+"_proxy")||Ul("all_proxy");return a&&a.indexOf("://")===-1&&(a=r+"://"+a),a}i(hU,"getProxyForUrl");function gU(e,t){var r=Ul("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,s=o?parseInt(o[2]):0;return s&&s!==t?!0:/^[.*]/.test(a)?(a.charAt(0)==="*"&&(a=a.slice(1)),!e.endsWith(a)):e!==a}):!0}i(gU,"shouldProxy");function Ul(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}i(Ul,"getEnv");var eo="1.18.0";function Cy(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}i(Cy,"parseProtocol");var yU=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function vU(e,t,r){let n=r&&r.Blob||Ve.classes.Blob,o=Cy(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let a=yU.exec(e);if(!a)throw new $("Invalid URL",$.ERR_INVALID_URL);let s=a[1],u=a[2],l=a[3]?"base64":"utf8",p=a[4],c;s?c=u?s+u:s:u&&(c="text/plain"+u);let m=Buffer.from(decodeURIComponent(p),l);if(t){if(!n)throw new $("Blob is not supported",$.ERR_NOT_SUPPORT);return new n([m],{type:c})}return m}throw new $("Unsupported protocol "+o,$.ERR_NOT_SUPPORT)}i(vU,"fromDataURI");var Ol=Symbol("internals"),Ta=class extends Ot.Transform{static{i(this,"AxiosTransformStream")}constructor(t){t=P.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!P.isUndefined(o[n])),super({readableHighWaterMark:t.chunkSize});let r=this[Ol]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){let r=this[Ol];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[Ol],a=o.maxRate,s=this.readableHighWaterMark,u=o.timeWindow,l=1e3/u,p=a/l,c=o.minChunkSize!==!1?Math.max(o.minChunkSize,p*.01):0,m=i((d,h)=>{let _=Buffer.byteLength(d);o.bytesSeen+=_,o.bytes+=_,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(d)?process.nextTick(h):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(h)}},"pushChunk"),f=i((d,h)=>{let _=Buffer.byteLength(d),v=null,y=s,w,S=0;if(a){let O=Date.now();(!o.ts||(S=O-o.ts)>=u)&&(o.ts=O,w=p-o.bytes,o.bytes=w<0?-w:0,S=0),w=p-o.bytes}if(a){if(w<=0)return setTimeout(()=>{h(null,d)},u-S);w<y&&(y=w)}y&&_>y&&_-y>c&&(v=d.subarray(y),d=d.subarray(0,y)),m(d,v?()=>{process.nextTick(h,null,v)}:h)},"transformChunk");f(t,i(function d(h,_){if(h)return n(h);_?f(_,d):n(null)},"transformNextChunk"))}},{asyncIterator:Zg}=Symbol,Oy=i(async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Zg]?yield*e[Zg]():yield e},"readBlob"),bU=Ve.ALPHABET.ALPHA_DIGIT+"-_",to=typeof TextEncoder=="function"?new TextEncoder:new jl.TextEncoder,vn=`\r
16
- `,xU=to.encode(vn),_U=2,Ml=class{static{i(this,"FormDataPart")}constructor(t,r){let{escapeName:n}=this.constructor,o=P.isString(r),a=`Content-Disposition: form-data; name="${n(t)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${vn}`;if(o)r=to.encode(String(r).replace(/\r?\n|\r\n?/g,vn));else{let s=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");a+=`Content-Type: ${s}${vn}`}this.headers=to.encode(a+vn),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+_U,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;P.isTypedArray(t)?yield t:yield*Oy(t),yield xU}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},kU=i((e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:a=n+"-"+Ve.generateString(o,bU)}=r||{};if(!P.isFormData(e))throw new TypeError("FormData instance required");if(a.length<1||a.length>70)throw new Error("boundary must be 1-70 characters long");let s=to.encode("--"+a+vn),u=to.encode("--"+a+"--"+vn),l=u.byteLength,p=Array.from(e.entries()).map(([m,f])=>{let d=new Ml(m,f);return l+=d.size,d});l+=s.byteLength*p.length,l=P.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(l)&&(c["Content-Length"]=l),t&&t(c),Ot.Readable.from((async function*(){for(let m of p)yield s,yield*m.encode();yield u})())},"formDataToStream"),Ll=class extends Ot.Transform{static{i(this,"ZlibHeaderTransformStream")}__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(t,r,n)}},ql=class{static{i(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[t];if(n){let m=n.length;for(let f=0;f<m;f++){let[d,h]=n[f];if(!d.destroyed&&!d.closed&&jl.isDeepStrictEqual(h,r))return d}}let o=dy.connect(t,r),a,s,u=i(()=>{if(a)return;a=!0,s&&(clearTimeout(s),s=null);let m=n,f=m.length,d=f;for(;d--;)if(m[d][0]===o){f===1?delete this.sessions[t]:m.splice(d,1),o.closed||o.close();return}},"removeSession"),l=o.request,{sessionTimeout:p}=r;if(p!=null){let m=0;o.request=function(){let f=l.apply(this,arguments);return m++,s&&(clearTimeout(s),s=null),f.once("close",()=>{--m||(s=setTimeout(()=>{s=null,u()},p))}),f}}o.once("close",u);let c=[o,r];return n?n.push(c):n=this.sessions[t]=[c],o}},wU=i((e,t)=>P.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(o=>{try{t?n(null,...t(o)):n(null,o)}catch(a){n(a)}},n)}:e,"callbackify"),PU=new Set(["localhost","0.0.0.0"]),Ry=i(e=>{let t=e.split(".");return t.length!==4||t[0]!=="127"?!1:t.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},"isIPv4Loopback"),Rl=i(e=>/^0{1,4}$/.test(e),"isIPv6ZeroGroup"),SU=i(e=>{if(e==="::")return!0;let t=e.indexOf("::");if(t!==-1){if(t!==e.lastIndexOf("::"))return!1;let n=e.slice(0,t),o=e.slice(t+2),a=n?n.split(":"):[],s=o?o.split(":"):[];return a.length+s.length<8&&a.every(Rl)&&s.every(Rl)}let r=e.split(":");return r.length===8&&r.every(Rl)},"isIPv6Unspecified"),TU=i(e=>{if(e==="::1")return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return Ry(t[1]);let r=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=e.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},"isIPv6Loopback"),Wg=i(e=>e?PU.has(e)||Ry(e)||SU(e)?!0:TU(e):!1,"isLoopback"),AU={http:80,https:443,ws:80,wss:443,ftp:21},EU=i(e=>{let t=e,r=0;if(t.charAt(0)==="["){let a=t.indexOf("]");if(a!==-1){let s=t.slice(1,a),u=t.slice(a+1);return u.charAt(0)===":"&&/^\d+$/.test(u.slice(1))&&(r=Number.parseInt(u.slice(1),10)),[s,r]}}let n=t.indexOf(":"),o=t.lastIndexOf(":");return n!==-1&&n===o&&/^\d+$/.test(t.slice(o+1))&&(r=Number.parseInt(t.slice(o+1),10),t=t.slice(0,o)),[t,r]},"parseNoProxyEntry"),IU=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,CU=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,OU=i(e=>{if(typeof e!="string"||e.indexOf(":")===-1)return e;let t=e.match(IU);if(t)return t[1];let r=e.match(CU);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return e},"unmapIPv4MappedIPv6"),Gg=i(e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),OU(e.replace(/\.+$/,""))),"normalizeNoProxyHost");function RU(e){let t;try{t=new URL(e)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let n=Number.parseInt(t.port,10)||AU[t.protocol.split(":",1)[0]]||0,o=Gg(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(a=>{if(!a)return!1;let[s,u]=EU(a);return s=Gg(s),!s||u&&u!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?o.endsWith(s):o===s||Wg(o)&&Wg(s))})}i(RU,"shouldBypassProxy");function zU(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,s;return t=t!==void 0?t:1e3,i(function(l){let p=Date.now(),c=n[a];s||(s=p),r[o]=l,n[o]=p;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),p-s<t)return;let d=c&&p-c;return d?Math.round(f*1e3/d):void 0},"push")}i(zU,"speedometer");function $U(e,t){let r=0,n=1e3/t,o,a,s=i((p,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e(...p)},"invoke");return[i((...p)=>{let c=Date.now(),m=c-r;m>=n?s(p,c):(o=p,a||(a=setTimeout(()=>{a=null,s(o)},n-m)))},"throttled"),i(()=>o&&s(o),"flush")]}i($U,"throttle");var Kn=i((e,t,r=3)=>{let n=0,o=zU(50,250);return $U(a=>{if(!a||typeof a.loaded!="number")return;let s=a.loaded,u=a.lengthComputable?a.total:void 0,l=u!=null?Math.min(s,u):s,p=Math.max(0,l-n),c=o(p);n=Math.max(n,l);let m={loaded:l,total:u,progress:u?l/u:void 0,bytes:p,rate:c||void 0,estimated:c&&u?(u-l)/c:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},r)},"progressEventReducer"),Aa=i((e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},"progressEventDecorator"),Ea=i(e=>(...t)=>P.asap(()=>e(...t)),"asyncDecorator"),Ia=i(e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,"isHexDigit"),DU=i((e,t,r)=>t+2<r&&Ia(e.charCodeAt(t+1))&&Ia(e.charCodeAt(t+2)),"isPercentEncodedByte");function zy(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let s=n.length,u=n.length;for(let d=0;d<u;d++)if(n.charCodeAt(d)===37&&d+2<u){let h=n.charCodeAt(d+1),_=n.charCodeAt(d+2);Ia(h)&&Ia(_)&&(s-=2,d+=2)}let l=0,p=u-1,c=i(d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100),"tailIsPct3D");p>=0&&(n.charCodeAt(p)===61?(l++,p--):c(p)&&(l++,p-=3)),l===1&&p>=0&&(n.charCodeAt(p)===61||c(p))&&l++;let f=Math.floor(s/4)*3-(l||0);return f>0?f:0}let a=0;for(let s=0,u=n.length;s<u;s++){let l=n.charCodeAt(s);if(l===37&&DU(n,s,u))a+=1,s+=2;else if(l<128)a+=1;else if(l<2048)a+=2;else if(l>=55296&&l<=56319&&s+1<u){let p=n.charCodeAt(s+1);p>=56320&&p<=57343?(a+=4,s++):a+=3}else a+=3}return a}i(zy,"estimateDataURLDecodedBytes");var Kg={flush:jt.constants.Z_SYNC_FLUSH,finishFlush:jt.constants.Z_SYNC_FLUSH},NU={flush:jt.constants.BROTLI_OPERATION_FLUSH,finishFlush:jt.constants.BROTLI_OPERATION_FLUSH},UU={flush:jt.constants.ZSTD_e_flush,finishFlush:jt.constants.ZSTD_e_flush},$y=P.isFunction(jt.createBrotliDecompress),Dy=P.isFunction(jt.createZstdDecompress),Ny="gzip, compress, deflate"+($y?", br":""),MU=Ny+(Dy?", zstd":""),{http:LU,https:qU}=FN,Uy=/https:?/,FU=["content-type","content-length"];function BU(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{FU.includes(n.toLowerCase())&&e.set(n,o)})}i(BU,"setFormDataHeaders$1");var Jg=Symbol("axios.http.socketListener"),ba=Symbol("axios.http.currentReq"),My=Symbol("axios.http.installedTunnel"),jU=new Map,Xg=new WeakMap;function VU(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||"")+"#"+(e.auth||""),n=t?Xg.get(t)||Xg.set(t,new Map).get(t):jU,o=n.get(r);if(o)return o;let a=t&&t.options?{...t.options,...e}:e;if(o=new py(a),t&&t.options){let s={...t.options},u=o.callback;o.callback=i(function(p,c){return u.call(this,p,{...s,...c})},"axiosTunnelingAgentCallback")}return o[My]=!0,n.set(r,o),o}i(VU,"getTunnelingAgent");var Yg=Ve.protocols.map(e=>e+":"),Qg=i(e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe$1"),ey=i((e,[t,r])=>(e.on("end",r).on("error",r),t),"flushOnFinish"),HU=new ql;function ZU(e,t,r){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,r),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,r)}i(ZU,"dispatchBeforeRedirect");function WU(e,t){e&&Object.keys(e).forEach(r=>{t.has(r.toLowerCase())&&delete e[r]})}i(WU,"stripMatchingHeaders");function GU(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}i(GU,"isSameOriginRedirect");function Ly(e,t,r,n,o){let a=t;if(!a&&a!==!1){let s=hU(r);s&&(RU(r)||(a=new URL(s)))}if(n&&e.headers)for(let s of Object.keys(e.headers))s.toLowerCase()==="proxy-authorization"&&delete e.headers[s];if(n&&e.agent&&e.agent[My]&&(e.agent=void 0),a){let s=a instanceof URL,u=i(f=>s||P.hasOwnProp(a,f)?a[f]:void 0,"readProxyField"),l=u("username"),p=u("password"),c=P.hasOwnProp(a,"auth")?a.auth:void 0;if(l&&(c=(l||"")+":"+(p||"")),c){let f=typeof c=="object",d=f&&P.hasOwnProp(c,"username")?c.username:void 0,h=f&&P.hasOwnProp(c,"password")?c.password:void 0;if(!!(d||h))c=(d||"")+":"+(h||"");else if(f)throw new $("Invalid proxy authorization",$.ERR_BAD_OPTION,{proxy:a})}if(Uy.test(e.protocol)){if(!(o instanceof py)){let f=u("hostname")||u("host"),d=u("port"),h=u("protocol"),_=h?h.includes(":")?h:`${h}:`:"http:",v=f&&f.includes(":")&&!f.startsWith("[")?`[${f}]`:f,y=new URL(`${_}//${v}${d?":"+d:""}`),w={protocol:y.protocol,hostname:y.hostname.replace(/^\[|\]$/g,""),port:y.port,auth:c&&typeof c=="string"?c:void 0};y.protocol==="https:"&&(w.ALPNProtocols=["http/1.1"]);let S=VU(w,o);e.agent=S,e.agents&&(e.agents.https=S)}}else{if(c){let _=Buffer.from(c,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+_}let f=!1;for(let _ of Object.keys(e.headers))if(_.toLowerCase()==="host"){f=!0;break}f||(e.headers.host=e.hostname+(e.port?":"+e.port:""));let d=u("hostname")||u("host");e.hostname=d,e.host=d,e.port=u("port"),e.path=r;let h=u("protocol");h&&(e.protocol=h.includes(":")?h:`${h}:`)}}e.beforeRedirects.proxy=i(function(u){Ly(u,t,u.href,!0,o)},"beforeRedirect")}i(Ly,"setProxy");var KU=typeof process<"u"&&P.kindOf(process)==="process",JU=i(e=>new Promise((t,r)=>{let n,o,a=i((l,p)=>{o||(o=!0,n&&n(l,p))},"done"),s=i(l=>{a(l),t(l)},"_resolve"),u=i(l=>{a(l,!0),r(l)},"_reject");e(s,u,l=>n=l).catch(u)}),"wrapAsync"),XU=i(({address:e,family:t})=>{if(!P.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},"resolveFamily"),ty=i((e,t)=>XU(P.isObject(e)?e:{address:e,family:t}),"buildAddressEntry"),YU={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:n,headers:o}=e,a=HU.getSession(r,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:p}=dy.constants,c={[s]:e.protocol.replace(":",""),[u]:e.method,[l]:e.path};P.forEach(o,(f,d)=>{d.charAt(0)!==":"&&(c[d]=f)});let m=a.request(c);return m.once("response",f=>{let d=m;f=Object.assign({},f);let h=f[p];delete f[p],d.headers=f,d.statusCode=+h,t(d)}),m}},QU=KU&&i(function(t){return JU(i(async function(n,o,a){let s=i(U=>P.getSafeProp(t,U),"own"),u=s("transitional")||Ra,l=s("data"),p=s("lookup"),c=s("family"),m=s("httpVersion");m===void 0&&(m=1);let f=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),_=s("httpAgent"),v=s("httpsAgent"),y=s("method").toUpperCase(),w=s("maxRedirects"),S=s("maxBodyLength"),O=s("maxContentLength"),F=s("decompress"),M,V=!1,q,J;if(m=+m,Number.isNaN(m))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(m!==1&&m!==2)throw TypeError(`Unsupported protocol version '${m}'`);let Z=m===2;if(p){let U=wU(p,L=>P.isArray(L)?L:[L]);p=i((L,ae,ve)=>{U(L,ae,(de,Ze,De)=>{if(de)return ve(de);let Le=P.isArray(Ze)?Ze.map(Lr=>ty(Lr)):[ty(Ze,De)];ae.all?ve(de,Le):ve(de,Le[0].address,Le[0].family)})},"lookup")}let N=new BN.EventEmitter;function j(U){try{N.emit("abort",!U||U.type?new Or(null,t,q):U)}catch{}}i(j,"abort");function pe(){J&&(clearTimeout(J),J=null)}i(pe,"clearConnectPhaseTimer");function ee(){let U=s("timeout"),L=U?"timeout of "+U+"ms exceeded":"timeout exceeded",ae=s("timeoutErrorMessage");return ae&&(L=ae),new $(L,u.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,q)}i(ee,"createTimeoutError"),N.once("abort",o);let Fe=i(()=>{pe(),t.cancelToken&&t.cancelToken.unsubscribe(j),t.signal&&t.signal.removeEventListener("abort",j),N.removeAllListeners()},"onFinished");(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(j),t.signal&&(t.signal.aborted?j():t.signal.addEventListener("abort",j))),a((U,L)=>{if(M=!0,pe(),L){V=!0,Fe();return}let{data:ae}=U;if(ae instanceof Ot.Readable||ae instanceof Ot.Duplex){let ve=Ot.finished(ae,()=>{ve(),Fe()})}else Fe()});let Be=Kl(s("baseURL"),s("url"),s("allowAbsoluteUrls"),t),A=new URL(Be,Ve.hasBrowserEnv?Ve.origin:void 0),_e=A.protocol||Yg[0];if(_e==="data:"){if(O>-1){let L=String(s("url")||Be||"");if(zy(L)>O)return o(new $("maxContentLength size of "+O+" exceeded",$.ERR_BAD_RESPONSE,t))}let U;if(y!=="GET")return Zn(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{U=vU(s("url"),d==="blob",{Blob:t.env&&t.env.Blob})}catch(L){throw $.from(L,$.ERR_BAD_REQUEST,t)}return d==="text"?(U=U.toString(h),(!h||h==="utf8")&&(U=P.stripBOM(U))):d==="stream"&&(U=Ot.Readable.from(U)),Zn(n,o,{data:U,status:200,statusText:"OK",headers:new et,config:t})}if(Yg.indexOf(_e)===-1)return o(new $("Unsupported protocol "+_e,$.ERR_BAD_REQUEST,t));let Pe=et.from(t.headers).normalize();Pe.set("User-Agent","axios/"+eo,!1);let{onUploadProgress:Se,onDownloadProgress:g}=t,ft=t.maxRate,yt,Tt;if(P.isSpecCompliantForm(l)){let U=Pe.getContentType(/boundary=([-_\w\d]{10,70})/i);l=kU(l,L=>{Pe.set(L)},{tag:`axios-${eo}-boundary`,boundary:U&&U[1]||void 0})}else if(P.isFormData(l)&&P.isFunction(l.getHeaders)&&l.getHeaders!==Object.prototype.getHeaders){if(BU(Pe,l.getHeaders(),s("formDataHeaderPolicy")),!Pe.hasContentLength())try{let U=await jl.promisify(l.getLength).call(l);Number.isFinite(U)&&U>=0&&Pe.setContentLength(U)}catch{}}else if(P.isBlob(l)||P.isFile(l))l.size&&Pe.setContentType(l.type||"application/octet-stream"),Pe.setContentLength(l.size||0),l=Ot.Readable.from(Oy(l));else if(l&&!P.isStream(l)){if(!Buffer.isBuffer(l))if(P.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(P.isString(l))l=Buffer.from(l,"utf-8");else return o(new $("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$.ERR_BAD_REQUEST,t));if(Pe.setContentLength(l.length,!1),S>-1&&l.length>S)return o(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t))}let _r=P.toFiniteNumber(Pe.getContentLength());P.isArray(ft)?(yt=ft[0],Tt=ft[1]):yt=Tt=ft,l&&(Se||yt)&&(P.isStream(l)||(l=Ot.Readable.from(l,{objectMode:!1})),l=Ot.pipeline([l,new Ta({maxRate:P.toFiniteNumber(yt)})],P.noop),Se&&l.on("progress",ey(l,Aa(_r,Kn(Ea(Se),!1,3)))));let G,ht=s("auth");if(ht){let U=P.getSafeProp(ht,"username")||"",L=P.getSafeProp(ht,"password")||"";G=U+":"+L}if(!G&&(A.username||A.password)){let U=Qg(A.username),L=Qg(A.password);G=U+":"+L}G&&Pe.delete("authorization");let Xt;try{Xt=Wl(A.pathname+A.search,s("params"),s("paramsSerializer")).replace(/^\?/,"")}catch(U){let L=new Error(U.message);return L.config=t,L.url=s("url"),L.exists=!0,o(L)}Pe.set("Accept-Encoding",P.hasOwnProp(u,"advertiseZstdAcceptEncoding")&&u.advertiseZstdAcceptEncoding===!0?MU:Ny,!1);let $e=Object.assign(Object.create(null),{path:Xt,method:y,headers:Zl(Pe),agents:{http:_,https:v},auth:G,protocol:_e,family:c,beforeRedirect:ZU,beforeRedirects:Object.create(null),http2Options:f});!P.isUndefined(p)&&($e.lookup=p);let kr=s("socketPath");if(kr){if(typeof kr!="string")return o(new $("socketPath must be a string",$.ERR_BAD_OPTION_VALUE,t));let U=s("allowedSocketPaths");if(U!=null){let L=Array.isArray(U)?U:[U],ae=Mg.resolve(kr);if(!L.some(de=>typeof de=="string"&&Mg.resolve(de)===ae))return o(new $(`socketPath "${kr}" is not permitted by allowedSocketPaths`,$.ERR_BAD_OPTION_VALUE,t))}$e.socketPath=kr}else $e.hostname=A.hostname.startsWith("[")?A.hostname.slice(1,-1):A.hostname,$e.port=A.port,Ly($e,s("proxy"),_e+"//"+A.hostname+(A.port?":"+A.port:"")+$e.path,!1,v);let ar,At=!1,nn=!1,sr=Uy.test($e.protocol);if($e.agent==null&&($e.agent=sr?v:_),Z)ar=YU;else{let U=s("transport");if(U)ar=U;else if(w===0)ar=sr?qN:LN,At=!0;else{nn=!0,$e.sensitiveHeaders=[],w&&($e.maxRedirects=w);let L=s("beforeRedirect");if(L&&($e.beforeRedirects.config=L),G){let ve=A.origin,de=G;$e.beforeRedirects.auth=i(function(De){try{new URL(De.href).origin===ve&&(De.auth=de)}catch{}},"beforeRedirectAuth")}let ae=s("sensitiveHeaders");if(ae!=null){if(!P.isArray(ae))return o(new $("sensitiveHeaders must be an array of strings",$.ERR_BAD_OPTION_VALUE,t));let ve=new Set;for(let de of ae){if(!P.isString(de))return o(new $("sensitiveHeaders must be an array of strings",$.ERR_BAD_OPTION_VALUE,t));ve.add(de.toLowerCase())}ve.size&&($e.sensitiveHeaders=Array.from(ve),$e.beforeRedirects.sensitiveHeaders=i(function(Ze,De){GU(Ze,De)||WU(Ze.headers,ve)},"beforeRedirectSensitiveHeaders"))}ar=sr?qU:LU}}S>-1?$e.maxBodyLength=S:$e.maxBodyLength=1/0,$e.insecureHTTPParser=!!s("insecureHTTPParser"),q=ar.request($e,i(function(L){if(pe(),q.destroyed)return;let ae=[L],ve=P.toFiniteNumber(L.headers["content-length"]);if(g||Tt){let Le=new Ta({maxRate:P.toFiniteNumber(Tt)});g&&Le.on("progress",ey(Le,Aa(ve,Kn(Ea(g),!0,3)))),ae.push(Le)}let de=L,Ze=L.req||q;if(F!==!1&&L.headers["content-encoding"])switch((y==="HEAD"||L.statusCode===204)&&delete L.headers["content-encoding"],(L.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ae.push(jt.createUnzip(Kg)),delete L.headers["content-encoding"];break;case"deflate":ae.push(new Ll),ae.push(jt.createUnzip(Kg)),delete L.headers["content-encoding"];break;case"br":$y&&(ae.push(jt.createBrotliDecompress(NU)),delete L.headers["content-encoding"]);break;case"zstd":Dy&&(ae.push(jt.createZstdDecompress(UU)),delete L.headers["content-encoding"]);break}de=ae.length>1?Ot.pipeline(ae,P.noop):ae[0];let De={status:L.statusCode,statusText:L.statusMessage,headers:new et(L.headers),config:t,request:Ze};if(d==="stream"){if(O>-1){let Le=O,Lr=de;async function*on(){let nt=0;for await(let zo of Lr){if(nt+=zo.length,nt>Le)throw new $("maxContentLength size of "+Le+" exceeded",$.ERR_BAD_RESPONSE,t,Ze);yield zo}}i(on,"enforceMaxContentLength"),de=Ot.Readable.from(on(),{objectMode:!1})}De.data=de,Zn(n,o,De)}else{let Le=[],Lr=0;de.on("data",i(function(nt){Le.push(nt),Lr+=nt.length,O>-1&&Lr>O&&(V=!0,de.destroy(),j(new $("maxContentLength size of "+O+" exceeded",$.ERR_BAD_RESPONSE,t,Ze)))},"handleStreamData")),de.on("aborted",i(function(){if(V)return;let nt=new $("stream has been aborted",$.ERR_BAD_RESPONSE,t,Ze,De);de.destroy(nt),o(nt)},"handlerStreamAborted")),de.on("error",i(function(nt){V||o($.from(nt,null,t,Ze,De))},"handleStreamError")),de.on("end",i(function(){try{let nt=Le.length===1?Le[0]:Buffer.concat(Le);d!=="arraybuffer"&&(nt=nt.toString(h),(!h||h==="utf8")&&(nt=P.stripBOM(nt))),De.data=nt}catch(nt){return o($.from(nt,null,t,De.request,De))}Zn(n,o,De)},"handleStreamEnd"))}N.once("abort",Le=>{de.destroyed||(de.emit("error",Le),de.destroy())})},"handleResponse")),N.once("abort",U=>{q.close?q.close():q.destroy(U)}),q.on("error",i(function(L){o($.from(L,null,t,q))},"handleRequestError"));let kt=new Set;if(q.on("socket",i(function(L){L.setKeepAlive(!0,1e3*60),L[Jg]||(L.on("error",i(function(ve){let de=L[ba];de&&!de.destroyed&&de.destroy(ve)},"handleSocketError")),L[Jg]=!0),L[ba]=q,kt.add(L)},"handleRequestSocket")),q.once("close",i(function(){pe();for(let L of kt)L[ba]===q&&(L[ba]=null);kt.clear()},"clearCurrentReq")),s("timeout")){let U=parseInt(s("timeout"),10);if(Number.isNaN(U)){j(new $("error trying to parse `config.timeout` to int",$.ERR_BAD_OPTION_VALUE,t,q));return}let L=i(function(){M||j(ee())},"handleTimeout");At&&U>0&&(J=setTimeout(L,U)),q.setTimeout(U,L)}else q.setTimeout(0);if(P.isStream(l)){let U=!1,L=!1;l.on("end",()=>{U=!0}),l.once("error",ve=>{L=!0,q.destroy(ve)}),l.on("close",()=>{!U&&!L&&j(new Or("Request stream has been aborted",t,q))});let ae=l;if(S>-1&&!nn){let ve=S,de=0;ae=Ot.pipeline([l,new Ot.Transform({transform(Ze,De,Le){if(de+=Ze.length,de>ve)return Le(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t,q));Le(null,Ze)}})],P.noop),ae.on("error",Ze=>{q.destroyed||q.destroy(Ze)})}ae.pipe(q)}else l&&q.write(l),q.end()},"dispatchHttpRequest"))},"httpAdapter"),eM=Ve.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ve.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,tM=Ve.hasStandardBrowserEnv?{write(e,t,r,n,o,a,s){if(typeof document>"u")return;let u=[`${e}=${encodeURIComponent(t)}`];P.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),P.isString(n)&&u.push(`path=${n}`),P.isString(o)&&u.push(`domain=${o}`),a===!0&&u.push("secure"),P.isString(s)&&u.push(`SameSite=${s}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}},ry=i(e=>e instanceof et?{...e}:e,"headersToObject");function xn(e,t){t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,m,f,d){return P.isPlainObject(c)&&P.isPlainObject(m)?P.merge.call({caseless:d},c,m):P.isPlainObject(m)?P.merge({},m):P.isArray(m)?m.slice():m}i(n,"getMergedValue");function o(c,m,f,d){if(P.isUndefined(m)){if(!P.isUndefined(c))return n(void 0,c,f,d)}else return n(c,m,f,d)}i(o,"mergeDeepProperties");function a(c,m){if(!P.isUndefined(m))return n(void 0,m)}i(a,"valueFromConfig2");function s(c,m){if(P.isUndefined(m)){if(!P.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}i(s,"defaultToConfig2");function u(c){let m=P.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!P.isUndefined(m))if(P.isPlainObject(m)){if(P.hasOwnProp(m,c))return m[c]}else return;let f=P.hasOwnProp(e,"transitional")?e.transitional:void 0;if(P.isPlainObject(f)&&P.hasOwnProp(f,c))return f[c]}i(u,"getMergedTransitionalOption");function l(c,m,f){if(P.hasOwnProp(t,f))return n(c,m);if(P.hasOwnProp(e,f))return n(void 0,c)}i(l,"mergeDirectKeys");let p={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:i((c,m,f)=>o(ry(c),ry(m),f,!0),"headers")};return P.forEach(Object.keys({...e,...t}),i(function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;let f=P.hasOwnProp(p,m)?p[m]:o,d=P.hasOwnProp(e,m)?e[m]:void 0,h=P.hasOwnProp(t,m)?t[m]:void 0,_=f(d,h,m);P.isUndefined(_)&&f!==l||(r[m]=_)},"computeConfigValue")),P.hasOwnProp(t,"validateStatus")&&P.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(P.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}i(xn,"mergeConfig");var rM=["content-type","content-length"];function nM(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{rM.includes(n.toLowerCase())&&e.set(n,o)})}i(nM,"setFormDataHeaders");var iM=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8$1");function qy(e){let t=xn({},e),r=i(f=>P.hasOwnProp(t,f)?t[f]:void 0,"own"),n=r("data"),o=r("withXSRFToken"),a=r("xsrfHeaderName"),s=r("xsrfCookieName"),u=r("headers"),l=r("auth"),p=r("baseURL"),c=r("allowAbsoluteUrls"),m=r("url");if(t.headers=u=et.from(u),t.url=Wl(Kl(p,m,c,t),r("params"),r("paramsSerializer")),l){let f=P.getSafeProp(l,"username")||"",d=P.getSafeProp(l,"password")||"";u.set("Authorization","Basic "+btoa(f+":"+(d?iM(d):"")))}if(P.isFormData(n)&&(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv||P.isReactNative(n)?u.setContentType(void 0):P.isFunction(n.getHeaders)&&nM(u,n.getHeaders(),r("formDataHeaderPolicy"))),Ve.hasStandardBrowserEnv&&(P.isFunction(o)&&(o=o(t)),o===!0||o==null&&eM(t.url))){let d=a&&s&&tM.read(s);d&&u.set(a,d)}return t}i(qy,"resolveConfig");var oM=typeof XMLHttpRequest<"u",aM=oM&&function(e){return new Promise(i(function(r,n){let o=qy(e),a=o.data,s=et.from(o.headers).normalize(),{responseType:u,onUploadProgress:l,onDownloadProgress:p}=o,c,m,f,d,h;function _(){d&&d(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}i(_,"done");let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;let S=et.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),F={data:!u||u==="text"||u==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:S,config:e,request:v};Zn(i(function(V){r(V),_()},"_resolve"),i(function(V){n(V),_()},"_reject"),F),v=null}i(y,"onloadend"),"onloadend"in v?v.onloadend=y:v.onreadystatechange=i(function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},"handleLoad"),v.onabort=i(function(){v&&(n(new $("Request aborted",$.ECONNABORTED,e,v)),_(),v=null)},"handleAbort"),v.onerror=i(function(O){let F=O&&O.message?O.message:"Network Error",M=new $(F,$.ERR_NETWORK,e,v);M.event=O||null,n(M),_(),v=null},"handleError"),v.ontimeout=i(function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",F=o.transitional||Ra;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new $(O,F.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,v)),_(),v=null},"handleTimeout"),a===void 0&&s.setContentType(null),"setRequestHeader"in v&&P.forEach(Zl(s),i(function(O,F){v.setRequestHeader(F,O)},"setRequestHeader")),P.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),u&&u!=="json"&&(v.responseType=o.responseType),p&&([f,h]=Kn(p,!0),v.addEventListener("progress",f)),l&&v.upload&&([m,d]=Kn(l),v.upload.addEventListener("progress",m),v.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=i(S=>{v&&(n(!S||S.type?new Or(null,e,v):S),v.abort(),_(),v=null)},"onCanceled"),o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));let w=Cy(o.url);if(w&&!Ve.protocols.includes(w)){n(new $("Unsupported protocol "+w+":",$.ERR_BAD_REQUEST,e));return}v.send(a||null)},"dispatchXhrRequest"))},sM=i((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,o=i(function(l){if(!n){n=!0,s();let p=l instanceof Error?l:this.reason;r.abort(p instanceof $?p:new Or(p instanceof Error?p.message:p))}},"onabort"),a=t&&setTimeout(()=>{a=null,o(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),s=i(()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)},"unsubscribe");e.forEach(l=>l.addEventListener("abort",o));let{signal:u}=r;return u.unsubscribe=()=>P.asap(s),u},"composeSignals"),uM=i(function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},"streamChunk"),lM=i(async function*(e,t){for await(let r of cM(e))yield*uM(r,t)},"readBytes"),cM=i(async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},"readStream"),ny=i((e,t,r,n)=>{let o=lM(e,t),a=0,s,u=i(l=>{s||(s=!0,n&&n(l))},"_onFinish");return new ReadableStream({async pull(l){try{let{done:p,value:c}=await o.next();if(p){u(),l.close();return}let m=c.byteLength;if(r){let f=a+=m;r(f)}l.enqueue(new Uint8Array(c))}catch(p){throw u(p),p}},cancel(l){return u(l),o.return()}},{highWaterMark:2})},"trackStream"),iy=64*1024,{isFunction:xa}=P,pM=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8"),oy=i(e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe"),ay=i((e,...t)=>{try{return!!e(...t)}catch{return!1}},"test"),dM=i(e=>{let t=e.indexOf("://"),r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},"maybeWithAuthCredentials"),mM=i(e=>{let t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:o,Request:a,Response:s}=e,u=o?xa(o):typeof fetch=="function",l=xa(a),p=xa(s);if(!u)return!1;let c=u&&xa(r),m=u&&(typeof n=="function"?(y=>w=>y.encode(w))(new n):async y=>new Uint8Array(await new a(y).arrayBuffer())),f=l&&c&&ay(()=>{let y=!1,w=new a(Ve.origin,{body:new r,method:"POST",get duplex(){return y=!0,"half"}}),S=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),y&&!S}),d=p&&c&&ay(()=>P.isReadableStream(new s("").body)),h={stream:d&&(y=>y.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(w,S)=>{let O=w&&w[y];if(O)return O.call(w);throw new $(`Response type '${y}' is not supported`,$.ERR_NOT_SUPPORT,S)})});let _=i(async y=>{if(y==null)return 0;if(P.isBlob(y))return y.size;if(P.isSpecCompliantForm(y))return(await new a(Ve.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(P.isArrayBufferView(y)||P.isArrayBuffer(y))return y.byteLength;if(P.isURLSearchParams(y)&&(y=y+""),P.isString(y))return(await m(y)).byteLength},"getBodyLength"),v=i(async(y,w)=>{let S=P.toFiniteNumber(y.getContentLength());return S??_(w)},"resolveBodyLength");return async y=>{let{url:w,method:S,data:O,signal:F,cancelToken:M,timeout:V,onDownloadProgress:q,onUploadProgress:J,responseType:Z,headers:N,withCredentials:j="same-origin",fetchOptions:pe,maxContentLength:ee,maxBodyLength:Fe}=qy(y),Be=P.isNumber(ee)&&ee>-1,A=P.isNumber(Fe)&&Fe>-1,_e=i(G=>P.hasOwnProp(y,G)?y[G]:void 0,"own"),Pe=o||fetch;Z=Z?(Z+"").toLowerCase():"text";let Se=sM([F,M&&M.toAbortSignal()],V),g=null,ft=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),yt,Tt=null,_r=i(()=>new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,y,g),"maxBodyLengthError");try{let G,ht=_e("auth");if(ht){let U=P.getSafeProp(ht,"username")||"",L=P.getSafeProp(ht,"password")||"";G={username:U,password:L}}if(dM(w)){let U=new URL(w,Ve.origin);if(!G&&(U.username||U.password)){let L=oy(U.username),ae=oy(U.password);G={username:L,password:ae}}(U.username||U.password)&&(U.username="",U.password="",w=U.href)}if(G&&(N.delete("authorization"),N.set("Authorization","Basic "+btoa(pM((G.username||"")+":"+(G.password||""))))),Be&&typeof w=="string"&&w.startsWith("data:")&&zy(w)>ee)throw new $("maxContentLength size of "+ee+" exceeded",$.ERR_BAD_RESPONSE,y,g);if(A&&S!=="get"&&S!=="head"){let U=await _(O);if(typeof U=="number"&&isFinite(U)&&(yt=U,U>Fe))throw _r()}let Xt=A&&(P.isReadableStream(O)||P.isStream(O)),$e=i((U,L,ae)=>ny(U,iy,ve=>{if(A&&ve>Fe)throw Tt=_r();L&&L(ve)},ae),"trackRequestStream");if(f&&S!=="get"&&S!=="head"&&(J||Xt)){if(yt=yt??await v(N,O),yt!==0||Xt){let U=new a(w,{method:"POST",body:O,duplex:"half"}),L;if(P.isFormData(O)&&(L=U.headers.get("content-type"))&&N.setContentType(L),U.body){let[ae,ve]=J&&Aa(yt,Kn(Ea(J)))||[];O=$e(U.body,ae,ve)}}}else if(Xt&&!l&&c&&S!=="get"&&S!=="head")O=$e(O);else if(Xt&&l&&!f&&S!=="get"&&S!=="head")throw new $("Stream request bodies are not supported by the current fetch implementation",$.ERR_NOT_SUPPORT,y,g);P.isString(j)||(j=j?"include":"omit");let kr=l&&"credentials"in a.prototype;if(P.isFormData(O)){let U=N.getContentType();U&&/^multipart\/form-data/i.test(U)&&!/boundary=/i.test(U)&&N.delete("content-type")}N.set("User-Agent","axios/"+eo,!1);let ar={...pe,signal:Se,method:S.toUpperCase(),headers:Zl(N.normalize()),body:O,duplex:"half",credentials:kr?j:void 0};g=l&&new a(w,ar);let At=await(l?Pe(g,pe):Pe(w,ar)),nn=et.from(At.headers);if(Be){let U=P.toFiniteNumber(nn.getContentLength());if(U!=null&&U>ee)throw new $("maxContentLength size of "+ee+" exceeded",$.ERR_BAD_RESPONSE,y,g)}let sr=d&&(Z==="stream"||Z==="response");if(d&&At.body&&(q||Be||sr&&ft)){let U={};["status","statusText","headers"].forEach(De=>{U[De]=At[De]});let L=P.toFiniteNumber(nn.getContentLength()),[ae,ve]=q&&Aa(L,Kn(Ea(q),!0))||[],de=0,Ze=i(De=>{if(Be&&(de=De,de>ee))throw new $("maxContentLength size of "+ee+" exceeded",$.ERR_BAD_RESPONSE,y,g);ae&&ae(De)},"onChunkProgress");At=new s(ny(At.body,iy,Ze,()=>{ve&&ve(),ft&&ft()}),U)}Z=Z||"text";let kt=await h[P.findKey(h,Z)||"text"](At,y);if(Be&&!d&&!sr){let U;if(kt!=null&&(typeof kt.byteLength=="number"?U=kt.byteLength:typeof kt.size=="number"?U=kt.size:typeof kt=="string"&&(U=typeof n=="function"?new n().encode(kt).byteLength:kt.length)),typeof U=="number"&&U>ee)throw new $("maxContentLength size of "+ee+" exceeded",$.ERR_BAD_RESPONSE,y,g)}return!sr&&ft&&ft(),await new Promise((U,L)=>{Zn(U,L,{data:kt,headers:et.from(At.headers),status:At.status,statusText:At.statusText,config:y,request:g})})}catch(G){if(ft&&ft(),Se&&Se.aborted&&Se.reason instanceof $){let ht=Se.reason;throw ht.config=y,g&&(ht.request=g),G!==ht&&(ht.cause=G),ht}throw Tt?(g&&!Tt.request&&(Tt.request=g),Tt):G instanceof $?(g&&!G.request&&(G.request=g),G):G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,y,g,G&&G.response),{cause:G.cause||G}):$.from(G,G&&G.code,y,g,G&&G.response)}}},"factory"),fM=new Map,Fy=i(e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,a=[n,o,r],s=a.length,u=s,l,p,c=fM;for(;u--;)l=a[u],p=c.get(l),p===void 0&&c.set(l,p=u?new Map:mM(t)),c=p;return p},"getFetch");Fy();var Jl={http:QU,xhr:aM,fetch:{get:Fy}};P.forEach(Jl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var sy=i(e=>`- ${e}`,"renderReason"),hM=i(e=>P.isFunction(e)||e===null||e===!1,"isResolvedHandle");function gM(e,t){e=P.isArray(e)?e:[e];let{length:r}=e,n,o,a={};for(let s=0;s<r;s++){n=e[s];let u;if(o=n,!hM(n)&&(o=Jl[(u=String(n)).toLowerCase()],o===void 0))throw new $(`Unknown adapter '${u}'`);if(o&&(P.isFunction(o)||(o=o.get(t))))break;a[u||"#"+s]=o}if(!o){let s=Object.entries(a).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build")),u=r?s.length>1?`since :
17
- `+s.map(sy).join(`
18
- `):" "+sy(s[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}i(gM,"getAdapter");var By={getAdapter:gM,adapters:Jl};function zl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Or(null,e)}i(zl,"throwIfCancellationRequested");function uy(e){return zl(e),e.headers=et.from(e.headers),e.data=Cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),By.getAdapter(e.adapter||io.adapter,e)(e).then(i(function(n){zl(e),e.response=n;try{n.data=Cl.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=et.from(n.headers),n},"onAdapterResolution"),i(function(n){if(!Iy(n)&&(zl(e),n&&n.response)){e.response=n.response;try{n.response.data=Cl.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=et.from(n.response.headers)}return Promise.reject(n)},"onAdapterRejection"))}i(uy,"dispatchRequest");var za={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{za[e]=i(function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e},"validator")});var ly={};za.transitional=i(function(t,r,n){function o(a,s){return"[Axios v"+eo+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return i(o,"formatMessage"),(a,s,u)=>{if(t===!1)throw new $(o(s," has been removed"+(r?" in "+r:"")),$.ERR_DEPRECATED);return r&&!ly[s]&&(ly[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,u):!0}},"transitional");za.spelling=i(function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)},"spelling");function yM(e,t,r){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){let u=e[a],l=u===void 0||s(u,a,e);if(l!==!0)throw new $("option "+a+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $("Unknown option "+a,$.ERR_BAD_OPTION)}}i(yM,"assertOptions");var wa={assertOptions:yM,validators:za},vt=wa.validators,Cr=class{static{i(this,"Axios")}constructor(t){this.defaults=t||{},this.interceptors={request:new Sa,response:new Sa}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;let a=(()=>{if(!o.stack)return"";let s=o.stack.indexOf(`
9
+ `)===-1){Wi("have not received end of HTTP headers yet..."),a();return}let h=f.toString("ascii",0,f.indexOf(`\r
10
+ `)),_=+h.split(" ")[1];Wi("got proxy server response: %o",h),t({statusCode:_,buffered:f})}i(c,"ondata"),e.on("error",p),e.on("close",u),e.on("end",l),a()})}i(kN,"parseProxyResponse");Zi.default=kN});var Ug=b(fn=>{"use strict";var wN=fn&&fn.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},Hn=fn&&fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fn,"__esModule",{value:!0});var $g=Hn(require("net")),Ng=Hn(require("tls")),PN=Hn(require("url")),SN=Hn(require("assert")),TN=Hn(Vi()),AN=zg(),EN=Hn(Dg()),Gi=TN.default("https-proxy-agent:agent"),fl=class extends AN.Agent{static{i(this,"HttpsProxyAgent")}constructor(t){let r;if(typeof t=="string"?r=PN.default.parse(t):r=t,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Gi("creating new HttpsProxyAgent instance: %o",r),super(r);let n=Object.assign({},r);this.secureProxy=r.secureProxy||ON(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(t,r){return wN(this,void 0,void 0,function*(){let{proxy:n,secureProxy:o}=this,a;o?(Gi("Creating `tls.Socket`: %o",n),a=Ng.default.connect(n)):(Gi("Creating `net.Socket`: %o",n),a=$g.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
11
+ `;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:p,port:c,secureEndpoint:m}=r;CN(c,m)||(p+=`:${c}`),s.Host=p,s.Connection="close";for(let v of Object.keys(s))l+=`${v}: ${s[v]}\r
12
+ `;let f=EN.default(a);a.write(`${l}\r
13
+ `);let{statusCode:d,buffered:h}=yield f;if(d===200){if(t.once("socket",IN),r.secureEndpoint){Gi("Upgrading socket connection to TLS");let v=r.servername||r.host;return Ng.default.connect(Object.assign(Object.assign({},RN(r,"host","hostname","path","port")),{socket:a,servername:v}))}return a}a.destroy();let _=new $g.default.Socket({writable:!1});return _.readable=!0,t.once("socket",v=>{Gi("replaying proxy buffer for failed request"),SN.default(v.listenerCount("data")>0),v.push(h),v.push(null)}),_})}};fn.default=fl;function IN(e){e.resume()}i(IN,"resume");function CN(e,t){return!!(!t&&e===80||t&&e===443)}i(CN,"isDefaultPort");function ON(e){return typeof e=="string"?/^https:?$/i.test(e):!1}i(ON,"isHTTPS");function RN(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}i(RN,"omit")});var Lg=b((yl,Mg)=>{"use strict";var zN=yl&&yl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},hl=zN(Ug());function gl(e){return new hl.default(e)}i(gl,"createHttpsProxyAgent");(function(e){e.HttpsProxyAgent=hl.default,e.prototype=hl.default.prototype})(gl||(gl={}));Mg.exports=gl});var Fg=b((Hie,qg)=>{var Ki;qg.exports=function(){if(!Ki){try{Ki=Vi()("follow-redirects")}catch{}typeof Ki!="function"&&(Ki=i(function(){},"debug"))}Ki.apply(null,arguments)}});var Wg=b((Zie,Il)=>{var Xi=require("url"),Ji=Xi.URL,DN=require("http"),$N=require("https"),kl=require("stream").Writable,wl=require("assert"),Bg=Fg();i(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=gn(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")},"detectUnsupportedEnvironment")();var Pl=!1;try{wl(new Ji(""))}catch(e){Pl=e.code==="ERR_INVALID_URL"}var NN=["Authorization","Proxy-Authorization","Cookie"],UN=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Sl=["abort","aborted","connect","error","socket","timeout"],Tl=Object.create(null);Sl.forEach(function(e){Tl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var bl=Yi("ERR_INVALID_URL","Invalid URL",TypeError),xl=Yi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),MN=Yi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",xl),LN=Yi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),qN=Yi("ERR_STREAM_WRITE_AFTER_END","write after end"),FN=kl.prototype.destroy||Vg;function Ct(e,t){kl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof xl?o:new xl({cause:o}))}},this._headerFilter=new RegExp("^(?:"+NN.concat(e.sensitiveHeaders).map(ZN).join("|")+")$","i"),this._performRequest()}i(Ct,"RedirectableRequest");Ct.prototype=Object.create(kl.prototype);Ct.prototype.abort=function(){El(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Ct.prototype.destroy=function(e){return El(this._currentRequest,e),FN.call(this,e),this};Ct.prototype.write=function(e,t,r){if(this._ending)throw new qN;if(!hn(e)&&!HN(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(gn(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new LN),this.abort())};Ct.prototype.end=function(e,t,r){if(gn(e)?(r=e,e=t=null):gn(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};Ct.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Ct.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Ct.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}i(n,"destroyOnTimeout");function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),a()},e),n(s)}i(o,"startTimer");function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return i(a,"clearTimer"),t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Ct.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{get:i(function(){return this._currentRequest[e]},"get")})});Ct.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),VN(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};Ct.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of Sl)n.on(o,Tl[o]);if(this._currentUrl=/^\//.test(this._options.path)?Xi.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,u=this._requestBodyBuffers;i(function l(p){if(n===s._currentRequest)if(p)s.emit("error",p);else if(a<u.length){var c=u[a++];n.finished||n.write(c.data,c.encoding,l)}else s._ended&&n.end()},"writeNext")()}};Ct.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(El(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new MN;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],vl(/^content-/i,this._options.headers));var s=vl(/^host$/i,this._options.headers),u=Al(this._currentUrl),l=s||u.host,p=/^\w+:/.test(r)?this._currentUrl:Xi.format(Object.assign(u,{host:l})),c=BN(r,p);if(Bg("redirecting to",c.href),this._isRedirect=!0,_l(c,this._options),(c.protocol!==u.protocol&&c.protocol!=="https:"||c.host!==l&&!jN(c.host,l))&&vl(this._headerFilter,this._options.headers),gn(o)){var m={headers:e.headers,statusCode:t},f={url:p,method:a,headers:n};o(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()};function jg(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",a=r[o]=e[n],s=t[n]=Object.create(a);function u(p,c,m){return WN(p)?p=_l(p):hn(p)?p=_l(Al(p)):(m=c,c=Hg(p),p={protocol:o}),gn(c)&&(m=c,c=null),c=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},p,c),c.nativeProtocols=r,!hn(c.host)&&!hn(c.hostname)&&(c.hostname="::1"),wl.equal(c.protocol,o,"protocol mismatch"),Bg("options",c),new Ct(c,m)}i(u,"request");function l(p,c,m){var f=s.request(p,c,m);return f.end(),f}i(l,"get"),Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),t}i(jg,"wrap");function Vg(){}i(Vg,"noop");function Al(e){var t;if(Pl)t=new Ji(e);else if(t=Hg(Xi.parse(e)),!hn(t.protocol))throw new bl({input:e});return t}i(Al,"parseUrl");function BN(e,t){return Pl?new Ji(e,t):Al(Xi.resolve(t,e))}i(BN,"resolveUrl");function Hg(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new bl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new bl({input:e.href||e});return e}i(Hg,"validateUrl");function _l(e,t){var r=t||{};for(var n of UN)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}i(_l,"spreadUrlObject");function vl(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}i(vl,"removeMatchingHeaders");function Yi(e,t,r){function n(o){gn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i(n,"CustomError"),n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}i(Yi,"createErrorType");function El(e,t){for(var r of Sl)e.removeListener(r,Tl[r]);e.on("error",Vg),e.destroy(t)}i(El,"destroyRequest");function jN(e,t){wl(hn(e)&&hn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}i(jN,"isSubdomain");function VN(e){return e instanceof Array}i(VN,"isArray");function hn(e){return typeof e=="string"||e instanceof String}i(hn,"isString");function gn(e){return typeof e=="function"}i(gn,"isFunction");function HN(e){return typeof e=="object"&&"length"in e}i(HN,"isBuffer");function WN(e){return Ji&&e instanceof Ji}i(WN,"isURL");function ZN(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}i(ZN,"escapeRegex");Il.exports=jg({http:DN,https:$N});Il.exports.wrap=jg});var ev=b((Kie,Qy)=>{"use strict";var by=ol(),GN=require("crypto"),KN=require("url"),xy=Lg(),JN=require("http"),XN=require("https"),_y=require("http2"),Wl=require("util"),Zg=require("path"),YN=Wg(),Vt=require("zlib"),Ot=require("stream"),QN=require("events");function ky(e,t){return i(function(){return e.apply(t,arguments)},"wrap")}i(ky,"bind");var{toString:e0}=Object.prototype,{getPrototypeOf:Gn}=Object,{iterator:no,toStringTag:wy}=Symbol,Sa=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),eo=i((e,t)=>{let r=e,n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),Sa(r,t))return!0;r=Gn(r)}return!1},"hasOwnInPrototypeChain"),t0=i((e,t)=>e!=null&&eo(e,t)?e[t]:void 0,"getSafeProp"),Zl=(e=>t=>{let r=e0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),nr=i(e=>(e=e.toLowerCase(),t=>Zl(t)===e),"kindOfTest"),Oa=i(e=>t=>typeof t===e,"typeOfTest"),{isArray:bn}=Array,Kn=Oa("undefined");function Xn(e){return e!==null&&!Kn(e)&&e.constructor!==null&&!Kn(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}i(Xn,"isBuffer");var Py=nr("ArrayBuffer");function r0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Py(e.buffer),t}i(r0,"isArrayBufferView");var n0=Oa("string"),Rt=Oa("function"),Sy=Oa("number"),Yn=i(e=>e!==null&&typeof e=="object","isObject"),i0=i(e=>e===!0||e===!1,"isBoolean"),ka=i(e=>{if(!Yn(e))return!1;let t=Gn(e);return(t===null||t===Object.prototype||Gn(t)===null)&&!eo(e,wy)&&!eo(e,no)},"isPlainObject"),o0=i(e=>{if(!Yn(e)||Xn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},"isEmptyObject"),a0=nr("Date"),s0=nr("File"),u0=i(e=>!!(e&&typeof e.uri<"u"),"isReactNativeBlob"),l0=i(e=>e&&typeof e.getParts<"u","isReactNative"),c0=nr("Blob"),p0=nr("FileList"),d0=i(e=>Yn(e)&&Rt(e.pipe),"isStream");function m0(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}i(m0,"getGlobal");var Gg=m0(),Kg=typeof Gg.FormData<"u"?Gg.FormData:void 0,f0=i(e=>{if(!e)return!1;if(Kg&&e instanceof Kg)return!0;let t=Gn(e);if(!t||t===Object.prototype||!Rt(e.append))return!1;let r=Zl(e);return r==="formdata"||r==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"},"isFormData"),h0=nr("URLSearchParams"),[g0,y0,v0,b0]=["ReadableStream","Request","Response","Headers"].map(nr),x0=i(e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function io(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),bn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Xn(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length,u;for(n=0;n<s;n++)u=a[n],t.call(null,e[u],u,e)}}i(io,"forEach");function Ty(e,t){if(Xn(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}i(Ty,"findKey");var yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ay=i(e=>!Kn(e)&&e!==yn,"isContextDefined");function Ul(...e){let{caseless:t,skipUndefined:r}=Ay(this)&&this||{},n={},o=i((a,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let u=t&&typeof s=="string"&&Ty(n,s)||s,l=Sa(n,u)?n[u]:void 0;ka(l)&&ka(a)?n[u]=Ul(l,a):ka(a)?n[u]=Ul({},a):bn(a)?n[u]=a.slice():(!r||!Kn(a))&&(n[u]=a)},"assignValue");for(let a=0,s=e.length;a<s;a++){let u=e[a];if(!u||Xn(u)||(io(u,o),typeof u!="object"||bn(u)))continue;let l=Object.getOwnPropertySymbols(u);for(let p=0;p<l.length;p++){let c=l[p];R0.call(u,c)&&o(u[c],c)}}return n}i(Ul,"merge");var _0=i((e,t,r,{allOwnKeys:n}={})=>(io(t,(o,a)=>{r&&Rt(o)?Object.defineProperty(e,a,{__proto__:null,value:ky(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),"extend"),k0=i(e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),"stripBOM"),w0=i((e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},"inherits"),P0=i((e,t,r,n)=>{let o,a,s,u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Gn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},"toFlatObject"),S0=i((e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},"endsWith"),T0=i(e=>{if(!e)return null;if(bn(e))return e;let t=e.length;if(!Sy(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},"toArray"),A0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gn(Uint8Array)),E0=i((e,t)=>{let n=(e&&e[no]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1])}},"forEachEntry"),I0=i((e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},"matchAll"),C0=nr("HTMLFormElement"),O0=i(e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,i(function(r,n,o){return n.toUpperCase()+o},"replacer")),"toCamelCase"),{propertyIsEnumerable:R0}=Object.prototype,z0=nr("RegExp"),Ey=i((e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};io(r,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(n[a]=s||o)}),Object.defineProperties(e,n)},"reduceDescriptors"),D0=i(e=>{Ey(e,(t,r)=>{if(Rt(e)&&["arguments","caller","callee"].includes(r))return!1;let n=e[r];if(Rt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},"freezeMethods"),$0=i((e,t)=>{let r={},n=i(o=>{o.forEach(a=>{r[a]=!0})},"define");return bn(e)?n(e):n(String(e).split(t)),r},"toObjectSet"),N0=i(()=>{},"noop"),U0=i((e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,"toFiniteNumber");function M0(e){return!!(e&&Rt(e.append)&&e[wy]==="FormData"&&e[no])}i(M0,"isSpecCompliantForm");var L0=i(e=>{let t=new WeakSet,r=i(n=>{if(Yn(n)){if(t.has(n))return;if(Xn(n))return n;if(!("toJSON"in n)){t.add(n);let o=bn(n)?[]:{};return io(n,(a,s)=>{let u=r(a);!Kn(u)&&(o[s]=u)}),t.delete(n),o}}return n},"visit");return r(e)},"toJSONObject"),q0=nr("AsyncFunction"),F0=i(e=>e&&(Yn(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),"isThenable"),Iy=((e,t)=>e?setImmediate:t?((r,n)=>(yn.addEventListener("message",({source:o,data:a})=>{o===yn&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),yn.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Rt(yn.postMessage)),B0=typeof queueMicrotask<"u"?queueMicrotask.bind(yn):typeof process<"u"&&process.nextTick||Iy,Cy=i(e=>e!=null&&Rt(e[no]),"isIterable"),j0=i(e=>e!=null&&eo(e,no)&&Cy(e),"isSafeIterable"),P={isArray:bn,isArrayBuffer:Py,isBuffer:Xn,isFormData:f0,isArrayBufferView:r0,isString:n0,isNumber:Sy,isBoolean:i0,isObject:Yn,isPlainObject:ka,isEmptyObject:o0,isReadableStream:g0,isRequest:y0,isResponse:v0,isHeaders:b0,isUndefined:Kn,isDate:a0,isFile:s0,isReactNativeBlob:u0,isReactNative:l0,isBlob:c0,isRegExp:z0,isFunction:Rt,isStream:d0,isURLSearchParams:h0,isTypedArray:A0,isFileList:p0,forEach:io,merge:Ul,extend:_0,trim:x0,stripBOM:k0,inherits:w0,toFlatObject:P0,kindOf:Zl,kindOfTest:nr,endsWith:S0,toArray:T0,forEachEntry:E0,matchAll:I0,isHTMLForm:C0,hasOwnProperty:Sa,hasOwnProp:Sa,hasOwnInPrototypeChain:eo,getSafeProp:t0,reduceDescriptors:Ey,freezeMethods:D0,toObjectSet:$0,toCamelCase:O0,noop:N0,toFiniteNumber:U0,findKey:Ty,global:yn,isContextDefined:Ay,isSpecCompliantForm:M0,toJSONObject:L0,isAsyncFn:q0,isThenable:F0,setImmediate:Iy,asap:B0,isIterable:Cy,isSafeIterable:j0},V0=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),H0=i(e=>{let t={},r,n,o;return e&&e.split(`
14
+ `).forEach(i(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&V0[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)},"parser")),t},"parseHeaders");function W0(e){let t=0,r=e.length;for(;t<r;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){let n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}i(W0,"trimSPorHTAB");var Z0=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),G0=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Gl(e,t){return P.isArray(e)?e.map(r=>Gl(r,t)):W0(String(e).replace(t,""))}i(Gl,"sanitizeValue");var K0=i(e=>Gl(e,Z0),"sanitizeHeaderValue"),J0=i(e=>Gl(e,G0),"sanitizeByteStringHeaderValue");function Kl(e){let t=Object.create(null);return P.forEach(e.toJSON(),(r,n)=>{t[n]=J0(r)}),t}i(Kl,"toByteStringHeaderObject");var Jg=Symbol("internals");function Qi(e){return e&&String(e).trim().toLowerCase()}i(Qi,"normalizeHeader");function wa(e){return e===!1||e==null?e:P.isArray(e)?e.map(wa):K0(String(e))}i(wa,"normalizeValue");function X0(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}i(X0,"parseTokens");var Y0=i(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),"isValidHeaderName");function Cl(e,t,r,n,o){if(P.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!P.isString(t)){if(P.isString(n))return t.indexOf(n)!==-1;if(P.isRegExp(n))return n.test(t)}}i(Cl,"matchHeaderValue");function Q0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}i(Q0,"formatHeader");function eU(e,t){let r=P.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:i(function(o,a,s){return this[n].call(this,t,o,a,s)},"value"),configurable:!0})})}i(eU,"buildAccessors");var et=class{static{i(this,"AxiosHeaders")}constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(u,l,p){let c=Qi(l);if(!c)return;let m=P.findKey(o,c);(!m||o[m]===void 0||p===!0||p===void 0&&o[m]!==!1)&&(o[m||l]=wa(u))}i(a,"setHeader");let s=i((u,l)=>P.forEach(u,(p,c)=>a(p,c,l)),"setHeaders");if(P.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(P.isString(t)&&(t=t.trim())&&!Y0(t))s(H0(t),r);else if(P.isObject(t)&&P.isSafeIterable(t)){let u=Object.create(null),l,p;for(let c of t){if(!P.isArray(c))throw new TypeError("Object iterator must return a key-value pair");p=c[0],P.hasOwnProp(u,p)?(l=u[p],u[p]=P.isArray(l)?[...l,c[1]]:[l,c[1]]):u[p]=c[1]}s(u,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Qi(t),t){let n=P.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return X0(o);if(P.isFunction(r))return r.call(this,o,n);if(P.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Qi(t),t){let n=P.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Cl(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(s){if(s=Qi(s),s){let u=P.findKey(n,s);u&&(!r||Cl(n,n[u],u,r))&&(delete n[u],o=!0)}}return i(a,"deleteHeader"),P.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Cl(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return P.forEach(this,(o,a)=>{let s=P.findKey(n,a);if(s){r[s]=wa(o),delete r[a];return}let u=t?Q0(a):String(a).trim();u!==a&&delete r[a],r[u]=wa(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return P.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&P.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
15
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[Jg]=this[Jg]={accessors:{}}).accessors,o=this.prototype;function a(s){let u=Qi(s);n[u]||(eU(o,s),n[u]=!0)}return i(a,"defineAccessor"),P.isArray(t)?t.forEach(a):a(t),this}};et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(et.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:i(()=>e,"get"),set(n){this[r]=n}}});P.freezeMethods(et);var tU="[REDACTED ****]";function rU(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}i(rU,"hasOwnOrPrototypeToJSON");function nU(e,t){let r=new Set(t.map(a=>String(a).toLowerCase())),n=[],o=i(a=>{if(a===null||typeof a!="object"||P.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof et&&(a=a.toJSON()),n.push(a);let s;if(P.isArray(a))s=[],a.forEach((u,l)=>{let p=o(u);P.isUndefined(p)||(s[l]=p)});else{if(!P.isPlainObject(a)&&rU(a))return n.pop(),a;s=Object.create(null);for(let[u,l]of Object.entries(a)){let p=r.has(u.toLowerCase())?tU:o(l);P.isUndefined(p)||(s[u]=p)}}return n.pop(),s},"visit");return o(e)}i(nU,"redactConfig");var $=class e extends Error{static{i(this,"AxiosError")}static from(t,r,n,o,a,s){let u=new e(t.message,r||t.code,n,o,a);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),s&&Object.assign(u,s),u}constructor(t,r,n,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){let t=this.config,r=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,n=P.isArray(r)&&r.length>0?nU(t,r):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};$.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";$.ERR_BAD_OPTION="ERR_BAD_OPTION";$.ECONNABORTED="ECONNABORTED";$.ETIMEDOUT="ETIMEDOUT";$.ECONNREFUSED="ECONNREFUSED";$.ERR_NETWORK="ERR_NETWORK";$.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";$.ERR_DEPRECATED="ERR_DEPRECATED";$.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";$.ERR_BAD_REQUEST="ERR_BAD_REQUEST";$.ERR_CANCELED="ERR_CANCELED";$.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";$.ERR_INVALID_URL="ERR_INVALID_URL";$.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Oy=100;function Ml(e){return P.isPlainObject(e)||P.isArray(e)}i(Ml,"isVisitable");function Ry(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}i(Ry,"removeBrackets");function Ol(e,t,r){return e?e.concat(t).map(i(function(o,a){return o=Ry(o),!r&&a?"["+o+"]":o},"each")).join(r?".":""):t}i(Ol,"renderKey");function iU(e){return P.isArray(e)&&!e.some(Ml)}i(iU,"isFlatArray");var oU=P.toFlatObject(P,{},null,i(function(t){return/^is[A-Z]/.test(t)},"filter"));function Ra(e,t,r){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new(by||FormData),r=P.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,i(function(w,S){return!P.isUndefined(S[w])},"defined"));let n=r.metaTokens,o=r.visitor||h,a=r.dots,s=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?Oy:r.maxDepth,p=u&&P.isSpecCompliantForm(t),c=[];if(!P.isFunction(o))throw new TypeError("visitor must be a function");function m(y){if(y===null)return"";if(P.isDate(y))return y.toISOString();if(P.isBoolean(y))return y.toString();if(!p&&P.isBlob(y))throw new $("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(y)||P.isTypedArray(y)?p&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}i(m,"convertValue");function f(y){if(y>l)throw new $("Object is too deeply nested ("+y+" levels). Max depth: "+l,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}i(f,"throwIfMaxDepthExceeded");function d(y,w){if(l===1/0)return JSON.stringify(y);let S=[];return JSON.stringify(y,i(function(F,U){if(!P.isObject(U))return U;for(;S.length&&S[S.length-1]!==this;)S.pop();return S.push(U),f(w+S.length-1),U},"limitDepth"))}i(d,"stringifyWithDepthLimit");function h(y,w,S){let R=y;if(P.isReactNative(t)&&P.isReactNativeBlob(y))return t.append(Ol(S,w,a),m(y)),!1;if(y&&!S&&typeof y=="object"){if(P.endsWith(w,"{}"))w=n?w:w.slice(0,-2),y=d(y,1);else if(P.isArray(y)&&iU(y)||(P.isFileList(y)||P.endsWith(w,"[]"))&&(R=P.toArray(y)))return w=Ry(w),R.forEach(i(function(U,Z){!(P.isUndefined(U)||U===null)&&t.append(s===!0?Ol([w],Z,a):s===null?w:w+"[]",m(U))},"each")),!1}return Ml(y)?!0:(t.append(Ol(S,w,a),m(y)),!1)}i(h,"defaultVisitor");let _=Object.assign(oU,{defaultVisitor:h,convertValue:m,isVisitable:Ml});function v(y,w,S=0){if(!P.isUndefined(y)){if(f(S),c.indexOf(y)!==-1)throw new Error("Circular reference detected in "+w.join("."));c.push(y),P.forEach(y,i(function(F,U){(!(P.isUndefined(F)||F===null)&&o.call(t,F,P.isString(U)?U.trim():U,w,_))===!0&&v(F,w?w.concat(U):[U],S+1)},"each")),c.pop()}}if(i(v,"build"),!P.isObject(e))throw new TypeError("data must be an object");return v(e),t}i(Ra,"toFormData");function Xg(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,i(function(n){return t[n]},"replacer"))}i(Xg,"encode$1");function zy(e,t){this._pairs=[],e&&Ra(e,this,t)}i(zy,"AxiosURLSearchParams");var Dy=zy.prototype;Dy.append=i(function(t,r){this._pairs.push([t,r])},"append");Dy.toString=i(function(t){let r=t?function(n){return t.call(this,n,Xg)}:Xg;return this._pairs.map(i(function(o){return r(o[0])+"="+r(o[1])},"each"),"").join("&")},"toString");function aU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}i(aU,"encode");function Jl(e,t,r){if(!t)return e;let n=P.isFunction(r)?{serialize:r}:r,o=P.getSafeProp(n,"encode")||aU,a=P.getSafeProp(n,"serialize"),s;if(a?s=a(t,n):s=P.isURLSearchParams(t)?t.toString():new zy(t,n).toString(o),s){let u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}i(Jl,"buildURL");var Ta=class{static{i(this,"InterceptorManager")}constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,i(function(n){n!==null&&t(n)},"forEachHandler"))}},za={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},sU=KN.URLSearchParams,Rl="abcdefghijklmnopqrstuvwxyz",Yg="0123456789",$y={DIGIT:Yg,ALPHA:Rl,ALPHA_DIGIT:Rl+Rl.toUpperCase()+Yg},uU=i((e=16,t=$y.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);GN.randomFillSync(o);for(let a=0;a<e;a++)r+=t[o[a]%n];return r},"generateString"),lU={isNode:!0,classes:{URLSearchParams:sU,FormData:by,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:$y,generateString:uU,protocols:["http","https","file","data"]},Xl=typeof window<"u"&&typeof document<"u",Ll=typeof navigator=="object"&&navigator||void 0,cU=Xl&&(!Ll||["ReactNative","NativeScript","NS"].indexOf(Ll.product)<0),pU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dU=Xl&&window.location.href||"http://localhost",mU=Object.freeze({__proto__:null,hasBrowserEnv:Xl,hasStandardBrowserEnv:cU,hasStandardBrowserWebWorkerEnv:pU,navigator:Ll,origin:dU}),He={...mU,...lU};function fU(e,t){return Ra(e,new He.classes.URLSearchParams,{visitor:i(function(r,n,o,a){return He.isNode&&P.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},"visitor"),...t})}i(fU,"toURLEncodedForm");var Qg=Oy;function Ny(e){if(e>Qg)throw new $("FormData field is too deeply nested ("+e+" levels). Max depth: "+Qg,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}i(Ny,"throwIfDepthExceeded");function hU(e){let t=[],r=/\w+|\[(\w*)]/g,n;for(;(n=r.exec(e))!==null;)Ny(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}i(hU,"parsePropPath");function gU(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}i(gU,"arrayToObject");function Uy(e){function t(r,n,o,a){Ny(a);let s=r[a++];if(s==="__proto__")return!0;let u=Number.isFinite(+s),l=a>=r.length;return s=!s&&P.isArray(o)?o.length:s,l?(P.hasOwnProp(o,s)?o[s]=P.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!u):((!P.hasOwnProp(o,s)||!P.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],a)&&P.isArray(o[s])&&(o[s]=gU(o[s])),!u)}if(i(t,"buildPath"),P.isFormData(e)&&P.isFunction(e.entries)){let r={};return P.forEachEntry(e,(n,o)=>{t(hU(n),o,r,0)}),r}return null}i(Uy,"formDataToJSON");var Wn=i((e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0,"own");function yU(e,t,r){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}i(yU,"stringifySafely");var oo={transitional:za,adapter:["xhr","http","fetch"],transformRequest:[i(function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=P.isObject(t);if(a&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Uy(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){let l=Wn(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return fU(t,l).toString();if((u=P.isFileList(t))||n.indexOf("multipart/form-data")>-1){let p=Wn(this,"env"),c=p&&p.FormData;return Ra(u?{"files[]":t}:t,c&&new c,l)}}return a||o?(r.setContentType("application/json",!1),yU(t)):t},"transformRequest")],transformResponse:[i(function(t){let r=Wn(this,"transitional")||oo.transitional,n=r&&r.forcedJSONParsing,o=Wn(this,"responseType"),a=o==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(n&&!o||a)){let u=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,Wn(this,"parseReviver"))}catch(l){if(u)throw l.name==="SyntaxError"?$.from(l,$.ERR_BAD_RESPONSE,this,null,Wn(this,"response")):l}}return t},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:i(function(t){return t>=200&&t<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{oo.headers[e]={}});function zl(e,t){let r=this||oo,n=t||r,o=et.from(n.headers),a=n.data;return P.forEach(e,i(function(u){a=u.call(r,a,o.normalize(),t?t.status:void 0)},"transform")),o.normalize(),a}i(zl,"transformData");function My(e){return!!(e&&e.__CANCEL__)}i(My,"isCancel");var Or=class extends ${static{i(this,"CanceledError")}constructor(t,r,n){super(t??"canceled",$.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zn(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $("Request failed with status code "+r.status,r.status>=400&&r.status<500?$.ERR_BAD_REQUEST:$.ERR_BAD_RESPONSE,r.config,r.request,r))}i(Zn,"settle");function vU(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i(vU,"isAbsoluteURL");function bU(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i(bU,"combineURLs");var xU=/^https?:(?!\/\/)/i,_U=/[\t\n\r]/g;function kU(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}i(kU,"stripLeadingC0ControlOrSpace");function wU(e){return kU(e).replace(_U,"")}i(wU,"normalizeURLForProtocolCheck");function ey(e,t){if(typeof e=="string"&&xU.test(wU(e)))throw new $('Invalid URL: missing "//" after protocol',$.ERR_INVALID_URL,t)}i(ey,"assertValidHttpProtocolURL");function Yl(e,t,r,n){ey(t,n);let o=!vU(t);return e&&(o||r===!1)?(ey(e,n),bU(e,t)):t}i(Yl,"buildFullPath");var PU={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function SU(e){try{return new URL(e)}catch{return null}}i(SU,"parseUrl");function TU(e){var t=(typeof e=="string"?SU(e):e)||{},r=t.protocol,n=t.host,o=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||PU[r]||0,!AU(n,o)))return"";var a=ql(r+"_proxy")||ql("all_proxy");return a&&a.indexOf("://")===-1&&(a=r+"://"+a),a}i(TU,"getProxyForUrl");function AU(e,t){var r=ql("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,s=o?parseInt(o[2]):0;return s&&s!==t?!0:/^[.*]/.test(a)?(a.charAt(0)==="*"&&(a=a.slice(1)),!e.endsWith(a)):e!==a}):!0}i(AU,"shouldProxy");function ql(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}i(ql,"getEnv");var to="1.18.0";function Ly(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}i(Ly,"parseProtocol");var EU=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function IU(e,t,r){let n=r&&r.Blob||He.classes.Blob,o=Ly(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let a=EU.exec(e);if(!a)throw new $("Invalid URL",$.ERR_INVALID_URL);let s=a[1],u=a[2],l=a[3]?"base64":"utf8",p=a[4],c;s?c=u?s+u:s:u&&(c="text/plain"+u);let m=Buffer.from(decodeURIComponent(p),l);if(t){if(!n)throw new $("Blob is not supported",$.ERR_NOT_SUPPORT);return new n([m],{type:c})}return m}throw new $("Unsupported protocol "+o,$.ERR_NOT_SUPPORT)}i(IU,"fromDataURI");var Dl=Symbol("internals"),Aa=class extends Ot.Transform{static{i(this,"AxiosTransformStream")}constructor(t){t=P.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!P.isUndefined(o[n])),super({readableHighWaterMark:t.chunkSize});let r=this[Dl]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){let r=this[Dl];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[Dl],a=o.maxRate,s=this.readableHighWaterMark,u=o.timeWindow,l=1e3/u,p=a/l,c=o.minChunkSize!==!1?Math.max(o.minChunkSize,p*.01):0,m=i((d,h)=>{let _=Buffer.byteLength(d);o.bytesSeen+=_,o.bytes+=_,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(d)?process.nextTick(h):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(h)}},"pushChunk"),f=i((d,h)=>{let _=Buffer.byteLength(d),v=null,y=s,w,S=0;if(a){let R=Date.now();(!o.ts||(S=R-o.ts)>=u)&&(o.ts=R,w=p-o.bytes,o.bytes=w<0?-w:0,S=0),w=p-o.bytes}if(a){if(w<=0)return setTimeout(()=>{h(null,d)},u-S);w<y&&(y=w)}y&&_>y&&_-y>c&&(v=d.subarray(y),d=d.subarray(0,y)),m(d,v?()=>{process.nextTick(h,null,v)}:h)},"transformChunk");f(t,i(function d(h,_){if(h)return n(h);_?f(_,d):n(null)},"transformNextChunk"))}},{asyncIterator:ty}=Symbol,qy=i(async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[ty]?yield*e[ty]():yield e},"readBlob"),CU=He.ALPHABET.ALPHA_DIGIT+"-_",ro=typeof TextEncoder=="function"?new TextEncoder:new Wl.TextEncoder,vn=`\r
16
+ `,OU=ro.encode(vn),RU=2,Fl=class{static{i(this,"FormDataPart")}constructor(t,r){let{escapeName:n}=this.constructor,o=P.isString(r),a=`Content-Disposition: form-data; name="${n(t)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${vn}`;if(o)r=ro.encode(String(r).replace(/\r?\n|\r\n?/g,vn));else{let s=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");a+=`Content-Type: ${s}${vn}`}this.headers=ro.encode(a+vn),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+RU,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;P.isTypedArray(t)?yield t:yield*qy(t),yield OU}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},zU=i((e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:a=n+"-"+He.generateString(o,CU)}=r||{};if(!P.isFormData(e))throw new TypeError("FormData instance required");if(a.length<1||a.length>70)throw new Error("boundary must be 1-70 characters long");let s=ro.encode("--"+a+vn),u=ro.encode("--"+a+"--"+vn),l=u.byteLength,p=Array.from(e.entries()).map(([m,f])=>{let d=new Fl(m,f);return l+=d.size,d});l+=s.byteLength*p.length,l=P.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(l)&&(c["Content-Length"]=l),t&&t(c),Ot.Readable.from((async function*(){for(let m of p)yield s,yield*m.encode();yield u})())},"formDataToStream"),Bl=class extends Ot.Transform{static{i(this,"ZlibHeaderTransformStream")}__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(t,r,n)}},jl=class{static{i(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[t];if(n){let m=n.length;for(let f=0;f<m;f++){let[d,h]=n[f];if(!d.destroyed&&!d.closed&&Wl.isDeepStrictEqual(h,r))return d}}let o=_y.connect(t,r),a,s,u=i(()=>{if(a)return;a=!0,s&&(clearTimeout(s),s=null);let m=n,f=m.length,d=f;for(;d--;)if(m[d][0]===o){f===1?delete this.sessions[t]:m.splice(d,1),o.closed||o.close();return}},"removeSession"),l=o.request,{sessionTimeout:p}=r;if(p!=null){let m=0;o.request=function(){let f=l.apply(this,arguments);return m++,s&&(clearTimeout(s),s=null),f.once("close",()=>{--m||(s=setTimeout(()=>{s=null,u()},p))}),f}}o.once("close",u);let c=[o,r];return n?n.push(c):n=this.sessions[t]=[c],o}},DU=i((e,t)=>P.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(o=>{try{t?n(null,...t(o)):n(null,o)}catch(a){n(a)}},n)}:e,"callbackify"),$U=new Set(["localhost","0.0.0.0"]),Fy=i(e=>{let t=e.split(".");return t.length!==4||t[0]!=="127"?!1:t.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},"isIPv4Loopback"),$l=i(e=>/^0{1,4}$/.test(e),"isIPv6ZeroGroup"),NU=i(e=>{if(e==="::")return!0;let t=e.indexOf("::");if(t!==-1){if(t!==e.lastIndexOf("::"))return!1;let n=e.slice(0,t),o=e.slice(t+2),a=n?n.split(":"):[],s=o?o.split(":"):[];return a.length+s.length<8&&a.every($l)&&s.every($l)}let r=e.split(":");return r.length===8&&r.every($l)},"isIPv6Unspecified"),UU=i(e=>{if(e==="::1")return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return Fy(t[1]);let r=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=e.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},"isIPv6Loopback"),ry=i(e=>e?$U.has(e)||Fy(e)||NU(e)?!0:UU(e):!1,"isLoopback"),MU={http:80,https:443,ws:80,wss:443,ftp:21},LU=i(e=>{let t=e,r=0;if(t.charAt(0)==="["){let a=t.indexOf("]");if(a!==-1){let s=t.slice(1,a),u=t.slice(a+1);return u.charAt(0)===":"&&/^\d+$/.test(u.slice(1))&&(r=Number.parseInt(u.slice(1),10)),[s,r]}}let n=t.indexOf(":"),o=t.lastIndexOf(":");return n!==-1&&n===o&&/^\d+$/.test(t.slice(o+1))&&(r=Number.parseInt(t.slice(o+1),10),t=t.slice(0,o)),[t,r]},"parseNoProxyEntry"),qU=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,FU=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,BU=i(e=>{if(typeof e!="string"||e.indexOf(":")===-1)return e;let t=e.match(qU);if(t)return t[1];let r=e.match(FU);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return e},"unmapIPv4MappedIPv6"),ny=i(e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),BU(e.replace(/\.+$/,""))),"normalizeNoProxyHost");function jU(e){let t;try{t=new URL(e)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let n=Number.parseInt(t.port,10)||MU[t.protocol.split(":",1)[0]]||0,o=ny(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(a=>{if(!a)return!1;let[s,u]=LU(a);return s=ny(s),!s||u&&u!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?o.endsWith(s):o===s||ry(o)&&ry(s))})}i(jU,"shouldBypassProxy");function VU(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,s;return t=t!==void 0?t:1e3,i(function(l){let p=Date.now(),c=n[a];s||(s=p),r[o]=l,n[o]=p;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),p-s<t)return;let d=c&&p-c;return d?Math.round(f*1e3/d):void 0},"push")}i(VU,"speedometer");function HU(e,t){let r=0,n=1e3/t,o,a,s=i((p,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e(...p)},"invoke");return[i((...p)=>{let c=Date.now(),m=c-r;m>=n?s(p,c):(o=p,a||(a=setTimeout(()=>{a=null,s(o)},n-m)))},"throttled"),i(()=>o&&s(o),"flush")]}i(HU,"throttle");var Jn=i((e,t,r=3)=>{let n=0,o=VU(50,250);return HU(a=>{if(!a||typeof a.loaded!="number")return;let s=a.loaded,u=a.lengthComputable?a.total:void 0,l=u!=null?Math.min(s,u):s,p=Math.max(0,l-n),c=o(p);n=Math.max(n,l);let m={loaded:l,total:u,progress:u?l/u:void 0,bytes:p,rate:c||void 0,estimated:c&&u?(u-l)/c:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},r)},"progressEventReducer"),Ea=i((e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},"progressEventDecorator"),Ia=i(e=>(...t)=>P.asap(()=>e(...t)),"asyncDecorator"),Ca=i(e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,"isHexDigit"),WU=i((e,t,r)=>t+2<r&&Ca(e.charCodeAt(t+1))&&Ca(e.charCodeAt(t+2)),"isPercentEncodedByte");function By(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let s=n.length,u=n.length;for(let d=0;d<u;d++)if(n.charCodeAt(d)===37&&d+2<u){let h=n.charCodeAt(d+1),_=n.charCodeAt(d+2);Ca(h)&&Ca(_)&&(s-=2,d+=2)}let l=0,p=u-1,c=i(d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100),"tailIsPct3D");p>=0&&(n.charCodeAt(p)===61?(l++,p--):c(p)&&(l++,p-=3)),l===1&&p>=0&&(n.charCodeAt(p)===61||c(p))&&l++;let f=Math.floor(s/4)*3-(l||0);return f>0?f:0}let a=0;for(let s=0,u=n.length;s<u;s++){let l=n.charCodeAt(s);if(l===37&&WU(n,s,u))a+=1,s+=2;else if(l<128)a+=1;else if(l<2048)a+=2;else if(l>=55296&&l<=56319&&s+1<u){let p=n.charCodeAt(s+1);p>=56320&&p<=57343?(a+=4,s++):a+=3}else a+=3}return a}i(By,"estimateDataURLDecodedBytes");var iy={flush:Vt.constants.Z_SYNC_FLUSH,finishFlush:Vt.constants.Z_SYNC_FLUSH},ZU={flush:Vt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Vt.constants.BROTLI_OPERATION_FLUSH},GU={flush:Vt.constants.ZSTD_e_flush,finishFlush:Vt.constants.ZSTD_e_flush},jy=P.isFunction(Vt.createBrotliDecompress),Vy=P.isFunction(Vt.createZstdDecompress),Hy="gzip, compress, deflate"+(jy?", br":""),KU=Hy+(Vy?", zstd":""),{http:JU,https:XU}=YN,Wy=/https:?/,YU=["content-type","content-length"];function QU(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{YU.includes(n.toLowerCase())&&e.set(n,o)})}i(QU,"setFormDataHeaders$1");var oy=Symbol("axios.http.socketListener"),xa=Symbol("axios.http.currentReq"),Zy=Symbol("axios.http.installedTunnel"),eM=new Map,ay=new WeakMap;function tM(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||"")+"#"+(e.auth||""),n=t?ay.get(t)||ay.set(t,new Map).get(t):eM,o=n.get(r);if(o)return o;let a=t&&t.options?{...t.options,...e}:e;if(o=new xy(a),t&&t.options){let s={...t.options},u=o.callback;o.callback=i(function(p,c){return u.call(this,p,{...s,...c})},"axiosTunnelingAgentCallback")}return o[Zy]=!0,n.set(r,o),o}i(tM,"getTunnelingAgent");var sy=He.protocols.map(e=>e+":"),uy=i(e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe$1"),ly=i((e,[t,r])=>(e.on("end",r).on("error",r),t),"flushOnFinish"),rM=new jl;function nM(e,t,r){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,r),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,r)}i(nM,"dispatchBeforeRedirect");function iM(e,t){e&&Object.keys(e).forEach(r=>{t.has(r.toLowerCase())&&delete e[r]})}i(iM,"stripMatchingHeaders");function oM(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}i(oM,"isSameOriginRedirect");function Gy(e,t,r,n,o){let a=t;if(!a&&a!==!1){let s=TU(r);s&&(jU(r)||(a=new URL(s)))}if(n&&e.headers)for(let s of Object.keys(e.headers))s.toLowerCase()==="proxy-authorization"&&delete e.headers[s];if(n&&e.agent&&e.agent[Zy]&&(e.agent=void 0),a){let s=a instanceof URL,u=i(f=>s||P.hasOwnProp(a,f)?a[f]:void 0,"readProxyField"),l=u("username"),p=u("password"),c=P.hasOwnProp(a,"auth")?a.auth:void 0;if(l&&(c=(l||"")+":"+(p||"")),c){let f=typeof c=="object",d=f&&P.hasOwnProp(c,"username")?c.username:void 0,h=f&&P.hasOwnProp(c,"password")?c.password:void 0;if(!!(d||h))c=(d||"")+":"+(h||"");else if(f)throw new $("Invalid proxy authorization",$.ERR_BAD_OPTION,{proxy:a})}if(Wy.test(e.protocol)){if(!(o instanceof xy)){let f=u("hostname")||u("host"),d=u("port"),h=u("protocol"),_=h?h.includes(":")?h:`${h}:`:"http:",v=f&&f.includes(":")&&!f.startsWith("[")?`[${f}]`:f,y=new URL(`${_}//${v}${d?":"+d:""}`),w={protocol:y.protocol,hostname:y.hostname.replace(/^\[|\]$/g,""),port:y.port,auth:c&&typeof c=="string"?c:void 0};y.protocol==="https:"&&(w.ALPNProtocols=["http/1.1"]);let S=tM(w,o);e.agent=S,e.agents&&(e.agents.https=S)}}else{if(c){let _=Buffer.from(c,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+_}let f=!1;for(let _ of Object.keys(e.headers))if(_.toLowerCase()==="host"){f=!0;break}f||(e.headers.host=e.hostname+(e.port?":"+e.port:""));let d=u("hostname")||u("host");e.hostname=d,e.host=d,e.port=u("port"),e.path=r;let h=u("protocol");h&&(e.protocol=h.includes(":")?h:`${h}:`)}}e.beforeRedirects.proxy=i(function(u){Gy(u,t,u.href,!0,o)},"beforeRedirect")}i(Gy,"setProxy");var aM=typeof process<"u"&&P.kindOf(process)==="process",sM=i(e=>new Promise((t,r)=>{let n,o,a=i((l,p)=>{o||(o=!0,n&&n(l,p))},"done"),s=i(l=>{a(l),t(l)},"_resolve"),u=i(l=>{a(l,!0),r(l)},"_reject");e(s,u,l=>n=l).catch(u)}),"wrapAsync"),uM=i(({address:e,family:t})=>{if(!P.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},"resolveFamily"),cy=i((e,t)=>uM(P.isObject(e)?e:{address:e,family:t}),"buildAddressEntry"),lM={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:n,headers:o}=e,a=rM.getSession(r,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:p}=_y.constants,c={[s]:e.protocol.replace(":",""),[u]:e.method,[l]:e.path};P.forEach(o,(f,d)=>{d.charAt(0)!==":"&&(c[d]=f)});let m=a.request(c);return m.once("response",f=>{let d=m;f=Object.assign({},f);let h=f[p];delete f[p],d.headers=f,d.statusCode=+h,t(d)}),m}},cM=aM&&i(function(t){return sM(i(async function(n,o,a){let s=i(M=>P.getSafeProp(t,M),"own"),u=s("transitional")||za,l=s("data"),p=s("lookup"),c=s("family"),m=s("httpVersion");m===void 0&&(m=1);let f=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),_=s("httpAgent"),v=s("httpsAgent"),y=s("method").toUpperCase(),w=s("maxRedirects"),S=s("maxBodyLength"),R=s("maxContentLength"),F=s("decompress"),U,Z=!1,q,W;if(m=+m,Number.isNaN(m))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(m!==1&&m!==2)throw TypeError(`Unsupported protocol version '${m}'`);let G=m===2;if(p){let M=DU(p,L=>P.isArray(L)?L:[L]);p=i((L,le,xe)=>{M(L,le,(me,Ze,Ne)=>{if(me)return xe(me);let qe=P.isArray(Ze)?Ze.map(Lr=>cy(Lr)):[cy(Ze,Ne)];le.all?xe(me,qe):xe(me,qe[0].address,qe[0].family)})},"lookup")}let N=new QN.EventEmitter;function j(M){try{N.emit("abort",!M||M.type?new Or(null,t,q):M)}catch{}}i(j,"abort");function de(){W&&(clearTimeout(W),W=null)}i(de,"clearConnectPhaseTimer");function re(){let M=s("timeout"),L=M?"timeout of "+M+"ms exceeded":"timeout exceeded",le=s("timeoutErrorMessage");return le&&(L=le),new $(L,u.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,q)}i(re,"createTimeoutError"),N.once("abort",o);let Ie=i(()=>{de(),t.cancelToken&&t.cancelToken.unsubscribe(j),t.signal&&t.signal.removeEventListener("abort",j),N.removeAllListeners()},"onFinished");(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(j),t.signal&&(t.signal.aborted?j():t.signal.addEventListener("abort",j))),a((M,L)=>{if(U=!0,de(),L){Z=!0,Ie();return}let{data:le}=M;if(le instanceof Ot.Readable||le instanceof Ot.Duplex){let xe=Ot.finished(le,()=>{xe(),Ie()})}else Ie()});let je=Yl(s("baseURL"),s("url"),s("allowAbsoluteUrls"),t),A=new URL(je,He.hasBrowserEnv?He.origin:void 0),ke=A.protocol||sy[0];if(ke==="data:"){if(R>-1){let L=String(s("url")||je||"");if(By(L)>R)return o(new $("maxContentLength size of "+R+" exceeded",$.ERR_BAD_RESPONSE,t))}let M;if(y!=="GET")return Zn(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{M=IU(s("url"),d==="blob",{Blob:t.env&&t.env.Blob})}catch(L){throw $.from(L,$.ERR_BAD_REQUEST,t)}return d==="text"?(M=M.toString(h),(!h||h==="utf8")&&(M=P.stripBOM(M))):d==="stream"&&(M=Ot.Readable.from(M)),Zn(n,o,{data:M,status:200,statusText:"OK",headers:new et,config:t})}if(sy.indexOf(ke)===-1)return o(new $("Unsupported protocol "+ke,$.ERR_BAD_REQUEST,t));let Pe=et.from(t.headers).normalize();Pe.set("User-Agent","axios/"+to,!1);let{onUploadProgress:Se,onDownloadProgress:g}=t,ht=t.maxRate,vt,Tt;if(P.isSpecCompliantForm(l)){let M=Pe.getContentType(/boundary=([-_\w\d]{10,70})/i);l=zU(l,L=>{Pe.set(L)},{tag:`axios-${to}-boundary`,boundary:M&&M[1]||void 0})}else if(P.isFormData(l)&&P.isFunction(l.getHeaders)&&l.getHeaders!==Object.prototype.getHeaders){if(QU(Pe,l.getHeaders(),s("formDataHeaderPolicy")),!Pe.hasContentLength())try{let M=await Wl.promisify(l.getLength).call(l);Number.isFinite(M)&&M>=0&&Pe.setContentLength(M)}catch{}}else if(P.isBlob(l)||P.isFile(l))l.size&&Pe.setContentType(l.type||"application/octet-stream"),Pe.setContentLength(l.size||0),l=Ot.Readable.from(qy(l));else if(l&&!P.isStream(l)){if(!Buffer.isBuffer(l))if(P.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(P.isString(l))l=Buffer.from(l,"utf-8");else return o(new $("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$.ERR_BAD_REQUEST,t));if(Pe.setContentLength(l.length,!1),S>-1&&l.length>S)return o(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t))}let _r=P.toFiniteNumber(Pe.getContentLength());P.isArray(ht)?(vt=ht[0],Tt=ht[1]):vt=Tt=ht,l&&(Se||vt)&&(P.isStream(l)||(l=Ot.Readable.from(l,{objectMode:!1})),l=Ot.pipeline([l,new Aa({maxRate:P.toFiniteNumber(vt)})],P.noop),Se&&l.on("progress",ly(l,Ea(_r,Jn(Ia(Se),!1,3)))));let K,gt=s("auth");if(gt){let M=P.getSafeProp(gt,"username")||"",L=P.getSafeProp(gt,"password")||"";K=M+":"+L}if(!K&&(A.username||A.password)){let M=uy(A.username),L=uy(A.password);K=M+":"+L}K&&Pe.delete("authorization");let Yt;try{Yt=Jl(A.pathname+A.search,s("params"),s("paramsSerializer")).replace(/^\?/,"")}catch(M){let L=new Error(M.message);return L.config=t,L.url=s("url"),L.exists=!0,o(L)}Pe.set("Accept-Encoding",P.hasOwnProp(u,"advertiseZstdAcceptEncoding")&&u.advertiseZstdAcceptEncoding===!0?KU:Hy,!1);let $e=Object.assign(Object.create(null),{path:Yt,method:y,headers:Kl(Pe),agents:{http:_,https:v},auth:K,protocol:ke,family:c,beforeRedirect:nM,beforeRedirects:Object.create(null),http2Options:f});!P.isUndefined(p)&&($e.lookup=p);let kr=s("socketPath");if(kr){if(typeof kr!="string")return o(new $("socketPath must be a string",$.ERR_BAD_OPTION_VALUE,t));let M=s("allowedSocketPaths");if(M!=null){let L=Array.isArray(M)?M:[M],le=Zg.resolve(kr);if(!L.some(me=>typeof me=="string"&&Zg.resolve(me)===le))return o(new $(`socketPath "${kr}" is not permitted by allowedSocketPaths`,$.ERR_BAD_OPTION_VALUE,t))}$e.socketPath=kr}else $e.hostname=A.hostname.startsWith("[")?A.hostname.slice(1,-1):A.hostname,$e.port=A.port,Gy($e,s("proxy"),ke+"//"+A.hostname+(A.port?":"+A.port:"")+$e.path,!1,v);let ar,At=!1,on=!1,sr=Wy.test($e.protocol);if($e.agent==null&&($e.agent=sr?v:_),G)ar=lM;else{let M=s("transport");if(M)ar=M;else if(w===0)ar=sr?XN:JN,At=!0;else{on=!0,$e.sensitiveHeaders=[],w&&($e.maxRedirects=w);let L=s("beforeRedirect");if(L&&($e.beforeRedirects.config=L),K){let xe=A.origin,me=K;$e.beforeRedirects.auth=i(function(Ne){try{new URL(Ne.href).origin===xe&&(Ne.auth=me)}catch{}},"beforeRedirectAuth")}let le=s("sensitiveHeaders");if(le!=null){if(!P.isArray(le))return o(new $("sensitiveHeaders must be an array of strings",$.ERR_BAD_OPTION_VALUE,t));let xe=new Set;for(let me of le){if(!P.isString(me))return o(new $("sensitiveHeaders must be an array of strings",$.ERR_BAD_OPTION_VALUE,t));xe.add(me.toLowerCase())}xe.size&&($e.sensitiveHeaders=Array.from(xe),$e.beforeRedirects.sensitiveHeaders=i(function(Ze,Ne){oM(Ze,Ne)||iM(Ze.headers,xe)},"beforeRedirectSensitiveHeaders"))}ar=sr?XU:JU}}S>-1?$e.maxBodyLength=S:$e.maxBodyLength=1/0,$e.insecureHTTPParser=!!s("insecureHTTPParser"),q=ar.request($e,i(function(L){if(de(),q.destroyed)return;let le=[L],xe=P.toFiniteNumber(L.headers["content-length"]);if(g||Tt){let qe=new Aa({maxRate:P.toFiniteNumber(Tt)});g&&qe.on("progress",ly(qe,Ea(xe,Jn(Ia(g),!0,3)))),le.push(qe)}let me=L,Ze=L.req||q;if(F!==!1&&L.headers["content-encoding"])switch((y==="HEAD"||L.statusCode===204)&&delete L.headers["content-encoding"],(L.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":le.push(Vt.createUnzip(iy)),delete L.headers["content-encoding"];break;case"deflate":le.push(new Bl),le.push(Vt.createUnzip(iy)),delete L.headers["content-encoding"];break;case"br":jy&&(le.push(Vt.createBrotliDecompress(ZU)),delete L.headers["content-encoding"]);break;case"zstd":Vy&&(le.push(Vt.createZstdDecompress(GU)),delete L.headers["content-encoding"]);break}me=le.length>1?Ot.pipeline(le,P.noop):le[0];let Ne={status:L.statusCode,statusText:L.statusMessage,headers:new et(L.headers),config:t,request:Ze};if(d==="stream"){if(R>-1){let qe=R,Lr=me;async function*an(){let nt=0;for await(let Do of Lr){if(nt+=Do.length,nt>qe)throw new $("maxContentLength size of "+qe+" exceeded",$.ERR_BAD_RESPONSE,t,Ze);yield Do}}i(an,"enforceMaxContentLength"),me=Ot.Readable.from(an(),{objectMode:!1})}Ne.data=me,Zn(n,o,Ne)}else{let qe=[],Lr=0;me.on("data",i(function(nt){qe.push(nt),Lr+=nt.length,R>-1&&Lr>R&&(Z=!0,me.destroy(),j(new $("maxContentLength size of "+R+" exceeded",$.ERR_BAD_RESPONSE,t,Ze)))},"handleStreamData")),me.on("aborted",i(function(){if(Z)return;let nt=new $("stream has been aborted",$.ERR_BAD_RESPONSE,t,Ze,Ne);me.destroy(nt),o(nt)},"handlerStreamAborted")),me.on("error",i(function(nt){Z||o($.from(nt,null,t,Ze,Ne))},"handleStreamError")),me.on("end",i(function(){try{let nt=qe.length===1?qe[0]:Buffer.concat(qe);d!=="arraybuffer"&&(nt=nt.toString(h),(!h||h==="utf8")&&(nt=P.stripBOM(nt))),Ne.data=nt}catch(nt){return o($.from(nt,null,t,Ne.request,Ne))}Zn(n,o,Ne)},"handleStreamEnd"))}N.once("abort",qe=>{me.destroyed||(me.emit("error",qe),me.destroy())})},"handleResponse")),N.once("abort",M=>{q.close?q.close():q.destroy(M)}),q.on("error",i(function(L){o($.from(L,null,t,q))},"handleRequestError"));let wt=new Set;if(q.on("socket",i(function(L){L.setKeepAlive(!0,1e3*60),L[oy]||(L.on("error",i(function(xe){let me=L[xa];me&&!me.destroyed&&me.destroy(xe)},"handleSocketError")),L[oy]=!0),L[xa]=q,wt.add(L)},"handleRequestSocket")),q.once("close",i(function(){de();for(let L of wt)L[xa]===q&&(L[xa]=null);wt.clear()},"clearCurrentReq")),s("timeout")){let M=parseInt(s("timeout"),10);if(Number.isNaN(M)){j(new $("error trying to parse `config.timeout` to int",$.ERR_BAD_OPTION_VALUE,t,q));return}let L=i(function(){U||j(re())},"handleTimeout");At&&M>0&&(W=setTimeout(L,M)),q.setTimeout(M,L)}else q.setTimeout(0);if(P.isStream(l)){let M=!1,L=!1;l.on("end",()=>{M=!0}),l.once("error",xe=>{L=!0,q.destroy(xe)}),l.on("close",()=>{!M&&!L&&j(new Or("Request stream has been aborted",t,q))});let le=l;if(S>-1&&!on){let xe=S,me=0;le=Ot.pipeline([l,new Ot.Transform({transform(Ze,Ne,qe){if(me+=Ze.length,me>xe)return qe(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t,q));qe(null,Ze)}})],P.noop),le.on("error",Ze=>{q.destroyed||q.destroy(Ze)})}le.pipe(q)}else l&&q.write(l),q.end()},"dispatchHttpRequest"))},"httpAdapter"),pM=He.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,He.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(He.origin),He.navigator&&/(msie|trident)/i.test(He.navigator.userAgent)):()=>!0,dM=He.hasStandardBrowserEnv?{write(e,t,r,n,o,a,s){if(typeof document>"u")return;let u=[`${e}=${encodeURIComponent(t)}`];P.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),P.isString(n)&&u.push(`path=${n}`),P.isString(o)&&u.push(`domain=${o}`),a===!0&&u.push("secure"),P.isString(s)&&u.push(`SameSite=${s}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}},py=i(e=>e instanceof et?{...e}:e,"headersToObject");function xn(e,t){t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,m,f,d){return P.isPlainObject(c)&&P.isPlainObject(m)?P.merge.call({caseless:d},c,m):P.isPlainObject(m)?P.merge({},m):P.isArray(m)?m.slice():m}i(n,"getMergedValue");function o(c,m,f,d){if(P.isUndefined(m)){if(!P.isUndefined(c))return n(void 0,c,f,d)}else return n(c,m,f,d)}i(o,"mergeDeepProperties");function a(c,m){if(!P.isUndefined(m))return n(void 0,m)}i(a,"valueFromConfig2");function s(c,m){if(P.isUndefined(m)){if(!P.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}i(s,"defaultToConfig2");function u(c){let m=P.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!P.isUndefined(m))if(P.isPlainObject(m)){if(P.hasOwnProp(m,c))return m[c]}else return;let f=P.hasOwnProp(e,"transitional")?e.transitional:void 0;if(P.isPlainObject(f)&&P.hasOwnProp(f,c))return f[c]}i(u,"getMergedTransitionalOption");function l(c,m,f){if(P.hasOwnProp(t,f))return n(c,m);if(P.hasOwnProp(e,f))return n(void 0,c)}i(l,"mergeDirectKeys");let p={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:i((c,m,f)=>o(py(c),py(m),f,!0),"headers")};return P.forEach(Object.keys({...e,...t}),i(function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;let f=P.hasOwnProp(p,m)?p[m]:o,d=P.hasOwnProp(e,m)?e[m]:void 0,h=P.hasOwnProp(t,m)?t[m]:void 0,_=f(d,h,m);P.isUndefined(_)&&f!==l||(r[m]=_)},"computeConfigValue")),P.hasOwnProp(t,"validateStatus")&&P.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(P.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}i(xn,"mergeConfig");var mM=["content-type","content-length"];function fM(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{mM.includes(n.toLowerCase())&&e.set(n,o)})}i(fM,"setFormDataHeaders");var hM=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8$1");function Ky(e){let t=xn({},e),r=i(f=>P.hasOwnProp(t,f)?t[f]:void 0,"own"),n=r("data"),o=r("withXSRFToken"),a=r("xsrfHeaderName"),s=r("xsrfCookieName"),u=r("headers"),l=r("auth"),p=r("baseURL"),c=r("allowAbsoluteUrls"),m=r("url");if(t.headers=u=et.from(u),t.url=Jl(Yl(p,m,c,t),r("params"),r("paramsSerializer")),l){let f=P.getSafeProp(l,"username")||"",d=P.getSafeProp(l,"password")||"";u.set("Authorization","Basic "+btoa(f+":"+(d?hM(d):"")))}if(P.isFormData(n)&&(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv||P.isReactNative(n)?u.setContentType(void 0):P.isFunction(n.getHeaders)&&fM(u,n.getHeaders(),r("formDataHeaderPolicy"))),He.hasStandardBrowserEnv&&(P.isFunction(o)&&(o=o(t)),o===!0||o==null&&pM(t.url))){let d=a&&s&&dM.read(s);d&&u.set(a,d)}return t}i(Ky,"resolveConfig");var gM=typeof XMLHttpRequest<"u",yM=gM&&function(e){return new Promise(i(function(r,n){let o=Ky(e),a=o.data,s=et.from(o.headers).normalize(),{responseType:u,onUploadProgress:l,onDownloadProgress:p}=o,c,m,f,d,h;function _(){d&&d(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}i(_,"done");let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;let S=et.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),F={data:!u||u==="text"||u==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:S,config:e,request:v};Zn(i(function(Z){r(Z),_()},"_resolve"),i(function(Z){n(Z),_()},"_reject"),F),v=null}i(y,"onloadend"),"onloadend"in v?v.onloadend=y:v.onreadystatechange=i(function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},"handleLoad"),v.onabort=i(function(){v&&(n(new $("Request aborted",$.ECONNABORTED,e,v)),_(),v=null)},"handleAbort"),v.onerror=i(function(R){let F=R&&R.message?R.message:"Network Error",U=new $(F,$.ERR_NETWORK,e,v);U.event=R||null,n(U),_(),v=null},"handleError"),v.ontimeout=i(function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",F=o.transitional||za;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),n(new $(R,F.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,v)),_(),v=null},"handleTimeout"),a===void 0&&s.setContentType(null),"setRequestHeader"in v&&P.forEach(Kl(s),i(function(R,F){v.setRequestHeader(F,R)},"setRequestHeader")),P.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),u&&u!=="json"&&(v.responseType=o.responseType),p&&([f,h]=Jn(p,!0),v.addEventListener("progress",f)),l&&v.upload&&([m,d]=Jn(l),v.upload.addEventListener("progress",m),v.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=i(S=>{v&&(n(!S||S.type?new Or(null,e,v):S),v.abort(),_(),v=null)},"onCanceled"),o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));let w=Ly(o.url);if(w&&!He.protocols.includes(w)){n(new $("Unsupported protocol "+w+":",$.ERR_BAD_REQUEST,e));return}v.send(a||null)},"dispatchXhrRequest"))},vM=i((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,o=i(function(l){if(!n){n=!0,s();let p=l instanceof Error?l:this.reason;r.abort(p instanceof $?p:new Or(p instanceof Error?p.message:p))}},"onabort"),a=t&&setTimeout(()=>{a=null,o(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),s=i(()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)},"unsubscribe");e.forEach(l=>l.addEventListener("abort",o));let{signal:u}=r;return u.unsubscribe=()=>P.asap(s),u},"composeSignals"),bM=i(function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},"streamChunk"),xM=i(async function*(e,t){for await(let r of _M(e))yield*bM(r,t)},"readBytes"),_M=i(async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},"readStream"),dy=i((e,t,r,n)=>{let o=xM(e,t),a=0,s,u=i(l=>{s||(s=!0,n&&n(l))},"_onFinish");return new ReadableStream({async pull(l){try{let{done:p,value:c}=await o.next();if(p){u(),l.close();return}let m=c.byteLength;if(r){let f=a+=m;r(f)}l.enqueue(new Uint8Array(c))}catch(p){throw u(p),p}},cancel(l){return u(l),o.return()}},{highWaterMark:2})},"trackStream"),my=64*1024,{isFunction:_a}=P,kM=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8"),fy=i(e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe"),hy=i((e,...t)=>{try{return!!e(...t)}catch{return!1}},"test"),wM=i(e=>{let t=e.indexOf("://"),r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},"maybeWithAuthCredentials"),PM=i(e=>{let t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:o,Request:a,Response:s}=e,u=o?_a(o):typeof fetch=="function",l=_a(a),p=_a(s);if(!u)return!1;let c=u&&_a(r),m=u&&(typeof n=="function"?(y=>w=>y.encode(w))(new n):async y=>new Uint8Array(await new a(y).arrayBuffer())),f=l&&c&&hy(()=>{let y=!1,w=new a(He.origin,{body:new r,method:"POST",get duplex(){return y=!0,"half"}}),S=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),y&&!S}),d=p&&c&&hy(()=>P.isReadableStream(new s("").body)),h={stream:d&&(y=>y.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(w,S)=>{let R=w&&w[y];if(R)return R.call(w);throw new $(`Response type '${y}' is not supported`,$.ERR_NOT_SUPPORT,S)})});let _=i(async y=>{if(y==null)return 0;if(P.isBlob(y))return y.size;if(P.isSpecCompliantForm(y))return(await new a(He.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(P.isArrayBufferView(y)||P.isArrayBuffer(y))return y.byteLength;if(P.isURLSearchParams(y)&&(y=y+""),P.isString(y))return(await m(y)).byteLength},"getBodyLength"),v=i(async(y,w)=>{let S=P.toFiniteNumber(y.getContentLength());return S??_(w)},"resolveBodyLength");return async y=>{let{url:w,method:S,data:R,signal:F,cancelToken:U,timeout:Z,onDownloadProgress:q,onUploadProgress:W,responseType:G,headers:N,withCredentials:j="same-origin",fetchOptions:de,maxContentLength:re,maxBodyLength:Ie}=Ky(y),je=P.isNumber(re)&&re>-1,A=P.isNumber(Ie)&&Ie>-1,ke=i(K=>P.hasOwnProp(y,K)?y[K]:void 0,"own"),Pe=o||fetch;G=G?(G+"").toLowerCase():"text";let Se=vM([F,U&&U.toAbortSignal()],Z),g=null,ht=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),vt,Tt=null,_r=i(()=>new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,y,g),"maxBodyLengthError");try{let K,gt=ke("auth");if(gt){let M=P.getSafeProp(gt,"username")||"",L=P.getSafeProp(gt,"password")||"";K={username:M,password:L}}if(wM(w)){let M=new URL(w,He.origin);if(!K&&(M.username||M.password)){let L=fy(M.username),le=fy(M.password);K={username:L,password:le}}(M.username||M.password)&&(M.username="",M.password="",w=M.href)}if(K&&(N.delete("authorization"),N.set("Authorization","Basic "+btoa(kM((K.username||"")+":"+(K.password||""))))),je&&typeof w=="string"&&w.startsWith("data:")&&By(w)>re)throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,y,g);if(A&&S!=="get"&&S!=="head"){let M=await _(R);if(typeof M=="number"&&isFinite(M)&&(vt=M,M>Ie))throw _r()}let Yt=A&&(P.isReadableStream(R)||P.isStream(R)),$e=i((M,L,le)=>dy(M,my,xe=>{if(A&&xe>Ie)throw Tt=_r();L&&L(xe)},le),"trackRequestStream");if(f&&S!=="get"&&S!=="head"&&(W||Yt)){if(vt=vt??await v(N,R),vt!==0||Yt){let M=new a(w,{method:"POST",body:R,duplex:"half"}),L;if(P.isFormData(R)&&(L=M.headers.get("content-type"))&&N.setContentType(L),M.body){let[le,xe]=W&&Ea(vt,Jn(Ia(W)))||[];R=$e(M.body,le,xe)}}}else if(Yt&&!l&&c&&S!=="get"&&S!=="head")R=$e(R);else if(Yt&&l&&!f&&S!=="get"&&S!=="head")throw new $("Stream request bodies are not supported by the current fetch implementation",$.ERR_NOT_SUPPORT,y,g);P.isString(j)||(j=j?"include":"omit");let kr=l&&"credentials"in a.prototype;if(P.isFormData(R)){let M=N.getContentType();M&&/^multipart\/form-data/i.test(M)&&!/boundary=/i.test(M)&&N.delete("content-type")}N.set("User-Agent","axios/"+to,!1);let ar={...de,signal:Se,method:S.toUpperCase(),headers:Kl(N.normalize()),body:R,duplex:"half",credentials:kr?j:void 0};g=l&&new a(w,ar);let At=await(l?Pe(g,de):Pe(w,ar)),on=et.from(At.headers);if(je){let M=P.toFiniteNumber(on.getContentLength());if(M!=null&&M>re)throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,y,g)}let sr=d&&(G==="stream"||G==="response");if(d&&At.body&&(q||je||sr&&ht)){let M={};["status","statusText","headers"].forEach(Ne=>{M[Ne]=At[Ne]});let L=P.toFiniteNumber(on.getContentLength()),[le,xe]=q&&Ea(L,Jn(Ia(q),!0))||[],me=0,Ze=i(Ne=>{if(je&&(me=Ne,me>re))throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,y,g);le&&le(Ne)},"onChunkProgress");At=new s(dy(At.body,my,Ze,()=>{xe&&xe(),ht&&ht()}),M)}G=G||"text";let wt=await h[P.findKey(h,G)||"text"](At,y);if(je&&!d&&!sr){let M;if(wt!=null&&(typeof wt.byteLength=="number"?M=wt.byteLength:typeof wt.size=="number"?M=wt.size:typeof wt=="string"&&(M=typeof n=="function"?new n().encode(wt).byteLength:wt.length)),typeof M=="number"&&M>re)throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,y,g)}return!sr&&ht&&ht(),await new Promise((M,L)=>{Zn(M,L,{data:wt,headers:et.from(At.headers),status:At.status,statusText:At.statusText,config:y,request:g})})}catch(K){if(ht&&ht(),Se&&Se.aborted&&Se.reason instanceof $){let gt=Se.reason;throw gt.config=y,g&&(gt.request=g),K!==gt&&(gt.cause=K),gt}throw Tt?(g&&!Tt.request&&(Tt.request=g),Tt):K instanceof $?(g&&!K.request&&(K.request=g),K):K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,y,g,K&&K.response),{cause:K.cause||K}):$.from(K,K&&K.code,y,g,K&&K.response)}}},"factory"),SM=new Map,Jy=i(e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,a=[n,o,r],s=a.length,u=s,l,p,c=SM;for(;u--;)l=a[u],p=c.get(l),p===void 0&&c.set(l,p=u?new Map:PM(t)),c=p;return p},"getFetch");Jy();var Ql={http:cM,xhr:yM,fetch:{get:Jy}};P.forEach(Ql,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var gy=i(e=>`- ${e}`,"renderReason"),TM=i(e=>P.isFunction(e)||e===null||e===!1,"isResolvedHandle");function AM(e,t){e=P.isArray(e)?e:[e];let{length:r}=e,n,o,a={};for(let s=0;s<r;s++){n=e[s];let u;if(o=n,!TM(n)&&(o=Ql[(u=String(n)).toLowerCase()],o===void 0))throw new $(`Unknown adapter '${u}'`);if(o&&(P.isFunction(o)||(o=o.get(t))))break;a[u||"#"+s]=o}if(!o){let s=Object.entries(a).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build")),u=r?s.length>1?`since :
17
+ `+s.map(gy).join(`
18
+ `):" "+gy(s[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}i(AM,"getAdapter");var Xy={getAdapter:AM,adapters:Ql};function Nl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Or(null,e)}i(Nl,"throwIfCancellationRequested");function yy(e){return Nl(e),e.headers=et.from(e.headers),e.data=zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xy.getAdapter(e.adapter||oo.adapter,e)(e).then(i(function(n){Nl(e),e.response=n;try{n.data=zl.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=et.from(n.headers),n},"onAdapterResolution"),i(function(n){if(!My(n)&&(Nl(e),n&&n.response)){e.response=n.response;try{n.response.data=zl.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=et.from(n.response.headers)}return Promise.reject(n)},"onAdapterRejection"))}i(yy,"dispatchRequest");var Da={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Da[e]=i(function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e},"validator")});var vy={};Da.transitional=i(function(t,r,n){function o(a,s){return"[Axios v"+to+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return i(o,"formatMessage"),(a,s,u)=>{if(t===!1)throw new $(o(s," has been removed"+(r?" in "+r:"")),$.ERR_DEPRECATED);return r&&!vy[s]&&(vy[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,u):!0}},"transitional");Da.spelling=i(function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)},"spelling");function EM(e,t,r){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){let u=e[a],l=u===void 0||s(u,a,e);if(l!==!0)throw new $("option "+a+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $("Unknown option "+a,$.ERR_BAD_OPTION)}}i(EM,"assertOptions");var Pa={assertOptions:EM,validators:Da},bt=Pa.validators,Cr=class{static{i(this,"Axios")}constructor(t){this.defaults=t||{},this.interceptors={request:new Ta,response:new Ta}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;let a=(()=>{if(!o.stack)return"";let s=o.stack.indexOf(`
19
19
  `);return s===-1?"":o.stack.slice(s+1)})();try{if(!n.stack)n.stack=a;else if(a){let s=a.indexOf(`
20
20
  `),u=s===-1?-1:a.indexOf(`
21
21
  `,s+1),l=u===-1?"":a.slice(u+1);String(n.stack).endsWith(l)||(n.stack+=`
22
- `+a)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=xn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&wa.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean),legacyInterceptorReqResOrdering:vt.transitional(vt.boolean),advertiseZstdAcceptEncoding:vt.transitional(vt.boolean),validateStatusUndefinedResolves:vt.transitional(vt.boolean)},!1),o!=null&&(P.isFunction(o)?r.paramsSerializer={serialize:o}:wa.assertOptions(o,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),wa.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&P.merge(a.common,a[r.method]);a&&P.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete a[h]}),r.headers=et.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(i(function(_){if(typeof _.runWhen=="function"&&_.runWhen(r)===!1)return;l=l&&_.synchronous;let v=r.transitional||Ra;v&&v.legacyInterceptorReqResOrdering?u.unshift(_.fulfilled,_.rejected):u.push(_.fulfilled,_.rejected)},"unshiftRequestInterceptors"));let p=[];this.interceptors.response.forEach(i(function(_){p.push(_.fulfilled,_.rejected)},"pushResponseInterceptors"));let c,m=0,f;if(!l){let h=[uy.bind(this),void 0];for(h.unshift(...u),h.push(...p),f=h.length,c=Promise.resolve(r);m<f;)c=c.then(h[m++],h[m++]);return c}f=u.length;let d=r;for(;m<f;){let h=u[m++],_=u[m++];try{d=h(d)}catch(v){_.call(this,v);break}}try{c=uy.call(this,d)}catch(h){return Promise.reject(h)}for(m=0,f=p.length;m<f;)c=c.then(p[m++],p[m++]);return c}getUri(t){t=xn(this.defaults,t);let r=Kl(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Wl(r,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],i(function(t){Cr.prototype[t]=function(r,n){return this.request(xn(n||{},{method:t,url:r,data:n&&P.hasOwnProp(n,"data")?n.data:void 0}))}},"forEachMethodNoData"));P.forEach(["post","put","patch","query"],i(function(t){function r(n){return i(function(a,s,u){return this.request(xn(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))},"httpMethod")}i(r,"generateHTTPMethod"),Cr.prototype[t]=r(),t!=="query"&&(Cr.prototype[t+"Form"]=r(!0))},"forEachMethodWithData"));var Fl=class e{static{i(this,"CancelToken")}constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(i(function(a){r=a},"promiseExecutor"));let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a,s=new Promise(u=>{n.subscribe(u),a=u}).then(o);return s.cancel=i(function(){n.unsubscribe(a)},"reject"),s},t(i(function(a,s,u){n.reason||(n.reason=new Or(a,s,u),r(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i(n=>{t.abort(n)},"abort");return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(i(function(o){t=o},"executor")),cancel:t}}};function vM(e){return i(function(r){return e.apply(null,r)},"wrap")}i(vM,"spread");function bM(e){return P.isObject(e)&&e.isAxiosError===!0}i(bM,"isAxiosError");var Bl={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bl).forEach(([e,t])=>{Bl[t]=e});function jy(e){let t=new Cr(e),r=my(Cr.prototype.request,t);return P.extend(r,Cr.prototype,t,{allOwnKeys:!0}),P.extend(r,t,null,{allOwnKeys:!0}),r.create=i(function(o){return jy(xn(e,o))},"create"),r}i(jy,"createInstance");var at=jy(io);at.Axios=Cr;at.CanceledError=Or;at.CancelToken=Fl;at.isCancel=Iy;at.VERSION=eo;at.toFormData=Oa;at.AxiosError=$;at.Cancel=at.CanceledError;at.all=i(function(t){return Promise.all(t)},"all");at.spread=vM;at.isAxiosError=bM;at.mergeConfig=xn;at.AxiosHeaders=et;at.formToJSON=e=>Ey(P.isHTMLForm(e)?new FormData(e):e);at.getAdapter=By.getAdapter;at.HttpStatusCode=Bl;at.default=at;Vy.exports=at});var Wy=b((Pie,Zy)=>{"use strict";Zy.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Ky=b((Sie,Gy)=>{"use strict";var ec=zu(),xM=require("util"),Xl=require("path"),_M=require("http"),kM=require("https"),wM=require("url").parse,PM=require("fs"),SM=require("stream").Stream,TM=require("crypto"),Yl=$u(),AM=Fu(),EM=Xu(),Kr=ca(),Ql=Wy();function ye(e){if(!(this instanceof ye))return new ye(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],ec.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(ye,"FormData");xM.inherits(ye,ec);ye.LINE_BREAK=`\r
23
- `;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=ec.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};ye.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ye.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Kr(t,"httpVersion"))&&!(t instanceof SM))&&(r.knownLength||this._valuesToMeasure.push(t))};ye.prototype._lengthRetriever=function(e,t){Kr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):PM.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Kr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Kr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};ye.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Ql(s,r.header);var u;for(var l in s)if(Kr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+ye.LINE_BREAK)}return"--"+this.getBoundary()+ye.LINE_BREAK+a+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Xl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Xl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Kr(e,"httpVersion")&&(r=Xl.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};ye.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Yl.lookup(e.name)),!r&&e&&e.path&&(r=Yl.lookup(e.path)),!r&&e&&e.readable&&Kr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Yl.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=ye.DEFAULT_CONTENT_TYPE),r};ye.prototype._multiPartFooter=function(){return function(e){var t=ye.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Kr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};ye.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ye.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ye.prototype._generateBoundary=function(){this._boundary="--------------------------"+TM.randomBytes(12).toString("hex")};ye.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ye.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ye.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}AM.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};ye.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=wM(e),n=Ql({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Ql(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=kM.request(n):r=_M.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};ye.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ye.prototype.toString=function(){return"[object FormData]"};EM(ye,"FormData");Gy.exports=ye});var Xy=b((Aie,Jy)=>{function IM(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}i(IM,"isElectron");Jy.exports=IM});var Qy=b((Iie,Yy)=>{"use strict";var dr=i(e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function","isStream");dr.writable=e=>dr(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";dr.readable=e=>dr(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";dr.duplex=e=>dr.writable(e)&&dr.readable(e);dr.transform=e=>dr.duplex(e)&&typeof e._transform=="function";Yy.exports=dr});var tv=b((Oie,tc)=>{"use strict";var CM=Object.prototype.hasOwnProperty,Pt="~";function oo(){}i(oo,"Events");Object.create&&(oo.prototype=Object.create(null),new oo().__proto__||(Pt=!1));function OM(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(OM,"EE");function ev(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new OM(r,n||e,o),s=Pt?Pt+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(ev,"addListener");function $a(e,t){--e._eventsCount===0?e._events=new oo:delete e._events[t]}i($a,"clearEvent");function bt(){this._events=new oo,this._eventsCount=0}i(bt,"EventEmitter");bt.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)CM.call(r,n)&&t.push(Pt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");bt.prototype.listeners=i(function(t){var r=Pt?Pt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");bt.prototype.listenerCount=i(function(t){var r=Pt?Pt+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");bt.prototype.emit=i(function(t,r,n,o,a,s){var u=Pt?Pt+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,m;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(m=1,c=new Array(p-1);m<p;m++)c[m-1]=arguments[m];l.fn.apply(l.context,c)}else{var f=l.length,d;for(m=0;m<f;m++)switch(l[m].once&&this.removeListener(t,l[m].fn,void 0,!0),p){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,r);break;case 3:l[m].fn.call(l[m].context,r,n);break;case 4:l[m].fn.call(l[m].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[m].fn.apply(l[m].context,c)}}return!0},"emit");bt.prototype.on=i(function(t,r,n){return ev(this,t,r,n,!1)},"on");bt.prototype.once=i(function(t,r,n){return ev(this,t,r,n,!0)},"once");bt.prototype.removeListener=i(function(t,r,n,o){var a=Pt?Pt+t:t;if(!this._events[a])return this;if(!r)return $a(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&$a(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:$a(this,a)}return this},"removeListener");bt.prototype.removeAllListeners=i(function(t){var r;return t?(r=Pt?Pt+t:t,this._events[r]&&$a(this,r)):(this._events=new oo,this._eventsCount=0),this},"removeAllListeners");bt.prototype.off=bt.prototype.removeListener;bt.prototype.addListener=bt.prototype.on;bt.prefixed=Pt;bt.EventEmitter=bt;typeof tc<"u"&&(tc.exports=bt)});var nv=b((zie,rv)=>{"use strict";rv.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var ov=b(($ie,Na)=>{"use strict";var RM=nv(),Da=class extends Error{static{i(this,"TimeoutError")}constructor(t){super(t),this.name="TimeoutError"}},iv=i((e,t,r)=>new Promise((n,o)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){n(e);return}let a=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(l){o(l)}return}let s=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,u=r instanceof Error?r:new Da(s);typeof e.cancel=="function"&&e.cancel(),o(u)},t);RM(e.then(n,o),()=>{clearTimeout(a)})}),"pTimeout");Na.exports=iv;Na.exports.default=iv;Na.exports.TimeoutError=Da});var av=b(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});function zM(e,t,r){let n=0,o=e.length;for(;o>0;){let a=o/2|0,s=n+a;r(e[s],t)<=0?(n=++s,o-=a+1):o=a}return n}i(zM,"lowerBound");rc.default=zM});var sv=b(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var $M=av(),nc=class{static{i(this,"PriorityQueue")}constructor(){this._queue=[]}enqueue(t,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:t};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let o=$M.default(this._queue,n,(a,s)=>s.priority-a.priority);this._queue.splice(o,0,n)}dequeue(){let t=this._queue.shift();return t?.run}filter(t){return this._queue.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this._queue.length}};ic.default=nc});var lv=b(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var DM=tv(),uv=ov(),NM=sv(),Ua=i(()=>{},"empty"),UM=new uv.TimeoutError,oc=class extends DM{static{i(this,"PQueue")}constructor(t){var r,n,o,a;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Ua,this._resolveIdle=Ua,t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:NM.default},t),!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=t.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(a=(o=t.interval)===null||o===void 0?void 0:o.toString())!==null&&a!==void 0?a:""}\` (${typeof t.interval})`);this._carryoverConcurrencyCount=t.carryoverConcurrencyCount,this._isIntervalIgnored=t.intervalCap===1/0||t.interval===0,this._intervalCap=t.intervalCap,this._interval=t.interval,this._queue=new t.queueClass,this._queueClass=t.queueClass,this.concurrency=t.concurrency,this._timeout=t.timeout,this._throwOnTimeout=t.throwOnTimeout===!0,this._isPaused=t.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=Ua,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=Ua,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let t=Date.now();if(this._intervalId===void 0){let r=this._intervalEnd-t;if(r<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),t&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this._concurrency=t,this._processQueue()}async add(t,r={}){return new Promise((n,o)=>{let a=i(async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?t():uv.default(Promise.resolve(t()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&o(UM)});n(await s)}catch(s){o(s)}this._next()},"run");this._queue.enqueue(a,r),this._tryToStartAnother(),this.emit("add")})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(t=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),t()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(t=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),t()}})}get size(){return this._queue.size}sizeBy(t){return this._queue.filter(t).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(t){this._timeout=t}};ac.default=oc});var pv=b((Bie,cv)=>{function Vt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}i(Vt,"RetryOperation");cv.exports=Vt;Vt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Vt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Vt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Vt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Vt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Vt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Vt.prototype.start=Vt.prototype.try;Vt.prototype.errors=function(){return this._errors};Vt.prototype.attempts=function(){return this._attempts};Vt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var o=this._errors[n],a=o.message,s=(e[a]||0)+1;e[a]=s,s>=r&&(t=o,r=s)}return t}});var dv=b(_n=>{var MM=pv();_n.operation=function(e){var t=_n.timeouts(e);return new MM(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};_n.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o<t.retries;o++)n.push(this.createTimeout(o,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(o,t)),n.sort(function(a,s){return a-s}),n};_n.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};_n.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var o=0;o<r.length;o++){var a=r[o],s=e[a];e[a]=i(function(l){var p=_n.operation(t),c=Array.prototype.slice.call(arguments,1),m=c.pop();c.push(function(f){p.retry(f)||(f&&(arguments[0]=p.mainError()),m.apply(this,arguments))}),p.attempt(function(){l.apply(e,c)})},"retryWrapper").bind(e,s),e[a].options=t}}});var fv=b((Zie,mv)=>{mv.exports=dv()});var gv=b((Wie,La)=>{"use strict";var LM=fv(),qM=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"],Ma=class extends Error{static{i(this,"AbortError")}constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},FM=i((e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},"decorateErrorWithCounts"),BM=i(e=>qM.includes(e),"isNetworkError"),hv=i((e,t)=>new Promise((r,n)=>{t={onFailedAttempt:i(()=>{},"onFailedAttempt"),retries:10,...t};let o=LM.operation(t);o.attempt(async a=>{try{r(await e(a))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof Ma)o.stop(),n(s.originalError);else if(s instanceof TypeError&&!BM(s.message))o.stop(),n(s);else{FM(s,a,t);try{await t.onFailedAttempt(s)}catch(u){n(u);return}o.retry(s)||n(o.mainError())}}})}),"pRetry");La.exports=hv;La.exports.default=hv;La.exports.AbortError=Ma});var qa=b(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.rateLimitedErrorWithDelay=zt.platformErrorFromResult=zt.httpErrorFromResponse=zt.requestErrorWithOriginal=zt.errorWithCode=zt.ErrorCode=void 0;var Yn;(function(e){e.RequestError="slack_webapi_request_error",e.HTTPError="slack_webapi_http_error",e.PlatformError="slack_webapi_platform_error",e.RateLimitedError="slack_webapi_rate_limited_error",e.FileUploadInvalidArgumentsError="slack_webapi_file_upload_invalid_args_error",e.FileUploadReadFileDataError="slack_webapi_file_upload_read_file_data_error"})(Yn||(zt.ErrorCode=Yn={}));function ao(e,t){let r=e;return r.code=t,r}i(ao,"errorWithCode");zt.errorWithCode=ao;function jM(e,t){let r=ao(new Error(`A request error occurred: ${e.message}`),Yn.RequestError);return t&&(r.original=e),r}i(jM,"requestErrorWithOriginal");zt.requestErrorWithOriginal=jM;function VM(e){let t=ao(new Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),Yn.HTTPError);t.statusCode=e.status,t.statusMessage=e.statusText;let r={};for(let n of Object.keys(e.headers))n&&e.headers[n]&&(r[n]=e.headers[n]);return t.headers=r,t.body=e.data,t}i(VM,"httpErrorFromResponse");zt.httpErrorFromResponse=VM;function HM(e){let t=ao(new Error(`An API error occurred: ${e.error}`),Yn.PlatformError);return t.data=e,t}i(HM,"platformErrorFromResult");zt.platformErrorFromResult=HM;function ZM(e){let t=ao(new Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),Yn.RateLimitedError);return t.retryAfter=e,t}i(ZM,"rateLimitedErrorWithDelay");zt.rateLimitedErrorWithDelay=ZM});var Nv=b(Y=>{"use strict";var Fa=Y&&Y.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})};Object.defineProperty(Y,"__esModule",{value:!0});Y.buildInvalidFilesUploadParamError=Y.buildMultipleChannelsErrorMsg=Y.buildChannelsWarning=Y.buildFilesUploadMissingMessage=Y.buildGeneralFilesUploadWarning=Y.buildLegacyMethodWarning=Y.buildMissingExtensionWarning=Y.buildMissingFileNameWarning=Y.buildLegacyFileTypeWarning=Y.buildFileSizeErrorMsg=Y.buildMissingFileIdError=Y.warnIfLegacyFileType=Y.warnIfMissingOrInvalidFileNameAndDefault=Y.errorIfInvalidOrMissingFileData=Y.errorIfChannelsCsv=Y.warnIfChannels=Y.warnIfNotUsingFilesUploadV2=Y.getAllFileUploadsToComplete=Y.getFileDataAsStream=Y.getFileDataLength=Y.getFileData=Y.getMultipleFileUploadJobs=Y.getFileUploadJob=void 0;var WM=require("node:fs"),GM=require("node:stream"),st=qa();function sc(e,t){var r,n,o,a;return Fa(this,void 0,void 0,function*(){Pv(e,t),xv(e,t),_v(e);let s=wv(e,t),u=yield yv(e),l=vv(u),p={alt_text:e.alt_text,channel_id:(r=e.channels)!==null&&r!==void 0?r:e.channel_id,filename:(n=e.filename)!==null&&n!==void 0?n:s,initial_comment:e.initial_comment,snippet_type:e.snippet_type,title:(a=(o=e.title)!==null&&o!==void 0?o:e.filename)!==null&&a!==void 0?a:s,data:u,length:l};if("thread_ts"in e&&(p.thread_ts=e.thread_ts),"token"in e&&(p.token=e.token),"content"in e)return Object.assign({content:e.content},p);if("file"in e)return Object.assign({file:e.file},p);throw(0,st.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),st.ErrorCode.FileUploadInvalidArgumentsError)})}i(sc,"getFileUploadJob");Y.getFileUploadJob=sc;function KM(e,t){return Fa(this,void 0,void 0,function*(){if("file_uploads"in e)return Promise.all(e.file_uploads.map(r=>{let{channel_id:n,channels:o,initial_comment:a,thread_ts:s}=r;if(n||o||a||s)throw(0,st.errorWithCode)(new Error(Dv()),st.ErrorCode.FileUploadInvalidArgumentsError);let u=Object.assign(Object.assign({},r),{channels:e.channels,channel_id:e.channel_id,initial_comment:e.initial_comment});if("thread_ts"in e&&(u.thread_ts=e.thread_ts),"token"in e&&(u.token=e.token),"content"in r)return sc(Object.assign({content:r.content},u),t);if("file"in r)return sc(Object.assign({file:r.file},u),t);throw(0,st.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),st.ErrorCode.FileUploadInvalidArgumentsError)}));throw new Error(Rv())})}i(KM,"getMultipleFileUploadJobs");Y.getMultipleFileUploadJobs=KM;function yv(e){return Fa(this,void 0,void 0,function*(){if(kv(e),"file"in e){let{file:t}=e;if(Buffer.isBuffer(t))return t;if(typeof t=="string")try{return(0,WM.readFileSync)(t)}catch{throw(0,st.errorWithCode)(new Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),st.ErrorCode.FileUploadInvalidArgumentsError)}let r=yield bv(t);if(r)return r}if("content"in e)return Buffer.from(e.content);throw(0,st.errorWithCode)(new Error("There was an issue getting the file data for the file or content supplied"),st.ErrorCode.FileUploadReadFileDataError)})}i(yv,"getFileData");Y.getFileData=yv;function vv(e){if(e)return Buffer.byteLength(e,"utf8");throw(0,st.errorWithCode)(new Error(Tv()),st.ErrorCode.FileUploadReadFileDataError)}i(vv,"getFileDataLength");Y.getFileDataLength=vv;function bv(e){return Fa(this,void 0,void 0,function*(){let t=[];return new Promise((r,n)=>{e.on("readable",()=>{let o;for(;(o=e.read())!==null;)t.push(o)}),e.on("end",()=>{if(t.length>0){let o=Buffer.concat(t);r(o)}else n(Error("No data in supplied file"))})})})}i(bv,"getFileDataAsStream");Y.getFileDataAsStream=bv;function JM(e){let t={};for(let r of e){let{channel_id:n,thread_ts:o,initial_comment:a,file_id:s,title:u}=r;if(s){let l=`:::${n}:::${o}:::${a}`;Object.prototype.hasOwnProperty.call(t,l)?t[l].files.push({id:s,title:u}):(t[l]={files:[{id:s,title:u}],channel_id:n,initial_comment:a},o&&(t[l].thread_ts=r.thread_ts),"token"in r&&(t[l].token=r.token))}else throw new Error(Sv())}return t}i(JM,"getAllFileUploadsToComplete");Y.getAllFileUploadsToComplete=JM;function XM(e,t){let n=["files.upload"].includes(e);e==="files.upload"&&t.warn(Cv(e)),n&&t.info(Ov())}i(XM,"warnIfNotUsingFilesUploadV2");Y.warnIfNotUsingFilesUploadV2=XM;function xv(e,t){e.channels&&t.warn(zv())}i(xv,"warnIfChannels");Y.warnIfChannels=xv;function _v(e){if((e.channels?e.channels.split(","):[]).length>1)throw(0,st.errorWithCode)(new Error($v()),st.ErrorCode.FileUploadInvalidArgumentsError)}i(_v,"errorIfChannelsCsv");Y.errorIfChannelsCsv=_v;function kv(e){let t="file"in e,r="content"in e;if(!(t||r)||t&&r)throw(0,st.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You cannot supply both"),st.ErrorCode.FileUploadInvalidArgumentsError);if("file"in e){let{file:n}=e;if(n&&!(typeof n=="string"||Buffer.isBuffer(n)||n instanceof GM.Readable))throw(0,st.errorWithCode)(new Error("file must be a valid string path, buffer or Readable"),st.ErrorCode.FileUploadInvalidArgumentsError)}if("content"in e&&e.content&&typeof e.content!="string")throw(0,st.errorWithCode)(new Error("content must be a string"),st.ErrorCode.FileUploadInvalidArgumentsError)}i(kv,"errorIfInvalidOrMissingFileData");Y.errorIfInvalidOrMissingFileData=kv;function wv(e,t){var r;let o=`file.${(r=e.filetype)!==null&&r!==void 0?r:"txt"}`,{filename:a}=e;return a?(a.split(".").length<2&&t.warn(Iv(a)),a):(t.warn(Ev()),o)}i(wv,"warnIfMissingOrInvalidFileNameAndDefault");Y.warnIfMissingOrInvalidFileNameAndDefault=wv;function Pv(e,t){e.filetype&&t.warn(Av())}i(Pv,"warnIfLegacyFileType");Y.warnIfLegacyFileType=Pv;function Sv(){return"Missing required file id for file upload completion"}i(Sv,"buildMissingFileIdError");Y.buildMissingFileIdError=Sv;function Tv(){return"There was an issue calculating the size of your file"}i(Tv,"buildFileSizeErrorMsg");Y.buildFileSizeErrorMsg=Tv;function Av(){return`filetype is no longer a supported field in files.uploadV2.
24
- Please remove this field. To indicate file type, please do so via the required filename property using the appropriate file extension, e.g. image.png, text.txt`}i(Av,"buildLegacyFileTypeWarning");Y.buildLegacyFileTypeWarning=Av;function Ev(){return`filename is a required field for files.uploadV2.
25
- For backwards compatibility and ease of migration, defaulting the filename. For best experience and consistent unfurl behavior, you should set the filename property with correct file extension, e.g. image.png, text.txt`}i(Ev,"buildMissingFileNameWarning");Y.buildMissingFileNameWarning=Ev;function Iv(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}i(Iv,"buildMissingExtensionWarning");Y.buildMissingExtensionWarning=Iv;function Cv(e){return`${e} may cause some issues like timeouts for relatively large files.`}i(Cv,"buildLegacyMethodWarning");Y.buildLegacyMethodWarning=Cv;function Ov(){return"Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead."}i(Ov,"buildGeneralFilesUploadWarning");Y.buildGeneralFilesUploadWarning=Ov;function Rv(){return"Something went wrong with processing file_uploads"}i(Rv,"buildFilesUploadMissingMessage");Y.buildFilesUploadMissingMessage=Rv;function zv(){return"Although the 'channels' parameter is still supported for smoother migration from legacy files.upload, we recommend using the new channel_id parameter with a single str value instead (e.g. 'C12345')."}i(zv,"buildChannelsWarning");Y.buildChannelsWarning=zv;function $v(){return"Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead."}i($v,"buildMultipleChannelsErrorMsg");Y.buildMultipleChannelsErrorMsg=$v;function Dv(){return"You may supply file_uploads only for a single channel, comment, thread respectively. Therefore, please supply any channel_id, initial_comment, thread_ts in the top-layer."}i(Dv,"buildInvalidFilesUploadParamError");Y.buildInvalidFilesUploadParamError=Dv});var Uv=b(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});function YM(e){return new Promise(t=>{setTimeout(t,e)})}i(YM,"delay");uc.default=YM});var Mv=b((toe,QM)=>{QM.exports={name:"@slack/web-api",version:"7.9.0",description:"Official library for using the Slack Platform's Web API",author:"Slack Technologies, LLC",license:"MIT",keywords:["slack","web-api","bot","client","http","api","proxy","rate-limiting","pagination"],main:"dist/index.js",types:"./dist/index.d.ts",files:["dist/**/*"],engines:{node:">= 18",npm:">= 8.6.0"},repository:"slackapi/node-slack-sdk",homepage:"https://tools.slack.dev/node-slack-sdk/web-api",publishConfig:{access:"public"},bugs:{url:"https://github.com/slackapi/node-slack-sdk/issues"},scripts:{prepare:"npm run build",build:"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist ./coverage",lint:"npx @biomejs/biome check .","lint:fix":"npx @biomejs/biome check --write .",mocha:'mocha --config ./test/.mocharc.json "./src/**/*.spec.ts"',test:"npm run lint && npm run test:types && npm run test:integration && npm run test:unit","test:integration":"npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts","test:integration:ts":"cd test/integration/ts-4.7-project && npm i && npm run build","test:unit":"npm run build && c8 --config ./test/.c8rc.json npm run mocha","test:types":"tsd",watch:"npx nodemon --watch 'src' --ext 'ts' --exec npm run build"},dependencies:{"@slack/logger":"^4.0.0","@slack/types":"^2.9.0","@types/node":">=18.0.0","@types/retry":"0.12.0",axios:"^1.8.3",eventemitter3:"^5.0.1","form-data":"^4.0.0","is-electron":"2.2.2","is-stream":"^2","p-queue":"^6","p-retry":"^4",retry:"^0.13.1"},devDependencies:{"@biomejs/biome":"^1.8.3","@tsconfig/recommended":"^1","@types/busboy":"^1.5.4","@types/chai":"^4","@types/mocha":"^10","@types/sinon":"^17",busboy:"^1",c8:"^10.1.2",chai:"^4",mocha:"^11","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1",nock:"^13",shx:"^0.4.0",sinon:"^19","source-map-support":"^0.5.21","ts-node":"^10",tsd:"^0.31.1",typescript:"5.3.3"},tsd:{directory:"test/types"}}});var lc=b(Ht=>{"use strict";var e1=Ht&&Ht.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),t1=Ht&&Ht.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r1=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&e1(t,e,r);return t1(t,e),t};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getUserAgent=Ht.addAppMetadata=void 0;var Lv=r1(require("node:os")),n1=require("node:path"),qv=Mv();function Fv(e){return e.replace("/",":")}i(Fv,"replaceSlashes");var i1=`${Fv(qv.name)}/${qv.version} ${(0,n1.basename)(process.title)}/${process.version.replace("v","")} ${Lv.platform()}/${Lv.release()}`,Bv={};function o1({name:e,version:t}){Bv[Fv(e)]=t}i(o1,"addAppMetadata");Ht.addAppMetadata=o1;function a1(){let e=Object.entries(Bv).map(([t,r])=>`${t}/${r}`).join(" ");return(e.length>0?`${e} `:"")+i1}i(a1,"getUserAgent");Ht.getUserAgent=a1});var cc=b(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ConsoleLogger=Qn.LogLevel=void 0;var xt;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug"})(xt||(Qn.LogLevel=xt={}));var so=class e{static{i(this,"ConsoleLogger")}constructor(){this.level=xt.INFO,this.name=""}getLevel(){return this.level}setLevel(t){this.level=t}setName(t){this.name=t}debug(...t){e.isMoreOrEqualSevere(xt.DEBUG,this.level)&&console.debug(e.labels.get(xt.DEBUG),this.name,...t)}info(...t){e.isMoreOrEqualSevere(xt.INFO,this.level)&&console.info(e.labels.get(xt.INFO),this.name,...t)}warn(...t){e.isMoreOrEqualSevere(xt.WARN,this.level)&&console.warn(e.labels.get(xt.WARN),this.name,...t)}error(...t){e.isMoreOrEqualSevere(xt.ERROR,this.level)&&console.error(e.labels.get(xt.ERROR),this.name,...t)}static isMoreOrEqualSevere(t,r){return e.severity[t]>=e.severity[r]}};Qn.ConsoleLogger=so;so.labels=(()=>{let t=Object.entries(xt).map(([r,n])=>[n,`[${r}] `]);return new Map(t)})();so.severity={[xt.ERROR]:400,[xt.WARN]:300,[xt.INFO]:200,[xt.DEBUG]:100}});var pc=b(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.getLogger=ei.LogLevel=void 0;var s1=cc(),u1=cc();Object.defineProperty(ei,"LogLevel",{enumerable:!0,get:i(function(){return u1.LogLevel},"get")});var jv=0;function l1(e,t,r){let n=jv;jv+=1;let o=r!==void 0?r:new s1.ConsoleLogger;return o.setName(`web-api:${e}:${n}`),t!==void 0&&o.setLevel(t),o}i(l1,"getLogger");ei.getLogger=l1});var Hv=b((uoe,dc)=>{"use strict";var c1=Object.prototype.hasOwnProperty,St="~";function uo(){}i(uo,"Events");Object.create&&(uo.prototype=Object.create(null),new uo().__proto__||(St=!1));function p1(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(p1,"EE");function Vv(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new p1(r,n||e,o),s=St?St+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(Vv,"addListener");function Ba(e,t){--e._eventsCount===0?e._events=new uo:delete e._events[t]}i(Ba,"clearEvent");function _t(){this._events=new uo,this._eventsCount=0}i(_t,"EventEmitter");_t.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)c1.call(r,n)&&t.push(St?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");_t.prototype.listeners=i(function(t){var r=St?St+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");_t.prototype.listenerCount=i(function(t){var r=St?St+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");_t.prototype.emit=i(function(t,r,n,o,a,s){var u=St?St+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,m;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(m=1,c=new Array(p-1);m<p;m++)c[m-1]=arguments[m];l.fn.apply(l.context,c)}else{var f=l.length,d;for(m=0;m<f;m++)switch(l[m].once&&this.removeListener(t,l[m].fn,void 0,!0),p){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,r);break;case 3:l[m].fn.call(l[m].context,r,n);break;case 4:l[m].fn.call(l[m].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[m].fn.apply(l[m].context,c)}}return!0},"emit");_t.prototype.on=i(function(t,r,n){return Vv(this,t,r,n,!1)},"on");_t.prototype.once=i(function(t,r,n){return Vv(this,t,r,n,!0)},"once");_t.prototype.removeListener=i(function(t,r,n,o){var a=St?St+t:t;if(!this._events[a])return this;if(!r)return Ba(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&Ba(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:Ba(this,a)}return this},"removeListener");_t.prototype.removeAllListeners=i(function(t){var r;return t?(r=St?St+t:t,this._events[r]&&Ba(this,r)):(this._events=new uo,this._eventsCount=0),this},"removeAllListeners");_t.prototype.off=_t.prototype.removeListener;_t.prototype.addListener=_t.prototype.on;_t.prefixed=St;_t.EventEmitter=_t;typeof dc<"u"&&(dc.exports=_t)});var Wv=b(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var Kv=b(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Xv=b(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var Qv=b(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0})});var tb=b(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0})});var nb=b(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0})});var ob=b(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0})});var sb=b(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0})});var lb=b(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0})});var pb=b(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0})});var mb=b(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0})});var hb=b(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0})});var yb=b(gb=>{"use strict";Object.defineProperty(gb,"__esModule",{value:!0})});var bb=b(vb=>{"use strict";Object.defineProperty(vb,"__esModule",{value:!0})});var _b=b(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0})});var wb=b(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0})});var Sb=b(Pb=>{"use strict";Object.defineProperty(Pb,"__esModule",{value:!0})});var Ab=b(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0})});var Ib=b(Eb=>{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0})});var Ob=b(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0})});var zb=b(Rb=>{"use strict";Object.defineProperty(Rb,"__esModule",{value:!0})});var Db=b($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0})});var Ub=b(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0})});var Lb=b(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0})});var Fb=b(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0})});var jb=b(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0})});var Hb=b(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0})});var Wb=b(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0})});var Kb=b(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0})});var Xb=b(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0})});var Qb=b(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0})});var tx=b(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0})});var nx=b(rx=>{"use strict";Object.defineProperty(rx,"__esModule",{value:!0})});var ix=b(xe=>{"use strict";var d1=xe&&xe.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ce=xe&&xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&d1(t,e,r)};Object.defineProperty(xe,"__esModule",{value:!0});Ce(sb(),xe);Ce(lb(),xe);Ce(pb(),xe);Ce(mb(),xe);Ce(hb(),xe);Ce(yb(),xe);Ce(bb(),xe);Ce(_b(),xe);Ce(wb(),xe);Ce(Sb(),xe);Ce(Ab(),xe);Ce(Ib(),xe);Ce(Ob(),xe);Ce(zb(),xe);Ce(Db(),xe);Ce(Ub(),xe);Ce(Lb(),xe);Ce(Fb(),xe);Ce(jb(),xe);Ce(Hb(),xe);Ce(Wb(),xe);Ce(Kb(),xe);Ce(Xb(),xe);Ce(Qb(),xe);Ce(tx(),xe);Ce(nx(),xe)});var ax=b(ox=>{"use strict";Object.defineProperty(ox,"__esModule",{value:!0})});var lx=b(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.CustomFieldType=ti.EntityType=void 0;var sx;(function(e){e.Task="slack#/entities/task",e.File="slack#/entities/file",e.Item="slack#/entities/item",e.Incident="slack#/entities/incident",e.ContentItem="slack#/entities/content_item"})(sx||(ti.EntityType=sx={}));var ux;(function(e){e.Integer="integer",e.String="string",e.Array="array",e.Date="slack#/types/date",e.Timestamp="slack#/types/timestamp",e.Image="slack#/types/image",e.ChannelId="slack#/types/channel_id",e.User="slack#/types/user",e.EntityRef="slack#/types/entity_ref",e.Boolean="boolean",e.Link="slack#/types/link",e.Email="slack#/types/email"})(ux||(ti.CustomFieldType=ux={}))});var px=b(cx=>{"use strict";Object.defineProperty(cx,"__esModule",{value:!0})});var dx=b(gt=>{"use strict";var m1=gt&&gt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),ir=gt&&gt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&m1(t,e,r)};Object.defineProperty(gt,"__esModule",{value:!0});ir(Wv(),gt);ir(Kv(),gt);ir(Xv(),gt);ir(Qv(),gt);ir(tb(),gt);ir(nb(),gt);ir(ob(),gt);ir(ix(),gt);ir(ax(),gt);ir(lx(),gt);ir(px(),gt)});var fc=b(Rr=>{"use strict";var f1=Rr&&Rr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),h1=Rr&&Rr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&f1(t,e,r)};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Methods=void 0;var g1=Hv(),mx=hc();function T(e,t){return e.apiCall.bind(e,t)}i(T,"bindApiCall");function he(e,t){return e.apiCall.bind(e,t)}i(he,"bindApiCallWithOptionalArgument");function y1(e){return e.filesUploadV2.bind(e)}i(y1,"bindFilesUploadV2");var mc=class extends g1.EventEmitter{static{i(this,"Methods")}constructor(){if(super(),this.admin={analytics:{getFile:T(this,"admin.analytics.getFile")},apps:{activities:{list:he(this,"admin.apps.activities.list")},approve:T(this,"admin.apps.approve"),approved:{list:T(this,"admin.apps.approved.list")},clearResolution:T(this,"admin.apps.clearResolution"),config:{lookup:T(this,"admin.apps.config.lookup"),set:T(this,"admin.apps.config.set")},requests:{cancel:T(this,"admin.apps.requests.cancel"),list:T(this,"admin.apps.requests.list")},restrict:T(this,"admin.apps.restrict"),restricted:{list:T(this,"admin.apps.restricted.list")},uninstall:T(this,"admin.apps.uninstall")},auth:{policy:{assignEntities:T(this,"admin.auth.policy.assignEntities"),getEntities:T(this,"admin.auth.policy.getEntities"),removeEntities:T(this,"admin.auth.policy.removeEntities")}},barriers:{create:T(this,"admin.barriers.create"),delete:T(this,"admin.barriers.delete"),list:he(this,"admin.barriers.list"),update:T(this,"admin.barriers.update")},conversations:{archive:T(this,"admin.conversations.archive"),bulkArchive:T(this,"admin.conversations.bulkArchive"),bulkDelete:T(this,"admin.conversations.bulkDelete"),bulkMove:T(this,"admin.conversations.bulkMove"),convertToPrivate:T(this,"admin.conversations.convertToPrivate"),convertToPublic:T(this,"admin.conversations.convertToPublic"),create:T(this,"admin.conversations.create"),delete:T(this,"admin.conversations.delete"),disconnectShared:T(this,"admin.conversations.disconnectShared"),ekm:{listOriginalConnectedChannelInfo:he(this,"admin.conversations.ekm.listOriginalConnectedChannelInfo")},getConversationPrefs:T(this,"admin.conversations.getConversationPrefs"),getCustomRetention:T(this,"admin.conversations.getCustomRetention"),getTeams:T(this,"admin.conversations.getTeams"),invite:T(this,"admin.conversations.invite"),lookup:T(this,"admin.conversations.lookup"),removeCustomRetention:T(this,"admin.conversations.removeCustomRetention"),rename:T(this,"admin.conversations.rename"),restrictAccess:{addGroup:T(this,"admin.conversations.restrictAccess.addGroup"),listGroups:T(this,"admin.conversations.restrictAccess.listGroups"),removeGroup:T(this,"admin.conversations.restrictAccess.removeGroup")},search:he(this,"admin.conversations.search"),setConversationPrefs:T(this,"admin.conversations.setConversationPrefs"),setCustomRetention:T(this,"admin.conversations.setCustomRetention"),setTeams:T(this,"admin.conversations.setTeams"),unarchive:T(this,"admin.conversations.unarchive")},emoji:{add:T(this,"admin.emoji.add"),addAlias:T(this,"admin.emoji.addAlias"),list:he(this,"admin.emoji.list"),remove:T(this,"admin.emoji.remove"),rename:T(this,"admin.emoji.rename")},functions:{list:T(this,"admin.functions.list"),permissions:{lookup:T(this,"admin.functions.permissions.lookup"),set:T(this,"admin.functions.permissions.set")}},inviteRequests:{approve:T(this,"admin.inviteRequests.approve"),approved:{list:T(this,"admin.inviteRequests.approved.list")},denied:{list:T(this,"admin.inviteRequests.denied.list")},deny:T(this,"admin.inviteRequests.deny"),list:T(this,"admin.inviteRequests.list")},roles:{addAssignments:T(this,"admin.roles.addAssignments"),listAssignments:he(this,"admin.roles.listAssignments"),removeAssignments:T(this,"admin.roles.removeAssignments")},teams:{admins:{list:T(this,"admin.teams.admins.list")},create:T(this,"admin.teams.create"),list:he(this,"admin.teams.list"),owners:{list:T(this,"admin.teams.owners.list")},settings:{info:T(this,"admin.teams.settings.info"),setDefaultChannels:T(this,"admin.teams.settings.setDefaultChannels"),setDescription:T(this,"admin.teams.settings.setDescription"),setDiscoverability:T(this,"admin.teams.settings.setDiscoverability"),setIcon:T(this,"admin.teams.settings.setIcon"),setName:T(this,"admin.teams.settings.setName")}},usergroups:{addChannels:T(this,"admin.usergroups.addChannels"),addTeams:T(this,"admin.usergroups.addTeams"),listChannels:T(this,"admin.usergroups.listChannels"),removeChannels:T(this,"admin.usergroups.removeChannels")},users:{assign:T(this,"admin.users.assign"),invite:T(this,"admin.users.invite"),list:he(this,"admin.users.list"),remove:T(this,"admin.users.remove"),session:{clearSettings:T(this,"admin.users.session.clearSettings"),getSettings:T(this,"admin.users.session.getSettings"),invalidate:T(this,"admin.users.session.invalidate"),list:he(this,"admin.users.session.list"),reset:T(this,"admin.users.session.reset"),resetBulk:T(this,"admin.users.session.resetBulk"),setSettings:T(this,"admin.users.session.setSettings")},setAdmin:T(this,"admin.users.setAdmin"),setExpiration:T(this,"admin.users.setExpiration"),setOwner:T(this,"admin.users.setOwner"),setRegular:T(this,"admin.users.setRegular"),unsupportedVersions:{export:T(this,"admin.users.unsupportedVersions.export")}},workflows:{collaborators:{add:T(this,"admin.workflows.collaborators.add"),remove:T(this,"admin.workflows.collaborators.remove")},permissions:{lookup:T(this,"admin.workflows.permissions.lookup")},search:he(this,"admin.workflows.search"),unpublish:T(this,"admin.workflows.unpublish")}},this.api={test:he(this,"api.test")},this.assistant={threads:{setStatus:T(this,"assistant.threads.setStatus"),setSuggestedPrompts:T(this,"assistant.threads.setSuggestedPrompts"),setTitle:T(this,"assistant.threads.setTitle")}},this.apps={connections:{open:he(this,"apps.connections.open")},event:{authorizations:{list:T(this,"apps.event.authorizations.list")}},manifest:{create:T(this,"apps.manifest.create"),delete:T(this,"apps.manifest.delete"),export:T(this,"apps.manifest.export"),update:T(this,"apps.manifest.update"),validate:T(this,"apps.manifest.validate")},uninstall:T(this,"apps.uninstall")},this.auth={revoke:he(this,"auth.revoke"),teams:{list:he(this,"auth.teams.list")},test:he(this,"auth.test")},this.bookmarks={add:T(this,"bookmarks.add"),edit:T(this,"bookmarks.edit"),list:T(this,"bookmarks.list"),remove:T(this,"bookmarks.remove")},this.bots={info:he(this,"bots.info")},this.calls={add:T(this,"calls.add"),end:T(this,"calls.end"),info:T(this,"calls.info"),update:T(this,"calls.update"),participants:{add:T(this,"calls.participants.add"),remove:T(this,"calls.participants.remove")}},this.canvases={access:{delete:T(this,"canvases.access.delete"),set:T(this,"canvases.access.set")},create:he(this,"canvases.create"),delete:T(this,"canvases.delete"),edit:T(this,"canvases.edit"),sections:{lookup:T(this,"canvases.sections.lookup")}},this.chat={delete:T(this,"chat.delete"),deleteScheduledMessage:T(this,"chat.deleteScheduledMessage"),getPermalink:T(this,"chat.getPermalink"),meMessage:T(this,"chat.meMessage"),postEphemeral:T(this,"chat.postEphemeral"),postMessage:T(this,"chat.postMessage"),scheduleMessage:T(this,"chat.scheduleMessage"),scheduledMessages:{list:he(this,"chat.scheduledMessages.list")},unfurl:T(this,"chat.unfurl"),update:T(this,"chat.update")},this.conversations={acceptSharedInvite:T(this,"conversations.acceptSharedInvite"),approveSharedInvite:T(this,"conversations.approveSharedInvite"),archive:T(this,"conversations.archive"),canvases:{create:T(this,"conversations.canvases.create")},close:T(this,"conversations.close"),create:T(this,"conversations.create"),declineSharedInvite:T(this,"conversations.declineSharedInvite"),externalInvitePermissions:{set:T(this,"conversations.externalInvitePermissions.set")},history:T(this,"conversations.history"),info:T(this,"conversations.info"),invite:T(this,"conversations.invite"),inviteShared:T(this,"conversations.inviteShared"),join:T(this,"conversations.join"),kick:T(this,"conversations.kick"),leave:T(this,"conversations.leave"),list:he(this,"conversations.list"),listConnectInvites:he(this,"conversations.listConnectInvites"),mark:T(this,"conversations.mark"),members:T(this,"conversations.members"),open:T(this,"conversations.open"),rename:T(this,"conversations.rename"),replies:T(this,"conversations.replies"),requestSharedInvite:{approve:T(this,"conversations.requestSharedInvite.approve"),deny:T(this,"conversations.requestSharedInvite.deny"),list:he(this,"conversations.requestSharedInvite.list")},setPurpose:T(this,"conversations.setPurpose"),setTopic:T(this,"conversations.setTopic"),unarchive:T(this,"conversations.unarchive")},this.dialog={open:T(this,"dialog.open")},this.dnd={endDnd:he(this,"dnd.endDnd"),endSnooze:he(this,"dnd.endSnooze"),info:he(this,"dnd.info"),setSnooze:T(this,"dnd.setSnooze"),teamInfo:T(this,"dnd.teamInfo")},this.emoji={list:he(this,"emoji.list")},this.files={completeUploadExternal:T(this,"files.completeUploadExternal"),delete:T(this,"files.delete"),getUploadURLExternal:T(this,"files.getUploadURLExternal"),info:T(this,"files.info"),list:T(this,"files.list"),revokePublicURL:T(this,"files.revokePublicURL"),sharedPublicURL:T(this,"files.sharedPublicURL"),upload:T(this,"files.upload"),uploadV2:y1(this),comments:{delete:T(this,"files.comments.delete")},remote:{add:T(this,"files.remote.add"),info:T(this,"files.remote.info"),list:T(this,"files.remote.list"),remove:T(this,"files.remote.remove"),share:T(this,"files.remote.share"),update:T(this,"files.remote.update")}},this.functions={completeError:T(this,"functions.completeError"),completeSuccess:T(this,"functions.completeSuccess")},this.migration={exchange:T(this,"migration.exchange")},this.oauth={access:T(this,"oauth.access"),v2:{access:T(this,"oauth.v2.access"),exchange:T(this,"oauth.v2.exchange")}},this.openid={connect:{token:T(this,"openid.connect.token"),userInfo:he(this,"openid.connect.userInfo")}},this.pins={add:T(this,"pins.add"),list:T(this,"pins.list"),remove:T(this,"pins.remove")},this.reactions={add:T(this,"reactions.add"),get:T(this,"reactions.get"),list:he(this,"reactions.list"),remove:T(this,"reactions.remove")},this.reminders={add:T(this,"reminders.add"),complete:T(this,"reminders.complete"),delete:T(this,"reminders.delete"),info:T(this,"reminders.info"),list:he(this,"reminders.list")},this.rtm={connect:he(this,"rtm.connect"),start:he(this,"rtm.start")},this.search={all:T(this,"search.all"),files:T(this,"search.files"),messages:T(this,"search.messages")},this.team={accessLogs:he(this,"team.accessLogs"),billableInfo:he(this,"team.billableInfo"),billing:{info:T(this,"team.billing.info")},externalTeams:{disconnect:T(this,"team.externalTeams.disconnect"),list:T(this,"team.externalTeams.list")},info:he(this,"team.info"),integrationLogs:he(this,"team.integrationLogs"),preferences:{list:he(this,"team.preferences.list")},profile:{get:he(this,"team.profile.get")}},this.tooling={tokens:{rotate:T(this,"tooling.tokens.rotate")}},this.usergroups={create:T(this,"usergroups.create"),disable:T(this,"usergroups.disable"),enable:T(this,"usergroups.enable"),list:he(this,"usergroups.list"),update:T(this,"usergroups.update"),users:{list:T(this,"usergroups.users.list"),update:T(this,"usergroups.users.update")}},this.users={conversations:T(this,"users.conversations"),deletePhoto:T(this,"users.deletePhoto"),discoverableContacts:{lookup:T(this,"users.discoverableContacts.lookup")},getPresence:T(this,"users.getPresence"),identity:T(this,"users.identity"),info:T(this,"users.info"),list:T(this,"users.list"),lookupByEmail:T(this,"users.lookupByEmail"),setPhoto:T(this,"users.setPhoto"),setPresence:T(this,"users.setPresence"),profile:{get:T(this,"users.profile.get"),set:T(this,"users.profile.set")}},this.views={open:T(this,"views.open"),publish:T(this,"views.publish"),push:T(this,"views.push"),update:T(this,"views.update")},this.stars={add:T(this,"stars.add"),list:T(this,"stars.list"),remove:T(this,"stars.remove")},this.workflows={stepCompleted:T(this,"workflows.stepCompleted"),stepFailed:T(this,"workflows.stepFailed"),updateStep:T(this,"workflows.updateStep")},new.target!==mx.WebClient&&!(new.target.prototype instanceof mx.WebClient))throw new Error("Attempt to inherit from WebClient methods without inheriting from WebClient")}};Rr.Methods=mc;h1(dx(),Rr)});var gc=b(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.rapidRetryPolicy=Zt.fiveRetriesInFiveMinutes=Zt.tenRetriesInAboutThirtyMinutes=void 0;Zt.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0};Zt.fiveRetriesInFiveMinutes={retries:5,factor:3.86};Zt.rapidRetryPolicy={minTimeout:0,maxTimeout:1};var v1={tenRetriesInAboutThirtyMinutes:Zt.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:Zt.fiveRetriesInFiveMinutes,rapidRetryPolicy:Zt.rapidRetryPolicy};Zt.default=v1});var hc=b(Me=>{"use strict";var b1=Me&&Me.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),x1=Me&&Me.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),_1=Me&&Me.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&b1(t,e,r);return x1(t,e),t},or=Me&&Me.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},co=Me&&Me.__await||function(e){return this instanceof co?(this.v=e,this):new co(e)},k1=Me&&Me.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o={},u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,m)}}function u(d,h){n[d]&&(o[d]=function(_){return new Promise(function(v,y){a.push([d,_,v,y])>1||l(d,_)})},h&&(o[d]=h(o[d])))}function l(d,h){try{p(n[d](h))}catch(_){f(a[0][3],_)}}function p(d){d.value instanceof co?Promise.resolve(d.value.v).then(c,m):f(a[0][2],d)}function c(d){l("next",d)}function m(d){l("throw",d)}function f(d,h){d(h),a.shift(),a.length&&l(a[0][0],a[0][1])}},w1=Me&&Me.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(u,l){s=e[a](s),o(u,l,s.done,s.value)})}}function o(a,s,u,l){Promise.resolve(l).then(function(p){a({value:p,done:u})},s)}},kn=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0});Me.buildThreadTsWarningMessage=Me.WebClient=Me.WebClientEvent=void 0;var fx=require("node:path"),P1=require("node:querystring"),S1=require("node:util"),T1=kn(require("node:zlib")),A1=kn(Hy()),E1=kn(Ky()),I1=kn(Xy()),vc=kn(Qy()),C1=kn(lv()),yc=_1(gv()),lo=qa(),ja=Nv(),O1=kn(Uv()),R1=lc(),hx=pc(),z1=fc(),$1=gc(),D1=["delete","common","get","put","head","post","link","patch","purge","unlink","options"],N1="Untitled",U1=200,M1=i(()=>{},"noopPageReducer"),bc;(function(e){e.RATE_LIMITED="rate_limited"})(bc||(Me.WebClientEvent=bc={}));var po=class e extends z1.Methods{static{i(this,"WebClient")}constructor(t,{slackApiUrl:r="https://slack.com/api/",logger:n=void 0,logLevel:o=void 0,maxRequestConcurrency:a=100,retryConfig:s=$1.tenRetriesInAboutThirtyMinutes,agent:u=void 0,tls:l=void 0,timeout:p=0,rejectRateLimitedCalls:c=!1,headers:m={},teamId:f=void 0,allowAbsoluteUrls:d=!0,attachOriginalToWebAPIRequestError:h=!0,requestInterceptor:_=void 0,adapter:v=void 0}={}){super(),this.token=t,this.slackApiUrl=r,this.retryConfig=s,this.requestQueue=new C1.default({concurrency:a}),this.tlsConfig=l!==void 0?l:{},this.rejectRateLimitedCalls=c,this.teamId=f,this.allowAbsoluteUrls=d,this.attachOriginalToWebAPIRequestError=h,typeof n<"u"?(this.logger=n,typeof o<"u"&&this.logger.debug("The logLevel given to WebClient was ignored as you also gave logger")):this.logger=(0,hx.getLogger)(e.loggerName,o??hx.LogLevel.INFO,n),this.token&&!m.Authorization&&(m.Authorization=`Bearer ${this.token}`),this.axios=A1.default.create({adapter:v?y=>v(Object.assign(Object.assign({},y),{adapter:void 0})):void 0,timeout:p,baseURL:r,allowAbsoluteUrls:d,headers:(0,I1.default)()?m:Object.assign({"User-Agent":(0,R1.getUserAgent)()},m),httpAgent:u,httpsAgent:u,validateStatus:i(()=>!0,"validateStatus"),maxRedirects:0,proxy:!1}),this.axios.defaults.headers.post["Content-Type"]=void 0,_&&this.axios.interceptors.request.use(_,null),this.axios.interceptors.request.use(this.serializeApiCallData.bind(this),null),this.logger.debug("initialized")}apiCall(t,r={}){return or(this,void 0,void 0,function*(){if(this.logger.debug(`apiCall('${t}') start`),q1(t,this.logger),F1(t,this.logger,r),B1(t,this.logger,r),typeof r=="string"||typeof r=="number"||typeof r=="boolean")throw new TypeError(`Expected an options argument but instead received a ${typeof r}`);if((0,ja.warnIfNotUsingFilesUploadV2)(t,this.logger),t==="files.uploadV2")return this.filesUploadV2(r);let n={};r.token&&(n.Authorization=`Bearer ${r.token}`);let o=yield this.makeRequest(t,Object.assign({team_id:this.teamId},r),n),a=yield this.buildResult(o);if(this.logger.debug(`http request result: ${JSON.stringify(a)}`),a.response_metadata!==void 0&&a.response_metadata.warnings!==void 0&&a.response_metadata.warnings.forEach(this.logger.warn.bind(this.logger)),a.response_metadata!==void 0&&a.response_metadata.messages!==void 0)for(let s of a.response_metadata.messages){let u=/\[ERROR\](.*)/,l=/\[WARN\](.*)/;if(u.test(s)){let p=s.match(u);p!=null&&this.logger.error(p[1].trim())}else if(l.test(s)){let p=s.match(l);p!=null&&this.logger.warn(p[1].trim())}}if(!a.ok&&o.headers["content-type"]!=="application/gzip"||"ok"in a&&a.ok===!1)throw(0,lo.platformErrorFromResult)(a);return this.logger.debug(`apiCall('${t}') end`),a})}paginate(t,r,n,o){let a=(()=>{if(r!==void 0&&typeof r.limit=="number"){let{limit:p}=r;return r.limit=void 0,p}return U1})();function s(){return k1(this,arguments,i(function*(){let c,m={limit:a};for(r!==void 0&&r.cursor!==void 0&&(m.cursor=r.cursor);c===void 0||m!==void 0;)c=yield co(this.apiCall(t,Object.assign(r!==void 0?r:{},m))),yield yield co(c),m=L1(c,a)},"generatePages_1"))}if(i(s,"generatePages"),n===void 0)return s.call(this);let u=o!==void 0?o:M1,l=0;return or(this,void 0,void 0,function*(){var p,c,m,f;let d=s.call(this),_=(yield d.next(void 0)).value,v=u(void 0,_,l);if(l+=1,n(_))return v;try{for(var y=!0,w=w1(d),S;S=yield w.next(),p=S.done,!p;y=!0){f=S.value,y=!1;let O=f;if(v=u(v,O,l),n(O))return v;l+=1}}catch(O){c={error:O}}finally{try{!y&&!p&&(m=w.return)&&(yield m.call(w))}finally{if(c)throw c.error}}return v})}filesUploadV2(t){return or(this,void 0,void 0,function*(){this.logger.debug("files.uploadV2() start");let r=yield this.getAllFileUploads(t);return(yield this.fetchAllUploadURLExternal(r)).forEach((a,s)=>{r[s].upload_url=a.upload_url,r[s].file_id=a.file_id}),yield this.postFileUploadsToExternalURL(r,t),{ok:!0,files:yield this.completeFileUploads(r)}})}fetchAllUploadURLExternal(t){return or(this,void 0,void 0,function*(){return Promise.all(t.map(r=>{let n={filename:r.filename,length:r.length,alt_text:r.alt_text,snippet_type:r.snippet_type};return"token"in r&&(n.token=r.token),this.files.getUploadURLExternal(n)}))})}completeFileUploads(t){return or(this,void 0,void 0,function*(){let r=Object.values((0,ja.getAllFileUploadsToComplete)(t));return Promise.all(r.map(n=>this.files.completeUploadExternal(n)))})}postFileUploadsToExternalURL(t,r){return or(this,void 0,void 0,function*(){return Promise.all(t.map(n=>or(this,void 0,void 0,function*(){let{upload_url:o,file_id:a,filename:s,data:u}=n,l=u;if(o){let p={};r.token&&(p.Authorization=`Bearer ${r.token}`);let c=yield this.makeRequest(o,{body:l},p);if(c.status!==200)return Promise.reject(Error(`Failed to upload file (id:${a}, filename: ${s})`));let m={ok:!0,body:c.data};return Promise.resolve(m)}return Promise.reject(Error(`No upload url found for file (id: ${a}, filename: ${s}`))})))})}getAllFileUploads(t){return or(this,void 0,void 0,function*(){let r=[];return("file"in t||"content"in t)&&r.push(yield(0,ja.getFileUploadJob)(t,this.logger)),"file_uploads"in t&&(r=r.concat(yield(0,ja.getMultipleFileUploadJobs)(t,this.logger))),r})}makeRequest(t,r,n={}){return or(this,void 0,void 0,function*(){let o=i(()=>this.requestQueue.add(()=>or(this,void 0,void 0,function*(){let a=this.deriveRequestUrl(t);try{let s=Object.assign({headers:n},this.tlsConfig);t.endsWith("admin.analytics.getFile")&&(s.responseType="arraybuffer"),t.endsWith("apps.event.authorizations.list")&&(r.token=void 0),this.logger.debug(`http request url: ${a}`),this.logger.debug(`http request body: ${JSON.stringify(yx(r))}`);let u=Object.keys(this.axios.defaults.headers).reduce((p,c)=>(D1.includes(c)||(p[c]=this.axios.defaults.headers[c]),p),{});u=Object.assign(Object.assign(Object.assign({},this.axios.defaults.headers.common),u),n),this.logger.debug(`http request headers: ${JSON.stringify(yx(u))}`);let l=yield this.axios.post(t,r,s);if(this.logger.debug("http response received"),l.status===429){let p=gx(l);throw p!==void 0?(this.emit(bc.RATE_LIMITED,p,{url:t,body:r}),this.rejectRateLimitedCalls?new yc.AbortError((0,lo.rateLimitedErrorWithDelay)(p)):(this.logger.info(`API Call failed due to rate limiting. Will retry in ${p} seconds.`),this.requestQueue.pause(),yield(0,O1.default)(p*1e3),this.requestQueue.start(),new Error(`A rate limit was exceeded (url: ${t}, retry-after: ${p})`))):new yc.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${t}, retry-after header: ${l.headers["retry-after"]})`))}if(l.status!==200)throw(0,lo.httpErrorFromResponse)(l);return l}catch(s){let u=s;throw this.logger.warn("http request failed",u.message),u.request?(0,lo.requestErrorWithOriginal)(u,this.attachOriginalToWebAPIRequestError):s}})),"task");return(0,yc.default)(o,this.retryConfig)})}deriveRequestUrl(t){return(t.startsWith("https://")||t.startsWith("http://"))&&this.allowAbsoluteUrls?t:`${this.axios.getUri()+t}`}serializeApiCallData(t){let{data:r,headers:n}=t,o=!1,a=Object.entries(r).map(([u,l])=>{if(l==null)return[];let p=l;return Buffer.isBuffer(l)||(0,vc.default)(l)?o=!0:typeof l!="string"&&typeof l!="number"&&typeof l!="boolean"&&(p=JSON.stringify(l)),[u,p]});if(o){this.logger.debug("Request arguments contain binary data");let u=a.reduce((l,[p,c])=>{if(Buffer.isBuffer(c)||(0,vc.default)(c)){let m={};m.filename=(()=>{let f=c;return typeof f.name=="string"?(0,fx.basename)(f.name):typeof f.path=="string"?(0,fx.basename)(f.path):N1})(),l.append(p,c,m)}else p!==void 0&&c!==void 0&&l.append(p,c);return l},new E1.default);if(n)for(let[l,p]of Object.entries(u.getHeaders()))n[l]=p;return t.data=u,t.headers=n,t}n&&(n["Content-Type"]="application/x-www-form-urlencoded");let s={};return t.data=(0,P1.stringify)(a.reduce((u,[l,p])=>(l!==void 0&&p!==void 0&&(u[l]=p),u),s)),t.headers=n,t}buildResult(t){return or(this,void 0,void 0,function*(){let{data:r}=t,n=t.headers["content-type"]==="application/gzip";if(n)try{let a=yield new Promise((u,l)=>{T1.default.unzip(r,(p,c)=>p?l(p):u(c.toString().split(`
26
- `)))}).then(u=>u).catch(u=>{throw u}),s=[];if(Array.isArray(a))for(let u of a)u&&u.length>0&&s.push(JSON.parse(u));r={file_data:s}}catch(a){r={ok:!1,error:a}}else!n&&t.request.path==="/api/admin.analytics.getFile"&&(r=JSON.parse(new S1.TextDecoder().decode(r)));if(typeof r=="string")try{r=JSON.parse(r)}catch{r={ok:!1,error:r}}r.response_metadata===void 0&&(r.response_metadata={}),t.headers["x-oauth-scopes"]!==void 0&&(r.response_metadata.scopes=t.headers["x-oauth-scopes"].trim().split(/\s*,\s*/)),t.headers["x-accepted-oauth-scopes"]!==void 0&&(r.response_metadata.acceptedScopes=t.headers["x-accepted-oauth-scopes"].trim().split(/\s*,\s*/));let o=gx(t);return o!==void 0&&(r.response_metadata.retryAfter=o),r})}};Me.WebClient=po;po.loggerName="WebClient";Me.default=po;function L1(e,t){if(e!==void 0&&e.response_metadata!==void 0&&e.response_metadata.next_cursor!==void 0&&e.response_metadata.next_cursor!=="")return{limit:t,cursor:e.response_metadata.next_cursor}}i(L1,"paginationOptionsForNextPage");function gx(e){if(e.headers["retry-after"]!==void 0){let t=Number.parseInt(e.headers["retry-after"],10);if(!Number.isNaN(t))return t}}i(gx,"parseRetryHeaders");function q1(e,t){["workflows."].some(o=>new RegExp(`^${o}`).test(e))&&t.warn(`${e} is deprecated. Please check on https://api.slack.com/methods for an alternative.`)}i(q1,"warnDeprecations");function F1(e,t,r){let o=["chat.postEphemeral","chat.postMessage","chat.scheduleMessage"].includes(e),a=i(c=>Array.isArray(c.attachments)&&c.attachments.length,"hasAttachments"),s=i(c=>Array.isArray(c.attachments)&&c.attachments.some(m=>!m.fallback||m.fallback.trim()===""),"missingAttachmentFallbackDetected"),u=i(c=>c.text===void 0||c.text===null||c.text==="","isEmptyText"),l=i(()=>`The top-level \`text\` argument is missing in the request payload for a ${e} call - It's a best practice to always provide a \`text\` argument when posting a message. The \`text\` is used in places where the content cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc.`,"buildMissingTextWarning"),p=i(()=>`Additionally, the attachment-level \`fallback\` argument is missing in the request payload for a ${e} call - To avoid this warning, it is recommended to always provide a top-level \`text\` argument when posting a message. Alternatively, you can provide an attachment-level \`fallback\` argument, though this is now considered a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details).`,"buildMissingFallbackWarning");o&&typeof r=="object"&&(a(r)?s(r)&&u(r)&&(t.warn(l()),t.warn(p())):u(r)&&t.warn(l()))}i(F1,"warnIfFallbackIsMissing");function B1(e,t,r){["chat.postEphemeral","chat.postMessage","chat.scheduleMessage","files.upload"].includes(e)&&r?.thread_ts!==void 0&&typeof r?.thread_ts!="string"&&t.warn(vx(e))}i(B1,"warnIfThreadTsIsNotString");function vx(e){return`The given thread_ts value in the request payload for a ${e} call is a float value. We highly recommend using a string value instead.`}i(vx,"buildThreadTsWarningMessage");Me.buildThreadTsWarningMessage=vx;function yx(e){let t=Object.entries(e).map(([n,o])=>{if(o==null)return[];let a=o;return(n.match(/.*token.*/)!==null||n.match(/[Aa]uthorization/))&&(a="[[REDACTED]]"),Buffer.isBuffer(o)||(0,vc.default)(o)?a="[[BINARY VALUE OMITTED]]":typeof o!="string"&&typeof o!="number"&&typeof o!="boolean"&&(a=JSON.stringify(o)),[n,a]}),r={};return t.reduce((n,[o,a])=>(o!==void 0&&a!==void 0&&(n[o]=a),n),r)}i(yx,"redact")});var xx=b(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0})});var kx=b(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0})});var W=b(He=>{"use strict";var j1=He&&He.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),xc=He&&He.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&j1(t,e,r)},V1=He&&He.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(He,"__esModule",{value:!0});He.addAppMetadata=He.retryPolicies=He.ErrorCode=He.LogLevel=He.WebClientEvent=He.WebClient=void 0;var wx=hc();Object.defineProperty(He,"WebClient",{enumerable:!0,get:i(function(){return wx.WebClient},"get")});Object.defineProperty(He,"WebClientEvent",{enumerable:!0,get:i(function(){return wx.WebClientEvent},"get")});var H1=pc();Object.defineProperty(He,"LogLevel",{enumerable:!0,get:i(function(){return H1.LogLevel},"get")});var Z1=qa();Object.defineProperty(He,"ErrorCode",{enumerable:!0,get:i(function(){return Z1.ErrorCode},"get")});var W1=gc();Object.defineProperty(He,"retryPolicies",{enumerable:!0,get:i(function(){return V1(W1).default},"get")});var G1=lc();Object.defineProperty(He,"addAppMetadata",{enumerable:!0,get:i(function(){return G1.addAppMetadata},"get")});xc(fc(),He);xc(xx(),He);xc(kx(),He)});var Tc=b((kle,M_)=>{"use strict";var K1={}.hasOwnProperty;M_.exports=K1});var q_=b((wle,L_)=>{"use strict";var J1=[].splice;L_.exports=J1});var mr=b((Ple,F_)=>{"use strict";var Ac=q_();function X1(e,t,r,n){var o=e.length,a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),Ac.apply(e,s);else for(r&&Ac.apply(e,[t,r]);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),Ac.apply(e,s),a+=1e4,t+=1e4}i(X1,"chunkedSplice");F_.exports=X1});var cs=b((Tle,B_)=>{"use strict";function Y1(e){return e==null?[]:"length"in e?e:[e]}i(Y1,"miniflat");B_.exports=Y1});var Ec=b((Ele,V_)=>{"use strict";var j_=Tc(),Q1=mr(),eL=cs();function tL(e){for(var t={},r=-1;++r<e.length;)rL(t,e[r]);return t}i(tL,"combineExtensions");function rL(e,t){var r,n,o,a;for(r in t){n=j_.call(e,r)?e[r]:e[r]={},o=t[r];for(a in o)n[a]=nL(eL(o[a]),j_.call(n,a)?n[a]:[])}}i(rL,"extension");function nL(e,t){for(var r=-1,n=[];++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);return Q1(t,0,0,n),t}i(nL,"constructs");V_.exports=tL});var bo=b((Cle,H_)=>{"use strict";var iL=String.fromCharCode;H_.exports=iL});var $r=b((Ole,Z_)=>{"use strict";var oL=bo();function aL(e){return t;function t(r){return e.test(oL(r))}}i(aL,"regexCheck");Z_.exports=aL});var xo=b((zle,W_)=>{"use strict";var sL=$r(),uL=sL(/[A-Za-z]/);W_.exports=uL});var ii=b(($le,G_)=>{"use strict";var lL=$r(),cL=lL(/[\dA-Za-z]/);G_.exports=cL});var ps=b((Dle,K_)=>{"use strict";function pL(e){return e<32||e===127}i(pL,"asciiControl");K_.exports=pL});var tt=b((Ule,J_)=>{"use strict";function dL(e){return e<-2}i(dL,"markdownLineEnding");J_.exports=dL});var Y_=b((Lle,X_)=>{"use strict";var mL=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;X_.exports=mL});var ds=b((qle,Q_)=>{"use strict";var fL=Y_(),hL=$r(),gL=hL(fL);Q_.exports=gL});var ms=b((Fle,ek)=>{"use strict";var yL=$r(),vL=yL(/\s/);ek.exports=vL});var gk=b(hk=>{var rk=xo(),nk=ii(),ik=ps(),bL=tt(),ok=ds(),ak=ms(),xL={tokenize:PL,partial:!0},sk={tokenize:SL,partial:!0},uk={tokenize:TL,partial:!0},oi={tokenize:EL,partial:!0},lk={tokenize:AL,partial:!0},ck={tokenize:kL,previous:mk},pk={tokenize:wL,previous:Cc},Dr={tokenize:_L,previous:fk},fr={};hk.text=fr;var Pn=48;for(;Pn<123;)fr[Pn]=Dr,Pn++,Pn===58?Pn=65:Pn===91&&(Pn=97);fr[43]=Dr;fr[45]=Dr;fr[46]=Dr;fr[95]=Dr;fr[72]=[Dr,pk];fr[104]=[Dr,pk];fr[87]=[Dr,ck];fr[119]=[Dr,ck];function _L(e,t,r){var n=this,o;return a;function a(f){return!tk(f)||!fk(n.previous)||Oc(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return tk(f)?(e.consume(f),s):f===64?(e.consume(f),u):r(f)}function u(f){return f===46?e.check(oi,m,l)(f):f===45||f===95?e.check(oi,r,p)(f):nk(f)?(e.consume(f),u):m(f)}function l(f){return e.consume(f),o=!0,u}function p(f){return e.consume(f),c}function c(f){return f===46?e.check(oi,r,l)(f):u(f)}function m(f){return o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}i(_L,"tokenizeEmailAutolink");function kL(e,t,r){var n=this;return o;function o(s){return s!==87&&s-32!==87||!mk(n.previous)||Oc(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(xL,e.attempt(sk,e.attempt(uk,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}i(kL,"tokenizeWwwAutolink");function wL(e,t,r){var n=this;return o;function o(h){return h!==72&&h-32!==72||!Cc(n.previous)||Oc(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(h),a)}function a(h){return h===84||h-32===84?(e.consume(h),s):r(h)}function s(h){return h===84||h-32===84?(e.consume(h),u):r(h)}function u(h){return h===80||h-32===80?(e.consume(h),l):r(h)}function l(h){return h===83||h-32===83?(e.consume(h),p):p(h)}function p(h){return h===58?(e.consume(h),c):r(h)}function c(h){return h===47?(e.consume(h),m):r(h)}function m(h){return h===47?(e.consume(h),f):r(h)}function f(h){return ik(h)||ak(h)||ok(h)?r(h):e.attempt(sk,e.attempt(uk,d),r)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}i(wL,"tokenizeHttpAutolink");function PL(e,t,r){return n;function n(l){return e.consume(l),o}function o(l){return l===87||l-32===87?(e.consume(l),a):r(l)}function a(l){return l===87||l-32===87?(e.consume(l),s):r(l)}function s(l){return l===46?(e.consume(l),u):r(l)}function u(l){return l===null||bL(l)?r(l):t(l)}}i(PL,"tokenizeWww");function SL(e,t,r){var n,o;return a;function a(l){return l===38?e.check(lk,u,s)(l):l===46||l===95?e.check(oi,u,s)(l):ik(l)||ak(l)||l!==45&&ok(l)?u(l):(e.consume(l),a)}function s(l){return l===46?(o=n,n=void 0,e.consume(l),a):(l===95&&(n=!0),e.consume(l),a)}function u(l){return!o&&!n?t(l):r(l)}}i(SL,"tokenizeDomain");function TL(e,t){var r=0;return n;function n(s){return s===38?e.check(lk,t,o)(s):(s===40&&r++,s===41?e.check(oi,a,o)(s):Ic(s)?t(s):dk(s)?e.check(oi,t,o)(s):(e.consume(s),n))}function o(s){return e.consume(s),n}function a(s){return r--,r<0?t(s):o(s)}}i(TL,"tokenizePath");function AL(e,t,r){return n;function n(s){return e.consume(s),o}function o(s){return rk(s)?(e.consume(s),o):s===59?(e.consume(s),a):r(s)}function a(s){return Ic(s)?t(s):r(s)}}i(AL,"tokenizeNamedCharacterReference");function EL(e,t,r){return n;function n(a){return e.consume(a),o}function o(a){return dk(a)?(e.consume(a),o):Ic(a)?t(a):r(a)}}i(EL,"tokenizePunctuation");function dk(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}i(dk,"trailingPunctuation");function Ic(e){return e===null||e<0||e===32||e===60}i(Ic,"pathEnd");function tk(e){return e===43||e===45||e===46||e===95||nk(e)}i(tk,"gfmAtext");function mk(e){return e===null||e<0||e===32||e===40||e===42||e===95||e===126}i(mk,"previousWww");function Cc(e){return e===null||!rk(e)}i(Cc,"previousHttp");function fk(e){return e!==47&&Cc(e)}i(fk,"previousEmail");function Oc(e){for(var t=e.length;t--;)if((e[t][1].type==="labelLink"||e[t][1].type==="labelImage")&&!e[t][1]._balanced)return!0}i(Oc,"previous")});var vk=b((Vle,yk)=>{yk.exports=gk()});var hr=b((Hle,bk)=>{"use strict";function IL(e){return e<0||e===32}i(IL,"markdownLineEndingOrSpace");bk.exports=IL});var Rc=b((Wle,xk)=>{"use strict";var CL=hr(),OL=ds(),RL=ms();function zL(e){if(e===null||CL(e)||RL(e))return 1;if(OL(e))return 2}i(zL,"classifyCharacter");xk.exports=zL});var _o=b((Kle,_k)=>{"use strict";function $L(e,t,r){for(var n=[],o=-1,a;++o<e.length;)a=e[o].resolveAll,a&&n.indexOf(a)<0&&(t=a(t,r),n.push(a));return t}i($L,"resolveAll");_k.exports=$L});var ai=b((Xle,kk)=>{"use strict";var DL=Object.assign;kk.exports=DL});var en=b((Yle,wk)=>{"use strict";var NL=ai();function UL(e){return NL({},e)}i(UL,"shallow");wk.exports=UL});var Tk=b((ece,Sk)=>{Sk.exports=LL;var Pk=Rc(),zc=mr(),ML=_o(),fs=en();function LL(e){var t=e||{},r=t.singleTilde,n={tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:n}};function o(u,l){for(var p=-1,c,m,f,d;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){for(f=p;f--;)if(u[f][0]==="exit"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[f][1].end.offset-u[f][1].start.offset){u[p][1].type="strikethroughSequence",u[f][1].type="strikethroughSequence",c={type:"strikethrough",start:fs(u[f][1].start),end:fs(u[p][1].end)},m={type:"strikethroughText",start:fs(u[f][1].end),end:fs(u[p][1].start)},d=[["enter",c,l],["enter",u[f][1],l],["exit",u[f][1],l],["enter",m,l]],zc(d,d.length,0,ML(l.parser.constructs.insideSpan.null,u.slice(f+1,p),l)),zc(d,d.length,0,[["exit",m,l],["enter",u[p][1],l],["exit",u[p][1],l],["exit",c,l]]),zc(u,f-1,p-f+3,d),p=f+d.length-2;break}}return a(u)}i(o,"resolveAllStrikethrough");function a(u){for(var l=-1,p=u.length;++l<p;)u[l][1].type==="strikethroughSequenceTemporary"&&(u[l][1].type="data");return u}i(a,"removeRemainingSequences");function s(u,l,p){var c=this.previous,m=this.events,f=0;return d;function d(_){return _!==126||c===126&&m[m.length-1][1].type!=="characterEscape"?p(_):(u.enter("strikethroughSequenceTemporary"),h(_))}function h(_){var v=Pk(c),y,w;return _===126?f>1?p(_):(u.consume(_),f++,h):f<2&&!r?p(_):(y=u.exit("strikethroughSequenceTemporary"),w=Pk(_),y._open=!w||w===2&&v,y._close=!v||v===2&&w,l(_))}}i(s,"tokenizeStrikethrough")}i(LL,"create")});var gr=b((rce,Ak)=>{"use strict";function qL(e){return e===-2||e===-1||e===32}i(qL,"markdownSpace");Ak.exports=qL});var ut=b((ice,Ik)=>{"use strict";var Ek=gr();function FL(e,t,r,n){var o=n?n-1:1/0,a=0;return s;function s(l){return Ek(l)?(e.enter(r),u(l)):t(l)}function u(l){return Ek(l)&&a++<o?(e.consume(l),u):(e.exit(r),t(l))}}i(FL,"spaceFactory");Ik.exports=FL});var Rk=b(Ok=>{Ok.flow={null:{tokenize:VL,resolve:jL,interruptible:!0}};var $c=ut(),BL={tokenize:HL,partial:!0},Ck={tokenize:ZL,partial:!0};function jL(e,t){for(var r=e.length,n=-1,o,a,s,u,l,p,c,m,f,d;++n<r;)o=e[n][1],u&&(o.type==="temporaryTableCellContent"&&(m=m||n,f=n),(o.type==="tableCellDivider"||o.type==="tableRow")&&f&&(p={type:"tableContent",start:e[m][1].start,end:e[f][1].end},c={type:"chunkText",start:p.start,end:p.end,contentType:"text"},e.splice(m,f-m+1,["enter",p,t],["enter",c,t],["exit",c,t],["exit",p,t]),n-=f-m-3,r=e.length,m=void 0,f=void 0)),e[n][0]==="exit"&&d&&d+1<n&&(o.type==="tableCellDivider"||o.type==="tableRow"&&(d+3<n||e[d][1].type!=="whitespace"))&&(l={type:s?"tableDelimiter":a?"tableHeader":"tableData",start:e[d][1].start,end:e[n][1].end},e.splice(n+(o.type==="tableCellDivider"?1:0),0,["exit",l,t]),e.splice(d,0,["enter",l,t]),n+=2,r=e.length,d=n+1),o.type==="tableRow"&&(u=e[n][0]==="enter",u&&(d=n+1)),o.type==="tableDelimiterRow"&&(s=e[n][0]==="enter",s&&(d=n+1)),o.type==="tableHead"&&(a=e[n][0]==="enter");return e}i(jL,"resolveTable");function VL(e,t,r){var n=[],o=0,a,s;return u;function u(A){return A===null||A===-5||A===-4||A===-3?r(A):(e.enter("table")._align=n,e.enter("tableHead"),e.enter("tableRow"),A===124?l(A):(o++,e.enter("temporaryTableCellContent"),m(A)))}function l(A){return e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,p}function p(A){return A===null||A===-5||A===-4||A===-3?d(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),c):(a&&(a=void 0,o++),A===124?l(A):(e.enter("temporaryTableCellContent"),m(A)))}function c(A){return A===-2||A===-1||A===32?(e.consume(A),c):(e.exit("whitespace"),p(A))}function m(A){return A===null||A<0||A===32||A===124?(e.exit("temporaryTableCellContent"),p(A)):(e.consume(A),A===92?f:m)}function f(A){return A===92||A===124?(e.consume(A),m):m(A)}function d(A){return A===null?r(A):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),e.check(BL,r,$c(e,h,"linePrefix",4)))}function h(A){return A===null||A<0||A===32?r(A):(e.enter("tableDelimiterRow"),_(A))}function _(A){return A===null||A===-5||A===-4||A===-3?O(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),v):A===45?(e.enter("tableDelimiterFiller"),e.consume(A),s=!0,n.push(null),y):A===58?(e.enter("tableDelimiterAlignment"),e.consume(A),e.exit("tableDelimiterAlignment"),n.push("left"),w):A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),_):r(A)}function v(A){return A===-2||A===-1||A===32?(e.consume(A),v):(e.exit("whitespace"),_(A))}function y(A){return A===45?(e.consume(A),y):(e.exit("tableDelimiterFiller"),A===58?(e.enter("tableDelimiterAlignment"),e.consume(A),e.exit("tableDelimiterAlignment"),n[n.length-1]=n[n.length-1]==="left"?"center":"right",S):_(A))}function w(A){return A===45?(e.enter("tableDelimiterFiller"),e.consume(A),s=!0,y):r(A)}function S(A){return A===null||A===-5||A===-4||A===-3?O(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),v):A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),_):r(A)}function O(A){return e.exit("tableDelimiterRow"),!s||o!==n.length?r(A):A===null?F(A):e.check(Ck,F,M)(A)}function F(A){return e.exit("table"),t(A)}function M(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),$c(e,V,"linePrefix",4)}function V(A){return e.enter("tableBody"),q(A)}function q(A){return e.enter("tableRow"),A===124?J(A):(e.enter("temporaryTableCellContent"),j(A))}function J(A){return e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),Z}function Z(A){return A===null||A===-5||A===-4||A===-3?ee(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),N):A===124?J(A):(e.enter("temporaryTableCellContent"),j(A))}function N(A){return A===-2||A===-1||A===32?(e.consume(A),N):(e.exit("whitespace"),Z(A))}function j(A){return A===null||A<0||A===32||A===124?(e.exit("temporaryTableCellContent"),Z(A)):(e.consume(A),A===92?pe:j)}function pe(A){return A===92||A===124?(e.consume(A),j):j(A)}function ee(A){return e.exit("tableRow"),A===null?Fe(A):e.check(Ck,Fe,Be)(A)}function Fe(A){return e.exit("tableBody"),F(A)}function Be(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),$c(e,q,"linePrefix",4)}}i(VL,"tokenizeTable");function HL(e,t,r){return n;function n(s){return s!==45?r(s):(e.enter("setextUnderline"),o(s))}function o(s){return s===45?(e.consume(s),o):a(s)}function a(s){return s===-2||s===-1||s===32?(e.consume(s),a):s===null||s===-5||s===-4||s===-3?t(s):r(s)}}i(HL,"tokenizeSetextUnderlineMini");function ZL(e,t,r){var n=0;return o;function o(s){return e.enter("check"),e.consume(s),a}function a(s){return s===-1||s===32?(e.consume(s),n++,n===4?t:a):s===null||s<0?t(s):r(s)}}i(ZL,"tokenizeNextPrefixedOrBlank")});var $k=b((uce,zk)=>{zk.exports=Rk()});var Dc=b((lce,Dk)=>{"use strict";function WL(e){for(var t=-1,r=0;++t<e.length;)r+=typeof e[t]=="string"?e[t].length:1;return r}i(WL,"sizeChunks");Dk.exports=WL});var si=b((pce,Nk)=>{"use strict";var GL=Dc();function KL(e,t){var r=e[e.length-1];return!r||r[1].type!==t?0:GL(r[2].sliceStream(r[1]))}i(KL,"prefixSize");Nk.exports=KL});var Mk=b(Uk=>{var JL=hr(),XL=ut(),YL=si(),QL={tokenize:eq};Uk.text={91:QL};function eq(e,t,r){var n=this;return o;function o(u){return u!==91||n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return u===-2||u===32?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:tq},t,r)):r(u)}}i(eq,"tokenizeTasklistCheck");function tq(e,t,r){var n=this;return XL(e,o,"whitespace");function o(a){return YL(n.events,"whitespace")&&a!==null&&!JL(a)?t(a):r(a)}}i(tq,"spaceThenNonSpace")});var qk=b((hce,Lk)=>{Lk.exports=Mk()});var Bk=b((gce,Fk)=>{var rq=Ec(),nq=vk(),iq=Tk(),oq=$k(),aq=qk();Fk.exports=sq;function sq(e){return rq([nq,iq(e),oq,aq])}i(sq,"create")});var Vk=b((vce,jk)=>{jk.exports=Bk()});var Zk=b((bce,Hk)=>{"use strict";Hk.exports=uq;function uq(e,t){var r=String(e),n=0,o;if(typeof t!="string")throw new Error("Expected character");for(o=r.indexOf(t);o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}i(uq,"ccount")});var hs=b((_ce,Gk)=>{"use strict";Gk.exports=Wk;function Wk(e){if(e==null)return dq;if(typeof e=="string")return pq(e);if(typeof e=="object")return"length"in e?cq(e):lq(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}i(Wk,"convert");function lq(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}i(lq,"allFactory");function cq(e){for(var t=[],r=-1;++r<e.length;)t[r]=Wk(e[r]);return n;function n(){for(var o=-1;++o<t.length;)if(t[o].apply(this,arguments))return!0;return!1}}i(cq,"anyFactory");function pq(e){return t;function t(r){return!!(r&&r.type===e)}}i(pq,"typeFactory");function dq(){return!0}i(dq,"ok")});var Jk=b((wce,Kk)=>{Kk.exports=mq;function mq(e){return"\x1B[33m"+e+"\x1B[39m"}i(mq,"color")});var Uc=b((Sce,Qk)=>{"use strict";Qk.exports=gs;var fq=hs(),hq=Jk(),Xk=!0,Yk="skip",Nc=!1;gs.CONTINUE=Xk;gs.SKIP=Yk;gs.EXIT=Nc;function gs(e,t,r,n){var o,a;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),a=fq(t),o=n?-1:1,s(e,null,[])();function s(u,l,p){var c=typeof u=="object"&&u!==null?u:{},m;return typeof c.type=="string"&&(m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,f.displayName="node ("+hq(c.type+(m?"<"+m+">":""))+")"),f;function f(){var d=p.concat(u),h=[],_,v;if((!t||a(u,l,p[p.length-1]||null))&&(h=gq(r(u,p)),h[0]===Nc))return h;if(u.children&&h[0]!==Yk)for(v=(n?u.children.length:-1)+o;v>-1&&v<u.children.length;){if(_=s(u.children[v],v,d)(),_[0]===Nc)return _;v=typeof _[1]=="number"?_[1]:v+o}return h}i(f,"visit")}i(s,"factory")}i(gs,"visitParents");function gq(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[Xk,e]:[e]}i(gq,"toResult")});var tw=b((Ace,ew)=>{"use strict";ew.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var aw=b((Ece,ow)=>{"use strict";ow.exports=_q;var yq=Uc(),vq=hs(),bq=tw(),xq=[].splice;function _q(e,t,r,n){var o,a;return typeof t=="string"||t&&typeof t.exec=="function"?a=[[t,r]]:(a=t,n=r),o=n||{},rw(e,o,s(kq(a))),e;function s(u){var l=u[0];return p;function p(c,m){var f=l[0],d=l[1],h=[],_=0,v=m.children.indexOf(c),y,w,S,O;for(f.lastIndex=0,w=f.exec(c.value);w&&(y=w.index,O=d.apply(null,[].concat(w,{index:w.index,input:w.input})),O!==!1&&(_!==y&&h.push({type:"text",value:c.value.slice(_,y)}),typeof O=="string"&&O.length>0&&(O={type:"text",value:O}),O&&(h=[].concat(h,O)),_=y+w[0].length),!!f.global);)w=f.exec(c.value);if(y===void 0?(h=[c],v--):(_<c.value.length&&h.push({type:"text",value:c.value.slice(_)}),h.unshift(v,1),xq.apply(m.children,h)),u.length>1)for(S=s(u.slice(1)),y=-1;++y<h.length;)c=h[y],c.type==="text"?S(c,m):rw(c,o,S);return v+h.length+1}}i(s,"handlerFactory")}i(_q,"findAndReplace");function rw(e,t,r){var n=vq(t.ignore||[]),o=[];return yq(e,"text",a),o;function a(s,u){for(var l=-1,p,c;++l<u.length;){if(p=u[l],n(p,c?c.children.indexOf(p):void 0,c))return;c=p}return r(s,c)}i(a,"visitor")}i(rw,"search");function kq(e){var t=[],r,n;if(typeof e!="object")throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)t.push([nw(e[n][0]),iw(e[n][1])]);else for(r in e)t.push([nw(r),iw(e[r])]);return t}i(kq,"toPairs");function nw(e){return typeof e=="string"?new RegExp(bq(e),"g"):e}i(nw,"toExpression");function iw(e){return typeof e=="function"?e:t;function t(){return e}}i(iw,"toFunction")});var lw=b(ys=>{var sw=Zk(),wq=aw(),Pq=ds(),Sq=ms();ys.transforms=[Oq];ys.enter={literalAutolink:Tq,literalAutolinkEmail:Mc,literalAutolinkHttp:Mc,literalAutolinkWww:Mc};ys.exit={literalAutolink:Cq,literalAutolinkEmail:Iq,literalAutolinkHttp:Aq,literalAutolinkWww:Eq};function Tq(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(Tq,"enterLiteralAutolink");function Mc(e){this.config.enter.autolinkProtocol.call(this,e)}i(Mc,"enterLiteralAutolinkValue");function Aq(e){this.config.exit.autolinkProtocol.call(this,e)}i(Aq,"exitLiteralAutolinkHttp");function Eq(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}i(Eq,"exitLiteralAutolinkWww");function Iq(e){this.config.exit.autolinkEmail.call(this,e)}i(Iq,"exitLiteralAutolinkEmail");function Cq(e){this.exit(e)}i(Cq,"exitLiteralAutolink");function Oq(e){wq(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,Rq],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,zq]],{ignore:["link","linkReference"]})}i(Oq,"transformGfmAutolinkLiterals");function Rq(e,t,r,n,o){var a="",s,u;return!uw(o)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!$q(r))||(s=Dq(r+n),!s[0])?!1:(u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]},s[1]&&(u=[u,{type:"text",value:s[1]}]),u)}i(Rq,"findUrl");function zq(e,t,r,n){return!uw(n,!0)||/[_-]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}i(zq,"findEmail");function $q(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i($q,"isCorrectDomain");function Dq(e){var t=/[!"&'),.:;<>?\]}]+$/.exec(e),r,n,o;if(t)for(e=e.slice(0,t.index),t=t[0],r=t.indexOf(")"),n=sw(e,"("),o=sw(e,")");r!==-1&&n>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}i(Dq,"splitUrl");function uw(e,t){var r=e.input.charCodeAt(e.index-1);return(r!==r||Sq(r)||Pq(r))&&(!t||r!==47)}i(uw,"previous")});var cw=b(vs=>{vs.canContainEols=["delete"];vs.enter={strikethrough:Nq};vs.exit={strikethrough:Uq};function Nq(e){this.enter({type:"delete",children:[]},e)}i(Nq,"enterStrikethrough");function Uq(e){this.exit(e)}i(Uq,"exitStrikethrough")});var dw=b(qc=>{qc.enter={table:Mq,tableData:pw,tableHeader:pw,tableRow:qq};qc.exit={codeText:Fq,table:Lq,tableData:Lc,tableHeader:Lc,tableRow:Lc};function Mq(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)}i(Mq,"enterTable");function Lq(e){this.exit(e),this.setData("inTable")}i(Lq,"exitTable");function qq(e){this.enter({type:"tableRow",children:[]},e)}i(qq,"enterRow");function Lc(e){this.exit(e)}i(Lc,"exit");function pw(e){this.enter({type:"tableCell",children:[]},e)}i(pw,"enterCell");function Fq(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Bq)),this.stack[this.stack.length-1].value=t,this.exit(e)}i(Fq,"exitCodeText");function Bq(e,t){return t==="|"?t:e}i(Bq,"replace")});var hw=b(fw=>{fw.exit={taskListCheckValueChecked:mw,taskListCheckValueUnchecked:mw,paragraph:jq};function mw(e){this.stack[this.stack.length-2].checked=e.type==="taskListCheckValueChecked"}i(mw,"exitCheck");function jq(e){var t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,o=r.children[0],a=-1,s;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&o&&o.type==="text"){for(;++a<n.length;)if(n[a].type==="paragraph"){s=n[a];break}s===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}i(jq,"exitParagraphWithTaskListItem")});var yw=b((Mce,gw)=>{var Vq=lw(),Hq=cw(),Zq=dw(),Wq=hw(),Gq={}.hasOwnProperty;gw.exports=Kq([Vq,Hq,Zq,Wq]);function Kq(e){for(var t={transforms:[],canContainEols:[]},r=e.length,n=-1;++n<r;)Jq(t,e[n]);return t}i(Kq,"configure");function Jq(e,t){var r,n,o;for(r in t)n=Gq.call(e,r)?e[r]:e[r]={},o=t[r],r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,o):Object.assign(n,o)}i(Jq,"extension")});var bw=b(vw=>{var Fc="phrasing",Bc=["autolink","link","image","label"];vw.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fc,notInConstruct:Bc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fc,notInConstruct:Bc},{character:":",before:"[ps]",after:"\\/",inConstruct:Fc,notInConstruct:Bc}]});var yr=b((Fce,xw)=>{xw.exports=Xq;function Xq(e,t,r){for(var n=e.children||[],o=[],a=-1,s=r.before,u,l,p;++a<n.length;)p=n[a],a+1<n.length?(l=t.handle.handlers[n[a+1].type],l&&l.peek&&(l=l.peek),u=l?l(n[a+1],e,t,{before:"",after:""}).charAt(0):""):u=r.after,o.length>0&&(s==="\r"||s===`
27
- `)&&p.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(p,e,t,{before:s,after:u})),s=o[o.length-1].slice(-1);return o.join("")}i(Xq,"phrasing")});var kw=b(jc=>{var Yq=yr();jc.unsafe=[{character:"~",inConstruct:"phrasing"}];jc.handlers={delete:_w};_w.peek=Qq;function _w(e,t,r){var n=r.enter("emphasis"),o=Yq(e,r,{before:"~",after:"~"});return n(),"~~"+o+"~~"}i(_w,"handleDelete");function Qq(){return"~"}i(Qq,"peekDelete")});var Vc=b((Hce,ww)=>{ww.exports=eF;function eF(e){var t,r;return e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g")),e._compiled}i(eF,"patternCompile")});var Hc=b((Wce,Sw)=>{Sw.exports=Pw;Pw.peek=rF;var tF=Vc();function Pw(e,t,r){for(var n=e.value||"",o="`",a=-1,s,u,l,p;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/[ \r\n`]/.test(n.charAt(0))||/[ \r\n`]/.test(n.charAt(n.length-1)))&&(n=" "+n+" ");++a<r.unsafe.length;)if(s=r.unsafe[a],!!s.atBreak)for(u=tF(s);l=u.exec(n);)p=l.index,n.charCodeAt(p)===10&&n.charCodeAt(p-1)===13&&p--,n=n.slice(0,p)+" "+n.slice(l.index+1);return o+n+o}i(Pw,"inlineCode");function rF(){return"`"}i(rF,"inlineCodePeek")});var Sn=b((Kce,Tw)=>{"use strict";var Nr="",Zc;Tw.exports=nF;function nF(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var r=e.length*t;if(Zc!==e||typeof Zc>"u")Zc=e,Nr="";else if(Nr.length>=r)return Nr.substr(0,r);for(;r>Nr.length&&t>1;)t&1&&(Nr+=e),t>>=1,e+=e;return Nr+=e,Nr=Nr.substr(0,r),Nr}i(nF,"repeat")});var Ow=b((Xce,Cw)=>{"use strict";var ui=Sn();Cw.exports=cF;var iF=/ +$/,Tn=" ",oF=`
28
- `,aF="-",bs=":",Aw="|",Ew=0,sF=67,uF=76,lF=82,xs=99,Wc=108,_s=114;function cF(e,t){for(var r=t||{},n=r.padding!==!1,o=r.delimiterStart!==!1,a=r.delimiterEnd!==!1,s=(r.align||[]).concat(),u=r.alignDelimiters!==!1,l=[],p=r.stringLength||dF,c=-1,m=e.length,f=[],d=[],h=[],_=[],v=[],y=0,w,S,O,F,M,V,q,J,Z,N,j;++c<m;){for(w=e[c],S=-1,O=w.length,h=[],_=[],O>y&&(y=O);++S<O;)V=pF(w[S]),u===!0&&(M=p(V),_[S]=M,F=v[S],(F===void 0||M>F)&&(v[S]=M)),h.push(V);f[c]=h,d[c]=_}if(S=-1,O=y,typeof s=="object"&&"length"in s)for(;++S<O;)l[S]=Iw(s[S]);else for(j=Iw(s);++S<O;)l[S]=j;for(S=-1,O=y,h=[],_=[];++S<O;)j=l[S],Z="",N="",j===Wc?Z=bs:j===_s?N=bs:j===xs&&(Z=bs,N=bs),M=u?Math.max(1,v[S]-Z.length-N.length):1,V=Z+ui(aF,M)+N,u===!0&&(M=Z.length+M+N.length,M>v[S]&&(v[S]=M),_[S]=M),h[S]=V;for(f.splice(1,0,h),d.splice(1,0,_),c=-1,m=f.length,q=[];++c<m;){for(h=f[c],_=d[c],S=-1,O=y,J=[];++S<O;)V=h[S]||"",Z="",N="",u===!0&&(M=v[S]-(_[S]||0),j=l[S],j===_s?Z=ui(Tn,M):j===xs?M%2===0?(Z=ui(Tn,M/2),N=Z):(Z=ui(Tn,M/2+.5),N=ui(Tn,M/2-.5)):N=ui(Tn,M)),o===!0&&S===0&&J.push(Aw),n===!0&&!(u===!1&&V==="")&&(o===!0||S!==0)&&J.push(Tn),u===!0&&J.push(Z),J.push(V),u===!0&&J.push(N),n===!0&&J.push(Tn),(a===!0||S!==O-1)&&J.push(Aw);J=J.join(""),a===!1&&(J=J.replace(iF,"")),q.push(J)}return q.join(oF)}i(cF,"markdownTable");function pF(e){return e==null?"":String(e)}i(pF,"serialize");function dF(e){return e.length}i(dF,"defaultStringLength");function Iw(e){var t=typeof e=="string"?e.charCodeAt(0):Ew;return t===uF||t===Wc?Wc:t===lF||t===_s?_s:t===sF||t===xs?xs:Ew}i(Iw,"toAlignment")});var zw=b((Qce,Rw)=>{var mF=yr(),fF=Hc(),hF=Ow();Rw.exports=gF;function gF(e){var t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
22
+ `+a)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=xn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Pa.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean),legacyInterceptorReqResOrdering:bt.transitional(bt.boolean),advertiseZstdAcceptEncoding:bt.transitional(bt.boolean),validateStatusUndefinedResolves:bt.transitional(bt.boolean)},!1),o!=null&&(P.isFunction(o)?r.paramsSerializer={serialize:o}:Pa.assertOptions(o,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Pa.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&P.merge(a.common,a[r.method]);a&&P.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete a[h]}),r.headers=et.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(i(function(_){if(typeof _.runWhen=="function"&&_.runWhen(r)===!1)return;l=l&&_.synchronous;let v=r.transitional||za;v&&v.legacyInterceptorReqResOrdering?u.unshift(_.fulfilled,_.rejected):u.push(_.fulfilled,_.rejected)},"unshiftRequestInterceptors"));let p=[];this.interceptors.response.forEach(i(function(_){p.push(_.fulfilled,_.rejected)},"pushResponseInterceptors"));let c,m=0,f;if(!l){let h=[yy.bind(this),void 0];for(h.unshift(...u),h.push(...p),f=h.length,c=Promise.resolve(r);m<f;)c=c.then(h[m++],h[m++]);return c}f=u.length;let d=r;for(;m<f;){let h=u[m++],_=u[m++];try{d=h(d)}catch(v){_.call(this,v);break}}try{c=yy.call(this,d)}catch(h){return Promise.reject(h)}for(m=0,f=p.length;m<f;)c=c.then(p[m++],p[m++]);return c}getUri(t){t=xn(this.defaults,t);let r=Yl(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Jl(r,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],i(function(t){Cr.prototype[t]=function(r,n){return this.request(xn(n||{},{method:t,url:r,data:n&&P.hasOwnProp(n,"data")?n.data:void 0}))}},"forEachMethodNoData"));P.forEach(["post","put","patch","query"],i(function(t){function r(n){return i(function(a,s,u){return this.request(xn(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))},"httpMethod")}i(r,"generateHTTPMethod"),Cr.prototype[t]=r(),t!=="query"&&(Cr.prototype[t+"Form"]=r(!0))},"forEachMethodWithData"));var Vl=class e{static{i(this,"CancelToken")}constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(i(function(a){r=a},"promiseExecutor"));let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a,s=new Promise(u=>{n.subscribe(u),a=u}).then(o);return s.cancel=i(function(){n.unsubscribe(a)},"reject"),s},t(i(function(a,s,u){n.reason||(n.reason=new Or(a,s,u),r(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i(n=>{t.abort(n)},"abort");return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(i(function(o){t=o},"executor")),cancel:t}}};function IM(e){return i(function(r){return e.apply(null,r)},"wrap")}i(IM,"spread");function CM(e){return P.isObject(e)&&e.isAxiosError===!0}i(CM,"isAxiosError");var Hl={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Hl).forEach(([e,t])=>{Hl[t]=e});function Yy(e){let t=new Cr(e),r=ky(Cr.prototype.request,t);return P.extend(r,Cr.prototype,t,{allOwnKeys:!0}),P.extend(r,t,null,{allOwnKeys:!0}),r.create=i(function(o){return Yy(xn(e,o))},"create"),r}i(Yy,"createInstance");var at=Yy(oo);at.Axios=Cr;at.CanceledError=Or;at.CancelToken=Vl;at.isCancel=My;at.VERSION=to;at.toFormData=Ra;at.AxiosError=$;at.Cancel=at.CanceledError;at.all=i(function(t){return Promise.all(t)},"all");at.spread=IM;at.isAxiosError=CM;at.mergeConfig=xn;at.AxiosHeaders=et;at.formToJSON=e=>Uy(P.isHTMLForm(e)?new FormData(e):e);at.getAdapter=Xy.getAdapter;at.HttpStatusCode=Hl;at.default=at;Qy.exports=at});var rv=b((Xie,tv)=>{"use strict";tv.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var iv=b((Yie,nv)=>{"use strict";var nc=Nu(),OM=require("util"),ec=require("path"),RM=require("http"),zM=require("https"),DM=require("url").parse,$M=require("fs"),NM=require("stream").Stream,UM=require("crypto"),tc=Uu(),MM=Vu(),LM=el(),Jr=pa(),rc=rv();function be(e){if(!(this instanceof be))return new be(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],nc.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(be,"FormData");OM.inherits(be,nc);be.LINE_BREAK=`\r
23
+ `;be.DEFAULT_CONTENT_TYPE="application/octet-stream";be.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=nc.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};be.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+be.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Jr(t,"httpVersion"))&&!(t instanceof NM))&&(r.knownLength||this._valuesToMeasure.push(t))};be.prototype._lengthRetriever=function(e,t){Jr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):$M.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Jr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Jr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};be.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&rc(s,r.header);var u;for(var l in s)if(Jr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+be.LINE_BREAK)}return"--"+this.getBoundary()+be.LINE_BREAK+a+be.LINE_BREAK};be.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=ec.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=ec.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Jr(e,"httpVersion")&&(r=ec.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};be.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=tc.lookup(e.name)),!r&&e&&e.path&&(r=tc.lookup(e.path)),!r&&e&&e.readable&&Jr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=tc.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=be.DEFAULT_CONTENT_TYPE),r};be.prototype._multiPartFooter=function(){return function(e){var t=be.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};be.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+be.LINE_BREAK};be.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Jr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};be.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};be.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};be.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(be.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};be.prototype._generateBoundary=function(){this._boundary="--------------------------"+UM.randomBytes(12).toString("hex")};be.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};be.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};be.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}MM.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};be.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=DM(e),n=rc({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=rc(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=zM.request(n):r=RM.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};be.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};be.prototype.toString=function(){return"[object FormData]"};LM(be,"FormData");nv.exports=be});var av=b((eoe,ov)=>{function qM(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}i(qM,"isElectron");ov.exports=qM});var uv=b((roe,sv)=>{"use strict";var dr=i(e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function","isStream");dr.writable=e=>dr(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";dr.readable=e=>dr(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";dr.duplex=e=>dr.writable(e)&&dr.readable(e);dr.transform=e=>dr.duplex(e)&&typeof e._transform=="function";sv.exports=dr});var cv=b((ioe,ic)=>{"use strict";var FM=Object.prototype.hasOwnProperty,Pt="~";function ao(){}i(ao,"Events");Object.create&&(ao.prototype=Object.create(null),new ao().__proto__||(Pt=!1));function BM(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(BM,"EE");function lv(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new BM(r,n||e,o),s=Pt?Pt+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(lv,"addListener");function $a(e,t){--e._eventsCount===0?e._events=new ao:delete e._events[t]}i($a,"clearEvent");function xt(){this._events=new ao,this._eventsCount=0}i(xt,"EventEmitter");xt.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)FM.call(r,n)&&t.push(Pt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");xt.prototype.listeners=i(function(t){var r=Pt?Pt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");xt.prototype.listenerCount=i(function(t){var r=Pt?Pt+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");xt.prototype.emit=i(function(t,r,n,o,a,s){var u=Pt?Pt+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,m;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(m=1,c=new Array(p-1);m<p;m++)c[m-1]=arguments[m];l.fn.apply(l.context,c)}else{var f=l.length,d;for(m=0;m<f;m++)switch(l[m].once&&this.removeListener(t,l[m].fn,void 0,!0),p){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,r);break;case 3:l[m].fn.call(l[m].context,r,n);break;case 4:l[m].fn.call(l[m].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[m].fn.apply(l[m].context,c)}}return!0},"emit");xt.prototype.on=i(function(t,r,n){return lv(this,t,r,n,!1)},"on");xt.prototype.once=i(function(t,r,n){return lv(this,t,r,n,!0)},"once");xt.prototype.removeListener=i(function(t,r,n,o){var a=Pt?Pt+t:t;if(!this._events[a])return this;if(!r)return $a(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&$a(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:$a(this,a)}return this},"removeListener");xt.prototype.removeAllListeners=i(function(t){var r;return t?(r=Pt?Pt+t:t,this._events[r]&&$a(this,r)):(this._events=new ao,this._eventsCount=0),this},"removeAllListeners");xt.prototype.off=xt.prototype.removeListener;xt.prototype.addListener=xt.prototype.on;xt.prefixed=Pt;xt.EventEmitter=xt;typeof ic<"u"&&(ic.exports=xt)});var dv=b((aoe,pv)=>{"use strict";pv.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var fv=b((soe,Ua)=>{"use strict";var jM=dv(),Na=class extends Error{static{i(this,"TimeoutError")}constructor(t){super(t),this.name="TimeoutError"}},mv=i((e,t,r)=>new Promise((n,o)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){n(e);return}let a=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(l){o(l)}return}let s=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,u=r instanceof Error?r:new Na(s);typeof e.cancel=="function"&&e.cancel(),o(u)},t);jM(e.then(n,o),()=>{clearTimeout(a)})}),"pTimeout");Ua.exports=mv;Ua.exports.default=mv;Ua.exports.TimeoutError=Na});var hv=b(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});function VM(e,t,r){let n=0,o=e.length;for(;o>0;){let a=o/2|0,s=n+a;r(e[s],t)<=0?(n=++s,o-=a+1):o=a}return n}i(VM,"lowerBound");oc.default=VM});var gv=b(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var HM=hv(),ac=class{static{i(this,"PriorityQueue")}constructor(){this._queue=[]}enqueue(t,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:t};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let o=HM.default(this._queue,n,(a,s)=>s.priority-a.priority);this._queue.splice(o,0,n)}dequeue(){let t=this._queue.shift();return t?.run}filter(t){return this._queue.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this._queue.length}};sc.default=ac});var vv=b(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var WM=cv(),yv=fv(),ZM=gv(),Ma=i(()=>{},"empty"),GM=new yv.TimeoutError,uc=class extends WM{static{i(this,"PQueue")}constructor(t){var r,n,o,a;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Ma,this._resolveIdle=Ma,t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:ZM.default},t),!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=t.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(a=(o=t.interval)===null||o===void 0?void 0:o.toString())!==null&&a!==void 0?a:""}\` (${typeof t.interval})`);this._carryoverConcurrencyCount=t.carryoverConcurrencyCount,this._isIntervalIgnored=t.intervalCap===1/0||t.interval===0,this._intervalCap=t.intervalCap,this._interval=t.interval,this._queue=new t.queueClass,this._queueClass=t.queueClass,this.concurrency=t.concurrency,this._timeout=t.timeout,this._throwOnTimeout=t.throwOnTimeout===!0,this._isPaused=t.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=Ma,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=Ma,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let t=Date.now();if(this._intervalId===void 0){let r=this._intervalEnd-t;if(r<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),t&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this._concurrency=t,this._processQueue()}async add(t,r={}){return new Promise((n,o)=>{let a=i(async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?t():yv.default(Promise.resolve(t()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&o(GM)});n(await s)}catch(s){o(s)}this._next()},"run");this._queue.enqueue(a,r),this._tryToStartAnother(),this.emit("add")})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(t=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),t()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(t=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),t()}})}get size(){return this._queue.size}sizeBy(t){return this._queue.filter(t).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(t){this._timeout=t}};lc.default=uc});var xv=b((hoe,bv)=>{function Ht(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}i(Ht,"RetryOperation");bv.exports=Ht;Ht.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ht.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ht.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ht.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ht.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Ht.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Ht.prototype.start=Ht.prototype.try;Ht.prototype.errors=function(){return this._errors};Ht.prototype.attempts=function(){return this._attempts};Ht.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var o=this._errors[n],a=o.message,s=(e[a]||0)+1;e[a]=s,s>=r&&(t=o,r=s)}return t}});var _v=b(_n=>{var KM=xv();_n.operation=function(e){var t=_n.timeouts(e);return new KM(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};_n.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o<t.retries;o++)n.push(this.createTimeout(o,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(o,t)),n.sort(function(a,s){return a-s}),n};_n.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};_n.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var o=0;o<r.length;o++){var a=r[o],s=e[a];e[a]=i(function(l){var p=_n.operation(t),c=Array.prototype.slice.call(arguments,1),m=c.pop();c.push(function(f){p.retry(f)||(f&&(arguments[0]=p.mainError()),m.apply(this,arguments))}),p.attempt(function(){l.apply(e,c)})},"retryWrapper").bind(e,s),e[a].options=t}}});var wv=b((boe,kv)=>{kv.exports=_v()});var Sv=b((xoe,qa)=>{"use strict";var JM=wv(),XM=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"],La=class extends Error{static{i(this,"AbortError")}constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},YM=i((e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},"decorateErrorWithCounts"),QM=i(e=>XM.includes(e),"isNetworkError"),Pv=i((e,t)=>new Promise((r,n)=>{t={onFailedAttempt:i(()=>{},"onFailedAttempt"),retries:10,...t};let o=JM.operation(t);o.attempt(async a=>{try{r(await e(a))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof La)o.stop(),n(s.originalError);else if(s instanceof TypeError&&!QM(s.message))o.stop(),n(s);else{YM(s,a,t);try{await t.onFailedAttempt(s)}catch(u){n(u);return}o.retry(s)||n(o.mainError())}}})}),"pRetry");qa.exports=Pv;qa.exports.default=Pv;qa.exports.AbortError=La});var Fa=b(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.rateLimitedErrorWithDelay=zt.platformErrorFromResult=zt.httpErrorFromResponse=zt.requestErrorWithOriginal=zt.errorWithCode=zt.ErrorCode=void 0;var Qn;(function(e){e.RequestError="slack_webapi_request_error",e.HTTPError="slack_webapi_http_error",e.PlatformError="slack_webapi_platform_error",e.RateLimitedError="slack_webapi_rate_limited_error",e.FileUploadInvalidArgumentsError="slack_webapi_file_upload_invalid_args_error",e.FileUploadReadFileDataError="slack_webapi_file_upload_read_file_data_error"})(Qn||(zt.ErrorCode=Qn={}));function so(e,t){let r=e;return r.code=t,r}i(so,"errorWithCode");zt.errorWithCode=so;function e1(e,t){let r=so(new Error(`A request error occurred: ${e.message}`),Qn.RequestError);return t&&(r.original=e),r}i(e1,"requestErrorWithOriginal");zt.requestErrorWithOriginal=e1;function t1(e){let t=so(new Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),Qn.HTTPError);t.statusCode=e.status,t.statusMessage=e.statusText;let r={};for(let n of Object.keys(e.headers))n&&e.headers[n]&&(r[n]=e.headers[n]);return t.headers=r,t.body=e.data,t}i(t1,"httpErrorFromResponse");zt.httpErrorFromResponse=t1;function r1(e){let t=so(new Error(`An API error occurred: ${e.error}`),Qn.PlatformError);return t.data=e,t}i(r1,"platformErrorFromResult");zt.platformErrorFromResult=r1;function n1(e){let t=so(new Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),Qn.RateLimitedError);return t.retryAfter=e,t}i(n1,"rateLimitedErrorWithDelay");zt.rateLimitedErrorWithDelay=n1});var Hv=b(Q=>{"use strict";var Ba=Q&&Q.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})};Object.defineProperty(Q,"__esModule",{value:!0});Q.buildInvalidFilesUploadParamError=Q.buildMultipleChannelsErrorMsg=Q.buildChannelsWarning=Q.buildFilesUploadMissingMessage=Q.buildGeneralFilesUploadWarning=Q.buildLegacyMethodWarning=Q.buildMissingExtensionWarning=Q.buildMissingFileNameWarning=Q.buildLegacyFileTypeWarning=Q.buildFileSizeErrorMsg=Q.buildMissingFileIdError=Q.warnIfLegacyFileType=Q.warnIfMissingOrInvalidFileNameAndDefault=Q.errorIfInvalidOrMissingFileData=Q.errorIfChannelsCsv=Q.warnIfChannels=Q.warnIfNotUsingFilesUploadV2=Q.getAllFileUploadsToComplete=Q.getFileDataAsStream=Q.getFileDataLength=Q.getFileData=Q.getMultipleFileUploadJobs=Q.getFileUploadJob=void 0;var i1=require("node:fs"),o1=require("node:stream"),st=Fa();function cc(e,t){var r,n,o,a;return Ba(this,void 0,void 0,function*(){zv(e,t),Iv(e,t),Cv(e);let s=Rv(e,t),u=yield Tv(e),l=Av(u),p={alt_text:e.alt_text,channel_id:(r=e.channels)!==null&&r!==void 0?r:e.channel_id,filename:(n=e.filename)!==null&&n!==void 0?n:s,initial_comment:e.initial_comment,snippet_type:e.snippet_type,title:(a=(o=e.title)!==null&&o!==void 0?o:e.filename)!==null&&a!==void 0?a:s,data:u,length:l};if("thread_ts"in e&&(p.thread_ts=e.thread_ts),"token"in e&&(p.token=e.token),"content"in e)return Object.assign({content:e.content},p);if("file"in e)return Object.assign({file:e.file},p);throw(0,st.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),st.ErrorCode.FileUploadInvalidArgumentsError)})}i(cc,"getFileUploadJob");Q.getFileUploadJob=cc;function a1(e,t){return Ba(this,void 0,void 0,function*(){if("file_uploads"in e)return Promise.all(e.file_uploads.map(r=>{let{channel_id:n,channels:o,initial_comment:a,thread_ts:s}=r;if(n||o||a||s)throw(0,st.errorWithCode)(new Error(Vv()),st.ErrorCode.FileUploadInvalidArgumentsError);let u=Object.assign(Object.assign({},r),{channels:e.channels,channel_id:e.channel_id,initial_comment:e.initial_comment});if("thread_ts"in e&&(u.thread_ts=e.thread_ts),"token"in e&&(u.token=e.token),"content"in r)return cc(Object.assign({content:r.content},u),t);if("file"in r)return cc(Object.assign({file:r.file},u),t);throw(0,st.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),st.ErrorCode.FileUploadInvalidArgumentsError)}));throw new Error(Fv())})}i(a1,"getMultipleFileUploadJobs");Q.getMultipleFileUploadJobs=a1;function Tv(e){return Ba(this,void 0,void 0,function*(){if(Ov(e),"file"in e){let{file:t}=e;if(Buffer.isBuffer(t))return t;if(typeof t=="string")try{return(0,i1.readFileSync)(t)}catch{throw(0,st.errorWithCode)(new Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),st.ErrorCode.FileUploadInvalidArgumentsError)}let r=yield Ev(t);if(r)return r}if("content"in e)return Buffer.from(e.content);throw(0,st.errorWithCode)(new Error("There was an issue getting the file data for the file or content supplied"),st.ErrorCode.FileUploadReadFileDataError)})}i(Tv,"getFileData");Q.getFileData=Tv;function Av(e){if(e)return Buffer.byteLength(e,"utf8");throw(0,st.errorWithCode)(new Error($v()),st.ErrorCode.FileUploadReadFileDataError)}i(Av,"getFileDataLength");Q.getFileDataLength=Av;function Ev(e){return Ba(this,void 0,void 0,function*(){let t=[];return new Promise((r,n)=>{e.on("readable",()=>{let o;for(;(o=e.read())!==null;)t.push(o)}),e.on("end",()=>{if(t.length>0){let o=Buffer.concat(t);r(o)}else n(Error("No data in supplied file"))})})})}i(Ev,"getFileDataAsStream");Q.getFileDataAsStream=Ev;function s1(e){let t={};for(let r of e){let{channel_id:n,thread_ts:o,initial_comment:a,file_id:s,title:u}=r;if(s){let l=`:::${n}:::${o}:::${a}`;Object.prototype.hasOwnProperty.call(t,l)?t[l].files.push({id:s,title:u}):(t[l]={files:[{id:s,title:u}],channel_id:n,initial_comment:a},o&&(t[l].thread_ts=r.thread_ts),"token"in r&&(t[l].token=r.token))}else throw new Error(Dv())}return t}i(s1,"getAllFileUploadsToComplete");Q.getAllFileUploadsToComplete=s1;function u1(e,t){let n=["files.upload"].includes(e);e==="files.upload"&&t.warn(Lv(e)),n&&t.info(qv())}i(u1,"warnIfNotUsingFilesUploadV2");Q.warnIfNotUsingFilesUploadV2=u1;function Iv(e,t){e.channels&&t.warn(Bv())}i(Iv,"warnIfChannels");Q.warnIfChannels=Iv;function Cv(e){if((e.channels?e.channels.split(","):[]).length>1)throw(0,st.errorWithCode)(new Error(jv()),st.ErrorCode.FileUploadInvalidArgumentsError)}i(Cv,"errorIfChannelsCsv");Q.errorIfChannelsCsv=Cv;function Ov(e){let t="file"in e,r="content"in e;if(!(t||r)||t&&r)throw(0,st.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You cannot supply both"),st.ErrorCode.FileUploadInvalidArgumentsError);if("file"in e){let{file:n}=e;if(n&&!(typeof n=="string"||Buffer.isBuffer(n)||n instanceof o1.Readable))throw(0,st.errorWithCode)(new Error("file must be a valid string path, buffer or Readable"),st.ErrorCode.FileUploadInvalidArgumentsError)}if("content"in e&&e.content&&typeof e.content!="string")throw(0,st.errorWithCode)(new Error("content must be a string"),st.ErrorCode.FileUploadInvalidArgumentsError)}i(Ov,"errorIfInvalidOrMissingFileData");Q.errorIfInvalidOrMissingFileData=Ov;function Rv(e,t){var r;let o=`file.${(r=e.filetype)!==null&&r!==void 0?r:"txt"}`,{filename:a}=e;return a?(a.split(".").length<2&&t.warn(Mv(a)),a):(t.warn(Uv()),o)}i(Rv,"warnIfMissingOrInvalidFileNameAndDefault");Q.warnIfMissingOrInvalidFileNameAndDefault=Rv;function zv(e,t){e.filetype&&t.warn(Nv())}i(zv,"warnIfLegacyFileType");Q.warnIfLegacyFileType=zv;function Dv(){return"Missing required file id for file upload completion"}i(Dv,"buildMissingFileIdError");Q.buildMissingFileIdError=Dv;function $v(){return"There was an issue calculating the size of your file"}i($v,"buildFileSizeErrorMsg");Q.buildFileSizeErrorMsg=$v;function Nv(){return`filetype is no longer a supported field in files.uploadV2.
24
+ Please remove this field. To indicate file type, please do so via the required filename property using the appropriate file extension, e.g. image.png, text.txt`}i(Nv,"buildLegacyFileTypeWarning");Q.buildLegacyFileTypeWarning=Nv;function Uv(){return`filename is a required field for files.uploadV2.
25
+ For backwards compatibility and ease of migration, defaulting the filename. For best experience and consistent unfurl behavior, you should set the filename property with correct file extension, e.g. image.png, text.txt`}i(Uv,"buildMissingFileNameWarning");Q.buildMissingFileNameWarning=Uv;function Mv(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}i(Mv,"buildMissingExtensionWarning");Q.buildMissingExtensionWarning=Mv;function Lv(e){return`${e} may cause some issues like timeouts for relatively large files.`}i(Lv,"buildLegacyMethodWarning");Q.buildLegacyMethodWarning=Lv;function qv(){return"Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead."}i(qv,"buildGeneralFilesUploadWarning");Q.buildGeneralFilesUploadWarning=qv;function Fv(){return"Something went wrong with processing file_uploads"}i(Fv,"buildFilesUploadMissingMessage");Q.buildFilesUploadMissingMessage=Fv;function Bv(){return"Although the 'channels' parameter is still supported for smoother migration from legacy files.upload, we recommend using the new channel_id parameter with a single str value instead (e.g. 'C12345')."}i(Bv,"buildChannelsWarning");Q.buildChannelsWarning=Bv;function jv(){return"Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead."}i(jv,"buildMultipleChannelsErrorMsg");Q.buildMultipleChannelsErrorMsg=jv;function Vv(){return"You may supply file_uploads only for a single channel, comment, thread respectively. Therefore, please supply any channel_id, initial_comment, thread_ts in the top-layer."}i(Vv,"buildInvalidFilesUploadParamError");Q.buildInvalidFilesUploadParamError=Vv});var Wv=b(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});function l1(e){return new Promise(t=>{setTimeout(t,e)})}i(l1,"delay");pc.default=l1});var Zv=b((Eoe,c1)=>{c1.exports={name:"@slack/web-api",version:"7.9.0",description:"Official library for using the Slack Platform's Web API",author:"Slack Technologies, LLC",license:"MIT",keywords:["slack","web-api","bot","client","http","api","proxy","rate-limiting","pagination"],main:"dist/index.js",types:"./dist/index.d.ts",files:["dist/**/*"],engines:{node:">= 18",npm:">= 8.6.0"},repository:"slackapi/node-slack-sdk",homepage:"https://tools.slack.dev/node-slack-sdk/web-api",publishConfig:{access:"public"},bugs:{url:"https://github.com/slackapi/node-slack-sdk/issues"},scripts:{prepare:"npm run build",build:"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist ./coverage",lint:"npx @biomejs/biome check .","lint:fix":"npx @biomejs/biome check --write .",mocha:'mocha --config ./test/.mocharc.json "./src/**/*.spec.ts"',test:"npm run lint && npm run test:types && npm run test:integration && npm run test:unit","test:integration":"npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts","test:integration:ts":"cd test/integration/ts-4.7-project && npm i && npm run build","test:unit":"npm run build && c8 --config ./test/.c8rc.json npm run mocha","test:types":"tsd",watch:"npx nodemon --watch 'src' --ext 'ts' --exec npm run build"},dependencies:{"@slack/logger":"^4.0.0","@slack/types":"^2.9.0","@types/node":">=18.0.0","@types/retry":"0.12.0",axios:"^1.8.3",eventemitter3:"^5.0.1","form-data":"^4.0.0","is-electron":"2.2.2","is-stream":"^2","p-queue":"^6","p-retry":"^4",retry:"^0.13.1"},devDependencies:{"@biomejs/biome":"^1.8.3","@tsconfig/recommended":"^1","@types/busboy":"^1.5.4","@types/chai":"^4","@types/mocha":"^10","@types/sinon":"^17",busboy:"^1",c8:"^10.1.2",chai:"^4",mocha:"^11","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1",nock:"^13",shx:"^0.4.0",sinon:"^19","source-map-support":"^0.5.21","ts-node":"^10",tsd:"^0.31.1",typescript:"5.3.3"},tsd:{directory:"test/types"}}});var dc=b(Wt=>{"use strict";var p1=Wt&&Wt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),d1=Wt&&Wt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),m1=Wt&&Wt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&p1(t,e,r);return d1(t,e),t};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getUserAgent=Wt.addAppMetadata=void 0;var Gv=m1(require("node:os")),f1=require("node:path"),Kv=Zv();function Jv(e){return e.replace("/",":")}i(Jv,"replaceSlashes");var h1=`${Jv(Kv.name)}/${Kv.version} ${(0,f1.basename)(process.title)}/${process.version.replace("v","")} ${Gv.platform()}/${Gv.release()}`,Xv={};function g1({name:e,version:t}){Xv[Jv(e)]=t}i(g1,"addAppMetadata");Wt.addAppMetadata=g1;function y1(){let e=Object.entries(Xv).map(([t,r])=>`${t}/${r}`).join(" ");return(e.length>0?`${e} `:"")+h1}i(y1,"getUserAgent");Wt.getUserAgent=y1});var mc=b(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.ConsoleLogger=ei.LogLevel=void 0;var _t;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug"})(_t||(ei.LogLevel=_t={}));var uo=class e{static{i(this,"ConsoleLogger")}constructor(){this.level=_t.INFO,this.name=""}getLevel(){return this.level}setLevel(t){this.level=t}setName(t){this.name=t}debug(...t){e.isMoreOrEqualSevere(_t.DEBUG,this.level)&&console.debug(e.labels.get(_t.DEBUG),this.name,...t)}info(...t){e.isMoreOrEqualSevere(_t.INFO,this.level)&&console.info(e.labels.get(_t.INFO),this.name,...t)}warn(...t){e.isMoreOrEqualSevere(_t.WARN,this.level)&&console.warn(e.labels.get(_t.WARN),this.name,...t)}error(...t){e.isMoreOrEqualSevere(_t.ERROR,this.level)&&console.error(e.labels.get(_t.ERROR),this.name,...t)}static isMoreOrEqualSevere(t,r){return e.severity[t]>=e.severity[r]}};ei.ConsoleLogger=uo;uo.labels=(()=>{let t=Object.entries(_t).map(([r,n])=>[n,`[${r}] `]);return new Map(t)})();uo.severity={[_t.ERROR]:400,[_t.WARN]:300,[_t.INFO]:200,[_t.DEBUG]:100}});var fc=b(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.getLogger=ti.LogLevel=void 0;var v1=mc(),b1=mc();Object.defineProperty(ti,"LogLevel",{enumerable:!0,get:i(function(){return b1.LogLevel},"get")});var Yv=0;function x1(e,t,r){let n=Yv;Yv+=1;let o=r!==void 0?r:new v1.ConsoleLogger;return o.setName(`web-api:${e}:${n}`),t!==void 0&&o.setLevel(t),o}i(x1,"getLogger");ti.getLogger=x1});var eb=b(($oe,hc)=>{"use strict";var _1=Object.prototype.hasOwnProperty,St="~";function lo(){}i(lo,"Events");Object.create&&(lo.prototype=Object.create(null),new lo().__proto__||(St=!1));function k1(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(k1,"EE");function Qv(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new k1(r,n||e,o),s=St?St+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(Qv,"addListener");function ja(e,t){--e._eventsCount===0?e._events=new lo:delete e._events[t]}i(ja,"clearEvent");function kt(){this._events=new lo,this._eventsCount=0}i(kt,"EventEmitter");kt.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)_1.call(r,n)&&t.push(St?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");kt.prototype.listeners=i(function(t){var r=St?St+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");kt.prototype.listenerCount=i(function(t){var r=St?St+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");kt.prototype.emit=i(function(t,r,n,o,a,s){var u=St?St+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,m;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(m=1,c=new Array(p-1);m<p;m++)c[m-1]=arguments[m];l.fn.apply(l.context,c)}else{var f=l.length,d;for(m=0;m<f;m++)switch(l[m].once&&this.removeListener(t,l[m].fn,void 0,!0),p){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,r);break;case 3:l[m].fn.call(l[m].context,r,n);break;case 4:l[m].fn.call(l[m].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[m].fn.apply(l[m].context,c)}}return!0},"emit");kt.prototype.on=i(function(t,r,n){return Qv(this,t,r,n,!1)},"on");kt.prototype.once=i(function(t,r,n){return Qv(this,t,r,n,!0)},"once");kt.prototype.removeListener=i(function(t,r,n,o){var a=St?St+t:t;if(!this._events[a])return this;if(!r)return ja(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&ja(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:ja(this,a)}return this},"removeListener");kt.prototype.removeAllListeners=i(function(t){var r;return t?(r=St?St+t:t,this._events[r]&&ja(this,r)):(this._events=new lo,this._eventsCount=0),this},"removeAllListeners");kt.prototype.off=kt.prototype.removeListener;kt.prototype.addListener=kt.prototype.on;kt.prefixed=St;kt.EventEmitter=kt;typeof hc<"u"&&(hc.exports=kt)});var rb=b(tb=>{"use strict";Object.defineProperty(tb,"__esModule",{value:!0})});var ib=b(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0})});var ab=b(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0})});var ub=b(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0})});var cb=b(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0})});var db=b(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0})});var fb=b(mb=>{"use strict";Object.defineProperty(mb,"__esModule",{value:!0})});var gb=b(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0})});var vb=b(yb=>{"use strict";Object.defineProperty(yb,"__esModule",{value:!0})});var xb=b(bb=>{"use strict";Object.defineProperty(bb,"__esModule",{value:!0})});var kb=b(_b=>{"use strict";Object.defineProperty(_b,"__esModule",{value:!0})});var Pb=b(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0})});var Tb=b(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0})});var Eb=b(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0})});var Cb=b(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0})});var Rb=b(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0})});var Db=b(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0})});var Nb=b($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0})});var Mb=b(Ub=>{"use strict";Object.defineProperty(Ub,"__esModule",{value:!0})});var qb=b(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0})});var Bb=b(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0})});var Vb=b(jb=>{"use strict";Object.defineProperty(jb,"__esModule",{value:!0})});var Wb=b(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0})});var Gb=b(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0})});var Jb=b(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0})});var Yb=b(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0})});var ex=b(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0})});var rx=b(tx=>{"use strict";Object.defineProperty(tx,"__esModule",{value:!0})});var ix=b(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0})});var ax=b(ox=>{"use strict";Object.defineProperty(ox,"__esModule",{value:!0})});var ux=b(sx=>{"use strict";Object.defineProperty(sx,"__esModule",{value:!0})});var cx=b(lx=>{"use strict";Object.defineProperty(lx,"__esModule",{value:!0})});var dx=b(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0})});var mx=b(_e=>{"use strict";var w1=_e&&_e.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Oe=_e&&_e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&w1(t,e,r)};Object.defineProperty(_e,"__esModule",{value:!0});Oe(gb(),_e);Oe(vb(),_e);Oe(xb(),_e);Oe(kb(),_e);Oe(Pb(),_e);Oe(Tb(),_e);Oe(Eb(),_e);Oe(Cb(),_e);Oe(Rb(),_e);Oe(Db(),_e);Oe(Nb(),_e);Oe(Mb(),_e);Oe(qb(),_e);Oe(Bb(),_e);Oe(Vb(),_e);Oe(Wb(),_e);Oe(Gb(),_e);Oe(Jb(),_e);Oe(Yb(),_e);Oe(ex(),_e);Oe(rx(),_e);Oe(ix(),_e);Oe(ax(),_e);Oe(ux(),_e);Oe(cx(),_e);Oe(dx(),_e)});var hx=b(fx=>{"use strict";Object.defineProperty(fx,"__esModule",{value:!0})});var vx=b(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.CustomFieldType=ri.EntityType=void 0;var gx;(function(e){e.Task="slack#/entities/task",e.File="slack#/entities/file",e.Item="slack#/entities/item",e.Incident="slack#/entities/incident",e.ContentItem="slack#/entities/content_item"})(gx||(ri.EntityType=gx={}));var yx;(function(e){e.Integer="integer",e.String="string",e.Array="array",e.Date="slack#/types/date",e.Timestamp="slack#/types/timestamp",e.Image="slack#/types/image",e.ChannelId="slack#/types/channel_id",e.User="slack#/types/user",e.EntityRef="slack#/types/entity_ref",e.Boolean="boolean",e.Link="slack#/types/link",e.Email="slack#/types/email"})(yx||(ri.CustomFieldType=yx={}))});var xx=b(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0})});var _x=b(yt=>{"use strict";var P1=yt&&yt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),ir=yt&&yt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&P1(t,e,r)};Object.defineProperty(yt,"__esModule",{value:!0});ir(rb(),yt);ir(ib(),yt);ir(ab(),yt);ir(ub(),yt);ir(cb(),yt);ir(db(),yt);ir(fb(),yt);ir(mx(),yt);ir(hx(),yt);ir(vx(),yt);ir(xx(),yt)});var yc=b(Rr=>{"use strict";var S1=Rr&&Rr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),T1=Rr&&Rr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&S1(t,e,r)};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Methods=void 0;var A1=eb(),kx=vc();function T(e,t){return e.apiCall.bind(e,t)}i(T,"bindApiCall");function he(e,t){return e.apiCall.bind(e,t)}i(he,"bindApiCallWithOptionalArgument");function E1(e){return e.filesUploadV2.bind(e)}i(E1,"bindFilesUploadV2");var gc=class extends A1.EventEmitter{static{i(this,"Methods")}constructor(){if(super(),this.admin={analytics:{getFile:T(this,"admin.analytics.getFile")},apps:{activities:{list:he(this,"admin.apps.activities.list")},approve:T(this,"admin.apps.approve"),approved:{list:T(this,"admin.apps.approved.list")},clearResolution:T(this,"admin.apps.clearResolution"),config:{lookup:T(this,"admin.apps.config.lookup"),set:T(this,"admin.apps.config.set")},requests:{cancel:T(this,"admin.apps.requests.cancel"),list:T(this,"admin.apps.requests.list")},restrict:T(this,"admin.apps.restrict"),restricted:{list:T(this,"admin.apps.restricted.list")},uninstall:T(this,"admin.apps.uninstall")},auth:{policy:{assignEntities:T(this,"admin.auth.policy.assignEntities"),getEntities:T(this,"admin.auth.policy.getEntities"),removeEntities:T(this,"admin.auth.policy.removeEntities")}},barriers:{create:T(this,"admin.barriers.create"),delete:T(this,"admin.barriers.delete"),list:he(this,"admin.barriers.list"),update:T(this,"admin.barriers.update")},conversations:{archive:T(this,"admin.conversations.archive"),bulkArchive:T(this,"admin.conversations.bulkArchive"),bulkDelete:T(this,"admin.conversations.bulkDelete"),bulkMove:T(this,"admin.conversations.bulkMove"),convertToPrivate:T(this,"admin.conversations.convertToPrivate"),convertToPublic:T(this,"admin.conversations.convertToPublic"),create:T(this,"admin.conversations.create"),delete:T(this,"admin.conversations.delete"),disconnectShared:T(this,"admin.conversations.disconnectShared"),ekm:{listOriginalConnectedChannelInfo:he(this,"admin.conversations.ekm.listOriginalConnectedChannelInfo")},getConversationPrefs:T(this,"admin.conversations.getConversationPrefs"),getCustomRetention:T(this,"admin.conversations.getCustomRetention"),getTeams:T(this,"admin.conversations.getTeams"),invite:T(this,"admin.conversations.invite"),lookup:T(this,"admin.conversations.lookup"),removeCustomRetention:T(this,"admin.conversations.removeCustomRetention"),rename:T(this,"admin.conversations.rename"),restrictAccess:{addGroup:T(this,"admin.conversations.restrictAccess.addGroup"),listGroups:T(this,"admin.conversations.restrictAccess.listGroups"),removeGroup:T(this,"admin.conversations.restrictAccess.removeGroup")},search:he(this,"admin.conversations.search"),setConversationPrefs:T(this,"admin.conversations.setConversationPrefs"),setCustomRetention:T(this,"admin.conversations.setCustomRetention"),setTeams:T(this,"admin.conversations.setTeams"),unarchive:T(this,"admin.conversations.unarchive")},emoji:{add:T(this,"admin.emoji.add"),addAlias:T(this,"admin.emoji.addAlias"),list:he(this,"admin.emoji.list"),remove:T(this,"admin.emoji.remove"),rename:T(this,"admin.emoji.rename")},functions:{list:T(this,"admin.functions.list"),permissions:{lookup:T(this,"admin.functions.permissions.lookup"),set:T(this,"admin.functions.permissions.set")}},inviteRequests:{approve:T(this,"admin.inviteRequests.approve"),approved:{list:T(this,"admin.inviteRequests.approved.list")},denied:{list:T(this,"admin.inviteRequests.denied.list")},deny:T(this,"admin.inviteRequests.deny"),list:T(this,"admin.inviteRequests.list")},roles:{addAssignments:T(this,"admin.roles.addAssignments"),listAssignments:he(this,"admin.roles.listAssignments"),removeAssignments:T(this,"admin.roles.removeAssignments")},teams:{admins:{list:T(this,"admin.teams.admins.list")},create:T(this,"admin.teams.create"),list:he(this,"admin.teams.list"),owners:{list:T(this,"admin.teams.owners.list")},settings:{info:T(this,"admin.teams.settings.info"),setDefaultChannels:T(this,"admin.teams.settings.setDefaultChannels"),setDescription:T(this,"admin.teams.settings.setDescription"),setDiscoverability:T(this,"admin.teams.settings.setDiscoverability"),setIcon:T(this,"admin.teams.settings.setIcon"),setName:T(this,"admin.teams.settings.setName")}},usergroups:{addChannels:T(this,"admin.usergroups.addChannels"),addTeams:T(this,"admin.usergroups.addTeams"),listChannels:T(this,"admin.usergroups.listChannels"),removeChannels:T(this,"admin.usergroups.removeChannels")},users:{assign:T(this,"admin.users.assign"),invite:T(this,"admin.users.invite"),list:he(this,"admin.users.list"),remove:T(this,"admin.users.remove"),session:{clearSettings:T(this,"admin.users.session.clearSettings"),getSettings:T(this,"admin.users.session.getSettings"),invalidate:T(this,"admin.users.session.invalidate"),list:he(this,"admin.users.session.list"),reset:T(this,"admin.users.session.reset"),resetBulk:T(this,"admin.users.session.resetBulk"),setSettings:T(this,"admin.users.session.setSettings")},setAdmin:T(this,"admin.users.setAdmin"),setExpiration:T(this,"admin.users.setExpiration"),setOwner:T(this,"admin.users.setOwner"),setRegular:T(this,"admin.users.setRegular"),unsupportedVersions:{export:T(this,"admin.users.unsupportedVersions.export")}},workflows:{collaborators:{add:T(this,"admin.workflows.collaborators.add"),remove:T(this,"admin.workflows.collaborators.remove")},permissions:{lookup:T(this,"admin.workflows.permissions.lookup")},search:he(this,"admin.workflows.search"),unpublish:T(this,"admin.workflows.unpublish")}},this.api={test:he(this,"api.test")},this.assistant={threads:{setStatus:T(this,"assistant.threads.setStatus"),setSuggestedPrompts:T(this,"assistant.threads.setSuggestedPrompts"),setTitle:T(this,"assistant.threads.setTitle")}},this.apps={connections:{open:he(this,"apps.connections.open")},event:{authorizations:{list:T(this,"apps.event.authorizations.list")}},manifest:{create:T(this,"apps.manifest.create"),delete:T(this,"apps.manifest.delete"),export:T(this,"apps.manifest.export"),update:T(this,"apps.manifest.update"),validate:T(this,"apps.manifest.validate")},uninstall:T(this,"apps.uninstall")},this.auth={revoke:he(this,"auth.revoke"),teams:{list:he(this,"auth.teams.list")},test:he(this,"auth.test")},this.bookmarks={add:T(this,"bookmarks.add"),edit:T(this,"bookmarks.edit"),list:T(this,"bookmarks.list"),remove:T(this,"bookmarks.remove")},this.bots={info:he(this,"bots.info")},this.calls={add:T(this,"calls.add"),end:T(this,"calls.end"),info:T(this,"calls.info"),update:T(this,"calls.update"),participants:{add:T(this,"calls.participants.add"),remove:T(this,"calls.participants.remove")}},this.canvases={access:{delete:T(this,"canvases.access.delete"),set:T(this,"canvases.access.set")},create:he(this,"canvases.create"),delete:T(this,"canvases.delete"),edit:T(this,"canvases.edit"),sections:{lookup:T(this,"canvases.sections.lookup")}},this.chat={delete:T(this,"chat.delete"),deleteScheduledMessage:T(this,"chat.deleteScheduledMessage"),getPermalink:T(this,"chat.getPermalink"),meMessage:T(this,"chat.meMessage"),postEphemeral:T(this,"chat.postEphemeral"),postMessage:T(this,"chat.postMessage"),scheduleMessage:T(this,"chat.scheduleMessage"),scheduledMessages:{list:he(this,"chat.scheduledMessages.list")},unfurl:T(this,"chat.unfurl"),update:T(this,"chat.update")},this.conversations={acceptSharedInvite:T(this,"conversations.acceptSharedInvite"),approveSharedInvite:T(this,"conversations.approveSharedInvite"),archive:T(this,"conversations.archive"),canvases:{create:T(this,"conversations.canvases.create")},close:T(this,"conversations.close"),create:T(this,"conversations.create"),declineSharedInvite:T(this,"conversations.declineSharedInvite"),externalInvitePermissions:{set:T(this,"conversations.externalInvitePermissions.set")},history:T(this,"conversations.history"),info:T(this,"conversations.info"),invite:T(this,"conversations.invite"),inviteShared:T(this,"conversations.inviteShared"),join:T(this,"conversations.join"),kick:T(this,"conversations.kick"),leave:T(this,"conversations.leave"),list:he(this,"conversations.list"),listConnectInvites:he(this,"conversations.listConnectInvites"),mark:T(this,"conversations.mark"),members:T(this,"conversations.members"),open:T(this,"conversations.open"),rename:T(this,"conversations.rename"),replies:T(this,"conversations.replies"),requestSharedInvite:{approve:T(this,"conversations.requestSharedInvite.approve"),deny:T(this,"conversations.requestSharedInvite.deny"),list:he(this,"conversations.requestSharedInvite.list")},setPurpose:T(this,"conversations.setPurpose"),setTopic:T(this,"conversations.setTopic"),unarchive:T(this,"conversations.unarchive")},this.dialog={open:T(this,"dialog.open")},this.dnd={endDnd:he(this,"dnd.endDnd"),endSnooze:he(this,"dnd.endSnooze"),info:he(this,"dnd.info"),setSnooze:T(this,"dnd.setSnooze"),teamInfo:T(this,"dnd.teamInfo")},this.emoji={list:he(this,"emoji.list")},this.files={completeUploadExternal:T(this,"files.completeUploadExternal"),delete:T(this,"files.delete"),getUploadURLExternal:T(this,"files.getUploadURLExternal"),info:T(this,"files.info"),list:T(this,"files.list"),revokePublicURL:T(this,"files.revokePublicURL"),sharedPublicURL:T(this,"files.sharedPublicURL"),upload:T(this,"files.upload"),uploadV2:E1(this),comments:{delete:T(this,"files.comments.delete")},remote:{add:T(this,"files.remote.add"),info:T(this,"files.remote.info"),list:T(this,"files.remote.list"),remove:T(this,"files.remote.remove"),share:T(this,"files.remote.share"),update:T(this,"files.remote.update")}},this.functions={completeError:T(this,"functions.completeError"),completeSuccess:T(this,"functions.completeSuccess")},this.migration={exchange:T(this,"migration.exchange")},this.oauth={access:T(this,"oauth.access"),v2:{access:T(this,"oauth.v2.access"),exchange:T(this,"oauth.v2.exchange")}},this.openid={connect:{token:T(this,"openid.connect.token"),userInfo:he(this,"openid.connect.userInfo")}},this.pins={add:T(this,"pins.add"),list:T(this,"pins.list"),remove:T(this,"pins.remove")},this.reactions={add:T(this,"reactions.add"),get:T(this,"reactions.get"),list:he(this,"reactions.list"),remove:T(this,"reactions.remove")},this.reminders={add:T(this,"reminders.add"),complete:T(this,"reminders.complete"),delete:T(this,"reminders.delete"),info:T(this,"reminders.info"),list:he(this,"reminders.list")},this.rtm={connect:he(this,"rtm.connect"),start:he(this,"rtm.start")},this.search={all:T(this,"search.all"),files:T(this,"search.files"),messages:T(this,"search.messages")},this.team={accessLogs:he(this,"team.accessLogs"),billableInfo:he(this,"team.billableInfo"),billing:{info:T(this,"team.billing.info")},externalTeams:{disconnect:T(this,"team.externalTeams.disconnect"),list:T(this,"team.externalTeams.list")},info:he(this,"team.info"),integrationLogs:he(this,"team.integrationLogs"),preferences:{list:he(this,"team.preferences.list")},profile:{get:he(this,"team.profile.get")}},this.tooling={tokens:{rotate:T(this,"tooling.tokens.rotate")}},this.usergroups={create:T(this,"usergroups.create"),disable:T(this,"usergroups.disable"),enable:T(this,"usergroups.enable"),list:he(this,"usergroups.list"),update:T(this,"usergroups.update"),users:{list:T(this,"usergroups.users.list"),update:T(this,"usergroups.users.update")}},this.users={conversations:T(this,"users.conversations"),deletePhoto:T(this,"users.deletePhoto"),discoverableContacts:{lookup:T(this,"users.discoverableContacts.lookup")},getPresence:T(this,"users.getPresence"),identity:T(this,"users.identity"),info:T(this,"users.info"),list:T(this,"users.list"),lookupByEmail:T(this,"users.lookupByEmail"),setPhoto:T(this,"users.setPhoto"),setPresence:T(this,"users.setPresence"),profile:{get:T(this,"users.profile.get"),set:T(this,"users.profile.set")}},this.views={open:T(this,"views.open"),publish:T(this,"views.publish"),push:T(this,"views.push"),update:T(this,"views.update")},this.stars={add:T(this,"stars.add"),list:T(this,"stars.list"),remove:T(this,"stars.remove")},this.workflows={stepCompleted:T(this,"workflows.stepCompleted"),stepFailed:T(this,"workflows.stepFailed"),updateStep:T(this,"workflows.updateStep")},new.target!==kx.WebClient&&!(new.target.prototype instanceof kx.WebClient))throw new Error("Attempt to inherit from WebClient methods without inheriting from WebClient")}};Rr.Methods=gc;T1(_x(),Rr)});var bc=b(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.rapidRetryPolicy=Zt.fiveRetriesInFiveMinutes=Zt.tenRetriesInAboutThirtyMinutes=void 0;Zt.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0};Zt.fiveRetriesInFiveMinutes={retries:5,factor:3.86};Zt.rapidRetryPolicy={minTimeout:0,maxTimeout:1};var I1={tenRetriesInAboutThirtyMinutes:Zt.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:Zt.fiveRetriesInFiveMinutes,rapidRetryPolicy:Zt.rapidRetryPolicy};Zt.default=I1});var vc=b(Le=>{"use strict";var C1=Le&&Le.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),O1=Le&&Le.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),R1=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&C1(t,e,r);return O1(t,e),t},or=Le&&Le.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},po=Le&&Le.__await||function(e){return this instanceof po?(this.v=e,this):new po(e)},z1=Le&&Le.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o={},u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,m)}}function u(d,h){n[d]&&(o[d]=function(_){return new Promise(function(v,y){a.push([d,_,v,y])>1||l(d,_)})},h&&(o[d]=h(o[d])))}function l(d,h){try{p(n[d](h))}catch(_){f(a[0][3],_)}}function p(d){d.value instanceof po?Promise.resolve(d.value.v).then(c,m):f(a[0][2],d)}function c(d){l("next",d)}function m(d){l("throw",d)}function f(d,h){d(h),a.shift(),a.length&&l(a[0][0],a[0][1])}},D1=Le&&Le.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(u,l){s=e[a](s),o(u,l,s.done,s.value)})}}function o(a,s,u,l){Promise.resolve(l).then(function(p){a({value:p,done:u})},s)}},kn=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Le,"__esModule",{value:!0});Le.buildThreadTsWarningMessage=Le.WebClient=Le.WebClientEvent=void 0;var wx=require("node:path"),$1=require("node:querystring"),N1=require("node:util"),U1=kn(require("node:zlib")),M1=kn(ev()),L1=kn(iv()),q1=kn(av()),_c=kn(uv()),F1=kn(vv()),xc=R1(Sv()),co=Fa(),Va=Hv(),B1=kn(Wv()),j1=dc(),Px=fc(),V1=yc(),H1=bc(),W1=["delete","common","get","put","head","post","link","patch","purge","unlink","options"],Z1="Untitled",G1=200,K1=i(()=>{},"noopPageReducer"),kc;(function(e){e.RATE_LIMITED="rate_limited"})(kc||(Le.WebClientEvent=kc={}));var mo=class e extends V1.Methods{static{i(this,"WebClient")}constructor(t,{slackApiUrl:r="https://slack.com/api/",logger:n=void 0,logLevel:o=void 0,maxRequestConcurrency:a=100,retryConfig:s=H1.tenRetriesInAboutThirtyMinutes,agent:u=void 0,tls:l=void 0,timeout:p=0,rejectRateLimitedCalls:c=!1,headers:m={},teamId:f=void 0,allowAbsoluteUrls:d=!0,attachOriginalToWebAPIRequestError:h=!0,requestInterceptor:_=void 0,adapter:v=void 0}={}){super(),this.token=t,this.slackApiUrl=r,this.retryConfig=s,this.requestQueue=new F1.default({concurrency:a}),this.tlsConfig=l!==void 0?l:{},this.rejectRateLimitedCalls=c,this.teamId=f,this.allowAbsoluteUrls=d,this.attachOriginalToWebAPIRequestError=h,typeof n<"u"?(this.logger=n,typeof o<"u"&&this.logger.debug("The logLevel given to WebClient was ignored as you also gave logger")):this.logger=(0,Px.getLogger)(e.loggerName,o??Px.LogLevel.INFO,n),this.token&&!m.Authorization&&(m.Authorization=`Bearer ${this.token}`),this.axios=M1.default.create({adapter:v?y=>v(Object.assign(Object.assign({},y),{adapter:void 0})):void 0,timeout:p,baseURL:r,allowAbsoluteUrls:d,headers:(0,q1.default)()?m:Object.assign({"User-Agent":(0,j1.getUserAgent)()},m),httpAgent:u,httpsAgent:u,validateStatus:i(()=>!0,"validateStatus"),maxRedirects:0,proxy:!1}),this.axios.defaults.headers.post["Content-Type"]=void 0,_&&this.axios.interceptors.request.use(_,null),this.axios.interceptors.request.use(this.serializeApiCallData.bind(this),null),this.logger.debug("initialized")}apiCall(t,r={}){return or(this,void 0,void 0,function*(){if(this.logger.debug(`apiCall('${t}') start`),X1(t,this.logger),Y1(t,this.logger,r),Q1(t,this.logger,r),typeof r=="string"||typeof r=="number"||typeof r=="boolean")throw new TypeError(`Expected an options argument but instead received a ${typeof r}`);if((0,Va.warnIfNotUsingFilesUploadV2)(t,this.logger),t==="files.uploadV2")return this.filesUploadV2(r);let n={};r.token&&(n.Authorization=`Bearer ${r.token}`);let o=yield this.makeRequest(t,Object.assign({team_id:this.teamId},r),n),a=yield this.buildResult(o);if(this.logger.debug(`http request result: ${JSON.stringify(a)}`),a.response_metadata!==void 0&&a.response_metadata.warnings!==void 0&&a.response_metadata.warnings.forEach(this.logger.warn.bind(this.logger)),a.response_metadata!==void 0&&a.response_metadata.messages!==void 0)for(let s of a.response_metadata.messages){let u=/\[ERROR\](.*)/,l=/\[WARN\](.*)/;if(u.test(s)){let p=s.match(u);p!=null&&this.logger.error(p[1].trim())}else if(l.test(s)){let p=s.match(l);p!=null&&this.logger.warn(p[1].trim())}}if(!a.ok&&o.headers["content-type"]!=="application/gzip"||"ok"in a&&a.ok===!1)throw(0,co.platformErrorFromResult)(a);return this.logger.debug(`apiCall('${t}') end`),a})}paginate(t,r,n,o){let a=(()=>{if(r!==void 0&&typeof r.limit=="number"){let{limit:p}=r;return r.limit=void 0,p}return G1})();function s(){return z1(this,arguments,i(function*(){let c,m={limit:a};for(r!==void 0&&r.cursor!==void 0&&(m.cursor=r.cursor);c===void 0||m!==void 0;)c=yield po(this.apiCall(t,Object.assign(r!==void 0?r:{},m))),yield yield po(c),m=J1(c,a)},"generatePages_1"))}if(i(s,"generatePages"),n===void 0)return s.call(this);let u=o!==void 0?o:K1,l=0;return or(this,void 0,void 0,function*(){var p,c,m,f;let d=s.call(this),_=(yield d.next(void 0)).value,v=u(void 0,_,l);if(l+=1,n(_))return v;try{for(var y=!0,w=D1(d),S;S=yield w.next(),p=S.done,!p;y=!0){f=S.value,y=!1;let R=f;if(v=u(v,R,l),n(R))return v;l+=1}}catch(R){c={error:R}}finally{try{!y&&!p&&(m=w.return)&&(yield m.call(w))}finally{if(c)throw c.error}}return v})}filesUploadV2(t){return or(this,void 0,void 0,function*(){this.logger.debug("files.uploadV2() start");let r=yield this.getAllFileUploads(t);return(yield this.fetchAllUploadURLExternal(r)).forEach((a,s)=>{r[s].upload_url=a.upload_url,r[s].file_id=a.file_id}),yield this.postFileUploadsToExternalURL(r,t),{ok:!0,files:yield this.completeFileUploads(r)}})}fetchAllUploadURLExternal(t){return or(this,void 0,void 0,function*(){return Promise.all(t.map(r=>{let n={filename:r.filename,length:r.length,alt_text:r.alt_text,snippet_type:r.snippet_type};return"token"in r&&(n.token=r.token),this.files.getUploadURLExternal(n)}))})}completeFileUploads(t){return or(this,void 0,void 0,function*(){let r=Object.values((0,Va.getAllFileUploadsToComplete)(t));return Promise.all(r.map(n=>this.files.completeUploadExternal(n)))})}postFileUploadsToExternalURL(t,r){return or(this,void 0,void 0,function*(){return Promise.all(t.map(n=>or(this,void 0,void 0,function*(){let{upload_url:o,file_id:a,filename:s,data:u}=n,l=u;if(o){let p={};r.token&&(p.Authorization=`Bearer ${r.token}`);let c=yield this.makeRequest(o,{body:l},p);if(c.status!==200)return Promise.reject(Error(`Failed to upload file (id:${a}, filename: ${s})`));let m={ok:!0,body:c.data};return Promise.resolve(m)}return Promise.reject(Error(`No upload url found for file (id: ${a}, filename: ${s}`))})))})}getAllFileUploads(t){return or(this,void 0,void 0,function*(){let r=[];return("file"in t||"content"in t)&&r.push(yield(0,Va.getFileUploadJob)(t,this.logger)),"file_uploads"in t&&(r=r.concat(yield(0,Va.getMultipleFileUploadJobs)(t,this.logger))),r})}makeRequest(t,r,n={}){return or(this,void 0,void 0,function*(){let o=i(()=>this.requestQueue.add(()=>or(this,void 0,void 0,function*(){let a=this.deriveRequestUrl(t);try{let s=Object.assign({headers:n},this.tlsConfig);t.endsWith("admin.analytics.getFile")&&(s.responseType="arraybuffer"),t.endsWith("apps.event.authorizations.list")&&(r.token=void 0),this.logger.debug(`http request url: ${a}`),this.logger.debug(`http request body: ${JSON.stringify(Tx(r))}`);let u=Object.keys(this.axios.defaults.headers).reduce((p,c)=>(W1.includes(c)||(p[c]=this.axios.defaults.headers[c]),p),{});u=Object.assign(Object.assign(Object.assign({},this.axios.defaults.headers.common),u),n),this.logger.debug(`http request headers: ${JSON.stringify(Tx(u))}`);let l=yield this.axios.post(t,r,s);if(this.logger.debug("http response received"),l.status===429){let p=Sx(l);throw p!==void 0?(this.emit(kc.RATE_LIMITED,p,{url:t,body:r}),this.rejectRateLimitedCalls?new xc.AbortError((0,co.rateLimitedErrorWithDelay)(p)):(this.logger.info(`API Call failed due to rate limiting. Will retry in ${p} seconds.`),this.requestQueue.pause(),yield(0,B1.default)(p*1e3),this.requestQueue.start(),new Error(`A rate limit was exceeded (url: ${t}, retry-after: ${p})`))):new xc.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${t}, retry-after header: ${l.headers["retry-after"]})`))}if(l.status!==200)throw(0,co.httpErrorFromResponse)(l);return l}catch(s){let u=s;throw this.logger.warn("http request failed",u.message),u.request?(0,co.requestErrorWithOriginal)(u,this.attachOriginalToWebAPIRequestError):s}})),"task");return(0,xc.default)(o,this.retryConfig)})}deriveRequestUrl(t){return(t.startsWith("https://")||t.startsWith("http://"))&&this.allowAbsoluteUrls?t:`${this.axios.getUri()+t}`}serializeApiCallData(t){let{data:r,headers:n}=t,o=!1,a=Object.entries(r).map(([u,l])=>{if(l==null)return[];let p=l;return Buffer.isBuffer(l)||(0,_c.default)(l)?o=!0:typeof l!="string"&&typeof l!="number"&&typeof l!="boolean"&&(p=JSON.stringify(l)),[u,p]});if(o){this.logger.debug("Request arguments contain binary data");let u=a.reduce((l,[p,c])=>{if(Buffer.isBuffer(c)||(0,_c.default)(c)){let m={};m.filename=(()=>{let f=c;return typeof f.name=="string"?(0,wx.basename)(f.name):typeof f.path=="string"?(0,wx.basename)(f.path):Z1})(),l.append(p,c,m)}else p!==void 0&&c!==void 0&&l.append(p,c);return l},new L1.default);if(n)for(let[l,p]of Object.entries(u.getHeaders()))n[l]=p;return t.data=u,t.headers=n,t}n&&(n["Content-Type"]="application/x-www-form-urlencoded");let s={};return t.data=(0,$1.stringify)(a.reduce((u,[l,p])=>(l!==void 0&&p!==void 0&&(u[l]=p),u),s)),t.headers=n,t}buildResult(t){return or(this,void 0,void 0,function*(){let{data:r}=t,n=t.headers["content-type"]==="application/gzip";if(n)try{let a=yield new Promise((u,l)=>{U1.default.unzip(r,(p,c)=>p?l(p):u(c.toString().split(`
26
+ `)))}).then(u=>u).catch(u=>{throw u}),s=[];if(Array.isArray(a))for(let u of a)u&&u.length>0&&s.push(JSON.parse(u));r={file_data:s}}catch(a){r={ok:!1,error:a}}else!n&&t.request.path==="/api/admin.analytics.getFile"&&(r=JSON.parse(new N1.TextDecoder().decode(r)));if(typeof r=="string")try{r=JSON.parse(r)}catch{r={ok:!1,error:r}}r.response_metadata===void 0&&(r.response_metadata={}),t.headers["x-oauth-scopes"]!==void 0&&(r.response_metadata.scopes=t.headers["x-oauth-scopes"].trim().split(/\s*,\s*/)),t.headers["x-accepted-oauth-scopes"]!==void 0&&(r.response_metadata.acceptedScopes=t.headers["x-accepted-oauth-scopes"].trim().split(/\s*,\s*/));let o=Sx(t);return o!==void 0&&(r.response_metadata.retryAfter=o),r})}};Le.WebClient=mo;mo.loggerName="WebClient";Le.default=mo;function J1(e,t){if(e!==void 0&&e.response_metadata!==void 0&&e.response_metadata.next_cursor!==void 0&&e.response_metadata.next_cursor!=="")return{limit:t,cursor:e.response_metadata.next_cursor}}i(J1,"paginationOptionsForNextPage");function Sx(e){if(e.headers["retry-after"]!==void 0){let t=Number.parseInt(e.headers["retry-after"],10);if(!Number.isNaN(t))return t}}i(Sx,"parseRetryHeaders");function X1(e,t){["workflows."].some(o=>new RegExp(`^${o}`).test(e))&&t.warn(`${e} is deprecated. Please check on https://api.slack.com/methods for an alternative.`)}i(X1,"warnDeprecations");function Y1(e,t,r){let o=["chat.postEphemeral","chat.postMessage","chat.scheduleMessage"].includes(e),a=i(c=>Array.isArray(c.attachments)&&c.attachments.length,"hasAttachments"),s=i(c=>Array.isArray(c.attachments)&&c.attachments.some(m=>!m.fallback||m.fallback.trim()===""),"missingAttachmentFallbackDetected"),u=i(c=>c.text===void 0||c.text===null||c.text==="","isEmptyText"),l=i(()=>`The top-level \`text\` argument is missing in the request payload for a ${e} call - It's a best practice to always provide a \`text\` argument when posting a message. The \`text\` is used in places where the content cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc.`,"buildMissingTextWarning"),p=i(()=>`Additionally, the attachment-level \`fallback\` argument is missing in the request payload for a ${e} call - To avoid this warning, it is recommended to always provide a top-level \`text\` argument when posting a message. Alternatively, you can provide an attachment-level \`fallback\` argument, though this is now considered a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details).`,"buildMissingFallbackWarning");o&&typeof r=="object"&&(a(r)?s(r)&&u(r)&&(t.warn(l()),t.warn(p())):u(r)&&t.warn(l()))}i(Y1,"warnIfFallbackIsMissing");function Q1(e,t,r){["chat.postEphemeral","chat.postMessage","chat.scheduleMessage","files.upload"].includes(e)&&r?.thread_ts!==void 0&&typeof r?.thread_ts!="string"&&t.warn(Ax(e))}i(Q1,"warnIfThreadTsIsNotString");function Ax(e){return`The given thread_ts value in the request payload for a ${e} call is a float value. We highly recommend using a string value instead.`}i(Ax,"buildThreadTsWarningMessage");Le.buildThreadTsWarningMessage=Ax;function Tx(e){let t=Object.entries(e).map(([n,o])=>{if(o==null)return[];let a=o;return(n.match(/.*token.*/)!==null||n.match(/[Aa]uthorization/))&&(a="[[REDACTED]]"),Buffer.isBuffer(o)||(0,_c.default)(o)?a="[[BINARY VALUE OMITTED]]":typeof o!="string"&&typeof o!="number"&&typeof o!="boolean"&&(a=JSON.stringify(o)),[n,a]}),r={};return t.reduce((n,[o,a])=>(o!==void 0&&a!==void 0&&(n[o]=a),n),r)}i(Tx,"redact")});var Ix=b(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0})});var Ox=b(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0})});var H=b(We=>{"use strict";var eL=We&&We.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),wc=We&&We.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&eL(t,e,r)},tL=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(We,"__esModule",{value:!0});We.addAppMetadata=We.retryPolicies=We.ErrorCode=We.LogLevel=We.WebClientEvent=We.WebClient=void 0;var Rx=vc();Object.defineProperty(We,"WebClient",{enumerable:!0,get:i(function(){return Rx.WebClient},"get")});Object.defineProperty(We,"WebClientEvent",{enumerable:!0,get:i(function(){return Rx.WebClientEvent},"get")});var rL=fc();Object.defineProperty(We,"LogLevel",{enumerable:!0,get:i(function(){return rL.LogLevel},"get")});var nL=Fa();Object.defineProperty(We,"ErrorCode",{enumerable:!0,get:i(function(){return nL.ErrorCode},"get")});var iL=bc();Object.defineProperty(We,"retryPolicies",{enumerable:!0,get:i(function(){return tL(iL).default},"get")});var oL=dc();Object.defineProperty(We,"addAppMetadata",{enumerable:!0,get:i(function(){return oL.addAppMetadata},"get")});wc(yc(),We);wc(Ix(),We);wc(Ox(),We)});var Ic=b((Kle,Z_)=>{"use strict";var aL={}.hasOwnProperty;Z_.exports=aL});var K_=b((Jle,G_)=>{"use strict";var sL=[].splice;G_.exports=sL});var mr=b((Xle,J_)=>{"use strict";var Cc=K_();function uL(e,t,r,n){var o=e.length,a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),Cc.apply(e,s);else for(r&&Cc.apply(e,[t,r]);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),Cc.apply(e,s),a+=1e4,t+=1e4}i(uL,"chunkedSplice");J_.exports=uL});var ps=b((Qle,X_)=>{"use strict";function lL(e){return e==null?[]:"length"in e?e:[e]}i(lL,"miniflat");X_.exports=lL});var Oc=b((tce,Q_)=>{"use strict";var Y_=Ic(),cL=mr(),pL=ps();function dL(e){for(var t={},r=-1;++r<e.length;)mL(t,e[r]);return t}i(dL,"combineExtensions");function mL(e,t){var r,n,o,a;for(r in t){n=Y_.call(e,r)?e[r]:e[r]={},o=t[r];for(a in o)n[a]=fL(pL(o[a]),Y_.call(n,a)?n[a]:[])}}i(mL,"extension");function fL(e,t){for(var r=-1,n=[];++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);return cL(t,0,0,n),t}i(fL,"constructs");Q_.exports=dL});var xo=b((nce,ek)=>{"use strict";var hL=String.fromCharCode;ek.exports=hL});var Dr=b((ice,tk)=>{"use strict";var gL=xo();function yL(e){return t;function t(r){return e.test(gL(r))}}i(yL,"regexCheck");tk.exports=yL});var _o=b((ace,rk)=>{"use strict";var vL=Dr(),bL=vL(/[A-Za-z]/);rk.exports=bL});var oi=b((sce,nk)=>{"use strict";var xL=Dr(),_L=xL(/[\dA-Za-z]/);nk.exports=_L});var ds=b((uce,ik)=>{"use strict";function kL(e){return e<32||e===127}i(kL,"asciiControl");ik.exports=kL});var tt=b((cce,ok)=>{"use strict";function wL(e){return e<-2}i(wL,"markdownLineEnding");ok.exports=wL});var sk=b((dce,ak)=>{"use strict";var PL=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;ak.exports=PL});var ms=b((mce,uk)=>{"use strict";var SL=sk(),TL=Dr(),AL=TL(SL);uk.exports=AL});var fs=b((fce,lk)=>{"use strict";var EL=Dr(),IL=EL(/\s/);lk.exports=IL});var Sk=b(Pk=>{var pk=_o(),dk=oi(),mk=ds(),CL=tt(),fk=ms(),hk=fs(),OL={tokenize:$L,partial:!0},gk={tokenize:NL,partial:!0},yk={tokenize:UL,partial:!0},ai={tokenize:LL,partial:!0},vk={tokenize:ML,partial:!0},bk={tokenize:zL,previous:kk},xk={tokenize:DL,previous:zc},$r={tokenize:RL,previous:wk},fr={};Pk.text=fr;var Pn=48;for(;Pn<123;)fr[Pn]=$r,Pn++,Pn===58?Pn=65:Pn===91&&(Pn=97);fr[43]=$r;fr[45]=$r;fr[46]=$r;fr[95]=$r;fr[72]=[$r,xk];fr[104]=[$r,xk];fr[87]=[$r,bk];fr[119]=[$r,bk];function RL(e,t,r){var n=this,o;return a;function a(f){return!ck(f)||!wk(n.previous)||Dc(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return ck(f)?(e.consume(f),s):f===64?(e.consume(f),u):r(f)}function u(f){return f===46?e.check(ai,m,l)(f):f===45||f===95?e.check(ai,r,p)(f):dk(f)?(e.consume(f),u):m(f)}function l(f){return e.consume(f),o=!0,u}function p(f){return e.consume(f),c}function c(f){return f===46?e.check(ai,r,l)(f):u(f)}function m(f){return o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}i(RL,"tokenizeEmailAutolink");function zL(e,t,r){var n=this;return o;function o(s){return s!==87&&s-32!==87||!kk(n.previous)||Dc(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(OL,e.attempt(gk,e.attempt(yk,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}i(zL,"tokenizeWwwAutolink");function DL(e,t,r){var n=this;return o;function o(h){return h!==72&&h-32!==72||!zc(n.previous)||Dc(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(h),a)}function a(h){return h===84||h-32===84?(e.consume(h),s):r(h)}function s(h){return h===84||h-32===84?(e.consume(h),u):r(h)}function u(h){return h===80||h-32===80?(e.consume(h),l):r(h)}function l(h){return h===83||h-32===83?(e.consume(h),p):p(h)}function p(h){return h===58?(e.consume(h),c):r(h)}function c(h){return h===47?(e.consume(h),m):r(h)}function m(h){return h===47?(e.consume(h),f):r(h)}function f(h){return mk(h)||hk(h)||fk(h)?r(h):e.attempt(gk,e.attempt(yk,d),r)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}i(DL,"tokenizeHttpAutolink");function $L(e,t,r){return n;function n(l){return e.consume(l),o}function o(l){return l===87||l-32===87?(e.consume(l),a):r(l)}function a(l){return l===87||l-32===87?(e.consume(l),s):r(l)}function s(l){return l===46?(e.consume(l),u):r(l)}function u(l){return l===null||CL(l)?r(l):t(l)}}i($L,"tokenizeWww");function NL(e,t,r){var n,o;return a;function a(l){return l===38?e.check(vk,u,s)(l):l===46||l===95?e.check(ai,u,s)(l):mk(l)||hk(l)||l!==45&&fk(l)?u(l):(e.consume(l),a)}function s(l){return l===46?(o=n,n=void 0,e.consume(l),a):(l===95&&(n=!0),e.consume(l),a)}function u(l){return!o&&!n?t(l):r(l)}}i(NL,"tokenizeDomain");function UL(e,t){var r=0;return n;function n(s){return s===38?e.check(vk,t,o)(s):(s===40&&r++,s===41?e.check(ai,a,o)(s):Rc(s)?t(s):_k(s)?e.check(ai,t,o)(s):(e.consume(s),n))}function o(s){return e.consume(s),n}function a(s){return r--,r<0?t(s):o(s)}}i(UL,"tokenizePath");function ML(e,t,r){return n;function n(s){return e.consume(s),o}function o(s){return pk(s)?(e.consume(s),o):s===59?(e.consume(s),a):r(s)}function a(s){return Rc(s)?t(s):r(s)}}i(ML,"tokenizeNamedCharacterReference");function LL(e,t,r){return n;function n(a){return e.consume(a),o}function o(a){return _k(a)?(e.consume(a),o):Rc(a)?t(a):r(a)}}i(LL,"tokenizePunctuation");function _k(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}i(_k,"trailingPunctuation");function Rc(e){return e===null||e<0||e===32||e===60}i(Rc,"pathEnd");function ck(e){return e===43||e===45||e===46||e===95||dk(e)}i(ck,"gfmAtext");function kk(e){return e===null||e<0||e===32||e===40||e===42||e===95||e===126}i(kk,"previousWww");function zc(e){return e===null||!pk(e)}i(zc,"previousHttp");function wk(e){return e!==47&&zc(e)}i(wk,"previousEmail");function Dc(e){for(var t=e.length;t--;)if((e[t][1].type==="labelLink"||e[t][1].type==="labelImage")&&!e[t][1]._balanced)return!0}i(Dc,"previous")});var Ak=b((yce,Tk)=>{Tk.exports=Sk()});var hr=b((vce,Ek)=>{"use strict";function qL(e){return e<0||e===32}i(qL,"markdownLineEndingOrSpace");Ek.exports=qL});var $c=b((xce,Ik)=>{"use strict";var FL=hr(),BL=ms(),jL=fs();function VL(e){if(e===null||FL(e)||jL(e))return 1;if(BL(e))return 2}i(VL,"classifyCharacter");Ik.exports=VL});var ko=b((kce,Ck)=>{"use strict";function HL(e,t,r){for(var n=[],o=-1,a;++o<e.length;)a=e[o].resolveAll,a&&n.indexOf(a)<0&&(t=a(t,r),n.push(a));return t}i(HL,"resolveAll");Ck.exports=HL});var si=b((Pce,Ok)=>{"use strict";var WL=Object.assign;Ok.exports=WL});var tn=b((Sce,Rk)=>{"use strict";var ZL=si();function GL(e){return ZL({},e)}i(GL,"shallow");Rk.exports=GL});var $k=b((Ace,Dk)=>{Dk.exports=JL;var zk=$c(),Nc=mr(),KL=ko(),hs=tn();function JL(e){var t=e||{},r=t.singleTilde,n={tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:n}};function o(u,l){for(var p=-1,c,m,f,d;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){for(f=p;f--;)if(u[f][0]==="exit"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[f][1].end.offset-u[f][1].start.offset){u[p][1].type="strikethroughSequence",u[f][1].type="strikethroughSequence",c={type:"strikethrough",start:hs(u[f][1].start),end:hs(u[p][1].end)},m={type:"strikethroughText",start:hs(u[f][1].end),end:hs(u[p][1].start)},d=[["enter",c,l],["enter",u[f][1],l],["exit",u[f][1],l],["enter",m,l]],Nc(d,d.length,0,KL(l.parser.constructs.insideSpan.null,u.slice(f+1,p),l)),Nc(d,d.length,0,[["exit",m,l],["enter",u[p][1],l],["exit",u[p][1],l],["exit",c,l]]),Nc(u,f-1,p-f+3,d),p=f+d.length-2;break}}return a(u)}i(o,"resolveAllStrikethrough");function a(u){for(var l=-1,p=u.length;++l<p;)u[l][1].type==="strikethroughSequenceTemporary"&&(u[l][1].type="data");return u}i(a,"removeRemainingSequences");function s(u,l,p){var c=this.previous,m=this.events,f=0;return d;function d(_){return _!==126||c===126&&m[m.length-1][1].type!=="characterEscape"?p(_):(u.enter("strikethroughSequenceTemporary"),h(_))}function h(_){var v=zk(c),y,w;return _===126?f>1?p(_):(u.consume(_),f++,h):f<2&&!r?p(_):(y=u.exit("strikethroughSequenceTemporary"),w=zk(_),y._open=!w||w===2&&v,y._close=!v||v===2&&w,l(_))}}i(s,"tokenizeStrikethrough")}i(JL,"create")});var gr=b((Ice,Nk)=>{"use strict";function XL(e){return e===-2||e===-1||e===32}i(XL,"markdownSpace");Nk.exports=XL});var ut=b((Oce,Mk)=>{"use strict";var Uk=gr();function YL(e,t,r,n){var o=n?n-1:1/0,a=0;return s;function s(l){return Uk(l)?(e.enter(r),u(l)):t(l)}function u(l){return Uk(l)&&a++<o?(e.consume(l),u):(e.exit(r),t(l))}}i(YL,"spaceFactory");Mk.exports=YL});var Fk=b(qk=>{qk.flow={null:{tokenize:tq,resolve:eq,interruptible:!0}};var Uc=ut(),QL={tokenize:rq,partial:!0},Lk={tokenize:nq,partial:!0};function eq(e,t){for(var r=e.length,n=-1,o,a,s,u,l,p,c,m,f,d;++n<r;)o=e[n][1],u&&(o.type==="temporaryTableCellContent"&&(m=m||n,f=n),(o.type==="tableCellDivider"||o.type==="tableRow")&&f&&(p={type:"tableContent",start:e[m][1].start,end:e[f][1].end},c={type:"chunkText",start:p.start,end:p.end,contentType:"text"},e.splice(m,f-m+1,["enter",p,t],["enter",c,t],["exit",c,t],["exit",p,t]),n-=f-m-3,r=e.length,m=void 0,f=void 0)),e[n][0]==="exit"&&d&&d+1<n&&(o.type==="tableCellDivider"||o.type==="tableRow"&&(d+3<n||e[d][1].type!=="whitespace"))&&(l={type:s?"tableDelimiter":a?"tableHeader":"tableData",start:e[d][1].start,end:e[n][1].end},e.splice(n+(o.type==="tableCellDivider"?1:0),0,["exit",l,t]),e.splice(d,0,["enter",l,t]),n+=2,r=e.length,d=n+1),o.type==="tableRow"&&(u=e[n][0]==="enter",u&&(d=n+1)),o.type==="tableDelimiterRow"&&(s=e[n][0]==="enter",s&&(d=n+1)),o.type==="tableHead"&&(a=e[n][0]==="enter");return e}i(eq,"resolveTable");function tq(e,t,r){var n=[],o=0,a,s;return u;function u(A){return A===null||A===-5||A===-4||A===-3?r(A):(e.enter("table")._align=n,e.enter("tableHead"),e.enter("tableRow"),A===124?l(A):(o++,e.enter("temporaryTableCellContent"),m(A)))}function l(A){return e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,p}function p(A){return A===null||A===-5||A===-4||A===-3?d(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),c):(a&&(a=void 0,o++),A===124?l(A):(e.enter("temporaryTableCellContent"),m(A)))}function c(A){return A===-2||A===-1||A===32?(e.consume(A),c):(e.exit("whitespace"),p(A))}function m(A){return A===null||A<0||A===32||A===124?(e.exit("temporaryTableCellContent"),p(A)):(e.consume(A),A===92?f:m)}function f(A){return A===92||A===124?(e.consume(A),m):m(A)}function d(A){return A===null?r(A):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),e.check(QL,r,Uc(e,h,"linePrefix",4)))}function h(A){return A===null||A<0||A===32?r(A):(e.enter("tableDelimiterRow"),_(A))}function _(A){return A===null||A===-5||A===-4||A===-3?R(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),v):A===45?(e.enter("tableDelimiterFiller"),e.consume(A),s=!0,n.push(null),y):A===58?(e.enter("tableDelimiterAlignment"),e.consume(A),e.exit("tableDelimiterAlignment"),n.push("left"),w):A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),_):r(A)}function v(A){return A===-2||A===-1||A===32?(e.consume(A),v):(e.exit("whitespace"),_(A))}function y(A){return A===45?(e.consume(A),y):(e.exit("tableDelimiterFiller"),A===58?(e.enter("tableDelimiterAlignment"),e.consume(A),e.exit("tableDelimiterAlignment"),n[n.length-1]=n[n.length-1]==="left"?"center":"right",S):_(A))}function w(A){return A===45?(e.enter("tableDelimiterFiller"),e.consume(A),s=!0,y):r(A)}function S(A){return A===null||A===-5||A===-4||A===-3?R(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),v):A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),_):r(A)}function R(A){return e.exit("tableDelimiterRow"),!s||o!==n.length?r(A):A===null?F(A):e.check(Lk,F,U)(A)}function F(A){return e.exit("table"),t(A)}function U(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Uc(e,Z,"linePrefix",4)}function Z(A){return e.enter("tableBody"),q(A)}function q(A){return e.enter("tableRow"),A===124?W(A):(e.enter("temporaryTableCellContent"),j(A))}function W(A){return e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),G}function G(A){return A===null||A===-5||A===-4||A===-3?re(A):A===-2||A===-1||A===32?(e.enter("whitespace"),e.consume(A),N):A===124?W(A):(e.enter("temporaryTableCellContent"),j(A))}function N(A){return A===-2||A===-1||A===32?(e.consume(A),N):(e.exit("whitespace"),G(A))}function j(A){return A===null||A<0||A===32||A===124?(e.exit("temporaryTableCellContent"),G(A)):(e.consume(A),A===92?de:j)}function de(A){return A===92||A===124?(e.consume(A),j):j(A)}function re(A){return e.exit("tableRow"),A===null?Ie(A):e.check(Lk,Ie,je)(A)}function Ie(A){return e.exit("tableBody"),F(A)}function je(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Uc(e,q,"linePrefix",4)}}i(tq,"tokenizeTable");function rq(e,t,r){return n;function n(s){return s!==45?r(s):(e.enter("setextUnderline"),o(s))}function o(s){return s===45?(e.consume(s),o):a(s)}function a(s){return s===-2||s===-1||s===32?(e.consume(s),a):s===null||s===-5||s===-4||s===-3?t(s):r(s)}}i(rq,"tokenizeSetextUnderlineMini");function nq(e,t,r){var n=0;return o;function o(s){return e.enter("check"),e.consume(s),a}function a(s){return s===-1||s===32?(e.consume(s),n++,n===4?t:a):s===null||s<0?t(s):r(s)}}i(nq,"tokenizeNextPrefixedOrBlank")});var jk=b(($ce,Bk)=>{Bk.exports=Fk()});var Mc=b((Nce,Vk)=>{"use strict";function iq(e){for(var t=-1,r=0;++t<e.length;)r+=typeof e[t]=="string"?e[t].length:1;return r}i(iq,"sizeChunks");Vk.exports=iq});var ui=b((Mce,Hk)=>{"use strict";var oq=Mc();function aq(e,t){var r=e[e.length-1];return!r||r[1].type!==t?0:oq(r[2].sliceStream(r[1]))}i(aq,"prefixSize");Hk.exports=aq});var Zk=b(Wk=>{var sq=hr(),uq=ut(),lq=ui(),cq={tokenize:pq};Wk.text={91:cq};function pq(e,t,r){var n=this;return o;function o(u){return u!==91||n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return u===-2||u===32?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:dq},t,r)):r(u)}}i(pq,"tokenizeTasklistCheck");function dq(e,t,r){var n=this;return uq(e,o,"whitespace");function o(a){return lq(n.events,"whitespace")&&a!==null&&!sq(a)?t(a):r(a)}}i(dq,"spaceThenNonSpace")});var Kk=b((Bce,Gk)=>{Gk.exports=Zk()});var Xk=b((jce,Jk)=>{var mq=Oc(),fq=Ak(),hq=$k(),gq=jk(),yq=Kk();Jk.exports=vq;function vq(e){return mq([fq,hq(e),gq,yq])}i(vq,"create")});var Qk=b((Hce,Yk)=>{Yk.exports=Xk()});var tw=b((Wce,ew)=>{"use strict";ew.exports=bq;function bq(e,t){var r=String(e),n=0,o;if(typeof t!="string")throw new Error("Expected character");for(o=r.indexOf(t);o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}i(bq,"ccount")});var gs=b((Gce,nw)=>{"use strict";nw.exports=rw;function rw(e){if(e==null)return wq;if(typeof e=="string")return kq(e);if(typeof e=="object")return"length"in e?_q(e):xq(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}i(rw,"convert");function xq(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}i(xq,"allFactory");function _q(e){for(var t=[],r=-1;++r<e.length;)t[r]=rw(e[r]);return n;function n(){for(var o=-1;++o<t.length;)if(t[o].apply(this,arguments))return!0;return!1}}i(_q,"anyFactory");function kq(e){return t;function t(r){return!!(r&&r.type===e)}}i(kq,"typeFactory");function wq(){return!0}i(wq,"ok")});var ow=b((Jce,iw)=>{iw.exports=Pq;function Pq(e){return"\x1B[33m"+e+"\x1B[39m"}i(Pq,"color")});var qc=b((Yce,uw)=>{"use strict";uw.exports=ys;var Sq=gs(),Tq=ow(),aw=!0,sw="skip",Lc=!1;ys.CONTINUE=aw;ys.SKIP=sw;ys.EXIT=Lc;function ys(e,t,r,n){var o,a;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),a=Sq(t),o=n?-1:1,s(e,null,[])();function s(u,l,p){var c=typeof u=="object"&&u!==null?u:{},m;return typeof c.type=="string"&&(m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,f.displayName="node ("+Tq(c.type+(m?"<"+m+">":""))+")"),f;function f(){var d=p.concat(u),h=[],_,v;if((!t||a(u,l,p[p.length-1]||null))&&(h=Aq(r(u,p)),h[0]===Lc))return h;if(u.children&&h[0]!==sw)for(v=(n?u.children.length:-1)+o;v>-1&&v<u.children.length;){if(_=s(u.children[v],v,d)(),_[0]===Lc)return _;v=typeof _[1]=="number"?_[1]:v+o}return h}i(f,"visit")}i(s,"factory")}i(ys,"visitParents");function Aq(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[aw,e]:[e]}i(Aq,"toResult")});var cw=b((epe,lw)=>{"use strict";lw.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var hw=b((tpe,fw)=>{"use strict";fw.exports=Rq;var Eq=qc(),Iq=gs(),Cq=cw(),Oq=[].splice;function Rq(e,t,r,n){var o,a;return typeof t=="string"||t&&typeof t.exec=="function"?a=[[t,r]]:(a=t,n=r),o=n||{},pw(e,o,s(zq(a))),e;function s(u){var l=u[0];return p;function p(c,m){var f=l[0],d=l[1],h=[],_=0,v=m.children.indexOf(c),y,w,S,R;for(f.lastIndex=0,w=f.exec(c.value);w&&(y=w.index,R=d.apply(null,[].concat(w,{index:w.index,input:w.input})),R!==!1&&(_!==y&&h.push({type:"text",value:c.value.slice(_,y)}),typeof R=="string"&&R.length>0&&(R={type:"text",value:R}),R&&(h=[].concat(h,R)),_=y+w[0].length),!!f.global);)w=f.exec(c.value);if(y===void 0?(h=[c],v--):(_<c.value.length&&h.push({type:"text",value:c.value.slice(_)}),h.unshift(v,1),Oq.apply(m.children,h)),u.length>1)for(S=s(u.slice(1)),y=-1;++y<h.length;)c=h[y],c.type==="text"?S(c,m):pw(c,o,S);return v+h.length+1}}i(s,"handlerFactory")}i(Rq,"findAndReplace");function pw(e,t,r){var n=Iq(t.ignore||[]),o=[];return Eq(e,"text",a),o;function a(s,u){for(var l=-1,p,c;++l<u.length;){if(p=u[l],n(p,c?c.children.indexOf(p):void 0,c))return;c=p}return r(s,c)}i(a,"visitor")}i(pw,"search");function zq(e){var t=[],r,n;if(typeof e!="object")throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)t.push([dw(e[n][0]),mw(e[n][1])]);else for(r in e)t.push([dw(r),mw(e[r])]);return t}i(zq,"toPairs");function dw(e){return typeof e=="string"?new RegExp(Cq(e),"g"):e}i(dw,"toExpression");function mw(e){return typeof e=="function"?e:t;function t(){return e}}i(mw,"toFunction")});var vw=b(vs=>{var gw=tw(),Dq=hw(),$q=ms(),Nq=fs();vs.transforms=[Bq];vs.enter={literalAutolink:Uq,literalAutolinkEmail:Fc,literalAutolinkHttp:Fc,literalAutolinkWww:Fc};vs.exit={literalAutolink:Fq,literalAutolinkEmail:qq,literalAutolinkHttp:Mq,literalAutolinkWww:Lq};function Uq(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(Uq,"enterLiteralAutolink");function Fc(e){this.config.enter.autolinkProtocol.call(this,e)}i(Fc,"enterLiteralAutolinkValue");function Mq(e){this.config.exit.autolinkProtocol.call(this,e)}i(Mq,"exitLiteralAutolinkHttp");function Lq(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}i(Lq,"exitLiteralAutolinkWww");function qq(e){this.config.exit.autolinkEmail.call(this,e)}i(qq,"exitLiteralAutolinkEmail");function Fq(e){this.exit(e)}i(Fq,"exitLiteralAutolink");function Bq(e){Dq(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,jq],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,Vq]],{ignore:["link","linkReference"]})}i(Bq,"transformGfmAutolinkLiterals");function jq(e,t,r,n,o){var a="",s,u;return!yw(o)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!Hq(r))||(s=Wq(r+n),!s[0])?!1:(u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]},s[1]&&(u=[u,{type:"text",value:s[1]}]),u)}i(jq,"findUrl");function Vq(e,t,r,n){return!yw(n,!0)||/[_-]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}i(Vq,"findEmail");function Hq(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i(Hq,"isCorrectDomain");function Wq(e){var t=/[!"&'),.:;<>?\]}]+$/.exec(e),r,n,o;if(t)for(e=e.slice(0,t.index),t=t[0],r=t.indexOf(")"),n=gw(e,"("),o=gw(e,")");r!==-1&&n>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}i(Wq,"splitUrl");function yw(e,t){var r=e.input.charCodeAt(e.index-1);return(r!==r||Nq(r)||$q(r))&&(!t||r!==47)}i(yw,"previous")});var bw=b(bs=>{bs.canContainEols=["delete"];bs.enter={strikethrough:Zq};bs.exit={strikethrough:Gq};function Zq(e){this.enter({type:"delete",children:[]},e)}i(Zq,"enterStrikethrough");function Gq(e){this.exit(e)}i(Gq,"exitStrikethrough")});var _w=b(jc=>{jc.enter={table:Kq,tableData:xw,tableHeader:xw,tableRow:Xq};jc.exit={codeText:Yq,table:Jq,tableData:Bc,tableHeader:Bc,tableRow:Bc};function Kq(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)}i(Kq,"enterTable");function Jq(e){this.exit(e),this.setData("inTable")}i(Jq,"exitTable");function Xq(e){this.enter({type:"tableRow",children:[]},e)}i(Xq,"enterRow");function Bc(e){this.exit(e)}i(Bc,"exit");function xw(e){this.enter({type:"tableCell",children:[]},e)}i(xw,"enterCell");function Yq(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Qq)),this.stack[this.stack.length-1].value=t,this.exit(e)}i(Yq,"exitCodeText");function Qq(e,t){return t==="|"?t:e}i(Qq,"replace")});var Pw=b(ww=>{ww.exit={taskListCheckValueChecked:kw,taskListCheckValueUnchecked:kw,paragraph:eF};function kw(e){this.stack[this.stack.length-2].checked=e.type==="taskListCheckValueChecked"}i(kw,"exitCheck");function eF(e){var t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,o=r.children[0],a=-1,s;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&o&&o.type==="text"){for(;++a<n.length;)if(n[a].type==="paragraph"){s=n[a];break}s===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}i(eF,"exitParagraphWithTaskListItem")});var Tw=b((ppe,Sw)=>{var tF=vw(),rF=bw(),nF=_w(),iF=Pw(),oF={}.hasOwnProperty;Sw.exports=aF([tF,rF,nF,iF]);function aF(e){for(var t={transforms:[],canContainEols:[]},r=e.length,n=-1;++n<r;)sF(t,e[n]);return t}i(aF,"configure");function sF(e,t){var r,n,o;for(r in t)n=oF.call(e,r)?e[r]:e[r]={},o=t[r],r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,o):Object.assign(n,o)}i(sF,"extension")});var Ew=b(Aw=>{var Vc="phrasing",Hc=["autolink","link","image","label"];Aw.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vc,notInConstruct:Hc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vc,notInConstruct:Hc},{character:":",before:"[ps]",after:"\\/",inConstruct:Vc,notInConstruct:Hc}]});var yr=b((fpe,Iw)=>{Iw.exports=uF;function uF(e,t,r){for(var n=e.children||[],o=[],a=-1,s=r.before,u,l,p;++a<n.length;)p=n[a],a+1<n.length?(l=t.handle.handlers[n[a+1].type],l&&l.peek&&(l=l.peek),u=l?l(n[a+1],e,t,{before:"",after:""}).charAt(0):""):u=r.after,o.length>0&&(s==="\r"||s===`
27
+ `)&&p.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(p,e,t,{before:s,after:u})),s=o[o.length-1].slice(-1);return o.join("")}i(uF,"phrasing")});var Ow=b(Wc=>{var lF=yr();Wc.unsafe=[{character:"~",inConstruct:"phrasing"}];Wc.handlers={delete:Cw};Cw.peek=cF;function Cw(e,t,r){var n=r.enter("emphasis"),o=lF(e,r,{before:"~",after:"~"});return n(),"~~"+o+"~~"}i(Cw,"handleDelete");function cF(){return"~"}i(cF,"peekDelete")});var Zc=b((vpe,Rw)=>{Rw.exports=pF;function pF(e){var t,r;return e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g")),e._compiled}i(pF,"patternCompile")});var Gc=b((xpe,Dw)=>{Dw.exports=zw;zw.peek=mF;var dF=Zc();function zw(e,t,r){for(var n=e.value||"",o="`",a=-1,s,u,l,p;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/[ \r\n`]/.test(n.charAt(0))||/[ \r\n`]/.test(n.charAt(n.length-1)))&&(n=" "+n+" ");++a<r.unsafe.length;)if(s=r.unsafe[a],!!s.atBreak)for(u=dF(s);l=u.exec(n);)p=l.index,n.charCodeAt(p)===10&&n.charCodeAt(p-1)===13&&p--,n=n.slice(0,p)+" "+n.slice(l.index+1);return o+n+o}i(zw,"inlineCode");function mF(){return"`"}i(mF,"inlineCodePeek")});var Sn=b((kpe,$w)=>{"use strict";var Nr="",Kc;$w.exports=fF;function fF(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var r=e.length*t;if(Kc!==e||typeof Kc>"u")Kc=e,Nr="";else if(Nr.length>=r)return Nr.substr(0,r);for(;r>Nr.length&&t>1;)t&1&&(Nr+=e),t>>=1,e+=e;return Nr+=e,Nr=Nr.substr(0,r),Nr}i(fF,"repeat")});var qw=b((Ppe,Lw)=>{"use strict";var li=Sn();Lw.exports=_F;var hF=/ +$/,Tn=" ",gF=`
28
+ `,yF="-",xs=":",Nw="|",Uw=0,vF=67,bF=76,xF=82,_s=99,Jc=108,ks=114;function _F(e,t){for(var r=t||{},n=r.padding!==!1,o=r.delimiterStart!==!1,a=r.delimiterEnd!==!1,s=(r.align||[]).concat(),u=r.alignDelimiters!==!1,l=[],p=r.stringLength||wF,c=-1,m=e.length,f=[],d=[],h=[],_=[],v=[],y=0,w,S,R,F,U,Z,q,W,G,N,j;++c<m;){for(w=e[c],S=-1,R=w.length,h=[],_=[],R>y&&(y=R);++S<R;)Z=kF(w[S]),u===!0&&(U=p(Z),_[S]=U,F=v[S],(F===void 0||U>F)&&(v[S]=U)),h.push(Z);f[c]=h,d[c]=_}if(S=-1,R=y,typeof s=="object"&&"length"in s)for(;++S<R;)l[S]=Mw(s[S]);else for(j=Mw(s);++S<R;)l[S]=j;for(S=-1,R=y,h=[],_=[];++S<R;)j=l[S],G="",N="",j===Jc?G=xs:j===ks?N=xs:j===_s&&(G=xs,N=xs),U=u?Math.max(1,v[S]-G.length-N.length):1,Z=G+li(yF,U)+N,u===!0&&(U=G.length+U+N.length,U>v[S]&&(v[S]=U),_[S]=U),h[S]=Z;for(f.splice(1,0,h),d.splice(1,0,_),c=-1,m=f.length,q=[];++c<m;){for(h=f[c],_=d[c],S=-1,R=y,W=[];++S<R;)Z=h[S]||"",G="",N="",u===!0&&(U=v[S]-(_[S]||0),j=l[S],j===ks?G=li(Tn,U):j===_s?U%2===0?(G=li(Tn,U/2),N=G):(G=li(Tn,U/2+.5),N=li(Tn,U/2-.5)):N=li(Tn,U)),o===!0&&S===0&&W.push(Nw),n===!0&&!(u===!1&&Z==="")&&(o===!0||S!==0)&&W.push(Tn),u===!0&&W.push(G),W.push(Z),u===!0&&W.push(N),n===!0&&W.push(Tn),(a===!0||S!==R-1)&&W.push(Nw);W=W.join(""),a===!1&&(W=W.replace(hF,"")),q.push(W)}return q.join(gF)}i(_F,"markdownTable");function kF(e){return e==null?"":String(e)}i(kF,"serialize");function wF(e){return e.length}i(wF,"defaultStringLength");function Mw(e){var t=typeof e=="string"?e.charCodeAt(0):Uw;return t===bF||t===Jc?Jc:t===xF||t===ks?ks:t===vF||t===_s?_s:Uw}i(Mw,"toAlignment")});var Bw=b((Tpe,Fw)=>{var PF=yr(),SF=Gc(),TF=qw();Fw.exports=AF;function AF(e){var t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
29
29
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:s,tableRow:u,tableCell:l,inlineCode:f}};function s(d,h,_){return p(c(d,_),d.align)}function u(d,h,_){var v=m(d,_),y=p([v]);return y.slice(0,y.indexOf(`
30
- `))}function l(d,h,_){var v=_.enter("tableCell"),y=mF(d,_,{before:a,after:a});return v(),y}function p(d,h){return hF(d,{align:h,alignDelimiters:n,padding:r,stringLength:o})}function c(d,h){for(var _=d.children,v=-1,y=_.length,w=[],S=h.enter("table");++v<y;)w[v]=m(_[v],h);return S(),w}function m(d,h){for(var _=d.children,v=-1,y=_.length,w=[],S=h.enter("tableRow");++v<y;)w[v]=l(_[v],d,h);return S(),w}function f(d,h,_){var v=fF(d,h,_);return _.stack.indexOf("tableCell")!==-1&&(v=v.replace(/\|/g,"\\$&")),v}}i(gF,"toMarkdown")});var Dw=b((tpe,$w)=>{$w.exports=yF;function yF(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}i(yF,"checkBullet")});var Uw=b((npe,Nw)=>{Nw.exports=vF;function vF(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}i(vF,"checkListItemIndent")});var ko=b((ope,Mw)=>{Mw.exports=xF;var bF=Sn();function xF(e,t){for(var r=e.children||[],n=[],o=-1,a;++o<r.length;)a=r[o],n.push(t.handle(a,e,t,{before:`
30
+ `))}function l(d,h,_){var v=_.enter("tableCell"),y=PF(d,_,{before:a,after:a});return v(),y}function p(d,h){return TF(d,{align:h,alignDelimiters:n,padding:r,stringLength:o})}function c(d,h){for(var _=d.children,v=-1,y=_.length,w=[],S=h.enter("table");++v<y;)w[v]=m(_[v],h);return S(),w}function m(d,h){for(var _=d.children,v=-1,y=_.length,w=[],S=h.enter("tableRow");++v<y;)w[v]=l(_[v],d,h);return S(),w}function f(d,h,_){var v=SF(d,h,_);return _.stack.indexOf("tableCell")!==-1&&(v=v.replace(/\|/g,"\\$&")),v}}i(AF,"toMarkdown")});var Vw=b((Epe,jw)=>{jw.exports=EF;function EF(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}i(EF,"checkBullet")});var Ww=b((Cpe,Hw)=>{Hw.exports=IF;function IF(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}i(IF,"checkListItemIndent")});var wo=b((Rpe,Zw)=>{Zw.exports=OF;var CF=Sn();function OF(e,t){for(var r=e.children||[],n=[],o=-1,a;++o<r.length;)a=r[o],n.push(t.handle(a,e,t,{before:`
31
31
  `,after:`
32
- `})),o+1<r.length&&n.push(s(a,r[o+1]));return n.join("");function s(u,l){for(var p=-1,c;++p<t.join.length&&(c=t.join[p](u,l,e,t),!(c===!0||c===1));){if(typeof c=="number")return bF(`
32
+ `})),o+1<r.length&&n.push(s(a,r[o+1]));return n.join("");function s(u,l){for(var p=-1,c;++p<t.join.length&&(c=t.join[p](u,l,e,t),!(c===!0||c===1));){if(typeof c=="number")return CF(`
33
33
  `,1+Number(c));if(c===!1)return`
34
34
 
35
35
  <!---->
36
36
 
37
37
  `}return`
38
38
 
39
- `}}i(xF,"flow")});var ks=b((spe,Lw)=>{Lw.exports=kF;var _F=/\r?\n|\r/g;function kF(e,t){for(var r=[],n=0,o=0,a;a=_F.exec(e);)s(e.slice(n,a.index)),r.push(a[0]),n=a.index+a[0].length,o++;return s(e.slice(n)),r.join("");function s(u){r.push(t(u,o,!u))}i(s,"one")}i(kF,"indentLines")});var Gc=b((lpe,Fw)=>{Fw.exports=AF;var qw=Sn(),wF=Dw(),PF=Uw(),SF=ko(),TF=ks();function AF(e,t,r){var n=wF(r),o=PF(r),a,s,u;return t&&t.ordered&&(n=(t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),a=n.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4),u=r.enter("listItem"),s=TF(SF(e,r),l),u(),s;function l(p,c,m){return c?(m?"":qw(" ",a))+p:(m?n:n+qw(" ",a-n.length))+p}i(l,"map")}i(AF,"listItem")});var Bw=b(Kc=>{var EF=Gc();Kc.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Kc.handlers={listItem:IF};function IF(e,t,r){var n=EF(e,t,r),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(n=n.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),n;function a(s){return s+"["+(e.checked?"x":" ")+"] "}i(a,"check")}i(IF,"listItemWithTaskListItem")});var Jc=b((mpe,Vw)=>{Vw.exports=jw;function jw(e,t){var r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)jw(e,t.extensions[r]);for(n in t)n==="extensions"||(n==="unsafe"||n==="join"?e[n]=e[n].concat(t[n]||[]):n==="handlers"?e[n]=Object.assign(e[n],t[n]||{}):e.options[n]=t[n]);return e}i(jw,"configure")});var Zw=b((hpe,Hw)=>{var CF=bw(),OF=kw(),RF=zw(),zF=Bw(),$F=Jc();Hw.exports=DF;function DF(e){var t=$F({handlers:{},join:[],unsafe:[],options:{}},{extensions:[CF,OF,RF(e),zF]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}i(DF,"toMarkdown")});var Kw=b((ype,Gw)=>{"use strict";var NF=Vk(),UF=yw(),MF=Zw(),Ww;Gw.exports=LF;function LF(e){var t=this.data();!Ww&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(Ww=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),r("micromarkExtensions",NF(e)),r("fromMarkdownExtensions",UF),r("toMarkdownExtensions",MF(e));function r(n,o){t[n]?t[n].push(o):t[n]=[o]}i(r,"add")}i(LF,"gfm")});var ws=b((bpe,Yw)=>{"use strict";Yw.exports=Xw;function Xw(e){return e&&(e.value||e.alt||e.title||"children"in e&&Jw(e.children)||"length"in e&&Jw(e))||""}i(Xw,"toString");function Jw(e){for(var t=[],r=-1;++r<e.length;)t[r]=Xw(e[r]);return t.join("")}i(Jw,"all")});var Ps=b((_pe,Qw)=>{"use strict";function qF(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(qF,"normalizeIdentifier");Qw.exports=qF});var tP=b((wpe,eP)=>{"use strict";var FF=bo();function BF(e,t){var r=parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":FF(r)}i(BF,"safeFromInt");eP.exports=BF});var rP=b(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var jF=tt(),VF=ut(),HF=ZF;function ZF(e){var t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),VF(e,t,"linePrefix")}function o(u){return e.enter("paragraph"),a(u)}function a(u){var l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return jF(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}i(ZF,"initializeContent");Xc.tokenize=HF});var wo=b((Ape,nP)=>{"use strict";var WF=tt(),GF=ut(),KF={tokenize:JF,partial:!0};function JF(e,t,r){return GF(e,n,"linePrefix");function n(o){return o===null||WF(o)?t(o):r(o)}}i(JF,"tokenizePartialBlankLine");nP.exports=KF});var oP=b(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var XF=tt(),iP=ut(),YF=wo(),QF=tB,Yc={tokenize:rB},eB={tokenize:nB};function tB(e){var t=this,r=[],n=0,o={tokenize:y,partial:!0},a,s,u;return l;function l(w){return n<r.length?(t.containerState=r[n][1],e.attempt(r[n][0].continuation,p,c)(w)):c(w)}function p(w){return n++,l(w)}function c(w){return a&&a.flowContinue?f(w):(t.interrupt=s&&s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},e.attempt(Yc,m,f)(w))}function m(w){return r.push([t.currentConstruct,t.containerState]),t.containerState=void 0,c(w)}function f(w){if(w===null){v(0,!0),e.consume(w);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:s}),d(w)}function d(w){return w===null?(_(e.exit("chunkFlow")),f(w)):XF(w)?(e.consume(w),_(e.exit("chunkFlow")),e.check(o,h)):(e.consume(w),d)}function h(w){return v(a.continued,a&&a.flowEnd),n=0,l(w)}function _(w){u&&(u.next=w),u=w,s.lazy=a&&a.lazy,s.defineSkip(w.start),s.write(t.sliceStream(w))}function v(w,S){var O=r.length;for(s&&S&&(s.write([null]),u=s=void 0);O-- >w;)t.containerState=r[O][1],r[O][0].exit.call(t,e);r.length=w}function y(w,S){var O=0;return a={},F;function F(N){return O<r.length?(t.containerState=r[O][1],w.attempt(r[O][0].continuation,M,V)(N)):s.currentConstruct&&s.currentConstruct.concrete?(a.flowContinue=!0,Z(N)):(t.interrupt=s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},w.attempt(Yc,J,Z)(N))}i(F,"inspectStart");function M(N){return O++,t.containerState._closeFlow?J(N):F(N)}i(M,"inspectContinue");function V(N){return s.currentConstruct&&s.currentConstruct.lazy?(t.containerState={},w.attempt(Yc,J,w.attempt(eB,J,w.check(YF,J,q)))(N)):J(N)}i(V,"inspectLess");function q(N){return O=r.length,a.lazy=!0,a.flowContinue=!0,Z(N)}i(q,"inspectLazy");function J(N){return a.flowEnd=!0,Z(N)}i(J,"inspectFlowEnd");function Z(N){return a.continued=O,t.interrupt=t.containerState=void 0,S(N)}i(Z,"inspectDone")}}i(tB,"initializeDocument");function rB(e,t,r){return iP(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(rB,"tokenizeContainer");function nB(e,t,r){return iP(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(nB,"tokenizeLazyFlow");Qc.tokenize=QF});var ep=b((Ope,sP)=>{"use strict";var iB=ai(),aP=mr(),oB=en();function aB(e){for(var t={},r=-1,n,o,a,s,u,l,p;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1].isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(iB(t,sB(e,r)),r=t[r],p=!0);else if(n[1]._container||n[1]._movePreviousLineEndings){for(a=r,o=void 0;a--&&(s=e[a],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);o&&(n[1].end=oB(e[o][1].start),u=e.slice(o,r),u.unshift(n),aP(e,o,r-o+1,u))}}return!p}i(aB,"subtokenize");function sB(e,t){for(var r=e[t][1],n=e[t][2],o=t-1,a=[],s=r._tokenizer||n.parser[r.contentType](r.start),u=s.events,l=[],p={},c,m,f,d,h,_;r;){for(;e[++o][1]!==r;);a.push(o),r._tokenizer||(c=n.sliceStream(r),r.next||c.push(null),m&&s.defineSkip(r.start),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),m=r,r=r.next}for(r=m,f=u.length;f--;)u[f][0]==="enter"?d=!0:d&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(v(u.slice(f+1,h)),r._tokenizer=r.next=void 0,r=r.previous,h=f+1);for(s.events=r._tokenizer=r.next=void 0,v(u.slice(0,h)),f=-1,_=0;++f<l.length;)p[_+l[f][0]]=_+l[f][1],_+=l[f][1]-l[f][0]-1;return p;function v(y){var w=a.pop();l.unshift([w,w+y.length-1]),aP(e,w,2,y)}}i(sB,"subcontent");sP.exports=aB});var cP=b((zpe,lP)=>{"use strict";var uP=tt(),uB=si(),lB=ep(),cB=ut(),pB={tokenize:fB,resolve:mB,interruptible:!0,lazy:!0},dB={tokenize:hB,partial:!0};function mB(e){return lB(e),e}i(mB,"resolveContent");function fB(e,t){var r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(u)}function o(u){return u===null?a(u):uP(u)?e.check(dB,s,a)(u):(e.consume(u),o)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),o}}i(fB,"tokenizeContent");function hB(e,t,r){var n=this;return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),cB(e,a,"linePrefix")}function a(s){return s===null||uP(s)?r(s):n.parser.constructs.disable.null.indexOf("codeIndented")>-1||uB(n.events,"linePrefix")<4?e.interrupt(n.parser.constructs.flow,r,t)(s):t(s)}}i(hB,"tokenizeContinuation");lP.exports=pB});var pP=b(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var gB=cP(),yB=ut(),vB=wo(),bB=xB;function xB(e){var t=this,r=e.attempt(vB,n,e.attempt(this.parser.constructs.flowInitial,o,yB(e,e.attempt(this.parser.constructs.flow,o,e.attempt(gB,o)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}i(xB,"initializeFlow");tp.tokenize=bB});var rp=b(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var _B=ai(),dP=en(),kB=mP("text"),wB=mP("string"),PB={resolveAll:fP()};function mP(e){return{tokenize:t,resolveAll:fP(e==="text"?SB:void 0)};function t(r){var n=this,o=this.parser.constructs[e],a=r.attempt(o,s,u);return s;function s(c){return p(c)?a(c):u(c)}function u(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){var m=o[c],f=-1;if(c===null)return!0;if(m){for(;++f<m.length;)if(!m[f].previous||m[f].previous.call(n,n.previous))return!0}}}}i(mP,"initializeFactory");function fP(e){return t;function t(r,n){for(var o=-1,a;++o<=r.length;)a===void 0?r[o]&&r[o][1].type==="data"&&(a=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==a+2&&(r[a][1].end=r[o-1][1].end,r.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(r,n):r}}i(fP,"createResolver");function SB(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){for(o=e[r-1][1],n=t.sliceStream(o),s=n.length,u=-1,l=0,p=void 0;s--;)if(a=n[s],typeof a=="string"){for(u=a.length;a.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(a===-2)p=!0,l++;else if(a!==-1){s++;break}l&&(c={type:r===e.length||p||l<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-l,offset:o.end.offset-l,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:dP(o.end)},o.end=dP(c.start),o.start.offset===o.end.offset?_B(o,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)),r++}return e}i(SB,"resolveAllLineSuffixes");Po.resolver=PB;Po.string=wB;Po.text=kB});var Ss=b((Lpe,hP)=>{"use strict";var TB=mr();function AB(e,t){return e.length?(TB(e,e.length,0,t),e):t}i(AB,"chunkedPush");hP.exports=AB});var yP=b((Fpe,gP)=>{"use strict";var EB=bo();function IB(e){for(var t=-1,r=[],n,o,a;++t<e.length;){if(n=e[t],typeof n=="string")o=n;else if(n===-5)o="\r";else if(n===-4)o=`
39
+ `}}i(OF,"flow")});var ws=b((Dpe,Gw)=>{Gw.exports=zF;var RF=/\r?\n|\r/g;function zF(e,t){for(var r=[],n=0,o=0,a;a=RF.exec(e);)s(e.slice(n,a.index)),r.push(a[0]),n=a.index+a[0].length,o++;return s(e.slice(n)),r.join("");function s(u){r.push(t(u,o,!u))}i(s,"one")}i(zF,"indentLines")});var Xc=b((Npe,Jw)=>{Jw.exports=MF;var Kw=Sn(),DF=Vw(),$F=Ww(),NF=wo(),UF=ws();function MF(e,t,r){var n=DF(r),o=$F(r),a,s,u;return t&&t.ordered&&(n=(t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),a=n.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4),u=r.enter("listItem"),s=UF(NF(e,r),l),u(),s;function l(p,c,m){return c?(m?"":Kw(" ",a))+p:(m?n:n+Kw(" ",a-n.length))+p}i(l,"map")}i(MF,"listItem")});var Xw=b(Yc=>{var LF=Xc();Yc.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Yc.handlers={listItem:qF};function qF(e,t,r){var n=LF(e,t,r),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(n=n.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),n;function a(s){return s+"["+(e.checked?"x":" ")+"] "}i(a,"check")}i(qF,"listItemWithTaskListItem")});var Qc=b((qpe,Qw)=>{Qw.exports=Yw;function Yw(e,t){var r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)Yw(e,t.extensions[r]);for(n in t)n==="extensions"||(n==="unsafe"||n==="join"?e[n]=e[n].concat(t[n]||[]):n==="handlers"?e[n]=Object.assign(e[n],t[n]||{}):e.options[n]=t[n]);return e}i(Yw,"configure")});var tP=b((Bpe,eP)=>{var FF=Ew(),BF=Ow(),jF=Bw(),VF=Xw(),HF=Qc();eP.exports=WF;function WF(e){var t=HF({handlers:{},join:[],unsafe:[],options:{}},{extensions:[FF,BF,jF(e),VF]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}i(WF,"toMarkdown")});var iP=b((Vpe,nP)=>{"use strict";var ZF=Qk(),GF=Tw(),KF=tP(),rP;nP.exports=JF;function JF(e){var t=this.data();!rP&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(rP=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),r("micromarkExtensions",ZF(e)),r("fromMarkdownExtensions",GF),r("toMarkdownExtensions",KF(e));function r(n,o){t[n]?t[n].push(o):t[n]=[o]}i(r,"add")}i(JF,"gfm")});var Ps=b((Wpe,sP)=>{"use strict";sP.exports=aP;function aP(e){return e&&(e.value||e.alt||e.title||"children"in e&&oP(e.children)||"length"in e&&oP(e))||""}i(aP,"toString");function oP(e){for(var t=[],r=-1;++r<e.length;)t[r]=aP(e[r]);return t.join("")}i(oP,"all")});var Ss=b((Gpe,uP)=>{"use strict";function XF(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(XF,"normalizeIdentifier");uP.exports=XF});var cP=b((Jpe,lP)=>{"use strict";var YF=xo();function QF(e,t){var r=parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":YF(r)}i(QF,"safeFromInt");lP.exports=QF});var pP=b(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var eB=tt(),tB=ut(),rB=nB;function nB(e){var t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),tB(e,t,"linePrefix")}function o(u){return e.enter("paragraph"),a(u)}function a(u){var l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return eB(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}i(nB,"initializeContent");ep.tokenize=rB});var Po=b((ede,dP)=>{"use strict";var iB=tt(),oB=ut(),aB={tokenize:sB,partial:!0};function sB(e,t,r){return oB(e,n,"linePrefix");function n(o){return o===null||iB(o)?t(o):r(o)}}i(sB,"tokenizePartialBlankLine");dP.exports=aB});var fP=b(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var uB=tt(),mP=ut(),lB=Po(),cB=dB,tp={tokenize:mB},pB={tokenize:fB};function dB(e){var t=this,r=[],n=0,o={tokenize:y,partial:!0},a,s,u;return l;function l(w){return n<r.length?(t.containerState=r[n][1],e.attempt(r[n][0].continuation,p,c)(w)):c(w)}function p(w){return n++,l(w)}function c(w){return a&&a.flowContinue?f(w):(t.interrupt=s&&s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},e.attempt(tp,m,f)(w))}function m(w){return r.push([t.currentConstruct,t.containerState]),t.containerState=void 0,c(w)}function f(w){if(w===null){v(0,!0),e.consume(w);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:s}),d(w)}function d(w){return w===null?(_(e.exit("chunkFlow")),f(w)):uB(w)?(e.consume(w),_(e.exit("chunkFlow")),e.check(o,h)):(e.consume(w),d)}function h(w){return v(a.continued,a&&a.flowEnd),n=0,l(w)}function _(w){u&&(u.next=w),u=w,s.lazy=a&&a.lazy,s.defineSkip(w.start),s.write(t.sliceStream(w))}function v(w,S){var R=r.length;for(s&&S&&(s.write([null]),u=s=void 0);R-- >w;)t.containerState=r[R][1],r[R][0].exit.call(t,e);r.length=w}function y(w,S){var R=0;return a={},F;function F(N){return R<r.length?(t.containerState=r[R][1],w.attempt(r[R][0].continuation,U,Z)(N)):s.currentConstruct&&s.currentConstruct.concrete?(a.flowContinue=!0,G(N)):(t.interrupt=s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},w.attempt(tp,W,G)(N))}i(F,"inspectStart");function U(N){return R++,t.containerState._closeFlow?W(N):F(N)}i(U,"inspectContinue");function Z(N){return s.currentConstruct&&s.currentConstruct.lazy?(t.containerState={},w.attempt(tp,W,w.attempt(pB,W,w.check(lB,W,q)))(N)):W(N)}i(Z,"inspectLess");function q(N){return R=r.length,a.lazy=!0,a.flowContinue=!0,G(N)}i(q,"inspectLazy");function W(N){return a.flowEnd=!0,G(N)}i(W,"inspectFlowEnd");function G(N){return a.continued=R,t.interrupt=t.containerState=void 0,S(N)}i(G,"inspectDone")}}i(dB,"initializeDocument");function mB(e,t,r){return mP(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(mB,"tokenizeContainer");function fB(e,t,r){return mP(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(fB,"tokenizeLazyFlow");rp.tokenize=cB});var np=b((ide,gP)=>{"use strict";var hB=si(),hP=mr(),gB=tn();function yB(e){for(var t={},r=-1,n,o,a,s,u,l,p;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1].isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(hB(t,vB(e,r)),r=t[r],p=!0);else if(n[1]._container||n[1]._movePreviousLineEndings){for(a=r,o=void 0;a--&&(s=e[a],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);o&&(n[1].end=gB(e[o][1].start),u=e.slice(o,r),u.unshift(n),hP(e,o,r-o+1,u))}}return!p}i(yB,"subtokenize");function vB(e,t){for(var r=e[t][1],n=e[t][2],o=t-1,a=[],s=r._tokenizer||n.parser[r.contentType](r.start),u=s.events,l=[],p={},c,m,f,d,h,_;r;){for(;e[++o][1]!==r;);a.push(o),r._tokenizer||(c=n.sliceStream(r),r.next||c.push(null),m&&s.defineSkip(r.start),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),m=r,r=r.next}for(r=m,f=u.length;f--;)u[f][0]==="enter"?d=!0:d&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(v(u.slice(f+1,h)),r._tokenizer=r.next=void 0,r=r.previous,h=f+1);for(s.events=r._tokenizer=r.next=void 0,v(u.slice(0,h)),f=-1,_=0;++f<l.length;)p[_+l[f][0]]=_+l[f][1],_+=l[f][1]-l[f][0]-1;return p;function v(y){var w=a.pop();l.unshift([w,w+y.length-1]),hP(e,w,2,y)}}i(vB,"subcontent");gP.exports=yB});var bP=b((ade,vP)=>{"use strict";var yP=tt(),bB=ui(),xB=np(),_B=ut(),kB={tokenize:SB,resolve:PB,interruptible:!0,lazy:!0},wB={tokenize:TB,partial:!0};function PB(e){return xB(e),e}i(PB,"resolveContent");function SB(e,t){var r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(u)}function o(u){return u===null?a(u):yP(u)?e.check(wB,s,a)(u):(e.consume(u),o)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),o}}i(SB,"tokenizeContent");function TB(e,t,r){var n=this;return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_B(e,a,"linePrefix")}function a(s){return s===null||yP(s)?r(s):n.parser.constructs.disable.null.indexOf("codeIndented")>-1||bB(n.events,"linePrefix")<4?e.interrupt(n.parser.constructs.flow,r,t)(s):t(s)}}i(TB,"tokenizeContinuation");vP.exports=kB});var xP=b(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var AB=bP(),EB=ut(),IB=Po(),CB=OB;function OB(e){var t=this,r=e.attempt(IB,n,e.attempt(this.parser.constructs.flowInitial,o,EB(e,e.attempt(this.parser.constructs.flow,o,e.attempt(AB,o)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}i(OB,"initializeFlow");ip.tokenize=CB});var op=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var RB=si(),_P=tn(),zB=kP("text"),DB=kP("string"),$B={resolveAll:wP()};function kP(e){return{tokenize:t,resolveAll:wP(e==="text"?NB:void 0)};function t(r){var n=this,o=this.parser.constructs[e],a=r.attempt(o,s,u);return s;function s(c){return p(c)?a(c):u(c)}function u(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){var m=o[c],f=-1;if(c===null)return!0;if(m){for(;++f<m.length;)if(!m[f].previous||m[f].previous.call(n,n.previous))return!0}}}}i(kP,"initializeFactory");function wP(e){return t;function t(r,n){for(var o=-1,a;++o<=r.length;)a===void 0?r[o]&&r[o][1].type==="data"&&(a=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==a+2&&(r[a][1].end=r[o-1][1].end,r.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(r,n):r}}i(wP,"createResolver");function NB(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){for(o=e[r-1][1],n=t.sliceStream(o),s=n.length,u=-1,l=0,p=void 0;s--;)if(a=n[s],typeof a=="string"){for(u=a.length;a.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(a===-2)p=!0,l++;else if(a!==-1){s++;break}l&&(c={type:r===e.length||p||l<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-l,offset:o.end.offset-l,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:_P(o.end)},o.end=_P(c.start),o.start.offset===o.end.offset?RB(o,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)),r++}return e}i(NB,"resolveAllLineSuffixes");So.resolver=$B;So.string=DB;So.text=zB});var Ts=b((dde,PP)=>{"use strict";var UB=mr();function MB(e,t){return e.length?(UB(e,e.length,0,t),e):t}i(MB,"chunkedPush");PP.exports=MB});var TP=b((fde,SP)=>{"use strict";var LB=xo();function qB(e){for(var t=-1,r=[],n,o,a;++t<e.length;){if(n=e[t],typeof n=="string")o=n;else if(n===-5)o="\r";else if(n===-4)o=`
40
40
  `;else if(n===-3)o=`\r
41
- `;else if(n===-2)o=" ";else if(n===-1){if(a)continue;o=" "}else o=EB(n);a=n===-2,r.push(o)}return r.join("")}i(IB,"serializeChunks");gP.exports=IB});var bP=b((jpe,vP)=>{"use strict";function CB(e,t){var r=t.start._index,n=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex,s;return r===o?s=[e[r].slice(n,a)]:(s=e.slice(r,o),n>-1&&(s[0]=s[0].slice(n)),a>0&&s.push(e[o].slice(0,a))),s}i(CB,"sliceChunks");vP.exports=CB});var kP=b((Hpe,_P)=>{"use strict";var OB=ai(),RB=tt(),zB=Ss(),$B=mr(),np=cs(),DB=_o(),NB=yP(),xP=en(),UB=bP();function MB(e,t,r){var n=r?xP(r):{line:1,column:1,offset:0},o={},a=[],s=[],u=[],l={consume:w,enter:S,exit:O,attempt:V(F),check:V(M),interrupt:V(M,{interrupt:!0}),lazy:V(M,{lazy:!0})},p={previous:null,events:[],parser:e,sliceStream:d,sliceSerialize:f,now:h,defineSkip:_,write:m},c=t.tokenize.call(p,l);return t.resolveAll&&a.push(t),n._index=0,n._bufferIndex=-1,p;function m(N){return s=zB(s,N),v(),s[s.length-1]!==null?[]:(q(t,0),p.events=DB(a,p.events,p),p.events)}i(m,"write");function f(N){return NB(d(N))}i(f,"sliceSerialize");function d(N){return UB(s,N)}i(d,"sliceStream");function h(){return xP(n)}i(h,"now");function _(N){o[N.line]=N.column,Z()}i(_,"skip");function v(){for(var N,j;n._index<s.length;)if(j=s[n._index],typeof j=="string")for(N=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===N&&n._bufferIndex<j.length;)y(j.charCodeAt(n._bufferIndex));else y(j)}i(v,"main");function y(N){c=c(N)}i(y,"go");function w(N){RB(N)?(n.line++,n.column=1,n.offset+=N===-3?2:1,Z()):N!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=N}i(w,"consume");function S(N,j){var pe=j||{};return pe.type=N,pe.start=h(),p.events.push(["enter",pe,p]),u.push(pe),pe}i(S,"enter");function O(N){var j=u.pop();return j.end=h(),p.events.push(["exit",j,p]),j}i(O,"exit");function F(N,j){q(N,j.from)}i(F,"onsuccessfulconstruct");function M(N,j){j.restore()}i(M,"onsuccessfulcheck");function V(N,j){return pe;function pe(ee,Fe,Be){var A,_e,Pe,Se;return ee.tokenize||"length"in ee?ft(np(ee)):g;function g(G){return G in ee||null in ee?ft(ee.null?np(ee[G]).concat(np(ee.null)):ee[G])(G):Be(G)}function ft(G){return A=G,_e=0,yt(G[_e])}function yt(G){return ht;function ht(Xt){return Se=J(),Pe=G,G.partial||(p.currentConstruct=G),G.name&&p.parser.constructs.disable.null.indexOf(G.name)>-1?_r():G.tokenize.call(j?OB({},p,j):p,l,Tt,_r)(Xt)}}function Tt(G){return N(Pe,Se),Fe}function _r(G){return Se.restore(),++_e<A.length?yt(A[_e]):Be}}}i(V,"constructFactory");function q(N,j){N.resolveAll&&a.indexOf(N)<0&&a.push(N),N.resolve&&$B(p.events,j,p.events.length-j,N.resolve(p.events.slice(j),p)),N.resolveTo&&(p.events=N.resolveTo(p.events,p))}i(q,"addResult");function J(){var N=h(),j=p.previous,pe=p.currentConstruct,ee=p.events.length,Fe=Array.from(u);return{restore:Be,from:ee};function Be(){n=N,p.previous=j,p.currentConstruct=pe,p.events.length=ee,u=Fe,Z()}}i(J,"store");function Z(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(Z,"accountForPotentialSkip")}i(MB,"createTokenizer");_P.exports=MB});var PP=b((Wpe,wP)=>{"use strict";function LB(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}i(LB,"movePoint");wP.exports=LB});var EP=b((Kpe,AP)=>{"use strict";var So=Ss(),qB=mr(),SP=Rc(),TP=PP(),FB=_o(),vr=en(),BB={name:"attention",tokenize:VB,resolveAll:jB};function jB(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,s={type:l>1?"strongSequence":"emphasisSequence",start:TP(vr(e[n][1].end),-l),end:vr(e[n][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:vr(e[r][1].start),end:TP(vr(e[r][1].start),l)},a={type:l>1?"strongText":"emphasisText",start:vr(e[n][1].end),end:vr(e[r][1].start)},o={type:l>1?"strong":"emphasis",start:vr(s.start),end:vr(u.end)},e[n][1].end=vr(s.start),e[r][1].start=vr(u.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=So(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=So(p,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),p=So(p,FB(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),p=So(p,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=So(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,qB(e,n-1,r-n+3,p),r=n+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}i(jB,"resolveAllAttention");function VB(e,t){var r=SP(this.previous),n;return o;function o(s){return e.enter("attentionSequence"),n=s,a(s)}function a(s){var u,l,p,c;return s===n?(e.consume(s),a):(u=e.exit("attentionSequence"),l=SP(s),p=!l||l===2&&r,c=!r||r===2&&l,u._open=n===42?p:p&&(r||!c),u._close=n===42?c:c&&(l||!p),t(s))}}i(VB,"tokenizeAttention");AP.exports=BB});var CP=b((Xpe,IP)=>{"use strict";var HB=$r(),ZB=HB(/[#-'*+\--9=?A-Z^-~]/);IP.exports=ZB});var zP=b((Ype,RP)=>{"use strict";var WB=xo(),Ts=ii(),OP=CP(),GB=ps(),KB={name:"autolink",tokenize:JB};function JB(e,t,r){var n=1;return o;function o(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return WB(h)?(e.consume(h),s):OP(h)?p(h):r(h)}function s(h){return h===43||h===45||h===46||Ts(h)?u(h):p(h)}function u(h){return h===58?(e.consume(h),l):(h===43||h===45||h===46||Ts(h))&&n++<32?(e.consume(h),u):p(h)}function l(h){return h===62?(e.exit("autolinkProtocol"),d(h)):h===32||h===60||GB(h)?r(h):(e.consume(h),l)}function p(h){return h===64?(e.consume(h),n=0,c):OP(h)?(e.consume(h),p):r(h)}function c(h){return Ts(h)?m(h):r(h)}function m(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",d(h)):f(h)}function f(h){return(h===45||Ts(h))&&n++<63?(e.consume(h),h===45?f:m):r(h)}function d(h){return e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t}}i(JB,"tokenizeAutolink");RP.exports=KB});var NP=b((ede,DP)=>{"use strict";var XB=gr(),YB=ut(),$P={name:"blockQuote",tokenize:QB,continuation:{tokenize:ej},exit:tj};function QB(e,t,r){var n=this;return o;function o(s){return s===62?(n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a):r(s)}function a(s){return XB(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}i(QB,"tokenizeBlockQuoteStart");function ej(e,t,r){return YB(e,e.attempt($P,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(ej,"tokenizeBlockQuoteContinuation");function tj(e){e.exit("blockQuote")}i(tj,"exit");DP.exports=$P});var MP=b((rde,UP)=>{"use strict";var rj=$r(),nj=rj(/[!-/:-@[-`{-~]/);UP.exports=nj});var qP=b((nde,LP)=>{"use strict";var ij=MP(),oj={name:"characterEscape",tokenize:aj};function aj(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return ij(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}i(aj,"tokenizeCharacterEscape");LP.exports=oj});var FP=b((ode,sj)=>{sj.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
42
- `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var As=b((ade,jP)=>{"use strict";var BP=FP();jP.exports=lj;var uj={}.hasOwnProperty;function lj(e){return uj.call(BP,e)?BP[e]:!1}i(lj,"decodeEntity")});var ip=b((ude,VP)=>{"use strict";var cj=$r(),pj=cj(/\d/);VP.exports=pj});var ZP=b((lde,HP)=>{"use strict";var dj=$r(),mj=dj(/[\dA-Fa-f]/);HP.exports=mj});var KP=b((cde,GP)=>{"use strict";var fj=As(),WP=ii(),hj=ip(),gj=ZP();function yj(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}i(yj,"_interopDefaultLegacy");var vj=yj(fj),bj={name:"characterReference",tokenize:xj};function xj(e,t,r){var n=this,o=0,a,s;return u;function u(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),l}function l(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,s=WP,c(m))}function p(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=gj,c):(e.enter("characterReferenceValue"),a=7,s=hj,c(m))}function c(m){var f;return m===59&&o?(f=e.exit("characterReferenceValue"),s===WP&&!vj.default(n.sliceSerialize(f))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):s(m)&&o++<a?(e.consume(m),c):r(m)}}i(xj,"tokenizeCharacterReference");GP.exports=bj});var XP=b((dde,JP)=>{"use strict";var li=tt(),_j=hr(),kj=si(),To=ut(),wj={name:"codeFenced",tokenize:Pj,concrete:!0};function Pj(e,t,r){var n=this,o={tokenize:w,partial:!0},a=kj(this.events,"linePrefix"),s=0,u;return l;function l(S){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=S,p(S)}function p(S){return S===u?(e.consume(S),s++,p):(e.exit("codeFencedFenceSequence"),s<3?r(S):To(e,c,"whitespace")(S))}function c(S){return S===null||li(S)?h(S):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||_j(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),To(e,f,"whitespace")(S)):S===96&&S===u?r(S):(e.consume(S),m)}function f(S){return S===null||li(S)?h(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||li(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(S)):S===96&&S===u?r(S):(e.consume(S),d)}function h(S){return e.exit("codeFencedFence"),n.interrupt?t(S):_(S)}function _(S){return S===null?y(S):li(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),e.attempt(o,y,a?To(e,_,"linePrefix",a+1):_)):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||li(S)?(e.exit("codeFlowValue"),_(S)):(e.consume(S),v)}function y(S){return e.exit("codeFenced"),t(S)}function w(S,O,F){var M=0;return To(S,V,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function V(Z){return S.enter("codeFencedFence"),S.enter("codeFencedFenceSequence"),q(Z)}function q(Z){return Z===u?(S.consume(Z),M++,q):M<s?F(Z):(S.exit("codeFencedFenceSequence"),To(S,J,"whitespace")(Z))}function J(Z){return Z===null||li(Z)?(S.exit("codeFencedFence"),O(Z)):F(Z)}}}i(Pj,"tokenizeCodeFenced");JP.exports=wj});var rS=b((fde,tS)=>{"use strict";var op=tt(),YP=mr(),Sj=si(),QP=ut(),Tj={name:"codeIndented",tokenize:Ej,resolve:Aj},eS={tokenize:Ij,partial:!0};function Aj(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return YP(e,0,0,[["enter",r,t]]),YP(e,e.length,0,[["exit",r,t]]),e}i(Aj,"resolveCodeIndented");function Ej(e,t,r){return e.attempt(eS,n,r);function n(a){return a===null?t(a):op(a)?e.attempt(eS,n,t)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||op(a)?(e.exit("codeFlowValue"),n(a)):(e.consume(a),o)}}i(Ej,"tokenizeCodeIndented");function Ij(e,t,r){var n=this;return QP(e,o,"linePrefix",5);function o(a){return op(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),QP(e,o,"linePrefix",5)):Sj(n.events,"linePrefix")<4?r(a):t(a)}}i(Ij,"tokenizeIndentedContent");tS.exports=Tj});var oS=b((gde,iS)=>{"use strict";var nS=tt(),Cj={name:"codeText",tokenize:zj,resolve:Oj,previous:Rj};function Oj(e){var t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[t][1].type=e[r][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}i(Oj,"resolveCodeText");function Rj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(Rj,"previous");function zj(e,t,r){var n=0,o,a;return s;function s(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),n++,u):(e.exit("codeTextSequence"),l(m))}function l(m){return m===null?r(m):m===96?(a=e.enter("codeTextSequence"),o=0,c(m)):m===32?(e.enter("space"),e.consume(m),e.exit("space"),l):nS(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),l):(e.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||nS(m)?(e.exit("codeTextData"),l(m)):(e.consume(m),p)}function c(m){return m===96?(e.consume(m),o++,c):o===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",p(m))}}i(zj,"tokenizeCodeText");iS.exports=Cj});var ap=b((vde,sS)=>{"use strict";var aS=ps(),$j=hr(),Dj=tt();function Nj(e,t,r,n,o,a,s,u,l){var p=l||1/0,c=0;return m;function m(y){return y===60?(e.enter(n),e.enter(o),e.enter(a),e.consume(y),e.exit(a),f):aS(y)||y===41?r(y):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(o),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(u),f(y)):y===null||y===60||Dj(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function _(y){return y===40?++c>p?r(y):(e.consume(y),_):y===41?c--?(e.consume(y),_):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(y)):y===null||$j(y)?c?r(y):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(y)):aS(y)?r(y):(e.consume(y),y===92?v:_)}function v(y){return y===40||y===41||y===92?(e.consume(y),_):_(y)}}i(Nj,"destinationFactory");sS.exports=Nj});var sp=b((xde,lS)=>{"use strict";var uS=tt(),Uj=gr();function Mj(e,t,r,n,o,a){var s=this,u=0,l;return p;function p(d){return e.enter(n),e.enter(o),e.consume(d),e.exit(o),e.enter(a),c}function c(d){return d===null||d===91||d===93&&!l||d===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?r(d):d===93?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(n),t):uS(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),m(d))}function m(d){return d===null||d===91||d===93||uS(d)||u++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l=l||!Uj(d),d===92?f:m)}function f(d){return d===91||d===92||d===93?(e.consume(d),u++,m):m(d)}}i(Mj,"labelFactory");lS.exports=Mj});var up=b((kde,cS)=>{"use strict";var Lj=tt(),qj=gr(),Fj=ut();function Bj(e,t){var r;return n;function n(o){return Lj(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):qj(o)?Fj(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}i(Bj,"whitespaceFactory");cS.exports=Bj});var lp=b((Pde,dS)=>{"use strict";var pS=tt(),jj=ut();function Vj(e,t,r,n,o,a){var s;return u;function u(f){return e.enter(n),e.enter(o),e.consume(f),e.exit(o),s=f===40?41:f,l}function l(f){return f===s?(e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):(e.enter(a),p(f))}function p(f){return f===s?(e.exit(a),l(s)):f===null?r(f):pS(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),jj(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||pS(f)?(e.exit("chunkString"),p(f)):(e.consume(f),f===92?m:c)}function m(f){return f===s||f===92?(e.consume(f),c):c(f)}}i(Vj,"titleFactory");dS.exports=Vj});var gS=b((Tde,hS)=>{"use strict";var mS=tt(),Hj=hr(),Zj=Ps(),Wj=ap(),Gj=sp(),cp=ut(),fS=up(),Kj=lp(),Jj={name:"definition",tokenize:Yj},Xj={tokenize:Qj,partial:!0};function Yj(e,t,r){var n=this,o;return a;function a(l){return e.enter("definition"),Gj.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function s(l){return o=Zj(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),fS(e,Wj(e,e.attempt(Xj,cp(e,u,"whitespace"),cp(e,u,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(l)}function u(l){return l===null||mS(l)?(e.exit("definition"),n.parser.defined.indexOf(o)<0&&n.parser.defined.push(o),t(l)):r(l)}}i(Yj,"tokenizeDefinition");function Qj(e,t,r){return n;function n(s){return Hj(s)?fS(e,o)(s):r(s)}function o(s){return s===34||s===39||s===40?Kj(e,cp(e,a,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s):r(s)}function a(s){return s===null||mS(s)?t(s):r(s)}}i(Qj,"tokenizeTitle");hS.exports=Jj});var vS=b((Ede,yS)=>{"use strict";var e4=tt(),t4={name:"hardBreakEscape",tokenize:r4};function r4(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),o}function o(a){return e4(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):r(a)}}i(r4,"tokenizeHardBreakEscape");yS.exports=t4});var _S=b((Cde,xS)=>{"use strict";var n4=tt(),bS=hr(),i4=gr(),o4=mr(),a4=ut(),s4={name:"headingAtx",tokenize:l4,resolve:u4};function u4(e,t){var r=e.length-2,n=3,o,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},o4(e,n,r-n+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}i(u4,"resolveHeadingAtx");function l4(e,t,r){var n=this,o=0;return a;function a(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&o++<6?(e.consume(c),s):c===null||bS(c)?(e.exit("atxHeadingSequence"),n.interrupt?t(c):u(c)):r(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||n4(c)?(e.exit("atxHeading"),t(c)):i4(c)?a4(e,u,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),u(c))}function p(c){return c===null||c===35||bS(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),p)}}i(l4,"tokenizeHeadingAtx");xS.exports=s4});var wS=b((Rde,kS)=>{"use strict";var c4=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];kS.exports=c4});var SS=b((zde,PS)=>{"use strict";var p4=["pre","script","style","textarea"];PS.exports=p4});var CS=b(($de,IS)=>{"use strict";var Ao=xo(),TS=ii(),ci=tt(),AS=hr(),pi=gr(),Es=bo(),d4=wS(),ES=SS(),m4=wo(),f4={name:"htmlFlow",tokenize:y4,resolveTo:g4,concrete:!0},h4={tokenize:v4,partial:!0};function g4(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}i(g4,"resolveToHtmlFlow");function y4(e,t,r){var n=this,o,a,s,u,l;return p;function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),m):g===47?(e.consume(g),h):g===63?(e.consume(g),o=3,n.interrupt?t:_e):Ao(g)?(e.consume(g),s=Es(g),a=!0,_):r(g)}function m(g){return g===45?(e.consume(g),o=2,f):g===91?(e.consume(g),o=5,s="CDATA[",u=0,d):Ao(g)?(e.consume(g),o=4,n.interrupt?t:_e):r(g)}function f(g){return g===45?(e.consume(g),n.interrupt?t:_e):r(g)}function d(g){return g===s.charCodeAt(u++)?(e.consume(g),u===s.length?n.interrupt?t:N:d):r(g)}function h(g){return Ao(g)?(e.consume(g),s=Es(g),_):r(g)}function _(g){return g===null||g===47||g===62||AS(g)?g!==47&&a&&ES.indexOf(s.toLowerCase())>-1?(o=1,n.interrupt?t(g):N(g)):d4.indexOf(s.toLowerCase())>-1?(o=6,g===47?(e.consume(g),v):n.interrupt?t(g):N(g)):(o=7,n.interrupt?r(g):a?w(g):y(g)):g===45||TS(g)?(e.consume(g),s+=Es(g),_):r(g)}function v(g){return g===62?(e.consume(g),n.interrupt?t:N):r(g)}function y(g){return pi(g)?(e.consume(g),y):J(g)}function w(g){return g===47?(e.consume(g),J):g===58||g===95||Ao(g)?(e.consume(g),S):pi(g)?(e.consume(g),w):J(g)}function S(g){return g===45||g===46||g===58||g===95||TS(g)?(e.consume(g),S):O(g)}function O(g){return g===61?(e.consume(g),F):pi(g)?(e.consume(g),O):w(g)}function F(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),l=g,M):pi(g)?(e.consume(g),F):(l=void 0,V(g))}function M(g){return g===l?(e.consume(g),q):g===null||ci(g)?r(g):(e.consume(g),M)}function V(g){return g===null||g===34||g===39||g===60||g===61||g===62||g===96||AS(g)?O(g):(e.consume(g),V)}function q(g){return g===47||g===62||pi(g)?w(g):r(g)}function J(g){return g===62?(e.consume(g),Z):r(g)}function Z(g){return pi(g)?(e.consume(g),Z):g===null||ci(g)?N(g):r(g)}function N(g){return g===45&&o===2?(e.consume(g),ee):g===60&&o===1?(e.consume(g),Fe):g===62&&o===4?(e.consume(g),Pe):g===63&&o===3?(e.consume(g),_e):g===93&&o===5?(e.consume(g),A):ci(g)&&(o===6||o===7)?e.check(h4,Pe,j)(g):g===null||ci(g)?j(g):(e.consume(g),N)}function j(g){return e.exit("htmlFlowData"),pe(g)}function pe(g){return g===null?Se(g):ci(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),pe):(e.enter("htmlFlowData"),N(g))}function ee(g){return g===45?(e.consume(g),_e):N(g)}function Fe(g){return g===47?(e.consume(g),s="",Be):N(g)}function Be(g){return g===62&&ES.indexOf(s.toLowerCase())>-1?(e.consume(g),Pe):Ao(g)&&s.length<8?(e.consume(g),s+=Es(g),Be):N(g)}function A(g){return g===93?(e.consume(g),_e):N(g)}function _e(g){return g===62?(e.consume(g),Pe):N(g)}function Pe(g){return g===null||ci(g)?(e.exit("htmlFlowData"),Se(g)):(e.consume(g),Pe)}function Se(g){return e.exit("htmlFlow"),t(g)}}i(y4,"tokenizeHtmlFlow");function v4(e,t,r){return n;function n(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(m4,t,r)}}i(v4,"tokenizeNextBlank");IS.exports=f4});var RS=b((Nde,OS)=>{"use strict";var Is=xo(),pp=ii(),Ur=tt(),dp=hr(),Cs=gr(),b4=ut(),x4={name:"htmlText",tokenize:_4};function _4(e,t,r){var n=this,o,a,s,u;return l;function l(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),p}function p(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),V):g===63?(e.consume(g),F):Is(g)?(e.consume(g),Z):r(g)}function c(g){return g===45?(e.consume(g),m):g===91?(e.consume(g),a="CDATA[",s=0,v):Is(g)?(e.consume(g),O):r(g)}function m(g){return g===45?(e.consume(g),f):r(g)}function f(g){return g===null||g===62?r(g):g===45?(e.consume(g),d):h(g)}function d(g){return g===null||g===62?r(g):h(g)}function h(g){return g===null?r(g):g===45?(e.consume(g),_):Ur(g)?(u=h,_e(g)):(e.consume(g),h)}function _(g){return g===45?(e.consume(g),Se):h(g)}function v(g){return g===a.charCodeAt(s++)?(e.consume(g),s===a.length?y:v):r(g)}function y(g){return g===null?r(g):g===93?(e.consume(g),w):Ur(g)?(u=y,_e(g)):(e.consume(g),y)}function w(g){return g===93?(e.consume(g),S):y(g)}function S(g){return g===62?Se(g):g===93?(e.consume(g),S):y(g)}function O(g){return g===null||g===62?Se(g):Ur(g)?(u=O,_e(g)):(e.consume(g),O)}function F(g){return g===null?r(g):g===63?(e.consume(g),M):Ur(g)?(u=F,_e(g)):(e.consume(g),F)}function M(g){return g===62?Se(g):F(g)}function V(g){return Is(g)?(e.consume(g),q):r(g)}function q(g){return g===45||pp(g)?(e.consume(g),q):J(g)}function J(g){return Ur(g)?(u=J,_e(g)):Cs(g)?(e.consume(g),J):Se(g)}function Z(g){return g===45||pp(g)?(e.consume(g),Z):g===47||g===62||dp(g)?N(g):r(g)}function N(g){return g===47?(e.consume(g),Se):g===58||g===95||Is(g)?(e.consume(g),j):Ur(g)?(u=N,_e(g)):Cs(g)?(e.consume(g),N):Se(g)}function j(g){return g===45||g===46||g===58||g===95||pp(g)?(e.consume(g),j):pe(g)}function pe(g){return g===61?(e.consume(g),ee):Ur(g)?(u=pe,_e(g)):Cs(g)?(e.consume(g),pe):N(g)}function ee(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),o=g,Fe):Ur(g)?(u=ee,_e(g)):Cs(g)?(e.consume(g),ee):(e.consume(g),o=void 0,A)}function Fe(g){return g===o?(e.consume(g),Be):g===null?r(g):Ur(g)?(u=Fe,_e(g)):(e.consume(g),Fe)}function Be(g){return g===62||g===47||dp(g)?N(g):r(g)}function A(g){return g===null||g===34||g===39||g===60||g===61||g===96?r(g):g===62||dp(g)?N(g):(e.consume(g),A)}function _e(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),b4(e,Pe,"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function Pe(g){return e.enter("htmlTextData"),u(g)}function Se(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):r(g)}}i(_4,"tokenizeHtmlText");OS.exports=x4});var Os=b((Mde,$S)=>{"use strict";var k4=hr(),di=Ss(),w4=mr(),zS=Ps(),P4=_o(),mi=en(),S4=ap(),T4=sp(),A4=lp(),mp=up(),E4={name:"labelEnd",tokenize:$4,resolveTo:z4,resolveAll:R4},I4={tokenize:D4},C4={tokenize:N4},O4={tokenize:U4};function R4(e){for(var t=-1,r;++t<e.length;)r=e[t][1],!r._used&&(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++);return e}i(R4,"resolveAllLabelEnd");function z4(e,t){for(var r=e.length,n=0,o,a,s,u,l,p,c;r--;)if(u=e[r][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[r][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(p){if(e[r][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=r,u.type!=="labelLink")){n=2;break}}else u.type==="labelEnd"&&(p=r);return o={type:e[l][1].type==="labelLink"?"link":"image",start:mi(e[l][1].start),end:mi(e[e.length-1][1].end)},a={type:"label",start:mi(e[l][1].start),end:mi(e[p][1].end)},s={type:"labelText",start:mi(e[l+n+2][1].end),end:mi(e[p-2][1].start)},c=[["enter",o,t],["enter",a,t]],c=di(c,e.slice(l+1,l+n+3)),c=di(c,[["enter",s,t]]),c=di(c,P4(t.parser.constructs.insideSpan.null,e.slice(l+n+4,p-3),t)),c=di(c,[["exit",s,t],e[p-2],e[p-1],["exit",a,t]]),c=di(c,e.slice(p+1)),c=di(c,[["exit",o,t]]),w4(e,l,e.length,c),e}i(z4,"resolveToLabelEnd");function $4(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){a=n.events[o][1];break}return u;function u(c){return a?a._inactive?p(c):(s=n.parser.defined.indexOf(zS(n.sliceSerialize({start:a.end,end:n.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),l):r(c)}function l(c){return c===40?e.attempt(I4,t,s?t:p)(c):c===91?e.attempt(C4,t,s?e.attempt(O4,t,p):p)(c):s?t(c):p(c)}function p(c){return a._balanced=!0,r(c)}}i($4,"tokenizeLabelEnd");function D4(e,t,r){return n;function n(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),mp(e,o)}function o(l){return l===41?u(l):S4(e,a,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(l)}function a(l){return k4(l)?mp(e,s)(l):u(l)}function s(l){return l===34||l===39||l===40?A4(e,mp(e,u),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):u(l)}function u(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):r(l)}}i(D4,"tokenizeResource");function N4(e,t,r){var n=this;return o;function o(s){return T4.call(n,e,a,r,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.indexOf(zS(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))<0?r(s):t(s)}}i(N4,"tokenizeFullReference");function U4(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}i(U4,"tokenizeCollapsedReference");$S.exports=E4});var NS=b((qde,DS)=>{"use strict";var M4=Os(),L4={name:"labelStartImage",tokenize:q4,resolveAll:M4.resolveAll};function q4(e,t,r){var n=this;return o;function o(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}i(q4,"tokenizeLabelStartImage");DS.exports=L4});var MS=b((Bde,US)=>{"use strict";var F4=Os(),B4={name:"labelStartLink",tokenize:j4,resolveAll:F4.resolveAll};function j4(e,t,r){var n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}i(j4,"tokenizeLabelStartLink");US.exports=B4});var qS=b((Vde,LS)=>{"use strict";var V4=ut(),H4={name:"lineEnding",tokenize:Z4};function Z4(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),V4(e,t,"linePrefix")}}i(Z4,"tokenizeLineEnding");LS.exports=H4});var fp=b((Zde,FS)=>{"use strict";var W4=tt(),G4=gr(),K4=ut(),J4={name:"thematicBreak",tokenize:X4};function X4(e,t,r){var n=0,o;return a;function a(l){return e.enter("thematicBreak"),o=l,s(l)}function s(l){return l===o?(e.enter("thematicBreakSequence"),u(l)):G4(l)?K4(e,s,"whitespace")(l):n<3||l!==null&&!W4(l)?r(l):(e.exit("thematicBreak"),t(l))}function u(l){return l===o?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),s(l))}}i(X4,"tokenizeThematicBreak");FS.exports=J4});var ZS=b((Gde,HS)=>{"use strict";var BS=ip(),hp=gr(),gp=si(),Y4=Dc(),Rs=ut(),jS=wo(),Q4=fp(),VS={name:"list",tokenize:r6,continuation:{tokenize:n6},exit:o6},e6={tokenize:a6,partial:!0},t6={tokenize:i6,partial:!0};function r6(e,t,r){var n=this,o=gp(n.events,"linePrefix"),a=0;return s;function s(f){var d=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:BS(f)){if(n.containerState.type||(n.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Q4,r,l)(f):l(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return r(f)}function u(f){return BS(f)&&++a<10?(e.consume(f),u):(!n.interrupt||a<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):r(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(jS,n.interrupt?r:p,e.attempt(e6,m,c))}function p(f){return n.containerState.initialBlankLine=!0,o++,m(f)}function c(f){return hp(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):r(f)}function m(f){return n.containerState.size=o+Y4(n.sliceStream(e.exit("listItemPrefix"))),t(f)}}i(r6,"tokenizeListStart");function n6(e,t,r){var n=this;return n.containerState._closeFlow=void 0,e.check(jS,o,a);function o(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Rs(e,t,"listItemIndent",n.containerState.size+1)(u)}i(o,"onBlank");function a(u){return n.containerState.furtherBlankLines||!hp(u)?(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,e.attempt(t6,t,s)(u))}i(a,"notBlank");function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,Rs(e,e.attempt(VS,t,r),"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(u)}i(s,"notInCurrentItem")}i(n6,"tokenizeListContinuation");function i6(e,t,r){var n=this;return Rs(e,o,"listItemIndent",n.containerState.size+1);function o(a){return gp(n.events,"listItemIndent")===n.containerState.size?t(a):r(a)}}i(i6,"tokenizeIndent");function o6(e){e.exit(this.containerState.type)}i(o6,"tokenizeListEnd");function a6(e,t,r){var n=this;return Rs(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5);function o(a){return hp(a)||!gp(n.events,"listItemPrefixWhitespace")?r(a):t(a)}}i(a6,"tokenizeListItemPrefixWhitespace");HS.exports=VS});var GS=b((Jde,WS)=>{"use strict";var s6=tt(),yp=en(),u6=ut(),l6={name:"setextUnderline",tokenize:p6,resolveTo:c6};function c6(e,t){for(var r=e.length,n,o,a,s;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);return s={type:"setextHeading",start:yp(e[o][1].start),end:yp(e[e.length-1][1].end)},e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=yp(e[a][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}i(c6,"resolveToSetextUnderline");function p6(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if(n.events[o][1].type!=="lineEnding"&&n.events[o][1].type!=="linePrefix"&&n.events[o][1].type!=="content"){s=n.events[o][1].type==="paragraph";break}return u;function u(c){return!n.lazy&&(n.interrupt||s)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=c,l(c)):r(c)}function l(c){return c===a?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),u6(e,p,"lineSuffix")(c))}function p(c){return c===null||s6(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}i(p6,"tokenizeSetextUnderline");WS.exports=l6});var QS=b(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var d6=rp(),_p=EP(),m6=zP(),f6=NP(),XS=qP(),YS=KP(),KS=XP(),vp=rS(),h6=oS(),g6=gS(),y6=vS(),v6=_S(),b6=CS(),x6=RS(),_6=Os(),k6=NS(),w6=MS(),bp=qS(),Lt=ZS(),JS=GS(),xp=fp(),P6={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:f6},S6={91:g6},T6={"-2":vp,"-1":vp,32:vp},A6={35:v6,42:xp,45:[JS,xp],60:b6,61:JS,95:xp,96:KS,126:KS},E6={38:YS,92:XS},I6={"-5":bp,"-4":bp,"-3":bp,33:k6,38:YS,42:_p,60:[m6,x6],91:w6,92:[y6,XS],93:_6,95:_p,96:h6},C6={null:[_p,d6.resolver]},O6={null:[]};br.contentInitial=S6;br.disable=O6;br.document=P6;br.flow=A6;br.flowInitial=T6;br.insideSpan=C6;br.string=E6;br.text=I6});var rT=b((Qde,tT)=>{"use strict";var R6=rP(),z6=oP(),$6=pP(),eT=rp(),D6=Ec(),N6=kP(),U6=cs(),M6=QS();function L6(e){var t=e||{},r={defined:[],constructs:D6([M6].concat(U6(t.extensions))),content:n(R6),document:n(z6),flow:n($6),string:n(eT.string),text:n(eT.text)};return r;function n(o){return a;function a(s){return N6(r,o,s)}}}i(L6,"parse");tT.exports=L6});var oT=b((tme,iT)=>{"use strict";var nT=/[\0\t\n\r]/g;function q6(){var e=!0,t=1,r="",n;return o;function o(a,s,u){var l=[],p,c,m,f,d;for(a=r+a.toString(s),m=0,r="",e&&(a.charCodeAt(0)===65279&&m++,e=void 0);m<a.length;){if(nT.lastIndex=m,p=nT.exec(a),f=p?p.index:a.length,d=a.charCodeAt(f),!p){r=a.slice(m);break}if(d===10&&m===f&&n)l.push(-3),n=void 0;else if(n&&(l.push(-5),n=void 0),m<f&&(l.push(a.slice(m,f)),t+=f-m),d===0)l.push(65533),t++;else if(d===9)for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);else d===10?(l.push(-4),t=1):(n=!0,t=1);m=f+1}return u&&(n&&l.push(-5),r&&l.push(r),l.push(null)),l}}i(q6,"preprocess");iT.exports=q6});var sT=b((nme,aT)=>{"use strict";var F6=ep();function B6(e){for(;!F6(e););return e}i(B6,"postprocess");aT.exports=B6});var wp=b((ome,cT)=>{"use strict";var fi={}.hasOwnProperty;cT.exports=j6;function j6(e){return!e||typeof e!="object"?"":fi.call(e,"position")||fi.call(e,"type")?uT(e.position):fi.call(e,"start")||fi.call(e,"end")?uT(e):fi.call(e,"line")||fi.call(e,"column")?kp(e):""}i(j6,"stringify");function kp(e){return(!e||typeof e!="object")&&(e={}),lT(e.line)+":"+lT(e.column)}i(kp,"point");function uT(e){return(!e||typeof e!="object")&&(e={}),kp(e.start)+"-"+kp(e.end)}i(uT,"position");function lT(e){return e&&typeof e=="number"?e:1}i(lT,"index")});var mT=b((sme,dT)=>{"use strict";dT.exports=X6;var V6=ws(),H6=ai(),pT=Tc(),Pp=Ps(),Z6=tP(),W6=rT(),G6=oT(),K6=sT(),J6=As(),zs=wp();function X6(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Y6(r)(K6(W6(r).document().write(G6()(e,t,!0))))}i(X6,"fromMarkdown");function Y6(e){var t=e||{},r=Q6({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(De),autolinkProtocol:pe,autolinkEmail:pe,atxHeading:p(ae),blockQuote:p(nn),characterEscape:pe,characterReference:pe,codeFenced:p(sr),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:p(sr,c),codeText:p(kt,c),codeTextData:pe,data:pe,codeFlowValue:pe,definition:p(U),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:p(L),hardBreakEscape:p(ve),hardBreakTrailing:p(ve),htmlFlow:p(de,c),htmlFlowData:pe,htmlText:p(de,c),htmlTextData:pe,image:p(Ze),label:c,link:p(De),listItem:p(Lr),listItemValue:v,listOrdered:p(Le,_),listUnordered:p(Le),paragraph:p(on),reference:ht,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:p(ae),strong:p(nt),thematicBreak:p(eO)},exit:{atxHeading:f(),atxHeadingSequence:J,autolink:f(),autolinkEmail:At,autolinkProtocol:ar,blockQuote:f(),characterEscapeValue:ee,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:kr,codeFenced:f(O),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:w,codeFlowValue:ee,codeIndented:f(F),codeText:f(Pe),codeTextData:ee,data:ee,definition:f(),definitionDestinationString:q,definitionLabelString:M,definitionTitleString:V,emphasis:f(),hardBreakEscape:f(Be),hardBreakTrailing:f(Be),htmlFlow:f(A),htmlFlowData:ee,htmlText:f(_e),htmlTextData:ee,image:f(g),label:yt,labelText:ft,lineEnding:Fe,link:f(Se),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Xt,resourceDestinationString:Tt,resourceTitleString:_r,resource:G,setextHeading:f(j),setextHeadingLineSequence:N,setextHeadingText:Z,strong:f(),thematicBreak:f()}},t.mdastExtensions||[]),n={};return o;function o(R){for(var se={type:"root",children:[]},Ie=[se],Ne=[],qt=[],Ye=-1,Yt,an,Qt={stack:Ie,tokenStack:Ne,config:r,enter:m,exit:d,buffer:c,resume:h,setData:s,getData:u};++Ye<R.length;)(R[Ye][1].type==="listOrdered"||R[Ye][1].type==="listUnordered")&&(R[Ye][0]==="enter"?qt.push(Ye):(an=qt.pop(Ye),Ye=a(R,an,Ye)));for(Ye=-1;++Ye<R.length;)Yt=r[R[Ye][0]],pT.call(Yt,R[Ye][1].type)&&Yt[R[Ye][1].type].call(H6({sliceSerialize:R[Ye][2].sliceSerialize},Qt),R[Ye][1]);if(Ne.length)throw new Error("Cannot close document, a token (`"+Ne[Ne.length-1].type+"`, "+zs({start:Ne[Ne.length-1].start,end:Ne[Ne.length-1].end})+") is still open");for(se.position={start:l(R.length?R[0][1].start:{line:1,column:1,offset:0}),end:l(R.length?R[R.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<r.transforms.length;)se=r.transforms[Ye](se)||se;return se}function a(R,se,Ie){for(var Ne=se-1,qt=-1,Ye=!1,Yt,an,Qt,ur,We,gi,yi;++Ne<=Ie;)if(We=R[Ne],We[1].type==="listUnordered"||We[1].type==="listOrdered"||We[1].type==="blockQuote"?(We[0]==="enter"?qt++:qt--,yi=void 0):We[1].type==="lineEndingBlank"?We[0]==="enter"&&(Yt&&!yi&&!qt&&!gi&&(gi=Ne),yi=void 0):We[1].type==="linePrefix"||We[1].type==="listItemValue"||We[1].type==="listItemMarker"||We[1].type==="listItemPrefix"||We[1].type==="listItemPrefixWhitespace"||(yi=void 0),!qt&&We[0]==="enter"&&We[1].type==="listItemPrefix"||qt===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Yt){for(an=Ne,Qt=void 0;an--;)if(ur=R[an],ur[1].type==="lineEnding"||ur[1].type==="lineEndingBlank"){if(ur[0]==="exit")continue;Qt&&(R[Qt][1].type="lineEndingBlank",Ye=!0),ur[1].type="lineEnding",Qt=an}else if(!(ur[1].type==="linePrefix"||ur[1].type==="blockQuotePrefix"||ur[1].type==="blockQuotePrefixWhitespace"||ur[1].type==="blockQuoteMarker"||ur[1].type==="listItemIndent"))break;gi&&(!Qt||gi<Qt)&&(Yt._spread=!0),Yt.end=l(Qt?R[Qt][1].start:We[1].end),R.splice(Qt||Ne,0,["exit",Yt,We[2]]),Ne++,Ie++}We[1].type==="listItemPrefix"&&(Yt={type:"listItem",_spread:!1,start:l(We[1].start)},R.splice(Ne,0,["enter",Yt,We[2]]),Ne++,Ie++,gi=void 0,yi=!0)}return R[se][1]._spread=Ye,Ie}function s(R,se){n[R]=se}function u(R){return n[R]}function l(R){return{line:R.line,column:R.column,offset:R.offset}}function p(R,se){return Ie;function Ie(Ne){m.call(this,R(Ne),Ne),se&&se.call(this,Ne)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(R,se){return this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push(se),R.position={start:l(se.start)},R}function f(R){return se;function se(Ie){R&&R.call(this,Ie),d.call(this,Ie)}}function d(R){var se=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie){if(Ie.type!==R.type)throw new Error("Cannot close `"+R.type+"` ("+zs({start:R.start,end:R.end})+"): a different token (`"+Ie.type+"`, "+zs({start:Ie.start,end:Ie.end})+") is open")}else throw new Error("Cannot close `"+R.type+"` ("+zs({start:R.start,end:R.end})+"): it\u2019s not open");return se.position.end=l(R.end),se}function h(){return V6(this.stack.pop())}function _(){s("expectingFirstListItemValue",!0)}function v(R){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(R),10),s("expectingFirstListItemValue"))}function y(){var R=this.resume();this.stack[this.stack.length-1].lang=R}function w(){var R=this.resume();this.stack[this.stack.length-1].meta=R}function S(){u("flowCodeInside")||(this.buffer(),s("flowCodeInside",!0))}function O(){var R=this.resume();this.stack[this.stack.length-1].value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s("flowCodeInside")}function F(){var R=this.resume();this.stack[this.stack.length-1].value=R}function M(R){var se=this.resume();this.stack[this.stack.length-1].label=se,this.stack[this.stack.length-1].identifier=Pp(this.sliceSerialize(R)).toLowerCase()}function V(){var R=this.resume();this.stack[this.stack.length-1].title=R}function q(){var R=this.resume();this.stack[this.stack.length-1].url=R}function J(R){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(R).length)}function Z(){s("setextHeadingSlurpLineEnding",!0)}function N(R){this.stack[this.stack.length-1].depth=this.sliceSerialize(R).charCodeAt(0)===61?1:2}function j(){s("setextHeadingSlurpLineEnding")}function pe(R){var se=this.stack[this.stack.length-1].children,Ie=se[se.length-1];(!Ie||Ie.type!=="text")&&(Ie=zo(),Ie.position={start:l(R.start)},this.stack[this.stack.length-1].children.push(Ie)),this.stack.push(Ie)}function ee(R){var se=this.stack.pop();se.value+=this.sliceSerialize(R),se.position.end=l(R.end)}function Fe(R){var se=this.stack[this.stack.length-1];if(u("atHardBreak")){se.children[se.children.length-1].position.end=l(R.end),s("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&r.canContainEols.indexOf(se.type)>-1&&(pe.call(this,R),ee.call(this,R))}function Be(){s("atHardBreak",!0)}function A(){var R=this.resume();this.stack[this.stack.length-1].value=R}function _e(){var R=this.resume();this.stack[this.stack.length-1].value=R}function Pe(){var R=this.resume();this.stack[this.stack.length-1].value=R}function Se(){var R=this.stack[this.stack.length-1];u("inReference")?(R.type+="Reference",R.referenceType=u("referenceType")||"shortcut",delete R.url,delete R.title):(delete R.identifier,delete R.label,delete R.referenceType),s("referenceType")}function g(){var R=this.stack[this.stack.length-1];u("inReference")?(R.type+="Reference",R.referenceType=u("referenceType")||"shortcut",delete R.url,delete R.title):(delete R.identifier,delete R.label,delete R.referenceType),s("referenceType")}function ft(R){this.stack[this.stack.length-2].identifier=Pp(this.sliceSerialize(R)).toLowerCase()}function yt(){var R=this.stack[this.stack.length-1],se=this.resume();this.stack[this.stack.length-1].label=se,s("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=R.children:this.stack[this.stack.length-1].alt=se}function Tt(){var R=this.resume();this.stack[this.stack.length-1].url=R}function _r(){var R=this.resume();this.stack[this.stack.length-1].title=R}function G(){s("inReference")}function ht(){s("referenceType","collapsed")}function Xt(R){var se=this.resume();this.stack[this.stack.length-1].label=se,this.stack[this.stack.length-1].identifier=Pp(this.sliceSerialize(R)).toLowerCase(),s("referenceType","full")}function $e(R){s("characterReferenceType",R.type)}function kr(R){var se=this.sliceSerialize(R),Ie=u("characterReferenceType"),Ne,qt;Ie?(Ne=Z6(se,Ie==="characterReferenceMarkerNumeric"?10:16),s("characterReferenceType")):Ne=J6(se),qt=this.stack.pop(),qt.value+=Ne,qt.position.end=l(R.end)}function ar(R){ee.call(this,R),this.stack[this.stack.length-1].url=this.sliceSerialize(R)}function At(R){ee.call(this,R),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(R)}function nn(){return{type:"blockquote",children:[]}}function sr(){return{type:"code",lang:null,meta:null,value:""}}function kt(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function L(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:void 0,children:[]}}function ve(){return{type:"break"}}function de(){return{type:"html",value:""}}function Ze(){return{type:"image",title:null,url:"",alt:null}}function De(){return{type:"link",title:null,url:"",children:[]}}function Le(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function Lr(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function on(){return{type:"paragraph",children:[]}}function nt(){return{type:"strong",children:[]}}function zo(){return{type:"text",value:""}}function eO(){return{type:"thematicBreak"}}}i(Y6,"compiler");function Q6(e,t){for(var r=-1;++r<t.length;)eV(e,t[r]);return e}i(Q6,"configure");function eV(e,t){var r,n;for(r in t)n=pT.call(e,r)?e[r]:e[r]={},r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,t[r]):Object.assign(n,t[r])}i(eV,"extension")});var hT=b((lme,fT)=>{"use strict";fT.exports=mT()});var yT=b((cme,gT)=>{"use strict";gT.exports=rV;var tV=hT();function rV(e){var t=this;this.Parser=r;function r(n){return tV(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}i(r,"parse")}i(rV,"parse")});var xT=b((dme,bT)=>{"use strict";bT.exports=iV;var nV=Function.prototype,vT={}.hasOwnProperty;function iV(e,t){var r=t||{};function n(o){var a=n.invalid,s=n.handlers;return o&&vT.call(o,e)&&(a=vT.call(s,o[e])?s[o[e]]:n.unknown),(a||nV).apply(this,arguments)}return i(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}i(iV,"factory")});var kT=b((fme,_T)=>{_T.exports=sV;var oV=ko(),aV=ks();function sV(e,t,r){var n=r.enter("blockquote"),o=aV(oV(e,r),uV);return n(),o}i(sV,"blockquote");function uV(e,t,r){return">"+(r?"":" ")+e}i(uV,"map")});var Sp=b((gme,PT)=>{PT.exports=lV;function lV(e,t){return wT(e,t.inConstruct,!0)&&!wT(e,t.notInConstruct)}i(lV,"patternInScope");function wT(e,t,r){var n;if(!t)return r;for(typeof t=="string"&&(t=[t]),n=-1;++n<t.length;)if(e.indexOf(t[n])!==-1)return!0;return!1}i(wT,"listInScope")});var Tp=b((vme,ST)=>{ST.exports=pV;var cV=Sp();function pV(e,t,r,n){for(var o=-1;++o<r.unsafe.length;)if(r.unsafe[o].character===`
43
- `&&cV(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
44
- `}i(pV,"hardBreak")});var AT=b((xme,TT)=>{"use strict";TT.exports=dV;function dV(e,t){var r=0,n=0,o,a;if(typeof t!="string"||t.length!==1)throw new Error("Expected character");for(e=String(e),a=e.indexOf(t),o=a;a!==-1;)r++,a===o?r>n&&(n=r):r=1,o=a+1,a=e.indexOf(t,o);return n}i(dV,"longestStreak")});var Ap=b((kme,ET)=>{ET.exports=mV;function mV(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}i(mV,"formatCodeAsIndented")});var CT=b((Pme,IT)=>{IT.exports=fV;function fV(e){var t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}i(fV,"checkFence")});var tn=b((Tme,RT)=>{RT.exports=yV;var hV=Vc(),gV=Sp();function yV(e,t,r){for(var n=(r.before||"")+(t||"")+(r.after||""),o=[],a=[],s={},u=-1,l,p,c,m,f,d,h,_;++u<e.unsafe.length;)if(m=e.unsafe[u],!!gV(e.stack,m))for(f=hV(m);d=f.exec(n);)l="before"in m||m.atBreak,p="after"in m,c=d.index+(l?d[1].length:0),o.indexOf(c)===-1?(o.push(c),s[c]={before:l,after:p}):(s[c].before&&!l&&(s[c].before=!1),s[c].after&&!p&&(s[c].after=!1));for(o.sort(vV),h=r.before?r.before.length:0,_=n.length-(r.after?r.after.length:0),u=-1;++u<o.length;)c=o[u],!(c<h||c>=_)&&(c+1<_&&o[u+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||(h!==c&&a.push(OT(n.slice(h,c),"\\")),h=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||r.encode.indexOf(n.charAt(c))===-1)?a.push("\\"):(a.push("&#x"+n.charCodeAt(c).toString(16).toUpperCase()+";"),h++)));return a.push(OT(n.slice(h,_),r.after)),a.join("")}i(yV,"safe");function vV(e,t){return e-t}i(vV,"numerical");function OT(e,t){for(var r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],a=-1,s=0,u=e+t,l;l=r.exec(u);)n.push(l.index);for(;++a<n.length;)s!==n[a]&&o.push(e.slice(s,n[a])),o.push("\\"),s=n[a];return o.push(e.slice(s)),o.join("")}i(OT,"escapeBackslashes")});var DT=b((Eme,$T)=>{$T.exports=PV;var bV=Sn(),xV=AT(),_V=Ap(),kV=CT(),wV=ks(),zT=tn();function PV(e,t,r){var n=kV(r),o=e.value||"",a=n==="`"?"GraveAccent":"Tilde",s,u,l,p;return _V(e,r)?(l=r.enter("codeIndented"),s=wV(o,SV)):(u=bV(n,Math.max(xV(o,n)+1,3)),l=r.enter("codeFenced"),s=u,e.lang&&(p=r.enter("codeFencedLang"+a),s+=zT(r,e.lang,{before:"`",after:" ",encode:["`"]}),p()),e.lang&&e.meta&&(p=r.enter("codeFencedMeta"+a),s+=" "+zT(r,e.meta,{before:" ",after:`
41
+ `;else if(n===-2)o=" ";else if(n===-1){if(a)continue;o=" "}else o=LB(n);a=n===-2,r.push(o)}return r.join("")}i(qB,"serializeChunks");SP.exports=qB});var EP=b((gde,AP)=>{"use strict";function FB(e,t){var r=t.start._index,n=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex,s;return r===o?s=[e[r].slice(n,a)]:(s=e.slice(r,o),n>-1&&(s[0]=s[0].slice(n)),a>0&&s.push(e[o].slice(0,a))),s}i(FB,"sliceChunks");AP.exports=FB});var OP=b((vde,CP)=>{"use strict";var BB=si(),jB=tt(),VB=Ts(),HB=mr(),ap=ps(),WB=ko(),ZB=TP(),IP=tn(),GB=EP();function KB(e,t,r){var n=r?IP(r):{line:1,column:1,offset:0},o={},a=[],s=[],u=[],l={consume:w,enter:S,exit:R,attempt:Z(F),check:Z(U),interrupt:Z(U,{interrupt:!0}),lazy:Z(U,{lazy:!0})},p={previous:null,events:[],parser:e,sliceStream:d,sliceSerialize:f,now:h,defineSkip:_,write:m},c=t.tokenize.call(p,l);return t.resolveAll&&a.push(t),n._index=0,n._bufferIndex=-1,p;function m(N){return s=VB(s,N),v(),s[s.length-1]!==null?[]:(q(t,0),p.events=WB(a,p.events,p),p.events)}i(m,"write");function f(N){return ZB(d(N))}i(f,"sliceSerialize");function d(N){return GB(s,N)}i(d,"sliceStream");function h(){return IP(n)}i(h,"now");function _(N){o[N.line]=N.column,G()}i(_,"skip");function v(){for(var N,j;n._index<s.length;)if(j=s[n._index],typeof j=="string")for(N=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===N&&n._bufferIndex<j.length;)y(j.charCodeAt(n._bufferIndex));else y(j)}i(v,"main");function y(N){c=c(N)}i(y,"go");function w(N){jB(N)?(n.line++,n.column=1,n.offset+=N===-3?2:1,G()):N!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=N}i(w,"consume");function S(N,j){var de=j||{};return de.type=N,de.start=h(),p.events.push(["enter",de,p]),u.push(de),de}i(S,"enter");function R(N){var j=u.pop();return j.end=h(),p.events.push(["exit",j,p]),j}i(R,"exit");function F(N,j){q(N,j.from)}i(F,"onsuccessfulconstruct");function U(N,j){j.restore()}i(U,"onsuccessfulcheck");function Z(N,j){return de;function de(re,Ie,je){var A,ke,Pe,Se;return re.tokenize||"length"in re?ht(ap(re)):g;function g(K){return K in re||null in re?ht(re.null?ap(re[K]).concat(ap(re.null)):re[K])(K):je(K)}function ht(K){return A=K,ke=0,vt(K[ke])}function vt(K){return gt;function gt(Yt){return Se=W(),Pe=K,K.partial||(p.currentConstruct=K),K.name&&p.parser.constructs.disable.null.indexOf(K.name)>-1?_r():K.tokenize.call(j?BB({},p,j):p,l,Tt,_r)(Yt)}}function Tt(K){return N(Pe,Se),Ie}function _r(K){return Se.restore(),++ke<A.length?vt(A[ke]):je}}}i(Z,"constructFactory");function q(N,j){N.resolveAll&&a.indexOf(N)<0&&a.push(N),N.resolve&&HB(p.events,j,p.events.length-j,N.resolve(p.events.slice(j),p)),N.resolveTo&&(p.events=N.resolveTo(p.events,p))}i(q,"addResult");function W(){var N=h(),j=p.previous,de=p.currentConstruct,re=p.events.length,Ie=Array.from(u);return{restore:je,from:re};function je(){n=N,p.previous=j,p.currentConstruct=de,p.events.length=re,u=Ie,G()}}i(W,"store");function G(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(G,"accountForPotentialSkip")}i(KB,"createTokenizer");CP.exports=KB});var zP=b((xde,RP)=>{"use strict";function JB(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}i(JB,"movePoint");RP.exports=JB});var UP=b((kde,NP)=>{"use strict";var To=Ts(),XB=mr(),DP=$c(),$P=zP(),YB=ko(),vr=tn(),QB={name:"attention",tokenize:tj,resolveAll:ej};function ej(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,s={type:l>1?"strongSequence":"emphasisSequence",start:$P(vr(e[n][1].end),-l),end:vr(e[n][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:vr(e[r][1].start),end:$P(vr(e[r][1].start),l)},a={type:l>1?"strongText":"emphasisText",start:vr(e[n][1].end),end:vr(e[r][1].start)},o={type:l>1?"strong":"emphasis",start:vr(s.start),end:vr(u.end)},e[n][1].end=vr(s.start),e[r][1].start=vr(u.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=To(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=To(p,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),p=To(p,YB(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),p=To(p,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=To(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,XB(e,n-1,r-n+3,p),r=n+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}i(ej,"resolveAllAttention");function tj(e,t){var r=DP(this.previous),n;return o;function o(s){return e.enter("attentionSequence"),n=s,a(s)}function a(s){var u,l,p,c;return s===n?(e.consume(s),a):(u=e.exit("attentionSequence"),l=DP(s),p=!l||l===2&&r,c=!r||r===2&&l,u._open=n===42?p:p&&(r||!c),u._close=n===42?c:c&&(l||!p),t(s))}}i(tj,"tokenizeAttention");NP.exports=QB});var LP=b((Pde,MP)=>{"use strict";var rj=Dr(),nj=rj(/[#-'*+\--9=?A-Z^-~]/);MP.exports=nj});var BP=b((Sde,FP)=>{"use strict";var ij=_o(),As=oi(),qP=LP(),oj=ds(),aj={name:"autolink",tokenize:sj};function sj(e,t,r){var n=1;return o;function o(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return ij(h)?(e.consume(h),s):qP(h)?p(h):r(h)}function s(h){return h===43||h===45||h===46||As(h)?u(h):p(h)}function u(h){return h===58?(e.consume(h),l):(h===43||h===45||h===46||As(h))&&n++<32?(e.consume(h),u):p(h)}function l(h){return h===62?(e.exit("autolinkProtocol"),d(h)):h===32||h===60||oj(h)?r(h):(e.consume(h),l)}function p(h){return h===64?(e.consume(h),n=0,c):qP(h)?(e.consume(h),p):r(h)}function c(h){return As(h)?m(h):r(h)}function m(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",d(h)):f(h)}function f(h){return(h===45||As(h))&&n++<63?(e.consume(h),h===45?f:m):r(h)}function d(h){return e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t}}i(sj,"tokenizeAutolink");FP.exports=aj});var HP=b((Ade,VP)=>{"use strict";var uj=gr(),lj=ut(),jP={name:"blockQuote",tokenize:cj,continuation:{tokenize:pj},exit:dj};function cj(e,t,r){var n=this;return o;function o(s){return s===62?(n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a):r(s)}function a(s){return uj(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}i(cj,"tokenizeBlockQuoteStart");function pj(e,t,r){return lj(e,e.attempt(jP,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(pj,"tokenizeBlockQuoteContinuation");function dj(e){e.exit("blockQuote")}i(dj,"exit");VP.exports=jP});var ZP=b((Ide,WP)=>{"use strict";var mj=Dr(),fj=mj(/[!-/:-@[-`{-~]/);WP.exports=fj});var KP=b((Cde,GP)=>{"use strict";var hj=ZP(),gj={name:"characterEscape",tokenize:yj};function yj(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return hj(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}i(yj,"tokenizeCharacterEscape");GP.exports=gj});var JP=b((Rde,vj)=>{vj.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
42
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Es=b((zde,YP)=>{"use strict";var XP=JP();YP.exports=xj;var bj={}.hasOwnProperty;function xj(e){return bj.call(XP,e)?XP[e]:!1}i(xj,"decodeEntity")});var sp=b(($de,QP)=>{"use strict";var _j=Dr(),kj=_j(/\d/);QP.exports=kj});var tS=b((Nde,eS)=>{"use strict";var wj=Dr(),Pj=wj(/[\dA-Fa-f]/);eS.exports=Pj});var iS=b((Ude,nS)=>{"use strict";var Sj=Es(),rS=oi(),Tj=sp(),Aj=tS();function Ej(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}i(Ej,"_interopDefaultLegacy");var Ij=Ej(Sj),Cj={name:"characterReference",tokenize:Oj};function Oj(e,t,r){var n=this,o=0,a,s;return u;function u(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),l}function l(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,s=rS,c(m))}function p(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Aj,c):(e.enter("characterReferenceValue"),a=7,s=Tj,c(m))}function c(m){var f;return m===59&&o?(f=e.exit("characterReferenceValue"),s===rS&&!Ij.default(n.sliceSerialize(f))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):s(m)&&o++<a?(e.consume(m),c):r(m)}}i(Oj,"tokenizeCharacterReference");nS.exports=Cj});var aS=b((Lde,oS)=>{"use strict";var ci=tt(),Rj=hr(),zj=ui(),Ao=ut(),Dj={name:"codeFenced",tokenize:$j,concrete:!0};function $j(e,t,r){var n=this,o={tokenize:w,partial:!0},a=zj(this.events,"linePrefix"),s=0,u;return l;function l(S){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=S,p(S)}function p(S){return S===u?(e.consume(S),s++,p):(e.exit("codeFencedFenceSequence"),s<3?r(S):Ao(e,c,"whitespace")(S))}function c(S){return S===null||ci(S)?h(S):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||Rj(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ao(e,f,"whitespace")(S)):S===96&&S===u?r(S):(e.consume(S),m)}function f(S){return S===null||ci(S)?h(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||ci(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(S)):S===96&&S===u?r(S):(e.consume(S),d)}function h(S){return e.exit("codeFencedFence"),n.interrupt?t(S):_(S)}function _(S){return S===null?y(S):ci(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),e.attempt(o,y,a?Ao(e,_,"linePrefix",a+1):_)):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||ci(S)?(e.exit("codeFlowValue"),_(S)):(e.consume(S),v)}function y(S){return e.exit("codeFenced"),t(S)}function w(S,R,F){var U=0;return Ao(S,Z,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function Z(G){return S.enter("codeFencedFence"),S.enter("codeFencedFenceSequence"),q(G)}function q(G){return G===u?(S.consume(G),U++,q):U<s?F(G):(S.exit("codeFencedFenceSequence"),Ao(S,W,"whitespace")(G))}function W(G){return G===null||ci(G)?(S.exit("codeFencedFence"),R(G)):F(G)}}}i($j,"tokenizeCodeFenced");oS.exports=Dj});var pS=b((Fde,cS)=>{"use strict";var up=tt(),sS=mr(),Nj=ui(),uS=ut(),Uj={name:"codeIndented",tokenize:Lj,resolve:Mj},lS={tokenize:qj,partial:!0};function Mj(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return sS(e,0,0,[["enter",r,t]]),sS(e,e.length,0,[["exit",r,t]]),e}i(Mj,"resolveCodeIndented");function Lj(e,t,r){return e.attempt(lS,n,r);function n(a){return a===null?t(a):up(a)?e.attempt(lS,n,t)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||up(a)?(e.exit("codeFlowValue"),n(a)):(e.consume(a),o)}}i(Lj,"tokenizeCodeIndented");function qj(e,t,r){var n=this;return uS(e,o,"linePrefix",5);function o(a){return up(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),uS(e,o,"linePrefix",5)):Nj(n.events,"linePrefix")<4?r(a):t(a)}}i(qj,"tokenizeIndentedContent");cS.exports=Uj});var fS=b((jde,mS)=>{"use strict";var dS=tt(),Fj={name:"codeText",tokenize:Vj,resolve:Bj,previous:jj};function Bj(e){var t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[t][1].type=e[r][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}i(Bj,"resolveCodeText");function jj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(jj,"previous");function Vj(e,t,r){var n=0,o,a;return s;function s(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),n++,u):(e.exit("codeTextSequence"),l(m))}function l(m){return m===null?r(m):m===96?(a=e.enter("codeTextSequence"),o=0,c(m)):m===32?(e.enter("space"),e.consume(m),e.exit("space"),l):dS(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),l):(e.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||dS(m)?(e.exit("codeTextData"),l(m)):(e.consume(m),p)}function c(m){return m===96?(e.consume(m),o++,c):o===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",p(m))}}i(Vj,"tokenizeCodeText");mS.exports=Fj});var lp=b((Hde,gS)=>{"use strict";var hS=ds(),Hj=hr(),Wj=tt();function Zj(e,t,r,n,o,a,s,u,l){var p=l||1/0,c=0;return m;function m(y){return y===60?(e.enter(n),e.enter(o),e.enter(a),e.consume(y),e.exit(a),f):hS(y)||y===41?r(y):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(o),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(u),f(y)):y===null||y===60||Wj(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function _(y){return y===40?++c>p?r(y):(e.consume(y),_):y===41?c--?(e.consume(y),_):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(y)):y===null||Hj(y)?c?r(y):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(y)):hS(y)?r(y):(e.consume(y),y===92?v:_)}function v(y){return y===40||y===41||y===92?(e.consume(y),_):_(y)}}i(Zj,"destinationFactory");gS.exports=Zj});var cp=b((Zde,vS)=>{"use strict";var yS=tt(),Gj=gr();function Kj(e,t,r,n,o,a){var s=this,u=0,l;return p;function p(d){return e.enter(n),e.enter(o),e.consume(d),e.exit(o),e.enter(a),c}function c(d){return d===null||d===91||d===93&&!l||d===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?r(d):d===93?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(n),t):yS(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),m(d))}function m(d){return d===null||d===91||d===93||yS(d)||u++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l=l||!Gj(d),d===92?f:m)}function f(d){return d===91||d===92||d===93?(e.consume(d),u++,m):m(d)}}i(Kj,"labelFactory");vS.exports=Kj});var pp=b((Kde,bS)=>{"use strict";var Jj=tt(),Xj=gr(),Yj=ut();function Qj(e,t){var r;return n;function n(o){return Jj(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):Xj(o)?Yj(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}i(Qj,"whitespaceFactory");bS.exports=Qj});var dp=b((Xde,_S)=>{"use strict";var xS=tt(),e4=ut();function t4(e,t,r,n,o,a){var s;return u;function u(f){return e.enter(n),e.enter(o),e.consume(f),e.exit(o),s=f===40?41:f,l}function l(f){return f===s?(e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):(e.enter(a),p(f))}function p(f){return f===s?(e.exit(a),l(s)):f===null?r(f):xS(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),e4(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||xS(f)?(e.exit("chunkString"),p(f)):(e.consume(f),f===92?m:c)}function m(f){return f===s||f===92?(e.consume(f),c):c(f)}}i(t4,"titleFactory");_S.exports=t4});var SS=b((Qde,PS)=>{"use strict";var kS=tt(),r4=hr(),n4=Ss(),i4=lp(),o4=cp(),mp=ut(),wS=pp(),a4=dp(),s4={name:"definition",tokenize:l4},u4={tokenize:c4,partial:!0};function l4(e,t,r){var n=this,o;return a;function a(l){return e.enter("definition"),o4.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function s(l){return o=n4(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),wS(e,i4(e,e.attempt(u4,mp(e,u,"whitespace"),mp(e,u,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(l)}function u(l){return l===null||kS(l)?(e.exit("definition"),n.parser.defined.indexOf(o)<0&&n.parser.defined.push(o),t(l)):r(l)}}i(l4,"tokenizeDefinition");function c4(e,t,r){return n;function n(s){return r4(s)?wS(e,o)(s):r(s)}function o(s){return s===34||s===39||s===40?a4(e,mp(e,a,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s):r(s)}function a(s){return s===null||kS(s)?t(s):r(s)}}i(c4,"tokenizeTitle");PS.exports=s4});var AS=b((tme,TS)=>{"use strict";var p4=tt(),d4={name:"hardBreakEscape",tokenize:m4};function m4(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),o}function o(a){return p4(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):r(a)}}i(m4,"tokenizeHardBreakEscape");TS.exports=d4});var CS=b((nme,IS)=>{"use strict";var f4=tt(),ES=hr(),h4=gr(),g4=mr(),y4=ut(),v4={name:"headingAtx",tokenize:x4,resolve:b4};function b4(e,t){var r=e.length-2,n=3,o,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},g4(e,n,r-n+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}i(b4,"resolveHeadingAtx");function x4(e,t,r){var n=this,o=0;return a;function a(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&o++<6?(e.consume(c),s):c===null||ES(c)?(e.exit("atxHeadingSequence"),n.interrupt?t(c):u(c)):r(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||f4(c)?(e.exit("atxHeading"),t(c)):h4(c)?y4(e,u,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),u(c))}function p(c){return c===null||c===35||ES(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),p)}}i(x4,"tokenizeHeadingAtx");IS.exports=v4});var RS=b((ome,OS)=>{"use strict";var _4=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];OS.exports=_4});var DS=b((ame,zS)=>{"use strict";var k4=["pre","script","style","textarea"];zS.exports=k4});var LS=b((sme,MS)=>{"use strict";var Eo=_o(),$S=oi(),pi=tt(),NS=hr(),di=gr(),Is=xo(),w4=RS(),US=DS(),P4=Po(),S4={name:"htmlFlow",tokenize:E4,resolveTo:A4,concrete:!0},T4={tokenize:I4,partial:!0};function A4(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}i(A4,"resolveToHtmlFlow");function E4(e,t,r){var n=this,o,a,s,u,l;return p;function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),m):g===47?(e.consume(g),h):g===63?(e.consume(g),o=3,n.interrupt?t:ke):Eo(g)?(e.consume(g),s=Is(g),a=!0,_):r(g)}function m(g){return g===45?(e.consume(g),o=2,f):g===91?(e.consume(g),o=5,s="CDATA[",u=0,d):Eo(g)?(e.consume(g),o=4,n.interrupt?t:ke):r(g)}function f(g){return g===45?(e.consume(g),n.interrupt?t:ke):r(g)}function d(g){return g===s.charCodeAt(u++)?(e.consume(g),u===s.length?n.interrupt?t:N:d):r(g)}function h(g){return Eo(g)?(e.consume(g),s=Is(g),_):r(g)}function _(g){return g===null||g===47||g===62||NS(g)?g!==47&&a&&US.indexOf(s.toLowerCase())>-1?(o=1,n.interrupt?t(g):N(g)):w4.indexOf(s.toLowerCase())>-1?(o=6,g===47?(e.consume(g),v):n.interrupt?t(g):N(g)):(o=7,n.interrupt?r(g):a?w(g):y(g)):g===45||$S(g)?(e.consume(g),s+=Is(g),_):r(g)}function v(g){return g===62?(e.consume(g),n.interrupt?t:N):r(g)}function y(g){return di(g)?(e.consume(g),y):W(g)}function w(g){return g===47?(e.consume(g),W):g===58||g===95||Eo(g)?(e.consume(g),S):di(g)?(e.consume(g),w):W(g)}function S(g){return g===45||g===46||g===58||g===95||$S(g)?(e.consume(g),S):R(g)}function R(g){return g===61?(e.consume(g),F):di(g)?(e.consume(g),R):w(g)}function F(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),l=g,U):di(g)?(e.consume(g),F):(l=void 0,Z(g))}function U(g){return g===l?(e.consume(g),q):g===null||pi(g)?r(g):(e.consume(g),U)}function Z(g){return g===null||g===34||g===39||g===60||g===61||g===62||g===96||NS(g)?R(g):(e.consume(g),Z)}function q(g){return g===47||g===62||di(g)?w(g):r(g)}function W(g){return g===62?(e.consume(g),G):r(g)}function G(g){return di(g)?(e.consume(g),G):g===null||pi(g)?N(g):r(g)}function N(g){return g===45&&o===2?(e.consume(g),re):g===60&&o===1?(e.consume(g),Ie):g===62&&o===4?(e.consume(g),Pe):g===63&&o===3?(e.consume(g),ke):g===93&&o===5?(e.consume(g),A):pi(g)&&(o===6||o===7)?e.check(T4,Pe,j)(g):g===null||pi(g)?j(g):(e.consume(g),N)}function j(g){return e.exit("htmlFlowData"),de(g)}function de(g){return g===null?Se(g):pi(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),de):(e.enter("htmlFlowData"),N(g))}function re(g){return g===45?(e.consume(g),ke):N(g)}function Ie(g){return g===47?(e.consume(g),s="",je):N(g)}function je(g){return g===62&&US.indexOf(s.toLowerCase())>-1?(e.consume(g),Pe):Eo(g)&&s.length<8?(e.consume(g),s+=Is(g),je):N(g)}function A(g){return g===93?(e.consume(g),ke):N(g)}function ke(g){return g===62?(e.consume(g),Pe):N(g)}function Pe(g){return g===null||pi(g)?(e.exit("htmlFlowData"),Se(g)):(e.consume(g),Pe)}function Se(g){return e.exit("htmlFlow"),t(g)}}i(E4,"tokenizeHtmlFlow");function I4(e,t,r){return n;function n(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(P4,t,r)}}i(I4,"tokenizeNextBlank");MS.exports=S4});var FS=b((lme,qS)=>{"use strict";var Cs=_o(),fp=oi(),Ur=tt(),hp=hr(),Os=gr(),C4=ut(),O4={name:"htmlText",tokenize:R4};function R4(e,t,r){var n=this,o,a,s,u;return l;function l(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),p}function p(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),Z):g===63?(e.consume(g),F):Cs(g)?(e.consume(g),G):r(g)}function c(g){return g===45?(e.consume(g),m):g===91?(e.consume(g),a="CDATA[",s=0,v):Cs(g)?(e.consume(g),R):r(g)}function m(g){return g===45?(e.consume(g),f):r(g)}function f(g){return g===null||g===62?r(g):g===45?(e.consume(g),d):h(g)}function d(g){return g===null||g===62?r(g):h(g)}function h(g){return g===null?r(g):g===45?(e.consume(g),_):Ur(g)?(u=h,ke(g)):(e.consume(g),h)}function _(g){return g===45?(e.consume(g),Se):h(g)}function v(g){return g===a.charCodeAt(s++)?(e.consume(g),s===a.length?y:v):r(g)}function y(g){return g===null?r(g):g===93?(e.consume(g),w):Ur(g)?(u=y,ke(g)):(e.consume(g),y)}function w(g){return g===93?(e.consume(g),S):y(g)}function S(g){return g===62?Se(g):g===93?(e.consume(g),S):y(g)}function R(g){return g===null||g===62?Se(g):Ur(g)?(u=R,ke(g)):(e.consume(g),R)}function F(g){return g===null?r(g):g===63?(e.consume(g),U):Ur(g)?(u=F,ke(g)):(e.consume(g),F)}function U(g){return g===62?Se(g):F(g)}function Z(g){return Cs(g)?(e.consume(g),q):r(g)}function q(g){return g===45||fp(g)?(e.consume(g),q):W(g)}function W(g){return Ur(g)?(u=W,ke(g)):Os(g)?(e.consume(g),W):Se(g)}function G(g){return g===45||fp(g)?(e.consume(g),G):g===47||g===62||hp(g)?N(g):r(g)}function N(g){return g===47?(e.consume(g),Se):g===58||g===95||Cs(g)?(e.consume(g),j):Ur(g)?(u=N,ke(g)):Os(g)?(e.consume(g),N):Se(g)}function j(g){return g===45||g===46||g===58||g===95||fp(g)?(e.consume(g),j):de(g)}function de(g){return g===61?(e.consume(g),re):Ur(g)?(u=de,ke(g)):Os(g)?(e.consume(g),de):N(g)}function re(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),o=g,Ie):Ur(g)?(u=re,ke(g)):Os(g)?(e.consume(g),re):(e.consume(g),o=void 0,A)}function Ie(g){return g===o?(e.consume(g),je):g===null?r(g):Ur(g)?(u=Ie,ke(g)):(e.consume(g),Ie)}function je(g){return g===62||g===47||hp(g)?N(g):r(g)}function A(g){return g===null||g===34||g===39||g===60||g===61||g===96?r(g):g===62||hp(g)?N(g):(e.consume(g),A)}function ke(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),C4(e,Pe,"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function Pe(g){return e.enter("htmlTextData"),u(g)}function Se(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):r(g)}}i(R4,"tokenizeHtmlText");qS.exports=O4});var Rs=b((pme,jS)=>{"use strict";var z4=hr(),mi=Ts(),D4=mr(),BS=Ss(),$4=ko(),fi=tn(),N4=lp(),U4=cp(),M4=dp(),gp=pp(),L4={name:"labelEnd",tokenize:H4,resolveTo:V4,resolveAll:j4},q4={tokenize:W4},F4={tokenize:Z4},B4={tokenize:G4};function j4(e){for(var t=-1,r;++t<e.length;)r=e[t][1],!r._used&&(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++);return e}i(j4,"resolveAllLabelEnd");function V4(e,t){for(var r=e.length,n=0,o,a,s,u,l,p,c;r--;)if(u=e[r][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[r][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(p){if(e[r][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=r,u.type!=="labelLink")){n=2;break}}else u.type==="labelEnd"&&(p=r);return o={type:e[l][1].type==="labelLink"?"link":"image",start:fi(e[l][1].start),end:fi(e[e.length-1][1].end)},a={type:"label",start:fi(e[l][1].start),end:fi(e[p][1].end)},s={type:"labelText",start:fi(e[l+n+2][1].end),end:fi(e[p-2][1].start)},c=[["enter",o,t],["enter",a,t]],c=mi(c,e.slice(l+1,l+n+3)),c=mi(c,[["enter",s,t]]),c=mi(c,$4(t.parser.constructs.insideSpan.null,e.slice(l+n+4,p-3),t)),c=mi(c,[["exit",s,t],e[p-2],e[p-1],["exit",a,t]]),c=mi(c,e.slice(p+1)),c=mi(c,[["exit",o,t]]),D4(e,l,e.length,c),e}i(V4,"resolveToLabelEnd");function H4(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){a=n.events[o][1];break}return u;function u(c){return a?a._inactive?p(c):(s=n.parser.defined.indexOf(BS(n.sliceSerialize({start:a.end,end:n.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),l):r(c)}function l(c){return c===40?e.attempt(q4,t,s?t:p)(c):c===91?e.attempt(F4,t,s?e.attempt(B4,t,p):p)(c):s?t(c):p(c)}function p(c){return a._balanced=!0,r(c)}}i(H4,"tokenizeLabelEnd");function W4(e,t,r){return n;function n(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),gp(e,o)}function o(l){return l===41?u(l):N4(e,a,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(l)}function a(l){return z4(l)?gp(e,s)(l):u(l)}function s(l){return l===34||l===39||l===40?M4(e,gp(e,u),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):u(l)}function u(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):r(l)}}i(W4,"tokenizeResource");function Z4(e,t,r){var n=this;return o;function o(s){return U4.call(n,e,a,r,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.indexOf(BS(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))<0?r(s):t(s)}}i(Z4,"tokenizeFullReference");function G4(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}i(G4,"tokenizeCollapsedReference");jS.exports=L4});var HS=b((mme,VS)=>{"use strict";var K4=Rs(),J4={name:"labelStartImage",tokenize:X4,resolveAll:K4.resolveAll};function X4(e,t,r){var n=this;return o;function o(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}i(X4,"tokenizeLabelStartImage");VS.exports=J4});var ZS=b((hme,WS)=>{"use strict";var Y4=Rs(),Q4={name:"labelStartLink",tokenize:e6,resolveAll:Y4.resolveAll};function e6(e,t,r){var n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}i(e6,"tokenizeLabelStartLink");WS.exports=Q4});var KS=b((yme,GS)=>{"use strict";var t6=ut(),r6={name:"lineEnding",tokenize:n6};function n6(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t6(e,t,"linePrefix")}}i(n6,"tokenizeLineEnding");GS.exports=r6});var yp=b((bme,JS)=>{"use strict";var i6=tt(),o6=gr(),a6=ut(),s6={name:"thematicBreak",tokenize:u6};function u6(e,t,r){var n=0,o;return a;function a(l){return e.enter("thematicBreak"),o=l,s(l)}function s(l){return l===o?(e.enter("thematicBreakSequence"),u(l)):o6(l)?a6(e,s,"whitespace")(l):n<3||l!==null&&!i6(l)?r(l):(e.exit("thematicBreak"),t(l))}function u(l){return l===o?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),s(l))}}i(u6,"tokenizeThematicBreak");JS.exports=s6});var tT=b((_me,eT)=>{"use strict";var XS=sp(),vp=gr(),bp=ui(),l6=Mc(),zs=ut(),YS=Po(),c6=yp(),QS={name:"list",tokenize:m6,continuation:{tokenize:f6},exit:g6},p6={tokenize:y6,partial:!0},d6={tokenize:h6,partial:!0};function m6(e,t,r){var n=this,o=bp(n.events,"linePrefix"),a=0;return s;function s(f){var d=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:XS(f)){if(n.containerState.type||(n.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(c6,r,l)(f):l(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return r(f)}function u(f){return XS(f)&&++a<10?(e.consume(f),u):(!n.interrupt||a<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):r(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(YS,n.interrupt?r:p,e.attempt(p6,m,c))}function p(f){return n.containerState.initialBlankLine=!0,o++,m(f)}function c(f){return vp(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):r(f)}function m(f){return n.containerState.size=o+l6(n.sliceStream(e.exit("listItemPrefix"))),t(f)}}i(m6,"tokenizeListStart");function f6(e,t,r){var n=this;return n.containerState._closeFlow=void 0,e.check(YS,o,a);function o(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,zs(e,t,"listItemIndent",n.containerState.size+1)(u)}i(o,"onBlank");function a(u){return n.containerState.furtherBlankLines||!vp(u)?(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,e.attempt(d6,t,s)(u))}i(a,"notBlank");function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,zs(e,e.attempt(QS,t,r),"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(u)}i(s,"notInCurrentItem")}i(f6,"tokenizeListContinuation");function h6(e,t,r){var n=this;return zs(e,o,"listItemIndent",n.containerState.size+1);function o(a){return bp(n.events,"listItemIndent")===n.containerState.size?t(a):r(a)}}i(h6,"tokenizeIndent");function g6(e){e.exit(this.containerState.type)}i(g6,"tokenizeListEnd");function y6(e,t,r){var n=this;return zs(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5);function o(a){return vp(a)||!bp(n.events,"listItemPrefixWhitespace")?r(a):t(a)}}i(y6,"tokenizeListItemPrefixWhitespace");eT.exports=QS});var nT=b((wme,rT)=>{"use strict";var v6=tt(),xp=tn(),b6=ut(),x6={name:"setextUnderline",tokenize:k6,resolveTo:_6};function _6(e,t){for(var r=e.length,n,o,a,s;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);return s={type:"setextHeading",start:xp(e[o][1].start),end:xp(e[e.length-1][1].end)},e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=xp(e[a][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}i(_6,"resolveToSetextUnderline");function k6(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if(n.events[o][1].type!=="lineEnding"&&n.events[o][1].type!=="linePrefix"&&n.events[o][1].type!=="content"){s=n.events[o][1].type==="paragraph";break}return u;function u(c){return!n.lazy&&(n.interrupt||s)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=c,l(c)):r(c)}function l(c){return c===a?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),b6(e,p,"lineSuffix")(c))}function p(c){return c===null||v6(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}i(k6,"tokenizeSetextUnderline");rT.exports=x6});var uT=b(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var w6=op(),Pp=UP(),P6=BP(),S6=HP(),aT=KP(),sT=iS(),iT=aS(),_p=pS(),T6=fS(),A6=SS(),E6=AS(),I6=CS(),C6=LS(),O6=FS(),R6=Rs(),z6=HS(),D6=ZS(),kp=KS(),Lt=tT(),oT=nT(),wp=yp(),$6={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:S6},N6={91:A6},U6={"-2":_p,"-1":_p,32:_p},M6={35:I6,42:wp,45:[oT,wp],60:C6,61:oT,95:wp,96:iT,126:iT},L6={38:sT,92:aT},q6={"-5":kp,"-4":kp,"-3":kp,33:z6,38:sT,42:Pp,60:[P6,O6],91:D6,92:[E6,aT],93:R6,95:Pp,96:T6},F6={null:[Pp,w6.resolver]},B6={null:[]};br.contentInitial=N6;br.disable=B6;br.document=$6;br.flow=M6;br.flowInitial=U6;br.insideSpan=F6;br.string=L6;br.text=q6});var pT=b((Tme,cT)=>{"use strict";var j6=pP(),V6=fP(),H6=xP(),lT=op(),W6=Oc(),Z6=OP(),G6=ps(),K6=uT();function J6(e){var t=e||{},r={defined:[],constructs:W6([K6].concat(G6(t.extensions))),content:n(j6),document:n(V6),flow:n(H6),string:n(lT.string),text:n(lT.text)};return r;function n(o){return a;function a(s){return Z6(r,o,s)}}}i(J6,"parse");cT.exports=J6});var fT=b((Eme,mT)=>{"use strict";var dT=/[\0\t\n\r]/g;function X6(){var e=!0,t=1,r="",n;return o;function o(a,s,u){var l=[],p,c,m,f,d;for(a=r+a.toString(s),m=0,r="",e&&(a.charCodeAt(0)===65279&&m++,e=void 0);m<a.length;){if(dT.lastIndex=m,p=dT.exec(a),f=p?p.index:a.length,d=a.charCodeAt(f),!p){r=a.slice(m);break}if(d===10&&m===f&&n)l.push(-3),n=void 0;else if(n&&(l.push(-5),n=void 0),m<f&&(l.push(a.slice(m,f)),t+=f-m),d===0)l.push(65533),t++;else if(d===9)for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);else d===10?(l.push(-4),t=1):(n=!0,t=1);m=f+1}return u&&(n&&l.push(-5),r&&l.push(r),l.push(null)),l}}i(X6,"preprocess");mT.exports=X6});var gT=b((Cme,hT)=>{"use strict";var Y6=np();function Q6(e){for(;!Y6(e););return e}i(Q6,"postprocess");hT.exports=Q6});var Tp=b((Rme,bT)=>{"use strict";var hi={}.hasOwnProperty;bT.exports=eV;function eV(e){return!e||typeof e!="object"?"":hi.call(e,"position")||hi.call(e,"type")?yT(e.position):hi.call(e,"start")||hi.call(e,"end")?yT(e):hi.call(e,"line")||hi.call(e,"column")?Sp(e):""}i(eV,"stringify");function Sp(e){return(!e||typeof e!="object")&&(e={}),vT(e.line)+":"+vT(e.column)}i(Sp,"point");function yT(e){return(!e||typeof e!="object")&&(e={}),Sp(e.start)+"-"+Sp(e.end)}i(yT,"position");function vT(e){return e&&typeof e=="number"?e:1}i(vT,"index")});var kT=b((Dme,_T)=>{"use strict";_T.exports=uV;var tV=Ps(),rV=si(),xT=Ic(),Ap=Ss(),nV=cP(),iV=pT(),oV=fT(),aV=gT(),sV=Es(),Ds=Tp();function uV(e,t,r){return typeof t!="string"&&(r=t,t=void 0),lV(r)(aV(iV(r).document().write(oV()(e,t,!0))))}i(uV,"fromMarkdown");function lV(e){var t=e||{},r=cV({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(Ne),autolinkProtocol:de,autolinkEmail:de,atxHeading:p(le),blockQuote:p(on),characterEscape:de,characterReference:de,codeFenced:p(sr),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:p(sr,c),codeText:p(wt,c),codeTextData:de,data:de,codeFlowValue:de,definition:p(M),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:p(L),hardBreakEscape:p(xe),hardBreakTrailing:p(xe),htmlFlow:p(me,c),htmlFlowData:de,htmlText:p(me,c),htmlTextData:de,image:p(Ze),label:c,link:p(Ne),listItem:p(Lr),listItemValue:v,listOrdered:p(qe,_),listUnordered:p(qe),paragraph:p(an),reference:gt,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:p(le),strong:p(nt),thematicBreak:p(lO)},exit:{atxHeading:f(),atxHeadingSequence:W,autolink:f(),autolinkEmail:At,autolinkProtocol:ar,blockQuote:f(),characterEscapeValue:re,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:kr,codeFenced:f(R),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:w,codeFlowValue:re,codeIndented:f(F),codeText:f(Pe),codeTextData:re,data:re,definition:f(),definitionDestinationString:q,definitionLabelString:U,definitionTitleString:Z,emphasis:f(),hardBreakEscape:f(je),hardBreakTrailing:f(je),htmlFlow:f(A),htmlFlowData:re,htmlText:f(ke),htmlTextData:re,image:f(g),label:vt,labelText:ht,lineEnding:Ie,link:f(Se),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Yt,resourceDestinationString:Tt,resourceTitleString:_r,resource:K,setextHeading:f(j),setextHeadingLineSequence:N,setextHeadingText:G,strong:f(),thematicBreak:f()}},t.mdastExtensions||[]),n={};return o;function o(z){for(var ce={type:"root",children:[]},Ce=[ce],Ue=[],qt=[],Ye=-1,Qt,sn,er={stack:Ce,tokenStack:Ue,config:r,enter:m,exit:d,buffer:c,resume:h,setData:s,getData:u};++Ye<z.length;)(z[Ye][1].type==="listOrdered"||z[Ye][1].type==="listUnordered")&&(z[Ye][0]==="enter"?qt.push(Ye):(sn=qt.pop(Ye),Ye=a(z,sn,Ye)));for(Ye=-1;++Ye<z.length;)Qt=r[z[Ye][0]],xT.call(Qt,z[Ye][1].type)&&Qt[z[Ye][1].type].call(rV({sliceSerialize:z[Ye][2].sliceSerialize},er),z[Ye][1]);if(Ue.length)throw new Error("Cannot close document, a token (`"+Ue[Ue.length-1].type+"`, "+Ds({start:Ue[Ue.length-1].start,end:Ue[Ue.length-1].end})+") is still open");for(ce.position={start:l(z.length?z[0][1].start:{line:1,column:1,offset:0}),end:l(z.length?z[z.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<r.transforms.length;)ce=r.transforms[Ye](ce)||ce;return ce}function a(z,ce,Ce){for(var Ue=ce-1,qt=-1,Ye=!1,Qt,sn,er,ur,Ge,yi,vi;++Ue<=Ce;)if(Ge=z[Ue],Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered"||Ge[1].type==="blockQuote"?(Ge[0]==="enter"?qt++:qt--,vi=void 0):Ge[1].type==="lineEndingBlank"?Ge[0]==="enter"&&(Qt&&!vi&&!qt&&!yi&&(yi=Ue),vi=void 0):Ge[1].type==="linePrefix"||Ge[1].type==="listItemValue"||Ge[1].type==="listItemMarker"||Ge[1].type==="listItemPrefix"||Ge[1].type==="listItemPrefixWhitespace"||(vi=void 0),!qt&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||qt===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(Qt){for(sn=Ue,er=void 0;sn--;)if(ur=z[sn],ur[1].type==="lineEnding"||ur[1].type==="lineEndingBlank"){if(ur[0]==="exit")continue;er&&(z[er][1].type="lineEndingBlank",Ye=!0),ur[1].type="lineEnding",er=sn}else if(!(ur[1].type==="linePrefix"||ur[1].type==="blockQuotePrefix"||ur[1].type==="blockQuotePrefixWhitespace"||ur[1].type==="blockQuoteMarker"||ur[1].type==="listItemIndent"))break;yi&&(!er||yi<er)&&(Qt._spread=!0),Qt.end=l(er?z[er][1].start:Ge[1].end),z.splice(er||Ue,0,["exit",Qt,Ge[2]]),Ue++,Ce++}Ge[1].type==="listItemPrefix"&&(Qt={type:"listItem",_spread:!1,start:l(Ge[1].start)},z.splice(Ue,0,["enter",Qt,Ge[2]]),Ue++,Ce++,yi=void 0,vi=!0)}return z[ce][1]._spread=Ye,Ce}function s(z,ce){n[z]=ce}function u(z){return n[z]}function l(z){return{line:z.line,column:z.column,offset:z.offset}}function p(z,ce){return Ce;function Ce(Ue){m.call(this,z(Ue),Ue),ce&&ce.call(this,Ue)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(z,ce){return this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push(ce),z.position={start:l(ce.start)},z}function f(z){return ce;function ce(Ce){z&&z.call(this,Ce),d.call(this,Ce)}}function d(z){var ce=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce){if(Ce.type!==z.type)throw new Error("Cannot close `"+z.type+"` ("+Ds({start:z.start,end:z.end})+"): a different token (`"+Ce.type+"`, "+Ds({start:Ce.start,end:Ce.end})+") is open")}else throw new Error("Cannot close `"+z.type+"` ("+Ds({start:z.start,end:z.end})+"): it\u2019s not open");return ce.position.end=l(z.end),ce}function h(){return tV(this.stack.pop())}function _(){s("expectingFirstListItemValue",!0)}function v(z){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(z),10),s("expectingFirstListItemValue"))}function y(){var z=this.resume();this.stack[this.stack.length-1].lang=z}function w(){var z=this.resume();this.stack[this.stack.length-1].meta=z}function S(){u("flowCodeInside")||(this.buffer(),s("flowCodeInside",!0))}function R(){var z=this.resume();this.stack[this.stack.length-1].value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s("flowCodeInside")}function F(){var z=this.resume();this.stack[this.stack.length-1].value=z}function U(z){var ce=this.resume();this.stack[this.stack.length-1].label=ce,this.stack[this.stack.length-1].identifier=Ap(this.sliceSerialize(z)).toLowerCase()}function Z(){var z=this.resume();this.stack[this.stack.length-1].title=z}function q(){var z=this.resume();this.stack[this.stack.length-1].url=z}function W(z){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(z).length)}function G(){s("setextHeadingSlurpLineEnding",!0)}function N(z){this.stack[this.stack.length-1].depth=this.sliceSerialize(z).charCodeAt(0)===61?1:2}function j(){s("setextHeadingSlurpLineEnding")}function de(z){var ce=this.stack[this.stack.length-1].children,Ce=ce[ce.length-1];(!Ce||Ce.type!=="text")&&(Ce=Do(),Ce.position={start:l(z.start)},this.stack[this.stack.length-1].children.push(Ce)),this.stack.push(Ce)}function re(z){var ce=this.stack.pop();ce.value+=this.sliceSerialize(z),ce.position.end=l(z.end)}function Ie(z){var ce=this.stack[this.stack.length-1];if(u("atHardBreak")){ce.children[ce.children.length-1].position.end=l(z.end),s("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&r.canContainEols.indexOf(ce.type)>-1&&(de.call(this,z),re.call(this,z))}function je(){s("atHardBreak",!0)}function A(){var z=this.resume();this.stack[this.stack.length-1].value=z}function ke(){var z=this.resume();this.stack[this.stack.length-1].value=z}function Pe(){var z=this.resume();this.stack[this.stack.length-1].value=z}function Se(){var z=this.stack[this.stack.length-1];u("inReference")?(z.type+="Reference",z.referenceType=u("referenceType")||"shortcut",delete z.url,delete z.title):(delete z.identifier,delete z.label,delete z.referenceType),s("referenceType")}function g(){var z=this.stack[this.stack.length-1];u("inReference")?(z.type+="Reference",z.referenceType=u("referenceType")||"shortcut",delete z.url,delete z.title):(delete z.identifier,delete z.label,delete z.referenceType),s("referenceType")}function ht(z){this.stack[this.stack.length-2].identifier=Ap(this.sliceSerialize(z)).toLowerCase()}function vt(){var z=this.stack[this.stack.length-1],ce=this.resume();this.stack[this.stack.length-1].label=ce,s("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=z.children:this.stack[this.stack.length-1].alt=ce}function Tt(){var z=this.resume();this.stack[this.stack.length-1].url=z}function _r(){var z=this.resume();this.stack[this.stack.length-1].title=z}function K(){s("inReference")}function gt(){s("referenceType","collapsed")}function Yt(z){var ce=this.resume();this.stack[this.stack.length-1].label=ce,this.stack[this.stack.length-1].identifier=Ap(this.sliceSerialize(z)).toLowerCase(),s("referenceType","full")}function $e(z){s("characterReferenceType",z.type)}function kr(z){var ce=this.sliceSerialize(z),Ce=u("characterReferenceType"),Ue,qt;Ce?(Ue=nV(ce,Ce==="characterReferenceMarkerNumeric"?10:16),s("characterReferenceType")):Ue=sV(ce),qt=this.stack.pop(),qt.value+=Ue,qt.position.end=l(z.end)}function ar(z){re.call(this,z),this.stack[this.stack.length-1].url=this.sliceSerialize(z)}function At(z){re.call(this,z),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(z)}function on(){return{type:"blockquote",children:[]}}function sr(){return{type:"code",lang:null,meta:null,value:""}}function wt(){return{type:"inlineCode",value:""}}function M(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function L(){return{type:"emphasis",children:[]}}function le(){return{type:"heading",depth:void 0,children:[]}}function xe(){return{type:"break"}}function me(){return{type:"html",value:""}}function Ze(){return{type:"image",title:null,url:"",alt:null}}function Ne(){return{type:"link",title:null,url:"",children:[]}}function qe(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Lr(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function an(){return{type:"paragraph",children:[]}}function nt(){return{type:"strong",children:[]}}function Do(){return{type:"text",value:""}}function lO(){return{type:"thematicBreak"}}}i(lV,"compiler");function cV(e,t){for(var r=-1;++r<t.length;)pV(e,t[r]);return e}i(cV,"configure");function pV(e,t){var r,n;for(r in t)n=xT.call(e,r)?e[r]:e[r]={},r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,t[r]):Object.assign(n,t[r])}i(pV,"extension")});var PT=b((Nme,wT)=>{"use strict";wT.exports=kT()});var TT=b((Ume,ST)=>{"use strict";ST.exports=mV;var dV=PT();function mV(e){var t=this;this.Parser=r;function r(n){return dV(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}i(r,"parse")}i(mV,"parse")});var IT=b((Lme,ET)=>{"use strict";ET.exports=hV;var fV=Function.prototype,AT={}.hasOwnProperty;function hV(e,t){var r=t||{};function n(o){var a=n.invalid,s=n.handlers;return o&&AT.call(o,e)&&(a=AT.call(s,o[e])?s[o[e]]:n.unknown),(a||fV).apply(this,arguments)}return i(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}i(hV,"factory")});var OT=b((Fme,CT)=>{CT.exports=vV;var gV=wo(),yV=ws();function vV(e,t,r){var n=r.enter("blockquote"),o=yV(gV(e,r),bV);return n(),o}i(vV,"blockquote");function bV(e,t,r){return">"+(r?"":" ")+e}i(bV,"map")});var Ep=b((jme,zT)=>{zT.exports=xV;function xV(e,t){return RT(e,t.inConstruct,!0)&&!RT(e,t.notInConstruct)}i(xV,"patternInScope");function RT(e,t,r){var n;if(!t)return r;for(typeof t=="string"&&(t=[t]),n=-1;++n<t.length;)if(e.indexOf(t[n])!==-1)return!0;return!1}i(RT,"listInScope")});var Ip=b((Hme,DT)=>{DT.exports=kV;var _V=Ep();function kV(e,t,r,n){for(var o=-1;++o<r.unsafe.length;)if(r.unsafe[o].character===`
43
+ `&&_V(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
44
+ `}i(kV,"hardBreak")});var NT=b((Zme,$T)=>{"use strict";$T.exports=wV;function wV(e,t){var r=0,n=0,o,a;if(typeof t!="string"||t.length!==1)throw new Error("Expected character");for(e=String(e),a=e.indexOf(t),o=a;a!==-1;)r++,a===o?r>n&&(n=r):r=1,o=a+1,a=e.indexOf(t,o);return n}i(wV,"longestStreak")});var Cp=b((Kme,UT)=>{UT.exports=PV;function PV(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}i(PV,"formatCodeAsIndented")});var LT=b((Xme,MT)=>{MT.exports=SV;function SV(e){var t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}i(SV,"checkFence")});var rn=b((Qme,FT)=>{FT.exports=EV;var TV=Zc(),AV=Ep();function EV(e,t,r){for(var n=(r.before||"")+(t||"")+(r.after||""),o=[],a=[],s={},u=-1,l,p,c,m,f,d,h,_;++u<e.unsafe.length;)if(m=e.unsafe[u],!!AV(e.stack,m))for(f=TV(m);d=f.exec(n);)l="before"in m||m.atBreak,p="after"in m,c=d.index+(l?d[1].length:0),o.indexOf(c)===-1?(o.push(c),s[c]={before:l,after:p}):(s[c].before&&!l&&(s[c].before=!1),s[c].after&&!p&&(s[c].after=!1));for(o.sort(IV),h=r.before?r.before.length:0,_=n.length-(r.after?r.after.length:0),u=-1;++u<o.length;)c=o[u],!(c<h||c>=_)&&(c+1<_&&o[u+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||(h!==c&&a.push(qT(n.slice(h,c),"\\")),h=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||r.encode.indexOf(n.charAt(c))===-1)?a.push("\\"):(a.push("&#x"+n.charCodeAt(c).toString(16).toUpperCase()+";"),h++)));return a.push(qT(n.slice(h,_),r.after)),a.join("")}i(EV,"safe");function IV(e,t){return e-t}i(IV,"numerical");function qT(e,t){for(var r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],a=-1,s=0,u=e+t,l;l=r.exec(u);)n.push(l.index);for(;++a<n.length;)s!==n[a]&&o.push(e.slice(s,n[a])),o.push("\\"),s=n[a];return o.push(e.slice(s)),o.join("")}i(qT,"escapeBackslashes")});var VT=b((tfe,jT)=>{jT.exports=$V;var CV=Sn(),OV=NT(),RV=Cp(),zV=LT(),DV=ws(),BT=rn();function $V(e,t,r){var n=zV(r),o=e.value||"",a=n==="`"?"GraveAccent":"Tilde",s,u,l,p;return RV(e,r)?(l=r.enter("codeIndented"),s=DV(o,NV)):(u=CV(n,Math.max(OV(o,n)+1,3)),l=r.enter("codeFenced"),s=u,e.lang&&(p=r.enter("codeFencedLang"+a),s+=BT(r,e.lang,{before:"`",after:" ",encode:["`"]}),p()),e.lang&&e.meta&&(p=r.enter("codeFencedMeta"+a),s+=" "+BT(r,e.meta,{before:" ",after:`
45
45
  `,encode:["`"]}),p()),s+=`
46
46
  `,o&&(s+=o+`
47
- `),s+=u),l(),s}i(PV,"code");function SV(e,t,r){return(r?"":" ")+e}i(SV,"map")});var $s=b((Cme,NT)=>{NT.exports=IV;var TV=As(),AV=/\\([!-/:-@[-`{-~])/g,EV=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IV(e){return e.label||!e.identifier?e.label||"":e.identifier.replace(AV,"$1").replace(EV,CV)}i(IV,"association");function CV(e,t){return TV(t)||e}i(CV,"decodeIfPossible")});var Ds=b((Rme,UT)=>{UT.exports=OV;function OV(e){var t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}i(OV,"checkQuote")});var LT=b(($me,MT)=>{MT.exports=$V;var RV=$s(),zV=Ds(),Ns=tn();function $V(e,t,r){var n=zV(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("definition"),s=r.enter("label"),u="["+Ns(r,RV(e),{before:"[",after:"]"})+"]: ";return s(),!e.url||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Ns(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Ns(r,e.url,{before:" ",after:" "})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Ns(r,e.title,{before:n,after:n})+n,s()),a(),u}i($V,"definition")});var FT=b((Nme,qT)=>{qT.exports=DV;function DV(e){var t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}i(DV,"checkEmphasis")});var VT=b((Mme,jT)=>{jT.exports=BT;BT.peek=MV;var NV=FT(),UV=yr();function BT(e,t,r){var n=NV(r),o=r.enter("emphasis"),a=UV(e,r,{before:n,after:n});return o(),n+a+n}i(BT,"emphasis");function MV(e,t,r){return r.options.emphasis||"*"}i(MV,"emphasisPeek")});var Ep=b((qme,HT)=>{HT.exports=qV;var LV=ws();function qV(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&LV(e)}i(qV,"formatHeadingAsSetext")});var KT=b((Bme,GT)=>{GT.exports=BV;var ZT=Sn(),FV=Ep(),WT=yr();function BV(e,t,r){var n=Math.max(Math.min(6,e.depth||1),1),o,a,s,u;return FV(e,r)?(o=r.enter("headingSetext"),a=r.enter("phrasing"),s=WT(e,r,{before:`
47
+ `),s+=u),l(),s}i($V,"code");function NV(e,t,r){return(r?"":" ")+e}i(NV,"map")});var $s=b((nfe,HT)=>{HT.exports=qV;var UV=Es(),MV=/\\([!-/:-@[-`{-~])/g,LV=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qV(e){return e.label||!e.identifier?e.label||"":e.identifier.replace(MV,"$1").replace(LV,FV)}i(qV,"association");function FV(e,t){return UV(t)||e}i(FV,"decodeIfPossible")});var Ns=b((ofe,WT)=>{WT.exports=BV;function BV(e){var t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}i(BV,"checkQuote")});var GT=b((sfe,ZT)=>{ZT.exports=HV;var jV=$s(),VV=Ns(),Us=rn();function HV(e,t,r){var n=VV(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("definition"),s=r.enter("label"),u="["+Us(r,jV(e),{before:"[",after:"]"})+"]: ";return s(),!e.url||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Us(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Us(r,e.url,{before:" ",after:" "})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Us(r,e.title,{before:n,after:n})+n,s()),a(),u}i(HV,"definition")});var JT=b((lfe,KT)=>{KT.exports=WV;function WV(e){var t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}i(WV,"checkEmphasis")});var QT=b((pfe,YT)=>{YT.exports=XT;XT.peek=KV;var ZV=JT(),GV=yr();function XT(e,t,r){var n=ZV(r),o=r.enter("emphasis"),a=GV(e,r,{before:n,after:n});return o(),n+a+n}i(XT,"emphasis");function KV(e,t,r){return r.options.emphasis||"*"}i(KV,"emphasisPeek")});var Op=b((mfe,eA)=>{eA.exports=XV;var JV=Ps();function XV(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&JV(e)}i(XV,"formatHeadingAsSetext")});var iA=b((hfe,nA)=>{nA.exports=QV;var tA=Sn(),YV=Op(),rA=yr();function QV(e,t,r){var n=Math.max(Math.min(6,e.depth||1),1),o,a,s,u;return YV(e,r)?(o=r.enter("headingSetext"),a=r.enter("phrasing"),s=rA(e,r,{before:`
48
48
  `,after:`
49
49
  `}),a(),o(),s+`
50
- `+ZT(n===1?"=":"-",s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf(`
51
- `))+1))):(u=ZT("#",n),o=r.enter("headingAtx"),a=r.enter("phrasing"),s=WT(e,r,{before:"# ",after:`
52
- `}),s=s?u+" "+s:u,r.options.closeAtx&&(s+=" "+u),a(),o(),s)}i(BV,"heading")});var YT=b((Vme,XT)=>{XT.exports=JT;JT.peek=jV;function JT(e){return e.value||""}i(JT,"html");function jV(){return"<"}i(jV,"htmlPeek")});var tA=b((Zme,eA)=>{eA.exports=QT;QT.peek=HV;var VV=Ds(),Us=tn();function QT(e,t,r){var n=VV(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("image"),s=r.enter("label"),u="!["+Us(r,e.alt,{before:"[",after:"]"})+"](";return s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Us(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Us(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Us(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u}i(QT,"image");function HV(){return"!"}i(HV,"imagePeek")});var oA=b((Gme,iA)=>{iA.exports=nA;nA.peek=WV;var ZV=$s(),rA=tn();function nA(e,t,r){var n=e.referenceType,o=r.enter("imageReference"),a=r.enter("label"),s=rA(r,e.alt,{before:"[",after:"]"}),u="!["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=rA(r,ZV(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(nA,"imageReference");function WV(){return"!"}i(WV,"imageReferencePeek")});var sA=b((Jme,aA)=>{aA.exports=KV;var GV=ws();function KV(e,t){var r=GV(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)}i(KV,"formatLinkAsAutolink")});var dA=b((Yme,pA)=>{pA.exports=cA;cA.peek=XV;var JV=Ds(),lA=sA(),uA=yr(),Ip=tn();function cA(e,t,r){var n=JV(r),o=n==='"'?"Quote":"Apostrophe",a,s,u,l;return lA(e,r)?(l=r.stack,r.stack=[],a=r.enter("autolink"),u="<"+uA(e,r,{before:"<",after:">"})+">",a(),r.stack=l,u):(a=r.enter("link"),s=r.enter("label"),u="["+uA(e,r,{before:"[",after:"]"})+"](",s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Ip(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Ip(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Ip(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u)}i(cA,"link");function XV(e,t,r){return lA(e,r)?"<":"["}i(XV,"linkPeek")});var hA=b((efe,fA)=>{fA.exports=mA;mA.peek=t2;var YV=$s(),QV=yr(),e2=tn();function mA(e,t,r){var n=e.referenceType,o=r.enter("linkReference"),a=r.enter("label"),s=QV(e,r,{before:"[",after:"]"}),u="["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=e2(r,YV(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(mA,"linkReference");function t2(){return"["}i(t2,"linkReferencePeek")});var yA=b((rfe,gA)=>{gA.exports=n2;var r2=ko();function n2(e,t,r){var n=r.enter("list"),o=r2(e,r);return n(),o}i(n2,"list")});var bA=b((ife,vA)=>{vA.exports=o2;var i2=yr();function o2(e,t,r){var n=r.enter("paragraph"),o=r.enter("phrasing"),a=i2(e,r,{before:`
50
+ `+tA(n===1?"=":"-",s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf(`
51
+ `))+1))):(u=tA("#",n),o=r.enter("headingAtx"),a=r.enter("phrasing"),s=rA(e,r,{before:"# ",after:`
52
+ `}),s=s?u+" "+s:u,r.options.closeAtx&&(s+=" "+u),a(),o(),s)}i(QV,"heading")});var sA=b((yfe,aA)=>{aA.exports=oA;oA.peek=e2;function oA(e){return e.value||""}i(oA,"html");function e2(){return"<"}i(e2,"htmlPeek")});var cA=b((bfe,lA)=>{lA.exports=uA;uA.peek=r2;var t2=Ns(),Ms=rn();function uA(e,t,r){var n=t2(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("image"),s=r.enter("label"),u="!["+Ms(r,e.alt,{before:"[",after:"]"})+"](";return s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Ms(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Ms(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Ms(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u}i(uA,"image");function r2(){return"!"}i(r2,"imagePeek")});var fA=b((_fe,mA)=>{mA.exports=dA;dA.peek=i2;var n2=$s(),pA=rn();function dA(e,t,r){var n=e.referenceType,o=r.enter("imageReference"),a=r.enter("label"),s=pA(r,e.alt,{before:"[",after:"]"}),u="!["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=pA(r,n2(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(dA,"imageReference");function i2(){return"!"}i(i2,"imageReferencePeek")});var gA=b((wfe,hA)=>{hA.exports=a2;var o2=Ps();function a2(e,t){var r=o2(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)}i(a2,"formatLinkAsAutolink")});var _A=b((Sfe,xA)=>{xA.exports=bA;bA.peek=u2;var s2=Ns(),vA=gA(),yA=yr(),Rp=rn();function bA(e,t,r){var n=s2(r),o=n==='"'?"Quote":"Apostrophe",a,s,u,l;return vA(e,r)?(l=r.stack,r.stack=[],a=r.enter("autolink"),u="<"+yA(e,r,{before:"<",after:">"})+">",a(),r.stack=l,u):(a=r.enter("link"),s=r.enter("label"),u="["+yA(e,r,{before:"[",after:"]"})+"](",s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Rp(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Rp(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Rp(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u)}i(bA,"link");function u2(e,t,r){return vA(e,r)?"<":"["}i(u2,"linkPeek")});var PA=b((Afe,wA)=>{wA.exports=kA;kA.peek=d2;var l2=$s(),c2=yr(),p2=rn();function kA(e,t,r){var n=e.referenceType,o=r.enter("linkReference"),a=r.enter("label"),s=c2(e,r,{before:"[",after:"]"}),u="["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=p2(r,l2(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(kA,"linkReference");function d2(){return"["}i(d2,"linkReferencePeek")});var TA=b((Ife,SA)=>{SA.exports=f2;var m2=wo();function f2(e,t,r){var n=r.enter("list"),o=m2(e,r);return n(),o}i(f2,"list")});var EA=b((Ofe,AA)=>{AA.exports=g2;var h2=yr();function g2(e,t,r){var n=r.enter("paragraph"),o=r.enter("phrasing"),a=h2(e,r,{before:`
53
53
  `,after:`
54
- `});return o(),n(),a}i(o2,"paragraph")});var _A=b((afe,xA)=>{xA.exports=s2;var a2=ko();function s2(e,t,r){return a2(e,r)}i(s2,"root")});var wA=b((ufe,kA)=>{kA.exports=u2;function u2(e){var t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i(u2,"checkStrong")});var TA=b((cfe,SA)=>{SA.exports=PA;PA.peek=p2;var l2=wA(),c2=yr();function PA(e,t,r){var n=l2(r),o=r.enter("strong"),a=c2(e,r,{before:n,after:n});return o(),n+n+a+n+n}i(PA,"strong");function p2(e,t,r){return r.options.strong||"*"}i(p2,"strongPeek")});var EA=b((dfe,AA)=>{AA.exports=m2;var d2=tn();function m2(e,t,r,n){return d2(r,e.value,n)}i(m2,"text")});var CA=b((ffe,IA)=>{IA.exports=f2;function f2(e){var t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}i(f2,"checkRule")});var RA=b((gfe,OA)=>{OA.exports=h2;function h2(e){var t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}i(h2,"checkRule")});var $A=b((vfe,zA)=>{zA.exports=b2;var g2=Sn(),y2=CA(),v2=RA();function b2(e,t,r){var n=g2(v2(r)+(r.options.ruleSpaces?" ":""),y2(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(b2,"thematicBreak")});var Cp=b(rt=>{rt.blockquote=kT();rt.break=Tp();rt.code=DT();rt.definition=LT();rt.emphasis=VT();rt.hardBreak=Tp();rt.heading=KT();rt.html=YT();rt.image=tA();rt.imageReference=oA();rt.inlineCode=Hc();rt.link=dA();rt.linkReference=hA();rt.list=yA();rt.listItem=Gc();rt.paragraph=bA();rt.root=_A();rt.strong=TA();rt.text=EA();rt.thematicBreak=$A()});var UA=b((_fe,NA)=>{NA.exports=[_2];var DA=Ap(),x2=Ep();function _2(e,t,r,n){if(t.type==="list"&&t.type===e.type&&!!e.ordered==!!t.ordered||t.type==="code"&&DA(t,n)&&(e.type==="list"||e.type===t.type&&DA(e,n)))return!1;if(typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&x2(t,n))?void 0:r.spread?1:0}i(_2,"joinDefaults")});var LA=b((wfe,MA)=>{MA.exports=[{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
54
+ `});return o(),n(),a}i(g2,"paragraph")});var CA=b((zfe,IA)=>{IA.exports=v2;var y2=wo();function v2(e,t,r){return y2(e,r)}i(v2,"root")});var RA=b(($fe,OA)=>{OA.exports=b2;function b2(e){var t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i(b2,"checkStrong")});var $A=b((Ufe,DA)=>{DA.exports=zA;zA.peek=k2;var x2=RA(),_2=yr();function zA(e,t,r){var n=x2(r),o=r.enter("strong"),a=_2(e,r,{before:n,after:n});return o(),n+n+a+n+n}i(zA,"strong");function k2(e,t,r){return r.options.strong||"*"}i(k2,"strongPeek")});var UA=b((Lfe,NA)=>{NA.exports=P2;var w2=rn();function P2(e,t,r,n){return w2(r,e.value,n)}i(P2,"text")});var LA=b((Ffe,MA)=>{MA.exports=S2;function S2(e){var t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}i(S2,"checkRule")});var FA=b((jfe,qA)=>{qA.exports=T2;function T2(e){var t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}i(T2,"checkRule")});var jA=b((Hfe,BA)=>{BA.exports=C2;var A2=Sn(),E2=LA(),I2=FA();function C2(e,t,r){var n=A2(I2(r)+(r.options.ruleSpaces?" ":""),E2(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(C2,"thematicBreak")});var zp=b(rt=>{rt.blockquote=OT();rt.break=Ip();rt.code=VT();rt.definition=GT();rt.emphasis=QT();rt.hardBreak=Ip();rt.heading=iA();rt.html=sA();rt.image=cA();rt.imageReference=fA();rt.inlineCode=Gc();rt.link=_A();rt.linkReference=PA();rt.list=TA();rt.listItem=Xc();rt.paragraph=EA();rt.root=CA();rt.strong=$A();rt.text=UA();rt.thematicBreak=jA()});var WA=b((Gfe,HA)=>{HA.exports=[R2];var VA=Cp(),O2=Op();function R2(e,t,r,n){if(t.type==="list"&&t.type===e.type&&!!e.ordered==!!t.ordered||t.type==="code"&&VA(t,n)&&(e.type==="list"||e.type===t.type&&VA(e,n)))return!1;if(typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&O2(t,n))?void 0:r.spread?1:0}i(R2,"joinDefaults")});var GA=b((Jfe,ZA)=>{ZA.exports=[{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
55
55
  `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
56
56
  ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
57
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]});var BA=b((Pfe,FA)=>{FA.exports=T2;var k2=xT(),qA=Jc(),w2=Cp(),P2=UA(),S2=LA();function T2(e,t){var r=t||{},n={enter:a,stack:[],unsafe:[],join:[],handlers:{},options:{}},o;return qA(n,{unsafe:S2,join:P2,handlers:w2}),qA(n,r),n.options.tightDefinitions&&(n.join=[I2].concat(n.join)),n.handle=k2("type",{invalid:A2,unknown:E2,handlers:n.handlers}),o=n.handle(e,null,n,{before:`
57
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]});var XA=b((Xfe,JA)=>{JA.exports=U2;var z2=IT(),KA=Qc(),D2=zp(),$2=WA(),N2=GA();function U2(e,t){var r=t||{},n={enter:a,stack:[],unsafe:[],join:[],handlers:{},options:{}},o;return KA(n,{unsafe:N2,join:$2,handlers:D2}),KA(n,r),n.options.tightDefinitions&&(n.join=[q2].concat(n.join)),n.handle=z2("type",{invalid:M2,unknown:L2,handlers:n.handlers}),o=n.handle(e,null,n,{before:`
58
58
  `,after:`
59
59
  `}),o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
60
- `),o;function a(s){return n.stack.push(s),u;function u(){n.stack.pop()}i(u,"exit")}i(a,"enter")}i(T2,"toMarkdown");function A2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}i(A2,"invalid");function E2(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}i(E2,"unknown");function I2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}i(I2,"joinDefinition")});var VA=b((Tfe,jA)=>{jA.exports=BA()});var ZA=b((Afe,HA)=>{"use strict";HA.exports=O2;var C2=VA();function O2(e){var t=this;this.Compiler=r;function r(n){return C2(n,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}i(r,"compile")}i(O2,"stringify")});var GA=b((Ife,WA)=>{"use strict";WA.exports=R2;function R2(e){if(e)throw e}i(R2,"bail")});var Op=b((Ofe,KA)=>{KA.exports=i(function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},"isBuffer")});var iE=b((zfe,nE)=>{"use strict";var Ms=Object.prototype.hasOwnProperty,rE=Object.prototype.toString,JA=Object.defineProperty,XA=Object.getOwnPropertyDescriptor,YA=i(function(t){return typeof Array.isArray=="function"?Array.isArray(t):rE.call(t)==="[object Array]"},"isArray"),QA=i(function(t){if(!t||rE.call(t)!=="[object Object]")return!1;var r=Ms.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ms.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||Ms.call(t,o)},"isPlainObject"),eE=i(function(t,r){JA&&r.name==="__proto__"?JA(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},"setProperty"),tE=i(function(t,r){if(r==="__proto__")if(Ms.call(t,r)){if(XA)return XA(t,r).value}else return;return t[r]},"getProperty");nE.exports=i(function e(){var t,r,n,o,a,s,u=arguments[0],l=1,p=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)n=tE(u,r),o=tE(t,r),u!==o&&(c&&o&&(QA(o)||(a=YA(o)))?(a?(a=!1,s=n&&YA(n)?n:[]):s=n&&QA(n)?n:{},eE(u,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&eE(u,{name:r,newValue:o}));return u},"extend")});var aE=b((Dfe,oE)=>{"use strict";oE.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var uE=b((Nfe,sE)=>{"use strict";var z2=[].slice;sE.exports=$2;function $2(e,t){var r;return n;function n(){var s=z2.call(arguments,0),u=e.length>s.length,l;u&&s.push(o);try{l=e.apply(null,s)}catch(p){if(u&&r)throw p;return o(p)}u||(l&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(){r||(r=!0,t.apply(null,arguments))}function a(s){o(null,s)}}i($2,"wrap")});var mE=b((Mfe,dE)=>{"use strict";var cE=uE();dE.exports=pE;pE.wrap=cE;var lE=[].slice;function pE(){var e=[],t={};return t.run=r,t.use=n,t;function r(){var o=-1,a=lE.call(arguments,0,-1),s=arguments[arguments.length-1];if(typeof s!="function")throw new Error("Expected function as last argument, not "+s);u.apply(null,[null].concat(a));function u(l){var p=e[++o],c=lE.call(arguments,0),m=c.slice(1),f=a.length,d=-1;if(l){s(l);return}for(;++d<f;)(m[d]===null||m[d]===void 0)&&(m[d]=a[d]);a=m,p?cE(p,u).apply(null,a):s.apply(null,[null].concat(a))}i(u,"next")}i(r,"run");function n(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}i(n,"use")}i(pE,"trough")});var gE=b((qfe,hE)=>{"use strict";var D2=wp();hE.exports=Rp;function fE(){}i(fE,"VMessagePrototype");fE.prototype=Error.prototype;Rp.prototype=new fE;var rn=Rp.prototype;rn.file="";rn.name="";rn.reason="";rn.message="";rn.stack="";rn.fatal=null;rn.column=null;rn.line=null;function Rp(e,t,r){var n,o,a;typeof t=="string"&&(r=t,t=null),n=N2(r),o=D2(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=n[0],this.ruleId=n[1]}i(Rp,"VMessage");function N2(e){var t=[null,null],r;return typeof e=="string"&&(r=e.indexOf(":"),r===-1?t[1]=e:(t[0]=e.slice(0,r),t[1]=e.slice(r+1))),t}i(N2,"parseOrigin")});var vE=b((Bfe,yE)=>{"use strict";yE.exports=require("path")});var xE=b((jfe,bE)=>{"use strict";bE.exports=process});var wE=b((Vfe,kE)=>{"use strict";var xr=vE(),U2=xE(),M2=Op();kE.exports=Mr;var L2={}.hasOwnProperty,zp=["history","path","basename","stem","extname","dirname"];Mr.prototype.toString=J2;Object.defineProperty(Mr.prototype,"path",{get:q2,set:F2});Object.defineProperty(Mr.prototype,"dirname",{get:B2,set:j2});Object.defineProperty(Mr.prototype,"basename",{get:V2,set:H2});Object.defineProperty(Mr.prototype,"extname",{get:Z2,set:W2});Object.defineProperty(Mr.prototype,"stem",{get:G2,set:K2});function Mr(e){var t,r;if(!e)e={};else if(typeof e=="string"||M2(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Mr))return new Mr(e);for(this.data={},this.messages=[],this.history=[],this.cwd=U2.cwd(),r=-1;++r<zp.length;)t=zp[r],L2.call(e,t)&&(this[t]=e[t]);for(t in e)zp.indexOf(t)<0&&(this[t]=e[t])}i(Mr,"VFile");function q2(){return this.history[this.history.length-1]}i(q2,"getPath");function F2(e){Dp(e,"path"),this.path!==e&&this.history.push(e)}i(F2,"setPath");function B2(){return typeof this.path=="string"?xr.dirname(this.path):void 0}i(B2,"getDirname");function j2(e){_E(this.path,"dirname"),this.path=xr.join(e||"",this.basename)}i(j2,"setDirname");function V2(){return typeof this.path=="string"?xr.basename(this.path):void 0}i(V2,"getBasename");function H2(e){Dp(e,"basename"),$p(e,"basename"),this.path=xr.join(this.dirname||"",e)}i(H2,"setBasename");function Z2(){return typeof this.path=="string"?xr.extname(this.path):void 0}i(Z2,"getExtname");function W2(e){if($p(e,"extname"),_E(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=xr.join(this.dirname,this.stem+(e||""))}i(W2,"setExtname");function G2(){return typeof this.path=="string"?xr.basename(this.path,this.extname):void 0}i(G2,"getStem");function K2(e){Dp(e,"stem"),$p(e,"stem"),this.path=xr.join(this.dirname||"",e+(this.extname||""))}i(K2,"setStem");function J2(e){return(this.contents||"").toString(e)}i(J2,"toString");function $p(e,t){if(e&&e.indexOf(xr.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+xr.sep+"`")}i($p,"assertPart");function Dp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(Dp,"assertNonEmpty");function _E(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(_E,"assertPath")});var SE=b((Zfe,PE)=>{"use strict";var X2=gE(),Ls=wE();PE.exports=Ls;Ls.prototype.message=Y2;Ls.prototype.info=eH;Ls.prototype.fail=Q2;function Y2(e,t,r){var n=new X2(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}i(Y2,"message");function Q2(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}i(Q2,"fail");function eH(){var e=this.message.apply(this,arguments);return e.fatal=null,e}i(eH,"info")});var AE=b((Gfe,TE)=>{"use strict";TE.exports=SE()});var NE=b((Kfe,DE)=>{"use strict";var EE=GA(),tH=Op(),qs=iE(),IE=aE(),zE=mE(),Eo=AE();DE.exports=$E().freeze();var rH=[].slice,nH={}.hasOwnProperty,iH=zE().use(oH).use(aH).use(sH);function oH(e,t){t.tree=e.parse(t.file)}i(oH,"pipelineParse");function aH(e,t,r){e.run(t.tree,t.file,n);function n(o,a,s){o?r(o):(t.tree=a,t.file=s,r())}i(n,"done")}i(aH,"pipelineRun");function sH(e,t){var r=e.stringify(t.tree,t.file);r==null||(typeof r=="string"||tH(r)?("value"in t.file&&(t.file.value=r),t.file.contents=r):t.file.result=r)}i(sH,"pipelineStringify");function $E(){var e=[],t=zE(),r={},n=-1,o;return a.data=u,a.freeze=s,a.attachers=e,a.use=l,a.parse=c,a.stringify=d,a.run=m,a.runSync=f,a.process=h,a.processSync=_,a;function a(){for(var v=$E(),y=-1;++y<e.length;)v.use.apply(null,e[y]);return v.data(qs(!0,{},r)),v}i(a,"processor");function s(){var v,y;if(o)return a;for(;++n<e.length;)v=e[n],v[1]!==!1&&(v[1]===!0&&(v[1]=void 0),y=v[0].apply(a,v.slice(1)),typeof y=="function"&&t.use(y));return o=!0,n=1/0,a}i(s,"freeze");function u(v,y){return typeof v=="string"?arguments.length===2?(Mp("data",o),r[v]=y,a):nH.call(r,v)&&r[v]||null:v?(Mp("data",o),r=v,a):r}i(u,"data");function l(v){var y;if(Mp("use",o),v!=null)if(typeof v=="function")F.apply(null,arguments);else if(typeof v=="object")"length"in v?O(v):w(v);else throw new Error("Expected usable value, not `"+v+"`");return y&&(r.settings=qs(r.settings||{},y)),a;function w(M){O(M.plugins),M.settings&&(y=qs(y||{},M.settings))}i(w,"addPreset");function S(M){if(typeof M=="function")F(M);else if(typeof M=="object")"length"in M?F.apply(null,M):w(M);else throw new Error("Expected usable value, not `"+M+"`")}i(S,"add");function O(M){var V=-1;if(M!=null)if(typeof M=="object"&&"length"in M)for(;++V<M.length;)S(M[V]);else throw new Error("Expected a list of plugins, not `"+M+"`")}i(O,"addList");function F(M,V){var q=p(M);q?(IE(q[1])&&IE(V)&&(V=qs(!0,q[1],V)),q[1]=V):e.push(rH.call(arguments))}i(F,"addPlugin")}i(l,"use");function p(v){for(var y=-1;++y<e.length;)if(e[y][0]===v)return e[y]}i(p,"find");function c(v){var y=Eo(v),w;return s(),w=a.Parser,Np("parse",w),CE(w,"parse")?new w(String(y),y).parse():w(String(y),y)}i(c,"parse");function m(v,y,w){if(OE(v),s(),!w&&typeof y=="function"&&(w=y,y=null),!w)return new Promise(S);S(null,w);function S(O,F){t.run(v,Eo(y),M);function M(V,q,J){q=q||v,V?F(V):O?O(q):w(null,q,J)}i(M,"done")}i(S,"executor")}i(m,"run");function f(v,y){var w,S;return m(v,y,O),RE("runSync","run",S),w;function O(F,M){S=!0,w=M,EE(F)}i(O,"done")}i(f,"runSync");function d(v,y){var w=Eo(y),S;return s(),S=a.Compiler,Up("stringify",S),OE(v),CE(S,"compile")?new S(v,w).compile():S(v,w)}i(d,"stringify");function h(v,y){if(s(),Np("process",a.Parser),Up("process",a.Compiler),!y)return new Promise(w);w(null,y);function w(S,O){var F=Eo(v);iH.run(a,{file:F},M);function M(V){V?O(V):S?S(F):y(null,F)}i(M,"done")}i(w,"executor")}i(h,"process");function _(v){var y,w;return s(),Np("processSync",a.Parser),Up("processSync",a.Compiler),y=Eo(v),h(y,S),RE("processSync","process",w),y;function S(O){w=!0,EE(O)}i(S,"done")}i(_,"processSync")}i($E,"unified");function CE(e,t){return typeof e=="function"&&e.prototype&&(uH(e.prototype)||t in e.prototype)}i(CE,"newable");function uH(e){var t;for(t in e)return!0;return!1}i(uH,"keys");function Np(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Parser`")}i(Np,"assertParser");function Up(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Compiler`")}i(Up,"assertCompiler");function Mp(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}i(Mp,"assertUnfrozen");function OE(e){if(!e||typeof e.type!="string")throw new Error("Expected node, got `"+e+"`")}i(OE,"assertNode");function RE(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(RE,"assertDone")});var ME=b((Xfe,UE)=>{"use strict";var lH=hs();UE.exports=cH;function cH(e,t,r){var n=lH(r||t),o=t.cascade==null?!0:t.cascade;return a(e,null,null);function a(s,u,l){var p=s.children,c=-1,m=0;if(n(s,u,l))return null;if(p&&p.length){for(;++c<p.length;)a(p[c],c,s)&&(p[m++]=p[c]);if(o&&!m)return null;p.length=m}return s}}i(cH,"remove")});var qE=b((Qfe,LE)=>{"use strict";LE.exports=Bs;var Fs=Uc(),pH=Fs.CONTINUE,dH=Fs.SKIP,mH=Fs.EXIT;Bs.CONTINUE=pH;Bs.SKIP=dH;Bs.EXIT=mH;function Bs(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),Fs(e,t,o,n);function o(a,s){var u=s[s.length-1],l=u?u.children.indexOf(a):null;return r(a,l,u)}i(o,"overload")}i(Bs,"visit")});var BE=b((the,FE)=>{var fH=ME(),hH=qE(),gH=i(e=>t=>{hH(t,"definition",r=>{e[r.identifier]={title:r.title,url:r.url}})},"collectDefinitions"),yH=i(()=>e=>{fH(e,{cascade:!0},"definition")},"removeDefinitions");FE.exports={collectDefinitions:gH,removeDefinitions:yH}});var VE=b((nhe,jE)=>{jE.exports={wrap(e,...t){return[...t,e,...t.reverse()].join("")},isURL(e){try{return!!new URL(e)}catch{return!1}},isPotentiallyEncoded(e){return e!==decodeURIComponent(e||"")}}});var ZE=b((ihe,HE)=>{var vH=Cp(),hi=yr(),{wrap:Io,isURL:js,isPotentiallyEncoded:bH}=VE(),Lp="\u200B",xH=i(e=>e.replace("&","&amp;").replace(/<([^@]|$)/g,(r,n)=>`&lt;${n}`).replace(/^(.*)>/g,(r,n)=>n.match(/<@[A-Z0-9]+$/)?`${n}>`:`${n}&gt;`),"escapeSpecials"),_H=i(e=>({heading:i((t,r,n)=>{let a=n.enter("heading"),s=hi(t,n,{before:"*",after:"*"});return a(),Io(s,"*")},"heading"),strong:i((t,r,n)=>{let a=n.enter("strong"),s=hi(t,n,{before:"*",after:"*"});return a(),Io(s,Lp,"*")},"strong"),delete(t,r,n){let a=n.enter("delete"),s=hi(t,n,{before:"~",after:"~"});return a(),Io(s,Lp,"~")},emphasis:i((t,r,n)=>{let a=n.enter("emphasis"),s=hi(t,n,{before:"_",after:"_"});return a(),Io(s,Lp,"_")},"emphasis"),listItem:i((...t)=>vH.listItem(...t).replace(/^\*/,"\u2022"),"listItem"),code(t,r,n){let o=n.enter("code"),a=t.value.replace(/^#![a-z]+\n/,"");return o(),Io(a,"```",`
61
- `)},link:i((t,r,n)=>{let o=n.enter("link"),a=hi(t,n,{before:"|",after:">"})||t.title,s=bH(t.url)?t.url:encodeURI(t.url);return o(),js(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"link"),linkReference:i((t,r,n)=>{let o=n.enter("linkReference"),a=e[t.identifier],s=hi(t,n,{before:"|",after:">"})||(a?a.title:null);return o(),!a||!js(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"linkReference"),image:i((t,r,n)=>{let o=n.enter("image"),a=t.alt||t.title,s=encodeURI(t.url);return o(),js(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"image"),imageReference:i((t,r,n)=>{let o=n.enter("imageReference"),a=e[t.identifier],s=t.alt||(a?a.title:null);return o(),!a||!js(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"imageReference"),text:i((t,r,n)=>{let o=n.enter("text"),a=xH(t.value);return o(),a},"text")}),"createHandlers"),kH=i(e=>({bullet:"*",handlers:_H(e)}),"createOptions");HE.exports=kH});var GE=b((ahe,WE)=>{var wH=Kw(),PH=yT(),SH=ZA(),TH=NE(),{collectDefinitions:AH,removeDefinitions:EH}=BE(),IH=ZE();WE.exports=(e,t)=>{let r={},n=IH(r);return TH().use(PH,t).use(wH).use(AH,r).use(EH).use(SH,n).processSync(e).toString()}});var JE=b((she,KE)=>{KE.exports=GE()});var OH={};Fp(OH,{slack:()=>CH,slackAuth:()=>E,slackOAuth2Auth:()=>nl});module.exports=aO(OH);var sO=Object.freeze({status:"aborted"});function H(e,t,r){function n(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,l);let p=s.prototype,c=Object.keys(p);for(let m=0;m<c.length;m++){let f=c[m];f in u||(u[f]=p[f].bind(u))}}i(n,"init");let o=r?.Parent??Object;class a extends o{static{i(this,"Definition")}}Object.defineProperty(a,"name",{value:e});function s(u){var l;let p=r?.Parent?new a:this;n(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let c of p._zod.deferred)c();return p}return i(s,"_"),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:i(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}i(H,"$constructor");var lr=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$o=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Vs={};function wr(e){return e&&Object.assign(Vs,e),Vs}i(wr,"config");function Zs(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}i(Zs,"getEnumValues");function Vp(e,t){return typeof t=="bigint"?t.toString():t}i(Vp,"jsonStringifyReplacer");function No(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(No,"cached");function Ws(e){return e==null}i(Ws,"nullish");function Uo(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(Uo,"cleanRegex");var jp=Symbol("evaluating");function it(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==jp)return n===void 0&&(n=jp,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}i(it,"defineLazy");var Gs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function bi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(bi,"isObject");var uO=No(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Hp(e){if(bi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(bi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(Hp,"isPlainObject");var Zp=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(An,"escapeRegex");function Mo(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}i(Mo,"clone");function Ue(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:i(()=>t.error,"error")}:t}i(Ue,"normalizeParams");function Wp(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(Wp,"optionalKeys");var Gp={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function En(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(En,"aborted");function qr(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}i(qr,"prefixIssues");function Do(e){return typeof e=="string"?e:e?.message}i(Do,"unwrapMessage");function Fr(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=Do(e.inst?._zod.def?.error?.(e))??Do(t?.error?.(e))??Do(r.customError?.(e))??Do(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}i(Fr,"finalizeIssue");function Ks(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(Ks,"getLengthableOrigin");function Js(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}i(Js,"issue");var Kp=i((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Vp,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),Jp=H("$ZodError",Kp),xi=H("$ZodError",Kp,{Parent:Error});var cO=i(e=>(t,r,n,o)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new lr;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>Fr(l,a,wr())));throw Gs(u,o?.callee),u}return s.value},"_parse"),Lo=cO(xi),pO=i(e=>async(t,r,n,o)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>Fr(l,a,wr())));throw Gs(u,o?.callee),u}return s.value},"_parseAsync"),qo=pO(xi),dO=i(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new lr;return a.issues.length?{success:!1,error:new(e??Jp)(a.issues.map(s=>Fr(s,o,wr())))}:{success:!0,data:a.value}},"_safeParse"),_i=dO(xi),mO=i(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>Fr(s,o,wr())))}:{success:!0,data:a.value}},"_safeParseAsync"),sn=mO(xi);var fO="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",hO=new RegExp(`^${fO}$`);var Xp=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Yp=/^-?\d+n?$/,Qp=/^-?\d+$/,Xs=/^-?\d+(?:\.\d+)?$/,ed=/^(?:true|false)$/i;var Pr=H("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),gO={number:"number",bigint:"bigint",object:"date"};var td=H("$ZodCheckGreaterThan",(e,t)=>{Pr.init(e,t);let r=gO[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var rd=H("$ZodCheckNumberFormat",(e,t)=>{Pr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,a]=Gp[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=o,u.maximum=a,r&&(u.pattern=Qp)}),e._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}u<o&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}});var nd=H("$ZodCheckMaxLength",(e,t)=>{var r;Pr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Ws(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let o=n.value;if(o.length<=t.maximum)return;let s=Ks(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),id=H("$ZodCheckMinLength",(e,t)=>{var r;Pr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Ws(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let s=Ks(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var Ys=H("$ZodCheckStringFormat",(e,t)=>{var r,n;Pr.init(e,t),e._zod.onattach.push(o=>{let a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),od=H("$ZodCheckRegex",(e,t)=>{Ys.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var sd={major:4,minor:3,patch:6};var Ge=H("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=sd;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=i((s,u,l)=>{let p=En(s),c;for(let m of u){if(m._zod.def.when){if(!m._zod.def.when(s))continue}else if(p)continue;let f=s.issues.length,d=m._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new lr;if(c||d instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await d,s.issues.length!==f&&(p||(p=En(s,f)))});else{if(s.issues.length===f)continue;p||(p=En(s,f))}}return c?c.then(()=>s):s},"runChecks"),a=i((s,u,l)=>{if(En(s))return s.aborted=!0,s;let p=o(u,n,l);if(p instanceof Promise){if(l.async===!1)throw new lr;return p.then(c=>e._zod.parse(c,l))}return e._zod.parse(p,l)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let p=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(c=>a(c,s,u)):a(p,s,u)}let l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new lr;return l.then(p=>o(p,n,u))}return o(l,n,u)}}it(e,"~standard",()=>({validate:i(o=>{try{let a=_i(e,o);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return sn(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),jo=H("$ZodString",(e,t)=>{Ge.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xp(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Qs=H("$ZodStringFormat",(e,t)=>{Ys.init(e,t),jo.init(e,t)});var dd=H("$ZodURL",(e,t)=>{Qs.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var eu=H("$ZodNumber",(e,t)=>{Ge.init(e,t),e._zod.pattern=e._zod.bag.pattern??Xs,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),r}}),md=H("$ZodNumberFormat",(e,t)=>{rd.init(e,t),eu.init(e,t)}),tu=H("$ZodBoolean",(e,t)=>{Ge.init(e,t),e._zod.pattern=ed,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),fd=H("$ZodBigInt",(e,t)=>{Ge.init(e,t),e._zod.pattern=Yp,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var hd=H("$ZodAny",(e,t)=>{Ge.init(e,t),e._zod.parse=r=>r}),gd=H("$ZodUnknown",(e,t)=>{Ge.init(e,t),e._zod.parse=r=>r});var yd=H("$ZodVoid",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),vd=H("$ZodDate",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,a=o instanceof Date;return a&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...a?{received:"Invalid Date"}:{},inst:e}),r}});function ud(e,t,r){e.issues.length&&t.issues.push(...qr(r,e.issues)),t.value[r]=e.value}i(ud,"handleArrayResult");var bd=H("$ZodArray",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let a=[];for(let s=0;s<o.length;s++){let u=o[s],l=t.element._zod.run({value:u,issues:[]},n);l instanceof Promise?a.push(l.then(p=>ud(p,r,s))):ud(l,r,s)}return a.length?Promise.all(a).then(()=>r):r}});function Bo(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...qr(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}i(Bo,"handlePropertyResult");function yO(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=Wp(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(yO,"normalizeDef");function vO(e,t,r,n,o,a){let s=[],u=o.keySet,l=o.catchall._zod,p=l.def.type,c=l.optout==="optional";for(let m in t){if(u.has(m))continue;if(p==="never"){s.push(m);continue}let f=l.run({value:t[m],issues:[]},n);f instanceof Promise?e.push(f.then(d=>Bo(d,r,m,t,c))):Bo(f,r,m,t,c)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}i(vO,"handleCatchall");var xd=H("$ZodObject",(e,t)=>{if(Ge.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let l={...u};return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let n=No(()=>yO(t));it(e._zod,"propValues",()=>{let u=t.shape,l={};for(let p in u){let c=u[p]._zod;if(c.values){l[p]??(l[p]=new Set);for(let m of c.values)l[p].add(m)}}return l});let o=bi,a=t.catchall,s;e._zod.parse=(u,l)=>{s??(s=n.value);let p=u.value;if(!o(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let c=[],m=s.shape;for(let f of s.keys){let d=m[f],h=d._zod.optout==="optional",_=d._zod.run({value:p[f],issues:[]},l);_ instanceof Promise?c.push(_.then(v=>Bo(v,u,f,p,h))):Bo(_,u,f,p,h)}return a?vO(c,p,u,l,n.value,e):c.length?Promise.all(c).then(()=>u):u}});function ld(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let o=e.filter(a=>!En(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>Fr(s,n,wr())))}),t)}i(ld,"handleUnionResults");var ru=H("$ZodUnion",(e,t)=>{Ge.init(e,t),it(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),it(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>Uo(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,a)=>{if(r)return n(o,a);let s=!1,u=[];for(let l of t.options){let p=l._zod.run({value:o.value,issues:[]},a);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>ld(l,o,e,a)):ld(u,o,e,a)}});var _d=H("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ru.init(e,t);let r=e._zod.parse;it(e._zod,"propValues",()=>{let o={};for(let a of t.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[u,l]of Object.entries(s)){o[u]||(o[u]=new Set);for(let p of l)o[u].add(p)}}return o});let n=No(()=>{let o=t.options,a=new Map;for(let s of o){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let l of u){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,s)}}return a});e._zod.parse=(o,a)=>{let s=o.value;if(!bi(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=n.value.get(s?.[t.discriminator]);return u?u._zod.run(o,a):t.unionFallback?r(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}});var kd=H("$ZodRecord",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Hp(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let a=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let c=t.valueType._zod.run({value:o[p],issues:[]},n);c instanceof Promise?a.push(c.then(m=>{m.issues.length&&r.issues.push(...qr(p,m.issues)),r.value[p]=m.value})):(c.issues.length&&r.issues.push(...qr(p,c.issues)),r.value[p]=c.value)}let l;for(let p in o)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let l=t.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Xs.test(u)&&l.issues.length){let m=t.keyType._zod.run({value:Number(u),issues:[]},n);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(l=m)}if(l.issues.length){t.mode==="loose"?r.value[u]=o[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>Fr(m,n,wr())),input:u,path:[u],inst:e});continue}let c=t.valueType._zod.run({value:o[u],issues:[]},n);c instanceof Promise?a.push(c.then(m=>{m.issues.length&&r.issues.push(...qr(u,m.issues)),r.value[l.value]=m.value})):(c.issues.length&&r.issues.push(...qr(u,c.issues)),r.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}});var wd=H("$ZodEnum",(e,t)=>{Ge.init(e,t);let r=Zs(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>Zp.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{let s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),Pd=H("$ZodLiteral",(e,t)=>{if(Ge.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?An(n):n?An(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}});var Sd=H("$ZodTransform",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new $o(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new lr;return r.value=o,r}});function cd(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(cd,"handleOptionalResult");var Td=H("$ZodOptional",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Uo(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>cd(a,r.value)):cd(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var Ad=H("$ZodNullable",(e,t)=>{Ge.init(e,t),it(e._zod,"optin",()=>t.innerType._zod.optin),it(e._zod,"optout",()=>t.innerType._zod.optout),it(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Uo(r.source)}|null)$`):void 0}),it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var Ed=H("$ZodPipe",(e,t)=>{Ge.init(e,t),it(e._zod,"values",()=>t.in._zod.values),it(e._zod,"optin",()=>t.in._zod.optin),it(e._zod,"optout",()=>t.out._zod.optout),it(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>Fo(s,t.in,n)):Fo(a,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(a=>Fo(a,t.out,n)):Fo(o,t.out,n)}});function Fo(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(Fo,"handlePipeResult");var Id=H("$ZodCustom",(e,t)=>{Pr.init(e,t),Ge.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(a=>pd(a,r,n,e));pd(o,r,n,e)}});function pd(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(Js(o))}}i(pd,"handleRefineResult");var Od;var nu=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Rd(){return new nu}i(Rd,"registry");(Od=globalThis).__zod_globalRegistry??(Od.__zod_globalRegistry=Rd());var iu=globalThis.__zod_globalRegistry;function zd(e,t){return new e({type:"string",...Ue(t)})}i(zd,"_string");function $d(e,t){return new e({type:"string",coerce:!0,...Ue(t)})}i($d,"_coercedString");function Dd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}i(Dd,"_url");function Nd(e,t){return new e({type:"number",checks:[],...Ue(t)})}i(Nd,"_number");function Ud(e,t){return new e({type:"number",coerce:!0,checks:[],...Ue(t)})}i(Ud,"_coercedNumber");function Md(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ue(t)})}i(Md,"_int");function Ld(e,t){return new e({type:"boolean",...Ue(t)})}i(Ld,"_boolean");function qd(e,t){return new e({type:"boolean",coerce:!0,...Ue(t)})}i(qd,"_coercedBoolean");function Fd(e,t){return new e({type:"bigint",coerce:!0,...Ue(t)})}i(Fd,"_coercedBigint");function Bd(e){return new e({type:"any"})}i(Bd,"_any");function jd(e){return new e({type:"unknown"})}i(jd,"_unknown");function Vd(e,t){return new e({type:"void",...Ue(t)})}i(Vd,"_void");function Hd(e,t){return new e({type:"date",coerce:!0,...Ue(t)})}i(Hd,"_coercedDate");function Vo(e,t){return new td({check:"greater_than",...Ue(t),value:e,inclusive:!0})}i(Vo,"_gte");function ou(e,t){return new nd({check:"max_length",...Ue(t),maximum:e})}i(ou,"_maxLength");function er(e,t){return new id({check:"min_length",...Ue(t),minimum:e})}i(er,"_minLength");function Br(e,t){return new od({check:"string_format",format:"regex",...Ue(t),pattern:e})}i(Br,"_regex");function Zd(e,t,r){let n=Ue(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}i(Zd,"_custom");var ot=H("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Ge.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>Lo(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>_i(e,r,n),e.parseAsync=async(r,n)=>qo(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>sn(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Mo(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Zo=H("ZodMiniString",(e,t)=>{jo.init(e,t),ot.init(e,t)});function x(e){return zd(Zo,e)}i(x,"string");var Wd=H("ZodMiniStringFormat",(e,t)=>{Qs.init(e,t),Zo.init(e,t)});var OO=H("ZodMiniURL",(e,t)=>{dd.init(e,t),Wd.init(e,t)});function Gd(e){return Dd(OO,e)}i(Gd,"url");var Wo=H("ZodMiniNumber",(e,t)=>{eu.init(e,t),ot.init(e,t)});function wt(e){return Nd(Wo,e)}i(wt,"number");var RO=H("ZodMiniNumberFormat",(e,t)=>{md.init(e,t),Wo.init(e,t)});function Kd(e){return Md(RO,e)}i(Kd,"int");var au=H("ZodMiniBoolean",(e,t)=>{tu.init(e,t),ot.init(e,t)});function ke(e){return Ld(au,e)}i(ke,"boolean");var Jd=H("ZodMiniBigInt",(e,t)=>{fd.init(e,t),ot.init(e,t)});var zO=H("ZodMiniAny",(e,t)=>{hd.init(e,t),ot.init(e,t)});function wi(){return Bd(zO)}i(wi,"any");var $O=H("ZodMiniUnknown",(e,t)=>{gd.init(e,t),ot.init(e,t)});function ie(){return jd($O)}i(ie,"unknown");var DO=H("ZodMiniVoid",(e,t)=>{yd.init(e,t),ot.init(e,t)});function Xd(e){return Vd(DO,e)}i(Xd,"_void");var Yd=H("ZodMiniDate",(e,t)=>{vd.init(e,t),ot.init(e,t)});var NO=H("ZodMiniArray",(e,t)=>{bd.init(e,t),ot.init(e,t)});function ue(e,t){return new NO({type:"array",element:e,...Ue(t)})}i(ue,"array");var UO=H("ZodMiniObject",(e,t)=>{xd.init(e,t),ot.init(e,t),it(e,"shape",()=>t.shape)});function I(e,t){let r={type:"object",shape:e??{},...Ue(t)};return new UO(r)}i(I,"object");var MO=H("ZodMiniUnion",(e,t)=>{ru.init(e,t),ot.init(e,t)});function le(e,t){return new MO({type:"union",options:e,...Ue(t)})}i(le,"union");var LO=H("ZodMiniDiscriminatedUnion",(e,t)=>{_d.init(e,t),ot.init(e,t)});function jr(e,t,r){return new LO({type:"union",options:t,discriminator:e,...Ue(r)})}i(jr,"discriminatedUnion");var qO=H("ZodMiniRecord",(e,t)=>{kd.init(e,t),ot.init(e,t)});function oe(e,t,r){return new qO({type:"record",keyType:e,valueType:t,...Ue(r)})}i(oe,"record");var FO=H("ZodMiniEnum",(e,t)=>{wd.init(e,t),ot.init(e,t),e.options=Object.values(t.entries)});function me(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new FO({type:"enum",entries:r,...Ue(t)})}i(me,"_enum");var BO=H("ZodMiniLiteral",(e,t)=>{Pd.init(e,t),ot.init(e,t)});function X(e,t){return new BO({type:"literal",values:Array.isArray(e)?e:[e],...Ue(t)})}i(X,"literal");var jO=H("ZodMiniTransform",(e,t)=>{Sd.init(e,t),ot.init(e,t)});function Vr(e){return new jO({type:"transform",transform:e})}i(Vr,"transform");var VO=H("ZodMiniOptional",(e,t)=>{Td.init(e,t),ot.init(e,t)});function D(e){return new VO({type:"optional",innerType:e})}i(D,"optional");var HO=H("ZodMiniNullable",(e,t)=>{Ad.init(e,t),ot.init(e,t)});function Pi(e){return new HO({type:"nullable",innerType:e})}i(Pi,"nullable");var ZO=H("ZodMiniPipe",(e,t)=>{Ed.init(e,t),ot.init(e,t)});function Hr(e,t){return new ZO({type:"pipe",in:e,out:t})}i(Hr,"pipe");var WO=H("ZodMiniCustom",(e,t)=>{Id.init(e,t),ot.init(e,t)});function Go(e,t){return Zd(WO,e??(()=>!0),t)}i(Go,"custom");var Si={};Fp(Si,{bigint:()=>QO,boolean:()=>YO,date:()=>eR,number:()=>XO,string:()=>JO});function JO(e){return $d(Zo,e)}i(JO,"string");function XO(e){return Ud(Wo,e)}i(XO,"number");function YO(e){return qd(au,e)}i(YO,"boolean");function QO(e){return Fd(Jd,e)}i(QO,"bigint");function eR(e){return Hd(Yd,e)}i(eR,"date");var uu=I({retryOnFailure:I({defaultValue:D(ke()),hide:D(ke())}),continueOnFailure:I({defaultValue:D(ke()),hide:D(ke())})}),su=class{constructor(t,r,n,o,a,s,u,l,p,c,m){this.name=t;this.displayName=r;this.description=n;this.props=o;this.run=a;this.test=s;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=p;this.audience=c;this.aiMetadata=m}static{i(this,"IAction")}},C=i(e=>new su(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var be=I({displayName:x(),description:D(x())}),ce=i((e,t)=>I({type:X(t),required:ke(),defaultValue:D(wi())}),"TPropertyValue");var Nt=I({...be.shape,...ce(x(),"SHORT_TEXT").shape}),Sr=I({...be.shape,...ce(x(),"LONG_TEXT").shape});var em=I({label:x(),value:ie()}),Ko=I({disabled:D(ke()),placeholder:D(x()),options:ue(em)});var Ut=I({...be.shape,options:Ko,...ce(ie(),"STATIC_DROPDOWN").shape}),Tr=I({...be.shape,options:Ko,...ce(ue(ie()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var lu=I({...be.shape,...ce(ie(),"DROPDOWN").shape,refreshers:ue(x())}),Ti=I({...be.shape,...ce(ue(ie()),"MULTI_SELECT_DROPDOWN").shape,refreshers:ue(x())});var Ar=I({...be.shape,...ce(ke(),"CHECKBOX").shape});var Er=I({...be.shape,...ce(wt(),"NUMBER").shape});var Ai=I({...be.shape,streaming:D(ke()),...ce(ie(),"FILE").shape});var Ei=I({...be.shape,...ce(x(),"DATE_TIME").shape});var tm=oe(x(),le([Nt,Sr,Ut,Ti,Tr,Ar,Er,Ai,Ei])),Ii=I({...be.shape,properties:tm,...ce(ue(ie()),"ARRAY").shape});var Ci=I({...be.shape,...ce(le([oe(x(),ie())]),"JSON").shape});var rm=le([Nt,Ut,Ci,Ii,Tr]),rR=oe(x(),rm),cu=I({refreshers:ue(x()),...be.shape,...ce(ie(),"DYNAMIC").shape});var Jo=I({...be.shape,...ce(Xd(),"MARKDOWN").shape});var Oi=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Oi||{}),In=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(In||{}),Cn=(y=>(y.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",y.COMMUNICATION="COMMUNICATION",y.COMMERCE="COMMERCE",y.CORE="CORE",y.UNIVERSAL_AI="UNIVERSAL_AI",y.FLOW_CONTROL="FLOW_CONTROL",y.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",y.ACCOUNTING="ACCOUNTING",y.PRODUCTIVITY="PRODUCTIVITY",y.CONTENT_AND_FILES="CONTENT_AND_FILES",y.DEVELOPER_TOOLS="DEVELOPER_TOOLS",y.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",y.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",y.HUMAN_RESOURCES="HUMAN_RESOURCES",y.PAYMENT_PROCESSING="PAYMENT_PROCESSING",y.MARKETING="MARKETING",y.SALES_AND_CRM="SALES_AND_CRM",y))(Cn||{});var Ri=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Ri||{}),pu="both_client_credentials_and_authorization_code";var Qe=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Qe||{}),zi=(a=>(a.NONE="NONE",a.HEADER_PRESENT="HEADER_PRESENT",a.QUERY_PRESENT="QUERY_PRESENT",a.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",a.HEAD_REQUEST="HEAD_REQUEST",a))(zi||{}),nR=I({strategy:me(zi),paramName:D(x())}),$i=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))($i||{});var Xo=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Xo||{}),nm=I({status:D(wt()),body:D(ie()),headers:D(oe(x(),x()))}),im=I({type:X("DELAY"),resumeDateTime:x(),requestIdToReply:D(x()),handlerId:D(x()),streamStepProgress:D(me(Xo))}),om=I({type:X("WEBHOOK"),requestId:x(),requestIdToReply:D(x()),response:nm,handlerId:D(x()),streamStepProgress:D(me(Xo))}),iR=le([im,om]);var oR=I({body:ie(),rawBody:D(ie()),headers:oe(x(),x()),queryParams:oe(x(),x())});function Mt(e){return e==null}i(Mt,"isNil");function Di(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}i(Di,"isEmpty");function Te(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}i(Te,"assertNotNullOrUndefined");var du=B(require("crypto"),1);var aR=128,un,On,sR=i(e=>{!un||un.length<e?(un=Buffer.allocUnsafe(e*aR),du.default.randomFillSync(un),On=0):On+e>un.length&&(du.default.randomFillSync(un),On=0),On+=e},"fillPool"),uR=i(e=>(sR(e|=0),un.subarray(On-e,On)),"random"),lR=i((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(a=t)=>{let s="";for(;;){let u=r(o),l=o;for(;l--;)if(s+=e[u[l]&n]||"",s.length===a)return s}}},"customRandom"),sm=i((e,t=21)=>lR(e,t,uR),"customAlphabet");var cR="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",um=21,l7=x().check(Br(new RegExp(`^[0-9a-zA-Z]{${um}}$`))),pR=sm(cR,um);var Zr=Hr(Vr(e=>e instanceof Date?e.toISOString():e),x()),Ft={id:x(),created:Zr,updated:Zr},je=i(e=>D(Pi(e)),"Nullable");function mu(e){return D(Pi(me(e)))}i(mu,"NullableEnum");var d7=Hr(Vr(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),D(ke())),Yo=i(e=>Hr(Vr(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),D(ue(e))),"OptionalArrayFromQuery");var h7=oe(x(),ie());var Ni=(c=>(c.OPENAI="openai",c.OPENROUTER="openrouter",c.ANTHROPIC="anthropic",c.AZURE="azure",c.GOOGLE="google",c.ACTIVEPIECES="activepieces",c.CLOUDFLARE_GATEWAY="cloudflare-gateway",c.CUSTOM="custom",c.BEDROCK="bedrock",c.MISTRAL="mistral",c))(Ni||{});var A7=x().check(Br(/^#[0-9A-Fa-f]{6}$/));var I7=I({filename:x(),data:ie(),type:X("file"),mimetype:D(x())});var dR=B(cm());var N7=I({...Ft,name:x(),permissions:ue(x()),platformId:je(x()),type:x(),userCount:D(wt())});var pm=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(pm||{}),fu=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(fu||{}),hu=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(hu||{});var gu=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(gu||{});var yu=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(yu||{});var mR=I({mode:me(pm),value:ie()}),fR=I({auth:D(x()),fields:oe(x(),mR)}),hR=I({pieceName:x(),pieceVersion:x(),actionName:x(),predefinedInput:D(fR)}),gR=I({type:X("PIECE"),toolName:x().check(er(1)),pieceMetadata:hR}),yR=I({type:X("none")}),vR=I({type:X("access_token"),accessToken:x()}),bR=I({type:X("api_key"),apiKey:x(),apiKeyHeader:x()}),xR=I({type:X("headers"),headers:oe(x(),x())}),_R=jr("type",[yR,vR,bR,xR]),dm=I({type:X("FLOW"),toolName:x().check(er(1)),externalFlowId:x(),flowDisplayName:D(x())}),mm=I({type:X("MCP"),toolName:x().check(er(1)),serverUrl:Gd(),protocol:me(hu),auth:_R}),fm=I({type:X("KNOWLEDGE_BASE"),toolName:x().check(er(1)),sourceType:me(fu),sourceId:x(),sourceName:x()}),kR=jr("type",[gR,dm,mm,fm]),wR=I({displayName:x(),description:D(x()),type:me(gu)}),hm=I({type:X("MARKDOWN"),markdown:x()}),Rn={type:X("TOOL_CALL"),input:je(oe(x(),ie())),output:D(ie()),toolName:x(),status:me(yu),toolCallId:x(),startTime:x(),endTime:D(x())},mX=I(Rn),gm=jr("toolCallType",[I({...Rn,toolCallType:X("PIECE"),pieceName:x(),pieceVersion:x(),actionName:x()}),I({...Rn,toolCallType:X("FLOW"),displayName:x(),externalFlowId:x()}),I({...Rn,toolCallType:X("MCP"),displayName:x(),serverUrl:x()}),I({...Rn,toolCallType:X("KNOWLEDGE_BASE"),displayName:x(),sourceType:x()}),I({...Rn,toolCallType:X("UNKNOWN"),displayName:x()})]),PR=le([hm,gm]);var vu=(r=>(r.IMAGE="image",r.TEXT="text",r))(vu||{}),Ir=I({apiKey:x()}),SR=Ir,TR=I({apiKey:x(),apiKeyHash:x()}),AR=Ir,ER=Ir,IR=Ir,CR=Ir,OR=Ir,RR=Ir,zR=Ir,_m=I({accessKeyId:x().check(er(1)),secretAccessKey:x().check(er(1))}),$R=I({}),DR=I({}),NR=I({}),UR=I({}),MR=I({}),LR=I({}),km=I({modelId:x(),modelName:x(),modelType:me(vu)}),wm=I({apiKeyHeader:x(),baseUrl:x(),models:ue(km),defaultHeaders:D(oe(x(),x()))}),Pm=I({accountId:x(),gatewayId:x(),models:ue(km),vertexProject:D(x()),vertexRegion:D(x())}),Sm=I({resourceName:x(),apiVersion:Hr(Vr(e=>typeof e=="string"&&e.trim().length===0?void 0:e),D(x()))}),Tm=I({region:x().check(er(1))}),qR=le([SR,IR,CR,OR,RR,ER,AR,TR,_m,zR]),Am=le([wm,Pm,Sm,Tm,$R,NR,UR,MR,DR,LR]),FR=I({id:x(),name:x(),type:me(vu)}),BR=I({id:x(),name:x(),provider:me(Ni),config:Am,enabledForChat:ke()}),jR=I({provider:me(Ni),config:Am,auth:qR,platformId:x()});var yX={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},ym=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],VR=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],HR=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],vm=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],ZR=["grok-4.20","grok-4.1-fast"],WR={openai:ym,anthropic:VR,google:vm,activepieces:[...HR.map(e=>`anthropic/${e}`),...ym.map(e=>`openai/${e}`),...vm.map(e=>`google/${e}`),...ZR.map(e=>`x-ai/${e}`)]};var bm=128e3,GR={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function KR({provider:e}){return e?GR[e]??bm:bm}i(KR,"getMaxContextTokens");var xm={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},JR={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},XR=new Set(["anthropic","mistral"]);function cr(e){return{chatModels:WR[e],maxContextTokens:KR({provider:e}),defaultEmbeddingModel:xm[e],supportsEmbedding:xm[e]!==void 0,supportsImageGeneration:!XR.has(e),webSearch:JR[e]}}i(cr,"buildProviderCapabilities");var YR={openai:cr("openai"),anthropic:cr("anthropic"),openrouter:cr("openrouter"),azure:cr("azure"),google:cr("google"),"cloudflare-gateway":cr("cloudflare-gateway"),custom:cr("custom"),bedrock:cr("bedrock"),mistral:cr("mistral"),activepieces:cr("activepieces")};var QR=I({base64Url:x(),fileName:x(),extension:D(x())}),ez=I({mimeType:x(),url:x(),fileName:D(x())}),bu=le([QR,ez]);var tz=le([I({type:X("file"),value:bu}),I({type:X("markdown"),value:x(),files:D(ue(bu))})]),rz=I({sessionId:x(),message:x(),files:D(ue(x()))});var Im=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(Im||{}),Cm=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(Cm||{}),xu=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(xu||{});var nz=le([I({...Ft,name:x(),externalId:x(),type:X("STATIC_DROPDOWN"),tableId:x(),projectId:x(),data:I({options:ue(I({value:x()}))})}),I({...Ft,name:x(),externalId:x(),type:le([X("TEXT"),X("NUMBER"),X("DATE")]),tableId:x(),projectId:x()})]),iz=I({...Ft,name:x(),folderId:je(x()),projectId:x(),externalId:x(),status:mu(Cm),trigger:mu(Im)}),oz=I({...Ft,tableId:x(),projectId:x(),cells:oe(x(),I({updated:x(),created:x(),value:ie(),fieldName:x()}))}),az=I({events:ue(me(xu)),webhookUrl:x(),flowId:x()}),sz=I({fields:ue(I({id:x(),name:x()})),rows:ue(oe(x(),x())),name:x()}),uz=I({projectId:x(),limit:D(Si.number()),cursor:D(x()),name:D(x()),externalIds:Yo(x()),folderId:D(x()),folderIds:Yo(x())}),lz=I({records:ue(ue(I({fieldId:x(),value:Rm()}))),tableId:x()}),cz=I({cells:D(ue(I({fieldId:x(),value:Rm()}))),tableId:x(),agentUpdate:D(ke())}),Om=jr("operator",[ln("eq"),ln("neq"),ln("gt"),ln("gte"),ln("lt"),ln("lte"),ln("co"),Em("exists"),Em("not_exists")]),pz=I({tableId:x(),limit:D(Si.number()),cursor:D(x()),filters:Yo(Om)});function Rm(){return Hr(Vr(e=>e==null?e:String(e)),Pi(x()))}i(Rm,"coerceToString");function ln(e){return I({fieldId:x(),operator:X(e),value:x()})}i(ln,"valueFilter");function Em(e){return I({fieldId:x(),operator:X(e)})}i(Em,"existenceFilter");var dz=I({status:D(wt()),body:D(ie()),headers:D(oe(x(),x()))}),mz=I({...Ft,deleted:je(Zr),ownerId:x(),displayName:x(),platformId:x(),externalId:je(x())});var zm=I({name:x(),description:D(x()),type:x(),required:ke()}),fz=I({pieceName:x(),triggerName:x(),input:I({toolName:x(),toolDescription:x(),inputSchema:ue(zm),returnsResponse:ke()})});var $m="^[0-9]+\\.[0-9]+\\.[0-9]+$",NX=new RegExp($m),gz="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",UX=x().check(Br(new RegExp($m))),MX=x().check(Br(new RegExp(gz))),yz=I({packageType:X("ARCHIVE"),pieceType:me(In),pieceName:x(),pieceVersion:x(),archiveId:x(),platformId:x()}),Dm=I({packageType:X("REGISTRY"),pieceType:X("OFFICIAL"),pieceName:x(),pieceVersion:x()}),Nm=I({packageType:X("REGISTRY"),pieceType:X("CUSTOM"),pieceName:x(),pieceVersion:x(),platformId:x()}),LX=le([Dm,Nm]),qX=le([yz,Dm,Nm]);var vz=jr("type",[I({type:X("CRON_EXPRESSION"),cronExpression:x(),timezone:x()}),I({type:X("INTERVAL"),intervalMs:Kd().check(Vo(6e4))})]),FX=I({...Ft,type:me(Qe),projectId:x(),flowId:x(),triggerName:x(),schedule:je(vz),flowVersionId:x(),pieceName:x(),pieceVersion:x(),deleted:je(x()),simulate:ke()}),Um=(v=>(v.UNKNOWN="UNKNOWN",v.FLOW_RUN_LOG="FLOW_RUN_LOG",v.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",v.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",v.FLOW_STEP_FILE="FLOW_STEP_FILE",v.SAMPLE_DATA="SAMPLE_DATA",v.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",v.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",v.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",v.PROJECT_RELEASE="PROJECT_RELEASE",v.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",v.PLATFORM_ASSET="PLATFORM_ASSET",v.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",v.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",v.KNOWLEDGE_BASE="KNOWLEDGE_BASE",v.FLOW_BUNDLE="FLOW_BUNDLE",v))(Um||{}),Mm=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(Mm||{}),Lm=(r=>(r.S3="S3",r.DB="DB",r))(Lm||{}),BX=I({...Ft,projectId:je(x()),platformId:je(x()),type:me(Um),compression:me(Mm),data:D(ie()),location:me(Lm),size:je(wt()),fileName:je(x()),s3Key:je(x()),metadata:je(oe(x(),x()))}),qm=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(qm||{}),Fm=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(Fm||{}),jX=I({id:x(),email:x(),firstName:x(),status:me(Fm),externalId:je(x()),platformId:je(x()),platformRole:me(qm),lastName:x(),created:Zr,updated:Zr,lastActiveDate:je(Zr),imageUrl:je(x())});var wu=I({...be.shape,...ce(oe(x(),ie()),"OBJECT").shape});var Bm=I({...be.shape,...ce(x(),"COLOR").shape});var Pu=le([Nt,Sr,Jo,Ar,Ut,Tr,lu,Ti,cu,Er,Ii,wu,Ci,Ei,Ai,Bm]),k={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var pr=I({displayName:x(),description:D(x())});var jm=I({username:x(),password:x()}),Su=I({...pr.shape,username:I({displayName:x(),description:D(x())}),password:I({displayName:x(),description:D(x())}),...ce(jm,"BASIC_AUTH").shape});var kz=oe(x(),le([Nt,Sr,Er,Ar,Ut])),Tu=I({...pr.shape,props:kz,...ce(ie(),"CUSTOM_AUTH").shape});var cn=I({...pr.shape,...ce(I({auth:x()}),"SECRET_TEXT").shape});var wz=oe(x(),le([Nt,Sr,cn,Er,Ar,Ut,Tr,Jo])),Vm=I({...pr.shape,props:wz,...ce(ie(),"OIDC").shape});var Au=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Au||{}),Hm=le([Nt,cn,Ut]),Zm=oe(x(),Hm),Pz=I({props:D(oe(x(),Hm)),authUrl:x(),tokenUrl:x(),scope:ue(x()),prompt:D(le([X("none"),X("consent"),X("login"),X("omit")])),pkce:D(ke()),pkceMethod:D(le([X("plain"),X("S256")])),authorizationMethod:D(me(Au)),grantType:D(le([me(Ri),X(pu)])),extra:D(oe(x(),x()))}),Wm=I({access_token:x(),props:D(Zm),data:oe(x(),wi())}),Eu=I({...pr.shape,...Pz.shape,...ce(Wm,"OAUTH2").shape});var zn=le([Su,Tu,Vm,Eu,cn]),Mi="Connection",$n={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Mi}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Mi,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Mi}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Mi}},None(){}};var _Q={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var Sz=I({...be.shape,...ce(ie(),"CUSTOM").shape,code:x()});var Tz=le([Pu,zn]),Iu=oe(x(),Tz),FQ=oe(x(),Pu);var Gm=le([I({strategy:X("CRON"),cronExpression:x()}),I({strategy:X("NONE")})]),Dn=class{constructor(t,r,n,o,a,s,u,l,p,c,m,f,d,h,_,v,y,w,S){this.name=t;this.displayName=r;this.description=n;this.requireAuth=o;this.props=a;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=c;this.onEnable=m;this.onDisable=f;this.onStart=d;this.run=h;this.test=_;this.sampleData=v;this.testStrategy=y;this.outputSchema=w;this.aiMetadata=S}static{i(this,"ITrigger")}},Ae=i(e=>{switch(e.type){case"WEBHOOK":return new Dn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata);case"POLLING":return new Dn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"MANUAL":return new Dn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"APP_WEBHOOK":return new Dn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,Mt(e.sampleData)&&Mt(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var Km="2",ea="0.82.0";var Cu=class{constructor(t,r,n,o,a,s,u,l,p=ea,c,m="",f){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=c;this.description=m;this.deprecated=f;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:Km}),"getContextInfo");(!Az(p)||Ez(p,ea))&&(this.minimumSupportedRelease=ea),a.forEach(d=>this._actions[d.name]=d),s.forEach(d=>this._triggers[d.name]=d)}static{i(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},Jm=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(a=>a.type===r.type)))throw new Error("Auth properties must be unique by type");return new Cu(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Az(e){return/^\d+\.\d+\.\d+$/.test(e)}i(Az,"isValidSimpleSemver");function Ez(e,t){let[r,n,o]=e.split(".").map(Number),[a,s,u]=t.split(".").map(Number);return r!==a?r<a:n!==s?n<s:o<u}i(Ez,"isSemverLessThan");var Iz=D(oe(x(),oe(x(),x()))),Xm=I({id:D(x()),name:x(),displayName:x(),logoUrl:x(),description:x(),authors:ue(x()),platformId:D(x()),directoryPath:D(x()),auth:D(le([zn,ue(zn)])),version:x(),categories:D(ue(me(Cn))),minimumSupportedRelease:D(x()),maximumSupportedRelease:D(x()),deprecated:D(ke()),i18n:Iz}),Cz=me(["human","ai","both"]),Ym=I({description:D(x()),idempotent:D(ke())}),Qm=I({name:x(),displayName:x(),description:x(),props:Iu,requireAuth:ke(),errorHandlingOptions:D(uu),outputSchema:D(Go()),audience:D(Cz),aiMetadata:D(Ym)}),ef=I({name:x(),displayName:x(),description:x(),props:Iu,errorHandlingOptions:D(uu),type:me(Qe),sampleData:ie(),handshakeConfiguration:D(Go()),renewConfiguration:D(Gm),testStrategy:me($i),outputSchema:D(Go()),aiMetadata:D(Ym)}),Oz=I({...Xm.shape,actions:oe(x(),Qm),triggers:oe(x(),ef)}),Rz=I({...Xm.shape,actions:wt(),triggers:wt(),suggestedActions:D(ue(Qm)),suggestedTriggers:D(ue(ef))}),tf=I({projectUsage:wt(),pieceType:me(In),packageType:me(Oi),platformId:D(x()),archiveId:D(x())}),Fee=I({...Oz.shape,...tf.shape}),Bee=I({...Rz.shape,...tf.shape}),jee=I({name:x(),version:x()});var zz=B(require("path")),$z=B(require("fs/promises"));var af=require("node:stream");var ta=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((a,s)=>{o.append(s,a)}),{urlWithoutQueryParams:n,queryParams:o}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var ra=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new Ou,r=new Ru){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Ou=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},Ru=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var Li=class extends Error{constructor(r,n){let o=n.status||500,a=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:a},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=a}static{i(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function rf({error:e,requestBody:t}){return e instanceof Li?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}i(rf,"toFailsafeOutput");var pn=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(pn||{});var na=class extends ta{static{i(this,"FetchHttpClient")}constructor(t="",r=new ra){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),a=this.getHeaders(t),s=t.queryParams??{};for(let[S,O]of Object.entries(s))o.append(S,O);let u=o.toString(),l=u?`${n}?${u}`:n,p=t.responseType??"json",c=t.followRedirects??!0,m=t.retries??0,{body:f,extraHeaders:d,isStream:h}=Dz(t.method)?Nz(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},_=Mz({...a,...d}),v=await Uz(async()=>{let S=new AbortController,O=t.timeout&&t.timeout>0?setTimeout(()=>S.abort(),t.timeout):void 0;try{let F={method:t.method.toString(),headers:_,body:f,redirect:c?"follow":"manual",signal:S.signal};return h&&(F.duplex="half"),r?.dispatcher!==void 0&&(F.dispatcher=r.dispatcher),await fetch(l,F)}finally{O!==void 0&&clearTimeout(O)}},m),y=c?300:400;if(v.status<200||v.status>=y){let S=await nf(v,p),O=new Li(t.body,{status:v.status,responseBody:S});throw console.error("[HttpClient#(sanitized error message)] Request failed:",O),O}let w=await nf(v,p);return{status:v.status,headers:Lz(v.headers),body:w}}};function Dz(e){return e!=="GET"&&e!=="HEAD"}i(Dz,"acceptsRequestBody");function Nz(e,t){if(Fz(e))return{body:void 0,extraHeaders:{},isStream:!1};if(qz(e)){let n=new af.PassThrough;return e.on("error",o=>n.destroy(o)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}i(Nz,"serializeBody");async function nf(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}i(nf,"parseResponseBody");async function Uz(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await of(n);continue}return o}catch(o){if(r=o,n<t){await of(n);continue}throw o}throw r}i(Uz,"sendWithRetries");function of(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(of,"backoff");function Mz(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}i(Mz,"normalizeHeaders");function Lz(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(Lz,"toHttpHeaders");function qz(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}i(qz,"isNodeFormData");function Fz(e){return e==null}i(Fz,"isNil");var tr=new na;var ED=B(require("fs")),sg=B(rl());var ID={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function CD(e){let t=e.split(";")[0].trim().toLowerCase();return ID[t]??""}i(CD,"contentTypeToExtension");var OD=i(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),RD=i((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function ug({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:a,props:s,extraProps:u,authLocation:l="headers"}){return C({audience:"human",name:a||"custom_api_call",displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:k.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:i(async({auth:p})=>({url:k.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
62
- i.e ${RD(t,p)}/resource or /resource`,required:!0,defaultValue:p?t(p):"",...s?.url??{}})}),"props")}),method:k.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(pn).map(p=>({label:p,value:p}))},...s?.method??{}}),headers:k.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...s?.headers??{}}),queryParams:k.Object({displayName:"Query Parameters",required:!0,...s?.queryParams??{}}),body_type:k.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:k.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:i(async({body_type:p})=>{if(!p)return{};let c=p,m={};switch(c){case"none":break;case"json":m.data=k.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":m.data=k.LongText({displayName:"Raw Body",required:!0});break;case"form_data":m.data=k.Array({displayName:"Form Data",required:!0,properties:{fieldName:k.ShortText({displayName:"Field Name",required:!0}),fieldType:k.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:k.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:k.File({displayName:"File Field Value",required:!1})}});break}return m},"props")}),response_is_binary:k.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:k.Checkbox({displayName:"No Error on Failure",required:!1,...s?.failsafe??{}}),timeout:k.Number({displayName:"Timeout (in seconds)",required:!1,...s?.timeout??{}}),followRedirects:k.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...u},run:i(async p=>{let{method:c,url:m,headers:f,queryParams:d,body:h,body_type:_,failsafe:v,timeout:y,response_is_binary:w,followRedirects:S}=p.propsValue;Te(c,"Method"),Te(m,"URL");let O=Mt(r)?{}:await r(p.auth,p.propsValue),F=m.url,M=F.startsWith("http://")||F.startsWith("https://")?F:OD({baseUrl:t(p.auth),relativePath:F}),V={method:c,url:M,headers:{...f??{},...l==="headers"||!Mt(l)?O:{}},queryParams:{...l==="queryParams"?O:{},...d??{}},timeout:y?y*1e3:0,followRedirects:S};if(w&&(V.responseType="arraybuffer"),h)if(_&&_!=="none"){let q=h.data;if(_==="form_data"){let J=q,Z=new sg.default;for(let{fieldName:N,fieldType:j,textFieldValue:pe,fileFieldValue:ee}of J)j==="text"&&!Di(pe)?Z.append(N,pe):j==="file"&&!Di(ee)&&Z.append(N,ee.data,{filename:ee?.filename});V.body=Z,V.headers={...V.headers,...Z.getHeaders()}}else V.body=q}else _||(V.body=h);try{let q=await tr.sendRequest(V);return await zD(p.files,q.body,q.status,q.headers,w)}catch(q){if(v)return rf({error:q,requestBody:V.body});throw q}},"run")})}i(ug,"createCustomApiCallAction");var zD=i(async(e,t,r,n,o)=>{let a;if(o&&$D(t)){let s=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],u=CD(s??"")||"txt",l;t instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?l=t:l=Buffer.from(t),a=await e.write({fileName:`output.${u}`,data:l})}else a=t;return{status:r,headers:n,body:a}},"handleBinaryResponse"),$D=i(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var lg={async validateZod(e,t){let r=I(Object.entries(t).reduce((o,[a,s])=>({...o,[a]:s}),{})),n=await sn(r,e);if(!n.success){let o=n.error.issues.reduce((a,s)=>({...a,[s.path.join(".")]:s.message}),{});throw new Error(JSON.stringify({errors:o},null,2))}}};var QC=B(require("node:crypto"));var nl=$n.OAuth2({description:"Authenticate via a Slack OAuth flow.",authUrl:"https://slack.com/oauth/v2/authorize?user_scope=search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write",tokenUrl:"https://slack.com/api/oauth.v2.access",required:!0,scope:["channels:read","channels:manage","channels:history","chat:write","groups:read","groups:write","groups:history","reactions:read","mpim:read","mpim:write","mpim:history","im:write","im:read","im:history","users:read","files:write","files:read","users:read.email","reactions:write","usergroups:read","usergroups:write","chat:write.customize","links:read","links:write","emoji:read","users.profile:read","channels:write.invites","groups:write.invites","channels:join","conversations.connect:write"]}),DD=$n.CustomAuth({displayName:"Bot Token",description:"Authenticate using a Slack bot token (and optional user token).",required:!0,props:{botToken:$n.SecretText({displayName:"Bot Token",description:"The bot token for your Slack app (starts with xoxb-)",required:!0}),userToken:$n.SecretText({displayName:"User Token",description:"Optional user token for actions that require user-level access (starts with xoxp-)",required:!1})},validate:i(async({auth:e})=>{try{let t=await tr.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${e.botToken}`}});return t.body.ok?{valid:!0}:{valid:!1,error:`Slack auth test failed: ${t.body.error}`}}catch(t){return{valid:!1,error:t.message}}},"validate")}),E=[nl,DD];var Ha=B(W());function Va(e){return e.type==="CUSTOM_AUTH"}i(Va,"isCustomAuth");function z(e){let t=e;return Va(t)?t.props.botToken:t.access_token}i(z,"getBotToken");function _c(e){let t=e;return Va(t)?t.props.userToken||void 0:t.data?.authed_user?.access_token}i(_c,"getUserToken");function Oe(e){let t=_c(e);if(!t)throw new Error(JSON.stringify({message:"Missing user token, please re-authenticate"}));return t}i(Oe,"requireUserToken");async function Ee(e){let t=e;if(!Va(t))return t.data.team_id??t.data.team.id;let r=await tr.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get team ID from Slack auth.test");return r.body.team_id}i(Ee,"getTeamId");async function ri(e){let t=e;if(!Va(t)){let n=t.data.authed_user?.id;if(!n)throw new Error("Failed to get user ID from Slack auth data");return n}let r=await tr.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get user ID from Slack auth.test");return r.body.user_id}i(ri,"getUserId");var Px=`
60
+ `),o;function a(s){return n.stack.push(s),u;function u(){n.stack.pop()}i(u,"exit")}i(a,"enter")}i(U2,"toMarkdown");function M2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}i(M2,"invalid");function L2(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}i(L2,"unknown");function q2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}i(q2,"joinDefinition")});var QA=b((Qfe,YA)=>{YA.exports=XA()});var tE=b((ehe,eE)=>{"use strict";eE.exports=B2;var F2=QA();function B2(e){var t=this;this.Compiler=r;function r(n){return F2(n,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}i(r,"compile")}i(B2,"stringify")});var nE=b((rhe,rE)=>{"use strict";rE.exports=j2;function j2(e){if(e)throw e}i(j2,"bail")});var Dp=b((ihe,iE)=>{iE.exports=i(function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},"isBuffer")});var mE=b((ahe,dE)=>{"use strict";var Ls=Object.prototype.hasOwnProperty,pE=Object.prototype.toString,oE=Object.defineProperty,aE=Object.getOwnPropertyDescriptor,sE=i(function(t){return typeof Array.isArray=="function"?Array.isArray(t):pE.call(t)==="[object Array]"},"isArray"),uE=i(function(t){if(!t||pE.call(t)!=="[object Object]")return!1;var r=Ls.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ls.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||Ls.call(t,o)},"isPlainObject"),lE=i(function(t,r){oE&&r.name==="__proto__"?oE(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},"setProperty"),cE=i(function(t,r){if(r==="__proto__")if(Ls.call(t,r)){if(aE)return aE(t,r).value}else return;return t[r]},"getProperty");dE.exports=i(function e(){var t,r,n,o,a,s,u=arguments[0],l=1,p=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)n=cE(u,r),o=cE(t,r),u!==o&&(c&&o&&(uE(o)||(a=sE(o)))?(a?(a=!1,s=n&&sE(n)?n:[]):s=n&&uE(n)?n:{},lE(u,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&lE(u,{name:r,newValue:o}));return u},"extend")});var hE=b((uhe,fE)=>{"use strict";fE.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var yE=b((lhe,gE)=>{"use strict";var V2=[].slice;gE.exports=H2;function H2(e,t){var r;return n;function n(){var s=V2.call(arguments,0),u=e.length>s.length,l;u&&s.push(o);try{l=e.apply(null,s)}catch(p){if(u&&r)throw p;return o(p)}u||(l&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(){r||(r=!0,t.apply(null,arguments))}function a(s){o(null,s)}}i(H2,"wrap")});var kE=b((phe,_E)=>{"use strict";var bE=yE();_E.exports=xE;xE.wrap=bE;var vE=[].slice;function xE(){var e=[],t={};return t.run=r,t.use=n,t;function r(){var o=-1,a=vE.call(arguments,0,-1),s=arguments[arguments.length-1];if(typeof s!="function")throw new Error("Expected function as last argument, not "+s);u.apply(null,[null].concat(a));function u(l){var p=e[++o],c=vE.call(arguments,0),m=c.slice(1),f=a.length,d=-1;if(l){s(l);return}for(;++d<f;)(m[d]===null||m[d]===void 0)&&(m[d]=a[d]);a=m,p?bE(p,u).apply(null,a):s.apply(null,[null].concat(a))}i(u,"next")}i(r,"run");function n(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}i(n,"use")}i(xE,"trough")});var SE=b((mhe,PE)=>{"use strict";var W2=Tp();PE.exports=$p;function wE(){}i(wE,"VMessagePrototype");wE.prototype=Error.prototype;$p.prototype=new wE;var nn=$p.prototype;nn.file="";nn.name="";nn.reason="";nn.message="";nn.stack="";nn.fatal=null;nn.column=null;nn.line=null;function $p(e,t,r){var n,o,a;typeof t=="string"&&(r=t,t=null),n=Z2(r),o=W2(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=n[0],this.ruleId=n[1]}i($p,"VMessage");function Z2(e){var t=[null,null],r;return typeof e=="string"&&(r=e.indexOf(":"),r===-1?t[1]=e:(t[0]=e.slice(0,r),t[1]=e.slice(r+1))),t}i(Z2,"parseOrigin")});var AE=b((hhe,TE)=>{"use strict";TE.exports=require("path")});var IE=b((ghe,EE)=>{"use strict";EE.exports=process});var RE=b((yhe,OE)=>{"use strict";var xr=AE(),G2=IE(),K2=Dp();OE.exports=Mr;var J2={}.hasOwnProperty,Np=["history","path","basename","stem","extname","dirname"];Mr.prototype.toString=sH;Object.defineProperty(Mr.prototype,"path",{get:X2,set:Y2});Object.defineProperty(Mr.prototype,"dirname",{get:Q2,set:eH});Object.defineProperty(Mr.prototype,"basename",{get:tH,set:rH});Object.defineProperty(Mr.prototype,"extname",{get:nH,set:iH});Object.defineProperty(Mr.prototype,"stem",{get:oH,set:aH});function Mr(e){var t,r;if(!e)e={};else if(typeof e=="string"||K2(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Mr))return new Mr(e);for(this.data={},this.messages=[],this.history=[],this.cwd=G2.cwd(),r=-1;++r<Np.length;)t=Np[r],J2.call(e,t)&&(this[t]=e[t]);for(t in e)Np.indexOf(t)<0&&(this[t]=e[t])}i(Mr,"VFile");function X2(){return this.history[this.history.length-1]}i(X2,"getPath");function Y2(e){Mp(e,"path"),this.path!==e&&this.history.push(e)}i(Y2,"setPath");function Q2(){return typeof this.path=="string"?xr.dirname(this.path):void 0}i(Q2,"getDirname");function eH(e){CE(this.path,"dirname"),this.path=xr.join(e||"",this.basename)}i(eH,"setDirname");function tH(){return typeof this.path=="string"?xr.basename(this.path):void 0}i(tH,"getBasename");function rH(e){Mp(e,"basename"),Up(e,"basename"),this.path=xr.join(this.dirname||"",e)}i(rH,"setBasename");function nH(){return typeof this.path=="string"?xr.extname(this.path):void 0}i(nH,"getExtname");function iH(e){if(Up(e,"extname"),CE(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=xr.join(this.dirname,this.stem+(e||""))}i(iH,"setExtname");function oH(){return typeof this.path=="string"?xr.basename(this.path,this.extname):void 0}i(oH,"getStem");function aH(e){Mp(e,"stem"),Up(e,"stem"),this.path=xr.join(this.dirname||"",e+(this.extname||""))}i(aH,"setStem");function sH(e){return(this.contents||"").toString(e)}i(sH,"toString");function Up(e,t){if(e&&e.indexOf(xr.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+xr.sep+"`")}i(Up,"assertPart");function Mp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(Mp,"assertNonEmpty");function CE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(CE,"assertPath")});var DE=b((bhe,zE)=>{"use strict";var uH=SE(),qs=RE();zE.exports=qs;qs.prototype.message=lH;qs.prototype.info=pH;qs.prototype.fail=cH;function lH(e,t,r){var n=new uH(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}i(lH,"message");function cH(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}i(cH,"fail");function pH(){var e=this.message.apply(this,arguments);return e.fatal=null,e}i(pH,"info")});var NE=b((_he,$E)=>{"use strict";$E.exports=DE()});var HE=b((khe,VE)=>{"use strict";var UE=nE(),dH=Dp(),Fs=mE(),ME=hE(),BE=kE(),Io=NE();VE.exports=jE().freeze();var mH=[].slice,fH={}.hasOwnProperty,hH=BE().use(gH).use(yH).use(vH);function gH(e,t){t.tree=e.parse(t.file)}i(gH,"pipelineParse");function yH(e,t,r){e.run(t.tree,t.file,n);function n(o,a,s){o?r(o):(t.tree=a,t.file=s,r())}i(n,"done")}i(yH,"pipelineRun");function vH(e,t){var r=e.stringify(t.tree,t.file);r==null||(typeof r=="string"||dH(r)?("value"in t.file&&(t.file.value=r),t.file.contents=r):t.file.result=r)}i(vH,"pipelineStringify");function jE(){var e=[],t=BE(),r={},n=-1,o;return a.data=u,a.freeze=s,a.attachers=e,a.use=l,a.parse=c,a.stringify=d,a.run=m,a.runSync=f,a.process=h,a.processSync=_,a;function a(){for(var v=jE(),y=-1;++y<e.length;)v.use.apply(null,e[y]);return v.data(Fs(!0,{},r)),v}i(a,"processor");function s(){var v,y;if(o)return a;for(;++n<e.length;)v=e[n],v[1]!==!1&&(v[1]===!0&&(v[1]=void 0),y=v[0].apply(a,v.slice(1)),typeof y=="function"&&t.use(y));return o=!0,n=1/0,a}i(s,"freeze");function u(v,y){return typeof v=="string"?arguments.length===2?(Fp("data",o),r[v]=y,a):fH.call(r,v)&&r[v]||null:v?(Fp("data",o),r=v,a):r}i(u,"data");function l(v){var y;if(Fp("use",o),v!=null)if(typeof v=="function")F.apply(null,arguments);else if(typeof v=="object")"length"in v?R(v):w(v);else throw new Error("Expected usable value, not `"+v+"`");return y&&(r.settings=Fs(r.settings||{},y)),a;function w(U){R(U.plugins),U.settings&&(y=Fs(y||{},U.settings))}i(w,"addPreset");function S(U){if(typeof U=="function")F(U);else if(typeof U=="object")"length"in U?F.apply(null,U):w(U);else throw new Error("Expected usable value, not `"+U+"`")}i(S,"add");function R(U){var Z=-1;if(U!=null)if(typeof U=="object"&&"length"in U)for(;++Z<U.length;)S(U[Z]);else throw new Error("Expected a list of plugins, not `"+U+"`")}i(R,"addList");function F(U,Z){var q=p(U);q?(ME(q[1])&&ME(Z)&&(Z=Fs(!0,q[1],Z)),q[1]=Z):e.push(mH.call(arguments))}i(F,"addPlugin")}i(l,"use");function p(v){for(var y=-1;++y<e.length;)if(e[y][0]===v)return e[y]}i(p,"find");function c(v){var y=Io(v),w;return s(),w=a.Parser,Lp("parse",w),LE(w,"parse")?new w(String(y),y).parse():w(String(y),y)}i(c,"parse");function m(v,y,w){if(qE(v),s(),!w&&typeof y=="function"&&(w=y,y=null),!w)return new Promise(S);S(null,w);function S(R,F){t.run(v,Io(y),U);function U(Z,q,W){q=q||v,Z?F(Z):R?R(q):w(null,q,W)}i(U,"done")}i(S,"executor")}i(m,"run");function f(v,y){var w,S;return m(v,y,R),FE("runSync","run",S),w;function R(F,U){S=!0,w=U,UE(F)}i(R,"done")}i(f,"runSync");function d(v,y){var w=Io(y),S;return s(),S=a.Compiler,qp("stringify",S),qE(v),LE(S,"compile")?new S(v,w).compile():S(v,w)}i(d,"stringify");function h(v,y){if(s(),Lp("process",a.Parser),qp("process",a.Compiler),!y)return new Promise(w);w(null,y);function w(S,R){var F=Io(v);hH.run(a,{file:F},U);function U(Z){Z?R(Z):S?S(F):y(null,F)}i(U,"done")}i(w,"executor")}i(h,"process");function _(v){var y,w;return s(),Lp("processSync",a.Parser),qp("processSync",a.Compiler),y=Io(v),h(y,S),FE("processSync","process",w),y;function S(R){w=!0,UE(R)}i(S,"done")}i(_,"processSync")}i(jE,"unified");function LE(e,t){return typeof e=="function"&&e.prototype&&(bH(e.prototype)||t in e.prototype)}i(LE,"newable");function bH(e){var t;for(t in e)return!0;return!1}i(bH,"keys");function Lp(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Parser`")}i(Lp,"assertParser");function qp(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Compiler`")}i(qp,"assertCompiler");function Fp(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}i(Fp,"assertUnfrozen");function qE(e){if(!e||typeof e.type!="string")throw new Error("Expected node, got `"+e+"`")}i(qE,"assertNode");function FE(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(FE,"assertDone")});var ZE=b((Phe,WE)=>{"use strict";var xH=gs();WE.exports=_H;function _H(e,t,r){var n=xH(r||t),o=t.cascade==null?!0:t.cascade;return a(e,null,null);function a(s,u,l){var p=s.children,c=-1,m=0;if(n(s,u,l))return null;if(p&&p.length){for(;++c<p.length;)a(p[c],c,s)&&(p[m++]=p[c]);if(o&&!m)return null;p.length=m}return s}}i(_H,"remove")});var KE=b((The,GE)=>{"use strict";GE.exports=js;var Bs=qc(),kH=Bs.CONTINUE,wH=Bs.SKIP,PH=Bs.EXIT;js.CONTINUE=kH;js.SKIP=wH;js.EXIT=PH;function js(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),Bs(e,t,o,n);function o(a,s){var u=s[s.length-1],l=u?u.children.indexOf(a):null;return r(a,l,u)}i(o,"overload")}i(js,"visit")});var XE=b((Ehe,JE)=>{var SH=ZE(),TH=KE(),AH=i(e=>t=>{TH(t,"definition",r=>{e[r.identifier]={title:r.title,url:r.url}})},"collectDefinitions"),EH=i(()=>e=>{SH(e,{cascade:!0},"definition")},"removeDefinitions");JE.exports={collectDefinitions:AH,removeDefinitions:EH}});var QE=b((Che,YE)=>{YE.exports={wrap(e,...t){return[...t,e,...t.reverse()].join("")},isURL(e){try{return!!new URL(e)}catch{return!1}},isPotentiallyEncoded(e){return e!==decodeURIComponent(e||"")}}});var tI=b((Ohe,eI)=>{var IH=zp(),gi=yr(),{wrap:Co,isURL:Vs,isPotentiallyEncoded:CH}=QE(),Bp="\u200B",OH=i(e=>e.replace("&","&amp;").replace(/<([^@]|$)/g,(r,n)=>`&lt;${n}`).replace(/^(.*)>/g,(r,n)=>n.match(/<@[A-Z0-9]+$/)?`${n}>`:`${n}&gt;`),"escapeSpecials"),RH=i(e=>({heading:i((t,r,n)=>{let a=n.enter("heading"),s=gi(t,n,{before:"*",after:"*"});return a(),Co(s,"*")},"heading"),strong:i((t,r,n)=>{let a=n.enter("strong"),s=gi(t,n,{before:"*",after:"*"});return a(),Co(s,Bp,"*")},"strong"),delete(t,r,n){let a=n.enter("delete"),s=gi(t,n,{before:"~",after:"~"});return a(),Co(s,Bp,"~")},emphasis:i((t,r,n)=>{let a=n.enter("emphasis"),s=gi(t,n,{before:"_",after:"_"});return a(),Co(s,Bp,"_")},"emphasis"),listItem:i((...t)=>IH.listItem(...t).replace(/^\*/,"\u2022"),"listItem"),code(t,r,n){let o=n.enter("code"),a=t.value.replace(/^#![a-z]+\n/,"");return o(),Co(a,"```",`
61
+ `)},link:i((t,r,n)=>{let o=n.enter("link"),a=gi(t,n,{before:"|",after:">"})||t.title,s=CH(t.url)?t.url:encodeURI(t.url);return o(),Vs(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"link"),linkReference:i((t,r,n)=>{let o=n.enter("linkReference"),a=e[t.identifier],s=gi(t,n,{before:"|",after:">"})||(a?a.title:null);return o(),!a||!Vs(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"linkReference"),image:i((t,r,n)=>{let o=n.enter("image"),a=t.alt||t.title,s=encodeURI(t.url);return o(),Vs(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"image"),imageReference:i((t,r,n)=>{let o=n.enter("imageReference"),a=e[t.identifier],s=t.alt||(a?a.title:null);return o(),!a||!Vs(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"imageReference"),text:i((t,r,n)=>{let o=n.enter("text"),a=OH(t.value);return o(),a},"text")}),"createHandlers"),zH=i(e=>({bullet:"*",handlers:RH(e)}),"createOptions");eI.exports=zH});var nI=b((zhe,rI)=>{var DH=iP(),$H=TT(),NH=tE(),UH=HE(),{collectDefinitions:MH,removeDefinitions:LH}=XE(),qH=tI();rI.exports=(e,t)=>{let r={},n=qH(r);return UH().use($H,t).use(DH).use(MH,r).use(LH).use(NH,n).processSync(e).toString()}});var oI=b((Dhe,iI)=>{iI.exports=nI()});var BH={};Vp(BH,{slack:()=>FH,slackAuth:()=>E,slackOAuth2Auth:()=>al});module.exports=hO(BH);var gO=Object.freeze({status:"aborted"});function V(e,t,r){function n(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,l);let p=s.prototype,c=Object.keys(p);for(let m=0;m<c.length;m++){let f=c[m];f in u||(u[f]=p[f].bind(u))}}i(n,"init");let o=r?.Parent??Object;class a extends o{static{i(this,"Definition")}}Object.defineProperty(a,"name",{value:e});function s(u){var l;let p=r?.Parent?new a:this;n(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let c of p._zod.deferred)c();return p}return i(s,"_"),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:i(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}i(V,"$constructor");var lr=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$o=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Hs={};function wr(e){return e&&Object.assign(Hs,e),Hs}i(wr,"config");function Zs(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}i(Zs,"getEnumValues");function Zp(e,t){return typeof t=="bigint"?t.toString():t}i(Zp,"jsonStringifyReplacer");function Uo(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(Uo,"cached");function Gs(e){return e==null}i(Gs,"nullish");function Mo(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(Mo,"cleanRegex");var Wp=Symbol("evaluating");function it(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Wp)return n===void 0&&(n=Wp,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}i(it,"defineLazy");var Ks="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function xi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(xi,"isObject");var yO=Uo(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Gp(e){if(xi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(xi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(Gp,"isPlainObject");var Kp=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(An,"escapeRegex");function Lo(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}i(Lo,"clone");function Me(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:i(()=>t.error,"error")}:t}i(Me,"normalizeParams");function Jp(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(Jp,"optionalKeys");var Xp={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function En(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(En,"aborted");function qr(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}i(qr,"prefixIssues");function No(e){return typeof e=="string"?e:e?.message}i(No,"unwrapMessage");function Fr(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=No(e.inst?._zod.def?.error?.(e))??No(t?.error?.(e))??No(r.customError?.(e))??No(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}i(Fr,"finalizeIssue");function Js(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(Js,"getLengthableOrigin");function Xs(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}i(Xs,"issue");var Yp=i((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Zp,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),Qp=V("$ZodError",Yp),_i=V("$ZodError",Yp,{Parent:Error});var bO=i(e=>(t,r,n,o)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new lr;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>Fr(l,a,wr())));throw Ks(u,o?.callee),u}return s.value},"_parse"),qo=bO(_i),xO=i(e=>async(t,r,n,o)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>Fr(l,a,wr())));throw Ks(u,o?.callee),u}return s.value},"_parseAsync"),Fo=xO(_i),_O=i(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new lr;return a.issues.length?{success:!1,error:new(e??Qp)(a.issues.map(s=>Fr(s,o,wr())))}:{success:!0,data:a.value}},"_safeParse"),ki=_O(_i),kO=i(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>Fr(s,o,wr())))}:{success:!0,data:a.value}},"_safeParseAsync"),un=kO(_i);var wO="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",PO=new RegExp(`^${wO}$`);var ed=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),td=/^-?\d+n?$/,rd=/^-?\d+$/,Ys=/^-?\d+(?:\.\d+)?$/,nd=/^(?:true|false)$/i;var Pr=V("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),SO={number:"number",bigint:"bigint",object:"date"};var id=V("$ZodCheckGreaterThan",(e,t)=>{Pr.init(e,t);let r=SO[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var od=V("$ZodCheckNumberFormat",(e,t)=>{Pr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,a]=Xp[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=o,u.maximum=a,r&&(u.pattern=rd)}),e._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}u<o&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}});var ad=V("$ZodCheckMaxLength",(e,t)=>{var r;Pr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Gs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let o=n.value;if(o.length<=t.maximum)return;let s=Js(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),sd=V("$ZodCheckMinLength",(e,t)=>{var r;Pr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Gs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let s=Js(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var Qs=V("$ZodCheckStringFormat",(e,t)=>{var r,n;Pr.init(e,t),e._zod.onattach.push(o=>{let a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),ud=V("$ZodCheckRegex",(e,t)=>{Qs.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var cd={major:4,minor:3,patch:6};var Ke=V("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=cd;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=i((s,u,l)=>{let p=En(s),c;for(let m of u){if(m._zod.def.when){if(!m._zod.def.when(s))continue}else if(p)continue;let f=s.issues.length,d=m._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new lr;if(c||d instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await d,s.issues.length!==f&&(p||(p=En(s,f)))});else{if(s.issues.length===f)continue;p||(p=En(s,f))}}return c?c.then(()=>s):s},"runChecks"),a=i((s,u,l)=>{if(En(s))return s.aborted=!0,s;let p=o(u,n,l);if(p instanceof Promise){if(l.async===!1)throw new lr;return p.then(c=>e._zod.parse(c,l))}return e._zod.parse(p,l)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let p=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(c=>a(c,s,u)):a(p,s,u)}let l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new lr;return l.then(p=>o(p,n,u))}return o(l,n,u)}}it(e,"~standard",()=>({validate:i(o=>{try{let a=ki(e,o);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return un(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Vo=V("$ZodString",(e,t)=>{Ke.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ed(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eu=V("$ZodStringFormat",(e,t)=>{Qs.init(e,t),Vo.init(e,t)});var hd=V("$ZodURL",(e,t)=>{eu.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var tu=V("$ZodNumber",(e,t)=>{Ke.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ys,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),r}}),gd=V("$ZodNumberFormat",(e,t)=>{od.init(e,t),tu.init(e,t)}),ru=V("$ZodBoolean",(e,t)=>{Ke.init(e,t),e._zod.pattern=nd,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),yd=V("$ZodBigInt",(e,t)=>{Ke.init(e,t),e._zod.pattern=td,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var vd=V("$ZodAny",(e,t)=>{Ke.init(e,t),e._zod.parse=r=>r}),bd=V("$ZodUnknown",(e,t)=>{Ke.init(e,t),e._zod.parse=r=>r});var xd=V("$ZodVoid",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),_d=V("$ZodDate",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,a=o instanceof Date;return a&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...a?{received:"Invalid Date"}:{},inst:e}),r}});function pd(e,t,r){e.issues.length&&t.issues.push(...qr(r,e.issues)),t.value[r]=e.value}i(pd,"handleArrayResult");var kd=V("$ZodArray",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let a=[];for(let s=0;s<o.length;s++){let u=o[s],l=t.element._zod.run({value:u,issues:[]},n);l instanceof Promise?a.push(l.then(p=>pd(p,r,s))):pd(l,r,s)}return a.length?Promise.all(a).then(()=>r):r}});function jo(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...qr(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}i(jo,"handlePropertyResult");function TO(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=Jp(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(TO,"normalizeDef");function AO(e,t,r,n,o,a){let s=[],u=o.keySet,l=o.catchall._zod,p=l.def.type,c=l.optout==="optional";for(let m in t){if(u.has(m))continue;if(p==="never"){s.push(m);continue}let f=l.run({value:t[m],issues:[]},n);f instanceof Promise?e.push(f.then(d=>jo(d,r,m,t,c))):jo(f,r,m,t,c)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}i(AO,"handleCatchall");var wd=V("$ZodObject",(e,t)=>{if(Ke.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let l={...u};return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let n=Uo(()=>TO(t));it(e._zod,"propValues",()=>{let u=t.shape,l={};for(let p in u){let c=u[p]._zod;if(c.values){l[p]??(l[p]=new Set);for(let m of c.values)l[p].add(m)}}return l});let o=xi,a=t.catchall,s;e._zod.parse=(u,l)=>{s??(s=n.value);let p=u.value;if(!o(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let c=[],m=s.shape;for(let f of s.keys){let d=m[f],h=d._zod.optout==="optional",_=d._zod.run({value:p[f],issues:[]},l);_ instanceof Promise?c.push(_.then(v=>jo(v,u,f,p,h))):jo(_,u,f,p,h)}return a?AO(c,p,u,l,n.value,e):c.length?Promise.all(c).then(()=>u):u}});function dd(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let o=e.filter(a=>!En(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>Fr(s,n,wr())))}),t)}i(dd,"handleUnionResults");var nu=V("$ZodUnion",(e,t)=>{Ke.init(e,t),it(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),it(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>Mo(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,a)=>{if(r)return n(o,a);let s=!1,u=[];for(let l of t.options){let p=l._zod.run({value:o.value,issues:[]},a);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>dd(l,o,e,a)):dd(u,o,e,a)}});var Pd=V("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nu.init(e,t);let r=e._zod.parse;it(e._zod,"propValues",()=>{let o={};for(let a of t.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[u,l]of Object.entries(s)){o[u]||(o[u]=new Set);for(let p of l)o[u].add(p)}}return o});let n=Uo(()=>{let o=t.options,a=new Map;for(let s of o){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let l of u){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,s)}}return a});e._zod.parse=(o,a)=>{let s=o.value;if(!xi(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=n.value.get(s?.[t.discriminator]);return u?u._zod.run(o,a):t.unionFallback?r(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}});var Sd=V("$ZodRecord",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Gp(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let a=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let c=t.valueType._zod.run({value:o[p],issues:[]},n);c instanceof Promise?a.push(c.then(m=>{m.issues.length&&r.issues.push(...qr(p,m.issues)),r.value[p]=m.value})):(c.issues.length&&r.issues.push(...qr(p,c.issues)),r.value[p]=c.value)}let l;for(let p in o)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let l=t.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Ys.test(u)&&l.issues.length){let m=t.keyType._zod.run({value:Number(u),issues:[]},n);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(l=m)}if(l.issues.length){t.mode==="loose"?r.value[u]=o[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>Fr(m,n,wr())),input:u,path:[u],inst:e});continue}let c=t.valueType._zod.run({value:o[u],issues:[]},n);c instanceof Promise?a.push(c.then(m=>{m.issues.length&&r.issues.push(...qr(u,m.issues)),r.value[l.value]=m.value})):(c.issues.length&&r.issues.push(...qr(u,c.issues)),r.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}});var Td=V("$ZodEnum",(e,t)=>{Ke.init(e,t);let r=Zs(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>Kp.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{let s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),Ad=V("$ZodLiteral",(e,t)=>{if(Ke.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?An(n):n?An(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}});var Ed=V("$ZodTransform",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new $o(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new lr;return r.value=o,r}});function md(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(md,"handleOptionalResult");var Id=V("$ZodOptional",(e,t)=>{Ke.init(e,t),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Mo(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>md(a,r.value)):md(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var Cd=V("$ZodNullable",(e,t)=>{Ke.init(e,t),it(e._zod,"optin",()=>t.innerType._zod.optin),it(e._zod,"optout",()=>t.innerType._zod.optout),it(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Mo(r.source)}|null)$`):void 0}),it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var Od=V("$ZodPipe",(e,t)=>{Ke.init(e,t),it(e._zod,"values",()=>t.in._zod.values),it(e._zod,"optin",()=>t.in._zod.optin),it(e._zod,"optout",()=>t.out._zod.optout),it(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>Bo(s,t.in,n)):Bo(a,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(a=>Bo(a,t.out,n)):Bo(o,t.out,n)}});function Bo(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(Bo,"handlePipeResult");var Rd=V("$ZodCustom",(e,t)=>{Pr.init(e,t),Ke.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(a=>fd(a,r,n,e));fd(o,r,n,e)}});function fd(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(Xs(o))}}i(fd,"handleRefineResult");var Dd;var iu=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function $d(){return new iu}i($d,"registry");(Dd=globalThis).__zod_globalRegistry??(Dd.__zod_globalRegistry=$d());var ou=globalThis.__zod_globalRegistry;function Nd(e,t){return new e({type:"string",...Me(t)})}i(Nd,"_string");function Ud(e,t){return new e({type:"string",coerce:!0,...Me(t)})}i(Ud,"_coercedString");function Md(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Me(t)})}i(Md,"_url");function Ld(e,t){return new e({type:"number",checks:[],...Me(t)})}i(Ld,"_number");function qd(e,t){return new e({type:"number",coerce:!0,checks:[],...Me(t)})}i(qd,"_coercedNumber");function Fd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Me(t)})}i(Fd,"_int");function Bd(e,t){return new e({type:"boolean",...Me(t)})}i(Bd,"_boolean");function jd(e,t){return new e({type:"boolean",coerce:!0,...Me(t)})}i(jd,"_coercedBoolean");function Vd(e,t){return new e({type:"bigint",coerce:!0,...Me(t)})}i(Vd,"_coercedBigint");function Hd(e){return new e({type:"any"})}i(Hd,"_any");function Wd(e){return new e({type:"unknown"})}i(Wd,"_unknown");function Zd(e,t){return new e({type:"void",...Me(t)})}i(Zd,"_void");function Gd(e,t){return new e({type:"date",coerce:!0,...Me(t)})}i(Gd,"_coercedDate");function Ho(e,t){return new id({check:"greater_than",...Me(t),value:e,inclusive:!0})}i(Ho,"_gte");function au(e,t){return new ad({check:"max_length",...Me(t),maximum:e})}i(au,"_maxLength");function tr(e,t){return new sd({check:"min_length",...Me(t),minimum:e})}i(tr,"_minLength");function Br(e,t){return new ud({check:"string_format",format:"regex",...Me(t),pattern:e})}i(Br,"_regex");function Kd(e,t,r){let n=Me(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}i(Kd,"_custom");var ot=V("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Ke.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>qo(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>ki(e,r,n),e.parseAsync=async(r,n)=>Fo(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>un(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Lo(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Zo=V("ZodMiniString",(e,t)=>{Vo.init(e,t),ot.init(e,t)});function x(e){return Nd(Zo,e)}i(x,"string");var Jd=V("ZodMiniStringFormat",(e,t)=>{eu.init(e,t),Zo.init(e,t)});var qO=V("ZodMiniURL",(e,t)=>{hd.init(e,t),Jd.init(e,t)});function Xd(e){return Md(qO,e)}i(Xd,"url");var Go=V("ZodMiniNumber",(e,t)=>{tu.init(e,t),ot.init(e,t)});function lt(e){return Ld(Go,e)}i(lt,"number");var FO=V("ZodMiniNumberFormat",(e,t)=>{gd.init(e,t),Go.init(e,t)});function Yd(e){return Fd(FO,e)}i(Yd,"int");var su=V("ZodMiniBoolean",(e,t)=>{ru.init(e,t),ot.init(e,t)});function ye(e){return Bd(su,e)}i(ye,"boolean");var Qd=V("ZodMiniBigInt",(e,t)=>{yd.init(e,t),ot.init(e,t)});var BO=V("ZodMiniAny",(e,t)=>{vd.init(e,t),ot.init(e,t)});function Pi(){return Hd(BO)}i(Pi,"any");var jO=V("ZodMiniUnknown",(e,t)=>{bd.init(e,t),ot.init(e,t)});function ae(){return Wd(jO)}i(ae,"unknown");var VO=V("ZodMiniVoid",(e,t)=>{xd.init(e,t),ot.init(e,t)});function em(e){return Zd(VO,e)}i(em,"_void");var tm=V("ZodMiniDate",(e,t)=>{_d.init(e,t),ot.init(e,t)});var HO=V("ZodMiniArray",(e,t)=>{kd.init(e,t),ot.init(e,t)});function te(e,t){return new HO({type:"array",element:e,...Me(t)})}i(te,"array");var WO=V("ZodMiniObject",(e,t)=>{wd.init(e,t),ot.init(e,t),it(e,"shape",()=>t.shape)});function I(e,t){let r={type:"object",shape:e??{},...Me(t)};return new WO(r)}i(I,"object");var ZO=V("ZodMiniUnion",(e,t)=>{nu.init(e,t),ot.init(e,t)});function pe(e,t){return new ZO({type:"union",options:e,...Me(t)})}i(pe,"union");var GO=V("ZodMiniDiscriminatedUnion",(e,t)=>{Pd.init(e,t),ot.init(e,t)});function jr(e,t,r){return new GO({type:"union",options:t,discriminator:e,...Me(r)})}i(jr,"discriminatedUnion");var KO=V("ZodMiniRecord",(e,t)=>{Sd.init(e,t),ot.init(e,t)});function se(e,t,r){return new KO({type:"record",keyType:e,valueType:t,...Me(r)})}i(se,"record");var JO=V("ZodMiniEnum",(e,t)=>{Td.init(e,t),ot.init(e,t),e.options=Object.values(t.entries)});function ee(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new JO({type:"enum",entries:r,...Me(t)})}i(ee,"_enum");var XO=V("ZodMiniLiteral",(e,t)=>{Ad.init(e,t),ot.init(e,t)});function X(e,t){return new XO({type:"literal",values:Array.isArray(e)?e:[e],...Me(t)})}i(X,"literal");var YO=V("ZodMiniTransform",(e,t)=>{Ed.init(e,t),ot.init(e,t)});function Vr(e){return new YO({type:"transform",transform:e})}i(Vr,"transform");var QO=V("ZodMiniOptional",(e,t)=>{Id.init(e,t),ot.init(e,t)});function O(e){return new QO({type:"optional",innerType:e})}i(O,"optional");var eR=V("ZodMiniNullable",(e,t)=>{Cd.init(e,t),ot.init(e,t)});function Si(e){return new eR({type:"nullable",innerType:e})}i(Si,"nullable");var tR=V("ZodMiniPipe",(e,t)=>{Od.init(e,t),ot.init(e,t)});function Hr(e,t){return new tR({type:"pipe",in:e,out:t})}i(Hr,"pipe");var rR=V("ZodMiniCustom",(e,t)=>{Rd.init(e,t),ot.init(e,t)});function Ko(e,t){return Kd(rR,e??(()=>!0),t)}i(Ko,"custom");var Ti={};Vp(Ti,{bigint:()=>uR,boolean:()=>sR,date:()=>lR,number:()=>aR,string:()=>oR});function oR(e){return Ud(Zo,e)}i(oR,"string");function aR(e){return qd(Go,e)}i(aR,"number");function sR(e){return jd(su,e)}i(sR,"boolean");function uR(e){return Vd(Qd,e)}i(uR,"bigint");function lR(e){return Gd(tm,e)}i(lR,"date");var lu=I({retryOnFailure:I({defaultValue:O(ye()),hide:O(ye())}),continueOnFailure:I({defaultValue:O(ye()),hide:O(ye())})}),uu=class{constructor(t,r,n,o,a,s,u,l,p,c,m,f,d){this.name=t;this.displayName=r;this.description=n;this.props=o;this.propertyGroups=a;this.run=s;this.test=u;this.requireAuth=l;this.errorHandlingOptions=p;this.outputSchema=c;this.audience=m;this.aiMetadata=f;this.classification=d}static{i(this,"IAction")}},C=i(e=>new uu(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ge=I({displayName:x(),description:O(x()),advanced:O(ye()),width:O(ee(["half","full"])),icon:O(x()),placeholder:O(x())}),ue=i((e,t)=>I({type:X(t),required:ye(),defaultValue:O(Pi())}),"TPropertyValue");var Nt=I({...ge.shape,...ue(x(),"SHORT_TEXT").shape}),Sr=I({...ge.shape,...ue(x(),"LONG_TEXT").shape});var nm=I({label:x(),value:ae(),description:O(x()),icon:O(x())}),Jo=I({disabled:O(ye()),placeholder:O(x()),options:te(nm)});var pR=ee(["cards"]),Ut=I({...ge.shape,options:Jo,display:O(pR),...ue(ae(),"STATIC_DROPDOWN").shape}),Tr=I({...ge.shape,options:Jo,...ue(te(ae()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var cu=I({...ge.shape,...ue(ae(),"DROPDOWN").shape,refreshers:te(x())}),Ai=I({...ge.shape,...ue(te(ae()),"MULTI_SELECT_DROPDOWN").shape,refreshers:te(x())});var Ar=I({...ge.shape,reveals:O(te(x())),...ue(ye(),"CHECKBOX").shape});var Er=I({...ge.shape,display:O(ee(["stepper"])),min:O(lt()),max:O(lt()),step:O(lt()),...ue(lt(),"NUMBER").shape});var Ei=I({...ge.shape,streaming:O(ye()),...ue(ae(),"FILE").shape});var Ii=I({...ge.shape,...ue(x(),"DATE_TIME").shape});var im=se(x(),pe([Nt,Sr,Ut,Ai,Tr,Ar,Er,Ei,Ii])),Ci=I({...ge.shape,properties:im,...ue(te(ae()),"ARRAY").shape});var om=ee(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),am=I({preset:O(om),after:O(x()),before:O(x())}),pu=I({...ge.shape,display:O(ee(["dropdown"])),...ue(am,"DATE_RANGE").shape});var Oi=I({...ge.shape,...ue(pe([se(x(),ae())]),"JSON").shape});var sm=pe([Nt,Ut,Oi,Ci,Tr]),dR=se(x(),sm),du=I({refreshers:te(x()),...ge.shape,...ue(ae(),"DYNAMIC").shape});var Xo=I({...ge.shape,...ue(em(),"MARKDOWN").shape});var Ri=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Ri||{}),In=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(In||{}),Cn=(y=>(y.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",y.COMMUNICATION="COMMUNICATION",y.COMMERCE="COMMERCE",y.CORE="CORE",y.UNIVERSAL_AI="UNIVERSAL_AI",y.FLOW_CONTROL="FLOW_CONTROL",y.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",y.ACCOUNTING="ACCOUNTING",y.PRODUCTIVITY="PRODUCTIVITY",y.CONTENT_AND_FILES="CONTENT_AND_FILES",y.DEVELOPER_TOOLS="DEVELOPER_TOOLS",y.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",y.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",y.HUMAN_RESOURCES="HUMAN_RESOURCES",y.PAYMENT_PROCESSING="PAYMENT_PROCESSING",y.MARKETING="MARKETING",y.SALES_AND_CRM="SALES_AND_CRM",y))(Cn||{});var zi=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(zi||{}),mu="both_client_credentials_and_authorization_code";var Qe=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Qe||{}),Di=(a=>(a.NONE="NONE",a.HEADER_PRESENT="HEADER_PRESENT",a.QUERY_PRESENT="QUERY_PRESENT",a.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",a.HEAD_REQUEST="HEAD_REQUEST",a))(Di||{}),mR=I({strategy:ee(Di),paramName:O(x())}),$i=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))($i||{});var Yo=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Yo||{}),um=I({status:O(lt()),body:O(ae()),headers:O(se(x(),x()))}),lm=I({type:X("DELAY"),resumeDateTime:x(),requestIdToReply:O(x()),handlerId:O(x()),streamStepProgress:O(ee(Yo))}),cm=I({type:X("WEBHOOK"),requestId:x(),requestIdToReply:O(x()),response:um,handlerId:O(x()),streamStepProgress:O(ee(Yo))}),fR=pe([lm,cm]);var hR=I({body:ae(),rawBody:O(ae()),headers:se(x(),x()),queryParams:se(x(),x())});function Mt(e){return e==null}i(Mt,"isNil");function Ni(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}i(Ni,"isEmpty");function Te(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}i(Te,"assertNotNullOrUndefined");var fu=B(require("crypto"),1);var gR=128,Wr,On,yR=i(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Wr||Wr.length<e?(Wr=Buffer.allocUnsafe(e*gR),fu.default.randomFillSync(Wr),On=0):On+e>Wr.length&&(fu.default.randomFillSync(Wr),On=0)}catch(t){throw Wr=void 0,t}On+=e},"fillPool"),vR=i(e=>(yR(e|=0),Wr.subarray(On-e,On)),"random"),bR=i((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(a=t)=>{if(a<=0)return"";let s="";for(;;){let u=r(o),l=o;for(;l--;)if(s+=e[u[l]&n]||"",s.length===a)return s}}},"customRandom"),dm=i((e,t=21)=>bR(e,t,vR),"customAlphabet");var xR="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",mm=21,P7=x().check(Br(new RegExp(`^[0-9a-zA-Z]{${mm}}$`))),_R=dm(xR,mm);var Zr=Hr(Vr(e=>e instanceof Date?e.toISOString():e),x()),Ft={id:x(),created:Zr,updated:Zr},Ve=i(e=>O(Si(e)),"Nullable");function hu(e){return O(Si(ee(e)))}i(hu,"NullableEnum");var A7=Hr(Vr(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),O(ye())),Qo=i(e=>Hr(Vr(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),O(te(e))),"OptionalArrayFromQuery");var C7=se(x(),ae());var Ui=(c=>(c.OPENAI="openai",c.OPENROUTER="openrouter",c.ANTHROPIC="anthropic",c.AZURE="azure",c.GOOGLE="google",c.ACTIVEPIECES="activepieces",c.CLOUDFLARE_GATEWAY="cloudflare-gateway",c.CUSTOM="custom",c.BEDROCK="bedrock",c.MISTRAL="mistral",c))(Ui||{});var B7=x().check(Br(/^#[0-9A-Fa-f]{6}$/));var V7=I({filename:x(),data:ae(),type:X("file"),mimetype:O(x())});var kR=B(hm());var X7=I({...Ft,name:x(),permissions:te(x()),platformId:Ve(x()),type:x(),userCount:O(lt())});var gm=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(gm||{}),gu=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(gu||{}),yu=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(yu||{});var vu=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(vu||{});var bu=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(bu||{});var wR=I({mode:ee(gm),value:ae()}),PR=I({auth:O(x()),fields:se(x(),wR)}),SR=I({pieceName:x(),pieceVersion:x(),actionName:x(),predefinedInput:O(PR)}),TR=I({type:X("PIECE"),toolName:x().check(tr(1)),pieceMetadata:SR}),AR=I({type:X("none")}),ER=I({type:X("access_token"),accessToken:x()}),IR=I({type:X("api_key"),apiKey:x(),apiKeyHeader:x()}),CR=I({type:X("headers"),headers:se(x(),x())}),OR=jr("type",[AR,ER,IR,CR]),ym=I({type:X("FLOW"),toolName:x().check(tr(1)),externalFlowId:x(),flowDisplayName:O(x())}),vm=I({type:X("MCP"),toolName:x().check(tr(1)),serverUrl:Xd(),protocol:ee(yu),auth:OR}),bm=I({type:X("KNOWLEDGE_BASE"),toolName:x().check(tr(1)),sourceType:ee(gu),sourceId:x(),sourceName:x()}),RR=jr("type",[TR,ym,vm,bm]),zR=I({displayName:x(),description:O(x()),type:ee(vu)}),xm=I({type:X("MARKDOWN"),markdown:x()}),Rn={type:X("TOOL_CALL"),input:Ve(se(x(),ae())),output:O(ae()),toolName:x(),status:ee(bu),toolCallId:x(),startTime:x(),endTime:O(x())},EX=I(Rn),_m=jr("toolCallType",[I({...Rn,toolCallType:X("PIECE"),pieceName:x(),pieceVersion:x(),actionName:x()}),I({...Rn,toolCallType:X("FLOW"),displayName:x(),externalFlowId:x()}),I({...Rn,toolCallType:X("MCP"),displayName:x(),serverUrl:x()}),I({...Rn,toolCallType:X("KNOWLEDGE_BASE"),displayName:x(),sourceType:x()}),I({...Rn,toolCallType:X("UNKNOWN"),displayName:x()})]),DR=pe([xm,_m]);var xu=(r=>(r.IMAGE="image",r.TEXT="text",r))(xu||{}),Ir=I({apiKey:x()}),$R=Ir,NR=I({apiKey:x(),apiKeyHash:x()}),UR=Ir,MR=Ir,LR=Ir,qR=Ir,FR=Ir,BR=Ir,jR=Ir,Tm=I({accessKeyId:x().check(tr(1)),secretAccessKey:x().check(tr(1))}),VR=I({}),HR=I({}),WR=I({}),ZR=I({}),GR=I({}),KR=I({}),Am=I({modelId:x(),modelName:x(),modelType:ee(xu)}),Em=I({apiKeyHeader:x(),baseUrl:x(),models:te(Am),defaultHeaders:O(se(x(),x()))}),Im=I({accountId:x(),gatewayId:x(),models:te(Am),vertexProject:O(x()),vertexRegion:O(x())}),Cm=I({resourceName:x(),apiVersion:Hr(Vr(e=>typeof e=="string"&&e.trim().length===0?void 0:e),O(x()))}),Om=I({region:x().check(tr(1))}),JR=pe([$R,LR,qR,FR,BR,MR,UR,NR,Tm,jR]),Rm=pe([Em,Im,Cm,Om,VR,WR,ZR,GR,HR,KR]),XR=I({id:x(),name:x(),type:ee(xu)}),YR=I({id:x(),name:x(),provider:ee(Ui),config:Rm,enabledForChat:ye()}),QR=I({provider:ee(Ui),config:Rm,auth:JR,platformId:x()});var RX={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},km=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],ez=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],tz=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],wm=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],rz=["grok-4.20","grok-4.1-fast"],nz={openai:km,anthropic:ez,google:wm,activepieces:[...tz.map(e=>`anthropic/${e}`),...km.map(e=>`openai/${e}`),...wm.map(e=>`google/${e}`),...rz.map(e=>`x-ai/${e}`)]};var Pm=128e3,iz={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function oz({provider:e}){return e?iz[e]??Pm:Pm}i(oz,"getMaxContextTokens");var Sm={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},az={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},sz=new Set(["anthropic","mistral"]);function cr(e){return{chatModels:nz[e],maxContextTokens:oz({provider:e}),defaultEmbeddingModel:Sm[e],supportsEmbedding:Sm[e]!==void 0,supportsImageGeneration:!sz.has(e),webSearch:az[e]}}i(cr,"buildProviderCapabilities");var uz={openai:cr("openai"),anthropic:cr("anthropic"),openrouter:cr("openrouter"),azure:cr("azure"),google:cr("google"),"cloudflare-gateway":cr("cloudflare-gateway"),custom:cr("custom"),bedrock:cr("bedrock"),mistral:cr("mistral"),activepieces:cr("activepieces")};var lz=I({base64Url:x(),fileName:x(),extension:O(x())}),cz=I({mimeType:x(),url:x(),fileName:O(x())}),_u=pe([lz,cz]);var pz=pe([I({type:X("file"),value:_u}),I({type:X("markdown"),value:x(),files:O(te(_u))})]),dz=I({sessionId:x(),message:x(),files:O(te(x()))});var Dm=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(Dm||{}),$m=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))($m||{}),ku=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(ku||{});var mz=pe([I({...Ft,name:x(),externalId:x(),type:X("STATIC_DROPDOWN"),tableId:x(),projectId:x(),data:I({options:te(I({value:x()}))})}),I({...Ft,name:x(),externalId:x(),type:pe([X("TEXT"),X("NUMBER"),X("DATE"),X("DATETIME")]),tableId:x(),projectId:x()})]),fz=I({...Ft,name:x(),folderId:Ve(x()),projectId:x(),externalId:x(),status:hu($m),trigger:hu(Dm)}),hz=I({...Ft,tableId:x(),projectId:x(),cells:se(x(),I({updated:x(),created:x(),value:ae(),fieldName:x()}))}),gz=I({events:te(ee(ku)),webhookUrl:x(),flowId:x()}),yz=I({fields:te(I({id:x(),name:x()})),rows:te(se(x(),x())),name:x()}),vz=I({projectId:x(),limit:O(Ti.number()),cursor:O(x()),name:O(x()),externalIds:Qo(x()),folderId:O(x()),folderIds:Qo(x())}),bz=I({records:te(te(I({fieldId:x(),value:Um()}))),tableId:x()}),xz=I({cells:O(te(I({fieldId:x(),value:Um()}))),tableId:x(),agentUpdate:O(ye())}),Nm=jr("operator",[ln("eq"),ln("neq"),ln("gt"),ln("gte"),ln("lt"),ln("lte"),ln("co"),zm("exists"),zm("not_exists")]),_z=I({tableId:x(),limit:O(Ti.number()),cursor:O(x()),filters:Qo(Nm)});function Um(){return Hr(Vr(e=>e==null?e:String(e)),Si(x()))}i(Um,"coerceToString");function ln(e){return I({fieldId:x(),operator:X(e),value:x()})}i(ln,"valueFilter");function zm(e){return I({fieldId:x(),operator:X(e)})}i(zm,"existenceFilter");var kz=I({status:O(lt()),body:O(ae()),headers:O(se(x(),x()))}),wz=I({...Ft,deleted:Ve(Zr),ownerId:x(),displayName:x(),platformId:x(),externalId:Ve(x())});var Mm=I({name:x(),description:O(x()),type:x(),required:ye()}),Pz=I({pieceName:x(),triggerName:x(),input:I({toolName:x(),toolDescription:x(),inputSchema:te(Mm),returnsResponse:ye()})});var Lm="^[0-9]+\\.[0-9]+\\.[0-9]+$",XX=new RegExp(Lm),Tz="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",YX=x().check(Br(new RegExp(Lm))),QX=x().check(Br(new RegExp(Tz))),Az=I({packageType:X("ARCHIVE"),pieceType:ee(In),pieceName:x(),pieceVersion:x(),archiveId:x(),platformId:x()}),qm=I({packageType:X("REGISTRY"),pieceType:X("OFFICIAL"),pieceName:x(),pieceVersion:x()}),Fm=I({packageType:X("REGISTRY"),pieceType:X("CUSTOM"),pieceName:x(),pieceVersion:x(),platformId:x()}),eY=pe([qm,Fm]),tY=pe([Az,qm,Fm]);var Ez=jr("type",[I({type:X("CRON_EXPRESSION"),cronExpression:x(),timezone:x()}),I({type:X("INTERVAL"),intervalMs:Yd().check(Ho(6e4))})]),rY=I({...Ft,type:ee(Qe),projectId:x(),flowId:x(),triggerName:x(),schedule:Ve(Ez),flowVersionId:x(),pieceName:x(),pieceVersion:x(),deleted:Ve(x()),simulate:ye()}),Bm=(v=>(v.UNKNOWN="UNKNOWN",v.FLOW_RUN_LOG="FLOW_RUN_LOG",v.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",v.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",v.FLOW_STEP_FILE="FLOW_STEP_FILE",v.SAMPLE_DATA="SAMPLE_DATA",v.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",v.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",v.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",v.PROJECT_RELEASE="PROJECT_RELEASE",v.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",v.PLATFORM_ASSET="PLATFORM_ASSET",v.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",v.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",v.KNOWLEDGE_BASE="KNOWLEDGE_BASE",v.FLOW_BUNDLE="FLOW_BUNDLE",v))(Bm||{}),jm=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(jm||{}),Vm=(r=>(r.S3="S3",r.DB="DB",r))(Vm||{}),nY=I({...Ft,projectId:Ve(x()),platformId:Ve(x()),type:ee(Bm),compression:ee(jm),data:O(ae()),location:ee(Vm),size:Ve(lt()),fileName:Ve(x()),s3Key:Ve(x()),metadata:Ve(se(x(),x()))}),Hm=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(Hm||{}),Wm=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(Wm||{}),iY=I({id:x(),email:x(),firstName:x(),status:ee(Wm),externalId:Ve(x()),platformId:Ve(x()),platformRole:ee(Hm),lastName:x(),created:Zr,updated:Zr,lastActiveDate:Ve(Zr),imageUrl:Ve(x())});var Su=I({...ge.shape,...ue(se(x(),ae()),"OBJECT").shape});var Tu=I({...ge.shape,formatProperty:O(x()),...ue(x(),"RICH_TEXT").shape});var Zm=I({...ge.shape,...ue(x(),"COLOR").shape});var Au=pe([Nt,Sr,Tu,Xo,Ar,Ut,Tr,cu,Ai,du,Er,Ci,Su,Oi,Ii,pu,Ei,Zm]),k={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var pr=I({displayName:x(),description:O(x()),hasConnectionIdentifier:O(ye())});var Gm=I({username:x(),password:x()}),Eu=I({...pr.shape,username:I({displayName:x(),description:O(x())}),password:I({displayName:x(),description:O(x())}),...ue(Gm,"BASIC_AUTH").shape});var Rz=se(x(),pe([Nt,Sr,Er,Ar,Ut])),Iu=I({...pr.shape,props:Rz,...ue(ae(),"CUSTOM_AUTH").shape});var cn=I({...pr.shape,...ue(I({auth:x()}),"SECRET_TEXT").shape});var zz=se(x(),pe([Nt,Sr,cn,Er,Ar,Ut,Tr,Xo])),Km=I({...pr.shape,props:zz,...ue(ae(),"OIDC").shape});var Cu=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Cu||{}),Jm=pe([Nt,cn,Ut]),Xm=se(x(),Jm),Dz=I({props:O(se(x(),Jm)),authUrl:x(),tokenUrl:x(),scope:te(x()),prompt:O(pe([X("none"),X("consent"),X("login"),X("omit")])),pkce:O(ye()),pkceMethod:O(pe([X("plain"),X("S256")])),authorizationMethod:O(ee(Cu)),grantType:O(pe([ee(zi),X(mu)])),extra:O(se(x(),x()))}),Ym=I({access_token:x(),props:O(Xm),data:se(x(),Pi())}),Ou=I({...pr.shape,...Dz.shape,...ue(Ym,"OAUTH2").shape});var zn=pe([Eu,Iu,Km,Ou,cn]),Li="Connection",Dn={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Li}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Li,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Li}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Li}},None(){}};var FQ={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var $z=I({...ge.shape,...ue(ae(),"CUSTOM").shape,code:x()});var Nz=pe([Au,zn]),Ru=se(x(),Nz),uee=se(x(),Au);var Qm=pe([I({strategy:X("CRON"),cronExpression:x()}),I({strategy:X("NONE")})]),$n=class{constructor(t,r,n,o,a,s,u,l,p,c,m,f,d,h,_,v,y,w,S,R,F){this.name=t;this.displayName=r;this.description=n;this.requireAuth=o;this.props=a;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=c;this.onEnable=m;this.onDisable=f;this.onStart=d;this.run=h;this.test=_;this.sampleData=v;this.testStrategy=y;this.outputSchema=w;this.aiMetadata=S;this.classification=R;this.propertyGroups=F}static{i(this,"ITrigger")}},Ae=i(e=>{switch(e.type){case"WEBHOOK":return new $n(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new $n(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new $n(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new $n(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,Mt(e.sampleData)&&Mt(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var ef="2",ta="0.82.0";var zu=class{constructor(t,r,n,o,a,s,u,l,p=ta,c,m="",f){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=c;this.description=m;this.deprecated=f;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:ef}),"getContextInfo");(!Mz(p)||Lz(p,ta))&&(this.minimumSupportedRelease=ta),a.forEach(d=>this._actions[d.name]=d),s.forEach(d=>this._triggers[d.name]=d)}static{i(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:Uz(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},rf=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(a=>a.type===r.type)))throw new Error("Auth properties must be unique by type");return new zu(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Uz(e){if(e!==void 0)return Array.isArray(e)?e.map(tf):tf(e)}i(Uz,"withConnectionIdentifierFlag");function tf(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}i(tf,"flagConnectionIdentifier");function Mz(e){return/^\d+\.\d+\.\d+$/.test(e)}i(Mz,"isValidSimpleSemver");function Lz(e,t){let[r,n,o]=e.split(".").map(Number),[a,s,u]=t.split(".").map(Number);return r!==a?r<a:n!==s?n<s:o<u}i(Lz,"isSemverLessThan");var qz=O(se(x(),se(x(),x()))),nf=I({id:O(x()),name:x(),displayName:x(),logoUrl:x(),description:x(),authors:te(x()),platformId:O(x()),directoryPath:O(x()),auth:O(pe([zn,te(zn)])),version:x(),categories:O(te(ee(Cn))),minimumSupportedRelease:O(x()),maximumSupportedRelease:O(x()),deprecated:O(ye()),i18n:qz}),Fz=ee(["human","ai","both"]),of=I({description:O(x()),idempotent:O(ye())}),af=ee(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var Bz=ee(["tabs","section","summary","builder","footer"]),sf=I({key:x(),display:Bz,label:O(x()),description:O(x()),icon:O(x()),props:te(x())}),uf=I({name:x(),displayName:x(),description:x(),props:Ru,propertyGroups:O(te(sf)),requireAuth:ye(),errorHandlingOptions:O(lu),outputSchema:O(Ko()),audience:O(Fz),aiMetadata:O(of),classification:O(af)}),lf=I({name:x(),displayName:x(),description:x(),props:Ru,propertyGroups:O(te(sf)),errorHandlingOptions:O(lu),type:ee(Qe),sampleData:ae(),handshakeConfiguration:O(Ko()),renewConfiguration:O(Qm),testStrategy:ee($i),outputSchema:O(Ko()),aiMetadata:O(of),classification:O(af)}),jz=I({...nf.shape,actions:se(x(),uf),triggers:se(x(),lf)}),Vz=I({...nf.shape,actions:lt(),triggers:lt(),suggestedActions:O(te(uf)),suggestedTriggers:O(te(lf))}),cf=I({projectUsage:lt(),pieceType:ee(In),packageType:ee(Ri),platformId:O(x()),archiveId:O(x())}),cte=I({...jz.shape,...cf.shape}),pte=I({...Vz.shape,...cf.shape}),dte=I({name:x(),version:x()});var Hz=B(require("path")),Wz=B(require("fs/promises"));var Nn=require("node:stream");var ra=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((a,s)=>{o.append(s,a)}),{urlWithoutQueryParams:n,queryParams:o}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var na=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new Du,r=new $u){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Du=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},$u=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var qi=class extends Error{constructor(r,n){let o=n.status||500,a=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:a},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=a}static{i(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function pf({error:e,requestBody:t}){return e instanceof qi?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}i(pf,"toFailsafeOutput");var pn=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(pn||{});var ia=class extends ra{static{i(this,"FetchHttpClient")}constructor(t="",r=new na){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),a=this.getHeaders(t),s=t.queryParams??{};for(let[S,R]of Object.entries(s))o.append(S,R);let u=o.toString(),l=u?`${n}?${u}`:n,p=t.responseType??"json",c=t.followRedirects??!0,m=t.retries??0,{body:f,extraHeaders:d,isStream:h}=Zz(t.method)?Gz(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},_=Jz({...a,...d}),v=await Kz(async()=>{let S=new AbortController,R=t.timeout&&t.timeout>0?setTimeout(()=>S.abort(),t.timeout):void 0;try{let F={method:t.method.toString(),headers:_,body:f,redirect:c?"follow":"manual",signal:S.signal};return h&&(F.duplex="half"),r?.dispatcher!==void 0&&(F.dispatcher=r.dispatcher),await fetch(l,F)}finally{R!==void 0&&clearTimeout(R)}},h?0:m),y=c?300:400;if(v.status<200||v.status>=y){let S=await df(v,p==="stream"?"text":p),R=new qi(t.body,{status:v.status,responseBody:S});throw console.error("[HttpClient#(sanitized error message)] Request failed:",R),R}let w=await df(v,p);return{status:v.status,headers:Xz(v.headers),body:w}}};function Zz(e){return e!=="GET"&&e!=="HEAD"}i(Zz,"acceptsRequestBody");function Gz(e,t){if(ff(e))return{body:void 0,extraHeaders:{},isStream:!1};if(Yz(e)){let n=new Nn.PassThrough;return e.on("error",o=>n.destroy(o)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof Nn.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}i(Gz,"serializeBody");async function df(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return ff(e.body)?Nn.Readable.from([]):Nn.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}i(df,"parseResponseBody");async function Kz(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await mf(n);continue}return o}catch(o){if(r=o,n<t){await mf(n);continue}throw o}throw r}i(Kz,"sendWithRetries");function mf(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(mf,"backoff");function Jz(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}i(Jz,"normalizeHeaders");function Xz(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(Xz,"toHttpHeaders");function Yz(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}i(Yz,"isNodeFormData");function ff(e){return e==null}i(ff,"isNil");var Bt=new ia;var L$=B(require("fs")),hg=B(ol());var q$={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function F$(e){let t=e.split(";")[0].trim().toLowerCase();return q$[t]??""}i(F$,"contentTypeToExtension");var B$=i(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),j$=i((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function gg({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:a,props:s,extraProps:u,authLocation:l="headers",classification:p="WRITE"}){return C({audience:"human",name:a||"custom_api_call",classification:p,displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:k.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:i(async({auth:c})=>({url:k.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
62
+ i.e ${j$(t,c)}/resource or /resource`,required:!0,defaultValue:c?t(c):"",...s?.url??{}})}),"props")}),method:k.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(pn).map(c=>({label:c,value:c}))},...s?.method??{}}),headers:k.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...s?.headers??{}}),queryParams:k.Object({displayName:"Query Parameters",required:!0,...s?.queryParams??{}}),body_type:k.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:k.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:i(async({body_type:c})=>{if(!c)return{};let m=c,f={};switch(m){case"none":break;case"json":f.data=k.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":f.data=k.LongText({displayName:"Raw Body",required:!0});break;case"form_data":f.data=k.Array({displayName:"Form Data",required:!0,properties:{fieldName:k.ShortText({displayName:"Field Name",required:!0}),fieldType:k.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:k.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:k.File({displayName:"File Field Value",required:!1})}});break}return f},"props")}),response_is_binary:k.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:k.Checkbox({displayName:"No Error on Failure",required:!1,...s?.failsafe??{}}),timeout:k.Number({displayName:"Timeout (in seconds)",required:!1,...s?.timeout??{}}),followRedirects:k.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...u},run:i(async c=>{let{method:m,url:f,headers:d,queryParams:h,body:_,body_type:v,failsafe:y,timeout:w,response_is_binary:S,followRedirects:R}=c.propsValue;Te(m,"Method"),Te(f,"URL");let F=Mt(r)?{}:await r(c.auth,c.propsValue),U=f.url,Z=U.startsWith("http://")||U.startsWith("https://")?U:B$({baseUrl:t(c.auth),relativePath:U}),q={method:m,url:Z,headers:{...d??{},...l==="headers"||!Mt(l)?F:{}},queryParams:{...l==="queryParams"?F:{},...h??{}},timeout:w?w*1e3:0,followRedirects:R};if(S&&(q.responseType="arraybuffer"),_)if(v&&v!=="none"){let W=_.data;if(v==="form_data"){let G=W,N=new hg.default;for(let{fieldName:j,fieldType:de,textFieldValue:re,fileFieldValue:Ie}of G)de==="text"&&!Ni(re)?N.append(j,re):de==="file"&&!Ni(Ie)&&N.append(j,Ie.data,{filename:Ie?.filename});q.body=N,q.headers={...q.headers,...N.getHeaders()}}else q.body=W}else v||(q.body=_);try{let W=await Bt.sendRequest(q);return await V$(c.files,W.body,W.status,W.headers,S)}catch(W){if(y)return pf({error:W,requestBody:q.body});throw W}},"run")})}i(gg,"createCustomApiCallAction");var V$=i(async(e,t,r,n,o)=>{let a;if(o&&H$(t)){let s=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],u=F$(s??"")||"txt",l;t instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?l=t:l=Buffer.from(t),a=await e.write({fileName:`output.${u}`,data:l})}else a=t;return{status:r,headers:n,body:a}},"handleBinaryResponse"),H$=i(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var yg={async validateZod(e,t){let r=I(Object.entries(t).reduce((o,[a,s])=>({...o,[a]:s}),{})),n=await un(r,e);if(!n.success){let o=n.error.issues.reduce((a,s)=>({...a,[s.path.join(".")]:s.message}),{});throw new Error(JSON.stringify({errors:o},null,2))}}};var uO=B(require("node:crypto"));var vg=i(e=>{if(typeof e=="object"&&e!==null&&"name"in e&&typeof e.name=="string"&&e.name.length>0)return e.name},"nameOf"),al=Dn.OAuth2({description:"Authenticate via a Slack OAuth flow.",authUrl:"https://slack.com/oauth/v2/authorize?user_scope=search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write",tokenUrl:"https://slack.com/api/oauth.v2.access",required:!0,getConnectionIdentifier:i(async({auth:e})=>{let t=vg(e.data.team)??vg(e.data.enterprise);if(!t)return;let r=e.data.authed_user?.id;if(!r)return t;try{let o=(await Bt.sendRequest({method:"GET",url:"https://slack.com/api/users.info",queryParams:{user:r},headers:{Authorization:`Bearer ${e.access_token}`},timeout:5e3})).body.user,a=o?.profile?.display_name||o?.real_name||o?.name;return a?`${a} (${t})`:t}catch{return t}},"getConnectionIdentifier"),scope:["channels:read","channels:manage","channels:history","chat:write","groups:read","groups:write","groups:history","reactions:read","mpim:read","mpim:write","mpim:history","im:write","im:read","im:history","users:read","files:write","files:read","users:read.email","reactions:write","usergroups:read","usergroups:write","chat:write.customize","links:read","links:write","emoji:read","users.profile:read","channels:write.invites","groups:write.invites","channels:join","conversations.connect:write"]}),W$=Dn.CustomAuth({displayName:"Bot Token",description:"Authenticate using a Slack bot token (and optional user token).",required:!0,props:{botToken:Dn.SecretText({displayName:"Bot Token",description:"The bot token for your Slack app (starts with xoxb-)",required:!0}),userToken:Dn.SecretText({displayName:"User Token",description:"Optional user token for actions that require user-level access (starts with xoxp-)",required:!1})},validate:i(async({auth:e})=>{try{let t=await Bt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${e.botToken}`}});return t.body.ok?{valid:!0}:{valid:!1,error:`Slack auth test failed: ${t.body.error}`}}catch(t){return{valid:!1,error:t.message}}},"validate")}),E=[al,W$];var Wa=B(H());function Ha(e){return e.type==="CUSTOM_AUTH"}i(Ha,"isCustomAuth");function D(e){let t=e;return Ha(t)?t.props.botToken:t.access_token}i(D,"getBotToken");function Pc(e){let t=e;return Ha(t)?t.props.userToken||void 0:t.data?.authed_user?.access_token}i(Pc,"getUserToken");function Re(e){let t=Pc(e);if(!t)throw new Error(JSON.stringify({message:"Missing user token, please re-authenticate"}));return t}i(Re,"requireUserToken");async function Ee(e){let t=e;if(!Ha(t))return t.data.team_id??t.data.team.id;let r=await Bt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get team ID from Slack auth.test");return r.body.team_id}i(Ee,"getTeamId");async function ni(e){let t=e;if(!Ha(t)){let n=t.data.authed_user?.id;if(!n)throw new Error("Failed to get user ID from Slack auth data");return n}let r=await Bt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get user ID from Slack auth.test");return r.body.user_id}i(ni,"getUserId");var zx=`
63
63
  Please make sure add the bot to the channel by following these steps:
64
64
  1. Type /invite in the channel's chat.
65
65
  2. Click on Add apps to this channel.
66
66
  3. Search for and add the bot.
67
- `,Jr=k.MarkDown({value:Px+"\n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}"}),Xe=k.MarkDown({value:Px+`
67
+ `,Xr=k.MarkDown({value:zx+"\n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}"}),Xe=k.MarkDown({value:zx+`
68
68
  **Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.
69
- `}),Re=k.MarkDown({value:"This trigger needs Slack's App Webhook manually configured on self-hosted instances before it will receive events, see the [setup guide](https://www.activepieces.com/docs/install/configure-operate/setup-app-webhooks#slack).",variant:"INFO"}),Sx=k.MarkDown({value:"This trigger needs Slack's Interactivity & Shortcuts Request URL manually configured on self-hosted instances before it will receive events, see the [setup guide](https://www.activepieces.com/docs/install/configure-operate/setup-app-webhooks#slack).",variant:"INFO"}),ze=i(e=>k.Dropdown({auth:E,displayName:"Channel",description:"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=z(t);return{disabled:!1,placeholder:"Select channel",options:await zr(r)}}}),"slackChannel"),Wt=k.ShortText({displayName:"Username",description:"The username of the bot",required:!1}),Gt=k.ShortText({displayName:"Profile Picture",description:"The profile picture of the bot",required:!1}),Za=k.ShortText({displayName:"Icon Emoji",description:"The icon emoji of the bot",required:!1}),Wa=k.ShortText({displayName:"Reply to Thread (Thread Message Link/Timestamp)",description:"Provide the ts (timestamp) or link value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!1}),$t=k.Checkbox({displayName:"Mention flow of origin?",description:"If checked, adds a mention at the end of the Slack message to indicate which flow sent the notification, with a link to said flow.",required:!1,defaultValue:!1}),ni=k.Json({displayName:"Block Kit blocks",description:"See https://api.slack.com/block-kit for specs",required:!1,defaultValue:[]}),dt=i(e=>k.Dropdown({auth:E,displayName:"User",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=z(t);return{disabled:!1,placeholder:"Select User",options:await Ex(r)}}}),"userId"),Tx=k.MultiSelectDropdown({auth:E,displayName:"Users",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=z(e);return{disabled:!1,placeholder:"Select Users",options:await Ex(t)}}}),Ax=k.MultiSelectDropdown({auth:E,displayName:"User Groups",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=z(e);return{disabled:!1,placeholder:"Select User Groups",options:((await new Ha.WebClient(t).usergroups.list()).usergroups??[]).filter(a=>!a.date_delete).map(a=>({label:a.handle||a.name||"",value:a.id||""}))}}}),Kt=k.LongText({displayName:"Message",required:!0}),Ga=k.Array({displayName:"Action Buttons",required:!0,properties:{label:k.ShortText({displayName:"Label",required:!0}),style:k.StaticDropdown({displayName:"Style",required:!1,defaultValue:null,options:{options:[{label:"Default",value:null},{label:"Primary",value:"primary"},{label:"Danger",value:"danger"}]}})}});async function Ex(e){let t=new Ha.WebClient(e),r=[];for await(let n of t.paginate("users.list",{limit:1e3})){let o=n;o.members&&r.push(...o.members.filter(a=>!a.deleted).map(a=>({label:a.name||"",value:a.id||""})))}return r}i(Ex,"getUsers");async function zr(e){let t=new Ha.WebClient(e),r=[],n=2e3,o;do{let a=await t.conversations.list({types:"public_channel,private_channel",exclude_archived:!0,limit:1e3,cursor:o});a.channels&&r.push(...a.channels.map(s=>({label:s.name||"",value:s.id||""}))),o=a.response_metadata?.next_cursor}while(o&&r.length<n);return r}i(zr,"getChannels");var Ix=B(W());var mo=3e3;function qe(e){if(e.length<=mo)return[{type:"section",text:{type:"mrkdwn",text:e}}];let t=[],r=e;for(;r.length>0;){if(r.length<=mo){t.push({type:"section",text:{type:"mrkdwn",text:r}});break}let n=r.lastIndexOf(`
70
- `,mo);n<=0&&(n=r.lastIndexOf(" ",mo)),n<=0&&(n=mo),t.push({type:"section",text:{type:"mrkdwn",text:r.substring(0,n)}}),r=r.substring(n).trimStart()}return t}i(qe,"textToSectionBlocks");function Jt(e){return{type:"context",elements:[{type:"mrkdwn",text:`Message sent by <${new URL(e.server.publicUrl).origin}/projects/${e.project.id}/flows/${e.flows.current.id}|this flow>.`}]}}i(Jt,"buildFlowOriginContextBlock");var Dt=i(async({text:e,conversationId:t,username:r,profilePicture:n,iconEmoji:o,blocks:a,threadTs:s,token:u,file:l,replyBroadcast:p,unfurlLinks:c})=>{let m=new Ix.WebClient(u);if(l)return await m.files.uploadV2({channel_id:t,initial_comment:e,thread_ts:s,file_uploads:[{file:l.data,filename:l.filename}]});{let f={text:e,channel:t,username:r,icon_url:n,icon_emoji:o,blocks:a,thread_ts:s};return p&&(f.reply_broadcast=p),c===!1&&(f.unfurl_links=!1),await m.chat.postMessage(f)}},"slackSendMessage");function we(e){let t=/\/p(\d+)(\d{6})$/,r=e.match(t);if(r)return`${r[1]}.${r[2]}`;let n=/^(\d+)\.(\d{6})$/;if(e.match(n))return e}i(we,"processMessageTimestamp");function Ka(e,t,r){if(!t)return null;let n=new RegExp(`<@${t}>\\s+(.+)`,"s"),o=e.match(n);if(!o)return null;let s=o[1].trim().split(/\s+/),u=s[0].toLowerCase(),l=s.slice(1);return r.includes(u)?{command:u,args:l}:null}i(Ka,"parseCommand");var Ja=i(async(e,t)=>{let{actions:r}=t.propsValue;if(Te(r,"actions"),!r.length)throw new Error("Must have at least one button action");let n=r.map(({label:o,style:a})=>{if(!o)throw new Error("Button text for the action cannot be empty");return{label:o,style:a,actionId:encodeURI(o)}});if(t.executionType==="BEGIN"){let o=await t.run.createWaitpoint({type:"WEBHOOK"}),a=z(t.auth),{text:s,username:u,profilePicture:l,replyBroadcast:p}=t.propsValue;Te(a,"token"),Te(s,"text");let c=n.map(f=>{let d=o.buildResumeUrl({queryParams:{action:f.actionId}});return{type:"button",text:{type:"plain_text",text:f.label},...f.style&&{style:f.style},value:d,action_id:f.actionId}}),m=await Dt({token:a,text:`${t.propsValue.text}`,username:u,profilePicture:l,threadTs:t.propsValue.threadTs?we(t.propsValue.threadTs):void 0,replyBroadcast:p,blocks:[...qe(`${t.propsValue.text}`),{type:"actions",block_id:"actions",elements:c},...t.propsValue.mentionOriginFlow?[Jt(t)]:[]],conversationId:e});return t.run.waitForWaitpoint(o.id),{action:n.at(0)||"N/A",payload:{type:"action_blocks",user:{id:m.message?.user,username:"user.name",name:"john.smith",team_id:m.message?.team},container:{type:"message",message_ts:m.ts,channel_id:m.channel,is_ephemeral:!1},trigger_id:"trigger_id",team:{id:m.message?.team,domain:"team_name"},channel:{id:m.channel,name:"#channel"},message:m.message,state:{},actions:[{action_id:"action_id",block_id:"actions",value:"resume_url",style:"primary",type:"button",action_ts:"action_ts"}]}}}else{let o=t.resumePayload.queryParams;return{action:decodeURI(o.action),payload:t.resumePayload.body}}},"requestAction");var kc=[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_channel",label:"Is Channel",format:"boolean"},{key:"is_group",label:"Is Group",format:"boolean"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"},{key:"is_general",label:"Is General",format:"boolean"},{key:"is_member",label:"Is Member",format:"boolean"},{key:"is_shared",label:"Is Shared",format:"boolean"},{key:"created",label:"Created (Unix Timestamp)",format:"number"},{key:"creator",label:"Creator User ID"},{key:"num_members",label:"Member Count",format:"number"},{key:"topic",label:"Topic",children:[{key:"value",label:"Value"},{key:"creator",label:"Set By User ID"},{key:"last_set",label:"Last Set (Unix Timestamp)",format:"number"}]},{key:"purpose",label:"Purpose",children:[{key:"value",label:"Value"},{key:"creator",label:"Set By User ID"},{key:"last_set",label:"Last Set (Unix Timestamp)",format:"number"}]},{key:"previous_names",label:"Previous Names"}],mt={fields:[{key:"channel",label:"Channel",children:kc}]},Cx={fields:[{key:"channel",label:"Channel",children:kc},{key:"warning",label:"Warning"}]},Ox={fields:kc},Rx={fields:[{key:"channels",label:"Channels",listItems:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"},{key:"is_member",label:"Is Member",format:"boolean"},{key:"num_members",label:"Member Count",format:"number"}],labelKey:"name"},{key:"count",label:"Count",format:"number"}]},zx={fields:[{key:"channels",label:"Channels",listItems:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"},{key:"is_im",label:"Is Direct Message",format:"boolean"}],labelKey:"name"},{key:"count",label:"Count",format:"number"}]},$x={fields:[{key:"members",label:"Member User IDs"},{key:"count",label:"Count",format:"number"}]},Xr=[{key:"ts",label:"Timestamp"},{key:"user",label:"User ID"},{key:"text",label:"Text"},{key:"type",label:"Type"},{key:"subtype",label:"Subtype"},{key:"bot_id",label:"Bot ID"},{key:"team",label:"Team ID"},{key:"thread_ts",label:"Thread Timestamp"},{key:"reply_count",label:"Reply Count",format:"number"},{key:"reply_users_count",label:"Reply Users Count",format:"number"},{key:"latest_reply",label:"Latest Reply Timestamp"},{key:"is_locked",label:"Is Locked",format:"boolean"},{key:"edited",label:"Edited",children:[{key:"user",label:"Edited By User ID"},{key:"ts",label:"Edited At (Timestamp)"}]},{key:"reactions",label:"Reactions",listItems:[{key:"name",label:"Emoji Name"},{key:"count",label:"Count",format:"number"}],labelKey:"name"}],Yr={fields:[{key:"channel",label:"Channel ID"},{key:"ts",label:"Timestamp"},{key:"message",label:"Message",children:Xr}]},Xa={fields:[{key:"channel",label:"Channel ID"},{key:"ts",label:"Timestamp"},{key:"text",label:"Text"},{key:"message",label:"Message",children:Xr}]},Dx={fields:[{key:"messages",label:"Messages",listItems:Xr,labelKey:"text"},{key:"has_more",label:"Has More",format:"boolean"}]},Ya={fields:[{key:"messages",label:"Messages",listItems:Xr,labelKey:"text"},{key:"has_more",label:"Has More",format:"boolean"}]},Qa={fields:[{key:"messages",value:"",label:"Messages",listItems:Xr,labelKey:"text"}],itemLabel:"{fields.text}"},Nx=[{key:"ts",label:"Timestamp"},{key:"text",label:"Text"},{key:"user",label:"User ID"},{key:"username",label:"Username"},{key:"type",label:"Type"},{key:"channel",label:"Channel",children:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"}]},{key:"permalink",label:"Permalink",format:"url"},{key:"score",label:"Relevance Score",format:"number"}],es={fields:[{key:"matches",value:"",label:"Matches",listItems:Nx,labelKey:"text"}],itemLabel:"{fields.text}"},ts=[{key:"id",label:"File ID"},{key:"name",label:"Name"},{key:"title",label:"Title"},{key:"mimetype",label:"MIME Type"},{key:"filetype",label:"File Type"},{key:"pretty_type",label:"Pretty Type"},{key:"size",label:"Size",format:"filesize"},{key:"user",label:"Uploaded By User ID"},{key:"created",label:"Created (Unix Timestamp)",format:"number"},{key:"url_private",label:"Private URL",format:"url"},{key:"url_private_download",label:"Download URL",format:"url"},{key:"permalink",label:"Permalink",format:"url"},{key:"permalink_public",label:"Public Permalink",format:"url"},{key:"is_public",label:"Is Public",format:"boolean"},{key:"is_external",label:"Is External",format:"boolean"}],Ux={fields:[{key:"messages",label:"Messages",listItems:Nx,labelKey:"text"},{key:"files",label:"Files",listItems:ts,labelKey:"name"},{key:"message_count",label:"Message Count",format:"number"},{key:"file_count",label:"File Count",format:"number"}]},Mx={fields:[{key:"scheduled_message_id",label:"Scheduled Message ID"},{key:"channel",label:"Channel ID"},{key:"post_at",label:"Post At (Unix Timestamp)",format:"number"},{key:"message",label:"Message",children:Xr}]},Lx={fields:[{key:"scheduled_messages",value:"",label:"Scheduled Messages",listItems:[{key:"id",label:"Scheduled Message ID"},{key:"channel_id",label:"Channel ID"},{key:"post_at",label:"Post At (Unix Timestamp)",format:"number"},{key:"date_created",label:"Created (Unix Timestamp)",format:"number"},{key:"text",label:"Text"}],labelKey:"text"}],itemLabel:"{fields.text}"},qx={fields:[{key:"message_ts",label:"Message Timestamp"}]},Fx={fields:[{key:"channel",label:"Channel ID"},{key:"permalink",label:"Permalink",format:"url"}]},Bx={fields:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"message",label:"Message",children:[{key:"ts",label:"Timestamp"},{key:"user",label:"User ID"},{key:"text",label:"Text"},{key:"permalink",label:"Permalink",format:"url"},{key:"reactions",label:"Reactions",listItems:[{key:"name",label:"Emoji Name"},{key:"count",label:"Count",format:"number"}],labelKey:"name"}]},{key:"file",label:"File",children:[{key:"id",label:"File ID"},{key:"name",label:"Name"},{key:"reactions",label:"Reactions",listItems:[{key:"name",label:"Emoji Name"},{key:"count",label:"Count",format:"number"}],labelKey:"name"}]}]},jx={fields:[{key:"items",label:"Items",listItems:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"message",label:"Message",children:[{key:"ts",label:"Timestamp"},{key:"user",label:"User ID"},{key:"text",label:"Text"}]},{key:"file",label:"File",children:[{key:"id",label:"File ID"},{key:"name",label:"Name"}]}]},{key:"count",label:"Count",format:"number"}]},Vx={fields:[{key:"files",label:"Files",listItems:ts,labelKey:"name"}]},rs={fields:[...ts,{key:"data",label:"File Data URL",format:"url"}]},Hx={fields:[{key:"files",label:"Files",listItems:ts,labelKey:"name"},{key:"count",label:"Count",format:"number"}]},ns=[{key:"id",label:"User ID"},{key:"name",label:"Username"},{key:"real_name",label:"Real Name"},{key:"deleted",label:"Deleted",format:"boolean"},{key:"is_admin",label:"Is Admin",format:"boolean"},{key:"is_owner",label:"Is Owner",format:"boolean"},{key:"is_bot",label:"Is Bot",format:"boolean"},{key:"is_restricted",label:"Is Restricted",format:"boolean"},{key:"tz",label:"Timezone"},{key:"profile",label:"Profile",children:[{key:"email",label:"Email",format:"email"},{key:"real_name",label:"Real Name"},{key:"display_name",label:"Display Name"},{key:"title",label:"Title"},{key:"phone",label:"Phone"},{key:"image_192",label:"Avatar",format:"image"},{key:"status_text",label:"Status Text"},{key:"status_emoji",label:"Status Emoji"},{key:"first_name",label:"First Name"},{key:"last_name",label:"Last Name"}]}],is={fields:[{key:"user",label:"User",children:ns}]},os={fields:ns},as={fields:[{key:"users",value:"",label:"Users",listItems:ns,labelKey:"real_name"}],itemLabel:"{fields.real_name}"},Zx=[{key:"real_name",label:"Real Name"},{key:"display_name",label:"Display Name"},{key:"email",label:"Email",format:"email"},{key:"first_name",label:"First Name"},{key:"last_name",label:"Last Name"},{key:"title",label:"Title"},{key:"phone",label:"Phone"},{key:"status_text",label:"Status Text"},{key:"status_emoji",label:"Status Emoji"},{key:"image_192",label:"Avatar",format:"image"},{key:"team",label:"Team ID"}],ss={fields:[{key:"profile",label:"Profile",children:Zx}]},Qr={fields:[{key:"profile",label:"Profile",children:Zx}]},Wx={fields:[{key:"emoji",label:"Custom Emoji"},{key:"count",label:"Count",format:"number"}]},wc=[{key:"id",label:"Group ID"},{key:"team_id",label:"Team ID"},{key:"name",label:"Name"},{key:"description",label:"Description"},{key:"handle",label:"Handle"},{key:"is_external",label:"Is External",format:"boolean"},{key:"date_create",label:"Created (Unix Timestamp)",format:"number"},{key:"date_update",label:"Updated (Unix Timestamp)",format:"number"},{key:"date_delete",label:"Deleted (Unix Timestamp)",format:"number"},{key:"created_by",label:"Created By User ID"},{key:"updated_by",label:"Updated By User ID"},{key:"user_count",label:"Member Count",format:"number"},{key:"users",label:"Member User IDs"}],Gx={fields:wc},Kx={fields:[{key:"usergroups",label:"User Groups",listItems:wc,labelKey:"name"}]},Jx={fields:[{key:"usergroup",label:"User Group",children:wc}]},us={fields:[{key:"approved",label:"Approved",format:"boolean"},{key:"messageTs",label:"Message Timestamp"}]},ls={fields:[{key:"action",label:"Selected Action"},{key:"payload",label:"Payload"}]},Xx={fields:[{key:"type",label:"Event Type"},{key:"channel",label:"Channel",children:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"created",label:"Created (Unix Timestamp)",format:"number"},{key:"creator",label:"Creator User ID"}]},{key:"event_ts",label:"Event Timestamp"}]},wn=[{key:"channel",label:"Channel ID"},{key:"channel_type",label:"Channel Type"},{key:"event_ts",label:"Event Timestamp"},...Xr],Yx={fields:wn},Qx={fields:wn},e_={fields:wn},t_={fields:wn},r_={fields:[...wn,{key:"clean_text",label:"Clean Text (Mentions Removed)"}]},n_={key:"parsed_command",label:"Parsed Command",children:[{key:"command",label:"Command"},{key:"args",label:"Arguments"}]},i_={fields:[...wn,n_]},o_={fields:[...wn,n_]},a_={fields:[{key:"type",label:"Interaction Type"},{key:"trigger_id",label:"Trigger ID"},{key:"api_app_id",label:"App ID"},{key:"team",label:"Team",children:[{key:"id",label:"Team ID"},{key:"domain",label:"Team Domain"}]},{key:"user",label:"User",children:[{key:"id",label:"User ID"},{key:"username",label:"Username"},{key:"name",label:"Name"},{key:"team_id",label:"Team ID"}]},{key:"view",label:"View",children:[{key:"id",label:"View ID"},{key:"callback_id",label:"Callback ID"},{key:"private_metadata",label:"Private Metadata"},{key:"state",label:"State",children:[{key:"values",label:"Submitted Values"}]},{key:"hash",label:"Hash"}]}]},s_=[{key:"type",label:"Event Type"},{key:"user",label:"User ID"},{key:"reaction",label:"Emoji Name"},{key:"item_user",label:"Item Owner User ID"},{key:"item",label:"Item",children:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"ts",label:"Message Timestamp"}]},{key:"event_ts",label:"Event Timestamp"}],u_={fields:s_},l_={fields:s_},c_={fields:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"message",label:"Message",children:Xr}]},p_={fields:[{key:"id",label:"Emoji Name"},{key:"image",label:"Image URL",format:"url"}]},d_={fields:[{key:"team_id",label:"Team ID"},...ns]};var m_=C({auth:E,name:"request_action_direct_message",displayName:"Request Action from A User",description:"Send a message to a user and wait until the user selects an action",audience:"both",aiMetadata:{description:"Send a direct message with interactive buttons to a user and pause the flow until that user clicks one of the defined actions, then resume with their choice. Use this for a human-in-the-loop decision via DM; use Request Approval in a Channel for a simple approve/disapprove gate in a channel. Sends a new message each run, so it is not idempotent.",idempotent:!1},outputSchema:ls,props:{userId:dt(!0),text:Kt,actions:Ga,username:Wt,profilePicture:Gt,mentionOriginFlow:$t},async run(e){let{userId:t}=e.propsValue;return Te(t,"userId"),await Ja(t,e)}});var f_=C({auth:E,name:"request_action_message",displayName:"Request Action in A Channel",description:"Send a message in a channel and wait until an action is selected",audience:"both",aiMetadata:{description:"Post a message with interactive action buttons to a Slack channel and pause the flow until a recipient clicks one, then resume with the chosen action. Pick this for human-in-the-loop branching in a shared channel; use Request Approval from A User for a private approve/disapprove DM. Not idempotent: each run posts a new message and creates a fresh wait.",idempotent:!1},outputSchema:ls,props:{info:Xe,channel:ze(!0),text:Kt,actions:Ga,threadTs:Wa,username:Wt,profilePicture:Gt,replyBroadcast:k.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:$t},async run(e){let{channel:t}=e.propsValue;return Te(t,"channel"),await Ja(t,e)}});var Pc=B(W());var h_=C({auth:E,name:"request_approval_direct_message",displayName:"Request Approval from A User",description:"Send approval message to a user and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Direct-message one Slack user an approval request with Approve/Disapprove buttons and pause the flow until they respond. Pick this for a private one-to-one approval gate; use Request Action in A Channel to ask a whole channel. Not idempotent: each run sends a new DM and creates a fresh wait.",idempotent:!1},outputSchema:us,props:{userId:dt(!0),text:Kt,username:Wt,profilePicture:Gt,mentionOriginFlow:$t},async run(e){if(e.executionType==="BEGIN"){let t=z(e.auth),{userId:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Te(t,"token"),Te(Kt,"text"),Te(r,"userId");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),u=await Dt({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r}),l=u.channel,p=u.ts,c=s.buildResumeUrl({queryParams:{action:"approve",channel:l,messageTs:p}}),m=s.buildResumeUrl({queryParams:{action:"disapprove",channel:l,messageTs:p}});return await new Pc.WebClient(t).chat.update({ts:p,channel:l,text:e.propsValue.text,blocks:[...qe(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:c,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:m,action_id:"disapprove"}]},...a?[Jt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:p}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=z(e.auth);try{if(o&&r&&n){let a=new Pc.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
69
+ `}),ze=k.MarkDown({value:"This trigger needs Slack's App Webhook manually configured on self-hosted instances before it will receive events, see the [setup guide](https://www.activepieces.com/docs/install/configure-operate/setup-app-webhooks#slack).",variant:"INFO"}),Dx=k.MarkDown({value:"This trigger needs Slack's Interactivity & Shortcuts Request URL manually configured on self-hosted instances before it will receive events, see the [setup guide](https://www.activepieces.com/docs/install/configure-operate/setup-app-webhooks#slack).",variant:"INFO"}),De=i(e=>k.Dropdown({auth:E,displayName:"Channel",description:"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=D(t);return{disabled:!1,placeholder:"Select channel",options:await zr(r)}}}),"slackChannel"),Gt=k.ShortText({displayName:"Username",description:"The username of the bot",required:!1}),Kt=k.ShortText({displayName:"Profile Picture",description:"The profile picture of the bot",required:!1}),Za=k.ShortText({displayName:"Icon Emoji",description:"The icon emoji of the bot",required:!1}),Ga=k.ShortText({displayName:"Reply to Thread (Thread Message Link/Timestamp)",description:"Provide the ts (timestamp) or link value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!1}),Dt=k.Checkbox({displayName:"Mention flow of origin?",description:"If checked, adds a mention at the end of the Slack message to indicate which flow sent the notification, with a link to said flow.",required:!1,defaultValue:!1}),ii=k.Json({displayName:"Block Kit blocks",description:"See https://api.slack.com/block-kit for specs",required:!1,defaultValue:[]}),mt=i(e=>k.Dropdown({auth:E,displayName:"User",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=D(t);return{disabled:!1,placeholder:"Select User",options:await Ux(r)}}}),"userId"),$x=k.MultiSelectDropdown({auth:E,displayName:"Users",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=D(e);return{disabled:!1,placeholder:"Select Users",options:await Ux(t)}}}),Nx=k.MultiSelectDropdown({auth:E,displayName:"User Groups",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=D(e);return{disabled:!1,placeholder:"Select User Groups",options:((await new Wa.WebClient(t).usergroups.list()).usergroups??[]).filter(a=>!a.date_delete).map(a=>({label:a.handle||a.name||"",value:a.id||""}))}}}),Jt=k.LongText({displayName:"Message",required:!0}),Ka=k.Array({displayName:"Action Buttons",required:!0,properties:{label:k.ShortText({displayName:"Label",required:!0}),style:k.StaticDropdown({displayName:"Style",required:!1,defaultValue:null,options:{options:[{label:"Default",value:null},{label:"Primary",value:"primary"},{label:"Danger",value:"danger"}]}})}});async function Ux(e){let t=new Wa.WebClient(e),r=[];for await(let n of t.paginate("users.list",{limit:1e3})){let o=n;o.members&&r.push(...o.members.filter(a=>!a.deleted).map(a=>({label:a.name||"",value:a.id||""})))}return r}i(Ux,"getUsers");async function zr(e){let t=new Wa.WebClient(e),r=[],n=2e3,o;do{let a=await t.conversations.list({types:"public_channel,private_channel",exclude_archived:!0,limit:1e3,cursor:o});a.channels&&r.push(...a.channels.map(s=>({label:s.name||"",value:s.id||""}))),o=a.response_metadata?.next_cursor}while(o&&r.length<n);return r}i(zr,"getChannels");var Mx=B(H());var fo=3e3;function Be(e){if(e.length<=fo)return[{type:"section",text:{type:"mrkdwn",text:e}}];let t=[],r=e;for(;r.length>0;){if(r.length<=fo){t.push({type:"section",text:{type:"mrkdwn",text:r}});break}let n=r.lastIndexOf(`
70
+ `,fo);n<=0&&(n=r.lastIndexOf(" ",fo)),n<=0&&(n=fo),t.push({type:"section",text:{type:"mrkdwn",text:r.substring(0,n)}}),r=r.substring(n).trimStart()}return t}i(Be,"textToSectionBlocks");function Xt(e){return{type:"context",elements:[{type:"mrkdwn",text:`Message sent by <${new URL(e.server.publicUrl).origin}/projects/${e.project.id}/flows/${e.flows.current.id}|this flow>.`}]}}i(Xt,"buildFlowOriginContextBlock");var $t=i(async({text:e,conversationId:t,username:r,profilePicture:n,iconEmoji:o,blocks:a,threadTs:s,token:u,file:l,replyBroadcast:p,unfurlLinks:c})=>{let m=new Mx.WebClient(u);if(l)return await m.files.uploadV2({channel_id:t,initial_comment:e,thread_ts:s,file_uploads:[{file:l.data,filename:l.filename}]});{let f={text:e,channel:t,username:r,icon_url:n,icon_emoji:o,blocks:a,thread_ts:s};return p&&(f.reply_broadcast=p),c===!1&&(f.unfurl_links=!1),await m.chat.postMessage(f)}},"slackSendMessage");function we(e){let t=/\/p(\d+)(\d{6})$/,r=e.match(t);if(r)return`${r[1]}.${r[2]}`;let n=/^(\d+)\.(\d{6})$/;if(e.match(n))return e}i(we,"processMessageTimestamp");function Ja(e,t,r){if(!t)return null;let n=new RegExp(`<@${t}>\\s+(.+)`,"s"),o=e.match(n);if(!o)return null;let s=o[1].trim().split(/\s+/),u=s[0].toLowerCase(),l=s.slice(1);return r.includes(u)?{command:u,args:l}:null}i(Ja,"parseCommand");var Xa=i(async(e,t)=>{let{actions:r}=t.propsValue;if(Te(r,"actions"),!r.length)throw new Error("Must have at least one button action");let n=r.map(({label:o,style:a})=>{if(!o)throw new Error("Button text for the action cannot be empty");return{label:o,style:a,actionId:encodeURI(o)}});if(t.executionType==="BEGIN"){let o=await t.run.createWaitpoint({type:"WEBHOOK"}),a=D(t.auth),{text:s,username:u,profilePicture:l,replyBroadcast:p}=t.propsValue;Te(a,"token"),Te(s,"text");let c=n.map(f=>{let d=o.buildResumeUrl({queryParams:{action:f.actionId}});return{type:"button",text:{type:"plain_text",text:f.label},...f.style&&{style:f.style},value:d,action_id:f.actionId}}),m=await $t({token:a,text:`${t.propsValue.text}`,username:u,profilePicture:l,threadTs:t.propsValue.threadTs?we(t.propsValue.threadTs):void 0,replyBroadcast:p,blocks:[...Be(`${t.propsValue.text}`),{type:"actions",block_id:"actions",elements:c},...t.propsValue.mentionOriginFlow?[Xt(t)]:[]],conversationId:e});return t.run.waitForWaitpoint(o.id),{action:n.at(0)||"N/A",payload:{type:"action_blocks",user:{id:m.message?.user,username:"user.name",name:"john.smith",team_id:m.message?.team},container:{type:"message",message_ts:m.ts,channel_id:m.channel,is_ephemeral:!1},trigger_id:"trigger_id",team:{id:m.message?.team,domain:"team_name"},channel:{id:m.channel,name:"#channel"},message:m.message,state:{},actions:[{action_id:"action_id",block_id:"actions",value:"resume_url",style:"primary",type:"button",action_ts:"action_ts"}]}}}else{let o=t.resumePayload.queryParams;return{action:decodeURI(o.action),payload:t.resumePayload.body}}},"requestAction");var Sc=[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_channel",label:"Is Channel",format:"boolean"},{key:"is_group",label:"Is Group",format:"boolean"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"},{key:"is_general",label:"Is General",format:"boolean"},{key:"is_member",label:"Is Member",format:"boolean"},{key:"is_shared",label:"Is Shared",format:"boolean"},{key:"created",label:"Created (Unix Timestamp)",format:"number"},{key:"creator",label:"Creator User ID"},{key:"num_members",label:"Member Count",format:"number"},{key:"topic",label:"Topic",children:[{key:"value",label:"Value"},{key:"creator",label:"Set By User ID"},{key:"last_set",label:"Last Set (Unix Timestamp)",format:"number"}]},{key:"purpose",label:"Purpose",children:[{key:"value",label:"Value"},{key:"creator",label:"Set By User ID"},{key:"last_set",label:"Last Set (Unix Timestamp)",format:"number"}]},{key:"previous_names",label:"Previous Names"}],ft={fields:[{key:"channel",label:"Channel",children:Sc}]},Lx={fields:[{key:"channel",label:"Channel",children:Sc},{key:"warning",label:"Warning"}]},qx={fields:Sc},Fx={fields:[{key:"channels",label:"Channels",listItems:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"},{key:"is_member",label:"Is Member",format:"boolean"},{key:"num_members",label:"Member Count",format:"number"}],labelKey:"name"},{key:"count",label:"Count",format:"number"}]},Bx={fields:[{key:"channels",label:"Channels",listItems:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"},{key:"is_im",label:"Is Direct Message",format:"boolean"}],labelKey:"name"},{key:"count",label:"Count",format:"number"}]},jx={fields:[{key:"members",label:"Member User IDs"},{key:"count",label:"Count",format:"number"}]},Yr=[{key:"ts",label:"Timestamp"},{key:"user",label:"User ID"},{key:"text",label:"Text"},{key:"type",label:"Type"},{key:"subtype",label:"Subtype"},{key:"bot_id",label:"Bot ID"},{key:"team",label:"Team ID"},{key:"thread_ts",label:"Thread Timestamp"},{key:"reply_count",label:"Reply Count",format:"number"},{key:"reply_users_count",label:"Reply Users Count",format:"number"},{key:"latest_reply",label:"Latest Reply Timestamp"},{key:"is_locked",label:"Is Locked",format:"boolean"},{key:"edited",label:"Edited",children:[{key:"user",label:"Edited By User ID"},{key:"ts",label:"Edited At (Timestamp)"}]},{key:"reactions",label:"Reactions",listItems:[{key:"name",label:"Emoji Name"},{key:"count",label:"Count",format:"number"}],labelKey:"name"}],Qr={fields:[{key:"channel",label:"Channel ID"},{key:"ts",label:"Timestamp"},{key:"message",label:"Message",children:Yr}]},Ya={fields:[{key:"channel",label:"Channel ID"},{key:"ts",label:"Timestamp"},{key:"text",label:"Text"},{key:"message",label:"Message",children:Yr}]},Vx={fields:[{key:"messages",label:"Messages",listItems:Yr,labelKey:"text"},{key:"has_more",label:"Has More",format:"boolean"}]},Qa={fields:[{key:"messages",label:"Messages",listItems:Yr,labelKey:"text"},{key:"has_more",label:"Has More",format:"boolean"}]},es={fields:[{key:"messages",value:"",label:"Messages",listItems:Yr,labelKey:"text"}],itemLabel:"{fields.text}"},Hx=[{key:"ts",label:"Timestamp"},{key:"text",label:"Text"},{key:"user",label:"User ID"},{key:"username",label:"Username"},{key:"type",label:"Type"},{key:"channel",label:"Channel",children:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"is_private",label:"Is Private",format:"boolean"},{key:"is_archived",label:"Is Archived",format:"boolean"}]},{key:"permalink",label:"Permalink",format:"url"},{key:"score",label:"Relevance Score",format:"number"}],ts={fields:[{key:"matches",value:"",label:"Matches",listItems:Hx,labelKey:"text"}],itemLabel:"{fields.text}"},rs=[{key:"id",label:"File ID"},{key:"name",label:"Name"},{key:"title",label:"Title"},{key:"mimetype",label:"MIME Type"},{key:"filetype",label:"File Type"},{key:"pretty_type",label:"Pretty Type"},{key:"size",label:"Size",format:"filesize"},{key:"user",label:"Uploaded By User ID"},{key:"created",label:"Created (Unix Timestamp)",format:"number"},{key:"url_private",label:"Private URL",format:"url"},{key:"url_private_download",label:"Download URL",format:"url"},{key:"permalink",label:"Permalink",format:"url"},{key:"permalink_public",label:"Public Permalink",format:"url"},{key:"is_public",label:"Is Public",format:"boolean"},{key:"is_external",label:"Is External",format:"boolean"}],Wx={fields:[{key:"messages",label:"Messages",listItems:Hx,labelKey:"text"},{key:"files",label:"Files",listItems:rs,labelKey:"name"},{key:"message_count",label:"Message Count",format:"number"},{key:"file_count",label:"File Count",format:"number"}]},Zx={fields:[{key:"scheduled_message_id",label:"Scheduled Message ID"},{key:"channel",label:"Channel ID"},{key:"post_at",label:"Post At (Unix Timestamp)",format:"number"},{key:"message",label:"Message",children:Yr}]},Gx={fields:[{key:"scheduled_messages",value:"",label:"Scheduled Messages",listItems:[{key:"id",label:"Scheduled Message ID"},{key:"channel_id",label:"Channel ID"},{key:"post_at",label:"Post At (Unix Timestamp)",format:"number"},{key:"date_created",label:"Created (Unix Timestamp)",format:"number"},{key:"text",label:"Text"}],labelKey:"text"}],itemLabel:"{fields.text}"},Kx={fields:[{key:"message_ts",label:"Message Timestamp"}]},Jx={fields:[{key:"channel",label:"Channel ID"},{key:"permalink",label:"Permalink",format:"url"}]},Xx={fields:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"message",label:"Message",children:[{key:"ts",label:"Timestamp"},{key:"user",label:"User ID"},{key:"text",label:"Text"},{key:"permalink",label:"Permalink",format:"url"},{key:"reactions",label:"Reactions",listItems:[{key:"name",label:"Emoji Name"},{key:"count",label:"Count",format:"number"}],labelKey:"name"}]},{key:"file",label:"File",children:[{key:"id",label:"File ID"},{key:"name",label:"Name"},{key:"reactions",label:"Reactions",listItems:[{key:"name",label:"Emoji Name"},{key:"count",label:"Count",format:"number"}],labelKey:"name"}]}]},Yx={fields:[{key:"items",label:"Items",listItems:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"message",label:"Message",children:[{key:"ts",label:"Timestamp"},{key:"user",label:"User ID"},{key:"text",label:"Text"}]},{key:"file",label:"File",children:[{key:"id",label:"File ID"},{key:"name",label:"Name"}]}]},{key:"count",label:"Count",format:"number"}]},Qx={fields:[{key:"files",label:"Files",listItems:rs,labelKey:"name"}]},ns={fields:[...rs,{key:"data",label:"File Data URL",format:"url"}]},e_={fields:[{key:"files",label:"Files",listItems:rs,labelKey:"name"},{key:"count",label:"Count",format:"number"}]},is=[{key:"id",label:"User ID"},{key:"name",label:"Username"},{key:"real_name",label:"Real Name"},{key:"deleted",label:"Deleted",format:"boolean"},{key:"is_admin",label:"Is Admin",format:"boolean"},{key:"is_owner",label:"Is Owner",format:"boolean"},{key:"is_bot",label:"Is Bot",format:"boolean"},{key:"is_restricted",label:"Is Restricted",format:"boolean"},{key:"tz",label:"Timezone"},{key:"profile",label:"Profile",children:[{key:"email",label:"Email",format:"email"},{key:"real_name",label:"Real Name"},{key:"display_name",label:"Display Name"},{key:"title",label:"Title"},{key:"phone",label:"Phone"},{key:"image_192",label:"Avatar",format:"image"},{key:"status_text",label:"Status Text"},{key:"status_emoji",label:"Status Emoji"},{key:"first_name",label:"First Name"},{key:"last_name",label:"Last Name"}]}],os={fields:[{key:"user",label:"User",children:is}]},as={fields:is},ss={fields:[{key:"users",value:"",label:"Users",listItems:is,labelKey:"real_name"}],itemLabel:"{fields.real_name}"},t_=[{key:"real_name",label:"Real Name"},{key:"display_name",label:"Display Name"},{key:"email",label:"Email",format:"email"},{key:"first_name",label:"First Name"},{key:"last_name",label:"Last Name"},{key:"title",label:"Title"},{key:"phone",label:"Phone"},{key:"status_text",label:"Status Text"},{key:"status_emoji",label:"Status Emoji"},{key:"image_192",label:"Avatar",format:"image"},{key:"team",label:"Team ID"}],us={fields:[{key:"profile",label:"Profile",children:t_}]},en={fields:[{key:"profile",label:"Profile",children:t_}]},r_={fields:[{key:"emoji",label:"Custom Emoji"},{key:"count",label:"Count",format:"number"}]},Tc=[{key:"id",label:"Group ID"},{key:"team_id",label:"Team ID"},{key:"name",label:"Name"},{key:"description",label:"Description"},{key:"handle",label:"Handle"},{key:"is_external",label:"Is External",format:"boolean"},{key:"date_create",label:"Created (Unix Timestamp)",format:"number"},{key:"date_update",label:"Updated (Unix Timestamp)",format:"number"},{key:"date_delete",label:"Deleted (Unix Timestamp)",format:"number"},{key:"created_by",label:"Created By User ID"},{key:"updated_by",label:"Updated By User ID"},{key:"user_count",label:"Member Count",format:"number"},{key:"users",label:"Member User IDs"}],n_={fields:Tc},i_={fields:[{key:"usergroups",label:"User Groups",listItems:Tc,labelKey:"name"}]},o_={fields:[{key:"usergroup",label:"User Group",children:Tc}]},ls={fields:[{key:"approved",label:"Approved",format:"boolean"},{key:"messageTs",label:"Message Timestamp"}]},cs={fields:[{key:"action",label:"Selected Action"},{key:"payload",label:"Payload"}]},a_={fields:[{key:"type",label:"Event Type"},{key:"channel",label:"Channel",children:[{key:"id",label:"Channel ID"},{key:"name",label:"Name"},{key:"created",label:"Created (Unix Timestamp)",format:"number"},{key:"creator",label:"Creator User ID"}]},{key:"event_ts",label:"Event Timestamp"}]},wn=[{key:"channel",label:"Channel ID"},{key:"channel_type",label:"Channel Type"},{key:"event_ts",label:"Event Timestamp"},...Yr],s_={fields:wn},u_={fields:wn},l_={fields:wn},c_={fields:wn},p_={fields:[...wn,{key:"clean_text",label:"Clean Text (Mentions Removed)"}]},d_={key:"parsed_command",label:"Parsed Command",children:[{key:"command",label:"Command"},{key:"args",label:"Arguments"}]},m_={fields:[...wn,d_]},f_={fields:[...wn,d_]},h_={fields:[{key:"type",label:"Interaction Type"},{key:"trigger_id",label:"Trigger ID"},{key:"api_app_id",label:"App ID"},{key:"team",label:"Team",children:[{key:"id",label:"Team ID"},{key:"domain",label:"Team Domain"}]},{key:"user",label:"User",children:[{key:"id",label:"User ID"},{key:"username",label:"Username"},{key:"name",label:"Name"},{key:"team_id",label:"Team ID"}]},{key:"view",label:"View",children:[{key:"id",label:"View ID"},{key:"callback_id",label:"Callback ID"},{key:"private_metadata",label:"Private Metadata"},{key:"state",label:"State",children:[{key:"values",label:"Submitted Values"}]},{key:"hash",label:"Hash"}]}]},g_=[{key:"type",label:"Event Type"},{key:"user",label:"User ID"},{key:"reaction",label:"Emoji Name"},{key:"item_user",label:"Item Owner User ID"},{key:"item",label:"Item",children:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"ts",label:"Message Timestamp"}]},{key:"event_ts",label:"Event Timestamp"}],y_={fields:g_},v_={fields:g_},b_={fields:[{key:"type",label:"Item Type"},{key:"channel",label:"Channel ID"},{key:"message",label:"Message",children:Yr}]},x_={fields:[{key:"id",label:"Emoji Name"},{key:"image",label:"Image URL",format:"url"}]},__={fields:[{key:"team_id",label:"Team ID"},...is]};var k_=C({auth:E,name:"request_action_direct_message",classification:"WRITE",displayName:"Request Action from A User",description:"Send a message to a user and wait until the user selects an action",audience:"both",aiMetadata:{description:"Send a direct message with interactive buttons to a user and pause the flow until that user clicks one of the defined actions, then resume with their choice. Use this for a human-in-the-loop decision via DM; use Request Approval in a Channel for a simple approve/disapprove gate in a channel. Sends a new message each run, so it is not idempotent.",idempotent:!1},outputSchema:cs,props:{userId:mt(!0),text:Jt,actions:Ka,username:Gt,profilePicture:Kt,mentionOriginFlow:Dt},async run(e){let{userId:t}=e.propsValue;return Te(t,"userId"),await Xa(t,e)}});var w_=C({auth:E,name:"request_action_message",classification:"WRITE",displayName:"Request Action in A Channel",description:"Send a message in a channel and wait until an action is selected",audience:"both",aiMetadata:{description:"Post a message with interactive action buttons to a Slack channel and pause the flow until a recipient clicks one, then resume with the chosen action. Pick this for human-in-the-loop branching in a shared channel; use Request Approval from A User for a private approve/disapprove DM. Not idempotent: each run posts a new message and creates a fresh wait.",idempotent:!1},outputSchema:cs,props:{info:Xe,channel:De(!0),text:Jt,actions:Ka,threadTs:Ga,username:Gt,profilePicture:Kt,replyBroadcast:k.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:Dt},async run(e){let{channel:t}=e.propsValue;return Te(t,"channel"),await Xa(t,e)}});var Ac=B(H());var P_=C({auth:E,name:"request_approval_direct_message",classification:"WRITE",displayName:"Request Approval from A User",description:"Send approval message to a user and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Direct-message one Slack user an approval request with Approve/Disapprove buttons and pause the flow until they respond. Pick this for a private one-to-one approval gate; use Request Action in A Channel to ask a whole channel. Not idempotent: each run sends a new DM and creates a fresh wait.",idempotent:!1},outputSchema:ls,props:{userId:mt(!0),text:Jt,username:Gt,profilePicture:Kt,mentionOriginFlow:Dt},async run(e){if(e.executionType==="BEGIN"){let t=D(e.auth),{userId:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Te(t,"token"),Te(Jt,"text"),Te(r,"userId");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),u=await $t({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r}),l=u.channel,p=u.ts,c=s.buildResumeUrl({queryParams:{action:"approve",channel:l,messageTs:p}}),m=s.buildResumeUrl({queryParams:{action:"disapprove",channel:l,messageTs:p}});return await new Ac.WebClient(t).chat.update({ts:p,channel:l,text:e.propsValue.text,blocks:[...Be(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:c,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:m,action_id:"disapprove"}]},...a?[Xt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:p}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=D(e.auth);try{if(o&&r&&n){let a=new Ac.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
71
71
 
72
- ${s}`,blocks:[...qe(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var Sc=B(W());var g_=C({auth:E,name:"request_approval_message",displayName:"Request Approval in a Channel",description:"Send approval message to a channel and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Post a message with Approve/Disapprove buttons to a channel and pause the flow until someone clicks one, then resume with the boolean outcome. Use this for a simple approval gate visible to a channel; use Request Action from A User for a private DM with custom action choices. Posts a new message each run, so it is not idempotent.",idempotent:!1},outputSchema:us,props:{info:Xe,channel:ze(!0),text:Kt,username:Wt,profilePicture:Gt,mentionOriginFlow:$t},async run(e){if(e.executionType==="BEGIN"){let t=z(e.auth),{channel:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Te(t,"token"),Te(Kt,"text"),Te(r,"channel");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),l=(await Dt({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r})).ts,p=s.buildResumeUrl({queryParams:{action:"approve",channel:r,messageTs:l}}),c=s.buildResumeUrl({queryParams:{action:"disapprove",channel:r,messageTs:l}});return await new Sc.WebClient(t).chat.update({channel:r,ts:l,text:e.propsValue.text,blocks:[...qe(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:p,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:c,action_id:"disapprove"}]},...a?[Jt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:l}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=z(e.auth);try{if(o&&r&&n){let a=new Sc.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
72
+ ${s}`,blocks:[...Be(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var Ec=B(H());var S_=C({auth:E,name:"request_approval_message",classification:"WRITE",displayName:"Request Approval in a Channel",description:"Send approval message to a channel and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Post a message with Approve/Disapprove buttons to a channel and pause the flow until someone clicks one, then resume with the boolean outcome. Use this for a simple approval gate visible to a channel; use Request Action from A User for a private DM with custom action choices. Posts a new message each run, so it is not idempotent.",idempotent:!1},outputSchema:ls,props:{info:Xe,channel:De(!0),text:Jt,username:Gt,profilePicture:Kt,mentionOriginFlow:Dt},async run(e){if(e.executionType==="BEGIN"){let t=D(e.auth),{channel:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Te(t,"token"),Te(Jt,"text"),Te(r,"channel");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),l=(await $t({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r})).ts,p=s.buildResumeUrl({queryParams:{action:"approve",channel:r,messageTs:l}}),c=s.buildResumeUrl({queryParams:{action:"disapprove",channel:r,messageTs:l}});return await new Ec.WebClient(t).chat.update({channel:r,ts:l,text:e.propsValue.text,blocks:[...Be(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:p,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:c,action_id:"disapprove"}]},...a?[Xt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:l}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=D(e.auth);try{if(o&&r&&n){let a=new Ec.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
73
73
 
74
- ${s}`,blocks:[...qe(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var y_=C({auth:E,name:"send_direct_message",displayName:"Send Message To A User",description:"Send message to a user",audience:"human",aiMetadata:{description:"Send a direct message to a single user by user ID, with optional Block Kit blocks, custom username/icon, and link unfurling. Each call posts a new DM, so it is not idempotent. Use this to message one person privately; use Send Message To A Channel to post in a channel.",idempotent:!1},outputSchema:Yr,props:{userId:dt(!0),text:Kt,username:Wt,profilePicture:Gt,iconEmoji:Za,mentionOriginFlow:$t,blocks:ni,unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0})},async run(e){let t=z(e.auth),{text:r,userId:n,blocks:o,unfurlLinks:a,mentionOriginFlow:s}=e.propsValue;Te(t,"token"),Te(r,"text"),Te(n,"userId");let u=[...qe(r)];return o&&Array.isArray(o)&&u.push(...o),s&&u.push(Jt(e)),Dt({token:t,text:r,username:e.propsValue.username,profilePicture:e.propsValue.profilePicture,iconEmoji:e.propsValue.iconEmoji,conversationId:n,blocks:u,unfurlLinks:a})}});var v_=C({auth:E,name:"send_channel_message",displayName:"Send Message To A Channel",description:"Send message to a channel",audience:"human",aiMetadata:{description:"Post a message to a channel, with optional Block Kit blocks, file attachment, custom username/icon, and link unfurling; can post as the bot or as the authenticated user. Provide a thread timestamp to reply within a thread (and optionally broadcast that reply to the channel). Each call posts a new message, so it is not idempotent; requires either message text or blocks. Use Send Message To A User for a private DM.",idempotent:!1},outputSchema:Yr,props:{info:Xe,channel:ze(!0),text:k.LongText({displayName:"Message",description:"The text of your message. When using Block Kit blocks, this is used as a fallback for notifications.",required:!1}),sendAsBot:k.Checkbox({displayName:"Send as a bot?",required:!0,defaultValue:!0}),threadTs:Wa,username:Wt,profilePicture:Gt,iconEmoji:Za,file:k.File({displayName:"Attachment",required:!1}),replyBroadcast:k.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:$t,unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0}),blocks:ni},async run(e){let{text:t,channel:r,sendAsBot:n,username:o,profilePicture:a,iconEmoji:s,threadTs:u,file:l,mentionOriginFlow:p,blocks:c,replyBroadcast:m,unfurlLinks:f}=e.propsValue,d=n?z(e.auth):Oe(e.auth);if(!t&&(!c||!Array.isArray(c)||c.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let h=[];return t&&h.push(...qe(t)),c&&Array.isArray(c)&&c.length>0&&h.push(...c),p&&h.push(Jt(e)),Dt({token:d,text:t||void 0,username:o,profilePicture:a,iconEmoji:s,conversationId:r,threadTs:u?we(u):void 0,file:l,blocks:h.length>0?h:void 0,replyBroadcast:m,unfurlLinks:f})}});var b_=Ae({auth:E,name:"new_reaction_added",displayName:"New Reaction",description:"Triggers when a new reaction is added to a message",aiMetadata:{description:"Fires when an emoji reaction is added to a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who added the reaction, the emoji name, and the message item it was added to."},props:{webhookInfo:Re,info:Jr,emojis:k.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:dt(!1),channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=z(e);return{disabled:!1,placeholder:"Select channels",options:await zr(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:u_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["reaction_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var x_=Ae({auth:E,name:"new_reaction_removed",displayName:"Reaction Removed",description:"Triggers when a reaction is removed from a message",aiMetadata:{description:"Fires when an emoji reaction is removed from a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who removed the reaction, the emoji name, and the message item it was removed from."},props:{webhookInfo:Re,info:Jr,emojis:k.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:dt(!1),channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions removed in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=z(e);return{disabled:!1,placeholder:"Select channels",options:await zr(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:l_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["reaction_removed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var __=B(W());var k_=C({auth:E,name:"uploadFile",displayName:"Upload file",description:"Upload file without sharing it to a channel or user",audience:"both",aiMetadata:{description:"Upload a file to Slack, optionally sharing it into a channel and setting a title and filename. Each call creates a new file, so it is not idempotent. To attach a file inline with a message instead, use the attachment option on Send Message To A Channel.",idempotent:!1},outputSchema:Vx,props:{file:k.File({displayName:"Attachment",required:!0}),title:k.ShortText({displayName:"Title",required:!1}),filename:k.ShortText({displayName:"Filename",required:!1}),channel:ze(!1)},async run(e){let t=z(e.auth),{file:r,title:n,filename:o,channel:a}=e.propsValue;return await new __.WebClient(t).files.uploadV2({file_uploads:[{file:r.data,filename:o||r.filename}],title:n,channel_id:a})}});var w_=B(W());var P_=C({name:"searchMessages",displayName:"Search messages",description:"Searches for messages matching a query",audience:"human",aiMetadata:{description:"Search across the workspace for messages matching a query string and return all matching messages, paging through every result; read-only and repeatable. Requires a user token (search is not available to bot tokens). Use this to find messages anywhere by content; use Get channel history or Get Message by Timestamp when you already know the channel.",idempotent:!0},auth:E,outputSchema:es,props:{query:k.ShortText({displayName:"Search query",required:!0})},async run({auth:e,propsValue:t}){let r=Oe(e),n=new w_.WebClient(r),o=[],a="*";do{let s=await n.search.messages({query:t.query,count:100,cursor:a});s.messages?.matches&&o.push(...s.messages.matches),a=s.messages?.pagination?.next_cursor}while(a);return o}});var S_=B(W());var T_=C({name:"updateMessage",displayName:"Update message",description:"Update an existing message",audience:"human",aiMetadata:{description:"Edit an already-posted Slack message in place, replacing its text and blocks, identified by channel and message timestamp (ts). Pick this to revise content the flow previously sent rather than posting a new one; use Delete Message to remove it instead. Idempotent: re-running with the same inputs leaves the message in the same final state.",idempotent:!0},auth:E,outputSchema:Xa,props:{info:Xe,channel:ze(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),text:k.LongText({displayName:"Message",description:"The updated text of your message",required:!0}),mentionOriginFlow:$t,blocks:ni},async run(e){let{auth:t,propsValue:r}=e,n=we(r.ts);if(!n)throw new Error("Invalid Timestamp Value.");let o=new S_.WebClient(z(t)),a=[...qe(r.text)];return r.blocks&&Array.isArray(r.blocks)&&r.blocks.length>0&&a.push(...r.blocks),r.mentionOriginFlow&&a.push(Jt(e)),await o.chat.update({channel:r.channel,ts:n,text:r.text,blocks:a})}});var A_=B(W());var fo=C({auth:E,name:"slack-find-user-by-email",displayName:"Find User by Email",description:"Finds a user by matching against their email address.",audience:"human",aiMetadata:{description:"Look up a single Slack user by their exact email address, returning their profile and user ID. Pick this to resolve an email into a Slack user ID before messaging or referencing that user. Read-only and idempotent; errors if no workspace member matches the email.",idempotent:!0},outputSchema:is,props:{email:k.ShortText({displayName:"Email",required:!0})},async run({auth:e,propsValue:t}){let r=t.email;return await new A_.WebClient(z(e)).users.lookupByEmail({email:r})}});var E_=B(W());var ho=C({auth:E,name:"slack-update-profile",displayName:"Update Profile",description:"Update basic profile field such as name or title.",audience:"human",aiMetadata:{description:"Update basic profile fields (first name, last name, email) for the authenticated user, or for another user when an admin specifies a user ID; requires a user token. Setting the same values again is idempotent. Note that changing the email triggers Slack notification emails to both addresses, and editing another user is admin-only on paid teams.",idempotent:!0},outputSchema:Qr,props:{firstName:k.ShortText({displayName:"First Name",required:!1}),lastName:k.ShortText({displayName:"Last Name",required:!1}),email:k.ShortText({displayName:"Email",description:"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.",required:!1}),userId:k.ShortText({displayName:"User",description:"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.",required:!1})},async run({auth:e,propsValue:t}){return new E_.WebClient(Oe(e)).users.profile.set({profile:{first_name:t.firstName,last_name:t.lastName,email:t.email},user:t.userId})}});var I_=B(W());var C_=C({auth:E,name:"slack-create-channel",displayName:"Create Channel",description:"Creates a new channel.",audience:"human",aiMetadata:{description:"Create a new public or private channel with the given name. Not idempotent: calling again with a name that already exists fails with a name-taken error rather than reusing the existing channel. Channel names are normalized by Slack (lowercased, spaces to hyphens).",idempotent:!1},outputSchema:mt,props:{channelName:k.ShortText({displayName:"Channel Name",required:!0}),isPrivate:k.Checkbox({displayName:"Is Private?",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new I_.WebClient(z(e)).conversations.create({name:t.channelName,is_private:t.isPrivate})}});var O_=Ae({auth:E,name:"channel_created",displayName:"Channel created",description:"Triggers when a channel is created",aiMetadata:{description:"Fires when a new public or private channel is created in the connected Slack workspace. The event payload includes the new channel id, name, creation timestamp, and the id of the user who created it."},props:{info:Re},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:Xx,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["channel_created"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>[e.payload.body.event],"run")});var R_=B(W());var go=C({auth:E,name:"slack-add-reaction-to-message",displayName:"Add Reaction to Message",description:"Add an emoji reaction to a message.",audience:"human",aiMetadata:{description:"Add an emoji reaction to a specific message identified by its channel and timestamp, optionally reacting as the authenticated user instead of the bot. Adding the same reaction twice has no extra effect (Slack returns an already-reacted error), so the end state is stable. Provide the emoji name without colons, e.g. thumbsup.",idempotent:!0},props:{info:Xe,channel:ze(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),reaction:k.ShortText({displayName:"Reaction (emoji) name",required:!0,description:"e.g.`thumbsup`"}),reactAsUser:k.Checkbox({displayName:"React as user?",description:"If enabled, the reaction will be added as the authenticated user instead of the bot.",required:!0,defaultValue:!1})},async run(e){let{channel:t,ts:r,reaction:n,reactAsUser:o}=e.propsValue,a=o?Oe(e.auth):z(e.auth),s=new R_.WebClient(a),u=we(r);if(u)return await s.reactions.add({channel:t,timestamp:u,name:n});throw new Error("Invalid Timestamp Value.")}});var z_=B(W());var $_=C({name:"getChannelHistory",auth:E,displayName:"Get channel history",description:'Retrieve all messages from a specific channel ("conversation") between specified timestamps',audience:"human",aiMetadata:{description:"Retrieve top-level messages from a known channel, paging through the full range and optionally bounded by oldest/latest timestamps; read-only and repeatable. Use this to read a channel you already have the ID for; use Search messages to find messages by content across the workspace, or Retrieve Thread Messages to read replies within a thread.",idempotent:!0},outputSchema:Qa,props:{info:Xe,channel:ze(!0),oldest:k.Number({displayName:"Oldest",description:"Only messages after this timestamp will be included in results",required:!1}),latest:k.Number({displayName:"Latest",description:"Only messages before this timestamp will be included in results. Default is the current time",required:!1}),inclusive:k.Checkbox({displayName:"Inclusive",description:"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified",defaultValue:!1,required:!0}),includeAllMetadata:k.Checkbox({displayName:"Include all metadata",description:"Return all metadata associated with each message",defaultValue:!1,required:!0})},async run({auth:e,propsValue:t}){let r=new z_.WebClient(z(e)),n=[];await r.conversations.history({channel:t.channel});for await(let o of r.paginate("conversations.history",{channel:t.channel,oldest:t.oldest,latest:t.latest,limit:200,include_all_metadata:t.includeAllMetadata,inclusive:t.inclusive})){let a=o;a.messages&&n.push(...a.messages)}return n}});var D_=B(W());var yo=C({auth:E,name:"slack-find-user-by-handle",displayName:"Find User by Handle",description:"Finds a user by matching against their Slack handle.",audience:"human",aiMetadata:{description:"Look up a workspace member by their Slack handle (display name without the leading @) and return that member; read-only and repeatable. Pick this when you only know the handle and need the user object or ID; use Find User by ID when you already have the user ID. Scans the full member list and errors if no exact display-name match is found.",idempotent:!0},outputSchema:os,props:{handle:k.ShortText({displayName:"Handle",description:"User handle (display name), without the leading @",required:!0})},async run({auth:e,propsValue:t}){let r=t.handle.replace("@",""),n=new D_.WebClient(z(e));for await(let o of n.paginate("users.list",{limit:1e3})){let a=o;if(a.members){let s=a.members.find(u=>u.profile?.display_name===r);if(s)return s}}throw new Error(`Could not find user with handle @${r}`)}});var N_=B(W());var vo=C({auth:E,name:"slack-set-user-status",displayName:"Set User Status",description:"Sets a user's custom status",audience:"human",aiMetadata:{description:"Set the authenticated user's custom status text and optional emoji, optionally with a Unix-timestamp expiration; requires a user token, not a bot token. This overwrites any existing status, so re-running with the same input is idempotent. Status text is capped at 100 characters.",idempotent:!0},outputSchema:Qr,props:{text:k.ShortText({displayName:"Text",required:!0}),emoji:k.ShortText({displayName:"Emoji",required:!1,description:"Emoji shortname (standard or custom), e.g. :tada: or :train:"}),expiration:k.Number({displayName:"Expires at",description:"Unix timestamp - if not set, the status will not expire",required:!1})},async run({auth:e,propsValue:t}){return await lg.validateZod(t,{text:x().check(ou(100))}),await new N_.WebClient(Oe(e)).users.profile.set({profile:{status_text:t.text,status_emoji:t.emoji,status_expiration:t.expiration}})}});var U_=Ae({auth:E,name:"new_mention",displayName:"New Mention in Channel",description:"Triggers when a user or user group is mentioned.",aiMetadata:{description:"Fires when a channel or group message @-mentions one of the configured users or user groups. Can be optionally filtered to specific channels, and bot messages can be ignored. When the remove-mention option is enabled, the event payload includes a clean_text field with the mention tokens stripped from the message text; otherwise the raw Slack message event is returned."},props:{webhookInfo:Re,info:Jr,users:Tx,usergroups:Ax,channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for username mentions in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=z(e);return{disabled:!1,placeholder:"Select channel",options:await zr(t)}}}),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),removeMention:k.Checkbox({displayName:"Remove Mention from Message",description:"If enabled, provides a clean_text field with the user and user group mentions removed from the message.",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:r_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.users??[],o=e.propsValue.usergroups??[];if(!["channel","group"].includes(t.event.channel_type))return[];if(r.length>0&&!r.includes(t.event.channel))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];let a=t.event.text??"",s=n.some(l=>a.includes(`<@${l}>`)),u=o.some(l=>new RegExp(`<!subteam\\^${l}(\\|[^>]*)?>`).test(a));if(!s&&!u)return[];if(e.propsValue.removeMention){let l=a;for(let p of n)l=l.replace(new RegExp(`<@${p}>`,"g"),"");for(let p of o)l=l.replace(new RegExp(`<!subteam\\^${p}(\\|[^>]*)?>`,"g"),"");return l=l.trim(),[{...t.event,clean_text:l}]}return[t.event]},"run")});var XE=B(JE()),YE=C({name:"markdownToSlackFormat",displayName:"Markdown to Slack format",description:"Convert Markdown-formatted text to Slack's pseudo - markdown syntax",audience:"both",aiMetadata:{description:"Convert standard Markdown into Slack's mrkdwn dialect so links, bold, and lists render correctly in messages; a pure local text transform that needs no auth and is fully repeatable for the same input. Use this to prepare text before sending it through a Slack message action.",idempotent:!0},requireAuth:!1,props:{markdown:k.LongText({displayName:"Markdown text",required:!0})},async run({propsValue:e}){return(0,XE.default)(e.markdown)}});var QE=Ae({auth:E,name:"new_command",displayName:"New Command in Channel",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)",aiMetadata:{description:'Fires when a channel or group message addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot ocr"). Can be optionally filtered to specific channels, and bot messages can be ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.'},props:{webhookInfo:Re,info:Jr,user:dt(!0),commands:k.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for commands in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=z(e);return{disabled:!1,placeholder:"Select channel",options:await zr(t)}}}),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:i_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.commands??[],o=e.propsValue.user;if(!["channel","group"].includes(t.event.channel_type))return[];if(!(r.length===0||r.includes(t.event.channel)))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];if(o&&t.event.text){let a=Ka(t.event.text,o,n);if(a&&n.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var eI=B(W());var Co=C({auth:E,name:"get-file",displayName:"Get File",description:"Return information about a given file ID.",audience:"human",aiMetadata:{description:"Look up metadata for a single Slack file by its file ID and download its contents. Pick this when you have a file ID (e.g. from a message trigger payload) and need the file details or bytes. Read-only and idempotent; fails if the file has no accessible download URL.",idempotent:!0},outputSchema:rs,props:{fileId:k.ShortText({displayName:"File ID",required:!0,description:"You can pass the file ID from the New Message Trigger payload."})},async run(e){let t=z(e.auth),n=await new eI.WebClient(t).files.info({file:e.propsValue.fileId}),o=n.file?.url_private_download;if(!o)throw new Error("Unable to find the download URL.");let a=await tr.sendRequest({method:"GET",url:o,authentication:{type:"BEARER_TOKEN",token:t},responseType:"arraybuffer"});return{...n.file,data:await e.files.write({fileName:n.file?.name||"file",data:Buffer.from(a.body)})}}});var tI=Ae({auth:E,name:"new-message",displayName:"New Public Message Posted Anywhere",description:"Triggers when a new message is posted to any channel.",aiMetadata:{description:"Fires when a new message is posted in any public channel or group the app can access (direct messages are excluded). Bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:Re,ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:Yx,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]},"run")});var rI=Ae({auth:E,name:"new-message-in-channel",displayName:"New Message Posted to Channel",description:"Triggers when a new message is posted to a specific #channel you choose.",aiMetadata:{description:"Fires when a new message is posted to the specific channel selected in the trigger configuration. Only channel or group messages in the chosen channel fire; bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{webhookInfo:Re,info:Xe,channel:ze(!0),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:e_,async onEnable(e){let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},async onDisable(e){},async run(e){let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?t.event.channel===e.propsValue.channel?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]:[]}});var nI=Ae({auth:E,name:"new-direct-message",displayName:"New Direct Message",description:"Triggers when a message was posted in a direct message channel.",aiMetadata:{description:"Fires when a new message is posted in a direct message (im) channel with the connected Slack app. Bot messages and the connected user's own messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:Re,ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:k.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:Qx,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await ri(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:[t.event]}});var iI=B(W());var oI=C({name:"retrieveThreadMessages",displayName:"Retrieve Thread Messages",description:"Retrieves thread messages by channel and thread timestamp.",audience:"human",aiMetadata:{description:"Retrieve all replies in a thread given the channel and the parent message timestamp; read-only and repeatable. The timestamp must be that of the parent message, not a reply. Use this to read a conversation thread; use Get channel history for top-level channel messages.",idempotent:!0},auth:E,outputSchema:Ya,props:{channel:ze(!0),threadTs:k.ShortText({displayName:"Thread ts",description:"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=new iI.WebClient(z(e)),n=we(t.threadTs);if(!n)throw new Error("Invalid Timestamp Value.");return await r.conversations.replies({channel:t.channel,ts:n})}});var aI=Ae({auth:E,name:"new-mention-in-direct-message",displayName:"New Mention in Direct Message",description:"Triggers when a username is mentioned in a direct message channel.",aiMetadata:{description:"Fires when the configured user is @-mentioned in a direct message (im channel). Only messages in DM channels that contain the mention token for the selected user fire; bot messages and the user's own messages can be optionally ignored. The event payload is the Slack message event including its text, channel, and sender."},props:{info:Re,user:dt(!0),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:k.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:t_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await ri(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:e.propsValue.user&&t.event.text?.includes(`<@${e.propsValue.user}>`)?[t.event]:[]}});var sI=Ae({auth:E,name:"new-command-in-direct-message",displayName:"New Command in Direct Message",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.",aiMetadata:{description:`Fires when a direct message (im channel) addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot remind"). Only messages in DM channels matching the listed commands fire; bot messages and the user's own messages can be optionally ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.`},props:{info:Re,user:dt(!0),commands:k.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0}),ignoreSelfMessages:k.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:o_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.commands??[],n=e.propsValue.user,o=await ri(e.auth);if(t.event.channel_type!=="im")return[];if(e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===o)return[];if(n&&t.event.text){let a=Ka(t.event.text,n,r);if(a&&r.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var uI=B(W());var lI=C({auth:E,name:"set-channel-topic",displayName:"Set Channel Topic",description:"Sets the topic on a selected channel.",audience:"human",aiMetadata:{description:"Set (overwrite) the topic of a selected channel. Idempotent: re-running with the same topic leaves the channel in the same state. The bot must be a member of the channel.",idempotent:!0},outputSchema:mt,props:{info:Xe,channel:ze(!0),topic:k.LongText({displayName:"Topic",required:!0})},async run(e){let{channel:t,topic:r}=e.propsValue;return await new uI.WebClient(z(e.auth)).conversations.setTopic({channel:t,topic:r})}});var cI=B(W());var pI=C({name:"get-message",displayName:"Get Message by Timestamp",description:"Retrieves a specific message from a channel history using the message's timestamp.",audience:"human",aiMetadata:{description:"Fetch a single message from a channel by its exact timestamp; read-only and repeatable. Use this when you already have the message ts and channel; use Get channel history to read a range of messages or Search messages to find one by content.",idempotent:!0},auth:E,outputSchema:Dx,props:{info:Xe,channel:ze(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");return await new cI.WebClient(z(e)).conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})}});var dI=B(W());var Oo=C({auth:E,name:"find-user-by-id",displayName:"Find User by ID",description:"Finds a user by their ID.",audience:"human",aiMetadata:{description:"Fetch a user profile directly by their Slack user ID; read-only and repeatable. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Handle when you only know the display-name handle.",idempotent:!0},outputSchema:ss,props:{id:k.ShortText({displayName:"ID",required:!0})},async run({auth:e,propsValue:t}){return await new dI.WebClient(z(e)).users.profile.get({user:t.id})}});var fI=B(W());var mI={id:"USLACKBOT",team_id:"T06BTHUEFFF",name:"slackbot",deleted:!1,color:"757575",real_name:"Slackbot",tz:"America/Los_Angeles",tz_label:"Pacific Daylight Time",tz_offset:-25200,profile:{title:"",phone:"",skype:"",real_name:"Slackbot",real_name_normalized:"Slackbot",display_name:"Slackbot",display_name_normalized:"Slackbot",fields:{},status_text:"",status_emoji:"",status_emoji_display_info:[],status_expiration:0,avatar_hash:"sv41d8cd98f0",always_active:!0,first_name:"slackbot",last_name:"",image_24:"https://a.slack-edge.com/80588/img/slackbot_24.png",image_32:"https://a.slack-edge.com/80588/img/slackbot_32.png",image_48:"https://a.slack-edge.com/80588/img/slackbot_48.png",image_72:"https://a.slack-edge.com/80588/img/slackbot_72.png",image_192:"https://a.slack-edge.com/80588/marketing/img/avatars/slackbot/avatar-slackbot.png",image_512:"https://a.slack-edge.com/80588/img/slackbot_512.png",status_text_canonical:"",team:"T06BTHUEFFF"},is_admin:!1,is_owner:!1,is_primary_owner:!1,is_restricted:!1,is_ultra_restricted:!1,is_bot:!1,is_app_user:!1,updated:0,is_email_confirmed:!1,who_can_share_contact_card:"EVERYONE"},hI=Ae({auth:E,name:"new-user",displayName:"New User",description:"Triggers when a new user is created / first joins your org.",aiMetadata:{description:"Fires when a new member joins the Slack workspace (a team_join event). The event payload is the new user object, including their id, name, profile, and account flags."},props:{info:Re},type:"APP_WEBHOOK",sampleData:mI,outputSchema:d_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["team_join"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new fI.WebClient(z(e.auth)).users.list({limit:10});return r.members?r.members:[mI]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="team_join"?[]:[t.event.user]},"run")});var gI=Ae({auth:E,name:"new-saved-message",displayName:"New Saved Message",description:"Triggers when you save a message.",aiMetadata:{description:"Fires when the connected Slack user saves (stars) a message. Only star_added events whose saved item is a message fire; saving other item types does not trigger. The event payload is the saved item, including its channel and message reference."},props:{info:Re},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:c_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["star_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return t.event.type==="star_added"&&t.event.item.type==="message"?[t.event.item]:[]},"run")});var vI=B(W());var yI={id:"heart",image:"https://emoji.slack-edge.com/T06BTHUEFFF/heart/84a171ae62daacc7.jpg"},bI=Ae({auth:E,name:"new-team-custom-emoji",displayName:"New Team Custom Emoji",description:"Triggers when a custom emoji has been added to a team.",aiMetadata:{description:'Fires when a new custom emoji is added to the Slack workspace (an emoji_changed event with the "add" subtype). The event payload includes the emoji id (name) and the image URL of the added emoji.'},props:{info:Re},type:"APP_WEBHOOK",sampleData:yI,outputSchema:p_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["emoji_changed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new vI.WebClient(z(e.auth)).emoji.list();return r.emoji?Object.entries(r.emoji).map(([n,o])=>({id:n,image:o})):[yI]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="emoji_changed"&&t.event.subtype!=="add"?[]:[{id:t.event.name,image:t.event.value}]},"run")});var xI=B(W());var _I=C({auth:E,name:"invite-user-to-channel",displayName:"Invite User to Channel",description:"Invites an existing User to an existing channel.",audience:"human",aiMetadata:{description:"Add an existing workspace user to an existing channel as a member. Both the channel and the user must already exist. Effectively idempotent in result since a user already in the channel stays a member, though Slack returns an error if they are already present.",idempotent:!1},outputSchema:mt,props:{info:Xe,channel:ze(!0),userId:dt(!0)},async run(e){return await new xI.WebClient(z(e.auth)).conversations.invite({channel:e.propsValue.channel,users:`${e.propsValue.userId}`})}});var kI=B(W());var Ro=C({name:"listUsers",displayName:"List users",description:"List all users of the workspace",audience:"human",aiMetadata:{description:"List every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users; read-only and repeatable. Use this to enumerate or scan all users; use Find User by ID or Find User by Handle when you already know which single user you want.",idempotent:!0},outputSchema:as,props:{includeBots:k.Checkbox({displayName:"Include bots?",required:!0,defaultValue:!1}),includeDisabled:k.Checkbox({displayName:"Include disabled users?",required:!0,defaultValue:!1})},auth:E,async run({auth:e,propsValue:t}){let r=new kI.WebClient(z(e)),n=[];for await(let o of r.paginate("users.list",{limit:1e3})){let a=o;a.members&&n.push(...a.members.filter(s=>(t.includeDisabled||!s.deleted)&&(t.includeBots||!s.is_bot)))}return n}});var wI=B(W());var PI=C({name:"delete-message",displayName:"Delete Message",description:"Deletes a specific message from a channel using the message's timestamp.",audience:"human",aiMetadata:{description:"Permanently delete one Slack message from a channel, identified by its timestamp (ts) and channel. Pick this to remove a previously posted message; to instead edit its content use Update Message. Not idempotent in effect though re-deleting an already-gone message errors, and deletion requires a user token with rights to remove that message.",idempotent:!1},auth:E,props:{info:Xe,channel:ze(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");let n=Oe(e),o=new wI.WebClient(n);if(!(await o.conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})).messages?.[0])throw new Error("No message found for the provided timestamp.");return o.chat.delete({channel:t.channel,ts:r})}});var SI=Ae({auth:E,name:"new-modal-interaction",displayName:"New Modal Interaction",description:"Triggers when a user interacts with a modal.",aiMetadata:{description:"Fires when a user interacts with a Slack modal view, either submitting it (view_submission) or closing it (view_closed) depending on the selected interaction type. The event payload is the Slack interaction payload (with the auth token stripped), including the submitted view, its state values, and the acting user."},props:{info:Sx,interactionType:k.StaticDropdown({displayName:"Interaction Type",description:"Select the type of modal interaction to trigger on.",required:!0,defaultValue:"view_submission",options:{disabled:!1,options:[{label:"View Submission",value:"view_submission"},{label:"View Closed",value:"view_closed"}]}})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:a_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:[e.propsValue.interactionType],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=JSON.parse(t.payload),n=e.propsValue.interactionType;if(r.type!==n)return[];let{token:o,...a}=r;return[a]},"run")});var qp=B(W());var TI=C({auth:E,name:"update_group_users",displayName:"Update User Group Members",description:"Add users to or overwrite the member list of a Slack user group.",audience:"both",aiMetadata:{description:'Set the membership of a Slack user group, found by its handle, to a given list of user IDs. Defaults to appending the IDs to current members; with "Append" off it replaces the entire member list (clearing it if no IDs are given), which is idempotent. Append mode is not idempotent. Requires a user token and errors if the handle is not found.',idempotent:!1},outputSchema:Jx,props:{handle:k.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0}),userIds:k.Array({displayName:"User IDs",description:"The list of Slack User IDs to update this group with. Leave empty to clear the group (if not appending).",required:!1}),appendUsers:k.Checkbox({displayName:"Append to existing members?",description:"If checked, these users will be added to the current group. If unchecked, the current group members will be completely replaced by these users.",required:!0,defaultValue:!0})},async run(e){let t=e.auth,r=new qp.WebClient(z(t)),n=new qp.WebClient(Oe(t)),o=e.propsValue.handle.replace("@","").toLowerCase(),s=(e.propsValue.userIds||[]).filter(d=>d&&d.trim()!==""),u=e.propsValue.appendUsers,p=(await r.usergroups.list({include_users:!0})).usergroups?.find(d=>d.handle&&d.handle.toLowerCase()===o);if(!p||!p.id)throw new Error(`User group with handle '@${o}' not found.`);let c=s;if(u){let d=p.users||[];c=Array.from(new Set([...d,...s]))}let m=c.join(", ");return await n.usergroups.users.update({usergroup:p.id,users:m})}});var AI=B(W());var EI=C({auth:E,name:"get_group_by_handle",displayName:"Get User Group by Handle",description:"Finds a Slack user group by its handle (e.g., @user-group) and returns its details. To mention this group in a message, map the returned ID using the syntax <!subteam^ID>. Read more: https://api.slack.com/reference/surfaces/formatting#mentioning-groups",audience:"both",aiMetadata:{description:"Look up a Slack user group (subteam) by its handle and return the group, including its ID for building an <!subteam^ID> mention; read-only and repeatable. Use this for groups, not individuals (use Find User by Handle/ID for people). Matches case-insensitively on the handle and errors if no group has that handle.",idempotent:!0},outputSchema:Gx,props:{handle:k.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0})},async run(e){let t=z(e.auth),r=new AI.WebClient(t),n=e.propsValue.handle.replace("@","").toLowerCase(),a=(await r.usergroups.list()).usergroups?.find(s=>s.handle&&s.handle.toLowerCase()===n);if(!a)throw new Error(`User group with handle '@${n}' not found.`);return a}});var II=C({auth:E,name:"slack_post_message",displayName:"Post Message",description:"Post a message to a Slack channel.",audience:"ai",aiMetadata:{description:"Post a message to a channel, optionally as a threaded reply or with Block Kit blocks. Pass a channel ID (e.g. C0123ABCD); resolve a #name first with Find Channel. Use Send Direct Message to message one person privately, or Schedule Message to send at a future time. Each call posts a new message, so it is not idempotent; provide either text or blocks.",idempotent:!1},outputSchema:Yr,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to post to (e.g. C0123ABCD). Resolve a #name to an ID first with Find Channel.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the message. When using blocks, this is used as fallback text for notifications.",required:!1}),threadTs:k.ShortText({displayName:"Thread Timestamp",description:"Timestamp (ts) of a parent message to reply within its thread, e.g. 1710304378.475129. Use the parent ts, not a reply ts.",required:!1}),replyBroadcast:k.Checkbox({displayName:"Broadcast Reply to Channel",description:"When replying in a thread, also make the reply visible to everyone in the channel.",required:!1,defaultValue:!1}),sendAsUser:k.Checkbox({displayName:"Send as User",description:"Post as the authenticated user instead of the bot (requires a user token).",required:!1,defaultValue:!1}),unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message.",required:!1,defaultValue:!0}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let{channel:t,text:r,threadTs:n,replyBroadcast:o,sendAsUser:a,unfurlLinks:s,blocks:u}=e.propsValue,l=a?Oe(e.auth):z(e.auth);if(!r&&(!u||!Array.isArray(u)||u.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let p=[];return r&&p.push(...qe(r)),u&&Array.isArray(u)&&u.length>0&&p.push(...u),Dt({token:l,text:r||void 0,conversationId:t,threadTs:n?we(n):void 0,blocks:p.length>0?p:void 0,replyBroadcast:o,unfurlLinks:s})}});var CI=C({auth:E,name:"slack_send_direct_message",displayName:"Send Direct Message",description:"Send a direct message (DM) to a single Slack user.",audience:"ai",aiMetadata:{description:"Open a DM with one user (by user ID, e.g. U0123ABCD) and post a message to them privately, optionally with Block Kit blocks. Resolve a handle or email to a user ID first with Find User by Email or Find User by Handle. Use Post Message to send to a channel instead. Each call posts a new DM, so it is not idempotent.",idempotent:!1},outputSchema:Yr,props:{userId:k.ShortText({displayName:"User ID",description:"The Slack user ID to DM (e.g. U0123ABCD). Resolve a handle/email to an ID first with Find User by Handle / Find User by Email.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the direct message.",required:!0}),unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message.",required:!1,defaultValue:!0}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let t=z(e.auth),{text:r,userId:n,blocks:o,unfurlLinks:a}=e.propsValue;Te(t,"token"),Te(r,"text"),Te(n,"userId");let s=[...qe(r)];return o&&Array.isArray(o)&&s.push(...o),Dt({token:t,text:r,conversationId:n,blocks:s,unfurlLinks:a})}});var OI=B(W());var RI=C({auth:E,name:"slack_schedule_message",displayName:"Schedule Message",description:"Schedule a message to be sent to a channel at a future time.",audience:"ai",aiMetadata:{description:"Queue a message to be posted to a channel at a future Unix timestamp (post_at, in seconds, must be in the future and within 120 days). Pass a channel ID (e.g. C0123ABCD); resolve a #name with Find Channel. Returns a scheduled_message_id you can later cancel with Delete Scheduled Message or review with List Scheduled Messages. Use Post Message to send immediately. Each call queues a new send, so it is not idempotent.",idempotent:!1},outputSchema:Mx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to post to (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),postAt:k.Number({displayName:"Post At (Unix Seconds)",description:"Unix epoch timestamp in seconds for when to send, e.g. 1893456000. Must be in the future and within 120 days.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the message. When using blocks, this is used as fallback text for notifications.",required:!1}),threadTs:k.ShortText({displayName:"Thread Timestamp",description:"Optional parent message ts to schedule this as a threaded reply, e.g. 1710304378.475129.",required:!1}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let{channel:t,postAt:r,text:n,threadTs:o,blocks:a}=e.propsValue;if(!n&&(!a||!Array.isArray(a)||a.length===0))throw new Error("Either Message or Block Kit blocks must be provided");if(r<=Math.floor(Date.now()/1e3))throw new Error("Post At must be a Unix timestamp in the future.");let s=new OI.WebClient(z(e.auth)),u=[];return n&&u.push(...qe(n)),a&&Array.isArray(a)&&a.length>0&&u.push(...a),await s.chat.scheduleMessage({channel:t,post_at:r,text:n||void 0,blocks:u,thread_ts:o||void 0})}});var zI=B(W());var $I=C({auth:E,name:"slack_list_scheduled_messages",displayName:"List Scheduled Messages",description:"List pending scheduled messages.",audience:"ai",aiMetadata:{description:"List messages that have been scheduled but not yet sent, optionally filtered by channel and a time window; read-only and repeatable. Use this to obtain a scheduled_message_id before cancelling one with Delete Scheduled Message.",idempotent:!0},outputSchema:Lx,props:{channel:k.ShortText({displayName:"Channel",description:"Optional channel ID to filter by (e.g. C0123ABCD). Leave blank for all channels.",required:!1}),oldest:k.Number({displayName:"Oldest",description:"Only scheduled messages after this Unix timestamp.",required:!1}),latest:k.Number({displayName:"Latest",description:"Only scheduled messages before this Unix timestamp.",required:!1})},async run({auth:e,propsValue:t}){let r=new zI.WebClient(z(e)),n=[];for await(let o of r.paginate("chat.scheduledMessages.list",{channel:t.channel||void 0,oldest:t.oldest,latest:t.latest,limit:100})){let a=o;a.scheduled_messages&&n.push(...a.scheduled_messages)}return n}});var DI=B(W());var NI=C({auth:E,name:"slack_delete_scheduled_message",displayName:"Delete Scheduled Message",description:"Cancel a pending scheduled message before it is sent.",audience:"ai",aiMetadata:{description:"Cancel a queued (not-yet-sent) scheduled message by its channel ID and scheduled_message_id. Obtain the scheduled_message_id from Schedule Message or List Scheduled Messages. Not idempotent: re-deleting an already-cancelled or already-sent message errors.",idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID the message was scheduled to (e.g. C0123ABCD).",required:!0}),scheduledMessageId:k.ShortText({displayName:"Scheduled Message ID",description:"The scheduled_message_id from Schedule Message or List Scheduled Messages (e.g. Q1234ABCD).",required:!0})},async run({auth:e,propsValue:t}){return await new DI.WebClient(z(e)).chat.deleteScheduledMessage({channel:t.channel,scheduled_message_id:t.scheduledMessageId})}});var UI=B(W());var MI=C({auth:E,name:"slack_update_message",displayName:"Update Message",description:"Edit an existing Slack message in place.",audience:"ai",aiMetadata:{description:"Edit a previously posted message in place, replacing its text (and optionally blocks), identified by channel ID and message timestamp (ts). Obtain the ts from the result of Post Message, Search Messages, or Get Channel History. Use Delete Message to remove it instead. Idempotent: re-running with the same inputs leaves the message in the same final state.",idempotent:!0},outputSchema:Xa,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the message (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp (ts) of the message to update, e.g. 1710304378.475129. Obtain it from Post Message / Search Messages / Get Channel History.",required:!0}),text:k.LongText({displayName:"Message",description:"The new text of the message.",required:!0}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array to replace the message blocks. See https://api.slack.com/block-kit",required:!1})},async run(e){let{auth:t,propsValue:r}=e,n=we(r.ts);if(!n)throw new Error("Invalid Timestamp Value.");let o=new UI.WebClient(z(t)),a=[...qe(r.text)];return r.blocks&&Array.isArray(r.blocks)&&r.blocks.length>0&&a.push(...r.blocks),await o.chat.update({channel:r.channel,ts:n,text:r.text,blocks:a})}});var LI=B(W());var qI=C({auth:E,name:"slack_delete_message",displayName:"Delete Message",description:"Delete a message from a Slack channel by its timestamp.",audience:"ai",aiMetadata:{description:"Permanently delete one message from a channel, identified by channel ID and the message timestamp (ts). Obtain the ts from Post Message, Search Messages, or Get Channel History. To revise the content instead of removing it, use Update Message. Requires a user token with rights to remove the message; not idempotent (re-deleting an already-gone message errors).",idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the message (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp (ts) of the message to delete, e.g. 1710304378.475129. Obtain it from Post Message / Search Messages / Get Channel History.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");let n=Oe(e),o=new LI.WebClient(n);if(!(await o.conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})).messages?.[0])throw new Error("No message found for the provided timestamp.");return o.chat.delete({channel:t.channel,ts:r})}});var FI=B(W());var BI=C({auth:E,name:"slack_send_ephemeral_message",displayName:"Send Ephemeral Message",description:"Post a message visible only to one user within a channel.",audience:"ai",aiMetadata:{description:"Post an ephemeral message that is visible only to one specified user inside a channel and is not stored in the channel history. Pass a channel ID and the target user ID; the user must be a member of that channel and the bot must be in it. Use Post Message for a normal message everyone sees, or Send Direct Message for a private DM. Each call posts a new ephemeral message, so it is not idempotent.",idempotent:!1},outputSchema:qx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID where the ephemeral message appears (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),user:k.ShortText({displayName:"User ID",description:"The user ID who will see the message (e.g. U0123ABCD). Must be a member of the channel.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the message. When using blocks, this is used as fallback text for notifications.",required:!1}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let{channel:t,user:r,text:n,blocks:o}=e.propsValue;if(!n&&(!o||!Array.isArray(o)||o.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let a=new FI.WebClient(z(e.auth)),s=[];return n&&s.push(...qe(n)),o&&Array.isArray(o)&&o.length>0&&s.push(...o),await a.chat.postEphemeral({channel:t,user:r,text:n||void 0,blocks:s})}});var jI=B(W());var VI=C({auth:E,name:"slack_get_message_permalink",displayName:"Get Message Permalink",description:"Get a shareable permalink URL for a specific message.",audience:"ai",aiMetadata:{description:"Return a stable, shareable permalink URL for one message identified by channel ID and message timestamp (ts); read-only and repeatable. Obtain the ts from Post Message, Search Messages, or Get Channel History. Use this when you need a link to reference a message elsewhere.",idempotent:!0},outputSchema:Fx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the message (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),messageTs:k.ShortText({displayName:"Message Timestamp",description:"Timestamp (ts) of the message, e.g. 1710304378.475129. Obtain it from Post Message / Search Messages / Get Channel History.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.messageTs);if(!r)throw new Error("Invalid Timestamp Value.");return await new jI.WebClient(z(e)).chat.getPermalink({channel:t.channel,message_ts:r})}});var HI=B(W());var ZI=C({auth:E,name:"slack_get_channel_history",displayName:"Get Channel History",description:"Retrieve top-level messages from a Slack channel, optionally bounded by timestamps.",audience:"ai",aiMetadata:{description:"Retrieve top-level (non-thread) messages from a channel you already have the ID for, paging through the full range and optionally bounded by oldest/latest timestamps; read-only and repeatable. Pass a channel ID (e.g. C0123ABCD); resolve a #name with Find Channel. Use Search Messages to find messages by content across the workspace, or Get Thread Replies to read replies within a thread.",idempotent:!0},outputSchema:Qa,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to read (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),oldest:k.Number({displayName:"Oldest",description:"Only messages after this Unix timestamp are included.",required:!1}),latest:k.Number({displayName:"Latest",description:"Only messages before this Unix timestamp are included. Defaults to now.",required:!1}),inclusive:k.Checkbox({displayName:"Inclusive",description:"Include messages with the oldest/latest timestamps. Ignored unless a timestamp is set.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){let r=new HI.WebClient(z(e)),n=[];for await(let o of r.paginate("conversations.history",{channel:t.channel,oldest:t.oldest,latest:t.latest,limit:200,inclusive:t.inclusive})){let a=o;a.messages&&n.push(...a.messages)}return n}});var WI=B(W());var GI=C({auth:E,name:"slack_get_thread_replies",displayName:"Get Thread Replies",description:"Retrieve all replies in a Slack thread.",audience:"ai",aiMetadata:{description:"Retrieve all replies in a thread given the channel ID and the parent message timestamp; read-only and repeatable. The timestamp must be the parent message ts, not a reply ts. Use Get Channel History for top-level channel messages, or Search Messages to find a message by content.",idempotent:!0},outputSchema:Ya,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the thread (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),threadTs:k.ShortText({displayName:"Thread Timestamp",description:"Timestamp (ts) of the parent message, e.g. 1710304378.475129. Use the parent ts, not a reply ts.",required:!0})},async run({auth:e,propsValue:t}){let r=new WI.WebClient(z(e)),n=we(t.threadTs);if(!n)throw new Error("Invalid Timestamp Value.");return await r.conversations.replies({channel:t.channel,ts:n})}});var KI=B(W());var JI=C({auth:E,name:"slack_search_messages",displayName:"Search Messages",description:"Search the workspace for messages matching a query.",audience:"ai",aiMetadata:{description:"Search across the workspace for messages matching a query string, paging through every match; read-only and repeatable. Requires a user token (search is unavailable to bot tokens). Use this to find messages anywhere by content; use Get Channel History when you already know the channel, or Search All to also include files.",idempotent:!0},outputSchema:es,props:{query:k.ShortText({displayName:"Search Query",description:'Search query, supporting Slack search operators (e.g. "in:#general from:@jane budget").',required:!0})},async run({auth:e,propsValue:t}){let r=Oe(e),n=new KI.WebClient(r),o=[],a="*";do{let s=await n.search.messages({query:t.query,count:100,cursor:a});s.messages?.matches&&o.push(...s.messages.matches),a=s.messages?.pagination?.next_cursor}while(a);return o}});var XI=B(W());var YI=C({auth:E,name:"slack_search_all",displayName:"Search All",description:"Search the workspace for both messages and files.",audience:"ai",aiMetadata:{description:"Search across the workspace for both messages and files matching a query string; read-only and repeatable. Requires a user token (search is unavailable to bot tokens). Use this when results may be either messages or files; use Search Messages when you only want messages.",idempotent:!0},outputSchema:Ux,props:{query:k.ShortText({displayName:"Search Query",description:'Search query, supporting Slack search operators (e.g. "in:#general budget").',required:!0})},async run({auth:e,propsValue:t}){let r=Oe(e),o=await new XI.WebClient(r).search.all({query:t.query,count:100});return{messages:o.messages?.matches??[],files:o.files?.matches??[],message_count:o.messages?.total??0,file_count:o.files?.total??0}}});var QI=B(W());var eC=C({auth:E,name:"slack_mark_conversation_read",displayName:"Mark Conversation Read",description:"Move the read cursor in a channel up to a given message.",audience:"ai",aiMetadata:{description:"Set the read cursor in a channel so messages up to and including a given timestamp (ts) are marked read, identified by channel ID. Obtain the ts from Get Channel History or Post Message. Setting the same cursor again leaves the same state, so it is idempotent.",idempotent:!0},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to mark read (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),ts:k.ShortText({displayName:"Timestamp",description:"Mark the channel read up to this message ts, e.g. 1710304378.475129.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");return await new QI.WebClient(z(e)).conversations.mark({channel:t.channel,ts:r})}});var tC=C({auth:E,name:"find_user_by_email",displayName:"Find User by Email",description:"Find a Slack user by their exact email address.",audience:"ai",aiMetadata:{description:"Looks up a single workspace member by their exact email address and returns that user (including their user ID). Pick this to turn an email into a Slack user ID before messaging or referencing the person; use Find User by Handle when you only know the @handle, or Get User when you already have the ID. Read-only and idempotent; errors if no member matches the email.",idempotent:!0},outputSchema:is,props:fo.props,run:fo.run});var rC=C({auth:E,name:"get_user",displayName:"Get User",description:"Get a Slack user profile by their user ID.",audience:"ai",aiMetadata:{description:"Fetches a user profile directly by their Slack user ID. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Email or Find User by Handle to resolve an email or @handle into an ID first. Read-only and idempotent.",idempotent:!0},outputSchema:ss,props:Oo.props,run:Oo.run});var nC=C({auth:E,name:"list_users",displayName:"List Users",description:"List all users in the workspace.",audience:"ai",aiMetadata:{description:"Enumerates every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users. Pick this to scan or enumerate users; use Get User, Find User by Email, or Find User by Handle when you already know the single user you want. Read-only and idempotent.",idempotent:!0},outputSchema:as,props:Ro.props,run:Ro.run});var iC=C({auth:E,name:"find_user_by_handle",displayName:"Find User by Handle",description:"Find a Slack user by their handle (display name).",audience:"ai",aiMetadata:{description:"Looks up a workspace member by their Slack handle (display name without the leading @) and returns that user. Pick this when you only know the handle and need the user object or ID; use Find User by Email when you have an email, or Get User when you already have the ID. Scans the full member list and errors if no exact display-name match is found; read-only and idempotent.",idempotent:!0},outputSchema:os,props:yo.props,run:yo.run});var oC=C({auth:E,name:"slack_add_reaction",displayName:"Add Reaction",description:"Add an emoji reaction to a message.",audience:"ai",aiMetadata:{description:"Adds an emoji reaction to a specific message identified by its channel and message timestamp (obtain the timestamp from a posted message, search, or channel history; pass a channel ID, or resolve a #name first with Find Channel). Use Remove Reaction for the inverse. Provide the emoji name without colons, e.g. thumbsup. Not idempotent: re-adding the same reaction fails with an already_reacted error rather than succeeding as a no-op (the end state is the same, but a retry surfaces an error).",idempotent:!1},props:go.props,run:go.run});var aC=B(W());var sC=C({auth:E,name:"slack_archive_channel",displayName:"Archive Channel",description:"Archives a channel.",audience:"ai",aiMetadata:{description:'Archive a channel, closing it to new activity while preserving its history. Not idempotent: archiving an already-archived channel returns an "already_archived" error rather than a silent no-op, so do not retry blindly. Use Unarchive Channel to reverse this. The bot must be a member with permission to archive.',idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){return await new aC.WebClient(z(e)).conversations.archive({channel:t.channel})}});var uC=B(W());var lC=C({auth:E,name:"slack_close_dm",displayName:"Close Direct Message",description:"Closes a direct message or group DM conversation.",audience:"ai",aiMetadata:{description:"Close a direct message (IM) or group DM (MPIM) conversation view. Idempotent: closing an already-closed conversation succeeds without changing anything. This only hides the conversation from the sidebar; it does not delete any messages. Use the conversation ID returned when the DM was opened.",idempotent:!0},props:{channel:k.ShortText({displayName:"Conversation",description:"Direct message conversation ID to close, e.g. 'D0123456789' (IM) or 'G0123456789' (group DM). This is the conversation ID returned when the DM was opened, not a user ID.",required:!0})},async run({auth:e,propsValue:t}){return await new uC.WebClient(z(e)).conversations.close({channel:t.channel})}});var cC=B(W());var pC=C({auth:E,name:"slack_create_channel",displayName:"Create Channel",description:"Creates a new public or private channel.",audience:"ai",aiMetadata:{description:"Create a new public or private Slack channel with the given name. Not idempotent: if a channel with that name already exists Slack returns a name-taken error rather than reusing it, so do not retry blindly. Slack normalizes names (lowercased, spaces become hyphens).",idempotent:!1},outputSchema:mt,props:{channelName:k.ShortText({displayName:"Channel Name",description:"Name for the new channel, without the leading '#'. Slack lowercases it and replaces spaces with hyphens, e.g. 'project-updates'. Max 80 characters.",required:!0}),isPrivate:k.Checkbox({displayName:"Is Private?",description:"Create the channel as private (invite-only) instead of public.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new cC.WebClient(z(e)).conversations.create({name:t.channelName,is_private:t.isPrivate})}});var dC=B(W());var mC=C({auth:E,name:"slack_find_channel",displayName:"Find Channel",description:"Finds a channel by name and returns its ID.",audience:"ai",aiMetadata:{description:"Resolve a channel #name to its channel ID by scanning public and private channels. This is the channel name-to-ID resolver every other channel action needs, since they take a channel ID. Use List Channels to enumerate all channels instead of matching one. Only public and private channels have names; direct messages cannot be matched here. Read-only and repeatable.",idempotent:!0},outputSchema:Ox,props:{name:k.ShortText({displayName:"Channel Name",description:"The channel name to find, with or without the leading '#', e.g. 'general'. Matched case-insensitively after Slack's normalization (lowercase, spaces to hyphens).",required:!0}),excludeArchived:k.Checkbox({displayName:"Exclude Archived",description:"Skip archived channels when searching.",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let r=new dC.WebClient(z(e)),n=t.name.replace(/^#/,"").trim().toLowerCase(),o=n.replace(/\s+/g,"-"),a;do{let s=await r.conversations.list({types:"public_channel,private_channel",exclude_archived:t.excludeArchived??!0,limit:1e3,cursor:a}),u=(s.channels??[]).find(l=>{let p=(l.name??"").toLowerCase();return p===n||p===o});if(u)return u;a=s.response_metadata?.next_cursor}while(a);throw new Error(`Could not find channel named #${t.name}`)}});var fC=B(W());var hC=C({auth:E,name:"slack_get_channel_info",displayName:"Get Channel Info",description:"Gets details about a single channel.",audience:"ai",aiMetadata:{description:"Get the full detail of one channel by its ID \u2014 topic, purpose, privacy, archived state, creator and optionally the member count. Use this when you already have a channel ID and need its metadata; use Find Channel to resolve a name to an ID first, or List Channel Members to get the member list. Read-only and repeatable.",idempotent:!0},outputSchema:mt,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),includeNumMembers:k.Checkbox({displayName:"Include Member Count",description:"Include the number of members in the channel in the result.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new fC.WebClient(z(e)).conversations.info({channel:t.channel,include_num_members:t.includeNumMembers??!1})}});var gC=C({auth:E,name:"slack_get_file",displayName:"Get File",description:"Look up a Slack file by its ID and download its contents.",audience:"ai",aiMetadata:{description:"Looks up metadata for a single Slack file by its file ID and downloads its contents. Pick this when you have a file ID (e.g. from a message trigger or List Files) and need the file details or bytes. Use List Files to discover file IDs. Read-only and idempotent; fails if the file has no accessible download URL.",idempotent:!0},outputSchema:rs,props:Co.props,run:Co.run});var yC=B(W());var vC=C({auth:E,name:"slack_get_reactions",displayName:"Get Reactions",description:"Get the reactions on a message or file.",audience:"ai",aiMetadata:{description:"Fetches all emoji reactions on a single message (by channel and message timestamp) or file (by file ID). Use this to inspect who reacted with what to one specific item; use List User Reactions to enumerate everything a user reacted to. Pass a channel ID, or resolve a #name first with Find Channel; obtain the message timestamp from a posted message, search, or channel history. Read-only and idempotent.",idempotent:!0},outputSchema:Bx,props:{channel:k.ShortText({displayName:"Channel ID",description:"Channel ID of the message (e.g. C0123ABCD). Required when targeting a message; leave empty when targeting a file.",required:!1}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp of the message, e.g. 1710304378.475129. Required (with Channel ID) when targeting a message.",required:!1}),file:k.ShortText({displayName:"File ID",description:"File ID to get reactions for (e.g. F0123ABCD). Provide this instead of Channel ID + Timestamp when targeting a file.",required:!1}),full:k.Checkbox({displayName:"Full reaction list?",description:"If enabled, returns the complete list of reactions (not truncated).",required:!1,defaultValue:!0})},async run(e){let{channel:t,ts:r,file:n,full:o}=e.propsValue,a=z(e.auth),s=new yC.WebClient(a),u;if(n)u={file:n,full:o};else if(t&&r){let l=we(r);if(!l)throw new Error("Invalid Timestamp Value.");u={channel:t,timestamp:l,full:o}}else throw new Error("Provide either a File ID, or both a Channel ID and a Message Timestamp.");return await s.reactions.get(u)}});var bC=B(W());var xC=C({auth:E,name:"slack_invite_users_to_channel",displayName:"Invite Users to Channel",description:"Invites one or more existing users to a channel.",audience:"ai",aiMetadata:{description:"Add one or more existing workspace users to an existing channel as members. Not idempotent: Slack returns an error if a user is already in the channel (the end state is the same, but a retry is not silent). Use Remove User from Channel to reverse. The bot must be a member of the channel.",idempotent:!1},outputSchema:mt,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),userIds:k.Array({displayName:"User IDs",description:"Slack user IDs to invite, e.g. 'U0123456789'. Resolve handles/emails to IDs first with Find User by Handle / Find User by Email. Up to 1000 users per call.",required:!0})},async run({auth:e,propsValue:t}){let r=new bC.WebClient(z(e)),n=t.userIds.join(",");return await r.conversations.invite({channel:t.channel,users:n})}});var _C=B(W());var kC=C({auth:E,name:"slack_join_channel",displayName:"Join Channel",description:"Joins an existing public channel.",audience:"ai",aiMetadata:{description:"Join an existing public channel so the bot becomes a member, which many channel and message actions require. Idempotent: joining a channel the bot is already in succeeds without changing anything. Only works for public channels; to join a private channel the bot must be invited.",idempotent:!0},outputSchema:Cx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){return await new _C.WebClient(z(e)).conversations.join({channel:t.channel})}});var wC=B(W());var PC=C({auth:E,name:"slack_leave_channel",displayName:"Leave Channel",description:"Leaves a channel.",audience:"ai",aiMetadata:{description:"Leave a channel so the bot is no longer a member, the counterpart to Join Channel. Idempotent: leaving a channel the bot is not in succeeds without changing anything. After leaving, the bot can no longer read or post in the channel until it rejoins.",idempotent:!0},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){let r=new wC.WebClient(z(e));try{return await r.conversations.leave({channel:t.channel})}catch(n){if(n?.data?.error==="not_in_channel")return{ok:!0,already_left:!0};throw n}}});var SC=B(W());var TC=C({auth:E,name:"slack_list_channel_members",displayName:"List Channel Members",description:"Lists the user IDs of the members of a channel.",audience:"ai",aiMetadata:{description:"List the user IDs of every member of a channel, paging through all results. Use this to enumerate who is in a channel; resolve each returned ID to a user with Get User. Use Get Channel Info for channel metadata instead. Read-only and repeatable.",idempotent:!0},outputSchema:$x,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){let r=new SC.WebClient(z(e)),n=[],o;do{let a=await r.conversations.members({channel:t.channel,limit:1e3,cursor:o});a.members&&n.push(...a.members),o=a.response_metadata?.next_cursor}while(o);return{members:n,count:n.length}}});var AC=B(W());var EC=C({auth:E,name:"slack_list_channels",displayName:"List Channels",description:"Lists channels in the workspace.",audience:"ai",aiMetadata:{description:"Enumerate the channels in the workspace, paging through all results and returning each id, name, privacy and archived state. Use this to browse or list channels; use Find Channel when you already know the name and just need its ID, or List User Conversations to list only the channels a specific user belongs to. Read-only and repeatable.",idempotent:!0},outputSchema:Rx,props:{types:k.ShortText({displayName:"Types",description:"Comma-separated conversation types to include. One or more of 'public_channel', 'private_channel', 'mpim', 'im'. Defaults to public and private channels.",required:!1,defaultValue:"public_channel,private_channel"}),excludeArchived:k.Checkbox({displayName:"Exclude Archived",description:"Omit archived channels from the results.",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let r=new AC.WebClient(z(e)),n=[],o;do{let a=await r.conversations.list({types:t.types||"public_channel,private_channel",exclude_archived:t.excludeArchived??!0,limit:1e3,cursor:o});a.channels&&n.push(...a.channels),o=a.response_metadata?.next_cursor}while(o);return{channels:n.map(a=>({id:a.id,name:a.name,is_private:a.is_private,is_archived:a.is_archived,is_member:a.is_member,num_members:a.num_members})),count:n.length}}});var IC=B(W());var CC=C({auth:E,name:"slack_list_custom_emoji",displayName:"List Custom Emoji",description:"List the custom emoji of the workspace.",audience:"ai",aiMetadata:{description:"Lists the workspace's custom emoji as a name-to-image-URL map (aliases point to their target with an 'alias:' value). Use this to discover available custom emoji names, e.g. before adding a reaction. Read-only and idempotent.",idempotent:!0},outputSchema:Wx,props:{},async run(e){let t=z(e.auth),n=await new IC.WebClient(t).emoji.list();return{emoji:n.emoji??{},count:Object.keys(n.emoji??{}).length}}});var OC=B(W());var RC=C({auth:E,name:"slack_list_files",displayName:"List Files",description:"List files in the workspace, optionally filtered by channel, user, or type.",audience:"ai",aiMetadata:{description:"Lists files in the workspace, optionally filtered by channel, uploading user, file type, or a created-time window. Use this to discover file IDs to then pass to Get File, Make File Public, or Revoke File Public URL; use Get File when you already have a specific file ID. Read-only and idempotent.",idempotent:!0},outputSchema:Hx,props:{channel:k.ShortText({displayName:"Channel ID",description:"Only return files shared in this channel (e.g. C0123ABCD). Pass a channel ID, or resolve a #name first with Find Channel. Leave empty for all channels.",required:!1}),user:k.ShortText({displayName:"User ID",description:"Only return files uploaded by this user ID (e.g. U0123ABCD). Leave empty for all users.",required:!1}),types:k.ShortText({displayName:"File Types",description:"Comma-separated file types to filter by. One or more of: 'all', 'spaces', 'snippets', 'images', 'gdocs', 'zips', 'pdfs'. Defaults to 'all'.",required:!1}),ts_from:k.ShortText({displayName:"Created After (timestamp)",description:"Only return files created at or after this Unix timestamp (e.g. 1710304378).",required:!1}),ts_to:k.ShortText({displayName:"Created Before (timestamp)",description:"Only return files created at or before this Unix timestamp (e.g. 1710304378).",required:!1}),limit:k.Number({displayName:"Limit",description:"Maximum number of files to return per page (1-1000). Defaults to 100.",required:!1})},async run(e){let t=z(e.auth),r=new OC.WebClient(t),{channel:n,user:o,types:a,ts_from:s,ts_to:u,limit:l}=e.propsValue,p=await r.files.list({channel:n||void 0,user:o||void 0,types:a||void 0,ts_from:s||void 0,ts_to:u||void 0,count:l??100});return{files:p.files??[],count:p.files?.length??0,paging:p.paging}}});var zC=B(W());var $C=C({auth:E,name:"slack_list_user_conversations",displayName:"List User Conversations",description:"Lists the channels a user belongs to.",audience:"ai",aiMetadata:{description:"List the channels and conversations a specific user (or the authenticated user if none is given) is a member of, paging through all results. Use this instead of List Channels when you only want the conversations one user belongs to. Read-only and repeatable.",idempotent:!0},outputSchema:zx,props:{user:k.ShortText({displayName:"User ID",description:"Slack user ID to list conversations for, e.g. 'U0123456789'. Leave blank to use the authenticated user. Resolve a handle/email to an ID first with Find User by Handle / Find User by Email.",required:!1}),types:k.ShortText({displayName:"Types",description:"Comma-separated conversation types to include. One or more of 'public_channel', 'private_channel', 'mpim', 'im'. Defaults to public and private channels.",required:!1,defaultValue:"public_channel,private_channel"}),excludeArchived:k.Checkbox({displayName:"Exclude Archived",description:"Omit archived channels from the results.",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let r=new zC.WebClient(z(e)),n=[],o;do{let a=await r.users.conversations({user:t.user||void 0,types:t.types||"public_channel,private_channel",exclude_archived:t.excludeArchived??!0,limit:1e3,cursor:o});a.channels&&n.push(...a.channels),o=a.response_metadata?.next_cursor}while(o);return{channels:n.map(a=>({id:a.id,name:a.name,is_private:a.is_private,is_archived:a.is_archived,is_im:a.is_im})),count:n.length}}});var DC=B(W());var NC=C({auth:E,name:"list_user_groups",displayName:"List User Groups",description:"List all Slack user groups (subteams) in the workspace.",audience:"ai",aiMetadata:{description:"Lists all user groups (subteams) in the workspace, with optional toggles to include disabled groups and each group's member user IDs. Use this to enumerate groups or to discover a group ID; use Find User Group by Handle when you already know the handle of a single group. Read-only and idempotent.",idempotent:!0},outputSchema:Kx,props:{includeDisabled:k.Checkbox({displayName:"Include disabled groups?",description:"Include disabled user groups in the results.",required:!1,defaultValue:!1}),includeUsers:k.Checkbox({displayName:"Include members?",description:"Include the list of member user IDs for each user group.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new DC.WebClient(z(e)).usergroups.list({include_disabled:t.includeDisabled,include_users:t.includeUsers})}});var UC=B(W());var MC=C({auth:E,name:"slack_list_user_reactions",displayName:"List User Reactions",description:"List the items a user has reacted to.",audience:"ai",aiMetadata:{description:"Lists all items (messages and files) a user has reacted to, paging through every result; defaults to the authenticated user when no user is given. Use this to enumerate everything a user reacted to; use Get Reactions to inspect the reactions on one specific message or file. Read-only and idempotent.",idempotent:!0},outputSchema:jx,props:{user:k.ShortText({displayName:"User ID",description:"Show reactions made by this user ID (e.g. U0123ABCD). Leave empty to use the authenticated user.",required:!1}),limit:k.Number({displayName:"Limit",description:"Maximum number of items to return per page (1-1000). Defaults to 100.",required:!1})},async run(e){let t=z(e.auth),r=new UC.WebClient(t),{user:n,limit:o}=e.propsValue,a=[],s;do{let u=await r.reactions.list({user:n||void 0,limit:o??100,cursor:s});u.items&&a.push(...u.items),s=u.response_metadata?.next_cursor||void 0}while(s);return{items:a,count:a.length}}});var LC=B(W());var qC=C({auth:E,name:"slack_remove_reaction",displayName:"Remove Reaction",description:"Remove an emoji reaction from a message or file.",audience:"ai",aiMetadata:{description:"Removes an emoji reaction from a message (by channel and message timestamp) or from a file (by file ID). This is the inverse of Add Reaction. Pass a channel ID, or resolve a #name first with Find Channel; obtain the message timestamp from a posted message, search, or channel history. Provide the emoji name without colons, e.g. thumbsup. Not idempotent: removing an absent reaction fails with a no_reaction error rather than succeeding as a no-op (the end state is the same, but a retry surfaces an error).",idempotent:!1},props:{reaction:k.ShortText({displayName:"Reaction (emoji) name",description:"The emoji name without colons, e.g. thumbsup.",required:!0}),channel:k.ShortText({displayName:"Channel ID",description:"Channel ID of the message to remove the reaction from (e.g. C0123ABCD). Required when targeting a message; leave empty when targeting a file.",required:!1}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp of the message to remove the reaction from, e.g. 1710304378.475129. Required (with Channel ID) when targeting a message.",required:!1}),file:k.ShortText({displayName:"File ID",description:"File ID to remove the reaction from (e.g. F0123ABCD). Provide this instead of Channel ID + Timestamp when targeting a file.",required:!1}),reactAsUser:k.Checkbox({displayName:"React as user?",description:"If enabled, the reaction is removed as the authenticated user instead of the bot.",required:!1,defaultValue:!1})},async run(e){let{reaction:t,channel:r,ts:n,file:o,reactAsUser:a}=e.propsValue,s=a?Oe(e.auth):z(e.auth),u=new LC.WebClient(s),l;if(o)l={name:t,file:o};else if(r&&n){let p=we(n);if(!p)throw new Error("Invalid Timestamp Value.");l={name:t,channel:r,timestamp:p}}else throw new Error("Provide either a File ID, or both a Channel ID and a Message Timestamp.");return await u.reactions.remove(l)}});var FC=B(W());var BC=C({auth:E,name:"slack_remove_user_from_channel",displayName:"Remove User from Channel",description:"Removes a user from a channel.",audience:"ai",aiMetadata:{description:'Remove (kick) a user from a channel, the counterpart to Invite Users to Channel. Not idempotent: removing a user who is not in the channel returns a "not_in_channel" error rather than a silent no-op, so do not retry blindly. The bot must have permission to remove members.',idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),user:k.ShortText({displayName:"User ID",description:"Slack user ID to remove, e.g. 'U0123456789'. Resolve a handle/email to an ID first with Find User by Handle / Find User by Email.",required:!0})},async run({auth:e,propsValue:t}){return await new FC.WebClient(z(e)).conversations.kick({channel:t.channel,user:t.user})}});var jC=B(W());var VC=C({auth:E,name:"slack_rename_channel",displayName:"Rename Channel",description:"Renames a channel.",audience:"ai",aiMetadata:{description:"Rename a channel to a new name. Idempotent: re-running with the same name leaves the channel in the same final state. Slack normalizes the name (lowercased, spaces become hyphens). The bot must have permission to manage the channel.",idempotent:!0},outputSchema:mt,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),name:k.ShortText({displayName:"New Name",description:"New name for the channel, without the leading '#'. Slack lowercases it and replaces spaces with hyphens, e.g. 'project-updates'. Max 80 characters.",required:!0})},async run({auth:e,propsValue:t}){return await new jC.WebClient(z(e)).conversations.rename({channel:t.channel,name:t.name})}});var HC=B(W());var ZC=C({auth:E,name:"slack_set_channel_purpose",displayName:"Set Channel Purpose",description:"Sets the purpose on a channel.",audience:"ai",aiMetadata:{description:'Set (overwrite) the purpose of a channel, the longer "what this channel is for" description. Idempotent: re-running with the same purpose leaves the channel in the same state. Use Set Channel Topic for the short topic shown in the channel header instead. The bot must be a member of the channel.',idempotent:!0},outputSchema:mt,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),purpose:k.LongText({displayName:"Purpose",description:"The new purpose text. Pass an empty string to clear the purpose.",required:!0})},async run({auth:e,propsValue:t}){return await new HC.WebClient(z(e)).conversations.setPurpose({channel:t.channel,purpose:t.purpose})}});var WC=B(W());var GC=C({auth:E,name:"slack_set_channel_topic",displayName:"Set Channel Topic",description:"Sets the topic on a channel.",audience:"ai",aiMetadata:{description:'Set (overwrite) the topic shown in a channel header. Idempotent: re-running with the same topic leaves the channel in the same state. Use Set Channel Purpose for the longer "what this channel is for" description instead. The bot must be a member of the channel.',idempotent:!0},outputSchema:mt,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),topic:k.LongText({displayName:"Topic",description:"The new topic text. Pass an empty string to clear the topic.",required:!0})},async run({auth:e,propsValue:t}){return await new WC.WebClient(z(e)).conversations.setTopic({channel:t.channel,topic:t.topic})}});var KC=C({auth:E,name:"set_user_status",displayName:"Set User Status",description:"Set the authenticated user's custom status text and emoji.",audience:"ai",aiMetadata:{description:"Sets the authenticated user's custom status text and optional emoji, with an optional Unix-timestamp expiration. Pick this to change only the status; use Update Profile to change name or email fields. Requires a user token (not a bot token); this overwrites any existing status so re-running with the same input is idempotent. Status text is capped at 100 characters.",idempotent:!0},outputSchema:Qr,props:vo.props,run:vo.run});var JC=C({auth:E,name:"update_profile",displayName:"Update Profile",description:"Update basic profile fields (name, title, email) for a user.",audience:"ai",aiMetadata:{description:"Updates basic profile fields (first name, last name, email) for the authenticated user, or for another user when an admin supplies a user ID. Use Set User Status instead to change only the custom status text/emoji. Requires a user token; setting the same values again is idempotent. Changing the email sends Slack notification emails to both addresses, and editing another user is admin-only on paid teams.",idempotent:!0},outputSchema:Qr,props:ho.props,run:ho.run});var XC=B(W());var YC=C({auth:E,name:"slack_unarchive_channel",displayName:"Unarchive Channel",description:"Reopens an archived channel.",audience:"ai",aiMetadata:{description:`Reopen an archived channel, the counterpart to Archive Channel. Not idempotent: unarchiving a channel that is not archived returns a "not_archived" error rather than a silent no-op, so do not retry blindly. Uses the authorizing user's token (Slack only allows a member/admin to unarchive, not a bot token).`,idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){return await new XC.WebClient(Oe(e)).conversations.unarchive({channel:t.channel})}});var CH=Jm({displayName:"Slack",description:"Channel-based messaging platform",minimumSupportedRelease:"0.86.4",logoUrl:"https://cdn.activepieces.com/pieces/slack.png",categories:["COMMUNICATION"],auth:E,events:{parseAndReply:i(({payload:e,server:t})=>{if(e.headers["content-type"]==="application/x-www-form-urlencoded"){if(e.body&&typeof e.body=="object"&&"payload"in e.body){let r=JSON.parse(e.body.payload);if(r.type==="block_actions"){let n=r.actions?.[0];n&&n.type==="button"&&n.value?.startsWith(t.publicUrl)&&tr.sendRequest({url:n.value,method:"POST",body:r})}else if(r.type==="view_submission"||r.type==="view_closed"){let n=r;return{event:n.type,identifierValue:n.team.id}}}return{reply:{headers:{},body:{}}}}else{let r=e.body;return r.challenge?{reply:{body:r.challenge,headers:{}}}:{event:r?.event?.type,identifierValue:r.team_id}}},"parseAndReply"),verify:i(({webhookSecret:e,payload:t})=>{let r=t.headers["x-slack-request-timestamp"],n=t.headers["x-slack-signature"],o=`v0:${r}:${t.rawBody}`,a=QC.default.createHmac("sha256",e);a.update(o);let s=`v0=${a.digest("hex")}`;return n===s},"verify")},authors:["rita-gorokhod","AdamSelene","Abdallah-Alwarawreh","kishanprmr","MoShizzle","AbdulTheActivePiecer","khaledmashaly","abuaboud"],actions:[go,y_,v_,h_,g_,m_,f_,k_,Co,P_,fo,yo,Oo,Ro,T_,PI,C_,ho,$_,vo,YE,oI,lI,pI,_I,EI,TI,II,CI,RI,$I,NI,MI,qI,BI,VI,ZI,GI,JI,YI,eC,tC,rC,nC,iC,oC,sC,lC,pC,mC,hC,gC,vC,xC,kC,PC,TC,EC,CC,RC,$C,NC,MC,qC,BC,VC,ZC,GC,KC,JC,YC,ug({baseUrl:i(()=>"https://slack.com/api","baseUrl"),auth:E,authMapping:i(async(e,t)=>{let r=e;if(t.useUserToken){let n=_c(r);if(n)return{Authorization:`Bearer ${n}`}}return{Authorization:`Bearer ${z(r)}`}},"authMapping"),extraProps:{useUserToken:k.Checkbox({displayName:"Use user token",description:"Use user token instead of bot token",required:!0,defaultValue:!1})}})],triggers:[tI,rI,nI,U_,aI,b_,x_,O_,QE,sI,hI,gI,bI,SI]});0&&(module.exports={slack,slackAuth,slackOAuth2Auth});
74
+ ${s}`,blocks:[...Be(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var T_=C({auth:E,name:"send_direct_message",classification:"WRITE",displayName:"Send Message To A User",description:"Send message to a user",audience:"human",aiMetadata:{description:"Send a direct message to a single user by user ID, with optional Block Kit blocks, custom username/icon, and link unfurling. Each call posts a new DM, so it is not idempotent. Use this to message one person privately; use Send Message To A Channel to post in a channel.",idempotent:!1},outputSchema:Qr,props:{userId:mt(!0),text:Jt,username:Gt,profilePicture:Kt,iconEmoji:Za,mentionOriginFlow:Dt,blocks:ii,unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0})},async run(e){let t=D(e.auth),{text:r,userId:n,blocks:o,unfurlLinks:a,mentionOriginFlow:s}=e.propsValue;Te(t,"token"),Te(r,"text"),Te(n,"userId");let u=[...Be(r)];return o&&Array.isArray(o)&&u.push(...o),s&&u.push(Xt(e)),$t({token:t,text:r,username:e.propsValue.username,profilePicture:e.propsValue.profilePicture,iconEmoji:e.propsValue.iconEmoji,conversationId:n,blocks:u,unfurlLinks:a})}});var A_=C({auth:E,name:"send_channel_message",classification:"WRITE",displayName:"Send Message To A Channel",description:"Send message to a channel",audience:"human",aiMetadata:{description:"Post a message to a channel, with optional Block Kit blocks, file attachment, custom username/icon, and link unfurling; can post as the bot or as the authenticated user. Provide a thread timestamp to reply within a thread (and optionally broadcast that reply to the channel). Each call posts a new message, so it is not idempotent; requires either message text or blocks. Use Send Message To A User for a private DM.",idempotent:!1},outputSchema:Qr,props:{info:Xe,channel:De(!0),text:k.LongText({displayName:"Message",description:"The text of your message. When using Block Kit blocks, this is used as a fallback for notifications.",required:!1}),sendAsBot:k.Checkbox({displayName:"Send as a bot?",required:!0,defaultValue:!0}),threadTs:Ga,username:Gt,profilePicture:Kt,iconEmoji:Za,file:k.File({displayName:"Attachment",required:!1}),replyBroadcast:k.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:Dt,unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0}),blocks:ii},async run(e){let{text:t,channel:r,sendAsBot:n,username:o,profilePicture:a,iconEmoji:s,threadTs:u,file:l,mentionOriginFlow:p,blocks:c,replyBroadcast:m,unfurlLinks:f}=e.propsValue,d=n?D(e.auth):Re(e.auth);if(!t&&(!c||!Array.isArray(c)||c.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let h=[];return t&&h.push(...Be(t)),c&&Array.isArray(c)&&c.length>0&&h.push(...c),p&&h.push(Xt(e)),$t({token:d,text:t||void 0,username:o,profilePicture:a,iconEmoji:s,conversationId:r,threadTs:u?we(u):void 0,file:l,blocks:h.length>0?h:void 0,replyBroadcast:m,unfurlLinks:f})}});var E_=Ae({auth:E,name:"new_reaction_added",classification:"READ",displayName:"New Reaction",description:"Triggers when a new reaction is added to a message",aiMetadata:{description:"Fires when an emoji reaction is added to a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who added the reaction, the emoji name, and the message item it was added to."},props:{webhookInfo:ze,info:Xr,emojis:k.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:mt(!1),channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=D(e);return{disabled:!1,placeholder:"Select channels",options:await zr(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:y_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["reaction_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var I_=Ae({auth:E,name:"new_reaction_removed",classification:"READ",displayName:"Reaction Removed",description:"Triggers when a reaction is removed from a message",aiMetadata:{description:"Fires when an emoji reaction is removed from a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who removed the reaction, the emoji name, and the message item it was removed from."},props:{webhookInfo:ze,info:Xr,emojis:k.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:mt(!1),channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions removed in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=D(e);return{disabled:!1,placeholder:"Select channels",options:await zr(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:v_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["reaction_removed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var C_=B(H());var O_=C({auth:E,name:"uploadFile",classification:"WRITE",displayName:"Upload file",description:"Upload file without sharing it to a channel or user",audience:"both",aiMetadata:{description:"Upload a file to Slack, optionally sharing it into a channel and setting a title and filename. Each call creates a new file, so it is not idempotent. To attach a file inline with a message instead, use the attachment option on Send Message To A Channel.",idempotent:!1},outputSchema:Qx,props:{file:k.File({displayName:"Attachment",required:!0}),title:k.ShortText({displayName:"Title",required:!1}),filename:k.ShortText({displayName:"Filename",required:!1}),channel:De(!1)},async run(e){let t=D(e.auth),{file:r,title:n,filename:o,channel:a}=e.propsValue;return await new C_.WebClient(t).files.uploadV2({file_uploads:[{file:r.data,filename:o||r.filename}],title:n,channel_id:a})}});var R_=B(H());var z_=C({name:"searchMessages",classification:"SEARCH",displayName:"Search messages",description:"Searches for messages matching a query",audience:"human",aiMetadata:{description:"Search across the workspace for messages matching a query string and return all matching messages, paging through every result; read-only and repeatable. Requires a user token (search is not available to bot tokens). Use this to find messages anywhere by content; use Get channel history or Get Message by Timestamp when you already know the channel.",idempotent:!0},auth:E,outputSchema:ts,props:{query:k.ShortText({displayName:"Search query",required:!0})},async run({auth:e,propsValue:t}){let r=Re(e),n=new R_.WebClient(r),o=[],a="*";do{let s=await n.search.messages({query:t.query,count:100,cursor:a});s.messages?.matches&&o.push(...s.messages.matches),a=s.messages?.pagination?.next_cursor}while(a);return o}});var D_=B(H());var $_=C({name:"updateMessage",classification:"WRITE",displayName:"Update message",description:"Update an existing message",audience:"human",aiMetadata:{description:"Edit an already-posted Slack message in place, replacing its text and blocks, identified by channel and message timestamp (ts). Pick this to revise content the flow previously sent rather than posting a new one; use Delete Message to remove it instead. Idempotent: re-running with the same inputs leaves the message in the same final state.",idempotent:!0},auth:E,outputSchema:Ya,props:{info:Xe,channel:De(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),text:k.LongText({displayName:"Message",description:"The updated text of your message",required:!0}),mentionOriginFlow:Dt,blocks:ii},async run(e){let{auth:t,propsValue:r}=e,n=we(r.ts);if(!n)throw new Error("Invalid Timestamp Value.");let o=new D_.WebClient(D(t)),a=[...Be(r.text)];return r.blocks&&Array.isArray(r.blocks)&&r.blocks.length>0&&a.push(...r.blocks),r.mentionOriginFlow&&a.push(Xt(e)),await o.chat.update({channel:r.channel,ts:n,text:r.text,blocks:a})}});var N_=B(H());var ho=C({auth:E,name:"slack-find-user-by-email",classification:"READ",displayName:"Find User by Email",description:"Finds a user by matching against their email address.",audience:"human",aiMetadata:{description:"Look up a single Slack user by their exact email address, returning their profile and user ID. Pick this to resolve an email into a Slack user ID before messaging or referencing that user. Read-only and idempotent; errors if no workspace member matches the email.",idempotent:!0},outputSchema:os,props:{email:k.ShortText({displayName:"Email",required:!0})},async run({auth:e,propsValue:t}){let r=t.email;return await new N_.WebClient(D(e)).users.lookupByEmail({email:r})}});var U_=B(H());var go=C({auth:E,name:"slack-update-profile",classification:"WRITE",displayName:"Update Profile",description:"Update basic profile field such as name or title.",audience:"human",aiMetadata:{description:"Update basic profile fields (first name, last name, email) for the authenticated user, or for another user when an admin specifies a user ID; requires a user token. Setting the same values again is idempotent. Note that changing the email triggers Slack notification emails to both addresses, and editing another user is admin-only on paid teams.",idempotent:!0},outputSchema:en,props:{firstName:k.ShortText({displayName:"First Name",required:!1}),lastName:k.ShortText({displayName:"Last Name",required:!1}),email:k.ShortText({displayName:"Email",description:"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.",required:!1}),userId:k.ShortText({displayName:"User",description:"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.",required:!1})},async run({auth:e,propsValue:t}){return new U_.WebClient(Re(e)).users.profile.set({profile:{first_name:t.firstName,last_name:t.lastName,email:t.email},user:t.userId})}});var M_=B(H());var L_=C({auth:E,name:"slack-create-channel",classification:"WRITE",displayName:"Create Channel",description:"Creates a new channel.",audience:"human",aiMetadata:{description:"Create a new public or private channel with the given name. Not idempotent: calling again with a name that already exists fails with a name-taken error rather than reusing the existing channel. Channel names are normalized by Slack (lowercased, spaces to hyphens).",idempotent:!1},outputSchema:ft,props:{channelName:k.ShortText({displayName:"Channel Name",required:!0}),isPrivate:k.Checkbox({displayName:"Is Private?",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new M_.WebClient(D(e)).conversations.create({name:t.channelName,is_private:t.isPrivate})}});var q_=Ae({auth:E,name:"channel_created",classification:"READ",displayName:"Channel created",description:"Triggers when a channel is created",aiMetadata:{description:"Fires when a new public or private channel is created in the connected Slack workspace. The event payload includes the new channel id, name, creation timestamp, and the id of the user who created it."},props:{info:ze},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:a_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["channel_created"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>[e.payload.body.event],"run")});var F_=B(H());var yo=C({auth:E,name:"slack-add-reaction-to-message",classification:"WRITE",displayName:"Add Reaction to Message",description:"Add an emoji reaction to a message.",audience:"human",aiMetadata:{description:"Add an emoji reaction to a specific message identified by its channel and timestamp, optionally reacting as the authenticated user instead of the bot. Adding the same reaction twice has no extra effect (Slack returns an already-reacted error), so the end state is stable. Provide the emoji name without colons, e.g. thumbsup.",idempotent:!0},props:{info:Xe,channel:De(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),reaction:k.ShortText({displayName:"Reaction (emoji) name",required:!0,description:"e.g.`thumbsup`"}),reactAsUser:k.Checkbox({displayName:"React as user?",description:"If enabled, the reaction will be added as the authenticated user instead of the bot.",required:!0,defaultValue:!1})},async run(e){let{channel:t,ts:r,reaction:n,reactAsUser:o}=e.propsValue,a=o?Re(e.auth):D(e.auth),s=new F_.WebClient(a),u=we(r);if(u)return await s.reactions.add({channel:t,timestamp:u,name:n});throw new Error("Invalid Timestamp Value.")}});var B_=B(H());var j_=C({name:"getChannelHistory",classification:"SEARCH",auth:E,displayName:"Get channel history",description:'Retrieve all messages from a specific channel ("conversation") between specified timestamps',audience:"human",aiMetadata:{description:"Retrieve top-level messages from a known channel, paging through the full range and optionally bounded by oldest/latest timestamps; read-only and repeatable. Use this to read a channel you already have the ID for; use Search messages to find messages by content across the workspace, or Retrieve Thread Messages to read replies within a thread.",idempotent:!0},outputSchema:es,props:{info:Xe,channel:De(!0),oldest:k.Number({displayName:"Oldest",description:"Only messages after this timestamp will be included in results",required:!1}),latest:k.Number({displayName:"Latest",description:"Only messages before this timestamp will be included in results. Default is the current time",required:!1}),inclusive:k.Checkbox({displayName:"Inclusive",description:"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified",defaultValue:!1,required:!0}),includeAllMetadata:k.Checkbox({displayName:"Include all metadata",description:"Return all metadata associated with each message",defaultValue:!1,required:!0})},async run({auth:e,propsValue:t}){let r=new B_.WebClient(D(e)),n=[];await r.conversations.history({channel:t.channel});for await(let o of r.paginate("conversations.history",{channel:t.channel,oldest:t.oldest,latest:t.latest,limit:200,include_all_metadata:t.includeAllMetadata,inclusive:t.inclusive})){let a=o;a.messages&&n.push(...a.messages)}return n}});var V_=B(H());var vo=C({auth:E,name:"slack-find-user-by-handle",classification:"SEARCH",displayName:"Find User by Handle",description:"Finds a user by matching against their Slack handle.",audience:"human",aiMetadata:{description:"Look up a workspace member by their Slack handle (display name without the leading @) and return that member; read-only and repeatable. Pick this when you only know the handle and need the user object or ID; use Find User by ID when you already have the user ID. Scans the full member list and errors if no exact display-name match is found.",idempotent:!0},outputSchema:as,props:{handle:k.ShortText({displayName:"Handle",description:"User handle (display name), without the leading @",required:!0})},async run({auth:e,propsValue:t}){let r=t.handle.replace("@",""),n=new V_.WebClient(D(e));for await(let o of n.paginate("users.list",{limit:1e3})){let a=o;if(a.members){let s=a.members.find(u=>u.profile?.display_name===r);if(s)return s}}throw new Error(`Could not find user with handle @${r}`)}});var H_=B(H());var bo=C({auth:E,name:"slack-set-user-status",classification:"WRITE",displayName:"Set User Status",description:"Sets a user's custom status",audience:"human",aiMetadata:{description:"Set the authenticated user's custom status text and optional emoji, optionally with a Unix-timestamp expiration; requires a user token, not a bot token. This overwrites any existing status, so re-running with the same input is idempotent. Status text is capped at 100 characters.",idempotent:!0},outputSchema:en,props:{text:k.ShortText({displayName:"Text",required:!0}),emoji:k.ShortText({displayName:"Emoji",required:!1,description:"Emoji shortname (standard or custom), e.g. :tada: or :train:"}),expiration:k.Number({displayName:"Expires at",description:"Unix timestamp - if not set, the status will not expire",required:!1})},async run({auth:e,propsValue:t}){return await yg.validateZod(t,{text:x().check(au(100))}),await new H_.WebClient(Re(e)).users.profile.set({profile:{status_text:t.text,status_emoji:t.emoji,status_expiration:t.expiration}})}});var W_=Ae({auth:E,name:"new_mention",classification:"READ",displayName:"New Mention in Channel",description:"Triggers when a user or user group is mentioned.",aiMetadata:{description:"Fires when a channel or group message @-mentions one of the configured users or user groups. Can be optionally filtered to specific channels, and bot messages can be ignored. When the remove-mention option is enabled, the event payload includes a clean_text field with the mention tokens stripped from the message text; otherwise the raw Slack message event is returned."},props:{webhookInfo:ze,info:Xr,users:$x,usergroups:Nx,channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for username mentions in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=D(e);return{disabled:!1,placeholder:"Select channel",options:await zr(t)}}}),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),removeMention:k.Checkbox({displayName:"Remove Mention from Message",description:"If enabled, provides a clean_text field with the user and user group mentions removed from the message.",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:p_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.users??[],o=e.propsValue.usergroups??[];if(!["channel","group"].includes(t.event.channel_type))return[];if(r.length>0&&!r.includes(t.event.channel))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];let a=t.event.text??"",s=n.some(l=>a.includes(`<@${l}>`)),u=o.some(l=>new RegExp(`<!subteam\\^${l}(\\|[^>]*)?>`).test(a));if(!s&&!u)return[];if(e.propsValue.removeMention){let l=a;for(let p of n)l=l.replace(new RegExp(`<@${p}>`,"g"),"");for(let p of o)l=l.replace(new RegExp(`<!subteam\\^${p}(\\|[^>]*)?>`,"g"),"");return l=l.trim(),[{...t.event,clean_text:l}]}return[t.event]},"run")});var aI=B(oI()),sI=C({name:"markdownToSlackFormat",classification:"READ",displayName:"Markdown to Slack format",description:"Convert Markdown-formatted text to Slack's pseudo - markdown syntax",audience:"both",aiMetadata:{description:"Convert standard Markdown into Slack's mrkdwn dialect so links, bold, and lists render correctly in messages; a pure local text transform that needs no auth and is fully repeatable for the same input. Use this to prepare text before sending it through a Slack message action.",idempotent:!0},requireAuth:!1,props:{markdown:k.LongText({displayName:"Markdown text",required:!0})},async run({propsValue:e}){return(0,aI.default)(e.markdown)}});var uI=Ae({auth:E,name:"new_command",classification:"READ",displayName:"New Command in Channel",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)",aiMetadata:{description:'Fires when a channel or group message addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot ocr"). Can be optionally filtered to specific channels, and bot messages can be ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.'},props:{webhookInfo:ze,info:Xr,user:mt(!0),commands:k.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),channels:k.MultiSelectDropdown({auth:E,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for commands in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=D(e);return{disabled:!1,placeholder:"Select channel",options:await zr(t)}}}),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:m_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.commands??[],o=e.propsValue.user;if(!["channel","group"].includes(t.event.channel_type))return[];if(!(r.length===0||r.includes(t.event.channel)))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];if(o&&t.event.text){let a=Ja(t.event.text,o,n);if(a&&n.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var lI=B(H());var Oo=C({auth:E,name:"get-file",classification:"READ",displayName:"Get File",description:"Return information about a given file ID.",audience:"human",aiMetadata:{description:"Look up metadata for a single Slack file by its file ID and download its contents. Pick this when you have a file ID (e.g. from a message trigger payload) and need the file details or bytes. Read-only and idempotent; fails if the file has no accessible download URL.",idempotent:!0},outputSchema:ns,props:{fileId:k.ShortText({displayName:"File ID",required:!0,description:"You can pass the file ID from the New Message Trigger payload."})},async run(e){let t=D(e.auth),n=await new lI.WebClient(t).files.info({file:e.propsValue.fileId}),o=n.file?.url_private_download;if(!o)throw new Error("Unable to find the download URL.");let a=await Bt.sendRequest({method:"GET",url:o,authentication:{type:"BEARER_TOKEN",token:t},responseType:"arraybuffer"});return{...n.file,data:await e.files.write({fileName:n.file?.name||"file",data:Buffer.from(a.body)})}}});var cI=Ae({auth:E,name:"new-message",classification:"READ",displayName:"New Public Message Posted Anywhere",description:"Triggers when a new message is posted to any channel.",aiMetadata:{description:"Fires when a new message is posted in any public channel or group the app can access (direct messages are excluded). Bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:ze,ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:s_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]},"run")});var pI=Ae({auth:E,name:"new-message-in-channel",classification:"READ",displayName:"New Message Posted to Channel",description:"Triggers when a new message is posted to a specific #channel you choose.",aiMetadata:{description:"Fires when a new message is posted to the specific channel selected in the trigger configuration. Only channel or group messages in the chosen channel fire; bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{webhookInfo:ze,info:Xe,channel:De(!0),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:l_,async onEnable(e){let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},async onDisable(e){},async run(e){let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?t.event.channel===e.propsValue.channel?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]:[]}});var dI=Ae({auth:E,name:"new-direct-message",classification:"READ",displayName:"New Direct Message",description:"Triggers when a message was posted in a direct message channel.",aiMetadata:{description:"Fires when a new message is posted in a direct message (im) channel with the connected Slack app. Bot messages and the connected user's own messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:ze,ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:k.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:u_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await ni(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:[t.event]}});var mI=B(H());var fI=C({name:"retrieveThreadMessages",classification:"READ",displayName:"Retrieve Thread Messages",description:"Retrieves thread messages by channel and thread timestamp.",audience:"human",aiMetadata:{description:"Retrieve all replies in a thread given the channel and the parent message timestamp; read-only and repeatable. The timestamp must be that of the parent message, not a reply. Use this to read a conversation thread; use Get channel history for top-level channel messages.",idempotent:!0},auth:E,outputSchema:Qa,props:{channel:De(!0),threadTs:k.ShortText({displayName:"Thread ts",description:"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=new mI.WebClient(D(e)),n=we(t.threadTs);if(!n)throw new Error("Invalid Timestamp Value.");return await r.conversations.replies({channel:t.channel,ts:n})}});var hI=Ae({auth:E,name:"new-mention-in-direct-message",classification:"READ",displayName:"New Mention in Direct Message",description:"Triggers when a username is mentioned in a direct message channel.",aiMetadata:{description:"Fires when the configured user is @-mentioned in a direct message (im channel). Only messages in DM channels that contain the mention token for the selected user fire; bot messages and the user's own messages can be optionally ignored. The event payload is the Slack message event including its text, channel, and sender."},props:{info:ze,user:mt(!0),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:k.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:c_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await ni(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:e.propsValue.user&&t.event.text?.includes(`<@${e.propsValue.user}>`)?[t.event]:[]}});var gI=Ae({auth:E,name:"new-command-in-direct-message",classification:"READ",displayName:"New Command in Direct Message",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.",aiMetadata:{description:`Fires when a direct message (im channel) addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot remind"). Only messages in DM channels matching the listed commands fire; bot messages and the user's own messages can be optionally ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.`},props:{info:ze,user:mt(!0),commands:k.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),ignoreBots:k.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0}),ignoreSelfMessages:k.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:f_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.commands??[],n=e.propsValue.user,o=await ni(e.auth);if(t.event.channel_type!=="im")return[];if(e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===o)return[];if(n&&t.event.text){let a=Ja(t.event.text,n,r);if(a&&r.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var yI=B(H());var vI=C({auth:E,name:"set-channel-topic",classification:"WRITE",displayName:"Set Channel Topic",description:"Sets the topic on a selected channel.",audience:"human",aiMetadata:{description:"Set (overwrite) the topic of a selected channel. Idempotent: re-running with the same topic leaves the channel in the same state. The bot must be a member of the channel.",idempotent:!0},outputSchema:ft,props:{info:Xe,channel:De(!0),topic:k.LongText({displayName:"Topic",required:!0})},async run(e){let{channel:t,topic:r}=e.propsValue;return await new yI.WebClient(D(e.auth)).conversations.setTopic({channel:t,topic:r})}});var bI=B(H());var xI=C({name:"get-message",classification:"READ",displayName:"Get Message by Timestamp",description:"Retrieves a specific message from a channel history using the message's timestamp.",audience:"human",aiMetadata:{description:"Fetch a single message from a channel by its exact timestamp; read-only and repeatable. Use this when you already have the message ts and channel; use Get channel history to read a range of messages or Search messages to find one by content.",idempotent:!0},auth:E,outputSchema:Vx,props:{info:Xe,channel:De(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");return await new bI.WebClient(D(e)).conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})}});var _I=B(H());var Ro=C({auth:E,name:"find-user-by-id",classification:"READ",displayName:"Find User by ID",description:"Finds a user by their ID.",audience:"human",aiMetadata:{description:"Fetch a user profile directly by their Slack user ID; read-only and repeatable. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Handle when you only know the display-name handle.",idempotent:!0},outputSchema:us,props:{id:k.ShortText({displayName:"ID",required:!0})},async run({auth:e,propsValue:t}){return await new _I.WebClient(D(e)).users.profile.get({user:t.id})}});var wI=B(H());var kI={id:"USLACKBOT",team_id:"T06BTHUEFFF",name:"slackbot",deleted:!1,color:"757575",real_name:"Slackbot",tz:"America/Los_Angeles",tz_label:"Pacific Daylight Time",tz_offset:-25200,profile:{title:"",phone:"",skype:"",real_name:"Slackbot",real_name_normalized:"Slackbot",display_name:"Slackbot",display_name_normalized:"Slackbot",fields:{},status_text:"",status_emoji:"",status_emoji_display_info:[],status_expiration:0,avatar_hash:"sv41d8cd98f0",always_active:!0,first_name:"slackbot",last_name:"",image_24:"https://a.slack-edge.com/80588/img/slackbot_24.png",image_32:"https://a.slack-edge.com/80588/img/slackbot_32.png",image_48:"https://a.slack-edge.com/80588/img/slackbot_48.png",image_72:"https://a.slack-edge.com/80588/img/slackbot_72.png",image_192:"https://a.slack-edge.com/80588/marketing/img/avatars/slackbot/avatar-slackbot.png",image_512:"https://a.slack-edge.com/80588/img/slackbot_512.png",status_text_canonical:"",team:"T06BTHUEFFF"},is_admin:!1,is_owner:!1,is_primary_owner:!1,is_restricted:!1,is_ultra_restricted:!1,is_bot:!1,is_app_user:!1,updated:0,is_email_confirmed:!1,who_can_share_contact_card:"EVERYONE"},PI=Ae({auth:E,name:"new-user",classification:"READ",displayName:"New User",description:"Triggers when a new user is created / first joins your org.",aiMetadata:{description:"Fires when a new member joins the Slack workspace (a team_join event). The event payload is the new user object, including their id, name, profile, and account flags."},props:{info:ze},type:"APP_WEBHOOK",sampleData:kI,outputSchema:__,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["team_join"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new wI.WebClient(D(e.auth)).users.list({limit:10});return r.members?r.members:[kI]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="team_join"?[]:[t.event.user]},"run")});var SI=Ae({auth:E,name:"new-saved-message",classification:"READ",displayName:"New Saved Message",description:"Triggers when you save a message.",aiMetadata:{description:"Fires when the connected Slack user saves (stars) a message. Only star_added events whose saved item is a message fire; saving other item types does not trigger. The event payload is the saved item, including its channel and message reference."},props:{info:ze},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:b_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["star_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return t.event.type==="star_added"&&t.event.item.type==="message"?[t.event.item]:[]},"run")});var AI=B(H());var TI={id:"heart",image:"https://emoji.slack-edge.com/T06BTHUEFFF/heart/84a171ae62daacc7.jpg"},EI=Ae({auth:E,name:"new-team-custom-emoji",classification:"READ",displayName:"New Team Custom Emoji",description:"Triggers when a custom emoji has been added to a team.",aiMetadata:{description:'Fires when a new custom emoji is added to the Slack workspace (an emoji_changed event with the "add" subtype). The event payload includes the emoji id (name) and the image URL of the added emoji.'},props:{info:ze},type:"APP_WEBHOOK",sampleData:TI,outputSchema:x_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["emoji_changed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new AI.WebClient(D(e.auth)).emoji.list();return r.emoji?Object.entries(r.emoji).map(([n,o])=>({id:n,image:o})):[TI]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="emoji_changed"&&t.event.subtype!=="add"?[]:[{id:t.event.name,image:t.event.value}]},"run")});var II=B(H());var CI=C({auth:E,name:"invite-user-to-channel",classification:"WRITE",displayName:"Invite User to Channel",description:"Invites an existing User to an existing channel.",audience:"human",aiMetadata:{description:"Add an existing workspace user to an existing channel as a member. Both the channel and the user must already exist. Effectively idempotent in result since a user already in the channel stays a member, though Slack returns an error if they are already present.",idempotent:!1},outputSchema:ft,props:{info:Xe,channel:De(!0),userId:mt(!0)},async run(e){return await new II.WebClient(D(e.auth)).conversations.invite({channel:e.propsValue.channel,users:`${e.propsValue.userId}`})}});var OI=B(H());var zo=C({name:"listUsers",classification:"SEARCH",displayName:"List users",description:"List all users of the workspace",audience:"human",aiMetadata:{description:"List every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users; read-only and repeatable. Use this to enumerate or scan all users; use Find User by ID or Find User by Handle when you already know which single user you want.",idempotent:!0},outputSchema:ss,props:{includeBots:k.Checkbox({displayName:"Include bots?",required:!0,defaultValue:!1}),includeDisabled:k.Checkbox({displayName:"Include disabled users?",required:!0,defaultValue:!1})},auth:E,async run({auth:e,propsValue:t}){let r=new OI.WebClient(D(e)),n=[];for await(let o of r.paginate("users.list",{limit:1e3})){let a=o;a.members&&n.push(...a.members.filter(s=>(t.includeDisabled||!s.deleted)&&(t.includeBots||!s.is_bot)))}return n}});var RI=B(H());var zI=C({name:"delete-message",classification:"DESTRUCTIVE",displayName:"Delete Message",description:"Deletes a specific message from a channel using the message's timestamp.",audience:"human",aiMetadata:{description:"Permanently delete one Slack message from a channel, identified by its timestamp (ts) and channel. Pick this to remove a previously posted message; to instead edit its content use Update Message. Not idempotent in effect though re-deleting an already-gone message errors, and deletion requires a user token with rights to remove that message.",idempotent:!1},auth:E,props:{info:Xe,channel:De(!0),ts:k.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");let n=Re(e),o=new RI.WebClient(n);if(!(await o.conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})).messages?.[0])throw new Error("No message found for the provided timestamp.");return o.chat.delete({channel:t.channel,ts:r})}});var DI=Ae({auth:E,name:"new-modal-interaction",classification:"READ",displayName:"New Modal Interaction",description:"Triggers when a user interacts with a modal.",aiMetadata:{description:"Fires when a user interacts with a Slack modal view, either submitting it (view_submission) or closing it (view_closed) depending on the selected interaction type. The event payload is the Slack interaction payload (with the auth token stripped), including the submitted view, its state values, and the acting user."},props:{info:Dx,interactionType:k.StaticDropdown({displayName:"Interaction Type",description:"Select the type of modal interaction to trigger on.",required:!0,defaultValue:"view_submission",options:{disabled:!1,options:[{label:"View Submission",value:"view_submission"},{label:"View Closed",value:"view_closed"}]}})},type:"APP_WEBHOOK",sampleData:void 0,outputSchema:h_,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:[e.propsValue.interactionType],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=JSON.parse(t.payload),n=e.propsValue.interactionType;if(r.type!==n)return[];let{token:o,...a}=r;return[a]},"run")});var jp=B(H());var $I=C({auth:E,name:"update_group_users",classification:"WRITE",displayName:"Update User Group Members",description:"Add users to or overwrite the member list of a Slack user group.",audience:"both",aiMetadata:{description:'Set the membership of a Slack user group, found by its handle, to a given list of user IDs. Defaults to appending the IDs to current members; with "Append" off it replaces the entire member list (clearing it if no IDs are given), which is idempotent. Append mode is not idempotent. Requires a user token and errors if the handle is not found.',idempotent:!1},outputSchema:o_,props:{handle:k.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0}),userIds:k.Array({displayName:"User IDs",description:"The list of Slack User IDs to update this group with. Leave empty to clear the group (if not appending).",required:!1}),appendUsers:k.Checkbox({displayName:"Append to existing members?",description:"If checked, these users will be added to the current group. If unchecked, the current group members will be completely replaced by these users.",required:!0,defaultValue:!0})},async run(e){let t=e.auth,r=new jp.WebClient(D(t)),n=new jp.WebClient(Re(t)),o=e.propsValue.handle.replace("@","").toLowerCase(),s=(e.propsValue.userIds||[]).filter(d=>d&&d.trim()!==""),u=e.propsValue.appendUsers,p=(await r.usergroups.list({include_users:!0})).usergroups?.find(d=>d.handle&&d.handle.toLowerCase()===o);if(!p||!p.id)throw new Error(`User group with handle '@${o}' not found.`);let c=s;if(u){let d=p.users||[];c=Array.from(new Set([...d,...s]))}let m=c.join(", ");return await n.usergroups.users.update({usergroup:p.id,users:m})}});var NI=B(H());var UI=C({auth:E,name:"get_group_by_handle",classification:"READ",displayName:"Get User Group by Handle",description:"Finds a Slack user group by its handle (e.g., @user-group) and returns its details. To mention this group in a message, map the returned ID using the syntax <!subteam^ID>. Read more: https://api.slack.com/reference/surfaces/formatting#mentioning-groups",audience:"both",aiMetadata:{description:"Look up a Slack user group (subteam) by its handle and return the group, including its ID for building an <!subteam^ID> mention; read-only and repeatable. Use this for groups, not individuals (use Find User by Handle/ID for people). Matches case-insensitively on the handle and errors if no group has that handle.",idempotent:!0},outputSchema:n_,props:{handle:k.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0})},async run(e){let t=D(e.auth),r=new NI.WebClient(t),n=e.propsValue.handle.replace("@","").toLowerCase(),a=(await r.usergroups.list()).usergroups?.find(s=>s.handle&&s.handle.toLowerCase()===n);if(!a)throw new Error(`User group with handle '@${n}' not found.`);return a}});var MI=C({auth:E,name:"slack_post_message",classification:"WRITE",displayName:"Post Message",description:"Post a message to a Slack channel.",audience:"ai",aiMetadata:{description:"Post a message to a channel, optionally as a threaded reply or with Block Kit blocks. Pass a channel ID (e.g. C0123ABCD); resolve a #name first with Find Channel. Use Send Direct Message to message one person privately, or Schedule Message to send at a future time. Each call posts a new message, so it is not idempotent; provide either text or blocks.",idempotent:!1},outputSchema:Qr,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to post to (e.g. C0123ABCD). Resolve a #name to an ID first with Find Channel.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the message. When using blocks, this is used as fallback text for notifications.",required:!1}),threadTs:k.ShortText({displayName:"Thread Timestamp",description:"Timestamp (ts) of a parent message to reply within its thread, e.g. 1710304378.475129. Use the parent ts, not a reply ts.",required:!1}),replyBroadcast:k.Checkbox({displayName:"Broadcast Reply to Channel",description:"When replying in a thread, also make the reply visible to everyone in the channel.",required:!1,defaultValue:!1}),sendAsUser:k.Checkbox({displayName:"Send as User",description:"Post as the authenticated user instead of the bot (requires a user token).",required:!1,defaultValue:!1}),unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message.",required:!1,defaultValue:!0}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let{channel:t,text:r,threadTs:n,replyBroadcast:o,sendAsUser:a,unfurlLinks:s,blocks:u}=e.propsValue,l=a?Re(e.auth):D(e.auth);if(!r&&(!u||!Array.isArray(u)||u.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let p=[];return r&&p.push(...Be(r)),u&&Array.isArray(u)&&u.length>0&&p.push(...u),$t({token:l,text:r||void 0,conversationId:t,threadTs:n?we(n):void 0,blocks:p.length>0?p:void 0,replyBroadcast:o,unfurlLinks:s})}});var LI=C({auth:E,name:"slack_send_direct_message",classification:"WRITE",displayName:"Send Direct Message",description:"Send a direct message (DM) to a single Slack user.",audience:"ai",aiMetadata:{description:"Open a DM with one user (by user ID, e.g. U0123ABCD) and post a message to them privately, optionally with Block Kit blocks. Resolve a handle or email to a user ID first with Find User by Email or Find User by Handle. Use Post Message to send to a channel instead. Each call posts a new DM, so it is not idempotent.",idempotent:!1},outputSchema:Qr,props:{userId:k.ShortText({displayName:"User ID",description:"The Slack user ID to DM (e.g. U0123ABCD). Resolve a handle/email to an ID first with Find User by Handle / Find User by Email.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the direct message.",required:!0}),unfurlLinks:k.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message.",required:!1,defaultValue:!0}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let t=D(e.auth),{text:r,userId:n,blocks:o,unfurlLinks:a}=e.propsValue;Te(t,"token"),Te(r,"text"),Te(n,"userId");let s=[...Be(r)];return o&&Array.isArray(o)&&s.push(...o),$t({token:t,text:r,conversationId:n,blocks:s,unfurlLinks:a})}});var qI=B(H());var FI=C({auth:E,name:"slack_schedule_message",classification:"WRITE",displayName:"Schedule Message",description:"Schedule a message to be sent to a channel at a future time.",audience:"ai",aiMetadata:{description:"Queue a message to be posted to a channel at a future Unix timestamp (post_at, in seconds, must be in the future and within 120 days). Pass a channel ID (e.g. C0123ABCD); resolve a #name with Find Channel. Returns a scheduled_message_id you can later cancel with Delete Scheduled Message or review with List Scheduled Messages. Use Post Message to send immediately. Each call queues a new send, so it is not idempotent.",idempotent:!1},outputSchema:Zx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to post to (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),postAt:k.Number({displayName:"Post At (Unix Seconds)",description:"Unix epoch timestamp in seconds for when to send, e.g. 1893456000. Must be in the future and within 120 days.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the message. When using blocks, this is used as fallback text for notifications.",required:!1}),threadTs:k.ShortText({displayName:"Thread Timestamp",description:"Optional parent message ts to schedule this as a threaded reply, e.g. 1710304378.475129.",required:!1}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let{channel:t,postAt:r,text:n,threadTs:o,blocks:a}=e.propsValue;if(!n&&(!a||!Array.isArray(a)||a.length===0))throw new Error("Either Message or Block Kit blocks must be provided");if(r<=Math.floor(Date.now()/1e3))throw new Error("Post At must be a Unix timestamp in the future.");let s=new qI.WebClient(D(e.auth)),u=[];return n&&u.push(...Be(n)),a&&Array.isArray(a)&&a.length>0&&u.push(...a),await s.chat.scheduleMessage({channel:t,post_at:r,text:n||void 0,blocks:u,thread_ts:o||void 0})}});var BI=B(H());var jI=C({auth:E,name:"slack_list_scheduled_messages",classification:"SEARCH",displayName:"List Scheduled Messages",description:"List pending scheduled messages.",audience:"ai",aiMetadata:{description:"List messages that have been scheduled but not yet sent, optionally filtered by channel and a time window; read-only and repeatable. Use this to obtain a scheduled_message_id before cancelling one with Delete Scheduled Message.",idempotent:!0},outputSchema:Gx,props:{channel:k.ShortText({displayName:"Channel",description:"Optional channel ID to filter by (e.g. C0123ABCD). Leave blank for all channels.",required:!1}),oldest:k.Number({displayName:"Oldest",description:"Only scheduled messages after this Unix timestamp.",required:!1}),latest:k.Number({displayName:"Latest",description:"Only scheduled messages before this Unix timestamp.",required:!1})},async run({auth:e,propsValue:t}){let r=new BI.WebClient(D(e)),n=[];for await(let o of r.paginate("chat.scheduledMessages.list",{channel:t.channel||void 0,oldest:t.oldest,latest:t.latest,limit:100})){let a=o;a.scheduled_messages&&n.push(...a.scheduled_messages)}return n}});var VI=B(H());var HI=C({auth:E,name:"slack_delete_scheduled_message",classification:"DESTRUCTIVE",displayName:"Delete Scheduled Message",description:"Cancel a pending scheduled message before it is sent.",audience:"ai",aiMetadata:{description:"Cancel a queued (not-yet-sent) scheduled message by its channel ID and scheduled_message_id. Obtain the scheduled_message_id from Schedule Message or List Scheduled Messages. Not idempotent: re-deleting an already-cancelled or already-sent message errors.",idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID the message was scheduled to (e.g. C0123ABCD).",required:!0}),scheduledMessageId:k.ShortText({displayName:"Scheduled Message ID",description:"The scheduled_message_id from Schedule Message or List Scheduled Messages (e.g. Q1234ABCD).",required:!0})},async run({auth:e,propsValue:t}){return await new VI.WebClient(D(e)).chat.deleteScheduledMessage({channel:t.channel,scheduled_message_id:t.scheduledMessageId})}});var WI=B(H());var ZI=C({auth:E,name:"slack_update_message",classification:"WRITE",displayName:"Update Message",description:"Edit an existing Slack message in place.",audience:"ai",aiMetadata:{description:"Edit a previously posted message in place, replacing its text (and optionally blocks), identified by channel ID and message timestamp (ts). Obtain the ts from the result of Post Message, Search Messages, or Get Channel History. Use Delete Message to remove it instead. Idempotent: re-running with the same inputs leaves the message in the same final state.",idempotent:!0},outputSchema:Ya,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the message (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp (ts) of the message to update, e.g. 1710304378.475129. Obtain it from Post Message / Search Messages / Get Channel History.",required:!0}),text:k.LongText({displayName:"Message",description:"The new text of the message.",required:!0}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array to replace the message blocks. See https://api.slack.com/block-kit",required:!1})},async run(e){let{auth:t,propsValue:r}=e,n=we(r.ts);if(!n)throw new Error("Invalid Timestamp Value.");let o=new WI.WebClient(D(t)),a=[...Be(r.text)];return r.blocks&&Array.isArray(r.blocks)&&r.blocks.length>0&&a.push(...r.blocks),await o.chat.update({channel:r.channel,ts:n,text:r.text,blocks:a})}});var GI=B(H());var KI=C({auth:E,name:"slack_delete_message",classification:"DESTRUCTIVE",displayName:"Delete Message",description:"Delete a message from a Slack channel by its timestamp.",audience:"ai",aiMetadata:{description:"Permanently delete one message from a channel, identified by channel ID and the message timestamp (ts). Obtain the ts from Post Message, Search Messages, or Get Channel History. To revise the content instead of removing it, use Update Message. Requires a user token with rights to remove the message; not idempotent (re-deleting an already-gone message errors).",idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the message (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp (ts) of the message to delete, e.g. 1710304378.475129. Obtain it from Post Message / Search Messages / Get Channel History.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");let n=Re(e),o=new GI.WebClient(n);if(!(await o.conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})).messages?.[0])throw new Error("No message found for the provided timestamp.");return o.chat.delete({channel:t.channel,ts:r})}});var JI=B(H());var XI=C({auth:E,name:"slack_send_ephemeral_message",classification:"WRITE",displayName:"Send Ephemeral Message",description:"Post a message visible only to one user within a channel.",audience:"ai",aiMetadata:{description:"Post an ephemeral message that is visible only to one specified user inside a channel and is not stored in the channel history. Pass a channel ID and the target user ID; the user must be a member of that channel and the bot must be in it. Use Post Message for a normal message everyone sees, or Send Direct Message for a private DM. Each call posts a new ephemeral message, so it is not idempotent.",idempotent:!1},outputSchema:Kx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID where the ephemeral message appears (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),user:k.ShortText({displayName:"User ID",description:"The user ID who will see the message (e.g. U0123ABCD). Must be a member of the channel.",required:!0}),text:k.LongText({displayName:"Message",description:"The text of the message. When using blocks, this is used as fallback text for notifications.",required:!1}),blocks:k.Json({displayName:"Block Kit Blocks",description:"Optional Block Kit blocks array. See https://api.slack.com/block-kit",required:!1})},async run(e){let{channel:t,user:r,text:n,blocks:o}=e.propsValue;if(!n&&(!o||!Array.isArray(o)||o.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let a=new JI.WebClient(D(e.auth)),s=[];return n&&s.push(...Be(n)),o&&Array.isArray(o)&&o.length>0&&s.push(...o),await a.chat.postEphemeral({channel:t,user:r,text:n||void 0,blocks:s})}});var YI=B(H());var QI=C({auth:E,name:"slack_get_message_permalink",classification:"READ",displayName:"Get Message Permalink",description:"Get a shareable permalink URL for a specific message.",audience:"ai",aiMetadata:{description:"Return a stable, shareable permalink URL for one message identified by channel ID and message timestamp (ts); read-only and repeatable. Obtain the ts from Post Message, Search Messages, or Get Channel History. Use this when you need a link to reference a message elsewhere.",idempotent:!0},outputSchema:Jx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the message (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),messageTs:k.ShortText({displayName:"Message Timestamp",description:"Timestamp (ts) of the message, e.g. 1710304378.475129. Obtain it from Post Message / Search Messages / Get Channel History.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.messageTs);if(!r)throw new Error("Invalid Timestamp Value.");return await new YI.WebClient(D(e)).chat.getPermalink({channel:t.channel,message_ts:r})}});var eC=B(H());var tC=C({auth:E,name:"slack_get_channel_history",classification:"SEARCH",displayName:"Get Channel History",description:"Retrieve top-level messages from a Slack channel, optionally bounded by timestamps.",audience:"ai",aiMetadata:{description:"Retrieve top-level (non-thread) messages from a channel you already have the ID for, paging through the full range and optionally bounded by oldest/latest timestamps; read-only and repeatable. Pass a channel ID (e.g. C0123ABCD); resolve a #name with Find Channel. Use Search Messages to find messages by content across the workspace, or Get Thread Replies to read replies within a thread.",idempotent:!0},outputSchema:es,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to read (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),oldest:k.Number({displayName:"Oldest",description:"Only messages after this Unix timestamp are included.",required:!1}),latest:k.Number({displayName:"Latest",description:"Only messages before this Unix timestamp are included. Defaults to now.",required:!1}),inclusive:k.Checkbox({displayName:"Inclusive",description:"Include messages with the oldest/latest timestamps. Ignored unless a timestamp is set.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){let r=new eC.WebClient(D(e)),n=[];for await(let o of r.paginate("conversations.history",{channel:t.channel,oldest:t.oldest,latest:t.latest,limit:200,inclusive:t.inclusive})){let a=o;a.messages&&n.push(...a.messages)}return n}});var rC=B(H());var nC=C({auth:E,name:"slack_get_thread_replies",classification:"SEARCH",displayName:"Get Thread Replies",description:"Retrieve all replies in a Slack thread.",audience:"ai",aiMetadata:{description:"Retrieve all replies in a thread given the channel ID and the parent message timestamp; read-only and repeatable. The timestamp must be the parent message ts, not a reply ts. Use Get Channel History for top-level channel messages, or Search Messages to find a message by content.",idempotent:!0},outputSchema:Qa,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID containing the thread (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),threadTs:k.ShortText({displayName:"Thread Timestamp",description:"Timestamp (ts) of the parent message, e.g. 1710304378.475129. Use the parent ts, not a reply ts.",required:!0})},async run({auth:e,propsValue:t}){let r=new rC.WebClient(D(e)),n=we(t.threadTs);if(!n)throw new Error("Invalid Timestamp Value.");return await r.conversations.replies({channel:t.channel,ts:n})}});var iC=B(H());var oC=C({auth:E,name:"slack_search_messages",classification:"SEARCH",displayName:"Search Messages",description:"Search the workspace for messages matching a query.",audience:"ai",aiMetadata:{description:"Search across the workspace for messages matching a query string, paging through every match; read-only and repeatable. Requires a user token (search is unavailable to bot tokens). Use this to find messages anywhere by content; use Get Channel History when you already know the channel, or Search All to also include files.",idempotent:!0},outputSchema:ts,props:{query:k.ShortText({displayName:"Search Query",description:'Search query, supporting Slack search operators (e.g. "in:#general from:@jane budget").',required:!0})},async run({auth:e,propsValue:t}){let r=Re(e),n=new iC.WebClient(r),o=[],a="*";do{let s=await n.search.messages({query:t.query,count:100,cursor:a});s.messages?.matches&&o.push(...s.messages.matches),a=s.messages?.pagination?.next_cursor}while(a);return o}});var aC=B(H());var sC=C({auth:E,name:"slack_search_all",classification:"SEARCH",displayName:"Search All",description:"Search the workspace for both messages and files.",audience:"ai",aiMetadata:{description:"Search across the workspace for both messages and files matching a query string; read-only and repeatable. Requires a user token (search is unavailable to bot tokens). Use this when results may be either messages or files; use Search Messages when you only want messages.",idempotent:!0},outputSchema:Wx,props:{query:k.ShortText({displayName:"Search Query",description:'Search query, supporting Slack search operators (e.g. "in:#general budget").',required:!0})},async run({auth:e,propsValue:t}){let r=Re(e),o=await new aC.WebClient(r).search.all({query:t.query,count:100});return{messages:o.messages?.matches??[],files:o.files?.matches??[],message_count:o.messages?.total??0,file_count:o.files?.total??0}}});var uC=B(H());var lC=C({auth:E,name:"slack_mark_conversation_read",classification:"WRITE",displayName:"Mark Conversation Read",description:"Move the read cursor in a channel up to a given message.",audience:"ai",aiMetadata:{description:"Set the read cursor in a channel so messages up to and including a given timestamp (ts) are marked read, identified by channel ID. Obtain the ts from Get Channel History or Post Message. Setting the same cursor again leaves the same state, so it is idempotent.",idempotent:!0},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID to mark read (e.g. C0123ABCD). Resolve a #name with Find Channel.",required:!0}),ts:k.ShortText({displayName:"Timestamp",description:"Mark the channel read up to this message ts, e.g. 1710304378.475129.",required:!0})},async run({auth:e,propsValue:t}){let r=we(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");return await new uC.WebClient(D(e)).conversations.mark({channel:t.channel,ts:r})}});var cC=C({auth:E,name:"find_user_by_email",classification:"READ",displayName:"Find User by Email",description:"Find a Slack user by their exact email address.",audience:"ai",aiMetadata:{description:"Looks up a single workspace member by their exact email address and returns that user (including their user ID). Pick this to turn an email into a Slack user ID before messaging or referencing the person; use Find User by Handle when you only know the @handle, or Get User when you already have the ID. Read-only and idempotent; errors if no member matches the email.",idempotent:!0},outputSchema:os,props:ho.props,run:ho.run});var pC=C({auth:E,name:"get_user",classification:"READ",displayName:"Get User",description:"Get a Slack user profile by their user ID.",audience:"ai",aiMetadata:{description:"Fetches a user profile directly by their Slack user ID. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Email or Find User by Handle to resolve an email or @handle into an ID first. Read-only and idempotent.",idempotent:!0},outputSchema:us,props:Ro.props,run:Ro.run});var dC=C({auth:E,name:"list_users",classification:"SEARCH",displayName:"List Users",description:"List all users in the workspace.",audience:"ai",aiMetadata:{description:"Enumerates every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users. Pick this to scan or enumerate users; use Get User, Find User by Email, or Find User by Handle when you already know the single user you want. Read-only and idempotent.",idempotent:!0},outputSchema:ss,props:zo.props,run:zo.run});var mC=C({auth:E,name:"find_user_by_handle",classification:"SEARCH",displayName:"Find User by Handle",description:"Find a Slack user by their handle (display name).",audience:"ai",aiMetadata:{description:"Looks up a workspace member by their Slack handle (display name without the leading @) and returns that user. Pick this when you only know the handle and need the user object or ID; use Find User by Email when you have an email, or Get User when you already have the ID. Scans the full member list and errors if no exact display-name match is found; read-only and idempotent.",idempotent:!0},outputSchema:as,props:vo.props,run:vo.run});var fC=C({auth:E,name:"slack_add_reaction",classification:"WRITE",displayName:"Add Reaction",description:"Add an emoji reaction to a message.",audience:"ai",aiMetadata:{description:"Adds an emoji reaction to a specific message identified by its channel and message timestamp (obtain the timestamp from a posted message, search, or channel history; pass a channel ID, or resolve a #name first with Find Channel). Use Remove Reaction for the inverse. Provide the emoji name without colons, e.g. thumbsup. Not idempotent: re-adding the same reaction fails with an already_reacted error rather than succeeding as a no-op (the end state is the same, but a retry surfaces an error).",idempotent:!1},props:yo.props,run:yo.run});var hC=B(H());var gC=C({auth:E,name:"slack_archive_channel",classification:"DESTRUCTIVE",displayName:"Archive Channel",description:"Archives a channel.",audience:"ai",aiMetadata:{description:'Archive a channel, closing it to new activity while preserving its history. Not idempotent: archiving an already-archived channel returns an "already_archived" error rather than a silent no-op, so do not retry blindly. Use Unarchive Channel to reverse this. The bot must be a member with permission to archive.',idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){return await new hC.WebClient(D(e)).conversations.archive({channel:t.channel})}});var yC=B(H());var vC=C({auth:E,name:"slack_close_dm",classification:"WRITE",displayName:"Close Direct Message",description:"Closes a direct message or group DM conversation.",audience:"ai",aiMetadata:{description:"Close a direct message (IM) or group DM (MPIM) conversation view. Idempotent: closing an already-closed conversation succeeds without changing anything. This only hides the conversation from the sidebar; it does not delete any messages. Use the conversation ID returned when the DM was opened.",idempotent:!0},props:{channel:k.ShortText({displayName:"Conversation",description:"Direct message conversation ID to close, e.g. 'D0123456789' (IM) or 'G0123456789' (group DM). This is the conversation ID returned when the DM was opened, not a user ID.",required:!0})},async run({auth:e,propsValue:t}){return await new yC.WebClient(D(e)).conversations.close({channel:t.channel})}});var bC=B(H());var xC=C({auth:E,name:"slack_create_channel",classification:"WRITE",displayName:"Create Channel",description:"Creates a new public or private channel.",audience:"ai",aiMetadata:{description:"Create a new public or private Slack channel with the given name. Not idempotent: if a channel with that name already exists Slack returns a name-taken error rather than reusing it, so do not retry blindly. Slack normalizes names (lowercased, spaces become hyphens).",idempotent:!1},outputSchema:ft,props:{channelName:k.ShortText({displayName:"Channel Name",description:"Name for the new channel, without the leading '#'. Slack lowercases it and replaces spaces with hyphens, e.g. 'project-updates'. Max 80 characters.",required:!0}),isPrivate:k.Checkbox({displayName:"Is Private?",description:"Create the channel as private (invite-only) instead of public.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new bC.WebClient(D(e)).conversations.create({name:t.channelName,is_private:t.isPrivate})}});var _C=B(H());var kC=C({auth:E,name:"slack_find_channel",classification:"SEARCH",displayName:"Find Channel",description:"Finds a channel by name and returns its ID.",audience:"ai",aiMetadata:{description:"Resolve a channel #name to its channel ID by scanning public and private channels. This is the channel name-to-ID resolver every other channel action needs, since they take a channel ID. Use List Channels to enumerate all channels instead of matching one. Only public and private channels have names; direct messages cannot be matched here. Read-only and repeatable.",idempotent:!0},outputSchema:qx,props:{name:k.ShortText({displayName:"Channel Name",description:"The channel name to find, with or without the leading '#', e.g. 'general'. Matched case-insensitively after Slack's normalization (lowercase, spaces to hyphens).",required:!0}),excludeArchived:k.Checkbox({displayName:"Exclude Archived",description:"Skip archived channels when searching.",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let r=new _C.WebClient(D(e)),n=t.name.replace(/^#/,"").trim().toLowerCase(),o=n.replace(/\s+/g,"-"),a;do{let s=await r.conversations.list({types:"public_channel,private_channel",exclude_archived:t.excludeArchived??!0,limit:1e3,cursor:a}),u=(s.channels??[]).find(l=>{let p=(l.name??"").toLowerCase();return p===n||p===o});if(u)return u;a=s.response_metadata?.next_cursor}while(a);throw new Error(`Could not find channel named #${t.name}`)}});var wC=B(H());var PC=C({auth:E,name:"slack_get_channel_info",classification:"READ",displayName:"Get Channel Info",description:"Gets details about a single channel.",audience:"ai",aiMetadata:{description:"Get the full detail of one channel by its ID \u2014 topic, purpose, privacy, archived state, creator and optionally the member count. Use this when you already have a channel ID and need its metadata; use Find Channel to resolve a name to an ID first, or List Channel Members to get the member list. Read-only and repeatable.",idempotent:!0},outputSchema:ft,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),includeNumMembers:k.Checkbox({displayName:"Include Member Count",description:"Include the number of members in the channel in the result.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new wC.WebClient(D(e)).conversations.info({channel:t.channel,include_num_members:t.includeNumMembers??!1})}});var SC=C({auth:E,name:"slack_get_file",classification:"READ",displayName:"Get File",description:"Look up a Slack file by its ID and download its contents.",audience:"ai",aiMetadata:{description:"Looks up metadata for a single Slack file by its file ID and downloads its contents. Pick this when you have a file ID (e.g. from a message trigger or List Files) and need the file details or bytes. Use List Files to discover file IDs. Read-only and idempotent; fails if the file has no accessible download URL.",idempotent:!0},outputSchema:ns,props:Oo.props,run:Oo.run});var TC=B(H());var AC=C({auth:E,name:"slack_get_reactions",classification:"READ",displayName:"Get Reactions",description:"Get the reactions on a message or file.",audience:"ai",aiMetadata:{description:"Fetches all emoji reactions on a single message (by channel and message timestamp) or file (by file ID). Use this to inspect who reacted with what to one specific item; use List User Reactions to enumerate everything a user reacted to. Pass a channel ID, or resolve a #name first with Find Channel; obtain the message timestamp from a posted message, search, or channel history. Read-only and idempotent.",idempotent:!0},outputSchema:Xx,props:{channel:k.ShortText({displayName:"Channel ID",description:"Channel ID of the message (e.g. C0123ABCD). Required when targeting a message; leave empty when targeting a file.",required:!1}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp of the message, e.g. 1710304378.475129. Required (with Channel ID) when targeting a message.",required:!1}),file:k.ShortText({displayName:"File ID",description:"File ID to get reactions for (e.g. F0123ABCD). Provide this instead of Channel ID + Timestamp when targeting a file.",required:!1}),full:k.Checkbox({displayName:"Full reaction list?",description:"If enabled, returns the complete list of reactions (not truncated).",required:!1,defaultValue:!0})},async run(e){let{channel:t,ts:r,file:n,full:o}=e.propsValue,a=D(e.auth),s=new TC.WebClient(a),u;if(n)u={file:n,full:o};else if(t&&r){let l=we(r);if(!l)throw new Error("Invalid Timestamp Value.");u={channel:t,timestamp:l,full:o}}else throw new Error("Provide either a File ID, or both a Channel ID and a Message Timestamp.");return await s.reactions.get(u)}});var EC=B(H());var IC=C({auth:E,name:"slack_invite_users_to_channel",classification:"WRITE",displayName:"Invite Users to Channel",description:"Invites one or more existing users to a channel.",audience:"ai",aiMetadata:{description:"Add one or more existing workspace users to an existing channel as members. Not idempotent: Slack returns an error if a user is already in the channel (the end state is the same, but a retry is not silent). Use Remove User from Channel to reverse. The bot must be a member of the channel.",idempotent:!1},outputSchema:ft,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),userIds:k.Array({displayName:"User IDs",description:"Slack user IDs to invite, e.g. 'U0123456789'. Resolve handles/emails to IDs first with Find User by Handle / Find User by Email. Up to 1000 users per call.",required:!0})},async run({auth:e,propsValue:t}){let r=new EC.WebClient(D(e)),n=t.userIds.join(",");return await r.conversations.invite({channel:t.channel,users:n})}});var CC=B(H());var OC=C({auth:E,name:"slack_join_channel",classification:"WRITE",displayName:"Join Channel",description:"Joins an existing public channel.",audience:"ai",aiMetadata:{description:"Join an existing public channel so the bot becomes a member, which many channel and message actions require. Idempotent: joining a channel the bot is already in succeeds without changing anything. Only works for public channels; to join a private channel the bot must be invited.",idempotent:!0},outputSchema:Lx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){return await new CC.WebClient(D(e)).conversations.join({channel:t.channel})}});var RC=B(H());var zC=C({auth:E,name:"slack_leave_channel",classification:"WRITE",displayName:"Leave Channel",description:"Leaves a channel.",audience:"ai",aiMetadata:{description:"Leave a channel so the bot is no longer a member, the counterpart to Join Channel. Idempotent: leaving a channel the bot is not in succeeds without changing anything. After leaving, the bot can no longer read or post in the channel until it rejoins.",idempotent:!0},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){let r=new RC.WebClient(D(e));try{return await r.conversations.leave({channel:t.channel})}catch(n){if(n?.data?.error==="not_in_channel")return{ok:!0,already_left:!0};throw n}}});var DC=B(H());var $C=C({auth:E,name:"slack_list_channel_members",classification:"SEARCH",displayName:"List Channel Members",description:"Lists the user IDs of the members of a channel.",audience:"ai",aiMetadata:{description:"List the user IDs of every member of a channel, paging through all results. Use this to enumerate who is in a channel; resolve each returned ID to a user with Get User. Use Get Channel Info for channel metadata instead. Read-only and repeatable.",idempotent:!0},outputSchema:jx,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){let r=new DC.WebClient(D(e)),n=[],o;do{let a=await r.conversations.members({channel:t.channel,limit:1e3,cursor:o});a.members&&n.push(...a.members),o=a.response_metadata?.next_cursor}while(o);return{members:n,count:n.length}}});var NC=B(H());var UC=C({auth:E,name:"slack_list_channels",classification:"SEARCH",displayName:"List Channels",description:"Lists channels in the workspace.",audience:"ai",aiMetadata:{description:"Enumerate the channels in the workspace, paging through all results and returning each id, name, privacy and archived state. Use this to browse or list channels; use Find Channel when you already know the name and just need its ID, or List User Conversations to list only the channels a specific user belongs to. Read-only and repeatable.",idempotent:!0},outputSchema:Fx,props:{types:k.ShortText({displayName:"Types",description:"Comma-separated conversation types to include. One or more of 'public_channel', 'private_channel', 'mpim', 'im'. Defaults to public and private channels.",required:!1,defaultValue:"public_channel,private_channel"}),excludeArchived:k.Checkbox({displayName:"Exclude Archived",description:"Omit archived channels from the results.",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let r=new NC.WebClient(D(e)),n=[],o;do{let a=await r.conversations.list({types:t.types||"public_channel,private_channel",exclude_archived:t.excludeArchived??!0,limit:1e3,cursor:o});a.channels&&n.push(...a.channels),o=a.response_metadata?.next_cursor}while(o);return{channels:n.map(a=>({id:a.id,name:a.name,is_private:a.is_private,is_archived:a.is_archived,is_member:a.is_member,num_members:a.num_members})),count:n.length}}});var MC=B(H());var LC=C({auth:E,name:"slack_list_custom_emoji",classification:"SEARCH",displayName:"List Custom Emoji",description:"List the custom emoji of the workspace.",audience:"ai",aiMetadata:{description:"Lists the workspace's custom emoji as a name-to-image-URL map (aliases point to their target with an 'alias:' value). Use this to discover available custom emoji names, e.g. before adding a reaction. Read-only and idempotent.",idempotent:!0},outputSchema:r_,props:{},async run(e){let t=D(e.auth),n=await new MC.WebClient(t).emoji.list();return{emoji:n.emoji??{},count:Object.keys(n.emoji??{}).length}}});var qC=B(H());var FC=C({auth:E,name:"slack_list_files",classification:"SEARCH",displayName:"List Files",description:"List files in the workspace, optionally filtered by channel, user, or type.",audience:"ai",aiMetadata:{description:"Lists files in the workspace, optionally filtered by channel, uploading user, file type, or a created-time window. Use this to discover file IDs to then pass to Get File, Make File Public, or Revoke File Public URL; use Get File when you already have a specific file ID. Read-only and idempotent.",idempotent:!0},outputSchema:e_,props:{channel:k.ShortText({displayName:"Channel ID",description:"Only return files shared in this channel (e.g. C0123ABCD). Pass a channel ID, or resolve a #name first with Find Channel. Leave empty for all channels.",required:!1}),user:k.ShortText({displayName:"User ID",description:"Only return files uploaded by this user ID (e.g. U0123ABCD). Leave empty for all users.",required:!1}),types:k.ShortText({displayName:"File Types",description:"Comma-separated file types to filter by. One or more of: 'all', 'spaces', 'snippets', 'images', 'gdocs', 'zips', 'pdfs'. Defaults to 'all'.",required:!1}),ts_from:k.ShortText({displayName:"Created After (timestamp)",description:"Only return files created at or after this Unix timestamp (e.g. 1710304378).",required:!1}),ts_to:k.ShortText({displayName:"Created Before (timestamp)",description:"Only return files created at or before this Unix timestamp (e.g. 1710304378).",required:!1}),limit:k.Number({displayName:"Limit",description:"Maximum number of files to return per page (1-1000). Defaults to 100.",required:!1})},async run(e){let t=D(e.auth),r=new qC.WebClient(t),{channel:n,user:o,types:a,ts_from:s,ts_to:u,limit:l}=e.propsValue,p=await r.files.list({channel:n||void 0,user:o||void 0,types:a||void 0,ts_from:s||void 0,ts_to:u||void 0,count:l??100});return{files:p.files??[],count:p.files?.length??0,paging:p.paging}}});var BC=B(H());var jC=C({auth:E,name:"slack_list_user_conversations",classification:"SEARCH",displayName:"List User Conversations",description:"Lists the channels a user belongs to.",audience:"ai",aiMetadata:{description:"List the channels and conversations a specific user (or the authenticated user if none is given) is a member of, paging through all results. Use this instead of List Channels when you only want the conversations one user belongs to. Read-only and repeatable.",idempotent:!0},outputSchema:Bx,props:{user:k.ShortText({displayName:"User ID",description:"Slack user ID to list conversations for, e.g. 'U0123456789'. Leave blank to use the authenticated user. Resolve a handle/email to an ID first with Find User by Handle / Find User by Email.",required:!1}),types:k.ShortText({displayName:"Types",description:"Comma-separated conversation types to include. One or more of 'public_channel', 'private_channel', 'mpim', 'im'. Defaults to public and private channels.",required:!1,defaultValue:"public_channel,private_channel"}),excludeArchived:k.Checkbox({displayName:"Exclude Archived",description:"Omit archived channels from the results.",required:!1,defaultValue:!0})},async run({auth:e,propsValue:t}){let r=new BC.WebClient(D(e)),n=[],o;do{let a=await r.users.conversations({user:t.user||void 0,types:t.types||"public_channel,private_channel",exclude_archived:t.excludeArchived??!0,limit:1e3,cursor:o});a.channels&&n.push(...a.channels),o=a.response_metadata?.next_cursor}while(o);return{channels:n.map(a=>({id:a.id,name:a.name,is_private:a.is_private,is_archived:a.is_archived,is_im:a.is_im})),count:n.length}}});var VC=B(H());var HC=C({auth:E,name:"list_user_groups",classification:"SEARCH",displayName:"List User Groups",description:"List all Slack user groups (subteams) in the workspace.",audience:"ai",aiMetadata:{description:"Lists all user groups (subteams) in the workspace, with optional toggles to include disabled groups and each group's member user IDs. Use this to enumerate groups or to discover a group ID; use Find User Group by Handle when you already know the handle of a single group. Read-only and idempotent.",idempotent:!0},outputSchema:i_,props:{includeDisabled:k.Checkbox({displayName:"Include disabled groups?",description:"Include disabled user groups in the results.",required:!1,defaultValue:!1}),includeUsers:k.Checkbox({displayName:"Include members?",description:"Include the list of member user IDs for each user group.",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new VC.WebClient(D(e)).usergroups.list({include_disabled:t.includeDisabled,include_users:t.includeUsers})}});var WC=B(H());var ZC=C({auth:E,name:"slack_list_user_reactions",classification:"SEARCH",displayName:"List User Reactions",description:"List the items a user has reacted to.",audience:"ai",aiMetadata:{description:"Lists all items (messages and files) a user has reacted to, paging through every result; defaults to the authenticated user when no user is given. Use this to enumerate everything a user reacted to; use Get Reactions to inspect the reactions on one specific message or file. Read-only and idempotent.",idempotent:!0},outputSchema:Yx,props:{user:k.ShortText({displayName:"User ID",description:"Show reactions made by this user ID (e.g. U0123ABCD). Leave empty to use the authenticated user.",required:!1}),limit:k.Number({displayName:"Limit",description:"Maximum number of items to return per page (1-1000). Defaults to 100.",required:!1})},async run(e){let t=D(e.auth),r=new WC.WebClient(t),{user:n,limit:o}=e.propsValue,a=[],s;do{let u=await r.reactions.list({user:n||void 0,limit:o??100,cursor:s});u.items&&a.push(...u.items),s=u.response_metadata?.next_cursor||void 0}while(s);return{items:a,count:a.length}}});var GC=B(H());var KC=C({auth:E,name:"slack_remove_reaction",classification:"WRITE",displayName:"Remove Reaction",description:"Remove an emoji reaction from a message or file.",audience:"ai",aiMetadata:{description:"Removes an emoji reaction from a message (by channel and message timestamp) or from a file (by file ID). This is the inverse of Add Reaction. Pass a channel ID, or resolve a #name first with Find Channel; obtain the message timestamp from a posted message, search, or channel history. Provide the emoji name without colons, e.g. thumbsup. Not idempotent: removing an absent reaction fails with a no_reaction error rather than succeeding as a no-op (the end state is the same, but a retry surfaces an error).",idempotent:!1},props:{reaction:k.ShortText({displayName:"Reaction (emoji) name",description:"The emoji name without colons, e.g. thumbsup.",required:!0}),channel:k.ShortText({displayName:"Channel ID",description:"Channel ID of the message to remove the reaction from (e.g. C0123ABCD). Required when targeting a message; leave empty when targeting a file.",required:!1}),ts:k.ShortText({displayName:"Message Timestamp",description:"Timestamp of the message to remove the reaction from, e.g. 1710304378.475129. Required (with Channel ID) when targeting a message.",required:!1}),file:k.ShortText({displayName:"File ID",description:"File ID to remove the reaction from (e.g. F0123ABCD). Provide this instead of Channel ID + Timestamp when targeting a file.",required:!1}),reactAsUser:k.Checkbox({displayName:"React as user?",description:"If enabled, the reaction is removed as the authenticated user instead of the bot.",required:!1,defaultValue:!1})},async run(e){let{reaction:t,channel:r,ts:n,file:o,reactAsUser:a}=e.propsValue,s=a?Re(e.auth):D(e.auth),u=new GC.WebClient(s),l;if(o)l={name:t,file:o};else if(r&&n){let p=we(n);if(!p)throw new Error("Invalid Timestamp Value.");l={name:t,channel:r,timestamp:p}}else throw new Error("Provide either a File ID, or both a Channel ID and a Message Timestamp.");return await u.reactions.remove(l)}});var JC=B(H());var XC=C({auth:E,name:"slack_remove_user_from_channel",classification:"WRITE",displayName:"Remove User from Channel",description:"Removes a user from a channel.",audience:"ai",aiMetadata:{description:'Remove (kick) a user from a channel, the counterpart to Invite Users to Channel. Not idempotent: removing a user who is not in the channel returns a "not_in_channel" error rather than a silent no-op, so do not retry blindly. The bot must have permission to remove members.',idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),user:k.ShortText({displayName:"User ID",description:"Slack user ID to remove, e.g. 'U0123456789'. Resolve a handle/email to an ID first with Find User by Handle / Find User by Email.",required:!0})},async run({auth:e,propsValue:t}){return await new JC.WebClient(D(e)).conversations.kick({channel:t.channel,user:t.user})}});var YC=B(H());var QC=C({auth:E,name:"slack_rename_channel",classification:"WRITE",displayName:"Rename Channel",description:"Renames a channel.",audience:"ai",aiMetadata:{description:"Rename a channel to a new name. Idempotent: re-running with the same name leaves the channel in the same final state. Slack normalizes the name (lowercased, spaces become hyphens). The bot must have permission to manage the channel.",idempotent:!0},outputSchema:ft,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),name:k.ShortText({displayName:"New Name",description:"New name for the channel, without the leading '#'. Slack lowercases it and replaces spaces with hyphens, e.g. 'project-updates'. Max 80 characters.",required:!0})},async run({auth:e,propsValue:t}){return await new YC.WebClient(D(e)).conversations.rename({channel:t.channel,name:t.name})}});var eO=B(H());var tO=C({auth:E,name:"slack_set_channel_purpose",classification:"WRITE",displayName:"Set Channel Purpose",description:"Sets the purpose on a channel.",audience:"ai",aiMetadata:{description:'Set (overwrite) the purpose of a channel, the longer "what this channel is for" description. Idempotent: re-running with the same purpose leaves the channel in the same state. Use Set Channel Topic for the short topic shown in the channel header instead. The bot must be a member of the channel.',idempotent:!0},outputSchema:ft,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),purpose:k.LongText({displayName:"Purpose",description:"The new purpose text. Pass an empty string to clear the purpose.",required:!0})},async run({auth:e,propsValue:t}){return await new eO.WebClient(D(e)).conversations.setPurpose({channel:t.channel,purpose:t.purpose})}});var rO=B(H());var nO=C({auth:E,name:"slack_set_channel_topic",classification:"WRITE",displayName:"Set Channel Topic",description:"Sets the topic on a channel.",audience:"ai",aiMetadata:{description:'Set (overwrite) the topic shown in a channel header. Idempotent: re-running with the same topic leaves the channel in the same state. Use Set Channel Purpose for the longer "what this channel is for" description instead. The bot must be a member of the channel.',idempotent:!0},outputSchema:ft,props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0}),topic:k.LongText({displayName:"Topic",description:"The new topic text. Pass an empty string to clear the topic.",required:!0})},async run({auth:e,propsValue:t}){return await new rO.WebClient(D(e)).conversations.setTopic({channel:t.channel,topic:t.topic})}});var iO=C({auth:E,name:"set_user_status",classification:"WRITE",displayName:"Set User Status",description:"Set the authenticated user's custom status text and emoji.",audience:"ai",aiMetadata:{description:"Sets the authenticated user's custom status text and optional emoji, with an optional Unix-timestamp expiration. Pick this to change only the status; use Update Profile to change name or email fields. Requires a user token (not a bot token); this overwrites any existing status so re-running with the same input is idempotent. Status text is capped at 100 characters.",idempotent:!0},outputSchema:en,props:bo.props,run:bo.run});var oO=C({auth:E,name:"update_profile",classification:"WRITE",displayName:"Update Profile",description:"Update basic profile fields (name, title, email) for a user.",audience:"ai",aiMetadata:{description:"Updates basic profile fields (first name, last name, email) for the authenticated user, or for another user when an admin supplies a user ID. Use Set User Status instead to change only the custom status text/emoji. Requires a user token; setting the same values again is idempotent. Changing the email sends Slack notification emails to both addresses, and editing another user is admin-only on paid teams.",idempotent:!0},outputSchema:en,props:go.props,run:go.run});var aO=B(H());var sO=C({auth:E,name:"slack_unarchive_channel",classification:"WRITE",displayName:"Unarchive Channel",description:"Reopens an archived channel.",audience:"ai",aiMetadata:{description:`Reopen an archived channel, the counterpart to Archive Channel. Not idempotent: unarchiving a channel that is not archived returns a "not_archived" error rather than a silent no-op, so do not retry blindly. Uses the authorizing user's token (Slack only allows a member/admin to unarchive, not a bot token).`,idempotent:!1},props:{channel:k.ShortText({displayName:"Channel",description:"Channel ID (e.g. 'C0123456789'). Pass a channel ID, or resolve a #name to an ID first with Find Channel.",required:!0})},async run({auth:e,propsValue:t}){return await new aO.WebClient(Re(e)).conversations.unarchive({channel:t.channel})}});var FH=rf({displayName:"Slack",description:"Channel-based messaging platform",minimumSupportedRelease:"0.86.4",logoUrl:"https://cdn.activepieces.com/pieces/slack.png",categories:["COMMUNICATION"],auth:E,events:{parseAndReply:i(({payload:e,server:t})=>{if(e.headers["content-type"]==="application/x-www-form-urlencoded"){if(e.body&&typeof e.body=="object"&&"payload"in e.body){let r=JSON.parse(e.body.payload);if(r.type==="block_actions"){let n=r.actions?.[0];n&&n.type==="button"&&n.value?.startsWith(t.publicUrl)&&Bt.sendRequest({url:n.value,method:"POST",body:r})}else if(r.type==="view_submission"||r.type==="view_closed"){let n=r;return{event:n.type,identifierValue:n.team.id}}}return{reply:{headers:{},body:{}}}}else{let r=e.body;return r.challenge?{reply:{body:r.challenge,headers:{}}}:{event:r?.event?.type,identifierValue:r.team_id}}},"parseAndReply"),verify:i(({webhookSecret:e,payload:t})=>{let r=t.headers["x-slack-request-timestamp"],n=t.headers["x-slack-signature"],o=`v0:${r}:${t.rawBody}`,a=uO.default.createHmac("sha256",e);a.update(o);let s=`v0=${a.digest("hex")}`;return n===s},"verify")},authors:["rita-gorokhod","AdamSelene","Abdallah-Alwarawreh","kishanprmr","MoShizzle","AbdulTheActivePiecer","khaledmashaly","abuaboud"],actions:[yo,T_,A_,P_,S_,k_,w_,O_,Oo,z_,ho,vo,Ro,zo,$_,zI,L_,go,j_,bo,sI,fI,vI,xI,CI,UI,$I,MI,LI,FI,jI,HI,ZI,KI,XI,QI,tC,nC,oC,sC,lC,cC,pC,dC,mC,fC,gC,vC,xC,kC,PC,SC,AC,IC,OC,zC,$C,UC,LC,FC,jC,HC,ZC,KC,XC,QC,tO,nO,iO,oO,sO,gg({baseUrl:i(()=>"https://slack.com/api","baseUrl"),auth:E,authMapping:i(async(e,t)=>{let r=e;if(t.useUserToken){let n=Pc(r);if(n)return{Authorization:`Bearer ${n}`}}return{Authorization:`Bearer ${D(r)}`}},"authMapping"),extraProps:{useUserToken:k.Checkbox({displayName:"Use user token",description:"Use user token instead of bot token",required:!0,defaultValue:!1})}})],triggers:[cI,pI,dI,W_,hI,E_,I_,q_,uI,gI,PI,SI,EI,DI]});0&&(module.exports={slack,slackAuth,slackOAuth2Auth});
75
75
  /*! Bundled license information:
76
76
 
77
77
  mime-types/index.js: